diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 000000000..95599fd8d --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,150 @@ +# This workflow will build the project with Gradle, run integration tests, and release. +# Because secrets are not available on external forks, this job is expected to fail +# on external pull requests. + +name: Build, Check, Publish + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Gradle Wrapper Validation + uses: gradle/actions/wrapper-validation@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'zulu' + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.9.14' + - run: python -m pip install ply six packaging + + - name: Grant execute permissions + run: chmod +x gradlew + && chmod +x update-submodules + && chmod +x generate-ci-auth-file + && chmod +x scripts/check-clean-git-status + + - name: Set up submodules + run: ./update-submodules + + - name: Generate Stone + run: ./gradlew :core:generateStone + + - name: Ensure no changes in Generated Code + run: ./scripts/check-clean-git-status + + - name: Obtain oauth access token for integration tests + env: + APP_KEY: ${{ secrets.APP_KEY }} + APP_SECRET: ${{ secrets.APP_SECRET }} + REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} + run: ./generate-ci-auth-file + + - name: Ensure Binary Compatibility + run: ./gradlew :core:apiCheck :android:apiCheck + + - name: Dependency Guard + run: ./gradlew dependencyGuard + + - name: Check + run: ./gradlew check + + - name: Run Integration Tests for Examples + run: ./gradlew :examples:examples:test :examples:java:test -Pci=true --info + + - name: Run Integration Tests - OkHttpRequestor + run: ./gradlew -Pcom.dropbox.test.httpRequestor=OkHttpRequestor -Pcom.dropbox.test.authInfoFile=../auth_output integrationTest && + ./gradlew -Pcom.dropbox.test.httpRequestor=OkHttpRequestor -Pcom.dropbox.test.authInfoFile=../auth_output proguardTest + + - name: Run Integration Tests - OkHttp3Requestor + run: ./gradlew -Pcom.dropbox.test.httpRequestor=OkHttp3Requestor -Pcom.dropbox.test.authInfoFile=../auth_output integrationTest && + ./gradlew -Pcom.dropbox.test.httpRequestor=OkHttp3Requestor -Pcom.dropbox.test.authInfoFile=../auth_output proguardTest + + - name: Run Integration Tests - StandardHttpRequestor + run: ./gradlew -Pcom.dropbox.test.httpRequestor=StandardHttpRequestor -Pcom.dropbox.test.authInfoFile=../auth_output integrationTest && + ./gradlew -Pcom.dropbox.test.httpRequestor=StandardHttpRequestor -Pcom.dropbox.test.authInfoFile=../auth_output proguardTest + + publish: + runs-on: ubuntu-latest + if: github.repository == 'dropbox/dropbox-sdk-java' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' + needs: [build] + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Gradle Wrapper Validation + uses: gradle/actions/wrapper-validation@v3 + + - name: Install JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 11 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.9.14' + - run: python -m pip install ply && pip install six + + - name: Grant execute permissions + run: chmod +x gradlew && chmod +x update-submodules + + - name: Update submodules + run: ./update-submodules + + - name: Upload Artifacts + run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel --no-configuration-cache --stacktrace + env: + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} + + - name: Retrieve version + run: | + echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV + + - name: Publish Release to Maven Central + run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel + if: "!endsWith(env.VERSION_NAME, '-SNAPSHOT')" + env: + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} + + - name: Upload Test Reports + uses: actions/upload-artifact@v3 + with: + name: TestReports + path: | + core/build/reports/ + android/build/reports/ + + - name: Upload JavaDocs + uses: actions/upload-artifact@v3 + with: + name: JavaDocs + path: | + core/build/docs/javadoc/ + android/build/docs/javadoc/ + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: BuildArtifacts + path: | + core/build/distributions/ + android/build/distributions/ diff --git a/.gitignore b/.gitignore index a224ce262..129b3ae18 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # Gradle .gradle/ +out/ build/ +core/build/* +!core/build/generated_stone_source/ # Maven build output folder /target/ @@ -9,10 +12,9 @@ build/ intellij/ .idea/ *.iml -gradle.properties local.properties -# Output file when rendering ReadMe.md locally. +# Output file when rendering README.md locally. /ReadMe.html # editor temp files @@ -26,3 +28,7 @@ classyshark* # macOS *.DS_Store + +# Integration Test Auth Info +auth_output + diff --git a/.gitmodules b/.gitmodules index e41b65710..d337706b0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ -[submodule "src/main/stone"] - path = src/main/stone +[submodule "core/src/main/stone"] + path = core/src/main/stone url = https://github.com/dropbox/dropbox-api-spec.git -[submodule "stone"] - path = stone +[submodule "core/stone"] + path = core/stone url = https://github.com/dropbox/stone.git diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..bea01703d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,1501 @@ +7.0.0 (2024-04-29) +--------------------------------------------- +- [#537](https://github.com/dropbox/dropbox-sdk-java/pull/537) Remove cert pinning from the SDK +- [#539](https://github.com/dropbox/dropbox-sdk-java/pull/539) Exclude pycache from task input key on StoneTask + +6.1.0 (2024-03-19) +--------------------------------------------- +- [#527](https://github.com/dropbox/dropbox-sdk-java/pull/527) Adds nullability annotations to data models for improved interop with Kotlin +- [#530](https://github.com/dropbox/dropbox-sdk-java/pull/530) Fix StoneTask cache misses + +6.0.0 (2023-11-30) +--------------------------------------------- +Android dependencies have moved to the drop-sdk-java/android directory of this repo and published as a separate artifact. +To migrate, add the following to your dependencies block: + +```@groovy +dependencies { + implementation 'com.dropbox.core:dropbox-android-sdk:6.1.0' +} +``` + +- [#504](https://github.com/dropbox/dropbox-sdk-java/pull/504) Cleanup python codegen and formats java.stoneg.py +- [#503](https://github.com/dropbox/dropbox-sdk-java/pull/503) Point to latest stone +- [#501](https://github.com/dropbox/dropbox-sdk-java/pull/501) Updated to `jakarta.servlet` to unblock adoption of Spring Boot v3, **this is a breaking change if you use `DbxSessionStore`.** + - Improved generateStone task to properly declare inputs and outputs +- [#500](https://github.com/dropbox/dropbox-sdk-java/pull/500) Build Improvements + - Added better error messaging when trying to build the project without submodules initialized. + - Removed obsolete javadoc flag + - Updated test dependencies + - Removed redundant gradle wrappers +- [#499](https://github.com/dropbox/dropbox-sdk-java/pull/499) Update java.stoneg.py for python 3.10 compatability +- [#486](https://github.com/dropbox/dropbox-sdk-java/pull/486) Makes project compatible with config cache + - Removed redundant gradle wrappers + - Updated to Gradle 7.6.2 + - Updated test dependencies + - Removed obsolete javadoc flag + + +5.4.5 (2023-05-16) +--------------------------------------------- +- Update jackson-core to 2.15.0 [#492](https://github.com/dropbox/dropbox-sdk-java/issues/476) + +5.4.4 (2022-10-17) +--------------------------------------------- +- [Downgrade target back down to Java 1.8 as requested by a user. #476](https://github.com/dropbox/dropbox-sdk-java/issues/476) + +5.4.3 (2022-10-14) +--------------------------------------------- +- Fix: [Make Kotlin optional in OSGI Import-Package statement](https://github.com/dropbox/dropbox-sdk-java/pull/473) + +5.4.2 (2022-10-03) +--------------------------------------------- +- Update dropbox-api-spec to point to more recent version (Sept 01, 2022) [#431](https://github.com/dropbox/dropbox-sdk-java/pull/431) +- Generated stone api code is now checked into repository for greater visibility of spec changes [#418](https://github.com/dropbox/dropbox-sdk-java/pull/418) +- Renamed `master` -> `main` [#424](https://github.com/dropbox/dropbox-sdk-java/pull/424) +- Added gradle version catalog [#414](https://github.com/dropbox/dropbox-sdk-java/pull/414)[#436](https://github.com/dropbox/dropbox-sdk-java/pull/436) +- Moved android code from `dropbox-sdk-java` into `dropbox-sdk-android` [#429](https://github.com/dropbox/dropbox-sdk-java/pull/429) +- Converted Java code to Kotlin in `dropbox-sdk-android` while mostly maintaining binary compatibility. [#430](https://github.com/dropbox/dropbox-sdk-java/pull/430) +- Binary Compatibility Changes since `v5.3.0`[#449](https://github.com/dropbox/dropbox-sdk-java/pull/449) ([see changes](https://github.com/dropbox/dropbox-sdk-java/pull/441/commits/fd9b0a56152d72cd8310c849dbbe42ee239ff371?diff=unified&w=0)): + - The following classes are now `final` and cannot be extended. + - `com.dropbox.core.android.Auth` + - `com.dropbox.core.android.DbxOfficialAppConnector` + - In `com.dropbox.core.android.AuthActivity`, constants for the Intent Extra Keys were moved to `com.dropbox.core.android.internal.DropboxAuthIntent` +- Fixed NPE bug in login flow [#347](https://github.com/dropbox/dropbox-sdk-java/issues/347) + +5.4.1 (2022-09-27) +--------------------------------------------- +- Republished 5.3.0 due to premature release of 5.4.0 + +5.4.0 (2022-09-26) +--------------------------------------------- +- Published prematurely due to misconfiguration of GH Action, do not use. + +5.3.0 (2022-07-20) [Milestone](https://github.com/dropbox/dropbox-sdk-java/milestone/1?closed=1) +--------------------------------------------- +- Update dropbox-api-spec to point to more recent version (July 13, 2022) [#400](https://github.com/dropbox/dropbox-sdk-java/pull/400) +- The generateStone Gradle Task now supports Gradle Configuration Caching [#390](https://github.com/dropbox/dropbox-sdk-java/pull/390) +- API Backwards Compatibility Fix - Won't crash when new types are returned from API [#395](https://github.com/dropbox/dropbox-sdk-java/pull/395) +- Version Bumps in the Dropbox Android Sample Apps [#391](https://github.com/dropbox/dropbox-sdk-java/pull/391) + +5.2.0 (2022-04-04) +--------------------------------------------- +- Update jackson-core to 2.7.9 + +5.1.1 (2021-12-17) +--------------------------------------------- +- Bug fixes for build breakages in 5.1.0 + +5.1.0 (2021-12-09) +--------------------------------------------- +- Upgrade to Gradle 7.2 +- Bumped Java source and target compatability to 11 + +5.0.0 (2021-10-12) +--------------------------------------------- +- Upgrade OKHttp to V4 +- Mark PipedRequestBody as a one shot request to avoid potential data corrupting during upload +- Expose progress listener for upload progress via getOutputStream, useful for concurrent uploads + +4.0.1 (2021-08-26) +--------------------------------------------- +- Return an error when we have an invalid access token +- DbxRefreshResult Expires In returns the right time + +4.0.0 (2021-03-29) +--------------------------------------------- +- update Java tests to use Google's Truth library +- bump target Java version from 6 to 8 + +3.2.1 (2021-03-29) +--------------------------------------------- +- revert Java version bump (back to Java 6) + +3.2.0 (2021-03-22) +--------------------------------------------- +- update Java tests to use Google's Truth library +- bump target Java version from 6 to 8 + +3.1.5 (2020-08-11) +--------------------------------------------- +- Fix bug in authorization flow. +- Files Namespace + - Add internal_error to SearchError union. + - Add locked to LookupError union. + - Add cant_move_into_vault to RelocationError union. + - Add MoveIntoVaultError union. + - Add SearchMatchFieldOptions struct. + - Add optional match_field_options to SearchV2Arg struct. + - Doc/example changes. +- Sharing Namespace + - Add is_vault to SharePathError union. + - Add invalid_shared_folder to AddFolderMemberError union. +- Team Namespace + - Make members field of LegalHoldsPolicyUpdateArg struct optional. + - Add app_folder_removal_not_supported to RevokeLinkedAppError union. + - Doc/example changes. +- Team Log Namespace + - Add auto_approve to InviteMethod union. + - Add moved_from_another_team to InviteMethod union. + - Add moved_from_another_team to MemberStatus union. + - Add no_one to SharedLinkVisibility union. + - Add optional new_team to MemberChangeStatusDetails struct. + - Add optional previous_team to MemberChangeStatusDetails struct. + - Add external_sharing_create_report_details to EventDetails union. + - Add external_sharing_report_failed to EventDetails union. + - Add content_administration_policy_changed_details to EventDetails +union. + - Add external_sharing_create_report to EventType union. + - Add external_sharing_report_failed to EventType union. + - Add content_administration_policy_changed to EventType union. + - Add send_for_signature_policy_changed_details to EventDetails union. + - Add external_sharing_create_report to EventTypeArgs union. + - Add external_sharing_report_failed to EventTypeArgs union. + - Add content_administration_policy_changed to EventTypeArgs union. + - Add send_for_signature_policy_changed to EventTypeArgs union. + - Add SendForSignaturePolicy union. + - Add ExternalSharingCreateReportDetails struct. + - Add ExternalSharingReportFailedDetails struct. + - Add ContentAdministrationPolicyChangedDetails struct. + - Add SendForSignaturePolicyChangedDetails struct. + - Add ExternalSharingCreateReportType struct. + - Add ExternalSharingReportFailedType struct. + - Add ContentAdministrationPolicyChangedType struct. + - Add SendForSignaturePolicyChangedType struct. + +3.1.4 (2020-06-08) +--------------------------------------------- +- Support include_granted_scopes in OAuth2 flow. +- Support new scope parameter when refreshing DbxCredential. +- Files Namespace: + - Update comments on FileLockMetadata struct + - Add optional lockholder_account_id to FileLockMetadata struct + - Add optional invalid_argument to SearchError union + - Add get_thumbnail:2 route + - Add ThumbnailV2Error union + - Add MinimalFileLinkMetadata struct + - Add PreviewResult struct + - Add SharedLinkFileInfo struct + - Add PathOrLink union + - Add ThumbnailV2Arg struct + - Change UnlockFileArg's path type to WritePathOrId + - Change LockFileArg's path type to WritePathOrId + +- Update query description on SearchArg Struct, SearchV2Arg Struct +- Update move:2 and move_batch:2 route descirption + +- File Properties Namespace + - Update AddPropertiesArg description + - Add duplicate_property_groups to InvalidPropertyGroupError Union + - Update property_groups description on AddPropertiesError Union + +- Shared Links Namespace: + - Fix Typo + +- Team Groups Namespace: + - Add add_creator_as_owner to GroupCreateArg struct + - Update comments for async_job_id on GroupMembersChangeResult struct + +- Team Legal Holds Namespace: + - Add exporting to LegalHoldStatus union + - Add invactive_legal_hold to LegalHoldsListHeldRevisionsError union + - Add legal_hold_policy_not_found to LegalHoldsPolicyUpdateError union + + - Add MembersInfo struct + - Add LegalHoldsError union + + - mark legal_holds/export_policy to deprecated + - mark legal_holds/export_policy_job_status/check to deprecated + + - Change LegalHoldPolicy's members type to MembersInfo + - Update LegalHoldPolicy's examples + - Update LegalHoldsPolicyCreateError to extend LegalHoldsError + - Update LegalHoldsGetPolicyError to extend LegalHoldsError + - Update LegalHoldsListPoliciesError to extend LegalHoldsError + - Update LegalHoldsPolicyUpdateError to extend LegalHoldsError + - Deleted deprecated routes legal_holds/export_policy and legal_holds/export_policy_job_status/check + - Added comments to legalHoldPolicy struct + - Add more detailed comments to LegalHoldsListHeldRevisionResult + - Fix misc typos in comments + +- Team_log namespace: + - Add team_exceeded_legal_hold_quota to LegalHoldsPolicyCreateError union + - Change LegalHoldsListHeldRevisionsError and LegalHoldsPolicyReleaseError to extend LegalHoldsError + - Add optional EventTypeArg event_type to GetTeamEventsArg struct + - Add invalid_filters to GetTeamEventsError union + +- Team Log Namespace: + - Remove lifespan comment + +- Team Log Generated Namesapce: + - Add team_invite_details to ActionDetails union + - Add optional has_linked_apps to JoinTeamDetails struct + - Add optional has_linked_devices to JoinTeamDetails struct + - Add optional has_linkeD_shared_folders to JoinTeamDetails struct + - Update comments in JoinTeamDetails struct + - Update JoinTeamDetails struct examples + - Update LegalHoldsExportAHoldDetails struct examples + - Update PaperContentRemoveFromFolderDetails target_asset_index to be optional + - Update PaperContentRemoveFromFolderDetails parent_asset_index to be optional + - Add shared_content_link to SharedLinkSettingsAddExpirationDetails struct + - Update SharedLinkSettingAddExpirationDetails struct examples + - Add optional shared_content_link to SharedLinkSettingsAddPasswordDetails struct + - Add optional shared_content_link to SharedLinkSettingsAllowDownloadDisabledDetails struct + - Add optional shared_content_link to SharedLinkSettingsAllowDownloadEnabledDetails struct + - Add optional shared_content_link to SharedLinkSettingsChangeAudienceDetails struct + - Add optional shared_content_link to SharedLinkSettingsChangeExpirationDetails struct + - Add optional shared_content_link to SharedLinkSettingsChangePasswordDetails struct + - Add optional shared_content_link to SharedLinkSettingsRemoveExpirationDetails struct + - Add optional shared_content_link to SharedLinkSettingsRemovePasswordDetails struct + - Add file_locking_status_changed_details to EventDetails union + - Add rewind_folder_details to EventDetails union + - Add legal_holds_export_cancelled_details to EventDetails union + - Add legal_holds_export_downloaded_details to EventDetails union + - Add legal_holds_export_removed_details to EventDetails union + - Add create_team_invite_link_details to EventDetails union + - Add delete_team_invite_link_details to EventDetails union + - Add binder_add_page_details to EventDetails union + - Add binder_add_section_details to EventDetails union + - Add binder_remove_page_details to EventDetails union + - Add binder_remove_section_details to EventDetails union + - Add binder_rename_page_details to EventDetails union + - Add binder_rename_section_details to EventDetails union + - Add binder_reorder_page_details to EventDetails union + - Add binder_reorder_section_details to EventDetails union + - Add rewind_policy_changed_details to EventDetails union + - Add team_sharing_whitelist_subjects_changed_details to EventDetails union + - Add web_sessions_change_active_session_limit_details to EventDetails union + - Add enterprise_settings_locking_details to EventDetails union + - Add file_locking_lock_status_changed to EventType union + - Add rewind_folder to EventType union + - Add legal_holds_export_cancelled to EventType union + - Add legal_holds_export_downloaded to EventType union + - Add legal_holds_export_removed to EventType union + - Add create_team_invite_link to EventType union + - Add delete_team_invite_link to EventType union + - Add binder_add_page to EventType union + - Add binder_add_section to EventType union + - Add binder_remove_page to EventType union + - Add binder_remove_section to EventType union + - Add binder_rename_page to EventType union + - Add binder_rename_section to EventType union + - Add binder_reorder_page to EventType union + - Add binder_reorder_section to EventType union + - Add rewind_policy_changed to EventType union + - Add team_sharing_whitelist_subjects_changed to EventType union + - Add web_sessions_change_active_session_limit to EventType union + - Add enterprise_settings_locking to EventType union + + - Add TeamInviteDetails struct + - Add InviteMethod union + - Add LockStatus union + - Add RewindPolicy union + - Add FileLockingLockStatusChangedDetails struct + - Add RewindFolderDetails struct + - Add LegalHoldsExportCancelledDetails struct + - Add LegalHoldsExportDownloadedDetails struct + - Add LegalHoldsExportRemovedDetails struct + - Add CreateTeamInviteLinkDetails struct + - Add DeleteTeamInviteLinkDetails struct + - Add BinderAddPageDetails struct + - Add BinderAddSectionDetails struct + - Add BinderRemovePageDetails struct + - Add BinderRemoveSectionDetails struct + - Add BinderRenamePageDetails struct + - Add BinderRenameSectionDetails struct + - Add BinderReorderPageDetails struct + - Add BinderReorderSectionDetails struct + - Add RewindPolicyChangedDetails struct + - Add TeamSharingWhitelistSubjectsChangedDetails struct + - Add WebSessionsChangeActiviteSessionLimitDetails struct + - Add EnterpriseSettingsLockingDetails struct + - Add FileLockingLockStatusChangedType struct + - Add RewindFolderType struct + - Add LegalHoldsExportCancelledType struct + - Add LegalHoldsExportDownloadedType struct + - Add LegalHoldsExportRemovedType struct + - Add CreateTeamInviteLinkType struct + - Add DeleteTeamInviteLinkType struct + - Add BinderAddPageType struct + - Add BinderAddSectionType struct + - Add BinderRemovePageType struct + - Add BinderRemoveSectionType struct + - Add BinderRenamePageType struct + - Add BinderRenameSectionType struct + - Add BinderReorderPageType struct + - Add BinderReorderSectionType struct + - Add RewindPolicyChangedType struct + - Add TeamSharingWhitelistSubjectsChangedType struct + - Add WebSessionsChangeActiveSessionLimitType struct + - Add EnterpriseSettingsLockingType struct + - Added AccountState union + - Added AccountLockOrUnlockedType struct + - Added AccountLockOrUnlockedDetails struct + - Added MemberSendInvitePolicy union + - Added MemberSendInvitePolicyChangedType struct + - Added MemberSendInvitePolicyChangedDetails struct + - Added a new tag first_party_token_exchange to LoginMethod union + - Added new tags account_lock_or_unlocked_details and member_send_invite_policy_changed_details to EventDetails union + - Added new tags account_lock_or_unlocked and member_send_invite_policy_changed to EventType union + - Added a new field file_size to FileOrFolderLogInfo and FileLogInfo struct + - Added a new field file_count to FolderLogInfo struct + - Add NoExpirationLinkGenCreateReportDetails, NoExpirationLinkGenReportFailedDetails, NoPasswordLinkGenCreateReportDetails, NoPasswordLinkGenReportFailedDetails, NoPasswordLinkViewCreateReportDetails, NoPasswordLinkViewReportFailedDetails, OutdatedLinkViewCreateReportDetails, OutdatedLnkViewReportFailedDetails structs to the EventDetails union + - Add NoExpirationLinkGenCreateReportType, NoExpirationLinkGenReportFailedType, NoPasswordLinkGenCreateReportType, NoPasswordLinkGenReportFailedType, NoPasswordLinkViewCreateReportType, NoPasswordLinkViewReportFailedType, OutdatedLinkViewCreateReportType, OutdatedLinkViewReportFailedType structs to the EventType union + - Add deprecated tag to was_linked_apps_truncated, was_linked_devices_truncated, was_link_shared_folders_truncated parameters in JoinTeamDetails struct + - Added the EventTypeArg union + +- Users Namespace: + - Add file_locking to UserFeature union + - Add file_locking to UserFeatureValue + - Update example for UserFeaturesGetaluesBatchArg + + - Add FileLockingValue union + +- Cloud Docs Namespace + - added a new route property is_cloud_doc_auth indicating whether the endpoint is a Dropbox cloud docs endpoint which takes cloud docs auth token. + - Add get_content, get_metadata, rename, unlock, and lock routes + - Add corresponding args, results, and errors + +- Shared Links Namespace + - Update SharedLinkSettings example + +- Stone CFG Namespace + - Update auth type string patterns + - Update host string patterns + - Update style string patterns + - Update select_admin_mode string patterns + +- Team Secondary Mails Namespace: + - Remove is_preview from route add, resend_verification_emails, and delete + +- Team Members Namespace: + - Update comment for retain_team_shares arg of MembersRemoveArg + +3.1.3 (2019-12-17) +--------------------------------------------- +- Fix mobile sign in bug. + +3.1.2 (2019-12-14) +--------------------------------------------- +- Account namespace: + - Added set_profile_photo end point. +- Auth namespace: + - Added route_access_denied to AuthError. +- Check namespace: + - Added this namespace for authentication test +- Common namespace: + - Added SecondaryEmail struct. +- Contacts namespace: + - Added scope route attribute to delete_manual_contacts end point. +- Files namespace: + - Added scope route attribute to the following end points: + - get_metadata + - list_folder/longpoll + - list_folder + - list_folder/continue + - list_folder/get_latest_cursor + - download + - download_zip + - export + - upload_session/start + - upload_session/append + - upload_session/append:2 + - upload_session/finish + - upload_session/finish_batch + - upload_session/finish_batch/check + - search + - upload + - create_folder + - create_folder:2 + - create_folder_batch + - create_folder_batch/check + - delete + - delete:2 + - delete_batch + - delete_batch/check + - permanently_delete + - copy + - copy:2 + - copy_batch + - copy_batch:2 + - copy_batch/check + - copy_batch/check:2 + - move + - move:2 + - move_batch + - move_batch:2 + - move_batch/check:2 + - move_batch/check + - get_thumbnail + - get_thumbnail_batch + - get_preview + - list_revisions + - restore + - get_temporary_link + - get_temporary_upload_link + - copy_reference/get + - copy_reference/save + - save_url + - save_url/check_job_status + - Added new search:2 end point. + - Added new search/continue:2 end point + - Added new lock_file_batch end point + - Added new unlock_file_batch end point + - Added new get_file_lock_batch end point + - Added New MetadataV2 union + - Added new HighlightSpan struct + - Added new FileLockMetadata struct + - Added file_lock_info to FileMetadata struct + - Added template_error to ListFolderError union + - Added retry_error to ExportError union +- File_properties namespace: + - Added scope route attribute to to the following end points: + - properties/add + - properties/overwrite + - properties/update + - properties/remove + - properties/search + - templates/add_for_user + - templates/add_for_team + - templates/get_for_user + - templates/get_for_team + - templates/update_for_user + - templates/update_for_team + - templates/list_for_user + - templates/list_for_team + - templates/remove_for_user + - templates/remove_for_team +- File_requests namespace: + - Added optional scope route attribute to to the following end points: + - list:2 + - list/continue + - list + - get + - create + - update + - count + - delete + - delete_all_closed + - Updated docstrings for CreateFileRequestError +- Team namespace: + - Added scope route attribute to to the following end points: + - legal_holds/release_policy + - members/secondary_emails/add + - members/secondary_emails + - get_info + - token/get_authenticated_admin + - features/get_values + - devices/list_member_devices + - devices/list_members_devices + - devices/revoke_device_session + - devices/revoke_device_session_batch + - team_folder/create + - team_folder/rename + - team_folder/list + - team_folder/list/continue + - team_folder/get_info + - team_folder/activate + - team_folder/archive + - team_folder/archive/check + - team_folder/permanently_delete + - groups/list + - groups/list/continue + - groups/get_info + - groups/create + - groups/delete + - groups/update + - groups/members/add + - groups/members/remove + - groups/members/set_access_type + - groups/members/list + - groups/members/list/continue + - linked_apps/list_member_linked_apps + - linked_apps/list_members_linked_apps + - linked_apps/revoke_linked_app + - linked_apps/revoke_linked_app_batch + - member_space_limits/set_custom_quota + - member_space_limits/remove_custom_quota + - member_space_limits/get_custom_quota + - member_space_limits/excluded_users/add + - member_space_limits/excluded_users/remove + - member_space_limits/excluded_users/list + - members/list + - members/list/continue + - members/get_info + - members/add + - members/add/job_status/get + - members/set_admin_permissions + - members/send_welcome_email + - members/remove + - members/remove/job_status/get + - members/suspend + - members/unsuspend + - members/recover + - members/move_former_member_files + - namespaces/list + - namespaces/list/continue + - reports/get_storage + - reports/get_activity + - reports/get_membership + - Added new legal_holds/release_policy end point. + - Added new members/secondary_emails/add end point. + - Added new members/secondary_emails/resend_verification_emails + - Added new members/secondary_emails/delete end point + - Added new members/set_profile_photo end point + - Added new members/delete_profile_photo end point + - Added secondary_emails to MemberProfile struct + - Added invited_on to MemberProfile struct + - Added retain_team_shares in MembersRemoveArg Struct + - Added the following to MembersRemoveError union + - cannot_retain_shares_when_data_wiped + - cannot_retain_shares_when_no_account_kept + - cannot_retain_shares_when_team_external_sharing_off + - cannot_keep_account + - cannot_keep_account_under_legal_hold + - cannot_keep_account_required_to_sign_tos + - Updated docstring for DateRange +- Team_log namespace: + - Add scope route attribute to the following end points: + - get_events + - Added unlink_device to QuickActionType union + - Added enterprise_console to AccessMethodLogInfo + - Added was_linked_apps_truncated, was_linked_devices_truncated, was_linked_shared_folders_truncated to JoinTeamDetails struct + - Added web_session, qr_code, apple_oauth to LoginMethod union + - Added enterprise_admin to TrustedNonTeamMemberType union + - Added team to TeamMemberLogInfo struct + - Added is_shared_namespace to NamespaceRelativePathLogInfo struct + - Added organization_team to ContextLogInfo union + - Added legal_holds to EventCategory union + - Added notification_type to AccountCaptureNotificationEmailsSentDetails struct + - Added the following to EventDetails union: + - folder_overview_description_changed_details + - folder_overview_item_pinned_details + - folder_overview_item_unpinned_details + - legal_holds_activate_a_hold_details + - legal_holds_add_members_details + - legal_holds_change_hold_details_details + - legal_holds_change_hold_name_details + - legal_holds_export_a_hold_details + - legal_holds_release_a_hold_details + - legal_holds_remove_members_details + - legal_holds_report_a_hold_details + - member_delete_profile_photo_details + - member_set_profile_photo_details + - pending_secondary_email_added_details + - secondary_email_deleted_details + - secondary_email_verified_details + - paper_published_link_change_permission_details + - export_members_report_fail_details + - file_transfers_file_add_details + - file_transfers_transfer_delete_details + - file_transfers_transfer_download_details + - file_transfers_transfer_send_details + - file_transfers_transfer_view_details + - shared_content_restore_invitees_details + - shared_content_restore_member_details + - device_approvals_add_exception_details + - device_approvals_remove_exception_details + - file_locking_policy_changed_details + - file_transfers_policy_changed_details + - password_strength_requirements_change_policy_details + - smarter_smart_sync_policy_changed_details + - tfa_add_exception_details + - tfa_remove_exception_details + - watermarking_policy_changed_details + - changed_enterprise_admin_role_details + - changed_enterprise_connected_team_status_details + - ended_enterprise_admin_session_details + - ended_enterprise_admin_session_deprecated_details + - started_enterprise_admin_session_details + - shared_link_settings_add_expiration_details + - shared_link_settings_add_password_details + - shared_link_settings_allow_download_disabled_details + - shared_link_settings_allow_download_enabled_details + - shared_link_settings_change_audience_details + - shared_link_settings_change_expiration_details + - shared_link_settings_change_password_details + - shared_link_settings_remove_expiration_details + - shared_link_settings_remove_password_details + - Added the following to EventType union: + - folder_overview_description_changed + - folder_overview_item_pinned + - folder_overview_item_unpinned + - legal_holds_activate_a_hold + - legal_holds_add_members + - legal_holds_change_hold_details + - legal_holds_change_hold_name + - legal_holds_export_a_hold + - legal_holds_release_a_hold + - legal_holds_remove_members + - legal_holds_report_a_hold + - member_delete_profile_photo + - member_set_profile_photo + - pending_secondary_email_added + - secondary_email_deleted + - secondary_email_verified + - paper_published_link_change_permission + - export_members_report_fail + - file_transfers_file_add + - file_transfers_transfer_delete + - file_transfers_transfer_download + - file_transfers_transfer_send + - file_transfers_transfer_view + - shared_content_restore_invitees + - shared_content_restore_member + - device_approvals_add_exception + - device_approvals_remove_exception + - file_locking_policy_changed + - file_transfers_policy_changed + - password_strength_requirements_change_policy + - smarter_smart_sync_policy_changed + - tfa_add_exception + - tfa_remove_exception + - watermarking_policy_changed + - changed_enterprise_admin_role + - changed_enterprise_connected_team_status + - ended_enterprise_admin_session + - ended_enterprise_admin_session_deprecated + - started_enterprise_admin_session +- Team_policies namespace: + - Added disabled in TwoStepVerificationState union + - Added new unions PasswordControlMode, SmarterSmartSyncPolicyState, FileLockingPolicyState +- Paper namespace: + - Updated doctoring for the namespace + - Updated doctoring for PaperApiBaseError + - Added PaperFolderCreateArg, PaperFolderCreateResult structs + - Added new PaperFolderCreateError union + - Updated docstring for following end points: + - docs/folder_users/list + - docs/folder_users/list/continue + - docs/sharing_policy/get + - docs/sharing_policy/set + - docs/archive + - docs/permanently_delete + - docs/download + - docs/get_folder_info + - docs/users/add + - docs/users/remove + - docs/users/list + - docs/users/list/continue + - docs/list + - docs/list/continue + - docs/create + - docs/update + - folders/create + - Added scope route attribute to the following end points: + - docs/folder_users/list + - docs/folder_users/list/continue + - docs/sharing_policy/get + - docs/sharing_policy/set + - docs/archive + - docs/permanently_delete + - docs/download + - docs/get_folder_info + - docs/users/add + - docs/users/remove + - docs/users/list + - docs/users/list/continue + - docs/list + - docs/list/continue + - docs/create + - docs/update +- Sharing namespace: + Add scope route attribute to the following end points: + - get_shared_link_metadata + - list_shared_links + - modify_shared_link_settings + - create_shared_link_with_settings + - revoke_shared_link + - get_shared_link_file + - add_file_member + - update_file_member + - get_file_metadata + - get_file_metadata/batch + - list_file_members + - list_file_members/batch + - list_file_members/continue + - list_received_files + - list_received_files/continue + - remove_file_member + - remove_file_member_2 + - relinquish_file_membership + - unsharp_file + - list_folders + - list_folders/continue + - list_mountable_folders + - list_mountable_folders/continue + - get_folder_metadata + - list_folder_members + - list_folder_members/continue + - share_folder + - check_share_job_status + - check_job_status + - unsharp_folder + - transfer_folder + - update_folder_policy + - add_folder_member + - remove_folder_member + - check_remove_member_job_status + - update_folder_member + - mount_folder + - unmount_folder + - relinquish_folder_membership + - set_access_inheritance + - Add parent_folder_name to SharedFolderMetadataBase +- Users namespace: + - Added scope route attribute to the following end points: + - get_account + - get_current_account + - get_space_usage + - get_account_batch + - Added user_within_team_space_used_cached to TeamSpaceAllocation struct + - Added new features/get_values end point + +3.1.1 (2019-6-17) +--------------------------------------------- +- Fix Fix protocol and ciphersuite selection to enable TLSv1.2 and TLSv1.1 +- Update to Latest API specs: + File namespace: + - Added new ExportInfo struct + - Added new fields (is_downloadable, export_info) to FileMetadata + - Added new include_non_downloadable_files to ListFolderArg + - Added new ExportMetadata, ExportArg, Export Result Structs + - Added new ExportError union + - Added new /export route + + Sharing namespace: + - Added password field to LinkAudience + - Added effective_audience and link_access_level fields to LinkPermissions struct + - Updated docstrings for LinkPermissions + - Added audience and access fields to SharedLinkSettings struct + - New LinkAccessLevel and RequestedLinkAccessLevel union + - Added new create_view_link and create_edit_link fields to FileAction union + + Team_log namespace: + - New types added + + Team_policies namespace: + - New TwoStepVerificationState union + + Team_reports namespace: + - New TemporaryFailureReason union added. + +3.1.0 (2019-5-6) +--------------------------------------------- +- Early Access on Short-live token feature. +- Update to Latest API specs: + Auth Namespace: + - Add missing_scope into AuthError + + File_requests namespace: + - Add list and list/continue endpoints. + - Add count endpoint. + - Add delete and delete_all_closed endpoints. + + Files namespace: + - Add unsupported_file to DownloadError. + - Add upper bound 9999 to start field in SearchArg. + - Add unsupported_content_type to LookupError. + - Add cant_move_shared_folder to RelocationError. + - Add email_not_verified and unsupported_file to GetTemporaryLinkError. + + Seen_state namespace: + - Add mobile_ios, mobile_android and api into PlatformType. + - deprecate mobile in PlatformType. + + Sharing namespace: + - Change shared_link_already_exists under CreateSharedLinkWithSettingsError from void to SharedLinkAlreadyExistsMetadata. + - Add banned_member to AddFolderMemberError. + + Team namespace: + - Add profile_photo_url and suspended_on into MemberProfile. + + Team_log namespace: + - Add reset_password and restore_file_or_folder to QuickActionType. + - Add google_oauth to LoginMethod. + - Add australia_only and japan_only to PlacementRestriction. + - Add trusted_teams to EventCategory. + - In event details. + - Add integration_connected_details. + - Add integration_disconnected_details. + - Add file_request_delete_details. + - Add guest_admin_signed_in_via_trusted_teams_details. + - Add guest_admin_signed_out_via_trusted_teams_details. + - Add member_add_external_id_details. + - Add member_change_external_id_details. + - Add member_remove_external_id_details + - Add integration_policy_changed_details. + - Add paper_default_folder_policy_changed_details. + - Add paper_desktop_policy_changed_details. + - Add team_extensions_policy_changed_details. + - Add guest_admin_change_status_details. + - In EventType + - Add integration_connected. + - Add integration_disconnected. + - Add file_request_delete. + - Add guest_admin_signed_in_via_trusted_teams. + - Add guest_admin_signed_out_via_trusted_teams. + - Add member_add_external_id. + - Add member_change_external_id. + - Add member_remove_external_i. + - Add integration_policy_change. + - Add paper_default_folder_policy_change. + - Add paper_desktop_policy_changed. + - Add team_extensions_policy_changed. + - Add guest_admin_change_status. + + stone_cfg: + Add scope into route attribute. + +3.0.11 (2018-12-12) +--------------------------------------------- +- Update to Latest API specs: + - Common Namespace: + - Allow DisplayNameLegacy to support a name of zero chars + - Force matching dot character in alias EmailAddress + - File_properties namespace: + - Doesn’t allow app folder app to access file property endpoints. + - Files namespace: + - Create copy_batch:2 and move_batch:2 endpoints. Deprecate existing copy_batch and move_batch. + - Contacts namespace: + - New namespace + - New routes: delete_manual_contacts and delete_manual_contacts_batch + - New argument structs for new routes + - Sharing namespace: + - Add no_one option to LinkAudience union + - Sharing_files namespace: + - Doesn’t allow app folder app to access sharing files endpoints. + - Teams namespace: + - Add is_disconnected boolean to RemovedStatus struct + - Add error response type to namespace/list route + - Only Team apps with Team member file access can access team/properties endpoints. + - Team_log namespace: + - New event types added + +3.0.10 (2018-10-11) +--------------------------------------------- +- Update to Latest API specs: + - Files Namespace: + - Updated doc strings. + - Team_log Namespace: + - Updated event docstrings. + - New reset field for loading events with a cursor. + - New event types added. + - Team_policies Namespace: + - New CameraUploadsPolicyState union. + +3.0.9 (2018-09-15) +--------------------------------------------- +- Update to Latest API specs: + - files namespace: + - Increased size limit for download_zip endpoint. + - Update documentation for data transport call limit. + - Added get_temporary_upload_link endpoint. + - paper namespace: + - Added invite_editor to FileAction. + - Added access_inheritance to MembershipInfo. + - team_log namespace: + - Added more event types and details. + - team: + - Added members/move_former_member_files endpoint. + - Added members/move_former_member_files/job_status/check endpoint. +- Add ProgressListener to upload and download. +- Change to include team_id field in auth finish class + +3.0.8 (2018-05-22) +--------------------------------------------- +- Update to Latest API specs: + - Namespace Files: + - Added new too_large error type for uploads. + - New documentation. + - Namespace Team: + - Add is_directory_restricted attribute to memberprofile, memberaddarg. + - Add new_is_directory_restricted to membersetprofilearg. + - Namespace Team_log: + - Additional documentation. +- Add asAdmin to DbxTeamClientV2. +- Support SSL_* ciphers in ALLOWED_CIPHER_SUITES. + +3.0.7 (2018-04-13) +--------------------------------------------- +- Update to Latest API specs: + - Namespace file_properties: + - Updated comments. + - Namespace files: + - Added parent_rev attribute to deletearg. + - Added select_admin_mode attribute to relevant routes. + - Added too_many_write_operations error type to writeerror. + - New createfolderbatch endpoint and related datatypes. + - New fileid alias. + - New symlinkinfo struct on filemetadata. + - New syncsettings objects. + - New thumbnail sizes. + - New thumbnailmode object. + - Namespace seen_state: + - New namespace. + - Namespace sharing: + - Add seen_state.platformtype to userfilemembershipinfo. + - Added select_admin_mode attribute to relevant routes. + - Additional user info added to userinfo struct. + - New accessinheritance union. + - New set_access_inheritance for folderaction. + - New set_access_inheritance route. + - Updated docs. + - Namespace team: + - Add additional error types to membersremoveerror union. + - New hasteamselectivesync object. + - New selective sync settings included in various return objects and error types. + - New update_sync_settings route. + - Updated docstring. + - Updated docstrings. + - Namespace team_common: + - Added new memberspacelimittype union. + - Namespace team_log: + - Lots of updates to struct names and descriptions (note these routes and structs are still in preview and subject to further changes). + - Updated event types. + - Namespace team_policies: + - New showcasedownloadpolicy object. + - New showcaseenabledpolicy object. + - New showcaseexternalsharingpolicy object. + - Namespace users: + - Additional member space limit fields in teamspaceallocation struct. + - Updated routes with select_admin_mode attribute. +- Add withPathRoot to DbxClientV2. +- Make Android and GAE optional in OSGI Import-Package statements. + +3.0.6 (2018-01-14) +--------------------------------------------- +- Update to Latest API specs: + - Namespace common: + - New LanguageCode alias. + - Namespace file_properties: + - Updated docstrings. + - Namespace file_requests: + - Updated docstrings. + - Namespace files: + - New aliases and structs relating to shared links. + - Move shared_link to end of parameter list for ListFolderArg. + - Add mode to ListRevisionsArg. + - Namespace sharing: + - New UserFileMembershipInfo struct. + - Namespace team_folders: + - Updated doc strings. + - Additional async example. + - Namespace team_log: + - New TeamEventList alias. + - New autogenerated datatypes. + - Namespace team_policies: + - New TwoStepVerificationPolicy. + +3.0.5 (2017-10-07) +--------------------------------------------- +- Update to Latest API specs: + - Namespace common: + - new LanguageCode alias. + - Namespace file_properties: + - Updated docstrings. + - Namespace file_requests: + - Updated docstrings. + - Namespace files: + - New aliases and structs relating to shared links. + - Move shared_link to end of parameter list for ListFolderArg. + - Add mode to ListRevisionsArg. + - Namespace sharing: + - New UserFileMembershipInfo struct. + - Namespace team_folders: + - updated doc strings. + - additional async example. + - Namespace team_log: + - new TeamEventList alias. + - new autogenerated datatypes. + - Namespace team_policies: + - new TwoStepVerificationPolicy. + +3.0.4 (2017-09-19) +--------------------------------------------- +- Update to Latest API specs: + - General: + - Numerous updates to docstrings across all namespaces. + - Updated general route configuration to support select_admin_mode. + - Auth, Users, TeamReports, TeamPropertyTemplates, TeamDevices, TeamGroups, TeamLinkedApps Namespaces: + - Update route ownership. + - Common Namespace: + - Fix regular expression for DisplayName. + - Rename shared_folder to namespace_id for path root header. + - New aliases for OptionalNamePart and DisplayNameLegacy. + - Files Namespace: + - Clarify `WriteMode` documentation. + - Add Select-Admin badge to docs, remove list from business page. + - Support fileId for move api v2 endpoints. + - API_V2 delete_batch should grab one ns_lock when processing one namespace instead of holding all locks at beginning. + - Add FileId support to list_folder. + - Added changeset support for fileops and /rollback endpoint. + - Change default of allow_ownership_transfer to false. + - Get double the limit in list_revisions to include deleted and truncate later in controller. + - Add server_deleted timestamp to list_revisions. + - Revert changes to api delta that aren't backwards compatible. + - Add deleted_at to DeletedMetadata in list_folders, get_metadata. Add deleted_at to toplevel response, + add include_deleted as param in list_revisions. + - Update ownership. + - New attributes for ListFolderArg: included_mounted_folders, limit. + - New get_thumbnail_batch route and corresponding interfaces. + - SharedContentLinks Namespace: + - API changes for child exceptions. + - SharedLinks Namespace: + - Add max results limit of 1000 for /2/sharing/get_shared_links. + - Update sharing route ownership. + - Add link to list_shared_links in shared_link_already_exists error. + - SharingFiles Namespace: + - Add owner name as a new field to alpha sharing file metadata. + - SharingFolders Namespace: + - Make the internal endpoint take internal folder actions. + - Update route ownership. + - Added owner_display_names to SharedFolderMetadataBase. + - Updated PermissionDeniedReason union. + - StoneCfg Namespace: + - Add Select-Admin badge to docs, remove list from business page. + - Update route ownership. + - Team Namespace: + - Enable looking up if a team is in CDM. + - Update route generator to pass through team endpoint ownership. + - Update route ownership. + - Add route member_space_limits/set_custom_quota. + - Add route member_space_limits/remove_cusom_quota. + - Add route member_space_limits/get_custom_quota. + - Deprecate beta properites routes. + - TeamFolders Namespace: + - Update team folder APIs with some extra fields. + - Update route ownership. + - TeamLog Namespace: + - Start using v2 category index. + - Reduced strictness of pattern matching for IpAddress. + - New FileCommentNotificationPolicy union + - Multiple updated attribute names in unions. + - New Structs for new team_log objects + - TeamLogGenerated Namespace: + - Variable scheme for team events. + - Mark ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT event as under development. + - Make sure team policies event expose their own union (for API future proofing). + - Add device_info as data_gap for 2 event types. + - Save group info into participants field. + - Account capture pro-active email notifications - audit log. + - Fix schema of member_change_membershipe_type and member_space_limits_change_status. + - Make team_folder_change_status conform to previous_value/new_value convention. + - Fixes the variable schema of domain verification and account capture event types. + - Use common.Data stone type for the variable schema fields of team_activity_create_report. + - Introduce a new struct for team name. + - Fix comments related to sso events. + - TeamMembers Namespace: + - Return root ns_id on some call. + - Update ownership. + - Update NamePart? to be OptionalNamePart?. + - TeamNamespaces Namespace: + - Implement API V2 route team/namespaces/list. + - TeamPolicies Namespace: + - Add Office Add-In Policy to `get_current_account` return. + - Add new team policies for SSO Paper, RolloutMethod and PasswordStrength. + - Paper Namespace: + - New "docs/create" and "docs/update" routes and corresponding interfaces. + - File_properties Namespace: + - New routes and structs for the file properties and templates API functionality. + - File_requests Namespace: + - New routes and structs for the file_requests API functionality. + - Files_properties Namespace: + - removed in favor of file_properties. + - Properties Namespace: + - removed in favor of file_properties. + - Team_property_templates Namespace: + - removed in favor of file_properties. +- Add global response handlers. +- Add PathRootErrorException and AccessErrorException corresponding to 422 and 403 status codes. +- Add support for map data type in stone. +- Fix upload hanging in OKHttp3 when internet is cut off. + +3.0.3 (2017-05-02) +--------------------------------------------- +Fix the compatibility bug that cause sharing/get_file_metadata to crash. + +3.0.2 (2017-04-11) +--------------------------------------------- +- Update to latest API specs: + - Auth namespace: + - Added TokenFromOAuth1Arg, TokenFromOAuth1Result and TokenFromOAuth1Error. + - Added token/from_oauth1 rote. + - Added AccessError and PaperAccessError. + - Added InvalidAccountTypeError. + - Files namespace: + - Added UploadSessionFinishBatchLaunch and made it new return type for upload_session/finish_batch. + - Added Sha256HexHash alias. + - Added content_hash to FileMetadata. + - Added upload_api_rate_limit feature attribute to upload_session/start, upload_session/append_v2, upload_session/append, upload, upload_session/finish_batch. + - Added duplicated_or_nested_paths to RelocationError and removed from RelocationBatchError. + - Added properties api_group attribute and is_preview attribute to properties/*. + - Added disable_viewer_info and enable_viewer_info to CommitInfoWithProperties. + - Added link_metadata to SharedFileMetadata. + - Added ViewerInfoPolicy union. + - Added no_explicit_access to MemberSelector. + - Deprecated change_file_member_access. + - Added update_file_member route and UpdateFileMemberArgs struct. + - Sharing namespace: + - Added unsupported_link_type to SharedLinkError. + - Added is_member to GroupInfo. + - Added too_many_files to UnshareFolderError. + - Added no_explicit_access to RelinquishFolderMembershipError. + - Added viewer_info_policy, disable_viewer_info, enable_viewer_info to FolderPolicy. + - Added team, is_inside_team_folder, path_lower to SharedLinkPolicy. + - Added link_metadata, policy, shared_folder_id, time_invited to SharedFolderMetadata. + - Added actions, link_settings, viewer_info_policy to ShareFolderArg and removed default values from policies in ShareFolderArg. + - Added viewer_info_policy, link_settings to UpdateFolderPolicyArg. + - Stone Cfg namespace: + - Added feature route attribute. + - Added attribute api_group, is_preview. + - Removed attributes alpha_group, beta_group. + - Team namespace: + - Added group_name_already_used and group_name_invalid to GroupUpdateError. + - Added joined_on, persistent_id to MemberProfile. + - Added team_member_id, external_id to UserSelectorArg. + - Added TeamMemberId, MemberExternalId, GroupExternalId, ResellerId aliases. + - Added company_managed, system_managed to GroupManagementType. + - Added TimeRange. + - Added archive_in_progress to TeamFolderStatus, TeamFolderIdArg. + - Added BaseTeamFolderError. + - TeamFolderRenameError, TeamFolderArchiveError, BaseTeamFolderError, TeamFolderPermanentlyDeleteError now extend BaseTeamFolderError. + - Added folder_name_reserved to TeamFolderRenameError. + - Added GroupSelectorWithTeamGroupError. + - GroupMemberSelectorError, GroupMembersSelectorError now extends GroupSelectorWithTeamGroupError. + - Removed alpha from alpha/groups/*. + - GroupDeleteError, GroupUpdateError, GroupMembersAddError now extends GroupSelectorWithTeamGroupError. + - Added members_not_in_team, users_not_found to GroupMembersAddError. + - Added joined_on to TeamMemberProfile. + - Added member_persistent_id, duplicate_member_persistent_id, persistent_id_disabled, new_persistent_id, persistent_id_disabled, persistent_id_used_by_other_user to MemberSelectorError. +3.0.1 (2017-03-29) +--------------------------------------------- +- Add OpenWith support for official partners. + +3.0.0 (2017-03-17) +--------------------------------------------- +- Breaking changes: + - static INSTANCE is removed from OkHttp3Requestor and OkHttpRequestor + - copyBatch/moveBatch now takes RelocationBatchArg instead of List +- Update to latest API specs: + - Auth namespace: + - Added user_suspended to AuthError. + - Files namespace: + - Added PathRootError. + - Added invalid_path_root to LookupError. + - Added autorename to CreateFolderArg. + - Added DeleteBatchArg, DeleteBatchResultEntry, DeleteResult, DeleteBatchResult, DeleteBatchError, DeleteBatchJobStatus and DeleteBatchLaunch. + - Added delete_batch and delete_batch/check routes. + - Added RelocationPath. + - Added to allow_shared_folder and autorename to RelocationArg. + - Added RelocationBatchArg, RelocationBatchResult, RelocationBatchJobStatus, RelocationResult,RelocationBatchError and RelocationBatchLaunch. + - Added copy_batch and copy_batch/check routes. + - Added move_batch and move_batch/check routes. + - Sharing namespace: + - Changed PathOrId validation pattern. + - Changed path in ShareFolderArg from type files.Path to files.WritePath. + - Added contains_app_folder, contains_team_folder and invalid_path_root to ShareFolderArg. + - Stone Cfg namespace: + - Changed validation pattern for owner in Route. + - Added feature route attribute. + - Team namespace: + - Added team_license_limit to MembersRecoverError. + - Removed beta_group attribute from members/recover. +- Fix the bug that when InputStream throws IOException, DbxUploader#uploadAndFinish() throws NetworkIOException + +2.1.1 (2016-08-01) +--------------------------------------------- +- Fix "Required field ... missing" deserialization bug caused by certain backwards-compatible response changes from the server. + +2.1.0 (2016-07-29) +--------------------------------------------- +- Update to latest API specs: + - Files + - Add uploadSessionFinishBatch(..) endpoint for batch uploads. + - Sharing: + - Add changeFileMemberAccess(..) for changing a member's access to a shared file. + - Add INVITE_VIEWER_NO_COMMENT and SHARE_LINK to FolderAction. + - Add MemberAction.MAKE_VIEWER_NO_COMMENT. + - Add preview URL to SharedFolderMetadata. + - Add parent folder access information to MemberAccessLevelResult. + - Add AddFolderMemberError.TOO_MANY_INVITEES. + - Add AddMemberSelectorError.AUTOMATIC_GROUP. + - Add MountFolderError.INSUFFICIENT_QUOTA. + - Team: + - Add TeamMemberStatus.Tag.REMOVED. + - Add ability to update group management type for a group. + - Add ability to include removed members when listing members of a team. + - Add membersRecover(..) endpoint for recovering team members. +- Fix OkHttpRequestor/OkHttp3Requestor to support interceptors that consume request bodies, like Stetho. + - Fix does not apply to streaming uploads. +- Fix OkHttpRequestor/OkHttp3Requestor to properly handle streaming uploads. + - The requestors no longer buffer entire request body in memory for streams. +- Add configureRequest(..) method for simpler subclassing of OkHttpRequestor and OkHttp3Requestor. +- Fix BadRequest error when adding custom state to a DbxWebAuth.Request object. +- Remove final modifier from DbxClientV2 and DbxTeamClientV2 class declarations for easier mocking in tests. + +2.0.6 (2016-06-20) +--------------------------------------------- +- Update to latest API specs: + - Files (DbxUserFilesRequests) + - Add file properties endpoints. + - Sharing (DbxUserSharingRequests) + - Add endpoints for sharing files and managing shared file membership. + - Change return type of removeFolderMember(..) endpoint to always be an async Job ID (LaunchEmptyResult.isAsyncJobId() will be true). + - Add checkRemoveMemberJobStatus(..) for checking asynchronous removeFolderMember(..) requests. + - Returns additional information compared to checkJobStatus(..) + - Change return type of updateFolderMember(..) to return a MemberAccessLevelResult instead of void. + - Add NO_EXPLICIT_ACCESS to UpdateFolderMemberError. +- Fix Android Fake ID exploit where app certificate chains aren't properly validated. + +2.0.5 (2016-06-08) +--------------------------------------------- +- Allow old locale formats for APIv2 requests. +- Fix ExceptionInInitializationError caused by CertificateParsingException when using Java 6 JREs. +- Fix CertPathValidatorException: Trust anchor for certification path not found. +- Add support for OkHttp3. +- Add support for Google App Engine with new GoogleAppEngineRequestor. +- Add support for require_role, force_reapprove, state, and disable_signup parameters in the OAuth 2 web-based authorization flow (DbxWebAuth). +- Enable certificate pinning for OkHttpRequestor and OkHttp3Requestor by default. + +2.0.4 (2016-05-31) +--------------------------------------------- +- Update to latest API specs: + - Files (DbxUserFilesRequests) + - Add saveUrl(..) saving online content to your Dropbox. + - Shared folders (DbxUserSharingRequests) + - Add AccessLevel.VIEWER_NO_COMMENT. + - Add GroupInfo.getIsOwner(). + - Change return type of SharePathError.Tag.ALREADY_SHARED from Void to SharedFolderMetadata. + - Add leaveACopy argument to relinquishFolderMembership(..). + - Change relinquishFolderMembership(..) to return async job ID when leaving a copy. + - Add JobError.Tag.RELINQUISH_FOLDER_MEMBERSHIP_ERROR. + - Business endpoints (DbxTeamTeamRequests) + - Add MemberProfiler.getMembershipType(). + - Add keepAccount argument to membersRemove(..). + - Add CANNOT_KEEP_ACCOUNT_AND_TRANSFER and CANNOT_KEEP_ACCOUNT_AND_DELETE_DATA to MembersRemoveError. +- Migrate build from maven to gradle. +- Improve code shrinking when using ProGuard. + - Response/request serialization updated to be better optimized by ProGuard. +- Properly support multidex builds. + - Response/request objects should no longer always be kept in primary dex. +- Add partial download support through range requests. +- Fix deserialization bug when handling new server responses that were previously void. +- Fix bug where user locale is ignored for APIv2 requests. +- Fix bug where filenames containing line feeds were rejected as bad requests. + +--------------------------------------------- +2.0.3 (2016-05-07) +- Fix Bad JSON error on ProGuard optimized APKs when deserializing error responses. + - All 2.0.x versions before 2.0.3 are affected and should be upgraded immediately. + - Only affects Android apps that enable ProGuard. + - Affected apps may crash when deserializing an error response from Dropbox servers. + +--------------------------------------------- +2.0.2 (2016-04-28) +- Update to latest API specs: + - Authentication + - Add token/revoke endpoint. + - Account + - Add disabled field to Account. + - Files (DbxUserFilesRequests) + - Add withIncludeDeleted(Boolean) and withIncludeHasExplicitSharedMembers(Boolean) to GetMetadataBuilder and ListFolderBuilder. + - Add close argument to uploadSessionStart(..) to explicitly close an upload session. + - Add uploadSessionAppendV2(..) that provides explicit session close support. uploadSessionAppend(..) is now deprecated. + - Add copyReferenceGet(..) and copyReferenceSave(..) for copying files and folders. + - Add getTemporaryLink(..) endpoint. + - Shared links (DbxUserSharingRequests) + - Add removeExpiration argument to modifySharedLinkSettings(..). + - Shared folders + - Add FolderAction.LEAVE_A_COPY. + - Add SharedFolderMetadata.getTimeInvited(). + - Add IS_OSX_PACKAGE and INSIDE_OSX_PACKAGE to SharePathError. Returned when a user attempts to share an OS X package or folder inside an OS X package. + - Business endpoints (DbxTeamTeamRequests) + - GroupSummary.getMemberCount() is now optional and returns a Long. + - devicesListTeamDevices(..) is now deprecated by devicesListMemberDevices(..). + - linkedAppsListTeamLinkedApps(..) is now deprecated by linkedAppsListMembersLinkedApps(..). + - Add returnMembers argument to groupsMembersSetAccessType(..). +- Fix JsonDateReaderTest failures for non-English systems. +- Update ProGuard rules to fix handling of embedded trusted SSL certs resource. +- Fix tutorial example to list folder entries for folders with many files. + +--------------------------------------------- +2.0.1 (2016-03-09) +- Update to latest API specs: + - Update documentation. + - Add FolderPolicy.getResolvedMemberPolicy() + - Add GroupInfo.getGroupType() + - Add SharedFolderMetadataBase.getOwnerTeam() + - Add SharedFolderMetadataBase.getParentSharedFolderId() + - Add MountFolderError.NOT_MOUNTABLE + - Add UmountFolderError.NOT_UNMOUNTABLE + - Add validation for member external id and email address + - Add TeamSharingPolicies.getSharedLinkCreatePolicy() + - Add MembersSuspendError.TEAM_LICENSE_LIMIT + - Add MembersUnsuspendError.TEAM_LICENSE_LIMIT +- Fix bug when deserializing v2 data types with missing optional primitive fields. +- Fix bug where some Date objects were not being properly truncated to seconds granularity in v2 + data types. +- Fix v2 timestamp parsing to support DateTime and Date formats. +- Add support for Dropbox API app endpoints. +- Update upload-file example to include chunked upload example. +- Increase default socket read timeout to 2 minutes. +- Parse Retry-After header for 503 retry exceptions in API v1. +- Add example from online tutorial. + +--------------------------------------------- +2.0.0 (2016-03-03) +- Remove toJson(..) and fromJson(..) methods from data types. +- Support ProGuard shrinking for Android development and provide example. +- Rename v2 request classes to support future auth styles: + - DbxFiles -> DbxUserFilesRequests + - DbxSharing -> DbxUserSharingRequests + - DbxUsers -> DbxUserUsersRequests + - DbxTeam -> DbxTeamTeamRequests +- Replace public final references in DbxClientV2 and DbxTeamClientV2 with accessor methods. +- Update longpoll example with better documentation on setting timeout values. + +--------------------------------------------- +2.0-beta-7 (2016-02-24) +- Updated to latest API specs. + +--------------------------------------------- +2.0-beta-6 (2016-02-22) +- Updated to latest API specs. +- Use getter methods instead of public final fields. +- Rename exception classes to be consistent with Java practices (e.g. end in "Exception"). +- Move DbxException inner classes out into their own files. +- Expose Retry-After backoff for rate limiting exceptions. +- Add configuration setting for automatically retrying failed requests. +- Fix bug that hid certain routes containing union request arguments. +- Add new Java packages for v2 client. +- Break out v2 nested classes into their own files in the appropriate packages. +- Change format of builder methods. + - Prepend 'with' to method names +- Change format of tagged union classes. + - getTag() renamed to tag() to avoid naming conflicts + - Tags without values now referenced as public static final singletons + - Unions of value-less tags generated as enums +- Add builders for request and response classes. +- Fix deserialization bug with Union containing tags with optional values. +- Make read timeouts more easily configurable for StandardHttpRequestor. +- Add longpoll example. +- Separate integration tests from unit tests and enable unit tests by default. +- Fix android example bugs and linter warnings + - Fix compilation error + - Fix upload failure bug + - Fix download failure bug + - Update build dependencies + - Stop using deprecated interfaces + +--------------------------------------------- +2.0-beta-5 (2016-01-22) +- Updated to latest API specs. +- Change format of tagged union classes. + - Change getter method format from getAbc() to getAbcValue(). + - Add new isAbc() convenience methods. + - Add new getTag() method for tag discrimination. +- Accept List instead of ArrayList for requests. +- Fix BadRequest exception for DbxFiles.listFolderLongpoll(String). +- Uppercase enum and static fields. +- Add support for Dropbox API team endpoints. +- Expose localized user messages and request IDs in exceptions. + +--------------------------------------------- +2.0-beta-4 (2015-12-10) +- Update sharing endpoints to support new paging routes. +- Fix bug that caused sharing calls to fail due to bad shared folder IDs. + +--------------------------------------------- +2.0-beta-3 (2015-12-01) +- Add a workaround for older Android versions' buggy SecureRandom. +- Fix android example. + +--------------------------------------------- +2.0-beta-2 (2015-11-13) +- Put "Dbx" prefix on namespace classes (Files -> DbxFiles, etc.) +- Updated to latest API specs. + +--------------------------------------------- +2.0-beta-1 (2015-10-13) +- Add support for Dropbox API v2. Moved API v1-specific classes to + 'v1' sub-package. +- Add support for Android. +- Add support for using OkHttp as the HTTP client library. + +--------------------------------------------- +1.8.2 (2015-10-19) + +- Fix bug parsing "photo_info" in file metadata. +- Add support for /account/info fields: email, email_verified, + name_details. + +--------------------------------------------- +1.8.1 (2015-09-21) + +- Fix bug in version validation code that caused crash at startup. + +--------------------------------------------- +1.8 (2015-09-14) + +- Include SDK version in HTTP requests (via the User-Agent header). +- Fix 'urlState' handling in DbxWebAuth. Was mistakenly include the + '|' separator. +- Add support for /delta/latest_cursor and /longpoll_delta. +- Add support for include_media_info=true on /metadata and /delta. +- Add support for using OkHttp as the underlying HTTP client. + +--------------------------------------------- +1.7.7 (2014-09-02) + +- Fix encoding of Unicode characters in API request URL paths. Bug + affected systems where Java's "file.encoding" wasn't UTF-8. + +--------------------------------------------- +1.7.6 (2013-12-09) + +- Stricter SSL: Hard-code the ciphersuites and trusted root + certificates (instead of using the system defaults). +- Add DbxOAuth1Upgrader, which upgrades existing OAuth 1 access tokens + to OAuth 2 access tokens. +- Add support for /delta's new "path_prefix" parameter. + +--------------------------------------------- +1.7.5 (2013-09-16) + +- Fix crash in getRevisions. + +--------------------------------------------- +1.7.4 (2013-09-13) + +- Fix crash in getAccountInfo, caused by new quota field "datastores". +- Fix file uploading by setting Content-Type explicitly. + +--------------------------------------------- +1.7.3 (2013-09-05) + +- Fix copy/move for folders. +- Fix getMetadataWithChildren for when the file/folder doesn't exist. + +--------------------------------------------- +1.7.2 (2013-08-22) + +- Get thumbnails working (they were completely broken). + +--------------------------------------------- +1.7.1 (2013-08-21) + +- Get chunked uploads working (they were almost completely broken). + +--------------------------------------------- +1.7 (2013-07-31) + +- Added support for most API calls. +- A few minor backwards-incompatibilities. + +--------------------------------------------- +1.6 (2013-07-07) + +- Completely rewritten SDK, focused on web apps (no Android support). +- Many API calls not yet implemented. +- Not backwards compatible with previous versions. diff --git a/ChangeLog.txt b/ChangeLog.txt deleted file mode 100644 index 34b4b0ae2..000000000 --- a/ChangeLog.txt +++ /dev/null @@ -1,536 +0,0 @@ -3.0.6 (2018-01-14) ---------------------------------------------- -- Update to Latest API specs: - - Namespace common: - - new LanguageCode alias. - - Namespace file_properties: - - Updated docstrings. - - Namespace file_requests: - - Updated docstrings. - - Namespace files: - - New aliases and structs relating to shared links. - - Move shared_link to end of parameter list for ListFolderArg. - - Add mode to ListRevisionsArg. - - Namespace sharing: - - New UserFileMembershipInfo struct. - - Namespace team_folders: - - updated doc strings. - - additional async example. - - namespace team_log: - - new TeamEventList alias. - - new autogenerated datatypes. - - namespace team_policies: - - new TwoStepVerificationPolicy. - -3.0.5 (2017-10-07) ---------------------------------------------- -- Update to Latest API specs: - - Namespace common: - - new LanguageCode alias. - - Namespace file_properties: - - Updated docstrings. - - Namespace file_requests: - - Updated docstrings. - - Namespace files: - - New aliases and structs relating to shared links. - - Move shared_link to end of parameter list for ListFolderArg. - - Add mode to ListRevisionsArg. - - Namespace sharing: - - New UserFileMembershipInfo struct. - - Namespace team_folders: - - updated doc strings. - - additional async example. - - namespace team_log: - - new TeamEventList alias. - - new autogenerated datatypes. - - namespace team_policies: - - new TwoStepVerificationPolicy. - -3.0.4 (2017-09-19) ---------------------------------------------- -- Update to Latest API specs: - - General: - - Numerous updates to docstrings across all namespaces. - - Updated general route configuration to support select_admin_mode. - - Auth, Users, TeamReports, TeamPropertyTemplates, TeamDevices, TeamGroups, TeamLinkedApps Namespaces: - - Update route ownership. - - Common Namespace: - - Fix regular expression for DisplayName. - - Rename shared_folder to namespace_id for path root header. - - New aliases for OptionalNamePart and DisplayNameLegacy. - - Files Namespace: - - Clarify `WriteMode` documentation. - - Add Select-Admin badge to docs, remove list from business page. - - Support fileId for move api v2 endpoints. - - API_V2 delete_batch should grab one ns_lock when processing one namespace instead of holding all locks at beginning. - - Add FileId support to list_folder. - - Added changeset support for fileops and /rollback endpoint. - - Change default of allow_ownership_transfer to false. - - Get double the limit in list_revisions to include deleted and truncate later in controller. - - Add server_deleted timestamp to list_revisions. - - Revert changes to api delta that aren't backwards compatible. - - Add deleted_at to DeletedMetadata in list_folders, get_metadata. Add deleted_at to toplevel response, - add include_deleted as param in list_revisions. - - Update ownership. - - New attributes for ListFolderArg: included_mounted_folders, limit. - - New get_thumbnail_batch route and corresponding interfaces. - - SharedContentLinks Namespace: - - API changes for child exceptions. - - SharedLinks Namespace: - - Add max results limit of 1000 for /2/sharing/get_shared_links. - - Update sharing route ownership. - - Add link to list_shared_links in shared_link_already_exists error. - - SharingFiles Namespace: - - Add owner name as a new field to alpha sharing file metadata. - - SharingFolders Namespace: - - Make the internal endpoint take internal folder actions. - - Update route ownership. - - Added owner_display_names to SharedFolderMetadataBase. - - Updated PermissionDeniedReason union. - - StoneCfg Namespace: - - Add Select-Admin badge to docs, remove list from business page. - - Update route ownership. - - Team Namespace: - - Enable looking up if a team is in CDM. - - Update route generator to pass through team endpoint ownership. - - Update route ownership. - - Add route member_space_limits/set_custom_quota. - - Add route member_space_limits/remove_cusom_quota. - - Add route member_space_limits/get_custom_quota. - - Deprecate beta properites routes. - - TeamFolders Namespace: - - Update team folder APIs with some extra fields. - - Update route ownership. - - TeamLog Namespace: - - Start using v2 category index. - - Reduced strictness of pattern matching for IpAddress. - - New FileCommentNotificationPolicy union - - Multiple updated attribute names in unions. - - New Structs for new team_log objects - - TeamLogGenerated Namespace: - - Variable scheme for team events. - - Mark ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT event as under development. - - Make sure team policies event expose their own union (for API future proofing). - - Add device_info as data_gap for 2 event types. - - Save group info into participants field. - - Account capture pro-active email notifications - audit log. - - Fix schema of member_change_membershipe_type and member_space_limits_change_status. - - Make team_folder_change_status conform to previous_value/new_value convention. - - Fixes the variable schema of domain verification and account capture event types. - - Use common.Data stone type for the variable schema fields of team_activity_create_report. - - Introduce a new struct for team name. - - Fix comments related to sso events. - - TeamMembers Namespace: - - Return root ns_id on some call. - - Update ownership. - - Update NamePart? to be OptionalNamePart?. - - TeamNamespaces Namespace: - - Implement API V2 route team/namespaces/list. - - TeamPolicies Namespace: - - Add Office Add-In Policy to `get_current_account` return. - - Add new team policies for SSO Paper, RolloutMethod and PasswordStrength. - - Paper Namespace: - - New "docs/create" and "docs/update" routes and corresponding interfaces. - - File_properties Namespace: - - New routes and structs for the file properties and templates API functionality. - - File_requests Namespace: - - New routes and structs for the file_requests API functionality. - - Files_properties Namespace: - - removed in favor of file_properties. - - Properties Namespace: - - removed in favor of file_properties. - - Team_property_templates Namespace: - - removed in favor of file_properties. -- Add global response handlers. -- Add PathRootErrorException and AccessErrorException corresponding to 422 and 403 status codes. -- Add support for map data type in stone. -- Fix upload hanging in OKHttp3 when internet is cut off. - -3.0.3 (2017-05-02) ---------------------------------------------- -Fix the compatibility bug that cause sharing/get_file_metadata to crash. - -3.0.2 (2017-04-11) ---------------------------------------------- -- Update to latest API specs: - - Auth namespace: - - Added TokenFromOAuth1Arg, TokenFromOAuth1Result and TokenFromOAuth1Error. - - Added token/from_oauth1 rote. - - Added AccessError and PaperAccessError. - - Added InvalidAccountTypeError. - - Files namespace: - - Added UploadSessionFinishBatchLaunch and made it new return type for upload_session/finish_batch. - - Added Sha256HexHash alias. - - Added content_hash to FileMetadata. - - Added upload_api_rate_limit feature attribute to upload_session/start, upload_session/append_v2, upload_session/append, upload, upload_session/finish_batch. - - Added duplicated_or_nested_paths to RelocationError and removed from RelocationBatchError. - - Added properties api_group attribute and is_preview attribute to properties/*. - - Added disable_viewer_info and enable_viewer_info to CommitInfoWithProperties. - - Added link_metadata to SharedFileMetadata. - - Added ViewerInfoPolicy union. - - Added no_explicit_access to MemberSelector. - - Deprecated change_file_member_access. - - Added update_file_member route and UpdateFileMemberArgs struct. - - Sharing namespace: - - Added unsupported_link_type to SharedLinkError. - - Added is_member to GroupInfo. - - Added too_many_files to UnshareFolderError. - - Added no_explicit_access to RelinquishFolderMembershipError. - - Added viewer_info_policy, disable_viewer_info, enable_viewer_info to FolderPolicy. - - Added team, is_inside_team_folder, path_lower to SharedLinkPolicy. - - Added link_metadata, policy, shared_folder_id, time_invited to SharedFolderMetadata. - - Added actions, link_settings, viewer_info_policy to ShareFolderArg and removed default values from policies in ShareFolderArg. - - Added viewer_info_policy, link_settings to UpdateFolderPolicyArg. - - Stone Cfg namespace: - - Added feature route attribute. - - Added attribute api_group, is_preview. - - Removed attributes alpha_group, beta_group. - - Team namespace: - - Added group_name_already_used and group_name_invalid to GroupUpdateError. - - Added joined_on, persistent_id to MemberProfile. - - Added team_member_id, external_id to UserSelectorArg. - - Added TeamMemberId, MemberExternalId, GroupExternalId, ResellerId aliases. - - Added company_managed, system_managed to GroupManagementType. - - Added TimeRange. - - Added archive_in_progress to TeamFolderStatus, TeamFolderIdArg. - - Added BaseTeamFolderError. - - TeamFolderRenameError, TeamFolderArchiveError, BaseTeamFolderError, TeamFolderPermanentlyDeleteError now extend BaseTeamFolderError. - - Added folder_name_reserved to TeamFolderRenameError. - - Added GroupSelectorWithTeamGroupError. - - GroupMemberSelectorError, GroupMembersSelectorError now extends GroupSelectorWithTeamGroupError. - - Removed alpha from alpha/groups/*. - - GroupDeleteError, GroupUpdateError, GroupMembersAddError now extends GroupSelectorWithTeamGroupError. - - Added members_not_in_team, users_not_found to GroupMembersAddError. - - Added joined_on to TeamMemberProfile. - - Added member_persistent_id, duplicate_member_persistent_id, persistent_id_disabled, new_persistent_id, persistent_id_disabled, persistent_id_used_by_other_user to MemberSelectorError. -3.0.1 (2017-03-29) ---------------------------------------------- -- Add OpenWith support for official partners. - -3.0.0 (2017-03-17) ---------------------------------------------- -- Breaking changes: - - static INSTANCE is removed from OkHttp3Requestor and OkHttpRequestor - - copyBatch/moveBatch now takes RelocationBatchArg instead of List -- Update to latest API specs: - - Auth namespace: - - Added user_suspended to AuthError. - - Files namespace: - - Added PathRootError. - - Added invalid_path_root to LookupError. - - Added autorename to CreateFolderArg. - - Added DeleteBatchArg, DeleteBatchResultEntry, DeleteResult, DeleteBatchResult, DeleteBatchError, DeleteBatchJobStatus and DeleteBatchLaunch. - - Added delete_batch and delete_batch/check routes. - - Added RelocationPath. - - Added to allow_shared_folder and autorename to RelocationArg. - - Added RelocationBatchArg, RelocationBatchResult, RelocationBatchJobStatus, RelocationResult,RelocationBatchError and RelocationBatchLaunch. - - Added copy_batch and copy_batch/check routes. - - Added move_batch and move_batch/check routes. - - Sharing namespace: - - Changed PathOrId validation pattern. - - Changed path in ShareFolderArg from type files.Path to files.WritePath. - - Added contains_app_folder, contains_team_folder and invalid_path_root to ShareFolderArg. - - Stone Cfg namespace: - - Changed validation pattern for owner in Route. - - Added feature route attribute. - - Team namespace: - - Added team_license_limit to MembersRecoverError. - - Removed beta_group attribute from members/recover. -- Fix the bug that when InputStream throws IOException, DbxUploader#uploadAndFinish() throws NetworkIOException - -2.1.1 (2016-08-01) ---------------------------------------------- -- Fix "Required field ... missing" deserialization bug caused by certain backwards-compatible response changes from the server. - -2.1.0 (2016-07-29) ---------------------------------------------- -- Update to latest API specs: - - Files - - Add uploadSessionFinishBatch(..) endpoint for batch uploads. - - Sharing: - - Add changeFileMemberAccess(..) for changing a member's access to a shared file. - - Add INVITE_VIEWER_NO_COMMENT and SHARE_LINK to FolderAction. - - Add MemberAction.MAKE_VIEWER_NO_COMMENT. - - Add preview URL to SharedFolderMetadata. - - Add parent folder access information to MemberAccessLevelResult. - - Add AddFolderMemberError.TOO_MANY_INVITEES. - - Add AddMemberSelectorError.AUTOMATIC_GROUP. - - Add MountFolderError.INSUFFICIENT_QUOTA. - - Team: - - Add TeamMemberStatus.Tag.REMOVED. - - Add ability to update group management type for a group. - - Add ability to include removed members when listing members of a team. - - Add membersRecover(..) endpoint for recovering team members. -- Fix OkHttpRequestor/OkHttp3Requestor to support interceptors that consume request bodies, like Stetho. - - Fix does not apply to streaming uploads. -- Fix OkHttpRequestor/OkHttp3Requestor to properly handle streaming uploads. - - The requestors no longer buffer entire request body in memory for streams. -- Add configureRequest(..) method for simpler subclassing of OkHttpRequestor and OkHttp3Requestor. -- Fix BadRequest error when adding custom state to a DbxWebAuth.Request object. -- Remove final modifier from DbxClientV2 and DbxTeamClientV2 class declarations for easier mocking in tests. - -2.0.6 (2016-06-20) ---------------------------------------------- -- Update to latest API specs: - - Files (DbxUserFilesRequests) - - Add file properties endpoints. - - Sharing (DbxUserSharingRequests) - - Add endpoints for sharing files and managing shared file membership. - - Change return type of removeFolderMember(..) endpoint to always be an async Job ID (LaunchEmptyResult.isAsyncJobId() will be true). - - Add checkRemoveMemberJobStatus(..) for checking asynchronous removeFolderMember(..) requests. - - Returns additional information compared to checkJobStatus(..) - - Change return type of updateFolderMember(..) to return a MemberAccessLevelResult instead of void. - - Add NO_EXPLICIT_ACCESS to UpdateFolderMemberError. -- Fix Android Fake ID exploit where app certificate chains aren't properly validated. - -2.0.5 (2016-06-08) ---------------------------------------------- -- Allow old locale formats for APIv2 requests. -- Fix ExceptionInInitializationError caused by CertificateParsingException when using Java 6 JREs. -- Fix CertPathValidatorException: Trust anchor for certification path not found. -- Add support for OkHttp3. -- Add support for Google App Engine with new GoogleAppEngineRequestor. -- Add support for require_role, force_reapprove, state, and disable_signup parameters in the OAuth 2 web-based authorization flow (DbxWebAuth). -- Enable certificate pinning for OkHttpRequestor and OkHttp3Requestor by default. - -2.0.4 (2016-05-31) ---------------------------------------------- -- Update to latest API specs: - - Files (DbxUserFilesRequests) - - Add saveUrl(..) saving online content to your Dropbox. - - Shared folders (DbxUserSharingRequests) - - Add AccessLevel.VIEWER_NO_COMMENT. - - Add GroupInfo.getIsOwner(). - - Change return type of SharePathError.Tag.ALREADY_SHARED from Void to SharedFolderMetadata. - - Add leaveACopy argument to relinquishFolderMembership(..). - - Change relinquishFolderMembership(..) to return async job ID when leaving a copy. - - Add JobError.Tag.RELINQUISH_FOLDER_MEMBERSHIP_ERROR. - - Business endpoints (DbxTeamTeamRequests) - - Add MemberProfiler.getMembershipType(). - - Add keepAccount argument to membersRemove(..). - - Add CANNOT_KEEP_ACCOUNT_AND_TRANSFER and CANNOT_KEEP_ACCOUNT_AND_DELETE_DATA to MembersRemoveError. -- Migrate build from maven to gradle. -- Improve code shrinking when using ProGuard. - - Response/request serialization updated to be better optimized by ProGuard. -- Properly support multidex builds. - - Response/request objects should no longer always be kept in primary dex. -- Add partial download support through range requests. -- Fix deserialization bug when handling new server responses that were previously void. -- Fix bug where user locale is ignored for APIv2 requests. -- Fix bug where filenames containing line feeds were rejected as bad requests. - ---------------------------------------------- -2.0.3 (2016-05-07) -- Fix Bad JSON error on ProGuard optimized APKs when deserializing error responses. - - All 2.0.x versions before 2.0.3 are affected and should be upgraded immediately. - - Only affects Android apps that enable ProGuard. - - Affected apps may crash when deserializing an error response from Dropbox servers. - ---------------------------------------------- -2.0.2 (2016-04-28) -- Update to latest API specs: - - Authentication - - Add token/revoke endpoint. - - Account - - Add disabled field to Account. - - Files (DbxUserFilesRequests) - - Add withIncludeDeleted(Boolean) and withIncludeHasExplicitSharedMembers(Boolean) to GetMetadataBuilder and ListFolderBuilder. - - Add close argument to uploadSessionStart(..) to explicitly close an upload session. - - Add uploadSessionAppendV2(..) that provides explicit session close support. uploadSessionAppend(..) is now deprecated. - - Add copyReferenceGet(..) and copyReferenceSave(..) for copying files and folders. - - Add getTemporaryLink(..) endpoint. - - Shared links (DbxUserSharingRequests) - - Add removeExpiration argument to modifySharedLinkSettings(..). - - Shared folders - - Add FolderAction.LEAVE_A_COPY. - - Add SharedFolderMetadata.getTimeInvited(). - - Add IS_OSX_PACKAGE and INSIDE_OSX_PACKAGE to SharePathError. Returned when a user attempts to share an OS X package or folder inside an OS X package. - - Business endpoints (DbxTeamTeamRequests) - - GroupSummary.getMemberCount() is now optional and returns a Long. - - devicesListTeamDevices(..) is now deprecated by devicesListMemberDevices(..). - - linkedAppsListTeamLinkedApps(..) is now deprecated by linkedAppsListMembersLinkedApps(..). - - Add returnMembers argument to groupsMembersSetAccessType(..). -- Fix JsonDateReaderTest failures for non-English systems. -- Update ProGuard rules to fix handling of embedded trusted SSL certs resource. -- Fix tutorial example to list folder entries for folders with many files. - ---------------------------------------------- -2.0.1 (2016-03-09) -- Update to latest API specs: - - Update documentation. - - Add FolderPolicy.getResolvedMemberPolicy() - - Add GroupInfo.getGroupType() - - Add SharedFolderMetadataBase.getOwnerTeam() - - Add SharedFolderMetadataBase.getParentSharedFolderId() - - Add MountFolderError.NOT_MOUNTABLE - - Add UmountFolderError.NOT_UNMOUNTABLE - - Add validation for member external id and email address - - Add TeamSharingPolicies.getSharedLinkCreatePolicy() - - Add MembersSuspendError.TEAM_LICENSE_LIMIT - - Add MembersUnsuspendError.TEAM_LICENSE_LIMIT -- Fix bug when deserializing v2 data types with missing optional primitive fields. -- Fix bug where some Date objects were not being properly truncated to seconds granularity in v2 - data types. -- Fix v2 timestamp parsing to support DateTime and Date formats. -- Add support for Dropbox API app endpoints. -- Update upload-file example to include chunked upload example. -- Increase default socket read timeout to 2 minutes. -- Parse Retry-After header for 503 retry exceptions in API v1. -- Add example from online tutorial. - ---------------------------------------------- -2.0.0 (2016-03-03) -- Remove toJson(..) and fromJson(..) methods from data types. -- Support ProGuard shrinking for Android development and provide example. -- Rename v2 request classes to support future auth styles: - - DbxFiles -> DbxUserFilesRequests - - DbxSharing -> DbxUserSharingRequests - - DbxUsers -> DbxUserUsersRequests - - DbxTeam -> DbxTeamTeamRequests -- Replace public final references in DbxClientV2 and DbxTeamClientV2 with accessor methods. -- Update longpoll example with better documentation on setting timeout values. - ---------------------------------------------- -2.0-beta-7 (2016-02-24) -- Updated to latest API specs. - ---------------------------------------------- -2.0-beta-6 (2016-02-22) -- Updated to latest API specs. -- Use getter methods instead of public final fields. -- Rename exception classes to be consistent with Java practices (e.g. end in "Exception"). -- Move DbxException inner classes out into their own files. -- Expose Retry-After backoff for rate limiting exceptions. -- Add configuration setting for automatically retrying failed requests. -- Fix bug that hid certain routes containing union request arguments. -- Add new Java packages for v2 client. -- Break out v2 nested classes into their own files in the appropriate packages. -- Change format of builder methods. - - Prepend 'with' to method names -- Change format of tagged union classes. - - getTag() renamed to tag() to avoid naming conflicts - - Tags without values now referenced as public static final singletons - - Unions of value-less tags generated as enums -- Add builders for request and response classes. -- Fix deserialization bug with Union containing tags with optional values. -- Make read timeouts more easily configurable for StandardHttpRequestor. -- Add longpoll example. -- Separate integration tests from unit tests and enable unit tests by default. -- Fix android example bugs and linter warnings - - Fix compilation error - - Fix upload failure bug - - Fix download failure bug - - Update build dependencies - - Stop using deprecated interfaces - ---------------------------------------------- -2.0-beta-5 (2016-01-22) -- Updated to latest API specs. -- Change format of tagged union classes. - - Change getter method format from getAbc() to getAbcValue(). - - Add new isAbc() convenience methods. - - Add new getTag() method for tag discrimination. -- Accept List instead of ArrayList for requests. -- Fix BadRequest exception for DbxFiles.listFolderLongpoll(String). -- Uppercase enum and static fields. -- Add support for Dropbox API team endpoints. -- Expose localized user messages and request IDs in exceptions. - ---------------------------------------------- -2.0-beta-4 (2015-12-10) -- Update sharing endpoints to support new paging routes. -- Fix bug that caused sharing calls to fail due to bad shared folder IDs. - ---------------------------------------------- -2.0-beta-3 (2015-12-01) -- Add a workaround for older Android versions' buggy SecureRandom. -- Fix android example. - ---------------------------------------------- -2.0-beta-2 (2015-11-13) -- Put "Dbx" prefix on namespace classes (Files -> DbxFiles, etc.) -- Updated to latest API specs. - ---------------------------------------------- -2.0-beta-1 (2015-10-13) -- Add support for Dropbox API v2. Moved API v1-specific classes to - 'v1' sub-package. -- Add support for Android. -- Add support for using OkHttp as the HTTP client library. - ---------------------------------------------- -1.8.2 (2015-10-19) - -- Fix bug parsing "photo_info" in file metadata. -- Add support for /account/info fields: email, email_verified, - name_details. - ---------------------------------------------- -1.8.1 (2015-09-21) - -- Fix bug in version validation code that caused crash at startup. - ---------------------------------------------- -1.8 (2015-09-14) - -- Include SDK version in HTTP requests (via the User-Agent header). -- Fix 'urlState' handling in DbxWebAuth. Was mistakenly include the - '|' separator. -- Add support for /delta/latest_cursor and /longpoll_delta. -- Add support for include_media_info=true on /metadata and /delta. -- Add support for using OkHttp as the underlying HTTP client. - ---------------------------------------------- -1.7.7 (2014-09-02) - -- Fix encoding of Unicode characters in API request URL paths. Bug - affected systems where Java's "file.encoding" wasn't UTF-8. - ---------------------------------------------- -1.7.6 (2013-12-09) - -- Stricter SSL: Hard-code the ciphersuites and trusted root - certificates (instead of using the system defaults). -- Add DbxOAuth1Upgrader, which upgrades existing OAuth 1 access tokens - to OAuth 2 access tokens. -- Add support for /delta's new "path_prefix" parameter. - ---------------------------------------------- -1.7.5 (2013-09-16) - -- Fix crash in getRevisions. - ---------------------------------------------- -1.7.4 (2013-09-13) - -- Fix crash in getAccountInfo, caused by new quota field "datastores". -- Fix file uploading by setting Content-Type explicitly. - ---------------------------------------------- -1.7.3 (2013-09-05) - -- Fix copy/move for folders. -- Fix getMetadataWithChildren for when the file/folder doesn't exist. - ---------------------------------------------- -1.7.2 (2013-08-22) - -- Get thumbnails working (they were completely broken). - ---------------------------------------------- -1.7.1 (2013-08-21) - -- Get chunked uploads working (they were almost completely broken). - ---------------------------------------------- -1.7 (2013-07-31) - -- Added support for most API calls. -- A few minor backwards-incompatibilities. - ---------------------------------------------- -1.6 (2013-07-07) - -- Completely rewritten SDK, focused on web apps (no Android support). -- Many API calls not yet implemented. -- Not backwards compatible with previous versions. diff --git a/License.txt b/License.txt index c5b32c984..0bd27a0fc 100644 --- a/License.txt +++ b/License.txt @@ -1,4 +1,4 @@ -Copyright (c) 2015 Dropbox Inc., http://www.dropbox.com/ +Copyright (c) 2013-2021 Dropbox Inc., http://www.dropbox.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md new file mode 100644 index 000000000..2d3ad4365 --- /dev/null +++ b/README.md @@ -0,0 +1,443 @@ +## Important: Make sure you're using v7.0.0 or newer of this SDK by January 2026 for continued compatibility with the Dropbox API servers. Please refer to this blog post for more information: https://dropbox.tech/developers/api-server-certificate-changes + +# Dropbox Core SDK for Java + +![GitHub](https://img.shields.io/github/license/dropbox/dropbox-sdk-java) +![Maven Central](https://img.shields.io/maven-central/v/com.dropbox.core/dropbox-core-sdk) +![GitHub Release Date](https://img.shields.io/github/release-date/dropbox/dropbox-sdk-java) + +A Java library to access [Dropbox's HTTP-based Core API v2](https://www.dropbox.com/developers/documentation/http/documentation). This SDK also supports the older [Core API v1](https://www.dropbox.com/developers-v1/core/docs), but that support will be removed at some point. + +License: [MIT](License.txt) + +Documentation: [Javadocs](https://dropbox.github.io/dropbox-sdk-java/api-docs/v5.4.3/) + +## Setup + +### Java Version + +The current release of Dropbox SDK Java supports Java 8+. + +### Android Version + +The current release of Dropbox SDK Java supports Android 8+ (SDK 26+) + +### Add a dependency on the Dropbox Java SDK to your project + +If you're using Maven, then edit your project's "pom.xml" and add this to the `` section: + +```xml + + com.dropbox.core + dropbox-core-sdk + 7.0.0 + +``` + +If you are using Gradle, then edit your project's "build.gradle" and add this to the `dependencies` section: + +```groovy +dependencies { + // ... + implementation 'com.dropbox.core:dropbox-core-sdk:7.0.0' +} +``` + +You can also download the Java SDK JAR and and its required dependencies directly from the [latest release page](https://github.com/dropbox/dropbox-sdk-java/releases/latest). Note that the distribution artifacts on the releases pages do not contain optional dependencies. + +## Dropbox for Java tutorial + +A good way to start using the Java SDK is to follow this quick tutorial. Just make sure you have the Java SDK [installed](#setup) first! + +### Register a Dropbox API app + +To use the Dropbox API, you'll need to register a new app in the [App Console](https://www.dropbox.com/developers/apps). Select Dropbox API app and choose your app's permission. You'll need to use the app key created with this app to access API v2. + +### Link an account + +In order to make calls to the API, you'll need an instance of the Dropbox object. To instantiate, pass in the access token for the account you want to link. (Tip: You can [generate an access token](https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/) for your own account through the [App Console](https://www.dropbox.com/developers/apps)). + +```java +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.v2.DbxClientV2; + +public class Main { + private static final String ACCESS_TOKEN = ""; + + public static void main(String args[]) throws DbxException { + // Create Dropbox client + DbxRequestConfig config = DbxRequestConfig.newBuilder("dropbox/java-tutorial").build(); + DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN); + } +} +``` + +Test it out to make sure you've linked the right account: + +```java +// Get current account info +FullAccount account = client.users().getCurrentAccount(); +System.out.println(account.getName().getDisplayName()); +``` + +### Try some API requests + +You can use the Dropbox object you instantiated above to make API calls. Try out a request to list the contents of a folder. + +```java +// Get files and folder metadata from Dropbox root directory +ListFolderResult result = client.files().listFolder(""); +while (true) { + for (Metadata metadata : result.getEntries()) { + System.out.println(metadata.getPathLower()); + } + + if (!result.getHasMore()) { + break; + } + + result = client.files().listFolderContinue(result.getCursor()); +} +``` + +Try uploading a file to your Dropbox. + +```java +// Upload "test.txt" to Dropbox +try (InputStream in = new FileInputStream("test.txt")) { + FileMetadata metadata = client.files().uploadBuilder("/test.txt") + .uploadAndFinish(in); +} +``` + +### Full Example Snippet + +```java +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.v2.DbxClientV2; +import com.dropbox.core.v2.files.FileMetadata; +import com.dropbox.core.v2.files.ListFolderResult; +import com.dropbox.core.v2.files.Metadata; +import com.dropbox.core.v2.users.FullAccount; + +import java.io.FileInputStream; +import java.io.InputStream; +import java.io.IOException; + +public class Main { + private static final String ACCESS_TOKEN = ""; + + public static void main(String args[]) throws DbxException, IOException { + // Create Dropbox client + DbxRequestConfig config = DbxRequestConfig.newBuilder("dropbox/java-tutorial").build(); + DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN); + + // Get current account info + FullAccount account = client.users().getCurrentAccount(); + System.out.println(account.getName().getDisplayName()); + + // Get files and folder metadata from Dropbox root directory + ListFolderResult result = client.files().listFolder(""); + while (true) { + for (Metadata metadata : result.getEntries()) { + System.out.println(metadata.getPathLower()); + } + + if (!result.getHasMore()) { + break; + } + + result = client.files().listFolderContinue(result.getCursor()); + } + + // Upload "test.txt" to Dropbox + try (InputStream in = new FileInputStream("test.txt")) { + FileMetadata metadata = client.files().uploadBuilder("/test.txt") + .uploadAndFinish(in); + } + } +} +``` + +## Full examples + +Some more complete examples can be found here: + +* Example for a simple web app: [Web File Browser example](examples/examples/src/main/java/com/dropbox/core/examples/web_file_browser/DropboxAuth.java) +* Example for an Android app written in Kotlin: [Android Kotlin Example](examples/android) + +To try out running these examples, please follow the instructions below. + +### Save your Dropbox API key + +Save your Dropbox API key to a JSON file called, say, "test.app": + +```json +{ + "key": "Your Dropbox API app key", + "secret": "Your Dropbox API app secret" +} +``` + +App key and secret can be found in you app page in [App Console](https://www.dropbox.com/developers/apps). + +### Building from source + +```shell +git clone https://github.com/dropbox/dropbox-sdk-java.git +cd dropbox-sdk-java +./update-submodules # also do this after every "git checkout" +./gradlew build # requires `python` command to use Python 3.9, pip dropbox +``` + +The output will be in "build/". + +### Running the examples + +1. Follow the instructions in the "Build from source" section above. +2. Save your Dropbox API key in a file called "test.app". See: [Save your Dropbox API key](#save-your-dropbox-api-key), above. +3. Compile and install the SDK into your local maven repo: `./gradlew build` +4. To compile all the examples: `cd examples/ && ./gradlew classes` +5. To compile just one example: `cd examples/ && ./gradlew ::classes` + +#### authorize + +This example runs through the OAuth 2 authorization flow. + +```shell +cd examples +./run authorize test.app test.auth +``` + +This produces a file named "test.auth" that has the access token. This file can be passed in to the other examples. + +#### account-info + +A simple example that fetches and displays information about the account associated with the access token. + +```shell +cd examples +./run account-info test.auth +``` + +(You must first generate "test.auth" using the "authorize" example above.) + +#### longpoll + +An example of how to watch for changes in a Dropbox directory. + +```shell +cd examples +./run longpoll test.auth "/path/to/watch" +``` + +(You must first generate "test.auth" using the "authorize" example above.) + +#### upload-file + +Uploads a file to Dropbox. The example includes regular and chunked file uploads. + +```shell +cd examples +./run upload-file test.auth local-path/file.txt /dropbox-path/file.txt +``` + +(You must first generate "test.auth" using the "authorize" example above.) + +#### web-file-browser + +A tiny web app that runs through the OAuth 2 authorization flow and then uses Dropbox API calls to let the user browse their Dropbox files. + +Prerequisite: In the Dropbox API [app configuration console](https://www.dropbox.com/developers/apps), you need to add "http://localhost:5000/dropbox-auth-finish" to the list of allowed redirect URIs. + +```shell +cd examples +./run web-file-browser 5000 test.app web-file-browser.db +``` + +## Running the integration tests + +1. Run through the `authorize` example above to get a "test.auth" file. +2. `./gradlew -Pcom.dropbox.test.authInfoFile= integrationTest` + +To run individual tests, use the `--tests` gradle test filter: + +```shell +./gradlew -Pcom.dropbox.test.authInfoFile= integrationTest --tests '*.DbxClientV1IT.testAccountInfo' +``` + +## Usage on Android + +Edit your project's "build.gradle" and add the following to the dependencies section: +``` +dependencies { + // ... + implementation 'com.dropbox.core:dropbox-core-sdk:7.0.0' + implementation 'com.dropbox.core:dropbox-android-sdk:7.0.0' +} +``` +If you leverage jettifier and see the following errors then please add `android.jetifier.ignorelist = jackson-core,fastdoubleparser` to your `gradle.properties` file. + +``` +Failed to transform jackson-core-2.15.0.jar (com.fasterxml.jackson.core:jackson-core:2.15.0) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. +``` + +The Android code in this SDK is written in Kotlin (as of 5.4.x) and Kotlin is now a runtime dependency. If you do not already have Kotlin in your project, you will need to add `implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.21")` to your dependencies block in order to avoid a runtime exception. + +If the [official Dropbox App](https://play.google.com/store/apps/details?id=com.dropbox.android) is installed, it will attempt to use it to do authorization. If it is not, a web authentication flow is launched in-browser. + +Use the methods in the [`Auth`](https://github.com/dropbox/dropbox-sdk-java/blob/main/android/src/main/java/com/dropbox/core/android/Auth.kt) to start an authentication sessions. +* [`Auth.startOAuth2Authentication(...)`](https://github.com/dropbox/dropbox-sdk-java/blob/main/android/src/main/java/com/dropbox/core/android/Auth.kt) +* [`Auth.startOAuth2PKCE(...)`](https://github.com/dropbox/dropbox-sdk-java/blob/main/android/src/main/java/com/dropbox/core/android/Auth.kt) + +Please look at the `examples/android` sample app for usage as well. + +### Required Configuration for Authentication on Android + +The following below is required configuration when using the SDK on Android. + +#### AndroidManifest.xml + +Add these following pieces to your `AndroidManifest.xml` to use Dropbox for Authentication in Android. + +##### Add `AuthActivity` to the manifest +Use your Dropbox APP Key in place of `dropboxKey` below. You need to add the `AuthActivity` entry, and it's associated `intent-filter`. +``` + + ... + + + + + + + + + + + + + + + + + + + ... + +``` + +Your activity starting the authorization flow should also configured with `android:launchMode="singleTask"`. Also, if that activity is configured with `android:taskAffinity`, then the `AuthActivity` should also configured with the same task affinity, such that authorization result can be passed back to your activity. + +🚨[There is a known issue regarding apps with `targetSdk=33` regarding app-to-app authentication when the Dropbox App is installed](https://github.com/dropbox/dropbox-sdk-java/pull/471) 🚨 +A fix is being worked on and will be released in an upcoming version of the Dropbox Mobile App. + +##### Add Dropbox `package` to `queries` +Additionally, you need to allow `queries` from the Dropbox official app for verification during the app-to-app authentication flow. +``` + + ... + + + + ... + +``` + +## FAQ + +### When I use `OkHttp3Requestor` in `DbxRequestConfig`, I get errors like 'class file for okhttp3.OkHttpClient not found' + +The dependency of OKHttp/OKHttp3 is optional. You should add them, only if you explicitly want to use it as the http requestor. + +Example in Gradle: + +```gradle +dependencies { + // ... + api 'com.squareup.okhttp3:okhttp:4.0.0' +} +``` + +### When I use the bundle JAR with some OSGi containers within an OSGi subsystem, I get a "Missing required capability" error + +The JAR's manifest has the following line: + +``` +Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=11))" +``` + +Most OSGi containers should provide this capability. Unfortunately, some OSGi containers don't do this correctly and will reject the bundle JAR in the OSGi subsystem context. + +As a workaround, you can build your own version of the JAR that omits the "osgi.ee" capability by running: + +```shell +./gradlew clean +./gradlew -Posgi.bnd.noee=true :core:jar +``` + +(This is equivalent to passing the "-noee" option to the OSGi "bnd" tool.) + +Another workaround is to tell your OSGi container to provide that requirement: [StackOverflow answer](https://stackoverflow.com/a/24673359/163832). + +### Does this SDK require any special ProGuard rules for shrink optimizations? + +The only ProGuard rules necessary are for the SDK's required and optional dependencies. If you encounter ProGuard warnings, consider adding the following "-dontwarn" directives to your ProGuard configuration file: + +``` +-dontwarn okio.** +-dontwarn okhttp3.** +-dontwarn com.squareup.okhttp.** +-dontwarn com.google.apphosting.** +-dontwarn com.google.appengine.** +-dontwarn com.google.protos.cloud.sql.** +-dontwarn com.google.cloud.sql.** +-dontwarn javax.activation.** +-dontwarn javax.mail.** +-dontwarn javax.servlet.** +-dontwarn org.apache.** +``` + +### How do I enable certificate pinning? + +As of version 7.0.0, the SDK no longer provides certificate pinning by default. We provide hooks for you to run each of your requests with +your own `SSLSocketFactory` or `CertificatePinner`. To provide this to your calls, you can use any of the requestors provided. + +*Note*: If you were previously using `SSLConfig`, this is no longer available. You can view the source in [git history](https://github.com/dropbox/dropbox-sdk-java/blob/0f765cb69940ac047682cf117af7a94a1f66b6eb/core/src/main/java/com/dropbox/core/http/SSLConfig.java) +but we no longer provide any default certificate pinning or any other configuration. + +#### Using `StandardHttpRequestor` + +```java +StandardHttpRequestor.Config customConfig = StandardHttpRequestor.Config.DEFAULT_INSTANCE.copy() + .withSslSocketFactory(mySslSocketFactory) + .build(); +StandardHttpRequestor requestor = new StandardHttpRequestor(customConfig); +``` + +#### Using `OkHttp3Requestor` + +See: [CertificatePinner](https://square.github.io/okhttp/3.x/okhttp/okhttp3/CertificatePinner.html) + +```java +okhttp3.OkHttpClient httpClient = OkHttp3Requestor.defaultOkHttpClientBuilder() + .certificatePinner(myCertificatePinner) + .build(); +``` + +#### Using `OkHttpRequestor` + +See: [CertificatePinner](https://square.github.io/okhttp/2.x/okhttp/com/squareup/okhttp/CertificatePinner.html) + +```java +OkHttpClient httpClient = OkHttpRequestor.defaultOkHttpClient().clone() + .setCertificatePinner(myCertificatePinner) + .build(); +``` + diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 000000000..54d199b84 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,33 @@ +Please follow the steps in each one of the following sections to complete a release. + +## Merge the Release to Trigger Publishing to Maven Central + 1. Create new branch `release/X.Y.Z` (where X.Y.Z is the new version) + 2. Update the top level [gradle.properties](gradle.properties) to a non-SNAPSHOT version. + 3. Update the [CHANGELOG.md](CHANGELOG.md) for the impending release. + 4. Update the [README.md](README.md) with the new version. + 5. `git commit -am "Prepare for release X.Y.Z"` (where X.Y.Z is the new version) + 6. Create a PR titled "Release vX.Y.Z" + 7. Merge the PR after checks pass. This will trigger our GitHub Action to publish to Maven Central. + 8. This part below should be automated in CI, but if publishing fails, you will need to perform these steps manually + * Login to Sonatype to promote the artifacts https://central.sonatype.org/pages/releasing-the-deployment.html + * Click on Staging Repositories under Build Promotion + * Select all the Repositories that contain the content you want to release + * Click on Close and refresh until the Release button is active + * Click Release and submit + +## Tag the Release + 1. Pull the latest code `git fetch origin` that was just merged with the stable version. + 2. Check out the commit that landed `git checkout COMMIT_HASH` + 3. Tag the commit with `git tag -a vX.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version) + 4. Push the tag `git push origin vX.Y.Z` + +## Preparing For Next Snapshot + 1. Checkout the latest code from `main` into a new branch. + 2. Update the top level [gradle.properties](gradle.properties) to the next `-SNAPSHOT` version. + 3. `git commit -am "Prepare next development version"` + 4. Create a PR with this commit and merge it. + +## Creating the Release on GitHub and Upload Artifacts + 1. [Create a GitHub release](https://github.com/dropbox/dropbox-sdk-java/releases) with the title from the `vX.Y.Z` tag. Attach the sdk, -javadoc, and -sources .jar files that were [published to Maven Central](https://repo1.maven.org/maven2/com/dropbox/core/dropbox-core-sdk/). + 2. Checkout the `gh-pages` branch. Add or replace the files within `https://github.com/dropbox/dropbox-sdk-java/tree/gh-pages` with the files inside the javadoc jar (You can unzip the javadoc jar after downloading from Maven Central). Also update the root `index.html` to link to the new version documentation. This page will be shown here: https://dropbox.github.io/dropbox-sdk-java/ + 3. Push these changes to the `gh-pages` branch on GitHub. diff --git a/ReadMe.md b/ReadMe.md deleted file mode 100644 index 3b65a056b..000000000 --- a/ReadMe.md +++ /dev/null @@ -1,290 +0,0 @@ -# Dropbox Core SDK for Java 6+ - -A Java library to access [Dropbox's HTTP-based Core API v2](https://www.dropbox.com/developers/documentation/http/documentation). This SDK also supports the older [Core API v1](https://www.dropbox.com/developers-v1/core/docs), but that support will be removed at some point. - -License: [MIT](License.txt) - -Documentation: [Javadocs](https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/) - -## Setup - -If you're using Maven, then edit your project's "pom.xml" and add this to the `` section: - -```xml - - com.dropbox.core - dropbox-core-sdk - 3.0.6 - -``` - -If you are using Gradle, then edit your project's "build.gradle" and add this to the `dependencies` section: - -```groovy -dependencies { - // ... - compile 'com.dropbox.core:dropbox-core-sdk:3.0.6' -} -``` - -You can also download the Java SDK JAR and and its required dependencies directly from the [latest release page](https://github.com/dropbox/dropbox-sdk-java/releases/latest). Note that the distribution artifacts on the releases pages do not contain optional dependencies. - -## Dropbox for Java tutorial - -A good way to start using the Java SDK is to follow this quick tutorial. Just make sure you have the the Java SDK [installed](#setup) first! - -### Register a Dropbox API app - -To use the Dropbox API, you'll need to register a new app in the [App Console](https://www.dropbox.com/developers/apps). Select Dropbox API app and choose your app's permission. You'll need to use the app key created with this app to access API v2. - -### Link an account - -In order to make calls to the API, you'll need an instance of the Dropbox object. To instantiate, pass in the access token for the account you want to link. (Tip: You can [generate an access token](https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/) for your own account through the [App Console](https://www.dropbox.com/developers/apps)). - -```java -import com.dropbox.core.DbxRequestConfig; -import com.dropbox.core.v2.DbxClientV2; - -public class Main { - private static final String ACCESS_TOKEN = ""; - - public static void main(String args[]) throws DbxException { - // Create Dropbox client - DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US"); - DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN); - } -} -``` - -Test it out to make sure you've linked the right account: - -```java -// Get current account info -FullAccount account = client.users().getCurrentAccount(); -System.out.println(account.getName().getDisplayName()); -``` - -### Try some API requests - -You can use the Dropbox object you instantiated above to make API calls. Try out a request to list the contents of a folder. - -```java -// Get files and folder metadata from Dropbox root directory -ListFolderResult result = client.files().listFolder(""); -while (true) { - for (Metadata metadata : result.getEntries()) { - System.out.println(metadata.getPathLower()); - } - - if (!result.getHasMore()) { - break; - } - - result = client.files().listFolderContinue(result.getCursor()); -} -``` - -Try uploading a file to your Dropbox. - -```java -// Upload "test.txt" to Dropbox -try (InputStream in = new FileInputStream("test.txt")) { - FileMetadata metadata = client.files().uploadBuilder("/test.txt") - .uploadAndFinish(in); -} -``` - -### Full Example Snippet - -```java -import com.dropbox.core.DbxException; -import com.dropbox.core.DbxRequestConfig; -import com.dropbox.core.v2.DbxClientV2; -import com.dropbox.core.v2.files.FileMetadata; -import com.dropbox.core.v2.files.ListFolderResult; -import com.dropbox.core.v2.files.Metadata; -import com.dropbox.core.v2.users.FullAccount; - -import java.util.List; - -import java.io.FileInputStream; -import java.io.InputStream; -import java.io.IOException; - -public class Main { - private static final String ACCESS_TOKEN = ""; - - public static void main(String args[]) throws DbxException, IOException { - // Create Dropbox client - DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US"); - DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN); - - // Get current account info - FullAccount account = client.users().getCurrentAccount(); - System.out.println(account.getName().getDisplayName()); - - // Get files and folder metadata from Dropbox root directory - ListFolderResult result = client.files().listFolder(""); - while (true) { - for (Metadata metadata : result.getEntries()) { - System.out.println(metadata.getPathLower()); - } - - if (!result.getHasMore()) { - break; - } - - result = client.files().listFolderContinue(result.getCursor()); - } - - // Upload "test.txt" to Dropbox - try (InputStream in = new FileInputStream("test.txt")) { - FileMetadata metadata = client.files().uploadBuilder("/test.txt") - .uploadAndFinish(in); - } - } -} -``` - -## Full examples - -Some more complete examples can be found here: - * Example for a simple web app: [Web File Browser example](examples/web-file-browser/src/main/java/com/dropbox/core/examples/web_file_browser/DropboxAuth.java) - * Example for an Android app: [Android example](examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java) - * Example for a command-line tool: [Command-Line Authorization example](examples/authorize/src/main/java/com/dropbox/core/examples/authorize/Main.java) - -To try out running this examples, please follow the instructions below. - -### Save your Dropbox API key - -Save your Dropbox API key to a JSON file called, say, "test.app": - -``` -{ - "key": "Your Dropbox API app key", - "secret": "Your Dropbox API app secret" -} -``` - -App key and secret can be found in you app page in [App Console](https://www.dropbox.com/developers/apps). - -### Building from source - -``` -git clone https://github.com/dropbox/dropbox-sdk-java.git -cd dropbox-sdk-java -./update-submodules # also do this after every "git checkout" -./gradlew build -``` - -The output will be in "build/". - -### Running the examples - -1. Follow the instructions in the "Build from source" section above. -2. Save your Dropbox API key in a file called "test.app". See: [Save your Dropbox API key](#save-your-dropbox-api-key), above. -3. Compile and install the SDK into your local maven repo: `./gradlew install` -4. To compile all the examples: `(cd examples/ && ./gradlew classes` -5. To compile just one example: `(cd examples/ && ./gradlew ::classes` - -#### authorize - -This examples runs through the OAuth 2 authorization flow. - -``` -cd examples -./run authorize test.app test.auth -``` - -This produces a file named "test.auth" that has the access token. This file can be passed in to the other examples. - -#### account-info - -A simple example that fetches and displays information about the account associated with the access token. - -``` -cd examples -./run account-info test.auth -``` - -(You must first generate "test.auth" using the "authorize" example above.) - -#### longpoll - -An example of how to watch for changes in a Dropbox directory. - -``` -cd examples -./run longpoll test.auth "/path/to/watch" -``` - -(You must first generate "test.auth" using the "authorize" example above.) - -#### upload-file - -Uploads a file to Dropbox. The example includes regular and chunked file uploads. - -``` -cd examples -./run upload-file test.auth local-path/file.txt /dropbox-path/file.txt -``` - -(You must first generate "test.auth" using the "authorize" example above.) - -#### web-file-browser - -A tiny web app that runs through the OAuth 2 authorization flow and then uses Dropbox API calls to let the user browse their Dropbox files. - -Prerequisite: In the Dropbox API [app configuration console](https://www.dropbox.com/developers/apps), you need to add "http://localhost:5000/dropbox-auth-finish" to the list of allowed redirect URIs. - -``` -cd examples -./run web-file-browser 5000 test.app web-file-browser.db -``` - -## Running the integration tests - -1. Run through the `authorize` example above to get a "test.auth" file. -2. `./gradlew -Pcom.dropbox.test.authInfoFile= integrationTest` - -To run individual tests, use the `--tests` gradle test filter: -``` -./gradlew -Pcom.dropbox.test.authInfoFile= integrationTest --tests '*.DbxClientV1IT.testAccountInfo' -``` - -## FAQ - -### When I use the bundle JAR with some OSGi containers within an OSGi subsystem, I get a "Missing required capability" error. - -The JAR's manifest has the following line: - -``` -Require-Capability: osgi.ee;filter="(&(osgi.ee=JavaSE)(version=1.6))" -``` - -OSGi containers running on Java 1.6 or above should provide this capability. Unfortunately, some OSGi containers don't do this correctly and will reject the bundle JAR in the OSGi subsystem context. - -As a workaround, you can build your own version of the JAR that omits the "osgi.ee" capability by running: - -``` -./gradlew clean -./gradlew -Posgi.bnd.noee=true jar -``` - -(This is equivalent to passing the "-noee" option to the OSGi "bnd" tool.) - -Another workaround is to tell your OSGi container to provide that requirement: [StackOverflow answer](https://stackoverflow.com/a/24673359/163832). - -### Does this SDK require any special ProGuard rules for shrink optimizations? - -Versions 2.0.0-2.0.3 of this SDK require SDK-specific ProGuard rules when shrinking is enabled. However, since version **2.0.4**, the only ProGuard rules necessary are for the SDK's required and optional dependencies. If you encounter ProGuard warnings, consider adding the following "-dontwarn" directives to your ProGuard configuration file: - -``` --dontwarn okio.** --dontwarn okhttp3.** --dontwarn com.squareup.okhttp.** --dontwarn com.google.appengine.** --dontwarn javax.servlet.** -``` - -**IMPORTANT: If you are running version 2.0.x before 2.0.3, you should update to the latest Dropbox SDK version to avoid a deserialization bug that can cause Android apps that use ProGuard to crash.** diff --git a/android/README.md b/android/README.md new file mode 100644 index 000000000..d0cdea709 --- /dev/null +++ b/android/README.md @@ -0,0 +1,3 @@ +For 5.x, the source code in this folder is actually used from the `dropbox-sdk-java` module. + +In 6.x versions, we will have a standalone Android artifact, and that is why this folder is split apart. \ No newline at end of file diff --git a/android/api/android.api b/android/api/android.api new file mode 100644 index 000000000..032c48ea8 --- /dev/null +++ b/android/api/android.api @@ -0,0 +1,116 @@ +public final class com/dropbox/core/android/Auth { + public static final field Companion Lcom/dropbox/core/android/Auth$Companion; + public fun ()V + public static final fun getDbxCredential ()Lcom/dropbox/core/oauth/DbxCredential; + public static final fun getOAuth2Token ()Ljava/lang/String; + public static final fun getScope ()Ljava/lang/String; + public static final fun getUid ()Ljava/lang/String; + public static final fun startOAuth2Authentication (Landroid/content/Context;Ljava/lang/String;)V + public static final fun startOAuth2Authentication (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V + public static final fun startOAuth2Authentication (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public static final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;)V + public static final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;)V + public static final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;Ljava/util/Collection;)V + public static final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;Ljava/util/Collection;Lcom/dropbox/core/IncludeGrantedScopes;)V + public static final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Ljava/util/Collection;)V +} + +public final class com/dropbox/core/android/Auth$Companion { + public final fun getDbxCredential ()Lcom/dropbox/core/oauth/DbxCredential; + public final fun getOAuth2Token ()Ljava/lang/String; + public final fun getScope ()Ljava/lang/String; + public final fun getUid ()Ljava/lang/String; + public final fun startOAuth2Authentication (Landroid/content/Context;Ljava/lang/String;)V + public final fun startOAuth2Authentication (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V + public final fun startOAuth2Authentication (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;)V + public final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;)V + public final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;Ljava/util/Collection;)V + public final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;Ljava/util/Collection;Lcom/dropbox/core/IncludeGrantedScopes;)V + public final fun startOAuth2PKCE (Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Ljava/util/Collection;)V + public static synthetic fun startOAuth2PKCE$default (Lcom/dropbox/core/android/Auth$Companion;Landroid/content/Context;Ljava/lang/String;Lcom/dropbox/core/DbxRequestConfig;Ljava/util/Collection;ILjava/lang/Object;)V +} + +public class com/dropbox/core/android/AuthActivity : android/app/Activity { + public static final field ACTION_AUTHENTICATE_V1 Ljava/lang/String; + public static final field ACTION_AUTHENTICATE_V2 Ljava/lang/String; + public static final field AUTH_PATH_CONNECT Ljava/lang/String; + public static final field AUTH_VERSION I + public static final field Companion Lcom/dropbox/core/android/AuthActivity$Companion; + public static field result Landroid/content/Intent; + public fun ()V + public static final fun checkAppBeforeAuth (Landroid/content/Context;Ljava/lang/String;Z)Z + public static final fun makeIntent (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; + public static final fun makeIntent (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; + protected fun onCreate (Landroid/os/Bundle;)V + protected fun onNewIntent (Landroid/content/Intent;)V + protected fun onResume ()V + public fun onTopResumedActivityChanged (Z)V + public static final fun setSecurityProvider (Lcom/dropbox/core/android/AuthActivity$SecurityProvider;)V +} + +public final class com/dropbox/core/android/AuthActivity$Companion { + public final fun checkAppBeforeAuth (Landroid/content/Context;Ljava/lang/String;Z)Z + public final fun makeIntent (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; + public final fun makeIntent (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; + public final fun setAuthParams (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V + public final fun setAuthParams (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V + public final fun setAuthParams (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public final fun setSecurityProvider (Lcom/dropbox/core/android/AuthActivity$SecurityProvider;)V +} + +public abstract interface class com/dropbox/core/android/AuthActivity$SecurityProvider { + public abstract fun getSecureRandom ()Ljava/security/SecureRandom; +} + +public final class com/dropbox/core/android/DbxOfficialAppConnector { + public static final field ACTION_DBXC_EDIT Ljava/lang/String; + public static final field ACTION_DBXC_VIEW Ljava/lang/String; + public static final field ACTION_SHOW_DROPBOX_PREVIEW Ljava/lang/String; + public static final field ACTION_SHOW_UPGRADE Ljava/lang/String; + public static final field Companion Lcom/dropbox/core/android/DbxOfficialAppConnector$Companion; + public static final field EXTRA_CALLING_PACKAGE Ljava/lang/String; + public static final field EXTRA_DROPBOX_PATH Ljava/lang/String; + public static final field EXTRA_DROPBOX_READ_ONLY Ljava/lang/String; + public static final field EXTRA_DROPBOX_REV Ljava/lang/String; + public static final field EXTRA_DROPBOX_SESSION_ID Ljava/lang/String; + public static final field EXTRA_DROPBOX_UID Ljava/lang/String; + public fun (Ljava/lang/String;)V + public static final fun generateOpenWithIntentFromUtmContent (Ljava/lang/String;)Landroid/content/Intent; + public static final fun getDropboxPlayStoreIntent ()Landroid/content/Intent; + public final fun getPreviewFileIntent (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; + public final fun getUpgradeAccountIntent (Landroid/content/Context;)Landroid/content/Intent; + public static final fun isAnySignedIn (Landroid/content/Context;)Z + public static final fun isInstalled (Landroid/content/Context;)Lcom/dropbox/core/android/DbxOfficialAppConnector$DbxOfficialAppInstallInfo; + public final fun isSignedIn (Landroid/content/Context;)Z +} + +public final class com/dropbox/core/android/DbxOfficialAppConnector$Companion { + public final fun generateOpenWithIntentFromUtmContent (Ljava/lang/String;)Landroid/content/Intent; + public final fun getDropboxPlayStoreIntent ()Landroid/content/Intent; + public final fun isAnySignedIn (Landroid/content/Context;)Z + public final fun isInstalled (Landroid/content/Context;)Lcom/dropbox/core/android/DbxOfficialAppConnector$DbxOfficialAppInstallInfo; +} + +public final class com/dropbox/core/android/DbxOfficialAppConnector$DbxOfficialAppInstallInfo { + public final field supportsOpenWith Z + public final field versionCode I + public fun (ZI)V + public fun toString ()Ljava/lang/String; +} + +public final class com/dropbox/core/android/DropboxParseException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/android/DropboxUidNotInitializedException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/sdk/android/BuildConfig { + public static final field BUILD_TYPE Ljava/lang/String; + public static final field DEBUG Z + public static final field LIBRARY_PACKAGE_NAME Ljava/lang/String; + public fun ()V +} + diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 000000000..72777ebf5 --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,36 @@ +import com.vanniktech.maven.publish.SonatypeHost + +plugins { + id 'com.android.library' + id 'org.jetbrains.kotlin.android' + id "org.jetbrains.kotlinx.binary-compatibility-validator" + id "com.vanniktech.maven.publish" + id "com.github.ben-manes.versions" + id "com.dropbox.dependency-guard" +} + +android { + namespace = "com.dropbox.core.sdk.android" + compileSdk dropboxJavaSdkLibs.versions.android.compile.sdk.get().toInteger() + defaultConfig { + minSdk dropboxJavaSdkLibs.versions.android.min.sdk.get().toInteger() + targetSdk dropboxJavaSdkLibs.versions.android.target.sdk.get().toInteger() + } + + kotlinOptions { + freeCompilerArgs += '-Xexplicit-api=strict' + } +} + +dependencies { + api(project(path: ":core", configuration: "withoutOsgi")) +} + +dependencyGuard { + configuration("releaseRuntimeClasspath") +} + +mavenPublishing { + publishToMavenCentral(SonatypeHost.S01) + signAllPublications() +} \ No newline at end of file diff --git a/android/dependencies/releaseRuntimeClasspath.txt b/android/dependencies/releaseRuntimeClasspath.txt new file mode 100644 index 000000000..a2cb92815 --- /dev/null +++ b/android/dependencies/releaseRuntimeClasspath.txt @@ -0,0 +1,9 @@ +ch.randelshofer:fastdoubleparser:0.8.0 +com.fasterxml.jackson.core:jackson-core:2.15.0 +com.fasterxml.jackson:jackson-bom:2.15.0 +com.google.code.findbugs:jsr305:3.0.2 +org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib:1.6.21 +org.jetbrains:annotations:13.0 diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 000000000..da825a54d --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,3 @@ +POM_ARTIFACT_ID = dropbox-android-sdk +POM_NAME = Dropbox SDK for Android +POM_DESCRIPTION = An Android client library to access Dropbox's HTTP-based Core API v2. diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml new file mode 100644 index 000000000..7894a720e --- /dev/null +++ b/android/src/main/AndroidManifest.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/Auth.kt b/android/src/main/java/com/dropbox/core/android/Auth.kt new file mode 100644 index 000000000..75b8a845e --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/Auth.kt @@ -0,0 +1,345 @@ +package com.dropbox.core.android + +import android.app.Activity +import android.content.Context +import android.content.Intent +import com.dropbox.core.DbxHost +import com.dropbox.core.DbxRequestConfig +import com.dropbox.core.IncludeGrantedScopes +import com.dropbox.core.TokenAccessType +import com.dropbox.core.android.AuthActivity.Companion.checkAppBeforeAuth +import com.dropbox.core.android.AuthActivity.Companion.makeIntent +import com.dropbox.core.android.internal.DropboxAuthIntent +import com.dropbox.core.oauth.DbxCredential +import com.dropbox.core.util.StringUtil +import java.util.Arrays + +/** + * Helper class for integrating with [AuthActivity] + */ +public class Auth { + public companion object { + + /** + * @see Auth#startOAuth2Authentication(Context, String, String, String[], String, String) + */ + @JvmStatic + public fun startOAuth2Authentication( + context: Context, + appKey: String?, + ) { + startOAuth2Authentication( + context = context, + appKey = appKey, + desiredUid = null, + alreadyAuthedUids = null, + sessionId = null + ) + } + + /** + * @see Auth#startOAuth2Authentication(Context, String, String, String[], String, String) + */ + @JvmStatic + public fun startOAuth2Authentication( + context: Context, + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array?, + sessionId: String?, + ) { + startOAuth2Authentication( + context = context, + appKey = appKey, + desiredUid = desiredUid, + alreadyAuthedUids = alreadyAuthedUids, + sessionId = sessionId, + webHost = "www.dropbox.com" + ) + } + + /** + * @param scope A list of scope strings. Each scope correspond to a group of + * API endpoints. To call one API endpoint you have to obtains the scope first otherwise you + * will get HTTP 401. + * @see Auth.startOAuth2PKCE + */ + @JvmStatic + @JvmOverloads + public fun startOAuth2PKCE( + context: Context, + appKey: String?, + requestConfig: DbxRequestConfig?, + scope: Collection? = null + ) { + startOAuth2PKCE( + context = context, + appKey = appKey, + requestConfig = requestConfig, + host = null, + scope = scope + ) + } + + /** + * Starts the Dropbox OAuth process by launching the Dropbox official app (AKA DAuth) or web + * browser if dropbox official app is not available. In browser flow, normally user needs to + * sign in. + * @param context the [Context] to use to launch the + * * Dropbox authentication activity. This will typically be an + * * [Activity] and the user will be taken back to that + * * activity after authentication is complete (i.e., your activity + * * will receive an `onResume()`). + * @param appKey the app's key. + * @param requestConfig Default attributes to use for each request + * @param host Dropbox hosts to send requests to (used for mocking and testing) + */ + @JvmStatic + public fun startOAuth2PKCE( + context: Context, + appKey: String?, + requestConfig: DbxRequestConfig?, + host: DbxHost? + ) { + requireNotNull(requestConfig) { "Invalid Dbx requestConfig for PKCE flow." } + startOAuth2Authentication( + context = context, + appKey = appKey, + desiredUid = null, + alreadyAuthedUids = null, + sessionId = null, + webHost = null, + tokenAccessType = TokenAccessType.OFFLINE, + requestConfig = requestConfig, + host = host + ) + } + + /** + * + * + * @see Auth.startOAuth2PKCE + */ + @JvmStatic + public fun startOAuth2PKCE( + context: Context, + appKey: String?, + requestConfig: DbxRequestConfig?, + host: DbxHost?, + scope: Collection? + ) { + requireNotNull(requestConfig) { "Invalid Dbx requestConfig for PKCE flow." } + startOAuth2Authentication( + context = context, + appKey = appKey, + desiredUid = null, + alreadyAuthedUids = null, + sessionId = null, + webHost = null, + tokenAccessType = TokenAccessType.OFFLINE, + requestConfig = requestConfig, + host = host, + scope = scope, + includeGrantedScopes = null + ) + } + + /** + * + * + * Starts the Dropbox OAuth process by launching the Dropbox official app (AKA DAuth) or web + * browser if dropbox official app is not available. In browser flow, normally user needs to + * sign in. + * @param context the [Context] to use to launch the + * * Dropbox authentication activity. This will typically be an + * * [Activity] and the user will be taken back to that + * * activity after authentication is complete (i.e., your activity + * * will receive an `onResume()`). + * @param appKey the app's key. + * @param requestConfig Default attributes to use for each request + * @param host Dropbox hosts to send requests to (used for mocking and testing) + * @param scope A list of scope strings. Each scope correspond + * to a group of API endpoints. To call one API endpoint you + * have to obtains the scope first otherwise you will get HTTP 401. + * @param includeGrantedScopes If this is set, result will contain both new scopes and all + * previously granted scopes. It enables incrementally + * requesting scopes. + */ + @JvmStatic + public fun startOAuth2PKCE( + context: Context, + appKey: String?, + requestConfig: DbxRequestConfig?, + host: DbxHost?, + scope: Collection?, + includeGrantedScopes: IncludeGrantedScopes? + ) { + requireNotNull(requestConfig) { "Invalid Dbx requestConfig for PKCE flow." } + require(!(includeGrantedScopes != null && scope == null)) { + "If you are using includeGrantedScope, you" + + " must ask for specific new scopes" + } + startOAuth2Authentication( + context = context, + appKey = appKey, + desiredUid = null, + alreadyAuthedUids = null, + sessionId = null, + webHost = null, + tokenAccessType = TokenAccessType.OFFLINE, + requestConfig = requestConfig, + host = host, + scope = scope, + includeGrantedScopes = includeGrantedScopes + ) + } + + /** + * Starts the Dropbox authentication process by launching an external app + * (either the Dropbox app if available or a web browser) where the user + * will log in and allow your app access. + * + * + * This variant should be used when authentication is being done due to an OpenWith request through action + * {@value DbxOfficialAppConnector#ACTION_DBXC_EDIT} and {@value DbxOfficialAppConnector#ACTION_DBXC_VIEW}. + * You won't need to use this unless you are a partner who registered your app with openwith feature in our official + * Dropbox app. + * + * + * @param context the [Context] to use to launch the + * Dropbox authentication activity. This will typically be an + * [Activity] and the user will be taken back to that + * activity after authentication is complete (i.e., your activity + * will receive an `onResume()`). + * @param appKey the app's key. + * @param desiredUid Encourage user to authenticate account defined by this uid. + * (note that user still can authenticate other accounts). + * May be null if no uid desired. + * @param alreadyAuthedUids Array of any other uids currently authenticated with this app. + * May be null if no uids previously authenticated. + * Authentication screen will encourage user to not authorize these + * user accounts. (note that user may still authorize the accounts). + * @param sessionId The SESSION_ID Extra on an OpenWith intent. null if dAuth + * is being launched outside of OpenWith flow + * @param webHost Server host used for oauth + * @throws IllegalStateException if you have not correctly set up the AuthActivity in your + * manifest, meaning that the Dropbox app will + * not be able to redirect back to your app after auth. + */ + @JvmStatic + public fun startOAuth2Authentication( + context: Context, + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array?, + sessionId: String?, + webHost: String? + ) { + startOAuth2Authentication( + context = context, + appKey = appKey, + desiredUid = desiredUid, + alreadyAuthedUids = alreadyAuthedUids, + sessionId = sessionId, + webHost = webHost, + tokenAccessType = null, + requestConfig = null, + host = null + ) + } + + /** + * @see Auth.startOAuth2Authentication + */ + private fun startOAuth2Authentication( + context: Context, + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array?, + sessionId: String?, + webHost: String?, + tokenAccessType: TokenAccessType?, + requestConfig: DbxRequestConfig?, + host: DbxHost?, + scope: Collection? = null, + includeGrantedScopes: IncludeGrantedScopes? = null + ) { + if (!checkAppBeforeAuth(context, appKey!!, true /*alertUser*/)) { + return + } + require( + !(alreadyAuthedUids != null && Arrays.asList(*alreadyAuthedUids) + .contains(desiredUid)) + ) { "desiredUid cannot be present in alreadyAuthedUids" } + var scopeString: String? = null + if (scope != null) { + scopeString = StringUtil.join(scope, " ") + } + + // Start Dropbox auth activity. + val apiType = "1" + val intent = makeIntent( + context, appKey, desiredUid, alreadyAuthedUids, sessionId, webHost, apiType, + tokenAccessType, requestConfig, host, scopeString, includeGrantedScopes + ) + if (context !is Activity) { + // If starting the intent outside of an Activity, must include + // this. See startActivity(). Otherwise, we prefer to stay in + // the same task. + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + } + context.startActivity(intent) + } + + @JvmStatic + public fun getOAuth2Token(): String? { + val credential = getDbxCredential() ?: return null + return credential.accessToken + } + + @JvmStatic + public fun getUid(): String? { + if (getDbxCredential() == null) { + return null + } + val data = AuthActivity.result + return data!!.getStringExtra(DropboxAuthIntent.EXTRA_UID) + } + + /** + * + * + * @return The result after + */ + @JvmStatic + public fun getDbxCredential(): DbxCredential? { + val data = AuthActivity.result ?: return null + val token = data.getStringExtra(DropboxAuthIntent.EXTRA_ACCESS_TOKEN) + val secret = data.getStringExtra(DropboxAuthIntent.EXTRA_ACCESS_SECRET) + val uid = data.getStringExtra(DropboxAuthIntent.EXTRA_UID) + if (token == null || "" == token || secret == null || "" == secret || uid == null || "" == uid) { + return null + } + val appKey = data.getStringExtra(DropboxAuthIntent.EXTRA_CONSUMER_KEY) + val refreshToken = data.getStringExtra(DropboxAuthIntent.EXTRA_REFRESH_TOKEN) + val expiresAt = data.getLongExtra(DropboxAuthIntent.EXTRA_EXPIRES_AT, -1) + val nullableExpiresAt = if (expiresAt >= 0) expiresAt else null + return DbxCredential(secret, nullableExpiresAt, refreshToken, appKey) + } + + /** + * + * + * Get the scope authorized in this OAuth flow. + * + * @return A list of scope returned by Dropbox server. Each scope correspond to a group of + * API endpoints. To call one API endpoint you have to obtains the scope first otherwise you + * will get HTTP 401. + */ + @JvmStatic + public fun getScope(): String? { + val data = AuthActivity.result ?: return null + return data.getStringExtra(DropboxAuthIntent.EXTRA_SCOPE) + } + } +} \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/AuthActivity.kt b/android/src/main/java/com/dropbox/core/android/AuthActivity.kt new file mode 100644 index 000000000..a627a4cf1 --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/AuthActivity.kt @@ -0,0 +1,643 @@ +package com.dropbox.core.android + +import android.R +import android.app.Activity +import android.app.AlertDialog +import android.content.ActivityNotFoundException +import android.content.Context +import android.content.Intent +import android.net.Uri +import android.os.Build +import android.os.Bundle +import android.util.Log +import com.dropbox.core.DbxHost +import com.dropbox.core.DbxRequestConfig +import com.dropbox.core.DbxRequestUtil +import com.dropbox.core.IncludeGrantedScopes +import com.dropbox.core.TokenAccessType +import com.dropbox.core.android.internal.AuthParameters +import com.dropbox.core.android.internal.AuthSessionViewModel +import com.dropbox.core.android.internal.AuthUtils.createPKCEStateNonce +import com.dropbox.core.android.internal.AuthUtils.createStateNonce +import com.dropbox.core.android.internal.DropboxAuthIntent +import com.dropbox.core.android.internal.QueryParamsUtil +import com.dropbox.core.android.internal.TokenRequestAsyncTask +import com.dropbox.core.android.internal.TokenType +import java.security.SecureRandom +import java.util.* + +/** + * This activity is used internally for authentication, but must be exposed both + * so that Android can launch it and for backwards compatibility. + * + * This class has been marked as "open" for binary compatibility reasons, + * but will be "final" in the next major version. + */ +public open class AuthActivity : Activity() { + /** + * Provider of the local security needs of an AuthActivity. + * + * You shouldn't need to use this class directly in your app. Instead, + * simply configure `java.security`'s providers to match your preferences. + * + */ + public interface SecurityProvider { + /** + * Gets a SecureRandom implementation for use during authentication. + */ + public val secureRandom: SecureRandom + } + + private var mActivityDispatchHandlerPosted = false + + override fun onCreate(savedInstanceState: Bundle?) { + if (!AuthSessionViewModel.isAuthInProgress()) { + val newStateFromAuthParams = AuthSessionViewModel.State.fromAuthParams(sAuthParams) + AuthSessionViewModel.startAuthSession(newStateFromAuthParams) + } + setTheme(R.style.Theme_Translucent_NoTitleBar) + super.onCreate(savedInstanceState) + } + + override fun onResume() { + super.onResume() + if (Build.VERSION.SDK_INT < 29) { + // onTopResumedActivityChanged was introduced in Android 29 so we need to call it + // manually when Android version is less than 29 + onTopResumedActivityChanged(true /* onTop */) + } + } + + private val mState: AuthSessionViewModel.State get() = AuthSessionViewModel.state + + /** + * AuthActivity is launched first time, or user didn't finish oauth/dauth flow but + * switched back to this activity. (hit back button) + * + * If DAuth/Browser Auth succeeded, this flow should finish through onNewIntent() + * instead of onResume(). + * + * See: + * https://developer.android.com/reference/android/app/Activity#onTopResumedActivityChanged(boolean) + */ + override fun onTopResumedActivityChanged(onTop: Boolean) { + if (isFinishing || !onTop) { + return + } + val authNotFinish = mState.mAuthStateNonce != null || mState.mAppKey == null + if (authNotFinish) { + // We somehow returned to this activity without being forwarded + // here by the official app. + + // Most commonly caused by user hitting "back" from the auth screen + // or (if doing browser auth) task switching from auth task back to + // this one. + authFinished(null) + return + } + result = null + if (mActivityDispatchHandlerPosted) { + Log.w(TAG, "onResume called again before Handler run") + return + } + + // Random entropy passed through auth makes sure we don't accept a + // response which didn't come from our request. Each random + // value is only ever used once. + val stateNonce: String = if (mState.mTokenAccessType != null) { + // short live token flow + createPKCEStateNonce( + codeChallenge = mState.mPKCEManager.codeChallenge, + tokenAccessType = mState.mTokenAccessType.toString(), + scope = mState.mScope, + mIncludeGrantedScopes = mState.mIncludeGrantedScopes + ) + } else { + // Legacy long live token flow + createStateNonce(getSecurityProvider()) + } + + // Create intent to auth with official app. + val officialAuthIntent = DropboxAuthIntent.buildOfficialAuthIntent( + authActivity = this@AuthActivity, + mState = mState, + stateNonce = stateNonce, + ) + + /* + * An Android bug exists where onResume may be called twice in rapid succession. + * As mAuthNonceState would already be set at start of the second onResume, auth would fail. + * Empirical research has found that posting the remainder of the auth logic to a handler + * mitigates the issue by delaying remainder of auth logic to after the + * previously posted onResume. + */ + runOnUiThread { + Log.d(TAG, "running startActivity in handler") + try { + val dropboxAppPackage = DbxOfficialAppConnector + .getDropboxAppPackage(applicationContext, officialAuthIntent) + + // Auth with official app, or fall back to web. + if (dropboxAppPackage != null) { + startActivity(officialAuthIntent) + } else { + startWebAuth(stateNonce) + } + } catch (e: ActivityNotFoundException) { + Log.e(TAG, "Could not launch intent. User may have restricted profile", e) + finish() + return@runOnUiThread + } + // Save state that indicates we started a request, only after + // we started one successfully. + mState.mAuthStateNonce = stateNonce + } + mActivityDispatchHandlerPosted = true + } + + override fun onNewIntent(intent: Intent) { + // Reject attempt to finish authentication if we never started (nonce=null) + if (null == mState.mAuthStateNonce) { + authFinished(null) + return + } + var token: String? = null + var secret: String? = null + var uid: String? = null + var state: String? = null + if (intent.hasExtra(DropboxAuthIntent.EXTRA_ACCESS_TOKEN)) { + // Dropbox app auth. + token = intent.getStringExtra(DropboxAuthIntent.EXTRA_ACCESS_TOKEN) + secret = intent.getStringExtra(DropboxAuthIntent.EXTRA_ACCESS_SECRET) + uid = intent.getStringExtra(DropboxAuthIntent.EXTRA_UID) + state = intent.getStringExtra(DropboxAuthIntent.EXTRA_AUTH_STATE) + } else { + // Web auth. + val uri = intent.data + if (uri != null) { + val path = uri.path + if (AUTH_PATH_CONNECT == path) { + try { + token = uri.getQueryParameter("oauth_token") + secret = uri.getQueryParameter("oauth_token_secret") + uid = uri.getQueryParameter("uid") + state = uri.getQueryParameter("state") + } catch (e: UnsupportedOperationException) { + } + } + } + } + var newResult: Intent? + if (token != null && token != "" && secret != null && secret != "" && uid != null && uid != "" && state != null && state != "") { + // Reject attempt to link if the nonce in the auth state doesn't match, + // or if we never asked for auth at all. + if (mState.mAuthStateNonce != state) { + authFinished(null) + return + } + + // Successful auth. + if (token == TokenType.OAUTH2.toString()) { + // token flow + newResult = Intent() + newResult.putExtra(DropboxAuthIntent.EXTRA_ACCESS_TOKEN, token) + newResult.putExtra(DropboxAuthIntent.EXTRA_ACCESS_SECRET, secret) + newResult.putExtra(DropboxAuthIntent.EXTRA_UID, uid) + } else if (token == TokenType.OAUTH2CODE.toString()) { + // code flow with PKCE + val tokenRequest = TokenRequestAsyncTask( + secret, + mState.mPKCEManager, + mState.mRequestConfig!!, + mState.mAppKey!!, + mState.mHost!! + ) + try { + val dbxAuthFinish = tokenRequest.execute().get() + if (dbxAuthFinish == null) { + newResult = null + } else { + newResult = Intent() + // access_token and access_secret are OAuth1 concept. In OAuth2 we only + // have access token. So I put both of them to be the same. + newResult.putExtra( + DropboxAuthIntent.EXTRA_ACCESS_TOKEN, + dbxAuthFinish.accessToken + ) + newResult.putExtra( + DropboxAuthIntent.EXTRA_ACCESS_SECRET, + dbxAuthFinish.accessToken + ) + newResult.putExtra( + DropboxAuthIntent.EXTRA_REFRESH_TOKEN, + dbxAuthFinish.refreshToken + ) + newResult.putExtra( + DropboxAuthIntent.EXTRA_EXPIRES_AT, + dbxAuthFinish.expiresAt + ) + newResult.putExtra(DropboxAuthIntent.EXTRA_UID, dbxAuthFinish.userId) + newResult.putExtra(DropboxAuthIntent.EXTRA_CONSUMER_KEY, mState.mAppKey) + newResult.putExtra(DropboxAuthIntent.EXTRA_SCOPE, dbxAuthFinish.scope) + } + } catch (e: Exception) { + newResult = null + } + } else { + newResult = null + } + } else { + // Unsuccessful auth, or missing required parameters. + newResult = null + } + authFinished(newResult) + } + + private fun authFinished(authResult: Intent?) { + result = authResult + AuthSessionViewModel.endAuthSession() + finish() + } + + private fun startWebAuth(state: String) { + val path = "1/connect" + var locale = Locale.getDefault() + locale = Locale(locale.language, locale.country) + + // Web Auth currently does not support desiredUid and only one alreadyAuthUid (param n). + // We use first alreadyAuthUid arbitrarily. + // Note that the API treats alreadyAuthUid of 0 and not present equivalently. + val alreadyAuthedUid = + if (mState.mAlreadyAuthedUids.isNotEmpty()) mState.mAlreadyAuthedUids[0] else "0" + val params: MutableList = + mutableListOf( + "k", mState.mAppKey, + "n", alreadyAuthedUid, + "api", mState.mApiType, + "state", state + ) + if (mState.mTokenAccessType != null) { + params.add("extra_query_params") + params.add( + QueryParamsUtil.createExtraQueryParams( + tokenAccessType = mState.mTokenAccessType, + scope = mState.mScope, + includeGrantedScopes = mState.mIncludeGrantedScopes, + pkceManagerCodeChallenge = mState.mPKCEManager.codeChallenge, + ) + ) + } + val url = DbxRequestUtil.buildUrlWithParams( + locale.toString(), mState.mHost!!.web, path, + params.toTypedArray() + ) + val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) + startActivity(intent) + } + + public companion object { + private val TAG = AuthActivity::class.java.name + + /** + * The Android action which the official Dropbox app will accept to + * authenticate a user. You won't ever have to use this. + */ + public const val ACTION_AUTHENTICATE_V1: String = "com.dropbox.android.AUTHENTICATE_V1" + + /** + * The Android action which the official Dropbox app will accept to + * authenticate a user. You won't ever have to use this. + */ + public const val ACTION_AUTHENTICATE_V2: String = "com.dropbox.android.AUTHENTICATE_V2" + + /** + * The version of the API for the web-auth callback with token (not the initial auth request). + */ + public const val AUTH_VERSION: Int = 1 + + /** + * The path for a successful callback with token (not the initial auth request). + */ + public const val AUTH_PATH_CONNECT: String = "/connect" + + // Class-level state used to replace the default SecureRandom implementation + // if desired. + private var sSecurityProvider: SecurityProvider = object : SecurityProvider { + override val secureRandom: SecureRandom + get() = SecureRandom() + } + private val sSecurityProviderLock = Any() + + /** Used internally. */ + @JvmField + public var result: Intent? = null + + private var sAuthParams: AuthParameters? = null + + /** + * Set static authentication parameters + */ + public fun setAuthParams( + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array? + ) { + setAuthParams(appKey, desiredUid, alreadyAuthedUids, null) + } + + /** + * Set static authentication parameters + */ + public fun setAuthParams( + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: + Array?, + webHost: String?, + apiType: String? + ) { + setAuthParams( + appKey = appKey, + desiredUid = desiredUid, + alreadyAuthedUids = alreadyAuthedUids, + sessionId = null, + webHost = null, + apiType = null, + tokenAccessType = null, + requestConfig = null, + host = null, + scope = null, + includeGrantedScopes = null + ) + } + + /** + * Set static authentication parameters + */ + public fun setAuthParams( + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array?, + sessionId: String? + ) { + setAuthParams( + appKey = appKey, + desiredUid = desiredUid, + alreadyAuthedUids = alreadyAuthedUids, + sessionId = sessionId, + webHost = null, + apiType = null, + tokenAccessType = null, + requestConfig = null, + host = null, + scope = null, + includeGrantedScopes = null + ) + } + + /** + * Set static authentication parameters. If both host and webHost are provided, we take use + * host as source of truth. + */ + internal fun setAuthParams( + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array?, + sessionId: String?, webHost: String?, + apiType: String?, + tokenAccessType: TokenAccessType?, + requestConfig: DbxRequestConfig?, + host: DbxHost?, + scope: String?, + includeGrantedScopes: IncludeGrantedScopes? + ) { + sAuthParams = AuthParameters( + sAppKey = appKey, + sDesiredUid = desiredUid, + sAlreadyAuthedUids = alreadyAuthedUids?.toList() ?: emptyList(), + sSessionId = sessionId, + sApiType = apiType, + sTokenAccessType = tokenAccessType, + sRequestConfig = requestConfig, + sHost = host ?: if (webHost != null) { + DbxHost( + DbxHost.DEFAULT.api, DbxHost.DEFAULT.content, webHost, + DbxHost.DEFAULT.notify + ) + } else { + DbxHost.DEFAULT + }, + sScope = scope, + sIncludeGrantedScopes = includeGrantedScopes, + ) + } + + /** + * Create an intent which can be sent to this activity to start OAuth 2 authentication. + * + * @param context the source context + * @param appKey the consumer key for the app + * @param webHost the host to use for web authentication, or null for the default + * @param apiType an identifier for the type of API being supported, or null for + * the default + * + * @return a newly created intent. + */ + @JvmStatic + @Deprecated("Use Methods in com.dropbox.core.android.Auth, This will be removed in future versions.") + public fun makeIntent( + context: Context?, + appKey: String?, + webHost: String?, + apiType: String? + ): Intent { + return makeIntent( + context = context, + appKey = appKey, + desiredUid = null, + alreadyAuthedUids = null, + sessionId = null, + webHost = webHost, + apiType = apiType, + tokenAccessType = null, + requestConfig = null, + host = null, + scope = null, + includeGrantedScopes = null + ) + } + + /** + * Create an intent which can be sent to this activity to start OAuth 2 authentication. + * + * @param context the source context + * @param appKey the consumer key for the app + * @param desiredUid Encourage user to authenticate account defined by this uid. + * (note that user still can authenticate other accounts). + * May be null if no uid desired. + * @param alreadyAuthedUids Array of any other uids currently authenticated with this app. + * May be null if no uids previously authenticated. + * Authentication screen will encourage user to not authorize these + * user accounts. (note that user may still authorize the accounts). + * @param sessionId The SESSION_ID Extra on an OpenWith intent. null if dAuth + * is being launched outside of OpenWith flow + * @param webHost the host to use for web authentication, or null for the default + * @param apiType an identifier for the type of API being supported, or null for + * the default + * + * @return a newly created intent. + */ + @JvmStatic + @Deprecated("Use Methods in com.dropbox.core.android.Auth. This will be removed in future versions.") + public fun makeIntent( + context: Context?, + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array?, + sessionId: String?, + webHost: String?, + apiType: String? + ): Intent { + requireNotNull(appKey) { "'appKey' can't be null" } + setAuthParams( + appKey = appKey, + desiredUid = desiredUid, + alreadyAuthedUids = alreadyAuthedUids, + sessionId = sessionId, + webHost = webHost, + apiType = apiType, + tokenAccessType = null, + requestConfig = null, + host = null, + scope = null, + includeGrantedScopes = null + ) + return Intent(context, AuthActivity::class.java) + } + + /** + * If both host and webHost are provided, we take use host as source of truth. + */ + internal fun makeIntent( + context: Context?, + appKey: String?, + desiredUid: String?, + alreadyAuthedUids: Array?, + sessionId: String?, + webHost: String?, + apiType: String?, + tokenAccessType: TokenAccessType?, + requestConfig: DbxRequestConfig?, + host: DbxHost?, + scope: String?, + includeGrantedScopes: IncludeGrantedScopes? + ): Intent { + requireNotNull(appKey) { "'appKey' can't be null" } + setAuthParams( + appKey, desiredUid, alreadyAuthedUids, sessionId, webHost, apiType, tokenAccessType, + requestConfig, host, scope, includeGrantedScopes + ) + return Intent(context, AuthActivity::class.java) + } + + /** + * Check's the current app's manifest setup for authentication. + * If the manifest is incorrect, an exception will be thrown. + * If another app on the device is conflicting with this one, + * the user will (optionally) be alerted and false will be returned. + * + * @param context the app context + * @param appKey the consumer key for the app + * @param alertUser whether to alert the user for the case where + * multiple apps are conflicting. + * + * @return `true` if this app is properly set up for authentication. + */ + @JvmStatic + @Deprecated("Use Methods in com.dropbox.core.android.Auth, This will be removed in future versions.") + public fun checkAppBeforeAuth( + context: Context, + appKey: String, + alertUser: Boolean + ): Boolean { + // Check if the app has set up its manifest properly. + val testIntent = Intent(Intent.ACTION_VIEW) + val scheme = "db-$appKey" + val uri = "$scheme://$AUTH_VERSION$AUTH_PATH_CONNECT" + testIntent.data = Uri.parse(uri) + val pm = context.packageManager + val activities = pm.queryIntentActivities(testIntent, 0) + // Just one activity registered for the URI scheme. Now make sure + // it's within the same package so when we return from web auth + // we're going back to this app and not some other app. + check(0 != activities.size) { + "URI scheme in your app's " + + "manifest is not set up correctly. You should have a " + + AuthActivity::class.java.name + " with the " + + "scheme: " + scheme + } + if (activities.size > 1) { + if (alertUser) { + val builder = AlertDialog.Builder(context) + builder.setTitle("Security alert") + builder.setMessage( + "Another app on your phone may be trying to " + + "pose as the app you are currently using. The malicious " + + "app can't access your account, but linking to Dropbox " + + "has been disabled as a precaution. Please contact " + + "support@dropbox.com." + ) + builder.setPositiveButton("OK") { dialog, which -> dialog.dismiss() } + builder.show() + } else { + Log.w( + TAG, "There are multiple apps registered for the AuthActivity " + + "URI scheme (" + scheme + "). Another app may be trying to " + + " impersonate this app, so authentication will be disabled." + ) + } + return false + } else { + // Just one activity registered for the URI scheme. Now make sure + // it's within the same package so when we return from web auth + // we're going back to this app and not some other app. + val resolveInfo = activities[0] + check(!(resolveInfo?.activityInfo == null || context.packageName != resolveInfo.activityInfo.packageName)) { + "There must be a " + + AuthActivity::class.java.name + " within your app's package " + + "registered for your URI scheme (" + scheme + "). However, " + + "it appears that an activity in a different package is " + + "registered for that scheme instead. If you have " + + "multiple apps that all want to use the same access" + + "token pair, designate one of them to do " + + "authentication and have the other apps launch it " + + "and then retrieve the token pair from it." + } + } + return true + } + + /** + * Sets the SecurityProvider interface to use for all AuthActivity instances. + * If set to null (or never set at all), default `java.security` providers + * will be used instead. + * + * + * + * You shouldn't need to use this method directly in your app. Instead, + * simply configure `java.security`'s providers to match your preferences. + * + * + * @param prov the new `SecurityProvider` interface. + */ + private fun getSecurityProvider(): SecurityProvider { + synchronized(sSecurityProviderLock) { return sSecurityProvider } + } + + @JvmStatic + public fun setSecurityProvider(prov: SecurityProvider) { + synchronized(sSecurityProviderLock) { sSecurityProvider = prov } + } + + } +} \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/DbxOfficialAppConnector.kt b/android/src/main/java/com/dropbox/core/android/DbxOfficialAppConnector.kt new file mode 100644 index 000000000..5ace861b2 --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/DbxOfficialAppConnector.kt @@ -0,0 +1,368 @@ +/* + * Copyright (c) 2009-2017 Dropbox, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package com.dropbox.core.android + +import android.content.Context +import android.content.Intent +import android.content.pm.PackageInfo +import android.content.pm.PackageManager +import android.net.Uri +import android.os.Build +import android.os.Parcel +import android.util.Base64 +import com.dropbox.core.android.internal.DropboxAuthIntent + +/** + * The DbxOfficialAppConnector is used by an app to communicate with the Official Android Dropbox + * app. + */ +public class DbxOfficialAppConnector(uid: String?) { + /** + * uid associated with this DbxOfficialAppConnector + */ + protected var uid: String? = null + + public class DbxOfficialAppInstallInfo( + /** + * Whether installed version of Dropbox supports OpenWith + */ + @JvmField + public val supportsOpenWith: Boolean, + /** + * Version of Dropbox installed + */ + @JvmField + public val versionCode: Int + ) { + override fun toString(): String { + return String.format( + "DbxOfficialAppInstallInfo(versionCode=%s, supportsOpenWith=%s)", + versionCode, supportsOpenWith + ) + } + } + + /** + * Add uid information to an explicit intent directed to DropboxApp + */ + protected fun addExtrasToIntent(context: Context, intent: Intent) { + intent.putExtra(EXTRA_DROPBOX_UID, uid) + intent.putExtra(EXTRA_CALLING_PACKAGE, context.packageName) + } + + /** + * @return If authorized user is signed in to DropboxApp + */ + public fun isSignedIn(context: Context): Boolean { + val loggedInState = getLoggedinState(context, uid) + return loggedInState == CORRECT_USER + } + + protected fun launchDropbox(context: Context): Intent? { + val pm = context.packageManager + val i = pm.getLaunchIntentForPackage("com.dropbox.android") + return if (getDropboxAppPackage(context, i) == null) { + null + } else i + } + + /** + * @return Intent that when passed into startActivity() will start Dropbox account upgrade flow. + * If DropboxApp is installed, upgrade flow will launch an activity within DropboxApp. + * Otherwise, a web browser will be launched + */ + public fun getUpgradeAccountIntent(context: Context): Intent { + val upgradeIntent = Intent(ACTION_SHOW_UPGRADE) + addExtrasToIntent(context, upgradeIntent) + if (getDropboxAppPackage(context, upgradeIntent) != null) { + return upgradeIntent + } + // Fall back to web upgrade if no Dropbox App Installed + val intent = Intent(Intent.ACTION_VIEW) + intent.data = Uri.parse("https://www.dropbox.com/upgrade?oqa=upeaoq") + return intent + } + + /** + * Construct DbxOfficialAppConnector + * + * @param uid The extra that goes in an intent when returning from Dropbox auth to + * provide the user's Dropbox UID. + * @throws DropboxUidNotInitializedException when `uid` is empty + */ + init { + if (uid == null || uid.length == 0) { + throw DropboxUidNotInitializedException( + "Must initialize session's uid before constructing DbxOfficialAppConnector" + ) + } + this.uid = uid + } + + /** + * Display the DropboxApp's preview of file located at path This function should only be called + * if file was opened through DropboxAPI. If path refers to a directory (as defined by having a '/' at end, + * will show Dropbox file tree. + * + * + * You won't need to use this unless you are our official partner in openwith. + * + * @param path path of file in authorized user's Dropbox to preview + * @param lastRev The revision of file user is seeing (as returned by + * DropboxAPI.getFile/DropboxAPI.putFile) + * @return Intent that when passed into startActivity() displays Dropbox preview Returns null if + * DropboxApp is not installed + */ + public fun getPreviewFileIntent(context: Context, path: String?, lastRev: String?): Intent? { + // TODO(jiuyangzhao): Assert path is valid + val previewIntent = Intent(ACTION_SHOW_DROPBOX_PREVIEW) + addExtrasToIntent(context, previewIntent) + previewIntent.putExtra(EXTRA_DROPBOX_PATH, path) + previewIntent.putExtra(EXTRA_DROPBOX_REV, lastRev) + return if (getDropboxAppPackage(context, previewIntent) == null) { + null + } else previewIntent + } + + public companion object { + // App Connector intent definitions + // to Dropbox actions + public const val ACTION_SHOW_UPGRADE: String = "com.dropbox.android.intent.action.SHOW_UPGRADE" + + // extras + public const val EXTRA_DROPBOX_UID: String = "com.dropbox.android.intent.extra.DROPBOX_UID" + public const val EXTRA_CALLING_PACKAGE: String = "com.dropbox.android.intent.extra.CALLING_PACKAGE" + + // OpenWith intent definitions. You won't need to use this unless you are our official partner in openwith. + // from Dropbox actions + public const val ACTION_DBXC_EDIT: String = "com.dropbox.android.intent.action.DBXC_EDIT" + public const val ACTION_DBXC_VIEW: String = "com.dropbox.android.intent.action.DBXC_VIEW" + + // to Dropbox actions + public const val ACTION_SHOW_DROPBOX_PREVIEW: String = "com.dropbox.android.intent.action.SHOW_PREVIEW" + + // extras (used either dirction) + public const val EXTRA_DROPBOX_PATH: String = "com.dropbox.android.intent.extra.DROPBOX_PATH" + public const val EXTRA_DROPBOX_READ_ONLY: String = "com.dropbox.android.intent.extra.READ_ONLY" + public const val EXTRA_DROPBOX_REV: String = "com.dropbox.android.intent.extra.DROPBOX_REV" + public const val EXTRA_DROPBOX_SESSION_ID: String = "com.dropbox.android.intent.extra.SESSION_ID" + private const val MIN_OPENWITH_VERSION = 240607 + + /** + * @return Information about installed version of DropboxApp. Returns null if DropboxApp is not + * installed + */ + @JvmStatic + public fun isInstalled(context: Context): DbxOfficialAppInstallInfo? { + // For now, use dAuth intent + val authIntent = DropboxAuthIntent.buildActionAuthenticateIntent() + val dropboxPackage = getDropboxAppPackage(context, authIntent) ?: return null + val versionCode = dropboxPackage.versionCode + val supportsOpenWith = versionCode >= MIN_OPENWITH_VERSION + return DbxOfficialAppInstallInfo(supportsOpenWith, versionCode) + } + + private val LOGGED_IN_URI = Uri + .parse("content://com.dropbox.android.provider.SDK/is_user_logged_in/") + private const val CORRECT_USER = 1 + private const val NO_USER = 0 + private const val WRONG_USER = -1 + + /** + * Determine if user uid is logged in + * + * @param context + * @param uid + * @return NO_USER if no users connected CORRECT_USER if uid connected WRONG_USER if uid not + * connected + */ + private fun getLoggedinState(context: Context, uid: String?): Int { + val cursor = context.contentResolver.query( + LOGGED_IN_URI.buildUpon().appendPath(uid).build(), null, // projection + null, // selection clause + null, // selection args + null + ) + ?: // DropboxApp not installed + return NO_USER // sort order + cursor.moveToFirst() + val columnIndex = cursor.getColumnIndex("logged_in") + return if (columnIndex < 0) { + // Column Doesn't Exist + NO_USER + } else cursor.getInt(columnIndex) + } + + /** + * @return If any account is connected to DropboxApp + */ + @JvmStatic + public fun isAnySignedIn(context: Context): Boolean { + val loggedInState = getLoggedinState(context, "0") + return loggedInState != NO_USER + } + + /** + * @return Intent that when passed into startActivity() will launch the Play Store page for + * Dropbox. + */ + @JvmStatic + public fun getDropboxPlayStoreIntent(): Intent { + val intent = Intent(Intent.ACTION_VIEW) + intent.data = Uri.parse("market://details?id=com.dropbox.android") + return intent + } + + /* Begin internal functions */ + private val DROPBOX_APP_SIGNATURES = arrayOf( + "308202223082018b02044bd207bd300d06092a864886f70d01010405003058310b3" + + "009060355040613025553310b300906035504081302434131163014060355040713" + + "0d53616e204672616e636973636f3110300e060355040a130744726f70626f78311" + + "2301006035504031309546f6d204d65796572301e170d3130303432333230343930" + + "315a170d3430303431353230343930315a3058310b3009060355040613025553310" + + "b3009060355040813024341311630140603550407130d53616e204672616e636973" + + "636f3110300e060355040a130744726f70626f783112301006035504031309546f6" + + "d204d6579657230819f300d06092a864886f70d010101050003818d003081890281" + + "8100ac1595d0ab278a9577f0ca5a14144f96eccde75f5616f36172c562fab0e98c4" + + "8ad7d64f1091c6cc11ce084a4313d522f899378d312e112a748827545146a779def" + + "a7c31d8c00c2ed73135802f6952f59798579859e0214d4e9c0554b53b26032a4d2d" + + "fc2f62540d776df2ea70e2a6152945fb53fef5bac5344251595b729d48102030100" + + "01300d06092a864886f70d01010405000381810055c425d94d036153203dc0bbeb3" + + "516f94563b102fff39c3d4ed91278db24fc4424a244c2e59f03bbfea59404512b8b" + + "f74662f2a32e37eafa2ac904c31f99cfc21c9ff375c977c432d3b6ec22776f28767" + + "d0f292144884538c3d5669b568e4254e4ed75d9054f75229ac9d4ccd0b7c3c74a34" + + "f07b7657083b2aa76225c0c56ffc", + "308201e53082014ea00302010202044e17e115300d06092a864886f70d010105050" + + "03037310b30090603550406130255533110300e060355040a1307416e64726f6964" + + "311630140603550403130d416e64726f6964204465627567301e170d31313037303" + + "93035303331375a170d3431303730313035303331375a3037310b30090603550406" + + "130255533110300e060355040a1307416e64726f6964311630140603550403130d4" + + "16e64726f696420446562756730819f300d06092a864886f70d010101050003818d" + + "003081890281810096759fe5abea6a0757039b92adc68d672efa84732c3f959408e" + + "12efa264545c61f23141026a6d01eceeeaa13ec7087087e5894a3363da8bf5c69ed" + + "93657a6890738a80998e4ca22dc94848f30e2d0e1890000ae2cddf543b20c0c3828" + + "deca6c7944b5ecd21a9d18c988b2b3e54517dafbc34b48e801bb1321e0fa49e4d57" + + "5d7f0203010001300d06092a864886f70d0101050500038181002b6d4b65bcfa6ec" + + "7bac97ae6d878064d47b3f9f8da654995b8ef4c385bc4fbfbb7a987f60783ef0348" + + "760c0708acd4b7e63f0235c35a4fbcd5ec41b3b4cb295feaa7d5c27fa562a02562b" + + "7e1f4776b85147be3e295714986c4a9a07183f48ea09ae4d3ea31b88d0016c65b93" + + "526b9c45f2967c3d28dee1aff5a5b29b9c2c8639" + ) + + /** + * Verify that intent will be processed by Dropbox App + * + * @return PackageInfo of DropboxApp if Dropbox App can process intent, else null + */ + internal fun getDropboxAppPackage(context: Context, intent: Intent?): PackageInfo? { + val manager = context.packageManager + val infos = manager.queryIntentActivities(intent!!, 0) + if (1 != infos.size) { + // The official app doesn't exist, or only an older version + // is available, or multiple activities are confusing us. + return null + } + // The official app exists. Make sure it's the correct one by + // checking signing keys. + val resolveInfo = manager.resolveActivity(intent, 0) ?: return null + val packageInfo: PackageInfo = + try { + if (Build.VERSION.SDK_INT >= 28) { + manager.getPackageInfo( + resolveInfo.activityInfo.packageName, + PackageManager.GET_SIGNING_CERTIFICATES, + ) + } else { + manager.getPackageInfo( + resolveInfo.activityInfo.packageName, + PackageManager.GET_SIGNATURES + ) + } + } catch (e: PackageManager.NameNotFoundException) { + return null + } + + val signatures = if (Build.VERSION.SDK_INT >= 28) { + packageInfo.signingInfo?.signingCertificateHistory + } else { + packageInfo.signatures + } ?: return null + + for (signature in signatures) { + for (dbSignature in DROPBOX_APP_SIGNATURES) { + if (dbSignature == signature.toCharsString()) { + return packageInfo + } + } + } + return null + } + + /** + * Decodes a Google Play Campaign attribution utm_content field that was generated by Dropbox + * OpenWith flow. This should only be called if utm_source=”dropbox_android_openwith”. See + * https://developers.google.com/analytics/devguides/collection/android/v4/campaign for more + * information about how to use Play Store attribution. + * + * + * You won't need to use this unless you are our official partner in openwith. + * + * @param UtmContent GooglePlay utm content that has been urldecoded + * @return Intent OpenWith intent that, when launched, will open the file the user requested to + * edit. Caller MUST convert intent into an explicit intent it can handle. + * @throws DropboxParseException if cannot produce Intent from UtmContent + */ + @JvmStatic + @Throws(DropboxParseException::class) + public fun generateOpenWithIntentFromUtmContent(UtmContent: String?): Intent { + // Utm content is encoded a base64-encoded marshalled bundle + // _action is extracted and becomes intent's action + // _uri is extracted and becomes intent's data uri + // All other items in bundle transferred to returned intent's extras + val b: ByteArray + b = try { + Base64.decode(UtmContent, 0) + } catch (ex: IllegalArgumentException) { + throw DropboxParseException("UtmContent was not base64 encoded: " + ex.message) + } + val parcel = Parcel.obtain() + parcel.unmarshall(b, 0, b.size) + parcel.setDataPosition(0) + val bundle = parcel.readBundle() + parcel.recycle() + if (bundle == null) { + throw DropboxParseException("Could not extract bundle from UtmContent") + } + val action = bundle.getString("_action") ?: throw DropboxParseException("_action was not present in bundle") + bundle.remove("_action") + val uri = bundle.getParcelable("_uri") + ?: throw DropboxParseException("_uri was not present in bundle") + bundle.remove("_uri") + val type = bundle.getString("_type") ?: throw DropboxParseException("_type was not present in bundle") + bundle.remove("_type") + val openWithIntent = Intent(action) + openWithIntent.setDataAndType(uri, type) + openWithIntent.putExtras(bundle) + return openWithIntent + } + } +} diff --git a/android/src/main/java/com/dropbox/core/android/DropboxParseException.kt b/android/src/main/java/com/dropbox/core/android/DropboxParseException.kt new file mode 100644 index 000000000..40f41c23d --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/DropboxParseException.kt @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2009-2017 Dropbox, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package com.dropbox.core.android + +import com.dropbox.core.DbxException + +/** + * Thrown when [DbxOfficialAppConnector] can't parse the utm content. + */ +public class DropboxParseException(message: String?) : DbxException(message) { + private companion object { + private const val serialVersionUID: Long = 1L + } +} \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/DropboxUidNotInitializedException.kt b/android/src/main/java/com/dropbox/core/android/DropboxUidNotInitializedException.kt new file mode 100644 index 000000000..4e39afecd --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/DropboxUidNotInitializedException.kt @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2009-2017 Dropbox, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +package com.dropbox.core.android + +import com.dropbox.core.DbxException + +/** + * Thrown when [DbxOfficialAppConnector] is initialized with an empty uid. + */ +public class DropboxUidNotInitializedException(message: String?) : DbxException(message) { + private companion object { + private const val serialVersionUID = 1L + } +} \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/internal/AuthParameters.kt b/android/src/main/java/com/dropbox/core/android/internal/AuthParameters.kt new file mode 100644 index 000000000..258d54bda --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/internal/AuthParameters.kt @@ -0,0 +1,20 @@ +package com.dropbox.core.android.internal + +import com.dropbox.core.DbxHost +import com.dropbox.core.DbxRequestConfig +import com.dropbox.core.IncludeGrantedScopes +import com.dropbox.core.TokenAccessType + +/** Temporary storage for parameters before Activity is created */ +internal data class AuthParameters( + val sAppKey: String?, + val sApiType: String?, + val sDesiredUid: String?, + val sAlreadyAuthedUids: List, + val sSessionId: String?, + val sTokenAccessType: TokenAccessType?, + val sRequestConfig: DbxRequestConfig?, + val sHost: DbxHost?, + val sScope: String?, + val sIncludeGrantedScopes: IncludeGrantedScopes?, +) diff --git a/android/src/main/java/com/dropbox/core/android/internal/AuthSessionViewModel.kt b/android/src/main/java/com/dropbox/core/android/internal/AuthSessionViewModel.kt new file mode 100644 index 000000000..cf38fe9e0 --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/internal/AuthSessionViewModel.kt @@ -0,0 +1,66 @@ +package com.dropbox.core.android.internal + +import android.content.Intent +import com.dropbox.core.DbxHost +import com.dropbox.core.DbxPKCEManager +import com.dropbox.core.DbxRequestConfig +import com.dropbox.core.IncludeGrantedScopes +import com.dropbox.core.TokenAccessType + +internal class AuthSessionViewModel { + + internal data class State( + var mHost: DbxHost? = null, + var result: Intent? = null, + var mPKCEManager: DbxPKCEManager = DbxPKCEManager(), + var mAuthStateNonce: String? = null, + var mAppKey: String? = null, + var mApiType: String? = null, + var mDesiredUid: String? = null, + var mAlreadyAuthedUids: List = emptyList(), + var mSessionId: String? = null, + var mTokenAccessType: TokenAccessType? = null, + var mRequestConfig: DbxRequestConfig? = null, + var mScope: String? = null, + var mIncludeGrantedScopes: IncludeGrantedScopes? = null, + ) { + companion object { + fun fromAuthParams(sAuthParams: AuthParameters?): State { + return State( + mAppKey = sAuthParams?.sAppKey, + mApiType = sAuthParams?.sApiType, + mDesiredUid = sAuthParams?.sDesiredUid, + mAlreadyAuthedUids = sAuthParams?.sAlreadyAuthedUids ?: emptyList(), + mSessionId = sAuthParams?.sSessionId, + mTokenAccessType = sAuthParams?.sTokenAccessType, + mRequestConfig = sAuthParams?.sRequestConfig, + mHost = sAuthParams?.sHost, + mScope = sAuthParams?.sScope, + mIncludeGrantedScopes = sAuthParams?.sIncludeGrantedScopes, + ) + } + } + } + + companion object { + private var _state: State = State() + + private var authInProgress = false + + val state: State get() = _state + + fun isAuthInProgress(): Boolean { + return authInProgress + } + + fun startAuthSession(state: State) { + authInProgress = true + this._state = state + } + + fun endAuthSession() { + authInProgress = false + this._state = State() + } + } +} diff --git a/android/src/main/java/com/dropbox/core/android/internal/AuthUtils.kt b/android/src/main/java/com/dropbox/core/android/internal/AuthUtils.kt new file mode 100644 index 000000000..de8978c5f --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/internal/AuthUtils.kt @@ -0,0 +1,43 @@ +package com.dropbox.core.android.internal + +import com.dropbox.core.DbxPKCEManager +import com.dropbox.core.IncludeGrantedScopes +import com.dropbox.core.android.AuthActivity.SecurityProvider +import java.util.Locale + +internal object AuthUtils { + @JvmStatic + fun createStateNonce(securityProvider: SecurityProvider): String { + val NONCE_BYTES: Int = 16 // 128 bits of randomness. + val randomBytes = ByteArray(NONCE_BYTES) + securityProvider.secureRandom.nextBytes(randomBytes) + val sb = StringBuilder() + sb.append("oauth2:") + for (i in 0 until NONCE_BYTES) { + sb.append(String.format("%02x", randomBytes[i].toInt() and 0xff)) + } + return sb.toString() + } + + @JvmStatic + fun createPKCEStateNonce( + codeChallenge: String, + tokenAccessType: String, + scope: String?, + mIncludeGrantedScopes: IncludeGrantedScopes? + ): String { + var state = String.format( + Locale.US, "oauth2code:%s:%s:%s", + codeChallenge, + DbxPKCEManager.CODE_CHALLENGE_METHODS, + tokenAccessType + ) + if (scope != null) { + state += ":$scope" + } + if (mIncludeGrantedScopes != null) { + state += ":$mIncludeGrantedScopes" + } + return state + } +} \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/internal/DropboxAuthIntent.kt b/android/src/main/java/com/dropbox/core/android/internal/DropboxAuthIntent.kt new file mode 100644 index 000000000..5da13d0fb --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/internal/DropboxAuthIntent.kt @@ -0,0 +1,149 @@ +package com.dropbox.core.android.internal + +import android.content.Context +import android.content.Intent +import android.content.pm.PackageInfo +import com.dropbox.core.DbxSdkVersion +import com.dropbox.core.android.AuthActivity + +internal object DropboxAuthIntent { + + fun buildActionAuthenticateIntent(): Intent { + return Intent(AuthActivity.ACTION_AUTHENTICATE_V2) + .apply { + setPackage("com.dropbox.android") + } + } + + fun Context.getTargetSdkVersion(): Int? { + return try { + val packageInfo: PackageInfo = packageManager.getPackageInfo(packageName, 0) + val targetSdkVersion: Int? = packageInfo.applicationInfo?.targetSdkVersion + targetSdkVersion + } catch (e: Exception) { + null + } + } + + /** + * @return Intent to auth with official app + * Extras should be filled in by callee + */ + fun buildOfficialAuthIntent( + mState: AuthSessionViewModel.State, + stateNonce: String, + authActivity: AuthActivity, + ): Intent { + val callingActivityFullyQualifiedClassName = authActivity::class.java.name + val packageName = authActivity.packageName + + return buildActionAuthenticateIntent().apply { + putExtra(EXTRA_CONSUMER_KEY, mState.mAppKey) + putExtra(EXTRA_CONSUMER_SIG, "") + putExtra(EXTRA_CALLING_CLASS, callingActivityFullyQualifiedClassName) + putExtra(EXTRA_DESIRED_UID, mState.mDesiredUid) + putExtra(EXTRA_ALREADY_AUTHED_UIDS, mState.mAlreadyAuthedUids.toTypedArray()) + putExtra(EXTRA_SESSION_ID, mState.mSessionId) + putExtra(EXTRA_CALLING_PACKAGE, packageName) + putExtra(EXTRA_AUTH_STATE, stateNonce) + putExtra(EXTRA_DROPBOX_SDK_JAVA_VERSION, DbxSdkVersion.Version) + authActivity.getTargetSdkVersion()?.let { targetSdkVersion -> + putExtra(EXTRA_TARGET_SDK_VERSION, targetSdkVersion) + } + + mState.mTokenAccessType?.apply { + val queryParams = QueryParamsUtil.createExtraQueryParams( + tokenAccessType = mState.mTokenAccessType, + scope = mState.mScope, + includeGrantedScopes = mState.mIncludeGrantedScopes, + pkceManagerCodeChallenge = mState.mPKCEManager.codeChallenge + ) + // to support legacy DBApp with V1 flow with + putExtra(EXTRA_AUTH_QUERY_PARAMS, queryParams) + } + } + } + + /** + * The extra that goes in an intent to provide your consumer key for + * Dropbox authentication. You won't ever have to use this. + */ + const val EXTRA_CONSUMER_KEY: String = "CONSUMER_KEY" + + /** + * The extra that goes in an intent when returning from Dropbox auth to + * provide the user's access token, if auth succeeded. You won't ever have + * to use this. + */ + const val EXTRA_ACCESS_TOKEN: String = "ACCESS_TOKEN" + + /** + * The extra that goes in an intent when returning from Dropbox auth to + * provide the user's access token secret, if auth succeeded. You won't + * ever have to use this. + */ + const val EXTRA_ACCESS_SECRET: String = "ACCESS_SECRET" + + /** + * The extra that goes in an intent when returning from Dropbox auth to + * provide the user's Dropbox UID, if auth succeeded. You won't ever have + * to use this. + */ + const val EXTRA_UID: String = "UID" + const val EXTRA_REFRESH_TOKEN: String = "REFRESH_TOKEN" + const val EXTRA_EXPIRES_AT: String = "EXPIRES_AT" + const val EXTRA_SCOPE: String = "SCOPE" + + /** + * Used for internal authentication. You won't ever have to use this. + */ + const val EXTRA_CONSUMER_SIG: String = "CONSUMER_SIG" + + /** + * Used for internal authentication. You won't ever have to use this. + */ + const val EXTRA_CALLING_PACKAGE: String = "CALLING_PACKAGE" + + /** + * Used for internal authentication. You won't ever have to use this. + */ + const val EXTRA_CALLING_CLASS: String = "CALLING_CLASS" + + /** + * Used for internal authentication. You won't ever have to use this. + */ + const val EXTRA_AUTH_STATE: String = "AUTH_STATE" + + /** + * Used for internal authentication logic. The targetSdk version of the application using the Dropbox SDK Java. + */ + const val EXTRA_TARGET_SDK_VERSION: String = "TARGET_SDK_VERSION" + + /** + * Used for internal authentication logic. The version of this Dropbox SDK Java. + */ + const val EXTRA_DROPBOX_SDK_JAVA_VERSION: String = "DROPBOX_SDK_JAVA_VERSION" + + /** + * Used for internal authentication. Allows app to request a specific UID to auth against + * You won't ever have to use this. + */ + const val EXTRA_DESIRED_UID: String = "DESIRED_UID" + + /** + * Used for internal authentication. Allows app to request array of UIDs that should not be auth'd + * You won't ever have to use this. + */ + const val EXTRA_ALREADY_AUTHED_UIDS: String = "ALREADY_AUTHED_UIDS" + + /** + * Used for internal authentication. Allows app to transfer session info to/from DbApp + * You won't ever have to use this. + */ + const val EXTRA_SESSION_ID: String = "SESSION_ID" + + /** + * Used for internal authentication. You won't ever have to use this. + */ + const val EXTRA_AUTH_QUERY_PARAMS: String = "AUTH_QUERY_PARAMS" +} diff --git a/android/src/main/java/com/dropbox/core/android/internal/QueryParamsUtil.kt b/android/src/main/java/com/dropbox/core/android/internal/QueryParamsUtil.kt new file mode 100644 index 000000000..9b998a851 --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/internal/QueryParamsUtil.kt @@ -0,0 +1,39 @@ +package com.dropbox.core.android.internal + +import com.dropbox.core.DbxPKCEManager +import com.dropbox.core.IncludeGrantedScopes +import com.dropbox.core.TokenAccessType +import java.util.* + +internal object QueryParamsUtil { + + internal fun createExtraQueryParams( + tokenAccessType: TokenAccessType?, + scope: String?, + includeGrantedScopes: IncludeGrantedScopes?, + pkceManagerCodeChallenge: String, + ): String { + checkNotNull(tokenAccessType) { + "Extra Query Param should only be used in short live " + + "token flow." + } + var param = String.format( + Locale.US, + "%s=%s&%s=%s&%s=%s&%s=%s", + "code_challenge", pkceManagerCodeChallenge, + "code_challenge_method", DbxPKCEManager.CODE_CHALLENGE_METHODS, + "token_access_type", tokenAccessType.toString(), + "response_type", "code" + ) + if (scope != null) { + param += String.format(Locale.US, "&%s=%s", "scope", scope) + } + if (includeGrantedScopes != null) { + param += String.format( + Locale.US, "&%s=%s", "include_granted_scopes", + includeGrantedScopes.toString() + ) + } + return param + } +} \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/internal/TokenRequestAsyncTask.kt b/android/src/main/java/com/dropbox/core/android/internal/TokenRequestAsyncTask.kt new file mode 100644 index 000000000..4fba79a2c --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/internal/TokenRequestAsyncTask.kt @@ -0,0 +1,32 @@ +package com.dropbox.core.android.internal; + +import android.os.AsyncTask +import android.util.Log +import com.dropbox.core.DbxAuthFinish +import com.dropbox.core.DbxException +import com.dropbox.core.DbxHost +import com.dropbox.core.DbxPKCEManager +import com.dropbox.core.DbxRequestConfig + +internal class TokenRequestAsyncTask( + private val code: String, + private val mPKCEManager: DbxPKCEManager, + private val requestConfig: DbxRequestConfig, + private val appKey: String, + private val host: DbxHost, +) : AsyncTask() { + + override fun doInBackground(vararg params: Void?): DbxAuthFinish? { + return try { + val redirectUri = null + mPKCEManager.makeTokenRequest(requestConfig, code, appKey, redirectUri, host) + } catch (e: DbxException) { + Log.e(TAG, "Token Request Failed: " + e.message) + null + } + } + + companion object { + private val TAG: String = TokenRequestAsyncTask::class.java.simpleName + } +} \ No newline at end of file diff --git a/android/src/main/java/com/dropbox/core/android/internal/TokenType.kt b/android/src/main/java/com/dropbox/core/android/internal/TokenType.kt new file mode 100644 index 000000000..24a5dc79a --- /dev/null +++ b/android/src/main/java/com/dropbox/core/android/internal/TokenType.kt @@ -0,0 +1,9 @@ +package com.dropbox.core.android.internal + +internal enum class TokenType(private val string: String) { + OAUTH2("oauth2:"), OAUTH2CODE("oauth2code:"); + + override fun toString(): String { + return string + } +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 3baf38642..9fb6f6279 100644 --- a/build.gradle +++ b/build.gradle @@ -1,313 +1,25 @@ -import org.gradle.internal.os.OperatingSystem - -apply plugin: 'java' -apply plugin: 'osgi' -apply plugin: 'maven' -apply plugin: 'com.github.ben-manes.versions' // dependencyUpdates task - -description = 'Official Java client library for the Dropbox API.' -group = 'com.dropbox.core' -archivesBaseName = 'dropbox-core-sdk' -version = '0-SNAPSHOT' -sourceCompatibility = JavaVersion.VERSION_1_6 -targetCompatibility = JavaVersion.VERSION_1_6 - -// needed before we define the pom -conf2ScopeMappings.addMapping(1, configurations.compileOnly, 'provided') - -ext { - mavenName = 'Official Dropbox Java SDK' - generatedSources = file("$buildDir/generated-sources") - generatedResources = file("$buildDir/generated-resources") - authInfoPropertyName = 'com.dropbox.test.authInfoFile' - basePom = pom { - name = mavenName - artifactId = archivesBaseName - project { - description = description - packaging 'jar' - url 'https://www.dropbox.com/developers/core' - - scm { - connection 'scm:git:git@github.com:dropbox/dropbox-sdk-java.git' - developerConnection 'scm:git:git@github.com:dropbox/dropbox-sdk-java.git' - url 'https://github.com/dropbox/dropbox-sdk-java' - } - - developers { - developer { - id 'dropbox-api-team' - name 'Dropbox API Team' - email 'api-support@dropbox.com' - organization = 'Dropbox' - } - } - - licenses { - license { - name 'MIT' - url 'http://opensource.org/licenses/MIT' - distribution 'repo' - } - } - } - } -} - buildscript { repositories { - jcenter() + google() mavenCentral() + gradlePluginPortal() } dependencies { - classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0' - classpath 'com.dropbox.maven:pem-converter-maven-plugin:1.0' - } -} - -repositories { - mavenCentral() -} - -dependencies { - // Important: Jackson 2.8+ will be free to use JDK7 features and no longer guarantees JDK6 - // compatibility - compile 'com.fasterxml.jackson.core:jackson-core:2.7.4' - - compileOnly 'javax.servlet:servlet-api:2.5' - compileOnly 'com.squareup.okhttp:okhttp:2.7.5' // support both v2 and v3 to avoid - compileOnly 'com.squareup.okhttp3:okhttp:3.5.0' // method count bloat - compileOnly 'com.google.android:android:4.1.1.4' - compileOnly 'com.google.appengine:appengine-api-1.0-sdk:1.9.38' - - testCompile 'org.testng:testng:6.9.10' - testCompile 'org.mockito:mockito-core:1.10.19' - testCompile 'org.openjdk.jmh:jmh-core:1.12' - testCompile 'org.openjdk.jmh:jmh-generator-annprocess:1.12' - testCompile 'com.google.appengine:appengine-api-1.0-sdk:1.9.38' - testCompile 'com.google.appengine:appengine-api-labs:1.9.38' - testCompile 'com.google.appengine:appengine-api-stubs:1.9.38' - testCompile 'com.google.appengine:appengine-testing:1.9.38' - testCompile 'com.squareup.okhttp:okhttp:2.7.5' - testCompile 'com.squareup.okhttp3:okhttp:3.5.0' - testCompile 'com.google.guava:guava:19.0' -} - -configurations { - withoutOsgi.extendsFrom compile -} - -processResources { - filesMatching('**/sdk-version.txt') { - expand project.properties - } - - filesMatching('**/*.crt') { fcd -> - def inputstream = fcd.open() - def certDatas = com.dropbox.maven.pem_converter.PemLoader.load( - new InputStreamReader(inputstream, "UTF-8") - ) - inputstream.close() - - def out = new DataOutputStream(new FileOutputStream(new File( - getDestinationDir(), fcd.name.substring(0, fcd.name.length()-4) + ".raw" - ))) - com.dropbox.maven.pem_converter.RawLoader.store(certDatas, out) - out.close() - - fcd.exclude() - } -} - -compileJava { - options.compilerArgs << '-Xlint:all' - options.warnings = true - options.deprecation = true - options.encoding = 'utf-8' -} - -test { - useTestNG() - - // TestNG specific options - options.parallel 'methods' - options.threadCount 4 - - // exclude integration tests - exclude '**/IT*.class' - exclude '**/*IT.class' - exclude '**/*IT$*.class' - - testLogging { - events "skipped", "failed" - info { - events "passed", "skipped", "failed" - } - } -} - -def getAuthInfoFile() { - if (!project.hasProperty(authInfoPropertyName)) { - throw new GradleException('' + - "These tests require the \"${authInfoPropertyName}\" " + - "project property be set to point to an authorization JSON file " + - "(e.g. ./gradlew integrationTest -P${authInfoPropertyName}=auth.json)." - ) - } - - def authInfoFile = file(project.property(authInfoPropertyName)) - if (!authInfoFile.exists()) { - throw new GradleException('' + - "The test auth info file does not exist: \"${authInfoFile.absolutePath}\". " + - "Please ensure the \"${authInfoPropertyName}\" project property is set to point to " + - "the correct authorization JSON file." - ) - } - return authInfoFile -} - - -task integrationTest(type: Test) { - description 'Runs integration tests against Production or Dev servers.' - - useTestNG() - - // TestNG specific options - options.parallel 'classes' - options.threadCount 4 - options.preserveOrder true - - // only select integration tests (similar to maven-failsafe-plugin rules) - include '**/IT*.class' - include '**/*IT.class' - include '**/*IT$*.class' - - testLogging { - events "skipped", "failed" - info { - events "passed", "skipped", "failed" - } - } - - reports { - html { - destination = file("${buildDir}/reports/integration-tests") - } - } - - ext { - authInfoPropertyName = 'com.dropbox.test.authInfoFile' - httpRequestorPropertyName = 'com.dropbox.test.httpRequestor' - } - - doFirst { - systemProperty authInfoPropertyName, getAuthInfoFile().absolutePath - if (project.hasProperty(httpRequestorPropertyName)) { - systemProperty httpRequestorPropertyName, project.property(httpRequestorPropertyName) - } - } -} - -javadoc { - title "${project.mavenName} ${project.version} API" - failOnError true - - // JDK 8's javadoc has an on-by-default lint called "missing", which requires that everything - // be documented. Disable this lint because we intentionally don't document some things. - // - // NOTE: ugly hack to set our doclint settings due to strange handling of string options by the - // javadoc task. - if (JavaVersion.current().isJava8Compatible()) { - options.addBooleanOption "Xdoclint:all,-missing", true + classpath(dropboxJavaSdkLibs.android.gradle.plugin) + classpath(dropboxJavaSdkLibs.kotlin.gradle.plugin) + classpath("com.dropbox.gradle.plugins:stone-java-gradle-plugin") } - options.addStringOption "link", "http://docs.oracle.com/javase/6/docs/api/" } -jar { - // OsgiManifest since we import 'osgi' plugin - manifest { - name project.name - description project.description - license project.basePom.getModel().getLicenses()[0].url - - def noeeProp = 'osgi.bnd.noee' - def noee = project.properties.get(noeeProp, System.properties.get(noeeProp, 'false')) - instruction '-noee', noee - } +plugins { + alias(dropboxJavaSdkLibs.plugins.dependency.guard) + alias(dropboxJavaSdkLibs.plugins.maven.publish.plugin) apply false + alias(dropboxJavaSdkLibs.plugins.gradle.version.plugin) apply false + alias(dropboxJavaSdkLibs.plugins.blind.pirate.osgi) apply false + alias(dropboxJavaSdkLibs.plugins.binary.compatibility.validator) apply false } -task jarWithoutOsgi(type: Jar, dependsOn: classes) { - classifier 'withoutOsgi' - from sourceSets.main.output +dependencyGuard { + configuration("classpath") } - -task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' - from sourceSets.main.allSource -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifacts { - archives sourcesJar - archives javadocJar - withoutOsgi jarWithoutOsgi -} - -install { - repositories.mavenInstaller { - pom = project.basePom - } -} - -// To avoid cross-compilation surprises, add JDK6 libs to the boot classpath. This prevents issues -// where we depend on a JDK7 interface that did not exist in JDK6. -if (project.sourceCompatibility == JavaVersion.VERSION_1_6) { - if (System.env.JDK6_HOME == null) { - logger.warn("Set JDK6_HOME environment to disable boot classpath warnings.") - } else { - def jdkHome = System.env.JDK6_HOME - def sep = File.pathSeparator - - logger.info("Setting JVM boot classpath to use ${jdkHome}") - project.tasks.withType(JavaCompile) { - def jdkLibs = "${jdkHome}/jre/lib" - def runtimeClasses = "rt.jar" - if (OperatingSystem.current().isMacOsX()) { - jdkLibs = "${jdkHome}/Classes" - runtimeClasses = "classes.jar" - } - options.bootClasspath = "${jdkLibs}/${runtimeClasses}" - options.bootClasspath += "${sep}${jdkLibs}/jsse.jar" - options.bootClasspath += "${sep}${jdkLibs}/jce.jar" - } - } -} - -// reject dependencyUpdates candidates with alpha or beta in their names: -dependencyUpdates.resolutionStrategy = { - componentSelection { rules -> - rules.all { ComponentSelection selection -> - boolean rejected = ['alpha', 'beta', 'rc'].any { qualifier -> - selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ - } - if (rejected) { - selection.reject('Release candidate') - } - } - } -} - -/* BEGIN PRIVATE REPO ONLY */ -apply from: 'stone.gradle' - -// load release configuration -if (!project.version.contains('SNAPSHOT')) { - apply from: 'release.gradle' -} - -/* END PRIVATE REPO ONLY */ diff --git a/core/api/core.api b/core/api/core.api new file mode 100644 index 000000000..8eb6966e3 --- /dev/null +++ b/core/api/core.api @@ -0,0 +1,33932 @@ +public class com/dropbox/core/AccessErrorException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/auth/AccessError;)V + public fun getAccessError ()Lcom/dropbox/core/v2/auth/AccessError; +} + +public class com/dropbox/core/BadRequestException : com/dropbox/core/ProtocolException { + public fun (Ljava/lang/String;Ljava/lang/String;)V +} + +public class com/dropbox/core/BadResponseCodeException : com/dropbox/core/BadResponseException { + public fun (Ljava/lang/String;Ljava/lang/String;I)V + public fun (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Throwable;)V + public fun getStatusCode ()I +} + +public class com/dropbox/core/BadResponseException : com/dropbox/core/ProtocolException { + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V +} + +public class com/dropbox/core/DbxApiException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Ljava/lang/String;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Ljava/lang/String;Ljava/lang/Throwable;)V + protected static fun buildMessage (Ljava/lang/String;Lcom/dropbox/core/LocalizedText;)Ljava/lang/String; + protected static fun buildMessage (Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Ljava/lang/Object;)Ljava/lang/String; + public fun getUserMessage ()Lcom/dropbox/core/LocalizedText; +} + +public class com/dropbox/core/DbxAppInfo : com/dropbox/core/util/Dumpable { + public static final field KeyReader Lcom/dropbox/core/json/JsonReader; + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field SecretReader Lcom/dropbox/core/json/JsonReader; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/DbxHost;)V + public static fun checkKeyArg (Ljava/lang/String;)V + public static fun checkSecretArg (Ljava/lang/String;)V + protected fun dumpFields (Lcom/dropbox/core/util/DumpWriter;)V + public fun getHost ()Lcom/dropbox/core/DbxHost; + public fun getKey ()Ljava/lang/String; + public static fun getKeyFormatError (Ljava/lang/String;)Ljava/lang/String; + public fun getSecret ()Ljava/lang/String; + public static fun getSecretFormatError (Ljava/lang/String;)Ljava/lang/String; + public static fun getTokenPartError (Ljava/lang/String;)Ljava/lang/String; + public fun hasSecret ()Z +} + +public final class com/dropbox/core/DbxAuthFinish { + public static final field AccessTokenReader Lcom/dropbox/core/json/JsonReader; + public static final field BearerTokenTypeReader Lcom/dropbox/core/json/JsonReader; + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun getAccessToken ()Ljava/lang/String; + public fun getAccountId ()Ljava/lang/String; + public fun getExpiresAt ()Ljava/lang/Long; + public fun getRefreshToken ()Ljava/lang/String; + public fun getScope ()Ljava/lang/String; + public fun getTeamId ()Ljava/lang/String; + public fun getUrlState ()Ljava/lang/String; + public fun getUserId ()Ljava/lang/String; +} + +public final class com/dropbox/core/DbxAuthInfo { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field Writer Lcom/dropbox/core/json/JsonWriter; + public fun (Ljava/lang/String;Lcom/dropbox/core/DbxHost;)V + public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Lcom/dropbox/core/DbxHost;)V + public fun getAccessToken ()Ljava/lang/String; + public fun getExpiresAt ()Ljava/lang/Long; + public fun getHost ()Lcom/dropbox/core/DbxHost; + public fun getRefreshToken ()Ljava/lang/String; +} + +public class com/dropbox/core/DbxDownloader : java/io/Closeable { + public fun (Ljava/lang/Object;Ljava/io/InputStream;)V + public fun (Ljava/lang/Object;Ljava/io/InputStream;Ljava/lang/String;)V + public fun close ()V + public fun download (Ljava/io/OutputStream;)Ljava/lang/Object; + public fun download (Ljava/io/OutputStream;Lcom/dropbox/core/util/IOUtil$ProgressListener;)Ljava/lang/Object; + public fun getContentType ()Ljava/lang/String; + public fun getInputStream ()Ljava/io/InputStream; + public fun getResult ()Ljava/lang/Object; +} + +public class com/dropbox/core/DbxException : java/lang/Exception { + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V + public fun (Ljava/lang/String;Ljava/lang/Throwable;)V + public fun getRequestId ()Ljava/lang/String; +} + +public final class com/dropbox/core/DbxHost { + public static final field DEFAULT Lcom/dropbox/core/DbxHost; + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field Writer Lcom/dropbox/core/json/JsonWriter; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getApi ()Ljava/lang/String; + public fun getContent ()Ljava/lang/String; + public fun getNotify ()Ljava/lang/String; + public fun getWeb ()Ljava/lang/String; + public fun hashCode ()I +} + +public final class com/dropbox/core/DbxOAuth1AccessToken { + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun getKey ()Ljava/lang/String; + public fun getSecret ()Ljava/lang/String; +} + +public final class com/dropbox/core/DbxOAuth1Upgrader { + public static final field ResponseReader Lcom/dropbox/core/json/JsonReader; + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxAppInfo;)V + public fun createOAuth2AccessToken (Lcom/dropbox/core/DbxOAuth1AccessToken;)Ljava/lang/String; + public fun disableOAuth1AccessToken (Lcom/dropbox/core/DbxOAuth1AccessToken;)V +} + +public class com/dropbox/core/DbxPKCEManager { + public static final field CODE_CHALLENGE_METHODS Ljava/lang/String; + public static final field CODE_VERIFIER_SIZE I + public fun ()V + public fun (Ljava/lang/String;)V + public fun getCodeChallenge ()Ljava/lang/String; + public fun getCodeVerifier ()Ljava/lang/String; + public fun makeTokenRequest (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/DbxHost;)Lcom/dropbox/core/DbxAuthFinish; +} + +public class com/dropbox/core/DbxPKCEWebAuth { + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxAppInfo;)V + public fun authorize (Lcom/dropbox/core/DbxWebAuth$Request;)Ljava/lang/String; + public fun finishFromCode (Ljava/lang/String;)Lcom/dropbox/core/DbxAuthFinish; + public fun finishFromRedirect (Ljava/lang/String;Lcom/dropbox/core/DbxSessionStore;Ljava/util/Map;)Lcom/dropbox/core/DbxAuthFinish; +} + +public class com/dropbox/core/DbxRequestConfig { + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/http/HttpRequestor;)V + public fun copy ()Lcom/dropbox/core/DbxRequestConfig$Builder; + public fun getClientIdentifier ()Ljava/lang/String; + public fun getHttpRequestor ()Lcom/dropbox/core/http/HttpRequestor; + public fun getMaxRetries ()I + public fun getUserLocale ()Ljava/lang/String; + public fun isAutoRetryEnabled ()Z + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/DbxRequestConfig$Builder; +} + +public final class com/dropbox/core/DbxRequestConfig$Builder { + public fun build ()Lcom/dropbox/core/DbxRequestConfig; + public fun withAutoRetryDisabled ()Lcom/dropbox/core/DbxRequestConfig$Builder; + public fun withAutoRetryEnabled ()Lcom/dropbox/core/DbxRequestConfig$Builder; + public fun withAutoRetryEnabled (I)Lcom/dropbox/core/DbxRequestConfig$Builder; + public fun withHttpRequestor (Lcom/dropbox/core/http/HttpRequestor;)Lcom/dropbox/core/DbxRequestConfig$Builder; + public fun withUserLocale (Ljava/lang/String;)Lcom/dropbox/core/DbxRequestConfig$Builder; + public fun withUserLocaleFrom (Ljava/util/Locale;)Lcom/dropbox/core/DbxRequestConfig$Builder; + public fun withUserLocaleFromPreferences ()Lcom/dropbox/core/DbxRequestConfig$Builder; +} + +public final class com/dropbox/core/DbxRequestUtil { + public static field sharedCallbackFactory Lcom/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory; + public fun ()V + public static fun addAuthHeader (Ljava/util/List;Ljava/lang/String;)Ljava/util/List; + public static fun addBasicAuthHeader (Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)Ljava/util/List; + public static fun addPathRootHeader (Ljava/util/List;Lcom/dropbox/core/v2/common/PathRoot;)Ljava/util/List; + public static fun addSelectAdminHeader (Ljava/util/List;Ljava/lang/String;)Ljava/util/List; + public static fun addSelectUserHeader (Ljava/util/List;Ljava/lang/String;)Ljava/util/List; + public static fun addUserAgentHeader (Ljava/util/List;Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;)Ljava/util/List; + public static fun addUserLocaleHeader (Ljava/util/List;Lcom/dropbox/core/DbxRequestConfig;)Ljava/util/List; + public static fun buildUri (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; + public static fun buildUrlWithParams (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String; + public static fun buildUserAgentHeader (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;)Lcom/dropbox/core/http/HttpRequestor$Header; + public static fun doGet (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/util/List;Lcom/dropbox/core/DbxRequestUtil$ResponseHandler;)Ljava/lang/Object; + public static fun doPost (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/util/List;Lcom/dropbox/core/DbxRequestUtil$ResponseHandler;)Ljava/lang/Object; + public static fun doPostNoAuth (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/util/List;Lcom/dropbox/core/DbxRequestUtil$ResponseHandler;)Ljava/lang/Object; + public static fun encodeUrlParam (Ljava/lang/String;)Ljava/lang/String; + public static fun finishResponse (Lcom/dropbox/core/http/HttpRequestor$Response;Lcom/dropbox/core/DbxRequestUtil$ResponseHandler;)Ljava/lang/Object; + public static fun getContentType (Lcom/dropbox/core/http/HttpRequestor$Response;)Ljava/lang/String; + public static fun getFirstHeader (Lcom/dropbox/core/http/HttpRequestor$Response;Ljava/lang/String;)Ljava/lang/String; + public static fun getFirstHeaderMaybe (Lcom/dropbox/core/http/HttpRequestor$Response;Ljava/lang/String;)Ljava/lang/String; + public static fun getRequestId (Lcom/dropbox/core/http/HttpRequestor$Response;)Ljava/lang/String; + public static fun loadErrorBody (Lcom/dropbox/core/http/HttpRequestor$Response;)[B + public static fun parseErrorBody (Ljava/lang/String;I[B)Ljava/lang/String; + public static fun readJsonFromErrorMessage (Lcom/dropbox/core/stone/StoneSerializer;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; + public static fun readJsonFromResponse (Lcom/dropbox/core/json/JsonReader;Lcom/dropbox/core/http/HttpRequestor$Response;)Ljava/lang/Object; + public static fun removeAuthHeader (Ljava/util/List;)Ljava/util/List; + public static fun runAndRetry (ILcom/dropbox/core/DbxRequestUtil$RequestMaker;)Ljava/lang/Object; + public static fun startGet (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/http/HttpRequestor$Response; + public static fun startPostNoAuth (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/http/HttpRequestor$Response; + public static fun startPostRaw (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BLjava/util/List;)Lcom/dropbox/core/http/HttpRequestor$Response; + public static fun startPut (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public static fun toParamsArray (Ljava/util/Map;)[Ljava/lang/String; + public static fun unexpectedStatus (Lcom/dropbox/core/http/HttpRequestor$Response;)Lcom/dropbox/core/DbxException; + public static fun unexpectedStatus (Lcom/dropbox/core/http/HttpRequestor$Response;Ljava/lang/String;)Lcom/dropbox/core/DbxException; +} + +public abstract class com/dropbox/core/DbxRequestUtil$RequestMaker { + public fun ()V + public abstract fun run ()Ljava/lang/Object; +} + +public abstract class com/dropbox/core/DbxRequestUtil$ResponseHandler { + public fun ()V + public abstract fun handle (Lcom/dropbox/core/http/HttpRequestor$Response;)Ljava/lang/Object; +} + +public final class com/dropbox/core/DbxSdkVersion { + public static final field Version Ljava/lang/String; + public fun ()V +} + +public abstract interface class com/dropbox/core/DbxSessionStore { + public abstract fun clear ()V + public abstract fun get ()Ljava/lang/String; + public abstract fun set (Ljava/lang/String;)V +} + +public final class com/dropbox/core/DbxStandardSessionStore : com/dropbox/core/DbxSessionStore { + public fun (Ljakarta/servlet/http/HttpSession;Ljava/lang/String;)V + public fun clear ()V + public fun get ()Ljava/lang/String; + public fun getKey ()Ljava/lang/String; + public fun getSession ()Ljakarta/servlet/http/HttpSession; + public fun set (Ljava/lang/String;)V +} + +public abstract class com/dropbox/core/DbxStreamReader { + public fun ()V + public abstract fun read (Lcom/dropbox/core/NoThrowInputStream;)V +} + +public final class com/dropbox/core/DbxStreamReader$ByteArrayCopier : com/dropbox/core/DbxStreamReader { + public fun ([B)V + public fun ([BII)V + public fun read (Lcom/dropbox/core/NoThrowInputStream;)V +} + +public final class com/dropbox/core/DbxStreamReader$OutputStreamCopier : com/dropbox/core/DbxStreamReader { + public fun (Ljava/io/OutputStream;)V + public fun read (Lcom/dropbox/core/NoThrowInputStream;)V +} + +public abstract class com/dropbox/core/DbxStreamWriter { + public fun ()V + public abstract fun write (Lcom/dropbox/core/NoThrowOutputStream;)V +} + +public final class com/dropbox/core/DbxStreamWriter$ByteArrayCopier : com/dropbox/core/DbxStreamWriter { + public fun ([B)V + public fun ([BII)V + public fun write (Lcom/dropbox/core/NoThrowOutputStream;)V +} + +public final class com/dropbox/core/DbxStreamWriter$InputStreamCopier : com/dropbox/core/DbxStreamWriter { + public fun (Ljava/io/InputStream;)V + public fun write (Lcom/dropbox/core/NoThrowOutputStream;)V +} + +public abstract class com/dropbox/core/DbxUploader : java/io/Closeable { + protected fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Lcom/dropbox/core/stone/StoneSerializer;Lcom/dropbox/core/stone/StoneSerializer;Ljava/lang/String;)V + public fun abort ()V + public fun close ()V + public fun finish ()Ljava/lang/Object; + public fun getOutputStream ()Ljava/io/OutputStream; + public fun getOutputStream (Lcom/dropbox/core/util/IOUtil$ProgressListener;)Ljava/io/OutputStream; + protected abstract fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + public fun uploadAndFinish (Ljava/io/InputStream;)Ljava/lang/Object; + public fun uploadAndFinish (Ljava/io/InputStream;J)Ljava/lang/Object; + public fun uploadAndFinish (Ljava/io/InputStream;JLcom/dropbox/core/util/IOUtil$ProgressListener;)Ljava/lang/Object; + public fun uploadAndFinish (Ljava/io/InputStream;Lcom/dropbox/core/util/IOUtil$ProgressListener;)Ljava/lang/Object; +} + +public class com/dropbox/core/DbxWebAuth { + public static final field ROLE_PERSONAL Ljava/lang/String; + public static final field ROLE_WORK Ljava/lang/String; + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxAppInfo;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxAppInfo;Ljava/lang/String;Lcom/dropbox/core/DbxSessionStore;)V + public fun authorize (Lcom/dropbox/core/DbxWebAuth$Request;)Ljava/lang/String; + public fun finish (Ljava/util/Map;)Lcom/dropbox/core/DbxAuthFinish; + public fun finishFromCode (Ljava/lang/String;)Lcom/dropbox/core/DbxAuthFinish; + public fun finishFromCode (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/DbxAuthFinish; + public fun finishFromRedirect (Ljava/lang/String;Lcom/dropbox/core/DbxSessionStore;Ljava/util/Map;)Lcom/dropbox/core/DbxAuthFinish; + public static fun newRequestBuilder ()Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun start (Ljava/lang/String;)Ljava/lang/String; +} + +public final class com/dropbox/core/DbxWebAuth$BadRequestException : com/dropbox/core/DbxWebAuth$Exception { + public fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/DbxWebAuth$BadStateException : com/dropbox/core/DbxWebAuth$Exception { + public fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/DbxWebAuth$CsrfException : com/dropbox/core/DbxWebAuth$Exception { + public fun (Ljava/lang/String;)V +} + +public abstract class com/dropbox/core/DbxWebAuth$Exception : java/lang/Exception { + public fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/DbxWebAuth$NotApprovedException : com/dropbox/core/DbxWebAuth$Exception { + public fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/DbxWebAuth$ProviderException : com/dropbox/core/DbxWebAuth$Exception { + public fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/DbxWebAuth$Request { + public fun copy ()Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public static fun newBuilder ()Lcom/dropbox/core/DbxWebAuth$Request$Builder; +} + +public final class com/dropbox/core/DbxWebAuth$Request$Builder { + public fun build ()Lcom/dropbox/core/DbxWebAuth$Request; + public fun withDisableSignup (Ljava/lang/Boolean;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withForceReapprove (Ljava/lang/Boolean;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withIncludeGrantedScopes (Lcom/dropbox/core/IncludeGrantedScopes;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withNoRedirect ()Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withRedirectUri (Ljava/lang/String;Lcom/dropbox/core/DbxSessionStore;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withRequireRole (Ljava/lang/String;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withScope (Ljava/util/Collection;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withState (Ljava/lang/String;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; + public fun withTokenAccessType (Lcom/dropbox/core/TokenAccessType;)Lcom/dropbox/core/DbxWebAuth$Request$Builder; +} + +public class com/dropbox/core/DbxWebAuthNoRedirect { + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxAppInfo;)V + public fun finish (Ljava/lang/String;)Lcom/dropbox/core/DbxAuthFinish; + public fun start ()Ljava/lang/String; +} + +public final class com/dropbox/core/DbxWrappedException : java/lang/Exception { + public fun (Ljava/lang/Object;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;)V + public static fun executeBlockForObject (Lcom/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory;Ljava/lang/String;Ljava/lang/Object;)V + public static fun executeOtherBlocks (Lcom/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory;Ljava/lang/String;Ljava/lang/Object;)V + public static fun fromResponse (Lcom/dropbox/core/stone/StoneSerializer;Lcom/dropbox/core/http/HttpRequestor$Response;Ljava/lang/String;)Lcom/dropbox/core/DbxWrappedException; + public fun getErrorValue ()Ljava/lang/Object; + public fun getRequestId ()Ljava/lang/String; + public fun getUserMessage ()Lcom/dropbox/core/LocalizedText; +} + +public final class com/dropbox/core/IncludeGrantedScopes : java/lang/Enum { + public static final field TEAM Lcom/dropbox/core/IncludeGrantedScopes; + public static final field USER Lcom/dropbox/core/IncludeGrantedScopes; + public fun toString ()Ljava/lang/String; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/IncludeGrantedScopes; + public static fun values ()[Lcom/dropbox/core/IncludeGrantedScopes; +} + +public class com/dropbox/core/InvalidAccessTokenException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/auth/AuthError;)V + public fun getAuthError ()Lcom/dropbox/core/v2/auth/AuthError; +} + +public final class com/dropbox/core/LocalizedText { + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun getLocale ()Ljava/lang/String; + public fun getText ()Ljava/lang/String; + public fun toString ()Ljava/lang/String; +} + +public class com/dropbox/core/NetworkIOException : com/dropbox/core/DbxException { + public fun (Ljava/io/IOException;)V + public fun getCause ()Ljava/io/IOException; + public synthetic fun getCause ()Ljava/lang/Throwable; +} + +public final class com/dropbox/core/NoThrowInputStream : java/io/InputStream { + public fun (Ljava/io/InputStream;)V + public fun close ()V + public fun getBytesRead ()J + public fun read ()I + public fun read ([B)I + public fun read ([BII)I +} + +public final class com/dropbox/core/NoThrowInputStream$HiddenException : java/lang/RuntimeException { + public fun (Ljava/io/IOException;)V + public fun getCause ()Ljava/io/IOException; + public synthetic fun getCause ()Ljava/lang/Throwable; +} + +public final class com/dropbox/core/NoThrowOutputStream : java/io/OutputStream { + public fun (Ljava/io/OutputStream;)V + public fun close ()V + public fun flush ()V + public fun getBytesWritten ()J + public fun write (I)V + public fun write ([B)V + public fun write ([BII)V +} + +public final class com/dropbox/core/NoThrowOutputStream$HiddenException : java/lang/RuntimeException { + public final field owner Lcom/dropbox/core/NoThrowOutputStream; + public static final field serialVersionUID J + public fun (Lcom/dropbox/core/NoThrowOutputStream;Ljava/io/IOException;)V + public fun getCause ()Ljava/io/IOException; + public synthetic fun getCause ()Ljava/lang/Throwable; +} + +public class com/dropbox/core/PathRootErrorException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/common/PathRootError;)V + public fun getPathRootError ()Lcom/dropbox/core/v2/common/PathRootError; +} + +public abstract class com/dropbox/core/ProtocolException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V +} + +public class com/dropbox/core/RateLimitException : com/dropbox/core/RetryException { + public fun (Ljava/lang/String;Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)V +} + +public class com/dropbox/core/RetryException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)V + public fun getBackoffMillis ()J +} + +public class com/dropbox/core/ServerException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Ljava/lang/String;)V +} + +public final class com/dropbox/core/TokenAccessType : java/lang/Enum { + public static final field OFFLINE Lcom/dropbox/core/TokenAccessType; + public static final field ONLINE Lcom/dropbox/core/TokenAccessType; + public fun toString ()Ljava/lang/String; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/TokenAccessType; + public static fun values ()[Lcom/dropbox/core/TokenAccessType; +} + +public class com/dropbox/core/http/GoogleAppEngineRequestor : com/dropbox/core/http/HttpRequestor { + public fun ()V + public fun (Lcom/google/appengine/api/urlfetch/FetchOptions;)V + public fun (Lcom/google/appengine/api/urlfetch/FetchOptions;Lcom/google/appengine/api/urlfetch/URLFetchService;)V + public fun doGet (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Response; + public fun getOptions ()Lcom/google/appengine/api/urlfetch/FetchOptions; + public fun getService ()Lcom/google/appengine/api/urlfetch/URLFetchService; + public static fun newDefaultOptions ()Lcom/google/appengine/api/urlfetch/FetchOptions; + public fun startPost (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public fun startPut (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; +} + +public abstract class com/dropbox/core/http/HttpRequestor { + public static final field DEFAULT_CONNECT_TIMEOUT_MILLIS J + public static final field DEFAULT_READ_TIMEOUT_MILLIS J + public fun ()V + public abstract fun doGet (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Response; + public abstract fun startPost (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public fun startPostInStreamingMode (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public abstract fun startPut (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; +} + +public final class com/dropbox/core/http/HttpRequestor$Header { + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun getKey ()Ljava/lang/String; + public fun getValue ()Ljava/lang/String; +} + +public final class com/dropbox/core/http/HttpRequestor$Response { + public fun (ILjava/io/InputStream;Ljava/util/Map;)V + public fun getBody ()Ljava/io/InputStream; + public fun getHeaders ()Ljava/util/Map; + public fun getStatusCode ()I +} + +public abstract class com/dropbox/core/http/HttpRequestor$Uploader { + protected field progressListener Lcom/dropbox/core/util/IOUtil$ProgressListener; + public fun ()V + public abstract fun abort ()V + public abstract fun close ()V + public abstract fun finish ()Lcom/dropbox/core/http/HttpRequestor$Response; + public abstract fun getBody ()Ljava/io/OutputStream; + public fun setProgressListener (Lcom/dropbox/core/util/IOUtil$ProgressListener;)V + public fun upload (Ljava/io/File;)V + public fun upload (Ljava/io/InputStream;)V + public fun upload (Ljava/io/InputStream;J)V + public fun upload ([B)V +} + +public class com/dropbox/core/http/OkHttp3Requestor : com/dropbox/core/http/HttpRequestor { + public fun (Lokhttp3/OkHttpClient;)V + protected fun configureRequest (Lokhttp3/Request$Builder;)V + public static fun defaultOkHttpClient ()Lokhttp3/OkHttpClient; + public static fun defaultOkHttpClientBuilder ()Lokhttp3/OkHttpClient$Builder; + public fun doGet (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Response; + public fun getClient ()Lokhttp3/OkHttpClient; + protected fun interceptResponse (Lokhttp3/Response;)Lokhttp3/Response; + public fun startPost (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public fun startPut (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; +} + +public final class com/dropbox/core/http/OkHttp3Requestor$AsyncCallback : okhttp3/Callback { + public fun getResponse ()Lokhttp3/Response; + public fun onFailure (Lokhttp3/Call;Ljava/io/IOException;)V + public fun onResponse (Lokhttp3/Call;Lokhttp3/Response;)V +} + +public class com/dropbox/core/http/OkHttpRequestor : com/dropbox/core/http/HttpRequestor { + public fun (Lcom/squareup/okhttp/OkHttpClient;)V + protected fun configureRequest (Lcom/squareup/okhttp/Request$Builder;)V + public static fun defaultOkHttpClient ()Lcom/squareup/okhttp/OkHttpClient; + public fun doGet (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Response; + public fun getClient ()Lcom/squareup/okhttp/OkHttpClient; + protected fun interceptResponse (Lcom/squareup/okhttp/Response;)Lcom/squareup/okhttp/Response; + public fun startPost (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public fun startPut (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; +} + +public final class com/dropbox/core/http/OkHttpRequestor$AsyncCallback : com/squareup/okhttp/Callback { + public fun getResponse ()Lcom/squareup/okhttp/Response; + public fun onFailure (Lcom/squareup/okhttp/Request;Ljava/io/IOException;)V + public fun onResponse (Lcom/squareup/okhttp/Response;)V +} + +public class com/dropbox/core/http/StandardHttpRequestor : com/dropbox/core/http/HttpRequestor { + public static final field INSTANCE Lcom/dropbox/core/http/StandardHttpRequestor; + public fun (Lcom/dropbox/core/http/StandardHttpRequestor$Config;)V + protected fun configure (Ljava/net/HttpURLConnection;)V + protected fun configureConnection (Ljavax/net/ssl/HttpsURLConnection;)V + public fun doGet (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Response; + protected fun interceptResponse (Ljava/net/HttpURLConnection;)V + protected fun prepRequest (Ljava/lang/String;Ljava/lang/Iterable;Z)Ljava/net/HttpURLConnection; + public synthetic fun startPost (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public fun startPost (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/StandardHttpRequestor$Uploader; + public synthetic fun startPostInStreamingMode (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public fun startPostInStreamingMode (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/StandardHttpRequestor$Uploader; + public synthetic fun startPut (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + public fun startPut (Ljava/lang/String;Ljava/lang/Iterable;)Lcom/dropbox/core/http/StandardHttpRequestor$Uploader; +} + +public final class com/dropbox/core/http/StandardHttpRequestor$Config { + public static final field DEFAULT_INSTANCE Lcom/dropbox/core/http/StandardHttpRequestor$Config; + public static fun builder ()Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; + public fun copy ()Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; + public fun getConnectTimeoutMillis ()J + public fun getProxy ()Ljava/net/Proxy; + public fun getReadTimeoutMillis ()J + public fun getSslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory; +} + +public final class com/dropbox/core/http/StandardHttpRequestor$Config$Builder { + public fun build ()Lcom/dropbox/core/http/StandardHttpRequestor$Config; + public fun withConnectTimeout (JLjava/util/concurrent/TimeUnit;)Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; + public fun withNoConnectTimeout ()Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; + public fun withNoReadTimeout ()Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; + public fun withProxy (Ljava/net/Proxy;)Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; + public fun withReadTimeout (JLjava/util/concurrent/TimeUnit;)Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; + public fun withSslSocketFactory (Ljavax/net/ssl/SSLSocketFactory;)Lcom/dropbox/core/http/StandardHttpRequestor$Config$Builder; +} + +public class com/dropbox/core/json/JsonArrayReader : com/dropbox/core/json/JsonReader { + public final field collector Lcom/dropbox/core/util/Collector; + public final field elementReader Lcom/dropbox/core/json/JsonReader; + public fun (Lcom/dropbox/core/json/JsonReader;Lcom/dropbox/core/util/Collector;)V + public static fun mk (Lcom/dropbox/core/json/JsonReader;)Lcom/dropbox/core/json/JsonArrayReader; + public static fun mk (Lcom/dropbox/core/json/JsonReader;Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/json/JsonArrayReader; + public static fun read (Lcom/dropbox/core/json/JsonReader;Lcom/dropbox/core/util/Collector;Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; +} + +public class com/dropbox/core/json/JsonDateReader { + public static final field Dropbox Lcom/dropbox/core/json/JsonReader; + public static final field DropboxV2 Lcom/dropbox/core/json/JsonReader; + public static final field UTC Ljava/util/TimeZone; + public fun ()V + public static fun getMonthIndex (CCC)I + public static fun isValidDayOfWeek (CCC)Z + public static fun parseDropbox8601Date ([CII)Ljava/util/Date; + public static fun parseDropboxDate ([CII)Ljava/util/Date; +} + +public final class com/dropbox/core/json/JsonReadException : java/lang/Exception { + public final field error Ljava/lang/String; + public final field location Lcom/fasterxml/jackson/core/JsonLocation; + public static final field serialVersionUID J + public fun (Ljava/lang/String;Lcom/fasterxml/jackson/core/JsonLocation;)V + public fun (Ljava/lang/String;Lcom/fasterxml/jackson/core/JsonLocation;Ljava/lang/Throwable;)V + public fun addArrayContext (I)Lcom/dropbox/core/json/JsonReadException; + public fun addFieldContext (Ljava/lang/String;)Lcom/dropbox/core/json/JsonReadException; + public static fun fromJackson (Lcom/fasterxml/jackson/core/JsonProcessingException;)Lcom/dropbox/core/json/JsonReadException; + public fun getMessage ()Ljava/lang/String; + public static fun toStringLocation (Ljava/lang/StringBuilder;Lcom/fasterxml/jackson/core/JsonLocation;)V +} + +public final class com/dropbox/core/json/JsonReadException$PathPart { + public final field description Ljava/lang/String; + public final field next Lcom/dropbox/core/json/JsonReadException$PathPart; + public fun (Ljava/lang/String;Lcom/dropbox/core/json/JsonReadException$PathPart;)V +} + +public abstract class com/dropbox/core/json/JsonReader { + public static final field BinaryReader Lcom/dropbox/core/json/JsonReader; + public static final field BooleanReader Lcom/dropbox/core/json/JsonReader; + public static final field Float32Reader Lcom/dropbox/core/json/JsonReader; + public static final field Float64Reader Lcom/dropbox/core/json/JsonReader; + public static final field Int32Reader Lcom/dropbox/core/json/JsonReader; + public static final field Int64Reader Lcom/dropbox/core/json/JsonReader; + public static final field StringReader Lcom/dropbox/core/json/JsonReader; + public static final field UInt32Reader Lcom/dropbox/core/json/JsonReader; + public static final field UInt64Reader Lcom/dropbox/core/json/JsonReader; + public static final field UnsignedLongReader Lcom/dropbox/core/json/JsonReader; + public static final field VoidReader Lcom/dropbox/core/json/JsonReader; + public fun ()V + public static fun expectArrayEnd (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/fasterxml/jackson/core/JsonLocation; + public static fun expectArrayStart (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/fasterxml/jackson/core/JsonLocation; + public static fun expectObjectEnd (Lcom/fasterxml/jackson/core/JsonParser;)V + public static fun expectObjectStart (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/fasterxml/jackson/core/JsonLocation; + public static fun isArrayEnd (Lcom/fasterxml/jackson/core/JsonParser;)Z + public static fun isArrayStart (Lcom/fasterxml/jackson/core/JsonParser;)Z + public static fun nextToken (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/fasterxml/jackson/core/JsonToken; + public abstract fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public static fun readBoolean (Lcom/fasterxml/jackson/core/JsonParser;)Z + public static fun readDouble (Lcom/fasterxml/jackson/core/JsonParser;)D + public static fun readEnum (Lcom/fasterxml/jackson/core/JsonParser;Ljava/util/HashMap;Ljava/lang/Object;)Ljava/lang/Object; + public final fun readField (Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; + public fun readFields (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun readFromFile (Ljava/io/File;)Ljava/lang/Object; + public fun readFromFile (Ljava/lang/String;)Ljava/lang/Object; + public fun readFromTags ([Ljava/lang/String;Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun readFully (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun readFully (Ljava/io/InputStream;)Ljava/lang/Object; + public fun readFully (Ljava/lang/String;)Ljava/lang/Object; + public fun readFully ([B)Ljava/lang/Object; + public final fun readOptional (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public static fun readTags (Lcom/fasterxml/jackson/core/JsonParser;)[Ljava/lang/String; + public static fun readUnsignedLong (Lcom/fasterxml/jackson/core/JsonParser;)J + public static fun readUnsignedLongField (Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/String;J)J + public static fun skipValue (Lcom/fasterxml/jackson/core/JsonParser;)V + public fun validate (Ljava/lang/Object;)V +} + +public final class com/dropbox/core/json/JsonReader$FieldMapping { + public final field fields Ljava/util/HashMap; + public fun get (Ljava/lang/String;)I +} + +public final class com/dropbox/core/json/JsonReader$FieldMapping$Builder { + public fun ()V + public fun add (Ljava/lang/String;I)V + public fun build ()Lcom/dropbox/core/json/JsonReader$FieldMapping; +} + +public abstract class com/dropbox/core/json/JsonReader$FileLoadException : java/lang/Exception { + protected fun (Ljava/lang/String;)V +} + +public final class com/dropbox/core/json/JsonReader$FileLoadException$IOError : com/dropbox/core/json/JsonReader$FileLoadException { + public final field reason Ljava/io/IOException; + public fun (Ljava/io/File;Ljava/io/IOException;)V +} + +public final class com/dropbox/core/json/JsonReader$FileLoadException$JsonError : com/dropbox/core/json/JsonReader$FileLoadException { + public final field reason Lcom/dropbox/core/json/JsonReadException; + public fun (Ljava/io/File;Lcom/dropbox/core/json/JsonReadException;)V +} + +public abstract class com/dropbox/core/json/JsonWriter { + public fun ()V + public static fun formatDate (Ljava/util/Date;)Ljava/lang/String; + public abstract fun write (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public fun write (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;I)V + public final fun writeDate (Ljava/util/Date;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public final fun writeDateIso (Ljava/util/Date;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public fun writeFields (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public final fun writeToFile (Ljava/lang/Object;Ljava/io/File;)V + public final fun writeToFile (Ljava/lang/Object;Ljava/io/File;Z)V + public final fun writeToFile (Ljava/lang/Object;Ljava/lang/String;)V + public final fun writeToFile (Ljava/lang/Object;Ljava/lang/String;Z)V + public final fun writeToStream (Ljava/lang/Object;Ljava/io/OutputStream;)V + public final fun writeToStream (Ljava/lang/Object;Ljava/io/OutputStream;Z)V + public final fun writeToString (Ljava/lang/Object;)Ljava/lang/String; + public final fun writeToString (Ljava/lang/Object;Z)Ljava/lang/String; +} + +public class com/dropbox/core/oauth/DbxCredential { + public static final field EXPIRE_MARGIN J + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field Writer Lcom/dropbox/core/json/JsonWriter; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun aboutToExpire ()Z + public fun getAccessToken ()Ljava/lang/String; + public fun getAppKey ()Ljava/lang/String; + public fun getAppSecret ()Ljava/lang/String; + public fun getExpiresAt ()Ljava/lang/Long; + public fun getRefreshToken ()Ljava/lang/String; + public fun refresh (Lcom/dropbox/core/DbxRequestConfig;)Lcom/dropbox/core/oauth/DbxRefreshResult; + public fun refresh (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;Ljava/util/Collection;)Lcom/dropbox/core/oauth/DbxRefreshResult; + public fun refresh (Lcom/dropbox/core/DbxRequestConfig;Ljava/util/Collection;)Lcom/dropbox/core/oauth/DbxRefreshResult; + public fun toString ()Ljava/lang/String; +} + +public class com/dropbox/core/oauth/DbxOAuthError { + public static final field ERRORS Ljava/util/Set; + public static final field INVALID_GRANT Ljava/lang/String; + public static final field INVALID_REQUEST Ljava/lang/String; + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field UNKNOWN Ljava/lang/String; + public static final field UNSUPPORTED_GRANT_TYPE Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun getError ()Ljava/lang/String; + public fun getErrorDescription ()Ljava/lang/String; +} + +public class com/dropbox/core/oauth/DbxOAuthException : com/dropbox/core/DbxException { + public fun (Ljava/lang/String;Lcom/dropbox/core/oauth/DbxOAuthError;)V + public fun getDbxOAuthError ()Lcom/dropbox/core/oauth/DbxOAuthError; +} + +public class com/dropbox/core/oauth/DbxRefreshResult { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public fun (Ljava/lang/String;J)V + public fun (Ljava/lang/String;JLjava/lang/String;)V + public fun getAccessToken ()Ljava/lang/String; + public fun getExpiresAt ()Ljava/lang/Long; + public fun getScope ()Ljava/lang/String; +} + +public abstract class com/dropbox/core/stone/CompositeSerializer : com/dropbox/core/stone/StoneSerializer { + protected static final field TAG_FIELD Ljava/lang/String; + public fun ()V + protected static fun hasTag (Lcom/fasterxml/jackson/core/JsonParser;)Z + protected static fun readTag (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/String; + protected fun writeTag (Ljava/lang/String;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/stone/StoneDeserializerLogger { + public static field LOGGER_MAP Ljava/util/Map; + public fun ()V + public static fun log (Ljava/lang/Object;Ljava/lang/String;)V + public static fun registerCallback (Ljava/lang/Class;Lcom/dropbox/core/stone/StoneDeserializerLogger$LoggerCallback;)V +} + +public abstract interface class com/dropbox/core/stone/StoneDeserializerLogger$LoggerCallback { + public abstract fun invoke (Ljava/lang/Object;Ljava/lang/String;)V +} + +public abstract class com/dropbox/core/stone/StoneSerializer { + public fun ()V + public abstract fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun deserialize (Ljava/io/InputStream;)Ljava/lang/Object; + public fun deserialize (Ljava/lang/String;)Ljava/lang/Object; + protected static fun expectEndArray (Lcom/fasterxml/jackson/core/JsonParser;)V + protected static fun expectEndObject (Lcom/fasterxml/jackson/core/JsonParser;)V + protected static fun expectField (Ljava/lang/String;Lcom/fasterxml/jackson/core/JsonParser;)V + protected static fun expectStartArray (Lcom/fasterxml/jackson/core/JsonParser;)V + protected static fun expectStartObject (Lcom/fasterxml/jackson/core/JsonParser;)V + protected static fun getStringValue (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/String; + public fun serialize (Ljava/lang/Object;)Ljava/lang/String; + public abstract fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public fun serialize (Ljava/lang/Object;Ljava/io/OutputStream;)V + public fun serialize (Ljava/lang/Object;Ljava/io/OutputStream;Z)V + public fun serialize (Ljava/lang/Object;Z)Ljava/lang/String; + protected static fun skipFields (Lcom/fasterxml/jackson/core/JsonParser;)V + protected static fun skipValue (Lcom/fasterxml/jackson/core/JsonParser;)V +} + +public final class com/dropbox/core/stone/StoneSerializers { + public fun ()V + public static fun boolean_ ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun bytes ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun float32 ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun float64 ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun int32 ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun int64 ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun list (Lcom/dropbox/core/stone/StoneSerializer;)Lcom/dropbox/core/stone/StoneSerializer; + public static fun map (Lcom/dropbox/core/stone/StoneSerializer;)Lcom/dropbox/core/stone/StoneSerializer; + public static fun nullable (Lcom/dropbox/core/stone/StoneSerializer;)Lcom/dropbox/core/stone/StoneSerializer; + public static fun nullableStruct (Lcom/dropbox/core/stone/StructSerializer;)Lcom/dropbox/core/stone/StructSerializer; + public static fun string ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun timestamp ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun uInt32 ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun uInt64 ()Lcom/dropbox/core/stone/StoneSerializer; + public static fun void_ ()Lcom/dropbox/core/stone/StoneSerializer; +} + +public abstract class com/dropbox/core/stone/StructSerializer : com/dropbox/core/stone/CompositeSerializer { + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public abstract fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public abstract fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public abstract class com/dropbox/core/stone/UnionSerializer : com/dropbox/core/stone/CompositeSerializer { + public fun ()V +} + +public abstract class com/dropbox/core/util/Collector { + public fun ()V + public abstract fun add (Ljava/lang/Object;)V + public abstract fun finish ()Ljava/lang/Object; +} + +public final class com/dropbox/core/util/Collector$ArrayListCollector : com/dropbox/core/util/Collector { + public fun ()V + public fun add (Ljava/lang/Object;)V + public synthetic fun finish ()Ljava/lang/Object; + public fun finish ()Ljava/util/ArrayList; +} + +public final class com/dropbox/core/util/Collector$NullSkipper : com/dropbox/core/util/Collector { + public fun (Lcom/dropbox/core/util/Collector;)V + public fun add (Ljava/lang/Object;)V + public fun finish ()Ljava/lang/Object; + public static fun mk (Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/util/Collector; +} + +public class com/dropbox/core/util/CountingOutputStream : java/io/OutputStream { + public fun (Ljava/io/OutputStream;)V + public fun close ()V + public fun flush ()V + public fun getBytesWritten ()J + public fun write (I)V + public fun write ([B)V + public fun write ([BII)V +} + +public abstract class com/dropbox/core/util/DumpWriter { + public fun ()V + public abstract fun f (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public fun fieldVerbatim (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public abstract fun listEnd ()Lcom/dropbox/core/util/DumpWriter; + public abstract fun listStart ()Lcom/dropbox/core/util/DumpWriter; + public abstract fun recordEnd ()Lcom/dropbox/core/util/DumpWriter; + public abstract fun recordStart (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public static fun toStringDate (Ljava/util/Date;)Ljava/lang/String; + public fun v (D)Lcom/dropbox/core/util/DumpWriter; + public fun v (F)Lcom/dropbox/core/util/DumpWriter; + public fun v (I)Lcom/dropbox/core/util/DumpWriter; + public fun v (J)Lcom/dropbox/core/util/DumpWriter; + public fun v (Lcom/dropbox/core/util/Dumpable;)Lcom/dropbox/core/util/DumpWriter; + public fun v (Ljava/lang/Iterable;)Lcom/dropbox/core/util/DumpWriter; + public fun v (Ljava/lang/Long;)Lcom/dropbox/core/util/DumpWriter; + public fun v (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public fun v (Ljava/util/Date;)Lcom/dropbox/core/util/DumpWriter; + public fun v (Z)Lcom/dropbox/core/util/DumpWriter; + public abstract fun verbatim (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; +} + +public final class com/dropbox/core/util/DumpWriter$Multiline : com/dropbox/core/util/DumpWriter { + public fun (Ljava/lang/StringBuilder;IIZ)V + public fun (Ljava/lang/StringBuilder;IZ)V + public fun f (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public fun listEnd ()Lcom/dropbox/core/util/DumpWriter; + public fun listStart ()Lcom/dropbox/core/util/DumpWriter; + public fun recordEnd ()Lcom/dropbox/core/util/DumpWriter; + public fun recordStart (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public fun verbatim (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; +} + +public final class com/dropbox/core/util/DumpWriter$Plain : com/dropbox/core/util/DumpWriter { + public fun (Ljava/lang/StringBuilder;)V + public fun f (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public fun listEnd ()Lcom/dropbox/core/util/DumpWriter; + public fun listStart ()Lcom/dropbox/core/util/DumpWriter; + public fun recordEnd ()Lcom/dropbox/core/util/DumpWriter; + public fun recordStart (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; + public fun verbatim (Ljava/lang/String;)Lcom/dropbox/core/util/DumpWriter; +} + +public abstract class com/dropbox/core/util/Dumpable { + public fun ()V + protected abstract fun dumpFields (Lcom/dropbox/core/util/DumpWriter;)V + protected fun getTypeName ()Ljava/lang/String; + public final fun toString ()Ljava/lang/String; + public final fun toString (Ljava/lang/StringBuilder;)V + public final fun toStringMultiline ()Ljava/lang/String; + public final fun toStringMultiline (Ljava/lang/StringBuilder;IZ)V +} + +public class com/dropbox/core/util/IOUtil { + public static final field BlackHoleOutputStream Ljava/io/OutputStream; + public static final field DEFAULT_COPY_BUFFER_SIZE I + public static final field EmptyInputStream Ljava/io/InputStream; + public fun ()V + public static fun closeInput (Ljava/io/InputStream;)V + public static fun closeInput (Ljava/io/Reader;)V + public static fun closeQuietly (Ljava/io/Closeable;)V + public fun copyFileToStream (Ljava/io/File;Ljava/io/OutputStream;)V + public fun copyFileToStream (Ljava/io/File;Ljava/io/OutputStream;I)V + public fun copyStreamToFile (Ljava/io/InputStream;Ljava/io/File;)V + public fun copyStreamToFile (Ljava/io/InputStream;Ljava/io/File;I)V + public static fun copyStreamToStream (Ljava/io/InputStream;Ljava/io/OutputStream;)V + public static fun copyStreamToStream (Ljava/io/InputStream;Ljava/io/OutputStream;I)V + public static fun copyStreamToStream (Ljava/io/InputStream;Ljava/io/OutputStream;[B)V + public static fun limit (Ljava/io/InputStream;J)Ljava/io/InputStream; + public static fun slurp (Ljava/io/InputStream;I)[B + public static fun slurp (Ljava/io/InputStream;I[B)[B + public static fun toUtf8String (Ljava/io/InputStream;)Ljava/lang/String; + public static fun utf8Reader (Ljava/io/InputStream;)Ljava/io/Reader; + public static fun utf8Writer (Ljava/io/OutputStream;)Ljava/io/Writer; +} + +public abstract interface class com/dropbox/core/util/IOUtil$ProgressListener { + public abstract fun onProgress (J)V +} + +public final class com/dropbox/core/util/IOUtil$ReadException : com/dropbox/core/util/IOUtil$WrappedException { + public fun (Ljava/io/IOException;)V + public fun (Ljava/lang/String;Ljava/io/IOException;)V +} + +public abstract class com/dropbox/core/util/IOUtil$WrappedException : java/io/IOException { + public fun (Ljava/io/IOException;)V + public fun (Ljava/lang/String;Ljava/io/IOException;)V + public fun getCause ()Ljava/io/IOException; + public synthetic fun getCause ()Ljava/lang/Throwable; + public fun getMessage ()Ljava/lang/String; +} + +public final class com/dropbox/core/util/IOUtil$WriteException : com/dropbox/core/util/IOUtil$WrappedException { + public fun (Ljava/io/IOException;)V + public fun (Ljava/lang/String;Ljava/io/IOException;)V +} + +public class com/dropbox/core/util/LangUtil { + public fun ()V + public static fun arrayConcat ([Ljava/lang/Object;[Ljava/lang/Object;)[Ljava/lang/Object; + public static fun badType (Ljava/lang/Object;)Ljava/lang/AssertionError; + public static fun mkAssert (Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/RuntimeException; + public static fun nullableEquals (Ljava/lang/Object;Ljava/lang/Object;)Z + public static fun nullableHashCode (Ljava/lang/Object;)I + public static fun truncateMillis (Ljava/util/Date;)Ljava/util/Date; + public static fun truncateMillis (Ljava/util/List;)Ljava/util/List; +} + +public abstract class com/dropbox/core/util/Maybe { + public static fun Just (Ljava/lang/Object;)Lcom/dropbox/core/util/Maybe; + public static fun Nothing ()Lcom/dropbox/core/util/Maybe; + public abstract fun equals (Lcom/dropbox/core/util/Maybe;)Z + public abstract fun get (Ljava/lang/Object;)Ljava/lang/Object; + public abstract fun getJust ()Ljava/lang/Object; + public abstract fun hashCode ()I + public abstract fun isJust ()Z + public abstract fun isNothing ()Z + public abstract fun toString ()Ljava/lang/String; +} + +public class com/dropbox/core/util/ProgressOutputStream : java/io/OutputStream { + public fun (Ljava/io/OutputStream;)V + public fun (Ljava/io/OutputStream;Lcom/dropbox/core/util/IOUtil$ProgressListener;)V + public fun close ()V + public fun flush ()V + public fun setListener (Lcom/dropbox/core/util/IOUtil$ProgressListener;)V + public fun write (I)V + public fun write ([B)V + public fun write ([BII)V +} + +public class com/dropbox/core/util/StringUtil { + public static final field Base64Digits Ljava/lang/String; + public static final field UTF8 Ljava/nio/charset/Charset; + public static final field UrlSafeBase64Digits Ljava/lang/String; + public fun ()V + public static fun base64Encode ([B)Ljava/lang/String; + public static fun base64EncodeGeneric (Ljava/lang/String;[B)Ljava/lang/String; + public static fun binaryToHex ([B)Ljava/lang/String; + public static fun binaryToHex ([BII)Ljava/lang/String; + public static fun hexDigit (I)C + public static fun javaQuotedLiteral (Ljava/lang/String;)Ljava/lang/String; + public static fun javaQuotedLiterals (Ljava/lang/Iterable;)Ljava/lang/String; + public static fun javaQuotedLiterals ([Ljava/lang/String;)Ljava/lang/String; + public static fun join (Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String; + public static fun jq (Ljava/lang/Iterable;)Ljava/lang/String; + public static fun jq (Ljava/lang/String;)Ljava/lang/String; + public static fun jq ([Ljava/lang/String;)Ljava/lang/String; + public static fun secureStringEquals (Ljava/lang/String;Ljava/lang/String;)Z + public static fun stringToUtf8 (Ljava/lang/String;)[B + public static fun urlSafeBase64Encode ([B)Ljava/lang/String; + public static fun utf8ToString ([B)Ljava/lang/String; + public static fun utf8ToString ([BII)Ljava/lang/String; +} + +public class com/dropbox/core/v1/DbxAccountInfo : com/dropbox/core/util/Dumpable { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public final field country Ljava/lang/String; + public final field displayName Ljava/lang/String; + public final field email Ljava/lang/String; + public final field emailVerified Z + public final field nameDetails Lcom/dropbox/core/v1/DbxAccountInfo$NameDetails; + public final field quota Lcom/dropbox/core/v1/DbxAccountInfo$Quota; + public final field referralLink Ljava/lang/String; + public final field userId J + public fun (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v1/DbxAccountInfo$Quota;Ljava/lang/String;Lcom/dropbox/core/v1/DbxAccountInfo$NameDetails;Z)V + protected fun dumpFields (Lcom/dropbox/core/util/DumpWriter;)V +} + +public final class com/dropbox/core/v1/DbxAccountInfo$NameDetails : com/dropbox/core/util/Dumpable { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public final field familiarName Ljava/lang/String; + public final field givenName Ljava/lang/String; + public final field surname Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V +} + +public final class com/dropbox/core/v1/DbxAccountInfo$Quota : com/dropbox/core/util/Dumpable { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public final field normal J + public final field shared J + public final field total J + public fun (JJJ)V +} + +public final class com/dropbox/core/v1/DbxClientV1 { + public static final field USER_AGENT_ID Ljava/lang/String; + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Lcom/dropbox/core/DbxHost;)V + public fun chunkedUploadAppend (Ljava/lang/String;JJLcom/dropbox/core/DbxStreamWriter;)J + public fun chunkedUploadAppend (Ljava/lang/String;J[B)J + public fun chunkedUploadAppend (Ljava/lang/String;J[BII)J + public fun chunkedUploadFinish (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun chunkedUploadFirst (ILcom/dropbox/core/DbxStreamWriter;)Ljava/lang/String; + public fun chunkedUploadFirst ([B)Ljava/lang/String; + public fun chunkedUploadFirst ([BII)Ljava/lang/String; + public fun copy (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry; + public fun copyFromCopyRef (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry; + public fun createCopyRef (Ljava/lang/String;)Ljava/lang/String; + public fun createFolder (Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry$Folder; + public fun createShareableUrl (Ljava/lang/String;)Ljava/lang/String; + public fun createTemporaryDirectUrl (Ljava/lang/String;)Lcom/dropbox/core/v1/DbxUrlWithExpiration; + public fun delete (Ljava/lang/String;)V + public fun disableAccessToken ()V + public fun doPost (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/util/ArrayList;Lcom/dropbox/core/DbxRequestUtil$ResponseHandler;)Ljava/lang/Object; + public fun finishUploadFile (Lcom/dropbox/core/v1/DbxClientV1$Uploader;Lcom/dropbox/core/DbxStreamWriter;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun getAccessToken ()Ljava/lang/String; + public fun getAccountInfo ()Lcom/dropbox/core/v1/DbxAccountInfo; + public fun getDelta (Ljava/lang/String;)Lcom/dropbox/core/v1/DbxDelta; + public fun getDelta (Ljava/lang/String;Z)Lcom/dropbox/core/v1/DbxDelta; + public fun getDeltaC (Lcom/dropbox/core/util/Collector;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxDeltaC; + public fun getDeltaC (Lcom/dropbox/core/util/Collector;Ljava/lang/String;Z)Lcom/dropbox/core/v1/DbxDeltaC; + public fun getDeltaCWithPathPrefix (Lcom/dropbox/core/util/Collector;Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxDeltaC; + public fun getDeltaCWithPathPrefix (Lcom/dropbox/core/util/Collector;Ljava/lang/String;Ljava/lang/String;Z)Lcom/dropbox/core/v1/DbxDeltaC; + public fun getDeltaLatestCursor ()Ljava/lang/String; + public fun getDeltaLatestCursor (Z)Ljava/lang/String; + public fun getDeltaLatestCursorWithPathPrefix (Ljava/lang/String;)Ljava/lang/String; + public fun getDeltaLatestCursorWithPathPrefix (Ljava/lang/String;Z)Ljava/lang/String; + public fun getDeltaWithPathPrefix (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxDelta; + public fun getDeltaWithPathPrefix (Ljava/lang/String;Ljava/lang/String;Z)Lcom/dropbox/core/v1/DbxDelta; + public fun getFile (Ljava/lang/String;Ljava/lang/String;Ljava/io/OutputStream;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun getHost ()Lcom/dropbox/core/DbxHost; + public fun getLongpollDelta (Ljava/lang/String;I)Lcom/dropbox/core/v1/DbxLongpollDeltaResult; + public fun getMetadata (Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry; + public fun getMetadata (Ljava/lang/String;Z)Lcom/dropbox/core/v1/DbxEntry; + public fun getMetadataWithChildren (Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry$WithChildren; + public fun getMetadataWithChildren (Ljava/lang/String;Z)Lcom/dropbox/core/v1/DbxEntry$WithChildren; + public fun getMetadataWithChildrenC (Ljava/lang/String;Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/v1/DbxEntry$WithChildrenC; + public fun getMetadataWithChildrenC (Ljava/lang/String;ZLcom/dropbox/core/util/Collector;)Lcom/dropbox/core/v1/DbxEntry$WithChildrenC; + public fun getMetadataWithChildrenIfChanged (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/util/Maybe; + public fun getMetadataWithChildrenIfChanged (Ljava/lang/String;ZLjava/lang/String;)Lcom/dropbox/core/util/Maybe; + public fun getMetadataWithChildrenIfChangedC (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/util/Maybe; + public fun getMetadataWithChildrenIfChangedC (Ljava/lang/String;ZLjava/lang/String;Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/util/Maybe; + public fun getRequestConfig ()Lcom/dropbox/core/DbxRequestConfig; + public fun getRevisions (Ljava/lang/String;)Ljava/util/List; + public fun getThumbnail (Lcom/dropbox/core/v1/DbxThumbnailSize;Lcom/dropbox/core/v1/DbxThumbnailFormat;Ljava/lang/String;Ljava/lang/String;Ljava/io/OutputStream;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun move (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry; + public fun restoreFile (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun searchFileAndFolderNames (Ljava/lang/String;Ljava/lang/String;)Ljava/util/List; + public fun startGetFile (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxClientV1$Downloader; + public fun startGetThumbnail (Lcom/dropbox/core/v1/DbxThumbnailSize;Lcom/dropbox/core/v1/DbxThumbnailFormat;Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v1/DbxClientV1$Downloader; + public fun startUploadFile (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;J)Lcom/dropbox/core/v1/DbxClientV1$Uploader; + public fun startUploadFileChunked (ILjava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;J)Lcom/dropbox/core/v1/DbxClientV1$Uploader; + public fun startUploadFileChunked (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;J)Lcom/dropbox/core/v1/DbxClientV1$Uploader; + public fun startUploadFileSingle (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;J)Lcom/dropbox/core/v1/DbxClientV1$Uploader; + public fun uploadFile (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;JLcom/dropbox/core/DbxStreamWriter;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun uploadFile (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;JLjava/io/InputStream;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun uploadFileChunked (ILjava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;JLcom/dropbox/core/DbxStreamWriter;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun uploadFileChunked (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;JLcom/dropbox/core/DbxStreamWriter;)Lcom/dropbox/core/v1/DbxEntry$File; + public fun uploadFileSingle (Ljava/lang/String;Lcom/dropbox/core/v1/DbxWriteMode;JLcom/dropbox/core/DbxStreamWriter;)Lcom/dropbox/core/v1/DbxEntry$File; +} + +public final class com/dropbox/core/v1/DbxClientV1$Downloader { + public final field body Ljava/io/InputStream; + public final field metadata Lcom/dropbox/core/v1/DbxEntry$File; + public fun (Lcom/dropbox/core/v1/DbxEntry$File;Ljava/io/InputStream;)V + public fun close ()V +} + +public final class com/dropbox/core/v1/DbxClientV1$IODbxException : java/io/IOException { + public final field underlying Lcom/dropbox/core/DbxException; + public fun (Lcom/dropbox/core/DbxException;)V +} + +public abstract class com/dropbox/core/v1/DbxClientV1$Uploader { + public fun ()V + public abstract fun abort ()V + public abstract fun close ()V + public abstract fun finish ()Lcom/dropbox/core/v1/DbxEntry$File; + public abstract fun getBody ()Ljava/io/OutputStream; +} + +public final class com/dropbox/core/v1/DbxDelta : com/dropbox/core/util/Dumpable { + public final field cursor Ljava/lang/String; + public final field entries Ljava/util/List; + public final field hasMore Z + public final field reset Z + public fun (ZLjava/util/List;Ljava/lang/String;Z)V +} + +public final class com/dropbox/core/v1/DbxDelta$Entry : com/dropbox/core/util/Dumpable { + public final field lcPath Ljava/lang/String; + public final field metadata Lcom/dropbox/core/util/Dumpable; + public fun (Ljava/lang/String;Lcom/dropbox/core/util/Dumpable;)V +} + +public final class com/dropbox/core/v1/DbxDelta$Entry$Reader : com/dropbox/core/json/JsonReader { + public final field metadataReader Lcom/dropbox/core/json/JsonReader; + public fun (Lcom/dropbox/core/json/JsonReader;)V + public fun read (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v1/DbxDelta$Entry; + public synthetic fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public static fun read (Lcom/fasterxml/jackson/core/JsonParser;Lcom/dropbox/core/json/JsonReader;)Lcom/dropbox/core/v1/DbxDelta$Entry; +} + +public final class com/dropbox/core/v1/DbxDelta$Reader : com/dropbox/core/json/JsonReader { + public final field metadataReader Lcom/dropbox/core/json/JsonReader; + public fun (Lcom/dropbox/core/json/JsonReader;)V + public fun read (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v1/DbxDelta; + public synthetic fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public static fun read (Lcom/fasterxml/jackson/core/JsonParser;Lcom/dropbox/core/json/JsonReader;)Lcom/dropbox/core/v1/DbxDelta; +} + +public class com/dropbox/core/v1/DbxDeltaC : com/dropbox/core/util/Dumpable { + public final field cursor Ljava/lang/String; + public final field entries Ljava/lang/Object; + public final field hasMore Z + public final field reset Z + public fun (ZLjava/lang/Object;Ljava/lang/String;Z)V + protected fun dumpFields (Lcom/dropbox/core/util/DumpWriter;)V +} + +public final class com/dropbox/core/v1/DbxDeltaC$Entry : com/dropbox/core/util/Dumpable { + public final field lcPath Ljava/lang/String; + public final field metadata Lcom/dropbox/core/util/Dumpable; + public fun (Ljava/lang/String;Lcom/dropbox/core/util/Dumpable;)V +} + +public final class com/dropbox/core/v1/DbxDeltaC$Entry$Reader : com/dropbox/core/json/JsonReader { + public final field metadataReader Lcom/dropbox/core/json/JsonReader; + public fun (Lcom/dropbox/core/json/JsonReader;)V + public fun read (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v1/DbxDeltaC$Entry; + public synthetic fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public static fun read (Lcom/fasterxml/jackson/core/JsonParser;Lcom/dropbox/core/json/JsonReader;)Lcom/dropbox/core/v1/DbxDeltaC$Entry; +} + +public final class com/dropbox/core/v1/DbxDeltaC$Reader : com/dropbox/core/json/JsonReader { + public final field entryCollector Lcom/dropbox/core/util/Collector; + public final field metadataReader Lcom/dropbox/core/json/JsonReader; + public fun (Lcom/dropbox/core/json/JsonReader;Lcom/dropbox/core/util/Collector;)V + public fun read (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v1/DbxDeltaC; + public synthetic fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public static fun read (Lcom/fasterxml/jackson/core/JsonParser;Lcom/dropbox/core/json/JsonReader;Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/v1/DbxDeltaC; +} + +public abstract class com/dropbox/core/v1/DbxEntry : com/dropbox/core/util/Dumpable, java/io/Serializable { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field ReaderMaybeDeleted Lcom/dropbox/core/json/JsonReader; + public final field iconName Ljava/lang/String; + public final field mightHaveThumbnail Z + public final field name Ljava/lang/String; + public final field path Ljava/lang/String; + public static final field serialVersionUID J + public abstract fun asFile ()Lcom/dropbox/core/v1/DbxEntry$File; + public abstract fun asFolder ()Lcom/dropbox/core/v1/DbxEntry$Folder; + protected fun dumpFields (Lcom/dropbox/core/util/DumpWriter;)V + public abstract fun isFile ()Z + public abstract fun isFolder ()Z + protected fun partialEquals (Lcom/dropbox/core/v1/DbxEntry;)Z + protected fun partialHashCode ()I + public static fun read (Lcom/fasterxml/jackson/core/JsonParser;Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/v1/DbxEntry$WithChildrenC; + public static fun readMaybeDeleted (Lcom/fasterxml/jackson/core/JsonParser;Lcom/dropbox/core/util/Collector;)Lcom/dropbox/core/v1/DbxEntry$WithChildrenC; +} + +public final class com/dropbox/core/v1/DbxEntry$File : com/dropbox/core/v1/DbxEntry { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field ReaderMaybeDeleted Lcom/dropbox/core/json/JsonReader; + public final field clientMtime Ljava/util/Date; + public final field humanSize Ljava/lang/String; + public final field lastModified Ljava/util/Date; + public final field numBytes J + public final field photoInfo Lcom/dropbox/core/v1/DbxEntry$File$PhotoInfo; + public final field rev Ljava/lang/String; + public static final field serialVersionUID J + public final field videoInfo Lcom/dropbox/core/v1/DbxEntry$File$VideoInfo; + public fun (Ljava/lang/String;Ljava/lang/String;ZJLjava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;ZJLjava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;Lcom/dropbox/core/v1/DbxEntry$File$PhotoInfo;Lcom/dropbox/core/v1/DbxEntry$File$VideoInfo;)V + public fun asFile ()Lcom/dropbox/core/v1/DbxEntry$File; + public fun asFolder ()Lcom/dropbox/core/v1/DbxEntry$Folder; + public fun equals (Lcom/dropbox/core/v1/DbxEntry$File;)Z + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun isFile ()Z + public fun isFolder ()Z +} + +public class com/dropbox/core/v1/DbxEntry$File$Location : com/dropbox/core/util/Dumpable { + public static field Reader Lcom/dropbox/core/json/JsonReader; + public final field latitude D + public final field longitude D + public fun (DD)V + protected fun dumpFields (Lcom/dropbox/core/util/DumpWriter;)V + public fun equals (Lcom/dropbox/core/v1/DbxEntry$File$Location;)Z + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I +} + +public final class com/dropbox/core/v1/DbxEntry$File$PhotoInfo : com/dropbox/core/util/Dumpable { + public static final field PENDING Lcom/dropbox/core/v1/DbxEntry$File$PhotoInfo; + public static field Reader Lcom/dropbox/core/json/JsonReader; + public final field location Lcom/dropbox/core/v1/DbxEntry$File$Location; + public final field timeTaken Ljava/util/Date; + public fun (Ljava/util/Date;Lcom/dropbox/core/v1/DbxEntry$File$Location;)V + public fun equals (Lcom/dropbox/core/v1/DbxEntry$File$PhotoInfo;)Z + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I +} + +public final class com/dropbox/core/v1/DbxEntry$File$VideoInfo : com/dropbox/core/util/Dumpable { + public static final field PENDING Lcom/dropbox/core/v1/DbxEntry$File$VideoInfo; + public static field Reader Lcom/dropbox/core/json/JsonReader; + public final field duration Ljava/lang/Long; + public final field location Lcom/dropbox/core/v1/DbxEntry$File$Location; + public final field timeTaken Ljava/util/Date; + public fun (Ljava/util/Date;Lcom/dropbox/core/v1/DbxEntry$File$Location;Ljava/lang/Long;)V + public fun equals (Lcom/dropbox/core/v1/DbxEntry$File$VideoInfo;)Z + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I +} + +public final class com/dropbox/core/v1/DbxEntry$Folder : com/dropbox/core/v1/DbxEntry { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field serialVersionUID J + public fun (Ljava/lang/String;Ljava/lang/String;Z)V + public fun asFile ()Lcom/dropbox/core/v1/DbxEntry$File; + public fun asFolder ()Lcom/dropbox/core/v1/DbxEntry$Folder; + public fun equals (Lcom/dropbox/core/v1/DbxEntry$Folder;)Z + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun isFile ()Z + public fun isFolder ()Z +} + +public final class com/dropbox/core/v1/DbxEntry$WithChildren : com/dropbox/core/util/Dumpable, java/io/Serializable { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public static final field ReaderMaybeDeleted Lcom/dropbox/core/json/JsonReader; + public final field children Ljava/util/List; + public final field entry Lcom/dropbox/core/v1/DbxEntry; + public final field hash Ljava/lang/String; + public static final field serialVersionUID J + public fun (Lcom/dropbox/core/v1/DbxEntry;Ljava/lang/String;Ljava/util/List;)V + public fun equals (Lcom/dropbox/core/v1/DbxEntry$WithChildren;)Z + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I +} + +public final class com/dropbox/core/v1/DbxEntry$WithChildrenC : com/dropbox/core/util/Dumpable, java/io/Serializable { + public final field children Ljava/lang/Object; + public final field entry Lcom/dropbox/core/v1/DbxEntry; + public final field hash Ljava/lang/String; + public static final field serialVersionUID J + public fun (Lcom/dropbox/core/v1/DbxEntry;Ljava/lang/String;Ljava/lang/Object;)V + public fun equals (Lcom/dropbox/core/v1/DbxEntry$WithChildrenC;)Z + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I +} + +public class com/dropbox/core/v1/DbxEntry$WithChildrenC$Reader : com/dropbox/core/json/JsonReader { + public fun (Lcom/dropbox/core/util/Collector;)V + public final fun read (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v1/DbxEntry$WithChildrenC; + public synthetic fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; +} + +public class com/dropbox/core/v1/DbxEntry$WithChildrenC$ReaderMaybeDeleted : com/dropbox/core/json/JsonReader { + public fun (Lcom/dropbox/core/util/Collector;)V + public final fun read (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v1/DbxEntry$WithChildrenC; + public synthetic fun read (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; +} + +public class com/dropbox/core/v1/DbxLongpollDeltaResult { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public field backoff J + public field mightHaveChanges Z + public fun (ZJ)V +} + +public class com/dropbox/core/v1/DbxPathV1 { + public fun ()V + public static fun checkArg (Ljava/lang/String;Ljava/lang/String;)V + public static fun checkArgNonRoot (Ljava/lang/String;Ljava/lang/String;)V + public static fun findError (Ljava/lang/String;)Ljava/lang/String; + public static fun getName (Ljava/lang/String;)Ljava/lang/String; + public static fun getParent (Ljava/lang/String;)Ljava/lang/String; + public static fun isValid (Ljava/lang/String;)Z + public static fun split (Ljava/lang/String;)[Ljava/lang/String; +} + +public class com/dropbox/core/v1/DbxThumbnailFormat { + public static final field JPEG Lcom/dropbox/core/v1/DbxThumbnailFormat; + public static final field PNG Lcom/dropbox/core/v1/DbxThumbnailFormat; + public final field ident Ljava/lang/String; + public fun (Ljava/lang/String;)V + public static fun bestForFileName (Ljava/lang/String;Lcom/dropbox/core/v1/DbxThumbnailFormat;)Lcom/dropbox/core/v1/DbxThumbnailFormat; +} + +public class com/dropbox/core/v1/DbxThumbnailSize { + public final field height I + public final field ident Ljava/lang/String; + public static final field w1024h768 Lcom/dropbox/core/v1/DbxThumbnailSize; + public static final field w128h128 Lcom/dropbox/core/v1/DbxThumbnailSize; + public static final field w32h32 Lcom/dropbox/core/v1/DbxThumbnailSize; + public static final field w640h480 Lcom/dropbox/core/v1/DbxThumbnailSize; + public static final field w64h64 Lcom/dropbox/core/v1/DbxThumbnailSize; + public final field width I + public fun (Ljava/lang/String;II)V + public fun toString ()Ljava/lang/String; +} + +public final class com/dropbox/core/v1/DbxUrlWithExpiration { + public static final field Reader Lcom/dropbox/core/json/JsonReader; + public final field expires Ljava/util/Date; + public final field url Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/util/Date;)V +} + +public final class com/dropbox/core/v1/DbxWriteMode { + public static fun add ()Lcom/dropbox/core/v1/DbxWriteMode; + public static fun force ()Lcom/dropbox/core/v1/DbxWriteMode; + public static fun update (Ljava/lang/String;)Lcom/dropbox/core/v1/DbxWriteMode; +} + +public class com/dropbox/core/v2/DbxAppClientV2 : com/dropbox/core/v2/DbxAppClientV2Base { + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/DbxHost;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/DbxHost;Ljava/lang/String;)V +} + +public class com/dropbox/core/v2/DbxAppClientV2Base { + protected final field _client Lcom/dropbox/core/v2/DbxRawClientV2; + protected fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun auth ()Lcom/dropbox/core/v2/auth/DbxAppAuthRequests; + public fun check ()Lcom/dropbox/core/v2/check/DbxAppCheckRequests; + public fun files ()Lcom/dropbox/core/v2/files/DbxAppFilesRequests; + public fun sharing ()Lcom/dropbox/core/v2/sharing/DbxAppSharingRequests; +} + +public class com/dropbox/core/v2/DbxClientV2 : com/dropbox/core/v2/DbxClientV2Base { + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/oauth/DbxCredential;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Lcom/dropbox/core/DbxHost;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Lcom/dropbox/core/DbxHost;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Ljava/lang/String;)V + public fun refreshAccessToken ()Lcom/dropbox/core/oauth/DbxRefreshResult; + public fun withPathRoot (Lcom/dropbox/core/v2/common/PathRoot;)Lcom/dropbox/core/v2/DbxClientV2; +} + +public class com/dropbox/core/v2/DbxClientV2Base { + protected final field _client Lcom/dropbox/core/v2/DbxRawClientV2; + protected fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun account ()Lcom/dropbox/core/v2/account/DbxUserAccountRequests; + public fun auth ()Lcom/dropbox/core/v2/auth/DbxUserAuthRequests; + public fun check ()Lcom/dropbox/core/v2/check/DbxUserCheckRequests; + public fun contacts ()Lcom/dropbox/core/v2/contacts/DbxUserContactsRequests; + public fun fileProperties ()Lcom/dropbox/core/v2/fileproperties/DbxUserFilePropertiesRequests; + public fun fileRequests ()Lcom/dropbox/core/v2/filerequests/DbxUserFileRequestsRequests; + public fun files ()Lcom/dropbox/core/v2/files/DbxUserFilesRequests; + public fun openid ()Lcom/dropbox/core/v2/openid/DbxUserOpenidRequests; + public fun paper ()Lcom/dropbox/core/v2/paper/DbxUserPaperRequests; + public fun sharing ()Lcom/dropbox/core/v2/sharing/DbxUserSharingRequests; + public fun users ()Lcom/dropbox/core/v2/users/DbxUserUsersRequests; +} + +public abstract class com/dropbox/core/v2/DbxDownloadStyleBuilder { + protected fun ()V + public fun download (Ljava/io/OutputStream;)Ljava/lang/Object; + protected fun getHeaders ()Ljava/util/List; + public fun range (J)Lcom/dropbox/core/v2/DbxDownloadStyleBuilder; + public fun range (JJ)Lcom/dropbox/core/v2/DbxDownloadStyleBuilder; + public abstract fun start ()Lcom/dropbox/core/DbxDownloader; +} + +public class com/dropbox/core/v2/DbxPathV2 { + public fun ()V + public static fun findError (Ljava/lang/String;)Ljava/lang/String; + public static fun getName (Ljava/lang/String;)Ljava/lang/String; + public static fun getParent (Ljava/lang/String;)Ljava/lang/String; + public static fun isValid (Ljava/lang/String;)Z + public static fun split (Ljava/lang/String;)[Ljava/lang/String; +} + +public abstract class com/dropbox/core/v2/DbxRawClientV2 { + public static final field USER_AGENT_ID Ljava/lang/String; + protected fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/DbxHost;Ljava/lang/String;Lcom/dropbox/core/v2/common/PathRoot;)V + protected abstract fun addAuthHeaders (Ljava/util/List;)V + protected abstract fun canRefreshAccessToken ()Z + public fun downloadStyle (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;ZLjava/util/List;Lcom/dropbox/core/stone/StoneSerializer;Lcom/dropbox/core/stone/StoneSerializer;Lcom/dropbox/core/stone/StoneSerializer;)Lcom/dropbox/core/DbxDownloader; + public fun getHost ()Lcom/dropbox/core/DbxHost; + public fun getRequestConfig ()Lcom/dropbox/core/DbxRequestConfig; + public fun getUserId ()Ljava/lang/String; + protected abstract fun needsRefreshAccessToken ()Z + public abstract fun refreshAccessToken ()Lcom/dropbox/core/oauth/DbxRefreshResult; + public fun rpcStyle (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;ZLcom/dropbox/core/stone/StoneSerializer;Lcom/dropbox/core/stone/StoneSerializer;Lcom/dropbox/core/stone/StoneSerializer;)Ljava/lang/Object; + public fun uploadStyle (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;ZLcom/dropbox/core/stone/StoneSerializer;)Lcom/dropbox/core/http/HttpRequestor$Uploader; + protected abstract fun withPathRoot (Lcom/dropbox/core/v2/common/PathRoot;)Lcom/dropbox/core/v2/DbxRawClientV2; +} + +public class com/dropbox/core/v2/DbxTeamClientV2 : com/dropbox/core/v2/DbxTeamClientV2Base { + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/oauth/DbxCredential;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Lcom/dropbox/core/oauth/DbxCredential;Lcom/dropbox/core/DbxHost;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Lcom/dropbox/core/DbxHost;)V + public fun (Lcom/dropbox/core/DbxRequestConfig;Ljava/lang/String;Lcom/dropbox/core/DbxHost;Ljava/lang/String;)V + public fun asAdmin (Ljava/lang/String;)Lcom/dropbox/core/v2/DbxClientV2; + public fun asMember (Ljava/lang/String;)Lcom/dropbox/core/v2/DbxClientV2; + public fun refreshAccessToken ()Lcom/dropbox/core/oauth/DbxRefreshResult; +} + +public class com/dropbox/core/v2/DbxTeamClientV2Base { + protected final field _client Lcom/dropbox/core/v2/DbxRawClientV2; + protected fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun fileProperties ()Lcom/dropbox/core/v2/fileproperties/DbxTeamFilePropertiesRequests; + public fun team ()Lcom/dropbox/core/v2/team/DbxTeamTeamRequests; + public fun teamLog ()Lcom/dropbox/core/v2/teamlog/DbxTeamTeamLogRequests; +} + +public abstract class com/dropbox/core/v2/DbxUploadStyleBuilder { + public fun ()V + public abstract fun start ()Lcom/dropbox/core/DbxUploader; + public fun uploadAndFinish (Ljava/io/InputStream;)Ljava/lang/Object; + public fun uploadAndFinish (Ljava/io/InputStream;J)Ljava/lang/Object; + public fun uploadAndFinish (Ljava/io/InputStream;JLcom/dropbox/core/util/IOUtil$ProgressListener;)Ljava/lang/Object; + public fun uploadAndFinish (Ljava/io/InputStream;Lcom/dropbox/core/util/IOUtil$ProgressListener;)Ljava/lang/Object; +} + +public class com/dropbox/core/v2/account/DbxUserAccountRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun setProfilePhoto (Lcom/dropbox/core/v2/account/PhotoSourceArg;)Lcom/dropbox/core/v2/account/SetProfilePhotoResult; +} + +public final class com/dropbox/core/v2/account/PhotoSourceArg { + public static final field OTHER Lcom/dropbox/core/v2/account/PhotoSourceArg; + public static fun base64Data (Ljava/lang/String;)Lcom/dropbox/core/v2/account/PhotoSourceArg; + public fun equals (Ljava/lang/Object;)Z + public fun getBase64DataValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isBase64Data ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/account/PhotoSourceArg$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/account/PhotoSourceArg$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/account/PhotoSourceArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/account/PhotoSourceArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/account/PhotoSourceArg;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/account/PhotoSourceArg$Tag : java/lang/Enum { + public static final field BASE64_DATA Lcom/dropbox/core/v2/account/PhotoSourceArg$Tag; + public static final field OTHER Lcom/dropbox/core/v2/account/PhotoSourceArg$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/account/PhotoSourceArg$Tag; + public static fun values ()[Lcom/dropbox/core/v2/account/PhotoSourceArg$Tag; +} + +public final class com/dropbox/core/v2/account/SetProfilePhotoError : java/lang/Enum { + public static final field DIMENSION_ERROR Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public static final field FILE_SIZE_ERROR Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public static final field FILE_TYPE_ERROR Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public static final field OTHER Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public static final field THUMBNAIL_ERROR Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public static final field TRANSIENT_ERROR Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public static fun values ()[Lcom/dropbox/core/v2/account/SetProfilePhotoError; +} + +public class com/dropbox/core/v2/account/SetProfilePhotoError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/account/SetProfilePhotoError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/account/SetProfilePhotoError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/account/SetProfilePhotoErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/account/SetProfilePhotoError;)V +} + +public class com/dropbox/core/v2/account/SetProfilePhotoResult { + protected final field profilePhotoUrl Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getProfilePhotoUrl ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/async/LaunchEmptyResult { + public static final field COMPLETE Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun tag ()Lcom/dropbox/core/v2/async/LaunchEmptyResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/async/LaunchEmptyResult$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/async/LaunchEmptyResult$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/async/LaunchEmptyResult;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/async/LaunchEmptyResult$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/async/LaunchEmptyResult$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/async/LaunchEmptyResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/async/LaunchEmptyResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/async/LaunchEmptyResult$Tag; +} + +public final class com/dropbox/core/v2/async/LaunchResultBase { + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/async/LaunchResultBase; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun tag ()Lcom/dropbox/core/v2/async/LaunchResultBase$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/async/LaunchResultBase$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/async/LaunchResultBase$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/async/LaunchResultBase; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/async/LaunchResultBase;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/async/LaunchResultBase$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/async/LaunchResultBase$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/async/LaunchResultBase$Tag; + public static fun values ()[Lcom/dropbox/core/v2/async/LaunchResultBase$Tag; +} + +public class com/dropbox/core/v2/async/PollArg { + protected final field asyncJobId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/async/PollArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/async/PollArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/async/PollArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/async/PollArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/async/PollEmptyResult : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/async/PollEmptyResult; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/async/PollEmptyResult; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/async/PollEmptyResult; + public static fun values ()[Lcom/dropbox/core/v2/async/PollEmptyResult; +} + +public class com/dropbox/core/v2/async/PollEmptyResult$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/async/PollEmptyResult$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/async/PollEmptyResult; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/async/PollEmptyResult;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/async/PollError : java/lang/Enum { + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/async/PollError; + public static final field INVALID_ASYNC_JOB_ID Lcom/dropbox/core/v2/async/PollError; + public static final field OTHER Lcom/dropbox/core/v2/async/PollError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/async/PollError; + public static fun values ()[Lcom/dropbox/core/v2/async/PollError; +} + +public class com/dropbox/core/v2/async/PollError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/async/PollError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/async/PollError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/async/PollError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/async/PollErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/async/PollError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/async/PollError;)V +} + +public final class com/dropbox/core/v2/auth/AccessError { + public static final field OTHER Lcom/dropbox/core/v2/auth/AccessError; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidAccountTypeValue ()Lcom/dropbox/core/v2/auth/InvalidAccountTypeError; + public fun getPaperAccessDeniedValue ()Lcom/dropbox/core/v2/auth/PaperAccessError; + public fun hashCode ()I + public static fun invalidAccountType (Lcom/dropbox/core/v2/auth/InvalidAccountTypeError;)Lcom/dropbox/core/v2/auth/AccessError; + public fun isInvalidAccountType ()Z + public fun isOther ()Z + public fun isPaperAccessDenied ()Z + public static fun paperAccessDenied (Lcom/dropbox/core/v2/auth/PaperAccessError;)Lcom/dropbox/core/v2/auth/AccessError; + public fun tag ()Lcom/dropbox/core/v2/auth/AccessError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/auth/AccessError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/auth/AccessError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/auth/AccessError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/auth/AccessError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/auth/AccessError$Tag : java/lang/Enum { + public static final field INVALID_ACCOUNT_TYPE Lcom/dropbox/core/v2/auth/AccessError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/auth/AccessError$Tag; + public static final field PAPER_ACCESS_DENIED Lcom/dropbox/core/v2/auth/AccessError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/auth/AccessError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/auth/AccessError$Tag; +} + +public final class com/dropbox/core/v2/auth/AuthError { + public static final field EXPIRED_ACCESS_TOKEN Lcom/dropbox/core/v2/auth/AuthError; + public static final field INVALID_ACCESS_TOKEN Lcom/dropbox/core/v2/auth/AuthError; + public static final field INVALID_SELECT_ADMIN Lcom/dropbox/core/v2/auth/AuthError; + public static final field INVALID_SELECT_USER Lcom/dropbox/core/v2/auth/AuthError; + public static final field OTHER Lcom/dropbox/core/v2/auth/AuthError; + public static final field ROUTE_ACCESS_DENIED Lcom/dropbox/core/v2/auth/AuthError; + public static final field USER_SUSPENDED Lcom/dropbox/core/v2/auth/AuthError; + public fun equals (Ljava/lang/Object;)Z + public fun getMissingScopeValue ()Lcom/dropbox/core/v2/auth/TokenScopeError; + public fun hashCode ()I + public fun isExpiredAccessToken ()Z + public fun isInvalidAccessToken ()Z + public fun isInvalidSelectAdmin ()Z + public fun isInvalidSelectUser ()Z + public fun isMissingScope ()Z + public fun isOther ()Z + public fun isRouteAccessDenied ()Z + public fun isUserSuspended ()Z + public static fun missingScope (Lcom/dropbox/core/v2/auth/TokenScopeError;)Lcom/dropbox/core/v2/auth/AuthError; + public fun tag ()Lcom/dropbox/core/v2/auth/AuthError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/auth/AuthError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/auth/AuthError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/auth/AuthError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/auth/AuthError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/auth/AuthError$Tag : java/lang/Enum { + public static final field EXPIRED_ACCESS_TOKEN Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static final field INVALID_ACCESS_TOKEN Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static final field INVALID_SELECT_ADMIN Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static final field INVALID_SELECT_USER Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static final field MISSING_SCOPE Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static final field ROUTE_ACCESS_DENIED Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static final field USER_SUSPENDED Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/auth/AuthError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/auth/AuthError$Tag; +} + +public class com/dropbox/core/v2/auth/DbxAppAuthRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun tokenFromOauth1 (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/auth/TokenFromOAuth1Result; +} + +public class com/dropbox/core/v2/auth/DbxUserAuthRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun tokenRevoke ()V +} + +public final class com/dropbox/core/v2/auth/InvalidAccountTypeError : java/lang/Enum { + public static final field ENDPOINT Lcom/dropbox/core/v2/auth/InvalidAccountTypeError; + public static final field FEATURE Lcom/dropbox/core/v2/auth/InvalidAccountTypeError; + public static final field OTHER Lcom/dropbox/core/v2/auth/InvalidAccountTypeError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/auth/InvalidAccountTypeError; + public static fun values ()[Lcom/dropbox/core/v2/auth/InvalidAccountTypeError; +} + +public class com/dropbox/core/v2/auth/InvalidAccountTypeError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/auth/InvalidAccountTypeError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/auth/InvalidAccountTypeError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/auth/InvalidAccountTypeError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/auth/PaperAccessError : java/lang/Enum { + public static final field NOT_PAPER_USER Lcom/dropbox/core/v2/auth/PaperAccessError; + public static final field OTHER Lcom/dropbox/core/v2/auth/PaperAccessError; + public static final field PAPER_DISABLED Lcom/dropbox/core/v2/auth/PaperAccessError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/auth/PaperAccessError; + public static fun values ()[Lcom/dropbox/core/v2/auth/PaperAccessError; +} + +public class com/dropbox/core/v2/auth/PaperAccessError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/auth/PaperAccessError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/auth/PaperAccessError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/auth/PaperAccessError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/auth/RateLimitError { + protected final field reason Lcom/dropbox/core/v2/auth/RateLimitReason; + protected final field retryAfter J + public fun (Lcom/dropbox/core/v2/auth/RateLimitReason;)V + public fun (Lcom/dropbox/core/v2/auth/RateLimitReason;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getReason ()Lcom/dropbox/core/v2/auth/RateLimitReason; + public fun getRetryAfter ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/auth/RateLimitError$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/auth/RateLimitError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/auth/RateLimitError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/auth/RateLimitError;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/auth/RateLimitReason : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/auth/RateLimitReason; + public static final field TOO_MANY_REQUESTS Lcom/dropbox/core/v2/auth/RateLimitReason; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/auth/RateLimitReason; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/auth/RateLimitReason; + public static fun values ()[Lcom/dropbox/core/v2/auth/RateLimitReason; +} + +public class com/dropbox/core/v2/auth/RateLimitReason$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/auth/RateLimitReason$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/auth/RateLimitReason; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/auth/RateLimitReason;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/auth/TokenFromOAuth1Error : java/lang/Enum { + public static final field APP_ID_MISMATCH Lcom/dropbox/core/v2/auth/TokenFromOAuth1Error; + public static final field INVALID_OAUTH1_TOKEN_INFO Lcom/dropbox/core/v2/auth/TokenFromOAuth1Error; + public static final field OTHER Lcom/dropbox/core/v2/auth/TokenFromOAuth1Error; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/auth/TokenFromOAuth1Error; + public static fun values ()[Lcom/dropbox/core/v2/auth/TokenFromOAuth1Error; +} + +public class com/dropbox/core/v2/auth/TokenFromOAuth1ErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/auth/TokenFromOAuth1Error; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/auth/TokenFromOAuth1Error;)V +} + +public class com/dropbox/core/v2/auth/TokenFromOAuth1Result { + protected final field oauth2Token Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOauth2Token ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/auth/TokenScopeError { + protected final field requiredScope Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRequiredScope ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/auth/TokenScopeError$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/auth/TokenScopeError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/auth/TokenScopeError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/auth/TokenScopeError;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public abstract interface class com/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory { + public abstract fun createNetworkErrorCallback (Ljava/lang/String;)Lcom/dropbox/core/v2/callbacks/DbxNetworkErrorCallback; + public abstract fun createRouteErrorCallback (Ljava/lang/String;Ljava/lang/Object;)Lcom/dropbox/core/v2/callbacks/DbxRouteErrorCallback; +} + +public abstract class com/dropbox/core/v2/callbacks/DbxNetworkErrorCallback { + public fun ()V + public abstract fun onNetworkError (Lcom/dropbox/core/DbxException;)V +} + +public abstract class com/dropbox/core/v2/callbacks/DbxRouteErrorCallback : java/lang/Runnable { + public fun ()V + public fun getRouteError ()Ljava/lang/Object; + public fun setRouteError (Ljava/lang/Object;)V +} + +public class com/dropbox/core/v2/check/DbxAppCheckRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun app ()Lcom/dropbox/core/v2/check/EchoResult; + public fun app (Ljava/lang/String;)Lcom/dropbox/core/v2/check/EchoResult; +} + +public class com/dropbox/core/v2/check/DbxUserCheckRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun user ()Lcom/dropbox/core/v2/check/EchoResult; + public fun user (Ljava/lang/String;)Lcom/dropbox/core/v2/check/EchoResult; +} + +public class com/dropbox/core/v2/check/EchoResult { + protected final field result Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResult ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/common/PathRoot { + public static final field HOME Lcom/dropbox/core/v2/common/PathRoot; + public static final field OTHER Lcom/dropbox/core/v2/common/PathRoot; + public fun equals (Ljava/lang/Object;)Z + public fun getNamespaceIdValue ()Ljava/lang/String; + public fun getRootValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isHome ()Z + public fun isNamespaceId ()Z + public fun isOther ()Z + public fun isRoot ()Z + public static fun namespaceId (Ljava/lang/String;)Lcom/dropbox/core/v2/common/PathRoot; + public static fun root (Ljava/lang/String;)Lcom/dropbox/core/v2/common/PathRoot; + public fun tag ()Lcom/dropbox/core/v2/common/PathRoot$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/common/PathRoot$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/common/PathRoot$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/common/PathRoot; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/common/PathRoot;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/common/PathRoot$Tag : java/lang/Enum { + public static final field HOME Lcom/dropbox/core/v2/common/PathRoot$Tag; + public static final field NAMESPACE_ID Lcom/dropbox/core/v2/common/PathRoot$Tag; + public static final field OTHER Lcom/dropbox/core/v2/common/PathRoot$Tag; + public static final field ROOT Lcom/dropbox/core/v2/common/PathRoot$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/common/PathRoot$Tag; + public static fun values ()[Lcom/dropbox/core/v2/common/PathRoot$Tag; +} + +public final class com/dropbox/core/v2/common/PathRootError { + public static final field NO_PERMISSION Lcom/dropbox/core/v2/common/PathRootError; + public static final field OTHER Lcom/dropbox/core/v2/common/PathRootError; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidRootValue ()Lcom/dropbox/core/v2/common/RootInfo; + public fun hashCode ()I + public static fun invalidRoot (Lcom/dropbox/core/v2/common/RootInfo;)Lcom/dropbox/core/v2/common/PathRootError; + public fun isInvalidRoot ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/common/PathRootError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/common/PathRootError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/common/PathRootError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/common/PathRootError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/common/PathRootError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/common/PathRootError$Tag : java/lang/Enum { + public static final field INVALID_ROOT Lcom/dropbox/core/v2/common/PathRootError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/common/PathRootError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/common/PathRootError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/common/PathRootError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/common/PathRootError$Tag; +} + +public class com/dropbox/core/v2/common/RootInfo { + protected final field homeNamespaceId Ljava/lang/String; + protected final field rootNamespaceId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getHomeNamespaceId ()Ljava/lang/String; + public fun getRootNamespaceId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/common/RootInfo$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/common/RootInfo$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/common/RootInfo; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/common/RootInfo;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/common/TeamRootInfo : com/dropbox/core/v2/common/RootInfo { + protected final field homePath Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getHomeNamespaceId ()Ljava/lang/String; + public fun getHomePath ()Ljava/lang/String; + public fun getRootNamespaceId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/common/UserRootInfo : com/dropbox/core/v2/common/RootInfo { + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getHomeNamespaceId ()Ljava/lang/String; + public fun getRootNamespaceId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/contacts/DbxUserContactsRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun deleteManualContacts ()V + public fun deleteManualContactsBatch (Ljava/util/List;)V +} + +public final class com/dropbox/core/v2/contacts/DeleteManualContactsError { + public static final field OTHER Lcom/dropbox/core/v2/contacts/DeleteManualContactsError; + public static fun contactsNotFound (Ljava/util/List;)Lcom/dropbox/core/v2/contacts/DeleteManualContactsError; + public fun equals (Ljava/lang/Object;)Z + public fun getContactsNotFoundValue ()Ljava/util/List; + public fun hashCode ()I + public fun isContactsNotFound ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/contacts/DeleteManualContactsError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/contacts/DeleteManualContactsError$Tag : java/lang/Enum { + public static final field CONTACTS_NOT_FOUND Lcom/dropbox/core/v2/contacts/DeleteManualContactsError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/contacts/DeleteManualContactsError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/contacts/DeleteManualContactsError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/contacts/DeleteManualContactsError$Tag; +} + +public class com/dropbox/core/v2/contacts/DeleteManualContactsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/contacts/DeleteManualContactsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/contacts/DeleteManualContactsError;)V +} + +public class com/dropbox/core/v2/fileproperties/AddPropertiesArg { + protected final field path Ljava/lang/String; + protected final field propertyGroups Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPath ()Ljava/lang/String; + public fun getPropertyGroups ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/AddPropertiesArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/AddPropertiesArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/AddPropertiesArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/AddPropertiesArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/fileproperties/AddPropertiesError { + public static final field DOES_NOT_FIT_TEMPLATE Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public static final field DUPLICATE_PROPERTY_GROUPS Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public static final field PROPERTY_FIELD_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public static final field PROPERTY_GROUP_ALREADY_EXISTS Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/fileproperties/LookupError; + public fun getTemplateNotFoundValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isDoesNotFitTemplate ()Z + public fun isDuplicatePropertyGroups ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isPropertyFieldTooLarge ()Z + public fun isPropertyGroupAlreadyExists ()Z + public fun isRestrictedContent ()Z + public fun isTemplateNotFound ()Z + public fun isUnsupportedFolder ()Z + public static fun path (Lcom/dropbox/core/v2/fileproperties/LookupError;)Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public fun tag ()Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static fun templateNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/AddPropertiesError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/AddPropertiesError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/AddPropertiesError$Tag : java/lang/Enum { + public static final field DOES_NOT_FIT_TEMPLATE Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field DUPLICATE_PROPERTY_GROUPS Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field PATH Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field PROPERTY_FIELD_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field PROPERTY_GROUP_ALREADY_EXISTS Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field TEMPLATE_NOT_FOUND Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/AddPropertiesError$Tag; +} + +public class com/dropbox/core/v2/fileproperties/AddPropertiesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/AddPropertiesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/AddPropertiesError;)V +} + +public class com/dropbox/core/v2/fileproperties/AddTemplateArg : com/dropbox/core/v2/fileproperties/PropertyGroupTemplate { + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun getFields ()Ljava/util/List; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/AddTemplateArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/AddTemplateArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/AddTemplateArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/AddTemplateArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/fileproperties/AddTemplateResult { + protected final field templateId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTemplateId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/AddTemplateResult$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/AddTemplateResult$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/AddTemplateResult; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/AddTemplateResult;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/fileproperties/DbxTeamFilePropertiesRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun templatesAddForTeam (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/AddTemplateResult; + public fun templatesGetForTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/GetTemplateResult; + public fun templatesListForTeam ()Lcom/dropbox/core/v2/fileproperties/ListTemplateResult; + public fun templatesRemoveForTeam (Ljava/lang/String;)V + public fun templatesUpdateForTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult; + public fun templatesUpdateForTeamBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder; +} + +public class com/dropbox/core/v2/fileproperties/DbxUserFilePropertiesRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun propertiesAdd (Ljava/lang/String;Ljava/util/List;)V + public fun propertiesOverwrite (Ljava/lang/String;Ljava/util/List;)V + public fun propertiesRemove (Ljava/lang/String;Ljava/util/List;)V + public fun propertiesSearch (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchResult; + public fun propertiesSearch (Ljava/util/List;Lcom/dropbox/core/v2/fileproperties/TemplateFilter;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchResult; + public fun propertiesSearchContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchResult; + public fun propertiesUpdate (Ljava/lang/String;Ljava/util/List;)V + public fun templatesAddForUser (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/AddTemplateResult; + public fun templatesGetForUser (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/GetTemplateResult; + public fun templatesListForUser ()Lcom/dropbox/core/v2/fileproperties/ListTemplateResult; + public fun templatesRemoveForUser (Ljava/lang/String;)V + public fun templatesUpdateForUser (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult; + public fun templatesUpdateForUserBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder; +} + +public class com/dropbox/core/v2/fileproperties/GetTemplateArg { + protected final field templateId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTemplateId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/GetTemplateArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/GetTemplateArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/GetTemplateArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/GetTemplateArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/fileproperties/GetTemplateResult : com/dropbox/core/v2/fileproperties/PropertyGroupTemplate { + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun getFields ()Ljava/util/List; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/GetTemplateResult$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/GetTemplateResult$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/GetTemplateResult; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/GetTemplateResult;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/fileproperties/InvalidPropertyGroupError { + public static final field DOES_NOT_FIT_TEMPLATE Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public static final field DUPLICATE_PROPERTY_GROUPS Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public static final field PROPERTY_FIELD_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/fileproperties/LookupError; + public fun getTemplateNotFoundValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isDoesNotFitTemplate ()Z + public fun isDuplicatePropertyGroups ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isPropertyFieldTooLarge ()Z + public fun isRestrictedContent ()Z + public fun isTemplateNotFound ()Z + public fun isUnsupportedFolder ()Z + public static fun path (Lcom/dropbox/core/v2/fileproperties/LookupError;)Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public fun tag ()Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static fun templateNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag : java/lang/Enum { + public static final field DOES_NOT_FIT_TEMPLATE Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static final field DUPLICATE_PROPERTY_GROUPS Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static final field PATH Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static final field PROPERTY_FIELD_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static final field TEMPLATE_NOT_FOUND Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError$Tag; +} + +public class com/dropbox/core/v2/fileproperties/InvalidPropertyGroupErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError;)V +} + +public class com/dropbox/core/v2/fileproperties/ListTemplateResult { + protected final field templateIds Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTemplateIds ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/ListTemplateResult$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/ListTemplateResult$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/ListTemplateResult; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/ListTemplateResult;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/fileproperties/LogicalOperator : java/lang/Enum { + public static final field OR_OPERATOR Lcom/dropbox/core/v2/fileproperties/LogicalOperator; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/LogicalOperator; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/LogicalOperator; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/LogicalOperator; +} + +public final class com/dropbox/core/v2/fileproperties/LookUpPropertiesError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public static final field PROPERTY_GROUP_NOT_FOUND Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; +} + +public class com/dropbox/core/v2/fileproperties/LookUpPropertiesError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/LookupError { + public static final field NOT_FILE Lcom/dropbox/core/v2/fileproperties/LookupError; + public static final field NOT_FOLDER Lcom/dropbox/core/v2/fileproperties/LookupError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/fileproperties/LookupError; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/LookupError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/LookupError; + public fun equals (Ljava/lang/Object;)Z + public fun getMalformedPathValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isMalformedPath ()Z + public fun isNotFile ()Z + public fun isNotFolder ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isRestrictedContent ()Z + public static fun malformedPath (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/LookupError; + public fun tag ()Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/fileproperties/LookupError$Tag : java/lang/Enum { + public static final field MALFORMED_PATH Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public static final field NOT_FILE Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public static final field NOT_FOLDER Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/LookupError$Tag; +} + +public final class com/dropbox/core/v2/fileproperties/ModifyTemplateError { + public static final field CONFLICTING_PROPERTY_NAMES Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public static final field TEMPLATE_ATTRIBUTE_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public static final field TOO_MANY_PROPERTIES Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public static final field TOO_MANY_TEMPLATES Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public fun equals (Ljava/lang/Object;)Z + public fun getTemplateNotFoundValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isConflictingPropertyNames ()Z + public fun isOther ()Z + public fun isRestrictedContent ()Z + public fun isTemplateAttributeTooLarge ()Z + public fun isTemplateNotFound ()Z + public fun isTooManyProperties ()Z + public fun isTooManyTemplates ()Z + public fun tag ()Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static fun templateNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/ModifyTemplateError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag : java/lang/Enum { + public static final field CONFLICTING_PROPERTY_NAMES Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static final field TEMPLATE_ATTRIBUTE_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static final field TEMPLATE_NOT_FOUND Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static final field TOO_MANY_PROPERTIES Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static final field TOO_MANY_TEMPLATES Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError$Tag; +} + +public class com/dropbox/core/v2/fileproperties/ModifyTemplateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/ModifyTemplateError;)V +} + +public class com/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg { + protected final field path Ljava/lang/String; + protected final field propertyGroups Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPath ()Ljava/lang/String; + public fun getPropertyGroups ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/fileproperties/PropertiesSearchContinueError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/PropertiesSearchContinueError; + public static final field RESET Lcom/dropbox/core/v2/fileproperties/PropertiesSearchContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchContinueError; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/PropertiesSearchContinueError; +} + +public class com/dropbox/core/v2/fileproperties/PropertiesSearchContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/PropertiesSearchContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/PropertiesSearchContinueError;)V +} + +public final class com/dropbox/core/v2/fileproperties/PropertiesSearchError { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError; + public fun equals (Ljava/lang/Object;)Z + public fun getPropertyGroupLookupValue ()Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPropertyGroupLookup ()Z + public static fun propertyGroupLookup (Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError; + public fun tag ()Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/fileproperties/PropertiesSearchError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError$Tag; + public static final field PROPERTY_GROUP_LOOKUP Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError$Tag; +} + +public class com/dropbox/core/v2/fileproperties/PropertiesSearchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/PropertiesSearchError;)V +} + +public class com/dropbox/core/v2/fileproperties/PropertiesSearchMatch { + protected final field id Ljava/lang/String; + protected final field isDeleted Z + protected final field path Ljava/lang/String; + protected final field propertyGroups Ljava/util/List; + public fun (Ljava/lang/String;Ljava/lang/String;ZLjava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getIsDeleted ()Z + public fun getPath ()Ljava/lang/String; + public fun getPropertyGroups ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/fileproperties/PropertiesSearchMode { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode; + public fun equals (Ljava/lang/Object;)Z + public static fun fieldName (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode; + public fun getFieldNameValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isFieldName ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/fileproperties/PropertiesSearchMode$Tag : java/lang/Enum { + public static final field FIELD_NAME Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode$Tag; +} + +public class com/dropbox/core/v2/fileproperties/PropertiesSearchQuery { + protected final field logicalOperator Lcom/dropbox/core/v2/fileproperties/LogicalOperator; + protected final field mode Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode; + protected final field query Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode;Lcom/dropbox/core/v2/fileproperties/LogicalOperator;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLogicalOperator ()Lcom/dropbox/core/v2/fileproperties/LogicalOperator; + public fun getMode ()Lcom/dropbox/core/v2/fileproperties/PropertiesSearchMode; + public fun getQuery ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/PropertiesSearchResult { + protected final field cursor Ljava/lang/String; + protected final field matches Ljava/util/List; + public fun (Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getMatches ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/PropertyField { + protected final field name Ljava/lang/String; + protected final field value Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun getValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/PropertyFieldTemplate { + protected final field description Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field type Lcom/dropbox/core/v2/fileproperties/PropertyType; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/fileproperties/PropertyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getType ()Lcom/dropbox/core/v2/fileproperties/PropertyType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/PropertyGroup { + protected final field fields Ljava/util/List; + protected final field templateId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFields ()Ljava/util/List; + public fun getTemplateId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/PropertyGroup$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/PropertyGroup$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/PropertyGroup; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/PropertyGroup;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/fileproperties/PropertyGroupTemplate { + protected final field description Ljava/lang/String; + protected final field fields Ljava/util/List; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun getFields ()Ljava/util/List; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/PropertyGroupUpdate { + protected final field addOrUpdateFields Ljava/util/List; + protected final field removeFields Ljava/util/List; + protected final field templateId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAddOrUpdateFields ()Ljava/util/List; + public fun getRemoveFields ()Ljava/util/List; + public fun getTemplateId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/PropertyGroupUpdate$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/PropertyGroupUpdate$Builder { + protected field addOrUpdateFields Ljava/util/List; + protected field removeFields Ljava/util/List; + protected final field templateId Ljava/lang/String; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/fileproperties/PropertyGroupUpdate; + public fun withAddOrUpdateFields (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/PropertyGroupUpdate$Builder; + public fun withRemoveFields (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/PropertyGroupUpdate$Builder; +} + +public final class com/dropbox/core/v2/fileproperties/PropertyType : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/PropertyType; + public static final field STRING Lcom/dropbox/core/v2/fileproperties/PropertyType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/PropertyType; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/PropertyType; +} + +public class com/dropbox/core/v2/fileproperties/RemovePropertiesArg { + protected final field path Ljava/lang/String; + protected final field propertyTemplateIds Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPath ()Ljava/lang/String; + public fun getPropertyTemplateIds ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/RemovePropertiesArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/RemovePropertiesArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/RemovePropertiesArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/RemovePropertiesArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/fileproperties/RemovePropertiesError { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/fileproperties/LookupError; + public fun getPropertyGroupLookupValue ()Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public fun getTemplateNotFoundValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isPropertyGroupLookup ()Z + public fun isRestrictedContent ()Z + public fun isTemplateNotFound ()Z + public fun isUnsupportedFolder ()Z + public static fun path (Lcom/dropbox/core/v2/fileproperties/LookupError;)Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public static fun propertyGroupLookup (Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError;)Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public fun tag ()Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static fun templateNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/RemovePropertiesError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static final field PATH Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static final field PROPERTY_GROUP_LOOKUP Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static final field TEMPLATE_NOT_FOUND Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError$Tag; +} + +public class com/dropbox/core/v2/fileproperties/RemovePropertiesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/RemovePropertiesError;)V +} + +public final class com/dropbox/core/v2/fileproperties/TemplateError { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/TemplateError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/TemplateError; + public fun equals (Ljava/lang/Object;)Z + public fun getTemplateNotFoundValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isOther ()Z + public fun isRestrictedContent ()Z + public fun isTemplateNotFound ()Z + public fun tag ()Lcom/dropbox/core/v2/fileproperties/TemplateError$Tag; + public static fun templateNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplateError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/TemplateError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/TemplateError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/TemplateError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/TemplateError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/TemplateError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/TemplateError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/TemplateError$Tag; + public static final field TEMPLATE_NOT_FOUND Lcom/dropbox/core/v2/fileproperties/TemplateError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplateError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/TemplateError$Tag; +} + +public class com/dropbox/core/v2/fileproperties/TemplateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/TemplateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/TemplateError;)V +} + +public final class com/dropbox/core/v2/fileproperties/TemplateFilter { + public static final field FILTER_NONE Lcom/dropbox/core/v2/fileproperties/TemplateFilter; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/TemplateFilter; + public fun equals (Ljava/lang/Object;)Z + public static fun filterSome (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/TemplateFilter; + public fun getFilterSomeValue ()Ljava/util/List; + public fun hashCode ()I + public fun isFilterNone ()Z + public fun isFilterSome ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/fileproperties/TemplateFilter$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/fileproperties/TemplateFilter$Tag : java/lang/Enum { + public static final field FILTER_NONE Lcom/dropbox/core/v2/fileproperties/TemplateFilter$Tag; + public static final field FILTER_SOME Lcom/dropbox/core/v2/fileproperties/TemplateFilter$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/TemplateFilter$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplateFilter$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/TemplateFilter$Tag; +} + +public final class com/dropbox/core/v2/fileproperties/TemplateFilterBase { + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase; + public fun equals (Ljava/lang/Object;)Z + public static fun filterSome (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase; + public fun getFilterSomeValue ()Ljava/util/List; + public fun hashCode ()I + public fun isFilterSome ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/TemplateFilterBase$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/TemplateFilterBase$Tag : java/lang/Enum { + public static final field FILTER_SOME Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase$Tag; +} + +public class com/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder { + public fun start ()Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult; + public fun withAddFields (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder; + public fun withName (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder; +} + +public class com/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder { + public fun start ()Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult; + public fun withAddFields (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder; + public fun withName (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder; +} + +public class com/dropbox/core/v2/fileproperties/UpdatePropertiesArg { + protected final field path Ljava/lang/String; + protected final field updatePropertyGroups Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPath ()Ljava/lang/String; + public fun getUpdatePropertyGroups ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/UpdatePropertiesArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/fileproperties/UpdatePropertiesError { + public static final field DOES_NOT_FIT_TEMPLATE Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public static final field DUPLICATE_PROPERTY_GROUPS Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public static final field PROPERTY_FIELD_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/fileproperties/LookupError; + public fun getPropertyGroupLookupValue ()Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public fun getTemplateNotFoundValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isDoesNotFitTemplate ()Z + public fun isDuplicatePropertyGroups ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isPropertyFieldTooLarge ()Z + public fun isPropertyGroupLookup ()Z + public fun isRestrictedContent ()Z + public fun isTemplateNotFound ()Z + public fun isUnsupportedFolder ()Z + public static fun path (Lcom/dropbox/core/v2/fileproperties/LookupError;)Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public static fun propertyGroupLookup (Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError;)Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public fun tag ()Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static fun templateNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/UpdatePropertiesError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag : java/lang/Enum { + public static final field DOES_NOT_FIT_TEMPLATE Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field DUPLICATE_PROPERTY_GROUPS Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field PATH Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field PROPERTY_FIELD_TOO_LARGE Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field PROPERTY_GROUP_LOOKUP Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field TEMPLATE_NOT_FOUND Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static final field UNSUPPORTED_FOLDER Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError$Tag; +} + +public class com/dropbox/core/v2/fileproperties/UpdatePropertiesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/fileproperties/UpdatePropertiesError;)V +} + +public class com/dropbox/core/v2/fileproperties/UpdateTemplateArg { + protected final field addFields Ljava/util/List; + protected final field description Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field templateId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAddFields ()Ljava/util/List; + public fun getDescription ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getTemplateId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/UpdateTemplateArg$Builder { + protected field addFields Ljava/util/List; + protected field description Ljava/lang/String; + protected field name Ljava/lang/String; + protected final field templateId Ljava/lang/String; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg; + public fun withAddFields (Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg$Builder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg$Builder; + public fun withName (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg$Builder; +} + +public class com/dropbox/core/v2/fileproperties/UpdateTemplateArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/UpdateTemplateArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/fileproperties/UpdateTemplateResult { + protected final field templateId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTemplateId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/fileproperties/UpdateTemplateResult$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/filerequests/CountFileRequestsError : java/lang/Enum { + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/CountFileRequestsError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/CountFileRequestsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/CountFileRequestsError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/CountFileRequestsError; +} + +public class com/dropbox/core/v2/filerequests/CountFileRequestsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/CountFileRequestsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/CountFileRequestsError;)V +} + +public class com/dropbox/core/v2/filerequests/CountFileRequestsResult { + protected final field fileRequestCount J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequestCount ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/filerequests/CreateBuilder { + public fun start ()Lcom/dropbox/core/v2/filerequests/FileRequest; + public fun withDeadline (Lcom/dropbox/core/v2/filerequests/FileRequestDeadline;)Lcom/dropbox/core/v2/filerequests/CreateBuilder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/CreateBuilder; + public fun withOpen (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/filerequests/CreateBuilder; +} + +public final class com/dropbox/core/v2/filerequests/CreateFileRequestError : java/lang/Enum { + public static final field APP_LACKS_ACCESS Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field INVALID_LOCATION Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field NOT_A_FOLDER Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field RATE_LIMIT Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static final field VALIDATION_ERROR Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; +} + +public class com/dropbox/core/v2/filerequests/CreateFileRequestErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/CreateFileRequestError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/CreateFileRequestError;)V +} + +public class com/dropbox/core/v2/filerequests/DbxUserFileRequestsRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun count ()Lcom/dropbox/core/v2/filerequests/CountFileRequestsResult; + public fun create (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/FileRequest; + public fun createBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/CreateBuilder; + public fun delete (Ljava/util/List;)Lcom/dropbox/core/v2/filerequests/DeleteFileRequestsResult; + public fun deleteAllClosed ()Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsResult; + public fun get (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/FileRequest; + public fun list ()Lcom/dropbox/core/v2/filerequests/ListFileRequestsResult; + public fun listContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/ListFileRequestsV2Result; + public fun listV2 ()Lcom/dropbox/core/v2/filerequests/ListFileRequestsV2Result; + public fun listV2 (J)Lcom/dropbox/core/v2/filerequests/ListFileRequestsV2Result; + public fun update (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/FileRequest; + public fun updateBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/UpdateBuilder; +} + +public final class com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError : java/lang/Enum { + public static final field APP_LACKS_ACCESS Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static final field NOT_A_FOLDER Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static final field VALIDATION_ERROR Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; +} + +public class com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError;)V +} + +public class com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsResult { + protected final field fileRequests Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequests ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/filerequests/DeleteFileRequestError : java/lang/Enum { + public static final field APP_LACKS_ACCESS Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field FILE_REQUEST_OPEN Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field NOT_A_FOLDER Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static final field VALIDATION_ERROR Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; +} + +public class com/dropbox/core/v2/filerequests/DeleteFileRequestErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/DeleteFileRequestError;)V +} + +public class com/dropbox/core/v2/filerequests/DeleteFileRequestsResult { + protected final field fileRequests Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequests ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/filerequests/FileRequest { + protected final field created Ljava/util/Date; + protected final field deadline Lcom/dropbox/core/v2/filerequests/FileRequestDeadline; + protected final field description Ljava/lang/String; + protected final field destination Ljava/lang/String; + protected final field fileCount J + protected final field id Ljava/lang/String; + protected final field isOpen Z + protected final field title Ljava/lang/String; + protected final field url Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;ZJ)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;ZJLjava/lang/String;Lcom/dropbox/core/v2/filerequests/FileRequestDeadline;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCreated ()Ljava/util/Date; + public fun getDeadline ()Lcom/dropbox/core/v2/filerequests/FileRequestDeadline; + public fun getDescription ()Ljava/lang/String; + public fun getDestination ()Ljava/lang/String; + public fun getFileCount ()J + public fun getId ()Ljava/lang/String; + public fun getIsOpen ()Z + public fun getTitle ()Ljava/lang/String; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;ZJ)Lcom/dropbox/core/v2/filerequests/FileRequest$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/filerequests/FileRequest$Builder { + protected final field created Ljava/util/Date; + protected field deadline Lcom/dropbox/core/v2/filerequests/FileRequestDeadline; + protected field description Ljava/lang/String; + protected field destination Ljava/lang/String; + protected final field fileCount J + protected final field id Ljava/lang/String; + protected final field isOpen Z + protected final field title Ljava/lang/String; + protected final field url Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;ZJ)V + public fun build ()Lcom/dropbox/core/v2/filerequests/FileRequest; + public fun withDeadline (Lcom/dropbox/core/v2/filerequests/FileRequestDeadline;)Lcom/dropbox/core/v2/filerequests/FileRequest$Builder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/FileRequest$Builder; + public fun withDestination (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/FileRequest$Builder; +} + +public class com/dropbox/core/v2/filerequests/FileRequestDeadline { + protected final field allowLateUploads Lcom/dropbox/core/v2/filerequests/GracePeriod; + protected final field deadline Ljava/util/Date; + public fun (Ljava/util/Date;)V + public fun (Ljava/util/Date;Lcom/dropbox/core/v2/filerequests/GracePeriod;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllowLateUploads ()Lcom/dropbox/core/v2/filerequests/GracePeriod; + public fun getDeadline ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/filerequests/GetFileRequestError : java/lang/Enum { + public static final field APP_LACKS_ACCESS Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static final field NOT_A_FOLDER Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static final field VALIDATION_ERROR Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/GetFileRequestError; +} + +public class com/dropbox/core/v2/filerequests/GetFileRequestErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/GetFileRequestError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/GetFileRequestError;)V +} + +public final class com/dropbox/core/v2/filerequests/GracePeriod : java/lang/Enum { + public static final field ALWAYS Lcom/dropbox/core/v2/filerequests/GracePeriod; + public static final field ONE_DAY Lcom/dropbox/core/v2/filerequests/GracePeriod; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/GracePeriod; + public static final field SEVEN_DAYS Lcom/dropbox/core/v2/filerequests/GracePeriod; + public static final field THIRTY_DAYS Lcom/dropbox/core/v2/filerequests/GracePeriod; + public static final field TWO_DAYS Lcom/dropbox/core/v2/filerequests/GracePeriod; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/GracePeriod; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/GracePeriod; +} + +public final class com/dropbox/core/v2/filerequests/ListFileRequestsContinueError : java/lang/Enum { + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/ListFileRequestsContinueError; + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/filerequests/ListFileRequestsContinueError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/ListFileRequestsContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/ListFileRequestsContinueError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/ListFileRequestsContinueError; +} + +public class com/dropbox/core/v2/filerequests/ListFileRequestsContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/ListFileRequestsContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/ListFileRequestsContinueError;)V +} + +public final class com/dropbox/core/v2/filerequests/ListFileRequestsError : java/lang/Enum { + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/ListFileRequestsError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/ListFileRequestsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/ListFileRequestsError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/ListFileRequestsError; +} + +public class com/dropbox/core/v2/filerequests/ListFileRequestsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/ListFileRequestsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/ListFileRequestsError;)V +} + +public class com/dropbox/core/v2/filerequests/ListFileRequestsResult { + protected final field fileRequests Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequests ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/filerequests/ListFileRequestsV2Result { + protected final field cursor Ljava/lang/String; + protected final field fileRequests Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getFileRequests ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/filerequests/UpdateBuilder { + public fun start ()Lcom/dropbox/core/v2/filerequests/FileRequest; + public fun withDeadline (Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline;)Lcom/dropbox/core/v2/filerequests/UpdateBuilder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/UpdateBuilder; + public fun withDestination (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/UpdateBuilder; + public fun withOpen (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/filerequests/UpdateBuilder; + public fun withTitle (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/UpdateBuilder; +} + +public final class com/dropbox/core/v2/filerequests/UpdateFileRequestDeadline { + public static final field NO_UPDATE Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline; + public fun equals (Ljava/lang/Object;)Z + public fun getUpdateValue ()Lcom/dropbox/core/v2/filerequests/FileRequestDeadline; + public fun hashCode ()I + public fun isNoUpdate ()Z + public fun isOther ()Z + public fun isUpdate ()Z + public fun tag ()Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun update ()Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline; + public static fun update (Lcom/dropbox/core/v2/filerequests/FileRequestDeadline;)Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline; +} + +public final class com/dropbox/core/v2/filerequests/UpdateFileRequestDeadline$Tag : java/lang/Enum { + public static final field NO_UPDATE Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline$Tag; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline$Tag; + public static final field UPDATE Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline$Tag; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/UpdateFileRequestDeadline$Tag; +} + +public final class com/dropbox/core/v2/filerequests/UpdateFileRequestError : java/lang/Enum { + public static final field APP_LACKS_ACCESS Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static final field DISABLED_FOR_TEAM Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static final field NOT_A_FOLDER Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static final field OTHER Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static final field VALIDATION_ERROR Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public static fun values ()[Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; +} + +public class com/dropbox/core/v2/filerequests/UpdateFileRequestErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/filerequests/UpdateFileRequestError;)V +} + +public final class com/dropbox/core/v2/files/AddTagError { + public static final field OTHER Lcom/dropbox/core/v2/files/AddTagError; + public static final field TOO_MANY_TAGS Lcom/dropbox/core/v2/files/AddTagError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isTooManyTags ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/AddTagError; + public fun tag ()Lcom/dropbox/core/v2/files/AddTagError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/AddTagError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/AddTagError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/AddTagError$Tag; + public static final field TOO_MANY_TAGS Lcom/dropbox/core/v2/files/AddTagError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/AddTagError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/AddTagError$Tag; +} + +public class com/dropbox/core/v2/files/AddTagErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/AddTagError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/AddTagError;)V +} + +public class com/dropbox/core/v2/files/AlphaGetMetadataBuilder { + public fun start ()Lcom/dropbox/core/v2/files/Metadata; + public fun withIncludeDeleted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/AlphaGetMetadataBuilder; + public fun withIncludeHasExplicitSharedMembers (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/AlphaGetMetadataBuilder; + public fun withIncludeMediaInfo (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/AlphaGetMetadataBuilder; + public fun withIncludePropertyGroups (Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase;)Lcom/dropbox/core/v2/files/AlphaGetMetadataBuilder; + public fun withIncludePropertyTemplates (Ljava/util/List;)Lcom/dropbox/core/v2/files/AlphaGetMetadataBuilder; +} + +public final class com/dropbox/core/v2/files/AlphaGetMetadataError { + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun getPropertiesErrorValue ()Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError; + public fun hashCode ()I + public fun isPath ()Z + public fun isPropertiesError ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/AlphaGetMetadataError; + public static fun propertiesError (Lcom/dropbox/core/v2/fileproperties/LookUpPropertiesError;)Lcom/dropbox/core/v2/files/AlphaGetMetadataError; + public fun tag ()Lcom/dropbox/core/v2/files/AlphaGetMetadataError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/AlphaGetMetadataError$Tag : java/lang/Enum { + public static final field PATH Lcom/dropbox/core/v2/files/AlphaGetMetadataError$Tag; + public static final field PROPERTIES_ERROR Lcom/dropbox/core/v2/files/AlphaGetMetadataError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/AlphaGetMetadataError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/AlphaGetMetadataError$Tag; +} + +public class com/dropbox/core/v2/files/AlphaGetMetadataErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/AlphaGetMetadataError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/AlphaGetMetadataError;)V +} + +public class com/dropbox/core/v2/files/AlphaUploadBuilder : com/dropbox/core/v2/DbxUploadStyleBuilder { + public synthetic fun start ()Lcom/dropbox/core/DbxUploader; + public fun start ()Lcom/dropbox/core/v2/files/AlphaUploadUploader; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; + public fun withClientModified (Ljava/util/Date;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; + public fun withContentHash (Ljava/lang/String;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; + public fun withMode (Lcom/dropbox/core/v2/files/WriteMode;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; + public fun withMute (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; + public fun withPropertyGroups (Ljava/util/List;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; + public fun withStrictConflict (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; +} + +public class com/dropbox/core/v2/files/AlphaUploadUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/UploadErrorException; +} + +public final class com/dropbox/core/v2/files/BaseTagError { + public static final field OTHER Lcom/dropbox/core/v2/files/BaseTagError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/BaseTagError; + public fun tag ()Lcom/dropbox/core/v2/files/BaseTagError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/BaseTagError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/BaseTagError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/BaseTagError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/BaseTagError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/BaseTagError$Tag; +} + +public class com/dropbox/core/v2/files/BaseTagErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/BaseTagError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/BaseTagError;)V +} + +public class com/dropbox/core/v2/files/CommitInfo { + protected final field autorename Z + protected final field clientModified Ljava/util/Date; + protected final field mode Lcom/dropbox/core/v2/files/WriteMode; + protected final field mute Z + protected final field path Ljava/lang/String; + protected final field propertyGroups Ljava/util/List; + protected final field strictConflict Z + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/files/WriteMode;ZLjava/util/Date;ZLjava/util/List;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getAutorename ()Z + public fun getClientModified ()Ljava/util/Date; + public fun getMode ()Lcom/dropbox/core/v2/files/WriteMode; + public fun getMute ()Z + public fun getPath ()Ljava/lang/String; + public fun getPropertyGroups ()Ljava/util/List; + public fun getStrictConflict ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CommitInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/CommitInfo$Builder { + protected field autorename Z + protected field clientModified Ljava/util/Date; + protected field mode Lcom/dropbox/core/v2/files/WriteMode; + protected field mute Z + protected final field path Ljava/lang/String; + protected field propertyGroups Ljava/util/List; + protected field strictConflict Z + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/files/CommitInfo; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CommitInfo$Builder; + public fun withClientModified (Ljava/util/Date;)Lcom/dropbox/core/v2/files/CommitInfo$Builder; + public fun withMode (Lcom/dropbox/core/v2/files/WriteMode;)Lcom/dropbox/core/v2/files/CommitInfo$Builder; + public fun withMute (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CommitInfo$Builder; + public fun withPropertyGroups (Ljava/util/List;)Lcom/dropbox/core/v2/files/CommitInfo$Builder; + public fun withStrictConflict (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CommitInfo$Builder; +} + +public class com/dropbox/core/v2/files/ContentSyncSetting { + protected final field id Ljava/lang/String; + protected final field syncSetting Lcom/dropbox/core/v2/files/SyncSetting; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/files/SyncSetting;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getSyncSetting ()Lcom/dropbox/core/v2/files/SyncSetting; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ContentSyncSetting$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/ContentSyncSetting$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/files/ContentSyncSetting; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/ContentSyncSetting;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/files/ContentSyncSettingArg { + protected final field id Ljava/lang/String; + protected final field syncSetting Lcom/dropbox/core/v2/files/SyncSettingArg; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/files/SyncSettingArg;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getSyncSetting ()Lcom/dropbox/core/v2/files/SyncSettingArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ContentSyncSettingArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/ContentSyncSettingArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/files/ContentSyncSettingArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/ContentSyncSettingArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/files/CopyBatchBuilder { + public fun start ()Lcom/dropbox/core/v2/files/RelocationBatchLaunch; + public fun withAllowOwnershipTransfer (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyBatchBuilder; + public fun withAllowSharedFolder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyBatchBuilder; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyBatchBuilder; +} + +public class com/dropbox/core/v2/files/CopyBuilder { + public fun start ()Lcom/dropbox/core/v2/files/Metadata; + public fun withAllowOwnershipTransfer (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyBuilder; + public fun withAllowSharedFolder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyBuilder; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyBuilder; +} + +public class com/dropbox/core/v2/files/CopyV2Builder { + public fun start ()Lcom/dropbox/core/v2/files/RelocationResult; + public fun withAllowOwnershipTransfer (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyV2Builder; + public fun withAllowSharedFolder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyV2Builder; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CopyV2Builder; +} + +public class com/dropbox/core/v2/files/CreateFolderBatchBuilder { + public fun start ()Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CreateFolderBatchBuilder; + public fun withForceAsync (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/CreateFolderBatchBuilder; +} + +public final class com/dropbox/core/v2/files/CreateFolderBatchError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/CreateFolderBatchError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/CreateFolderBatchError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderBatchError; + public static fun values ()[Lcom/dropbox/core/v2/files/CreateFolderBatchError; +} + +public final class com/dropbox/core/v2/files/CreateFolderBatchJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus; + public static final field OTHER Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus; + public static fun complete (Lcom/dropbox/core/v2/files/CreateFolderBatchResult;)Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/files/CreateFolderBatchError;)Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/CreateFolderBatchResult; + public fun getFailedValue ()Lcom/dropbox/core/v2/files/CreateFolderBatchError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus$Tag; +} + +public final class com/dropbox/core/v2/files/CreateFolderBatchLaunch { + public static final field OTHER Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch; + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch; + public static fun complete (Lcom/dropbox/core/v2/files/CreateFolderBatchResult;)Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/CreateFolderBatchResult; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/CreateFolderBatchLaunch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch$Tag; +} + +public class com/dropbox/core/v2/files/CreateFolderBatchResult : com/dropbox/core/v2/files/FileOpsResult { + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/CreateFolderBatchResultEntry { + public fun equals (Ljava/lang/Object;)Z + public static fun failure (Lcom/dropbox/core/v2/files/CreateFolderEntryError;)Lcom/dropbox/core/v2/files/CreateFolderBatchResultEntry; + public fun getFailureValue ()Lcom/dropbox/core/v2/files/CreateFolderEntryError; + public fun getSuccessValue ()Lcom/dropbox/core/v2/files/CreateFolderEntryResult; + public fun hashCode ()I + public fun isFailure ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/files/CreateFolderEntryResult;)Lcom/dropbox/core/v2/files/CreateFolderBatchResultEntry; + public fun tag ()Lcom/dropbox/core/v2/files/CreateFolderBatchResultEntry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/CreateFolderBatchResultEntry$Tag : java/lang/Enum { + public static final field FAILURE Lcom/dropbox/core/v2/files/CreateFolderBatchResultEntry$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/files/CreateFolderBatchResultEntry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderBatchResultEntry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/CreateFolderBatchResultEntry$Tag; +} + +public final class com/dropbox/core/v2/files/CreateFolderEntryError { + public static final field OTHER Lcom/dropbox/core/v2/files/CreateFolderEntryError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/CreateFolderEntryError; + public fun tag ()Lcom/dropbox/core/v2/files/CreateFolderEntryError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/CreateFolderEntryError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/CreateFolderEntryError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/CreateFolderEntryError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderEntryError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/CreateFolderEntryError$Tag; +} + +public class com/dropbox/core/v2/files/CreateFolderEntryResult { + protected final field metadata Lcom/dropbox/core/v2/files/FolderMetadata; + public fun (Lcom/dropbox/core/v2/files/FolderMetadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/FolderMetadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/CreateFolderError { + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/CreateFolderError; + public fun tag ()Lcom/dropbox/core/v2/files/CreateFolderError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/CreateFolderError$Tag : java/lang/Enum { + public static final field PATH Lcom/dropbox/core/v2/files/CreateFolderError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/CreateFolderError$Tag; +} + +public class com/dropbox/core/v2/files/CreateFolderErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/CreateFolderError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/CreateFolderError;)V +} + +public class com/dropbox/core/v2/files/CreateFolderResult : com/dropbox/core/v2/files/FileOpsResult { + protected final field metadata Lcom/dropbox/core/v2/files/FolderMetadata; + public fun (Lcom/dropbox/core/v2/files/FolderMetadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/FolderMetadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/DbxAppFilesRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun getThumbnailV2 (Lcom/dropbox/core/v2/files/PathOrLink;)Lcom/dropbox/core/DbxDownloader; + public fun getThumbnailV2Builder (Lcom/dropbox/core/v2/files/PathOrLink;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder; + public fun listFolder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderResult; + public fun listFolderBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun listFolderContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderResult; +} + +public class com/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; + public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder; + public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder; + public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder; +} + +public class com/dropbox/core/v2/files/DbxAppListFolderBuilder { + public fun start ()Lcom/dropbox/core/v2/files/ListFolderResult; + public fun withIncludeDeleted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withIncludeHasExplicitSharedMembers (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withIncludeMediaInfo (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withIncludeMountedFolders (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withIncludeNonDownloadableFiles (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withIncludePropertyGroups (Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withRecursive (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; + public fun withSharedLink (Lcom/dropbox/core/v2/files/SharedLink;)Lcom/dropbox/core/v2/files/DbxAppListFolderBuilder; +} + +public class com/dropbox/core/v2/files/DbxUserFilesRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun alphaGetMetadata (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata; + public fun alphaGetMetadataBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/AlphaGetMetadataBuilder; + public fun alphaUpload (Ljava/lang/String;)Lcom/dropbox/core/v2/files/AlphaUploadUploader; + public fun alphaUploadBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/AlphaUploadBuilder; + public fun copy (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata; + public fun copyBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/RelocationBatchLaunch; + public fun copyBatchBuilder (Ljava/util/List;)Lcom/dropbox/core/v2/files/CopyBatchBuilder; + public fun copyBatchCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchJobStatus; + public fun copyBatchCheckV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus; + public fun copyBatchV2 (Ljava/util/List;)Lcom/dropbox/core/v2/files/RelocationBatchV2Launch; + public fun copyBatchV2 (Ljava/util/List;Z)Lcom/dropbox/core/v2/files/RelocationBatchV2Launch; + public fun copyBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/CopyBuilder; + public fun copyReferenceGet (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetCopyReferenceResult; + public fun copyReferenceSave (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveCopyReferenceResult; + public fun copyV2 (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationResult; + public fun copyV2Builder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/CopyV2Builder; + public fun createFolder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderMetadata; + public fun createFolder (Ljava/lang/String;Z)Lcom/dropbox/core/v2/files/FolderMetadata; + public fun createFolderBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/CreateFolderBatchLaunch; + public fun createFolderBatchBuilder (Ljava/util/List;)Lcom/dropbox/core/v2/files/CreateFolderBatchBuilder; + public fun createFolderBatchCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderBatchJobStatus; + public fun createFolderV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/files/CreateFolderResult; + public fun createFolderV2 (Ljava/lang/String;Z)Lcom/dropbox/core/v2/files/CreateFolderResult; + public fun delete (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata; + public fun delete (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata; + public fun deleteBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/DeleteBatchLaunch; + public fun deleteBatchCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteBatchJobStatus; + public fun deleteV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteResult; + public fun deleteV2 (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteResult; + public fun download (Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun download (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun downloadBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DownloadBuilder; + public fun downloadZip (Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun downloadZipBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DownloadZipBuilder; + public fun export (Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun export (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun exportBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ExportBuilder; + public fun getFileLockBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/LockFileBatchResult; + public fun getMetadata (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata; + public fun getMetadataBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetMetadataBuilder; + public fun getPreview (Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun getPreview (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun getPreviewBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetPreviewBuilder; + public fun getTemporaryLink (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetTemporaryLinkResult; + public fun getTemporaryUploadLink (Lcom/dropbox/core/v2/files/CommitInfo;)Lcom/dropbox/core/v2/files/GetTemporaryUploadLinkResult; + public fun getTemporaryUploadLink (Lcom/dropbox/core/v2/files/CommitInfo;D)Lcom/dropbox/core/v2/files/GetTemporaryUploadLinkResult; + public fun getThumbnail (Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun getThumbnailBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/GetThumbnailBatchResult; + public fun getThumbnailBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder; + public fun getThumbnailV2 (Lcom/dropbox/core/v2/files/PathOrLink;)Lcom/dropbox/core/DbxDownloader; + public fun getThumbnailV2Builder (Lcom/dropbox/core/v2/files/PathOrLink;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder; + public fun listFolder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderResult; + public fun listFolderBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun listFolderContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderResult; + public fun listFolderGetLatestCursor (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorResult; + public fun listFolderGetLatestCursorBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun listFolderLongpoll (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderLongpollResult; + public fun listFolderLongpoll (Ljava/lang/String;J)Lcom/dropbox/core/v2/files/ListFolderLongpollResult; + public fun listRevisions (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListRevisionsResult; + public fun listRevisionsBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListRevisionsBuilder; + public fun lockFileBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/LockFileBatchResult; + public fun move (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata; + public fun moveBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/RelocationBatchLaunch; + public fun moveBatchBuilder (Ljava/util/List;)Lcom/dropbox/core/v2/files/MoveBatchBuilder; + public fun moveBatchCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchJobStatus; + public fun moveBatchCheckV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus; + public fun moveBatchV2 (Ljava/util/List;)Lcom/dropbox/core/v2/files/RelocationBatchV2Launch; + public fun moveBatchV2Builder (Ljava/util/List;)Lcom/dropbox/core/v2/files/MoveBatchV2Builder; + public fun moveBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/MoveBuilder; + public fun moveV2 (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationResult; + public fun moveV2Builder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/MoveV2Builder; + public fun paperCreate (Ljava/lang/String;Lcom/dropbox/core/v2/files/ImportFormat;)Lcom/dropbox/core/v2/files/PaperCreateUploader; + public fun paperUpdate (Ljava/lang/String;Lcom/dropbox/core/v2/files/ImportFormat;Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy;)Lcom/dropbox/core/v2/files/PaperUpdateUploader; + public fun paperUpdate (Ljava/lang/String;Lcom/dropbox/core/v2/files/ImportFormat;Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy;Ljava/lang/Long;)Lcom/dropbox/core/v2/files/PaperUpdateUploader; + public fun permanentlyDelete (Ljava/lang/String;)V + public fun permanentlyDelete (Ljava/lang/String;Ljava/lang/String;)V + public fun propertiesAdd (Ljava/lang/String;Ljava/util/List;)V + public fun propertiesOverwrite (Ljava/lang/String;Ljava/util/List;)V + public fun propertiesRemove (Ljava/lang/String;Ljava/util/List;)V + public fun propertiesTemplateGet (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/GetTemplateResult; + public fun propertiesTemplateList ()Lcom/dropbox/core/v2/fileproperties/ListTemplateResult; + public fun propertiesUpdate (Ljava/lang/String;Ljava/util/List;)V + public fun restore (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileMetadata; + public fun saveUrl (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveUrlResult; + public fun saveUrlCheckJobStatus (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveUrlJobStatus; + public fun search (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchResult; + public fun searchBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchBuilder; + public fun searchContinueV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchV2Result; + public fun searchV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchV2Result; + public fun searchV2Builder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchV2Builder; + public fun tagsAdd (Ljava/lang/String;Ljava/lang/String;)V + public fun tagsGet (Ljava/util/List;)Lcom/dropbox/core/v2/files/GetTagsResult; + public fun tagsRemove (Ljava/lang/String;Ljava/lang/String;)V + public fun unlockFileBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/LockFileBatchResult; + public fun upload (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadUploader; + public fun uploadBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadBuilder; + public fun uploadSessionAppend (Ljava/lang/String;J)Lcom/dropbox/core/v2/files/UploadSessionAppendUploader; + public fun uploadSessionAppendV2 (Lcom/dropbox/core/v2/files/UploadSessionCursor;)Lcom/dropbox/core/v2/files/UploadSessionAppendV2Uploader; + public fun uploadSessionAppendV2Builder (Lcom/dropbox/core/v2/files/UploadSessionCursor;)Lcom/dropbox/core/v2/files/UploadSessionAppendV2Builder; + public fun uploadSessionFinish (Lcom/dropbox/core/v2/files/UploadSessionCursor;Lcom/dropbox/core/v2/files/CommitInfo;)Lcom/dropbox/core/v2/files/UploadSessionFinishUploader; + public fun uploadSessionFinish (Lcom/dropbox/core/v2/files/UploadSessionCursor;Lcom/dropbox/core/v2/files/CommitInfo;Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionFinishUploader; + public fun uploadSessionFinishBatch (Ljava/util/List;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch; + public fun uploadSessionFinishBatchCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus; + public fun uploadSessionFinishBatchV2 (Ljava/util/List;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResult; + public fun uploadSessionStart ()Lcom/dropbox/core/v2/files/UploadSessionStartUploader; + public fun uploadSessionStartBatch (J)Lcom/dropbox/core/v2/files/UploadSessionStartBatchResult; + public fun uploadSessionStartBatch (JLcom/dropbox/core/v2/files/UploadSessionType;)Lcom/dropbox/core/v2/files/UploadSessionStartBatchResult; + public fun uploadSessionStartBuilder ()Lcom/dropbox/core/v2/files/UploadSessionStartBuilder; +} + +public class com/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; + public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder; + public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder; + public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder; +} + +public class com/dropbox/core/v2/files/DbxUserListFolderBuilder { + public fun start ()Lcom/dropbox/core/v2/files/ListFolderResult; + public fun withIncludeDeleted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withIncludeHasExplicitSharedMembers (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withIncludeMediaInfo (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withIncludeMountedFolders (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withIncludeNonDownloadableFiles (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withIncludePropertyGroups (Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withRecursive (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; + public fun withSharedLink (Lcom/dropbox/core/v2/files/SharedLink;)Lcom/dropbox/core/v2/files/DbxUserListFolderBuilder; +} + +public class com/dropbox/core/v2/files/DeleteArg { + protected final field parentRev Ljava/lang/String; + protected final field path Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getParentRev ()Ljava/lang/String; + public fun getPath ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DeleteBatchError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/DeleteBatchError; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/DeleteBatchError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteBatchError; + public static fun values ()[Lcom/dropbox/core/v2/files/DeleteBatchError; +} + +public final class com/dropbox/core/v2/files/DeleteBatchJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/DeleteBatchJobStatus; + public static final field OTHER Lcom/dropbox/core/v2/files/DeleteBatchJobStatus; + public static fun complete (Lcom/dropbox/core/v2/files/DeleteBatchResult;)Lcom/dropbox/core/v2/files/DeleteBatchJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/files/DeleteBatchError;)Lcom/dropbox/core/v2/files/DeleteBatchJobStatus; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/DeleteBatchResult; + public fun getFailedValue ()Lcom/dropbox/core/v2/files/DeleteBatchError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/files/DeleteBatchJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DeleteBatchJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/files/DeleteBatchJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/files/DeleteBatchJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/DeleteBatchJobStatus$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/DeleteBatchJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteBatchJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/DeleteBatchJobStatus$Tag; +} + +public final class com/dropbox/core/v2/files/DeleteBatchLaunch { + public static final field OTHER Lcom/dropbox/core/v2/files/DeleteBatchLaunch; + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteBatchLaunch; + public static fun complete (Lcom/dropbox/core/v2/files/DeleteBatchResult;)Lcom/dropbox/core/v2/files/DeleteBatchLaunch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/DeleteBatchResult; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/files/DeleteBatchLaunch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DeleteBatchLaunch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/files/DeleteBatchLaunch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/files/DeleteBatchLaunch$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/DeleteBatchLaunch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteBatchLaunch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/DeleteBatchLaunch$Tag; +} + +public class com/dropbox/core/v2/files/DeleteBatchResult : com/dropbox/core/v2/files/FileOpsResult { + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/DeleteBatchResultData { + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/Metadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DeleteBatchResultEntry { + public fun equals (Ljava/lang/Object;)Z + public static fun failure (Lcom/dropbox/core/v2/files/DeleteError;)Lcom/dropbox/core/v2/files/DeleteBatchResultEntry; + public fun getFailureValue ()Lcom/dropbox/core/v2/files/DeleteError; + public fun getSuccessValue ()Lcom/dropbox/core/v2/files/DeleteBatchResultData; + public fun hashCode ()I + public fun isFailure ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/files/DeleteBatchResultData;)Lcom/dropbox/core/v2/files/DeleteBatchResultEntry; + public fun tag ()Lcom/dropbox/core/v2/files/DeleteBatchResultEntry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DeleteBatchResultEntry$Tag : java/lang/Enum { + public static final field FAILURE Lcom/dropbox/core/v2/files/DeleteBatchResultEntry$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/files/DeleteBatchResultEntry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteBatchResultEntry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/DeleteBatchResultEntry$Tag; +} + +public final class com/dropbox/core/v2/files/DeleteError { + public static final field OTHER Lcom/dropbox/core/v2/files/DeleteError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/DeleteError; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/DeleteError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathLookupValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun getPathWriteValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPathLookup ()Z + public fun isPathWrite ()Z + public fun isTooManyFiles ()Z + public fun isTooManyWriteOperations ()Z + public static fun pathLookup (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/DeleteError; + public static fun pathWrite (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/DeleteError; + public fun tag ()Lcom/dropbox/core/v2/files/DeleteError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DeleteError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/DeleteError$Tag; + public static final field PATH_LOOKUP Lcom/dropbox/core/v2/files/DeleteError$Tag; + public static final field PATH_WRITE Lcom/dropbox/core/v2/files/DeleteError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/DeleteError$Tag; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/DeleteError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeleteError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/DeleteError$Tag; +} + +public class com/dropbox/core/v2/files/DeleteErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/DeleteError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/DeleteError;)V +} + +public class com/dropbox/core/v2/files/DeleteResult : com/dropbox/core/v2/files/FileOpsResult { + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/Metadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/DeletedMetadata : com/dropbox/core/v2/files/Metadata { + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getPathDisplay ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getPreviewUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeletedMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/DeletedMetadata$Builder : com/dropbox/core/v2/files/Metadata$Builder { + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/files/DeletedMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/files/Metadata; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeletedMetadata$Builder; + public synthetic fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeletedMetadata$Builder; + public synthetic fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeletedMetadata$Builder; + public synthetic fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPreviewUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DeletedMetadata$Builder; + public synthetic fun withPreviewUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; +} + +public class com/dropbox/core/v2/files/Dimensions { + protected final field height J + protected final field width J + public fun (JJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getHeight ()J + public fun getWidth ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/DownloadBuilder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; + public fun withRev (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DownloadBuilder; +} + +public final class com/dropbox/core/v2/files/DownloadError { + public static final field OTHER Lcom/dropbox/core/v2/files/DownloadError; + public static final field UNSUPPORTED_FILE Lcom/dropbox/core/v2/files/DownloadError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isUnsupportedFile ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/DownloadError; + public fun tag ()Lcom/dropbox/core/v2/files/DownloadError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DownloadError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/DownloadError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/DownloadError$Tag; + public static final field UNSUPPORTED_FILE Lcom/dropbox/core/v2/files/DownloadError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DownloadError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/DownloadError$Tag; +} + +public class com/dropbox/core/v2/files/DownloadErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/DownloadError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/DownloadError;)V +} + +public class com/dropbox/core/v2/files/DownloadZipBuilder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; +} + +public final class com/dropbox/core/v2/files/DownloadZipError { + public static final field OTHER Lcom/dropbox/core/v2/files/DownloadZipError; + public static final field TOO_LARGE Lcom/dropbox/core/v2/files/DownloadZipError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/DownloadZipError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isTooLarge ()Z + public fun isTooManyFiles ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/DownloadZipError; + public fun tag ()Lcom/dropbox/core/v2/files/DownloadZipError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/DownloadZipError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/DownloadZipError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/DownloadZipError$Tag; + public static final field TOO_LARGE Lcom/dropbox/core/v2/files/DownloadZipError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/DownloadZipError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/DownloadZipError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/DownloadZipError$Tag; +} + +public class com/dropbox/core/v2/files/DownloadZipErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/DownloadZipError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/DownloadZipError;)V +} + +public class com/dropbox/core/v2/files/DownloadZipResult { + protected final field metadata Lcom/dropbox/core/v2/files/FolderMetadata; + public fun (Lcom/dropbox/core/v2/files/FolderMetadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/FolderMetadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ExportArg { + protected final field exportFormat Ljava/lang/String; + protected final field path Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportFormat ()Ljava/lang/String; + public fun getPath ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ExportArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/ExportArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/files/ExportArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/ExportArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/files/ExportBuilder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; + public fun withExportFormat (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ExportBuilder; +} + +public final class com/dropbox/core/v2/files/ExportError { + public static final field INVALID_EXPORT_FORMAT Lcom/dropbox/core/v2/files/ExportError; + public static final field NON_EXPORTABLE Lcom/dropbox/core/v2/files/ExportError; + public static final field OTHER Lcom/dropbox/core/v2/files/ExportError; + public static final field RETRY_ERROR Lcom/dropbox/core/v2/files/ExportError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isInvalidExportFormat ()Z + public fun isNonExportable ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isRetryError ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/ExportError; + public fun tag ()Lcom/dropbox/core/v2/files/ExportError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ExportError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/ExportError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/files/ExportError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/ExportError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/files/ExportError$Tag : java/lang/Enum { + public static final field INVALID_EXPORT_FORMAT Lcom/dropbox/core/v2/files/ExportError$Tag; + public static final field NON_EXPORTABLE Lcom/dropbox/core/v2/files/ExportError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/ExportError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/ExportError$Tag; + public static final field RETRY_ERROR Lcom/dropbox/core/v2/files/ExportError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ExportError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/ExportError$Tag; +} + +public class com/dropbox/core/v2/files/ExportErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/ExportError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/ExportError;)V +} + +public class com/dropbox/core/v2/files/ExportInfo { + protected final field exportAs Ljava/lang/String; + protected final field exportOptions Ljava/util/List; + public fun ()V + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportAs ()Ljava/lang/String; + public fun getExportOptions ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/files/ExportInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ExportInfo$Builder { + protected field exportAs Ljava/lang/String; + protected field exportOptions Ljava/util/List; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/files/ExportInfo; + public fun withExportAs (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ExportInfo$Builder; + public fun withExportOptions (Ljava/util/List;)Lcom/dropbox/core/v2/files/ExportInfo$Builder; +} + +public class com/dropbox/core/v2/files/ExportMetadata { + protected final field exportHash Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field paperRevision Ljava/lang/Long; + protected final field size J + public fun (Ljava/lang/String;J)V + public fun (Ljava/lang/String;JLjava/lang/String;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportHash ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPaperRevision ()Ljava/lang/Long; + public fun getSize ()J + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;J)Lcom/dropbox/core/v2/files/ExportMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ExportMetadata$Builder { + protected field exportHash Ljava/lang/String; + protected final field name Ljava/lang/String; + protected field paperRevision Ljava/lang/Long; + protected final field size J + protected fun (Ljava/lang/String;J)V + public fun build ()Lcom/dropbox/core/v2/files/ExportMetadata; + public fun withExportHash (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ExportMetadata$Builder; + public fun withPaperRevision (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/ExportMetadata$Builder; +} + +public class com/dropbox/core/v2/files/ExportResult { + protected final field exportMetadata Lcom/dropbox/core/v2/files/ExportMetadata; + protected final field fileMetadata Lcom/dropbox/core/v2/files/FileMetadata; + public fun (Lcom/dropbox/core/v2/files/ExportMetadata;Lcom/dropbox/core/v2/files/FileMetadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportMetadata ()Lcom/dropbox/core/v2/files/ExportMetadata; + public fun getFileMetadata ()Lcom/dropbox/core/v2/files/FileMetadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ExportResult$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/ExportResult$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/files/ExportResult; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/ExportResult;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/files/FileCategory : java/lang/Enum { + public static final field AUDIO Lcom/dropbox/core/v2/files/FileCategory; + public static final field DOCUMENT Lcom/dropbox/core/v2/files/FileCategory; + public static final field FOLDER Lcom/dropbox/core/v2/files/FileCategory; + public static final field IMAGE Lcom/dropbox/core/v2/files/FileCategory; + public static final field OTHER Lcom/dropbox/core/v2/files/FileCategory; + public static final field OTHERS Lcom/dropbox/core/v2/files/FileCategory; + public static final field PAPER Lcom/dropbox/core/v2/files/FileCategory; + public static final field PDF Lcom/dropbox/core/v2/files/FileCategory; + public static final field PRESENTATION Lcom/dropbox/core/v2/files/FileCategory; + public static final field SPREADSHEET Lcom/dropbox/core/v2/files/FileCategory; + public static final field VIDEO Lcom/dropbox/core/v2/files/FileCategory; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileCategory; + public static fun values ()[Lcom/dropbox/core/v2/files/FileCategory; +} + +public class com/dropbox/core/v2/files/FileLock { + protected final field content Lcom/dropbox/core/v2/files/FileLockContent; + public fun (Lcom/dropbox/core/v2/files/FileLockContent;)V + public fun equals (Ljava/lang/Object;)Z + public fun getContent ()Lcom/dropbox/core/v2/files/FileLockContent; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/FileLockContent { + public static final field OTHER Lcom/dropbox/core/v2/files/FileLockContent; + public static final field UNLOCKED Lcom/dropbox/core/v2/files/FileLockContent; + public fun equals (Ljava/lang/Object;)Z + public fun getSingleUserValue ()Lcom/dropbox/core/v2/files/SingleUserLock; + public fun hashCode ()I + public fun isOther ()Z + public fun isSingleUser ()Z + public fun isUnlocked ()Z + public static fun singleUser (Lcom/dropbox/core/v2/files/SingleUserLock;)Lcom/dropbox/core/v2/files/FileLockContent; + public fun tag ()Lcom/dropbox/core/v2/files/FileLockContent$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/FileLockContent$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/FileLockContent$Tag; + public static final field SINGLE_USER Lcom/dropbox/core/v2/files/FileLockContent$Tag; + public static final field UNLOCKED Lcom/dropbox/core/v2/files/FileLockContent$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileLockContent$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/FileLockContent$Tag; +} + +public class com/dropbox/core/v2/files/FileLockMetadata { + protected final field created Ljava/util/Date; + protected final field isLockholder Ljava/lang/Boolean; + protected final field lockholderAccountId Ljava/lang/String; + protected final field lockholderName Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCreated ()Ljava/util/Date; + public fun getIsLockholder ()Ljava/lang/Boolean; + public fun getLockholderAccountId ()Ljava/lang/String; + public fun getLockholderName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/files/FileLockMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/FileLockMetadata$Builder { + protected field created Ljava/util/Date; + protected field isLockholder Ljava/lang/Boolean; + protected field lockholderAccountId Ljava/lang/String; + protected field lockholderName Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/files/FileLockMetadata; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/files/FileLockMetadata$Builder; + public fun withIsLockholder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/FileLockMetadata$Builder; + public fun withLockholderAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileLockMetadata$Builder; + public fun withLockholderName (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileLockMetadata$Builder; +} + +public class com/dropbox/core/v2/files/FileMetadata : com/dropbox/core/v2/files/Metadata { + protected final field clientModified Ljava/util/Date; + protected final field contentHash Ljava/lang/String; + protected final field exportInfo Lcom/dropbox/core/v2/files/ExportInfo; + protected final field fileLockInfo Lcom/dropbox/core/v2/files/FileLockMetadata; + protected final field hasExplicitSharedMembers Ljava/lang/Boolean; + protected final field id Ljava/lang/String; + protected final field isDownloadable Z + protected final field mediaInfo Lcom/dropbox/core/v2/files/MediaInfo; + protected final field propertyGroups Ljava/util/List; + protected final field rev Ljava/lang/String; + protected final field serverModified Ljava/util/Date; + protected final field sharingInfo Lcom/dropbox/core/v2/files/FileSharingInfo; + protected final field size J + protected final field symlinkInfo Lcom/dropbox/core/v2/files/SymlinkInfo; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;J)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/files/MediaInfo;Lcom/dropbox/core/v2/files/SymlinkInfo;Lcom/dropbox/core/v2/files/FileSharingInfo;ZLcom/dropbox/core/v2/files/ExportInfo;Ljava/util/List;Ljava/lang/Boolean;Ljava/lang/String;Lcom/dropbox/core/v2/files/FileLockMetadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClientModified ()Ljava/util/Date; + public fun getContentHash ()Ljava/lang/String; + public fun getExportInfo ()Lcom/dropbox/core/v2/files/ExportInfo; + public fun getFileLockInfo ()Lcom/dropbox/core/v2/files/FileLockMetadata; + public fun getHasExplicitSharedMembers ()Ljava/lang/Boolean; + public fun getId ()Ljava/lang/String; + public fun getIsDownloadable ()Z + public fun getMediaInfo ()Lcom/dropbox/core/v2/files/MediaInfo; + public fun getName ()Ljava/lang/String; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getPathDisplay ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getPreviewUrl ()Ljava/lang/String; + public fun getPropertyGroups ()Ljava/util/List; + public fun getRev ()Ljava/lang/String; + public fun getServerModified ()Ljava/util/Date; + public fun getSharingInfo ()Lcom/dropbox/core/v2/files/FileSharingInfo; + public fun getSize ()J + public fun getSymlinkInfo ()Lcom/dropbox/core/v2/files/SymlinkInfo; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;J)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/FileMetadata$Builder : com/dropbox/core/v2/files/Metadata$Builder { + protected final field clientModified Ljava/util/Date; + protected field contentHash Ljava/lang/String; + protected field exportInfo Lcom/dropbox/core/v2/files/ExportInfo; + protected field fileLockInfo Lcom/dropbox/core/v2/files/FileLockMetadata; + protected field hasExplicitSharedMembers Ljava/lang/Boolean; + protected final field id Ljava/lang/String; + protected field isDownloadable Z + protected field mediaInfo Lcom/dropbox/core/v2/files/MediaInfo; + protected field propertyGroups Ljava/util/List; + protected final field rev Ljava/lang/String; + protected final field serverModified Ljava/util/Date; + protected field sharingInfo Lcom/dropbox/core/v2/files/FileSharingInfo; + protected final field size J + protected field symlinkInfo Lcom/dropbox/core/v2/files/SymlinkInfo; + protected fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;J)V + public fun build ()Lcom/dropbox/core/v2/files/FileMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/files/Metadata; + public fun withContentHash (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withExportInfo (Lcom/dropbox/core/v2/files/ExportInfo;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withFileLockInfo (Lcom/dropbox/core/v2/files/FileLockMetadata;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withHasExplicitSharedMembers (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withIsDownloadable (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withMediaInfo (Lcom/dropbox/core/v2/files/MediaInfo;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public synthetic fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public synthetic fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public synthetic fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPreviewUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public synthetic fun withPreviewUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPropertyGroups (Ljava/util/List;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withSharingInfo (Lcom/dropbox/core/v2/files/FileSharingInfo;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; + public fun withSymlinkInfo (Lcom/dropbox/core/v2/files/SymlinkInfo;)Lcom/dropbox/core/v2/files/FileMetadata$Builder; +} + +public class com/dropbox/core/v2/files/FileOpsResult { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/FileSharingInfo : com/dropbox/core/v2/files/SharingInfo { + protected final field modifiedBy Ljava/lang/String; + protected final field parentSharedFolderId Ljava/lang/String; + public fun (ZLjava/lang/String;)V + public fun (ZLjava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getModifiedBy ()Ljava/lang/String; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getReadOnly ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/FileStatus : java/lang/Enum { + public static final field ACTIVE Lcom/dropbox/core/v2/files/FileStatus; + public static final field DELETED Lcom/dropbox/core/v2/files/FileStatus; + public static final field OTHER Lcom/dropbox/core/v2/files/FileStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FileStatus; + public static fun values ()[Lcom/dropbox/core/v2/files/FileStatus; +} + +public class com/dropbox/core/v2/files/FolderMetadata : com/dropbox/core/v2/files/Metadata { + protected final field id Ljava/lang/String; + protected final field propertyGroups Ljava/util/List; + protected final field sharedFolderId Ljava/lang/String; + protected final field sharingInfo Lcom/dropbox/core/v2/files/FolderSharingInfo; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/files/FolderSharingInfo;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getPathDisplay ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getPreviewUrl ()Ljava/lang/String; + public fun getPropertyGroups ()Ljava/util/List; + public fun getSharedFolderId ()Ljava/lang/String; + public fun getSharingInfo ()Lcom/dropbox/core/v2/files/FolderSharingInfo; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/FolderMetadata$Builder : com/dropbox/core/v2/files/Metadata$Builder { + protected final field id Ljava/lang/String; + protected field propertyGroups Ljava/util/List; + protected field sharedFolderId Ljava/lang/String; + protected field sharingInfo Lcom/dropbox/core/v2/files/FolderSharingInfo; + protected fun (Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/files/FolderMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/files/Metadata; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; + public synthetic fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; + public synthetic fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; + public synthetic fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPreviewUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; + public synthetic fun withPreviewUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPropertyGroups (Ljava/util/List;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; + public fun withSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; + public fun withSharingInfo (Lcom/dropbox/core/v2/files/FolderSharingInfo;)Lcom/dropbox/core/v2/files/FolderMetadata$Builder; +} + +public class com/dropbox/core/v2/files/FolderSharingInfo : com/dropbox/core/v2/files/SharingInfo { + protected final field noAccess Z + protected final field parentSharedFolderId Ljava/lang/String; + protected final field sharedFolderId Ljava/lang/String; + protected final field traverseOnly Z + public fun (Z)V + public fun (ZLjava/lang/String;Ljava/lang/String;ZZ)V + public fun equals (Ljava/lang/Object;)Z + public fun getNoAccess ()Z + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getReadOnly ()Z + public fun getSharedFolderId ()Ljava/lang/String; + public fun getTraverseOnly ()Z + public fun hashCode ()I + public static fun newBuilder (Z)Lcom/dropbox/core/v2/files/FolderSharingInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/FolderSharingInfo$Builder { + protected field noAccess Z + protected field parentSharedFolderId Ljava/lang/String; + protected final field readOnly Z + protected field sharedFolderId Ljava/lang/String; + protected field traverseOnly Z + protected fun (Z)V + public fun build ()Lcom/dropbox/core/v2/files/FolderSharingInfo; + public fun withNoAccess (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/FolderSharingInfo$Builder; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderSharingInfo$Builder; + public fun withSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/FolderSharingInfo$Builder; + public fun withTraverseOnly (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/FolderSharingInfo$Builder; +} + +public final class com/dropbox/core/v2/files/GetCopyReferenceError { + public static final field OTHER Lcom/dropbox/core/v2/files/GetCopyReferenceError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/GetCopyReferenceError; + public fun tag ()Lcom/dropbox/core/v2/files/GetCopyReferenceError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/GetCopyReferenceError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/GetCopyReferenceError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/GetCopyReferenceError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetCopyReferenceError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/GetCopyReferenceError$Tag; +} + +public class com/dropbox/core/v2/files/GetCopyReferenceErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/GetCopyReferenceError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/GetCopyReferenceError;)V +} + +public class com/dropbox/core/v2/files/GetCopyReferenceResult { + protected final field copyReference Ljava/lang/String; + protected final field expires Ljava/util/Date; + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/Metadata;Ljava/lang/String;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCopyReference ()Ljava/lang/String; + public fun getExpires ()Ljava/util/Date; + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/GetMetadataBuilder { + public fun start ()Lcom/dropbox/core/v2/files/Metadata; + public fun withIncludeDeleted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/GetMetadataBuilder; + public fun withIncludeHasExplicitSharedMembers (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/GetMetadataBuilder; + public fun withIncludeMediaInfo (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/GetMetadataBuilder; + public fun withIncludePropertyGroups (Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase;)Lcom/dropbox/core/v2/files/GetMetadataBuilder; +} + +public final class com/dropbox/core/v2/files/GetMetadataError { + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/GetMetadataError; + public fun tag ()Lcom/dropbox/core/v2/files/GetMetadataError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/GetMetadataError$Tag : java/lang/Enum { + public static final field PATH Lcom/dropbox/core/v2/files/GetMetadataError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetMetadataError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/GetMetadataError$Tag; +} + +public class com/dropbox/core/v2/files/GetMetadataErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/GetMetadataError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/GetMetadataError;)V +} + +public class com/dropbox/core/v2/files/GetPreviewBuilder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; + public fun withRev (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetPreviewBuilder; +} + +public class com/dropbox/core/v2/files/GetTagsResult { + protected final field pathsToTags Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPathsToTags ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/GetTemporaryLinkError { + public static final field EMAIL_NOT_VERIFIED Lcom/dropbox/core/v2/files/GetTemporaryLinkError; + public static final field NOT_ALLOWED Lcom/dropbox/core/v2/files/GetTemporaryLinkError; + public static final field OTHER Lcom/dropbox/core/v2/files/GetTemporaryLinkError; + public static final field UNSUPPORTED_FILE Lcom/dropbox/core/v2/files/GetTemporaryLinkError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isEmailNotVerified ()Z + public fun isNotAllowed ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isUnsupportedFile ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/GetTemporaryLinkError; + public fun tag ()Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/GetTemporaryLinkError$Tag : java/lang/Enum { + public static final field EMAIL_NOT_VERIFIED Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; + public static final field NOT_ALLOWED Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; + public static final field UNSUPPORTED_FILE Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/GetTemporaryLinkError$Tag; +} + +public class com/dropbox/core/v2/files/GetTemporaryLinkErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/GetTemporaryLinkError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/GetTemporaryLinkError;)V +} + +public class com/dropbox/core/v2/files/GetTemporaryLinkResult { + protected final field link Ljava/lang/String; + protected final field metadata Lcom/dropbox/core/v2/files/FileMetadata; + public fun (Lcom/dropbox/core/v2/files/FileMetadata;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLink ()Ljava/lang/String; + public fun getMetadata ()Lcom/dropbox/core/v2/files/FileMetadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/GetTemporaryUploadLinkResult { + protected final field link Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/GetThumbnailBatchError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/GetThumbnailBatchError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/GetThumbnailBatchError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetThumbnailBatchError; + public static fun values ()[Lcom/dropbox/core/v2/files/GetThumbnailBatchError; +} + +public class com/dropbox/core/v2/files/GetThumbnailBatchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/GetThumbnailBatchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/GetThumbnailBatchError;)V +} + +public class com/dropbox/core/v2/files/GetThumbnailBatchResult { + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/GetThumbnailBatchResultData { + protected final field metadata Lcom/dropbox/core/v2/files/FileMetadata; + protected final field thumbnail Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/files/FileMetadata;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/FileMetadata; + public fun getThumbnail ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/GetThumbnailBatchResultEntry { + public static final field OTHER Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry; + public fun equals (Ljava/lang/Object;)Z + public static fun failure (Lcom/dropbox/core/v2/files/ThumbnailError;)Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry; + public fun getFailureValue ()Lcom/dropbox/core/v2/files/ThumbnailError; + public fun getSuccessValue ()Lcom/dropbox/core/v2/files/GetThumbnailBatchResultData; + public fun hashCode ()I + public fun isFailure ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/files/GetThumbnailBatchResultData;)Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry; + public fun tag ()Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/GetThumbnailBatchResultEntry$Tag : java/lang/Enum { + public static final field FAILURE Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/GetThumbnailBatchResultEntry$Tag; +} + +public class com/dropbox/core/v2/files/GetThumbnailBuilder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; + public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder; + public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder; + public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/GetThumbnailBuilder; +} + +public class com/dropbox/core/v2/files/GpsCoordinates { + protected final field latitude D + protected final field longitude D + public fun (DD)V + public fun equals (Ljava/lang/Object;)Z + public fun getLatitude ()D + public fun getLongitude ()D + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/HighlightSpan { + protected final field highlightStr Ljava/lang/String; + protected final field isHighlighted Z + public fun (Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getHighlightStr ()Ljava/lang/String; + public fun getIsHighlighted ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/ImportFormat : java/lang/Enum { + public static final field HTML Lcom/dropbox/core/v2/files/ImportFormat; + public static final field MARKDOWN Lcom/dropbox/core/v2/files/ImportFormat; + public static final field OTHER Lcom/dropbox/core/v2/files/ImportFormat; + public static final field PLAIN_TEXT Lcom/dropbox/core/v2/files/ImportFormat; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ImportFormat; + public static fun values ()[Lcom/dropbox/core/v2/files/ImportFormat; +} + +public final class com/dropbox/core/v2/files/ListFolderContinueError { + public static final field OTHER Lcom/dropbox/core/v2/files/ListFolderContinueError; + public static final field RESET Lcom/dropbox/core/v2/files/ListFolderContinueError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isReset ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/ListFolderContinueError; + public fun tag ()Lcom/dropbox/core/v2/files/ListFolderContinueError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/ListFolderContinueError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/ListFolderContinueError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/ListFolderContinueError$Tag; + public static final field RESET Lcom/dropbox/core/v2/files/ListFolderContinueError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderContinueError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/ListFolderContinueError$Tag; +} + +public class com/dropbox/core/v2/files/ListFolderContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/ListFolderContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/ListFolderContinueError;)V +} + +public final class com/dropbox/core/v2/files/ListFolderError { + public static final field OTHER Lcom/dropbox/core/v2/files/ListFolderError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun getTemplateErrorValue ()Lcom/dropbox/core/v2/fileproperties/TemplateError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isTemplateError ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/ListFolderError; + public fun tag ()Lcom/dropbox/core/v2/files/ListFolderError$Tag; + public static fun templateError (Lcom/dropbox/core/v2/fileproperties/TemplateError;)Lcom/dropbox/core/v2/files/ListFolderError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/ListFolderError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/ListFolderError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/ListFolderError$Tag; + public static final field TEMPLATE_ERROR Lcom/dropbox/core/v2/files/ListFolderError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/ListFolderError$Tag; +} + +public class com/dropbox/core/v2/files/ListFolderErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/ListFolderError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/ListFolderError;)V +} + +public class com/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder { + public fun start ()Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorResult; + public fun withIncludeDeleted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withIncludeHasExplicitSharedMembers (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withIncludeMediaInfo (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withIncludeMountedFolders (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withIncludeNonDownloadableFiles (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withIncludePropertyGroups (Lcom/dropbox/core/v2/fileproperties/TemplateFilterBase;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withRecursive (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; + public fun withSharedLink (Lcom/dropbox/core/v2/files/SharedLink;)Lcom/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder; +} + +public class com/dropbox/core/v2/files/ListFolderGetLatestCursorResult { + protected final field cursor Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/ListFolderLongpollError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/ListFolderLongpollError; + public static final field RESET Lcom/dropbox/core/v2/files/ListFolderLongpollError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListFolderLongpollError; + public static fun values ()[Lcom/dropbox/core/v2/files/ListFolderLongpollError; +} + +public class com/dropbox/core/v2/files/ListFolderLongpollErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/ListFolderLongpollError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/ListFolderLongpollError;)V +} + +public class com/dropbox/core/v2/files/ListFolderLongpollResult { + protected final field backoff Ljava/lang/Long; + protected final field changes Z + public fun (Z)V + public fun (ZLjava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBackoff ()Ljava/lang/Long; + public fun getChanges ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ListFolderResult { + protected final field cursor Ljava/lang/String; + protected final field entries Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getEntries ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ListRevisionsBuilder { + public fun start ()Lcom/dropbox/core/v2/files/ListRevisionsResult; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/ListRevisionsBuilder; + public fun withMode (Lcom/dropbox/core/v2/files/ListRevisionsMode;)Lcom/dropbox/core/v2/files/ListRevisionsBuilder; +} + +public final class com/dropbox/core/v2/files/ListRevisionsError { + public static final field OTHER Lcom/dropbox/core/v2/files/ListRevisionsError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/ListRevisionsError; + public fun tag ()Lcom/dropbox/core/v2/files/ListRevisionsError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/ListRevisionsError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/ListRevisionsError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/ListRevisionsError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListRevisionsError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/ListRevisionsError$Tag; +} + +public class com/dropbox/core/v2/files/ListRevisionsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/ListRevisionsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/ListRevisionsError;)V +} + +public final class com/dropbox/core/v2/files/ListRevisionsMode : java/lang/Enum { + public static final field ID Lcom/dropbox/core/v2/files/ListRevisionsMode; + public static final field OTHER Lcom/dropbox/core/v2/files/ListRevisionsMode; + public static final field PATH Lcom/dropbox/core/v2/files/ListRevisionsMode; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ListRevisionsMode; + public static fun values ()[Lcom/dropbox/core/v2/files/ListRevisionsMode; +} + +public class com/dropbox/core/v2/files/ListRevisionsResult { + protected final field entries Ljava/util/List; + protected final field isDeleted Z + protected final field serverDeleted Ljava/util/Date; + public fun (ZLjava/util/List;)V + public fun (ZLjava/util/List;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun getIsDeleted ()Z + public fun getServerDeleted ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/LockConflictError { + protected final field lock Lcom/dropbox/core/v2/files/FileLock; + public fun (Lcom/dropbox/core/v2/files/FileLock;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLock ()Lcom/dropbox/core/v2/files/FileLock; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/LockFileArg { + protected final field path Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPath ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/LockFileBatchResult : com/dropbox/core/v2/files/FileOpsResult { + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/LockFileError { + public static final field CANNOT_BE_LOCKED Lcom/dropbox/core/v2/files/LockFileError; + public static final field FILE_NOT_SHARED Lcom/dropbox/core/v2/files/LockFileError; + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/LockFileError; + public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/LockFileError; + public static final field OTHER Lcom/dropbox/core/v2/files/LockFileError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/LockFileError; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/LockFileError; + public fun equals (Ljava/lang/Object;)Z + public fun getLockConflictValue ()Lcom/dropbox/core/v2/files/LockConflictError; + public fun getPathLookupValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isCannotBeLocked ()Z + public fun isFileNotShared ()Z + public fun isInternalError ()Z + public fun isLockConflict ()Z + public fun isNoWritePermission ()Z + public fun isOther ()Z + public fun isPathLookup ()Z + public fun isTooManyFiles ()Z + public fun isTooManyWriteOperations ()Z + public static fun lockConflict (Lcom/dropbox/core/v2/files/LockConflictError;)Lcom/dropbox/core/v2/files/LockFileError; + public static fun pathLookup (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/LockFileError; + public fun tag ()Lcom/dropbox/core/v2/files/LockFileError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/LockFileError$Tag : java/lang/Enum { + public static final field CANNOT_BE_LOCKED Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field FILE_NOT_SHARED Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field LOCK_CONFLICT Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field PATH_LOOKUP Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/LockFileError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/LockFileError$Tag; +} + +public class com/dropbox/core/v2/files/LockFileErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/LockFileError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/LockFileError;)V +} + +public class com/dropbox/core/v2/files/LockFileResult { + protected final field lock Lcom/dropbox/core/v2/files/FileLock; + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/Metadata;Lcom/dropbox/core/v2/files/FileLock;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLock ()Lcom/dropbox/core/v2/files/FileLock; + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/LockFileResultEntry { + public fun equals (Ljava/lang/Object;)Z + public static fun failure (Lcom/dropbox/core/v2/files/LockFileError;)Lcom/dropbox/core/v2/files/LockFileResultEntry; + public fun getFailureValue ()Lcom/dropbox/core/v2/files/LockFileError; + public fun getSuccessValue ()Lcom/dropbox/core/v2/files/LockFileResult; + public fun hashCode ()I + public fun isFailure ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/files/LockFileResult;)Lcom/dropbox/core/v2/files/LockFileResultEntry; + public fun tag ()Lcom/dropbox/core/v2/files/LockFileResultEntry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/LockFileResultEntry$Tag : java/lang/Enum { + public static final field FAILURE Lcom/dropbox/core/v2/files/LockFileResultEntry$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/files/LockFileResultEntry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/LockFileResultEntry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/LockFileResultEntry$Tag; +} + +public final class com/dropbox/core/v2/files/LookupError { + public static final field LOCKED Lcom/dropbox/core/v2/files/LookupError; + public static final field NOT_FILE Lcom/dropbox/core/v2/files/LookupError; + public static final field NOT_FOLDER Lcom/dropbox/core/v2/files/LookupError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/LookupError; + public static final field OTHER Lcom/dropbox/core/v2/files/LookupError; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/files/LookupError; + public static final field UNSUPPORTED_CONTENT_TYPE Lcom/dropbox/core/v2/files/LookupError; + public fun equals (Ljava/lang/Object;)Z + public fun getMalformedPathValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isLocked ()Z + public fun isMalformedPath ()Z + public fun isNotFile ()Z + public fun isNotFolder ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isRestrictedContent ()Z + public fun isUnsupportedContentType ()Z + public static fun malformedPath ()Lcom/dropbox/core/v2/files/LookupError; + public static fun malformedPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/LookupError; + public fun tag ()Lcom/dropbox/core/v2/files/LookupError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/LookupError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/LookupError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/files/LookupError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/LookupError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/files/LookupError$Tag : java/lang/Enum { + public static final field LOCKED Lcom/dropbox/core/v2/files/LookupError$Tag; + public static final field MALFORMED_PATH Lcom/dropbox/core/v2/files/LookupError$Tag; + public static final field NOT_FILE Lcom/dropbox/core/v2/files/LookupError$Tag; + public static final field NOT_FOLDER Lcom/dropbox/core/v2/files/LookupError$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/LookupError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/LookupError$Tag; + public static final field RESTRICTED_CONTENT Lcom/dropbox/core/v2/files/LookupError$Tag; + public static final field UNSUPPORTED_CONTENT_TYPE Lcom/dropbox/core/v2/files/LookupError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/LookupError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/LookupError$Tag; +} + +public final class com/dropbox/core/v2/files/MediaInfo { + public static final field PENDING Lcom/dropbox/core/v2/files/MediaInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getMetadataValue ()Lcom/dropbox/core/v2/files/MediaMetadata; + public fun hashCode ()I + public fun isMetadata ()Z + public fun isPending ()Z + public static fun metadata (Lcom/dropbox/core/v2/files/MediaMetadata;)Lcom/dropbox/core/v2/files/MediaInfo; + public fun tag ()Lcom/dropbox/core/v2/files/MediaInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/MediaInfo$Tag : java/lang/Enum { + public static final field METADATA Lcom/dropbox/core/v2/files/MediaInfo$Tag; + public static final field PENDING Lcom/dropbox/core/v2/files/MediaInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/MediaInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/MediaInfo$Tag; +} + +public class com/dropbox/core/v2/files/MediaMetadata { + protected final field dimensions Lcom/dropbox/core/v2/files/Dimensions; + protected final field location Lcom/dropbox/core/v2/files/GpsCoordinates; + protected final field timeTaken Ljava/util/Date; + public fun ()V + public fun (Lcom/dropbox/core/v2/files/Dimensions;Lcom/dropbox/core/v2/files/GpsCoordinates;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDimensions ()Lcom/dropbox/core/v2/files/Dimensions; + public fun getLocation ()Lcom/dropbox/core/v2/files/GpsCoordinates; + public fun getTimeTaken ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/MediaMetadata$Builder { + protected field dimensions Lcom/dropbox/core/v2/files/Dimensions; + protected field location Lcom/dropbox/core/v2/files/GpsCoordinates; + protected field timeTaken Ljava/util/Date; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/files/MediaMetadata; + public fun withDimensions (Lcom/dropbox/core/v2/files/Dimensions;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withLocation (Lcom/dropbox/core/v2/files/GpsCoordinates;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withTimeTaken (Ljava/util/Date;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; +} + +public class com/dropbox/core/v2/files/Metadata { + protected final field name Ljava/lang/String; + protected final field parentSharedFolderId Ljava/lang/String; + protected final field pathDisplay Ljava/lang/String; + protected final field pathLower Ljava/lang/String; + protected final field previewUrl Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getPathDisplay ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getPreviewUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/Metadata$Builder { + protected final field name Ljava/lang/String; + protected field parentSharedFolderId Ljava/lang/String; + protected field pathDisplay Ljava/lang/String; + protected field pathLower Ljava/lang/String; + protected field previewUrl Ljava/lang/String; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/files/Metadata; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; + public fun withPreviewUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/files/Metadata$Builder; +} + +public final class com/dropbox/core/v2/files/MetadataV2 { + public static final field OTHER Lcom/dropbox/core/v2/files/MetadataV2; + public fun equals (Ljava/lang/Object;)Z + public fun getMetadataValue ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun isMetadata ()Z + public fun isOther ()Z + public static fun metadata (Lcom/dropbox/core/v2/files/Metadata;)Lcom/dropbox/core/v2/files/MetadataV2; + public fun tag ()Lcom/dropbox/core/v2/files/MetadataV2$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/MetadataV2$Tag : java/lang/Enum { + public static final field METADATA Lcom/dropbox/core/v2/files/MetadataV2$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/MetadataV2$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/MetadataV2$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/MetadataV2$Tag; +} + +public class com/dropbox/core/v2/files/MinimalFileLinkMetadata { + protected final field id Ljava/lang/String; + protected final field path Ljava/lang/String; + protected final field rev Ljava/lang/String; + protected final field url Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getPath ()Ljava/lang/String; + public fun getRev ()Ljava/lang/String; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/MinimalFileLinkMetadata$Builder { + protected field id Ljava/lang/String; + protected field path Ljava/lang/String; + protected final field rev Ljava/lang/String; + protected final field url Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata; + public fun withId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata$Builder; + public fun withPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata$Builder; +} + +public class com/dropbox/core/v2/files/MoveBatchBuilder { + public fun start ()Lcom/dropbox/core/v2/files/RelocationBatchLaunch; + public fun withAllowOwnershipTransfer (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBatchBuilder; + public fun withAllowSharedFolder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBatchBuilder; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBatchBuilder; +} + +public class com/dropbox/core/v2/files/MoveBatchV2Builder { + public fun start ()Lcom/dropbox/core/v2/files/RelocationBatchV2Launch; + public fun withAllowOwnershipTransfer (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBatchV2Builder; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBatchV2Builder; +} + +public class com/dropbox/core/v2/files/MoveBuilder { + public fun start ()Lcom/dropbox/core/v2/files/Metadata; + public fun withAllowOwnershipTransfer (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBuilder; + public fun withAllowSharedFolder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBuilder; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveBuilder; +} + +public final class com/dropbox/core/v2/files/MoveIntoFamilyError : java/lang/Enum { + public static final field IS_SHARED_FOLDER Lcom/dropbox/core/v2/files/MoveIntoFamilyError; + public static final field OTHER Lcom/dropbox/core/v2/files/MoveIntoFamilyError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/MoveIntoFamilyError; + public static fun values ()[Lcom/dropbox/core/v2/files/MoveIntoFamilyError; +} + +public final class com/dropbox/core/v2/files/MoveIntoVaultError : java/lang/Enum { + public static final field IS_SHARED_FOLDER Lcom/dropbox/core/v2/files/MoveIntoVaultError; + public static final field OTHER Lcom/dropbox/core/v2/files/MoveIntoVaultError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/MoveIntoVaultError; + public static fun values ()[Lcom/dropbox/core/v2/files/MoveIntoVaultError; +} + +public class com/dropbox/core/v2/files/MoveV2Builder { + public fun start ()Lcom/dropbox/core/v2/files/RelocationResult; + public fun withAllowOwnershipTransfer (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveV2Builder; + public fun withAllowSharedFolder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveV2Builder; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/MoveV2Builder; +} + +public final class com/dropbox/core/v2/files/PaperCreateError : java/lang/Enum { + public static final field CONTENT_MALFORMED Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field DOC_LENGTH_EXCEEDED Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field IMAGE_SIZE_EXCEEDED Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field INVALID_FILE_EXTENSION Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field INVALID_PATH Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field OTHER Lcom/dropbox/core/v2/files/PaperCreateError; + public static final field PAPER_DISABLED Lcom/dropbox/core/v2/files/PaperCreateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/PaperCreateError; + public static fun values ()[Lcom/dropbox/core/v2/files/PaperCreateError; +} + +public class com/dropbox/core/v2/files/PaperCreateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/PaperCreateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/PaperCreateError;)V +} + +public class com/dropbox/core/v2/files/PaperCreateResult { + protected final field fileId Ljava/lang/String; + protected final field paperRevision J + protected final field resultPath Ljava/lang/String; + protected final field url Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileId ()Ljava/lang/String; + public fun getPaperRevision ()J + public fun getResultPath ()Ljava/lang/String; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/PaperCreateUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/PaperCreateErrorException; +} + +public final class com/dropbox/core/v2/files/PaperDocUpdatePolicy : java/lang/Enum { + public static final field APPEND Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy; + public static final field OTHER Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy; + public static final field OVERWRITE Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy; + public static final field PREPEND Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy; + public static final field UPDATE Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy; + public static fun values ()[Lcom/dropbox/core/v2/files/PaperDocUpdatePolicy; +} + +public final class com/dropbox/core/v2/files/PaperUpdateError { + public static final field CONTENT_MALFORMED Lcom/dropbox/core/v2/files/PaperUpdateError; + public static final field DOC_ARCHIVED Lcom/dropbox/core/v2/files/PaperUpdateError; + public static final field DOC_DELETED Lcom/dropbox/core/v2/files/PaperUpdateError; + public static final field DOC_LENGTH_EXCEEDED Lcom/dropbox/core/v2/files/PaperUpdateError; + public static final field IMAGE_SIZE_EXCEEDED Lcom/dropbox/core/v2/files/PaperUpdateError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/files/PaperUpdateError; + public static final field OTHER Lcom/dropbox/core/v2/files/PaperUpdateError; + public static final field REVISION_MISMATCH Lcom/dropbox/core/v2/files/PaperUpdateError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isContentMalformed ()Z + public fun isDocArchived ()Z + public fun isDocDeleted ()Z + public fun isDocLengthExceeded ()Z + public fun isImageSizeExceeded ()Z + public fun isInsufficientPermissions ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isRevisionMismatch ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/PaperUpdateError; + public fun tag ()Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/PaperUpdateError$Tag : java/lang/Enum { + public static final field CONTENT_MALFORMED Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field DOC_ARCHIVED Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field DOC_DELETED Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field DOC_LENGTH_EXCEEDED Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field IMAGE_SIZE_EXCEEDED Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static final field REVISION_MISMATCH Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/PaperUpdateError$Tag; +} + +public class com/dropbox/core/v2/files/PaperUpdateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/PaperUpdateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/PaperUpdateError;)V +} + +public class com/dropbox/core/v2/files/PaperUpdateResult { + protected final field paperRevision J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getPaperRevision ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/PaperUpdateUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/PaperUpdateErrorException; +} + +public final class com/dropbox/core/v2/files/PathOrLink { + public static final field OTHER Lcom/dropbox/core/v2/files/PathOrLink; + public fun equals (Ljava/lang/Object;)Z + public fun getLinkValue ()Lcom/dropbox/core/v2/files/SharedLinkFileInfo; + public fun getPathValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isLink ()Z + public fun isOther ()Z + public fun isPath ()Z + public static fun link (Lcom/dropbox/core/v2/files/SharedLinkFileInfo;)Lcom/dropbox/core/v2/files/PathOrLink; + public static fun path (Ljava/lang/String;)Lcom/dropbox/core/v2/files/PathOrLink; + public fun tag ()Lcom/dropbox/core/v2/files/PathOrLink$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/PathOrLink$Tag : java/lang/Enum { + public static final field LINK Lcom/dropbox/core/v2/files/PathOrLink$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/PathOrLink$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/PathOrLink$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/PathOrLink$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/PathOrLink$Tag; +} + +public class com/dropbox/core/v2/files/PathToTags { + protected final field path Ljava/lang/String; + protected final field tags Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPath ()Ljava/lang/String; + public fun getTags ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/PhotoMetadata : com/dropbox/core/v2/files/MediaMetadata { + public fun ()V + public fun (Lcom/dropbox/core/v2/files/Dimensions;Lcom/dropbox/core/v2/files/GpsCoordinates;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDimensions ()Lcom/dropbox/core/v2/files/Dimensions; + public fun getLocation ()Lcom/dropbox/core/v2/files/GpsCoordinates; + public fun getTimeTaken ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/files/PhotoMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/PhotoMetadata$Builder : com/dropbox/core/v2/files/MediaMetadata$Builder { + protected fun ()V + public synthetic fun build ()Lcom/dropbox/core/v2/files/MediaMetadata; + public fun build ()Lcom/dropbox/core/v2/files/PhotoMetadata; + public synthetic fun withDimensions (Lcom/dropbox/core/v2/files/Dimensions;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withDimensions (Lcom/dropbox/core/v2/files/Dimensions;)Lcom/dropbox/core/v2/files/PhotoMetadata$Builder; + public synthetic fun withLocation (Lcom/dropbox/core/v2/files/GpsCoordinates;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withLocation (Lcom/dropbox/core/v2/files/GpsCoordinates;)Lcom/dropbox/core/v2/files/PhotoMetadata$Builder; + public synthetic fun withTimeTaken (Ljava/util/Date;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withTimeTaken (Ljava/util/Date;)Lcom/dropbox/core/v2/files/PhotoMetadata$Builder; +} + +public final class com/dropbox/core/v2/files/PreviewError { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/PreviewError; + public static final field UNSUPPORTED_CONTENT Lcom/dropbox/core/v2/files/PreviewError; + public static final field UNSUPPORTED_EXTENSION Lcom/dropbox/core/v2/files/PreviewError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isInProgress ()Z + public fun isPath ()Z + public fun isUnsupportedContent ()Z + public fun isUnsupportedExtension ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/PreviewError; + public fun tag ()Lcom/dropbox/core/v2/files/PreviewError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/PreviewError$Tag : java/lang/Enum { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/PreviewError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/PreviewError$Tag; + public static final field UNSUPPORTED_CONTENT Lcom/dropbox/core/v2/files/PreviewError$Tag; + public static final field UNSUPPORTED_EXTENSION Lcom/dropbox/core/v2/files/PreviewError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/PreviewError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/PreviewError$Tag; +} + +public class com/dropbox/core/v2/files/PreviewErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/PreviewError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/PreviewError;)V +} + +public class com/dropbox/core/v2/files/PreviewResult { + protected final field fileMetadata Lcom/dropbox/core/v2/files/FileMetadata; + protected final field linkMetadata Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata; + public fun ()V + public fun (Lcom/dropbox/core/v2/files/FileMetadata;Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileMetadata ()Lcom/dropbox/core/v2/files/FileMetadata; + public fun getLinkMetadata ()Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/files/PreviewResult$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/PreviewResult$Builder { + protected field fileMetadata Lcom/dropbox/core/v2/files/FileMetadata; + protected field linkMetadata Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/files/PreviewResult; + public fun withFileMetadata (Lcom/dropbox/core/v2/files/FileMetadata;)Lcom/dropbox/core/v2/files/PreviewResult$Builder; + public fun withLinkMetadata (Lcom/dropbox/core/v2/files/MinimalFileLinkMetadata;)Lcom/dropbox/core/v2/files/PreviewResult$Builder; +} + +public final class com/dropbox/core/v2/files/RelocationBatchError { + public static final field CANT_COPY_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field CANT_MOVE_FOLDER_INTO_ITSELF Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field CANT_MOVE_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field CANT_NEST_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field CANT_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationBatchError; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchError; + public static fun cantMoveIntoFamily (Lcom/dropbox/core/v2/files/MoveIntoFamilyError;)Lcom/dropbox/core/v2/files/RelocationBatchError; + public static fun cantMoveIntoVault (Lcom/dropbox/core/v2/files/MoveIntoVaultError;)Lcom/dropbox/core/v2/files/RelocationBatchError; + public fun equals (Ljava/lang/Object;)Z + public static fun fromLookup (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/RelocationBatchError; + public static fun fromWrite (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/RelocationBatchError; + public fun getCantMoveIntoFamilyValue ()Lcom/dropbox/core/v2/files/MoveIntoFamilyError; + public fun getCantMoveIntoVaultValue ()Lcom/dropbox/core/v2/files/MoveIntoVaultError; + public fun getFromLookupValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun getFromWriteValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun getToValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isCantCopySharedFolder ()Z + public fun isCantMoveFolderIntoItself ()Z + public fun isCantMoveIntoFamily ()Z + public fun isCantMoveIntoVault ()Z + public fun isCantMoveSharedFolder ()Z + public fun isCantNestSharedFolder ()Z + public fun isCantTransferOwnership ()Z + public fun isDuplicatedOrNestedPaths ()Z + public fun isFromLookup ()Z + public fun isFromWrite ()Z + public fun isInsufficientQuota ()Z + public fun isInternalError ()Z + public fun isOther ()Z + public fun isTo ()Z + public fun isTooManyFiles ()Z + public fun isTooManyWriteOperations ()Z + public fun tag ()Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static fun to (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/RelocationBatchError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchError$Tag : java/lang/Enum { + public static final field CANT_COPY_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field CANT_MOVE_FOLDER_INTO_ITSELF Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field CANT_MOVE_INTO_FAMILY Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field CANT_MOVE_INTO_VAULT Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field CANT_MOVE_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field CANT_NEST_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field CANT_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field FROM_LOOKUP Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field FROM_WRITE Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field TO Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationBatchError$Tag; +} + +public final class com/dropbox/core/v2/files/RelocationBatchErrorEntry { + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry; + public fun equals (Ljava/lang/Object;)Z + public fun getRelocationErrorValue ()Lcom/dropbox/core/v2/files/RelocationError; + public fun hashCode ()I + public fun isInternalError ()Z + public fun isOther ()Z + public fun isRelocationError ()Z + public fun isTooManyWriteOperations ()Z + public static fun relocationError (Lcom/dropbox/core/v2/files/RelocationError;)Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry; + public fun tag ()Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag : java/lang/Enum { + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag; + public static final field RELOCATION_ERROR Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry$Tag; +} + +public final class com/dropbox/core/v2/files/RelocationBatchJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/RelocationBatchJobStatus; + public static fun complete (Lcom/dropbox/core/v2/files/RelocationBatchResult;)Lcom/dropbox/core/v2/files/RelocationBatchJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/files/RelocationBatchError;)Lcom/dropbox/core/v2/files/RelocationBatchJobStatus; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/RelocationBatchResult; + public fun getFailedValue ()Lcom/dropbox/core/v2/files/RelocationBatchError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/files/RelocationBatchJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/files/RelocationBatchJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/files/RelocationBatchJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/RelocationBatchJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationBatchJobStatus$Tag; +} + +public final class com/dropbox/core/v2/files/RelocationBatchLaunch { + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchLaunch; + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchLaunch; + public static fun complete (Lcom/dropbox/core/v2/files/RelocationBatchResult;)Lcom/dropbox/core/v2/files/RelocationBatchLaunch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/RelocationBatchResult; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/files/RelocationBatchLaunch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchLaunch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/files/RelocationBatchLaunch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/files/RelocationBatchLaunch$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchLaunch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchLaunch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationBatchLaunch$Tag; +} + +public class com/dropbox/core/v2/files/RelocationBatchResult : com/dropbox/core/v2/files/FileOpsResult { + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/RelocationBatchResultData { + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/Metadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchResultEntry { + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchResultEntry; + public fun equals (Ljava/lang/Object;)Z + public static fun failure (Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry;)Lcom/dropbox/core/v2/files/RelocationBatchResultEntry; + public fun getFailureValue ()Lcom/dropbox/core/v2/files/RelocationBatchErrorEntry; + public fun getSuccessValue ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun isFailure ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/files/Metadata;)Lcom/dropbox/core/v2/files/RelocationBatchResultEntry; + public fun tag ()Lcom/dropbox/core/v2/files/RelocationBatchResultEntry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchResultEntry$Tag : java/lang/Enum { + public static final field FAILURE Lcom/dropbox/core/v2/files/RelocationBatchResultEntry$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchResultEntry$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/files/RelocationBatchResultEntry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchResultEntry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationBatchResultEntry$Tag; +} + +public final class com/dropbox/core/v2/files/RelocationBatchV2JobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus; + public static fun complete (Lcom/dropbox/core/v2/files/RelocationBatchV2Result;)Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus; + public fun equals (Ljava/lang/Object;)Z + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/RelocationBatchV2Result; + public fun hashCode ()I + public fun isComplete ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchV2JobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationBatchV2JobStatus$Tag; +} + +public final class com/dropbox/core/v2/files/RelocationBatchV2Launch { + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchV2Launch; + public static fun complete (Lcom/dropbox/core/v2/files/RelocationBatchV2Result;)Lcom/dropbox/core/v2/files/RelocationBatchV2Launch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/RelocationBatchV2Result; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun tag ()Lcom/dropbox/core/v2/files/RelocationBatchV2Launch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationBatchV2Launch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/files/RelocationBatchV2Launch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/files/RelocationBatchV2Launch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationBatchV2Launch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationBatchV2Launch$Tag; +} + +public class com/dropbox/core/v2/files/RelocationBatchV2Result : com/dropbox/core/v2/files/FileOpsResult { + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationError { + public static final field CANT_COPY_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationError; + public static final field CANT_MOVE_FOLDER_INTO_ITSELF Lcom/dropbox/core/v2/files/RelocationError; + public static final field CANT_MOVE_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationError; + public static final field CANT_NEST_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationError; + public static final field CANT_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/files/RelocationError; + public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationError; + public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError; + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationError; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationError; + public static fun cantMoveIntoFamily (Lcom/dropbox/core/v2/files/MoveIntoFamilyError;)Lcom/dropbox/core/v2/files/RelocationError; + public static fun cantMoveIntoVault (Lcom/dropbox/core/v2/files/MoveIntoVaultError;)Lcom/dropbox/core/v2/files/RelocationError; + public fun equals (Ljava/lang/Object;)Z + public static fun fromLookup (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/RelocationError; + public static fun fromWrite (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/RelocationError; + public fun getCantMoveIntoFamilyValue ()Lcom/dropbox/core/v2/files/MoveIntoFamilyError; + public fun getCantMoveIntoVaultValue ()Lcom/dropbox/core/v2/files/MoveIntoVaultError; + public fun getFromLookupValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun getFromWriteValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun getToValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isCantCopySharedFolder ()Z + public fun isCantMoveFolderIntoItself ()Z + public fun isCantMoveIntoFamily ()Z + public fun isCantMoveIntoVault ()Z + public fun isCantMoveSharedFolder ()Z + public fun isCantNestSharedFolder ()Z + public fun isCantTransferOwnership ()Z + public fun isDuplicatedOrNestedPaths ()Z + public fun isFromLookup ()Z + public fun isFromWrite ()Z + public fun isInsufficientQuota ()Z + public fun isInternalError ()Z + public fun isOther ()Z + public fun isTo ()Z + public fun isTooManyFiles ()Z + public fun tag ()Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static fun to (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/RelocationError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RelocationError$Tag : java/lang/Enum { + public static final field CANT_COPY_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field CANT_MOVE_FOLDER_INTO_ITSELF Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field CANT_MOVE_INTO_FAMILY Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field CANT_MOVE_INTO_VAULT Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field CANT_MOVE_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field CANT_NEST_SHARED_FOLDER Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field CANT_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field FROM_LOOKUP Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field FROM_WRITE Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field TO Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RelocationError$Tag; +} + +public class com/dropbox/core/v2/files/RelocationErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/RelocationError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/RelocationError;)V +} + +public class com/dropbox/core/v2/files/RelocationPath { + protected final field fromPath Ljava/lang/String; + protected final field toPath Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFromPath ()Ljava/lang/String; + public fun getToPath ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/RelocationResult : com/dropbox/core/v2/files/FileOpsResult { + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/Metadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RemoveTagError { + public static final field OTHER Lcom/dropbox/core/v2/files/RemoveTagError; + public static final field TAG_NOT_PRESENT Lcom/dropbox/core/v2/files/RemoveTagError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isTagNotPresent ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/RemoveTagError; + public fun tag ()Lcom/dropbox/core/v2/files/RemoveTagError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RemoveTagError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/RemoveTagError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/RemoveTagError$Tag; + public static final field TAG_NOT_PRESENT Lcom/dropbox/core/v2/files/RemoveTagError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RemoveTagError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RemoveTagError$Tag; +} + +public class com/dropbox/core/v2/files/RemoveTagErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/RemoveTagError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/RemoveTagError;)V +} + +public final class com/dropbox/core/v2/files/RestoreError { + public static final field INVALID_REVISION Lcom/dropbox/core/v2/files/RestoreError; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/RestoreError; + public static final field OTHER Lcom/dropbox/core/v2/files/RestoreError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathLookupValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun getPathWriteValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isInProgress ()Z + public fun isInvalidRevision ()Z + public fun isOther ()Z + public fun isPathLookup ()Z + public fun isPathWrite ()Z + public static fun pathLookup (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/RestoreError; + public static fun pathWrite (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/RestoreError; + public fun tag ()Lcom/dropbox/core/v2/files/RestoreError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/RestoreError$Tag : java/lang/Enum { + public static final field INVALID_REVISION Lcom/dropbox/core/v2/files/RestoreError$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/RestoreError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/RestoreError$Tag; + public static final field PATH_LOOKUP Lcom/dropbox/core/v2/files/RestoreError$Tag; + public static final field PATH_WRITE Lcom/dropbox/core/v2/files/RestoreError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RestoreError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/RestoreError$Tag; +} + +public class com/dropbox/core/v2/files/RestoreErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/RestoreError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/RestoreError;)V +} + +public final class com/dropbox/core/v2/files/SaveCopyReferenceError { + public static final field INVALID_COPY_REFERENCE Lcom/dropbox/core/v2/files/SaveCopyReferenceError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/SaveCopyReferenceError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/files/SaveCopyReferenceError; + public static final field OTHER Lcom/dropbox/core/v2/files/SaveCopyReferenceError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/SaveCopyReferenceError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isInvalidCopyReference ()Z + public fun isNoPermission ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isTooManyFiles ()Z + public static fun path (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/SaveCopyReferenceError; + public fun tag ()Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SaveCopyReferenceError$Tag : java/lang/Enum { + public static final field INVALID_COPY_REFERENCE Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/SaveCopyReferenceError$Tag; +} + +public class com/dropbox/core/v2/files/SaveCopyReferenceErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/SaveCopyReferenceError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/SaveCopyReferenceError;)V +} + +public class com/dropbox/core/v2/files/SaveCopyReferenceResult { + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/Metadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SaveUrlError { + public static final field DOWNLOAD_FAILED Lcom/dropbox/core/v2/files/SaveUrlError; + public static final field INVALID_URL Lcom/dropbox/core/v2/files/SaveUrlError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/SaveUrlError; + public static final field OTHER Lcom/dropbox/core/v2/files/SaveUrlError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun hashCode ()I + public fun isDownloadFailed ()Z + public fun isInvalidUrl ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/SaveUrlError; + public fun tag ()Lcom/dropbox/core/v2/files/SaveUrlError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SaveUrlError$Tag : java/lang/Enum { + public static final field DOWNLOAD_FAILED Lcom/dropbox/core/v2/files/SaveUrlError$Tag; + public static final field INVALID_URL Lcom/dropbox/core/v2/files/SaveUrlError$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/SaveUrlError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/SaveUrlError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/SaveUrlError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveUrlError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/SaveUrlError$Tag; +} + +public class com/dropbox/core/v2/files/SaveUrlErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/SaveUrlError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/SaveUrlError;)V +} + +public final class com/dropbox/core/v2/files/SaveUrlJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/SaveUrlJobStatus; + public static fun complete (Lcom/dropbox/core/v2/files/FileMetadata;)Lcom/dropbox/core/v2/files/SaveUrlJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/files/SaveUrlError;)Lcom/dropbox/core/v2/files/SaveUrlJobStatus; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/FileMetadata; + public fun getFailedValue ()Lcom/dropbox/core/v2/files/SaveUrlError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/files/SaveUrlJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SaveUrlJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/files/SaveUrlJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/files/SaveUrlJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/SaveUrlJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveUrlJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/SaveUrlJobStatus$Tag; +} + +public final class com/dropbox/core/v2/files/SaveUrlResult { + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveUrlResult; + public static fun complete (Lcom/dropbox/core/v2/files/FileMetadata;)Lcom/dropbox/core/v2/files/SaveUrlResult; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/FileMetadata; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun tag ()Lcom/dropbox/core/v2/files/SaveUrlResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SaveUrlResult$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/files/SaveUrlResult$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/files/SaveUrlResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SaveUrlResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/SaveUrlResult$Tag; +} + +public class com/dropbox/core/v2/files/SearchBuilder { + public fun start ()Lcom/dropbox/core/v2/files/SearchResult; + public fun withMaxResults (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/SearchBuilder; + public fun withMode (Lcom/dropbox/core/v2/files/SearchMode;)Lcom/dropbox/core/v2/files/SearchBuilder; + public fun withStart (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/SearchBuilder; +} + +public final class com/dropbox/core/v2/files/SearchError { + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/SearchError; + public static final field OTHER Lcom/dropbox/core/v2/files/SearchError; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidArgumentValue ()Ljava/lang/String; + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public static fun invalidArgument ()Lcom/dropbox/core/v2/files/SearchError; + public static fun invalidArgument (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchError; + public fun isInternalError ()Z + public fun isInvalidArgument ()Z + public fun isOther ()Z + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/SearchError; + public fun tag ()Lcom/dropbox/core/v2/files/SearchError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SearchError$Tag : java/lang/Enum { + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/SearchError$Tag; + public static final field INVALID_ARGUMENT Lcom/dropbox/core/v2/files/SearchError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/SearchError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/SearchError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/SearchError$Tag; +} + +public class com/dropbox/core/v2/files/SearchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/SearchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/SearchError;)V +} + +public class com/dropbox/core/v2/files/SearchMatch { + protected final field matchType Lcom/dropbox/core/v2/files/SearchMatchType; + protected final field metadata Lcom/dropbox/core/v2/files/Metadata; + public fun (Lcom/dropbox/core/v2/files/SearchMatchType;Lcom/dropbox/core/v2/files/Metadata;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMatchType ()Lcom/dropbox/core/v2/files/SearchMatchType; + public fun getMetadata ()Lcom/dropbox/core/v2/files/Metadata; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SearchMatchFieldOptions { + protected final field includeHighlights Z + public fun ()V + public fun (Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getIncludeHighlights ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SearchMatchType : java/lang/Enum { + public static final field BOTH Lcom/dropbox/core/v2/files/SearchMatchType; + public static final field CONTENT Lcom/dropbox/core/v2/files/SearchMatchType; + public static final field FILENAME Lcom/dropbox/core/v2/files/SearchMatchType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchMatchType; + public static fun values ()[Lcom/dropbox/core/v2/files/SearchMatchType; +} + +public final class com/dropbox/core/v2/files/SearchMatchTypeV2 : java/lang/Enum { + public static final field FILENAME Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + public static final field FILENAME_AND_CONTENT Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + public static final field FILE_CONTENT Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + public static final field IMAGE_CONTENT Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + public static final field OTHER Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + public static fun values ()[Lcom/dropbox/core/v2/files/SearchMatchTypeV2; +} + +public class com/dropbox/core/v2/files/SearchMatchV2 { + protected final field highlightSpans Ljava/util/List; + protected final field matchType Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + protected final field metadata Lcom/dropbox/core/v2/files/MetadataV2; + public fun (Lcom/dropbox/core/v2/files/MetadataV2;)V + public fun (Lcom/dropbox/core/v2/files/MetadataV2;Lcom/dropbox/core/v2/files/SearchMatchTypeV2;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getHighlightSpans ()Ljava/util/List; + public fun getMatchType ()Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + public fun getMetadata ()Lcom/dropbox/core/v2/files/MetadataV2; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/files/MetadataV2;)Lcom/dropbox/core/v2/files/SearchMatchV2$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SearchMatchV2$Builder { + protected field highlightSpans Ljava/util/List; + protected field matchType Lcom/dropbox/core/v2/files/SearchMatchTypeV2; + protected final field metadata Lcom/dropbox/core/v2/files/MetadataV2; + protected fun (Lcom/dropbox/core/v2/files/MetadataV2;)V + public fun build ()Lcom/dropbox/core/v2/files/SearchMatchV2; + public fun withHighlightSpans (Ljava/util/List;)Lcom/dropbox/core/v2/files/SearchMatchV2$Builder; + public fun withMatchType (Lcom/dropbox/core/v2/files/SearchMatchTypeV2;)Lcom/dropbox/core/v2/files/SearchMatchV2$Builder; +} + +public final class com/dropbox/core/v2/files/SearchMode : java/lang/Enum { + public static final field DELETED_FILENAME Lcom/dropbox/core/v2/files/SearchMode; + public static final field FILENAME Lcom/dropbox/core/v2/files/SearchMode; + public static final field FILENAME_AND_CONTENT Lcom/dropbox/core/v2/files/SearchMode; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchMode; + public static fun values ()[Lcom/dropbox/core/v2/files/SearchMode; +} + +public class com/dropbox/core/v2/files/SearchOptions { + protected final field accountId Ljava/lang/String; + protected final field fileCategories Ljava/util/List; + protected final field fileExtensions Ljava/util/List; + protected final field fileStatus Lcom/dropbox/core/v2/files/FileStatus; + protected final field filenameOnly Z + protected final field maxResults J + protected final field orderBy Lcom/dropbox/core/v2/files/SearchOrderBy; + protected final field path Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;JLcom/dropbox/core/v2/files/SearchOrderBy;Lcom/dropbox/core/v2/files/FileStatus;ZLjava/util/List;Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getFileCategories ()Ljava/util/List; + public fun getFileExtensions ()Ljava/util/List; + public fun getFileStatus ()Lcom/dropbox/core/v2/files/FileStatus; + public fun getFilenameOnly ()Z + public fun getMaxResults ()J + public fun getOrderBy ()Lcom/dropbox/core/v2/files/SearchOrderBy; + public fun getPath ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SearchOptions$Builder { + protected field accountId Ljava/lang/String; + protected field fileCategories Ljava/util/List; + protected field fileExtensions Ljava/util/List; + protected field fileStatus Lcom/dropbox/core/v2/files/FileStatus; + protected field filenameOnly Z + protected field maxResults J + protected field orderBy Lcom/dropbox/core/v2/files/SearchOrderBy; + protected field path Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/files/SearchOptions; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun withFileCategories (Ljava/util/List;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun withFileExtensions (Ljava/util/List;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun withFileStatus (Lcom/dropbox/core/v2/files/FileStatus;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun withFilenameOnly (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun withMaxResults (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun withOrderBy (Lcom/dropbox/core/v2/files/SearchOrderBy;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; + public fun withPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchOptions$Builder; +} + +public final class com/dropbox/core/v2/files/SearchOrderBy : java/lang/Enum { + public static final field LAST_MODIFIED_TIME Lcom/dropbox/core/v2/files/SearchOrderBy; + public static final field OTHER Lcom/dropbox/core/v2/files/SearchOrderBy; + public static final field RELEVANCE Lcom/dropbox/core/v2/files/SearchOrderBy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SearchOrderBy; + public static fun values ()[Lcom/dropbox/core/v2/files/SearchOrderBy; +} + +public class com/dropbox/core/v2/files/SearchResult { + protected final field matches Ljava/util/List; + protected final field more Z + protected final field start J + public fun (Ljava/util/List;ZJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getMatches ()Ljava/util/List; + public fun getMore ()Z + public fun getStart ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SearchV2Builder { + public fun start ()Lcom/dropbox/core/v2/files/SearchV2Result; + public fun withIncludeHighlights (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/SearchV2Builder; + public fun withMatchFieldOptions (Lcom/dropbox/core/v2/files/SearchMatchFieldOptions;)Lcom/dropbox/core/v2/files/SearchV2Builder; + public fun withOptions (Lcom/dropbox/core/v2/files/SearchOptions;)Lcom/dropbox/core/v2/files/SearchV2Builder; +} + +public class com/dropbox/core/v2/files/SearchV2Result { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field matches Ljava/util/List; + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getMatches ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SharedLink { + protected final field password Ljava/lang/String; + protected final field url Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPassword ()Ljava/lang/String; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SharedLinkFileInfo { + protected final field password Ljava/lang/String; + protected final field path Ljava/lang/String; + protected final field url Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPassword ()Ljava/lang/String; + public fun getPath ()Ljava/lang/String; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SharedLinkFileInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SharedLinkFileInfo$Builder { + protected field password Ljava/lang/String; + protected field path Ljava/lang/String; + protected final field url Ljava/lang/String; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/files/SharedLinkFileInfo; + public fun withPassword (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SharedLinkFileInfo$Builder; + public fun withPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SharedLinkFileInfo$Builder; +} + +public class com/dropbox/core/v2/files/SharingInfo { + protected final field readOnly Z + public fun (Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getReadOnly ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SingleUserLock { + protected final field created Ljava/util/Date; + protected final field lockHolderAccountId Ljava/lang/String; + protected final field lockHolderTeamId Ljava/lang/String; + public fun (Ljava/util/Date;Ljava/lang/String;)V + public fun (Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCreated ()Ljava/util/Date; + public fun getLockHolderAccountId ()Ljava/lang/String; + public fun getLockHolderTeamId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SymlinkInfo { + protected final field target Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTarget ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/SyncSetting : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/files/SyncSetting; + public static final field NOT_SYNCED Lcom/dropbox/core/v2/files/SyncSetting; + public static final field NOT_SYNCED_INACTIVE Lcom/dropbox/core/v2/files/SyncSetting; + public static final field OTHER Lcom/dropbox/core/v2/files/SyncSetting; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SyncSetting; + public static fun values ()[Lcom/dropbox/core/v2/files/SyncSetting; +} + +public class com/dropbox/core/v2/files/SyncSetting$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/SyncSetting$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/files/SyncSetting; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/SyncSetting;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/files/SyncSettingArg : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/files/SyncSettingArg; + public static final field NOT_SYNCED Lcom/dropbox/core/v2/files/SyncSettingArg; + public static final field OTHER Lcom/dropbox/core/v2/files/SyncSettingArg; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SyncSettingArg; + public static fun values ()[Lcom/dropbox/core/v2/files/SyncSettingArg; +} + +public class com/dropbox/core/v2/files/SyncSettingArg$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/SyncSettingArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/files/SyncSettingArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/SyncSettingArg;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/files/SyncSettingsError { + public static final field OTHER Lcom/dropbox/core/v2/files/SyncSettingsError; + public static final field UNSUPPORTED_COMBINATION Lcom/dropbox/core/v2/files/SyncSettingsError; + public static final field UNSUPPORTED_CONFIGURATION Lcom/dropbox/core/v2/files/SyncSettingsError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isUnsupportedCombination ()Z + public fun isUnsupportedConfiguration ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/SyncSettingsError; + public fun tag ()Lcom/dropbox/core/v2/files/SyncSettingsError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/SyncSettingsError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/files/SyncSettingsError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/files/SyncSettingsError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/files/SyncSettingsError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/files/SyncSettingsError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/SyncSettingsError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/SyncSettingsError$Tag; + public static final field UNSUPPORTED_COMBINATION Lcom/dropbox/core/v2/files/SyncSettingsError$Tag; + public static final field UNSUPPORTED_CONFIGURATION Lcom/dropbox/core/v2/files/SyncSettingsError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/SyncSettingsError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/SyncSettingsError$Tag; +} + +public final class com/dropbox/core/v2/files/TagObject { + public static final field OTHER Lcom/dropbox/core/v2/files/TagObject; + public fun equals (Ljava/lang/Object;)Z + public fun getUserGeneratedTagValue ()Lcom/dropbox/core/v2/files/UserGeneratedTag; + public fun hashCode ()I + public fun isOther ()Z + public fun isUserGeneratedTag ()Z + public fun tag ()Lcom/dropbox/core/v2/files/TagObject$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userGeneratedTag (Lcom/dropbox/core/v2/files/UserGeneratedTag;)Lcom/dropbox/core/v2/files/TagObject; +} + +public final class com/dropbox/core/v2/files/TagObject$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/files/TagObject$Tag; + public static final field USER_GENERATED_TAG Lcom/dropbox/core/v2/files/TagObject$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/TagObject$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/TagObject$Tag; +} + +public class com/dropbox/core/v2/files/ThumbnailArg { + protected final field format Lcom/dropbox/core/v2/files/ThumbnailFormat; + protected final field mode Lcom/dropbox/core/v2/files/ThumbnailMode; + protected final field path Ljava/lang/String; + protected final field size Lcom/dropbox/core/v2/files/ThumbnailSize; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/files/ThumbnailFormat;Lcom/dropbox/core/v2/files/ThumbnailSize;Lcom/dropbox/core/v2/files/ThumbnailMode;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFormat ()Lcom/dropbox/core/v2/files/ThumbnailFormat; + public fun getMode ()Lcom/dropbox/core/v2/files/ThumbnailMode; + public fun getPath ()Ljava/lang/String; + public fun getSize ()Lcom/dropbox/core/v2/files/ThumbnailSize; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/ThumbnailArg$Builder { + protected field format Lcom/dropbox/core/v2/files/ThumbnailFormat; + protected field mode Lcom/dropbox/core/v2/files/ThumbnailMode; + protected final field path Ljava/lang/String; + protected field size Lcom/dropbox/core/v2/files/ThumbnailSize; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/files/ThumbnailArg; + public fun withFormat (Lcom/dropbox/core/v2/files/ThumbnailFormat;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder; + public fun withMode (Lcom/dropbox/core/v2/files/ThumbnailMode;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder; + public fun withSize (Lcom/dropbox/core/v2/files/ThumbnailSize;)Lcom/dropbox/core/v2/files/ThumbnailArg$Builder; +} + +public final class com/dropbox/core/v2/files/ThumbnailError { + public static final field CONVERSION_ERROR Lcom/dropbox/core/v2/files/ThumbnailError; + public static final field UNSUPPORTED_EXTENSION Lcom/dropbox/core/v2/files/ThumbnailError; + public static final field UNSUPPORTED_IMAGE Lcom/dropbox/core/v2/files/ThumbnailError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isConversionError ()Z + public fun isPath ()Z + public fun isUnsupportedExtension ()Z + public fun isUnsupportedImage ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/ThumbnailError; + public fun tag ()Lcom/dropbox/core/v2/files/ThumbnailError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/ThumbnailError$Tag : java/lang/Enum { + public static final field CONVERSION_ERROR Lcom/dropbox/core/v2/files/ThumbnailError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/ThumbnailError$Tag; + public static final field UNSUPPORTED_EXTENSION Lcom/dropbox/core/v2/files/ThumbnailError$Tag; + public static final field UNSUPPORTED_IMAGE Lcom/dropbox/core/v2/files/ThumbnailError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/ThumbnailError$Tag; +} + +public class com/dropbox/core/v2/files/ThumbnailErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/ThumbnailError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/ThumbnailError;)V +} + +public final class com/dropbox/core/v2/files/ThumbnailFormat : java/lang/Enum { + public static final field JPEG Lcom/dropbox/core/v2/files/ThumbnailFormat; + public static final field PNG Lcom/dropbox/core/v2/files/ThumbnailFormat; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailFormat; + public static fun values ()[Lcom/dropbox/core/v2/files/ThumbnailFormat; +} + +public final class com/dropbox/core/v2/files/ThumbnailMode : java/lang/Enum { + public static final field BESTFIT Lcom/dropbox/core/v2/files/ThumbnailMode; + public static final field FITONE_BESTFIT Lcom/dropbox/core/v2/files/ThumbnailMode; + public static final field STRICT Lcom/dropbox/core/v2/files/ThumbnailMode; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailMode; + public static fun values ()[Lcom/dropbox/core/v2/files/ThumbnailMode; +} + +public final class com/dropbox/core/v2/files/ThumbnailSize : java/lang/Enum { + public static final field W1024H768 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W128H128 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W2048H1536 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W256H256 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W32H32 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W480H320 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W640H480 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W64H64 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static final field W960H640 Lcom/dropbox/core/v2/files/ThumbnailSize; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailSize; + public static fun values ()[Lcom/dropbox/core/v2/files/ThumbnailSize; +} + +public final class com/dropbox/core/v2/files/ThumbnailV2Error { + public static final field ACCESS_DENIED Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public static final field CONVERSION_ERROR Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public static final field OTHER Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public static final field UNSUPPORTED_EXTENSION Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public static final field UNSUPPORTED_IMAGE Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isAccessDenied ()Z + public fun isConversionError ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isUnsupportedExtension ()Z + public fun isUnsupportedImage ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public fun tag ()Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/ThumbnailV2Error$Tag : java/lang/Enum { + public static final field ACCESS_DENIED Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static final field CONVERSION_ERROR Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static final field UNSUPPORTED_EXTENSION Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static final field UNSUPPORTED_IMAGE Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/ThumbnailV2Error$Tag; +} + +public class com/dropbox/core/v2/files/ThumbnailV2ErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/ThumbnailV2Error; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/ThumbnailV2Error;)V +} + +public class com/dropbox/core/v2/files/UnlockFileArg { + protected final field path Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPath ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/UploadBuilder : com/dropbox/core/v2/DbxUploadStyleBuilder { + public synthetic fun start ()Lcom/dropbox/core/DbxUploader; + public fun start ()Lcom/dropbox/core/v2/files/UploadUploader; + public fun withAutorename (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/UploadBuilder; + public fun withClientModified (Ljava/util/Date;)Lcom/dropbox/core/v2/files/UploadBuilder; + public fun withContentHash (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadBuilder; + public fun withMode (Lcom/dropbox/core/v2/files/WriteMode;)Lcom/dropbox/core/v2/files/UploadBuilder; + public fun withMute (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/UploadBuilder; + public fun withPropertyGroups (Ljava/util/List;)Lcom/dropbox/core/v2/files/UploadBuilder; + public fun withStrictConflict (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/UploadBuilder; +} + +public final class com/dropbox/core/v2/files/UploadError { + public static final field CONTENT_HASH_MISMATCH Lcom/dropbox/core/v2/files/UploadError; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadError; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/UploadWriteFailed; + public fun getPropertiesErrorValue ()Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public fun hashCode ()I + public fun isContentHashMismatch ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isPayloadTooLarge ()Z + public fun isPropertiesError ()Z + public static fun path (Lcom/dropbox/core/v2/files/UploadWriteFailed;)Lcom/dropbox/core/v2/files/UploadError; + public static fun propertiesError (Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError;)Lcom/dropbox/core/v2/files/UploadError; + public fun tag ()Lcom/dropbox/core/v2/files/UploadError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadError$Tag : java/lang/Enum { + public static final field CONTENT_HASH_MISMATCH Lcom/dropbox/core/v2/files/UploadError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/UploadError$Tag; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadError$Tag; + public static final field PROPERTIES_ERROR Lcom/dropbox/core/v2/files/UploadError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadError$Tag; +} + +public class com/dropbox/core/v2/files/UploadErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/UploadError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/UploadError;)V +} + +public final class com/dropbox/core/v2/files/UploadSessionAppendError { + public static final field CLOSED Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field CONCURRENT_SESSION_INVALID_DATA_SIZE Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field CONCURRENT_SESSION_INVALID_OFFSET Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field CONTENT_HASH_MISMATCH Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field NOT_CLOSED Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public static final field TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public fun equals (Ljava/lang/Object;)Z + public fun getIncorrectOffsetValue ()Lcom/dropbox/core/v2/files/UploadSessionOffsetError; + public fun hashCode ()I + public static fun incorrectOffset (Lcom/dropbox/core/v2/files/UploadSessionOffsetError;)Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public fun isClosed ()Z + public fun isConcurrentSessionInvalidDataSize ()Z + public fun isConcurrentSessionInvalidOffset ()Z + public fun isContentHashMismatch ()Z + public fun isIncorrectOffset ()Z + public fun isNotClosed ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isPayloadTooLarge ()Z + public fun isTooLarge ()Z + public fun tag ()Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionAppendError$Tag : java/lang/Enum { + public static final field CLOSED Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field CONCURRENT_SESSION_INVALID_DATA_SIZE Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field CONCURRENT_SESSION_INVALID_OFFSET Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field CONTENT_HASH_MISMATCH Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field INCORRECT_OFFSET Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field NOT_CLOSED Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static final field TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionAppendError$Tag; +} + +public class com/dropbox/core/v2/files/UploadSessionAppendErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/UploadSessionAppendError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/UploadSessionAppendError;)V +} + +public class com/dropbox/core/v2/files/UploadSessionAppendUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/UploadSessionAppendErrorException; +} + +public class com/dropbox/core/v2/files/UploadSessionAppendV2Builder : com/dropbox/core/v2/DbxUploadStyleBuilder { + public synthetic fun start ()Lcom/dropbox/core/DbxUploader; + public fun start ()Lcom/dropbox/core/v2/files/UploadSessionAppendV2Uploader; + public fun withClose (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/UploadSessionAppendV2Builder; + public fun withContentHash (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionAppendV2Builder; +} + +public class com/dropbox/core/v2/files/UploadSessionAppendV2Uploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/UploadSessionAppendErrorException; +} + +public class com/dropbox/core/v2/files/UploadSessionCursor { + protected final field offset J + protected final field sessionId Ljava/lang/String; + public fun (Ljava/lang/String;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getOffset ()J + public fun getSessionId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/UploadSessionFinishArg { + protected final field commit Lcom/dropbox/core/v2/files/CommitInfo; + protected final field contentHash Ljava/lang/String; + protected final field cursor Lcom/dropbox/core/v2/files/UploadSessionCursor; + public fun (Lcom/dropbox/core/v2/files/UploadSessionCursor;Lcom/dropbox/core/v2/files/CommitInfo;)V + public fun (Lcom/dropbox/core/v2/files/UploadSessionCursor;Lcom/dropbox/core/v2/files/CommitInfo;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommit ()Lcom/dropbox/core/v2/files/CommitInfo; + public fun getContentHash ()Ljava/lang/String; + public fun getCursor ()Lcom/dropbox/core/v2/files/UploadSessionCursor; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus; + public static fun complete (Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResult;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus; + public fun equals (Ljava/lang/Object;)Z + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResult; + public fun hashCode ()I + public fun isComplete ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus$Tag; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishBatchLaunch { + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch; + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch; + public static fun complete (Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResult;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResult; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishBatchLaunch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionFinishBatchLaunch$Tag; +} + +public class com/dropbox/core/v2/files/UploadSessionFinishBatchResult { + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry { + public fun equals (Ljava/lang/Object;)Z + public static fun failure (Lcom/dropbox/core/v2/files/UploadSessionFinishError;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry; + public fun getFailureValue ()Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public fun getSuccessValue ()Lcom/dropbox/core/v2/files/FileMetadata; + public fun hashCode ()I + public fun isFailure ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/files/FileMetadata;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry; + public fun tag ()Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry$Tag : java/lang/Enum { + public static final field FAILURE Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry$Tag; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishError { + public static final field CONCURRENT_SESSION_DATA_NOT_ALLOWED Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static final field CONCURRENT_SESSION_MISSING_DATA Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static final field CONCURRENT_SESSION_NOT_CLOSED Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static final field CONTENT_HASH_MISMATCH Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static final field TOO_MANY_SHARED_FOLDER_TARGETS Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public fun equals (Ljava/lang/Object;)Z + public fun getLookupFailedValue ()Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public fun getPathValue ()Lcom/dropbox/core/v2/files/WriteError; + public fun getPropertiesErrorValue ()Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError; + public fun hashCode ()I + public fun isConcurrentSessionDataNotAllowed ()Z + public fun isConcurrentSessionMissingData ()Z + public fun isConcurrentSessionNotClosed ()Z + public fun isContentHashMismatch ()Z + public fun isLookupFailed ()Z + public fun isOther ()Z + public fun isPath ()Z + public fun isPayloadTooLarge ()Z + public fun isPropertiesError ()Z + public fun isTooManySharedFolderTargets ()Z + public fun isTooManyWriteOperations ()Z + public static fun lookupFailed (Lcom/dropbox/core/v2/files/UploadSessionLookupError;)Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static fun path (Lcom/dropbox/core/v2/files/WriteError;)Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public static fun propertiesError (Lcom/dropbox/core/v2/fileproperties/InvalidPropertyGroupError;)Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public fun tag ()Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionFinishError$Tag : java/lang/Enum { + public static final field CONCURRENT_SESSION_DATA_NOT_ALLOWED Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field CONCURRENT_SESSION_MISSING_DATA Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field CONCURRENT_SESSION_NOT_CLOSED Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field CONTENT_HASH_MISMATCH Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field LOOKUP_FAILED Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field PATH Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field PROPERTIES_ERROR Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field TOO_MANY_SHARED_FOLDER_TARGETS Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionFinishError$Tag; +} + +public class com/dropbox/core/v2/files/UploadSessionFinishErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/UploadSessionFinishError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/UploadSessionFinishError;)V +} + +public class com/dropbox/core/v2/files/UploadSessionFinishUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/UploadSessionFinishErrorException; +} + +public final class com/dropbox/core/v2/files/UploadSessionLookupError { + public static final field CLOSED Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public static final field CONCURRENT_SESSION_INVALID_DATA_SIZE Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public static final field CONCURRENT_SESSION_INVALID_OFFSET Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public static final field NOT_CLOSED Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public static final field TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public fun equals (Ljava/lang/Object;)Z + public fun getIncorrectOffsetValue ()Lcom/dropbox/core/v2/files/UploadSessionOffsetError; + public fun hashCode ()I + public static fun incorrectOffset (Lcom/dropbox/core/v2/files/UploadSessionOffsetError;)Lcom/dropbox/core/v2/files/UploadSessionLookupError; + public fun isClosed ()Z + public fun isConcurrentSessionInvalidDataSize ()Z + public fun isConcurrentSessionInvalidOffset ()Z + public fun isIncorrectOffset ()Z + public fun isNotClosed ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isPayloadTooLarge ()Z + public fun isTooLarge ()Z + public fun tag ()Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/UploadSessionLookupError$Tag : java/lang/Enum { + public static final field CLOSED Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field CONCURRENT_SESSION_INVALID_DATA_SIZE Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field CONCURRENT_SESSION_INVALID_OFFSET Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field INCORRECT_OFFSET Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field NOT_CLOSED Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static final field TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionLookupError$Tag; +} + +public class com/dropbox/core/v2/files/UploadSessionOffsetError { + protected final field correctOffset J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getCorrectOffset ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/UploadSessionStartBatchResult { + protected final field sessionIds Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSessionIds ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/UploadSessionStartBuilder : com/dropbox/core/v2/DbxUploadStyleBuilder { + public synthetic fun start ()Lcom/dropbox/core/DbxUploader; + public fun start ()Lcom/dropbox/core/v2/files/UploadSessionStartUploader; + public fun withClose (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/files/UploadSessionStartBuilder; + public fun withContentHash (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionStartBuilder; + public fun withSessionType (Lcom/dropbox/core/v2/files/UploadSessionType;)Lcom/dropbox/core/v2/files/UploadSessionStartBuilder; +} + +public final class com/dropbox/core/v2/files/UploadSessionStartError : java/lang/Enum { + public static final field CONCURRENT_SESSION_CLOSE_NOT_ALLOWED Lcom/dropbox/core/v2/files/UploadSessionStartError; + public static final field CONCURRENT_SESSION_DATA_NOT_ALLOWED Lcom/dropbox/core/v2/files/UploadSessionStartError; + public static final field CONTENT_HASH_MISMATCH Lcom/dropbox/core/v2/files/UploadSessionStartError; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionStartError; + public static final field PAYLOAD_TOO_LARGE Lcom/dropbox/core/v2/files/UploadSessionStartError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionStartError; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionStartError; +} + +public class com/dropbox/core/v2/files/UploadSessionStartErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/files/UploadSessionStartError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/files/UploadSessionStartError;)V +} + +public class com/dropbox/core/v2/files/UploadSessionStartResult { + protected final field sessionId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSessionId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/UploadSessionStartUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/UploadSessionStartErrorException; +} + +public final class com/dropbox/core/v2/files/UploadSessionType : java/lang/Enum { + public static final field CONCURRENT Lcom/dropbox/core/v2/files/UploadSessionType; + public static final field OTHER Lcom/dropbox/core/v2/files/UploadSessionType; + public static final field SEQUENTIAL Lcom/dropbox/core/v2/files/UploadSessionType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/UploadSessionType; + public static fun values ()[Lcom/dropbox/core/v2/files/UploadSessionType; +} + +public class com/dropbox/core/v2/files/UploadUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/files/UploadErrorException; +} + +public class com/dropbox/core/v2/files/UploadWriteFailed { + protected final field reason Lcom/dropbox/core/v2/files/WriteError; + protected final field uploadSessionId Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/files/WriteError;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getReason ()Lcom/dropbox/core/v2/files/WriteError; + public fun getUploadSessionId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/UserGeneratedTag { + protected final field tagText Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTagText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/VideoMetadata : com/dropbox/core/v2/files/MediaMetadata { + protected final field duration Ljava/lang/Long; + public fun ()V + public fun (Lcom/dropbox/core/v2/files/Dimensions;Lcom/dropbox/core/v2/files/GpsCoordinates;Ljava/util/Date;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDimensions ()Lcom/dropbox/core/v2/files/Dimensions; + public fun getDuration ()Ljava/lang/Long; + public fun getLocation ()Lcom/dropbox/core/v2/files/GpsCoordinates; + public fun getTimeTaken ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/files/VideoMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/files/VideoMetadata$Builder : com/dropbox/core/v2/files/MediaMetadata$Builder { + protected field duration Ljava/lang/Long; + protected fun ()V + public synthetic fun build ()Lcom/dropbox/core/v2/files/MediaMetadata; + public fun build ()Lcom/dropbox/core/v2/files/VideoMetadata; + public synthetic fun withDimensions (Lcom/dropbox/core/v2/files/Dimensions;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withDimensions (Lcom/dropbox/core/v2/files/Dimensions;)Lcom/dropbox/core/v2/files/VideoMetadata$Builder; + public fun withDuration (Ljava/lang/Long;)Lcom/dropbox/core/v2/files/VideoMetadata$Builder; + public synthetic fun withLocation (Lcom/dropbox/core/v2/files/GpsCoordinates;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withLocation (Lcom/dropbox/core/v2/files/GpsCoordinates;)Lcom/dropbox/core/v2/files/VideoMetadata$Builder; + public synthetic fun withTimeTaken (Ljava/util/Date;)Lcom/dropbox/core/v2/files/MediaMetadata$Builder; + public fun withTimeTaken (Ljava/util/Date;)Lcom/dropbox/core/v2/files/VideoMetadata$Builder; +} + +public final class com/dropbox/core/v2/files/WriteConflictError : java/lang/Enum { + public static final field FILE Lcom/dropbox/core/v2/files/WriteConflictError; + public static final field FILE_ANCESTOR Lcom/dropbox/core/v2/files/WriteConflictError; + public static final field FOLDER Lcom/dropbox/core/v2/files/WriteConflictError; + public static final field OTHER Lcom/dropbox/core/v2/files/WriteConflictError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteConflictError; + public static fun values ()[Lcom/dropbox/core/v2/files/WriteConflictError; +} + +public final class com/dropbox/core/v2/files/WriteError { + public static final field DISALLOWED_NAME Lcom/dropbox/core/v2/files/WriteError; + public static final field INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError; + public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/WriteError; + public static final field OPERATION_SUPPRESSED Lcom/dropbox/core/v2/files/WriteError; + public static final field OTHER Lcom/dropbox/core/v2/files/WriteError; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError; + public static fun conflict (Lcom/dropbox/core/v2/files/WriteConflictError;)Lcom/dropbox/core/v2/files/WriteError; + public fun equals (Ljava/lang/Object;)Z + public fun getConflictValue ()Lcom/dropbox/core/v2/files/WriteConflictError; + public fun getMalformedPathValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isConflict ()Z + public fun isDisallowedName ()Z + public fun isInsufficientSpace ()Z + public fun isMalformedPath ()Z + public fun isNoWritePermission ()Z + public fun isOperationSuppressed ()Z + public fun isOther ()Z + public fun isTeamFolder ()Z + public fun isTooManyWriteOperations ()Z + public static fun malformedPath ()Lcom/dropbox/core/v2/files/WriteError; + public static fun malformedPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError; + public fun tag ()Lcom/dropbox/core/v2/files/WriteError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/files/WriteError$Tag : java/lang/Enum { + public static final field CONFLICT Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field DISALLOWED_NAME Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field MALFORMED_PATH Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field OPERATION_SUPPRESSED Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError$Tag; + public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/WriteError$Tag; +} + +public final class com/dropbox/core/v2/files/WriteMode { + public static final field ADD Lcom/dropbox/core/v2/files/WriteMode; + public static final field OVERWRITE Lcom/dropbox/core/v2/files/WriteMode; + public fun equals (Ljava/lang/Object;)Z + public fun getUpdateValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isAdd ()Z + public fun isOverwrite ()Z + public fun isUpdate ()Z + public fun tag ()Lcom/dropbox/core/v2/files/WriteMode$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun update (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteMode; +} + +public final class com/dropbox/core/v2/files/WriteMode$Tag : java/lang/Enum { + public static final field ADD Lcom/dropbox/core/v2/files/WriteMode$Tag; + public static final field OVERWRITE Lcom/dropbox/core/v2/files/WriteMode$Tag; + public static final field UPDATE Lcom/dropbox/core/v2/files/WriteMode$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteMode$Tag; + public static fun values ()[Lcom/dropbox/core/v2/files/WriteMode$Tag; +} + +public class com/dropbox/core/v2/openid/DbxUserOpenidRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun userinfo ()Lcom/dropbox/core/v2/openid/UserInfoResult; +} + +public final class com/dropbox/core/v2/openid/OpenIdError : java/lang/Enum { + public static final field INCORRECT_OPENID_SCOPES Lcom/dropbox/core/v2/openid/OpenIdError; + public static final field OTHER Lcom/dropbox/core/v2/openid/OpenIdError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/openid/OpenIdError; + public static fun values ()[Lcom/dropbox/core/v2/openid/OpenIdError; +} + +public final class com/dropbox/core/v2/openid/UserInfoError { + public static final field OTHER Lcom/dropbox/core/v2/openid/UserInfoError; + public fun equals (Ljava/lang/Object;)Z + public fun getOpenidErrorValue ()Lcom/dropbox/core/v2/openid/OpenIdError; + public fun hashCode ()I + public fun isOpenidError ()Z + public fun isOther ()Z + public static fun openidError (Lcom/dropbox/core/v2/openid/OpenIdError;)Lcom/dropbox/core/v2/openid/UserInfoError; + public fun tag ()Lcom/dropbox/core/v2/openid/UserInfoError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/openid/UserInfoError$Tag : java/lang/Enum { + public static final field OPENID_ERROR Lcom/dropbox/core/v2/openid/UserInfoError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/openid/UserInfoError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/openid/UserInfoError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/openid/UserInfoError$Tag; +} + +public class com/dropbox/core/v2/openid/UserInfoErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/openid/UserInfoError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/openid/UserInfoError;)V +} + +public class com/dropbox/core/v2/openid/UserInfoResult { + protected final field email Ljava/lang/String; + protected final field emailVerified Ljava/lang/Boolean; + protected final field familyName Ljava/lang/String; + protected final field givenName Ljava/lang/String; + protected final field iss Ljava/lang/String; + protected final field sub Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEmail ()Ljava/lang/String; + public fun getEmailVerified ()Ljava/lang/Boolean; + public fun getFamilyName ()Ljava/lang/String; + public fun getGivenName ()Ljava/lang/String; + public fun getIss ()Ljava/lang/String; + public fun getSub ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/openid/UserInfoResult$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/openid/UserInfoResult$Builder { + protected field email Ljava/lang/String; + protected field emailVerified Ljava/lang/Boolean; + protected field familyName Ljava/lang/String; + protected field givenName Ljava/lang/String; + protected field iss Ljava/lang/String; + protected field sub Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/openid/UserInfoResult; + public fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/openid/UserInfoResult$Builder; + public fun withEmailVerified (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/openid/UserInfoResult$Builder; + public fun withFamilyName (Ljava/lang/String;)Lcom/dropbox/core/v2/openid/UserInfoResult$Builder; + public fun withGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/openid/UserInfoResult$Builder; + public fun withIss (Ljava/lang/String;)Lcom/dropbox/core/v2/openid/UserInfoResult$Builder; + public fun withSub (Ljava/lang/String;)Lcom/dropbox/core/v2/openid/UserInfoResult$Builder; +} + +public class com/dropbox/core/v2/paper/AddMember { + protected final field member Lcom/dropbox/core/v2/sharing/MemberSelector; + protected final field permissionLevel Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public fun (Lcom/dropbox/core/v2/sharing/MemberSelector;)V + public fun (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMember ()Lcom/dropbox/core/v2/sharing/MemberSelector; + public fun getPermissionLevel ()Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/paper/AddPaperDocUserMemberResult { + protected final field member Lcom/dropbox/core/v2/sharing/MemberSelector; + protected final field result Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public fun (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/paper/AddPaperDocUserResult;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMember ()Lcom/dropbox/core/v2/sharing/MemberSelector; + public fun getResult ()Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/AddPaperDocUserResult : java/lang/Enum { + public static final field DAILY_LIMIT_REACHED Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static final field FAILED_USER_DATA_RETRIEVAL Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static final field OTHER Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static final field PERMISSION_ALREADY_GRANTED Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static final field SHARING_OUTSIDE_TEAM_DISABLED Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static final field SUCCESS Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static final field UNKNOWN_ERROR Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static final field USER_IS_OWNER Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; + public static fun values ()[Lcom/dropbox/core/v2/paper/AddPaperDocUserResult; +} + +public class com/dropbox/core/v2/paper/Cursor { + protected final field expiration Ljava/util/Date; + protected final field value Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExpiration ()Ljava/util/Date; + public fun getValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/paper/DbxUserPaperRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun docsArchive (Ljava/lang/String;)V + public fun docsCreate (Lcom/dropbox/core/v2/paper/ImportFormat;)Lcom/dropbox/core/v2/paper/DocsCreateUploader; + public fun docsCreate (Lcom/dropbox/core/v2/paper/ImportFormat;Ljava/lang/String;)Lcom/dropbox/core/v2/paper/DocsCreateUploader; + public fun docsDownload (Ljava/lang/String;Lcom/dropbox/core/v2/paper/ExportFormat;)Lcom/dropbox/core/DbxDownloader; + public fun docsDownloadBuilder (Ljava/lang/String;Lcom/dropbox/core/v2/paper/ExportFormat;)Lcom/dropbox/core/v2/paper/DocsDownloadBuilder; + public fun docsFolderUsersList (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListUsersOnFolderResponse; + public fun docsFolderUsersList (Ljava/lang/String;I)Lcom/dropbox/core/v2/paper/ListUsersOnFolderResponse; + public fun docsFolderUsersListContinue (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListUsersOnFolderResponse; + public fun docsGetFolderInfo (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/FoldersContainingPaperDoc; + public fun docsList ()Lcom/dropbox/core/v2/paper/ListPaperDocsResponse; + public fun docsListBuilder ()Lcom/dropbox/core/v2/paper/DocsListBuilder; + public fun docsListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListPaperDocsResponse; + public fun docsPermanentlyDelete (Ljava/lang/String;)V + public fun docsSharingPolicyGet (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/SharingPolicy; + public fun docsSharingPolicySet (Ljava/lang/String;Lcom/dropbox/core/v2/paper/SharingPolicy;)V + public fun docsUpdate (Ljava/lang/String;Lcom/dropbox/core/v2/paper/PaperDocUpdatePolicy;JLcom/dropbox/core/v2/paper/ImportFormat;)Lcom/dropbox/core/v2/paper/DocsUpdateUploader; + public fun docsUsersAdd (Ljava/lang/String;Ljava/util/List;)Ljava/util/List; + public fun docsUsersAddBuilder (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/paper/DocsUsersAddBuilder; + public fun docsUsersList (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListUsersOnPaperDocResponse; + public fun docsUsersListBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/DocsUsersListBuilder; + public fun docsUsersListContinue (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListUsersOnPaperDocResponse; + public fun docsUsersRemove (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/MemberSelector;)V + public fun foldersCreate (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/PaperFolderCreateResult; + public fun foldersCreateBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/FoldersCreateBuilder; +} + +public final class com/dropbox/core/v2/paper/DocLookupError : java/lang/Enum { + public static final field DOC_NOT_FOUND Lcom/dropbox/core/v2/paper/DocLookupError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/paper/DocLookupError; + public static final field OTHER Lcom/dropbox/core/v2/paper/DocLookupError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/DocLookupError; + public static fun values ()[Lcom/dropbox/core/v2/paper/DocLookupError; +} + +public class com/dropbox/core/v2/paper/DocLookupErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/paper/DocLookupError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/paper/DocLookupError;)V +} + +public class com/dropbox/core/v2/paper/DocsCreateUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/paper/PaperDocCreateErrorException; +} + +public class com/dropbox/core/v2/paper/DocsDownloadBuilder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; +} + +public class com/dropbox/core/v2/paper/DocsListBuilder { + public fun start ()Lcom/dropbox/core/v2/paper/ListPaperDocsResponse; + public fun withFilterBy (Lcom/dropbox/core/v2/paper/ListPaperDocsFilterBy;)Lcom/dropbox/core/v2/paper/DocsListBuilder; + public fun withLimit (Ljava/lang/Integer;)Lcom/dropbox/core/v2/paper/DocsListBuilder; + public fun withSortBy (Lcom/dropbox/core/v2/paper/ListPaperDocsSortBy;)Lcom/dropbox/core/v2/paper/DocsListBuilder; + public fun withSortOrder (Lcom/dropbox/core/v2/paper/ListPaperDocsSortOrder;)Lcom/dropbox/core/v2/paper/DocsListBuilder; +} + +public class com/dropbox/core/v2/paper/DocsUpdateUploader : com/dropbox/core/DbxUploader { + public fun (Lcom/dropbox/core/http/HttpRequestor$Uploader;Ljava/lang/String;)V + protected synthetic fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/DbxApiException; + protected fun newException (Lcom/dropbox/core/DbxWrappedException;)Lcom/dropbox/core/v2/paper/PaperDocUpdateErrorException; +} + +public class com/dropbox/core/v2/paper/DocsUsersAddBuilder { + public fun start ()Ljava/util/List; + public fun withCustomMessage (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/DocsUsersAddBuilder; + public fun withQuiet (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/paper/DocsUsersAddBuilder; +} + +public class com/dropbox/core/v2/paper/DocsUsersListBuilder { + public fun start ()Lcom/dropbox/core/v2/paper/ListUsersOnPaperDocResponse; + public fun withFilterBy (Lcom/dropbox/core/v2/paper/UserOnPaperDocFilter;)Lcom/dropbox/core/v2/paper/DocsUsersListBuilder; + public fun withLimit (Ljava/lang/Integer;)Lcom/dropbox/core/v2/paper/DocsUsersListBuilder; +} + +public final class com/dropbox/core/v2/paper/ExportFormat : java/lang/Enum { + public static final field HTML Lcom/dropbox/core/v2/paper/ExportFormat; + public static final field MARKDOWN Lcom/dropbox/core/v2/paper/ExportFormat; + public static final field OTHER Lcom/dropbox/core/v2/paper/ExportFormat; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ExportFormat; + public static fun values ()[Lcom/dropbox/core/v2/paper/ExportFormat; +} + +public class com/dropbox/core/v2/paper/Folder { + protected final field id Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/FolderSharingPolicyType : java/lang/Enum { + public static final field INVITE_ONLY Lcom/dropbox/core/v2/paper/FolderSharingPolicyType; + public static final field TEAM Lcom/dropbox/core/v2/paper/FolderSharingPolicyType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/FolderSharingPolicyType; + public static fun values ()[Lcom/dropbox/core/v2/paper/FolderSharingPolicyType; +} + +public class com/dropbox/core/v2/paper/FoldersContainingPaperDoc { + protected final field folderSharingPolicyType Lcom/dropbox/core/v2/paper/FolderSharingPolicyType; + protected final field folders Ljava/util/List; + public fun ()V + public fun (Lcom/dropbox/core/v2/paper/FolderSharingPolicyType;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolderSharingPolicyType ()Lcom/dropbox/core/v2/paper/FolderSharingPolicyType; + public fun getFolders ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/paper/FoldersContainingPaperDoc$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/paper/FoldersContainingPaperDoc$Builder { + protected field folderSharingPolicyType Lcom/dropbox/core/v2/paper/FolderSharingPolicyType; + protected field folders Ljava/util/List; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/paper/FoldersContainingPaperDoc; + public fun withFolderSharingPolicyType (Lcom/dropbox/core/v2/paper/FolderSharingPolicyType;)Lcom/dropbox/core/v2/paper/FoldersContainingPaperDoc$Builder; + public fun withFolders (Ljava/util/List;)Lcom/dropbox/core/v2/paper/FoldersContainingPaperDoc$Builder; +} + +public class com/dropbox/core/v2/paper/FoldersCreateBuilder { + public fun start ()Lcom/dropbox/core/v2/paper/PaperFolderCreateResult; + public fun withIsTeamFolder (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/paper/FoldersCreateBuilder; + public fun withParentFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/FoldersCreateBuilder; +} + +public final class com/dropbox/core/v2/paper/ImportFormat : java/lang/Enum { + public static final field HTML Lcom/dropbox/core/v2/paper/ImportFormat; + public static final field MARKDOWN Lcom/dropbox/core/v2/paper/ImportFormat; + public static final field OTHER Lcom/dropbox/core/v2/paper/ImportFormat; + public static final field PLAIN_TEXT Lcom/dropbox/core/v2/paper/ImportFormat; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ImportFormat; + public static fun values ()[Lcom/dropbox/core/v2/paper/ImportFormat; +} + +public class com/dropbox/core/v2/paper/InviteeInfoWithPermissionLevel { + protected final field invitee Lcom/dropbox/core/v2/sharing/InviteeInfo; + protected final field permissionLevel Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public fun (Lcom/dropbox/core/v2/sharing/InviteeInfo;Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getInvitee ()Lcom/dropbox/core/v2/sharing/InviteeInfo; + public fun getPermissionLevel ()Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/ListDocsCursorError { + public static final field OTHER Lcom/dropbox/core/v2/paper/ListDocsCursorError; + public static fun cursorError (Lcom/dropbox/core/v2/paper/PaperApiCursorError;)Lcom/dropbox/core/v2/paper/ListDocsCursorError; + public fun equals (Ljava/lang/Object;)Z + public fun getCursorErrorValue ()Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public fun hashCode ()I + public fun isCursorError ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/paper/ListDocsCursorError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/ListDocsCursorError$Tag : java/lang/Enum { + public static final field CURSOR_ERROR Lcom/dropbox/core/v2/paper/ListDocsCursorError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/paper/ListDocsCursorError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListDocsCursorError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/paper/ListDocsCursorError$Tag; +} + +public class com/dropbox/core/v2/paper/ListDocsCursorErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/paper/ListDocsCursorError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/paper/ListDocsCursorError;)V +} + +public final class com/dropbox/core/v2/paper/ListPaperDocsFilterBy : java/lang/Enum { + public static final field DOCS_ACCESSED Lcom/dropbox/core/v2/paper/ListPaperDocsFilterBy; + public static final field DOCS_CREATED Lcom/dropbox/core/v2/paper/ListPaperDocsFilterBy; + public static final field OTHER Lcom/dropbox/core/v2/paper/ListPaperDocsFilterBy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListPaperDocsFilterBy; + public static fun values ()[Lcom/dropbox/core/v2/paper/ListPaperDocsFilterBy; +} + +public class com/dropbox/core/v2/paper/ListPaperDocsResponse { + protected final field cursor Lcom/dropbox/core/v2/paper/Cursor; + protected final field docIds Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Lcom/dropbox/core/v2/paper/Cursor;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Lcom/dropbox/core/v2/paper/Cursor; + public fun getDocIds ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/ListPaperDocsSortBy : java/lang/Enum { + public static final field ACCESSED Lcom/dropbox/core/v2/paper/ListPaperDocsSortBy; + public static final field CREATED Lcom/dropbox/core/v2/paper/ListPaperDocsSortBy; + public static final field MODIFIED Lcom/dropbox/core/v2/paper/ListPaperDocsSortBy; + public static final field OTHER Lcom/dropbox/core/v2/paper/ListPaperDocsSortBy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListPaperDocsSortBy; + public static fun values ()[Lcom/dropbox/core/v2/paper/ListPaperDocsSortBy; +} + +public final class com/dropbox/core/v2/paper/ListPaperDocsSortOrder : java/lang/Enum { + public static final field ASCENDING Lcom/dropbox/core/v2/paper/ListPaperDocsSortOrder; + public static final field DESCENDING Lcom/dropbox/core/v2/paper/ListPaperDocsSortOrder; + public static final field OTHER Lcom/dropbox/core/v2/paper/ListPaperDocsSortOrder; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListPaperDocsSortOrder; + public static fun values ()[Lcom/dropbox/core/v2/paper/ListPaperDocsSortOrder; +} + +public final class com/dropbox/core/v2/paper/ListUsersCursorError { + public static final field DOC_NOT_FOUND Lcom/dropbox/core/v2/paper/ListUsersCursorError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/paper/ListUsersCursorError; + public static final field OTHER Lcom/dropbox/core/v2/paper/ListUsersCursorError; + public static fun cursorError (Lcom/dropbox/core/v2/paper/PaperApiCursorError;)Lcom/dropbox/core/v2/paper/ListUsersCursorError; + public fun equals (Ljava/lang/Object;)Z + public fun getCursorErrorValue ()Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public fun hashCode ()I + public fun isCursorError ()Z + public fun isDocNotFound ()Z + public fun isInsufficientPermissions ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/paper/ListUsersCursorError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/ListUsersCursorError$Tag : java/lang/Enum { + public static final field CURSOR_ERROR Lcom/dropbox/core/v2/paper/ListUsersCursorError$Tag; + public static final field DOC_NOT_FOUND Lcom/dropbox/core/v2/paper/ListUsersCursorError$Tag; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/paper/ListUsersCursorError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/paper/ListUsersCursorError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/ListUsersCursorError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/paper/ListUsersCursorError$Tag; +} + +public class com/dropbox/core/v2/paper/ListUsersCursorErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/paper/ListUsersCursorError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/paper/ListUsersCursorError;)V +} + +public class com/dropbox/core/v2/paper/ListUsersOnFolderResponse { + protected final field cursor Lcom/dropbox/core/v2/paper/Cursor; + protected final field hasMore Z + protected final field invitees Ljava/util/List; + protected final field users Ljava/util/List; + public fun (Ljava/util/List;Ljava/util/List;Lcom/dropbox/core/v2/paper/Cursor;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Lcom/dropbox/core/v2/paper/Cursor; + public fun getHasMore ()Z + public fun getInvitees ()Ljava/util/List; + public fun getUsers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/paper/ListUsersOnPaperDocResponse { + protected final field cursor Lcom/dropbox/core/v2/paper/Cursor; + protected final field docOwner Lcom/dropbox/core/v2/sharing/UserInfo; + protected final field hasMore Z + protected final field invitees Ljava/util/List; + protected final field users Ljava/util/List; + public fun (Ljava/util/List;Ljava/util/List;Lcom/dropbox/core/v2/sharing/UserInfo;Lcom/dropbox/core/v2/paper/Cursor;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Lcom/dropbox/core/v2/paper/Cursor; + public fun getDocOwner ()Lcom/dropbox/core/v2/sharing/UserInfo; + public fun getHasMore ()Z + public fun getInvitees ()Ljava/util/List; + public fun getUsers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/PaperApiCursorError : java/lang/Enum { + public static final field EXPIRED_CURSOR Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public static final field OTHER Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public static final field RESET Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public static final field WRONG_USER_IN_CURSOR Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/PaperApiCursorError; + public static fun values ()[Lcom/dropbox/core/v2/paper/PaperApiCursorError; +} + +public final class com/dropbox/core/v2/paper/PaperDocCreateError : java/lang/Enum { + public static final field CONTENT_MALFORMED Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public static final field DOC_LENGTH_EXCEEDED Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public static final field FOLDER_NOT_FOUND Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public static final field IMAGE_SIZE_EXCEEDED Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public static final field OTHER Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public static fun values ()[Lcom/dropbox/core/v2/paper/PaperDocCreateError; +} + +public class com/dropbox/core/v2/paper/PaperDocCreateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/paper/PaperDocCreateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/paper/PaperDocCreateError;)V +} + +public class com/dropbox/core/v2/paper/PaperDocCreateUpdateResult { + protected final field docId Ljava/lang/String; + protected final field revision J + protected final field title Ljava/lang/String; + public fun (Ljava/lang/String;JLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDocId ()Ljava/lang/String; + public fun getRevision ()J + public fun getTitle ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/paper/PaperDocExportResult { + protected final field mimeType Ljava/lang/String; + protected final field owner Ljava/lang/String; + protected final field revision J + protected final field title Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMimeType ()Ljava/lang/String; + public fun getOwner ()Ljava/lang/String; + public fun getRevision ()J + public fun getTitle ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/PaperDocPermissionLevel : java/lang/Enum { + public static final field EDIT Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public static final field OTHER Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public static final field VIEW_AND_COMMENT Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public static fun values ()[Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; +} + +public final class com/dropbox/core/v2/paper/PaperDocUpdateError : java/lang/Enum { + public static final field CONTENT_MALFORMED Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field DOC_ARCHIVED Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field DOC_DELETED Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field DOC_LENGTH_EXCEEDED Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field DOC_NOT_FOUND Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field IMAGE_SIZE_EXCEEDED Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field OTHER Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static final field REVISION_MISMATCH Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public static fun values ()[Lcom/dropbox/core/v2/paper/PaperDocUpdateError; +} + +public class com/dropbox/core/v2/paper/PaperDocUpdateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/paper/PaperDocUpdateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/paper/PaperDocUpdateError;)V +} + +public final class com/dropbox/core/v2/paper/PaperDocUpdatePolicy : java/lang/Enum { + public static final field APPEND Lcom/dropbox/core/v2/paper/PaperDocUpdatePolicy; + public static final field OTHER Lcom/dropbox/core/v2/paper/PaperDocUpdatePolicy; + public static final field OVERWRITE_ALL Lcom/dropbox/core/v2/paper/PaperDocUpdatePolicy; + public static final field PREPEND Lcom/dropbox/core/v2/paper/PaperDocUpdatePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/PaperDocUpdatePolicy; + public static fun values ()[Lcom/dropbox/core/v2/paper/PaperDocUpdatePolicy; +} + +public final class com/dropbox/core/v2/paper/PaperFolderCreateError : java/lang/Enum { + public static final field FOLDER_NOT_FOUND Lcom/dropbox/core/v2/paper/PaperFolderCreateError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/paper/PaperFolderCreateError; + public static final field INVALID_FOLDER_ID Lcom/dropbox/core/v2/paper/PaperFolderCreateError; + public static final field OTHER Lcom/dropbox/core/v2/paper/PaperFolderCreateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/PaperFolderCreateError; + public static fun values ()[Lcom/dropbox/core/v2/paper/PaperFolderCreateError; +} + +public class com/dropbox/core/v2/paper/PaperFolderCreateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/paper/PaperFolderCreateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/paper/PaperFolderCreateError;)V +} + +public class com/dropbox/core/v2/paper/PaperFolderCreateResult { + protected final field folderId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolderId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/paper/SharingPolicy { + protected final field publicSharingPolicy Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + protected final field teamSharingPolicy Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; + public fun ()V + public fun (Lcom/dropbox/core/v2/paper/SharingPublicPolicyType;Lcom/dropbox/core/v2/paper/SharingTeamPolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPublicSharingPolicy ()Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + public fun getTeamSharingPolicy ()Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/paper/SharingPolicy$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/paper/SharingPolicy$Builder { + protected field publicSharingPolicy Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + protected field teamSharingPolicy Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/paper/SharingPolicy; + public fun withPublicSharingPolicy (Lcom/dropbox/core/v2/paper/SharingPublicPolicyType;)Lcom/dropbox/core/v2/paper/SharingPolicy$Builder; + public fun withTeamSharingPolicy (Lcom/dropbox/core/v2/paper/SharingTeamPolicyType;)Lcom/dropbox/core/v2/paper/SharingPolicy$Builder; +} + +public final class com/dropbox/core/v2/paper/SharingPublicPolicyType : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + public static final field INVITE_ONLY Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + public static final field PEOPLE_WITH_LINK_CAN_EDIT Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + public static final field PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; + public static fun values ()[Lcom/dropbox/core/v2/paper/SharingPublicPolicyType; +} + +public final class com/dropbox/core/v2/paper/SharingTeamPolicyType : java/lang/Enum { + public static final field INVITE_ONLY Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; + public static final field PEOPLE_WITH_LINK_CAN_EDIT Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; + public static final field PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; + public static fun values ()[Lcom/dropbox/core/v2/paper/SharingTeamPolicyType; +} + +public class com/dropbox/core/v2/paper/UserInfoWithPermissionLevel { + protected final field permissionLevel Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + protected final field user Lcom/dropbox/core/v2/sharing/UserInfo; + public fun (Lcom/dropbox/core/v2/sharing/UserInfo;Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPermissionLevel ()Lcom/dropbox/core/v2/paper/PaperDocPermissionLevel; + public fun getUser ()Lcom/dropbox/core/v2/sharing/UserInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/paper/UserOnPaperDocFilter : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/paper/UserOnPaperDocFilter; + public static final field SHARED Lcom/dropbox/core/v2/paper/UserOnPaperDocFilter; + public static final field VISITED Lcom/dropbox/core/v2/paper/UserOnPaperDocFilter; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/paper/UserOnPaperDocFilter; + public static fun values ()[Lcom/dropbox/core/v2/paper/UserOnPaperDocFilter; +} + +public class com/dropbox/core/v2/secondaryemails/SecondaryEmail { + protected final field email Ljava/lang/String; + protected final field isVerified Z + public fun (Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getEmail ()Ljava/lang/String; + public fun getIsVerified ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/secondaryemails/SecondaryEmail$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/secondaryemails/SecondaryEmail$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/secondaryemails/SecondaryEmail; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/secondaryemails/SecondaryEmail;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/seenstate/PlatformType : java/lang/Enum { + public static final field API Lcom/dropbox/core/v2/seenstate/PlatformType; + public static final field DESKTOP Lcom/dropbox/core/v2/seenstate/PlatformType; + public static final field MOBILE Lcom/dropbox/core/v2/seenstate/PlatformType; + public static final field MOBILE_ANDROID Lcom/dropbox/core/v2/seenstate/PlatformType; + public static final field MOBILE_IOS Lcom/dropbox/core/v2/seenstate/PlatformType; + public static final field OTHER Lcom/dropbox/core/v2/seenstate/PlatformType; + public static final field UNKNOWN Lcom/dropbox/core/v2/seenstate/PlatformType; + public static final field WEB Lcom/dropbox/core/v2/seenstate/PlatformType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/seenstate/PlatformType; + public static fun values ()[Lcom/dropbox/core/v2/seenstate/PlatformType; +} + +public class com/dropbox/core/v2/seenstate/PlatformType$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/seenstate/PlatformType$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/seenstate/PlatformType; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/seenstate/PlatformType;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/sharing/AccessInheritance : java/lang/Enum { + public static final field INHERIT Lcom/dropbox/core/v2/sharing/AccessInheritance; + public static final field NO_INHERIT Lcom/dropbox/core/v2/sharing/AccessInheritance; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AccessInheritance; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AccessInheritance; + public static fun values ()[Lcom/dropbox/core/v2/sharing/AccessInheritance; +} + +public final class com/dropbox/core/v2/sharing/AccessLevel : java/lang/Enum { + public static final field EDITOR Lcom/dropbox/core/v2/sharing/AccessLevel; + public static final field NO_ACCESS Lcom/dropbox/core/v2/sharing/AccessLevel; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AccessLevel; + public static final field OWNER Lcom/dropbox/core/v2/sharing/AccessLevel; + public static final field TRAVERSE Lcom/dropbox/core/v2/sharing/AccessLevel; + public static final field VIEWER Lcom/dropbox/core/v2/sharing/AccessLevel; + public static final field VIEWER_NO_COMMENT Lcom/dropbox/core/v2/sharing/AccessLevel; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AccessLevel; + public static fun values ()[Lcom/dropbox/core/v2/sharing/AccessLevel; +} + +public class com/dropbox/core/v2/sharing/AccessLevel$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/AccessLevel$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/AccessLevel; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/sharing/AclUpdatePolicy : java/lang/Enum { + public static final field EDITORS Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public static final field OWNER Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public static fun values ()[Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; +} + +public class com/dropbox/core/v2/sharing/AclUpdatePolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/AclUpdatePolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/sharing/AddFileMemberBuilder { + public fun start ()Ljava/util/List; + public fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder; + public fun withAddMessageAsComment (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder; + public fun withCustomMessage (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder; + public fun withQuiet (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder; +} + +public final class com/dropbox/core/v2/sharing/AddFileMemberError { + public static final field INVALID_COMMENT Lcom/dropbox/core/v2/sharing/AddFileMemberError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AddFileMemberError; + public static final field RATE_LIMIT Lcom/dropbox/core/v2/sharing/AddFileMemberError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/AddFileMemberError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getUserErrorValue ()Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isInvalidComment ()Z + public fun isOther ()Z + public fun isRateLimit ()Z + public fun isUserError ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userError (Lcom/dropbox/core/v2/sharing/SharingUserError;)Lcom/dropbox/core/v2/sharing/AddFileMemberError; +} + +public final class com/dropbox/core/v2/sharing/AddFileMemberError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; + public static final field INVALID_COMMENT Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; + public static final field RATE_LIMIT Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; + public static final field USER_ERROR Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/AddFileMemberError$Tag; +} + +public class com/dropbox/core/v2/sharing/AddFileMemberErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/AddFileMemberError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/AddFileMemberError;)V +} + +public class com/dropbox/core/v2/sharing/AddFolderMemberBuilder { + public fun start ()V + public fun withCustomMessage (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFolderMemberBuilder; + public fun withQuiet (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/AddFolderMemberBuilder; +} + +public final class com/dropbox/core/v2/sharing/AddFolderMemberError { + public static final field BANNED_MEMBER Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field CANT_SHARE_OUTSIDE_TEAM Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field INSUFFICIENT_PLAN Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field INVALID_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field RATE_LIMIT Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static final field TOO_MANY_INVITEES Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static fun badMember (Lcom/dropbox/core/v2/sharing/AddMemberSelectorError;)Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun getBadMemberValue ()Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; + public fun getTooManyMembersValue ()J + public fun getTooManyPendingInvitesValue ()J + public fun hashCode ()I + public fun isAccessError ()Z + public fun isBadMember ()Z + public fun isBannedMember ()Z + public fun isCantShareOutsideTeam ()Z + public fun isEmailUnverified ()Z + public fun isInsufficientPlan ()Z + public fun isInvalidSharedFolder ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun isRateLimit ()Z + public fun isTeamFolder ()Z + public fun isTooManyInvitees ()Z + public fun isTooManyMembers ()Z + public fun isTooManyPendingInvites ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun tooManyMembers (J)Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public static fun tooManyPendingInvites (J)Lcom/dropbox/core/v2/sharing/AddFolderMemberError; +} + +public final class com/dropbox/core/v2/sharing/AddFolderMemberError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field BAD_MEMBER Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field BANNED_MEMBER Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field CANT_SHARE_OUTSIDE_TEAM Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field INSUFFICIENT_PLAN Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field INVALID_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field RATE_LIMIT Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field TOO_MANY_INVITEES Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field TOO_MANY_MEMBERS Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static final field TOO_MANY_PENDING_INVITES Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/AddFolderMemberError$Tag; +} + +public class com/dropbox/core/v2/sharing/AddFolderMemberErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/AddFolderMemberError;)V +} + +public class com/dropbox/core/v2/sharing/AddMember { + protected final field accessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field member Lcom/dropbox/core/v2/sharing/MemberSelector; + public fun (Lcom/dropbox/core/v2/sharing/MemberSelector;)V + public fun (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getMember ()Lcom/dropbox/core/v2/sharing/MemberSelector; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/AddMemberSelectorError { + public static final field AUTOMATIC_GROUP Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; + public static final field GROUP_DELETED Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; + public static final field GROUP_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidDropboxIdValue ()Ljava/lang/String; + public fun getInvalidEmailValue ()Ljava/lang/String; + public fun getUnverifiedDropboxIdValue ()Ljava/lang/String; + public fun hashCode ()I + public static fun invalidDropboxId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; + public static fun invalidEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; + public fun isAutomaticGroup ()Z + public fun isGroupDeleted ()Z + public fun isGroupNotOnTeam ()Z + public fun isInvalidDropboxId ()Z + public fun isInvalidEmail ()Z + public fun isOther ()Z + public fun isUnverifiedDropboxId ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun unverifiedDropboxId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddMemberSelectorError; +} + +public final class com/dropbox/core/v2/sharing/AddMemberSelectorError$Tag : java/lang/Enum { + public static final field AUTOMATIC_GROUP Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static final field GROUP_DELETED Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static final field GROUP_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static final field INVALID_DROPBOX_ID Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static final field INVALID_EMAIL Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static final field UNVERIFIED_DROPBOX_ID Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/AddMemberSelectorError$Tag; +} + +public final class com/dropbox/core/v2/sharing/AlphaResolvedVisibility : java/lang/Enum { + public static final field NO_ONE Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static final field ONLY_YOU Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static final field OTHER Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static final field PASSWORD Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static final field PUBLIC Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static final field SHARED_FOLDER_ONLY Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static final field TEAM_AND_PASSWORD Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static final field TEAM_ONLY Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public static fun values ()[Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; +} + +public class com/dropbox/core/v2/sharing/AudienceExceptionContentInfo { + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/AudienceExceptions { + protected final field count J + protected final field exceptions Ljava/util/List; + public fun (JLjava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCount ()J + public fun getExceptions ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder { + protected final field audience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field name Ljava/lang/String; + protected final field sharedFolderId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkAudience;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getName ()Ljava/lang/String; + public fun getSharedFolderId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/CollectionLinkMetadata : com/dropbox/core/v2/sharing/LinkMetadata { + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/Visibility;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/Visibility;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExpires ()Ljava/util/Date; + public fun getUrl ()Ljava/lang/String; + public fun getVisibility ()Lcom/dropbox/core/v2/sharing/Visibility; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/CreateSharedLinkBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/PathLinkMetadata; + public fun withPendingUpload (Lcom/dropbox/core/v2/sharing/PendingUploadMode;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkBuilder; + public fun withShortUrl (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkBuilder; +} + +public final class com/dropbox/core/v2/sharing/CreateSharedLinkError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/CreateSharedLinkError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkError; + public fun tag ()Lcom/dropbox/core/v2/sharing/CreateSharedLinkError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/CreateSharedLinkError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/CreateSharedLinkError$Tag; + public static final field PATH Lcom/dropbox/core/v2/sharing/CreateSharedLinkError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/CreateSharedLinkError$Tag; +} + +public class com/dropbox/core/v2/sharing/CreateSharedLinkErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/CreateSharedLinkError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/CreateSharedLinkError;)V +} + +public final class com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError { + public static final field ACCESS_DENIED Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError; + public static final field EMAIL_NOT_VERIFIED Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun getSettingsErrorValue ()Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError; + public fun getSharedLinkAlreadyExistsValue ()Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata; + public fun hashCode ()I + public fun isAccessDenied ()Z + public fun isEmailNotVerified ()Z + public fun isPath ()Z + public fun isSettingsError ()Z + public fun isSharedLinkAlreadyExists ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError; + public static fun settingsError (Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError; + public static fun sharedLinkAlreadyExists ()Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError; + public static fun sharedLinkAlreadyExists (Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError; + public fun tag ()Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag : java/lang/Enum { + public static final field ACCESS_DENIED Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; + public static final field EMAIL_NOT_VERIFIED Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; + public static final field PATH Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; + public static final field SETTINGS_ERROR Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; + public static final field SHARED_LINK_ALREADY_EXISTS Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError$Tag; +} + +public class com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError;)V +} + +public class com/dropbox/core/v2/sharing/DbxAppGetSharedLinkMetadataBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun withLinkPassword (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/DbxAppGetSharedLinkMetadataBuilder; + public fun withPath (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/DbxAppGetSharedLinkMetadataBuilder; +} + +public class com/dropbox/core/v2/sharing/DbxAppSharingRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun getSharedLinkMetadata (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun getSharedLinkMetadataBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/DbxAppGetSharedLinkMetadataBuilder; +} + +public class com/dropbox/core/v2/sharing/DbxUserGetSharedLinkMetadataBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun withLinkPassword (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/DbxUserGetSharedLinkMetadataBuilder; + public fun withPath (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/DbxUserGetSharedLinkMetadataBuilder; +} + +public class com/dropbox/core/v2/sharing/DbxUserSharingRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun addFileMember (Ljava/lang/String;Ljava/util/List;)Ljava/util/List; + public fun addFileMemberBuilder (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/sharing/AddFileMemberBuilder; + public fun addFolderMember (Ljava/lang/String;Ljava/util/List;)V + public fun addFolderMemberBuilder (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/sharing/AddFolderMemberBuilder; + public fun checkJobStatus (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/JobStatus; + public fun checkRemoveMemberJobStatus (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus; + public fun checkShareJobStatus (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus; + public fun createSharedLink (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/PathLinkMetadata; + public fun createSharedLinkBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/CreateSharedLinkBuilder; + public fun createSharedLinkWithSettings (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun createSharedLinkWithSettings (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/SharedLinkSettings;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun getFileMetadata (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata; + public fun getFileMetadata (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata; + public fun getFileMetadataBatch (Ljava/util/List;)Ljava/util/List; + public fun getFileMetadataBatch (Ljava/util/List;Ljava/util/List;)Ljava/util/List; + public fun getFolderMetadata (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun getFolderMetadata (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun getSharedLinkFile (Ljava/lang/String;)Lcom/dropbox/core/DbxDownloader; + public fun getSharedLinkFileBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetSharedLinkFileBuilder; + public fun getSharedLinkMetadata (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun getSharedLinkMetadataBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/DbxUserGetSharedLinkMetadataBuilder; + public fun getSharedLinks ()Lcom/dropbox/core/v2/sharing/GetSharedLinksResult; + public fun getSharedLinks (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetSharedLinksResult; + public fun listFileMembers (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFileMembers; + public fun listFileMembersBatch (Ljava/util/List;)Ljava/util/List; + public fun listFileMembersBatch (Ljava/util/List;J)Ljava/util/List; + public fun listFileMembersBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFileMembersBuilder; + public fun listFileMembersContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFileMembers; + public fun listFolderMembers (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMembers; + public fun listFolderMembersBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFolderMembersBuilder; + public fun listFolderMembersContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMembers; + public fun listFolders ()Lcom/dropbox/core/v2/sharing/ListFoldersResult; + public fun listFoldersBuilder ()Lcom/dropbox/core/v2/sharing/ListFoldersBuilder; + public fun listFoldersContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFoldersResult; + public fun listMountableFolders ()Lcom/dropbox/core/v2/sharing/ListFoldersResult; + public fun listMountableFoldersBuilder ()Lcom/dropbox/core/v2/sharing/ListMountableFoldersBuilder; + public fun listMountableFoldersContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFoldersResult; + public fun listReceivedFiles ()Lcom/dropbox/core/v2/sharing/ListFilesResult; + public fun listReceivedFilesBuilder ()Lcom/dropbox/core/v2/sharing/ListReceivedFilesBuilder; + public fun listReceivedFilesContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFilesResult; + public fun listSharedLinks ()Lcom/dropbox/core/v2/sharing/ListSharedLinksResult; + public fun listSharedLinksBuilder ()Lcom/dropbox/core/v2/sharing/ListSharedLinksBuilder; + public fun modifySharedLinkSettings (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/SharedLinkSettings;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun modifySharedLinkSettings (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/SharedLinkSettings;Z)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun mountFolder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun relinquishFileMembership (Ljava/lang/String;)V + public fun relinquishFolderMembership (Ljava/lang/String;)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun relinquishFolderMembership (Ljava/lang/String;Z)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun removeFileMember (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/MemberSelector;)Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult; + public fun removeFileMember2 (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/MemberSelector;)Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult; + public fun removeFolderMember (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/MemberSelector;Z)Lcom/dropbox/core/v2/async/LaunchResultBase; + public fun revokeSharedLink (Ljava/lang/String;)V + public fun setAccessInheritance (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderLaunch; + public fun setAccessInheritance (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessInheritance;)Lcom/dropbox/core/v2/sharing/ShareFolderLaunch; + public fun shareFolder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderLaunch; + public fun shareFolderBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun transferFolder (Ljava/lang/String;Ljava/lang/String;)V + public fun unmountFolder (Ljava/lang/String;)V + public fun unshareFile (Ljava/lang/String;)V + public fun unshareFolder (Ljava/lang/String;)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun unshareFolder (Ljava/lang/String;Z)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun updateFileMember (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun updateFolderMember (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun updateFolderPolicy (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun updateFolderPolicyBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder; +} + +public class com/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata : com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase { + public fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;Z)V + public fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;ZLcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getAudienceOptions ()Ljava/util/List; + public fun getAudienceRestrictingSharedFolder ()Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder; + public fun getCurrentAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getExpiry ()Ljava/util/Date; + public fun getLinkPermissions ()Ljava/util/List; + public fun getPasswordProtected ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;Z)Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata$Builder : com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder { + protected fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;Z)V + public fun build ()Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase; + public fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata$Builder; + public synthetic fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; + public fun withAudienceRestrictingSharedFolder (Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;)Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata$Builder; + public synthetic fun withAudienceRestrictingSharedFolder (Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; + public fun withExpiry (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata$Builder; + public synthetic fun withExpiry (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; +} + +public final class com/dropbox/core/v2/sharing/FileAction : java/lang/Enum { + public static final field CREATE_EDIT_LINK Lcom/dropbox/core/v2/sharing/FileAction; + public static final field CREATE_LINK Lcom/dropbox/core/v2/sharing/FileAction; + public static final field CREATE_VIEW_LINK Lcom/dropbox/core/v2/sharing/FileAction; + public static final field DISABLE_VIEWER_INFO Lcom/dropbox/core/v2/sharing/FileAction; + public static final field EDIT_CONTENTS Lcom/dropbox/core/v2/sharing/FileAction; + public static final field ENABLE_VIEWER_INFO Lcom/dropbox/core/v2/sharing/FileAction; + public static final field INVITE_EDITOR Lcom/dropbox/core/v2/sharing/FileAction; + public static final field INVITE_VIEWER Lcom/dropbox/core/v2/sharing/FileAction; + public static final field INVITE_VIEWER_NO_COMMENT Lcom/dropbox/core/v2/sharing/FileAction; + public static final field OTHER Lcom/dropbox/core/v2/sharing/FileAction; + public static final field RELINQUISH_MEMBERSHIP Lcom/dropbox/core/v2/sharing/FileAction; + public static final field SHARE_LINK Lcom/dropbox/core/v2/sharing/FileAction; + public static final field UNSHARE Lcom/dropbox/core/v2/sharing/FileAction; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FileAction; + public static fun values ()[Lcom/dropbox/core/v2/sharing/FileAction; +} + +public class com/dropbox/core/v2/sharing/FileLinkMetadata : com/dropbox/core/v2/sharing/SharedLinkMetadata { + protected final field clientModified Ljava/util/Date; + protected final field rev Ljava/lang/String; + protected final field serverModified Ljava/util/Date; + protected final field size J + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;J)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;JLjava/lang/String;Ljava/util/Date;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/TeamMemberInfo;Lcom/dropbox/core/v2/users/Team;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClientModified ()Ljava/util/Date; + public fun getContentOwnerTeamInfo ()Lcom/dropbox/core/v2/users/Team; + public fun getExpires ()Ljava/util/Date; + public fun getId ()Ljava/lang/String; + public fun getLinkPermissions ()Lcom/dropbox/core/v2/sharing/LinkPermissions; + public fun getName ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getRev ()Ljava/lang/String; + public fun getServerModified ()Ljava/util/Date; + public fun getSize ()J + public fun getTeamMemberInfo ()Lcom/dropbox/core/v2/sharing/TeamMemberInfo; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;J)Lcom/dropbox/core/v2/sharing/FileLinkMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/FileLinkMetadata$Builder : com/dropbox/core/v2/sharing/SharedLinkMetadata$Builder { + protected final field clientModified Ljava/util/Date; + protected final field rev Ljava/lang/String; + protected final field serverModified Ljava/util/Date; + protected final field size J + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;J)V + public fun build ()Lcom/dropbox/core/v2/sharing/FileLinkMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun withContentOwnerTeamInfo (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/FileLinkMetadata$Builder; + public synthetic fun withContentOwnerTeamInfo (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withExpires (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/FileLinkMetadata$Builder; + public synthetic fun withExpires (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FileLinkMetadata$Builder; + public synthetic fun withId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FileLinkMetadata$Builder; + public synthetic fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withTeamMemberInfo (Lcom/dropbox/core/v2/sharing/TeamMemberInfo;)Lcom/dropbox/core/v2/sharing/FileLinkMetadata$Builder; + public synthetic fun withTeamMemberInfo (Lcom/dropbox/core/v2/sharing/TeamMemberInfo;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; +} + +public final class com/dropbox/core/v2/sharing/FileMemberActionError { + public static final field INVALID_MEMBER Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getNoExplicitAccessValue ()Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isInvalidMember ()Z + public fun isNoExplicitAccess ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public static fun noExplicitAccess (Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult;)Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public fun tag ()Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/FileMemberActionError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; + public static final field INVALID_MEMBER Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; + public static final field NO_EXPLICIT_ACCESS Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/FileMemberActionError$Tag; +} + +public class com/dropbox/core/v2/sharing/FileMemberActionErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/FileMemberActionError;)V +} + +public final class com/dropbox/core/v2/sharing/FileMemberActionIndividualResult { + public fun equals (Ljava/lang/Object;)Z + public fun getMemberErrorValue ()Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public fun getSuccessValue ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun isMemberError ()Z + public fun isSuccess ()Z + public static fun memberError (Lcom/dropbox/core/v2/sharing/FileMemberActionError;)Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult; + public static fun success ()Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult; + public static fun success (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult; + public fun tag ()Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/FileMemberActionIndividualResult$Tag : java/lang/Enum { + public static final field MEMBER_ERROR Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult$Tag; +} + +public class com/dropbox/core/v2/sharing/FileMemberActionResult { + protected final field invitationSignature Ljava/util/List; + protected final field member Lcom/dropbox/core/v2/sharing/MemberSelector; + protected final field result Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult; + protected final field sckeySha1 Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult;)V + public fun (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult;Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getInvitationSignature ()Ljava/util/List; + public fun getMember ()Lcom/dropbox/core/v2/sharing/MemberSelector; + public fun getResult ()Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult; + public fun getSckeySha1 ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult;)Lcom/dropbox/core/v2/sharing/FileMemberActionResult$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/FileMemberActionResult$Builder { + protected field invitationSignature Ljava/util/List; + protected final field member Lcom/dropbox/core/v2/sharing/MemberSelector; + protected final field result Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult; + protected field sckeySha1 Ljava/lang/String; + protected fun (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/dropbox/core/v2/sharing/FileMemberActionIndividualResult;)V + public fun build ()Lcom/dropbox/core/v2/sharing/FileMemberActionResult; + public fun withInvitationSignature (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/FileMemberActionResult$Builder; + public fun withSckeySha1 (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FileMemberActionResult$Builder; +} + +public final class com/dropbox/core/v2/sharing/FileMemberRemoveActionResult { + public static final field OTHER Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult; + public fun equals (Ljava/lang/Object;)Z + public fun getMemberErrorValue ()Lcom/dropbox/core/v2/sharing/FileMemberActionError; + public fun getSuccessValue ()Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun hashCode ()I + public fun isMemberError ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun memberError (Lcom/dropbox/core/v2/sharing/FileMemberActionError;)Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult; + public static fun success (Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult;)Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult; + public fun tag ()Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/FileMemberRemoveActionResult$Tag : java/lang/Enum { + public static final field MEMBER_ERROR Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/FileMemberRemoveActionResult$Tag; +} + +public class com/dropbox/core/v2/sharing/FilePermission { + protected final field action Lcom/dropbox/core/v2/sharing/FileAction; + protected final field allow Z + protected final field reason Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun (Lcom/dropbox/core/v2/sharing/FileAction;Z)V + public fun (Lcom/dropbox/core/v2/sharing/FileAction;ZLcom/dropbox/core/v2/sharing/PermissionDeniedReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAction ()Lcom/dropbox/core/v2/sharing/FileAction; + public fun getAllow ()Z + public fun getReason ()Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/FolderAction : java/lang/Enum { + public static final field CHANGE_OPTIONS Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field CREATE_LINK Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field DISABLE_VIEWER_INFO Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field EDIT_CONTENTS Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field ENABLE_VIEWER_INFO Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field INVITE_EDITOR Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field INVITE_VIEWER Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field INVITE_VIEWER_NO_COMMENT Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field LEAVE_A_COPY Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field OTHER Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field RELINQUISH_MEMBERSHIP Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field SET_ACCESS_INHERITANCE Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field SHARE_LINK Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field UNMOUNT Lcom/dropbox/core/v2/sharing/FolderAction; + public static final field UNSHARE Lcom/dropbox/core/v2/sharing/FolderAction; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FolderAction; + public static fun values ()[Lcom/dropbox/core/v2/sharing/FolderAction; +} + +public class com/dropbox/core/v2/sharing/FolderLinkMetadata : com/dropbox/core/v2/sharing/SharedLinkMetadata { + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/TeamMemberInfo;Lcom/dropbox/core/v2/users/Team;)V + public fun equals (Ljava/lang/Object;)Z + public fun getContentOwnerTeamInfo ()Lcom/dropbox/core/v2/users/Team; + public fun getExpires ()Ljava/util/Date; + public fun getId ()Ljava/lang/String; + public fun getLinkPermissions ()Lcom/dropbox/core/v2/sharing/LinkPermissions; + public fun getName ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getTeamMemberInfo ()Lcom/dropbox/core/v2/sharing/TeamMemberInfo; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;)Lcom/dropbox/core/v2/sharing/FolderLinkMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/FolderLinkMetadata$Builder : com/dropbox/core/v2/sharing/SharedLinkMetadata$Builder { + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;)V + public fun build ()Lcom/dropbox/core/v2/sharing/FolderLinkMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun withContentOwnerTeamInfo (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/FolderLinkMetadata$Builder; + public synthetic fun withContentOwnerTeamInfo (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withExpires (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/FolderLinkMetadata$Builder; + public synthetic fun withExpires (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FolderLinkMetadata$Builder; + public synthetic fun withId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/FolderLinkMetadata$Builder; + public synthetic fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withTeamMemberInfo (Lcom/dropbox/core/v2/sharing/TeamMemberInfo;)Lcom/dropbox/core/v2/sharing/FolderLinkMetadata$Builder; + public synthetic fun withTeamMemberInfo (Lcom/dropbox/core/v2/sharing/TeamMemberInfo;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; +} + +public class com/dropbox/core/v2/sharing/FolderPermission { + protected final field action Lcom/dropbox/core/v2/sharing/FolderAction; + protected final field allow Z + protected final field reason Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun (Lcom/dropbox/core/v2/sharing/FolderAction;Z)V + public fun (Lcom/dropbox/core/v2/sharing/FolderAction;ZLcom/dropbox/core/v2/sharing/PermissionDeniedReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAction ()Lcom/dropbox/core/v2/sharing/FolderAction; + public fun getAllow ()Z + public fun getReason ()Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/FolderPolicy { + protected final field aclUpdatePolicy Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + protected final field memberPolicy Lcom/dropbox/core/v2/sharing/MemberPolicy; + protected final field resolvedMemberPolicy Lcom/dropbox/core/v2/sharing/MemberPolicy; + protected final field sharedLinkPolicy Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + protected final field viewerInfoPolicy Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public fun (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;)V + public fun (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;Lcom/dropbox/core/v2/sharing/MemberPolicy;Lcom/dropbox/core/v2/sharing/MemberPolicy;Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAclUpdatePolicy ()Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public fun getMemberPolicy ()Lcom/dropbox/core/v2/sharing/MemberPolicy; + public fun getResolvedMemberPolicy ()Lcom/dropbox/core/v2/sharing/MemberPolicy; + public fun getSharedLinkPolicy ()Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public fun getViewerInfoPolicy ()Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;)Lcom/dropbox/core/v2/sharing/FolderPolicy$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/FolderPolicy$Builder { + protected final field aclUpdatePolicy Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + protected field memberPolicy Lcom/dropbox/core/v2/sharing/MemberPolicy; + protected field resolvedMemberPolicy Lcom/dropbox/core/v2/sharing/MemberPolicy; + protected final field sharedLinkPolicy Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + protected field viewerInfoPolicy Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + protected fun (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;)V + public fun build ()Lcom/dropbox/core/v2/sharing/FolderPolicy; + public fun withMemberPolicy (Lcom/dropbox/core/v2/sharing/MemberPolicy;)Lcom/dropbox/core/v2/sharing/FolderPolicy$Builder; + public fun withResolvedMemberPolicy (Lcom/dropbox/core/v2/sharing/MemberPolicy;)Lcom/dropbox/core/v2/sharing/FolderPolicy$Builder; + public fun withViewerInfoPolicy (Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;)Lcom/dropbox/core/v2/sharing/FolderPolicy$Builder; +} + +public class com/dropbox/core/v2/sharing/GetFileMetadataBatchResult { + protected final field file Ljava/lang/String; + protected final field result Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFile ()Ljava/lang/String; + public fun getResult ()Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/GetFileMetadataError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/GetFileMetadataError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/GetFileMetadataError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getUserErrorValue ()Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isUserError ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/GetFileMetadataError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userError (Lcom/dropbox/core/v2/sharing/SharingUserError;)Lcom/dropbox/core/v2/sharing/GetFileMetadataError; +} + +public final class com/dropbox/core/v2/sharing/GetFileMetadataError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/GetFileMetadataError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/GetFileMetadataError$Tag; + public static final field USER_ERROR Lcom/dropbox/core/v2/sharing/GetFileMetadataError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetFileMetadataError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/GetFileMetadataError$Tag; +} + +public class com/dropbox/core/v2/sharing/GetFileMetadataErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/GetFileMetadataError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/GetFileMetadataError;)V +} + +public final class com/dropbox/core/v2/sharing/GetFileMetadataIndividualResult { + public static final field OTHER Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getMetadataValue ()Lcom/dropbox/core/v2/sharing/SharedFileMetadata; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isMetadata ()Z + public fun isOther ()Z + public static fun metadata (Lcom/dropbox/core/v2/sharing/SharedFileMetadata;)Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult; + public fun tag ()Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/GetFileMetadataIndividualResult$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult$Tag; + public static final field METADATA Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/GetFileMetadataIndividualResult$Tag; +} + +public class com/dropbox/core/v2/sharing/GetSharedLinkFileBuilder : com/dropbox/core/v2/DbxDownloadStyleBuilder { + public fun start ()Lcom/dropbox/core/DbxDownloader; + public fun withLinkPassword (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetSharedLinkFileBuilder; + public fun withPath (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetSharedLinkFileBuilder; +} + +public final class com/dropbox/core/v2/sharing/GetSharedLinkFileError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; + public static final field SHARED_LINK_ACCESS_DENIED Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; + public static final field SHARED_LINK_IS_DIRECTORY Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; + public static final field SHARED_LINK_NOT_FOUND Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; + public static final field UNSUPPORTED_LINK_TYPE Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; +} + +public class com/dropbox/core/v2/sharing/GetSharedLinkFileErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/GetSharedLinkFileError;)V +} + +public final class com/dropbox/core/v2/sharing/GetSharedLinksError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/GetSharedLinksError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public static fun path ()Lcom/dropbox/core/v2/sharing/GetSharedLinksError; + public static fun path (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetSharedLinksError; + public fun tag ()Lcom/dropbox/core/v2/sharing/GetSharedLinksError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/GetSharedLinksError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/GetSharedLinksError$Tag; + public static final field PATH Lcom/dropbox/core/v2/sharing/GetSharedLinksError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GetSharedLinksError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/GetSharedLinksError$Tag; +} + +public class com/dropbox/core/v2/sharing/GetSharedLinksErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/GetSharedLinksError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/GetSharedLinksError;)V +} + +public class com/dropbox/core/v2/sharing/GetSharedLinksResult { + protected final field links Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLinks ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/GroupInfo : com/dropbox/core/v2/teamcommon/GroupSummary { + protected final field groupType Lcom/dropbox/core/v2/teamcommon/GroupType; + protected final field isMember Z + protected final field isOwner Z + protected final field sameTeam Z + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;Lcom/dropbox/core/v2/teamcommon/GroupType;ZZZ)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;Lcom/dropbox/core/v2/teamcommon/GroupType;ZZZLjava/lang/String;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getGroupExternalId ()Ljava/lang/String; + public fun getGroupId ()Ljava/lang/String; + public fun getGroupManagementType ()Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public fun getGroupName ()Ljava/lang/String; + public fun getGroupType ()Lcom/dropbox/core/v2/teamcommon/GroupType; + public fun getIsMember ()Z + public fun getIsOwner ()Z + public fun getMemberCount ()Ljava/lang/Long; + public fun getSameTeam ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;Lcom/dropbox/core/v2/teamcommon/GroupType;ZZZ)Lcom/dropbox/core/v2/sharing/GroupInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/GroupInfo$Builder : com/dropbox/core/v2/teamcommon/GroupSummary$Builder { + protected final field groupType Lcom/dropbox/core/v2/teamcommon/GroupType; + protected final field isMember Z + protected final field isOwner Z + protected final field sameTeam Z + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;Lcom/dropbox/core/v2/teamcommon/GroupType;ZZZ)V + public fun build ()Lcom/dropbox/core/v2/sharing/GroupInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/teamcommon/GroupSummary; + public fun withGroupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GroupInfo$Builder; + public synthetic fun withGroupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamcommon/GroupSummary$Builder; + public fun withMemberCount (Ljava/lang/Long;)Lcom/dropbox/core/v2/sharing/GroupInfo$Builder; + public synthetic fun withMemberCount (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamcommon/GroupSummary$Builder; +} + +public class com/dropbox/core/v2/sharing/GroupMembershipInfo : com/dropbox/core/v2/sharing/MembershipInfo { + protected final field group Lcom/dropbox/core/v2/sharing/GroupInfo; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/GroupInfo;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/GroupInfo;Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getGroup ()Lcom/dropbox/core/v2/sharing/GroupInfo; + public fun getInitials ()Ljava/lang/String; + public fun getIsInherited ()Z + public fun getPermissions ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/GroupInfo;)Lcom/dropbox/core/v2/sharing/GroupMembershipInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/GroupMembershipInfo$Builder : com/dropbox/core/v2/sharing/MembershipInfo$Builder { + protected final field group Lcom/dropbox/core/v2/sharing/GroupInfo; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/GroupInfo;)V + public fun build ()Lcom/dropbox/core/v2/sharing/GroupMembershipInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/MembershipInfo; + public fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/GroupMembershipInfo$Builder; + public synthetic fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/GroupMembershipInfo$Builder; + public synthetic fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/GroupMembershipInfo$Builder; + public synthetic fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; +} + +public class com/dropbox/core/v2/sharing/InsufficientPlan { + protected final field message Ljava/lang/String; + protected final field upsellUrl Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMessage ()Ljava/lang/String; + public fun getUpsellUrl ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/InsufficientQuotaAmounts { + protected final field spaceLeft J + protected final field spaceNeeded J + protected final field spaceShortage J + public fun (JJJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getSpaceLeft ()J + public fun getSpaceNeeded ()J + public fun getSpaceShortage ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/InviteeInfo { + public static final field OTHER Lcom/dropbox/core/v2/sharing/InviteeInfo; + public static fun email (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/InviteeInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getEmailValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isEmail ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/InviteeInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/InviteeInfo$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/InviteeInfo$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/InviteeInfo; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/InviteeInfo;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/sharing/InviteeInfo$Tag : java/lang/Enum { + public static final field EMAIL Lcom/dropbox/core/v2/sharing/InviteeInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/InviteeInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/InviteeInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/InviteeInfo$Tag; +} + +public class com/dropbox/core/v2/sharing/InviteeMembershipInfo : com/dropbox/core/v2/sharing/MembershipInfo { + protected final field invitee Lcom/dropbox/core/v2/sharing/InviteeInfo; + protected final field user Lcom/dropbox/core/v2/sharing/UserInfo; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/InviteeInfo;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/InviteeInfo;Ljava/util/List;Ljava/lang/String;ZLcom/dropbox/core/v2/sharing/UserInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getInitials ()Ljava/lang/String; + public fun getInvitee ()Lcom/dropbox/core/v2/sharing/InviteeInfo; + public fun getIsInherited ()Z + public fun getPermissions ()Ljava/util/List; + public fun getUser ()Lcom/dropbox/core/v2/sharing/UserInfo; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/InviteeInfo;)Lcom/dropbox/core/v2/sharing/InviteeMembershipInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/InviteeMembershipInfo$Builder : com/dropbox/core/v2/sharing/MembershipInfo$Builder { + protected final field invitee Lcom/dropbox/core/v2/sharing/InviteeInfo; + protected field user Lcom/dropbox/core/v2/sharing/UserInfo; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/InviteeInfo;)V + public fun build ()Lcom/dropbox/core/v2/sharing/InviteeMembershipInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/MembershipInfo; + public fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/InviteeMembershipInfo$Builder; + public synthetic fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/InviteeMembershipInfo$Builder; + public synthetic fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/InviteeMembershipInfo$Builder; + public synthetic fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withUser (Lcom/dropbox/core/v2/sharing/UserInfo;)Lcom/dropbox/core/v2/sharing/InviteeMembershipInfo$Builder; +} + +public final class com/dropbox/core/v2/sharing/JobError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/JobError; + public fun equals (Ljava/lang/Object;)Z + public fun getRelinquishFolderMembershipErrorValue ()Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public fun getRemoveFolderMemberErrorValue ()Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public fun getUnshareFolderErrorValue ()Lcom/dropbox/core/v2/sharing/UnshareFolderError; + public fun hashCode ()I + public fun isOther ()Z + public fun isRelinquishFolderMembershipError ()Z + public fun isRemoveFolderMemberError ()Z + public fun isUnshareFolderError ()Z + public static fun relinquishFolderMembershipError (Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError;)Lcom/dropbox/core/v2/sharing/JobError; + public static fun removeFolderMemberError (Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError;)Lcom/dropbox/core/v2/sharing/JobError; + public fun tag ()Lcom/dropbox/core/v2/sharing/JobError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun unshareFolderError (Lcom/dropbox/core/v2/sharing/UnshareFolderError;)Lcom/dropbox/core/v2/sharing/JobError; +} + +public final class com/dropbox/core/v2/sharing/JobError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/JobError$Tag; + public static final field RELINQUISH_FOLDER_MEMBERSHIP_ERROR Lcom/dropbox/core/v2/sharing/JobError$Tag; + public static final field REMOVE_FOLDER_MEMBER_ERROR Lcom/dropbox/core/v2/sharing/JobError$Tag; + public static final field UNSHARE_FOLDER_ERROR Lcom/dropbox/core/v2/sharing/JobError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/JobError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/JobError$Tag; +} + +public final class com/dropbox/core/v2/sharing/JobStatus { + public static final field COMPLETE Lcom/dropbox/core/v2/sharing/JobStatus; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/sharing/JobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/sharing/JobError;)Lcom/dropbox/core/v2/sharing/JobStatus; + public fun getFailedValue ()Lcom/dropbox/core/v2/sharing/JobError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/JobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/JobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/sharing/JobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/sharing/JobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/sharing/JobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/JobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/JobStatus$Tag; +} + +public final class com/dropbox/core/v2/sharing/LinkAccessLevel : java/lang/Enum { + public static final field EDITOR Lcom/dropbox/core/v2/sharing/LinkAccessLevel; + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkAccessLevel; + public static final field VIEWER Lcom/dropbox/core/v2/sharing/LinkAccessLevel; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/LinkAccessLevel; + public static fun values ()[Lcom/dropbox/core/v2/sharing/LinkAccessLevel; +} + +public final class com/dropbox/core/v2/sharing/LinkAction : java/lang/Enum { + public static final field CHANGE_ACCESS_LEVEL Lcom/dropbox/core/v2/sharing/LinkAction; + public static final field CHANGE_AUDIENCE Lcom/dropbox/core/v2/sharing/LinkAction; + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkAction; + public static final field REMOVE_EXPIRY Lcom/dropbox/core/v2/sharing/LinkAction; + public static final field REMOVE_PASSWORD Lcom/dropbox/core/v2/sharing/LinkAction; + public static final field SET_EXPIRY Lcom/dropbox/core/v2/sharing/LinkAction; + public static final field SET_PASSWORD Lcom/dropbox/core/v2/sharing/LinkAction; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/LinkAction; + public static fun values ()[Lcom/dropbox/core/v2/sharing/LinkAction; +} + +public final class com/dropbox/core/v2/sharing/LinkAudience : java/lang/Enum { + public static final field MEMBERS Lcom/dropbox/core/v2/sharing/LinkAudience; + public static final field NO_ONE Lcom/dropbox/core/v2/sharing/LinkAudience; + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkAudience; + public static final field PASSWORD Lcom/dropbox/core/v2/sharing/LinkAudience; + public static final field PUBLIC Lcom/dropbox/core/v2/sharing/LinkAudience; + public static final field TEAM Lcom/dropbox/core/v2/sharing/LinkAudience; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/LinkAudience; + public static fun values ()[Lcom/dropbox/core/v2/sharing/LinkAudience; +} + +public class com/dropbox/core/v2/sharing/LinkAudience$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/LinkAudience$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/LinkAudience; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/LinkAudience;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/sharing/LinkAudienceDisallowedReason : java/lang/Enum { + public static final field DELETE_AND_RECREATE Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static final field PERMISSION_DENIED Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static final field RESTRICTED_BY_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static final field RESTRICTED_BY_TEAM Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static final field USER_ACCOUNT_TYPE Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static final field USER_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public static fun values ()[Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; +} + +public class com/dropbox/core/v2/sharing/LinkAudienceOption { + protected final field allowed Z + protected final field audience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field disallowedReason Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public fun (Lcom/dropbox/core/v2/sharing/LinkAudience;Z)V + public fun (Lcom/dropbox/core/v2/sharing/LinkAudience;ZLcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllowed ()Z + public fun getAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getDisallowedReason ()Lcom/dropbox/core/v2/sharing/LinkAudienceDisallowedReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/LinkExpiry { + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkExpiry; + public static final field REMOVE_EXPIRY Lcom/dropbox/core/v2/sharing/LinkExpiry; + public fun equals (Ljava/lang/Object;)Z + public fun getSetExpiryValue ()Ljava/util/Date; + public fun hashCode ()I + public fun isOther ()Z + public fun isRemoveExpiry ()Z + public fun isSetExpiry ()Z + public static fun setExpiry (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/LinkExpiry; + public fun tag ()Lcom/dropbox/core/v2/sharing/LinkExpiry$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/LinkExpiry$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkExpiry$Tag; + public static final field REMOVE_EXPIRY Lcom/dropbox/core/v2/sharing/LinkExpiry$Tag; + public static final field SET_EXPIRY Lcom/dropbox/core/v2/sharing/LinkExpiry$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/LinkExpiry$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/LinkExpiry$Tag; +} + +public class com/dropbox/core/v2/sharing/LinkMetadata { + protected final field expires Ljava/util/Date; + protected final field url Ljava/lang/String; + protected final field visibility Lcom/dropbox/core/v2/sharing/Visibility; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/Visibility;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/Visibility;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExpires ()Ljava/util/Date; + public fun getUrl ()Ljava/lang/String; + public fun getVisibility ()Lcom/dropbox/core/v2/sharing/Visibility; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/LinkPassword { + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkPassword; + public static final field REMOVE_PASSWORD Lcom/dropbox/core/v2/sharing/LinkPassword; + public fun equals (Ljava/lang/Object;)Z + public fun getSetPasswordValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isOther ()Z + public fun isRemovePassword ()Z + public fun isSetPassword ()Z + public static fun setPassword (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/LinkPassword; + public fun tag ()Lcom/dropbox/core/v2/sharing/LinkPassword$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/LinkPassword$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/LinkPassword$Tag; + public static final field REMOVE_PASSWORD Lcom/dropbox/core/v2/sharing/LinkPassword$Tag; + public static final field SET_PASSWORD Lcom/dropbox/core/v2/sharing/LinkPassword$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/LinkPassword$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/LinkPassword$Tag; +} + +public class com/dropbox/core/v2/sharing/LinkPermission { + protected final field action Lcom/dropbox/core/v2/sharing/LinkAction; + protected final field allow Z + protected final field reason Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun (Lcom/dropbox/core/v2/sharing/LinkAction;Z)V + public fun (Lcom/dropbox/core/v2/sharing/LinkAction;ZLcom/dropbox/core/v2/sharing/PermissionDeniedReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAction ()Lcom/dropbox/core/v2/sharing/LinkAction; + public fun getAllow ()Z + public fun getReason ()Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/LinkPermissions { + protected final field allowComments Z + protected final field allowDownload Z + protected final field audienceOptions Ljava/util/List; + protected final field canAllowDownload Z + protected final field canDisallowDownload Z + protected final field canRemoveExpiry Z + protected final field canRemovePassword Ljava/lang/Boolean; + protected final field canRevoke Z + protected final field canSetExpiry Z + protected final field canSetPassword Ljava/lang/Boolean; + protected final field canUseExtendedSharingControls Ljava/lang/Boolean; + protected final field effectiveAudience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field linkAccessLevel Lcom/dropbox/core/v2/sharing/LinkAccessLevel; + protected final field requestedVisibility Lcom/dropbox/core/v2/sharing/RequestedVisibility; + protected final field requirePassword Ljava/lang/Boolean; + protected final field resolvedVisibility Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + protected final field revokeFailureReason Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + protected final field teamRestrictsComments Z + protected final field visibilityPolicies Ljava/util/List; + public fun (ZLjava/util/List;ZZZZZZZ)V + public fun (ZLjava/util/List;ZZZZZZZLcom/dropbox/core/v2/sharing/ResolvedVisibility;Lcom/dropbox/core/v2/sharing/RequestedVisibility;Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason;Lcom/dropbox/core/v2/sharing/LinkAudience;Lcom/dropbox/core/v2/sharing/LinkAccessLevel;Ljava/util/List;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllowComments ()Z + public fun getAllowDownload ()Z + public fun getAudienceOptions ()Ljava/util/List; + public fun getCanAllowDownload ()Z + public fun getCanDisallowDownload ()Z + public fun getCanRemoveExpiry ()Z + public fun getCanRemovePassword ()Ljava/lang/Boolean; + public fun getCanRevoke ()Z + public fun getCanSetExpiry ()Z + public fun getCanSetPassword ()Ljava/lang/Boolean; + public fun getCanUseExtendedSharingControls ()Ljava/lang/Boolean; + public fun getEffectiveAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getLinkAccessLevel ()Lcom/dropbox/core/v2/sharing/LinkAccessLevel; + public fun getRequestedVisibility ()Lcom/dropbox/core/v2/sharing/RequestedVisibility; + public fun getRequirePassword ()Ljava/lang/Boolean; + public fun getResolvedVisibility ()Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public fun getRevokeFailureReason ()Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public fun getTeamRestrictsComments ()Z + public fun getVisibilityPolicies ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder (ZLjava/util/List;ZZZZZZZ)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/LinkPermissions$Builder { + protected final field allowComments Z + protected final field allowDownload Z + protected field audienceOptions Ljava/util/List; + protected final field canAllowDownload Z + protected final field canDisallowDownload Z + protected final field canRemoveExpiry Z + protected field canRemovePassword Ljava/lang/Boolean; + protected final field canRevoke Z + protected final field canSetExpiry Z + protected field canSetPassword Ljava/lang/Boolean; + protected field canUseExtendedSharingControls Ljava/lang/Boolean; + protected field effectiveAudience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected field linkAccessLevel Lcom/dropbox/core/v2/sharing/LinkAccessLevel; + protected field requestedVisibility Lcom/dropbox/core/v2/sharing/RequestedVisibility; + protected field requirePassword Ljava/lang/Boolean; + protected field resolvedVisibility Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + protected field revokeFailureReason Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + protected final field teamRestrictsComments Z + protected final field visibilityPolicies Ljava/util/List; + protected fun (ZLjava/util/List;ZZZZZZZ)V + public fun build ()Lcom/dropbox/core/v2/sharing/LinkPermissions; + public fun withAudienceOptions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withCanRemovePassword (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withCanSetPassword (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withCanUseExtendedSharingControls (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withEffectiveAudience (Lcom/dropbox/core/v2/sharing/LinkAudience;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withLinkAccessLevel (Lcom/dropbox/core/v2/sharing/LinkAccessLevel;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withRequestedVisibility (Lcom/dropbox/core/v2/sharing/RequestedVisibility;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withRequirePassword (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withResolvedVisibility (Lcom/dropbox/core/v2/sharing/ResolvedVisibility;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; + public fun withRevokeFailureReason (Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason;)Lcom/dropbox/core/v2/sharing/LinkPermissions$Builder; +} + +public class com/dropbox/core/v2/sharing/LinkSettings { + protected final field accessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field audience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field expiry Lcom/dropbox/core/v2/sharing/LinkExpiry; + protected final field password Lcom/dropbox/core/v2/sharing/LinkPassword; + public fun ()V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/LinkAudience;Lcom/dropbox/core/v2/sharing/LinkExpiry;Lcom/dropbox/core/v2/sharing/LinkPassword;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getExpiry ()Lcom/dropbox/core/v2/sharing/LinkExpiry; + public fun getPassword ()Lcom/dropbox/core/v2/sharing/LinkPassword; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/sharing/LinkSettings$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/LinkSettings$Builder { + protected field accessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field audience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected field expiry Lcom/dropbox/core/v2/sharing/LinkExpiry; + protected field password Lcom/dropbox/core/v2/sharing/LinkPassword; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/sharing/LinkSettings; + public fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/LinkSettings$Builder; + public fun withAudience (Lcom/dropbox/core/v2/sharing/LinkAudience;)Lcom/dropbox/core/v2/sharing/LinkSettings$Builder; + public fun withExpiry (Lcom/dropbox/core/v2/sharing/LinkExpiry;)Lcom/dropbox/core/v2/sharing/LinkSettings$Builder; + public fun withPassword (Lcom/dropbox/core/v2/sharing/LinkPassword;)Lcom/dropbox/core/v2/sharing/LinkSettings$Builder; +} + +public class com/dropbox/core/v2/sharing/ListFileMembersBatchResult { + protected final field file Ljava/lang/String; + protected final field result Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFile ()Ljava/lang/String; + public fun getResult ()Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/ListFileMembersBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/SharedFileMembers; + public fun withActions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/ListFileMembersBuilder; + public fun withIncludeInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/ListFileMembersBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/sharing/ListFileMembersBuilder; +} + +public final class com/dropbox/core/v2/sharing/ListFileMembersContinueError { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getUserErrorValue ()Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isInvalidCursor ()Z + public fun isOther ()Z + public fun isUserError ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userError (Lcom/dropbox/core/v2/sharing/SharingUserError;)Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError; +} + +public final class com/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag; + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag; + public static final field USER_ERROR Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError$Tag; +} + +public class com/dropbox/core/v2/sharing/ListFileMembersContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ListFileMembersContinueError;)V +} + +public class com/dropbox/core/v2/sharing/ListFileMembersCountResult { + protected final field memberCount J + protected final field members Lcom/dropbox/core/v2/sharing/SharedFileMembers; + public fun (Lcom/dropbox/core/v2/sharing/SharedFileMembers;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getMemberCount ()J + public fun getMembers ()Lcom/dropbox/core/v2/sharing/SharedFileMembers; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ListFileMembersError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFileMembersError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/ListFileMembersError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getUserErrorValue ()Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isUserError ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/ListFileMembersError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userError (Lcom/dropbox/core/v2/sharing/SharingUserError;)Lcom/dropbox/core/v2/sharing/ListFileMembersError; +} + +public final class com/dropbox/core/v2/sharing/ListFileMembersError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/ListFileMembersError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFileMembersError$Tag; + public static final field USER_ERROR Lcom/dropbox/core/v2/sharing/ListFileMembersError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFileMembersError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ListFileMembersError$Tag; +} + +public class com/dropbox/core/v2/sharing/ListFileMembersErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ListFileMembersError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ListFileMembersError;)V +} + +public final class com/dropbox/core/v2/sharing/ListFileMembersIndividualResult { + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getResultValue ()Lcom/dropbox/core/v2/sharing/ListFileMembersCountResult; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isResult ()Z + public static fun result (Lcom/dropbox/core/v2/sharing/ListFileMembersCountResult;)Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult; + public fun tag ()Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ListFileMembersIndividualResult$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult$Tag; + public static final field RESULT Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ListFileMembersIndividualResult$Tag; +} + +public final class com/dropbox/core/v2/sharing/ListFilesContinueError { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/sharing/ListFilesContinueError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFilesContinueError; + public fun equals (Ljava/lang/Object;)Z + public fun getUserErrorValue ()Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun hashCode ()I + public fun isInvalidCursor ()Z + public fun isOther ()Z + public fun isUserError ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/ListFilesContinueError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userError (Lcom/dropbox/core/v2/sharing/SharingUserError;)Lcom/dropbox/core/v2/sharing/ListFilesContinueError; +} + +public final class com/dropbox/core/v2/sharing/ListFilesContinueError$Tag : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/sharing/ListFilesContinueError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFilesContinueError$Tag; + public static final field USER_ERROR Lcom/dropbox/core/v2/sharing/ListFilesContinueError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFilesContinueError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ListFilesContinueError$Tag; +} + +public class com/dropbox/core/v2/sharing/ListFilesContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ListFilesContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ListFilesContinueError;)V +} + +public class com/dropbox/core/v2/sharing/ListFilesResult { + protected final field cursor Ljava/lang/String; + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/ListFolderMembersBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/SharedFolderMembers; + public fun withActions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/ListFolderMembersBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/sharing/ListFolderMembersBuilder; +} + +public final class com/dropbox/core/v2/sharing/ListFolderMembersContinueError { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isInvalidCursor ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ListFolderMembersContinueError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError$Tag; + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError$Tag; +} + +public class com/dropbox/core/v2/sharing/ListFolderMembersContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ListFolderMembersContinueError;)V +} + +public class com/dropbox/core/v2/sharing/ListFoldersBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/ListFoldersResult; + public fun withActions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/ListFoldersBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/sharing/ListFoldersBuilder; +} + +public final class com/dropbox/core/v2/sharing/ListFoldersContinueError : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/sharing/ListFoldersContinueError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListFoldersContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListFoldersContinueError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ListFoldersContinueError; +} + +public class com/dropbox/core/v2/sharing/ListFoldersContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ListFoldersContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ListFoldersContinueError;)V +} + +public class com/dropbox/core/v2/sharing/ListFoldersResult { + protected final field cursor Ljava/lang/String; + protected final field entries Ljava/util/List; + public fun (Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getEntries ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/ListMountableFoldersBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/ListFoldersResult; + public fun withActions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/ListMountableFoldersBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/sharing/ListMountableFoldersBuilder; +} + +public class com/dropbox/core/v2/sharing/ListReceivedFilesBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/ListFilesResult; + public fun withActions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/ListReceivedFilesBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/sharing/ListReceivedFilesBuilder; +} + +public class com/dropbox/core/v2/sharing/ListSharedLinksBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/ListSharedLinksResult; + public fun withCursor (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListSharedLinksBuilder; + public fun withDirectOnly (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/ListSharedLinksBuilder; + public fun withPath (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListSharedLinksBuilder; +} + +public final class com/dropbox/core/v2/sharing/ListSharedLinksError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListSharedLinksError; + public static final field RESET Lcom/dropbox/core/v2/sharing/ListSharedLinksError; + public fun equals (Ljava/lang/Object;)Z + public fun getPathValue ()Lcom/dropbox/core/v2/files/LookupError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPath ()Z + public fun isReset ()Z + public static fun path (Lcom/dropbox/core/v2/files/LookupError;)Lcom/dropbox/core/v2/sharing/ListSharedLinksError; + public fun tag ()Lcom/dropbox/core/v2/sharing/ListSharedLinksError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ListSharedLinksError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/ListSharedLinksError$Tag; + public static final field PATH Lcom/dropbox/core/v2/sharing/ListSharedLinksError$Tag; + public static final field RESET Lcom/dropbox/core/v2/sharing/ListSharedLinksError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ListSharedLinksError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ListSharedLinksError$Tag; +} + +public class com/dropbox/core/v2/sharing/ListSharedLinksErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ListSharedLinksError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ListSharedLinksError;)V +} + +public class com/dropbox/core/v2/sharing/ListSharedLinksResult { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field links Ljava/util/List; + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getLinks ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/MemberAccessLevelResult { + protected final field accessDetails Ljava/util/List; + protected final field accessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field warning Ljava/lang/String; + public fun ()V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessDetails ()Ljava/util/List; + public fun getAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getWarning ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/MemberAccessLevelResult$Builder { + protected field accessDetails Ljava/util/List; + protected field accessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field warning Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun withAccessDetails (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult$Builder; + public fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult$Builder; + public fun withWarning (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult$Builder; +} + +public final class com/dropbox/core/v2/sharing/MemberAction : java/lang/Enum { + public static final field LEAVE_A_COPY Lcom/dropbox/core/v2/sharing/MemberAction; + public static final field MAKE_EDITOR Lcom/dropbox/core/v2/sharing/MemberAction; + public static final field MAKE_OWNER Lcom/dropbox/core/v2/sharing/MemberAction; + public static final field MAKE_VIEWER Lcom/dropbox/core/v2/sharing/MemberAction; + public static final field MAKE_VIEWER_NO_COMMENT Lcom/dropbox/core/v2/sharing/MemberAction; + public static final field OTHER Lcom/dropbox/core/v2/sharing/MemberAction; + public static final field REMOVE Lcom/dropbox/core/v2/sharing/MemberAction; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MemberAction; + public static fun values ()[Lcom/dropbox/core/v2/sharing/MemberAction; +} + +public class com/dropbox/core/v2/sharing/MemberPermission { + protected final field action Lcom/dropbox/core/v2/sharing/MemberAction; + protected final field allow Z + protected final field reason Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun (Lcom/dropbox/core/v2/sharing/MemberAction;Z)V + public fun (Lcom/dropbox/core/v2/sharing/MemberAction;ZLcom/dropbox/core/v2/sharing/PermissionDeniedReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAction ()Lcom/dropbox/core/v2/sharing/MemberAction; + public fun getAllow ()Z + public fun getReason ()Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/MemberPolicy : java/lang/Enum { + public static final field ANYONE Lcom/dropbox/core/v2/sharing/MemberPolicy; + public static final field OTHER Lcom/dropbox/core/v2/sharing/MemberPolicy; + public static final field TEAM Lcom/dropbox/core/v2/sharing/MemberPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MemberPolicy; + public static fun values ()[Lcom/dropbox/core/v2/sharing/MemberPolicy; +} + +public class com/dropbox/core/v2/sharing/MemberPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/MemberPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/MemberPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/MemberPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/sharing/MemberSelector { + public static final field OTHER Lcom/dropbox/core/v2/sharing/MemberSelector; + public static fun dropboxId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MemberSelector; + public static fun email (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MemberSelector; + public fun equals (Ljava/lang/Object;)Z + public fun getDropboxIdValue ()Ljava/lang/String; + public fun getEmailValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isDropboxId ()Z + public fun isEmail ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/MemberSelector$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/MemberSelector$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/MemberSelector$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/MemberSelector; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/MemberSelector;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/sharing/MemberSelector$Tag : java/lang/Enum { + public static final field DROPBOX_ID Lcom/dropbox/core/v2/sharing/MemberSelector$Tag; + public static final field EMAIL Lcom/dropbox/core/v2/sharing/MemberSelector$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/MemberSelector$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MemberSelector$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/MemberSelector$Tag; +} + +public class com/dropbox/core/v2/sharing/MembershipInfo { + protected final field accessType Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field initials Ljava/lang/String; + protected final field isInherited Z + protected final field permissions Ljava/util/List; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getInitials ()Ljava/lang/String; + public fun getIsInherited ()Z + public fun getPermissions ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/MembershipInfo$Builder { + protected final field accessType Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field initials Ljava/lang/String; + protected field isInherited Z + protected field permissions Ljava/util/List; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun build ()Lcom/dropbox/core/v2/sharing/MembershipInfo; + public fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; +} + +public final class com/dropbox/core/v2/sharing/ModifySharedLinkSettingsError { + public static final field EMAIL_NOT_VERIFIED Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError; + public static final field SHARED_LINK_ACCESS_DENIED Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError; + public static final field SHARED_LINK_NOT_FOUND Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError; + public static final field UNSUPPORTED_LINK_TYPE Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError; + public fun equals (Ljava/lang/Object;)Z + public fun getSettingsErrorValue ()Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError; + public fun hashCode ()I + public fun isEmailNotVerified ()Z + public fun isOther ()Z + public fun isSettingsError ()Z + public fun isSharedLinkAccessDenied ()Z + public fun isSharedLinkNotFound ()Z + public fun isUnsupportedLinkType ()Z + public static fun settingsError (Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError;)Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError; + public fun tag ()Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag : java/lang/Enum { + public static final field EMAIL_NOT_VERIFIED Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public static final field SETTINGS_ERROR Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public static final field SHARED_LINK_ACCESS_DENIED Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public static final field SHARED_LINK_NOT_FOUND Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public static final field UNSUPPORTED_LINK_TYPE Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError$Tag; +} + +public class com/dropbox/core/v2/sharing/ModifySharedLinkSettingsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ModifySharedLinkSettingsError;)V +} + +public final class com/dropbox/core/v2/sharing/MountFolderError { + public static final field ALREADY_MOUNTED Lcom/dropbox/core/v2/sharing/MountFolderError; + public static final field INSIDE_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/MountFolderError; + public static final field NOT_MOUNTABLE Lcom/dropbox/core/v2/sharing/MountFolderError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/MountFolderError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/MountFolderError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/MountFolderError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun getInsufficientQuotaValue ()Lcom/dropbox/core/v2/sharing/InsufficientQuotaAmounts; + public fun hashCode ()I + public static fun insufficientQuota (Lcom/dropbox/core/v2/sharing/InsufficientQuotaAmounts;)Lcom/dropbox/core/v2/sharing/MountFolderError; + public fun isAccessError ()Z + public fun isAlreadyMounted ()Z + public fun isInsideSharedFolder ()Z + public fun isInsufficientQuota ()Z + public fun isNoPermission ()Z + public fun isNotMountable ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/MountFolderError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static final field ALREADY_MOUNTED Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static final field INSIDE_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static final field NOT_MOUNTABLE Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/MountFolderError$Tag; +} + +public class com/dropbox/core/v2/sharing/MountFolderErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/MountFolderError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/MountFolderError;)V +} + +public class com/dropbox/core/v2/sharing/ParentFolderAccessInfo { + protected final field folderName Ljava/lang/String; + protected final field path Ljava/lang/String; + protected final field permissions Ljava/util/List; + protected final field sharedFolderId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolderName ()Ljava/lang/String; + public fun getPath ()Ljava/lang/String; + public fun getPermissions ()Ljava/util/List; + public fun getSharedFolderId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/PathLinkMetadata : com/dropbox/core/v2/sharing/LinkMetadata { + protected final field path Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/Visibility;Ljava/lang/String;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/Visibility;Ljava/lang/String;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExpires ()Ljava/util/Date; + public fun getPath ()Ljava/lang/String; + public fun getUrl ()Ljava/lang/String; + public fun getVisibility ()Lcom/dropbox/core/v2/sharing/Visibility; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/PendingUploadMode : java/lang/Enum { + public static final field FILE Lcom/dropbox/core/v2/sharing/PendingUploadMode; + public static final field FOLDER Lcom/dropbox/core/v2/sharing/PendingUploadMode; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/PendingUploadMode; + public static fun values ()[Lcom/dropbox/core/v2/sharing/PendingUploadMode; +} + +public final class com/dropbox/core/v2/sharing/PermissionDeniedReason { + public static final field FOLDER_IS_INSIDE_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field FOLDER_IS_LIMITED_TEAM_FOLDER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field OTHER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field OWNER_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field PERMISSION_DENIED Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field RESTRICTED_BY_PARENT_FOLDER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field RESTRICTED_BY_TEAM Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field TARGET_IS_INDIRECT_MEMBER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field TARGET_IS_OWNER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field TARGET_IS_SELF Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field TARGET_NOT_ACTIVE Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field USER_ACCOUNT_TYPE Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field USER_NOT_ALLOWED_BY_OWNER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field USER_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public static final field USER_NOT_SAME_TEAM_AS_OWNER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun equals (Ljava/lang/Object;)Z + public fun getInsufficientPlanValue ()Lcom/dropbox/core/v2/sharing/InsufficientPlan; + public fun hashCode ()I + public static fun insufficientPlan (Lcom/dropbox/core/v2/sharing/InsufficientPlan;)Lcom/dropbox/core/v2/sharing/PermissionDeniedReason; + public fun isFolderIsInsideSharedFolder ()Z + public fun isFolderIsLimitedTeamFolder ()Z + public fun isInsufficientPlan ()Z + public fun isOther ()Z + public fun isOwnerNotOnTeam ()Z + public fun isPermissionDenied ()Z + public fun isRestrictedByParentFolder ()Z + public fun isRestrictedByTeam ()Z + public fun isTargetIsIndirectMember ()Z + public fun isTargetIsOwner ()Z + public fun isTargetIsSelf ()Z + public fun isTargetNotActive ()Z + public fun isUserAccountType ()Z + public fun isUserNotAllowedByOwner ()Z + public fun isUserNotOnTeam ()Z + public fun isUserNotSameTeamAsOwner ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/PermissionDeniedReason$Tag : java/lang/Enum { + public static final field FOLDER_IS_INSIDE_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field FOLDER_IS_LIMITED_TEAM_FOLDER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field INSUFFICIENT_PLAN Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field OWNER_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field PERMISSION_DENIED Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field RESTRICTED_BY_PARENT_FOLDER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field RESTRICTED_BY_TEAM Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field TARGET_IS_INDIRECT_MEMBER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field TARGET_IS_OWNER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field TARGET_IS_SELF Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field TARGET_NOT_ACTIVE Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field USER_ACCOUNT_TYPE Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field USER_NOT_ALLOWED_BY_OWNER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field USER_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static final field USER_NOT_SAME_TEAM_AS_OWNER Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/PermissionDeniedReason$Tag; +} + +public final class com/dropbox/core/v2/sharing/RelinquishFileMembershipError { + public static final field GROUP_ACCESS Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isGroupAccess ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag; + public static final field GROUP_ACCESS Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError$Tag; +} + +public class com/dropbox/core/v2/sharing/RelinquishFileMembershipErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/RelinquishFileMembershipError;)V +} + +public final class com/dropbox/core/v2/sharing/RelinquishFolderMembershipError { + public static final field FOLDER_OWNER Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public static final field GROUP_ACCESS Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public static final field MOUNTED Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public static final field NO_EXPLICIT_ACCESS Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isFolderOwner ()Z + public fun isGroupAccess ()Z + public fun isMounted ()Z + public fun isNoExplicitAccess ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun isTeamFolder ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static final field FOLDER_OWNER Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static final field GROUP_ACCESS Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static final field MOUNTED Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static final field NO_EXPLICIT_ACCESS Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError$Tag; +} + +public class com/dropbox/core/v2/sharing/RelinquishFolderMembershipErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/RelinquishFolderMembershipError;)V +} + +public final class com/dropbox/core/v2/sharing/RemoveFileMemberError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/RemoveFileMemberError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/RemoveFileMemberError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getNoExplicitAccessValue ()Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun getUserErrorValue ()Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isNoExplicitAccess ()Z + public fun isOther ()Z + public fun isUserError ()Z + public static fun noExplicitAccess (Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult;)Lcom/dropbox/core/v2/sharing/RemoveFileMemberError; + public fun tag ()Lcom/dropbox/core/v2/sharing/RemoveFileMemberError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userError (Lcom/dropbox/core/v2/sharing/SharingUserError;)Lcom/dropbox/core/v2/sharing/RemoveFileMemberError; +} + +public final class com/dropbox/core/v2/sharing/RemoveFileMemberError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/RemoveFileMemberError$Tag; + public static final field NO_EXPLICIT_ACCESS Lcom/dropbox/core/v2/sharing/RemoveFileMemberError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RemoveFileMemberError$Tag; + public static final field USER_ERROR Lcom/dropbox/core/v2/sharing/RemoveFileMemberError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RemoveFileMemberError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RemoveFileMemberError$Tag; +} + +public class com/dropbox/core/v2/sharing/RemoveFileMemberErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/RemoveFileMemberError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/RemoveFileMemberError;)V +} + +public final class com/dropbox/core/v2/sharing/RemoveFolderMemberError { + public static final field FOLDER_OWNER Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public static final field GROUP_ACCESS Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun getMemberErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderMemberError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isFolderOwner ()Z + public fun isGroupAccess ()Z + public fun isMemberError ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun isTeamFolder ()Z + public fun isTooManyFiles ()Z + public static fun memberError (Lcom/dropbox/core/v2/sharing/SharedFolderMemberError;)Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public fun tag ()Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static final field FOLDER_OWNER Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static final field GROUP_ACCESS Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static final field MEMBER_ERROR Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError$Tag; +} + +public class com/dropbox/core/v2/sharing/RemoveFolderMemberErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError;)V +} + +public final class com/dropbox/core/v2/sharing/RemoveMemberJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus; + public static fun complete (Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult;)Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError;)Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus; + public fun getCompleteValue ()Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun getFailedValue ()Lcom/dropbox/core/v2/sharing/RemoveFolderMemberError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/RemoveMemberJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RemoveMemberJobStatus$Tag; +} + +public final class com/dropbox/core/v2/sharing/RequestedLinkAccessLevel : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + public static final field EDITOR Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + public static final field MAX Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + public static final field OTHER Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + public static final field VIEWER Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; +} + +public final class com/dropbox/core/v2/sharing/RequestedVisibility : java/lang/Enum { + public static final field PASSWORD Lcom/dropbox/core/v2/sharing/RequestedVisibility; + public static final field PUBLIC Lcom/dropbox/core/v2/sharing/RequestedVisibility; + public static final field TEAM_ONLY Lcom/dropbox/core/v2/sharing/RequestedVisibility; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RequestedVisibility; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RequestedVisibility; +} + +public final class com/dropbox/core/v2/sharing/ResolvedVisibility : java/lang/Enum { + public static final field NO_ONE Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static final field ONLY_YOU Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static final field PASSWORD Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static final field PUBLIC Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static final field SHARED_FOLDER_ONLY Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static final field TEAM_AND_PASSWORD Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static final field TEAM_ONLY Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ResolvedVisibility; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ResolvedVisibility; +} + +public final class com/dropbox/core/v2/sharing/RevokeSharedLinkError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; + public static final field SHARED_LINK_ACCESS_DENIED Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; + public static final field SHARED_LINK_MALFORMED Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; + public static final field SHARED_LINK_NOT_FOUND Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; + public static final field UNSUPPORTED_LINK_TYPE Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; +} + +public class com/dropbox/core/v2/sharing/RevokeSharedLinkErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/RevokeSharedLinkError;)V +} + +public final class com/dropbox/core/v2/sharing/SetAccessInheritanceError { + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/SetAccessInheritanceError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError$Tag; +} + +public class com/dropbox/core/v2/sharing/SetAccessInheritanceErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/SetAccessInheritanceError;)V +} + +public class com/dropbox/core/v2/sharing/ShareFolderBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/ShareFolderLaunch; + public fun withAccessInheritance (Lcom/dropbox/core/v2/sharing/AccessInheritance;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun withAclUpdatePolicy (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun withActions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun withForceAsync (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun withLinkSettings (Lcom/dropbox/core/v2/sharing/LinkSettings;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun withMemberPolicy (Lcom/dropbox/core/v2/sharing/MemberPolicy;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun withSharedLinkPolicy (Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; + public fun withViewerInfoPolicy (Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;)Lcom/dropbox/core/v2/sharing/ShareFolderBuilder; +} + +public final class com/dropbox/core/v2/sharing/ShareFolderError { + public static final field DISALLOWED_SHARED_LINK_POLICY Lcom/dropbox/core/v2/sharing/ShareFolderError; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/ShareFolderError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/ShareFolderError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ShareFolderError; + public static final field TEAM_POLICY_DISALLOWS_MEMBER_POLICY Lcom/dropbox/core/v2/sharing/ShareFolderError; + public static fun badPath (Lcom/dropbox/core/v2/sharing/SharePathError;)Lcom/dropbox/core/v2/sharing/ShareFolderError; + public fun equals (Ljava/lang/Object;)Z + public fun getBadPathValue ()Lcom/dropbox/core/v2/sharing/SharePathError; + public fun hashCode ()I + public fun isBadPath ()Z + public fun isDisallowedSharedLinkPolicy ()Z + public fun isEmailUnverified ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun isTeamPolicyDisallowsMemberPolicy ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ShareFolderError$Tag : java/lang/Enum { + public static final field BAD_PATH Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public static final field DISALLOWED_SHARED_LINK_POLICY Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public static final field TEAM_POLICY_DISALLOWS_MEMBER_POLICY Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ShareFolderError$Tag; +} + +public class com/dropbox/core/v2/sharing/ShareFolderErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/ShareFolderError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/ShareFolderError;)V +} + +public final class com/dropbox/core/v2/sharing/ShareFolderJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus; + public static fun complete (Lcom/dropbox/core/v2/sharing/SharedFolderMetadata;)Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/sharing/ShareFolderError;)Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus; + public fun getCompleteValue ()Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun getFailedValue ()Lcom/dropbox/core/v2/sharing/ShareFolderError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ShareFolderJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ShareFolderJobStatus$Tag; +} + +public final class com/dropbox/core/v2/sharing/ShareFolderLaunch { + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderLaunch; + public static fun complete (Lcom/dropbox/core/v2/sharing/SharedFolderMetadata;)Lcom/dropbox/core/v2/sharing/ShareFolderLaunch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/ShareFolderLaunch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/ShareFolderLaunch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/sharing/ShareFolderLaunch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/sharing/ShareFolderLaunch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ShareFolderLaunch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ShareFolderLaunch$Tag; +} + +public final class com/dropbox/core/v2/sharing/SharePathError { + public static final field CONTAINS_APP_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field CONTAINS_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field CONTAINS_TEAM_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field INSIDE_APP_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field INSIDE_OSX_PACKAGE Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field INSIDE_PUBLIC_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field INSIDE_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field INVALID_PATH Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field IS_APP_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field IS_FAMILY Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field IS_FILE Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field IS_OSX_PACKAGE Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field IS_PUBLIC_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field IS_VAULT Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field IS_VAULT_LOCKED Lcom/dropbox/core/v2/sharing/SharePathError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharePathError; + public static fun alreadyShared (Lcom/dropbox/core/v2/sharing/SharedFolderMetadata;)Lcom/dropbox/core/v2/sharing/SharePathError; + public fun equals (Ljava/lang/Object;)Z + public fun getAlreadySharedValue ()Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun hashCode ()I + public fun isAlreadyShared ()Z + public fun isContainsAppFolder ()Z + public fun isContainsSharedFolder ()Z + public fun isContainsTeamFolder ()Z + public fun isInsideAppFolder ()Z + public fun isInsideOsxPackage ()Z + public fun isInsidePublicFolder ()Z + public fun isInsideSharedFolder ()Z + public fun isInvalidPath ()Z + public fun isIsAppFolder ()Z + public fun isIsFamily ()Z + public fun isIsFile ()Z + public fun isIsOsxPackage ()Z + public fun isIsPublicFolder ()Z + public fun isIsVault ()Z + public fun isIsVaultLocked ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/SharePathError$Tag : java/lang/Enum { + public static final field ALREADY_SHARED Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field CONTAINS_APP_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field CONTAINS_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field CONTAINS_TEAM_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field INSIDE_APP_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field INSIDE_OSX_PACKAGE Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field INSIDE_PUBLIC_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field INSIDE_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field INVALID_PATH Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field IS_APP_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field IS_FAMILY Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field IS_FILE Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field IS_OSX_PACKAGE Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field IS_PUBLIC_FOLDER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field IS_VAULT Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field IS_VAULT_LOCKED Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharePathError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharePathError$Tag; +} + +public class com/dropbox/core/v2/sharing/SharedContentLinkMetadata : com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase { + protected final field audienceExceptions Lcom/dropbox/core/v2/sharing/AudienceExceptions; + protected final field url Ljava/lang/String; + public fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;ZLjava/lang/String;)V + public fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;ZLjava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;Ljava/util/Date;Lcom/dropbox/core/v2/sharing/AudienceExceptions;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getAudienceExceptions ()Lcom/dropbox/core/v2/sharing/AudienceExceptions; + public fun getAudienceOptions ()Ljava/util/List; + public fun getAudienceRestrictingSharedFolder ()Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder; + public fun getCurrentAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getExpiry ()Ljava/util/Date; + public fun getLinkPermissions ()Ljava/util/List; + public fun getPasswordProtected ()Z + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;ZLjava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedContentLinkMetadata$Builder : com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder { + protected field audienceExceptions Lcom/dropbox/core/v2/sharing/AudienceExceptions; + protected final field url Ljava/lang/String; + protected fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;ZLjava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase; + public fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata$Builder; + public synthetic fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; + public fun withAudienceExceptions (Lcom/dropbox/core/v2/sharing/AudienceExceptions;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata$Builder; + public fun withAudienceRestrictingSharedFolder (Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata$Builder; + public synthetic fun withAudienceRestrictingSharedFolder (Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; + public fun withExpiry (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata$Builder; + public synthetic fun withExpiry (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; +} + +public class com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase { + protected final field accessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field audienceOptions Ljava/util/List; + protected final field audienceRestrictingSharedFolder Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder; + protected final field currentAudience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field expiry Ljava/util/Date; + protected final field linkPermissions Ljava/util/List; + protected final field passwordProtected Z + public fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;Z)V + public fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;ZLcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getAudienceOptions ()Ljava/util/List; + public fun getAudienceRestrictingSharedFolder ()Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder; + public fun getCurrentAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getExpiry ()Ljava/util/Date; + public fun getLinkPermissions ()Ljava/util/List; + public fun getPasswordProtected ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;Z)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder { + protected field accessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field audienceOptions Ljava/util/List; + protected field audienceRestrictingSharedFolder Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder; + protected final field currentAudience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected field expiry Ljava/util/Date; + protected final field linkPermissions Ljava/util/List; + protected final field passwordProtected Z + protected fun (Ljava/util/List;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/util/List;Z)V + public fun build ()Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase; + public fun withAccessLevel (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; + public fun withAudienceRestrictingSharedFolder (Lcom/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; + public fun withExpiry (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadataBase$Builder; +} + +public class com/dropbox/core/v2/sharing/SharedFileMembers { + protected final field cursor Ljava/lang/String; + protected final field groups Ljava/util/List; + protected final field invitees Ljava/util/List; + protected final field users Ljava/util/List; + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getGroups ()Ljava/util/List; + public fun getInvitees ()Ljava/util/List; + public fun getUsers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedFileMetadata { + protected final field accessType Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field expectedLinkMetadata Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata; + protected final field id Ljava/lang/String; + protected final field linkMetadata Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata; + protected final field name Ljava/lang/String; + protected final field ownerDisplayNames Ljava/util/List; + protected final field ownerTeam Lcom/dropbox/core/v2/users/Team; + protected final field parentSharedFolderId Ljava/lang/String; + protected final field pathDisplay Ljava/lang/String; + protected final field pathLower Ljava/lang/String; + protected final field permissions Ljava/util/List; + protected final field policy Lcom/dropbox/core/v2/sharing/FolderPolicy; + protected final field previewUrl Ljava/lang/String; + protected final field timeInvited Ljava/util/Date; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata;Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata;Ljava/util/List;Lcom/dropbox/core/v2/users/Team;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getExpectedLinkMetadata ()Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata; + public fun getId ()Ljava/lang/String; + public fun getLinkMetadata ()Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata; + public fun getName ()Ljava/lang/String; + public fun getOwnerDisplayNames ()Ljava/util/List; + public fun getOwnerTeam ()Lcom/dropbox/core/v2/users/Team; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getPathDisplay ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getPermissions ()Ljava/util/List; + public fun getPolicy ()Lcom/dropbox/core/v2/sharing/FolderPolicy; + public fun getPreviewUrl ()Ljava/lang/String; + public fun getTimeInvited ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedFileMetadata$Builder { + protected field accessType Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field expectedLinkMetadata Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata; + protected final field id Ljava/lang/String; + protected field linkMetadata Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata; + protected final field name Ljava/lang/String; + protected field ownerDisplayNames Ljava/util/List; + protected field ownerTeam Lcom/dropbox/core/v2/users/Team; + protected field parentSharedFolderId Ljava/lang/String; + protected field pathDisplay Ljava/lang/String; + protected field pathLower Ljava/lang/String; + protected field permissions Ljava/util/List; + protected final field policy Lcom/dropbox/core/v2/sharing/FolderPolicy; + protected final field previewUrl Ljava/lang/String; + protected field timeInvited Ljava/util/Date; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/sharing/SharedFileMetadata; + public fun withAccessType (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withExpectedLinkMetadata (Lcom/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withLinkMetadata (Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withOwnerDisplayNames (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withOwnerTeam (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; + public fun withTimeInvited (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedFileMetadata$Builder; +} + +public final class com/dropbox/core/v2/sharing/SharedFolderAccessError : java/lang/Enum { + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public static final field INVALID_ID Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public static final field INVALID_MEMBER Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public static final field NOT_A_MEMBER Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public static final field UNMOUNTED Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; +} + +public class com/dropbox/core/v2/sharing/SharedFolderAccessErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)V +} + +public final class com/dropbox/core/v2/sharing/SharedFolderMemberError { + public static final field INVALID_DROPBOX_ID Lcom/dropbox/core/v2/sharing/SharedFolderMemberError; + public static final field NOT_A_MEMBER Lcom/dropbox/core/v2/sharing/SharedFolderMemberError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedFolderMemberError; + public fun equals (Ljava/lang/Object;)Z + public fun getNoExplicitAccessValue ()Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult; + public fun hashCode ()I + public fun isInvalidDropboxId ()Z + public fun isNoExplicitAccess ()Z + public fun isNotAMember ()Z + public fun isOther ()Z + public static fun noExplicitAccess (Lcom/dropbox/core/v2/sharing/MemberAccessLevelResult;)Lcom/dropbox/core/v2/sharing/SharedFolderMemberError; + public fun tag ()Lcom/dropbox/core/v2/sharing/SharedFolderMemberError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/SharedFolderMemberError$Tag : java/lang/Enum { + public static final field INVALID_DROPBOX_ID Lcom/dropbox/core/v2/sharing/SharedFolderMemberError$Tag; + public static final field NOT_A_MEMBER Lcom/dropbox/core/v2/sharing/SharedFolderMemberError$Tag; + public static final field NO_EXPLICIT_ACCESS Lcom/dropbox/core/v2/sharing/SharedFolderMemberError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedFolderMemberError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMemberError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharedFolderMemberError$Tag; +} + +public class com/dropbox/core/v2/sharing/SharedFolderMembers { + protected final field cursor Ljava/lang/String; + protected final field groups Ljava/util/List; + protected final field invitees Ljava/util/List; + protected final field users Ljava/util/List; + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getGroups ()Ljava/util/List; + public fun getInvitees ()Ljava/util/List; + public fun getUsers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedFolderMetadata : com/dropbox/core/v2/sharing/SharedFolderMetadataBase { + protected final field accessInheritance Lcom/dropbox/core/v2/sharing/AccessInheritance; + protected final field linkMetadata Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata; + protected final field name Ljava/lang/String; + protected final field permissions Ljava/util/List; + protected final field policy Lcom/dropbox/core/v2/sharing/FolderPolicy; + protected final field previewUrl Ljava/lang/String; + protected final field sharedFolderId Ljava/lang/String; + protected final field timeInvited Ljava/util/Date; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZLjava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZLjava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/List;Lcom/dropbox/core/v2/users/Team;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata;Ljava/util/List;Lcom/dropbox/core/v2/sharing/AccessInheritance;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessInheritance ()Lcom/dropbox/core/v2/sharing/AccessInheritance; + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getIsInsideTeamFolder ()Z + public fun getIsTeamFolder ()Z + public fun getLinkMetadata ()Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata; + public fun getName ()Ljava/lang/String; + public fun getOwnerDisplayNames ()Ljava/util/List; + public fun getOwnerTeam ()Lcom/dropbox/core/v2/users/Team; + public fun getParentFolderName ()Ljava/lang/String; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getPathDisplay ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getPermissions ()Ljava/util/List; + public fun getPolicy ()Lcom/dropbox/core/v2/sharing/FolderPolicy; + public fun getPreviewUrl ()Ljava/lang/String; + public fun getSharedFolderId ()Ljava/lang/String; + public fun getTimeInvited ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZLjava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedFolderMetadata$Builder : com/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder { + protected field accessInheritance Lcom/dropbox/core/v2/sharing/AccessInheritance; + protected field linkMetadata Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata; + protected final field name Ljava/lang/String; + protected field permissions Ljava/util/List; + protected final field policy Lcom/dropbox/core/v2/sharing/FolderPolicy; + protected final field previewUrl Ljava/lang/String; + protected final field sharedFolderId Ljava/lang/String; + protected final field timeInvited Ljava/util/Date; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZLjava/lang/String;Lcom/dropbox/core/v2/sharing/FolderPolicy;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;)V + public fun build ()Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase; + public fun withAccessInheritance (Lcom/dropbox/core/v2/sharing/AccessInheritance;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public fun withLinkMetadata (Lcom/dropbox/core/v2/sharing/SharedContentLinkMetadata;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public fun withOwnerDisplayNames (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public synthetic fun withOwnerDisplayNames (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withOwnerTeam (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public synthetic fun withOwnerTeam (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withParentFolderName (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public synthetic fun withParentFolderName (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public synthetic fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public synthetic fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; + public synthetic fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadata$Builder; +} + +public class com/dropbox/core/v2/sharing/SharedFolderMetadataBase { + protected final field accessType Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field isInsideTeamFolder Z + protected final field isTeamFolder Z + protected final field ownerDisplayNames Ljava/util/List; + protected final field ownerTeam Lcom/dropbox/core/v2/users/Team; + protected final field parentFolderName Ljava/lang/String; + protected final field parentSharedFolderId Ljava/lang/String; + protected final field pathDisplay Ljava/lang/String; + protected final field pathLower Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZ)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZLjava/util/List;Lcom/dropbox/core/v2/users/Team;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getIsInsideTeamFolder ()Z + public fun getIsTeamFolder ()Z + public fun getOwnerDisplayNames ()Ljava/util/List; + public fun getOwnerTeam ()Lcom/dropbox/core/v2/users/Team; + public fun getParentFolderName ()Ljava/lang/String; + public fun getParentSharedFolderId ()Ljava/lang/String; + public fun getPathDisplay ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZ)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder { + protected final field accessType Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field isInsideTeamFolder Z + protected final field isTeamFolder Z + protected field ownerDisplayNames Ljava/util/List; + protected field ownerTeam Lcom/dropbox/core/v2/users/Team; + protected field parentFolderName Ljava/lang/String; + protected field parentSharedFolderId Ljava/lang/String; + protected field pathDisplay Ljava/lang/String; + protected field pathLower Ljava/lang/String; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;ZZ)V + public fun build ()Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase; + public fun withOwnerDisplayNames (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withOwnerTeam (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withParentFolderName (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withParentSharedFolderId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withPathDisplay (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedFolderMetadataBase$Builder; +} + +public final class com/dropbox/core/v2/sharing/SharedLinkAccessFailureReason : java/lang/Enum { + public static final field EMAIL_VERIFY_REQUIRED Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public static final field LOGIN_REQUIRED Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public static final field OWNER_ONLY Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public static final field PASSWORD_REQUIRED Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public static final field TEAM_ONLY Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharedLinkAccessFailureReason; +} + +public final class com/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata { + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata; + public fun equals (Ljava/lang/Object;)Z + public fun getMetadataValue ()Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun hashCode ()I + public fun isMetadata ()Z + public fun isOther ()Z + public static fun metadata (Lcom/dropbox/core/v2/sharing/SharedLinkMetadata;)Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata; + public fun tag ()Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata$Tag : java/lang/Enum { + public static final field METADATA Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata$Tag; +} + +public final class com/dropbox/core/v2/sharing/SharedLinkError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedLinkError; + public static final field SHARED_LINK_ACCESS_DENIED Lcom/dropbox/core/v2/sharing/SharedLinkError; + public static final field SHARED_LINK_NOT_FOUND Lcom/dropbox/core/v2/sharing/SharedLinkError; + public static final field UNSUPPORTED_LINK_TYPE Lcom/dropbox/core/v2/sharing/SharedLinkError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharedLinkError; +} + +public class com/dropbox/core/v2/sharing/SharedLinkErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/SharedLinkError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/SharedLinkError;)V +} + +public class com/dropbox/core/v2/sharing/SharedLinkMetadata { + protected final field contentOwnerTeamInfo Lcom/dropbox/core/v2/users/Team; + protected final field expires Ljava/util/Date; + protected final field id Ljava/lang/String; + protected final field linkPermissions Lcom/dropbox/core/v2/sharing/LinkPermissions; + protected final field name Ljava/lang/String; + protected final field pathLower Ljava/lang/String; + protected final field teamMemberInfo Lcom/dropbox/core/v2/sharing/TeamMemberInfo; + protected final field url Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/TeamMemberInfo;Lcom/dropbox/core/v2/users/Team;)V + public fun equals (Ljava/lang/Object;)Z + public fun getContentOwnerTeamInfo ()Lcom/dropbox/core/v2/users/Team; + public fun getExpires ()Ljava/util/Date; + public fun getId ()Ljava/lang/String; + public fun getLinkPermissions ()Lcom/dropbox/core/v2/sharing/LinkPermissions; + public fun getName ()Ljava/lang/String; + public fun getPathLower ()Ljava/lang/String; + public fun getTeamMemberInfo ()Lcom/dropbox/core/v2/sharing/TeamMemberInfo; + public fun getUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedLinkMetadata$Builder { + protected field contentOwnerTeamInfo Lcom/dropbox/core/v2/users/Team; + protected field expires Ljava/util/Date; + protected field id Ljava/lang/String; + protected final field linkPermissions Lcom/dropbox/core/v2/sharing/LinkPermissions; + protected final field name Ljava/lang/String; + protected field pathLower Ljava/lang/String; + protected field teamMemberInfo Lcom/dropbox/core/v2/sharing/TeamMemberInfo; + protected final field url Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkPermissions;)V + public fun build ()Lcom/dropbox/core/v2/sharing/SharedLinkMetadata; + public fun withContentOwnerTeamInfo (Lcom/dropbox/core/v2/users/Team;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withExpires (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withId (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withPathLower (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; + public fun withTeamMemberInfo (Lcom/dropbox/core/v2/sharing/TeamMemberInfo;)Lcom/dropbox/core/v2/sharing/SharedLinkMetadata$Builder; +} + +public final class com/dropbox/core/v2/sharing/SharedLinkPolicy : java/lang/Enum { + public static final field ANYONE Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public static final field MEMBERS Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public static final field TEAM Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; +} + +public class com/dropbox/core/v2/sharing/SharedLinkPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/SharedLinkPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/sharing/SharedLinkSettings { + protected final field access Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + protected final field allowDownload Ljava/lang/Boolean; + protected final field audience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field expires Ljava/util/Date; + protected final field linkPassword Ljava/lang/String; + protected final field requestedVisibility Lcom/dropbox/core/v2/sharing/RequestedVisibility; + protected final field requirePassword Ljava/lang/Boolean; + public fun ()V + public fun (Ljava/lang/Boolean;Ljava/lang/String;Ljava/util/Date;Lcom/dropbox/core/v2/sharing/LinkAudience;Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel;Lcom/dropbox/core/v2/sharing/RequestedVisibility;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccess ()Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + public fun getAllowDownload ()Ljava/lang/Boolean; + public fun getAudience ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getExpires ()Ljava/util/Date; + public fun getLinkPassword ()Ljava/lang/String; + public fun getRequestedVisibility ()Lcom/dropbox/core/v2/sharing/RequestedVisibility; + public fun getRequirePassword ()Ljava/lang/Boolean; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/SharedLinkSettings$Builder { + protected field access Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel; + protected field allowDownload Ljava/lang/Boolean; + protected field audience Lcom/dropbox/core/v2/sharing/LinkAudience; + protected field expires Ljava/util/Date; + protected field linkPassword Ljava/lang/String; + protected field requestedVisibility Lcom/dropbox/core/v2/sharing/RequestedVisibility; + protected field requirePassword Ljava/lang/Boolean; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/sharing/SharedLinkSettings; + public fun withAccess (Lcom/dropbox/core/v2/sharing/RequestedLinkAccessLevel;)Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; + public fun withAllowDownload (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; + public fun withAudience (Lcom/dropbox/core/v2/sharing/LinkAudience;)Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; + public fun withExpires (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; + public fun withLinkPassword (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; + public fun withRequestedVisibility (Lcom/dropbox/core/v2/sharing/RequestedVisibility;)Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; + public fun withRequirePassword (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/SharedLinkSettings$Builder; +} + +public final class com/dropbox/core/v2/sharing/SharedLinkSettingsError : java/lang/Enum { + public static final field INVALID_SETTINGS Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError; + public static final field NOT_AUTHORIZED Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharedLinkSettingsError; +} + +public final class com/dropbox/core/v2/sharing/SharingFileAccessError : java/lang/Enum { + public static final field INSIDE_OSX_PACKAGE Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public static final field INSIDE_PUBLIC_FOLDER Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public static final field INVALID_FILE Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public static final field IS_FOLDER Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharingFileAccessError; +} + +public final class com/dropbox/core/v2/sharing/SharingUserError : java/lang/Enum { + public static final field EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/SharingUserError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/SharingUserError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/SharingUserError; + public static fun values ()[Lcom/dropbox/core/v2/sharing/SharingUserError; +} + +public class com/dropbox/core/v2/sharing/SharingUserErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/SharingUserError;)V +} + +public class com/dropbox/core/v2/sharing/TeamMemberInfo { + protected final field displayName Ljava/lang/String; + protected final field memberId Ljava/lang/String; + protected final field teamInfo Lcom/dropbox/core/v2/users/Team; + public fun (Lcom/dropbox/core/v2/users/Team;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/v2/users/Team;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun getMemberId ()Ljava/lang/String; + public fun getTeamInfo ()Lcom/dropbox/core/v2/users/Team; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/TransferFolderError { + public static final field INVALID_DROPBOX_ID Lcom/dropbox/core/v2/sharing/TransferFolderError; + public static final field NEW_OWNER_EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/TransferFolderError; + public static final field NEW_OWNER_NOT_A_MEMBER Lcom/dropbox/core/v2/sharing/TransferFolderError; + public static final field NEW_OWNER_UNMOUNTED Lcom/dropbox/core/v2/sharing/TransferFolderError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/TransferFolderError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/TransferFolderError; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/TransferFolderError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/TransferFolderError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isInvalidDropboxId ()Z + public fun isNewOwnerEmailUnverified ()Z + public fun isNewOwnerNotAMember ()Z + public fun isNewOwnerUnmounted ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun isTeamFolder ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/TransferFolderError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static final field INVALID_DROPBOX_ID Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static final field NEW_OWNER_EMAIL_UNVERIFIED Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static final field NEW_OWNER_NOT_A_MEMBER Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static final field NEW_OWNER_UNMOUNTED Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/TransferFolderError$Tag; +} + +public class com/dropbox/core/v2/sharing/TransferFolderErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/TransferFolderError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/TransferFolderError;)V +} + +public final class com/dropbox/core/v2/sharing/UnmountFolderError { + public static final field NOT_UNMOUNTABLE Lcom/dropbox/core/v2/sharing/UnmountFolderError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UnmountFolderError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UnmountFolderError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/UnmountFolderError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isNoPermission ()Z + public fun isNotUnmountable ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/UnmountFolderError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/UnmountFolderError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/UnmountFolderError$Tag; + public static final field NOT_UNMOUNTABLE Lcom/dropbox/core/v2/sharing/UnmountFolderError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UnmountFolderError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UnmountFolderError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UnmountFolderError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/UnmountFolderError$Tag; +} + +public class com/dropbox/core/v2/sharing/UnmountFolderErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/UnmountFolderError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/UnmountFolderError;)V +} + +public final class com/dropbox/core/v2/sharing/UnshareFileError { + public static final field OTHER Lcom/dropbox/core/v2/sharing/UnshareFileError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharingFileAccessError;)Lcom/dropbox/core/v2/sharing/UnshareFileError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharingFileAccessError; + public fun getUserErrorValue ()Lcom/dropbox/core/v2/sharing/SharingUserError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isUserError ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/UnshareFileError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userError (Lcom/dropbox/core/v2/sharing/SharingUserError;)Lcom/dropbox/core/v2/sharing/UnshareFileError; +} + +public final class com/dropbox/core/v2/sharing/UnshareFileError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/UnshareFileError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UnshareFileError$Tag; + public static final field USER_ERROR Lcom/dropbox/core/v2/sharing/UnshareFileError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UnshareFileError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/UnshareFileError$Tag; +} + +public class com/dropbox/core/v2/sharing/UnshareFileErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/UnshareFileError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/UnshareFileError;)V +} + +public final class com/dropbox/core/v2/sharing/UnshareFolderError { + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UnshareFolderError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UnshareFolderError; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/UnshareFolderError; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/sharing/UnshareFolderError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/UnshareFolderError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public fun isTeamFolder ()Z + public fun isTooManyFiles ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/UnshareFolderError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; + public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/UnshareFolderError$Tag; +} + +public class com/dropbox/core/v2/sharing/UnshareFolderErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/UnshareFolderError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/UnshareFolderError;)V +} + +public final class com/dropbox/core/v2/sharing/UpdateFolderMemberError { + public static final field INSUFFICIENT_PLAN Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun getMemberErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderMemberError; + public fun getNoExplicitAccessValue ()Lcom/dropbox/core/v2/sharing/AddFolderMemberError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isInsufficientPlan ()Z + public fun isMemberError ()Z + public fun isNoExplicitAccess ()Z + public fun isNoPermission ()Z + public fun isOther ()Z + public static fun memberError (Lcom/dropbox/core/v2/sharing/SharedFolderMemberError;)Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError; + public static fun noExplicitAccess (Lcom/dropbox/core/v2/sharing/AddFolderMemberError;)Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError; + public fun tag ()Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public static final field INSUFFICIENT_PLAN Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public static final field MEMBER_ERROR Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public static final field NO_EXPLICIT_ACCESS Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError$Tag; +} + +public class com/dropbox/core/v2/sharing/UpdateFolderMemberErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/UpdateFolderMemberError;)V +} + +public class com/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder { + public fun start ()Lcom/dropbox/core/v2/sharing/SharedFolderMetadata; + public fun withAclUpdatePolicy (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder; + public fun withActions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder; + public fun withLinkSettings (Lcom/dropbox/core/v2/sharing/LinkSettings;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder; + public fun withMemberPolicy (Lcom/dropbox/core/v2/sharing/MemberPolicy;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder; + public fun withSharedLinkPolicy (Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder; + public fun withViewerInfoPolicy (Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder; +} + +public final class com/dropbox/core/v2/sharing/UpdateFolderPolicyError { + public static final field DISALLOWED_SHARED_LINK_POLICY Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public static final field NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public static final field TEAM_POLICY_DISALLOWS_MEMBER_POLICY Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public static fun accessError (Lcom/dropbox/core/v2/sharing/SharedFolderAccessError;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/sharing/SharedFolderAccessError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isDisallowedSharedLinkPolicy ()Z + public fun isNoPermission ()Z + public fun isNotOnTeam ()Z + public fun isOther ()Z + public fun isTeamFolder ()Z + public fun isTeamPolicyDisallowsMemberPolicy ()Z + public fun tag ()Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static final field DISALLOWED_SHARED_LINK_POLICY Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static final field NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static final field NO_PERMISSION Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static final field TEAM_POLICY_DISALLOWS_MEMBER_POLICY Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError$Tag; +} + +public class com/dropbox/core/v2/sharing/UpdateFolderPolicyErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/sharing/UpdateFolderPolicyError;)V +} + +public class com/dropbox/core/v2/sharing/UserFileMembershipInfo : com/dropbox/core/v2/sharing/UserMembershipInfo { + protected final field platformType Lcom/dropbox/core/v2/seenstate/PlatformType; + protected final field timeLastSeen Ljava/util/Date; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;Ljava/util/List;Ljava/lang/String;ZLjava/util/Date;Lcom/dropbox/core/v2/seenstate/PlatformType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getInitials ()Ljava/lang/String; + public fun getIsInherited ()Z + public fun getPermissions ()Ljava/util/List; + public fun getPlatformType ()Lcom/dropbox/core/v2/seenstate/PlatformType; + public fun getTimeLastSeen ()Ljava/util/Date; + public fun getUser ()Lcom/dropbox/core/v2/sharing/UserInfo; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;)Lcom/dropbox/core/v2/sharing/UserFileMembershipInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/UserFileMembershipInfo$Builder : com/dropbox/core/v2/sharing/UserMembershipInfo$Builder { + protected field platformType Lcom/dropbox/core/v2/seenstate/PlatformType; + protected field timeLastSeen Ljava/util/Date; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;)V + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/MembershipInfo; + public fun build ()Lcom/dropbox/core/v2/sharing/UserFileMembershipInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/UserMembershipInfo; + public synthetic fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UserFileMembershipInfo$Builder; + public synthetic fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UserMembershipInfo$Builder; + public synthetic fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/UserFileMembershipInfo$Builder; + public synthetic fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/UserMembershipInfo$Builder; + public synthetic fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/UserFileMembershipInfo$Builder; + public synthetic fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/UserMembershipInfo$Builder; + public fun withPlatformType (Lcom/dropbox/core/v2/seenstate/PlatformType;)Lcom/dropbox/core/v2/sharing/UserFileMembershipInfo$Builder; + public fun withTimeLastSeen (Ljava/util/Date;)Lcom/dropbox/core/v2/sharing/UserFileMembershipInfo$Builder; +} + +public class com/dropbox/core/v2/sharing/UserInfo { + protected final field accountId Ljava/lang/String; + protected final field displayName Ljava/lang/String; + protected final field email Ljava/lang/String; + protected final field sameTeam Z + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun getEmail ()Ljava/lang/String; + public fun getSameTeam ()Z + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/UserInfo$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/UserInfo$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/sharing/UserInfo; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/UserInfo;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/sharing/UserMembershipInfo : com/dropbox/core/v2/sharing/MembershipInfo { + protected final field user Lcom/dropbox/core/v2/sharing/UserInfo; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getInitials ()Ljava/lang/String; + public fun getIsInherited ()Z + public fun getPermissions ()Ljava/util/List; + public fun getUser ()Lcom/dropbox/core/v2/sharing/UserInfo; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;)Lcom/dropbox/core/v2/sharing/UserMembershipInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/sharing/UserMembershipInfo$Builder : com/dropbox/core/v2/sharing/MembershipInfo$Builder { + protected final field user Lcom/dropbox/core/v2/sharing/UserInfo; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/UserInfo;)V + public synthetic fun build ()Lcom/dropbox/core/v2/sharing/MembershipInfo; + public fun build ()Lcom/dropbox/core/v2/sharing/UserMembershipInfo; + public synthetic fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withInitials (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/UserMembershipInfo$Builder; + public synthetic fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withIsInherited (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/sharing/UserMembershipInfo$Builder; + public synthetic fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/MembershipInfo$Builder; + public fun withPermissions (Ljava/util/List;)Lcom/dropbox/core/v2/sharing/UserMembershipInfo$Builder; +} + +public final class com/dropbox/core/v2/sharing/ViewerInfoPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public static final field OTHER Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public static fun values ()[Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; +} + +public class com/dropbox/core/v2/sharing/ViewerInfoPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/sharing/Visibility : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/sharing/Visibility; + public static final field PASSWORD Lcom/dropbox/core/v2/sharing/Visibility; + public static final field PUBLIC Lcom/dropbox/core/v2/sharing/Visibility; + public static final field SHARED_FOLDER_ONLY Lcom/dropbox/core/v2/sharing/Visibility; + public static final field TEAM_AND_PASSWORD Lcom/dropbox/core/v2/sharing/Visibility; + public static final field TEAM_ONLY Lcom/dropbox/core/v2/sharing/Visibility; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/Visibility; + public static fun values ()[Lcom/dropbox/core/v2/sharing/Visibility; +} + +public class com/dropbox/core/v2/sharing/VisibilityPolicy { + protected final field allowed Z + protected final field disallowedReason Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + protected final field policy Lcom/dropbox/core/v2/sharing/RequestedVisibility; + protected final field resolvedPolicy Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public fun (Lcom/dropbox/core/v2/sharing/RequestedVisibility;Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility;Z)V + public fun (Lcom/dropbox/core/v2/sharing/RequestedVisibility;Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility;ZLcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllowed ()Z + public fun getDisallowedReason ()Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public fun getPolicy ()Lcom/dropbox/core/v2/sharing/RequestedVisibility; + public fun getResolvedPolicy ()Lcom/dropbox/core/v2/sharing/AlphaResolvedVisibility; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason : java/lang/Enum { + public static final field DELETE_AND_RECREATE Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static final field OTHER Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static final field PERMISSION_DENIED Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static final field RESTRICTED_BY_SHARED_FOLDER Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static final field RESTRICTED_BY_TEAM Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static final field USER_ACCOUNT_TYPE Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static final field USER_NOT_ON_TEAM Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; + public static fun values ()[Lcom/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason; +} + +public class com/dropbox/core/v2/team/ActiveWebSession : com/dropbox/core/v2/team/DeviceSession { + protected final field browser Ljava/lang/String; + protected final field expires Ljava/util/Date; + protected final field os Ljava/lang/String; + protected final field userAgent Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBrowser ()Ljava/lang/String; + public fun getCountry ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getExpires ()Ljava/util/Date; + public fun getIpAddress ()Ljava/lang/String; + public fun getOs ()Ljava/lang/String; + public fun getSessionId ()Ljava/lang/String; + public fun getUpdated ()Ljava/util/Date; + public fun getUserAgent ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/team/ActiveWebSession$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/ActiveWebSession$Builder : com/dropbox/core/v2/team/DeviceSession$Builder { + protected final field browser Ljava/lang/String; + protected field expires Ljava/util/Date; + protected final field os Ljava/lang/String; + protected final field userAgent Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/team/ActiveWebSession; + public synthetic fun build ()Lcom/dropbox/core/v2/team/DeviceSession; + public fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ActiveWebSession$Builder; + public synthetic fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ActiveWebSession$Builder; + public synthetic fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withExpires (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ActiveWebSession$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ActiveWebSession$Builder; + public synthetic fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ActiveWebSession$Builder; + public synthetic fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; +} + +public final class com/dropbox/core/v2/team/AddSecondaryEmailResult { + public static final field OTHER Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public static fun alreadyOwnedByUser (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public static fun alreadyPending (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public fun equals (Ljava/lang/Object;)Z + public fun getAlreadyOwnedByUserValue ()Ljava/lang/String; + public fun getAlreadyPendingValue ()Ljava/lang/String; + public fun getRateLimitedValue ()Ljava/lang/String; + public fun getReachedLimitValue ()Ljava/lang/String; + public fun getSuccessValue ()Lcom/dropbox/core/v2/secondaryemails/SecondaryEmail; + public fun getTooManyUpdatesValue ()Ljava/lang/String; + public fun getTransientErrorValue ()Ljava/lang/String; + public fun getUnavailableValue ()Ljava/lang/String; + public fun getUnknownErrorValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isAlreadyOwnedByUser ()Z + public fun isAlreadyPending ()Z + public fun isOther ()Z + public fun isRateLimited ()Z + public fun isReachedLimit ()Z + public fun isSuccess ()Z + public fun isTooManyUpdates ()Z + public fun isTransientError ()Z + public fun isUnavailable ()Z + public fun isUnknownError ()Z + public static fun rateLimited (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public static fun reachedLimit (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public static fun success (Lcom/dropbox/core/v2/secondaryemails/SecondaryEmail;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public fun tag ()Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun tooManyUpdates (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public static fun transientError (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public static fun unavailable (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; + public static fun unknownError (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult; +} + +public final class com/dropbox/core/v2/team/AddSecondaryEmailResult$Tag : java/lang/Enum { + public static final field ALREADY_OWNED_BY_USER Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field ALREADY_PENDING Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field RATE_LIMITED Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field REACHED_LIMIT Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field TOO_MANY_UPDATES Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field TRANSIENT_ERROR Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field UNAVAILABLE Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static final field UNKNOWN_ERROR Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/AddSecondaryEmailResult$Tag; +} + +public final class com/dropbox/core/v2/team/AddSecondaryEmailsError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/AddSecondaryEmailsError; + public static final field SECONDARY_EMAILS_DISABLED Lcom/dropbox/core/v2/team/AddSecondaryEmailsError; + public static final field TOO_MANY_EMAILS Lcom/dropbox/core/v2/team/AddSecondaryEmailsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AddSecondaryEmailsError; + public static fun values ()[Lcom/dropbox/core/v2/team/AddSecondaryEmailsError; +} + +public class com/dropbox/core/v2/team/AddSecondaryEmailsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/AddSecondaryEmailsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/AddSecondaryEmailsError;)V +} + +public class com/dropbox/core/v2/team/AddSecondaryEmailsResult { + protected final field results Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResults ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/AdminTier : java/lang/Enum { + public static final field MEMBER_ONLY Lcom/dropbox/core/v2/team/AdminTier; + public static final field SUPPORT_ADMIN Lcom/dropbox/core/v2/team/AdminTier; + public static final field TEAM_ADMIN Lcom/dropbox/core/v2/team/AdminTier; + public static final field USER_MANAGEMENT_ADMIN Lcom/dropbox/core/v2/team/AdminTier; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/AdminTier; + public static fun values ()[Lcom/dropbox/core/v2/team/AdminTier; +} + +public class com/dropbox/core/v2/team/ApiApp { + protected final field appId Ljava/lang/String; + protected final field appName Ljava/lang/String; + protected final field isAppFolder Z + protected final field linked Ljava/util/Date; + protected final field publisher Ljava/lang/String; + protected final field publisherUrl Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Z)V + public fun (Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppId ()Ljava/lang/String; + public fun getAppName ()Ljava/lang/String; + public fun getIsAppFolder ()Z + public fun getLinked ()Ljava/util/Date; + public fun getPublisher ()Ljava/lang/String; + public fun getPublisherUrl ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Z)Lcom/dropbox/core/v2/team/ApiApp$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/ApiApp$Builder { + protected final field appId Ljava/lang/String; + protected final field appName Ljava/lang/String; + protected final field isAppFolder Z + protected field linked Ljava/util/Date; + protected field publisher Ljava/lang/String; + protected field publisherUrl Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Z)V + public fun build ()Lcom/dropbox/core/v2/team/ApiApp; + public fun withLinked (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ApiApp$Builder; + public fun withPublisher (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ApiApp$Builder; + public fun withPublisherUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ApiApp$Builder; +} + +public class com/dropbox/core/v2/team/BaseDfbReport { + protected final field startDate Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getStartDate ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/CustomQuotaError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/CustomQuotaError; + public static final field TOO_MANY_USERS Lcom/dropbox/core/v2/team/CustomQuotaError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/CustomQuotaError; + public static fun values ()[Lcom/dropbox/core/v2/team/CustomQuotaError; +} + +public class com/dropbox/core/v2/team/CustomQuotaErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/CustomQuotaError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/CustomQuotaError;)V +} + +public final class com/dropbox/core/v2/team/CustomQuotaResult { + public static final field OTHER Lcom/dropbox/core/v2/team/CustomQuotaResult; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidUserValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun getSuccessValue ()Lcom/dropbox/core/v2/team/UserCustomQuotaResult; + public fun hashCode ()I + public static fun invalidUser (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/CustomQuotaResult; + public fun isInvalidUser ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/team/UserCustomQuotaResult;)Lcom/dropbox/core/v2/team/CustomQuotaResult; + public fun tag ()Lcom/dropbox/core/v2/team/CustomQuotaResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/CustomQuotaResult$Tag : java/lang/Enum { + public static final field INVALID_USER Lcom/dropbox/core/v2/team/CustomQuotaResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/CustomQuotaResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/CustomQuotaResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/CustomQuotaResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/CustomQuotaResult$Tag; +} + +public final class com/dropbox/core/v2/team/DateRangeError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/DateRangeError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DateRangeError; + public static fun values ()[Lcom/dropbox/core/v2/team/DateRangeError; +} + +public class com/dropbox/core/v2/team/DateRangeErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/DateRangeError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/DateRangeError;)V +} + +public class com/dropbox/core/v2/team/DbxTeamTeamRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun devicesListMemberDevices (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListMemberDevicesResult; + public fun devicesListMemberDevicesBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DevicesListMemberDevicesBuilder; + public fun devicesListMembersDevices ()Lcom/dropbox/core/v2/team/ListMembersDevicesResult; + public fun devicesListMembersDevicesBuilder ()Lcom/dropbox/core/v2/team/DevicesListMembersDevicesBuilder; + public fun devicesListTeamDevices ()Lcom/dropbox/core/v2/team/ListTeamDevicesResult; + public fun devicesListTeamDevicesBuilder ()Lcom/dropbox/core/v2/team/DevicesListTeamDevicesBuilder; + public fun devicesRevokeDeviceSession (Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg;)V + public fun devicesRevokeDeviceSessionBatch (Ljava/util/List;)Lcom/dropbox/core/v2/team/RevokeDeviceSessionBatchResult; + public fun featuresGetValues (Ljava/util/List;)Lcom/dropbox/core/v2/team/FeaturesGetValuesBatchResult; + public fun getInfo ()Lcom/dropbox/core/v2/team/TeamGetInfoResult; + public fun groupsCreate (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupFullInfo; + public fun groupsCreateBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsCreateBuilder; + public fun groupsDelete (Lcom/dropbox/core/v2/team/GroupSelector;)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun groupsGetInfo (Lcom/dropbox/core/v2/team/GroupsSelector;)Ljava/util/List; + public fun groupsJobStatusGet (Ljava/lang/String;)Lcom/dropbox/core/v2/async/PollEmptyResult; + public fun groupsList ()Lcom/dropbox/core/v2/team/GroupsListResult; + public fun groupsList (J)Lcom/dropbox/core/v2/team/GroupsListResult; + public fun groupsListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsListResult; + public fun groupsMembersAdd (Lcom/dropbox/core/v2/team/GroupSelector;Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupMembersChangeResult; + public fun groupsMembersAdd (Lcom/dropbox/core/v2/team/GroupSelector;Ljava/util/List;Z)Lcom/dropbox/core/v2/team/GroupMembersChangeResult; + public fun groupsMembersList (Lcom/dropbox/core/v2/team/GroupSelector;)Lcom/dropbox/core/v2/team/GroupsMembersListResult; + public fun groupsMembersList (Lcom/dropbox/core/v2/team/GroupSelector;J)Lcom/dropbox/core/v2/team/GroupsMembersListResult; + public fun groupsMembersListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsMembersListResult; + public fun groupsMembersRemove (Lcom/dropbox/core/v2/team/GroupSelector;Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupMembersChangeResult; + public fun groupsMembersRemove (Lcom/dropbox/core/v2/team/GroupSelector;Ljava/util/List;Z)Lcom/dropbox/core/v2/team/GroupMembersChangeResult; + public fun groupsMembersSetAccessType (Lcom/dropbox/core/v2/team/GroupSelector;Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/team/GroupAccessType;)Ljava/util/List; + public fun groupsMembersSetAccessType (Lcom/dropbox/core/v2/team/GroupSelector;Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/team/GroupAccessType;Z)Ljava/util/List; + public fun groupsUpdate (Lcom/dropbox/core/v2/team/GroupSelector;)Lcom/dropbox/core/v2/team/GroupFullInfo; + public fun groupsUpdateBuilder (Lcom/dropbox/core/v2/team/GroupSelector;)Lcom/dropbox/core/v2/team/GroupsUpdateBuilder; + public fun legalHoldsCreatePolicy (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/team/LegalHoldPolicy; + public fun legalHoldsCreatePolicyBuilder (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder; + public fun legalHoldsGetPolicy (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldPolicy; + public fun legalHoldsListHeldRevisions (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionResult; + public fun legalHoldsListHeldRevisionsContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionResult; + public fun legalHoldsListHeldRevisionsContinue (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionResult; + public fun legalHoldsListPolicies ()Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesResult; + public fun legalHoldsListPolicies (Z)Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesResult; + public fun legalHoldsReleasePolicy (Ljava/lang/String;)V + public fun legalHoldsUpdatePolicy (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldPolicy; + public fun legalHoldsUpdatePolicyBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder; + public fun linkedAppsListMemberLinkedApps (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListMemberAppsResult; + public fun linkedAppsListMembersLinkedApps ()Lcom/dropbox/core/v2/team/ListMembersAppsResult; + public fun linkedAppsListMembersLinkedApps (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListMembersAppsResult; + public fun linkedAppsListTeamLinkedApps ()Lcom/dropbox/core/v2/team/ListTeamAppsResult; + public fun linkedAppsListTeamLinkedApps (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListTeamAppsResult; + public fun linkedAppsRevokeLinkedApp (Ljava/lang/String;Ljava/lang/String;)V + public fun linkedAppsRevokeLinkedApp (Ljava/lang/String;Ljava/lang/String;Z)V + public fun linkedAppsRevokeLinkedAppBatch (Ljava/util/List;)Lcom/dropbox/core/v2/team/RevokeLinkedAppBatchResult; + public fun memberSpaceLimitsExcludedUsersAdd ()Lcom/dropbox/core/v2/team/ExcludedUsersUpdateResult; + public fun memberSpaceLimitsExcludedUsersAdd (Ljava/util/List;)Lcom/dropbox/core/v2/team/ExcludedUsersUpdateResult; + public fun memberSpaceLimitsExcludedUsersList ()Lcom/dropbox/core/v2/team/ExcludedUsersListResult; + public fun memberSpaceLimitsExcludedUsersList (J)Lcom/dropbox/core/v2/team/ExcludedUsersListResult; + public fun memberSpaceLimitsExcludedUsersListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ExcludedUsersListResult; + public fun memberSpaceLimitsExcludedUsersRemove ()Lcom/dropbox/core/v2/team/ExcludedUsersUpdateResult; + public fun memberSpaceLimitsExcludedUsersRemove (Ljava/util/List;)Lcom/dropbox/core/v2/team/ExcludedUsersUpdateResult; + public fun memberSpaceLimitsGetCustomQuota (Ljava/util/List;)Ljava/util/List; + public fun memberSpaceLimitsRemoveCustomQuota (Ljava/util/List;)Ljava/util/List; + public fun memberSpaceLimitsSetCustomQuota (Ljava/util/List;)Ljava/util/List; + public fun membersAdd (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddLaunch; + public fun membersAdd (Ljava/util/List;Z)Lcom/dropbox/core/v2/team/MembersAddLaunch; + public fun membersAddJobStatusGet (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddJobStatus; + public fun membersAddJobStatusGetV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result; + public fun membersAddV2 (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result; + public fun membersAddV2 (Ljava/util/List;Z)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result; + public fun membersDeleteProfilePhoto (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfo; + public fun membersDeleteProfilePhotoV2 (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfoV2Result; + public fun membersGetAvailableTeamMemberRoles ()Lcom/dropbox/core/v2/team/MembersGetAvailableTeamMemberRolesResult; + public fun membersGetInfo (Ljava/util/List;)Ljava/util/List; + public fun membersGetInfoV2 (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersGetInfoV2Result; + public fun membersList ()Lcom/dropbox/core/v2/team/MembersListResult; + public fun membersListBuilder ()Lcom/dropbox/core/v2/team/MembersListBuilder; + public fun membersListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersListResult; + public fun membersListContinueV2 (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersListV2Result; + public fun membersListV2 ()Lcom/dropbox/core/v2/team/MembersListV2Result; + public fun membersListV2Builder ()Lcom/dropbox/core/v2/team/MembersListV2Builder; + public fun membersMoveFormerMemberFiles (Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun membersMoveFormerMemberFilesJobStatusCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/async/PollEmptyResult; + public fun membersRecover (Lcom/dropbox/core/v2/team/UserSelectorArg;)V + public fun membersRemove (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun membersRemoveBuilder (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersRemoveBuilder; + public fun membersRemoveJobStatusGet (Ljava/lang/String;)Lcom/dropbox/core/v2/async/PollEmptyResult; + public fun membersSecondaryEmailsAdd (Ljava/util/List;)Lcom/dropbox/core/v2/team/AddSecondaryEmailsResult; + public fun membersSecondaryEmailsDelete (Ljava/util/List;)Lcom/dropbox/core/v2/team/DeleteSecondaryEmailsResult; + public fun membersSecondaryEmailsResendVerificationEmails (Ljava/util/List;)Lcom/dropbox/core/v2/team/ResendVerificationEmailResult; + public fun membersSendWelcomeEmail (Lcom/dropbox/core/v2/team/UserSelectorArg;)V + public fun membersSetAdminPermissions (Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/team/AdminTier;)Lcom/dropbox/core/v2/team/MembersSetPermissionsResult; + public fun membersSetAdminPermissionsV2 (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersSetPermissions2Result; + public fun membersSetAdminPermissionsV2 (Lcom/dropbox/core/v2/team/UserSelectorArg;Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersSetPermissions2Result; + public fun membersSetProfile (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfo; + public fun membersSetProfileBuilder (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersSetProfileBuilder; + public fun membersSetProfilePhoto (Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/account/PhotoSourceArg;)Lcom/dropbox/core/v2/team/TeamMemberInfo; + public fun membersSetProfilePhotoV2 (Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/account/PhotoSourceArg;)Lcom/dropbox/core/v2/team/TeamMemberInfoV2Result; + public fun membersSetProfileV2 (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfoV2Result; + public fun membersSetProfileV2Builder (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder; + public fun membersSuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;)V + public fun membersSuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;Z)V + public fun membersUnsuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;)V + public fun namespacesList ()Lcom/dropbox/core/v2/team/TeamNamespacesListResult; + public fun namespacesList (J)Lcom/dropbox/core/v2/team/TeamNamespacesListResult; + public fun namespacesListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamNamespacesListResult; + public fun propertiesTemplateAdd (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/fileproperties/AddTemplateResult; + public fun propertiesTemplateGet (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/GetTemplateResult; + public fun propertiesTemplateList ()Lcom/dropbox/core/v2/fileproperties/ListTemplateResult; + public fun propertiesTemplateUpdate (Ljava/lang/String;)Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult; + public fun propertiesTemplateUpdateBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder; + public fun reportsGetActivity ()Lcom/dropbox/core/v2/team/GetActivityReport; + public fun reportsGetActivityBuilder ()Lcom/dropbox/core/v2/team/ReportsGetActivityBuilder; + public fun reportsGetDevices ()Lcom/dropbox/core/v2/team/GetDevicesReport; + public fun reportsGetDevicesBuilder ()Lcom/dropbox/core/v2/team/ReportsGetDevicesBuilder; + public fun reportsGetMembership ()Lcom/dropbox/core/v2/team/GetMembershipReport; + public fun reportsGetMembershipBuilder ()Lcom/dropbox/core/v2/team/ReportsGetMembershipBuilder; + public fun reportsGetStorage ()Lcom/dropbox/core/v2/team/GetStorageReport; + public fun reportsGetStorageBuilder ()Lcom/dropbox/core/v2/team/ReportsGetStorageBuilder; + public fun sharingAllowlistAdd ()Lcom/dropbox/core/v2/team/SharingAllowlistAddResponse; + public fun sharingAllowlistAddBuilder ()Lcom/dropbox/core/v2/team/SharingAllowlistAddBuilder; + public fun sharingAllowlistList ()Lcom/dropbox/core/v2/team/SharingAllowlistListResponse; + public fun sharingAllowlistList (J)Lcom/dropbox/core/v2/team/SharingAllowlistListResponse; + public fun sharingAllowlistListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistListResponse; + public fun sharingAllowlistRemove ()Lcom/dropbox/core/v2/team/SharingAllowlistRemoveResponse; + public fun sharingAllowlistRemoveBuilder ()Lcom/dropbox/core/v2/team/SharingAllowlistRemoveBuilder; + public fun teamFolderActivate (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun teamFolderArchive (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch; + public fun teamFolderArchive (Ljava/lang/String;Z)Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch; + public fun teamFolderArchiveCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus; + public fun teamFolderCreate (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun teamFolderCreate (Ljava/lang/String;Lcom/dropbox/core/v2/files/SyncSettingArg;)Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun teamFolderGetInfo (Ljava/util/List;)Ljava/util/List; + public fun teamFolderList ()Lcom/dropbox/core/v2/team/TeamFolderListResult; + public fun teamFolderList (J)Lcom/dropbox/core/v2/team/TeamFolderListResult; + public fun teamFolderListContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderListResult; + public fun teamFolderPermanentlyDelete (Ljava/lang/String;)V + public fun teamFolderRename (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun teamFolderUpdateSyncSettings (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun teamFolderUpdateSyncSettingsBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsBuilder; + public fun tokenGetAuthenticatedAdmin ()Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminResult; +} + +public final class com/dropbox/core/v2/team/DeleteSecondaryEmailResult { + public static final field OTHER Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult; + public static fun cannotRemovePrimary (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult; + public fun equals (Ljava/lang/Object;)Z + public fun getCannotRemovePrimaryValue ()Ljava/lang/String; + public fun getNotFoundValue ()Ljava/lang/String; + public fun getSuccessValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isCannotRemovePrimary ()Z + public fun isNotFound ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun notFound (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult; + public static fun success (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult; + public fun tag ()Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag : java/lang/Enum { + public static final field CANNOT_REMOVE_PRIMARY Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag; + public static final field NOT_FOUND Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/DeleteSecondaryEmailResult$Tag; +} + +public class com/dropbox/core/v2/team/DeleteSecondaryEmailsResult { + protected final field results Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResults ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/DesktopClientSession : com/dropbox/core/v2/team/DeviceSession { + protected final field clientType Lcom/dropbox/core/v2/team/DesktopPlatform; + protected final field clientVersion Ljava/lang/String; + protected final field hostName Ljava/lang/String; + protected final field isDeleteOnUnlinkSupported Z + protected final field platform Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;Ljava/lang/String;Z)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClientType ()Lcom/dropbox/core/v2/team/DesktopPlatform; + public fun getClientVersion ()Ljava/lang/String; + public fun getCountry ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getHostName ()Ljava/lang/String; + public fun getIpAddress ()Ljava/lang/String; + public fun getIsDeleteOnUnlinkSupported ()Z + public fun getPlatform ()Ljava/lang/String; + public fun getSessionId ()Ljava/lang/String; + public fun getUpdated ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;Ljava/lang/String;Z)Lcom/dropbox/core/v2/team/DesktopClientSession$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/DesktopClientSession$Builder : com/dropbox/core/v2/team/DeviceSession$Builder { + protected final field clientType Lcom/dropbox/core/v2/team/DesktopPlatform; + protected final field clientVersion Ljava/lang/String; + protected final field hostName Ljava/lang/String; + protected final field isDeleteOnUnlinkSupported Z + protected final field platform Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;Ljava/lang/String;Z)V + public fun build ()Lcom/dropbox/core/v2/team/DesktopClientSession; + public synthetic fun build ()Lcom/dropbox/core/v2/team/DeviceSession; + public fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DesktopClientSession$Builder; + public synthetic fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DesktopClientSession$Builder; + public synthetic fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DesktopClientSession$Builder; + public synthetic fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DesktopClientSession$Builder; + public synthetic fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; +} + +public final class com/dropbox/core/v2/team/DesktopPlatform : java/lang/Enum { + public static final field LINUX Lcom/dropbox/core/v2/team/DesktopPlatform; + public static final field MAC Lcom/dropbox/core/v2/team/DesktopPlatform; + public static final field OTHER Lcom/dropbox/core/v2/team/DesktopPlatform; + public static final field WINDOWS Lcom/dropbox/core/v2/team/DesktopPlatform; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DesktopPlatform; + public static fun values ()[Lcom/dropbox/core/v2/team/DesktopPlatform; +} + +public class com/dropbox/core/v2/team/DesktopPlatform$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/team/DesktopPlatform$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/team/DesktopPlatform; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/team/DesktopPlatform;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/team/DeviceSession { + protected final field country Ljava/lang/String; + protected final field created Ljava/util/Date; + protected final field ipAddress Ljava/lang/String; + protected final field sessionId Ljava/lang/String; + protected final field updated Ljava/util/Date; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCountry ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getIpAddress ()Ljava/lang/String; + public fun getSessionId ()Ljava/lang/String; + public fun getUpdated ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/DeviceSession$Builder { + protected field country Ljava/lang/String; + protected field created Ljava/util/Date; + protected field ipAddress Ljava/lang/String; + protected final field sessionId Ljava/lang/String; + protected field updated Ljava/util/Date; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/team/DeviceSession; + public fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; +} + +public class com/dropbox/core/v2/team/DeviceSessionArg { + protected final field sessionId Ljava/lang/String; + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSessionId ()Ljava/lang/String; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/DevicesActive { + protected final field android Ljava/util/List; + protected final field ios Ljava/util/List; + protected final field linux Ljava/util/List; + protected final field macos Ljava/util/List; + protected final field other Ljava/util/List; + protected final field total Ljava/util/List; + protected final field windows Ljava/util/List; + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAndroid ()Ljava/util/List; + public fun getIos ()Ljava/util/List; + public fun getLinux ()Ljava/util/List; + public fun getMacos ()Ljava/util/List; + public fun getOther ()Ljava/util/List; + public fun getTotal ()Ljava/util/List; + public fun getWindows ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/DevicesListMemberDevicesBuilder { + public fun start ()Lcom/dropbox/core/v2/team/ListMemberDevicesResult; + public fun withIncludeDesktopClients (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListMemberDevicesBuilder; + public fun withIncludeMobileClients (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListMemberDevicesBuilder; + public fun withIncludeWebSessions (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListMemberDevicesBuilder; +} + +public class com/dropbox/core/v2/team/DevicesListMembersDevicesBuilder { + public fun start ()Lcom/dropbox/core/v2/team/ListMembersDevicesResult; + public fun withCursor (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DevicesListMembersDevicesBuilder; + public fun withIncludeDesktopClients (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListMembersDevicesBuilder; + public fun withIncludeMobileClients (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListMembersDevicesBuilder; + public fun withIncludeWebSessions (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListMembersDevicesBuilder; +} + +public class com/dropbox/core/v2/team/DevicesListTeamDevicesBuilder { + public fun start ()Lcom/dropbox/core/v2/team/ListTeamDevicesResult; + public fun withCursor (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DevicesListTeamDevicesBuilder; + public fun withIncludeDesktopClients (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListTeamDevicesBuilder; + public fun withIncludeMobileClients (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListTeamDevicesBuilder; + public fun withIncludeWebSessions (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/DevicesListTeamDevicesBuilder; +} + +public final class com/dropbox/core/v2/team/ExcludedUsersListContinueError : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/team/ExcludedUsersListContinueError; + public static final field OTHER Lcom/dropbox/core/v2/team/ExcludedUsersListContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ExcludedUsersListContinueError; + public static fun values ()[Lcom/dropbox/core/v2/team/ExcludedUsersListContinueError; +} + +public class com/dropbox/core/v2/team/ExcludedUsersListContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ExcludedUsersListContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ExcludedUsersListContinueError;)V +} + +public final class com/dropbox/core/v2/team/ExcludedUsersListError : java/lang/Enum { + public static final field LIST_ERROR Lcom/dropbox/core/v2/team/ExcludedUsersListError; + public static final field OTHER Lcom/dropbox/core/v2/team/ExcludedUsersListError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ExcludedUsersListError; + public static fun values ()[Lcom/dropbox/core/v2/team/ExcludedUsersListError; +} + +public class com/dropbox/core/v2/team/ExcludedUsersListErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ExcludedUsersListError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ExcludedUsersListError;)V +} + +public class com/dropbox/core/v2/team/ExcludedUsersListResult { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field users Ljava/util/List; + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getUsers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/ExcludedUsersUpdateError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/ExcludedUsersUpdateError; + public static final field TOO_MANY_USERS Lcom/dropbox/core/v2/team/ExcludedUsersUpdateError; + public static final field USERS_NOT_IN_TEAM Lcom/dropbox/core/v2/team/ExcludedUsersUpdateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ExcludedUsersUpdateError; + public static fun values ()[Lcom/dropbox/core/v2/team/ExcludedUsersUpdateError; +} + +public class com/dropbox/core/v2/team/ExcludedUsersUpdateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ExcludedUsersUpdateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ExcludedUsersUpdateError;)V +} + +public class com/dropbox/core/v2/team/ExcludedUsersUpdateResult { + protected final field status Lcom/dropbox/core/v2/team/ExcludedUsersUpdateStatus; + public fun (Lcom/dropbox/core/v2/team/ExcludedUsersUpdateStatus;)V + public fun equals (Ljava/lang/Object;)Z + public fun getStatus ()Lcom/dropbox/core/v2/team/ExcludedUsersUpdateStatus; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/ExcludedUsersUpdateStatus : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/ExcludedUsersUpdateStatus; + public static final field SUCCESS Lcom/dropbox/core/v2/team/ExcludedUsersUpdateStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ExcludedUsersUpdateStatus; + public static fun values ()[Lcom/dropbox/core/v2/team/ExcludedUsersUpdateStatus; +} + +public final class com/dropbox/core/v2/team/Feature : java/lang/Enum { + public static final field HAS_TEAM_FILE_EVENTS Lcom/dropbox/core/v2/team/Feature; + public static final field HAS_TEAM_SELECTIVE_SYNC Lcom/dropbox/core/v2/team/Feature; + public static final field HAS_TEAM_SHARED_DROPBOX Lcom/dropbox/core/v2/team/Feature; + public static final field OTHER Lcom/dropbox/core/v2/team/Feature; + public static final field UPLOAD_API_RATE_LIMIT Lcom/dropbox/core/v2/team/Feature; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/Feature; + public static fun values ()[Lcom/dropbox/core/v2/team/Feature; +} + +public final class com/dropbox/core/v2/team/FeatureValue { + public static final field OTHER Lcom/dropbox/core/v2/team/FeatureValue; + public fun equals (Ljava/lang/Object;)Z + public fun getHasTeamFileEventsValue ()Lcom/dropbox/core/v2/team/HasTeamFileEventsValue; + public fun getHasTeamSelectiveSyncValue ()Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue; + public fun getHasTeamSharedDropboxValue ()Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue; + public fun getUploadApiRateLimitValue ()Lcom/dropbox/core/v2/team/UploadApiRateLimitValue; + public static fun hasTeamFileEvents (Lcom/dropbox/core/v2/team/HasTeamFileEventsValue;)Lcom/dropbox/core/v2/team/FeatureValue; + public static fun hasTeamSelectiveSync (Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue;)Lcom/dropbox/core/v2/team/FeatureValue; + public static fun hasTeamSharedDropbox (Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue;)Lcom/dropbox/core/v2/team/FeatureValue; + public fun hashCode ()I + public fun isHasTeamFileEvents ()Z + public fun isHasTeamSelectiveSync ()Z + public fun isHasTeamSharedDropbox ()Z + public fun isOther ()Z + public fun isUploadApiRateLimit ()Z + public fun tag ()Lcom/dropbox/core/v2/team/FeatureValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun uploadApiRateLimit (Lcom/dropbox/core/v2/team/UploadApiRateLimitValue;)Lcom/dropbox/core/v2/team/FeatureValue; +} + +public final class com/dropbox/core/v2/team/FeatureValue$Tag : java/lang/Enum { + public static final field HAS_TEAM_FILE_EVENTS Lcom/dropbox/core/v2/team/FeatureValue$Tag; + public static final field HAS_TEAM_SELECTIVE_SYNC Lcom/dropbox/core/v2/team/FeatureValue$Tag; + public static final field HAS_TEAM_SHARED_DROPBOX Lcom/dropbox/core/v2/team/FeatureValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/FeatureValue$Tag; + public static final field UPLOAD_API_RATE_LIMIT Lcom/dropbox/core/v2/team/FeatureValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/FeatureValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/FeatureValue$Tag; +} + +public final class com/dropbox/core/v2/team/FeaturesGetValuesBatchError : java/lang/Enum { + public static final field EMPTY_FEATURES_LIST Lcom/dropbox/core/v2/team/FeaturesGetValuesBatchError; + public static final field OTHER Lcom/dropbox/core/v2/team/FeaturesGetValuesBatchError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/FeaturesGetValuesBatchError; + public static fun values ()[Lcom/dropbox/core/v2/team/FeaturesGetValuesBatchError; +} + +public class com/dropbox/core/v2/team/FeaturesGetValuesBatchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/FeaturesGetValuesBatchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/FeaturesGetValuesBatchError;)V +} + +public class com/dropbox/core/v2/team/FeaturesGetValuesBatchResult { + protected final field values Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getValues ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/GetActivityReport : com/dropbox/core/v2/team/BaseDfbReport { + protected final field activeSharedFolders1Day Ljava/util/List; + protected final field activeSharedFolders28Day Ljava/util/List; + protected final field activeSharedFolders7Day Ljava/util/List; + protected final field activeUsers1Day Ljava/util/List; + protected final field activeUsers28Day Ljava/util/List; + protected final field activeUsers7Day Ljava/util/List; + protected final field adds Ljava/util/List; + protected final field deletes Ljava/util/List; + protected final field edits Ljava/util/List; + protected final field sharedLinksCreated Ljava/util/List; + protected final field sharedLinksViewedByNotLoggedIn Ljava/util/List; + protected final field sharedLinksViewedByOutsideUser Ljava/util/List; + protected final field sharedLinksViewedByTeam Ljava/util/List; + protected final field sharedLinksViewedTotal Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getActiveSharedFolders1Day ()Ljava/util/List; + public fun getActiveSharedFolders28Day ()Ljava/util/List; + public fun getActiveSharedFolders7Day ()Ljava/util/List; + public fun getActiveUsers1Day ()Ljava/util/List; + public fun getActiveUsers28Day ()Ljava/util/List; + public fun getActiveUsers7Day ()Ljava/util/List; + public fun getAdds ()Ljava/util/List; + public fun getDeletes ()Ljava/util/List; + public fun getEdits ()Ljava/util/List; + public fun getSharedLinksCreated ()Ljava/util/List; + public fun getSharedLinksViewedByNotLoggedIn ()Ljava/util/List; + public fun getSharedLinksViewedByOutsideUser ()Ljava/util/List; + public fun getSharedLinksViewedByTeam ()Ljava/util/List; + public fun getSharedLinksViewedTotal ()Ljava/util/List; + public fun getStartDate ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/GetDevicesReport : com/dropbox/core/v2/team/BaseDfbReport { + protected final field active1Day Lcom/dropbox/core/v2/team/DevicesActive; + protected final field active28Day Lcom/dropbox/core/v2/team/DevicesActive; + protected final field active7Day Lcom/dropbox/core/v2/team/DevicesActive; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/DevicesActive;Lcom/dropbox/core/v2/team/DevicesActive;Lcom/dropbox/core/v2/team/DevicesActive;)V + public fun equals (Ljava/lang/Object;)Z + public fun getActive1Day ()Lcom/dropbox/core/v2/team/DevicesActive; + public fun getActive28Day ()Lcom/dropbox/core/v2/team/DevicesActive; + public fun getActive7Day ()Lcom/dropbox/core/v2/team/DevicesActive; + public fun getStartDate ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/GetMembershipReport : com/dropbox/core/v2/team/BaseDfbReport { + protected final field licenses Ljava/util/List; + protected final field membersJoined Ljava/util/List; + protected final field pendingInvites Ljava/util/List; + protected final field suspendedMembers Ljava/util/List; + protected final field teamSize Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLicenses ()Ljava/util/List; + public fun getMembersJoined ()Ljava/util/List; + public fun getPendingInvites ()Ljava/util/List; + public fun getStartDate ()Ljava/lang/String; + public fun getSuspendedMembers ()Ljava/util/List; + public fun getTeamSize ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/GetStorageReport : com/dropbox/core/v2/team/BaseDfbReport { + protected final field memberStorageMap Ljava/util/List; + protected final field sharedFolders Ljava/util/List; + protected final field sharedUsage Ljava/util/List; + protected final field totalUsage Ljava/util/List; + protected final field unsharedUsage Ljava/util/List; + public fun (Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMemberStorageMap ()Ljava/util/List; + public fun getSharedFolders ()Ljava/util/List; + public fun getSharedUsage ()Ljava/util/List; + public fun getStartDate ()Ljava/lang/String; + public fun getTotalUsage ()Ljava/util/List; + public fun getUnsharedUsage ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupAccessType : java/lang/Enum { + public static final field MEMBER Lcom/dropbox/core/v2/team/GroupAccessType; + public static final field OWNER Lcom/dropbox/core/v2/team/GroupAccessType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupAccessType; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupAccessType; +} + +public final class com/dropbox/core/v2/team/GroupCreateError : java/lang/Enum { + public static final field EXTERNAL_ID_ALREADY_IN_USE Lcom/dropbox/core/v2/team/GroupCreateError; + public static final field GROUP_NAME_ALREADY_USED Lcom/dropbox/core/v2/team/GroupCreateError; + public static final field GROUP_NAME_INVALID Lcom/dropbox/core/v2/team/GroupCreateError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupCreateError; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupCreateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupCreateError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupCreateError; +} + +public class com/dropbox/core/v2/team/GroupCreateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupCreateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupCreateError;)V +} + +public final class com/dropbox/core/v2/team/GroupDeleteError : java/lang/Enum { + public static final field GROUP_ALREADY_DELETED Lcom/dropbox/core/v2/team/GroupDeleteError; + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupDeleteError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupDeleteError; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupDeleteError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupDeleteError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupDeleteError; +} + +public class com/dropbox/core/v2/team/GroupDeleteErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupDeleteError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupDeleteError;)V +} + +public class com/dropbox/core/v2/team/GroupFullInfo : com/dropbox/core/v2/teamcommon/GroupSummary { + protected final field created J + protected final field members Ljava/util/List; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;J)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;JLjava/lang/String;Ljava/lang/Long;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCreated ()J + public fun getGroupExternalId ()Ljava/lang/String; + public fun getGroupId ()Ljava/lang/String; + public fun getGroupManagementType ()Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public fun getGroupName ()Ljava/lang/String; + public fun getMemberCount ()Ljava/lang/Long; + public fun getMembers ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;J)Lcom/dropbox/core/v2/team/GroupFullInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/GroupFullInfo$Builder : com/dropbox/core/v2/teamcommon/GroupSummary$Builder { + protected final field created J + protected field members Ljava/util/List; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;J)V + public fun build ()Lcom/dropbox/core/v2/team/GroupFullInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/teamcommon/GroupSummary; + public fun withGroupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupFullInfo$Builder; + public synthetic fun withGroupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamcommon/GroupSummary$Builder; + public fun withMemberCount (Ljava/lang/Long;)Lcom/dropbox/core/v2/team/GroupFullInfo$Builder; + public synthetic fun withMemberCount (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamcommon/GroupSummary$Builder; + public fun withMembers (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupFullInfo$Builder; +} + +public class com/dropbox/core/v2/team/GroupMemberInfo { + protected final field accessType Lcom/dropbox/core/v2/team/GroupAccessType; + protected final field profile Lcom/dropbox/core/v2/team/MemberProfile; + public fun (Lcom/dropbox/core/v2/team/MemberProfile;Lcom/dropbox/core/v2/team/GroupAccessType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/team/GroupAccessType; + public fun getProfile ()Lcom/dropbox/core/v2/team/MemberProfile; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupMemberSetAccessTypeError : java/lang/Enum { + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; + public static final field MEMBER_NOT_IN_GROUP Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; + public static final field USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; +} + +public class com/dropbox/core/v2/team/GroupMemberSetAccessTypeErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupMemberSetAccessTypeError;)V +} + +public final class com/dropbox/core/v2/team/GroupMembersAddError { + public static final field DUPLICATE_USER Lcom/dropbox/core/v2/team/GroupMembersAddError; + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupMembersAddError; + public static final field GROUP_NOT_IN_TEAM Lcom/dropbox/core/v2/team/GroupMembersAddError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupMembersAddError; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupMembersAddError; + public static final field USER_MUST_BE_ACTIVE_TO_BE_OWNER Lcom/dropbox/core/v2/team/GroupMembersAddError; + public fun equals (Ljava/lang/Object;)Z + public fun getMembersNotInTeamValue ()Ljava/util/List; + public fun getUserCannotBeManagerOfCompanyManagedGroupValue ()Ljava/util/List; + public fun getUsersNotFoundValue ()Ljava/util/List; + public fun hashCode ()I + public fun isDuplicateUser ()Z + public fun isGroupNotFound ()Z + public fun isGroupNotInTeam ()Z + public fun isMembersNotInTeam ()Z + public fun isOther ()Z + public fun isSystemManagedGroupDisallowed ()Z + public fun isUserCannotBeManagerOfCompanyManagedGroup ()Z + public fun isUserMustBeActiveToBeOwner ()Z + public fun isUsersNotFound ()Z + public static fun membersNotInTeam (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupMembersAddError; + public fun tag ()Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userCannotBeManagerOfCompanyManagedGroup (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupMembersAddError; + public static fun usersNotFound (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupMembersAddError; +} + +public final class com/dropbox/core/v2/team/GroupMembersAddError$Tag : java/lang/Enum { + public static final field DUPLICATE_USER Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field GROUP_NOT_IN_TEAM Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field MEMBERS_NOT_IN_TEAM Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field USERS_NOT_FOUND Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static final field USER_MUST_BE_ACTIVE_TO_BE_OWNER Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupMembersAddError$Tag; +} + +public class com/dropbox/core/v2/team/GroupMembersAddErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupMembersAddError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupMembersAddError;)V +} + +public class com/dropbox/core/v2/team/GroupMembersChangeResult { + protected final field asyncJobId Ljava/lang/String; + protected final field groupInfo Lcom/dropbox/core/v2/team/GroupFullInfo; + public fun (Lcom/dropbox/core/v2/team/GroupFullInfo;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobId ()Ljava/lang/String; + public fun getGroupInfo ()Lcom/dropbox/core/v2/team/GroupFullInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupMembersRemoveError { + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupMembersRemoveError; + public static final field GROUP_NOT_IN_TEAM Lcom/dropbox/core/v2/team/GroupMembersRemoveError; + public static final field MEMBER_NOT_IN_GROUP Lcom/dropbox/core/v2/team/GroupMembersRemoveError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupMembersRemoveError; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupMembersRemoveError; + public fun equals (Ljava/lang/Object;)Z + public fun getMembersNotInTeamValue ()Ljava/util/List; + public fun getUsersNotFoundValue ()Ljava/util/List; + public fun hashCode ()I + public fun isGroupNotFound ()Z + public fun isGroupNotInTeam ()Z + public fun isMemberNotInGroup ()Z + public fun isMembersNotInTeam ()Z + public fun isOther ()Z + public fun isSystemManagedGroupDisallowed ()Z + public fun isUsersNotFound ()Z + public static fun membersNotInTeam (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupMembersRemoveError; + public fun tag ()Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun usersNotFound (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupMembersRemoveError; +} + +public final class com/dropbox/core/v2/team/GroupMembersRemoveError$Tag : java/lang/Enum { + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static final field GROUP_NOT_IN_TEAM Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static final field MEMBERS_NOT_IN_TEAM Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static final field MEMBER_NOT_IN_GROUP Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static final field USERS_NOT_FOUND Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupMembersRemoveError$Tag; +} + +public class com/dropbox/core/v2/team/GroupMembersRemoveErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupMembersRemoveError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupMembersRemoveError;)V +} + +public final class com/dropbox/core/v2/team/GroupSelector { + public fun equals (Ljava/lang/Object;)Z + public fun getGroupExternalIdValue ()Ljava/lang/String; + public fun getGroupIdValue ()Ljava/lang/String; + public static fun groupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupSelector; + public static fun groupId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupSelector; + public fun hashCode ()I + public fun isGroupExternalId ()Z + public fun isGroupId ()Z + public fun tag ()Lcom/dropbox/core/v2/team/GroupSelector$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupSelector$Tag : java/lang/Enum { + public static final field GROUP_EXTERNAL_ID Lcom/dropbox/core/v2/team/GroupSelector$Tag; + public static final field GROUP_ID Lcom/dropbox/core/v2/team/GroupSelector$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupSelector$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupSelector$Tag; +} + +public final class com/dropbox/core/v2/team/GroupSelectorError : java/lang/Enum { + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupSelectorError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupSelectorError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupSelectorError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupSelectorError; +} + +public class com/dropbox/core/v2/team/GroupSelectorErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupSelectorError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupSelectorError;)V +} + +public final class com/dropbox/core/v2/team/GroupUpdateError : java/lang/Enum { + public static final field EXTERNAL_ID_ALREADY_IN_USE Lcom/dropbox/core/v2/team/GroupUpdateError; + public static final field GROUP_NAME_ALREADY_USED Lcom/dropbox/core/v2/team/GroupUpdateError; + public static final field GROUP_NAME_INVALID Lcom/dropbox/core/v2/team/GroupUpdateError; + public static final field GROUP_NOT_FOUND Lcom/dropbox/core/v2/team/GroupUpdateError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupUpdateError; + public static final field SYSTEM_MANAGED_GROUP_DISALLOWED Lcom/dropbox/core/v2/team/GroupUpdateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupUpdateError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupUpdateError; +} + +public class com/dropbox/core/v2/team/GroupUpdateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupUpdateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupUpdateError;)V +} + +public class com/dropbox/core/v2/team/GroupsCreateBuilder { + public fun start ()Lcom/dropbox/core/v2/team/GroupFullInfo; + public fun withAddCreatorAsOwner (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/GroupsCreateBuilder; + public fun withGroupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsCreateBuilder; + public fun withGroupManagementType (Lcom/dropbox/core/v2/teamcommon/GroupManagementType;)Lcom/dropbox/core/v2/team/GroupsCreateBuilder; +} + +public final class com/dropbox/core/v2/team/GroupsGetInfoError : java/lang/Enum { + public static final field GROUP_NOT_ON_TEAM Lcom/dropbox/core/v2/team/GroupsGetInfoError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupsGetInfoError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsGetInfoError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupsGetInfoError; +} + +public class com/dropbox/core/v2/team/GroupsGetInfoErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupsGetInfoError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupsGetInfoError;)V +} + +public final class com/dropbox/core/v2/team/GroupsGetInfoItem { + public fun equals (Ljava/lang/Object;)Z + public fun getGroupInfoValue ()Lcom/dropbox/core/v2/team/GroupFullInfo; + public fun getIdNotFoundValue ()Ljava/lang/String; + public static fun groupInfo (Lcom/dropbox/core/v2/team/GroupFullInfo;)Lcom/dropbox/core/v2/team/GroupsGetInfoItem; + public fun hashCode ()I + public static fun idNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsGetInfoItem; + public fun isGroupInfo ()Z + public fun isIdNotFound ()Z + public fun tag ()Lcom/dropbox/core/v2/team/GroupsGetInfoItem$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupsGetInfoItem$Tag : java/lang/Enum { + public static final field GROUP_INFO Lcom/dropbox/core/v2/team/GroupsGetInfoItem$Tag; + public static final field ID_NOT_FOUND Lcom/dropbox/core/v2/team/GroupsGetInfoItem$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsGetInfoItem$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupsGetInfoItem$Tag; +} + +public final class com/dropbox/core/v2/team/GroupsListContinueError : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/team/GroupsListContinueError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupsListContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsListContinueError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupsListContinueError; +} + +public class com/dropbox/core/v2/team/GroupsListContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupsListContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupsListContinueError;)V +} + +public class com/dropbox/core/v2/team/GroupsListResult { + protected final field cursor Ljava/lang/String; + protected final field groups Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getGroups ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupsMembersListContinueError : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/team/GroupsMembersListContinueError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupsMembersListContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsMembersListContinueError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupsMembersListContinueError; +} + +public class com/dropbox/core/v2/team/GroupsMembersListContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupsMembersListContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupsMembersListContinueError;)V +} + +public class com/dropbox/core/v2/team/GroupsMembersListResult { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field members Ljava/util/List; + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getMembers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupsPollError : java/lang/Enum { + public static final field ACCESS_DENIED Lcom/dropbox/core/v2/team/GroupsPollError; + public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/team/GroupsPollError; + public static final field INVALID_ASYNC_JOB_ID Lcom/dropbox/core/v2/team/GroupsPollError; + public static final field OTHER Lcom/dropbox/core/v2/team/GroupsPollError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsPollError; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupsPollError; +} + +public class com/dropbox/core/v2/team/GroupsPollErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/GroupsPollError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/GroupsPollError;)V +} + +public final class com/dropbox/core/v2/team/GroupsSelector { + public fun equals (Ljava/lang/Object;)Z + public fun getGroupExternalIdsValue ()Ljava/util/List; + public fun getGroupIdsValue ()Ljava/util/List; + public static fun groupExternalIds (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupsSelector; + public static fun groupIds (Ljava/util/List;)Lcom/dropbox/core/v2/team/GroupsSelector; + public fun hashCode ()I + public fun isGroupExternalIds ()Z + public fun isGroupIds ()Z + public fun tag ()Lcom/dropbox/core/v2/team/GroupsSelector$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/GroupsSelector$Tag : java/lang/Enum { + public static final field GROUP_EXTERNAL_IDS Lcom/dropbox/core/v2/team/GroupsSelector$Tag; + public static final field GROUP_IDS Lcom/dropbox/core/v2/team/GroupsSelector$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsSelector$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/GroupsSelector$Tag; +} + +public class com/dropbox/core/v2/team/GroupsUpdateBuilder { + public fun start ()Lcom/dropbox/core/v2/team/GroupFullInfo; + public fun withNewGroupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsUpdateBuilder; + public fun withNewGroupManagementType (Lcom/dropbox/core/v2/teamcommon/GroupManagementType;)Lcom/dropbox/core/v2/team/GroupsUpdateBuilder; + public fun withNewGroupName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/GroupsUpdateBuilder; + public fun withReturnMembers (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/GroupsUpdateBuilder; +} + +public final class com/dropbox/core/v2/team/HasTeamFileEventsValue { + public static final field OTHER Lcom/dropbox/core/v2/team/HasTeamFileEventsValue; + public static fun enabled (Z)Lcom/dropbox/core/v2/team/HasTeamFileEventsValue; + public fun equals (Ljava/lang/Object;)Z + public fun getEnabledValue ()Z + public fun hashCode ()I + public fun isEnabled ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/team/HasTeamFileEventsValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/HasTeamFileEventsValue$Tag : java/lang/Enum { + public static final field ENABLED Lcom/dropbox/core/v2/team/HasTeamFileEventsValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/HasTeamFileEventsValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/HasTeamFileEventsValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/HasTeamFileEventsValue$Tag; +} + +public final class com/dropbox/core/v2/team/HasTeamSelectiveSyncValue { + public static final field OTHER Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue; + public fun equals (Ljava/lang/Object;)Z + public fun getHasTeamSelectiveSyncValue ()Z + public static fun hasTeamSelectiveSync (Z)Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue; + public fun hashCode ()I + public fun isHasTeamSelectiveSync ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/HasTeamSelectiveSyncValue$Tag : java/lang/Enum { + public static final field HAS_TEAM_SELECTIVE_SYNC Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/HasTeamSelectiveSyncValue$Tag; +} + +public final class com/dropbox/core/v2/team/HasTeamSharedDropboxValue { + public static final field OTHER Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue; + public fun equals (Ljava/lang/Object;)Z + public fun getHasTeamSharedDropboxValue ()Z + public static fun hasTeamSharedDropbox (Z)Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue; + public fun hashCode ()I + public fun isHasTeamSharedDropbox ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/HasTeamSharedDropboxValue$Tag : java/lang/Enum { + public static final field HAS_TEAM_SHARED_DROPBOX Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/HasTeamSharedDropboxValue$Tag; +} + +public class com/dropbox/core/v2/team/LegalHoldHeldRevisionMetadata { + protected final field authorEmail Ljava/lang/String; + protected final field authorMemberId Ljava/lang/String; + protected final field authorMemberStatus Lcom/dropbox/core/v2/team/TeamMemberStatus; + protected final field contentHash Ljava/lang/String; + protected final field fileType Ljava/lang/String; + protected final field newFilename Ljava/lang/String; + protected final field originalFilePath Ljava/lang/String; + protected final field originalRevisionId Ljava/lang/String; + protected final field serverModified Ljava/util/Date; + protected final field size J + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;Lcom/dropbox/core/v2/team/TeamMemberStatus;Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAuthorEmail ()Ljava/lang/String; + public fun getAuthorMemberId ()Ljava/lang/String; + public fun getAuthorMemberStatus ()Lcom/dropbox/core/v2/team/TeamMemberStatus; + public fun getContentHash ()Ljava/lang/String; + public fun getFileType ()Ljava/lang/String; + public fun getNewFilename ()Ljava/lang/String; + public fun getOriginalFilePath ()Ljava/lang/String; + public fun getOriginalRevisionId ()Ljava/lang/String; + public fun getServerModified ()Ljava/util/Date; + public fun getSize ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/LegalHoldPolicy { + protected final field activationTime Ljava/util/Date; + protected final field description Ljava/lang/String; + protected final field endDate Ljava/util/Date; + protected final field id Ljava/lang/String; + protected final field members Lcom/dropbox/core/v2/team/MembersInfo; + protected final field name Ljava/lang/String; + protected final field startDate Ljava/util/Date; + protected final field status Lcom/dropbox/core/v2/team/LegalHoldStatus; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MembersInfo;Lcom/dropbox/core/v2/team/LegalHoldStatus;Ljava/util/Date;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MembersInfo;Lcom/dropbox/core/v2/team/LegalHoldStatus;Ljava/util/Date;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getActivationTime ()Ljava/util/Date; + public fun getDescription ()Ljava/lang/String; + public fun getEndDate ()Ljava/util/Date; + public fun getId ()Ljava/lang/String; + public fun getMembers ()Lcom/dropbox/core/v2/team/MembersInfo; + public fun getName ()Ljava/lang/String; + public fun getStartDate ()Ljava/util/Date; + public fun getStatus ()Lcom/dropbox/core/v2/team/LegalHoldStatus; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MembersInfo;Lcom/dropbox/core/v2/team/LegalHoldStatus;Ljava/util/Date;)Lcom/dropbox/core/v2/team/LegalHoldPolicy$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/LegalHoldPolicy$Builder { + protected field activationTime Ljava/util/Date; + protected field description Ljava/lang/String; + protected field endDate Ljava/util/Date; + protected final field id Ljava/lang/String; + protected final field members Lcom/dropbox/core/v2/team/MembersInfo; + protected final field name Ljava/lang/String; + protected final field startDate Ljava/util/Date; + protected final field status Lcom/dropbox/core/v2/team/LegalHoldStatus; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MembersInfo;Lcom/dropbox/core/v2/team/LegalHoldStatus;Ljava/util/Date;)V + public fun build ()Lcom/dropbox/core/v2/team/LegalHoldPolicy; + public fun withActivationTime (Ljava/util/Date;)Lcom/dropbox/core/v2/team/LegalHoldPolicy$Builder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldPolicy$Builder; + public fun withEndDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/LegalHoldPolicy$Builder; +} + +public final class com/dropbox/core/v2/team/LegalHoldStatus : java/lang/Enum { + public static final field ACTIVATING Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static final field ACTIVE Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static final field EXPORTING Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static final field OTHER Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static final field RELEASED Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static final field RELEASING Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static final field UPDATING Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldStatus; + public static fun values ()[Lcom/dropbox/core/v2/team/LegalHoldStatus; +} + +public class com/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder { + public fun start ()Lcom/dropbox/core/v2/team/LegalHoldPolicy; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder; + public fun withEndDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder; + public fun withStartDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder; +} + +public final class com/dropbox/core/v2/team/LegalHoldsGetPolicyError : java/lang/Enum { + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError; + public static final field LEGAL_HOLD_POLICY_NOT_FOUND Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError; + public static final field OTHER Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError; + public static final field UNKNOWN_LEGAL_HOLD_ERROR Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError; + public static fun values ()[Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError; +} + +public class com/dropbox/core/v2/team/LegalHoldsGetPolicyErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/LegalHoldsGetPolicyError;)V +} + +public class com/dropbox/core/v2/team/LegalHoldsListHeldRevisionResult { + protected final field cursor Ljava/lang/String; + protected final field entries Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getEntries ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError : java/lang/Enum { + public static final field INACTIVE_LEGAL_HOLD Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public static final field LEGAL_HOLD_STILL_EMPTY Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public static final field OTHER Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public static final field TRANSIENT_ERROR Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public static final field UNKNOWN_LEGAL_HOLD_ERROR Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public static fun values ()[Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; +} + +public class com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError;)V +} + +public final class com/dropbox/core/v2/team/LegalHoldsListPoliciesError : java/lang/Enum { + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError; + public static final field OTHER Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError; + public static final field TRANSIENT_ERROR Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError; + public static final field UNKNOWN_LEGAL_HOLD_ERROR Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError; + public static fun values ()[Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError; +} + +public class com/dropbox/core/v2/team/LegalHoldsListPoliciesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/LegalHoldsListPoliciesError;)V +} + +public class com/dropbox/core/v2/team/LegalHoldsListPoliciesResult { + protected final field policies Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPolicies ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/LegalHoldsPolicyCreateError : java/lang/Enum { + public static final field EMPTY_MEMBERS_LIST Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field INVALID_DATE Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field INVALID_MEMBERS Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field NAME_MUST_BE_UNIQUE Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field OTHER Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field START_DATE_IS_LATER_THAN_END_DATE Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field TEAM_EXCEEDED_LEGAL_HOLD_QUOTA Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field TRANSIENT_ERROR Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static final field UNKNOWN_LEGAL_HOLD_ERROR Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public static fun values ()[Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; +} + +public class com/dropbox/core/v2/team/LegalHoldsPolicyCreateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/LegalHoldsPolicyCreateError;)V +} + +public final class com/dropbox/core/v2/team/LegalHoldsPolicyReleaseError : java/lang/Enum { + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public static final field LEGAL_HOLD_ALREADY_RELEASING Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public static final field LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public static final field LEGAL_HOLD_POLICY_NOT_FOUND Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public static final field OTHER Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public static final field UNKNOWN_LEGAL_HOLD_ERROR Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public static fun values ()[Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; +} + +public class com/dropbox/core/v2/team/LegalHoldsPolicyReleaseErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/LegalHoldsPolicyReleaseError;)V +} + +public final class com/dropbox/core/v2/team/LegalHoldsPolicyUpdateError : java/lang/Enum { + public static final field EMPTY_MEMBERS_LIST Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field INACTIVE_LEGAL_HOLD Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field INSUFFICIENT_PERMISSIONS Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field INVALID_MEMBERS Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field LEGAL_HOLD_POLICY_NOT_FOUND Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field NAME_MUST_BE_UNIQUE Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field OTHER Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field TRANSIENT_ERROR Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static final field UNKNOWN_LEGAL_HOLD_ERROR Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public static fun values ()[Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; +} + +public class com/dropbox/core/v2/team/LegalHoldsPolicyUpdateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/LegalHoldsPolicyUpdateError;)V +} + +public class com/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder { + public fun start ()Lcom/dropbox/core/v2/team/LegalHoldPolicy; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder; + public fun withMembers (Ljava/util/List;)Lcom/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder; + public fun withName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder; +} + +public final class com/dropbox/core/v2/team/ListMemberAppsError : java/lang/Enum { + public static final field MEMBER_NOT_FOUND Lcom/dropbox/core/v2/team/ListMemberAppsError; + public static final field OTHER Lcom/dropbox/core/v2/team/ListMemberAppsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListMemberAppsError; + public static fun values ()[Lcom/dropbox/core/v2/team/ListMemberAppsError; +} + +public class com/dropbox/core/v2/team/ListMemberAppsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ListMemberAppsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ListMemberAppsError;)V +} + +public class com/dropbox/core/v2/team/ListMemberAppsResult { + protected final field linkedApiApps Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLinkedApiApps ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/ListMemberDevicesError : java/lang/Enum { + public static final field MEMBER_NOT_FOUND Lcom/dropbox/core/v2/team/ListMemberDevicesError; + public static final field OTHER Lcom/dropbox/core/v2/team/ListMemberDevicesError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListMemberDevicesError; + public static fun values ()[Lcom/dropbox/core/v2/team/ListMemberDevicesError; +} + +public class com/dropbox/core/v2/team/ListMemberDevicesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ListMemberDevicesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ListMemberDevicesError;)V +} + +public class com/dropbox/core/v2/team/ListMemberDevicesResult { + protected final field activeWebSessions Ljava/util/List; + protected final field desktopClientSessions Ljava/util/List; + protected final field mobileClientSessions Ljava/util/List; + public fun ()V + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getActiveWebSessions ()Ljava/util/List; + public fun getDesktopClientSessions ()Ljava/util/List; + public fun getMobileClientSessions ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/team/ListMemberDevicesResult$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/ListMemberDevicesResult$Builder { + protected field activeWebSessions Ljava/util/List; + protected field desktopClientSessions Ljava/util/List; + protected field mobileClientSessions Ljava/util/List; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/team/ListMemberDevicesResult; + public fun withActiveWebSessions (Ljava/util/List;)Lcom/dropbox/core/v2/team/ListMemberDevicesResult$Builder; + public fun withDesktopClientSessions (Ljava/util/List;)Lcom/dropbox/core/v2/team/ListMemberDevicesResult$Builder; + public fun withMobileClientSessions (Ljava/util/List;)Lcom/dropbox/core/v2/team/ListMemberDevicesResult$Builder; +} + +public final class com/dropbox/core/v2/team/ListMembersAppsError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/ListMembersAppsError; + public static final field RESET Lcom/dropbox/core/v2/team/ListMembersAppsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListMembersAppsError; + public static fun values ()[Lcom/dropbox/core/v2/team/ListMembersAppsError; +} + +public class com/dropbox/core/v2/team/ListMembersAppsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ListMembersAppsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ListMembersAppsError;)V +} + +public class com/dropbox/core/v2/team/ListMembersAppsResult { + protected final field apps Ljava/util/List; + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getApps ()Ljava/util/List; + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/ListMembersDevicesError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/ListMembersDevicesError; + public static final field RESET Lcom/dropbox/core/v2/team/ListMembersDevicesError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListMembersDevicesError; + public static fun values ()[Lcom/dropbox/core/v2/team/ListMembersDevicesError; +} + +public class com/dropbox/core/v2/team/ListMembersDevicesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ListMembersDevicesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ListMembersDevicesError;)V +} + +public class com/dropbox/core/v2/team/ListMembersDevicesResult { + protected final field cursor Ljava/lang/String; + protected final field devices Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getDevices ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/ListTeamAppsError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/ListTeamAppsError; + public static final field RESET Lcom/dropbox/core/v2/team/ListTeamAppsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListTeamAppsError; + public static fun values ()[Lcom/dropbox/core/v2/team/ListTeamAppsError; +} + +public class com/dropbox/core/v2/team/ListTeamAppsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ListTeamAppsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ListTeamAppsError;)V +} + +public class com/dropbox/core/v2/team/ListTeamAppsResult { + protected final field apps Ljava/util/List; + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getApps ()Ljava/util/List; + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/ListTeamDevicesError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/ListTeamDevicesError; + public static final field RESET Lcom/dropbox/core/v2/team/ListTeamDevicesError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ListTeamDevicesError; + public static fun values ()[Lcom/dropbox/core/v2/team/ListTeamDevicesError; +} + +public class com/dropbox/core/v2/team/ListTeamDevicesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/ListTeamDevicesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/ListTeamDevicesError;)V +} + +public class com/dropbox/core/v2/team/ListTeamDevicesResult { + protected final field cursor Ljava/lang/String; + protected final field devices Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Z)V + public fun (Ljava/util/List;ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getDevices ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberAccess { + protected final field accessType Lcom/dropbox/core/v2/team/GroupAccessType; + protected final field user Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;Lcom/dropbox/core/v2/team/GroupAccessType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/team/GroupAccessType; + public fun getUser ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberAddArg : com/dropbox/core/v2/team/MemberAddArgBase { + protected final field role Lcom/dropbox/core/v2/team/AdminTier; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Boolean;Lcom/dropbox/core/v2/team/AdminTier;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsDirectoryRestricted ()Ljava/lang/Boolean; + public fun getMemberEmail ()Ljava/lang/String; + public fun getMemberExternalId ()Ljava/lang/String; + public fun getMemberGivenName ()Ljava/lang/String; + public fun getMemberPersistentId ()Ljava/lang/String; + public fun getMemberSurname ()Ljava/lang/String; + public fun getRole ()Lcom/dropbox/core/v2/team/AdminTier; + public fun getSendWelcomeEmail ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberAddArg$Builder : com/dropbox/core/v2/team/MemberAddArgBase$Builder { + protected field role Lcom/dropbox/core/v2/team/AdminTier; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/team/MemberAddArg; + public synthetic fun build ()Lcom/dropbox/core/v2/team/MemberAddArgBase; + public fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public synthetic fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public synthetic fun withMemberExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public synthetic fun withMemberGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public synthetic fun withMemberPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public synthetic fun withMemberSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withRole (Lcom/dropbox/core/v2/team/AdminTier;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public fun withSendWelcomeEmail (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArg$Builder; + public synthetic fun withSendWelcomeEmail (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; +} + +public class com/dropbox/core/v2/team/MemberAddArgBase { + protected final field isDirectoryRestricted Ljava/lang/Boolean; + protected final field memberEmail Ljava/lang/String; + protected final field memberExternalId Ljava/lang/String; + protected final field memberGivenName Ljava/lang/String; + protected final field memberPersistentId Ljava/lang/String; + protected final field memberSurname Ljava/lang/String; + protected final field sendWelcomeEmail Z + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsDirectoryRestricted ()Ljava/lang/Boolean; + public fun getMemberEmail ()Ljava/lang/String; + public fun getMemberExternalId ()Ljava/lang/String; + public fun getMemberGivenName ()Ljava/lang/String; + public fun getMemberPersistentId ()Ljava/lang/String; + public fun getMemberSurname ()Ljava/lang/String; + public fun getSendWelcomeEmail ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberAddArgBase$Builder { + protected field isDirectoryRestricted Ljava/lang/Boolean; + protected final field memberEmail Ljava/lang/String; + protected field memberExternalId Ljava/lang/String; + protected field memberGivenName Ljava/lang/String; + protected field memberPersistentId Ljava/lang/String; + protected field memberSurname Ljava/lang/String; + protected field sendWelcomeEmail Z + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/team/MemberAddArgBase; + public fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withSendWelcomeEmail (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; +} + +public final class com/dropbox/core/v2/team/MemberAddResult { + public static fun duplicateExternalMemberId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public static fun duplicateMemberPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public fun equals (Ljava/lang/Object;)Z + public static fun freeTeamMemberLimitReached (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public fun getDuplicateExternalMemberIdValue ()Ljava/lang/String; + public fun getDuplicateMemberPersistentIdValue ()Ljava/lang/String; + public fun getFreeTeamMemberLimitReachedValue ()Ljava/lang/String; + public fun getPersistentIdDisabledValue ()Ljava/lang/String; + public fun getSuccessValue ()Lcom/dropbox/core/v2/team/TeamMemberInfo; + public fun getTeamLicenseLimitValue ()Ljava/lang/String; + public fun getUserAlreadyOnTeamValue ()Ljava/lang/String; + public fun getUserAlreadyPairedValue ()Ljava/lang/String; + public fun getUserCreationFailedValue ()Ljava/lang/String; + public fun getUserMigrationFailedValue ()Ljava/lang/String; + public fun getUserOnAnotherTeamValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isDuplicateExternalMemberId ()Z + public fun isDuplicateMemberPersistentId ()Z + public fun isFreeTeamMemberLimitReached ()Z + public fun isPersistentIdDisabled ()Z + public fun isSuccess ()Z + public fun isTeamLicenseLimit ()Z + public fun isUserAlreadyOnTeam ()Z + public fun isUserAlreadyPaired ()Z + public fun isUserCreationFailed ()Z + public fun isUserMigrationFailed ()Z + public fun isUserOnAnotherTeam ()Z + public static fun persistentIdDisabled (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public static fun success (Lcom/dropbox/core/v2/team/TeamMemberInfo;)Lcom/dropbox/core/v2/team/MemberAddResult; + public fun tag ()Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static fun teamLicenseLimit (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userAlreadyOnTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public static fun userAlreadyPaired (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public static fun userCreationFailed (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public static fun userMigrationFailed (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; + public static fun userOnAnotherTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult; +} + +public final class com/dropbox/core/v2/team/MemberAddResult$Tag : java/lang/Enum { + public static final field DUPLICATE_EXTERNAL_MEMBER_ID Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field DUPLICATE_MEMBER_PERSISTENT_ID Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field FREE_TEAM_MEMBER_LIMIT_REACHED Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field PERSISTENT_ID_DISABLED Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field TEAM_LICENSE_LIMIT Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field USER_ALREADY_ON_TEAM Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field USER_ALREADY_PAIRED Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field USER_CREATION_FAILED Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field USER_MIGRATION_FAILED Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static final field USER_ON_ANOTHER_TEAM Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MemberAddResult$Tag; +} + +public class com/dropbox/core/v2/team/MemberAddV2Arg : com/dropbox/core/v2/team/MemberAddArgBase { + protected final field roleIds Ljava/util/List; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Boolean;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsDirectoryRestricted ()Ljava/lang/Boolean; + public fun getMemberEmail ()Ljava/lang/String; + public fun getMemberExternalId ()Ljava/lang/String; + public fun getMemberGivenName ()Ljava/lang/String; + public fun getMemberPersistentId ()Ljava/lang/String; + public fun getMemberSurname ()Ljava/lang/String; + public fun getRoleIds ()Ljava/util/List; + public fun getSendWelcomeEmail ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberAddV2Arg$Builder : com/dropbox/core/v2/team/MemberAddArgBase$Builder { + protected field roleIds Ljava/util/List; + protected fun (Ljava/lang/String;)V + public synthetic fun build ()Lcom/dropbox/core/v2/team/MemberAddArgBase; + public fun build ()Lcom/dropbox/core/v2/team/MemberAddV2Arg; + public synthetic fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; + public synthetic fun withMemberExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; + public synthetic fun withMemberGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; + public synthetic fun withMemberPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; + public synthetic fun withMemberSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withMemberSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; + public fun withRoleIds (Ljava/util/List;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; + public synthetic fun withSendWelcomeEmail (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddArgBase$Builder; + public fun withSendWelcomeEmail (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberAddV2Arg$Builder; +} + +public final class com/dropbox/core/v2/team/MemberAddV2Result { + public static final field OTHER Lcom/dropbox/core/v2/team/MemberAddV2Result; + public static fun duplicateExternalMemberId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public static fun duplicateMemberPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public fun equals (Ljava/lang/Object;)Z + public static fun freeTeamMemberLimitReached (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public fun getDuplicateExternalMemberIdValue ()Ljava/lang/String; + public fun getDuplicateMemberPersistentIdValue ()Ljava/lang/String; + public fun getFreeTeamMemberLimitReachedValue ()Ljava/lang/String; + public fun getPersistentIdDisabledValue ()Ljava/lang/String; + public fun getSuccessValue ()Lcom/dropbox/core/v2/team/TeamMemberInfoV2; + public fun getTeamLicenseLimitValue ()Ljava/lang/String; + public fun getUserAlreadyOnTeamValue ()Ljava/lang/String; + public fun getUserAlreadyPairedValue ()Ljava/lang/String; + public fun getUserCreationFailedValue ()Ljava/lang/String; + public fun getUserMigrationFailedValue ()Ljava/lang/String; + public fun getUserOnAnotherTeamValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isDuplicateExternalMemberId ()Z + public fun isDuplicateMemberPersistentId ()Z + public fun isFreeTeamMemberLimitReached ()Z + public fun isOther ()Z + public fun isPersistentIdDisabled ()Z + public fun isSuccess ()Z + public fun isTeamLicenseLimit ()Z + public fun isUserAlreadyOnTeam ()Z + public fun isUserAlreadyPaired ()Z + public fun isUserCreationFailed ()Z + public fun isUserMigrationFailed ()Z + public fun isUserOnAnotherTeam ()Z + public static fun persistentIdDisabled (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public static fun success (Lcom/dropbox/core/v2/team/TeamMemberInfoV2;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public fun tag ()Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static fun teamLicenseLimit (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun userAlreadyOnTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public static fun userAlreadyPaired (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public static fun userCreationFailed (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public static fun userMigrationFailed (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; + public static fun userOnAnotherTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result; +} + +public final class com/dropbox/core/v2/team/MemberAddV2Result$Tag : java/lang/Enum { + public static final field DUPLICATE_EXTERNAL_MEMBER_ID Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field DUPLICATE_MEMBER_PERSISTENT_ID Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field FREE_TEAM_MEMBER_LIMIT_REACHED Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field PERSISTENT_ID_DISABLED Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field TEAM_LICENSE_LIMIT Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field USER_ALREADY_ON_TEAM Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field USER_ALREADY_PAIRED Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field USER_CREATION_FAILED Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field USER_MIGRATION_FAILED Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static final field USER_ON_ANOTHER_TEAM Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MemberAddV2Result$Tag; +} + +public class com/dropbox/core/v2/team/MemberDevices { + protected final field desktopClients Ljava/util/List; + protected final field mobileClients Ljava/util/List; + protected final field teamMemberId Ljava/lang/String; + protected final field webSessions Ljava/util/List; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDesktopClients ()Ljava/util/List; + public fun getMobileClients ()Ljava/util/List; + public fun getTeamMemberId ()Ljava/lang/String; + public fun getWebSessions ()Ljava/util/List; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberDevices$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberDevices$Builder { + protected field desktopClients Ljava/util/List; + protected field mobileClients Ljava/util/List; + protected final field teamMemberId Ljava/lang/String; + protected field webSessions Ljava/util/List; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/team/MemberDevices; + public fun withDesktopClients (Ljava/util/List;)Lcom/dropbox/core/v2/team/MemberDevices$Builder; + public fun withMobileClients (Ljava/util/List;)Lcom/dropbox/core/v2/team/MemberDevices$Builder; + public fun withWebSessions (Ljava/util/List;)Lcom/dropbox/core/v2/team/MemberDevices$Builder; +} + +public class com/dropbox/core/v2/team/MemberLinkedApps { + protected final field linkedApiApps Ljava/util/List; + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLinkedApiApps ()Ljava/util/List; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberProfile { + protected final field accountId Ljava/lang/String; + protected final field email Ljava/lang/String; + protected final field emailVerified Z + protected final field externalId Ljava/lang/String; + protected final field invitedOn Ljava/util/Date; + protected final field isDirectoryRestricted Ljava/lang/Boolean; + protected final field joinedOn Ljava/util/Date; + protected final field membershipType Lcom/dropbox/core/v2/team/TeamMembershipType; + protected final field name Lcom/dropbox/core/v2/users/Name; + protected final field persistentId Ljava/lang/String; + protected final field profilePhotoUrl Ljava/lang/String; + protected final field secondaryEmails Ljava/util/List; + protected final field status Lcom/dropbox/core/v2/team/TeamMemberStatus; + protected final field suspendedOn Ljava/util/Date; + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;)V + public fun (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/Date;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getEmail ()Ljava/lang/String; + public fun getEmailVerified ()Z + public fun getExternalId ()Ljava/lang/String; + public fun getInvitedOn ()Ljava/util/Date; + public fun getIsDirectoryRestricted ()Ljava/lang/Boolean; + public fun getJoinedOn ()Ljava/util/Date; + public fun getMembershipType ()Lcom/dropbox/core/v2/team/TeamMembershipType; + public fun getName ()Lcom/dropbox/core/v2/users/Name; + public fun getPersistentId ()Ljava/lang/String; + public fun getProfilePhotoUrl ()Ljava/lang/String; + public fun getSecondaryEmails ()Ljava/util/List; + public fun getStatus ()Lcom/dropbox/core/v2/team/TeamMemberStatus; + public fun getSuspendedOn ()Ljava/util/Date; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MemberProfile$Builder { + protected field accountId Ljava/lang/String; + protected final field email Ljava/lang/String; + protected final field emailVerified Z + protected field externalId Ljava/lang/String; + protected field invitedOn Ljava/util/Date; + protected field isDirectoryRestricted Ljava/lang/Boolean; + protected field joinedOn Ljava/util/Date; + protected final field membershipType Lcom/dropbox/core/v2/team/TeamMembershipType; + protected final field name Lcom/dropbox/core/v2/users/Name; + protected field persistentId Ljava/lang/String; + protected field profilePhotoUrl Ljava/lang/String; + protected field secondaryEmails Ljava/util/List; + protected final field status Lcom/dropbox/core/v2/team/TeamMemberStatus; + protected field suspendedOn Ljava/util/Date; + protected final field teamMemberId Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;)V + public fun build ()Lcom/dropbox/core/v2/team/MemberProfile; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withInvitedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withJoinedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withProfilePhotoUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withSecondaryEmails (Ljava/util/List;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withSuspendedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; +} + +public final class com/dropbox/core/v2/team/MembersAddJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/MembersAddJobStatus; + public static fun complete (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddJobStatus; + public fun getCompleteValue ()Ljava/util/List; + public fun getFailedValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/team/MembersAddJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersAddJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/team/MembersAddJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/team/MembersAddJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/MembersAddJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersAddJobStatus$Tag; +} + +public final class com/dropbox/core/v2/team/MembersAddJobStatusV2Result { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result; + public static fun complete (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result; + public fun getCompleteValue ()Ljava/util/List; + public fun getFailedValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag; + public static final field FAILED Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersAddJobStatusV2Result$Tag; +} + +public final class com/dropbox/core/v2/team/MembersAddLaunch { + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddLaunch; + public static fun complete (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddLaunch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Ljava/util/List; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun tag ()Lcom/dropbox/core/v2/team/MembersAddLaunch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersAddLaunch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/team/MembersAddLaunch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/team/MembersAddLaunch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddLaunch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersAddLaunch$Tag; +} + +public final class com/dropbox/core/v2/team/MembersAddLaunchV2Result { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result; + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result; + public static fun complete (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Ljava/util/List; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersAddLaunchV2Result$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result$Tag; +} + +public final class com/dropbox/core/v2/team/MembersDeleteProfilePhotoError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError; + public static final field SET_PROFILE_DISALLOWED Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError; +} + +public class com/dropbox/core/v2/team/MembersDeleteProfilePhotoErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersDeleteProfilePhotoError;)V +} + +public class com/dropbox/core/v2/team/MembersGetAvailableTeamMemberRolesResult { + protected final field roles Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRoles ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersGetInfoError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersGetInfoError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersGetInfoError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersGetInfoError; +} + +public class com/dropbox/core/v2/team/MembersGetInfoErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersGetInfoError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersGetInfoError;)V +} + +public final class com/dropbox/core/v2/team/MembersGetInfoItem { + public fun equals (Ljava/lang/Object;)Z + public fun getIdNotFoundValue ()Ljava/lang/String; + public fun getMemberInfoValue ()Lcom/dropbox/core/v2/team/TeamMemberInfo; + public fun hashCode ()I + public static fun idNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersGetInfoItem; + public fun isIdNotFound ()Z + public fun isMemberInfo ()Z + public static fun memberInfo (Lcom/dropbox/core/v2/team/TeamMemberInfo;)Lcom/dropbox/core/v2/team/MembersGetInfoItem; + public fun tag ()Lcom/dropbox/core/v2/team/MembersGetInfoItem$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersGetInfoItem$Tag : java/lang/Enum { + public static final field ID_NOT_FOUND Lcom/dropbox/core/v2/team/MembersGetInfoItem$Tag; + public static final field MEMBER_INFO Lcom/dropbox/core/v2/team/MembersGetInfoItem$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersGetInfoItem$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersGetInfoItem$Tag; +} + +public final class com/dropbox/core/v2/team/MembersGetInfoItemV2 { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersGetInfoItemV2; + public fun equals (Ljava/lang/Object;)Z + public fun getIdNotFoundValue ()Ljava/lang/String; + public fun getMemberInfoValue ()Lcom/dropbox/core/v2/team/TeamMemberInfoV2; + public fun hashCode ()I + public static fun idNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersGetInfoItemV2; + public fun isIdNotFound ()Z + public fun isMemberInfo ()Z + public fun isOther ()Z + public static fun memberInfo (Lcom/dropbox/core/v2/team/TeamMemberInfoV2;)Lcom/dropbox/core/v2/team/MembersGetInfoItemV2; + public fun tag ()Lcom/dropbox/core/v2/team/MembersGetInfoItemV2$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersGetInfoItemV2$Tag : java/lang/Enum { + public static final field ID_NOT_FOUND Lcom/dropbox/core/v2/team/MembersGetInfoItemV2$Tag; + public static final field MEMBER_INFO Lcom/dropbox/core/v2/team/MembersGetInfoItemV2$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersGetInfoItemV2$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersGetInfoItemV2$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersGetInfoItemV2$Tag; +} + +public class com/dropbox/core/v2/team/MembersGetInfoV2Result { + protected final field membersInfo Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMembersInfo ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MembersInfo { + protected final field permanentlyDeletedUsers J + protected final field teamMemberIds Ljava/util/List; + public fun (Ljava/util/List;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getPermanentlyDeletedUsers ()J + public fun getTeamMemberIds ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MembersListBuilder { + public fun start ()Lcom/dropbox/core/v2/team/MembersListResult; + public fun withIncludeRemoved (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MembersListBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/team/MembersListBuilder; +} + +public final class com/dropbox/core/v2/team/MembersListContinueError : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/team/MembersListContinueError; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersListContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersListContinueError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersListContinueError; +} + +public class com/dropbox/core/v2/team/MembersListContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersListContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersListContinueError;)V +} + +public final class com/dropbox/core/v2/team/MembersListError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersListError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersListError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersListError; +} + +public class com/dropbox/core/v2/team/MembersListErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersListError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersListError;)V +} + +public class com/dropbox/core/v2/team/MembersListResult { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field members Ljava/util/List; + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getMembers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MembersListV2Builder { + public fun start ()Lcom/dropbox/core/v2/team/MembersListV2Result; + public fun withIncludeRemoved (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MembersListV2Builder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/team/MembersListV2Builder; +} + +public class com/dropbox/core/v2/team/MembersListV2Result { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field members Ljava/util/List; + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getMembers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersRecoverError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersRecoverError; + public static final field TEAM_LICENSE_LIMIT Lcom/dropbox/core/v2/team/MembersRecoverError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersRecoverError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersRecoverError; + public static final field USER_UNRECOVERABLE Lcom/dropbox/core/v2/team/MembersRecoverError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersRecoverError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersRecoverError; +} + +public class com/dropbox/core/v2/team/MembersRecoverErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersRecoverError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersRecoverError;)V +} + +public class com/dropbox/core/v2/team/MembersRemoveBuilder { + public fun start ()Lcom/dropbox/core/v2/async/LaunchEmptyResult; + public fun withKeepAccount (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MembersRemoveBuilder; + public fun withRetainTeamShares (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MembersRemoveBuilder; + public fun withTransferAdminId (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersRemoveBuilder; + public fun withTransferDestId (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersRemoveBuilder; + public fun withWipeData (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MembersRemoveBuilder; +} + +public final class com/dropbox/core/v2/team/MembersRemoveError : java/lang/Enum { + public static final field CANNOT_KEEP_ACCOUNT Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_KEEP_ACCOUNT_AND_DELETE_DATA Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_KEEP_ACCOUNT_AND_TRANSFER Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_KEEP_ACCOUNT_REQUIRED_TO_SIGN_TOS Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_KEEP_ACCOUNT_UNDER_LEGAL_HOLD Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_KEEP_INVITED_USER_ACCOUNT Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_RETAIN_SHARES_WHEN_DATA_WIPED Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_RETAIN_SHARES_WHEN_NO_ACCOUNT_KEPT Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field CANNOT_RETAIN_SHARES_WHEN_TEAM_EXTERNAL_SHARING_OFF Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field EMAIL_ADDRESS_TOO_LONG_TO_BE_DISABLED Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field RECIPIENT_NOT_VERIFIED Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field REMOVE_LAST_ADMIN Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field TRANSFER_ADMIN_IS_NOT_ADMIN Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field TRANSFER_ADMIN_USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field TRANSFER_ADMIN_USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field TRANSFER_DEST_USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field TRANSFER_DEST_USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field UNSPECIFIED_TRANSFER_ADMIN_ID Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersRemoveError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersRemoveError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersRemoveError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersRemoveError; +} + +public class com/dropbox/core/v2/team/MembersRemoveErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersRemoveError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersRemoveError;)V +} + +public final class com/dropbox/core/v2/team/MembersSendWelcomeError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersSendWelcomeError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSendWelcomeError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersSendWelcomeError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSendWelcomeError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersSendWelcomeError; +} + +public class com/dropbox/core/v2/team/MembersSendWelcomeErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersSendWelcomeError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersSendWelcomeError;)V +} + +public final class com/dropbox/core/v2/team/MembersSetPermissions2Error : java/lang/Enum { + public static final field CANNOT_SET_PERMISSIONS Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public static final field LAST_ADMIN Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public static final field ROLE_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; +} + +public class com/dropbox/core/v2/team/MembersSetPermissions2ErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersSetPermissions2Error; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersSetPermissions2Error;)V +} + +public class com/dropbox/core/v2/team/MembersSetPermissions2Result { + protected final field roles Ljava/util/List; + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRoles ()Ljava/util/List; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersSetPermissionsError : java/lang/Enum { + public static final field CANNOT_SET_PERMISSIONS Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public static final field LAST_ADMIN Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public static final field TEAM_LICENSE_LIMIT Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersSetPermissionsError; +} + +public class com/dropbox/core/v2/team/MembersSetPermissionsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersSetPermissionsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersSetPermissionsError;)V +} + +public class com/dropbox/core/v2/team/MembersSetPermissionsResult { + protected final field role Lcom/dropbox/core/v2/team/AdminTier; + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/AdminTier;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRole ()Lcom/dropbox/core/v2/team/AdminTier; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MembersSetProfileBuilder { + public fun start ()Lcom/dropbox/core/v2/team/TeamMemberInfo; + public fun withNewEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileBuilder; + public fun withNewExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileBuilder; + public fun withNewGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileBuilder; + public fun withNewIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MembersSetProfileBuilder; + public fun withNewPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileBuilder; + public fun withNewSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileBuilder; +} + +public final class com/dropbox/core/v2/team/MembersSetProfileError : java/lang/Enum { + public static final field DIRECTORY_RESTRICTED_OFF Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field EMAIL_RESERVED_FOR_OTHER_USER Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field EXTERNAL_ID_AND_NEW_EXTERNAL_ID_UNSAFE Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field EXTERNAL_ID_USED_BY_OTHER_USER Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field NO_NEW_DATA_SPECIFIED Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field OTHER Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field PARAM_CANNOT_BE_EMPTY Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field PERSISTENT_ID_DISABLED Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field PERSISTENT_ID_USED_BY_OTHER_USER Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field SET_PROFILE_DISALLOWED Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersSetProfileError; +} + +public class com/dropbox/core/v2/team/MembersSetProfileErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersSetProfileError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersSetProfileError;)V +} + +public final class com/dropbox/core/v2/team/MembersSetProfilePhotoError { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError; + public static final field SET_PROFILE_DISALLOWED Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError; + public fun equals (Ljava/lang/Object;)Z + public fun getPhotoErrorValue ()Lcom/dropbox/core/v2/account/SetProfilePhotoError; + public fun hashCode ()I + public fun isOther ()Z + public fun isPhotoError ()Z + public fun isSetProfileDisallowed ()Z + public fun isUserNotFound ()Z + public fun isUserNotInTeam ()Z + public static fun photoError (Lcom/dropbox/core/v2/account/SetProfilePhotoError;)Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError; + public fun tag ()Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; + public static final field PHOTO_ERROR Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; + public static final field SET_PROFILE_DISALLOWED Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError$Tag; +} + +public class com/dropbox/core/v2/team/MembersSetProfilePhotoErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersSetProfilePhotoError;)V +} + +public class com/dropbox/core/v2/team/MembersSetProfileV2Builder { + public fun start ()Lcom/dropbox/core/v2/team/TeamMemberInfoV2Result; + public fun withNewEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder; + public fun withNewExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder; + public fun withNewGivenName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder; + public fun withNewIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder; + public fun withNewPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder; + public fun withNewSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder; +} + +public final class com/dropbox/core/v2/team/MembersSuspendError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendError; + public static final field SUSPEND_INACTIVE_USER Lcom/dropbox/core/v2/team/MembersSuspendError; + public static final field SUSPEND_LAST_ADMIN Lcom/dropbox/core/v2/team/MembersSuspendError; + public static final field TEAM_LICENSE_LIMIT Lcom/dropbox/core/v2/team/MembersSuspendError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersSuspendError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersSuspendError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersSuspendError; +} + +public class com/dropbox/core/v2/team/MembersSuspendErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersSuspendError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersSuspendError;)V +} + +public final class com/dropbox/core/v2/team/MembersTransferFormerMembersFilesError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field RECIPIENT_NOT_VERIFIED Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field TRANSFER_ADMIN_IS_NOT_ADMIN Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field TRANSFER_ADMIN_USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field TRANSFER_ADMIN_USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field TRANSFER_DEST_USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field TRANSFER_DEST_USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field UNSPECIFIED_TRANSFER_ADMIN_ID Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field USER_DATA_ALREADY_TRANSFERRED Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field USER_DATA_CANNOT_BE_TRANSFERRED Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field USER_DATA_IS_BEING_TRANSFERRED Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static final field USER_NOT_REMOVED Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; +} + +public class com/dropbox/core/v2/team/MembersTransferFormerMembersFilesErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersTransferFormerMembersFilesError;)V +} + +public final class com/dropbox/core/v2/team/MembersUnsuspendError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/MembersUnsuspendError; + public static final field TEAM_LICENSE_LIMIT Lcom/dropbox/core/v2/team/MembersUnsuspendError; + public static final field UNSUSPEND_NON_SUSPENDED_MEMBER Lcom/dropbox/core/v2/team/MembersUnsuspendError; + public static final field USER_NOT_FOUND Lcom/dropbox/core/v2/team/MembersUnsuspendError; + public static final field USER_NOT_IN_TEAM Lcom/dropbox/core/v2/team/MembersUnsuspendError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersUnsuspendError; + public static fun values ()[Lcom/dropbox/core/v2/team/MembersUnsuspendError; +} + +public class com/dropbox/core/v2/team/MembersUnsuspendErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/MembersUnsuspendError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersUnsuspendError;)V +} + +public final class com/dropbox/core/v2/team/MobileClientPlatform : java/lang/Enum { + public static final field ANDROID Lcom/dropbox/core/v2/team/MobileClientPlatform; + public static final field BLACKBERRY Lcom/dropbox/core/v2/team/MobileClientPlatform; + public static final field IPAD Lcom/dropbox/core/v2/team/MobileClientPlatform; + public static final field IPHONE Lcom/dropbox/core/v2/team/MobileClientPlatform; + public static final field OTHER Lcom/dropbox/core/v2/team/MobileClientPlatform; + public static final field WINDOWS_PHONE Lcom/dropbox/core/v2/team/MobileClientPlatform; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MobileClientPlatform; + public static fun values ()[Lcom/dropbox/core/v2/team/MobileClientPlatform; +} + +public class com/dropbox/core/v2/team/MobileClientPlatform$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/team/MobileClientPlatform$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/team/MobileClientPlatform; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/team/MobileClientPlatform;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/team/MobileClientSession : com/dropbox/core/v2/team/DeviceSession { + protected final field clientType Lcom/dropbox/core/v2/team/MobileClientPlatform; + protected final field clientVersion Ljava/lang/String; + protected final field deviceName Ljava/lang/String; + protected final field lastCarrier Ljava/lang/String; + protected final field osVersion Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClientType ()Lcom/dropbox/core/v2/team/MobileClientPlatform; + public fun getClientVersion ()Ljava/lang/String; + public fun getCountry ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getDeviceName ()Ljava/lang/String; + public fun getIpAddress ()Ljava/lang/String; + public fun getLastCarrier ()Ljava/lang/String; + public fun getOsVersion ()Ljava/lang/String; + public fun getSessionId ()Ljava/lang/String; + public fun getUpdated ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/MobileClientSession$Builder : com/dropbox/core/v2/team/DeviceSession$Builder { + protected final field clientType Lcom/dropbox/core/v2/team/MobileClientPlatform; + protected field clientVersion Ljava/lang/String; + protected final field deviceName Ljava/lang/String; + protected field lastCarrier Ljava/lang/String; + protected field osVersion Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;)V + public synthetic fun build ()Lcom/dropbox/core/v2/team/DeviceSession; + public fun build ()Lcom/dropbox/core/v2/team/MobileClientSession; + public fun withClientVersion (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; + public synthetic fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; + public synthetic fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; + public synthetic fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; + public fun withLastCarrier (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; + public fun withOsVersion (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; + public synthetic fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/DeviceSession$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MobileClientSession$Builder; +} + +public class com/dropbox/core/v2/team/NamespaceMetadata { + protected final field name Ljava/lang/String; + protected final field namespaceId Ljava/lang/String; + protected final field namespaceType Lcom/dropbox/core/v2/team/NamespaceType; + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/NamespaceType;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/NamespaceType;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun getNamespaceId ()Ljava/lang/String; + public fun getNamespaceType ()Lcom/dropbox/core/v2/team/NamespaceType; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/NamespaceType : java/lang/Enum { + public static final field APP_FOLDER Lcom/dropbox/core/v2/team/NamespaceType; + public static final field OTHER Lcom/dropbox/core/v2/team/NamespaceType; + public static final field SHARED_FOLDER Lcom/dropbox/core/v2/team/NamespaceType; + public static final field TEAM_FOLDER Lcom/dropbox/core/v2/team/NamespaceType; + public static final field TEAM_MEMBER_FOLDER Lcom/dropbox/core/v2/team/NamespaceType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/NamespaceType; + public static fun values ()[Lcom/dropbox/core/v2/team/NamespaceType; +} + +public class com/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder { + public fun start ()Lcom/dropbox/core/v2/fileproperties/UpdateTemplateResult; + public fun withAddFields (Ljava/util/List;)Lcom/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder; + public fun withDescription (Ljava/lang/String;)Lcom/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder; + public fun withName (Ljava/lang/String;)Lcom/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder; +} + +public final class com/dropbox/core/v2/team/RemoveCustomQuotaResult { + public static final field OTHER Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidUserValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun getSuccessValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public static fun invalidUser (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult; + public fun isInvalidUser ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult; + public fun tag ()Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/RemoveCustomQuotaResult$Tag : java/lang/Enum { + public static final field INVALID_USER Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/RemoveCustomQuotaResult$Tag; +} + +public class com/dropbox/core/v2/team/RemovedStatus { + protected final field isDisconnected Z + protected final field isRecoverable Z + public fun (ZZ)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsDisconnected ()Z + public fun getIsRecoverable ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/ReportsGetActivityBuilder { + public fun start ()Lcom/dropbox/core/v2/team/GetActivityReport; + public fun withEndDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetActivityBuilder; + public fun withStartDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetActivityBuilder; +} + +public class com/dropbox/core/v2/team/ReportsGetDevicesBuilder { + public fun start ()Lcom/dropbox/core/v2/team/GetDevicesReport; + public fun withEndDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetDevicesBuilder; + public fun withStartDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetDevicesBuilder; +} + +public class com/dropbox/core/v2/team/ReportsGetMembershipBuilder { + public fun start ()Lcom/dropbox/core/v2/team/GetMembershipReport; + public fun withEndDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetMembershipBuilder; + public fun withStartDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetMembershipBuilder; +} + +public class com/dropbox/core/v2/team/ReportsGetStorageBuilder { + public fun start ()Lcom/dropbox/core/v2/team/GetStorageReport; + public fun withEndDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetStorageBuilder; + public fun withStartDate (Ljava/util/Date;)Lcom/dropbox/core/v2/team/ReportsGetStorageBuilder; +} + +public final class com/dropbox/core/v2/team/ResendSecondaryEmailResult { + public static final field OTHER Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult; + public fun equals (Ljava/lang/Object;)Z + public fun getNotPendingValue ()Ljava/lang/String; + public fun getRateLimitedValue ()Ljava/lang/String; + public fun getSuccessValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isNotPending ()Z + public fun isOther ()Z + public fun isRateLimited ()Z + public fun isSuccess ()Z + public static fun notPending (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult; + public static fun rateLimited (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult; + public static fun success (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult; + public fun tag ()Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag : java/lang/Enum { + public static final field NOT_PENDING Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag; + public static final field RATE_LIMITED Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/ResendSecondaryEmailResult$Tag; +} + +public class com/dropbox/core/v2/team/ResendVerificationEmailResult { + protected final field results Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResults ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/RevokeDesktopClientArg : com/dropbox/core/v2/team/DeviceSessionArg { + protected final field deleteOnUnlink Z + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getDeleteOnUnlink ()Z + public fun getSessionId ()Ljava/lang/String; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/RevokeDeviceSessionArg { + public static fun desktopClient (Lcom/dropbox/core/v2/team/RevokeDesktopClientArg;)Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg; + public fun equals (Ljava/lang/Object;)Z + public fun getDesktopClientValue ()Lcom/dropbox/core/v2/team/RevokeDesktopClientArg; + public fun getMobileClientValue ()Lcom/dropbox/core/v2/team/DeviceSessionArg; + public fun getWebSessionValue ()Lcom/dropbox/core/v2/team/DeviceSessionArg; + public fun hashCode ()I + public fun isDesktopClient ()Z + public fun isMobileClient ()Z + public fun isWebSession ()Z + public static fun mobileClient (Lcom/dropbox/core/v2/team/DeviceSessionArg;)Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg; + public fun tag ()Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun webSession (Lcom/dropbox/core/v2/team/DeviceSessionArg;)Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg; +} + +public final class com/dropbox/core/v2/team/RevokeDeviceSessionArg$Tag : java/lang/Enum { + public static final field DESKTOP_CLIENT Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg$Tag; + public static final field MOBILE_CLIENT Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg$Tag; + public static final field WEB_SESSION Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/RevokeDeviceSessionArg$Tag; +} + +public final class com/dropbox/core/v2/team/RevokeDeviceSessionBatchError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/RevokeDeviceSessionBatchError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/RevokeDeviceSessionBatchError; + public static fun values ()[Lcom/dropbox/core/v2/team/RevokeDeviceSessionBatchError; +} + +public class com/dropbox/core/v2/team/RevokeDeviceSessionBatchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/RevokeDeviceSessionBatchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/RevokeDeviceSessionBatchError;)V +} + +public class com/dropbox/core/v2/team/RevokeDeviceSessionBatchResult { + protected final field revokeDevicesStatus Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRevokeDevicesStatus ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/RevokeDeviceSessionError : java/lang/Enum { + public static final field DEVICE_SESSION_NOT_FOUND Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; + public static final field MEMBER_NOT_FOUND Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; + public static final field OTHER Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; + public static fun values ()[Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; +} + +public class com/dropbox/core/v2/team/RevokeDeviceSessionErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/RevokeDeviceSessionError;)V +} + +public class com/dropbox/core/v2/team/RevokeDeviceSessionStatus { + protected final field errorType Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; + protected final field success Z + public fun (Z)V + public fun (ZLcom/dropbox/core/v2/team/RevokeDeviceSessionError;)V + public fun equals (Ljava/lang/Object;)Z + public fun getErrorType ()Lcom/dropbox/core/v2/team/RevokeDeviceSessionError; + public fun getSuccess ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/RevokeLinkedApiAppArg { + protected final field appId Ljava/lang/String; + protected final field keepAppFolder Z + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppId ()Ljava/lang/String; + public fun getKeepAppFolder ()Z + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/RevokeLinkedAppBatchError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/RevokeLinkedAppBatchError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/RevokeLinkedAppBatchError; + public static fun values ()[Lcom/dropbox/core/v2/team/RevokeLinkedAppBatchError; +} + +public class com/dropbox/core/v2/team/RevokeLinkedAppBatchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/RevokeLinkedAppBatchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/RevokeLinkedAppBatchError;)V +} + +public class com/dropbox/core/v2/team/RevokeLinkedAppBatchResult { + protected final field revokeLinkedAppStatus Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRevokeLinkedAppStatus ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/RevokeLinkedAppError : java/lang/Enum { + public static final field APP_FOLDER_REMOVAL_NOT_SUPPORTED Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + public static final field APP_NOT_FOUND Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + public static final field MEMBER_NOT_FOUND Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + public static final field OTHER Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + public static fun values ()[Lcom/dropbox/core/v2/team/RevokeLinkedAppError; +} + +public class com/dropbox/core/v2/team/RevokeLinkedAppErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/RevokeLinkedAppError;)V +} + +public class com/dropbox/core/v2/team/RevokeLinkedAppStatus { + protected final field errorType Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + protected final field success Z + public fun (Z)V + public fun (ZLcom/dropbox/core/v2/team/RevokeLinkedAppError;)V + public fun equals (Ljava/lang/Object;)Z + public fun getErrorType ()Lcom/dropbox/core/v2/team/RevokeLinkedAppError; + public fun getSuccess ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/SetCustomQuotaError : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/team/SetCustomQuotaError; + public static final field SOME_USERS_ARE_EXCLUDED Lcom/dropbox/core/v2/team/SetCustomQuotaError; + public static final field TOO_MANY_USERS Lcom/dropbox/core/v2/team/SetCustomQuotaError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SetCustomQuotaError; + public static fun values ()[Lcom/dropbox/core/v2/team/SetCustomQuotaError; +} + +public class com/dropbox/core/v2/team/SetCustomQuotaErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/SetCustomQuotaError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/SetCustomQuotaError;)V +} + +public class com/dropbox/core/v2/team/SharingAllowlistAddBuilder { + public fun start ()Lcom/dropbox/core/v2/team/SharingAllowlistAddResponse; + public fun withDomains (Ljava/util/List;)Lcom/dropbox/core/v2/team/SharingAllowlistAddBuilder; + public fun withEmails (Ljava/util/List;)Lcom/dropbox/core/v2/team/SharingAllowlistAddBuilder; +} + +public final class com/dropbox/core/v2/team/SharingAllowlistAddError { + public static final field NO_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public static final field OTHER Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public static final field TEAM_LIMIT_REACHED Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public static final field TOO_MANY_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public static final field UNKNOWN_ERROR Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public static fun entriesAlreadyExist (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public fun equals (Ljava/lang/Object;)Z + public fun getEntriesAlreadyExistValue ()Ljava/lang/String; + public fun getMalformedEntryValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isEntriesAlreadyExist ()Z + public fun isMalformedEntry ()Z + public fun isNoEntriesProvided ()Z + public fun isOther ()Z + public fun isTeamLimitReached ()Z + public fun isTooManyEntriesProvided ()Z + public fun isUnknownError ()Z + public static fun malformedEntry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public fun tag ()Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/SharingAllowlistAddError$Tag : java/lang/Enum { + public static final field ENTRIES_ALREADY_EXIST Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static final field MALFORMED_ENTRY Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static final field NO_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static final field TEAM_LIMIT_REACHED Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static final field TOO_MANY_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static final field UNKNOWN_ERROR Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/SharingAllowlistAddError$Tag; +} + +public class com/dropbox/core/v2/team/SharingAllowlistAddErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/SharingAllowlistAddError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/SharingAllowlistAddError;)V +} + +public class com/dropbox/core/v2/team/SharingAllowlistAddResponse { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/SharingAllowlistListContinueError : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/team/SharingAllowlistListContinueError; + public static final field OTHER Lcom/dropbox/core/v2/team/SharingAllowlistListContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistListContinueError; + public static fun values ()[Lcom/dropbox/core/v2/team/SharingAllowlistListContinueError; +} + +public class com/dropbox/core/v2/team/SharingAllowlistListContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/SharingAllowlistListContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/SharingAllowlistListContinueError;)V +} + +public class com/dropbox/core/v2/team/SharingAllowlistListError { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/SharingAllowlistListErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/SharingAllowlistListError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/SharingAllowlistListError;)V +} + +public class com/dropbox/core/v2/team/SharingAllowlistListResponse { + protected final field cursor Ljava/lang/String; + protected final field domains Ljava/util/List; + protected final field emails Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getDomains ()Ljava/util/List; + public fun getEmails ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public static fun newBuilder (Ljava/util/List;Ljava/util/List;)Lcom/dropbox/core/v2/team/SharingAllowlistListResponse$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/SharingAllowlistListResponse$Builder { + protected field cursor Ljava/lang/String; + protected final field domains Ljava/util/List; + protected final field emails Ljava/util/List; + protected field hasMore Z + protected fun (Ljava/util/List;Ljava/util/List;)V + public fun build ()Lcom/dropbox/core/v2/team/SharingAllowlistListResponse; + public fun withCursor (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistListResponse$Builder; + public fun withHasMore (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/SharingAllowlistListResponse$Builder; +} + +public class com/dropbox/core/v2/team/SharingAllowlistRemoveBuilder { + public fun start ()Lcom/dropbox/core/v2/team/SharingAllowlistRemoveResponse; + public fun withDomains (Ljava/util/List;)Lcom/dropbox/core/v2/team/SharingAllowlistRemoveBuilder; + public fun withEmails (Ljava/util/List;)Lcom/dropbox/core/v2/team/SharingAllowlistRemoveBuilder; +} + +public final class com/dropbox/core/v2/team/SharingAllowlistRemoveError { + public static final field NO_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError; + public static final field OTHER Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError; + public static final field TOO_MANY_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError; + public static final field UNKNOWN_ERROR Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError; + public static fun entriesDoNotExist (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError; + public fun equals (Ljava/lang/Object;)Z + public fun getEntriesDoNotExistValue ()Ljava/lang/String; + public fun getMalformedEntryValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isEntriesDoNotExist ()Z + public fun isMalformedEntry ()Z + public fun isNoEntriesProvided ()Z + public fun isOther ()Z + public fun isTooManyEntriesProvided ()Z + public fun isUnknownError ()Z + public static fun malformedEntry (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError; + public fun tag ()Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag : java/lang/Enum { + public static final field ENTRIES_DO_NOT_EXIST Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public static final field MALFORMED_ENTRY Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public static final field NO_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public static final field TOO_MANY_ENTRIES_PROVIDED Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public static final field UNKNOWN_ERROR Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError$Tag; +} + +public class com/dropbox/core/v2/team/SharingAllowlistRemoveErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/SharingAllowlistRemoveError;)V +} + +public class com/dropbox/core/v2/team/SharingAllowlistRemoveResponse { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/StorageBucket { + protected final field bucket Ljava/lang/String; + protected final field users J + public fun (Ljava/lang/String;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getBucket ()Ljava/lang/String; + public fun getUsers ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderAccessError : java/lang/Enum { + public static final field INVALID_TEAM_FOLDER_ID Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public static final field NO_ACCESS Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderAccessError; +} + +public final class com/dropbox/core/v2/team/TeamFolderActivateError { + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderActivateError; + public static fun accessError (Lcom/dropbox/core/v2/team/TeamFolderAccessError;)Lcom/dropbox/core/v2/team/TeamFolderActivateError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public fun getStatusErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public fun getTeamSharedDropboxErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isStatusError ()Z + public fun isTeamSharedDropboxError ()Z + public static fun statusError (Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError;)Lcom/dropbox/core/v2/team/TeamFolderActivateError; + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderActivateError$Tag; + public static fun teamSharedDropboxError (Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError;)Lcom/dropbox/core/v2/team/TeamFolderActivateError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderActivateError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/team/TeamFolderActivateError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderActivateError$Tag; + public static final field STATUS_ERROR Lcom/dropbox/core/v2/team/TeamFolderActivateError$Tag; + public static final field TEAM_SHARED_DROPBOX_ERROR Lcom/dropbox/core/v2/team/TeamFolderActivateError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderActivateError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderActivateError$Tag; +} + +public class com/dropbox/core/v2/team/TeamFolderActivateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderActivateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderActivateError;)V +} + +public final class com/dropbox/core/v2/team/TeamFolderArchiveError { + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderArchiveError; + public static fun accessError (Lcom/dropbox/core/v2/team/TeamFolderAccessError;)Lcom/dropbox/core/v2/team/TeamFolderArchiveError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public fun getStatusErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public fun getTeamSharedDropboxErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isStatusError ()Z + public fun isTeamSharedDropboxError ()Z + public static fun statusError (Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError;)Lcom/dropbox/core/v2/team/TeamFolderArchiveError; + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderArchiveError$Tag; + public static fun teamSharedDropboxError (Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError;)Lcom/dropbox/core/v2/team/TeamFolderArchiveError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderArchiveError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/team/TeamFolderArchiveError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderArchiveError$Tag; + public static final field STATUS_ERROR Lcom/dropbox/core/v2/team/TeamFolderArchiveError$Tag; + public static final field TEAM_SHARED_DROPBOX_ERROR Lcom/dropbox/core/v2/team/TeamFolderArchiveError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderArchiveError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderArchiveError$Tag; +} + +public class com/dropbox/core/v2/team/TeamFolderArchiveErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderArchiveError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderArchiveError;)V +} + +public final class com/dropbox/core/v2/team/TeamFolderArchiveJobStatus { + public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus; + public static fun complete (Lcom/dropbox/core/v2/team/TeamFolderMetadata;)Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus; + public fun equals (Ljava/lang/Object;)Z + public static fun failed (Lcom/dropbox/core/v2/team/TeamFolderArchiveError;)Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus; + public fun getCompleteValue ()Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun getFailedValue ()Lcom/dropbox/core/v2/team/TeamFolderArchiveError; + public fun hashCode ()I + public fun isComplete ()Z + public fun isFailed ()Z + public fun isInProgress ()Z + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderArchiveJobStatus$Tag : java/lang/Enum { + public static final field COMPLETE Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus$Tag; + public static final field FAILED Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus$Tag; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderArchiveJobStatus$Tag; +} + +public final class com/dropbox/core/v2/team/TeamFolderArchiveLaunch { + public static fun asyncJobId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch; + public static fun complete (Lcom/dropbox/core/v2/team/TeamFolderMetadata;)Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch; + public fun equals (Ljava/lang/Object;)Z + public fun getAsyncJobIdValue ()Ljava/lang/String; + public fun getCompleteValue ()Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun hashCode ()I + public fun isAsyncJobId ()Z + public fun isComplete ()Z + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderArchiveLaunch$Tag : java/lang/Enum { + public static final field ASYNC_JOB_ID Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch$Tag; + public static final field COMPLETE Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderArchiveLaunch$Tag; +} + +public final class com/dropbox/core/v2/team/TeamFolderCreateError { + public static final field FOLDER_NAME_ALREADY_USED Lcom/dropbox/core/v2/team/TeamFolderCreateError; + public static final field FOLDER_NAME_RESERVED Lcom/dropbox/core/v2/team/TeamFolderCreateError; + public static final field INVALID_FOLDER_NAME Lcom/dropbox/core/v2/team/TeamFolderCreateError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderCreateError; + public fun equals (Ljava/lang/Object;)Z + public fun getSyncSettingsErrorValue ()Lcom/dropbox/core/v2/files/SyncSettingsError; + public fun hashCode ()I + public fun isFolderNameAlreadyUsed ()Z + public fun isFolderNameReserved ()Z + public fun isInvalidFolderName ()Z + public fun isOther ()Z + public fun isSyncSettingsError ()Z + public static fun syncSettingsError (Lcom/dropbox/core/v2/files/SyncSettingsError;)Lcom/dropbox/core/v2/team/TeamFolderCreateError; + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderCreateError$Tag : java/lang/Enum { + public static final field FOLDER_NAME_ALREADY_USED Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; + public static final field FOLDER_NAME_RESERVED Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; + public static final field INVALID_FOLDER_NAME Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; + public static final field SYNC_SETTINGS_ERROR Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderCreateError$Tag; +} + +public class com/dropbox/core/v2/team/TeamFolderCreateErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderCreateError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderCreateError;)V +} + +public final class com/dropbox/core/v2/team/TeamFolderGetInfoItem { + public fun equals (Ljava/lang/Object;)Z + public fun getIdNotFoundValue ()Ljava/lang/String; + public fun getTeamFolderMetadataValue ()Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun hashCode ()I + public static fun idNotFound (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderGetInfoItem; + public fun isIdNotFound ()Z + public fun isTeamFolderMetadata ()Z + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderGetInfoItem$Tag; + public static fun teamFolderMetadata (Lcom/dropbox/core/v2/team/TeamFolderMetadata;)Lcom/dropbox/core/v2/team/TeamFolderGetInfoItem; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderGetInfoItem$Tag : java/lang/Enum { + public static final field ID_NOT_FOUND Lcom/dropbox/core/v2/team/TeamFolderGetInfoItem$Tag; + public static final field TEAM_FOLDER_METADATA Lcom/dropbox/core/v2/team/TeamFolderGetInfoItem$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderGetInfoItem$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderGetInfoItem$Tag; +} + +public final class com/dropbox/core/v2/team/TeamFolderInvalidStatusError : java/lang/Enum { + public static final field ACTIVE Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public static final field ARCHIVED Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public static final field ARCHIVE_IN_PROGRESS Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; +} + +public final class com/dropbox/core/v2/team/TeamFolderListContinueError : java/lang/Enum { + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/team/TeamFolderListContinueError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderListContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderListContinueError; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderListContinueError; +} + +public class com/dropbox/core/v2/team/TeamFolderListContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderListContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderListContinueError;)V +} + +public class com/dropbox/core/v2/team/TeamFolderListError { + protected final field accessError Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public fun (Lcom/dropbox/core/v2/team/TeamFolderAccessError;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessError ()Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/TeamFolderListErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderListError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderListError;)V +} + +public class com/dropbox/core/v2/team/TeamFolderListResult { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field teamFolders Ljava/util/List; + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getTeamFolders ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/TeamFolderMetadata { + protected final field contentSyncSettings Ljava/util/List; + protected final field isTeamSharedDropbox Z + protected final field name Ljava/lang/String; + protected final field status Lcom/dropbox/core/v2/team/TeamFolderStatus; + protected final field syncSetting Lcom/dropbox/core/v2/files/SyncSetting; + protected final field teamFolderId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/team/TeamFolderStatus;ZLcom/dropbox/core/v2/files/SyncSetting;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getContentSyncSettings ()Ljava/util/List; + public fun getIsTeamSharedDropbox ()Z + public fun getName ()Ljava/lang/String; + public fun getStatus ()Lcom/dropbox/core/v2/team/TeamFolderStatus; + public fun getSyncSetting ()Lcom/dropbox/core/v2/files/SyncSetting; + public fun getTeamFolderId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError { + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError; + public static fun accessError (Lcom/dropbox/core/v2/team/TeamFolderAccessError;)Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public fun getStatusErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public fun getTeamSharedDropboxErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isStatusError ()Z + public fun isTeamSharedDropboxError ()Z + public static fun statusError (Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError;)Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError; + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag; + public static fun teamSharedDropboxError (Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError;)Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag; + public static final field STATUS_ERROR Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag; + public static final field TEAM_SHARED_DROPBOX_ERROR Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError$Tag; +} + +public class com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError;)V +} + +public final class com/dropbox/core/v2/team/TeamFolderRenameError { + public static final field FOLDER_NAME_ALREADY_USED Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public static final field FOLDER_NAME_RESERVED Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public static final field INVALID_FOLDER_NAME Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public static fun accessError (Lcom/dropbox/core/v2/team/TeamFolderAccessError;)Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public fun getStatusErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public fun getTeamSharedDropboxErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isFolderNameAlreadyUsed ()Z + public fun isFolderNameReserved ()Z + public fun isInvalidFolderName ()Z + public fun isOther ()Z + public fun isStatusError ()Z + public fun isTeamSharedDropboxError ()Z + public static fun statusError (Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError;)Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static fun teamSharedDropboxError (Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError;)Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderRenameError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static final field FOLDER_NAME_ALREADY_USED Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static final field FOLDER_NAME_RESERVED Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static final field INVALID_FOLDER_NAME Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static final field STATUS_ERROR Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static final field TEAM_SHARED_DROPBOX_ERROR Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderRenameError$Tag; +} + +public class com/dropbox/core/v2/team/TeamFolderRenameErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderRenameError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderRenameError;)V +} + +public final class com/dropbox/core/v2/team/TeamFolderStatus : java/lang/Enum { + public static final field ACTIVE Lcom/dropbox/core/v2/team/TeamFolderStatus; + public static final field ARCHIVED Lcom/dropbox/core/v2/team/TeamFolderStatus; + public static final field ARCHIVE_IN_PROGRESS Lcom/dropbox/core/v2/team/TeamFolderStatus; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderStatus; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderStatus; +} + +public class com/dropbox/core/v2/team/TeamFolderStatus$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/team/TeamFolderStatus$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/team/TeamFolderStatus; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/team/TeamFolderStatus;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError : java/lang/Enum { + public static final field DISALLOWED Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; +} + +public class com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsBuilder { + public fun start ()Lcom/dropbox/core/v2/team/TeamFolderMetadata; + public fun withContentSyncSettings (Ljava/util/List;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsBuilder; + public fun withSyncSetting (Lcom/dropbox/core/v2/files/SyncSettingArg;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsBuilder; +} + +public final class com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError { + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError; + public static fun accessError (Lcom/dropbox/core/v2/team/TeamFolderAccessError;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError; + public fun equals (Ljava/lang/Object;)Z + public fun getAccessErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderAccessError; + public fun getStatusErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError; + public fun getSyncSettingsErrorValue ()Lcom/dropbox/core/v2/files/SyncSettingsError; + public fun getTeamSharedDropboxErrorValue ()Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError; + public fun hashCode ()I + public fun isAccessError ()Z + public fun isOther ()Z + public fun isStatusError ()Z + public fun isSyncSettingsError ()Z + public fun isTeamSharedDropboxError ()Z + public static fun statusError (Lcom/dropbox/core/v2/team/TeamFolderInvalidStatusError;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError; + public static fun syncSettingsError (Lcom/dropbox/core/v2/files/SyncSettingsError;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError; + public fun tag ()Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; + public static fun teamSharedDropboxError (Lcom/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag : java/lang/Enum { + public static final field ACCESS_ERROR Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; + public static final field STATUS_ERROR Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; + public static final field SYNC_SETTINGS_ERROR Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; + public static final field TEAM_SHARED_DROPBOX_ERROR Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError$Tag; +} + +public class com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError;)V +} + +public class com/dropbox/core/v2/team/TeamGetInfoResult { + protected final field name Ljava/lang/String; + protected final field numLicensedUsers J + protected final field numProvisionedUsers J + protected final field numUsedLicenses J + protected final field policies Lcom/dropbox/core/v2/teampolicies/TeamMemberPolicies; + protected final field teamId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;JJLcom/dropbox/core/v2/teampolicies/TeamMemberPolicies;)V + public fun (Ljava/lang/String;Ljava/lang/String;JJLcom/dropbox/core/v2/teampolicies/TeamMemberPolicies;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun getNumLicensedUsers ()J + public fun getNumProvisionedUsers ()J + public fun getNumUsedLicenses ()J + public fun getPolicies ()Lcom/dropbox/core/v2/teampolicies/TeamMemberPolicies; + public fun getTeamId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/TeamMemberInfo { + protected final field profile Lcom/dropbox/core/v2/team/TeamMemberProfile; + protected final field role Lcom/dropbox/core/v2/team/AdminTier; + public fun (Lcom/dropbox/core/v2/team/TeamMemberProfile;Lcom/dropbox/core/v2/team/AdminTier;)V + public fun equals (Ljava/lang/Object;)Z + public fun getProfile ()Lcom/dropbox/core/v2/team/TeamMemberProfile; + public fun getRole ()Lcom/dropbox/core/v2/team/AdminTier; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/TeamMemberInfoV2 { + protected final field profile Lcom/dropbox/core/v2/team/TeamMemberProfile; + protected final field roles Ljava/util/List; + public fun (Lcom/dropbox/core/v2/team/TeamMemberProfile;)V + public fun (Lcom/dropbox/core/v2/team/TeamMemberProfile;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getProfile ()Lcom/dropbox/core/v2/team/TeamMemberProfile; + public fun getRoles ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/TeamMemberInfoV2Result { + protected final field memberInfo Lcom/dropbox/core/v2/team/TeamMemberInfoV2; + public fun (Lcom/dropbox/core/v2/team/TeamMemberInfoV2;)V + public fun equals (Ljava/lang/Object;)Z + public fun getMemberInfo ()Lcom/dropbox/core/v2/team/TeamMemberInfoV2; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/TeamMemberProfile : com/dropbox/core/v2/team/MemberProfile { + protected final field groups Ljava/util/List; + protected final field memberFolderId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;Ljava/util/List;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/Date;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getEmail ()Ljava/lang/String; + public fun getEmailVerified ()Z + public fun getExternalId ()Ljava/lang/String; + public fun getGroups ()Ljava/util/List; + public fun getInvitedOn ()Ljava/util/Date; + public fun getIsDirectoryRestricted ()Ljava/lang/Boolean; + public fun getJoinedOn ()Ljava/util/Date; + public fun getMemberFolderId ()Ljava/lang/String; + public fun getMembershipType ()Lcom/dropbox/core/v2/team/TeamMembershipType; + public fun getName ()Lcom/dropbox/core/v2/users/Name; + public fun getPersistentId ()Ljava/lang/String; + public fun getProfilePhotoUrl ()Ljava/lang/String; + public fun getSecondaryEmails ()Ljava/util/List; + public fun getStatus ()Lcom/dropbox/core/v2/team/TeamMemberStatus; + public fun getSuspendedOn ()Ljava/util/Date; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;Ljava/util/List;Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/TeamMemberProfile$Builder : com/dropbox/core/v2/team/MemberProfile$Builder { + protected final field groups Ljava/util/List; + protected final field memberFolderId Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/team/TeamMemberStatus;Lcom/dropbox/core/v2/users/Name;Lcom/dropbox/core/v2/team/TeamMembershipType;Ljava/util/List;Ljava/lang/String;)V + public synthetic fun build ()Lcom/dropbox/core/v2/team/MemberProfile; + public fun build ()Lcom/dropbox/core/v2/team/TeamMemberProfile; + public synthetic fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withInvitedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withInvitedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withIsDirectoryRestricted (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withJoinedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withJoinedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withPersistentId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withProfilePhotoUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withProfilePhotoUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withSecondaryEmails (Ljava/util/List;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withSecondaryEmails (Ljava/util/List;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; + public synthetic fun withSuspendedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/MemberProfile$Builder; + public fun withSuspendedOn (Ljava/util/Date;)Lcom/dropbox/core/v2/team/TeamMemberProfile$Builder; +} + +public class com/dropbox/core/v2/team/TeamMemberRole { + protected final field description Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field roleId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getRoleId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamMemberStatus { + public static final field ACTIVE Lcom/dropbox/core/v2/team/TeamMemberStatus; + public static final field INVITED Lcom/dropbox/core/v2/team/TeamMemberStatus; + public static final field SUSPENDED Lcom/dropbox/core/v2/team/TeamMemberStatus; + public fun equals (Ljava/lang/Object;)Z + public fun getRemovedValue ()Lcom/dropbox/core/v2/team/RemovedStatus; + public fun hashCode ()I + public fun isActive ()Z + public fun isInvited ()Z + public fun isRemoved ()Z + public fun isSuspended ()Z + public static fun removed (Lcom/dropbox/core/v2/team/RemovedStatus;)Lcom/dropbox/core/v2/team/TeamMemberStatus; + public fun tag ()Lcom/dropbox/core/v2/team/TeamMemberStatus$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamMemberStatus$Tag : java/lang/Enum { + public static final field ACTIVE Lcom/dropbox/core/v2/team/TeamMemberStatus$Tag; + public static final field INVITED Lcom/dropbox/core/v2/team/TeamMemberStatus$Tag; + public static final field REMOVED Lcom/dropbox/core/v2/team/TeamMemberStatus$Tag; + public static final field SUSPENDED Lcom/dropbox/core/v2/team/TeamMemberStatus$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamMemberStatus$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamMemberStatus$Tag; +} + +public final class com/dropbox/core/v2/team/TeamMembershipType : java/lang/Enum { + public static final field FULL Lcom/dropbox/core/v2/team/TeamMembershipType; + public static final field LIMITED Lcom/dropbox/core/v2/team/TeamMembershipType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamMembershipType; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamMembershipType; +} + +public final class com/dropbox/core/v2/team/TeamNamespacesListContinueError : java/lang/Enum { + public static final field INVALID_ARG Lcom/dropbox/core/v2/team/TeamNamespacesListContinueError; + public static final field INVALID_CURSOR Lcom/dropbox/core/v2/team/TeamNamespacesListContinueError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamNamespacesListContinueError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamNamespacesListContinueError; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamNamespacesListContinueError; +} + +public class com/dropbox/core/v2/team/TeamNamespacesListContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamNamespacesListContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamNamespacesListContinueError;)V +} + +public final class com/dropbox/core/v2/team/TeamNamespacesListError : java/lang/Enum { + public static final field INVALID_ARG Lcom/dropbox/core/v2/team/TeamNamespacesListError; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamNamespacesListError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamNamespacesListError; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamNamespacesListError; +} + +public class com/dropbox/core/v2/team/TeamNamespacesListErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TeamNamespacesListError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TeamNamespacesListError;)V +} + +public class com/dropbox/core/v2/team/TeamNamespacesListResult { + protected final field cursor Ljava/lang/String; + protected final field hasMore Z + protected final field namespaces Ljava/util/List; + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getHasMore ()Z + public fun getNamespaces ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/TeamReportFailureReason : java/lang/Enum { + public static final field MANY_REPORTS_AT_ONCE Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public static final field OTHER Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public static final field TEMPORARY_ERROR Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public static final field TOO_MUCH_DATA Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public static fun values ()[Lcom/dropbox/core/v2/team/TeamReportFailureReason; +} + +public class com/dropbox/core/v2/team/TeamReportFailureReason$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/team/TeamReportFailureReason$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/team/TeamReportFailureReason;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/team/TokenGetAuthenticatedAdminError : java/lang/Enum { + public static final field ADMIN_NOT_ACTIVE Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminError; + public static final field MAPPING_NOT_FOUND Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminError; + public static final field OTHER Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminError; + public static fun values ()[Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminError; +} + +public class com/dropbox/core/v2/team/TokenGetAuthenticatedAdminErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/TokenGetAuthenticatedAdminError;)V +} + +public class com/dropbox/core/v2/team/TokenGetAuthenticatedAdminResult { + protected final field adminProfile Lcom/dropbox/core/v2/team/TeamMemberProfile; + public fun (Lcom/dropbox/core/v2/team/TeamMemberProfile;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAdminProfile ()Lcom/dropbox/core/v2/team/TeamMemberProfile; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UploadApiRateLimitValue { + public static final field OTHER Lcom/dropbox/core/v2/team/UploadApiRateLimitValue; + public static final field UNLIMITED Lcom/dropbox/core/v2/team/UploadApiRateLimitValue; + public fun equals (Ljava/lang/Object;)Z + public fun getLimitValue ()J + public fun hashCode ()I + public fun isLimit ()Z + public fun isOther ()Z + public fun isUnlimited ()Z + public static fun limit (J)Lcom/dropbox/core/v2/team/UploadApiRateLimitValue; + public fun tag ()Lcom/dropbox/core/v2/team/UploadApiRateLimitValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UploadApiRateLimitValue$Tag : java/lang/Enum { + public static final field LIMIT Lcom/dropbox/core/v2/team/UploadApiRateLimitValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/UploadApiRateLimitValue$Tag; + public static final field UNLIMITED Lcom/dropbox/core/v2/team/UploadApiRateLimitValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UploadApiRateLimitValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/UploadApiRateLimitValue$Tag; +} + +public final class com/dropbox/core/v2/team/UserAddResult { + public static final field OTHER Lcom/dropbox/core/v2/team/UserAddResult; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidUserValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun getPlaceholderUserValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun getSuccessValue ()Lcom/dropbox/core/v2/team/UserSecondaryEmailsResult; + public fun getUnverifiedValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public static fun invalidUser (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/UserAddResult; + public fun isInvalidUser ()Z + public fun isOther ()Z + public fun isPlaceholderUser ()Z + public fun isSuccess ()Z + public fun isUnverified ()Z + public static fun placeholderUser (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/UserAddResult; + public static fun success (Lcom/dropbox/core/v2/team/UserSecondaryEmailsResult;)Lcom/dropbox/core/v2/team/UserAddResult; + public fun tag ()Lcom/dropbox/core/v2/team/UserAddResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun unverified (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/UserAddResult; +} + +public final class com/dropbox/core/v2/team/UserAddResult$Tag : java/lang/Enum { + public static final field INVALID_USER Lcom/dropbox/core/v2/team/UserAddResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/UserAddResult$Tag; + public static final field PLACEHOLDER_USER Lcom/dropbox/core/v2/team/UserAddResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/UserAddResult$Tag; + public static final field UNVERIFIED Lcom/dropbox/core/v2/team/UserAddResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UserAddResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/UserAddResult$Tag; +} + +public class com/dropbox/core/v2/team/UserCustomQuotaArg { + protected final field quotaGb J + protected final field user Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getQuotaGb ()J + public fun getUser ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/UserCustomQuotaResult { + protected final field quotaGb Ljava/lang/Long; + protected final field user Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;)V + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getQuotaGb ()Ljava/lang/Long; + public fun getUser ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/UserDeleteEmailsResult { + protected final field results Ljava/util/List; + protected final field user Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResults ()Ljava/util/List; + public fun getUser ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UserDeleteResult { + public static final field OTHER Lcom/dropbox/core/v2/team/UserDeleteResult; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidUserValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun getSuccessValue ()Lcom/dropbox/core/v2/team/UserDeleteEmailsResult; + public fun hashCode ()I + public static fun invalidUser (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/UserDeleteResult; + public fun isInvalidUser ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/team/UserDeleteEmailsResult;)Lcom/dropbox/core/v2/team/UserDeleteResult; + public fun tag ()Lcom/dropbox/core/v2/team/UserDeleteResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UserDeleteResult$Tag : java/lang/Enum { + public static final field INVALID_USER Lcom/dropbox/core/v2/team/UserDeleteResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/UserDeleteResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/UserDeleteResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UserDeleteResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/UserDeleteResult$Tag; +} + +public class com/dropbox/core/v2/team/UserResendEmailsResult { + protected final field results Ljava/util/List; + protected final field user Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResults ()Ljava/util/List; + public fun getUser ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UserResendResult { + public static final field OTHER Lcom/dropbox/core/v2/team/UserResendResult; + public fun equals (Ljava/lang/Object;)Z + public fun getInvalidUserValue ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun getSuccessValue ()Lcom/dropbox/core/v2/team/UserResendEmailsResult; + public fun hashCode ()I + public static fun invalidUser (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/UserResendResult; + public fun isInvalidUser ()Z + public fun isOther ()Z + public fun isSuccess ()Z + public static fun success (Lcom/dropbox/core/v2/team/UserResendEmailsResult;)Lcom/dropbox/core/v2/team/UserResendResult; + public fun tag ()Lcom/dropbox/core/v2/team/UserResendResult$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UserResendResult$Tag : java/lang/Enum { + public static final field INVALID_USER Lcom/dropbox/core/v2/team/UserResendResult$Tag; + public static final field OTHER Lcom/dropbox/core/v2/team/UserResendResult$Tag; + public static final field SUCCESS Lcom/dropbox/core/v2/team/UserResendResult$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UserResendResult$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/UserResendResult$Tag; +} + +public class com/dropbox/core/v2/team/UserSecondaryEmailsArg { + protected final field secondaryEmails Ljava/util/List; + protected final field user Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryEmails ()Ljava/util/List; + public fun getUser ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/team/UserSecondaryEmailsResult { + protected final field results Ljava/util/List; + protected final field user Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun (Lcom/dropbox/core/v2/team/UserSelectorArg;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResults ()Ljava/util/List; + public fun getUser ()Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UserSelectorArg { + public static fun email (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun equals (Ljava/lang/Object;)Z + public static fun externalId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun getEmailValue ()Ljava/lang/String; + public fun getExternalIdValue ()Ljava/lang/String; + public fun getTeamMemberIdValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isEmail ()Z + public fun isExternalId ()Z + public fun isTeamMemberId ()Z + public fun tag ()Lcom/dropbox/core/v2/team/UserSelectorArg$Tag; + public static fun teamMemberId (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UserSelectorArg; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/team/UserSelectorArg$Tag : java/lang/Enum { + public static final field EMAIL Lcom/dropbox/core/v2/team/UserSelectorArg$Tag; + public static final field EXTERNAL_ID Lcom/dropbox/core/v2/team/UserSelectorArg$Tag; + public static final field TEAM_MEMBER_ID Lcom/dropbox/core/v2/team/UserSelectorArg$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/UserSelectorArg$Tag; + public static fun values ()[Lcom/dropbox/core/v2/team/UserSelectorArg$Tag; +} + +public final class com/dropbox/core/v2/teamcommon/GroupManagementType : java/lang/Enum { + public static final field COMPANY_MANAGED Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public static final field OTHER Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public static final field SYSTEM_MANAGED Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public static final field USER_MANAGED Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public static fun values ()[Lcom/dropbox/core/v2/teamcommon/GroupManagementType; +} + +public class com/dropbox/core/v2/teamcommon/GroupManagementType$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teamcommon/GroupManagementType$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teamcommon/GroupManagementType;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/teamcommon/GroupSummary { + protected final field groupExternalId Ljava/lang/String; + protected final field groupId Ljava/lang/String; + protected final field groupManagementType Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + protected final field groupName Ljava/lang/String; + protected final field memberCount Ljava/lang/Long; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;Ljava/lang/String;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getGroupExternalId ()Ljava/lang/String; + public fun getGroupId ()Ljava/lang/String; + public fun getGroupManagementType ()Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public fun getGroupName ()Ljava/lang/String; + public fun getMemberCount ()Ljava/lang/Long; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;)Lcom/dropbox/core/v2/teamcommon/GroupSummary$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamcommon/GroupSummary$Builder { + protected field groupExternalId Ljava/lang/String; + protected final field groupId Ljava/lang/String; + protected final field groupManagementType Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + protected final field groupName Ljava/lang/String; + protected field memberCount Ljava/lang/Long; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;)V + public fun build ()Lcom/dropbox/core/v2/teamcommon/GroupSummary; + public fun withGroupExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamcommon/GroupSummary$Builder; + public fun withMemberCount (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamcommon/GroupSummary$Builder; +} + +public class com/dropbox/core/v2/teamcommon/GroupSummary$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teamcommon/GroupSummary$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/teamcommon/GroupSummary; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teamcommon/GroupSummary;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/teamcommon/GroupType : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamcommon/GroupType; + public static final field TEAM Lcom/dropbox/core/v2/teamcommon/GroupType; + public static final field USER_MANAGED Lcom/dropbox/core/v2/teamcommon/GroupType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamcommon/GroupType; + public static fun values ()[Lcom/dropbox/core/v2/teamcommon/GroupType; +} + +public class com/dropbox/core/v2/teamcommon/GroupType$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teamcommon/GroupType$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teamcommon/GroupType; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teamcommon/GroupType;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teamcommon/MemberSpaceLimitType : java/lang/Enum { + public static final field ALERT_ONLY Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + public static final field OFF Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + public static final field OTHER Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + public static final field STOP_SYNC Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + public static fun values ()[Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; +} + +public class com/dropbox/core/v2/teamcommon/MemberSpaceLimitType$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/teamcommon/TimeRange { + protected final field endTime Ljava/util/Date; + protected final field startTime Ljava/util/Date; + public fun ()V + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEndTime ()Ljava/util/Date; + public fun getStartTime ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamcommon/TimeRange$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamcommon/TimeRange$Builder { + protected field endTime Ljava/util/Date; + protected field startTime Ljava/util/Date; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamcommon/TimeRange; + public fun withEndTime (Ljava/util/Date;)Lcom/dropbox/core/v2/teamcommon/TimeRange$Builder; + public fun withStartTime (Ljava/util/Date;)Lcom/dropbox/core/v2/teamcommon/TimeRange$Builder; +} + +public class com/dropbox/core/v2/teamcommon/TimeRange$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teamcommon/TimeRange$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/teamcommon/TimeRange; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teamcommon/TimeRange;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/teamlog/AccessMethodLogInfo { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public static fun adminConsole (Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public static fun api (Lcom/dropbox/core/v2/teamlog/ApiSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public static fun contentManager (Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public static fun endUser (Lcom/dropbox/core/v2/teamlog/SessionLogInfo;)Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public static fun enterpriseConsole (Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getAdminConsoleValue ()Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo; + public fun getApiValue ()Lcom/dropbox/core/v2/teamlog/ApiSessionLogInfo; + public fun getContentManagerValue ()Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo; + public fun getEndUserValue ()Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun getEnterpriseConsoleValue ()Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo; + public fun getSignInAsValue ()Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo; + public fun hashCode ()I + public fun isAdminConsole ()Z + public fun isApi ()Z + public fun isContentManager ()Z + public fun isEndUser ()Z + public fun isEnterpriseConsole ()Z + public fun isOther ()Z + public fun isSignInAs ()Z + public static fun signInAs (Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public fun tag ()Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag : java/lang/Enum { + public static final field ADMIN_CONSOLE Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static final field API Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static final field CONTENT_MANAGER Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static final field END_USER Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static final field ENTERPRISE_CONSOLE Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static final field SIGN_IN_AS Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo$Tag; +} + +public final class com/dropbox/core/v2/teamlog/AccountCaptureAvailability : java/lang/Enum { + public static final field AVAILABLE Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + public static final field UNAVAILABLE Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + public fun (Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability;)V + public fun (Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability;Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureAvailability; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public fun (Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy;Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountDetails { + protected final field domainName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDomainName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentDetails { + protected final field domainName Ljava/lang/String; + protected final field notificationType Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDomainName ()Ljava/lang/String; + public fun getNotificationType ()Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AccountCaptureNotificationType : java/lang/Enum { + public static final field ACTIONABLE_NOTIFICATION Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType; + public static final field PROACTIVE_WARNING_NOTIFICATION Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationType; +} + +public final class com/dropbox/core/v2/teamlog/AccountCapturePolicy : java/lang/Enum { + public static final field ALL_USERS Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public static final field INVITED_USERS Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public static final field PREVENT_PERSONAL_CREATION Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AccountCapturePolicy; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountDetails { + protected final field domainName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDomainName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountLockOrUnlockedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/AccountState; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AccountState; + public fun (Lcom/dropbox/core/v2/teamlog/AccountState;Lcom/dropbox/core/v2/teamlog/AccountState;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/AccountState; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/AccountState; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AccountLockOrUnlockedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AccountState : java/lang/Enum { + public static final field LOCKED Lcom/dropbox/core/v2/teamlog/AccountState; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AccountState; + public static final field UNLOCKED Lcom/dropbox/core/v2/teamlog/AccountState; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AccountState; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AccountState; +} + +public final class com/dropbox/core/v2/teamlog/ActionDetails { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ActionDetails; + public fun equals (Ljava/lang/Object;)Z + public fun getRemoveActionValue ()Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; + public fun getTeamInviteDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamInviteDetails; + public fun getTeamJoinDetailsValue ()Lcom/dropbox/core/v2/teamlog/JoinTeamDetails; + public fun hashCode ()I + public fun isOther ()Z + public fun isRemoveAction ()Z + public fun isTeamInviteDetails ()Z + public fun isTeamJoinDetails ()Z + public static fun removeAction (Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType;)Lcom/dropbox/core/v2/teamlog/ActionDetails; + public fun tag ()Lcom/dropbox/core/v2/teamlog/ActionDetails$Tag; + public static fun teamInviteDetails (Lcom/dropbox/core/v2/teamlog/TeamInviteDetails;)Lcom/dropbox/core/v2/teamlog/ActionDetails; + public static fun teamJoinDetails (Lcom/dropbox/core/v2/teamlog/JoinTeamDetails;)Lcom/dropbox/core/v2/teamlog/ActionDetails; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ActionDetails$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ActionDetails$Tag; + public static final field REMOVE_ACTION Lcom/dropbox/core/v2/teamlog/ActionDetails$Tag; + public static final field TEAM_INVITE_DETAILS Lcom/dropbox/core/v2/teamlog/ActionDetails$Tag; + public static final field TEAM_JOIN_DETAILS Lcom/dropbox/core/v2/teamlog/ActionDetails$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ActionDetails$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ActionDetails$Tag; +} + +public final class com/dropbox/core/v2/teamlog/ActorLogInfo { + public static final field ANONYMOUS Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + public static final field DROPBOX Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + public static fun admin (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + public static fun app (Lcom/dropbox/core/v2/teamlog/AppLogInfo;)Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getAdminValue ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun getAppValue ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun getResellerValue ()Lcom/dropbox/core/v2/teamlog/ResellerLogInfo; + public fun getUserValue ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun isAdmin ()Z + public fun isAnonymous ()Z + public fun isApp ()Z + public fun isDropbox ()Z + public fun isOther ()Z + public fun isReseller ()Z + public fun isUser ()Z + public static fun reseller (Lcom/dropbox/core/v2/teamlog/ResellerLogInfo;)Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + public fun tag ()Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun user (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)Lcom/dropbox/core/v2/teamlog/ActorLogInfo; +} + +public final class com/dropbox/core/v2/teamlog/ActorLogInfo$Tag : java/lang/Enum { + public static final field ADMIN Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static final field ANONYMOUS Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static final field APP Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static final field DROPBOX Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static final field RESELLER Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static final field USER Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ActorLogInfo$Tag; +} + +public final class com/dropbox/core/v2/teamlog/AdminAlertCategoryEnum : java/lang/Enum { + public static final field ACCOUNT_TAKEOVER Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static final field DATA_LOSS_PROTECTION Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static final field INFORMATION_GOVERNANCE Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static final field MALWARE_SHARING Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static final field MASSIVE_FILE_OPERATION Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static final field NA Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static final field THREAT_MANAGEMENT Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; +} + +public final class com/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum : java/lang/Enum { + public static final field ACTIVE Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public static final field DISMISSED Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public static final field IN_PROGRESS Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public static final field NA Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public static final field RESOLVED Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; +} + +public final class com/dropbox/core/v2/teamlog/AdminAlertSeverityEnum : java/lang/Enum { + public static final field HIGH Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public static final field INFO Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public static final field LOW Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public static final field MEDIUM Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public static final field NA Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration { + protected final field alertState Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; + protected final field excludedFileExtensions Ljava/lang/String; + protected final field recipientsSettings Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration; + protected final field sensitivityLevel Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + protected final field text Ljava/lang/String; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy;Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity;Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAlertState ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; + public fun getExcludedFileExtensions ()Ljava/lang/String; + public fun getRecipientsSettings ()Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration; + public fun getSensitivityLevel ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public fun getText ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration$Builder { + protected field alertState Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; + protected field excludedFileExtensions Ljava/lang/String; + protected field recipientsSettings Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration; + protected field sensitivityLevel Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + protected field text Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration; + public fun withAlertState (Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy;)Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration$Builder; + public fun withExcludedFileExtensions (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration$Builder; + public fun withRecipientsSettings (Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration;)Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration$Builder; + public fun withSensitivityLevel (Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity;)Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration$Builder; + public fun withText (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration$Builder; +} + +public final class com/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity : java/lang/Enum { + public static final field HIGH Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static final field HIGHEST Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static final field INVALID Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static final field LOW Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static final field LOWEST Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static final field MEDIUM Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedDetails { + protected final field alertCategory Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + protected final field alertInstanceId Ljava/lang/String; + protected final field alertName Ljava/lang/String; + protected final field alertSeverity Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + protected final field newValue Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum;Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum;Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAlertCategory ()Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public fun getAlertInstanceId ()Ljava/lang/String; + public fun getAlertName ()Ljava/lang/String; + public fun getAlertSeverity ()Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy : java/lang/Enum { + public static final field OFF Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; + public static final field ON Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigDetails { + protected final field alertName Ljava/lang/String; + protected final field newAlertConfig Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration; + protected final field previousAlertConfig Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration;Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAlertName ()Ljava/lang/String; + public fun getNewAlertConfig ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration; + public fun getPreviousAlertConfig ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertDetails { + protected final field alertCategory Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + protected final field alertInstanceId Ljava/lang/String; + protected final field alertName Ljava/lang/String; + protected final field alertSeverity Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum;Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAlertCategory ()Lcom/dropbox/core/v2/teamlog/AdminAlertCategoryEnum; + public fun getAlertInstanceId ()Ljava/lang/String; + public fun getAlertName ()Ljava/lang/String; + public fun getAlertSeverity ()Lcom/dropbox/core/v2/teamlog/AdminAlertSeverityEnum; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AdminConsoleAppPermission : java/lang/Enum { + public static final field DEFAULT_FOR_LISTED_APPS Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; + public static final field DEFAULT_FOR_UNLISTED_APPS Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; +} + +public final class com/dropbox/core/v2/teamlog/AdminConsoleAppPolicy : java/lang/Enum { + public static final field ALLOW Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public static final field BLOCK Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public static final field DEFAULT Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; +} + +public class com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy;Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy; +} + +public final class com/dropbox/core/v2/teamlog/AdminRole : java/lang/Enum { + public static final field BILLING_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field COMPLIANCE_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field CONTENT_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field LIMITED_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field MEMBER_ONLY Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field REPORTING_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field SECURITY_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field SUPPORT_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field TEAM_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static final field USER_MANAGEMENT_ADMIN Lcom/dropbox/core/v2/teamlog/AdminRole; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AdminRole; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AdminRole; +} + +public final class com/dropbox/core/v2/teamlog/AlertRecipientsSettingType : java/lang/Enum { + public static final field CUSTOM_LIST Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public static final field INVALID Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public static final field NONE Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public static final field TEAM_ADMINS Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; +} + +public class com/dropbox/core/v2/teamlog/AllowDownloadDisabledDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AllowDownloadDisabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AllowDownloadEnabledDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AllowDownloadEnabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ApiSessionLogInfo { + protected final field requestId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRequestId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppBlockedByPermissionsDetails { + protected final field appInfo Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/AppLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppInfo ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppBlockedByPermissionsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppLinkTeamDetails { + protected final field appInfo Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/AppLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppInfo ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppLinkTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppLinkUserDetails { + protected final field appInfo Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/AppLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppInfo ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppLinkUserType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppLogInfo { + protected final field appId Ljava/lang/String; + protected final field displayName Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppLogInfo$Builder { + protected field appId Ljava/lang/String; + protected field displayName Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun withAppId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/AppPermissionsChangedDetails { + protected final field appName Ljava/lang/String; + protected final field newValue Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + protected final field permission Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppName ()Ljava/lang/String; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public fun getPermission ()Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;)Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppPermissionsChangedDetails$Builder { + protected field appName Ljava/lang/String; + protected final field newValue Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + protected field permission Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy; + protected fun (Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPolicy;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedDetails; + public fun withAppName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedDetails$Builder; + public fun withPermission (Lcom/dropbox/core/v2/teamlog/AdminConsoleAppPermission;)Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/AppPermissionsChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppUnlinkTeamDetails { + protected final field appInfo Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/AppLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppInfo ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppUnlinkTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppUnlinkUserDetails { + protected final field appInfo Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/AppLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppInfo ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/AppUnlinkUserType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ApplyNamingConventionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ApplyNamingConventionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AssetLogInfo { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AssetLogInfo; + public fun equals (Ljava/lang/Object;)Z + public static fun file (Lcom/dropbox/core/v2/teamlog/FileLogInfo;)Lcom/dropbox/core/v2/teamlog/AssetLogInfo; + public static fun folder (Lcom/dropbox/core/v2/teamlog/FolderLogInfo;)Lcom/dropbox/core/v2/teamlog/AssetLogInfo; + public fun getFileValue ()Lcom/dropbox/core/v2/teamlog/FileLogInfo; + public fun getFolderValue ()Lcom/dropbox/core/v2/teamlog/FolderLogInfo; + public fun getPaperDocumentValue ()Lcom/dropbox/core/v2/teamlog/PaperDocumentLogInfo; + public fun getPaperFolderValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderLogInfo; + public fun getShowcaseDocumentValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseDocumentLogInfo; + public fun hashCode ()I + public fun isFile ()Z + public fun isFolder ()Z + public fun isOther ()Z + public fun isPaperDocument ()Z + public fun isPaperFolder ()Z + public fun isShowcaseDocument ()Z + public static fun paperDocument (Lcom/dropbox/core/v2/teamlog/PaperDocumentLogInfo;)Lcom/dropbox/core/v2/teamlog/AssetLogInfo; + public static fun paperFolder (Lcom/dropbox/core/v2/teamlog/PaperFolderLogInfo;)Lcom/dropbox/core/v2/teamlog/AssetLogInfo; + public static fun showcaseDocument (Lcom/dropbox/core/v2/teamlog/ShowcaseDocumentLogInfo;)Lcom/dropbox/core/v2/teamlog/AssetLogInfo; + public fun tag ()Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/AssetLogInfo$Tag : java/lang/Enum { + public static final field FILE Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public static final field FOLDER Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public static final field PAPER_DOCUMENT Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public static final field PAPER_FOLDER Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public static final field SHOWCASE_DOCUMENT Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/AssetLogInfo$Tag; +} + +public class com/dropbox/core/v2/teamlog/BackupAdminInvitationSentDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BackupAdminInvitationSentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BackupInvitationOpenedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BackupInvitationOpenedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/BackupStatus : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/BackupStatus; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/BackupStatus; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/BackupStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/BackupStatus; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/BackupStatus; +} + +public class com/dropbox/core/v2/teamlog/BinderAddPageDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderAddPageType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderAddSectionDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderAddSectionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRemovePageDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRemovePageType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRemoveSectionDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRemoveSectionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRenamePageDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + protected final field previousBinderItemName Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun getPreviousBinderItemName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRenamePageType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRenameSectionDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + protected final field previousBinderItemName Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun getPreviousBinderItemName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderRenameSectionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderReorderPageDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderReorderPageType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderReorderSectionDetails { + protected final field binderItemName Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBinderItemName ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/BinderReorderSectionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/CameraUploadsPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; +} + +public class com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy;Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/CaptureTranscriptPolicy : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; +} + +public class com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy;Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/Certificate { + protected final field commonName Ljava/lang/String; + protected final field expirationDate Ljava/lang/String; + protected final field issueDate Ljava/lang/String; + protected final field issuer Ljava/lang/String; + protected final field serialNumber Ljava/lang/String; + protected final field sha1Fingerprint Ljava/lang/String; + protected final field subject Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommonName ()Ljava/lang/String; + public fun getExpirationDate ()Ljava/lang/String; + public fun getIssueDate ()Ljava/lang/String; + public fun getIssuer ()Ljava/lang/String; + public fun getSerialNumber ()Ljava/lang/String; + public fun getSha1Fingerprint ()Ljava/lang/String; + public fun getSubject ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy : java/lang/Enum { + public static final field ALLOWED Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + public static final field NOT_ALLOWED Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; +} + +public class com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/FedAdminRole; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/FedAdminRole; + protected final field teamName Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/teamlog/FedAdminRole;Lcom/dropbox/core/v2/teamlog/FedAdminRole;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/FedAdminRole; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/FedAdminRole; + public fun getTeamName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusDetails { + protected final field action Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + protected final field additionalInfo Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo; + protected final field newValue Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public fun (Lcom/dropbox/core/v2/teamlog/FedHandshakeAction;Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAction ()Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public fun getAdditionalInfo ()Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ClassificationChangePolicyDetails { + protected final field classificationType Lcom/dropbox/core/v2/teamlog/ClassificationType; + protected final field newValue Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public fun (Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper;Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper;Lcom/dropbox/core/v2/teamlog/ClassificationType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClassificationType ()Lcom/dropbox/core/v2/teamlog/ClassificationType; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ClassificationChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ClassificationCreateReportDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ClassificationCreateReportFailDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ClassificationCreateReportFailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ClassificationCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public static final field MEMBER_AND_TEAM_FOLDERS Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public static final field TEAM_FOLDERS Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper; +} + +public final class com/dropbox/core/v2/teamlog/ClassificationType : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ClassificationType; + public static final field PERSONAL_INFORMATION Lcom/dropbox/core/v2/teamlog/ClassificationType; + public static final field PII Lcom/dropbox/core/v2/teamlog/ClassificationType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ClassificationType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ClassificationType; +} + +public class com/dropbox/core/v2/teamlog/CollectionShareDetails { + protected final field albumName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAlbumName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/CollectionShareType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ComputerBackupPolicy : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; +} + +public class com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy;Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ConnectedTeamName { + protected final field team Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeam ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; +} + +public final class com/dropbox/core/v2/teamlog/ContextLogInfo { + public static final field ANONYMOUS Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + public static final field TEAM Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getNonTeamMemberValue ()Lcom/dropbox/core/v2/teamlog/NonTeamMemberLogInfo; + public fun getOrganizationTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamLogInfo; + public fun getTeamMemberValue ()Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo; + public fun getTrustedNonTeamMemberValue ()Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo; + public fun hashCode ()I + public fun isAnonymous ()Z + public fun isNonTeamMember ()Z + public fun isOrganizationTeam ()Z + public fun isOther ()Z + public fun isTeam ()Z + public fun isTeamMember ()Z + public fun isTrustedNonTeamMember ()Z + public static fun nonTeamMember (Lcom/dropbox/core/v2/teamlog/NonTeamMemberLogInfo;)Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + public static fun organizationTeam (Lcom/dropbox/core/v2/teamlog/TeamLogInfo;)Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + public fun tag ()Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static fun teamMember (Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo;)Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun trustedNonTeamMember (Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo;)Lcom/dropbox/core/v2/teamlog/ContextLogInfo; +} + +public final class com/dropbox/core/v2/teamlog/ContextLogInfo$Tag : java/lang/Enum { + public static final field ANONYMOUS Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static final field NON_TEAM_MEMBER Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static final field ORGANIZATION_TEAM Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static final field TEAM Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static final field TEAM_MEMBER Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static final field TRUSTED_NON_TEAM_MEMBER Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ContextLogInfo$Tag; +} + +public class com/dropbox/core/v2/teamlog/CreateFolderDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/CreateFolderType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/CreateTeamInviteLinkDetails { + protected final field expiryDate Ljava/lang/String; + protected final field linkUrl Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExpiryDate ()Ljava/lang/String; + public fun getLinkUrl ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/CreateTeamInviteLinkType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public fun (Lcom/dropbox/core/v2/teamlog/PlacementRestriction;Lcom/dropbox/core/v2/teamlog/PlacementRestriction;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyDetails { + protected final field placementRestriction Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public fun (Lcom/dropbox/core/v2/teamlog/PlacementRestriction;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPlacementRestriction ()Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DbxTeamTeamLogRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun getEvents ()Lcom/dropbox/core/v2/teamlog/GetTeamEventsResult; + public fun getEventsBuilder ()Lcom/dropbox/core/v2/teamlog/GetEventsBuilder; + public fun getEventsContinue (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GetTeamEventsResult; +} + +public final class com/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy : java/lang/Enum { + public static final field DAY_1 Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field DAY_180 Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field DAY_3 Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field DAY_30 Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field DAY_7 Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field DAY_90 Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field NONE Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static final field YEAR_1 Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; +} + +public class com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkDetails { + protected final field linkUrl Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLinkUrl ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo { + protected final field clientType Lcom/dropbox/core/v2/team/DesktopPlatform; + protected final field clientVersion Ljava/lang/String; + protected final field hostName Ljava/lang/String; + protected final field isDeleteOnUnlinkSupported Z + protected final field platform Ljava/lang/String; + protected final field sessionInfo Lcom/dropbox/core/v2/teamlog/DesktopSessionLogInfo; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;Z)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;ZLjava/lang/String;Ljava/util/Date;Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/DesktopSessionLogInfo;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClientType ()Lcom/dropbox/core/v2/team/DesktopPlatform; + public fun getClientVersion ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getHostName ()Ljava/lang/String; + public fun getIpAddress ()Ljava/lang/String; + public fun getIsDeleteOnUnlinkSupported ()Z + public fun getPlatform ()Ljava/lang/String; + public fun getSessionInfo ()Lcom/dropbox/core/v2/teamlog/DesktopSessionLogInfo; + public fun getUpdated ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;Z)Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo$Builder : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder { + protected final field clientType Lcom/dropbox/core/v2/team/DesktopPlatform; + protected field clientVersion Ljava/lang/String; + protected final field hostName Ljava/lang/String; + protected final field isDeleteOnUnlinkSupported Z + protected final field platform Ljava/lang/String; + protected field sessionInfo Lcom/dropbox/core/v2/teamlog/DesktopSessionLogInfo; + protected fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/DesktopPlatform;Ljava/lang/String;Z)V + public fun build ()Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun withClientVersion (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo$Builder; + public synthetic fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo$Builder; + public synthetic fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withSessionInfo (Lcom/dropbox/core/v2/teamlog/DesktopSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo$Builder; + public synthetic fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/DesktopSessionLogInfo : com/dropbox/core/v2/teamlog/SessionLogInfo { + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSessionId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + protected field previousValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + protected field previousValue Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public fun ()V + public fun (Lcom/dropbox/core/v2/teampolicies/RolloutMethod;Lcom/dropbox/core/v2/teampolicies/RolloutMethod;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + protected field previousValue Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teampolicies/RolloutMethod;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teampolicies/RolloutMethod;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy;Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + protected field previousValue Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/DeviceApprovalsPolicy : java/lang/Enum { + public static final field LIMITED Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public static final field UNLIMITED Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/DeviceApprovalsPolicy; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopDetails { + protected final field deviceSessionInfo Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDeviceSessionInfo ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceChangeIpMobileDetails { + protected final field deviceSessionInfo Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDeviceSessionInfo ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceChangeIpMobileType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceChangeIpWebDetails { + protected final field userAgent Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getUserAgent ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceChangeIpWebType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails { + protected final field displayName Ljava/lang/String; + protected final field numFailures J + protected final field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun (J)V + public fun (JLcom/dropbox/core/v2/teamlog/SessionLogInfo;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun getNumFailures ()J + public fun getSessionInfo ()Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun hashCode ()I + public static fun newBuilder (J)Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails$Builder { + protected field displayName Ljava/lang/String; + protected final field numFailures J + protected field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + protected fun (J)V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails$Builder; + public fun withSessionInfo (Lcom/dropbox/core/v2/teamlog/SessionLogInfo;)Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails { + protected final field displayName Ljava/lang/String; + protected final field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/SessionLogInfo;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun getSessionInfo ()Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails$Builder { + protected field displayName Ljava/lang/String; + protected field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails$Builder; + public fun withSessionInfo (Lcom/dropbox/core/v2/teamlog/SessionLogInfo;)Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceLinkFailDetails { + protected final field deviceType Lcom/dropbox/core/v2/teamlog/DeviceType; + protected final field ipAddress Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/teamlog/DeviceType;)V + public fun (Lcom/dropbox/core/v2/teamlog/DeviceType;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDeviceType ()Lcom/dropbox/core/v2/teamlog/DeviceType; + public fun getIpAddress ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceLinkFailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceLinkSuccessDetails { + protected final field deviceSessionInfo Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDeviceSessionInfo ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceLinkSuccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceManagementDisabledDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceManagementDisabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceManagementEnabledDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceManagementEnabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceSessionLogInfo { + protected final field created Ljava/util/Date; + protected final field ipAddress Ljava/lang/String; + protected final field updated Ljava/util/Date; + public fun ()V + public fun (Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCreated ()Ljava/util/Date; + public fun getIpAddress ()Ljava/lang/String; + public fun getUpdated ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder { + protected field created Ljava/util/Date; + protected field ipAddress Ljava/lang/String; + protected field updated Ljava/util/Date; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedDetails { + protected final field desktopDeviceSessionInfo Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + protected final field newValue Lcom/dropbox/core/v2/teamlog/BackupStatus; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/BackupStatus; + public fun (Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo;Lcom/dropbox/core/v2/teamlog/BackupStatus;Lcom/dropbox/core/v2/teamlog/BackupStatus;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDesktopDeviceSessionInfo ()Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/BackupStatus; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/BackupStatus; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/DeviceType : java/lang/Enum { + public static final field DESKTOP Lcom/dropbox/core/v2/teamlog/DeviceType; + public static final field MOBILE Lcom/dropbox/core/v2/teamlog/DeviceType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/DeviceType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/DeviceType; +} + +public class com/dropbox/core/v2/teamlog/DeviceUnlinkDetails { + protected final field deleteData Z + protected final field displayName Ljava/lang/String; + protected final field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun (Z)V + public fun (ZLcom/dropbox/core/v2/teamlog/SessionLogInfo;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDeleteData ()Z + public fun getDisplayName ()Ljava/lang/String; + public fun getSessionInfo ()Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun hashCode ()I + public static fun newBuilder (Z)Lcom/dropbox/core/v2/teamlog/DeviceUnlinkDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DeviceUnlinkDetails$Builder { + protected final field deleteData Z + protected field displayName Ljava/lang/String; + protected field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + protected fun (Z)V + public fun build ()Lcom/dropbox/core/v2/teamlog/DeviceUnlinkDetails; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceUnlinkDetails$Builder; + public fun withSessionInfo (Lcom/dropbox/core/v2/teamlog/SessionLogInfo;)Lcom/dropbox/core/v2/teamlog/DeviceUnlinkDetails$Builder; +} + +public final class com/dropbox/core/v2/teamlog/DeviceUnlinkPolicy : java/lang/Enum { + public static final field KEEP Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + public static final field REMOVE Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/DeviceUnlinkPolicy; +} + +public class com/dropbox/core/v2/teamlog/DeviceUnlinkType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DisabledDomainInvitesDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DisabledDomainInvitesType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/DispositionActionType : java/lang/Enum { + public static final field AUTOMATIC_DELETE Lcom/dropbox/core/v2/teamlog/DispositionActionType; + public static final field AUTOMATIC_PERMANENTLY_DELETE Lcom/dropbox/core/v2/teamlog/DispositionActionType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/DispositionActionType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DispositionActionType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/DispositionActionType; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersDetails { + protected final field domainName Ljava/lang/String; + protected final field numRecipients J + public fun (Ljava/lang/String;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getDomainName ()Ljava/lang/String; + public fun getNumRecipients ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailDetails { + protected final field domainName Ljava/lang/String; + protected final field verificationMethod Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDomainName ()Ljava/lang/String; + public fun getVerificationMethod ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessDetails { + protected final field domainNames Ljava/util/List; + protected final field verificationMethod Ljava/lang/String; + public fun (Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDomainNames ()Ljava/util/List; + public fun getVerificationMethod ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainDetails { + protected final field domainNames Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDomainNames ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/DownloadPolicyType : java/lang/Enum { + public static final field ALLOW Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + public static final field DISALLOW Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; +} + +public class com/dropbox/core/v2/teamlog/DropboxPasswordsExportedDetails { + protected final field platform Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPlatform ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DropboxPasswordsExportedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledDetails { + protected final field isFirstDevice Z + protected final field platform Ljava/lang/String; + public fun (ZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsFirstDevice ()Z + public fun getPlatform ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/DropboxPasswordsPolicy : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; +} + +public class com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy;Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/DurationLogInfo { + protected final field amount J + protected final field unit Lcom/dropbox/core/v2/teamlog/TimeUnit; + public fun (Lcom/dropbox/core/v2/teamlog/TimeUnit;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getAmount ()J + public fun getUnit ()Lcom/dropbox/core/v2/teamlog/TimeUnit; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/EmailIngestPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; +} + +public class com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy;Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/EmailIngestPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails { + protected final field attachmentNames Ljava/util/List; + protected final field fromEmail Ljava/lang/String; + protected final field fromName Ljava/lang/String; + protected final field inboxName Ljava/lang/String; + protected final field subject Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/util/List;)V + public fun (Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAttachmentNames ()Ljava/util/List; + public fun getFromEmail ()Ljava/lang/String; + public fun getFromName ()Ljava/lang/String; + public fun getInboxName ()Ljava/lang/String; + public fun getSubject ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails$Builder { + protected final field attachmentNames Ljava/util/List; + protected field fromEmail Ljava/lang/String; + protected field fromName Ljava/lang/String; + protected final field inboxName Ljava/lang/String; + protected field subject Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/util/List;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails; + public fun withFromEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails$Builder; + public fun withFromName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails$Builder; + public fun withSubject (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/EmailIngestReceiveFileType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmAddExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmAddExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/EmmState; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/EmmState; + public fun (Lcom/dropbox/core/v2/teampolicies/EmmState;)V + public fun (Lcom/dropbox/core/v2/teampolicies/EmmState;Lcom/dropbox/core/v2/teampolicies/EmmState;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/EmmState; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/EmmState; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmCreateUsageReportDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmCreateUsageReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmErrorDetails { + protected final field errorDetails Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getErrorDetails ()Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmErrorType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmRemoveExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EmmRemoveExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EnabledDomainInvitesDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EnabledDomainInvitesType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedDetails { + protected final field federationExtraDetails Lcom/dropbox/core/v2/teamlog/FedExtraDetails; + public fun (Lcom/dropbox/core/v2/teamlog/FedExtraDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFederationExtraDetails ()Lcom/dropbox/core/v2/teamlog/FedExtraDetails; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy : java/lang/Enum { + public static final field OPTIONAL Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + public static final field REQUIRED Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; +} + +public class com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingDetails { + protected final field newSettingsPageLockingState Ljava/lang/String; + protected final field previousSettingsPageLockingState Ljava/lang/String; + protected final field settingsPageName Ljava/lang/String; + protected final field teamName Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewSettingsPageLockingState ()Ljava/lang/String; + public fun getPreviousSettingsPageLockingState ()Ljava/lang/String; + public fun getSettingsPageName ()Ljava/lang/String; + public fun getTeamName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/EventCategory : java/lang/Enum { + public static final field ADMIN_ALERTING Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field APPS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field COMMENTS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field DATA_GOVERNANCE Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field DEVICES Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field DOMAINS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field ENCRYPTION Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field FILE_OPERATIONS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field FILE_REQUESTS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field GROUPS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field LOGINS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field MEMBERS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field PAPER Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field PASSWORDS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field REPORTS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field SHARING Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field SHOWCASE Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field SSO Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field TEAM_FOLDERS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field TEAM_POLICIES Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field TEAM_PROFILE Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field TFA Lcom/dropbox/core/v2/teamlog/EventCategory; + public static final field TRUSTED_TEAMS Lcom/dropbox/core/v2/teamlog/EventCategory; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EventCategory; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/EventCategory; +} + +public final class com/dropbox/core/v2/teamlog/EventDetails { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun accountCaptureChangeAvailabilityDetails (Lcom/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun accountCaptureChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/AccountCaptureChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun accountCaptureMigrateAccountDetails (Lcom/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun accountCaptureNotificationEmailsSentDetails (Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun accountCaptureRelinquishAccountDetails (Lcom/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun accountLockOrUnlockedDetails (Lcom/dropbox/core/v2/teamlog/AccountLockOrUnlockedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun adminAlertingAlertStateChangedDetails (Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun adminAlertingChangedAlertConfigDetails (Lcom/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun adminAlertingTriggeredAlertDetails (Lcom/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun adminEmailRemindersChangedDetails (Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun allowDownloadDisabledDetails (Lcom/dropbox/core/v2/teamlog/AllowDownloadDisabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun allowDownloadEnabledDetails (Lcom/dropbox/core/v2/teamlog/AllowDownloadEnabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun appBlockedByPermissionsDetails (Lcom/dropbox/core/v2/teamlog/AppBlockedByPermissionsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun appLinkTeamDetails (Lcom/dropbox/core/v2/teamlog/AppLinkTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun appLinkUserDetails (Lcom/dropbox/core/v2/teamlog/AppLinkUserDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun appPermissionsChangedDetails (Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun appUnlinkTeamDetails (Lcom/dropbox/core/v2/teamlog/AppUnlinkTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun appUnlinkUserDetails (Lcom/dropbox/core/v2/teamlog/AppUnlinkUserDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun applyNamingConventionDetails (Lcom/dropbox/core/v2/teamlog/ApplyNamingConventionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun backupAdminInvitationSentDetails (Lcom/dropbox/core/v2/teamlog/BackupAdminInvitationSentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun backupInvitationOpenedDetails (Lcom/dropbox/core/v2/teamlog/BackupInvitationOpenedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderAddPageDetails (Lcom/dropbox/core/v2/teamlog/BinderAddPageDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderAddSectionDetails (Lcom/dropbox/core/v2/teamlog/BinderAddSectionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderRemovePageDetails (Lcom/dropbox/core/v2/teamlog/BinderRemovePageDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderRemoveSectionDetails (Lcom/dropbox/core/v2/teamlog/BinderRemoveSectionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderRenamePageDetails (Lcom/dropbox/core/v2/teamlog/BinderRenamePageDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderRenameSectionDetails (Lcom/dropbox/core/v2/teamlog/BinderRenameSectionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderReorderPageDetails (Lcom/dropbox/core/v2/teamlog/BinderReorderPageDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun binderReorderSectionDetails (Lcom/dropbox/core/v2/teamlog/BinderReorderSectionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun cameraUploadsPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun captureTranscriptPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun changedEnterpriseAdminRoleDetails (Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun changedEnterpriseConnectedTeamStatusDetails (Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun classificationChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/ClassificationChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun classificationCreateReportDetails (Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun classificationCreateReportFailDetails (Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportFailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun collectionShareDetails (Lcom/dropbox/core/v2/teamlog/CollectionShareDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun computerBackupPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun contentAdministrationPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun createFolderDetails (Lcom/dropbox/core/v2/teamlog/CreateFolderDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun createTeamInviteLinkDetails (Lcom/dropbox/core/v2/teamlog/CreateTeamInviteLinkDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun dataPlacementRestrictionChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun dataPlacementRestrictionSatisfyPolicyDetails (Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun dataResidencyMigrationRequestSuccessfulDetails (Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun dataResidencyMigrationRequestUnsuccessfulDetails (Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deleteTeamInviteLinkDetails (Lcom/dropbox/core/v2/teamlog/DeleteTeamInviteLinkDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceApprovalsAddExceptionDetails (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceApprovalsChangeDesktopPolicyDetails (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceApprovalsChangeMobilePolicyDetails (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceApprovalsChangeOverageActionDetails (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceApprovalsChangeUnlinkActionDetails (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceApprovalsRemoveExceptionDetails (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceChangeIpDesktopDetails (Lcom/dropbox/core/v2/teamlog/DeviceChangeIpDesktopDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceChangeIpMobileDetails (Lcom/dropbox/core/v2/teamlog/DeviceChangeIpMobileDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceChangeIpWebDetails (Lcom/dropbox/core/v2/teamlog/DeviceChangeIpWebDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceDeleteOnUnlinkFailDetails (Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceDeleteOnUnlinkSuccessDetails (Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceLinkFailDetails (Lcom/dropbox/core/v2/teamlog/DeviceLinkFailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceLinkSuccessDetails (Lcom/dropbox/core/v2/teamlog/DeviceLinkSuccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceManagementDisabledDetails (Lcom/dropbox/core/v2/teamlog/DeviceManagementDisabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceManagementEnabledDetails (Lcom/dropbox/core/v2/teamlog/DeviceManagementEnabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceSyncBackupStatusChangedDetails (Lcom/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun deviceUnlinkDetails (Lcom/dropbox/core/v2/teamlog/DeviceUnlinkDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun directoryRestrictionsAddMembersDetails (Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun directoryRestrictionsRemoveMembersDetails (Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun disabledDomainInvitesDetails (Lcom/dropbox/core/v2/teamlog/DisabledDomainInvitesDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainInvitesApproveRequestToJoinTeamDetails (Lcom/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainInvitesDeclineRequestToJoinTeamDetails (Lcom/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainInvitesEmailExistingUsersDetails (Lcom/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainInvitesRequestToJoinTeamDetails (Lcom/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainInvitesSetInviteNewUserPrefToNoDetails (Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainInvitesSetInviteNewUserPrefToYesDetails (Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainVerificationAddDomainFailDetails (Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainVerificationAddDomainSuccessDetails (Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun domainVerificationRemoveDomainDetails (Lcom/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun dropboxPasswordsExportedDetails (Lcom/dropbox/core/v2/teamlog/DropboxPasswordsExportedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun dropboxPasswordsNewDeviceEnrolledDetails (Lcom/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun dropboxPasswordsPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emailIngestPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/EmailIngestPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emailIngestReceiveFileDetails (Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emmAddExceptionDetails (Lcom/dropbox/core/v2/teamlog/EmmAddExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emmChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/EmmChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emmCreateExceptionsReportDetails (Lcom/dropbox/core/v2/teamlog/EmmCreateExceptionsReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emmCreateUsageReportDetails (Lcom/dropbox/core/v2/teamlog/EmmCreateUsageReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emmErrorDetails (Lcom/dropbox/core/v2/teamlog/EmmErrorDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emmRefreshAuthTokenDetails (Lcom/dropbox/core/v2/teamlog/EmmRefreshAuthTokenDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun emmRemoveExceptionDetails (Lcom/dropbox/core/v2/teamlog/EmmRemoveExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun enabledDomainInvitesDetails (Lcom/dropbox/core/v2/teamlog/EnabledDomainInvitesDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun endedEnterpriseAdminSessionDeprecatedDetails (Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun endedEnterpriseAdminSessionDetails (Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun enterpriseSettingsLockingDetails (Lcom/dropbox/core/v2/teamlog/EnterpriseSettingsLockingDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public fun equals (Ljava/lang/Object;)Z + public static fun exportMembersReportDetails (Lcom/dropbox/core/v2/teamlog/ExportMembersReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun exportMembersReportFailDetails (Lcom/dropbox/core/v2/teamlog/ExportMembersReportFailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun extendedVersionHistoryChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun externalDriveBackupEligibilityStatusCheckedDetails (Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun externalDriveBackupPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun externalDriveBackupStatusChangedDetails (Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun externalSharingCreateReportDetails (Lcom/dropbox/core/v2/teamlog/ExternalSharingCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun externalSharingReportFailedDetails (Lcom/dropbox/core/v2/teamlog/ExternalSharingReportFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileAddCommentDetails (Lcom/dropbox/core/v2/teamlog/FileAddCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileAddDetails (Lcom/dropbox/core/v2/teamlog/FileAddDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileAddFromAutomationDetails (Lcom/dropbox/core/v2/teamlog/FileAddFromAutomationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileChangeCommentSubscriptionDetails (Lcom/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileCommentsChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/FileCommentsChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileCopyDetails (Lcom/dropbox/core/v2/teamlog/FileCopyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileDeleteCommentDetails (Lcom/dropbox/core/v2/teamlog/FileDeleteCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileDeleteDetails (Lcom/dropbox/core/v2/teamlog/FileDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileDownloadDetails (Lcom/dropbox/core/v2/teamlog/FileDownloadDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileEditCommentDetails (Lcom/dropbox/core/v2/teamlog/FileEditCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileEditDetails (Lcom/dropbox/core/v2/teamlog/FileEditDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileGetCopyReferenceDetails (Lcom/dropbox/core/v2/teamlog/FileGetCopyReferenceDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileLikeCommentDetails (Lcom/dropbox/core/v2/teamlog/FileLikeCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileLockingLockStatusChangedDetails (Lcom/dropbox/core/v2/teamlog/FileLockingLockStatusChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileLockingPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/FileLockingPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileMoveDetails (Lcom/dropbox/core/v2/teamlog/FileMoveDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun filePermanentlyDeleteDetails (Lcom/dropbox/core/v2/teamlog/FilePermanentlyDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun filePreviewDetails (Lcom/dropbox/core/v2/teamlog/FilePreviewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileProviderMigrationPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRenameDetails (Lcom/dropbox/core/v2/teamlog/FileRenameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestChangeDetails (Lcom/dropbox/core/v2/teamlog/FileRequestChangeDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestCloseDetails (Lcom/dropbox/core/v2/teamlog/FileRequestCloseDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestCreateDetails (Lcom/dropbox/core/v2/teamlog/FileRequestCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestDeleteDetails (Lcom/dropbox/core/v2/teamlog/FileRequestDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestReceiveFileDetails (Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestsChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/FileRequestsChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestsEmailsEnabledDetails (Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRequestsEmailsRestrictedToTeamOnlyDetails (Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileResolveCommentDetails (Lcom/dropbox/core/v2/teamlog/FileResolveCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRestoreDetails (Lcom/dropbox/core/v2/teamlog/FileRestoreDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRevertDetails (Lcom/dropbox/core/v2/teamlog/FileRevertDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileRollbackChangesDetails (Lcom/dropbox/core/v2/teamlog/FileRollbackChangesDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileSaveCopyReferenceDetails (Lcom/dropbox/core/v2/teamlog/FileSaveCopyReferenceDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileTransfersFileAddDetails (Lcom/dropbox/core/v2/teamlog/FileTransfersFileAddDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileTransfersPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/FileTransfersPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileTransfersTransferDeleteDetails (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileTransfersTransferDownloadDetails (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDownloadDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileTransfersTransferSendDetails (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferSendDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileTransfersTransferViewDetails (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferViewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileUnlikeCommentDetails (Lcom/dropbox/core/v2/teamlog/FileUnlikeCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun fileUnresolveCommentDetails (Lcom/dropbox/core/v2/teamlog/FileUnresolveCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun folderLinkRestrictionPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun folderOverviewDescriptionChangedDetails (Lcom/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun folderOverviewItemPinnedDetails (Lcom/dropbox/core/v2/teamlog/FolderOverviewItemPinnedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun folderOverviewItemUnpinnedDetails (Lcom/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public fun getAccountCaptureChangeAvailabilityDetailsValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityDetails; + public fun getAccountCaptureChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureChangePolicyDetails; + public fun getAccountCaptureMigrateAccountDetailsValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountDetails; + public fun getAccountCaptureNotificationEmailsSentDetailsValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentDetails; + public fun getAccountCaptureRelinquishAccountDetailsValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountDetails; + public fun getAccountLockOrUnlockedDetailsValue ()Lcom/dropbox/core/v2/teamlog/AccountLockOrUnlockedDetails; + public fun getAdminAlertingAlertStateChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedDetails; + public fun getAdminAlertingChangedAlertConfigDetailsValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigDetails; + public fun getAdminAlertingTriggeredAlertDetailsValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertDetails; + public fun getAdminEmailRemindersChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersChangedDetails; + public fun getAllowDownloadDisabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/AllowDownloadDisabledDetails; + public fun getAllowDownloadEnabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/AllowDownloadEnabledDetails; + public fun getAppBlockedByPermissionsDetailsValue ()Lcom/dropbox/core/v2/teamlog/AppBlockedByPermissionsDetails; + public fun getAppLinkTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/AppLinkTeamDetails; + public fun getAppLinkUserDetailsValue ()Lcom/dropbox/core/v2/teamlog/AppLinkUserDetails; + public fun getAppPermissionsChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedDetails; + public fun getAppUnlinkTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/AppUnlinkTeamDetails; + public fun getAppUnlinkUserDetailsValue ()Lcom/dropbox/core/v2/teamlog/AppUnlinkUserDetails; + public fun getApplyNamingConventionDetailsValue ()Lcom/dropbox/core/v2/teamlog/ApplyNamingConventionDetails; + public fun getBackupAdminInvitationSentDetailsValue ()Lcom/dropbox/core/v2/teamlog/BackupAdminInvitationSentDetails; + public fun getBackupInvitationOpenedDetailsValue ()Lcom/dropbox/core/v2/teamlog/BackupInvitationOpenedDetails; + public fun getBinderAddPageDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderAddPageDetails; + public fun getBinderAddSectionDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderAddSectionDetails; + public fun getBinderRemovePageDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderRemovePageDetails; + public fun getBinderRemoveSectionDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderRemoveSectionDetails; + public fun getBinderRenamePageDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderRenamePageDetails; + public fun getBinderRenameSectionDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderRenameSectionDetails; + public fun getBinderReorderPageDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderReorderPageDetails; + public fun getBinderReorderSectionDetailsValue ()Lcom/dropbox/core/v2/teamlog/BinderReorderSectionDetails; + public fun getCameraUploadsPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedDetails; + public fun getCaptureTranscriptPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedDetails; + public fun getChangedEnterpriseAdminRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleDetails; + public fun getChangedEnterpriseConnectedTeamStatusDetailsValue ()Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusDetails; + public fun getClassificationChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/ClassificationChangePolicyDetails; + public fun getClassificationCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportDetails; + public fun getClassificationCreateReportFailDetailsValue ()Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportFailDetails; + public fun getCollectionShareDetailsValue ()Lcom/dropbox/core/v2/teamlog/CollectionShareDetails; + public fun getComputerBackupPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedDetails; + public fun getContentAdministrationPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedDetails; + public fun getCreateFolderDetailsValue ()Lcom/dropbox/core/v2/teamlog/CreateFolderDetails; + public fun getCreateTeamInviteLinkDetailsValue ()Lcom/dropbox/core/v2/teamlog/CreateTeamInviteLinkDetails; + public fun getDataPlacementRestrictionChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyDetails; + public fun getDataPlacementRestrictionSatisfyPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyDetails; + public fun getDataResidencyMigrationRequestSuccessfulDetailsValue ()Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulDetails; + public fun getDataResidencyMigrationRequestUnsuccessfulDetailsValue ()Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulDetails; + public fun getDeleteTeamInviteLinkDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeleteTeamInviteLinkDetails; + public fun getDeviceApprovalsAddExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionDetails; + public fun getDeviceApprovalsChangeDesktopPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails; + public fun getDeviceApprovalsChangeMobilePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails; + public fun getDeviceApprovalsChangeOverageActionDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails; + public fun getDeviceApprovalsChangeUnlinkActionDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails; + public fun getDeviceApprovalsRemoveExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionDetails; + public fun getDeviceChangeIpDesktopDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceChangeIpDesktopDetails; + public fun getDeviceChangeIpMobileDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceChangeIpMobileDetails; + public fun getDeviceChangeIpWebDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceChangeIpWebDetails; + public fun getDeviceDeleteOnUnlinkFailDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails; + public fun getDeviceDeleteOnUnlinkSuccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails; + public fun getDeviceLinkFailDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceLinkFailDetails; + public fun getDeviceLinkSuccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceLinkSuccessDetails; + public fun getDeviceManagementDisabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceManagementDisabledDetails; + public fun getDeviceManagementEnabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceManagementEnabledDetails; + public fun getDeviceSyncBackupStatusChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedDetails; + public fun getDeviceUnlinkDetailsValue ()Lcom/dropbox/core/v2/teamlog/DeviceUnlinkDetails; + public fun getDirectoryRestrictionsAddMembersDetailsValue ()Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersDetails; + public fun getDirectoryRestrictionsRemoveMembersDetailsValue ()Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersDetails; + public fun getDisabledDomainInvitesDetailsValue ()Lcom/dropbox/core/v2/teamlog/DisabledDomainInvitesDetails; + public fun getDomainInvitesApproveRequestToJoinTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamDetails; + public fun getDomainInvitesDeclineRequestToJoinTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamDetails; + public fun getDomainInvitesEmailExistingUsersDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersDetails; + public fun getDomainInvitesRequestToJoinTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamDetails; + public fun getDomainInvitesSetInviteNewUserPrefToNoDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoDetails; + public fun getDomainInvitesSetInviteNewUserPrefToYesDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesDetails; + public fun getDomainVerificationAddDomainFailDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailDetails; + public fun getDomainVerificationAddDomainSuccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessDetails; + public fun getDomainVerificationRemoveDomainDetailsValue ()Lcom/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainDetails; + public fun getDropboxPasswordsExportedDetailsValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsExportedDetails; + public fun getDropboxPasswordsNewDeviceEnrolledDetailsValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledDetails; + public fun getDropboxPasswordsPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedDetails; + public fun getEmailIngestPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmailIngestPolicyChangedDetails; + public fun getEmailIngestReceiveFileDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails; + public fun getEmmAddExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmmAddExceptionDetails; + public fun getEmmChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmmChangePolicyDetails; + public fun getEmmCreateExceptionsReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmmCreateExceptionsReportDetails; + public fun getEmmCreateUsageReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmmCreateUsageReportDetails; + public fun getEmmErrorDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmmErrorDetails; + public fun getEmmRefreshAuthTokenDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmmRefreshAuthTokenDetails; + public fun getEmmRemoveExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/EmmRemoveExceptionDetails; + public fun getEnabledDomainInvitesDetailsValue ()Lcom/dropbox/core/v2/teamlog/EnabledDomainInvitesDetails; + public fun getEndedEnterpriseAdminSessionDeprecatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedDetails; + public fun getEndedEnterpriseAdminSessionDetailsValue ()Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDetails; + public fun getEnterpriseSettingsLockingDetailsValue ()Lcom/dropbox/core/v2/teamlog/EnterpriseSettingsLockingDetails; + public fun getExportMembersReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExportMembersReportDetails; + public fun getExportMembersReportFailDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExportMembersReportFailDetails; + public fun getExtendedVersionHistoryChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyDetails; + public fun getExternalDriveBackupEligibilityStatusCheckedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedDetails; + public fun getExternalDriveBackupPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedDetails; + public fun getExternalDriveBackupStatusChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedDetails; + public fun getExternalSharingCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExternalSharingCreateReportDetails; + public fun getExternalSharingReportFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ExternalSharingReportFailedDetails; + public fun getFileAddCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileAddCommentDetails; + public fun getFileAddDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileAddDetails; + public fun getFileAddFromAutomationDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileAddFromAutomationDetails; + public fun getFileChangeCommentSubscriptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionDetails; + public fun getFileCommentsChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileCommentsChangePolicyDetails; + public fun getFileCopyDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileCopyDetails; + public fun getFileDeleteCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileDeleteCommentDetails; + public fun getFileDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileDeleteDetails; + public fun getFileDownloadDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileDownloadDetails; + public fun getFileEditCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileEditCommentDetails; + public fun getFileEditDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileEditDetails; + public fun getFileGetCopyReferenceDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileGetCopyReferenceDetails; + public fun getFileLikeCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileLikeCommentDetails; + public fun getFileLockingLockStatusChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileLockingLockStatusChangedDetails; + public fun getFileLockingPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileLockingPolicyChangedDetails; + public fun getFileMoveDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileMoveDetails; + public fun getFilePermanentlyDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/FilePermanentlyDeleteDetails; + public fun getFilePreviewDetailsValue ()Lcom/dropbox/core/v2/teamlog/FilePreviewDetails; + public fun getFileProviderMigrationPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedDetails; + public fun getFileRenameDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRenameDetails; + public fun getFileRequestChangeDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestChangeDetails; + public fun getFileRequestCloseDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestCloseDetails; + public fun getFileRequestCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestCreateDetails; + public fun getFileRequestDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestDeleteDetails; + public fun getFileRequestReceiveFileDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails; + public fun getFileRequestsChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsChangePolicyDetails; + public fun getFileRequestsEmailsEnabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledDetails; + public fun getFileRequestsEmailsRestrictedToTeamOnlyDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyDetails; + public fun getFileResolveCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileResolveCommentDetails; + public fun getFileRestoreDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRestoreDetails; + public fun getFileRevertDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRevertDetails; + public fun getFileRollbackChangesDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileRollbackChangesDetails; + public fun getFileSaveCopyReferenceDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileSaveCopyReferenceDetails; + public fun getFileTransfersFileAddDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersFileAddDetails; + public fun getFileTransfersPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersPolicyChangedDetails; + public fun getFileTransfersTransferDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDeleteDetails; + public fun getFileTransfersTransferDownloadDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDownloadDetails; + public fun getFileTransfersTransferSendDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferSendDetails; + public fun getFileTransfersTransferViewDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferViewDetails; + public fun getFileUnlikeCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileUnlikeCommentDetails; + public fun getFileUnresolveCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/FileUnresolveCommentDetails; + public fun getFolderLinkRestrictionPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedDetails; + public fun getFolderOverviewDescriptionChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedDetails; + public fun getFolderOverviewItemPinnedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FolderOverviewItemPinnedDetails; + public fun getFolderOverviewItemUnpinnedDetailsValue ()Lcom/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedDetails; + public fun getGoogleSsoChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/GoogleSsoChangePolicyDetails; + public fun getGovernancePolicyAddFolderFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails; + public fun getGovernancePolicyAddFoldersDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails; + public fun getGovernancePolicyContentDisposedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedDetails; + public fun getGovernancePolicyCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails; + public fun getGovernancePolicyDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyDeleteDetails; + public fun getGovernancePolicyEditDetailsDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsDetails; + public fun getGovernancePolicyEditDurationDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDurationDetails; + public fun getGovernancePolicyExportCreatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedDetails; + public fun getGovernancePolicyExportRemovedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedDetails; + public fun getGovernancePolicyRemoveFoldersDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails; + public fun getGovernancePolicyReportCreatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedDetails; + public fun getGovernancePolicyZipPartDownloadedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails; + public fun getGroupAddExternalIdDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupAddExternalIdDetails; + public fun getGroupAddMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupAddMemberDetails; + public fun getGroupChangeExternalIdDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupChangeExternalIdDetails; + public fun getGroupChangeManagementTypeDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupChangeManagementTypeDetails; + public fun getGroupChangeMemberRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupChangeMemberRoleDetails; + public fun getGroupCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupCreateDetails; + public fun getGroupDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupDeleteDetails; + public fun getGroupDescriptionUpdatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupDescriptionUpdatedDetails; + public fun getGroupJoinPolicyUpdatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails; + public fun getGroupMovedDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupMovedDetails; + public fun getGroupRemoveExternalIdDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupRemoveExternalIdDetails; + public fun getGroupRemoveMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupRemoveMemberDetails; + public fun getGroupRenameDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupRenameDetails; + public fun getGroupUserManagementChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyDetails; + public fun getGuestAdminChangeStatusDetailsValue ()Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails; + public fun getGuestAdminSignedInViaTrustedTeamsDetailsValue ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails; + public fun getGuestAdminSignedOutViaTrustedTeamsDetailsValue ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails; + public fun getIntegrationConnectedDetailsValue ()Lcom/dropbox/core/v2/teamlog/IntegrationConnectedDetails; + public fun getIntegrationDisconnectedDetailsValue ()Lcom/dropbox/core/v2/teamlog/IntegrationDisconnectedDetails; + public fun getIntegrationPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/IntegrationPolicyChangedDetails; + public fun getInviteAcceptanceEmailPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedDetails; + public fun getLegalHoldsActivateAHoldDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldDetails; + public fun getLegalHoldsAddMembersDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsAddMembersDetails; + public fun getLegalHoldsChangeHoldDetailsDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsDetails; + public fun getLegalHoldsChangeHoldNameDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameDetails; + public fun getLegalHoldsExportAHoldDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportAHoldDetails; + public fun getLegalHoldsExportCancelledDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportCancelledDetails; + public fun getLegalHoldsExportDownloadedDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails; + public fun getLegalHoldsExportRemovedDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportRemovedDetails; + public fun getLegalHoldsReleaseAHoldDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldDetails; + public fun getLegalHoldsRemoveMembersDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersDetails; + public fun getLegalHoldsReportAHoldDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsReportAHoldDetails; + public fun getLoginFailDetailsValue ()Lcom/dropbox/core/v2/teamlog/LoginFailDetails; + public fun getLoginSuccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/LoginSuccessDetails; + public fun getLogoutDetailsValue ()Lcom/dropbox/core/v2/teamlog/LogoutDetails; + public fun getMemberAddExternalIdDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberAddExternalIdDetails; + public fun getMemberAddNameDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberAddNameDetails; + public fun getMemberChangeAdminRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails; + public fun getMemberChangeEmailDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeEmailDetails; + public fun getMemberChangeExternalIdDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeExternalIdDetails; + public fun getMemberChangeMembershipTypeDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeMembershipTypeDetails; + public fun getMemberChangeNameDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeNameDetails; + public fun getMemberChangeResellerRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeResellerRoleDetails; + public fun getMemberChangeStatusDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails; + public fun getMemberDeleteManualContactsDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberDeleteManualContactsDetails; + public fun getMemberDeleteProfilePhotoDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoDetails; + public fun getMemberPermanentlyDeleteAccountContentsDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsDetails; + public fun getMemberRemoveExternalIdDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberRemoveExternalIdDetails; + public fun getMemberRequestsChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberRequestsChangePolicyDetails; + public fun getMemberSendInvitePolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedDetails; + public fun getMemberSetProfilePhotoDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSetProfilePhotoDetails; + public fun getMemberSpaceLimitsAddCustomQuotaDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaDetails; + public fun getMemberSpaceLimitsAddExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionDetails; + public fun getMemberSpaceLimitsChangeCapsTypePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyDetails; + public fun getMemberSpaceLimitsChangeCustomQuotaDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaDetails; + public fun getMemberSpaceLimitsChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails; + public fun getMemberSpaceLimitsChangeStatusDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusDetails; + public fun getMemberSpaceLimitsRemoveCustomQuotaDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaDetails; + public fun getMemberSpaceLimitsRemoveExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionDetails; + public fun getMemberSuggestDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSuggestDetails; + public fun getMemberSuggestionsChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyDetails; + public fun getMemberTransferAccountContentsDetailsValue ()Lcom/dropbox/core/v2/teamlog/MemberTransferAccountContentsDetails; + public fun getMicrosoftOfficeAddinChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyDetails; + public fun getMissingDetailsValue ()Lcom/dropbox/core/v2/teamlog/MissingDetails; + public fun getNetworkControlChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/NetworkControlChangePolicyDetails; + public fun getNoExpirationLinkGenCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportDetails; + public fun getNoExpirationLinkGenReportFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedDetails; + public fun getNoPasswordLinkGenCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportDetails; + public fun getNoPasswordLinkGenReportFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedDetails; + public fun getNoPasswordLinkViewCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportDetails; + public fun getNoPasswordLinkViewReportFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedDetails; + public fun getNoteAclInviteOnlyDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoteAclInviteOnlyDetails; + public fun getNoteAclLinkDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoteAclLinkDetails; + public fun getNoteAclTeamLinkDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoteAclTeamLinkDetails; + public fun getNoteShareReceiveDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoteShareReceiveDetails; + public fun getNoteSharedDetailsValue ()Lcom/dropbox/core/v2/teamlog/NoteSharedDetails; + public fun getObjectLabelAddedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ObjectLabelAddedDetails; + public fun getObjectLabelRemovedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ObjectLabelRemovedDetails; + public fun getObjectLabelUpdatedValueDetailsValue ()Lcom/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueDetails; + public fun getOpenNoteSharedDetailsValue ()Lcom/dropbox/core/v2/teamlog/OpenNoteSharedDetails; + public fun getOrganizeFolderWithTidyDetailsValue ()Lcom/dropbox/core/v2/teamlog/OrganizeFolderWithTidyDetails; + public fun getOutdatedLinkViewCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportDetails; + public fun getOutdatedLinkViewReportFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedDetails; + public fun getPaperAdminExportStartDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperAdminExportStartDetails; + public fun getPaperChangeDeploymentPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyDetails; + public fun getPaperChangeMemberLinkPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyDetails; + public fun getPaperChangeMemberPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperChangeMemberPolicyDetails; + public fun getPaperChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperChangePolicyDetails; + public fun getPaperContentAddMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentAddMemberDetails; + public fun getPaperContentAddToFolderDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentAddToFolderDetails; + public fun getPaperContentArchiveDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentArchiveDetails; + public fun getPaperContentCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentCreateDetails; + public fun getPaperContentPermanentlyDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteDetails; + public fun getPaperContentRemoveFromFolderDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails; + public fun getPaperContentRemoveMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRemoveMemberDetails; + public fun getPaperContentRenameDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRenameDetails; + public fun getPaperContentRestoreDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRestoreDetails; + public fun getPaperDefaultFolderPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedDetails; + public fun getPaperDesktopPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedDetails; + public fun getPaperDocAddCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocAddCommentDetails; + public fun getPaperDocChangeMemberRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleDetails; + public fun getPaperDocChangeSharingPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails; + public fun getPaperDocChangeSubscriptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionDetails; + public fun getPaperDocDeleteCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocDeleteCommentDetails; + public fun getPaperDocDeletedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocDeletedDetails; + public fun getPaperDocDownloadDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocDownloadDetails; + public fun getPaperDocEditCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocEditCommentDetails; + public fun getPaperDocEditDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocEditDetails; + public fun getPaperDocFollowedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocFollowedDetails; + public fun getPaperDocMentionDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocMentionDetails; + public fun getPaperDocOwnershipChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocOwnershipChangedDetails; + public fun getPaperDocRequestAccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocRequestAccessDetails; + public fun getPaperDocResolveCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocResolveCommentDetails; + public fun getPaperDocRevertDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocRevertDetails; + public fun getPaperDocSlackShareDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocSlackShareDetails; + public fun getPaperDocTeamInviteDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocTeamInviteDetails; + public fun getPaperDocTrashedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocTrashedDetails; + public fun getPaperDocUnresolveCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocUnresolveCommentDetails; + public fun getPaperDocUntrashedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocUntrashedDetails; + public fun getPaperDocViewDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperDocViewDetails; + public fun getPaperEnabledUsersGroupAdditionDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionDetails; + public fun getPaperEnabledUsersGroupRemovalDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalDetails; + public fun getPaperExternalViewAllowDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperExternalViewAllowDetails; + public fun getPaperExternalViewDefaultTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamDetails; + public fun getPaperExternalViewForbidDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperExternalViewForbidDetails; + public fun getPaperFolderChangeSubscriptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionDetails; + public fun getPaperFolderDeletedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderDeletedDetails; + public fun getPaperFolderFollowedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderFollowedDetails; + public fun getPaperFolderTeamInviteDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderTeamInviteDetails; + public fun getPaperPublishedLinkChangePermissionDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionDetails; + public fun getPaperPublishedLinkCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkCreateDetails; + public fun getPaperPublishedLinkDisabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledDetails; + public fun getPaperPublishedLinkViewDetailsValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkViewDetails; + public fun getPasswordChangeDetailsValue ()Lcom/dropbox/core/v2/teamlog/PasswordChangeDetails; + public fun getPasswordResetAllDetailsValue ()Lcom/dropbox/core/v2/teamlog/PasswordResetAllDetails; + public fun getPasswordResetDetailsValue ()Lcom/dropbox/core/v2/teamlog/PasswordResetDetails; + public fun getPasswordStrengthRequirementsChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyDetails; + public fun getPendingSecondaryEmailAddedDetailsValue ()Lcom/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedDetails; + public fun getPermanentDeleteChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyDetails; + public fun getRansomwareAlertCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails; + public fun getRansomwareAlertCreateReportFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails; + public fun getRansomwareRestoreProcessCompletedDetailsValue ()Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedDetails; + public fun getRansomwareRestoreProcessStartedDetailsValue ()Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedDetails; + public fun getReplayFileDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/ReplayFileDeleteDetails; + public fun getReplayFileSharedLinkCreatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedDetails; + public fun getReplayFileSharedLinkModifiedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedDetails; + public fun getReplayProjectTeamAddDetailsValue ()Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamAddDetails; + public fun getReplayProjectTeamDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteDetails; + public fun getResellerSupportChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportChangePolicyDetails; + public fun getResellerSupportSessionEndDetailsValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionEndDetails; + public fun getResellerSupportSessionStartDetailsValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionStartDetails; + public fun getRewindFolderDetailsValue ()Lcom/dropbox/core/v2/teamlog/RewindFolderDetails; + public fun getRewindPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/RewindPolicyChangedDetails; + public fun getSecondaryEmailDeletedDetailsValue ()Lcom/dropbox/core/v2/teamlog/SecondaryEmailDeletedDetails; + public fun getSecondaryEmailVerifiedDetailsValue ()Lcom/dropbox/core/v2/teamlog/SecondaryEmailVerifiedDetails; + public fun getSecondaryMailsPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedDetails; + public fun getSendForSignaturePolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedDetails; + public fun getSfAddGroupDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfAddGroupDetails; + public fun getSfAllowNonMembersToViewSharedLinksDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksDetails; + public fun getSfExternalInviteWarnDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails; + public fun getSfFbInviteChangeRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails; + public fun getSfFbInviteDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfFbInviteDetails; + public fun getSfFbUninviteDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfFbUninviteDetails; + public fun getSfInviteGroupDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfInviteGroupDetails; + public fun getSfTeamGrantAccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfTeamGrantAccessDetails; + public fun getSfTeamInviteChangeRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails; + public fun getSfTeamInviteDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfTeamInviteDetails; + public fun getSfTeamJoinDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfTeamJoinDetails; + public fun getSfTeamJoinFromOobLinkDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails; + public fun getSfTeamUninviteDetailsValue ()Lcom/dropbox/core/v2/teamlog/SfTeamUninviteDetails; + public fun getSharedContentAddInviteesDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddInviteesDetails; + public fun getSharedContentAddLinkExpiryDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryDetails; + public fun getSharedContentAddLinkPasswordDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordDetails; + public fun getSharedContentAddMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddMemberDetails; + public fun getSharedContentChangeDownloadsPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyDetails; + public fun getSharedContentChangeInviteeRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleDetails; + public fun getSharedContentChangeLinkAudienceDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceDetails; + public fun getSharedContentChangeLinkExpiryDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails; + public fun getSharedContentChangeLinkPasswordDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordDetails; + public fun getSharedContentChangeMemberRoleDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleDetails; + public fun getSharedContentChangeViewerInfoPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyDetails; + public fun getSharedContentClaimInvitationDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentClaimInvitationDetails; + public fun getSharedContentCopyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentCopyDetails; + public fun getSharedContentDownloadDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentDownloadDetails; + public fun getSharedContentRelinquishMembershipDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipDetails; + public fun getSharedContentRemoveInviteesDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveInviteesDetails; + public fun getSharedContentRemoveLinkExpiryDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryDetails; + public fun getSharedContentRemoveLinkPasswordDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordDetails; + public fun getSharedContentRemoveMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveMemberDetails; + public fun getSharedContentRequestAccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRequestAccessDetails; + public fun getSharedContentRestoreInviteesDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRestoreInviteesDetails; + public fun getSharedContentRestoreMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRestoreMemberDetails; + public fun getSharedContentUnshareDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentUnshareDetails; + public fun getSharedContentViewDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedContentViewDetails; + public fun getSharedFolderChangeLinkPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyDetails; + public fun getSharedFolderChangeMembersInheritancePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyDetails; + public fun getSharedFolderChangeMembersManagementPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyDetails; + public fun getSharedFolderChangeMembersPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyDetails; + public fun getSharedFolderCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderCreateDetails; + public fun getSharedFolderDeclineInvitationDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails; + public fun getSharedFolderMountDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderMountDetails; + public fun getSharedFolderNestDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails; + public fun getSharedFolderTransferOwnershipDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails; + public fun getSharedFolderUnmountDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountDetails; + public fun getSharedLinkAddExpiryDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkAddExpiryDetails; + public fun getSharedLinkChangeExpiryDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails; + public fun getSharedLinkChangeVisibilityDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityDetails; + public fun getSharedLinkCopyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkCopyDetails; + public fun getSharedLinkCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkCreateDetails; + public fun getSharedLinkDisableDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkDisableDetails; + public fun getSharedLinkDownloadDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkDownloadDetails; + public fun getSharedLinkRemoveExpiryDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryDetails; + public fun getSharedLinkSettingsAddExpirationDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails; + public fun getSharedLinkSettingsAddPasswordDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordDetails; + public fun getSharedLinkSettingsAllowDownloadDisabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledDetails; + public fun getSharedLinkSettingsAllowDownloadEnabledDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledDetails; + public fun getSharedLinkSettingsChangeAudienceDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails; + public fun getSharedLinkSettingsChangeExpirationDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails; + public fun getSharedLinkSettingsChangePasswordDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordDetails; + public fun getSharedLinkSettingsRemoveExpirationDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails; + public fun getSharedLinkSettingsRemovePasswordDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordDetails; + public fun getSharedLinkShareDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkShareDetails; + public fun getSharedLinkViewDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkViewDetails; + public fun getSharedNoteOpenedDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedNoteOpenedDetails; + public fun getSharingChangeFolderJoinPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyDetails; + public fun getSharingChangeLinkAllowChangeExpirationPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyDetails; + public fun getSharingChangeLinkDefaultExpirationPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyDetails; + public fun getSharingChangeLinkEnforcePasswordPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyDetails; + public fun getSharingChangeLinkPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkPolicyDetails; + public fun getSharingChangeMemberPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeMemberPolicyDetails; + public fun getShmodelDisableDownloadsDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShmodelDisableDownloadsDetails; + public fun getShmodelEnableDownloadsDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShmodelEnableDownloadsDetails; + public fun getShmodelGroupShareDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShmodelGroupShareDetails; + public fun getShowcaseAccessGrantedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseAccessGrantedDetails; + public fun getShowcaseAddMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseAddMemberDetails; + public fun getShowcaseArchivedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseArchivedDetails; + public fun getShowcaseChangeDownloadPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyDetails; + public fun getShowcaseChangeEnabledPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyDetails; + public fun getShowcaseChangeExternalSharingPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyDetails; + public fun getShowcaseCreatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseCreatedDetails; + public fun getShowcaseDeleteCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseDeleteCommentDetails; + public fun getShowcaseEditCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseEditCommentDetails; + public fun getShowcaseEditedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseEditedDetails; + public fun getShowcaseFileAddedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileAddedDetails; + public fun getShowcaseFileDownloadDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileDownloadDetails; + public fun getShowcaseFileRemovedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileRemovedDetails; + public fun getShowcaseFileViewDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileViewDetails; + public fun getShowcasePermanentlyDeletedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedDetails; + public fun getShowcasePostCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcasePostCommentDetails; + public fun getShowcaseRemoveMemberDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRemoveMemberDetails; + public fun getShowcaseRenamedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRenamedDetails; + public fun getShowcaseRequestAccessDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRequestAccessDetails; + public fun getShowcaseResolveCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseResolveCommentDetails; + public fun getShowcaseRestoredDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRestoredDetails; + public fun getShowcaseTrashedDeprecatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedDetails; + public fun getShowcaseTrashedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedDetails; + public fun getShowcaseUnresolveCommentDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentDetails; + public fun getShowcaseUntrashedDeprecatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedDetails; + public fun getShowcaseUntrashedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedDetails; + public fun getShowcaseViewDetailsValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseViewDetails; + public fun getSignInAsSessionEndDetailsValue ()Lcom/dropbox/core/v2/teamlog/SignInAsSessionEndDetails; + public fun getSignInAsSessionStartDetailsValue ()Lcom/dropbox/core/v2/teamlog/SignInAsSessionStartDetails; + public fun getSmartSyncChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails; + public fun getSmartSyncCreateAdminPrivilegeReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportDetails; + public fun getSmartSyncNotOptOutDetailsValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncNotOptOutDetails; + public fun getSmartSyncOptOutDetailsValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutDetails; + public fun getSmarterSmartSyncPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedDetails; + public fun getSsoAddCertDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoAddCertDetails; + public fun getSsoAddLoginUrlDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoAddLoginUrlDetails; + public fun getSsoAddLogoutUrlDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoAddLogoutUrlDetails; + public fun getSsoChangeCertDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeCertDetails; + public fun getSsoChangeLoginUrlDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeLoginUrlDetails; + public fun getSsoChangeLogoutUrlDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails; + public fun getSsoChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoChangePolicyDetails; + public fun getSsoChangeSamlIdentityModeDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeDetails; + public fun getSsoErrorDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoErrorDetails; + public fun getSsoRemoveCertDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoRemoveCertDetails; + public fun getSsoRemoveLoginUrlDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoRemoveLoginUrlDetails; + public fun getSsoRemoveLogoutUrlDetailsValue ()Lcom/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlDetails; + public fun getStartedEnterpriseAdminSessionDetailsValue ()Lcom/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionDetails; + public fun getTeamActivityCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportDetails; + public fun getTeamActivityCreateReportFailDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportFailDetails; + public fun getTeamBrandingPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedDetails; + public fun getTeamEncryptionKeyCancelKeyDeletionDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionDetails; + public fun getTeamEncryptionKeyCreateKeyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyDetails; + public fun getTeamEncryptionKeyDeleteKeyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyDetails; + public fun getTeamEncryptionKeyDisableKeyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyDetails; + public fun getTeamEncryptionKeyEnableKeyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyDetails; + public fun getTeamEncryptionKeyRotateKeyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyDetails; + public fun getTeamEncryptionKeyScheduleKeyDeletionDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionDetails; + public fun getTeamExtensionsPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedDetails; + public fun getTeamFolderChangeStatusDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderChangeStatusDetails; + public fun getTeamFolderCreateDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderCreateDetails; + public fun getTeamFolderDowngradeDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderDowngradeDetails; + public fun getTeamFolderPermanentlyDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteDetails; + public fun getTeamFolderRenameDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderRenameDetails; + public fun getTeamMergeFromDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeFromDetails; + public fun getTeamMergeRequestAcceptedDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedDetails; + public fun getTeamMergeRequestAcceptedShownToPrimaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamDetails; + public fun getTeamMergeRequestAcceptedShownToSecondaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamDetails; + public fun getTeamMergeRequestAutoCanceledDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledDetails; + public fun getTeamMergeRequestCanceledDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledDetails; + public fun getTeamMergeRequestCanceledShownToPrimaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamDetails; + public fun getTeamMergeRequestCanceledShownToSecondaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamDetails; + public fun getTeamMergeRequestExpiredDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredDetails; + public fun getTeamMergeRequestExpiredShownToPrimaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamDetails; + public fun getTeamMergeRequestExpiredShownToSecondaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamDetails; + public fun getTeamMergeRequestRejectedShownToPrimaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamDetails; + public fun getTeamMergeRequestRejectedShownToSecondaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamDetails; + public fun getTeamMergeRequestReminderDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderDetails; + public fun getTeamMergeRequestReminderShownToPrimaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamDetails; + public fun getTeamMergeRequestReminderShownToSecondaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamDetails; + public fun getTeamMergeRequestRevokedDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRevokedDetails; + public fun getTeamMergeRequestSentShownToPrimaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamDetails; + public fun getTeamMergeRequestSentShownToSecondaryTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamDetails; + public fun getTeamMergeToDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeToDetails; + public fun getTeamProfileAddBackgroundDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileAddBackgroundDetails; + public fun getTeamProfileAddLogoDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileAddLogoDetails; + public fun getTeamProfileChangeBackgroundDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundDetails; + public fun getTeamProfileChangeDefaultLanguageDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageDetails; + public fun getTeamProfileChangeLogoDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeLogoDetails; + public fun getTeamProfileChangeNameDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeNameDetails; + public fun getTeamProfileRemoveBackgroundDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundDetails; + public fun getTeamProfileRemoveLogoDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveLogoDetails; + public fun getTeamSelectiveSyncPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedDetails; + public fun getTeamSelectiveSyncSettingsChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedDetails; + public fun getTeamSharingWhitelistSubjectsChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedDetails; + public fun getTfaAddBackupPhoneDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaAddBackupPhoneDetails; + public fun getTfaAddExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaAddExceptionDetails; + public fun getTfaAddSecurityKeyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaAddSecurityKeyDetails; + public fun getTfaChangeBackupPhoneDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaChangeBackupPhoneDetails; + public fun getTfaChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaChangePolicyDetails; + public fun getTfaChangeStatusDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaChangeStatusDetails; + public fun getTfaRemoveBackupPhoneDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneDetails; + public fun getTfaRemoveExceptionDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaRemoveExceptionDetails; + public fun getTfaRemoveSecurityKeyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyDetails; + public fun getTfaResetDetailsValue ()Lcom/dropbox/core/v2/teamlog/TfaResetDetails; + public fun getTwoAccountChangePolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/TwoAccountChangePolicyDetails; + public fun getUndoNamingConventionDetailsValue ()Lcom/dropbox/core/v2/teamlog/UndoNamingConventionDetails; + public fun getUndoOrganizeFolderWithTidyDetailsValue ()Lcom/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyDetails; + public fun getUserTagsAddedDetailsValue ()Lcom/dropbox/core/v2/teamlog/UserTagsAddedDetails; + public fun getUserTagsRemovedDetailsValue ()Lcom/dropbox/core/v2/teamlog/UserTagsRemovedDetails; + public fun getViewerInfoPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedDetails; + public fun getWatermarkingPolicyChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/WatermarkingPolicyChangedDetails; + public fun getWebSessionsChangeActiveSessionLimitDetailsValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitDetails; + public fun getWebSessionsChangeFixedLengthPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails; + public fun getWebSessionsChangeIdleLengthPolicyDetailsValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails; + public static fun googleSsoChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/GoogleSsoChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyAddFolderFailedDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyAddFoldersDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyContentDisposedDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyCreateDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyDeleteDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyEditDetailsDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyEditDurationDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDurationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyExportCreatedDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyExportRemovedDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyRemoveFoldersDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyReportCreatedDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun governancePolicyZipPartDownloadedDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupAddExternalIdDetails (Lcom/dropbox/core/v2/teamlog/GroupAddExternalIdDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupAddMemberDetails (Lcom/dropbox/core/v2/teamlog/GroupAddMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupChangeExternalIdDetails (Lcom/dropbox/core/v2/teamlog/GroupChangeExternalIdDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupChangeManagementTypeDetails (Lcom/dropbox/core/v2/teamlog/GroupChangeManagementTypeDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupChangeMemberRoleDetails (Lcom/dropbox/core/v2/teamlog/GroupChangeMemberRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupCreateDetails (Lcom/dropbox/core/v2/teamlog/GroupCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupDeleteDetails (Lcom/dropbox/core/v2/teamlog/GroupDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupDescriptionUpdatedDetails (Lcom/dropbox/core/v2/teamlog/GroupDescriptionUpdatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupJoinPolicyUpdatedDetails (Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupMovedDetails (Lcom/dropbox/core/v2/teamlog/GroupMovedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupRemoveExternalIdDetails (Lcom/dropbox/core/v2/teamlog/GroupRemoveExternalIdDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupRemoveMemberDetails (Lcom/dropbox/core/v2/teamlog/GroupRemoveMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupRenameDetails (Lcom/dropbox/core/v2/teamlog/GroupRenameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun groupUserManagementChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun guestAdminChangeStatusDetails (Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun guestAdminSignedInViaTrustedTeamsDetails (Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun guestAdminSignedOutViaTrustedTeamsDetails (Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public fun hashCode ()I + public static fun integrationConnectedDetails (Lcom/dropbox/core/v2/teamlog/IntegrationConnectedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun integrationDisconnectedDetails (Lcom/dropbox/core/v2/teamlog/IntegrationDisconnectedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun integrationPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/IntegrationPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun inviteAcceptanceEmailPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public fun isAccountCaptureChangeAvailabilityDetails ()Z + public fun isAccountCaptureChangePolicyDetails ()Z + public fun isAccountCaptureMigrateAccountDetails ()Z + public fun isAccountCaptureNotificationEmailsSentDetails ()Z + public fun isAccountCaptureRelinquishAccountDetails ()Z + public fun isAccountLockOrUnlockedDetails ()Z + public fun isAdminAlertingAlertStateChangedDetails ()Z + public fun isAdminAlertingChangedAlertConfigDetails ()Z + public fun isAdminAlertingTriggeredAlertDetails ()Z + public fun isAdminEmailRemindersChangedDetails ()Z + public fun isAllowDownloadDisabledDetails ()Z + public fun isAllowDownloadEnabledDetails ()Z + public fun isAppBlockedByPermissionsDetails ()Z + public fun isAppLinkTeamDetails ()Z + public fun isAppLinkUserDetails ()Z + public fun isAppPermissionsChangedDetails ()Z + public fun isAppUnlinkTeamDetails ()Z + public fun isAppUnlinkUserDetails ()Z + public fun isApplyNamingConventionDetails ()Z + public fun isBackupAdminInvitationSentDetails ()Z + public fun isBackupInvitationOpenedDetails ()Z + public fun isBinderAddPageDetails ()Z + public fun isBinderAddSectionDetails ()Z + public fun isBinderRemovePageDetails ()Z + public fun isBinderRemoveSectionDetails ()Z + public fun isBinderRenamePageDetails ()Z + public fun isBinderRenameSectionDetails ()Z + public fun isBinderReorderPageDetails ()Z + public fun isBinderReorderSectionDetails ()Z + public fun isCameraUploadsPolicyChangedDetails ()Z + public fun isCaptureTranscriptPolicyChangedDetails ()Z + public fun isChangedEnterpriseAdminRoleDetails ()Z + public fun isChangedEnterpriseConnectedTeamStatusDetails ()Z + public fun isClassificationChangePolicyDetails ()Z + public fun isClassificationCreateReportDetails ()Z + public fun isClassificationCreateReportFailDetails ()Z + public fun isCollectionShareDetails ()Z + public fun isComputerBackupPolicyChangedDetails ()Z + public fun isContentAdministrationPolicyChangedDetails ()Z + public fun isCreateFolderDetails ()Z + public fun isCreateTeamInviteLinkDetails ()Z + public fun isDataPlacementRestrictionChangePolicyDetails ()Z + public fun isDataPlacementRestrictionSatisfyPolicyDetails ()Z + public fun isDataResidencyMigrationRequestSuccessfulDetails ()Z + public fun isDataResidencyMigrationRequestUnsuccessfulDetails ()Z + public fun isDeleteTeamInviteLinkDetails ()Z + public fun isDeviceApprovalsAddExceptionDetails ()Z + public fun isDeviceApprovalsChangeDesktopPolicyDetails ()Z + public fun isDeviceApprovalsChangeMobilePolicyDetails ()Z + public fun isDeviceApprovalsChangeOverageActionDetails ()Z + public fun isDeviceApprovalsChangeUnlinkActionDetails ()Z + public fun isDeviceApprovalsRemoveExceptionDetails ()Z + public fun isDeviceChangeIpDesktopDetails ()Z + public fun isDeviceChangeIpMobileDetails ()Z + public fun isDeviceChangeIpWebDetails ()Z + public fun isDeviceDeleteOnUnlinkFailDetails ()Z + public fun isDeviceDeleteOnUnlinkSuccessDetails ()Z + public fun isDeviceLinkFailDetails ()Z + public fun isDeviceLinkSuccessDetails ()Z + public fun isDeviceManagementDisabledDetails ()Z + public fun isDeviceManagementEnabledDetails ()Z + public fun isDeviceSyncBackupStatusChangedDetails ()Z + public fun isDeviceUnlinkDetails ()Z + public fun isDirectoryRestrictionsAddMembersDetails ()Z + public fun isDirectoryRestrictionsRemoveMembersDetails ()Z + public fun isDisabledDomainInvitesDetails ()Z + public fun isDomainInvitesApproveRequestToJoinTeamDetails ()Z + public fun isDomainInvitesDeclineRequestToJoinTeamDetails ()Z + public fun isDomainInvitesEmailExistingUsersDetails ()Z + public fun isDomainInvitesRequestToJoinTeamDetails ()Z + public fun isDomainInvitesSetInviteNewUserPrefToNoDetails ()Z + public fun isDomainInvitesSetInviteNewUserPrefToYesDetails ()Z + public fun isDomainVerificationAddDomainFailDetails ()Z + public fun isDomainVerificationAddDomainSuccessDetails ()Z + public fun isDomainVerificationRemoveDomainDetails ()Z + public fun isDropboxPasswordsExportedDetails ()Z + public fun isDropboxPasswordsNewDeviceEnrolledDetails ()Z + public fun isDropboxPasswordsPolicyChangedDetails ()Z + public fun isEmailIngestPolicyChangedDetails ()Z + public fun isEmailIngestReceiveFileDetails ()Z + public fun isEmmAddExceptionDetails ()Z + public fun isEmmChangePolicyDetails ()Z + public fun isEmmCreateExceptionsReportDetails ()Z + public fun isEmmCreateUsageReportDetails ()Z + public fun isEmmErrorDetails ()Z + public fun isEmmRefreshAuthTokenDetails ()Z + public fun isEmmRemoveExceptionDetails ()Z + public fun isEnabledDomainInvitesDetails ()Z + public fun isEndedEnterpriseAdminSessionDeprecatedDetails ()Z + public fun isEndedEnterpriseAdminSessionDetails ()Z + public fun isEnterpriseSettingsLockingDetails ()Z + public fun isExportMembersReportDetails ()Z + public fun isExportMembersReportFailDetails ()Z + public fun isExtendedVersionHistoryChangePolicyDetails ()Z + public fun isExternalDriveBackupEligibilityStatusCheckedDetails ()Z + public fun isExternalDriveBackupPolicyChangedDetails ()Z + public fun isExternalDriveBackupStatusChangedDetails ()Z + public fun isExternalSharingCreateReportDetails ()Z + public fun isExternalSharingReportFailedDetails ()Z + public fun isFileAddCommentDetails ()Z + public fun isFileAddDetails ()Z + public fun isFileAddFromAutomationDetails ()Z + public fun isFileChangeCommentSubscriptionDetails ()Z + public fun isFileCommentsChangePolicyDetails ()Z + public fun isFileCopyDetails ()Z + public fun isFileDeleteCommentDetails ()Z + public fun isFileDeleteDetails ()Z + public fun isFileDownloadDetails ()Z + public fun isFileEditCommentDetails ()Z + public fun isFileEditDetails ()Z + public fun isFileGetCopyReferenceDetails ()Z + public fun isFileLikeCommentDetails ()Z + public fun isFileLockingLockStatusChangedDetails ()Z + public fun isFileLockingPolicyChangedDetails ()Z + public fun isFileMoveDetails ()Z + public fun isFilePermanentlyDeleteDetails ()Z + public fun isFilePreviewDetails ()Z + public fun isFileProviderMigrationPolicyChangedDetails ()Z + public fun isFileRenameDetails ()Z + public fun isFileRequestChangeDetails ()Z + public fun isFileRequestCloseDetails ()Z + public fun isFileRequestCreateDetails ()Z + public fun isFileRequestDeleteDetails ()Z + public fun isFileRequestReceiveFileDetails ()Z + public fun isFileRequestsChangePolicyDetails ()Z + public fun isFileRequestsEmailsEnabledDetails ()Z + public fun isFileRequestsEmailsRestrictedToTeamOnlyDetails ()Z + public fun isFileResolveCommentDetails ()Z + public fun isFileRestoreDetails ()Z + public fun isFileRevertDetails ()Z + public fun isFileRollbackChangesDetails ()Z + public fun isFileSaveCopyReferenceDetails ()Z + public fun isFileTransfersFileAddDetails ()Z + public fun isFileTransfersPolicyChangedDetails ()Z + public fun isFileTransfersTransferDeleteDetails ()Z + public fun isFileTransfersTransferDownloadDetails ()Z + public fun isFileTransfersTransferSendDetails ()Z + public fun isFileTransfersTransferViewDetails ()Z + public fun isFileUnlikeCommentDetails ()Z + public fun isFileUnresolveCommentDetails ()Z + public fun isFolderLinkRestrictionPolicyChangedDetails ()Z + public fun isFolderOverviewDescriptionChangedDetails ()Z + public fun isFolderOverviewItemPinnedDetails ()Z + public fun isFolderOverviewItemUnpinnedDetails ()Z + public fun isGoogleSsoChangePolicyDetails ()Z + public fun isGovernancePolicyAddFolderFailedDetails ()Z + public fun isGovernancePolicyAddFoldersDetails ()Z + public fun isGovernancePolicyContentDisposedDetails ()Z + public fun isGovernancePolicyCreateDetails ()Z + public fun isGovernancePolicyDeleteDetails ()Z + public fun isGovernancePolicyEditDetailsDetails ()Z + public fun isGovernancePolicyEditDurationDetails ()Z + public fun isGovernancePolicyExportCreatedDetails ()Z + public fun isGovernancePolicyExportRemovedDetails ()Z + public fun isGovernancePolicyRemoveFoldersDetails ()Z + public fun isGovernancePolicyReportCreatedDetails ()Z + public fun isGovernancePolicyZipPartDownloadedDetails ()Z + public fun isGroupAddExternalIdDetails ()Z + public fun isGroupAddMemberDetails ()Z + public fun isGroupChangeExternalIdDetails ()Z + public fun isGroupChangeManagementTypeDetails ()Z + public fun isGroupChangeMemberRoleDetails ()Z + public fun isGroupCreateDetails ()Z + public fun isGroupDeleteDetails ()Z + public fun isGroupDescriptionUpdatedDetails ()Z + public fun isGroupJoinPolicyUpdatedDetails ()Z + public fun isGroupMovedDetails ()Z + public fun isGroupRemoveExternalIdDetails ()Z + public fun isGroupRemoveMemberDetails ()Z + public fun isGroupRenameDetails ()Z + public fun isGroupUserManagementChangePolicyDetails ()Z + public fun isGuestAdminChangeStatusDetails ()Z + public fun isGuestAdminSignedInViaTrustedTeamsDetails ()Z + public fun isGuestAdminSignedOutViaTrustedTeamsDetails ()Z + public fun isIntegrationConnectedDetails ()Z + public fun isIntegrationDisconnectedDetails ()Z + public fun isIntegrationPolicyChangedDetails ()Z + public fun isInviteAcceptanceEmailPolicyChangedDetails ()Z + public fun isLegalHoldsActivateAHoldDetails ()Z + public fun isLegalHoldsAddMembersDetails ()Z + public fun isLegalHoldsChangeHoldDetailsDetails ()Z + public fun isLegalHoldsChangeHoldNameDetails ()Z + public fun isLegalHoldsExportAHoldDetails ()Z + public fun isLegalHoldsExportCancelledDetails ()Z + public fun isLegalHoldsExportDownloadedDetails ()Z + public fun isLegalHoldsExportRemovedDetails ()Z + public fun isLegalHoldsReleaseAHoldDetails ()Z + public fun isLegalHoldsRemoveMembersDetails ()Z + public fun isLegalHoldsReportAHoldDetails ()Z + public fun isLoginFailDetails ()Z + public fun isLoginSuccessDetails ()Z + public fun isLogoutDetails ()Z + public fun isMemberAddExternalIdDetails ()Z + public fun isMemberAddNameDetails ()Z + public fun isMemberChangeAdminRoleDetails ()Z + public fun isMemberChangeEmailDetails ()Z + public fun isMemberChangeExternalIdDetails ()Z + public fun isMemberChangeMembershipTypeDetails ()Z + public fun isMemberChangeNameDetails ()Z + public fun isMemberChangeResellerRoleDetails ()Z + public fun isMemberChangeStatusDetails ()Z + public fun isMemberDeleteManualContactsDetails ()Z + public fun isMemberDeleteProfilePhotoDetails ()Z + public fun isMemberPermanentlyDeleteAccountContentsDetails ()Z + public fun isMemberRemoveExternalIdDetails ()Z + public fun isMemberRequestsChangePolicyDetails ()Z + public fun isMemberSendInvitePolicyChangedDetails ()Z + public fun isMemberSetProfilePhotoDetails ()Z + public fun isMemberSpaceLimitsAddCustomQuotaDetails ()Z + public fun isMemberSpaceLimitsAddExceptionDetails ()Z + public fun isMemberSpaceLimitsChangeCapsTypePolicyDetails ()Z + public fun isMemberSpaceLimitsChangeCustomQuotaDetails ()Z + public fun isMemberSpaceLimitsChangePolicyDetails ()Z + public fun isMemberSpaceLimitsChangeStatusDetails ()Z + public fun isMemberSpaceLimitsRemoveCustomQuotaDetails ()Z + public fun isMemberSpaceLimitsRemoveExceptionDetails ()Z + public fun isMemberSuggestDetails ()Z + public fun isMemberSuggestionsChangePolicyDetails ()Z + public fun isMemberTransferAccountContentsDetails ()Z + public fun isMicrosoftOfficeAddinChangePolicyDetails ()Z + public fun isMissingDetails ()Z + public fun isNetworkControlChangePolicyDetails ()Z + public fun isNoExpirationLinkGenCreateReportDetails ()Z + public fun isNoExpirationLinkGenReportFailedDetails ()Z + public fun isNoPasswordLinkGenCreateReportDetails ()Z + public fun isNoPasswordLinkGenReportFailedDetails ()Z + public fun isNoPasswordLinkViewCreateReportDetails ()Z + public fun isNoPasswordLinkViewReportFailedDetails ()Z + public fun isNoteAclInviteOnlyDetails ()Z + public fun isNoteAclLinkDetails ()Z + public fun isNoteAclTeamLinkDetails ()Z + public fun isNoteShareReceiveDetails ()Z + public fun isNoteSharedDetails ()Z + public fun isObjectLabelAddedDetails ()Z + public fun isObjectLabelRemovedDetails ()Z + public fun isObjectLabelUpdatedValueDetails ()Z + public fun isOpenNoteSharedDetails ()Z + public fun isOrganizeFolderWithTidyDetails ()Z + public fun isOther ()Z + public fun isOutdatedLinkViewCreateReportDetails ()Z + public fun isOutdatedLinkViewReportFailedDetails ()Z + public fun isPaperAdminExportStartDetails ()Z + public fun isPaperChangeDeploymentPolicyDetails ()Z + public fun isPaperChangeMemberLinkPolicyDetails ()Z + public fun isPaperChangeMemberPolicyDetails ()Z + public fun isPaperChangePolicyDetails ()Z + public fun isPaperContentAddMemberDetails ()Z + public fun isPaperContentAddToFolderDetails ()Z + public fun isPaperContentArchiveDetails ()Z + public fun isPaperContentCreateDetails ()Z + public fun isPaperContentPermanentlyDeleteDetails ()Z + public fun isPaperContentRemoveFromFolderDetails ()Z + public fun isPaperContentRemoveMemberDetails ()Z + public fun isPaperContentRenameDetails ()Z + public fun isPaperContentRestoreDetails ()Z + public fun isPaperDefaultFolderPolicyChangedDetails ()Z + public fun isPaperDesktopPolicyChangedDetails ()Z + public fun isPaperDocAddCommentDetails ()Z + public fun isPaperDocChangeMemberRoleDetails ()Z + public fun isPaperDocChangeSharingPolicyDetails ()Z + public fun isPaperDocChangeSubscriptionDetails ()Z + public fun isPaperDocDeleteCommentDetails ()Z + public fun isPaperDocDeletedDetails ()Z + public fun isPaperDocDownloadDetails ()Z + public fun isPaperDocEditCommentDetails ()Z + public fun isPaperDocEditDetails ()Z + public fun isPaperDocFollowedDetails ()Z + public fun isPaperDocMentionDetails ()Z + public fun isPaperDocOwnershipChangedDetails ()Z + public fun isPaperDocRequestAccessDetails ()Z + public fun isPaperDocResolveCommentDetails ()Z + public fun isPaperDocRevertDetails ()Z + public fun isPaperDocSlackShareDetails ()Z + public fun isPaperDocTeamInviteDetails ()Z + public fun isPaperDocTrashedDetails ()Z + public fun isPaperDocUnresolveCommentDetails ()Z + public fun isPaperDocUntrashedDetails ()Z + public fun isPaperDocViewDetails ()Z + public fun isPaperEnabledUsersGroupAdditionDetails ()Z + public fun isPaperEnabledUsersGroupRemovalDetails ()Z + public fun isPaperExternalViewAllowDetails ()Z + public fun isPaperExternalViewDefaultTeamDetails ()Z + public fun isPaperExternalViewForbidDetails ()Z + public fun isPaperFolderChangeSubscriptionDetails ()Z + public fun isPaperFolderDeletedDetails ()Z + public fun isPaperFolderFollowedDetails ()Z + public fun isPaperFolderTeamInviteDetails ()Z + public fun isPaperPublishedLinkChangePermissionDetails ()Z + public fun isPaperPublishedLinkCreateDetails ()Z + public fun isPaperPublishedLinkDisabledDetails ()Z + public fun isPaperPublishedLinkViewDetails ()Z + public fun isPasswordChangeDetails ()Z + public fun isPasswordResetAllDetails ()Z + public fun isPasswordResetDetails ()Z + public fun isPasswordStrengthRequirementsChangePolicyDetails ()Z + public fun isPendingSecondaryEmailAddedDetails ()Z + public fun isPermanentDeleteChangePolicyDetails ()Z + public fun isRansomwareAlertCreateReportDetails ()Z + public fun isRansomwareAlertCreateReportFailedDetails ()Z + public fun isRansomwareRestoreProcessCompletedDetails ()Z + public fun isRansomwareRestoreProcessStartedDetails ()Z + public fun isReplayFileDeleteDetails ()Z + public fun isReplayFileSharedLinkCreatedDetails ()Z + public fun isReplayFileSharedLinkModifiedDetails ()Z + public fun isReplayProjectTeamAddDetails ()Z + public fun isReplayProjectTeamDeleteDetails ()Z + public fun isResellerSupportChangePolicyDetails ()Z + public fun isResellerSupportSessionEndDetails ()Z + public fun isResellerSupportSessionStartDetails ()Z + public fun isRewindFolderDetails ()Z + public fun isRewindPolicyChangedDetails ()Z + public fun isSecondaryEmailDeletedDetails ()Z + public fun isSecondaryEmailVerifiedDetails ()Z + public fun isSecondaryMailsPolicyChangedDetails ()Z + public fun isSendForSignaturePolicyChangedDetails ()Z + public fun isSfAddGroupDetails ()Z + public fun isSfAllowNonMembersToViewSharedLinksDetails ()Z + public fun isSfExternalInviteWarnDetails ()Z + public fun isSfFbInviteChangeRoleDetails ()Z + public fun isSfFbInviteDetails ()Z + public fun isSfFbUninviteDetails ()Z + public fun isSfInviteGroupDetails ()Z + public fun isSfTeamGrantAccessDetails ()Z + public fun isSfTeamInviteChangeRoleDetails ()Z + public fun isSfTeamInviteDetails ()Z + public fun isSfTeamJoinDetails ()Z + public fun isSfTeamJoinFromOobLinkDetails ()Z + public fun isSfTeamUninviteDetails ()Z + public fun isSharedContentAddInviteesDetails ()Z + public fun isSharedContentAddLinkExpiryDetails ()Z + public fun isSharedContentAddLinkPasswordDetails ()Z + public fun isSharedContentAddMemberDetails ()Z + public fun isSharedContentChangeDownloadsPolicyDetails ()Z + public fun isSharedContentChangeInviteeRoleDetails ()Z + public fun isSharedContentChangeLinkAudienceDetails ()Z + public fun isSharedContentChangeLinkExpiryDetails ()Z + public fun isSharedContentChangeLinkPasswordDetails ()Z + public fun isSharedContentChangeMemberRoleDetails ()Z + public fun isSharedContentChangeViewerInfoPolicyDetails ()Z + public fun isSharedContentClaimInvitationDetails ()Z + public fun isSharedContentCopyDetails ()Z + public fun isSharedContentDownloadDetails ()Z + public fun isSharedContentRelinquishMembershipDetails ()Z + public fun isSharedContentRemoveInviteesDetails ()Z + public fun isSharedContentRemoveLinkExpiryDetails ()Z + public fun isSharedContentRemoveLinkPasswordDetails ()Z + public fun isSharedContentRemoveMemberDetails ()Z + public fun isSharedContentRequestAccessDetails ()Z + public fun isSharedContentRestoreInviteesDetails ()Z + public fun isSharedContentRestoreMemberDetails ()Z + public fun isSharedContentUnshareDetails ()Z + public fun isSharedContentViewDetails ()Z + public fun isSharedFolderChangeLinkPolicyDetails ()Z + public fun isSharedFolderChangeMembersInheritancePolicyDetails ()Z + public fun isSharedFolderChangeMembersManagementPolicyDetails ()Z + public fun isSharedFolderChangeMembersPolicyDetails ()Z + public fun isSharedFolderCreateDetails ()Z + public fun isSharedFolderDeclineInvitationDetails ()Z + public fun isSharedFolderMountDetails ()Z + public fun isSharedFolderNestDetails ()Z + public fun isSharedFolderTransferOwnershipDetails ()Z + public fun isSharedFolderUnmountDetails ()Z + public fun isSharedLinkAddExpiryDetails ()Z + public fun isSharedLinkChangeExpiryDetails ()Z + public fun isSharedLinkChangeVisibilityDetails ()Z + public fun isSharedLinkCopyDetails ()Z + public fun isSharedLinkCreateDetails ()Z + public fun isSharedLinkDisableDetails ()Z + public fun isSharedLinkDownloadDetails ()Z + public fun isSharedLinkRemoveExpiryDetails ()Z + public fun isSharedLinkSettingsAddExpirationDetails ()Z + public fun isSharedLinkSettingsAddPasswordDetails ()Z + public fun isSharedLinkSettingsAllowDownloadDisabledDetails ()Z + public fun isSharedLinkSettingsAllowDownloadEnabledDetails ()Z + public fun isSharedLinkSettingsChangeAudienceDetails ()Z + public fun isSharedLinkSettingsChangeExpirationDetails ()Z + public fun isSharedLinkSettingsChangePasswordDetails ()Z + public fun isSharedLinkSettingsRemoveExpirationDetails ()Z + public fun isSharedLinkSettingsRemovePasswordDetails ()Z + public fun isSharedLinkShareDetails ()Z + public fun isSharedLinkViewDetails ()Z + public fun isSharedNoteOpenedDetails ()Z + public fun isSharingChangeFolderJoinPolicyDetails ()Z + public fun isSharingChangeLinkAllowChangeExpirationPolicyDetails ()Z + public fun isSharingChangeLinkDefaultExpirationPolicyDetails ()Z + public fun isSharingChangeLinkEnforcePasswordPolicyDetails ()Z + public fun isSharingChangeLinkPolicyDetails ()Z + public fun isSharingChangeMemberPolicyDetails ()Z + public fun isShmodelDisableDownloadsDetails ()Z + public fun isShmodelEnableDownloadsDetails ()Z + public fun isShmodelGroupShareDetails ()Z + public fun isShowcaseAccessGrantedDetails ()Z + public fun isShowcaseAddMemberDetails ()Z + public fun isShowcaseArchivedDetails ()Z + public fun isShowcaseChangeDownloadPolicyDetails ()Z + public fun isShowcaseChangeEnabledPolicyDetails ()Z + public fun isShowcaseChangeExternalSharingPolicyDetails ()Z + public fun isShowcaseCreatedDetails ()Z + public fun isShowcaseDeleteCommentDetails ()Z + public fun isShowcaseEditCommentDetails ()Z + public fun isShowcaseEditedDetails ()Z + public fun isShowcaseFileAddedDetails ()Z + public fun isShowcaseFileDownloadDetails ()Z + public fun isShowcaseFileRemovedDetails ()Z + public fun isShowcaseFileViewDetails ()Z + public fun isShowcasePermanentlyDeletedDetails ()Z + public fun isShowcasePostCommentDetails ()Z + public fun isShowcaseRemoveMemberDetails ()Z + public fun isShowcaseRenamedDetails ()Z + public fun isShowcaseRequestAccessDetails ()Z + public fun isShowcaseResolveCommentDetails ()Z + public fun isShowcaseRestoredDetails ()Z + public fun isShowcaseTrashedDeprecatedDetails ()Z + public fun isShowcaseTrashedDetails ()Z + public fun isShowcaseUnresolveCommentDetails ()Z + public fun isShowcaseUntrashedDeprecatedDetails ()Z + public fun isShowcaseUntrashedDetails ()Z + public fun isShowcaseViewDetails ()Z + public fun isSignInAsSessionEndDetails ()Z + public fun isSignInAsSessionStartDetails ()Z + public fun isSmartSyncChangePolicyDetails ()Z + public fun isSmartSyncCreateAdminPrivilegeReportDetails ()Z + public fun isSmartSyncNotOptOutDetails ()Z + public fun isSmartSyncOptOutDetails ()Z + public fun isSmarterSmartSyncPolicyChangedDetails ()Z + public fun isSsoAddCertDetails ()Z + public fun isSsoAddLoginUrlDetails ()Z + public fun isSsoAddLogoutUrlDetails ()Z + public fun isSsoChangeCertDetails ()Z + public fun isSsoChangeLoginUrlDetails ()Z + public fun isSsoChangeLogoutUrlDetails ()Z + public fun isSsoChangePolicyDetails ()Z + public fun isSsoChangeSamlIdentityModeDetails ()Z + public fun isSsoErrorDetails ()Z + public fun isSsoRemoveCertDetails ()Z + public fun isSsoRemoveLoginUrlDetails ()Z + public fun isSsoRemoveLogoutUrlDetails ()Z + public fun isStartedEnterpriseAdminSessionDetails ()Z + public fun isTeamActivityCreateReportDetails ()Z + public fun isTeamActivityCreateReportFailDetails ()Z + public fun isTeamBrandingPolicyChangedDetails ()Z + public fun isTeamEncryptionKeyCancelKeyDeletionDetails ()Z + public fun isTeamEncryptionKeyCreateKeyDetails ()Z + public fun isTeamEncryptionKeyDeleteKeyDetails ()Z + public fun isTeamEncryptionKeyDisableKeyDetails ()Z + public fun isTeamEncryptionKeyEnableKeyDetails ()Z + public fun isTeamEncryptionKeyRotateKeyDetails ()Z + public fun isTeamEncryptionKeyScheduleKeyDeletionDetails ()Z + public fun isTeamExtensionsPolicyChangedDetails ()Z + public fun isTeamFolderChangeStatusDetails ()Z + public fun isTeamFolderCreateDetails ()Z + public fun isTeamFolderDowngradeDetails ()Z + public fun isTeamFolderPermanentlyDeleteDetails ()Z + public fun isTeamFolderRenameDetails ()Z + public fun isTeamMergeFromDetails ()Z + public fun isTeamMergeRequestAcceptedDetails ()Z + public fun isTeamMergeRequestAcceptedShownToPrimaryTeamDetails ()Z + public fun isTeamMergeRequestAcceptedShownToSecondaryTeamDetails ()Z + public fun isTeamMergeRequestAutoCanceledDetails ()Z + public fun isTeamMergeRequestCanceledDetails ()Z + public fun isTeamMergeRequestCanceledShownToPrimaryTeamDetails ()Z + public fun isTeamMergeRequestCanceledShownToSecondaryTeamDetails ()Z + public fun isTeamMergeRequestExpiredDetails ()Z + public fun isTeamMergeRequestExpiredShownToPrimaryTeamDetails ()Z + public fun isTeamMergeRequestExpiredShownToSecondaryTeamDetails ()Z + public fun isTeamMergeRequestRejectedShownToPrimaryTeamDetails ()Z + public fun isTeamMergeRequestRejectedShownToSecondaryTeamDetails ()Z + public fun isTeamMergeRequestReminderDetails ()Z + public fun isTeamMergeRequestReminderShownToPrimaryTeamDetails ()Z + public fun isTeamMergeRequestReminderShownToSecondaryTeamDetails ()Z + public fun isTeamMergeRequestRevokedDetails ()Z + public fun isTeamMergeRequestSentShownToPrimaryTeamDetails ()Z + public fun isTeamMergeRequestSentShownToSecondaryTeamDetails ()Z + public fun isTeamMergeToDetails ()Z + public fun isTeamProfileAddBackgroundDetails ()Z + public fun isTeamProfileAddLogoDetails ()Z + public fun isTeamProfileChangeBackgroundDetails ()Z + public fun isTeamProfileChangeDefaultLanguageDetails ()Z + public fun isTeamProfileChangeLogoDetails ()Z + public fun isTeamProfileChangeNameDetails ()Z + public fun isTeamProfileRemoveBackgroundDetails ()Z + public fun isTeamProfileRemoveLogoDetails ()Z + public fun isTeamSelectiveSyncPolicyChangedDetails ()Z + public fun isTeamSelectiveSyncSettingsChangedDetails ()Z + public fun isTeamSharingWhitelistSubjectsChangedDetails ()Z + public fun isTfaAddBackupPhoneDetails ()Z + public fun isTfaAddExceptionDetails ()Z + public fun isTfaAddSecurityKeyDetails ()Z + public fun isTfaChangeBackupPhoneDetails ()Z + public fun isTfaChangePolicyDetails ()Z + public fun isTfaChangeStatusDetails ()Z + public fun isTfaRemoveBackupPhoneDetails ()Z + public fun isTfaRemoveExceptionDetails ()Z + public fun isTfaRemoveSecurityKeyDetails ()Z + public fun isTfaResetDetails ()Z + public fun isTwoAccountChangePolicyDetails ()Z + public fun isUndoNamingConventionDetails ()Z + public fun isUndoOrganizeFolderWithTidyDetails ()Z + public fun isUserTagsAddedDetails ()Z + public fun isUserTagsRemovedDetails ()Z + public fun isViewerInfoPolicyChangedDetails ()Z + public fun isWatermarkingPolicyChangedDetails ()Z + public fun isWebSessionsChangeActiveSessionLimitDetails ()Z + public fun isWebSessionsChangeFixedLengthPolicyDetails ()Z + public fun isWebSessionsChangeIdleLengthPolicyDetails ()Z + public static fun legalHoldsActivateAHoldDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsAddMembersDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsAddMembersDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsChangeHoldDetailsDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsChangeHoldNameDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsExportAHoldDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportAHoldDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsExportCancelledDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportCancelledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsExportDownloadedDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsExportRemovedDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportRemovedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsReleaseAHoldDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsRemoveMembersDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun legalHoldsReportAHoldDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsReportAHoldDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun loginFailDetails (Lcom/dropbox/core/v2/teamlog/LoginFailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun loginSuccessDetails (Lcom/dropbox/core/v2/teamlog/LoginSuccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun logoutDetails (Lcom/dropbox/core/v2/teamlog/LogoutDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberAddExternalIdDetails (Lcom/dropbox/core/v2/teamlog/MemberAddExternalIdDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberAddNameDetails (Lcom/dropbox/core/v2/teamlog/MemberAddNameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberChangeAdminRoleDetails (Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberChangeEmailDetails (Lcom/dropbox/core/v2/teamlog/MemberChangeEmailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberChangeExternalIdDetails (Lcom/dropbox/core/v2/teamlog/MemberChangeExternalIdDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberChangeMembershipTypeDetails (Lcom/dropbox/core/v2/teamlog/MemberChangeMembershipTypeDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberChangeNameDetails (Lcom/dropbox/core/v2/teamlog/MemberChangeNameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberChangeResellerRoleDetails (Lcom/dropbox/core/v2/teamlog/MemberChangeResellerRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberChangeStatusDetails (Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberDeleteManualContactsDetails (Lcom/dropbox/core/v2/teamlog/MemberDeleteManualContactsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberDeleteProfilePhotoDetails (Lcom/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberPermanentlyDeleteAccountContentsDetails (Lcom/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberRemoveExternalIdDetails (Lcom/dropbox/core/v2/teamlog/MemberRemoveExternalIdDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberRequestsChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/MemberRequestsChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSendInvitePolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSetProfilePhotoDetails (Lcom/dropbox/core/v2/teamlog/MemberSetProfilePhotoDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsAddCustomQuotaDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsAddExceptionDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsChangeCapsTypePolicyDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsChangeCustomQuotaDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsChangeStatusDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsRemoveCustomQuotaDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSpaceLimitsRemoveExceptionDetails (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSuggestDetails (Lcom/dropbox/core/v2/teamlog/MemberSuggestDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberSuggestionsChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun memberTransferAccountContentsDetails (Lcom/dropbox/core/v2/teamlog/MemberTransferAccountContentsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun microsoftOfficeAddinChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun missingDetails (Lcom/dropbox/core/v2/teamlog/MissingDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun networkControlChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/NetworkControlChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noExpirationLinkGenCreateReportDetails (Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noExpirationLinkGenReportFailedDetails (Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noPasswordLinkGenCreateReportDetails (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noPasswordLinkGenReportFailedDetails (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noPasswordLinkViewCreateReportDetails (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noPasswordLinkViewReportFailedDetails (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noteAclInviteOnlyDetails (Lcom/dropbox/core/v2/teamlog/NoteAclInviteOnlyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noteAclLinkDetails (Lcom/dropbox/core/v2/teamlog/NoteAclLinkDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noteAclTeamLinkDetails (Lcom/dropbox/core/v2/teamlog/NoteAclTeamLinkDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noteShareReceiveDetails (Lcom/dropbox/core/v2/teamlog/NoteShareReceiveDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun noteSharedDetails (Lcom/dropbox/core/v2/teamlog/NoteSharedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun objectLabelAddedDetails (Lcom/dropbox/core/v2/teamlog/ObjectLabelAddedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun objectLabelRemovedDetails (Lcom/dropbox/core/v2/teamlog/ObjectLabelRemovedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun objectLabelUpdatedValueDetails (Lcom/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun openNoteSharedDetails (Lcom/dropbox/core/v2/teamlog/OpenNoteSharedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun organizeFolderWithTidyDetails (Lcom/dropbox/core/v2/teamlog/OrganizeFolderWithTidyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun outdatedLinkViewCreateReportDetails (Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun outdatedLinkViewReportFailedDetails (Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperAdminExportStartDetails (Lcom/dropbox/core/v2/teamlog/PaperAdminExportStartDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperChangeDeploymentPolicyDetails (Lcom/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperChangeMemberLinkPolicyDetails (Lcom/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperChangeMemberPolicyDetails (Lcom/dropbox/core/v2/teamlog/PaperChangeMemberPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/PaperChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentAddMemberDetails (Lcom/dropbox/core/v2/teamlog/PaperContentAddMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentAddToFolderDetails (Lcom/dropbox/core/v2/teamlog/PaperContentAddToFolderDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentArchiveDetails (Lcom/dropbox/core/v2/teamlog/PaperContentArchiveDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentCreateDetails (Lcom/dropbox/core/v2/teamlog/PaperContentCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentPermanentlyDeleteDetails (Lcom/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentRemoveFromFolderDetails (Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentRemoveMemberDetails (Lcom/dropbox/core/v2/teamlog/PaperContentRemoveMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentRenameDetails (Lcom/dropbox/core/v2/teamlog/PaperContentRenameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperContentRestoreDetails (Lcom/dropbox/core/v2/teamlog/PaperContentRestoreDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDefaultFolderPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDesktopPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocAddCommentDetails (Lcom/dropbox/core/v2/teamlog/PaperDocAddCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocChangeMemberRoleDetails (Lcom/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocChangeSharingPolicyDetails (Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocChangeSubscriptionDetails (Lcom/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocDeleteCommentDetails (Lcom/dropbox/core/v2/teamlog/PaperDocDeleteCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocDeletedDetails (Lcom/dropbox/core/v2/teamlog/PaperDocDeletedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocDownloadDetails (Lcom/dropbox/core/v2/teamlog/PaperDocDownloadDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocEditCommentDetails (Lcom/dropbox/core/v2/teamlog/PaperDocEditCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocEditDetails (Lcom/dropbox/core/v2/teamlog/PaperDocEditDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocFollowedDetails (Lcom/dropbox/core/v2/teamlog/PaperDocFollowedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocMentionDetails (Lcom/dropbox/core/v2/teamlog/PaperDocMentionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocOwnershipChangedDetails (Lcom/dropbox/core/v2/teamlog/PaperDocOwnershipChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocRequestAccessDetails (Lcom/dropbox/core/v2/teamlog/PaperDocRequestAccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocResolveCommentDetails (Lcom/dropbox/core/v2/teamlog/PaperDocResolveCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocRevertDetails (Lcom/dropbox/core/v2/teamlog/PaperDocRevertDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocSlackShareDetails (Lcom/dropbox/core/v2/teamlog/PaperDocSlackShareDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocTeamInviteDetails (Lcom/dropbox/core/v2/teamlog/PaperDocTeamInviteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocTrashedDetails (Lcom/dropbox/core/v2/teamlog/PaperDocTrashedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocUnresolveCommentDetails (Lcom/dropbox/core/v2/teamlog/PaperDocUnresolveCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocUntrashedDetails (Lcom/dropbox/core/v2/teamlog/PaperDocUntrashedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperDocViewDetails (Lcom/dropbox/core/v2/teamlog/PaperDocViewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperEnabledUsersGroupAdditionDetails (Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperEnabledUsersGroupRemovalDetails (Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperExternalViewAllowDetails (Lcom/dropbox/core/v2/teamlog/PaperExternalViewAllowDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperExternalViewDefaultTeamDetails (Lcom/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperExternalViewForbidDetails (Lcom/dropbox/core/v2/teamlog/PaperExternalViewForbidDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperFolderChangeSubscriptionDetails (Lcom/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperFolderDeletedDetails (Lcom/dropbox/core/v2/teamlog/PaperFolderDeletedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperFolderFollowedDetails (Lcom/dropbox/core/v2/teamlog/PaperFolderFollowedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperFolderTeamInviteDetails (Lcom/dropbox/core/v2/teamlog/PaperFolderTeamInviteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperPublishedLinkChangePermissionDetails (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperPublishedLinkCreateDetails (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperPublishedLinkDisabledDetails (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun paperPublishedLinkViewDetails (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkViewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun passwordChangeDetails (Lcom/dropbox/core/v2/teamlog/PasswordChangeDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun passwordResetAllDetails (Lcom/dropbox/core/v2/teamlog/PasswordResetAllDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun passwordResetDetails (Lcom/dropbox/core/v2/teamlog/PasswordResetDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun passwordStrengthRequirementsChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun pendingSecondaryEmailAddedDetails (Lcom/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun permanentDeleteChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ransomwareAlertCreateReportDetails (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ransomwareAlertCreateReportFailedDetails (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ransomwareRestoreProcessCompletedDetails (Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ransomwareRestoreProcessStartedDetails (Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun replayFileDeleteDetails (Lcom/dropbox/core/v2/teamlog/ReplayFileDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun replayFileSharedLinkCreatedDetails (Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun replayFileSharedLinkModifiedDetails (Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun replayProjectTeamAddDetails (Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamAddDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun replayProjectTeamDeleteDetails (Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun resellerSupportChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/ResellerSupportChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun resellerSupportSessionEndDetails (Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionEndDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun resellerSupportSessionStartDetails (Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionStartDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun rewindFolderDetails (Lcom/dropbox/core/v2/teamlog/RewindFolderDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun rewindPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/RewindPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun secondaryEmailDeletedDetails (Lcom/dropbox/core/v2/teamlog/SecondaryEmailDeletedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun secondaryEmailVerifiedDetails (Lcom/dropbox/core/v2/teamlog/SecondaryEmailVerifiedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun secondaryMailsPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sendForSignaturePolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfAddGroupDetails (Lcom/dropbox/core/v2/teamlog/SfAddGroupDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfAllowNonMembersToViewSharedLinksDetails (Lcom/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfExternalInviteWarnDetails (Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfFbInviteChangeRoleDetails (Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfFbInviteDetails (Lcom/dropbox/core/v2/teamlog/SfFbInviteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfFbUninviteDetails (Lcom/dropbox/core/v2/teamlog/SfFbUninviteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfInviteGroupDetails (Lcom/dropbox/core/v2/teamlog/SfInviteGroupDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfTeamGrantAccessDetails (Lcom/dropbox/core/v2/teamlog/SfTeamGrantAccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfTeamInviteChangeRoleDetails (Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfTeamInviteDetails (Lcom/dropbox/core/v2/teamlog/SfTeamInviteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfTeamJoinDetails (Lcom/dropbox/core/v2/teamlog/SfTeamJoinDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfTeamJoinFromOobLinkDetails (Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sfTeamUninviteDetails (Lcom/dropbox/core/v2/teamlog/SfTeamUninviteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentAddInviteesDetails (Lcom/dropbox/core/v2/teamlog/SharedContentAddInviteesDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentAddLinkExpiryDetails (Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentAddLinkPasswordDetails (Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentAddMemberDetails (Lcom/dropbox/core/v2/teamlog/SharedContentAddMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentChangeDownloadsPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentChangeInviteeRoleDetails (Lcom/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentChangeLinkAudienceDetails (Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentChangeLinkExpiryDetails (Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentChangeLinkPasswordDetails (Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentChangeMemberRoleDetails (Lcom/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentChangeViewerInfoPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentClaimInvitationDetails (Lcom/dropbox/core/v2/teamlog/SharedContentClaimInvitationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentCopyDetails (Lcom/dropbox/core/v2/teamlog/SharedContentCopyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentDownloadDetails (Lcom/dropbox/core/v2/teamlog/SharedContentDownloadDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRelinquishMembershipDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRemoveInviteesDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveInviteesDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRemoveLinkExpiryDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRemoveLinkPasswordDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRemoveMemberDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRequestAccessDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRequestAccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRestoreInviteesDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRestoreInviteesDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentRestoreMemberDetails (Lcom/dropbox/core/v2/teamlog/SharedContentRestoreMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentUnshareDetails (Lcom/dropbox/core/v2/teamlog/SharedContentUnshareDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedContentViewDetails (Lcom/dropbox/core/v2/teamlog/SharedContentViewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderChangeLinkPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderChangeMembersInheritancePolicyDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderChangeMembersManagementPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderChangeMembersPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderCreateDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderDeclineInvitationDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderMountDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderMountDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderNestDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderTransferOwnershipDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedFolderUnmountDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkAddExpiryDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkAddExpiryDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkChangeExpiryDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkChangeVisibilityDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkCopyDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkCopyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkCreateDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkDisableDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkDisableDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkDownloadDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkDownloadDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkRemoveExpiryDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsAddExpirationDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsAddPasswordDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsAllowDownloadDisabledDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsAllowDownloadEnabledDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsChangeAudienceDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsChangeExpirationDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsChangePasswordDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsRemoveExpirationDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkSettingsRemovePasswordDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkShareDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkShareDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedLinkViewDetails (Lcom/dropbox/core/v2/teamlog/SharedLinkViewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharedNoteOpenedDetails (Lcom/dropbox/core/v2/teamlog/SharedNoteOpenedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharingChangeFolderJoinPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharingChangeLinkAllowChangeExpirationPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharingChangeLinkDefaultExpirationPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharingChangeLinkEnforcePasswordPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharingChangeLinkPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun sharingChangeMemberPolicyDetails (Lcom/dropbox/core/v2/teamlog/SharingChangeMemberPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun shmodelDisableDownloadsDetails (Lcom/dropbox/core/v2/teamlog/ShmodelDisableDownloadsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun shmodelEnableDownloadsDetails (Lcom/dropbox/core/v2/teamlog/ShmodelEnableDownloadsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun shmodelGroupShareDetails (Lcom/dropbox/core/v2/teamlog/ShmodelGroupShareDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseAccessGrantedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseAccessGrantedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseAddMemberDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseAddMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseArchivedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseArchivedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseChangeDownloadPolicyDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseChangeEnabledPolicyDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseChangeExternalSharingPolicyDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseCreatedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseCreatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseDeleteCommentDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseDeleteCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseEditCommentDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseEditCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseEditedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseEditedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseFileAddedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseFileAddedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseFileDownloadDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseFileDownloadDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseFileRemovedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseFileRemovedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseFileViewDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseFileViewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcasePermanentlyDeletedDetails (Lcom/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcasePostCommentDetails (Lcom/dropbox/core/v2/teamlog/ShowcasePostCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseRemoveMemberDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseRemoveMemberDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseRenamedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseRenamedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseRequestAccessDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseRequestAccessDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseResolveCommentDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseResolveCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseRestoredDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseRestoredDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseTrashedDeprecatedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseTrashedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseUnresolveCommentDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseUntrashedDeprecatedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseUntrashedDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun showcaseViewDetails (Lcom/dropbox/core/v2/teamlog/ShowcaseViewDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun signInAsSessionEndDetails (Lcom/dropbox/core/v2/teamlog/SignInAsSessionEndDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun signInAsSessionStartDetails (Lcom/dropbox/core/v2/teamlog/SignInAsSessionStartDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun smartSyncChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun smartSyncCreateAdminPrivilegeReportDetails (Lcom/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun smartSyncNotOptOutDetails (Lcom/dropbox/core/v2/teamlog/SmartSyncNotOptOutDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun smartSyncOptOutDetails (Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun smarterSmartSyncPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoAddCertDetails (Lcom/dropbox/core/v2/teamlog/SsoAddCertDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoAddLoginUrlDetails (Lcom/dropbox/core/v2/teamlog/SsoAddLoginUrlDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoAddLogoutUrlDetails (Lcom/dropbox/core/v2/teamlog/SsoAddLogoutUrlDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoChangeCertDetails (Lcom/dropbox/core/v2/teamlog/SsoChangeCertDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoChangeLoginUrlDetails (Lcom/dropbox/core/v2/teamlog/SsoChangeLoginUrlDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoChangeLogoutUrlDetails (Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/SsoChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoChangeSamlIdentityModeDetails (Lcom/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoErrorDetails (Lcom/dropbox/core/v2/teamlog/SsoErrorDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoRemoveCertDetails (Lcom/dropbox/core/v2/teamlog/SsoRemoveCertDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoRemoveLoginUrlDetails (Lcom/dropbox/core/v2/teamlog/SsoRemoveLoginUrlDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun ssoRemoveLogoutUrlDetails (Lcom/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun startedEnterpriseAdminSessionDetails (Lcom/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public fun tag ()Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static fun teamActivityCreateReportDetails (Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamActivityCreateReportFailDetails (Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportFailDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamBrandingPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamEncryptionKeyCancelKeyDeletionDetails (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamEncryptionKeyCreateKeyDetails (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamEncryptionKeyDeleteKeyDetails (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamEncryptionKeyDisableKeyDetails (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamEncryptionKeyEnableKeyDetails (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamEncryptionKeyRotateKeyDetails (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamEncryptionKeyScheduleKeyDeletionDetails (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamExtensionsPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamFolderChangeStatusDetails (Lcom/dropbox/core/v2/teamlog/TeamFolderChangeStatusDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamFolderCreateDetails (Lcom/dropbox/core/v2/teamlog/TeamFolderCreateDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamFolderDowngradeDetails (Lcom/dropbox/core/v2/teamlog/TeamFolderDowngradeDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamFolderPermanentlyDeleteDetails (Lcom/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamFolderRenameDetails (Lcom/dropbox/core/v2/teamlog/TeamFolderRenameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeFromDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeFromDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestAcceptedDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestAcceptedShownToPrimaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestAcceptedShownToSecondaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestAutoCanceledDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestCanceledDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestCanceledShownToPrimaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestCanceledShownToSecondaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestExpiredDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestExpiredShownToPrimaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestExpiredShownToSecondaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestRejectedShownToPrimaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestRejectedShownToSecondaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestReminderDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestReminderShownToPrimaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestReminderShownToSecondaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestRevokedDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRevokedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestSentShownToPrimaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeRequestSentShownToSecondaryTeamDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamMergeToDetails (Lcom/dropbox/core/v2/teamlog/TeamMergeToDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileAddBackgroundDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileAddBackgroundDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileAddLogoDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileAddLogoDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileChangeBackgroundDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileChangeDefaultLanguageDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileChangeLogoDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeLogoDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileChangeNameDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeNameDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileRemoveBackgroundDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamProfileRemoveLogoDetails (Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveLogoDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamSelectiveSyncPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamSelectiveSyncSettingsChangedDetails (Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun teamSharingWhitelistSubjectsChangedDetails (Lcom/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaAddBackupPhoneDetails (Lcom/dropbox/core/v2/teamlog/TfaAddBackupPhoneDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaAddExceptionDetails (Lcom/dropbox/core/v2/teamlog/TfaAddExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaAddSecurityKeyDetails (Lcom/dropbox/core/v2/teamlog/TfaAddSecurityKeyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaChangeBackupPhoneDetails (Lcom/dropbox/core/v2/teamlog/TfaChangeBackupPhoneDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/TfaChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaChangeStatusDetails (Lcom/dropbox/core/v2/teamlog/TfaChangeStatusDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaRemoveBackupPhoneDetails (Lcom/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaRemoveExceptionDetails (Lcom/dropbox/core/v2/teamlog/TfaRemoveExceptionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaRemoveSecurityKeyDetails (Lcom/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun tfaResetDetails (Lcom/dropbox/core/v2/teamlog/TfaResetDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun twoAccountChangePolicyDetails (Lcom/dropbox/core/v2/teamlog/TwoAccountChangePolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun undoNamingConventionDetails (Lcom/dropbox/core/v2/teamlog/UndoNamingConventionDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun undoOrganizeFolderWithTidyDetails (Lcom/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun userTagsAddedDetails (Lcom/dropbox/core/v2/teamlog/UserTagsAddedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun userTagsRemovedDetails (Lcom/dropbox/core/v2/teamlog/UserTagsRemovedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun viewerInfoPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun watermarkingPolicyChangedDetails (Lcom/dropbox/core/v2/teamlog/WatermarkingPolicyChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun webSessionsChangeActiveSessionLimitDetails (Lcom/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun webSessionsChangeFixedLengthPolicyDetails (Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; + public static fun webSessionsChangeIdleLengthPolicyDetails (Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails; +} + +public final class com/dropbox/core/v2/teamlog/EventDetails$Tag : java/lang/Enum { + public static final field ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ACCOUNT_LOCK_OR_UNLOCKED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ALLOW_DOWNLOAD_DISABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ALLOW_DOWNLOAD_ENABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field APPLY_NAMING_CONVENTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field APP_BLOCKED_BY_PERMISSIONS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field APP_LINK_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field APP_LINK_USER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field APP_PERMISSIONS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field APP_UNLINK_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field APP_UNLINK_USER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BACKUP_ADMIN_INVITATION_SENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BACKUP_INVITATION_OPENED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_ADD_PAGE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_ADD_SECTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_REMOVE_PAGE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_REMOVE_SECTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_RENAME_PAGE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_RENAME_SECTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_REORDER_PAGE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field BINDER_REORDER_SECTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CAMERA_UPLOADS_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CLASSIFICATION_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CLASSIFICATION_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field COLLECTION_SHARE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field COMPUTER_BACKUP_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CREATE_FOLDER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field CREATE_TEAM_INVITE_LINK_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DELETE_TEAM_INVITE_LINK_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_CHANGE_IP_DESKTOP_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_CHANGE_IP_MOBILE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_CHANGE_IP_WEB_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_LINK_FAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_LINK_SUCCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_MANAGEMENT_DISABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_MANAGEMENT_ENABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DEVICE_UNLINK_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DISABLED_DOMAIN_INVITES_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DROPBOX_PASSWORDS_EXPORTED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMAIL_INGEST_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMAIL_INGEST_RECEIVE_FILE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMM_ADD_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMM_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMM_CREATE_EXCEPTIONS_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMM_CREATE_USAGE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMM_ERROR_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMM_REFRESH_AUTH_TOKEN_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EMM_REMOVE_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ENABLED_DOMAIN_INVITES_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ENTERPRISE_SETTINGS_LOCKING_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXPORT_MEMBERS_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXPORT_MEMBERS_REPORT_FAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXTERNAL_SHARING_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field EXTERNAL_SHARING_REPORT_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_ADD_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_ADD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_ADD_FROM_AUTOMATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_COMMENTS_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_COPY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_DELETE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_DOWNLOAD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_EDIT_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_EDIT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_GET_COPY_REFERENCE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_LIKE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_LOCKING_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_MOVE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_PERMANENTLY_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_PREVIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_RENAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUESTS_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUESTS_EMAILS_ENABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUEST_CHANGE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUEST_CLOSE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUEST_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUEST_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REQUEST_RECEIVE_FILE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_RESOLVE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_RESTORE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_REVERT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_ROLLBACK_CHANGES_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_SAVE_COPY_REFERENCE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_TRANSFERS_FILE_ADD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_TRANSFERS_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_TRANSFERS_TRANSFER_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_TRANSFERS_TRANSFER_SEND_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_TRANSFERS_TRANSFER_VIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_UNLIKE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FILE_UNRESOLVE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FOLDER_OVERVIEW_ITEM_PINNED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOOGLE_SSO_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_EDIT_DURATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_REPORT_CREATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_ADD_EXTERNAL_ID_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_ADD_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_CHANGE_EXTERNAL_ID_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_CHANGE_MEMBER_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_DESCRIPTION_UPDATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_JOIN_POLICY_UPDATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_MOVED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_REMOVE_EXTERNAL_ID_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_REMOVE_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_RENAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GUEST_ADMIN_CHANGE_STATUS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field INTEGRATION_CONNECTED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field INTEGRATION_DISCONNECTED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field INTEGRATION_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_ADD_MEMBERS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_EXPORT_REMOVED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LEGAL_HOLDS_REPORT_A_HOLD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LOGIN_FAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LOGIN_SUCCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field LOGOUT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_ADD_EXTERNAL_ID_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_ADD_NAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_CHANGE_ADMIN_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_CHANGE_EMAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_CHANGE_EXTERNAL_ID_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_CHANGE_NAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_CHANGE_RESELLER_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_CHANGE_STATUS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_DELETE_MANUAL_CONTACTS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_DELETE_PROFILE_PHOTO_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_REMOVE_EXTERNAL_ID_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_REQUESTS_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SET_PROFILE_PHOTO_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_SUGGEST_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field MISSING_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NETWORK_CONTROL_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NOTE_ACL_INVITE_ONLY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NOTE_ACL_LINK_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NOTE_ACL_TEAM_LINK_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NOTE_SHARED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NOTE_SHARE_RECEIVE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field OBJECT_LABEL_ADDED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field OBJECT_LABEL_REMOVED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field OBJECT_LABEL_UPDATED_VALUE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field OPEN_NOTE_SHARED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field ORGANIZE_FOLDER_WITH_TIDY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_ADMIN_EXPORT_START_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CHANGE_MEMBER_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_ADD_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_ADD_TO_FOLDER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_ARCHIVE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_REMOVE_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_RENAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_CONTENT_RESTORE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DESKTOP_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_ADD_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_DELETED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_DELETE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_DOWNLOAD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_EDIT_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_EDIT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_FOLLOWED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_MENTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_OWNERSHIP_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_REQUEST_ACCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_RESOLVE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_REVERT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_SLACK_SHARE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_TEAM_INVITE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_TRASHED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_UNRESOLVE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_UNTRASHED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_DOC_VIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_EXTERNAL_VIEW_ALLOW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_EXTERNAL_VIEW_FORBID_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_FOLDER_DELETED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_FOLDER_FOLLOWED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_FOLDER_TEAM_INVITE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_PUBLISHED_LINK_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_PUBLISHED_LINK_DISABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PAPER_PUBLISHED_LINK_VIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PASSWORD_CHANGE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PASSWORD_RESET_ALL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PASSWORD_RESET_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PENDING_SECONDARY_EMAIL_ADDED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field PERMANENT_DELETE_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field RANSOMWARE_ALERT_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field REPLAY_FILE_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field REPLAY_FILE_SHARED_LINK_CREATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field REPLAY_PROJECT_TEAM_ADD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field REPLAY_PROJECT_TEAM_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field RESELLER_SUPPORT_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field RESELLER_SUPPORT_SESSION_END_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field RESELLER_SUPPORT_SESSION_START_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field REWIND_FOLDER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field REWIND_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SECONDARY_EMAIL_DELETED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SECONDARY_EMAIL_VERIFIED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SECONDARY_MAILS_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_ADD_GROUP_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_EXTERNAL_INVITE_WARN_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_FB_INVITE_CHANGE_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_FB_INVITE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_FB_UNINVITE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_INVITE_GROUP_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_TEAM_GRANT_ACCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_TEAM_INVITE_CHANGE_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_TEAM_INVITE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_TEAM_JOIN_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SF_TEAM_UNINVITE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_ADD_INVITEES_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_ADD_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_CLAIM_INVITATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_COPY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_DOWNLOAD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_REMOVE_INVITEES_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_REMOVE_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_REQUEST_ACCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_RESTORE_INVITEES_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_RESTORE_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_UNSHARE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_CONTENT_VIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_DECLINE_INVITATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_MOUNT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_NEST_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_FOLDER_UNMOUNT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_ADD_EXPIRY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_CHANGE_EXPIRY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_CHANGE_VISIBILITY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_COPY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_DISABLE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_DOWNLOAD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_REMOVE_EXPIRY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_SHARE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_LINK_VIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARED_NOTE_OPENED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARING_CHANGE_LINK_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHARING_CHANGE_MEMBER_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHMODEL_DISABLE_DOWNLOADS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHMODEL_ENABLE_DOWNLOADS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHMODEL_GROUP_SHARE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_ACCESS_GRANTED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_ADD_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_ARCHIVED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_CREATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_DELETE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_EDITED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_EDIT_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_FILE_ADDED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_FILE_DOWNLOAD_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_FILE_REMOVED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_FILE_VIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_PERMANENTLY_DELETED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_POST_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_REMOVE_MEMBER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_RENAMED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_REQUEST_ACCESS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_RESOLVE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_RESTORED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_TRASHED_DEPRECATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_TRASHED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_UNRESOLVE_COMMENT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_UNTRASHED_DEPRECATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_UNTRASHED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SHOWCASE_VIEW_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SIGN_IN_AS_SESSION_END_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SIGN_IN_AS_SESSION_START_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SMART_SYNC_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SMART_SYNC_NOT_OPT_OUT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SMART_SYNC_OPT_OUT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_ADD_CERT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_ADD_LOGIN_URL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_ADD_LOGOUT_URL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_CHANGE_CERT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_CHANGE_LOGIN_URL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_CHANGE_LOGOUT_URL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_ERROR_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_REMOVE_CERT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_REMOVE_LOGIN_URL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field SSO_REMOVE_LOGOUT_URL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ACTIVITY_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_BRANDING_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_FOLDER_CHANGE_STATUS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_FOLDER_CREATE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_FOLDER_DOWNGRADE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_FOLDER_RENAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_FROM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_ACCEPTED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_CANCELED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_EXPIRED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_REMINDER_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_REVOKED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_MERGE_TO_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_ADD_BACKGROUND_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_ADD_LOGO_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_CHANGE_LOGO_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_CHANGE_NAME_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_PROFILE_REMOVE_LOGO_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_ADD_BACKUP_PHONE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_ADD_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_ADD_SECURITY_KEY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_CHANGE_BACKUP_PHONE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_CHANGE_STATUS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_REMOVE_BACKUP_PHONE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_REMOVE_EXCEPTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_REMOVE_SECURITY_KEY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TFA_RESET_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field TWO_ACCOUNT_CHANGE_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field UNDO_NAMING_CONVENTION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field USER_TAGS_ADDED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field USER_TAGS_REMOVED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field VIEWER_INFO_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field WATERMARKING_POLICY_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static final field WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/EventDetails$Tag; +} + +public final class com/dropbox/core/v2/teamlog/EventType { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EventType; + public static fun accountCaptureChangeAvailability (Lcom/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun accountCaptureChangePolicy (Lcom/dropbox/core/v2/teamlog/AccountCaptureChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun accountCaptureMigrateAccount (Lcom/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun accountCaptureNotificationEmailsSent (Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun accountCaptureRelinquishAccount (Lcom/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun accountLockOrUnlocked (Lcom/dropbox/core/v2/teamlog/AccountLockOrUnlockedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun adminAlertingAlertStateChanged (Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun adminAlertingChangedAlertConfig (Lcom/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun adminAlertingTriggeredAlert (Lcom/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun adminEmailRemindersChanged (Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun allowDownloadDisabled (Lcom/dropbox/core/v2/teamlog/AllowDownloadDisabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun allowDownloadEnabled (Lcom/dropbox/core/v2/teamlog/AllowDownloadEnabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun appBlockedByPermissions (Lcom/dropbox/core/v2/teamlog/AppBlockedByPermissionsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun appLinkTeam (Lcom/dropbox/core/v2/teamlog/AppLinkTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun appLinkUser (Lcom/dropbox/core/v2/teamlog/AppLinkUserType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun appPermissionsChanged (Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun appUnlinkTeam (Lcom/dropbox/core/v2/teamlog/AppUnlinkTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun appUnlinkUser (Lcom/dropbox/core/v2/teamlog/AppUnlinkUserType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun applyNamingConvention (Lcom/dropbox/core/v2/teamlog/ApplyNamingConventionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun backupAdminInvitationSent (Lcom/dropbox/core/v2/teamlog/BackupAdminInvitationSentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun backupInvitationOpened (Lcom/dropbox/core/v2/teamlog/BackupInvitationOpenedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderAddPage (Lcom/dropbox/core/v2/teamlog/BinderAddPageType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderAddSection (Lcom/dropbox/core/v2/teamlog/BinderAddSectionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderRemovePage (Lcom/dropbox/core/v2/teamlog/BinderRemovePageType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderRemoveSection (Lcom/dropbox/core/v2/teamlog/BinderRemoveSectionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderRenamePage (Lcom/dropbox/core/v2/teamlog/BinderRenamePageType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderRenameSection (Lcom/dropbox/core/v2/teamlog/BinderRenameSectionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderReorderPage (Lcom/dropbox/core/v2/teamlog/BinderReorderPageType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun binderReorderSection (Lcom/dropbox/core/v2/teamlog/BinderReorderSectionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun cameraUploadsPolicyChanged (Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun captureTranscriptPolicyChanged (Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun changedEnterpriseAdminRole (Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun changedEnterpriseConnectedTeamStatus (Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun classificationChangePolicy (Lcom/dropbox/core/v2/teamlog/ClassificationChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun classificationCreateReport (Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun classificationCreateReportFail (Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportFailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun collectionShare (Lcom/dropbox/core/v2/teamlog/CollectionShareType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun computerBackupPolicyChanged (Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun contentAdministrationPolicyChanged (Lcom/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun createFolder (Lcom/dropbox/core/v2/teamlog/CreateFolderType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun createTeamInviteLink (Lcom/dropbox/core/v2/teamlog/CreateTeamInviteLinkType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun dataPlacementRestrictionChangePolicy (Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun dataPlacementRestrictionSatisfyPolicy (Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun dataResidencyMigrationRequestSuccessful (Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun dataResidencyMigrationRequestUnsuccessful (Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deleteTeamInviteLink (Lcom/dropbox/core/v2/teamlog/DeleteTeamInviteLinkType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceApprovalsAddException (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceApprovalsChangeDesktopPolicy (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceApprovalsChangeMobilePolicy (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceApprovalsChangeOverageAction (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceApprovalsChangeUnlinkAction (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceApprovalsRemoveException (Lcom/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceChangeIpDesktop (Lcom/dropbox/core/v2/teamlog/DeviceChangeIpDesktopType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceChangeIpMobile (Lcom/dropbox/core/v2/teamlog/DeviceChangeIpMobileType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceChangeIpWeb (Lcom/dropbox/core/v2/teamlog/DeviceChangeIpWebType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceDeleteOnUnlinkFail (Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceDeleteOnUnlinkSuccess (Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceLinkFail (Lcom/dropbox/core/v2/teamlog/DeviceLinkFailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceLinkSuccess (Lcom/dropbox/core/v2/teamlog/DeviceLinkSuccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceManagementDisabled (Lcom/dropbox/core/v2/teamlog/DeviceManagementDisabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceManagementEnabled (Lcom/dropbox/core/v2/teamlog/DeviceManagementEnabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceSyncBackupStatusChanged (Lcom/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun deviceUnlink (Lcom/dropbox/core/v2/teamlog/DeviceUnlinkType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun directoryRestrictionsAddMembers (Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun directoryRestrictionsRemoveMembers (Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun disabledDomainInvites (Lcom/dropbox/core/v2/teamlog/DisabledDomainInvitesType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainInvitesApproveRequestToJoinTeam (Lcom/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainInvitesDeclineRequestToJoinTeam (Lcom/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainInvitesEmailExistingUsers (Lcom/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainInvitesRequestToJoinTeam (Lcom/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainInvitesSetInviteNewUserPrefToNo (Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainInvitesSetInviteNewUserPrefToYes (Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainVerificationAddDomainFail (Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainVerificationAddDomainSuccess (Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun domainVerificationRemoveDomain (Lcom/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun dropboxPasswordsExported (Lcom/dropbox/core/v2/teamlog/DropboxPasswordsExportedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun dropboxPasswordsNewDeviceEnrolled (Lcom/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun dropboxPasswordsPolicyChanged (Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emailIngestPolicyChanged (Lcom/dropbox/core/v2/teamlog/EmailIngestPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emailIngestReceiveFile (Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emmAddException (Lcom/dropbox/core/v2/teamlog/EmmAddExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emmChangePolicy (Lcom/dropbox/core/v2/teamlog/EmmChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emmCreateExceptionsReport (Lcom/dropbox/core/v2/teamlog/EmmCreateExceptionsReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emmCreateUsageReport (Lcom/dropbox/core/v2/teamlog/EmmCreateUsageReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emmError (Lcom/dropbox/core/v2/teamlog/EmmErrorType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emmRefreshAuthToken (Lcom/dropbox/core/v2/teamlog/EmmRefreshAuthTokenType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun emmRemoveException (Lcom/dropbox/core/v2/teamlog/EmmRemoveExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun enabledDomainInvites (Lcom/dropbox/core/v2/teamlog/EnabledDomainInvitesType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun endedEnterpriseAdminSession (Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun endedEnterpriseAdminSessionDeprecated (Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun enterpriseSettingsLocking (Lcom/dropbox/core/v2/teamlog/EnterpriseSettingsLockingType;)Lcom/dropbox/core/v2/teamlog/EventType; + public fun equals (Ljava/lang/Object;)Z + public static fun exportMembersReport (Lcom/dropbox/core/v2/teamlog/ExportMembersReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun exportMembersReportFail (Lcom/dropbox/core/v2/teamlog/ExportMembersReportFailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun extendedVersionHistoryChangePolicy (Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun externalDriveBackupEligibilityStatusChecked (Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun externalDriveBackupPolicyChanged (Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun externalDriveBackupStatusChanged (Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun externalSharingCreateReport (Lcom/dropbox/core/v2/teamlog/ExternalSharingCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun externalSharingReportFailed (Lcom/dropbox/core/v2/teamlog/ExternalSharingReportFailedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileAdd (Lcom/dropbox/core/v2/teamlog/FileAddType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileAddComment (Lcom/dropbox/core/v2/teamlog/FileAddCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileAddFromAutomation (Lcom/dropbox/core/v2/teamlog/FileAddFromAutomationType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileChangeCommentSubscription (Lcom/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileCommentsChangePolicy (Lcom/dropbox/core/v2/teamlog/FileCommentsChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileCopy (Lcom/dropbox/core/v2/teamlog/FileCopyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileDelete (Lcom/dropbox/core/v2/teamlog/FileDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileDeleteComment (Lcom/dropbox/core/v2/teamlog/FileDeleteCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileDownload (Lcom/dropbox/core/v2/teamlog/FileDownloadType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileEdit (Lcom/dropbox/core/v2/teamlog/FileEditType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileEditComment (Lcom/dropbox/core/v2/teamlog/FileEditCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileGetCopyReference (Lcom/dropbox/core/v2/teamlog/FileGetCopyReferenceType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileLikeComment (Lcom/dropbox/core/v2/teamlog/FileLikeCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileLockingLockStatusChanged (Lcom/dropbox/core/v2/teamlog/FileLockingLockStatusChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileLockingPolicyChanged (Lcom/dropbox/core/v2/teamlog/FileLockingPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileMove (Lcom/dropbox/core/v2/teamlog/FileMoveType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun filePermanentlyDelete (Lcom/dropbox/core/v2/teamlog/FilePermanentlyDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun filePreview (Lcom/dropbox/core/v2/teamlog/FilePreviewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileProviderMigrationPolicyChanged (Lcom/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRename (Lcom/dropbox/core/v2/teamlog/FileRenameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestChange (Lcom/dropbox/core/v2/teamlog/FileRequestChangeType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestClose (Lcom/dropbox/core/v2/teamlog/FileRequestCloseType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestCreate (Lcom/dropbox/core/v2/teamlog/FileRequestCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestDelete (Lcom/dropbox/core/v2/teamlog/FileRequestDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestReceiveFile (Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestsChangePolicy (Lcom/dropbox/core/v2/teamlog/FileRequestsChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestsEmailsEnabled (Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRequestsEmailsRestrictedToTeamOnly (Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileResolveComment (Lcom/dropbox/core/v2/teamlog/FileResolveCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRestore (Lcom/dropbox/core/v2/teamlog/FileRestoreType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRevert (Lcom/dropbox/core/v2/teamlog/FileRevertType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileRollbackChanges (Lcom/dropbox/core/v2/teamlog/FileRollbackChangesType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileSaveCopyReference (Lcom/dropbox/core/v2/teamlog/FileSaveCopyReferenceType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileTransfersFileAdd (Lcom/dropbox/core/v2/teamlog/FileTransfersFileAddType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileTransfersPolicyChanged (Lcom/dropbox/core/v2/teamlog/FileTransfersPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileTransfersTransferDelete (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileTransfersTransferDownload (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDownloadType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileTransfersTransferSend (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferSendType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileTransfersTransferView (Lcom/dropbox/core/v2/teamlog/FileTransfersTransferViewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileUnlikeComment (Lcom/dropbox/core/v2/teamlog/FileUnlikeCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun fileUnresolveComment (Lcom/dropbox/core/v2/teamlog/FileUnresolveCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun folderLinkRestrictionPolicyChanged (Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun folderOverviewDescriptionChanged (Lcom/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun folderOverviewItemPinned (Lcom/dropbox/core/v2/teamlog/FolderOverviewItemPinnedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun folderOverviewItemUnpinned (Lcom/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public fun getAccountCaptureChangeAvailabilityValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityType; + public fun getAccountCaptureChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureChangePolicyType; + public fun getAccountCaptureMigrateAccountValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountType; + public fun getAccountCaptureNotificationEmailsSentValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentType; + public fun getAccountCaptureRelinquishAccountValue ()Lcom/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountType; + public fun getAccountLockOrUnlockedValue ()Lcom/dropbox/core/v2/teamlog/AccountLockOrUnlockedType; + public fun getAdminAlertingAlertStateChangedValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedType; + public fun getAdminAlertingChangedAlertConfigValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigType; + public fun getAdminAlertingTriggeredAlertValue ()Lcom/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertType; + public fun getAdminEmailRemindersChangedValue ()Lcom/dropbox/core/v2/teamlog/AdminEmailRemindersChangedType; + public fun getAllowDownloadDisabledValue ()Lcom/dropbox/core/v2/teamlog/AllowDownloadDisabledType; + public fun getAllowDownloadEnabledValue ()Lcom/dropbox/core/v2/teamlog/AllowDownloadEnabledType; + public fun getAppBlockedByPermissionsValue ()Lcom/dropbox/core/v2/teamlog/AppBlockedByPermissionsType; + public fun getAppLinkTeamValue ()Lcom/dropbox/core/v2/teamlog/AppLinkTeamType; + public fun getAppLinkUserValue ()Lcom/dropbox/core/v2/teamlog/AppLinkUserType; + public fun getAppPermissionsChangedValue ()Lcom/dropbox/core/v2/teamlog/AppPermissionsChangedType; + public fun getAppUnlinkTeamValue ()Lcom/dropbox/core/v2/teamlog/AppUnlinkTeamType; + public fun getAppUnlinkUserValue ()Lcom/dropbox/core/v2/teamlog/AppUnlinkUserType; + public fun getApplyNamingConventionValue ()Lcom/dropbox/core/v2/teamlog/ApplyNamingConventionType; + public fun getBackupAdminInvitationSentValue ()Lcom/dropbox/core/v2/teamlog/BackupAdminInvitationSentType; + public fun getBackupInvitationOpenedValue ()Lcom/dropbox/core/v2/teamlog/BackupInvitationOpenedType; + public fun getBinderAddPageValue ()Lcom/dropbox/core/v2/teamlog/BinderAddPageType; + public fun getBinderAddSectionValue ()Lcom/dropbox/core/v2/teamlog/BinderAddSectionType; + public fun getBinderRemovePageValue ()Lcom/dropbox/core/v2/teamlog/BinderRemovePageType; + public fun getBinderRemoveSectionValue ()Lcom/dropbox/core/v2/teamlog/BinderRemoveSectionType; + public fun getBinderRenamePageValue ()Lcom/dropbox/core/v2/teamlog/BinderRenamePageType; + public fun getBinderRenameSectionValue ()Lcom/dropbox/core/v2/teamlog/BinderRenameSectionType; + public fun getBinderReorderPageValue ()Lcom/dropbox/core/v2/teamlog/BinderReorderPageType; + public fun getBinderReorderSectionValue ()Lcom/dropbox/core/v2/teamlog/BinderReorderSectionType; + public fun getCameraUploadsPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedType; + public fun getCaptureTranscriptPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedType; + public fun getChangedEnterpriseAdminRoleValue ()Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleType; + public fun getChangedEnterpriseConnectedTeamStatusValue ()Lcom/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusType; + public fun getClassificationChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/ClassificationChangePolicyType; + public fun getClassificationCreateReportFailValue ()Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportFailType; + public fun getClassificationCreateReportValue ()Lcom/dropbox/core/v2/teamlog/ClassificationCreateReportType; + public fun getCollectionShareValue ()Lcom/dropbox/core/v2/teamlog/CollectionShareType; + public fun getComputerBackupPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedType; + public fun getContentAdministrationPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedType; + public fun getCreateFolderValue ()Lcom/dropbox/core/v2/teamlog/CreateFolderType; + public fun getCreateTeamInviteLinkValue ()Lcom/dropbox/core/v2/teamlog/CreateTeamInviteLinkType; + public fun getDataPlacementRestrictionChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyType; + public fun getDataPlacementRestrictionSatisfyPolicyValue ()Lcom/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyType; + public fun getDataResidencyMigrationRequestSuccessfulValue ()Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulType; + public fun getDataResidencyMigrationRequestUnsuccessfulValue ()Lcom/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulType; + public fun getDeleteTeamInviteLinkValue ()Lcom/dropbox/core/v2/teamlog/DeleteTeamInviteLinkType; + public fun getDeviceApprovalsAddExceptionValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionType; + public fun getDeviceApprovalsChangeDesktopPolicyValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyType; + public fun getDeviceApprovalsChangeMobilePolicyValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyType; + public fun getDeviceApprovalsChangeOverageActionValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionType; + public fun getDeviceApprovalsChangeUnlinkActionValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionType; + public fun getDeviceApprovalsRemoveExceptionValue ()Lcom/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionType; + public fun getDeviceChangeIpDesktopValue ()Lcom/dropbox/core/v2/teamlog/DeviceChangeIpDesktopType; + public fun getDeviceChangeIpMobileValue ()Lcom/dropbox/core/v2/teamlog/DeviceChangeIpMobileType; + public fun getDeviceChangeIpWebValue ()Lcom/dropbox/core/v2/teamlog/DeviceChangeIpWebType; + public fun getDeviceDeleteOnUnlinkFailValue ()Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailType; + public fun getDeviceDeleteOnUnlinkSuccessValue ()Lcom/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessType; + public fun getDeviceLinkFailValue ()Lcom/dropbox/core/v2/teamlog/DeviceLinkFailType; + public fun getDeviceLinkSuccessValue ()Lcom/dropbox/core/v2/teamlog/DeviceLinkSuccessType; + public fun getDeviceManagementDisabledValue ()Lcom/dropbox/core/v2/teamlog/DeviceManagementDisabledType; + public fun getDeviceManagementEnabledValue ()Lcom/dropbox/core/v2/teamlog/DeviceManagementEnabledType; + public fun getDeviceSyncBackupStatusChangedValue ()Lcom/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedType; + public fun getDeviceUnlinkValue ()Lcom/dropbox/core/v2/teamlog/DeviceUnlinkType; + public fun getDirectoryRestrictionsAddMembersValue ()Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersType; + public fun getDirectoryRestrictionsRemoveMembersValue ()Lcom/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersType; + public fun getDisabledDomainInvitesValue ()Lcom/dropbox/core/v2/teamlog/DisabledDomainInvitesType; + public fun getDomainInvitesApproveRequestToJoinTeamValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamType; + public fun getDomainInvitesDeclineRequestToJoinTeamValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamType; + public fun getDomainInvitesEmailExistingUsersValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersType; + public fun getDomainInvitesRequestToJoinTeamValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamType; + public fun getDomainInvitesSetInviteNewUserPrefToNoValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoType; + public fun getDomainInvitesSetInviteNewUserPrefToYesValue ()Lcom/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesType; + public fun getDomainVerificationAddDomainFailValue ()Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailType; + public fun getDomainVerificationAddDomainSuccessValue ()Lcom/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessType; + public fun getDomainVerificationRemoveDomainValue ()Lcom/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainType; + public fun getDropboxPasswordsExportedValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsExportedType; + public fun getDropboxPasswordsNewDeviceEnrolledValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledType; + public fun getDropboxPasswordsPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedType; + public fun getEmailIngestPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/EmailIngestPolicyChangedType; + public fun getEmailIngestReceiveFileValue ()Lcom/dropbox/core/v2/teamlog/EmailIngestReceiveFileType; + public fun getEmmAddExceptionValue ()Lcom/dropbox/core/v2/teamlog/EmmAddExceptionType; + public fun getEmmChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/EmmChangePolicyType; + public fun getEmmCreateExceptionsReportValue ()Lcom/dropbox/core/v2/teamlog/EmmCreateExceptionsReportType; + public fun getEmmCreateUsageReportValue ()Lcom/dropbox/core/v2/teamlog/EmmCreateUsageReportType; + public fun getEmmErrorValue ()Lcom/dropbox/core/v2/teamlog/EmmErrorType; + public fun getEmmRefreshAuthTokenValue ()Lcom/dropbox/core/v2/teamlog/EmmRefreshAuthTokenType; + public fun getEmmRemoveExceptionValue ()Lcom/dropbox/core/v2/teamlog/EmmRemoveExceptionType; + public fun getEnabledDomainInvitesValue ()Lcom/dropbox/core/v2/teamlog/EnabledDomainInvitesType; + public fun getEndedEnterpriseAdminSessionDeprecatedValue ()Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedType; + public fun getEndedEnterpriseAdminSessionValue ()Lcom/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionType; + public fun getEnterpriseSettingsLockingValue ()Lcom/dropbox/core/v2/teamlog/EnterpriseSettingsLockingType; + public fun getExportMembersReportFailValue ()Lcom/dropbox/core/v2/teamlog/ExportMembersReportFailType; + public fun getExportMembersReportValue ()Lcom/dropbox/core/v2/teamlog/ExportMembersReportType; + public fun getExtendedVersionHistoryChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyType; + public fun getExternalDriveBackupEligibilityStatusCheckedValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedType; + public fun getExternalDriveBackupPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedType; + public fun getExternalDriveBackupStatusChangedValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedType; + public fun getExternalSharingCreateReportValue ()Lcom/dropbox/core/v2/teamlog/ExternalSharingCreateReportType; + public fun getExternalSharingReportFailedValue ()Lcom/dropbox/core/v2/teamlog/ExternalSharingReportFailedType; + public fun getFileAddCommentValue ()Lcom/dropbox/core/v2/teamlog/FileAddCommentType; + public fun getFileAddFromAutomationValue ()Lcom/dropbox/core/v2/teamlog/FileAddFromAutomationType; + public fun getFileAddValue ()Lcom/dropbox/core/v2/teamlog/FileAddType; + public fun getFileChangeCommentSubscriptionValue ()Lcom/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionType; + public fun getFileCommentsChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/FileCommentsChangePolicyType; + public fun getFileCopyValue ()Lcom/dropbox/core/v2/teamlog/FileCopyType; + public fun getFileDeleteCommentValue ()Lcom/dropbox/core/v2/teamlog/FileDeleteCommentType; + public fun getFileDeleteValue ()Lcom/dropbox/core/v2/teamlog/FileDeleteType; + public fun getFileDownloadValue ()Lcom/dropbox/core/v2/teamlog/FileDownloadType; + public fun getFileEditCommentValue ()Lcom/dropbox/core/v2/teamlog/FileEditCommentType; + public fun getFileEditValue ()Lcom/dropbox/core/v2/teamlog/FileEditType; + public fun getFileGetCopyReferenceValue ()Lcom/dropbox/core/v2/teamlog/FileGetCopyReferenceType; + public fun getFileLikeCommentValue ()Lcom/dropbox/core/v2/teamlog/FileLikeCommentType; + public fun getFileLockingLockStatusChangedValue ()Lcom/dropbox/core/v2/teamlog/FileLockingLockStatusChangedType; + public fun getFileLockingPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/FileLockingPolicyChangedType; + public fun getFileMoveValue ()Lcom/dropbox/core/v2/teamlog/FileMoveType; + public fun getFilePermanentlyDeleteValue ()Lcom/dropbox/core/v2/teamlog/FilePermanentlyDeleteType; + public fun getFilePreviewValue ()Lcom/dropbox/core/v2/teamlog/FilePreviewType; + public fun getFileProviderMigrationPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedType; + public fun getFileRenameValue ()Lcom/dropbox/core/v2/teamlog/FileRenameType; + public fun getFileRequestChangeValue ()Lcom/dropbox/core/v2/teamlog/FileRequestChangeType; + public fun getFileRequestCloseValue ()Lcom/dropbox/core/v2/teamlog/FileRequestCloseType; + public fun getFileRequestCreateValue ()Lcom/dropbox/core/v2/teamlog/FileRequestCreateType; + public fun getFileRequestDeleteValue ()Lcom/dropbox/core/v2/teamlog/FileRequestDeleteType; + public fun getFileRequestReceiveFileValue ()Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileType; + public fun getFileRequestsChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsChangePolicyType; + public fun getFileRequestsEmailsEnabledValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledType; + public fun getFileRequestsEmailsRestrictedToTeamOnlyValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyType; + public fun getFileResolveCommentValue ()Lcom/dropbox/core/v2/teamlog/FileResolveCommentType; + public fun getFileRestoreValue ()Lcom/dropbox/core/v2/teamlog/FileRestoreType; + public fun getFileRevertValue ()Lcom/dropbox/core/v2/teamlog/FileRevertType; + public fun getFileRollbackChangesValue ()Lcom/dropbox/core/v2/teamlog/FileRollbackChangesType; + public fun getFileSaveCopyReferenceValue ()Lcom/dropbox/core/v2/teamlog/FileSaveCopyReferenceType; + public fun getFileTransfersFileAddValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersFileAddType; + public fun getFileTransfersPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersPolicyChangedType; + public fun getFileTransfersTransferDeleteValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDeleteType; + public fun getFileTransfersTransferDownloadValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferDownloadType; + public fun getFileTransfersTransferSendValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferSendType; + public fun getFileTransfersTransferViewValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersTransferViewType; + public fun getFileUnlikeCommentValue ()Lcom/dropbox/core/v2/teamlog/FileUnlikeCommentType; + public fun getFileUnresolveCommentValue ()Lcom/dropbox/core/v2/teamlog/FileUnresolveCommentType; + public fun getFolderLinkRestrictionPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedType; + public fun getFolderOverviewDescriptionChangedValue ()Lcom/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedType; + public fun getFolderOverviewItemPinnedValue ()Lcom/dropbox/core/v2/teamlog/FolderOverviewItemPinnedType; + public fun getFolderOverviewItemUnpinnedValue ()Lcom/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedType; + public fun getGoogleSsoChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/GoogleSsoChangePolicyType; + public fun getGovernancePolicyAddFolderFailedValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedType; + public fun getGovernancePolicyAddFoldersValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersType; + public fun getGovernancePolicyContentDisposedValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedType; + public fun getGovernancePolicyCreateValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateType; + public fun getGovernancePolicyDeleteValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyDeleteType; + public fun getGovernancePolicyEditDetailsValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsType; + public fun getGovernancePolicyEditDurationValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDurationType; + public fun getGovernancePolicyExportCreatedValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedType; + public fun getGovernancePolicyExportRemovedValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedType; + public fun getGovernancePolicyRemoveFoldersValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersType; + public fun getGovernancePolicyReportCreatedValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedType; + public fun getGovernancePolicyZipPartDownloadedValue ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedType; + public fun getGroupAddExternalIdValue ()Lcom/dropbox/core/v2/teamlog/GroupAddExternalIdType; + public fun getGroupAddMemberValue ()Lcom/dropbox/core/v2/teamlog/GroupAddMemberType; + public fun getGroupChangeExternalIdValue ()Lcom/dropbox/core/v2/teamlog/GroupChangeExternalIdType; + public fun getGroupChangeManagementTypeValue ()Lcom/dropbox/core/v2/teamlog/GroupChangeManagementTypeType; + public fun getGroupChangeMemberRoleValue ()Lcom/dropbox/core/v2/teamlog/GroupChangeMemberRoleType; + public fun getGroupCreateValue ()Lcom/dropbox/core/v2/teamlog/GroupCreateType; + public fun getGroupDeleteValue ()Lcom/dropbox/core/v2/teamlog/GroupDeleteType; + public fun getGroupDescriptionUpdatedValue ()Lcom/dropbox/core/v2/teamlog/GroupDescriptionUpdatedType; + public fun getGroupJoinPolicyUpdatedValue ()Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedType; + public fun getGroupMovedValue ()Lcom/dropbox/core/v2/teamlog/GroupMovedType; + public fun getGroupRemoveExternalIdValue ()Lcom/dropbox/core/v2/teamlog/GroupRemoveExternalIdType; + public fun getGroupRemoveMemberValue ()Lcom/dropbox/core/v2/teamlog/GroupRemoveMemberType; + public fun getGroupRenameValue ()Lcom/dropbox/core/v2/teamlog/GroupRenameType; + public fun getGroupUserManagementChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyType; + public fun getGuestAdminChangeStatusValue ()Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusType; + public fun getGuestAdminSignedInViaTrustedTeamsValue ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsType; + public fun getGuestAdminSignedOutViaTrustedTeamsValue ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsType; + public fun getIntegrationConnectedValue ()Lcom/dropbox/core/v2/teamlog/IntegrationConnectedType; + public fun getIntegrationDisconnectedValue ()Lcom/dropbox/core/v2/teamlog/IntegrationDisconnectedType; + public fun getIntegrationPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/IntegrationPolicyChangedType; + public fun getInviteAcceptanceEmailPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedType; + public fun getLegalHoldsActivateAHoldValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldType; + public fun getLegalHoldsAddMembersValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsAddMembersType; + public fun getLegalHoldsChangeHoldDetailsValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsType; + public fun getLegalHoldsChangeHoldNameValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameType; + public fun getLegalHoldsExportAHoldValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportAHoldType; + public fun getLegalHoldsExportCancelledValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportCancelledType; + public fun getLegalHoldsExportDownloadedValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedType; + public fun getLegalHoldsExportRemovedValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportRemovedType; + public fun getLegalHoldsReleaseAHoldValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldType; + public fun getLegalHoldsRemoveMembersValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersType; + public fun getLegalHoldsReportAHoldValue ()Lcom/dropbox/core/v2/teamlog/LegalHoldsReportAHoldType; + public fun getLoginFailValue ()Lcom/dropbox/core/v2/teamlog/LoginFailType; + public fun getLoginSuccessValue ()Lcom/dropbox/core/v2/teamlog/LoginSuccessType; + public fun getLogoutValue ()Lcom/dropbox/core/v2/teamlog/LogoutType; + public fun getMemberAddExternalIdValue ()Lcom/dropbox/core/v2/teamlog/MemberAddExternalIdType; + public fun getMemberAddNameValue ()Lcom/dropbox/core/v2/teamlog/MemberAddNameType; + public fun getMemberChangeAdminRoleValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleType; + public fun getMemberChangeEmailValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeEmailType; + public fun getMemberChangeExternalIdValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeExternalIdType; + public fun getMemberChangeMembershipTypeValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeMembershipTypeType; + public fun getMemberChangeNameValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeNameType; + public fun getMemberChangeResellerRoleValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeResellerRoleType; + public fun getMemberChangeStatusValue ()Lcom/dropbox/core/v2/teamlog/MemberChangeStatusType; + public fun getMemberDeleteManualContactsValue ()Lcom/dropbox/core/v2/teamlog/MemberDeleteManualContactsType; + public fun getMemberDeleteProfilePhotoValue ()Lcom/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoType; + public fun getMemberPermanentlyDeleteAccountContentsValue ()Lcom/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsType; + public fun getMemberRemoveExternalIdValue ()Lcom/dropbox/core/v2/teamlog/MemberRemoveExternalIdType; + public fun getMemberRequestsChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/MemberRequestsChangePolicyType; + public fun getMemberSendInvitePolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedType; + public fun getMemberSetProfilePhotoValue ()Lcom/dropbox/core/v2/teamlog/MemberSetProfilePhotoType; + public fun getMemberSpaceLimitsAddCustomQuotaValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaType; + public fun getMemberSpaceLimitsAddExceptionValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionType; + public fun getMemberSpaceLimitsChangeCapsTypePolicyValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyType; + public fun getMemberSpaceLimitsChangeCustomQuotaValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaType; + public fun getMemberSpaceLimitsChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyType; + public fun getMemberSpaceLimitsChangeStatusValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusType; + public fun getMemberSpaceLimitsRemoveCustomQuotaValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaType; + public fun getMemberSpaceLimitsRemoveExceptionValue ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionType; + public fun getMemberSuggestValue ()Lcom/dropbox/core/v2/teamlog/MemberSuggestType; + public fun getMemberSuggestionsChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyType; + public fun getMemberTransferAccountContentsValue ()Lcom/dropbox/core/v2/teamlog/MemberTransferAccountContentsType; + public fun getMicrosoftOfficeAddinChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyType; + public fun getNetworkControlChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/NetworkControlChangePolicyType; + public fun getNoExpirationLinkGenCreateReportValue ()Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportType; + public fun getNoExpirationLinkGenReportFailedValue ()Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedType; + public fun getNoPasswordLinkGenCreateReportValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportType; + public fun getNoPasswordLinkGenReportFailedValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedType; + public fun getNoPasswordLinkViewCreateReportValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportType; + public fun getNoPasswordLinkViewReportFailedValue ()Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedType; + public fun getNoteAclInviteOnlyValue ()Lcom/dropbox/core/v2/teamlog/NoteAclInviteOnlyType; + public fun getNoteAclLinkValue ()Lcom/dropbox/core/v2/teamlog/NoteAclLinkType; + public fun getNoteAclTeamLinkValue ()Lcom/dropbox/core/v2/teamlog/NoteAclTeamLinkType; + public fun getNoteShareReceiveValue ()Lcom/dropbox/core/v2/teamlog/NoteShareReceiveType; + public fun getNoteSharedValue ()Lcom/dropbox/core/v2/teamlog/NoteSharedType; + public fun getObjectLabelAddedValue ()Lcom/dropbox/core/v2/teamlog/ObjectLabelAddedType; + public fun getObjectLabelRemovedValue ()Lcom/dropbox/core/v2/teamlog/ObjectLabelRemovedType; + public fun getObjectLabelUpdatedValueValue ()Lcom/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueType; + public fun getOpenNoteSharedValue ()Lcom/dropbox/core/v2/teamlog/OpenNoteSharedType; + public fun getOrganizeFolderWithTidyValue ()Lcom/dropbox/core/v2/teamlog/OrganizeFolderWithTidyType; + public fun getOutdatedLinkViewCreateReportValue ()Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportType; + public fun getOutdatedLinkViewReportFailedValue ()Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedType; + public fun getPaperAdminExportStartValue ()Lcom/dropbox/core/v2/teamlog/PaperAdminExportStartType; + public fun getPaperChangeDeploymentPolicyValue ()Lcom/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyType; + public fun getPaperChangeMemberLinkPolicyValue ()Lcom/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyType; + public fun getPaperChangeMemberPolicyValue ()Lcom/dropbox/core/v2/teamlog/PaperChangeMemberPolicyType; + public fun getPaperChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/PaperChangePolicyType; + public fun getPaperContentAddMemberValue ()Lcom/dropbox/core/v2/teamlog/PaperContentAddMemberType; + public fun getPaperContentAddToFolderValue ()Lcom/dropbox/core/v2/teamlog/PaperContentAddToFolderType; + public fun getPaperContentArchiveValue ()Lcom/dropbox/core/v2/teamlog/PaperContentArchiveType; + public fun getPaperContentCreateValue ()Lcom/dropbox/core/v2/teamlog/PaperContentCreateType; + public fun getPaperContentPermanentlyDeleteValue ()Lcom/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteType; + public fun getPaperContentRemoveFromFolderValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderType; + public fun getPaperContentRemoveMemberValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRemoveMemberType; + public fun getPaperContentRenameValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRenameType; + public fun getPaperContentRestoreValue ()Lcom/dropbox/core/v2/teamlog/PaperContentRestoreType; + public fun getPaperDefaultFolderPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedType; + public fun getPaperDesktopPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedType; + public fun getPaperDocAddCommentValue ()Lcom/dropbox/core/v2/teamlog/PaperDocAddCommentType; + public fun getPaperDocChangeMemberRoleValue ()Lcom/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleType; + public fun getPaperDocChangeSharingPolicyValue ()Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyType; + public fun getPaperDocChangeSubscriptionValue ()Lcom/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionType; + public fun getPaperDocDeleteCommentValue ()Lcom/dropbox/core/v2/teamlog/PaperDocDeleteCommentType; + public fun getPaperDocDeletedValue ()Lcom/dropbox/core/v2/teamlog/PaperDocDeletedType; + public fun getPaperDocDownloadValue ()Lcom/dropbox/core/v2/teamlog/PaperDocDownloadType; + public fun getPaperDocEditCommentValue ()Lcom/dropbox/core/v2/teamlog/PaperDocEditCommentType; + public fun getPaperDocEditValue ()Lcom/dropbox/core/v2/teamlog/PaperDocEditType; + public fun getPaperDocFollowedValue ()Lcom/dropbox/core/v2/teamlog/PaperDocFollowedType; + public fun getPaperDocMentionValue ()Lcom/dropbox/core/v2/teamlog/PaperDocMentionType; + public fun getPaperDocOwnershipChangedValue ()Lcom/dropbox/core/v2/teamlog/PaperDocOwnershipChangedType; + public fun getPaperDocRequestAccessValue ()Lcom/dropbox/core/v2/teamlog/PaperDocRequestAccessType; + public fun getPaperDocResolveCommentValue ()Lcom/dropbox/core/v2/teamlog/PaperDocResolveCommentType; + public fun getPaperDocRevertValue ()Lcom/dropbox/core/v2/teamlog/PaperDocRevertType; + public fun getPaperDocSlackShareValue ()Lcom/dropbox/core/v2/teamlog/PaperDocSlackShareType; + public fun getPaperDocTeamInviteValue ()Lcom/dropbox/core/v2/teamlog/PaperDocTeamInviteType; + public fun getPaperDocTrashedValue ()Lcom/dropbox/core/v2/teamlog/PaperDocTrashedType; + public fun getPaperDocUnresolveCommentValue ()Lcom/dropbox/core/v2/teamlog/PaperDocUnresolveCommentType; + public fun getPaperDocUntrashedValue ()Lcom/dropbox/core/v2/teamlog/PaperDocUntrashedType; + public fun getPaperDocViewValue ()Lcom/dropbox/core/v2/teamlog/PaperDocViewType; + public fun getPaperEnabledUsersGroupAdditionValue ()Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionType; + public fun getPaperEnabledUsersGroupRemovalValue ()Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalType; + public fun getPaperExternalViewAllowValue ()Lcom/dropbox/core/v2/teamlog/PaperExternalViewAllowType; + public fun getPaperExternalViewDefaultTeamValue ()Lcom/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamType; + public fun getPaperExternalViewForbidValue ()Lcom/dropbox/core/v2/teamlog/PaperExternalViewForbidType; + public fun getPaperFolderChangeSubscriptionValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionType; + public fun getPaperFolderDeletedValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderDeletedType; + public fun getPaperFolderFollowedValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderFollowedType; + public fun getPaperFolderTeamInviteValue ()Lcom/dropbox/core/v2/teamlog/PaperFolderTeamInviteType; + public fun getPaperPublishedLinkChangePermissionValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionType; + public fun getPaperPublishedLinkCreateValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkCreateType; + public fun getPaperPublishedLinkDisabledValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledType; + public fun getPaperPublishedLinkViewValue ()Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkViewType; + public fun getPasswordChangeValue ()Lcom/dropbox/core/v2/teamlog/PasswordChangeType; + public fun getPasswordResetAllValue ()Lcom/dropbox/core/v2/teamlog/PasswordResetAllType; + public fun getPasswordResetValue ()Lcom/dropbox/core/v2/teamlog/PasswordResetType; + public fun getPasswordStrengthRequirementsChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyType; + public fun getPendingSecondaryEmailAddedValue ()Lcom/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedType; + public fun getPermanentDeleteChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyType; + public fun getRansomwareAlertCreateReportFailedValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType; + public fun getRansomwareAlertCreateReportValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType; + public fun getRansomwareRestoreProcessCompletedValue ()Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedType; + public fun getRansomwareRestoreProcessStartedValue ()Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedType; + public fun getReplayFileDeleteValue ()Lcom/dropbox/core/v2/teamlog/ReplayFileDeleteType; + public fun getReplayFileSharedLinkCreatedValue ()Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedType; + public fun getReplayFileSharedLinkModifiedValue ()Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedType; + public fun getReplayProjectTeamAddValue ()Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamAddType; + public fun getReplayProjectTeamDeleteValue ()Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteType; + public fun getResellerSupportChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportChangePolicyType; + public fun getResellerSupportSessionEndValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionEndType; + public fun getResellerSupportSessionStartValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionStartType; + public fun getRewindFolderValue ()Lcom/dropbox/core/v2/teamlog/RewindFolderType; + public fun getRewindPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/RewindPolicyChangedType; + public fun getSecondaryEmailDeletedValue ()Lcom/dropbox/core/v2/teamlog/SecondaryEmailDeletedType; + public fun getSecondaryEmailVerifiedValue ()Lcom/dropbox/core/v2/teamlog/SecondaryEmailVerifiedType; + public fun getSecondaryMailsPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedType; + public fun getSendForSignaturePolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedType; + public fun getSfAddGroupValue ()Lcom/dropbox/core/v2/teamlog/SfAddGroupType; + public fun getSfAllowNonMembersToViewSharedLinksValue ()Lcom/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksType; + public fun getSfExternalInviteWarnValue ()Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnType; + public fun getSfFbInviteChangeRoleValue ()Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleType; + public fun getSfFbInviteValue ()Lcom/dropbox/core/v2/teamlog/SfFbInviteType; + public fun getSfFbUninviteValue ()Lcom/dropbox/core/v2/teamlog/SfFbUninviteType; + public fun getSfInviteGroupValue ()Lcom/dropbox/core/v2/teamlog/SfInviteGroupType; + public fun getSfTeamGrantAccessValue ()Lcom/dropbox/core/v2/teamlog/SfTeamGrantAccessType; + public fun getSfTeamInviteChangeRoleValue ()Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleType; + public fun getSfTeamInviteValue ()Lcom/dropbox/core/v2/teamlog/SfTeamInviteType; + public fun getSfTeamJoinFromOobLinkValue ()Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkType; + public fun getSfTeamJoinValue ()Lcom/dropbox/core/v2/teamlog/SfTeamJoinType; + public fun getSfTeamUninviteValue ()Lcom/dropbox/core/v2/teamlog/SfTeamUninviteType; + public fun getSharedContentAddInviteesValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddInviteesType; + public fun getSharedContentAddLinkExpiryValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryType; + public fun getSharedContentAddLinkPasswordValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordType; + public fun getSharedContentAddMemberValue ()Lcom/dropbox/core/v2/teamlog/SharedContentAddMemberType; + public fun getSharedContentChangeDownloadsPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyType; + public fun getSharedContentChangeInviteeRoleValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleType; + public fun getSharedContentChangeLinkAudienceValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceType; + public fun getSharedContentChangeLinkExpiryValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryType; + public fun getSharedContentChangeLinkPasswordValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordType; + public fun getSharedContentChangeMemberRoleValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleType; + public fun getSharedContentChangeViewerInfoPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyType; + public fun getSharedContentClaimInvitationValue ()Lcom/dropbox/core/v2/teamlog/SharedContentClaimInvitationType; + public fun getSharedContentCopyValue ()Lcom/dropbox/core/v2/teamlog/SharedContentCopyType; + public fun getSharedContentDownloadValue ()Lcom/dropbox/core/v2/teamlog/SharedContentDownloadType; + public fun getSharedContentRelinquishMembershipValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipType; + public fun getSharedContentRemoveInviteesValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveInviteesType; + public fun getSharedContentRemoveLinkExpiryValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryType; + public fun getSharedContentRemoveLinkPasswordValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordType; + public fun getSharedContentRemoveMemberValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRemoveMemberType; + public fun getSharedContentRequestAccessValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRequestAccessType; + public fun getSharedContentRestoreInviteesValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRestoreInviteesType; + public fun getSharedContentRestoreMemberValue ()Lcom/dropbox/core/v2/teamlog/SharedContentRestoreMemberType; + public fun getSharedContentUnshareValue ()Lcom/dropbox/core/v2/teamlog/SharedContentUnshareType; + public fun getSharedContentViewValue ()Lcom/dropbox/core/v2/teamlog/SharedContentViewType; + public fun getSharedFolderChangeLinkPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyType; + public fun getSharedFolderChangeMembersInheritancePolicyValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyType; + public fun getSharedFolderChangeMembersManagementPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyType; + public fun getSharedFolderChangeMembersPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyType; + public fun getSharedFolderCreateValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderCreateType; + public fun getSharedFolderDeclineInvitationValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType; + public fun getSharedFolderMountValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderMountType; + public fun getSharedFolderNestValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderNestType; + public fun getSharedFolderTransferOwnershipValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType; + public fun getSharedFolderUnmountValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountType; + public fun getSharedLinkAddExpiryValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkAddExpiryType; + public fun getSharedLinkChangeExpiryValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryType; + public fun getSharedLinkChangeVisibilityValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityType; + public fun getSharedLinkCopyValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkCopyType; + public fun getSharedLinkCreateValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkCreateType; + public fun getSharedLinkDisableValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkDisableType; + public fun getSharedLinkDownloadValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkDownloadType; + public fun getSharedLinkRemoveExpiryValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryType; + public fun getSharedLinkSettingsAddExpirationValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationType; + public fun getSharedLinkSettingsAddPasswordValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordType; + public fun getSharedLinkSettingsAllowDownloadDisabledValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledType; + public fun getSharedLinkSettingsAllowDownloadEnabledValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledType; + public fun getSharedLinkSettingsChangeAudienceValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceType; + public fun getSharedLinkSettingsChangeExpirationValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationType; + public fun getSharedLinkSettingsChangePasswordValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordType; + public fun getSharedLinkSettingsRemoveExpirationValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationType; + public fun getSharedLinkSettingsRemovePasswordValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordType; + public fun getSharedLinkShareValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkShareType; + public fun getSharedLinkViewValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkViewType; + public fun getSharedNoteOpenedValue ()Lcom/dropbox/core/v2/teamlog/SharedNoteOpenedType; + public fun getSharingChangeFolderJoinPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyType; + public fun getSharingChangeLinkAllowChangeExpirationPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyType; + public fun getSharingChangeLinkDefaultExpirationPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyType; + public fun getSharingChangeLinkEnforcePasswordPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyType; + public fun getSharingChangeLinkPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeLinkPolicyType; + public fun getSharingChangeMemberPolicyValue ()Lcom/dropbox/core/v2/teamlog/SharingChangeMemberPolicyType; + public fun getShmodelDisableDownloadsValue ()Lcom/dropbox/core/v2/teamlog/ShmodelDisableDownloadsType; + public fun getShmodelEnableDownloadsValue ()Lcom/dropbox/core/v2/teamlog/ShmodelEnableDownloadsType; + public fun getShmodelGroupShareValue ()Lcom/dropbox/core/v2/teamlog/ShmodelGroupShareType; + public fun getShowcaseAccessGrantedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseAccessGrantedType; + public fun getShowcaseAddMemberValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseAddMemberType; + public fun getShowcaseArchivedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseArchivedType; + public fun getShowcaseChangeDownloadPolicyValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyType; + public fun getShowcaseChangeEnabledPolicyValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyType; + public fun getShowcaseChangeExternalSharingPolicyValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyType; + public fun getShowcaseCreatedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseCreatedType; + public fun getShowcaseDeleteCommentValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseDeleteCommentType; + public fun getShowcaseEditCommentValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseEditCommentType; + public fun getShowcaseEditedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseEditedType; + public fun getShowcaseFileAddedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileAddedType; + public fun getShowcaseFileDownloadValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileDownloadType; + public fun getShowcaseFileRemovedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileRemovedType; + public fun getShowcaseFileViewValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseFileViewType; + public fun getShowcasePermanentlyDeletedValue ()Lcom/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedType; + public fun getShowcasePostCommentValue ()Lcom/dropbox/core/v2/teamlog/ShowcasePostCommentType; + public fun getShowcaseRemoveMemberValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRemoveMemberType; + public fun getShowcaseRenamedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRenamedType; + public fun getShowcaseRequestAccessValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRequestAccessType; + public fun getShowcaseResolveCommentValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseResolveCommentType; + public fun getShowcaseRestoredValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseRestoredType; + public fun getShowcaseTrashedDeprecatedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedType; + public fun getShowcaseTrashedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedType; + public fun getShowcaseUnresolveCommentValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentType; + public fun getShowcaseUntrashedDeprecatedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedType; + public fun getShowcaseUntrashedValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedType; + public fun getShowcaseViewValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseViewType; + public fun getSignInAsSessionEndValue ()Lcom/dropbox/core/v2/teamlog/SignInAsSessionEndType; + public fun getSignInAsSessionStartValue ()Lcom/dropbox/core/v2/teamlog/SignInAsSessionStartType; + public fun getSmartSyncChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyType; + public fun getSmartSyncCreateAdminPrivilegeReportValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportType; + public fun getSmartSyncNotOptOutValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncNotOptOutType; + public fun getSmartSyncOptOutValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutType; + public fun getSmarterSmartSyncPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedType; + public fun getSsoAddCertValue ()Lcom/dropbox/core/v2/teamlog/SsoAddCertType; + public fun getSsoAddLoginUrlValue ()Lcom/dropbox/core/v2/teamlog/SsoAddLoginUrlType; + public fun getSsoAddLogoutUrlValue ()Lcom/dropbox/core/v2/teamlog/SsoAddLogoutUrlType; + public fun getSsoChangeCertValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeCertType; + public fun getSsoChangeLoginUrlValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeLoginUrlType; + public fun getSsoChangeLogoutUrlValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlType; + public fun getSsoChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/SsoChangePolicyType; + public fun getSsoChangeSamlIdentityModeValue ()Lcom/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeType; + public fun getSsoErrorValue ()Lcom/dropbox/core/v2/teamlog/SsoErrorType; + public fun getSsoRemoveCertValue ()Lcom/dropbox/core/v2/teamlog/SsoRemoveCertType; + public fun getSsoRemoveLoginUrlValue ()Lcom/dropbox/core/v2/teamlog/SsoRemoveLoginUrlType; + public fun getSsoRemoveLogoutUrlValue ()Lcom/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlType; + public fun getStartedEnterpriseAdminSessionValue ()Lcom/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionType; + public fun getTeamActivityCreateReportFailValue ()Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportFailType; + public fun getTeamActivityCreateReportValue ()Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportType; + public fun getTeamBrandingPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedType; + public fun getTeamEncryptionKeyCancelKeyDeletionValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionType; + public fun getTeamEncryptionKeyCreateKeyValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyType; + public fun getTeamEncryptionKeyDeleteKeyValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyType; + public fun getTeamEncryptionKeyDisableKeyValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyType; + public fun getTeamEncryptionKeyEnableKeyValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyType; + public fun getTeamEncryptionKeyRotateKeyValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyType; + public fun getTeamEncryptionKeyScheduleKeyDeletionValue ()Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionType; + public fun getTeamExtensionsPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedType; + public fun getTeamFolderChangeStatusValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderChangeStatusType; + public fun getTeamFolderCreateValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderCreateType; + public fun getTeamFolderDowngradeValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderDowngradeType; + public fun getTeamFolderPermanentlyDeleteValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteType; + public fun getTeamFolderRenameValue ()Lcom/dropbox/core/v2/teamlog/TeamFolderRenameType; + public fun getTeamMergeFromValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeFromType; + public fun getTeamMergeRequestAcceptedShownToPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamType; + public fun getTeamMergeRequestAcceptedShownToSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamType; + public fun getTeamMergeRequestAcceptedValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedType; + public fun getTeamMergeRequestAutoCanceledValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledType; + public fun getTeamMergeRequestCanceledShownToPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamType; + public fun getTeamMergeRequestCanceledShownToSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamType; + public fun getTeamMergeRequestCanceledValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledType; + public fun getTeamMergeRequestExpiredShownToPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamType; + public fun getTeamMergeRequestExpiredShownToSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamType; + public fun getTeamMergeRequestExpiredValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredType; + public fun getTeamMergeRequestRejectedShownToPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamType; + public fun getTeamMergeRequestRejectedShownToSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamType; + public fun getTeamMergeRequestReminderShownToPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamType; + public fun getTeamMergeRequestReminderShownToSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamType; + public fun getTeamMergeRequestReminderValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderType; + public fun getTeamMergeRequestRevokedValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRevokedType; + public fun getTeamMergeRequestSentShownToPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamType; + public fun getTeamMergeRequestSentShownToSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamType; + public fun getTeamMergeToValue ()Lcom/dropbox/core/v2/teamlog/TeamMergeToType; + public fun getTeamProfileAddBackgroundValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileAddBackgroundType; + public fun getTeamProfileAddLogoValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileAddLogoType; + public fun getTeamProfileChangeBackgroundValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundType; + public fun getTeamProfileChangeDefaultLanguageValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageType; + public fun getTeamProfileChangeLogoValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeLogoType; + public fun getTeamProfileChangeNameValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileChangeNameType; + public fun getTeamProfileRemoveBackgroundValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundType; + public fun getTeamProfileRemoveLogoValue ()Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveLogoType; + public fun getTeamSelectiveSyncPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedType; + public fun getTeamSelectiveSyncSettingsChangedValue ()Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedType; + public fun getTeamSharingWhitelistSubjectsChangedValue ()Lcom/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedType; + public fun getTfaAddBackupPhoneValue ()Lcom/dropbox/core/v2/teamlog/TfaAddBackupPhoneType; + public fun getTfaAddExceptionValue ()Lcom/dropbox/core/v2/teamlog/TfaAddExceptionType; + public fun getTfaAddSecurityKeyValue ()Lcom/dropbox/core/v2/teamlog/TfaAddSecurityKeyType; + public fun getTfaChangeBackupPhoneValue ()Lcom/dropbox/core/v2/teamlog/TfaChangeBackupPhoneType; + public fun getTfaChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/TfaChangePolicyType; + public fun getTfaChangeStatusValue ()Lcom/dropbox/core/v2/teamlog/TfaChangeStatusType; + public fun getTfaRemoveBackupPhoneValue ()Lcom/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneType; + public fun getTfaRemoveExceptionValue ()Lcom/dropbox/core/v2/teamlog/TfaRemoveExceptionType; + public fun getTfaRemoveSecurityKeyValue ()Lcom/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyType; + public fun getTfaResetValue ()Lcom/dropbox/core/v2/teamlog/TfaResetType; + public fun getTwoAccountChangePolicyValue ()Lcom/dropbox/core/v2/teamlog/TwoAccountChangePolicyType; + public fun getUndoNamingConventionValue ()Lcom/dropbox/core/v2/teamlog/UndoNamingConventionType; + public fun getUndoOrganizeFolderWithTidyValue ()Lcom/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyType; + public fun getUserTagsAddedValue ()Lcom/dropbox/core/v2/teamlog/UserTagsAddedType; + public fun getUserTagsRemovedValue ()Lcom/dropbox/core/v2/teamlog/UserTagsRemovedType; + public fun getViewerInfoPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedType; + public fun getWatermarkingPolicyChangedValue ()Lcom/dropbox/core/v2/teamlog/WatermarkingPolicyChangedType; + public fun getWebSessionsChangeActiveSessionLimitValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitType; + public fun getWebSessionsChangeFixedLengthPolicyValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyType; + public fun getWebSessionsChangeIdleLengthPolicyValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyType; + public static fun googleSsoChangePolicy (Lcom/dropbox/core/v2/teamlog/GoogleSsoChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyAddFolderFailed (Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyAddFolders (Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyContentDisposed (Lcom/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyCreate (Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyDelete (Lcom/dropbox/core/v2/teamlog/GovernancePolicyDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyEditDetails (Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyEditDuration (Lcom/dropbox/core/v2/teamlog/GovernancePolicyEditDurationType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyExportCreated (Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyExportRemoved (Lcom/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyRemoveFolders (Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyReportCreated (Lcom/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun governancePolicyZipPartDownloaded (Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupAddExternalId (Lcom/dropbox/core/v2/teamlog/GroupAddExternalIdType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupAddMember (Lcom/dropbox/core/v2/teamlog/GroupAddMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupChangeExternalId (Lcom/dropbox/core/v2/teamlog/GroupChangeExternalIdType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupChangeManagementType (Lcom/dropbox/core/v2/teamlog/GroupChangeManagementTypeType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupChangeMemberRole (Lcom/dropbox/core/v2/teamlog/GroupChangeMemberRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupCreate (Lcom/dropbox/core/v2/teamlog/GroupCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupDelete (Lcom/dropbox/core/v2/teamlog/GroupDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupDescriptionUpdated (Lcom/dropbox/core/v2/teamlog/GroupDescriptionUpdatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupJoinPolicyUpdated (Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupMoved (Lcom/dropbox/core/v2/teamlog/GroupMovedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupRemoveExternalId (Lcom/dropbox/core/v2/teamlog/GroupRemoveExternalIdType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupRemoveMember (Lcom/dropbox/core/v2/teamlog/GroupRemoveMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupRename (Lcom/dropbox/core/v2/teamlog/GroupRenameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun groupUserManagementChangePolicy (Lcom/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun guestAdminChangeStatus (Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun guestAdminSignedInViaTrustedTeams (Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun guestAdminSignedOutViaTrustedTeams (Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public fun hashCode ()I + public static fun integrationConnected (Lcom/dropbox/core/v2/teamlog/IntegrationConnectedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun integrationDisconnected (Lcom/dropbox/core/v2/teamlog/IntegrationDisconnectedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun integrationPolicyChanged (Lcom/dropbox/core/v2/teamlog/IntegrationPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun inviteAcceptanceEmailPolicyChanged (Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public fun isAccountCaptureChangeAvailability ()Z + public fun isAccountCaptureChangePolicy ()Z + public fun isAccountCaptureMigrateAccount ()Z + public fun isAccountCaptureNotificationEmailsSent ()Z + public fun isAccountCaptureRelinquishAccount ()Z + public fun isAccountLockOrUnlocked ()Z + public fun isAdminAlertingAlertStateChanged ()Z + public fun isAdminAlertingChangedAlertConfig ()Z + public fun isAdminAlertingTriggeredAlert ()Z + public fun isAdminEmailRemindersChanged ()Z + public fun isAllowDownloadDisabled ()Z + public fun isAllowDownloadEnabled ()Z + public fun isAppBlockedByPermissions ()Z + public fun isAppLinkTeam ()Z + public fun isAppLinkUser ()Z + public fun isAppPermissionsChanged ()Z + public fun isAppUnlinkTeam ()Z + public fun isAppUnlinkUser ()Z + public fun isApplyNamingConvention ()Z + public fun isBackupAdminInvitationSent ()Z + public fun isBackupInvitationOpened ()Z + public fun isBinderAddPage ()Z + public fun isBinderAddSection ()Z + public fun isBinderRemovePage ()Z + public fun isBinderRemoveSection ()Z + public fun isBinderRenamePage ()Z + public fun isBinderRenameSection ()Z + public fun isBinderReorderPage ()Z + public fun isBinderReorderSection ()Z + public fun isCameraUploadsPolicyChanged ()Z + public fun isCaptureTranscriptPolicyChanged ()Z + public fun isChangedEnterpriseAdminRole ()Z + public fun isChangedEnterpriseConnectedTeamStatus ()Z + public fun isClassificationChangePolicy ()Z + public fun isClassificationCreateReport ()Z + public fun isClassificationCreateReportFail ()Z + public fun isCollectionShare ()Z + public fun isComputerBackupPolicyChanged ()Z + public fun isContentAdministrationPolicyChanged ()Z + public fun isCreateFolder ()Z + public fun isCreateTeamInviteLink ()Z + public fun isDataPlacementRestrictionChangePolicy ()Z + public fun isDataPlacementRestrictionSatisfyPolicy ()Z + public fun isDataResidencyMigrationRequestSuccessful ()Z + public fun isDataResidencyMigrationRequestUnsuccessful ()Z + public fun isDeleteTeamInviteLink ()Z + public fun isDeviceApprovalsAddException ()Z + public fun isDeviceApprovalsChangeDesktopPolicy ()Z + public fun isDeviceApprovalsChangeMobilePolicy ()Z + public fun isDeviceApprovalsChangeOverageAction ()Z + public fun isDeviceApprovalsChangeUnlinkAction ()Z + public fun isDeviceApprovalsRemoveException ()Z + public fun isDeviceChangeIpDesktop ()Z + public fun isDeviceChangeIpMobile ()Z + public fun isDeviceChangeIpWeb ()Z + public fun isDeviceDeleteOnUnlinkFail ()Z + public fun isDeviceDeleteOnUnlinkSuccess ()Z + public fun isDeviceLinkFail ()Z + public fun isDeviceLinkSuccess ()Z + public fun isDeviceManagementDisabled ()Z + public fun isDeviceManagementEnabled ()Z + public fun isDeviceSyncBackupStatusChanged ()Z + public fun isDeviceUnlink ()Z + public fun isDirectoryRestrictionsAddMembers ()Z + public fun isDirectoryRestrictionsRemoveMembers ()Z + public fun isDisabledDomainInvites ()Z + public fun isDomainInvitesApproveRequestToJoinTeam ()Z + public fun isDomainInvitesDeclineRequestToJoinTeam ()Z + public fun isDomainInvitesEmailExistingUsers ()Z + public fun isDomainInvitesRequestToJoinTeam ()Z + public fun isDomainInvitesSetInviteNewUserPrefToNo ()Z + public fun isDomainInvitesSetInviteNewUserPrefToYes ()Z + public fun isDomainVerificationAddDomainFail ()Z + public fun isDomainVerificationAddDomainSuccess ()Z + public fun isDomainVerificationRemoveDomain ()Z + public fun isDropboxPasswordsExported ()Z + public fun isDropboxPasswordsNewDeviceEnrolled ()Z + public fun isDropboxPasswordsPolicyChanged ()Z + public fun isEmailIngestPolicyChanged ()Z + public fun isEmailIngestReceiveFile ()Z + public fun isEmmAddException ()Z + public fun isEmmChangePolicy ()Z + public fun isEmmCreateExceptionsReport ()Z + public fun isEmmCreateUsageReport ()Z + public fun isEmmError ()Z + public fun isEmmRefreshAuthToken ()Z + public fun isEmmRemoveException ()Z + public fun isEnabledDomainInvites ()Z + public fun isEndedEnterpriseAdminSession ()Z + public fun isEndedEnterpriseAdminSessionDeprecated ()Z + public fun isEnterpriseSettingsLocking ()Z + public fun isExportMembersReport ()Z + public fun isExportMembersReportFail ()Z + public fun isExtendedVersionHistoryChangePolicy ()Z + public fun isExternalDriveBackupEligibilityStatusChecked ()Z + public fun isExternalDriveBackupPolicyChanged ()Z + public fun isExternalDriveBackupStatusChanged ()Z + public fun isExternalSharingCreateReport ()Z + public fun isExternalSharingReportFailed ()Z + public fun isFileAdd ()Z + public fun isFileAddComment ()Z + public fun isFileAddFromAutomation ()Z + public fun isFileChangeCommentSubscription ()Z + public fun isFileCommentsChangePolicy ()Z + public fun isFileCopy ()Z + public fun isFileDelete ()Z + public fun isFileDeleteComment ()Z + public fun isFileDownload ()Z + public fun isFileEdit ()Z + public fun isFileEditComment ()Z + public fun isFileGetCopyReference ()Z + public fun isFileLikeComment ()Z + public fun isFileLockingLockStatusChanged ()Z + public fun isFileLockingPolicyChanged ()Z + public fun isFileMove ()Z + public fun isFilePermanentlyDelete ()Z + public fun isFilePreview ()Z + public fun isFileProviderMigrationPolicyChanged ()Z + public fun isFileRename ()Z + public fun isFileRequestChange ()Z + public fun isFileRequestClose ()Z + public fun isFileRequestCreate ()Z + public fun isFileRequestDelete ()Z + public fun isFileRequestReceiveFile ()Z + public fun isFileRequestsChangePolicy ()Z + public fun isFileRequestsEmailsEnabled ()Z + public fun isFileRequestsEmailsRestrictedToTeamOnly ()Z + public fun isFileResolveComment ()Z + public fun isFileRestore ()Z + public fun isFileRevert ()Z + public fun isFileRollbackChanges ()Z + public fun isFileSaveCopyReference ()Z + public fun isFileTransfersFileAdd ()Z + public fun isFileTransfersPolicyChanged ()Z + public fun isFileTransfersTransferDelete ()Z + public fun isFileTransfersTransferDownload ()Z + public fun isFileTransfersTransferSend ()Z + public fun isFileTransfersTransferView ()Z + public fun isFileUnlikeComment ()Z + public fun isFileUnresolveComment ()Z + public fun isFolderLinkRestrictionPolicyChanged ()Z + public fun isFolderOverviewDescriptionChanged ()Z + public fun isFolderOverviewItemPinned ()Z + public fun isFolderOverviewItemUnpinned ()Z + public fun isGoogleSsoChangePolicy ()Z + public fun isGovernancePolicyAddFolderFailed ()Z + public fun isGovernancePolicyAddFolders ()Z + public fun isGovernancePolicyContentDisposed ()Z + public fun isGovernancePolicyCreate ()Z + public fun isGovernancePolicyDelete ()Z + public fun isGovernancePolicyEditDetails ()Z + public fun isGovernancePolicyEditDuration ()Z + public fun isGovernancePolicyExportCreated ()Z + public fun isGovernancePolicyExportRemoved ()Z + public fun isGovernancePolicyRemoveFolders ()Z + public fun isGovernancePolicyReportCreated ()Z + public fun isGovernancePolicyZipPartDownloaded ()Z + public fun isGroupAddExternalId ()Z + public fun isGroupAddMember ()Z + public fun isGroupChangeExternalId ()Z + public fun isGroupChangeManagementType ()Z + public fun isGroupChangeMemberRole ()Z + public fun isGroupCreate ()Z + public fun isGroupDelete ()Z + public fun isGroupDescriptionUpdated ()Z + public fun isGroupJoinPolicyUpdated ()Z + public fun isGroupMoved ()Z + public fun isGroupRemoveExternalId ()Z + public fun isGroupRemoveMember ()Z + public fun isGroupRename ()Z + public fun isGroupUserManagementChangePolicy ()Z + public fun isGuestAdminChangeStatus ()Z + public fun isGuestAdminSignedInViaTrustedTeams ()Z + public fun isGuestAdminSignedOutViaTrustedTeams ()Z + public fun isIntegrationConnected ()Z + public fun isIntegrationDisconnected ()Z + public fun isIntegrationPolicyChanged ()Z + public fun isInviteAcceptanceEmailPolicyChanged ()Z + public fun isLegalHoldsActivateAHold ()Z + public fun isLegalHoldsAddMembers ()Z + public fun isLegalHoldsChangeHoldDetails ()Z + public fun isLegalHoldsChangeHoldName ()Z + public fun isLegalHoldsExportAHold ()Z + public fun isLegalHoldsExportCancelled ()Z + public fun isLegalHoldsExportDownloaded ()Z + public fun isLegalHoldsExportRemoved ()Z + public fun isLegalHoldsReleaseAHold ()Z + public fun isLegalHoldsRemoveMembers ()Z + public fun isLegalHoldsReportAHold ()Z + public fun isLoginFail ()Z + public fun isLoginSuccess ()Z + public fun isLogout ()Z + public fun isMemberAddExternalId ()Z + public fun isMemberAddName ()Z + public fun isMemberChangeAdminRole ()Z + public fun isMemberChangeEmail ()Z + public fun isMemberChangeExternalId ()Z + public fun isMemberChangeMembershipType ()Z + public fun isMemberChangeName ()Z + public fun isMemberChangeResellerRole ()Z + public fun isMemberChangeStatus ()Z + public fun isMemberDeleteManualContacts ()Z + public fun isMemberDeleteProfilePhoto ()Z + public fun isMemberPermanentlyDeleteAccountContents ()Z + public fun isMemberRemoveExternalId ()Z + public fun isMemberRequestsChangePolicy ()Z + public fun isMemberSendInvitePolicyChanged ()Z + public fun isMemberSetProfilePhoto ()Z + public fun isMemberSpaceLimitsAddCustomQuota ()Z + public fun isMemberSpaceLimitsAddException ()Z + public fun isMemberSpaceLimitsChangeCapsTypePolicy ()Z + public fun isMemberSpaceLimitsChangeCustomQuota ()Z + public fun isMemberSpaceLimitsChangePolicy ()Z + public fun isMemberSpaceLimitsChangeStatus ()Z + public fun isMemberSpaceLimitsRemoveCustomQuota ()Z + public fun isMemberSpaceLimitsRemoveException ()Z + public fun isMemberSuggest ()Z + public fun isMemberSuggestionsChangePolicy ()Z + public fun isMemberTransferAccountContents ()Z + public fun isMicrosoftOfficeAddinChangePolicy ()Z + public fun isNetworkControlChangePolicy ()Z + public fun isNoExpirationLinkGenCreateReport ()Z + public fun isNoExpirationLinkGenReportFailed ()Z + public fun isNoPasswordLinkGenCreateReport ()Z + public fun isNoPasswordLinkGenReportFailed ()Z + public fun isNoPasswordLinkViewCreateReport ()Z + public fun isNoPasswordLinkViewReportFailed ()Z + public fun isNoteAclInviteOnly ()Z + public fun isNoteAclLink ()Z + public fun isNoteAclTeamLink ()Z + public fun isNoteShareReceive ()Z + public fun isNoteShared ()Z + public fun isObjectLabelAdded ()Z + public fun isObjectLabelRemoved ()Z + public fun isObjectLabelUpdatedValue ()Z + public fun isOpenNoteShared ()Z + public fun isOrganizeFolderWithTidy ()Z + public fun isOther ()Z + public fun isOutdatedLinkViewCreateReport ()Z + public fun isOutdatedLinkViewReportFailed ()Z + public fun isPaperAdminExportStart ()Z + public fun isPaperChangeDeploymentPolicy ()Z + public fun isPaperChangeMemberLinkPolicy ()Z + public fun isPaperChangeMemberPolicy ()Z + public fun isPaperChangePolicy ()Z + public fun isPaperContentAddMember ()Z + public fun isPaperContentAddToFolder ()Z + public fun isPaperContentArchive ()Z + public fun isPaperContentCreate ()Z + public fun isPaperContentPermanentlyDelete ()Z + public fun isPaperContentRemoveFromFolder ()Z + public fun isPaperContentRemoveMember ()Z + public fun isPaperContentRename ()Z + public fun isPaperContentRestore ()Z + public fun isPaperDefaultFolderPolicyChanged ()Z + public fun isPaperDesktopPolicyChanged ()Z + public fun isPaperDocAddComment ()Z + public fun isPaperDocChangeMemberRole ()Z + public fun isPaperDocChangeSharingPolicy ()Z + public fun isPaperDocChangeSubscription ()Z + public fun isPaperDocDeleteComment ()Z + public fun isPaperDocDeleted ()Z + public fun isPaperDocDownload ()Z + public fun isPaperDocEdit ()Z + public fun isPaperDocEditComment ()Z + public fun isPaperDocFollowed ()Z + public fun isPaperDocMention ()Z + public fun isPaperDocOwnershipChanged ()Z + public fun isPaperDocRequestAccess ()Z + public fun isPaperDocResolveComment ()Z + public fun isPaperDocRevert ()Z + public fun isPaperDocSlackShare ()Z + public fun isPaperDocTeamInvite ()Z + public fun isPaperDocTrashed ()Z + public fun isPaperDocUnresolveComment ()Z + public fun isPaperDocUntrashed ()Z + public fun isPaperDocView ()Z + public fun isPaperEnabledUsersGroupAddition ()Z + public fun isPaperEnabledUsersGroupRemoval ()Z + public fun isPaperExternalViewAllow ()Z + public fun isPaperExternalViewDefaultTeam ()Z + public fun isPaperExternalViewForbid ()Z + public fun isPaperFolderChangeSubscription ()Z + public fun isPaperFolderDeleted ()Z + public fun isPaperFolderFollowed ()Z + public fun isPaperFolderTeamInvite ()Z + public fun isPaperPublishedLinkChangePermission ()Z + public fun isPaperPublishedLinkCreate ()Z + public fun isPaperPublishedLinkDisabled ()Z + public fun isPaperPublishedLinkView ()Z + public fun isPasswordChange ()Z + public fun isPasswordReset ()Z + public fun isPasswordResetAll ()Z + public fun isPasswordStrengthRequirementsChangePolicy ()Z + public fun isPendingSecondaryEmailAdded ()Z + public fun isPermanentDeleteChangePolicy ()Z + public fun isRansomwareAlertCreateReport ()Z + public fun isRansomwareAlertCreateReportFailed ()Z + public fun isRansomwareRestoreProcessCompleted ()Z + public fun isRansomwareRestoreProcessStarted ()Z + public fun isReplayFileDelete ()Z + public fun isReplayFileSharedLinkCreated ()Z + public fun isReplayFileSharedLinkModified ()Z + public fun isReplayProjectTeamAdd ()Z + public fun isReplayProjectTeamDelete ()Z + public fun isResellerSupportChangePolicy ()Z + public fun isResellerSupportSessionEnd ()Z + public fun isResellerSupportSessionStart ()Z + public fun isRewindFolder ()Z + public fun isRewindPolicyChanged ()Z + public fun isSecondaryEmailDeleted ()Z + public fun isSecondaryEmailVerified ()Z + public fun isSecondaryMailsPolicyChanged ()Z + public fun isSendForSignaturePolicyChanged ()Z + public fun isSfAddGroup ()Z + public fun isSfAllowNonMembersToViewSharedLinks ()Z + public fun isSfExternalInviteWarn ()Z + public fun isSfFbInvite ()Z + public fun isSfFbInviteChangeRole ()Z + public fun isSfFbUninvite ()Z + public fun isSfInviteGroup ()Z + public fun isSfTeamGrantAccess ()Z + public fun isSfTeamInvite ()Z + public fun isSfTeamInviteChangeRole ()Z + public fun isSfTeamJoin ()Z + public fun isSfTeamJoinFromOobLink ()Z + public fun isSfTeamUninvite ()Z + public fun isSharedContentAddInvitees ()Z + public fun isSharedContentAddLinkExpiry ()Z + public fun isSharedContentAddLinkPassword ()Z + public fun isSharedContentAddMember ()Z + public fun isSharedContentChangeDownloadsPolicy ()Z + public fun isSharedContentChangeInviteeRole ()Z + public fun isSharedContentChangeLinkAudience ()Z + public fun isSharedContentChangeLinkExpiry ()Z + public fun isSharedContentChangeLinkPassword ()Z + public fun isSharedContentChangeMemberRole ()Z + public fun isSharedContentChangeViewerInfoPolicy ()Z + public fun isSharedContentClaimInvitation ()Z + public fun isSharedContentCopy ()Z + public fun isSharedContentDownload ()Z + public fun isSharedContentRelinquishMembership ()Z + public fun isSharedContentRemoveInvitees ()Z + public fun isSharedContentRemoveLinkExpiry ()Z + public fun isSharedContentRemoveLinkPassword ()Z + public fun isSharedContentRemoveMember ()Z + public fun isSharedContentRequestAccess ()Z + public fun isSharedContentRestoreInvitees ()Z + public fun isSharedContentRestoreMember ()Z + public fun isSharedContentUnshare ()Z + public fun isSharedContentView ()Z + public fun isSharedFolderChangeLinkPolicy ()Z + public fun isSharedFolderChangeMembersInheritancePolicy ()Z + public fun isSharedFolderChangeMembersManagementPolicy ()Z + public fun isSharedFolderChangeMembersPolicy ()Z + public fun isSharedFolderCreate ()Z + public fun isSharedFolderDeclineInvitation ()Z + public fun isSharedFolderMount ()Z + public fun isSharedFolderNest ()Z + public fun isSharedFolderTransferOwnership ()Z + public fun isSharedFolderUnmount ()Z + public fun isSharedLinkAddExpiry ()Z + public fun isSharedLinkChangeExpiry ()Z + public fun isSharedLinkChangeVisibility ()Z + public fun isSharedLinkCopy ()Z + public fun isSharedLinkCreate ()Z + public fun isSharedLinkDisable ()Z + public fun isSharedLinkDownload ()Z + public fun isSharedLinkRemoveExpiry ()Z + public fun isSharedLinkSettingsAddExpiration ()Z + public fun isSharedLinkSettingsAddPassword ()Z + public fun isSharedLinkSettingsAllowDownloadDisabled ()Z + public fun isSharedLinkSettingsAllowDownloadEnabled ()Z + public fun isSharedLinkSettingsChangeAudience ()Z + public fun isSharedLinkSettingsChangeExpiration ()Z + public fun isSharedLinkSettingsChangePassword ()Z + public fun isSharedLinkSettingsRemoveExpiration ()Z + public fun isSharedLinkSettingsRemovePassword ()Z + public fun isSharedLinkShare ()Z + public fun isSharedLinkView ()Z + public fun isSharedNoteOpened ()Z + public fun isSharingChangeFolderJoinPolicy ()Z + public fun isSharingChangeLinkAllowChangeExpirationPolicy ()Z + public fun isSharingChangeLinkDefaultExpirationPolicy ()Z + public fun isSharingChangeLinkEnforcePasswordPolicy ()Z + public fun isSharingChangeLinkPolicy ()Z + public fun isSharingChangeMemberPolicy ()Z + public fun isShmodelDisableDownloads ()Z + public fun isShmodelEnableDownloads ()Z + public fun isShmodelGroupShare ()Z + public fun isShowcaseAccessGranted ()Z + public fun isShowcaseAddMember ()Z + public fun isShowcaseArchived ()Z + public fun isShowcaseChangeDownloadPolicy ()Z + public fun isShowcaseChangeEnabledPolicy ()Z + public fun isShowcaseChangeExternalSharingPolicy ()Z + public fun isShowcaseCreated ()Z + public fun isShowcaseDeleteComment ()Z + public fun isShowcaseEditComment ()Z + public fun isShowcaseEdited ()Z + public fun isShowcaseFileAdded ()Z + public fun isShowcaseFileDownload ()Z + public fun isShowcaseFileRemoved ()Z + public fun isShowcaseFileView ()Z + public fun isShowcasePermanentlyDeleted ()Z + public fun isShowcasePostComment ()Z + public fun isShowcaseRemoveMember ()Z + public fun isShowcaseRenamed ()Z + public fun isShowcaseRequestAccess ()Z + public fun isShowcaseResolveComment ()Z + public fun isShowcaseRestored ()Z + public fun isShowcaseTrashed ()Z + public fun isShowcaseTrashedDeprecated ()Z + public fun isShowcaseUnresolveComment ()Z + public fun isShowcaseUntrashed ()Z + public fun isShowcaseUntrashedDeprecated ()Z + public fun isShowcaseView ()Z + public fun isSignInAsSessionEnd ()Z + public fun isSignInAsSessionStart ()Z + public fun isSmartSyncChangePolicy ()Z + public fun isSmartSyncCreateAdminPrivilegeReport ()Z + public fun isSmartSyncNotOptOut ()Z + public fun isSmartSyncOptOut ()Z + public fun isSmarterSmartSyncPolicyChanged ()Z + public fun isSsoAddCert ()Z + public fun isSsoAddLoginUrl ()Z + public fun isSsoAddLogoutUrl ()Z + public fun isSsoChangeCert ()Z + public fun isSsoChangeLoginUrl ()Z + public fun isSsoChangeLogoutUrl ()Z + public fun isSsoChangePolicy ()Z + public fun isSsoChangeSamlIdentityMode ()Z + public fun isSsoError ()Z + public fun isSsoRemoveCert ()Z + public fun isSsoRemoveLoginUrl ()Z + public fun isSsoRemoveLogoutUrl ()Z + public fun isStartedEnterpriseAdminSession ()Z + public fun isTeamActivityCreateReport ()Z + public fun isTeamActivityCreateReportFail ()Z + public fun isTeamBrandingPolicyChanged ()Z + public fun isTeamEncryptionKeyCancelKeyDeletion ()Z + public fun isTeamEncryptionKeyCreateKey ()Z + public fun isTeamEncryptionKeyDeleteKey ()Z + public fun isTeamEncryptionKeyDisableKey ()Z + public fun isTeamEncryptionKeyEnableKey ()Z + public fun isTeamEncryptionKeyRotateKey ()Z + public fun isTeamEncryptionKeyScheduleKeyDeletion ()Z + public fun isTeamExtensionsPolicyChanged ()Z + public fun isTeamFolderChangeStatus ()Z + public fun isTeamFolderCreate ()Z + public fun isTeamFolderDowngrade ()Z + public fun isTeamFolderPermanentlyDelete ()Z + public fun isTeamFolderRename ()Z + public fun isTeamMergeFrom ()Z + public fun isTeamMergeRequestAccepted ()Z + public fun isTeamMergeRequestAcceptedShownToPrimaryTeam ()Z + public fun isTeamMergeRequestAcceptedShownToSecondaryTeam ()Z + public fun isTeamMergeRequestAutoCanceled ()Z + public fun isTeamMergeRequestCanceled ()Z + public fun isTeamMergeRequestCanceledShownToPrimaryTeam ()Z + public fun isTeamMergeRequestCanceledShownToSecondaryTeam ()Z + public fun isTeamMergeRequestExpired ()Z + public fun isTeamMergeRequestExpiredShownToPrimaryTeam ()Z + public fun isTeamMergeRequestExpiredShownToSecondaryTeam ()Z + public fun isTeamMergeRequestRejectedShownToPrimaryTeam ()Z + public fun isTeamMergeRequestRejectedShownToSecondaryTeam ()Z + public fun isTeamMergeRequestReminder ()Z + public fun isTeamMergeRequestReminderShownToPrimaryTeam ()Z + public fun isTeamMergeRequestReminderShownToSecondaryTeam ()Z + public fun isTeamMergeRequestRevoked ()Z + public fun isTeamMergeRequestSentShownToPrimaryTeam ()Z + public fun isTeamMergeRequestSentShownToSecondaryTeam ()Z + public fun isTeamMergeTo ()Z + public fun isTeamProfileAddBackground ()Z + public fun isTeamProfileAddLogo ()Z + public fun isTeamProfileChangeBackground ()Z + public fun isTeamProfileChangeDefaultLanguage ()Z + public fun isTeamProfileChangeLogo ()Z + public fun isTeamProfileChangeName ()Z + public fun isTeamProfileRemoveBackground ()Z + public fun isTeamProfileRemoveLogo ()Z + public fun isTeamSelectiveSyncPolicyChanged ()Z + public fun isTeamSelectiveSyncSettingsChanged ()Z + public fun isTeamSharingWhitelistSubjectsChanged ()Z + public fun isTfaAddBackupPhone ()Z + public fun isTfaAddException ()Z + public fun isTfaAddSecurityKey ()Z + public fun isTfaChangeBackupPhone ()Z + public fun isTfaChangePolicy ()Z + public fun isTfaChangeStatus ()Z + public fun isTfaRemoveBackupPhone ()Z + public fun isTfaRemoveException ()Z + public fun isTfaRemoveSecurityKey ()Z + public fun isTfaReset ()Z + public fun isTwoAccountChangePolicy ()Z + public fun isUndoNamingConvention ()Z + public fun isUndoOrganizeFolderWithTidy ()Z + public fun isUserTagsAdded ()Z + public fun isUserTagsRemoved ()Z + public fun isViewerInfoPolicyChanged ()Z + public fun isWatermarkingPolicyChanged ()Z + public fun isWebSessionsChangeActiveSessionLimit ()Z + public fun isWebSessionsChangeFixedLengthPolicy ()Z + public fun isWebSessionsChangeIdleLengthPolicy ()Z + public static fun legalHoldsActivateAHold (Lcom/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsAddMembers (Lcom/dropbox/core/v2/teamlog/LegalHoldsAddMembersType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsChangeHoldDetails (Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsChangeHoldName (Lcom/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsExportAHold (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportAHoldType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsExportCancelled (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportCancelledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsExportDownloaded (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsExportRemoved (Lcom/dropbox/core/v2/teamlog/LegalHoldsExportRemovedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsReleaseAHold (Lcom/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsRemoveMembers (Lcom/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun legalHoldsReportAHold (Lcom/dropbox/core/v2/teamlog/LegalHoldsReportAHoldType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun loginFail (Lcom/dropbox/core/v2/teamlog/LoginFailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun loginSuccess (Lcom/dropbox/core/v2/teamlog/LoginSuccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun logout (Lcom/dropbox/core/v2/teamlog/LogoutType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberAddExternalId (Lcom/dropbox/core/v2/teamlog/MemberAddExternalIdType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberAddName (Lcom/dropbox/core/v2/teamlog/MemberAddNameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberChangeAdminRole (Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberChangeEmail (Lcom/dropbox/core/v2/teamlog/MemberChangeEmailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberChangeExternalId (Lcom/dropbox/core/v2/teamlog/MemberChangeExternalIdType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberChangeMembershipType (Lcom/dropbox/core/v2/teamlog/MemberChangeMembershipTypeType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberChangeName (Lcom/dropbox/core/v2/teamlog/MemberChangeNameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberChangeResellerRole (Lcom/dropbox/core/v2/teamlog/MemberChangeResellerRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberChangeStatus (Lcom/dropbox/core/v2/teamlog/MemberChangeStatusType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberDeleteManualContacts (Lcom/dropbox/core/v2/teamlog/MemberDeleteManualContactsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberDeleteProfilePhoto (Lcom/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberPermanentlyDeleteAccountContents (Lcom/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberRemoveExternalId (Lcom/dropbox/core/v2/teamlog/MemberRemoveExternalIdType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberRequestsChangePolicy (Lcom/dropbox/core/v2/teamlog/MemberRequestsChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSendInvitePolicyChanged (Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSetProfilePhoto (Lcom/dropbox/core/v2/teamlog/MemberSetProfilePhotoType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsAddCustomQuota (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsAddException (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsChangeCapsTypePolicy (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsChangeCustomQuota (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsChangePolicy (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsChangeStatus (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsRemoveCustomQuota (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSpaceLimitsRemoveException (Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSuggest (Lcom/dropbox/core/v2/teamlog/MemberSuggestType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberSuggestionsChangePolicy (Lcom/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun memberTransferAccountContents (Lcom/dropbox/core/v2/teamlog/MemberTransferAccountContentsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun microsoftOfficeAddinChangePolicy (Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun networkControlChangePolicy (Lcom/dropbox/core/v2/teamlog/NetworkControlChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noExpirationLinkGenCreateReport (Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noExpirationLinkGenReportFailed (Lcom/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noPasswordLinkGenCreateReport (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noPasswordLinkGenReportFailed (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noPasswordLinkViewCreateReport (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noPasswordLinkViewReportFailed (Lcom/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noteAclInviteOnly (Lcom/dropbox/core/v2/teamlog/NoteAclInviteOnlyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noteAclLink (Lcom/dropbox/core/v2/teamlog/NoteAclLinkType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noteAclTeamLink (Lcom/dropbox/core/v2/teamlog/NoteAclTeamLinkType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noteShareReceive (Lcom/dropbox/core/v2/teamlog/NoteShareReceiveType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun noteShared (Lcom/dropbox/core/v2/teamlog/NoteSharedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun objectLabelAdded (Lcom/dropbox/core/v2/teamlog/ObjectLabelAddedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun objectLabelRemoved (Lcom/dropbox/core/v2/teamlog/ObjectLabelRemovedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun objectLabelUpdatedValue (Lcom/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun openNoteShared (Lcom/dropbox/core/v2/teamlog/OpenNoteSharedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun organizeFolderWithTidy (Lcom/dropbox/core/v2/teamlog/OrganizeFolderWithTidyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun outdatedLinkViewCreateReport (Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun outdatedLinkViewReportFailed (Lcom/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperAdminExportStart (Lcom/dropbox/core/v2/teamlog/PaperAdminExportStartType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperChangeDeploymentPolicy (Lcom/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperChangeMemberLinkPolicy (Lcom/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperChangeMemberPolicy (Lcom/dropbox/core/v2/teamlog/PaperChangeMemberPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperChangePolicy (Lcom/dropbox/core/v2/teamlog/PaperChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentAddMember (Lcom/dropbox/core/v2/teamlog/PaperContentAddMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentAddToFolder (Lcom/dropbox/core/v2/teamlog/PaperContentAddToFolderType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentArchive (Lcom/dropbox/core/v2/teamlog/PaperContentArchiveType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentCreate (Lcom/dropbox/core/v2/teamlog/PaperContentCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentPermanentlyDelete (Lcom/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentRemoveFromFolder (Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentRemoveMember (Lcom/dropbox/core/v2/teamlog/PaperContentRemoveMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentRename (Lcom/dropbox/core/v2/teamlog/PaperContentRenameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperContentRestore (Lcom/dropbox/core/v2/teamlog/PaperContentRestoreType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDefaultFolderPolicyChanged (Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDesktopPolicyChanged (Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocAddComment (Lcom/dropbox/core/v2/teamlog/PaperDocAddCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocChangeMemberRole (Lcom/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocChangeSharingPolicy (Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocChangeSubscription (Lcom/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocDeleteComment (Lcom/dropbox/core/v2/teamlog/PaperDocDeleteCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocDeleted (Lcom/dropbox/core/v2/teamlog/PaperDocDeletedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocDownload (Lcom/dropbox/core/v2/teamlog/PaperDocDownloadType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocEdit (Lcom/dropbox/core/v2/teamlog/PaperDocEditType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocEditComment (Lcom/dropbox/core/v2/teamlog/PaperDocEditCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocFollowed (Lcom/dropbox/core/v2/teamlog/PaperDocFollowedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocMention (Lcom/dropbox/core/v2/teamlog/PaperDocMentionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocOwnershipChanged (Lcom/dropbox/core/v2/teamlog/PaperDocOwnershipChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocRequestAccess (Lcom/dropbox/core/v2/teamlog/PaperDocRequestAccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocResolveComment (Lcom/dropbox/core/v2/teamlog/PaperDocResolveCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocRevert (Lcom/dropbox/core/v2/teamlog/PaperDocRevertType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocSlackShare (Lcom/dropbox/core/v2/teamlog/PaperDocSlackShareType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocTeamInvite (Lcom/dropbox/core/v2/teamlog/PaperDocTeamInviteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocTrashed (Lcom/dropbox/core/v2/teamlog/PaperDocTrashedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocUnresolveComment (Lcom/dropbox/core/v2/teamlog/PaperDocUnresolveCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocUntrashed (Lcom/dropbox/core/v2/teamlog/PaperDocUntrashedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperDocView (Lcom/dropbox/core/v2/teamlog/PaperDocViewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperEnabledUsersGroupAddition (Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperEnabledUsersGroupRemoval (Lcom/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperExternalViewAllow (Lcom/dropbox/core/v2/teamlog/PaperExternalViewAllowType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperExternalViewDefaultTeam (Lcom/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperExternalViewForbid (Lcom/dropbox/core/v2/teamlog/PaperExternalViewForbidType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperFolderChangeSubscription (Lcom/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperFolderDeleted (Lcom/dropbox/core/v2/teamlog/PaperFolderDeletedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperFolderFollowed (Lcom/dropbox/core/v2/teamlog/PaperFolderFollowedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperFolderTeamInvite (Lcom/dropbox/core/v2/teamlog/PaperFolderTeamInviteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperPublishedLinkChangePermission (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperPublishedLinkCreate (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperPublishedLinkDisabled (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun paperPublishedLinkView (Lcom/dropbox/core/v2/teamlog/PaperPublishedLinkViewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun passwordChange (Lcom/dropbox/core/v2/teamlog/PasswordChangeType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun passwordReset (Lcom/dropbox/core/v2/teamlog/PasswordResetType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun passwordResetAll (Lcom/dropbox/core/v2/teamlog/PasswordResetAllType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun passwordStrengthRequirementsChangePolicy (Lcom/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun pendingSecondaryEmailAdded (Lcom/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun permanentDeleteChangePolicy (Lcom/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ransomwareAlertCreateReport (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ransomwareAlertCreateReportFailed (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ransomwareRestoreProcessCompleted (Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ransomwareRestoreProcessStarted (Lcom/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun replayFileDelete (Lcom/dropbox/core/v2/teamlog/ReplayFileDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun replayFileSharedLinkCreated (Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun replayFileSharedLinkModified (Lcom/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun replayProjectTeamAdd (Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamAddType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun replayProjectTeamDelete (Lcom/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun resellerSupportChangePolicy (Lcom/dropbox/core/v2/teamlog/ResellerSupportChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun resellerSupportSessionEnd (Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionEndType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun resellerSupportSessionStart (Lcom/dropbox/core/v2/teamlog/ResellerSupportSessionStartType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun rewindFolder (Lcom/dropbox/core/v2/teamlog/RewindFolderType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun rewindPolicyChanged (Lcom/dropbox/core/v2/teamlog/RewindPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun secondaryEmailDeleted (Lcom/dropbox/core/v2/teamlog/SecondaryEmailDeletedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun secondaryEmailVerified (Lcom/dropbox/core/v2/teamlog/SecondaryEmailVerifiedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun secondaryMailsPolicyChanged (Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sendForSignaturePolicyChanged (Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfAddGroup (Lcom/dropbox/core/v2/teamlog/SfAddGroupType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfAllowNonMembersToViewSharedLinks (Lcom/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfExternalInviteWarn (Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfFbInvite (Lcom/dropbox/core/v2/teamlog/SfFbInviteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfFbInviteChangeRole (Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfFbUninvite (Lcom/dropbox/core/v2/teamlog/SfFbUninviteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfInviteGroup (Lcom/dropbox/core/v2/teamlog/SfInviteGroupType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfTeamGrantAccess (Lcom/dropbox/core/v2/teamlog/SfTeamGrantAccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfTeamInvite (Lcom/dropbox/core/v2/teamlog/SfTeamInviteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfTeamInviteChangeRole (Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfTeamJoin (Lcom/dropbox/core/v2/teamlog/SfTeamJoinType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfTeamJoinFromOobLink (Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sfTeamUninvite (Lcom/dropbox/core/v2/teamlog/SfTeamUninviteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentAddInvitees (Lcom/dropbox/core/v2/teamlog/SharedContentAddInviteesType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentAddLinkExpiry (Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentAddLinkPassword (Lcom/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentAddMember (Lcom/dropbox/core/v2/teamlog/SharedContentAddMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentChangeDownloadsPolicy (Lcom/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentChangeInviteeRole (Lcom/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentChangeLinkAudience (Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentChangeLinkExpiry (Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentChangeLinkPassword (Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentChangeMemberRole (Lcom/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentChangeViewerInfoPolicy (Lcom/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentClaimInvitation (Lcom/dropbox/core/v2/teamlog/SharedContentClaimInvitationType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentCopy (Lcom/dropbox/core/v2/teamlog/SharedContentCopyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentDownload (Lcom/dropbox/core/v2/teamlog/SharedContentDownloadType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRelinquishMembership (Lcom/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRemoveInvitees (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveInviteesType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRemoveLinkExpiry (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRemoveLinkPassword (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRemoveMember (Lcom/dropbox/core/v2/teamlog/SharedContentRemoveMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRequestAccess (Lcom/dropbox/core/v2/teamlog/SharedContentRequestAccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRestoreInvitees (Lcom/dropbox/core/v2/teamlog/SharedContentRestoreInviteesType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentRestoreMember (Lcom/dropbox/core/v2/teamlog/SharedContentRestoreMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentUnshare (Lcom/dropbox/core/v2/teamlog/SharedContentUnshareType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedContentView (Lcom/dropbox/core/v2/teamlog/SharedContentViewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderChangeLinkPolicy (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderChangeMembersInheritancePolicy (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderChangeMembersManagementPolicy (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderChangeMembersPolicy (Lcom/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderCreate (Lcom/dropbox/core/v2/teamlog/SharedFolderCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderDeclineInvitation (Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderMount (Lcom/dropbox/core/v2/teamlog/SharedFolderMountType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderNest (Lcom/dropbox/core/v2/teamlog/SharedFolderNestType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderTransferOwnership (Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedFolderUnmount (Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkAddExpiry (Lcom/dropbox/core/v2/teamlog/SharedLinkAddExpiryType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkChangeExpiry (Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkChangeVisibility (Lcom/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkCopy (Lcom/dropbox/core/v2/teamlog/SharedLinkCopyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkCreate (Lcom/dropbox/core/v2/teamlog/SharedLinkCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkDisable (Lcom/dropbox/core/v2/teamlog/SharedLinkDisableType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkDownload (Lcom/dropbox/core/v2/teamlog/SharedLinkDownloadType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkRemoveExpiry (Lcom/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsAddExpiration (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsAddPassword (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsAllowDownloadDisabled (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsAllowDownloadEnabled (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsChangeAudience (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsChangeExpiration (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsChangePassword (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsRemoveExpiration (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkSettingsRemovePassword (Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkShare (Lcom/dropbox/core/v2/teamlog/SharedLinkShareType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedLinkView (Lcom/dropbox/core/v2/teamlog/SharedLinkViewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharedNoteOpened (Lcom/dropbox/core/v2/teamlog/SharedNoteOpenedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharingChangeFolderJoinPolicy (Lcom/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharingChangeLinkAllowChangeExpirationPolicy (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharingChangeLinkDefaultExpirationPolicy (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharingChangeLinkEnforcePasswordPolicy (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharingChangeLinkPolicy (Lcom/dropbox/core/v2/teamlog/SharingChangeLinkPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun sharingChangeMemberPolicy (Lcom/dropbox/core/v2/teamlog/SharingChangeMemberPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun shmodelDisableDownloads (Lcom/dropbox/core/v2/teamlog/ShmodelDisableDownloadsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun shmodelEnableDownloads (Lcom/dropbox/core/v2/teamlog/ShmodelEnableDownloadsType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun shmodelGroupShare (Lcom/dropbox/core/v2/teamlog/ShmodelGroupShareType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseAccessGranted (Lcom/dropbox/core/v2/teamlog/ShowcaseAccessGrantedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseAddMember (Lcom/dropbox/core/v2/teamlog/ShowcaseAddMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseArchived (Lcom/dropbox/core/v2/teamlog/ShowcaseArchivedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseChangeDownloadPolicy (Lcom/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseChangeEnabledPolicy (Lcom/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseChangeExternalSharingPolicy (Lcom/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseCreated (Lcom/dropbox/core/v2/teamlog/ShowcaseCreatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseDeleteComment (Lcom/dropbox/core/v2/teamlog/ShowcaseDeleteCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseEditComment (Lcom/dropbox/core/v2/teamlog/ShowcaseEditCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseEdited (Lcom/dropbox/core/v2/teamlog/ShowcaseEditedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseFileAdded (Lcom/dropbox/core/v2/teamlog/ShowcaseFileAddedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseFileDownload (Lcom/dropbox/core/v2/teamlog/ShowcaseFileDownloadType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseFileRemoved (Lcom/dropbox/core/v2/teamlog/ShowcaseFileRemovedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseFileView (Lcom/dropbox/core/v2/teamlog/ShowcaseFileViewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcasePermanentlyDeleted (Lcom/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcasePostComment (Lcom/dropbox/core/v2/teamlog/ShowcasePostCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseRemoveMember (Lcom/dropbox/core/v2/teamlog/ShowcaseRemoveMemberType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseRenamed (Lcom/dropbox/core/v2/teamlog/ShowcaseRenamedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseRequestAccess (Lcom/dropbox/core/v2/teamlog/ShowcaseRequestAccessType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseResolveComment (Lcom/dropbox/core/v2/teamlog/ShowcaseResolveCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseRestored (Lcom/dropbox/core/v2/teamlog/ShowcaseRestoredType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseTrashed (Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseTrashedDeprecated (Lcom/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseUnresolveComment (Lcom/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseUntrashed (Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseUntrashedDeprecated (Lcom/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun showcaseView (Lcom/dropbox/core/v2/teamlog/ShowcaseViewType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun signInAsSessionEnd (Lcom/dropbox/core/v2/teamlog/SignInAsSessionEndType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun signInAsSessionStart (Lcom/dropbox/core/v2/teamlog/SignInAsSessionStartType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun smartSyncChangePolicy (Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun smartSyncCreateAdminPrivilegeReport (Lcom/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun smartSyncNotOptOut (Lcom/dropbox/core/v2/teamlog/SmartSyncNotOptOutType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun smartSyncOptOut (Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun smarterSmartSyncPolicyChanged (Lcom/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoAddCert (Lcom/dropbox/core/v2/teamlog/SsoAddCertType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoAddLoginUrl (Lcom/dropbox/core/v2/teamlog/SsoAddLoginUrlType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoAddLogoutUrl (Lcom/dropbox/core/v2/teamlog/SsoAddLogoutUrlType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoChangeCert (Lcom/dropbox/core/v2/teamlog/SsoChangeCertType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoChangeLoginUrl (Lcom/dropbox/core/v2/teamlog/SsoChangeLoginUrlType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoChangeLogoutUrl (Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoChangePolicy (Lcom/dropbox/core/v2/teamlog/SsoChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoChangeSamlIdentityMode (Lcom/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoError (Lcom/dropbox/core/v2/teamlog/SsoErrorType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoRemoveCert (Lcom/dropbox/core/v2/teamlog/SsoRemoveCertType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoRemoveLoginUrl (Lcom/dropbox/core/v2/teamlog/SsoRemoveLoginUrlType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun ssoRemoveLogoutUrl (Lcom/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun startedEnterpriseAdminSession (Lcom/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public fun tag ()Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static fun teamActivityCreateReport (Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamActivityCreateReportFail (Lcom/dropbox/core/v2/teamlog/TeamActivityCreateReportFailType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamBrandingPolicyChanged (Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamEncryptionKeyCancelKeyDeletion (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamEncryptionKeyCreateKey (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamEncryptionKeyDeleteKey (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamEncryptionKeyDisableKey (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamEncryptionKeyEnableKey (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamEncryptionKeyRotateKey (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamEncryptionKeyScheduleKeyDeletion (Lcom/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamExtensionsPolicyChanged (Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamFolderChangeStatus (Lcom/dropbox/core/v2/teamlog/TeamFolderChangeStatusType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamFolderCreate (Lcom/dropbox/core/v2/teamlog/TeamFolderCreateType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamFolderDowngrade (Lcom/dropbox/core/v2/teamlog/TeamFolderDowngradeType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamFolderPermanentlyDelete (Lcom/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamFolderRename (Lcom/dropbox/core/v2/teamlog/TeamFolderRenameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeFrom (Lcom/dropbox/core/v2/teamlog/TeamMergeFromType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestAccepted (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestAcceptedShownToPrimaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestAcceptedShownToSecondaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestAutoCanceled (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestCanceled (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestCanceledShownToPrimaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestCanceledShownToSecondaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestExpired (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestExpiredShownToPrimaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestExpiredShownToSecondaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestRejectedShownToPrimaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestRejectedShownToSecondaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestReminder (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestReminderShownToPrimaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestReminderShownToSecondaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestRevoked (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestRevokedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestSentShownToPrimaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeRequestSentShownToSecondaryTeam (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamMergeTo (Lcom/dropbox/core/v2/teamlog/TeamMergeToType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileAddBackground (Lcom/dropbox/core/v2/teamlog/TeamProfileAddBackgroundType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileAddLogo (Lcom/dropbox/core/v2/teamlog/TeamProfileAddLogoType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileChangeBackground (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileChangeDefaultLanguage (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileChangeLogo (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeLogoType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileChangeName (Lcom/dropbox/core/v2/teamlog/TeamProfileChangeNameType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileRemoveBackground (Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamProfileRemoveLogo (Lcom/dropbox/core/v2/teamlog/TeamProfileRemoveLogoType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamSelectiveSyncPolicyChanged (Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamSelectiveSyncSettingsChanged (Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun teamSharingWhitelistSubjectsChanged (Lcom/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaAddBackupPhone (Lcom/dropbox/core/v2/teamlog/TfaAddBackupPhoneType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaAddException (Lcom/dropbox/core/v2/teamlog/TfaAddExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaAddSecurityKey (Lcom/dropbox/core/v2/teamlog/TfaAddSecurityKeyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaChangeBackupPhone (Lcom/dropbox/core/v2/teamlog/TfaChangeBackupPhoneType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaChangePolicy (Lcom/dropbox/core/v2/teamlog/TfaChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaChangeStatus (Lcom/dropbox/core/v2/teamlog/TfaChangeStatusType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaRemoveBackupPhone (Lcom/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaRemoveException (Lcom/dropbox/core/v2/teamlog/TfaRemoveExceptionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaRemoveSecurityKey (Lcom/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun tfaReset (Lcom/dropbox/core/v2/teamlog/TfaResetType;)Lcom/dropbox/core/v2/teamlog/EventType; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun twoAccountChangePolicy (Lcom/dropbox/core/v2/teamlog/TwoAccountChangePolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun undoNamingConvention (Lcom/dropbox/core/v2/teamlog/UndoNamingConventionType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun undoOrganizeFolderWithTidy (Lcom/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun userTagsAdded (Lcom/dropbox/core/v2/teamlog/UserTagsAddedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun userTagsRemoved (Lcom/dropbox/core/v2/teamlog/UserTagsRemovedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun viewerInfoPolicyChanged (Lcom/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun watermarkingPolicyChanged (Lcom/dropbox/core/v2/teamlog/WatermarkingPolicyChangedType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun webSessionsChangeActiveSessionLimit (Lcom/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun webSessionsChangeFixedLengthPolicy (Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; + public static fun webSessionsChangeIdleLengthPolicy (Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyType;)Lcom/dropbox/core/v2/teamlog/EventType; +} + +public final class com/dropbox/core/v2/teamlog/EventType$Tag : java/lang/Enum { + public static final field ACCOUNT_CAPTURE_CHANGE_AVAILABILITY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ACCOUNT_CAPTURE_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ACCOUNT_CAPTURE_MIGRATE_ACCOUNT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ACCOUNT_LOCK_OR_UNLOCKED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ADMIN_ALERTING_ALERT_STATE_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ADMIN_ALERTING_CHANGED_ALERT_CONFIG Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ADMIN_ALERTING_TRIGGERED_ALERT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ADMIN_EMAIL_REMINDERS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ALLOW_DOWNLOAD_DISABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ALLOW_DOWNLOAD_ENABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field APPLY_NAMING_CONVENTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field APP_BLOCKED_BY_PERMISSIONS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field APP_LINK_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field APP_LINK_USER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field APP_PERMISSIONS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field APP_UNLINK_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field APP_UNLINK_USER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BACKUP_ADMIN_INVITATION_SENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BACKUP_INVITATION_OPENED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_ADD_PAGE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_ADD_SECTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_REMOVE_PAGE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_REMOVE_SECTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_RENAME_PAGE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_RENAME_SECTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_REORDER_PAGE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field BINDER_REORDER_SECTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CAMERA_UPLOADS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CAPTURE_TRANSCRIPT_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CHANGED_ENTERPRISE_ADMIN_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CLASSIFICATION_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CLASSIFICATION_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CLASSIFICATION_CREATE_REPORT_FAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field COLLECTION_SHARE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field COMPUTER_BACKUP_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CONTENT_ADMINISTRATION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CREATE_FOLDER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field CREATE_TEAM_INVITE_LINK Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DELETE_TEAM_INVITE_LINK Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_APPROVALS_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_APPROVALS_CHANGE_MOBILE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_APPROVALS_CHANGE_UNLINK_ACTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_APPROVALS_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_CHANGE_IP_DESKTOP Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_CHANGE_IP_MOBILE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_CHANGE_IP_WEB Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_DELETE_ON_UNLINK_FAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_DELETE_ON_UNLINK_SUCCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_LINK_FAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_LINK_SUCCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_MANAGEMENT_DISABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_MANAGEMENT_ENABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_SYNC_BACKUP_STATUS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DEVICE_UNLINK Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DIRECTORY_RESTRICTIONS_ADD_MEMBERS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DISABLED_DOMAIN_INVITES Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_INVITES_EMAIL_EXISTING_USERS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DOMAIN_VERIFICATION_REMOVE_DOMAIN Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DROPBOX_PASSWORDS_EXPORTED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field DROPBOX_PASSWORDS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMAIL_INGEST_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMAIL_INGEST_RECEIVE_FILE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMM_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMM_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMM_CREATE_EXCEPTIONS_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMM_CREATE_USAGE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMM_ERROR Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMM_REFRESH_AUTH_TOKEN Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EMM_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ENABLED_DOMAIN_INVITES Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ENDED_ENTERPRISE_ADMIN_SESSION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ENTERPRISE_SETTINGS_LOCKING Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXPORT_MEMBERS_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXPORT_MEMBERS_REPORT_FAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXTENDED_VERSION_HISTORY_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXTERNAL_SHARING_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field EXTERNAL_SHARING_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_ADD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_ADD_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_ADD_FROM_AUTOMATION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_CHANGE_COMMENT_SUBSCRIPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_COMMENTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_COPY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_DELETE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_EDIT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_EDIT_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_GET_COPY_REFERENCE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_LIKE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_LOCKING_LOCK_STATUS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_LOCKING_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_MOVE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_PERMANENTLY_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_PREVIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_PROVIDER_MIGRATION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_RENAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUESTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUESTS_EMAILS_ENABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUEST_CHANGE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUEST_CLOSE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUEST_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUEST_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REQUEST_RECEIVE_FILE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_RESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_RESTORE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_REVERT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_ROLLBACK_CHANGES Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_SAVE_COPY_REFERENCE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_TRANSFERS_FILE_ADD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_TRANSFERS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_TRANSFERS_TRANSFER_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_TRANSFERS_TRANSFER_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_TRANSFERS_TRANSFER_SEND Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_TRANSFERS_TRANSFER_VIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_UNLIKE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FILE_UNRESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FOLDER_LINK_RESTRICTION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FOLDER_OVERVIEW_DESCRIPTION_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FOLDER_OVERVIEW_ITEM_PINNED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field FOLDER_OVERVIEW_ITEM_UNPINNED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOOGLE_SSO_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_ADD_FOLDERS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_ADD_FOLDER_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_CONTENT_DISPOSED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_EDIT_DETAILS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_EDIT_DURATION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_EXPORT_CREATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_EXPORT_REMOVED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_REMOVE_FOLDERS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_REPORT_CREATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_ADD_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_CHANGE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_CHANGE_MANAGEMENT_TYPE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_CHANGE_MEMBER_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_DESCRIPTION_UPDATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_JOIN_POLICY_UPDATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_MOVED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_REMOVE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_RENAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GROUP_USER_MANAGEMENT_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GUEST_ADMIN_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field INTEGRATION_CONNECTED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field INTEGRATION_DISCONNECTED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field INTEGRATION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_ACTIVATE_A_HOLD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_ADD_MEMBERS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_CHANGE_HOLD_DETAILS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_CHANGE_HOLD_NAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_EXPORT_A_HOLD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_EXPORT_CANCELLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_EXPORT_DOWNLOADED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_EXPORT_REMOVED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_RELEASE_A_HOLD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_REMOVE_MEMBERS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LEGAL_HOLDS_REPORT_A_HOLD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LOGIN_FAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LOGIN_SUCCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field LOGOUT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_ADD_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_ADD_NAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_CHANGE_ADMIN_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_CHANGE_EMAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_CHANGE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_CHANGE_MEMBERSHIP_TYPE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_CHANGE_NAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_CHANGE_RESELLER_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_DELETE_MANUAL_CONTACTS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_DELETE_PROFILE_PHOTO Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_REMOVE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_REQUESTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SEND_INVITE_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SET_PROFILE_PHOTO Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SUGGEST Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_SUGGESTIONS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MEMBER_TRANSFER_ACCOUNT_CONTENTS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NETWORK_CONTROL_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NOTE_ACL_INVITE_ONLY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NOTE_ACL_LINK Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NOTE_ACL_TEAM_LINK Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NOTE_SHARED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NOTE_SHARE_RECEIVE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NO_EXPIRATION_LINK_GEN_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NO_EXPIRATION_LINK_GEN_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NO_PASSWORD_LINK_GEN_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NO_PASSWORD_LINK_GEN_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NO_PASSWORD_LINK_VIEW_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field NO_PASSWORD_LINK_VIEW_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field OBJECT_LABEL_ADDED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field OBJECT_LABEL_REMOVED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field OBJECT_LABEL_UPDATED_VALUE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field OPEN_NOTE_SHARED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field ORGANIZE_FOLDER_WITH_TIDY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field OUTDATED_LINK_VIEW_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field OUTDATED_LINK_VIEW_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_ADMIN_EXPORT_START Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CHANGE_DEPLOYMENT_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CHANGE_MEMBER_LINK_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CHANGE_MEMBER_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_ADD_TO_FOLDER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_ARCHIVE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_PERMANENTLY_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_REMOVE_FROM_FOLDER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_RENAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_CONTENT_RESTORE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DEFAULT_FOLDER_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DESKTOP_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_ADD_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_CHANGE_MEMBER_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_CHANGE_SHARING_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_CHANGE_SUBSCRIPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_DELETED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_DELETE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_EDIT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_EDIT_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_FOLLOWED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_MENTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_OWNERSHIP_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_REQUEST_ACCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_RESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_REVERT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_SLACK_SHARE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_TEAM_INVITE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_TRASHED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_UNRESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_UNTRASHED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_DOC_VIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_ENABLED_USERS_GROUP_ADDITION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_ENABLED_USERS_GROUP_REMOVAL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_EXTERNAL_VIEW_ALLOW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_EXTERNAL_VIEW_DEFAULT_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_EXTERNAL_VIEW_FORBID Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_FOLDER_CHANGE_SUBSCRIPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_FOLDER_DELETED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_FOLDER_FOLLOWED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_FOLDER_TEAM_INVITE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_PUBLISHED_LINK_CHANGE_PERMISSION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_PUBLISHED_LINK_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_PUBLISHED_LINK_DISABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PAPER_PUBLISHED_LINK_VIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PASSWORD_CHANGE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PASSWORD_RESET Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PASSWORD_RESET_ALL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PENDING_SECONDARY_EMAIL_ADDED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field PERMANENT_DELETE_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field RANSOMWARE_ALERT_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field RANSOMWARE_ALERT_CREATE_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field RANSOMWARE_RESTORE_PROCESS_COMPLETED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field RANSOMWARE_RESTORE_PROCESS_STARTED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field REPLAY_FILE_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field REPLAY_FILE_SHARED_LINK_CREATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field REPLAY_FILE_SHARED_LINK_MODIFIED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field REPLAY_PROJECT_TEAM_ADD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field REPLAY_PROJECT_TEAM_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field RESELLER_SUPPORT_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field RESELLER_SUPPORT_SESSION_END Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field RESELLER_SUPPORT_SESSION_START Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field REWIND_FOLDER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field REWIND_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SECONDARY_EMAIL_DELETED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SECONDARY_EMAIL_VERIFIED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SECONDARY_MAILS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SEND_FOR_SIGNATURE_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_ADD_GROUP Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_EXTERNAL_INVITE_WARN Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_FB_INVITE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_FB_INVITE_CHANGE_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_FB_UNINVITE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_INVITE_GROUP Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_TEAM_GRANT_ACCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_TEAM_INVITE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_TEAM_INVITE_CHANGE_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_TEAM_JOIN Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_TEAM_JOIN_FROM_OOB_LINK Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SF_TEAM_UNINVITE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_ADD_INVITEES Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_ADD_LINK_EXPIRY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_ADD_LINK_PASSWORD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CHANGE_INVITEE_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CHANGE_LINK_AUDIENCE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CHANGE_LINK_EXPIRY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CHANGE_LINK_PASSWORD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CHANGE_MEMBER_ROLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_CLAIM_INVITATION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_COPY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_RELINQUISH_MEMBERSHIP Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_REMOVE_INVITEES Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_REMOVE_LINK_EXPIRY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_REMOVE_LINK_PASSWORD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_REQUEST_ACCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_RESTORE_INVITEES Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_RESTORE_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_UNSHARE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_CONTENT_VIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_CHANGE_LINK_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_DECLINE_INVITATION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_MOUNT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_NEST Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_FOLDER_UNMOUNT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_ADD_EXPIRY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_CHANGE_EXPIRY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_CHANGE_VISIBILITY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_COPY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_DISABLE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_REMOVE_EXPIRY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_ADD_EXPIRATION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_ADD_PASSWORD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_CHANGE_AUDIENCE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_CHANGE_EXPIRATION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_CHANGE_PASSWORD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_REMOVE_EXPIRATION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SETTINGS_REMOVE_PASSWORD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_SHARE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_LINK_VIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARED_NOTE_OPENED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARING_CHANGE_FOLDER_JOIN_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARING_CHANGE_LINK_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHARING_CHANGE_MEMBER_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHMODEL_DISABLE_DOWNLOADS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHMODEL_ENABLE_DOWNLOADS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHMODEL_GROUP_SHARE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_ACCESS_GRANTED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_ARCHIVED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_CHANGE_DOWNLOAD_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_CHANGE_ENABLED_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_CREATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_DELETE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_EDITED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_EDIT_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_FILE_ADDED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_FILE_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_FILE_REMOVED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_FILE_VIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_PERMANENTLY_DELETED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_POST_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_RENAMED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_REQUEST_ACCESS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_RESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_RESTORED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_TRASHED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_TRASHED_DEPRECATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_UNRESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_UNTRASHED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_UNTRASHED_DEPRECATED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SHOWCASE_VIEW Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SIGN_IN_AS_SESSION_END Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SIGN_IN_AS_SESSION_START Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SMARTER_SMART_SYNC_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SMART_SYNC_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SMART_SYNC_NOT_OPT_OUT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SMART_SYNC_OPT_OUT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_ADD_CERT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_ADD_LOGIN_URL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_ADD_LOGOUT_URL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_CHANGE_CERT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_CHANGE_LOGIN_URL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_CHANGE_LOGOUT_URL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_CHANGE_SAML_IDENTITY_MODE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_ERROR Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_REMOVE_CERT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_REMOVE_LOGIN_URL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field SSO_REMOVE_LOGOUT_URL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field STARTED_ENTERPRISE_ADMIN_SESSION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ACTIVITY_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ACTIVITY_CREATE_REPORT_FAIL Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_BRANDING_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ENCRYPTION_KEY_CREATE_KEY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ENCRYPTION_KEY_DELETE_KEY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ENCRYPTION_KEY_DISABLE_KEY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ENCRYPTION_KEY_ENABLE_KEY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ENCRYPTION_KEY_ROTATE_KEY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_EXTENSIONS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_FOLDER_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_FOLDER_CREATE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_FOLDER_DOWNGRADE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_FOLDER_PERMANENTLY_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_FOLDER_RENAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_FROM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_ACCEPTED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_AUTO_CANCELED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_CANCELED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_EXPIRED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_REMINDER Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_REVOKED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_MERGE_TO Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_ADD_BACKGROUND Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_ADD_LOGO Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_CHANGE_BACKGROUND Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_CHANGE_LOGO Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_CHANGE_NAME Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_REMOVE_BACKGROUND Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_PROFILE_REMOVE_LOGO Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_SELECTIVE_SYNC_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_ADD_BACKUP_PHONE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_ADD_SECURITY_KEY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_CHANGE_BACKUP_PHONE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_REMOVE_BACKUP_PHONE Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_REMOVE_SECURITY_KEY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TFA_RESET Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field TWO_ACCOUNT_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field UNDO_NAMING_CONVENTION Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field UNDO_ORGANIZE_FOLDER_WITH_TIDY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field USER_TAGS_ADDED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field USER_TAGS_REMOVED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field VIEWER_INFO_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field WATERMARKING_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static final field WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EventType$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/EventType$Tag; +} + +public final class com/dropbox/core/v2/teamlog/EventTypeArg : java/lang/Enum { + public static final field ACCOUNT_CAPTURE_CHANGE_AVAILABILITY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ACCOUNT_CAPTURE_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ACCOUNT_CAPTURE_MIGRATE_ACCOUNT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ACCOUNT_LOCK_OR_UNLOCKED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ADMIN_ALERTING_ALERT_STATE_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ADMIN_ALERTING_CHANGED_ALERT_CONFIG Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ADMIN_ALERTING_TRIGGERED_ALERT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ADMIN_EMAIL_REMINDERS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ALLOW_DOWNLOAD_DISABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ALLOW_DOWNLOAD_ENABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field APPLY_NAMING_CONVENTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field APP_BLOCKED_BY_PERMISSIONS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field APP_LINK_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field APP_LINK_USER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field APP_PERMISSIONS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field APP_UNLINK_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field APP_UNLINK_USER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BACKUP_ADMIN_INVITATION_SENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BACKUP_INVITATION_OPENED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_ADD_PAGE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_ADD_SECTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_REMOVE_PAGE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_REMOVE_SECTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_RENAME_PAGE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_RENAME_SECTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_REORDER_PAGE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field BINDER_REORDER_SECTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CAMERA_UPLOADS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CAPTURE_TRANSCRIPT_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CHANGED_ENTERPRISE_ADMIN_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CLASSIFICATION_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CLASSIFICATION_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CLASSIFICATION_CREATE_REPORT_FAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field COLLECTION_SHARE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field COMPUTER_BACKUP_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CONTENT_ADMINISTRATION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CREATE_FOLDER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field CREATE_TEAM_INVITE_LINK Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DELETE_TEAM_INVITE_LINK Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_APPROVALS_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_APPROVALS_CHANGE_MOBILE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_APPROVALS_CHANGE_UNLINK_ACTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_APPROVALS_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_CHANGE_IP_DESKTOP Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_CHANGE_IP_MOBILE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_CHANGE_IP_WEB Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_DELETE_ON_UNLINK_FAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_DELETE_ON_UNLINK_SUCCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_LINK_FAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_LINK_SUCCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_MANAGEMENT_DISABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_MANAGEMENT_ENABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_SYNC_BACKUP_STATUS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DEVICE_UNLINK Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DIRECTORY_RESTRICTIONS_ADD_MEMBERS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DISABLED_DOMAIN_INVITES Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_INVITES_EMAIL_EXISTING_USERS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DOMAIN_VERIFICATION_REMOVE_DOMAIN Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DROPBOX_PASSWORDS_EXPORTED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field DROPBOX_PASSWORDS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMAIL_INGEST_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMAIL_INGEST_RECEIVE_FILE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMM_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMM_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMM_CREATE_EXCEPTIONS_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMM_CREATE_USAGE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMM_ERROR Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMM_REFRESH_AUTH_TOKEN Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EMM_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ENABLED_DOMAIN_INVITES Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ENDED_ENTERPRISE_ADMIN_SESSION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ENTERPRISE_SETTINGS_LOCKING Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXPORT_MEMBERS_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXPORT_MEMBERS_REPORT_FAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXTENDED_VERSION_HISTORY_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXTERNAL_SHARING_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field EXTERNAL_SHARING_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_ADD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_ADD_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_ADD_FROM_AUTOMATION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_CHANGE_COMMENT_SUBSCRIPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_COMMENTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_COPY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_DELETE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_EDIT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_EDIT_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_GET_COPY_REFERENCE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_LIKE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_LOCKING_LOCK_STATUS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_LOCKING_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_MOVE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_PERMANENTLY_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_PREVIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_PROVIDER_MIGRATION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_RENAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUESTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUESTS_EMAILS_ENABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUEST_CHANGE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUEST_CLOSE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUEST_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUEST_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REQUEST_RECEIVE_FILE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_RESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_RESTORE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_REVERT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_ROLLBACK_CHANGES Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_SAVE_COPY_REFERENCE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_TRANSFERS_FILE_ADD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_TRANSFERS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_TRANSFERS_TRANSFER_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_TRANSFERS_TRANSFER_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_TRANSFERS_TRANSFER_SEND Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_TRANSFERS_TRANSFER_VIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_UNLIKE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FILE_UNRESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FOLDER_LINK_RESTRICTION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FOLDER_OVERVIEW_DESCRIPTION_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FOLDER_OVERVIEW_ITEM_PINNED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field FOLDER_OVERVIEW_ITEM_UNPINNED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOOGLE_SSO_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_ADD_FOLDERS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_ADD_FOLDER_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_CONTENT_DISPOSED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_EDIT_DETAILS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_EDIT_DURATION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_EXPORT_CREATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_EXPORT_REMOVED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_REMOVE_FOLDERS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_REPORT_CREATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_ADD_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_CHANGE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_CHANGE_MANAGEMENT_TYPE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_CHANGE_MEMBER_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_DESCRIPTION_UPDATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_JOIN_POLICY_UPDATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_MOVED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_REMOVE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_RENAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GROUP_USER_MANAGEMENT_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GUEST_ADMIN_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field INTEGRATION_CONNECTED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field INTEGRATION_DISCONNECTED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field INTEGRATION_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_ACTIVATE_A_HOLD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_ADD_MEMBERS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_CHANGE_HOLD_DETAILS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_CHANGE_HOLD_NAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_EXPORT_A_HOLD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_EXPORT_CANCELLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_EXPORT_DOWNLOADED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_EXPORT_REMOVED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_RELEASE_A_HOLD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_REMOVE_MEMBERS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LEGAL_HOLDS_REPORT_A_HOLD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LOGIN_FAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LOGIN_SUCCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field LOGOUT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_ADD_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_ADD_NAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_CHANGE_ADMIN_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_CHANGE_EMAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_CHANGE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_CHANGE_MEMBERSHIP_TYPE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_CHANGE_NAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_CHANGE_RESELLER_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_DELETE_MANUAL_CONTACTS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_DELETE_PROFILE_PHOTO Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_REMOVE_EXTERNAL_ID Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_REQUESTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SEND_INVITE_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SET_PROFILE_PHOTO Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SUGGEST Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_SUGGESTIONS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MEMBER_TRANSFER_ACCOUNT_CONTENTS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NETWORK_CONTROL_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NOTE_ACL_INVITE_ONLY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NOTE_ACL_LINK Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NOTE_ACL_TEAM_LINK Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NOTE_SHARED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NOTE_SHARE_RECEIVE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NO_EXPIRATION_LINK_GEN_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NO_EXPIRATION_LINK_GEN_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NO_PASSWORD_LINK_GEN_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NO_PASSWORD_LINK_GEN_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NO_PASSWORD_LINK_VIEW_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field NO_PASSWORD_LINK_VIEW_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field OBJECT_LABEL_ADDED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field OBJECT_LABEL_REMOVED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field OBJECT_LABEL_UPDATED_VALUE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field OPEN_NOTE_SHARED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field ORGANIZE_FOLDER_WITH_TIDY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field OUTDATED_LINK_VIEW_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field OUTDATED_LINK_VIEW_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_ADMIN_EXPORT_START Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CHANGE_DEPLOYMENT_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CHANGE_MEMBER_LINK_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CHANGE_MEMBER_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_ADD_TO_FOLDER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_ARCHIVE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_PERMANENTLY_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_REMOVE_FROM_FOLDER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_RENAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_CONTENT_RESTORE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DEFAULT_FOLDER_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DESKTOP_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_ADD_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_CHANGE_MEMBER_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_CHANGE_SHARING_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_CHANGE_SUBSCRIPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_DELETED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_DELETE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_EDIT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_EDIT_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_FOLLOWED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_MENTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_OWNERSHIP_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_REQUEST_ACCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_RESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_REVERT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_SLACK_SHARE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_TEAM_INVITE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_TRASHED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_UNRESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_UNTRASHED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_DOC_VIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_ENABLED_USERS_GROUP_ADDITION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_ENABLED_USERS_GROUP_REMOVAL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_EXTERNAL_VIEW_ALLOW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_EXTERNAL_VIEW_DEFAULT_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_EXTERNAL_VIEW_FORBID Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_FOLDER_CHANGE_SUBSCRIPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_FOLDER_DELETED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_FOLDER_FOLLOWED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_FOLDER_TEAM_INVITE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_PUBLISHED_LINK_CHANGE_PERMISSION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_PUBLISHED_LINK_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_PUBLISHED_LINK_DISABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PAPER_PUBLISHED_LINK_VIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PASSWORD_CHANGE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PASSWORD_RESET Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PASSWORD_RESET_ALL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PENDING_SECONDARY_EMAIL_ADDED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field PERMANENT_DELETE_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field RANSOMWARE_ALERT_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field RANSOMWARE_ALERT_CREATE_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field RANSOMWARE_RESTORE_PROCESS_COMPLETED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field RANSOMWARE_RESTORE_PROCESS_STARTED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field REPLAY_FILE_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field REPLAY_FILE_SHARED_LINK_CREATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field REPLAY_FILE_SHARED_LINK_MODIFIED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field REPLAY_PROJECT_TEAM_ADD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field REPLAY_PROJECT_TEAM_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field RESELLER_SUPPORT_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field RESELLER_SUPPORT_SESSION_END Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field RESELLER_SUPPORT_SESSION_START Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field REWIND_FOLDER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field REWIND_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SECONDARY_EMAIL_DELETED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SECONDARY_EMAIL_VERIFIED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SECONDARY_MAILS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SEND_FOR_SIGNATURE_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_ADD_GROUP Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_EXTERNAL_INVITE_WARN Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_FB_INVITE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_FB_INVITE_CHANGE_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_FB_UNINVITE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_INVITE_GROUP Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_TEAM_GRANT_ACCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_TEAM_INVITE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_TEAM_INVITE_CHANGE_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_TEAM_JOIN Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_TEAM_JOIN_FROM_OOB_LINK Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SF_TEAM_UNINVITE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_ADD_INVITEES Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_ADD_LINK_EXPIRY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_ADD_LINK_PASSWORD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CHANGE_INVITEE_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CHANGE_LINK_AUDIENCE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CHANGE_LINK_EXPIRY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CHANGE_LINK_PASSWORD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CHANGE_MEMBER_ROLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_CLAIM_INVITATION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_COPY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_RELINQUISH_MEMBERSHIP Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_REMOVE_INVITEES Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_REMOVE_LINK_EXPIRY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_REMOVE_LINK_PASSWORD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_REQUEST_ACCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_RESTORE_INVITEES Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_RESTORE_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_UNSHARE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_CONTENT_VIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_CHANGE_LINK_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_CHANGE_MEMBERS_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_DECLINE_INVITATION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_MOUNT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_NEST Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_FOLDER_UNMOUNT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_ADD_EXPIRY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_CHANGE_EXPIRY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_CHANGE_VISIBILITY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_COPY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_DISABLE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_REMOVE_EXPIRY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_ADD_EXPIRATION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_ADD_PASSWORD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_CHANGE_AUDIENCE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_CHANGE_EXPIRATION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_CHANGE_PASSWORD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_REMOVE_EXPIRATION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SETTINGS_REMOVE_PASSWORD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_SHARE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_LINK_VIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARED_NOTE_OPENED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARING_CHANGE_FOLDER_JOIN_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARING_CHANGE_LINK_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHARING_CHANGE_MEMBER_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHMODEL_DISABLE_DOWNLOADS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHMODEL_ENABLE_DOWNLOADS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHMODEL_GROUP_SHARE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_ACCESS_GRANTED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_ADD_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_ARCHIVED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_CHANGE_DOWNLOAD_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_CHANGE_ENABLED_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_CREATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_DELETE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_EDITED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_EDIT_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_FILE_ADDED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_FILE_DOWNLOAD Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_FILE_REMOVED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_FILE_VIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_PERMANENTLY_DELETED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_POST_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_REMOVE_MEMBER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_RENAMED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_REQUEST_ACCESS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_RESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_RESTORED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_TRASHED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_TRASHED_DEPRECATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_UNRESOLVE_COMMENT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_UNTRASHED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_UNTRASHED_DEPRECATED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SHOWCASE_VIEW Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SIGN_IN_AS_SESSION_END Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SIGN_IN_AS_SESSION_START Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SMARTER_SMART_SYNC_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SMART_SYNC_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SMART_SYNC_NOT_OPT_OUT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SMART_SYNC_OPT_OUT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_ADD_CERT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_ADD_LOGIN_URL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_ADD_LOGOUT_URL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_CHANGE_CERT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_CHANGE_LOGIN_URL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_CHANGE_LOGOUT_URL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_CHANGE_SAML_IDENTITY_MODE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_ERROR Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_REMOVE_CERT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_REMOVE_LOGIN_URL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field SSO_REMOVE_LOGOUT_URL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field STARTED_ENTERPRISE_ADMIN_SESSION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ACTIVITY_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ACTIVITY_CREATE_REPORT_FAIL Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_BRANDING_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ENCRYPTION_KEY_CREATE_KEY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ENCRYPTION_KEY_DELETE_KEY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ENCRYPTION_KEY_DISABLE_KEY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ENCRYPTION_KEY_ENABLE_KEY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ENCRYPTION_KEY_ROTATE_KEY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_EXTENSIONS_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_FOLDER_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_FOLDER_CREATE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_FOLDER_DOWNGRADE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_FOLDER_PERMANENTLY_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_FOLDER_RENAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_FROM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_ACCEPTED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_AUTO_CANCELED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_CANCELED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_EXPIRED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_REMINDER Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_REVOKED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_MERGE_TO Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_ADD_BACKGROUND Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_ADD_LOGO Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_CHANGE_BACKGROUND Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_CHANGE_LOGO Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_CHANGE_NAME Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_REMOVE_BACKGROUND Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_PROFILE_REMOVE_LOGO Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_SELECTIVE_SYNC_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_ADD_BACKUP_PHONE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_ADD_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_ADD_SECURITY_KEY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_CHANGE_BACKUP_PHONE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_CHANGE_STATUS Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_REMOVE_BACKUP_PHONE Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_REMOVE_EXCEPTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_REMOVE_SECURITY_KEY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TFA_RESET Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field TWO_ACCOUNT_CHANGE_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field UNDO_NAMING_CONVENTION Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field UNDO_ORGANIZE_FOLDER_WITH_TIDY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field USER_TAGS_ADDED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field USER_TAGS_REMOVED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field VIEWER_INFO_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field WATERMARKING_POLICY_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static final field WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/EventTypeArg; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/EventTypeArg; +} + +public class com/dropbox/core/v2/teamlog/ExportMembersReportDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExportMembersReportFailDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExportMembersReportFailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExportMembersReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy;Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy : java/lang/Enum { + public static final field EXPLICITLY_LIMITED Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public static final field EXPLICITLY_UNLIMITED Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public static final field IMPLICITLY_LIMITED Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public static final field IMPLICITLY_UNLIMITED Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy; +} + +public final class com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus : java/lang/Enum { + public static final field EXCEED_LICENSE_CAP Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus; + public static final field SUCCESS Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus; +} + +public class com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedDetails { + protected final field desktopDeviceSessionInfo Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + protected final field numberOfExternalDriveBackup J + protected final field status Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus; + public fun (Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo;Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getDesktopDeviceSessionInfo ()Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + public fun getNumberOfExternalDriveBackup ()J + public fun getStatus ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; +} + +public class com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy;Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ExternalDriveBackupStatus : java/lang/Enum { + public static final field BROKEN Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static final field CREATED Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static final field CREATED_OR_BROKEN Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static final field DELETED Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static final field EMPTY Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static final field UNKNOWN Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; +} + +public class com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedDetails { + protected final field desktopDeviceSessionInfo Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + protected final field newValue Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public fun (Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo;Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus;Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDesktopDeviceSessionInfo ()Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ExternalDriveBackupStatus; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalSharingCreateReportDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalSharingCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalSharingReportFailedDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalSharingReportFailedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ExternalUserLogInfo { + protected final field identifierType Lcom/dropbox/core/v2/teamlog/IdentifierType; + protected final field userIdentifier Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/IdentifierType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIdentifierType ()Lcom/dropbox/core/v2/teamlog/IdentifierType; + public fun getUserIdentifier ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FailureDetailsLogInfo { + protected final field technicalErrorMessage Ljava/lang/String; + protected final field userFriendlyMessage Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTechnicalErrorMessage ()Ljava/lang/String; + public fun getUserFriendlyMessage ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FailureDetailsLogInfo$Builder { + protected field technicalErrorMessage Ljava/lang/String; + protected field userFriendlyMessage Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo; + public fun withTechnicalErrorMessage (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo$Builder; + public fun withUserFriendlyMessage (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo$Builder; +} + +public final class com/dropbox/core/v2/teamlog/FedAdminRole : java/lang/Enum { + public static final field ENTERPRISE_ADMIN Lcom/dropbox/core/v2/teamlog/FedAdminRole; + public static final field NOT_ENTERPRISE_ADMIN Lcom/dropbox/core/v2/teamlog/FedAdminRole; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FedAdminRole; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FedAdminRole; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FedAdminRole; +} + +public final class com/dropbox/core/v2/teamlog/FedExtraDetails { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FedExtraDetails; + public fun equals (Ljava/lang/Object;)Z + public fun getOrganizationValue ()Lcom/dropbox/core/v2/teamlog/OrganizationDetails; + public fun getTeamValue ()Lcom/dropbox/core/v2/teamlog/TeamDetails; + public fun hashCode ()I + public fun isOrganization ()Z + public fun isOther ()Z + public fun isTeam ()Z + public static fun organization (Lcom/dropbox/core/v2/teamlog/OrganizationDetails;)Lcom/dropbox/core/v2/teamlog/FedExtraDetails; + public fun tag ()Lcom/dropbox/core/v2/teamlog/FedExtraDetails$Tag; + public static fun team (Lcom/dropbox/core/v2/teamlog/TeamDetails;)Lcom/dropbox/core/v2/teamlog/FedExtraDetails; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/FedExtraDetails$Tag : java/lang/Enum { + public static final field ORGANIZATION Lcom/dropbox/core/v2/teamlog/FedExtraDetails$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FedExtraDetails$Tag; + public static final field TEAM Lcom/dropbox/core/v2/teamlog/FedExtraDetails$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FedExtraDetails$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FedExtraDetails$Tag; +} + +public final class com/dropbox/core/v2/teamlog/FedHandshakeAction : java/lang/Enum { + public static final field ACCEPTED_INVITE Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static final field CANCELED_INVITE Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static final field INVITED Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static final field INVITE_EXPIRED Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static final field REJECTED_INVITE Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static final field REMOVED_TEAM Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FedHandshakeAction; +} + +public final class com/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo; + public static fun connectedTeamName (Lcom/dropbox/core/v2/teamlog/ConnectedTeamName;)Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getConnectedTeamNameValue ()Lcom/dropbox/core/v2/teamlog/ConnectedTeamName; + public fun getNonTrustedTeamDetailsValue ()Lcom/dropbox/core/v2/teamlog/NonTrustedTeamDetails; + public fun getOrganizationNameValue ()Lcom/dropbox/core/v2/teamlog/OrganizationName; + public fun hashCode ()I + public fun isConnectedTeamName ()Z + public fun isNonTrustedTeamDetails ()Z + public fun isOrganizationName ()Z + public fun isOther ()Z + public static fun nonTrustedTeamDetails (Lcom/dropbox/core/v2/teamlog/NonTrustedTeamDetails;)Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo; + public static fun organizationName (Lcom/dropbox/core/v2/teamlog/OrganizationName;)Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo; + public fun tag ()Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag : java/lang/Enum { + public static final field CONNECTED_TEAM_NAME Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag; + public static final field NON_TRUSTED_TEAM_DETAILS Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag; + public static final field ORGANIZATION_NAME Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo$Tag; +} + +public class com/dropbox/core/v2/teamlog/FileAddCommentDetails { + protected final field commentText Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileAddCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileAddDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileAddFromAutomationDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileAddFromAutomationType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileAddType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy;Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/FileCommentNotificationPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FileCommentNotificationPolicy; +} + +public class com/dropbox/core/v2/teamlog/FileCommentsChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy;Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileCommentsChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/FileCommentsPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FileCommentsPolicy; +} + +public class com/dropbox/core/v2/teamlog/FileCopyDetails { + protected final field relocateActionDetails Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRelocateActionDetails ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileCopyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileDeleteCommentDetails { + protected final field commentText Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileDeleteCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileDeleteDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileDownloadDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileDownloadType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileEditCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field previousCommentText Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getPreviousCommentText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileEditCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileEditDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileEditType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileGetCopyReferenceDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileGetCopyReferenceType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLikeCommentDetails { + protected final field commentText Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLikeCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/LockStatus; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/LockStatus; + public fun (Lcom/dropbox/core/v2/teamlog/LockStatus;Lcom/dropbox/core/v2/teamlog/LockStatus;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/LockStatus; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/LockStatus; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLockingPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public fun (Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState;Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLockingPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLogInfo : com/dropbox/core/v2/teamlog/FileOrFolderLogInfo { + public fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)V + public fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun getFileId ()Ljava/lang/String; + public fun getFileSize ()Ljava/lang/Long; + public fun getPath ()Lcom/dropbox/core/v2/teamlog/PathLogInfo; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)Lcom/dropbox/core/v2/teamlog/FileLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileLogInfo$Builder : com/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder { + protected fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileLogInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileLogInfo$Builder; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun withFileId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileLogInfo$Builder; + public synthetic fun withFileId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun withFileSize (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/FileLogInfo$Builder; + public synthetic fun withFileSize (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/FileMoveDetails { + protected final field relocateActionDetails Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRelocateActionDetails ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileMoveType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileOrFolderLogInfo { + protected final field displayName Ljava/lang/String; + protected final field fileId Ljava/lang/String; + protected final field fileSize Ljava/lang/Long; + protected final field path Lcom/dropbox/core/v2/teamlog/PathLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)V + public fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun getFileId ()Ljava/lang/String; + public fun getFileSize ()Ljava/lang/Long; + public fun getPath ()Lcom/dropbox/core/v2/teamlog/PathLogInfo; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder { + protected field displayName Ljava/lang/String; + protected field fileId Ljava/lang/String; + protected field fileSize Ljava/lang/Long; + protected final field path Lcom/dropbox/core/v2/teamlog/PathLogInfo; + protected fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun withFileId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun withFileSize (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/FilePermanentlyDeleteDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FilePermanentlyDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FilePreviewDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FilePreviewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public fun (Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState;Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRenameDetails { + protected final field relocateActionDetails Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRelocateActionDetails ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRenameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestChangeDetails { + protected final field fileRequestId Ljava/lang/String; + protected final field newDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected final field previousDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)V + public fun (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequestId ()Ljava/lang/String; + public fun getNewDetails ()Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun getPreviousDetails ()Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)Lcom/dropbox/core/v2/teamlog/FileRequestChangeDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestChangeDetails$Builder { + protected field fileRequestId Ljava/lang/String; + protected final field newDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected field previousDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected fun (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileRequestChangeDetails; + public fun withFileRequestId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestChangeDetails$Builder; + public fun withPreviousDetails (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)Lcom/dropbox/core/v2/teamlog/FileRequestChangeDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/FileRequestChangeType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestCloseDetails { + protected final field fileRequestId Ljava/lang/String; + protected final field previousDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun ()V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequestId ()Ljava/lang/String; + public fun getPreviousDetails ()Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/FileRequestCloseDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestCloseDetails$Builder { + protected field fileRequestId Ljava/lang/String; + protected field previousDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileRequestCloseDetails; + public fun withFileRequestId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestCloseDetails$Builder; + public fun withPreviousDetails (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)Lcom/dropbox/core/v2/teamlog/FileRequestCloseDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/FileRequestCloseType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestCreateDetails { + protected final field fileRequestId Ljava/lang/String; + protected final field requestDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun ()V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequestId ()Ljava/lang/String; + public fun getRequestDetails ()Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/FileRequestCreateDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestCreateDetails$Builder { + protected field fileRequestId Ljava/lang/String; + protected field requestDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileRequestCreateDetails; + public fun withFileRequestId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestCreateDetails$Builder; + public fun withRequestDetails (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)Lcom/dropbox/core/v2/teamlog/FileRequestCreateDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/FileRequestCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestDeadline { + protected final field allowLateUploads Ljava/lang/String; + protected final field deadline Ljava/util/Date; + public fun ()V + public fun (Ljava/util/Date;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllowLateUploads ()Ljava/lang/String; + public fun getDeadline ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/FileRequestDeadline$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestDeadline$Builder { + protected field allowLateUploads Ljava/lang/String; + protected field deadline Ljava/util/Date; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileRequestDeadline; + public fun withAllowLateUploads (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestDeadline$Builder; + public fun withDeadline (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/FileRequestDeadline$Builder; +} + +public class com/dropbox/core/v2/teamlog/FileRequestDeleteDetails { + protected final field fileRequestId Ljava/lang/String; + protected final field previousDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun ()V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequestId ()Ljava/lang/String; + public fun getPreviousDetails ()Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/FileRequestDeleteDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestDeleteDetails$Builder { + protected field fileRequestId Ljava/lang/String; + protected field previousDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileRequestDeleteDetails; + public fun withFileRequestId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestDeleteDetails$Builder; + public fun withPreviousDetails (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)Lcom/dropbox/core/v2/teamlog/FileRequestDeleteDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/FileRequestDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestDetails { + protected final field assetIndex J + protected final field deadline Lcom/dropbox/core/v2/teamlog/FileRequestDeadline; + public fun (J)V + public fun (JLcom/dropbox/core/v2/teamlog/FileRequestDeadline;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAssetIndex ()J + public fun getDeadline ()Lcom/dropbox/core/v2/teamlog/FileRequestDeadline; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails { + protected final field fileRequestDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected final field fileRequestId Ljava/lang/String; + protected final field submittedFileNames Ljava/util/List; + protected final field submitterEmail Ljava/lang/String; + protected final field submitterName Ljava/lang/String; + public fun (Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/FileRequestDetails;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileRequestDetails ()Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + public fun getFileRequestId ()Ljava/lang/String; + public fun getSubmittedFileNames ()Ljava/util/List; + public fun getSubmitterEmail ()Ljava/lang/String; + public fun getSubmitterName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails$Builder { + protected field fileRequestDetails Lcom/dropbox/core/v2/teamlog/FileRequestDetails; + protected field fileRequestId Ljava/lang/String; + protected final field submittedFileNames Ljava/util/List; + protected field submitterEmail Ljava/lang/String; + protected field submitterName Ljava/lang/String; + protected fun (Ljava/util/List;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails; + public fun withFileRequestDetails (Lcom/dropbox/core/v2/teamlog/FileRequestDetails;)Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails$Builder; + public fun withFileRequestId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails$Builder; + public fun withSubmitterEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails$Builder; + public fun withSubmitterName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/FileRequestReceiveFileType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestsChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy;Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestsChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/FileRequestsPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FileRequestsPolicy; +} + +public class com/dropbox/core/v2/teamlog/FileResolveCommentDetails { + protected final field commentText Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileResolveCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRestoreDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRestoreType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRevertDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRevertType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRollbackChangesDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileRollbackChangesType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileSaveCopyReferenceDetails { + protected final field relocateActionDetails Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRelocateActionDetails ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileSaveCopyReferenceType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersFileAddDetails { + protected final field fileTransferId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileTransferId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersFileAddType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/FileTransfersPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy;Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/FileTransfersPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteDetails { + protected final field fileTransferId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileTransferId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadDetails { + protected final field fileTransferId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileTransferId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferSendDetails { + protected final field fileTransferId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileTransferId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferSendType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferViewDetails { + protected final field fileTransferId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFileTransferId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileTransfersTransferViewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileUnlikeCommentDetails { + protected final field commentText Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileUnlikeCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileUnresolveCommentDetails { + protected final field commentText Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FileUnresolveCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; +} + +public class com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy;Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderLogInfo : com/dropbox/core/v2/teamlog/FileOrFolderLogInfo { + protected final field fileCount Ljava/lang/Long; + public fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)V + public fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun getFileCount ()Ljava/lang/Long; + public fun getFileId ()Ljava/lang/String; + public fun getFileSize ()Ljava/lang/Long; + public fun getPath ()Lcom/dropbox/core/v2/teamlog/PathLogInfo; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)Lcom/dropbox/core/v2/teamlog/FolderLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderLogInfo$Builder : com/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder { + protected field fileCount Ljava/lang/Long; + protected fun (Lcom/dropbox/core/v2/teamlog/PathLogInfo;)V + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo; + public fun build ()Lcom/dropbox/core/v2/teamlog/FolderLogInfo; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FolderLogInfo$Builder; + public fun withFileCount (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/FolderLogInfo$Builder; + public synthetic fun withFileId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun withFileId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/FolderLogInfo$Builder; + public synthetic fun withFileSize (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/FileOrFolderLogInfo$Builder; + public fun withFileSize (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/FolderLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedDetails { + protected final field folderOverviewLocationAsset J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolderOverviewLocationAsset ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedDetails { + protected final field folderOverviewLocationAsset J + protected final field pinnedItemsAssetIndices Ljava/util/List; + public fun (JLjava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolderOverviewLocationAsset ()J + public fun getPinnedItemsAssetIndices ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedDetails { + protected final field folderOverviewLocationAsset J + protected final field pinnedItemsAssetIndices Ljava/util/List; + public fun (JLjava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolderOverviewLocationAsset ()J + public fun getPinnedItemsAssetIndices ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GeoLocationLogInfo { + protected final field city Ljava/lang/String; + protected final field country Ljava/lang/String; + protected final field ipAddress Ljava/lang/String; + protected final field region Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCity ()Ljava/lang/String; + public fun getCountry ()Ljava/lang/String; + public fun getIpAddress ()Ljava/lang/String; + public fun getRegion ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GeoLocationLogInfo$Builder { + protected field city Ljava/lang/String; + protected field country Ljava/lang/String; + protected final field ipAddress Ljava/lang/String; + protected field region Ljava/lang/String; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo; + public fun withCity (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo$Builder; + public fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo$Builder; + public fun withRegion (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/GetEventsBuilder { + public fun start ()Lcom/dropbox/core/v2/teamlog/GetTeamEventsResult; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GetEventsBuilder; + public fun withCategory (Lcom/dropbox/core/v2/teamlog/EventCategory;)Lcom/dropbox/core/v2/teamlog/GetEventsBuilder; + public fun withEventType (Lcom/dropbox/core/v2/teamlog/EventTypeArg;)Lcom/dropbox/core/v2/teamlog/GetEventsBuilder; + public fun withLimit (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/GetEventsBuilder; + public fun withTime (Lcom/dropbox/core/v2/teamcommon/TimeRange;)Lcom/dropbox/core/v2/teamlog/GetEventsBuilder; +} + +public final class com/dropbox/core/v2/teamlog/GetTeamEventsContinueError { + public static final field BAD_CURSOR Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError; + public fun equals (Ljava/lang/Object;)Z + public fun getResetValue ()Ljava/util/Date; + public fun hashCode ()I + public fun isBadCursor ()Z + public fun isOther ()Z + public fun isReset ()Z + public static fun reset (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError; + public fun tag ()Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/GetTeamEventsContinueError$Tag : java/lang/Enum { + public static final field BAD_CURSOR Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError$Tag; + public static final field RESET Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError$Tag; +} + +public class com/dropbox/core/v2/teamlog/GetTeamEventsContinueErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/teamlog/GetTeamEventsContinueError;)V +} + +public final class com/dropbox/core/v2/teamlog/GetTeamEventsError : java/lang/Enum { + public static final field ACCOUNT_ID_NOT_FOUND Lcom/dropbox/core/v2/teamlog/GetTeamEventsError; + public static final field INVALID_FILTERS Lcom/dropbox/core/v2/teamlog/GetTeamEventsError; + public static final field INVALID_TIME_RANGE Lcom/dropbox/core/v2/teamlog/GetTeamEventsError; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/GetTeamEventsError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GetTeamEventsError; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/GetTeamEventsError; +} + +public class com/dropbox/core/v2/teamlog/GetTeamEventsErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/teamlog/GetTeamEventsError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/teamlog/GetTeamEventsError;)V +} + +public class com/dropbox/core/v2/teamlog/GetTeamEventsResult { + protected final field cursor Ljava/lang/String; + protected final field events Ljava/util/List; + protected final field hasMore Z + public fun (Ljava/util/List;Ljava/lang/String;Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getCursor ()Ljava/lang/String; + public fun getEvents ()Ljava/util/List; + public fun getHasMore ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy;Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/GoogleSsoPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/GoogleSsoPolicy; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails { + protected final field folder Ljava/lang/String; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected final field reason Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolder ()Ljava/lang/String; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun getReason ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails$Builder { + protected final field folder Ljava/lang/String; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected field reason Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails; + public fun withPolicyType (Lcom/dropbox/core/v2/teamlog/PolicyType;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails$Builder; + public fun withReason (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails { + protected final field folders Ljava/util/List; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolders ()Ljava/util/List; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails$Builder { + protected field folders Ljava/util/List; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected fun (Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails; + public fun withFolders (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails$Builder; + public fun withPolicyType (Lcom/dropbox/core/v2/teamlog/PolicyType;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedDetails { + protected final field dispositionType Lcom/dropbox/core/v2/teamlog/DispositionActionType; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DispositionActionType;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DispositionActionType;Lcom/dropbox/core/v2/teamlog/PolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDispositionType ()Lcom/dropbox/core/v2/teamlog/DispositionActionType; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails { + protected final field duration Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + protected final field folders Ljava/util/List; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;Lcom/dropbox/core/v2/teamlog/PolicyType;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDuration ()Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + public fun getFolders ()Ljava/util/List; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails$Builder { + protected final field duration Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + protected field folders Ljava/util/List; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails; + public fun withFolders (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails$Builder; + public fun withPolicyType (Lcom/dropbox/core/v2/teamlog/PolicyType;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyDeleteDetails { + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsDetails { + protected final field attribute Ljava/lang/String; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field newValue Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAttribute ()Ljava/lang/String; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getNewValue ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationDetails { + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field newValue Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;Lcom/dropbox/core/v2/teamlog/DurationLogInfo;Lcom/dropbox/core/v2/teamlog/PolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedDetails { + protected final field exportName Ljava/lang/String; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportName ()Ljava/lang/String; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedDetails { + protected final field exportName Ljava/lang/String; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportName ()Ljava/lang/String; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails { + protected final field folders Ljava/util/List; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected final field reason Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;Ljava/util/List;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolders ()Ljava/util/List; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun getReason ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails$Builder { + protected field folders Ljava/util/List; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected field reason Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails; + public fun withFolders (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails$Builder; + public fun withPolicyType (Lcom/dropbox/core/v2/teamlog/PolicyType;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails$Builder; + public fun withReason (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedDetails { + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails { + protected final field exportName Ljava/lang/String; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field part Ljava/lang/String; + protected final field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PolicyType;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportName ()Ljava/lang/String; + public fun getGovernancePolicyId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPart ()Ljava/lang/String; + public fun getPolicyType ()Lcom/dropbox/core/v2/teamlog/PolicyType; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails$Builder { + protected final field exportName Ljava/lang/String; + protected final field governancePolicyId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected field part Ljava/lang/String; + protected field policyType Lcom/dropbox/core/v2/teamlog/PolicyType; + protected fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails; + public fun withPart (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails$Builder; + public fun withPolicyType (Lcom/dropbox/core/v2/teamlog/PolicyType;)Lcom/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupAddExternalIdDetails { + protected final field newValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupAddExternalIdType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupAddMemberDetails { + protected final field isGroupOwner Z + public fun (Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsGroupOwner ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupAddMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupChangeExternalIdDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupChangeExternalIdType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupChangeManagementTypeDetails { + protected final field newValue Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + protected final field previousValue Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public fun (Lcom/dropbox/core/v2/teamcommon/GroupManagementType;)V + public fun (Lcom/dropbox/core/v2/teamcommon/GroupManagementType;Lcom/dropbox/core/v2/teamcommon/GroupManagementType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamcommon/GroupManagementType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupChangeManagementTypeType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupChangeMemberRoleDetails { + protected final field isGroupOwner Z + public fun (Z)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsGroupOwner ()Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupChangeMemberRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupCreateDetails { + protected final field isCompanyManaged Ljava/lang/Boolean; + protected final field joinPolicy Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public fun ()V + public fun (Ljava/lang/Boolean;Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsCompanyManaged ()Ljava/lang/Boolean; + public fun getJoinPolicy ()Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/GroupCreateDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupCreateDetails$Builder { + protected field isCompanyManaged Ljava/lang/Boolean; + protected field joinPolicy Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/GroupCreateDetails; + public fun withIsCompanyManaged (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/GroupCreateDetails$Builder; + public fun withJoinPolicy (Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy;)Lcom/dropbox/core/v2/teamlog/GroupCreateDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GroupCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupDeleteDetails { + protected final field isCompanyManaged Ljava/lang/Boolean; + public fun ()V + public fun (Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsCompanyManaged ()Ljava/lang/Boolean; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/GroupJoinPolicy : java/lang/Enum { + public static final field OPEN Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public static final field REQUEST_TO_JOIN Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; +} + +public class com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails { + protected final field isCompanyManaged Ljava/lang/Boolean; + protected final field joinPolicy Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public fun ()V + public fun (Ljava/lang/Boolean;Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsCompanyManaged ()Ljava/lang/Boolean; + public fun getJoinPolicy ()Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails$Builder { + protected field isCompanyManaged Ljava/lang/Boolean; + protected field joinPolicy Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails; + public fun withIsCompanyManaged (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails$Builder; + public fun withJoinPolicy (Lcom/dropbox/core/v2/teamlog/GroupJoinPolicy;)Lcom/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupLogInfo { + protected final field displayName Ljava/lang/String; + protected final field externalId Ljava/lang/String; + protected final field groupId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun getExternalId ()Ljava/lang/String; + public fun getGroupId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GroupLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupLogInfo$Builder { + protected final field displayName Ljava/lang/String; + protected field externalId Ljava/lang/String; + protected field groupId Ljava/lang/String; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GroupLogInfo; + public fun withExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GroupLogInfo$Builder; + public fun withGroupId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GroupLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/GroupMovedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupMovedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupRemoveExternalIdDetails { + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupRemoveExternalIdType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupRemoveMemberDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupRemoveMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupRenameDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupRenameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/GroupCreation; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public fun (Lcom/dropbox/core/v2/teampolicies/GroupCreation;)V + public fun (Lcom/dropbox/core/v2/teampolicies/GroupCreation;Lcom/dropbox/core/v2/teampolicies/GroupCreation;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails { + protected final field actionDetails Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + protected final field guestTeamName Ljava/lang/String; + protected final field hostTeamName Ljava/lang/String; + protected final field isGuest Z + protected final field newValue Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public fun (ZLcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction;)V + public fun (ZLcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getActionDetails ()Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public fun getGuestTeamName ()Ljava/lang/String; + public fun getHostTeamName ()Ljava/lang/String; + public fun getIsGuest ()Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public fun hashCode ()I + public static fun newBuilder (ZLcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction;)Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails$Builder { + protected final field actionDetails Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + protected field guestTeamName Ljava/lang/String; + protected field hostTeamName Ljava/lang/String; + protected final field isGuest Z + protected final field newValue Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + protected fun (ZLcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState;Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails; + public fun withGuestTeamName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails$Builder; + public fun withHostTeamName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminChangeStatusType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails { + protected final field teamName Ljava/lang/String; + protected final field trustedTeamName Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeamName ()Ljava/lang/String; + public fun getTrustedTeamName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails$Builder { + protected field teamName Ljava/lang/String; + protected field trustedTeamName Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails; + public fun withTeamName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails$Builder; + public fun withTrustedTeamName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails { + protected final field teamName Ljava/lang/String; + protected final field trustedTeamName Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeamName ()Ljava/lang/String; + public fun getTrustedTeamName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails$Builder { + protected field teamName Ljava/lang/String; + protected field trustedTeamName Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails; + public fun withTeamName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails$Builder; + public fun withTrustedTeamName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/IdentifierType : java/lang/Enum { + public static final field EMAIL Lcom/dropbox/core/v2/teamlog/IdentifierType; + public static final field FACEBOOK_PROFILE_NAME Lcom/dropbox/core/v2/teamlog/IdentifierType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/IdentifierType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/IdentifierType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/IdentifierType; +} + +public class com/dropbox/core/v2/teamlog/IntegrationConnectedDetails { + protected final field integrationName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIntegrationName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/IntegrationConnectedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/IntegrationDisconnectedDetails { + protected final field integrationName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIntegrationName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/IntegrationDisconnectedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/IntegrationPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; +} + +public class com/dropbox/core/v2/teamlog/IntegrationPolicyChangedDetails { + protected final field integrationName Ljava/lang/String; + protected final field newValue Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/IntegrationPolicy;Lcom/dropbox/core/v2/teamlog/IntegrationPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIntegrationName ()Ljava/lang/String; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/IntegrationPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/IntegrationPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; +} + +public class com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy;Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/InviteMethod : java/lang/Enum { + public static final field AUTO_APPROVE Lcom/dropbox/core/v2/teamlog/InviteMethod; + public static final field INVITE_LINK Lcom/dropbox/core/v2/teamlog/InviteMethod; + public static final field MEMBER_INVITE Lcom/dropbox/core/v2/teamlog/InviteMethod; + public static final field MOVED_FROM_ANOTHER_TEAM Lcom/dropbox/core/v2/teamlog/InviteMethod; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/InviteMethod; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/InviteMethod; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/InviteMethod; +} + +public class com/dropbox/core/v2/teamlog/JoinTeamDetails { + protected final field hasLinkedApps Ljava/lang/Boolean; + protected final field hasLinkedDevices Ljava/lang/Boolean; + protected final field hasLinkedSharedFolders Ljava/lang/Boolean; + protected final field linkedApps Ljava/util/List; + protected final field linkedDevices Ljava/util/List; + protected final field linkedSharedFolders Ljava/util/List; + protected final field wasLinkedAppsTruncated Ljava/lang/Boolean; + protected final field wasLinkedDevicesTruncated Ljava/lang/Boolean; + protected final field wasLinkedSharedFoldersTruncated Ljava/lang/Boolean; + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getHasLinkedApps ()Ljava/lang/Boolean; + public fun getHasLinkedDevices ()Ljava/lang/Boolean; + public fun getHasLinkedSharedFolders ()Ljava/lang/Boolean; + public fun getLinkedApps ()Ljava/util/List; + public fun getLinkedDevices ()Ljava/util/List; + public fun getLinkedSharedFolders ()Ljava/util/List; + public fun getWasLinkedAppsTruncated ()Ljava/lang/Boolean; + public fun getWasLinkedDevicesTruncated ()Ljava/lang/Boolean; + public fun getWasLinkedSharedFoldersTruncated ()Ljava/lang/Boolean; + public fun hashCode ()I + public static fun newBuilder (Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/JoinTeamDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/JoinTeamDetails$Builder { + protected field hasLinkedApps Ljava/lang/Boolean; + protected field hasLinkedDevices Ljava/lang/Boolean; + protected field hasLinkedSharedFolders Ljava/lang/Boolean; + protected final field linkedApps Ljava/util/List; + protected final field linkedDevices Ljava/util/List; + protected final field linkedSharedFolders Ljava/util/List; + protected field wasLinkedAppsTruncated Ljava/lang/Boolean; + protected field wasLinkedDevicesTruncated Ljava/lang/Boolean; + protected field wasLinkedSharedFoldersTruncated Ljava/lang/Boolean; + protected fun (Ljava/util/List;Ljava/util/List;Ljava/util/List;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/JoinTeamDetails; + public fun withHasLinkedApps (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/JoinTeamDetails$Builder; + public fun withHasLinkedDevices (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/JoinTeamDetails$Builder; + public fun withHasLinkedSharedFolders (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/JoinTeamDetails$Builder; + public fun withWasLinkedAppsTruncated (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/JoinTeamDetails$Builder; + public fun withWasLinkedDevicesTruncated (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/JoinTeamDetails$Builder; + public fun withWasLinkedSharedFoldersTruncated (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/JoinTeamDetails$Builder; +} + +public final class com/dropbox/core/v2/teamlog/LabelType : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/LabelType; + public static final field PERSONAL_INFORMATION Lcom/dropbox/core/v2/teamlog/LabelType; + public static final field TEST_ONLY Lcom/dropbox/core/v2/teamlog/LabelType; + public static final field USER_DEFINED_TAG Lcom/dropbox/core/v2/teamlog/LabelType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LabelType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/LabelType; +} + +public class com/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo { + protected final field clientVersion Ljava/lang/String; + protected final field deviceType Ljava/lang/String; + protected final field displayName Ljava/lang/String; + protected final field isEmmManaged Ljava/lang/Boolean; + protected final field legacyUniqId Ljava/lang/String; + protected final field macAddress Ljava/lang/String; + protected final field osVersion Ljava/lang/String; + protected final field platform Ljava/lang/String; + protected final field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun ()V + public fun (Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/SessionLogInfo;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClientVersion ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getDeviceType ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun getIpAddress ()Ljava/lang/String; + public fun getIsEmmManaged ()Ljava/lang/Boolean; + public fun getLegacyUniqId ()Ljava/lang/String; + public fun getMacAddress ()Ljava/lang/String; + public fun getOsVersion ()Ljava/lang/String; + public fun getPlatform ()Ljava/lang/String; + public fun getSessionInfo ()Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + public fun getUpdated ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder { + protected field clientVersion Ljava/lang/String; + protected field deviceType Ljava/lang/String; + protected field displayName Ljava/lang/String; + protected field isEmmManaged Ljava/lang/Boolean; + protected field legacyUniqId Ljava/lang/String; + protected field macAddress Ljava/lang/String; + protected field osVersion Ljava/lang/String; + protected field platform Ljava/lang/String; + protected field sessionInfo Lcom/dropbox/core/v2/teamlog/SessionLogInfo; + protected fun ()V + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun build ()Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo; + public fun withClientVersion (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public synthetic fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withDeviceType (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public synthetic fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withIsEmmManaged (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withLegacyUniqId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withMacAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withOsVersion (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withPlatform (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public fun withSessionInfo (Lcom/dropbox/core/v2/teamlog/SessionLogInfo;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; + public synthetic fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldDetails { + protected final field endDate Ljava/util/Date; + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field startDate Ljava/util/Date; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEndDate ()Ljava/util/Date; + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getStartDate ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsAddMembersDetails { + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsAddMembersType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsDetails { + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameDetails { + protected final field legalHoldId Ljava/lang/String; + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLegalHoldId ()Ljava/lang/String; + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldDetails { + protected final field exportName Ljava/lang/String; + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportName ()Ljava/lang/String; + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledDetails { + protected final field exportName Ljava/lang/String; + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportName ()Ljava/lang/String; + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails { + protected final field exportName Ljava/lang/String; + protected final field fileName Ljava/lang/String; + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected final field part Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportName ()Ljava/lang/String; + public fun getFileName ()Ljava/lang/String; + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getPart ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails$Builder { + protected final field exportName Ljava/lang/String; + protected field fileName Ljava/lang/String; + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + protected field part Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails; + public fun withFileName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails$Builder; + public fun withPart (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedDetails { + protected final field exportName Ljava/lang/String; + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExportName ()Ljava/lang/String; + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldDetails { + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersDetails { + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldDetails { + protected final field legalHoldId Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLegalHoldId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/LinkedDeviceLogInfo { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo; + public static fun desktopDeviceSession (Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getDesktopDeviceSessionValue ()Lcom/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo; + public fun getLegacyDeviceSessionValue ()Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo; + public fun getMobileDeviceSessionValue ()Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo; + public fun getWebDeviceSessionValue ()Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo; + public fun hashCode ()I + public fun isDesktopDeviceSession ()Z + public fun isLegacyDeviceSession ()Z + public fun isMobileDeviceSession ()Z + public fun isOther ()Z + public fun isWebDeviceSession ()Z + public static fun legacyDeviceSession (Lcom/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo; + public static fun mobileDeviceSession (Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo; + public fun tag ()Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun webDeviceSession (Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo; +} + +public final class com/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag : java/lang/Enum { + public static final field DESKTOP_DEVICE_SESSION Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; + public static final field LEGACY_DEVICE_SESSION Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; + public static final field MOBILE_DEVICE_SESSION Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; + public static final field WEB_DEVICE_SESSION Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/LinkedDeviceLogInfo$Tag; +} + +public final class com/dropbox/core/v2/teamlog/LockStatus : java/lang/Enum { + public static final field LOCKED Lcom/dropbox/core/v2/teamlog/LockStatus; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/LockStatus; + public static final field UNLOCKED Lcom/dropbox/core/v2/teamlog/LockStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LockStatus; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/LockStatus; +} + +public class com/dropbox/core/v2/teamlog/LoginFailDetails { + protected final field errorDetails Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo; + protected final field isEmmManaged Ljava/lang/Boolean; + protected final field loginMethod Lcom/dropbox/core/v2/teamlog/LoginMethod; + public fun (Lcom/dropbox/core/v2/teamlog/LoginMethod;Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo;)V + public fun (Lcom/dropbox/core/v2/teamlog/LoginMethod;Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getErrorDetails ()Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo; + public fun getIsEmmManaged ()Ljava/lang/Boolean; + public fun getLoginMethod ()Lcom/dropbox/core/v2/teamlog/LoginMethod; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LoginFailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/LoginMethod : java/lang/Enum { + public static final field APPLE_OAUTH Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field FIRST_PARTY_TOKEN_EXCHANGE Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field GOOGLE_OAUTH Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field LENOVO_OAUTH Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field PASSWORD Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field QR_CODE Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field SAML Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field TWO_FACTOR_AUTHENTICATION Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static final field WEB_SESSION Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/LoginMethod; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/LoginMethod; +} + +public class com/dropbox/core/v2/teamlog/LoginSuccessDetails { + protected final field isEmmManaged Ljava/lang/Boolean; + protected final field loginMethod Lcom/dropbox/core/v2/teamlog/LoginMethod; + public fun (Lcom/dropbox/core/v2/teamlog/LoginMethod;)V + public fun (Lcom/dropbox/core/v2/teamlog/LoginMethod;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsEmmManaged ()Ljava/lang/Boolean; + public fun getLoginMethod ()Lcom/dropbox/core/v2/teamlog/LoginMethod; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LoginSuccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LogoutDetails { + protected final field loginId Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLoginId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/LogoutType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberAddExternalIdDetails { + protected final field newValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberAddExternalIdType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberAddNameDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/UserNameLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/UserNameLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/UserNameLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberAddNameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/AdminRole; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/AdminRole; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/AdminRole;Lcom/dropbox/core/v2/teamlog/AdminRole;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/AdminRole; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/AdminRole; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teamlog/AdminRole; + protected field previousValue Lcom/dropbox/core/v2/teamlog/AdminRole; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teamlog/AdminRole;)Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/AdminRole;)Lcom/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeAdminRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeEmailDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeEmailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeExternalIdDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeExternalIdType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + protected final field prevValue Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public fun (Lcom/dropbox/core/v2/teamlog/TeamMembershipType;Lcom/dropbox/core/v2/teamlog/TeamMembershipType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public fun getPrevValue ()Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeNameDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/UserNameLogInfo; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/UserNameLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/UserNameLogInfo;)V + public fun (Lcom/dropbox/core/v2/teamlog/UserNameLogInfo;Lcom/dropbox/core/v2/teamlog/UserNameLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/UserNameLogInfo; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/UserNameLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeNameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeResellerRoleDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ResellerRole; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ResellerRole; + public fun (Lcom/dropbox/core/v2/teamlog/ResellerRole;Lcom/dropbox/core/v2/teamlog/ResellerRole;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ResellerRole; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ResellerRole; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeResellerRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeStatusDetails { + protected final field action Lcom/dropbox/core/v2/teamlog/ActionDetails; + protected final field newTeam Ljava/lang/String; + protected final field newValue Lcom/dropbox/core/v2/teamlog/MemberStatus; + protected final field previousTeam Ljava/lang/String; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/MemberStatus; + public fun (Lcom/dropbox/core/v2/teamlog/MemberStatus;)V + public fun (Lcom/dropbox/core/v2/teamlog/MemberStatus;Lcom/dropbox/core/v2/teamlog/MemberStatus;Lcom/dropbox/core/v2/teamlog/ActionDetails;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAction ()Lcom/dropbox/core/v2/teamlog/ActionDetails; + public fun getNewTeam ()Ljava/lang/String; + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/MemberStatus; + public fun getPreviousTeam ()Ljava/lang/String; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/MemberStatus; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/MemberStatus;)Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeStatusDetails$Builder { + protected field action Lcom/dropbox/core/v2/teamlog/ActionDetails; + protected field newTeam Ljava/lang/String; + protected final field newValue Lcom/dropbox/core/v2/teamlog/MemberStatus; + protected field previousTeam Ljava/lang/String; + protected field previousValue Lcom/dropbox/core/v2/teamlog/MemberStatus; + protected fun (Lcom/dropbox/core/v2/teamlog/MemberStatus;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails; + public fun withAction (Lcom/dropbox/core/v2/teamlog/ActionDetails;)Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails$Builder; + public fun withNewTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails$Builder; + public fun withPreviousTeam (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/MemberStatus;)Lcom/dropbox/core/v2/teamlog/MemberChangeStatusDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/MemberChangeStatusType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberDeleteManualContactsDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberDeleteManualContactsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/MemberRemoveActionType : java/lang/Enum { + public static final field DELETE Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; + public static final field LEAVE Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; + public static final field OFFBOARD Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; + public static final field OFFBOARD_AND_RETAIN_TEAM_FOLDERS Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/MemberRemoveActionType; +} + +public class com/dropbox/core/v2/teamlog/MemberRemoveExternalIdDetails { + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberRemoveExternalIdType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy;Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/MemberRequestsPolicy : java/lang/Enum { + public static final field AUTO_ACCEPT Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public static final field REQUIRE_APPROVAL Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/MemberRequestsPolicy; +} + +public final class com/dropbox/core/v2/teamlog/MemberSendInvitePolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public static final field EVERYONE Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public static final field SPECIFIC_MEMBERS Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; +} + +public class com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public fun (Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy;Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/MemberSendInvitePolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSetProfilePhotoDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSetProfilePhotoType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaDetails { + protected final field newValue J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public fun (Lcom/dropbox/core/v2/teamlog/SpaceCapsType;Lcom/dropbox/core/v2/teamlog/SpaceCapsType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaDetails { + protected final field newValue J + protected final field previousValue J + public fun (JJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()J + public fun getPreviousValue ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails { + protected final field newValue Ljava/lang/Long; + protected final field previousValue Ljava/lang/Long; + public fun ()V + public fun (Ljava/lang/Long;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/Long; + public fun getPreviousValue ()Ljava/lang/Long; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails$Builder { + protected field newValue Ljava/lang/Long; + protected field previousValue Ljava/lang/Long; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails; + public fun withNewValue (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails$Builder; + public fun withPreviousValue (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public fun (Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus;Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/MemberStatus : java/lang/Enum { + public static final field ACTIVE Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static final field INVITED Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static final field MOVED_TO_ANOTHER_TEAM Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static final field NOT_JOINED Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static final field REMOVED Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static final field SUSPENDED Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MemberStatus; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/MemberStatus; +} + +public class com/dropbox/core/v2/teamlog/MemberSuggestDetails { + protected final field suggestedMembers Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSuggestedMembers ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSuggestType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy;Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/MemberSuggestionsPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/MemberSuggestionsPolicy; +} + +public class com/dropbox/core/v2/teamlog/MemberTransferAccountContentsDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MemberTransferAccountContentsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy;Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy; +} + +public class com/dropbox/core/v2/teamlog/MissingDetails { + protected final field sourceEventFields Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSourceEventFields ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo { + protected final field clientType Lcom/dropbox/core/v2/team/MobileClientPlatform; + protected final field clientVersion Ljava/lang/String; + protected final field deviceName Ljava/lang/String; + protected final field lastCarrier Ljava/lang/String; + protected final field osVersion Ljava/lang/String; + protected final field sessionInfo Lcom/dropbox/core/v2/teamlog/MobileSessionLogInfo; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/MobileSessionLogInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getClientType ()Lcom/dropbox/core/v2/team/MobileClientPlatform; + public fun getClientVersion ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getDeviceName ()Ljava/lang/String; + public fun getIpAddress ()Ljava/lang/String; + public fun getLastCarrier ()Ljava/lang/String; + public fun getOsVersion ()Ljava/lang/String; + public fun getSessionInfo ()Lcom/dropbox/core/v2/teamlog/MobileSessionLogInfo; + public fun getUpdated ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder { + protected final field clientType Lcom/dropbox/core/v2/team/MobileClientPlatform; + protected field clientVersion Ljava/lang/String; + protected final field deviceName Ljava/lang/String; + protected field lastCarrier Ljava/lang/String; + protected field osVersion Ljava/lang/String; + protected field sessionInfo Lcom/dropbox/core/v2/teamlog/MobileSessionLogInfo; + protected fun (Ljava/lang/String;Lcom/dropbox/core/v2/team/MobileClientPlatform;)V + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun build ()Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo; + public fun withClientVersion (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; + public synthetic fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; + public synthetic fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; + public fun withLastCarrier (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; + public fun withOsVersion (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; + public fun withSessionInfo (Lcom/dropbox/core/v2/teamlog/MobileSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; + public synthetic fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/MobileSessionLogInfo : com/dropbox/core/v2/teamlog/SessionLogInfo { + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSessionId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo { + protected final field isSharedNamespace Ljava/lang/Boolean; + protected final field nsId Ljava/lang/String; + protected final field relativePath Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getIsSharedNamespace ()Ljava/lang/Boolean; + public fun getNsId ()Ljava/lang/String; + public fun getRelativePath ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo$Builder { + protected field isSharedNamespace Ljava/lang/Boolean; + protected field nsId Ljava/lang/String; + protected field relativePath Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo; + public fun withIsSharedNamespace (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo$Builder; + public fun withNsId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo$Builder; + public fun withRelativePath (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/NetworkControlChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy;Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NetworkControlChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/NetworkControlPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/NetworkControlPolicy; +} + +public class com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportDetails { + protected final field endDate Ljava/util/Date; + protected final field startDate Ljava/util/Date; + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEndDate ()Ljava/util/Date; + public fun getStartDate ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportDetails { + protected final field endDate Ljava/util/Date; + protected final field startDate Ljava/util/Date; + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEndDate ()Ljava/util/Date; + public fun getStartDate ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportDetails { + protected final field endDate Ljava/util/Date; + protected final field startDate Ljava/util/Date; + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEndDate ()Ljava/util/Date; + public fun getStartDate ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NonTeamMemberLogInfo : com/dropbox/core/v2/teamlog/UserLogInfo { + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun getEmail ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/NonTeamMemberLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NonTeamMemberLogInfo$Builder : com/dropbox/core/v2/teamlog/UserLogInfo$Builder { + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/NonTeamMemberLogInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/NonTeamMemberLogInfo$Builder; + public synthetic fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/NonTeamMemberLogInfo$Builder; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/NonTeamMemberLogInfo$Builder; + public synthetic fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/NonTrustedTeamDetails { + protected final field team Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeam ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteAclInviteOnlyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteAclInviteOnlyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteAclLinkDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteAclLinkType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteAclTeamLinkDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteAclTeamLinkType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteShareReceiveDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteShareReceiveType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteSharedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/NoteSharedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ObjectLabelAddedDetails { + protected final field labelType Lcom/dropbox/core/v2/teamlog/LabelType; + public fun (Lcom/dropbox/core/v2/teamlog/LabelType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLabelType ()Lcom/dropbox/core/v2/teamlog/LabelType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ObjectLabelAddedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ObjectLabelRemovedDetails { + protected final field labelType Lcom/dropbox/core/v2/teamlog/LabelType; + public fun (Lcom/dropbox/core/v2/teamlog/LabelType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLabelType ()Lcom/dropbox/core/v2/teamlog/LabelType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ObjectLabelRemovedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueDetails { + protected final field labelType Lcom/dropbox/core/v2/teamlog/LabelType; + public fun (Lcom/dropbox/core/v2/teamlog/LabelType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getLabelType ()Lcom/dropbox/core/v2/teamlog/LabelType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OpenNoteSharedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OpenNoteSharedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OrganizationDetails { + protected final field organization Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOrganization ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OrganizationName { + protected final field organization Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOrganization ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OriginLogInfo { + protected final field accessMethod Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + protected final field geoLocation Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo;)V + public fun (Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo;Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessMethod ()Lcom/dropbox/core/v2/teamlog/AccessMethodLogInfo; + public fun getGeoLocation ()Lcom/dropbox/core/v2/teamlog/GeoLocationLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportDetails { + protected final field endDate Ljava/util/Date; + protected final field startDate Ljava/util/Date; + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEndDate ()Ljava/util/Date; + public fun getStartDate ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/PaperAccessType : java/lang/Enum { + public static final field COMMENTER Lcom/dropbox/core/v2/teamlog/PaperAccessType; + public static final field EDITOR Lcom/dropbox/core/v2/teamlog/PaperAccessType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PaperAccessType; + public static final field VIEWER Lcom/dropbox/core/v2/teamlog/PaperAccessType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperAccessType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PaperAccessType; +} + +public class com/dropbox/core/v2/teamlog/PaperAdminExportStartDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperAdminExportStartType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public fun (Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy;)V + public fun (Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy;Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy;Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public fun (Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy;)V + public fun (Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy;Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentAddMemberDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentAddMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentAddToFolderDetails { + protected final field eventUuid Ljava/lang/String; + protected final field parentAssetIndex J + protected final field targetAssetIndex J + public fun (Ljava/lang/String;JJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getParentAssetIndex ()J + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentAddToFolderType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentArchiveDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentArchiveType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentCreateDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails { + protected final field eventUuid Ljava/lang/String; + protected final field parentAssetIndex Ljava/lang/Long; + protected final field targetAssetIndex Ljava/lang/Long; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getParentAssetIndex ()Ljava/lang/Long; + public fun getTargetAssetIndex ()Ljava/lang/Long; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails$Builder { + protected final field eventUuid Ljava/lang/String; + protected field parentAssetIndex Ljava/lang/Long; + protected field targetAssetIndex Ljava/lang/Long; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails; + public fun withParentAssetIndex (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails$Builder; + public fun withTargetAssetIndex (Ljava/lang/Long;)Lcom/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRemoveMemberDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRemoveMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRenameDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRenameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRestoreDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperContentRestoreType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy : java/lang/Enum { + public static final field EVERYONE_IN_TEAM Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + public static final field INVITE_ONLY Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; +} + +public class com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy;Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/PaperDesktopPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; +} + +public class com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy;Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/PaperDesktopPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocAddCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocAddCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleDetails { + protected final field accessType Lcom/dropbox/core/v2/teamlog/PaperAccessType; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PaperAccessType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccessType ()Lcom/dropbox/core/v2/teamlog/PaperAccessType; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails { + protected final field eventUuid Ljava/lang/String; + protected final field publicSharingPolicy Ljava/lang/String; + protected final field teamSharingPolicy Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getPublicSharingPolicy ()Ljava/lang/String; + public fun getTeamSharingPolicy ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails$Builder { + protected final field eventUuid Ljava/lang/String; + protected field publicSharingPolicy Ljava/lang/String; + protected field teamSharingPolicy Ljava/lang/String; + protected fun (Ljava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails; + public fun withPublicSharingPolicy (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails$Builder; + public fun withTeamSharingPolicy (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionDetails { + protected final field eventUuid Ljava/lang/String; + protected final field newSubscriptionLevel Ljava/lang/String; + protected final field previousSubscriptionLevel Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getNewSubscriptionLevel ()Ljava/lang/String; + public fun getPreviousSubscriptionLevel ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocDeleteCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocDeleteCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocDeletedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocDeletedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocDownloadDetails { + protected final field eventUuid Ljava/lang/String; + protected final field exportFileFormat Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getExportFileFormat ()Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocDownloadType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocEditCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocEditCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocEditDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocEditType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocFollowedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocFollowedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocMentionDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocMentionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedDetails { + protected final field eventUuid Ljava/lang/String; + protected final field newOwnerUserId Ljava/lang/String; + protected final field oldOwnerUserId Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getNewOwnerUserId ()Ljava/lang/String; + public fun getOldOwnerUserId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocRequestAccessDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocRequestAccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocResolveCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocResolveCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocRevertDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocRevertType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocSlackShareDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocSlackShareType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocTeamInviteDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocTeamInviteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocTrashedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocTrashedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocUntrashedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocUntrashedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocViewDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocViewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperDocumentLogInfo { + protected final field docId Ljava/lang/String; + protected final field docTitle Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDocId ()Ljava/lang/String; + public fun getDocTitle ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/PaperDownloadFormat : java/lang/Enum { + public static final field DOCX Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public static final field HTML Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public static final field MARKDOWN Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public static final field PDF Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PaperDownloadFormat; +} + +public class com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperExternalViewAllowDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperExternalViewAllowType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperExternalViewForbidDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperExternalViewForbidType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionDetails { + protected final field eventUuid Ljava/lang/String; + protected final field newSubscriptionLevel Ljava/lang/String; + protected final field previousSubscriptionLevel Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getNewSubscriptionLevel ()Ljava/lang/String; + public fun getPreviousSubscriptionLevel ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderDeletedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderDeletedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderFollowedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderFollowedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderLogInfo { + protected final field folderId Ljava/lang/String; + protected final field folderName Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFolderId ()Ljava/lang/String; + public fun getFolderName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderTeamInviteDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperFolderTeamInviteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/PaperMemberPolicy : java/lang/Enum { + public static final field ANYONE_WITH_LINK Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public static final field ONLY_TEAM Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public static final field TEAM_AND_EXPLICITLY_SHARED Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PaperMemberPolicy; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionDetails { + protected final field eventUuid Ljava/lang/String; + protected final field newPermissionLevel Ljava/lang/String; + protected final field previousPermissionLevel Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun getNewPermissionLevel ()Ljava/lang/String; + public fun getPreviousPermissionLevel ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkViewDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PaperPublishedLinkViewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ParticipantLogInfo { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo; + public fun equals (Ljava/lang/Object;)Z + public fun getGroupValue ()Lcom/dropbox/core/v2/teamlog/GroupLogInfo; + public fun getUserValue ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public static fun group (Lcom/dropbox/core/v2/teamlog/GroupLogInfo;)Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo; + public fun hashCode ()I + public fun isGroup ()Z + public fun isOther ()Z + public fun isUser ()Z + public fun tag ()Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; + public static fun user (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo; +} + +public final class com/dropbox/core/v2/teamlog/ParticipantLogInfo$Tag : java/lang/Enum { + public static final field GROUP Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo$Tag; + public static final field USER Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ParticipantLogInfo$Tag; +} + +public final class com/dropbox/core/v2/teamlog/PassPolicy : java/lang/Enum { + public static final field ALLOW Lcom/dropbox/core/v2/teamlog/PassPolicy; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/PassPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/PassPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PassPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PassPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PassPolicy; +} + +public class com/dropbox/core/v2/teamlog/PasswordChangeDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PasswordChangeType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PasswordResetAllDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PasswordResetAllType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PasswordResetDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PasswordResetType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public fun (Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy;Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PathLogInfo { + protected final field contextual Ljava/lang/String; + protected final field namespaceRelative Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo;)V + public fun (Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getContextual ()Ljava/lang/String; + public fun getNamespaceRelative ()Lcom/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedDetails { + protected final field secondaryEmail Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryEmail ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy;Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/PlacementRestriction : java/lang/Enum { + public static final field AUSTRALIA_ONLY Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static final field EUROPE_ONLY Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static final field JAPAN_ONLY Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static final field NONE Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static final field UK_ONLY Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static final field US_S3_ONLY Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PlacementRestriction; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PlacementRestriction; +} + +public final class com/dropbox/core/v2/teamlog/PolicyType : java/lang/Enum { + public static final field DISPOSITION Lcom/dropbox/core/v2/teamlog/PolicyType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/PolicyType; + public static final field RETENTION Lcom/dropbox/core/v2/teamlog/PolicyType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/PolicyType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/PolicyType; +} + +public class com/dropbox/core/v2/teamlog/PrimaryTeamRequestAcceptedDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PrimaryTeamRequestCanceledDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PrimaryTeamRequestExpiredDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/PrimaryTeamRequestReminderDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedDetails { + protected final field restoredFilesCount J + protected final field restoredFilesFailedCount J + protected final field status Ljava/lang/String; + public fun (Ljava/lang/String;JJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getRestoredFilesCount ()J + public fun getRestoredFilesFailedCount ()J + public fun getStatus ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedDetails { + protected final field extension Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExtension ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RecipientsConfiguration { + protected final field emails Ljava/util/List; + protected final field groups Ljava/util/List; + protected final field recipientSettingType Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEmails ()Ljava/util/List; + public fun getGroups ()Ljava/util/List; + public fun getRecipientSettingType ()Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RecipientsConfiguration$Builder { + protected field emails Ljava/util/List; + protected field groups Ljava/util/List; + protected field recipientSettingType Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration; + public fun withEmails (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration$Builder; + public fun withGroups (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration$Builder; + public fun withRecipientSettingType (Lcom/dropbox/core/v2/teamlog/AlertRecipientsSettingType;)Lcom/dropbox/core/v2/teamlog/RecipientsConfiguration$Builder; +} + +public class com/dropbox/core/v2/teamlog/RelocateAssetReferencesLogInfo { + protected final field destAssetIndex J + protected final field srcAssetIndex J + public fun (JJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getDestAssetIndex ()J + public fun getSrcAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayFileDeleteDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayFileDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayProjectTeamAddDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayProjectTeamAddType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ResellerLogInfo { + protected final field resellerEmail Ljava/lang/String; + protected final field resellerName Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getResellerEmail ()Ljava/lang/String; + public fun getResellerName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ResellerRole : java/lang/Enum { + public static final field NOT_RESELLER Lcom/dropbox/core/v2/teamlog/ResellerRole; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ResellerRole; + public static final field RESELLER_ADMIN Lcom/dropbox/core/v2/teamlog/ResellerRole; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ResellerRole; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ResellerRole; +} + +public class com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy;Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ResellerSupportPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ResellerSupportPolicy; +} + +public class com/dropbox/core/v2/teamlog/ResellerSupportSessionEndDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ResellerSupportSessionEndType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ResellerSupportSessionStartDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ResellerSupportSessionStartType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RewindFolderDetails { + protected final field rewindFolderTargetTsMs Ljava/util/Date; + public fun (Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRewindFolderTargetTsMs ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RewindFolderType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/RewindPolicy : java/lang/Enum { + public static final field ADMINS_ONLY Lcom/dropbox/core/v2/teamlog/RewindPolicy; + public static final field EVERYONE Lcom/dropbox/core/v2/teamlog/RewindPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/RewindPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/RewindPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/RewindPolicy; +} + +public class com/dropbox/core/v2/teamlog/RewindPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/RewindPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/RewindPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/RewindPolicy;Lcom/dropbox/core/v2/teamlog/RewindPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/RewindPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/RewindPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/RewindPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryEmailDeletedDetails { + protected final field secondaryEmail Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryEmail ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryEmailDeletedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedDetails { + protected final field secondaryEmail Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryEmail ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SecondaryMailsPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; +} + +public class com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy;Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SecondaryMailsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryTeamRequestAcceptedDetails { + protected final field primaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPrimaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryTeamRequestCanceledDetails { + protected final field sentBy Ljava/lang/String; + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentBy ()Ljava/lang/String; + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryTeamRequestExpiredDetails { + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SecondaryTeamRequestReminderDetails { + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SendForSignaturePolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; +} + +public class com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy;Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SendForSignaturePolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SessionLogInfo { + protected final field sessionId Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSessionId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfAddGroupDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field sharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + protected final field teamName Ljava/lang/String; + public fun (JLjava/lang/String;Ljava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getSharingPermission ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun getTeamName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfAddGroupType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field sharedFolderType Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getSharedFolderType ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails { + protected final field newSharingPermission Ljava/lang/String; + protected final field originalFolderName Ljava/lang/String; + protected final field previousSharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewSharingPermission ()Ljava/lang/String; + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getPreviousSharingPermission ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public static fun newBuilder (JLjava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails$Builder { + protected field newSharingPermission Ljava/lang/String; + protected final field originalFolderName Ljava/lang/String; + protected field previousSharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + protected fun (JLjava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails; + public fun withNewSharingPermission (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails$Builder; + public fun withPreviousSharingPermission (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SfExternalInviteWarnType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails { + protected final field newSharingPermission Ljava/lang/String; + protected final field originalFolderName Ljava/lang/String; + protected final field previousSharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewSharingPermission ()Ljava/lang/String; + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getPreviousSharingPermission ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public static fun newBuilder (JLjava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails$Builder { + protected field newSharingPermission Ljava/lang/String; + protected final field originalFolderName Ljava/lang/String; + protected field previousSharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + protected fun (JLjava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails; + public fun withNewSharingPermission (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails$Builder; + public fun withPreviousSharingPermission (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfFbInviteDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field sharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getSharingPermission ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfFbInviteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfFbUninviteDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfFbUninviteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfInviteGroupDetails { + protected final field targetAssetIndex J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfInviteGroupType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamGrantAccessDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamGrantAccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails { + protected final field newSharingPermission Ljava/lang/String; + protected final field originalFolderName Ljava/lang/String; + protected final field previousSharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewSharingPermission ()Ljava/lang/String; + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getPreviousSharingPermission ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public static fun newBuilder (JLjava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails$Builder { + protected field newSharingPermission Ljava/lang/String; + protected final field originalFolderName Ljava/lang/String; + protected field previousSharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + protected fun (JLjava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails; + public fun withNewSharingPermission (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails$Builder; + public fun withPreviousSharingPermission (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamInviteDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field sharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getSharingPermission ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamInviteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamJoinDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field sharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + protected final field tokenKey Ljava/lang/String; + public fun (JLjava/lang/String;)V + public fun (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getSharingPermission ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun getTokenKey ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (JLjava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails$Builder { + protected final field originalFolderName Ljava/lang/String; + protected field sharingPermission Ljava/lang/String; + protected final field targetAssetIndex J + protected field tokenKey Ljava/lang/String; + protected fun (JLjava/lang/String;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails; + public fun withSharingPermission (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails$Builder; + public fun withTokenKey (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamJoinType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamUninviteDetails { + protected final field originalFolderName Ljava/lang/String; + protected final field targetAssetIndex J + public fun (JLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getOriginalFolderName ()Ljava/lang/String; + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SfTeamUninviteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddInviteesDetails { + protected final field invitees Ljava/util/List; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getInvitees ()Ljava/util/List; + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddInviteesType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryDetails { + protected final field newValue Ljava/util/Date; + public fun ()V + public fun (Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddMemberDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentAddMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + public fun (Lcom/dropbox/core/v2/teamlog/DownloadPolicyType;)V + public fun (Lcom/dropbox/core/v2/teamlog/DownloadPolicyType;Lcom/dropbox/core/v2/teamlog/DownloadPolicyType;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/DownloadPolicyType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleDetails { + protected final field invitee Ljava/lang/String; + protected final field newAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field previousAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getInvitee ()Ljava/lang/String; + public fun getNewAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getPreviousAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceDetails { + protected final field newValue Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field previousValue Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun (Lcom/dropbox/core/v2/sharing/LinkAudience;)V + public fun (Lcom/dropbox/core/v2/sharing/LinkAudience;Lcom/dropbox/core/v2/sharing/LinkAudience;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getPreviousValue ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails { + protected final field newValue Ljava/util/Date; + protected final field previousValue Ljava/util/Date; + public fun ()V + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/util/Date; + public fun getPreviousValue ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails$Builder { + protected field newValue Ljava/util/Date; + protected field previousValue Ljava/util/Date; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails; + public fun withNewValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails$Builder; + public fun withPreviousValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleDetails { + protected final field newAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field previousAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getPreviousAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + protected final field previousValue Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public fun (Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;)V + public fun (Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/sharing/ViewerInfoPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentClaimInvitationDetails { + protected final field sharedContentLink Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentClaimInvitationType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentCopyDetails { + protected final field destinationPath Ljava/lang/String; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + protected final field sharedContentOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDestinationPath ()Ljava/lang/String; + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun getSharedContentOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentCopyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentDownloadDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + protected final field sharedContentOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun getSharedContentOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentDownloadType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesDetails { + protected final field invitees Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getInvitees ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryDetails { + protected final field previousValue Ljava/util/Date; + public fun ()V + public fun (Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPreviousValue ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveMemberDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun ()V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRemoveMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRequestAccessDetails { + protected final field sharedContentLink Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRequestAccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesDetails { + protected final field invitees Ljava/util/List; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getInvitees ()Ljava/util/List; + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRestoreMemberDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentRestoreMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentUnshareDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentUnshareType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentViewDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + protected final field sharedContentOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun getSharedContentOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedContentViewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + protected final field previousValue Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public fun (Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;)V + public fun (Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;Lcom/dropbox/core/v2/sharing/SharedLinkPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/sharing/SharedLinkPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy;Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + protected final field previousValue Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public fun (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;)V + public fun (Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;Lcom/dropbox/core/v2/sharing/AclUpdatePolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/sharing/AclUpdatePolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/sharing/MemberPolicy; + protected final field previousValue Lcom/dropbox/core/v2/sharing/MemberPolicy; + public fun (Lcom/dropbox/core/v2/sharing/MemberPolicy;)V + public fun (Lcom/dropbox/core/v2/sharing/MemberPolicy;Lcom/dropbox/core/v2/sharing/MemberPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/sharing/MemberPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/sharing/MemberPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderCreateDetails { + protected final field targetNsId Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTargetNsId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy : java/lang/Enum { + public static final field DONT_INHERIT_MEMBERS Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + public static final field INHERIT_MEMBERS Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderMountDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderMountType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderNestDetails { + protected final field newNsPath Ljava/lang/String; + protected final field newParentNsId Ljava/lang/String; + protected final field previousNsPath Ljava/lang/String; + protected final field previousParentNsId Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewNsPath ()Ljava/lang/String; + public fun getNewParentNsId ()Ljava/lang/String; + public fun getPreviousNsPath ()Ljava/lang/String; + public fun getPreviousParentNsId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderNestDetails$Builder { + protected field newNsPath Ljava/lang/String; + protected field newParentNsId Ljava/lang/String; + protected field previousNsPath Ljava/lang/String; + protected field previousParentNsId Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails; + public fun withNewNsPath (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails$Builder; + public fun withNewParentNsId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails$Builder; + public fun withPreviousNsPath (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails$Builder; + public fun withPreviousParentNsId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderNestType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails { + protected final field newOwnerEmail Ljava/lang/String; + protected final field previousOwnerEmail Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewOwnerEmail ()Ljava/lang/String; + public fun getPreviousOwnerEmail ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderUnmountDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedFolderUnmountType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SharedLinkAccessLevel : java/lang/Enum { + public static final field NONE Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; + public static final field READER Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; + public static final field WRITER Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkAddExpiryDetails { + protected final field newValue Ljava/util/Date; + public fun (Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkAddExpiryType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails { + protected final field newValue Ljava/util/Date; + protected final field previousValue Ljava/util/Date; + public fun ()V + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/util/Date; + public fun getPreviousValue ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails$Builder { + protected field newValue Ljava/util/Date; + protected field previousValue Ljava/util/Date; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails; + public fun withNewValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails$Builder; + public fun withPreviousValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public fun (Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility;)V + public fun (Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility;Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkCopyDetails { + protected final field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedLinkOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkCopyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkCreateDetails { + protected final field sharedLinkAccessLevel Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedLinkAccessLevel ()Lcom/dropbox/core/v2/teamlog/SharedLinkAccessLevel; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkDisableDetails { + protected final field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedLinkOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkDisableType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkDownloadDetails { + protected final field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedLinkOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkDownloadType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryDetails { + protected final field previousValue Ljava/util/Date; + public fun ()V + public fun (Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPreviousValue ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails { + protected final field newValue Ljava/util/Date; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/util/Date; + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails$Builder { + protected field newValue Ljava/util/Date; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field sharedContentLink Ljava/lang/String; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails; + public fun withNewValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails$Builder; + public fun withSharedContentLink (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails { + protected final field newValue Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field previousValue Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/LinkAudience;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/LinkAudience;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/LinkAudience;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getPreviousValue ()Lcom/dropbox/core/v2/sharing/LinkAudience; + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/LinkAudience;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails$Builder { + protected final field newValue Lcom/dropbox/core/v2/sharing/LinkAudience; + protected field previousValue Lcom/dropbox/core/v2/sharing/LinkAudience; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field sharedContentLink Ljava/lang/String; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Lcom/dropbox/core/v2/sharing/LinkAudience;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails; + public fun withPreviousValue (Lcom/dropbox/core/v2/sharing/LinkAudience;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails$Builder; + public fun withSharedContentLink (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails { + protected final field newValue Ljava/util/Date; + protected final field previousValue Ljava/util/Date; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/util/Date; + public fun getPreviousValue ()Ljava/util/Date; + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails$Builder { + protected field newValue Ljava/util/Date; + protected field previousValue Ljava/util/Date; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field sharedContentLink Ljava/lang/String; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails; + public fun withNewValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails$Builder; + public fun withPreviousValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails$Builder; + public fun withSharedContentLink (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails { + protected final field previousValue Ljava/util/Date; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPreviousValue ()Ljava/util/Date; + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/sharing/AccessLevel;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails$Builder { + protected field previousValue Ljava/util/Date; + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected field sharedContentLink Ljava/lang/String; + protected fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails; + public fun withPreviousValue (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails$Builder; + public fun withSharedContentLink (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordDetails { + protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel; + protected final field sharedContentLink Ljava/lang/String; + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;)V + public fun (Lcom/dropbox/core/v2/sharing/AccessLevel;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel; + public fun getSharedContentLink ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkShareDetails { + protected final field externalUsers Ljava/util/List; + protected final field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/UserLogInfo;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getExternalUsers ()Ljava/util/List; + public fun getSharedLinkOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/SharedLinkShareDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkShareDetails$Builder { + protected field externalUsers Ljava/util/List; + protected field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/SharedLinkShareDetails; + public fun withExternalUsers (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/SharedLinkShareDetails$Builder; + public fun withSharedLinkOwner (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)Lcom/dropbox/core/v2/teamlog/SharedLinkShareDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkShareType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkViewDetails { + protected final field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedLinkOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedLinkViewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SharedLinkVisibility : java/lang/Enum { + public static final field NO_ONE Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public static final field PASSWORD Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public static final field PUBLIC Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public static final field TEAM_ONLY Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SharedLinkVisibility; +} + +public class com/dropbox/core/v2/teamlog/SharedNoteOpenedDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharedNoteOpenedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy;Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy;Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy;Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy;Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy;Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy;Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SharingFolderJoinPolicy : java/lang/Enum { + public static final field FROM_ANYONE Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + public static final field FROM_TEAM_ONLY Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SharingFolderJoinPolicy; +} + +public final class com/dropbox/core/v2/teamlog/SharingLinkPolicy : java/lang/Enum { + public static final field DEFAULT_NO_ONE Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public static final field DEFAULT_PRIVATE Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public static final field DEFAULT_PUBLIC Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public static final field ONLY_PRIVATE Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SharingLinkPolicy; +} + +public final class com/dropbox/core/v2/teamlog/SharingMemberPolicy : java/lang/Enum { + public static final field ALLOW Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public static final field FORBID Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public static final field FORBID_WITH_EXCLUSIONS Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SharingMemberPolicy; +} + +public class com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsDetails { + protected final field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedLinkOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsDetails { + protected final field sharedLinkOwner Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/UserLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSharedLinkOwner ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShmodelGroupShareDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShmodelGroupShareType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseAddMemberDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseAddMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseArchivedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseArchivedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy;Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy;Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy;Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseCreatedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseCreatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseDocumentLogInfo { + protected final field showcaseId Ljava/lang/String; + protected final field showcaseTitle Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getShowcaseId ()Ljava/lang/String; + public fun getShowcaseTitle ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseEditCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseEditCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseEditedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseEditedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy; +} + +public final class com/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileAddedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileAddedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileDownloadDetails { + protected final field downloadType Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDownloadType ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileDownloadType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileRemovedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileRemovedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileViewDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseFileViewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcasePostCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcasePostCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRenamedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRenamedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRequestAccessDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRequestAccessType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseResolveCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseResolveCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRestoredDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseRestoredType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseTrashedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseTrashedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentDetails { + protected final field commentText Ljava/lang/String; + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCommentText ()Ljava/lang/String; + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseUntrashedDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseUntrashedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseViewDetails { + protected final field eventUuid Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEventUuid ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ShowcaseViewType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SignInAsSessionEndDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SignInAsSessionEndType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SignInAsSessionStartDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SignInAsSessionStartType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public fun ()V + public fun (Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy;Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + protected field previousValue Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy;)Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy;)Lcom/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncNotOptOutDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy;Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncNotOptOutType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncOptOutDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy;Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public static final field OPTED_OUT Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy; +} + +public class com/dropbox/core/v2/teamlog/SmartSyncOptOutType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public fun (Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState;Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/SpaceCapsType : java/lang/Enum { + public static final field HARD Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public static final field OFF Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public static final field SOFT Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SpaceCapsType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SpaceCapsType; +} + +public final class com/dropbox/core/v2/teamlog/SpaceLimitsStatus : java/lang/Enum { + public static final field NEAR_QUOTA Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public static final field OVER_QUOTA Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public static final field WITHIN_QUOTA Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/SpaceLimitsStatus; +} + +public class com/dropbox/core/v2/teamlog/SsoAddCertDetails { + protected final field certificateDetails Lcom/dropbox/core/v2/teamlog/Certificate; + public fun (Lcom/dropbox/core/v2/teamlog/Certificate;)V + public fun equals (Ljava/lang/Object;)Z + public fun getCertificateDetails ()Lcom/dropbox/core/v2/teamlog/Certificate; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoAddCertType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoAddLoginUrlDetails { + protected final field newValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoAddLoginUrlType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoAddLogoutUrlDetails { + protected final field newValue Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoAddLogoutUrlType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeCertDetails { + protected final field newCertificateDetails Lcom/dropbox/core/v2/teamlog/Certificate; + protected final field previousCertificateDetails Lcom/dropbox/core/v2/teamlog/Certificate; + public fun (Lcom/dropbox/core/v2/teamlog/Certificate;)V + public fun (Lcom/dropbox/core/v2/teamlog/Certificate;Lcom/dropbox/core/v2/teamlog/Certificate;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewCertificateDetails ()Lcom/dropbox/core/v2/teamlog/Certificate; + public fun getPreviousCertificateDetails ()Lcom/dropbox/core/v2/teamlog/Certificate; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeCertType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeLoginUrlDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeLoginUrlType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails$Builder { + protected field newValue Ljava/lang/String; + protected field previousValue Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails; + public fun withNewValue (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails$Builder; + public fun withPreviousValue (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public fun (Lcom/dropbox/core/v2/teampolicies/SsoPolicy;)V + public fun (Lcom/dropbox/core/v2/teampolicies/SsoPolicy;Lcom/dropbox/core/v2/teampolicies/SsoPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeDetails { + protected final field newValue J + protected final field previousValue J + public fun (JJ)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()J + public fun getPreviousValue ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoErrorDetails { + protected final field errorDetails Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo; + public fun (Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getErrorDetails ()Lcom/dropbox/core/v2/teamlog/FailureDetailsLogInfo; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoErrorType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoRemoveCertDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoRemoveCertType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlDetails { + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlDetails { + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionDetails { + protected final field federationExtraDetails Lcom/dropbox/core/v2/teamlog/FedExtraDetails; + public fun (Lcom/dropbox/core/v2/teamlog/FedExtraDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFederationExtraDetails ()Lcom/dropbox/core/v2/teamlog/FedExtraDetails; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamActivityCreateReportDetails { + protected final field endDate Ljava/util/Date; + protected final field startDate Ljava/util/Date; + public fun (Ljava/util/Date;Ljava/util/Date;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEndDate ()Ljava/util/Date; + public fun getStartDate ()Ljava/util/Date; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailDetails { + protected final field failureReason Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun (Lcom/dropbox/core/v2/team/TeamReportFailureReason;)V + public fun equals (Ljava/lang/Object;)Z + public fun getFailureReason ()Lcom/dropbox/core/v2/team/TeamReportFailureReason; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamActivityCreateReportType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamBrandingPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; +} + +public class com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy;Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TeamBrandingPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamDetails { + protected final field team Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeam ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEvent { + protected final field actor Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + protected final field assets Ljava/util/List; + protected final field context Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + protected final field details Lcom/dropbox/core/v2/teamlog/EventDetails; + protected final field eventCategory Lcom/dropbox/core/v2/teamlog/EventCategory; + protected final field eventType Lcom/dropbox/core/v2/teamlog/EventType; + protected final field involveNonTeamMember Ljava/lang/Boolean; + protected final field origin Lcom/dropbox/core/v2/teamlog/OriginLogInfo; + protected final field participants Ljava/util/List; + protected final field timestamp Ljava/util/Date; + public fun (Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/EventCategory;Lcom/dropbox/core/v2/teamlog/EventType;Lcom/dropbox/core/v2/teamlog/EventDetails;)V + public fun (Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/EventCategory;Lcom/dropbox/core/v2/teamlog/EventType;Lcom/dropbox/core/v2/teamlog/EventDetails;Lcom/dropbox/core/v2/teamlog/ActorLogInfo;Lcom/dropbox/core/v2/teamlog/OriginLogInfo;Ljava/lang/Boolean;Lcom/dropbox/core/v2/teamlog/ContextLogInfo;Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getActor ()Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + public fun getAssets ()Ljava/util/List; + public fun getContext ()Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + public fun getDetails ()Lcom/dropbox/core/v2/teamlog/EventDetails; + public fun getEventCategory ()Lcom/dropbox/core/v2/teamlog/EventCategory; + public fun getEventType ()Lcom/dropbox/core/v2/teamlog/EventType; + public fun getInvolveNonTeamMember ()Ljava/lang/Boolean; + public fun getOrigin ()Lcom/dropbox/core/v2/teamlog/OriginLogInfo; + public fun getParticipants ()Ljava/util/List; + public fun getTimestamp ()Ljava/util/Date; + public fun hashCode ()I + public static fun newBuilder (Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/EventCategory;Lcom/dropbox/core/v2/teamlog/EventType;Lcom/dropbox/core/v2/teamlog/EventDetails;)Lcom/dropbox/core/v2/teamlog/TeamEvent$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamEvent$Builder { + protected field actor Lcom/dropbox/core/v2/teamlog/ActorLogInfo; + protected field assets Ljava/util/List; + protected field context Lcom/dropbox/core/v2/teamlog/ContextLogInfo; + protected final field details Lcom/dropbox/core/v2/teamlog/EventDetails; + protected final field eventCategory Lcom/dropbox/core/v2/teamlog/EventCategory; + protected final field eventType Lcom/dropbox/core/v2/teamlog/EventType; + protected field involveNonTeamMember Ljava/lang/Boolean; + protected field origin Lcom/dropbox/core/v2/teamlog/OriginLogInfo; + protected field participants Ljava/util/List; + protected final field timestamp Ljava/util/Date; + protected fun (Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/EventCategory;Lcom/dropbox/core/v2/teamlog/EventType;Lcom/dropbox/core/v2/teamlog/EventDetails;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/TeamEvent; + public fun withActor (Lcom/dropbox/core/v2/teamlog/ActorLogInfo;)Lcom/dropbox/core/v2/teamlog/TeamEvent$Builder; + public fun withAssets (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/TeamEvent$Builder; + public fun withContext (Lcom/dropbox/core/v2/teamlog/ContextLogInfo;)Lcom/dropbox/core/v2/teamlog/TeamEvent$Builder; + public fun withInvolveNonTeamMember (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/TeamEvent$Builder; + public fun withOrigin (Lcom/dropbox/core/v2/teamlog/OriginLogInfo;)Lcom/dropbox/core/v2/teamlog/TeamEvent$Builder; + public fun withParticipants (Ljava/util/List;)Lcom/dropbox/core/v2/teamlog/TeamEvent$Builder; +} + +public final class com/dropbox/core/v2/teamlog/TeamExtensionsPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; +} + +public class com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy;Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TeamExtensionsPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderChangeStatusDetails { + protected final field newValue Lcom/dropbox/core/v2/team/TeamFolderStatus; + protected final field previousValue Lcom/dropbox/core/v2/team/TeamFolderStatus; + public fun (Lcom/dropbox/core/v2/team/TeamFolderStatus;)V + public fun (Lcom/dropbox/core/v2/team/TeamFolderStatus;Lcom/dropbox/core/v2/team/TeamFolderStatus;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/team/TeamFolderStatus; + public fun getPreviousValue ()Lcom/dropbox/core/v2/team/TeamFolderStatus; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderChangeStatusType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderCreateDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderCreateType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderDowngradeDetails { + protected final field targetAssetIndex J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getTargetAssetIndex ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderDowngradeType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderRenameDetails { + protected final field newFolderName Ljava/lang/String; + protected final field previousFolderName Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewFolderName ()Ljava/lang/String; + public fun getPreviousFolderName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamFolderRenameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamInviteDetails { + protected final field additionalLicensePurchase Ljava/lang/Boolean; + protected final field inviteMethod Lcom/dropbox/core/v2/teamlog/InviteMethod; + public fun (Lcom/dropbox/core/v2/teamlog/InviteMethod;)V + public fun (Lcom/dropbox/core/v2/teamlog/InviteMethod;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAdditionalLicensePurchase ()Ljava/lang/Boolean; + public fun getInviteMethod ()Lcom/dropbox/core/v2/teamlog/InviteMethod; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo : com/dropbox/core/v2/teamlog/AppLogInfo { + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo$Builder : com/dropbox/core/v2/teamlog/AppLogInfo$Builder { + protected fun ()V + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun build ()Lcom/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo; + public synthetic fun withAppId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun withAppId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo$Builder; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/TeamLogInfo { + protected final field displayName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDisplayName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMemberLogInfo : com/dropbox/core/v2/teamlog/UserLogInfo { + protected final field memberExternalId Ljava/lang/String; + protected final field team Lcom/dropbox/core/v2/teamlog/TeamLogInfo; + protected final field teamMemberId Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/TeamLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun getEmail ()Ljava/lang/String; + public fun getMemberExternalId ()Ljava/lang/String; + public fun getTeam ()Lcom/dropbox/core/v2/teamlog/TeamLogInfo; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder : com/dropbox/core/v2/teamlog/UserLogInfo$Builder { + protected field memberExternalId Ljava/lang/String; + protected field team Lcom/dropbox/core/v2/teamlog/TeamLogInfo; + protected field teamMemberId Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder; + public synthetic fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder; + public synthetic fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withMemberExternalId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder; + public fun withTeam (Lcom/dropbox/core/v2/teamlog/TeamLogInfo;)Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder; + public fun withTeamMemberId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMemberLogInfo$Builder; +} + +public final class com/dropbox/core/v2/teamlog/TeamMembershipType : java/lang/Enum { + public static final field FREE Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public static final field FULL Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public static final field GUEST Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMembershipType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamMembershipType; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeFromDetails { + protected final field teamName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeamName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeFromType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedDetails { + protected final field requestAcceptedDetails Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails; + public fun (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRequestAcceptedDetails ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails; + public fun equals (Ljava/lang/Object;)Z + public fun getPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestAcceptedDetails; + public fun getSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestAcceptedDetails; + public fun hashCode ()I + public fun isOther ()Z + public fun isPrimaryTeam ()Z + public fun isSecondaryTeam ()Z + public static fun primaryTeam (Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestAcceptedDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails; + public static fun secondaryTeam (Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestAcceptedDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails; + public fun tag ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails$Tag; + public static final field PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails$Tag; + public static final field SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails$Tag; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamDetails { + protected final field primaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getPrimaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledDetails { + protected final field details Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDetails ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledDetails { + protected final field requestCanceledDetails Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails; + public fun (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRequestCanceledDetails ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails; + public fun equals (Ljava/lang/Object;)Z + public fun getPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestCanceledDetails; + public fun getSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestCanceledDetails; + public fun hashCode ()I + public fun isOther ()Z + public fun isPrimaryTeam ()Z + public fun isSecondaryTeam ()Z + public static fun primaryTeam (Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestCanceledDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails; + public static fun secondaryTeam (Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestCanceledDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails; + public fun tag ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails$Tag; + public static final field PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails$Tag; + public static final field SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails$Tag; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamDetails { + protected final field sentBy Ljava/lang/String; + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentBy ()Ljava/lang/String; + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredDetails { + protected final field requestExpiredDetails Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails; + public fun (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRequestExpiredDetails ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails; + public fun equals (Ljava/lang/Object;)Z + public fun getPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestExpiredDetails; + public fun getSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestExpiredDetails; + public fun hashCode ()I + public fun isOther ()Z + public fun isPrimaryTeam ()Z + public fun isSecondaryTeam ()Z + public static fun primaryTeam (Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestExpiredDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails; + public static fun secondaryTeam (Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestExpiredDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails; + public fun tag ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails$Tag; + public static final field PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails$Tag; + public static final field SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails$Tag; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamDetails { + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamDetails { + protected final field sentBy Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentBy ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderDetails { + protected final field requestReminderDetails Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails; + public fun (Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails;)V + public fun equals (Ljava/lang/Object;)Z + public fun getRequestReminderDetails ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails; + public fun equals (Ljava/lang/Object;)Z + public fun getPrimaryTeamValue ()Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestReminderDetails; + public fun getSecondaryTeamValue ()Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestReminderDetails; + public fun hashCode ()I + public fun isOther ()Z + public fun isPrimaryTeam ()Z + public fun isSecondaryTeam ()Z + public static fun primaryTeam (Lcom/dropbox/core/v2/teamlog/PrimaryTeamRequestReminderDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails; + public static fun secondaryTeam (Lcom/dropbox/core/v2/teamlog/SecondaryTeamRequestReminderDetails;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails; + public fun tag ()Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails$Tag : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails$Tag; + public static final field PRIMARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails$Tag; + public static final field SECONDARY_TEAM Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails$Tag; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamDetails { + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestReminderType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedDetails { + protected final field team Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeam ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamDetails { + protected final field secondaryTeam Ljava/lang/String; + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSecondaryTeam ()Ljava/lang/String; + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamDetails { + protected final field sentTo Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSentTo ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeToDetails { + protected final field teamName Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeamName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamMergeToType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamName { + protected final field teamDisplayName Ljava/lang/String; + protected final field teamLegalName Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getTeamDisplayName ()Ljava/lang/String; + public fun getTeamLegalName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileAddLogoDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileAddLogoType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeLogoDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeLogoType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeNameDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TeamName; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TeamName; + public fun (Lcom/dropbox/core/v2/teamlog/TeamName;)V + public fun (Lcom/dropbox/core/v2/teamlog/TeamName;Lcom/dropbox/core/v2/teamlog/TeamName;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TeamName; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TeamName; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileChangeNameType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; +} + +public class com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy;Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/files/SyncSetting; + protected final field previousValue Lcom/dropbox/core/v2/files/SyncSetting; + public fun (Lcom/dropbox/core/v2/files/SyncSetting;Lcom/dropbox/core/v2/files/SyncSetting;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/files/SyncSetting; + public fun getPreviousValue ()Lcom/dropbox/core/v2/files/SyncSetting; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedDetails { + protected final field addedWhitelistSubjects Ljava/util/List; + protected final field removedWhitelistSubjects Ljava/util/List; + public fun (Ljava/util/List;Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAddedWhitelistSubjects ()Ljava/util/List; + public fun getRemovedWhitelistSubjects ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaAddBackupPhoneDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaAddBackupPhoneType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaAddExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaAddExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaAddSecurityKeyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaAddSecurityKeyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public fun (Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy;)V + public fun (Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy;Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaChangeStatusDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + protected final field usedRescueCode Ljava/lang/Boolean; + public fun (Lcom/dropbox/core/v2/teamlog/TfaConfiguration;)V + public fun (Lcom/dropbox/core/v2/teamlog/TfaConfiguration;Lcom/dropbox/core/v2/teamlog/TfaConfiguration;Ljava/lang/Boolean;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public fun getUsedRescueCode ()Ljava/lang/Boolean; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/TfaConfiguration;)Lcom/dropbox/core/v2/teamlog/TfaChangeStatusDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaChangeStatusDetails$Builder { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + protected field previousValue Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + protected field usedRescueCode Ljava/lang/Boolean; + protected fun (Lcom/dropbox/core/v2/teamlog/TfaConfiguration;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/TfaChangeStatusDetails; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/TfaConfiguration;)Lcom/dropbox/core/v2/teamlog/TfaChangeStatusDetails$Builder; + public fun withUsedRescueCode (Ljava/lang/Boolean;)Lcom/dropbox/core/v2/teamlog/TfaChangeStatusDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/TfaChangeStatusType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TfaConfiguration : java/lang/Enum { + public static final field AUTHENTICATOR Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public static final field SMS Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TfaConfiguration; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TfaConfiguration; +} + +public class com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaRemoveExceptionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaRemoveExceptionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaResetDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TfaResetType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TimeUnit : java/lang/Enum { + public static final field DAYS Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field HOURS Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field MILLISECONDS Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field MINUTES Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field MONTHS Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field SECONDS Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field WEEKS Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static final field YEARS Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TimeUnit; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TimeUnit; +} + +public class com/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo : com/dropbox/core/v2/teamlog/UserLogInfo { + protected final field team Lcom/dropbox/core/v2/teamlog/TeamLogInfo; + protected final field trustedNonTeamMemberType Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; + public fun (Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType;)V + public fun (Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teamlog/TeamLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun getEmail ()Ljava/lang/String; + public fun getTeam ()Lcom/dropbox/core/v2/teamlog/TeamLogInfo; + public fun getTrustedNonTeamMemberType ()Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; + public fun hashCode ()I + public static fun newBuilder (Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType;)Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo$Builder : com/dropbox/core/v2/teamlog/UserLogInfo$Builder { + protected field team Lcom/dropbox/core/v2/teamlog/TeamLogInfo; + protected final field trustedNonTeamMemberType Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; + protected fun (Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType;)V + public fun build ()Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo; + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo$Builder; + public synthetic fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo$Builder; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo$Builder; + public synthetic fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withTeam (Lcom/dropbox/core/v2/teamlog/TeamLogInfo;)Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo$Builder; +} + +public final class com/dropbox/core/v2/teamlog/TrustedNonTeamMemberType : java/lang/Enum { + public static final field ENTERPRISE_ADMIN Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; + public static final field MULTI_INSTANCE_ADMIN Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TrustedNonTeamMemberType; +} + +public final class com/dropbox/core/v2/teamlog/TrustedTeamsRequestAction : java/lang/Enum { + public static final field ACCEPTED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public static final field DECLINED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public static final field EXPIRED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public static final field INVITED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public static final field REVOKED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestAction; +} + +public final class com/dropbox/core/v2/teamlog/TrustedTeamsRequestState : java/lang/Enum { + public static final field INVITED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public static final field LINKED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public static final field UNLINKED Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TrustedTeamsRequestState; +} + +public class com/dropbox/core/v2/teamlog/TwoAccountChangePolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy;)V + public fun (Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy;Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/TwoAccountChangePolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/TwoAccountPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/TwoAccountPolicy; +} + +public class com/dropbox/core/v2/teamlog/UndoNamingConventionDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UndoNamingConventionType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyDetails { + public fun ()V + public fun equals (Ljava/lang/Object;)Z + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserLinkedAppLogInfo : com/dropbox/core/v2/teamlog/AppLogInfo { + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/UserLinkedAppLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserLinkedAppLogInfo$Builder : com/dropbox/core/v2/teamlog/AppLogInfo$Builder { + protected fun ()V + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun build ()Lcom/dropbox/core/v2/teamlog/UserLinkedAppLogInfo; + public synthetic fun withAppId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun withAppId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLinkedAppLogInfo$Builder; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLinkedAppLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/UserLogInfo { + protected final field accountId Ljava/lang/String; + protected final field displayName Ljava/lang/String; + protected final field email Ljava/lang/String; + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun getEmail ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserLogInfo$Builder { + protected field accountId Ljava/lang/String; + protected field displayName Ljava/lang/String; + protected field email Ljava/lang/String; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/UserLogInfo; + public fun withAccountId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; + public fun withEmail (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/UserNameLogInfo { + protected final field givenName Ljava/lang/String; + protected final field locale Ljava/lang/String; + protected final field surname Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getGivenName ()Ljava/lang/String; + public fun getLocale ()Ljava/lang/String; + public fun getSurname ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo : com/dropbox/core/v2/teamlog/AppLogInfo { + public fun ()V + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAppId ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo$Builder : com/dropbox/core/v2/teamlog/AppLogInfo$Builder { + protected fun ()V + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/AppLogInfo; + public fun build ()Lcom/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo; + public synthetic fun withAppId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun withAppId (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo$Builder; + public synthetic fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/AppLogInfo$Builder; + public fun withDisplayName (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/UserTagsAddedDetails { + protected final field values Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getValues ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserTagsAddedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserTagsRemovedDetails { + protected final field values Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getValues ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/UserTagsRemovedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/PassPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/PassPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/PassPolicy;Lcom/dropbox/core/v2/teamlog/PassPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/PassPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/PassPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/WatermarkingPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; +} + +public class com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + public fun (Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy;Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/WatermarkingPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo { + protected final field browser Ljava/lang/String; + protected final field os Ljava/lang/String; + protected final field sessionInfo Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo; + protected final field userAgent Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBrowser ()Ljava/lang/String; + public fun getCreated ()Ljava/util/Date; + public fun getIpAddress ()Ljava/lang/String; + public fun getOs ()Ljava/lang/String; + public fun getSessionInfo ()Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo; + public fun getUpdated ()Ljava/util/Date; + public fun getUserAgent ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo$Builder : com/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder { + protected final field browser Ljava/lang/String; + protected final field os Ljava/lang/String; + protected field sessionInfo Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo; + protected final field userAgent Ljava/lang/String; + protected fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public synthetic fun build ()Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo; + public fun build ()Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo; + public synthetic fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withCreated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo$Builder; + public synthetic fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withIpAddress (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo$Builder; + public fun withSessionInfo (Lcom/dropbox/core/v2/teamlog/WebSessionLogInfo;)Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo$Builder; + public synthetic fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/DeviceSessionLogInfo$Builder; + public fun withUpdated (Ljava/util/Date;)Lcom/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo$Builder; +} + +public class com/dropbox/core/v2/teamlog/WebSessionLogInfo : com/dropbox/core/v2/teamlog/SessionLogInfo { + public fun ()V + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getSessionId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitDetails { + protected final field newValue Ljava/lang/String; + protected final field previousValue Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Ljava/lang/String; + public fun getPreviousValue ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy;Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + protected field previousValue Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy;)Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy;)Lcom/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails { + protected final field newValue Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + protected final field previousValue Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + public fun ()V + public fun (Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy;Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getNewValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + public fun getPreviousValue ()Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + public fun hashCode ()I + public static fun newBuilder ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails$Builder { + protected field newValue Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + protected field previousValue Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + protected fun ()V + public fun build ()Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails; + public fun withNewValue (Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy;)Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails$Builder; + public fun withPreviousValue (Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy;)Lcom/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails$Builder; +} + +public class com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyType { + protected final field description Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getDescription ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + public static final field UNDEFINED Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + public static fun defined (Lcom/dropbox/core/v2/teamlog/DurationLogInfo;)Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy; + public fun equals (Ljava/lang/Object;)Z + public fun getDefinedValue ()Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + public fun hashCode ()I + public fun isDefined ()Z + public fun isOther ()Z + public fun isUndefined ()Z + public fun tag ()Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy$Tag : java/lang/Enum { + public static final field DEFINED Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy$Tag; + public static final field UNDEFINED Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy$Tag; +} + +public final class com/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy { + public static final field OTHER Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + public static final field UNDEFINED Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + public static fun defined (Lcom/dropbox/core/v2/teamlog/DurationLogInfo;)Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy; + public fun equals (Ljava/lang/Object;)Z + public fun getDefinedValue ()Lcom/dropbox/core/v2/teamlog/DurationLogInfo; + public fun hashCode ()I + public fun isDefined ()Z + public fun isOther ()Z + public fun isUndefined ()Z + public fun tag ()Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy$Tag : java/lang/Enum { + public static final field DEFINED Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy$Tag; + public static final field OTHER Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy$Tag; + public static final field UNDEFINED Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy$Tag; + public static fun values ()[Lcom/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy$Tag; +} + +public final class com/dropbox/core/v2/teampolicies/EmmState : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/EmmState; + public static final field OPTIONAL Lcom/dropbox/core/v2/teampolicies/EmmState; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/EmmState; + public static final field REQUIRED Lcom/dropbox/core/v2/teampolicies/EmmState; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/EmmState; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/EmmState; +} + +public class com/dropbox/core/v2/teampolicies/EmmState$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/EmmState$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/EmmState; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/EmmState;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/FileLockingPolicyState : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public static final field ENABLED Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; +} + +public class com/dropbox/core/v2/teampolicies/FileLockingPolicyState$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/FileLockingPolicyState;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState : java/lang/Enum { + public static final field DEFAULT Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public static final field ENABLED Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; +} + +public class com/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/GroupCreation : java/lang/Enum { + public static final field ADMINS_AND_MEMBERS Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public static final field ADMINS_ONLY Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/GroupCreation; +} + +public class com/dropbox/core/v2/teampolicies/GroupCreation$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/GroupCreation$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/GroupCreation;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/OfficeAddInPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; +} + +public class com/dropbox/core/v2/teampolicies/OfficeAddInPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/PaperDeploymentPolicy : java/lang/Enum { + public static final field FULL Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public static final field PARTIAL Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; +} + +public class com/dropbox/core/v2/teampolicies/PaperDeploymentPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/PaperDeploymentPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/PaperEnabledPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public static final field UNSPECIFIED Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; +} + +public class com/dropbox/core/v2/teampolicies/PaperEnabledPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/PaperEnabledPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/PasswordStrengthPolicy : java/lang/Enum { + public static final field MINIMAL_REQUIREMENTS Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public static final field MODERATE_PASSWORD Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public static final field STRONG_PASSWORD Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; +} + +public class com/dropbox/core/v2/teampolicies/PasswordStrengthPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/PasswordStrengthPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/RolloutMethod : java/lang/Enum { + public static final field ADD_MEMBER_TO_EXCEPTIONS Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public static final field UNLINK_ALL Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public static final field UNLINK_MOST_INACTIVE Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/RolloutMethod; +} + +public class com/dropbox/core/v2/teampolicies/RolloutMethod$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/RolloutMethod$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/RolloutMethod; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/RolloutMethod;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy : java/lang/Enum { + public static final field ANYONE Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy; + public static final field MEMBERS Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy; +} + +public final class com/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy : java/lang/Enum { + public static final field FROM_ANYONE Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy; + public static final field FROM_TEAM_ONLY Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy; +} + +public final class com/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy : java/lang/Enum { + public static final field ANYONE Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy; + public static final field TEAM Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy; +} + +public final class com/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy : java/lang/Enum { + public static final field DEFAULT_NO_ONE Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public static final field DEFAULT_PUBLIC Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public static final field DEFAULT_TEAM_ONLY Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public static final field TEAM_ONLY Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; +} + +public final class com/dropbox/core/v2/teampolicies/SmartSyncPolicy : java/lang/Enum { + public static final field LOCAL Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public static final field ON_DEMAND Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; +} + +public class com/dropbox/core/v2/teampolicies/SmartSyncPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/SmartSyncPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public static final field ENABLED Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; +} + +public class com/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/SsoPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public static final field OPTIONAL Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public static final field REQUIRED Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SsoPolicy; +} + +public class com/dropbox/core/v2/teampolicies/SsoPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/SsoPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/SsoPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/SsoPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/teampolicies/SuggestMembersPolicy : java/lang/Enum { + public static final field DISABLED Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy; + public static final field ENABLED Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy; + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy; +} + +public class com/dropbox/core/v2/teampolicies/TeamMemberPolicies { + protected final field emmState Lcom/dropbox/core/v2/teampolicies/EmmState; + protected final field officeAddin Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + protected final field sharing Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies; + protected final field suggestMembersPolicy Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy; + public fun (Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies;Lcom/dropbox/core/v2/teampolicies/EmmState;Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy;Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getEmmState ()Lcom/dropbox/core/v2/teampolicies/EmmState; + public fun getOfficeAddin ()Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + public fun getSharing ()Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies; + public fun getSuggestMembersPolicy ()Lcom/dropbox/core/v2/teampolicies/SuggestMembersPolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teampolicies/TeamMemberPolicies$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/TeamMemberPolicies$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/teampolicies/TeamMemberPolicies; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/TeamMemberPolicies;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/teampolicies/TeamSharingPolicies { + protected final field groupCreationPolicy Lcom/dropbox/core/v2/teampolicies/GroupCreation; + protected final field sharedFolderJoinPolicy Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy; + protected final field sharedFolderLinkRestrictionPolicy Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy; + protected final field sharedFolderMemberPolicy Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy; + protected final field sharedLinkCreatePolicy Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public fun (Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy;Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy;Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy;Lcom/dropbox/core/v2/teampolicies/GroupCreation;Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getGroupCreationPolicy ()Lcom/dropbox/core/v2/teampolicies/GroupCreation; + public fun getSharedFolderJoinPolicy ()Lcom/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy; + public fun getSharedFolderLinkRestrictionPolicy ()Lcom/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy; + public fun getSharedFolderMemberPolicy ()Lcom/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy; + public fun getSharedLinkCreatePolicy ()Lcom/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/teampolicies/TeamSharingPolicies$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy : java/lang/Enum { + public static final field OTHER Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public static final field REQUIRE_TFA_DISABLE Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public static final field REQUIRE_TFA_ENABLE Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public static fun values ()[Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; +} + +public class com/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/users/Account { + protected final field accountId Ljava/lang/String; + protected final field disabled Z + protected final field email Ljava/lang/String; + protected final field emailVerified Z + protected final field name Lcom/dropbox/core/v2/users/Name; + protected final field profilePhotoUrl Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZ)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZLjava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getDisabled ()Z + public fun getEmail ()Ljava/lang/String; + public fun getEmailVerified ()Z + public fun getName ()Lcom/dropbox/core/v2/users/Name; + public fun getProfilePhotoUrl ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/BasicAccount : com/dropbox/core/v2/users/Account { + protected final field isTeammate Z + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZZ)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZZLjava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getDisabled ()Z + public fun getEmail ()Ljava/lang/String; + public fun getEmailVerified ()Z + public fun getIsTeammate ()Z + public fun getName ()Lcom/dropbox/core/v2/users/Name; + public fun getProfilePhotoUrl ()Ljava/lang/String; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZZ)Lcom/dropbox/core/v2/users/BasicAccount$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/BasicAccount$Builder { + protected final field accountId Ljava/lang/String; + protected final field disabled Z + protected final field email Ljava/lang/String; + protected final field emailVerified Z + protected final field isTeammate Z + protected final field name Lcom/dropbox/core/v2/users/Name; + protected field profilePhotoUrl Ljava/lang/String; + protected field teamMemberId Ljava/lang/String; + protected fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZZ)V + public fun build ()Lcom/dropbox/core/v2/users/BasicAccount; + public fun withProfilePhotoUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/users/BasicAccount$Builder; + public fun withTeamMemberId (Ljava/lang/String;)Lcom/dropbox/core/v2/users/BasicAccount$Builder; +} + +public class com/dropbox/core/v2/users/BasicAccount$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/users/BasicAccount$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/users/BasicAccount; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/users/BasicAccount;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/users/DbxUserUsersRequests { + public fun (Lcom/dropbox/core/v2/DbxRawClientV2;)V + public fun featuresGetValues (Ljava/util/List;)Lcom/dropbox/core/v2/users/UserFeaturesGetValuesBatchResult; + public fun getAccount (Ljava/lang/String;)Lcom/dropbox/core/v2/users/BasicAccount; + public fun getAccountBatch (Ljava/util/List;)Ljava/util/List; + public fun getCurrentAccount ()Lcom/dropbox/core/v2/users/FullAccount; + public fun getSpaceUsage ()Lcom/dropbox/core/v2/users/SpaceUsage; +} + +public final class com/dropbox/core/v2/users/FileLockingValue { + public static final field OTHER Lcom/dropbox/core/v2/users/FileLockingValue; + public static fun enabled (Z)Lcom/dropbox/core/v2/users/FileLockingValue; + public fun equals (Ljava/lang/Object;)Z + public fun getEnabledValue ()Z + public fun hashCode ()I + public fun isEnabled ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/users/FileLockingValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/users/FileLockingValue$Tag : java/lang/Enum { + public static final field ENABLED Lcom/dropbox/core/v2/users/FileLockingValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/users/FileLockingValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/FileLockingValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/users/FileLockingValue$Tag; +} + +public class com/dropbox/core/v2/users/FullAccount : com/dropbox/core/v2/users/Account { + protected final field accountType Lcom/dropbox/core/v2/userscommon/AccountType; + protected final field country Ljava/lang/String; + protected final field isPaired Z + protected final field locale Ljava/lang/String; + protected final field referralLink Ljava/lang/String; + protected final field rootInfo Lcom/dropbox/core/v2/common/RootInfo; + protected final field team Lcom/dropbox/core/v2/users/FullTeam; + protected final field teamMemberId Ljava/lang/String; + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZLjava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/userscommon/AccountType;Lcom/dropbox/core/v2/common/RootInfo;)V + public fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZLjava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/userscommon/AccountType;Lcom/dropbox/core/v2/common/RootInfo;Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/users/FullTeam;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun getAccountType ()Lcom/dropbox/core/v2/userscommon/AccountType; + public fun getCountry ()Ljava/lang/String; + public fun getDisabled ()Z + public fun getEmail ()Ljava/lang/String; + public fun getEmailVerified ()Z + public fun getIsPaired ()Z + public fun getLocale ()Ljava/lang/String; + public fun getName ()Lcom/dropbox/core/v2/users/Name; + public fun getProfilePhotoUrl ()Ljava/lang/String; + public fun getReferralLink ()Ljava/lang/String; + public fun getRootInfo ()Lcom/dropbox/core/v2/common/RootInfo; + public fun getTeam ()Lcom/dropbox/core/v2/users/FullTeam; + public fun getTeamMemberId ()Ljava/lang/String; + public fun hashCode ()I + public static fun newBuilder (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZLjava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/userscommon/AccountType;Lcom/dropbox/core/v2/common/RootInfo;)Lcom/dropbox/core/v2/users/FullAccount$Builder; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/FullAccount$Builder { + protected final field accountId Ljava/lang/String; + protected final field accountType Lcom/dropbox/core/v2/userscommon/AccountType; + protected field country Ljava/lang/String; + protected final field disabled Z + protected final field email Ljava/lang/String; + protected final field emailVerified Z + protected final field isPaired Z + protected final field locale Ljava/lang/String; + protected final field name Lcom/dropbox/core/v2/users/Name; + protected field profilePhotoUrl Ljava/lang/String; + protected final field referralLink Ljava/lang/String; + protected final field rootInfo Lcom/dropbox/core/v2/common/RootInfo; + protected field team Lcom/dropbox/core/v2/users/FullTeam; + protected field teamMemberId Ljava/lang/String; + protected fun (Ljava/lang/String;Lcom/dropbox/core/v2/users/Name;Ljava/lang/String;ZZLjava/lang/String;Ljava/lang/String;ZLcom/dropbox/core/v2/userscommon/AccountType;Lcom/dropbox/core/v2/common/RootInfo;)V + public fun build ()Lcom/dropbox/core/v2/users/FullAccount; + public fun withCountry (Ljava/lang/String;)Lcom/dropbox/core/v2/users/FullAccount$Builder; + public fun withProfilePhotoUrl (Ljava/lang/String;)Lcom/dropbox/core/v2/users/FullAccount$Builder; + public fun withTeam (Lcom/dropbox/core/v2/users/FullTeam;)Lcom/dropbox/core/v2/users/FullAccount$Builder; + public fun withTeamMemberId (Ljava/lang/String;)Lcom/dropbox/core/v2/users/FullAccount$Builder; +} + +public class com/dropbox/core/v2/users/FullTeam : com/dropbox/core/v2/users/Team { + protected final field officeAddinPolicy Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + protected final field sharingPolicies Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies;Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun getOfficeAddinPolicy ()Lcom/dropbox/core/v2/teampolicies/OfficeAddInPolicy; + public fun getSharingPolicies ()Lcom/dropbox/core/v2/teampolicies/TeamSharingPolicies; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/GetAccountArg { + protected final field accountId Ljava/lang/String; + public fun (Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountId ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/GetAccountArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/users/GetAccountArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/users/GetAccountArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/users/GetAccountArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/users/GetAccountBatchArg { + protected final field accountIds Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAccountIds ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/GetAccountBatchArg$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/users/GetAccountBatchArg$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/users/GetAccountBatchArg; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/users/GetAccountBatchArg;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/users/GetAccountBatchError { + public static final field OTHER Lcom/dropbox/core/v2/users/GetAccountBatchError; + public fun equals (Ljava/lang/Object;)Z + public fun getNoAccountValue ()Ljava/lang/String; + public fun hashCode ()I + public fun isNoAccount ()Z + public fun isOther ()Z + public static fun noAccount (Ljava/lang/String;)Lcom/dropbox/core/v2/users/GetAccountBatchError; + public fun tag ()Lcom/dropbox/core/v2/users/GetAccountBatchError$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/GetAccountBatchError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/users/GetAccountBatchError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/users/GetAccountBatchError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/users/GetAccountBatchError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public final class com/dropbox/core/v2/users/GetAccountBatchError$Tag : java/lang/Enum { + public static final field NO_ACCOUNT Lcom/dropbox/core/v2/users/GetAccountBatchError$Tag; + public static final field OTHER Lcom/dropbox/core/v2/users/GetAccountBatchError$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/GetAccountBatchError$Tag; + public static fun values ()[Lcom/dropbox/core/v2/users/GetAccountBatchError$Tag; +} + +public class com/dropbox/core/v2/users/GetAccountBatchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/users/GetAccountBatchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/users/GetAccountBatchError;)V +} + +public final class com/dropbox/core/v2/users/GetAccountError : java/lang/Enum { + public static final field NO_ACCOUNT Lcom/dropbox/core/v2/users/GetAccountError; + public static final field OTHER Lcom/dropbox/core/v2/users/GetAccountError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/GetAccountError; + public static fun values ()[Lcom/dropbox/core/v2/users/GetAccountError; +} + +public class com/dropbox/core/v2/users/GetAccountError$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/users/GetAccountError$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/users/GetAccountError; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/users/GetAccountError;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + +public class com/dropbox/core/v2/users/GetAccountErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/users/GetAccountError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/users/GetAccountError;)V +} + +public class com/dropbox/core/v2/users/IndividualSpaceAllocation { + protected final field allocated J + public fun (J)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllocated ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/Name { + protected final field abbreviatedName Ljava/lang/String; + protected final field displayName Ljava/lang/String; + protected final field familiarName Ljava/lang/String; + protected final field givenName Ljava/lang/String; + protected final field surname Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAbbreviatedName ()Ljava/lang/String; + public fun getDisplayName ()Ljava/lang/String; + public fun getFamiliarName ()Ljava/lang/String; + public fun getGivenName ()Ljava/lang/String; + public fun getSurname ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/Name$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/users/Name$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/users/Name; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/users/Name;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public final class com/dropbox/core/v2/users/PaperAsFilesValue { + public static final field OTHER Lcom/dropbox/core/v2/users/PaperAsFilesValue; + public static fun enabled (Z)Lcom/dropbox/core/v2/users/PaperAsFilesValue; + public fun equals (Ljava/lang/Object;)Z + public fun getEnabledValue ()Z + public fun hashCode ()I + public fun isEnabled ()Z + public fun isOther ()Z + public fun tag ()Lcom/dropbox/core/v2/users/PaperAsFilesValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/users/PaperAsFilesValue$Tag : java/lang/Enum { + public static final field ENABLED Lcom/dropbox/core/v2/users/PaperAsFilesValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/users/PaperAsFilesValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/PaperAsFilesValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/users/PaperAsFilesValue$Tag; +} + +public final class com/dropbox/core/v2/users/SpaceAllocation { + public static final field OTHER Lcom/dropbox/core/v2/users/SpaceAllocation; + public fun equals (Ljava/lang/Object;)Z + public fun getIndividualValue ()Lcom/dropbox/core/v2/users/IndividualSpaceAllocation; + public fun getTeamValue ()Lcom/dropbox/core/v2/users/TeamSpaceAllocation; + public fun hashCode ()I + public static fun individual (Lcom/dropbox/core/v2/users/IndividualSpaceAllocation;)Lcom/dropbox/core/v2/users/SpaceAllocation; + public fun isIndividual ()Z + public fun isOther ()Z + public fun isTeam ()Z + public fun tag ()Lcom/dropbox/core/v2/users/SpaceAllocation$Tag; + public static fun team (Lcom/dropbox/core/v2/users/TeamSpaceAllocation;)Lcom/dropbox/core/v2/users/SpaceAllocation; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/users/SpaceAllocation$Tag : java/lang/Enum { + public static final field INDIVIDUAL Lcom/dropbox/core/v2/users/SpaceAllocation$Tag; + public static final field OTHER Lcom/dropbox/core/v2/users/SpaceAllocation$Tag; + public static final field TEAM Lcom/dropbox/core/v2/users/SpaceAllocation$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/SpaceAllocation$Tag; + public static fun values ()[Lcom/dropbox/core/v2/users/SpaceAllocation$Tag; +} + +public class com/dropbox/core/v2/users/SpaceUsage { + protected final field allocation Lcom/dropbox/core/v2/users/SpaceAllocation; + protected final field used J + public fun (JLcom/dropbox/core/v2/users/SpaceAllocation;)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllocation ()Lcom/dropbox/core/v2/users/SpaceAllocation; + public fun getUsed ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/Team { + protected final field id Ljava/lang/String; + protected final field name Ljava/lang/String; + public fun (Ljava/lang/String;Ljava/lang/String;)V + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ljava/lang/String; + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public class com/dropbox/core/v2/users/Team$Serializer : com/dropbox/core/stone/StructSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/users/Team$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Lcom/dropbox/core/v2/users/Team; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;Z)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/users/Team;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;Z)V +} + +public class com/dropbox/core/v2/users/TeamSpaceAllocation { + protected final field allocated J + protected final field used J + protected final field userWithinTeamSpaceAllocated J + protected final field userWithinTeamSpaceLimitType Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + protected final field userWithinTeamSpaceUsedCached J + public fun (JJJLcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType;J)V + public fun equals (Ljava/lang/Object;)Z + public fun getAllocated ()J + public fun getUsed ()J + public fun getUserWithinTeamSpaceAllocated ()J + public fun getUserWithinTeamSpaceLimitType ()Lcom/dropbox/core/v2/teamcommon/MemberSpaceLimitType; + public fun getUserWithinTeamSpaceUsedCached ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/users/UserFeature : java/lang/Enum { + public static final field FILE_LOCKING Lcom/dropbox/core/v2/users/UserFeature; + public static final field OTHER Lcom/dropbox/core/v2/users/UserFeature; + public static final field PAPER_AS_FILES Lcom/dropbox/core/v2/users/UserFeature; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/UserFeature; + public static fun values ()[Lcom/dropbox/core/v2/users/UserFeature; +} + +public final class com/dropbox/core/v2/users/UserFeatureValue { + public static final field OTHER Lcom/dropbox/core/v2/users/UserFeatureValue; + public fun equals (Ljava/lang/Object;)Z + public static fun fileLocking (Lcom/dropbox/core/v2/users/FileLockingValue;)Lcom/dropbox/core/v2/users/UserFeatureValue; + public fun getFileLockingValue ()Lcom/dropbox/core/v2/users/FileLockingValue; + public fun getPaperAsFilesValue ()Lcom/dropbox/core/v2/users/PaperAsFilesValue; + public fun hashCode ()I + public fun isFileLocking ()Z + public fun isOther ()Z + public fun isPaperAsFiles ()Z + public static fun paperAsFiles (Lcom/dropbox/core/v2/users/PaperAsFilesValue;)Lcom/dropbox/core/v2/users/UserFeatureValue; + public fun tag ()Lcom/dropbox/core/v2/users/UserFeatureValue$Tag; + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/users/UserFeatureValue$Tag : java/lang/Enum { + public static final field FILE_LOCKING Lcom/dropbox/core/v2/users/UserFeatureValue$Tag; + public static final field OTHER Lcom/dropbox/core/v2/users/UserFeatureValue$Tag; + public static final field PAPER_AS_FILES Lcom/dropbox/core/v2/users/UserFeatureValue$Tag; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/UserFeatureValue$Tag; + public static fun values ()[Lcom/dropbox/core/v2/users/UserFeatureValue$Tag; +} + +public final class com/dropbox/core/v2/users/UserFeaturesGetValuesBatchError : java/lang/Enum { + public static final field EMPTY_FEATURES_LIST Lcom/dropbox/core/v2/users/UserFeaturesGetValuesBatchError; + public static final field OTHER Lcom/dropbox/core/v2/users/UserFeaturesGetValuesBatchError; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/users/UserFeaturesGetValuesBatchError; + public static fun values ()[Lcom/dropbox/core/v2/users/UserFeaturesGetValuesBatchError; +} + +public class com/dropbox/core/v2/users/UserFeaturesGetValuesBatchErrorException : com/dropbox/core/DbxApiException { + public final field errorValue Lcom/dropbox/core/v2/users/UserFeaturesGetValuesBatchError; + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/users/UserFeaturesGetValuesBatchError;)V +} + +public class com/dropbox/core/v2/users/UserFeaturesGetValuesBatchResult { + protected final field values Ljava/util/List; + public fun (Ljava/util/List;)V + public fun equals (Ljava/lang/Object;)Z + public fun getValues ()Ljava/util/List; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public fun toStringMultiline ()Ljava/lang/String; +} + +public final class com/dropbox/core/v2/userscommon/AccountType : java/lang/Enum { + public static final field BASIC Lcom/dropbox/core/v2/userscommon/AccountType; + public static final field BUSINESS Lcom/dropbox/core/v2/userscommon/AccountType; + public static final field PRO Lcom/dropbox/core/v2/userscommon/AccountType; + public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/userscommon/AccountType; + public static fun values ()[Lcom/dropbox/core/v2/userscommon/AccountType; +} + +public class com/dropbox/core/v2/userscommon/AccountType$Serializer : com/dropbox/core/stone/UnionSerializer { + public static final field INSTANCE Lcom/dropbox/core/v2/userscommon/AccountType$Serializer; + public fun ()V + public fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Lcom/dropbox/core/v2/userscommon/AccountType; + public synthetic fun deserialize (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object; + public fun serialize (Lcom/dropbox/core/v2/userscommon/AccountType;Lcom/fasterxml/jackson/core/JsonGenerator;)V + public synthetic fun serialize (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V +} + diff --git a/core/build.gradle b/core/build.gradle new file mode 100644 index 000000000..1fe17fe26 --- /dev/null +++ b/core/build.gradle @@ -0,0 +1,323 @@ +import com.dropbox.stone.java.StoneTask +import com.dropbox.stone.java.model.ClientSpec +import com.dropbox.stone.java.model.StoneConfig +import com.vanniktech.maven.publish.SonatypeHost + +plugins { + id 'java-library' + id "com.github.blindpirate.osgi" + id "org.jetbrains.kotlin.jvm" + id "com.vanniktech.maven.publish" + id "com.github.ben-manes.versions" + id "com.dropbox.dependency-guard" + id "com.dropbox.stone.java" + id "org.jetbrains.kotlinx.binary-compatibility-validator" +} + +dependencyGuard { + configuration("runtimeClasspath") +} + +sourceCompatibility = JavaVersion.VERSION_1_8 +targetCompatibility = JavaVersion.VERSION_1_8 + +ext { + mavenName = 'Official Dropbox Java SDK' + generatedSources = file("$buildDir/generated-sources") + generatedResources = file("$buildDir/generated-resources") + authInfoPropertyName = 'com.dropbox.test.authInfoFile' +} + +tasks.register('versionWriterTask') { + String versionName + if (project.hasProperty("VERSION_NAME")) { + versionName = "${project.property("VERSION_NAME")}" + } else { + versionName = project.version + } + it.inputs.property("versionName", versionName) + + def generatedDir = project.layout.buildDirectory.dir("generated/version") + it.outputs.dir(generatedDir) + + it.doLast { + def versionFile = generatedDir.get().file("com/dropbox/core/DbxSdkVersion.java").asFile + versionFile.parentFile.mkdirs() + versionFile.text = """// Generated file. Do not edit +package com.dropbox.core; + +public final class DbxSdkVersion { + public static final String Version = "${versionName}"; +} +""" + } +} +sourceSets.main.java.srcDir(versionWriterTask) + +dependencies { + api(dropboxJavaSdkLibs.jackson.core) + api(dropboxJavaSdkLibs.jsr305) + + compileOnly dropboxJavaSdkLibs.appengine.api + compileOnly dropboxJavaSdkLibs.jakarta.servlet.api + compileOnly dropboxJavaSdkLibs.kotlin.stdlib + compileOnly dropboxJavaSdkLibs.okhttp2 + compileOnly dropboxJavaSdkLibs.okhttp3 + + testImplementation dropboxJavaSdkLibs.appengine.api + testImplementation dropboxJavaSdkLibs.appengine.api.labs + testImplementation dropboxJavaSdkLibs.appengine.api.stubs + testImplementation dropboxJavaSdkLibs.appengine.testing + testImplementation dropboxJavaSdkLibs.guava + testImplementation dropboxJavaSdkLibs.jmh.core + testImplementation dropboxJavaSdkLibs.jmh.generator + testImplementation dropboxJavaSdkLibs.mockito.core + testImplementation dropboxJavaSdkLibs.okhttp2 + testImplementation dropboxJavaSdkLibs.okhttp3 + testImplementation dropboxJavaSdkLibs.testng + testImplementation dropboxJavaSdkLibs.truth +} + +configurations { + withoutOsgi.extendsFrom api +} + +tasks.named("compileJava", JavaCompile) { + options.compilerArgs << '-Xlint:all' + options.warnings = true + options.deprecation = true + options.encoding = 'utf-8' +} + +tasks.named("compileTestKotlin") { + dependsOn(tasks.named("generateTestStone")) +} + +tasks.named("test", Test) { + useTestNG() + + // TestNG specific options + options.parallel 'methods' + options.threadCount 4 + + // exclude integration tests + exclude '**/IT*.class' + exclude '**/*IT.class' + exclude '**/*IT$*.class' + + testLogging { + showStandardStreams = true // System.out.println + } +} + +def getAuthInfoFile() { + if (!project.hasProperty(authInfoPropertyName)) { + throw new GradleException('' + + "These tests require the \"${authInfoPropertyName}\" " + + "project property be set to point to an authorization JSON file " + + "(e.g. ./gradlew integrationTest -P${authInfoPropertyName}=auth.json)." + ) + } + + def authInfoFile = file(project.property(authInfoPropertyName)) + if (!authInfoFile.exists()) { + throw new GradleException('' + + "The test auth info file does not exist: \"${authInfoFile.absolutePath}\". " + + "Please ensure the \"${authInfoPropertyName}\" project property is set to point to " + + "the correct authorization JSON file." + ) + } + return authInfoFile +} + +tasks.register('integrationTest', Test) { + description 'Runs integration tests against Production or Dev servers.' + enabled = project.hasProperty(authInfoPropertyName) + + useTestNG() + + // only select integration tests (similar to maven-failsafe-plugin rules) + include '**/IT*.class' + include '**/*IT.class' + include '**/*IT$*.class' + + exclude '**/*V1IT.class' + exclude '**/*V1IT$*.class' + + testLogging { + showStandardStreams = true // System.out.println + } + + reports { + html { + destination = file("${buildDir}/reports/integration-tests") + } + } + + project.ext { + httpRequestorPropertyName = 'com.dropbox.test.httpRequestor' + } + + if (project.hasProperty(authInfoPropertyName)) { + systemProperty project.authInfoPropertyName.toString(), getAuthInfoFile().absolutePath + } + if (project.hasProperty(httpRequestorPropertyName)) { + systemProperty project.httpRequestorPropertyName.toString(), project.property(httpRequestorPropertyName) + } + + // Will ensure that integration tests are re-run every time because they are not hermetic + outputs.upToDateWhen { false } +} + + +tasks.named("javadoc", Javadoc) { + String versionName + if (project.hasProperty("VERSION_NAME")) { + versionName = "${project.property("VERSION_NAME")}" + } else { + versionName = "" + } + + title "${project.mavenName} ${versionName} API" + failOnError true + + // JDK 8's javadoc has an on-by-default lint called "missing", which requires that everything + // be documented. Disable this lint because we intentionally don't document some things. + // + // NOTE: ugly hack to set our doclint settings due to strange handling of string options by the + // javadoc task. + if (JavaVersion.current().isJava8Compatible()) { + options.addBooleanOption "Xdoclint:all,-missing", true + } + options.addStringOption "link", "http://docs.oracle.com/javase/8/docs/api/" +} + +tasks.named("jar", Jar) { + // OsgiManifest since we import 'osgi' plugin + manifest { + name project.name + description project.description + license 'http://opensource.org/licenses/MIT' + instruction 'Import-Package', + 'android.*;resolution:=optional', + 'com.google.appengine.*;resolution:=optional', + 'com.squareup.okhttp;resolution:=optional', + 'okhttp3;resolution:=optional', + 'okio;resolution:=optional', + 'kotlin.*;resolution:=optional', + '*' + + def noeeProp = 'osgi.bnd.noee' + def noee = providers.gradleProperty(noeeProp).forUseAtConfigurationTime().getOrElse( + providers.systemProperty(noeeProp).forUseAtConfigurationTime().getOrElse('false') + ) + instruction '-noee', noee + } +} + +tasks.register('jarWithoutOsgi', Jar) { + dependsOn(tasks.named("classes")) + archiveClassifier.set('withoutOsgi') + from sourceSets.main.output +} + +tasks.register('sourcesJar', Jar) { + dependsOn(tasks.named("classes")) + archiveClassifier.set('sources') + from sourceSets.main.allSource +} + +tasks.register('javadocJar', Jar) { + dependsOn(tasks.named("javadoc")) + archiveClassifier.set('javadoc') + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar + withoutOsgi jarWithoutOsgi +} + +// reject dependencyUpdates candidates with alpha or beta in their names: +tasks.named("dependencyUpdates") { + resolutionStrategy { + componentSelection { rules -> + rules.all { ComponentSelection selection -> + boolean rejected = ['alpha', 'beta', 'rc'].any { qualifier -> + selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ + } + if (rejected) { + selection.reject('Release candidate') + } + } + } + } +} + +tasks.named("generateStone", StoneTask) { + String unusedClassesToGenerate = 'AuthError, PathRoot, PathRootError, AccessError, RateLimitError' + String packageName = 'com.dropbox.core.v2' + String globalRouteFilter = 'alpha_group=null and beta_group=null' + stoneConfigs.addAll([ + new StoneConfig( + packageName: packageName, + globalRouteFilter: globalRouteFilter, + client: new ClientSpec( + name: 'DbxClientV2Base', + javadoc: 'Base class for user auth clients.', + requestsClassnamePrefix: "DbxUser", + routeFilter: 'auth="user" or auth="noauth" or auth="app, user"', + unusedClassesToGenerate: unusedClassesToGenerate, + ), + ), + new StoneConfig( + packageName: packageName, + globalRouteFilter: globalRouteFilter, + client: new ClientSpec( + name: 'DbxTeamClientV2Base', + javadoc: 'Base class for team auth clients.', + requestsClassnamePrefix: 'DbxTeam', + routeFilter: 'auth="team"', + ), + ), + new StoneConfig( + packageName: packageName, + globalRouteFilter: globalRouteFilter, + client: new ClientSpec( + name: 'DbxAppClientV2Base', + javadoc: 'Base class for app auth clients.', + requestsClassnamePrefix: "DbxApp", + routeFilter: 'auth="app" or auth="app, user"', + ) + ), + + ]) + outputDir.set(project.layout.buildDirectory.dir("generated_stone_source/main/src")) + sourceSets { main { java.srcDir(outputDir) } } +} + +tasks.named("generateTestStone", StoneTask) { + String packageName = 'com.dropbox.core.stone' + stoneConfigs.addAll([ + new StoneConfig( + packageName: packageName, + dataTypesOnly: true, + ), + new StoneConfig( + packageName: packageName, + client: new ClientSpec( + name: 'DbxClientV2Base', + javadoc: 'TestClass.', + requestsClassnamePrefix: "DbxTest", + ) + ), + ]) + outputDir.set(project.layout.buildDirectory.dir("generated_stone_source/test/src")) + sourceSets { test { java.srcDir(outputDir) } } +} + +mavenPublishing { + publishToMavenCentral(SonatypeHost.S01) + signAllPublications() +} diff --git a/examples/android/settings.gradle b/core/build/generated_stone_source/main/log/stone.log similarity index 100% rename from examples/android/settings.gradle rename to core/build/generated_stone_source/main/log/stone.log diff --git a/core/build/generated_stone_source/main/refs/javadoc-refs.json b/core/build/generated_stone_source/main/refs/javadoc-refs.json new file mode 100644 index 000000000..b8864946d --- /dev/null +++ b/core/build/generated_stone_source/main/refs/javadoc-refs.json @@ -0,0 +1 @@ +{"data_types": {"account.PhotoSourceArg": {"fq_name": "account.PhotoSourceArg", "java_class": "com.dropbox.core.v2.account.PhotoSourceArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "account.SetProfilePhotoArg": {"fq_name": "account.SetProfilePhotoArg", "java_class": "com.dropbox.core.v2.account.SetProfilePhotoArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "account.SetProfilePhotoError": {"fq_name": "account.SetProfilePhotoError", "java_class": "com.dropbox.core.v2.account.SetProfilePhotoError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "account.SetProfilePhotoResult": {"fq_name": "account.SetProfilePhotoResult", "java_class": "com.dropbox.core.v2.account.SetProfilePhotoResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "async.LaunchEmptyResult": {"fq_name": "async.LaunchEmptyResult", "java_class": "com.dropbox.core.v2.async.LaunchEmptyResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "async.LaunchResultBase": {"fq_name": "async.LaunchResultBase", "java_class": "com.dropbox.core.v2.async.LaunchResultBase", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "async.PollArg": {"fq_name": "async.PollArg", "java_class": "com.dropbox.core.v2.async.PollArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "async.PollEmptyResult": {"fq_name": "async.PollEmptyResult", "java_class": "com.dropbox.core.v2.async.PollEmptyResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "async.PollError": {"fq_name": "async.PollError", "java_class": "com.dropbox.core.v2.async.PollError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "async.PollResultBase": {"fq_name": "async.PollResultBase", "java_class": "com.dropbox.core.v2.async.PollResultBase", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "auth.AccessError": {"fq_name": "auth.AccessError", "java_class": "com.dropbox.core.v2.auth.AccessError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "auth.AuthError": {"fq_name": "auth.AuthError", "java_class": "com.dropbox.core.v2.auth.AuthError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "auth.InvalidAccountTypeError": {"fq_name": "auth.InvalidAccountTypeError", "java_class": "com.dropbox.core.v2.auth.InvalidAccountTypeError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "auth.PaperAccessError": {"fq_name": "auth.PaperAccessError", "java_class": "com.dropbox.core.v2.auth.PaperAccessError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "auth.RateLimitError": {"fq_name": "auth.RateLimitError", "java_class": "com.dropbox.core.v2.auth.RateLimitError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "auth.RateLimitReason": {"fq_name": "auth.RateLimitReason", "java_class": "com.dropbox.core.v2.auth.RateLimitReason", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "auth.TokenFromOAuth1Arg": {"fq_name": "auth.TokenFromOAuth1Arg", "java_class": "com.dropbox.core.v2.auth.TokenFromOAuth1Arg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "auth.TokenFromOAuth1Error": {"fq_name": "auth.TokenFromOAuth1Error", "java_class": "com.dropbox.core.v2.auth.TokenFromOAuth1Error", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "auth.TokenFromOAuth1Result": {"fq_name": "auth.TokenFromOAuth1Result", "java_class": "com.dropbox.core.v2.auth.TokenFromOAuth1Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "auth.TokenScopeError": {"fq_name": "auth.TokenScopeError", "java_class": "com.dropbox.core.v2.auth.TokenScopeError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "check.EchoArg": {"fq_name": "check.EchoArg", "java_class": "com.dropbox.core.v2.check.EchoArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "check.EchoResult": {"fq_name": "check.EchoResult", "java_class": "com.dropbox.core.v2.check.EchoResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "common.PathRoot": {"fq_name": "common.PathRoot", "java_class": "com.dropbox.core.v2.common.PathRoot", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "common.PathRootError": {"fq_name": "common.PathRootError", "java_class": "com.dropbox.core.v2.common.PathRootError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "common.RootInfo": {"fq_name": "common.RootInfo", "java_class": "com.dropbox.core.v2.common.RootInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "common.TeamRootInfo": {"fq_name": "common.TeamRootInfo", "java_class": "com.dropbox.core.v2.common.TeamRootInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "common.UserRootInfo": {"fq_name": "common.UserRootInfo", "java_class": "com.dropbox.core.v2.common.UserRootInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "contacts.DeleteManualContactsArg": {"fq_name": "contacts.DeleteManualContactsArg", "java_class": "com.dropbox.core.v2.contacts.DeleteManualContactsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "contacts.DeleteManualContactsError": {"fq_name": "contacts.DeleteManualContactsError", "java_class": "com.dropbox.core.v2.contacts.DeleteManualContactsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.AddPropertiesArg": {"fq_name": "file_properties.AddPropertiesArg", "java_class": "com.dropbox.core.v2.fileproperties.AddPropertiesArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.AddPropertiesError": {"fq_name": "file_properties.AddPropertiesError", "java_class": "com.dropbox.core.v2.fileproperties.AddPropertiesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.AddTemplateArg": {"fq_name": "file_properties.AddTemplateArg", "java_class": "com.dropbox.core.v2.fileproperties.AddTemplateArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.AddTemplateResult": {"fq_name": "file_properties.AddTemplateResult", "java_class": "com.dropbox.core.v2.fileproperties.AddTemplateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.GetTemplateArg": {"fq_name": "file_properties.GetTemplateArg", "java_class": "com.dropbox.core.v2.fileproperties.GetTemplateArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.GetTemplateResult": {"fq_name": "file_properties.GetTemplateResult", "java_class": "com.dropbox.core.v2.fileproperties.GetTemplateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.InvalidPropertyGroupError": {"fq_name": "file_properties.InvalidPropertyGroupError", "java_class": "com.dropbox.core.v2.fileproperties.InvalidPropertyGroupError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.ListTemplateResult": {"fq_name": "file_properties.ListTemplateResult", "java_class": "com.dropbox.core.v2.fileproperties.ListTemplateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.LogicalOperator": {"fq_name": "file_properties.LogicalOperator", "java_class": "com.dropbox.core.v2.fileproperties.LogicalOperator", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.LookUpPropertiesError": {"fq_name": "file_properties.LookUpPropertiesError", "java_class": "com.dropbox.core.v2.fileproperties.LookUpPropertiesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.LookupError": {"fq_name": "file_properties.LookupError", "java_class": "com.dropbox.core.v2.fileproperties.LookupError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.ModifyTemplateError": {"fq_name": "file_properties.ModifyTemplateError", "java_class": "com.dropbox.core.v2.fileproperties.ModifyTemplateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.OverwritePropertyGroupArg": {"fq_name": "file_properties.OverwritePropertyGroupArg", "java_class": "com.dropbox.core.v2.fileproperties.OverwritePropertyGroupArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.PropertiesError": {"fq_name": "file_properties.PropertiesError", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchArg": {"fq_name": "file_properties.PropertiesSearchArg", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchContinueArg": {"fq_name": "file_properties.PropertiesSearchContinueArg", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchContinueError": {"fq_name": "file_properties.PropertiesSearchContinueError", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchError": {"fq_name": "file_properties.PropertiesSearchError", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchMatch": {"fq_name": "file_properties.PropertiesSearchMatch", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchMatch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchMode": {"fq_name": "file_properties.PropertiesSearchMode", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchMode", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchQuery": {"fq_name": "file_properties.PropertiesSearchQuery", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchQuery", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertiesSearchResult": {"fq_name": "file_properties.PropertiesSearchResult", "java_class": "com.dropbox.core.v2.fileproperties.PropertiesSearchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertyField": {"fq_name": "file_properties.PropertyField", "java_class": "com.dropbox.core.v2.fileproperties.PropertyField", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertyFieldTemplate": {"fq_name": "file_properties.PropertyFieldTemplate", "java_class": "com.dropbox.core.v2.fileproperties.PropertyFieldTemplate", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertyGroup": {"fq_name": "file_properties.PropertyGroup", "java_class": "com.dropbox.core.v2.fileproperties.PropertyGroup", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.PropertyGroupTemplate": {"fq_name": "file_properties.PropertyGroupTemplate", "java_class": "com.dropbox.core.v2.fileproperties.PropertyGroupTemplate", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertyGroupUpdate": {"fq_name": "file_properties.PropertyGroupUpdate", "java_class": "com.dropbox.core.v2.fileproperties.PropertyGroupUpdate", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.fileproperties.PropertyGroupUpdate.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.PropertyType": {"fq_name": "file_properties.PropertyType", "java_class": "com.dropbox.core.v2.fileproperties.PropertyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.RemovePropertiesArg": {"fq_name": "file_properties.RemovePropertiesArg", "java_class": "com.dropbox.core.v2.fileproperties.RemovePropertiesArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.RemovePropertiesError": {"fq_name": "file_properties.RemovePropertiesError", "java_class": "com.dropbox.core.v2.fileproperties.RemovePropertiesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.RemoveTemplateArg": {"fq_name": "file_properties.RemoveTemplateArg", "java_class": "com.dropbox.core.v2.fileproperties.RemoveTemplateArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.TemplateError": {"fq_name": "file_properties.TemplateError", "java_class": "com.dropbox.core.v2.fileproperties.TemplateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.TemplateFilter": {"fq_name": "file_properties.TemplateFilter", "java_class": "com.dropbox.core.v2.fileproperties.TemplateFilter", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_properties.TemplateFilterBase": {"fq_name": "file_properties.TemplateFilterBase", "java_class": "com.dropbox.core.v2.fileproperties.TemplateFilterBase", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.TemplateOwnerType": {"fq_name": "file_properties.TemplateOwnerType", "java_class": "com.dropbox.core.v2.fileproperties.TemplateOwnerType", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "file_properties.UpdatePropertiesArg": {"fq_name": "file_properties.UpdatePropertiesArg", "java_class": "com.dropbox.core.v2.fileproperties.UpdatePropertiesArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.UpdatePropertiesError": {"fq_name": "file_properties.UpdatePropertiesError", "java_class": "com.dropbox.core.v2.fileproperties.UpdatePropertiesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.UpdateTemplateArg": {"fq_name": "file_properties.UpdateTemplateArg", "java_class": "com.dropbox.core.v2.fileproperties.UpdateTemplateArg", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.fileproperties.UpdateTemplateArg.Builder", "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_properties.UpdateTemplateResult": {"fq_name": "file_properties.UpdateTemplateResult", "java_class": "com.dropbox.core.v2.fileproperties.UpdateTemplateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "file_requests.CountFileRequestsError": {"fq_name": "file_requests.CountFileRequestsError", "java_class": "com.dropbox.core.v2.filerequests.CountFileRequestsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.CountFileRequestsResult": {"fq_name": "file_requests.CountFileRequestsResult", "java_class": "com.dropbox.core.v2.filerequests.CountFileRequestsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.CreateFileRequestArgs": {"fq_name": "file_requests.CreateFileRequestArgs", "java_class": "com.dropbox.core.v2.filerequests.CreateFileRequestArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.filerequests.CreateFileRequestArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.CreateFileRequestError": {"fq_name": "file_requests.CreateFileRequestError", "java_class": "com.dropbox.core.v2.filerequests.CreateFileRequestError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.DeleteAllClosedFileRequestsError": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError", "java_class": "com.dropbox.core.v2.filerequests.DeleteAllClosedFileRequestsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.DeleteAllClosedFileRequestsResult": {"fq_name": "file_requests.DeleteAllClosedFileRequestsResult", "java_class": "com.dropbox.core.v2.filerequests.DeleteAllClosedFileRequestsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.DeleteFileRequestArgs": {"fq_name": "file_requests.DeleteFileRequestArgs", "java_class": "com.dropbox.core.v2.filerequests.DeleteFileRequestArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.DeleteFileRequestError": {"fq_name": "file_requests.DeleteFileRequestError", "java_class": "com.dropbox.core.v2.filerequests.DeleteFileRequestError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.DeleteFileRequestsResult": {"fq_name": "file_requests.DeleteFileRequestsResult", "java_class": "com.dropbox.core.v2.filerequests.DeleteFileRequestsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.FileRequest": {"fq_name": "file_requests.FileRequest", "java_class": "com.dropbox.core.v2.filerequests.FileRequest", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.filerequests.FileRequest.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.FileRequestDeadline": {"fq_name": "file_requests.FileRequestDeadline", "java_class": "com.dropbox.core.v2.filerequests.FileRequestDeadline", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.FileRequestError": {"fq_name": "file_requests.FileRequestError", "java_class": "com.dropbox.core.v2.filerequests.FileRequestError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "file_requests.GeneralFileRequestsError": {"fq_name": "file_requests.GeneralFileRequestsError", "java_class": "com.dropbox.core.v2.filerequests.GeneralFileRequestsError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "file_requests.GetFileRequestArgs": {"fq_name": "file_requests.GetFileRequestArgs", "java_class": "com.dropbox.core.v2.filerequests.GetFileRequestArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.GetFileRequestError": {"fq_name": "file_requests.GetFileRequestError", "java_class": "com.dropbox.core.v2.filerequests.GetFileRequestError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.GracePeriod": {"fq_name": "file_requests.GracePeriod", "java_class": "com.dropbox.core.v2.filerequests.GracePeriod", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.ListFileRequestsArg": {"fq_name": "file_requests.ListFileRequestsArg", "java_class": "com.dropbox.core.v2.filerequests.ListFileRequestsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.ListFileRequestsContinueArg": {"fq_name": "file_requests.ListFileRequestsContinueArg", "java_class": "com.dropbox.core.v2.filerequests.ListFileRequestsContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.ListFileRequestsContinueError": {"fq_name": "file_requests.ListFileRequestsContinueError", "java_class": "com.dropbox.core.v2.filerequests.ListFileRequestsContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.ListFileRequestsError": {"fq_name": "file_requests.ListFileRequestsError", "java_class": "com.dropbox.core.v2.filerequests.ListFileRequestsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.ListFileRequestsResult": {"fq_name": "file_requests.ListFileRequestsResult", "java_class": "com.dropbox.core.v2.filerequests.ListFileRequestsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.ListFileRequestsV2Result": {"fq_name": "file_requests.ListFileRequestsV2Result", "java_class": "com.dropbox.core.v2.filerequests.ListFileRequestsV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.UpdateFileRequestArgs": {"fq_name": "file_requests.UpdateFileRequestArgs", "java_class": "com.dropbox.core.v2.filerequests.UpdateFileRequestArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.filerequests.UpdateFileRequestArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.UpdateFileRequestDeadline": {"fq_name": "file_requests.UpdateFileRequestDeadline", "java_class": "com.dropbox.core.v2.filerequests.UpdateFileRequestDeadline", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "file_requests.UpdateFileRequestError": {"fq_name": "file_requests.UpdateFileRequestError", "java_class": "com.dropbox.core.v2.filerequests.UpdateFileRequestError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.AddTagArg": {"fq_name": "files.AddTagArg", "java_class": "com.dropbox.core.v2.files.AddTagArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.AddTagError": {"fq_name": "files.AddTagError", "java_class": "com.dropbox.core.v2.files.AddTagError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.AlphaGetMetadataArg": {"fq_name": "files.AlphaGetMetadataArg", "java_class": "com.dropbox.core.v2.files.AlphaGetMetadataArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.AlphaGetMetadataArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.AlphaGetMetadataError": {"fq_name": "files.AlphaGetMetadataError", "java_class": "com.dropbox.core.v2.files.AlphaGetMetadataError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.BaseTagError": {"fq_name": "files.BaseTagError", "java_class": "com.dropbox.core.v2.files.BaseTagError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CommitInfo": {"fq_name": "files.CommitInfo", "java_class": "com.dropbox.core.v2.files.CommitInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.CommitInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ContentSyncSetting": {"fq_name": "files.ContentSyncSetting", "java_class": "com.dropbox.core.v2.files.ContentSyncSetting", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.ContentSyncSettingArg": {"fq_name": "files.ContentSyncSettingArg", "java_class": "com.dropbox.core.v2.files.ContentSyncSettingArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.CreateFolderArg": {"fq_name": "files.CreateFolderArg", "java_class": "com.dropbox.core.v2.files.CreateFolderArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderBatchArg": {"fq_name": "files.CreateFolderBatchArg", "java_class": "com.dropbox.core.v2.files.CreateFolderBatchArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.CreateFolderBatchArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderBatchError": {"fq_name": "files.CreateFolderBatchError", "java_class": "com.dropbox.core.v2.files.CreateFolderBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderBatchJobStatus": {"fq_name": "files.CreateFolderBatchJobStatus", "java_class": "com.dropbox.core.v2.files.CreateFolderBatchJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderBatchLaunch": {"fq_name": "files.CreateFolderBatchLaunch", "java_class": "com.dropbox.core.v2.files.CreateFolderBatchLaunch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderBatchResult": {"fq_name": "files.CreateFolderBatchResult", "java_class": "com.dropbox.core.v2.files.CreateFolderBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderBatchResultEntry": {"fq_name": "files.CreateFolderBatchResultEntry", "java_class": "com.dropbox.core.v2.files.CreateFolderBatchResultEntry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderEntryError": {"fq_name": "files.CreateFolderEntryError", "java_class": "com.dropbox.core.v2.files.CreateFolderEntryError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderEntryResult": {"fq_name": "files.CreateFolderEntryResult", "java_class": "com.dropbox.core.v2.files.CreateFolderEntryResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderError": {"fq_name": "files.CreateFolderError", "java_class": "com.dropbox.core.v2.files.CreateFolderError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.CreateFolderResult": {"fq_name": "files.CreateFolderResult", "java_class": "com.dropbox.core.v2.files.CreateFolderResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteArg": {"fq_name": "files.DeleteArg", "java_class": "com.dropbox.core.v2.files.DeleteArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteBatchArg": {"fq_name": "files.DeleteBatchArg", "java_class": "com.dropbox.core.v2.files.DeleteBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteBatchError": {"fq_name": "files.DeleteBatchError", "java_class": "com.dropbox.core.v2.files.DeleteBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteBatchJobStatus": {"fq_name": "files.DeleteBatchJobStatus", "java_class": "com.dropbox.core.v2.files.DeleteBatchJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteBatchLaunch": {"fq_name": "files.DeleteBatchLaunch", "java_class": "com.dropbox.core.v2.files.DeleteBatchLaunch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteBatchResult": {"fq_name": "files.DeleteBatchResult", "java_class": "com.dropbox.core.v2.files.DeleteBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteBatchResultData": {"fq_name": "files.DeleteBatchResultData", "java_class": "com.dropbox.core.v2.files.DeleteBatchResultData", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteBatchResultEntry": {"fq_name": "files.DeleteBatchResultEntry", "java_class": "com.dropbox.core.v2.files.DeleteBatchResultEntry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteError": {"fq_name": "files.DeleteError", "java_class": "com.dropbox.core.v2.files.DeleteError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeleteResult": {"fq_name": "files.DeleteResult", "java_class": "com.dropbox.core.v2.files.DeleteResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DeletedMetadata": {"fq_name": "files.DeletedMetadata", "java_class": "com.dropbox.core.v2.files.DeletedMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.DeletedMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.Dimensions": {"fq_name": "files.Dimensions", "java_class": "com.dropbox.core.v2.files.Dimensions", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DownloadArg": {"fq_name": "files.DownloadArg", "java_class": "com.dropbox.core.v2.files.DownloadArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DownloadError": {"fq_name": "files.DownloadError", "java_class": "com.dropbox.core.v2.files.DownloadError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DownloadZipArg": {"fq_name": "files.DownloadZipArg", "java_class": "com.dropbox.core.v2.files.DownloadZipArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DownloadZipError": {"fq_name": "files.DownloadZipError", "java_class": "com.dropbox.core.v2.files.DownloadZipError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.DownloadZipResult": {"fq_name": "files.DownloadZipResult", "java_class": "com.dropbox.core.v2.files.DownloadZipResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ExportArg": {"fq_name": "files.ExportArg", "java_class": "com.dropbox.core.v2.files.ExportArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.ExportError": {"fq_name": "files.ExportError", "java_class": "com.dropbox.core.v2.files.ExportError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.ExportInfo": {"fq_name": "files.ExportInfo", "java_class": "com.dropbox.core.v2.files.ExportInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.ExportInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ExportMetadata": {"fq_name": "files.ExportMetadata", "java_class": "com.dropbox.core.v2.files.ExportMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.ExportMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ExportResult": {"fq_name": "files.ExportResult", "java_class": "com.dropbox.core.v2.files.ExportResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.FileCategory": {"fq_name": "files.FileCategory", "java_class": "com.dropbox.core.v2.files.FileCategory", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FileLock": {"fq_name": "files.FileLock", "java_class": "com.dropbox.core.v2.files.FileLock", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FileLockContent": {"fq_name": "files.FileLockContent", "java_class": "com.dropbox.core.v2.files.FileLockContent", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FileLockMetadata": {"fq_name": "files.FileLockMetadata", "java_class": "com.dropbox.core.v2.files.FileLockMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.FileLockMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FileMetadata": {"fq_name": "files.FileMetadata", "java_class": "com.dropbox.core.v2.files.FileMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.FileMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FileOpsResult": {"fq_name": "files.FileOpsResult", "java_class": "com.dropbox.core.v2.files.FileOpsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "files.FileSharingInfo": {"fq_name": "files.FileSharingInfo", "java_class": "com.dropbox.core.v2.files.FileSharingInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FileStatus": {"fq_name": "files.FileStatus", "java_class": "com.dropbox.core.v2.files.FileStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FolderMetadata": {"fq_name": "files.FolderMetadata", "java_class": "com.dropbox.core.v2.files.FolderMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.FolderMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.FolderSharingInfo": {"fq_name": "files.FolderSharingInfo", "java_class": "com.dropbox.core.v2.files.FolderSharingInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.FolderSharingInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetCopyReferenceArg": {"fq_name": "files.GetCopyReferenceArg", "java_class": "com.dropbox.core.v2.files.GetCopyReferenceArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetCopyReferenceError": {"fq_name": "files.GetCopyReferenceError", "java_class": "com.dropbox.core.v2.files.GetCopyReferenceError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetCopyReferenceResult": {"fq_name": "files.GetCopyReferenceResult", "java_class": "com.dropbox.core.v2.files.GetCopyReferenceResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetMetadataArg": {"fq_name": "files.GetMetadataArg", "java_class": "com.dropbox.core.v2.files.GetMetadataArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.GetMetadataArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetMetadataError": {"fq_name": "files.GetMetadataError", "java_class": "com.dropbox.core.v2.files.GetMetadataError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetTagsArg": {"fq_name": "files.GetTagsArg", "java_class": "com.dropbox.core.v2.files.GetTagsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetTagsResult": {"fq_name": "files.GetTagsResult", "java_class": "com.dropbox.core.v2.files.GetTagsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetTemporaryLinkArg": {"fq_name": "files.GetTemporaryLinkArg", "java_class": "com.dropbox.core.v2.files.GetTemporaryLinkArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetTemporaryLinkError": {"fq_name": "files.GetTemporaryLinkError", "java_class": "com.dropbox.core.v2.files.GetTemporaryLinkError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetTemporaryLinkResult": {"fq_name": "files.GetTemporaryLinkResult", "java_class": "com.dropbox.core.v2.files.GetTemporaryLinkResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetTemporaryUploadLinkArg": {"fq_name": "files.GetTemporaryUploadLinkArg", "java_class": "com.dropbox.core.v2.files.GetTemporaryUploadLinkArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetTemporaryUploadLinkResult": {"fq_name": "files.GetTemporaryUploadLinkResult", "java_class": "com.dropbox.core.v2.files.GetTemporaryUploadLinkResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetThumbnailBatchArg": {"fq_name": "files.GetThumbnailBatchArg", "java_class": "com.dropbox.core.v2.files.GetThumbnailBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetThumbnailBatchError": {"fq_name": "files.GetThumbnailBatchError", "java_class": "com.dropbox.core.v2.files.GetThumbnailBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetThumbnailBatchResult": {"fq_name": "files.GetThumbnailBatchResult", "java_class": "com.dropbox.core.v2.files.GetThumbnailBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetThumbnailBatchResultData": {"fq_name": "files.GetThumbnailBatchResultData", "java_class": "com.dropbox.core.v2.files.GetThumbnailBatchResultData", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GetThumbnailBatchResultEntry": {"fq_name": "files.GetThumbnailBatchResultEntry", "java_class": "com.dropbox.core.v2.files.GetThumbnailBatchResultEntry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.GpsCoordinates": {"fq_name": "files.GpsCoordinates", "java_class": "com.dropbox.core.v2.files.GpsCoordinates", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.HighlightSpan": {"fq_name": "files.HighlightSpan", "java_class": "com.dropbox.core.v2.files.HighlightSpan", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ImportFormat": {"fq_name": "files.ImportFormat", "java_class": "com.dropbox.core.v2.files.ImportFormat", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderArg": {"fq_name": "files.ListFolderArg", "java_class": "com.dropbox.core.v2.files.ListFolderArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.ListFolderArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderContinueArg": {"fq_name": "files.ListFolderContinueArg", "java_class": "com.dropbox.core.v2.files.ListFolderContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderContinueError": {"fq_name": "files.ListFolderContinueError", "java_class": "com.dropbox.core.v2.files.ListFolderContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderError": {"fq_name": "files.ListFolderError", "java_class": "com.dropbox.core.v2.files.ListFolderError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderGetLatestCursorResult": {"fq_name": "files.ListFolderGetLatestCursorResult", "java_class": "com.dropbox.core.v2.files.ListFolderGetLatestCursorResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderLongpollArg": {"fq_name": "files.ListFolderLongpollArg", "java_class": "com.dropbox.core.v2.files.ListFolderLongpollArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderLongpollError": {"fq_name": "files.ListFolderLongpollError", "java_class": "com.dropbox.core.v2.files.ListFolderLongpollError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderLongpollResult": {"fq_name": "files.ListFolderLongpollResult", "java_class": "com.dropbox.core.v2.files.ListFolderLongpollResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListFolderResult": {"fq_name": "files.ListFolderResult", "java_class": "com.dropbox.core.v2.files.ListFolderResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListRevisionsArg": {"fq_name": "files.ListRevisionsArg", "java_class": "com.dropbox.core.v2.files.ListRevisionsArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.ListRevisionsArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListRevisionsError": {"fq_name": "files.ListRevisionsError", "java_class": "com.dropbox.core.v2.files.ListRevisionsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListRevisionsMode": {"fq_name": "files.ListRevisionsMode", "java_class": "com.dropbox.core.v2.files.ListRevisionsMode", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ListRevisionsResult": {"fq_name": "files.ListRevisionsResult", "java_class": "com.dropbox.core.v2.files.ListRevisionsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LockConflictError": {"fq_name": "files.LockConflictError", "java_class": "com.dropbox.core.v2.files.LockConflictError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LockFileArg": {"fq_name": "files.LockFileArg", "java_class": "com.dropbox.core.v2.files.LockFileArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LockFileBatchArg": {"fq_name": "files.LockFileBatchArg", "java_class": "com.dropbox.core.v2.files.LockFileBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LockFileBatchResult": {"fq_name": "files.LockFileBatchResult", "java_class": "com.dropbox.core.v2.files.LockFileBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LockFileError": {"fq_name": "files.LockFileError", "java_class": "com.dropbox.core.v2.files.LockFileError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LockFileResult": {"fq_name": "files.LockFileResult", "java_class": "com.dropbox.core.v2.files.LockFileResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LockFileResultEntry": {"fq_name": "files.LockFileResultEntry", "java_class": "com.dropbox.core.v2.files.LockFileResultEntry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.LookupError": {"fq_name": "files.LookupError", "java_class": "com.dropbox.core.v2.files.LookupError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.MediaInfo": {"fq_name": "files.MediaInfo", "java_class": "com.dropbox.core.v2.files.MediaInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.MediaMetadata": {"fq_name": "files.MediaMetadata", "java_class": "com.dropbox.core.v2.files.MediaMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.MediaMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.Metadata": {"fq_name": "files.Metadata", "java_class": "com.dropbox.core.v2.files.Metadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.Metadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.MetadataV2": {"fq_name": "files.MetadataV2", "java_class": "com.dropbox.core.v2.files.MetadataV2", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.MinimalFileLinkMetadata": {"fq_name": "files.MinimalFileLinkMetadata", "java_class": "com.dropbox.core.v2.files.MinimalFileLinkMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.MinimalFileLinkMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.MoveBatchArg": {"fq_name": "files.MoveBatchArg", "java_class": "com.dropbox.core.v2.files.MoveBatchArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.MoveBatchArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.MoveIntoFamilyError": {"fq_name": "files.MoveIntoFamilyError", "java_class": "com.dropbox.core.v2.files.MoveIntoFamilyError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.MoveIntoVaultError": {"fq_name": "files.MoveIntoVaultError", "java_class": "com.dropbox.core.v2.files.MoveIntoVaultError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PaperContentError": {"fq_name": "files.PaperContentError", "java_class": "com.dropbox.core.v2.files.PaperContentError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "files.PaperCreateArg": {"fq_name": "files.PaperCreateArg", "java_class": "com.dropbox.core.v2.files.PaperCreateArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PaperCreateError": {"fq_name": "files.PaperCreateError", "java_class": "com.dropbox.core.v2.files.PaperCreateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PaperCreateResult": {"fq_name": "files.PaperCreateResult", "java_class": "com.dropbox.core.v2.files.PaperCreateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PaperDocUpdatePolicy": {"fq_name": "files.PaperDocUpdatePolicy", "java_class": "com.dropbox.core.v2.files.PaperDocUpdatePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PaperUpdateArg": {"fq_name": "files.PaperUpdateArg", "java_class": "com.dropbox.core.v2.files.PaperUpdateArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PaperUpdateError": {"fq_name": "files.PaperUpdateError", "java_class": "com.dropbox.core.v2.files.PaperUpdateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PaperUpdateResult": {"fq_name": "files.PaperUpdateResult", "java_class": "com.dropbox.core.v2.files.PaperUpdateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PathOrLink": {"fq_name": "files.PathOrLink", "java_class": "com.dropbox.core.v2.files.PathOrLink", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PathToTags": {"fq_name": "files.PathToTags", "java_class": "com.dropbox.core.v2.files.PathToTags", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PhotoMetadata": {"fq_name": "files.PhotoMetadata", "java_class": "com.dropbox.core.v2.files.PhotoMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.PhotoMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PreviewArg": {"fq_name": "files.PreviewArg", "java_class": "com.dropbox.core.v2.files.PreviewArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PreviewError": {"fq_name": "files.PreviewError", "java_class": "com.dropbox.core.v2.files.PreviewError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.PreviewResult": {"fq_name": "files.PreviewResult", "java_class": "com.dropbox.core.v2.files.PreviewResult", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.PreviewResult.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationArg": {"fq_name": "files.RelocationArg", "java_class": "com.dropbox.core.v2.files.RelocationArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.RelocationArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchArg": {"fq_name": "files.RelocationBatchArg", "java_class": "com.dropbox.core.v2.files.RelocationBatchArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.RelocationBatchArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchArgBase": {"fq_name": "files.RelocationBatchArgBase", "java_class": "com.dropbox.core.v2.files.RelocationBatchArgBase", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchError": {"fq_name": "files.RelocationBatchError", "java_class": "com.dropbox.core.v2.files.RelocationBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchErrorEntry": {"fq_name": "files.RelocationBatchErrorEntry", "java_class": "com.dropbox.core.v2.files.RelocationBatchErrorEntry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchJobStatus": {"fq_name": "files.RelocationBatchJobStatus", "java_class": "com.dropbox.core.v2.files.RelocationBatchJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchLaunch": {"fq_name": "files.RelocationBatchLaunch", "java_class": "com.dropbox.core.v2.files.RelocationBatchLaunch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchResult": {"fq_name": "files.RelocationBatchResult", "java_class": "com.dropbox.core.v2.files.RelocationBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchResultData": {"fq_name": "files.RelocationBatchResultData", "java_class": "com.dropbox.core.v2.files.RelocationBatchResultData", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchResultEntry": {"fq_name": "files.RelocationBatchResultEntry", "java_class": "com.dropbox.core.v2.files.RelocationBatchResultEntry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchV2JobStatus": {"fq_name": "files.RelocationBatchV2JobStatus", "java_class": "com.dropbox.core.v2.files.RelocationBatchV2JobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchV2Launch": {"fq_name": "files.RelocationBatchV2Launch", "java_class": "com.dropbox.core.v2.files.RelocationBatchV2Launch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationBatchV2Result": {"fq_name": "files.RelocationBatchV2Result", "java_class": "com.dropbox.core.v2.files.RelocationBatchV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationError": {"fq_name": "files.RelocationError", "java_class": "com.dropbox.core.v2.files.RelocationError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationPath": {"fq_name": "files.RelocationPath", "java_class": "com.dropbox.core.v2.files.RelocationPath", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RelocationResult": {"fq_name": "files.RelocationResult", "java_class": "com.dropbox.core.v2.files.RelocationResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RemoveTagArg": {"fq_name": "files.RemoveTagArg", "java_class": "com.dropbox.core.v2.files.RemoveTagArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RemoveTagError": {"fq_name": "files.RemoveTagError", "java_class": "com.dropbox.core.v2.files.RemoveTagError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RestoreArg": {"fq_name": "files.RestoreArg", "java_class": "com.dropbox.core.v2.files.RestoreArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.RestoreError": {"fq_name": "files.RestoreError", "java_class": "com.dropbox.core.v2.files.RestoreError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SaveCopyReferenceArg": {"fq_name": "files.SaveCopyReferenceArg", "java_class": "com.dropbox.core.v2.files.SaveCopyReferenceArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SaveCopyReferenceError": {"fq_name": "files.SaveCopyReferenceError", "java_class": "com.dropbox.core.v2.files.SaveCopyReferenceError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SaveCopyReferenceResult": {"fq_name": "files.SaveCopyReferenceResult", "java_class": "com.dropbox.core.v2.files.SaveCopyReferenceResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SaveUrlArg": {"fq_name": "files.SaveUrlArg", "java_class": "com.dropbox.core.v2.files.SaveUrlArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SaveUrlError": {"fq_name": "files.SaveUrlError", "java_class": "com.dropbox.core.v2.files.SaveUrlError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SaveUrlJobStatus": {"fq_name": "files.SaveUrlJobStatus", "java_class": "com.dropbox.core.v2.files.SaveUrlJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SaveUrlResult": {"fq_name": "files.SaveUrlResult", "java_class": "com.dropbox.core.v2.files.SaveUrlResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchArg": {"fq_name": "files.SearchArg", "java_class": "com.dropbox.core.v2.files.SearchArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.SearchArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchError": {"fq_name": "files.SearchError", "java_class": "com.dropbox.core.v2.files.SearchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchMatch": {"fq_name": "files.SearchMatch", "java_class": "com.dropbox.core.v2.files.SearchMatch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchMatchFieldOptions": {"fq_name": "files.SearchMatchFieldOptions", "java_class": "com.dropbox.core.v2.files.SearchMatchFieldOptions", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchMatchType": {"fq_name": "files.SearchMatchType", "java_class": "com.dropbox.core.v2.files.SearchMatchType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchMatchTypeV2": {"fq_name": "files.SearchMatchTypeV2", "java_class": "com.dropbox.core.v2.files.SearchMatchTypeV2", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchMatchV2": {"fq_name": "files.SearchMatchV2", "java_class": "com.dropbox.core.v2.files.SearchMatchV2", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.SearchMatchV2.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchMode": {"fq_name": "files.SearchMode", "java_class": "com.dropbox.core.v2.files.SearchMode", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchOptions": {"fq_name": "files.SearchOptions", "java_class": "com.dropbox.core.v2.files.SearchOptions", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.SearchOptions.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchOrderBy": {"fq_name": "files.SearchOrderBy", "java_class": "com.dropbox.core.v2.files.SearchOrderBy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchResult": {"fq_name": "files.SearchResult", "java_class": "com.dropbox.core.v2.files.SearchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchV2Arg": {"fq_name": "files.SearchV2Arg", "java_class": "com.dropbox.core.v2.files.SearchV2Arg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.SearchV2Arg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchV2ContinueArg": {"fq_name": "files.SearchV2ContinueArg", "java_class": "com.dropbox.core.v2.files.SearchV2ContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SearchV2Result": {"fq_name": "files.SearchV2Result", "java_class": "com.dropbox.core.v2.files.SearchV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SharedLink": {"fq_name": "files.SharedLink", "java_class": "com.dropbox.core.v2.files.SharedLink", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SharedLinkFileInfo": {"fq_name": "files.SharedLinkFileInfo", "java_class": "com.dropbox.core.v2.files.SharedLinkFileInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.SharedLinkFileInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SharingInfo": {"fq_name": "files.SharingInfo", "java_class": "com.dropbox.core.v2.files.SharingInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "files.SingleUserLock": {"fq_name": "files.SingleUserLock", "java_class": "com.dropbox.core.v2.files.SingleUserLock", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SymlinkInfo": {"fq_name": "files.SymlinkInfo", "java_class": "com.dropbox.core.v2.files.SymlinkInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.SyncSetting": {"fq_name": "files.SyncSetting", "java_class": "com.dropbox.core.v2.files.SyncSetting", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.SyncSettingArg": {"fq_name": "files.SyncSettingArg", "java_class": "com.dropbox.core.v2.files.SyncSettingArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.SyncSettingsError": {"fq_name": "files.SyncSettingsError", "java_class": "com.dropbox.core.v2.files.SyncSettingsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "files.Tag": {"fq_name": "files.Tag", "java_class": "com.dropbox.core.v2.files.TagObject", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ThumbnailArg": {"fq_name": "files.ThumbnailArg", "java_class": "com.dropbox.core.v2.files.ThumbnailArg", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.ThumbnailArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ThumbnailError": {"fq_name": "files.ThumbnailError", "java_class": "com.dropbox.core.v2.files.ThumbnailError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ThumbnailFormat": {"fq_name": "files.ThumbnailFormat", "java_class": "com.dropbox.core.v2.files.ThumbnailFormat", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ThumbnailMode": {"fq_name": "files.ThumbnailMode", "java_class": "com.dropbox.core.v2.files.ThumbnailMode", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ThumbnailSize": {"fq_name": "files.ThumbnailSize", "java_class": "com.dropbox.core.v2.files.ThumbnailSize", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ThumbnailV2Arg": {"fq_name": "files.ThumbnailV2Arg", "java_class": "com.dropbox.core.v2.files.ThumbnailV2Arg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.ThumbnailV2Arg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.ThumbnailV2Error": {"fq_name": "files.ThumbnailV2Error", "java_class": "com.dropbox.core.v2.files.ThumbnailV2Error", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UnlockFileArg": {"fq_name": "files.UnlockFileArg", "java_class": "com.dropbox.core.v2.files.UnlockFileArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UnlockFileBatchArg": {"fq_name": "files.UnlockFileBatchArg", "java_class": "com.dropbox.core.v2.files.UnlockFileBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadArg": {"fq_name": "files.UploadArg", "java_class": "com.dropbox.core.v2.files.UploadArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.UploadArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadError": {"fq_name": "files.UploadError", "java_class": "com.dropbox.core.v2.files.UploadError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionAppendArg": {"fq_name": "files.UploadSessionAppendArg", "java_class": "com.dropbox.core.v2.files.UploadSessionAppendArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.UploadSessionAppendArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionAppendError": {"fq_name": "files.UploadSessionAppendError", "java_class": "com.dropbox.core.v2.files.UploadSessionAppendError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionCursor": {"fq_name": "files.UploadSessionCursor", "java_class": "com.dropbox.core.v2.files.UploadSessionCursor", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionFinishArg": {"fq_name": "files.UploadSessionFinishArg", "java_class": "com.dropbox.core.v2.files.UploadSessionFinishArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionFinishBatchArg": {"fq_name": "files.UploadSessionFinishBatchArg", "java_class": "com.dropbox.core.v2.files.UploadSessionFinishBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionFinishBatchJobStatus": {"fq_name": "files.UploadSessionFinishBatchJobStatus", "java_class": "com.dropbox.core.v2.files.UploadSessionFinishBatchJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionFinishBatchLaunch": {"fq_name": "files.UploadSessionFinishBatchLaunch", "java_class": "com.dropbox.core.v2.files.UploadSessionFinishBatchLaunch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionFinishBatchResult": {"fq_name": "files.UploadSessionFinishBatchResult", "java_class": "com.dropbox.core.v2.files.UploadSessionFinishBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionFinishBatchResultEntry": {"fq_name": "files.UploadSessionFinishBatchResultEntry", "java_class": "com.dropbox.core.v2.files.UploadSessionFinishBatchResultEntry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionFinishError": {"fq_name": "files.UploadSessionFinishError", "java_class": "com.dropbox.core.v2.files.UploadSessionFinishError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionLookupError": {"fq_name": "files.UploadSessionLookupError", "java_class": "com.dropbox.core.v2.files.UploadSessionLookupError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionOffsetError": {"fq_name": "files.UploadSessionOffsetError", "java_class": "com.dropbox.core.v2.files.UploadSessionOffsetError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionStartArg": {"fq_name": "files.UploadSessionStartArg", "java_class": "com.dropbox.core.v2.files.UploadSessionStartArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.UploadSessionStartArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionStartBatchArg": {"fq_name": "files.UploadSessionStartBatchArg", "java_class": "com.dropbox.core.v2.files.UploadSessionStartBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionStartBatchResult": {"fq_name": "files.UploadSessionStartBatchResult", "java_class": "com.dropbox.core.v2.files.UploadSessionStartBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionStartError": {"fq_name": "files.UploadSessionStartError", "java_class": "com.dropbox.core.v2.files.UploadSessionStartError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionStartResult": {"fq_name": "files.UploadSessionStartResult", "java_class": "com.dropbox.core.v2.files.UploadSessionStartResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadSessionType": {"fq_name": "files.UploadSessionType", "java_class": "com.dropbox.core.v2.files.UploadSessionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UploadWriteFailed": {"fq_name": "files.UploadWriteFailed", "java_class": "com.dropbox.core.v2.files.UploadWriteFailed", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.UserGeneratedTag": {"fq_name": "files.UserGeneratedTag", "java_class": "com.dropbox.core.v2.files.UserGeneratedTag", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.VideoMetadata": {"fq_name": "files.VideoMetadata", "java_class": "com.dropbox.core.v2.files.VideoMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.files.VideoMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.WriteConflictError": {"fq_name": "files.WriteConflictError", "java_class": "com.dropbox.core.v2.files.WriteConflictError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.WriteError": {"fq_name": "files.WriteError", "java_class": "com.dropbox.core.v2.files.WriteError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "files.WriteMode": {"fq_name": "files.WriteMode", "java_class": "com.dropbox.core.v2.files.WriteMode", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "openid.OpenIdError": {"fq_name": "openid.OpenIdError", "java_class": "com.dropbox.core.v2.openid.OpenIdError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "openid.UserInfoArgs": {"fq_name": "openid.UserInfoArgs", "java_class": "com.dropbox.core.v2.openid.UserInfoArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "openid.UserInfoError": {"fq_name": "openid.UserInfoError", "java_class": "com.dropbox.core.v2.openid.UserInfoError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "openid.UserInfoResult": {"fq_name": "openid.UserInfoResult", "java_class": "com.dropbox.core.v2.openid.UserInfoResult", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.openid.UserInfoResult.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.AddMember": {"fq_name": "paper.AddMember", "java_class": "com.dropbox.core.v2.paper.AddMember", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.AddPaperDocUser": {"fq_name": "paper.AddPaperDocUser", "java_class": "com.dropbox.core.v2.paper.AddPaperDocUser", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.paper.AddPaperDocUser.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.AddPaperDocUserMemberResult": {"fq_name": "paper.AddPaperDocUserMemberResult", "java_class": "com.dropbox.core.v2.paper.AddPaperDocUserMemberResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.AddPaperDocUserResult": {"fq_name": "paper.AddPaperDocUserResult", "java_class": "com.dropbox.core.v2.paper.AddPaperDocUserResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.Cursor": {"fq_name": "paper.Cursor", "java_class": "com.dropbox.core.v2.paper.Cursor", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.DocLookupError": {"fq_name": "paper.DocLookupError", "java_class": "com.dropbox.core.v2.paper.DocLookupError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.DocSubscriptionLevel": {"fq_name": "paper.DocSubscriptionLevel", "java_class": "com.dropbox.core.v2.paper.DocSubscriptionLevel", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "paper.ExportFormat": {"fq_name": "paper.ExportFormat", "java_class": "com.dropbox.core.v2.paper.ExportFormat", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.Folder": {"fq_name": "paper.Folder", "java_class": "com.dropbox.core.v2.paper.Folder", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.FolderSharingPolicyType": {"fq_name": "paper.FolderSharingPolicyType", "java_class": "com.dropbox.core.v2.paper.FolderSharingPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.FolderSubscriptionLevel": {"fq_name": "paper.FolderSubscriptionLevel", "java_class": "com.dropbox.core.v2.paper.FolderSubscriptionLevel", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "paper.FoldersContainingPaperDoc": {"fq_name": "paper.FoldersContainingPaperDoc", "java_class": "com.dropbox.core.v2.paper.FoldersContainingPaperDoc", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.paper.FoldersContainingPaperDoc.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ImportFormat": {"fq_name": "paper.ImportFormat", "java_class": "com.dropbox.core.v2.paper.ImportFormat", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.InviteeInfoWithPermissionLevel": {"fq_name": "paper.InviteeInfoWithPermissionLevel", "java_class": "com.dropbox.core.v2.paper.InviteeInfoWithPermissionLevel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListDocsCursorError": {"fq_name": "paper.ListDocsCursorError", "java_class": "com.dropbox.core.v2.paper.ListDocsCursorError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListPaperDocsArgs": {"fq_name": "paper.ListPaperDocsArgs", "java_class": "com.dropbox.core.v2.paper.ListPaperDocsArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.paper.ListPaperDocsArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListPaperDocsContinueArgs": {"fq_name": "paper.ListPaperDocsContinueArgs", "java_class": "com.dropbox.core.v2.paper.ListPaperDocsContinueArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListPaperDocsFilterBy": {"fq_name": "paper.ListPaperDocsFilterBy", "java_class": "com.dropbox.core.v2.paper.ListPaperDocsFilterBy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListPaperDocsResponse": {"fq_name": "paper.ListPaperDocsResponse", "java_class": "com.dropbox.core.v2.paper.ListPaperDocsResponse", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListPaperDocsSortBy": {"fq_name": "paper.ListPaperDocsSortBy", "java_class": "com.dropbox.core.v2.paper.ListPaperDocsSortBy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListPaperDocsSortOrder": {"fq_name": "paper.ListPaperDocsSortOrder", "java_class": "com.dropbox.core.v2.paper.ListPaperDocsSortOrder", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListUsersCursorError": {"fq_name": "paper.ListUsersCursorError", "java_class": "com.dropbox.core.v2.paper.ListUsersCursorError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListUsersOnFolderArgs": {"fq_name": "paper.ListUsersOnFolderArgs", "java_class": "com.dropbox.core.v2.paper.ListUsersOnFolderArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListUsersOnFolderContinueArgs": {"fq_name": "paper.ListUsersOnFolderContinueArgs", "java_class": "com.dropbox.core.v2.paper.ListUsersOnFolderContinueArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListUsersOnFolderResponse": {"fq_name": "paper.ListUsersOnFolderResponse", "java_class": "com.dropbox.core.v2.paper.ListUsersOnFolderResponse", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListUsersOnPaperDocArgs": {"fq_name": "paper.ListUsersOnPaperDocArgs", "java_class": "com.dropbox.core.v2.paper.ListUsersOnPaperDocArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.paper.ListUsersOnPaperDocArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListUsersOnPaperDocContinueArgs": {"fq_name": "paper.ListUsersOnPaperDocContinueArgs", "java_class": "com.dropbox.core.v2.paper.ListUsersOnPaperDocContinueArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.ListUsersOnPaperDocResponse": {"fq_name": "paper.ListUsersOnPaperDocResponse", "java_class": "com.dropbox.core.v2.paper.ListUsersOnPaperDocResponse", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperApiBaseError": {"fq_name": "paper.PaperApiBaseError", "java_class": "com.dropbox.core.v2.paper.PaperApiBaseError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "paper.PaperApiCursorError": {"fq_name": "paper.PaperApiCursorError", "java_class": "com.dropbox.core.v2.paper.PaperApiCursorError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocCreateArgs": {"fq_name": "paper.PaperDocCreateArgs", "java_class": "com.dropbox.core.v2.paper.PaperDocCreateArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocCreateError": {"fq_name": "paper.PaperDocCreateError", "java_class": "com.dropbox.core.v2.paper.PaperDocCreateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocCreateUpdateResult": {"fq_name": "paper.PaperDocCreateUpdateResult", "java_class": "com.dropbox.core.v2.paper.PaperDocCreateUpdateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocExport": {"fq_name": "paper.PaperDocExport", "java_class": "com.dropbox.core.v2.paper.PaperDocExport", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocExportResult": {"fq_name": "paper.PaperDocExportResult", "java_class": "com.dropbox.core.v2.paper.PaperDocExportResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocPermissionLevel": {"fq_name": "paper.PaperDocPermissionLevel", "java_class": "com.dropbox.core.v2.paper.PaperDocPermissionLevel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocSharingPolicy": {"fq_name": "paper.PaperDocSharingPolicy", "java_class": "com.dropbox.core.v2.paper.PaperDocSharingPolicy", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocUpdateArgs": {"fq_name": "paper.PaperDocUpdateArgs", "java_class": "com.dropbox.core.v2.paper.PaperDocUpdateArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocUpdateError": {"fq_name": "paper.PaperDocUpdateError", "java_class": "com.dropbox.core.v2.paper.PaperDocUpdateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperDocUpdatePolicy": {"fq_name": "paper.PaperDocUpdatePolicy", "java_class": "com.dropbox.core.v2.paper.PaperDocUpdatePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperFolderCreateArg": {"fq_name": "paper.PaperFolderCreateArg", "java_class": "com.dropbox.core.v2.paper.PaperFolderCreateArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.paper.PaperFolderCreateArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperFolderCreateError": {"fq_name": "paper.PaperFolderCreateError", "java_class": "com.dropbox.core.v2.paper.PaperFolderCreateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.PaperFolderCreateResult": {"fq_name": "paper.PaperFolderCreateResult", "java_class": "com.dropbox.core.v2.paper.PaperFolderCreateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.RefPaperDoc": {"fq_name": "paper.RefPaperDoc", "java_class": "com.dropbox.core.v2.paper.RefPaperDoc", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.RemovePaperDocUser": {"fq_name": "paper.RemovePaperDocUser", "java_class": "com.dropbox.core.v2.paper.RemovePaperDocUser", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.SharingPolicy": {"fq_name": "paper.SharingPolicy", "java_class": "com.dropbox.core.v2.paper.SharingPolicy", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.paper.SharingPolicy.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.SharingPublicPolicyType": {"fq_name": "paper.SharingPublicPolicyType", "java_class": "com.dropbox.core.v2.paper.SharingPublicPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.SharingTeamPolicyType": {"fq_name": "paper.SharingTeamPolicyType", "java_class": "com.dropbox.core.v2.paper.SharingTeamPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.UserInfoWithPermissionLevel": {"fq_name": "paper.UserInfoWithPermissionLevel", "java_class": "com.dropbox.core.v2.paper.UserInfoWithPermissionLevel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "paper.UserOnPaperDocFilter": {"fq_name": "paper.UserOnPaperDocFilter", "java_class": "com.dropbox.core.v2.paper.UserOnPaperDocFilter", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "secondary_emails.SecondaryEmail": {"fq_name": "secondary_emails.SecondaryEmail", "java_class": "com.dropbox.core.v2.secondaryemails.SecondaryEmail", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "seen_state.PlatformType": {"fq_name": "seen_state.PlatformType", "java_class": "com.dropbox.core.v2.seenstate.PlatformType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.AccessInheritance": {"fq_name": "sharing.AccessInheritance", "java_class": "com.dropbox.core.v2.sharing.AccessInheritance", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AccessLevel": {"fq_name": "sharing.AccessLevel", "java_class": "com.dropbox.core.v2.sharing.AccessLevel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.AclUpdatePolicy": {"fq_name": "sharing.AclUpdatePolicy", "java_class": "com.dropbox.core.v2.sharing.AclUpdatePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.AddFileMemberArgs": {"fq_name": "sharing.AddFileMemberArgs", "java_class": "com.dropbox.core.v2.sharing.AddFileMemberArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.AddFileMemberArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AddFileMemberError": {"fq_name": "sharing.AddFileMemberError", "java_class": "com.dropbox.core.v2.sharing.AddFileMemberError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AddFolderMemberArg": {"fq_name": "sharing.AddFolderMemberArg", "java_class": "com.dropbox.core.v2.sharing.AddFolderMemberArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.AddFolderMemberArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AddFolderMemberError": {"fq_name": "sharing.AddFolderMemberError", "java_class": "com.dropbox.core.v2.sharing.AddFolderMemberError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AddMember": {"fq_name": "sharing.AddMember", "java_class": "com.dropbox.core.v2.sharing.AddMember", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AddMemberSelectorError": {"fq_name": "sharing.AddMemberSelectorError", "java_class": "com.dropbox.core.v2.sharing.AddMemberSelectorError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AlphaResolvedVisibility": {"fq_name": "sharing.AlphaResolvedVisibility", "java_class": "com.dropbox.core.v2.sharing.AlphaResolvedVisibility", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AudienceExceptionContentInfo": {"fq_name": "sharing.AudienceExceptionContentInfo", "java_class": "com.dropbox.core.v2.sharing.AudienceExceptionContentInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AudienceExceptions": {"fq_name": "sharing.AudienceExceptions", "java_class": "com.dropbox.core.v2.sharing.AudienceExceptions", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.AudienceRestrictingSharedFolder": {"fq_name": "sharing.AudienceRestrictingSharedFolder", "java_class": "com.dropbox.core.v2.sharing.AudienceRestrictingSharedFolder", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.CollectionLinkMetadata": {"fq_name": "sharing.CollectionLinkMetadata", "java_class": "com.dropbox.core.v2.sharing.CollectionLinkMetadata", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.CreateSharedLinkArg": {"fq_name": "sharing.CreateSharedLinkArg", "java_class": "com.dropbox.core.v2.sharing.CreateSharedLinkArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.CreateSharedLinkArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.CreateSharedLinkError": {"fq_name": "sharing.CreateSharedLinkError", "java_class": "com.dropbox.core.v2.sharing.CreateSharedLinkError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.CreateSharedLinkWithSettingsArg": {"fq_name": "sharing.CreateSharedLinkWithSettingsArg", "java_class": "com.dropbox.core.v2.sharing.CreateSharedLinkWithSettingsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.CreateSharedLinkWithSettingsError": {"fq_name": "sharing.CreateSharedLinkWithSettingsError", "java_class": "com.dropbox.core.v2.sharing.CreateSharedLinkWithSettingsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ExpectedSharedContentLinkMetadata": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata", "java_class": "com.dropbox.core.v2.sharing.ExpectedSharedContentLinkMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ExpectedSharedContentLinkMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FileAction": {"fq_name": "sharing.FileAction", "java_class": "com.dropbox.core.v2.sharing.FileAction", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FileErrorResult": {"fq_name": "sharing.FileErrorResult", "java_class": "com.dropbox.core.v2.sharing.FileErrorResult", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "sharing.FileLinkMetadata": {"fq_name": "sharing.FileLinkMetadata", "java_class": "com.dropbox.core.v2.sharing.FileLinkMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.FileLinkMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FileMemberActionError": {"fq_name": "sharing.FileMemberActionError", "java_class": "com.dropbox.core.v2.sharing.FileMemberActionError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FileMemberActionIndividualResult": {"fq_name": "sharing.FileMemberActionIndividualResult", "java_class": "com.dropbox.core.v2.sharing.FileMemberActionIndividualResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FileMemberActionResult": {"fq_name": "sharing.FileMemberActionResult", "java_class": "com.dropbox.core.v2.sharing.FileMemberActionResult", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.FileMemberActionResult.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FileMemberRemoveActionResult": {"fq_name": "sharing.FileMemberRemoveActionResult", "java_class": "com.dropbox.core.v2.sharing.FileMemberRemoveActionResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FilePermission": {"fq_name": "sharing.FilePermission", "java_class": "com.dropbox.core.v2.sharing.FilePermission", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FolderAction": {"fq_name": "sharing.FolderAction", "java_class": "com.dropbox.core.v2.sharing.FolderAction", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FolderLinkMetadata": {"fq_name": "sharing.FolderLinkMetadata", "java_class": "com.dropbox.core.v2.sharing.FolderLinkMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.FolderLinkMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FolderPermission": {"fq_name": "sharing.FolderPermission", "java_class": "com.dropbox.core.v2.sharing.FolderPermission", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.FolderPolicy": {"fq_name": "sharing.FolderPolicy", "java_class": "com.dropbox.core.v2.sharing.FolderPolicy", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.FolderPolicy.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetFileMetadataArg": {"fq_name": "sharing.GetFileMetadataArg", "java_class": "com.dropbox.core.v2.sharing.GetFileMetadataArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetFileMetadataBatchArg": {"fq_name": "sharing.GetFileMetadataBatchArg", "java_class": "com.dropbox.core.v2.sharing.GetFileMetadataBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetFileMetadataBatchResult": {"fq_name": "sharing.GetFileMetadataBatchResult", "java_class": "com.dropbox.core.v2.sharing.GetFileMetadataBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetFileMetadataError": {"fq_name": "sharing.GetFileMetadataError", "java_class": "com.dropbox.core.v2.sharing.GetFileMetadataError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetFileMetadataIndividualResult": {"fq_name": "sharing.GetFileMetadataIndividualResult", "java_class": "com.dropbox.core.v2.sharing.GetFileMetadataIndividualResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetMetadataArgs": {"fq_name": "sharing.GetMetadataArgs", "java_class": "com.dropbox.core.v2.sharing.GetMetadataArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetSharedLinkFileError": {"fq_name": "sharing.GetSharedLinkFileError", "java_class": "com.dropbox.core.v2.sharing.GetSharedLinkFileError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetSharedLinkMetadataArg": {"fq_name": "sharing.GetSharedLinkMetadataArg", "java_class": "com.dropbox.core.v2.sharing.GetSharedLinkMetadataArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.GetSharedLinkMetadataArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetSharedLinksArg": {"fq_name": "sharing.GetSharedLinksArg", "java_class": "com.dropbox.core.v2.sharing.GetSharedLinksArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetSharedLinksError": {"fq_name": "sharing.GetSharedLinksError", "java_class": "com.dropbox.core.v2.sharing.GetSharedLinksError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GetSharedLinksResult": {"fq_name": "sharing.GetSharedLinksResult", "java_class": "com.dropbox.core.v2.sharing.GetSharedLinksResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GroupInfo": {"fq_name": "sharing.GroupInfo", "java_class": "com.dropbox.core.v2.sharing.GroupInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.GroupInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.GroupMembershipInfo": {"fq_name": "sharing.GroupMembershipInfo", "java_class": "com.dropbox.core.v2.sharing.GroupMembershipInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.GroupMembershipInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.InsufficientPlan": {"fq_name": "sharing.InsufficientPlan", "java_class": "com.dropbox.core.v2.sharing.InsufficientPlan", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.InsufficientQuotaAmounts": {"fq_name": "sharing.InsufficientQuotaAmounts", "java_class": "com.dropbox.core.v2.sharing.InsufficientQuotaAmounts", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.InviteeInfo": {"fq_name": "sharing.InviteeInfo", "java_class": "com.dropbox.core.v2.sharing.InviteeInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.InviteeMembershipInfo": {"fq_name": "sharing.InviteeMembershipInfo", "java_class": "com.dropbox.core.v2.sharing.InviteeMembershipInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.InviteeMembershipInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.JobError": {"fq_name": "sharing.JobError", "java_class": "com.dropbox.core.v2.sharing.JobError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.JobStatus": {"fq_name": "sharing.JobStatus", "java_class": "com.dropbox.core.v2.sharing.JobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkAccessLevel": {"fq_name": "sharing.LinkAccessLevel", "java_class": "com.dropbox.core.v2.sharing.LinkAccessLevel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkAction": {"fq_name": "sharing.LinkAction", "java_class": "com.dropbox.core.v2.sharing.LinkAction", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkAudience": {"fq_name": "sharing.LinkAudience", "java_class": "com.dropbox.core.v2.sharing.LinkAudience", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.LinkAudienceDisallowedReason": {"fq_name": "sharing.LinkAudienceDisallowedReason", "java_class": "com.dropbox.core.v2.sharing.LinkAudienceDisallowedReason", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkAudienceOption": {"fq_name": "sharing.LinkAudienceOption", "java_class": "com.dropbox.core.v2.sharing.LinkAudienceOption", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkExpiry": {"fq_name": "sharing.LinkExpiry", "java_class": "com.dropbox.core.v2.sharing.LinkExpiry", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkMetadata": {"fq_name": "sharing.LinkMetadata", "java_class": "com.dropbox.core.v2.sharing.LinkMetadata", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkPassword": {"fq_name": "sharing.LinkPassword", "java_class": "com.dropbox.core.v2.sharing.LinkPassword", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkPermission": {"fq_name": "sharing.LinkPermission", "java_class": "com.dropbox.core.v2.sharing.LinkPermission", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkPermissions": {"fq_name": "sharing.LinkPermissions", "java_class": "com.dropbox.core.v2.sharing.LinkPermissions", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.LinkPermissions.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.LinkSettings": {"fq_name": "sharing.LinkSettings", "java_class": "com.dropbox.core.v2.sharing.LinkSettings", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.LinkSettings.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersArg": {"fq_name": "sharing.ListFileMembersArg", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ListFileMembersArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersBatchArg": {"fq_name": "sharing.ListFileMembersBatchArg", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersBatchResult": {"fq_name": "sharing.ListFileMembersBatchResult", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersContinueArg": {"fq_name": "sharing.ListFileMembersContinueArg", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersContinueError": {"fq_name": "sharing.ListFileMembersContinueError", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersCountResult": {"fq_name": "sharing.ListFileMembersCountResult", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersCountResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersError": {"fq_name": "sharing.ListFileMembersError", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFileMembersIndividualResult": {"fq_name": "sharing.ListFileMembersIndividualResult", "java_class": "com.dropbox.core.v2.sharing.ListFileMembersIndividualResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFilesArg": {"fq_name": "sharing.ListFilesArg", "java_class": "com.dropbox.core.v2.sharing.ListFilesArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ListFilesArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFilesContinueArg": {"fq_name": "sharing.ListFilesContinueArg", "java_class": "com.dropbox.core.v2.sharing.ListFilesContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFilesContinueError": {"fq_name": "sharing.ListFilesContinueError", "java_class": "com.dropbox.core.v2.sharing.ListFilesContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFilesResult": {"fq_name": "sharing.ListFilesResult", "java_class": "com.dropbox.core.v2.sharing.ListFilesResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFolderMembersArgs": {"fq_name": "sharing.ListFolderMembersArgs", "java_class": "com.dropbox.core.v2.sharing.ListFolderMembersArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ListFolderMembersArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFolderMembersContinueArg": {"fq_name": "sharing.ListFolderMembersContinueArg", "java_class": "com.dropbox.core.v2.sharing.ListFolderMembersContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFolderMembersContinueError": {"fq_name": "sharing.ListFolderMembersContinueError", "java_class": "com.dropbox.core.v2.sharing.ListFolderMembersContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFolderMembersCursorArg": {"fq_name": "sharing.ListFolderMembersCursorArg", "java_class": "com.dropbox.core.v2.sharing.ListFolderMembersCursorArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ListFolderMembersCursorArg.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "sharing.ListFoldersArgs": {"fq_name": "sharing.ListFoldersArgs", "java_class": "com.dropbox.core.v2.sharing.ListFoldersArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ListFoldersArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFoldersContinueArg": {"fq_name": "sharing.ListFoldersContinueArg", "java_class": "com.dropbox.core.v2.sharing.ListFoldersContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFoldersContinueError": {"fq_name": "sharing.ListFoldersContinueError", "java_class": "com.dropbox.core.v2.sharing.ListFoldersContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListFoldersResult": {"fq_name": "sharing.ListFoldersResult", "java_class": "com.dropbox.core.v2.sharing.ListFoldersResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListSharedLinksArg": {"fq_name": "sharing.ListSharedLinksArg", "java_class": "com.dropbox.core.v2.sharing.ListSharedLinksArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ListSharedLinksArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListSharedLinksError": {"fq_name": "sharing.ListSharedLinksError", "java_class": "com.dropbox.core.v2.sharing.ListSharedLinksError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ListSharedLinksResult": {"fq_name": "sharing.ListSharedLinksResult", "java_class": "com.dropbox.core.v2.sharing.ListSharedLinksResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.MemberAccessLevelResult": {"fq_name": "sharing.MemberAccessLevelResult", "java_class": "com.dropbox.core.v2.sharing.MemberAccessLevelResult", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.MemberAccessLevelResult.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.MemberAction": {"fq_name": "sharing.MemberAction", "java_class": "com.dropbox.core.v2.sharing.MemberAction", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.MemberPermission": {"fq_name": "sharing.MemberPermission", "java_class": "com.dropbox.core.v2.sharing.MemberPermission", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.MemberPolicy": {"fq_name": "sharing.MemberPolicy", "java_class": "com.dropbox.core.v2.sharing.MemberPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.MemberSelector": {"fq_name": "sharing.MemberSelector", "java_class": "com.dropbox.core.v2.sharing.MemberSelector", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.MembershipInfo": {"fq_name": "sharing.MembershipInfo", "java_class": "com.dropbox.core.v2.sharing.MembershipInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.MembershipInfo.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "sharing.ModifySharedLinkSettingsArgs": {"fq_name": "sharing.ModifySharedLinkSettingsArgs", "java_class": "com.dropbox.core.v2.sharing.ModifySharedLinkSettingsArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ModifySharedLinkSettingsError": {"fq_name": "sharing.ModifySharedLinkSettingsError", "java_class": "com.dropbox.core.v2.sharing.ModifySharedLinkSettingsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.MountFolderArg": {"fq_name": "sharing.MountFolderArg", "java_class": "com.dropbox.core.v2.sharing.MountFolderArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.MountFolderError": {"fq_name": "sharing.MountFolderError", "java_class": "com.dropbox.core.v2.sharing.MountFolderError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ParentFolderAccessInfo": {"fq_name": "sharing.ParentFolderAccessInfo", "java_class": "com.dropbox.core.v2.sharing.ParentFolderAccessInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.PathLinkMetadata": {"fq_name": "sharing.PathLinkMetadata", "java_class": "com.dropbox.core.v2.sharing.PathLinkMetadata", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.PendingUploadMode": {"fq_name": "sharing.PendingUploadMode", "java_class": "com.dropbox.core.v2.sharing.PendingUploadMode", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.PermissionDeniedReason": {"fq_name": "sharing.PermissionDeniedReason", "java_class": "com.dropbox.core.v2.sharing.PermissionDeniedReason", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RelinquishFileMembershipArg": {"fq_name": "sharing.RelinquishFileMembershipArg", "java_class": "com.dropbox.core.v2.sharing.RelinquishFileMembershipArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RelinquishFileMembershipError": {"fq_name": "sharing.RelinquishFileMembershipError", "java_class": "com.dropbox.core.v2.sharing.RelinquishFileMembershipError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RelinquishFolderMembershipArg": {"fq_name": "sharing.RelinquishFolderMembershipArg", "java_class": "com.dropbox.core.v2.sharing.RelinquishFolderMembershipArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RelinquishFolderMembershipError": {"fq_name": "sharing.RelinquishFolderMembershipError", "java_class": "com.dropbox.core.v2.sharing.RelinquishFolderMembershipError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RemoveFileMemberArg": {"fq_name": "sharing.RemoveFileMemberArg", "java_class": "com.dropbox.core.v2.sharing.RemoveFileMemberArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RemoveFileMemberError": {"fq_name": "sharing.RemoveFileMemberError", "java_class": "com.dropbox.core.v2.sharing.RemoveFileMemberError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RemoveFolderMemberArg": {"fq_name": "sharing.RemoveFolderMemberArg", "java_class": "com.dropbox.core.v2.sharing.RemoveFolderMemberArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RemoveFolderMemberError": {"fq_name": "sharing.RemoveFolderMemberError", "java_class": "com.dropbox.core.v2.sharing.RemoveFolderMemberError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RemoveMemberJobStatus": {"fq_name": "sharing.RemoveMemberJobStatus", "java_class": "com.dropbox.core.v2.sharing.RemoveMemberJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RequestedLinkAccessLevel": {"fq_name": "sharing.RequestedLinkAccessLevel", "java_class": "com.dropbox.core.v2.sharing.RequestedLinkAccessLevel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RequestedVisibility": {"fq_name": "sharing.RequestedVisibility", "java_class": "com.dropbox.core.v2.sharing.RequestedVisibility", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ResolvedVisibility": {"fq_name": "sharing.ResolvedVisibility", "java_class": "com.dropbox.core.v2.sharing.ResolvedVisibility", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RevokeSharedLinkArg": {"fq_name": "sharing.RevokeSharedLinkArg", "java_class": "com.dropbox.core.v2.sharing.RevokeSharedLinkArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.RevokeSharedLinkError": {"fq_name": "sharing.RevokeSharedLinkError", "java_class": "com.dropbox.core.v2.sharing.RevokeSharedLinkError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SetAccessInheritanceArg": {"fq_name": "sharing.SetAccessInheritanceArg", "java_class": "com.dropbox.core.v2.sharing.SetAccessInheritanceArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SetAccessInheritanceError": {"fq_name": "sharing.SetAccessInheritanceError", "java_class": "com.dropbox.core.v2.sharing.SetAccessInheritanceError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ShareFolderArg": {"fq_name": "sharing.ShareFolderArg", "java_class": "com.dropbox.core.v2.sharing.ShareFolderArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ShareFolderArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ShareFolderArgBase": {"fq_name": "sharing.ShareFolderArgBase", "java_class": "com.dropbox.core.v2.sharing.ShareFolderArgBase", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.ShareFolderArgBase.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "sharing.ShareFolderError": {"fq_name": "sharing.ShareFolderError", "java_class": "com.dropbox.core.v2.sharing.ShareFolderError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ShareFolderErrorBase": {"fq_name": "sharing.ShareFolderErrorBase", "java_class": "com.dropbox.core.v2.sharing.ShareFolderErrorBase", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "sharing.ShareFolderJobStatus": {"fq_name": "sharing.ShareFolderJobStatus", "java_class": "com.dropbox.core.v2.sharing.ShareFolderJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ShareFolderLaunch": {"fq_name": "sharing.ShareFolderLaunch", "java_class": "com.dropbox.core.v2.sharing.ShareFolderLaunch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharePathError": {"fq_name": "sharing.SharePathError", "java_class": "com.dropbox.core.v2.sharing.SharePathError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedContentLinkMetadata": {"fq_name": "sharing.SharedContentLinkMetadata", "java_class": "com.dropbox.core.v2.sharing.SharedContentLinkMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.SharedContentLinkMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedContentLinkMetadataBase": {"fq_name": "sharing.SharedContentLinkMetadataBase", "java_class": "com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.SharedContentLinkMetadataBase.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "sharing.SharedFileMembers": {"fq_name": "sharing.SharedFileMembers", "java_class": "com.dropbox.core.v2.sharing.SharedFileMembers", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedFileMetadata": {"fq_name": "sharing.SharedFileMetadata", "java_class": "com.dropbox.core.v2.sharing.SharedFileMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.SharedFileMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedFolderAccessError": {"fq_name": "sharing.SharedFolderAccessError", "java_class": "com.dropbox.core.v2.sharing.SharedFolderAccessError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedFolderMemberError": {"fq_name": "sharing.SharedFolderMemberError", "java_class": "com.dropbox.core.v2.sharing.SharedFolderMemberError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedFolderMembers": {"fq_name": "sharing.SharedFolderMembers", "java_class": "com.dropbox.core.v2.sharing.SharedFolderMembers", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedFolderMetadata": {"fq_name": "sharing.SharedFolderMetadata", "java_class": "com.dropbox.core.v2.sharing.SharedFolderMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.SharedFolderMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedFolderMetadataBase": {"fq_name": "sharing.SharedFolderMetadataBase", "java_class": "com.dropbox.core.v2.sharing.SharedFolderMetadataBase", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.SharedFolderMetadataBase.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "sharing.SharedLinkAccessFailureReason": {"fq_name": "sharing.SharedLinkAccessFailureReason", "java_class": "com.dropbox.core.v2.sharing.SharedLinkAccessFailureReason", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedLinkAlreadyExistsMetadata": {"fq_name": "sharing.SharedLinkAlreadyExistsMetadata", "java_class": "com.dropbox.core.v2.sharing.SharedLinkAlreadyExistsMetadata", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedLinkError": {"fq_name": "sharing.SharedLinkError", "java_class": "com.dropbox.core.v2.sharing.SharedLinkError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedLinkMetadata": {"fq_name": "sharing.SharedLinkMetadata", "java_class": "com.dropbox.core.v2.sharing.SharedLinkMetadata", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.SharedLinkMetadata.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedLinkPolicy": {"fq_name": "sharing.SharedLinkPolicy", "java_class": "com.dropbox.core.v2.sharing.SharedLinkPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.SharedLinkSettings": {"fq_name": "sharing.SharedLinkSettings", "java_class": "com.dropbox.core.v2.sharing.SharedLinkSettings", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.SharedLinkSettings.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharedLinkSettingsError": {"fq_name": "sharing.SharedLinkSettingsError", "java_class": "com.dropbox.core.v2.sharing.SharedLinkSettingsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharingFileAccessError": {"fq_name": "sharing.SharingFileAccessError", "java_class": "com.dropbox.core.v2.sharing.SharingFileAccessError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.SharingUserError": {"fq_name": "sharing.SharingUserError", "java_class": "com.dropbox.core.v2.sharing.SharingUserError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.TeamMemberInfo": {"fq_name": "sharing.TeamMemberInfo", "java_class": "com.dropbox.core.v2.sharing.TeamMemberInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.TransferFolderArg": {"fq_name": "sharing.TransferFolderArg", "java_class": "com.dropbox.core.v2.sharing.TransferFolderArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.TransferFolderError": {"fq_name": "sharing.TransferFolderError", "java_class": "com.dropbox.core.v2.sharing.TransferFolderError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UnmountFolderArg": {"fq_name": "sharing.UnmountFolderArg", "java_class": "com.dropbox.core.v2.sharing.UnmountFolderArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UnmountFolderError": {"fq_name": "sharing.UnmountFolderError", "java_class": "com.dropbox.core.v2.sharing.UnmountFolderError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UnshareFileArg": {"fq_name": "sharing.UnshareFileArg", "java_class": "com.dropbox.core.v2.sharing.UnshareFileArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UnshareFileError": {"fq_name": "sharing.UnshareFileError", "java_class": "com.dropbox.core.v2.sharing.UnshareFileError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UnshareFolderArg": {"fq_name": "sharing.UnshareFolderArg", "java_class": "com.dropbox.core.v2.sharing.UnshareFolderArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UnshareFolderError": {"fq_name": "sharing.UnshareFolderError", "java_class": "com.dropbox.core.v2.sharing.UnshareFolderError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UpdateFileMemberArgs": {"fq_name": "sharing.UpdateFileMemberArgs", "java_class": "com.dropbox.core.v2.sharing.UpdateFileMemberArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UpdateFolderMemberArg": {"fq_name": "sharing.UpdateFolderMemberArg", "java_class": "com.dropbox.core.v2.sharing.UpdateFolderMemberArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UpdateFolderMemberError": {"fq_name": "sharing.UpdateFolderMemberError", "java_class": "com.dropbox.core.v2.sharing.UpdateFolderMemberError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UpdateFolderPolicyArg": {"fq_name": "sharing.UpdateFolderPolicyArg", "java_class": "com.dropbox.core.v2.sharing.UpdateFolderPolicyArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.UpdateFolderPolicyArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UpdateFolderPolicyError": {"fq_name": "sharing.UpdateFolderPolicyError", "java_class": "com.dropbox.core.v2.sharing.UpdateFolderPolicyError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UserFileMembershipInfo": {"fq_name": "sharing.UserFileMembershipInfo", "java_class": "com.dropbox.core.v2.sharing.UserFileMembershipInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.UserFileMembershipInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.UserInfo": {"fq_name": "sharing.UserInfo", "java_class": "com.dropbox.core.v2.sharing.UserInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.UserMembershipInfo": {"fq_name": "sharing.UserMembershipInfo", "java_class": "com.dropbox.core.v2.sharing.UserMembershipInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.sharing.UserMembershipInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.ViewerInfoPolicy": {"fq_name": "sharing.ViewerInfoPolicy", "java_class": "com.dropbox.core.v2.sharing.ViewerInfoPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "sharing.Visibility": {"fq_name": "sharing.Visibility", "java_class": "com.dropbox.core.v2.sharing.Visibility", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.VisibilityPolicy": {"fq_name": "sharing.VisibilityPolicy", "java_class": "com.dropbox.core.v2.sharing.VisibilityPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "sharing.VisibilityPolicyDisallowedReason": {"fq_name": "sharing.VisibilityPolicyDisallowedReason", "java_class": "com.dropbox.core.v2.sharing.VisibilityPolicyDisallowedReason", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ActiveWebSession": {"fq_name": "team.ActiveWebSession", "java_class": "com.dropbox.core.v2.team.ActiveWebSession", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.ActiveWebSession.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.AddSecondaryEmailResult": {"fq_name": "team.AddSecondaryEmailResult", "java_class": "com.dropbox.core.v2.team.AddSecondaryEmailResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.AddSecondaryEmailsArg": {"fq_name": "team.AddSecondaryEmailsArg", "java_class": "com.dropbox.core.v2.team.AddSecondaryEmailsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.AddSecondaryEmailsError": {"fq_name": "team.AddSecondaryEmailsError", "java_class": "com.dropbox.core.v2.team.AddSecondaryEmailsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.AddSecondaryEmailsResult": {"fq_name": "team.AddSecondaryEmailsResult", "java_class": "com.dropbox.core.v2.team.AddSecondaryEmailsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.AdminTier": {"fq_name": "team.AdminTier", "java_class": "com.dropbox.core.v2.team.AdminTier", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ApiApp": {"fq_name": "team.ApiApp", "java_class": "com.dropbox.core.v2.team.ApiApp", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.ApiApp.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.BaseDfbReport": {"fq_name": "team.BaseDfbReport", "java_class": "com.dropbox.core.v2.team.BaseDfbReport", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team.BaseTeamFolderError": {"fq_name": "team.BaseTeamFolderError", "java_class": "com.dropbox.core.v2.team.BaseTeamFolderError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.CustomQuotaError": {"fq_name": "team.CustomQuotaError", "java_class": "com.dropbox.core.v2.team.CustomQuotaError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.CustomQuotaResult": {"fq_name": "team.CustomQuotaResult", "java_class": "com.dropbox.core.v2.team.CustomQuotaResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.CustomQuotaUsersArg": {"fq_name": "team.CustomQuotaUsersArg", "java_class": "com.dropbox.core.v2.team.CustomQuotaUsersArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DateRange": {"fq_name": "team.DateRange", "java_class": "com.dropbox.core.v2.team.DateRange", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.DateRange.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DateRangeError": {"fq_name": "team.DateRangeError", "java_class": "com.dropbox.core.v2.team.DateRangeError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DeleteSecondaryEmailResult": {"fq_name": "team.DeleteSecondaryEmailResult", "java_class": "com.dropbox.core.v2.team.DeleteSecondaryEmailResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DeleteSecondaryEmailsArg": {"fq_name": "team.DeleteSecondaryEmailsArg", "java_class": "com.dropbox.core.v2.team.DeleteSecondaryEmailsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DeleteSecondaryEmailsResult": {"fq_name": "team.DeleteSecondaryEmailsResult", "java_class": "com.dropbox.core.v2.team.DeleteSecondaryEmailsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DesktopClientSession": {"fq_name": "team.DesktopClientSession", "java_class": "com.dropbox.core.v2.team.DesktopClientSession", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.DesktopClientSession.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DesktopPlatform": {"fq_name": "team.DesktopPlatform", "java_class": "com.dropbox.core.v2.team.DesktopPlatform", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team.DeviceSession": {"fq_name": "team.DeviceSession", "java_class": "com.dropbox.core.v2.team.DeviceSession", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.DeviceSession.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team.DeviceSessionArg": {"fq_name": "team.DeviceSessionArg", "java_class": "com.dropbox.core.v2.team.DeviceSessionArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.DevicesActive": {"fq_name": "team.DevicesActive", "java_class": "com.dropbox.core.v2.team.DevicesActive", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersListArg": {"fq_name": "team.ExcludedUsersListArg", "java_class": "com.dropbox.core.v2.team.ExcludedUsersListArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersListContinueArg": {"fq_name": "team.ExcludedUsersListContinueArg", "java_class": "com.dropbox.core.v2.team.ExcludedUsersListContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersListContinueError": {"fq_name": "team.ExcludedUsersListContinueError", "java_class": "com.dropbox.core.v2.team.ExcludedUsersListContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersListError": {"fq_name": "team.ExcludedUsersListError", "java_class": "com.dropbox.core.v2.team.ExcludedUsersListError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersListResult": {"fq_name": "team.ExcludedUsersListResult", "java_class": "com.dropbox.core.v2.team.ExcludedUsersListResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersUpdateArg": {"fq_name": "team.ExcludedUsersUpdateArg", "java_class": "com.dropbox.core.v2.team.ExcludedUsersUpdateArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersUpdateError": {"fq_name": "team.ExcludedUsersUpdateError", "java_class": "com.dropbox.core.v2.team.ExcludedUsersUpdateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersUpdateResult": {"fq_name": "team.ExcludedUsersUpdateResult", "java_class": "com.dropbox.core.v2.team.ExcludedUsersUpdateResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ExcludedUsersUpdateStatus": {"fq_name": "team.ExcludedUsersUpdateStatus", "java_class": "com.dropbox.core.v2.team.ExcludedUsersUpdateStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.Feature": {"fq_name": "team.Feature", "java_class": "com.dropbox.core.v2.team.Feature", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.FeatureValue": {"fq_name": "team.FeatureValue", "java_class": "com.dropbox.core.v2.team.FeatureValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.FeaturesGetValuesBatchArg": {"fq_name": "team.FeaturesGetValuesBatchArg", "java_class": "com.dropbox.core.v2.team.FeaturesGetValuesBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.FeaturesGetValuesBatchError": {"fq_name": "team.FeaturesGetValuesBatchError", "java_class": "com.dropbox.core.v2.team.FeaturesGetValuesBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.FeaturesGetValuesBatchResult": {"fq_name": "team.FeaturesGetValuesBatchResult", "java_class": "com.dropbox.core.v2.team.FeaturesGetValuesBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GetActivityReport": {"fq_name": "team.GetActivityReport", "java_class": "com.dropbox.core.v2.team.GetActivityReport", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GetDevicesReport": {"fq_name": "team.GetDevicesReport", "java_class": "com.dropbox.core.v2.team.GetDevicesReport", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GetMembershipReport": {"fq_name": "team.GetMembershipReport", "java_class": "com.dropbox.core.v2.team.GetMembershipReport", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GetStorageReport": {"fq_name": "team.GetStorageReport", "java_class": "com.dropbox.core.v2.team.GetStorageReport", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupAccessType": {"fq_name": "team.GroupAccessType", "java_class": "com.dropbox.core.v2.team.GroupAccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupCreateArg": {"fq_name": "team.GroupCreateArg", "java_class": "com.dropbox.core.v2.team.GroupCreateArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.GroupCreateArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupCreateError": {"fq_name": "team.GroupCreateError", "java_class": "com.dropbox.core.v2.team.GroupCreateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupDeleteError": {"fq_name": "team.GroupDeleteError", "java_class": "com.dropbox.core.v2.team.GroupDeleteError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupFullInfo": {"fq_name": "team.GroupFullInfo", "java_class": "com.dropbox.core.v2.team.GroupFullInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.GroupFullInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMemberInfo": {"fq_name": "team.GroupMemberInfo", "java_class": "com.dropbox.core.v2.team.GroupMemberInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMemberSelector": {"fq_name": "team.GroupMemberSelector", "java_class": "com.dropbox.core.v2.team.GroupMemberSelector", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team.GroupMemberSelectorError": {"fq_name": "team.GroupMemberSelectorError", "java_class": "com.dropbox.core.v2.team.GroupMemberSelectorError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.GroupMemberSetAccessTypeError": {"fq_name": "team.GroupMemberSetAccessTypeError", "java_class": "com.dropbox.core.v2.team.GroupMemberSetAccessTypeError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMembersAddArg": {"fq_name": "team.GroupMembersAddArg", "java_class": "com.dropbox.core.v2.team.GroupMembersAddArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMembersAddError": {"fq_name": "team.GroupMembersAddError", "java_class": "com.dropbox.core.v2.team.GroupMembersAddError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMembersChangeResult": {"fq_name": "team.GroupMembersChangeResult", "java_class": "com.dropbox.core.v2.team.GroupMembersChangeResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMembersRemoveArg": {"fq_name": "team.GroupMembersRemoveArg", "java_class": "com.dropbox.core.v2.team.GroupMembersRemoveArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMembersRemoveError": {"fq_name": "team.GroupMembersRemoveError", "java_class": "com.dropbox.core.v2.team.GroupMembersRemoveError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupMembersSelector": {"fq_name": "team.GroupMembersSelector", "java_class": "com.dropbox.core.v2.team.GroupMembersSelector", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.GroupMembersSelectorError": {"fq_name": "team.GroupMembersSelectorError", "java_class": "com.dropbox.core.v2.team.GroupMembersSelectorError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.GroupMembersSetAccessTypeArg": {"fq_name": "team.GroupMembersSetAccessTypeArg", "java_class": "com.dropbox.core.v2.team.GroupMembersSetAccessTypeArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupSelector": {"fq_name": "team.GroupSelector", "java_class": "com.dropbox.core.v2.team.GroupSelector", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupSelectorError": {"fq_name": "team.GroupSelectorError", "java_class": "com.dropbox.core.v2.team.GroupSelectorError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupSelectorWithTeamGroupError": {"fq_name": "team.GroupSelectorWithTeamGroupError", "java_class": "com.dropbox.core.v2.team.GroupSelectorWithTeamGroupError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.GroupUpdateArgs": {"fq_name": "team.GroupUpdateArgs", "java_class": "com.dropbox.core.v2.team.GroupUpdateArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.GroupUpdateArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupUpdateError": {"fq_name": "team.GroupUpdateError", "java_class": "com.dropbox.core.v2.team.GroupUpdateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsGetInfoError": {"fq_name": "team.GroupsGetInfoError", "java_class": "com.dropbox.core.v2.team.GroupsGetInfoError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsGetInfoItem": {"fq_name": "team.GroupsGetInfoItem", "java_class": "com.dropbox.core.v2.team.GroupsGetInfoItem", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsListArg": {"fq_name": "team.GroupsListArg", "java_class": "com.dropbox.core.v2.team.GroupsListArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsListContinueArg": {"fq_name": "team.GroupsListContinueArg", "java_class": "com.dropbox.core.v2.team.GroupsListContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsListContinueError": {"fq_name": "team.GroupsListContinueError", "java_class": "com.dropbox.core.v2.team.GroupsListContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsListResult": {"fq_name": "team.GroupsListResult", "java_class": "com.dropbox.core.v2.team.GroupsListResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsMembersListArg": {"fq_name": "team.GroupsMembersListArg", "java_class": "com.dropbox.core.v2.team.GroupsMembersListArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsMembersListContinueArg": {"fq_name": "team.GroupsMembersListContinueArg", "java_class": "com.dropbox.core.v2.team.GroupsMembersListContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsMembersListContinueError": {"fq_name": "team.GroupsMembersListContinueError", "java_class": "com.dropbox.core.v2.team.GroupsMembersListContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsMembersListResult": {"fq_name": "team.GroupsMembersListResult", "java_class": "com.dropbox.core.v2.team.GroupsMembersListResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsPollError": {"fq_name": "team.GroupsPollError", "java_class": "com.dropbox.core.v2.team.GroupsPollError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.GroupsSelector": {"fq_name": "team.GroupsSelector", "java_class": "com.dropbox.core.v2.team.GroupsSelector", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.HasTeamFileEventsValue": {"fq_name": "team.HasTeamFileEventsValue", "java_class": "com.dropbox.core.v2.team.HasTeamFileEventsValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.HasTeamSelectiveSyncValue": {"fq_name": "team.HasTeamSelectiveSyncValue", "java_class": "com.dropbox.core.v2.team.HasTeamSelectiveSyncValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.HasTeamSharedDropboxValue": {"fq_name": "team.HasTeamSharedDropboxValue", "java_class": "com.dropbox.core.v2.team.HasTeamSharedDropboxValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.IncludeMembersArg": {"fq_name": "team.IncludeMembersArg", "java_class": "com.dropbox.core.v2.team.IncludeMembersArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team.LegalHoldHeldRevisionMetadata": {"fq_name": "team.LegalHoldHeldRevisionMetadata", "java_class": "com.dropbox.core.v2.team.LegalHoldHeldRevisionMetadata", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldPolicy": {"fq_name": "team.LegalHoldPolicy", "java_class": "com.dropbox.core.v2.team.LegalHoldPolicy", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.LegalHoldPolicy.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldStatus": {"fq_name": "team.LegalHoldStatus", "java_class": "com.dropbox.core.v2.team.LegalHoldStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsError": {"fq_name": "team.LegalHoldsError", "java_class": "com.dropbox.core.v2.team.LegalHoldsError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.LegalHoldsGetPolicyArg": {"fq_name": "team.LegalHoldsGetPolicyArg", "java_class": "com.dropbox.core.v2.team.LegalHoldsGetPolicyArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsGetPolicyError": {"fq_name": "team.LegalHoldsGetPolicyError", "java_class": "com.dropbox.core.v2.team.LegalHoldsGetPolicyError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsListHeldRevisionResult": {"fq_name": "team.LegalHoldsListHeldRevisionResult", "java_class": "com.dropbox.core.v2.team.LegalHoldsListHeldRevisionResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsListHeldRevisionsArg": {"fq_name": "team.LegalHoldsListHeldRevisionsArg", "java_class": "com.dropbox.core.v2.team.LegalHoldsListHeldRevisionsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsListHeldRevisionsContinueArg": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueArg", "java_class": "com.dropbox.core.v2.team.LegalHoldsListHeldRevisionsContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsListHeldRevisionsContinueError": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueError", "java_class": "com.dropbox.core.v2.team.LegalHoldsListHeldRevisionsContinueError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.LegalHoldsListHeldRevisionsError": {"fq_name": "team.LegalHoldsListHeldRevisionsError", "java_class": "com.dropbox.core.v2.team.LegalHoldsListHeldRevisionsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsListPoliciesArg": {"fq_name": "team.LegalHoldsListPoliciesArg", "java_class": "com.dropbox.core.v2.team.LegalHoldsListPoliciesArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsListPoliciesError": {"fq_name": "team.LegalHoldsListPoliciesError", "java_class": "com.dropbox.core.v2.team.LegalHoldsListPoliciesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsListPoliciesResult": {"fq_name": "team.LegalHoldsListPoliciesResult", "java_class": "com.dropbox.core.v2.team.LegalHoldsListPoliciesResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsPolicyCreateArg": {"fq_name": "team.LegalHoldsPolicyCreateArg", "java_class": "com.dropbox.core.v2.team.LegalHoldsPolicyCreateArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.LegalHoldsPolicyCreateArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsPolicyCreateError": {"fq_name": "team.LegalHoldsPolicyCreateError", "java_class": "com.dropbox.core.v2.team.LegalHoldsPolicyCreateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsPolicyReleaseArg": {"fq_name": "team.LegalHoldsPolicyReleaseArg", "java_class": "com.dropbox.core.v2.team.LegalHoldsPolicyReleaseArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsPolicyReleaseError": {"fq_name": "team.LegalHoldsPolicyReleaseError", "java_class": "com.dropbox.core.v2.team.LegalHoldsPolicyReleaseError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsPolicyUpdateArg": {"fq_name": "team.LegalHoldsPolicyUpdateArg", "java_class": "com.dropbox.core.v2.team.LegalHoldsPolicyUpdateArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.LegalHoldsPolicyUpdateArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.LegalHoldsPolicyUpdateError": {"fq_name": "team.LegalHoldsPolicyUpdateError", "java_class": "com.dropbox.core.v2.team.LegalHoldsPolicyUpdateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMemberAppsArg": {"fq_name": "team.ListMemberAppsArg", "java_class": "com.dropbox.core.v2.team.ListMemberAppsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMemberAppsError": {"fq_name": "team.ListMemberAppsError", "java_class": "com.dropbox.core.v2.team.ListMemberAppsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMemberAppsResult": {"fq_name": "team.ListMemberAppsResult", "java_class": "com.dropbox.core.v2.team.ListMemberAppsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMemberDevicesArg": {"fq_name": "team.ListMemberDevicesArg", "java_class": "com.dropbox.core.v2.team.ListMemberDevicesArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.ListMemberDevicesArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMemberDevicesError": {"fq_name": "team.ListMemberDevicesError", "java_class": "com.dropbox.core.v2.team.ListMemberDevicesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMemberDevicesResult": {"fq_name": "team.ListMemberDevicesResult", "java_class": "com.dropbox.core.v2.team.ListMemberDevicesResult", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.ListMemberDevicesResult.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMembersAppsArg": {"fq_name": "team.ListMembersAppsArg", "java_class": "com.dropbox.core.v2.team.ListMembersAppsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMembersAppsError": {"fq_name": "team.ListMembersAppsError", "java_class": "com.dropbox.core.v2.team.ListMembersAppsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMembersAppsResult": {"fq_name": "team.ListMembersAppsResult", "java_class": "com.dropbox.core.v2.team.ListMembersAppsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMembersDevicesArg": {"fq_name": "team.ListMembersDevicesArg", "java_class": "com.dropbox.core.v2.team.ListMembersDevicesArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.ListMembersDevicesArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMembersDevicesError": {"fq_name": "team.ListMembersDevicesError", "java_class": "com.dropbox.core.v2.team.ListMembersDevicesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListMembersDevicesResult": {"fq_name": "team.ListMembersDevicesResult", "java_class": "com.dropbox.core.v2.team.ListMembersDevicesResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListTeamAppsArg": {"fq_name": "team.ListTeamAppsArg", "java_class": "com.dropbox.core.v2.team.ListTeamAppsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListTeamAppsError": {"fq_name": "team.ListTeamAppsError", "java_class": "com.dropbox.core.v2.team.ListTeamAppsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListTeamAppsResult": {"fq_name": "team.ListTeamAppsResult", "java_class": "com.dropbox.core.v2.team.ListTeamAppsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListTeamDevicesArg": {"fq_name": "team.ListTeamDevicesArg", "java_class": "com.dropbox.core.v2.team.ListTeamDevicesArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.ListTeamDevicesArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListTeamDevicesError": {"fq_name": "team.ListTeamDevicesError", "java_class": "com.dropbox.core.v2.team.ListTeamDevicesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ListTeamDevicesResult": {"fq_name": "team.ListTeamDevicesResult", "java_class": "com.dropbox.core.v2.team.ListTeamDevicesResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberAccess": {"fq_name": "team.MemberAccess", "java_class": "com.dropbox.core.v2.team.MemberAccess", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberAddArg": {"fq_name": "team.MemberAddArg", "java_class": "com.dropbox.core.v2.team.MemberAddArg", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MemberAddArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberAddArgBase": {"fq_name": "team.MemberAddArgBase", "java_class": "com.dropbox.core.v2.team.MemberAddArgBase", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MemberAddArgBase.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team.MemberAddResult": {"fq_name": "team.MemberAddResult", "java_class": "com.dropbox.core.v2.team.MemberAddResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberAddResultBase": {"fq_name": "team.MemberAddResultBase", "java_class": "com.dropbox.core.v2.team.MemberAddResultBase", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.MemberAddV2Arg": {"fq_name": "team.MemberAddV2Arg", "java_class": "com.dropbox.core.v2.team.MemberAddV2Arg", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MemberAddV2Arg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberAddV2Result": {"fq_name": "team.MemberAddV2Result", "java_class": "com.dropbox.core.v2.team.MemberAddV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberDevices": {"fq_name": "team.MemberDevices", "java_class": "com.dropbox.core.v2.team.MemberDevices", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MemberDevices.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberLinkedApps": {"fq_name": "team.MemberLinkedApps", "java_class": "com.dropbox.core.v2.team.MemberLinkedApps", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberProfile": {"fq_name": "team.MemberProfile", "java_class": "com.dropbox.core.v2.team.MemberProfile", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MemberProfile.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MemberSelectorError": {"fq_name": "team.MemberSelectorError", "java_class": "com.dropbox.core.v2.team.MemberSelectorError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.MembersAddArg": {"fq_name": "team.MembersAddArg", "java_class": "com.dropbox.core.v2.team.MembersAddArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersAddArgBase": {"fq_name": "team.MembersAddArgBase", "java_class": "com.dropbox.core.v2.team.MembersAddArgBase", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team.MembersAddJobStatus": {"fq_name": "team.MembersAddJobStatus", "java_class": "com.dropbox.core.v2.team.MembersAddJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersAddJobStatusV2Result": {"fq_name": "team.MembersAddJobStatusV2Result", "java_class": "com.dropbox.core.v2.team.MembersAddJobStatusV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersAddLaunch": {"fq_name": "team.MembersAddLaunch", "java_class": "com.dropbox.core.v2.team.MembersAddLaunch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersAddLaunchV2Result": {"fq_name": "team.MembersAddLaunchV2Result", "java_class": "com.dropbox.core.v2.team.MembersAddLaunchV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersAddV2Arg": {"fq_name": "team.MembersAddV2Arg", "java_class": "com.dropbox.core.v2.team.MembersAddV2Arg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersDataTransferArg": {"fq_name": "team.MembersDataTransferArg", "java_class": "com.dropbox.core.v2.team.MembersDataTransferArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersDeactivateArg": {"fq_name": "team.MembersDeactivateArg", "java_class": "com.dropbox.core.v2.team.MembersDeactivateArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersDeactivateBaseArg": {"fq_name": "team.MembersDeactivateBaseArg", "java_class": "com.dropbox.core.v2.team.MembersDeactivateBaseArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team.MembersDeactivateError": {"fq_name": "team.MembersDeactivateError", "java_class": "com.dropbox.core.v2.team.MembersDeactivateError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.MembersDeleteProfilePhotoArg": {"fq_name": "team.MembersDeleteProfilePhotoArg", "java_class": "com.dropbox.core.v2.team.MembersDeleteProfilePhotoArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersDeleteProfilePhotoError": {"fq_name": "team.MembersDeleteProfilePhotoError", "java_class": "com.dropbox.core.v2.team.MembersDeleteProfilePhotoError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersGetAvailableTeamMemberRolesResult": {"fq_name": "team.MembersGetAvailableTeamMemberRolesResult", "java_class": "com.dropbox.core.v2.team.MembersGetAvailableTeamMemberRolesResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersGetInfoArgs": {"fq_name": "team.MembersGetInfoArgs", "java_class": "com.dropbox.core.v2.team.MembersGetInfoArgs", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersGetInfoError": {"fq_name": "team.MembersGetInfoError", "java_class": "com.dropbox.core.v2.team.MembersGetInfoError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersGetInfoItem": {"fq_name": "team.MembersGetInfoItem", "java_class": "com.dropbox.core.v2.team.MembersGetInfoItem", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersGetInfoItemBase": {"fq_name": "team.MembersGetInfoItemBase", "java_class": "com.dropbox.core.v2.team.MembersGetInfoItemBase", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.MembersGetInfoItemV2": {"fq_name": "team.MembersGetInfoItemV2", "java_class": "com.dropbox.core.v2.team.MembersGetInfoItemV2", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersGetInfoV2Arg": {"fq_name": "team.MembersGetInfoV2Arg", "java_class": "com.dropbox.core.v2.team.MembersGetInfoV2Arg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersGetInfoV2Result": {"fq_name": "team.MembersGetInfoV2Result", "java_class": "com.dropbox.core.v2.team.MembersGetInfoV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersInfo": {"fq_name": "team.MembersInfo", "java_class": "com.dropbox.core.v2.team.MembersInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersListArg": {"fq_name": "team.MembersListArg", "java_class": "com.dropbox.core.v2.team.MembersListArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MembersListArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersListContinueArg": {"fq_name": "team.MembersListContinueArg", "java_class": "com.dropbox.core.v2.team.MembersListContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersListContinueError": {"fq_name": "team.MembersListContinueError", "java_class": "com.dropbox.core.v2.team.MembersListContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersListError": {"fq_name": "team.MembersListError", "java_class": "com.dropbox.core.v2.team.MembersListError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersListResult": {"fq_name": "team.MembersListResult", "java_class": "com.dropbox.core.v2.team.MembersListResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersListV2Result": {"fq_name": "team.MembersListV2Result", "java_class": "com.dropbox.core.v2.team.MembersListV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersRecoverArg": {"fq_name": "team.MembersRecoverArg", "java_class": "com.dropbox.core.v2.team.MembersRecoverArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersRecoverError": {"fq_name": "team.MembersRecoverError", "java_class": "com.dropbox.core.v2.team.MembersRecoverError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersRemoveArg": {"fq_name": "team.MembersRemoveArg", "java_class": "com.dropbox.core.v2.team.MembersRemoveArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MembersRemoveArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersRemoveError": {"fq_name": "team.MembersRemoveError", "java_class": "com.dropbox.core.v2.team.MembersRemoveError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSendWelcomeError": {"fq_name": "team.MembersSendWelcomeError", "java_class": "com.dropbox.core.v2.team.MembersSendWelcomeError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetPermissions2Arg": {"fq_name": "team.MembersSetPermissions2Arg", "java_class": "com.dropbox.core.v2.team.MembersSetPermissions2Arg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetPermissions2Error": {"fq_name": "team.MembersSetPermissions2Error", "java_class": "com.dropbox.core.v2.team.MembersSetPermissions2Error", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetPermissions2Result": {"fq_name": "team.MembersSetPermissions2Result", "java_class": "com.dropbox.core.v2.team.MembersSetPermissions2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetPermissionsArg": {"fq_name": "team.MembersSetPermissionsArg", "java_class": "com.dropbox.core.v2.team.MembersSetPermissionsArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetPermissionsError": {"fq_name": "team.MembersSetPermissionsError", "java_class": "com.dropbox.core.v2.team.MembersSetPermissionsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetPermissionsResult": {"fq_name": "team.MembersSetPermissionsResult", "java_class": "com.dropbox.core.v2.team.MembersSetPermissionsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetProfileArg": {"fq_name": "team.MembersSetProfileArg", "java_class": "com.dropbox.core.v2.team.MembersSetProfileArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MembersSetProfileArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetProfileError": {"fq_name": "team.MembersSetProfileError", "java_class": "com.dropbox.core.v2.team.MembersSetProfileError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetProfilePhotoArg": {"fq_name": "team.MembersSetProfilePhotoArg", "java_class": "com.dropbox.core.v2.team.MembersSetProfilePhotoArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSetProfilePhotoError": {"fq_name": "team.MembersSetProfilePhotoError", "java_class": "com.dropbox.core.v2.team.MembersSetProfilePhotoError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersSuspendError": {"fq_name": "team.MembersSuspendError", "java_class": "com.dropbox.core.v2.team.MembersSuspendError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersTransferFilesError": {"fq_name": "team.MembersTransferFilesError", "java_class": "com.dropbox.core.v2.team.MembersTransferFilesError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.MembersTransferFormerMembersFilesError": {"fq_name": "team.MembersTransferFormerMembersFilesError", "java_class": "com.dropbox.core.v2.team.MembersTransferFormerMembersFilesError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersUnsuspendArg": {"fq_name": "team.MembersUnsuspendArg", "java_class": "com.dropbox.core.v2.team.MembersUnsuspendArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MembersUnsuspendError": {"fq_name": "team.MembersUnsuspendError", "java_class": "com.dropbox.core.v2.team.MembersUnsuspendError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.MobileClientPlatform": {"fq_name": "team.MobileClientPlatform", "java_class": "com.dropbox.core.v2.team.MobileClientPlatform", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team.MobileClientSession": {"fq_name": "team.MobileClientSession", "java_class": "com.dropbox.core.v2.team.MobileClientSession", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.MobileClientSession.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.NamespaceMetadata": {"fq_name": "team.NamespaceMetadata", "java_class": "com.dropbox.core.v2.team.NamespaceMetadata", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.NamespaceType": {"fq_name": "team.NamespaceType", "java_class": "com.dropbox.core.v2.team.NamespaceType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RemoveCustomQuotaResult": {"fq_name": "team.RemoveCustomQuotaResult", "java_class": "com.dropbox.core.v2.team.RemoveCustomQuotaResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RemovedStatus": {"fq_name": "team.RemovedStatus", "java_class": "com.dropbox.core.v2.team.RemovedStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ResendSecondaryEmailResult": {"fq_name": "team.ResendSecondaryEmailResult", "java_class": "com.dropbox.core.v2.team.ResendSecondaryEmailResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ResendVerificationEmailArg": {"fq_name": "team.ResendVerificationEmailArg", "java_class": "com.dropbox.core.v2.team.ResendVerificationEmailArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.ResendVerificationEmailResult": {"fq_name": "team.ResendVerificationEmailResult", "java_class": "com.dropbox.core.v2.team.ResendVerificationEmailResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeDesktopClientArg": {"fq_name": "team.RevokeDesktopClientArg", "java_class": "com.dropbox.core.v2.team.RevokeDesktopClientArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeDeviceSessionArg": {"fq_name": "team.RevokeDeviceSessionArg", "java_class": "com.dropbox.core.v2.team.RevokeDeviceSessionArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeDeviceSessionBatchArg": {"fq_name": "team.RevokeDeviceSessionBatchArg", "java_class": "com.dropbox.core.v2.team.RevokeDeviceSessionBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeDeviceSessionBatchError": {"fq_name": "team.RevokeDeviceSessionBatchError", "java_class": "com.dropbox.core.v2.team.RevokeDeviceSessionBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeDeviceSessionBatchResult": {"fq_name": "team.RevokeDeviceSessionBatchResult", "java_class": "com.dropbox.core.v2.team.RevokeDeviceSessionBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeDeviceSessionError": {"fq_name": "team.RevokeDeviceSessionError", "java_class": "com.dropbox.core.v2.team.RevokeDeviceSessionError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeDeviceSessionStatus": {"fq_name": "team.RevokeDeviceSessionStatus", "java_class": "com.dropbox.core.v2.team.RevokeDeviceSessionStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeLinkedApiAppArg": {"fq_name": "team.RevokeLinkedApiAppArg", "java_class": "com.dropbox.core.v2.team.RevokeLinkedApiAppArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeLinkedApiAppBatchArg": {"fq_name": "team.RevokeLinkedApiAppBatchArg", "java_class": "com.dropbox.core.v2.team.RevokeLinkedApiAppBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeLinkedAppBatchError": {"fq_name": "team.RevokeLinkedAppBatchError", "java_class": "com.dropbox.core.v2.team.RevokeLinkedAppBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeLinkedAppBatchResult": {"fq_name": "team.RevokeLinkedAppBatchResult", "java_class": "com.dropbox.core.v2.team.RevokeLinkedAppBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeLinkedAppError": {"fq_name": "team.RevokeLinkedAppError", "java_class": "com.dropbox.core.v2.team.RevokeLinkedAppError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.RevokeLinkedAppStatus": {"fq_name": "team.RevokeLinkedAppStatus", "java_class": "com.dropbox.core.v2.team.RevokeLinkedAppStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SetCustomQuotaArg": {"fq_name": "team.SetCustomQuotaArg", "java_class": "com.dropbox.core.v2.team.SetCustomQuotaArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SetCustomQuotaError": {"fq_name": "team.SetCustomQuotaError", "java_class": "com.dropbox.core.v2.team.SetCustomQuotaError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistAddArgs": {"fq_name": "team.SharingAllowlistAddArgs", "java_class": "com.dropbox.core.v2.team.SharingAllowlistAddArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.SharingAllowlistAddArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistAddError": {"fq_name": "team.SharingAllowlistAddError", "java_class": "com.dropbox.core.v2.team.SharingAllowlistAddError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistAddResponse": {"fq_name": "team.SharingAllowlistAddResponse", "java_class": "com.dropbox.core.v2.team.SharingAllowlistAddResponse", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistListArg": {"fq_name": "team.SharingAllowlistListArg", "java_class": "com.dropbox.core.v2.team.SharingAllowlistListArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistListContinueArg": {"fq_name": "team.SharingAllowlistListContinueArg", "java_class": "com.dropbox.core.v2.team.SharingAllowlistListContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistListContinueError": {"fq_name": "team.SharingAllowlistListContinueError", "java_class": "com.dropbox.core.v2.team.SharingAllowlistListContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistListError": {"fq_name": "team.SharingAllowlistListError", "java_class": "com.dropbox.core.v2.team.SharingAllowlistListError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistListResponse": {"fq_name": "team.SharingAllowlistListResponse", "java_class": "com.dropbox.core.v2.team.SharingAllowlistListResponse", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.SharingAllowlistListResponse.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistRemoveArgs": {"fq_name": "team.SharingAllowlistRemoveArgs", "java_class": "com.dropbox.core.v2.team.SharingAllowlistRemoveArgs", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.SharingAllowlistRemoveArgs.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistRemoveError": {"fq_name": "team.SharingAllowlistRemoveError", "java_class": "com.dropbox.core.v2.team.SharingAllowlistRemoveError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.SharingAllowlistRemoveResponse": {"fq_name": "team.SharingAllowlistRemoveResponse", "java_class": "com.dropbox.core.v2.team.SharingAllowlistRemoveResponse", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.StorageBucket": {"fq_name": "team.StorageBucket", "java_class": "com.dropbox.core.v2.team.StorageBucket", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderAccessError": {"fq_name": "team.TeamFolderAccessError", "java_class": "com.dropbox.core.v2.team.TeamFolderAccessError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderActivateError": {"fq_name": "team.TeamFolderActivateError", "java_class": "com.dropbox.core.v2.team.TeamFolderActivateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderArchiveArg": {"fq_name": "team.TeamFolderArchiveArg", "java_class": "com.dropbox.core.v2.team.TeamFolderArchiveArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderArchiveError": {"fq_name": "team.TeamFolderArchiveError", "java_class": "com.dropbox.core.v2.team.TeamFolderArchiveError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderArchiveJobStatus": {"fq_name": "team.TeamFolderArchiveJobStatus", "java_class": "com.dropbox.core.v2.team.TeamFolderArchiveJobStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderArchiveLaunch": {"fq_name": "team.TeamFolderArchiveLaunch", "java_class": "com.dropbox.core.v2.team.TeamFolderArchiveLaunch", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderCreateArg": {"fq_name": "team.TeamFolderCreateArg", "java_class": "com.dropbox.core.v2.team.TeamFolderCreateArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderCreateError": {"fq_name": "team.TeamFolderCreateError", "java_class": "com.dropbox.core.v2.team.TeamFolderCreateError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderGetInfoItem": {"fq_name": "team.TeamFolderGetInfoItem", "java_class": "com.dropbox.core.v2.team.TeamFolderGetInfoItem", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderIdArg": {"fq_name": "team.TeamFolderIdArg", "java_class": "com.dropbox.core.v2.team.TeamFolderIdArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderIdListArg": {"fq_name": "team.TeamFolderIdListArg", "java_class": "com.dropbox.core.v2.team.TeamFolderIdListArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderInvalidStatusError": {"fq_name": "team.TeamFolderInvalidStatusError", "java_class": "com.dropbox.core.v2.team.TeamFolderInvalidStatusError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderListArg": {"fq_name": "team.TeamFolderListArg", "java_class": "com.dropbox.core.v2.team.TeamFolderListArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderListContinueArg": {"fq_name": "team.TeamFolderListContinueArg", "java_class": "com.dropbox.core.v2.team.TeamFolderListContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderListContinueError": {"fq_name": "team.TeamFolderListContinueError", "java_class": "com.dropbox.core.v2.team.TeamFolderListContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderListError": {"fq_name": "team.TeamFolderListError", "java_class": "com.dropbox.core.v2.team.TeamFolderListError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderListResult": {"fq_name": "team.TeamFolderListResult", "java_class": "com.dropbox.core.v2.team.TeamFolderListResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderMetadata": {"fq_name": "team.TeamFolderMetadata", "java_class": "com.dropbox.core.v2.team.TeamFolderMetadata", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderPermanentlyDeleteError": {"fq_name": "team.TeamFolderPermanentlyDeleteError", "java_class": "com.dropbox.core.v2.team.TeamFolderPermanentlyDeleteError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderRenameArg": {"fq_name": "team.TeamFolderRenameArg", "java_class": "com.dropbox.core.v2.team.TeamFolderRenameArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderRenameError": {"fq_name": "team.TeamFolderRenameError", "java_class": "com.dropbox.core.v2.team.TeamFolderRenameError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderStatus": {"fq_name": "team.TeamFolderStatus", "java_class": "com.dropbox.core.v2.team.TeamFolderStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team.TeamFolderTeamSharedDropboxError": {"fq_name": "team.TeamFolderTeamSharedDropboxError", "java_class": "com.dropbox.core.v2.team.TeamFolderTeamSharedDropboxError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderUpdateSyncSettingsArg": {"fq_name": "team.TeamFolderUpdateSyncSettingsArg", "java_class": "com.dropbox.core.v2.team.TeamFolderUpdateSyncSettingsArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.TeamFolderUpdateSyncSettingsArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamFolderUpdateSyncSettingsError": {"fq_name": "team.TeamFolderUpdateSyncSettingsError", "java_class": "com.dropbox.core.v2.team.TeamFolderUpdateSyncSettingsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamGetInfoResult": {"fq_name": "team.TeamGetInfoResult", "java_class": "com.dropbox.core.v2.team.TeamGetInfoResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamMemberInfo": {"fq_name": "team.TeamMemberInfo", "java_class": "com.dropbox.core.v2.team.TeamMemberInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamMemberInfoV2": {"fq_name": "team.TeamMemberInfoV2", "java_class": "com.dropbox.core.v2.team.TeamMemberInfoV2", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamMemberInfoV2Result": {"fq_name": "team.TeamMemberInfoV2Result", "java_class": "com.dropbox.core.v2.team.TeamMemberInfoV2Result", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamMemberProfile": {"fq_name": "team.TeamMemberProfile", "java_class": "com.dropbox.core.v2.team.TeamMemberProfile", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.team.TeamMemberProfile.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamMemberRole": {"fq_name": "team.TeamMemberRole", "java_class": "com.dropbox.core.v2.team.TeamMemberRole", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamMemberStatus": {"fq_name": "team.TeamMemberStatus", "java_class": "com.dropbox.core.v2.team.TeamMemberStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamMembershipType": {"fq_name": "team.TeamMembershipType", "java_class": "com.dropbox.core.v2.team.TeamMembershipType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamNamespacesListArg": {"fq_name": "team.TeamNamespacesListArg", "java_class": "com.dropbox.core.v2.team.TeamNamespacesListArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamNamespacesListContinueArg": {"fq_name": "team.TeamNamespacesListContinueArg", "java_class": "com.dropbox.core.v2.team.TeamNamespacesListContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamNamespacesListContinueError": {"fq_name": "team.TeamNamespacesListContinueError", "java_class": "com.dropbox.core.v2.team.TeamNamespacesListContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamNamespacesListError": {"fq_name": "team.TeamNamespacesListError", "java_class": "com.dropbox.core.v2.team.TeamNamespacesListError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamNamespacesListResult": {"fq_name": "team.TeamNamespacesListResult", "java_class": "com.dropbox.core.v2.team.TeamNamespacesListResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TeamReportFailureReason": {"fq_name": "team.TeamReportFailureReason", "java_class": "com.dropbox.core.v2.team.TeamReportFailureReason", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team.TokenGetAuthenticatedAdminError": {"fq_name": "team.TokenGetAuthenticatedAdminError", "java_class": "com.dropbox.core.v2.team.TokenGetAuthenticatedAdminError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.TokenGetAuthenticatedAdminResult": {"fq_name": "team.TokenGetAuthenticatedAdminResult", "java_class": "com.dropbox.core.v2.team.TokenGetAuthenticatedAdminResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UploadApiRateLimitValue": {"fq_name": "team.UploadApiRateLimitValue", "java_class": "com.dropbox.core.v2.team.UploadApiRateLimitValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserAddResult": {"fq_name": "team.UserAddResult", "java_class": "com.dropbox.core.v2.team.UserAddResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserCustomQuotaArg": {"fq_name": "team.UserCustomQuotaArg", "java_class": "com.dropbox.core.v2.team.UserCustomQuotaArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserCustomQuotaResult": {"fq_name": "team.UserCustomQuotaResult", "java_class": "com.dropbox.core.v2.team.UserCustomQuotaResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserDeleteEmailsResult": {"fq_name": "team.UserDeleteEmailsResult", "java_class": "com.dropbox.core.v2.team.UserDeleteEmailsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserDeleteResult": {"fq_name": "team.UserDeleteResult", "java_class": "com.dropbox.core.v2.team.UserDeleteResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserResendEmailsResult": {"fq_name": "team.UserResendEmailsResult", "java_class": "com.dropbox.core.v2.team.UserResendEmailsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserResendResult": {"fq_name": "team.UserResendResult", "java_class": "com.dropbox.core.v2.team.UserResendResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserSecondaryEmailsArg": {"fq_name": "team.UserSecondaryEmailsArg", "java_class": "com.dropbox.core.v2.team.UserSecondaryEmailsArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserSecondaryEmailsResult": {"fq_name": "team.UserSecondaryEmailsResult", "java_class": "com.dropbox.core.v2.team.UserSecondaryEmailsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserSelectorArg": {"fq_name": "team.UserSelectorArg", "java_class": "com.dropbox.core.v2.team.UserSelectorArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team.UserSelectorError": {"fq_name": "team.UserSelectorError", "java_class": "com.dropbox.core.v2.team.UserSelectorError", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team.UsersSelectorArg": {"fq_name": "team.UsersSelectorArg", "java_class": "com.dropbox.core.v2.team.UsersSelectorArg", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_common.GroupManagementType": {"fq_name": "team_common.GroupManagementType", "java_class": "com.dropbox.core.v2.teamcommon.GroupManagementType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_common.GroupSummary": {"fq_name": "team_common.GroupSummary", "java_class": "com.dropbox.core.v2.teamcommon.GroupSummary", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamcommon.GroupSummary.Builder", "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_common.GroupType": {"fq_name": "team_common.GroupType", "java_class": "com.dropbox.core.v2.teamcommon.GroupType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_common.MemberSpaceLimitType": {"fq_name": "team_common.MemberSpaceLimitType", "java_class": "com.dropbox.core.v2.teamcommon.MemberSpaceLimitType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_common.TimeRange": {"fq_name": "team_common.TimeRange", "java_class": "com.dropbox.core.v2.teamcommon.TimeRange", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamcommon.TimeRange.Builder", "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_log.AccessMethodLogInfo": {"fq_name": "team_log.AccessMethodLogInfo", "java_class": "com.dropbox.core.v2.teamlog.AccessMethodLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureAvailability": {"fq_name": "team_log.AccountCaptureAvailability", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureAvailability", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureChangeAvailabilityDetails": {"fq_name": "team_log.AccountCaptureChangeAvailabilityDetails", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureChangeAvailabilityDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureChangeAvailabilityType": {"fq_name": "team_log.AccountCaptureChangeAvailabilityType", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureChangeAvailabilityType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureChangePolicyDetails": {"fq_name": "team_log.AccountCaptureChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureChangePolicyType": {"fq_name": "team_log.AccountCaptureChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureMigrateAccountDetails": {"fq_name": "team_log.AccountCaptureMigrateAccountDetails", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureMigrateAccountDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureMigrateAccountType": {"fq_name": "team_log.AccountCaptureMigrateAccountType", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureMigrateAccountType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureNotificationEmailsSentDetails": {"fq_name": "team_log.AccountCaptureNotificationEmailsSentDetails", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureNotificationEmailsSentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureNotificationEmailsSentType": {"fq_name": "team_log.AccountCaptureNotificationEmailsSentType", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureNotificationEmailsSentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureNotificationType": {"fq_name": "team_log.AccountCaptureNotificationType", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureNotificationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCapturePolicy": {"fq_name": "team_log.AccountCapturePolicy", "java_class": "com.dropbox.core.v2.teamlog.AccountCapturePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureRelinquishAccountDetails": {"fq_name": "team_log.AccountCaptureRelinquishAccountDetails", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureRelinquishAccountDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountCaptureRelinquishAccountType": {"fq_name": "team_log.AccountCaptureRelinquishAccountType", "java_class": "com.dropbox.core.v2.teamlog.AccountCaptureRelinquishAccountType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountLockOrUnlockedDetails": {"fq_name": "team_log.AccountLockOrUnlockedDetails", "java_class": "com.dropbox.core.v2.teamlog.AccountLockOrUnlockedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountLockOrUnlockedType": {"fq_name": "team_log.AccountLockOrUnlockedType", "java_class": "com.dropbox.core.v2.teamlog.AccountLockOrUnlockedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AccountState": {"fq_name": "team_log.AccountState", "java_class": "com.dropbox.core.v2.teamlog.AccountState", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ActionDetails": {"fq_name": "team_log.ActionDetails", "java_class": "com.dropbox.core.v2.teamlog.ActionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ActorLogInfo": {"fq_name": "team_log.ActorLogInfo", "java_class": "com.dropbox.core.v2.teamlog.ActorLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertCategoryEnum": {"fq_name": "team_log.AdminAlertCategoryEnum", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertCategoryEnum", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertGeneralStateEnum": {"fq_name": "team_log.AdminAlertGeneralStateEnum", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertGeneralStateEnum", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertSeverityEnum": {"fq_name": "team_log.AdminAlertSeverityEnum", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertSeverityEnum", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingAlertConfiguration": {"fq_name": "team_log.AdminAlertingAlertConfiguration", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingAlertConfiguration", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.AdminAlertingAlertConfiguration.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingAlertSensitivity": {"fq_name": "team_log.AdminAlertingAlertSensitivity", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingAlertSensitivity", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingAlertStateChangedDetails": {"fq_name": "team_log.AdminAlertingAlertStateChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingAlertStateChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingAlertStateChangedType": {"fq_name": "team_log.AdminAlertingAlertStateChangedType", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingAlertStateChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingAlertStatePolicy": {"fq_name": "team_log.AdminAlertingAlertStatePolicy", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingAlertStatePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingChangedAlertConfigDetails": {"fq_name": "team_log.AdminAlertingChangedAlertConfigDetails", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingChangedAlertConfigDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingChangedAlertConfigType": {"fq_name": "team_log.AdminAlertingChangedAlertConfigType", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingChangedAlertConfigType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingTriggeredAlertDetails": {"fq_name": "team_log.AdminAlertingTriggeredAlertDetails", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingTriggeredAlertDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminAlertingTriggeredAlertType": {"fq_name": "team_log.AdminAlertingTriggeredAlertType", "java_class": "com.dropbox.core.v2.teamlog.AdminAlertingTriggeredAlertType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminConsoleAppPermission": {"fq_name": "team_log.AdminConsoleAppPermission", "java_class": "com.dropbox.core.v2.teamlog.AdminConsoleAppPermission", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminConsoleAppPolicy": {"fq_name": "team_log.AdminConsoleAppPolicy", "java_class": "com.dropbox.core.v2.teamlog.AdminConsoleAppPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminEmailRemindersChangedDetails": {"fq_name": "team_log.AdminEmailRemindersChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.AdminEmailRemindersChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminEmailRemindersChangedType": {"fq_name": "team_log.AdminEmailRemindersChangedType", "java_class": "com.dropbox.core.v2.teamlog.AdminEmailRemindersChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminEmailRemindersPolicy": {"fq_name": "team_log.AdminEmailRemindersPolicy", "java_class": "com.dropbox.core.v2.teamlog.AdminEmailRemindersPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AdminRole": {"fq_name": "team_log.AdminRole", "java_class": "com.dropbox.core.v2.teamlog.AdminRole", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AlertRecipientsSettingType": {"fq_name": "team_log.AlertRecipientsSettingType", "java_class": "com.dropbox.core.v2.teamlog.AlertRecipientsSettingType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AllowDownloadDisabledDetails": {"fq_name": "team_log.AllowDownloadDisabledDetails", "java_class": "com.dropbox.core.v2.teamlog.AllowDownloadDisabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AllowDownloadDisabledType": {"fq_name": "team_log.AllowDownloadDisabledType", "java_class": "com.dropbox.core.v2.teamlog.AllowDownloadDisabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AllowDownloadEnabledDetails": {"fq_name": "team_log.AllowDownloadEnabledDetails", "java_class": "com.dropbox.core.v2.teamlog.AllowDownloadEnabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AllowDownloadEnabledType": {"fq_name": "team_log.AllowDownloadEnabledType", "java_class": "com.dropbox.core.v2.teamlog.AllowDownloadEnabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ApiSessionLogInfo": {"fq_name": "team_log.ApiSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.ApiSessionLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppBlockedByPermissionsDetails": {"fq_name": "team_log.AppBlockedByPermissionsDetails", "java_class": "com.dropbox.core.v2.teamlog.AppBlockedByPermissionsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppBlockedByPermissionsType": {"fq_name": "team_log.AppBlockedByPermissionsType", "java_class": "com.dropbox.core.v2.teamlog.AppBlockedByPermissionsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppLinkTeamDetails": {"fq_name": "team_log.AppLinkTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.AppLinkTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppLinkTeamType": {"fq_name": "team_log.AppLinkTeamType", "java_class": "com.dropbox.core.v2.teamlog.AppLinkTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppLinkUserDetails": {"fq_name": "team_log.AppLinkUserDetails", "java_class": "com.dropbox.core.v2.teamlog.AppLinkUserDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppLinkUserType": {"fq_name": "team_log.AppLinkUserType", "java_class": "com.dropbox.core.v2.teamlog.AppLinkUserType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppLogInfo": {"fq_name": "team_log.AppLogInfo", "java_class": "com.dropbox.core.v2.teamlog.AppLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.AppLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppPermissionsChangedDetails": {"fq_name": "team_log.AppPermissionsChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.AppPermissionsChangedDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.AppPermissionsChangedDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppPermissionsChangedType": {"fq_name": "team_log.AppPermissionsChangedType", "java_class": "com.dropbox.core.v2.teamlog.AppPermissionsChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppUnlinkTeamDetails": {"fq_name": "team_log.AppUnlinkTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.AppUnlinkTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppUnlinkTeamType": {"fq_name": "team_log.AppUnlinkTeamType", "java_class": "com.dropbox.core.v2.teamlog.AppUnlinkTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppUnlinkUserDetails": {"fq_name": "team_log.AppUnlinkUserDetails", "java_class": "com.dropbox.core.v2.teamlog.AppUnlinkUserDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AppUnlinkUserType": {"fq_name": "team_log.AppUnlinkUserType", "java_class": "com.dropbox.core.v2.teamlog.AppUnlinkUserType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ApplyNamingConventionDetails": {"fq_name": "team_log.ApplyNamingConventionDetails", "java_class": "com.dropbox.core.v2.teamlog.ApplyNamingConventionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ApplyNamingConventionType": {"fq_name": "team_log.ApplyNamingConventionType", "java_class": "com.dropbox.core.v2.teamlog.ApplyNamingConventionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.AssetLogInfo": {"fq_name": "team_log.AssetLogInfo", "java_class": "com.dropbox.core.v2.teamlog.AssetLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BackupAdminInvitationSentDetails": {"fq_name": "team_log.BackupAdminInvitationSentDetails", "java_class": "com.dropbox.core.v2.teamlog.BackupAdminInvitationSentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BackupAdminInvitationSentType": {"fq_name": "team_log.BackupAdminInvitationSentType", "java_class": "com.dropbox.core.v2.teamlog.BackupAdminInvitationSentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BackupInvitationOpenedDetails": {"fq_name": "team_log.BackupInvitationOpenedDetails", "java_class": "com.dropbox.core.v2.teamlog.BackupInvitationOpenedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BackupInvitationOpenedType": {"fq_name": "team_log.BackupInvitationOpenedType", "java_class": "com.dropbox.core.v2.teamlog.BackupInvitationOpenedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BackupStatus": {"fq_name": "team_log.BackupStatus", "java_class": "com.dropbox.core.v2.teamlog.BackupStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderAddPageDetails": {"fq_name": "team_log.BinderAddPageDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderAddPageDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderAddPageType": {"fq_name": "team_log.BinderAddPageType", "java_class": "com.dropbox.core.v2.teamlog.BinderAddPageType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderAddSectionDetails": {"fq_name": "team_log.BinderAddSectionDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderAddSectionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderAddSectionType": {"fq_name": "team_log.BinderAddSectionType", "java_class": "com.dropbox.core.v2.teamlog.BinderAddSectionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRemovePageDetails": {"fq_name": "team_log.BinderRemovePageDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderRemovePageDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRemovePageType": {"fq_name": "team_log.BinderRemovePageType", "java_class": "com.dropbox.core.v2.teamlog.BinderRemovePageType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRemoveSectionDetails": {"fq_name": "team_log.BinderRemoveSectionDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderRemoveSectionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRemoveSectionType": {"fq_name": "team_log.BinderRemoveSectionType", "java_class": "com.dropbox.core.v2.teamlog.BinderRemoveSectionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRenamePageDetails": {"fq_name": "team_log.BinderRenamePageDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderRenamePageDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRenamePageType": {"fq_name": "team_log.BinderRenamePageType", "java_class": "com.dropbox.core.v2.teamlog.BinderRenamePageType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRenameSectionDetails": {"fq_name": "team_log.BinderRenameSectionDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderRenameSectionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderRenameSectionType": {"fq_name": "team_log.BinderRenameSectionType", "java_class": "com.dropbox.core.v2.teamlog.BinderRenameSectionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderReorderPageDetails": {"fq_name": "team_log.BinderReorderPageDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderReorderPageDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderReorderPageType": {"fq_name": "team_log.BinderReorderPageType", "java_class": "com.dropbox.core.v2.teamlog.BinderReorderPageType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderReorderSectionDetails": {"fq_name": "team_log.BinderReorderSectionDetails", "java_class": "com.dropbox.core.v2.teamlog.BinderReorderSectionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.BinderReorderSectionType": {"fq_name": "team_log.BinderReorderSectionType", "java_class": "com.dropbox.core.v2.teamlog.BinderReorderSectionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CameraUploadsPolicy": {"fq_name": "team_log.CameraUploadsPolicy", "java_class": "com.dropbox.core.v2.teamlog.CameraUploadsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CameraUploadsPolicyChangedDetails": {"fq_name": "team_log.CameraUploadsPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.CameraUploadsPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CameraUploadsPolicyChangedType": {"fq_name": "team_log.CameraUploadsPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.CameraUploadsPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CaptureTranscriptPolicy": {"fq_name": "team_log.CaptureTranscriptPolicy", "java_class": "com.dropbox.core.v2.teamlog.CaptureTranscriptPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CaptureTranscriptPolicyChangedDetails": {"fq_name": "team_log.CaptureTranscriptPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.CaptureTranscriptPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CaptureTranscriptPolicyChangedType": {"fq_name": "team_log.CaptureTranscriptPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.CaptureTranscriptPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.Certificate": {"fq_name": "team_log.Certificate", "java_class": "com.dropbox.core.v2.teamlog.Certificate", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ChangeLinkExpirationPolicy": {"fq_name": "team_log.ChangeLinkExpirationPolicy", "java_class": "com.dropbox.core.v2.teamlog.ChangeLinkExpirationPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ChangedEnterpriseAdminRoleDetails": {"fq_name": "team_log.ChangedEnterpriseAdminRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.ChangedEnterpriseAdminRoleDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ChangedEnterpriseAdminRoleType": {"fq_name": "team_log.ChangedEnterpriseAdminRoleType", "java_class": "com.dropbox.core.v2.teamlog.ChangedEnterpriseAdminRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ChangedEnterpriseConnectedTeamStatusDetails": {"fq_name": "team_log.ChangedEnterpriseConnectedTeamStatusDetails", "java_class": "com.dropbox.core.v2.teamlog.ChangedEnterpriseConnectedTeamStatusDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ChangedEnterpriseConnectedTeamStatusType": {"fq_name": "team_log.ChangedEnterpriseConnectedTeamStatusType", "java_class": "com.dropbox.core.v2.teamlog.ChangedEnterpriseConnectedTeamStatusType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationChangePolicyDetails": {"fq_name": "team_log.ClassificationChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.ClassificationChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationChangePolicyType": {"fq_name": "team_log.ClassificationChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.ClassificationChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationCreateReportDetails": {"fq_name": "team_log.ClassificationCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.ClassificationCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationCreateReportFailDetails": {"fq_name": "team_log.ClassificationCreateReportFailDetails", "java_class": "com.dropbox.core.v2.teamlog.ClassificationCreateReportFailDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationCreateReportFailType": {"fq_name": "team_log.ClassificationCreateReportFailType", "java_class": "com.dropbox.core.v2.teamlog.ClassificationCreateReportFailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationCreateReportType": {"fq_name": "team_log.ClassificationCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.ClassificationCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationPolicyEnumWrapper": {"fq_name": "team_log.ClassificationPolicyEnumWrapper", "java_class": "com.dropbox.core.v2.teamlog.ClassificationPolicyEnumWrapper", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ClassificationType": {"fq_name": "team_log.ClassificationType", "java_class": "com.dropbox.core.v2.teamlog.ClassificationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CollectionShareDetails": {"fq_name": "team_log.CollectionShareDetails", "java_class": "com.dropbox.core.v2.teamlog.CollectionShareDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CollectionShareType": {"fq_name": "team_log.CollectionShareType", "java_class": "com.dropbox.core.v2.teamlog.CollectionShareType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ComputerBackupPolicy": {"fq_name": "team_log.ComputerBackupPolicy", "java_class": "com.dropbox.core.v2.teamlog.ComputerBackupPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ComputerBackupPolicyChangedDetails": {"fq_name": "team_log.ComputerBackupPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.ComputerBackupPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ComputerBackupPolicyChangedType": {"fq_name": "team_log.ComputerBackupPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.ComputerBackupPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ConnectedTeamName": {"fq_name": "team_log.ConnectedTeamName", "java_class": "com.dropbox.core.v2.teamlog.ConnectedTeamName", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ContentAdministrationPolicyChangedDetails": {"fq_name": "team_log.ContentAdministrationPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.ContentAdministrationPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ContentAdministrationPolicyChangedType": {"fq_name": "team_log.ContentAdministrationPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.ContentAdministrationPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ContentPermanentDeletePolicy": {"fq_name": "team_log.ContentPermanentDeletePolicy", "java_class": "com.dropbox.core.v2.teamlog.ContentPermanentDeletePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ContextLogInfo": {"fq_name": "team_log.ContextLogInfo", "java_class": "com.dropbox.core.v2.teamlog.ContextLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CreateFolderDetails": {"fq_name": "team_log.CreateFolderDetails", "java_class": "com.dropbox.core.v2.teamlog.CreateFolderDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CreateFolderType": {"fq_name": "team_log.CreateFolderType", "java_class": "com.dropbox.core.v2.teamlog.CreateFolderType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CreateTeamInviteLinkDetails": {"fq_name": "team_log.CreateTeamInviteLinkDetails", "java_class": "com.dropbox.core.v2.teamlog.CreateTeamInviteLinkDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.CreateTeamInviteLinkType": {"fq_name": "team_log.CreateTeamInviteLinkType", "java_class": "com.dropbox.core.v2.teamlog.CreateTeamInviteLinkType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataPlacementRestrictionChangePolicyDetails": {"fq_name": "team_log.DataPlacementRestrictionChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.DataPlacementRestrictionChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataPlacementRestrictionChangePolicyType": {"fq_name": "team_log.DataPlacementRestrictionChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.DataPlacementRestrictionChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataPlacementRestrictionSatisfyPolicyDetails": {"fq_name": "team_log.DataPlacementRestrictionSatisfyPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.DataPlacementRestrictionSatisfyPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataPlacementRestrictionSatisfyPolicyType": {"fq_name": "team_log.DataPlacementRestrictionSatisfyPolicyType", "java_class": "com.dropbox.core.v2.teamlog.DataPlacementRestrictionSatisfyPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataResidencyMigrationRequestSuccessfulDetails": {"fq_name": "team_log.DataResidencyMigrationRequestSuccessfulDetails", "java_class": "com.dropbox.core.v2.teamlog.DataResidencyMigrationRequestSuccessfulDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataResidencyMigrationRequestSuccessfulType": {"fq_name": "team_log.DataResidencyMigrationRequestSuccessfulType", "java_class": "com.dropbox.core.v2.teamlog.DataResidencyMigrationRequestSuccessfulType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataResidencyMigrationRequestUnsuccessfulDetails": {"fq_name": "team_log.DataResidencyMigrationRequestUnsuccessfulDetails", "java_class": "com.dropbox.core.v2.teamlog.DataResidencyMigrationRequestUnsuccessfulDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DataResidencyMigrationRequestUnsuccessfulType": {"fq_name": "team_log.DataResidencyMigrationRequestUnsuccessfulType", "java_class": "com.dropbox.core.v2.teamlog.DataResidencyMigrationRequestUnsuccessfulType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DefaultLinkExpirationDaysPolicy": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy", "java_class": "com.dropbox.core.v2.teamlog.DefaultLinkExpirationDaysPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeleteTeamInviteLinkDetails": {"fq_name": "team_log.DeleteTeamInviteLinkDetails", "java_class": "com.dropbox.core.v2.teamlog.DeleteTeamInviteLinkDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeleteTeamInviteLinkType": {"fq_name": "team_log.DeleteTeamInviteLinkType", "java_class": "com.dropbox.core.v2.teamlog.DeleteTeamInviteLinkType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DesktopDeviceSessionLogInfo": {"fq_name": "team_log.DesktopDeviceSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.DesktopDeviceSessionLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DesktopDeviceSessionLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DesktopSessionLogInfo": {"fq_name": "team_log.DesktopSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.DesktopSessionLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsAddExceptionDetails": {"fq_name": "team_log.DeviceApprovalsAddExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsAddExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsAddExceptionType": {"fq_name": "team_log.DeviceApprovalsAddExceptionType", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsAddExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeDesktopPolicyDetails": {"fq_name": "team_log.DeviceApprovalsChangeDesktopPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeDesktopPolicyDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeDesktopPolicyDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeDesktopPolicyType": {"fq_name": "team_log.DeviceApprovalsChangeDesktopPolicyType", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeDesktopPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeMobilePolicyDetails": {"fq_name": "team_log.DeviceApprovalsChangeMobilePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeMobilePolicyDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeMobilePolicyDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeMobilePolicyType": {"fq_name": "team_log.DeviceApprovalsChangeMobilePolicyType", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeMobilePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeOverageActionDetails": {"fq_name": "team_log.DeviceApprovalsChangeOverageActionDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeOverageActionDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeOverageActionDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeOverageActionType": {"fq_name": "team_log.DeviceApprovalsChangeOverageActionType", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeOverageActionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeUnlinkActionDetails": {"fq_name": "team_log.DeviceApprovalsChangeUnlinkActionDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeUnlinkActionDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeUnlinkActionDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsChangeUnlinkActionType": {"fq_name": "team_log.DeviceApprovalsChangeUnlinkActionType", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsChangeUnlinkActionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsPolicy": {"fq_name": "team_log.DeviceApprovalsPolicy", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsRemoveExceptionDetails": {"fq_name": "team_log.DeviceApprovalsRemoveExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsRemoveExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceApprovalsRemoveExceptionType": {"fq_name": "team_log.DeviceApprovalsRemoveExceptionType", "java_class": "com.dropbox.core.v2.teamlog.DeviceApprovalsRemoveExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceChangeIpDesktopDetails": {"fq_name": "team_log.DeviceChangeIpDesktopDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceChangeIpDesktopDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceChangeIpDesktopType": {"fq_name": "team_log.DeviceChangeIpDesktopType", "java_class": "com.dropbox.core.v2.teamlog.DeviceChangeIpDesktopType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceChangeIpMobileDetails": {"fq_name": "team_log.DeviceChangeIpMobileDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceChangeIpMobileDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceChangeIpMobileType": {"fq_name": "team_log.DeviceChangeIpMobileType", "java_class": "com.dropbox.core.v2.teamlog.DeviceChangeIpMobileType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceChangeIpWebDetails": {"fq_name": "team_log.DeviceChangeIpWebDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceChangeIpWebDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceChangeIpWebType": {"fq_name": "team_log.DeviceChangeIpWebType", "java_class": "com.dropbox.core.v2.teamlog.DeviceChangeIpWebType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceDeleteOnUnlinkFailDetails": {"fq_name": "team_log.DeviceDeleteOnUnlinkFailDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceDeleteOnUnlinkFailDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceDeleteOnUnlinkFailDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceDeleteOnUnlinkFailType": {"fq_name": "team_log.DeviceDeleteOnUnlinkFailType", "java_class": "com.dropbox.core.v2.teamlog.DeviceDeleteOnUnlinkFailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceDeleteOnUnlinkSuccessDetails": {"fq_name": "team_log.DeviceDeleteOnUnlinkSuccessDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceDeleteOnUnlinkSuccessDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceDeleteOnUnlinkSuccessDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceDeleteOnUnlinkSuccessType": {"fq_name": "team_log.DeviceDeleteOnUnlinkSuccessType", "java_class": "com.dropbox.core.v2.teamlog.DeviceDeleteOnUnlinkSuccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceLinkFailDetails": {"fq_name": "team_log.DeviceLinkFailDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceLinkFailDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceLinkFailType": {"fq_name": "team_log.DeviceLinkFailType", "java_class": "com.dropbox.core.v2.teamlog.DeviceLinkFailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceLinkSuccessDetails": {"fq_name": "team_log.DeviceLinkSuccessDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceLinkSuccessDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceLinkSuccessType": {"fq_name": "team_log.DeviceLinkSuccessType", "java_class": "com.dropbox.core.v2.teamlog.DeviceLinkSuccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceManagementDisabledDetails": {"fq_name": "team_log.DeviceManagementDisabledDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceManagementDisabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceManagementDisabledType": {"fq_name": "team_log.DeviceManagementDisabledType", "java_class": "com.dropbox.core.v2.teamlog.DeviceManagementDisabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceManagementEnabledDetails": {"fq_name": "team_log.DeviceManagementEnabledDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceManagementEnabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceManagementEnabledType": {"fq_name": "team_log.DeviceManagementEnabledType", "java_class": "com.dropbox.core.v2.teamlog.DeviceManagementEnabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceSessionLogInfo": {"fq_name": "team_log.DeviceSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.DeviceSessionLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceSessionLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceSyncBackupStatusChangedDetails": {"fq_name": "team_log.DeviceSyncBackupStatusChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceSyncBackupStatusChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceSyncBackupStatusChangedType": {"fq_name": "team_log.DeviceSyncBackupStatusChangedType", "java_class": "com.dropbox.core.v2.teamlog.DeviceSyncBackupStatusChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceType": {"fq_name": "team_log.DeviceType", "java_class": "com.dropbox.core.v2.teamlog.DeviceType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceUnlinkDetails": {"fq_name": "team_log.DeviceUnlinkDetails", "java_class": "com.dropbox.core.v2.teamlog.DeviceUnlinkDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.DeviceUnlinkDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceUnlinkPolicy": {"fq_name": "team_log.DeviceUnlinkPolicy", "java_class": "com.dropbox.core.v2.teamlog.DeviceUnlinkPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DeviceUnlinkType": {"fq_name": "team_log.DeviceUnlinkType", "java_class": "com.dropbox.core.v2.teamlog.DeviceUnlinkType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DirectoryRestrictionsAddMembersDetails": {"fq_name": "team_log.DirectoryRestrictionsAddMembersDetails", "java_class": "com.dropbox.core.v2.teamlog.DirectoryRestrictionsAddMembersDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DirectoryRestrictionsAddMembersType": {"fq_name": "team_log.DirectoryRestrictionsAddMembersType", "java_class": "com.dropbox.core.v2.teamlog.DirectoryRestrictionsAddMembersType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DirectoryRestrictionsRemoveMembersDetails": {"fq_name": "team_log.DirectoryRestrictionsRemoveMembersDetails", "java_class": "com.dropbox.core.v2.teamlog.DirectoryRestrictionsRemoveMembersDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DirectoryRestrictionsRemoveMembersType": {"fq_name": "team_log.DirectoryRestrictionsRemoveMembersType", "java_class": "com.dropbox.core.v2.teamlog.DirectoryRestrictionsRemoveMembersType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DisabledDomainInvitesDetails": {"fq_name": "team_log.DisabledDomainInvitesDetails", "java_class": "com.dropbox.core.v2.teamlog.DisabledDomainInvitesDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DisabledDomainInvitesType": {"fq_name": "team_log.DisabledDomainInvitesType", "java_class": "com.dropbox.core.v2.teamlog.DisabledDomainInvitesType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DispositionActionType": {"fq_name": "team_log.DispositionActionType", "java_class": "com.dropbox.core.v2.teamlog.DispositionActionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesApproveRequestToJoinTeamDetails": {"fq_name": "team_log.DomainInvitesApproveRequestToJoinTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesApproveRequestToJoinTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesApproveRequestToJoinTeamType": {"fq_name": "team_log.DomainInvitesApproveRequestToJoinTeamType", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesApproveRequestToJoinTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesDeclineRequestToJoinTeamDetails": {"fq_name": "team_log.DomainInvitesDeclineRequestToJoinTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesDeclineRequestToJoinTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesDeclineRequestToJoinTeamType": {"fq_name": "team_log.DomainInvitesDeclineRequestToJoinTeamType", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesDeclineRequestToJoinTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesEmailExistingUsersDetails": {"fq_name": "team_log.DomainInvitesEmailExistingUsersDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesEmailExistingUsersDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesEmailExistingUsersType": {"fq_name": "team_log.DomainInvitesEmailExistingUsersType", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesEmailExistingUsersType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesRequestToJoinTeamDetails": {"fq_name": "team_log.DomainInvitesRequestToJoinTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesRequestToJoinTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesRequestToJoinTeamType": {"fq_name": "team_log.DomainInvitesRequestToJoinTeamType", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesRequestToJoinTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesSetInviteNewUserPrefToNoDetails": {"fq_name": "team_log.DomainInvitesSetInviteNewUserPrefToNoDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesSetInviteNewUserPrefToNoDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesSetInviteNewUserPrefToNoType": {"fq_name": "team_log.DomainInvitesSetInviteNewUserPrefToNoType", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesSetInviteNewUserPrefToNoType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesSetInviteNewUserPrefToYesDetails": {"fq_name": "team_log.DomainInvitesSetInviteNewUserPrefToYesDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesSetInviteNewUserPrefToYesDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainInvitesSetInviteNewUserPrefToYesType": {"fq_name": "team_log.DomainInvitesSetInviteNewUserPrefToYesType", "java_class": "com.dropbox.core.v2.teamlog.DomainInvitesSetInviteNewUserPrefToYesType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainVerificationAddDomainFailDetails": {"fq_name": "team_log.DomainVerificationAddDomainFailDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainVerificationAddDomainFailDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainVerificationAddDomainFailType": {"fq_name": "team_log.DomainVerificationAddDomainFailType", "java_class": "com.dropbox.core.v2.teamlog.DomainVerificationAddDomainFailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainVerificationAddDomainSuccessDetails": {"fq_name": "team_log.DomainVerificationAddDomainSuccessDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainVerificationAddDomainSuccessDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainVerificationAddDomainSuccessType": {"fq_name": "team_log.DomainVerificationAddDomainSuccessType", "java_class": "com.dropbox.core.v2.teamlog.DomainVerificationAddDomainSuccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainVerificationRemoveDomainDetails": {"fq_name": "team_log.DomainVerificationRemoveDomainDetails", "java_class": "com.dropbox.core.v2.teamlog.DomainVerificationRemoveDomainDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DomainVerificationRemoveDomainType": {"fq_name": "team_log.DomainVerificationRemoveDomainType", "java_class": "com.dropbox.core.v2.teamlog.DomainVerificationRemoveDomainType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DownloadPolicyType": {"fq_name": "team_log.DownloadPolicyType", "java_class": "com.dropbox.core.v2.teamlog.DownloadPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DropboxPasswordsExportedDetails": {"fq_name": "team_log.DropboxPasswordsExportedDetails", "java_class": "com.dropbox.core.v2.teamlog.DropboxPasswordsExportedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DropboxPasswordsExportedType": {"fq_name": "team_log.DropboxPasswordsExportedType", "java_class": "com.dropbox.core.v2.teamlog.DropboxPasswordsExportedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DropboxPasswordsNewDeviceEnrolledDetails": {"fq_name": "team_log.DropboxPasswordsNewDeviceEnrolledDetails", "java_class": "com.dropbox.core.v2.teamlog.DropboxPasswordsNewDeviceEnrolledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DropboxPasswordsNewDeviceEnrolledType": {"fq_name": "team_log.DropboxPasswordsNewDeviceEnrolledType", "java_class": "com.dropbox.core.v2.teamlog.DropboxPasswordsNewDeviceEnrolledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DropboxPasswordsPolicy": {"fq_name": "team_log.DropboxPasswordsPolicy", "java_class": "com.dropbox.core.v2.teamlog.DropboxPasswordsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DropboxPasswordsPolicyChangedDetails": {"fq_name": "team_log.DropboxPasswordsPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.DropboxPasswordsPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DropboxPasswordsPolicyChangedType": {"fq_name": "team_log.DropboxPasswordsPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.DropboxPasswordsPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.DurationLogInfo": {"fq_name": "team_log.DurationLogInfo", "java_class": "com.dropbox.core.v2.teamlog.DurationLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmailIngestPolicy": {"fq_name": "team_log.EmailIngestPolicy", "java_class": "com.dropbox.core.v2.teamlog.EmailIngestPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmailIngestPolicyChangedDetails": {"fq_name": "team_log.EmailIngestPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.EmailIngestPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmailIngestPolicyChangedType": {"fq_name": "team_log.EmailIngestPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.EmailIngestPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmailIngestReceiveFileDetails": {"fq_name": "team_log.EmailIngestReceiveFileDetails", "java_class": "com.dropbox.core.v2.teamlog.EmailIngestReceiveFileDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.EmailIngestReceiveFileDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmailIngestReceiveFileType": {"fq_name": "team_log.EmailIngestReceiveFileType", "java_class": "com.dropbox.core.v2.teamlog.EmailIngestReceiveFileType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmAddExceptionDetails": {"fq_name": "team_log.EmmAddExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.EmmAddExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmAddExceptionType": {"fq_name": "team_log.EmmAddExceptionType", "java_class": "com.dropbox.core.v2.teamlog.EmmAddExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmChangePolicyDetails": {"fq_name": "team_log.EmmChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.EmmChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmChangePolicyType": {"fq_name": "team_log.EmmChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.EmmChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmCreateExceptionsReportDetails": {"fq_name": "team_log.EmmCreateExceptionsReportDetails", "java_class": "com.dropbox.core.v2.teamlog.EmmCreateExceptionsReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmCreateExceptionsReportType": {"fq_name": "team_log.EmmCreateExceptionsReportType", "java_class": "com.dropbox.core.v2.teamlog.EmmCreateExceptionsReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmCreateUsageReportDetails": {"fq_name": "team_log.EmmCreateUsageReportDetails", "java_class": "com.dropbox.core.v2.teamlog.EmmCreateUsageReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmCreateUsageReportType": {"fq_name": "team_log.EmmCreateUsageReportType", "java_class": "com.dropbox.core.v2.teamlog.EmmCreateUsageReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmErrorDetails": {"fq_name": "team_log.EmmErrorDetails", "java_class": "com.dropbox.core.v2.teamlog.EmmErrorDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmErrorType": {"fq_name": "team_log.EmmErrorType", "java_class": "com.dropbox.core.v2.teamlog.EmmErrorType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmRefreshAuthTokenDetails": {"fq_name": "team_log.EmmRefreshAuthTokenDetails", "java_class": "com.dropbox.core.v2.teamlog.EmmRefreshAuthTokenDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmRefreshAuthTokenType": {"fq_name": "team_log.EmmRefreshAuthTokenType", "java_class": "com.dropbox.core.v2.teamlog.EmmRefreshAuthTokenType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmRemoveExceptionDetails": {"fq_name": "team_log.EmmRemoveExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.EmmRemoveExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EmmRemoveExceptionType": {"fq_name": "team_log.EmmRemoveExceptionType", "java_class": "com.dropbox.core.v2.teamlog.EmmRemoveExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EnabledDomainInvitesDetails": {"fq_name": "team_log.EnabledDomainInvitesDetails", "java_class": "com.dropbox.core.v2.teamlog.EnabledDomainInvitesDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EnabledDomainInvitesType": {"fq_name": "team_log.EnabledDomainInvitesType", "java_class": "com.dropbox.core.v2.teamlog.EnabledDomainInvitesType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EndedEnterpriseAdminSessionDeprecatedDetails": {"fq_name": "team_log.EndedEnterpriseAdminSessionDeprecatedDetails", "java_class": "com.dropbox.core.v2.teamlog.EndedEnterpriseAdminSessionDeprecatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EndedEnterpriseAdminSessionDeprecatedType": {"fq_name": "team_log.EndedEnterpriseAdminSessionDeprecatedType", "java_class": "com.dropbox.core.v2.teamlog.EndedEnterpriseAdminSessionDeprecatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EndedEnterpriseAdminSessionDetails": {"fq_name": "team_log.EndedEnterpriseAdminSessionDetails", "java_class": "com.dropbox.core.v2.teamlog.EndedEnterpriseAdminSessionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EndedEnterpriseAdminSessionType": {"fq_name": "team_log.EndedEnterpriseAdminSessionType", "java_class": "com.dropbox.core.v2.teamlog.EndedEnterpriseAdminSessionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EnforceLinkPasswordPolicy": {"fq_name": "team_log.EnforceLinkPasswordPolicy", "java_class": "com.dropbox.core.v2.teamlog.EnforceLinkPasswordPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EnterpriseSettingsLockingDetails": {"fq_name": "team_log.EnterpriseSettingsLockingDetails", "java_class": "com.dropbox.core.v2.teamlog.EnterpriseSettingsLockingDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EnterpriseSettingsLockingType": {"fq_name": "team_log.EnterpriseSettingsLockingType", "java_class": "com.dropbox.core.v2.teamlog.EnterpriseSettingsLockingType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EventCategory": {"fq_name": "team_log.EventCategory", "java_class": "com.dropbox.core.v2.teamlog.EventCategory", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EventDetails": {"fq_name": "team_log.EventDetails", "java_class": "com.dropbox.core.v2.teamlog.EventDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EventType": {"fq_name": "team_log.EventType", "java_class": "com.dropbox.core.v2.teamlog.EventType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.EventTypeArg": {"fq_name": "team_log.EventTypeArg", "java_class": "com.dropbox.core.v2.teamlog.EventTypeArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExportMembersReportDetails": {"fq_name": "team_log.ExportMembersReportDetails", "java_class": "com.dropbox.core.v2.teamlog.ExportMembersReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExportMembersReportFailDetails": {"fq_name": "team_log.ExportMembersReportFailDetails", "java_class": "com.dropbox.core.v2.teamlog.ExportMembersReportFailDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExportMembersReportFailType": {"fq_name": "team_log.ExportMembersReportFailType", "java_class": "com.dropbox.core.v2.teamlog.ExportMembersReportFailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExportMembersReportType": {"fq_name": "team_log.ExportMembersReportType", "java_class": "com.dropbox.core.v2.teamlog.ExportMembersReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExtendedVersionHistoryChangePolicyDetails": {"fq_name": "team_log.ExtendedVersionHistoryChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.ExtendedVersionHistoryChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExtendedVersionHistoryChangePolicyType": {"fq_name": "team_log.ExtendedVersionHistoryChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.ExtendedVersionHistoryChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExtendedVersionHistoryPolicy": {"fq_name": "team_log.ExtendedVersionHistoryPolicy", "java_class": "com.dropbox.core.v2.teamlog.ExtendedVersionHistoryPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupEligibilityStatus": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatus", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupEligibilityStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupEligibilityStatusCheckedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupEligibilityStatusCheckedType": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatusCheckedType", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupEligibilityStatusCheckedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupPolicy": {"fq_name": "team_log.ExternalDriveBackupPolicy", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupPolicyChangedDetails": {"fq_name": "team_log.ExternalDriveBackupPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupPolicyChangedType": {"fq_name": "team_log.ExternalDriveBackupPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupStatus": {"fq_name": "team_log.ExternalDriveBackupStatus", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupStatusChangedDetails": {"fq_name": "team_log.ExternalDriveBackupStatusChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupStatusChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalDriveBackupStatusChangedType": {"fq_name": "team_log.ExternalDriveBackupStatusChangedType", "java_class": "com.dropbox.core.v2.teamlog.ExternalDriveBackupStatusChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalSharingCreateReportDetails": {"fq_name": "team_log.ExternalSharingCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.ExternalSharingCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalSharingCreateReportType": {"fq_name": "team_log.ExternalSharingCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.ExternalSharingCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalSharingReportFailedDetails": {"fq_name": "team_log.ExternalSharingReportFailedDetails", "java_class": "com.dropbox.core.v2.teamlog.ExternalSharingReportFailedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalSharingReportFailedType": {"fq_name": "team_log.ExternalSharingReportFailedType", "java_class": "com.dropbox.core.v2.teamlog.ExternalSharingReportFailedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ExternalUserLogInfo": {"fq_name": "team_log.ExternalUserLogInfo", "java_class": "com.dropbox.core.v2.teamlog.ExternalUserLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FailureDetailsLogInfo": {"fq_name": "team_log.FailureDetailsLogInfo", "java_class": "com.dropbox.core.v2.teamlog.FailureDetailsLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FailureDetailsLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FedAdminRole": {"fq_name": "team_log.FedAdminRole", "java_class": "com.dropbox.core.v2.teamlog.FedAdminRole", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FedExtraDetails": {"fq_name": "team_log.FedExtraDetails", "java_class": "com.dropbox.core.v2.teamlog.FedExtraDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FedHandshakeAction": {"fq_name": "team_log.FedHandshakeAction", "java_class": "com.dropbox.core.v2.teamlog.FedHandshakeAction", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FederationStatusChangeAdditionalInfo": {"fq_name": "team_log.FederationStatusChangeAdditionalInfo", "java_class": "com.dropbox.core.v2.teamlog.FederationStatusChangeAdditionalInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileAddCommentDetails": {"fq_name": "team_log.FileAddCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.FileAddCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileAddCommentType": {"fq_name": "team_log.FileAddCommentType", "java_class": "com.dropbox.core.v2.teamlog.FileAddCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileAddDetails": {"fq_name": "team_log.FileAddDetails", "java_class": "com.dropbox.core.v2.teamlog.FileAddDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileAddFromAutomationDetails": {"fq_name": "team_log.FileAddFromAutomationDetails", "java_class": "com.dropbox.core.v2.teamlog.FileAddFromAutomationDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileAddFromAutomationType": {"fq_name": "team_log.FileAddFromAutomationType", "java_class": "com.dropbox.core.v2.teamlog.FileAddFromAutomationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileAddType": {"fq_name": "team_log.FileAddType", "java_class": "com.dropbox.core.v2.teamlog.FileAddType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileChangeCommentSubscriptionDetails": {"fq_name": "team_log.FileChangeCommentSubscriptionDetails", "java_class": "com.dropbox.core.v2.teamlog.FileChangeCommentSubscriptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileChangeCommentSubscriptionType": {"fq_name": "team_log.FileChangeCommentSubscriptionType", "java_class": "com.dropbox.core.v2.teamlog.FileChangeCommentSubscriptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileCommentNotificationPolicy": {"fq_name": "team_log.FileCommentNotificationPolicy", "java_class": "com.dropbox.core.v2.teamlog.FileCommentNotificationPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileCommentsChangePolicyDetails": {"fq_name": "team_log.FileCommentsChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.FileCommentsChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileCommentsChangePolicyType": {"fq_name": "team_log.FileCommentsChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.FileCommentsChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileCommentsPolicy": {"fq_name": "team_log.FileCommentsPolicy", "java_class": "com.dropbox.core.v2.teamlog.FileCommentsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileCopyDetails": {"fq_name": "team_log.FileCopyDetails", "java_class": "com.dropbox.core.v2.teamlog.FileCopyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileCopyType": {"fq_name": "team_log.FileCopyType", "java_class": "com.dropbox.core.v2.teamlog.FileCopyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileDeleteCommentDetails": {"fq_name": "team_log.FileDeleteCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.FileDeleteCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileDeleteCommentType": {"fq_name": "team_log.FileDeleteCommentType", "java_class": "com.dropbox.core.v2.teamlog.FileDeleteCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileDeleteDetails": {"fq_name": "team_log.FileDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.FileDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileDeleteType": {"fq_name": "team_log.FileDeleteType", "java_class": "com.dropbox.core.v2.teamlog.FileDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileDownloadDetails": {"fq_name": "team_log.FileDownloadDetails", "java_class": "com.dropbox.core.v2.teamlog.FileDownloadDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileDownloadType": {"fq_name": "team_log.FileDownloadType", "java_class": "com.dropbox.core.v2.teamlog.FileDownloadType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileEditCommentDetails": {"fq_name": "team_log.FileEditCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.FileEditCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileEditCommentType": {"fq_name": "team_log.FileEditCommentType", "java_class": "com.dropbox.core.v2.teamlog.FileEditCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileEditDetails": {"fq_name": "team_log.FileEditDetails", "java_class": "com.dropbox.core.v2.teamlog.FileEditDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileEditType": {"fq_name": "team_log.FileEditType", "java_class": "com.dropbox.core.v2.teamlog.FileEditType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileGetCopyReferenceDetails": {"fq_name": "team_log.FileGetCopyReferenceDetails", "java_class": "com.dropbox.core.v2.teamlog.FileGetCopyReferenceDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileGetCopyReferenceType": {"fq_name": "team_log.FileGetCopyReferenceType", "java_class": "com.dropbox.core.v2.teamlog.FileGetCopyReferenceType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileLikeCommentDetails": {"fq_name": "team_log.FileLikeCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.FileLikeCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileLikeCommentType": {"fq_name": "team_log.FileLikeCommentType", "java_class": "com.dropbox.core.v2.teamlog.FileLikeCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileLockingLockStatusChangedDetails": {"fq_name": "team_log.FileLockingLockStatusChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.FileLockingLockStatusChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileLockingLockStatusChangedType": {"fq_name": "team_log.FileLockingLockStatusChangedType", "java_class": "com.dropbox.core.v2.teamlog.FileLockingLockStatusChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileLockingPolicyChangedDetails": {"fq_name": "team_log.FileLockingPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.FileLockingPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileLockingPolicyChangedType": {"fq_name": "team_log.FileLockingPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.FileLockingPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileLogInfo": {"fq_name": "team_log.FileLogInfo", "java_class": "com.dropbox.core.v2.teamlog.FileLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileMoveDetails": {"fq_name": "team_log.FileMoveDetails", "java_class": "com.dropbox.core.v2.teamlog.FileMoveDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileMoveType": {"fq_name": "team_log.FileMoveType", "java_class": "com.dropbox.core.v2.teamlog.FileMoveType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileOrFolderLogInfo": {"fq_name": "team_log.FileOrFolderLogInfo", "java_class": "com.dropbox.core.v2.teamlog.FileOrFolderLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileOrFolderLogInfo.Builder", "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "team_log.FilePermanentlyDeleteDetails": {"fq_name": "team_log.FilePermanentlyDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.FilePermanentlyDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FilePermanentlyDeleteType": {"fq_name": "team_log.FilePermanentlyDeleteType", "java_class": "com.dropbox.core.v2.teamlog.FilePermanentlyDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FilePreviewDetails": {"fq_name": "team_log.FilePreviewDetails", "java_class": "com.dropbox.core.v2.teamlog.FilePreviewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FilePreviewType": {"fq_name": "team_log.FilePreviewType", "java_class": "com.dropbox.core.v2.teamlog.FilePreviewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileProviderMigrationPolicyChangedDetails": {"fq_name": "team_log.FileProviderMigrationPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.FileProviderMigrationPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileProviderMigrationPolicyChangedType": {"fq_name": "team_log.FileProviderMigrationPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.FileProviderMigrationPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRenameDetails": {"fq_name": "team_log.FileRenameDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRenameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRenameType": {"fq_name": "team_log.FileRenameType", "java_class": "com.dropbox.core.v2.teamlog.FileRenameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestChangeDetails": {"fq_name": "team_log.FileRequestChangeDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestChangeDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileRequestChangeDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestChangeType": {"fq_name": "team_log.FileRequestChangeType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestChangeType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestCloseDetails": {"fq_name": "team_log.FileRequestCloseDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestCloseDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileRequestCloseDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestCloseType": {"fq_name": "team_log.FileRequestCloseType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestCloseType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestCreateDetails": {"fq_name": "team_log.FileRequestCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestCreateDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileRequestCreateDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestCreateType": {"fq_name": "team_log.FileRequestCreateType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestDeadline": {"fq_name": "team_log.FileRequestDeadline", "java_class": "com.dropbox.core.v2.teamlog.FileRequestDeadline", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileRequestDeadline.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestDeleteDetails": {"fq_name": "team_log.FileRequestDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestDeleteDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileRequestDeleteDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestDeleteType": {"fq_name": "team_log.FileRequestDeleteType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestDetails": {"fq_name": "team_log.FileRequestDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestReceiveFileDetails": {"fq_name": "team_log.FileRequestReceiveFileDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestReceiveFileDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FileRequestReceiveFileDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestReceiveFileType": {"fq_name": "team_log.FileRequestReceiveFileType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestReceiveFileType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestsChangePolicyDetails": {"fq_name": "team_log.FileRequestsChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestsChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestsChangePolicyType": {"fq_name": "team_log.FileRequestsChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestsChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestsEmailsEnabledDetails": {"fq_name": "team_log.FileRequestsEmailsEnabledDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestsEmailsEnabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestsEmailsEnabledType": {"fq_name": "team_log.FileRequestsEmailsEnabledType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestsEmailsEnabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestsEmailsRestrictedToTeamOnlyDetails": {"fq_name": "team_log.FileRequestsEmailsRestrictedToTeamOnlyDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRequestsEmailsRestrictedToTeamOnlyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestsEmailsRestrictedToTeamOnlyType": {"fq_name": "team_log.FileRequestsEmailsRestrictedToTeamOnlyType", "java_class": "com.dropbox.core.v2.teamlog.FileRequestsEmailsRestrictedToTeamOnlyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRequestsPolicy": {"fq_name": "team_log.FileRequestsPolicy", "java_class": "com.dropbox.core.v2.teamlog.FileRequestsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileResolveCommentDetails": {"fq_name": "team_log.FileResolveCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.FileResolveCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileResolveCommentType": {"fq_name": "team_log.FileResolveCommentType", "java_class": "com.dropbox.core.v2.teamlog.FileResolveCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRestoreDetails": {"fq_name": "team_log.FileRestoreDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRestoreDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRestoreType": {"fq_name": "team_log.FileRestoreType", "java_class": "com.dropbox.core.v2.teamlog.FileRestoreType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRevertDetails": {"fq_name": "team_log.FileRevertDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRevertDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRevertType": {"fq_name": "team_log.FileRevertType", "java_class": "com.dropbox.core.v2.teamlog.FileRevertType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRollbackChangesDetails": {"fq_name": "team_log.FileRollbackChangesDetails", "java_class": "com.dropbox.core.v2.teamlog.FileRollbackChangesDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileRollbackChangesType": {"fq_name": "team_log.FileRollbackChangesType", "java_class": "com.dropbox.core.v2.teamlog.FileRollbackChangesType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileSaveCopyReferenceDetails": {"fq_name": "team_log.FileSaveCopyReferenceDetails", "java_class": "com.dropbox.core.v2.teamlog.FileSaveCopyReferenceDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileSaveCopyReferenceType": {"fq_name": "team_log.FileSaveCopyReferenceType", "java_class": "com.dropbox.core.v2.teamlog.FileSaveCopyReferenceType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersFileAddDetails": {"fq_name": "team_log.FileTransfersFileAddDetails", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersFileAddDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersFileAddType": {"fq_name": "team_log.FileTransfersFileAddType", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersFileAddType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersPolicy": {"fq_name": "team_log.FileTransfersPolicy", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersPolicyChangedDetails": {"fq_name": "team_log.FileTransfersPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersPolicyChangedType": {"fq_name": "team_log.FileTransfersPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferDeleteDetails": {"fq_name": "team_log.FileTransfersTransferDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferDeleteType": {"fq_name": "team_log.FileTransfersTransferDeleteType", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferDownloadDetails": {"fq_name": "team_log.FileTransfersTransferDownloadDetails", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferDownloadDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferDownloadType": {"fq_name": "team_log.FileTransfersTransferDownloadType", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferDownloadType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferSendDetails": {"fq_name": "team_log.FileTransfersTransferSendDetails", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferSendDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferSendType": {"fq_name": "team_log.FileTransfersTransferSendType", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferSendType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferViewDetails": {"fq_name": "team_log.FileTransfersTransferViewDetails", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferViewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileTransfersTransferViewType": {"fq_name": "team_log.FileTransfersTransferViewType", "java_class": "com.dropbox.core.v2.teamlog.FileTransfersTransferViewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileUnlikeCommentDetails": {"fq_name": "team_log.FileUnlikeCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.FileUnlikeCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileUnlikeCommentType": {"fq_name": "team_log.FileUnlikeCommentType", "java_class": "com.dropbox.core.v2.teamlog.FileUnlikeCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileUnresolveCommentDetails": {"fq_name": "team_log.FileUnresolveCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.FileUnresolveCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FileUnresolveCommentType": {"fq_name": "team_log.FileUnresolveCommentType", "java_class": "com.dropbox.core.v2.teamlog.FileUnresolveCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderLinkRestrictionPolicy": {"fq_name": "team_log.FolderLinkRestrictionPolicy", "java_class": "com.dropbox.core.v2.teamlog.FolderLinkRestrictionPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderLinkRestrictionPolicyChangedDetails": {"fq_name": "team_log.FolderLinkRestrictionPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.FolderLinkRestrictionPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderLinkRestrictionPolicyChangedType": {"fq_name": "team_log.FolderLinkRestrictionPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.FolderLinkRestrictionPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderLogInfo": {"fq_name": "team_log.FolderLogInfo", "java_class": "com.dropbox.core.v2.teamlog.FolderLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.FolderLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderOverviewDescriptionChangedDetails": {"fq_name": "team_log.FolderOverviewDescriptionChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.FolderOverviewDescriptionChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderOverviewDescriptionChangedType": {"fq_name": "team_log.FolderOverviewDescriptionChangedType", "java_class": "com.dropbox.core.v2.teamlog.FolderOverviewDescriptionChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderOverviewItemPinnedDetails": {"fq_name": "team_log.FolderOverviewItemPinnedDetails", "java_class": "com.dropbox.core.v2.teamlog.FolderOverviewItemPinnedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderOverviewItemPinnedType": {"fq_name": "team_log.FolderOverviewItemPinnedType", "java_class": "com.dropbox.core.v2.teamlog.FolderOverviewItemPinnedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderOverviewItemUnpinnedDetails": {"fq_name": "team_log.FolderOverviewItemUnpinnedDetails", "java_class": "com.dropbox.core.v2.teamlog.FolderOverviewItemUnpinnedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.FolderOverviewItemUnpinnedType": {"fq_name": "team_log.FolderOverviewItemUnpinnedType", "java_class": "com.dropbox.core.v2.teamlog.FolderOverviewItemUnpinnedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GeoLocationLogInfo": {"fq_name": "team_log.GeoLocationLogInfo", "java_class": "com.dropbox.core.v2.teamlog.GeoLocationLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GeoLocationLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GetTeamEventsArg": {"fq_name": "team_log.GetTeamEventsArg", "java_class": "com.dropbox.core.v2.teamlog.GetTeamEventsArg", "visibility": "PACKAGE", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GetTeamEventsArg.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GetTeamEventsContinueArg": {"fq_name": "team_log.GetTeamEventsContinueArg", "java_class": "com.dropbox.core.v2.teamlog.GetTeamEventsContinueArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GetTeamEventsContinueError": {"fq_name": "team_log.GetTeamEventsContinueError", "java_class": "com.dropbox.core.v2.teamlog.GetTeamEventsContinueError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GetTeamEventsError": {"fq_name": "team_log.GetTeamEventsError", "java_class": "com.dropbox.core.v2.teamlog.GetTeamEventsError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GetTeamEventsResult": {"fq_name": "team_log.GetTeamEventsResult", "java_class": "com.dropbox.core.v2.teamlog.GetTeamEventsResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GoogleSsoChangePolicyDetails": {"fq_name": "team_log.GoogleSsoChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.GoogleSsoChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GoogleSsoChangePolicyType": {"fq_name": "team_log.GoogleSsoChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.GoogleSsoChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GoogleSsoPolicy": {"fq_name": "team_log.GoogleSsoPolicy", "java_class": "com.dropbox.core.v2.teamlog.GoogleSsoPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyAddFolderFailedDetails": {"fq_name": "team_log.GovernancePolicyAddFolderFailedDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyAddFolderFailedDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GovernancePolicyAddFolderFailedDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyAddFolderFailedType": {"fq_name": "team_log.GovernancePolicyAddFolderFailedType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyAddFolderFailedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyAddFoldersDetails": {"fq_name": "team_log.GovernancePolicyAddFoldersDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyAddFoldersDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GovernancePolicyAddFoldersDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyAddFoldersType": {"fq_name": "team_log.GovernancePolicyAddFoldersType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyAddFoldersType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyContentDisposedDetails": {"fq_name": "team_log.GovernancePolicyContentDisposedDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyContentDisposedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyContentDisposedType": {"fq_name": "team_log.GovernancePolicyContentDisposedType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyContentDisposedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyCreateDetails": {"fq_name": "team_log.GovernancePolicyCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyCreateDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GovernancePolicyCreateDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyCreateType": {"fq_name": "team_log.GovernancePolicyCreateType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyDeleteDetails": {"fq_name": "team_log.GovernancePolicyDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyDeleteType": {"fq_name": "team_log.GovernancePolicyDeleteType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyEditDetailsDetails": {"fq_name": "team_log.GovernancePolicyEditDetailsDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyEditDetailsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyEditDetailsType": {"fq_name": "team_log.GovernancePolicyEditDetailsType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyEditDetailsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyEditDurationDetails": {"fq_name": "team_log.GovernancePolicyEditDurationDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyEditDurationDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyEditDurationType": {"fq_name": "team_log.GovernancePolicyEditDurationType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyEditDurationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyExportCreatedDetails": {"fq_name": "team_log.GovernancePolicyExportCreatedDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyExportCreatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyExportCreatedType": {"fq_name": "team_log.GovernancePolicyExportCreatedType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyExportCreatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyExportRemovedDetails": {"fq_name": "team_log.GovernancePolicyExportRemovedDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyExportRemovedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyExportRemovedType": {"fq_name": "team_log.GovernancePolicyExportRemovedType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyExportRemovedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyRemoveFoldersDetails": {"fq_name": "team_log.GovernancePolicyRemoveFoldersDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyRemoveFoldersDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GovernancePolicyRemoveFoldersDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyRemoveFoldersType": {"fq_name": "team_log.GovernancePolicyRemoveFoldersType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyRemoveFoldersType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyReportCreatedDetails": {"fq_name": "team_log.GovernancePolicyReportCreatedDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyReportCreatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyReportCreatedType": {"fq_name": "team_log.GovernancePolicyReportCreatedType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyReportCreatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyZipPartDownloadedDetails": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedDetails", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyZipPartDownloadedDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GovernancePolicyZipPartDownloadedDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GovernancePolicyZipPartDownloadedType": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedType", "java_class": "com.dropbox.core.v2.teamlog.GovernancePolicyZipPartDownloadedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupAddExternalIdDetails": {"fq_name": "team_log.GroupAddExternalIdDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupAddExternalIdDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupAddExternalIdType": {"fq_name": "team_log.GroupAddExternalIdType", "java_class": "com.dropbox.core.v2.teamlog.GroupAddExternalIdType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupAddMemberDetails": {"fq_name": "team_log.GroupAddMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupAddMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupAddMemberType": {"fq_name": "team_log.GroupAddMemberType", "java_class": "com.dropbox.core.v2.teamlog.GroupAddMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupChangeExternalIdDetails": {"fq_name": "team_log.GroupChangeExternalIdDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupChangeExternalIdDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupChangeExternalIdType": {"fq_name": "team_log.GroupChangeExternalIdType", "java_class": "com.dropbox.core.v2.teamlog.GroupChangeExternalIdType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupChangeManagementTypeDetails": {"fq_name": "team_log.GroupChangeManagementTypeDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupChangeManagementTypeDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupChangeManagementTypeType": {"fq_name": "team_log.GroupChangeManagementTypeType", "java_class": "com.dropbox.core.v2.teamlog.GroupChangeManagementTypeType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupChangeMemberRoleDetails": {"fq_name": "team_log.GroupChangeMemberRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupChangeMemberRoleDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupChangeMemberRoleType": {"fq_name": "team_log.GroupChangeMemberRoleType", "java_class": "com.dropbox.core.v2.teamlog.GroupChangeMemberRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupCreateDetails": {"fq_name": "team_log.GroupCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupCreateDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GroupCreateDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupCreateType": {"fq_name": "team_log.GroupCreateType", "java_class": "com.dropbox.core.v2.teamlog.GroupCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupDeleteDetails": {"fq_name": "team_log.GroupDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupDeleteType": {"fq_name": "team_log.GroupDeleteType", "java_class": "com.dropbox.core.v2.teamlog.GroupDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupDescriptionUpdatedDetails": {"fq_name": "team_log.GroupDescriptionUpdatedDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupDescriptionUpdatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupDescriptionUpdatedType": {"fq_name": "team_log.GroupDescriptionUpdatedType", "java_class": "com.dropbox.core.v2.teamlog.GroupDescriptionUpdatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupJoinPolicy": {"fq_name": "team_log.GroupJoinPolicy", "java_class": "com.dropbox.core.v2.teamlog.GroupJoinPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupJoinPolicyUpdatedDetails": {"fq_name": "team_log.GroupJoinPolicyUpdatedDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupJoinPolicyUpdatedDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GroupJoinPolicyUpdatedDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupJoinPolicyUpdatedType": {"fq_name": "team_log.GroupJoinPolicyUpdatedType", "java_class": "com.dropbox.core.v2.teamlog.GroupJoinPolicyUpdatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupLogInfo": {"fq_name": "team_log.GroupLogInfo", "java_class": "com.dropbox.core.v2.teamlog.GroupLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GroupLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupMovedDetails": {"fq_name": "team_log.GroupMovedDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupMovedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupMovedType": {"fq_name": "team_log.GroupMovedType", "java_class": "com.dropbox.core.v2.teamlog.GroupMovedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupRemoveExternalIdDetails": {"fq_name": "team_log.GroupRemoveExternalIdDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupRemoveExternalIdDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupRemoveExternalIdType": {"fq_name": "team_log.GroupRemoveExternalIdType", "java_class": "com.dropbox.core.v2.teamlog.GroupRemoveExternalIdType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupRemoveMemberDetails": {"fq_name": "team_log.GroupRemoveMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupRemoveMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupRemoveMemberType": {"fq_name": "team_log.GroupRemoveMemberType", "java_class": "com.dropbox.core.v2.teamlog.GroupRemoveMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupRenameDetails": {"fq_name": "team_log.GroupRenameDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupRenameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupRenameType": {"fq_name": "team_log.GroupRenameType", "java_class": "com.dropbox.core.v2.teamlog.GroupRenameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupUserManagementChangePolicyDetails": {"fq_name": "team_log.GroupUserManagementChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.GroupUserManagementChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GroupUserManagementChangePolicyType": {"fq_name": "team_log.GroupUserManagementChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.GroupUserManagementChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GuestAdminChangeStatusDetails": {"fq_name": "team_log.GuestAdminChangeStatusDetails", "java_class": "com.dropbox.core.v2.teamlog.GuestAdminChangeStatusDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GuestAdminChangeStatusDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GuestAdminChangeStatusType": {"fq_name": "team_log.GuestAdminChangeStatusType", "java_class": "com.dropbox.core.v2.teamlog.GuestAdminChangeStatusType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GuestAdminSignedInViaTrustedTeamsDetails": {"fq_name": "team_log.GuestAdminSignedInViaTrustedTeamsDetails", "java_class": "com.dropbox.core.v2.teamlog.GuestAdminSignedInViaTrustedTeamsDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GuestAdminSignedInViaTrustedTeamsDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GuestAdminSignedInViaTrustedTeamsType": {"fq_name": "team_log.GuestAdminSignedInViaTrustedTeamsType", "java_class": "com.dropbox.core.v2.teamlog.GuestAdminSignedInViaTrustedTeamsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GuestAdminSignedOutViaTrustedTeamsDetails": {"fq_name": "team_log.GuestAdminSignedOutViaTrustedTeamsDetails", "java_class": "com.dropbox.core.v2.teamlog.GuestAdminSignedOutViaTrustedTeamsDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.GuestAdminSignedOutViaTrustedTeamsDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.GuestAdminSignedOutViaTrustedTeamsType": {"fq_name": "team_log.GuestAdminSignedOutViaTrustedTeamsType", "java_class": "com.dropbox.core.v2.teamlog.GuestAdminSignedOutViaTrustedTeamsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IdentifierType": {"fq_name": "team_log.IdentifierType", "java_class": "com.dropbox.core.v2.teamlog.IdentifierType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IntegrationConnectedDetails": {"fq_name": "team_log.IntegrationConnectedDetails", "java_class": "com.dropbox.core.v2.teamlog.IntegrationConnectedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IntegrationConnectedType": {"fq_name": "team_log.IntegrationConnectedType", "java_class": "com.dropbox.core.v2.teamlog.IntegrationConnectedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IntegrationDisconnectedDetails": {"fq_name": "team_log.IntegrationDisconnectedDetails", "java_class": "com.dropbox.core.v2.teamlog.IntegrationDisconnectedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IntegrationDisconnectedType": {"fq_name": "team_log.IntegrationDisconnectedType", "java_class": "com.dropbox.core.v2.teamlog.IntegrationDisconnectedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IntegrationPolicy": {"fq_name": "team_log.IntegrationPolicy", "java_class": "com.dropbox.core.v2.teamlog.IntegrationPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IntegrationPolicyChangedDetails": {"fq_name": "team_log.IntegrationPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.IntegrationPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.IntegrationPolicyChangedType": {"fq_name": "team_log.IntegrationPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.IntegrationPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.InviteAcceptanceEmailPolicy": {"fq_name": "team_log.InviteAcceptanceEmailPolicy", "java_class": "com.dropbox.core.v2.teamlog.InviteAcceptanceEmailPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.InviteAcceptanceEmailPolicyChangedDetails": {"fq_name": "team_log.InviteAcceptanceEmailPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.InviteAcceptanceEmailPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.InviteAcceptanceEmailPolicyChangedType": {"fq_name": "team_log.InviteAcceptanceEmailPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.InviteAcceptanceEmailPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.InviteMethod": {"fq_name": "team_log.InviteMethod", "java_class": "com.dropbox.core.v2.teamlog.InviteMethod", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.JoinTeamDetails": {"fq_name": "team_log.JoinTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.JoinTeamDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.JoinTeamDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LabelType": {"fq_name": "team_log.LabelType", "java_class": "com.dropbox.core.v2.teamlog.LabelType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegacyDeviceSessionLogInfo": {"fq_name": "team_log.LegacyDeviceSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.LegacyDeviceSessionLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.LegacyDeviceSessionLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsActivateAHoldDetails": {"fq_name": "team_log.LegalHoldsActivateAHoldDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsActivateAHoldDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsActivateAHoldType": {"fq_name": "team_log.LegalHoldsActivateAHoldType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsActivateAHoldType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsAddMembersDetails": {"fq_name": "team_log.LegalHoldsAddMembersDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsAddMembersDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsAddMembersType": {"fq_name": "team_log.LegalHoldsAddMembersType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsAddMembersType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsChangeHoldDetailsDetails": {"fq_name": "team_log.LegalHoldsChangeHoldDetailsDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsChangeHoldDetailsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsChangeHoldDetailsType": {"fq_name": "team_log.LegalHoldsChangeHoldDetailsType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsChangeHoldDetailsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsChangeHoldNameDetails": {"fq_name": "team_log.LegalHoldsChangeHoldNameDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsChangeHoldNameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsChangeHoldNameType": {"fq_name": "team_log.LegalHoldsChangeHoldNameType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsChangeHoldNameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportAHoldDetails": {"fq_name": "team_log.LegalHoldsExportAHoldDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportAHoldDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportAHoldType": {"fq_name": "team_log.LegalHoldsExportAHoldType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportAHoldType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportCancelledDetails": {"fq_name": "team_log.LegalHoldsExportCancelledDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportCancelledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportCancelledType": {"fq_name": "team_log.LegalHoldsExportCancelledType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportCancelledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportDownloadedDetails": {"fq_name": "team_log.LegalHoldsExportDownloadedDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportDownloadedDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportDownloadedDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportDownloadedType": {"fq_name": "team_log.LegalHoldsExportDownloadedType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportDownloadedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportRemovedDetails": {"fq_name": "team_log.LegalHoldsExportRemovedDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportRemovedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsExportRemovedType": {"fq_name": "team_log.LegalHoldsExportRemovedType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsExportRemovedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsReleaseAHoldDetails": {"fq_name": "team_log.LegalHoldsReleaseAHoldDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsReleaseAHoldDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsReleaseAHoldType": {"fq_name": "team_log.LegalHoldsReleaseAHoldType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsReleaseAHoldType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsRemoveMembersDetails": {"fq_name": "team_log.LegalHoldsRemoveMembersDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsRemoveMembersDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsRemoveMembersType": {"fq_name": "team_log.LegalHoldsRemoveMembersType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsRemoveMembersType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsReportAHoldDetails": {"fq_name": "team_log.LegalHoldsReportAHoldDetails", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsReportAHoldDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LegalHoldsReportAHoldType": {"fq_name": "team_log.LegalHoldsReportAHoldType", "java_class": "com.dropbox.core.v2.teamlog.LegalHoldsReportAHoldType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LinkedDeviceLogInfo": {"fq_name": "team_log.LinkedDeviceLogInfo", "java_class": "com.dropbox.core.v2.teamlog.LinkedDeviceLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LockStatus": {"fq_name": "team_log.LockStatus", "java_class": "com.dropbox.core.v2.teamlog.LockStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LoginFailDetails": {"fq_name": "team_log.LoginFailDetails", "java_class": "com.dropbox.core.v2.teamlog.LoginFailDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LoginFailType": {"fq_name": "team_log.LoginFailType", "java_class": "com.dropbox.core.v2.teamlog.LoginFailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LoginMethod": {"fq_name": "team_log.LoginMethod", "java_class": "com.dropbox.core.v2.teamlog.LoginMethod", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LoginSuccessDetails": {"fq_name": "team_log.LoginSuccessDetails", "java_class": "com.dropbox.core.v2.teamlog.LoginSuccessDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LoginSuccessType": {"fq_name": "team_log.LoginSuccessType", "java_class": "com.dropbox.core.v2.teamlog.LoginSuccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LogoutDetails": {"fq_name": "team_log.LogoutDetails", "java_class": "com.dropbox.core.v2.teamlog.LogoutDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.LogoutType": {"fq_name": "team_log.LogoutType", "java_class": "com.dropbox.core.v2.teamlog.LogoutType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberAddExternalIdDetails": {"fq_name": "team_log.MemberAddExternalIdDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberAddExternalIdDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberAddExternalIdType": {"fq_name": "team_log.MemberAddExternalIdType", "java_class": "com.dropbox.core.v2.teamlog.MemberAddExternalIdType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberAddNameDetails": {"fq_name": "team_log.MemberAddNameDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberAddNameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberAddNameType": {"fq_name": "team_log.MemberAddNameType", "java_class": "com.dropbox.core.v2.teamlog.MemberAddNameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeAdminRoleDetails": {"fq_name": "team_log.MemberChangeAdminRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeAdminRoleDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.MemberChangeAdminRoleDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeAdminRoleType": {"fq_name": "team_log.MemberChangeAdminRoleType", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeAdminRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeEmailDetails": {"fq_name": "team_log.MemberChangeEmailDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeEmailDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeEmailType": {"fq_name": "team_log.MemberChangeEmailType", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeEmailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeExternalIdDetails": {"fq_name": "team_log.MemberChangeExternalIdDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeExternalIdDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeExternalIdType": {"fq_name": "team_log.MemberChangeExternalIdType", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeExternalIdType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeMembershipTypeDetails": {"fq_name": "team_log.MemberChangeMembershipTypeDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeMembershipTypeDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeMembershipTypeType": {"fq_name": "team_log.MemberChangeMembershipTypeType", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeMembershipTypeType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeNameDetails": {"fq_name": "team_log.MemberChangeNameDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeNameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeNameType": {"fq_name": "team_log.MemberChangeNameType", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeNameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeResellerRoleDetails": {"fq_name": "team_log.MemberChangeResellerRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeResellerRoleDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeResellerRoleType": {"fq_name": "team_log.MemberChangeResellerRoleType", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeResellerRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeStatusDetails": {"fq_name": "team_log.MemberChangeStatusDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeStatusDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.MemberChangeStatusDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberChangeStatusType": {"fq_name": "team_log.MemberChangeStatusType", "java_class": "com.dropbox.core.v2.teamlog.MemberChangeStatusType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberDeleteManualContactsDetails": {"fq_name": "team_log.MemberDeleteManualContactsDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberDeleteManualContactsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberDeleteManualContactsType": {"fq_name": "team_log.MemberDeleteManualContactsType", "java_class": "com.dropbox.core.v2.teamlog.MemberDeleteManualContactsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberDeleteProfilePhotoDetails": {"fq_name": "team_log.MemberDeleteProfilePhotoDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberDeleteProfilePhotoDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberDeleteProfilePhotoType": {"fq_name": "team_log.MemberDeleteProfilePhotoType", "java_class": "com.dropbox.core.v2.teamlog.MemberDeleteProfilePhotoType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberPermanentlyDeleteAccountContentsDetails": {"fq_name": "team_log.MemberPermanentlyDeleteAccountContentsDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberPermanentlyDeleteAccountContentsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberPermanentlyDeleteAccountContentsType": {"fq_name": "team_log.MemberPermanentlyDeleteAccountContentsType", "java_class": "com.dropbox.core.v2.teamlog.MemberPermanentlyDeleteAccountContentsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberRemoveActionType": {"fq_name": "team_log.MemberRemoveActionType", "java_class": "com.dropbox.core.v2.teamlog.MemberRemoveActionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberRemoveExternalIdDetails": {"fq_name": "team_log.MemberRemoveExternalIdDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberRemoveExternalIdDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberRemoveExternalIdType": {"fq_name": "team_log.MemberRemoveExternalIdType", "java_class": "com.dropbox.core.v2.teamlog.MemberRemoveExternalIdType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberRequestsChangePolicyDetails": {"fq_name": "team_log.MemberRequestsChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberRequestsChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberRequestsChangePolicyType": {"fq_name": "team_log.MemberRequestsChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.MemberRequestsChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberRequestsPolicy": {"fq_name": "team_log.MemberRequestsPolicy", "java_class": "com.dropbox.core.v2.teamlog.MemberRequestsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSendInvitePolicy": {"fq_name": "team_log.MemberSendInvitePolicy", "java_class": "com.dropbox.core.v2.teamlog.MemberSendInvitePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSendInvitePolicyChangedDetails": {"fq_name": "team_log.MemberSendInvitePolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSendInvitePolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSendInvitePolicyChangedType": {"fq_name": "team_log.MemberSendInvitePolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.MemberSendInvitePolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSetProfilePhotoDetails": {"fq_name": "team_log.MemberSetProfilePhotoDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSetProfilePhotoDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSetProfilePhotoType": {"fq_name": "team_log.MemberSetProfilePhotoType", "java_class": "com.dropbox.core.v2.teamlog.MemberSetProfilePhotoType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsAddCustomQuotaDetails": {"fq_name": "team_log.MemberSpaceLimitsAddCustomQuotaDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsAddCustomQuotaDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsAddCustomQuotaType": {"fq_name": "team_log.MemberSpaceLimitsAddCustomQuotaType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsAddCustomQuotaType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsAddExceptionDetails": {"fq_name": "team_log.MemberSpaceLimitsAddExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsAddExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsAddExceptionType": {"fq_name": "team_log.MemberSpaceLimitsAddExceptionType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsAddExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails": {"fq_name": "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangeCapsTypePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangeCapsTypePolicyType": {"fq_name": "team_log.MemberSpaceLimitsChangeCapsTypePolicyType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangeCapsTypePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangeCustomQuotaDetails": {"fq_name": "team_log.MemberSpaceLimitsChangeCustomQuotaDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangeCustomQuotaDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangeCustomQuotaType": {"fq_name": "team_log.MemberSpaceLimitsChangeCustomQuotaType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangeCustomQuotaType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangePolicyDetails": {"fq_name": "team_log.MemberSpaceLimitsChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangePolicyDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangePolicyDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangePolicyType": {"fq_name": "team_log.MemberSpaceLimitsChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangeStatusDetails": {"fq_name": "team_log.MemberSpaceLimitsChangeStatusDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangeStatusDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsChangeStatusType": {"fq_name": "team_log.MemberSpaceLimitsChangeStatusType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsChangeStatusType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsRemoveCustomQuotaDetails": {"fq_name": "team_log.MemberSpaceLimitsRemoveCustomQuotaDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsRemoveCustomQuotaDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsRemoveCustomQuotaType": {"fq_name": "team_log.MemberSpaceLimitsRemoveCustomQuotaType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsRemoveCustomQuotaType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsRemoveExceptionDetails": {"fq_name": "team_log.MemberSpaceLimitsRemoveExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsRemoveExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSpaceLimitsRemoveExceptionType": {"fq_name": "team_log.MemberSpaceLimitsRemoveExceptionType", "java_class": "com.dropbox.core.v2.teamlog.MemberSpaceLimitsRemoveExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberStatus": {"fq_name": "team_log.MemberStatus", "java_class": "com.dropbox.core.v2.teamlog.MemberStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSuggestDetails": {"fq_name": "team_log.MemberSuggestDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSuggestDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSuggestType": {"fq_name": "team_log.MemberSuggestType", "java_class": "com.dropbox.core.v2.teamlog.MemberSuggestType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSuggestionsChangePolicyDetails": {"fq_name": "team_log.MemberSuggestionsChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberSuggestionsChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSuggestionsChangePolicyType": {"fq_name": "team_log.MemberSuggestionsChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.MemberSuggestionsChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberSuggestionsPolicy": {"fq_name": "team_log.MemberSuggestionsPolicy", "java_class": "com.dropbox.core.v2.teamlog.MemberSuggestionsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberTransferAccountContentsDetails": {"fq_name": "team_log.MemberTransferAccountContentsDetails", "java_class": "com.dropbox.core.v2.teamlog.MemberTransferAccountContentsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberTransferAccountContentsType": {"fq_name": "team_log.MemberTransferAccountContentsType", "java_class": "com.dropbox.core.v2.teamlog.MemberTransferAccountContentsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MemberTransferredInternalFields": {"fq_name": "team_log.MemberTransferredInternalFields", "java_class": "com.dropbox.core.v2.teamlog.MemberTransferredInternalFields", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_log.MicrosoftOfficeAddinChangePolicyDetails": {"fq_name": "team_log.MicrosoftOfficeAddinChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.MicrosoftOfficeAddinChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MicrosoftOfficeAddinChangePolicyType": {"fq_name": "team_log.MicrosoftOfficeAddinChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.MicrosoftOfficeAddinChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MicrosoftOfficeAddinPolicy": {"fq_name": "team_log.MicrosoftOfficeAddinPolicy", "java_class": "com.dropbox.core.v2.teamlog.MicrosoftOfficeAddinPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MissingDetails": {"fq_name": "team_log.MissingDetails", "java_class": "com.dropbox.core.v2.teamlog.MissingDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MobileDeviceSessionLogInfo": {"fq_name": "team_log.MobileDeviceSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.MobileDeviceSessionLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.MobileDeviceSessionLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.MobileSessionLogInfo": {"fq_name": "team_log.MobileSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.MobileSessionLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NamespaceRelativePathLogInfo": {"fq_name": "team_log.NamespaceRelativePathLogInfo", "java_class": "com.dropbox.core.v2.teamlog.NamespaceRelativePathLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.NamespaceRelativePathLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NetworkControlChangePolicyDetails": {"fq_name": "team_log.NetworkControlChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.NetworkControlChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NetworkControlChangePolicyType": {"fq_name": "team_log.NetworkControlChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.NetworkControlChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NetworkControlPolicy": {"fq_name": "team_log.NetworkControlPolicy", "java_class": "com.dropbox.core.v2.teamlog.NetworkControlPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoExpirationLinkGenCreateReportDetails": {"fq_name": "team_log.NoExpirationLinkGenCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.NoExpirationLinkGenCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoExpirationLinkGenCreateReportType": {"fq_name": "team_log.NoExpirationLinkGenCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.NoExpirationLinkGenCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoExpirationLinkGenReportFailedDetails": {"fq_name": "team_log.NoExpirationLinkGenReportFailedDetails", "java_class": "com.dropbox.core.v2.teamlog.NoExpirationLinkGenReportFailedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoExpirationLinkGenReportFailedType": {"fq_name": "team_log.NoExpirationLinkGenReportFailedType", "java_class": "com.dropbox.core.v2.teamlog.NoExpirationLinkGenReportFailedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkGenCreateReportDetails": {"fq_name": "team_log.NoPasswordLinkGenCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkGenCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkGenCreateReportType": {"fq_name": "team_log.NoPasswordLinkGenCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkGenCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkGenReportFailedDetails": {"fq_name": "team_log.NoPasswordLinkGenReportFailedDetails", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkGenReportFailedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkGenReportFailedType": {"fq_name": "team_log.NoPasswordLinkGenReportFailedType", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkGenReportFailedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkViewCreateReportDetails": {"fq_name": "team_log.NoPasswordLinkViewCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkViewCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkViewCreateReportType": {"fq_name": "team_log.NoPasswordLinkViewCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkViewCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkViewReportFailedDetails": {"fq_name": "team_log.NoPasswordLinkViewReportFailedDetails", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkViewReportFailedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoPasswordLinkViewReportFailedType": {"fq_name": "team_log.NoPasswordLinkViewReportFailedType", "java_class": "com.dropbox.core.v2.teamlog.NoPasswordLinkViewReportFailedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NonTeamMemberLogInfo": {"fq_name": "team_log.NonTeamMemberLogInfo", "java_class": "com.dropbox.core.v2.teamlog.NonTeamMemberLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.NonTeamMemberLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NonTrustedTeamDetails": {"fq_name": "team_log.NonTrustedTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.NonTrustedTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteAclInviteOnlyDetails": {"fq_name": "team_log.NoteAclInviteOnlyDetails", "java_class": "com.dropbox.core.v2.teamlog.NoteAclInviteOnlyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteAclInviteOnlyType": {"fq_name": "team_log.NoteAclInviteOnlyType", "java_class": "com.dropbox.core.v2.teamlog.NoteAclInviteOnlyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteAclLinkDetails": {"fq_name": "team_log.NoteAclLinkDetails", "java_class": "com.dropbox.core.v2.teamlog.NoteAclLinkDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteAclLinkType": {"fq_name": "team_log.NoteAclLinkType", "java_class": "com.dropbox.core.v2.teamlog.NoteAclLinkType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteAclTeamLinkDetails": {"fq_name": "team_log.NoteAclTeamLinkDetails", "java_class": "com.dropbox.core.v2.teamlog.NoteAclTeamLinkDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteAclTeamLinkType": {"fq_name": "team_log.NoteAclTeamLinkType", "java_class": "com.dropbox.core.v2.teamlog.NoteAclTeamLinkType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteShareReceiveDetails": {"fq_name": "team_log.NoteShareReceiveDetails", "java_class": "com.dropbox.core.v2.teamlog.NoteShareReceiveDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteShareReceiveType": {"fq_name": "team_log.NoteShareReceiveType", "java_class": "com.dropbox.core.v2.teamlog.NoteShareReceiveType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteSharedDetails": {"fq_name": "team_log.NoteSharedDetails", "java_class": "com.dropbox.core.v2.teamlog.NoteSharedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.NoteSharedType": {"fq_name": "team_log.NoteSharedType", "java_class": "com.dropbox.core.v2.teamlog.NoteSharedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ObjectLabelAddedDetails": {"fq_name": "team_log.ObjectLabelAddedDetails", "java_class": "com.dropbox.core.v2.teamlog.ObjectLabelAddedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ObjectLabelAddedType": {"fq_name": "team_log.ObjectLabelAddedType", "java_class": "com.dropbox.core.v2.teamlog.ObjectLabelAddedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ObjectLabelRemovedDetails": {"fq_name": "team_log.ObjectLabelRemovedDetails", "java_class": "com.dropbox.core.v2.teamlog.ObjectLabelRemovedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ObjectLabelRemovedType": {"fq_name": "team_log.ObjectLabelRemovedType", "java_class": "com.dropbox.core.v2.teamlog.ObjectLabelRemovedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ObjectLabelUpdatedValueDetails": {"fq_name": "team_log.ObjectLabelUpdatedValueDetails", "java_class": "com.dropbox.core.v2.teamlog.ObjectLabelUpdatedValueDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ObjectLabelUpdatedValueType": {"fq_name": "team_log.ObjectLabelUpdatedValueType", "java_class": "com.dropbox.core.v2.teamlog.ObjectLabelUpdatedValueType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OpenNoteSharedDetails": {"fq_name": "team_log.OpenNoteSharedDetails", "java_class": "com.dropbox.core.v2.teamlog.OpenNoteSharedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OpenNoteSharedType": {"fq_name": "team_log.OpenNoteSharedType", "java_class": "com.dropbox.core.v2.teamlog.OpenNoteSharedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OrganizationDetails": {"fq_name": "team_log.OrganizationDetails", "java_class": "com.dropbox.core.v2.teamlog.OrganizationDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OrganizationName": {"fq_name": "team_log.OrganizationName", "java_class": "com.dropbox.core.v2.teamlog.OrganizationName", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OrganizeFolderWithTidyDetails": {"fq_name": "team_log.OrganizeFolderWithTidyDetails", "java_class": "com.dropbox.core.v2.teamlog.OrganizeFolderWithTidyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OrganizeFolderWithTidyType": {"fq_name": "team_log.OrganizeFolderWithTidyType", "java_class": "com.dropbox.core.v2.teamlog.OrganizeFolderWithTidyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OriginLogInfo": {"fq_name": "team_log.OriginLogInfo", "java_class": "com.dropbox.core.v2.teamlog.OriginLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OutdatedLinkViewCreateReportDetails": {"fq_name": "team_log.OutdatedLinkViewCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.OutdatedLinkViewCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OutdatedLinkViewCreateReportType": {"fq_name": "team_log.OutdatedLinkViewCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.OutdatedLinkViewCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OutdatedLinkViewReportFailedDetails": {"fq_name": "team_log.OutdatedLinkViewReportFailedDetails", "java_class": "com.dropbox.core.v2.teamlog.OutdatedLinkViewReportFailedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.OutdatedLinkViewReportFailedType": {"fq_name": "team_log.OutdatedLinkViewReportFailedType", "java_class": "com.dropbox.core.v2.teamlog.OutdatedLinkViewReportFailedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperAccessType": {"fq_name": "team_log.PaperAccessType", "java_class": "com.dropbox.core.v2.teamlog.PaperAccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperAdminExportStartDetails": {"fq_name": "team_log.PaperAdminExportStartDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperAdminExportStartDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperAdminExportStartType": {"fq_name": "team_log.PaperAdminExportStartType", "java_class": "com.dropbox.core.v2.teamlog.PaperAdminExportStartType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangeDeploymentPolicyDetails": {"fq_name": "team_log.PaperChangeDeploymentPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperChangeDeploymentPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangeDeploymentPolicyType": {"fq_name": "team_log.PaperChangeDeploymentPolicyType", "java_class": "com.dropbox.core.v2.teamlog.PaperChangeDeploymentPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangeMemberLinkPolicyDetails": {"fq_name": "team_log.PaperChangeMemberLinkPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperChangeMemberLinkPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangeMemberLinkPolicyType": {"fq_name": "team_log.PaperChangeMemberLinkPolicyType", "java_class": "com.dropbox.core.v2.teamlog.PaperChangeMemberLinkPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangeMemberPolicyDetails": {"fq_name": "team_log.PaperChangeMemberPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperChangeMemberPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangeMemberPolicyType": {"fq_name": "team_log.PaperChangeMemberPolicyType", "java_class": "com.dropbox.core.v2.teamlog.PaperChangeMemberPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangePolicyDetails": {"fq_name": "team_log.PaperChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperChangePolicyType": {"fq_name": "team_log.PaperChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.PaperChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentAddMemberDetails": {"fq_name": "team_log.PaperContentAddMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentAddMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentAddMemberType": {"fq_name": "team_log.PaperContentAddMemberType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentAddMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentAddToFolderDetails": {"fq_name": "team_log.PaperContentAddToFolderDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentAddToFolderDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentAddToFolderType": {"fq_name": "team_log.PaperContentAddToFolderType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentAddToFolderType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentArchiveDetails": {"fq_name": "team_log.PaperContentArchiveDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentArchiveDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentArchiveType": {"fq_name": "team_log.PaperContentArchiveType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentArchiveType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentCreateDetails": {"fq_name": "team_log.PaperContentCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentCreateDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentCreateType": {"fq_name": "team_log.PaperContentCreateType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentPermanentlyDeleteDetails": {"fq_name": "team_log.PaperContentPermanentlyDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentPermanentlyDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentPermanentlyDeleteType": {"fq_name": "team_log.PaperContentPermanentlyDeleteType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentPermanentlyDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRemoveFromFolderDetails": {"fq_name": "team_log.PaperContentRemoveFromFolderDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRemoveFromFolderDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.PaperContentRemoveFromFolderDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRemoveFromFolderType": {"fq_name": "team_log.PaperContentRemoveFromFolderType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRemoveFromFolderType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRemoveMemberDetails": {"fq_name": "team_log.PaperContentRemoveMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRemoveMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRemoveMemberType": {"fq_name": "team_log.PaperContentRemoveMemberType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRemoveMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRenameDetails": {"fq_name": "team_log.PaperContentRenameDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRenameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRenameType": {"fq_name": "team_log.PaperContentRenameType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRenameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRestoreDetails": {"fq_name": "team_log.PaperContentRestoreDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRestoreDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperContentRestoreType": {"fq_name": "team_log.PaperContentRestoreType", "java_class": "com.dropbox.core.v2.teamlog.PaperContentRestoreType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDefaultFolderPolicy": {"fq_name": "team_log.PaperDefaultFolderPolicy", "java_class": "com.dropbox.core.v2.teamlog.PaperDefaultFolderPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDefaultFolderPolicyChangedDetails": {"fq_name": "team_log.PaperDefaultFolderPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDefaultFolderPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDefaultFolderPolicyChangedType": {"fq_name": "team_log.PaperDefaultFolderPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.PaperDefaultFolderPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDesktopPolicy": {"fq_name": "team_log.PaperDesktopPolicy", "java_class": "com.dropbox.core.v2.teamlog.PaperDesktopPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDesktopPolicyChangedDetails": {"fq_name": "team_log.PaperDesktopPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDesktopPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDesktopPolicyChangedType": {"fq_name": "team_log.PaperDesktopPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.PaperDesktopPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocAddCommentDetails": {"fq_name": "team_log.PaperDocAddCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocAddCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocAddCommentType": {"fq_name": "team_log.PaperDocAddCommentType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocAddCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocChangeMemberRoleDetails": {"fq_name": "team_log.PaperDocChangeMemberRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocChangeMemberRoleDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocChangeMemberRoleType": {"fq_name": "team_log.PaperDocChangeMemberRoleType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocChangeMemberRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocChangeSharingPolicyDetails": {"fq_name": "team_log.PaperDocChangeSharingPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocChangeSharingPolicyDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.PaperDocChangeSharingPolicyDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocChangeSharingPolicyType": {"fq_name": "team_log.PaperDocChangeSharingPolicyType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocChangeSharingPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocChangeSubscriptionDetails": {"fq_name": "team_log.PaperDocChangeSubscriptionDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocChangeSubscriptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocChangeSubscriptionType": {"fq_name": "team_log.PaperDocChangeSubscriptionType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocChangeSubscriptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocDeleteCommentDetails": {"fq_name": "team_log.PaperDocDeleteCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocDeleteCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocDeleteCommentType": {"fq_name": "team_log.PaperDocDeleteCommentType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocDeleteCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocDeletedDetails": {"fq_name": "team_log.PaperDocDeletedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocDeletedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocDeletedType": {"fq_name": "team_log.PaperDocDeletedType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocDeletedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocDownloadDetails": {"fq_name": "team_log.PaperDocDownloadDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocDownloadDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocDownloadType": {"fq_name": "team_log.PaperDocDownloadType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocDownloadType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocEditCommentDetails": {"fq_name": "team_log.PaperDocEditCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocEditCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocEditCommentType": {"fq_name": "team_log.PaperDocEditCommentType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocEditCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocEditDetails": {"fq_name": "team_log.PaperDocEditDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocEditDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocEditType": {"fq_name": "team_log.PaperDocEditType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocEditType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocFollowedDetails": {"fq_name": "team_log.PaperDocFollowedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocFollowedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocFollowedType": {"fq_name": "team_log.PaperDocFollowedType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocFollowedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocMentionDetails": {"fq_name": "team_log.PaperDocMentionDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocMentionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocMentionType": {"fq_name": "team_log.PaperDocMentionType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocMentionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocOwnershipChangedDetails": {"fq_name": "team_log.PaperDocOwnershipChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocOwnershipChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocOwnershipChangedType": {"fq_name": "team_log.PaperDocOwnershipChangedType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocOwnershipChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocRequestAccessDetails": {"fq_name": "team_log.PaperDocRequestAccessDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocRequestAccessDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocRequestAccessType": {"fq_name": "team_log.PaperDocRequestAccessType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocRequestAccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocResolveCommentDetails": {"fq_name": "team_log.PaperDocResolveCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocResolveCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocResolveCommentType": {"fq_name": "team_log.PaperDocResolveCommentType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocResolveCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocRevertDetails": {"fq_name": "team_log.PaperDocRevertDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocRevertDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocRevertType": {"fq_name": "team_log.PaperDocRevertType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocRevertType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocSlackShareDetails": {"fq_name": "team_log.PaperDocSlackShareDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocSlackShareDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocSlackShareType": {"fq_name": "team_log.PaperDocSlackShareType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocSlackShareType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocTeamInviteDetails": {"fq_name": "team_log.PaperDocTeamInviteDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocTeamInviteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocTeamInviteType": {"fq_name": "team_log.PaperDocTeamInviteType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocTeamInviteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocTrashedDetails": {"fq_name": "team_log.PaperDocTrashedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocTrashedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocTrashedType": {"fq_name": "team_log.PaperDocTrashedType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocTrashedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocUnresolveCommentDetails": {"fq_name": "team_log.PaperDocUnresolveCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocUnresolveCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocUnresolveCommentType": {"fq_name": "team_log.PaperDocUnresolveCommentType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocUnresolveCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocUntrashedDetails": {"fq_name": "team_log.PaperDocUntrashedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocUntrashedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocUntrashedType": {"fq_name": "team_log.PaperDocUntrashedType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocUntrashedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocViewDetails": {"fq_name": "team_log.PaperDocViewDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperDocViewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocViewType": {"fq_name": "team_log.PaperDocViewType", "java_class": "com.dropbox.core.v2.teamlog.PaperDocViewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDocumentLogInfo": {"fq_name": "team_log.PaperDocumentLogInfo", "java_class": "com.dropbox.core.v2.teamlog.PaperDocumentLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperDownloadFormat": {"fq_name": "team_log.PaperDownloadFormat", "java_class": "com.dropbox.core.v2.teamlog.PaperDownloadFormat", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperEnabledUsersGroupAdditionDetails": {"fq_name": "team_log.PaperEnabledUsersGroupAdditionDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperEnabledUsersGroupAdditionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperEnabledUsersGroupAdditionType": {"fq_name": "team_log.PaperEnabledUsersGroupAdditionType", "java_class": "com.dropbox.core.v2.teamlog.PaperEnabledUsersGroupAdditionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperEnabledUsersGroupRemovalDetails": {"fq_name": "team_log.PaperEnabledUsersGroupRemovalDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperEnabledUsersGroupRemovalDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperEnabledUsersGroupRemovalType": {"fq_name": "team_log.PaperEnabledUsersGroupRemovalType", "java_class": "com.dropbox.core.v2.teamlog.PaperEnabledUsersGroupRemovalType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperExternalViewAllowDetails": {"fq_name": "team_log.PaperExternalViewAllowDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperExternalViewAllowDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperExternalViewAllowType": {"fq_name": "team_log.PaperExternalViewAllowType", "java_class": "com.dropbox.core.v2.teamlog.PaperExternalViewAllowType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperExternalViewDefaultTeamDetails": {"fq_name": "team_log.PaperExternalViewDefaultTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperExternalViewDefaultTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperExternalViewDefaultTeamType": {"fq_name": "team_log.PaperExternalViewDefaultTeamType", "java_class": "com.dropbox.core.v2.teamlog.PaperExternalViewDefaultTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperExternalViewForbidDetails": {"fq_name": "team_log.PaperExternalViewForbidDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperExternalViewForbidDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperExternalViewForbidType": {"fq_name": "team_log.PaperExternalViewForbidType", "java_class": "com.dropbox.core.v2.teamlog.PaperExternalViewForbidType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderChangeSubscriptionDetails": {"fq_name": "team_log.PaperFolderChangeSubscriptionDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderChangeSubscriptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderChangeSubscriptionType": {"fq_name": "team_log.PaperFolderChangeSubscriptionType", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderChangeSubscriptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderDeletedDetails": {"fq_name": "team_log.PaperFolderDeletedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderDeletedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderDeletedType": {"fq_name": "team_log.PaperFolderDeletedType", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderDeletedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderFollowedDetails": {"fq_name": "team_log.PaperFolderFollowedDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderFollowedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderFollowedType": {"fq_name": "team_log.PaperFolderFollowedType", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderFollowedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderLogInfo": {"fq_name": "team_log.PaperFolderLogInfo", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderTeamInviteDetails": {"fq_name": "team_log.PaperFolderTeamInviteDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderTeamInviteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperFolderTeamInviteType": {"fq_name": "team_log.PaperFolderTeamInviteType", "java_class": "com.dropbox.core.v2.teamlog.PaperFolderTeamInviteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperMemberPolicy": {"fq_name": "team_log.PaperMemberPolicy", "java_class": "com.dropbox.core.v2.teamlog.PaperMemberPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkChangePermissionDetails": {"fq_name": "team_log.PaperPublishedLinkChangePermissionDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkChangePermissionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkChangePermissionType": {"fq_name": "team_log.PaperPublishedLinkChangePermissionType", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkChangePermissionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkCreateDetails": {"fq_name": "team_log.PaperPublishedLinkCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkCreateDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkCreateType": {"fq_name": "team_log.PaperPublishedLinkCreateType", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkDisabledDetails": {"fq_name": "team_log.PaperPublishedLinkDisabledDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkDisabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkDisabledType": {"fq_name": "team_log.PaperPublishedLinkDisabledType", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkDisabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkViewDetails": {"fq_name": "team_log.PaperPublishedLinkViewDetails", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkViewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PaperPublishedLinkViewType": {"fq_name": "team_log.PaperPublishedLinkViewType", "java_class": "com.dropbox.core.v2.teamlog.PaperPublishedLinkViewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ParticipantLogInfo": {"fq_name": "team_log.ParticipantLogInfo", "java_class": "com.dropbox.core.v2.teamlog.ParticipantLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PassPolicy": {"fq_name": "team_log.PassPolicy", "java_class": "com.dropbox.core.v2.teamlog.PassPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordChangeDetails": {"fq_name": "team_log.PasswordChangeDetails", "java_class": "com.dropbox.core.v2.teamlog.PasswordChangeDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordChangeType": {"fq_name": "team_log.PasswordChangeType", "java_class": "com.dropbox.core.v2.teamlog.PasswordChangeType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordResetAllDetails": {"fq_name": "team_log.PasswordResetAllDetails", "java_class": "com.dropbox.core.v2.teamlog.PasswordResetAllDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordResetAllType": {"fq_name": "team_log.PasswordResetAllType", "java_class": "com.dropbox.core.v2.teamlog.PasswordResetAllType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordResetDetails": {"fq_name": "team_log.PasswordResetDetails", "java_class": "com.dropbox.core.v2.teamlog.PasswordResetDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordResetType": {"fq_name": "team_log.PasswordResetType", "java_class": "com.dropbox.core.v2.teamlog.PasswordResetType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordStrengthRequirementsChangePolicyDetails": {"fq_name": "team_log.PasswordStrengthRequirementsChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.PasswordStrengthRequirementsChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PasswordStrengthRequirementsChangePolicyType": {"fq_name": "team_log.PasswordStrengthRequirementsChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.PasswordStrengthRequirementsChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PathLogInfo": {"fq_name": "team_log.PathLogInfo", "java_class": "com.dropbox.core.v2.teamlog.PathLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PendingSecondaryEmailAddedDetails": {"fq_name": "team_log.PendingSecondaryEmailAddedDetails", "java_class": "com.dropbox.core.v2.teamlog.PendingSecondaryEmailAddedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PendingSecondaryEmailAddedType": {"fq_name": "team_log.PendingSecondaryEmailAddedType", "java_class": "com.dropbox.core.v2.teamlog.PendingSecondaryEmailAddedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PermanentDeleteChangePolicyDetails": {"fq_name": "team_log.PermanentDeleteChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.PermanentDeleteChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PermanentDeleteChangePolicyType": {"fq_name": "team_log.PermanentDeleteChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.PermanentDeleteChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PlacementRestriction": {"fq_name": "team_log.PlacementRestriction", "java_class": "com.dropbox.core.v2.teamlog.PlacementRestriction", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PolicyType": {"fq_name": "team_log.PolicyType", "java_class": "com.dropbox.core.v2.teamlog.PolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PrimaryTeamRequestAcceptedDetails": {"fq_name": "team_log.PrimaryTeamRequestAcceptedDetails", "java_class": "com.dropbox.core.v2.teamlog.PrimaryTeamRequestAcceptedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PrimaryTeamRequestCanceledDetails": {"fq_name": "team_log.PrimaryTeamRequestCanceledDetails", "java_class": "com.dropbox.core.v2.teamlog.PrimaryTeamRequestCanceledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PrimaryTeamRequestExpiredDetails": {"fq_name": "team_log.PrimaryTeamRequestExpiredDetails", "java_class": "com.dropbox.core.v2.teamlog.PrimaryTeamRequestExpiredDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.PrimaryTeamRequestReminderDetails": {"fq_name": "team_log.PrimaryTeamRequestReminderDetails", "java_class": "com.dropbox.core.v2.teamlog.PrimaryTeamRequestReminderDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.QuickActionType": {"fq_name": "team_log.QuickActionType", "java_class": "com.dropbox.core.v2.teamlog.QuickActionType", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_log.RansomwareAlertCreateReportDetails": {"fq_name": "team_log.RansomwareAlertCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.RansomwareAlertCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RansomwareAlertCreateReportFailedDetails": {"fq_name": "team_log.RansomwareAlertCreateReportFailedDetails", "java_class": "com.dropbox.core.v2.teamlog.RansomwareAlertCreateReportFailedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RansomwareAlertCreateReportFailedType": {"fq_name": "team_log.RansomwareAlertCreateReportFailedType", "java_class": "com.dropbox.core.v2.teamlog.RansomwareAlertCreateReportFailedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RansomwareAlertCreateReportType": {"fq_name": "team_log.RansomwareAlertCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.RansomwareAlertCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RansomwareRestoreProcessCompletedDetails": {"fq_name": "team_log.RansomwareRestoreProcessCompletedDetails", "java_class": "com.dropbox.core.v2.teamlog.RansomwareRestoreProcessCompletedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RansomwareRestoreProcessCompletedType": {"fq_name": "team_log.RansomwareRestoreProcessCompletedType", "java_class": "com.dropbox.core.v2.teamlog.RansomwareRestoreProcessCompletedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RansomwareRestoreProcessStartedDetails": {"fq_name": "team_log.RansomwareRestoreProcessStartedDetails", "java_class": "com.dropbox.core.v2.teamlog.RansomwareRestoreProcessStartedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RansomwareRestoreProcessStartedType": {"fq_name": "team_log.RansomwareRestoreProcessStartedType", "java_class": "com.dropbox.core.v2.teamlog.RansomwareRestoreProcessStartedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RecipientsConfiguration": {"fq_name": "team_log.RecipientsConfiguration", "java_class": "com.dropbox.core.v2.teamlog.RecipientsConfiguration", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.RecipientsConfiguration.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RelocateAssetReferencesLogInfo": {"fq_name": "team_log.RelocateAssetReferencesLogInfo", "java_class": "com.dropbox.core.v2.teamlog.RelocateAssetReferencesLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayFileDeleteDetails": {"fq_name": "team_log.ReplayFileDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.ReplayFileDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayFileDeleteType": {"fq_name": "team_log.ReplayFileDeleteType", "java_class": "com.dropbox.core.v2.teamlog.ReplayFileDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayFileSharedLinkCreatedDetails": {"fq_name": "team_log.ReplayFileSharedLinkCreatedDetails", "java_class": "com.dropbox.core.v2.teamlog.ReplayFileSharedLinkCreatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayFileSharedLinkCreatedType": {"fq_name": "team_log.ReplayFileSharedLinkCreatedType", "java_class": "com.dropbox.core.v2.teamlog.ReplayFileSharedLinkCreatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayFileSharedLinkModifiedDetails": {"fq_name": "team_log.ReplayFileSharedLinkModifiedDetails", "java_class": "com.dropbox.core.v2.teamlog.ReplayFileSharedLinkModifiedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayFileSharedLinkModifiedType": {"fq_name": "team_log.ReplayFileSharedLinkModifiedType", "java_class": "com.dropbox.core.v2.teamlog.ReplayFileSharedLinkModifiedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayProjectTeamAddDetails": {"fq_name": "team_log.ReplayProjectTeamAddDetails", "java_class": "com.dropbox.core.v2.teamlog.ReplayProjectTeamAddDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayProjectTeamAddType": {"fq_name": "team_log.ReplayProjectTeamAddType", "java_class": "com.dropbox.core.v2.teamlog.ReplayProjectTeamAddType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayProjectTeamDeleteDetails": {"fq_name": "team_log.ReplayProjectTeamDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.ReplayProjectTeamDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ReplayProjectTeamDeleteType": {"fq_name": "team_log.ReplayProjectTeamDeleteType", "java_class": "com.dropbox.core.v2.teamlog.ReplayProjectTeamDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerLogInfo": {"fq_name": "team_log.ResellerLogInfo", "java_class": "com.dropbox.core.v2.teamlog.ResellerLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerRole": {"fq_name": "team_log.ResellerRole", "java_class": "com.dropbox.core.v2.teamlog.ResellerRole", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerSupportChangePolicyDetails": {"fq_name": "team_log.ResellerSupportChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.ResellerSupportChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerSupportChangePolicyType": {"fq_name": "team_log.ResellerSupportChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.ResellerSupportChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerSupportPolicy": {"fq_name": "team_log.ResellerSupportPolicy", "java_class": "com.dropbox.core.v2.teamlog.ResellerSupportPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerSupportSessionEndDetails": {"fq_name": "team_log.ResellerSupportSessionEndDetails", "java_class": "com.dropbox.core.v2.teamlog.ResellerSupportSessionEndDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerSupportSessionEndType": {"fq_name": "team_log.ResellerSupportSessionEndType", "java_class": "com.dropbox.core.v2.teamlog.ResellerSupportSessionEndType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerSupportSessionStartDetails": {"fq_name": "team_log.ResellerSupportSessionStartDetails", "java_class": "com.dropbox.core.v2.teamlog.ResellerSupportSessionStartDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ResellerSupportSessionStartType": {"fq_name": "team_log.ResellerSupportSessionStartType", "java_class": "com.dropbox.core.v2.teamlog.ResellerSupportSessionStartType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RewindFolderDetails": {"fq_name": "team_log.RewindFolderDetails", "java_class": "com.dropbox.core.v2.teamlog.RewindFolderDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RewindFolderType": {"fq_name": "team_log.RewindFolderType", "java_class": "com.dropbox.core.v2.teamlog.RewindFolderType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RewindPolicy": {"fq_name": "team_log.RewindPolicy", "java_class": "com.dropbox.core.v2.teamlog.RewindPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RewindPolicyChangedDetails": {"fq_name": "team_log.RewindPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.RewindPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.RewindPolicyChangedType": {"fq_name": "team_log.RewindPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.RewindPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryEmailDeletedDetails": {"fq_name": "team_log.SecondaryEmailDeletedDetails", "java_class": "com.dropbox.core.v2.teamlog.SecondaryEmailDeletedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryEmailDeletedType": {"fq_name": "team_log.SecondaryEmailDeletedType", "java_class": "com.dropbox.core.v2.teamlog.SecondaryEmailDeletedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryEmailVerifiedDetails": {"fq_name": "team_log.SecondaryEmailVerifiedDetails", "java_class": "com.dropbox.core.v2.teamlog.SecondaryEmailVerifiedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryEmailVerifiedType": {"fq_name": "team_log.SecondaryEmailVerifiedType", "java_class": "com.dropbox.core.v2.teamlog.SecondaryEmailVerifiedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryMailsPolicy": {"fq_name": "team_log.SecondaryMailsPolicy", "java_class": "com.dropbox.core.v2.teamlog.SecondaryMailsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryMailsPolicyChangedDetails": {"fq_name": "team_log.SecondaryMailsPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.SecondaryMailsPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryMailsPolicyChangedType": {"fq_name": "team_log.SecondaryMailsPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.SecondaryMailsPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryTeamRequestAcceptedDetails": {"fq_name": "team_log.SecondaryTeamRequestAcceptedDetails", "java_class": "com.dropbox.core.v2.teamlog.SecondaryTeamRequestAcceptedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryTeamRequestCanceledDetails": {"fq_name": "team_log.SecondaryTeamRequestCanceledDetails", "java_class": "com.dropbox.core.v2.teamlog.SecondaryTeamRequestCanceledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryTeamRequestExpiredDetails": {"fq_name": "team_log.SecondaryTeamRequestExpiredDetails", "java_class": "com.dropbox.core.v2.teamlog.SecondaryTeamRequestExpiredDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SecondaryTeamRequestReminderDetails": {"fq_name": "team_log.SecondaryTeamRequestReminderDetails", "java_class": "com.dropbox.core.v2.teamlog.SecondaryTeamRequestReminderDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SendForSignaturePolicy": {"fq_name": "team_log.SendForSignaturePolicy", "java_class": "com.dropbox.core.v2.teamlog.SendForSignaturePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SendForSignaturePolicyChangedDetails": {"fq_name": "team_log.SendForSignaturePolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.SendForSignaturePolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SendForSignaturePolicyChangedType": {"fq_name": "team_log.SendForSignaturePolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.SendForSignaturePolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SessionLogInfo": {"fq_name": "team_log.SessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.SessionLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfAddGroupDetails": {"fq_name": "team_log.SfAddGroupDetails", "java_class": "com.dropbox.core.v2.teamlog.SfAddGroupDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfAddGroupType": {"fq_name": "team_log.SfAddGroupType", "java_class": "com.dropbox.core.v2.teamlog.SfAddGroupType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfAllowNonMembersToViewSharedLinksDetails": {"fq_name": "team_log.SfAllowNonMembersToViewSharedLinksDetails", "java_class": "com.dropbox.core.v2.teamlog.SfAllowNonMembersToViewSharedLinksDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfAllowNonMembersToViewSharedLinksType": {"fq_name": "team_log.SfAllowNonMembersToViewSharedLinksType", "java_class": "com.dropbox.core.v2.teamlog.SfAllowNonMembersToViewSharedLinksType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfExternalInviteWarnDetails": {"fq_name": "team_log.SfExternalInviteWarnDetails", "java_class": "com.dropbox.core.v2.teamlog.SfExternalInviteWarnDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SfExternalInviteWarnDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfExternalInviteWarnType": {"fq_name": "team_log.SfExternalInviteWarnType", "java_class": "com.dropbox.core.v2.teamlog.SfExternalInviteWarnType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfFbInviteChangeRoleDetails": {"fq_name": "team_log.SfFbInviteChangeRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.SfFbInviteChangeRoleDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SfFbInviteChangeRoleDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfFbInviteChangeRoleType": {"fq_name": "team_log.SfFbInviteChangeRoleType", "java_class": "com.dropbox.core.v2.teamlog.SfFbInviteChangeRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfFbInviteDetails": {"fq_name": "team_log.SfFbInviteDetails", "java_class": "com.dropbox.core.v2.teamlog.SfFbInviteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfFbInviteType": {"fq_name": "team_log.SfFbInviteType", "java_class": "com.dropbox.core.v2.teamlog.SfFbInviteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfFbUninviteDetails": {"fq_name": "team_log.SfFbUninviteDetails", "java_class": "com.dropbox.core.v2.teamlog.SfFbUninviteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfFbUninviteType": {"fq_name": "team_log.SfFbUninviteType", "java_class": "com.dropbox.core.v2.teamlog.SfFbUninviteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfInviteGroupDetails": {"fq_name": "team_log.SfInviteGroupDetails", "java_class": "com.dropbox.core.v2.teamlog.SfInviteGroupDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfInviteGroupType": {"fq_name": "team_log.SfInviteGroupType", "java_class": "com.dropbox.core.v2.teamlog.SfInviteGroupType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamGrantAccessDetails": {"fq_name": "team_log.SfTeamGrantAccessDetails", "java_class": "com.dropbox.core.v2.teamlog.SfTeamGrantAccessDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamGrantAccessType": {"fq_name": "team_log.SfTeamGrantAccessType", "java_class": "com.dropbox.core.v2.teamlog.SfTeamGrantAccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamInviteChangeRoleDetails": {"fq_name": "team_log.SfTeamInviteChangeRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.SfTeamInviteChangeRoleDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SfTeamInviteChangeRoleDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamInviteChangeRoleType": {"fq_name": "team_log.SfTeamInviteChangeRoleType", "java_class": "com.dropbox.core.v2.teamlog.SfTeamInviteChangeRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamInviteDetails": {"fq_name": "team_log.SfTeamInviteDetails", "java_class": "com.dropbox.core.v2.teamlog.SfTeamInviteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamInviteType": {"fq_name": "team_log.SfTeamInviteType", "java_class": "com.dropbox.core.v2.teamlog.SfTeamInviteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamJoinDetails": {"fq_name": "team_log.SfTeamJoinDetails", "java_class": "com.dropbox.core.v2.teamlog.SfTeamJoinDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamJoinFromOobLinkDetails": {"fq_name": "team_log.SfTeamJoinFromOobLinkDetails", "java_class": "com.dropbox.core.v2.teamlog.SfTeamJoinFromOobLinkDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SfTeamJoinFromOobLinkDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamJoinFromOobLinkType": {"fq_name": "team_log.SfTeamJoinFromOobLinkType", "java_class": "com.dropbox.core.v2.teamlog.SfTeamJoinFromOobLinkType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamJoinType": {"fq_name": "team_log.SfTeamJoinType", "java_class": "com.dropbox.core.v2.teamlog.SfTeamJoinType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamUninviteDetails": {"fq_name": "team_log.SfTeamUninviteDetails", "java_class": "com.dropbox.core.v2.teamlog.SfTeamUninviteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SfTeamUninviteType": {"fq_name": "team_log.SfTeamUninviteType", "java_class": "com.dropbox.core.v2.teamlog.SfTeamUninviteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddInviteesDetails": {"fq_name": "team_log.SharedContentAddInviteesDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddInviteesDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddInviteesType": {"fq_name": "team_log.SharedContentAddInviteesType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddInviteesType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddLinkExpiryDetails": {"fq_name": "team_log.SharedContentAddLinkExpiryDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddLinkExpiryDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddLinkExpiryType": {"fq_name": "team_log.SharedContentAddLinkExpiryType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddLinkExpiryType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddLinkPasswordDetails": {"fq_name": "team_log.SharedContentAddLinkPasswordDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddLinkPasswordDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddLinkPasswordType": {"fq_name": "team_log.SharedContentAddLinkPasswordType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddLinkPasswordType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddMemberDetails": {"fq_name": "team_log.SharedContentAddMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentAddMemberType": {"fq_name": "team_log.SharedContentAddMemberType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentAddMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeDownloadsPolicyDetails": {"fq_name": "team_log.SharedContentChangeDownloadsPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeDownloadsPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeDownloadsPolicyType": {"fq_name": "team_log.SharedContentChangeDownloadsPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeDownloadsPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeInviteeRoleDetails": {"fq_name": "team_log.SharedContentChangeInviteeRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeInviteeRoleDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeInviteeRoleType": {"fq_name": "team_log.SharedContentChangeInviteeRoleType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeInviteeRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeLinkAudienceDetails": {"fq_name": "team_log.SharedContentChangeLinkAudienceDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeLinkAudienceDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeLinkAudienceType": {"fq_name": "team_log.SharedContentChangeLinkAudienceType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeLinkAudienceType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeLinkExpiryDetails": {"fq_name": "team_log.SharedContentChangeLinkExpiryDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeLinkExpiryDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedContentChangeLinkExpiryDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeLinkExpiryType": {"fq_name": "team_log.SharedContentChangeLinkExpiryType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeLinkExpiryType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeLinkPasswordDetails": {"fq_name": "team_log.SharedContentChangeLinkPasswordDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeLinkPasswordDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeLinkPasswordType": {"fq_name": "team_log.SharedContentChangeLinkPasswordType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeLinkPasswordType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeMemberRoleDetails": {"fq_name": "team_log.SharedContentChangeMemberRoleDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeMemberRoleDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeMemberRoleType": {"fq_name": "team_log.SharedContentChangeMemberRoleType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeMemberRoleType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeViewerInfoPolicyDetails": {"fq_name": "team_log.SharedContentChangeViewerInfoPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeViewerInfoPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentChangeViewerInfoPolicyType": {"fq_name": "team_log.SharedContentChangeViewerInfoPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentChangeViewerInfoPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentClaimInvitationDetails": {"fq_name": "team_log.SharedContentClaimInvitationDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentClaimInvitationDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentClaimInvitationType": {"fq_name": "team_log.SharedContentClaimInvitationType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentClaimInvitationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentCopyDetails": {"fq_name": "team_log.SharedContentCopyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentCopyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentCopyType": {"fq_name": "team_log.SharedContentCopyType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentCopyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentDownloadDetails": {"fq_name": "team_log.SharedContentDownloadDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentDownloadDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentDownloadType": {"fq_name": "team_log.SharedContentDownloadType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentDownloadType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRelinquishMembershipDetails": {"fq_name": "team_log.SharedContentRelinquishMembershipDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRelinquishMembershipDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRelinquishMembershipType": {"fq_name": "team_log.SharedContentRelinquishMembershipType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRelinquishMembershipType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveInviteesDetails": {"fq_name": "team_log.SharedContentRemoveInviteesDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveInviteesDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveInviteesType": {"fq_name": "team_log.SharedContentRemoveInviteesType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveInviteesType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveLinkExpiryDetails": {"fq_name": "team_log.SharedContentRemoveLinkExpiryDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveLinkExpiryDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveLinkExpiryType": {"fq_name": "team_log.SharedContentRemoveLinkExpiryType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveLinkExpiryType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveLinkPasswordDetails": {"fq_name": "team_log.SharedContentRemoveLinkPasswordDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveLinkPasswordDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveLinkPasswordType": {"fq_name": "team_log.SharedContentRemoveLinkPasswordType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveLinkPasswordType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveMemberDetails": {"fq_name": "team_log.SharedContentRemoveMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRemoveMemberType": {"fq_name": "team_log.SharedContentRemoveMemberType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRemoveMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRequestAccessDetails": {"fq_name": "team_log.SharedContentRequestAccessDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRequestAccessDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRequestAccessType": {"fq_name": "team_log.SharedContentRequestAccessType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRequestAccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRestoreInviteesDetails": {"fq_name": "team_log.SharedContentRestoreInviteesDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRestoreInviteesDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRestoreInviteesType": {"fq_name": "team_log.SharedContentRestoreInviteesType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRestoreInviteesType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRestoreMemberDetails": {"fq_name": "team_log.SharedContentRestoreMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRestoreMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentRestoreMemberType": {"fq_name": "team_log.SharedContentRestoreMemberType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentRestoreMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentUnshareDetails": {"fq_name": "team_log.SharedContentUnshareDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentUnshareDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentUnshareType": {"fq_name": "team_log.SharedContentUnshareType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentUnshareType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentViewDetails": {"fq_name": "team_log.SharedContentViewDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedContentViewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedContentViewType": {"fq_name": "team_log.SharedContentViewType", "java_class": "com.dropbox.core.v2.teamlog.SharedContentViewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeLinkPolicyDetails": {"fq_name": "team_log.SharedFolderChangeLinkPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeLinkPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeLinkPolicyType": {"fq_name": "team_log.SharedFolderChangeLinkPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeLinkPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeMembersInheritancePolicyDetails": {"fq_name": "team_log.SharedFolderChangeMembersInheritancePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeMembersInheritancePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeMembersInheritancePolicyType": {"fq_name": "team_log.SharedFolderChangeMembersInheritancePolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeMembersInheritancePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeMembersManagementPolicyDetails": {"fq_name": "team_log.SharedFolderChangeMembersManagementPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeMembersManagementPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeMembersManagementPolicyType": {"fq_name": "team_log.SharedFolderChangeMembersManagementPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeMembersManagementPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeMembersPolicyDetails": {"fq_name": "team_log.SharedFolderChangeMembersPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeMembersPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderChangeMembersPolicyType": {"fq_name": "team_log.SharedFolderChangeMembersPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderChangeMembersPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderCreateDetails": {"fq_name": "team_log.SharedFolderCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderCreateDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderCreateType": {"fq_name": "team_log.SharedFolderCreateType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderDeclineInvitationDetails": {"fq_name": "team_log.SharedFolderDeclineInvitationDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderDeclineInvitationDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderDeclineInvitationType": {"fq_name": "team_log.SharedFolderDeclineInvitationType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderDeclineInvitationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderMembersInheritancePolicy": {"fq_name": "team_log.SharedFolderMembersInheritancePolicy", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderMembersInheritancePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderMountDetails": {"fq_name": "team_log.SharedFolderMountDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderMountDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderMountType": {"fq_name": "team_log.SharedFolderMountType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderMountType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderNestDetails": {"fq_name": "team_log.SharedFolderNestDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderNestDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedFolderNestDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderNestType": {"fq_name": "team_log.SharedFolderNestType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderNestType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderTransferOwnershipDetails": {"fq_name": "team_log.SharedFolderTransferOwnershipDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderTransferOwnershipDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderTransferOwnershipType": {"fq_name": "team_log.SharedFolderTransferOwnershipType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderTransferOwnershipType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderUnmountDetails": {"fq_name": "team_log.SharedFolderUnmountDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderUnmountDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedFolderUnmountType": {"fq_name": "team_log.SharedFolderUnmountType", "java_class": "com.dropbox.core.v2.teamlog.SharedFolderUnmountType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkAccessLevel": {"fq_name": "team_log.SharedLinkAccessLevel", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkAccessLevel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkAddExpiryDetails": {"fq_name": "team_log.SharedLinkAddExpiryDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkAddExpiryDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkAddExpiryType": {"fq_name": "team_log.SharedLinkAddExpiryType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkAddExpiryType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkChangeExpiryDetails": {"fq_name": "team_log.SharedLinkChangeExpiryDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkChangeExpiryDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedLinkChangeExpiryDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkChangeExpiryType": {"fq_name": "team_log.SharedLinkChangeExpiryType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkChangeExpiryType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkChangeVisibilityDetails": {"fq_name": "team_log.SharedLinkChangeVisibilityDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkChangeVisibilityDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkChangeVisibilityType": {"fq_name": "team_log.SharedLinkChangeVisibilityType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkChangeVisibilityType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkCopyDetails": {"fq_name": "team_log.SharedLinkCopyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkCopyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkCopyType": {"fq_name": "team_log.SharedLinkCopyType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkCopyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkCreateDetails": {"fq_name": "team_log.SharedLinkCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkCreateDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkCreateType": {"fq_name": "team_log.SharedLinkCreateType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkDisableDetails": {"fq_name": "team_log.SharedLinkDisableDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkDisableDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkDisableType": {"fq_name": "team_log.SharedLinkDisableType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkDisableType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkDownloadDetails": {"fq_name": "team_log.SharedLinkDownloadDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkDownloadDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkDownloadType": {"fq_name": "team_log.SharedLinkDownloadType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkDownloadType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkRemoveExpiryDetails": {"fq_name": "team_log.SharedLinkRemoveExpiryDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkRemoveExpiryDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkRemoveExpiryType": {"fq_name": "team_log.SharedLinkRemoveExpiryType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkRemoveExpiryType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAddExpirationDetails": {"fq_name": "team_log.SharedLinkSettingsAddExpirationDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAddExpirationDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAddExpirationDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAddExpirationType": {"fq_name": "team_log.SharedLinkSettingsAddExpirationType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAddExpirationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAddPasswordDetails": {"fq_name": "team_log.SharedLinkSettingsAddPasswordDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAddPasswordDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAddPasswordType": {"fq_name": "team_log.SharedLinkSettingsAddPasswordType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAddPasswordType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAllowDownloadDisabledDetails": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadDisabledDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAllowDownloadDisabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAllowDownloadDisabledType": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadDisabledType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAllowDownloadDisabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAllowDownloadEnabledDetails": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadEnabledDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAllowDownloadEnabledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsAllowDownloadEnabledType": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadEnabledType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsAllowDownloadEnabledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsChangeAudienceDetails": {"fq_name": "team_log.SharedLinkSettingsChangeAudienceDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangeAudienceDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangeAudienceDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsChangeAudienceType": {"fq_name": "team_log.SharedLinkSettingsChangeAudienceType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangeAudienceType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsChangeExpirationDetails": {"fq_name": "team_log.SharedLinkSettingsChangeExpirationDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangeExpirationDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangeExpirationDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsChangeExpirationType": {"fq_name": "team_log.SharedLinkSettingsChangeExpirationType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangeExpirationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsChangePasswordDetails": {"fq_name": "team_log.SharedLinkSettingsChangePasswordDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangePasswordDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsChangePasswordType": {"fq_name": "team_log.SharedLinkSettingsChangePasswordType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsChangePasswordType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsRemoveExpirationDetails": {"fq_name": "team_log.SharedLinkSettingsRemoveExpirationDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsRemoveExpirationDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsRemoveExpirationDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsRemoveExpirationType": {"fq_name": "team_log.SharedLinkSettingsRemoveExpirationType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsRemoveExpirationType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsRemovePasswordDetails": {"fq_name": "team_log.SharedLinkSettingsRemovePasswordDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsRemovePasswordDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkSettingsRemovePasswordType": {"fq_name": "team_log.SharedLinkSettingsRemovePasswordType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkSettingsRemovePasswordType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkShareDetails": {"fq_name": "team_log.SharedLinkShareDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkShareDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SharedLinkShareDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkShareType": {"fq_name": "team_log.SharedLinkShareType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkShareType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkViewDetails": {"fq_name": "team_log.SharedLinkViewDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkViewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkViewType": {"fq_name": "team_log.SharedLinkViewType", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkViewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedLinkVisibility": {"fq_name": "team_log.SharedLinkVisibility", "java_class": "com.dropbox.core.v2.teamlog.SharedLinkVisibility", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedNoteOpenedDetails": {"fq_name": "team_log.SharedNoteOpenedDetails", "java_class": "com.dropbox.core.v2.teamlog.SharedNoteOpenedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharedNoteOpenedType": {"fq_name": "team_log.SharedNoteOpenedType", "java_class": "com.dropbox.core.v2.teamlog.SharedNoteOpenedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeFolderJoinPolicyDetails": {"fq_name": "team_log.SharingChangeFolderJoinPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeFolderJoinPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeFolderJoinPolicyType": {"fq_name": "team_log.SharingChangeFolderJoinPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeFolderJoinPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails": {"fq_name": "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkAllowChangeExpirationPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkAllowChangeExpirationPolicyType": {"fq_name": "team_log.SharingChangeLinkAllowChangeExpirationPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkAllowChangeExpirationPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkDefaultExpirationPolicyDetails": {"fq_name": "team_log.SharingChangeLinkDefaultExpirationPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkDefaultExpirationPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkDefaultExpirationPolicyType": {"fq_name": "team_log.SharingChangeLinkDefaultExpirationPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkDefaultExpirationPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkEnforcePasswordPolicyDetails": {"fq_name": "team_log.SharingChangeLinkEnforcePasswordPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkEnforcePasswordPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkEnforcePasswordPolicyType": {"fq_name": "team_log.SharingChangeLinkEnforcePasswordPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkEnforcePasswordPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkPolicyDetails": {"fq_name": "team_log.SharingChangeLinkPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeLinkPolicyType": {"fq_name": "team_log.SharingChangeLinkPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeLinkPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeMemberPolicyDetails": {"fq_name": "team_log.SharingChangeMemberPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeMemberPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingChangeMemberPolicyType": {"fq_name": "team_log.SharingChangeMemberPolicyType", "java_class": "com.dropbox.core.v2.teamlog.SharingChangeMemberPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingFolderJoinPolicy": {"fq_name": "team_log.SharingFolderJoinPolicy", "java_class": "com.dropbox.core.v2.teamlog.SharingFolderJoinPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingLinkPolicy": {"fq_name": "team_log.SharingLinkPolicy", "java_class": "com.dropbox.core.v2.teamlog.SharingLinkPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SharingMemberPolicy": {"fq_name": "team_log.SharingMemberPolicy", "java_class": "com.dropbox.core.v2.teamlog.SharingMemberPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShmodelDisableDownloadsDetails": {"fq_name": "team_log.ShmodelDisableDownloadsDetails", "java_class": "com.dropbox.core.v2.teamlog.ShmodelDisableDownloadsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShmodelDisableDownloadsType": {"fq_name": "team_log.ShmodelDisableDownloadsType", "java_class": "com.dropbox.core.v2.teamlog.ShmodelDisableDownloadsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShmodelEnableDownloadsDetails": {"fq_name": "team_log.ShmodelEnableDownloadsDetails", "java_class": "com.dropbox.core.v2.teamlog.ShmodelEnableDownloadsDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShmodelEnableDownloadsType": {"fq_name": "team_log.ShmodelEnableDownloadsType", "java_class": "com.dropbox.core.v2.teamlog.ShmodelEnableDownloadsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShmodelGroupShareDetails": {"fq_name": "team_log.ShmodelGroupShareDetails", "java_class": "com.dropbox.core.v2.teamlog.ShmodelGroupShareDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShmodelGroupShareType": {"fq_name": "team_log.ShmodelGroupShareType", "java_class": "com.dropbox.core.v2.teamlog.ShmodelGroupShareType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseAccessGrantedDetails": {"fq_name": "team_log.ShowcaseAccessGrantedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseAccessGrantedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseAccessGrantedType": {"fq_name": "team_log.ShowcaseAccessGrantedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseAccessGrantedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseAddMemberDetails": {"fq_name": "team_log.ShowcaseAddMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseAddMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseAddMemberType": {"fq_name": "team_log.ShowcaseAddMemberType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseAddMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseArchivedDetails": {"fq_name": "team_log.ShowcaseArchivedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseArchivedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseArchivedType": {"fq_name": "team_log.ShowcaseArchivedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseArchivedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseChangeDownloadPolicyDetails": {"fq_name": "team_log.ShowcaseChangeDownloadPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseChangeDownloadPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseChangeDownloadPolicyType": {"fq_name": "team_log.ShowcaseChangeDownloadPolicyType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseChangeDownloadPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseChangeEnabledPolicyDetails": {"fq_name": "team_log.ShowcaseChangeEnabledPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseChangeEnabledPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseChangeEnabledPolicyType": {"fq_name": "team_log.ShowcaseChangeEnabledPolicyType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseChangeEnabledPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseChangeExternalSharingPolicyDetails": {"fq_name": "team_log.ShowcaseChangeExternalSharingPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseChangeExternalSharingPolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseChangeExternalSharingPolicyType": {"fq_name": "team_log.ShowcaseChangeExternalSharingPolicyType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseChangeExternalSharingPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseCreatedDetails": {"fq_name": "team_log.ShowcaseCreatedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseCreatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseCreatedType": {"fq_name": "team_log.ShowcaseCreatedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseCreatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseDeleteCommentDetails": {"fq_name": "team_log.ShowcaseDeleteCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseDeleteCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseDeleteCommentType": {"fq_name": "team_log.ShowcaseDeleteCommentType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseDeleteCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseDocumentLogInfo": {"fq_name": "team_log.ShowcaseDocumentLogInfo", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseDocumentLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseDownloadPolicy": {"fq_name": "team_log.ShowcaseDownloadPolicy", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseDownloadPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseEditCommentDetails": {"fq_name": "team_log.ShowcaseEditCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseEditCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseEditCommentType": {"fq_name": "team_log.ShowcaseEditCommentType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseEditCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseEditedDetails": {"fq_name": "team_log.ShowcaseEditedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseEditedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseEditedType": {"fq_name": "team_log.ShowcaseEditedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseEditedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseEnabledPolicy": {"fq_name": "team_log.ShowcaseEnabledPolicy", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseEnabledPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseExternalSharingPolicy": {"fq_name": "team_log.ShowcaseExternalSharingPolicy", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseExternalSharingPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileAddedDetails": {"fq_name": "team_log.ShowcaseFileAddedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileAddedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileAddedType": {"fq_name": "team_log.ShowcaseFileAddedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileAddedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileDownloadDetails": {"fq_name": "team_log.ShowcaseFileDownloadDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileDownloadDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileDownloadType": {"fq_name": "team_log.ShowcaseFileDownloadType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileDownloadType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileRemovedDetails": {"fq_name": "team_log.ShowcaseFileRemovedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileRemovedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileRemovedType": {"fq_name": "team_log.ShowcaseFileRemovedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileRemovedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileViewDetails": {"fq_name": "team_log.ShowcaseFileViewDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileViewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseFileViewType": {"fq_name": "team_log.ShowcaseFileViewType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseFileViewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcasePermanentlyDeletedDetails": {"fq_name": "team_log.ShowcasePermanentlyDeletedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcasePermanentlyDeletedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcasePermanentlyDeletedType": {"fq_name": "team_log.ShowcasePermanentlyDeletedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcasePermanentlyDeletedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcasePostCommentDetails": {"fq_name": "team_log.ShowcasePostCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcasePostCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcasePostCommentType": {"fq_name": "team_log.ShowcasePostCommentType", "java_class": "com.dropbox.core.v2.teamlog.ShowcasePostCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRemoveMemberDetails": {"fq_name": "team_log.ShowcaseRemoveMemberDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRemoveMemberDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRemoveMemberType": {"fq_name": "team_log.ShowcaseRemoveMemberType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRemoveMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRenamedDetails": {"fq_name": "team_log.ShowcaseRenamedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRenamedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRenamedType": {"fq_name": "team_log.ShowcaseRenamedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRenamedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRequestAccessDetails": {"fq_name": "team_log.ShowcaseRequestAccessDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRequestAccessDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRequestAccessType": {"fq_name": "team_log.ShowcaseRequestAccessType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRequestAccessType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseResolveCommentDetails": {"fq_name": "team_log.ShowcaseResolveCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseResolveCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseResolveCommentType": {"fq_name": "team_log.ShowcaseResolveCommentType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseResolveCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRestoredDetails": {"fq_name": "team_log.ShowcaseRestoredDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRestoredDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseRestoredType": {"fq_name": "team_log.ShowcaseRestoredType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseRestoredType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseTrashedDeprecatedDetails": {"fq_name": "team_log.ShowcaseTrashedDeprecatedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseTrashedDeprecatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseTrashedDeprecatedType": {"fq_name": "team_log.ShowcaseTrashedDeprecatedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseTrashedDeprecatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseTrashedDetails": {"fq_name": "team_log.ShowcaseTrashedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseTrashedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseTrashedType": {"fq_name": "team_log.ShowcaseTrashedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseTrashedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseUnresolveCommentDetails": {"fq_name": "team_log.ShowcaseUnresolveCommentDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseUnresolveCommentDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseUnresolveCommentType": {"fq_name": "team_log.ShowcaseUnresolveCommentType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseUnresolveCommentType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseUntrashedDeprecatedDetails": {"fq_name": "team_log.ShowcaseUntrashedDeprecatedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseUntrashedDeprecatedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseUntrashedDeprecatedType": {"fq_name": "team_log.ShowcaseUntrashedDeprecatedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseUntrashedDeprecatedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseUntrashedDetails": {"fq_name": "team_log.ShowcaseUntrashedDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseUntrashedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseUntrashedType": {"fq_name": "team_log.ShowcaseUntrashedType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseUntrashedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseViewDetails": {"fq_name": "team_log.ShowcaseViewDetails", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseViewDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ShowcaseViewType": {"fq_name": "team_log.ShowcaseViewType", "java_class": "com.dropbox.core.v2.teamlog.ShowcaseViewType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SignInAsSessionEndDetails": {"fq_name": "team_log.SignInAsSessionEndDetails", "java_class": "com.dropbox.core.v2.teamlog.SignInAsSessionEndDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SignInAsSessionEndType": {"fq_name": "team_log.SignInAsSessionEndType", "java_class": "com.dropbox.core.v2.teamlog.SignInAsSessionEndType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SignInAsSessionStartDetails": {"fq_name": "team_log.SignInAsSessionStartDetails", "java_class": "com.dropbox.core.v2.teamlog.SignInAsSessionStartDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SignInAsSessionStartType": {"fq_name": "team_log.SignInAsSessionStartType", "java_class": "com.dropbox.core.v2.teamlog.SignInAsSessionStartType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncChangePolicyDetails": {"fq_name": "team_log.SmartSyncChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncChangePolicyDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SmartSyncChangePolicyDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncChangePolicyType": {"fq_name": "team_log.SmartSyncChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncCreateAdminPrivilegeReportDetails": {"fq_name": "team_log.SmartSyncCreateAdminPrivilegeReportDetails", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncCreateAdminPrivilegeReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncCreateAdminPrivilegeReportType": {"fq_name": "team_log.SmartSyncCreateAdminPrivilegeReportType", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncCreateAdminPrivilegeReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncNotOptOutDetails": {"fq_name": "team_log.SmartSyncNotOptOutDetails", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncNotOptOutDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncNotOptOutType": {"fq_name": "team_log.SmartSyncNotOptOutType", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncNotOptOutType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncOptOutDetails": {"fq_name": "team_log.SmartSyncOptOutDetails", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncOptOutDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncOptOutPolicy": {"fq_name": "team_log.SmartSyncOptOutPolicy", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncOptOutPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmartSyncOptOutType": {"fq_name": "team_log.SmartSyncOptOutType", "java_class": "com.dropbox.core.v2.teamlog.SmartSyncOptOutType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmarterSmartSyncPolicyChangedDetails": {"fq_name": "team_log.SmarterSmartSyncPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.SmarterSmartSyncPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SmarterSmartSyncPolicyChangedType": {"fq_name": "team_log.SmarterSmartSyncPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.SmarterSmartSyncPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SpaceCapsType": {"fq_name": "team_log.SpaceCapsType", "java_class": "com.dropbox.core.v2.teamlog.SpaceCapsType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SpaceLimitsStatus": {"fq_name": "team_log.SpaceLimitsStatus", "java_class": "com.dropbox.core.v2.teamlog.SpaceLimitsStatus", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoAddCertDetails": {"fq_name": "team_log.SsoAddCertDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoAddCertDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoAddCertType": {"fq_name": "team_log.SsoAddCertType", "java_class": "com.dropbox.core.v2.teamlog.SsoAddCertType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoAddLoginUrlDetails": {"fq_name": "team_log.SsoAddLoginUrlDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoAddLoginUrlDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoAddLoginUrlType": {"fq_name": "team_log.SsoAddLoginUrlType", "java_class": "com.dropbox.core.v2.teamlog.SsoAddLoginUrlType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoAddLogoutUrlDetails": {"fq_name": "team_log.SsoAddLogoutUrlDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoAddLogoutUrlDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoAddLogoutUrlType": {"fq_name": "team_log.SsoAddLogoutUrlType", "java_class": "com.dropbox.core.v2.teamlog.SsoAddLogoutUrlType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeCertDetails": {"fq_name": "team_log.SsoChangeCertDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeCertDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeCertType": {"fq_name": "team_log.SsoChangeCertType", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeCertType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeLoginUrlDetails": {"fq_name": "team_log.SsoChangeLoginUrlDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeLoginUrlDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeLoginUrlType": {"fq_name": "team_log.SsoChangeLoginUrlType", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeLoginUrlType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeLogoutUrlDetails": {"fq_name": "team_log.SsoChangeLogoutUrlDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeLogoutUrlDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.SsoChangeLogoutUrlDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeLogoutUrlType": {"fq_name": "team_log.SsoChangeLogoutUrlType", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeLogoutUrlType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangePolicyDetails": {"fq_name": "team_log.SsoChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangePolicyType": {"fq_name": "team_log.SsoChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.SsoChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeSamlIdentityModeDetails": {"fq_name": "team_log.SsoChangeSamlIdentityModeDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeSamlIdentityModeDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoChangeSamlIdentityModeType": {"fq_name": "team_log.SsoChangeSamlIdentityModeType", "java_class": "com.dropbox.core.v2.teamlog.SsoChangeSamlIdentityModeType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoErrorDetails": {"fq_name": "team_log.SsoErrorDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoErrorDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoErrorType": {"fq_name": "team_log.SsoErrorType", "java_class": "com.dropbox.core.v2.teamlog.SsoErrorType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoRemoveCertDetails": {"fq_name": "team_log.SsoRemoveCertDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoRemoveCertDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoRemoveCertType": {"fq_name": "team_log.SsoRemoveCertType", "java_class": "com.dropbox.core.v2.teamlog.SsoRemoveCertType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoRemoveLoginUrlDetails": {"fq_name": "team_log.SsoRemoveLoginUrlDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoRemoveLoginUrlDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoRemoveLoginUrlType": {"fq_name": "team_log.SsoRemoveLoginUrlType", "java_class": "com.dropbox.core.v2.teamlog.SsoRemoveLoginUrlType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoRemoveLogoutUrlDetails": {"fq_name": "team_log.SsoRemoveLogoutUrlDetails", "java_class": "com.dropbox.core.v2.teamlog.SsoRemoveLogoutUrlDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.SsoRemoveLogoutUrlType": {"fq_name": "team_log.SsoRemoveLogoutUrlType", "java_class": "com.dropbox.core.v2.teamlog.SsoRemoveLogoutUrlType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.StartedEnterpriseAdminSessionDetails": {"fq_name": "team_log.StartedEnterpriseAdminSessionDetails", "java_class": "com.dropbox.core.v2.teamlog.StartedEnterpriseAdminSessionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.StartedEnterpriseAdminSessionType": {"fq_name": "team_log.StartedEnterpriseAdminSessionType", "java_class": "com.dropbox.core.v2.teamlog.StartedEnterpriseAdminSessionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamActivityCreateReportDetails": {"fq_name": "team_log.TeamActivityCreateReportDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamActivityCreateReportDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamActivityCreateReportFailDetails": {"fq_name": "team_log.TeamActivityCreateReportFailDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamActivityCreateReportFailDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamActivityCreateReportFailType": {"fq_name": "team_log.TeamActivityCreateReportFailType", "java_class": "com.dropbox.core.v2.teamlog.TeamActivityCreateReportFailType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamActivityCreateReportType": {"fq_name": "team_log.TeamActivityCreateReportType", "java_class": "com.dropbox.core.v2.teamlog.TeamActivityCreateReportType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamBrandingPolicy": {"fq_name": "team_log.TeamBrandingPolicy", "java_class": "com.dropbox.core.v2.teamlog.TeamBrandingPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamBrandingPolicyChangedDetails": {"fq_name": "team_log.TeamBrandingPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamBrandingPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamBrandingPolicyChangedType": {"fq_name": "team_log.TeamBrandingPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.TeamBrandingPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamDetails": {"fq_name": "team_log.TeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyCancelKeyDeletionDetails": {"fq_name": "team_log.TeamEncryptionKeyCancelKeyDeletionDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyCancelKeyDeletionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyCancelKeyDeletionType": {"fq_name": "team_log.TeamEncryptionKeyCancelKeyDeletionType", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyCancelKeyDeletionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyCreateKeyDetails": {"fq_name": "team_log.TeamEncryptionKeyCreateKeyDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyCreateKeyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyCreateKeyType": {"fq_name": "team_log.TeamEncryptionKeyCreateKeyType", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyCreateKeyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyDeleteKeyDetails": {"fq_name": "team_log.TeamEncryptionKeyDeleteKeyDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyDeleteKeyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyDeleteKeyType": {"fq_name": "team_log.TeamEncryptionKeyDeleteKeyType", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyDeleteKeyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyDisableKeyDetails": {"fq_name": "team_log.TeamEncryptionKeyDisableKeyDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyDisableKeyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyDisableKeyType": {"fq_name": "team_log.TeamEncryptionKeyDisableKeyType", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyDisableKeyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyEnableKeyDetails": {"fq_name": "team_log.TeamEncryptionKeyEnableKeyDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyEnableKeyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyEnableKeyType": {"fq_name": "team_log.TeamEncryptionKeyEnableKeyType", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyEnableKeyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyRotateKeyDetails": {"fq_name": "team_log.TeamEncryptionKeyRotateKeyDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyRotateKeyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyRotateKeyType": {"fq_name": "team_log.TeamEncryptionKeyRotateKeyType", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyRotateKeyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyScheduleKeyDeletionDetails": {"fq_name": "team_log.TeamEncryptionKeyScheduleKeyDeletionDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyScheduleKeyDeletionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEncryptionKeyScheduleKeyDeletionType": {"fq_name": "team_log.TeamEncryptionKeyScheduleKeyDeletionType", "java_class": "com.dropbox.core.v2.teamlog.TeamEncryptionKeyScheduleKeyDeletionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamEvent": {"fq_name": "team_log.TeamEvent", "java_class": "com.dropbox.core.v2.teamlog.TeamEvent", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.TeamEvent.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamExtensionsPolicy": {"fq_name": "team_log.TeamExtensionsPolicy", "java_class": "com.dropbox.core.v2.teamlog.TeamExtensionsPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamExtensionsPolicyChangedDetails": {"fq_name": "team_log.TeamExtensionsPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamExtensionsPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamExtensionsPolicyChangedType": {"fq_name": "team_log.TeamExtensionsPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.TeamExtensionsPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderChangeStatusDetails": {"fq_name": "team_log.TeamFolderChangeStatusDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderChangeStatusDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderChangeStatusType": {"fq_name": "team_log.TeamFolderChangeStatusType", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderChangeStatusType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderCreateDetails": {"fq_name": "team_log.TeamFolderCreateDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderCreateDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderCreateType": {"fq_name": "team_log.TeamFolderCreateType", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderCreateType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderDowngradeDetails": {"fq_name": "team_log.TeamFolderDowngradeDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderDowngradeDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderDowngradeType": {"fq_name": "team_log.TeamFolderDowngradeType", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderDowngradeType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderPermanentlyDeleteDetails": {"fq_name": "team_log.TeamFolderPermanentlyDeleteDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderPermanentlyDeleteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderPermanentlyDeleteType": {"fq_name": "team_log.TeamFolderPermanentlyDeleteType", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderPermanentlyDeleteType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderRenameDetails": {"fq_name": "team_log.TeamFolderRenameDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderRenameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamFolderRenameType": {"fq_name": "team_log.TeamFolderRenameType", "java_class": "com.dropbox.core.v2.teamlog.TeamFolderRenameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamInviteDetails": {"fq_name": "team_log.TeamInviteDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamInviteDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamLinkedAppLogInfo": {"fq_name": "team_log.TeamLinkedAppLogInfo", "java_class": "com.dropbox.core.v2.teamlog.TeamLinkedAppLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.TeamLinkedAppLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamLogInfo": {"fq_name": "team_log.TeamLogInfo", "java_class": "com.dropbox.core.v2.teamlog.TeamLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMemberLogInfo": {"fq_name": "team_log.TeamMemberLogInfo", "java_class": "com.dropbox.core.v2.teamlog.TeamMemberLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.TeamMemberLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMembershipType": {"fq_name": "team_log.TeamMembershipType", "java_class": "com.dropbox.core.v2.teamlog.TeamMembershipType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeFromDetails": {"fq_name": "team_log.TeamMergeFromDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeFromDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeFromType": {"fq_name": "team_log.TeamMergeFromType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeFromType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAcceptedDetails": {"fq_name": "team_log.TeamMergeRequestAcceptedDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAcceptedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAcceptedExtraDetails": {"fq_name": "team_log.TeamMergeRequestAcceptedExtraDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAcceptedExtraDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAcceptedShownToPrimaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamType": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAcceptedShownToPrimaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAcceptedShownToSecondaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamType": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAcceptedShownToSecondaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAcceptedType": {"fq_name": "team_log.TeamMergeRequestAcceptedType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAcceptedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAutoCanceledDetails": {"fq_name": "team_log.TeamMergeRequestAutoCanceledDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAutoCanceledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestAutoCanceledType": {"fq_name": "team_log.TeamMergeRequestAutoCanceledType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestAutoCanceledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestCanceledDetails": {"fq_name": "team_log.TeamMergeRequestCanceledDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestCanceledDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestCanceledExtraDetails": {"fq_name": "team_log.TeamMergeRequestCanceledExtraDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestCanceledExtraDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestCanceledShownToPrimaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestCanceledShownToPrimaryTeamType": {"fq_name": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestCanceledShownToPrimaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestCanceledShownToSecondaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestCanceledShownToSecondaryTeamType": {"fq_name": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestCanceledShownToSecondaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestCanceledType": {"fq_name": "team_log.TeamMergeRequestCanceledType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestCanceledType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestExpiredDetails": {"fq_name": "team_log.TeamMergeRequestExpiredDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestExpiredDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestExpiredExtraDetails": {"fq_name": "team_log.TeamMergeRequestExpiredExtraDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestExpiredExtraDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestExpiredShownToPrimaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestExpiredShownToPrimaryTeamType": {"fq_name": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestExpiredShownToPrimaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestExpiredShownToSecondaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestExpiredShownToSecondaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestExpiredShownToSecondaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestExpiredShownToSecondaryTeamType": {"fq_name": "team_log.TeamMergeRequestExpiredShownToSecondaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestExpiredShownToSecondaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestExpiredType": {"fq_name": "team_log.TeamMergeRequestExpiredType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestExpiredType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestRejectedShownToPrimaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestRejectedShownToPrimaryTeamType": {"fq_name": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestRejectedShownToPrimaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestRejectedShownToSecondaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestRejectedShownToSecondaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestRejectedShownToSecondaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestRejectedShownToSecondaryTeamType": {"fq_name": "team_log.TeamMergeRequestRejectedShownToSecondaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestRejectedShownToSecondaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestReminderDetails": {"fq_name": "team_log.TeamMergeRequestReminderDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestReminderDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestReminderExtraDetails": {"fq_name": "team_log.TeamMergeRequestReminderExtraDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestReminderExtraDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestReminderShownToPrimaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestReminderShownToPrimaryTeamType": {"fq_name": "team_log.TeamMergeRequestReminderShownToPrimaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestReminderShownToPrimaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestReminderShownToSecondaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestReminderShownToSecondaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestReminderShownToSecondaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestReminderShownToSecondaryTeamType": {"fq_name": "team_log.TeamMergeRequestReminderShownToSecondaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestReminderShownToSecondaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestReminderType": {"fq_name": "team_log.TeamMergeRequestReminderType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestReminderType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestRevokedDetails": {"fq_name": "team_log.TeamMergeRequestRevokedDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestRevokedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestRevokedType": {"fq_name": "team_log.TeamMergeRequestRevokedType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestRevokedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestSentShownToPrimaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestSentShownToPrimaryTeamType": {"fq_name": "team_log.TeamMergeRequestSentShownToPrimaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestSentShownToPrimaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestSentShownToSecondaryTeamDetails": {"fq_name": "team_log.TeamMergeRequestSentShownToSecondaryTeamDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestSentShownToSecondaryTeamDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeRequestSentShownToSecondaryTeamType": {"fq_name": "team_log.TeamMergeRequestSentShownToSecondaryTeamType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeRequestSentShownToSecondaryTeamType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeToDetails": {"fq_name": "team_log.TeamMergeToDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeToDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamMergeToType": {"fq_name": "team_log.TeamMergeToType", "java_class": "com.dropbox.core.v2.teamlog.TeamMergeToType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamName": {"fq_name": "team_log.TeamName", "java_class": "com.dropbox.core.v2.teamlog.TeamName", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileAddBackgroundDetails": {"fq_name": "team_log.TeamProfileAddBackgroundDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileAddBackgroundDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileAddBackgroundType": {"fq_name": "team_log.TeamProfileAddBackgroundType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileAddBackgroundType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileAddLogoDetails": {"fq_name": "team_log.TeamProfileAddLogoDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileAddLogoDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileAddLogoType": {"fq_name": "team_log.TeamProfileAddLogoType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileAddLogoType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeBackgroundDetails": {"fq_name": "team_log.TeamProfileChangeBackgroundDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeBackgroundDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeBackgroundType": {"fq_name": "team_log.TeamProfileChangeBackgroundType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeBackgroundType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeDefaultLanguageDetails": {"fq_name": "team_log.TeamProfileChangeDefaultLanguageDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeDefaultLanguageDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeDefaultLanguageType": {"fq_name": "team_log.TeamProfileChangeDefaultLanguageType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeDefaultLanguageType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeLogoDetails": {"fq_name": "team_log.TeamProfileChangeLogoDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeLogoDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeLogoType": {"fq_name": "team_log.TeamProfileChangeLogoType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeLogoType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeNameDetails": {"fq_name": "team_log.TeamProfileChangeNameDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeNameDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileChangeNameType": {"fq_name": "team_log.TeamProfileChangeNameType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileChangeNameType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileRemoveBackgroundDetails": {"fq_name": "team_log.TeamProfileRemoveBackgroundDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileRemoveBackgroundDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileRemoveBackgroundType": {"fq_name": "team_log.TeamProfileRemoveBackgroundType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileRemoveBackgroundType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileRemoveLogoDetails": {"fq_name": "team_log.TeamProfileRemoveLogoDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileRemoveLogoDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamProfileRemoveLogoType": {"fq_name": "team_log.TeamProfileRemoveLogoType", "java_class": "com.dropbox.core.v2.teamlog.TeamProfileRemoveLogoType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamSelectiveSyncPolicy": {"fq_name": "team_log.TeamSelectiveSyncPolicy", "java_class": "com.dropbox.core.v2.teamlog.TeamSelectiveSyncPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamSelectiveSyncPolicyChangedDetails": {"fq_name": "team_log.TeamSelectiveSyncPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamSelectiveSyncPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamSelectiveSyncPolicyChangedType": {"fq_name": "team_log.TeamSelectiveSyncPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.TeamSelectiveSyncPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamSelectiveSyncSettingsChangedDetails": {"fq_name": "team_log.TeamSelectiveSyncSettingsChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamSelectiveSyncSettingsChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamSelectiveSyncSettingsChangedType": {"fq_name": "team_log.TeamSelectiveSyncSettingsChangedType", "java_class": "com.dropbox.core.v2.teamlog.TeamSelectiveSyncSettingsChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamSharingWhitelistSubjectsChangedDetails": {"fq_name": "team_log.TeamSharingWhitelistSubjectsChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.TeamSharingWhitelistSubjectsChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TeamSharingWhitelistSubjectsChangedType": {"fq_name": "team_log.TeamSharingWhitelistSubjectsChangedType", "java_class": "com.dropbox.core.v2.teamlog.TeamSharingWhitelistSubjectsChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaAddBackupPhoneDetails": {"fq_name": "team_log.TfaAddBackupPhoneDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaAddBackupPhoneDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaAddBackupPhoneType": {"fq_name": "team_log.TfaAddBackupPhoneType", "java_class": "com.dropbox.core.v2.teamlog.TfaAddBackupPhoneType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaAddExceptionDetails": {"fq_name": "team_log.TfaAddExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaAddExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaAddExceptionType": {"fq_name": "team_log.TfaAddExceptionType", "java_class": "com.dropbox.core.v2.teamlog.TfaAddExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaAddSecurityKeyDetails": {"fq_name": "team_log.TfaAddSecurityKeyDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaAddSecurityKeyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaAddSecurityKeyType": {"fq_name": "team_log.TfaAddSecurityKeyType", "java_class": "com.dropbox.core.v2.teamlog.TfaAddSecurityKeyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaChangeBackupPhoneDetails": {"fq_name": "team_log.TfaChangeBackupPhoneDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaChangeBackupPhoneDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaChangeBackupPhoneType": {"fq_name": "team_log.TfaChangeBackupPhoneType", "java_class": "com.dropbox.core.v2.teamlog.TfaChangeBackupPhoneType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaChangePolicyDetails": {"fq_name": "team_log.TfaChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaChangePolicyType": {"fq_name": "team_log.TfaChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.TfaChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaChangeStatusDetails": {"fq_name": "team_log.TfaChangeStatusDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaChangeStatusDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.TfaChangeStatusDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaChangeStatusType": {"fq_name": "team_log.TfaChangeStatusType", "java_class": "com.dropbox.core.v2.teamlog.TfaChangeStatusType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaConfiguration": {"fq_name": "team_log.TfaConfiguration", "java_class": "com.dropbox.core.v2.teamlog.TfaConfiguration", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaRemoveBackupPhoneDetails": {"fq_name": "team_log.TfaRemoveBackupPhoneDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaRemoveBackupPhoneDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaRemoveBackupPhoneType": {"fq_name": "team_log.TfaRemoveBackupPhoneType", "java_class": "com.dropbox.core.v2.teamlog.TfaRemoveBackupPhoneType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaRemoveExceptionDetails": {"fq_name": "team_log.TfaRemoveExceptionDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaRemoveExceptionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaRemoveExceptionType": {"fq_name": "team_log.TfaRemoveExceptionType", "java_class": "com.dropbox.core.v2.teamlog.TfaRemoveExceptionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaRemoveSecurityKeyDetails": {"fq_name": "team_log.TfaRemoveSecurityKeyDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaRemoveSecurityKeyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaRemoveSecurityKeyType": {"fq_name": "team_log.TfaRemoveSecurityKeyType", "java_class": "com.dropbox.core.v2.teamlog.TfaRemoveSecurityKeyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaResetDetails": {"fq_name": "team_log.TfaResetDetails", "java_class": "com.dropbox.core.v2.teamlog.TfaResetDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TfaResetType": {"fq_name": "team_log.TfaResetType", "java_class": "com.dropbox.core.v2.teamlog.TfaResetType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TimeUnit": {"fq_name": "team_log.TimeUnit", "java_class": "com.dropbox.core.v2.teamlog.TimeUnit", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TrustedNonTeamMemberLogInfo": {"fq_name": "team_log.TrustedNonTeamMemberLogInfo", "java_class": "com.dropbox.core.v2.teamlog.TrustedNonTeamMemberLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.TrustedNonTeamMemberLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TrustedNonTeamMemberType": {"fq_name": "team_log.TrustedNonTeamMemberType", "java_class": "com.dropbox.core.v2.teamlog.TrustedNonTeamMemberType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TrustedTeamsRequestAction": {"fq_name": "team_log.TrustedTeamsRequestAction", "java_class": "com.dropbox.core.v2.teamlog.TrustedTeamsRequestAction", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TrustedTeamsRequestState": {"fq_name": "team_log.TrustedTeamsRequestState", "java_class": "com.dropbox.core.v2.teamlog.TrustedTeamsRequestState", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TwoAccountChangePolicyDetails": {"fq_name": "team_log.TwoAccountChangePolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.TwoAccountChangePolicyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TwoAccountChangePolicyType": {"fq_name": "team_log.TwoAccountChangePolicyType", "java_class": "com.dropbox.core.v2.teamlog.TwoAccountChangePolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.TwoAccountPolicy": {"fq_name": "team_log.TwoAccountPolicy", "java_class": "com.dropbox.core.v2.teamlog.TwoAccountPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UndoNamingConventionDetails": {"fq_name": "team_log.UndoNamingConventionDetails", "java_class": "com.dropbox.core.v2.teamlog.UndoNamingConventionDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UndoNamingConventionType": {"fq_name": "team_log.UndoNamingConventionType", "java_class": "com.dropbox.core.v2.teamlog.UndoNamingConventionType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UndoOrganizeFolderWithTidyDetails": {"fq_name": "team_log.UndoOrganizeFolderWithTidyDetails", "java_class": "com.dropbox.core.v2.teamlog.UndoOrganizeFolderWithTidyDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UndoOrganizeFolderWithTidyType": {"fq_name": "team_log.UndoOrganizeFolderWithTidyType", "java_class": "com.dropbox.core.v2.teamlog.UndoOrganizeFolderWithTidyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserLinkedAppLogInfo": {"fq_name": "team_log.UserLinkedAppLogInfo", "java_class": "com.dropbox.core.v2.teamlog.UserLinkedAppLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.UserLinkedAppLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserLogInfo": {"fq_name": "team_log.UserLogInfo", "java_class": "com.dropbox.core.v2.teamlog.UserLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.UserLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserNameLogInfo": {"fq_name": "team_log.UserNameLogInfo", "java_class": "com.dropbox.core.v2.teamlog.UserNameLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserOrTeamLinkedAppLogInfo": {"fq_name": "team_log.UserOrTeamLinkedAppLogInfo", "java_class": "com.dropbox.core.v2.teamlog.UserOrTeamLinkedAppLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.UserOrTeamLinkedAppLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserTagsAddedDetails": {"fq_name": "team_log.UserTagsAddedDetails", "java_class": "com.dropbox.core.v2.teamlog.UserTagsAddedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserTagsAddedType": {"fq_name": "team_log.UserTagsAddedType", "java_class": "com.dropbox.core.v2.teamlog.UserTagsAddedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserTagsRemovedDetails": {"fq_name": "team_log.UserTagsRemovedDetails", "java_class": "com.dropbox.core.v2.teamlog.UserTagsRemovedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.UserTagsRemovedType": {"fq_name": "team_log.UserTagsRemovedType", "java_class": "com.dropbox.core.v2.teamlog.UserTagsRemovedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ViewerInfoPolicyChangedDetails": {"fq_name": "team_log.ViewerInfoPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.ViewerInfoPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.ViewerInfoPolicyChangedType": {"fq_name": "team_log.ViewerInfoPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.ViewerInfoPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WatermarkingPolicy": {"fq_name": "team_log.WatermarkingPolicy", "java_class": "com.dropbox.core.v2.teamlog.WatermarkingPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WatermarkingPolicyChangedDetails": {"fq_name": "team_log.WatermarkingPolicyChangedDetails", "java_class": "com.dropbox.core.v2.teamlog.WatermarkingPolicyChangedDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WatermarkingPolicyChangedType": {"fq_name": "team_log.WatermarkingPolicyChangedType", "java_class": "com.dropbox.core.v2.teamlog.WatermarkingPolicyChangedType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebDeviceSessionLogInfo": {"fq_name": "team_log.WebDeviceSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.WebDeviceSessionLogInfo", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.WebDeviceSessionLogInfo.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionLogInfo": {"fq_name": "team_log.WebSessionLogInfo", "java_class": "com.dropbox.core.v2.teamlog.WebSessionLogInfo", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsChangeActiveSessionLimitDetails": {"fq_name": "team_log.WebSessionsChangeActiveSessionLimitDetails", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeActiveSessionLimitDetails", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsChangeActiveSessionLimitType": {"fq_name": "team_log.WebSessionsChangeActiveSessionLimitType", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeActiveSessionLimitType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsChangeFixedLengthPolicyDetails": {"fq_name": "team_log.WebSessionsChangeFixedLengthPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeFixedLengthPolicyDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeFixedLengthPolicyDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsChangeFixedLengthPolicyType": {"fq_name": "team_log.WebSessionsChangeFixedLengthPolicyType", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeFixedLengthPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsChangeIdleLengthPolicyDetails": {"fq_name": "team_log.WebSessionsChangeIdleLengthPolicyDetails", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeIdleLengthPolicyDetails", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeIdleLengthPolicyDetails.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsChangeIdleLengthPolicyType": {"fq_name": "team_log.WebSessionsChangeIdleLengthPolicyType", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsChangeIdleLengthPolicyType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsFixedLengthPolicy": {"fq_name": "team_log.WebSessionsFixedLengthPolicy", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsFixedLengthPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_log.WebSessionsIdleLengthPolicy": {"fq_name": "team_log.WebSessionsIdleLengthPolicy", "java_class": "com.dropbox.core.v2.teamlog.WebSessionsIdleLengthPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_policies.CameraUploadsPolicyState": {"fq_name": "team_policies.CameraUploadsPolicyState", "java_class": "com.dropbox.core.v2.teampolicies.CameraUploadsPolicyState", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.ComputerBackupPolicyState": {"fq_name": "team_policies.ComputerBackupPolicyState", "java_class": "com.dropbox.core.v2.teampolicies.ComputerBackupPolicyState", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.EmmState": {"fq_name": "team_policies.EmmState", "java_class": "com.dropbox.core.v2.teampolicies.EmmState", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.ExternalDriveBackupPolicyState": {"fq_name": "team_policies.ExternalDriveBackupPolicyState", "java_class": "com.dropbox.core.v2.teampolicies.ExternalDriveBackupPolicyState", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.FileLockingPolicyState": {"fq_name": "team_policies.FileLockingPolicyState", "java_class": "com.dropbox.core.v2.teampolicies.FileLockingPolicyState", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.FileProviderMigrationPolicyState": {"fq_name": "team_policies.FileProviderMigrationPolicyState", "java_class": "com.dropbox.core.v2.teampolicies.FileProviderMigrationPolicyState", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.GroupCreation": {"fq_name": "team_policies.GroupCreation", "java_class": "com.dropbox.core.v2.teampolicies.GroupCreation", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.OfficeAddInPolicy": {"fq_name": "team_policies.OfficeAddInPolicy", "java_class": "com.dropbox.core.v2.teampolicies.OfficeAddInPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.PaperDefaultFolderPolicy": {"fq_name": "team_policies.PaperDefaultFolderPolicy", "java_class": "com.dropbox.core.v2.teampolicies.PaperDefaultFolderPolicy", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.PaperDeploymentPolicy": {"fq_name": "team_policies.PaperDeploymentPolicy", "java_class": "com.dropbox.core.v2.teampolicies.PaperDeploymentPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.PaperDesktopPolicy": {"fq_name": "team_policies.PaperDesktopPolicy", "java_class": "com.dropbox.core.v2.teampolicies.PaperDesktopPolicy", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.PaperEnabledPolicy": {"fq_name": "team_policies.PaperEnabledPolicy", "java_class": "com.dropbox.core.v2.teampolicies.PaperEnabledPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.PasswordControlMode": {"fq_name": "team_policies.PasswordControlMode", "java_class": "com.dropbox.core.v2.teampolicies.PasswordControlMode", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.PasswordStrengthPolicy": {"fq_name": "team_policies.PasswordStrengthPolicy", "java_class": "com.dropbox.core.v2.teampolicies.PasswordStrengthPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.RolloutMethod": {"fq_name": "team_policies.RolloutMethod", "java_class": "com.dropbox.core.v2.teampolicies.RolloutMethod", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.SharedFolderBlanketLinkRestrictionPolicy": {"fq_name": "team_policies.SharedFolderBlanketLinkRestrictionPolicy", "java_class": "com.dropbox.core.v2.teampolicies.SharedFolderBlanketLinkRestrictionPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_policies.SharedFolderJoinPolicy": {"fq_name": "team_policies.SharedFolderJoinPolicy", "java_class": "com.dropbox.core.v2.teampolicies.SharedFolderJoinPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_policies.SharedFolderMemberPolicy": {"fq_name": "team_policies.SharedFolderMemberPolicy", "java_class": "com.dropbox.core.v2.teampolicies.SharedFolderMemberPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_policies.SharedLinkCreatePolicy": {"fq_name": "team_policies.SharedLinkCreatePolicy", "java_class": "com.dropbox.core.v2.teampolicies.SharedLinkCreatePolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_policies.ShowcaseDownloadPolicy": {"fq_name": "team_policies.ShowcaseDownloadPolicy", "java_class": "com.dropbox.core.v2.teampolicies.ShowcaseDownloadPolicy", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.ShowcaseEnabledPolicy": {"fq_name": "team_policies.ShowcaseEnabledPolicy", "java_class": "com.dropbox.core.v2.teampolicies.ShowcaseEnabledPolicy", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.ShowcaseExternalSharingPolicy": {"fq_name": "team_policies.ShowcaseExternalSharingPolicy", "java_class": "com.dropbox.core.v2.teampolicies.ShowcaseExternalSharingPolicy", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "team_policies.SmartSyncPolicy": {"fq_name": "team_policies.SmartSyncPolicy", "java_class": "com.dropbox.core.v2.teampolicies.SmartSyncPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.SmarterSmartSyncPolicyState": {"fq_name": "team_policies.SmarterSmartSyncPolicyState", "java_class": "com.dropbox.core.v2.teampolicies.SmarterSmartSyncPolicyState", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.SsoPolicy": {"fq_name": "team_policies.SsoPolicy", "java_class": "com.dropbox.core.v2.teampolicies.SsoPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.SuggestMembersPolicy": {"fq_name": "team_policies.SuggestMembersPolicy", "java_class": "com.dropbox.core.v2.teampolicies.SuggestMembersPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "team_policies.TeamMemberPolicies": {"fq_name": "team_policies.TeamMemberPolicies", "java_class": "com.dropbox.core.v2.teampolicies.TeamMemberPolicies", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.TeamSharingPolicies": {"fq_name": "team_policies.TeamSharingPolicies", "java_class": "com.dropbox.core.v2.teampolicies.TeamSharingPolicies", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.TwoStepVerificationPolicy": {"fq_name": "team_policies.TwoStepVerificationPolicy", "java_class": "com.dropbox.core.v2.teampolicies.TwoStepVerificationPolicy", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "team_policies.TwoStepVerificationState": {"fq_name": "team_policies.TwoStepVerificationState", "java_class": "com.dropbox.core.v2.teampolicies.TwoStepVerificationState", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "users.Account": {"fq_name": "users.Account", "java_class": "com.dropbox.core.v2.users.Account", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PRIVATE", "_type": "DataTypeReference"}, "users.BasicAccount": {"fq_name": "users.BasicAccount", "java_class": "com.dropbox.core.v2.users.BasicAccount", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.users.BasicAccount.Builder", "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "users.FileLockingValue": {"fq_name": "users.FileLockingValue", "java_class": "com.dropbox.core.v2.users.FileLockingValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.FullAccount": {"fq_name": "users.FullAccount", "java_class": "com.dropbox.core.v2.users.FullAccount", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.v2.users.FullAccount.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.FullTeam": {"fq_name": "users.FullTeam", "java_class": "com.dropbox.core.v2.users.FullTeam", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.GetAccountArg": {"fq_name": "users.GetAccountArg", "java_class": "com.dropbox.core.v2.users.GetAccountArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "users.GetAccountBatchArg": {"fq_name": "users.GetAccountBatchArg", "java_class": "com.dropbox.core.v2.users.GetAccountBatchArg", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "users.GetAccountBatchError": {"fq_name": "users.GetAccountBatchError", "java_class": "com.dropbox.core.v2.users.GetAccountBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "users.GetAccountError": {"fq_name": "users.GetAccountError", "java_class": "com.dropbox.core.v2.users.GetAccountError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "users.IndividualSpaceAllocation": {"fq_name": "users.IndividualSpaceAllocation", "java_class": "com.dropbox.core.v2.users.IndividualSpaceAllocation", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.Name": {"fq_name": "users.Name", "java_class": "com.dropbox.core.v2.users.Name", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "users.PaperAsFilesValue": {"fq_name": "users.PaperAsFilesValue", "java_class": "com.dropbox.core.v2.users.PaperAsFilesValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.SpaceAllocation": {"fq_name": "users.SpaceAllocation", "java_class": "com.dropbox.core.v2.users.SpaceAllocation", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.SpaceUsage": {"fq_name": "users.SpaceUsage", "java_class": "com.dropbox.core.v2.users.SpaceUsage", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.Team": {"fq_name": "users.Team", "java_class": "com.dropbox.core.v2.users.Team", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}, "users.TeamSpaceAllocation": {"fq_name": "users.TeamSpaceAllocation", "java_class": "com.dropbox.core.v2.users.TeamSpaceAllocation", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.UserFeature": {"fq_name": "users.UserFeature", "java_class": "com.dropbox.core.v2.users.UserFeature", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.UserFeatureValue": {"fq_name": "users.UserFeatureValue", "java_class": "com.dropbox.core.v2.users.UserFeatureValue", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.UserFeaturesGetValuesBatchArg": {"fq_name": "users.UserFeaturesGetValuesBatchArg", "java_class": "com.dropbox.core.v2.users.UserFeaturesGetValuesBatchArg", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.UserFeaturesGetValuesBatchError": {"fq_name": "users.UserFeaturesGetValuesBatchError", "java_class": "com.dropbox.core.v2.users.UserFeaturesGetValuesBatchError", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users.UserFeaturesGetValuesBatchResult": {"fq_name": "users.UserFeaturesGetValuesBatchResult", "java_class": "com.dropbox.core.v2.users.UserFeaturesGetValuesBatchResult", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "users_common.AccountType": {"fq_name": "users_common.AccountType", "java_class": "com.dropbox.core.v2.userscommon.AccountType", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PUBLIC", "_type": "DataTypeReference"}}, "routes": {"auth.token/from_oauth1": {"fq_name": "auth.token/from_oauth1", "java_class": "com.dropbox.core.v2.auth.DbxAppAuthRequests", "visibility": "PUBLIC", "namespace_name": "auth", "method": "tokenFromOauth1", "has_builder": false, "builder_method": null, "error_ref": "auth.TokenFromOAuth1Error", "url_path": "2/auth/token/from_oauth1", "is_method_overloaded": false, "method_arg_classes": ["String", "String"], "_type": "RouteReference"}, "check.app": {"fq_name": "check.app", "java_class": "com.dropbox.core.v2.check.DbxAppCheckRequests", "visibility": "PUBLIC", "namespace_name": "check", "method": "app", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/check/app", "is_method_overloaded": true, "method_arg_classes": ["String"], "_type": "RouteReference"}, "files.get_thumbnail_v2": {"fq_name": "files.get_thumbnail_v2", "java_class": "com.dropbox.core.v2.files.DbxAppFilesRequests", "visibility": "PUBLIC", "namespace_name": "files", "method": "getThumbnailV2", "has_builder": true, "builder_method": "getThumbnailV2Builder", "error_ref": "files.ThumbnailV2Error", "url_path": "2/files/get_thumbnail_v2", "is_method_overloaded": false, "method_arg_classes": ["com.dropbox.core.v2.files.PathOrLink"], "_type": "RouteReference"}, "files.list_folder": {"fq_name": "files.list_folder", "java_class": "com.dropbox.core.v2.files.DbxAppFilesRequests", "visibility": "PUBLIC", "namespace_name": "files", "method": "listFolder", "has_builder": true, "builder_method": "listFolderBuilder", "error_ref": "files.ListFolderError", "url_path": "2/files/list_folder", "is_method_overloaded": false, "method_arg_classes": ["String"], "_type": "RouteReference"}, "files.list_folder/continue": {"fq_name": "files.list_folder/continue", "java_class": "com.dropbox.core.v2.files.DbxAppFilesRequests", "visibility": "PUBLIC", "namespace_name": "files", "method": "listFolderContinue", "has_builder": false, "builder_method": null, "error_ref": "files.ListFolderContinueError", "url_path": "2/files/list_folder/continue", "is_method_overloaded": false, "method_arg_classes": ["String"], "_type": "RouteReference"}, "sharing.get_shared_link_metadata": {"fq_name": "sharing.get_shared_link_metadata", "java_class": "com.dropbox.core.v2.sharing.DbxAppSharingRequests", "visibility": "PUBLIC", "namespace_name": "sharing", "method": "getSharedLinkMetadata", "has_builder": true, "builder_method": "getSharedLinkMetadataBuilder", "error_ref": "sharing.SharedLinkError", "url_path": "2/sharing/get_shared_link_metadata", "is_method_overloaded": false, "method_arg_classes": ["String"], "_type": "RouteReference"}, "file_properties.templates/add_for_team": {"method_arg_classes": ["String", "String", "java.util.List"], "java_class": "com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/add_for_team", "namespace_name": "file_properties", "method": "templatesAddForTeam", "has_builder": false, "builder_method": null, "error_ref": "file_properties.ModifyTemplateError", "url_path": "2/file_properties/templates/add_for_team", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/get_for_team": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/get_for_team", "namespace_name": "file_properties", "method": "templatesGetForTeam", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/file_properties/templates/get_for_team", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/list_for_team": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/list_for_team", "namespace_name": "file_properties", "method": "templatesListForTeam", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/file_properties/templates/list_for_team", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/remove_for_team": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/remove_for_team", "namespace_name": "file_properties", "method": "templatesRemoveForTeam", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/file_properties/templates/remove_for_team", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/update_for_team": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/update_for_team", "namespace_name": "file_properties", "method": "templatesUpdateForTeam", "has_builder": true, "builder_method": "templatesUpdateForTeamBuilder", "error_ref": "file_properties.ModifyTemplateError", "url_path": "2/file_properties/templates/update_for_team", "is_method_overloaded": false, "_type": "RouteReference"}, "team.devices/list_member_devices": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.devices/list_member_devices", "namespace_name": "team", "method": "devicesListMemberDevices", "has_builder": true, "builder_method": "devicesListMemberDevicesBuilder", "error_ref": "team.ListMemberDevicesError", "url_path": "2/team/devices/list_member_devices", "is_method_overloaded": false, "_type": "RouteReference"}, "team.devices/list_members_devices": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.devices/list_members_devices", "namespace_name": "team", "method": "devicesListMembersDevices", "has_builder": true, "builder_method": "devicesListMembersDevicesBuilder", "error_ref": "team.ListMembersDevicesError", "url_path": "2/team/devices/list_members_devices", "is_method_overloaded": false, "_type": "RouteReference"}, "team.devices/list_team_devices": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.devices/list_team_devices", "namespace_name": "team", "method": "devicesListTeamDevices", "has_builder": true, "builder_method": "devicesListTeamDevicesBuilder", "error_ref": "team.ListTeamDevicesError", "url_path": "2/team/devices/list_team_devices", "is_method_overloaded": false, "_type": "RouteReference"}, "team.devices/revoke_device_session": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.devices/revoke_device_session", "namespace_name": "team", "method": "devicesRevokeDeviceSession", "has_builder": false, "builder_method": null, "error_ref": "team.RevokeDeviceSessionError", "url_path": "2/team/devices/revoke_device_session", "is_method_overloaded": false, "_type": "RouteReference"}, "team.devices/revoke_device_session_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.devices/revoke_device_session_batch", "namespace_name": "team", "method": "devicesRevokeDeviceSessionBatch", "has_builder": false, "builder_method": null, "error_ref": "team.RevokeDeviceSessionBatchError", "url_path": "2/team/devices/revoke_device_session_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "team.features/get_values": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.features/get_values", "namespace_name": "team", "method": "featuresGetValues", "has_builder": false, "builder_method": null, "error_ref": "team.FeaturesGetValuesBatchError", "url_path": "2/team/features/get_values", "is_method_overloaded": false, "_type": "RouteReference"}, "team.get_info": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.get_info", "namespace_name": "team", "method": "getInfo", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/get_info", "is_method_overloaded": false, "_type": "RouteReference"}, "team.groups/create": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/create", "namespace_name": "team", "method": "groupsCreate", "has_builder": true, "builder_method": "groupsCreateBuilder", "error_ref": "team.GroupCreateError", "url_path": "2/team/groups/create", "is_method_overloaded": false, "_type": "RouteReference"}, "team.groups/delete": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/delete", "namespace_name": "team", "method": "groupsDelete", "has_builder": false, "builder_method": null, "error_ref": "team.GroupDeleteError", "url_path": "2/team/groups/delete", "is_method_overloaded": false, "_type": "RouteReference"}, "team.groups/get_info": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/get_info", "namespace_name": "team", "method": "groupsGetInfo", "has_builder": false, "builder_method": null, "error_ref": "team.GroupsGetInfoError", "url_path": "2/team/groups/get_info", "is_method_overloaded": false, "_type": "RouteReference"}, "team.groups/job_status/get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/job_status/get", "namespace_name": "team", "method": "groupsJobStatusGet", "has_builder": false, "builder_method": null, "error_ref": "team.GroupsPollError", "url_path": "2/team/groups/job_status/get", "is_method_overloaded": false, "_type": "RouteReference"}, "team.groups/list": {"method_arg_classes": ["long"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/list", "namespace_name": "team", "method": "groupsList", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/groups/list", "is_method_overloaded": true, "_type": "RouteReference"}, "team.groups/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/list/continue", "namespace_name": "team", "method": "groupsListContinue", "has_builder": false, "builder_method": null, "error_ref": "team.GroupsListContinueError", "url_path": "2/team/groups/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "team.groups/members/add": {"method_arg_classes": ["com.dropbox.core.v2.team.GroupSelector", "java.util.List", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/members/add", "namespace_name": "team", "method": "groupsMembersAdd", "has_builder": false, "builder_method": null, "error_ref": "team.GroupMembersAddError", "url_path": "2/team/groups/members/add", "is_method_overloaded": true, "_type": "RouteReference"}, "team.groups/members/list": {"method_arg_classes": ["com.dropbox.core.v2.team.GroupSelector", "long"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/members/list", "namespace_name": "team", "method": "groupsMembersList", "has_builder": false, "builder_method": null, "error_ref": "team.GroupSelectorError", "url_path": "2/team/groups/members/list", "is_method_overloaded": true, "_type": "RouteReference"}, "team.groups/members/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/members/list/continue", "namespace_name": "team", "method": "groupsMembersListContinue", "has_builder": false, "builder_method": null, "error_ref": "team.GroupsMembersListContinueError", "url_path": "2/team/groups/members/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "team.groups/members/remove": {"method_arg_classes": ["com.dropbox.core.v2.team.GroupSelector", "java.util.List", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/members/remove", "namespace_name": "team", "method": "groupsMembersRemove", "has_builder": false, "builder_method": null, "error_ref": "team.GroupMembersRemoveError", "url_path": "2/team/groups/members/remove", "is_method_overloaded": true, "_type": "RouteReference"}, "team.groups/members/set_access_type": {"method_arg_classes": ["com.dropbox.core.v2.team.GroupSelector", "com.dropbox.core.v2.team.UserSelectorArg", "com.dropbox.core.v2.team.GroupAccessType", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/members/set_access_type", "namespace_name": "team", "method": "groupsMembersSetAccessType", "has_builder": false, "builder_method": null, "error_ref": "team.GroupMemberSetAccessTypeError", "url_path": "2/team/groups/members/set_access_type", "is_method_overloaded": true, "_type": "RouteReference"}, "team.groups/update": {"method_arg_classes": ["com.dropbox.core.v2.team.GroupSelector"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.groups/update", "namespace_name": "team", "method": "groupsUpdate", "has_builder": true, "builder_method": "groupsUpdateBuilder", "error_ref": "team.GroupUpdateError", "url_path": "2/team/groups/update", "is_method_overloaded": false, "_type": "RouteReference"}, "team.legal_holds/create_policy": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.legal_holds/create_policy", "namespace_name": "team", "method": "legalHoldsCreatePolicy", "has_builder": true, "builder_method": "legalHoldsCreatePolicyBuilder", "error_ref": "team.LegalHoldsPolicyCreateError", "url_path": "2/team/legal_holds/create_policy", "is_method_overloaded": false, "_type": "RouteReference"}, "team.legal_holds/get_policy": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.legal_holds/get_policy", "namespace_name": "team", "method": "legalHoldsGetPolicy", "has_builder": false, "builder_method": null, "error_ref": "team.LegalHoldsGetPolicyError", "url_path": "2/team/legal_holds/get_policy", "is_method_overloaded": false, "_type": "RouteReference"}, "team.legal_holds/list_held_revisions": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.legal_holds/list_held_revisions", "namespace_name": "team", "method": "legalHoldsListHeldRevisions", "has_builder": false, "builder_method": null, "error_ref": "team.LegalHoldsListHeldRevisionsError", "url_path": "2/team/legal_holds/list_held_revisions", "is_method_overloaded": false, "_type": "RouteReference"}, "team.legal_holds/list_held_revisions_continue": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.legal_holds/list_held_revisions_continue", "namespace_name": "team", "method": "legalHoldsListHeldRevisionsContinue", "has_builder": false, "builder_method": null, "error_ref": "team.LegalHoldsListHeldRevisionsError", "url_path": "2/team/legal_holds/list_held_revisions_continue", "is_method_overloaded": true, "_type": "RouteReference"}, "team.legal_holds/list_policies": {"method_arg_classes": ["boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.legal_holds/list_policies", "namespace_name": "team", "method": "legalHoldsListPolicies", "has_builder": false, "builder_method": null, "error_ref": "team.LegalHoldsListPoliciesError", "url_path": "2/team/legal_holds/list_policies", "is_method_overloaded": true, "_type": "RouteReference"}, "team.legal_holds/release_policy": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.legal_holds/release_policy", "namespace_name": "team", "method": "legalHoldsReleasePolicy", "has_builder": false, "builder_method": null, "error_ref": "team.LegalHoldsPolicyReleaseError", "url_path": "2/team/legal_holds/release_policy", "is_method_overloaded": false, "_type": "RouteReference"}, "team.legal_holds/update_policy": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.legal_holds/update_policy", "namespace_name": "team", "method": "legalHoldsUpdatePolicy", "has_builder": true, "builder_method": "legalHoldsUpdatePolicyBuilder", "error_ref": "team.LegalHoldsPolicyUpdateError", "url_path": "2/team/legal_holds/update_policy", "is_method_overloaded": false, "_type": "RouteReference"}, "team.linked_apps/list_member_linked_apps": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.linked_apps/list_member_linked_apps", "namespace_name": "team", "method": "linkedAppsListMemberLinkedApps", "has_builder": false, "builder_method": null, "error_ref": "team.ListMemberAppsError", "url_path": "2/team/linked_apps/list_member_linked_apps", "is_method_overloaded": false, "_type": "RouteReference"}, "team.linked_apps/list_members_linked_apps": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.linked_apps/list_members_linked_apps", "namespace_name": "team", "method": "linkedAppsListMembersLinkedApps", "has_builder": false, "builder_method": null, "error_ref": "team.ListMembersAppsError", "url_path": "2/team/linked_apps/list_members_linked_apps", "is_method_overloaded": true, "_type": "RouteReference"}, "team.linked_apps/list_team_linked_apps": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.linked_apps/list_team_linked_apps", "namespace_name": "team", "method": "linkedAppsListTeamLinkedApps", "has_builder": false, "builder_method": null, "error_ref": "team.ListTeamAppsError", "url_path": "2/team/linked_apps/list_team_linked_apps", "is_method_overloaded": true, "_type": "RouteReference"}, "team.linked_apps/revoke_linked_app": {"method_arg_classes": ["String", "String", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.linked_apps/revoke_linked_app", "namespace_name": "team", "method": "linkedAppsRevokeLinkedApp", "has_builder": false, "builder_method": null, "error_ref": "team.RevokeLinkedAppError", "url_path": "2/team/linked_apps/revoke_linked_app", "is_method_overloaded": true, "_type": "RouteReference"}, "team.linked_apps/revoke_linked_app_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.linked_apps/revoke_linked_app_batch", "namespace_name": "team", "method": "linkedAppsRevokeLinkedAppBatch", "has_builder": false, "builder_method": null, "error_ref": "team.RevokeLinkedAppBatchError", "url_path": "2/team/linked_apps/revoke_linked_app_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "team.member_space_limits/excluded_users/add": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.member_space_limits/excluded_users/add", "namespace_name": "team", "method": "memberSpaceLimitsExcludedUsersAdd", "has_builder": false, "builder_method": null, "error_ref": "team.ExcludedUsersUpdateError", "url_path": "2/team/member_space_limits/excluded_users/add", "is_method_overloaded": true, "_type": "RouteReference"}, "team.member_space_limits/excluded_users/list": {"method_arg_classes": ["long"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.member_space_limits/excluded_users/list", "namespace_name": "team", "method": "memberSpaceLimitsExcludedUsersList", "has_builder": false, "builder_method": null, "error_ref": "team.ExcludedUsersListError", "url_path": "2/team/member_space_limits/excluded_users/list", "is_method_overloaded": true, "_type": "RouteReference"}, "team.member_space_limits/excluded_users/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.member_space_limits/excluded_users/list/continue", "namespace_name": "team", "method": "memberSpaceLimitsExcludedUsersListContinue", "has_builder": false, "builder_method": null, "error_ref": "team.ExcludedUsersListContinueError", "url_path": "2/team/member_space_limits/excluded_users/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "team.member_space_limits/excluded_users/remove": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.member_space_limits/excluded_users/remove", "namespace_name": "team", "method": "memberSpaceLimitsExcludedUsersRemove", "has_builder": false, "builder_method": null, "error_ref": "team.ExcludedUsersUpdateError", "url_path": "2/team/member_space_limits/excluded_users/remove", "is_method_overloaded": true, "_type": "RouteReference"}, "team.member_space_limits/get_custom_quota": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.member_space_limits/get_custom_quota", "namespace_name": "team", "method": "memberSpaceLimitsGetCustomQuota", "has_builder": false, "builder_method": null, "error_ref": "team.CustomQuotaError", "url_path": "2/team/member_space_limits/get_custom_quota", "is_method_overloaded": false, "_type": "RouteReference"}, "team.member_space_limits/remove_custom_quota": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.member_space_limits/remove_custom_quota", "namespace_name": "team", "method": "memberSpaceLimitsRemoveCustomQuota", "has_builder": false, "builder_method": null, "error_ref": "team.CustomQuotaError", "url_path": "2/team/member_space_limits/remove_custom_quota", "is_method_overloaded": false, "_type": "RouteReference"}, "team.member_space_limits/set_custom_quota": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.member_space_limits/set_custom_quota", "namespace_name": "team", "method": "memberSpaceLimitsSetCustomQuota", "has_builder": false, "builder_method": null, "error_ref": "team.SetCustomQuotaError", "url_path": "2/team/member_space_limits/set_custom_quota", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/add": {"method_arg_classes": ["java.util.List", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/add", "namespace_name": "team", "method": "membersAdd", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/members/add", "is_method_overloaded": true, "_type": "RouteReference"}, "team.members/add_v2": {"method_arg_classes": ["java.util.List", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/add_v2", "namespace_name": "team", "method": "membersAddV2", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/members/add_v2", "is_method_overloaded": true, "_type": "RouteReference"}, "team.members/add/job_status/get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/add/job_status/get", "namespace_name": "team", "method": "membersAddJobStatusGet", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/team/members/add/job_status/get", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/add/job_status/get_v2": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/add/job_status/get_v2", "namespace_name": "team", "method": "membersAddJobStatusGetV2", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/team/members/add/job_status/get_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/delete_profile_photo": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/delete_profile_photo", "namespace_name": "team", "method": "membersDeleteProfilePhoto", "has_builder": false, "builder_method": null, "error_ref": "team.MembersDeleteProfilePhotoError", "url_path": "2/team/members/delete_profile_photo", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/delete_profile_photo_v2": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/delete_profile_photo_v2", "namespace_name": "team", "method": "membersDeleteProfilePhotoV2", "has_builder": false, "builder_method": null, "error_ref": "team.MembersDeleteProfilePhotoError", "url_path": "2/team/members/delete_profile_photo_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/get_available_team_member_roles": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/get_available_team_member_roles", "namespace_name": "team", "method": "membersGetAvailableTeamMemberRoles", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/members/get_available_team_member_roles", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/get_info": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/get_info", "namespace_name": "team", "method": "membersGetInfo", "has_builder": false, "builder_method": null, "error_ref": "team.MembersGetInfoError", "url_path": "2/team/members/get_info", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/get_info_v2": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/get_info_v2", "namespace_name": "team", "method": "membersGetInfoV2", "has_builder": false, "builder_method": null, "error_ref": "team.MembersGetInfoError", "url_path": "2/team/members/get_info_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/list": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/list", "namespace_name": "team", "method": "membersList", "has_builder": true, "builder_method": "membersListBuilder", "error_ref": "team.MembersListError", "url_path": "2/team/members/list", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/list_v2": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/list_v2", "namespace_name": "team", "method": "membersListV2", "has_builder": true, "builder_method": "membersListV2Builder", "error_ref": "team.MembersListError", "url_path": "2/team/members/list_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/list/continue", "namespace_name": "team", "method": "membersListContinue", "has_builder": false, "builder_method": null, "error_ref": "team.MembersListContinueError", "url_path": "2/team/members/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/list/continue_v2": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/list/continue_v2", "namespace_name": "team", "method": "membersListContinueV2", "has_builder": false, "builder_method": null, "error_ref": "team.MembersListContinueError", "url_path": "2/team/members/list/continue_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/move_former_member_files": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg", "com.dropbox.core.v2.team.UserSelectorArg", "com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/move_former_member_files", "namespace_name": "team", "method": "membersMoveFormerMemberFiles", "has_builder": false, "builder_method": null, "error_ref": "team.MembersTransferFormerMembersFilesError", "url_path": "2/team/members/move_former_member_files", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/move_former_member_files/job_status/check": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/move_former_member_files/job_status/check", "namespace_name": "team", "method": "membersMoveFormerMemberFilesJobStatusCheck", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/team/members/move_former_member_files/job_status/check", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/recover": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/recover", "namespace_name": "team", "method": "membersRecover", "has_builder": false, "builder_method": null, "error_ref": "team.MembersRecoverError", "url_path": "2/team/members/recover", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/remove": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/remove", "namespace_name": "team", "method": "membersRemove", "has_builder": true, "builder_method": "membersRemoveBuilder", "error_ref": "team.MembersRemoveError", "url_path": "2/team/members/remove", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/remove/job_status/get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/remove/job_status/get", "namespace_name": "team", "method": "membersRemoveJobStatusGet", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/team/members/remove/job_status/get", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/secondary_emails/add": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/secondary_emails/add", "namespace_name": "team", "method": "membersSecondaryEmailsAdd", "has_builder": false, "builder_method": null, "error_ref": "team.AddSecondaryEmailsError", "url_path": "2/team/members/secondary_emails/add", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/secondary_emails/delete": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/secondary_emails/delete", "namespace_name": "team", "method": "membersSecondaryEmailsDelete", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/members/secondary_emails/delete", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/secondary_emails/resend_verification_emails": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/secondary_emails/resend_verification_emails", "namespace_name": "team", "method": "membersSecondaryEmailsResendVerificationEmails", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/members/secondary_emails/resend_verification_emails", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/send_welcome_email": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/send_welcome_email", "namespace_name": "team", "method": "membersSendWelcomeEmail", "has_builder": false, "builder_method": null, "error_ref": "team.MembersSendWelcomeError", "url_path": "2/team/members/send_welcome_email", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/set_admin_permissions": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg", "com.dropbox.core.v2.team.AdminTier"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/set_admin_permissions", "namespace_name": "team", "method": "membersSetAdminPermissions", "has_builder": false, "builder_method": null, "error_ref": "team.MembersSetPermissionsError", "url_path": "2/team/members/set_admin_permissions", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/set_admin_permissions_v2": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg", "java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/set_admin_permissions_v2", "namespace_name": "team", "method": "membersSetAdminPermissionsV2", "has_builder": false, "builder_method": null, "error_ref": "team.MembersSetPermissions2Error", "url_path": "2/team/members/set_admin_permissions_v2", "is_method_overloaded": true, "_type": "RouteReference"}, "team.members/set_profile": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/set_profile", "namespace_name": "team", "method": "membersSetProfile", "has_builder": true, "builder_method": "membersSetProfileBuilder", "error_ref": "team.MembersSetProfileError", "url_path": "2/team/members/set_profile", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/set_profile_v2": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/set_profile_v2", "namespace_name": "team", "method": "membersSetProfileV2", "has_builder": true, "builder_method": "membersSetProfileV2Builder", "error_ref": "team.MembersSetProfileError", "url_path": "2/team/members/set_profile_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/set_profile_photo": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg", "com.dropbox.core.v2.account.PhotoSourceArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/set_profile_photo", "namespace_name": "team", "method": "membersSetProfilePhoto", "has_builder": false, "builder_method": null, "error_ref": "team.MembersSetProfilePhotoError", "url_path": "2/team/members/set_profile_photo", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/set_profile_photo_v2": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg", "com.dropbox.core.v2.account.PhotoSourceArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/set_profile_photo_v2", "namespace_name": "team", "method": "membersSetProfilePhotoV2", "has_builder": false, "builder_method": null, "error_ref": "team.MembersSetProfilePhotoError", "url_path": "2/team/members/set_profile_photo_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "team.members/suspend": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/suspend", "namespace_name": "team", "method": "membersSuspend", "has_builder": false, "builder_method": null, "error_ref": "team.MembersSuspendError", "url_path": "2/team/members/suspend", "is_method_overloaded": true, "_type": "RouteReference"}, "team.members/unsuspend": {"method_arg_classes": ["com.dropbox.core.v2.team.UserSelectorArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.members/unsuspend", "namespace_name": "team", "method": "membersUnsuspend", "has_builder": false, "builder_method": null, "error_ref": "team.MembersUnsuspendError", "url_path": "2/team/members/unsuspend", "is_method_overloaded": false, "_type": "RouteReference"}, "team.namespaces/list": {"method_arg_classes": ["long"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.namespaces/list", "namespace_name": "team", "method": "namespacesList", "has_builder": false, "builder_method": null, "error_ref": "team.TeamNamespacesListError", "url_path": "2/team/namespaces/list", "is_method_overloaded": true, "_type": "RouteReference"}, "team.namespaces/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.namespaces/list/continue", "namespace_name": "team", "method": "namespacesListContinue", "has_builder": false, "builder_method": null, "error_ref": "team.TeamNamespacesListContinueError", "url_path": "2/team/namespaces/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "team.properties/template/add": {"method_arg_classes": ["String", "String", "java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.properties/template/add", "namespace_name": "team", "method": "propertiesTemplateAdd", "has_builder": false, "builder_method": null, "error_ref": "file_properties.ModifyTemplateError", "url_path": "2/team/properties/template/add", "is_method_overloaded": false, "_type": "RouteReference"}, "team.properties/template/get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.properties/template/get", "namespace_name": "team", "method": "propertiesTemplateGet", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/team/properties/template/get", "is_method_overloaded": false, "_type": "RouteReference"}, "team.properties/template/list": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.properties/template/list", "namespace_name": "team", "method": "propertiesTemplateList", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/team/properties/template/list", "is_method_overloaded": false, "_type": "RouteReference"}, "team.properties/template/update": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.properties/template/update", "namespace_name": "team", "method": "propertiesTemplateUpdate", "has_builder": true, "builder_method": "propertiesTemplateUpdateBuilder", "error_ref": "file_properties.ModifyTemplateError", "url_path": "2/team/properties/template/update", "is_method_overloaded": false, "_type": "RouteReference"}, "team.reports/get_activity": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.reports/get_activity", "namespace_name": "team", "method": "reportsGetActivity", "has_builder": true, "builder_method": "reportsGetActivityBuilder", "error_ref": "team.DateRangeError", "url_path": "2/team/reports/get_activity", "is_method_overloaded": false, "_type": "RouteReference"}, "team.reports/get_devices": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.reports/get_devices", "namespace_name": "team", "method": "reportsGetDevices", "has_builder": true, "builder_method": "reportsGetDevicesBuilder", "error_ref": "team.DateRangeError", "url_path": "2/team/reports/get_devices", "is_method_overloaded": false, "_type": "RouteReference"}, "team.reports/get_membership": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.reports/get_membership", "namespace_name": "team", "method": "reportsGetMembership", "has_builder": true, "builder_method": "reportsGetMembershipBuilder", "error_ref": "team.DateRangeError", "url_path": "2/team/reports/get_membership", "is_method_overloaded": false, "_type": "RouteReference"}, "team.reports/get_storage": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.reports/get_storage", "namespace_name": "team", "method": "reportsGetStorage", "has_builder": true, "builder_method": "reportsGetStorageBuilder", "error_ref": "team.DateRangeError", "url_path": "2/team/reports/get_storage", "is_method_overloaded": false, "_type": "RouteReference"}, "team.sharing_allowlist/add": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.sharing_allowlist/add", "namespace_name": "team", "method": "sharingAllowlistAdd", "has_builder": true, "builder_method": "sharingAllowlistAddBuilder", "error_ref": "team.SharingAllowlistAddError", "url_path": "2/team/sharing_allowlist/add", "is_method_overloaded": false, "_type": "RouteReference"}, "team.sharing_allowlist/list": {"method_arg_classes": ["long"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.sharing_allowlist/list", "namespace_name": "team", "method": "sharingAllowlistList", "has_builder": false, "builder_method": null, "error_ref": "team.SharingAllowlistListError", "url_path": "2/team/sharing_allowlist/list", "is_method_overloaded": true, "_type": "RouteReference"}, "team.sharing_allowlist/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.sharing_allowlist/list/continue", "namespace_name": "team", "method": "sharingAllowlistListContinue", "has_builder": false, "builder_method": null, "error_ref": "team.SharingAllowlistListContinueError", "url_path": "2/team/sharing_allowlist/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "team.sharing_allowlist/remove": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.sharing_allowlist/remove", "namespace_name": "team", "method": "sharingAllowlistRemove", "has_builder": true, "builder_method": "sharingAllowlistRemoveBuilder", "error_ref": "team.SharingAllowlistRemoveError", "url_path": "2/team/sharing_allowlist/remove", "is_method_overloaded": false, "_type": "RouteReference"}, "team.team_folder/activate": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/activate", "namespace_name": "team", "method": "teamFolderActivate", "has_builder": false, "builder_method": null, "error_ref": "team.TeamFolderActivateError", "url_path": "2/team/team_folder/activate", "is_method_overloaded": false, "_type": "RouteReference"}, "team.team_folder/archive": {"method_arg_classes": ["String", "boolean"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/archive", "namespace_name": "team", "method": "teamFolderArchive", "has_builder": false, "builder_method": null, "error_ref": "team.TeamFolderArchiveError", "url_path": "2/team/team_folder/archive", "is_method_overloaded": true, "_type": "RouteReference"}, "team.team_folder/archive/check": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/archive/check", "namespace_name": "team", "method": "teamFolderArchiveCheck", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/team/team_folder/archive/check", "is_method_overloaded": false, "_type": "RouteReference"}, "team.team_folder/create": {"method_arg_classes": ["String", "com.dropbox.core.v2.files.SyncSettingArg"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/create", "namespace_name": "team", "method": "teamFolderCreate", "has_builder": false, "builder_method": null, "error_ref": "team.TeamFolderCreateError", "url_path": "2/team/team_folder/create", "is_method_overloaded": true, "_type": "RouteReference"}, "team.team_folder/get_info": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/get_info", "namespace_name": "team", "method": "teamFolderGetInfo", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/team/team_folder/get_info", "is_method_overloaded": false, "_type": "RouteReference"}, "team.team_folder/list": {"method_arg_classes": ["long"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/list", "namespace_name": "team", "method": "teamFolderList", "has_builder": false, "builder_method": null, "error_ref": "team.TeamFolderListError", "url_path": "2/team/team_folder/list", "is_method_overloaded": true, "_type": "RouteReference"}, "team.team_folder/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/list/continue", "namespace_name": "team", "method": "teamFolderListContinue", "has_builder": false, "builder_method": null, "error_ref": "team.TeamFolderListContinueError", "url_path": "2/team/team_folder/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "team.team_folder/permanently_delete": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/permanently_delete", "namespace_name": "team", "method": "teamFolderPermanentlyDelete", "has_builder": false, "builder_method": null, "error_ref": "team.TeamFolderPermanentlyDeleteError", "url_path": "2/team/team_folder/permanently_delete", "is_method_overloaded": false, "_type": "RouteReference"}, "team.team_folder/rename": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/rename", "namespace_name": "team", "method": "teamFolderRename", "has_builder": false, "builder_method": null, "error_ref": "team.TeamFolderRenameError", "url_path": "2/team/team_folder/rename", "is_method_overloaded": false, "_type": "RouteReference"}, "team.team_folder/update_sync_settings": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.team_folder/update_sync_settings", "namespace_name": "team", "method": "teamFolderUpdateSyncSettings", "has_builder": true, "builder_method": "teamFolderUpdateSyncSettingsBuilder", "error_ref": "team.TeamFolderUpdateSyncSettingsError", "url_path": "2/team/team_folder/update_sync_settings", "is_method_overloaded": false, "_type": "RouteReference"}, "team.token/get_authenticated_admin": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.team.DbxTeamTeamRequests", "visibility": "PUBLIC", "fq_name": "team.token/get_authenticated_admin", "namespace_name": "team", "method": "tokenGetAuthenticatedAdmin", "has_builder": false, "builder_method": null, "error_ref": "team.TokenGetAuthenticatedAdminError", "url_path": "2/team/token/get_authenticated_admin", "is_method_overloaded": false, "_type": "RouteReference"}, "team_log.get_events": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.teamlog.DbxTeamTeamLogRequests", "visibility": "PUBLIC", "fq_name": "team_log.get_events", "namespace_name": "team_log", "method": "getEvents", "has_builder": true, "builder_method": "getEventsBuilder", "error_ref": "team_log.GetTeamEventsError", "url_path": "2/team_log/get_events", "is_method_overloaded": false, "_type": "RouteReference"}, "team_log.get_events/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.teamlog.DbxTeamTeamLogRequests", "visibility": "PUBLIC", "fq_name": "team_log.get_events/continue", "namespace_name": "team_log", "method": "getEventsContinue", "has_builder": false, "builder_method": null, "error_ref": "team_log.GetTeamEventsContinueError", "url_path": "2/team_log/get_events/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "account.set_profile_photo": {"method_arg_classes": ["com.dropbox.core.v2.account.PhotoSourceArg"], "java_class": "com.dropbox.core.v2.account.DbxUserAccountRequests", "visibility": "PUBLIC", "fq_name": "account.set_profile_photo", "namespace_name": "account", "method": "setProfilePhoto", "has_builder": false, "builder_method": null, "error_ref": "account.SetProfilePhotoError", "url_path": "2/account/set_profile_photo", "is_method_overloaded": false, "_type": "RouteReference"}, "auth.token/revoke": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.auth.DbxUserAuthRequests", "visibility": "PUBLIC", "fq_name": "auth.token/revoke", "namespace_name": "auth", "method": "tokenRevoke", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/auth/token/revoke", "is_method_overloaded": false, "_type": "RouteReference"}, "check.user": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.check.DbxUserCheckRequests", "visibility": "PUBLIC", "fq_name": "check.user", "namespace_name": "check", "method": "user", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/check/user", "is_method_overloaded": true, "_type": "RouteReference"}, "contacts.delete_manual_contacts": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.contacts.DbxUserContactsRequests", "visibility": "PUBLIC", "fq_name": "contacts.delete_manual_contacts", "namespace_name": "contacts", "method": "deleteManualContacts", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/contacts/delete_manual_contacts", "is_method_overloaded": false, "_type": "RouteReference"}, "contacts.delete_manual_contacts_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.contacts.DbxUserContactsRequests", "visibility": "PUBLIC", "fq_name": "contacts.delete_manual_contacts_batch", "namespace_name": "contacts", "method": "deleteManualContactsBatch", "has_builder": false, "builder_method": null, "error_ref": "contacts.DeleteManualContactsError", "url_path": "2/contacts/delete_manual_contacts_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.properties/add": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.properties/add", "namespace_name": "file_properties", "method": "propertiesAdd", "has_builder": false, "builder_method": null, "error_ref": "file_properties.AddPropertiesError", "url_path": "2/file_properties/properties/add", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.properties/overwrite": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.properties/overwrite", "namespace_name": "file_properties", "method": "propertiesOverwrite", "has_builder": false, "builder_method": null, "error_ref": "file_properties.InvalidPropertyGroupError", "url_path": "2/file_properties/properties/overwrite", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.properties/remove": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.properties/remove", "namespace_name": "file_properties", "method": "propertiesRemove", "has_builder": false, "builder_method": null, "error_ref": "file_properties.RemovePropertiesError", "url_path": "2/file_properties/properties/remove", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.properties/search": {"method_arg_classes": ["java.util.List", "com.dropbox.core.v2.fileproperties.TemplateFilter"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.properties/search", "namespace_name": "file_properties", "method": "propertiesSearch", "has_builder": false, "builder_method": null, "error_ref": "file_properties.PropertiesSearchError", "url_path": "2/file_properties/properties/search", "is_method_overloaded": true, "_type": "RouteReference"}, "file_properties.properties/search/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.properties/search/continue", "namespace_name": "file_properties", "method": "propertiesSearchContinue", "has_builder": false, "builder_method": null, "error_ref": "file_properties.PropertiesSearchContinueError", "url_path": "2/file_properties/properties/search/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.properties/update": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.properties/update", "namespace_name": "file_properties", "method": "propertiesUpdate", "has_builder": false, "builder_method": null, "error_ref": "file_properties.UpdatePropertiesError", "url_path": "2/file_properties/properties/update", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/add_for_user": {"method_arg_classes": ["String", "String", "java.util.List"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/add_for_user", "namespace_name": "file_properties", "method": "templatesAddForUser", "has_builder": false, "builder_method": null, "error_ref": "file_properties.ModifyTemplateError", "url_path": "2/file_properties/templates/add_for_user", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/get_for_user": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/get_for_user", "namespace_name": "file_properties", "method": "templatesGetForUser", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/file_properties/templates/get_for_user", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/list_for_user": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/list_for_user", "namespace_name": "file_properties", "method": "templatesListForUser", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/file_properties/templates/list_for_user", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/remove_for_user": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/remove_for_user", "namespace_name": "file_properties", "method": "templatesRemoveForUser", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/file_properties/templates/remove_for_user", "is_method_overloaded": false, "_type": "RouteReference"}, "file_properties.templates/update_for_user": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests", "visibility": "PUBLIC", "fq_name": "file_properties.templates/update_for_user", "namespace_name": "file_properties", "method": "templatesUpdateForUser", "has_builder": true, "builder_method": "templatesUpdateForUserBuilder", "error_ref": "file_properties.ModifyTemplateError", "url_path": "2/file_properties/templates/update_for_user", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.count": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.count", "namespace_name": "file_requests", "method": "count", "has_builder": false, "builder_method": null, "error_ref": "file_requests.CountFileRequestsError", "url_path": "2/file_requests/count", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.create": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.create", "namespace_name": "file_requests", "method": "create", "has_builder": true, "builder_method": "createBuilder", "error_ref": "file_requests.CreateFileRequestError", "url_path": "2/file_requests/create", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.delete": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.delete", "namespace_name": "file_requests", "method": "delete", "has_builder": false, "builder_method": null, "error_ref": "file_requests.DeleteFileRequestError", "url_path": "2/file_requests/delete", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.delete_all_closed": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.delete_all_closed", "namespace_name": "file_requests", "method": "deleteAllClosed", "has_builder": false, "builder_method": null, "error_ref": "file_requests.DeleteAllClosedFileRequestsError", "url_path": "2/file_requests/delete_all_closed", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.get", "namespace_name": "file_requests", "method": "get", "has_builder": false, "builder_method": null, "error_ref": "file_requests.GetFileRequestError", "url_path": "2/file_requests/get", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.list": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.list", "namespace_name": "file_requests", "method": "list", "has_builder": false, "builder_method": null, "error_ref": "file_requests.ListFileRequestsError", "url_path": "2/file_requests/list", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.list_v2": {"method_arg_classes": ["long"], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.list_v2", "namespace_name": "file_requests", "method": "listV2", "has_builder": false, "builder_method": null, "error_ref": "file_requests.ListFileRequestsError", "url_path": "2/file_requests/list_v2", "is_method_overloaded": true, "_type": "RouteReference"}, "file_requests.list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.list/continue", "namespace_name": "file_requests", "method": "listContinue", "has_builder": false, "builder_method": null, "error_ref": "file_requests.ListFileRequestsContinueError", "url_path": "2/file_requests/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "file_requests.update": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests", "visibility": "PUBLIC", "fq_name": "file_requests.update", "namespace_name": "file_requests", "method": "update", "has_builder": true, "builder_method": "updateBuilder", "error_ref": "file_requests.UpdateFileRequestError", "url_path": "2/file_requests/update", "is_method_overloaded": false, "_type": "RouteReference"}, "files.alpha/get_metadata": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.alpha/get_metadata", "namespace_name": "files", "method": "alphaGetMetadata", "has_builder": true, "builder_method": "alphaGetMetadataBuilder", "error_ref": "files.AlphaGetMetadataError", "url_path": "2/files/alpha/get_metadata", "is_method_overloaded": false, "_type": "RouteReference"}, "files.alpha/upload": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.alpha/upload", "namespace_name": "files", "method": "alphaUpload", "has_builder": true, "builder_method": "alphaUploadBuilder", "error_ref": "files.UploadError", "url_path": "2/files/alpha/upload", "is_method_overloaded": false, "_type": "RouteReference"}, "files.copy": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy", "namespace_name": "files", "method": "copy", "has_builder": true, "builder_method": "copyBuilder", "error_ref": "files.RelocationError", "url_path": "2/files/copy", "is_method_overloaded": false, "_type": "RouteReference"}, "files.copy_v2": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy_v2", "namespace_name": "files", "method": "copyV2", "has_builder": true, "builder_method": "copyV2Builder", "error_ref": "files.RelocationError", "url_path": "2/files/copy_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.copy_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy_batch", "namespace_name": "files", "method": "copyBatch", "has_builder": true, "builder_method": "copyBatchBuilder", "error_ref": null, "url_path": "2/files/copy_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.copy_batch_v2": {"method_arg_classes": ["java.util.List", "boolean"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy_batch_v2", "namespace_name": "files", "method": "copyBatchV2", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/files/copy_batch_v2", "is_method_overloaded": true, "_type": "RouteReference"}, "files.copy_batch/check": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy_batch/check", "namespace_name": "files", "method": "copyBatchCheck", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/copy_batch/check", "is_method_overloaded": false, "_type": "RouteReference"}, "files.copy_batch/check_v2": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy_batch/check_v2", "namespace_name": "files", "method": "copyBatchCheckV2", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/copy_batch/check_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.copy_reference/get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy_reference/get", "namespace_name": "files", "method": "copyReferenceGet", "has_builder": false, "builder_method": null, "error_ref": "files.GetCopyReferenceError", "url_path": "2/files/copy_reference/get", "is_method_overloaded": false, "_type": "RouteReference"}, "files.copy_reference/save": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.copy_reference/save", "namespace_name": "files", "method": "copyReferenceSave", "has_builder": false, "builder_method": null, "error_ref": "files.SaveCopyReferenceError", "url_path": "2/files/copy_reference/save", "is_method_overloaded": false, "_type": "RouteReference"}, "files.create_folder": {"method_arg_classes": ["String", "boolean"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.create_folder", "namespace_name": "files", "method": "createFolder", "has_builder": false, "builder_method": null, "error_ref": "files.CreateFolderError", "url_path": "2/files/create_folder", "is_method_overloaded": true, "_type": "RouteReference"}, "files.create_folder_v2": {"method_arg_classes": ["String", "boolean"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.create_folder_v2", "namespace_name": "files", "method": "createFolderV2", "has_builder": false, "builder_method": null, "error_ref": "files.CreateFolderError", "url_path": "2/files/create_folder_v2", "is_method_overloaded": true, "_type": "RouteReference"}, "files.create_folder_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.create_folder_batch", "namespace_name": "files", "method": "createFolderBatch", "has_builder": true, "builder_method": "createFolderBatchBuilder", "error_ref": null, "url_path": "2/files/create_folder_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.create_folder_batch/check": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.create_folder_batch/check", "namespace_name": "files", "method": "createFolderBatchCheck", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/create_folder_batch/check", "is_method_overloaded": false, "_type": "RouteReference"}, "files.delete": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.delete", "namespace_name": "files", "method": "delete", "has_builder": false, "builder_method": null, "error_ref": "files.DeleteError", "url_path": "2/files/delete", "is_method_overloaded": true, "_type": "RouteReference"}, "files.delete_v2": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.delete_v2", "namespace_name": "files", "method": "deleteV2", "has_builder": false, "builder_method": null, "error_ref": "files.DeleteError", "url_path": "2/files/delete_v2", "is_method_overloaded": true, "_type": "RouteReference"}, "files.delete_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.delete_batch", "namespace_name": "files", "method": "deleteBatch", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/files/delete_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.delete_batch/check": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.delete_batch/check", "namespace_name": "files", "method": "deleteBatchCheck", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/delete_batch/check", "is_method_overloaded": false, "_type": "RouteReference"}, "files.download": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.download", "namespace_name": "files", "method": "download", "has_builder": true, "builder_method": "downloadBuilder", "error_ref": "files.DownloadError", "url_path": "2/files/download", "is_method_overloaded": true, "_type": "RouteReference"}, "files.download_zip": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.download_zip", "namespace_name": "files", "method": "downloadZip", "has_builder": true, "builder_method": "downloadZipBuilder", "error_ref": "files.DownloadZipError", "url_path": "2/files/download_zip", "is_method_overloaded": false, "_type": "RouteReference"}, "files.export": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.export", "namespace_name": "files", "method": "export", "has_builder": true, "builder_method": "exportBuilder", "error_ref": "files.ExportError", "url_path": "2/files/export", "is_method_overloaded": true, "_type": "RouteReference"}, "files.get_file_lock_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.get_file_lock_batch", "namespace_name": "files", "method": "getFileLockBatch", "has_builder": false, "builder_method": null, "error_ref": "files.LockFileError", "url_path": "2/files/get_file_lock_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.get_metadata": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.get_metadata", "namespace_name": "files", "method": "getMetadata", "has_builder": true, "builder_method": "getMetadataBuilder", "error_ref": "files.GetMetadataError", "url_path": "2/files/get_metadata", "is_method_overloaded": false, "_type": "RouteReference"}, "files.get_preview": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.get_preview", "namespace_name": "files", "method": "getPreview", "has_builder": true, "builder_method": "getPreviewBuilder", "error_ref": "files.PreviewError", "url_path": "2/files/get_preview", "is_method_overloaded": true, "_type": "RouteReference"}, "files.get_temporary_link": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.get_temporary_link", "namespace_name": "files", "method": "getTemporaryLink", "has_builder": false, "builder_method": null, "error_ref": "files.GetTemporaryLinkError", "url_path": "2/files/get_temporary_link", "is_method_overloaded": false, "_type": "RouteReference"}, "files.get_temporary_upload_link": {"method_arg_classes": ["com.dropbox.core.v2.files.CommitInfo", "double"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.get_temporary_upload_link", "namespace_name": "files", "method": "getTemporaryUploadLink", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/files/get_temporary_upload_link", "is_method_overloaded": true, "_type": "RouteReference"}, "files.get_thumbnail": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.get_thumbnail", "namespace_name": "files", "method": "getThumbnail", "has_builder": true, "builder_method": "getThumbnailBuilder", "error_ref": "files.ThumbnailError", "url_path": "2/files/get_thumbnail", "is_method_overloaded": false, "_type": "RouteReference"}, "files.get_thumbnail_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.get_thumbnail_batch", "namespace_name": "files", "method": "getThumbnailBatch", "has_builder": false, "builder_method": null, "error_ref": "files.GetThumbnailBatchError", "url_path": "2/files/get_thumbnail_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.list_folder/get_latest_cursor": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.list_folder/get_latest_cursor", "namespace_name": "files", "method": "listFolderGetLatestCursor", "has_builder": true, "builder_method": "listFolderGetLatestCursorBuilder", "error_ref": "files.ListFolderError", "url_path": "2/files/list_folder/get_latest_cursor", "is_method_overloaded": false, "_type": "RouteReference"}, "files.list_folder/longpoll": {"method_arg_classes": ["String", "long"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.list_folder/longpoll", "namespace_name": "files", "method": "listFolderLongpoll", "has_builder": false, "builder_method": null, "error_ref": "files.ListFolderLongpollError", "url_path": "2/files/list_folder/longpoll", "is_method_overloaded": true, "_type": "RouteReference"}, "files.list_revisions": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.list_revisions", "namespace_name": "files", "method": "listRevisions", "has_builder": true, "builder_method": "listRevisionsBuilder", "error_ref": "files.ListRevisionsError", "url_path": "2/files/list_revisions", "is_method_overloaded": false, "_type": "RouteReference"}, "files.lock_file_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.lock_file_batch", "namespace_name": "files", "method": "lockFileBatch", "has_builder": false, "builder_method": null, "error_ref": "files.LockFileError", "url_path": "2/files/lock_file_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.move": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.move", "namespace_name": "files", "method": "move", "has_builder": true, "builder_method": "moveBuilder", "error_ref": "files.RelocationError", "url_path": "2/files/move", "is_method_overloaded": false, "_type": "RouteReference"}, "files.move_v2": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.move_v2", "namespace_name": "files", "method": "moveV2", "has_builder": true, "builder_method": "moveV2Builder", "error_ref": "files.RelocationError", "url_path": "2/files/move_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.move_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.move_batch", "namespace_name": "files", "method": "moveBatch", "has_builder": true, "builder_method": "moveBatchBuilder", "error_ref": null, "url_path": "2/files/move_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.move_batch_v2": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.move_batch_v2", "namespace_name": "files", "method": "moveBatchV2", "has_builder": true, "builder_method": "moveBatchV2Builder", "error_ref": null, "url_path": "2/files/move_batch_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.move_batch/check": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.move_batch/check", "namespace_name": "files", "method": "moveBatchCheck", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/move_batch/check", "is_method_overloaded": false, "_type": "RouteReference"}, "files.move_batch/check_v2": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.move_batch/check_v2", "namespace_name": "files", "method": "moveBatchCheckV2", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/move_batch/check_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.paper/create": {"method_arg_classes": ["String", "com.dropbox.core.v2.files.ImportFormat"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.paper/create", "namespace_name": "files", "method": "paperCreate", "has_builder": false, "builder_method": null, "error_ref": "files.PaperCreateError", "url_path": "2/files/paper/create", "is_method_overloaded": false, "_type": "RouteReference"}, "files.paper/update": {"method_arg_classes": ["String", "com.dropbox.core.v2.files.ImportFormat", "com.dropbox.core.v2.files.PaperDocUpdatePolicy", "Long"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.paper/update", "namespace_name": "files", "method": "paperUpdate", "has_builder": false, "builder_method": null, "error_ref": "files.PaperUpdateError", "url_path": "2/files/paper/update", "is_method_overloaded": true, "_type": "RouteReference"}, "files.permanently_delete": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.permanently_delete", "namespace_name": "files", "method": "permanentlyDelete", "has_builder": false, "builder_method": null, "error_ref": "files.DeleteError", "url_path": "2/files/permanently_delete", "is_method_overloaded": true, "_type": "RouteReference"}, "files.properties/add": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.properties/add", "namespace_name": "files", "method": "propertiesAdd", "has_builder": false, "builder_method": null, "error_ref": "file_properties.AddPropertiesError", "url_path": "2/files/properties/add", "is_method_overloaded": false, "_type": "RouteReference"}, "files.properties/overwrite": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.properties/overwrite", "namespace_name": "files", "method": "propertiesOverwrite", "has_builder": false, "builder_method": null, "error_ref": "file_properties.InvalidPropertyGroupError", "url_path": "2/files/properties/overwrite", "is_method_overloaded": false, "_type": "RouteReference"}, "files.properties/remove": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.properties/remove", "namespace_name": "files", "method": "propertiesRemove", "has_builder": false, "builder_method": null, "error_ref": "file_properties.RemovePropertiesError", "url_path": "2/files/properties/remove", "is_method_overloaded": false, "_type": "RouteReference"}, "files.properties/template/get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.properties/template/get", "namespace_name": "files", "method": "propertiesTemplateGet", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/files/properties/template/get", "is_method_overloaded": false, "_type": "RouteReference"}, "files.properties/template/list": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.properties/template/list", "namespace_name": "files", "method": "propertiesTemplateList", "has_builder": false, "builder_method": null, "error_ref": "file_properties.TemplateError", "url_path": "2/files/properties/template/list", "is_method_overloaded": false, "_type": "RouteReference"}, "files.properties/update": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.properties/update", "namespace_name": "files", "method": "propertiesUpdate", "has_builder": false, "builder_method": null, "error_ref": "file_properties.UpdatePropertiesError", "url_path": "2/files/properties/update", "is_method_overloaded": false, "_type": "RouteReference"}, "files.restore": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.restore", "namespace_name": "files", "method": "restore", "has_builder": false, "builder_method": null, "error_ref": "files.RestoreError", "url_path": "2/files/restore", "is_method_overloaded": false, "_type": "RouteReference"}, "files.save_url": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.save_url", "namespace_name": "files", "method": "saveUrl", "has_builder": false, "builder_method": null, "error_ref": "files.SaveUrlError", "url_path": "2/files/save_url", "is_method_overloaded": false, "_type": "RouteReference"}, "files.save_url/check_job_status": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.save_url/check_job_status", "namespace_name": "files", "method": "saveUrlCheckJobStatus", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/save_url/check_job_status", "is_method_overloaded": false, "_type": "RouteReference"}, "files.search": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.search", "namespace_name": "files", "method": "search", "has_builder": true, "builder_method": "searchBuilder", "error_ref": "files.SearchError", "url_path": "2/files/search", "is_method_overloaded": false, "_type": "RouteReference"}, "files.search_v2": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.search_v2", "namespace_name": "files", "method": "searchV2", "has_builder": true, "builder_method": "searchV2Builder", "error_ref": "files.SearchError", "url_path": "2/files/search_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.search/continue_v2": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.search/continue_v2", "namespace_name": "files", "method": "searchContinueV2", "has_builder": false, "builder_method": null, "error_ref": "files.SearchError", "url_path": "2/files/search/continue_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.tags/add": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.tags/add", "namespace_name": "files", "method": "tagsAdd", "has_builder": false, "builder_method": null, "error_ref": "files.AddTagError", "url_path": "2/files/tags/add", "is_method_overloaded": false, "_type": "RouteReference"}, "files.tags/get": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.tags/get", "namespace_name": "files", "method": "tagsGet", "has_builder": false, "builder_method": null, "error_ref": "files.BaseTagError", "url_path": "2/files/tags/get", "is_method_overloaded": false, "_type": "RouteReference"}, "files.tags/remove": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.tags/remove", "namespace_name": "files", "method": "tagsRemove", "has_builder": false, "builder_method": null, "error_ref": "files.RemoveTagError", "url_path": "2/files/tags/remove", "is_method_overloaded": false, "_type": "RouteReference"}, "files.unlock_file_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.unlock_file_batch", "namespace_name": "files", "method": "unlockFileBatch", "has_builder": false, "builder_method": null, "error_ref": "files.LockFileError", "url_path": "2/files/unlock_file_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload", "namespace_name": "files", "method": "upload", "has_builder": true, "builder_method": "uploadBuilder", "error_ref": "files.UploadError", "url_path": "2/files/upload", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload_session/append": {"method_arg_classes": ["String", "long"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/append", "namespace_name": "files", "method": "uploadSessionAppend", "has_builder": false, "builder_method": null, "error_ref": "files.UploadSessionAppendError", "url_path": "2/files/upload_session/append", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload_session/append_v2": {"method_arg_classes": ["com.dropbox.core.v2.files.UploadSessionCursor"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/append_v2", "namespace_name": "files", "method": "uploadSessionAppendV2", "has_builder": true, "builder_method": "uploadSessionAppendV2Builder", "error_ref": "files.UploadSessionAppendError", "url_path": "2/files/upload_session/append_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload_session/finish": {"method_arg_classes": ["com.dropbox.core.v2.files.UploadSessionCursor", "com.dropbox.core.v2.files.CommitInfo", "String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/finish", "namespace_name": "files", "method": "uploadSessionFinish", "has_builder": false, "builder_method": null, "error_ref": "files.UploadSessionFinishError", "url_path": "2/files/upload_session/finish", "is_method_overloaded": true, "_type": "RouteReference"}, "files.upload_session/finish_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/finish_batch", "namespace_name": "files", "method": "uploadSessionFinishBatch", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/files/upload_session/finish_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload_session/finish_batch_v2": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/finish_batch_v2", "namespace_name": "files", "method": "uploadSessionFinishBatchV2", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/files/upload_session/finish_batch_v2", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload_session/finish_batch/check": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/finish_batch/check", "namespace_name": "files", "method": "uploadSessionFinishBatchCheck", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/files/upload_session/finish_batch/check", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload_session/start": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/start", "namespace_name": "files", "method": "uploadSessionStart", "has_builder": true, "builder_method": "uploadSessionStartBuilder", "error_ref": "files.UploadSessionStartError", "url_path": "2/files/upload_session/start", "is_method_overloaded": false, "_type": "RouteReference"}, "files.upload_session/start_batch": {"method_arg_classes": ["long", "com.dropbox.core.v2.files.UploadSessionType"], "java_class": "com.dropbox.core.v2.files.DbxUserFilesRequests", "visibility": "PUBLIC", "fq_name": "files.upload_session/start_batch", "namespace_name": "files", "method": "uploadSessionStartBatch", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/files/upload_session/start_batch", "is_method_overloaded": true, "_type": "RouteReference"}, "openid.userinfo": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.openid.DbxUserOpenidRequests", "visibility": "PUBLIC", "fq_name": "openid.userinfo", "namespace_name": "openid", "method": "userinfo", "has_builder": false, "builder_method": null, "error_ref": "openid.UserInfoError", "url_path": "2/openid/userinfo", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/archive": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/archive", "namespace_name": "paper", "method": "docsArchive", "has_builder": false, "builder_method": null, "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/archive", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/create": {"method_arg_classes": ["com.dropbox.core.v2.paper.ImportFormat", "String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/create", "namespace_name": "paper", "method": "docsCreate", "has_builder": false, "builder_method": null, "error_ref": "paper.PaperDocCreateError", "url_path": "2/paper/docs/create", "is_method_overloaded": true, "_type": "RouteReference"}, "paper.docs/download": {"method_arg_classes": ["String", "com.dropbox.core.v2.paper.ExportFormat"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/download", "namespace_name": "paper", "method": "docsDownload", "has_builder": true, "builder_method": "docsDownloadBuilder", "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/download", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/folder_users/list": {"method_arg_classes": ["String", "int"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/folder_users/list", "namespace_name": "paper", "method": "docsFolderUsersList", "has_builder": false, "builder_method": null, "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/folder_users/list", "is_method_overloaded": true, "_type": "RouteReference"}, "paper.docs/folder_users/list/continue": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/folder_users/list/continue", "namespace_name": "paper", "method": "docsFolderUsersListContinue", "has_builder": false, "builder_method": null, "error_ref": "paper.ListUsersCursorError", "url_path": "2/paper/docs/folder_users/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/get_folder_info": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/get_folder_info", "namespace_name": "paper", "method": "docsGetFolderInfo", "has_builder": false, "builder_method": null, "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/get_folder_info", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/list": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/list", "namespace_name": "paper", "method": "docsList", "has_builder": true, "builder_method": "docsListBuilder", "error_ref": null, "url_path": "2/paper/docs/list", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/list/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/list/continue", "namespace_name": "paper", "method": "docsListContinue", "has_builder": false, "builder_method": null, "error_ref": "paper.ListDocsCursorError", "url_path": "2/paper/docs/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/permanently_delete": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/permanently_delete", "namespace_name": "paper", "method": "docsPermanentlyDelete", "has_builder": false, "builder_method": null, "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/permanently_delete", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/sharing_policy/get": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/sharing_policy/get", "namespace_name": "paper", "method": "docsSharingPolicyGet", "has_builder": false, "builder_method": null, "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/sharing_policy/get", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/sharing_policy/set": {"method_arg_classes": ["String", "com.dropbox.core.v2.paper.SharingPolicy"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/sharing_policy/set", "namespace_name": "paper", "method": "docsSharingPolicySet", "has_builder": false, "builder_method": null, "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/sharing_policy/set", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/update": {"method_arg_classes": ["String", "com.dropbox.core.v2.paper.PaperDocUpdatePolicy", "long", "com.dropbox.core.v2.paper.ImportFormat"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/update", "namespace_name": "paper", "method": "docsUpdate", "has_builder": false, "builder_method": null, "error_ref": "paper.PaperDocUpdateError", "url_path": "2/paper/docs/update", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/users/add": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/users/add", "namespace_name": "paper", "method": "docsUsersAdd", "has_builder": true, "builder_method": "docsUsersAddBuilder", "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/users/add", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/users/list": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/users/list", "namespace_name": "paper", "method": "docsUsersList", "has_builder": true, "builder_method": "docsUsersListBuilder", "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/users/list", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/users/list/continue": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/users/list/continue", "namespace_name": "paper", "method": "docsUsersListContinue", "has_builder": false, "builder_method": null, "error_ref": "paper.ListUsersCursorError", "url_path": "2/paper/docs/users/list/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.docs/users/remove": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.MemberSelector"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.docs/users/remove", "namespace_name": "paper", "method": "docsUsersRemove", "has_builder": false, "builder_method": null, "error_ref": "paper.DocLookupError", "url_path": "2/paper/docs/users/remove", "is_method_overloaded": false, "_type": "RouteReference"}, "paper.folders/create": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.paper.DbxUserPaperRequests", "visibility": "PUBLIC", "fq_name": "paper.folders/create", "namespace_name": "paper", "method": "foldersCreate", "has_builder": true, "builder_method": "foldersCreateBuilder", "error_ref": "paper.PaperFolderCreateError", "url_path": "2/paper/folders/create", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.add_file_member": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.add_file_member", "namespace_name": "sharing", "method": "addFileMember", "has_builder": true, "builder_method": "addFileMemberBuilder", "error_ref": "sharing.AddFileMemberError", "url_path": "2/sharing/add_file_member", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.add_folder_member": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.add_folder_member", "namespace_name": "sharing", "method": "addFolderMember", "has_builder": true, "builder_method": "addFolderMemberBuilder", "error_ref": "sharing.AddFolderMemberError", "url_path": "2/sharing/add_folder_member", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.check_job_status": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.check_job_status", "namespace_name": "sharing", "method": "checkJobStatus", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/sharing/check_job_status", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.check_remove_member_job_status": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.check_remove_member_job_status", "namespace_name": "sharing", "method": "checkRemoveMemberJobStatus", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/sharing/check_remove_member_job_status", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.check_share_job_status": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.check_share_job_status", "namespace_name": "sharing", "method": "checkShareJobStatus", "has_builder": false, "builder_method": null, "error_ref": "async.PollError", "url_path": "2/sharing/check_share_job_status", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.create_shared_link": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.create_shared_link", "namespace_name": "sharing", "method": "createSharedLink", "has_builder": true, "builder_method": "createSharedLinkBuilder", "error_ref": "sharing.CreateSharedLinkError", "url_path": "2/sharing/create_shared_link", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.create_shared_link_with_settings": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.SharedLinkSettings"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.create_shared_link_with_settings", "namespace_name": "sharing", "method": "createSharedLinkWithSettings", "has_builder": false, "builder_method": null, "error_ref": "sharing.CreateSharedLinkWithSettingsError", "url_path": "2/sharing/create_shared_link_with_settings", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.get_file_metadata": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.get_file_metadata", "namespace_name": "sharing", "method": "getFileMetadata", "has_builder": false, "builder_method": null, "error_ref": "sharing.GetFileMetadataError", "url_path": "2/sharing/get_file_metadata", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.get_file_metadata/batch": {"method_arg_classes": ["java.util.List", "java.util.List"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.get_file_metadata/batch", "namespace_name": "sharing", "method": "getFileMetadataBatch", "has_builder": false, "builder_method": null, "error_ref": "sharing.SharingUserError", "url_path": "2/sharing/get_file_metadata/batch", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.get_folder_metadata": {"method_arg_classes": ["String", "java.util.List"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.get_folder_metadata", "namespace_name": "sharing", "method": "getFolderMetadata", "has_builder": false, "builder_method": null, "error_ref": "sharing.SharedFolderAccessError", "url_path": "2/sharing/get_folder_metadata", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.get_shared_link_file": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.get_shared_link_file", "namespace_name": "sharing", "method": "getSharedLinkFile", "has_builder": true, "builder_method": "getSharedLinkFileBuilder", "error_ref": "sharing.GetSharedLinkFileError", "url_path": "2/sharing/get_shared_link_file", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.get_shared_links": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.get_shared_links", "namespace_name": "sharing", "method": "getSharedLinks", "has_builder": false, "builder_method": null, "error_ref": "sharing.GetSharedLinksError", "url_path": "2/sharing/get_shared_links", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.list_file_members": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_file_members", "namespace_name": "sharing", "method": "listFileMembers", "has_builder": true, "builder_method": "listFileMembersBuilder", "error_ref": "sharing.ListFileMembersError", "url_path": "2/sharing/list_file_members", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_file_members/batch": {"method_arg_classes": ["java.util.List", "long"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_file_members/batch", "namespace_name": "sharing", "method": "listFileMembersBatch", "has_builder": false, "builder_method": null, "error_ref": "sharing.SharingUserError", "url_path": "2/sharing/list_file_members/batch", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.list_file_members/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_file_members/continue", "namespace_name": "sharing", "method": "listFileMembersContinue", "has_builder": false, "builder_method": null, "error_ref": "sharing.ListFileMembersContinueError", "url_path": "2/sharing/list_file_members/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_folder_members": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_folder_members", "namespace_name": "sharing", "method": "listFolderMembers", "has_builder": true, "builder_method": "listFolderMembersBuilder", "error_ref": "sharing.SharedFolderAccessError", "url_path": "2/sharing/list_folder_members", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_folder_members/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_folder_members/continue", "namespace_name": "sharing", "method": "listFolderMembersContinue", "has_builder": false, "builder_method": null, "error_ref": "sharing.ListFolderMembersContinueError", "url_path": "2/sharing/list_folder_members/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_folders": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_folders", "namespace_name": "sharing", "method": "listFolders", "has_builder": true, "builder_method": "listFoldersBuilder", "error_ref": null, "url_path": "2/sharing/list_folders", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_folders/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_folders/continue", "namespace_name": "sharing", "method": "listFoldersContinue", "has_builder": false, "builder_method": null, "error_ref": "sharing.ListFoldersContinueError", "url_path": "2/sharing/list_folders/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_mountable_folders": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_mountable_folders", "namespace_name": "sharing", "method": "listMountableFolders", "has_builder": true, "builder_method": "listMountableFoldersBuilder", "error_ref": null, "url_path": "2/sharing/list_mountable_folders", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_mountable_folders/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_mountable_folders/continue", "namespace_name": "sharing", "method": "listMountableFoldersContinue", "has_builder": false, "builder_method": null, "error_ref": "sharing.ListFoldersContinueError", "url_path": "2/sharing/list_mountable_folders/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_received_files": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_received_files", "namespace_name": "sharing", "method": "listReceivedFiles", "has_builder": true, "builder_method": "listReceivedFilesBuilder", "error_ref": "sharing.SharingUserError", "url_path": "2/sharing/list_received_files", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_received_files/continue": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_received_files/continue", "namespace_name": "sharing", "method": "listReceivedFilesContinue", "has_builder": false, "builder_method": null, "error_ref": "sharing.ListFilesContinueError", "url_path": "2/sharing/list_received_files/continue", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.list_shared_links": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.list_shared_links", "namespace_name": "sharing", "method": "listSharedLinks", "has_builder": true, "builder_method": "listSharedLinksBuilder", "error_ref": "sharing.ListSharedLinksError", "url_path": "2/sharing/list_shared_links", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.modify_shared_link_settings": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.SharedLinkSettings", "boolean"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.modify_shared_link_settings", "namespace_name": "sharing", "method": "modifySharedLinkSettings", "has_builder": false, "builder_method": null, "error_ref": "sharing.ModifySharedLinkSettingsError", "url_path": "2/sharing/modify_shared_link_settings", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.mount_folder": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.mount_folder", "namespace_name": "sharing", "method": "mountFolder", "has_builder": false, "builder_method": null, "error_ref": "sharing.MountFolderError", "url_path": "2/sharing/mount_folder", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.relinquish_file_membership": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.relinquish_file_membership", "namespace_name": "sharing", "method": "relinquishFileMembership", "has_builder": false, "builder_method": null, "error_ref": "sharing.RelinquishFileMembershipError", "url_path": "2/sharing/relinquish_file_membership", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.relinquish_folder_membership": {"method_arg_classes": ["String", "boolean"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.relinquish_folder_membership", "namespace_name": "sharing", "method": "relinquishFolderMembership", "has_builder": false, "builder_method": null, "error_ref": "sharing.RelinquishFolderMembershipError", "url_path": "2/sharing/relinquish_folder_membership", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.remove_file_member": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.MemberSelector"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.remove_file_member", "namespace_name": "sharing", "method": "removeFileMember", "has_builder": false, "builder_method": null, "error_ref": "sharing.RemoveFileMemberError", "url_path": "2/sharing/remove_file_member", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.remove_file_member_2": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.MemberSelector"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.remove_file_member_2", "namespace_name": "sharing", "method": "removeFileMember2", "has_builder": false, "builder_method": null, "error_ref": "sharing.RemoveFileMemberError", "url_path": "2/sharing/remove_file_member_2", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.remove_folder_member": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.MemberSelector", "boolean"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.remove_folder_member", "namespace_name": "sharing", "method": "removeFolderMember", "has_builder": false, "builder_method": null, "error_ref": "sharing.RemoveFolderMemberError", "url_path": "2/sharing/remove_folder_member", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.revoke_shared_link": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.revoke_shared_link", "namespace_name": "sharing", "method": "revokeSharedLink", "has_builder": false, "builder_method": null, "error_ref": "sharing.RevokeSharedLinkError", "url_path": "2/sharing/revoke_shared_link", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.set_access_inheritance": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.AccessInheritance"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.set_access_inheritance", "namespace_name": "sharing", "method": "setAccessInheritance", "has_builder": false, "builder_method": null, "error_ref": "sharing.SetAccessInheritanceError", "url_path": "2/sharing/set_access_inheritance", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.share_folder": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.share_folder", "namespace_name": "sharing", "method": "shareFolder", "has_builder": true, "builder_method": "shareFolderBuilder", "error_ref": "sharing.ShareFolderError", "url_path": "2/sharing/share_folder", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.transfer_folder": {"method_arg_classes": ["String", "String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.transfer_folder", "namespace_name": "sharing", "method": "transferFolder", "has_builder": false, "builder_method": null, "error_ref": "sharing.TransferFolderError", "url_path": "2/sharing/transfer_folder", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.unmount_folder": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.unmount_folder", "namespace_name": "sharing", "method": "unmountFolder", "has_builder": false, "builder_method": null, "error_ref": "sharing.UnmountFolderError", "url_path": "2/sharing/unmount_folder", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.unshare_file": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.unshare_file", "namespace_name": "sharing", "method": "unshareFile", "has_builder": false, "builder_method": null, "error_ref": "sharing.UnshareFileError", "url_path": "2/sharing/unshare_file", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.unshare_folder": {"method_arg_classes": ["String", "boolean"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.unshare_folder", "namespace_name": "sharing", "method": "unshareFolder", "has_builder": false, "builder_method": null, "error_ref": "sharing.UnshareFolderError", "url_path": "2/sharing/unshare_folder", "is_method_overloaded": true, "_type": "RouteReference"}, "sharing.update_file_member": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.MemberSelector", "com.dropbox.core.v2.sharing.AccessLevel"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.update_file_member", "namespace_name": "sharing", "method": "updateFileMember", "has_builder": false, "builder_method": null, "error_ref": "sharing.FileMemberActionError", "url_path": "2/sharing/update_file_member", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.update_folder_member": {"method_arg_classes": ["String", "com.dropbox.core.v2.sharing.MemberSelector", "com.dropbox.core.v2.sharing.AccessLevel"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.update_folder_member", "namespace_name": "sharing", "method": "updateFolderMember", "has_builder": false, "builder_method": null, "error_ref": "sharing.UpdateFolderMemberError", "url_path": "2/sharing/update_folder_member", "is_method_overloaded": false, "_type": "RouteReference"}, "sharing.update_folder_policy": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.sharing.DbxUserSharingRequests", "visibility": "PUBLIC", "fq_name": "sharing.update_folder_policy", "namespace_name": "sharing", "method": "updateFolderPolicy", "has_builder": true, "builder_method": "updateFolderPolicyBuilder", "error_ref": "sharing.UpdateFolderPolicyError", "url_path": "2/sharing/update_folder_policy", "is_method_overloaded": false, "_type": "RouteReference"}, "users.features/get_values": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.users.DbxUserUsersRequests", "visibility": "PUBLIC", "fq_name": "users.features/get_values", "namespace_name": "users", "method": "featuresGetValues", "has_builder": false, "builder_method": null, "error_ref": "users.UserFeaturesGetValuesBatchError", "url_path": "2/users/features/get_values", "is_method_overloaded": false, "_type": "RouteReference"}, "users.get_account": {"method_arg_classes": ["String"], "java_class": "com.dropbox.core.v2.users.DbxUserUsersRequests", "visibility": "PUBLIC", "fq_name": "users.get_account", "namespace_name": "users", "method": "getAccount", "has_builder": false, "builder_method": null, "error_ref": "users.GetAccountError", "url_path": "2/users/get_account", "is_method_overloaded": false, "_type": "RouteReference"}, "users.get_account_batch": {"method_arg_classes": ["java.util.List"], "java_class": "com.dropbox.core.v2.users.DbxUserUsersRequests", "visibility": "PUBLIC", "fq_name": "users.get_account_batch", "namespace_name": "users", "method": "getAccountBatch", "has_builder": false, "builder_method": null, "error_ref": "users.GetAccountBatchError", "url_path": "2/users/get_account_batch", "is_method_overloaded": false, "_type": "RouteReference"}, "users.get_current_account": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.users.DbxUserUsersRequests", "visibility": "PUBLIC", "fq_name": "users.get_current_account", "namespace_name": "users", "method": "getCurrentAccount", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/users/get_current_account", "is_method_overloaded": false, "_type": "RouteReference"}, "users.get_space_usage": {"method_arg_classes": [], "java_class": "com.dropbox.core.v2.users.DbxUserUsersRequests", "visibility": "PUBLIC", "fq_name": "users.get_space_usage", "namespace_name": "users", "method": "getSpaceUsage", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/users/get_space_usage", "is_method_overloaded": false, "_type": "RouteReference"}}, "fields": {"account.PhotoSourceArg.base64_data": {"fq_name": "account.PhotoSourceArg.base64_data", "param_name": "base64DataValue", "static_instance": null, "getter_method": "getBase64DataValue", "containing_data_type_ref": "account.PhotoSourceArg", "route_refs": [], "_type": "FieldReference"}, "account.PhotoSourceArg.other": {"fq_name": "account.PhotoSourceArg.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "account.PhotoSourceArg", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoArg.photo": {"fq_name": "account.SetProfilePhotoArg.photo", "param_name": "photo", "static_instance": null, "getter_method": "getPhoto", "containing_data_type_ref": "account.SetProfilePhotoArg", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoError.file_type_error": {"fq_name": "account.SetProfilePhotoError.file_type_error", "param_name": "fileTypeErrorValue", "static_instance": "FILE_TYPE_ERROR", "getter_method": null, "containing_data_type_ref": "account.SetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoError.file_size_error": {"fq_name": "account.SetProfilePhotoError.file_size_error", "param_name": "fileSizeErrorValue", "static_instance": "FILE_SIZE_ERROR", "getter_method": null, "containing_data_type_ref": "account.SetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoError.dimension_error": {"fq_name": "account.SetProfilePhotoError.dimension_error", "param_name": "dimensionErrorValue", "static_instance": "DIMENSION_ERROR", "getter_method": null, "containing_data_type_ref": "account.SetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoError.thumbnail_error": {"fq_name": "account.SetProfilePhotoError.thumbnail_error", "param_name": "thumbnailErrorValue", "static_instance": "THUMBNAIL_ERROR", "getter_method": null, "containing_data_type_ref": "account.SetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoError.transient_error": {"fq_name": "account.SetProfilePhotoError.transient_error", "param_name": "transientErrorValue", "static_instance": "TRANSIENT_ERROR", "getter_method": null, "containing_data_type_ref": "account.SetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoError.other": {"fq_name": "account.SetProfilePhotoError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "account.SetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "account.SetProfilePhotoResult.profile_photo_url": {"fq_name": "account.SetProfilePhotoResult.profile_photo_url", "param_name": "profilePhotoUrl", "static_instance": null, "getter_method": "getProfilePhotoUrl", "containing_data_type_ref": "account.SetProfilePhotoResult", "route_refs": [], "_type": "FieldReference"}, "async.LaunchEmptyResult.async_job_id": {"fq_name": "async.LaunchEmptyResult.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "async.LaunchEmptyResult", "route_refs": [], "_type": "FieldReference"}, "async.LaunchEmptyResult.complete": {"fq_name": "async.LaunchEmptyResult.complete", "param_name": "completeValue", "static_instance": "COMPLETE", "getter_method": null, "containing_data_type_ref": "async.LaunchEmptyResult", "route_refs": [], "_type": "FieldReference"}, "async.LaunchResultBase.async_job_id": {"fq_name": "async.LaunchResultBase.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "async.LaunchResultBase", "route_refs": [], "_type": "FieldReference"}, "async.PollArg.async_job_id": {"fq_name": "async.PollArg.async_job_id", "param_name": "asyncJobId", "static_instance": null, "getter_method": "getAsyncJobId", "containing_data_type_ref": "async.PollArg", "route_refs": [], "_type": "FieldReference"}, "async.PollEmptyResult.in_progress": {"fq_name": "async.PollEmptyResult.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "async.PollEmptyResult", "route_refs": [], "_type": "FieldReference"}, "async.PollEmptyResult.complete": {"fq_name": "async.PollEmptyResult.complete", "param_name": "completeValue", "static_instance": "COMPLETE", "getter_method": null, "containing_data_type_ref": "async.PollEmptyResult", "route_refs": [], "_type": "FieldReference"}, "async.PollError.invalid_async_job_id": {"fq_name": "async.PollError.invalid_async_job_id", "param_name": "invalidAsyncJobIdValue", "static_instance": "INVALID_ASYNC_JOB_ID", "getter_method": null, "containing_data_type_ref": "async.PollError", "route_refs": [], "_type": "FieldReference"}, "async.PollError.internal_error": {"fq_name": "async.PollError.internal_error", "param_name": "internalErrorValue", "static_instance": "INTERNAL_ERROR", "getter_method": null, "containing_data_type_ref": "async.PollError", "route_refs": [], "_type": "FieldReference"}, "async.PollError.other": {"fq_name": "async.PollError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "async.PollError", "route_refs": [], "_type": "FieldReference"}, "async.PollResultBase.in_progress": {"fq_name": "async.PollResultBase.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "async.PollResultBase", "route_refs": [], "_type": "FieldReference"}, "auth.AccessError.invalid_account_type": {"fq_name": "auth.AccessError.invalid_account_type", "param_name": "invalidAccountTypeValue", "static_instance": null, "getter_method": "getInvalidAccountTypeValue", "containing_data_type_ref": "auth.AccessError", "route_refs": [], "_type": "FieldReference"}, "auth.AccessError.paper_access_denied": {"fq_name": "auth.AccessError.paper_access_denied", "param_name": "paperAccessDeniedValue", "static_instance": null, "getter_method": "getPaperAccessDeniedValue", "containing_data_type_ref": "auth.AccessError", "route_refs": [], "_type": "FieldReference"}, "auth.AccessError.other": {"fq_name": "auth.AccessError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "auth.AccessError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.invalid_access_token": {"fq_name": "auth.AuthError.invalid_access_token", "param_name": "invalidAccessTokenValue", "static_instance": "INVALID_ACCESS_TOKEN", "getter_method": null, "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.invalid_select_user": {"fq_name": "auth.AuthError.invalid_select_user", "param_name": "invalidSelectUserValue", "static_instance": "INVALID_SELECT_USER", "getter_method": null, "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.invalid_select_admin": {"fq_name": "auth.AuthError.invalid_select_admin", "param_name": "invalidSelectAdminValue", "static_instance": "INVALID_SELECT_ADMIN", "getter_method": null, "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.user_suspended": {"fq_name": "auth.AuthError.user_suspended", "param_name": "userSuspendedValue", "static_instance": "USER_SUSPENDED", "getter_method": null, "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.expired_access_token": {"fq_name": "auth.AuthError.expired_access_token", "param_name": "expiredAccessTokenValue", "static_instance": "EXPIRED_ACCESS_TOKEN", "getter_method": null, "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.missing_scope": {"fq_name": "auth.AuthError.missing_scope", "param_name": "missingScopeValue", "static_instance": null, "getter_method": "getMissingScopeValue", "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.route_access_denied": {"fq_name": "auth.AuthError.route_access_denied", "param_name": "routeAccessDeniedValue", "static_instance": "ROUTE_ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.AuthError.other": {"fq_name": "auth.AuthError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "auth.AuthError", "route_refs": [], "_type": "FieldReference"}, "auth.InvalidAccountTypeError.endpoint": {"fq_name": "auth.InvalidAccountTypeError.endpoint", "param_name": "endpointValue", "static_instance": "ENDPOINT", "getter_method": null, "containing_data_type_ref": "auth.InvalidAccountTypeError", "route_refs": [], "_type": "FieldReference"}, "auth.InvalidAccountTypeError.feature": {"fq_name": "auth.InvalidAccountTypeError.feature", "param_name": "featureValue", "static_instance": "FEATURE", "getter_method": null, "containing_data_type_ref": "auth.InvalidAccountTypeError", "route_refs": [], "_type": "FieldReference"}, "auth.InvalidAccountTypeError.other": {"fq_name": "auth.InvalidAccountTypeError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "auth.InvalidAccountTypeError", "route_refs": [], "_type": "FieldReference"}, "auth.PaperAccessError.paper_disabled": {"fq_name": "auth.PaperAccessError.paper_disabled", "param_name": "paperDisabledValue", "static_instance": "PAPER_DISABLED", "getter_method": null, "containing_data_type_ref": "auth.PaperAccessError", "route_refs": [], "_type": "FieldReference"}, "auth.PaperAccessError.not_paper_user": {"fq_name": "auth.PaperAccessError.not_paper_user", "param_name": "notPaperUserValue", "static_instance": "NOT_PAPER_USER", "getter_method": null, "containing_data_type_ref": "auth.PaperAccessError", "route_refs": [], "_type": "FieldReference"}, "auth.PaperAccessError.other": {"fq_name": "auth.PaperAccessError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "auth.PaperAccessError", "route_refs": [], "_type": "FieldReference"}, "auth.RateLimitError.reason": {"fq_name": "auth.RateLimitError.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "auth.RateLimitError", "route_refs": [], "_type": "FieldReference"}, "auth.RateLimitError.retry_after": {"fq_name": "auth.RateLimitError.retry_after", "param_name": "retryAfter", "static_instance": null, "getter_method": "getRetryAfter", "containing_data_type_ref": "auth.RateLimitError", "route_refs": [], "_type": "FieldReference"}, "auth.RateLimitReason.too_many_requests": {"fq_name": "auth.RateLimitReason.too_many_requests", "param_name": "tooManyRequestsValue", "static_instance": "TOO_MANY_REQUESTS", "getter_method": null, "containing_data_type_ref": "auth.RateLimitReason", "route_refs": [], "_type": "FieldReference"}, "auth.RateLimitReason.too_many_write_operations": {"fq_name": "auth.RateLimitReason.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "auth.RateLimitReason", "route_refs": [], "_type": "FieldReference"}, "auth.RateLimitReason.other": {"fq_name": "auth.RateLimitReason.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "auth.RateLimitReason", "route_refs": [], "_type": "FieldReference"}, "auth.TokenFromOAuth1Arg.oauth1_token": {"fq_name": "auth.TokenFromOAuth1Arg.oauth1_token", "param_name": "oauth1Token", "static_instance": null, "getter_method": "getOauth1Token", "containing_data_type_ref": "auth.TokenFromOAuth1Arg", "route_refs": [], "_type": "FieldReference"}, "auth.TokenFromOAuth1Arg.oauth1_token_secret": {"fq_name": "auth.TokenFromOAuth1Arg.oauth1_token_secret", "param_name": "oauth1TokenSecret", "static_instance": null, "getter_method": "getOauth1TokenSecret", "containing_data_type_ref": "auth.TokenFromOAuth1Arg", "route_refs": [], "_type": "FieldReference"}, "auth.TokenFromOAuth1Error.invalid_oauth1_token_info": {"fq_name": "auth.TokenFromOAuth1Error.invalid_oauth1_token_info", "param_name": "invalidOauth1TokenInfoValue", "static_instance": "INVALID_OAUTH1_TOKEN_INFO", "getter_method": null, "containing_data_type_ref": "auth.TokenFromOAuth1Error", "route_refs": [], "_type": "FieldReference"}, "auth.TokenFromOAuth1Error.app_id_mismatch": {"fq_name": "auth.TokenFromOAuth1Error.app_id_mismatch", "param_name": "appIdMismatchValue", "static_instance": "APP_ID_MISMATCH", "getter_method": null, "containing_data_type_ref": "auth.TokenFromOAuth1Error", "route_refs": [], "_type": "FieldReference"}, "auth.TokenFromOAuth1Error.other": {"fq_name": "auth.TokenFromOAuth1Error.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "auth.TokenFromOAuth1Error", "route_refs": [], "_type": "FieldReference"}, "auth.TokenFromOAuth1Result.oauth2_token": {"fq_name": "auth.TokenFromOAuth1Result.oauth2_token", "param_name": "oauth2Token", "static_instance": null, "getter_method": "getOauth2Token", "containing_data_type_ref": "auth.TokenFromOAuth1Result", "route_refs": [], "_type": "FieldReference"}, "auth.TokenScopeError.required_scope": {"fq_name": "auth.TokenScopeError.required_scope", "param_name": "requiredScope", "static_instance": null, "getter_method": "getRequiredScope", "containing_data_type_ref": "auth.TokenScopeError", "route_refs": [], "_type": "FieldReference"}, "check.EchoArg.query": {"fq_name": "check.EchoArg.query", "param_name": "query", "static_instance": null, "getter_method": "getQuery", "containing_data_type_ref": "check.EchoArg", "route_refs": ["check.app", "check.user"], "_type": "FieldReference"}, "check.EchoResult.result": {"fq_name": "check.EchoResult.result", "param_name": "result", "static_instance": null, "getter_method": "getResult", "containing_data_type_ref": "check.EchoResult", "route_refs": [], "_type": "FieldReference"}, "common.PathRoot.home": {"fq_name": "common.PathRoot.home", "param_name": "homeValue", "static_instance": "HOME", "getter_method": null, "containing_data_type_ref": "common.PathRoot", "route_refs": [], "_type": "FieldReference"}, "common.PathRoot.root": {"fq_name": "common.PathRoot.root", "param_name": "rootValue", "static_instance": null, "getter_method": "getRootValue", "containing_data_type_ref": "common.PathRoot", "route_refs": [], "_type": "FieldReference"}, "common.PathRoot.namespace_id": {"fq_name": "common.PathRoot.namespace_id", "param_name": "namespaceIdValue", "static_instance": null, "getter_method": "getNamespaceIdValue", "containing_data_type_ref": "common.PathRoot", "route_refs": [], "_type": "FieldReference"}, "common.PathRoot.other": {"fq_name": "common.PathRoot.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "common.PathRoot", "route_refs": [], "_type": "FieldReference"}, "common.PathRootError.invalid_root": {"fq_name": "common.PathRootError.invalid_root", "param_name": "invalidRootValue", "static_instance": null, "getter_method": "getInvalidRootValue", "containing_data_type_ref": "common.PathRootError", "route_refs": [], "_type": "FieldReference"}, "common.PathRootError.no_permission": {"fq_name": "common.PathRootError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "common.PathRootError", "route_refs": [], "_type": "FieldReference"}, "common.PathRootError.other": {"fq_name": "common.PathRootError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "common.PathRootError", "route_refs": [], "_type": "FieldReference"}, "common.RootInfo.root_namespace_id": {"fq_name": "common.RootInfo.root_namespace_id", "param_name": "rootNamespaceId", "static_instance": null, "getter_method": "getRootNamespaceId", "containing_data_type_ref": "common.RootInfo", "route_refs": [], "_type": "FieldReference"}, "common.RootInfo.home_namespace_id": {"fq_name": "common.RootInfo.home_namespace_id", "param_name": "homeNamespaceId", "static_instance": null, "getter_method": "getHomeNamespaceId", "containing_data_type_ref": "common.RootInfo", "route_refs": [], "_type": "FieldReference"}, "common.TeamRootInfo.root_namespace_id": {"fq_name": "common.TeamRootInfo.root_namespace_id", "param_name": "rootNamespaceId", "static_instance": null, "getter_method": "getRootNamespaceId", "containing_data_type_ref": "common.TeamRootInfo", "route_refs": [], "_type": "FieldReference"}, "common.TeamRootInfo.home_namespace_id": {"fq_name": "common.TeamRootInfo.home_namespace_id", "param_name": "homeNamespaceId", "static_instance": null, "getter_method": "getHomeNamespaceId", "containing_data_type_ref": "common.TeamRootInfo", "route_refs": [], "_type": "FieldReference"}, "common.TeamRootInfo.home_path": {"fq_name": "common.TeamRootInfo.home_path", "param_name": "homePath", "static_instance": null, "getter_method": "getHomePath", "containing_data_type_ref": "common.TeamRootInfo", "route_refs": [], "_type": "FieldReference"}, "common.UserRootInfo.root_namespace_id": {"fq_name": "common.UserRootInfo.root_namespace_id", "param_name": "rootNamespaceId", "static_instance": null, "getter_method": "getRootNamespaceId", "containing_data_type_ref": "common.UserRootInfo", "route_refs": [], "_type": "FieldReference"}, "common.UserRootInfo.home_namespace_id": {"fq_name": "common.UserRootInfo.home_namespace_id", "param_name": "homeNamespaceId", "static_instance": null, "getter_method": "getHomeNamespaceId", "containing_data_type_ref": "common.UserRootInfo", "route_refs": [], "_type": "FieldReference"}, "contacts.DeleteManualContactsArg.email_addresses": {"fq_name": "contacts.DeleteManualContactsArg.email_addresses", "param_name": "emailAddresses", "static_instance": null, "getter_method": "getEmailAddresses", "containing_data_type_ref": "contacts.DeleteManualContactsArg", "route_refs": [], "_type": "FieldReference"}, "contacts.DeleteManualContactsError.contacts_not_found": {"fq_name": "contacts.DeleteManualContactsError.contacts_not_found", "param_name": "contactsNotFoundValue", "static_instance": null, "getter_method": "getContactsNotFoundValue", "containing_data_type_ref": "contacts.DeleteManualContactsError", "route_refs": [], "_type": "FieldReference"}, "contacts.DeleteManualContactsError.other": {"fq_name": "contacts.DeleteManualContactsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "contacts.DeleteManualContactsError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesArg.path": {"fq_name": "file_properties.AddPropertiesArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "file_properties.AddPropertiesArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesArg.property_groups": {"fq_name": "file_properties.AddPropertiesArg.property_groups", "param_name": "propertyGroups", "static_instance": null, "getter_method": "getPropertyGroups", "containing_data_type_ref": "file_properties.AddPropertiesArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.template_not_found": {"fq_name": "file_properties.AddPropertiesError.template_not_found", "param_name": "templateNotFoundValue", "static_instance": null, "getter_method": "getTemplateNotFoundValue", "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.restricted_content": {"fq_name": "file_properties.AddPropertiesError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.other": {"fq_name": "file_properties.AddPropertiesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.path": {"fq_name": "file_properties.AddPropertiesError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.unsupported_folder": {"fq_name": "file_properties.AddPropertiesError.unsupported_folder", "param_name": "unsupportedFolderValue", "static_instance": "UNSUPPORTED_FOLDER", "getter_method": null, "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.property_field_too_large": {"fq_name": "file_properties.AddPropertiesError.property_field_too_large", "param_name": "propertyFieldTooLargeValue", "static_instance": "PROPERTY_FIELD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.does_not_fit_template": {"fq_name": "file_properties.AddPropertiesError.does_not_fit_template", "param_name": "doesNotFitTemplateValue", "static_instance": "DOES_NOT_FIT_TEMPLATE", "getter_method": null, "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.duplicate_property_groups": {"fq_name": "file_properties.AddPropertiesError.duplicate_property_groups", "param_name": "duplicatePropertyGroupsValue", "static_instance": "DUPLICATE_PROPERTY_GROUPS", "getter_method": null, "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddPropertiesError.property_group_already_exists": {"fq_name": "file_properties.AddPropertiesError.property_group_already_exists", "param_name": "propertyGroupAlreadyExistsValue", "static_instance": "PROPERTY_GROUP_ALREADY_EXISTS", "getter_method": null, "containing_data_type_ref": "file_properties.AddPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddTemplateArg.name": {"fq_name": "file_properties.AddTemplateArg.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "file_properties.AddTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddTemplateArg.description": {"fq_name": "file_properties.AddTemplateArg.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_properties.AddTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddTemplateArg.fields": {"fq_name": "file_properties.AddTemplateArg.fields", "param_name": "fields", "static_instance": null, "getter_method": "getFields", "containing_data_type_ref": "file_properties.AddTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.AddTemplateResult.template_id": {"fq_name": "file_properties.AddTemplateResult.template_id", "param_name": "templateId", "static_instance": null, "getter_method": "getTemplateId", "containing_data_type_ref": "file_properties.AddTemplateResult", "route_refs": [], "_type": "FieldReference"}, "file_properties.GetTemplateArg.template_id": {"fq_name": "file_properties.GetTemplateArg.template_id", "param_name": "templateId", "static_instance": null, "getter_method": "getTemplateId", "containing_data_type_ref": "file_properties.GetTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.GetTemplateResult.name": {"fq_name": "file_properties.GetTemplateResult.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "file_properties.GetTemplateResult", "route_refs": [], "_type": "FieldReference"}, "file_properties.GetTemplateResult.description": {"fq_name": "file_properties.GetTemplateResult.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_properties.GetTemplateResult", "route_refs": [], "_type": "FieldReference"}, "file_properties.GetTemplateResult.fields": {"fq_name": "file_properties.GetTemplateResult.fields", "param_name": "fields", "static_instance": null, "getter_method": "getFields", "containing_data_type_ref": "file_properties.GetTemplateResult", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.template_not_found": {"fq_name": "file_properties.InvalidPropertyGroupError.template_not_found", "param_name": "templateNotFoundValue", "static_instance": null, "getter_method": "getTemplateNotFoundValue", "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.restricted_content": {"fq_name": "file_properties.InvalidPropertyGroupError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.other": {"fq_name": "file_properties.InvalidPropertyGroupError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.path": {"fq_name": "file_properties.InvalidPropertyGroupError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.unsupported_folder": {"fq_name": "file_properties.InvalidPropertyGroupError.unsupported_folder", "param_name": "unsupportedFolderValue", "static_instance": "UNSUPPORTED_FOLDER", "getter_method": null, "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.property_field_too_large": {"fq_name": "file_properties.InvalidPropertyGroupError.property_field_too_large", "param_name": "propertyFieldTooLargeValue", "static_instance": "PROPERTY_FIELD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.does_not_fit_template": {"fq_name": "file_properties.InvalidPropertyGroupError.does_not_fit_template", "param_name": "doesNotFitTemplateValue", "static_instance": "DOES_NOT_FIT_TEMPLATE", "getter_method": null, "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.InvalidPropertyGroupError.duplicate_property_groups": {"fq_name": "file_properties.InvalidPropertyGroupError.duplicate_property_groups", "param_name": "duplicatePropertyGroupsValue", "static_instance": "DUPLICATE_PROPERTY_GROUPS", "getter_method": null, "containing_data_type_ref": "file_properties.InvalidPropertyGroupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ListTemplateResult.template_ids": {"fq_name": "file_properties.ListTemplateResult.template_ids", "param_name": "templateIds", "static_instance": null, "getter_method": "getTemplateIds", "containing_data_type_ref": "file_properties.ListTemplateResult", "route_refs": [], "_type": "FieldReference"}, "file_properties.LogicalOperator.or_operator": {"fq_name": "file_properties.LogicalOperator.or_operator", "param_name": "orOperatorValue", "static_instance": "OR_OPERATOR", "getter_method": null, "containing_data_type_ref": "file_properties.LogicalOperator", "route_refs": [], "_type": "FieldReference"}, "file_properties.LogicalOperator.other": {"fq_name": "file_properties.LogicalOperator.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.LogicalOperator", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookUpPropertiesError.property_group_not_found": {"fq_name": "file_properties.LookUpPropertiesError.property_group_not_found", "param_name": "propertyGroupNotFoundValue", "static_instance": "PROPERTY_GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_properties.LookUpPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookUpPropertiesError.other": {"fq_name": "file_properties.LookUpPropertiesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.LookUpPropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookupError.malformed_path": {"fq_name": "file_properties.LookupError.malformed_path", "param_name": "malformedPathValue", "static_instance": null, "getter_method": "getMalformedPathValue", "containing_data_type_ref": "file_properties.LookupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookupError.not_found": {"fq_name": "file_properties.LookupError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_properties.LookupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookupError.not_file": {"fq_name": "file_properties.LookupError.not_file", "param_name": "notFileValue", "static_instance": "NOT_FILE", "getter_method": null, "containing_data_type_ref": "file_properties.LookupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookupError.not_folder": {"fq_name": "file_properties.LookupError.not_folder", "param_name": "notFolderValue", "static_instance": "NOT_FOLDER", "getter_method": null, "containing_data_type_ref": "file_properties.LookupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookupError.restricted_content": {"fq_name": "file_properties.LookupError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.LookupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.LookupError.other": {"fq_name": "file_properties.LookupError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.LookupError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ModifyTemplateError.template_not_found": {"fq_name": "file_properties.ModifyTemplateError.template_not_found", "param_name": "templateNotFoundValue", "static_instance": null, "getter_method": "getTemplateNotFoundValue", "containing_data_type_ref": "file_properties.ModifyTemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ModifyTemplateError.restricted_content": {"fq_name": "file_properties.ModifyTemplateError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.ModifyTemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ModifyTemplateError.other": {"fq_name": "file_properties.ModifyTemplateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.ModifyTemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ModifyTemplateError.conflicting_property_names": {"fq_name": "file_properties.ModifyTemplateError.conflicting_property_names", "param_name": "conflictingPropertyNamesValue", "static_instance": "CONFLICTING_PROPERTY_NAMES", "getter_method": null, "containing_data_type_ref": "file_properties.ModifyTemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ModifyTemplateError.too_many_properties": {"fq_name": "file_properties.ModifyTemplateError.too_many_properties", "param_name": "tooManyPropertiesValue", "static_instance": "TOO_MANY_PROPERTIES", "getter_method": null, "containing_data_type_ref": "file_properties.ModifyTemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ModifyTemplateError.too_many_templates": {"fq_name": "file_properties.ModifyTemplateError.too_many_templates", "param_name": "tooManyTemplatesValue", "static_instance": "TOO_MANY_TEMPLATES", "getter_method": null, "containing_data_type_ref": "file_properties.ModifyTemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.ModifyTemplateError.template_attribute_too_large": {"fq_name": "file_properties.ModifyTemplateError.template_attribute_too_large", "param_name": "templateAttributeTooLargeValue", "static_instance": "TEMPLATE_ATTRIBUTE_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "file_properties.ModifyTemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.OverwritePropertyGroupArg.path": {"fq_name": "file_properties.OverwritePropertyGroupArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "file_properties.OverwritePropertyGroupArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.OverwritePropertyGroupArg.property_groups": {"fq_name": "file_properties.OverwritePropertyGroupArg.property_groups", "param_name": "propertyGroups", "static_instance": null, "getter_method": "getPropertyGroups", "containing_data_type_ref": "file_properties.OverwritePropertyGroupArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesError.template_not_found": {"fq_name": "file_properties.PropertiesError.template_not_found", "param_name": "templateNotFoundValue", "static_instance": null, "getter_method": "getTemplateNotFoundValue", "containing_data_type_ref": "file_properties.PropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesError.restricted_content": {"fq_name": "file_properties.PropertiesError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.PropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesError.other": {"fq_name": "file_properties.PropertiesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.PropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesError.path": {"fq_name": "file_properties.PropertiesError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "file_properties.PropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesError.unsupported_folder": {"fq_name": "file_properties.PropertiesError.unsupported_folder", "param_name": "unsupportedFolderValue", "static_instance": "UNSUPPORTED_FOLDER", "getter_method": null, "containing_data_type_ref": "file_properties.PropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchArg.queries": {"fq_name": "file_properties.PropertiesSearchArg.queries", "param_name": "queries", "static_instance": null, "getter_method": "getQueries", "containing_data_type_ref": "file_properties.PropertiesSearchArg", "route_refs": ["file_properties.properties/search"], "_type": "FieldReference"}, "file_properties.PropertiesSearchArg.template_filter": {"fq_name": "file_properties.PropertiesSearchArg.template_filter", "param_name": "templateFilter", "static_instance": null, "getter_method": "getTemplateFilter", "containing_data_type_ref": "file_properties.PropertiesSearchArg", "route_refs": ["file_properties.properties/search"], "_type": "FieldReference"}, "file_properties.PropertiesSearchContinueArg.cursor": {"fq_name": "file_properties.PropertiesSearchContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "file_properties.PropertiesSearchContinueArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchContinueError.reset": {"fq_name": "file_properties.PropertiesSearchContinueError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "file_properties.PropertiesSearchContinueError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchContinueError.other": {"fq_name": "file_properties.PropertiesSearchContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.PropertiesSearchContinueError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchError.property_group_lookup": {"fq_name": "file_properties.PropertiesSearchError.property_group_lookup", "param_name": "propertyGroupLookupValue", "static_instance": null, "getter_method": "getPropertyGroupLookupValue", "containing_data_type_ref": "file_properties.PropertiesSearchError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchError.other": {"fq_name": "file_properties.PropertiesSearchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.PropertiesSearchError", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchMatch.id": {"fq_name": "file_properties.PropertiesSearchMatch.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "file_properties.PropertiesSearchMatch", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchMatch.path": {"fq_name": "file_properties.PropertiesSearchMatch.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "file_properties.PropertiesSearchMatch", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchMatch.is_deleted": {"fq_name": "file_properties.PropertiesSearchMatch.is_deleted", "param_name": "isDeleted", "static_instance": null, "getter_method": "getIsDeleted", "containing_data_type_ref": "file_properties.PropertiesSearchMatch", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchMatch.property_groups": {"fq_name": "file_properties.PropertiesSearchMatch.property_groups", "param_name": "propertyGroups", "static_instance": null, "getter_method": "getPropertyGroups", "containing_data_type_ref": "file_properties.PropertiesSearchMatch", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchMode.field_name": {"fq_name": "file_properties.PropertiesSearchMode.field_name", "param_name": "fieldNameValue", "static_instance": null, "getter_method": "getFieldNameValue", "containing_data_type_ref": "file_properties.PropertiesSearchMode", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchMode.other": {"fq_name": "file_properties.PropertiesSearchMode.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.PropertiesSearchMode", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchQuery.query": {"fq_name": "file_properties.PropertiesSearchQuery.query", "param_name": "query", "static_instance": null, "getter_method": "getQuery", "containing_data_type_ref": "file_properties.PropertiesSearchQuery", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchQuery.mode": {"fq_name": "file_properties.PropertiesSearchQuery.mode", "param_name": "mode", "static_instance": null, "getter_method": "getMode", "containing_data_type_ref": "file_properties.PropertiesSearchQuery", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchQuery.logical_operator": {"fq_name": "file_properties.PropertiesSearchQuery.logical_operator", "param_name": "logicalOperator", "static_instance": null, "getter_method": "getLogicalOperator", "containing_data_type_ref": "file_properties.PropertiesSearchQuery", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchResult.matches": {"fq_name": "file_properties.PropertiesSearchResult.matches", "param_name": "matches", "static_instance": null, "getter_method": "getMatches", "containing_data_type_ref": "file_properties.PropertiesSearchResult", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertiesSearchResult.cursor": {"fq_name": "file_properties.PropertiesSearchResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "file_properties.PropertiesSearchResult", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyField.name": {"fq_name": "file_properties.PropertyField.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "file_properties.PropertyField", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyField.value": {"fq_name": "file_properties.PropertyField.value", "param_name": "value", "static_instance": null, "getter_method": "getValue", "containing_data_type_ref": "file_properties.PropertyField", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyFieldTemplate.name": {"fq_name": "file_properties.PropertyFieldTemplate.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "file_properties.PropertyFieldTemplate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyFieldTemplate.description": {"fq_name": "file_properties.PropertyFieldTemplate.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_properties.PropertyFieldTemplate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyFieldTemplate.type": {"fq_name": "file_properties.PropertyFieldTemplate.type", "param_name": "type", "static_instance": null, "getter_method": "getType", "containing_data_type_ref": "file_properties.PropertyFieldTemplate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroup.template_id": {"fq_name": "file_properties.PropertyGroup.template_id", "param_name": "templateId", "static_instance": null, "getter_method": "getTemplateId", "containing_data_type_ref": "file_properties.PropertyGroup", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroup.fields": {"fq_name": "file_properties.PropertyGroup.fields", "param_name": "fields", "static_instance": null, "getter_method": "getFields", "containing_data_type_ref": "file_properties.PropertyGroup", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroupTemplate.name": {"fq_name": "file_properties.PropertyGroupTemplate.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "file_properties.PropertyGroupTemplate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroupTemplate.description": {"fq_name": "file_properties.PropertyGroupTemplate.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_properties.PropertyGroupTemplate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroupTemplate.fields": {"fq_name": "file_properties.PropertyGroupTemplate.fields", "param_name": "fields", "static_instance": null, "getter_method": "getFields", "containing_data_type_ref": "file_properties.PropertyGroupTemplate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroupUpdate.template_id": {"fq_name": "file_properties.PropertyGroupUpdate.template_id", "param_name": "templateId", "static_instance": null, "getter_method": "getTemplateId", "containing_data_type_ref": "file_properties.PropertyGroupUpdate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroupUpdate.add_or_update_fields": {"fq_name": "file_properties.PropertyGroupUpdate.add_or_update_fields", "param_name": "addOrUpdateFields", "static_instance": null, "getter_method": "getAddOrUpdateFields", "containing_data_type_ref": "file_properties.PropertyGroupUpdate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyGroupUpdate.remove_fields": {"fq_name": "file_properties.PropertyGroupUpdate.remove_fields", "param_name": "removeFields", "static_instance": null, "getter_method": "getRemoveFields", "containing_data_type_ref": "file_properties.PropertyGroupUpdate", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyType.string": {"fq_name": "file_properties.PropertyType.string", "param_name": "stringValue", "static_instance": "STRING", "getter_method": null, "containing_data_type_ref": "file_properties.PropertyType", "route_refs": [], "_type": "FieldReference"}, "file_properties.PropertyType.other": {"fq_name": "file_properties.PropertyType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.PropertyType", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesArg.path": {"fq_name": "file_properties.RemovePropertiesArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "file_properties.RemovePropertiesArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesArg.property_template_ids": {"fq_name": "file_properties.RemovePropertiesArg.property_template_ids", "param_name": "propertyTemplateIds", "static_instance": null, "getter_method": "getPropertyTemplateIds", "containing_data_type_ref": "file_properties.RemovePropertiesArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesError.template_not_found": {"fq_name": "file_properties.RemovePropertiesError.template_not_found", "param_name": "templateNotFoundValue", "static_instance": null, "getter_method": "getTemplateNotFoundValue", "containing_data_type_ref": "file_properties.RemovePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesError.restricted_content": {"fq_name": "file_properties.RemovePropertiesError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.RemovePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesError.other": {"fq_name": "file_properties.RemovePropertiesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.RemovePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesError.path": {"fq_name": "file_properties.RemovePropertiesError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "file_properties.RemovePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesError.unsupported_folder": {"fq_name": "file_properties.RemovePropertiesError.unsupported_folder", "param_name": "unsupportedFolderValue", "static_instance": "UNSUPPORTED_FOLDER", "getter_method": null, "containing_data_type_ref": "file_properties.RemovePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemovePropertiesError.property_group_lookup": {"fq_name": "file_properties.RemovePropertiesError.property_group_lookup", "param_name": "propertyGroupLookupValue", "static_instance": null, "getter_method": "getPropertyGroupLookupValue", "containing_data_type_ref": "file_properties.RemovePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.RemoveTemplateArg.template_id": {"fq_name": "file_properties.RemoveTemplateArg.template_id", "param_name": "templateId", "static_instance": null, "getter_method": "getTemplateId", "containing_data_type_ref": "file_properties.RemoveTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateError.template_not_found": {"fq_name": "file_properties.TemplateError.template_not_found", "param_name": "templateNotFoundValue", "static_instance": null, "getter_method": "getTemplateNotFoundValue", "containing_data_type_ref": "file_properties.TemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateError.restricted_content": {"fq_name": "file_properties.TemplateError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateError.other": {"fq_name": "file_properties.TemplateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateError", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateFilter.filter_some": {"fq_name": "file_properties.TemplateFilter.filter_some", "param_name": "filterSomeValue", "static_instance": null, "getter_method": "getFilterSomeValue", "containing_data_type_ref": "file_properties.TemplateFilter", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateFilter.other": {"fq_name": "file_properties.TemplateFilter.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateFilter", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateFilter.filter_none": {"fq_name": "file_properties.TemplateFilter.filter_none", "param_name": "filterNoneValue", "static_instance": "FILTER_NONE", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateFilter", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateFilterBase.filter_some": {"fq_name": "file_properties.TemplateFilterBase.filter_some", "param_name": "filterSomeValue", "static_instance": null, "getter_method": "getFilterSomeValue", "containing_data_type_ref": "file_properties.TemplateFilterBase", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateFilterBase.other": {"fq_name": "file_properties.TemplateFilterBase.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateFilterBase", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateOwnerType.user": {"fq_name": "file_properties.TemplateOwnerType.user", "param_name": "userValue", "static_instance": "USER", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateOwnerType", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateOwnerType.team": {"fq_name": "file_properties.TemplateOwnerType.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateOwnerType", "route_refs": [], "_type": "FieldReference"}, "file_properties.TemplateOwnerType.other": {"fq_name": "file_properties.TemplateOwnerType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.TemplateOwnerType", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesArg.path": {"fq_name": "file_properties.UpdatePropertiesArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "file_properties.UpdatePropertiesArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesArg.update_property_groups": {"fq_name": "file_properties.UpdatePropertiesArg.update_property_groups", "param_name": "updatePropertyGroups", "static_instance": null, "getter_method": "getUpdatePropertyGroups", "containing_data_type_ref": "file_properties.UpdatePropertiesArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.template_not_found": {"fq_name": "file_properties.UpdatePropertiesError.template_not_found", "param_name": "templateNotFoundValue", "static_instance": null, "getter_method": "getTemplateNotFoundValue", "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.restricted_content": {"fq_name": "file_properties.UpdatePropertiesError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.other": {"fq_name": "file_properties.UpdatePropertiesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.path": {"fq_name": "file_properties.UpdatePropertiesError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.unsupported_folder": {"fq_name": "file_properties.UpdatePropertiesError.unsupported_folder", "param_name": "unsupportedFolderValue", "static_instance": "UNSUPPORTED_FOLDER", "getter_method": null, "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.property_field_too_large": {"fq_name": "file_properties.UpdatePropertiesError.property_field_too_large", "param_name": "propertyFieldTooLargeValue", "static_instance": "PROPERTY_FIELD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.does_not_fit_template": {"fq_name": "file_properties.UpdatePropertiesError.does_not_fit_template", "param_name": "doesNotFitTemplateValue", "static_instance": "DOES_NOT_FIT_TEMPLATE", "getter_method": null, "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.duplicate_property_groups": {"fq_name": "file_properties.UpdatePropertiesError.duplicate_property_groups", "param_name": "duplicatePropertyGroupsValue", "static_instance": "DUPLICATE_PROPERTY_GROUPS", "getter_method": null, "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdatePropertiesError.property_group_lookup": {"fq_name": "file_properties.UpdatePropertiesError.property_group_lookup", "param_name": "propertyGroupLookupValue", "static_instance": null, "getter_method": "getPropertyGroupLookupValue", "containing_data_type_ref": "file_properties.UpdatePropertiesError", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdateTemplateArg.template_id": {"fq_name": "file_properties.UpdateTemplateArg.template_id", "param_name": "templateId", "static_instance": null, "getter_method": "getTemplateId", "containing_data_type_ref": "file_properties.UpdateTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdateTemplateArg.name": {"fq_name": "file_properties.UpdateTemplateArg.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "file_properties.UpdateTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdateTemplateArg.description": {"fq_name": "file_properties.UpdateTemplateArg.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_properties.UpdateTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdateTemplateArg.add_fields": {"fq_name": "file_properties.UpdateTemplateArg.add_fields", "param_name": "addFields", "static_instance": null, "getter_method": "getAddFields", "containing_data_type_ref": "file_properties.UpdateTemplateArg", "route_refs": [], "_type": "FieldReference"}, "file_properties.UpdateTemplateResult.template_id": {"fq_name": "file_properties.UpdateTemplateResult.template_id", "param_name": "templateId", "static_instance": null, "getter_method": "getTemplateId", "containing_data_type_ref": "file_properties.UpdateTemplateResult", "route_refs": [], "_type": "FieldReference"}, "file_requests.CountFileRequestsError.disabled_for_team": {"fq_name": "file_requests.CountFileRequestsError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.CountFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CountFileRequestsError.other": {"fq_name": "file_requests.CountFileRequestsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.CountFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CountFileRequestsResult.file_request_count": {"fq_name": "file_requests.CountFileRequestsResult.file_request_count", "param_name": "fileRequestCount", "static_instance": null, "getter_method": "getFileRequestCount", "containing_data_type_ref": "file_requests.CountFileRequestsResult", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestArgs.title": {"fq_name": "file_requests.CreateFileRequestArgs.title", "param_name": "title", "static_instance": null, "getter_method": "getTitle", "containing_data_type_ref": "file_requests.CreateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestArgs.destination": {"fq_name": "file_requests.CreateFileRequestArgs.destination", "param_name": "destination", "static_instance": null, "getter_method": "getDestination", "containing_data_type_ref": "file_requests.CreateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestArgs.deadline": {"fq_name": "file_requests.CreateFileRequestArgs.deadline", "param_name": "deadline", "static_instance": null, "getter_method": "getDeadline", "containing_data_type_ref": "file_requests.CreateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestArgs.open": {"fq_name": "file_requests.CreateFileRequestArgs.open", "param_name": "open", "static_instance": null, "getter_method": "getOpen", "containing_data_type_ref": "file_requests.CreateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestArgs.description": {"fq_name": "file_requests.CreateFileRequestArgs.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_requests.CreateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.disabled_for_team": {"fq_name": "file_requests.CreateFileRequestError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.other": {"fq_name": "file_requests.CreateFileRequestError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.not_found": {"fq_name": "file_requests.CreateFileRequestError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.not_a_folder": {"fq_name": "file_requests.CreateFileRequestError.not_a_folder", "param_name": "notAFolderValue", "static_instance": "NOT_A_FOLDER", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.app_lacks_access": {"fq_name": "file_requests.CreateFileRequestError.app_lacks_access", "param_name": "appLacksAccessValue", "static_instance": "APP_LACKS_ACCESS", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.no_permission": {"fq_name": "file_requests.CreateFileRequestError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.email_unverified": {"fq_name": "file_requests.CreateFileRequestError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.validation_error": {"fq_name": "file_requests.CreateFileRequestError.validation_error", "param_name": "validationErrorValue", "static_instance": "VALIDATION_ERROR", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.invalid_location": {"fq_name": "file_requests.CreateFileRequestError.invalid_location", "param_name": "invalidLocationValue", "static_instance": "INVALID_LOCATION", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.CreateFileRequestError.rate_limit": {"fq_name": "file_requests.CreateFileRequestError.rate_limit", "param_name": "rateLimitValue", "static_instance": "RATE_LIMIT", "getter_method": null, "containing_data_type_ref": "file_requests.CreateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.disabled_for_team": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.other": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.not_found": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.not_a_folder": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.not_a_folder", "param_name": "notAFolderValue", "static_instance": "NOT_A_FOLDER", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.app_lacks_access": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.app_lacks_access", "param_name": "appLacksAccessValue", "static_instance": "APP_LACKS_ACCESS", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.no_permission": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.email_unverified": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsError.validation_error": {"fq_name": "file_requests.DeleteAllClosedFileRequestsError.validation_error", "param_name": "validationErrorValue", "static_instance": "VALIDATION_ERROR", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteAllClosedFileRequestsResult.file_requests": {"fq_name": "file_requests.DeleteAllClosedFileRequestsResult.file_requests", "param_name": "fileRequests", "static_instance": null, "getter_method": "getFileRequests", "containing_data_type_ref": "file_requests.DeleteAllClosedFileRequestsResult", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestArgs.ids": {"fq_name": "file_requests.DeleteFileRequestArgs.ids", "param_name": "ids", "static_instance": null, "getter_method": "getIds", "containing_data_type_ref": "file_requests.DeleteFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.disabled_for_team": {"fq_name": "file_requests.DeleteFileRequestError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.other": {"fq_name": "file_requests.DeleteFileRequestError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.not_found": {"fq_name": "file_requests.DeleteFileRequestError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.not_a_folder": {"fq_name": "file_requests.DeleteFileRequestError.not_a_folder", "param_name": "notAFolderValue", "static_instance": "NOT_A_FOLDER", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.app_lacks_access": {"fq_name": "file_requests.DeleteFileRequestError.app_lacks_access", "param_name": "appLacksAccessValue", "static_instance": "APP_LACKS_ACCESS", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.no_permission": {"fq_name": "file_requests.DeleteFileRequestError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.email_unverified": {"fq_name": "file_requests.DeleteFileRequestError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.validation_error": {"fq_name": "file_requests.DeleteFileRequestError.validation_error", "param_name": "validationErrorValue", "static_instance": "VALIDATION_ERROR", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestError.file_request_open": {"fq_name": "file_requests.DeleteFileRequestError.file_request_open", "param_name": "fileRequestOpenValue", "static_instance": "FILE_REQUEST_OPEN", "getter_method": null, "containing_data_type_ref": "file_requests.DeleteFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.DeleteFileRequestsResult.file_requests": {"fq_name": "file_requests.DeleteFileRequestsResult.file_requests", "param_name": "fileRequests", "static_instance": null, "getter_method": "getFileRequests", "containing_data_type_ref": "file_requests.DeleteFileRequestsResult", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.id": {"fq_name": "file_requests.FileRequest.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.url": {"fq_name": "file_requests.FileRequest.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.title": {"fq_name": "file_requests.FileRequest.title", "param_name": "title", "static_instance": null, "getter_method": "getTitle", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.created": {"fq_name": "file_requests.FileRequest.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.is_open": {"fq_name": "file_requests.FileRequest.is_open", "param_name": "isOpen", "static_instance": null, "getter_method": "getIsOpen", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.file_count": {"fq_name": "file_requests.FileRequest.file_count", "param_name": "fileCount", "static_instance": null, "getter_method": "getFileCount", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.destination": {"fq_name": "file_requests.FileRequest.destination", "param_name": "destination", "static_instance": null, "getter_method": "getDestination", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.deadline": {"fq_name": "file_requests.FileRequest.deadline", "param_name": "deadline", "static_instance": null, "getter_method": "getDeadline", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequest.description": {"fq_name": "file_requests.FileRequest.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_requests.FileRequest", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestDeadline.deadline": {"fq_name": "file_requests.FileRequestDeadline.deadline", "param_name": "deadline", "static_instance": null, "getter_method": "getDeadline", "containing_data_type_ref": "file_requests.FileRequestDeadline", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestDeadline.allow_late_uploads": {"fq_name": "file_requests.FileRequestDeadline.allow_late_uploads", "param_name": "allowLateUploads", "static_instance": null, "getter_method": "getAllowLateUploads", "containing_data_type_ref": "file_requests.FileRequestDeadline", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.disabled_for_team": {"fq_name": "file_requests.FileRequestError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.other": {"fq_name": "file_requests.FileRequestError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.not_found": {"fq_name": "file_requests.FileRequestError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.not_a_folder": {"fq_name": "file_requests.FileRequestError.not_a_folder", "param_name": "notAFolderValue", "static_instance": "NOT_A_FOLDER", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.app_lacks_access": {"fq_name": "file_requests.FileRequestError.app_lacks_access", "param_name": "appLacksAccessValue", "static_instance": "APP_LACKS_ACCESS", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.no_permission": {"fq_name": "file_requests.FileRequestError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.email_unverified": {"fq_name": "file_requests.FileRequestError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.FileRequestError.validation_error": {"fq_name": "file_requests.FileRequestError.validation_error", "param_name": "validationErrorValue", "static_instance": "VALIDATION_ERROR", "getter_method": null, "containing_data_type_ref": "file_requests.FileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GeneralFileRequestsError.disabled_for_team": {"fq_name": "file_requests.GeneralFileRequestsError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.GeneralFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GeneralFileRequestsError.other": {"fq_name": "file_requests.GeneralFileRequestsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.GeneralFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestArgs.id": {"fq_name": "file_requests.GetFileRequestArgs.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "file_requests.GetFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.disabled_for_team": {"fq_name": "file_requests.GetFileRequestError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.other": {"fq_name": "file_requests.GetFileRequestError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.not_found": {"fq_name": "file_requests.GetFileRequestError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.not_a_folder": {"fq_name": "file_requests.GetFileRequestError.not_a_folder", "param_name": "notAFolderValue", "static_instance": "NOT_A_FOLDER", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.app_lacks_access": {"fq_name": "file_requests.GetFileRequestError.app_lacks_access", "param_name": "appLacksAccessValue", "static_instance": "APP_LACKS_ACCESS", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.no_permission": {"fq_name": "file_requests.GetFileRequestError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.email_unverified": {"fq_name": "file_requests.GetFileRequestError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GetFileRequestError.validation_error": {"fq_name": "file_requests.GetFileRequestError.validation_error", "param_name": "validationErrorValue", "static_instance": "VALIDATION_ERROR", "getter_method": null, "containing_data_type_ref": "file_requests.GetFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.GracePeriod.one_day": {"fq_name": "file_requests.GracePeriod.one_day", "param_name": "oneDayValue", "static_instance": "ONE_DAY", "getter_method": null, "containing_data_type_ref": "file_requests.GracePeriod", "route_refs": [], "_type": "FieldReference"}, "file_requests.GracePeriod.two_days": {"fq_name": "file_requests.GracePeriod.two_days", "param_name": "twoDaysValue", "static_instance": "TWO_DAYS", "getter_method": null, "containing_data_type_ref": "file_requests.GracePeriod", "route_refs": [], "_type": "FieldReference"}, "file_requests.GracePeriod.seven_days": {"fq_name": "file_requests.GracePeriod.seven_days", "param_name": "sevenDaysValue", "static_instance": "SEVEN_DAYS", "getter_method": null, "containing_data_type_ref": "file_requests.GracePeriod", "route_refs": [], "_type": "FieldReference"}, "file_requests.GracePeriod.thirty_days": {"fq_name": "file_requests.GracePeriod.thirty_days", "param_name": "thirtyDaysValue", "static_instance": "THIRTY_DAYS", "getter_method": null, "containing_data_type_ref": "file_requests.GracePeriod", "route_refs": [], "_type": "FieldReference"}, "file_requests.GracePeriod.always": {"fq_name": "file_requests.GracePeriod.always", "param_name": "alwaysValue", "static_instance": "ALWAYS", "getter_method": null, "containing_data_type_ref": "file_requests.GracePeriod", "route_refs": [], "_type": "FieldReference"}, "file_requests.GracePeriod.other": {"fq_name": "file_requests.GracePeriod.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.GracePeriod", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsArg.limit": {"fq_name": "file_requests.ListFileRequestsArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "file_requests.ListFileRequestsArg", "route_refs": ["file_requests.list_v2"], "_type": "FieldReference"}, "file_requests.ListFileRequestsContinueArg.cursor": {"fq_name": "file_requests.ListFileRequestsContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "file_requests.ListFileRequestsContinueArg", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsContinueError.disabled_for_team": {"fq_name": "file_requests.ListFileRequestsContinueError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.ListFileRequestsContinueError", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsContinueError.other": {"fq_name": "file_requests.ListFileRequestsContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.ListFileRequestsContinueError", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsContinueError.invalid_cursor": {"fq_name": "file_requests.ListFileRequestsContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "file_requests.ListFileRequestsContinueError", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsError.disabled_for_team": {"fq_name": "file_requests.ListFileRequestsError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.ListFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsError.other": {"fq_name": "file_requests.ListFileRequestsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.ListFileRequestsError", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsResult.file_requests": {"fq_name": "file_requests.ListFileRequestsResult.file_requests", "param_name": "fileRequests", "static_instance": null, "getter_method": "getFileRequests", "containing_data_type_ref": "file_requests.ListFileRequestsResult", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsV2Result.file_requests": {"fq_name": "file_requests.ListFileRequestsV2Result.file_requests", "param_name": "fileRequests", "static_instance": null, "getter_method": "getFileRequests", "containing_data_type_ref": "file_requests.ListFileRequestsV2Result", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsV2Result.cursor": {"fq_name": "file_requests.ListFileRequestsV2Result.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "file_requests.ListFileRequestsV2Result", "route_refs": [], "_type": "FieldReference"}, "file_requests.ListFileRequestsV2Result.has_more": {"fq_name": "file_requests.ListFileRequestsV2Result.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "file_requests.ListFileRequestsV2Result", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestArgs.id": {"fq_name": "file_requests.UpdateFileRequestArgs.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "file_requests.UpdateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestArgs.title": {"fq_name": "file_requests.UpdateFileRequestArgs.title", "param_name": "title", "static_instance": null, "getter_method": "getTitle", "containing_data_type_ref": "file_requests.UpdateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestArgs.destination": {"fq_name": "file_requests.UpdateFileRequestArgs.destination", "param_name": "destination", "static_instance": null, "getter_method": "getDestination", "containing_data_type_ref": "file_requests.UpdateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestArgs.deadline": {"fq_name": "file_requests.UpdateFileRequestArgs.deadline", "param_name": "deadline", "static_instance": null, "getter_method": "getDeadline", "containing_data_type_ref": "file_requests.UpdateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestArgs.open": {"fq_name": "file_requests.UpdateFileRequestArgs.open", "param_name": "open", "static_instance": null, "getter_method": "getOpen", "containing_data_type_ref": "file_requests.UpdateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestArgs.description": {"fq_name": "file_requests.UpdateFileRequestArgs.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "file_requests.UpdateFileRequestArgs", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestDeadline.no_update": {"fq_name": "file_requests.UpdateFileRequestDeadline.no_update", "param_name": "noUpdateValue", "static_instance": "NO_UPDATE", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestDeadline", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestDeadline.update": {"fq_name": "file_requests.UpdateFileRequestDeadline.update", "param_name": "updateValue", "static_instance": null, "getter_method": "getUpdateValue", "containing_data_type_ref": "file_requests.UpdateFileRequestDeadline", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestDeadline.other": {"fq_name": "file_requests.UpdateFileRequestDeadline.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestDeadline", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.disabled_for_team": {"fq_name": "file_requests.UpdateFileRequestError.disabled_for_team", "param_name": "disabledForTeamValue", "static_instance": "DISABLED_FOR_TEAM", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.other": {"fq_name": "file_requests.UpdateFileRequestError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.not_found": {"fq_name": "file_requests.UpdateFileRequestError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.not_a_folder": {"fq_name": "file_requests.UpdateFileRequestError.not_a_folder", "param_name": "notAFolderValue", "static_instance": "NOT_A_FOLDER", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.app_lacks_access": {"fq_name": "file_requests.UpdateFileRequestError.app_lacks_access", "param_name": "appLacksAccessValue", "static_instance": "APP_LACKS_ACCESS", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.no_permission": {"fq_name": "file_requests.UpdateFileRequestError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.email_unverified": {"fq_name": "file_requests.UpdateFileRequestError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "file_requests.UpdateFileRequestError.validation_error": {"fq_name": "file_requests.UpdateFileRequestError.validation_error", "param_name": "validationErrorValue", "static_instance": "VALIDATION_ERROR", "getter_method": null, "containing_data_type_ref": "file_requests.UpdateFileRequestError", "route_refs": [], "_type": "FieldReference"}, "files.AddTagArg.path": {"fq_name": "files.AddTagArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.AddTagArg", "route_refs": [], "_type": "FieldReference"}, "files.AddTagArg.tag_text": {"fq_name": "files.AddTagArg.tag_text", "param_name": "tagText", "static_instance": null, "getter_method": "getTagText", "containing_data_type_ref": "files.AddTagArg", "route_refs": [], "_type": "FieldReference"}, "files.AddTagError.path": {"fq_name": "files.AddTagError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.AddTagError", "route_refs": [], "_type": "FieldReference"}, "files.AddTagError.other": {"fq_name": "files.AddTagError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.AddTagError", "route_refs": [], "_type": "FieldReference"}, "files.AddTagError.too_many_tags": {"fq_name": "files.AddTagError.too_many_tags", "param_name": "tooManyTagsValue", "static_instance": "TOO_MANY_TAGS", "getter_method": null, "containing_data_type_ref": "files.AddTagError", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataArg.path": {"fq_name": "files.AlphaGetMetadataArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.AlphaGetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataArg.include_media_info": {"fq_name": "files.AlphaGetMetadataArg.include_media_info", "param_name": "includeMediaInfo", "static_instance": null, "getter_method": "getIncludeMediaInfo", "containing_data_type_ref": "files.AlphaGetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataArg.include_deleted": {"fq_name": "files.AlphaGetMetadataArg.include_deleted", "param_name": "includeDeleted", "static_instance": null, "getter_method": "getIncludeDeleted", "containing_data_type_ref": "files.AlphaGetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataArg.include_has_explicit_shared_members": {"fq_name": "files.AlphaGetMetadataArg.include_has_explicit_shared_members", "param_name": "includeHasExplicitSharedMembers", "static_instance": null, "getter_method": "getIncludeHasExplicitSharedMembers", "containing_data_type_ref": "files.AlphaGetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataArg.include_property_groups": {"fq_name": "files.AlphaGetMetadataArg.include_property_groups", "param_name": "includePropertyGroups", "static_instance": null, "getter_method": "getIncludePropertyGroups", "containing_data_type_ref": "files.AlphaGetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataArg.include_property_templates": {"fq_name": "files.AlphaGetMetadataArg.include_property_templates", "param_name": "includePropertyTemplates", "static_instance": null, "getter_method": "getIncludePropertyTemplates", "containing_data_type_ref": "files.AlphaGetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataError.path": {"fq_name": "files.AlphaGetMetadataError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.AlphaGetMetadataError", "route_refs": [], "_type": "FieldReference"}, "files.AlphaGetMetadataError.properties_error": {"fq_name": "files.AlphaGetMetadataError.properties_error", "param_name": "propertiesErrorValue", "static_instance": null, "getter_method": "getPropertiesErrorValue", "containing_data_type_ref": "files.AlphaGetMetadataError", "route_refs": [], "_type": "FieldReference"}, "files.BaseTagError.path": {"fq_name": "files.BaseTagError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.BaseTagError", "route_refs": [], "_type": "FieldReference"}, "files.BaseTagError.other": {"fq_name": "files.BaseTagError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.BaseTagError", "route_refs": [], "_type": "FieldReference"}, "files.CommitInfo.path": {"fq_name": "files.CommitInfo.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.CommitInfo", "route_refs": [], "_type": "FieldReference"}, "files.CommitInfo.mode": {"fq_name": "files.CommitInfo.mode", "param_name": "mode", "static_instance": null, "getter_method": "getMode", "containing_data_type_ref": "files.CommitInfo", "route_refs": [], "_type": "FieldReference"}, "files.CommitInfo.autorename": {"fq_name": "files.CommitInfo.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.CommitInfo", "route_refs": [], "_type": "FieldReference"}, "files.CommitInfo.client_modified": {"fq_name": "files.CommitInfo.client_modified", "param_name": "clientModified", "static_instance": null, "getter_method": "getClientModified", "containing_data_type_ref": "files.CommitInfo", "route_refs": [], "_type": "FieldReference"}, "files.CommitInfo.mute": {"fq_name": "files.CommitInfo.mute", "param_name": "mute", "static_instance": null, "getter_method": "getMute", "containing_data_type_ref": "files.CommitInfo", "route_refs": [], "_type": "FieldReference"}, "files.CommitInfo.property_groups": {"fq_name": "files.CommitInfo.property_groups", "param_name": "propertyGroups", "static_instance": null, "getter_method": "getPropertyGroups", "containing_data_type_ref": "files.CommitInfo", "route_refs": [], "_type": "FieldReference"}, "files.CommitInfo.strict_conflict": {"fq_name": "files.CommitInfo.strict_conflict", "param_name": "strictConflict", "static_instance": null, "getter_method": "getStrictConflict", "containing_data_type_ref": "files.CommitInfo", "route_refs": [], "_type": "FieldReference"}, "files.ContentSyncSetting.id": {"fq_name": "files.ContentSyncSetting.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "files.ContentSyncSetting", "route_refs": [], "_type": "FieldReference"}, "files.ContentSyncSetting.sync_setting": {"fq_name": "files.ContentSyncSetting.sync_setting", "param_name": "syncSetting", "static_instance": null, "getter_method": "getSyncSetting", "containing_data_type_ref": "files.ContentSyncSetting", "route_refs": [], "_type": "FieldReference"}, "files.ContentSyncSettingArg.id": {"fq_name": "files.ContentSyncSettingArg.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "files.ContentSyncSettingArg", "route_refs": [], "_type": "FieldReference"}, "files.ContentSyncSettingArg.sync_setting": {"fq_name": "files.ContentSyncSettingArg.sync_setting", "param_name": "syncSetting", "static_instance": null, "getter_method": "getSyncSetting", "containing_data_type_ref": "files.ContentSyncSettingArg", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderArg.path": {"fq_name": "files.CreateFolderArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.CreateFolderArg", "route_refs": ["files.create_folder", "files.create_folder_v2"], "_type": "FieldReference"}, "files.CreateFolderArg.autorename": {"fq_name": "files.CreateFolderArg.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.CreateFolderArg", "route_refs": ["files.create_folder", "files.create_folder_v2"], "_type": "FieldReference"}, "files.CreateFolderBatchArg.paths": {"fq_name": "files.CreateFolderBatchArg.paths", "param_name": "paths", "static_instance": null, "getter_method": "getPaths", "containing_data_type_ref": "files.CreateFolderBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchArg.autorename": {"fq_name": "files.CreateFolderBatchArg.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.CreateFolderBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchArg.force_async": {"fq_name": "files.CreateFolderBatchArg.force_async", "param_name": "forceAsync", "static_instance": null, "getter_method": "getForceAsync", "containing_data_type_ref": "files.CreateFolderBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchError.too_many_files": {"fq_name": "files.CreateFolderBatchError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.CreateFolderBatchError", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchError.other": {"fq_name": "files.CreateFolderBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.CreateFolderBatchError", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchJobStatus.in_progress": {"fq_name": "files.CreateFolderBatchJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.CreateFolderBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchJobStatus.complete": {"fq_name": "files.CreateFolderBatchJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.CreateFolderBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchJobStatus.failed": {"fq_name": "files.CreateFolderBatchJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "files.CreateFolderBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchJobStatus.other": {"fq_name": "files.CreateFolderBatchJobStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.CreateFolderBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchLaunch.async_job_id": {"fq_name": "files.CreateFolderBatchLaunch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "files.CreateFolderBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchLaunch.complete": {"fq_name": "files.CreateFolderBatchLaunch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.CreateFolderBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchLaunch.other": {"fq_name": "files.CreateFolderBatchLaunch.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.CreateFolderBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchResult.entries": {"fq_name": "files.CreateFolderBatchResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.CreateFolderBatchResult", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchResultEntry.success": {"fq_name": "files.CreateFolderBatchResultEntry.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "files.CreateFolderBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderBatchResultEntry.failure": {"fq_name": "files.CreateFolderBatchResultEntry.failure", "param_name": "failureValue", "static_instance": null, "getter_method": "getFailureValue", "containing_data_type_ref": "files.CreateFolderBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderEntryError.path": {"fq_name": "files.CreateFolderEntryError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.CreateFolderEntryError", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderEntryError.other": {"fq_name": "files.CreateFolderEntryError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.CreateFolderEntryError", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderEntryResult.metadata": {"fq_name": "files.CreateFolderEntryResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.CreateFolderEntryResult", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderError.path": {"fq_name": "files.CreateFolderError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.CreateFolderError", "route_refs": [], "_type": "FieldReference"}, "files.CreateFolderResult.metadata": {"fq_name": "files.CreateFolderResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.CreateFolderResult", "route_refs": [], "_type": "FieldReference"}, "files.DeleteArg.path": {"fq_name": "files.DeleteArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.DeleteArg", "route_refs": ["files.delete", "files.delete_v2", "files.permanently_delete"], "_type": "FieldReference"}, "files.DeleteArg.parent_rev": {"fq_name": "files.DeleteArg.parent_rev", "param_name": "parentRev", "static_instance": null, "getter_method": "getParentRev", "containing_data_type_ref": "files.DeleteArg", "route_refs": ["files.delete", "files.delete_v2", "files.permanently_delete"], "_type": "FieldReference"}, "files.DeleteBatchArg.entries": {"fq_name": "files.DeleteBatchArg.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.DeleteBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchError.too_many_write_operations": {"fq_name": "files.DeleteBatchError.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "files.DeleteBatchError", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchError.other": {"fq_name": "files.DeleteBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.DeleteBatchError", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchJobStatus.in_progress": {"fq_name": "files.DeleteBatchJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.DeleteBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchJobStatus.complete": {"fq_name": "files.DeleteBatchJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.DeleteBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchJobStatus.failed": {"fq_name": "files.DeleteBatchJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "files.DeleteBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchJobStatus.other": {"fq_name": "files.DeleteBatchJobStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.DeleteBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchLaunch.async_job_id": {"fq_name": "files.DeleteBatchLaunch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "files.DeleteBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchLaunch.complete": {"fq_name": "files.DeleteBatchLaunch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.DeleteBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchLaunch.other": {"fq_name": "files.DeleteBatchLaunch.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.DeleteBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchResult.entries": {"fq_name": "files.DeleteBatchResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.DeleteBatchResult", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchResultData.metadata": {"fq_name": "files.DeleteBatchResultData.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.DeleteBatchResultData", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchResultEntry.success": {"fq_name": "files.DeleteBatchResultEntry.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "files.DeleteBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.DeleteBatchResultEntry.failure": {"fq_name": "files.DeleteBatchResultEntry.failure", "param_name": "failureValue", "static_instance": null, "getter_method": "getFailureValue", "containing_data_type_ref": "files.DeleteBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.DeleteError.path_lookup": {"fq_name": "files.DeleteError.path_lookup", "param_name": "pathLookupValue", "static_instance": null, "getter_method": "getPathLookupValue", "containing_data_type_ref": "files.DeleteError", "route_refs": [], "_type": "FieldReference"}, "files.DeleteError.path_write": {"fq_name": "files.DeleteError.path_write", "param_name": "pathWriteValue", "static_instance": null, "getter_method": "getPathWriteValue", "containing_data_type_ref": "files.DeleteError", "route_refs": [], "_type": "FieldReference"}, "files.DeleteError.too_many_write_operations": {"fq_name": "files.DeleteError.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "files.DeleteError", "route_refs": [], "_type": "FieldReference"}, "files.DeleteError.too_many_files": {"fq_name": "files.DeleteError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.DeleteError", "route_refs": [], "_type": "FieldReference"}, "files.DeleteError.other": {"fq_name": "files.DeleteError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.DeleteError", "route_refs": [], "_type": "FieldReference"}, "files.DeleteResult.metadata": {"fq_name": "files.DeleteResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.DeleteResult", "route_refs": [], "_type": "FieldReference"}, "files.DeletedMetadata.name": {"fq_name": "files.DeletedMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "files.DeletedMetadata", "route_refs": [], "_type": "FieldReference"}, "files.DeletedMetadata.path_lower": {"fq_name": "files.DeletedMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "files.DeletedMetadata", "route_refs": [], "_type": "FieldReference"}, "files.DeletedMetadata.path_display": {"fq_name": "files.DeletedMetadata.path_display", "param_name": "pathDisplay", "static_instance": null, "getter_method": "getPathDisplay", "containing_data_type_ref": "files.DeletedMetadata", "route_refs": [], "_type": "FieldReference"}, "files.DeletedMetadata.parent_shared_folder_id": {"fq_name": "files.DeletedMetadata.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "files.DeletedMetadata", "route_refs": [], "_type": "FieldReference"}, "files.DeletedMetadata.preview_url": {"fq_name": "files.DeletedMetadata.preview_url", "param_name": "previewUrl", "static_instance": null, "getter_method": "getPreviewUrl", "containing_data_type_ref": "files.DeletedMetadata", "route_refs": [], "_type": "FieldReference"}, "files.Dimensions.height": {"fq_name": "files.Dimensions.height", "param_name": "height", "static_instance": null, "getter_method": "getHeight", "containing_data_type_ref": "files.Dimensions", "route_refs": [], "_type": "FieldReference"}, "files.Dimensions.width": {"fq_name": "files.Dimensions.width", "param_name": "width", "static_instance": null, "getter_method": "getWidth", "containing_data_type_ref": "files.Dimensions", "route_refs": [], "_type": "FieldReference"}, "files.DownloadArg.path": {"fq_name": "files.DownloadArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.DownloadArg", "route_refs": ["files.download"], "_type": "FieldReference"}, "files.DownloadArg.rev": {"fq_name": "files.DownloadArg.rev", "param_name": "rev", "static_instance": null, "getter_method": "getRev", "containing_data_type_ref": "files.DownloadArg", "route_refs": ["files.download"], "_type": "FieldReference"}, "files.DownloadError.path": {"fq_name": "files.DownloadError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.DownloadError", "route_refs": [], "_type": "FieldReference"}, "files.DownloadError.unsupported_file": {"fq_name": "files.DownloadError.unsupported_file", "param_name": "unsupportedFileValue", "static_instance": "UNSUPPORTED_FILE", "getter_method": null, "containing_data_type_ref": "files.DownloadError", "route_refs": [], "_type": "FieldReference"}, "files.DownloadError.other": {"fq_name": "files.DownloadError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.DownloadError", "route_refs": [], "_type": "FieldReference"}, "files.DownloadZipArg.path": {"fq_name": "files.DownloadZipArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.DownloadZipArg", "route_refs": [], "_type": "FieldReference"}, "files.DownloadZipError.path": {"fq_name": "files.DownloadZipError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.DownloadZipError", "route_refs": [], "_type": "FieldReference"}, "files.DownloadZipError.too_large": {"fq_name": "files.DownloadZipError.too_large", "param_name": "tooLargeValue", "static_instance": "TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.DownloadZipError", "route_refs": [], "_type": "FieldReference"}, "files.DownloadZipError.too_many_files": {"fq_name": "files.DownloadZipError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.DownloadZipError", "route_refs": [], "_type": "FieldReference"}, "files.DownloadZipError.other": {"fq_name": "files.DownloadZipError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.DownloadZipError", "route_refs": [], "_type": "FieldReference"}, "files.DownloadZipResult.metadata": {"fq_name": "files.DownloadZipResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.DownloadZipResult", "route_refs": [], "_type": "FieldReference"}, "files.ExportArg.path": {"fq_name": "files.ExportArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.ExportArg", "route_refs": ["files.export"], "_type": "FieldReference"}, "files.ExportArg.export_format": {"fq_name": "files.ExportArg.export_format", "param_name": "exportFormat", "static_instance": null, "getter_method": "getExportFormat", "containing_data_type_ref": "files.ExportArg", "route_refs": ["files.export"], "_type": "FieldReference"}, "files.ExportError.path": {"fq_name": "files.ExportError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.ExportError", "route_refs": [], "_type": "FieldReference"}, "files.ExportError.non_exportable": {"fq_name": "files.ExportError.non_exportable", "param_name": "nonExportableValue", "static_instance": "NON_EXPORTABLE", "getter_method": null, "containing_data_type_ref": "files.ExportError", "route_refs": [], "_type": "FieldReference"}, "files.ExportError.invalid_export_format": {"fq_name": "files.ExportError.invalid_export_format", "param_name": "invalidExportFormatValue", "static_instance": "INVALID_EXPORT_FORMAT", "getter_method": null, "containing_data_type_ref": "files.ExportError", "route_refs": [], "_type": "FieldReference"}, "files.ExportError.retry_error": {"fq_name": "files.ExportError.retry_error", "param_name": "retryErrorValue", "static_instance": "RETRY_ERROR", "getter_method": null, "containing_data_type_ref": "files.ExportError", "route_refs": [], "_type": "FieldReference"}, "files.ExportError.other": {"fq_name": "files.ExportError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ExportError", "route_refs": [], "_type": "FieldReference"}, "files.ExportInfo.export_as": {"fq_name": "files.ExportInfo.export_as", "param_name": "exportAs", "static_instance": null, "getter_method": "getExportAs", "containing_data_type_ref": "files.ExportInfo", "route_refs": [], "_type": "FieldReference"}, "files.ExportInfo.export_options": {"fq_name": "files.ExportInfo.export_options", "param_name": "exportOptions", "static_instance": null, "getter_method": "getExportOptions", "containing_data_type_ref": "files.ExportInfo", "route_refs": [], "_type": "FieldReference"}, "files.ExportMetadata.name": {"fq_name": "files.ExportMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "files.ExportMetadata", "route_refs": [], "_type": "FieldReference"}, "files.ExportMetadata.size": {"fq_name": "files.ExportMetadata.size", "param_name": "size", "static_instance": null, "getter_method": "getSize", "containing_data_type_ref": "files.ExportMetadata", "route_refs": [], "_type": "FieldReference"}, "files.ExportMetadata.export_hash": {"fq_name": "files.ExportMetadata.export_hash", "param_name": "exportHash", "static_instance": null, "getter_method": "getExportHash", "containing_data_type_ref": "files.ExportMetadata", "route_refs": [], "_type": "FieldReference"}, "files.ExportMetadata.paper_revision": {"fq_name": "files.ExportMetadata.paper_revision", "param_name": "paperRevision", "static_instance": null, "getter_method": "getPaperRevision", "containing_data_type_ref": "files.ExportMetadata", "route_refs": [], "_type": "FieldReference"}, "files.ExportResult.export_metadata": {"fq_name": "files.ExportResult.export_metadata", "param_name": "exportMetadata", "static_instance": null, "getter_method": "getExportMetadata", "containing_data_type_ref": "files.ExportResult", "route_refs": [], "_type": "FieldReference"}, "files.ExportResult.file_metadata": {"fq_name": "files.ExportResult.file_metadata", "param_name": "fileMetadata", "static_instance": null, "getter_method": "getFileMetadata", "containing_data_type_ref": "files.ExportResult", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.image": {"fq_name": "files.FileCategory.image", "param_name": "imageValue", "static_instance": "IMAGE", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.document": {"fq_name": "files.FileCategory.document", "param_name": "documentValue", "static_instance": "DOCUMENT", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.pdf": {"fq_name": "files.FileCategory.pdf", "param_name": "pdfValue", "static_instance": "PDF", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.spreadsheet": {"fq_name": "files.FileCategory.spreadsheet", "param_name": "spreadsheetValue", "static_instance": "SPREADSHEET", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.presentation": {"fq_name": "files.FileCategory.presentation", "param_name": "presentationValue", "static_instance": "PRESENTATION", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.audio": {"fq_name": "files.FileCategory.audio", "param_name": "audioValue", "static_instance": "AUDIO", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.video": {"fq_name": "files.FileCategory.video", "param_name": "videoValue", "static_instance": "VIDEO", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.folder": {"fq_name": "files.FileCategory.folder", "param_name": "folderValue", "static_instance": "FOLDER", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.paper": {"fq_name": "files.FileCategory.paper", "param_name": "paperValue", "static_instance": "PAPER", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.others": {"fq_name": "files.FileCategory.others", "param_name": "othersValue", "static_instance": "OTHERS", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileCategory.other": {"fq_name": "files.FileCategory.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.FileCategory", "route_refs": [], "_type": "FieldReference"}, "files.FileLock.content": {"fq_name": "files.FileLock.content", "param_name": "content", "static_instance": null, "getter_method": "getContent", "containing_data_type_ref": "files.FileLock", "route_refs": [], "_type": "FieldReference"}, "files.FileLockContent.unlocked": {"fq_name": "files.FileLockContent.unlocked", "param_name": "unlockedValue", "static_instance": "UNLOCKED", "getter_method": null, "containing_data_type_ref": "files.FileLockContent", "route_refs": [], "_type": "FieldReference"}, "files.FileLockContent.single_user": {"fq_name": "files.FileLockContent.single_user", "param_name": "singleUserValue", "static_instance": null, "getter_method": "getSingleUserValue", "containing_data_type_ref": "files.FileLockContent", "route_refs": [], "_type": "FieldReference"}, "files.FileLockContent.other": {"fq_name": "files.FileLockContent.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.FileLockContent", "route_refs": [], "_type": "FieldReference"}, "files.FileLockMetadata.is_lockholder": {"fq_name": "files.FileLockMetadata.is_lockholder", "param_name": "isLockholder", "static_instance": null, "getter_method": "getIsLockholder", "containing_data_type_ref": "files.FileLockMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileLockMetadata.lockholder_name": {"fq_name": "files.FileLockMetadata.lockholder_name", "param_name": "lockholderName", "static_instance": null, "getter_method": "getLockholderName", "containing_data_type_ref": "files.FileLockMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileLockMetadata.lockholder_account_id": {"fq_name": "files.FileLockMetadata.lockholder_account_id", "param_name": "lockholderAccountId", "static_instance": null, "getter_method": "getLockholderAccountId", "containing_data_type_ref": "files.FileLockMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileLockMetadata.created": {"fq_name": "files.FileLockMetadata.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "files.FileLockMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.name": {"fq_name": "files.FileMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.id": {"fq_name": "files.FileMetadata.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.client_modified": {"fq_name": "files.FileMetadata.client_modified", "param_name": "clientModified", "static_instance": null, "getter_method": "getClientModified", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.server_modified": {"fq_name": "files.FileMetadata.server_modified", "param_name": "serverModified", "static_instance": null, "getter_method": "getServerModified", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.rev": {"fq_name": "files.FileMetadata.rev", "param_name": "rev", "static_instance": null, "getter_method": "getRev", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.size": {"fq_name": "files.FileMetadata.size", "param_name": "size", "static_instance": null, "getter_method": "getSize", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.path_lower": {"fq_name": "files.FileMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.path_display": {"fq_name": "files.FileMetadata.path_display", "param_name": "pathDisplay", "static_instance": null, "getter_method": "getPathDisplay", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.parent_shared_folder_id": {"fq_name": "files.FileMetadata.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.preview_url": {"fq_name": "files.FileMetadata.preview_url", "param_name": "previewUrl", "static_instance": null, "getter_method": "getPreviewUrl", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.media_info": {"fq_name": "files.FileMetadata.media_info", "param_name": "mediaInfo", "static_instance": null, "getter_method": "getMediaInfo", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.symlink_info": {"fq_name": "files.FileMetadata.symlink_info", "param_name": "symlinkInfo", "static_instance": null, "getter_method": "getSymlinkInfo", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.sharing_info": {"fq_name": "files.FileMetadata.sharing_info", "param_name": "sharingInfo", "static_instance": null, "getter_method": "getSharingInfo", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.is_downloadable": {"fq_name": "files.FileMetadata.is_downloadable", "param_name": "isDownloadable", "static_instance": null, "getter_method": "getIsDownloadable", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.export_info": {"fq_name": "files.FileMetadata.export_info", "param_name": "exportInfo", "static_instance": null, "getter_method": "getExportInfo", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.property_groups": {"fq_name": "files.FileMetadata.property_groups", "param_name": "propertyGroups", "static_instance": null, "getter_method": "getPropertyGroups", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.has_explicit_shared_members": {"fq_name": "files.FileMetadata.has_explicit_shared_members", "param_name": "hasExplicitSharedMembers", "static_instance": null, "getter_method": "getHasExplicitSharedMembers", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.content_hash": {"fq_name": "files.FileMetadata.content_hash", "param_name": "contentHash", "static_instance": null, "getter_method": "getContentHash", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileMetadata.file_lock_info": {"fq_name": "files.FileMetadata.file_lock_info", "param_name": "fileLockInfo", "static_instance": null, "getter_method": "getFileLockInfo", "containing_data_type_ref": "files.FileMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FileSharingInfo.read_only": {"fq_name": "files.FileSharingInfo.read_only", "param_name": "readOnly", "static_instance": null, "getter_method": "getReadOnly", "containing_data_type_ref": "files.FileSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.FileSharingInfo.parent_shared_folder_id": {"fq_name": "files.FileSharingInfo.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "files.FileSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.FileSharingInfo.modified_by": {"fq_name": "files.FileSharingInfo.modified_by", "param_name": "modifiedBy", "static_instance": null, "getter_method": "getModifiedBy", "containing_data_type_ref": "files.FileSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.FileStatus.active": {"fq_name": "files.FileStatus.active", "param_name": "activeValue", "static_instance": "ACTIVE", "getter_method": null, "containing_data_type_ref": "files.FileStatus", "route_refs": [], "_type": "FieldReference"}, "files.FileStatus.deleted": {"fq_name": "files.FileStatus.deleted", "param_name": "deletedValue", "static_instance": "DELETED", "getter_method": null, "containing_data_type_ref": "files.FileStatus", "route_refs": [], "_type": "FieldReference"}, "files.FileStatus.other": {"fq_name": "files.FileStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.FileStatus", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.name": {"fq_name": "files.FolderMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.id": {"fq_name": "files.FolderMetadata.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.path_lower": {"fq_name": "files.FolderMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.path_display": {"fq_name": "files.FolderMetadata.path_display", "param_name": "pathDisplay", "static_instance": null, "getter_method": "getPathDisplay", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.parent_shared_folder_id": {"fq_name": "files.FolderMetadata.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.preview_url": {"fq_name": "files.FolderMetadata.preview_url", "param_name": "previewUrl", "static_instance": null, "getter_method": "getPreviewUrl", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.shared_folder_id": {"fq_name": "files.FolderMetadata.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.sharing_info": {"fq_name": "files.FolderMetadata.sharing_info", "param_name": "sharingInfo", "static_instance": null, "getter_method": "getSharingInfo", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderMetadata.property_groups": {"fq_name": "files.FolderMetadata.property_groups", "param_name": "propertyGroups", "static_instance": null, "getter_method": "getPropertyGroups", "containing_data_type_ref": "files.FolderMetadata", "route_refs": [], "_type": "FieldReference"}, "files.FolderSharingInfo.read_only": {"fq_name": "files.FolderSharingInfo.read_only", "param_name": "readOnly", "static_instance": null, "getter_method": "getReadOnly", "containing_data_type_ref": "files.FolderSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.FolderSharingInfo.parent_shared_folder_id": {"fq_name": "files.FolderSharingInfo.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "files.FolderSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.FolderSharingInfo.shared_folder_id": {"fq_name": "files.FolderSharingInfo.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "files.FolderSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.FolderSharingInfo.traverse_only": {"fq_name": "files.FolderSharingInfo.traverse_only", "param_name": "traverseOnly", "static_instance": null, "getter_method": "getTraverseOnly", "containing_data_type_ref": "files.FolderSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.FolderSharingInfo.no_access": {"fq_name": "files.FolderSharingInfo.no_access", "param_name": "noAccess", "static_instance": null, "getter_method": "getNoAccess", "containing_data_type_ref": "files.FolderSharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.GetCopyReferenceArg.path": {"fq_name": "files.GetCopyReferenceArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.GetCopyReferenceArg", "route_refs": [], "_type": "FieldReference"}, "files.GetCopyReferenceError.path": {"fq_name": "files.GetCopyReferenceError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.GetCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.GetCopyReferenceError.other": {"fq_name": "files.GetCopyReferenceError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.GetCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.GetCopyReferenceResult.metadata": {"fq_name": "files.GetCopyReferenceResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.GetCopyReferenceResult", "route_refs": [], "_type": "FieldReference"}, "files.GetCopyReferenceResult.copy_reference": {"fq_name": "files.GetCopyReferenceResult.copy_reference", "param_name": "copyReference", "static_instance": null, "getter_method": "getCopyReference", "containing_data_type_ref": "files.GetCopyReferenceResult", "route_refs": [], "_type": "FieldReference"}, "files.GetCopyReferenceResult.expires": {"fq_name": "files.GetCopyReferenceResult.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "files.GetCopyReferenceResult", "route_refs": [], "_type": "FieldReference"}, "files.GetMetadataArg.path": {"fq_name": "files.GetMetadataArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.GetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.GetMetadataArg.include_media_info": {"fq_name": "files.GetMetadataArg.include_media_info", "param_name": "includeMediaInfo", "static_instance": null, "getter_method": "getIncludeMediaInfo", "containing_data_type_ref": "files.GetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.GetMetadataArg.include_deleted": {"fq_name": "files.GetMetadataArg.include_deleted", "param_name": "includeDeleted", "static_instance": null, "getter_method": "getIncludeDeleted", "containing_data_type_ref": "files.GetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.GetMetadataArg.include_has_explicit_shared_members": {"fq_name": "files.GetMetadataArg.include_has_explicit_shared_members", "param_name": "includeHasExplicitSharedMembers", "static_instance": null, "getter_method": "getIncludeHasExplicitSharedMembers", "containing_data_type_ref": "files.GetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.GetMetadataArg.include_property_groups": {"fq_name": "files.GetMetadataArg.include_property_groups", "param_name": "includePropertyGroups", "static_instance": null, "getter_method": "getIncludePropertyGroups", "containing_data_type_ref": "files.GetMetadataArg", "route_refs": [], "_type": "FieldReference"}, "files.GetMetadataError.path": {"fq_name": "files.GetMetadataError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.GetMetadataError", "route_refs": [], "_type": "FieldReference"}, "files.GetTagsArg.paths": {"fq_name": "files.GetTagsArg.paths", "param_name": "paths", "static_instance": null, "getter_method": "getPaths", "containing_data_type_ref": "files.GetTagsArg", "route_refs": [], "_type": "FieldReference"}, "files.GetTagsResult.paths_to_tags": {"fq_name": "files.GetTagsResult.paths_to_tags", "param_name": "pathsToTags", "static_instance": null, "getter_method": "getPathsToTags", "containing_data_type_ref": "files.GetTagsResult", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkArg.path": {"fq_name": "files.GetTemporaryLinkArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.GetTemporaryLinkArg", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkError.path": {"fq_name": "files.GetTemporaryLinkError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.GetTemporaryLinkError", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkError.email_not_verified": {"fq_name": "files.GetTemporaryLinkError.email_not_verified", "param_name": "emailNotVerifiedValue", "static_instance": "EMAIL_NOT_VERIFIED", "getter_method": null, "containing_data_type_ref": "files.GetTemporaryLinkError", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkError.unsupported_file": {"fq_name": "files.GetTemporaryLinkError.unsupported_file", "param_name": "unsupportedFileValue", "static_instance": "UNSUPPORTED_FILE", "getter_method": null, "containing_data_type_ref": "files.GetTemporaryLinkError", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkError.not_allowed": {"fq_name": "files.GetTemporaryLinkError.not_allowed", "param_name": "notAllowedValue", "static_instance": "NOT_ALLOWED", "getter_method": null, "containing_data_type_ref": "files.GetTemporaryLinkError", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkError.other": {"fq_name": "files.GetTemporaryLinkError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.GetTemporaryLinkError", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkResult.metadata": {"fq_name": "files.GetTemporaryLinkResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.GetTemporaryLinkResult", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryLinkResult.link": {"fq_name": "files.GetTemporaryLinkResult.link", "param_name": "link", "static_instance": null, "getter_method": "getLink", "containing_data_type_ref": "files.GetTemporaryLinkResult", "route_refs": [], "_type": "FieldReference"}, "files.GetTemporaryUploadLinkArg.commit_info": {"fq_name": "files.GetTemporaryUploadLinkArg.commit_info", "param_name": "commitInfo", "static_instance": null, "getter_method": "getCommitInfo", "containing_data_type_ref": "files.GetTemporaryUploadLinkArg", "route_refs": ["files.get_temporary_upload_link"], "_type": "FieldReference"}, "files.GetTemporaryUploadLinkArg.duration": {"fq_name": "files.GetTemporaryUploadLinkArg.duration", "param_name": "duration", "static_instance": null, "getter_method": "getDuration", "containing_data_type_ref": "files.GetTemporaryUploadLinkArg", "route_refs": ["files.get_temporary_upload_link"], "_type": "FieldReference"}, "files.GetTemporaryUploadLinkResult.link": {"fq_name": "files.GetTemporaryUploadLinkResult.link", "param_name": "link", "static_instance": null, "getter_method": "getLink", "containing_data_type_ref": "files.GetTemporaryUploadLinkResult", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchArg.entries": {"fq_name": "files.GetThumbnailBatchArg.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.GetThumbnailBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchError.too_many_files": {"fq_name": "files.GetThumbnailBatchError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.GetThumbnailBatchError", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchError.other": {"fq_name": "files.GetThumbnailBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.GetThumbnailBatchError", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchResult.entries": {"fq_name": "files.GetThumbnailBatchResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.GetThumbnailBatchResult", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchResultData.metadata": {"fq_name": "files.GetThumbnailBatchResultData.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.GetThumbnailBatchResultData", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchResultData.thumbnail": {"fq_name": "files.GetThumbnailBatchResultData.thumbnail", "param_name": "thumbnail", "static_instance": null, "getter_method": "getThumbnail", "containing_data_type_ref": "files.GetThumbnailBatchResultData", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchResultEntry.success": {"fq_name": "files.GetThumbnailBatchResultEntry.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "files.GetThumbnailBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchResultEntry.failure": {"fq_name": "files.GetThumbnailBatchResultEntry.failure", "param_name": "failureValue", "static_instance": null, "getter_method": "getFailureValue", "containing_data_type_ref": "files.GetThumbnailBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.GetThumbnailBatchResultEntry.other": {"fq_name": "files.GetThumbnailBatchResultEntry.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.GetThumbnailBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.GpsCoordinates.latitude": {"fq_name": "files.GpsCoordinates.latitude", "param_name": "latitude", "static_instance": null, "getter_method": "getLatitude", "containing_data_type_ref": "files.GpsCoordinates", "route_refs": [], "_type": "FieldReference"}, "files.GpsCoordinates.longitude": {"fq_name": "files.GpsCoordinates.longitude", "param_name": "longitude", "static_instance": null, "getter_method": "getLongitude", "containing_data_type_ref": "files.GpsCoordinates", "route_refs": [], "_type": "FieldReference"}, "files.HighlightSpan.highlight_str": {"fq_name": "files.HighlightSpan.highlight_str", "param_name": "highlightStr", "static_instance": null, "getter_method": "getHighlightStr", "containing_data_type_ref": "files.HighlightSpan", "route_refs": [], "_type": "FieldReference"}, "files.HighlightSpan.is_highlighted": {"fq_name": "files.HighlightSpan.is_highlighted", "param_name": "isHighlighted", "static_instance": null, "getter_method": "getIsHighlighted", "containing_data_type_ref": "files.HighlightSpan", "route_refs": [], "_type": "FieldReference"}, "files.ImportFormat.html": {"fq_name": "files.ImportFormat.html", "param_name": "htmlValue", "static_instance": "HTML", "getter_method": null, "containing_data_type_ref": "files.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "files.ImportFormat.markdown": {"fq_name": "files.ImportFormat.markdown", "param_name": "markdownValue", "static_instance": "MARKDOWN", "getter_method": null, "containing_data_type_ref": "files.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "files.ImportFormat.plain_text": {"fq_name": "files.ImportFormat.plain_text", "param_name": "plainTextValue", "static_instance": "PLAIN_TEXT", "getter_method": null, "containing_data_type_ref": "files.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "files.ImportFormat.other": {"fq_name": "files.ImportFormat.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.path": {"fq_name": "files.ListFolderArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.recursive": {"fq_name": "files.ListFolderArg.recursive", "param_name": "recursive", "static_instance": null, "getter_method": "getRecursive", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.include_media_info": {"fq_name": "files.ListFolderArg.include_media_info", "param_name": "includeMediaInfo", "static_instance": null, "getter_method": "getIncludeMediaInfo", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.include_deleted": {"fq_name": "files.ListFolderArg.include_deleted", "param_name": "includeDeleted", "static_instance": null, "getter_method": "getIncludeDeleted", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.include_has_explicit_shared_members": {"fq_name": "files.ListFolderArg.include_has_explicit_shared_members", "param_name": "includeHasExplicitSharedMembers", "static_instance": null, "getter_method": "getIncludeHasExplicitSharedMembers", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.include_mounted_folders": {"fq_name": "files.ListFolderArg.include_mounted_folders", "param_name": "includeMountedFolders", "static_instance": null, "getter_method": "getIncludeMountedFolders", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.limit": {"fq_name": "files.ListFolderArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.shared_link": {"fq_name": "files.ListFolderArg.shared_link", "param_name": "sharedLink", "static_instance": null, "getter_method": "getSharedLink", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.include_property_groups": {"fq_name": "files.ListFolderArg.include_property_groups", "param_name": "includePropertyGroups", "static_instance": null, "getter_method": "getIncludePropertyGroups", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderArg.include_non_downloadable_files": {"fq_name": "files.ListFolderArg.include_non_downloadable_files", "param_name": "includeNonDownloadableFiles", "static_instance": null, "getter_method": "getIncludeNonDownloadableFiles", "containing_data_type_ref": "files.ListFolderArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderContinueArg.cursor": {"fq_name": "files.ListFolderContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.ListFolderContinueArg", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderContinueError.path": {"fq_name": "files.ListFolderContinueError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.ListFolderContinueError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderContinueError.reset": {"fq_name": "files.ListFolderContinueError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "files.ListFolderContinueError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderContinueError.other": {"fq_name": "files.ListFolderContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ListFolderContinueError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderError.path": {"fq_name": "files.ListFolderError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.ListFolderError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderError.template_error": {"fq_name": "files.ListFolderError.template_error", "param_name": "templateErrorValue", "static_instance": null, "getter_method": "getTemplateErrorValue", "containing_data_type_ref": "files.ListFolderError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderError.other": {"fq_name": "files.ListFolderError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ListFolderError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderGetLatestCursorResult.cursor": {"fq_name": "files.ListFolderGetLatestCursorResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.ListFolderGetLatestCursorResult", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderLongpollArg.cursor": {"fq_name": "files.ListFolderLongpollArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.ListFolderLongpollArg", "route_refs": ["files.list_folder/longpoll"], "_type": "FieldReference"}, "files.ListFolderLongpollArg.timeout": {"fq_name": "files.ListFolderLongpollArg.timeout", "param_name": "timeout", "static_instance": null, "getter_method": "getTimeout", "containing_data_type_ref": "files.ListFolderLongpollArg", "route_refs": ["files.list_folder/longpoll"], "_type": "FieldReference"}, "files.ListFolderLongpollError.reset": {"fq_name": "files.ListFolderLongpollError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "files.ListFolderLongpollError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderLongpollError.other": {"fq_name": "files.ListFolderLongpollError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ListFolderLongpollError", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderLongpollResult.changes": {"fq_name": "files.ListFolderLongpollResult.changes", "param_name": "changes", "static_instance": null, "getter_method": "getChanges", "containing_data_type_ref": "files.ListFolderLongpollResult", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderLongpollResult.backoff": {"fq_name": "files.ListFolderLongpollResult.backoff", "param_name": "backoff", "static_instance": null, "getter_method": "getBackoff", "containing_data_type_ref": "files.ListFolderLongpollResult", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderResult.entries": {"fq_name": "files.ListFolderResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.ListFolderResult", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderResult.cursor": {"fq_name": "files.ListFolderResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.ListFolderResult", "route_refs": [], "_type": "FieldReference"}, "files.ListFolderResult.has_more": {"fq_name": "files.ListFolderResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "files.ListFolderResult", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsArg.path": {"fq_name": "files.ListRevisionsArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.ListRevisionsArg", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsArg.mode": {"fq_name": "files.ListRevisionsArg.mode", "param_name": "mode", "static_instance": null, "getter_method": "getMode", "containing_data_type_ref": "files.ListRevisionsArg", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsArg.limit": {"fq_name": "files.ListRevisionsArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "files.ListRevisionsArg", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsError.path": {"fq_name": "files.ListRevisionsError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.ListRevisionsError", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsError.other": {"fq_name": "files.ListRevisionsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ListRevisionsError", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsMode.path": {"fq_name": "files.ListRevisionsMode.path", "param_name": "pathValue", "static_instance": "PATH", "getter_method": null, "containing_data_type_ref": "files.ListRevisionsMode", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsMode.id": {"fq_name": "files.ListRevisionsMode.id", "param_name": "idValue", "static_instance": "ID", "getter_method": null, "containing_data_type_ref": "files.ListRevisionsMode", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsMode.other": {"fq_name": "files.ListRevisionsMode.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ListRevisionsMode", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsResult.is_deleted": {"fq_name": "files.ListRevisionsResult.is_deleted", "param_name": "isDeleted", "static_instance": null, "getter_method": "getIsDeleted", "containing_data_type_ref": "files.ListRevisionsResult", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsResult.entries": {"fq_name": "files.ListRevisionsResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.ListRevisionsResult", "route_refs": [], "_type": "FieldReference"}, "files.ListRevisionsResult.server_deleted": {"fq_name": "files.ListRevisionsResult.server_deleted", "param_name": "serverDeleted", "static_instance": null, "getter_method": "getServerDeleted", "containing_data_type_ref": "files.ListRevisionsResult", "route_refs": [], "_type": "FieldReference"}, "files.LockConflictError.lock": {"fq_name": "files.LockConflictError.lock", "param_name": "lock", "static_instance": null, "getter_method": "getLock", "containing_data_type_ref": "files.LockConflictError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileArg.path": {"fq_name": "files.LockFileArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.LockFileArg", "route_refs": [], "_type": "FieldReference"}, "files.LockFileBatchArg.entries": {"fq_name": "files.LockFileBatchArg.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.LockFileBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.LockFileBatchResult.entries": {"fq_name": "files.LockFileBatchResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.LockFileBatchResult", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.path_lookup": {"fq_name": "files.LockFileError.path_lookup", "param_name": "pathLookupValue", "static_instance": null, "getter_method": "getPathLookupValue", "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.too_many_write_operations": {"fq_name": "files.LockFileError.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.too_many_files": {"fq_name": "files.LockFileError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.no_write_permission": {"fq_name": "files.LockFileError.no_write_permission", "param_name": "noWritePermissionValue", "static_instance": "NO_WRITE_PERMISSION", "getter_method": null, "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.cannot_be_locked": {"fq_name": "files.LockFileError.cannot_be_locked", "param_name": "cannotBeLockedValue", "static_instance": "CANNOT_BE_LOCKED", "getter_method": null, "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.file_not_shared": {"fq_name": "files.LockFileError.file_not_shared", "param_name": "fileNotSharedValue", "static_instance": "FILE_NOT_SHARED", "getter_method": null, "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.lock_conflict": {"fq_name": "files.LockFileError.lock_conflict", "param_name": "lockConflictValue", "static_instance": null, "getter_method": "getLockConflictValue", "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.internal_error": {"fq_name": "files.LockFileError.internal_error", "param_name": "internalErrorValue", "static_instance": "INTERNAL_ERROR", "getter_method": null, "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileError.other": {"fq_name": "files.LockFileError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.LockFileError", "route_refs": [], "_type": "FieldReference"}, "files.LockFileResult.metadata": {"fq_name": "files.LockFileResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.LockFileResult", "route_refs": [], "_type": "FieldReference"}, "files.LockFileResult.lock": {"fq_name": "files.LockFileResult.lock", "param_name": "lock", "static_instance": null, "getter_method": "getLock", "containing_data_type_ref": "files.LockFileResult", "route_refs": [], "_type": "FieldReference"}, "files.LockFileResultEntry.success": {"fq_name": "files.LockFileResultEntry.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "files.LockFileResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.LockFileResultEntry.failure": {"fq_name": "files.LockFileResultEntry.failure", "param_name": "failureValue", "static_instance": null, "getter_method": "getFailureValue", "containing_data_type_ref": "files.LockFileResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.malformed_path": {"fq_name": "files.LookupError.malformed_path", "param_name": "malformedPathValue", "static_instance": null, "getter_method": "getMalformedPathValue", "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.not_found": {"fq_name": "files.LookupError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.not_file": {"fq_name": "files.LookupError.not_file", "param_name": "notFileValue", "static_instance": "NOT_FILE", "getter_method": null, "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.not_folder": {"fq_name": "files.LookupError.not_folder", "param_name": "notFolderValue", "static_instance": "NOT_FOLDER", "getter_method": null, "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.restricted_content": {"fq_name": "files.LookupError.restricted_content", "param_name": "restrictedContentValue", "static_instance": "RESTRICTED_CONTENT", "getter_method": null, "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.unsupported_content_type": {"fq_name": "files.LookupError.unsupported_content_type", "param_name": "unsupportedContentTypeValue", "static_instance": "UNSUPPORTED_CONTENT_TYPE", "getter_method": null, "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.locked": {"fq_name": "files.LookupError.locked", "param_name": "lockedValue", "static_instance": "LOCKED", "getter_method": null, "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.LookupError.other": {"fq_name": "files.LookupError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.LookupError", "route_refs": [], "_type": "FieldReference"}, "files.MediaInfo.pending": {"fq_name": "files.MediaInfo.pending", "param_name": "pendingValue", "static_instance": "PENDING", "getter_method": null, "containing_data_type_ref": "files.MediaInfo", "route_refs": [], "_type": "FieldReference"}, "files.MediaInfo.metadata": {"fq_name": "files.MediaInfo.metadata", "param_name": "metadataValue", "static_instance": null, "getter_method": "getMetadataValue", "containing_data_type_ref": "files.MediaInfo", "route_refs": [], "_type": "FieldReference"}, "files.MediaMetadata.dimensions": {"fq_name": "files.MediaMetadata.dimensions", "param_name": "dimensions", "static_instance": null, "getter_method": "getDimensions", "containing_data_type_ref": "files.MediaMetadata", "route_refs": [], "_type": "FieldReference"}, "files.MediaMetadata.location": {"fq_name": "files.MediaMetadata.location", "param_name": "location", "static_instance": null, "getter_method": "getLocation", "containing_data_type_ref": "files.MediaMetadata", "route_refs": [], "_type": "FieldReference"}, "files.MediaMetadata.time_taken": {"fq_name": "files.MediaMetadata.time_taken", "param_name": "timeTaken", "static_instance": null, "getter_method": "getTimeTaken", "containing_data_type_ref": "files.MediaMetadata", "route_refs": [], "_type": "FieldReference"}, "files.Metadata.name": {"fq_name": "files.Metadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "files.Metadata", "route_refs": [], "_type": "FieldReference"}, "files.Metadata.path_lower": {"fq_name": "files.Metadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "files.Metadata", "route_refs": [], "_type": "FieldReference"}, "files.Metadata.path_display": {"fq_name": "files.Metadata.path_display", "param_name": "pathDisplay", "static_instance": null, "getter_method": "getPathDisplay", "containing_data_type_ref": "files.Metadata", "route_refs": [], "_type": "FieldReference"}, "files.Metadata.parent_shared_folder_id": {"fq_name": "files.Metadata.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "files.Metadata", "route_refs": [], "_type": "FieldReference"}, "files.Metadata.preview_url": {"fq_name": "files.Metadata.preview_url", "param_name": "previewUrl", "static_instance": null, "getter_method": "getPreviewUrl", "containing_data_type_ref": "files.Metadata", "route_refs": [], "_type": "FieldReference"}, "files.MetadataV2.metadata": {"fq_name": "files.MetadataV2.metadata", "param_name": "metadataValue", "static_instance": null, "getter_method": "getMetadataValue", "containing_data_type_ref": "files.MetadataV2", "route_refs": [], "_type": "FieldReference"}, "files.MetadataV2.other": {"fq_name": "files.MetadataV2.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.MetadataV2", "route_refs": [], "_type": "FieldReference"}, "files.MinimalFileLinkMetadata.url": {"fq_name": "files.MinimalFileLinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "files.MinimalFileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "files.MinimalFileLinkMetadata.rev": {"fq_name": "files.MinimalFileLinkMetadata.rev", "param_name": "rev", "static_instance": null, "getter_method": "getRev", "containing_data_type_ref": "files.MinimalFileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "files.MinimalFileLinkMetadata.id": {"fq_name": "files.MinimalFileLinkMetadata.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "files.MinimalFileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "files.MinimalFileLinkMetadata.path": {"fq_name": "files.MinimalFileLinkMetadata.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.MinimalFileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "files.MoveBatchArg.entries": {"fq_name": "files.MoveBatchArg.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.MoveBatchArg", "route_refs": ["files.copy_batch_v2"], "_type": "FieldReference"}, "files.MoveBatchArg.autorename": {"fq_name": "files.MoveBatchArg.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.MoveBatchArg", "route_refs": ["files.copy_batch_v2"], "_type": "FieldReference"}, "files.MoveBatchArg.allow_ownership_transfer": {"fq_name": "files.MoveBatchArg.allow_ownership_transfer", "param_name": "allowOwnershipTransfer", "static_instance": null, "getter_method": "getAllowOwnershipTransfer", "containing_data_type_ref": "files.MoveBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.MoveIntoFamilyError.is_shared_folder": {"fq_name": "files.MoveIntoFamilyError.is_shared_folder", "param_name": "isSharedFolderValue", "static_instance": "IS_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.MoveIntoFamilyError", "route_refs": [], "_type": "FieldReference"}, "files.MoveIntoFamilyError.other": {"fq_name": "files.MoveIntoFamilyError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.MoveIntoFamilyError", "route_refs": [], "_type": "FieldReference"}, "files.MoveIntoVaultError.is_shared_folder": {"fq_name": "files.MoveIntoVaultError.is_shared_folder", "param_name": "isSharedFolderValue", "static_instance": "IS_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.MoveIntoVaultError", "route_refs": [], "_type": "FieldReference"}, "files.MoveIntoVaultError.other": {"fq_name": "files.MoveIntoVaultError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.MoveIntoVaultError", "route_refs": [], "_type": "FieldReference"}, "files.PaperContentError.insufficient_permissions": {"fq_name": "files.PaperContentError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "files.PaperContentError", "route_refs": [], "_type": "FieldReference"}, "files.PaperContentError.content_malformed": {"fq_name": "files.PaperContentError.content_malformed", "param_name": "contentMalformedValue", "static_instance": "CONTENT_MALFORMED", "getter_method": null, "containing_data_type_ref": "files.PaperContentError", "route_refs": [], "_type": "FieldReference"}, "files.PaperContentError.doc_length_exceeded": {"fq_name": "files.PaperContentError.doc_length_exceeded", "param_name": "docLengthExceededValue", "static_instance": "DOC_LENGTH_EXCEEDED", "getter_method": null, "containing_data_type_ref": "files.PaperContentError", "route_refs": [], "_type": "FieldReference"}, "files.PaperContentError.image_size_exceeded": {"fq_name": "files.PaperContentError.image_size_exceeded", "param_name": "imageSizeExceededValue", "static_instance": "IMAGE_SIZE_EXCEEDED", "getter_method": null, "containing_data_type_ref": "files.PaperContentError", "route_refs": [], "_type": "FieldReference"}, "files.PaperContentError.other": {"fq_name": "files.PaperContentError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.PaperContentError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateArg.path": {"fq_name": "files.PaperCreateArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.PaperCreateArg", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateArg.import_format": {"fq_name": "files.PaperCreateArg.import_format", "param_name": "importFormat", "static_instance": null, "getter_method": "getImportFormat", "containing_data_type_ref": "files.PaperCreateArg", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.insufficient_permissions": {"fq_name": "files.PaperCreateError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.content_malformed": {"fq_name": "files.PaperCreateError.content_malformed", "param_name": "contentMalformedValue", "static_instance": "CONTENT_MALFORMED", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.doc_length_exceeded": {"fq_name": "files.PaperCreateError.doc_length_exceeded", "param_name": "docLengthExceededValue", "static_instance": "DOC_LENGTH_EXCEEDED", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.image_size_exceeded": {"fq_name": "files.PaperCreateError.image_size_exceeded", "param_name": "imageSizeExceededValue", "static_instance": "IMAGE_SIZE_EXCEEDED", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.other": {"fq_name": "files.PaperCreateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.invalid_path": {"fq_name": "files.PaperCreateError.invalid_path", "param_name": "invalidPathValue", "static_instance": "INVALID_PATH", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.email_unverified": {"fq_name": "files.PaperCreateError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.invalid_file_extension": {"fq_name": "files.PaperCreateError.invalid_file_extension", "param_name": "invalidFileExtensionValue", "static_instance": "INVALID_FILE_EXTENSION", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateError.paper_disabled": {"fq_name": "files.PaperCreateError.paper_disabled", "param_name": "paperDisabledValue", "static_instance": "PAPER_DISABLED", "getter_method": null, "containing_data_type_ref": "files.PaperCreateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateResult.url": {"fq_name": "files.PaperCreateResult.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "files.PaperCreateResult", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateResult.result_path": {"fq_name": "files.PaperCreateResult.result_path", "param_name": "resultPath", "static_instance": null, "getter_method": "getResultPath", "containing_data_type_ref": "files.PaperCreateResult", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateResult.file_id": {"fq_name": "files.PaperCreateResult.file_id", "param_name": "fileId", "static_instance": null, "getter_method": "getFileId", "containing_data_type_ref": "files.PaperCreateResult", "route_refs": [], "_type": "FieldReference"}, "files.PaperCreateResult.paper_revision": {"fq_name": "files.PaperCreateResult.paper_revision", "param_name": "paperRevision", "static_instance": null, "getter_method": "getPaperRevision", "containing_data_type_ref": "files.PaperCreateResult", "route_refs": [], "_type": "FieldReference"}, "files.PaperDocUpdatePolicy.update": {"fq_name": "files.PaperDocUpdatePolicy.update", "param_name": "updateValue", "static_instance": "UPDATE", "getter_method": null, "containing_data_type_ref": "files.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "files.PaperDocUpdatePolicy.overwrite": {"fq_name": "files.PaperDocUpdatePolicy.overwrite", "param_name": "overwriteValue", "static_instance": "OVERWRITE", "getter_method": null, "containing_data_type_ref": "files.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "files.PaperDocUpdatePolicy.prepend": {"fq_name": "files.PaperDocUpdatePolicy.prepend", "param_name": "prependValue", "static_instance": "PREPEND", "getter_method": null, "containing_data_type_ref": "files.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "files.PaperDocUpdatePolicy.append": {"fq_name": "files.PaperDocUpdatePolicy.append", "param_name": "appendValue", "static_instance": "APPEND", "getter_method": null, "containing_data_type_ref": "files.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "files.PaperDocUpdatePolicy.other": {"fq_name": "files.PaperDocUpdatePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateArg.path": {"fq_name": "files.PaperUpdateArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.PaperUpdateArg", "route_refs": ["files.paper/update"], "_type": "FieldReference"}, "files.PaperUpdateArg.import_format": {"fq_name": "files.PaperUpdateArg.import_format", "param_name": "importFormat", "static_instance": null, "getter_method": "getImportFormat", "containing_data_type_ref": "files.PaperUpdateArg", "route_refs": ["files.paper/update"], "_type": "FieldReference"}, "files.PaperUpdateArg.doc_update_policy": {"fq_name": "files.PaperUpdateArg.doc_update_policy", "param_name": "docUpdatePolicy", "static_instance": null, "getter_method": "getDocUpdatePolicy", "containing_data_type_ref": "files.PaperUpdateArg", "route_refs": ["files.paper/update"], "_type": "FieldReference"}, "files.PaperUpdateArg.paper_revision": {"fq_name": "files.PaperUpdateArg.paper_revision", "param_name": "paperRevision", "static_instance": null, "getter_method": "getPaperRevision", "containing_data_type_ref": "files.PaperUpdateArg", "route_refs": ["files.paper/update"], "_type": "FieldReference"}, "files.PaperUpdateError.insufficient_permissions": {"fq_name": "files.PaperUpdateError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.content_malformed": {"fq_name": "files.PaperUpdateError.content_malformed", "param_name": "contentMalformedValue", "static_instance": "CONTENT_MALFORMED", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.doc_length_exceeded": {"fq_name": "files.PaperUpdateError.doc_length_exceeded", "param_name": "docLengthExceededValue", "static_instance": "DOC_LENGTH_EXCEEDED", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.image_size_exceeded": {"fq_name": "files.PaperUpdateError.image_size_exceeded", "param_name": "imageSizeExceededValue", "static_instance": "IMAGE_SIZE_EXCEEDED", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.other": {"fq_name": "files.PaperUpdateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.path": {"fq_name": "files.PaperUpdateError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.revision_mismatch": {"fq_name": "files.PaperUpdateError.revision_mismatch", "param_name": "revisionMismatchValue", "static_instance": "REVISION_MISMATCH", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.doc_archived": {"fq_name": "files.PaperUpdateError.doc_archived", "param_name": "docArchivedValue", "static_instance": "DOC_ARCHIVED", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateError.doc_deleted": {"fq_name": "files.PaperUpdateError.doc_deleted", "param_name": "docDeletedValue", "static_instance": "DOC_DELETED", "getter_method": null, "containing_data_type_ref": "files.PaperUpdateError", "route_refs": [], "_type": "FieldReference"}, "files.PaperUpdateResult.paper_revision": {"fq_name": "files.PaperUpdateResult.paper_revision", "param_name": "paperRevision", "static_instance": null, "getter_method": "getPaperRevision", "containing_data_type_ref": "files.PaperUpdateResult", "route_refs": [], "_type": "FieldReference"}, "files.PathOrLink.path": {"fq_name": "files.PathOrLink.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.PathOrLink", "route_refs": [], "_type": "FieldReference"}, "files.PathOrLink.link": {"fq_name": "files.PathOrLink.link", "param_name": "linkValue", "static_instance": null, "getter_method": "getLinkValue", "containing_data_type_ref": "files.PathOrLink", "route_refs": [], "_type": "FieldReference"}, "files.PathOrLink.other": {"fq_name": "files.PathOrLink.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.PathOrLink", "route_refs": [], "_type": "FieldReference"}, "files.PathToTags.path": {"fq_name": "files.PathToTags.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.PathToTags", "route_refs": [], "_type": "FieldReference"}, "files.PathToTags.tags": {"fq_name": "files.PathToTags.tags", "param_name": "tags", "static_instance": null, "getter_method": "getTags", "containing_data_type_ref": "files.PathToTags", "route_refs": [], "_type": "FieldReference"}, "files.PhotoMetadata.dimensions": {"fq_name": "files.PhotoMetadata.dimensions", "param_name": "dimensions", "static_instance": null, "getter_method": "getDimensions", "containing_data_type_ref": "files.PhotoMetadata", "route_refs": [], "_type": "FieldReference"}, "files.PhotoMetadata.location": {"fq_name": "files.PhotoMetadata.location", "param_name": "location", "static_instance": null, "getter_method": "getLocation", "containing_data_type_ref": "files.PhotoMetadata", "route_refs": [], "_type": "FieldReference"}, "files.PhotoMetadata.time_taken": {"fq_name": "files.PhotoMetadata.time_taken", "param_name": "timeTaken", "static_instance": null, "getter_method": "getTimeTaken", "containing_data_type_ref": "files.PhotoMetadata", "route_refs": [], "_type": "FieldReference"}, "files.PreviewArg.path": {"fq_name": "files.PreviewArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.PreviewArg", "route_refs": ["files.get_preview"], "_type": "FieldReference"}, "files.PreviewArg.rev": {"fq_name": "files.PreviewArg.rev", "param_name": "rev", "static_instance": null, "getter_method": "getRev", "containing_data_type_ref": "files.PreviewArg", "route_refs": ["files.get_preview"], "_type": "FieldReference"}, "files.PreviewError.path": {"fq_name": "files.PreviewError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.PreviewError", "route_refs": [], "_type": "FieldReference"}, "files.PreviewError.in_progress": {"fq_name": "files.PreviewError.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.PreviewError", "route_refs": [], "_type": "FieldReference"}, "files.PreviewError.unsupported_extension": {"fq_name": "files.PreviewError.unsupported_extension", "param_name": "unsupportedExtensionValue", "static_instance": "UNSUPPORTED_EXTENSION", "getter_method": null, "containing_data_type_ref": "files.PreviewError", "route_refs": [], "_type": "FieldReference"}, "files.PreviewError.unsupported_content": {"fq_name": "files.PreviewError.unsupported_content", "param_name": "unsupportedContentValue", "static_instance": "UNSUPPORTED_CONTENT", "getter_method": null, "containing_data_type_ref": "files.PreviewError", "route_refs": [], "_type": "FieldReference"}, "files.PreviewResult.file_metadata": {"fq_name": "files.PreviewResult.file_metadata", "param_name": "fileMetadata", "static_instance": null, "getter_method": "getFileMetadata", "containing_data_type_ref": "files.PreviewResult", "route_refs": [], "_type": "FieldReference"}, "files.PreviewResult.link_metadata": {"fq_name": "files.PreviewResult.link_metadata", "param_name": "linkMetadata", "static_instance": null, "getter_method": "getLinkMetadata", "containing_data_type_ref": "files.PreviewResult", "route_refs": [], "_type": "FieldReference"}, "files.RelocationArg.from_path": {"fq_name": "files.RelocationArg.from_path", "param_name": "fromPath", "static_instance": null, "getter_method": "getFromPath", "containing_data_type_ref": "files.RelocationArg", "route_refs": [], "_type": "FieldReference"}, "files.RelocationArg.to_path": {"fq_name": "files.RelocationArg.to_path", "param_name": "toPath", "static_instance": null, "getter_method": "getToPath", "containing_data_type_ref": "files.RelocationArg", "route_refs": [], "_type": "FieldReference"}, "files.RelocationArg.allow_shared_folder": {"fq_name": "files.RelocationArg.allow_shared_folder", "param_name": "allowSharedFolder", "static_instance": null, "getter_method": "getAllowSharedFolder", "containing_data_type_ref": "files.RelocationArg", "route_refs": [], "_type": "FieldReference"}, "files.RelocationArg.autorename": {"fq_name": "files.RelocationArg.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.RelocationArg", "route_refs": [], "_type": "FieldReference"}, "files.RelocationArg.allow_ownership_transfer": {"fq_name": "files.RelocationArg.allow_ownership_transfer", "param_name": "allowOwnershipTransfer", "static_instance": null, "getter_method": "getAllowOwnershipTransfer", "containing_data_type_ref": "files.RelocationArg", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchArg.entries": {"fq_name": "files.RelocationBatchArg.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.RelocationBatchArg", "route_refs": ["files.copy_batch_v2"], "_type": "FieldReference"}, "files.RelocationBatchArg.autorename": {"fq_name": "files.RelocationBatchArg.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.RelocationBatchArg", "route_refs": ["files.copy_batch_v2"], "_type": "FieldReference"}, "files.RelocationBatchArg.allow_shared_folder": {"fq_name": "files.RelocationBatchArg.allow_shared_folder", "param_name": "allowSharedFolder", "static_instance": null, "getter_method": "getAllowSharedFolder", "containing_data_type_ref": "files.RelocationBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchArg.allow_ownership_transfer": {"fq_name": "files.RelocationBatchArg.allow_ownership_transfer", "param_name": "allowOwnershipTransfer", "static_instance": null, "getter_method": "getAllowOwnershipTransfer", "containing_data_type_ref": "files.RelocationBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchArgBase.entries": {"fq_name": "files.RelocationBatchArgBase.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.RelocationBatchArgBase", "route_refs": ["files.copy_batch_v2"], "_type": "FieldReference"}, "files.RelocationBatchArgBase.autorename": {"fq_name": "files.RelocationBatchArgBase.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.RelocationBatchArgBase", "route_refs": ["files.copy_batch_v2"], "_type": "FieldReference"}, "files.RelocationBatchError.from_lookup": {"fq_name": "files.RelocationBatchError.from_lookup", "param_name": "fromLookupValue", "static_instance": null, "getter_method": "getFromLookupValue", "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.from_write": {"fq_name": "files.RelocationBatchError.from_write", "param_name": "fromWriteValue", "static_instance": null, "getter_method": "getFromWriteValue", "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.to": {"fq_name": "files.RelocationBatchError.to", "param_name": "toValue", "static_instance": null, "getter_method": "getToValue", "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.cant_copy_shared_folder": {"fq_name": "files.RelocationBatchError.cant_copy_shared_folder", "param_name": "cantCopySharedFolderValue", "static_instance": "CANT_COPY_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.cant_nest_shared_folder": {"fq_name": "files.RelocationBatchError.cant_nest_shared_folder", "param_name": "cantNestSharedFolderValue", "static_instance": "CANT_NEST_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.cant_move_folder_into_itself": {"fq_name": "files.RelocationBatchError.cant_move_folder_into_itself", "param_name": "cantMoveFolderIntoItselfValue", "static_instance": "CANT_MOVE_FOLDER_INTO_ITSELF", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.too_many_files": {"fq_name": "files.RelocationBatchError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.duplicated_or_nested_paths": {"fq_name": "files.RelocationBatchError.duplicated_or_nested_paths", "param_name": "duplicatedOrNestedPathsValue", "static_instance": "DUPLICATED_OR_NESTED_PATHS", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.cant_transfer_ownership": {"fq_name": "files.RelocationBatchError.cant_transfer_ownership", "param_name": "cantTransferOwnershipValue", "static_instance": "CANT_TRANSFER_OWNERSHIP", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.insufficient_quota": {"fq_name": "files.RelocationBatchError.insufficient_quota", "param_name": "insufficientQuotaValue", "static_instance": "INSUFFICIENT_QUOTA", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.internal_error": {"fq_name": "files.RelocationBatchError.internal_error", "param_name": "internalErrorValue", "static_instance": "INTERNAL_ERROR", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.cant_move_shared_folder": {"fq_name": "files.RelocationBatchError.cant_move_shared_folder", "param_name": "cantMoveSharedFolderValue", "static_instance": "CANT_MOVE_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.cant_move_into_vault": {"fq_name": "files.RelocationBatchError.cant_move_into_vault", "param_name": "cantMoveIntoVaultValue", "static_instance": null, "getter_method": "getCantMoveIntoVaultValue", "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.cant_move_into_family": {"fq_name": "files.RelocationBatchError.cant_move_into_family", "param_name": "cantMoveIntoFamilyValue", "static_instance": null, "getter_method": "getCantMoveIntoFamilyValue", "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.other": {"fq_name": "files.RelocationBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchError.too_many_write_operations": {"fq_name": "files.RelocationBatchError.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchErrorEntry.relocation_error": {"fq_name": "files.RelocationBatchErrorEntry.relocation_error", "param_name": "relocationErrorValue", "static_instance": null, "getter_method": "getRelocationErrorValue", "containing_data_type_ref": "files.RelocationBatchErrorEntry", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchErrorEntry.internal_error": {"fq_name": "files.RelocationBatchErrorEntry.internal_error", "param_name": "internalErrorValue", "static_instance": "INTERNAL_ERROR", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchErrorEntry", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchErrorEntry.too_many_write_operations": {"fq_name": "files.RelocationBatchErrorEntry.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchErrorEntry", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchErrorEntry.other": {"fq_name": "files.RelocationBatchErrorEntry.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchErrorEntry", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchJobStatus.in_progress": {"fq_name": "files.RelocationBatchJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchJobStatus.complete": {"fq_name": "files.RelocationBatchJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.RelocationBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchJobStatus.failed": {"fq_name": "files.RelocationBatchJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "files.RelocationBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchLaunch.async_job_id": {"fq_name": "files.RelocationBatchLaunch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "files.RelocationBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchLaunch.complete": {"fq_name": "files.RelocationBatchLaunch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.RelocationBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchLaunch.other": {"fq_name": "files.RelocationBatchLaunch.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchResult.entries": {"fq_name": "files.RelocationBatchResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.RelocationBatchResult", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchResultData.metadata": {"fq_name": "files.RelocationBatchResultData.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.RelocationBatchResultData", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchResultEntry.success": {"fq_name": "files.RelocationBatchResultEntry.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "files.RelocationBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchResultEntry.failure": {"fq_name": "files.RelocationBatchResultEntry.failure", "param_name": "failureValue", "static_instance": null, "getter_method": "getFailureValue", "containing_data_type_ref": "files.RelocationBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchResultEntry.other": {"fq_name": "files.RelocationBatchResultEntry.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchV2JobStatus.in_progress": {"fq_name": "files.RelocationBatchV2JobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.RelocationBatchV2JobStatus", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchV2JobStatus.complete": {"fq_name": "files.RelocationBatchV2JobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.RelocationBatchV2JobStatus", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchV2Launch.async_job_id": {"fq_name": "files.RelocationBatchV2Launch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "files.RelocationBatchV2Launch", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchV2Launch.complete": {"fq_name": "files.RelocationBatchV2Launch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.RelocationBatchV2Launch", "route_refs": [], "_type": "FieldReference"}, "files.RelocationBatchV2Result.entries": {"fq_name": "files.RelocationBatchV2Result.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.RelocationBatchV2Result", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.from_lookup": {"fq_name": "files.RelocationError.from_lookup", "param_name": "fromLookupValue", "static_instance": null, "getter_method": "getFromLookupValue", "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.from_write": {"fq_name": "files.RelocationError.from_write", "param_name": "fromWriteValue", "static_instance": null, "getter_method": "getFromWriteValue", "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.to": {"fq_name": "files.RelocationError.to", "param_name": "toValue", "static_instance": null, "getter_method": "getToValue", "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.cant_copy_shared_folder": {"fq_name": "files.RelocationError.cant_copy_shared_folder", "param_name": "cantCopySharedFolderValue", "static_instance": "CANT_COPY_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.cant_nest_shared_folder": {"fq_name": "files.RelocationError.cant_nest_shared_folder", "param_name": "cantNestSharedFolderValue", "static_instance": "CANT_NEST_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.cant_move_folder_into_itself": {"fq_name": "files.RelocationError.cant_move_folder_into_itself", "param_name": "cantMoveFolderIntoItselfValue", "static_instance": "CANT_MOVE_FOLDER_INTO_ITSELF", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.too_many_files": {"fq_name": "files.RelocationError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.duplicated_or_nested_paths": {"fq_name": "files.RelocationError.duplicated_or_nested_paths", "param_name": "duplicatedOrNestedPathsValue", "static_instance": "DUPLICATED_OR_NESTED_PATHS", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.cant_transfer_ownership": {"fq_name": "files.RelocationError.cant_transfer_ownership", "param_name": "cantTransferOwnershipValue", "static_instance": "CANT_TRANSFER_OWNERSHIP", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.insufficient_quota": {"fq_name": "files.RelocationError.insufficient_quota", "param_name": "insufficientQuotaValue", "static_instance": "INSUFFICIENT_QUOTA", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.internal_error": {"fq_name": "files.RelocationError.internal_error", "param_name": "internalErrorValue", "static_instance": "INTERNAL_ERROR", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.cant_move_shared_folder": {"fq_name": "files.RelocationError.cant_move_shared_folder", "param_name": "cantMoveSharedFolderValue", "static_instance": "CANT_MOVE_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.cant_move_into_vault": {"fq_name": "files.RelocationError.cant_move_into_vault", "param_name": "cantMoveIntoVaultValue", "static_instance": null, "getter_method": "getCantMoveIntoVaultValue", "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.cant_move_into_family": {"fq_name": "files.RelocationError.cant_move_into_family", "param_name": "cantMoveIntoFamilyValue", "static_instance": null, "getter_method": "getCantMoveIntoFamilyValue", "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationError.other": {"fq_name": "files.RelocationError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.RelocationError", "route_refs": [], "_type": "FieldReference"}, "files.RelocationPath.from_path": {"fq_name": "files.RelocationPath.from_path", "param_name": "fromPath", "static_instance": null, "getter_method": "getFromPath", "containing_data_type_ref": "files.RelocationPath", "route_refs": [], "_type": "FieldReference"}, "files.RelocationPath.to_path": {"fq_name": "files.RelocationPath.to_path", "param_name": "toPath", "static_instance": null, "getter_method": "getToPath", "containing_data_type_ref": "files.RelocationPath", "route_refs": [], "_type": "FieldReference"}, "files.RelocationResult.metadata": {"fq_name": "files.RelocationResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.RelocationResult", "route_refs": [], "_type": "FieldReference"}, "files.RemoveTagArg.path": {"fq_name": "files.RemoveTagArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.RemoveTagArg", "route_refs": [], "_type": "FieldReference"}, "files.RemoveTagArg.tag_text": {"fq_name": "files.RemoveTagArg.tag_text", "param_name": "tagText", "static_instance": null, "getter_method": "getTagText", "containing_data_type_ref": "files.RemoveTagArg", "route_refs": [], "_type": "FieldReference"}, "files.RemoveTagError.path": {"fq_name": "files.RemoveTagError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.RemoveTagError", "route_refs": [], "_type": "FieldReference"}, "files.RemoveTagError.other": {"fq_name": "files.RemoveTagError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.RemoveTagError", "route_refs": [], "_type": "FieldReference"}, "files.RemoveTagError.tag_not_present": {"fq_name": "files.RemoveTagError.tag_not_present", "param_name": "tagNotPresentValue", "static_instance": "TAG_NOT_PRESENT", "getter_method": null, "containing_data_type_ref": "files.RemoveTagError", "route_refs": [], "_type": "FieldReference"}, "files.RestoreArg.path": {"fq_name": "files.RestoreArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.RestoreArg", "route_refs": [], "_type": "FieldReference"}, "files.RestoreArg.rev": {"fq_name": "files.RestoreArg.rev", "param_name": "rev", "static_instance": null, "getter_method": "getRev", "containing_data_type_ref": "files.RestoreArg", "route_refs": [], "_type": "FieldReference"}, "files.RestoreError.path_lookup": {"fq_name": "files.RestoreError.path_lookup", "param_name": "pathLookupValue", "static_instance": null, "getter_method": "getPathLookupValue", "containing_data_type_ref": "files.RestoreError", "route_refs": [], "_type": "FieldReference"}, "files.RestoreError.path_write": {"fq_name": "files.RestoreError.path_write", "param_name": "pathWriteValue", "static_instance": null, "getter_method": "getPathWriteValue", "containing_data_type_ref": "files.RestoreError", "route_refs": [], "_type": "FieldReference"}, "files.RestoreError.invalid_revision": {"fq_name": "files.RestoreError.invalid_revision", "param_name": "invalidRevisionValue", "static_instance": "INVALID_REVISION", "getter_method": null, "containing_data_type_ref": "files.RestoreError", "route_refs": [], "_type": "FieldReference"}, "files.RestoreError.in_progress": {"fq_name": "files.RestoreError.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.RestoreError", "route_refs": [], "_type": "FieldReference"}, "files.RestoreError.other": {"fq_name": "files.RestoreError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.RestoreError", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceArg.copy_reference": {"fq_name": "files.SaveCopyReferenceArg.copy_reference", "param_name": "copyReference", "static_instance": null, "getter_method": "getCopyReference", "containing_data_type_ref": "files.SaveCopyReferenceArg", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceArg.path": {"fq_name": "files.SaveCopyReferenceArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.SaveCopyReferenceArg", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceError.path": {"fq_name": "files.SaveCopyReferenceError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.SaveCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceError.invalid_copy_reference": {"fq_name": "files.SaveCopyReferenceError.invalid_copy_reference", "param_name": "invalidCopyReferenceValue", "static_instance": "INVALID_COPY_REFERENCE", "getter_method": null, "containing_data_type_ref": "files.SaveCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceError.no_permission": {"fq_name": "files.SaveCopyReferenceError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "files.SaveCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceError.not_found": {"fq_name": "files.SaveCopyReferenceError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "files.SaveCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceError.too_many_files": {"fq_name": "files.SaveCopyReferenceError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "files.SaveCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceError.other": {"fq_name": "files.SaveCopyReferenceError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SaveCopyReferenceError", "route_refs": [], "_type": "FieldReference"}, "files.SaveCopyReferenceResult.metadata": {"fq_name": "files.SaveCopyReferenceResult.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.SaveCopyReferenceResult", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlArg.path": {"fq_name": "files.SaveUrlArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.SaveUrlArg", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlArg.url": {"fq_name": "files.SaveUrlArg.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "files.SaveUrlArg", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlError.path": {"fq_name": "files.SaveUrlError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.SaveUrlError", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlError.download_failed": {"fq_name": "files.SaveUrlError.download_failed", "param_name": "downloadFailedValue", "static_instance": "DOWNLOAD_FAILED", "getter_method": null, "containing_data_type_ref": "files.SaveUrlError", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlError.invalid_url": {"fq_name": "files.SaveUrlError.invalid_url", "param_name": "invalidUrlValue", "static_instance": "INVALID_URL", "getter_method": null, "containing_data_type_ref": "files.SaveUrlError", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlError.not_found": {"fq_name": "files.SaveUrlError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "files.SaveUrlError", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlError.other": {"fq_name": "files.SaveUrlError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SaveUrlError", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlJobStatus.in_progress": {"fq_name": "files.SaveUrlJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.SaveUrlJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlJobStatus.complete": {"fq_name": "files.SaveUrlJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.SaveUrlJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlJobStatus.failed": {"fq_name": "files.SaveUrlJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "files.SaveUrlJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlResult.async_job_id": {"fq_name": "files.SaveUrlResult.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "files.SaveUrlResult", "route_refs": [], "_type": "FieldReference"}, "files.SaveUrlResult.complete": {"fq_name": "files.SaveUrlResult.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.SaveUrlResult", "route_refs": [], "_type": "FieldReference"}, "files.SearchArg.path": {"fq_name": "files.SearchArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.SearchArg", "route_refs": [], "_type": "FieldReference"}, "files.SearchArg.query": {"fq_name": "files.SearchArg.query", "param_name": "query", "static_instance": null, "getter_method": "getQuery", "containing_data_type_ref": "files.SearchArg", "route_refs": [], "_type": "FieldReference"}, "files.SearchArg.start": {"fq_name": "files.SearchArg.start", "param_name": "start", "static_instance": null, "getter_method": "getStart", "containing_data_type_ref": "files.SearchArg", "route_refs": [], "_type": "FieldReference"}, "files.SearchArg.max_results": {"fq_name": "files.SearchArg.max_results", "param_name": "maxResults", "static_instance": null, "getter_method": "getMaxResults", "containing_data_type_ref": "files.SearchArg", "route_refs": [], "_type": "FieldReference"}, "files.SearchArg.mode": {"fq_name": "files.SearchArg.mode", "param_name": "mode", "static_instance": null, "getter_method": "getMode", "containing_data_type_ref": "files.SearchArg", "route_refs": [], "_type": "FieldReference"}, "files.SearchError.path": {"fq_name": "files.SearchError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.SearchError", "route_refs": [], "_type": "FieldReference"}, "files.SearchError.invalid_argument": {"fq_name": "files.SearchError.invalid_argument", "param_name": "invalidArgumentValue", "static_instance": null, "getter_method": "getInvalidArgumentValue", "containing_data_type_ref": "files.SearchError", "route_refs": [], "_type": "FieldReference"}, "files.SearchError.internal_error": {"fq_name": "files.SearchError.internal_error", "param_name": "internalErrorValue", "static_instance": "INTERNAL_ERROR", "getter_method": null, "containing_data_type_ref": "files.SearchError", "route_refs": [], "_type": "FieldReference"}, "files.SearchError.other": {"fq_name": "files.SearchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SearchError", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatch.match_type": {"fq_name": "files.SearchMatch.match_type", "param_name": "matchType", "static_instance": null, "getter_method": "getMatchType", "containing_data_type_ref": "files.SearchMatch", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatch.metadata": {"fq_name": "files.SearchMatch.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.SearchMatch", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchFieldOptions.include_highlights": {"fq_name": "files.SearchMatchFieldOptions.include_highlights", "param_name": "includeHighlights", "static_instance": null, "getter_method": "getIncludeHighlights", "containing_data_type_ref": "files.SearchMatchFieldOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchType.filename": {"fq_name": "files.SearchMatchType.filename", "param_name": "filenameValue", "static_instance": "FILENAME", "getter_method": null, "containing_data_type_ref": "files.SearchMatchType", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchType.content": {"fq_name": "files.SearchMatchType.content", "param_name": "contentValue", "static_instance": "CONTENT", "getter_method": null, "containing_data_type_ref": "files.SearchMatchType", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchType.both": {"fq_name": "files.SearchMatchType.both", "param_name": "bothValue", "static_instance": "BOTH", "getter_method": null, "containing_data_type_ref": "files.SearchMatchType", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchTypeV2.filename": {"fq_name": "files.SearchMatchTypeV2.filename", "param_name": "filenameValue", "static_instance": "FILENAME", "getter_method": null, "containing_data_type_ref": "files.SearchMatchTypeV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchTypeV2.file_content": {"fq_name": "files.SearchMatchTypeV2.file_content", "param_name": "fileContentValue", "static_instance": "FILE_CONTENT", "getter_method": null, "containing_data_type_ref": "files.SearchMatchTypeV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchTypeV2.filename_and_content": {"fq_name": "files.SearchMatchTypeV2.filename_and_content", "param_name": "filenameAndContentValue", "static_instance": "FILENAME_AND_CONTENT", "getter_method": null, "containing_data_type_ref": "files.SearchMatchTypeV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchTypeV2.image_content": {"fq_name": "files.SearchMatchTypeV2.image_content", "param_name": "imageContentValue", "static_instance": "IMAGE_CONTENT", "getter_method": null, "containing_data_type_ref": "files.SearchMatchTypeV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchTypeV2.other": {"fq_name": "files.SearchMatchTypeV2.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SearchMatchTypeV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchV2.metadata": {"fq_name": "files.SearchMatchV2.metadata", "param_name": "metadata", "static_instance": null, "getter_method": "getMetadata", "containing_data_type_ref": "files.SearchMatchV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchV2.match_type": {"fq_name": "files.SearchMatchV2.match_type", "param_name": "matchType", "static_instance": null, "getter_method": "getMatchType", "containing_data_type_ref": "files.SearchMatchV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMatchV2.highlight_spans": {"fq_name": "files.SearchMatchV2.highlight_spans", "param_name": "highlightSpans", "static_instance": null, "getter_method": "getHighlightSpans", "containing_data_type_ref": "files.SearchMatchV2", "route_refs": [], "_type": "FieldReference"}, "files.SearchMode.filename": {"fq_name": "files.SearchMode.filename", "param_name": "filenameValue", "static_instance": "FILENAME", "getter_method": null, "containing_data_type_ref": "files.SearchMode", "route_refs": [], "_type": "FieldReference"}, "files.SearchMode.filename_and_content": {"fq_name": "files.SearchMode.filename_and_content", "param_name": "filenameAndContentValue", "static_instance": "FILENAME_AND_CONTENT", "getter_method": null, "containing_data_type_ref": "files.SearchMode", "route_refs": [], "_type": "FieldReference"}, "files.SearchMode.deleted_filename": {"fq_name": "files.SearchMode.deleted_filename", "param_name": "deletedFilenameValue", "static_instance": "DELETED_FILENAME", "getter_method": null, "containing_data_type_ref": "files.SearchMode", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.path": {"fq_name": "files.SearchOptions.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.max_results": {"fq_name": "files.SearchOptions.max_results", "param_name": "maxResults", "static_instance": null, "getter_method": "getMaxResults", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.order_by": {"fq_name": "files.SearchOptions.order_by", "param_name": "orderBy", "static_instance": null, "getter_method": "getOrderBy", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.file_status": {"fq_name": "files.SearchOptions.file_status", "param_name": "fileStatus", "static_instance": null, "getter_method": "getFileStatus", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.filename_only": {"fq_name": "files.SearchOptions.filename_only", "param_name": "filenameOnly", "static_instance": null, "getter_method": "getFilenameOnly", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.file_extensions": {"fq_name": "files.SearchOptions.file_extensions", "param_name": "fileExtensions", "static_instance": null, "getter_method": "getFileExtensions", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.file_categories": {"fq_name": "files.SearchOptions.file_categories", "param_name": "fileCategories", "static_instance": null, "getter_method": "getFileCategories", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOptions.account_id": {"fq_name": "files.SearchOptions.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "files.SearchOptions", "route_refs": [], "_type": "FieldReference"}, "files.SearchOrderBy.relevance": {"fq_name": "files.SearchOrderBy.relevance", "param_name": "relevanceValue", "static_instance": "RELEVANCE", "getter_method": null, "containing_data_type_ref": "files.SearchOrderBy", "route_refs": [], "_type": "FieldReference"}, "files.SearchOrderBy.last_modified_time": {"fq_name": "files.SearchOrderBy.last_modified_time", "param_name": "lastModifiedTimeValue", "static_instance": "LAST_MODIFIED_TIME", "getter_method": null, "containing_data_type_ref": "files.SearchOrderBy", "route_refs": [], "_type": "FieldReference"}, "files.SearchOrderBy.other": {"fq_name": "files.SearchOrderBy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SearchOrderBy", "route_refs": [], "_type": "FieldReference"}, "files.SearchResult.matches": {"fq_name": "files.SearchResult.matches", "param_name": "matches", "static_instance": null, "getter_method": "getMatches", "containing_data_type_ref": "files.SearchResult", "route_refs": [], "_type": "FieldReference"}, "files.SearchResult.more": {"fq_name": "files.SearchResult.more", "param_name": "more", "static_instance": null, "getter_method": "getMore", "containing_data_type_ref": "files.SearchResult", "route_refs": [], "_type": "FieldReference"}, "files.SearchResult.start": {"fq_name": "files.SearchResult.start", "param_name": "start", "static_instance": null, "getter_method": "getStart", "containing_data_type_ref": "files.SearchResult", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2Arg.query": {"fq_name": "files.SearchV2Arg.query", "param_name": "query", "static_instance": null, "getter_method": "getQuery", "containing_data_type_ref": "files.SearchV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2Arg.options": {"fq_name": "files.SearchV2Arg.options", "param_name": "options", "static_instance": null, "getter_method": "getOptions", "containing_data_type_ref": "files.SearchV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2Arg.match_field_options": {"fq_name": "files.SearchV2Arg.match_field_options", "param_name": "matchFieldOptions", "static_instance": null, "getter_method": "getMatchFieldOptions", "containing_data_type_ref": "files.SearchV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2Arg.include_highlights": {"fq_name": "files.SearchV2Arg.include_highlights", "param_name": "includeHighlights", "static_instance": null, "getter_method": "getIncludeHighlights", "containing_data_type_ref": "files.SearchV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2ContinueArg.cursor": {"fq_name": "files.SearchV2ContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.SearchV2ContinueArg", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2Result.matches": {"fq_name": "files.SearchV2Result.matches", "param_name": "matches", "static_instance": null, "getter_method": "getMatches", "containing_data_type_ref": "files.SearchV2Result", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2Result.has_more": {"fq_name": "files.SearchV2Result.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "files.SearchV2Result", "route_refs": [], "_type": "FieldReference"}, "files.SearchV2Result.cursor": {"fq_name": "files.SearchV2Result.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.SearchV2Result", "route_refs": [], "_type": "FieldReference"}, "files.SharedLink.url": {"fq_name": "files.SharedLink.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "files.SharedLink", "route_refs": [], "_type": "FieldReference"}, "files.SharedLink.password": {"fq_name": "files.SharedLink.password", "param_name": "password", "static_instance": null, "getter_method": "getPassword", "containing_data_type_ref": "files.SharedLink", "route_refs": [], "_type": "FieldReference"}, "files.SharedLinkFileInfo.url": {"fq_name": "files.SharedLinkFileInfo.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "files.SharedLinkFileInfo", "route_refs": [], "_type": "FieldReference"}, "files.SharedLinkFileInfo.path": {"fq_name": "files.SharedLinkFileInfo.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.SharedLinkFileInfo", "route_refs": [], "_type": "FieldReference"}, "files.SharedLinkFileInfo.password": {"fq_name": "files.SharedLinkFileInfo.password", "param_name": "password", "static_instance": null, "getter_method": "getPassword", "containing_data_type_ref": "files.SharedLinkFileInfo", "route_refs": [], "_type": "FieldReference"}, "files.SharingInfo.read_only": {"fq_name": "files.SharingInfo.read_only", "param_name": "readOnly", "static_instance": null, "getter_method": "getReadOnly", "containing_data_type_ref": "files.SharingInfo", "route_refs": [], "_type": "FieldReference"}, "files.SingleUserLock.created": {"fq_name": "files.SingleUserLock.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "files.SingleUserLock", "route_refs": [], "_type": "FieldReference"}, "files.SingleUserLock.lock_holder_account_id": {"fq_name": "files.SingleUserLock.lock_holder_account_id", "param_name": "lockHolderAccountId", "static_instance": null, "getter_method": "getLockHolderAccountId", "containing_data_type_ref": "files.SingleUserLock", "route_refs": [], "_type": "FieldReference"}, "files.SingleUserLock.lock_holder_team_id": {"fq_name": "files.SingleUserLock.lock_holder_team_id", "param_name": "lockHolderTeamId", "static_instance": null, "getter_method": "getLockHolderTeamId", "containing_data_type_ref": "files.SingleUserLock", "route_refs": [], "_type": "FieldReference"}, "files.SymlinkInfo.target": {"fq_name": "files.SymlinkInfo.target", "param_name": "target", "static_instance": null, "getter_method": "getTarget", "containing_data_type_ref": "files.SymlinkInfo", "route_refs": [], "_type": "FieldReference"}, "files.SyncSetting.default": {"fq_name": "files.SyncSetting.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "files.SyncSetting", "route_refs": [], "_type": "FieldReference"}, "files.SyncSetting.not_synced": {"fq_name": "files.SyncSetting.not_synced", "param_name": "notSyncedValue", "static_instance": "NOT_SYNCED", "getter_method": null, "containing_data_type_ref": "files.SyncSetting", "route_refs": [], "_type": "FieldReference"}, "files.SyncSetting.not_synced_inactive": {"fq_name": "files.SyncSetting.not_synced_inactive", "param_name": "notSyncedInactiveValue", "static_instance": "NOT_SYNCED_INACTIVE", "getter_method": null, "containing_data_type_ref": "files.SyncSetting", "route_refs": [], "_type": "FieldReference"}, "files.SyncSetting.other": {"fq_name": "files.SyncSetting.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SyncSetting", "route_refs": [], "_type": "FieldReference"}, "files.SyncSettingArg.default": {"fq_name": "files.SyncSettingArg.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "files.SyncSettingArg", "route_refs": [], "_type": "FieldReference"}, "files.SyncSettingArg.not_synced": {"fq_name": "files.SyncSettingArg.not_synced", "param_name": "notSyncedValue", "static_instance": "NOT_SYNCED", "getter_method": null, "containing_data_type_ref": "files.SyncSettingArg", "route_refs": [], "_type": "FieldReference"}, "files.SyncSettingArg.other": {"fq_name": "files.SyncSettingArg.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SyncSettingArg", "route_refs": [], "_type": "FieldReference"}, "files.SyncSettingsError.path": {"fq_name": "files.SyncSettingsError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.SyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "files.SyncSettingsError.unsupported_combination": {"fq_name": "files.SyncSettingsError.unsupported_combination", "param_name": "unsupportedCombinationValue", "static_instance": "UNSUPPORTED_COMBINATION", "getter_method": null, "containing_data_type_ref": "files.SyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "files.SyncSettingsError.unsupported_configuration": {"fq_name": "files.SyncSettingsError.unsupported_configuration", "param_name": "unsupportedConfigurationValue", "static_instance": "UNSUPPORTED_CONFIGURATION", "getter_method": null, "containing_data_type_ref": "files.SyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "files.SyncSettingsError.other": {"fq_name": "files.SyncSettingsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.SyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "files.Tag.user_generated_tag": {"fq_name": "files.Tag.user_generated_tag", "param_name": "userGeneratedTagValue", "static_instance": null, "getter_method": "getUserGeneratedTagValue", "containing_data_type_ref": "files.Tag", "route_refs": [], "_type": "FieldReference"}, "files.Tag.other": {"fq_name": "files.Tag.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.Tag", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailArg.path": {"fq_name": "files.ThumbnailArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.ThumbnailArg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailArg.format": {"fq_name": "files.ThumbnailArg.format", "param_name": "format", "static_instance": null, "getter_method": "getFormat", "containing_data_type_ref": "files.ThumbnailArg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailArg.size": {"fq_name": "files.ThumbnailArg.size", "param_name": "size", "static_instance": null, "getter_method": "getSize", "containing_data_type_ref": "files.ThumbnailArg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailArg.mode": {"fq_name": "files.ThumbnailArg.mode", "param_name": "mode", "static_instance": null, "getter_method": "getMode", "containing_data_type_ref": "files.ThumbnailArg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailError.path": {"fq_name": "files.ThumbnailError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.ThumbnailError", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailError.unsupported_extension": {"fq_name": "files.ThumbnailError.unsupported_extension", "param_name": "unsupportedExtensionValue", "static_instance": "UNSUPPORTED_EXTENSION", "getter_method": null, "containing_data_type_ref": "files.ThumbnailError", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailError.unsupported_image": {"fq_name": "files.ThumbnailError.unsupported_image", "param_name": "unsupportedImageValue", "static_instance": "UNSUPPORTED_IMAGE", "getter_method": null, "containing_data_type_ref": "files.ThumbnailError", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailError.conversion_error": {"fq_name": "files.ThumbnailError.conversion_error", "param_name": "conversionErrorValue", "static_instance": "CONVERSION_ERROR", "getter_method": null, "containing_data_type_ref": "files.ThumbnailError", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailFormat.jpeg": {"fq_name": "files.ThumbnailFormat.jpeg", "param_name": "jpegValue", "static_instance": "JPEG", "getter_method": null, "containing_data_type_ref": "files.ThumbnailFormat", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailFormat.png": {"fq_name": "files.ThumbnailFormat.png", "param_name": "pngValue", "static_instance": "PNG", "getter_method": null, "containing_data_type_ref": "files.ThumbnailFormat", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailMode.strict": {"fq_name": "files.ThumbnailMode.strict", "param_name": "strictValue", "static_instance": "STRICT", "getter_method": null, "containing_data_type_ref": "files.ThumbnailMode", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailMode.bestfit": {"fq_name": "files.ThumbnailMode.bestfit", "param_name": "bestfitValue", "static_instance": "BESTFIT", "getter_method": null, "containing_data_type_ref": "files.ThumbnailMode", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailMode.fitone_bestfit": {"fq_name": "files.ThumbnailMode.fitone_bestfit", "param_name": "fitoneBestfitValue", "static_instance": "FITONE_BESTFIT", "getter_method": null, "containing_data_type_ref": "files.ThumbnailMode", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w32h32": {"fq_name": "files.ThumbnailSize.w32h32", "param_name": "w32h32Value", "static_instance": "W32H32", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w64h64": {"fq_name": "files.ThumbnailSize.w64h64", "param_name": "w64h64Value", "static_instance": "W64H64", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w128h128": {"fq_name": "files.ThumbnailSize.w128h128", "param_name": "w128h128Value", "static_instance": "W128H128", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w256h256": {"fq_name": "files.ThumbnailSize.w256h256", "param_name": "w256h256Value", "static_instance": "W256H256", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w480h320": {"fq_name": "files.ThumbnailSize.w480h320", "param_name": "w480h320Value", "static_instance": "W480H320", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w640h480": {"fq_name": "files.ThumbnailSize.w640h480", "param_name": "w640h480Value", "static_instance": "W640H480", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w960h640": {"fq_name": "files.ThumbnailSize.w960h640", "param_name": "w960h640Value", "static_instance": "W960H640", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w1024h768": {"fq_name": "files.ThumbnailSize.w1024h768", "param_name": "w1024h768Value", "static_instance": "W1024H768", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailSize.w2048h1536": {"fq_name": "files.ThumbnailSize.w2048h1536", "param_name": "w2048h1536Value", "static_instance": "W2048H1536", "getter_method": null, "containing_data_type_ref": "files.ThumbnailSize", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Arg.resource": {"fq_name": "files.ThumbnailV2Arg.resource", "param_name": "resource", "static_instance": null, "getter_method": "getResource", "containing_data_type_ref": "files.ThumbnailV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Arg.format": {"fq_name": "files.ThumbnailV2Arg.format", "param_name": "format", "static_instance": null, "getter_method": "getFormat", "containing_data_type_ref": "files.ThumbnailV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Arg.size": {"fq_name": "files.ThumbnailV2Arg.size", "param_name": "size", "static_instance": null, "getter_method": "getSize", "containing_data_type_ref": "files.ThumbnailV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Arg.mode": {"fq_name": "files.ThumbnailV2Arg.mode", "param_name": "mode", "static_instance": null, "getter_method": "getMode", "containing_data_type_ref": "files.ThumbnailV2Arg", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Error.path": {"fq_name": "files.ThumbnailV2Error.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.ThumbnailV2Error", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Error.unsupported_extension": {"fq_name": "files.ThumbnailV2Error.unsupported_extension", "param_name": "unsupportedExtensionValue", "static_instance": "UNSUPPORTED_EXTENSION", "getter_method": null, "containing_data_type_ref": "files.ThumbnailV2Error", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Error.unsupported_image": {"fq_name": "files.ThumbnailV2Error.unsupported_image", "param_name": "unsupportedImageValue", "static_instance": "UNSUPPORTED_IMAGE", "getter_method": null, "containing_data_type_ref": "files.ThumbnailV2Error", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Error.conversion_error": {"fq_name": "files.ThumbnailV2Error.conversion_error", "param_name": "conversionErrorValue", "static_instance": "CONVERSION_ERROR", "getter_method": null, "containing_data_type_ref": "files.ThumbnailV2Error", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Error.access_denied": {"fq_name": "files.ThumbnailV2Error.access_denied", "param_name": "accessDeniedValue", "static_instance": "ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "files.ThumbnailV2Error", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Error.not_found": {"fq_name": "files.ThumbnailV2Error.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "files.ThumbnailV2Error", "route_refs": [], "_type": "FieldReference"}, "files.ThumbnailV2Error.other": {"fq_name": "files.ThumbnailV2Error.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.ThumbnailV2Error", "route_refs": [], "_type": "FieldReference"}, "files.UnlockFileArg.path": {"fq_name": "files.UnlockFileArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.UnlockFileArg", "route_refs": [], "_type": "FieldReference"}, "files.UnlockFileBatchArg.entries": {"fq_name": "files.UnlockFileBatchArg.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.UnlockFileBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.path": {"fq_name": "files.UploadArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.mode": {"fq_name": "files.UploadArg.mode", "param_name": "mode", "static_instance": null, "getter_method": "getMode", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.autorename": {"fq_name": "files.UploadArg.autorename", "param_name": "autorename", "static_instance": null, "getter_method": "getAutorename", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.client_modified": {"fq_name": "files.UploadArg.client_modified", "param_name": "clientModified", "static_instance": null, "getter_method": "getClientModified", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.mute": {"fq_name": "files.UploadArg.mute", "param_name": "mute", "static_instance": null, "getter_method": "getMute", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.property_groups": {"fq_name": "files.UploadArg.property_groups", "param_name": "propertyGroups", "static_instance": null, "getter_method": "getPropertyGroups", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.strict_conflict": {"fq_name": "files.UploadArg.strict_conflict", "param_name": "strictConflict", "static_instance": null, "getter_method": "getStrictConflict", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadArg.content_hash": {"fq_name": "files.UploadArg.content_hash", "param_name": "contentHash", "static_instance": null, "getter_method": "getContentHash", "containing_data_type_ref": "files.UploadArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadError.path": {"fq_name": "files.UploadError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.UploadError", "route_refs": [], "_type": "FieldReference"}, "files.UploadError.properties_error": {"fq_name": "files.UploadError.properties_error", "param_name": "propertiesErrorValue", "static_instance": null, "getter_method": "getPropertiesErrorValue", "containing_data_type_ref": "files.UploadError", "route_refs": [], "_type": "FieldReference"}, "files.UploadError.payload_too_large": {"fq_name": "files.UploadError.payload_too_large", "param_name": "payloadTooLargeValue", "static_instance": "PAYLOAD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.UploadError", "route_refs": [], "_type": "FieldReference"}, "files.UploadError.content_hash_mismatch": {"fq_name": "files.UploadError.content_hash_mismatch", "param_name": "contentHashMismatchValue", "static_instance": "CONTENT_HASH_MISMATCH", "getter_method": null, "containing_data_type_ref": "files.UploadError", "route_refs": [], "_type": "FieldReference"}, "files.UploadError.other": {"fq_name": "files.UploadError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.UploadError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendArg.cursor": {"fq_name": "files.UploadSessionAppendArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.UploadSessionAppendArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendArg.close": {"fq_name": "files.UploadSessionAppendArg.close", "param_name": "close", "static_instance": null, "getter_method": "getClose", "containing_data_type_ref": "files.UploadSessionAppendArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendArg.content_hash": {"fq_name": "files.UploadSessionAppendArg.content_hash", "param_name": "contentHash", "static_instance": null, "getter_method": "getContentHash", "containing_data_type_ref": "files.UploadSessionAppendArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.not_found": {"fq_name": "files.UploadSessionAppendError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.incorrect_offset": {"fq_name": "files.UploadSessionAppendError.incorrect_offset", "param_name": "incorrectOffsetValue", "static_instance": null, "getter_method": "getIncorrectOffsetValue", "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.closed": {"fq_name": "files.UploadSessionAppendError.closed", "param_name": "closedValue", "static_instance": "CLOSED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.not_closed": {"fq_name": "files.UploadSessionAppendError.not_closed", "param_name": "notClosedValue", "static_instance": "NOT_CLOSED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.too_large": {"fq_name": "files.UploadSessionAppendError.too_large", "param_name": "tooLargeValue", "static_instance": "TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.concurrent_session_invalid_offset": {"fq_name": "files.UploadSessionAppendError.concurrent_session_invalid_offset", "param_name": "concurrentSessionInvalidOffsetValue", "static_instance": "CONCURRENT_SESSION_INVALID_OFFSET", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.concurrent_session_invalid_data_size": {"fq_name": "files.UploadSessionAppendError.concurrent_session_invalid_data_size", "param_name": "concurrentSessionInvalidDataSizeValue", "static_instance": "CONCURRENT_SESSION_INVALID_DATA_SIZE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.payload_too_large": {"fq_name": "files.UploadSessionAppendError.payload_too_large", "param_name": "payloadTooLargeValue", "static_instance": "PAYLOAD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.other": {"fq_name": "files.UploadSessionAppendError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionAppendError.content_hash_mismatch": {"fq_name": "files.UploadSessionAppendError.content_hash_mismatch", "param_name": "contentHashMismatchValue", "static_instance": "CONTENT_HASH_MISMATCH", "getter_method": null, "containing_data_type_ref": "files.UploadSessionAppendError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionCursor.session_id": {"fq_name": "files.UploadSessionCursor.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "files.UploadSessionCursor", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionCursor.offset": {"fq_name": "files.UploadSessionCursor.offset", "param_name": "offset", "static_instance": null, "getter_method": "getOffset", "containing_data_type_ref": "files.UploadSessionCursor", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishArg.cursor": {"fq_name": "files.UploadSessionFinishArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "files.UploadSessionFinishArg", "route_refs": ["files.upload_session/finish"], "_type": "FieldReference"}, "files.UploadSessionFinishArg.commit": {"fq_name": "files.UploadSessionFinishArg.commit", "param_name": "commit", "static_instance": null, "getter_method": "getCommit", "containing_data_type_ref": "files.UploadSessionFinishArg", "route_refs": ["files.upload_session/finish"], "_type": "FieldReference"}, "files.UploadSessionFinishArg.content_hash": {"fq_name": "files.UploadSessionFinishArg.content_hash", "param_name": "contentHash", "static_instance": null, "getter_method": "getContentHash", "containing_data_type_ref": "files.UploadSessionFinishArg", "route_refs": ["files.upload_session/finish"], "_type": "FieldReference"}, "files.UploadSessionFinishBatchArg.entries": {"fq_name": "files.UploadSessionFinishBatchArg.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.UploadSessionFinishBatchArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchJobStatus.in_progress": {"fq_name": "files.UploadSessionFinishBatchJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchJobStatus.complete": {"fq_name": "files.UploadSessionFinishBatchJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.UploadSessionFinishBatchJobStatus", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchLaunch.async_job_id": {"fq_name": "files.UploadSessionFinishBatchLaunch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "files.UploadSessionFinishBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchLaunch.complete": {"fq_name": "files.UploadSessionFinishBatchLaunch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "files.UploadSessionFinishBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchLaunch.other": {"fq_name": "files.UploadSessionFinishBatchLaunch.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishBatchLaunch", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchResult.entries": {"fq_name": "files.UploadSessionFinishBatchResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "files.UploadSessionFinishBatchResult", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchResultEntry.success": {"fq_name": "files.UploadSessionFinishBatchResultEntry.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "files.UploadSessionFinishBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishBatchResultEntry.failure": {"fq_name": "files.UploadSessionFinishBatchResultEntry.failure", "param_name": "failureValue", "static_instance": null, "getter_method": "getFailureValue", "containing_data_type_ref": "files.UploadSessionFinishBatchResultEntry", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.lookup_failed": {"fq_name": "files.UploadSessionFinishError.lookup_failed", "param_name": "lookupFailedValue", "static_instance": null, "getter_method": "getLookupFailedValue", "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.path": {"fq_name": "files.UploadSessionFinishError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.properties_error": {"fq_name": "files.UploadSessionFinishError.properties_error", "param_name": "propertiesErrorValue", "static_instance": null, "getter_method": "getPropertiesErrorValue", "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.too_many_shared_folder_targets": {"fq_name": "files.UploadSessionFinishError.too_many_shared_folder_targets", "param_name": "tooManySharedFolderTargetsValue", "static_instance": "TOO_MANY_SHARED_FOLDER_TARGETS", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.too_many_write_operations": {"fq_name": "files.UploadSessionFinishError.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.concurrent_session_data_not_allowed": {"fq_name": "files.UploadSessionFinishError.concurrent_session_data_not_allowed", "param_name": "concurrentSessionDataNotAllowedValue", "static_instance": "CONCURRENT_SESSION_DATA_NOT_ALLOWED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.concurrent_session_not_closed": {"fq_name": "files.UploadSessionFinishError.concurrent_session_not_closed", "param_name": "concurrentSessionNotClosedValue", "static_instance": "CONCURRENT_SESSION_NOT_CLOSED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.concurrent_session_missing_data": {"fq_name": "files.UploadSessionFinishError.concurrent_session_missing_data", "param_name": "concurrentSessionMissingDataValue", "static_instance": "CONCURRENT_SESSION_MISSING_DATA", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.payload_too_large": {"fq_name": "files.UploadSessionFinishError.payload_too_large", "param_name": "payloadTooLargeValue", "static_instance": "PAYLOAD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.content_hash_mismatch": {"fq_name": "files.UploadSessionFinishError.content_hash_mismatch", "param_name": "contentHashMismatchValue", "static_instance": "CONTENT_HASH_MISMATCH", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionFinishError.other": {"fq_name": "files.UploadSessionFinishError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.UploadSessionFinishError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.not_found": {"fq_name": "files.UploadSessionLookupError.not_found", "param_name": "notFoundValue", "static_instance": "NOT_FOUND", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.incorrect_offset": {"fq_name": "files.UploadSessionLookupError.incorrect_offset", "param_name": "incorrectOffsetValue", "static_instance": null, "getter_method": "getIncorrectOffsetValue", "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.closed": {"fq_name": "files.UploadSessionLookupError.closed", "param_name": "closedValue", "static_instance": "CLOSED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.not_closed": {"fq_name": "files.UploadSessionLookupError.not_closed", "param_name": "notClosedValue", "static_instance": "NOT_CLOSED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.too_large": {"fq_name": "files.UploadSessionLookupError.too_large", "param_name": "tooLargeValue", "static_instance": "TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.concurrent_session_invalid_offset": {"fq_name": "files.UploadSessionLookupError.concurrent_session_invalid_offset", "param_name": "concurrentSessionInvalidOffsetValue", "static_instance": "CONCURRENT_SESSION_INVALID_OFFSET", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.concurrent_session_invalid_data_size": {"fq_name": "files.UploadSessionLookupError.concurrent_session_invalid_data_size", "param_name": "concurrentSessionInvalidDataSizeValue", "static_instance": "CONCURRENT_SESSION_INVALID_DATA_SIZE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.payload_too_large": {"fq_name": "files.UploadSessionLookupError.payload_too_large", "param_name": "payloadTooLargeValue", "static_instance": "PAYLOAD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionLookupError.other": {"fq_name": "files.UploadSessionLookupError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.UploadSessionLookupError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionOffsetError.correct_offset": {"fq_name": "files.UploadSessionOffsetError.correct_offset", "param_name": "correctOffset", "static_instance": null, "getter_method": "getCorrectOffset", "containing_data_type_ref": "files.UploadSessionOffsetError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartArg.close": {"fq_name": "files.UploadSessionStartArg.close", "param_name": "close", "static_instance": null, "getter_method": "getClose", "containing_data_type_ref": "files.UploadSessionStartArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartArg.session_type": {"fq_name": "files.UploadSessionStartArg.session_type", "param_name": "sessionType", "static_instance": null, "getter_method": "getSessionType", "containing_data_type_ref": "files.UploadSessionStartArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartArg.content_hash": {"fq_name": "files.UploadSessionStartArg.content_hash", "param_name": "contentHash", "static_instance": null, "getter_method": "getContentHash", "containing_data_type_ref": "files.UploadSessionStartArg", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartBatchArg.num_sessions": {"fq_name": "files.UploadSessionStartBatchArg.num_sessions", "param_name": "numSessions", "static_instance": null, "getter_method": "getNumSessions", "containing_data_type_ref": "files.UploadSessionStartBatchArg", "route_refs": ["files.upload_session/start_batch"], "_type": "FieldReference"}, "files.UploadSessionStartBatchArg.session_type": {"fq_name": "files.UploadSessionStartBatchArg.session_type", "param_name": "sessionType", "static_instance": null, "getter_method": "getSessionType", "containing_data_type_ref": "files.UploadSessionStartBatchArg", "route_refs": ["files.upload_session/start_batch"], "_type": "FieldReference"}, "files.UploadSessionStartBatchResult.session_ids": {"fq_name": "files.UploadSessionStartBatchResult.session_ids", "param_name": "sessionIds", "static_instance": null, "getter_method": "getSessionIds", "containing_data_type_ref": "files.UploadSessionStartBatchResult", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartError.concurrent_session_data_not_allowed": {"fq_name": "files.UploadSessionStartError.concurrent_session_data_not_allowed", "param_name": "concurrentSessionDataNotAllowedValue", "static_instance": "CONCURRENT_SESSION_DATA_NOT_ALLOWED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionStartError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartError.concurrent_session_close_not_allowed": {"fq_name": "files.UploadSessionStartError.concurrent_session_close_not_allowed", "param_name": "concurrentSessionCloseNotAllowedValue", "static_instance": "CONCURRENT_SESSION_CLOSE_NOT_ALLOWED", "getter_method": null, "containing_data_type_ref": "files.UploadSessionStartError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartError.payload_too_large": {"fq_name": "files.UploadSessionStartError.payload_too_large", "param_name": "payloadTooLargeValue", "static_instance": "PAYLOAD_TOO_LARGE", "getter_method": null, "containing_data_type_ref": "files.UploadSessionStartError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartError.content_hash_mismatch": {"fq_name": "files.UploadSessionStartError.content_hash_mismatch", "param_name": "contentHashMismatchValue", "static_instance": "CONTENT_HASH_MISMATCH", "getter_method": null, "containing_data_type_ref": "files.UploadSessionStartError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartError.other": {"fq_name": "files.UploadSessionStartError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.UploadSessionStartError", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionStartResult.session_id": {"fq_name": "files.UploadSessionStartResult.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "files.UploadSessionStartResult", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionType.sequential": {"fq_name": "files.UploadSessionType.sequential", "param_name": "sequentialValue", "static_instance": "SEQUENTIAL", "getter_method": null, "containing_data_type_ref": "files.UploadSessionType", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionType.concurrent": {"fq_name": "files.UploadSessionType.concurrent", "param_name": "concurrentValue", "static_instance": "CONCURRENT", "getter_method": null, "containing_data_type_ref": "files.UploadSessionType", "route_refs": [], "_type": "FieldReference"}, "files.UploadSessionType.other": {"fq_name": "files.UploadSessionType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.UploadSessionType", "route_refs": [], "_type": "FieldReference"}, "files.UploadWriteFailed.reason": {"fq_name": "files.UploadWriteFailed.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "files.UploadWriteFailed", "route_refs": [], "_type": "FieldReference"}, "files.UploadWriteFailed.upload_session_id": {"fq_name": "files.UploadWriteFailed.upload_session_id", "param_name": "uploadSessionId", "static_instance": null, "getter_method": "getUploadSessionId", "containing_data_type_ref": "files.UploadWriteFailed", "route_refs": [], "_type": "FieldReference"}, "files.UserGeneratedTag.tag_text": {"fq_name": "files.UserGeneratedTag.tag_text", "param_name": "tagText", "static_instance": null, "getter_method": "getTagText", "containing_data_type_ref": "files.UserGeneratedTag", "route_refs": [], "_type": "FieldReference"}, "files.VideoMetadata.dimensions": {"fq_name": "files.VideoMetadata.dimensions", "param_name": "dimensions", "static_instance": null, "getter_method": "getDimensions", "containing_data_type_ref": "files.VideoMetadata", "route_refs": [], "_type": "FieldReference"}, "files.VideoMetadata.location": {"fq_name": "files.VideoMetadata.location", "param_name": "location", "static_instance": null, "getter_method": "getLocation", "containing_data_type_ref": "files.VideoMetadata", "route_refs": [], "_type": "FieldReference"}, "files.VideoMetadata.time_taken": {"fq_name": "files.VideoMetadata.time_taken", "param_name": "timeTaken", "static_instance": null, "getter_method": "getTimeTaken", "containing_data_type_ref": "files.VideoMetadata", "route_refs": [], "_type": "FieldReference"}, "files.VideoMetadata.duration": {"fq_name": "files.VideoMetadata.duration", "param_name": "duration", "static_instance": null, "getter_method": "getDuration", "containing_data_type_ref": "files.VideoMetadata", "route_refs": [], "_type": "FieldReference"}, "files.WriteConflictError.file": {"fq_name": "files.WriteConflictError.file", "param_name": "fileValue", "static_instance": "FILE", "getter_method": null, "containing_data_type_ref": "files.WriteConflictError", "route_refs": [], "_type": "FieldReference"}, "files.WriteConflictError.folder": {"fq_name": "files.WriteConflictError.folder", "param_name": "folderValue", "static_instance": "FOLDER", "getter_method": null, "containing_data_type_ref": "files.WriteConflictError", "route_refs": [], "_type": "FieldReference"}, "files.WriteConflictError.file_ancestor": {"fq_name": "files.WriteConflictError.file_ancestor", "param_name": "fileAncestorValue", "static_instance": "FILE_ANCESTOR", "getter_method": null, "containing_data_type_ref": "files.WriteConflictError", "route_refs": [], "_type": "FieldReference"}, "files.WriteConflictError.other": {"fq_name": "files.WriteConflictError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.WriteConflictError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.malformed_path": {"fq_name": "files.WriteError.malformed_path", "param_name": "malformedPathValue", "static_instance": null, "getter_method": "getMalformedPathValue", "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.conflict": {"fq_name": "files.WriteError.conflict", "param_name": "conflictValue", "static_instance": null, "getter_method": "getConflictValue", "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.no_write_permission": {"fq_name": "files.WriteError.no_write_permission", "param_name": "noWritePermissionValue", "static_instance": "NO_WRITE_PERMISSION", "getter_method": null, "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.insufficient_space": {"fq_name": "files.WriteError.insufficient_space", "param_name": "insufficientSpaceValue", "static_instance": "INSUFFICIENT_SPACE", "getter_method": null, "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.disallowed_name": {"fq_name": "files.WriteError.disallowed_name", "param_name": "disallowedNameValue", "static_instance": "DISALLOWED_NAME", "getter_method": null, "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.team_folder": {"fq_name": "files.WriteError.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.operation_suppressed": {"fq_name": "files.WriteError.operation_suppressed", "param_name": "operationSuppressedValue", "static_instance": "OPERATION_SUPPRESSED", "getter_method": null, "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.too_many_write_operations": {"fq_name": "files.WriteError.too_many_write_operations", "param_name": "tooManyWriteOperationsValue", "static_instance": "TOO_MANY_WRITE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteError.other": {"fq_name": "files.WriteError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "files.WriteError", "route_refs": [], "_type": "FieldReference"}, "files.WriteMode.add": {"fq_name": "files.WriteMode.add", "param_name": "addValue", "static_instance": "ADD", "getter_method": null, "containing_data_type_ref": "files.WriteMode", "route_refs": [], "_type": "FieldReference"}, "files.WriteMode.overwrite": {"fq_name": "files.WriteMode.overwrite", "param_name": "overwriteValue", "static_instance": "OVERWRITE", "getter_method": null, "containing_data_type_ref": "files.WriteMode", "route_refs": [], "_type": "FieldReference"}, "files.WriteMode.update": {"fq_name": "files.WriteMode.update", "param_name": "updateValue", "static_instance": null, "getter_method": "getUpdateValue", "containing_data_type_ref": "files.WriteMode", "route_refs": [], "_type": "FieldReference"}, "openid.OpenIdError.incorrect_openid_scopes": {"fq_name": "openid.OpenIdError.incorrect_openid_scopes", "param_name": "incorrectOpenidScopesValue", "static_instance": "INCORRECT_OPENID_SCOPES", "getter_method": null, "containing_data_type_ref": "openid.OpenIdError", "route_refs": [], "_type": "FieldReference"}, "openid.OpenIdError.other": {"fq_name": "openid.OpenIdError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "openid.OpenIdError", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoError.openid_error": {"fq_name": "openid.UserInfoError.openid_error", "param_name": "openidErrorValue", "static_instance": null, "getter_method": "getOpenidErrorValue", "containing_data_type_ref": "openid.UserInfoError", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoError.other": {"fq_name": "openid.UserInfoError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "openid.UserInfoError", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoResult.family_name": {"fq_name": "openid.UserInfoResult.family_name", "param_name": "familyName", "static_instance": null, "getter_method": "getFamilyName", "containing_data_type_ref": "openid.UserInfoResult", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoResult.given_name": {"fq_name": "openid.UserInfoResult.given_name", "param_name": "givenName", "static_instance": null, "getter_method": "getGivenName", "containing_data_type_ref": "openid.UserInfoResult", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoResult.email": {"fq_name": "openid.UserInfoResult.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "openid.UserInfoResult", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoResult.email_verified": {"fq_name": "openid.UserInfoResult.email_verified", "param_name": "emailVerified", "static_instance": null, "getter_method": "getEmailVerified", "containing_data_type_ref": "openid.UserInfoResult", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoResult.iss": {"fq_name": "openid.UserInfoResult.iss", "param_name": "iss", "static_instance": null, "getter_method": "getIss", "containing_data_type_ref": "openid.UserInfoResult", "route_refs": [], "_type": "FieldReference"}, "openid.UserInfoResult.sub": {"fq_name": "openid.UserInfoResult.sub", "param_name": "sub", "static_instance": null, "getter_method": "getSub", "containing_data_type_ref": "openid.UserInfoResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddMember.member": {"fq_name": "paper.AddMember.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "paper.AddMember", "route_refs": [], "_type": "FieldReference"}, "paper.AddMember.permission_level": {"fq_name": "paper.AddMember.permission_level", "param_name": "permissionLevel", "static_instance": null, "getter_method": "getPermissionLevel", "containing_data_type_ref": "paper.AddMember", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUser.doc_id": {"fq_name": "paper.AddPaperDocUser.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.AddPaperDocUser", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.AddPaperDocUser.members": {"fq_name": "paper.AddPaperDocUser.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "paper.AddPaperDocUser", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUser.custom_message": {"fq_name": "paper.AddPaperDocUser.custom_message", "param_name": "customMessage", "static_instance": null, "getter_method": "getCustomMessage", "containing_data_type_ref": "paper.AddPaperDocUser", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUser.quiet": {"fq_name": "paper.AddPaperDocUser.quiet", "param_name": "quiet", "static_instance": null, "getter_method": "getQuiet", "containing_data_type_ref": "paper.AddPaperDocUser", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserMemberResult.member": {"fq_name": "paper.AddPaperDocUserMemberResult.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "paper.AddPaperDocUserMemberResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserMemberResult.result": {"fq_name": "paper.AddPaperDocUserMemberResult.result", "param_name": "result", "static_instance": null, "getter_method": "getResult", "containing_data_type_ref": "paper.AddPaperDocUserMemberResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.success": {"fq_name": "paper.AddPaperDocUserResult.success", "param_name": "successValue", "static_instance": "SUCCESS", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.unknown_error": {"fq_name": "paper.AddPaperDocUserResult.unknown_error", "param_name": "unknownErrorValue", "static_instance": "UNKNOWN_ERROR", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.sharing_outside_team_disabled": {"fq_name": "paper.AddPaperDocUserResult.sharing_outside_team_disabled", "param_name": "sharingOutsideTeamDisabledValue", "static_instance": "SHARING_OUTSIDE_TEAM_DISABLED", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.daily_limit_reached": {"fq_name": "paper.AddPaperDocUserResult.daily_limit_reached", "param_name": "dailyLimitReachedValue", "static_instance": "DAILY_LIMIT_REACHED", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.user_is_owner": {"fq_name": "paper.AddPaperDocUserResult.user_is_owner", "param_name": "userIsOwnerValue", "static_instance": "USER_IS_OWNER", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.failed_user_data_retrieval": {"fq_name": "paper.AddPaperDocUserResult.failed_user_data_retrieval", "param_name": "failedUserDataRetrievalValue", "static_instance": "FAILED_USER_DATA_RETRIEVAL", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.permission_already_granted": {"fq_name": "paper.AddPaperDocUserResult.permission_already_granted", "param_name": "permissionAlreadyGrantedValue", "static_instance": "PERMISSION_ALREADY_GRANTED", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.AddPaperDocUserResult.other": {"fq_name": "paper.AddPaperDocUserResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.AddPaperDocUserResult", "route_refs": [], "_type": "FieldReference"}, "paper.Cursor.value": {"fq_name": "paper.Cursor.value", "param_name": "value", "static_instance": null, "getter_method": "getValue", "containing_data_type_ref": "paper.Cursor", "route_refs": [], "_type": "FieldReference"}, "paper.Cursor.expiration": {"fq_name": "paper.Cursor.expiration", "param_name": "expiration", "static_instance": null, "getter_method": "getExpiration", "containing_data_type_ref": "paper.Cursor", "route_refs": [], "_type": "FieldReference"}, "paper.DocLookupError.insufficient_permissions": {"fq_name": "paper.DocLookupError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "paper.DocLookupError", "route_refs": [], "_type": "FieldReference"}, "paper.DocLookupError.other": {"fq_name": "paper.DocLookupError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.DocLookupError", "route_refs": [], "_type": "FieldReference"}, "paper.DocLookupError.doc_not_found": {"fq_name": "paper.DocLookupError.doc_not_found", "param_name": "docNotFoundValue", "static_instance": "DOC_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "paper.DocLookupError", "route_refs": [], "_type": "FieldReference"}, "paper.DocSubscriptionLevel.default": {"fq_name": "paper.DocSubscriptionLevel.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "paper.DocSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.DocSubscriptionLevel.ignore": {"fq_name": "paper.DocSubscriptionLevel.ignore", "param_name": "ignoreValue", "static_instance": "IGNORE", "getter_method": null, "containing_data_type_ref": "paper.DocSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.DocSubscriptionLevel.every": {"fq_name": "paper.DocSubscriptionLevel.every", "param_name": "everyValue", "static_instance": "EVERY", "getter_method": null, "containing_data_type_ref": "paper.DocSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.DocSubscriptionLevel.no_email": {"fq_name": "paper.DocSubscriptionLevel.no_email", "param_name": "noEmailValue", "static_instance": "NO_EMAIL", "getter_method": null, "containing_data_type_ref": "paper.DocSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.ExportFormat.html": {"fq_name": "paper.ExportFormat.html", "param_name": "htmlValue", "static_instance": "HTML", "getter_method": null, "containing_data_type_ref": "paper.ExportFormat", "route_refs": [], "_type": "FieldReference"}, "paper.ExportFormat.markdown": {"fq_name": "paper.ExportFormat.markdown", "param_name": "markdownValue", "static_instance": "MARKDOWN", "getter_method": null, "containing_data_type_ref": "paper.ExportFormat", "route_refs": [], "_type": "FieldReference"}, "paper.ExportFormat.other": {"fq_name": "paper.ExportFormat.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.ExportFormat", "route_refs": [], "_type": "FieldReference"}, "paper.Folder.id": {"fq_name": "paper.Folder.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "paper.Folder", "route_refs": [], "_type": "FieldReference"}, "paper.Folder.name": {"fq_name": "paper.Folder.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "paper.Folder", "route_refs": [], "_type": "FieldReference"}, "paper.FolderSharingPolicyType.team": {"fq_name": "paper.FolderSharingPolicyType.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "paper.FolderSharingPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.FolderSharingPolicyType.invite_only": {"fq_name": "paper.FolderSharingPolicyType.invite_only", "param_name": "inviteOnlyValue", "static_instance": "INVITE_ONLY", "getter_method": null, "containing_data_type_ref": "paper.FolderSharingPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.FolderSubscriptionLevel.none": {"fq_name": "paper.FolderSubscriptionLevel.none", "param_name": "noneValue", "static_instance": "NONE", "getter_method": null, "containing_data_type_ref": "paper.FolderSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.FolderSubscriptionLevel.activity_only": {"fq_name": "paper.FolderSubscriptionLevel.activity_only", "param_name": "activityOnlyValue", "static_instance": "ACTIVITY_ONLY", "getter_method": null, "containing_data_type_ref": "paper.FolderSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.FolderSubscriptionLevel.daily_emails": {"fq_name": "paper.FolderSubscriptionLevel.daily_emails", "param_name": "dailyEmailsValue", "static_instance": "DAILY_EMAILS", "getter_method": null, "containing_data_type_ref": "paper.FolderSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.FolderSubscriptionLevel.weekly_emails": {"fq_name": "paper.FolderSubscriptionLevel.weekly_emails", "param_name": "weeklyEmailsValue", "static_instance": "WEEKLY_EMAILS", "getter_method": null, "containing_data_type_ref": "paper.FolderSubscriptionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.FoldersContainingPaperDoc.folder_sharing_policy_type": {"fq_name": "paper.FoldersContainingPaperDoc.folder_sharing_policy_type", "param_name": "folderSharingPolicyType", "static_instance": null, "getter_method": "getFolderSharingPolicyType", "containing_data_type_ref": "paper.FoldersContainingPaperDoc", "route_refs": [], "_type": "FieldReference"}, "paper.FoldersContainingPaperDoc.folders": {"fq_name": "paper.FoldersContainingPaperDoc.folders", "param_name": "folders", "static_instance": null, "getter_method": "getFolders", "containing_data_type_ref": "paper.FoldersContainingPaperDoc", "route_refs": [], "_type": "FieldReference"}, "paper.ImportFormat.html": {"fq_name": "paper.ImportFormat.html", "param_name": "htmlValue", "static_instance": "HTML", "getter_method": null, "containing_data_type_ref": "paper.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "paper.ImportFormat.markdown": {"fq_name": "paper.ImportFormat.markdown", "param_name": "markdownValue", "static_instance": "MARKDOWN", "getter_method": null, "containing_data_type_ref": "paper.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "paper.ImportFormat.plain_text": {"fq_name": "paper.ImportFormat.plain_text", "param_name": "plainTextValue", "static_instance": "PLAIN_TEXT", "getter_method": null, "containing_data_type_ref": "paper.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "paper.ImportFormat.other": {"fq_name": "paper.ImportFormat.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.ImportFormat", "route_refs": [], "_type": "FieldReference"}, "paper.InviteeInfoWithPermissionLevel.invitee": {"fq_name": "paper.InviteeInfoWithPermissionLevel.invitee", "param_name": "invitee", "static_instance": null, "getter_method": "getInvitee", "containing_data_type_ref": "paper.InviteeInfoWithPermissionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.InviteeInfoWithPermissionLevel.permission_level": {"fq_name": "paper.InviteeInfoWithPermissionLevel.permission_level", "param_name": "permissionLevel", "static_instance": null, "getter_method": "getPermissionLevel", "containing_data_type_ref": "paper.InviteeInfoWithPermissionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.ListDocsCursorError.cursor_error": {"fq_name": "paper.ListDocsCursorError.cursor_error", "param_name": "cursorErrorValue", "static_instance": null, "getter_method": "getCursorErrorValue", "containing_data_type_ref": "paper.ListDocsCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.ListDocsCursorError.other": {"fq_name": "paper.ListDocsCursorError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.ListDocsCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsArgs.filter_by": {"fq_name": "paper.ListPaperDocsArgs.filter_by", "param_name": "filterBy", "static_instance": null, "getter_method": "getFilterBy", "containing_data_type_ref": "paper.ListPaperDocsArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsArgs.sort_by": {"fq_name": "paper.ListPaperDocsArgs.sort_by", "param_name": "sortBy", "static_instance": null, "getter_method": "getSortBy", "containing_data_type_ref": "paper.ListPaperDocsArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsArgs.sort_order": {"fq_name": "paper.ListPaperDocsArgs.sort_order", "param_name": "sortOrder", "static_instance": null, "getter_method": "getSortOrder", "containing_data_type_ref": "paper.ListPaperDocsArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsArgs.limit": {"fq_name": "paper.ListPaperDocsArgs.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "paper.ListPaperDocsArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsContinueArgs.cursor": {"fq_name": "paper.ListPaperDocsContinueArgs.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "paper.ListPaperDocsContinueArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsFilterBy.docs_accessed": {"fq_name": "paper.ListPaperDocsFilterBy.docs_accessed", "param_name": "docsAccessedValue", "static_instance": "DOCS_ACCESSED", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsFilterBy", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsFilterBy.docs_created": {"fq_name": "paper.ListPaperDocsFilterBy.docs_created", "param_name": "docsCreatedValue", "static_instance": "DOCS_CREATED", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsFilterBy", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsFilterBy.other": {"fq_name": "paper.ListPaperDocsFilterBy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsFilterBy", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsResponse.doc_ids": {"fq_name": "paper.ListPaperDocsResponse.doc_ids", "param_name": "docIds", "static_instance": null, "getter_method": "getDocIds", "containing_data_type_ref": "paper.ListPaperDocsResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsResponse.cursor": {"fq_name": "paper.ListPaperDocsResponse.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "paper.ListPaperDocsResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsResponse.has_more": {"fq_name": "paper.ListPaperDocsResponse.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "paper.ListPaperDocsResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsSortBy.accessed": {"fq_name": "paper.ListPaperDocsSortBy.accessed", "param_name": "accessedValue", "static_instance": "ACCESSED", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsSortBy", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsSortBy.modified": {"fq_name": "paper.ListPaperDocsSortBy.modified", "param_name": "modifiedValue", "static_instance": "MODIFIED", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsSortBy", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsSortBy.created": {"fq_name": "paper.ListPaperDocsSortBy.created", "param_name": "createdValue", "static_instance": "CREATED", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsSortBy", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsSortBy.other": {"fq_name": "paper.ListPaperDocsSortBy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsSortBy", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsSortOrder.ascending": {"fq_name": "paper.ListPaperDocsSortOrder.ascending", "param_name": "ascendingValue", "static_instance": "ASCENDING", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsSortOrder", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsSortOrder.descending": {"fq_name": "paper.ListPaperDocsSortOrder.descending", "param_name": "descendingValue", "static_instance": "DESCENDING", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsSortOrder", "route_refs": [], "_type": "FieldReference"}, "paper.ListPaperDocsSortOrder.other": {"fq_name": "paper.ListPaperDocsSortOrder.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.ListPaperDocsSortOrder", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersCursorError.insufficient_permissions": {"fq_name": "paper.ListUsersCursorError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "paper.ListUsersCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersCursorError.other": {"fq_name": "paper.ListUsersCursorError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.ListUsersCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersCursorError.doc_not_found": {"fq_name": "paper.ListUsersCursorError.doc_not_found", "param_name": "docNotFoundValue", "static_instance": "DOC_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "paper.ListUsersCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersCursorError.cursor_error": {"fq_name": "paper.ListUsersCursorError.cursor_error", "param_name": "cursorErrorValue", "static_instance": null, "getter_method": "getCursorErrorValue", "containing_data_type_ref": "paper.ListUsersCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnFolderArgs.doc_id": {"fq_name": "paper.ListUsersOnFolderArgs.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.ListUsersOnFolderArgs", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.ListUsersOnFolderArgs.limit": {"fq_name": "paper.ListUsersOnFolderArgs.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "paper.ListUsersOnFolderArgs", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.ListUsersOnFolderContinueArgs.doc_id": {"fq_name": "paper.ListUsersOnFolderContinueArgs.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.ListUsersOnFolderContinueArgs", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.ListUsersOnFolderContinueArgs.cursor": {"fq_name": "paper.ListUsersOnFolderContinueArgs.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "paper.ListUsersOnFolderContinueArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnFolderResponse.invitees": {"fq_name": "paper.ListUsersOnFolderResponse.invitees", "param_name": "invitees", "static_instance": null, "getter_method": "getInvitees", "containing_data_type_ref": "paper.ListUsersOnFolderResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnFolderResponse.users": {"fq_name": "paper.ListUsersOnFolderResponse.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "paper.ListUsersOnFolderResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnFolderResponse.cursor": {"fq_name": "paper.ListUsersOnFolderResponse.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "paper.ListUsersOnFolderResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnFolderResponse.has_more": {"fq_name": "paper.ListUsersOnFolderResponse.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "paper.ListUsersOnFolderResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocArgs.doc_id": {"fq_name": "paper.ListUsersOnPaperDocArgs.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.ListUsersOnPaperDocArgs", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocArgs.limit": {"fq_name": "paper.ListUsersOnPaperDocArgs.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "paper.ListUsersOnPaperDocArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocArgs.filter_by": {"fq_name": "paper.ListUsersOnPaperDocArgs.filter_by", "param_name": "filterBy", "static_instance": null, "getter_method": "getFilterBy", "containing_data_type_ref": "paper.ListUsersOnPaperDocArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocContinueArgs.doc_id": {"fq_name": "paper.ListUsersOnPaperDocContinueArgs.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.ListUsersOnPaperDocContinueArgs", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocContinueArgs.cursor": {"fq_name": "paper.ListUsersOnPaperDocContinueArgs.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "paper.ListUsersOnPaperDocContinueArgs", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocResponse.invitees": {"fq_name": "paper.ListUsersOnPaperDocResponse.invitees", "param_name": "invitees", "static_instance": null, "getter_method": "getInvitees", "containing_data_type_ref": "paper.ListUsersOnPaperDocResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocResponse.users": {"fq_name": "paper.ListUsersOnPaperDocResponse.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "paper.ListUsersOnPaperDocResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocResponse.doc_owner": {"fq_name": "paper.ListUsersOnPaperDocResponse.doc_owner", "param_name": "docOwner", "static_instance": null, "getter_method": "getDocOwner", "containing_data_type_ref": "paper.ListUsersOnPaperDocResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocResponse.cursor": {"fq_name": "paper.ListUsersOnPaperDocResponse.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "paper.ListUsersOnPaperDocResponse", "route_refs": [], "_type": "FieldReference"}, "paper.ListUsersOnPaperDocResponse.has_more": {"fq_name": "paper.ListUsersOnPaperDocResponse.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "paper.ListUsersOnPaperDocResponse", "route_refs": [], "_type": "FieldReference"}, "paper.PaperApiBaseError.insufficient_permissions": {"fq_name": "paper.PaperApiBaseError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "paper.PaperApiBaseError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperApiBaseError.other": {"fq_name": "paper.PaperApiBaseError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.PaperApiBaseError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperApiCursorError.expired_cursor": {"fq_name": "paper.PaperApiCursorError.expired_cursor", "param_name": "expiredCursorValue", "static_instance": "EXPIRED_CURSOR", "getter_method": null, "containing_data_type_ref": "paper.PaperApiCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperApiCursorError.invalid_cursor": {"fq_name": "paper.PaperApiCursorError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "paper.PaperApiCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperApiCursorError.wrong_user_in_cursor": {"fq_name": "paper.PaperApiCursorError.wrong_user_in_cursor", "param_name": "wrongUserInCursorValue", "static_instance": "WRONG_USER_IN_CURSOR", "getter_method": null, "containing_data_type_ref": "paper.PaperApiCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperApiCursorError.reset": {"fq_name": "paper.PaperApiCursorError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "paper.PaperApiCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperApiCursorError.other": {"fq_name": "paper.PaperApiCursorError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.PaperApiCursorError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateArgs.import_format": {"fq_name": "paper.PaperDocCreateArgs.import_format", "param_name": "importFormat", "static_instance": null, "getter_method": "getImportFormat", "containing_data_type_ref": "paper.PaperDocCreateArgs", "route_refs": ["paper.docs/create"], "_type": "FieldReference"}, "paper.PaperDocCreateArgs.parent_folder_id": {"fq_name": "paper.PaperDocCreateArgs.parent_folder_id", "param_name": "parentFolderId", "static_instance": null, "getter_method": "getParentFolderId", "containing_data_type_ref": "paper.PaperDocCreateArgs", "route_refs": ["paper.docs/create"], "_type": "FieldReference"}, "paper.PaperDocCreateError.insufficient_permissions": {"fq_name": "paper.PaperDocCreateError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "paper.PaperDocCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateError.other": {"fq_name": "paper.PaperDocCreateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.PaperDocCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateError.content_malformed": {"fq_name": "paper.PaperDocCreateError.content_malformed", "param_name": "contentMalformedValue", "static_instance": "CONTENT_MALFORMED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateError.folder_not_found": {"fq_name": "paper.PaperDocCreateError.folder_not_found", "param_name": "folderNotFoundValue", "static_instance": "FOLDER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "paper.PaperDocCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateError.doc_length_exceeded": {"fq_name": "paper.PaperDocCreateError.doc_length_exceeded", "param_name": "docLengthExceededValue", "static_instance": "DOC_LENGTH_EXCEEDED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateError.image_size_exceeded": {"fq_name": "paper.PaperDocCreateError.image_size_exceeded", "param_name": "imageSizeExceededValue", "static_instance": "IMAGE_SIZE_EXCEEDED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateUpdateResult.doc_id": {"fq_name": "paper.PaperDocCreateUpdateResult.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.PaperDocCreateUpdateResult", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateUpdateResult.revision": {"fq_name": "paper.PaperDocCreateUpdateResult.revision", "param_name": "revision", "static_instance": null, "getter_method": "getRevision", "containing_data_type_ref": "paper.PaperDocCreateUpdateResult", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocCreateUpdateResult.title": {"fq_name": "paper.PaperDocCreateUpdateResult.title", "param_name": "title", "static_instance": null, "getter_method": "getTitle", "containing_data_type_ref": "paper.PaperDocCreateUpdateResult", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocExport.doc_id": {"fq_name": "paper.PaperDocExport.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.PaperDocExport", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.PaperDocExport.export_format": {"fq_name": "paper.PaperDocExport.export_format", "param_name": "exportFormat", "static_instance": null, "getter_method": "getExportFormat", "containing_data_type_ref": "paper.PaperDocExport", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocExportResult.owner": {"fq_name": "paper.PaperDocExportResult.owner", "param_name": "owner", "static_instance": null, "getter_method": "getOwner", "containing_data_type_ref": "paper.PaperDocExportResult", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocExportResult.title": {"fq_name": "paper.PaperDocExportResult.title", "param_name": "title", "static_instance": null, "getter_method": "getTitle", "containing_data_type_ref": "paper.PaperDocExportResult", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocExportResult.revision": {"fq_name": "paper.PaperDocExportResult.revision", "param_name": "revision", "static_instance": null, "getter_method": "getRevision", "containing_data_type_ref": "paper.PaperDocExportResult", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocExportResult.mime_type": {"fq_name": "paper.PaperDocExportResult.mime_type", "param_name": "mimeType", "static_instance": null, "getter_method": "getMimeType", "containing_data_type_ref": "paper.PaperDocExportResult", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocPermissionLevel.edit": {"fq_name": "paper.PaperDocPermissionLevel.edit", "param_name": "editValue", "static_instance": "EDIT", "getter_method": null, "containing_data_type_ref": "paper.PaperDocPermissionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocPermissionLevel.view_and_comment": {"fq_name": "paper.PaperDocPermissionLevel.view_and_comment", "param_name": "viewAndCommentValue", "static_instance": "VIEW_AND_COMMENT", "getter_method": null, "containing_data_type_ref": "paper.PaperDocPermissionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocPermissionLevel.other": {"fq_name": "paper.PaperDocPermissionLevel.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.PaperDocPermissionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocSharingPolicy.doc_id": {"fq_name": "paper.PaperDocSharingPolicy.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.PaperDocSharingPolicy", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.PaperDocSharingPolicy.sharing_policy": {"fq_name": "paper.PaperDocSharingPolicy.sharing_policy", "param_name": "sharingPolicy", "static_instance": null, "getter_method": "getSharingPolicy", "containing_data_type_ref": "paper.PaperDocSharingPolicy", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateArgs.doc_id": {"fq_name": "paper.PaperDocUpdateArgs.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.PaperDocUpdateArgs", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.PaperDocUpdateArgs.doc_update_policy": {"fq_name": "paper.PaperDocUpdateArgs.doc_update_policy", "param_name": "docUpdatePolicy", "static_instance": null, "getter_method": "getDocUpdatePolicy", "containing_data_type_ref": "paper.PaperDocUpdateArgs", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateArgs.revision": {"fq_name": "paper.PaperDocUpdateArgs.revision", "param_name": "revision", "static_instance": null, "getter_method": "getRevision", "containing_data_type_ref": "paper.PaperDocUpdateArgs", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateArgs.import_format": {"fq_name": "paper.PaperDocUpdateArgs.import_format", "param_name": "importFormat", "static_instance": null, "getter_method": "getImportFormat", "containing_data_type_ref": "paper.PaperDocUpdateArgs", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.insufficient_permissions": {"fq_name": "paper.PaperDocUpdateError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.other": {"fq_name": "paper.PaperDocUpdateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.doc_not_found": {"fq_name": "paper.PaperDocUpdateError.doc_not_found", "param_name": "docNotFoundValue", "static_instance": "DOC_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.content_malformed": {"fq_name": "paper.PaperDocUpdateError.content_malformed", "param_name": "contentMalformedValue", "static_instance": "CONTENT_MALFORMED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.revision_mismatch": {"fq_name": "paper.PaperDocUpdateError.revision_mismatch", "param_name": "revisionMismatchValue", "static_instance": "REVISION_MISMATCH", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.doc_length_exceeded": {"fq_name": "paper.PaperDocUpdateError.doc_length_exceeded", "param_name": "docLengthExceededValue", "static_instance": "DOC_LENGTH_EXCEEDED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.image_size_exceeded": {"fq_name": "paper.PaperDocUpdateError.image_size_exceeded", "param_name": "imageSizeExceededValue", "static_instance": "IMAGE_SIZE_EXCEEDED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.doc_archived": {"fq_name": "paper.PaperDocUpdateError.doc_archived", "param_name": "docArchivedValue", "static_instance": "DOC_ARCHIVED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdateError.doc_deleted": {"fq_name": "paper.PaperDocUpdateError.doc_deleted", "param_name": "docDeletedValue", "static_instance": "DOC_DELETED", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdatePolicy.append": {"fq_name": "paper.PaperDocUpdatePolicy.append", "param_name": "appendValue", "static_instance": "APPEND", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdatePolicy.prepend": {"fq_name": "paper.PaperDocUpdatePolicy.prepend", "param_name": "prependValue", "static_instance": "PREPEND", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdatePolicy.overwrite_all": {"fq_name": "paper.PaperDocUpdatePolicy.overwrite_all", "param_name": "overwriteAllValue", "static_instance": "OVERWRITE_ALL", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "paper.PaperDocUpdatePolicy.other": {"fq_name": "paper.PaperDocUpdatePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.PaperDocUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateArg.name": {"fq_name": "paper.PaperFolderCreateArg.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "paper.PaperFolderCreateArg", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateArg.parent_folder_id": {"fq_name": "paper.PaperFolderCreateArg.parent_folder_id", "param_name": "parentFolderId", "static_instance": null, "getter_method": "getParentFolderId", "containing_data_type_ref": "paper.PaperFolderCreateArg", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateArg.is_team_folder": {"fq_name": "paper.PaperFolderCreateArg.is_team_folder", "param_name": "isTeamFolder", "static_instance": null, "getter_method": "getIsTeamFolder", "containing_data_type_ref": "paper.PaperFolderCreateArg", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateError.insufficient_permissions": {"fq_name": "paper.PaperFolderCreateError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "paper.PaperFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateError.other": {"fq_name": "paper.PaperFolderCreateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.PaperFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateError.folder_not_found": {"fq_name": "paper.PaperFolderCreateError.folder_not_found", "param_name": "folderNotFoundValue", "static_instance": "FOLDER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "paper.PaperFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateError.invalid_folder_id": {"fq_name": "paper.PaperFolderCreateError.invalid_folder_id", "param_name": "invalidFolderIdValue", "static_instance": "INVALID_FOLDER_ID", "getter_method": null, "containing_data_type_ref": "paper.PaperFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "paper.PaperFolderCreateResult.folder_id": {"fq_name": "paper.PaperFolderCreateResult.folder_id", "param_name": "folderId", "static_instance": null, "getter_method": "getFolderId", "containing_data_type_ref": "paper.PaperFolderCreateResult", "route_refs": [], "_type": "FieldReference"}, "paper.RefPaperDoc.doc_id": {"fq_name": "paper.RefPaperDoc.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.RefPaperDoc", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.RemovePaperDocUser.doc_id": {"fq_name": "paper.RemovePaperDocUser.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "paper.RemovePaperDocUser", "route_refs": ["paper.docs/folder_users/list"], "_type": "FieldReference"}, "paper.RemovePaperDocUser.member": {"fq_name": "paper.RemovePaperDocUser.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "paper.RemovePaperDocUser", "route_refs": [], "_type": "FieldReference"}, "paper.SharingPolicy.public_sharing_policy": {"fq_name": "paper.SharingPolicy.public_sharing_policy", "param_name": "publicSharingPolicy", "static_instance": null, "getter_method": "getPublicSharingPolicy", "containing_data_type_ref": "paper.SharingPolicy", "route_refs": [], "_type": "FieldReference"}, "paper.SharingPolicy.team_sharing_policy": {"fq_name": "paper.SharingPolicy.team_sharing_policy", "param_name": "teamSharingPolicy", "static_instance": null, "getter_method": "getTeamSharingPolicy", "containing_data_type_ref": "paper.SharingPolicy", "route_refs": [], "_type": "FieldReference"}, "paper.SharingPublicPolicyType.people_with_link_can_edit": {"fq_name": "paper.SharingPublicPolicyType.people_with_link_can_edit", "param_name": "peopleWithLinkCanEditValue", "static_instance": "PEOPLE_WITH_LINK_CAN_EDIT", "getter_method": null, "containing_data_type_ref": "paper.SharingPublicPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.SharingPublicPolicyType.people_with_link_can_view_and_comment": {"fq_name": "paper.SharingPublicPolicyType.people_with_link_can_view_and_comment", "param_name": "peopleWithLinkCanViewAndCommentValue", "static_instance": "PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT", "getter_method": null, "containing_data_type_ref": "paper.SharingPublicPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.SharingPublicPolicyType.invite_only": {"fq_name": "paper.SharingPublicPolicyType.invite_only", "param_name": "inviteOnlyValue", "static_instance": "INVITE_ONLY", "getter_method": null, "containing_data_type_ref": "paper.SharingPublicPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.SharingPublicPolicyType.disabled": {"fq_name": "paper.SharingPublicPolicyType.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "paper.SharingPublicPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.SharingTeamPolicyType.people_with_link_can_edit": {"fq_name": "paper.SharingTeamPolicyType.people_with_link_can_edit", "param_name": "peopleWithLinkCanEditValue", "static_instance": "PEOPLE_WITH_LINK_CAN_EDIT", "getter_method": null, "containing_data_type_ref": "paper.SharingTeamPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.SharingTeamPolicyType.people_with_link_can_view_and_comment": {"fq_name": "paper.SharingTeamPolicyType.people_with_link_can_view_and_comment", "param_name": "peopleWithLinkCanViewAndCommentValue", "static_instance": "PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT", "getter_method": null, "containing_data_type_ref": "paper.SharingTeamPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.SharingTeamPolicyType.invite_only": {"fq_name": "paper.SharingTeamPolicyType.invite_only", "param_name": "inviteOnlyValue", "static_instance": "INVITE_ONLY", "getter_method": null, "containing_data_type_ref": "paper.SharingTeamPolicyType", "route_refs": [], "_type": "FieldReference"}, "paper.UserInfoWithPermissionLevel.user": {"fq_name": "paper.UserInfoWithPermissionLevel.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "paper.UserInfoWithPermissionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.UserInfoWithPermissionLevel.permission_level": {"fq_name": "paper.UserInfoWithPermissionLevel.permission_level", "param_name": "permissionLevel", "static_instance": null, "getter_method": "getPermissionLevel", "containing_data_type_ref": "paper.UserInfoWithPermissionLevel", "route_refs": [], "_type": "FieldReference"}, "paper.UserOnPaperDocFilter.visited": {"fq_name": "paper.UserOnPaperDocFilter.visited", "param_name": "visitedValue", "static_instance": "VISITED", "getter_method": null, "containing_data_type_ref": "paper.UserOnPaperDocFilter", "route_refs": [], "_type": "FieldReference"}, "paper.UserOnPaperDocFilter.shared": {"fq_name": "paper.UserOnPaperDocFilter.shared", "param_name": "sharedValue", "static_instance": "SHARED", "getter_method": null, "containing_data_type_ref": "paper.UserOnPaperDocFilter", "route_refs": [], "_type": "FieldReference"}, "paper.UserOnPaperDocFilter.other": {"fq_name": "paper.UserOnPaperDocFilter.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "paper.UserOnPaperDocFilter", "route_refs": [], "_type": "FieldReference"}, "secondary_emails.SecondaryEmail.email": {"fq_name": "secondary_emails.SecondaryEmail.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "secondary_emails.SecondaryEmail", "route_refs": [], "_type": "FieldReference"}, "secondary_emails.SecondaryEmail.is_verified": {"fq_name": "secondary_emails.SecondaryEmail.is_verified", "param_name": "isVerified", "static_instance": null, "getter_method": "getIsVerified", "containing_data_type_ref": "secondary_emails.SecondaryEmail", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.web": {"fq_name": "seen_state.PlatformType.web", "param_name": "webValue", "static_instance": "WEB", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.desktop": {"fq_name": "seen_state.PlatformType.desktop", "param_name": "desktopValue", "static_instance": "DESKTOP", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.mobile_ios": {"fq_name": "seen_state.PlatformType.mobile_ios", "param_name": "mobileIosValue", "static_instance": "MOBILE_IOS", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.mobile_android": {"fq_name": "seen_state.PlatformType.mobile_android", "param_name": "mobileAndroidValue", "static_instance": "MOBILE_ANDROID", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.api": {"fq_name": "seen_state.PlatformType.api", "param_name": "apiValue", "static_instance": "API", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.unknown": {"fq_name": "seen_state.PlatformType.unknown", "param_name": "unknownValue", "static_instance": "UNKNOWN", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.mobile": {"fq_name": "seen_state.PlatformType.mobile", "param_name": "mobileValue", "static_instance": "MOBILE", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "seen_state.PlatformType.other": {"fq_name": "seen_state.PlatformType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "seen_state.PlatformType", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessInheritance.inherit": {"fq_name": "sharing.AccessInheritance.inherit", "param_name": "inheritValue", "static_instance": "INHERIT", "getter_method": null, "containing_data_type_ref": "sharing.AccessInheritance", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessInheritance.no_inherit": {"fq_name": "sharing.AccessInheritance.no_inherit", "param_name": "noInheritValue", "static_instance": "NO_INHERIT", "getter_method": null, "containing_data_type_ref": "sharing.AccessInheritance", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessInheritance.other": {"fq_name": "sharing.AccessInheritance.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.AccessInheritance", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessLevel.owner": {"fq_name": "sharing.AccessLevel.owner", "param_name": "ownerValue", "static_instance": "OWNER", "getter_method": null, "containing_data_type_ref": "sharing.AccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessLevel.editor": {"fq_name": "sharing.AccessLevel.editor", "param_name": "editorValue", "static_instance": "EDITOR", "getter_method": null, "containing_data_type_ref": "sharing.AccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessLevel.viewer": {"fq_name": "sharing.AccessLevel.viewer", "param_name": "viewerValue", "static_instance": "VIEWER", "getter_method": null, "containing_data_type_ref": "sharing.AccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessLevel.viewer_no_comment": {"fq_name": "sharing.AccessLevel.viewer_no_comment", "param_name": "viewerNoCommentValue", "static_instance": "VIEWER_NO_COMMENT", "getter_method": null, "containing_data_type_ref": "sharing.AccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessLevel.traverse": {"fq_name": "sharing.AccessLevel.traverse", "param_name": "traverseValue", "static_instance": "TRAVERSE", "getter_method": null, "containing_data_type_ref": "sharing.AccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessLevel.no_access": {"fq_name": "sharing.AccessLevel.no_access", "param_name": "noAccessValue", "static_instance": "NO_ACCESS", "getter_method": null, "containing_data_type_ref": "sharing.AccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.AccessLevel.other": {"fq_name": "sharing.AccessLevel.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.AccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.AclUpdatePolicy.owner": {"fq_name": "sharing.AclUpdatePolicy.owner", "param_name": "ownerValue", "static_instance": "OWNER", "getter_method": null, "containing_data_type_ref": "sharing.AclUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.AclUpdatePolicy.editors": {"fq_name": "sharing.AclUpdatePolicy.editors", "param_name": "editorsValue", "static_instance": "EDITORS", "getter_method": null, "containing_data_type_ref": "sharing.AclUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.AclUpdatePolicy.other": {"fq_name": "sharing.AclUpdatePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.AclUpdatePolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberArgs.file": {"fq_name": "sharing.AddFileMemberArgs.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.AddFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberArgs.members": {"fq_name": "sharing.AddFileMemberArgs.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "sharing.AddFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberArgs.custom_message": {"fq_name": "sharing.AddFileMemberArgs.custom_message", "param_name": "customMessage", "static_instance": null, "getter_method": "getCustomMessage", "containing_data_type_ref": "sharing.AddFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberArgs.quiet": {"fq_name": "sharing.AddFileMemberArgs.quiet", "param_name": "quiet", "static_instance": null, "getter_method": "getQuiet", "containing_data_type_ref": "sharing.AddFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberArgs.access_level": {"fq_name": "sharing.AddFileMemberArgs.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.AddFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberArgs.add_message_as_comment": {"fq_name": "sharing.AddFileMemberArgs.add_message_as_comment", "param_name": "addMessageAsComment", "static_instance": null, "getter_method": "getAddMessageAsComment", "containing_data_type_ref": "sharing.AddFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberError.user_error": {"fq_name": "sharing.AddFileMemberError.user_error", "param_name": "userErrorValue", "static_instance": null, "getter_method": "getUserErrorValue", "containing_data_type_ref": "sharing.AddFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberError.access_error": {"fq_name": "sharing.AddFileMemberError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.AddFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberError.rate_limit": {"fq_name": "sharing.AddFileMemberError.rate_limit", "param_name": "rateLimitValue", "static_instance": "RATE_LIMIT", "getter_method": null, "containing_data_type_ref": "sharing.AddFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberError.invalid_comment": {"fq_name": "sharing.AddFileMemberError.invalid_comment", "param_name": "invalidCommentValue", "static_instance": "INVALID_COMMENT", "getter_method": null, "containing_data_type_ref": "sharing.AddFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFileMemberError.other": {"fq_name": "sharing.AddFileMemberError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.AddFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberArg.shared_folder_id": {"fq_name": "sharing.AddFolderMemberArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.AddFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberArg.members": {"fq_name": "sharing.AddFolderMemberArg.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "sharing.AddFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberArg.quiet": {"fq_name": "sharing.AddFolderMemberArg.quiet", "param_name": "quiet", "static_instance": null, "getter_method": "getQuiet", "containing_data_type_ref": "sharing.AddFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberArg.custom_message": {"fq_name": "sharing.AddFolderMemberArg.custom_message", "param_name": "customMessage", "static_instance": null, "getter_method": "getCustomMessage", "containing_data_type_ref": "sharing.AddFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.access_error": {"fq_name": "sharing.AddFolderMemberError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.email_unverified": {"fq_name": "sharing.AddFolderMemberError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.banned_member": {"fq_name": "sharing.AddFolderMemberError.banned_member", "param_name": "bannedMemberValue", "static_instance": "BANNED_MEMBER", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.bad_member": {"fq_name": "sharing.AddFolderMemberError.bad_member", "param_name": "badMemberValue", "static_instance": null, "getter_method": "getBadMemberValue", "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.cant_share_outside_team": {"fq_name": "sharing.AddFolderMemberError.cant_share_outside_team", "param_name": "cantShareOutsideTeamValue", "static_instance": "CANT_SHARE_OUTSIDE_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.too_many_members": {"fq_name": "sharing.AddFolderMemberError.too_many_members", "param_name": "tooManyMembersValue", "static_instance": null, "getter_method": "getTooManyMembersValue", "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.too_many_pending_invites": {"fq_name": "sharing.AddFolderMemberError.too_many_pending_invites", "param_name": "tooManyPendingInvitesValue", "static_instance": null, "getter_method": "getTooManyPendingInvitesValue", "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.rate_limit": {"fq_name": "sharing.AddFolderMemberError.rate_limit", "param_name": "rateLimitValue", "static_instance": "RATE_LIMIT", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.too_many_invitees": {"fq_name": "sharing.AddFolderMemberError.too_many_invitees", "param_name": "tooManyInviteesValue", "static_instance": "TOO_MANY_INVITEES", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.insufficient_plan": {"fq_name": "sharing.AddFolderMemberError.insufficient_plan", "param_name": "insufficientPlanValue", "static_instance": "INSUFFICIENT_PLAN", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.team_folder": {"fq_name": "sharing.AddFolderMemberError.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.no_permission": {"fq_name": "sharing.AddFolderMemberError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.invalid_shared_folder": {"fq_name": "sharing.AddFolderMemberError.invalid_shared_folder", "param_name": "invalidSharedFolderValue", "static_instance": "INVALID_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddFolderMemberError.other": {"fq_name": "sharing.AddFolderMemberError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.AddFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMember.member": {"fq_name": "sharing.AddMember.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "sharing.AddMember", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMember.access_level": {"fq_name": "sharing.AddMember.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.AddMember", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMemberSelectorError.automatic_group": {"fq_name": "sharing.AddMemberSelectorError.automatic_group", "param_name": "automaticGroupValue", "static_instance": "AUTOMATIC_GROUP", "getter_method": null, "containing_data_type_ref": "sharing.AddMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMemberSelectorError.invalid_dropbox_id": {"fq_name": "sharing.AddMemberSelectorError.invalid_dropbox_id", "param_name": "invalidDropboxIdValue", "static_instance": null, "getter_method": "getInvalidDropboxIdValue", "containing_data_type_ref": "sharing.AddMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMemberSelectorError.invalid_email": {"fq_name": "sharing.AddMemberSelectorError.invalid_email", "param_name": "invalidEmailValue", "static_instance": null, "getter_method": "getInvalidEmailValue", "containing_data_type_ref": "sharing.AddMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMemberSelectorError.unverified_dropbox_id": {"fq_name": "sharing.AddMemberSelectorError.unverified_dropbox_id", "param_name": "unverifiedDropboxIdValue", "static_instance": null, "getter_method": "getUnverifiedDropboxIdValue", "containing_data_type_ref": "sharing.AddMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMemberSelectorError.group_deleted": {"fq_name": "sharing.AddMemberSelectorError.group_deleted", "param_name": "groupDeletedValue", "static_instance": "GROUP_DELETED", "getter_method": null, "containing_data_type_ref": "sharing.AddMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMemberSelectorError.group_not_on_team": {"fq_name": "sharing.AddMemberSelectorError.group_not_on_team", "param_name": "groupNotOnTeamValue", "static_instance": "GROUP_NOT_ON_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.AddMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "sharing.AddMemberSelectorError.other": {"fq_name": "sharing.AddMemberSelectorError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.AddMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.public": {"fq_name": "sharing.AlphaResolvedVisibility.public", "param_name": "publicValue", "static_instance": "PUBLIC", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.team_only": {"fq_name": "sharing.AlphaResolvedVisibility.team_only", "param_name": "teamOnlyValue", "static_instance": "TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.password": {"fq_name": "sharing.AlphaResolvedVisibility.password", "param_name": "passwordValue", "static_instance": "PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.team_and_password": {"fq_name": "sharing.AlphaResolvedVisibility.team_and_password", "param_name": "teamAndPasswordValue", "static_instance": "TEAM_AND_PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.shared_folder_only": {"fq_name": "sharing.AlphaResolvedVisibility.shared_folder_only", "param_name": "sharedFolderOnlyValue", "static_instance": "SHARED_FOLDER_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.no_one": {"fq_name": "sharing.AlphaResolvedVisibility.no_one", "param_name": "noOneValue", "static_instance": "NO_ONE", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.only_you": {"fq_name": "sharing.AlphaResolvedVisibility.only_you", "param_name": "onlyYouValue", "static_instance": "ONLY_YOU", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AlphaResolvedVisibility.other": {"fq_name": "sharing.AlphaResolvedVisibility.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.AlphaResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.AudienceExceptionContentInfo.name": {"fq_name": "sharing.AudienceExceptionContentInfo.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "sharing.AudienceExceptionContentInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.AudienceExceptions.count": {"fq_name": "sharing.AudienceExceptions.count", "param_name": "count", "static_instance": null, "getter_method": "getCount", "containing_data_type_ref": "sharing.AudienceExceptions", "route_refs": [], "_type": "FieldReference"}, "sharing.AudienceExceptions.exceptions": {"fq_name": "sharing.AudienceExceptions.exceptions", "param_name": "exceptions", "static_instance": null, "getter_method": "getExceptions", "containing_data_type_ref": "sharing.AudienceExceptions", "route_refs": [], "_type": "FieldReference"}, "sharing.AudienceRestrictingSharedFolder.shared_folder_id": {"fq_name": "sharing.AudienceRestrictingSharedFolder.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.AudienceRestrictingSharedFolder", "route_refs": [], "_type": "FieldReference"}, "sharing.AudienceRestrictingSharedFolder.name": {"fq_name": "sharing.AudienceRestrictingSharedFolder.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "sharing.AudienceRestrictingSharedFolder", "route_refs": [], "_type": "FieldReference"}, "sharing.AudienceRestrictingSharedFolder.audience": {"fq_name": "sharing.AudienceRestrictingSharedFolder.audience", "param_name": "audience", "static_instance": null, "getter_method": "getAudience", "containing_data_type_ref": "sharing.AudienceRestrictingSharedFolder", "route_refs": [], "_type": "FieldReference"}, "sharing.CollectionLinkMetadata.url": {"fq_name": "sharing.CollectionLinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.CollectionLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.CollectionLinkMetadata.visibility": {"fq_name": "sharing.CollectionLinkMetadata.visibility", "param_name": "visibility", "static_instance": null, "getter_method": "getVisibility", "containing_data_type_ref": "sharing.CollectionLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.CollectionLinkMetadata.expires": {"fq_name": "sharing.CollectionLinkMetadata.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "sharing.CollectionLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkArg.path": {"fq_name": "sharing.CreateSharedLinkArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.CreateSharedLinkArg", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkArg.short_url": {"fq_name": "sharing.CreateSharedLinkArg.short_url", "param_name": "shortUrl", "static_instance": null, "getter_method": "getShortUrl", "containing_data_type_ref": "sharing.CreateSharedLinkArg", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkArg.pending_upload": {"fq_name": "sharing.CreateSharedLinkArg.pending_upload", "param_name": "pendingUpload", "static_instance": null, "getter_method": "getPendingUpload", "containing_data_type_ref": "sharing.CreateSharedLinkArg", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkError.path": {"fq_name": "sharing.CreateSharedLinkError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "sharing.CreateSharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkError.other": {"fq_name": "sharing.CreateSharedLinkError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.CreateSharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkWithSettingsArg.path": {"fq_name": "sharing.CreateSharedLinkWithSettingsArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.CreateSharedLinkWithSettingsArg", "route_refs": ["sharing.create_shared_link_with_settings"], "_type": "FieldReference"}, "sharing.CreateSharedLinkWithSettingsArg.settings": {"fq_name": "sharing.CreateSharedLinkWithSettingsArg.settings", "param_name": "settings", "static_instance": null, "getter_method": "getSettings", "containing_data_type_ref": "sharing.CreateSharedLinkWithSettingsArg", "route_refs": ["sharing.create_shared_link_with_settings"], "_type": "FieldReference"}, "sharing.CreateSharedLinkWithSettingsError.path": {"fq_name": "sharing.CreateSharedLinkWithSettingsError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "sharing.CreateSharedLinkWithSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkWithSettingsError.email_not_verified": {"fq_name": "sharing.CreateSharedLinkWithSettingsError.email_not_verified", "param_name": "emailNotVerifiedValue", "static_instance": "EMAIL_NOT_VERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.CreateSharedLinkWithSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkWithSettingsError.shared_link_already_exists": {"fq_name": "sharing.CreateSharedLinkWithSettingsError.shared_link_already_exists", "param_name": "sharedLinkAlreadyExistsValue", "static_instance": null, "getter_method": "getSharedLinkAlreadyExistsValue", "containing_data_type_ref": "sharing.CreateSharedLinkWithSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkWithSettingsError.settings_error": {"fq_name": "sharing.CreateSharedLinkWithSettingsError.settings_error", "param_name": "settingsErrorValue", "static_instance": null, "getter_method": "getSettingsErrorValue", "containing_data_type_ref": "sharing.CreateSharedLinkWithSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.CreateSharedLinkWithSettingsError.access_denied": {"fq_name": "sharing.CreateSharedLinkWithSettingsError.access_denied", "param_name": "accessDeniedValue", "static_instance": "ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.CreateSharedLinkWithSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.ExpectedSharedContentLinkMetadata.audience_options": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata.audience_options", "param_name": "audienceOptions", "static_instance": null, "getter_method": "getAudienceOptions", "containing_data_type_ref": "sharing.ExpectedSharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.ExpectedSharedContentLinkMetadata.current_audience": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata.current_audience", "param_name": "currentAudience", "static_instance": null, "getter_method": "getCurrentAudience", "containing_data_type_ref": "sharing.ExpectedSharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.ExpectedSharedContentLinkMetadata.link_permissions": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata.link_permissions", "param_name": "linkPermissions", "static_instance": null, "getter_method": "getLinkPermissions", "containing_data_type_ref": "sharing.ExpectedSharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.ExpectedSharedContentLinkMetadata.password_protected": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata.password_protected", "param_name": "passwordProtected", "static_instance": null, "getter_method": "getPasswordProtected", "containing_data_type_ref": "sharing.ExpectedSharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.ExpectedSharedContentLinkMetadata.access_level": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.ExpectedSharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.ExpectedSharedContentLinkMetadata.audience_restricting_shared_folder": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata.audience_restricting_shared_folder", "param_name": "audienceRestrictingSharedFolder", "static_instance": null, "getter_method": "getAudienceRestrictingSharedFolder", "containing_data_type_ref": "sharing.ExpectedSharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.ExpectedSharedContentLinkMetadata.expiry": {"fq_name": "sharing.ExpectedSharedContentLinkMetadata.expiry", "param_name": "expiry", "static_instance": null, "getter_method": "getExpiry", "containing_data_type_ref": "sharing.ExpectedSharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.disable_viewer_info": {"fq_name": "sharing.FileAction.disable_viewer_info", "param_name": "disableViewerInfoValue", "static_instance": "DISABLE_VIEWER_INFO", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.edit_contents": {"fq_name": "sharing.FileAction.edit_contents", "param_name": "editContentsValue", "static_instance": "EDIT_CONTENTS", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.enable_viewer_info": {"fq_name": "sharing.FileAction.enable_viewer_info", "param_name": "enableViewerInfoValue", "static_instance": "ENABLE_VIEWER_INFO", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.invite_viewer": {"fq_name": "sharing.FileAction.invite_viewer", "param_name": "inviteViewerValue", "static_instance": "INVITE_VIEWER", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.invite_viewer_no_comment": {"fq_name": "sharing.FileAction.invite_viewer_no_comment", "param_name": "inviteViewerNoCommentValue", "static_instance": "INVITE_VIEWER_NO_COMMENT", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.invite_editor": {"fq_name": "sharing.FileAction.invite_editor", "param_name": "inviteEditorValue", "static_instance": "INVITE_EDITOR", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.unshare": {"fq_name": "sharing.FileAction.unshare", "param_name": "unshareValue", "static_instance": "UNSHARE", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.relinquish_membership": {"fq_name": "sharing.FileAction.relinquish_membership", "param_name": "relinquishMembershipValue", "static_instance": "RELINQUISH_MEMBERSHIP", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.share_link": {"fq_name": "sharing.FileAction.share_link", "param_name": "shareLinkValue", "static_instance": "SHARE_LINK", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.create_link": {"fq_name": "sharing.FileAction.create_link", "param_name": "createLinkValue", "static_instance": "CREATE_LINK", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.create_view_link": {"fq_name": "sharing.FileAction.create_view_link", "param_name": "createViewLinkValue", "static_instance": "CREATE_VIEW_LINK", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.create_edit_link": {"fq_name": "sharing.FileAction.create_edit_link", "param_name": "createEditLinkValue", "static_instance": "CREATE_EDIT_LINK", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileAction.other": {"fq_name": "sharing.FileAction.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.FileAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FileErrorResult.file_not_found_error": {"fq_name": "sharing.FileErrorResult.file_not_found_error", "param_name": "fileNotFoundErrorValue", "static_instance": null, "getter_method": "getFileNotFoundErrorValue", "containing_data_type_ref": "sharing.FileErrorResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileErrorResult.invalid_file_action_error": {"fq_name": "sharing.FileErrorResult.invalid_file_action_error", "param_name": "invalidFileActionErrorValue", "static_instance": null, "getter_method": "getInvalidFileActionErrorValue", "containing_data_type_ref": "sharing.FileErrorResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileErrorResult.permission_denied_error": {"fq_name": "sharing.FileErrorResult.permission_denied_error", "param_name": "permissionDeniedErrorValue", "static_instance": null, "getter_method": "getPermissionDeniedErrorValue", "containing_data_type_ref": "sharing.FileErrorResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileErrorResult.other": {"fq_name": "sharing.FileErrorResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.FileErrorResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.url": {"fq_name": "sharing.FileLinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.name": {"fq_name": "sharing.FileLinkMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.link_permissions": {"fq_name": "sharing.FileLinkMetadata.link_permissions", "param_name": "linkPermissions", "static_instance": null, "getter_method": "getLinkPermissions", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.client_modified": {"fq_name": "sharing.FileLinkMetadata.client_modified", "param_name": "clientModified", "static_instance": null, "getter_method": "getClientModified", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.server_modified": {"fq_name": "sharing.FileLinkMetadata.server_modified", "param_name": "serverModified", "static_instance": null, "getter_method": "getServerModified", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.rev": {"fq_name": "sharing.FileLinkMetadata.rev", "param_name": "rev", "static_instance": null, "getter_method": "getRev", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.size": {"fq_name": "sharing.FileLinkMetadata.size", "param_name": "size", "static_instance": null, "getter_method": "getSize", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.id": {"fq_name": "sharing.FileLinkMetadata.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.expires": {"fq_name": "sharing.FileLinkMetadata.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.path_lower": {"fq_name": "sharing.FileLinkMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.team_member_info": {"fq_name": "sharing.FileLinkMetadata.team_member_info", "param_name": "teamMemberInfo", "static_instance": null, "getter_method": "getTeamMemberInfo", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileLinkMetadata.content_owner_team_info": {"fq_name": "sharing.FileLinkMetadata.content_owner_team_info", "param_name": "contentOwnerTeamInfo", "static_instance": null, "getter_method": "getContentOwnerTeamInfo", "containing_data_type_ref": "sharing.FileLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionError.invalid_member": {"fq_name": "sharing.FileMemberActionError.invalid_member", "param_name": "invalidMemberValue", "static_instance": "INVALID_MEMBER", "getter_method": null, "containing_data_type_ref": "sharing.FileMemberActionError", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionError.no_permission": {"fq_name": "sharing.FileMemberActionError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.FileMemberActionError", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionError.access_error": {"fq_name": "sharing.FileMemberActionError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.FileMemberActionError", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionError.no_explicit_access": {"fq_name": "sharing.FileMemberActionError.no_explicit_access", "param_name": "noExplicitAccessValue", "static_instance": null, "getter_method": "getNoExplicitAccessValue", "containing_data_type_ref": "sharing.FileMemberActionError", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionError.other": {"fq_name": "sharing.FileMemberActionError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.FileMemberActionError", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionIndividualResult.success": {"fq_name": "sharing.FileMemberActionIndividualResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "sharing.FileMemberActionIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionIndividualResult.member_error": {"fq_name": "sharing.FileMemberActionIndividualResult.member_error", "param_name": "memberErrorValue", "static_instance": null, "getter_method": "getMemberErrorValue", "containing_data_type_ref": "sharing.FileMemberActionIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionResult.member": {"fq_name": "sharing.FileMemberActionResult.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "sharing.FileMemberActionResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionResult.result": {"fq_name": "sharing.FileMemberActionResult.result", "param_name": "result", "static_instance": null, "getter_method": "getResult", "containing_data_type_ref": "sharing.FileMemberActionResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionResult.sckey_sha1": {"fq_name": "sharing.FileMemberActionResult.sckey_sha1", "param_name": "sckeySha1", "static_instance": null, "getter_method": "getSckeySha1", "containing_data_type_ref": "sharing.FileMemberActionResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberActionResult.invitation_signature": {"fq_name": "sharing.FileMemberActionResult.invitation_signature", "param_name": "invitationSignature", "static_instance": null, "getter_method": "getInvitationSignature", "containing_data_type_ref": "sharing.FileMemberActionResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberRemoveActionResult.success": {"fq_name": "sharing.FileMemberRemoveActionResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "sharing.FileMemberRemoveActionResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberRemoveActionResult.member_error": {"fq_name": "sharing.FileMemberRemoveActionResult.member_error", "param_name": "memberErrorValue", "static_instance": null, "getter_method": "getMemberErrorValue", "containing_data_type_ref": "sharing.FileMemberRemoveActionResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FileMemberRemoveActionResult.other": {"fq_name": "sharing.FileMemberRemoveActionResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.FileMemberRemoveActionResult", "route_refs": [], "_type": "FieldReference"}, "sharing.FilePermission.action": {"fq_name": "sharing.FilePermission.action", "param_name": "action", "static_instance": null, "getter_method": "getAction", "containing_data_type_ref": "sharing.FilePermission", "route_refs": [], "_type": "FieldReference"}, "sharing.FilePermission.allow": {"fq_name": "sharing.FilePermission.allow", "param_name": "allow", "static_instance": null, "getter_method": "getAllow", "containing_data_type_ref": "sharing.FilePermission", "route_refs": [], "_type": "FieldReference"}, "sharing.FilePermission.reason": {"fq_name": "sharing.FilePermission.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "sharing.FilePermission", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.change_options": {"fq_name": "sharing.FolderAction.change_options", "param_name": "changeOptionsValue", "static_instance": "CHANGE_OPTIONS", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.disable_viewer_info": {"fq_name": "sharing.FolderAction.disable_viewer_info", "param_name": "disableViewerInfoValue", "static_instance": "DISABLE_VIEWER_INFO", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.edit_contents": {"fq_name": "sharing.FolderAction.edit_contents", "param_name": "editContentsValue", "static_instance": "EDIT_CONTENTS", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.enable_viewer_info": {"fq_name": "sharing.FolderAction.enable_viewer_info", "param_name": "enableViewerInfoValue", "static_instance": "ENABLE_VIEWER_INFO", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.invite_editor": {"fq_name": "sharing.FolderAction.invite_editor", "param_name": "inviteEditorValue", "static_instance": "INVITE_EDITOR", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.invite_viewer": {"fq_name": "sharing.FolderAction.invite_viewer", "param_name": "inviteViewerValue", "static_instance": "INVITE_VIEWER", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.invite_viewer_no_comment": {"fq_name": "sharing.FolderAction.invite_viewer_no_comment", "param_name": "inviteViewerNoCommentValue", "static_instance": "INVITE_VIEWER_NO_COMMENT", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.relinquish_membership": {"fq_name": "sharing.FolderAction.relinquish_membership", "param_name": "relinquishMembershipValue", "static_instance": "RELINQUISH_MEMBERSHIP", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.unmount": {"fq_name": "sharing.FolderAction.unmount", "param_name": "unmountValue", "static_instance": "UNMOUNT", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.unshare": {"fq_name": "sharing.FolderAction.unshare", "param_name": "unshareValue", "static_instance": "UNSHARE", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.leave_a_copy": {"fq_name": "sharing.FolderAction.leave_a_copy", "param_name": "leaveACopyValue", "static_instance": "LEAVE_A_COPY", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.share_link": {"fq_name": "sharing.FolderAction.share_link", "param_name": "shareLinkValue", "static_instance": "SHARE_LINK", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.create_link": {"fq_name": "sharing.FolderAction.create_link", "param_name": "createLinkValue", "static_instance": "CREATE_LINK", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.set_access_inheritance": {"fq_name": "sharing.FolderAction.set_access_inheritance", "param_name": "setAccessInheritanceValue", "static_instance": "SET_ACCESS_INHERITANCE", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderAction.other": {"fq_name": "sharing.FolderAction.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.FolderAction", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.url": {"fq_name": "sharing.FolderLinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.name": {"fq_name": "sharing.FolderLinkMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.link_permissions": {"fq_name": "sharing.FolderLinkMetadata.link_permissions", "param_name": "linkPermissions", "static_instance": null, "getter_method": "getLinkPermissions", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.id": {"fq_name": "sharing.FolderLinkMetadata.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.expires": {"fq_name": "sharing.FolderLinkMetadata.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.path_lower": {"fq_name": "sharing.FolderLinkMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.team_member_info": {"fq_name": "sharing.FolderLinkMetadata.team_member_info", "param_name": "teamMemberInfo", "static_instance": null, "getter_method": "getTeamMemberInfo", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderLinkMetadata.content_owner_team_info": {"fq_name": "sharing.FolderLinkMetadata.content_owner_team_info", "param_name": "contentOwnerTeamInfo", "static_instance": null, "getter_method": "getContentOwnerTeamInfo", "containing_data_type_ref": "sharing.FolderLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPermission.action": {"fq_name": "sharing.FolderPermission.action", "param_name": "action", "static_instance": null, "getter_method": "getAction", "containing_data_type_ref": "sharing.FolderPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPermission.allow": {"fq_name": "sharing.FolderPermission.allow", "param_name": "allow", "static_instance": null, "getter_method": "getAllow", "containing_data_type_ref": "sharing.FolderPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPermission.reason": {"fq_name": "sharing.FolderPermission.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "sharing.FolderPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPolicy.acl_update_policy": {"fq_name": "sharing.FolderPolicy.acl_update_policy", "param_name": "aclUpdatePolicy", "static_instance": null, "getter_method": "getAclUpdatePolicy", "containing_data_type_ref": "sharing.FolderPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPolicy.shared_link_policy": {"fq_name": "sharing.FolderPolicy.shared_link_policy", "param_name": "sharedLinkPolicy", "static_instance": null, "getter_method": "getSharedLinkPolicy", "containing_data_type_ref": "sharing.FolderPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPolicy.member_policy": {"fq_name": "sharing.FolderPolicy.member_policy", "param_name": "memberPolicy", "static_instance": null, "getter_method": "getMemberPolicy", "containing_data_type_ref": "sharing.FolderPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPolicy.resolved_member_policy": {"fq_name": "sharing.FolderPolicy.resolved_member_policy", "param_name": "resolvedMemberPolicy", "static_instance": null, "getter_method": "getResolvedMemberPolicy", "containing_data_type_ref": "sharing.FolderPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.FolderPolicy.viewer_info_policy": {"fq_name": "sharing.FolderPolicy.viewer_info_policy", "param_name": "viewerInfoPolicy", "static_instance": null, "getter_method": "getViewerInfoPolicy", "containing_data_type_ref": "sharing.FolderPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataArg.file": {"fq_name": "sharing.GetFileMetadataArg.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.GetFileMetadataArg", "route_refs": ["sharing.get_file_metadata"], "_type": "FieldReference"}, "sharing.GetFileMetadataArg.actions": {"fq_name": "sharing.GetFileMetadataArg.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.GetFileMetadataArg", "route_refs": ["sharing.get_file_metadata"], "_type": "FieldReference"}, "sharing.GetFileMetadataBatchArg.files": {"fq_name": "sharing.GetFileMetadataBatchArg.files", "param_name": "files", "static_instance": null, "getter_method": "getFiles", "containing_data_type_ref": "sharing.GetFileMetadataBatchArg", "route_refs": ["sharing.get_file_metadata/batch"], "_type": "FieldReference"}, "sharing.GetFileMetadataBatchArg.actions": {"fq_name": "sharing.GetFileMetadataBatchArg.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.GetFileMetadataBatchArg", "route_refs": ["sharing.get_file_metadata/batch"], "_type": "FieldReference"}, "sharing.GetFileMetadataBatchResult.file": {"fq_name": "sharing.GetFileMetadataBatchResult.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.GetFileMetadataBatchResult", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataBatchResult.result": {"fq_name": "sharing.GetFileMetadataBatchResult.result", "param_name": "result", "static_instance": null, "getter_method": "getResult", "containing_data_type_ref": "sharing.GetFileMetadataBatchResult", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataError.user_error": {"fq_name": "sharing.GetFileMetadataError.user_error", "param_name": "userErrorValue", "static_instance": null, "getter_method": "getUserErrorValue", "containing_data_type_ref": "sharing.GetFileMetadataError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataError.access_error": {"fq_name": "sharing.GetFileMetadataError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.GetFileMetadataError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataError.other": {"fq_name": "sharing.GetFileMetadataError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.GetFileMetadataError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataIndividualResult.metadata": {"fq_name": "sharing.GetFileMetadataIndividualResult.metadata", "param_name": "metadataValue", "static_instance": null, "getter_method": "getMetadataValue", "containing_data_type_ref": "sharing.GetFileMetadataIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataIndividualResult.access_error": {"fq_name": "sharing.GetFileMetadataIndividualResult.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.GetFileMetadataIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.GetFileMetadataIndividualResult.other": {"fq_name": "sharing.GetFileMetadataIndividualResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.GetFileMetadataIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.GetMetadataArgs.shared_folder_id": {"fq_name": "sharing.GetMetadataArgs.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.GetMetadataArgs", "route_refs": ["sharing.get_folder_metadata"], "_type": "FieldReference"}, "sharing.GetMetadataArgs.actions": {"fq_name": "sharing.GetMetadataArgs.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.GetMetadataArgs", "route_refs": ["sharing.get_folder_metadata"], "_type": "FieldReference"}, "sharing.GetSharedLinkFileError.shared_link_not_found": {"fq_name": "sharing.GetSharedLinkFileError.shared_link_not_found", "param_name": "sharedLinkNotFoundValue", "static_instance": "SHARED_LINK_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "sharing.GetSharedLinkFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinkFileError.shared_link_access_denied": {"fq_name": "sharing.GetSharedLinkFileError.shared_link_access_denied", "param_name": "sharedLinkAccessDeniedValue", "static_instance": "SHARED_LINK_ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.GetSharedLinkFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinkFileError.unsupported_link_type": {"fq_name": "sharing.GetSharedLinkFileError.unsupported_link_type", "param_name": "unsupportedLinkTypeValue", "static_instance": "UNSUPPORTED_LINK_TYPE", "getter_method": null, "containing_data_type_ref": "sharing.GetSharedLinkFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinkFileError.other": {"fq_name": "sharing.GetSharedLinkFileError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.GetSharedLinkFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinkFileError.shared_link_is_directory": {"fq_name": "sharing.GetSharedLinkFileError.shared_link_is_directory", "param_name": "sharedLinkIsDirectoryValue", "static_instance": "SHARED_LINK_IS_DIRECTORY", "getter_method": null, "containing_data_type_ref": "sharing.GetSharedLinkFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinkMetadataArg.url": {"fq_name": "sharing.GetSharedLinkMetadataArg.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.GetSharedLinkMetadataArg", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinkMetadataArg.path": {"fq_name": "sharing.GetSharedLinkMetadataArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.GetSharedLinkMetadataArg", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinkMetadataArg.link_password": {"fq_name": "sharing.GetSharedLinkMetadataArg.link_password", "param_name": "linkPassword", "static_instance": null, "getter_method": "getLinkPassword", "containing_data_type_ref": "sharing.GetSharedLinkMetadataArg", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinksArg.path": {"fq_name": "sharing.GetSharedLinksArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.GetSharedLinksArg", "route_refs": ["sharing.get_shared_links"], "_type": "FieldReference"}, "sharing.GetSharedLinksError.path": {"fq_name": "sharing.GetSharedLinksError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "sharing.GetSharedLinksError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinksError.other": {"fq_name": "sharing.GetSharedLinksError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.GetSharedLinksError", "route_refs": [], "_type": "FieldReference"}, "sharing.GetSharedLinksResult.links": {"fq_name": "sharing.GetSharedLinksResult.links", "param_name": "links", "static_instance": null, "getter_method": "getLinks", "containing_data_type_ref": "sharing.GetSharedLinksResult", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.group_name": {"fq_name": "sharing.GroupInfo.group_name", "param_name": "groupName", "static_instance": null, "getter_method": "getGroupName", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.group_id": {"fq_name": "sharing.GroupInfo.group_id", "param_name": "groupId", "static_instance": null, "getter_method": "getGroupId", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.group_management_type": {"fq_name": "sharing.GroupInfo.group_management_type", "param_name": "groupManagementType", "static_instance": null, "getter_method": "getGroupManagementType", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.group_type": {"fq_name": "sharing.GroupInfo.group_type", "param_name": "groupType", "static_instance": null, "getter_method": "getGroupType", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.is_member": {"fq_name": "sharing.GroupInfo.is_member", "param_name": "isMember", "static_instance": null, "getter_method": "getIsMember", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.is_owner": {"fq_name": "sharing.GroupInfo.is_owner", "param_name": "isOwner", "static_instance": null, "getter_method": "getIsOwner", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.same_team": {"fq_name": "sharing.GroupInfo.same_team", "param_name": "sameTeam", "static_instance": null, "getter_method": "getSameTeam", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.group_external_id": {"fq_name": "sharing.GroupInfo.group_external_id", "param_name": "groupExternalId", "static_instance": null, "getter_method": "getGroupExternalId", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupInfo.member_count": {"fq_name": "sharing.GroupInfo.member_count", "param_name": "memberCount", "static_instance": null, "getter_method": "getMemberCount", "containing_data_type_ref": "sharing.GroupInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupMembershipInfo.access_type": {"fq_name": "sharing.GroupMembershipInfo.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.GroupMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupMembershipInfo.group": {"fq_name": "sharing.GroupMembershipInfo.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "sharing.GroupMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupMembershipInfo.permissions": {"fq_name": "sharing.GroupMembershipInfo.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.GroupMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupMembershipInfo.initials": {"fq_name": "sharing.GroupMembershipInfo.initials", "param_name": "initials", "static_instance": null, "getter_method": "getInitials", "containing_data_type_ref": "sharing.GroupMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.GroupMembershipInfo.is_inherited": {"fq_name": "sharing.GroupMembershipInfo.is_inherited", "param_name": "isInherited", "static_instance": null, "getter_method": "getIsInherited", "containing_data_type_ref": "sharing.GroupMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InsufficientPlan.message": {"fq_name": "sharing.InsufficientPlan.message", "param_name": "message", "static_instance": null, "getter_method": "getMessage", "containing_data_type_ref": "sharing.InsufficientPlan", "route_refs": [], "_type": "FieldReference"}, "sharing.InsufficientPlan.upsell_url": {"fq_name": "sharing.InsufficientPlan.upsell_url", "param_name": "upsellUrl", "static_instance": null, "getter_method": "getUpsellUrl", "containing_data_type_ref": "sharing.InsufficientPlan", "route_refs": [], "_type": "FieldReference"}, "sharing.InsufficientQuotaAmounts.space_needed": {"fq_name": "sharing.InsufficientQuotaAmounts.space_needed", "param_name": "spaceNeeded", "static_instance": null, "getter_method": "getSpaceNeeded", "containing_data_type_ref": "sharing.InsufficientQuotaAmounts", "route_refs": [], "_type": "FieldReference"}, "sharing.InsufficientQuotaAmounts.space_shortage": {"fq_name": "sharing.InsufficientQuotaAmounts.space_shortage", "param_name": "spaceShortage", "static_instance": null, "getter_method": "getSpaceShortage", "containing_data_type_ref": "sharing.InsufficientQuotaAmounts", "route_refs": [], "_type": "FieldReference"}, "sharing.InsufficientQuotaAmounts.space_left": {"fq_name": "sharing.InsufficientQuotaAmounts.space_left", "param_name": "spaceLeft", "static_instance": null, "getter_method": "getSpaceLeft", "containing_data_type_ref": "sharing.InsufficientQuotaAmounts", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeInfo.email": {"fq_name": "sharing.InviteeInfo.email", "param_name": "emailValue", "static_instance": null, "getter_method": "getEmailValue", "containing_data_type_ref": "sharing.InviteeInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeInfo.other": {"fq_name": "sharing.InviteeInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.InviteeInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeMembershipInfo.access_type": {"fq_name": "sharing.InviteeMembershipInfo.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.InviteeMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeMembershipInfo.invitee": {"fq_name": "sharing.InviteeMembershipInfo.invitee", "param_name": "invitee", "static_instance": null, "getter_method": "getInvitee", "containing_data_type_ref": "sharing.InviteeMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeMembershipInfo.permissions": {"fq_name": "sharing.InviteeMembershipInfo.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.InviteeMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeMembershipInfo.initials": {"fq_name": "sharing.InviteeMembershipInfo.initials", "param_name": "initials", "static_instance": null, "getter_method": "getInitials", "containing_data_type_ref": "sharing.InviteeMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeMembershipInfo.is_inherited": {"fq_name": "sharing.InviteeMembershipInfo.is_inherited", "param_name": "isInherited", "static_instance": null, "getter_method": "getIsInherited", "containing_data_type_ref": "sharing.InviteeMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.InviteeMembershipInfo.user": {"fq_name": "sharing.InviteeMembershipInfo.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "sharing.InviteeMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.JobError.unshare_folder_error": {"fq_name": "sharing.JobError.unshare_folder_error", "param_name": "unshareFolderErrorValue", "static_instance": null, "getter_method": "getUnshareFolderErrorValue", "containing_data_type_ref": "sharing.JobError", "route_refs": [], "_type": "FieldReference"}, "sharing.JobError.remove_folder_member_error": {"fq_name": "sharing.JobError.remove_folder_member_error", "param_name": "removeFolderMemberErrorValue", "static_instance": null, "getter_method": "getRemoveFolderMemberErrorValue", "containing_data_type_ref": "sharing.JobError", "route_refs": [], "_type": "FieldReference"}, "sharing.JobError.relinquish_folder_membership_error": {"fq_name": "sharing.JobError.relinquish_folder_membership_error", "param_name": "relinquishFolderMembershipErrorValue", "static_instance": null, "getter_method": "getRelinquishFolderMembershipErrorValue", "containing_data_type_ref": "sharing.JobError", "route_refs": [], "_type": "FieldReference"}, "sharing.JobError.other": {"fq_name": "sharing.JobError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.JobError", "route_refs": [], "_type": "FieldReference"}, "sharing.JobStatus.in_progress": {"fq_name": "sharing.JobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "sharing.JobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.JobStatus.complete": {"fq_name": "sharing.JobStatus.complete", "param_name": "completeValue", "static_instance": "COMPLETE", "getter_method": null, "containing_data_type_ref": "sharing.JobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.JobStatus.failed": {"fq_name": "sharing.JobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "sharing.JobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAccessLevel.viewer": {"fq_name": "sharing.LinkAccessLevel.viewer", "param_name": "viewerValue", "static_instance": "VIEWER", "getter_method": null, "containing_data_type_ref": "sharing.LinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAccessLevel.editor": {"fq_name": "sharing.LinkAccessLevel.editor", "param_name": "editorValue", "static_instance": "EDITOR", "getter_method": null, "containing_data_type_ref": "sharing.LinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAccessLevel.other": {"fq_name": "sharing.LinkAccessLevel.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.LinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAction.change_access_level": {"fq_name": "sharing.LinkAction.change_access_level", "param_name": "changeAccessLevelValue", "static_instance": "CHANGE_ACCESS_LEVEL", "getter_method": null, "containing_data_type_ref": "sharing.LinkAction", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAction.change_audience": {"fq_name": "sharing.LinkAction.change_audience", "param_name": "changeAudienceValue", "static_instance": "CHANGE_AUDIENCE", "getter_method": null, "containing_data_type_ref": "sharing.LinkAction", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAction.remove_expiry": {"fq_name": "sharing.LinkAction.remove_expiry", "param_name": "removeExpiryValue", "static_instance": "REMOVE_EXPIRY", "getter_method": null, "containing_data_type_ref": "sharing.LinkAction", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAction.remove_password": {"fq_name": "sharing.LinkAction.remove_password", "param_name": "removePasswordValue", "static_instance": "REMOVE_PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.LinkAction", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAction.set_expiry": {"fq_name": "sharing.LinkAction.set_expiry", "param_name": "setExpiryValue", "static_instance": "SET_EXPIRY", "getter_method": null, "containing_data_type_ref": "sharing.LinkAction", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAction.set_password": {"fq_name": "sharing.LinkAction.set_password", "param_name": "setPasswordValue", "static_instance": "SET_PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.LinkAction", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAction.other": {"fq_name": "sharing.LinkAction.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.LinkAction", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudience.public": {"fq_name": "sharing.LinkAudience.public", "param_name": "publicValue", "static_instance": "PUBLIC", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudience", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudience.team": {"fq_name": "sharing.LinkAudience.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudience", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudience.no_one": {"fq_name": "sharing.LinkAudience.no_one", "param_name": "noOneValue", "static_instance": "NO_ONE", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudience", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudience.password": {"fq_name": "sharing.LinkAudience.password", "param_name": "passwordValue", "static_instance": "PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudience", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudience.members": {"fq_name": "sharing.LinkAudience.members", "param_name": "membersValue", "static_instance": "MEMBERS", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudience", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudience.other": {"fq_name": "sharing.LinkAudience.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudience", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceDisallowedReason.delete_and_recreate": {"fq_name": "sharing.LinkAudienceDisallowedReason.delete_and_recreate", "param_name": "deleteAndRecreateValue", "static_instance": "DELETE_AND_RECREATE", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudienceDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceDisallowedReason.restricted_by_shared_folder": {"fq_name": "sharing.LinkAudienceDisallowedReason.restricted_by_shared_folder", "param_name": "restrictedBySharedFolderValue", "static_instance": "RESTRICTED_BY_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudienceDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceDisallowedReason.restricted_by_team": {"fq_name": "sharing.LinkAudienceDisallowedReason.restricted_by_team", "param_name": "restrictedByTeamValue", "static_instance": "RESTRICTED_BY_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudienceDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceDisallowedReason.user_not_on_team": {"fq_name": "sharing.LinkAudienceDisallowedReason.user_not_on_team", "param_name": "userNotOnTeamValue", "static_instance": "USER_NOT_ON_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudienceDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceDisallowedReason.user_account_type": {"fq_name": "sharing.LinkAudienceDisallowedReason.user_account_type", "param_name": "userAccountTypeValue", "static_instance": "USER_ACCOUNT_TYPE", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudienceDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceDisallowedReason.permission_denied": {"fq_name": "sharing.LinkAudienceDisallowedReason.permission_denied", "param_name": "permissionDeniedValue", "static_instance": "PERMISSION_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudienceDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceDisallowedReason.other": {"fq_name": "sharing.LinkAudienceDisallowedReason.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.LinkAudienceDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceOption.audience": {"fq_name": "sharing.LinkAudienceOption.audience", "param_name": "audience", "static_instance": null, "getter_method": "getAudience", "containing_data_type_ref": "sharing.LinkAudienceOption", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceOption.allowed": {"fq_name": "sharing.LinkAudienceOption.allowed", "param_name": "allowed", "static_instance": null, "getter_method": "getAllowed", "containing_data_type_ref": "sharing.LinkAudienceOption", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkAudienceOption.disallowed_reason": {"fq_name": "sharing.LinkAudienceOption.disallowed_reason", "param_name": "disallowedReason", "static_instance": null, "getter_method": "getDisallowedReason", "containing_data_type_ref": "sharing.LinkAudienceOption", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkExpiry.remove_expiry": {"fq_name": "sharing.LinkExpiry.remove_expiry", "param_name": "removeExpiryValue", "static_instance": "REMOVE_EXPIRY", "getter_method": null, "containing_data_type_ref": "sharing.LinkExpiry", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkExpiry.set_expiry": {"fq_name": "sharing.LinkExpiry.set_expiry", "param_name": "setExpiryValue", "static_instance": null, "getter_method": "getSetExpiryValue", "containing_data_type_ref": "sharing.LinkExpiry", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkExpiry.other": {"fq_name": "sharing.LinkExpiry.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.LinkExpiry", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkMetadata.url": {"fq_name": "sharing.LinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.LinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkMetadata.visibility": {"fq_name": "sharing.LinkMetadata.visibility", "param_name": "visibility", "static_instance": null, "getter_method": "getVisibility", "containing_data_type_ref": "sharing.LinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkMetadata.expires": {"fq_name": "sharing.LinkMetadata.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "sharing.LinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPassword.remove_password": {"fq_name": "sharing.LinkPassword.remove_password", "param_name": "removePasswordValue", "static_instance": "REMOVE_PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.LinkPassword", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPassword.set_password": {"fq_name": "sharing.LinkPassword.set_password", "param_name": "setPasswordValue", "static_instance": null, "getter_method": "getSetPasswordValue", "containing_data_type_ref": "sharing.LinkPassword", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPassword.other": {"fq_name": "sharing.LinkPassword.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.LinkPassword", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermission.action": {"fq_name": "sharing.LinkPermission.action", "param_name": "action", "static_instance": null, "getter_method": "getAction", "containing_data_type_ref": "sharing.LinkPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermission.allow": {"fq_name": "sharing.LinkPermission.allow", "param_name": "allow", "static_instance": null, "getter_method": "getAllow", "containing_data_type_ref": "sharing.LinkPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermission.reason": {"fq_name": "sharing.LinkPermission.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "sharing.LinkPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_revoke": {"fq_name": "sharing.LinkPermissions.can_revoke", "param_name": "canRevoke", "static_instance": null, "getter_method": "getCanRevoke", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.visibility_policies": {"fq_name": "sharing.LinkPermissions.visibility_policies", "param_name": "visibilityPolicies", "static_instance": null, "getter_method": "getVisibilityPolicies", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_set_expiry": {"fq_name": "sharing.LinkPermissions.can_set_expiry", "param_name": "canSetExpiry", "static_instance": null, "getter_method": "getCanSetExpiry", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_remove_expiry": {"fq_name": "sharing.LinkPermissions.can_remove_expiry", "param_name": "canRemoveExpiry", "static_instance": null, "getter_method": "getCanRemoveExpiry", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.allow_download": {"fq_name": "sharing.LinkPermissions.allow_download", "param_name": "allowDownload", "static_instance": null, "getter_method": "getAllowDownload", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_allow_download": {"fq_name": "sharing.LinkPermissions.can_allow_download", "param_name": "canAllowDownload", "static_instance": null, "getter_method": "getCanAllowDownload", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_disallow_download": {"fq_name": "sharing.LinkPermissions.can_disallow_download", "param_name": "canDisallowDownload", "static_instance": null, "getter_method": "getCanDisallowDownload", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.allow_comments": {"fq_name": "sharing.LinkPermissions.allow_comments", "param_name": "allowComments", "static_instance": null, "getter_method": "getAllowComments", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.team_restricts_comments": {"fq_name": "sharing.LinkPermissions.team_restricts_comments", "param_name": "teamRestrictsComments", "static_instance": null, "getter_method": "getTeamRestrictsComments", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.resolved_visibility": {"fq_name": "sharing.LinkPermissions.resolved_visibility", "param_name": "resolvedVisibility", "static_instance": null, "getter_method": "getResolvedVisibility", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.requested_visibility": {"fq_name": "sharing.LinkPermissions.requested_visibility", "param_name": "requestedVisibility", "static_instance": null, "getter_method": "getRequestedVisibility", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.revoke_failure_reason": {"fq_name": "sharing.LinkPermissions.revoke_failure_reason", "param_name": "revokeFailureReason", "static_instance": null, "getter_method": "getRevokeFailureReason", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.effective_audience": {"fq_name": "sharing.LinkPermissions.effective_audience", "param_name": "effectiveAudience", "static_instance": null, "getter_method": "getEffectiveAudience", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.link_access_level": {"fq_name": "sharing.LinkPermissions.link_access_level", "param_name": "linkAccessLevel", "static_instance": null, "getter_method": "getLinkAccessLevel", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.audience_options": {"fq_name": "sharing.LinkPermissions.audience_options", "param_name": "audienceOptions", "static_instance": null, "getter_method": "getAudienceOptions", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_set_password": {"fq_name": "sharing.LinkPermissions.can_set_password", "param_name": "canSetPassword", "static_instance": null, "getter_method": "getCanSetPassword", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_remove_password": {"fq_name": "sharing.LinkPermissions.can_remove_password", "param_name": "canRemovePassword", "static_instance": null, "getter_method": "getCanRemovePassword", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.require_password": {"fq_name": "sharing.LinkPermissions.require_password", "param_name": "requirePassword", "static_instance": null, "getter_method": "getRequirePassword", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkPermissions.can_use_extended_sharing_controls": {"fq_name": "sharing.LinkPermissions.can_use_extended_sharing_controls", "param_name": "canUseExtendedSharingControls", "static_instance": null, "getter_method": "getCanUseExtendedSharingControls", "containing_data_type_ref": "sharing.LinkPermissions", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkSettings.access_level": {"fq_name": "sharing.LinkSettings.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.LinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkSettings.audience": {"fq_name": "sharing.LinkSettings.audience", "param_name": "audience", "static_instance": null, "getter_method": "getAudience", "containing_data_type_ref": "sharing.LinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkSettings.expiry": {"fq_name": "sharing.LinkSettings.expiry", "param_name": "expiry", "static_instance": null, "getter_method": "getExpiry", "containing_data_type_ref": "sharing.LinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.LinkSettings.password": {"fq_name": "sharing.LinkSettings.password", "param_name": "password", "static_instance": null, "getter_method": "getPassword", "containing_data_type_ref": "sharing.LinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersArg.file": {"fq_name": "sharing.ListFileMembersArg.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.ListFileMembersArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersArg.actions": {"fq_name": "sharing.ListFileMembersArg.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.ListFileMembersArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersArg.include_inherited": {"fq_name": "sharing.ListFileMembersArg.include_inherited", "param_name": "includeInherited", "static_instance": null, "getter_method": "getIncludeInherited", "containing_data_type_ref": "sharing.ListFileMembersArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersArg.limit": {"fq_name": "sharing.ListFileMembersArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "sharing.ListFileMembersArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersBatchArg.files": {"fq_name": "sharing.ListFileMembersBatchArg.files", "param_name": "files", "static_instance": null, "getter_method": "getFiles", "containing_data_type_ref": "sharing.ListFileMembersBatchArg", "route_refs": ["sharing.list_file_members/batch"], "_type": "FieldReference"}, "sharing.ListFileMembersBatchArg.limit": {"fq_name": "sharing.ListFileMembersBatchArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "sharing.ListFileMembersBatchArg", "route_refs": ["sharing.list_file_members/batch"], "_type": "FieldReference"}, "sharing.ListFileMembersBatchResult.file": {"fq_name": "sharing.ListFileMembersBatchResult.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.ListFileMembersBatchResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersBatchResult.result": {"fq_name": "sharing.ListFileMembersBatchResult.result", "param_name": "result", "static_instance": null, "getter_method": "getResult", "containing_data_type_ref": "sharing.ListFileMembersBatchResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersContinueArg.cursor": {"fq_name": "sharing.ListFileMembersContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListFileMembersContinueArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersContinueError.user_error": {"fq_name": "sharing.ListFileMembersContinueError.user_error", "param_name": "userErrorValue", "static_instance": null, "getter_method": "getUserErrorValue", "containing_data_type_ref": "sharing.ListFileMembersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersContinueError.access_error": {"fq_name": "sharing.ListFileMembersContinueError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.ListFileMembersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersContinueError.invalid_cursor": {"fq_name": "sharing.ListFileMembersContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "sharing.ListFileMembersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersContinueError.other": {"fq_name": "sharing.ListFileMembersContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ListFileMembersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersCountResult.members": {"fq_name": "sharing.ListFileMembersCountResult.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "sharing.ListFileMembersCountResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersCountResult.member_count": {"fq_name": "sharing.ListFileMembersCountResult.member_count", "param_name": "memberCount", "static_instance": null, "getter_method": "getMemberCount", "containing_data_type_ref": "sharing.ListFileMembersCountResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersError.user_error": {"fq_name": "sharing.ListFileMembersError.user_error", "param_name": "userErrorValue", "static_instance": null, "getter_method": "getUserErrorValue", "containing_data_type_ref": "sharing.ListFileMembersError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersError.access_error": {"fq_name": "sharing.ListFileMembersError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.ListFileMembersError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersError.other": {"fq_name": "sharing.ListFileMembersError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ListFileMembersError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersIndividualResult.result": {"fq_name": "sharing.ListFileMembersIndividualResult.result", "param_name": "resultValue", "static_instance": null, "getter_method": "getResultValue", "containing_data_type_ref": "sharing.ListFileMembersIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersIndividualResult.access_error": {"fq_name": "sharing.ListFileMembersIndividualResult.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.ListFileMembersIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFileMembersIndividualResult.other": {"fq_name": "sharing.ListFileMembersIndividualResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ListFileMembersIndividualResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesArg.limit": {"fq_name": "sharing.ListFilesArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "sharing.ListFilesArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesArg.actions": {"fq_name": "sharing.ListFilesArg.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.ListFilesArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesContinueArg.cursor": {"fq_name": "sharing.ListFilesContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListFilesContinueArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesContinueError.user_error": {"fq_name": "sharing.ListFilesContinueError.user_error", "param_name": "userErrorValue", "static_instance": null, "getter_method": "getUserErrorValue", "containing_data_type_ref": "sharing.ListFilesContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesContinueError.invalid_cursor": {"fq_name": "sharing.ListFilesContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "sharing.ListFilesContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesContinueError.other": {"fq_name": "sharing.ListFilesContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ListFilesContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesResult.entries": {"fq_name": "sharing.ListFilesResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "sharing.ListFilesResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFilesResult.cursor": {"fq_name": "sharing.ListFilesResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListFilesResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersArgs.shared_folder_id": {"fq_name": "sharing.ListFolderMembersArgs.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.ListFolderMembersArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersArgs.actions": {"fq_name": "sharing.ListFolderMembersArgs.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.ListFolderMembersArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersArgs.limit": {"fq_name": "sharing.ListFolderMembersArgs.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "sharing.ListFolderMembersArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersContinueArg.cursor": {"fq_name": "sharing.ListFolderMembersContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListFolderMembersContinueArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersContinueError.access_error": {"fq_name": "sharing.ListFolderMembersContinueError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.ListFolderMembersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersContinueError.invalid_cursor": {"fq_name": "sharing.ListFolderMembersContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "sharing.ListFolderMembersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersContinueError.other": {"fq_name": "sharing.ListFolderMembersContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ListFolderMembersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersCursorArg.actions": {"fq_name": "sharing.ListFolderMembersCursorArg.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.ListFolderMembersCursorArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFolderMembersCursorArg.limit": {"fq_name": "sharing.ListFolderMembersCursorArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "sharing.ListFolderMembersCursorArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFoldersArgs.limit": {"fq_name": "sharing.ListFoldersArgs.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "sharing.ListFoldersArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFoldersArgs.actions": {"fq_name": "sharing.ListFoldersArgs.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.ListFoldersArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFoldersContinueArg.cursor": {"fq_name": "sharing.ListFoldersContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListFoldersContinueArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFoldersContinueError.invalid_cursor": {"fq_name": "sharing.ListFoldersContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "sharing.ListFoldersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFoldersContinueError.other": {"fq_name": "sharing.ListFoldersContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ListFoldersContinueError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFoldersResult.entries": {"fq_name": "sharing.ListFoldersResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "sharing.ListFoldersResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListFoldersResult.cursor": {"fq_name": "sharing.ListFoldersResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListFoldersResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksArg.path": {"fq_name": "sharing.ListSharedLinksArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.ListSharedLinksArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksArg.cursor": {"fq_name": "sharing.ListSharedLinksArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListSharedLinksArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksArg.direct_only": {"fq_name": "sharing.ListSharedLinksArg.direct_only", "param_name": "directOnly", "static_instance": null, "getter_method": "getDirectOnly", "containing_data_type_ref": "sharing.ListSharedLinksArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksError.path": {"fq_name": "sharing.ListSharedLinksError.path", "param_name": "pathValue", "static_instance": null, "getter_method": "getPathValue", "containing_data_type_ref": "sharing.ListSharedLinksError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksError.reset": {"fq_name": "sharing.ListSharedLinksError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "sharing.ListSharedLinksError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksError.other": {"fq_name": "sharing.ListSharedLinksError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ListSharedLinksError", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksResult.links": {"fq_name": "sharing.ListSharedLinksResult.links", "param_name": "links", "static_instance": null, "getter_method": "getLinks", "containing_data_type_ref": "sharing.ListSharedLinksResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksResult.has_more": {"fq_name": "sharing.ListSharedLinksResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "sharing.ListSharedLinksResult", "route_refs": [], "_type": "FieldReference"}, "sharing.ListSharedLinksResult.cursor": {"fq_name": "sharing.ListSharedLinksResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.ListSharedLinksResult", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAccessLevelResult.access_level": {"fq_name": "sharing.MemberAccessLevelResult.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.MemberAccessLevelResult", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAccessLevelResult.warning": {"fq_name": "sharing.MemberAccessLevelResult.warning", "param_name": "warning", "static_instance": null, "getter_method": "getWarning", "containing_data_type_ref": "sharing.MemberAccessLevelResult", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAccessLevelResult.access_details": {"fq_name": "sharing.MemberAccessLevelResult.access_details", "param_name": "accessDetails", "static_instance": null, "getter_method": "getAccessDetails", "containing_data_type_ref": "sharing.MemberAccessLevelResult", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAction.leave_a_copy": {"fq_name": "sharing.MemberAction.leave_a_copy", "param_name": "leaveACopyValue", "static_instance": "LEAVE_A_COPY", "getter_method": null, "containing_data_type_ref": "sharing.MemberAction", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAction.make_editor": {"fq_name": "sharing.MemberAction.make_editor", "param_name": "makeEditorValue", "static_instance": "MAKE_EDITOR", "getter_method": null, "containing_data_type_ref": "sharing.MemberAction", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAction.make_owner": {"fq_name": "sharing.MemberAction.make_owner", "param_name": "makeOwnerValue", "static_instance": "MAKE_OWNER", "getter_method": null, "containing_data_type_ref": "sharing.MemberAction", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAction.make_viewer": {"fq_name": "sharing.MemberAction.make_viewer", "param_name": "makeViewerValue", "static_instance": "MAKE_VIEWER", "getter_method": null, "containing_data_type_ref": "sharing.MemberAction", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAction.make_viewer_no_comment": {"fq_name": "sharing.MemberAction.make_viewer_no_comment", "param_name": "makeViewerNoCommentValue", "static_instance": "MAKE_VIEWER_NO_COMMENT", "getter_method": null, "containing_data_type_ref": "sharing.MemberAction", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAction.remove": {"fq_name": "sharing.MemberAction.remove", "param_name": "removeValue", "static_instance": "REMOVE", "getter_method": null, "containing_data_type_ref": "sharing.MemberAction", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberAction.other": {"fq_name": "sharing.MemberAction.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.MemberAction", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberPermission.action": {"fq_name": "sharing.MemberPermission.action", "param_name": "action", "static_instance": null, "getter_method": "getAction", "containing_data_type_ref": "sharing.MemberPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberPermission.allow": {"fq_name": "sharing.MemberPermission.allow", "param_name": "allow", "static_instance": null, "getter_method": "getAllow", "containing_data_type_ref": "sharing.MemberPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberPermission.reason": {"fq_name": "sharing.MemberPermission.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "sharing.MemberPermission", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberPolicy.team": {"fq_name": "sharing.MemberPolicy.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "sharing.MemberPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberPolicy.anyone": {"fq_name": "sharing.MemberPolicy.anyone", "param_name": "anyoneValue", "static_instance": "ANYONE", "getter_method": null, "containing_data_type_ref": "sharing.MemberPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberPolicy.other": {"fq_name": "sharing.MemberPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.MemberPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberSelector.dropbox_id": {"fq_name": "sharing.MemberSelector.dropbox_id", "param_name": "dropboxIdValue", "static_instance": null, "getter_method": "getDropboxIdValue", "containing_data_type_ref": "sharing.MemberSelector", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberSelector.email": {"fq_name": "sharing.MemberSelector.email", "param_name": "emailValue", "static_instance": null, "getter_method": "getEmailValue", "containing_data_type_ref": "sharing.MemberSelector", "route_refs": [], "_type": "FieldReference"}, "sharing.MemberSelector.other": {"fq_name": "sharing.MemberSelector.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.MemberSelector", "route_refs": [], "_type": "FieldReference"}, "sharing.MembershipInfo.access_type": {"fq_name": "sharing.MembershipInfo.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.MembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.MembershipInfo.permissions": {"fq_name": "sharing.MembershipInfo.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.MembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.MembershipInfo.initials": {"fq_name": "sharing.MembershipInfo.initials", "param_name": "initials", "static_instance": null, "getter_method": "getInitials", "containing_data_type_ref": "sharing.MembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.MembershipInfo.is_inherited": {"fq_name": "sharing.MembershipInfo.is_inherited", "param_name": "isInherited", "static_instance": null, "getter_method": "getIsInherited", "containing_data_type_ref": "sharing.MembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsArgs.url": {"fq_name": "sharing.ModifySharedLinkSettingsArgs.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.ModifySharedLinkSettingsArgs", "route_refs": ["sharing.modify_shared_link_settings"], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsArgs.settings": {"fq_name": "sharing.ModifySharedLinkSettingsArgs.settings", "param_name": "settings", "static_instance": null, "getter_method": "getSettings", "containing_data_type_ref": "sharing.ModifySharedLinkSettingsArgs", "route_refs": ["sharing.modify_shared_link_settings"], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsArgs.remove_expiration": {"fq_name": "sharing.ModifySharedLinkSettingsArgs.remove_expiration", "param_name": "removeExpiration", "static_instance": null, "getter_method": "getRemoveExpiration", "containing_data_type_ref": "sharing.ModifySharedLinkSettingsArgs", "route_refs": ["sharing.modify_shared_link_settings"], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsError.shared_link_not_found": {"fq_name": "sharing.ModifySharedLinkSettingsError.shared_link_not_found", "param_name": "sharedLinkNotFoundValue", "static_instance": "SHARED_LINK_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "sharing.ModifySharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsError.shared_link_access_denied": {"fq_name": "sharing.ModifySharedLinkSettingsError.shared_link_access_denied", "param_name": "sharedLinkAccessDeniedValue", "static_instance": "SHARED_LINK_ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.ModifySharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsError.unsupported_link_type": {"fq_name": "sharing.ModifySharedLinkSettingsError.unsupported_link_type", "param_name": "unsupportedLinkTypeValue", "static_instance": "UNSUPPORTED_LINK_TYPE", "getter_method": null, "containing_data_type_ref": "sharing.ModifySharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsError.other": {"fq_name": "sharing.ModifySharedLinkSettingsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ModifySharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsError.settings_error": {"fq_name": "sharing.ModifySharedLinkSettingsError.settings_error", "param_name": "settingsErrorValue", "static_instance": null, "getter_method": "getSettingsErrorValue", "containing_data_type_ref": "sharing.ModifySharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.ModifySharedLinkSettingsError.email_not_verified": {"fq_name": "sharing.ModifySharedLinkSettingsError.email_not_verified", "param_name": "emailNotVerifiedValue", "static_instance": "EMAIL_NOT_VERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.ModifySharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderArg.shared_folder_id": {"fq_name": "sharing.MountFolderArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.MountFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderError.access_error": {"fq_name": "sharing.MountFolderError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.MountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderError.inside_shared_folder": {"fq_name": "sharing.MountFolderError.inside_shared_folder", "param_name": "insideSharedFolderValue", "static_instance": "INSIDE_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.MountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderError.insufficient_quota": {"fq_name": "sharing.MountFolderError.insufficient_quota", "param_name": "insufficientQuotaValue", "static_instance": null, "getter_method": "getInsufficientQuotaValue", "containing_data_type_ref": "sharing.MountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderError.already_mounted": {"fq_name": "sharing.MountFolderError.already_mounted", "param_name": "alreadyMountedValue", "static_instance": "ALREADY_MOUNTED", "getter_method": null, "containing_data_type_ref": "sharing.MountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderError.no_permission": {"fq_name": "sharing.MountFolderError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.MountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderError.not_mountable": {"fq_name": "sharing.MountFolderError.not_mountable", "param_name": "notMountableValue", "static_instance": "NOT_MOUNTABLE", "getter_method": null, "containing_data_type_ref": "sharing.MountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.MountFolderError.other": {"fq_name": "sharing.MountFolderError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.MountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.ParentFolderAccessInfo.folder_name": {"fq_name": "sharing.ParentFolderAccessInfo.folder_name", "param_name": "folderName", "static_instance": null, "getter_method": "getFolderName", "containing_data_type_ref": "sharing.ParentFolderAccessInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.ParentFolderAccessInfo.shared_folder_id": {"fq_name": "sharing.ParentFolderAccessInfo.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.ParentFolderAccessInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.ParentFolderAccessInfo.permissions": {"fq_name": "sharing.ParentFolderAccessInfo.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.ParentFolderAccessInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.ParentFolderAccessInfo.path": {"fq_name": "sharing.ParentFolderAccessInfo.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.ParentFolderAccessInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.PathLinkMetadata.url": {"fq_name": "sharing.PathLinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.PathLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.PathLinkMetadata.visibility": {"fq_name": "sharing.PathLinkMetadata.visibility", "param_name": "visibility", "static_instance": null, "getter_method": "getVisibility", "containing_data_type_ref": "sharing.PathLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.PathLinkMetadata.path": {"fq_name": "sharing.PathLinkMetadata.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.PathLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.PathLinkMetadata.expires": {"fq_name": "sharing.PathLinkMetadata.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "sharing.PathLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.PendingUploadMode.file": {"fq_name": "sharing.PendingUploadMode.file", "param_name": "fileValue", "static_instance": "FILE", "getter_method": null, "containing_data_type_ref": "sharing.PendingUploadMode", "route_refs": [], "_type": "FieldReference"}, "sharing.PendingUploadMode.folder": {"fq_name": "sharing.PendingUploadMode.folder", "param_name": "folderValue", "static_instance": "FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.PendingUploadMode", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.user_not_same_team_as_owner": {"fq_name": "sharing.PermissionDeniedReason.user_not_same_team_as_owner", "param_name": "userNotSameTeamAsOwnerValue", "static_instance": "USER_NOT_SAME_TEAM_AS_OWNER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.user_not_allowed_by_owner": {"fq_name": "sharing.PermissionDeniedReason.user_not_allowed_by_owner", "param_name": "userNotAllowedByOwnerValue", "static_instance": "USER_NOT_ALLOWED_BY_OWNER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.target_is_indirect_member": {"fq_name": "sharing.PermissionDeniedReason.target_is_indirect_member", "param_name": "targetIsIndirectMemberValue", "static_instance": "TARGET_IS_INDIRECT_MEMBER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.target_is_owner": {"fq_name": "sharing.PermissionDeniedReason.target_is_owner", "param_name": "targetIsOwnerValue", "static_instance": "TARGET_IS_OWNER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.target_is_self": {"fq_name": "sharing.PermissionDeniedReason.target_is_self", "param_name": "targetIsSelfValue", "static_instance": "TARGET_IS_SELF", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.target_not_active": {"fq_name": "sharing.PermissionDeniedReason.target_not_active", "param_name": "targetNotActiveValue", "static_instance": "TARGET_NOT_ACTIVE", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.folder_is_limited_team_folder": {"fq_name": "sharing.PermissionDeniedReason.folder_is_limited_team_folder", "param_name": "folderIsLimitedTeamFolderValue", "static_instance": "FOLDER_IS_LIMITED_TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.owner_not_on_team": {"fq_name": "sharing.PermissionDeniedReason.owner_not_on_team", "param_name": "ownerNotOnTeamValue", "static_instance": "OWNER_NOT_ON_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.permission_denied": {"fq_name": "sharing.PermissionDeniedReason.permission_denied", "param_name": "permissionDeniedValue", "static_instance": "PERMISSION_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.restricted_by_team": {"fq_name": "sharing.PermissionDeniedReason.restricted_by_team", "param_name": "restrictedByTeamValue", "static_instance": "RESTRICTED_BY_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.user_account_type": {"fq_name": "sharing.PermissionDeniedReason.user_account_type", "param_name": "userAccountTypeValue", "static_instance": "USER_ACCOUNT_TYPE", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.user_not_on_team": {"fq_name": "sharing.PermissionDeniedReason.user_not_on_team", "param_name": "userNotOnTeamValue", "static_instance": "USER_NOT_ON_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.folder_is_inside_shared_folder": {"fq_name": "sharing.PermissionDeniedReason.folder_is_inside_shared_folder", "param_name": "folderIsInsideSharedFolderValue", "static_instance": "FOLDER_IS_INSIDE_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.restricted_by_parent_folder": {"fq_name": "sharing.PermissionDeniedReason.restricted_by_parent_folder", "param_name": "restrictedByParentFolderValue", "static_instance": "RESTRICTED_BY_PARENT_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.insufficient_plan": {"fq_name": "sharing.PermissionDeniedReason.insufficient_plan", "param_name": "insufficientPlanValue", "static_instance": null, "getter_method": "getInsufficientPlanValue", "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.PermissionDeniedReason.other": {"fq_name": "sharing.PermissionDeniedReason.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.PermissionDeniedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFileMembershipArg.file": {"fq_name": "sharing.RelinquishFileMembershipArg.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.RelinquishFileMembershipArg", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFileMembershipError.access_error": {"fq_name": "sharing.RelinquishFileMembershipError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.RelinquishFileMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFileMembershipError.group_access": {"fq_name": "sharing.RelinquishFileMembershipError.group_access", "param_name": "groupAccessValue", "static_instance": "GROUP_ACCESS", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFileMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFileMembershipError.no_permission": {"fq_name": "sharing.RelinquishFileMembershipError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFileMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFileMembershipError.other": {"fq_name": "sharing.RelinquishFileMembershipError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFileMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipArg.shared_folder_id": {"fq_name": "sharing.RelinquishFolderMembershipArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.RelinquishFolderMembershipArg", "route_refs": ["sharing.relinquish_folder_membership"], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipArg.leave_a_copy": {"fq_name": "sharing.RelinquishFolderMembershipArg.leave_a_copy", "param_name": "leaveACopy", "static_instance": null, "getter_method": "getLeaveACopy", "containing_data_type_ref": "sharing.RelinquishFolderMembershipArg", "route_refs": ["sharing.relinquish_folder_membership"], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.access_error": {"fq_name": "sharing.RelinquishFolderMembershipError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.folder_owner": {"fq_name": "sharing.RelinquishFolderMembershipError.folder_owner", "param_name": "folderOwnerValue", "static_instance": "FOLDER_OWNER", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.mounted": {"fq_name": "sharing.RelinquishFolderMembershipError.mounted", "param_name": "mountedValue", "static_instance": "MOUNTED", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.group_access": {"fq_name": "sharing.RelinquishFolderMembershipError.group_access", "param_name": "groupAccessValue", "static_instance": "GROUP_ACCESS", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.team_folder": {"fq_name": "sharing.RelinquishFolderMembershipError.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.no_permission": {"fq_name": "sharing.RelinquishFolderMembershipError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.no_explicit_access": {"fq_name": "sharing.RelinquishFolderMembershipError.no_explicit_access", "param_name": "noExplicitAccessValue", "static_instance": "NO_EXPLICIT_ACCESS", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RelinquishFolderMembershipError.other": {"fq_name": "sharing.RelinquishFolderMembershipError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.RelinquishFolderMembershipError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFileMemberArg.file": {"fq_name": "sharing.RemoveFileMemberArg.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.RemoveFileMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFileMemberArg.member": {"fq_name": "sharing.RemoveFileMemberArg.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "sharing.RemoveFileMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFileMemberError.user_error": {"fq_name": "sharing.RemoveFileMemberError.user_error", "param_name": "userErrorValue", "static_instance": null, "getter_method": "getUserErrorValue", "containing_data_type_ref": "sharing.RemoveFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFileMemberError.access_error": {"fq_name": "sharing.RemoveFileMemberError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.RemoveFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFileMemberError.no_explicit_access": {"fq_name": "sharing.RemoveFileMemberError.no_explicit_access", "param_name": "noExplicitAccessValue", "static_instance": null, "getter_method": "getNoExplicitAccessValue", "containing_data_type_ref": "sharing.RemoveFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFileMemberError.other": {"fq_name": "sharing.RemoveFileMemberError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.RemoveFileMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberArg.shared_folder_id": {"fq_name": "sharing.RemoveFolderMemberArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.RemoveFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberArg.member": {"fq_name": "sharing.RemoveFolderMemberArg.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "sharing.RemoveFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberArg.leave_a_copy": {"fq_name": "sharing.RemoveFolderMemberArg.leave_a_copy", "param_name": "leaveACopy", "static_instance": null, "getter_method": "getLeaveACopy", "containing_data_type_ref": "sharing.RemoveFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.access_error": {"fq_name": "sharing.RemoveFolderMemberError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.member_error": {"fq_name": "sharing.RemoveFolderMemberError.member_error", "param_name": "memberErrorValue", "static_instance": null, "getter_method": "getMemberErrorValue", "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.folder_owner": {"fq_name": "sharing.RemoveFolderMemberError.folder_owner", "param_name": "folderOwnerValue", "static_instance": "FOLDER_OWNER", "getter_method": null, "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.group_access": {"fq_name": "sharing.RemoveFolderMemberError.group_access", "param_name": "groupAccessValue", "static_instance": "GROUP_ACCESS", "getter_method": null, "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.team_folder": {"fq_name": "sharing.RemoveFolderMemberError.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.no_permission": {"fq_name": "sharing.RemoveFolderMemberError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.too_many_files": {"fq_name": "sharing.RemoveFolderMemberError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveFolderMemberError.other": {"fq_name": "sharing.RemoveFolderMemberError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.RemoveFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveMemberJobStatus.in_progress": {"fq_name": "sharing.RemoveMemberJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "sharing.RemoveMemberJobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveMemberJobStatus.complete": {"fq_name": "sharing.RemoveMemberJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "sharing.RemoveMemberJobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.RemoveMemberJobStatus.failed": {"fq_name": "sharing.RemoveMemberJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "sharing.RemoveMemberJobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedLinkAccessLevel.viewer": {"fq_name": "sharing.RequestedLinkAccessLevel.viewer", "param_name": "viewerValue", "static_instance": "VIEWER", "getter_method": null, "containing_data_type_ref": "sharing.RequestedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedLinkAccessLevel.editor": {"fq_name": "sharing.RequestedLinkAccessLevel.editor", "param_name": "editorValue", "static_instance": "EDITOR", "getter_method": null, "containing_data_type_ref": "sharing.RequestedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedLinkAccessLevel.max": {"fq_name": "sharing.RequestedLinkAccessLevel.max", "param_name": "maxValue", "static_instance": "MAX", "getter_method": null, "containing_data_type_ref": "sharing.RequestedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedLinkAccessLevel.default": {"fq_name": "sharing.RequestedLinkAccessLevel.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "sharing.RequestedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedLinkAccessLevel.other": {"fq_name": "sharing.RequestedLinkAccessLevel.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.RequestedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedVisibility.public": {"fq_name": "sharing.RequestedVisibility.public", "param_name": "publicValue", "static_instance": "PUBLIC", "getter_method": null, "containing_data_type_ref": "sharing.RequestedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedVisibility.team_only": {"fq_name": "sharing.RequestedVisibility.team_only", "param_name": "teamOnlyValue", "static_instance": "TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.RequestedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.RequestedVisibility.password": {"fq_name": "sharing.RequestedVisibility.password", "param_name": "passwordValue", "static_instance": "PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.RequestedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.public": {"fq_name": "sharing.ResolvedVisibility.public", "param_name": "publicValue", "static_instance": "PUBLIC", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.team_only": {"fq_name": "sharing.ResolvedVisibility.team_only", "param_name": "teamOnlyValue", "static_instance": "TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.password": {"fq_name": "sharing.ResolvedVisibility.password", "param_name": "passwordValue", "static_instance": "PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.team_and_password": {"fq_name": "sharing.ResolvedVisibility.team_and_password", "param_name": "teamAndPasswordValue", "static_instance": "TEAM_AND_PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.shared_folder_only": {"fq_name": "sharing.ResolvedVisibility.shared_folder_only", "param_name": "sharedFolderOnlyValue", "static_instance": "SHARED_FOLDER_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.no_one": {"fq_name": "sharing.ResolvedVisibility.no_one", "param_name": "noOneValue", "static_instance": "NO_ONE", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.only_you": {"fq_name": "sharing.ResolvedVisibility.only_you", "param_name": "onlyYouValue", "static_instance": "ONLY_YOU", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.ResolvedVisibility.other": {"fq_name": "sharing.ResolvedVisibility.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ResolvedVisibility", "route_refs": [], "_type": "FieldReference"}, "sharing.RevokeSharedLinkArg.url": {"fq_name": "sharing.RevokeSharedLinkArg.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.RevokeSharedLinkArg", "route_refs": [], "_type": "FieldReference"}, "sharing.RevokeSharedLinkError.shared_link_not_found": {"fq_name": "sharing.RevokeSharedLinkError.shared_link_not_found", "param_name": "sharedLinkNotFoundValue", "static_instance": "SHARED_LINK_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "sharing.RevokeSharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.RevokeSharedLinkError.shared_link_access_denied": {"fq_name": "sharing.RevokeSharedLinkError.shared_link_access_denied", "param_name": "sharedLinkAccessDeniedValue", "static_instance": "SHARED_LINK_ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.RevokeSharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.RevokeSharedLinkError.unsupported_link_type": {"fq_name": "sharing.RevokeSharedLinkError.unsupported_link_type", "param_name": "unsupportedLinkTypeValue", "static_instance": "UNSUPPORTED_LINK_TYPE", "getter_method": null, "containing_data_type_ref": "sharing.RevokeSharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.RevokeSharedLinkError.other": {"fq_name": "sharing.RevokeSharedLinkError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.RevokeSharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.RevokeSharedLinkError.shared_link_malformed": {"fq_name": "sharing.RevokeSharedLinkError.shared_link_malformed", "param_name": "sharedLinkMalformedValue", "static_instance": "SHARED_LINK_MALFORMED", "getter_method": null, "containing_data_type_ref": "sharing.RevokeSharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.SetAccessInheritanceArg.shared_folder_id": {"fq_name": "sharing.SetAccessInheritanceArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.SetAccessInheritanceArg", "route_refs": ["sharing.set_access_inheritance"], "_type": "FieldReference"}, "sharing.SetAccessInheritanceArg.access_inheritance": {"fq_name": "sharing.SetAccessInheritanceArg.access_inheritance", "param_name": "accessInheritance", "static_instance": null, "getter_method": "getAccessInheritance", "containing_data_type_ref": "sharing.SetAccessInheritanceArg", "route_refs": ["sharing.set_access_inheritance"], "_type": "FieldReference"}, "sharing.SetAccessInheritanceError.access_error": {"fq_name": "sharing.SetAccessInheritanceError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.SetAccessInheritanceError", "route_refs": [], "_type": "FieldReference"}, "sharing.SetAccessInheritanceError.no_permission": {"fq_name": "sharing.SetAccessInheritanceError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.SetAccessInheritanceError", "route_refs": [], "_type": "FieldReference"}, "sharing.SetAccessInheritanceError.other": {"fq_name": "sharing.SetAccessInheritanceError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SetAccessInheritanceError", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.path": {"fq_name": "sharing.ShareFolderArg.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.acl_update_policy": {"fq_name": "sharing.ShareFolderArg.acl_update_policy", "param_name": "aclUpdatePolicy", "static_instance": null, "getter_method": "getAclUpdatePolicy", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.force_async": {"fq_name": "sharing.ShareFolderArg.force_async", "param_name": "forceAsync", "static_instance": null, "getter_method": "getForceAsync", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.member_policy": {"fq_name": "sharing.ShareFolderArg.member_policy", "param_name": "memberPolicy", "static_instance": null, "getter_method": "getMemberPolicy", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.shared_link_policy": {"fq_name": "sharing.ShareFolderArg.shared_link_policy", "param_name": "sharedLinkPolicy", "static_instance": null, "getter_method": "getSharedLinkPolicy", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.viewer_info_policy": {"fq_name": "sharing.ShareFolderArg.viewer_info_policy", "param_name": "viewerInfoPolicy", "static_instance": null, "getter_method": "getViewerInfoPolicy", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.access_inheritance": {"fq_name": "sharing.ShareFolderArg.access_inheritance", "param_name": "accessInheritance", "static_instance": null, "getter_method": "getAccessInheritance", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.actions": {"fq_name": "sharing.ShareFolderArg.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArg.link_settings": {"fq_name": "sharing.ShareFolderArg.link_settings", "param_name": "linkSettings", "static_instance": null, "getter_method": "getLinkSettings", "containing_data_type_ref": "sharing.ShareFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArgBase.path": {"fq_name": "sharing.ShareFolderArgBase.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "sharing.ShareFolderArgBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArgBase.acl_update_policy": {"fq_name": "sharing.ShareFolderArgBase.acl_update_policy", "param_name": "aclUpdatePolicy", "static_instance": null, "getter_method": "getAclUpdatePolicy", "containing_data_type_ref": "sharing.ShareFolderArgBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArgBase.force_async": {"fq_name": "sharing.ShareFolderArgBase.force_async", "param_name": "forceAsync", "static_instance": null, "getter_method": "getForceAsync", "containing_data_type_ref": "sharing.ShareFolderArgBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArgBase.member_policy": {"fq_name": "sharing.ShareFolderArgBase.member_policy", "param_name": "memberPolicy", "static_instance": null, "getter_method": "getMemberPolicy", "containing_data_type_ref": "sharing.ShareFolderArgBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArgBase.shared_link_policy": {"fq_name": "sharing.ShareFolderArgBase.shared_link_policy", "param_name": "sharedLinkPolicy", "static_instance": null, "getter_method": "getSharedLinkPolicy", "containing_data_type_ref": "sharing.ShareFolderArgBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArgBase.viewer_info_policy": {"fq_name": "sharing.ShareFolderArgBase.viewer_info_policy", "param_name": "viewerInfoPolicy", "static_instance": null, "getter_method": "getViewerInfoPolicy", "containing_data_type_ref": "sharing.ShareFolderArgBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderArgBase.access_inheritance": {"fq_name": "sharing.ShareFolderArgBase.access_inheritance", "param_name": "accessInheritance", "static_instance": null, "getter_method": "getAccessInheritance", "containing_data_type_ref": "sharing.ShareFolderArgBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderError.email_unverified": {"fq_name": "sharing.ShareFolderError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderError.bad_path": {"fq_name": "sharing.ShareFolderError.bad_path", "param_name": "badPathValue", "static_instance": null, "getter_method": "getBadPathValue", "containing_data_type_ref": "sharing.ShareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderError.team_policy_disallows_member_policy": {"fq_name": "sharing.ShareFolderError.team_policy_disallows_member_policy", "param_name": "teamPolicyDisallowsMemberPolicyValue", "static_instance": "TEAM_POLICY_DISALLOWS_MEMBER_POLICY", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderError.disallowed_shared_link_policy": {"fq_name": "sharing.ShareFolderError.disallowed_shared_link_policy", "param_name": "disallowedSharedLinkPolicyValue", "static_instance": "DISALLOWED_SHARED_LINK_POLICY", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderError.other": {"fq_name": "sharing.ShareFolderError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderError.no_permission": {"fq_name": "sharing.ShareFolderError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderErrorBase.email_unverified": {"fq_name": "sharing.ShareFolderErrorBase.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderErrorBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderErrorBase.bad_path": {"fq_name": "sharing.ShareFolderErrorBase.bad_path", "param_name": "badPathValue", "static_instance": null, "getter_method": "getBadPathValue", "containing_data_type_ref": "sharing.ShareFolderErrorBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderErrorBase.team_policy_disallows_member_policy": {"fq_name": "sharing.ShareFolderErrorBase.team_policy_disallows_member_policy", "param_name": "teamPolicyDisallowsMemberPolicyValue", "static_instance": "TEAM_POLICY_DISALLOWS_MEMBER_POLICY", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderErrorBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderErrorBase.disallowed_shared_link_policy": {"fq_name": "sharing.ShareFolderErrorBase.disallowed_shared_link_policy", "param_name": "disallowedSharedLinkPolicyValue", "static_instance": "DISALLOWED_SHARED_LINK_POLICY", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderErrorBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderErrorBase.other": {"fq_name": "sharing.ShareFolderErrorBase.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderErrorBase", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderJobStatus.in_progress": {"fq_name": "sharing.ShareFolderJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "sharing.ShareFolderJobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderJobStatus.complete": {"fq_name": "sharing.ShareFolderJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "sharing.ShareFolderJobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderJobStatus.failed": {"fq_name": "sharing.ShareFolderJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "sharing.ShareFolderJobStatus", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderLaunch.async_job_id": {"fq_name": "sharing.ShareFolderLaunch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "sharing.ShareFolderLaunch", "route_refs": [], "_type": "FieldReference"}, "sharing.ShareFolderLaunch.complete": {"fq_name": "sharing.ShareFolderLaunch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "sharing.ShareFolderLaunch", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.is_file": {"fq_name": "sharing.SharePathError.is_file", "param_name": "isFileValue", "static_instance": "IS_FILE", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.inside_shared_folder": {"fq_name": "sharing.SharePathError.inside_shared_folder", "param_name": "insideSharedFolderValue", "static_instance": "INSIDE_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.contains_shared_folder": {"fq_name": "sharing.SharePathError.contains_shared_folder", "param_name": "containsSharedFolderValue", "static_instance": "CONTAINS_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.contains_app_folder": {"fq_name": "sharing.SharePathError.contains_app_folder", "param_name": "containsAppFolderValue", "static_instance": "CONTAINS_APP_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.contains_team_folder": {"fq_name": "sharing.SharePathError.contains_team_folder", "param_name": "containsTeamFolderValue", "static_instance": "CONTAINS_TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.is_app_folder": {"fq_name": "sharing.SharePathError.is_app_folder", "param_name": "isAppFolderValue", "static_instance": "IS_APP_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.inside_app_folder": {"fq_name": "sharing.SharePathError.inside_app_folder", "param_name": "insideAppFolderValue", "static_instance": "INSIDE_APP_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.is_public_folder": {"fq_name": "sharing.SharePathError.is_public_folder", "param_name": "isPublicFolderValue", "static_instance": "IS_PUBLIC_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.inside_public_folder": {"fq_name": "sharing.SharePathError.inside_public_folder", "param_name": "insidePublicFolderValue", "static_instance": "INSIDE_PUBLIC_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.already_shared": {"fq_name": "sharing.SharePathError.already_shared", "param_name": "alreadySharedValue", "static_instance": null, "getter_method": "getAlreadySharedValue", "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.invalid_path": {"fq_name": "sharing.SharePathError.invalid_path", "param_name": "invalidPathValue", "static_instance": "INVALID_PATH", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.is_osx_package": {"fq_name": "sharing.SharePathError.is_osx_package", "param_name": "isOsxPackageValue", "static_instance": "IS_OSX_PACKAGE", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.inside_osx_package": {"fq_name": "sharing.SharePathError.inside_osx_package", "param_name": "insideOsxPackageValue", "static_instance": "INSIDE_OSX_PACKAGE", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.is_vault": {"fq_name": "sharing.SharePathError.is_vault", "param_name": "isVaultValue", "static_instance": "IS_VAULT", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.is_vault_locked": {"fq_name": "sharing.SharePathError.is_vault_locked", "param_name": "isVaultLockedValue", "static_instance": "IS_VAULT_LOCKED", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.is_family": {"fq_name": "sharing.SharePathError.is_family", "param_name": "isFamilyValue", "static_instance": "IS_FAMILY", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharePathError.other": {"fq_name": "sharing.SharePathError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharePathError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.audience_options": {"fq_name": "sharing.SharedContentLinkMetadata.audience_options", "param_name": "audienceOptions", "static_instance": null, "getter_method": "getAudienceOptions", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.current_audience": {"fq_name": "sharing.SharedContentLinkMetadata.current_audience", "param_name": "currentAudience", "static_instance": null, "getter_method": "getCurrentAudience", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.link_permissions": {"fq_name": "sharing.SharedContentLinkMetadata.link_permissions", "param_name": "linkPermissions", "static_instance": null, "getter_method": "getLinkPermissions", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.password_protected": {"fq_name": "sharing.SharedContentLinkMetadata.password_protected", "param_name": "passwordProtected", "static_instance": null, "getter_method": "getPasswordProtected", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.url": {"fq_name": "sharing.SharedContentLinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.access_level": {"fq_name": "sharing.SharedContentLinkMetadata.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.audience_restricting_shared_folder": {"fq_name": "sharing.SharedContentLinkMetadata.audience_restricting_shared_folder", "param_name": "audienceRestrictingSharedFolder", "static_instance": null, "getter_method": "getAudienceRestrictingSharedFolder", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.expiry": {"fq_name": "sharing.SharedContentLinkMetadata.expiry", "param_name": "expiry", "static_instance": null, "getter_method": "getExpiry", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadata.audience_exceptions": {"fq_name": "sharing.SharedContentLinkMetadata.audience_exceptions", "param_name": "audienceExceptions", "static_instance": null, "getter_method": "getAudienceExceptions", "containing_data_type_ref": "sharing.SharedContentLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadataBase.audience_options": {"fq_name": "sharing.SharedContentLinkMetadataBase.audience_options", "param_name": "audienceOptions", "static_instance": null, "getter_method": "getAudienceOptions", "containing_data_type_ref": "sharing.SharedContentLinkMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadataBase.current_audience": {"fq_name": "sharing.SharedContentLinkMetadataBase.current_audience", "param_name": "currentAudience", "static_instance": null, "getter_method": "getCurrentAudience", "containing_data_type_ref": "sharing.SharedContentLinkMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadataBase.link_permissions": {"fq_name": "sharing.SharedContentLinkMetadataBase.link_permissions", "param_name": "linkPermissions", "static_instance": null, "getter_method": "getLinkPermissions", "containing_data_type_ref": "sharing.SharedContentLinkMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadataBase.password_protected": {"fq_name": "sharing.SharedContentLinkMetadataBase.password_protected", "param_name": "passwordProtected", "static_instance": null, "getter_method": "getPasswordProtected", "containing_data_type_ref": "sharing.SharedContentLinkMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadataBase.access_level": {"fq_name": "sharing.SharedContentLinkMetadataBase.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.SharedContentLinkMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadataBase.audience_restricting_shared_folder": {"fq_name": "sharing.SharedContentLinkMetadataBase.audience_restricting_shared_folder", "param_name": "audienceRestrictingSharedFolder", "static_instance": null, "getter_method": "getAudienceRestrictingSharedFolder", "containing_data_type_ref": "sharing.SharedContentLinkMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedContentLinkMetadataBase.expiry": {"fq_name": "sharing.SharedContentLinkMetadataBase.expiry", "param_name": "expiry", "static_instance": null, "getter_method": "getExpiry", "containing_data_type_ref": "sharing.SharedContentLinkMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMembers.users": {"fq_name": "sharing.SharedFileMembers.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "sharing.SharedFileMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMembers.groups": {"fq_name": "sharing.SharedFileMembers.groups", "param_name": "groups", "static_instance": null, "getter_method": "getGroups", "containing_data_type_ref": "sharing.SharedFileMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMembers.invitees": {"fq_name": "sharing.SharedFileMembers.invitees", "param_name": "invitees", "static_instance": null, "getter_method": "getInvitees", "containing_data_type_ref": "sharing.SharedFileMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMembers.cursor": {"fq_name": "sharing.SharedFileMembers.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.SharedFileMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.id": {"fq_name": "sharing.SharedFileMetadata.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.name": {"fq_name": "sharing.SharedFileMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.policy": {"fq_name": "sharing.SharedFileMetadata.policy", "param_name": "policy", "static_instance": null, "getter_method": "getPolicy", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.preview_url": {"fq_name": "sharing.SharedFileMetadata.preview_url", "param_name": "previewUrl", "static_instance": null, "getter_method": "getPreviewUrl", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.access_type": {"fq_name": "sharing.SharedFileMetadata.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.expected_link_metadata": {"fq_name": "sharing.SharedFileMetadata.expected_link_metadata", "param_name": "expectedLinkMetadata", "static_instance": null, "getter_method": "getExpectedLinkMetadata", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.link_metadata": {"fq_name": "sharing.SharedFileMetadata.link_metadata", "param_name": "linkMetadata", "static_instance": null, "getter_method": "getLinkMetadata", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.owner_display_names": {"fq_name": "sharing.SharedFileMetadata.owner_display_names", "param_name": "ownerDisplayNames", "static_instance": null, "getter_method": "getOwnerDisplayNames", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.owner_team": {"fq_name": "sharing.SharedFileMetadata.owner_team", "param_name": "ownerTeam", "static_instance": null, "getter_method": "getOwnerTeam", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.parent_shared_folder_id": {"fq_name": "sharing.SharedFileMetadata.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.path_display": {"fq_name": "sharing.SharedFileMetadata.path_display", "param_name": "pathDisplay", "static_instance": null, "getter_method": "getPathDisplay", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.path_lower": {"fq_name": "sharing.SharedFileMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.permissions": {"fq_name": "sharing.SharedFileMetadata.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFileMetadata.time_invited": {"fq_name": "sharing.SharedFileMetadata.time_invited", "param_name": "timeInvited", "static_instance": null, "getter_method": "getTimeInvited", "containing_data_type_ref": "sharing.SharedFileMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderAccessError.invalid_id": {"fq_name": "sharing.SharedFolderAccessError.invalid_id", "param_name": "invalidIdValue", "static_instance": "INVALID_ID", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderAccessError.not_a_member": {"fq_name": "sharing.SharedFolderAccessError.not_a_member", "param_name": "notAMemberValue", "static_instance": "NOT_A_MEMBER", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderAccessError.invalid_member": {"fq_name": "sharing.SharedFolderAccessError.invalid_member", "param_name": "invalidMemberValue", "static_instance": "INVALID_MEMBER", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderAccessError.email_unverified": {"fq_name": "sharing.SharedFolderAccessError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderAccessError.unmounted": {"fq_name": "sharing.SharedFolderAccessError.unmounted", "param_name": "unmountedValue", "static_instance": "UNMOUNTED", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderAccessError.other": {"fq_name": "sharing.SharedFolderAccessError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMemberError.invalid_dropbox_id": {"fq_name": "sharing.SharedFolderMemberError.invalid_dropbox_id", "param_name": "invalidDropboxIdValue", "static_instance": "INVALID_DROPBOX_ID", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMemberError.not_a_member": {"fq_name": "sharing.SharedFolderMemberError.not_a_member", "param_name": "notAMemberValue", "static_instance": "NOT_A_MEMBER", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMemberError.no_explicit_access": {"fq_name": "sharing.SharedFolderMemberError.no_explicit_access", "param_name": "noExplicitAccessValue", "static_instance": null, "getter_method": "getNoExplicitAccessValue", "containing_data_type_ref": "sharing.SharedFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMemberError.other": {"fq_name": "sharing.SharedFolderMemberError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharedFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMembers.users": {"fq_name": "sharing.SharedFolderMembers.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "sharing.SharedFolderMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMembers.groups": {"fq_name": "sharing.SharedFolderMembers.groups", "param_name": "groups", "static_instance": null, "getter_method": "getGroups", "containing_data_type_ref": "sharing.SharedFolderMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMembers.invitees": {"fq_name": "sharing.SharedFolderMembers.invitees", "param_name": "invitees", "static_instance": null, "getter_method": "getInvitees", "containing_data_type_ref": "sharing.SharedFolderMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMembers.cursor": {"fq_name": "sharing.SharedFolderMembers.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "sharing.SharedFolderMembers", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.access_type": {"fq_name": "sharing.SharedFolderMetadata.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.is_inside_team_folder": {"fq_name": "sharing.SharedFolderMetadata.is_inside_team_folder", "param_name": "isInsideTeamFolder", "static_instance": null, "getter_method": "getIsInsideTeamFolder", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.is_team_folder": {"fq_name": "sharing.SharedFolderMetadata.is_team_folder", "param_name": "isTeamFolder", "static_instance": null, "getter_method": "getIsTeamFolder", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.name": {"fq_name": "sharing.SharedFolderMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.policy": {"fq_name": "sharing.SharedFolderMetadata.policy", "param_name": "policy", "static_instance": null, "getter_method": "getPolicy", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.preview_url": {"fq_name": "sharing.SharedFolderMetadata.preview_url", "param_name": "previewUrl", "static_instance": null, "getter_method": "getPreviewUrl", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.shared_folder_id": {"fq_name": "sharing.SharedFolderMetadata.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.time_invited": {"fq_name": "sharing.SharedFolderMetadata.time_invited", "param_name": "timeInvited", "static_instance": null, "getter_method": "getTimeInvited", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.owner_display_names": {"fq_name": "sharing.SharedFolderMetadata.owner_display_names", "param_name": "ownerDisplayNames", "static_instance": null, "getter_method": "getOwnerDisplayNames", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.owner_team": {"fq_name": "sharing.SharedFolderMetadata.owner_team", "param_name": "ownerTeam", "static_instance": null, "getter_method": "getOwnerTeam", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.parent_shared_folder_id": {"fq_name": "sharing.SharedFolderMetadata.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.path_display": {"fq_name": "sharing.SharedFolderMetadata.path_display", "param_name": "pathDisplay", "static_instance": null, "getter_method": "getPathDisplay", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.path_lower": {"fq_name": "sharing.SharedFolderMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.parent_folder_name": {"fq_name": "sharing.SharedFolderMetadata.parent_folder_name", "param_name": "parentFolderName", "static_instance": null, "getter_method": "getParentFolderName", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.link_metadata": {"fq_name": "sharing.SharedFolderMetadata.link_metadata", "param_name": "linkMetadata", "static_instance": null, "getter_method": "getLinkMetadata", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.permissions": {"fq_name": "sharing.SharedFolderMetadata.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadata.access_inheritance": {"fq_name": "sharing.SharedFolderMetadata.access_inheritance", "param_name": "accessInheritance", "static_instance": null, "getter_method": "getAccessInheritance", "containing_data_type_ref": "sharing.SharedFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.access_type": {"fq_name": "sharing.SharedFolderMetadataBase.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.is_inside_team_folder": {"fq_name": "sharing.SharedFolderMetadataBase.is_inside_team_folder", "param_name": "isInsideTeamFolder", "static_instance": null, "getter_method": "getIsInsideTeamFolder", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.is_team_folder": {"fq_name": "sharing.SharedFolderMetadataBase.is_team_folder", "param_name": "isTeamFolder", "static_instance": null, "getter_method": "getIsTeamFolder", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.owner_display_names": {"fq_name": "sharing.SharedFolderMetadataBase.owner_display_names", "param_name": "ownerDisplayNames", "static_instance": null, "getter_method": "getOwnerDisplayNames", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.owner_team": {"fq_name": "sharing.SharedFolderMetadataBase.owner_team", "param_name": "ownerTeam", "static_instance": null, "getter_method": "getOwnerTeam", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.parent_shared_folder_id": {"fq_name": "sharing.SharedFolderMetadataBase.parent_shared_folder_id", "param_name": "parentSharedFolderId", "static_instance": null, "getter_method": "getParentSharedFolderId", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.path_display": {"fq_name": "sharing.SharedFolderMetadataBase.path_display", "param_name": "pathDisplay", "static_instance": null, "getter_method": "getPathDisplay", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.path_lower": {"fq_name": "sharing.SharedFolderMetadataBase.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedFolderMetadataBase.parent_folder_name": {"fq_name": "sharing.SharedFolderMetadataBase.parent_folder_name", "param_name": "parentFolderName", "static_instance": null, "getter_method": "getParentFolderName", "containing_data_type_ref": "sharing.SharedFolderMetadataBase", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAccessFailureReason.login_required": {"fq_name": "sharing.SharedLinkAccessFailureReason.login_required", "param_name": "loginRequiredValue", "static_instance": "LOGIN_REQUIRED", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkAccessFailureReason", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAccessFailureReason.email_verify_required": {"fq_name": "sharing.SharedLinkAccessFailureReason.email_verify_required", "param_name": "emailVerifyRequiredValue", "static_instance": "EMAIL_VERIFY_REQUIRED", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkAccessFailureReason", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAccessFailureReason.password_required": {"fq_name": "sharing.SharedLinkAccessFailureReason.password_required", "param_name": "passwordRequiredValue", "static_instance": "PASSWORD_REQUIRED", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkAccessFailureReason", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAccessFailureReason.team_only": {"fq_name": "sharing.SharedLinkAccessFailureReason.team_only", "param_name": "teamOnlyValue", "static_instance": "TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkAccessFailureReason", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAccessFailureReason.owner_only": {"fq_name": "sharing.SharedLinkAccessFailureReason.owner_only", "param_name": "ownerOnlyValue", "static_instance": "OWNER_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkAccessFailureReason", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAccessFailureReason.other": {"fq_name": "sharing.SharedLinkAccessFailureReason.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkAccessFailureReason", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAlreadyExistsMetadata.metadata": {"fq_name": "sharing.SharedLinkAlreadyExistsMetadata.metadata", "param_name": "metadataValue", "static_instance": null, "getter_method": "getMetadataValue", "containing_data_type_ref": "sharing.SharedLinkAlreadyExistsMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkAlreadyExistsMetadata.other": {"fq_name": "sharing.SharedLinkAlreadyExistsMetadata.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkAlreadyExistsMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkError.shared_link_not_found": {"fq_name": "sharing.SharedLinkError.shared_link_not_found", "param_name": "sharedLinkNotFoundValue", "static_instance": "SHARED_LINK_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkError.shared_link_access_denied": {"fq_name": "sharing.SharedLinkError.shared_link_access_denied", "param_name": "sharedLinkAccessDeniedValue", "static_instance": "SHARED_LINK_ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkError.unsupported_link_type": {"fq_name": "sharing.SharedLinkError.unsupported_link_type", "param_name": "unsupportedLinkTypeValue", "static_instance": "UNSUPPORTED_LINK_TYPE", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkError.other": {"fq_name": "sharing.SharedLinkError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.url": {"fq_name": "sharing.SharedLinkMetadata.url", "param_name": "url", "static_instance": null, "getter_method": "getUrl", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.name": {"fq_name": "sharing.SharedLinkMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.link_permissions": {"fq_name": "sharing.SharedLinkMetadata.link_permissions", "param_name": "linkPermissions", "static_instance": null, "getter_method": "getLinkPermissions", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.id": {"fq_name": "sharing.SharedLinkMetadata.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.expires": {"fq_name": "sharing.SharedLinkMetadata.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.path_lower": {"fq_name": "sharing.SharedLinkMetadata.path_lower", "param_name": "pathLower", "static_instance": null, "getter_method": "getPathLower", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.team_member_info": {"fq_name": "sharing.SharedLinkMetadata.team_member_info", "param_name": "teamMemberInfo", "static_instance": null, "getter_method": "getTeamMemberInfo", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkMetadata.content_owner_team_info": {"fq_name": "sharing.SharedLinkMetadata.content_owner_team_info", "param_name": "contentOwnerTeamInfo", "static_instance": null, "getter_method": "getContentOwnerTeamInfo", "containing_data_type_ref": "sharing.SharedLinkMetadata", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkPolicy.anyone": {"fq_name": "sharing.SharedLinkPolicy.anyone", "param_name": "anyoneValue", "static_instance": "ANYONE", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkPolicy.team": {"fq_name": "sharing.SharedLinkPolicy.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkPolicy.members": {"fq_name": "sharing.SharedLinkPolicy.members", "param_name": "membersValue", "static_instance": "MEMBERS", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkPolicy.other": {"fq_name": "sharing.SharedLinkPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettings.require_password": {"fq_name": "sharing.SharedLinkSettings.require_password", "param_name": "requirePassword", "static_instance": null, "getter_method": "getRequirePassword", "containing_data_type_ref": "sharing.SharedLinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettings.link_password": {"fq_name": "sharing.SharedLinkSettings.link_password", "param_name": "linkPassword", "static_instance": null, "getter_method": "getLinkPassword", "containing_data_type_ref": "sharing.SharedLinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettings.expires": {"fq_name": "sharing.SharedLinkSettings.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "sharing.SharedLinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettings.audience": {"fq_name": "sharing.SharedLinkSettings.audience", "param_name": "audience", "static_instance": null, "getter_method": "getAudience", "containing_data_type_ref": "sharing.SharedLinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettings.access": {"fq_name": "sharing.SharedLinkSettings.access", "param_name": "access", "static_instance": null, "getter_method": "getAccess", "containing_data_type_ref": "sharing.SharedLinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettings.requested_visibility": {"fq_name": "sharing.SharedLinkSettings.requested_visibility", "param_name": "requestedVisibility", "static_instance": null, "getter_method": "getRequestedVisibility", "containing_data_type_ref": "sharing.SharedLinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettings.allow_download": {"fq_name": "sharing.SharedLinkSettings.allow_download", "param_name": "allowDownload", "static_instance": null, "getter_method": "getAllowDownload", "containing_data_type_ref": "sharing.SharedLinkSettings", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettingsError.invalid_settings": {"fq_name": "sharing.SharedLinkSettingsError.invalid_settings", "param_name": "invalidSettingsValue", "static_instance": "INVALID_SETTINGS", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharedLinkSettingsError.not_authorized": {"fq_name": "sharing.SharedLinkSettingsError.not_authorized", "param_name": "notAuthorizedValue", "static_instance": "NOT_AUTHORIZED", "getter_method": null, "containing_data_type_ref": "sharing.SharedLinkSettingsError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingFileAccessError.no_permission": {"fq_name": "sharing.SharingFileAccessError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.SharingFileAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingFileAccessError.invalid_file": {"fq_name": "sharing.SharingFileAccessError.invalid_file", "param_name": "invalidFileValue", "static_instance": "INVALID_FILE", "getter_method": null, "containing_data_type_ref": "sharing.SharingFileAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingFileAccessError.is_folder": {"fq_name": "sharing.SharingFileAccessError.is_folder", "param_name": "isFolderValue", "static_instance": "IS_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharingFileAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingFileAccessError.inside_public_folder": {"fq_name": "sharing.SharingFileAccessError.inside_public_folder", "param_name": "insidePublicFolderValue", "static_instance": "INSIDE_PUBLIC_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.SharingFileAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingFileAccessError.inside_osx_package": {"fq_name": "sharing.SharingFileAccessError.inside_osx_package", "param_name": "insideOsxPackageValue", "static_instance": "INSIDE_OSX_PACKAGE", "getter_method": null, "containing_data_type_ref": "sharing.SharingFileAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingFileAccessError.other": {"fq_name": "sharing.SharingFileAccessError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharingFileAccessError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingUserError.email_unverified": {"fq_name": "sharing.SharingUserError.email_unverified", "param_name": "emailUnverifiedValue", "static_instance": "EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.SharingUserError", "route_refs": [], "_type": "FieldReference"}, "sharing.SharingUserError.other": {"fq_name": "sharing.SharingUserError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.SharingUserError", "route_refs": [], "_type": "FieldReference"}, "sharing.TeamMemberInfo.team_info": {"fq_name": "sharing.TeamMemberInfo.team_info", "param_name": "teamInfo", "static_instance": null, "getter_method": "getTeamInfo", "containing_data_type_ref": "sharing.TeamMemberInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.TeamMemberInfo.display_name": {"fq_name": "sharing.TeamMemberInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "sharing.TeamMemberInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.TeamMemberInfo.member_id": {"fq_name": "sharing.TeamMemberInfo.member_id", "param_name": "memberId", "static_instance": null, "getter_method": "getMemberId", "containing_data_type_ref": "sharing.TeamMemberInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderArg.shared_folder_id": {"fq_name": "sharing.TransferFolderArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.TransferFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderArg.to_dropbox_id": {"fq_name": "sharing.TransferFolderArg.to_dropbox_id", "param_name": "toDropboxId", "static_instance": null, "getter_method": "getToDropboxId", "containing_data_type_ref": "sharing.TransferFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.access_error": {"fq_name": "sharing.TransferFolderError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.invalid_dropbox_id": {"fq_name": "sharing.TransferFolderError.invalid_dropbox_id", "param_name": "invalidDropboxIdValue", "static_instance": "INVALID_DROPBOX_ID", "getter_method": null, "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.new_owner_not_a_member": {"fq_name": "sharing.TransferFolderError.new_owner_not_a_member", "param_name": "newOwnerNotAMemberValue", "static_instance": "NEW_OWNER_NOT_A_MEMBER", "getter_method": null, "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.new_owner_unmounted": {"fq_name": "sharing.TransferFolderError.new_owner_unmounted", "param_name": "newOwnerUnmountedValue", "static_instance": "NEW_OWNER_UNMOUNTED", "getter_method": null, "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.new_owner_email_unverified": {"fq_name": "sharing.TransferFolderError.new_owner_email_unverified", "param_name": "newOwnerEmailUnverifiedValue", "static_instance": "NEW_OWNER_EMAIL_UNVERIFIED", "getter_method": null, "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.team_folder": {"fq_name": "sharing.TransferFolderError.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.no_permission": {"fq_name": "sharing.TransferFolderError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.TransferFolderError.other": {"fq_name": "sharing.TransferFolderError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.TransferFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnmountFolderArg.shared_folder_id": {"fq_name": "sharing.UnmountFolderArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.UnmountFolderArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UnmountFolderError.access_error": {"fq_name": "sharing.UnmountFolderError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.UnmountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnmountFolderError.no_permission": {"fq_name": "sharing.UnmountFolderError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.UnmountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnmountFolderError.not_unmountable": {"fq_name": "sharing.UnmountFolderError.not_unmountable", "param_name": "notUnmountableValue", "static_instance": "NOT_UNMOUNTABLE", "getter_method": null, "containing_data_type_ref": "sharing.UnmountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnmountFolderError.other": {"fq_name": "sharing.UnmountFolderError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.UnmountFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFileArg.file": {"fq_name": "sharing.UnshareFileArg.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.UnshareFileArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFileError.user_error": {"fq_name": "sharing.UnshareFileError.user_error", "param_name": "userErrorValue", "static_instance": null, "getter_method": "getUserErrorValue", "containing_data_type_ref": "sharing.UnshareFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFileError.access_error": {"fq_name": "sharing.UnshareFileError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.UnshareFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFileError.other": {"fq_name": "sharing.UnshareFileError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.UnshareFileError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFolderArg.shared_folder_id": {"fq_name": "sharing.UnshareFolderArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.UnshareFolderArg", "route_refs": ["sharing.unshare_folder"], "_type": "FieldReference"}, "sharing.UnshareFolderArg.leave_a_copy": {"fq_name": "sharing.UnshareFolderArg.leave_a_copy", "param_name": "leaveACopy", "static_instance": null, "getter_method": "getLeaveACopy", "containing_data_type_ref": "sharing.UnshareFolderArg", "route_refs": ["sharing.unshare_folder"], "_type": "FieldReference"}, "sharing.UnshareFolderError.access_error": {"fq_name": "sharing.UnshareFolderError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.UnshareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFolderError.team_folder": {"fq_name": "sharing.UnshareFolderError.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.UnshareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFolderError.no_permission": {"fq_name": "sharing.UnshareFolderError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.UnshareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFolderError.too_many_files": {"fq_name": "sharing.UnshareFolderError.too_many_files", "param_name": "tooManyFilesValue", "static_instance": "TOO_MANY_FILES", "getter_method": null, "containing_data_type_ref": "sharing.UnshareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UnshareFolderError.other": {"fq_name": "sharing.UnshareFolderError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.UnshareFolderError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFileMemberArgs.file": {"fq_name": "sharing.UpdateFileMemberArgs.file", "param_name": "file", "static_instance": null, "getter_method": "getFile", "containing_data_type_ref": "sharing.UpdateFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFileMemberArgs.member": {"fq_name": "sharing.UpdateFileMemberArgs.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "sharing.UpdateFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFileMemberArgs.access_level": {"fq_name": "sharing.UpdateFileMemberArgs.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.UpdateFileMemberArgs", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberArg.shared_folder_id": {"fq_name": "sharing.UpdateFolderMemberArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.UpdateFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberArg.member": {"fq_name": "sharing.UpdateFolderMemberArg.member", "param_name": "member", "static_instance": null, "getter_method": "getMember", "containing_data_type_ref": "sharing.UpdateFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberArg.access_level": {"fq_name": "sharing.UpdateFolderMemberArg.access_level", "param_name": "accessLevel", "static_instance": null, "getter_method": "getAccessLevel", "containing_data_type_ref": "sharing.UpdateFolderMemberArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberError.access_error": {"fq_name": "sharing.UpdateFolderMemberError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.UpdateFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberError.member_error": {"fq_name": "sharing.UpdateFolderMemberError.member_error", "param_name": "memberErrorValue", "static_instance": null, "getter_method": "getMemberErrorValue", "containing_data_type_ref": "sharing.UpdateFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberError.no_explicit_access": {"fq_name": "sharing.UpdateFolderMemberError.no_explicit_access", "param_name": "noExplicitAccessValue", "static_instance": null, "getter_method": "getNoExplicitAccessValue", "containing_data_type_ref": "sharing.UpdateFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberError.insufficient_plan": {"fq_name": "sharing.UpdateFolderMemberError.insufficient_plan", "param_name": "insufficientPlanValue", "static_instance": "INSUFFICIENT_PLAN", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberError.no_permission": {"fq_name": "sharing.UpdateFolderMemberError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderMemberError.other": {"fq_name": "sharing.UpdateFolderMemberError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderMemberError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyArg.shared_folder_id": {"fq_name": "sharing.UpdateFolderPolicyArg.shared_folder_id", "param_name": "sharedFolderId", "static_instance": null, "getter_method": "getSharedFolderId", "containing_data_type_ref": "sharing.UpdateFolderPolicyArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyArg.member_policy": {"fq_name": "sharing.UpdateFolderPolicyArg.member_policy", "param_name": "memberPolicy", "static_instance": null, "getter_method": "getMemberPolicy", "containing_data_type_ref": "sharing.UpdateFolderPolicyArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyArg.acl_update_policy": {"fq_name": "sharing.UpdateFolderPolicyArg.acl_update_policy", "param_name": "aclUpdatePolicy", "static_instance": null, "getter_method": "getAclUpdatePolicy", "containing_data_type_ref": "sharing.UpdateFolderPolicyArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyArg.viewer_info_policy": {"fq_name": "sharing.UpdateFolderPolicyArg.viewer_info_policy", "param_name": "viewerInfoPolicy", "static_instance": null, "getter_method": "getViewerInfoPolicy", "containing_data_type_ref": "sharing.UpdateFolderPolicyArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyArg.shared_link_policy": {"fq_name": "sharing.UpdateFolderPolicyArg.shared_link_policy", "param_name": "sharedLinkPolicy", "static_instance": null, "getter_method": "getSharedLinkPolicy", "containing_data_type_ref": "sharing.UpdateFolderPolicyArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyArg.link_settings": {"fq_name": "sharing.UpdateFolderPolicyArg.link_settings", "param_name": "linkSettings", "static_instance": null, "getter_method": "getLinkSettings", "containing_data_type_ref": "sharing.UpdateFolderPolicyArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyArg.actions": {"fq_name": "sharing.UpdateFolderPolicyArg.actions", "param_name": "actions", "static_instance": null, "getter_method": "getActions", "containing_data_type_ref": "sharing.UpdateFolderPolicyArg", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyError.access_error": {"fq_name": "sharing.UpdateFolderPolicyError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "sharing.UpdateFolderPolicyError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyError.not_on_team": {"fq_name": "sharing.UpdateFolderPolicyError.not_on_team", "param_name": "notOnTeamValue", "static_instance": "NOT_ON_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderPolicyError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyError.team_policy_disallows_member_policy": {"fq_name": "sharing.UpdateFolderPolicyError.team_policy_disallows_member_policy", "param_name": "teamPolicyDisallowsMemberPolicyValue", "static_instance": "TEAM_POLICY_DISALLOWS_MEMBER_POLICY", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderPolicyError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyError.disallowed_shared_link_policy": {"fq_name": "sharing.UpdateFolderPolicyError.disallowed_shared_link_policy", "param_name": "disallowedSharedLinkPolicyValue", "static_instance": "DISALLOWED_SHARED_LINK_POLICY", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderPolicyError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyError.no_permission": {"fq_name": "sharing.UpdateFolderPolicyError.no_permission", "param_name": "noPermissionValue", "static_instance": "NO_PERMISSION", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderPolicyError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyError.team_folder": {"fq_name": "sharing.UpdateFolderPolicyError.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderPolicyError", "route_refs": [], "_type": "FieldReference"}, "sharing.UpdateFolderPolicyError.other": {"fq_name": "sharing.UpdateFolderPolicyError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.UpdateFolderPolicyError", "route_refs": [], "_type": "FieldReference"}, "sharing.UserFileMembershipInfo.access_type": {"fq_name": "sharing.UserFileMembershipInfo.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.UserFileMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserFileMembershipInfo.user": {"fq_name": "sharing.UserFileMembershipInfo.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "sharing.UserFileMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserFileMembershipInfo.permissions": {"fq_name": "sharing.UserFileMembershipInfo.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.UserFileMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserFileMembershipInfo.initials": {"fq_name": "sharing.UserFileMembershipInfo.initials", "param_name": "initials", "static_instance": null, "getter_method": "getInitials", "containing_data_type_ref": "sharing.UserFileMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserFileMembershipInfo.is_inherited": {"fq_name": "sharing.UserFileMembershipInfo.is_inherited", "param_name": "isInherited", "static_instance": null, "getter_method": "getIsInherited", "containing_data_type_ref": "sharing.UserFileMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserFileMembershipInfo.time_last_seen": {"fq_name": "sharing.UserFileMembershipInfo.time_last_seen", "param_name": "timeLastSeen", "static_instance": null, "getter_method": "getTimeLastSeen", "containing_data_type_ref": "sharing.UserFileMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserFileMembershipInfo.platform_type": {"fq_name": "sharing.UserFileMembershipInfo.platform_type", "param_name": "platformType", "static_instance": null, "getter_method": "getPlatformType", "containing_data_type_ref": "sharing.UserFileMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserInfo.account_id": {"fq_name": "sharing.UserInfo.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "sharing.UserInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserInfo.email": {"fq_name": "sharing.UserInfo.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "sharing.UserInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserInfo.display_name": {"fq_name": "sharing.UserInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "sharing.UserInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserInfo.same_team": {"fq_name": "sharing.UserInfo.same_team", "param_name": "sameTeam", "static_instance": null, "getter_method": "getSameTeam", "containing_data_type_ref": "sharing.UserInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserInfo.team_member_id": {"fq_name": "sharing.UserInfo.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "sharing.UserInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserMembershipInfo.access_type": {"fq_name": "sharing.UserMembershipInfo.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "sharing.UserMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserMembershipInfo.user": {"fq_name": "sharing.UserMembershipInfo.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "sharing.UserMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserMembershipInfo.permissions": {"fq_name": "sharing.UserMembershipInfo.permissions", "param_name": "permissions", "static_instance": null, "getter_method": "getPermissions", "containing_data_type_ref": "sharing.UserMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserMembershipInfo.initials": {"fq_name": "sharing.UserMembershipInfo.initials", "param_name": "initials", "static_instance": null, "getter_method": "getInitials", "containing_data_type_ref": "sharing.UserMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.UserMembershipInfo.is_inherited": {"fq_name": "sharing.UserMembershipInfo.is_inherited", "param_name": "isInherited", "static_instance": null, "getter_method": "getIsInherited", "containing_data_type_ref": "sharing.UserMembershipInfo", "route_refs": [], "_type": "FieldReference"}, "sharing.ViewerInfoPolicy.enabled": {"fq_name": "sharing.ViewerInfoPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "sharing.ViewerInfoPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.ViewerInfoPolicy.disabled": {"fq_name": "sharing.ViewerInfoPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "sharing.ViewerInfoPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.ViewerInfoPolicy.other": {"fq_name": "sharing.ViewerInfoPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.ViewerInfoPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.Visibility.public": {"fq_name": "sharing.Visibility.public", "param_name": "publicValue", "static_instance": "PUBLIC", "getter_method": null, "containing_data_type_ref": "sharing.Visibility", "route_refs": [], "_type": "FieldReference"}, "sharing.Visibility.team_only": {"fq_name": "sharing.Visibility.team_only", "param_name": "teamOnlyValue", "static_instance": "TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.Visibility", "route_refs": [], "_type": "FieldReference"}, "sharing.Visibility.password": {"fq_name": "sharing.Visibility.password", "param_name": "passwordValue", "static_instance": "PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.Visibility", "route_refs": [], "_type": "FieldReference"}, "sharing.Visibility.team_and_password": {"fq_name": "sharing.Visibility.team_and_password", "param_name": "teamAndPasswordValue", "static_instance": "TEAM_AND_PASSWORD", "getter_method": null, "containing_data_type_ref": "sharing.Visibility", "route_refs": [], "_type": "FieldReference"}, "sharing.Visibility.shared_folder_only": {"fq_name": "sharing.Visibility.shared_folder_only", "param_name": "sharedFolderOnlyValue", "static_instance": "SHARED_FOLDER_ONLY", "getter_method": null, "containing_data_type_ref": "sharing.Visibility", "route_refs": [], "_type": "FieldReference"}, "sharing.Visibility.other": {"fq_name": "sharing.Visibility.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.Visibility", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicy.policy": {"fq_name": "sharing.VisibilityPolicy.policy", "param_name": "policy", "static_instance": null, "getter_method": "getPolicy", "containing_data_type_ref": "sharing.VisibilityPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicy.resolved_policy": {"fq_name": "sharing.VisibilityPolicy.resolved_policy", "param_name": "resolvedPolicy", "static_instance": null, "getter_method": "getResolvedPolicy", "containing_data_type_ref": "sharing.VisibilityPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicy.allowed": {"fq_name": "sharing.VisibilityPolicy.allowed", "param_name": "allowed", "static_instance": null, "getter_method": "getAllowed", "containing_data_type_ref": "sharing.VisibilityPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicy.disallowed_reason": {"fq_name": "sharing.VisibilityPolicy.disallowed_reason", "param_name": "disallowedReason", "static_instance": null, "getter_method": "getDisallowedReason", "containing_data_type_ref": "sharing.VisibilityPolicy", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicyDisallowedReason.delete_and_recreate": {"fq_name": "sharing.VisibilityPolicyDisallowedReason.delete_and_recreate", "param_name": "deleteAndRecreateValue", "static_instance": "DELETE_AND_RECREATE", "getter_method": null, "containing_data_type_ref": "sharing.VisibilityPolicyDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicyDisallowedReason.restricted_by_shared_folder": {"fq_name": "sharing.VisibilityPolicyDisallowedReason.restricted_by_shared_folder", "param_name": "restrictedBySharedFolderValue", "static_instance": "RESTRICTED_BY_SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "sharing.VisibilityPolicyDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicyDisallowedReason.restricted_by_team": {"fq_name": "sharing.VisibilityPolicyDisallowedReason.restricted_by_team", "param_name": "restrictedByTeamValue", "static_instance": "RESTRICTED_BY_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.VisibilityPolicyDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicyDisallowedReason.user_not_on_team": {"fq_name": "sharing.VisibilityPolicyDisallowedReason.user_not_on_team", "param_name": "userNotOnTeamValue", "static_instance": "USER_NOT_ON_TEAM", "getter_method": null, "containing_data_type_ref": "sharing.VisibilityPolicyDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicyDisallowedReason.user_account_type": {"fq_name": "sharing.VisibilityPolicyDisallowedReason.user_account_type", "param_name": "userAccountTypeValue", "static_instance": "USER_ACCOUNT_TYPE", "getter_method": null, "containing_data_type_ref": "sharing.VisibilityPolicyDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicyDisallowedReason.permission_denied": {"fq_name": "sharing.VisibilityPolicyDisallowedReason.permission_denied", "param_name": "permissionDeniedValue", "static_instance": "PERMISSION_DENIED", "getter_method": null, "containing_data_type_ref": "sharing.VisibilityPolicyDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "sharing.VisibilityPolicyDisallowedReason.other": {"fq_name": "sharing.VisibilityPolicyDisallowedReason.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "sharing.VisibilityPolicyDisallowedReason", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.session_id": {"fq_name": "team.ActiveWebSession.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.user_agent": {"fq_name": "team.ActiveWebSession.user_agent", "param_name": "userAgent", "static_instance": null, "getter_method": "getUserAgent", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.os": {"fq_name": "team.ActiveWebSession.os", "param_name": "os", "static_instance": null, "getter_method": "getOs", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.browser": {"fq_name": "team.ActiveWebSession.browser", "param_name": "browser", "static_instance": null, "getter_method": "getBrowser", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.ip_address": {"fq_name": "team.ActiveWebSession.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.country": {"fq_name": "team.ActiveWebSession.country", "param_name": "country", "static_instance": null, "getter_method": "getCountry", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.created": {"fq_name": "team.ActiveWebSession.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.updated": {"fq_name": "team.ActiveWebSession.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.ActiveWebSession.expires": {"fq_name": "team.ActiveWebSession.expires", "param_name": "expires", "static_instance": null, "getter_method": "getExpires", "containing_data_type_ref": "team.ActiveWebSession", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.success": {"fq_name": "team.AddSecondaryEmailResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.unavailable": {"fq_name": "team.AddSecondaryEmailResult.unavailable", "param_name": "unavailableValue", "static_instance": null, "getter_method": "getUnavailableValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.already_pending": {"fq_name": "team.AddSecondaryEmailResult.already_pending", "param_name": "alreadyPendingValue", "static_instance": null, "getter_method": "getAlreadyPendingValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.already_owned_by_user": {"fq_name": "team.AddSecondaryEmailResult.already_owned_by_user", "param_name": "alreadyOwnedByUserValue", "static_instance": null, "getter_method": "getAlreadyOwnedByUserValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.reached_limit": {"fq_name": "team.AddSecondaryEmailResult.reached_limit", "param_name": "reachedLimitValue", "static_instance": null, "getter_method": "getReachedLimitValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.transient_error": {"fq_name": "team.AddSecondaryEmailResult.transient_error", "param_name": "transientErrorValue", "static_instance": null, "getter_method": "getTransientErrorValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.too_many_updates": {"fq_name": "team.AddSecondaryEmailResult.too_many_updates", "param_name": "tooManyUpdatesValue", "static_instance": null, "getter_method": "getTooManyUpdatesValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.unknown_error": {"fq_name": "team.AddSecondaryEmailResult.unknown_error", "param_name": "unknownErrorValue", "static_instance": null, "getter_method": "getUnknownErrorValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.rate_limited": {"fq_name": "team.AddSecondaryEmailResult.rate_limited", "param_name": "rateLimitedValue", "static_instance": null, "getter_method": "getRateLimitedValue", "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailResult.other": {"fq_name": "team.AddSecondaryEmailResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.AddSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailsArg.new_secondary_emails": {"fq_name": "team.AddSecondaryEmailsArg.new_secondary_emails", "param_name": "newSecondaryEmails", "static_instance": null, "getter_method": "getNewSecondaryEmails", "containing_data_type_ref": "team.AddSecondaryEmailsArg", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailsError.secondary_emails_disabled": {"fq_name": "team.AddSecondaryEmailsError.secondary_emails_disabled", "param_name": "secondaryEmailsDisabledValue", "static_instance": "SECONDARY_EMAILS_DISABLED", "getter_method": null, "containing_data_type_ref": "team.AddSecondaryEmailsError", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailsError.too_many_emails": {"fq_name": "team.AddSecondaryEmailsError.too_many_emails", "param_name": "tooManyEmailsValue", "static_instance": "TOO_MANY_EMAILS", "getter_method": null, "containing_data_type_ref": "team.AddSecondaryEmailsError", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailsError.other": {"fq_name": "team.AddSecondaryEmailsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.AddSecondaryEmailsError", "route_refs": [], "_type": "FieldReference"}, "team.AddSecondaryEmailsResult.results": {"fq_name": "team.AddSecondaryEmailsResult.results", "param_name": "results", "static_instance": null, "getter_method": "getResults", "containing_data_type_ref": "team.AddSecondaryEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.AdminTier.team_admin": {"fq_name": "team.AdminTier.team_admin", "param_name": "teamAdminValue", "static_instance": "TEAM_ADMIN", "getter_method": null, "containing_data_type_ref": "team.AdminTier", "route_refs": [], "_type": "FieldReference"}, "team.AdminTier.user_management_admin": {"fq_name": "team.AdminTier.user_management_admin", "param_name": "userManagementAdminValue", "static_instance": "USER_MANAGEMENT_ADMIN", "getter_method": null, "containing_data_type_ref": "team.AdminTier", "route_refs": [], "_type": "FieldReference"}, "team.AdminTier.support_admin": {"fq_name": "team.AdminTier.support_admin", "param_name": "supportAdminValue", "static_instance": "SUPPORT_ADMIN", "getter_method": null, "containing_data_type_ref": "team.AdminTier", "route_refs": [], "_type": "FieldReference"}, "team.AdminTier.member_only": {"fq_name": "team.AdminTier.member_only", "param_name": "memberOnlyValue", "static_instance": "MEMBER_ONLY", "getter_method": null, "containing_data_type_ref": "team.AdminTier", "route_refs": [], "_type": "FieldReference"}, "team.ApiApp.app_id": {"fq_name": "team.ApiApp.app_id", "param_name": "appId", "static_instance": null, "getter_method": "getAppId", "containing_data_type_ref": "team.ApiApp", "route_refs": [], "_type": "FieldReference"}, "team.ApiApp.app_name": {"fq_name": "team.ApiApp.app_name", "param_name": "appName", "static_instance": null, "getter_method": "getAppName", "containing_data_type_ref": "team.ApiApp", "route_refs": [], "_type": "FieldReference"}, "team.ApiApp.is_app_folder": {"fq_name": "team.ApiApp.is_app_folder", "param_name": "isAppFolder", "static_instance": null, "getter_method": "getIsAppFolder", "containing_data_type_ref": "team.ApiApp", "route_refs": [], "_type": "FieldReference"}, "team.ApiApp.publisher": {"fq_name": "team.ApiApp.publisher", "param_name": "publisher", "static_instance": null, "getter_method": "getPublisher", "containing_data_type_ref": "team.ApiApp", "route_refs": [], "_type": "FieldReference"}, "team.ApiApp.publisher_url": {"fq_name": "team.ApiApp.publisher_url", "param_name": "publisherUrl", "static_instance": null, "getter_method": "getPublisherUrl", "containing_data_type_ref": "team.ApiApp", "route_refs": [], "_type": "FieldReference"}, "team.ApiApp.linked": {"fq_name": "team.ApiApp.linked", "param_name": "linked", "static_instance": null, "getter_method": "getLinked", "containing_data_type_ref": "team.ApiApp", "route_refs": [], "_type": "FieldReference"}, "team.BaseDfbReport.start_date": {"fq_name": "team.BaseDfbReport.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.BaseDfbReport", "route_refs": [], "_type": "FieldReference"}, "team.BaseTeamFolderError.access_error": {"fq_name": "team.BaseTeamFolderError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "team.BaseTeamFolderError", "route_refs": [], "_type": "FieldReference"}, "team.BaseTeamFolderError.status_error": {"fq_name": "team.BaseTeamFolderError.status_error", "param_name": "statusErrorValue", "static_instance": null, "getter_method": "getStatusErrorValue", "containing_data_type_ref": "team.BaseTeamFolderError", "route_refs": [], "_type": "FieldReference"}, "team.BaseTeamFolderError.team_shared_dropbox_error": {"fq_name": "team.BaseTeamFolderError.team_shared_dropbox_error", "param_name": "teamSharedDropboxErrorValue", "static_instance": null, "getter_method": "getTeamSharedDropboxErrorValue", "containing_data_type_ref": "team.BaseTeamFolderError", "route_refs": [], "_type": "FieldReference"}, "team.BaseTeamFolderError.other": {"fq_name": "team.BaseTeamFolderError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.BaseTeamFolderError", "route_refs": [], "_type": "FieldReference"}, "team.CustomQuotaError.too_many_users": {"fq_name": "team.CustomQuotaError.too_many_users", "param_name": "tooManyUsersValue", "static_instance": "TOO_MANY_USERS", "getter_method": null, "containing_data_type_ref": "team.CustomQuotaError", "route_refs": [], "_type": "FieldReference"}, "team.CustomQuotaError.other": {"fq_name": "team.CustomQuotaError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.CustomQuotaError", "route_refs": [], "_type": "FieldReference"}, "team.CustomQuotaResult.success": {"fq_name": "team.CustomQuotaResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.CustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.CustomQuotaResult.invalid_user": {"fq_name": "team.CustomQuotaResult.invalid_user", "param_name": "invalidUserValue", "static_instance": null, "getter_method": "getInvalidUserValue", "containing_data_type_ref": "team.CustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.CustomQuotaResult.other": {"fq_name": "team.CustomQuotaResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.CustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.CustomQuotaUsersArg.users": {"fq_name": "team.CustomQuotaUsersArg.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "team.CustomQuotaUsersArg", "route_refs": [], "_type": "FieldReference"}, "team.DateRange.start_date": {"fq_name": "team.DateRange.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.DateRange", "route_refs": [], "_type": "FieldReference"}, "team.DateRange.end_date": {"fq_name": "team.DateRange.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team.DateRange", "route_refs": [], "_type": "FieldReference"}, "team.DateRangeError.other": {"fq_name": "team.DateRangeError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.DateRangeError", "route_refs": [], "_type": "FieldReference"}, "team.DeleteSecondaryEmailResult.success": {"fq_name": "team.DeleteSecondaryEmailResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.DeleteSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.DeleteSecondaryEmailResult.not_found": {"fq_name": "team.DeleteSecondaryEmailResult.not_found", "param_name": "notFoundValue", "static_instance": null, "getter_method": "getNotFoundValue", "containing_data_type_ref": "team.DeleteSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.DeleteSecondaryEmailResult.cannot_remove_primary": {"fq_name": "team.DeleteSecondaryEmailResult.cannot_remove_primary", "param_name": "cannotRemovePrimaryValue", "static_instance": null, "getter_method": "getCannotRemovePrimaryValue", "containing_data_type_ref": "team.DeleteSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.DeleteSecondaryEmailResult.other": {"fq_name": "team.DeleteSecondaryEmailResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.DeleteSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.DeleteSecondaryEmailsArg.emails_to_delete": {"fq_name": "team.DeleteSecondaryEmailsArg.emails_to_delete", "param_name": "emailsToDelete", "static_instance": null, "getter_method": "getEmailsToDelete", "containing_data_type_ref": "team.DeleteSecondaryEmailsArg", "route_refs": [], "_type": "FieldReference"}, "team.DeleteSecondaryEmailsResult.results": {"fq_name": "team.DeleteSecondaryEmailsResult.results", "param_name": "results", "static_instance": null, "getter_method": "getResults", "containing_data_type_ref": "team.DeleteSecondaryEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.session_id": {"fq_name": "team.DesktopClientSession.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.host_name": {"fq_name": "team.DesktopClientSession.host_name", "param_name": "hostName", "static_instance": null, "getter_method": "getHostName", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.client_type": {"fq_name": "team.DesktopClientSession.client_type", "param_name": "clientType", "static_instance": null, "getter_method": "getClientType", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.client_version": {"fq_name": "team.DesktopClientSession.client_version", "param_name": "clientVersion", "static_instance": null, "getter_method": "getClientVersion", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.platform": {"fq_name": "team.DesktopClientSession.platform", "param_name": "platform", "static_instance": null, "getter_method": "getPlatform", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.is_delete_on_unlink_supported": {"fq_name": "team.DesktopClientSession.is_delete_on_unlink_supported", "param_name": "isDeleteOnUnlinkSupported", "static_instance": null, "getter_method": "getIsDeleteOnUnlinkSupported", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.ip_address": {"fq_name": "team.DesktopClientSession.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.country": {"fq_name": "team.DesktopClientSession.country", "param_name": "country", "static_instance": null, "getter_method": "getCountry", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.created": {"fq_name": "team.DesktopClientSession.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopClientSession.updated": {"fq_name": "team.DesktopClientSession.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team.DesktopClientSession", "route_refs": [], "_type": "FieldReference"}, "team.DesktopPlatform.windows": {"fq_name": "team.DesktopPlatform.windows", "param_name": "windowsValue", "static_instance": "WINDOWS", "getter_method": null, "containing_data_type_ref": "team.DesktopPlatform", "route_refs": [], "_type": "FieldReference"}, "team.DesktopPlatform.mac": {"fq_name": "team.DesktopPlatform.mac", "param_name": "macValue", "static_instance": "MAC", "getter_method": null, "containing_data_type_ref": "team.DesktopPlatform", "route_refs": [], "_type": "FieldReference"}, "team.DesktopPlatform.linux": {"fq_name": "team.DesktopPlatform.linux", "param_name": "linuxValue", "static_instance": "LINUX", "getter_method": null, "containing_data_type_ref": "team.DesktopPlatform", "route_refs": [], "_type": "FieldReference"}, "team.DesktopPlatform.other": {"fq_name": "team.DesktopPlatform.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.DesktopPlatform", "route_refs": [], "_type": "FieldReference"}, "team.DeviceSession.session_id": {"fq_name": "team.DeviceSession.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team.DeviceSession", "route_refs": [], "_type": "FieldReference"}, "team.DeviceSession.ip_address": {"fq_name": "team.DeviceSession.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team.DeviceSession", "route_refs": [], "_type": "FieldReference"}, "team.DeviceSession.country": {"fq_name": "team.DeviceSession.country", "param_name": "country", "static_instance": null, "getter_method": "getCountry", "containing_data_type_ref": "team.DeviceSession", "route_refs": [], "_type": "FieldReference"}, "team.DeviceSession.created": {"fq_name": "team.DeviceSession.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team.DeviceSession", "route_refs": [], "_type": "FieldReference"}, "team.DeviceSession.updated": {"fq_name": "team.DeviceSession.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team.DeviceSession", "route_refs": [], "_type": "FieldReference"}, "team.DeviceSessionArg.session_id": {"fq_name": "team.DeviceSessionArg.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team.DeviceSessionArg", "route_refs": [], "_type": "FieldReference"}, "team.DeviceSessionArg.team_member_id": {"fq_name": "team.DeviceSessionArg.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.DeviceSessionArg", "route_refs": [], "_type": "FieldReference"}, "team.DevicesActive.windows": {"fq_name": "team.DevicesActive.windows", "param_name": "windows", "static_instance": null, "getter_method": "getWindows", "containing_data_type_ref": "team.DevicesActive", "route_refs": [], "_type": "FieldReference"}, "team.DevicesActive.macos": {"fq_name": "team.DevicesActive.macos", "param_name": "macos", "static_instance": null, "getter_method": "getMacos", "containing_data_type_ref": "team.DevicesActive", "route_refs": [], "_type": "FieldReference"}, "team.DevicesActive.linux": {"fq_name": "team.DevicesActive.linux", "param_name": "linux", "static_instance": null, "getter_method": "getLinux", "containing_data_type_ref": "team.DevicesActive", "route_refs": [], "_type": "FieldReference"}, "team.DevicesActive.ios": {"fq_name": "team.DevicesActive.ios", "param_name": "ios", "static_instance": null, "getter_method": "getIos", "containing_data_type_ref": "team.DevicesActive", "route_refs": [], "_type": "FieldReference"}, "team.DevicesActive.android": {"fq_name": "team.DevicesActive.android", "param_name": "android", "static_instance": null, "getter_method": "getAndroid", "containing_data_type_ref": "team.DevicesActive", "route_refs": [], "_type": "FieldReference"}, "team.DevicesActive.other": {"fq_name": "team.DevicesActive.other", "param_name": "other", "static_instance": null, "getter_method": "getOther", "containing_data_type_ref": "team.DevicesActive", "route_refs": [], "_type": "FieldReference"}, "team.DevicesActive.total": {"fq_name": "team.DevicesActive.total", "param_name": "total", "static_instance": null, "getter_method": "getTotal", "containing_data_type_ref": "team.DevicesActive", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListArg.limit": {"fq_name": "team.ExcludedUsersListArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team.ExcludedUsersListArg", "route_refs": ["team.member_space_limits/excluded_users/list"], "_type": "FieldReference"}, "team.ExcludedUsersListContinueArg.cursor": {"fq_name": "team.ExcludedUsersListContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ExcludedUsersListContinueArg", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListContinueError.invalid_cursor": {"fq_name": "team.ExcludedUsersListContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListContinueError.other": {"fq_name": "team.ExcludedUsersListContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListError.list_error": {"fq_name": "team.ExcludedUsersListError.list_error", "param_name": "listErrorValue", "static_instance": "LIST_ERROR", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersListError", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListError.other": {"fq_name": "team.ExcludedUsersListError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersListError", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListResult.users": {"fq_name": "team.ExcludedUsersListResult.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "team.ExcludedUsersListResult", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListResult.has_more": {"fq_name": "team.ExcludedUsersListResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.ExcludedUsersListResult", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersListResult.cursor": {"fq_name": "team.ExcludedUsersListResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ExcludedUsersListResult", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersUpdateArg.users": {"fq_name": "team.ExcludedUsersUpdateArg.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "team.ExcludedUsersUpdateArg", "route_refs": ["team.member_space_limits/excluded_users/add", "team.member_space_limits/excluded_users/remove"], "_type": "FieldReference"}, "team.ExcludedUsersUpdateError.users_not_in_team": {"fq_name": "team.ExcludedUsersUpdateError.users_not_in_team", "param_name": "usersNotInTeamValue", "static_instance": "USERS_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersUpdateError.too_many_users": {"fq_name": "team.ExcludedUsersUpdateError.too_many_users", "param_name": "tooManyUsersValue", "static_instance": "TOO_MANY_USERS", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersUpdateError.other": {"fq_name": "team.ExcludedUsersUpdateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersUpdateResult.status": {"fq_name": "team.ExcludedUsersUpdateResult.status", "param_name": "status", "static_instance": null, "getter_method": "getStatus", "containing_data_type_ref": "team.ExcludedUsersUpdateResult", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersUpdateStatus.success": {"fq_name": "team.ExcludedUsersUpdateStatus.success", "param_name": "successValue", "static_instance": "SUCCESS", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersUpdateStatus", "route_refs": [], "_type": "FieldReference"}, "team.ExcludedUsersUpdateStatus.other": {"fq_name": "team.ExcludedUsersUpdateStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ExcludedUsersUpdateStatus", "route_refs": [], "_type": "FieldReference"}, "team.Feature.upload_api_rate_limit": {"fq_name": "team.Feature.upload_api_rate_limit", "param_name": "uploadApiRateLimitValue", "static_instance": "UPLOAD_API_RATE_LIMIT", "getter_method": null, "containing_data_type_ref": "team.Feature", "route_refs": [], "_type": "FieldReference"}, "team.Feature.has_team_shared_dropbox": {"fq_name": "team.Feature.has_team_shared_dropbox", "param_name": "hasTeamSharedDropboxValue", "static_instance": "HAS_TEAM_SHARED_DROPBOX", "getter_method": null, "containing_data_type_ref": "team.Feature", "route_refs": [], "_type": "FieldReference"}, "team.Feature.has_team_file_events": {"fq_name": "team.Feature.has_team_file_events", "param_name": "hasTeamFileEventsValue", "static_instance": "HAS_TEAM_FILE_EVENTS", "getter_method": null, "containing_data_type_ref": "team.Feature", "route_refs": [], "_type": "FieldReference"}, "team.Feature.has_team_selective_sync": {"fq_name": "team.Feature.has_team_selective_sync", "param_name": "hasTeamSelectiveSyncValue", "static_instance": "HAS_TEAM_SELECTIVE_SYNC", "getter_method": null, "containing_data_type_ref": "team.Feature", "route_refs": [], "_type": "FieldReference"}, "team.Feature.other": {"fq_name": "team.Feature.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.Feature", "route_refs": [], "_type": "FieldReference"}, "team.FeatureValue.upload_api_rate_limit": {"fq_name": "team.FeatureValue.upload_api_rate_limit", "param_name": "uploadApiRateLimitValue", "static_instance": null, "getter_method": "getUploadApiRateLimitValue", "containing_data_type_ref": "team.FeatureValue", "route_refs": [], "_type": "FieldReference"}, "team.FeatureValue.has_team_shared_dropbox": {"fq_name": "team.FeatureValue.has_team_shared_dropbox", "param_name": "hasTeamSharedDropboxValue", "static_instance": null, "getter_method": "getHasTeamSharedDropboxValue", "containing_data_type_ref": "team.FeatureValue", "route_refs": [], "_type": "FieldReference"}, "team.FeatureValue.has_team_file_events": {"fq_name": "team.FeatureValue.has_team_file_events", "param_name": "hasTeamFileEventsValue", "static_instance": null, "getter_method": "getHasTeamFileEventsValue", "containing_data_type_ref": "team.FeatureValue", "route_refs": [], "_type": "FieldReference"}, "team.FeatureValue.has_team_selective_sync": {"fq_name": "team.FeatureValue.has_team_selective_sync", "param_name": "hasTeamSelectiveSyncValue", "static_instance": null, "getter_method": "getHasTeamSelectiveSyncValue", "containing_data_type_ref": "team.FeatureValue", "route_refs": [], "_type": "FieldReference"}, "team.FeatureValue.other": {"fq_name": "team.FeatureValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.FeatureValue", "route_refs": [], "_type": "FieldReference"}, "team.FeaturesGetValuesBatchArg.features": {"fq_name": "team.FeaturesGetValuesBatchArg.features", "param_name": "features", "static_instance": null, "getter_method": "getFeatures", "containing_data_type_ref": "team.FeaturesGetValuesBatchArg", "route_refs": [], "_type": "FieldReference"}, "team.FeaturesGetValuesBatchError.empty_features_list": {"fq_name": "team.FeaturesGetValuesBatchError.empty_features_list", "param_name": "emptyFeaturesListValue", "static_instance": "EMPTY_FEATURES_LIST", "getter_method": null, "containing_data_type_ref": "team.FeaturesGetValuesBatchError", "route_refs": [], "_type": "FieldReference"}, "team.FeaturesGetValuesBatchError.other": {"fq_name": "team.FeaturesGetValuesBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.FeaturesGetValuesBatchError", "route_refs": [], "_type": "FieldReference"}, "team.FeaturesGetValuesBatchResult.values": {"fq_name": "team.FeaturesGetValuesBatchResult.values", "param_name": "values", "static_instance": null, "getter_method": "getValues", "containing_data_type_ref": "team.FeaturesGetValuesBatchResult", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.start_date": {"fq_name": "team.GetActivityReport.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.adds": {"fq_name": "team.GetActivityReport.adds", "param_name": "adds", "static_instance": null, "getter_method": "getAdds", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.edits": {"fq_name": "team.GetActivityReport.edits", "param_name": "edits", "static_instance": null, "getter_method": "getEdits", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.deletes": {"fq_name": "team.GetActivityReport.deletes", "param_name": "deletes", "static_instance": null, "getter_method": "getDeletes", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.active_users_28_day": {"fq_name": "team.GetActivityReport.active_users_28_day", "param_name": "activeUsers28Day", "static_instance": null, "getter_method": "getActiveUsers28Day", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.active_users_7_day": {"fq_name": "team.GetActivityReport.active_users_7_day", "param_name": "activeUsers7Day", "static_instance": null, "getter_method": "getActiveUsers7Day", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.active_users_1_day": {"fq_name": "team.GetActivityReport.active_users_1_day", "param_name": "activeUsers1Day", "static_instance": null, "getter_method": "getActiveUsers1Day", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.active_shared_folders_28_day": {"fq_name": "team.GetActivityReport.active_shared_folders_28_day", "param_name": "activeSharedFolders28Day", "static_instance": null, "getter_method": "getActiveSharedFolders28Day", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.active_shared_folders_7_day": {"fq_name": "team.GetActivityReport.active_shared_folders_7_day", "param_name": "activeSharedFolders7Day", "static_instance": null, "getter_method": "getActiveSharedFolders7Day", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.active_shared_folders_1_day": {"fq_name": "team.GetActivityReport.active_shared_folders_1_day", "param_name": "activeSharedFolders1Day", "static_instance": null, "getter_method": "getActiveSharedFolders1Day", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.shared_links_created": {"fq_name": "team.GetActivityReport.shared_links_created", "param_name": "sharedLinksCreated", "static_instance": null, "getter_method": "getSharedLinksCreated", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.shared_links_viewed_by_team": {"fq_name": "team.GetActivityReport.shared_links_viewed_by_team", "param_name": "sharedLinksViewedByTeam", "static_instance": null, "getter_method": "getSharedLinksViewedByTeam", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.shared_links_viewed_by_outside_user": {"fq_name": "team.GetActivityReport.shared_links_viewed_by_outside_user", "param_name": "sharedLinksViewedByOutsideUser", "static_instance": null, "getter_method": "getSharedLinksViewedByOutsideUser", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.shared_links_viewed_by_not_logged_in": {"fq_name": "team.GetActivityReport.shared_links_viewed_by_not_logged_in", "param_name": "sharedLinksViewedByNotLoggedIn", "static_instance": null, "getter_method": "getSharedLinksViewedByNotLoggedIn", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetActivityReport.shared_links_viewed_total": {"fq_name": "team.GetActivityReport.shared_links_viewed_total", "param_name": "sharedLinksViewedTotal", "static_instance": null, "getter_method": "getSharedLinksViewedTotal", "containing_data_type_ref": "team.GetActivityReport", "route_refs": [], "_type": "FieldReference"}, "team.GetDevicesReport.start_date": {"fq_name": "team.GetDevicesReport.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.GetDevicesReport", "route_refs": [], "_type": "FieldReference"}, "team.GetDevicesReport.active_1_day": {"fq_name": "team.GetDevicesReport.active_1_day", "param_name": "active1Day", "static_instance": null, "getter_method": "getActive1Day", "containing_data_type_ref": "team.GetDevicesReport", "route_refs": [], "_type": "FieldReference"}, "team.GetDevicesReport.active_7_day": {"fq_name": "team.GetDevicesReport.active_7_day", "param_name": "active7Day", "static_instance": null, "getter_method": "getActive7Day", "containing_data_type_ref": "team.GetDevicesReport", "route_refs": [], "_type": "FieldReference"}, "team.GetDevicesReport.active_28_day": {"fq_name": "team.GetDevicesReport.active_28_day", "param_name": "active28Day", "static_instance": null, "getter_method": "getActive28Day", "containing_data_type_ref": "team.GetDevicesReport", "route_refs": [], "_type": "FieldReference"}, "team.GetMembershipReport.start_date": {"fq_name": "team.GetMembershipReport.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.GetMembershipReport", "route_refs": [], "_type": "FieldReference"}, "team.GetMembershipReport.team_size": {"fq_name": "team.GetMembershipReport.team_size", "param_name": "teamSize", "static_instance": null, "getter_method": "getTeamSize", "containing_data_type_ref": "team.GetMembershipReport", "route_refs": [], "_type": "FieldReference"}, "team.GetMembershipReport.pending_invites": {"fq_name": "team.GetMembershipReport.pending_invites", "param_name": "pendingInvites", "static_instance": null, "getter_method": "getPendingInvites", "containing_data_type_ref": "team.GetMembershipReport", "route_refs": [], "_type": "FieldReference"}, "team.GetMembershipReport.members_joined": {"fq_name": "team.GetMembershipReport.members_joined", "param_name": "membersJoined", "static_instance": null, "getter_method": "getMembersJoined", "containing_data_type_ref": "team.GetMembershipReport", "route_refs": [], "_type": "FieldReference"}, "team.GetMembershipReport.suspended_members": {"fq_name": "team.GetMembershipReport.suspended_members", "param_name": "suspendedMembers", "static_instance": null, "getter_method": "getSuspendedMembers", "containing_data_type_ref": "team.GetMembershipReport", "route_refs": [], "_type": "FieldReference"}, "team.GetMembershipReport.licenses": {"fq_name": "team.GetMembershipReport.licenses", "param_name": "licenses", "static_instance": null, "getter_method": "getLicenses", "containing_data_type_ref": "team.GetMembershipReport", "route_refs": [], "_type": "FieldReference"}, "team.GetStorageReport.start_date": {"fq_name": "team.GetStorageReport.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.GetStorageReport", "route_refs": [], "_type": "FieldReference"}, "team.GetStorageReport.total_usage": {"fq_name": "team.GetStorageReport.total_usage", "param_name": "totalUsage", "static_instance": null, "getter_method": "getTotalUsage", "containing_data_type_ref": "team.GetStorageReport", "route_refs": [], "_type": "FieldReference"}, "team.GetStorageReport.shared_usage": {"fq_name": "team.GetStorageReport.shared_usage", "param_name": "sharedUsage", "static_instance": null, "getter_method": "getSharedUsage", "containing_data_type_ref": "team.GetStorageReport", "route_refs": [], "_type": "FieldReference"}, "team.GetStorageReport.unshared_usage": {"fq_name": "team.GetStorageReport.unshared_usage", "param_name": "unsharedUsage", "static_instance": null, "getter_method": "getUnsharedUsage", "containing_data_type_ref": "team.GetStorageReport", "route_refs": [], "_type": "FieldReference"}, "team.GetStorageReport.shared_folders": {"fq_name": "team.GetStorageReport.shared_folders", "param_name": "sharedFolders", "static_instance": null, "getter_method": "getSharedFolders", "containing_data_type_ref": "team.GetStorageReport", "route_refs": [], "_type": "FieldReference"}, "team.GetStorageReport.member_storage_map": {"fq_name": "team.GetStorageReport.member_storage_map", "param_name": "memberStorageMap", "static_instance": null, "getter_method": "getMemberStorageMap", "containing_data_type_ref": "team.GetStorageReport", "route_refs": [], "_type": "FieldReference"}, "team.GroupAccessType.member": {"fq_name": "team.GroupAccessType.member", "param_name": "memberValue", "static_instance": "MEMBER", "getter_method": null, "containing_data_type_ref": "team.GroupAccessType", "route_refs": [], "_type": "FieldReference"}, "team.GroupAccessType.owner": {"fq_name": "team.GroupAccessType.owner", "param_name": "ownerValue", "static_instance": "OWNER", "getter_method": null, "containing_data_type_ref": "team.GroupAccessType", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateArg.group_name": {"fq_name": "team.GroupCreateArg.group_name", "param_name": "groupName", "static_instance": null, "getter_method": "getGroupName", "containing_data_type_ref": "team.GroupCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateArg.add_creator_as_owner": {"fq_name": "team.GroupCreateArg.add_creator_as_owner", "param_name": "addCreatorAsOwner", "static_instance": null, "getter_method": "getAddCreatorAsOwner", "containing_data_type_ref": "team.GroupCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateArg.group_external_id": {"fq_name": "team.GroupCreateArg.group_external_id", "param_name": "groupExternalId", "static_instance": null, "getter_method": "getGroupExternalId", "containing_data_type_ref": "team.GroupCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateArg.group_management_type": {"fq_name": "team.GroupCreateArg.group_management_type", "param_name": "groupManagementType", "static_instance": null, "getter_method": "getGroupManagementType", "containing_data_type_ref": "team.GroupCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateError.group_name_already_used": {"fq_name": "team.GroupCreateError.group_name_already_used", "param_name": "groupNameAlreadyUsedValue", "static_instance": "GROUP_NAME_ALREADY_USED", "getter_method": null, "containing_data_type_ref": "team.GroupCreateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateError.group_name_invalid": {"fq_name": "team.GroupCreateError.group_name_invalid", "param_name": "groupNameInvalidValue", "static_instance": "GROUP_NAME_INVALID", "getter_method": null, "containing_data_type_ref": "team.GroupCreateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateError.external_id_already_in_use": {"fq_name": "team.GroupCreateError.external_id_already_in_use", "param_name": "externalIdAlreadyInUseValue", "static_instance": "EXTERNAL_ID_ALREADY_IN_USE", "getter_method": null, "containing_data_type_ref": "team.GroupCreateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateError.system_managed_group_disallowed": {"fq_name": "team.GroupCreateError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupCreateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupCreateError.other": {"fq_name": "team.GroupCreateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupCreateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupDeleteError.group_not_found": {"fq_name": "team.GroupDeleteError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.GroupDeleteError.other": {"fq_name": "team.GroupDeleteError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.GroupDeleteError.system_managed_group_disallowed": {"fq_name": "team.GroupDeleteError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.GroupDeleteError.group_already_deleted": {"fq_name": "team.GroupDeleteError.group_already_deleted", "param_name": "groupAlreadyDeletedValue", "static_instance": "GROUP_ALREADY_DELETED", "getter_method": null, "containing_data_type_ref": "team.GroupDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.GroupFullInfo.group_name": {"fq_name": "team.GroupFullInfo.group_name", "param_name": "groupName", "static_instance": null, "getter_method": "getGroupName", "containing_data_type_ref": "team.GroupFullInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupFullInfo.group_id": {"fq_name": "team.GroupFullInfo.group_id", "param_name": "groupId", "static_instance": null, "getter_method": "getGroupId", "containing_data_type_ref": "team.GroupFullInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupFullInfo.group_management_type": {"fq_name": "team.GroupFullInfo.group_management_type", "param_name": "groupManagementType", "static_instance": null, "getter_method": "getGroupManagementType", "containing_data_type_ref": "team.GroupFullInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupFullInfo.created": {"fq_name": "team.GroupFullInfo.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team.GroupFullInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupFullInfo.group_external_id": {"fq_name": "team.GroupFullInfo.group_external_id", "param_name": "groupExternalId", "static_instance": null, "getter_method": "getGroupExternalId", "containing_data_type_ref": "team.GroupFullInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupFullInfo.member_count": {"fq_name": "team.GroupFullInfo.member_count", "param_name": "memberCount", "static_instance": null, "getter_method": "getMemberCount", "containing_data_type_ref": "team.GroupFullInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupFullInfo.members": {"fq_name": "team.GroupFullInfo.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.GroupFullInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberInfo.profile": {"fq_name": "team.GroupMemberInfo.profile", "param_name": "profile", "static_instance": null, "getter_method": "getProfile", "containing_data_type_ref": "team.GroupMemberInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberInfo.access_type": {"fq_name": "team.GroupMemberInfo.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "team.GroupMemberInfo", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSelector.group": {"fq_name": "team.GroupMemberSelector.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "team.GroupMemberSelector", "route_refs": ["team.groups/members/set_access_type"], "_type": "FieldReference"}, "team.GroupMemberSelector.user": {"fq_name": "team.GroupMemberSelector.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.GroupMemberSelector", "route_refs": ["team.groups/members/set_access_type"], "_type": "FieldReference"}, "team.GroupMemberSelectorError.group_not_found": {"fq_name": "team.GroupMemberSelectorError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSelectorError.other": {"fq_name": "team.GroupMemberSelectorError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSelectorError.system_managed_group_disallowed": {"fq_name": "team.GroupMemberSelectorError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSelectorError.member_not_in_group": {"fq_name": "team.GroupMemberSelectorError.member_not_in_group", "param_name": "memberNotInGroupValue", "static_instance": "MEMBER_NOT_IN_GROUP", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSetAccessTypeError.group_not_found": {"fq_name": "team.GroupMemberSetAccessTypeError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSetAccessTypeError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSetAccessTypeError.other": {"fq_name": "team.GroupMemberSetAccessTypeError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSetAccessTypeError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSetAccessTypeError.system_managed_group_disallowed": {"fq_name": "team.GroupMemberSetAccessTypeError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSetAccessTypeError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSetAccessTypeError.member_not_in_group": {"fq_name": "team.GroupMemberSetAccessTypeError.member_not_in_group", "param_name": "memberNotInGroupValue", "static_instance": "MEMBER_NOT_IN_GROUP", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSetAccessTypeError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMemberSetAccessTypeError.user_cannot_be_manager_of_company_managed_group": {"fq_name": "team.GroupMemberSetAccessTypeError.user_cannot_be_manager_of_company_managed_group", "param_name": "userCannotBeManagerOfCompanyManagedGroupValue", "static_instance": "USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP", "getter_method": null, "containing_data_type_ref": "team.GroupMemberSetAccessTypeError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddArg.group": {"fq_name": "team.GroupMembersAddArg.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "team.GroupMembersAddArg", "route_refs": ["team.groups/members/add"], "_type": "FieldReference"}, "team.GroupMembersAddArg.members": {"fq_name": "team.GroupMembersAddArg.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.GroupMembersAddArg", "route_refs": ["team.groups/members/add"], "_type": "FieldReference"}, "team.GroupMembersAddArg.return_members": {"fq_name": "team.GroupMembersAddArg.return_members", "param_name": "returnMembers", "static_instance": null, "getter_method": "getReturnMembers", "containing_data_type_ref": "team.GroupMembersAddArg", "route_refs": ["team.groups/members/add", "team.groups/members/remove"], "_type": "FieldReference"}, "team.GroupMembersAddError.group_not_found": {"fq_name": "team.GroupMembersAddError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.other": {"fq_name": "team.GroupMembersAddError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.system_managed_group_disallowed": {"fq_name": "team.GroupMembersAddError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.duplicate_user": {"fq_name": "team.GroupMembersAddError.duplicate_user", "param_name": "duplicateUserValue", "static_instance": "DUPLICATE_USER", "getter_method": null, "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.group_not_in_team": {"fq_name": "team.GroupMembersAddError.group_not_in_team", "param_name": "groupNotInTeamValue", "static_instance": "GROUP_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.members_not_in_team": {"fq_name": "team.GroupMembersAddError.members_not_in_team", "param_name": "membersNotInTeamValue", "static_instance": null, "getter_method": "getMembersNotInTeamValue", "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.users_not_found": {"fq_name": "team.GroupMembersAddError.users_not_found", "param_name": "usersNotFoundValue", "static_instance": null, "getter_method": "getUsersNotFoundValue", "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.user_must_be_active_to_be_owner": {"fq_name": "team.GroupMembersAddError.user_must_be_active_to_be_owner", "param_name": "userMustBeActiveToBeOwnerValue", "static_instance": "USER_MUST_BE_ACTIVE_TO_BE_OWNER", "getter_method": null, "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersAddError.user_cannot_be_manager_of_company_managed_group": {"fq_name": "team.GroupMembersAddError.user_cannot_be_manager_of_company_managed_group", "param_name": "userCannotBeManagerOfCompanyManagedGroupValue", "static_instance": null, "getter_method": "getUserCannotBeManagerOfCompanyManagedGroupValue", "containing_data_type_ref": "team.GroupMembersAddError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersChangeResult.group_info": {"fq_name": "team.GroupMembersChangeResult.group_info", "param_name": "groupInfo", "static_instance": null, "getter_method": "getGroupInfo", "containing_data_type_ref": "team.GroupMembersChangeResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersChangeResult.async_job_id": {"fq_name": "team.GroupMembersChangeResult.async_job_id", "param_name": "asyncJobId", "static_instance": null, "getter_method": "getAsyncJobId", "containing_data_type_ref": "team.GroupMembersChangeResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersRemoveArg.group": {"fq_name": "team.GroupMembersRemoveArg.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "team.GroupMembersRemoveArg", "route_refs": ["team.groups/members/remove"], "_type": "FieldReference"}, "team.GroupMembersRemoveArg.users": {"fq_name": "team.GroupMembersRemoveArg.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "team.GroupMembersRemoveArg", "route_refs": ["team.groups/members/remove"], "_type": "FieldReference"}, "team.GroupMembersRemoveArg.return_members": {"fq_name": "team.GroupMembersRemoveArg.return_members", "param_name": "returnMembers", "static_instance": null, "getter_method": "getReturnMembers", "containing_data_type_ref": "team.GroupMembersRemoveArg", "route_refs": ["team.groups/members/add", "team.groups/members/remove"], "_type": "FieldReference"}, "team.GroupMembersRemoveError.group_not_found": {"fq_name": "team.GroupMembersRemoveError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupMembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersRemoveError.other": {"fq_name": "team.GroupMembersRemoveError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupMembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersRemoveError.system_managed_group_disallowed": {"fq_name": "team.GroupMembersRemoveError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupMembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersRemoveError.member_not_in_group": {"fq_name": "team.GroupMembersRemoveError.member_not_in_group", "param_name": "memberNotInGroupValue", "static_instance": "MEMBER_NOT_IN_GROUP", "getter_method": null, "containing_data_type_ref": "team.GroupMembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersRemoveError.group_not_in_team": {"fq_name": "team.GroupMembersRemoveError.group_not_in_team", "param_name": "groupNotInTeamValue", "static_instance": "GROUP_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.GroupMembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersRemoveError.members_not_in_team": {"fq_name": "team.GroupMembersRemoveError.members_not_in_team", "param_name": "membersNotInTeamValue", "static_instance": null, "getter_method": "getMembersNotInTeamValue", "containing_data_type_ref": "team.GroupMembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersRemoveError.users_not_found": {"fq_name": "team.GroupMembersRemoveError.users_not_found", "param_name": "usersNotFoundValue", "static_instance": null, "getter_method": "getUsersNotFoundValue", "containing_data_type_ref": "team.GroupMembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersSelector.group": {"fq_name": "team.GroupMembersSelector.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "team.GroupMembersSelector", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersSelector.users": {"fq_name": "team.GroupMembersSelector.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "team.GroupMembersSelector", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersSelectorError.group_not_found": {"fq_name": "team.GroupMembersSelectorError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupMembersSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersSelectorError.other": {"fq_name": "team.GroupMembersSelectorError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupMembersSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersSelectorError.system_managed_group_disallowed": {"fq_name": "team.GroupMembersSelectorError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupMembersSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersSelectorError.member_not_in_group": {"fq_name": "team.GroupMembersSelectorError.member_not_in_group", "param_name": "memberNotInGroupValue", "static_instance": "MEMBER_NOT_IN_GROUP", "getter_method": null, "containing_data_type_ref": "team.GroupMembersSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupMembersSetAccessTypeArg.group": {"fq_name": "team.GroupMembersSetAccessTypeArg.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "team.GroupMembersSetAccessTypeArg", "route_refs": ["team.groups/members/set_access_type"], "_type": "FieldReference"}, "team.GroupMembersSetAccessTypeArg.user": {"fq_name": "team.GroupMembersSetAccessTypeArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.GroupMembersSetAccessTypeArg", "route_refs": ["team.groups/members/set_access_type"], "_type": "FieldReference"}, "team.GroupMembersSetAccessTypeArg.access_type": {"fq_name": "team.GroupMembersSetAccessTypeArg.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "team.GroupMembersSetAccessTypeArg", "route_refs": ["team.groups/members/set_access_type"], "_type": "FieldReference"}, "team.GroupMembersSetAccessTypeArg.return_members": {"fq_name": "team.GroupMembersSetAccessTypeArg.return_members", "param_name": "returnMembers", "static_instance": null, "getter_method": "getReturnMembers", "containing_data_type_ref": "team.GroupMembersSetAccessTypeArg", "route_refs": ["team.groups/members/set_access_type"], "_type": "FieldReference"}, "team.GroupSelector.group_id": {"fq_name": "team.GroupSelector.group_id", "param_name": "groupIdValue", "static_instance": null, "getter_method": "getGroupIdValue", "containing_data_type_ref": "team.GroupSelector", "route_refs": [], "_type": "FieldReference"}, "team.GroupSelector.group_external_id": {"fq_name": "team.GroupSelector.group_external_id", "param_name": "groupExternalIdValue", "static_instance": null, "getter_method": "getGroupExternalIdValue", "containing_data_type_ref": "team.GroupSelector", "route_refs": [], "_type": "FieldReference"}, "team.GroupSelectorError.group_not_found": {"fq_name": "team.GroupSelectorError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupSelectorError.other": {"fq_name": "team.GroupSelectorError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.GroupSelectorWithTeamGroupError.group_not_found": {"fq_name": "team.GroupSelectorWithTeamGroupError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupSelectorWithTeamGroupError", "route_refs": [], "_type": "FieldReference"}, "team.GroupSelectorWithTeamGroupError.other": {"fq_name": "team.GroupSelectorWithTeamGroupError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupSelectorWithTeamGroupError", "route_refs": [], "_type": "FieldReference"}, "team.GroupSelectorWithTeamGroupError.system_managed_group_disallowed": {"fq_name": "team.GroupSelectorWithTeamGroupError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupSelectorWithTeamGroupError", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateArgs.group": {"fq_name": "team.GroupUpdateArgs.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "team.GroupUpdateArgs", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateArgs.return_members": {"fq_name": "team.GroupUpdateArgs.return_members", "param_name": "returnMembers", "static_instance": null, "getter_method": "getReturnMembers", "containing_data_type_ref": "team.GroupUpdateArgs", "route_refs": ["team.groups/members/add", "team.groups/members/remove"], "_type": "FieldReference"}, "team.GroupUpdateArgs.new_group_name": {"fq_name": "team.GroupUpdateArgs.new_group_name", "param_name": "newGroupName", "static_instance": null, "getter_method": "getNewGroupName", "containing_data_type_ref": "team.GroupUpdateArgs", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateArgs.new_group_external_id": {"fq_name": "team.GroupUpdateArgs.new_group_external_id", "param_name": "newGroupExternalId", "static_instance": null, "getter_method": "getNewGroupExternalId", "containing_data_type_ref": "team.GroupUpdateArgs", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateArgs.new_group_management_type": {"fq_name": "team.GroupUpdateArgs.new_group_management_type", "param_name": "newGroupManagementType", "static_instance": null, "getter_method": "getNewGroupManagementType", "containing_data_type_ref": "team.GroupUpdateArgs", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateError.group_not_found": {"fq_name": "team.GroupUpdateError.group_not_found", "param_name": "groupNotFoundValue", "static_instance": "GROUP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.GroupUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateError.other": {"fq_name": "team.GroupUpdateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateError.system_managed_group_disallowed": {"fq_name": "team.GroupUpdateError.system_managed_group_disallowed", "param_name": "systemManagedGroupDisallowedValue", "static_instance": "SYSTEM_MANAGED_GROUP_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.GroupUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateError.group_name_already_used": {"fq_name": "team.GroupUpdateError.group_name_already_used", "param_name": "groupNameAlreadyUsedValue", "static_instance": "GROUP_NAME_ALREADY_USED", "getter_method": null, "containing_data_type_ref": "team.GroupUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateError.group_name_invalid": {"fq_name": "team.GroupUpdateError.group_name_invalid", "param_name": "groupNameInvalidValue", "static_instance": "GROUP_NAME_INVALID", "getter_method": null, "containing_data_type_ref": "team.GroupUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupUpdateError.external_id_already_in_use": {"fq_name": "team.GroupUpdateError.external_id_already_in_use", "param_name": "externalIdAlreadyInUseValue", "static_instance": "EXTERNAL_ID_ALREADY_IN_USE", "getter_method": null, "containing_data_type_ref": "team.GroupUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsGetInfoError.group_not_on_team": {"fq_name": "team.GroupsGetInfoError.group_not_on_team", "param_name": "groupNotOnTeamValue", "static_instance": "GROUP_NOT_ON_TEAM", "getter_method": null, "containing_data_type_ref": "team.GroupsGetInfoError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsGetInfoError.other": {"fq_name": "team.GroupsGetInfoError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupsGetInfoError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsGetInfoItem.id_not_found": {"fq_name": "team.GroupsGetInfoItem.id_not_found", "param_name": "idNotFoundValue", "static_instance": null, "getter_method": "getIdNotFoundValue", "containing_data_type_ref": "team.GroupsGetInfoItem", "route_refs": [], "_type": "FieldReference"}, "team.GroupsGetInfoItem.group_info": {"fq_name": "team.GroupsGetInfoItem.group_info", "param_name": "groupInfoValue", "static_instance": null, "getter_method": "getGroupInfoValue", "containing_data_type_ref": "team.GroupsGetInfoItem", "route_refs": [], "_type": "FieldReference"}, "team.GroupsListArg.limit": {"fq_name": "team.GroupsListArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team.GroupsListArg", "route_refs": ["team.groups/list"], "_type": "FieldReference"}, "team.GroupsListContinueArg.cursor": {"fq_name": "team.GroupsListContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.GroupsListContinueArg", "route_refs": [], "_type": "FieldReference"}, "team.GroupsListContinueError.invalid_cursor": {"fq_name": "team.GroupsListContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "team.GroupsListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsListContinueError.other": {"fq_name": "team.GroupsListContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupsListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsListResult.groups": {"fq_name": "team.GroupsListResult.groups", "param_name": "groups", "static_instance": null, "getter_method": "getGroups", "containing_data_type_ref": "team.GroupsListResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupsListResult.cursor": {"fq_name": "team.GroupsListResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.GroupsListResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupsListResult.has_more": {"fq_name": "team.GroupsListResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.GroupsListResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupsMembersListArg.group": {"fq_name": "team.GroupsMembersListArg.group", "param_name": "group", "static_instance": null, "getter_method": "getGroup", "containing_data_type_ref": "team.GroupsMembersListArg", "route_refs": ["team.groups/members/list"], "_type": "FieldReference"}, "team.GroupsMembersListArg.limit": {"fq_name": "team.GroupsMembersListArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team.GroupsMembersListArg", "route_refs": ["team.groups/members/list"], "_type": "FieldReference"}, "team.GroupsMembersListContinueArg.cursor": {"fq_name": "team.GroupsMembersListContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.GroupsMembersListContinueArg", "route_refs": [], "_type": "FieldReference"}, "team.GroupsMembersListContinueError.invalid_cursor": {"fq_name": "team.GroupsMembersListContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "team.GroupsMembersListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsMembersListContinueError.other": {"fq_name": "team.GroupsMembersListContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupsMembersListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsMembersListResult.members": {"fq_name": "team.GroupsMembersListResult.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.GroupsMembersListResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupsMembersListResult.cursor": {"fq_name": "team.GroupsMembersListResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.GroupsMembersListResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupsMembersListResult.has_more": {"fq_name": "team.GroupsMembersListResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.GroupsMembersListResult", "route_refs": [], "_type": "FieldReference"}, "team.GroupsPollError.invalid_async_job_id": {"fq_name": "team.GroupsPollError.invalid_async_job_id", "param_name": "invalidAsyncJobIdValue", "static_instance": "INVALID_ASYNC_JOB_ID", "getter_method": null, "containing_data_type_ref": "team.GroupsPollError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsPollError.internal_error": {"fq_name": "team.GroupsPollError.internal_error", "param_name": "internalErrorValue", "static_instance": "INTERNAL_ERROR", "getter_method": null, "containing_data_type_ref": "team.GroupsPollError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsPollError.other": {"fq_name": "team.GroupsPollError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.GroupsPollError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsPollError.access_denied": {"fq_name": "team.GroupsPollError.access_denied", "param_name": "accessDeniedValue", "static_instance": "ACCESS_DENIED", "getter_method": null, "containing_data_type_ref": "team.GroupsPollError", "route_refs": [], "_type": "FieldReference"}, "team.GroupsSelector.group_ids": {"fq_name": "team.GroupsSelector.group_ids", "param_name": "groupIdsValue", "static_instance": null, "getter_method": "getGroupIdsValue", "containing_data_type_ref": "team.GroupsSelector", "route_refs": [], "_type": "FieldReference"}, "team.GroupsSelector.group_external_ids": {"fq_name": "team.GroupsSelector.group_external_ids", "param_name": "groupExternalIdsValue", "static_instance": null, "getter_method": "getGroupExternalIdsValue", "containing_data_type_ref": "team.GroupsSelector", "route_refs": [], "_type": "FieldReference"}, "team.HasTeamFileEventsValue.enabled": {"fq_name": "team.HasTeamFileEventsValue.enabled", "param_name": "enabledValue", "static_instance": null, "getter_method": "getEnabledValue", "containing_data_type_ref": "team.HasTeamFileEventsValue", "route_refs": [], "_type": "FieldReference"}, "team.HasTeamFileEventsValue.other": {"fq_name": "team.HasTeamFileEventsValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.HasTeamFileEventsValue", "route_refs": [], "_type": "FieldReference"}, "team.HasTeamSelectiveSyncValue.has_team_selective_sync": {"fq_name": "team.HasTeamSelectiveSyncValue.has_team_selective_sync", "param_name": "hasTeamSelectiveSyncValue", "static_instance": null, "getter_method": "getHasTeamSelectiveSyncValue", "containing_data_type_ref": "team.HasTeamSelectiveSyncValue", "route_refs": [], "_type": "FieldReference"}, "team.HasTeamSelectiveSyncValue.other": {"fq_name": "team.HasTeamSelectiveSyncValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.HasTeamSelectiveSyncValue", "route_refs": [], "_type": "FieldReference"}, "team.HasTeamSharedDropboxValue.has_team_shared_dropbox": {"fq_name": "team.HasTeamSharedDropboxValue.has_team_shared_dropbox", "param_name": "hasTeamSharedDropboxValue", "static_instance": null, "getter_method": "getHasTeamSharedDropboxValue", "containing_data_type_ref": "team.HasTeamSharedDropboxValue", "route_refs": [], "_type": "FieldReference"}, "team.HasTeamSharedDropboxValue.other": {"fq_name": "team.HasTeamSharedDropboxValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.HasTeamSharedDropboxValue", "route_refs": [], "_type": "FieldReference"}, "team.IncludeMembersArg.return_members": {"fq_name": "team.IncludeMembersArg.return_members", "param_name": "returnMembers", "static_instance": null, "getter_method": "getReturnMembers", "containing_data_type_ref": "team.IncludeMembersArg", "route_refs": ["team.groups/members/add", "team.groups/members/remove"], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.new_filename": {"fq_name": "team.LegalHoldHeldRevisionMetadata.new_filename", "param_name": "newFilename", "static_instance": null, "getter_method": "getNewFilename", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.original_revision_id": {"fq_name": "team.LegalHoldHeldRevisionMetadata.original_revision_id", "param_name": "originalRevisionId", "static_instance": null, "getter_method": "getOriginalRevisionId", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.original_file_path": {"fq_name": "team.LegalHoldHeldRevisionMetadata.original_file_path", "param_name": "originalFilePath", "static_instance": null, "getter_method": "getOriginalFilePath", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.server_modified": {"fq_name": "team.LegalHoldHeldRevisionMetadata.server_modified", "param_name": "serverModified", "static_instance": null, "getter_method": "getServerModified", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.author_member_id": {"fq_name": "team.LegalHoldHeldRevisionMetadata.author_member_id", "param_name": "authorMemberId", "static_instance": null, "getter_method": "getAuthorMemberId", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.author_member_status": {"fq_name": "team.LegalHoldHeldRevisionMetadata.author_member_status", "param_name": "authorMemberStatus", "static_instance": null, "getter_method": "getAuthorMemberStatus", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.author_email": {"fq_name": "team.LegalHoldHeldRevisionMetadata.author_email", "param_name": "authorEmail", "static_instance": null, "getter_method": "getAuthorEmail", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.file_type": {"fq_name": "team.LegalHoldHeldRevisionMetadata.file_type", "param_name": "fileType", "static_instance": null, "getter_method": "getFileType", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.size": {"fq_name": "team.LegalHoldHeldRevisionMetadata.size", "param_name": "size", "static_instance": null, "getter_method": "getSize", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldHeldRevisionMetadata.content_hash": {"fq_name": "team.LegalHoldHeldRevisionMetadata.content_hash", "param_name": "contentHash", "static_instance": null, "getter_method": "getContentHash", "containing_data_type_ref": "team.LegalHoldHeldRevisionMetadata", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.id": {"fq_name": "team.LegalHoldPolicy.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.name": {"fq_name": "team.LegalHoldPolicy.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.members": {"fq_name": "team.LegalHoldPolicy.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.status": {"fq_name": "team.LegalHoldPolicy.status", "param_name": "status", "static_instance": null, "getter_method": "getStatus", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.start_date": {"fq_name": "team.LegalHoldPolicy.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.description": {"fq_name": "team.LegalHoldPolicy.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.activation_time": {"fq_name": "team.LegalHoldPolicy.activation_time", "param_name": "activationTime", "static_instance": null, "getter_method": "getActivationTime", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldPolicy.end_date": {"fq_name": "team.LegalHoldPolicy.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team.LegalHoldPolicy", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldStatus.active": {"fq_name": "team.LegalHoldStatus.active", "param_name": "activeValue", "static_instance": "ACTIVE", "getter_method": null, "containing_data_type_ref": "team.LegalHoldStatus", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldStatus.released": {"fq_name": "team.LegalHoldStatus.released", "param_name": "releasedValue", "static_instance": "RELEASED", "getter_method": null, "containing_data_type_ref": "team.LegalHoldStatus", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldStatus.activating": {"fq_name": "team.LegalHoldStatus.activating", "param_name": "activatingValue", "static_instance": "ACTIVATING", "getter_method": null, "containing_data_type_ref": "team.LegalHoldStatus", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldStatus.updating": {"fq_name": "team.LegalHoldStatus.updating", "param_name": "updatingValue", "static_instance": "UPDATING", "getter_method": null, "containing_data_type_ref": "team.LegalHoldStatus", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldStatus.exporting": {"fq_name": "team.LegalHoldStatus.exporting", "param_name": "exportingValue", "static_instance": "EXPORTING", "getter_method": null, "containing_data_type_ref": "team.LegalHoldStatus", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldStatus.releasing": {"fq_name": "team.LegalHoldStatus.releasing", "param_name": "releasingValue", "static_instance": "RELEASING", "getter_method": null, "containing_data_type_ref": "team.LegalHoldStatus", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldStatus.other": {"fq_name": "team.LegalHoldStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldStatus", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsError.insufficient_permissions": {"fq_name": "team.LegalHoldsError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsError.other": {"fq_name": "team.LegalHoldsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsGetPolicyArg.id": {"fq_name": "team.LegalHoldsGetPolicyArg.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "team.LegalHoldsGetPolicyArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsGetPolicyError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsGetPolicyError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsGetPolicyError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsGetPolicyError.insufficient_permissions": {"fq_name": "team.LegalHoldsGetPolicyError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsGetPolicyError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsGetPolicyError.other": {"fq_name": "team.LegalHoldsGetPolicyError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsGetPolicyError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsGetPolicyError.legal_hold_policy_not_found": {"fq_name": "team.LegalHoldsGetPolicyError.legal_hold_policy_not_found", "param_name": "legalHoldPolicyNotFoundValue", "static_instance": "LEGAL_HOLD_POLICY_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsGetPolicyError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionResult.entries": {"fq_name": "team.LegalHoldsListHeldRevisionResult.entries", "param_name": "entries", "static_instance": null, "getter_method": "getEntries", "containing_data_type_ref": "team.LegalHoldsListHeldRevisionResult", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionResult.has_more": {"fq_name": "team.LegalHoldsListHeldRevisionResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.LegalHoldsListHeldRevisionResult", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionResult.cursor": {"fq_name": "team.LegalHoldsListHeldRevisionResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.LegalHoldsListHeldRevisionResult", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsArg.id": {"fq_name": "team.LegalHoldsListHeldRevisionsArg.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsContinueArg.id": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueArg.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsContinueArg", "route_refs": ["team.legal_holds/list_held_revisions_continue"], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsContinueArg.cursor": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsContinueArg", "route_refs": ["team.legal_holds/list_held_revisions_continue"], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsContinueError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsContinueError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsContinueError.transient_error": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueError.transient_error", "param_name": "transientErrorValue", "static_instance": "TRANSIENT_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsContinueError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsContinueError.reset": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsContinueError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsContinueError.other": {"fq_name": "team.LegalHoldsListHeldRevisionsContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsContinueError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsListHeldRevisionsError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsError.insufficient_permissions": {"fq_name": "team.LegalHoldsListHeldRevisionsError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsError.other": {"fq_name": "team.LegalHoldsListHeldRevisionsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsError.transient_error": {"fq_name": "team.LegalHoldsListHeldRevisionsError.transient_error", "param_name": "transientErrorValue", "static_instance": "TRANSIENT_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsError.legal_hold_still_empty": {"fq_name": "team.LegalHoldsListHeldRevisionsError.legal_hold_still_empty", "param_name": "legalHoldStillEmptyValue", "static_instance": "LEGAL_HOLD_STILL_EMPTY", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListHeldRevisionsError.inactive_legal_hold": {"fq_name": "team.LegalHoldsListHeldRevisionsError.inactive_legal_hold", "param_name": "inactiveLegalHoldValue", "static_instance": "INACTIVE_LEGAL_HOLD", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListHeldRevisionsError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListPoliciesArg.include_released": {"fq_name": "team.LegalHoldsListPoliciesArg.include_released", "param_name": "includeReleased", "static_instance": null, "getter_method": "getIncludeReleased", "containing_data_type_ref": "team.LegalHoldsListPoliciesArg", "route_refs": ["team.legal_holds/list_policies"], "_type": "FieldReference"}, "team.LegalHoldsListPoliciesError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsListPoliciesError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListPoliciesError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListPoliciesError.insufficient_permissions": {"fq_name": "team.LegalHoldsListPoliciesError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListPoliciesError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListPoliciesError.other": {"fq_name": "team.LegalHoldsListPoliciesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListPoliciesError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListPoliciesError.transient_error": {"fq_name": "team.LegalHoldsListPoliciesError.transient_error", "param_name": "transientErrorValue", "static_instance": "TRANSIENT_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsListPoliciesError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsListPoliciesResult.policies": {"fq_name": "team.LegalHoldsListPoliciesResult.policies", "param_name": "policies", "static_instance": null, "getter_method": "getPolicies", "containing_data_type_ref": "team.LegalHoldsListPoliciesResult", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateArg.name": {"fq_name": "team.LegalHoldsPolicyCreateArg.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.LegalHoldsPolicyCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateArg.members": {"fq_name": "team.LegalHoldsPolicyCreateArg.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.LegalHoldsPolicyCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateArg.description": {"fq_name": "team.LegalHoldsPolicyCreateArg.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team.LegalHoldsPolicyCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateArg.start_date": {"fq_name": "team.LegalHoldsPolicyCreateArg.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team.LegalHoldsPolicyCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateArg.end_date": {"fq_name": "team.LegalHoldsPolicyCreateArg.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team.LegalHoldsPolicyCreateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsPolicyCreateError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.insufficient_permissions": {"fq_name": "team.LegalHoldsPolicyCreateError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.other": {"fq_name": "team.LegalHoldsPolicyCreateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.start_date_is_later_than_end_date": {"fq_name": "team.LegalHoldsPolicyCreateError.start_date_is_later_than_end_date", "param_name": "startDateIsLaterThanEndDateValue", "static_instance": "START_DATE_IS_LATER_THAN_END_DATE", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.empty_members_list": {"fq_name": "team.LegalHoldsPolicyCreateError.empty_members_list", "param_name": "emptyMembersListValue", "static_instance": "EMPTY_MEMBERS_LIST", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.invalid_members": {"fq_name": "team.LegalHoldsPolicyCreateError.invalid_members", "param_name": "invalidMembersValue", "static_instance": "INVALID_MEMBERS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.number_of_users_on_hold_is_greater_than_hold_limitation": {"fq_name": "team.LegalHoldsPolicyCreateError.number_of_users_on_hold_is_greater_than_hold_limitation", "param_name": "numberOfUsersOnHoldIsGreaterThanHoldLimitationValue", "static_instance": "NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.transient_error": {"fq_name": "team.LegalHoldsPolicyCreateError.transient_error", "param_name": "transientErrorValue", "static_instance": "TRANSIENT_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.name_must_be_unique": {"fq_name": "team.LegalHoldsPolicyCreateError.name_must_be_unique", "param_name": "nameMustBeUniqueValue", "static_instance": "NAME_MUST_BE_UNIQUE", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.team_exceeded_legal_hold_quota": {"fq_name": "team.LegalHoldsPolicyCreateError.team_exceeded_legal_hold_quota", "param_name": "teamExceededLegalHoldQuotaValue", "static_instance": "TEAM_EXCEEDED_LEGAL_HOLD_QUOTA", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyCreateError.invalid_date": {"fq_name": "team.LegalHoldsPolicyCreateError.invalid_date", "param_name": "invalidDateValue", "static_instance": "INVALID_DATE", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyCreateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyReleaseArg.id": {"fq_name": "team.LegalHoldsPolicyReleaseArg.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "team.LegalHoldsPolicyReleaseArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyReleaseError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsPolicyReleaseError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyReleaseError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyReleaseError.insufficient_permissions": {"fq_name": "team.LegalHoldsPolicyReleaseError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyReleaseError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyReleaseError.other": {"fq_name": "team.LegalHoldsPolicyReleaseError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyReleaseError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyReleaseError.legal_hold_performing_another_operation": {"fq_name": "team.LegalHoldsPolicyReleaseError.legal_hold_performing_another_operation", "param_name": "legalHoldPerformingAnotherOperationValue", "static_instance": "LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyReleaseError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyReleaseError.legal_hold_already_releasing": {"fq_name": "team.LegalHoldsPolicyReleaseError.legal_hold_already_releasing", "param_name": "legalHoldAlreadyReleasingValue", "static_instance": "LEGAL_HOLD_ALREADY_RELEASING", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyReleaseError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyReleaseError.legal_hold_policy_not_found": {"fq_name": "team.LegalHoldsPolicyReleaseError.legal_hold_policy_not_found", "param_name": "legalHoldPolicyNotFoundValue", "static_instance": "LEGAL_HOLD_POLICY_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyReleaseError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateArg.id": {"fq_name": "team.LegalHoldsPolicyUpdateArg.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "team.LegalHoldsPolicyUpdateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateArg.name": {"fq_name": "team.LegalHoldsPolicyUpdateArg.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.LegalHoldsPolicyUpdateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateArg.description": {"fq_name": "team.LegalHoldsPolicyUpdateArg.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team.LegalHoldsPolicyUpdateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateArg.members": {"fq_name": "team.LegalHoldsPolicyUpdateArg.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.LegalHoldsPolicyUpdateArg", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.unknown_legal_hold_error": {"fq_name": "team.LegalHoldsPolicyUpdateError.unknown_legal_hold_error", "param_name": "unknownLegalHoldErrorValue", "static_instance": "UNKNOWN_LEGAL_HOLD_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.insufficient_permissions": {"fq_name": "team.LegalHoldsPolicyUpdateError.insufficient_permissions", "param_name": "insufficientPermissionsValue", "static_instance": "INSUFFICIENT_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.other": {"fq_name": "team.LegalHoldsPolicyUpdateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.transient_error": {"fq_name": "team.LegalHoldsPolicyUpdateError.transient_error", "param_name": "transientErrorValue", "static_instance": "TRANSIENT_ERROR", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.inactive_legal_hold": {"fq_name": "team.LegalHoldsPolicyUpdateError.inactive_legal_hold", "param_name": "inactiveLegalHoldValue", "static_instance": "INACTIVE_LEGAL_HOLD", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.legal_hold_performing_another_operation": {"fq_name": "team.LegalHoldsPolicyUpdateError.legal_hold_performing_another_operation", "param_name": "legalHoldPerformingAnotherOperationValue", "static_instance": "LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.invalid_members": {"fq_name": "team.LegalHoldsPolicyUpdateError.invalid_members", "param_name": "invalidMembersValue", "static_instance": "INVALID_MEMBERS", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.number_of_users_on_hold_is_greater_than_hold_limitation": {"fq_name": "team.LegalHoldsPolicyUpdateError.number_of_users_on_hold_is_greater_than_hold_limitation", "param_name": "numberOfUsersOnHoldIsGreaterThanHoldLimitationValue", "static_instance": "NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.empty_members_list": {"fq_name": "team.LegalHoldsPolicyUpdateError.empty_members_list", "param_name": "emptyMembersListValue", "static_instance": "EMPTY_MEMBERS_LIST", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.name_must_be_unique": {"fq_name": "team.LegalHoldsPolicyUpdateError.name_must_be_unique", "param_name": "nameMustBeUniqueValue", "static_instance": "NAME_MUST_BE_UNIQUE", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.LegalHoldsPolicyUpdateError.legal_hold_policy_not_found": {"fq_name": "team.LegalHoldsPolicyUpdateError.legal_hold_policy_not_found", "param_name": "legalHoldPolicyNotFoundValue", "static_instance": "LEGAL_HOLD_POLICY_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.LegalHoldsPolicyUpdateError", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberAppsArg.team_member_id": {"fq_name": "team.ListMemberAppsArg.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.ListMemberAppsArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberAppsError.member_not_found": {"fq_name": "team.ListMemberAppsError.member_not_found", "param_name": "memberNotFoundValue", "static_instance": "MEMBER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.ListMemberAppsError", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberAppsError.other": {"fq_name": "team.ListMemberAppsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ListMemberAppsError", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberAppsResult.linked_api_apps": {"fq_name": "team.ListMemberAppsResult.linked_api_apps", "param_name": "linkedApiApps", "static_instance": null, "getter_method": "getLinkedApiApps", "containing_data_type_ref": "team.ListMemberAppsResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesArg.team_member_id": {"fq_name": "team.ListMemberDevicesArg.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.ListMemberDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesArg.include_web_sessions": {"fq_name": "team.ListMemberDevicesArg.include_web_sessions", "param_name": "includeWebSessions", "static_instance": null, "getter_method": "getIncludeWebSessions", "containing_data_type_ref": "team.ListMemberDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesArg.include_desktop_clients": {"fq_name": "team.ListMemberDevicesArg.include_desktop_clients", "param_name": "includeDesktopClients", "static_instance": null, "getter_method": "getIncludeDesktopClients", "containing_data_type_ref": "team.ListMemberDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesArg.include_mobile_clients": {"fq_name": "team.ListMemberDevicesArg.include_mobile_clients", "param_name": "includeMobileClients", "static_instance": null, "getter_method": "getIncludeMobileClients", "containing_data_type_ref": "team.ListMemberDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesError.member_not_found": {"fq_name": "team.ListMemberDevicesError.member_not_found", "param_name": "memberNotFoundValue", "static_instance": "MEMBER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.ListMemberDevicesError", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesError.other": {"fq_name": "team.ListMemberDevicesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ListMemberDevicesError", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesResult.active_web_sessions": {"fq_name": "team.ListMemberDevicesResult.active_web_sessions", "param_name": "activeWebSessions", "static_instance": null, "getter_method": "getActiveWebSessions", "containing_data_type_ref": "team.ListMemberDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesResult.desktop_client_sessions": {"fq_name": "team.ListMemberDevicesResult.desktop_client_sessions", "param_name": "desktopClientSessions", "static_instance": null, "getter_method": "getDesktopClientSessions", "containing_data_type_ref": "team.ListMemberDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMemberDevicesResult.mobile_client_sessions": {"fq_name": "team.ListMemberDevicesResult.mobile_client_sessions", "param_name": "mobileClientSessions", "static_instance": null, "getter_method": "getMobileClientSessions", "containing_data_type_ref": "team.ListMemberDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersAppsArg.cursor": {"fq_name": "team.ListMembersAppsArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListMembersAppsArg", "route_refs": ["team.linked_apps/list_members_linked_apps"], "_type": "FieldReference"}, "team.ListMembersAppsError.reset": {"fq_name": "team.ListMembersAppsError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "team.ListMembersAppsError", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersAppsError.other": {"fq_name": "team.ListMembersAppsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ListMembersAppsError", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersAppsResult.apps": {"fq_name": "team.ListMembersAppsResult.apps", "param_name": "apps", "static_instance": null, "getter_method": "getApps", "containing_data_type_ref": "team.ListMembersAppsResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersAppsResult.has_more": {"fq_name": "team.ListMembersAppsResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.ListMembersAppsResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersAppsResult.cursor": {"fq_name": "team.ListMembersAppsResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListMembersAppsResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesArg.cursor": {"fq_name": "team.ListMembersDevicesArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListMembersDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesArg.include_web_sessions": {"fq_name": "team.ListMembersDevicesArg.include_web_sessions", "param_name": "includeWebSessions", "static_instance": null, "getter_method": "getIncludeWebSessions", "containing_data_type_ref": "team.ListMembersDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesArg.include_desktop_clients": {"fq_name": "team.ListMembersDevicesArg.include_desktop_clients", "param_name": "includeDesktopClients", "static_instance": null, "getter_method": "getIncludeDesktopClients", "containing_data_type_ref": "team.ListMembersDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesArg.include_mobile_clients": {"fq_name": "team.ListMembersDevicesArg.include_mobile_clients", "param_name": "includeMobileClients", "static_instance": null, "getter_method": "getIncludeMobileClients", "containing_data_type_ref": "team.ListMembersDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesError.reset": {"fq_name": "team.ListMembersDevicesError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "team.ListMembersDevicesError", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesError.other": {"fq_name": "team.ListMembersDevicesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ListMembersDevicesError", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesResult.devices": {"fq_name": "team.ListMembersDevicesResult.devices", "param_name": "devices", "static_instance": null, "getter_method": "getDevices", "containing_data_type_ref": "team.ListMembersDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesResult.has_more": {"fq_name": "team.ListMembersDevicesResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.ListMembersDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListMembersDevicesResult.cursor": {"fq_name": "team.ListMembersDevicesResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListMembersDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamAppsArg.cursor": {"fq_name": "team.ListTeamAppsArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListTeamAppsArg", "route_refs": ["team.linked_apps/list_team_linked_apps"], "_type": "FieldReference"}, "team.ListTeamAppsError.reset": {"fq_name": "team.ListTeamAppsError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "team.ListTeamAppsError", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamAppsError.other": {"fq_name": "team.ListTeamAppsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ListTeamAppsError", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamAppsResult.apps": {"fq_name": "team.ListTeamAppsResult.apps", "param_name": "apps", "static_instance": null, "getter_method": "getApps", "containing_data_type_ref": "team.ListTeamAppsResult", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamAppsResult.has_more": {"fq_name": "team.ListTeamAppsResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.ListTeamAppsResult", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamAppsResult.cursor": {"fq_name": "team.ListTeamAppsResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListTeamAppsResult", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesArg.cursor": {"fq_name": "team.ListTeamDevicesArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListTeamDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesArg.include_web_sessions": {"fq_name": "team.ListTeamDevicesArg.include_web_sessions", "param_name": "includeWebSessions", "static_instance": null, "getter_method": "getIncludeWebSessions", "containing_data_type_ref": "team.ListTeamDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesArg.include_desktop_clients": {"fq_name": "team.ListTeamDevicesArg.include_desktop_clients", "param_name": "includeDesktopClients", "static_instance": null, "getter_method": "getIncludeDesktopClients", "containing_data_type_ref": "team.ListTeamDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesArg.include_mobile_clients": {"fq_name": "team.ListTeamDevicesArg.include_mobile_clients", "param_name": "includeMobileClients", "static_instance": null, "getter_method": "getIncludeMobileClients", "containing_data_type_ref": "team.ListTeamDevicesArg", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesError.reset": {"fq_name": "team.ListTeamDevicesError.reset", "param_name": "resetValue", "static_instance": "RESET", "getter_method": null, "containing_data_type_ref": "team.ListTeamDevicesError", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesError.other": {"fq_name": "team.ListTeamDevicesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ListTeamDevicesError", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesResult.devices": {"fq_name": "team.ListTeamDevicesResult.devices", "param_name": "devices", "static_instance": null, "getter_method": "getDevices", "containing_data_type_ref": "team.ListTeamDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesResult.has_more": {"fq_name": "team.ListTeamDevicesResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.ListTeamDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.ListTeamDevicesResult.cursor": {"fq_name": "team.ListTeamDevicesResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.ListTeamDevicesResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAccess.user": {"fq_name": "team.MemberAccess.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MemberAccess", "route_refs": [], "_type": "FieldReference"}, "team.MemberAccess.access_type": {"fq_name": "team.MemberAccess.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "team.MemberAccess", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.member_email": {"fq_name": "team.MemberAddArg.member_email", "param_name": "memberEmail", "static_instance": null, "getter_method": "getMemberEmail", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.member_given_name": {"fq_name": "team.MemberAddArg.member_given_name", "param_name": "memberGivenName", "static_instance": null, "getter_method": "getMemberGivenName", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.member_surname": {"fq_name": "team.MemberAddArg.member_surname", "param_name": "memberSurname", "static_instance": null, "getter_method": "getMemberSurname", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.member_external_id": {"fq_name": "team.MemberAddArg.member_external_id", "param_name": "memberExternalId", "static_instance": null, "getter_method": "getMemberExternalId", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.member_persistent_id": {"fq_name": "team.MemberAddArg.member_persistent_id", "param_name": "memberPersistentId", "static_instance": null, "getter_method": "getMemberPersistentId", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.send_welcome_email": {"fq_name": "team.MemberAddArg.send_welcome_email", "param_name": "sendWelcomeEmail", "static_instance": null, "getter_method": "getSendWelcomeEmail", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.is_directory_restricted": {"fq_name": "team.MemberAddArg.is_directory_restricted", "param_name": "isDirectoryRestricted", "static_instance": null, "getter_method": "getIsDirectoryRestricted", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArg.role": {"fq_name": "team.MemberAddArg.role", "param_name": "role", "static_instance": null, "getter_method": "getRole", "containing_data_type_ref": "team.MemberAddArg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArgBase.member_email": {"fq_name": "team.MemberAddArgBase.member_email", "param_name": "memberEmail", "static_instance": null, "getter_method": "getMemberEmail", "containing_data_type_ref": "team.MemberAddArgBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArgBase.member_given_name": {"fq_name": "team.MemberAddArgBase.member_given_name", "param_name": "memberGivenName", "static_instance": null, "getter_method": "getMemberGivenName", "containing_data_type_ref": "team.MemberAddArgBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArgBase.member_surname": {"fq_name": "team.MemberAddArgBase.member_surname", "param_name": "memberSurname", "static_instance": null, "getter_method": "getMemberSurname", "containing_data_type_ref": "team.MemberAddArgBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArgBase.member_external_id": {"fq_name": "team.MemberAddArgBase.member_external_id", "param_name": "memberExternalId", "static_instance": null, "getter_method": "getMemberExternalId", "containing_data_type_ref": "team.MemberAddArgBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArgBase.member_persistent_id": {"fq_name": "team.MemberAddArgBase.member_persistent_id", "param_name": "memberPersistentId", "static_instance": null, "getter_method": "getMemberPersistentId", "containing_data_type_ref": "team.MemberAddArgBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArgBase.send_welcome_email": {"fq_name": "team.MemberAddArgBase.send_welcome_email", "param_name": "sendWelcomeEmail", "static_instance": null, "getter_method": "getSendWelcomeEmail", "containing_data_type_ref": "team.MemberAddArgBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddArgBase.is_directory_restricted": {"fq_name": "team.MemberAddArgBase.is_directory_restricted", "param_name": "isDirectoryRestricted", "static_instance": null, "getter_method": "getIsDirectoryRestricted", "containing_data_type_ref": "team.MemberAddArgBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.team_license_limit": {"fq_name": "team.MemberAddResult.team_license_limit", "param_name": "teamLicenseLimitValue", "static_instance": null, "getter_method": "getTeamLicenseLimitValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.free_team_member_limit_reached": {"fq_name": "team.MemberAddResult.free_team_member_limit_reached", "param_name": "freeTeamMemberLimitReachedValue", "static_instance": null, "getter_method": "getFreeTeamMemberLimitReachedValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.user_already_on_team": {"fq_name": "team.MemberAddResult.user_already_on_team", "param_name": "userAlreadyOnTeamValue", "static_instance": null, "getter_method": "getUserAlreadyOnTeamValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.user_on_another_team": {"fq_name": "team.MemberAddResult.user_on_another_team", "param_name": "userOnAnotherTeamValue", "static_instance": null, "getter_method": "getUserOnAnotherTeamValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.user_already_paired": {"fq_name": "team.MemberAddResult.user_already_paired", "param_name": "userAlreadyPairedValue", "static_instance": null, "getter_method": "getUserAlreadyPairedValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.user_migration_failed": {"fq_name": "team.MemberAddResult.user_migration_failed", "param_name": "userMigrationFailedValue", "static_instance": null, "getter_method": "getUserMigrationFailedValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.duplicate_external_member_id": {"fq_name": "team.MemberAddResult.duplicate_external_member_id", "param_name": "duplicateExternalMemberIdValue", "static_instance": null, "getter_method": "getDuplicateExternalMemberIdValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.duplicate_member_persistent_id": {"fq_name": "team.MemberAddResult.duplicate_member_persistent_id", "param_name": "duplicateMemberPersistentIdValue", "static_instance": null, "getter_method": "getDuplicateMemberPersistentIdValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.persistent_id_disabled": {"fq_name": "team.MemberAddResult.persistent_id_disabled", "param_name": "persistentIdDisabledValue", "static_instance": null, "getter_method": "getPersistentIdDisabledValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.user_creation_failed": {"fq_name": "team.MemberAddResult.user_creation_failed", "param_name": "userCreationFailedValue", "static_instance": null, "getter_method": "getUserCreationFailedValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResult.success": {"fq_name": "team.MemberAddResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.MemberAddResult", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.team_license_limit": {"fq_name": "team.MemberAddResultBase.team_license_limit", "param_name": "teamLicenseLimitValue", "static_instance": null, "getter_method": "getTeamLicenseLimitValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.free_team_member_limit_reached": {"fq_name": "team.MemberAddResultBase.free_team_member_limit_reached", "param_name": "freeTeamMemberLimitReachedValue", "static_instance": null, "getter_method": "getFreeTeamMemberLimitReachedValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.user_already_on_team": {"fq_name": "team.MemberAddResultBase.user_already_on_team", "param_name": "userAlreadyOnTeamValue", "static_instance": null, "getter_method": "getUserAlreadyOnTeamValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.user_on_another_team": {"fq_name": "team.MemberAddResultBase.user_on_another_team", "param_name": "userOnAnotherTeamValue", "static_instance": null, "getter_method": "getUserOnAnotherTeamValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.user_already_paired": {"fq_name": "team.MemberAddResultBase.user_already_paired", "param_name": "userAlreadyPairedValue", "static_instance": null, "getter_method": "getUserAlreadyPairedValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.user_migration_failed": {"fq_name": "team.MemberAddResultBase.user_migration_failed", "param_name": "userMigrationFailedValue", "static_instance": null, "getter_method": "getUserMigrationFailedValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.duplicate_external_member_id": {"fq_name": "team.MemberAddResultBase.duplicate_external_member_id", "param_name": "duplicateExternalMemberIdValue", "static_instance": null, "getter_method": "getDuplicateExternalMemberIdValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.duplicate_member_persistent_id": {"fq_name": "team.MemberAddResultBase.duplicate_member_persistent_id", "param_name": "duplicateMemberPersistentIdValue", "static_instance": null, "getter_method": "getDuplicateMemberPersistentIdValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.persistent_id_disabled": {"fq_name": "team.MemberAddResultBase.persistent_id_disabled", "param_name": "persistentIdDisabledValue", "static_instance": null, "getter_method": "getPersistentIdDisabledValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddResultBase.user_creation_failed": {"fq_name": "team.MemberAddResultBase.user_creation_failed", "param_name": "userCreationFailedValue", "static_instance": null, "getter_method": "getUserCreationFailedValue", "containing_data_type_ref": "team.MemberAddResultBase", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.member_email": {"fq_name": "team.MemberAddV2Arg.member_email", "param_name": "memberEmail", "static_instance": null, "getter_method": "getMemberEmail", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.member_given_name": {"fq_name": "team.MemberAddV2Arg.member_given_name", "param_name": "memberGivenName", "static_instance": null, "getter_method": "getMemberGivenName", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.member_surname": {"fq_name": "team.MemberAddV2Arg.member_surname", "param_name": "memberSurname", "static_instance": null, "getter_method": "getMemberSurname", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.member_external_id": {"fq_name": "team.MemberAddV2Arg.member_external_id", "param_name": "memberExternalId", "static_instance": null, "getter_method": "getMemberExternalId", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.member_persistent_id": {"fq_name": "team.MemberAddV2Arg.member_persistent_id", "param_name": "memberPersistentId", "static_instance": null, "getter_method": "getMemberPersistentId", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.send_welcome_email": {"fq_name": "team.MemberAddV2Arg.send_welcome_email", "param_name": "sendWelcomeEmail", "static_instance": null, "getter_method": "getSendWelcomeEmail", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.is_directory_restricted": {"fq_name": "team.MemberAddV2Arg.is_directory_restricted", "param_name": "isDirectoryRestricted", "static_instance": null, "getter_method": "getIsDirectoryRestricted", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Arg.role_ids": {"fq_name": "team.MemberAddV2Arg.role_ids", "param_name": "roleIds", "static_instance": null, "getter_method": "getRoleIds", "containing_data_type_ref": "team.MemberAddV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.team_license_limit": {"fq_name": "team.MemberAddV2Result.team_license_limit", "param_name": "teamLicenseLimitValue", "static_instance": null, "getter_method": "getTeamLicenseLimitValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.free_team_member_limit_reached": {"fq_name": "team.MemberAddV2Result.free_team_member_limit_reached", "param_name": "freeTeamMemberLimitReachedValue", "static_instance": null, "getter_method": "getFreeTeamMemberLimitReachedValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.user_already_on_team": {"fq_name": "team.MemberAddV2Result.user_already_on_team", "param_name": "userAlreadyOnTeamValue", "static_instance": null, "getter_method": "getUserAlreadyOnTeamValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.user_on_another_team": {"fq_name": "team.MemberAddV2Result.user_on_another_team", "param_name": "userOnAnotherTeamValue", "static_instance": null, "getter_method": "getUserOnAnotherTeamValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.user_already_paired": {"fq_name": "team.MemberAddV2Result.user_already_paired", "param_name": "userAlreadyPairedValue", "static_instance": null, "getter_method": "getUserAlreadyPairedValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.user_migration_failed": {"fq_name": "team.MemberAddV2Result.user_migration_failed", "param_name": "userMigrationFailedValue", "static_instance": null, "getter_method": "getUserMigrationFailedValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.duplicate_external_member_id": {"fq_name": "team.MemberAddV2Result.duplicate_external_member_id", "param_name": "duplicateExternalMemberIdValue", "static_instance": null, "getter_method": "getDuplicateExternalMemberIdValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.duplicate_member_persistent_id": {"fq_name": "team.MemberAddV2Result.duplicate_member_persistent_id", "param_name": "duplicateMemberPersistentIdValue", "static_instance": null, "getter_method": "getDuplicateMemberPersistentIdValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.persistent_id_disabled": {"fq_name": "team.MemberAddV2Result.persistent_id_disabled", "param_name": "persistentIdDisabledValue", "static_instance": null, "getter_method": "getPersistentIdDisabledValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.user_creation_failed": {"fq_name": "team.MemberAddV2Result.user_creation_failed", "param_name": "userCreationFailedValue", "static_instance": null, "getter_method": "getUserCreationFailedValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.success": {"fq_name": "team.MemberAddV2Result.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberAddV2Result.other": {"fq_name": "team.MemberAddV2Result.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MemberAddV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MemberDevices.team_member_id": {"fq_name": "team.MemberDevices.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.MemberDevices", "route_refs": [], "_type": "FieldReference"}, "team.MemberDevices.web_sessions": {"fq_name": "team.MemberDevices.web_sessions", "param_name": "webSessions", "static_instance": null, "getter_method": "getWebSessions", "containing_data_type_ref": "team.MemberDevices", "route_refs": [], "_type": "FieldReference"}, "team.MemberDevices.desktop_clients": {"fq_name": "team.MemberDevices.desktop_clients", "param_name": "desktopClients", "static_instance": null, "getter_method": "getDesktopClients", "containing_data_type_ref": "team.MemberDevices", "route_refs": [], "_type": "FieldReference"}, "team.MemberDevices.mobile_clients": {"fq_name": "team.MemberDevices.mobile_clients", "param_name": "mobileClients", "static_instance": null, "getter_method": "getMobileClients", "containing_data_type_ref": "team.MemberDevices", "route_refs": [], "_type": "FieldReference"}, "team.MemberLinkedApps.team_member_id": {"fq_name": "team.MemberLinkedApps.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.MemberLinkedApps", "route_refs": [], "_type": "FieldReference"}, "team.MemberLinkedApps.linked_api_apps": {"fq_name": "team.MemberLinkedApps.linked_api_apps", "param_name": "linkedApiApps", "static_instance": null, "getter_method": "getLinkedApiApps", "containing_data_type_ref": "team.MemberLinkedApps", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.team_member_id": {"fq_name": "team.MemberProfile.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.email": {"fq_name": "team.MemberProfile.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.email_verified": {"fq_name": "team.MemberProfile.email_verified", "param_name": "emailVerified", "static_instance": null, "getter_method": "getEmailVerified", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.status": {"fq_name": "team.MemberProfile.status", "param_name": "status", "static_instance": null, "getter_method": "getStatus", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.name": {"fq_name": "team.MemberProfile.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.membership_type": {"fq_name": "team.MemberProfile.membership_type", "param_name": "membershipType", "static_instance": null, "getter_method": "getMembershipType", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.external_id": {"fq_name": "team.MemberProfile.external_id", "param_name": "externalId", "static_instance": null, "getter_method": "getExternalId", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.account_id": {"fq_name": "team.MemberProfile.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.secondary_emails": {"fq_name": "team.MemberProfile.secondary_emails", "param_name": "secondaryEmails", "static_instance": null, "getter_method": "getSecondaryEmails", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.invited_on": {"fq_name": "team.MemberProfile.invited_on", "param_name": "invitedOn", "static_instance": null, "getter_method": "getInvitedOn", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.joined_on": {"fq_name": "team.MemberProfile.joined_on", "param_name": "joinedOn", "static_instance": null, "getter_method": "getJoinedOn", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.suspended_on": {"fq_name": "team.MemberProfile.suspended_on", "param_name": "suspendedOn", "static_instance": null, "getter_method": "getSuspendedOn", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.persistent_id": {"fq_name": "team.MemberProfile.persistent_id", "param_name": "persistentId", "static_instance": null, "getter_method": "getPersistentId", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.is_directory_restricted": {"fq_name": "team.MemberProfile.is_directory_restricted", "param_name": "isDirectoryRestricted", "static_instance": null, "getter_method": "getIsDirectoryRestricted", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberProfile.profile_photo_url": {"fq_name": "team.MemberProfile.profile_photo_url", "param_name": "profilePhotoUrl", "static_instance": null, "getter_method": "getProfilePhotoUrl", "containing_data_type_ref": "team.MemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.MemberSelectorError.user_not_found": {"fq_name": "team.MemberSelectorError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.MemberSelectorError.user_not_in_team": {"fq_name": "team.MemberSelectorError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MemberSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddArg.new_members": {"fq_name": "team.MembersAddArg.new_members", "param_name": "newMembers", "static_instance": null, "getter_method": "getNewMembers", "containing_data_type_ref": "team.MembersAddArg", "route_refs": ["team.members/add"], "_type": "FieldReference"}, "team.MembersAddArg.force_async": {"fq_name": "team.MembersAddArg.force_async", "param_name": "forceAsync", "static_instance": null, "getter_method": "getForceAsync", "containing_data_type_ref": "team.MembersAddArg", "route_refs": ["team.members/add", "team.members/add_v2"], "_type": "FieldReference"}, "team.MembersAddArgBase.force_async": {"fq_name": "team.MembersAddArgBase.force_async", "param_name": "forceAsync", "static_instance": null, "getter_method": "getForceAsync", "containing_data_type_ref": "team.MembersAddArgBase", "route_refs": ["team.members/add", "team.members/add_v2"], "_type": "FieldReference"}, "team.MembersAddJobStatus.in_progress": {"fq_name": "team.MembersAddJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "team.MembersAddJobStatus", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddJobStatus.complete": {"fq_name": "team.MembersAddJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "team.MembersAddJobStatus", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddJobStatus.failed": {"fq_name": "team.MembersAddJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "team.MembersAddJobStatus", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddJobStatusV2Result.in_progress": {"fq_name": "team.MembersAddJobStatusV2Result.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "team.MembersAddJobStatusV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddJobStatusV2Result.complete": {"fq_name": "team.MembersAddJobStatusV2Result.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "team.MembersAddJobStatusV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddJobStatusV2Result.failed": {"fq_name": "team.MembersAddJobStatusV2Result.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "team.MembersAddJobStatusV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddJobStatusV2Result.other": {"fq_name": "team.MembersAddJobStatusV2Result.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersAddJobStatusV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddLaunch.async_job_id": {"fq_name": "team.MembersAddLaunch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "team.MembersAddLaunch", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddLaunch.complete": {"fq_name": "team.MembersAddLaunch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "team.MembersAddLaunch", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddLaunchV2Result.async_job_id": {"fq_name": "team.MembersAddLaunchV2Result.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "team.MembersAddLaunchV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddLaunchV2Result.complete": {"fq_name": "team.MembersAddLaunchV2Result.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "team.MembersAddLaunchV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddLaunchV2Result.other": {"fq_name": "team.MembersAddLaunchV2Result.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersAddLaunchV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersAddV2Arg.new_members": {"fq_name": "team.MembersAddV2Arg.new_members", "param_name": "newMembers", "static_instance": null, "getter_method": "getNewMembers", "containing_data_type_ref": "team.MembersAddV2Arg", "route_refs": ["team.members/add_v2"], "_type": "FieldReference"}, "team.MembersAddV2Arg.force_async": {"fq_name": "team.MembersAddV2Arg.force_async", "param_name": "forceAsync", "static_instance": null, "getter_method": "getForceAsync", "containing_data_type_ref": "team.MembersAddV2Arg", "route_refs": ["team.members/add", "team.members/add_v2"], "_type": "FieldReference"}, "team.MembersDataTransferArg.user": {"fq_name": "team.MembersDataTransferArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersDataTransferArg", "route_refs": ["team.members/suspend"], "_type": "FieldReference"}, "team.MembersDataTransferArg.transfer_dest_id": {"fq_name": "team.MembersDataTransferArg.transfer_dest_id", "param_name": "transferDestId", "static_instance": null, "getter_method": "getTransferDestId", "containing_data_type_ref": "team.MembersDataTransferArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersDataTransferArg.transfer_admin_id": {"fq_name": "team.MembersDataTransferArg.transfer_admin_id", "param_name": "transferAdminId", "static_instance": null, "getter_method": "getTransferAdminId", "containing_data_type_ref": "team.MembersDataTransferArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeactivateArg.user": {"fq_name": "team.MembersDeactivateArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersDeactivateArg", "route_refs": ["team.members/suspend"], "_type": "FieldReference"}, "team.MembersDeactivateArg.wipe_data": {"fq_name": "team.MembersDeactivateArg.wipe_data", "param_name": "wipeData", "static_instance": null, "getter_method": "getWipeData", "containing_data_type_ref": "team.MembersDeactivateArg", "route_refs": ["team.members/suspend"], "_type": "FieldReference"}, "team.MembersDeactivateBaseArg.user": {"fq_name": "team.MembersDeactivateBaseArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersDeactivateBaseArg", "route_refs": ["team.members/suspend"], "_type": "FieldReference"}, "team.MembersDeactivateError.user_not_found": {"fq_name": "team.MembersDeactivateError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersDeactivateError", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeactivateError.user_not_in_team": {"fq_name": "team.MembersDeactivateError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersDeactivateError", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeactivateError.other": {"fq_name": "team.MembersDeactivateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersDeactivateError", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeleteProfilePhotoArg.user": {"fq_name": "team.MembersDeleteProfilePhotoArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersDeleteProfilePhotoArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeleteProfilePhotoError.user_not_found": {"fq_name": "team.MembersDeleteProfilePhotoError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersDeleteProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeleteProfilePhotoError.user_not_in_team": {"fq_name": "team.MembersDeleteProfilePhotoError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersDeleteProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeleteProfilePhotoError.set_profile_disallowed": {"fq_name": "team.MembersDeleteProfilePhotoError.set_profile_disallowed", "param_name": "setProfileDisallowedValue", "static_instance": "SET_PROFILE_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.MembersDeleteProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersDeleteProfilePhotoError.other": {"fq_name": "team.MembersDeleteProfilePhotoError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersDeleteProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetAvailableTeamMemberRolesResult.roles": {"fq_name": "team.MembersGetAvailableTeamMemberRolesResult.roles", "param_name": "roles", "static_instance": null, "getter_method": "getRoles", "containing_data_type_ref": "team.MembersGetAvailableTeamMemberRolesResult", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoArgs.members": {"fq_name": "team.MembersGetInfoArgs.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.MembersGetInfoArgs", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoError.other": {"fq_name": "team.MembersGetInfoError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersGetInfoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoItem.id_not_found": {"fq_name": "team.MembersGetInfoItem.id_not_found", "param_name": "idNotFoundValue", "static_instance": null, "getter_method": "getIdNotFoundValue", "containing_data_type_ref": "team.MembersGetInfoItem", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoItem.member_info": {"fq_name": "team.MembersGetInfoItem.member_info", "param_name": "memberInfoValue", "static_instance": null, "getter_method": "getMemberInfoValue", "containing_data_type_ref": "team.MembersGetInfoItem", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoItemBase.id_not_found": {"fq_name": "team.MembersGetInfoItemBase.id_not_found", "param_name": "idNotFoundValue", "static_instance": null, "getter_method": "getIdNotFoundValue", "containing_data_type_ref": "team.MembersGetInfoItemBase", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoItemV2.id_not_found": {"fq_name": "team.MembersGetInfoItemV2.id_not_found", "param_name": "idNotFoundValue", "static_instance": null, "getter_method": "getIdNotFoundValue", "containing_data_type_ref": "team.MembersGetInfoItemV2", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoItemV2.member_info": {"fq_name": "team.MembersGetInfoItemV2.member_info", "param_name": "memberInfoValue", "static_instance": null, "getter_method": "getMemberInfoValue", "containing_data_type_ref": "team.MembersGetInfoItemV2", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoItemV2.other": {"fq_name": "team.MembersGetInfoItemV2.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersGetInfoItemV2", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoV2Arg.members": {"fq_name": "team.MembersGetInfoV2Arg.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.MembersGetInfoV2Arg", "route_refs": [], "_type": "FieldReference"}, "team.MembersGetInfoV2Result.members_info": {"fq_name": "team.MembersGetInfoV2Result.members_info", "param_name": "membersInfo", "static_instance": null, "getter_method": "getMembersInfo", "containing_data_type_ref": "team.MembersGetInfoV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersInfo.team_member_ids": {"fq_name": "team.MembersInfo.team_member_ids", "param_name": "teamMemberIds", "static_instance": null, "getter_method": "getTeamMemberIds", "containing_data_type_ref": "team.MembersInfo", "route_refs": [], "_type": "FieldReference"}, "team.MembersInfo.permanently_deleted_users": {"fq_name": "team.MembersInfo.permanently_deleted_users", "param_name": "permanentlyDeletedUsers", "static_instance": null, "getter_method": "getPermanentlyDeletedUsers", "containing_data_type_ref": "team.MembersInfo", "route_refs": [], "_type": "FieldReference"}, "team.MembersListArg.limit": {"fq_name": "team.MembersListArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team.MembersListArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersListArg.include_removed": {"fq_name": "team.MembersListArg.include_removed", "param_name": "includeRemoved", "static_instance": null, "getter_method": "getIncludeRemoved", "containing_data_type_ref": "team.MembersListArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersListContinueArg.cursor": {"fq_name": "team.MembersListContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.MembersListContinueArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersListContinueError.invalid_cursor": {"fq_name": "team.MembersListContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "team.MembersListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.MembersListContinueError.other": {"fq_name": "team.MembersListContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.MembersListError.other": {"fq_name": "team.MembersListError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersListError", "route_refs": [], "_type": "FieldReference"}, "team.MembersListResult.members": {"fq_name": "team.MembersListResult.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.MembersListResult", "route_refs": [], "_type": "FieldReference"}, "team.MembersListResult.cursor": {"fq_name": "team.MembersListResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.MembersListResult", "route_refs": [], "_type": "FieldReference"}, "team.MembersListResult.has_more": {"fq_name": "team.MembersListResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.MembersListResult", "route_refs": [], "_type": "FieldReference"}, "team.MembersListV2Result.members": {"fq_name": "team.MembersListV2Result.members", "param_name": "members", "static_instance": null, "getter_method": "getMembers", "containing_data_type_ref": "team.MembersListV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersListV2Result.cursor": {"fq_name": "team.MembersListV2Result.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.MembersListV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersListV2Result.has_more": {"fq_name": "team.MembersListV2Result.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.MembersListV2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersRecoverArg.user": {"fq_name": "team.MembersRecoverArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersRecoverArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersRecoverError.user_not_found": {"fq_name": "team.MembersRecoverError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersRecoverError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRecoverError.user_unrecoverable": {"fq_name": "team.MembersRecoverError.user_unrecoverable", "param_name": "userUnrecoverableValue", "static_instance": "USER_UNRECOVERABLE", "getter_method": null, "containing_data_type_ref": "team.MembersRecoverError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRecoverError.user_not_in_team": {"fq_name": "team.MembersRecoverError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersRecoverError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRecoverError.team_license_limit": {"fq_name": "team.MembersRecoverError.team_license_limit", "param_name": "teamLicenseLimitValue", "static_instance": "TEAM_LICENSE_LIMIT", "getter_method": null, "containing_data_type_ref": "team.MembersRecoverError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRecoverError.other": {"fq_name": "team.MembersRecoverError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersRecoverError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveArg.user": {"fq_name": "team.MembersRemoveArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersRemoveArg", "route_refs": ["team.members/suspend"], "_type": "FieldReference"}, "team.MembersRemoveArg.wipe_data": {"fq_name": "team.MembersRemoveArg.wipe_data", "param_name": "wipeData", "static_instance": null, "getter_method": "getWipeData", "containing_data_type_ref": "team.MembersRemoveArg", "route_refs": ["team.members/suspend"], "_type": "FieldReference"}, "team.MembersRemoveArg.transfer_dest_id": {"fq_name": "team.MembersRemoveArg.transfer_dest_id", "param_name": "transferDestId", "static_instance": null, "getter_method": "getTransferDestId", "containing_data_type_ref": "team.MembersRemoveArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveArg.transfer_admin_id": {"fq_name": "team.MembersRemoveArg.transfer_admin_id", "param_name": "transferAdminId", "static_instance": null, "getter_method": "getTransferAdminId", "containing_data_type_ref": "team.MembersRemoveArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveArg.keep_account": {"fq_name": "team.MembersRemoveArg.keep_account", "param_name": "keepAccount", "static_instance": null, "getter_method": "getKeepAccount", "containing_data_type_ref": "team.MembersRemoveArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveArg.retain_team_shares": {"fq_name": "team.MembersRemoveArg.retain_team_shares", "param_name": "retainTeamShares", "static_instance": null, "getter_method": "getRetainTeamShares", "containing_data_type_ref": "team.MembersRemoveArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.user_not_found": {"fq_name": "team.MembersRemoveError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.user_not_in_team": {"fq_name": "team.MembersRemoveError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.other": {"fq_name": "team.MembersRemoveError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.removed_and_transfer_dest_should_differ": {"fq_name": "team.MembersRemoveError.removed_and_transfer_dest_should_differ", "param_name": "removedAndTransferDestShouldDifferValue", "static_instance": "REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.removed_and_transfer_admin_should_differ": {"fq_name": "team.MembersRemoveError.removed_and_transfer_admin_should_differ", "param_name": "removedAndTransferAdminShouldDifferValue", "static_instance": "REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.transfer_dest_user_not_found": {"fq_name": "team.MembersRemoveError.transfer_dest_user_not_found", "param_name": "transferDestUserNotFoundValue", "static_instance": "TRANSFER_DEST_USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.transfer_dest_user_not_in_team": {"fq_name": "team.MembersRemoveError.transfer_dest_user_not_in_team", "param_name": "transferDestUserNotInTeamValue", "static_instance": "TRANSFER_DEST_USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.transfer_admin_user_not_in_team": {"fq_name": "team.MembersRemoveError.transfer_admin_user_not_in_team", "param_name": "transferAdminUserNotInTeamValue", "static_instance": "TRANSFER_ADMIN_USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.transfer_admin_user_not_found": {"fq_name": "team.MembersRemoveError.transfer_admin_user_not_found", "param_name": "transferAdminUserNotFoundValue", "static_instance": "TRANSFER_ADMIN_USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.unspecified_transfer_admin_id": {"fq_name": "team.MembersRemoveError.unspecified_transfer_admin_id", "param_name": "unspecifiedTransferAdminIdValue", "static_instance": "UNSPECIFIED_TRANSFER_ADMIN_ID", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.transfer_admin_is_not_admin": {"fq_name": "team.MembersRemoveError.transfer_admin_is_not_admin", "param_name": "transferAdminIsNotAdminValue", "static_instance": "TRANSFER_ADMIN_IS_NOT_ADMIN", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.recipient_not_verified": {"fq_name": "team.MembersRemoveError.recipient_not_verified", "param_name": "recipientNotVerifiedValue", "static_instance": "RECIPIENT_NOT_VERIFIED", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.remove_last_admin": {"fq_name": "team.MembersRemoveError.remove_last_admin", "param_name": "removeLastAdminValue", "static_instance": "REMOVE_LAST_ADMIN", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_keep_account_and_transfer": {"fq_name": "team.MembersRemoveError.cannot_keep_account_and_transfer", "param_name": "cannotKeepAccountAndTransferValue", "static_instance": "CANNOT_KEEP_ACCOUNT_AND_TRANSFER", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_keep_account_and_delete_data": {"fq_name": "team.MembersRemoveError.cannot_keep_account_and_delete_data", "param_name": "cannotKeepAccountAndDeleteDataValue", "static_instance": "CANNOT_KEEP_ACCOUNT_AND_DELETE_DATA", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.email_address_too_long_to_be_disabled": {"fq_name": "team.MembersRemoveError.email_address_too_long_to_be_disabled", "param_name": "emailAddressTooLongToBeDisabledValue", "static_instance": "EMAIL_ADDRESS_TOO_LONG_TO_BE_DISABLED", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_keep_invited_user_account": {"fq_name": "team.MembersRemoveError.cannot_keep_invited_user_account", "param_name": "cannotKeepInvitedUserAccountValue", "static_instance": "CANNOT_KEEP_INVITED_USER_ACCOUNT", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_retain_shares_when_data_wiped": {"fq_name": "team.MembersRemoveError.cannot_retain_shares_when_data_wiped", "param_name": "cannotRetainSharesWhenDataWipedValue", "static_instance": "CANNOT_RETAIN_SHARES_WHEN_DATA_WIPED", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_retain_shares_when_no_account_kept": {"fq_name": "team.MembersRemoveError.cannot_retain_shares_when_no_account_kept", "param_name": "cannotRetainSharesWhenNoAccountKeptValue", "static_instance": "CANNOT_RETAIN_SHARES_WHEN_NO_ACCOUNT_KEPT", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_retain_shares_when_team_external_sharing_off": {"fq_name": "team.MembersRemoveError.cannot_retain_shares_when_team_external_sharing_off", "param_name": "cannotRetainSharesWhenTeamExternalSharingOffValue", "static_instance": "CANNOT_RETAIN_SHARES_WHEN_TEAM_EXTERNAL_SHARING_OFF", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_keep_account": {"fq_name": "team.MembersRemoveError.cannot_keep_account", "param_name": "cannotKeepAccountValue", "static_instance": "CANNOT_KEEP_ACCOUNT", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_keep_account_under_legal_hold": {"fq_name": "team.MembersRemoveError.cannot_keep_account_under_legal_hold", "param_name": "cannotKeepAccountUnderLegalHoldValue", "static_instance": "CANNOT_KEEP_ACCOUNT_UNDER_LEGAL_HOLD", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersRemoveError.cannot_keep_account_required_to_sign_tos": {"fq_name": "team.MembersRemoveError.cannot_keep_account_required_to_sign_tos", "param_name": "cannotKeepAccountRequiredToSignTosValue", "static_instance": "CANNOT_KEEP_ACCOUNT_REQUIRED_TO_SIGN_TOS", "getter_method": null, "containing_data_type_ref": "team.MembersRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSendWelcomeError.user_not_found": {"fq_name": "team.MembersSendWelcomeError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersSendWelcomeError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSendWelcomeError.user_not_in_team": {"fq_name": "team.MembersSendWelcomeError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersSendWelcomeError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSendWelcomeError.other": {"fq_name": "team.MembersSendWelcomeError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersSendWelcomeError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Arg.user": {"fq_name": "team.MembersSetPermissions2Arg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersSetPermissions2Arg", "route_refs": ["team.members/set_admin_permissions_v2"], "_type": "FieldReference"}, "team.MembersSetPermissions2Arg.new_roles": {"fq_name": "team.MembersSetPermissions2Arg.new_roles", "param_name": "newRoles", "static_instance": null, "getter_method": "getNewRoles", "containing_data_type_ref": "team.MembersSetPermissions2Arg", "route_refs": ["team.members/set_admin_permissions_v2"], "_type": "FieldReference"}, "team.MembersSetPermissions2Error.user_not_found": {"fq_name": "team.MembersSetPermissions2Error.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissions2Error", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Error.last_admin": {"fq_name": "team.MembersSetPermissions2Error.last_admin", "param_name": "lastAdminValue", "static_instance": "LAST_ADMIN", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissions2Error", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Error.user_not_in_team": {"fq_name": "team.MembersSetPermissions2Error.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissions2Error", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Error.cannot_set_permissions": {"fq_name": "team.MembersSetPermissions2Error.cannot_set_permissions", "param_name": "cannotSetPermissionsValue", "static_instance": "CANNOT_SET_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissions2Error", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Error.role_not_found": {"fq_name": "team.MembersSetPermissions2Error.role_not_found", "param_name": "roleNotFoundValue", "static_instance": "ROLE_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissions2Error", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Error.other": {"fq_name": "team.MembersSetPermissions2Error.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissions2Error", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Result.team_member_id": {"fq_name": "team.MembersSetPermissions2Result.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.MembersSetPermissions2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissions2Result.roles": {"fq_name": "team.MembersSetPermissions2Result.roles", "param_name": "roles", "static_instance": null, "getter_method": "getRoles", "containing_data_type_ref": "team.MembersSetPermissions2Result", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsArg.user": {"fq_name": "team.MembersSetPermissionsArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersSetPermissionsArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsArg.new_role": {"fq_name": "team.MembersSetPermissionsArg.new_role", "param_name": "newRole", "static_instance": null, "getter_method": "getNewRole", "containing_data_type_ref": "team.MembersSetPermissionsArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsError.user_not_found": {"fq_name": "team.MembersSetPermissionsError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissionsError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsError.last_admin": {"fq_name": "team.MembersSetPermissionsError.last_admin", "param_name": "lastAdminValue", "static_instance": "LAST_ADMIN", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissionsError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsError.user_not_in_team": {"fq_name": "team.MembersSetPermissionsError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissionsError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsError.cannot_set_permissions": {"fq_name": "team.MembersSetPermissionsError.cannot_set_permissions", "param_name": "cannotSetPermissionsValue", "static_instance": "CANNOT_SET_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissionsError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsError.team_license_limit": {"fq_name": "team.MembersSetPermissionsError.team_license_limit", "param_name": "teamLicenseLimitValue", "static_instance": "TEAM_LICENSE_LIMIT", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissionsError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsError.other": {"fq_name": "team.MembersSetPermissionsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersSetPermissionsError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsResult.team_member_id": {"fq_name": "team.MembersSetPermissionsResult.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.MembersSetPermissionsResult", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetPermissionsResult.role": {"fq_name": "team.MembersSetPermissionsResult.role", "param_name": "role", "static_instance": null, "getter_method": "getRole", "containing_data_type_ref": "team.MembersSetPermissionsResult", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileArg.user": {"fq_name": "team.MembersSetProfileArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersSetProfileArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileArg.new_email": {"fq_name": "team.MembersSetProfileArg.new_email", "param_name": "newEmail", "static_instance": null, "getter_method": "getNewEmail", "containing_data_type_ref": "team.MembersSetProfileArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileArg.new_external_id": {"fq_name": "team.MembersSetProfileArg.new_external_id", "param_name": "newExternalId", "static_instance": null, "getter_method": "getNewExternalId", "containing_data_type_ref": "team.MembersSetProfileArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileArg.new_given_name": {"fq_name": "team.MembersSetProfileArg.new_given_name", "param_name": "newGivenName", "static_instance": null, "getter_method": "getNewGivenName", "containing_data_type_ref": "team.MembersSetProfileArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileArg.new_surname": {"fq_name": "team.MembersSetProfileArg.new_surname", "param_name": "newSurname", "static_instance": null, "getter_method": "getNewSurname", "containing_data_type_ref": "team.MembersSetProfileArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileArg.new_persistent_id": {"fq_name": "team.MembersSetProfileArg.new_persistent_id", "param_name": "newPersistentId", "static_instance": null, "getter_method": "getNewPersistentId", "containing_data_type_ref": "team.MembersSetProfileArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileArg.new_is_directory_restricted": {"fq_name": "team.MembersSetProfileArg.new_is_directory_restricted", "param_name": "newIsDirectoryRestricted", "static_instance": null, "getter_method": "getNewIsDirectoryRestricted", "containing_data_type_ref": "team.MembersSetProfileArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.user_not_found": {"fq_name": "team.MembersSetProfileError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.user_not_in_team": {"fq_name": "team.MembersSetProfileError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.external_id_and_new_external_id_unsafe": {"fq_name": "team.MembersSetProfileError.external_id_and_new_external_id_unsafe", "param_name": "externalIdAndNewExternalIdUnsafeValue", "static_instance": "EXTERNAL_ID_AND_NEW_EXTERNAL_ID_UNSAFE", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.no_new_data_specified": {"fq_name": "team.MembersSetProfileError.no_new_data_specified", "param_name": "noNewDataSpecifiedValue", "static_instance": "NO_NEW_DATA_SPECIFIED", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.email_reserved_for_other_user": {"fq_name": "team.MembersSetProfileError.email_reserved_for_other_user", "param_name": "emailReservedForOtherUserValue", "static_instance": "EMAIL_RESERVED_FOR_OTHER_USER", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.external_id_used_by_other_user": {"fq_name": "team.MembersSetProfileError.external_id_used_by_other_user", "param_name": "externalIdUsedByOtherUserValue", "static_instance": "EXTERNAL_ID_USED_BY_OTHER_USER", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.set_profile_disallowed": {"fq_name": "team.MembersSetProfileError.set_profile_disallowed", "param_name": "setProfileDisallowedValue", "static_instance": "SET_PROFILE_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.param_cannot_be_empty": {"fq_name": "team.MembersSetProfileError.param_cannot_be_empty", "param_name": "paramCannotBeEmptyValue", "static_instance": "PARAM_CANNOT_BE_EMPTY", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.persistent_id_disabled": {"fq_name": "team.MembersSetProfileError.persistent_id_disabled", "param_name": "persistentIdDisabledValue", "static_instance": "PERSISTENT_ID_DISABLED", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.persistent_id_used_by_other_user": {"fq_name": "team.MembersSetProfileError.persistent_id_used_by_other_user", "param_name": "persistentIdUsedByOtherUserValue", "static_instance": "PERSISTENT_ID_USED_BY_OTHER_USER", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.directory_restricted_off": {"fq_name": "team.MembersSetProfileError.directory_restricted_off", "param_name": "directoryRestrictedOffValue", "static_instance": "DIRECTORY_RESTRICTED_OFF", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfileError.other": {"fq_name": "team.MembersSetProfileError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfileError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfilePhotoArg.user": {"fq_name": "team.MembersSetProfilePhotoArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersSetProfilePhotoArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfilePhotoArg.photo": {"fq_name": "team.MembersSetProfilePhotoArg.photo", "param_name": "photo", "static_instance": null, "getter_method": "getPhoto", "containing_data_type_ref": "team.MembersSetProfilePhotoArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfilePhotoError.user_not_found": {"fq_name": "team.MembersSetProfilePhotoError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfilePhotoError.user_not_in_team": {"fq_name": "team.MembersSetProfilePhotoError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfilePhotoError.set_profile_disallowed": {"fq_name": "team.MembersSetProfilePhotoError.set_profile_disallowed", "param_name": "setProfileDisallowedValue", "static_instance": "SET_PROFILE_DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfilePhotoError.photo_error": {"fq_name": "team.MembersSetProfilePhotoError.photo_error", "param_name": "photoErrorValue", "static_instance": null, "getter_method": "getPhotoErrorValue", "containing_data_type_ref": "team.MembersSetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSetProfilePhotoError.other": {"fq_name": "team.MembersSetProfilePhotoError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersSetProfilePhotoError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSuspendError.user_not_found": {"fq_name": "team.MembersSuspendError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersSuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSuspendError.user_not_in_team": {"fq_name": "team.MembersSuspendError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersSuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSuspendError.other": {"fq_name": "team.MembersSuspendError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersSuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSuspendError.suspend_inactive_user": {"fq_name": "team.MembersSuspendError.suspend_inactive_user", "param_name": "suspendInactiveUserValue", "static_instance": "SUSPEND_INACTIVE_USER", "getter_method": null, "containing_data_type_ref": "team.MembersSuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSuspendError.suspend_last_admin": {"fq_name": "team.MembersSuspendError.suspend_last_admin", "param_name": "suspendLastAdminValue", "static_instance": "SUSPEND_LAST_ADMIN", "getter_method": null, "containing_data_type_ref": "team.MembersSuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersSuspendError.team_license_limit": {"fq_name": "team.MembersSuspendError.team_license_limit", "param_name": "teamLicenseLimitValue", "static_instance": "TEAM_LICENSE_LIMIT", "getter_method": null, "containing_data_type_ref": "team.MembersSuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.user_not_found": {"fq_name": "team.MembersTransferFilesError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.user_not_in_team": {"fq_name": "team.MembersTransferFilesError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.other": {"fq_name": "team.MembersTransferFilesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.removed_and_transfer_dest_should_differ": {"fq_name": "team.MembersTransferFilesError.removed_and_transfer_dest_should_differ", "param_name": "removedAndTransferDestShouldDifferValue", "static_instance": "REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.removed_and_transfer_admin_should_differ": {"fq_name": "team.MembersTransferFilesError.removed_and_transfer_admin_should_differ", "param_name": "removedAndTransferAdminShouldDifferValue", "static_instance": "REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.transfer_dest_user_not_found": {"fq_name": "team.MembersTransferFilesError.transfer_dest_user_not_found", "param_name": "transferDestUserNotFoundValue", "static_instance": "TRANSFER_DEST_USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.transfer_dest_user_not_in_team": {"fq_name": "team.MembersTransferFilesError.transfer_dest_user_not_in_team", "param_name": "transferDestUserNotInTeamValue", "static_instance": "TRANSFER_DEST_USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.transfer_admin_user_not_in_team": {"fq_name": "team.MembersTransferFilesError.transfer_admin_user_not_in_team", "param_name": "transferAdminUserNotInTeamValue", "static_instance": "TRANSFER_ADMIN_USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.transfer_admin_user_not_found": {"fq_name": "team.MembersTransferFilesError.transfer_admin_user_not_found", "param_name": "transferAdminUserNotFoundValue", "static_instance": "TRANSFER_ADMIN_USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.unspecified_transfer_admin_id": {"fq_name": "team.MembersTransferFilesError.unspecified_transfer_admin_id", "param_name": "unspecifiedTransferAdminIdValue", "static_instance": "UNSPECIFIED_TRANSFER_ADMIN_ID", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.transfer_admin_is_not_admin": {"fq_name": "team.MembersTransferFilesError.transfer_admin_is_not_admin", "param_name": "transferAdminIsNotAdminValue", "static_instance": "TRANSFER_ADMIN_IS_NOT_ADMIN", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFilesError.recipient_not_verified": {"fq_name": "team.MembersTransferFilesError.recipient_not_verified", "param_name": "recipientNotVerifiedValue", "static_instance": "RECIPIENT_NOT_VERIFIED", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.user_not_found": {"fq_name": "team.MembersTransferFormerMembersFilesError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.user_not_in_team": {"fq_name": "team.MembersTransferFormerMembersFilesError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.other": {"fq_name": "team.MembersTransferFormerMembersFilesError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.removed_and_transfer_dest_should_differ": {"fq_name": "team.MembersTransferFormerMembersFilesError.removed_and_transfer_dest_should_differ", "param_name": "removedAndTransferDestShouldDifferValue", "static_instance": "REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.removed_and_transfer_admin_should_differ": {"fq_name": "team.MembersTransferFormerMembersFilesError.removed_and_transfer_admin_should_differ", "param_name": "removedAndTransferAdminShouldDifferValue", "static_instance": "REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.transfer_dest_user_not_found": {"fq_name": "team.MembersTransferFormerMembersFilesError.transfer_dest_user_not_found", "param_name": "transferDestUserNotFoundValue", "static_instance": "TRANSFER_DEST_USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.transfer_dest_user_not_in_team": {"fq_name": "team.MembersTransferFormerMembersFilesError.transfer_dest_user_not_in_team", "param_name": "transferDestUserNotInTeamValue", "static_instance": "TRANSFER_DEST_USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.transfer_admin_user_not_in_team": {"fq_name": "team.MembersTransferFormerMembersFilesError.transfer_admin_user_not_in_team", "param_name": "transferAdminUserNotInTeamValue", "static_instance": "TRANSFER_ADMIN_USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.transfer_admin_user_not_found": {"fq_name": "team.MembersTransferFormerMembersFilesError.transfer_admin_user_not_found", "param_name": "transferAdminUserNotFoundValue", "static_instance": "TRANSFER_ADMIN_USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.unspecified_transfer_admin_id": {"fq_name": "team.MembersTransferFormerMembersFilesError.unspecified_transfer_admin_id", "param_name": "unspecifiedTransferAdminIdValue", "static_instance": "UNSPECIFIED_TRANSFER_ADMIN_ID", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.transfer_admin_is_not_admin": {"fq_name": "team.MembersTransferFormerMembersFilesError.transfer_admin_is_not_admin", "param_name": "transferAdminIsNotAdminValue", "static_instance": "TRANSFER_ADMIN_IS_NOT_ADMIN", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.recipient_not_verified": {"fq_name": "team.MembersTransferFormerMembersFilesError.recipient_not_verified", "param_name": "recipientNotVerifiedValue", "static_instance": "RECIPIENT_NOT_VERIFIED", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.user_data_is_being_transferred": {"fq_name": "team.MembersTransferFormerMembersFilesError.user_data_is_being_transferred", "param_name": "userDataIsBeingTransferredValue", "static_instance": "USER_DATA_IS_BEING_TRANSFERRED", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.user_not_removed": {"fq_name": "team.MembersTransferFormerMembersFilesError.user_not_removed", "param_name": "userNotRemovedValue", "static_instance": "USER_NOT_REMOVED", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.user_data_cannot_be_transferred": {"fq_name": "team.MembersTransferFormerMembersFilesError.user_data_cannot_be_transferred", "param_name": "userDataCannotBeTransferredValue", "static_instance": "USER_DATA_CANNOT_BE_TRANSFERRED", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersTransferFormerMembersFilesError.user_data_already_transferred": {"fq_name": "team.MembersTransferFormerMembersFilesError.user_data_already_transferred", "param_name": "userDataAlreadyTransferredValue", "static_instance": "USER_DATA_ALREADY_TRANSFERRED", "getter_method": null, "containing_data_type_ref": "team.MembersTransferFormerMembersFilesError", "route_refs": [], "_type": "FieldReference"}, "team.MembersUnsuspendArg.user": {"fq_name": "team.MembersUnsuspendArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.MembersUnsuspendArg", "route_refs": [], "_type": "FieldReference"}, "team.MembersUnsuspendError.user_not_found": {"fq_name": "team.MembersUnsuspendError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.MembersUnsuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersUnsuspendError.user_not_in_team": {"fq_name": "team.MembersUnsuspendError.user_not_in_team", "param_name": "userNotInTeamValue", "static_instance": "USER_NOT_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team.MembersUnsuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersUnsuspendError.other": {"fq_name": "team.MembersUnsuspendError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MembersUnsuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersUnsuspendError.unsuspend_non_suspended_member": {"fq_name": "team.MembersUnsuspendError.unsuspend_non_suspended_member", "param_name": "unsuspendNonSuspendedMemberValue", "static_instance": "UNSUSPEND_NON_SUSPENDED_MEMBER", "getter_method": null, "containing_data_type_ref": "team.MembersUnsuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MembersUnsuspendError.team_license_limit": {"fq_name": "team.MembersUnsuspendError.team_license_limit", "param_name": "teamLicenseLimitValue", "static_instance": "TEAM_LICENSE_LIMIT", "getter_method": null, "containing_data_type_ref": "team.MembersUnsuspendError", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientPlatform.iphone": {"fq_name": "team.MobileClientPlatform.iphone", "param_name": "iphoneValue", "static_instance": "IPHONE", "getter_method": null, "containing_data_type_ref": "team.MobileClientPlatform", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientPlatform.ipad": {"fq_name": "team.MobileClientPlatform.ipad", "param_name": "ipadValue", "static_instance": "IPAD", "getter_method": null, "containing_data_type_ref": "team.MobileClientPlatform", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientPlatform.android": {"fq_name": "team.MobileClientPlatform.android", "param_name": "androidValue", "static_instance": "ANDROID", "getter_method": null, "containing_data_type_ref": "team.MobileClientPlatform", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientPlatform.windows_phone": {"fq_name": "team.MobileClientPlatform.windows_phone", "param_name": "windowsPhoneValue", "static_instance": "WINDOWS_PHONE", "getter_method": null, "containing_data_type_ref": "team.MobileClientPlatform", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientPlatform.blackberry": {"fq_name": "team.MobileClientPlatform.blackberry", "param_name": "blackberryValue", "static_instance": "BLACKBERRY", "getter_method": null, "containing_data_type_ref": "team.MobileClientPlatform", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientPlatform.other": {"fq_name": "team.MobileClientPlatform.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.MobileClientPlatform", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.session_id": {"fq_name": "team.MobileClientSession.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.device_name": {"fq_name": "team.MobileClientSession.device_name", "param_name": "deviceName", "static_instance": null, "getter_method": "getDeviceName", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.client_type": {"fq_name": "team.MobileClientSession.client_type", "param_name": "clientType", "static_instance": null, "getter_method": "getClientType", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.ip_address": {"fq_name": "team.MobileClientSession.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.country": {"fq_name": "team.MobileClientSession.country", "param_name": "country", "static_instance": null, "getter_method": "getCountry", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.created": {"fq_name": "team.MobileClientSession.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.updated": {"fq_name": "team.MobileClientSession.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.client_version": {"fq_name": "team.MobileClientSession.client_version", "param_name": "clientVersion", "static_instance": null, "getter_method": "getClientVersion", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.os_version": {"fq_name": "team.MobileClientSession.os_version", "param_name": "osVersion", "static_instance": null, "getter_method": "getOsVersion", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.MobileClientSession.last_carrier": {"fq_name": "team.MobileClientSession.last_carrier", "param_name": "lastCarrier", "static_instance": null, "getter_method": "getLastCarrier", "containing_data_type_ref": "team.MobileClientSession", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceMetadata.name": {"fq_name": "team.NamespaceMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.NamespaceMetadata", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceMetadata.namespace_id": {"fq_name": "team.NamespaceMetadata.namespace_id", "param_name": "namespaceId", "static_instance": null, "getter_method": "getNamespaceId", "containing_data_type_ref": "team.NamespaceMetadata", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceMetadata.namespace_type": {"fq_name": "team.NamespaceMetadata.namespace_type", "param_name": "namespaceType", "static_instance": null, "getter_method": "getNamespaceType", "containing_data_type_ref": "team.NamespaceMetadata", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceMetadata.team_member_id": {"fq_name": "team.NamespaceMetadata.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.NamespaceMetadata", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceType.app_folder": {"fq_name": "team.NamespaceType.app_folder", "param_name": "appFolderValue", "static_instance": "APP_FOLDER", "getter_method": null, "containing_data_type_ref": "team.NamespaceType", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceType.shared_folder": {"fq_name": "team.NamespaceType.shared_folder", "param_name": "sharedFolderValue", "static_instance": "SHARED_FOLDER", "getter_method": null, "containing_data_type_ref": "team.NamespaceType", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceType.team_folder": {"fq_name": "team.NamespaceType.team_folder", "param_name": "teamFolderValue", "static_instance": "TEAM_FOLDER", "getter_method": null, "containing_data_type_ref": "team.NamespaceType", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceType.team_member_folder": {"fq_name": "team.NamespaceType.team_member_folder", "param_name": "teamMemberFolderValue", "static_instance": "TEAM_MEMBER_FOLDER", "getter_method": null, "containing_data_type_ref": "team.NamespaceType", "route_refs": [], "_type": "FieldReference"}, "team.NamespaceType.other": {"fq_name": "team.NamespaceType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.NamespaceType", "route_refs": [], "_type": "FieldReference"}, "team.RemoveCustomQuotaResult.success": {"fq_name": "team.RemoveCustomQuotaResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.RemoveCustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.RemoveCustomQuotaResult.invalid_user": {"fq_name": "team.RemoveCustomQuotaResult.invalid_user", "param_name": "invalidUserValue", "static_instance": null, "getter_method": "getInvalidUserValue", "containing_data_type_ref": "team.RemoveCustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.RemoveCustomQuotaResult.other": {"fq_name": "team.RemoveCustomQuotaResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.RemoveCustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.RemovedStatus.is_recoverable": {"fq_name": "team.RemovedStatus.is_recoverable", "param_name": "isRecoverable", "static_instance": null, "getter_method": "getIsRecoverable", "containing_data_type_ref": "team.RemovedStatus", "route_refs": [], "_type": "FieldReference"}, "team.RemovedStatus.is_disconnected": {"fq_name": "team.RemovedStatus.is_disconnected", "param_name": "isDisconnected", "static_instance": null, "getter_method": "getIsDisconnected", "containing_data_type_ref": "team.RemovedStatus", "route_refs": [], "_type": "FieldReference"}, "team.ResendSecondaryEmailResult.success": {"fq_name": "team.ResendSecondaryEmailResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.ResendSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.ResendSecondaryEmailResult.not_pending": {"fq_name": "team.ResendSecondaryEmailResult.not_pending", "param_name": "notPendingValue", "static_instance": null, "getter_method": "getNotPendingValue", "containing_data_type_ref": "team.ResendSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.ResendSecondaryEmailResult.rate_limited": {"fq_name": "team.ResendSecondaryEmailResult.rate_limited", "param_name": "rateLimitedValue", "static_instance": null, "getter_method": "getRateLimitedValue", "containing_data_type_ref": "team.ResendSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.ResendSecondaryEmailResult.other": {"fq_name": "team.ResendSecondaryEmailResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.ResendSecondaryEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.ResendVerificationEmailArg.emails_to_resend": {"fq_name": "team.ResendVerificationEmailArg.emails_to_resend", "param_name": "emailsToResend", "static_instance": null, "getter_method": "getEmailsToResend", "containing_data_type_ref": "team.ResendVerificationEmailArg", "route_refs": [], "_type": "FieldReference"}, "team.ResendVerificationEmailResult.results": {"fq_name": "team.ResendVerificationEmailResult.results", "param_name": "results", "static_instance": null, "getter_method": "getResults", "containing_data_type_ref": "team.ResendVerificationEmailResult", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDesktopClientArg.session_id": {"fq_name": "team.RevokeDesktopClientArg.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team.RevokeDesktopClientArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDesktopClientArg.team_member_id": {"fq_name": "team.RevokeDesktopClientArg.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.RevokeDesktopClientArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDesktopClientArg.delete_on_unlink": {"fq_name": "team.RevokeDesktopClientArg.delete_on_unlink", "param_name": "deleteOnUnlink", "static_instance": null, "getter_method": "getDeleteOnUnlink", "containing_data_type_ref": "team.RevokeDesktopClientArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionArg.web_session": {"fq_name": "team.RevokeDeviceSessionArg.web_session", "param_name": "webSessionValue", "static_instance": null, "getter_method": "getWebSessionValue", "containing_data_type_ref": "team.RevokeDeviceSessionArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionArg.desktop_client": {"fq_name": "team.RevokeDeviceSessionArg.desktop_client", "param_name": "desktopClientValue", "static_instance": null, "getter_method": "getDesktopClientValue", "containing_data_type_ref": "team.RevokeDeviceSessionArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionArg.mobile_client": {"fq_name": "team.RevokeDeviceSessionArg.mobile_client", "param_name": "mobileClientValue", "static_instance": null, "getter_method": "getMobileClientValue", "containing_data_type_ref": "team.RevokeDeviceSessionArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionBatchArg.revoke_devices": {"fq_name": "team.RevokeDeviceSessionBatchArg.revoke_devices", "param_name": "revokeDevices", "static_instance": null, "getter_method": "getRevokeDevices", "containing_data_type_ref": "team.RevokeDeviceSessionBatchArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionBatchError.other": {"fq_name": "team.RevokeDeviceSessionBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.RevokeDeviceSessionBatchError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionBatchResult.revoke_devices_status": {"fq_name": "team.RevokeDeviceSessionBatchResult.revoke_devices_status", "param_name": "revokeDevicesStatus", "static_instance": null, "getter_method": "getRevokeDevicesStatus", "containing_data_type_ref": "team.RevokeDeviceSessionBatchResult", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionError.device_session_not_found": {"fq_name": "team.RevokeDeviceSessionError.device_session_not_found", "param_name": "deviceSessionNotFoundValue", "static_instance": "DEVICE_SESSION_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.RevokeDeviceSessionError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionError.member_not_found": {"fq_name": "team.RevokeDeviceSessionError.member_not_found", "param_name": "memberNotFoundValue", "static_instance": "MEMBER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.RevokeDeviceSessionError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionError.other": {"fq_name": "team.RevokeDeviceSessionError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.RevokeDeviceSessionError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionStatus.success": {"fq_name": "team.RevokeDeviceSessionStatus.success", "param_name": "success", "static_instance": null, "getter_method": "getSuccess", "containing_data_type_ref": "team.RevokeDeviceSessionStatus", "route_refs": [], "_type": "FieldReference"}, "team.RevokeDeviceSessionStatus.error_type": {"fq_name": "team.RevokeDeviceSessionStatus.error_type", "param_name": "errorType", "static_instance": null, "getter_method": "getErrorType", "containing_data_type_ref": "team.RevokeDeviceSessionStatus", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedApiAppArg.app_id": {"fq_name": "team.RevokeLinkedApiAppArg.app_id", "param_name": "appId", "static_instance": null, "getter_method": "getAppId", "containing_data_type_ref": "team.RevokeLinkedApiAppArg", "route_refs": ["team.linked_apps/revoke_linked_app"], "_type": "FieldReference"}, "team.RevokeLinkedApiAppArg.team_member_id": {"fq_name": "team.RevokeLinkedApiAppArg.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.RevokeLinkedApiAppArg", "route_refs": ["team.linked_apps/revoke_linked_app"], "_type": "FieldReference"}, "team.RevokeLinkedApiAppArg.keep_app_folder": {"fq_name": "team.RevokeLinkedApiAppArg.keep_app_folder", "param_name": "keepAppFolder", "static_instance": null, "getter_method": "getKeepAppFolder", "containing_data_type_ref": "team.RevokeLinkedApiAppArg", "route_refs": ["team.linked_apps/revoke_linked_app"], "_type": "FieldReference"}, "team.RevokeLinkedApiAppBatchArg.revoke_linked_app": {"fq_name": "team.RevokeLinkedApiAppBatchArg.revoke_linked_app", "param_name": "revokeLinkedApp", "static_instance": null, "getter_method": "getRevokeLinkedApp", "containing_data_type_ref": "team.RevokeLinkedApiAppBatchArg", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppBatchError.other": {"fq_name": "team.RevokeLinkedAppBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.RevokeLinkedAppBatchError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppBatchResult.revoke_linked_app_status": {"fq_name": "team.RevokeLinkedAppBatchResult.revoke_linked_app_status", "param_name": "revokeLinkedAppStatus", "static_instance": null, "getter_method": "getRevokeLinkedAppStatus", "containing_data_type_ref": "team.RevokeLinkedAppBatchResult", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppError.app_not_found": {"fq_name": "team.RevokeLinkedAppError.app_not_found", "param_name": "appNotFoundValue", "static_instance": "APP_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.RevokeLinkedAppError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppError.member_not_found": {"fq_name": "team.RevokeLinkedAppError.member_not_found", "param_name": "memberNotFoundValue", "static_instance": "MEMBER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.RevokeLinkedAppError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppError.app_folder_removal_not_supported": {"fq_name": "team.RevokeLinkedAppError.app_folder_removal_not_supported", "param_name": "appFolderRemovalNotSupportedValue", "static_instance": "APP_FOLDER_REMOVAL_NOT_SUPPORTED", "getter_method": null, "containing_data_type_ref": "team.RevokeLinkedAppError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppError.other": {"fq_name": "team.RevokeLinkedAppError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.RevokeLinkedAppError", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppStatus.success": {"fq_name": "team.RevokeLinkedAppStatus.success", "param_name": "success", "static_instance": null, "getter_method": "getSuccess", "containing_data_type_ref": "team.RevokeLinkedAppStatus", "route_refs": [], "_type": "FieldReference"}, "team.RevokeLinkedAppStatus.error_type": {"fq_name": "team.RevokeLinkedAppStatus.error_type", "param_name": "errorType", "static_instance": null, "getter_method": "getErrorType", "containing_data_type_ref": "team.RevokeLinkedAppStatus", "route_refs": [], "_type": "FieldReference"}, "team.SetCustomQuotaArg.users_and_quotas": {"fq_name": "team.SetCustomQuotaArg.users_and_quotas", "param_name": "usersAndQuotas", "static_instance": null, "getter_method": "getUsersAndQuotas", "containing_data_type_ref": "team.SetCustomQuotaArg", "route_refs": [], "_type": "FieldReference"}, "team.SetCustomQuotaError.too_many_users": {"fq_name": "team.SetCustomQuotaError.too_many_users", "param_name": "tooManyUsersValue", "static_instance": "TOO_MANY_USERS", "getter_method": null, "containing_data_type_ref": "team.SetCustomQuotaError", "route_refs": [], "_type": "FieldReference"}, "team.SetCustomQuotaError.other": {"fq_name": "team.SetCustomQuotaError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.SetCustomQuotaError", "route_refs": [], "_type": "FieldReference"}, "team.SetCustomQuotaError.some_users_are_excluded": {"fq_name": "team.SetCustomQuotaError.some_users_are_excluded", "param_name": "someUsersAreExcludedValue", "static_instance": "SOME_USERS_ARE_EXCLUDED", "getter_method": null, "containing_data_type_ref": "team.SetCustomQuotaError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddArgs.domains": {"fq_name": "team.SharingAllowlistAddArgs.domains", "param_name": "domains", "static_instance": null, "getter_method": "getDomains", "containing_data_type_ref": "team.SharingAllowlistAddArgs", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddArgs.emails": {"fq_name": "team.SharingAllowlistAddArgs.emails", "param_name": "emails", "static_instance": null, "getter_method": "getEmails", "containing_data_type_ref": "team.SharingAllowlistAddArgs", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddError.malformed_entry": {"fq_name": "team.SharingAllowlistAddError.malformed_entry", "param_name": "malformedEntryValue", "static_instance": null, "getter_method": "getMalformedEntryValue", "containing_data_type_ref": "team.SharingAllowlistAddError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddError.no_entries_provided": {"fq_name": "team.SharingAllowlistAddError.no_entries_provided", "param_name": "noEntriesProvidedValue", "static_instance": "NO_ENTRIES_PROVIDED", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistAddError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddError.too_many_entries_provided": {"fq_name": "team.SharingAllowlistAddError.too_many_entries_provided", "param_name": "tooManyEntriesProvidedValue", "static_instance": "TOO_MANY_ENTRIES_PROVIDED", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistAddError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddError.team_limit_reached": {"fq_name": "team.SharingAllowlistAddError.team_limit_reached", "param_name": "teamLimitReachedValue", "static_instance": "TEAM_LIMIT_REACHED", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistAddError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddError.unknown_error": {"fq_name": "team.SharingAllowlistAddError.unknown_error", "param_name": "unknownErrorValue", "static_instance": "UNKNOWN_ERROR", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistAddError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddError.entries_already_exist": {"fq_name": "team.SharingAllowlistAddError.entries_already_exist", "param_name": "entriesAlreadyExistValue", "static_instance": null, "getter_method": "getEntriesAlreadyExistValue", "containing_data_type_ref": "team.SharingAllowlistAddError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistAddError.other": {"fq_name": "team.SharingAllowlistAddError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistAddError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistListArg.limit": {"fq_name": "team.SharingAllowlistListArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team.SharingAllowlistListArg", "route_refs": ["team.sharing_allowlist/list"], "_type": "FieldReference"}, "team.SharingAllowlistListContinueArg.cursor": {"fq_name": "team.SharingAllowlistListContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.SharingAllowlistListContinueArg", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistListContinueError.invalid_cursor": {"fq_name": "team.SharingAllowlistListContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistListContinueError.other": {"fq_name": "team.SharingAllowlistListContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistListResponse.domains": {"fq_name": "team.SharingAllowlistListResponse.domains", "param_name": "domains", "static_instance": null, "getter_method": "getDomains", "containing_data_type_ref": "team.SharingAllowlistListResponse", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistListResponse.emails": {"fq_name": "team.SharingAllowlistListResponse.emails", "param_name": "emails", "static_instance": null, "getter_method": "getEmails", "containing_data_type_ref": "team.SharingAllowlistListResponse", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistListResponse.cursor": {"fq_name": "team.SharingAllowlistListResponse.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.SharingAllowlistListResponse", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistListResponse.has_more": {"fq_name": "team.SharingAllowlistListResponse.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.SharingAllowlistListResponse", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveArgs.domains": {"fq_name": "team.SharingAllowlistRemoveArgs.domains", "param_name": "domains", "static_instance": null, "getter_method": "getDomains", "containing_data_type_ref": "team.SharingAllowlistRemoveArgs", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveArgs.emails": {"fq_name": "team.SharingAllowlistRemoveArgs.emails", "param_name": "emails", "static_instance": null, "getter_method": "getEmails", "containing_data_type_ref": "team.SharingAllowlistRemoveArgs", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveError.malformed_entry": {"fq_name": "team.SharingAllowlistRemoveError.malformed_entry", "param_name": "malformedEntryValue", "static_instance": null, "getter_method": "getMalformedEntryValue", "containing_data_type_ref": "team.SharingAllowlistRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveError.entries_do_not_exist": {"fq_name": "team.SharingAllowlistRemoveError.entries_do_not_exist", "param_name": "entriesDoNotExistValue", "static_instance": null, "getter_method": "getEntriesDoNotExistValue", "containing_data_type_ref": "team.SharingAllowlistRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveError.no_entries_provided": {"fq_name": "team.SharingAllowlistRemoveError.no_entries_provided", "param_name": "noEntriesProvidedValue", "static_instance": "NO_ENTRIES_PROVIDED", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveError.too_many_entries_provided": {"fq_name": "team.SharingAllowlistRemoveError.too_many_entries_provided", "param_name": "tooManyEntriesProvidedValue", "static_instance": "TOO_MANY_ENTRIES_PROVIDED", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveError.unknown_error": {"fq_name": "team.SharingAllowlistRemoveError.unknown_error", "param_name": "unknownErrorValue", "static_instance": "UNKNOWN_ERROR", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.SharingAllowlistRemoveError.other": {"fq_name": "team.SharingAllowlistRemoveError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.SharingAllowlistRemoveError", "route_refs": [], "_type": "FieldReference"}, "team.StorageBucket.bucket": {"fq_name": "team.StorageBucket.bucket", "param_name": "bucket", "static_instance": null, "getter_method": "getBucket", "containing_data_type_ref": "team.StorageBucket", "route_refs": [], "_type": "FieldReference"}, "team.StorageBucket.users": {"fq_name": "team.StorageBucket.users", "param_name": "users", "static_instance": null, "getter_method": "getUsers", "containing_data_type_ref": "team.StorageBucket", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderAccessError.invalid_team_folder_id": {"fq_name": "team.TeamFolderAccessError.invalid_team_folder_id", "param_name": "invalidTeamFolderIdValue", "static_instance": "INVALID_TEAM_FOLDER_ID", "getter_method": null, "containing_data_type_ref": "team.TeamFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderAccessError.no_access": {"fq_name": "team.TeamFolderAccessError.no_access", "param_name": "noAccessValue", "static_instance": "NO_ACCESS", "getter_method": null, "containing_data_type_ref": "team.TeamFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderAccessError.other": {"fq_name": "team.TeamFolderAccessError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderAccessError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderActivateError.access_error": {"fq_name": "team.TeamFolderActivateError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "team.TeamFolderActivateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderActivateError.status_error": {"fq_name": "team.TeamFolderActivateError.status_error", "param_name": "statusErrorValue", "static_instance": null, "getter_method": "getStatusErrorValue", "containing_data_type_ref": "team.TeamFolderActivateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderActivateError.team_shared_dropbox_error": {"fq_name": "team.TeamFolderActivateError.team_shared_dropbox_error", "param_name": "teamSharedDropboxErrorValue", "static_instance": null, "getter_method": "getTeamSharedDropboxErrorValue", "containing_data_type_ref": "team.TeamFolderActivateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderActivateError.other": {"fq_name": "team.TeamFolderActivateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderActivateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveArg.team_folder_id": {"fq_name": "team.TeamFolderArchiveArg.team_folder_id", "param_name": "teamFolderId", "static_instance": null, "getter_method": "getTeamFolderId", "containing_data_type_ref": "team.TeamFolderArchiveArg", "route_refs": ["team.team_folder/archive"], "_type": "FieldReference"}, "team.TeamFolderArchiveArg.force_async_off": {"fq_name": "team.TeamFolderArchiveArg.force_async_off", "param_name": "forceAsyncOff", "static_instance": null, "getter_method": "getForceAsyncOff", "containing_data_type_ref": "team.TeamFolderArchiveArg", "route_refs": ["team.team_folder/archive"], "_type": "FieldReference"}, "team.TeamFolderArchiveError.access_error": {"fq_name": "team.TeamFolderArchiveError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "team.TeamFolderArchiveError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveError.status_error": {"fq_name": "team.TeamFolderArchiveError.status_error", "param_name": "statusErrorValue", "static_instance": null, "getter_method": "getStatusErrorValue", "containing_data_type_ref": "team.TeamFolderArchiveError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveError.team_shared_dropbox_error": {"fq_name": "team.TeamFolderArchiveError.team_shared_dropbox_error", "param_name": "teamSharedDropboxErrorValue", "static_instance": null, "getter_method": "getTeamSharedDropboxErrorValue", "containing_data_type_ref": "team.TeamFolderArchiveError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveError.other": {"fq_name": "team.TeamFolderArchiveError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderArchiveError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveJobStatus.in_progress": {"fq_name": "team.TeamFolderArchiveJobStatus.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "team.TeamFolderArchiveJobStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveJobStatus.complete": {"fq_name": "team.TeamFolderArchiveJobStatus.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "team.TeamFolderArchiveJobStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveJobStatus.failed": {"fq_name": "team.TeamFolderArchiveJobStatus.failed", "param_name": "failedValue", "static_instance": null, "getter_method": "getFailedValue", "containing_data_type_ref": "team.TeamFolderArchiveJobStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveLaunch.async_job_id": {"fq_name": "team.TeamFolderArchiveLaunch.async_job_id", "param_name": "asyncJobIdValue", "static_instance": null, "getter_method": "getAsyncJobIdValue", "containing_data_type_ref": "team.TeamFolderArchiveLaunch", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderArchiveLaunch.complete": {"fq_name": "team.TeamFolderArchiveLaunch.complete", "param_name": "completeValue", "static_instance": null, "getter_method": "getCompleteValue", "containing_data_type_ref": "team.TeamFolderArchiveLaunch", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderCreateArg.name": {"fq_name": "team.TeamFolderCreateArg.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.TeamFolderCreateArg", "route_refs": ["team.team_folder/create"], "_type": "FieldReference"}, "team.TeamFolderCreateArg.sync_setting": {"fq_name": "team.TeamFolderCreateArg.sync_setting", "param_name": "syncSetting", "static_instance": null, "getter_method": "getSyncSetting", "containing_data_type_ref": "team.TeamFolderCreateArg", "route_refs": ["team.team_folder/create"], "_type": "FieldReference"}, "team.TeamFolderCreateError.invalid_folder_name": {"fq_name": "team.TeamFolderCreateError.invalid_folder_name", "param_name": "invalidFolderNameValue", "static_instance": "INVALID_FOLDER_NAME", "getter_method": null, "containing_data_type_ref": "team.TeamFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderCreateError.folder_name_already_used": {"fq_name": "team.TeamFolderCreateError.folder_name_already_used", "param_name": "folderNameAlreadyUsedValue", "static_instance": "FOLDER_NAME_ALREADY_USED", "getter_method": null, "containing_data_type_ref": "team.TeamFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderCreateError.folder_name_reserved": {"fq_name": "team.TeamFolderCreateError.folder_name_reserved", "param_name": "folderNameReservedValue", "static_instance": "FOLDER_NAME_RESERVED", "getter_method": null, "containing_data_type_ref": "team.TeamFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderCreateError.sync_settings_error": {"fq_name": "team.TeamFolderCreateError.sync_settings_error", "param_name": "syncSettingsErrorValue", "static_instance": null, "getter_method": "getSyncSettingsErrorValue", "containing_data_type_ref": "team.TeamFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderCreateError.other": {"fq_name": "team.TeamFolderCreateError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderCreateError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderGetInfoItem.id_not_found": {"fq_name": "team.TeamFolderGetInfoItem.id_not_found", "param_name": "idNotFoundValue", "static_instance": null, "getter_method": "getIdNotFoundValue", "containing_data_type_ref": "team.TeamFolderGetInfoItem", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderGetInfoItem.team_folder_metadata": {"fq_name": "team.TeamFolderGetInfoItem.team_folder_metadata", "param_name": "teamFolderMetadataValue", "static_instance": null, "getter_method": "getTeamFolderMetadataValue", "containing_data_type_ref": "team.TeamFolderGetInfoItem", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderIdArg.team_folder_id": {"fq_name": "team.TeamFolderIdArg.team_folder_id", "param_name": "teamFolderId", "static_instance": null, "getter_method": "getTeamFolderId", "containing_data_type_ref": "team.TeamFolderIdArg", "route_refs": ["team.team_folder/archive"], "_type": "FieldReference"}, "team.TeamFolderIdListArg.team_folder_ids": {"fq_name": "team.TeamFolderIdListArg.team_folder_ids", "param_name": "teamFolderIds", "static_instance": null, "getter_method": "getTeamFolderIds", "containing_data_type_ref": "team.TeamFolderIdListArg", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderInvalidStatusError.active": {"fq_name": "team.TeamFolderInvalidStatusError.active", "param_name": "activeValue", "static_instance": "ACTIVE", "getter_method": null, "containing_data_type_ref": "team.TeamFolderInvalidStatusError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderInvalidStatusError.archived": {"fq_name": "team.TeamFolderInvalidStatusError.archived", "param_name": "archivedValue", "static_instance": "ARCHIVED", "getter_method": null, "containing_data_type_ref": "team.TeamFolderInvalidStatusError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderInvalidStatusError.archive_in_progress": {"fq_name": "team.TeamFolderInvalidStatusError.archive_in_progress", "param_name": "archiveInProgressValue", "static_instance": "ARCHIVE_IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "team.TeamFolderInvalidStatusError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderInvalidStatusError.other": {"fq_name": "team.TeamFolderInvalidStatusError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderInvalidStatusError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderListArg.limit": {"fq_name": "team.TeamFolderListArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team.TeamFolderListArg", "route_refs": ["team.team_folder/list"], "_type": "FieldReference"}, "team.TeamFolderListContinueArg.cursor": {"fq_name": "team.TeamFolderListContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.TeamFolderListContinueArg", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderListContinueError.invalid_cursor": {"fq_name": "team.TeamFolderListContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "team.TeamFolderListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderListContinueError.other": {"fq_name": "team.TeamFolderListContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderListError.access_error": {"fq_name": "team.TeamFolderListError.access_error", "param_name": "accessError", "static_instance": null, "getter_method": "getAccessError", "containing_data_type_ref": "team.TeamFolderListError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderListResult.team_folders": {"fq_name": "team.TeamFolderListResult.team_folders", "param_name": "teamFolders", "static_instance": null, "getter_method": "getTeamFolders", "containing_data_type_ref": "team.TeamFolderListResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderListResult.cursor": {"fq_name": "team.TeamFolderListResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.TeamFolderListResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderListResult.has_more": {"fq_name": "team.TeamFolderListResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.TeamFolderListResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderMetadata.team_folder_id": {"fq_name": "team.TeamFolderMetadata.team_folder_id", "param_name": "teamFolderId", "static_instance": null, "getter_method": "getTeamFolderId", "containing_data_type_ref": "team.TeamFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderMetadata.name": {"fq_name": "team.TeamFolderMetadata.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.TeamFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderMetadata.status": {"fq_name": "team.TeamFolderMetadata.status", "param_name": "status", "static_instance": null, "getter_method": "getStatus", "containing_data_type_ref": "team.TeamFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderMetadata.is_team_shared_dropbox": {"fq_name": "team.TeamFolderMetadata.is_team_shared_dropbox", "param_name": "isTeamSharedDropbox", "static_instance": null, "getter_method": "getIsTeamSharedDropbox", "containing_data_type_ref": "team.TeamFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderMetadata.sync_setting": {"fq_name": "team.TeamFolderMetadata.sync_setting", "param_name": "syncSetting", "static_instance": null, "getter_method": "getSyncSetting", "containing_data_type_ref": "team.TeamFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderMetadata.content_sync_settings": {"fq_name": "team.TeamFolderMetadata.content_sync_settings", "param_name": "contentSyncSettings", "static_instance": null, "getter_method": "getContentSyncSettings", "containing_data_type_ref": "team.TeamFolderMetadata", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderPermanentlyDeleteError.access_error": {"fq_name": "team.TeamFolderPermanentlyDeleteError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "team.TeamFolderPermanentlyDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderPermanentlyDeleteError.status_error": {"fq_name": "team.TeamFolderPermanentlyDeleteError.status_error", "param_name": "statusErrorValue", "static_instance": null, "getter_method": "getStatusErrorValue", "containing_data_type_ref": "team.TeamFolderPermanentlyDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderPermanentlyDeleteError.team_shared_dropbox_error": {"fq_name": "team.TeamFolderPermanentlyDeleteError.team_shared_dropbox_error", "param_name": "teamSharedDropboxErrorValue", "static_instance": null, "getter_method": "getTeamSharedDropboxErrorValue", "containing_data_type_ref": "team.TeamFolderPermanentlyDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderPermanentlyDeleteError.other": {"fq_name": "team.TeamFolderPermanentlyDeleteError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderPermanentlyDeleteError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameArg.team_folder_id": {"fq_name": "team.TeamFolderRenameArg.team_folder_id", "param_name": "teamFolderId", "static_instance": null, "getter_method": "getTeamFolderId", "containing_data_type_ref": "team.TeamFolderRenameArg", "route_refs": ["team.team_folder/archive"], "_type": "FieldReference"}, "team.TeamFolderRenameArg.name": {"fq_name": "team.TeamFolderRenameArg.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.TeamFolderRenameArg", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameError.access_error": {"fq_name": "team.TeamFolderRenameError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "team.TeamFolderRenameError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameError.status_error": {"fq_name": "team.TeamFolderRenameError.status_error", "param_name": "statusErrorValue", "static_instance": null, "getter_method": "getStatusErrorValue", "containing_data_type_ref": "team.TeamFolderRenameError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameError.team_shared_dropbox_error": {"fq_name": "team.TeamFolderRenameError.team_shared_dropbox_error", "param_name": "teamSharedDropboxErrorValue", "static_instance": null, "getter_method": "getTeamSharedDropboxErrorValue", "containing_data_type_ref": "team.TeamFolderRenameError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameError.other": {"fq_name": "team.TeamFolderRenameError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderRenameError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameError.invalid_folder_name": {"fq_name": "team.TeamFolderRenameError.invalid_folder_name", "param_name": "invalidFolderNameValue", "static_instance": "INVALID_FOLDER_NAME", "getter_method": null, "containing_data_type_ref": "team.TeamFolderRenameError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameError.folder_name_already_used": {"fq_name": "team.TeamFolderRenameError.folder_name_already_used", "param_name": "folderNameAlreadyUsedValue", "static_instance": "FOLDER_NAME_ALREADY_USED", "getter_method": null, "containing_data_type_ref": "team.TeamFolderRenameError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderRenameError.folder_name_reserved": {"fq_name": "team.TeamFolderRenameError.folder_name_reserved", "param_name": "folderNameReservedValue", "static_instance": "FOLDER_NAME_RESERVED", "getter_method": null, "containing_data_type_ref": "team.TeamFolderRenameError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderStatus.active": {"fq_name": "team.TeamFolderStatus.active", "param_name": "activeValue", "static_instance": "ACTIVE", "getter_method": null, "containing_data_type_ref": "team.TeamFolderStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderStatus.archived": {"fq_name": "team.TeamFolderStatus.archived", "param_name": "archivedValue", "static_instance": "ARCHIVED", "getter_method": null, "containing_data_type_ref": "team.TeamFolderStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderStatus.archive_in_progress": {"fq_name": "team.TeamFolderStatus.archive_in_progress", "param_name": "archiveInProgressValue", "static_instance": "ARCHIVE_IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "team.TeamFolderStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderStatus.other": {"fq_name": "team.TeamFolderStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderTeamSharedDropboxError.disallowed": {"fq_name": "team.TeamFolderTeamSharedDropboxError.disallowed", "param_name": "disallowedValue", "static_instance": "DISALLOWED", "getter_method": null, "containing_data_type_ref": "team.TeamFolderTeamSharedDropboxError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderTeamSharedDropboxError.other": {"fq_name": "team.TeamFolderTeamSharedDropboxError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderTeamSharedDropboxError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsArg.team_folder_id": {"fq_name": "team.TeamFolderUpdateSyncSettingsArg.team_folder_id", "param_name": "teamFolderId", "static_instance": null, "getter_method": "getTeamFolderId", "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsArg", "route_refs": ["team.team_folder/archive"], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsArg.sync_setting": {"fq_name": "team.TeamFolderUpdateSyncSettingsArg.sync_setting", "param_name": "syncSetting", "static_instance": null, "getter_method": "getSyncSetting", "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsArg", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsArg.content_sync_settings": {"fq_name": "team.TeamFolderUpdateSyncSettingsArg.content_sync_settings", "param_name": "contentSyncSettings", "static_instance": null, "getter_method": "getContentSyncSettings", "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsArg", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsError.access_error": {"fq_name": "team.TeamFolderUpdateSyncSettingsError.access_error", "param_name": "accessErrorValue", "static_instance": null, "getter_method": "getAccessErrorValue", "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsError.status_error": {"fq_name": "team.TeamFolderUpdateSyncSettingsError.status_error", "param_name": "statusErrorValue", "static_instance": null, "getter_method": "getStatusErrorValue", "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsError.team_shared_dropbox_error": {"fq_name": "team.TeamFolderUpdateSyncSettingsError.team_shared_dropbox_error", "param_name": "teamSharedDropboxErrorValue", "static_instance": null, "getter_method": "getTeamSharedDropboxErrorValue", "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsError.other": {"fq_name": "team.TeamFolderUpdateSyncSettingsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "team.TeamFolderUpdateSyncSettingsError.sync_settings_error": {"fq_name": "team.TeamFolderUpdateSyncSettingsError.sync_settings_error", "param_name": "syncSettingsErrorValue", "static_instance": null, "getter_method": "getSyncSettingsErrorValue", "containing_data_type_ref": "team.TeamFolderUpdateSyncSettingsError", "route_refs": [], "_type": "FieldReference"}, "team.TeamGetInfoResult.name": {"fq_name": "team.TeamGetInfoResult.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.TeamGetInfoResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamGetInfoResult.team_id": {"fq_name": "team.TeamGetInfoResult.team_id", "param_name": "teamId", "static_instance": null, "getter_method": "getTeamId", "containing_data_type_ref": "team.TeamGetInfoResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamGetInfoResult.num_licensed_users": {"fq_name": "team.TeamGetInfoResult.num_licensed_users", "param_name": "numLicensedUsers", "static_instance": null, "getter_method": "getNumLicensedUsers", "containing_data_type_ref": "team.TeamGetInfoResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamGetInfoResult.num_provisioned_users": {"fq_name": "team.TeamGetInfoResult.num_provisioned_users", "param_name": "numProvisionedUsers", "static_instance": null, "getter_method": "getNumProvisionedUsers", "containing_data_type_ref": "team.TeamGetInfoResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamGetInfoResult.policies": {"fq_name": "team.TeamGetInfoResult.policies", "param_name": "policies", "static_instance": null, "getter_method": "getPolicies", "containing_data_type_ref": "team.TeamGetInfoResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamGetInfoResult.num_used_licenses": {"fq_name": "team.TeamGetInfoResult.num_used_licenses", "param_name": "numUsedLicenses", "static_instance": null, "getter_method": "getNumUsedLicenses", "containing_data_type_ref": "team.TeamGetInfoResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberInfo.profile": {"fq_name": "team.TeamMemberInfo.profile", "param_name": "profile", "static_instance": null, "getter_method": "getProfile", "containing_data_type_ref": "team.TeamMemberInfo", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberInfo.role": {"fq_name": "team.TeamMemberInfo.role", "param_name": "role", "static_instance": null, "getter_method": "getRole", "containing_data_type_ref": "team.TeamMemberInfo", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberInfoV2.profile": {"fq_name": "team.TeamMemberInfoV2.profile", "param_name": "profile", "static_instance": null, "getter_method": "getProfile", "containing_data_type_ref": "team.TeamMemberInfoV2", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberInfoV2.roles": {"fq_name": "team.TeamMemberInfoV2.roles", "param_name": "roles", "static_instance": null, "getter_method": "getRoles", "containing_data_type_ref": "team.TeamMemberInfoV2", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberInfoV2Result.member_info": {"fq_name": "team.TeamMemberInfoV2Result.member_info", "param_name": "memberInfo", "static_instance": null, "getter_method": "getMemberInfo", "containing_data_type_ref": "team.TeamMemberInfoV2Result", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.team_member_id": {"fq_name": "team.TeamMemberProfile.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.email": {"fq_name": "team.TeamMemberProfile.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.email_verified": {"fq_name": "team.TeamMemberProfile.email_verified", "param_name": "emailVerified", "static_instance": null, "getter_method": "getEmailVerified", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.status": {"fq_name": "team.TeamMemberProfile.status", "param_name": "status", "static_instance": null, "getter_method": "getStatus", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.name": {"fq_name": "team.TeamMemberProfile.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.membership_type": {"fq_name": "team.TeamMemberProfile.membership_type", "param_name": "membershipType", "static_instance": null, "getter_method": "getMembershipType", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.groups": {"fq_name": "team.TeamMemberProfile.groups", "param_name": "groups", "static_instance": null, "getter_method": "getGroups", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.member_folder_id": {"fq_name": "team.TeamMemberProfile.member_folder_id", "param_name": "memberFolderId", "static_instance": null, "getter_method": "getMemberFolderId", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.external_id": {"fq_name": "team.TeamMemberProfile.external_id", "param_name": "externalId", "static_instance": null, "getter_method": "getExternalId", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.account_id": {"fq_name": "team.TeamMemberProfile.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.secondary_emails": {"fq_name": "team.TeamMemberProfile.secondary_emails", "param_name": "secondaryEmails", "static_instance": null, "getter_method": "getSecondaryEmails", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.invited_on": {"fq_name": "team.TeamMemberProfile.invited_on", "param_name": "invitedOn", "static_instance": null, "getter_method": "getInvitedOn", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.joined_on": {"fq_name": "team.TeamMemberProfile.joined_on", "param_name": "joinedOn", "static_instance": null, "getter_method": "getJoinedOn", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.suspended_on": {"fq_name": "team.TeamMemberProfile.suspended_on", "param_name": "suspendedOn", "static_instance": null, "getter_method": "getSuspendedOn", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.persistent_id": {"fq_name": "team.TeamMemberProfile.persistent_id", "param_name": "persistentId", "static_instance": null, "getter_method": "getPersistentId", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.is_directory_restricted": {"fq_name": "team.TeamMemberProfile.is_directory_restricted", "param_name": "isDirectoryRestricted", "static_instance": null, "getter_method": "getIsDirectoryRestricted", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberProfile.profile_photo_url": {"fq_name": "team.TeamMemberProfile.profile_photo_url", "param_name": "profilePhotoUrl", "static_instance": null, "getter_method": "getProfilePhotoUrl", "containing_data_type_ref": "team.TeamMemberProfile", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberRole.role_id": {"fq_name": "team.TeamMemberRole.role_id", "param_name": "roleId", "static_instance": null, "getter_method": "getRoleId", "containing_data_type_ref": "team.TeamMemberRole", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberRole.name": {"fq_name": "team.TeamMemberRole.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team.TeamMemberRole", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberRole.description": {"fq_name": "team.TeamMemberRole.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team.TeamMemberRole", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberStatus.active": {"fq_name": "team.TeamMemberStatus.active", "param_name": "activeValue", "static_instance": "ACTIVE", "getter_method": null, "containing_data_type_ref": "team.TeamMemberStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberStatus.invited": {"fq_name": "team.TeamMemberStatus.invited", "param_name": "invitedValue", "static_instance": "INVITED", "getter_method": null, "containing_data_type_ref": "team.TeamMemberStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberStatus.suspended": {"fq_name": "team.TeamMemberStatus.suspended", "param_name": "suspendedValue", "static_instance": "SUSPENDED", "getter_method": null, "containing_data_type_ref": "team.TeamMemberStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamMemberStatus.removed": {"fq_name": "team.TeamMemberStatus.removed", "param_name": "removedValue", "static_instance": null, "getter_method": "getRemovedValue", "containing_data_type_ref": "team.TeamMemberStatus", "route_refs": [], "_type": "FieldReference"}, "team.TeamMembershipType.full": {"fq_name": "team.TeamMembershipType.full", "param_name": "fullValue", "static_instance": "FULL", "getter_method": null, "containing_data_type_ref": "team.TeamMembershipType", "route_refs": [], "_type": "FieldReference"}, "team.TeamMembershipType.limited": {"fq_name": "team.TeamMembershipType.limited", "param_name": "limitedValue", "static_instance": "LIMITED", "getter_method": null, "containing_data_type_ref": "team.TeamMembershipType", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListArg.limit": {"fq_name": "team.TeamNamespacesListArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team.TeamNamespacesListArg", "route_refs": ["team.namespaces/list"], "_type": "FieldReference"}, "team.TeamNamespacesListContinueArg.cursor": {"fq_name": "team.TeamNamespacesListContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.TeamNamespacesListContinueArg", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListContinueError.invalid_arg": {"fq_name": "team.TeamNamespacesListContinueError.invalid_arg", "param_name": "invalidArgValue", "static_instance": "INVALID_ARG", "getter_method": null, "containing_data_type_ref": "team.TeamNamespacesListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListContinueError.other": {"fq_name": "team.TeamNamespacesListContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamNamespacesListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListContinueError.invalid_cursor": {"fq_name": "team.TeamNamespacesListContinueError.invalid_cursor", "param_name": "invalidCursorValue", "static_instance": "INVALID_CURSOR", "getter_method": null, "containing_data_type_ref": "team.TeamNamespacesListContinueError", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListError.invalid_arg": {"fq_name": "team.TeamNamespacesListError.invalid_arg", "param_name": "invalidArgValue", "static_instance": "INVALID_ARG", "getter_method": null, "containing_data_type_ref": "team.TeamNamespacesListError", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListError.other": {"fq_name": "team.TeamNamespacesListError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamNamespacesListError", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListResult.namespaces": {"fq_name": "team.TeamNamespacesListResult.namespaces", "param_name": "namespaces", "static_instance": null, "getter_method": "getNamespaces", "containing_data_type_ref": "team.TeamNamespacesListResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListResult.cursor": {"fq_name": "team.TeamNamespacesListResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team.TeamNamespacesListResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamNamespacesListResult.has_more": {"fq_name": "team.TeamNamespacesListResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team.TeamNamespacesListResult", "route_refs": [], "_type": "FieldReference"}, "team.TeamReportFailureReason.temporary_error": {"fq_name": "team.TeamReportFailureReason.temporary_error", "param_name": "temporaryErrorValue", "static_instance": "TEMPORARY_ERROR", "getter_method": null, "containing_data_type_ref": "team.TeamReportFailureReason", "route_refs": [], "_type": "FieldReference"}, "team.TeamReportFailureReason.many_reports_at_once": {"fq_name": "team.TeamReportFailureReason.many_reports_at_once", "param_name": "manyReportsAtOnceValue", "static_instance": "MANY_REPORTS_AT_ONCE", "getter_method": null, "containing_data_type_ref": "team.TeamReportFailureReason", "route_refs": [], "_type": "FieldReference"}, "team.TeamReportFailureReason.too_much_data": {"fq_name": "team.TeamReportFailureReason.too_much_data", "param_name": "tooMuchDataValue", "static_instance": "TOO_MUCH_DATA", "getter_method": null, "containing_data_type_ref": "team.TeamReportFailureReason", "route_refs": [], "_type": "FieldReference"}, "team.TeamReportFailureReason.other": {"fq_name": "team.TeamReportFailureReason.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TeamReportFailureReason", "route_refs": [], "_type": "FieldReference"}, "team.TokenGetAuthenticatedAdminError.mapping_not_found": {"fq_name": "team.TokenGetAuthenticatedAdminError.mapping_not_found", "param_name": "mappingNotFoundValue", "static_instance": "MAPPING_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.TokenGetAuthenticatedAdminError", "route_refs": [], "_type": "FieldReference"}, "team.TokenGetAuthenticatedAdminError.admin_not_active": {"fq_name": "team.TokenGetAuthenticatedAdminError.admin_not_active", "param_name": "adminNotActiveValue", "static_instance": "ADMIN_NOT_ACTIVE", "getter_method": null, "containing_data_type_ref": "team.TokenGetAuthenticatedAdminError", "route_refs": [], "_type": "FieldReference"}, "team.TokenGetAuthenticatedAdminError.other": {"fq_name": "team.TokenGetAuthenticatedAdminError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.TokenGetAuthenticatedAdminError", "route_refs": [], "_type": "FieldReference"}, "team.TokenGetAuthenticatedAdminResult.admin_profile": {"fq_name": "team.TokenGetAuthenticatedAdminResult.admin_profile", "param_name": "adminProfile", "static_instance": null, "getter_method": "getAdminProfile", "containing_data_type_ref": "team.TokenGetAuthenticatedAdminResult", "route_refs": [], "_type": "FieldReference"}, "team.UploadApiRateLimitValue.unlimited": {"fq_name": "team.UploadApiRateLimitValue.unlimited", "param_name": "unlimitedValue", "static_instance": "UNLIMITED", "getter_method": null, "containing_data_type_ref": "team.UploadApiRateLimitValue", "route_refs": [], "_type": "FieldReference"}, "team.UploadApiRateLimitValue.limit": {"fq_name": "team.UploadApiRateLimitValue.limit", "param_name": "limitValue", "static_instance": null, "getter_method": "getLimitValue", "containing_data_type_ref": "team.UploadApiRateLimitValue", "route_refs": [], "_type": "FieldReference"}, "team.UploadApiRateLimitValue.other": {"fq_name": "team.UploadApiRateLimitValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.UploadApiRateLimitValue", "route_refs": [], "_type": "FieldReference"}, "team.UserAddResult.success": {"fq_name": "team.UserAddResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.UserAddResult", "route_refs": [], "_type": "FieldReference"}, "team.UserAddResult.invalid_user": {"fq_name": "team.UserAddResult.invalid_user", "param_name": "invalidUserValue", "static_instance": null, "getter_method": "getInvalidUserValue", "containing_data_type_ref": "team.UserAddResult", "route_refs": [], "_type": "FieldReference"}, "team.UserAddResult.unverified": {"fq_name": "team.UserAddResult.unverified", "param_name": "unverifiedValue", "static_instance": null, "getter_method": "getUnverifiedValue", "containing_data_type_ref": "team.UserAddResult", "route_refs": [], "_type": "FieldReference"}, "team.UserAddResult.placeholder_user": {"fq_name": "team.UserAddResult.placeholder_user", "param_name": "placeholderUserValue", "static_instance": null, "getter_method": "getPlaceholderUserValue", "containing_data_type_ref": "team.UserAddResult", "route_refs": [], "_type": "FieldReference"}, "team.UserAddResult.other": {"fq_name": "team.UserAddResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.UserAddResult", "route_refs": [], "_type": "FieldReference"}, "team.UserCustomQuotaArg.user": {"fq_name": "team.UserCustomQuotaArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.UserCustomQuotaArg", "route_refs": [], "_type": "FieldReference"}, "team.UserCustomQuotaArg.quota_gb": {"fq_name": "team.UserCustomQuotaArg.quota_gb", "param_name": "quotaGb", "static_instance": null, "getter_method": "getQuotaGb", "containing_data_type_ref": "team.UserCustomQuotaArg", "route_refs": [], "_type": "FieldReference"}, "team.UserCustomQuotaResult.user": {"fq_name": "team.UserCustomQuotaResult.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.UserCustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.UserCustomQuotaResult.quota_gb": {"fq_name": "team.UserCustomQuotaResult.quota_gb", "param_name": "quotaGb", "static_instance": null, "getter_method": "getQuotaGb", "containing_data_type_ref": "team.UserCustomQuotaResult", "route_refs": [], "_type": "FieldReference"}, "team.UserDeleteEmailsResult.user": {"fq_name": "team.UserDeleteEmailsResult.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.UserDeleteEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.UserDeleteEmailsResult.results": {"fq_name": "team.UserDeleteEmailsResult.results", "param_name": "results", "static_instance": null, "getter_method": "getResults", "containing_data_type_ref": "team.UserDeleteEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.UserDeleteResult.success": {"fq_name": "team.UserDeleteResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.UserDeleteResult", "route_refs": [], "_type": "FieldReference"}, "team.UserDeleteResult.invalid_user": {"fq_name": "team.UserDeleteResult.invalid_user", "param_name": "invalidUserValue", "static_instance": null, "getter_method": "getInvalidUserValue", "containing_data_type_ref": "team.UserDeleteResult", "route_refs": [], "_type": "FieldReference"}, "team.UserDeleteResult.other": {"fq_name": "team.UserDeleteResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.UserDeleteResult", "route_refs": [], "_type": "FieldReference"}, "team.UserResendEmailsResult.user": {"fq_name": "team.UserResendEmailsResult.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.UserResendEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.UserResendEmailsResult.results": {"fq_name": "team.UserResendEmailsResult.results", "param_name": "results", "static_instance": null, "getter_method": "getResults", "containing_data_type_ref": "team.UserResendEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.UserResendResult.success": {"fq_name": "team.UserResendResult.success", "param_name": "successValue", "static_instance": null, "getter_method": "getSuccessValue", "containing_data_type_ref": "team.UserResendResult", "route_refs": [], "_type": "FieldReference"}, "team.UserResendResult.invalid_user": {"fq_name": "team.UserResendResult.invalid_user", "param_name": "invalidUserValue", "static_instance": null, "getter_method": "getInvalidUserValue", "containing_data_type_ref": "team.UserResendResult", "route_refs": [], "_type": "FieldReference"}, "team.UserResendResult.other": {"fq_name": "team.UserResendResult.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team.UserResendResult", "route_refs": [], "_type": "FieldReference"}, "team.UserSecondaryEmailsArg.user": {"fq_name": "team.UserSecondaryEmailsArg.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.UserSecondaryEmailsArg", "route_refs": [], "_type": "FieldReference"}, "team.UserSecondaryEmailsArg.secondary_emails": {"fq_name": "team.UserSecondaryEmailsArg.secondary_emails", "param_name": "secondaryEmails", "static_instance": null, "getter_method": "getSecondaryEmails", "containing_data_type_ref": "team.UserSecondaryEmailsArg", "route_refs": [], "_type": "FieldReference"}, "team.UserSecondaryEmailsResult.user": {"fq_name": "team.UserSecondaryEmailsResult.user", "param_name": "user", "static_instance": null, "getter_method": "getUser", "containing_data_type_ref": "team.UserSecondaryEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.UserSecondaryEmailsResult.results": {"fq_name": "team.UserSecondaryEmailsResult.results", "param_name": "results", "static_instance": null, "getter_method": "getResults", "containing_data_type_ref": "team.UserSecondaryEmailsResult", "route_refs": [], "_type": "FieldReference"}, "team.UserSelectorArg.team_member_id": {"fq_name": "team.UserSelectorArg.team_member_id", "param_name": "teamMemberIdValue", "static_instance": null, "getter_method": "getTeamMemberIdValue", "containing_data_type_ref": "team.UserSelectorArg", "route_refs": [], "_type": "FieldReference"}, "team.UserSelectorArg.external_id": {"fq_name": "team.UserSelectorArg.external_id", "param_name": "externalIdValue", "static_instance": null, "getter_method": "getExternalIdValue", "containing_data_type_ref": "team.UserSelectorArg", "route_refs": [], "_type": "FieldReference"}, "team.UserSelectorArg.email": {"fq_name": "team.UserSelectorArg.email", "param_name": "emailValue", "static_instance": null, "getter_method": "getEmailValue", "containing_data_type_ref": "team.UserSelectorArg", "route_refs": [], "_type": "FieldReference"}, "team.UserSelectorError.user_not_found": {"fq_name": "team.UserSelectorError.user_not_found", "param_name": "userNotFoundValue", "static_instance": "USER_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team.UserSelectorError", "route_refs": [], "_type": "FieldReference"}, "team.UsersSelectorArg.team_member_ids": {"fq_name": "team.UsersSelectorArg.team_member_ids", "param_name": "teamMemberIdsValue", "static_instance": null, "getter_method": "getTeamMemberIdsValue", "containing_data_type_ref": "team.UsersSelectorArg", "route_refs": [], "_type": "FieldReference"}, "team.UsersSelectorArg.external_ids": {"fq_name": "team.UsersSelectorArg.external_ids", "param_name": "externalIdsValue", "static_instance": null, "getter_method": "getExternalIdsValue", "containing_data_type_ref": "team.UsersSelectorArg", "route_refs": [], "_type": "FieldReference"}, "team.UsersSelectorArg.emails": {"fq_name": "team.UsersSelectorArg.emails", "param_name": "emailsValue", "static_instance": null, "getter_method": "getEmailsValue", "containing_data_type_ref": "team.UsersSelectorArg", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupManagementType.user_managed": {"fq_name": "team_common.GroupManagementType.user_managed", "param_name": "userManagedValue", "static_instance": "USER_MANAGED", "getter_method": null, "containing_data_type_ref": "team_common.GroupManagementType", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupManagementType.company_managed": {"fq_name": "team_common.GroupManagementType.company_managed", "param_name": "companyManagedValue", "static_instance": "COMPANY_MANAGED", "getter_method": null, "containing_data_type_ref": "team_common.GroupManagementType", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupManagementType.system_managed": {"fq_name": "team_common.GroupManagementType.system_managed", "param_name": "systemManagedValue", "static_instance": "SYSTEM_MANAGED", "getter_method": null, "containing_data_type_ref": "team_common.GroupManagementType", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupManagementType.other": {"fq_name": "team_common.GroupManagementType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_common.GroupManagementType", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupSummary.group_name": {"fq_name": "team_common.GroupSummary.group_name", "param_name": "groupName", "static_instance": null, "getter_method": "getGroupName", "containing_data_type_ref": "team_common.GroupSummary", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupSummary.group_id": {"fq_name": "team_common.GroupSummary.group_id", "param_name": "groupId", "static_instance": null, "getter_method": "getGroupId", "containing_data_type_ref": "team_common.GroupSummary", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupSummary.group_management_type": {"fq_name": "team_common.GroupSummary.group_management_type", "param_name": "groupManagementType", "static_instance": null, "getter_method": "getGroupManagementType", "containing_data_type_ref": "team_common.GroupSummary", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupSummary.group_external_id": {"fq_name": "team_common.GroupSummary.group_external_id", "param_name": "groupExternalId", "static_instance": null, "getter_method": "getGroupExternalId", "containing_data_type_ref": "team_common.GroupSummary", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupSummary.member_count": {"fq_name": "team_common.GroupSummary.member_count", "param_name": "memberCount", "static_instance": null, "getter_method": "getMemberCount", "containing_data_type_ref": "team_common.GroupSummary", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupType.team": {"fq_name": "team_common.GroupType.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "team_common.GroupType", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupType.user_managed": {"fq_name": "team_common.GroupType.user_managed", "param_name": "userManagedValue", "static_instance": "USER_MANAGED", "getter_method": null, "containing_data_type_ref": "team_common.GroupType", "route_refs": [], "_type": "FieldReference"}, "team_common.GroupType.other": {"fq_name": "team_common.GroupType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_common.GroupType", "route_refs": [], "_type": "FieldReference"}, "team_common.MemberSpaceLimitType.off": {"fq_name": "team_common.MemberSpaceLimitType.off", "param_name": "offValue", "static_instance": "OFF", "getter_method": null, "containing_data_type_ref": "team_common.MemberSpaceLimitType", "route_refs": [], "_type": "FieldReference"}, "team_common.MemberSpaceLimitType.alert_only": {"fq_name": "team_common.MemberSpaceLimitType.alert_only", "param_name": "alertOnlyValue", "static_instance": "ALERT_ONLY", "getter_method": null, "containing_data_type_ref": "team_common.MemberSpaceLimitType", "route_refs": [], "_type": "FieldReference"}, "team_common.MemberSpaceLimitType.stop_sync": {"fq_name": "team_common.MemberSpaceLimitType.stop_sync", "param_name": "stopSyncValue", "static_instance": "STOP_SYNC", "getter_method": null, "containing_data_type_ref": "team_common.MemberSpaceLimitType", "route_refs": [], "_type": "FieldReference"}, "team_common.MemberSpaceLimitType.other": {"fq_name": "team_common.MemberSpaceLimitType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_common.MemberSpaceLimitType", "route_refs": [], "_type": "FieldReference"}, "team_common.TimeRange.start_time": {"fq_name": "team_common.TimeRange.start_time", "param_name": "startTime", "static_instance": null, "getter_method": "getStartTime", "containing_data_type_ref": "team_common.TimeRange", "route_refs": [], "_type": "FieldReference"}, "team_common.TimeRange.end_time": {"fq_name": "team_common.TimeRange.end_time", "param_name": "endTime", "static_instance": null, "getter_method": "getEndTime", "containing_data_type_ref": "team_common.TimeRange", "route_refs": [], "_type": "FieldReference"}, "team_log.AccessMethodLogInfo.admin_console": {"fq_name": "team_log.AccessMethodLogInfo.admin_console", "param_name": "adminConsoleValue", "static_instance": null, "getter_method": "getAdminConsoleValue", "containing_data_type_ref": "team_log.AccessMethodLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AccessMethodLogInfo.api": {"fq_name": "team_log.AccessMethodLogInfo.api", "param_name": "apiValue", "static_instance": null, "getter_method": "getApiValue", "containing_data_type_ref": "team_log.AccessMethodLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AccessMethodLogInfo.content_manager": {"fq_name": "team_log.AccessMethodLogInfo.content_manager", "param_name": "contentManagerValue", "static_instance": null, "getter_method": "getContentManagerValue", "containing_data_type_ref": "team_log.AccessMethodLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AccessMethodLogInfo.end_user": {"fq_name": "team_log.AccessMethodLogInfo.end_user", "param_name": "endUserValue", "static_instance": null, "getter_method": "getEndUserValue", "containing_data_type_ref": "team_log.AccessMethodLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AccessMethodLogInfo.enterprise_console": {"fq_name": "team_log.AccessMethodLogInfo.enterprise_console", "param_name": "enterpriseConsoleValue", "static_instance": null, "getter_method": "getEnterpriseConsoleValue", "containing_data_type_ref": "team_log.AccessMethodLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AccessMethodLogInfo.sign_in_as": {"fq_name": "team_log.AccessMethodLogInfo.sign_in_as", "param_name": "signInAsValue", "static_instance": null, "getter_method": "getSignInAsValue", "containing_data_type_ref": "team_log.AccessMethodLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AccessMethodLogInfo.other": {"fq_name": "team_log.AccessMethodLogInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AccessMethodLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureAvailability.available": {"fq_name": "team_log.AccountCaptureAvailability.available", "param_name": "availableValue", "static_instance": "AVAILABLE", "getter_method": null, "containing_data_type_ref": "team_log.AccountCaptureAvailability", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureAvailability.unavailable": {"fq_name": "team_log.AccountCaptureAvailability.unavailable", "param_name": "unavailableValue", "static_instance": "UNAVAILABLE", "getter_method": null, "containing_data_type_ref": "team_log.AccountCaptureAvailability", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureAvailability.other": {"fq_name": "team_log.AccountCaptureAvailability.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AccountCaptureAvailability", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureChangeAvailabilityDetails.new_value": {"fq_name": "team_log.AccountCaptureChangeAvailabilityDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.AccountCaptureChangeAvailabilityDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureChangeAvailabilityDetails.previous_value": {"fq_name": "team_log.AccountCaptureChangeAvailabilityDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.AccountCaptureChangeAvailabilityDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureChangeAvailabilityType.description": {"fq_name": "team_log.AccountCaptureChangeAvailabilityType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AccountCaptureChangeAvailabilityType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureChangePolicyDetails.new_value": {"fq_name": "team_log.AccountCaptureChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.AccountCaptureChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureChangePolicyDetails.previous_value": {"fq_name": "team_log.AccountCaptureChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.AccountCaptureChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureChangePolicyType.description": {"fq_name": "team_log.AccountCaptureChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AccountCaptureChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureMigrateAccountDetails.domain_name": {"fq_name": "team_log.AccountCaptureMigrateAccountDetails.domain_name", "param_name": "domainName", "static_instance": null, "getter_method": "getDomainName", "containing_data_type_ref": "team_log.AccountCaptureMigrateAccountDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureMigrateAccountType.description": {"fq_name": "team_log.AccountCaptureMigrateAccountType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AccountCaptureMigrateAccountType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureNotificationEmailsSentDetails.domain_name": {"fq_name": "team_log.AccountCaptureNotificationEmailsSentDetails.domain_name", "param_name": "domainName", "static_instance": null, "getter_method": "getDomainName", "containing_data_type_ref": "team_log.AccountCaptureNotificationEmailsSentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureNotificationEmailsSentDetails.notification_type": {"fq_name": "team_log.AccountCaptureNotificationEmailsSentDetails.notification_type", "param_name": "notificationType", "static_instance": null, "getter_method": "getNotificationType", "containing_data_type_ref": "team_log.AccountCaptureNotificationEmailsSentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureNotificationEmailsSentType.description": {"fq_name": "team_log.AccountCaptureNotificationEmailsSentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AccountCaptureNotificationEmailsSentType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureNotificationType.actionable_notification": {"fq_name": "team_log.AccountCaptureNotificationType.actionable_notification", "param_name": "actionableNotificationValue", "static_instance": "ACTIONABLE_NOTIFICATION", "getter_method": null, "containing_data_type_ref": "team_log.AccountCaptureNotificationType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureNotificationType.proactive_warning_notification": {"fq_name": "team_log.AccountCaptureNotificationType.proactive_warning_notification", "param_name": "proactiveWarningNotificationValue", "static_instance": "PROACTIVE_WARNING_NOTIFICATION", "getter_method": null, "containing_data_type_ref": "team_log.AccountCaptureNotificationType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureNotificationType.other": {"fq_name": "team_log.AccountCaptureNotificationType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AccountCaptureNotificationType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCapturePolicy.all_users": {"fq_name": "team_log.AccountCapturePolicy.all_users", "param_name": "allUsersValue", "static_instance": "ALL_USERS", "getter_method": null, "containing_data_type_ref": "team_log.AccountCapturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCapturePolicy.disabled": {"fq_name": "team_log.AccountCapturePolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.AccountCapturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCapturePolicy.invited_users": {"fq_name": "team_log.AccountCapturePolicy.invited_users", "param_name": "invitedUsersValue", "static_instance": "INVITED_USERS", "getter_method": null, "containing_data_type_ref": "team_log.AccountCapturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCapturePolicy.prevent_personal_creation": {"fq_name": "team_log.AccountCapturePolicy.prevent_personal_creation", "param_name": "preventPersonalCreationValue", "static_instance": "PREVENT_PERSONAL_CREATION", "getter_method": null, "containing_data_type_ref": "team_log.AccountCapturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCapturePolicy.other": {"fq_name": "team_log.AccountCapturePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AccountCapturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureRelinquishAccountDetails.domain_name": {"fq_name": "team_log.AccountCaptureRelinquishAccountDetails.domain_name", "param_name": "domainName", "static_instance": null, "getter_method": "getDomainName", "containing_data_type_ref": "team_log.AccountCaptureRelinquishAccountDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountCaptureRelinquishAccountType.description": {"fq_name": "team_log.AccountCaptureRelinquishAccountType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AccountCaptureRelinquishAccountType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountLockOrUnlockedDetails.previous_value": {"fq_name": "team_log.AccountLockOrUnlockedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.AccountLockOrUnlockedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountLockOrUnlockedDetails.new_value": {"fq_name": "team_log.AccountLockOrUnlockedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.AccountLockOrUnlockedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountLockOrUnlockedType.description": {"fq_name": "team_log.AccountLockOrUnlockedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AccountLockOrUnlockedType", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountState.locked": {"fq_name": "team_log.AccountState.locked", "param_name": "lockedValue", "static_instance": "LOCKED", "getter_method": null, "containing_data_type_ref": "team_log.AccountState", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountState.unlocked": {"fq_name": "team_log.AccountState.unlocked", "param_name": "unlockedValue", "static_instance": "UNLOCKED", "getter_method": null, "containing_data_type_ref": "team_log.AccountState", "route_refs": [], "_type": "FieldReference"}, "team_log.AccountState.other": {"fq_name": "team_log.AccountState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AccountState", "route_refs": [], "_type": "FieldReference"}, "team_log.ActionDetails.remove_action": {"fq_name": "team_log.ActionDetails.remove_action", "param_name": "removeActionValue", "static_instance": null, "getter_method": "getRemoveActionValue", "containing_data_type_ref": "team_log.ActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ActionDetails.team_invite_details": {"fq_name": "team_log.ActionDetails.team_invite_details", "param_name": "teamInviteDetailsValue", "static_instance": null, "getter_method": "getTeamInviteDetailsValue", "containing_data_type_ref": "team_log.ActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ActionDetails.team_join_details": {"fq_name": "team_log.ActionDetails.team_join_details", "param_name": "teamJoinDetailsValue", "static_instance": null, "getter_method": "getTeamJoinDetailsValue", "containing_data_type_ref": "team_log.ActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ActionDetails.other": {"fq_name": "team_log.ActionDetails.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ActorLogInfo.admin": {"fq_name": "team_log.ActorLogInfo.admin", "param_name": "adminValue", "static_instance": null, "getter_method": "getAdminValue", "containing_data_type_ref": "team_log.ActorLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ActorLogInfo.anonymous": {"fq_name": "team_log.ActorLogInfo.anonymous", "param_name": "anonymousValue", "static_instance": "ANONYMOUS", "getter_method": null, "containing_data_type_ref": "team_log.ActorLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ActorLogInfo.app": {"fq_name": "team_log.ActorLogInfo.app", "param_name": "appValue", "static_instance": null, "getter_method": "getAppValue", "containing_data_type_ref": "team_log.ActorLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ActorLogInfo.dropbox": {"fq_name": "team_log.ActorLogInfo.dropbox", "param_name": "dropboxValue", "static_instance": "DROPBOX", "getter_method": null, "containing_data_type_ref": "team_log.ActorLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ActorLogInfo.reseller": {"fq_name": "team_log.ActorLogInfo.reseller", "param_name": "resellerValue", "static_instance": null, "getter_method": "getResellerValue", "containing_data_type_ref": "team_log.ActorLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ActorLogInfo.user": {"fq_name": "team_log.ActorLogInfo.user", "param_name": "userValue", "static_instance": null, "getter_method": "getUserValue", "containing_data_type_ref": "team_log.ActorLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ActorLogInfo.other": {"fq_name": "team_log.ActorLogInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ActorLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.account_takeover": {"fq_name": "team_log.AdminAlertCategoryEnum.account_takeover", "param_name": "accountTakeoverValue", "static_instance": "ACCOUNT_TAKEOVER", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.data_loss_protection": {"fq_name": "team_log.AdminAlertCategoryEnum.data_loss_protection", "param_name": "dataLossProtectionValue", "static_instance": "DATA_LOSS_PROTECTION", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.information_governance": {"fq_name": "team_log.AdminAlertCategoryEnum.information_governance", "param_name": "informationGovernanceValue", "static_instance": "INFORMATION_GOVERNANCE", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.malware_sharing": {"fq_name": "team_log.AdminAlertCategoryEnum.malware_sharing", "param_name": "malwareSharingValue", "static_instance": "MALWARE_SHARING", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.massive_file_operation": {"fq_name": "team_log.AdminAlertCategoryEnum.massive_file_operation", "param_name": "massiveFileOperationValue", "static_instance": "MASSIVE_FILE_OPERATION", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.na": {"fq_name": "team_log.AdminAlertCategoryEnum.na", "param_name": "naValue", "static_instance": "NA", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.threat_management": {"fq_name": "team_log.AdminAlertCategoryEnum.threat_management", "param_name": "threatManagementValue", "static_instance": "THREAT_MANAGEMENT", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertCategoryEnum.other": {"fq_name": "team_log.AdminAlertCategoryEnum.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertCategoryEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertGeneralStateEnum.active": {"fq_name": "team_log.AdminAlertGeneralStateEnum.active", "param_name": "activeValue", "static_instance": "ACTIVE", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertGeneralStateEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertGeneralStateEnum.dismissed": {"fq_name": "team_log.AdminAlertGeneralStateEnum.dismissed", "param_name": "dismissedValue", "static_instance": "DISMISSED", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertGeneralStateEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertGeneralStateEnum.in_progress": {"fq_name": "team_log.AdminAlertGeneralStateEnum.in_progress", "param_name": "inProgressValue", "static_instance": "IN_PROGRESS", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertGeneralStateEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertGeneralStateEnum.na": {"fq_name": "team_log.AdminAlertGeneralStateEnum.na", "param_name": "naValue", "static_instance": "NA", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertGeneralStateEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertGeneralStateEnum.resolved": {"fq_name": "team_log.AdminAlertGeneralStateEnum.resolved", "param_name": "resolvedValue", "static_instance": "RESOLVED", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertGeneralStateEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertGeneralStateEnum.other": {"fq_name": "team_log.AdminAlertGeneralStateEnum.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertGeneralStateEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertSeverityEnum.high": {"fq_name": "team_log.AdminAlertSeverityEnum.high", "param_name": "highValue", "static_instance": "HIGH", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertSeverityEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertSeverityEnum.info": {"fq_name": "team_log.AdminAlertSeverityEnum.info", "param_name": "infoValue", "static_instance": "INFO", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertSeverityEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertSeverityEnum.low": {"fq_name": "team_log.AdminAlertSeverityEnum.low", "param_name": "lowValue", "static_instance": "LOW", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertSeverityEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertSeverityEnum.medium": {"fq_name": "team_log.AdminAlertSeverityEnum.medium", "param_name": "mediumValue", "static_instance": "MEDIUM", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertSeverityEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertSeverityEnum.na": {"fq_name": "team_log.AdminAlertSeverityEnum.na", "param_name": "naValue", "static_instance": "NA", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertSeverityEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertSeverityEnum.other": {"fq_name": "team_log.AdminAlertSeverityEnum.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertSeverityEnum", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertConfiguration.alert_state": {"fq_name": "team_log.AdminAlertingAlertConfiguration.alert_state", "param_name": "alertState", "static_instance": null, "getter_method": "getAlertState", "containing_data_type_ref": "team_log.AdminAlertingAlertConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertConfiguration.sensitivity_level": {"fq_name": "team_log.AdminAlertingAlertConfiguration.sensitivity_level", "param_name": "sensitivityLevel", "static_instance": null, "getter_method": "getSensitivityLevel", "containing_data_type_ref": "team_log.AdminAlertingAlertConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertConfiguration.recipients_settings": {"fq_name": "team_log.AdminAlertingAlertConfiguration.recipients_settings", "param_name": "recipientsSettings", "static_instance": null, "getter_method": "getRecipientsSettings", "containing_data_type_ref": "team_log.AdminAlertingAlertConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertConfiguration.text": {"fq_name": "team_log.AdminAlertingAlertConfiguration.text", "param_name": "text", "static_instance": null, "getter_method": "getText", "containing_data_type_ref": "team_log.AdminAlertingAlertConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertConfiguration.excluded_file_extensions": {"fq_name": "team_log.AdminAlertingAlertConfiguration.excluded_file_extensions", "param_name": "excludedFileExtensions", "static_instance": null, "getter_method": "getExcludedFileExtensions", "containing_data_type_ref": "team_log.AdminAlertingAlertConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertSensitivity.high": {"fq_name": "team_log.AdminAlertingAlertSensitivity.high", "param_name": "highValue", "static_instance": "HIGH", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertSensitivity", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertSensitivity.highest": {"fq_name": "team_log.AdminAlertingAlertSensitivity.highest", "param_name": "highestValue", "static_instance": "HIGHEST", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertSensitivity", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertSensitivity.invalid": {"fq_name": "team_log.AdminAlertingAlertSensitivity.invalid", "param_name": "invalidValue", "static_instance": "INVALID", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertSensitivity", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertSensitivity.low": {"fq_name": "team_log.AdminAlertingAlertSensitivity.low", "param_name": "lowValue", "static_instance": "LOW", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertSensitivity", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertSensitivity.lowest": {"fq_name": "team_log.AdminAlertingAlertSensitivity.lowest", "param_name": "lowestValue", "static_instance": "LOWEST", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertSensitivity", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertSensitivity.medium": {"fq_name": "team_log.AdminAlertingAlertSensitivity.medium", "param_name": "mediumValue", "static_instance": "MEDIUM", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertSensitivity", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertSensitivity.other": {"fq_name": "team_log.AdminAlertingAlertSensitivity.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertSensitivity", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStateChangedDetails.alert_name": {"fq_name": "team_log.AdminAlertingAlertStateChangedDetails.alert_name", "param_name": "alertName", "static_instance": null, "getter_method": "getAlertName", "containing_data_type_ref": "team_log.AdminAlertingAlertStateChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStateChangedDetails.alert_severity": {"fq_name": "team_log.AdminAlertingAlertStateChangedDetails.alert_severity", "param_name": "alertSeverity", "static_instance": null, "getter_method": "getAlertSeverity", "containing_data_type_ref": "team_log.AdminAlertingAlertStateChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStateChangedDetails.alert_category": {"fq_name": "team_log.AdminAlertingAlertStateChangedDetails.alert_category", "param_name": "alertCategory", "static_instance": null, "getter_method": "getAlertCategory", "containing_data_type_ref": "team_log.AdminAlertingAlertStateChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStateChangedDetails.alert_instance_id": {"fq_name": "team_log.AdminAlertingAlertStateChangedDetails.alert_instance_id", "param_name": "alertInstanceId", "static_instance": null, "getter_method": "getAlertInstanceId", "containing_data_type_ref": "team_log.AdminAlertingAlertStateChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStateChangedDetails.previous_value": {"fq_name": "team_log.AdminAlertingAlertStateChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.AdminAlertingAlertStateChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStateChangedDetails.new_value": {"fq_name": "team_log.AdminAlertingAlertStateChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.AdminAlertingAlertStateChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStateChangedType.description": {"fq_name": "team_log.AdminAlertingAlertStateChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AdminAlertingAlertStateChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStatePolicy.off": {"fq_name": "team_log.AdminAlertingAlertStatePolicy.off", "param_name": "offValue", "static_instance": "OFF", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertStatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStatePolicy.on": {"fq_name": "team_log.AdminAlertingAlertStatePolicy.on", "param_name": "onValue", "static_instance": "ON", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertStatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingAlertStatePolicy.other": {"fq_name": "team_log.AdminAlertingAlertStatePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminAlertingAlertStatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingChangedAlertConfigDetails.alert_name": {"fq_name": "team_log.AdminAlertingChangedAlertConfigDetails.alert_name", "param_name": "alertName", "static_instance": null, "getter_method": "getAlertName", "containing_data_type_ref": "team_log.AdminAlertingChangedAlertConfigDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingChangedAlertConfigDetails.previous_alert_config": {"fq_name": "team_log.AdminAlertingChangedAlertConfigDetails.previous_alert_config", "param_name": "previousAlertConfig", "static_instance": null, "getter_method": "getPreviousAlertConfig", "containing_data_type_ref": "team_log.AdminAlertingChangedAlertConfigDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingChangedAlertConfigDetails.new_alert_config": {"fq_name": "team_log.AdminAlertingChangedAlertConfigDetails.new_alert_config", "param_name": "newAlertConfig", "static_instance": null, "getter_method": "getNewAlertConfig", "containing_data_type_ref": "team_log.AdminAlertingChangedAlertConfigDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingChangedAlertConfigType.description": {"fq_name": "team_log.AdminAlertingChangedAlertConfigType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AdminAlertingChangedAlertConfigType", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingTriggeredAlertDetails.alert_name": {"fq_name": "team_log.AdminAlertingTriggeredAlertDetails.alert_name", "param_name": "alertName", "static_instance": null, "getter_method": "getAlertName", "containing_data_type_ref": "team_log.AdminAlertingTriggeredAlertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingTriggeredAlertDetails.alert_severity": {"fq_name": "team_log.AdminAlertingTriggeredAlertDetails.alert_severity", "param_name": "alertSeverity", "static_instance": null, "getter_method": "getAlertSeverity", "containing_data_type_ref": "team_log.AdminAlertingTriggeredAlertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingTriggeredAlertDetails.alert_category": {"fq_name": "team_log.AdminAlertingTriggeredAlertDetails.alert_category", "param_name": "alertCategory", "static_instance": null, "getter_method": "getAlertCategory", "containing_data_type_ref": "team_log.AdminAlertingTriggeredAlertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingTriggeredAlertDetails.alert_instance_id": {"fq_name": "team_log.AdminAlertingTriggeredAlertDetails.alert_instance_id", "param_name": "alertInstanceId", "static_instance": null, "getter_method": "getAlertInstanceId", "containing_data_type_ref": "team_log.AdminAlertingTriggeredAlertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminAlertingTriggeredAlertType.description": {"fq_name": "team_log.AdminAlertingTriggeredAlertType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AdminAlertingTriggeredAlertType", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminConsoleAppPermission.default_for_listed_apps": {"fq_name": "team_log.AdminConsoleAppPermission.default_for_listed_apps", "param_name": "defaultForListedAppsValue", "static_instance": "DEFAULT_FOR_LISTED_APPS", "getter_method": null, "containing_data_type_ref": "team_log.AdminConsoleAppPermission", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminConsoleAppPermission.default_for_unlisted_apps": {"fq_name": "team_log.AdminConsoleAppPermission.default_for_unlisted_apps", "param_name": "defaultForUnlistedAppsValue", "static_instance": "DEFAULT_FOR_UNLISTED_APPS", "getter_method": null, "containing_data_type_ref": "team_log.AdminConsoleAppPermission", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminConsoleAppPermission.other": {"fq_name": "team_log.AdminConsoleAppPermission.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminConsoleAppPermission", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminConsoleAppPolicy.allow": {"fq_name": "team_log.AdminConsoleAppPolicy.allow", "param_name": "allowValue", "static_instance": "ALLOW", "getter_method": null, "containing_data_type_ref": "team_log.AdminConsoleAppPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminConsoleAppPolicy.block": {"fq_name": "team_log.AdminConsoleAppPolicy.block", "param_name": "blockValue", "static_instance": "BLOCK", "getter_method": null, "containing_data_type_ref": "team_log.AdminConsoleAppPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminConsoleAppPolicy.default": {"fq_name": "team_log.AdminConsoleAppPolicy.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_log.AdminConsoleAppPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminConsoleAppPolicy.other": {"fq_name": "team_log.AdminConsoleAppPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminConsoleAppPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminEmailRemindersChangedDetails.new_value": {"fq_name": "team_log.AdminEmailRemindersChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.AdminEmailRemindersChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminEmailRemindersChangedDetails.previous_value": {"fq_name": "team_log.AdminEmailRemindersChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.AdminEmailRemindersChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminEmailRemindersChangedType.description": {"fq_name": "team_log.AdminEmailRemindersChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AdminEmailRemindersChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminEmailRemindersPolicy.default": {"fq_name": "team_log.AdminEmailRemindersPolicy.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_log.AdminEmailRemindersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminEmailRemindersPolicy.disabled": {"fq_name": "team_log.AdminEmailRemindersPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.AdminEmailRemindersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminEmailRemindersPolicy.enabled": {"fq_name": "team_log.AdminEmailRemindersPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.AdminEmailRemindersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminEmailRemindersPolicy.other": {"fq_name": "team_log.AdminEmailRemindersPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminEmailRemindersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.billing_admin": {"fq_name": "team_log.AdminRole.billing_admin", "param_name": "billingAdminValue", "static_instance": "BILLING_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.compliance_admin": {"fq_name": "team_log.AdminRole.compliance_admin", "param_name": "complianceAdminValue", "static_instance": "COMPLIANCE_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.content_admin": {"fq_name": "team_log.AdminRole.content_admin", "param_name": "contentAdminValue", "static_instance": "CONTENT_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.limited_admin": {"fq_name": "team_log.AdminRole.limited_admin", "param_name": "limitedAdminValue", "static_instance": "LIMITED_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.member_only": {"fq_name": "team_log.AdminRole.member_only", "param_name": "memberOnlyValue", "static_instance": "MEMBER_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.reporting_admin": {"fq_name": "team_log.AdminRole.reporting_admin", "param_name": "reportingAdminValue", "static_instance": "REPORTING_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.security_admin": {"fq_name": "team_log.AdminRole.security_admin", "param_name": "securityAdminValue", "static_instance": "SECURITY_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.support_admin": {"fq_name": "team_log.AdminRole.support_admin", "param_name": "supportAdminValue", "static_instance": "SUPPORT_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.team_admin": {"fq_name": "team_log.AdminRole.team_admin", "param_name": "teamAdminValue", "static_instance": "TEAM_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.user_management_admin": {"fq_name": "team_log.AdminRole.user_management_admin", "param_name": "userManagementAdminValue", "static_instance": "USER_MANAGEMENT_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AdminRole.other": {"fq_name": "team_log.AdminRole.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.AlertRecipientsSettingType.custom_list": {"fq_name": "team_log.AlertRecipientsSettingType.custom_list", "param_name": "customListValue", "static_instance": "CUSTOM_LIST", "getter_method": null, "containing_data_type_ref": "team_log.AlertRecipientsSettingType", "route_refs": [], "_type": "FieldReference"}, "team_log.AlertRecipientsSettingType.invalid": {"fq_name": "team_log.AlertRecipientsSettingType.invalid", "param_name": "invalidValue", "static_instance": "INVALID", "getter_method": null, "containing_data_type_ref": "team_log.AlertRecipientsSettingType", "route_refs": [], "_type": "FieldReference"}, "team_log.AlertRecipientsSettingType.none": {"fq_name": "team_log.AlertRecipientsSettingType.none", "param_name": "noneValue", "static_instance": "NONE", "getter_method": null, "containing_data_type_ref": "team_log.AlertRecipientsSettingType", "route_refs": [], "_type": "FieldReference"}, "team_log.AlertRecipientsSettingType.team_admins": {"fq_name": "team_log.AlertRecipientsSettingType.team_admins", "param_name": "teamAdminsValue", "static_instance": "TEAM_ADMINS", "getter_method": null, "containing_data_type_ref": "team_log.AlertRecipientsSettingType", "route_refs": [], "_type": "FieldReference"}, "team_log.AlertRecipientsSettingType.other": {"fq_name": "team_log.AlertRecipientsSettingType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AlertRecipientsSettingType", "route_refs": [], "_type": "FieldReference"}, "team_log.AllowDownloadDisabledType.description": {"fq_name": "team_log.AllowDownloadDisabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AllowDownloadDisabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.AllowDownloadEnabledType.description": {"fq_name": "team_log.AllowDownloadEnabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AllowDownloadEnabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.ApiSessionLogInfo.request_id": {"fq_name": "team_log.ApiSessionLogInfo.request_id", "param_name": "requestId", "static_instance": null, "getter_method": "getRequestId", "containing_data_type_ref": "team_log.ApiSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AppBlockedByPermissionsDetails.app_info": {"fq_name": "team_log.AppBlockedByPermissionsDetails.app_info", "param_name": "appInfo", "static_instance": null, "getter_method": "getAppInfo", "containing_data_type_ref": "team_log.AppBlockedByPermissionsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppBlockedByPermissionsType.description": {"fq_name": "team_log.AppBlockedByPermissionsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AppBlockedByPermissionsType", "route_refs": [], "_type": "FieldReference"}, "team_log.AppLinkTeamDetails.app_info": {"fq_name": "team_log.AppLinkTeamDetails.app_info", "param_name": "appInfo", "static_instance": null, "getter_method": "getAppInfo", "containing_data_type_ref": "team_log.AppLinkTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppLinkTeamType.description": {"fq_name": "team_log.AppLinkTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AppLinkTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.AppLinkUserDetails.app_info": {"fq_name": "team_log.AppLinkUserDetails.app_info", "param_name": "appInfo", "static_instance": null, "getter_method": "getAppInfo", "containing_data_type_ref": "team_log.AppLinkUserDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppLinkUserType.description": {"fq_name": "team_log.AppLinkUserType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AppLinkUserType", "route_refs": [], "_type": "FieldReference"}, "team_log.AppLogInfo.app_id": {"fq_name": "team_log.AppLogInfo.app_id", "param_name": "appId", "static_instance": null, "getter_method": "getAppId", "containing_data_type_ref": "team_log.AppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AppLogInfo.display_name": {"fq_name": "team_log.AppLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.AppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AppPermissionsChangedDetails.previous_value": {"fq_name": "team_log.AppPermissionsChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.AppPermissionsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppPermissionsChangedDetails.new_value": {"fq_name": "team_log.AppPermissionsChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.AppPermissionsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppPermissionsChangedDetails.app_name": {"fq_name": "team_log.AppPermissionsChangedDetails.app_name", "param_name": "appName", "static_instance": null, "getter_method": "getAppName", "containing_data_type_ref": "team_log.AppPermissionsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppPermissionsChangedDetails.permission": {"fq_name": "team_log.AppPermissionsChangedDetails.permission", "param_name": "permission", "static_instance": null, "getter_method": "getPermission", "containing_data_type_ref": "team_log.AppPermissionsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppPermissionsChangedType.description": {"fq_name": "team_log.AppPermissionsChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AppPermissionsChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.AppUnlinkTeamDetails.app_info": {"fq_name": "team_log.AppUnlinkTeamDetails.app_info", "param_name": "appInfo", "static_instance": null, "getter_method": "getAppInfo", "containing_data_type_ref": "team_log.AppUnlinkTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppUnlinkTeamType.description": {"fq_name": "team_log.AppUnlinkTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AppUnlinkTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.AppUnlinkUserDetails.app_info": {"fq_name": "team_log.AppUnlinkUserDetails.app_info", "param_name": "appInfo", "static_instance": null, "getter_method": "getAppInfo", "containing_data_type_ref": "team_log.AppUnlinkUserDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.AppUnlinkUserType.description": {"fq_name": "team_log.AppUnlinkUserType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.AppUnlinkUserType", "route_refs": [], "_type": "FieldReference"}, "team_log.ApplyNamingConventionType.description": {"fq_name": "team_log.ApplyNamingConventionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ApplyNamingConventionType", "route_refs": [], "_type": "FieldReference"}, "team_log.AssetLogInfo.file": {"fq_name": "team_log.AssetLogInfo.file", "param_name": "fileValue", "static_instance": null, "getter_method": "getFileValue", "containing_data_type_ref": "team_log.AssetLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AssetLogInfo.folder": {"fq_name": "team_log.AssetLogInfo.folder", "param_name": "folderValue", "static_instance": null, "getter_method": "getFolderValue", "containing_data_type_ref": "team_log.AssetLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AssetLogInfo.paper_document": {"fq_name": "team_log.AssetLogInfo.paper_document", "param_name": "paperDocumentValue", "static_instance": null, "getter_method": "getPaperDocumentValue", "containing_data_type_ref": "team_log.AssetLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AssetLogInfo.paper_folder": {"fq_name": "team_log.AssetLogInfo.paper_folder", "param_name": "paperFolderValue", "static_instance": null, "getter_method": "getPaperFolderValue", "containing_data_type_ref": "team_log.AssetLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AssetLogInfo.showcase_document": {"fq_name": "team_log.AssetLogInfo.showcase_document", "param_name": "showcaseDocumentValue", "static_instance": null, "getter_method": "getShowcaseDocumentValue", "containing_data_type_ref": "team_log.AssetLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.AssetLogInfo.other": {"fq_name": "team_log.AssetLogInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.AssetLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.BackupAdminInvitationSentType.description": {"fq_name": "team_log.BackupAdminInvitationSentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BackupAdminInvitationSentType", "route_refs": [], "_type": "FieldReference"}, "team_log.BackupInvitationOpenedType.description": {"fq_name": "team_log.BackupInvitationOpenedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BackupInvitationOpenedType", "route_refs": [], "_type": "FieldReference"}, "team_log.BackupStatus.disabled": {"fq_name": "team_log.BackupStatus.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.BackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.BackupStatus.enabled": {"fq_name": "team_log.BackupStatus.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.BackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.BackupStatus.other": {"fq_name": "team_log.BackupStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.BackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddPageDetails.event_uuid": {"fq_name": "team_log.BinderAddPageDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderAddPageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddPageDetails.doc_title": {"fq_name": "team_log.BinderAddPageDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderAddPageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddPageDetails.binder_item_name": {"fq_name": "team_log.BinderAddPageDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderAddPageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddPageType.description": {"fq_name": "team_log.BinderAddPageType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderAddPageType", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddSectionDetails.event_uuid": {"fq_name": "team_log.BinderAddSectionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderAddSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddSectionDetails.doc_title": {"fq_name": "team_log.BinderAddSectionDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderAddSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddSectionDetails.binder_item_name": {"fq_name": "team_log.BinderAddSectionDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderAddSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderAddSectionType.description": {"fq_name": "team_log.BinderAddSectionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderAddSectionType", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemovePageDetails.event_uuid": {"fq_name": "team_log.BinderRemovePageDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderRemovePageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemovePageDetails.doc_title": {"fq_name": "team_log.BinderRemovePageDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderRemovePageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemovePageDetails.binder_item_name": {"fq_name": "team_log.BinderRemovePageDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderRemovePageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemovePageType.description": {"fq_name": "team_log.BinderRemovePageType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderRemovePageType", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemoveSectionDetails.event_uuid": {"fq_name": "team_log.BinderRemoveSectionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderRemoveSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemoveSectionDetails.doc_title": {"fq_name": "team_log.BinderRemoveSectionDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderRemoveSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemoveSectionDetails.binder_item_name": {"fq_name": "team_log.BinderRemoveSectionDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderRemoveSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRemoveSectionType.description": {"fq_name": "team_log.BinderRemoveSectionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderRemoveSectionType", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenamePageDetails.event_uuid": {"fq_name": "team_log.BinderRenamePageDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderRenamePageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenamePageDetails.doc_title": {"fq_name": "team_log.BinderRenamePageDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderRenamePageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenamePageDetails.binder_item_name": {"fq_name": "team_log.BinderRenamePageDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderRenamePageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenamePageDetails.previous_binder_item_name": {"fq_name": "team_log.BinderRenamePageDetails.previous_binder_item_name", "param_name": "previousBinderItemName", "static_instance": null, "getter_method": "getPreviousBinderItemName", "containing_data_type_ref": "team_log.BinderRenamePageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenamePageType.description": {"fq_name": "team_log.BinderRenamePageType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderRenamePageType", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenameSectionDetails.event_uuid": {"fq_name": "team_log.BinderRenameSectionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderRenameSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenameSectionDetails.doc_title": {"fq_name": "team_log.BinderRenameSectionDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderRenameSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenameSectionDetails.binder_item_name": {"fq_name": "team_log.BinderRenameSectionDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderRenameSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenameSectionDetails.previous_binder_item_name": {"fq_name": "team_log.BinderRenameSectionDetails.previous_binder_item_name", "param_name": "previousBinderItemName", "static_instance": null, "getter_method": "getPreviousBinderItemName", "containing_data_type_ref": "team_log.BinderRenameSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderRenameSectionType.description": {"fq_name": "team_log.BinderRenameSectionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderRenameSectionType", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderPageDetails.event_uuid": {"fq_name": "team_log.BinderReorderPageDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderReorderPageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderPageDetails.doc_title": {"fq_name": "team_log.BinderReorderPageDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderReorderPageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderPageDetails.binder_item_name": {"fq_name": "team_log.BinderReorderPageDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderReorderPageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderPageType.description": {"fq_name": "team_log.BinderReorderPageType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderReorderPageType", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderSectionDetails.event_uuid": {"fq_name": "team_log.BinderReorderSectionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.BinderReorderSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderSectionDetails.doc_title": {"fq_name": "team_log.BinderReorderSectionDetails.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.BinderReorderSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderSectionDetails.binder_item_name": {"fq_name": "team_log.BinderReorderSectionDetails.binder_item_name", "param_name": "binderItemName", "static_instance": null, "getter_method": "getBinderItemName", "containing_data_type_ref": "team_log.BinderReorderSectionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.BinderReorderSectionType.description": {"fq_name": "team_log.BinderReorderSectionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.BinderReorderSectionType", "route_refs": [], "_type": "FieldReference"}, "team_log.CameraUploadsPolicy.disabled": {"fq_name": "team_log.CameraUploadsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.CameraUploadsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.CameraUploadsPolicy.enabled": {"fq_name": "team_log.CameraUploadsPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.CameraUploadsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.CameraUploadsPolicy.other": {"fq_name": "team_log.CameraUploadsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.CameraUploadsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.CameraUploadsPolicyChangedDetails.new_value": {"fq_name": "team_log.CameraUploadsPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.CameraUploadsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.CameraUploadsPolicyChangedDetails.previous_value": {"fq_name": "team_log.CameraUploadsPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.CameraUploadsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.CameraUploadsPolicyChangedType.description": {"fq_name": "team_log.CameraUploadsPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.CameraUploadsPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.CaptureTranscriptPolicy.default": {"fq_name": "team_log.CaptureTranscriptPolicy.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_log.CaptureTranscriptPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.CaptureTranscriptPolicy.disabled": {"fq_name": "team_log.CaptureTranscriptPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.CaptureTranscriptPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.CaptureTranscriptPolicy.enabled": {"fq_name": "team_log.CaptureTranscriptPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.CaptureTranscriptPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.CaptureTranscriptPolicy.other": {"fq_name": "team_log.CaptureTranscriptPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.CaptureTranscriptPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.CaptureTranscriptPolicyChangedDetails.new_value": {"fq_name": "team_log.CaptureTranscriptPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.CaptureTranscriptPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.CaptureTranscriptPolicyChangedDetails.previous_value": {"fq_name": "team_log.CaptureTranscriptPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.CaptureTranscriptPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.CaptureTranscriptPolicyChangedType.description": {"fq_name": "team_log.CaptureTranscriptPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.CaptureTranscriptPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.Certificate.subject": {"fq_name": "team_log.Certificate.subject", "param_name": "subject", "static_instance": null, "getter_method": "getSubject", "containing_data_type_ref": "team_log.Certificate", "route_refs": [], "_type": "FieldReference"}, "team_log.Certificate.issuer": {"fq_name": "team_log.Certificate.issuer", "param_name": "issuer", "static_instance": null, "getter_method": "getIssuer", "containing_data_type_ref": "team_log.Certificate", "route_refs": [], "_type": "FieldReference"}, "team_log.Certificate.issue_date": {"fq_name": "team_log.Certificate.issue_date", "param_name": "issueDate", "static_instance": null, "getter_method": "getIssueDate", "containing_data_type_ref": "team_log.Certificate", "route_refs": [], "_type": "FieldReference"}, "team_log.Certificate.expiration_date": {"fq_name": "team_log.Certificate.expiration_date", "param_name": "expirationDate", "static_instance": null, "getter_method": "getExpirationDate", "containing_data_type_ref": "team_log.Certificate", "route_refs": [], "_type": "FieldReference"}, "team_log.Certificate.serial_number": {"fq_name": "team_log.Certificate.serial_number", "param_name": "serialNumber", "static_instance": null, "getter_method": "getSerialNumber", "containing_data_type_ref": "team_log.Certificate", "route_refs": [], "_type": "FieldReference"}, "team_log.Certificate.sha1_fingerprint": {"fq_name": "team_log.Certificate.sha1_fingerprint", "param_name": "sha1Fingerprint", "static_instance": null, "getter_method": "getSha1Fingerprint", "containing_data_type_ref": "team_log.Certificate", "route_refs": [], "_type": "FieldReference"}, "team_log.Certificate.common_name": {"fq_name": "team_log.Certificate.common_name", "param_name": "commonName", "static_instance": null, "getter_method": "getCommonName", "containing_data_type_ref": "team_log.Certificate", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangeLinkExpirationPolicy.allowed": {"fq_name": "team_log.ChangeLinkExpirationPolicy.allowed", "param_name": "allowedValue", "static_instance": "ALLOWED", "getter_method": null, "containing_data_type_ref": "team_log.ChangeLinkExpirationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangeLinkExpirationPolicy.not_allowed": {"fq_name": "team_log.ChangeLinkExpirationPolicy.not_allowed", "param_name": "notAllowedValue", "static_instance": "NOT_ALLOWED", "getter_method": null, "containing_data_type_ref": "team_log.ChangeLinkExpirationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangeLinkExpirationPolicy.other": {"fq_name": "team_log.ChangeLinkExpirationPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ChangeLinkExpirationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseAdminRoleDetails.previous_value": {"fq_name": "team_log.ChangedEnterpriseAdminRoleDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ChangedEnterpriseAdminRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseAdminRoleDetails.new_value": {"fq_name": "team_log.ChangedEnterpriseAdminRoleDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ChangedEnterpriseAdminRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseAdminRoleDetails.team_name": {"fq_name": "team_log.ChangedEnterpriseAdminRoleDetails.team_name", "param_name": "teamName", "static_instance": null, "getter_method": "getTeamName", "containing_data_type_ref": "team_log.ChangedEnterpriseAdminRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseAdminRoleType.description": {"fq_name": "team_log.ChangedEnterpriseAdminRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ChangedEnterpriseAdminRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseConnectedTeamStatusDetails.action": {"fq_name": "team_log.ChangedEnterpriseConnectedTeamStatusDetails.action", "param_name": "action", "static_instance": null, "getter_method": "getAction", "containing_data_type_ref": "team_log.ChangedEnterpriseConnectedTeamStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseConnectedTeamStatusDetails.additional_info": {"fq_name": "team_log.ChangedEnterpriseConnectedTeamStatusDetails.additional_info", "param_name": "additionalInfo", "static_instance": null, "getter_method": "getAdditionalInfo", "containing_data_type_ref": "team_log.ChangedEnterpriseConnectedTeamStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseConnectedTeamStatusDetails.previous_value": {"fq_name": "team_log.ChangedEnterpriseConnectedTeamStatusDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ChangedEnterpriseConnectedTeamStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseConnectedTeamStatusDetails.new_value": {"fq_name": "team_log.ChangedEnterpriseConnectedTeamStatusDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ChangedEnterpriseConnectedTeamStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ChangedEnterpriseConnectedTeamStatusType.description": {"fq_name": "team_log.ChangedEnterpriseConnectedTeamStatusType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ChangedEnterpriseConnectedTeamStatusType", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationChangePolicyDetails.previous_value": {"fq_name": "team_log.ClassificationChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ClassificationChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationChangePolicyDetails.new_value": {"fq_name": "team_log.ClassificationChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ClassificationChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationChangePolicyDetails.classification_type": {"fq_name": "team_log.ClassificationChangePolicyDetails.classification_type", "param_name": "classificationType", "static_instance": null, "getter_method": "getClassificationType", "containing_data_type_ref": "team_log.ClassificationChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationChangePolicyType.description": {"fq_name": "team_log.ClassificationChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ClassificationChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationCreateReportFailDetails.failure_reason": {"fq_name": "team_log.ClassificationCreateReportFailDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.ClassificationCreateReportFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationCreateReportFailType.description": {"fq_name": "team_log.ClassificationCreateReportFailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ClassificationCreateReportFailType", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationCreateReportType.description": {"fq_name": "team_log.ClassificationCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ClassificationCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationPolicyEnumWrapper.disabled": {"fq_name": "team_log.ClassificationPolicyEnumWrapper.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationPolicyEnumWrapper", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationPolicyEnumWrapper.enabled": {"fq_name": "team_log.ClassificationPolicyEnumWrapper.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationPolicyEnumWrapper", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationPolicyEnumWrapper.member_and_team_folders": {"fq_name": "team_log.ClassificationPolicyEnumWrapper.member_and_team_folders", "param_name": "memberAndTeamFoldersValue", "static_instance": "MEMBER_AND_TEAM_FOLDERS", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationPolicyEnumWrapper", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationPolicyEnumWrapper.team_folders": {"fq_name": "team_log.ClassificationPolicyEnumWrapper.team_folders", "param_name": "teamFoldersValue", "static_instance": "TEAM_FOLDERS", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationPolicyEnumWrapper", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationPolicyEnumWrapper.other": {"fq_name": "team_log.ClassificationPolicyEnumWrapper.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationPolicyEnumWrapper", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationType.personal_information": {"fq_name": "team_log.ClassificationType.personal_information", "param_name": "personalInformationValue", "static_instance": "PERSONAL_INFORMATION", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationType", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationType.pii": {"fq_name": "team_log.ClassificationType.pii", "param_name": "piiValue", "static_instance": "PII", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationType", "route_refs": [], "_type": "FieldReference"}, "team_log.ClassificationType.other": {"fq_name": "team_log.ClassificationType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ClassificationType", "route_refs": [], "_type": "FieldReference"}, "team_log.CollectionShareDetails.album_name": {"fq_name": "team_log.CollectionShareDetails.album_name", "param_name": "albumName", "static_instance": null, "getter_method": "getAlbumName", "containing_data_type_ref": "team_log.CollectionShareDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.CollectionShareType.description": {"fq_name": "team_log.CollectionShareType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.CollectionShareType", "route_refs": [], "_type": "FieldReference"}, "team_log.ComputerBackupPolicy.default": {"fq_name": "team_log.ComputerBackupPolicy.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_log.ComputerBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ComputerBackupPolicy.disabled": {"fq_name": "team_log.ComputerBackupPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ComputerBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ComputerBackupPolicy.enabled": {"fq_name": "team_log.ComputerBackupPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ComputerBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ComputerBackupPolicy.other": {"fq_name": "team_log.ComputerBackupPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ComputerBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ComputerBackupPolicyChangedDetails.new_value": {"fq_name": "team_log.ComputerBackupPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ComputerBackupPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ComputerBackupPolicyChangedDetails.previous_value": {"fq_name": "team_log.ComputerBackupPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ComputerBackupPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ComputerBackupPolicyChangedType.description": {"fq_name": "team_log.ComputerBackupPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ComputerBackupPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ConnectedTeamName.team": {"fq_name": "team_log.ConnectedTeamName.team", "param_name": "team", "static_instance": null, "getter_method": "getTeam", "containing_data_type_ref": "team_log.ConnectedTeamName", "route_refs": [], "_type": "FieldReference"}, "team_log.ContentAdministrationPolicyChangedDetails.new_value": {"fq_name": "team_log.ContentAdministrationPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ContentAdministrationPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ContentAdministrationPolicyChangedDetails.previous_value": {"fq_name": "team_log.ContentAdministrationPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ContentAdministrationPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ContentAdministrationPolicyChangedType.description": {"fq_name": "team_log.ContentAdministrationPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ContentAdministrationPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ContentPermanentDeletePolicy.disabled": {"fq_name": "team_log.ContentPermanentDeletePolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ContentPermanentDeletePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ContentPermanentDeletePolicy.enabled": {"fq_name": "team_log.ContentPermanentDeletePolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ContentPermanentDeletePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ContentPermanentDeletePolicy.other": {"fq_name": "team_log.ContentPermanentDeletePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ContentPermanentDeletePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ContextLogInfo.anonymous": {"fq_name": "team_log.ContextLogInfo.anonymous", "param_name": "anonymousValue", "static_instance": "ANONYMOUS", "getter_method": null, "containing_data_type_ref": "team_log.ContextLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ContextLogInfo.non_team_member": {"fq_name": "team_log.ContextLogInfo.non_team_member", "param_name": "nonTeamMemberValue", "static_instance": null, "getter_method": "getNonTeamMemberValue", "containing_data_type_ref": "team_log.ContextLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ContextLogInfo.organization_team": {"fq_name": "team_log.ContextLogInfo.organization_team", "param_name": "organizationTeamValue", "static_instance": null, "getter_method": "getOrganizationTeamValue", "containing_data_type_ref": "team_log.ContextLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ContextLogInfo.team": {"fq_name": "team_log.ContextLogInfo.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "team_log.ContextLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ContextLogInfo.team_member": {"fq_name": "team_log.ContextLogInfo.team_member", "param_name": "teamMemberValue", "static_instance": null, "getter_method": "getTeamMemberValue", "containing_data_type_ref": "team_log.ContextLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ContextLogInfo.trusted_non_team_member": {"fq_name": "team_log.ContextLogInfo.trusted_non_team_member", "param_name": "trustedNonTeamMemberValue", "static_instance": null, "getter_method": "getTrustedNonTeamMemberValue", "containing_data_type_ref": "team_log.ContextLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ContextLogInfo.other": {"fq_name": "team_log.ContextLogInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ContextLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.CreateFolderType.description": {"fq_name": "team_log.CreateFolderType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.CreateFolderType", "route_refs": [], "_type": "FieldReference"}, "team_log.CreateTeamInviteLinkDetails.link_url": {"fq_name": "team_log.CreateTeamInviteLinkDetails.link_url", "param_name": "linkUrl", "static_instance": null, "getter_method": "getLinkUrl", "containing_data_type_ref": "team_log.CreateTeamInviteLinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.CreateTeamInviteLinkDetails.expiry_date": {"fq_name": "team_log.CreateTeamInviteLinkDetails.expiry_date", "param_name": "expiryDate", "static_instance": null, "getter_method": "getExpiryDate", "containing_data_type_ref": "team_log.CreateTeamInviteLinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.CreateTeamInviteLinkType.description": {"fq_name": "team_log.CreateTeamInviteLinkType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.CreateTeamInviteLinkType", "route_refs": [], "_type": "FieldReference"}, "team_log.DataPlacementRestrictionChangePolicyDetails.previous_value": {"fq_name": "team_log.DataPlacementRestrictionChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.DataPlacementRestrictionChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DataPlacementRestrictionChangePolicyDetails.new_value": {"fq_name": "team_log.DataPlacementRestrictionChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.DataPlacementRestrictionChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DataPlacementRestrictionChangePolicyType.description": {"fq_name": "team_log.DataPlacementRestrictionChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DataPlacementRestrictionChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.DataPlacementRestrictionSatisfyPolicyDetails.placement_restriction": {"fq_name": "team_log.DataPlacementRestrictionSatisfyPolicyDetails.placement_restriction", "param_name": "placementRestriction", "static_instance": null, "getter_method": "getPlacementRestriction", "containing_data_type_ref": "team_log.DataPlacementRestrictionSatisfyPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DataPlacementRestrictionSatisfyPolicyType.description": {"fq_name": "team_log.DataPlacementRestrictionSatisfyPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DataPlacementRestrictionSatisfyPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.DataResidencyMigrationRequestSuccessfulType.description": {"fq_name": "team_log.DataResidencyMigrationRequestSuccessfulType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DataResidencyMigrationRequestSuccessfulType", "route_refs": [], "_type": "FieldReference"}, "team_log.DataResidencyMigrationRequestUnsuccessfulType.description": {"fq_name": "team_log.DataResidencyMigrationRequestUnsuccessfulType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DataResidencyMigrationRequestUnsuccessfulType", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.day_1": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.day_1", "param_name": "day1Value", "static_instance": "DAY_1", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.day_180": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.day_180", "param_name": "day180Value", "static_instance": "DAY_180", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.day_3": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.day_3", "param_name": "day3Value", "static_instance": "DAY_3", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.day_30": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.day_30", "param_name": "day30Value", "static_instance": "DAY_30", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.day_7": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.day_7", "param_name": "day7Value", "static_instance": "DAY_7", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.day_90": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.day_90", "param_name": "day90Value", "static_instance": "DAY_90", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.none": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.none", "param_name": "noneValue", "static_instance": "NONE", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.year_1": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.year_1", "param_name": "year1Value", "static_instance": "YEAR_1", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DefaultLinkExpirationDaysPolicy.other": {"fq_name": "team_log.DefaultLinkExpirationDaysPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.DefaultLinkExpirationDaysPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DeleteTeamInviteLinkDetails.link_url": {"fq_name": "team_log.DeleteTeamInviteLinkDetails.link_url", "param_name": "linkUrl", "static_instance": null, "getter_method": "getLinkUrl", "containing_data_type_ref": "team_log.DeleteTeamInviteLinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeleteTeamInviteLinkType.description": {"fq_name": "team_log.DeleteTeamInviteLinkType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeleteTeamInviteLinkType", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.host_name": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.host_name", "param_name": "hostName", "static_instance": null, "getter_method": "getHostName", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.client_type": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.client_type", "param_name": "clientType", "static_instance": null, "getter_method": "getClientType", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.platform": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.platform", "param_name": "platform", "static_instance": null, "getter_method": "getPlatform", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.is_delete_on_unlink_supported": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.is_delete_on_unlink_supported", "param_name": "isDeleteOnUnlinkSupported", "static_instance": null, "getter_method": "getIsDeleteOnUnlinkSupported", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.ip_address": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.created": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.updated": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.session_info": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.session_info", "param_name": "sessionInfo", "static_instance": null, "getter_method": "getSessionInfo", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopDeviceSessionLogInfo.client_version": {"fq_name": "team_log.DesktopDeviceSessionLogInfo.client_version", "param_name": "clientVersion", "static_instance": null, "getter_method": "getClientVersion", "containing_data_type_ref": "team_log.DesktopDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DesktopSessionLogInfo.session_id": {"fq_name": "team_log.DesktopSessionLogInfo.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team_log.DesktopSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsAddExceptionType.description": {"fq_name": "team_log.DeviceApprovalsAddExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceApprovalsAddExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeDesktopPolicyDetails.new_value": {"fq_name": "team_log.DeviceApprovalsChangeDesktopPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeDesktopPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeDesktopPolicyDetails.previous_value": {"fq_name": "team_log.DeviceApprovalsChangeDesktopPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeDesktopPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeDesktopPolicyType.description": {"fq_name": "team_log.DeviceApprovalsChangeDesktopPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceApprovalsChangeDesktopPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeMobilePolicyDetails.new_value": {"fq_name": "team_log.DeviceApprovalsChangeMobilePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeMobilePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeMobilePolicyDetails.previous_value": {"fq_name": "team_log.DeviceApprovalsChangeMobilePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeMobilePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeMobilePolicyType.description": {"fq_name": "team_log.DeviceApprovalsChangeMobilePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceApprovalsChangeMobilePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeOverageActionDetails.new_value": {"fq_name": "team_log.DeviceApprovalsChangeOverageActionDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeOverageActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeOverageActionDetails.previous_value": {"fq_name": "team_log.DeviceApprovalsChangeOverageActionDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeOverageActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeOverageActionType.description": {"fq_name": "team_log.DeviceApprovalsChangeOverageActionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceApprovalsChangeOverageActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeUnlinkActionDetails.new_value": {"fq_name": "team_log.DeviceApprovalsChangeUnlinkActionDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeUnlinkActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeUnlinkActionDetails.previous_value": {"fq_name": "team_log.DeviceApprovalsChangeUnlinkActionDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.DeviceApprovalsChangeUnlinkActionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsChangeUnlinkActionType.description": {"fq_name": "team_log.DeviceApprovalsChangeUnlinkActionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceApprovalsChangeUnlinkActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsPolicy.limited": {"fq_name": "team_log.DeviceApprovalsPolicy.limited", "param_name": "limitedValue", "static_instance": "LIMITED", "getter_method": null, "containing_data_type_ref": "team_log.DeviceApprovalsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsPolicy.unlimited": {"fq_name": "team_log.DeviceApprovalsPolicy.unlimited", "param_name": "unlimitedValue", "static_instance": "UNLIMITED", "getter_method": null, "containing_data_type_ref": "team_log.DeviceApprovalsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsPolicy.other": {"fq_name": "team_log.DeviceApprovalsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.DeviceApprovalsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceApprovalsRemoveExceptionType.description": {"fq_name": "team_log.DeviceApprovalsRemoveExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceApprovalsRemoveExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceChangeIpDesktopDetails.device_session_info": {"fq_name": "team_log.DeviceChangeIpDesktopDetails.device_session_info", "param_name": "deviceSessionInfo", "static_instance": null, "getter_method": "getDeviceSessionInfo", "containing_data_type_ref": "team_log.DeviceChangeIpDesktopDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceChangeIpDesktopType.description": {"fq_name": "team_log.DeviceChangeIpDesktopType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceChangeIpDesktopType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceChangeIpMobileDetails.device_session_info": {"fq_name": "team_log.DeviceChangeIpMobileDetails.device_session_info", "param_name": "deviceSessionInfo", "static_instance": null, "getter_method": "getDeviceSessionInfo", "containing_data_type_ref": "team_log.DeviceChangeIpMobileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceChangeIpMobileType.description": {"fq_name": "team_log.DeviceChangeIpMobileType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceChangeIpMobileType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceChangeIpWebDetails.user_agent": {"fq_name": "team_log.DeviceChangeIpWebDetails.user_agent", "param_name": "userAgent", "static_instance": null, "getter_method": "getUserAgent", "containing_data_type_ref": "team_log.DeviceChangeIpWebDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceChangeIpWebType.description": {"fq_name": "team_log.DeviceChangeIpWebType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceChangeIpWebType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceDeleteOnUnlinkFailDetails.num_failures": {"fq_name": "team_log.DeviceDeleteOnUnlinkFailDetails.num_failures", "param_name": "numFailures", "static_instance": null, "getter_method": "getNumFailures", "containing_data_type_ref": "team_log.DeviceDeleteOnUnlinkFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceDeleteOnUnlinkFailDetails.session_info": {"fq_name": "team_log.DeviceDeleteOnUnlinkFailDetails.session_info", "param_name": "sessionInfo", "static_instance": null, "getter_method": "getSessionInfo", "containing_data_type_ref": "team_log.DeviceDeleteOnUnlinkFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceDeleteOnUnlinkFailDetails.display_name": {"fq_name": "team_log.DeviceDeleteOnUnlinkFailDetails.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.DeviceDeleteOnUnlinkFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceDeleteOnUnlinkFailType.description": {"fq_name": "team_log.DeviceDeleteOnUnlinkFailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceDeleteOnUnlinkFailType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceDeleteOnUnlinkSuccessDetails.session_info": {"fq_name": "team_log.DeviceDeleteOnUnlinkSuccessDetails.session_info", "param_name": "sessionInfo", "static_instance": null, "getter_method": "getSessionInfo", "containing_data_type_ref": "team_log.DeviceDeleteOnUnlinkSuccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceDeleteOnUnlinkSuccessDetails.display_name": {"fq_name": "team_log.DeviceDeleteOnUnlinkSuccessDetails.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.DeviceDeleteOnUnlinkSuccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceDeleteOnUnlinkSuccessType.description": {"fq_name": "team_log.DeviceDeleteOnUnlinkSuccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceDeleteOnUnlinkSuccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceLinkFailDetails.device_type": {"fq_name": "team_log.DeviceLinkFailDetails.device_type", "param_name": "deviceType", "static_instance": null, "getter_method": "getDeviceType", "containing_data_type_ref": "team_log.DeviceLinkFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceLinkFailDetails.ip_address": {"fq_name": "team_log.DeviceLinkFailDetails.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team_log.DeviceLinkFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceLinkFailType.description": {"fq_name": "team_log.DeviceLinkFailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceLinkFailType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceLinkSuccessDetails.device_session_info": {"fq_name": "team_log.DeviceLinkSuccessDetails.device_session_info", "param_name": "deviceSessionInfo", "static_instance": null, "getter_method": "getDeviceSessionInfo", "containing_data_type_ref": "team_log.DeviceLinkSuccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceLinkSuccessType.description": {"fq_name": "team_log.DeviceLinkSuccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceLinkSuccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceManagementDisabledType.description": {"fq_name": "team_log.DeviceManagementDisabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceManagementDisabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceManagementEnabledType.description": {"fq_name": "team_log.DeviceManagementEnabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceManagementEnabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceSessionLogInfo.ip_address": {"fq_name": "team_log.DeviceSessionLogInfo.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team_log.DeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceSessionLogInfo.created": {"fq_name": "team_log.DeviceSessionLogInfo.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team_log.DeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceSessionLogInfo.updated": {"fq_name": "team_log.DeviceSessionLogInfo.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team_log.DeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceSyncBackupStatusChangedDetails.desktop_device_session_info": {"fq_name": "team_log.DeviceSyncBackupStatusChangedDetails.desktop_device_session_info", "param_name": "desktopDeviceSessionInfo", "static_instance": null, "getter_method": "getDesktopDeviceSessionInfo", "containing_data_type_ref": "team_log.DeviceSyncBackupStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceSyncBackupStatusChangedDetails.previous_value": {"fq_name": "team_log.DeviceSyncBackupStatusChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.DeviceSyncBackupStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceSyncBackupStatusChangedDetails.new_value": {"fq_name": "team_log.DeviceSyncBackupStatusChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.DeviceSyncBackupStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceSyncBackupStatusChangedType.description": {"fq_name": "team_log.DeviceSyncBackupStatusChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceSyncBackupStatusChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceType.desktop": {"fq_name": "team_log.DeviceType.desktop", "param_name": "desktopValue", "static_instance": "DESKTOP", "getter_method": null, "containing_data_type_ref": "team_log.DeviceType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceType.mobile": {"fq_name": "team_log.DeviceType.mobile", "param_name": "mobileValue", "static_instance": "MOBILE", "getter_method": null, "containing_data_type_ref": "team_log.DeviceType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceType.other": {"fq_name": "team_log.DeviceType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.DeviceType", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceUnlinkDetails.delete_data": {"fq_name": "team_log.DeviceUnlinkDetails.delete_data", "param_name": "deleteData", "static_instance": null, "getter_method": "getDeleteData", "containing_data_type_ref": "team_log.DeviceUnlinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceUnlinkDetails.session_info": {"fq_name": "team_log.DeviceUnlinkDetails.session_info", "param_name": "sessionInfo", "static_instance": null, "getter_method": "getSessionInfo", "containing_data_type_ref": "team_log.DeviceUnlinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceUnlinkDetails.display_name": {"fq_name": "team_log.DeviceUnlinkDetails.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.DeviceUnlinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceUnlinkPolicy.keep": {"fq_name": "team_log.DeviceUnlinkPolicy.keep", "param_name": "keepValue", "static_instance": "KEEP", "getter_method": null, "containing_data_type_ref": "team_log.DeviceUnlinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceUnlinkPolicy.remove": {"fq_name": "team_log.DeviceUnlinkPolicy.remove", "param_name": "removeValue", "static_instance": "REMOVE", "getter_method": null, "containing_data_type_ref": "team_log.DeviceUnlinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceUnlinkPolicy.other": {"fq_name": "team_log.DeviceUnlinkPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.DeviceUnlinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DeviceUnlinkType.description": {"fq_name": "team_log.DeviceUnlinkType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DeviceUnlinkType", "route_refs": [], "_type": "FieldReference"}, "team_log.DirectoryRestrictionsAddMembersType.description": {"fq_name": "team_log.DirectoryRestrictionsAddMembersType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DirectoryRestrictionsAddMembersType", "route_refs": [], "_type": "FieldReference"}, "team_log.DirectoryRestrictionsRemoveMembersType.description": {"fq_name": "team_log.DirectoryRestrictionsRemoveMembersType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DirectoryRestrictionsRemoveMembersType", "route_refs": [], "_type": "FieldReference"}, "team_log.DisabledDomainInvitesType.description": {"fq_name": "team_log.DisabledDomainInvitesType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DisabledDomainInvitesType", "route_refs": [], "_type": "FieldReference"}, "team_log.DispositionActionType.automatic_delete": {"fq_name": "team_log.DispositionActionType.automatic_delete", "param_name": "automaticDeleteValue", "static_instance": "AUTOMATIC_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.DispositionActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.DispositionActionType.automatic_permanently_delete": {"fq_name": "team_log.DispositionActionType.automatic_permanently_delete", "param_name": "automaticPermanentlyDeleteValue", "static_instance": "AUTOMATIC_PERMANENTLY_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.DispositionActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.DispositionActionType.other": {"fq_name": "team_log.DispositionActionType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.DispositionActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesApproveRequestToJoinTeamType.description": {"fq_name": "team_log.DomainInvitesApproveRequestToJoinTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainInvitesApproveRequestToJoinTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesDeclineRequestToJoinTeamType.description": {"fq_name": "team_log.DomainInvitesDeclineRequestToJoinTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainInvitesDeclineRequestToJoinTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesEmailExistingUsersDetails.domain_name": {"fq_name": "team_log.DomainInvitesEmailExistingUsersDetails.domain_name", "param_name": "domainName", "static_instance": null, "getter_method": "getDomainName", "containing_data_type_ref": "team_log.DomainInvitesEmailExistingUsersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesEmailExistingUsersDetails.num_recipients": {"fq_name": "team_log.DomainInvitesEmailExistingUsersDetails.num_recipients", "param_name": "numRecipients", "static_instance": null, "getter_method": "getNumRecipients", "containing_data_type_ref": "team_log.DomainInvitesEmailExistingUsersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesEmailExistingUsersType.description": {"fq_name": "team_log.DomainInvitesEmailExistingUsersType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainInvitesEmailExistingUsersType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesRequestToJoinTeamType.description": {"fq_name": "team_log.DomainInvitesRequestToJoinTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainInvitesRequestToJoinTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesSetInviteNewUserPrefToNoType.description": {"fq_name": "team_log.DomainInvitesSetInviteNewUserPrefToNoType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainInvitesSetInviteNewUserPrefToNoType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainInvitesSetInviteNewUserPrefToYesType.description": {"fq_name": "team_log.DomainInvitesSetInviteNewUserPrefToYesType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainInvitesSetInviteNewUserPrefToYesType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationAddDomainFailDetails.domain_name": {"fq_name": "team_log.DomainVerificationAddDomainFailDetails.domain_name", "param_name": "domainName", "static_instance": null, "getter_method": "getDomainName", "containing_data_type_ref": "team_log.DomainVerificationAddDomainFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationAddDomainFailDetails.verification_method": {"fq_name": "team_log.DomainVerificationAddDomainFailDetails.verification_method", "param_name": "verificationMethod", "static_instance": null, "getter_method": "getVerificationMethod", "containing_data_type_ref": "team_log.DomainVerificationAddDomainFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationAddDomainFailType.description": {"fq_name": "team_log.DomainVerificationAddDomainFailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainVerificationAddDomainFailType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationAddDomainSuccessDetails.domain_names": {"fq_name": "team_log.DomainVerificationAddDomainSuccessDetails.domain_names", "param_name": "domainNames", "static_instance": null, "getter_method": "getDomainNames", "containing_data_type_ref": "team_log.DomainVerificationAddDomainSuccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationAddDomainSuccessDetails.verification_method": {"fq_name": "team_log.DomainVerificationAddDomainSuccessDetails.verification_method", "param_name": "verificationMethod", "static_instance": null, "getter_method": "getVerificationMethod", "containing_data_type_ref": "team_log.DomainVerificationAddDomainSuccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationAddDomainSuccessType.description": {"fq_name": "team_log.DomainVerificationAddDomainSuccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainVerificationAddDomainSuccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationRemoveDomainDetails.domain_names": {"fq_name": "team_log.DomainVerificationRemoveDomainDetails.domain_names", "param_name": "domainNames", "static_instance": null, "getter_method": "getDomainNames", "containing_data_type_ref": "team_log.DomainVerificationRemoveDomainDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DomainVerificationRemoveDomainType.description": {"fq_name": "team_log.DomainVerificationRemoveDomainType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DomainVerificationRemoveDomainType", "route_refs": [], "_type": "FieldReference"}, "team_log.DownloadPolicyType.allow": {"fq_name": "team_log.DownloadPolicyType.allow", "param_name": "allowValue", "static_instance": "ALLOW", "getter_method": null, "containing_data_type_ref": "team_log.DownloadPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.DownloadPolicyType.disallow": {"fq_name": "team_log.DownloadPolicyType.disallow", "param_name": "disallowValue", "static_instance": "DISALLOW", "getter_method": null, "containing_data_type_ref": "team_log.DownloadPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.DownloadPolicyType.other": {"fq_name": "team_log.DownloadPolicyType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.DownloadPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsExportedDetails.platform": {"fq_name": "team_log.DropboxPasswordsExportedDetails.platform", "param_name": "platform", "static_instance": null, "getter_method": "getPlatform", "containing_data_type_ref": "team_log.DropboxPasswordsExportedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsExportedType.description": {"fq_name": "team_log.DropboxPasswordsExportedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DropboxPasswordsExportedType", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsNewDeviceEnrolledDetails.is_first_device": {"fq_name": "team_log.DropboxPasswordsNewDeviceEnrolledDetails.is_first_device", "param_name": "isFirstDevice", "static_instance": null, "getter_method": "getIsFirstDevice", "containing_data_type_ref": "team_log.DropboxPasswordsNewDeviceEnrolledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsNewDeviceEnrolledDetails.platform": {"fq_name": "team_log.DropboxPasswordsNewDeviceEnrolledDetails.platform", "param_name": "platform", "static_instance": null, "getter_method": "getPlatform", "containing_data_type_ref": "team_log.DropboxPasswordsNewDeviceEnrolledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsNewDeviceEnrolledType.description": {"fq_name": "team_log.DropboxPasswordsNewDeviceEnrolledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DropboxPasswordsNewDeviceEnrolledType", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsPolicy.default": {"fq_name": "team_log.DropboxPasswordsPolicy.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_log.DropboxPasswordsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsPolicy.disabled": {"fq_name": "team_log.DropboxPasswordsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.DropboxPasswordsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsPolicy.enabled": {"fq_name": "team_log.DropboxPasswordsPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.DropboxPasswordsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsPolicy.other": {"fq_name": "team_log.DropboxPasswordsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.DropboxPasswordsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsPolicyChangedDetails.new_value": {"fq_name": "team_log.DropboxPasswordsPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.DropboxPasswordsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsPolicyChangedDetails.previous_value": {"fq_name": "team_log.DropboxPasswordsPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.DropboxPasswordsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.DropboxPasswordsPolicyChangedType.description": {"fq_name": "team_log.DropboxPasswordsPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.DropboxPasswordsPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.DurationLogInfo.unit": {"fq_name": "team_log.DurationLogInfo.unit", "param_name": "unit", "static_instance": null, "getter_method": "getUnit", "containing_data_type_ref": "team_log.DurationLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.DurationLogInfo.amount": {"fq_name": "team_log.DurationLogInfo.amount", "param_name": "amount", "static_instance": null, "getter_method": "getAmount", "containing_data_type_ref": "team_log.DurationLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestPolicy.disabled": {"fq_name": "team_log.EmailIngestPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.EmailIngestPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestPolicy.enabled": {"fq_name": "team_log.EmailIngestPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.EmailIngestPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestPolicy.other": {"fq_name": "team_log.EmailIngestPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.EmailIngestPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestPolicyChangedDetails.new_value": {"fq_name": "team_log.EmailIngestPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.EmailIngestPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestPolicyChangedDetails.previous_value": {"fq_name": "team_log.EmailIngestPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.EmailIngestPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestPolicyChangedType.description": {"fq_name": "team_log.EmailIngestPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmailIngestPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestReceiveFileDetails.inbox_name": {"fq_name": "team_log.EmailIngestReceiveFileDetails.inbox_name", "param_name": "inboxName", "static_instance": null, "getter_method": "getInboxName", "containing_data_type_ref": "team_log.EmailIngestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestReceiveFileDetails.attachment_names": {"fq_name": "team_log.EmailIngestReceiveFileDetails.attachment_names", "param_name": "attachmentNames", "static_instance": null, "getter_method": "getAttachmentNames", "containing_data_type_ref": "team_log.EmailIngestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestReceiveFileDetails.subject": {"fq_name": "team_log.EmailIngestReceiveFileDetails.subject", "param_name": "subject", "static_instance": null, "getter_method": "getSubject", "containing_data_type_ref": "team_log.EmailIngestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestReceiveFileDetails.from_name": {"fq_name": "team_log.EmailIngestReceiveFileDetails.from_name", "param_name": "fromName", "static_instance": null, "getter_method": "getFromName", "containing_data_type_ref": "team_log.EmailIngestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestReceiveFileDetails.from_email": {"fq_name": "team_log.EmailIngestReceiveFileDetails.from_email", "param_name": "fromEmail", "static_instance": null, "getter_method": "getFromEmail", "containing_data_type_ref": "team_log.EmailIngestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmailIngestReceiveFileType.description": {"fq_name": "team_log.EmailIngestReceiveFileType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmailIngestReceiveFileType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmAddExceptionType.description": {"fq_name": "team_log.EmmAddExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmmAddExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmChangePolicyDetails.new_value": {"fq_name": "team_log.EmmChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.EmmChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmChangePolicyDetails.previous_value": {"fq_name": "team_log.EmmChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.EmmChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmChangePolicyType.description": {"fq_name": "team_log.EmmChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmmChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmCreateExceptionsReportType.description": {"fq_name": "team_log.EmmCreateExceptionsReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmmCreateExceptionsReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmCreateUsageReportType.description": {"fq_name": "team_log.EmmCreateUsageReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmmCreateUsageReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmErrorDetails.error_details": {"fq_name": "team_log.EmmErrorDetails.error_details", "param_name": "errorDetails", "static_instance": null, "getter_method": "getErrorDetails", "containing_data_type_ref": "team_log.EmmErrorDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmErrorType.description": {"fq_name": "team_log.EmmErrorType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmmErrorType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmRefreshAuthTokenType.description": {"fq_name": "team_log.EmmRefreshAuthTokenType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmmRefreshAuthTokenType", "route_refs": [], "_type": "FieldReference"}, "team_log.EmmRemoveExceptionType.description": {"fq_name": "team_log.EmmRemoveExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EmmRemoveExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.EnabledDomainInvitesType.description": {"fq_name": "team_log.EnabledDomainInvitesType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EnabledDomainInvitesType", "route_refs": [], "_type": "FieldReference"}, "team_log.EndedEnterpriseAdminSessionDeprecatedDetails.federation_extra_details": {"fq_name": "team_log.EndedEnterpriseAdminSessionDeprecatedDetails.federation_extra_details", "param_name": "federationExtraDetails", "static_instance": null, "getter_method": "getFederationExtraDetails", "containing_data_type_ref": "team_log.EndedEnterpriseAdminSessionDeprecatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EndedEnterpriseAdminSessionDeprecatedType.description": {"fq_name": "team_log.EndedEnterpriseAdminSessionDeprecatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EndedEnterpriseAdminSessionDeprecatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.EndedEnterpriseAdminSessionType.description": {"fq_name": "team_log.EndedEnterpriseAdminSessionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EndedEnterpriseAdminSessionType", "route_refs": [], "_type": "FieldReference"}, "team_log.EnforceLinkPasswordPolicy.optional": {"fq_name": "team_log.EnforceLinkPasswordPolicy.optional", "param_name": "optionalValue", "static_instance": "OPTIONAL", "getter_method": null, "containing_data_type_ref": "team_log.EnforceLinkPasswordPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.EnforceLinkPasswordPolicy.required": {"fq_name": "team_log.EnforceLinkPasswordPolicy.required", "param_name": "requiredValue", "static_instance": "REQUIRED", "getter_method": null, "containing_data_type_ref": "team_log.EnforceLinkPasswordPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.EnforceLinkPasswordPolicy.other": {"fq_name": "team_log.EnforceLinkPasswordPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.EnforceLinkPasswordPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.EnterpriseSettingsLockingDetails.team_name": {"fq_name": "team_log.EnterpriseSettingsLockingDetails.team_name", "param_name": "teamName", "static_instance": null, "getter_method": "getTeamName", "containing_data_type_ref": "team_log.EnterpriseSettingsLockingDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EnterpriseSettingsLockingDetails.settings_page_name": {"fq_name": "team_log.EnterpriseSettingsLockingDetails.settings_page_name", "param_name": "settingsPageName", "static_instance": null, "getter_method": "getSettingsPageName", "containing_data_type_ref": "team_log.EnterpriseSettingsLockingDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EnterpriseSettingsLockingDetails.previous_settings_page_locking_state": {"fq_name": "team_log.EnterpriseSettingsLockingDetails.previous_settings_page_locking_state", "param_name": "previousSettingsPageLockingState", "static_instance": null, "getter_method": "getPreviousSettingsPageLockingState", "containing_data_type_ref": "team_log.EnterpriseSettingsLockingDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EnterpriseSettingsLockingDetails.new_settings_page_locking_state": {"fq_name": "team_log.EnterpriseSettingsLockingDetails.new_settings_page_locking_state", "param_name": "newSettingsPageLockingState", "static_instance": null, "getter_method": "getNewSettingsPageLockingState", "containing_data_type_ref": "team_log.EnterpriseSettingsLockingDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EnterpriseSettingsLockingType.description": {"fq_name": "team_log.EnterpriseSettingsLockingType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.EnterpriseSettingsLockingType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.admin_alerting": {"fq_name": "team_log.EventCategory.admin_alerting", "param_name": "adminAlertingValue", "static_instance": "ADMIN_ALERTING", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.apps": {"fq_name": "team_log.EventCategory.apps", "param_name": "appsValue", "static_instance": "APPS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.comments": {"fq_name": "team_log.EventCategory.comments", "param_name": "commentsValue", "static_instance": "COMMENTS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.data_governance": {"fq_name": "team_log.EventCategory.data_governance", "param_name": "dataGovernanceValue", "static_instance": "DATA_GOVERNANCE", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.devices": {"fq_name": "team_log.EventCategory.devices", "param_name": "devicesValue", "static_instance": "DEVICES", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.domains": {"fq_name": "team_log.EventCategory.domains", "param_name": "domainsValue", "static_instance": "DOMAINS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.encryption": {"fq_name": "team_log.EventCategory.encryption", "param_name": "encryptionValue", "static_instance": "ENCRYPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.file_operations": {"fq_name": "team_log.EventCategory.file_operations", "param_name": "fileOperationsValue", "static_instance": "FILE_OPERATIONS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.file_requests": {"fq_name": "team_log.EventCategory.file_requests", "param_name": "fileRequestsValue", "static_instance": "FILE_REQUESTS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.groups": {"fq_name": "team_log.EventCategory.groups", "param_name": "groupsValue", "static_instance": "GROUPS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.logins": {"fq_name": "team_log.EventCategory.logins", "param_name": "loginsValue", "static_instance": "LOGINS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.members": {"fq_name": "team_log.EventCategory.members", "param_name": "membersValue", "static_instance": "MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.paper": {"fq_name": "team_log.EventCategory.paper", "param_name": "paperValue", "static_instance": "PAPER", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.passwords": {"fq_name": "team_log.EventCategory.passwords", "param_name": "passwordsValue", "static_instance": "PASSWORDS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.reports": {"fq_name": "team_log.EventCategory.reports", "param_name": "reportsValue", "static_instance": "REPORTS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.sharing": {"fq_name": "team_log.EventCategory.sharing", "param_name": "sharingValue", "static_instance": "SHARING", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.showcase": {"fq_name": "team_log.EventCategory.showcase", "param_name": "showcaseValue", "static_instance": "SHOWCASE", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.sso": {"fq_name": "team_log.EventCategory.sso", "param_name": "ssoValue", "static_instance": "SSO", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.team_folders": {"fq_name": "team_log.EventCategory.team_folders", "param_name": "teamFoldersValue", "static_instance": "TEAM_FOLDERS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.team_policies": {"fq_name": "team_log.EventCategory.team_policies", "param_name": "teamPoliciesValue", "static_instance": "TEAM_POLICIES", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.team_profile": {"fq_name": "team_log.EventCategory.team_profile", "param_name": "teamProfileValue", "static_instance": "TEAM_PROFILE", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.tfa": {"fq_name": "team_log.EventCategory.tfa", "param_name": "tfaValue", "static_instance": "TFA", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.trusted_teams": {"fq_name": "team_log.EventCategory.trusted_teams", "param_name": "trustedTeamsValue", "static_instance": "TRUSTED_TEAMS", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventCategory.other": {"fq_name": "team_log.EventCategory.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.EventCategory", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.admin_alerting_alert_state_changed_details": {"fq_name": "team_log.EventDetails.admin_alerting_alert_state_changed_details", "param_name": "adminAlertingAlertStateChangedDetailsValue", "static_instance": null, "getter_method": "getAdminAlertingAlertStateChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.admin_alerting_changed_alert_config_details": {"fq_name": "team_log.EventDetails.admin_alerting_changed_alert_config_details", "param_name": "adminAlertingChangedAlertConfigDetailsValue", "static_instance": null, "getter_method": "getAdminAlertingChangedAlertConfigDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.admin_alerting_triggered_alert_details": {"fq_name": "team_log.EventDetails.admin_alerting_triggered_alert_details", "param_name": "adminAlertingTriggeredAlertDetailsValue", "static_instance": null, "getter_method": "getAdminAlertingTriggeredAlertDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.ransomware_restore_process_completed_details": {"fq_name": "team_log.EventDetails.ransomware_restore_process_completed_details", "param_name": "ransomwareRestoreProcessCompletedDetailsValue", "static_instance": null, "getter_method": "getRansomwareRestoreProcessCompletedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.ransomware_restore_process_started_details": {"fq_name": "team_log.EventDetails.ransomware_restore_process_started_details", "param_name": "ransomwareRestoreProcessStartedDetailsValue", "static_instance": null, "getter_method": "getRansomwareRestoreProcessStartedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.app_blocked_by_permissions_details": {"fq_name": "team_log.EventDetails.app_blocked_by_permissions_details", "param_name": "appBlockedByPermissionsDetailsValue", "static_instance": null, "getter_method": "getAppBlockedByPermissionsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.app_link_team_details": {"fq_name": "team_log.EventDetails.app_link_team_details", "param_name": "appLinkTeamDetailsValue", "static_instance": null, "getter_method": "getAppLinkTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.app_link_user_details": {"fq_name": "team_log.EventDetails.app_link_user_details", "param_name": "appLinkUserDetailsValue", "static_instance": null, "getter_method": "getAppLinkUserDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.app_unlink_team_details": {"fq_name": "team_log.EventDetails.app_unlink_team_details", "param_name": "appUnlinkTeamDetailsValue", "static_instance": null, "getter_method": "getAppUnlinkTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.app_unlink_user_details": {"fq_name": "team_log.EventDetails.app_unlink_user_details", "param_name": "appUnlinkUserDetailsValue", "static_instance": null, "getter_method": "getAppUnlinkUserDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.integration_connected_details": {"fq_name": "team_log.EventDetails.integration_connected_details", "param_name": "integrationConnectedDetailsValue", "static_instance": null, "getter_method": "getIntegrationConnectedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.integration_disconnected_details": {"fq_name": "team_log.EventDetails.integration_disconnected_details", "param_name": "integrationDisconnectedDetailsValue", "static_instance": null, "getter_method": "getIntegrationDisconnectedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_add_comment_details": {"fq_name": "team_log.EventDetails.file_add_comment_details", "param_name": "fileAddCommentDetailsValue", "static_instance": null, "getter_method": "getFileAddCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_change_comment_subscription_details": {"fq_name": "team_log.EventDetails.file_change_comment_subscription_details", "param_name": "fileChangeCommentSubscriptionDetailsValue", "static_instance": null, "getter_method": "getFileChangeCommentSubscriptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_delete_comment_details": {"fq_name": "team_log.EventDetails.file_delete_comment_details", "param_name": "fileDeleteCommentDetailsValue", "static_instance": null, "getter_method": "getFileDeleteCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_edit_comment_details": {"fq_name": "team_log.EventDetails.file_edit_comment_details", "param_name": "fileEditCommentDetailsValue", "static_instance": null, "getter_method": "getFileEditCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_like_comment_details": {"fq_name": "team_log.EventDetails.file_like_comment_details", "param_name": "fileLikeCommentDetailsValue", "static_instance": null, "getter_method": "getFileLikeCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_resolve_comment_details": {"fq_name": "team_log.EventDetails.file_resolve_comment_details", "param_name": "fileResolveCommentDetailsValue", "static_instance": null, "getter_method": "getFileResolveCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_unlike_comment_details": {"fq_name": "team_log.EventDetails.file_unlike_comment_details", "param_name": "fileUnlikeCommentDetailsValue", "static_instance": null, "getter_method": "getFileUnlikeCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_unresolve_comment_details": {"fq_name": "team_log.EventDetails.file_unresolve_comment_details", "param_name": "fileUnresolveCommentDetailsValue", "static_instance": null, "getter_method": "getFileUnresolveCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_add_folders_details": {"fq_name": "team_log.EventDetails.governance_policy_add_folders_details", "param_name": "governancePolicyAddFoldersDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyAddFoldersDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_add_folder_failed_details": {"fq_name": "team_log.EventDetails.governance_policy_add_folder_failed_details", "param_name": "governancePolicyAddFolderFailedDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyAddFolderFailedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_content_disposed_details": {"fq_name": "team_log.EventDetails.governance_policy_content_disposed_details", "param_name": "governancePolicyContentDisposedDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyContentDisposedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_create_details": {"fq_name": "team_log.EventDetails.governance_policy_create_details", "param_name": "governancePolicyCreateDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_delete_details": {"fq_name": "team_log.EventDetails.governance_policy_delete_details", "param_name": "governancePolicyDeleteDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_edit_details_details": {"fq_name": "team_log.EventDetails.governance_policy_edit_details_details", "param_name": "governancePolicyEditDetailsDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyEditDetailsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_edit_duration_details": {"fq_name": "team_log.EventDetails.governance_policy_edit_duration_details", "param_name": "governancePolicyEditDurationDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyEditDurationDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_export_created_details": {"fq_name": "team_log.EventDetails.governance_policy_export_created_details", "param_name": "governancePolicyExportCreatedDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyExportCreatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_export_removed_details": {"fq_name": "team_log.EventDetails.governance_policy_export_removed_details", "param_name": "governancePolicyExportRemovedDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyExportRemovedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_remove_folders_details": {"fq_name": "team_log.EventDetails.governance_policy_remove_folders_details", "param_name": "governancePolicyRemoveFoldersDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyRemoveFoldersDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_report_created_details": {"fq_name": "team_log.EventDetails.governance_policy_report_created_details", "param_name": "governancePolicyReportCreatedDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyReportCreatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.governance_policy_zip_part_downloaded_details": {"fq_name": "team_log.EventDetails.governance_policy_zip_part_downloaded_details", "param_name": "governancePolicyZipPartDownloadedDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyZipPartDownloadedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_activate_a_hold_details": {"fq_name": "team_log.EventDetails.legal_holds_activate_a_hold_details", "param_name": "legalHoldsActivateAHoldDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsActivateAHoldDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_add_members_details": {"fq_name": "team_log.EventDetails.legal_holds_add_members_details", "param_name": "legalHoldsAddMembersDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsAddMembersDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_change_hold_details_details": {"fq_name": "team_log.EventDetails.legal_holds_change_hold_details_details", "param_name": "legalHoldsChangeHoldDetailsDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsChangeHoldDetailsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_change_hold_name_details": {"fq_name": "team_log.EventDetails.legal_holds_change_hold_name_details", "param_name": "legalHoldsChangeHoldNameDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsChangeHoldNameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_export_a_hold_details": {"fq_name": "team_log.EventDetails.legal_holds_export_a_hold_details", "param_name": "legalHoldsExportAHoldDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsExportAHoldDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_export_cancelled_details": {"fq_name": "team_log.EventDetails.legal_holds_export_cancelled_details", "param_name": "legalHoldsExportCancelledDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsExportCancelledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_export_downloaded_details": {"fq_name": "team_log.EventDetails.legal_holds_export_downloaded_details", "param_name": "legalHoldsExportDownloadedDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsExportDownloadedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_export_removed_details": {"fq_name": "team_log.EventDetails.legal_holds_export_removed_details", "param_name": "legalHoldsExportRemovedDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsExportRemovedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_release_a_hold_details": {"fq_name": "team_log.EventDetails.legal_holds_release_a_hold_details", "param_name": "legalHoldsReleaseAHoldDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsReleaseAHoldDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_remove_members_details": {"fq_name": "team_log.EventDetails.legal_holds_remove_members_details", "param_name": "legalHoldsRemoveMembersDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsRemoveMembersDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.legal_holds_report_a_hold_details": {"fq_name": "team_log.EventDetails.legal_holds_report_a_hold_details", "param_name": "legalHoldsReportAHoldDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsReportAHoldDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_change_ip_desktop_details": {"fq_name": "team_log.EventDetails.device_change_ip_desktop_details", "param_name": "deviceChangeIpDesktopDetailsValue", "static_instance": null, "getter_method": "getDeviceChangeIpDesktopDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_change_ip_mobile_details": {"fq_name": "team_log.EventDetails.device_change_ip_mobile_details", "param_name": "deviceChangeIpMobileDetailsValue", "static_instance": null, "getter_method": "getDeviceChangeIpMobileDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_change_ip_web_details": {"fq_name": "team_log.EventDetails.device_change_ip_web_details", "param_name": "deviceChangeIpWebDetailsValue", "static_instance": null, "getter_method": "getDeviceChangeIpWebDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_delete_on_unlink_fail_details": {"fq_name": "team_log.EventDetails.device_delete_on_unlink_fail_details", "param_name": "deviceDeleteOnUnlinkFailDetailsValue", "static_instance": null, "getter_method": "getDeviceDeleteOnUnlinkFailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_delete_on_unlink_success_details": {"fq_name": "team_log.EventDetails.device_delete_on_unlink_success_details", "param_name": "deviceDeleteOnUnlinkSuccessDetailsValue", "static_instance": null, "getter_method": "getDeviceDeleteOnUnlinkSuccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_link_fail_details": {"fq_name": "team_log.EventDetails.device_link_fail_details", "param_name": "deviceLinkFailDetailsValue", "static_instance": null, "getter_method": "getDeviceLinkFailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_link_success_details": {"fq_name": "team_log.EventDetails.device_link_success_details", "param_name": "deviceLinkSuccessDetailsValue", "static_instance": null, "getter_method": "getDeviceLinkSuccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_management_disabled_details": {"fq_name": "team_log.EventDetails.device_management_disabled_details", "param_name": "deviceManagementDisabledDetailsValue", "static_instance": null, "getter_method": "getDeviceManagementDisabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_management_enabled_details": {"fq_name": "team_log.EventDetails.device_management_enabled_details", "param_name": "deviceManagementEnabledDetailsValue", "static_instance": null, "getter_method": "getDeviceManagementEnabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_sync_backup_status_changed_details": {"fq_name": "team_log.EventDetails.device_sync_backup_status_changed_details", "param_name": "deviceSyncBackupStatusChangedDetailsValue", "static_instance": null, "getter_method": "getDeviceSyncBackupStatusChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_unlink_details": {"fq_name": "team_log.EventDetails.device_unlink_details", "param_name": "deviceUnlinkDetailsValue", "static_instance": null, "getter_method": "getDeviceUnlinkDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.dropbox_passwords_exported_details": {"fq_name": "team_log.EventDetails.dropbox_passwords_exported_details", "param_name": "dropboxPasswordsExportedDetailsValue", "static_instance": null, "getter_method": "getDropboxPasswordsExportedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.dropbox_passwords_new_device_enrolled_details": {"fq_name": "team_log.EventDetails.dropbox_passwords_new_device_enrolled_details", "param_name": "dropboxPasswordsNewDeviceEnrolledDetailsValue", "static_instance": null, "getter_method": "getDropboxPasswordsNewDeviceEnrolledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.emm_refresh_auth_token_details": {"fq_name": "team_log.EventDetails.emm_refresh_auth_token_details", "param_name": "emmRefreshAuthTokenDetailsValue", "static_instance": null, "getter_method": "getEmmRefreshAuthTokenDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.external_drive_backup_eligibility_status_checked_details": {"fq_name": "team_log.EventDetails.external_drive_backup_eligibility_status_checked_details", "param_name": "externalDriveBackupEligibilityStatusCheckedDetailsValue", "static_instance": null, "getter_method": "getExternalDriveBackupEligibilityStatusCheckedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.external_drive_backup_status_changed_details": {"fq_name": "team_log.EventDetails.external_drive_backup_status_changed_details", "param_name": "externalDriveBackupStatusChangedDetailsValue", "static_instance": null, "getter_method": "getExternalDriveBackupStatusChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.account_capture_change_availability_details": {"fq_name": "team_log.EventDetails.account_capture_change_availability_details", "param_name": "accountCaptureChangeAvailabilityDetailsValue", "static_instance": null, "getter_method": "getAccountCaptureChangeAvailabilityDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.account_capture_migrate_account_details": {"fq_name": "team_log.EventDetails.account_capture_migrate_account_details", "param_name": "accountCaptureMigrateAccountDetailsValue", "static_instance": null, "getter_method": "getAccountCaptureMigrateAccountDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.account_capture_notification_emails_sent_details": {"fq_name": "team_log.EventDetails.account_capture_notification_emails_sent_details", "param_name": "accountCaptureNotificationEmailsSentDetailsValue", "static_instance": null, "getter_method": "getAccountCaptureNotificationEmailsSentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.account_capture_relinquish_account_details": {"fq_name": "team_log.EventDetails.account_capture_relinquish_account_details", "param_name": "accountCaptureRelinquishAccountDetailsValue", "static_instance": null, "getter_method": "getAccountCaptureRelinquishAccountDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.disabled_domain_invites_details": {"fq_name": "team_log.EventDetails.disabled_domain_invites_details", "param_name": "disabledDomainInvitesDetailsValue", "static_instance": null, "getter_method": "getDisabledDomainInvitesDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_invites_approve_request_to_join_team_details": {"fq_name": "team_log.EventDetails.domain_invites_approve_request_to_join_team_details", "param_name": "domainInvitesApproveRequestToJoinTeamDetailsValue", "static_instance": null, "getter_method": "getDomainInvitesApproveRequestToJoinTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_invites_decline_request_to_join_team_details": {"fq_name": "team_log.EventDetails.domain_invites_decline_request_to_join_team_details", "param_name": "domainInvitesDeclineRequestToJoinTeamDetailsValue", "static_instance": null, "getter_method": "getDomainInvitesDeclineRequestToJoinTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_invites_email_existing_users_details": {"fq_name": "team_log.EventDetails.domain_invites_email_existing_users_details", "param_name": "domainInvitesEmailExistingUsersDetailsValue", "static_instance": null, "getter_method": "getDomainInvitesEmailExistingUsersDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_invites_request_to_join_team_details": {"fq_name": "team_log.EventDetails.domain_invites_request_to_join_team_details", "param_name": "domainInvitesRequestToJoinTeamDetailsValue", "static_instance": null, "getter_method": "getDomainInvitesRequestToJoinTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_invites_set_invite_new_user_pref_to_no_details": {"fq_name": "team_log.EventDetails.domain_invites_set_invite_new_user_pref_to_no_details", "param_name": "domainInvitesSetInviteNewUserPrefToNoDetailsValue", "static_instance": null, "getter_method": "getDomainInvitesSetInviteNewUserPrefToNoDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_invites_set_invite_new_user_pref_to_yes_details": {"fq_name": "team_log.EventDetails.domain_invites_set_invite_new_user_pref_to_yes_details", "param_name": "domainInvitesSetInviteNewUserPrefToYesDetailsValue", "static_instance": null, "getter_method": "getDomainInvitesSetInviteNewUserPrefToYesDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_verification_add_domain_fail_details": {"fq_name": "team_log.EventDetails.domain_verification_add_domain_fail_details", "param_name": "domainVerificationAddDomainFailDetailsValue", "static_instance": null, "getter_method": "getDomainVerificationAddDomainFailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_verification_add_domain_success_details": {"fq_name": "team_log.EventDetails.domain_verification_add_domain_success_details", "param_name": "domainVerificationAddDomainSuccessDetailsValue", "static_instance": null, "getter_method": "getDomainVerificationAddDomainSuccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.domain_verification_remove_domain_details": {"fq_name": "team_log.EventDetails.domain_verification_remove_domain_details", "param_name": "domainVerificationRemoveDomainDetailsValue", "static_instance": null, "getter_method": "getDomainVerificationRemoveDomainDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.enabled_domain_invites_details": {"fq_name": "team_log.EventDetails.enabled_domain_invites_details", "param_name": "enabledDomainInvitesDetailsValue", "static_instance": null, "getter_method": "getEnabledDomainInvitesDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_encryption_key_cancel_key_deletion_details": {"fq_name": "team_log.EventDetails.team_encryption_key_cancel_key_deletion_details", "param_name": "teamEncryptionKeyCancelKeyDeletionDetailsValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyCancelKeyDeletionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_encryption_key_create_key_details": {"fq_name": "team_log.EventDetails.team_encryption_key_create_key_details", "param_name": "teamEncryptionKeyCreateKeyDetailsValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyCreateKeyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_encryption_key_delete_key_details": {"fq_name": "team_log.EventDetails.team_encryption_key_delete_key_details", "param_name": "teamEncryptionKeyDeleteKeyDetailsValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyDeleteKeyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_encryption_key_disable_key_details": {"fq_name": "team_log.EventDetails.team_encryption_key_disable_key_details", "param_name": "teamEncryptionKeyDisableKeyDetailsValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyDisableKeyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_encryption_key_enable_key_details": {"fq_name": "team_log.EventDetails.team_encryption_key_enable_key_details", "param_name": "teamEncryptionKeyEnableKeyDetailsValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyEnableKeyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_encryption_key_rotate_key_details": {"fq_name": "team_log.EventDetails.team_encryption_key_rotate_key_details", "param_name": "teamEncryptionKeyRotateKeyDetailsValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyRotateKeyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_encryption_key_schedule_key_deletion_details": {"fq_name": "team_log.EventDetails.team_encryption_key_schedule_key_deletion_details", "param_name": "teamEncryptionKeyScheduleKeyDeletionDetailsValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyScheduleKeyDeletionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.apply_naming_convention_details": {"fq_name": "team_log.EventDetails.apply_naming_convention_details", "param_name": "applyNamingConventionDetailsValue", "static_instance": null, "getter_method": "getApplyNamingConventionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.create_folder_details": {"fq_name": "team_log.EventDetails.create_folder_details", "param_name": "createFolderDetailsValue", "static_instance": null, "getter_method": "getCreateFolderDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_add_details": {"fq_name": "team_log.EventDetails.file_add_details", "param_name": "fileAddDetailsValue", "static_instance": null, "getter_method": "getFileAddDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_add_from_automation_details": {"fq_name": "team_log.EventDetails.file_add_from_automation_details", "param_name": "fileAddFromAutomationDetailsValue", "static_instance": null, "getter_method": "getFileAddFromAutomationDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_copy_details": {"fq_name": "team_log.EventDetails.file_copy_details", "param_name": "fileCopyDetailsValue", "static_instance": null, "getter_method": "getFileCopyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_delete_details": {"fq_name": "team_log.EventDetails.file_delete_details", "param_name": "fileDeleteDetailsValue", "static_instance": null, "getter_method": "getFileDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_download_details": {"fq_name": "team_log.EventDetails.file_download_details", "param_name": "fileDownloadDetailsValue", "static_instance": null, "getter_method": "getFileDownloadDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_edit_details": {"fq_name": "team_log.EventDetails.file_edit_details", "param_name": "fileEditDetailsValue", "static_instance": null, "getter_method": "getFileEditDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_get_copy_reference_details": {"fq_name": "team_log.EventDetails.file_get_copy_reference_details", "param_name": "fileGetCopyReferenceDetailsValue", "static_instance": null, "getter_method": "getFileGetCopyReferenceDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_locking_lock_status_changed_details": {"fq_name": "team_log.EventDetails.file_locking_lock_status_changed_details", "param_name": "fileLockingLockStatusChangedDetailsValue", "static_instance": null, "getter_method": "getFileLockingLockStatusChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_move_details": {"fq_name": "team_log.EventDetails.file_move_details", "param_name": "fileMoveDetailsValue", "static_instance": null, "getter_method": "getFileMoveDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_permanently_delete_details": {"fq_name": "team_log.EventDetails.file_permanently_delete_details", "param_name": "filePermanentlyDeleteDetailsValue", "static_instance": null, "getter_method": "getFilePermanentlyDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_preview_details": {"fq_name": "team_log.EventDetails.file_preview_details", "param_name": "filePreviewDetailsValue", "static_instance": null, "getter_method": "getFilePreviewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_rename_details": {"fq_name": "team_log.EventDetails.file_rename_details", "param_name": "fileRenameDetailsValue", "static_instance": null, "getter_method": "getFileRenameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_restore_details": {"fq_name": "team_log.EventDetails.file_restore_details", "param_name": "fileRestoreDetailsValue", "static_instance": null, "getter_method": "getFileRestoreDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_revert_details": {"fq_name": "team_log.EventDetails.file_revert_details", "param_name": "fileRevertDetailsValue", "static_instance": null, "getter_method": "getFileRevertDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_rollback_changes_details": {"fq_name": "team_log.EventDetails.file_rollback_changes_details", "param_name": "fileRollbackChangesDetailsValue", "static_instance": null, "getter_method": "getFileRollbackChangesDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_save_copy_reference_details": {"fq_name": "team_log.EventDetails.file_save_copy_reference_details", "param_name": "fileSaveCopyReferenceDetailsValue", "static_instance": null, "getter_method": "getFileSaveCopyReferenceDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.folder_overview_description_changed_details": {"fq_name": "team_log.EventDetails.folder_overview_description_changed_details", "param_name": "folderOverviewDescriptionChangedDetailsValue", "static_instance": null, "getter_method": "getFolderOverviewDescriptionChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.folder_overview_item_pinned_details": {"fq_name": "team_log.EventDetails.folder_overview_item_pinned_details", "param_name": "folderOverviewItemPinnedDetailsValue", "static_instance": null, "getter_method": "getFolderOverviewItemPinnedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.folder_overview_item_unpinned_details": {"fq_name": "team_log.EventDetails.folder_overview_item_unpinned_details", "param_name": "folderOverviewItemUnpinnedDetailsValue", "static_instance": null, "getter_method": "getFolderOverviewItemUnpinnedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.object_label_added_details": {"fq_name": "team_log.EventDetails.object_label_added_details", "param_name": "objectLabelAddedDetailsValue", "static_instance": null, "getter_method": "getObjectLabelAddedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.object_label_removed_details": {"fq_name": "team_log.EventDetails.object_label_removed_details", "param_name": "objectLabelRemovedDetailsValue", "static_instance": null, "getter_method": "getObjectLabelRemovedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.object_label_updated_value_details": {"fq_name": "team_log.EventDetails.object_label_updated_value_details", "param_name": "objectLabelUpdatedValueDetailsValue", "static_instance": null, "getter_method": "getObjectLabelUpdatedValueDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.organize_folder_with_tidy_details": {"fq_name": "team_log.EventDetails.organize_folder_with_tidy_details", "param_name": "organizeFolderWithTidyDetailsValue", "static_instance": null, "getter_method": "getOrganizeFolderWithTidyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.replay_file_delete_details": {"fq_name": "team_log.EventDetails.replay_file_delete_details", "param_name": "replayFileDeleteDetailsValue", "static_instance": null, "getter_method": "getReplayFileDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.rewind_folder_details": {"fq_name": "team_log.EventDetails.rewind_folder_details", "param_name": "rewindFolderDetailsValue", "static_instance": null, "getter_method": "getRewindFolderDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.undo_naming_convention_details": {"fq_name": "team_log.EventDetails.undo_naming_convention_details", "param_name": "undoNamingConventionDetailsValue", "static_instance": null, "getter_method": "getUndoNamingConventionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.undo_organize_folder_with_tidy_details": {"fq_name": "team_log.EventDetails.undo_organize_folder_with_tidy_details", "param_name": "undoOrganizeFolderWithTidyDetailsValue", "static_instance": null, "getter_method": "getUndoOrganizeFolderWithTidyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.user_tags_added_details": {"fq_name": "team_log.EventDetails.user_tags_added_details", "param_name": "userTagsAddedDetailsValue", "static_instance": null, "getter_method": "getUserTagsAddedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.user_tags_removed_details": {"fq_name": "team_log.EventDetails.user_tags_removed_details", "param_name": "userTagsRemovedDetailsValue", "static_instance": null, "getter_method": "getUserTagsRemovedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.email_ingest_receive_file_details": {"fq_name": "team_log.EventDetails.email_ingest_receive_file_details", "param_name": "emailIngestReceiveFileDetailsValue", "static_instance": null, "getter_method": "getEmailIngestReceiveFileDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_request_change_details": {"fq_name": "team_log.EventDetails.file_request_change_details", "param_name": "fileRequestChangeDetailsValue", "static_instance": null, "getter_method": "getFileRequestChangeDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_request_close_details": {"fq_name": "team_log.EventDetails.file_request_close_details", "param_name": "fileRequestCloseDetailsValue", "static_instance": null, "getter_method": "getFileRequestCloseDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_request_create_details": {"fq_name": "team_log.EventDetails.file_request_create_details", "param_name": "fileRequestCreateDetailsValue", "static_instance": null, "getter_method": "getFileRequestCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_request_delete_details": {"fq_name": "team_log.EventDetails.file_request_delete_details", "param_name": "fileRequestDeleteDetailsValue", "static_instance": null, "getter_method": "getFileRequestDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_request_receive_file_details": {"fq_name": "team_log.EventDetails.file_request_receive_file_details", "param_name": "fileRequestReceiveFileDetailsValue", "static_instance": null, "getter_method": "getFileRequestReceiveFileDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_add_external_id_details": {"fq_name": "team_log.EventDetails.group_add_external_id_details", "param_name": "groupAddExternalIdDetailsValue", "static_instance": null, "getter_method": "getGroupAddExternalIdDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_add_member_details": {"fq_name": "team_log.EventDetails.group_add_member_details", "param_name": "groupAddMemberDetailsValue", "static_instance": null, "getter_method": "getGroupAddMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_change_external_id_details": {"fq_name": "team_log.EventDetails.group_change_external_id_details", "param_name": "groupChangeExternalIdDetailsValue", "static_instance": null, "getter_method": "getGroupChangeExternalIdDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_change_management_type_details": {"fq_name": "team_log.EventDetails.group_change_management_type_details", "param_name": "groupChangeManagementTypeDetailsValue", "static_instance": null, "getter_method": "getGroupChangeManagementTypeDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_change_member_role_details": {"fq_name": "team_log.EventDetails.group_change_member_role_details", "param_name": "groupChangeMemberRoleDetailsValue", "static_instance": null, "getter_method": "getGroupChangeMemberRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_create_details": {"fq_name": "team_log.EventDetails.group_create_details", "param_name": "groupCreateDetailsValue", "static_instance": null, "getter_method": "getGroupCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_delete_details": {"fq_name": "team_log.EventDetails.group_delete_details", "param_name": "groupDeleteDetailsValue", "static_instance": null, "getter_method": "getGroupDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_description_updated_details": {"fq_name": "team_log.EventDetails.group_description_updated_details", "param_name": "groupDescriptionUpdatedDetailsValue", "static_instance": null, "getter_method": "getGroupDescriptionUpdatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_join_policy_updated_details": {"fq_name": "team_log.EventDetails.group_join_policy_updated_details", "param_name": "groupJoinPolicyUpdatedDetailsValue", "static_instance": null, "getter_method": "getGroupJoinPolicyUpdatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_moved_details": {"fq_name": "team_log.EventDetails.group_moved_details", "param_name": "groupMovedDetailsValue", "static_instance": null, "getter_method": "getGroupMovedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_remove_external_id_details": {"fq_name": "team_log.EventDetails.group_remove_external_id_details", "param_name": "groupRemoveExternalIdDetailsValue", "static_instance": null, "getter_method": "getGroupRemoveExternalIdDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_remove_member_details": {"fq_name": "team_log.EventDetails.group_remove_member_details", "param_name": "groupRemoveMemberDetailsValue", "static_instance": null, "getter_method": "getGroupRemoveMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_rename_details": {"fq_name": "team_log.EventDetails.group_rename_details", "param_name": "groupRenameDetailsValue", "static_instance": null, "getter_method": "getGroupRenameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.account_lock_or_unlocked_details": {"fq_name": "team_log.EventDetails.account_lock_or_unlocked_details", "param_name": "accountLockOrUnlockedDetailsValue", "static_instance": null, "getter_method": "getAccountLockOrUnlockedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.emm_error_details": {"fq_name": "team_log.EventDetails.emm_error_details", "param_name": "emmErrorDetailsValue", "static_instance": null, "getter_method": "getEmmErrorDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.guest_admin_signed_in_via_trusted_teams_details": {"fq_name": "team_log.EventDetails.guest_admin_signed_in_via_trusted_teams_details", "param_name": "guestAdminSignedInViaTrustedTeamsDetailsValue", "static_instance": null, "getter_method": "getGuestAdminSignedInViaTrustedTeamsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.guest_admin_signed_out_via_trusted_teams_details": {"fq_name": "team_log.EventDetails.guest_admin_signed_out_via_trusted_teams_details", "param_name": "guestAdminSignedOutViaTrustedTeamsDetailsValue", "static_instance": null, "getter_method": "getGuestAdminSignedOutViaTrustedTeamsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.login_fail_details": {"fq_name": "team_log.EventDetails.login_fail_details", "param_name": "loginFailDetailsValue", "static_instance": null, "getter_method": "getLoginFailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.login_success_details": {"fq_name": "team_log.EventDetails.login_success_details", "param_name": "loginSuccessDetailsValue", "static_instance": null, "getter_method": "getLoginSuccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.logout_details": {"fq_name": "team_log.EventDetails.logout_details", "param_name": "logoutDetailsValue", "static_instance": null, "getter_method": "getLogoutDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.reseller_support_session_end_details": {"fq_name": "team_log.EventDetails.reseller_support_session_end_details", "param_name": "resellerSupportSessionEndDetailsValue", "static_instance": null, "getter_method": "getResellerSupportSessionEndDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.reseller_support_session_start_details": {"fq_name": "team_log.EventDetails.reseller_support_session_start_details", "param_name": "resellerSupportSessionStartDetailsValue", "static_instance": null, "getter_method": "getResellerSupportSessionStartDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sign_in_as_session_end_details": {"fq_name": "team_log.EventDetails.sign_in_as_session_end_details", "param_name": "signInAsSessionEndDetailsValue", "static_instance": null, "getter_method": "getSignInAsSessionEndDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sign_in_as_session_start_details": {"fq_name": "team_log.EventDetails.sign_in_as_session_start_details", "param_name": "signInAsSessionStartDetailsValue", "static_instance": null, "getter_method": "getSignInAsSessionStartDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_error_details": {"fq_name": "team_log.EventDetails.sso_error_details", "param_name": "ssoErrorDetailsValue", "static_instance": null, "getter_method": "getSsoErrorDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.backup_admin_invitation_sent_details": {"fq_name": "team_log.EventDetails.backup_admin_invitation_sent_details", "param_name": "backupAdminInvitationSentDetailsValue", "static_instance": null, "getter_method": "getBackupAdminInvitationSentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.backup_invitation_opened_details": {"fq_name": "team_log.EventDetails.backup_invitation_opened_details", "param_name": "backupInvitationOpenedDetailsValue", "static_instance": null, "getter_method": "getBackupInvitationOpenedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.create_team_invite_link_details": {"fq_name": "team_log.EventDetails.create_team_invite_link_details", "param_name": "createTeamInviteLinkDetailsValue", "static_instance": null, "getter_method": "getCreateTeamInviteLinkDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.delete_team_invite_link_details": {"fq_name": "team_log.EventDetails.delete_team_invite_link_details", "param_name": "deleteTeamInviteLinkDetailsValue", "static_instance": null, "getter_method": "getDeleteTeamInviteLinkDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_add_external_id_details": {"fq_name": "team_log.EventDetails.member_add_external_id_details", "param_name": "memberAddExternalIdDetailsValue", "static_instance": null, "getter_method": "getMemberAddExternalIdDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_add_name_details": {"fq_name": "team_log.EventDetails.member_add_name_details", "param_name": "memberAddNameDetailsValue", "static_instance": null, "getter_method": "getMemberAddNameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_change_admin_role_details": {"fq_name": "team_log.EventDetails.member_change_admin_role_details", "param_name": "memberChangeAdminRoleDetailsValue", "static_instance": null, "getter_method": "getMemberChangeAdminRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_change_email_details": {"fq_name": "team_log.EventDetails.member_change_email_details", "param_name": "memberChangeEmailDetailsValue", "static_instance": null, "getter_method": "getMemberChangeEmailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_change_external_id_details": {"fq_name": "team_log.EventDetails.member_change_external_id_details", "param_name": "memberChangeExternalIdDetailsValue", "static_instance": null, "getter_method": "getMemberChangeExternalIdDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_change_membership_type_details": {"fq_name": "team_log.EventDetails.member_change_membership_type_details", "param_name": "memberChangeMembershipTypeDetailsValue", "static_instance": null, "getter_method": "getMemberChangeMembershipTypeDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_change_name_details": {"fq_name": "team_log.EventDetails.member_change_name_details", "param_name": "memberChangeNameDetailsValue", "static_instance": null, "getter_method": "getMemberChangeNameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_change_reseller_role_details": {"fq_name": "team_log.EventDetails.member_change_reseller_role_details", "param_name": "memberChangeResellerRoleDetailsValue", "static_instance": null, "getter_method": "getMemberChangeResellerRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_change_status_details": {"fq_name": "team_log.EventDetails.member_change_status_details", "param_name": "memberChangeStatusDetailsValue", "static_instance": null, "getter_method": "getMemberChangeStatusDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_delete_manual_contacts_details": {"fq_name": "team_log.EventDetails.member_delete_manual_contacts_details", "param_name": "memberDeleteManualContactsDetailsValue", "static_instance": null, "getter_method": "getMemberDeleteManualContactsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_delete_profile_photo_details": {"fq_name": "team_log.EventDetails.member_delete_profile_photo_details", "param_name": "memberDeleteProfilePhotoDetailsValue", "static_instance": null, "getter_method": "getMemberDeleteProfilePhotoDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_permanently_delete_account_contents_details": {"fq_name": "team_log.EventDetails.member_permanently_delete_account_contents_details", "param_name": "memberPermanentlyDeleteAccountContentsDetailsValue", "static_instance": null, "getter_method": "getMemberPermanentlyDeleteAccountContentsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_remove_external_id_details": {"fq_name": "team_log.EventDetails.member_remove_external_id_details", "param_name": "memberRemoveExternalIdDetailsValue", "static_instance": null, "getter_method": "getMemberRemoveExternalIdDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_set_profile_photo_details": {"fq_name": "team_log.EventDetails.member_set_profile_photo_details", "param_name": "memberSetProfilePhotoDetailsValue", "static_instance": null, "getter_method": "getMemberSetProfilePhotoDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_add_custom_quota_details": {"fq_name": "team_log.EventDetails.member_space_limits_add_custom_quota_details", "param_name": "memberSpaceLimitsAddCustomQuotaDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsAddCustomQuotaDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_change_custom_quota_details": {"fq_name": "team_log.EventDetails.member_space_limits_change_custom_quota_details", "param_name": "memberSpaceLimitsChangeCustomQuotaDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangeCustomQuotaDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_change_status_details": {"fq_name": "team_log.EventDetails.member_space_limits_change_status_details", "param_name": "memberSpaceLimitsChangeStatusDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangeStatusDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_remove_custom_quota_details": {"fq_name": "team_log.EventDetails.member_space_limits_remove_custom_quota_details", "param_name": "memberSpaceLimitsRemoveCustomQuotaDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsRemoveCustomQuotaDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_suggest_details": {"fq_name": "team_log.EventDetails.member_suggest_details", "param_name": "memberSuggestDetailsValue", "static_instance": null, "getter_method": "getMemberSuggestDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_transfer_account_contents_details": {"fq_name": "team_log.EventDetails.member_transfer_account_contents_details", "param_name": "memberTransferAccountContentsDetailsValue", "static_instance": null, "getter_method": "getMemberTransferAccountContentsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.pending_secondary_email_added_details": {"fq_name": "team_log.EventDetails.pending_secondary_email_added_details", "param_name": "pendingSecondaryEmailAddedDetailsValue", "static_instance": null, "getter_method": "getPendingSecondaryEmailAddedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.secondary_email_deleted_details": {"fq_name": "team_log.EventDetails.secondary_email_deleted_details", "param_name": "secondaryEmailDeletedDetailsValue", "static_instance": null, "getter_method": "getSecondaryEmailDeletedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.secondary_email_verified_details": {"fq_name": "team_log.EventDetails.secondary_email_verified_details", "param_name": "secondaryEmailVerifiedDetailsValue", "static_instance": null, "getter_method": "getSecondaryEmailVerifiedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.secondary_mails_policy_changed_details": {"fq_name": "team_log.EventDetails.secondary_mails_policy_changed_details", "param_name": "secondaryMailsPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getSecondaryMailsPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_add_page_details": {"fq_name": "team_log.EventDetails.binder_add_page_details", "param_name": "binderAddPageDetailsValue", "static_instance": null, "getter_method": "getBinderAddPageDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_add_section_details": {"fq_name": "team_log.EventDetails.binder_add_section_details", "param_name": "binderAddSectionDetailsValue", "static_instance": null, "getter_method": "getBinderAddSectionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_remove_page_details": {"fq_name": "team_log.EventDetails.binder_remove_page_details", "param_name": "binderRemovePageDetailsValue", "static_instance": null, "getter_method": "getBinderRemovePageDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_remove_section_details": {"fq_name": "team_log.EventDetails.binder_remove_section_details", "param_name": "binderRemoveSectionDetailsValue", "static_instance": null, "getter_method": "getBinderRemoveSectionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_rename_page_details": {"fq_name": "team_log.EventDetails.binder_rename_page_details", "param_name": "binderRenamePageDetailsValue", "static_instance": null, "getter_method": "getBinderRenamePageDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_rename_section_details": {"fq_name": "team_log.EventDetails.binder_rename_section_details", "param_name": "binderRenameSectionDetailsValue", "static_instance": null, "getter_method": "getBinderRenameSectionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_reorder_page_details": {"fq_name": "team_log.EventDetails.binder_reorder_page_details", "param_name": "binderReorderPageDetailsValue", "static_instance": null, "getter_method": "getBinderReorderPageDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.binder_reorder_section_details": {"fq_name": "team_log.EventDetails.binder_reorder_section_details", "param_name": "binderReorderSectionDetailsValue", "static_instance": null, "getter_method": "getBinderReorderSectionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_add_member_details": {"fq_name": "team_log.EventDetails.paper_content_add_member_details", "param_name": "paperContentAddMemberDetailsValue", "static_instance": null, "getter_method": "getPaperContentAddMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_add_to_folder_details": {"fq_name": "team_log.EventDetails.paper_content_add_to_folder_details", "param_name": "paperContentAddToFolderDetailsValue", "static_instance": null, "getter_method": "getPaperContentAddToFolderDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_archive_details": {"fq_name": "team_log.EventDetails.paper_content_archive_details", "param_name": "paperContentArchiveDetailsValue", "static_instance": null, "getter_method": "getPaperContentArchiveDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_create_details": {"fq_name": "team_log.EventDetails.paper_content_create_details", "param_name": "paperContentCreateDetailsValue", "static_instance": null, "getter_method": "getPaperContentCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_permanently_delete_details": {"fq_name": "team_log.EventDetails.paper_content_permanently_delete_details", "param_name": "paperContentPermanentlyDeleteDetailsValue", "static_instance": null, "getter_method": "getPaperContentPermanentlyDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_remove_from_folder_details": {"fq_name": "team_log.EventDetails.paper_content_remove_from_folder_details", "param_name": "paperContentRemoveFromFolderDetailsValue", "static_instance": null, "getter_method": "getPaperContentRemoveFromFolderDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_remove_member_details": {"fq_name": "team_log.EventDetails.paper_content_remove_member_details", "param_name": "paperContentRemoveMemberDetailsValue", "static_instance": null, "getter_method": "getPaperContentRemoveMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_rename_details": {"fq_name": "team_log.EventDetails.paper_content_rename_details", "param_name": "paperContentRenameDetailsValue", "static_instance": null, "getter_method": "getPaperContentRenameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_content_restore_details": {"fq_name": "team_log.EventDetails.paper_content_restore_details", "param_name": "paperContentRestoreDetailsValue", "static_instance": null, "getter_method": "getPaperContentRestoreDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_add_comment_details": {"fq_name": "team_log.EventDetails.paper_doc_add_comment_details", "param_name": "paperDocAddCommentDetailsValue", "static_instance": null, "getter_method": "getPaperDocAddCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_change_member_role_details": {"fq_name": "team_log.EventDetails.paper_doc_change_member_role_details", "param_name": "paperDocChangeMemberRoleDetailsValue", "static_instance": null, "getter_method": "getPaperDocChangeMemberRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_change_sharing_policy_details": {"fq_name": "team_log.EventDetails.paper_doc_change_sharing_policy_details", "param_name": "paperDocChangeSharingPolicyDetailsValue", "static_instance": null, "getter_method": "getPaperDocChangeSharingPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_change_subscription_details": {"fq_name": "team_log.EventDetails.paper_doc_change_subscription_details", "param_name": "paperDocChangeSubscriptionDetailsValue", "static_instance": null, "getter_method": "getPaperDocChangeSubscriptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_deleted_details": {"fq_name": "team_log.EventDetails.paper_doc_deleted_details", "param_name": "paperDocDeletedDetailsValue", "static_instance": null, "getter_method": "getPaperDocDeletedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_delete_comment_details": {"fq_name": "team_log.EventDetails.paper_doc_delete_comment_details", "param_name": "paperDocDeleteCommentDetailsValue", "static_instance": null, "getter_method": "getPaperDocDeleteCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_download_details": {"fq_name": "team_log.EventDetails.paper_doc_download_details", "param_name": "paperDocDownloadDetailsValue", "static_instance": null, "getter_method": "getPaperDocDownloadDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_edit_details": {"fq_name": "team_log.EventDetails.paper_doc_edit_details", "param_name": "paperDocEditDetailsValue", "static_instance": null, "getter_method": "getPaperDocEditDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_edit_comment_details": {"fq_name": "team_log.EventDetails.paper_doc_edit_comment_details", "param_name": "paperDocEditCommentDetailsValue", "static_instance": null, "getter_method": "getPaperDocEditCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_followed_details": {"fq_name": "team_log.EventDetails.paper_doc_followed_details", "param_name": "paperDocFollowedDetailsValue", "static_instance": null, "getter_method": "getPaperDocFollowedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_mention_details": {"fq_name": "team_log.EventDetails.paper_doc_mention_details", "param_name": "paperDocMentionDetailsValue", "static_instance": null, "getter_method": "getPaperDocMentionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_ownership_changed_details": {"fq_name": "team_log.EventDetails.paper_doc_ownership_changed_details", "param_name": "paperDocOwnershipChangedDetailsValue", "static_instance": null, "getter_method": "getPaperDocOwnershipChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_request_access_details": {"fq_name": "team_log.EventDetails.paper_doc_request_access_details", "param_name": "paperDocRequestAccessDetailsValue", "static_instance": null, "getter_method": "getPaperDocRequestAccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_resolve_comment_details": {"fq_name": "team_log.EventDetails.paper_doc_resolve_comment_details", "param_name": "paperDocResolveCommentDetailsValue", "static_instance": null, "getter_method": "getPaperDocResolveCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_revert_details": {"fq_name": "team_log.EventDetails.paper_doc_revert_details", "param_name": "paperDocRevertDetailsValue", "static_instance": null, "getter_method": "getPaperDocRevertDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_slack_share_details": {"fq_name": "team_log.EventDetails.paper_doc_slack_share_details", "param_name": "paperDocSlackShareDetailsValue", "static_instance": null, "getter_method": "getPaperDocSlackShareDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_team_invite_details": {"fq_name": "team_log.EventDetails.paper_doc_team_invite_details", "param_name": "paperDocTeamInviteDetailsValue", "static_instance": null, "getter_method": "getPaperDocTeamInviteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_trashed_details": {"fq_name": "team_log.EventDetails.paper_doc_trashed_details", "param_name": "paperDocTrashedDetailsValue", "static_instance": null, "getter_method": "getPaperDocTrashedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_unresolve_comment_details": {"fq_name": "team_log.EventDetails.paper_doc_unresolve_comment_details", "param_name": "paperDocUnresolveCommentDetailsValue", "static_instance": null, "getter_method": "getPaperDocUnresolveCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_untrashed_details": {"fq_name": "team_log.EventDetails.paper_doc_untrashed_details", "param_name": "paperDocUntrashedDetailsValue", "static_instance": null, "getter_method": "getPaperDocUntrashedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_doc_view_details": {"fq_name": "team_log.EventDetails.paper_doc_view_details", "param_name": "paperDocViewDetailsValue", "static_instance": null, "getter_method": "getPaperDocViewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_external_view_allow_details": {"fq_name": "team_log.EventDetails.paper_external_view_allow_details", "param_name": "paperExternalViewAllowDetailsValue", "static_instance": null, "getter_method": "getPaperExternalViewAllowDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_external_view_default_team_details": {"fq_name": "team_log.EventDetails.paper_external_view_default_team_details", "param_name": "paperExternalViewDefaultTeamDetailsValue", "static_instance": null, "getter_method": "getPaperExternalViewDefaultTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_external_view_forbid_details": {"fq_name": "team_log.EventDetails.paper_external_view_forbid_details", "param_name": "paperExternalViewForbidDetailsValue", "static_instance": null, "getter_method": "getPaperExternalViewForbidDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_folder_change_subscription_details": {"fq_name": "team_log.EventDetails.paper_folder_change_subscription_details", "param_name": "paperFolderChangeSubscriptionDetailsValue", "static_instance": null, "getter_method": "getPaperFolderChangeSubscriptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_folder_deleted_details": {"fq_name": "team_log.EventDetails.paper_folder_deleted_details", "param_name": "paperFolderDeletedDetailsValue", "static_instance": null, "getter_method": "getPaperFolderDeletedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_folder_followed_details": {"fq_name": "team_log.EventDetails.paper_folder_followed_details", "param_name": "paperFolderFollowedDetailsValue", "static_instance": null, "getter_method": "getPaperFolderFollowedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_folder_team_invite_details": {"fq_name": "team_log.EventDetails.paper_folder_team_invite_details", "param_name": "paperFolderTeamInviteDetailsValue", "static_instance": null, "getter_method": "getPaperFolderTeamInviteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_published_link_change_permission_details": {"fq_name": "team_log.EventDetails.paper_published_link_change_permission_details", "param_name": "paperPublishedLinkChangePermissionDetailsValue", "static_instance": null, "getter_method": "getPaperPublishedLinkChangePermissionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_published_link_create_details": {"fq_name": "team_log.EventDetails.paper_published_link_create_details", "param_name": "paperPublishedLinkCreateDetailsValue", "static_instance": null, "getter_method": "getPaperPublishedLinkCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_published_link_disabled_details": {"fq_name": "team_log.EventDetails.paper_published_link_disabled_details", "param_name": "paperPublishedLinkDisabledDetailsValue", "static_instance": null, "getter_method": "getPaperPublishedLinkDisabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_published_link_view_details": {"fq_name": "team_log.EventDetails.paper_published_link_view_details", "param_name": "paperPublishedLinkViewDetailsValue", "static_instance": null, "getter_method": "getPaperPublishedLinkViewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.password_change_details": {"fq_name": "team_log.EventDetails.password_change_details", "param_name": "passwordChangeDetailsValue", "static_instance": null, "getter_method": "getPasswordChangeDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.password_reset_details": {"fq_name": "team_log.EventDetails.password_reset_details", "param_name": "passwordResetDetailsValue", "static_instance": null, "getter_method": "getPasswordResetDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.password_reset_all_details": {"fq_name": "team_log.EventDetails.password_reset_all_details", "param_name": "passwordResetAllDetailsValue", "static_instance": null, "getter_method": "getPasswordResetAllDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.classification_create_report_details": {"fq_name": "team_log.EventDetails.classification_create_report_details", "param_name": "classificationCreateReportDetailsValue", "static_instance": null, "getter_method": "getClassificationCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.classification_create_report_fail_details": {"fq_name": "team_log.EventDetails.classification_create_report_fail_details", "param_name": "classificationCreateReportFailDetailsValue", "static_instance": null, "getter_method": "getClassificationCreateReportFailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.emm_create_exceptions_report_details": {"fq_name": "team_log.EventDetails.emm_create_exceptions_report_details", "param_name": "emmCreateExceptionsReportDetailsValue", "static_instance": null, "getter_method": "getEmmCreateExceptionsReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.emm_create_usage_report_details": {"fq_name": "team_log.EventDetails.emm_create_usage_report_details", "param_name": "emmCreateUsageReportDetailsValue", "static_instance": null, "getter_method": "getEmmCreateUsageReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.export_members_report_details": {"fq_name": "team_log.EventDetails.export_members_report_details", "param_name": "exportMembersReportDetailsValue", "static_instance": null, "getter_method": "getExportMembersReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.export_members_report_fail_details": {"fq_name": "team_log.EventDetails.export_members_report_fail_details", "param_name": "exportMembersReportFailDetailsValue", "static_instance": null, "getter_method": "getExportMembersReportFailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.external_sharing_create_report_details": {"fq_name": "team_log.EventDetails.external_sharing_create_report_details", "param_name": "externalSharingCreateReportDetailsValue", "static_instance": null, "getter_method": "getExternalSharingCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.external_sharing_report_failed_details": {"fq_name": "team_log.EventDetails.external_sharing_report_failed_details", "param_name": "externalSharingReportFailedDetailsValue", "static_instance": null, "getter_method": "getExternalSharingReportFailedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.no_expiration_link_gen_create_report_details": {"fq_name": "team_log.EventDetails.no_expiration_link_gen_create_report_details", "param_name": "noExpirationLinkGenCreateReportDetailsValue", "static_instance": null, "getter_method": "getNoExpirationLinkGenCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.no_expiration_link_gen_report_failed_details": {"fq_name": "team_log.EventDetails.no_expiration_link_gen_report_failed_details", "param_name": "noExpirationLinkGenReportFailedDetailsValue", "static_instance": null, "getter_method": "getNoExpirationLinkGenReportFailedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.no_password_link_gen_create_report_details": {"fq_name": "team_log.EventDetails.no_password_link_gen_create_report_details", "param_name": "noPasswordLinkGenCreateReportDetailsValue", "static_instance": null, "getter_method": "getNoPasswordLinkGenCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.no_password_link_gen_report_failed_details": {"fq_name": "team_log.EventDetails.no_password_link_gen_report_failed_details", "param_name": "noPasswordLinkGenReportFailedDetailsValue", "static_instance": null, "getter_method": "getNoPasswordLinkGenReportFailedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.no_password_link_view_create_report_details": {"fq_name": "team_log.EventDetails.no_password_link_view_create_report_details", "param_name": "noPasswordLinkViewCreateReportDetailsValue", "static_instance": null, "getter_method": "getNoPasswordLinkViewCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.no_password_link_view_report_failed_details": {"fq_name": "team_log.EventDetails.no_password_link_view_report_failed_details", "param_name": "noPasswordLinkViewReportFailedDetailsValue", "static_instance": null, "getter_method": "getNoPasswordLinkViewReportFailedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.outdated_link_view_create_report_details": {"fq_name": "team_log.EventDetails.outdated_link_view_create_report_details", "param_name": "outdatedLinkViewCreateReportDetailsValue", "static_instance": null, "getter_method": "getOutdatedLinkViewCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.outdated_link_view_report_failed_details": {"fq_name": "team_log.EventDetails.outdated_link_view_report_failed_details", "param_name": "outdatedLinkViewReportFailedDetailsValue", "static_instance": null, "getter_method": "getOutdatedLinkViewReportFailedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_admin_export_start_details": {"fq_name": "team_log.EventDetails.paper_admin_export_start_details", "param_name": "paperAdminExportStartDetailsValue", "static_instance": null, "getter_method": "getPaperAdminExportStartDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.ransomware_alert_create_report_details": {"fq_name": "team_log.EventDetails.ransomware_alert_create_report_details", "param_name": "ransomwareAlertCreateReportDetailsValue", "static_instance": null, "getter_method": "getRansomwareAlertCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.ransomware_alert_create_report_failed_details": {"fq_name": "team_log.EventDetails.ransomware_alert_create_report_failed_details", "param_name": "ransomwareAlertCreateReportFailedDetailsValue", "static_instance": null, "getter_method": "getRansomwareAlertCreateReportFailedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.smart_sync_create_admin_privilege_report_details": {"fq_name": "team_log.EventDetails.smart_sync_create_admin_privilege_report_details", "param_name": "smartSyncCreateAdminPrivilegeReportDetailsValue", "static_instance": null, "getter_method": "getSmartSyncCreateAdminPrivilegeReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_activity_create_report_details": {"fq_name": "team_log.EventDetails.team_activity_create_report_details", "param_name": "teamActivityCreateReportDetailsValue", "static_instance": null, "getter_method": "getTeamActivityCreateReportDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_activity_create_report_fail_details": {"fq_name": "team_log.EventDetails.team_activity_create_report_fail_details", "param_name": "teamActivityCreateReportFailDetailsValue", "static_instance": null, "getter_method": "getTeamActivityCreateReportFailDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.collection_share_details": {"fq_name": "team_log.EventDetails.collection_share_details", "param_name": "collectionShareDetailsValue", "static_instance": null, "getter_method": "getCollectionShareDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_transfers_file_add_details": {"fq_name": "team_log.EventDetails.file_transfers_file_add_details", "param_name": "fileTransfersFileAddDetailsValue", "static_instance": null, "getter_method": "getFileTransfersFileAddDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_transfers_transfer_delete_details": {"fq_name": "team_log.EventDetails.file_transfers_transfer_delete_details", "param_name": "fileTransfersTransferDeleteDetailsValue", "static_instance": null, "getter_method": "getFileTransfersTransferDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_transfers_transfer_download_details": {"fq_name": "team_log.EventDetails.file_transfers_transfer_download_details", "param_name": "fileTransfersTransferDownloadDetailsValue", "static_instance": null, "getter_method": "getFileTransfersTransferDownloadDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_transfers_transfer_send_details": {"fq_name": "team_log.EventDetails.file_transfers_transfer_send_details", "param_name": "fileTransfersTransferSendDetailsValue", "static_instance": null, "getter_method": "getFileTransfersTransferSendDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_transfers_transfer_view_details": {"fq_name": "team_log.EventDetails.file_transfers_transfer_view_details", "param_name": "fileTransfersTransferViewDetailsValue", "static_instance": null, "getter_method": "getFileTransfersTransferViewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.note_acl_invite_only_details": {"fq_name": "team_log.EventDetails.note_acl_invite_only_details", "param_name": "noteAclInviteOnlyDetailsValue", "static_instance": null, "getter_method": "getNoteAclInviteOnlyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.note_acl_link_details": {"fq_name": "team_log.EventDetails.note_acl_link_details", "param_name": "noteAclLinkDetailsValue", "static_instance": null, "getter_method": "getNoteAclLinkDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.note_acl_team_link_details": {"fq_name": "team_log.EventDetails.note_acl_team_link_details", "param_name": "noteAclTeamLinkDetailsValue", "static_instance": null, "getter_method": "getNoteAclTeamLinkDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.note_shared_details": {"fq_name": "team_log.EventDetails.note_shared_details", "param_name": "noteSharedDetailsValue", "static_instance": null, "getter_method": "getNoteSharedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.note_share_receive_details": {"fq_name": "team_log.EventDetails.note_share_receive_details", "param_name": "noteShareReceiveDetailsValue", "static_instance": null, "getter_method": "getNoteShareReceiveDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.open_note_shared_details": {"fq_name": "team_log.EventDetails.open_note_shared_details", "param_name": "openNoteSharedDetailsValue", "static_instance": null, "getter_method": "getOpenNoteSharedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.replay_file_shared_link_created_details": {"fq_name": "team_log.EventDetails.replay_file_shared_link_created_details", "param_name": "replayFileSharedLinkCreatedDetailsValue", "static_instance": null, "getter_method": "getReplayFileSharedLinkCreatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.replay_file_shared_link_modified_details": {"fq_name": "team_log.EventDetails.replay_file_shared_link_modified_details", "param_name": "replayFileSharedLinkModifiedDetailsValue", "static_instance": null, "getter_method": "getReplayFileSharedLinkModifiedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.replay_project_team_add_details": {"fq_name": "team_log.EventDetails.replay_project_team_add_details", "param_name": "replayProjectTeamAddDetailsValue", "static_instance": null, "getter_method": "getReplayProjectTeamAddDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.replay_project_team_delete_details": {"fq_name": "team_log.EventDetails.replay_project_team_delete_details", "param_name": "replayProjectTeamDeleteDetailsValue", "static_instance": null, "getter_method": "getReplayProjectTeamDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_add_group_details": {"fq_name": "team_log.EventDetails.sf_add_group_details", "param_name": "sfAddGroupDetailsValue", "static_instance": null, "getter_method": "getSfAddGroupDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_allow_non_members_to_view_shared_links_details": {"fq_name": "team_log.EventDetails.sf_allow_non_members_to_view_shared_links_details", "param_name": "sfAllowNonMembersToViewSharedLinksDetailsValue", "static_instance": null, "getter_method": "getSfAllowNonMembersToViewSharedLinksDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_external_invite_warn_details": {"fq_name": "team_log.EventDetails.sf_external_invite_warn_details", "param_name": "sfExternalInviteWarnDetailsValue", "static_instance": null, "getter_method": "getSfExternalInviteWarnDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_fb_invite_details": {"fq_name": "team_log.EventDetails.sf_fb_invite_details", "param_name": "sfFbInviteDetailsValue", "static_instance": null, "getter_method": "getSfFbInviteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_fb_invite_change_role_details": {"fq_name": "team_log.EventDetails.sf_fb_invite_change_role_details", "param_name": "sfFbInviteChangeRoleDetailsValue", "static_instance": null, "getter_method": "getSfFbInviteChangeRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_fb_uninvite_details": {"fq_name": "team_log.EventDetails.sf_fb_uninvite_details", "param_name": "sfFbUninviteDetailsValue", "static_instance": null, "getter_method": "getSfFbUninviteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_invite_group_details": {"fq_name": "team_log.EventDetails.sf_invite_group_details", "param_name": "sfInviteGroupDetailsValue", "static_instance": null, "getter_method": "getSfInviteGroupDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_team_grant_access_details": {"fq_name": "team_log.EventDetails.sf_team_grant_access_details", "param_name": "sfTeamGrantAccessDetailsValue", "static_instance": null, "getter_method": "getSfTeamGrantAccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_team_invite_details": {"fq_name": "team_log.EventDetails.sf_team_invite_details", "param_name": "sfTeamInviteDetailsValue", "static_instance": null, "getter_method": "getSfTeamInviteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_team_invite_change_role_details": {"fq_name": "team_log.EventDetails.sf_team_invite_change_role_details", "param_name": "sfTeamInviteChangeRoleDetailsValue", "static_instance": null, "getter_method": "getSfTeamInviteChangeRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_team_join_details": {"fq_name": "team_log.EventDetails.sf_team_join_details", "param_name": "sfTeamJoinDetailsValue", "static_instance": null, "getter_method": "getSfTeamJoinDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_team_join_from_oob_link_details": {"fq_name": "team_log.EventDetails.sf_team_join_from_oob_link_details", "param_name": "sfTeamJoinFromOobLinkDetailsValue", "static_instance": null, "getter_method": "getSfTeamJoinFromOobLinkDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sf_team_uninvite_details": {"fq_name": "team_log.EventDetails.sf_team_uninvite_details", "param_name": "sfTeamUninviteDetailsValue", "static_instance": null, "getter_method": "getSfTeamUninviteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_add_invitees_details": {"fq_name": "team_log.EventDetails.shared_content_add_invitees_details", "param_name": "sharedContentAddInviteesDetailsValue", "static_instance": null, "getter_method": "getSharedContentAddInviteesDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_add_link_expiry_details": {"fq_name": "team_log.EventDetails.shared_content_add_link_expiry_details", "param_name": "sharedContentAddLinkExpiryDetailsValue", "static_instance": null, "getter_method": "getSharedContentAddLinkExpiryDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_add_link_password_details": {"fq_name": "team_log.EventDetails.shared_content_add_link_password_details", "param_name": "sharedContentAddLinkPasswordDetailsValue", "static_instance": null, "getter_method": "getSharedContentAddLinkPasswordDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_add_member_details": {"fq_name": "team_log.EventDetails.shared_content_add_member_details", "param_name": "sharedContentAddMemberDetailsValue", "static_instance": null, "getter_method": "getSharedContentAddMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_change_downloads_policy_details": {"fq_name": "team_log.EventDetails.shared_content_change_downloads_policy_details", "param_name": "sharedContentChangeDownloadsPolicyDetailsValue", "static_instance": null, "getter_method": "getSharedContentChangeDownloadsPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_change_invitee_role_details": {"fq_name": "team_log.EventDetails.shared_content_change_invitee_role_details", "param_name": "sharedContentChangeInviteeRoleDetailsValue", "static_instance": null, "getter_method": "getSharedContentChangeInviteeRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_change_link_audience_details": {"fq_name": "team_log.EventDetails.shared_content_change_link_audience_details", "param_name": "sharedContentChangeLinkAudienceDetailsValue", "static_instance": null, "getter_method": "getSharedContentChangeLinkAudienceDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_change_link_expiry_details": {"fq_name": "team_log.EventDetails.shared_content_change_link_expiry_details", "param_name": "sharedContentChangeLinkExpiryDetailsValue", "static_instance": null, "getter_method": "getSharedContentChangeLinkExpiryDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_change_link_password_details": {"fq_name": "team_log.EventDetails.shared_content_change_link_password_details", "param_name": "sharedContentChangeLinkPasswordDetailsValue", "static_instance": null, "getter_method": "getSharedContentChangeLinkPasswordDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_change_member_role_details": {"fq_name": "team_log.EventDetails.shared_content_change_member_role_details", "param_name": "sharedContentChangeMemberRoleDetailsValue", "static_instance": null, "getter_method": "getSharedContentChangeMemberRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_change_viewer_info_policy_details": {"fq_name": "team_log.EventDetails.shared_content_change_viewer_info_policy_details", "param_name": "sharedContentChangeViewerInfoPolicyDetailsValue", "static_instance": null, "getter_method": "getSharedContentChangeViewerInfoPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_claim_invitation_details": {"fq_name": "team_log.EventDetails.shared_content_claim_invitation_details", "param_name": "sharedContentClaimInvitationDetailsValue", "static_instance": null, "getter_method": "getSharedContentClaimInvitationDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_copy_details": {"fq_name": "team_log.EventDetails.shared_content_copy_details", "param_name": "sharedContentCopyDetailsValue", "static_instance": null, "getter_method": "getSharedContentCopyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_download_details": {"fq_name": "team_log.EventDetails.shared_content_download_details", "param_name": "sharedContentDownloadDetailsValue", "static_instance": null, "getter_method": "getSharedContentDownloadDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_relinquish_membership_details": {"fq_name": "team_log.EventDetails.shared_content_relinquish_membership_details", "param_name": "sharedContentRelinquishMembershipDetailsValue", "static_instance": null, "getter_method": "getSharedContentRelinquishMembershipDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_remove_invitees_details": {"fq_name": "team_log.EventDetails.shared_content_remove_invitees_details", "param_name": "sharedContentRemoveInviteesDetailsValue", "static_instance": null, "getter_method": "getSharedContentRemoveInviteesDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_remove_link_expiry_details": {"fq_name": "team_log.EventDetails.shared_content_remove_link_expiry_details", "param_name": "sharedContentRemoveLinkExpiryDetailsValue", "static_instance": null, "getter_method": "getSharedContentRemoveLinkExpiryDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_remove_link_password_details": {"fq_name": "team_log.EventDetails.shared_content_remove_link_password_details", "param_name": "sharedContentRemoveLinkPasswordDetailsValue", "static_instance": null, "getter_method": "getSharedContentRemoveLinkPasswordDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_remove_member_details": {"fq_name": "team_log.EventDetails.shared_content_remove_member_details", "param_name": "sharedContentRemoveMemberDetailsValue", "static_instance": null, "getter_method": "getSharedContentRemoveMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_request_access_details": {"fq_name": "team_log.EventDetails.shared_content_request_access_details", "param_name": "sharedContentRequestAccessDetailsValue", "static_instance": null, "getter_method": "getSharedContentRequestAccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_restore_invitees_details": {"fq_name": "team_log.EventDetails.shared_content_restore_invitees_details", "param_name": "sharedContentRestoreInviteesDetailsValue", "static_instance": null, "getter_method": "getSharedContentRestoreInviteesDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_restore_member_details": {"fq_name": "team_log.EventDetails.shared_content_restore_member_details", "param_name": "sharedContentRestoreMemberDetailsValue", "static_instance": null, "getter_method": "getSharedContentRestoreMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_unshare_details": {"fq_name": "team_log.EventDetails.shared_content_unshare_details", "param_name": "sharedContentUnshareDetailsValue", "static_instance": null, "getter_method": "getSharedContentUnshareDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_content_view_details": {"fq_name": "team_log.EventDetails.shared_content_view_details", "param_name": "sharedContentViewDetailsValue", "static_instance": null, "getter_method": "getSharedContentViewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_change_link_policy_details": {"fq_name": "team_log.EventDetails.shared_folder_change_link_policy_details", "param_name": "sharedFolderChangeLinkPolicyDetailsValue", "static_instance": null, "getter_method": "getSharedFolderChangeLinkPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_change_members_inheritance_policy_details": {"fq_name": "team_log.EventDetails.shared_folder_change_members_inheritance_policy_details", "param_name": "sharedFolderChangeMembersInheritancePolicyDetailsValue", "static_instance": null, "getter_method": "getSharedFolderChangeMembersInheritancePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_change_members_management_policy_details": {"fq_name": "team_log.EventDetails.shared_folder_change_members_management_policy_details", "param_name": "sharedFolderChangeMembersManagementPolicyDetailsValue", "static_instance": null, "getter_method": "getSharedFolderChangeMembersManagementPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_change_members_policy_details": {"fq_name": "team_log.EventDetails.shared_folder_change_members_policy_details", "param_name": "sharedFolderChangeMembersPolicyDetailsValue", "static_instance": null, "getter_method": "getSharedFolderChangeMembersPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_create_details": {"fq_name": "team_log.EventDetails.shared_folder_create_details", "param_name": "sharedFolderCreateDetailsValue", "static_instance": null, "getter_method": "getSharedFolderCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_decline_invitation_details": {"fq_name": "team_log.EventDetails.shared_folder_decline_invitation_details", "param_name": "sharedFolderDeclineInvitationDetailsValue", "static_instance": null, "getter_method": "getSharedFolderDeclineInvitationDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_mount_details": {"fq_name": "team_log.EventDetails.shared_folder_mount_details", "param_name": "sharedFolderMountDetailsValue", "static_instance": null, "getter_method": "getSharedFolderMountDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_nest_details": {"fq_name": "team_log.EventDetails.shared_folder_nest_details", "param_name": "sharedFolderNestDetailsValue", "static_instance": null, "getter_method": "getSharedFolderNestDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_transfer_ownership_details": {"fq_name": "team_log.EventDetails.shared_folder_transfer_ownership_details", "param_name": "sharedFolderTransferOwnershipDetailsValue", "static_instance": null, "getter_method": "getSharedFolderTransferOwnershipDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_folder_unmount_details": {"fq_name": "team_log.EventDetails.shared_folder_unmount_details", "param_name": "sharedFolderUnmountDetailsValue", "static_instance": null, "getter_method": "getSharedFolderUnmountDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_add_expiry_details": {"fq_name": "team_log.EventDetails.shared_link_add_expiry_details", "param_name": "sharedLinkAddExpiryDetailsValue", "static_instance": null, "getter_method": "getSharedLinkAddExpiryDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_change_expiry_details": {"fq_name": "team_log.EventDetails.shared_link_change_expiry_details", "param_name": "sharedLinkChangeExpiryDetailsValue", "static_instance": null, "getter_method": "getSharedLinkChangeExpiryDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_change_visibility_details": {"fq_name": "team_log.EventDetails.shared_link_change_visibility_details", "param_name": "sharedLinkChangeVisibilityDetailsValue", "static_instance": null, "getter_method": "getSharedLinkChangeVisibilityDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_copy_details": {"fq_name": "team_log.EventDetails.shared_link_copy_details", "param_name": "sharedLinkCopyDetailsValue", "static_instance": null, "getter_method": "getSharedLinkCopyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_create_details": {"fq_name": "team_log.EventDetails.shared_link_create_details", "param_name": "sharedLinkCreateDetailsValue", "static_instance": null, "getter_method": "getSharedLinkCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_disable_details": {"fq_name": "team_log.EventDetails.shared_link_disable_details", "param_name": "sharedLinkDisableDetailsValue", "static_instance": null, "getter_method": "getSharedLinkDisableDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_download_details": {"fq_name": "team_log.EventDetails.shared_link_download_details", "param_name": "sharedLinkDownloadDetailsValue", "static_instance": null, "getter_method": "getSharedLinkDownloadDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_remove_expiry_details": {"fq_name": "team_log.EventDetails.shared_link_remove_expiry_details", "param_name": "sharedLinkRemoveExpiryDetailsValue", "static_instance": null, "getter_method": "getSharedLinkRemoveExpiryDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_add_expiration_details": {"fq_name": "team_log.EventDetails.shared_link_settings_add_expiration_details", "param_name": "sharedLinkSettingsAddExpirationDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAddExpirationDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_add_password_details": {"fq_name": "team_log.EventDetails.shared_link_settings_add_password_details", "param_name": "sharedLinkSettingsAddPasswordDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAddPasswordDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_allow_download_disabled_details": {"fq_name": "team_log.EventDetails.shared_link_settings_allow_download_disabled_details", "param_name": "sharedLinkSettingsAllowDownloadDisabledDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAllowDownloadDisabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_allow_download_enabled_details": {"fq_name": "team_log.EventDetails.shared_link_settings_allow_download_enabled_details", "param_name": "sharedLinkSettingsAllowDownloadEnabledDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAllowDownloadEnabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_change_audience_details": {"fq_name": "team_log.EventDetails.shared_link_settings_change_audience_details", "param_name": "sharedLinkSettingsChangeAudienceDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsChangeAudienceDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_change_expiration_details": {"fq_name": "team_log.EventDetails.shared_link_settings_change_expiration_details", "param_name": "sharedLinkSettingsChangeExpirationDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsChangeExpirationDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_change_password_details": {"fq_name": "team_log.EventDetails.shared_link_settings_change_password_details", "param_name": "sharedLinkSettingsChangePasswordDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsChangePasswordDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_remove_expiration_details": {"fq_name": "team_log.EventDetails.shared_link_settings_remove_expiration_details", "param_name": "sharedLinkSettingsRemoveExpirationDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsRemoveExpirationDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_settings_remove_password_details": {"fq_name": "team_log.EventDetails.shared_link_settings_remove_password_details", "param_name": "sharedLinkSettingsRemovePasswordDetailsValue", "static_instance": null, "getter_method": "getSharedLinkSettingsRemovePasswordDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_share_details": {"fq_name": "team_log.EventDetails.shared_link_share_details", "param_name": "sharedLinkShareDetailsValue", "static_instance": null, "getter_method": "getSharedLinkShareDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_link_view_details": {"fq_name": "team_log.EventDetails.shared_link_view_details", "param_name": "sharedLinkViewDetailsValue", "static_instance": null, "getter_method": "getSharedLinkViewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shared_note_opened_details": {"fq_name": "team_log.EventDetails.shared_note_opened_details", "param_name": "sharedNoteOpenedDetailsValue", "static_instance": null, "getter_method": "getSharedNoteOpenedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shmodel_disable_downloads_details": {"fq_name": "team_log.EventDetails.shmodel_disable_downloads_details", "param_name": "shmodelDisableDownloadsDetailsValue", "static_instance": null, "getter_method": "getShmodelDisableDownloadsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shmodel_enable_downloads_details": {"fq_name": "team_log.EventDetails.shmodel_enable_downloads_details", "param_name": "shmodelEnableDownloadsDetailsValue", "static_instance": null, "getter_method": "getShmodelEnableDownloadsDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.shmodel_group_share_details": {"fq_name": "team_log.EventDetails.shmodel_group_share_details", "param_name": "shmodelGroupShareDetailsValue", "static_instance": null, "getter_method": "getShmodelGroupShareDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_access_granted_details": {"fq_name": "team_log.EventDetails.showcase_access_granted_details", "param_name": "showcaseAccessGrantedDetailsValue", "static_instance": null, "getter_method": "getShowcaseAccessGrantedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_add_member_details": {"fq_name": "team_log.EventDetails.showcase_add_member_details", "param_name": "showcaseAddMemberDetailsValue", "static_instance": null, "getter_method": "getShowcaseAddMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_archived_details": {"fq_name": "team_log.EventDetails.showcase_archived_details", "param_name": "showcaseArchivedDetailsValue", "static_instance": null, "getter_method": "getShowcaseArchivedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_created_details": {"fq_name": "team_log.EventDetails.showcase_created_details", "param_name": "showcaseCreatedDetailsValue", "static_instance": null, "getter_method": "getShowcaseCreatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_delete_comment_details": {"fq_name": "team_log.EventDetails.showcase_delete_comment_details", "param_name": "showcaseDeleteCommentDetailsValue", "static_instance": null, "getter_method": "getShowcaseDeleteCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_edited_details": {"fq_name": "team_log.EventDetails.showcase_edited_details", "param_name": "showcaseEditedDetailsValue", "static_instance": null, "getter_method": "getShowcaseEditedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_edit_comment_details": {"fq_name": "team_log.EventDetails.showcase_edit_comment_details", "param_name": "showcaseEditCommentDetailsValue", "static_instance": null, "getter_method": "getShowcaseEditCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_file_added_details": {"fq_name": "team_log.EventDetails.showcase_file_added_details", "param_name": "showcaseFileAddedDetailsValue", "static_instance": null, "getter_method": "getShowcaseFileAddedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_file_download_details": {"fq_name": "team_log.EventDetails.showcase_file_download_details", "param_name": "showcaseFileDownloadDetailsValue", "static_instance": null, "getter_method": "getShowcaseFileDownloadDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_file_removed_details": {"fq_name": "team_log.EventDetails.showcase_file_removed_details", "param_name": "showcaseFileRemovedDetailsValue", "static_instance": null, "getter_method": "getShowcaseFileRemovedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_file_view_details": {"fq_name": "team_log.EventDetails.showcase_file_view_details", "param_name": "showcaseFileViewDetailsValue", "static_instance": null, "getter_method": "getShowcaseFileViewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_permanently_deleted_details": {"fq_name": "team_log.EventDetails.showcase_permanently_deleted_details", "param_name": "showcasePermanentlyDeletedDetailsValue", "static_instance": null, "getter_method": "getShowcasePermanentlyDeletedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_post_comment_details": {"fq_name": "team_log.EventDetails.showcase_post_comment_details", "param_name": "showcasePostCommentDetailsValue", "static_instance": null, "getter_method": "getShowcasePostCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_remove_member_details": {"fq_name": "team_log.EventDetails.showcase_remove_member_details", "param_name": "showcaseRemoveMemberDetailsValue", "static_instance": null, "getter_method": "getShowcaseRemoveMemberDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_renamed_details": {"fq_name": "team_log.EventDetails.showcase_renamed_details", "param_name": "showcaseRenamedDetailsValue", "static_instance": null, "getter_method": "getShowcaseRenamedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_request_access_details": {"fq_name": "team_log.EventDetails.showcase_request_access_details", "param_name": "showcaseRequestAccessDetailsValue", "static_instance": null, "getter_method": "getShowcaseRequestAccessDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_resolve_comment_details": {"fq_name": "team_log.EventDetails.showcase_resolve_comment_details", "param_name": "showcaseResolveCommentDetailsValue", "static_instance": null, "getter_method": "getShowcaseResolveCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_restored_details": {"fq_name": "team_log.EventDetails.showcase_restored_details", "param_name": "showcaseRestoredDetailsValue", "static_instance": null, "getter_method": "getShowcaseRestoredDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_trashed_details": {"fq_name": "team_log.EventDetails.showcase_trashed_details", "param_name": "showcaseTrashedDetailsValue", "static_instance": null, "getter_method": "getShowcaseTrashedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_trashed_deprecated_details": {"fq_name": "team_log.EventDetails.showcase_trashed_deprecated_details", "param_name": "showcaseTrashedDeprecatedDetailsValue", "static_instance": null, "getter_method": "getShowcaseTrashedDeprecatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_unresolve_comment_details": {"fq_name": "team_log.EventDetails.showcase_unresolve_comment_details", "param_name": "showcaseUnresolveCommentDetailsValue", "static_instance": null, "getter_method": "getShowcaseUnresolveCommentDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_untrashed_details": {"fq_name": "team_log.EventDetails.showcase_untrashed_details", "param_name": "showcaseUntrashedDetailsValue", "static_instance": null, "getter_method": "getShowcaseUntrashedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_untrashed_deprecated_details": {"fq_name": "team_log.EventDetails.showcase_untrashed_deprecated_details", "param_name": "showcaseUntrashedDeprecatedDetailsValue", "static_instance": null, "getter_method": "getShowcaseUntrashedDeprecatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_view_details": {"fq_name": "team_log.EventDetails.showcase_view_details", "param_name": "showcaseViewDetailsValue", "static_instance": null, "getter_method": "getShowcaseViewDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_add_cert_details": {"fq_name": "team_log.EventDetails.sso_add_cert_details", "param_name": "ssoAddCertDetailsValue", "static_instance": null, "getter_method": "getSsoAddCertDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_add_login_url_details": {"fq_name": "team_log.EventDetails.sso_add_login_url_details", "param_name": "ssoAddLoginUrlDetailsValue", "static_instance": null, "getter_method": "getSsoAddLoginUrlDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_add_logout_url_details": {"fq_name": "team_log.EventDetails.sso_add_logout_url_details", "param_name": "ssoAddLogoutUrlDetailsValue", "static_instance": null, "getter_method": "getSsoAddLogoutUrlDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_change_cert_details": {"fq_name": "team_log.EventDetails.sso_change_cert_details", "param_name": "ssoChangeCertDetailsValue", "static_instance": null, "getter_method": "getSsoChangeCertDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_change_login_url_details": {"fq_name": "team_log.EventDetails.sso_change_login_url_details", "param_name": "ssoChangeLoginUrlDetailsValue", "static_instance": null, "getter_method": "getSsoChangeLoginUrlDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_change_logout_url_details": {"fq_name": "team_log.EventDetails.sso_change_logout_url_details", "param_name": "ssoChangeLogoutUrlDetailsValue", "static_instance": null, "getter_method": "getSsoChangeLogoutUrlDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_change_saml_identity_mode_details": {"fq_name": "team_log.EventDetails.sso_change_saml_identity_mode_details", "param_name": "ssoChangeSamlIdentityModeDetailsValue", "static_instance": null, "getter_method": "getSsoChangeSamlIdentityModeDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_remove_cert_details": {"fq_name": "team_log.EventDetails.sso_remove_cert_details", "param_name": "ssoRemoveCertDetailsValue", "static_instance": null, "getter_method": "getSsoRemoveCertDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_remove_login_url_details": {"fq_name": "team_log.EventDetails.sso_remove_login_url_details", "param_name": "ssoRemoveLoginUrlDetailsValue", "static_instance": null, "getter_method": "getSsoRemoveLoginUrlDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_remove_logout_url_details": {"fq_name": "team_log.EventDetails.sso_remove_logout_url_details", "param_name": "ssoRemoveLogoutUrlDetailsValue", "static_instance": null, "getter_method": "getSsoRemoveLogoutUrlDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_folder_change_status_details": {"fq_name": "team_log.EventDetails.team_folder_change_status_details", "param_name": "teamFolderChangeStatusDetailsValue", "static_instance": null, "getter_method": "getTeamFolderChangeStatusDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_folder_create_details": {"fq_name": "team_log.EventDetails.team_folder_create_details", "param_name": "teamFolderCreateDetailsValue", "static_instance": null, "getter_method": "getTeamFolderCreateDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_folder_downgrade_details": {"fq_name": "team_log.EventDetails.team_folder_downgrade_details", "param_name": "teamFolderDowngradeDetailsValue", "static_instance": null, "getter_method": "getTeamFolderDowngradeDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_folder_permanently_delete_details": {"fq_name": "team_log.EventDetails.team_folder_permanently_delete_details", "param_name": "teamFolderPermanentlyDeleteDetailsValue", "static_instance": null, "getter_method": "getTeamFolderPermanentlyDeleteDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_folder_rename_details": {"fq_name": "team_log.EventDetails.team_folder_rename_details", "param_name": "teamFolderRenameDetailsValue", "static_instance": null, "getter_method": "getTeamFolderRenameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_selective_sync_settings_changed_details": {"fq_name": "team_log.EventDetails.team_selective_sync_settings_changed_details", "param_name": "teamSelectiveSyncSettingsChangedDetailsValue", "static_instance": null, "getter_method": "getTeamSelectiveSyncSettingsChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.account_capture_change_policy_details": {"fq_name": "team_log.EventDetails.account_capture_change_policy_details", "param_name": "accountCaptureChangePolicyDetailsValue", "static_instance": null, "getter_method": "getAccountCaptureChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.admin_email_reminders_changed_details": {"fq_name": "team_log.EventDetails.admin_email_reminders_changed_details", "param_name": "adminEmailRemindersChangedDetailsValue", "static_instance": null, "getter_method": "getAdminEmailRemindersChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.allow_download_disabled_details": {"fq_name": "team_log.EventDetails.allow_download_disabled_details", "param_name": "allowDownloadDisabledDetailsValue", "static_instance": null, "getter_method": "getAllowDownloadDisabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.allow_download_enabled_details": {"fq_name": "team_log.EventDetails.allow_download_enabled_details", "param_name": "allowDownloadEnabledDetailsValue", "static_instance": null, "getter_method": "getAllowDownloadEnabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.app_permissions_changed_details": {"fq_name": "team_log.EventDetails.app_permissions_changed_details", "param_name": "appPermissionsChangedDetailsValue", "static_instance": null, "getter_method": "getAppPermissionsChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.camera_uploads_policy_changed_details": {"fq_name": "team_log.EventDetails.camera_uploads_policy_changed_details", "param_name": "cameraUploadsPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getCameraUploadsPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.capture_transcript_policy_changed_details": {"fq_name": "team_log.EventDetails.capture_transcript_policy_changed_details", "param_name": "captureTranscriptPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getCaptureTranscriptPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.classification_change_policy_details": {"fq_name": "team_log.EventDetails.classification_change_policy_details", "param_name": "classificationChangePolicyDetailsValue", "static_instance": null, "getter_method": "getClassificationChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.computer_backup_policy_changed_details": {"fq_name": "team_log.EventDetails.computer_backup_policy_changed_details", "param_name": "computerBackupPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getComputerBackupPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.content_administration_policy_changed_details": {"fq_name": "team_log.EventDetails.content_administration_policy_changed_details", "param_name": "contentAdministrationPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getContentAdministrationPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.data_placement_restriction_change_policy_details": {"fq_name": "team_log.EventDetails.data_placement_restriction_change_policy_details", "param_name": "dataPlacementRestrictionChangePolicyDetailsValue", "static_instance": null, "getter_method": "getDataPlacementRestrictionChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.data_placement_restriction_satisfy_policy_details": {"fq_name": "team_log.EventDetails.data_placement_restriction_satisfy_policy_details", "param_name": "dataPlacementRestrictionSatisfyPolicyDetailsValue", "static_instance": null, "getter_method": "getDataPlacementRestrictionSatisfyPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_approvals_add_exception_details": {"fq_name": "team_log.EventDetails.device_approvals_add_exception_details", "param_name": "deviceApprovalsAddExceptionDetailsValue", "static_instance": null, "getter_method": "getDeviceApprovalsAddExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_approvals_change_desktop_policy_details": {"fq_name": "team_log.EventDetails.device_approvals_change_desktop_policy_details", "param_name": "deviceApprovalsChangeDesktopPolicyDetailsValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeDesktopPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_approvals_change_mobile_policy_details": {"fq_name": "team_log.EventDetails.device_approvals_change_mobile_policy_details", "param_name": "deviceApprovalsChangeMobilePolicyDetailsValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeMobilePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_approvals_change_overage_action_details": {"fq_name": "team_log.EventDetails.device_approvals_change_overage_action_details", "param_name": "deviceApprovalsChangeOverageActionDetailsValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeOverageActionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_approvals_change_unlink_action_details": {"fq_name": "team_log.EventDetails.device_approvals_change_unlink_action_details", "param_name": "deviceApprovalsChangeUnlinkActionDetailsValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeUnlinkActionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.device_approvals_remove_exception_details": {"fq_name": "team_log.EventDetails.device_approvals_remove_exception_details", "param_name": "deviceApprovalsRemoveExceptionDetailsValue", "static_instance": null, "getter_method": "getDeviceApprovalsRemoveExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.directory_restrictions_add_members_details": {"fq_name": "team_log.EventDetails.directory_restrictions_add_members_details", "param_name": "directoryRestrictionsAddMembersDetailsValue", "static_instance": null, "getter_method": "getDirectoryRestrictionsAddMembersDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.directory_restrictions_remove_members_details": {"fq_name": "team_log.EventDetails.directory_restrictions_remove_members_details", "param_name": "directoryRestrictionsRemoveMembersDetailsValue", "static_instance": null, "getter_method": "getDirectoryRestrictionsRemoveMembersDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.dropbox_passwords_policy_changed_details": {"fq_name": "team_log.EventDetails.dropbox_passwords_policy_changed_details", "param_name": "dropboxPasswordsPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getDropboxPasswordsPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.email_ingest_policy_changed_details": {"fq_name": "team_log.EventDetails.email_ingest_policy_changed_details", "param_name": "emailIngestPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getEmailIngestPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.emm_add_exception_details": {"fq_name": "team_log.EventDetails.emm_add_exception_details", "param_name": "emmAddExceptionDetailsValue", "static_instance": null, "getter_method": "getEmmAddExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.emm_change_policy_details": {"fq_name": "team_log.EventDetails.emm_change_policy_details", "param_name": "emmChangePolicyDetailsValue", "static_instance": null, "getter_method": "getEmmChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.emm_remove_exception_details": {"fq_name": "team_log.EventDetails.emm_remove_exception_details", "param_name": "emmRemoveExceptionDetailsValue", "static_instance": null, "getter_method": "getEmmRemoveExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.extended_version_history_change_policy_details": {"fq_name": "team_log.EventDetails.extended_version_history_change_policy_details", "param_name": "extendedVersionHistoryChangePolicyDetailsValue", "static_instance": null, "getter_method": "getExtendedVersionHistoryChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.external_drive_backup_policy_changed_details": {"fq_name": "team_log.EventDetails.external_drive_backup_policy_changed_details", "param_name": "externalDriveBackupPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getExternalDriveBackupPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_comments_change_policy_details": {"fq_name": "team_log.EventDetails.file_comments_change_policy_details", "param_name": "fileCommentsChangePolicyDetailsValue", "static_instance": null, "getter_method": "getFileCommentsChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_locking_policy_changed_details": {"fq_name": "team_log.EventDetails.file_locking_policy_changed_details", "param_name": "fileLockingPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getFileLockingPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_provider_migration_policy_changed_details": {"fq_name": "team_log.EventDetails.file_provider_migration_policy_changed_details", "param_name": "fileProviderMigrationPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getFileProviderMigrationPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_requests_change_policy_details": {"fq_name": "team_log.EventDetails.file_requests_change_policy_details", "param_name": "fileRequestsChangePolicyDetailsValue", "static_instance": null, "getter_method": "getFileRequestsChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_requests_emails_enabled_details": {"fq_name": "team_log.EventDetails.file_requests_emails_enabled_details", "param_name": "fileRequestsEmailsEnabledDetailsValue", "static_instance": null, "getter_method": "getFileRequestsEmailsEnabledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_requests_emails_restricted_to_team_only_details": {"fq_name": "team_log.EventDetails.file_requests_emails_restricted_to_team_only_details", "param_name": "fileRequestsEmailsRestrictedToTeamOnlyDetailsValue", "static_instance": null, "getter_method": "getFileRequestsEmailsRestrictedToTeamOnlyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.file_transfers_policy_changed_details": {"fq_name": "team_log.EventDetails.file_transfers_policy_changed_details", "param_name": "fileTransfersPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getFileTransfersPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.folder_link_restriction_policy_changed_details": {"fq_name": "team_log.EventDetails.folder_link_restriction_policy_changed_details", "param_name": "folderLinkRestrictionPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getFolderLinkRestrictionPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.google_sso_change_policy_details": {"fq_name": "team_log.EventDetails.google_sso_change_policy_details", "param_name": "googleSsoChangePolicyDetailsValue", "static_instance": null, "getter_method": "getGoogleSsoChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.group_user_management_change_policy_details": {"fq_name": "team_log.EventDetails.group_user_management_change_policy_details", "param_name": "groupUserManagementChangePolicyDetailsValue", "static_instance": null, "getter_method": "getGroupUserManagementChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.integration_policy_changed_details": {"fq_name": "team_log.EventDetails.integration_policy_changed_details", "param_name": "integrationPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getIntegrationPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.invite_acceptance_email_policy_changed_details": {"fq_name": "team_log.EventDetails.invite_acceptance_email_policy_changed_details", "param_name": "inviteAcceptanceEmailPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getInviteAcceptanceEmailPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_requests_change_policy_details": {"fq_name": "team_log.EventDetails.member_requests_change_policy_details", "param_name": "memberRequestsChangePolicyDetailsValue", "static_instance": null, "getter_method": "getMemberRequestsChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_send_invite_policy_changed_details": {"fq_name": "team_log.EventDetails.member_send_invite_policy_changed_details", "param_name": "memberSendInvitePolicyChangedDetailsValue", "static_instance": null, "getter_method": "getMemberSendInvitePolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_add_exception_details": {"fq_name": "team_log.EventDetails.member_space_limits_add_exception_details", "param_name": "memberSpaceLimitsAddExceptionDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsAddExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_change_caps_type_policy_details": {"fq_name": "team_log.EventDetails.member_space_limits_change_caps_type_policy_details", "param_name": "memberSpaceLimitsChangeCapsTypePolicyDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangeCapsTypePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_change_policy_details": {"fq_name": "team_log.EventDetails.member_space_limits_change_policy_details", "param_name": "memberSpaceLimitsChangePolicyDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_space_limits_remove_exception_details": {"fq_name": "team_log.EventDetails.member_space_limits_remove_exception_details", "param_name": "memberSpaceLimitsRemoveExceptionDetailsValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsRemoveExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.member_suggestions_change_policy_details": {"fq_name": "team_log.EventDetails.member_suggestions_change_policy_details", "param_name": "memberSuggestionsChangePolicyDetailsValue", "static_instance": null, "getter_method": "getMemberSuggestionsChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.microsoft_office_addin_change_policy_details": {"fq_name": "team_log.EventDetails.microsoft_office_addin_change_policy_details", "param_name": "microsoftOfficeAddinChangePolicyDetailsValue", "static_instance": null, "getter_method": "getMicrosoftOfficeAddinChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.network_control_change_policy_details": {"fq_name": "team_log.EventDetails.network_control_change_policy_details", "param_name": "networkControlChangePolicyDetailsValue", "static_instance": null, "getter_method": "getNetworkControlChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_change_deployment_policy_details": {"fq_name": "team_log.EventDetails.paper_change_deployment_policy_details", "param_name": "paperChangeDeploymentPolicyDetailsValue", "static_instance": null, "getter_method": "getPaperChangeDeploymentPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_change_member_link_policy_details": {"fq_name": "team_log.EventDetails.paper_change_member_link_policy_details", "param_name": "paperChangeMemberLinkPolicyDetailsValue", "static_instance": null, "getter_method": "getPaperChangeMemberLinkPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_change_member_policy_details": {"fq_name": "team_log.EventDetails.paper_change_member_policy_details", "param_name": "paperChangeMemberPolicyDetailsValue", "static_instance": null, "getter_method": "getPaperChangeMemberPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_change_policy_details": {"fq_name": "team_log.EventDetails.paper_change_policy_details", "param_name": "paperChangePolicyDetailsValue", "static_instance": null, "getter_method": "getPaperChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_default_folder_policy_changed_details": {"fq_name": "team_log.EventDetails.paper_default_folder_policy_changed_details", "param_name": "paperDefaultFolderPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getPaperDefaultFolderPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_desktop_policy_changed_details": {"fq_name": "team_log.EventDetails.paper_desktop_policy_changed_details", "param_name": "paperDesktopPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getPaperDesktopPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_enabled_users_group_addition_details": {"fq_name": "team_log.EventDetails.paper_enabled_users_group_addition_details", "param_name": "paperEnabledUsersGroupAdditionDetailsValue", "static_instance": null, "getter_method": "getPaperEnabledUsersGroupAdditionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.paper_enabled_users_group_removal_details": {"fq_name": "team_log.EventDetails.paper_enabled_users_group_removal_details", "param_name": "paperEnabledUsersGroupRemovalDetailsValue", "static_instance": null, "getter_method": "getPaperEnabledUsersGroupRemovalDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.password_strength_requirements_change_policy_details": {"fq_name": "team_log.EventDetails.password_strength_requirements_change_policy_details", "param_name": "passwordStrengthRequirementsChangePolicyDetailsValue", "static_instance": null, "getter_method": "getPasswordStrengthRequirementsChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.permanent_delete_change_policy_details": {"fq_name": "team_log.EventDetails.permanent_delete_change_policy_details", "param_name": "permanentDeleteChangePolicyDetailsValue", "static_instance": null, "getter_method": "getPermanentDeleteChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.reseller_support_change_policy_details": {"fq_name": "team_log.EventDetails.reseller_support_change_policy_details", "param_name": "resellerSupportChangePolicyDetailsValue", "static_instance": null, "getter_method": "getResellerSupportChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.rewind_policy_changed_details": {"fq_name": "team_log.EventDetails.rewind_policy_changed_details", "param_name": "rewindPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getRewindPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.send_for_signature_policy_changed_details": {"fq_name": "team_log.EventDetails.send_for_signature_policy_changed_details", "param_name": "sendForSignaturePolicyChangedDetailsValue", "static_instance": null, "getter_method": "getSendForSignaturePolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sharing_change_folder_join_policy_details": {"fq_name": "team_log.EventDetails.sharing_change_folder_join_policy_details", "param_name": "sharingChangeFolderJoinPolicyDetailsValue", "static_instance": null, "getter_method": "getSharingChangeFolderJoinPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sharing_change_link_allow_change_expiration_policy_details": {"fq_name": "team_log.EventDetails.sharing_change_link_allow_change_expiration_policy_details", "param_name": "sharingChangeLinkAllowChangeExpirationPolicyDetailsValue", "static_instance": null, "getter_method": "getSharingChangeLinkAllowChangeExpirationPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sharing_change_link_default_expiration_policy_details": {"fq_name": "team_log.EventDetails.sharing_change_link_default_expiration_policy_details", "param_name": "sharingChangeLinkDefaultExpirationPolicyDetailsValue", "static_instance": null, "getter_method": "getSharingChangeLinkDefaultExpirationPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sharing_change_link_enforce_password_policy_details": {"fq_name": "team_log.EventDetails.sharing_change_link_enforce_password_policy_details", "param_name": "sharingChangeLinkEnforcePasswordPolicyDetailsValue", "static_instance": null, "getter_method": "getSharingChangeLinkEnforcePasswordPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sharing_change_link_policy_details": {"fq_name": "team_log.EventDetails.sharing_change_link_policy_details", "param_name": "sharingChangeLinkPolicyDetailsValue", "static_instance": null, "getter_method": "getSharingChangeLinkPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sharing_change_member_policy_details": {"fq_name": "team_log.EventDetails.sharing_change_member_policy_details", "param_name": "sharingChangeMemberPolicyDetailsValue", "static_instance": null, "getter_method": "getSharingChangeMemberPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_change_download_policy_details": {"fq_name": "team_log.EventDetails.showcase_change_download_policy_details", "param_name": "showcaseChangeDownloadPolicyDetailsValue", "static_instance": null, "getter_method": "getShowcaseChangeDownloadPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_change_enabled_policy_details": {"fq_name": "team_log.EventDetails.showcase_change_enabled_policy_details", "param_name": "showcaseChangeEnabledPolicyDetailsValue", "static_instance": null, "getter_method": "getShowcaseChangeEnabledPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.showcase_change_external_sharing_policy_details": {"fq_name": "team_log.EventDetails.showcase_change_external_sharing_policy_details", "param_name": "showcaseChangeExternalSharingPolicyDetailsValue", "static_instance": null, "getter_method": "getShowcaseChangeExternalSharingPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.smarter_smart_sync_policy_changed_details": {"fq_name": "team_log.EventDetails.smarter_smart_sync_policy_changed_details", "param_name": "smarterSmartSyncPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getSmarterSmartSyncPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.smart_sync_change_policy_details": {"fq_name": "team_log.EventDetails.smart_sync_change_policy_details", "param_name": "smartSyncChangePolicyDetailsValue", "static_instance": null, "getter_method": "getSmartSyncChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.smart_sync_not_opt_out_details": {"fq_name": "team_log.EventDetails.smart_sync_not_opt_out_details", "param_name": "smartSyncNotOptOutDetailsValue", "static_instance": null, "getter_method": "getSmartSyncNotOptOutDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.smart_sync_opt_out_details": {"fq_name": "team_log.EventDetails.smart_sync_opt_out_details", "param_name": "smartSyncOptOutDetailsValue", "static_instance": null, "getter_method": "getSmartSyncOptOutDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.sso_change_policy_details": {"fq_name": "team_log.EventDetails.sso_change_policy_details", "param_name": "ssoChangePolicyDetailsValue", "static_instance": null, "getter_method": "getSsoChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_branding_policy_changed_details": {"fq_name": "team_log.EventDetails.team_branding_policy_changed_details", "param_name": "teamBrandingPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getTeamBrandingPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_extensions_policy_changed_details": {"fq_name": "team_log.EventDetails.team_extensions_policy_changed_details", "param_name": "teamExtensionsPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getTeamExtensionsPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_selective_sync_policy_changed_details": {"fq_name": "team_log.EventDetails.team_selective_sync_policy_changed_details", "param_name": "teamSelectiveSyncPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getTeamSelectiveSyncPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_sharing_whitelist_subjects_changed_details": {"fq_name": "team_log.EventDetails.team_sharing_whitelist_subjects_changed_details", "param_name": "teamSharingWhitelistSubjectsChangedDetailsValue", "static_instance": null, "getter_method": "getTeamSharingWhitelistSubjectsChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_add_exception_details": {"fq_name": "team_log.EventDetails.tfa_add_exception_details", "param_name": "tfaAddExceptionDetailsValue", "static_instance": null, "getter_method": "getTfaAddExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_change_policy_details": {"fq_name": "team_log.EventDetails.tfa_change_policy_details", "param_name": "tfaChangePolicyDetailsValue", "static_instance": null, "getter_method": "getTfaChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_remove_exception_details": {"fq_name": "team_log.EventDetails.tfa_remove_exception_details", "param_name": "tfaRemoveExceptionDetailsValue", "static_instance": null, "getter_method": "getTfaRemoveExceptionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.two_account_change_policy_details": {"fq_name": "team_log.EventDetails.two_account_change_policy_details", "param_name": "twoAccountChangePolicyDetailsValue", "static_instance": null, "getter_method": "getTwoAccountChangePolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.viewer_info_policy_changed_details": {"fq_name": "team_log.EventDetails.viewer_info_policy_changed_details", "param_name": "viewerInfoPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getViewerInfoPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.watermarking_policy_changed_details": {"fq_name": "team_log.EventDetails.watermarking_policy_changed_details", "param_name": "watermarkingPolicyChangedDetailsValue", "static_instance": null, "getter_method": "getWatermarkingPolicyChangedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.web_sessions_change_active_session_limit_details": {"fq_name": "team_log.EventDetails.web_sessions_change_active_session_limit_details", "param_name": "webSessionsChangeActiveSessionLimitDetailsValue", "static_instance": null, "getter_method": "getWebSessionsChangeActiveSessionLimitDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.web_sessions_change_fixed_length_policy_details": {"fq_name": "team_log.EventDetails.web_sessions_change_fixed_length_policy_details", "param_name": "webSessionsChangeFixedLengthPolicyDetailsValue", "static_instance": null, "getter_method": "getWebSessionsChangeFixedLengthPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.web_sessions_change_idle_length_policy_details": {"fq_name": "team_log.EventDetails.web_sessions_change_idle_length_policy_details", "param_name": "webSessionsChangeIdleLengthPolicyDetailsValue", "static_instance": null, "getter_method": "getWebSessionsChangeIdleLengthPolicyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.data_residency_migration_request_successful_details": {"fq_name": "team_log.EventDetails.data_residency_migration_request_successful_details", "param_name": "dataResidencyMigrationRequestSuccessfulDetailsValue", "static_instance": null, "getter_method": "getDataResidencyMigrationRequestSuccessfulDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.data_residency_migration_request_unsuccessful_details": {"fq_name": "team_log.EventDetails.data_residency_migration_request_unsuccessful_details", "param_name": "dataResidencyMigrationRequestUnsuccessfulDetailsValue", "static_instance": null, "getter_method": "getDataResidencyMigrationRequestUnsuccessfulDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_from_details": {"fq_name": "team_log.EventDetails.team_merge_from_details", "param_name": "teamMergeFromDetailsValue", "static_instance": null, "getter_method": "getTeamMergeFromDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_to_details": {"fq_name": "team_log.EventDetails.team_merge_to_details", "param_name": "teamMergeToDetailsValue", "static_instance": null, "getter_method": "getTeamMergeToDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_add_background_details": {"fq_name": "team_log.EventDetails.team_profile_add_background_details", "param_name": "teamProfileAddBackgroundDetailsValue", "static_instance": null, "getter_method": "getTeamProfileAddBackgroundDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_add_logo_details": {"fq_name": "team_log.EventDetails.team_profile_add_logo_details", "param_name": "teamProfileAddLogoDetailsValue", "static_instance": null, "getter_method": "getTeamProfileAddLogoDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_change_background_details": {"fq_name": "team_log.EventDetails.team_profile_change_background_details", "param_name": "teamProfileChangeBackgroundDetailsValue", "static_instance": null, "getter_method": "getTeamProfileChangeBackgroundDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_change_default_language_details": {"fq_name": "team_log.EventDetails.team_profile_change_default_language_details", "param_name": "teamProfileChangeDefaultLanguageDetailsValue", "static_instance": null, "getter_method": "getTeamProfileChangeDefaultLanguageDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_change_logo_details": {"fq_name": "team_log.EventDetails.team_profile_change_logo_details", "param_name": "teamProfileChangeLogoDetailsValue", "static_instance": null, "getter_method": "getTeamProfileChangeLogoDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_change_name_details": {"fq_name": "team_log.EventDetails.team_profile_change_name_details", "param_name": "teamProfileChangeNameDetailsValue", "static_instance": null, "getter_method": "getTeamProfileChangeNameDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_remove_background_details": {"fq_name": "team_log.EventDetails.team_profile_remove_background_details", "param_name": "teamProfileRemoveBackgroundDetailsValue", "static_instance": null, "getter_method": "getTeamProfileRemoveBackgroundDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_profile_remove_logo_details": {"fq_name": "team_log.EventDetails.team_profile_remove_logo_details", "param_name": "teamProfileRemoveLogoDetailsValue", "static_instance": null, "getter_method": "getTeamProfileRemoveLogoDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_add_backup_phone_details": {"fq_name": "team_log.EventDetails.tfa_add_backup_phone_details", "param_name": "tfaAddBackupPhoneDetailsValue", "static_instance": null, "getter_method": "getTfaAddBackupPhoneDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_add_security_key_details": {"fq_name": "team_log.EventDetails.tfa_add_security_key_details", "param_name": "tfaAddSecurityKeyDetailsValue", "static_instance": null, "getter_method": "getTfaAddSecurityKeyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_change_backup_phone_details": {"fq_name": "team_log.EventDetails.tfa_change_backup_phone_details", "param_name": "tfaChangeBackupPhoneDetailsValue", "static_instance": null, "getter_method": "getTfaChangeBackupPhoneDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_change_status_details": {"fq_name": "team_log.EventDetails.tfa_change_status_details", "param_name": "tfaChangeStatusDetailsValue", "static_instance": null, "getter_method": "getTfaChangeStatusDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_remove_backup_phone_details": {"fq_name": "team_log.EventDetails.tfa_remove_backup_phone_details", "param_name": "tfaRemoveBackupPhoneDetailsValue", "static_instance": null, "getter_method": "getTfaRemoveBackupPhoneDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_remove_security_key_details": {"fq_name": "team_log.EventDetails.tfa_remove_security_key_details", "param_name": "tfaRemoveSecurityKeyDetailsValue", "static_instance": null, "getter_method": "getTfaRemoveSecurityKeyDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.tfa_reset_details": {"fq_name": "team_log.EventDetails.tfa_reset_details", "param_name": "tfaResetDetailsValue", "static_instance": null, "getter_method": "getTfaResetDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.changed_enterprise_admin_role_details": {"fq_name": "team_log.EventDetails.changed_enterprise_admin_role_details", "param_name": "changedEnterpriseAdminRoleDetailsValue", "static_instance": null, "getter_method": "getChangedEnterpriseAdminRoleDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.changed_enterprise_connected_team_status_details": {"fq_name": "team_log.EventDetails.changed_enterprise_connected_team_status_details", "param_name": "changedEnterpriseConnectedTeamStatusDetailsValue", "static_instance": null, "getter_method": "getChangedEnterpriseConnectedTeamStatusDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.ended_enterprise_admin_session_details": {"fq_name": "team_log.EventDetails.ended_enterprise_admin_session_details", "param_name": "endedEnterpriseAdminSessionDetailsValue", "static_instance": null, "getter_method": "getEndedEnterpriseAdminSessionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.ended_enterprise_admin_session_deprecated_details": {"fq_name": "team_log.EventDetails.ended_enterprise_admin_session_deprecated_details", "param_name": "endedEnterpriseAdminSessionDeprecatedDetailsValue", "static_instance": null, "getter_method": "getEndedEnterpriseAdminSessionDeprecatedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.enterprise_settings_locking_details": {"fq_name": "team_log.EventDetails.enterprise_settings_locking_details", "param_name": "enterpriseSettingsLockingDetailsValue", "static_instance": null, "getter_method": "getEnterpriseSettingsLockingDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.guest_admin_change_status_details": {"fq_name": "team_log.EventDetails.guest_admin_change_status_details", "param_name": "guestAdminChangeStatusDetailsValue", "static_instance": null, "getter_method": "getGuestAdminChangeStatusDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.started_enterprise_admin_session_details": {"fq_name": "team_log.EventDetails.started_enterprise_admin_session_details", "param_name": "startedEnterpriseAdminSessionDetailsValue", "static_instance": null, "getter_method": "getStartedEnterpriseAdminSessionDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_accepted_details": {"fq_name": "team_log.EventDetails.team_merge_request_accepted_details", "param_name": "teamMergeRequestAcceptedDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestAcceptedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_accepted_shown_to_primary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_accepted_shown_to_primary_team_details", "param_name": "teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestAcceptedShownToPrimaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_accepted_shown_to_secondary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_accepted_shown_to_secondary_team_details", "param_name": "teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestAcceptedShownToSecondaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_auto_canceled_details": {"fq_name": "team_log.EventDetails.team_merge_request_auto_canceled_details", "param_name": "teamMergeRequestAutoCanceledDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestAutoCanceledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_canceled_details": {"fq_name": "team_log.EventDetails.team_merge_request_canceled_details", "param_name": "teamMergeRequestCanceledDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestCanceledDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_canceled_shown_to_primary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_canceled_shown_to_primary_team_details", "param_name": "teamMergeRequestCanceledShownToPrimaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestCanceledShownToPrimaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_canceled_shown_to_secondary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_canceled_shown_to_secondary_team_details", "param_name": "teamMergeRequestCanceledShownToSecondaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestCanceledShownToSecondaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_expired_details": {"fq_name": "team_log.EventDetails.team_merge_request_expired_details", "param_name": "teamMergeRequestExpiredDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestExpiredDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_expired_shown_to_primary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_expired_shown_to_primary_team_details", "param_name": "teamMergeRequestExpiredShownToPrimaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestExpiredShownToPrimaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_expired_shown_to_secondary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_expired_shown_to_secondary_team_details", "param_name": "teamMergeRequestExpiredShownToSecondaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestExpiredShownToSecondaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_rejected_shown_to_primary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_rejected_shown_to_primary_team_details", "param_name": "teamMergeRequestRejectedShownToPrimaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestRejectedShownToPrimaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_rejected_shown_to_secondary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_rejected_shown_to_secondary_team_details", "param_name": "teamMergeRequestRejectedShownToSecondaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestRejectedShownToSecondaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_reminder_details": {"fq_name": "team_log.EventDetails.team_merge_request_reminder_details", "param_name": "teamMergeRequestReminderDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestReminderDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_reminder_shown_to_primary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_reminder_shown_to_primary_team_details", "param_name": "teamMergeRequestReminderShownToPrimaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestReminderShownToPrimaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_reminder_shown_to_secondary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_reminder_shown_to_secondary_team_details", "param_name": "teamMergeRequestReminderShownToSecondaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestReminderShownToSecondaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_revoked_details": {"fq_name": "team_log.EventDetails.team_merge_request_revoked_details", "param_name": "teamMergeRequestRevokedDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestRevokedDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_sent_shown_to_primary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_sent_shown_to_primary_team_details", "param_name": "teamMergeRequestSentShownToPrimaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestSentShownToPrimaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.team_merge_request_sent_shown_to_secondary_team_details": {"fq_name": "team_log.EventDetails.team_merge_request_sent_shown_to_secondary_team_details", "param_name": "teamMergeRequestSentShownToSecondaryTeamDetailsValue", "static_instance": null, "getter_method": "getTeamMergeRequestSentShownToSecondaryTeamDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.missing_details": {"fq_name": "team_log.EventDetails.missing_details", "param_name": "missingDetailsValue", "static_instance": null, "getter_method": "getMissingDetailsValue", "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventDetails.other": {"fq_name": "team_log.EventDetails.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.EventDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.admin_alerting_alert_state_changed": {"fq_name": "team_log.EventType.admin_alerting_alert_state_changed", "param_name": "adminAlertingAlertStateChangedValue", "static_instance": null, "getter_method": "getAdminAlertingAlertStateChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.admin_alerting_changed_alert_config": {"fq_name": "team_log.EventType.admin_alerting_changed_alert_config", "param_name": "adminAlertingChangedAlertConfigValue", "static_instance": null, "getter_method": "getAdminAlertingChangedAlertConfigValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.admin_alerting_triggered_alert": {"fq_name": "team_log.EventType.admin_alerting_triggered_alert", "param_name": "adminAlertingTriggeredAlertValue", "static_instance": null, "getter_method": "getAdminAlertingTriggeredAlertValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.ransomware_restore_process_completed": {"fq_name": "team_log.EventType.ransomware_restore_process_completed", "param_name": "ransomwareRestoreProcessCompletedValue", "static_instance": null, "getter_method": "getRansomwareRestoreProcessCompletedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.ransomware_restore_process_started": {"fq_name": "team_log.EventType.ransomware_restore_process_started", "param_name": "ransomwareRestoreProcessStartedValue", "static_instance": null, "getter_method": "getRansomwareRestoreProcessStartedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.app_blocked_by_permissions": {"fq_name": "team_log.EventType.app_blocked_by_permissions", "param_name": "appBlockedByPermissionsValue", "static_instance": null, "getter_method": "getAppBlockedByPermissionsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.app_link_team": {"fq_name": "team_log.EventType.app_link_team", "param_name": "appLinkTeamValue", "static_instance": null, "getter_method": "getAppLinkTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.app_link_user": {"fq_name": "team_log.EventType.app_link_user", "param_name": "appLinkUserValue", "static_instance": null, "getter_method": "getAppLinkUserValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.app_unlink_team": {"fq_name": "team_log.EventType.app_unlink_team", "param_name": "appUnlinkTeamValue", "static_instance": null, "getter_method": "getAppUnlinkTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.app_unlink_user": {"fq_name": "team_log.EventType.app_unlink_user", "param_name": "appUnlinkUserValue", "static_instance": null, "getter_method": "getAppUnlinkUserValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.integration_connected": {"fq_name": "team_log.EventType.integration_connected", "param_name": "integrationConnectedValue", "static_instance": null, "getter_method": "getIntegrationConnectedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.integration_disconnected": {"fq_name": "team_log.EventType.integration_disconnected", "param_name": "integrationDisconnectedValue", "static_instance": null, "getter_method": "getIntegrationDisconnectedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_add_comment": {"fq_name": "team_log.EventType.file_add_comment", "param_name": "fileAddCommentValue", "static_instance": null, "getter_method": "getFileAddCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_change_comment_subscription": {"fq_name": "team_log.EventType.file_change_comment_subscription", "param_name": "fileChangeCommentSubscriptionValue", "static_instance": null, "getter_method": "getFileChangeCommentSubscriptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_delete_comment": {"fq_name": "team_log.EventType.file_delete_comment", "param_name": "fileDeleteCommentValue", "static_instance": null, "getter_method": "getFileDeleteCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_edit_comment": {"fq_name": "team_log.EventType.file_edit_comment", "param_name": "fileEditCommentValue", "static_instance": null, "getter_method": "getFileEditCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_like_comment": {"fq_name": "team_log.EventType.file_like_comment", "param_name": "fileLikeCommentValue", "static_instance": null, "getter_method": "getFileLikeCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_resolve_comment": {"fq_name": "team_log.EventType.file_resolve_comment", "param_name": "fileResolveCommentValue", "static_instance": null, "getter_method": "getFileResolveCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_unlike_comment": {"fq_name": "team_log.EventType.file_unlike_comment", "param_name": "fileUnlikeCommentValue", "static_instance": null, "getter_method": "getFileUnlikeCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_unresolve_comment": {"fq_name": "team_log.EventType.file_unresolve_comment", "param_name": "fileUnresolveCommentValue", "static_instance": null, "getter_method": "getFileUnresolveCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_add_folders": {"fq_name": "team_log.EventType.governance_policy_add_folders", "param_name": "governancePolicyAddFoldersValue", "static_instance": null, "getter_method": "getGovernancePolicyAddFoldersValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_add_folder_failed": {"fq_name": "team_log.EventType.governance_policy_add_folder_failed", "param_name": "governancePolicyAddFolderFailedValue", "static_instance": null, "getter_method": "getGovernancePolicyAddFolderFailedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_content_disposed": {"fq_name": "team_log.EventType.governance_policy_content_disposed", "param_name": "governancePolicyContentDisposedValue", "static_instance": null, "getter_method": "getGovernancePolicyContentDisposedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_create": {"fq_name": "team_log.EventType.governance_policy_create", "param_name": "governancePolicyCreateValue", "static_instance": null, "getter_method": "getGovernancePolicyCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_delete": {"fq_name": "team_log.EventType.governance_policy_delete", "param_name": "governancePolicyDeleteValue", "static_instance": null, "getter_method": "getGovernancePolicyDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_edit_details": {"fq_name": "team_log.EventType.governance_policy_edit_details", "param_name": "governancePolicyEditDetailsValue", "static_instance": null, "getter_method": "getGovernancePolicyEditDetailsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_edit_duration": {"fq_name": "team_log.EventType.governance_policy_edit_duration", "param_name": "governancePolicyEditDurationValue", "static_instance": null, "getter_method": "getGovernancePolicyEditDurationValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_export_created": {"fq_name": "team_log.EventType.governance_policy_export_created", "param_name": "governancePolicyExportCreatedValue", "static_instance": null, "getter_method": "getGovernancePolicyExportCreatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_export_removed": {"fq_name": "team_log.EventType.governance_policy_export_removed", "param_name": "governancePolicyExportRemovedValue", "static_instance": null, "getter_method": "getGovernancePolicyExportRemovedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_remove_folders": {"fq_name": "team_log.EventType.governance_policy_remove_folders", "param_name": "governancePolicyRemoveFoldersValue", "static_instance": null, "getter_method": "getGovernancePolicyRemoveFoldersValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_report_created": {"fq_name": "team_log.EventType.governance_policy_report_created", "param_name": "governancePolicyReportCreatedValue", "static_instance": null, "getter_method": "getGovernancePolicyReportCreatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.governance_policy_zip_part_downloaded": {"fq_name": "team_log.EventType.governance_policy_zip_part_downloaded", "param_name": "governancePolicyZipPartDownloadedValue", "static_instance": null, "getter_method": "getGovernancePolicyZipPartDownloadedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_activate_a_hold": {"fq_name": "team_log.EventType.legal_holds_activate_a_hold", "param_name": "legalHoldsActivateAHoldValue", "static_instance": null, "getter_method": "getLegalHoldsActivateAHoldValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_add_members": {"fq_name": "team_log.EventType.legal_holds_add_members", "param_name": "legalHoldsAddMembersValue", "static_instance": null, "getter_method": "getLegalHoldsAddMembersValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_change_hold_details": {"fq_name": "team_log.EventType.legal_holds_change_hold_details", "param_name": "legalHoldsChangeHoldDetailsValue", "static_instance": null, "getter_method": "getLegalHoldsChangeHoldDetailsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_change_hold_name": {"fq_name": "team_log.EventType.legal_holds_change_hold_name", "param_name": "legalHoldsChangeHoldNameValue", "static_instance": null, "getter_method": "getLegalHoldsChangeHoldNameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_export_a_hold": {"fq_name": "team_log.EventType.legal_holds_export_a_hold", "param_name": "legalHoldsExportAHoldValue", "static_instance": null, "getter_method": "getLegalHoldsExportAHoldValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_export_cancelled": {"fq_name": "team_log.EventType.legal_holds_export_cancelled", "param_name": "legalHoldsExportCancelledValue", "static_instance": null, "getter_method": "getLegalHoldsExportCancelledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_export_downloaded": {"fq_name": "team_log.EventType.legal_holds_export_downloaded", "param_name": "legalHoldsExportDownloadedValue", "static_instance": null, "getter_method": "getLegalHoldsExportDownloadedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_export_removed": {"fq_name": "team_log.EventType.legal_holds_export_removed", "param_name": "legalHoldsExportRemovedValue", "static_instance": null, "getter_method": "getLegalHoldsExportRemovedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_release_a_hold": {"fq_name": "team_log.EventType.legal_holds_release_a_hold", "param_name": "legalHoldsReleaseAHoldValue", "static_instance": null, "getter_method": "getLegalHoldsReleaseAHoldValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_remove_members": {"fq_name": "team_log.EventType.legal_holds_remove_members", "param_name": "legalHoldsRemoveMembersValue", "static_instance": null, "getter_method": "getLegalHoldsRemoveMembersValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.legal_holds_report_a_hold": {"fq_name": "team_log.EventType.legal_holds_report_a_hold", "param_name": "legalHoldsReportAHoldValue", "static_instance": null, "getter_method": "getLegalHoldsReportAHoldValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_change_ip_desktop": {"fq_name": "team_log.EventType.device_change_ip_desktop", "param_name": "deviceChangeIpDesktopValue", "static_instance": null, "getter_method": "getDeviceChangeIpDesktopValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_change_ip_mobile": {"fq_name": "team_log.EventType.device_change_ip_mobile", "param_name": "deviceChangeIpMobileValue", "static_instance": null, "getter_method": "getDeviceChangeIpMobileValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_change_ip_web": {"fq_name": "team_log.EventType.device_change_ip_web", "param_name": "deviceChangeIpWebValue", "static_instance": null, "getter_method": "getDeviceChangeIpWebValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_delete_on_unlink_fail": {"fq_name": "team_log.EventType.device_delete_on_unlink_fail", "param_name": "deviceDeleteOnUnlinkFailValue", "static_instance": null, "getter_method": "getDeviceDeleteOnUnlinkFailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_delete_on_unlink_success": {"fq_name": "team_log.EventType.device_delete_on_unlink_success", "param_name": "deviceDeleteOnUnlinkSuccessValue", "static_instance": null, "getter_method": "getDeviceDeleteOnUnlinkSuccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_link_fail": {"fq_name": "team_log.EventType.device_link_fail", "param_name": "deviceLinkFailValue", "static_instance": null, "getter_method": "getDeviceLinkFailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_link_success": {"fq_name": "team_log.EventType.device_link_success", "param_name": "deviceLinkSuccessValue", "static_instance": null, "getter_method": "getDeviceLinkSuccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_management_disabled": {"fq_name": "team_log.EventType.device_management_disabled", "param_name": "deviceManagementDisabledValue", "static_instance": null, "getter_method": "getDeviceManagementDisabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_management_enabled": {"fq_name": "team_log.EventType.device_management_enabled", "param_name": "deviceManagementEnabledValue", "static_instance": null, "getter_method": "getDeviceManagementEnabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_sync_backup_status_changed": {"fq_name": "team_log.EventType.device_sync_backup_status_changed", "param_name": "deviceSyncBackupStatusChangedValue", "static_instance": null, "getter_method": "getDeviceSyncBackupStatusChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_unlink": {"fq_name": "team_log.EventType.device_unlink", "param_name": "deviceUnlinkValue", "static_instance": null, "getter_method": "getDeviceUnlinkValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.dropbox_passwords_exported": {"fq_name": "team_log.EventType.dropbox_passwords_exported", "param_name": "dropboxPasswordsExportedValue", "static_instance": null, "getter_method": "getDropboxPasswordsExportedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.dropbox_passwords_new_device_enrolled": {"fq_name": "team_log.EventType.dropbox_passwords_new_device_enrolled", "param_name": "dropboxPasswordsNewDeviceEnrolledValue", "static_instance": null, "getter_method": "getDropboxPasswordsNewDeviceEnrolledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.emm_refresh_auth_token": {"fq_name": "team_log.EventType.emm_refresh_auth_token", "param_name": "emmRefreshAuthTokenValue", "static_instance": null, "getter_method": "getEmmRefreshAuthTokenValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.external_drive_backup_eligibility_status_checked": {"fq_name": "team_log.EventType.external_drive_backup_eligibility_status_checked", "param_name": "externalDriveBackupEligibilityStatusCheckedValue", "static_instance": null, "getter_method": "getExternalDriveBackupEligibilityStatusCheckedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.external_drive_backup_status_changed": {"fq_name": "team_log.EventType.external_drive_backup_status_changed", "param_name": "externalDriveBackupStatusChangedValue", "static_instance": null, "getter_method": "getExternalDriveBackupStatusChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.account_capture_change_availability": {"fq_name": "team_log.EventType.account_capture_change_availability", "param_name": "accountCaptureChangeAvailabilityValue", "static_instance": null, "getter_method": "getAccountCaptureChangeAvailabilityValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.account_capture_migrate_account": {"fq_name": "team_log.EventType.account_capture_migrate_account", "param_name": "accountCaptureMigrateAccountValue", "static_instance": null, "getter_method": "getAccountCaptureMigrateAccountValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.account_capture_notification_emails_sent": {"fq_name": "team_log.EventType.account_capture_notification_emails_sent", "param_name": "accountCaptureNotificationEmailsSentValue", "static_instance": null, "getter_method": "getAccountCaptureNotificationEmailsSentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.account_capture_relinquish_account": {"fq_name": "team_log.EventType.account_capture_relinquish_account", "param_name": "accountCaptureRelinquishAccountValue", "static_instance": null, "getter_method": "getAccountCaptureRelinquishAccountValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.disabled_domain_invites": {"fq_name": "team_log.EventType.disabled_domain_invites", "param_name": "disabledDomainInvitesValue", "static_instance": null, "getter_method": "getDisabledDomainInvitesValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_invites_approve_request_to_join_team": {"fq_name": "team_log.EventType.domain_invites_approve_request_to_join_team", "param_name": "domainInvitesApproveRequestToJoinTeamValue", "static_instance": null, "getter_method": "getDomainInvitesApproveRequestToJoinTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_invites_decline_request_to_join_team": {"fq_name": "team_log.EventType.domain_invites_decline_request_to_join_team", "param_name": "domainInvitesDeclineRequestToJoinTeamValue", "static_instance": null, "getter_method": "getDomainInvitesDeclineRequestToJoinTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_invites_email_existing_users": {"fq_name": "team_log.EventType.domain_invites_email_existing_users", "param_name": "domainInvitesEmailExistingUsersValue", "static_instance": null, "getter_method": "getDomainInvitesEmailExistingUsersValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_invites_request_to_join_team": {"fq_name": "team_log.EventType.domain_invites_request_to_join_team", "param_name": "domainInvitesRequestToJoinTeamValue", "static_instance": null, "getter_method": "getDomainInvitesRequestToJoinTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_invites_set_invite_new_user_pref_to_no": {"fq_name": "team_log.EventType.domain_invites_set_invite_new_user_pref_to_no", "param_name": "domainInvitesSetInviteNewUserPrefToNoValue", "static_instance": null, "getter_method": "getDomainInvitesSetInviteNewUserPrefToNoValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_invites_set_invite_new_user_pref_to_yes": {"fq_name": "team_log.EventType.domain_invites_set_invite_new_user_pref_to_yes", "param_name": "domainInvitesSetInviteNewUserPrefToYesValue", "static_instance": null, "getter_method": "getDomainInvitesSetInviteNewUserPrefToYesValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_verification_add_domain_fail": {"fq_name": "team_log.EventType.domain_verification_add_domain_fail", "param_name": "domainVerificationAddDomainFailValue", "static_instance": null, "getter_method": "getDomainVerificationAddDomainFailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_verification_add_domain_success": {"fq_name": "team_log.EventType.domain_verification_add_domain_success", "param_name": "domainVerificationAddDomainSuccessValue", "static_instance": null, "getter_method": "getDomainVerificationAddDomainSuccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.domain_verification_remove_domain": {"fq_name": "team_log.EventType.domain_verification_remove_domain", "param_name": "domainVerificationRemoveDomainValue", "static_instance": null, "getter_method": "getDomainVerificationRemoveDomainValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.enabled_domain_invites": {"fq_name": "team_log.EventType.enabled_domain_invites", "param_name": "enabledDomainInvitesValue", "static_instance": null, "getter_method": "getEnabledDomainInvitesValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_encryption_key_cancel_key_deletion": {"fq_name": "team_log.EventType.team_encryption_key_cancel_key_deletion", "param_name": "teamEncryptionKeyCancelKeyDeletionValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyCancelKeyDeletionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_encryption_key_create_key": {"fq_name": "team_log.EventType.team_encryption_key_create_key", "param_name": "teamEncryptionKeyCreateKeyValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyCreateKeyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_encryption_key_delete_key": {"fq_name": "team_log.EventType.team_encryption_key_delete_key", "param_name": "teamEncryptionKeyDeleteKeyValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyDeleteKeyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_encryption_key_disable_key": {"fq_name": "team_log.EventType.team_encryption_key_disable_key", "param_name": "teamEncryptionKeyDisableKeyValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyDisableKeyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_encryption_key_enable_key": {"fq_name": "team_log.EventType.team_encryption_key_enable_key", "param_name": "teamEncryptionKeyEnableKeyValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyEnableKeyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_encryption_key_rotate_key": {"fq_name": "team_log.EventType.team_encryption_key_rotate_key", "param_name": "teamEncryptionKeyRotateKeyValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyRotateKeyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_encryption_key_schedule_key_deletion": {"fq_name": "team_log.EventType.team_encryption_key_schedule_key_deletion", "param_name": "teamEncryptionKeyScheduleKeyDeletionValue", "static_instance": null, "getter_method": "getTeamEncryptionKeyScheduleKeyDeletionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.apply_naming_convention": {"fq_name": "team_log.EventType.apply_naming_convention", "param_name": "applyNamingConventionValue", "static_instance": null, "getter_method": "getApplyNamingConventionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.create_folder": {"fq_name": "team_log.EventType.create_folder", "param_name": "createFolderValue", "static_instance": null, "getter_method": "getCreateFolderValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_add": {"fq_name": "team_log.EventType.file_add", "param_name": "fileAddValue", "static_instance": null, "getter_method": "getFileAddValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_add_from_automation": {"fq_name": "team_log.EventType.file_add_from_automation", "param_name": "fileAddFromAutomationValue", "static_instance": null, "getter_method": "getFileAddFromAutomationValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_copy": {"fq_name": "team_log.EventType.file_copy", "param_name": "fileCopyValue", "static_instance": null, "getter_method": "getFileCopyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_delete": {"fq_name": "team_log.EventType.file_delete", "param_name": "fileDeleteValue", "static_instance": null, "getter_method": "getFileDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_download": {"fq_name": "team_log.EventType.file_download", "param_name": "fileDownloadValue", "static_instance": null, "getter_method": "getFileDownloadValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_edit": {"fq_name": "team_log.EventType.file_edit", "param_name": "fileEditValue", "static_instance": null, "getter_method": "getFileEditValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_get_copy_reference": {"fq_name": "team_log.EventType.file_get_copy_reference", "param_name": "fileGetCopyReferenceValue", "static_instance": null, "getter_method": "getFileGetCopyReferenceValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_locking_lock_status_changed": {"fq_name": "team_log.EventType.file_locking_lock_status_changed", "param_name": "fileLockingLockStatusChangedValue", "static_instance": null, "getter_method": "getFileLockingLockStatusChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_move": {"fq_name": "team_log.EventType.file_move", "param_name": "fileMoveValue", "static_instance": null, "getter_method": "getFileMoveValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_permanently_delete": {"fq_name": "team_log.EventType.file_permanently_delete", "param_name": "filePermanentlyDeleteValue", "static_instance": null, "getter_method": "getFilePermanentlyDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_preview": {"fq_name": "team_log.EventType.file_preview", "param_name": "filePreviewValue", "static_instance": null, "getter_method": "getFilePreviewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_rename": {"fq_name": "team_log.EventType.file_rename", "param_name": "fileRenameValue", "static_instance": null, "getter_method": "getFileRenameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_restore": {"fq_name": "team_log.EventType.file_restore", "param_name": "fileRestoreValue", "static_instance": null, "getter_method": "getFileRestoreValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_revert": {"fq_name": "team_log.EventType.file_revert", "param_name": "fileRevertValue", "static_instance": null, "getter_method": "getFileRevertValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_rollback_changes": {"fq_name": "team_log.EventType.file_rollback_changes", "param_name": "fileRollbackChangesValue", "static_instance": null, "getter_method": "getFileRollbackChangesValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_save_copy_reference": {"fq_name": "team_log.EventType.file_save_copy_reference", "param_name": "fileSaveCopyReferenceValue", "static_instance": null, "getter_method": "getFileSaveCopyReferenceValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.folder_overview_description_changed": {"fq_name": "team_log.EventType.folder_overview_description_changed", "param_name": "folderOverviewDescriptionChangedValue", "static_instance": null, "getter_method": "getFolderOverviewDescriptionChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.folder_overview_item_pinned": {"fq_name": "team_log.EventType.folder_overview_item_pinned", "param_name": "folderOverviewItemPinnedValue", "static_instance": null, "getter_method": "getFolderOverviewItemPinnedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.folder_overview_item_unpinned": {"fq_name": "team_log.EventType.folder_overview_item_unpinned", "param_name": "folderOverviewItemUnpinnedValue", "static_instance": null, "getter_method": "getFolderOverviewItemUnpinnedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.object_label_added": {"fq_name": "team_log.EventType.object_label_added", "param_name": "objectLabelAddedValue", "static_instance": null, "getter_method": "getObjectLabelAddedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.object_label_removed": {"fq_name": "team_log.EventType.object_label_removed", "param_name": "objectLabelRemovedValue", "static_instance": null, "getter_method": "getObjectLabelRemovedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.object_label_updated_value": {"fq_name": "team_log.EventType.object_label_updated_value", "param_name": "objectLabelUpdatedValueValue", "static_instance": null, "getter_method": "getObjectLabelUpdatedValueValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.organize_folder_with_tidy": {"fq_name": "team_log.EventType.organize_folder_with_tidy", "param_name": "organizeFolderWithTidyValue", "static_instance": null, "getter_method": "getOrganizeFolderWithTidyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.replay_file_delete": {"fq_name": "team_log.EventType.replay_file_delete", "param_name": "replayFileDeleteValue", "static_instance": null, "getter_method": "getReplayFileDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.rewind_folder": {"fq_name": "team_log.EventType.rewind_folder", "param_name": "rewindFolderValue", "static_instance": null, "getter_method": "getRewindFolderValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.undo_naming_convention": {"fq_name": "team_log.EventType.undo_naming_convention", "param_name": "undoNamingConventionValue", "static_instance": null, "getter_method": "getUndoNamingConventionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.undo_organize_folder_with_tidy": {"fq_name": "team_log.EventType.undo_organize_folder_with_tidy", "param_name": "undoOrganizeFolderWithTidyValue", "static_instance": null, "getter_method": "getUndoOrganizeFolderWithTidyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.user_tags_added": {"fq_name": "team_log.EventType.user_tags_added", "param_name": "userTagsAddedValue", "static_instance": null, "getter_method": "getUserTagsAddedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.user_tags_removed": {"fq_name": "team_log.EventType.user_tags_removed", "param_name": "userTagsRemovedValue", "static_instance": null, "getter_method": "getUserTagsRemovedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.email_ingest_receive_file": {"fq_name": "team_log.EventType.email_ingest_receive_file", "param_name": "emailIngestReceiveFileValue", "static_instance": null, "getter_method": "getEmailIngestReceiveFileValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_request_change": {"fq_name": "team_log.EventType.file_request_change", "param_name": "fileRequestChangeValue", "static_instance": null, "getter_method": "getFileRequestChangeValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_request_close": {"fq_name": "team_log.EventType.file_request_close", "param_name": "fileRequestCloseValue", "static_instance": null, "getter_method": "getFileRequestCloseValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_request_create": {"fq_name": "team_log.EventType.file_request_create", "param_name": "fileRequestCreateValue", "static_instance": null, "getter_method": "getFileRequestCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_request_delete": {"fq_name": "team_log.EventType.file_request_delete", "param_name": "fileRequestDeleteValue", "static_instance": null, "getter_method": "getFileRequestDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_request_receive_file": {"fq_name": "team_log.EventType.file_request_receive_file", "param_name": "fileRequestReceiveFileValue", "static_instance": null, "getter_method": "getFileRequestReceiveFileValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_add_external_id": {"fq_name": "team_log.EventType.group_add_external_id", "param_name": "groupAddExternalIdValue", "static_instance": null, "getter_method": "getGroupAddExternalIdValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_add_member": {"fq_name": "team_log.EventType.group_add_member", "param_name": "groupAddMemberValue", "static_instance": null, "getter_method": "getGroupAddMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_change_external_id": {"fq_name": "team_log.EventType.group_change_external_id", "param_name": "groupChangeExternalIdValue", "static_instance": null, "getter_method": "getGroupChangeExternalIdValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_change_management_type": {"fq_name": "team_log.EventType.group_change_management_type", "param_name": "groupChangeManagementTypeValue", "static_instance": null, "getter_method": "getGroupChangeManagementTypeValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_change_member_role": {"fq_name": "team_log.EventType.group_change_member_role", "param_name": "groupChangeMemberRoleValue", "static_instance": null, "getter_method": "getGroupChangeMemberRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_create": {"fq_name": "team_log.EventType.group_create", "param_name": "groupCreateValue", "static_instance": null, "getter_method": "getGroupCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_delete": {"fq_name": "team_log.EventType.group_delete", "param_name": "groupDeleteValue", "static_instance": null, "getter_method": "getGroupDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_description_updated": {"fq_name": "team_log.EventType.group_description_updated", "param_name": "groupDescriptionUpdatedValue", "static_instance": null, "getter_method": "getGroupDescriptionUpdatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_join_policy_updated": {"fq_name": "team_log.EventType.group_join_policy_updated", "param_name": "groupJoinPolicyUpdatedValue", "static_instance": null, "getter_method": "getGroupJoinPolicyUpdatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_moved": {"fq_name": "team_log.EventType.group_moved", "param_name": "groupMovedValue", "static_instance": null, "getter_method": "getGroupMovedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_remove_external_id": {"fq_name": "team_log.EventType.group_remove_external_id", "param_name": "groupRemoveExternalIdValue", "static_instance": null, "getter_method": "getGroupRemoveExternalIdValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_remove_member": {"fq_name": "team_log.EventType.group_remove_member", "param_name": "groupRemoveMemberValue", "static_instance": null, "getter_method": "getGroupRemoveMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_rename": {"fq_name": "team_log.EventType.group_rename", "param_name": "groupRenameValue", "static_instance": null, "getter_method": "getGroupRenameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.account_lock_or_unlocked": {"fq_name": "team_log.EventType.account_lock_or_unlocked", "param_name": "accountLockOrUnlockedValue", "static_instance": null, "getter_method": "getAccountLockOrUnlockedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.emm_error": {"fq_name": "team_log.EventType.emm_error", "param_name": "emmErrorValue", "static_instance": null, "getter_method": "getEmmErrorValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.guest_admin_signed_in_via_trusted_teams": {"fq_name": "team_log.EventType.guest_admin_signed_in_via_trusted_teams", "param_name": "guestAdminSignedInViaTrustedTeamsValue", "static_instance": null, "getter_method": "getGuestAdminSignedInViaTrustedTeamsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.guest_admin_signed_out_via_trusted_teams": {"fq_name": "team_log.EventType.guest_admin_signed_out_via_trusted_teams", "param_name": "guestAdminSignedOutViaTrustedTeamsValue", "static_instance": null, "getter_method": "getGuestAdminSignedOutViaTrustedTeamsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.login_fail": {"fq_name": "team_log.EventType.login_fail", "param_name": "loginFailValue", "static_instance": null, "getter_method": "getLoginFailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.login_success": {"fq_name": "team_log.EventType.login_success", "param_name": "loginSuccessValue", "static_instance": null, "getter_method": "getLoginSuccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.logout": {"fq_name": "team_log.EventType.logout", "param_name": "logoutValue", "static_instance": null, "getter_method": "getLogoutValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.reseller_support_session_end": {"fq_name": "team_log.EventType.reseller_support_session_end", "param_name": "resellerSupportSessionEndValue", "static_instance": null, "getter_method": "getResellerSupportSessionEndValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.reseller_support_session_start": {"fq_name": "team_log.EventType.reseller_support_session_start", "param_name": "resellerSupportSessionStartValue", "static_instance": null, "getter_method": "getResellerSupportSessionStartValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sign_in_as_session_end": {"fq_name": "team_log.EventType.sign_in_as_session_end", "param_name": "signInAsSessionEndValue", "static_instance": null, "getter_method": "getSignInAsSessionEndValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sign_in_as_session_start": {"fq_name": "team_log.EventType.sign_in_as_session_start", "param_name": "signInAsSessionStartValue", "static_instance": null, "getter_method": "getSignInAsSessionStartValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_error": {"fq_name": "team_log.EventType.sso_error", "param_name": "ssoErrorValue", "static_instance": null, "getter_method": "getSsoErrorValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.backup_admin_invitation_sent": {"fq_name": "team_log.EventType.backup_admin_invitation_sent", "param_name": "backupAdminInvitationSentValue", "static_instance": null, "getter_method": "getBackupAdminInvitationSentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.backup_invitation_opened": {"fq_name": "team_log.EventType.backup_invitation_opened", "param_name": "backupInvitationOpenedValue", "static_instance": null, "getter_method": "getBackupInvitationOpenedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.create_team_invite_link": {"fq_name": "team_log.EventType.create_team_invite_link", "param_name": "createTeamInviteLinkValue", "static_instance": null, "getter_method": "getCreateTeamInviteLinkValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.delete_team_invite_link": {"fq_name": "team_log.EventType.delete_team_invite_link", "param_name": "deleteTeamInviteLinkValue", "static_instance": null, "getter_method": "getDeleteTeamInviteLinkValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_add_external_id": {"fq_name": "team_log.EventType.member_add_external_id", "param_name": "memberAddExternalIdValue", "static_instance": null, "getter_method": "getMemberAddExternalIdValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_add_name": {"fq_name": "team_log.EventType.member_add_name", "param_name": "memberAddNameValue", "static_instance": null, "getter_method": "getMemberAddNameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_change_admin_role": {"fq_name": "team_log.EventType.member_change_admin_role", "param_name": "memberChangeAdminRoleValue", "static_instance": null, "getter_method": "getMemberChangeAdminRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_change_email": {"fq_name": "team_log.EventType.member_change_email", "param_name": "memberChangeEmailValue", "static_instance": null, "getter_method": "getMemberChangeEmailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_change_external_id": {"fq_name": "team_log.EventType.member_change_external_id", "param_name": "memberChangeExternalIdValue", "static_instance": null, "getter_method": "getMemberChangeExternalIdValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_change_membership_type": {"fq_name": "team_log.EventType.member_change_membership_type", "param_name": "memberChangeMembershipTypeValue", "static_instance": null, "getter_method": "getMemberChangeMembershipTypeValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_change_name": {"fq_name": "team_log.EventType.member_change_name", "param_name": "memberChangeNameValue", "static_instance": null, "getter_method": "getMemberChangeNameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_change_reseller_role": {"fq_name": "team_log.EventType.member_change_reseller_role", "param_name": "memberChangeResellerRoleValue", "static_instance": null, "getter_method": "getMemberChangeResellerRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_change_status": {"fq_name": "team_log.EventType.member_change_status", "param_name": "memberChangeStatusValue", "static_instance": null, "getter_method": "getMemberChangeStatusValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_delete_manual_contacts": {"fq_name": "team_log.EventType.member_delete_manual_contacts", "param_name": "memberDeleteManualContactsValue", "static_instance": null, "getter_method": "getMemberDeleteManualContactsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_delete_profile_photo": {"fq_name": "team_log.EventType.member_delete_profile_photo", "param_name": "memberDeleteProfilePhotoValue", "static_instance": null, "getter_method": "getMemberDeleteProfilePhotoValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_permanently_delete_account_contents": {"fq_name": "team_log.EventType.member_permanently_delete_account_contents", "param_name": "memberPermanentlyDeleteAccountContentsValue", "static_instance": null, "getter_method": "getMemberPermanentlyDeleteAccountContentsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_remove_external_id": {"fq_name": "team_log.EventType.member_remove_external_id", "param_name": "memberRemoveExternalIdValue", "static_instance": null, "getter_method": "getMemberRemoveExternalIdValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_set_profile_photo": {"fq_name": "team_log.EventType.member_set_profile_photo", "param_name": "memberSetProfilePhotoValue", "static_instance": null, "getter_method": "getMemberSetProfilePhotoValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_add_custom_quota": {"fq_name": "team_log.EventType.member_space_limits_add_custom_quota", "param_name": "memberSpaceLimitsAddCustomQuotaValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsAddCustomQuotaValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_change_custom_quota": {"fq_name": "team_log.EventType.member_space_limits_change_custom_quota", "param_name": "memberSpaceLimitsChangeCustomQuotaValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangeCustomQuotaValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_change_status": {"fq_name": "team_log.EventType.member_space_limits_change_status", "param_name": "memberSpaceLimitsChangeStatusValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangeStatusValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_remove_custom_quota": {"fq_name": "team_log.EventType.member_space_limits_remove_custom_quota", "param_name": "memberSpaceLimitsRemoveCustomQuotaValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsRemoveCustomQuotaValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_suggest": {"fq_name": "team_log.EventType.member_suggest", "param_name": "memberSuggestValue", "static_instance": null, "getter_method": "getMemberSuggestValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_transfer_account_contents": {"fq_name": "team_log.EventType.member_transfer_account_contents", "param_name": "memberTransferAccountContentsValue", "static_instance": null, "getter_method": "getMemberTransferAccountContentsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.pending_secondary_email_added": {"fq_name": "team_log.EventType.pending_secondary_email_added", "param_name": "pendingSecondaryEmailAddedValue", "static_instance": null, "getter_method": "getPendingSecondaryEmailAddedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.secondary_email_deleted": {"fq_name": "team_log.EventType.secondary_email_deleted", "param_name": "secondaryEmailDeletedValue", "static_instance": null, "getter_method": "getSecondaryEmailDeletedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.secondary_email_verified": {"fq_name": "team_log.EventType.secondary_email_verified", "param_name": "secondaryEmailVerifiedValue", "static_instance": null, "getter_method": "getSecondaryEmailVerifiedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.secondary_mails_policy_changed": {"fq_name": "team_log.EventType.secondary_mails_policy_changed", "param_name": "secondaryMailsPolicyChangedValue", "static_instance": null, "getter_method": "getSecondaryMailsPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_add_page": {"fq_name": "team_log.EventType.binder_add_page", "param_name": "binderAddPageValue", "static_instance": null, "getter_method": "getBinderAddPageValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_add_section": {"fq_name": "team_log.EventType.binder_add_section", "param_name": "binderAddSectionValue", "static_instance": null, "getter_method": "getBinderAddSectionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_remove_page": {"fq_name": "team_log.EventType.binder_remove_page", "param_name": "binderRemovePageValue", "static_instance": null, "getter_method": "getBinderRemovePageValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_remove_section": {"fq_name": "team_log.EventType.binder_remove_section", "param_name": "binderRemoveSectionValue", "static_instance": null, "getter_method": "getBinderRemoveSectionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_rename_page": {"fq_name": "team_log.EventType.binder_rename_page", "param_name": "binderRenamePageValue", "static_instance": null, "getter_method": "getBinderRenamePageValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_rename_section": {"fq_name": "team_log.EventType.binder_rename_section", "param_name": "binderRenameSectionValue", "static_instance": null, "getter_method": "getBinderRenameSectionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_reorder_page": {"fq_name": "team_log.EventType.binder_reorder_page", "param_name": "binderReorderPageValue", "static_instance": null, "getter_method": "getBinderReorderPageValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.binder_reorder_section": {"fq_name": "team_log.EventType.binder_reorder_section", "param_name": "binderReorderSectionValue", "static_instance": null, "getter_method": "getBinderReorderSectionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_add_member": {"fq_name": "team_log.EventType.paper_content_add_member", "param_name": "paperContentAddMemberValue", "static_instance": null, "getter_method": "getPaperContentAddMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_add_to_folder": {"fq_name": "team_log.EventType.paper_content_add_to_folder", "param_name": "paperContentAddToFolderValue", "static_instance": null, "getter_method": "getPaperContentAddToFolderValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_archive": {"fq_name": "team_log.EventType.paper_content_archive", "param_name": "paperContentArchiveValue", "static_instance": null, "getter_method": "getPaperContentArchiveValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_create": {"fq_name": "team_log.EventType.paper_content_create", "param_name": "paperContentCreateValue", "static_instance": null, "getter_method": "getPaperContentCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_permanently_delete": {"fq_name": "team_log.EventType.paper_content_permanently_delete", "param_name": "paperContentPermanentlyDeleteValue", "static_instance": null, "getter_method": "getPaperContentPermanentlyDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_remove_from_folder": {"fq_name": "team_log.EventType.paper_content_remove_from_folder", "param_name": "paperContentRemoveFromFolderValue", "static_instance": null, "getter_method": "getPaperContentRemoveFromFolderValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_remove_member": {"fq_name": "team_log.EventType.paper_content_remove_member", "param_name": "paperContentRemoveMemberValue", "static_instance": null, "getter_method": "getPaperContentRemoveMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_rename": {"fq_name": "team_log.EventType.paper_content_rename", "param_name": "paperContentRenameValue", "static_instance": null, "getter_method": "getPaperContentRenameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_content_restore": {"fq_name": "team_log.EventType.paper_content_restore", "param_name": "paperContentRestoreValue", "static_instance": null, "getter_method": "getPaperContentRestoreValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_add_comment": {"fq_name": "team_log.EventType.paper_doc_add_comment", "param_name": "paperDocAddCommentValue", "static_instance": null, "getter_method": "getPaperDocAddCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_change_member_role": {"fq_name": "team_log.EventType.paper_doc_change_member_role", "param_name": "paperDocChangeMemberRoleValue", "static_instance": null, "getter_method": "getPaperDocChangeMemberRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_change_sharing_policy": {"fq_name": "team_log.EventType.paper_doc_change_sharing_policy", "param_name": "paperDocChangeSharingPolicyValue", "static_instance": null, "getter_method": "getPaperDocChangeSharingPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_change_subscription": {"fq_name": "team_log.EventType.paper_doc_change_subscription", "param_name": "paperDocChangeSubscriptionValue", "static_instance": null, "getter_method": "getPaperDocChangeSubscriptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_deleted": {"fq_name": "team_log.EventType.paper_doc_deleted", "param_name": "paperDocDeletedValue", "static_instance": null, "getter_method": "getPaperDocDeletedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_delete_comment": {"fq_name": "team_log.EventType.paper_doc_delete_comment", "param_name": "paperDocDeleteCommentValue", "static_instance": null, "getter_method": "getPaperDocDeleteCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_download": {"fq_name": "team_log.EventType.paper_doc_download", "param_name": "paperDocDownloadValue", "static_instance": null, "getter_method": "getPaperDocDownloadValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_edit": {"fq_name": "team_log.EventType.paper_doc_edit", "param_name": "paperDocEditValue", "static_instance": null, "getter_method": "getPaperDocEditValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_edit_comment": {"fq_name": "team_log.EventType.paper_doc_edit_comment", "param_name": "paperDocEditCommentValue", "static_instance": null, "getter_method": "getPaperDocEditCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_followed": {"fq_name": "team_log.EventType.paper_doc_followed", "param_name": "paperDocFollowedValue", "static_instance": null, "getter_method": "getPaperDocFollowedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_mention": {"fq_name": "team_log.EventType.paper_doc_mention", "param_name": "paperDocMentionValue", "static_instance": null, "getter_method": "getPaperDocMentionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_ownership_changed": {"fq_name": "team_log.EventType.paper_doc_ownership_changed", "param_name": "paperDocOwnershipChangedValue", "static_instance": null, "getter_method": "getPaperDocOwnershipChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_request_access": {"fq_name": "team_log.EventType.paper_doc_request_access", "param_name": "paperDocRequestAccessValue", "static_instance": null, "getter_method": "getPaperDocRequestAccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_resolve_comment": {"fq_name": "team_log.EventType.paper_doc_resolve_comment", "param_name": "paperDocResolveCommentValue", "static_instance": null, "getter_method": "getPaperDocResolveCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_revert": {"fq_name": "team_log.EventType.paper_doc_revert", "param_name": "paperDocRevertValue", "static_instance": null, "getter_method": "getPaperDocRevertValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_slack_share": {"fq_name": "team_log.EventType.paper_doc_slack_share", "param_name": "paperDocSlackShareValue", "static_instance": null, "getter_method": "getPaperDocSlackShareValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_team_invite": {"fq_name": "team_log.EventType.paper_doc_team_invite", "param_name": "paperDocTeamInviteValue", "static_instance": null, "getter_method": "getPaperDocTeamInviteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_trashed": {"fq_name": "team_log.EventType.paper_doc_trashed", "param_name": "paperDocTrashedValue", "static_instance": null, "getter_method": "getPaperDocTrashedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_unresolve_comment": {"fq_name": "team_log.EventType.paper_doc_unresolve_comment", "param_name": "paperDocUnresolveCommentValue", "static_instance": null, "getter_method": "getPaperDocUnresolveCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_untrashed": {"fq_name": "team_log.EventType.paper_doc_untrashed", "param_name": "paperDocUntrashedValue", "static_instance": null, "getter_method": "getPaperDocUntrashedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_doc_view": {"fq_name": "team_log.EventType.paper_doc_view", "param_name": "paperDocViewValue", "static_instance": null, "getter_method": "getPaperDocViewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_external_view_allow": {"fq_name": "team_log.EventType.paper_external_view_allow", "param_name": "paperExternalViewAllowValue", "static_instance": null, "getter_method": "getPaperExternalViewAllowValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_external_view_default_team": {"fq_name": "team_log.EventType.paper_external_view_default_team", "param_name": "paperExternalViewDefaultTeamValue", "static_instance": null, "getter_method": "getPaperExternalViewDefaultTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_external_view_forbid": {"fq_name": "team_log.EventType.paper_external_view_forbid", "param_name": "paperExternalViewForbidValue", "static_instance": null, "getter_method": "getPaperExternalViewForbidValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_folder_change_subscription": {"fq_name": "team_log.EventType.paper_folder_change_subscription", "param_name": "paperFolderChangeSubscriptionValue", "static_instance": null, "getter_method": "getPaperFolderChangeSubscriptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_folder_deleted": {"fq_name": "team_log.EventType.paper_folder_deleted", "param_name": "paperFolderDeletedValue", "static_instance": null, "getter_method": "getPaperFolderDeletedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_folder_followed": {"fq_name": "team_log.EventType.paper_folder_followed", "param_name": "paperFolderFollowedValue", "static_instance": null, "getter_method": "getPaperFolderFollowedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_folder_team_invite": {"fq_name": "team_log.EventType.paper_folder_team_invite", "param_name": "paperFolderTeamInviteValue", "static_instance": null, "getter_method": "getPaperFolderTeamInviteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_published_link_change_permission": {"fq_name": "team_log.EventType.paper_published_link_change_permission", "param_name": "paperPublishedLinkChangePermissionValue", "static_instance": null, "getter_method": "getPaperPublishedLinkChangePermissionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_published_link_create": {"fq_name": "team_log.EventType.paper_published_link_create", "param_name": "paperPublishedLinkCreateValue", "static_instance": null, "getter_method": "getPaperPublishedLinkCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_published_link_disabled": {"fq_name": "team_log.EventType.paper_published_link_disabled", "param_name": "paperPublishedLinkDisabledValue", "static_instance": null, "getter_method": "getPaperPublishedLinkDisabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_published_link_view": {"fq_name": "team_log.EventType.paper_published_link_view", "param_name": "paperPublishedLinkViewValue", "static_instance": null, "getter_method": "getPaperPublishedLinkViewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.password_change": {"fq_name": "team_log.EventType.password_change", "param_name": "passwordChangeValue", "static_instance": null, "getter_method": "getPasswordChangeValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.password_reset": {"fq_name": "team_log.EventType.password_reset", "param_name": "passwordResetValue", "static_instance": null, "getter_method": "getPasswordResetValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.password_reset_all": {"fq_name": "team_log.EventType.password_reset_all", "param_name": "passwordResetAllValue", "static_instance": null, "getter_method": "getPasswordResetAllValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.classification_create_report": {"fq_name": "team_log.EventType.classification_create_report", "param_name": "classificationCreateReportValue", "static_instance": null, "getter_method": "getClassificationCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.classification_create_report_fail": {"fq_name": "team_log.EventType.classification_create_report_fail", "param_name": "classificationCreateReportFailValue", "static_instance": null, "getter_method": "getClassificationCreateReportFailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.emm_create_exceptions_report": {"fq_name": "team_log.EventType.emm_create_exceptions_report", "param_name": "emmCreateExceptionsReportValue", "static_instance": null, "getter_method": "getEmmCreateExceptionsReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.emm_create_usage_report": {"fq_name": "team_log.EventType.emm_create_usage_report", "param_name": "emmCreateUsageReportValue", "static_instance": null, "getter_method": "getEmmCreateUsageReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.export_members_report": {"fq_name": "team_log.EventType.export_members_report", "param_name": "exportMembersReportValue", "static_instance": null, "getter_method": "getExportMembersReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.export_members_report_fail": {"fq_name": "team_log.EventType.export_members_report_fail", "param_name": "exportMembersReportFailValue", "static_instance": null, "getter_method": "getExportMembersReportFailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.external_sharing_create_report": {"fq_name": "team_log.EventType.external_sharing_create_report", "param_name": "externalSharingCreateReportValue", "static_instance": null, "getter_method": "getExternalSharingCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.external_sharing_report_failed": {"fq_name": "team_log.EventType.external_sharing_report_failed", "param_name": "externalSharingReportFailedValue", "static_instance": null, "getter_method": "getExternalSharingReportFailedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.no_expiration_link_gen_create_report": {"fq_name": "team_log.EventType.no_expiration_link_gen_create_report", "param_name": "noExpirationLinkGenCreateReportValue", "static_instance": null, "getter_method": "getNoExpirationLinkGenCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.no_expiration_link_gen_report_failed": {"fq_name": "team_log.EventType.no_expiration_link_gen_report_failed", "param_name": "noExpirationLinkGenReportFailedValue", "static_instance": null, "getter_method": "getNoExpirationLinkGenReportFailedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.no_password_link_gen_create_report": {"fq_name": "team_log.EventType.no_password_link_gen_create_report", "param_name": "noPasswordLinkGenCreateReportValue", "static_instance": null, "getter_method": "getNoPasswordLinkGenCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.no_password_link_gen_report_failed": {"fq_name": "team_log.EventType.no_password_link_gen_report_failed", "param_name": "noPasswordLinkGenReportFailedValue", "static_instance": null, "getter_method": "getNoPasswordLinkGenReportFailedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.no_password_link_view_create_report": {"fq_name": "team_log.EventType.no_password_link_view_create_report", "param_name": "noPasswordLinkViewCreateReportValue", "static_instance": null, "getter_method": "getNoPasswordLinkViewCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.no_password_link_view_report_failed": {"fq_name": "team_log.EventType.no_password_link_view_report_failed", "param_name": "noPasswordLinkViewReportFailedValue", "static_instance": null, "getter_method": "getNoPasswordLinkViewReportFailedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.outdated_link_view_create_report": {"fq_name": "team_log.EventType.outdated_link_view_create_report", "param_name": "outdatedLinkViewCreateReportValue", "static_instance": null, "getter_method": "getOutdatedLinkViewCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.outdated_link_view_report_failed": {"fq_name": "team_log.EventType.outdated_link_view_report_failed", "param_name": "outdatedLinkViewReportFailedValue", "static_instance": null, "getter_method": "getOutdatedLinkViewReportFailedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_admin_export_start": {"fq_name": "team_log.EventType.paper_admin_export_start", "param_name": "paperAdminExportStartValue", "static_instance": null, "getter_method": "getPaperAdminExportStartValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.ransomware_alert_create_report": {"fq_name": "team_log.EventType.ransomware_alert_create_report", "param_name": "ransomwareAlertCreateReportValue", "static_instance": null, "getter_method": "getRansomwareAlertCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.ransomware_alert_create_report_failed": {"fq_name": "team_log.EventType.ransomware_alert_create_report_failed", "param_name": "ransomwareAlertCreateReportFailedValue", "static_instance": null, "getter_method": "getRansomwareAlertCreateReportFailedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.smart_sync_create_admin_privilege_report": {"fq_name": "team_log.EventType.smart_sync_create_admin_privilege_report", "param_name": "smartSyncCreateAdminPrivilegeReportValue", "static_instance": null, "getter_method": "getSmartSyncCreateAdminPrivilegeReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_activity_create_report": {"fq_name": "team_log.EventType.team_activity_create_report", "param_name": "teamActivityCreateReportValue", "static_instance": null, "getter_method": "getTeamActivityCreateReportValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_activity_create_report_fail": {"fq_name": "team_log.EventType.team_activity_create_report_fail", "param_name": "teamActivityCreateReportFailValue", "static_instance": null, "getter_method": "getTeamActivityCreateReportFailValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.collection_share": {"fq_name": "team_log.EventType.collection_share", "param_name": "collectionShareValue", "static_instance": null, "getter_method": "getCollectionShareValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_transfers_file_add": {"fq_name": "team_log.EventType.file_transfers_file_add", "param_name": "fileTransfersFileAddValue", "static_instance": null, "getter_method": "getFileTransfersFileAddValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_transfers_transfer_delete": {"fq_name": "team_log.EventType.file_transfers_transfer_delete", "param_name": "fileTransfersTransferDeleteValue", "static_instance": null, "getter_method": "getFileTransfersTransferDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_transfers_transfer_download": {"fq_name": "team_log.EventType.file_transfers_transfer_download", "param_name": "fileTransfersTransferDownloadValue", "static_instance": null, "getter_method": "getFileTransfersTransferDownloadValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_transfers_transfer_send": {"fq_name": "team_log.EventType.file_transfers_transfer_send", "param_name": "fileTransfersTransferSendValue", "static_instance": null, "getter_method": "getFileTransfersTransferSendValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_transfers_transfer_view": {"fq_name": "team_log.EventType.file_transfers_transfer_view", "param_name": "fileTransfersTransferViewValue", "static_instance": null, "getter_method": "getFileTransfersTransferViewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.note_acl_invite_only": {"fq_name": "team_log.EventType.note_acl_invite_only", "param_name": "noteAclInviteOnlyValue", "static_instance": null, "getter_method": "getNoteAclInviteOnlyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.note_acl_link": {"fq_name": "team_log.EventType.note_acl_link", "param_name": "noteAclLinkValue", "static_instance": null, "getter_method": "getNoteAclLinkValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.note_acl_team_link": {"fq_name": "team_log.EventType.note_acl_team_link", "param_name": "noteAclTeamLinkValue", "static_instance": null, "getter_method": "getNoteAclTeamLinkValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.note_shared": {"fq_name": "team_log.EventType.note_shared", "param_name": "noteSharedValue", "static_instance": null, "getter_method": "getNoteSharedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.note_share_receive": {"fq_name": "team_log.EventType.note_share_receive", "param_name": "noteShareReceiveValue", "static_instance": null, "getter_method": "getNoteShareReceiveValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.open_note_shared": {"fq_name": "team_log.EventType.open_note_shared", "param_name": "openNoteSharedValue", "static_instance": null, "getter_method": "getOpenNoteSharedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.replay_file_shared_link_created": {"fq_name": "team_log.EventType.replay_file_shared_link_created", "param_name": "replayFileSharedLinkCreatedValue", "static_instance": null, "getter_method": "getReplayFileSharedLinkCreatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.replay_file_shared_link_modified": {"fq_name": "team_log.EventType.replay_file_shared_link_modified", "param_name": "replayFileSharedLinkModifiedValue", "static_instance": null, "getter_method": "getReplayFileSharedLinkModifiedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.replay_project_team_add": {"fq_name": "team_log.EventType.replay_project_team_add", "param_name": "replayProjectTeamAddValue", "static_instance": null, "getter_method": "getReplayProjectTeamAddValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.replay_project_team_delete": {"fq_name": "team_log.EventType.replay_project_team_delete", "param_name": "replayProjectTeamDeleteValue", "static_instance": null, "getter_method": "getReplayProjectTeamDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_add_group": {"fq_name": "team_log.EventType.sf_add_group", "param_name": "sfAddGroupValue", "static_instance": null, "getter_method": "getSfAddGroupValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_allow_non_members_to_view_shared_links": {"fq_name": "team_log.EventType.sf_allow_non_members_to_view_shared_links", "param_name": "sfAllowNonMembersToViewSharedLinksValue", "static_instance": null, "getter_method": "getSfAllowNonMembersToViewSharedLinksValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_external_invite_warn": {"fq_name": "team_log.EventType.sf_external_invite_warn", "param_name": "sfExternalInviteWarnValue", "static_instance": null, "getter_method": "getSfExternalInviteWarnValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_fb_invite": {"fq_name": "team_log.EventType.sf_fb_invite", "param_name": "sfFbInviteValue", "static_instance": null, "getter_method": "getSfFbInviteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_fb_invite_change_role": {"fq_name": "team_log.EventType.sf_fb_invite_change_role", "param_name": "sfFbInviteChangeRoleValue", "static_instance": null, "getter_method": "getSfFbInviteChangeRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_fb_uninvite": {"fq_name": "team_log.EventType.sf_fb_uninvite", "param_name": "sfFbUninviteValue", "static_instance": null, "getter_method": "getSfFbUninviteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_invite_group": {"fq_name": "team_log.EventType.sf_invite_group", "param_name": "sfInviteGroupValue", "static_instance": null, "getter_method": "getSfInviteGroupValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_team_grant_access": {"fq_name": "team_log.EventType.sf_team_grant_access", "param_name": "sfTeamGrantAccessValue", "static_instance": null, "getter_method": "getSfTeamGrantAccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_team_invite": {"fq_name": "team_log.EventType.sf_team_invite", "param_name": "sfTeamInviteValue", "static_instance": null, "getter_method": "getSfTeamInviteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_team_invite_change_role": {"fq_name": "team_log.EventType.sf_team_invite_change_role", "param_name": "sfTeamInviteChangeRoleValue", "static_instance": null, "getter_method": "getSfTeamInviteChangeRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_team_join": {"fq_name": "team_log.EventType.sf_team_join", "param_name": "sfTeamJoinValue", "static_instance": null, "getter_method": "getSfTeamJoinValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_team_join_from_oob_link": {"fq_name": "team_log.EventType.sf_team_join_from_oob_link", "param_name": "sfTeamJoinFromOobLinkValue", "static_instance": null, "getter_method": "getSfTeamJoinFromOobLinkValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sf_team_uninvite": {"fq_name": "team_log.EventType.sf_team_uninvite", "param_name": "sfTeamUninviteValue", "static_instance": null, "getter_method": "getSfTeamUninviteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_add_invitees": {"fq_name": "team_log.EventType.shared_content_add_invitees", "param_name": "sharedContentAddInviteesValue", "static_instance": null, "getter_method": "getSharedContentAddInviteesValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_add_link_expiry": {"fq_name": "team_log.EventType.shared_content_add_link_expiry", "param_name": "sharedContentAddLinkExpiryValue", "static_instance": null, "getter_method": "getSharedContentAddLinkExpiryValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_add_link_password": {"fq_name": "team_log.EventType.shared_content_add_link_password", "param_name": "sharedContentAddLinkPasswordValue", "static_instance": null, "getter_method": "getSharedContentAddLinkPasswordValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_add_member": {"fq_name": "team_log.EventType.shared_content_add_member", "param_name": "sharedContentAddMemberValue", "static_instance": null, "getter_method": "getSharedContentAddMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_change_downloads_policy": {"fq_name": "team_log.EventType.shared_content_change_downloads_policy", "param_name": "sharedContentChangeDownloadsPolicyValue", "static_instance": null, "getter_method": "getSharedContentChangeDownloadsPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_change_invitee_role": {"fq_name": "team_log.EventType.shared_content_change_invitee_role", "param_name": "sharedContentChangeInviteeRoleValue", "static_instance": null, "getter_method": "getSharedContentChangeInviteeRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_change_link_audience": {"fq_name": "team_log.EventType.shared_content_change_link_audience", "param_name": "sharedContentChangeLinkAudienceValue", "static_instance": null, "getter_method": "getSharedContentChangeLinkAudienceValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_change_link_expiry": {"fq_name": "team_log.EventType.shared_content_change_link_expiry", "param_name": "sharedContentChangeLinkExpiryValue", "static_instance": null, "getter_method": "getSharedContentChangeLinkExpiryValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_change_link_password": {"fq_name": "team_log.EventType.shared_content_change_link_password", "param_name": "sharedContentChangeLinkPasswordValue", "static_instance": null, "getter_method": "getSharedContentChangeLinkPasswordValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_change_member_role": {"fq_name": "team_log.EventType.shared_content_change_member_role", "param_name": "sharedContentChangeMemberRoleValue", "static_instance": null, "getter_method": "getSharedContentChangeMemberRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_change_viewer_info_policy": {"fq_name": "team_log.EventType.shared_content_change_viewer_info_policy", "param_name": "sharedContentChangeViewerInfoPolicyValue", "static_instance": null, "getter_method": "getSharedContentChangeViewerInfoPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_claim_invitation": {"fq_name": "team_log.EventType.shared_content_claim_invitation", "param_name": "sharedContentClaimInvitationValue", "static_instance": null, "getter_method": "getSharedContentClaimInvitationValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_copy": {"fq_name": "team_log.EventType.shared_content_copy", "param_name": "sharedContentCopyValue", "static_instance": null, "getter_method": "getSharedContentCopyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_download": {"fq_name": "team_log.EventType.shared_content_download", "param_name": "sharedContentDownloadValue", "static_instance": null, "getter_method": "getSharedContentDownloadValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_relinquish_membership": {"fq_name": "team_log.EventType.shared_content_relinquish_membership", "param_name": "sharedContentRelinquishMembershipValue", "static_instance": null, "getter_method": "getSharedContentRelinquishMembershipValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_remove_invitees": {"fq_name": "team_log.EventType.shared_content_remove_invitees", "param_name": "sharedContentRemoveInviteesValue", "static_instance": null, "getter_method": "getSharedContentRemoveInviteesValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_remove_link_expiry": {"fq_name": "team_log.EventType.shared_content_remove_link_expiry", "param_name": "sharedContentRemoveLinkExpiryValue", "static_instance": null, "getter_method": "getSharedContentRemoveLinkExpiryValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_remove_link_password": {"fq_name": "team_log.EventType.shared_content_remove_link_password", "param_name": "sharedContentRemoveLinkPasswordValue", "static_instance": null, "getter_method": "getSharedContentRemoveLinkPasswordValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_remove_member": {"fq_name": "team_log.EventType.shared_content_remove_member", "param_name": "sharedContentRemoveMemberValue", "static_instance": null, "getter_method": "getSharedContentRemoveMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_request_access": {"fq_name": "team_log.EventType.shared_content_request_access", "param_name": "sharedContentRequestAccessValue", "static_instance": null, "getter_method": "getSharedContentRequestAccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_restore_invitees": {"fq_name": "team_log.EventType.shared_content_restore_invitees", "param_name": "sharedContentRestoreInviteesValue", "static_instance": null, "getter_method": "getSharedContentRestoreInviteesValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_restore_member": {"fq_name": "team_log.EventType.shared_content_restore_member", "param_name": "sharedContentRestoreMemberValue", "static_instance": null, "getter_method": "getSharedContentRestoreMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_unshare": {"fq_name": "team_log.EventType.shared_content_unshare", "param_name": "sharedContentUnshareValue", "static_instance": null, "getter_method": "getSharedContentUnshareValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_content_view": {"fq_name": "team_log.EventType.shared_content_view", "param_name": "sharedContentViewValue", "static_instance": null, "getter_method": "getSharedContentViewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_change_link_policy": {"fq_name": "team_log.EventType.shared_folder_change_link_policy", "param_name": "sharedFolderChangeLinkPolicyValue", "static_instance": null, "getter_method": "getSharedFolderChangeLinkPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_change_members_inheritance_policy": {"fq_name": "team_log.EventType.shared_folder_change_members_inheritance_policy", "param_name": "sharedFolderChangeMembersInheritancePolicyValue", "static_instance": null, "getter_method": "getSharedFolderChangeMembersInheritancePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_change_members_management_policy": {"fq_name": "team_log.EventType.shared_folder_change_members_management_policy", "param_name": "sharedFolderChangeMembersManagementPolicyValue", "static_instance": null, "getter_method": "getSharedFolderChangeMembersManagementPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_change_members_policy": {"fq_name": "team_log.EventType.shared_folder_change_members_policy", "param_name": "sharedFolderChangeMembersPolicyValue", "static_instance": null, "getter_method": "getSharedFolderChangeMembersPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_create": {"fq_name": "team_log.EventType.shared_folder_create", "param_name": "sharedFolderCreateValue", "static_instance": null, "getter_method": "getSharedFolderCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_decline_invitation": {"fq_name": "team_log.EventType.shared_folder_decline_invitation", "param_name": "sharedFolderDeclineInvitationValue", "static_instance": null, "getter_method": "getSharedFolderDeclineInvitationValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_mount": {"fq_name": "team_log.EventType.shared_folder_mount", "param_name": "sharedFolderMountValue", "static_instance": null, "getter_method": "getSharedFolderMountValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_nest": {"fq_name": "team_log.EventType.shared_folder_nest", "param_name": "sharedFolderNestValue", "static_instance": null, "getter_method": "getSharedFolderNestValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_transfer_ownership": {"fq_name": "team_log.EventType.shared_folder_transfer_ownership", "param_name": "sharedFolderTransferOwnershipValue", "static_instance": null, "getter_method": "getSharedFolderTransferOwnershipValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_folder_unmount": {"fq_name": "team_log.EventType.shared_folder_unmount", "param_name": "sharedFolderUnmountValue", "static_instance": null, "getter_method": "getSharedFolderUnmountValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_add_expiry": {"fq_name": "team_log.EventType.shared_link_add_expiry", "param_name": "sharedLinkAddExpiryValue", "static_instance": null, "getter_method": "getSharedLinkAddExpiryValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_change_expiry": {"fq_name": "team_log.EventType.shared_link_change_expiry", "param_name": "sharedLinkChangeExpiryValue", "static_instance": null, "getter_method": "getSharedLinkChangeExpiryValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_change_visibility": {"fq_name": "team_log.EventType.shared_link_change_visibility", "param_name": "sharedLinkChangeVisibilityValue", "static_instance": null, "getter_method": "getSharedLinkChangeVisibilityValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_copy": {"fq_name": "team_log.EventType.shared_link_copy", "param_name": "sharedLinkCopyValue", "static_instance": null, "getter_method": "getSharedLinkCopyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_create": {"fq_name": "team_log.EventType.shared_link_create", "param_name": "sharedLinkCreateValue", "static_instance": null, "getter_method": "getSharedLinkCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_disable": {"fq_name": "team_log.EventType.shared_link_disable", "param_name": "sharedLinkDisableValue", "static_instance": null, "getter_method": "getSharedLinkDisableValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_download": {"fq_name": "team_log.EventType.shared_link_download", "param_name": "sharedLinkDownloadValue", "static_instance": null, "getter_method": "getSharedLinkDownloadValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_remove_expiry": {"fq_name": "team_log.EventType.shared_link_remove_expiry", "param_name": "sharedLinkRemoveExpiryValue", "static_instance": null, "getter_method": "getSharedLinkRemoveExpiryValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_add_expiration": {"fq_name": "team_log.EventType.shared_link_settings_add_expiration", "param_name": "sharedLinkSettingsAddExpirationValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAddExpirationValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_add_password": {"fq_name": "team_log.EventType.shared_link_settings_add_password", "param_name": "sharedLinkSettingsAddPasswordValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAddPasswordValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_allow_download_disabled": {"fq_name": "team_log.EventType.shared_link_settings_allow_download_disabled", "param_name": "sharedLinkSettingsAllowDownloadDisabledValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAllowDownloadDisabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_allow_download_enabled": {"fq_name": "team_log.EventType.shared_link_settings_allow_download_enabled", "param_name": "sharedLinkSettingsAllowDownloadEnabledValue", "static_instance": null, "getter_method": "getSharedLinkSettingsAllowDownloadEnabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_change_audience": {"fq_name": "team_log.EventType.shared_link_settings_change_audience", "param_name": "sharedLinkSettingsChangeAudienceValue", "static_instance": null, "getter_method": "getSharedLinkSettingsChangeAudienceValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_change_expiration": {"fq_name": "team_log.EventType.shared_link_settings_change_expiration", "param_name": "sharedLinkSettingsChangeExpirationValue", "static_instance": null, "getter_method": "getSharedLinkSettingsChangeExpirationValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_change_password": {"fq_name": "team_log.EventType.shared_link_settings_change_password", "param_name": "sharedLinkSettingsChangePasswordValue", "static_instance": null, "getter_method": "getSharedLinkSettingsChangePasswordValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_remove_expiration": {"fq_name": "team_log.EventType.shared_link_settings_remove_expiration", "param_name": "sharedLinkSettingsRemoveExpirationValue", "static_instance": null, "getter_method": "getSharedLinkSettingsRemoveExpirationValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_settings_remove_password": {"fq_name": "team_log.EventType.shared_link_settings_remove_password", "param_name": "sharedLinkSettingsRemovePasswordValue", "static_instance": null, "getter_method": "getSharedLinkSettingsRemovePasswordValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_share": {"fq_name": "team_log.EventType.shared_link_share", "param_name": "sharedLinkShareValue", "static_instance": null, "getter_method": "getSharedLinkShareValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_link_view": {"fq_name": "team_log.EventType.shared_link_view", "param_name": "sharedLinkViewValue", "static_instance": null, "getter_method": "getSharedLinkViewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shared_note_opened": {"fq_name": "team_log.EventType.shared_note_opened", "param_name": "sharedNoteOpenedValue", "static_instance": null, "getter_method": "getSharedNoteOpenedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shmodel_disable_downloads": {"fq_name": "team_log.EventType.shmodel_disable_downloads", "param_name": "shmodelDisableDownloadsValue", "static_instance": null, "getter_method": "getShmodelDisableDownloadsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shmodel_enable_downloads": {"fq_name": "team_log.EventType.shmodel_enable_downloads", "param_name": "shmodelEnableDownloadsValue", "static_instance": null, "getter_method": "getShmodelEnableDownloadsValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.shmodel_group_share": {"fq_name": "team_log.EventType.shmodel_group_share", "param_name": "shmodelGroupShareValue", "static_instance": null, "getter_method": "getShmodelGroupShareValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_access_granted": {"fq_name": "team_log.EventType.showcase_access_granted", "param_name": "showcaseAccessGrantedValue", "static_instance": null, "getter_method": "getShowcaseAccessGrantedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_add_member": {"fq_name": "team_log.EventType.showcase_add_member", "param_name": "showcaseAddMemberValue", "static_instance": null, "getter_method": "getShowcaseAddMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_archived": {"fq_name": "team_log.EventType.showcase_archived", "param_name": "showcaseArchivedValue", "static_instance": null, "getter_method": "getShowcaseArchivedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_created": {"fq_name": "team_log.EventType.showcase_created", "param_name": "showcaseCreatedValue", "static_instance": null, "getter_method": "getShowcaseCreatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_delete_comment": {"fq_name": "team_log.EventType.showcase_delete_comment", "param_name": "showcaseDeleteCommentValue", "static_instance": null, "getter_method": "getShowcaseDeleteCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_edited": {"fq_name": "team_log.EventType.showcase_edited", "param_name": "showcaseEditedValue", "static_instance": null, "getter_method": "getShowcaseEditedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_edit_comment": {"fq_name": "team_log.EventType.showcase_edit_comment", "param_name": "showcaseEditCommentValue", "static_instance": null, "getter_method": "getShowcaseEditCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_file_added": {"fq_name": "team_log.EventType.showcase_file_added", "param_name": "showcaseFileAddedValue", "static_instance": null, "getter_method": "getShowcaseFileAddedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_file_download": {"fq_name": "team_log.EventType.showcase_file_download", "param_name": "showcaseFileDownloadValue", "static_instance": null, "getter_method": "getShowcaseFileDownloadValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_file_removed": {"fq_name": "team_log.EventType.showcase_file_removed", "param_name": "showcaseFileRemovedValue", "static_instance": null, "getter_method": "getShowcaseFileRemovedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_file_view": {"fq_name": "team_log.EventType.showcase_file_view", "param_name": "showcaseFileViewValue", "static_instance": null, "getter_method": "getShowcaseFileViewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_permanently_deleted": {"fq_name": "team_log.EventType.showcase_permanently_deleted", "param_name": "showcasePermanentlyDeletedValue", "static_instance": null, "getter_method": "getShowcasePermanentlyDeletedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_post_comment": {"fq_name": "team_log.EventType.showcase_post_comment", "param_name": "showcasePostCommentValue", "static_instance": null, "getter_method": "getShowcasePostCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_remove_member": {"fq_name": "team_log.EventType.showcase_remove_member", "param_name": "showcaseRemoveMemberValue", "static_instance": null, "getter_method": "getShowcaseRemoveMemberValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_renamed": {"fq_name": "team_log.EventType.showcase_renamed", "param_name": "showcaseRenamedValue", "static_instance": null, "getter_method": "getShowcaseRenamedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_request_access": {"fq_name": "team_log.EventType.showcase_request_access", "param_name": "showcaseRequestAccessValue", "static_instance": null, "getter_method": "getShowcaseRequestAccessValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_resolve_comment": {"fq_name": "team_log.EventType.showcase_resolve_comment", "param_name": "showcaseResolveCommentValue", "static_instance": null, "getter_method": "getShowcaseResolveCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_restored": {"fq_name": "team_log.EventType.showcase_restored", "param_name": "showcaseRestoredValue", "static_instance": null, "getter_method": "getShowcaseRestoredValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_trashed": {"fq_name": "team_log.EventType.showcase_trashed", "param_name": "showcaseTrashedValue", "static_instance": null, "getter_method": "getShowcaseTrashedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_trashed_deprecated": {"fq_name": "team_log.EventType.showcase_trashed_deprecated", "param_name": "showcaseTrashedDeprecatedValue", "static_instance": null, "getter_method": "getShowcaseTrashedDeprecatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_unresolve_comment": {"fq_name": "team_log.EventType.showcase_unresolve_comment", "param_name": "showcaseUnresolveCommentValue", "static_instance": null, "getter_method": "getShowcaseUnresolveCommentValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_untrashed": {"fq_name": "team_log.EventType.showcase_untrashed", "param_name": "showcaseUntrashedValue", "static_instance": null, "getter_method": "getShowcaseUntrashedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_untrashed_deprecated": {"fq_name": "team_log.EventType.showcase_untrashed_deprecated", "param_name": "showcaseUntrashedDeprecatedValue", "static_instance": null, "getter_method": "getShowcaseUntrashedDeprecatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_view": {"fq_name": "team_log.EventType.showcase_view", "param_name": "showcaseViewValue", "static_instance": null, "getter_method": "getShowcaseViewValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_add_cert": {"fq_name": "team_log.EventType.sso_add_cert", "param_name": "ssoAddCertValue", "static_instance": null, "getter_method": "getSsoAddCertValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_add_login_url": {"fq_name": "team_log.EventType.sso_add_login_url", "param_name": "ssoAddLoginUrlValue", "static_instance": null, "getter_method": "getSsoAddLoginUrlValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_add_logout_url": {"fq_name": "team_log.EventType.sso_add_logout_url", "param_name": "ssoAddLogoutUrlValue", "static_instance": null, "getter_method": "getSsoAddLogoutUrlValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_change_cert": {"fq_name": "team_log.EventType.sso_change_cert", "param_name": "ssoChangeCertValue", "static_instance": null, "getter_method": "getSsoChangeCertValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_change_login_url": {"fq_name": "team_log.EventType.sso_change_login_url", "param_name": "ssoChangeLoginUrlValue", "static_instance": null, "getter_method": "getSsoChangeLoginUrlValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_change_logout_url": {"fq_name": "team_log.EventType.sso_change_logout_url", "param_name": "ssoChangeLogoutUrlValue", "static_instance": null, "getter_method": "getSsoChangeLogoutUrlValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_change_saml_identity_mode": {"fq_name": "team_log.EventType.sso_change_saml_identity_mode", "param_name": "ssoChangeSamlIdentityModeValue", "static_instance": null, "getter_method": "getSsoChangeSamlIdentityModeValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_remove_cert": {"fq_name": "team_log.EventType.sso_remove_cert", "param_name": "ssoRemoveCertValue", "static_instance": null, "getter_method": "getSsoRemoveCertValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_remove_login_url": {"fq_name": "team_log.EventType.sso_remove_login_url", "param_name": "ssoRemoveLoginUrlValue", "static_instance": null, "getter_method": "getSsoRemoveLoginUrlValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_remove_logout_url": {"fq_name": "team_log.EventType.sso_remove_logout_url", "param_name": "ssoRemoveLogoutUrlValue", "static_instance": null, "getter_method": "getSsoRemoveLogoutUrlValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_folder_change_status": {"fq_name": "team_log.EventType.team_folder_change_status", "param_name": "teamFolderChangeStatusValue", "static_instance": null, "getter_method": "getTeamFolderChangeStatusValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_folder_create": {"fq_name": "team_log.EventType.team_folder_create", "param_name": "teamFolderCreateValue", "static_instance": null, "getter_method": "getTeamFolderCreateValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_folder_downgrade": {"fq_name": "team_log.EventType.team_folder_downgrade", "param_name": "teamFolderDowngradeValue", "static_instance": null, "getter_method": "getTeamFolderDowngradeValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_folder_permanently_delete": {"fq_name": "team_log.EventType.team_folder_permanently_delete", "param_name": "teamFolderPermanentlyDeleteValue", "static_instance": null, "getter_method": "getTeamFolderPermanentlyDeleteValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_folder_rename": {"fq_name": "team_log.EventType.team_folder_rename", "param_name": "teamFolderRenameValue", "static_instance": null, "getter_method": "getTeamFolderRenameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_selective_sync_settings_changed": {"fq_name": "team_log.EventType.team_selective_sync_settings_changed", "param_name": "teamSelectiveSyncSettingsChangedValue", "static_instance": null, "getter_method": "getTeamSelectiveSyncSettingsChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.account_capture_change_policy": {"fq_name": "team_log.EventType.account_capture_change_policy", "param_name": "accountCaptureChangePolicyValue", "static_instance": null, "getter_method": "getAccountCaptureChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.admin_email_reminders_changed": {"fq_name": "team_log.EventType.admin_email_reminders_changed", "param_name": "adminEmailRemindersChangedValue", "static_instance": null, "getter_method": "getAdminEmailRemindersChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.allow_download_disabled": {"fq_name": "team_log.EventType.allow_download_disabled", "param_name": "allowDownloadDisabledValue", "static_instance": null, "getter_method": "getAllowDownloadDisabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.allow_download_enabled": {"fq_name": "team_log.EventType.allow_download_enabled", "param_name": "allowDownloadEnabledValue", "static_instance": null, "getter_method": "getAllowDownloadEnabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.app_permissions_changed": {"fq_name": "team_log.EventType.app_permissions_changed", "param_name": "appPermissionsChangedValue", "static_instance": null, "getter_method": "getAppPermissionsChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.camera_uploads_policy_changed": {"fq_name": "team_log.EventType.camera_uploads_policy_changed", "param_name": "cameraUploadsPolicyChangedValue", "static_instance": null, "getter_method": "getCameraUploadsPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.capture_transcript_policy_changed": {"fq_name": "team_log.EventType.capture_transcript_policy_changed", "param_name": "captureTranscriptPolicyChangedValue", "static_instance": null, "getter_method": "getCaptureTranscriptPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.classification_change_policy": {"fq_name": "team_log.EventType.classification_change_policy", "param_name": "classificationChangePolicyValue", "static_instance": null, "getter_method": "getClassificationChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.computer_backup_policy_changed": {"fq_name": "team_log.EventType.computer_backup_policy_changed", "param_name": "computerBackupPolicyChangedValue", "static_instance": null, "getter_method": "getComputerBackupPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.content_administration_policy_changed": {"fq_name": "team_log.EventType.content_administration_policy_changed", "param_name": "contentAdministrationPolicyChangedValue", "static_instance": null, "getter_method": "getContentAdministrationPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.data_placement_restriction_change_policy": {"fq_name": "team_log.EventType.data_placement_restriction_change_policy", "param_name": "dataPlacementRestrictionChangePolicyValue", "static_instance": null, "getter_method": "getDataPlacementRestrictionChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.data_placement_restriction_satisfy_policy": {"fq_name": "team_log.EventType.data_placement_restriction_satisfy_policy", "param_name": "dataPlacementRestrictionSatisfyPolicyValue", "static_instance": null, "getter_method": "getDataPlacementRestrictionSatisfyPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_approvals_add_exception": {"fq_name": "team_log.EventType.device_approvals_add_exception", "param_name": "deviceApprovalsAddExceptionValue", "static_instance": null, "getter_method": "getDeviceApprovalsAddExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_approvals_change_desktop_policy": {"fq_name": "team_log.EventType.device_approvals_change_desktop_policy", "param_name": "deviceApprovalsChangeDesktopPolicyValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeDesktopPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_approvals_change_mobile_policy": {"fq_name": "team_log.EventType.device_approvals_change_mobile_policy", "param_name": "deviceApprovalsChangeMobilePolicyValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeMobilePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_approvals_change_overage_action": {"fq_name": "team_log.EventType.device_approvals_change_overage_action", "param_name": "deviceApprovalsChangeOverageActionValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeOverageActionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_approvals_change_unlink_action": {"fq_name": "team_log.EventType.device_approvals_change_unlink_action", "param_name": "deviceApprovalsChangeUnlinkActionValue", "static_instance": null, "getter_method": "getDeviceApprovalsChangeUnlinkActionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.device_approvals_remove_exception": {"fq_name": "team_log.EventType.device_approvals_remove_exception", "param_name": "deviceApprovalsRemoveExceptionValue", "static_instance": null, "getter_method": "getDeviceApprovalsRemoveExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.directory_restrictions_add_members": {"fq_name": "team_log.EventType.directory_restrictions_add_members", "param_name": "directoryRestrictionsAddMembersValue", "static_instance": null, "getter_method": "getDirectoryRestrictionsAddMembersValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.directory_restrictions_remove_members": {"fq_name": "team_log.EventType.directory_restrictions_remove_members", "param_name": "directoryRestrictionsRemoveMembersValue", "static_instance": null, "getter_method": "getDirectoryRestrictionsRemoveMembersValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.dropbox_passwords_policy_changed": {"fq_name": "team_log.EventType.dropbox_passwords_policy_changed", "param_name": "dropboxPasswordsPolicyChangedValue", "static_instance": null, "getter_method": "getDropboxPasswordsPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.email_ingest_policy_changed": {"fq_name": "team_log.EventType.email_ingest_policy_changed", "param_name": "emailIngestPolicyChangedValue", "static_instance": null, "getter_method": "getEmailIngestPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.emm_add_exception": {"fq_name": "team_log.EventType.emm_add_exception", "param_name": "emmAddExceptionValue", "static_instance": null, "getter_method": "getEmmAddExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.emm_change_policy": {"fq_name": "team_log.EventType.emm_change_policy", "param_name": "emmChangePolicyValue", "static_instance": null, "getter_method": "getEmmChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.emm_remove_exception": {"fq_name": "team_log.EventType.emm_remove_exception", "param_name": "emmRemoveExceptionValue", "static_instance": null, "getter_method": "getEmmRemoveExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.extended_version_history_change_policy": {"fq_name": "team_log.EventType.extended_version_history_change_policy", "param_name": "extendedVersionHistoryChangePolicyValue", "static_instance": null, "getter_method": "getExtendedVersionHistoryChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.external_drive_backup_policy_changed": {"fq_name": "team_log.EventType.external_drive_backup_policy_changed", "param_name": "externalDriveBackupPolicyChangedValue", "static_instance": null, "getter_method": "getExternalDriveBackupPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_comments_change_policy": {"fq_name": "team_log.EventType.file_comments_change_policy", "param_name": "fileCommentsChangePolicyValue", "static_instance": null, "getter_method": "getFileCommentsChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_locking_policy_changed": {"fq_name": "team_log.EventType.file_locking_policy_changed", "param_name": "fileLockingPolicyChangedValue", "static_instance": null, "getter_method": "getFileLockingPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_provider_migration_policy_changed": {"fq_name": "team_log.EventType.file_provider_migration_policy_changed", "param_name": "fileProviderMigrationPolicyChangedValue", "static_instance": null, "getter_method": "getFileProviderMigrationPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_requests_change_policy": {"fq_name": "team_log.EventType.file_requests_change_policy", "param_name": "fileRequestsChangePolicyValue", "static_instance": null, "getter_method": "getFileRequestsChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_requests_emails_enabled": {"fq_name": "team_log.EventType.file_requests_emails_enabled", "param_name": "fileRequestsEmailsEnabledValue", "static_instance": null, "getter_method": "getFileRequestsEmailsEnabledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_requests_emails_restricted_to_team_only": {"fq_name": "team_log.EventType.file_requests_emails_restricted_to_team_only", "param_name": "fileRequestsEmailsRestrictedToTeamOnlyValue", "static_instance": null, "getter_method": "getFileRequestsEmailsRestrictedToTeamOnlyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.file_transfers_policy_changed": {"fq_name": "team_log.EventType.file_transfers_policy_changed", "param_name": "fileTransfersPolicyChangedValue", "static_instance": null, "getter_method": "getFileTransfersPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.folder_link_restriction_policy_changed": {"fq_name": "team_log.EventType.folder_link_restriction_policy_changed", "param_name": "folderLinkRestrictionPolicyChangedValue", "static_instance": null, "getter_method": "getFolderLinkRestrictionPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.google_sso_change_policy": {"fq_name": "team_log.EventType.google_sso_change_policy", "param_name": "googleSsoChangePolicyValue", "static_instance": null, "getter_method": "getGoogleSsoChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.group_user_management_change_policy": {"fq_name": "team_log.EventType.group_user_management_change_policy", "param_name": "groupUserManagementChangePolicyValue", "static_instance": null, "getter_method": "getGroupUserManagementChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.integration_policy_changed": {"fq_name": "team_log.EventType.integration_policy_changed", "param_name": "integrationPolicyChangedValue", "static_instance": null, "getter_method": "getIntegrationPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.invite_acceptance_email_policy_changed": {"fq_name": "team_log.EventType.invite_acceptance_email_policy_changed", "param_name": "inviteAcceptanceEmailPolicyChangedValue", "static_instance": null, "getter_method": "getInviteAcceptanceEmailPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_requests_change_policy": {"fq_name": "team_log.EventType.member_requests_change_policy", "param_name": "memberRequestsChangePolicyValue", "static_instance": null, "getter_method": "getMemberRequestsChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_send_invite_policy_changed": {"fq_name": "team_log.EventType.member_send_invite_policy_changed", "param_name": "memberSendInvitePolicyChangedValue", "static_instance": null, "getter_method": "getMemberSendInvitePolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_add_exception": {"fq_name": "team_log.EventType.member_space_limits_add_exception", "param_name": "memberSpaceLimitsAddExceptionValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsAddExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_change_caps_type_policy": {"fq_name": "team_log.EventType.member_space_limits_change_caps_type_policy", "param_name": "memberSpaceLimitsChangeCapsTypePolicyValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangeCapsTypePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_change_policy": {"fq_name": "team_log.EventType.member_space_limits_change_policy", "param_name": "memberSpaceLimitsChangePolicyValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_space_limits_remove_exception": {"fq_name": "team_log.EventType.member_space_limits_remove_exception", "param_name": "memberSpaceLimitsRemoveExceptionValue", "static_instance": null, "getter_method": "getMemberSpaceLimitsRemoveExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.member_suggestions_change_policy": {"fq_name": "team_log.EventType.member_suggestions_change_policy", "param_name": "memberSuggestionsChangePolicyValue", "static_instance": null, "getter_method": "getMemberSuggestionsChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.microsoft_office_addin_change_policy": {"fq_name": "team_log.EventType.microsoft_office_addin_change_policy", "param_name": "microsoftOfficeAddinChangePolicyValue", "static_instance": null, "getter_method": "getMicrosoftOfficeAddinChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.network_control_change_policy": {"fq_name": "team_log.EventType.network_control_change_policy", "param_name": "networkControlChangePolicyValue", "static_instance": null, "getter_method": "getNetworkControlChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_change_deployment_policy": {"fq_name": "team_log.EventType.paper_change_deployment_policy", "param_name": "paperChangeDeploymentPolicyValue", "static_instance": null, "getter_method": "getPaperChangeDeploymentPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_change_member_link_policy": {"fq_name": "team_log.EventType.paper_change_member_link_policy", "param_name": "paperChangeMemberLinkPolicyValue", "static_instance": null, "getter_method": "getPaperChangeMemberLinkPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_change_member_policy": {"fq_name": "team_log.EventType.paper_change_member_policy", "param_name": "paperChangeMemberPolicyValue", "static_instance": null, "getter_method": "getPaperChangeMemberPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_change_policy": {"fq_name": "team_log.EventType.paper_change_policy", "param_name": "paperChangePolicyValue", "static_instance": null, "getter_method": "getPaperChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_default_folder_policy_changed": {"fq_name": "team_log.EventType.paper_default_folder_policy_changed", "param_name": "paperDefaultFolderPolicyChangedValue", "static_instance": null, "getter_method": "getPaperDefaultFolderPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_desktop_policy_changed": {"fq_name": "team_log.EventType.paper_desktop_policy_changed", "param_name": "paperDesktopPolicyChangedValue", "static_instance": null, "getter_method": "getPaperDesktopPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_enabled_users_group_addition": {"fq_name": "team_log.EventType.paper_enabled_users_group_addition", "param_name": "paperEnabledUsersGroupAdditionValue", "static_instance": null, "getter_method": "getPaperEnabledUsersGroupAdditionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.paper_enabled_users_group_removal": {"fq_name": "team_log.EventType.paper_enabled_users_group_removal", "param_name": "paperEnabledUsersGroupRemovalValue", "static_instance": null, "getter_method": "getPaperEnabledUsersGroupRemovalValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.password_strength_requirements_change_policy": {"fq_name": "team_log.EventType.password_strength_requirements_change_policy", "param_name": "passwordStrengthRequirementsChangePolicyValue", "static_instance": null, "getter_method": "getPasswordStrengthRequirementsChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.permanent_delete_change_policy": {"fq_name": "team_log.EventType.permanent_delete_change_policy", "param_name": "permanentDeleteChangePolicyValue", "static_instance": null, "getter_method": "getPermanentDeleteChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.reseller_support_change_policy": {"fq_name": "team_log.EventType.reseller_support_change_policy", "param_name": "resellerSupportChangePolicyValue", "static_instance": null, "getter_method": "getResellerSupportChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.rewind_policy_changed": {"fq_name": "team_log.EventType.rewind_policy_changed", "param_name": "rewindPolicyChangedValue", "static_instance": null, "getter_method": "getRewindPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.send_for_signature_policy_changed": {"fq_name": "team_log.EventType.send_for_signature_policy_changed", "param_name": "sendForSignaturePolicyChangedValue", "static_instance": null, "getter_method": "getSendForSignaturePolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sharing_change_folder_join_policy": {"fq_name": "team_log.EventType.sharing_change_folder_join_policy", "param_name": "sharingChangeFolderJoinPolicyValue", "static_instance": null, "getter_method": "getSharingChangeFolderJoinPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sharing_change_link_allow_change_expiration_policy": {"fq_name": "team_log.EventType.sharing_change_link_allow_change_expiration_policy", "param_name": "sharingChangeLinkAllowChangeExpirationPolicyValue", "static_instance": null, "getter_method": "getSharingChangeLinkAllowChangeExpirationPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sharing_change_link_default_expiration_policy": {"fq_name": "team_log.EventType.sharing_change_link_default_expiration_policy", "param_name": "sharingChangeLinkDefaultExpirationPolicyValue", "static_instance": null, "getter_method": "getSharingChangeLinkDefaultExpirationPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sharing_change_link_enforce_password_policy": {"fq_name": "team_log.EventType.sharing_change_link_enforce_password_policy", "param_name": "sharingChangeLinkEnforcePasswordPolicyValue", "static_instance": null, "getter_method": "getSharingChangeLinkEnforcePasswordPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sharing_change_link_policy": {"fq_name": "team_log.EventType.sharing_change_link_policy", "param_name": "sharingChangeLinkPolicyValue", "static_instance": null, "getter_method": "getSharingChangeLinkPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sharing_change_member_policy": {"fq_name": "team_log.EventType.sharing_change_member_policy", "param_name": "sharingChangeMemberPolicyValue", "static_instance": null, "getter_method": "getSharingChangeMemberPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_change_download_policy": {"fq_name": "team_log.EventType.showcase_change_download_policy", "param_name": "showcaseChangeDownloadPolicyValue", "static_instance": null, "getter_method": "getShowcaseChangeDownloadPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_change_enabled_policy": {"fq_name": "team_log.EventType.showcase_change_enabled_policy", "param_name": "showcaseChangeEnabledPolicyValue", "static_instance": null, "getter_method": "getShowcaseChangeEnabledPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.showcase_change_external_sharing_policy": {"fq_name": "team_log.EventType.showcase_change_external_sharing_policy", "param_name": "showcaseChangeExternalSharingPolicyValue", "static_instance": null, "getter_method": "getShowcaseChangeExternalSharingPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.smarter_smart_sync_policy_changed": {"fq_name": "team_log.EventType.smarter_smart_sync_policy_changed", "param_name": "smarterSmartSyncPolicyChangedValue", "static_instance": null, "getter_method": "getSmarterSmartSyncPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.smart_sync_change_policy": {"fq_name": "team_log.EventType.smart_sync_change_policy", "param_name": "smartSyncChangePolicyValue", "static_instance": null, "getter_method": "getSmartSyncChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.smart_sync_not_opt_out": {"fq_name": "team_log.EventType.smart_sync_not_opt_out", "param_name": "smartSyncNotOptOutValue", "static_instance": null, "getter_method": "getSmartSyncNotOptOutValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.smart_sync_opt_out": {"fq_name": "team_log.EventType.smart_sync_opt_out", "param_name": "smartSyncOptOutValue", "static_instance": null, "getter_method": "getSmartSyncOptOutValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.sso_change_policy": {"fq_name": "team_log.EventType.sso_change_policy", "param_name": "ssoChangePolicyValue", "static_instance": null, "getter_method": "getSsoChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_branding_policy_changed": {"fq_name": "team_log.EventType.team_branding_policy_changed", "param_name": "teamBrandingPolicyChangedValue", "static_instance": null, "getter_method": "getTeamBrandingPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_extensions_policy_changed": {"fq_name": "team_log.EventType.team_extensions_policy_changed", "param_name": "teamExtensionsPolicyChangedValue", "static_instance": null, "getter_method": "getTeamExtensionsPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_selective_sync_policy_changed": {"fq_name": "team_log.EventType.team_selective_sync_policy_changed", "param_name": "teamSelectiveSyncPolicyChangedValue", "static_instance": null, "getter_method": "getTeamSelectiveSyncPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_sharing_whitelist_subjects_changed": {"fq_name": "team_log.EventType.team_sharing_whitelist_subjects_changed", "param_name": "teamSharingWhitelistSubjectsChangedValue", "static_instance": null, "getter_method": "getTeamSharingWhitelistSubjectsChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_add_exception": {"fq_name": "team_log.EventType.tfa_add_exception", "param_name": "tfaAddExceptionValue", "static_instance": null, "getter_method": "getTfaAddExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_change_policy": {"fq_name": "team_log.EventType.tfa_change_policy", "param_name": "tfaChangePolicyValue", "static_instance": null, "getter_method": "getTfaChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_remove_exception": {"fq_name": "team_log.EventType.tfa_remove_exception", "param_name": "tfaRemoveExceptionValue", "static_instance": null, "getter_method": "getTfaRemoveExceptionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.two_account_change_policy": {"fq_name": "team_log.EventType.two_account_change_policy", "param_name": "twoAccountChangePolicyValue", "static_instance": null, "getter_method": "getTwoAccountChangePolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.viewer_info_policy_changed": {"fq_name": "team_log.EventType.viewer_info_policy_changed", "param_name": "viewerInfoPolicyChangedValue", "static_instance": null, "getter_method": "getViewerInfoPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.watermarking_policy_changed": {"fq_name": "team_log.EventType.watermarking_policy_changed", "param_name": "watermarkingPolicyChangedValue", "static_instance": null, "getter_method": "getWatermarkingPolicyChangedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.web_sessions_change_active_session_limit": {"fq_name": "team_log.EventType.web_sessions_change_active_session_limit", "param_name": "webSessionsChangeActiveSessionLimitValue", "static_instance": null, "getter_method": "getWebSessionsChangeActiveSessionLimitValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.web_sessions_change_fixed_length_policy": {"fq_name": "team_log.EventType.web_sessions_change_fixed_length_policy", "param_name": "webSessionsChangeFixedLengthPolicyValue", "static_instance": null, "getter_method": "getWebSessionsChangeFixedLengthPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.web_sessions_change_idle_length_policy": {"fq_name": "team_log.EventType.web_sessions_change_idle_length_policy", "param_name": "webSessionsChangeIdleLengthPolicyValue", "static_instance": null, "getter_method": "getWebSessionsChangeIdleLengthPolicyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.data_residency_migration_request_successful": {"fq_name": "team_log.EventType.data_residency_migration_request_successful", "param_name": "dataResidencyMigrationRequestSuccessfulValue", "static_instance": null, "getter_method": "getDataResidencyMigrationRequestSuccessfulValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.data_residency_migration_request_unsuccessful": {"fq_name": "team_log.EventType.data_residency_migration_request_unsuccessful", "param_name": "dataResidencyMigrationRequestUnsuccessfulValue", "static_instance": null, "getter_method": "getDataResidencyMigrationRequestUnsuccessfulValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_from": {"fq_name": "team_log.EventType.team_merge_from", "param_name": "teamMergeFromValue", "static_instance": null, "getter_method": "getTeamMergeFromValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_to": {"fq_name": "team_log.EventType.team_merge_to", "param_name": "teamMergeToValue", "static_instance": null, "getter_method": "getTeamMergeToValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_add_background": {"fq_name": "team_log.EventType.team_profile_add_background", "param_name": "teamProfileAddBackgroundValue", "static_instance": null, "getter_method": "getTeamProfileAddBackgroundValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_add_logo": {"fq_name": "team_log.EventType.team_profile_add_logo", "param_name": "teamProfileAddLogoValue", "static_instance": null, "getter_method": "getTeamProfileAddLogoValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_change_background": {"fq_name": "team_log.EventType.team_profile_change_background", "param_name": "teamProfileChangeBackgroundValue", "static_instance": null, "getter_method": "getTeamProfileChangeBackgroundValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_change_default_language": {"fq_name": "team_log.EventType.team_profile_change_default_language", "param_name": "teamProfileChangeDefaultLanguageValue", "static_instance": null, "getter_method": "getTeamProfileChangeDefaultLanguageValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_change_logo": {"fq_name": "team_log.EventType.team_profile_change_logo", "param_name": "teamProfileChangeLogoValue", "static_instance": null, "getter_method": "getTeamProfileChangeLogoValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_change_name": {"fq_name": "team_log.EventType.team_profile_change_name", "param_name": "teamProfileChangeNameValue", "static_instance": null, "getter_method": "getTeamProfileChangeNameValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_remove_background": {"fq_name": "team_log.EventType.team_profile_remove_background", "param_name": "teamProfileRemoveBackgroundValue", "static_instance": null, "getter_method": "getTeamProfileRemoveBackgroundValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_profile_remove_logo": {"fq_name": "team_log.EventType.team_profile_remove_logo", "param_name": "teamProfileRemoveLogoValue", "static_instance": null, "getter_method": "getTeamProfileRemoveLogoValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_add_backup_phone": {"fq_name": "team_log.EventType.tfa_add_backup_phone", "param_name": "tfaAddBackupPhoneValue", "static_instance": null, "getter_method": "getTfaAddBackupPhoneValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_add_security_key": {"fq_name": "team_log.EventType.tfa_add_security_key", "param_name": "tfaAddSecurityKeyValue", "static_instance": null, "getter_method": "getTfaAddSecurityKeyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_change_backup_phone": {"fq_name": "team_log.EventType.tfa_change_backup_phone", "param_name": "tfaChangeBackupPhoneValue", "static_instance": null, "getter_method": "getTfaChangeBackupPhoneValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_change_status": {"fq_name": "team_log.EventType.tfa_change_status", "param_name": "tfaChangeStatusValue", "static_instance": null, "getter_method": "getTfaChangeStatusValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_remove_backup_phone": {"fq_name": "team_log.EventType.tfa_remove_backup_phone", "param_name": "tfaRemoveBackupPhoneValue", "static_instance": null, "getter_method": "getTfaRemoveBackupPhoneValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_remove_security_key": {"fq_name": "team_log.EventType.tfa_remove_security_key", "param_name": "tfaRemoveSecurityKeyValue", "static_instance": null, "getter_method": "getTfaRemoveSecurityKeyValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.tfa_reset": {"fq_name": "team_log.EventType.tfa_reset", "param_name": "tfaResetValue", "static_instance": null, "getter_method": "getTfaResetValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.changed_enterprise_admin_role": {"fq_name": "team_log.EventType.changed_enterprise_admin_role", "param_name": "changedEnterpriseAdminRoleValue", "static_instance": null, "getter_method": "getChangedEnterpriseAdminRoleValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.changed_enterprise_connected_team_status": {"fq_name": "team_log.EventType.changed_enterprise_connected_team_status", "param_name": "changedEnterpriseConnectedTeamStatusValue", "static_instance": null, "getter_method": "getChangedEnterpriseConnectedTeamStatusValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.ended_enterprise_admin_session": {"fq_name": "team_log.EventType.ended_enterprise_admin_session", "param_name": "endedEnterpriseAdminSessionValue", "static_instance": null, "getter_method": "getEndedEnterpriseAdminSessionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.ended_enterprise_admin_session_deprecated": {"fq_name": "team_log.EventType.ended_enterprise_admin_session_deprecated", "param_name": "endedEnterpriseAdminSessionDeprecatedValue", "static_instance": null, "getter_method": "getEndedEnterpriseAdminSessionDeprecatedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.enterprise_settings_locking": {"fq_name": "team_log.EventType.enterprise_settings_locking", "param_name": "enterpriseSettingsLockingValue", "static_instance": null, "getter_method": "getEnterpriseSettingsLockingValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.guest_admin_change_status": {"fq_name": "team_log.EventType.guest_admin_change_status", "param_name": "guestAdminChangeStatusValue", "static_instance": null, "getter_method": "getGuestAdminChangeStatusValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.started_enterprise_admin_session": {"fq_name": "team_log.EventType.started_enterprise_admin_session", "param_name": "startedEnterpriseAdminSessionValue", "static_instance": null, "getter_method": "getStartedEnterpriseAdminSessionValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_accepted": {"fq_name": "team_log.EventType.team_merge_request_accepted", "param_name": "teamMergeRequestAcceptedValue", "static_instance": null, "getter_method": "getTeamMergeRequestAcceptedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_accepted_shown_to_primary_team": {"fq_name": "team_log.EventType.team_merge_request_accepted_shown_to_primary_team", "param_name": "teamMergeRequestAcceptedShownToPrimaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestAcceptedShownToPrimaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_accepted_shown_to_secondary_team": {"fq_name": "team_log.EventType.team_merge_request_accepted_shown_to_secondary_team", "param_name": "teamMergeRequestAcceptedShownToSecondaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestAcceptedShownToSecondaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_auto_canceled": {"fq_name": "team_log.EventType.team_merge_request_auto_canceled", "param_name": "teamMergeRequestAutoCanceledValue", "static_instance": null, "getter_method": "getTeamMergeRequestAutoCanceledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_canceled": {"fq_name": "team_log.EventType.team_merge_request_canceled", "param_name": "teamMergeRequestCanceledValue", "static_instance": null, "getter_method": "getTeamMergeRequestCanceledValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_canceled_shown_to_primary_team": {"fq_name": "team_log.EventType.team_merge_request_canceled_shown_to_primary_team", "param_name": "teamMergeRequestCanceledShownToPrimaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestCanceledShownToPrimaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_canceled_shown_to_secondary_team": {"fq_name": "team_log.EventType.team_merge_request_canceled_shown_to_secondary_team", "param_name": "teamMergeRequestCanceledShownToSecondaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestCanceledShownToSecondaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_expired": {"fq_name": "team_log.EventType.team_merge_request_expired", "param_name": "teamMergeRequestExpiredValue", "static_instance": null, "getter_method": "getTeamMergeRequestExpiredValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_expired_shown_to_primary_team": {"fq_name": "team_log.EventType.team_merge_request_expired_shown_to_primary_team", "param_name": "teamMergeRequestExpiredShownToPrimaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestExpiredShownToPrimaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_expired_shown_to_secondary_team": {"fq_name": "team_log.EventType.team_merge_request_expired_shown_to_secondary_team", "param_name": "teamMergeRequestExpiredShownToSecondaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestExpiredShownToSecondaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_rejected_shown_to_primary_team": {"fq_name": "team_log.EventType.team_merge_request_rejected_shown_to_primary_team", "param_name": "teamMergeRequestRejectedShownToPrimaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestRejectedShownToPrimaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_rejected_shown_to_secondary_team": {"fq_name": "team_log.EventType.team_merge_request_rejected_shown_to_secondary_team", "param_name": "teamMergeRequestRejectedShownToSecondaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestRejectedShownToSecondaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_reminder": {"fq_name": "team_log.EventType.team_merge_request_reminder", "param_name": "teamMergeRequestReminderValue", "static_instance": null, "getter_method": "getTeamMergeRequestReminderValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_reminder_shown_to_primary_team": {"fq_name": "team_log.EventType.team_merge_request_reminder_shown_to_primary_team", "param_name": "teamMergeRequestReminderShownToPrimaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestReminderShownToPrimaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_reminder_shown_to_secondary_team": {"fq_name": "team_log.EventType.team_merge_request_reminder_shown_to_secondary_team", "param_name": "teamMergeRequestReminderShownToSecondaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestReminderShownToSecondaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_revoked": {"fq_name": "team_log.EventType.team_merge_request_revoked", "param_name": "teamMergeRequestRevokedValue", "static_instance": null, "getter_method": "getTeamMergeRequestRevokedValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_sent_shown_to_primary_team": {"fq_name": "team_log.EventType.team_merge_request_sent_shown_to_primary_team", "param_name": "teamMergeRequestSentShownToPrimaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestSentShownToPrimaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.team_merge_request_sent_shown_to_secondary_team": {"fq_name": "team_log.EventType.team_merge_request_sent_shown_to_secondary_team", "param_name": "teamMergeRequestSentShownToSecondaryTeamValue", "static_instance": null, "getter_method": "getTeamMergeRequestSentShownToSecondaryTeamValue", "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventType.other": {"fq_name": "team_log.EventType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.EventType", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.admin_alerting_alert_state_changed": {"fq_name": "team_log.EventTypeArg.admin_alerting_alert_state_changed", "param_name": "adminAlertingAlertStateChangedValue", "static_instance": "ADMIN_ALERTING_ALERT_STATE_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.admin_alerting_changed_alert_config": {"fq_name": "team_log.EventTypeArg.admin_alerting_changed_alert_config", "param_name": "adminAlertingChangedAlertConfigValue", "static_instance": "ADMIN_ALERTING_CHANGED_ALERT_CONFIG", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.admin_alerting_triggered_alert": {"fq_name": "team_log.EventTypeArg.admin_alerting_triggered_alert", "param_name": "adminAlertingTriggeredAlertValue", "static_instance": "ADMIN_ALERTING_TRIGGERED_ALERT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.ransomware_restore_process_completed": {"fq_name": "team_log.EventTypeArg.ransomware_restore_process_completed", "param_name": "ransomwareRestoreProcessCompletedValue", "static_instance": "RANSOMWARE_RESTORE_PROCESS_COMPLETED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.ransomware_restore_process_started": {"fq_name": "team_log.EventTypeArg.ransomware_restore_process_started", "param_name": "ransomwareRestoreProcessStartedValue", "static_instance": "RANSOMWARE_RESTORE_PROCESS_STARTED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.app_blocked_by_permissions": {"fq_name": "team_log.EventTypeArg.app_blocked_by_permissions", "param_name": "appBlockedByPermissionsValue", "static_instance": "APP_BLOCKED_BY_PERMISSIONS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.app_link_team": {"fq_name": "team_log.EventTypeArg.app_link_team", "param_name": "appLinkTeamValue", "static_instance": "APP_LINK_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.app_link_user": {"fq_name": "team_log.EventTypeArg.app_link_user", "param_name": "appLinkUserValue", "static_instance": "APP_LINK_USER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.app_unlink_team": {"fq_name": "team_log.EventTypeArg.app_unlink_team", "param_name": "appUnlinkTeamValue", "static_instance": "APP_UNLINK_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.app_unlink_user": {"fq_name": "team_log.EventTypeArg.app_unlink_user", "param_name": "appUnlinkUserValue", "static_instance": "APP_UNLINK_USER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.integration_connected": {"fq_name": "team_log.EventTypeArg.integration_connected", "param_name": "integrationConnectedValue", "static_instance": "INTEGRATION_CONNECTED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.integration_disconnected": {"fq_name": "team_log.EventTypeArg.integration_disconnected", "param_name": "integrationDisconnectedValue", "static_instance": "INTEGRATION_DISCONNECTED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_add_comment": {"fq_name": "team_log.EventTypeArg.file_add_comment", "param_name": "fileAddCommentValue", "static_instance": "FILE_ADD_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_change_comment_subscription": {"fq_name": "team_log.EventTypeArg.file_change_comment_subscription", "param_name": "fileChangeCommentSubscriptionValue", "static_instance": "FILE_CHANGE_COMMENT_SUBSCRIPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_delete_comment": {"fq_name": "team_log.EventTypeArg.file_delete_comment", "param_name": "fileDeleteCommentValue", "static_instance": "FILE_DELETE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_edit_comment": {"fq_name": "team_log.EventTypeArg.file_edit_comment", "param_name": "fileEditCommentValue", "static_instance": "FILE_EDIT_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_like_comment": {"fq_name": "team_log.EventTypeArg.file_like_comment", "param_name": "fileLikeCommentValue", "static_instance": "FILE_LIKE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_resolve_comment": {"fq_name": "team_log.EventTypeArg.file_resolve_comment", "param_name": "fileResolveCommentValue", "static_instance": "FILE_RESOLVE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_unlike_comment": {"fq_name": "team_log.EventTypeArg.file_unlike_comment", "param_name": "fileUnlikeCommentValue", "static_instance": "FILE_UNLIKE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_unresolve_comment": {"fq_name": "team_log.EventTypeArg.file_unresolve_comment", "param_name": "fileUnresolveCommentValue", "static_instance": "FILE_UNRESOLVE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_add_folders": {"fq_name": "team_log.EventTypeArg.governance_policy_add_folders", "param_name": "governancePolicyAddFoldersValue", "static_instance": "GOVERNANCE_POLICY_ADD_FOLDERS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_add_folder_failed": {"fq_name": "team_log.EventTypeArg.governance_policy_add_folder_failed", "param_name": "governancePolicyAddFolderFailedValue", "static_instance": "GOVERNANCE_POLICY_ADD_FOLDER_FAILED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_content_disposed": {"fq_name": "team_log.EventTypeArg.governance_policy_content_disposed", "param_name": "governancePolicyContentDisposedValue", "static_instance": "GOVERNANCE_POLICY_CONTENT_DISPOSED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_create": {"fq_name": "team_log.EventTypeArg.governance_policy_create", "param_name": "governancePolicyCreateValue", "static_instance": "GOVERNANCE_POLICY_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_delete": {"fq_name": "team_log.EventTypeArg.governance_policy_delete", "param_name": "governancePolicyDeleteValue", "static_instance": "GOVERNANCE_POLICY_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_edit_details": {"fq_name": "team_log.EventTypeArg.governance_policy_edit_details", "param_name": "governancePolicyEditDetailsValue", "static_instance": "GOVERNANCE_POLICY_EDIT_DETAILS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_edit_duration": {"fq_name": "team_log.EventTypeArg.governance_policy_edit_duration", "param_name": "governancePolicyEditDurationValue", "static_instance": "GOVERNANCE_POLICY_EDIT_DURATION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_export_created": {"fq_name": "team_log.EventTypeArg.governance_policy_export_created", "param_name": "governancePolicyExportCreatedValue", "static_instance": "GOVERNANCE_POLICY_EXPORT_CREATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_export_removed": {"fq_name": "team_log.EventTypeArg.governance_policy_export_removed", "param_name": "governancePolicyExportRemovedValue", "static_instance": "GOVERNANCE_POLICY_EXPORT_REMOVED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_remove_folders": {"fq_name": "team_log.EventTypeArg.governance_policy_remove_folders", "param_name": "governancePolicyRemoveFoldersValue", "static_instance": "GOVERNANCE_POLICY_REMOVE_FOLDERS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_report_created": {"fq_name": "team_log.EventTypeArg.governance_policy_report_created", "param_name": "governancePolicyReportCreatedValue", "static_instance": "GOVERNANCE_POLICY_REPORT_CREATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.governance_policy_zip_part_downloaded": {"fq_name": "team_log.EventTypeArg.governance_policy_zip_part_downloaded", "param_name": "governancePolicyZipPartDownloadedValue", "static_instance": "GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_activate_a_hold": {"fq_name": "team_log.EventTypeArg.legal_holds_activate_a_hold", "param_name": "legalHoldsActivateAHoldValue", "static_instance": "LEGAL_HOLDS_ACTIVATE_A_HOLD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_add_members": {"fq_name": "team_log.EventTypeArg.legal_holds_add_members", "param_name": "legalHoldsAddMembersValue", "static_instance": "LEGAL_HOLDS_ADD_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_change_hold_details": {"fq_name": "team_log.EventTypeArg.legal_holds_change_hold_details", "param_name": "legalHoldsChangeHoldDetailsValue", "static_instance": "LEGAL_HOLDS_CHANGE_HOLD_DETAILS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_change_hold_name": {"fq_name": "team_log.EventTypeArg.legal_holds_change_hold_name", "param_name": "legalHoldsChangeHoldNameValue", "static_instance": "LEGAL_HOLDS_CHANGE_HOLD_NAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_export_a_hold": {"fq_name": "team_log.EventTypeArg.legal_holds_export_a_hold", "param_name": "legalHoldsExportAHoldValue", "static_instance": "LEGAL_HOLDS_EXPORT_A_HOLD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_export_cancelled": {"fq_name": "team_log.EventTypeArg.legal_holds_export_cancelled", "param_name": "legalHoldsExportCancelledValue", "static_instance": "LEGAL_HOLDS_EXPORT_CANCELLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_export_downloaded": {"fq_name": "team_log.EventTypeArg.legal_holds_export_downloaded", "param_name": "legalHoldsExportDownloadedValue", "static_instance": "LEGAL_HOLDS_EXPORT_DOWNLOADED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_export_removed": {"fq_name": "team_log.EventTypeArg.legal_holds_export_removed", "param_name": "legalHoldsExportRemovedValue", "static_instance": "LEGAL_HOLDS_EXPORT_REMOVED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_release_a_hold": {"fq_name": "team_log.EventTypeArg.legal_holds_release_a_hold", "param_name": "legalHoldsReleaseAHoldValue", "static_instance": "LEGAL_HOLDS_RELEASE_A_HOLD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_remove_members": {"fq_name": "team_log.EventTypeArg.legal_holds_remove_members", "param_name": "legalHoldsRemoveMembersValue", "static_instance": "LEGAL_HOLDS_REMOVE_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.legal_holds_report_a_hold": {"fq_name": "team_log.EventTypeArg.legal_holds_report_a_hold", "param_name": "legalHoldsReportAHoldValue", "static_instance": "LEGAL_HOLDS_REPORT_A_HOLD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_change_ip_desktop": {"fq_name": "team_log.EventTypeArg.device_change_ip_desktop", "param_name": "deviceChangeIpDesktopValue", "static_instance": "DEVICE_CHANGE_IP_DESKTOP", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_change_ip_mobile": {"fq_name": "team_log.EventTypeArg.device_change_ip_mobile", "param_name": "deviceChangeIpMobileValue", "static_instance": "DEVICE_CHANGE_IP_MOBILE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_change_ip_web": {"fq_name": "team_log.EventTypeArg.device_change_ip_web", "param_name": "deviceChangeIpWebValue", "static_instance": "DEVICE_CHANGE_IP_WEB", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_delete_on_unlink_fail": {"fq_name": "team_log.EventTypeArg.device_delete_on_unlink_fail", "param_name": "deviceDeleteOnUnlinkFailValue", "static_instance": "DEVICE_DELETE_ON_UNLINK_FAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_delete_on_unlink_success": {"fq_name": "team_log.EventTypeArg.device_delete_on_unlink_success", "param_name": "deviceDeleteOnUnlinkSuccessValue", "static_instance": "DEVICE_DELETE_ON_UNLINK_SUCCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_link_fail": {"fq_name": "team_log.EventTypeArg.device_link_fail", "param_name": "deviceLinkFailValue", "static_instance": "DEVICE_LINK_FAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_link_success": {"fq_name": "team_log.EventTypeArg.device_link_success", "param_name": "deviceLinkSuccessValue", "static_instance": "DEVICE_LINK_SUCCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_management_disabled": {"fq_name": "team_log.EventTypeArg.device_management_disabled", "param_name": "deviceManagementDisabledValue", "static_instance": "DEVICE_MANAGEMENT_DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_management_enabled": {"fq_name": "team_log.EventTypeArg.device_management_enabled", "param_name": "deviceManagementEnabledValue", "static_instance": "DEVICE_MANAGEMENT_ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_sync_backup_status_changed": {"fq_name": "team_log.EventTypeArg.device_sync_backup_status_changed", "param_name": "deviceSyncBackupStatusChangedValue", "static_instance": "DEVICE_SYNC_BACKUP_STATUS_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_unlink": {"fq_name": "team_log.EventTypeArg.device_unlink", "param_name": "deviceUnlinkValue", "static_instance": "DEVICE_UNLINK", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.dropbox_passwords_exported": {"fq_name": "team_log.EventTypeArg.dropbox_passwords_exported", "param_name": "dropboxPasswordsExportedValue", "static_instance": "DROPBOX_PASSWORDS_EXPORTED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.dropbox_passwords_new_device_enrolled": {"fq_name": "team_log.EventTypeArg.dropbox_passwords_new_device_enrolled", "param_name": "dropboxPasswordsNewDeviceEnrolledValue", "static_instance": "DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.emm_refresh_auth_token": {"fq_name": "team_log.EventTypeArg.emm_refresh_auth_token", "param_name": "emmRefreshAuthTokenValue", "static_instance": "EMM_REFRESH_AUTH_TOKEN", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.external_drive_backup_eligibility_status_checked": {"fq_name": "team_log.EventTypeArg.external_drive_backup_eligibility_status_checked", "param_name": "externalDriveBackupEligibilityStatusCheckedValue", "static_instance": "EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.external_drive_backup_status_changed": {"fq_name": "team_log.EventTypeArg.external_drive_backup_status_changed", "param_name": "externalDriveBackupStatusChangedValue", "static_instance": "EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.account_capture_change_availability": {"fq_name": "team_log.EventTypeArg.account_capture_change_availability", "param_name": "accountCaptureChangeAvailabilityValue", "static_instance": "ACCOUNT_CAPTURE_CHANGE_AVAILABILITY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.account_capture_migrate_account": {"fq_name": "team_log.EventTypeArg.account_capture_migrate_account", "param_name": "accountCaptureMigrateAccountValue", "static_instance": "ACCOUNT_CAPTURE_MIGRATE_ACCOUNT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.account_capture_notification_emails_sent": {"fq_name": "team_log.EventTypeArg.account_capture_notification_emails_sent", "param_name": "accountCaptureNotificationEmailsSentValue", "static_instance": "ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.account_capture_relinquish_account": {"fq_name": "team_log.EventTypeArg.account_capture_relinquish_account", "param_name": "accountCaptureRelinquishAccountValue", "static_instance": "ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.disabled_domain_invites": {"fq_name": "team_log.EventTypeArg.disabled_domain_invites", "param_name": "disabledDomainInvitesValue", "static_instance": "DISABLED_DOMAIN_INVITES", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_invites_approve_request_to_join_team": {"fq_name": "team_log.EventTypeArg.domain_invites_approve_request_to_join_team", "param_name": "domainInvitesApproveRequestToJoinTeamValue", "static_instance": "DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_invites_decline_request_to_join_team": {"fq_name": "team_log.EventTypeArg.domain_invites_decline_request_to_join_team", "param_name": "domainInvitesDeclineRequestToJoinTeamValue", "static_instance": "DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_invites_email_existing_users": {"fq_name": "team_log.EventTypeArg.domain_invites_email_existing_users", "param_name": "domainInvitesEmailExistingUsersValue", "static_instance": "DOMAIN_INVITES_EMAIL_EXISTING_USERS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_invites_request_to_join_team": {"fq_name": "team_log.EventTypeArg.domain_invites_request_to_join_team", "param_name": "domainInvitesRequestToJoinTeamValue", "static_instance": "DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_invites_set_invite_new_user_pref_to_no": {"fq_name": "team_log.EventTypeArg.domain_invites_set_invite_new_user_pref_to_no", "param_name": "domainInvitesSetInviteNewUserPrefToNoValue", "static_instance": "DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_invites_set_invite_new_user_pref_to_yes": {"fq_name": "team_log.EventTypeArg.domain_invites_set_invite_new_user_pref_to_yes", "param_name": "domainInvitesSetInviteNewUserPrefToYesValue", "static_instance": "DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_verification_add_domain_fail": {"fq_name": "team_log.EventTypeArg.domain_verification_add_domain_fail", "param_name": "domainVerificationAddDomainFailValue", "static_instance": "DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_verification_add_domain_success": {"fq_name": "team_log.EventTypeArg.domain_verification_add_domain_success", "param_name": "domainVerificationAddDomainSuccessValue", "static_instance": "DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.domain_verification_remove_domain": {"fq_name": "team_log.EventTypeArg.domain_verification_remove_domain", "param_name": "domainVerificationRemoveDomainValue", "static_instance": "DOMAIN_VERIFICATION_REMOVE_DOMAIN", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.enabled_domain_invites": {"fq_name": "team_log.EventTypeArg.enabled_domain_invites", "param_name": "enabledDomainInvitesValue", "static_instance": "ENABLED_DOMAIN_INVITES", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_encryption_key_cancel_key_deletion": {"fq_name": "team_log.EventTypeArg.team_encryption_key_cancel_key_deletion", "param_name": "teamEncryptionKeyCancelKeyDeletionValue", "static_instance": "TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_encryption_key_create_key": {"fq_name": "team_log.EventTypeArg.team_encryption_key_create_key", "param_name": "teamEncryptionKeyCreateKeyValue", "static_instance": "TEAM_ENCRYPTION_KEY_CREATE_KEY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_encryption_key_delete_key": {"fq_name": "team_log.EventTypeArg.team_encryption_key_delete_key", "param_name": "teamEncryptionKeyDeleteKeyValue", "static_instance": "TEAM_ENCRYPTION_KEY_DELETE_KEY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_encryption_key_disable_key": {"fq_name": "team_log.EventTypeArg.team_encryption_key_disable_key", "param_name": "teamEncryptionKeyDisableKeyValue", "static_instance": "TEAM_ENCRYPTION_KEY_DISABLE_KEY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_encryption_key_enable_key": {"fq_name": "team_log.EventTypeArg.team_encryption_key_enable_key", "param_name": "teamEncryptionKeyEnableKeyValue", "static_instance": "TEAM_ENCRYPTION_KEY_ENABLE_KEY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_encryption_key_rotate_key": {"fq_name": "team_log.EventTypeArg.team_encryption_key_rotate_key", "param_name": "teamEncryptionKeyRotateKeyValue", "static_instance": "TEAM_ENCRYPTION_KEY_ROTATE_KEY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_encryption_key_schedule_key_deletion": {"fq_name": "team_log.EventTypeArg.team_encryption_key_schedule_key_deletion", "param_name": "teamEncryptionKeyScheduleKeyDeletionValue", "static_instance": "TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.apply_naming_convention": {"fq_name": "team_log.EventTypeArg.apply_naming_convention", "param_name": "applyNamingConventionValue", "static_instance": "APPLY_NAMING_CONVENTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.create_folder": {"fq_name": "team_log.EventTypeArg.create_folder", "param_name": "createFolderValue", "static_instance": "CREATE_FOLDER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_add": {"fq_name": "team_log.EventTypeArg.file_add", "param_name": "fileAddValue", "static_instance": "FILE_ADD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_add_from_automation": {"fq_name": "team_log.EventTypeArg.file_add_from_automation", "param_name": "fileAddFromAutomationValue", "static_instance": "FILE_ADD_FROM_AUTOMATION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_copy": {"fq_name": "team_log.EventTypeArg.file_copy", "param_name": "fileCopyValue", "static_instance": "FILE_COPY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_delete": {"fq_name": "team_log.EventTypeArg.file_delete", "param_name": "fileDeleteValue", "static_instance": "FILE_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_download": {"fq_name": "team_log.EventTypeArg.file_download", "param_name": "fileDownloadValue", "static_instance": "FILE_DOWNLOAD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_edit": {"fq_name": "team_log.EventTypeArg.file_edit", "param_name": "fileEditValue", "static_instance": "FILE_EDIT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_get_copy_reference": {"fq_name": "team_log.EventTypeArg.file_get_copy_reference", "param_name": "fileGetCopyReferenceValue", "static_instance": "FILE_GET_COPY_REFERENCE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_locking_lock_status_changed": {"fq_name": "team_log.EventTypeArg.file_locking_lock_status_changed", "param_name": "fileLockingLockStatusChangedValue", "static_instance": "FILE_LOCKING_LOCK_STATUS_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_move": {"fq_name": "team_log.EventTypeArg.file_move", "param_name": "fileMoveValue", "static_instance": "FILE_MOVE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_permanently_delete": {"fq_name": "team_log.EventTypeArg.file_permanently_delete", "param_name": "filePermanentlyDeleteValue", "static_instance": "FILE_PERMANENTLY_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_preview": {"fq_name": "team_log.EventTypeArg.file_preview", "param_name": "filePreviewValue", "static_instance": "FILE_PREVIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_rename": {"fq_name": "team_log.EventTypeArg.file_rename", "param_name": "fileRenameValue", "static_instance": "FILE_RENAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_restore": {"fq_name": "team_log.EventTypeArg.file_restore", "param_name": "fileRestoreValue", "static_instance": "FILE_RESTORE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_revert": {"fq_name": "team_log.EventTypeArg.file_revert", "param_name": "fileRevertValue", "static_instance": "FILE_REVERT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_rollback_changes": {"fq_name": "team_log.EventTypeArg.file_rollback_changes", "param_name": "fileRollbackChangesValue", "static_instance": "FILE_ROLLBACK_CHANGES", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_save_copy_reference": {"fq_name": "team_log.EventTypeArg.file_save_copy_reference", "param_name": "fileSaveCopyReferenceValue", "static_instance": "FILE_SAVE_COPY_REFERENCE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.folder_overview_description_changed": {"fq_name": "team_log.EventTypeArg.folder_overview_description_changed", "param_name": "folderOverviewDescriptionChangedValue", "static_instance": "FOLDER_OVERVIEW_DESCRIPTION_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.folder_overview_item_pinned": {"fq_name": "team_log.EventTypeArg.folder_overview_item_pinned", "param_name": "folderOverviewItemPinnedValue", "static_instance": "FOLDER_OVERVIEW_ITEM_PINNED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.folder_overview_item_unpinned": {"fq_name": "team_log.EventTypeArg.folder_overview_item_unpinned", "param_name": "folderOverviewItemUnpinnedValue", "static_instance": "FOLDER_OVERVIEW_ITEM_UNPINNED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.object_label_added": {"fq_name": "team_log.EventTypeArg.object_label_added", "param_name": "objectLabelAddedValue", "static_instance": "OBJECT_LABEL_ADDED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.object_label_removed": {"fq_name": "team_log.EventTypeArg.object_label_removed", "param_name": "objectLabelRemovedValue", "static_instance": "OBJECT_LABEL_REMOVED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.object_label_updated_value": {"fq_name": "team_log.EventTypeArg.object_label_updated_value", "param_name": "objectLabelUpdatedValueValue", "static_instance": "OBJECT_LABEL_UPDATED_VALUE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.organize_folder_with_tidy": {"fq_name": "team_log.EventTypeArg.organize_folder_with_tidy", "param_name": "organizeFolderWithTidyValue", "static_instance": "ORGANIZE_FOLDER_WITH_TIDY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.replay_file_delete": {"fq_name": "team_log.EventTypeArg.replay_file_delete", "param_name": "replayFileDeleteValue", "static_instance": "REPLAY_FILE_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.rewind_folder": {"fq_name": "team_log.EventTypeArg.rewind_folder", "param_name": "rewindFolderValue", "static_instance": "REWIND_FOLDER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.undo_naming_convention": {"fq_name": "team_log.EventTypeArg.undo_naming_convention", "param_name": "undoNamingConventionValue", "static_instance": "UNDO_NAMING_CONVENTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.undo_organize_folder_with_tidy": {"fq_name": "team_log.EventTypeArg.undo_organize_folder_with_tidy", "param_name": "undoOrganizeFolderWithTidyValue", "static_instance": "UNDO_ORGANIZE_FOLDER_WITH_TIDY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.user_tags_added": {"fq_name": "team_log.EventTypeArg.user_tags_added", "param_name": "userTagsAddedValue", "static_instance": "USER_TAGS_ADDED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.user_tags_removed": {"fq_name": "team_log.EventTypeArg.user_tags_removed", "param_name": "userTagsRemovedValue", "static_instance": "USER_TAGS_REMOVED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.email_ingest_receive_file": {"fq_name": "team_log.EventTypeArg.email_ingest_receive_file", "param_name": "emailIngestReceiveFileValue", "static_instance": "EMAIL_INGEST_RECEIVE_FILE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_request_change": {"fq_name": "team_log.EventTypeArg.file_request_change", "param_name": "fileRequestChangeValue", "static_instance": "FILE_REQUEST_CHANGE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_request_close": {"fq_name": "team_log.EventTypeArg.file_request_close", "param_name": "fileRequestCloseValue", "static_instance": "FILE_REQUEST_CLOSE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_request_create": {"fq_name": "team_log.EventTypeArg.file_request_create", "param_name": "fileRequestCreateValue", "static_instance": "FILE_REQUEST_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_request_delete": {"fq_name": "team_log.EventTypeArg.file_request_delete", "param_name": "fileRequestDeleteValue", "static_instance": "FILE_REQUEST_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_request_receive_file": {"fq_name": "team_log.EventTypeArg.file_request_receive_file", "param_name": "fileRequestReceiveFileValue", "static_instance": "FILE_REQUEST_RECEIVE_FILE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_add_external_id": {"fq_name": "team_log.EventTypeArg.group_add_external_id", "param_name": "groupAddExternalIdValue", "static_instance": "GROUP_ADD_EXTERNAL_ID", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_add_member": {"fq_name": "team_log.EventTypeArg.group_add_member", "param_name": "groupAddMemberValue", "static_instance": "GROUP_ADD_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_change_external_id": {"fq_name": "team_log.EventTypeArg.group_change_external_id", "param_name": "groupChangeExternalIdValue", "static_instance": "GROUP_CHANGE_EXTERNAL_ID", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_change_management_type": {"fq_name": "team_log.EventTypeArg.group_change_management_type", "param_name": "groupChangeManagementTypeValue", "static_instance": "GROUP_CHANGE_MANAGEMENT_TYPE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_change_member_role": {"fq_name": "team_log.EventTypeArg.group_change_member_role", "param_name": "groupChangeMemberRoleValue", "static_instance": "GROUP_CHANGE_MEMBER_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_create": {"fq_name": "team_log.EventTypeArg.group_create", "param_name": "groupCreateValue", "static_instance": "GROUP_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_delete": {"fq_name": "team_log.EventTypeArg.group_delete", "param_name": "groupDeleteValue", "static_instance": "GROUP_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_description_updated": {"fq_name": "team_log.EventTypeArg.group_description_updated", "param_name": "groupDescriptionUpdatedValue", "static_instance": "GROUP_DESCRIPTION_UPDATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_join_policy_updated": {"fq_name": "team_log.EventTypeArg.group_join_policy_updated", "param_name": "groupJoinPolicyUpdatedValue", "static_instance": "GROUP_JOIN_POLICY_UPDATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_moved": {"fq_name": "team_log.EventTypeArg.group_moved", "param_name": "groupMovedValue", "static_instance": "GROUP_MOVED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_remove_external_id": {"fq_name": "team_log.EventTypeArg.group_remove_external_id", "param_name": "groupRemoveExternalIdValue", "static_instance": "GROUP_REMOVE_EXTERNAL_ID", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_remove_member": {"fq_name": "team_log.EventTypeArg.group_remove_member", "param_name": "groupRemoveMemberValue", "static_instance": "GROUP_REMOVE_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_rename": {"fq_name": "team_log.EventTypeArg.group_rename", "param_name": "groupRenameValue", "static_instance": "GROUP_RENAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.account_lock_or_unlocked": {"fq_name": "team_log.EventTypeArg.account_lock_or_unlocked", "param_name": "accountLockOrUnlockedValue", "static_instance": "ACCOUNT_LOCK_OR_UNLOCKED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.emm_error": {"fq_name": "team_log.EventTypeArg.emm_error", "param_name": "emmErrorValue", "static_instance": "EMM_ERROR", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.guest_admin_signed_in_via_trusted_teams": {"fq_name": "team_log.EventTypeArg.guest_admin_signed_in_via_trusted_teams", "param_name": "guestAdminSignedInViaTrustedTeamsValue", "static_instance": "GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.guest_admin_signed_out_via_trusted_teams": {"fq_name": "team_log.EventTypeArg.guest_admin_signed_out_via_trusted_teams", "param_name": "guestAdminSignedOutViaTrustedTeamsValue", "static_instance": "GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.login_fail": {"fq_name": "team_log.EventTypeArg.login_fail", "param_name": "loginFailValue", "static_instance": "LOGIN_FAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.login_success": {"fq_name": "team_log.EventTypeArg.login_success", "param_name": "loginSuccessValue", "static_instance": "LOGIN_SUCCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.logout": {"fq_name": "team_log.EventTypeArg.logout", "param_name": "logoutValue", "static_instance": "LOGOUT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.reseller_support_session_end": {"fq_name": "team_log.EventTypeArg.reseller_support_session_end", "param_name": "resellerSupportSessionEndValue", "static_instance": "RESELLER_SUPPORT_SESSION_END", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.reseller_support_session_start": {"fq_name": "team_log.EventTypeArg.reseller_support_session_start", "param_name": "resellerSupportSessionStartValue", "static_instance": "RESELLER_SUPPORT_SESSION_START", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sign_in_as_session_end": {"fq_name": "team_log.EventTypeArg.sign_in_as_session_end", "param_name": "signInAsSessionEndValue", "static_instance": "SIGN_IN_AS_SESSION_END", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sign_in_as_session_start": {"fq_name": "team_log.EventTypeArg.sign_in_as_session_start", "param_name": "signInAsSessionStartValue", "static_instance": "SIGN_IN_AS_SESSION_START", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_error": {"fq_name": "team_log.EventTypeArg.sso_error", "param_name": "ssoErrorValue", "static_instance": "SSO_ERROR", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.backup_admin_invitation_sent": {"fq_name": "team_log.EventTypeArg.backup_admin_invitation_sent", "param_name": "backupAdminInvitationSentValue", "static_instance": "BACKUP_ADMIN_INVITATION_SENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.backup_invitation_opened": {"fq_name": "team_log.EventTypeArg.backup_invitation_opened", "param_name": "backupInvitationOpenedValue", "static_instance": "BACKUP_INVITATION_OPENED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.create_team_invite_link": {"fq_name": "team_log.EventTypeArg.create_team_invite_link", "param_name": "createTeamInviteLinkValue", "static_instance": "CREATE_TEAM_INVITE_LINK", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.delete_team_invite_link": {"fq_name": "team_log.EventTypeArg.delete_team_invite_link", "param_name": "deleteTeamInviteLinkValue", "static_instance": "DELETE_TEAM_INVITE_LINK", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_add_external_id": {"fq_name": "team_log.EventTypeArg.member_add_external_id", "param_name": "memberAddExternalIdValue", "static_instance": "MEMBER_ADD_EXTERNAL_ID", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_add_name": {"fq_name": "team_log.EventTypeArg.member_add_name", "param_name": "memberAddNameValue", "static_instance": "MEMBER_ADD_NAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_change_admin_role": {"fq_name": "team_log.EventTypeArg.member_change_admin_role", "param_name": "memberChangeAdminRoleValue", "static_instance": "MEMBER_CHANGE_ADMIN_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_change_email": {"fq_name": "team_log.EventTypeArg.member_change_email", "param_name": "memberChangeEmailValue", "static_instance": "MEMBER_CHANGE_EMAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_change_external_id": {"fq_name": "team_log.EventTypeArg.member_change_external_id", "param_name": "memberChangeExternalIdValue", "static_instance": "MEMBER_CHANGE_EXTERNAL_ID", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_change_membership_type": {"fq_name": "team_log.EventTypeArg.member_change_membership_type", "param_name": "memberChangeMembershipTypeValue", "static_instance": "MEMBER_CHANGE_MEMBERSHIP_TYPE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_change_name": {"fq_name": "team_log.EventTypeArg.member_change_name", "param_name": "memberChangeNameValue", "static_instance": "MEMBER_CHANGE_NAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_change_reseller_role": {"fq_name": "team_log.EventTypeArg.member_change_reseller_role", "param_name": "memberChangeResellerRoleValue", "static_instance": "MEMBER_CHANGE_RESELLER_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_change_status": {"fq_name": "team_log.EventTypeArg.member_change_status", "param_name": "memberChangeStatusValue", "static_instance": "MEMBER_CHANGE_STATUS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_delete_manual_contacts": {"fq_name": "team_log.EventTypeArg.member_delete_manual_contacts", "param_name": "memberDeleteManualContactsValue", "static_instance": "MEMBER_DELETE_MANUAL_CONTACTS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_delete_profile_photo": {"fq_name": "team_log.EventTypeArg.member_delete_profile_photo", "param_name": "memberDeleteProfilePhotoValue", "static_instance": "MEMBER_DELETE_PROFILE_PHOTO", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_permanently_delete_account_contents": {"fq_name": "team_log.EventTypeArg.member_permanently_delete_account_contents", "param_name": "memberPermanentlyDeleteAccountContentsValue", "static_instance": "MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_remove_external_id": {"fq_name": "team_log.EventTypeArg.member_remove_external_id", "param_name": "memberRemoveExternalIdValue", "static_instance": "MEMBER_REMOVE_EXTERNAL_ID", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_set_profile_photo": {"fq_name": "team_log.EventTypeArg.member_set_profile_photo", "param_name": "memberSetProfilePhotoValue", "static_instance": "MEMBER_SET_PROFILE_PHOTO", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_add_custom_quota": {"fq_name": "team_log.EventTypeArg.member_space_limits_add_custom_quota", "param_name": "memberSpaceLimitsAddCustomQuotaValue", "static_instance": "MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_change_custom_quota": {"fq_name": "team_log.EventTypeArg.member_space_limits_change_custom_quota", "param_name": "memberSpaceLimitsChangeCustomQuotaValue", "static_instance": "MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_change_status": {"fq_name": "team_log.EventTypeArg.member_space_limits_change_status", "param_name": "memberSpaceLimitsChangeStatusValue", "static_instance": "MEMBER_SPACE_LIMITS_CHANGE_STATUS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_remove_custom_quota": {"fq_name": "team_log.EventTypeArg.member_space_limits_remove_custom_quota", "param_name": "memberSpaceLimitsRemoveCustomQuotaValue", "static_instance": "MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_suggest": {"fq_name": "team_log.EventTypeArg.member_suggest", "param_name": "memberSuggestValue", "static_instance": "MEMBER_SUGGEST", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_transfer_account_contents": {"fq_name": "team_log.EventTypeArg.member_transfer_account_contents", "param_name": "memberTransferAccountContentsValue", "static_instance": "MEMBER_TRANSFER_ACCOUNT_CONTENTS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.pending_secondary_email_added": {"fq_name": "team_log.EventTypeArg.pending_secondary_email_added", "param_name": "pendingSecondaryEmailAddedValue", "static_instance": "PENDING_SECONDARY_EMAIL_ADDED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.secondary_email_deleted": {"fq_name": "team_log.EventTypeArg.secondary_email_deleted", "param_name": "secondaryEmailDeletedValue", "static_instance": "SECONDARY_EMAIL_DELETED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.secondary_email_verified": {"fq_name": "team_log.EventTypeArg.secondary_email_verified", "param_name": "secondaryEmailVerifiedValue", "static_instance": "SECONDARY_EMAIL_VERIFIED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.secondary_mails_policy_changed": {"fq_name": "team_log.EventTypeArg.secondary_mails_policy_changed", "param_name": "secondaryMailsPolicyChangedValue", "static_instance": "SECONDARY_MAILS_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_add_page": {"fq_name": "team_log.EventTypeArg.binder_add_page", "param_name": "binderAddPageValue", "static_instance": "BINDER_ADD_PAGE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_add_section": {"fq_name": "team_log.EventTypeArg.binder_add_section", "param_name": "binderAddSectionValue", "static_instance": "BINDER_ADD_SECTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_remove_page": {"fq_name": "team_log.EventTypeArg.binder_remove_page", "param_name": "binderRemovePageValue", "static_instance": "BINDER_REMOVE_PAGE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_remove_section": {"fq_name": "team_log.EventTypeArg.binder_remove_section", "param_name": "binderRemoveSectionValue", "static_instance": "BINDER_REMOVE_SECTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_rename_page": {"fq_name": "team_log.EventTypeArg.binder_rename_page", "param_name": "binderRenamePageValue", "static_instance": "BINDER_RENAME_PAGE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_rename_section": {"fq_name": "team_log.EventTypeArg.binder_rename_section", "param_name": "binderRenameSectionValue", "static_instance": "BINDER_RENAME_SECTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_reorder_page": {"fq_name": "team_log.EventTypeArg.binder_reorder_page", "param_name": "binderReorderPageValue", "static_instance": "BINDER_REORDER_PAGE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.binder_reorder_section": {"fq_name": "team_log.EventTypeArg.binder_reorder_section", "param_name": "binderReorderSectionValue", "static_instance": "BINDER_REORDER_SECTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_add_member": {"fq_name": "team_log.EventTypeArg.paper_content_add_member", "param_name": "paperContentAddMemberValue", "static_instance": "PAPER_CONTENT_ADD_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_add_to_folder": {"fq_name": "team_log.EventTypeArg.paper_content_add_to_folder", "param_name": "paperContentAddToFolderValue", "static_instance": "PAPER_CONTENT_ADD_TO_FOLDER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_archive": {"fq_name": "team_log.EventTypeArg.paper_content_archive", "param_name": "paperContentArchiveValue", "static_instance": "PAPER_CONTENT_ARCHIVE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_create": {"fq_name": "team_log.EventTypeArg.paper_content_create", "param_name": "paperContentCreateValue", "static_instance": "PAPER_CONTENT_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_permanently_delete": {"fq_name": "team_log.EventTypeArg.paper_content_permanently_delete", "param_name": "paperContentPermanentlyDeleteValue", "static_instance": "PAPER_CONTENT_PERMANENTLY_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_remove_from_folder": {"fq_name": "team_log.EventTypeArg.paper_content_remove_from_folder", "param_name": "paperContentRemoveFromFolderValue", "static_instance": "PAPER_CONTENT_REMOVE_FROM_FOLDER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_remove_member": {"fq_name": "team_log.EventTypeArg.paper_content_remove_member", "param_name": "paperContentRemoveMemberValue", "static_instance": "PAPER_CONTENT_REMOVE_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_rename": {"fq_name": "team_log.EventTypeArg.paper_content_rename", "param_name": "paperContentRenameValue", "static_instance": "PAPER_CONTENT_RENAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_content_restore": {"fq_name": "team_log.EventTypeArg.paper_content_restore", "param_name": "paperContentRestoreValue", "static_instance": "PAPER_CONTENT_RESTORE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_add_comment": {"fq_name": "team_log.EventTypeArg.paper_doc_add_comment", "param_name": "paperDocAddCommentValue", "static_instance": "PAPER_DOC_ADD_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_change_member_role": {"fq_name": "team_log.EventTypeArg.paper_doc_change_member_role", "param_name": "paperDocChangeMemberRoleValue", "static_instance": "PAPER_DOC_CHANGE_MEMBER_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_change_sharing_policy": {"fq_name": "team_log.EventTypeArg.paper_doc_change_sharing_policy", "param_name": "paperDocChangeSharingPolicyValue", "static_instance": "PAPER_DOC_CHANGE_SHARING_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_change_subscription": {"fq_name": "team_log.EventTypeArg.paper_doc_change_subscription", "param_name": "paperDocChangeSubscriptionValue", "static_instance": "PAPER_DOC_CHANGE_SUBSCRIPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_deleted": {"fq_name": "team_log.EventTypeArg.paper_doc_deleted", "param_name": "paperDocDeletedValue", "static_instance": "PAPER_DOC_DELETED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_delete_comment": {"fq_name": "team_log.EventTypeArg.paper_doc_delete_comment", "param_name": "paperDocDeleteCommentValue", "static_instance": "PAPER_DOC_DELETE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_download": {"fq_name": "team_log.EventTypeArg.paper_doc_download", "param_name": "paperDocDownloadValue", "static_instance": "PAPER_DOC_DOWNLOAD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_edit": {"fq_name": "team_log.EventTypeArg.paper_doc_edit", "param_name": "paperDocEditValue", "static_instance": "PAPER_DOC_EDIT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_edit_comment": {"fq_name": "team_log.EventTypeArg.paper_doc_edit_comment", "param_name": "paperDocEditCommentValue", "static_instance": "PAPER_DOC_EDIT_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_followed": {"fq_name": "team_log.EventTypeArg.paper_doc_followed", "param_name": "paperDocFollowedValue", "static_instance": "PAPER_DOC_FOLLOWED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_mention": {"fq_name": "team_log.EventTypeArg.paper_doc_mention", "param_name": "paperDocMentionValue", "static_instance": "PAPER_DOC_MENTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_ownership_changed": {"fq_name": "team_log.EventTypeArg.paper_doc_ownership_changed", "param_name": "paperDocOwnershipChangedValue", "static_instance": "PAPER_DOC_OWNERSHIP_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_request_access": {"fq_name": "team_log.EventTypeArg.paper_doc_request_access", "param_name": "paperDocRequestAccessValue", "static_instance": "PAPER_DOC_REQUEST_ACCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_resolve_comment": {"fq_name": "team_log.EventTypeArg.paper_doc_resolve_comment", "param_name": "paperDocResolveCommentValue", "static_instance": "PAPER_DOC_RESOLVE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_revert": {"fq_name": "team_log.EventTypeArg.paper_doc_revert", "param_name": "paperDocRevertValue", "static_instance": "PAPER_DOC_REVERT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_slack_share": {"fq_name": "team_log.EventTypeArg.paper_doc_slack_share", "param_name": "paperDocSlackShareValue", "static_instance": "PAPER_DOC_SLACK_SHARE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_team_invite": {"fq_name": "team_log.EventTypeArg.paper_doc_team_invite", "param_name": "paperDocTeamInviteValue", "static_instance": "PAPER_DOC_TEAM_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_trashed": {"fq_name": "team_log.EventTypeArg.paper_doc_trashed", "param_name": "paperDocTrashedValue", "static_instance": "PAPER_DOC_TRASHED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_unresolve_comment": {"fq_name": "team_log.EventTypeArg.paper_doc_unresolve_comment", "param_name": "paperDocUnresolveCommentValue", "static_instance": "PAPER_DOC_UNRESOLVE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_untrashed": {"fq_name": "team_log.EventTypeArg.paper_doc_untrashed", "param_name": "paperDocUntrashedValue", "static_instance": "PAPER_DOC_UNTRASHED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_doc_view": {"fq_name": "team_log.EventTypeArg.paper_doc_view", "param_name": "paperDocViewValue", "static_instance": "PAPER_DOC_VIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_external_view_allow": {"fq_name": "team_log.EventTypeArg.paper_external_view_allow", "param_name": "paperExternalViewAllowValue", "static_instance": "PAPER_EXTERNAL_VIEW_ALLOW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_external_view_default_team": {"fq_name": "team_log.EventTypeArg.paper_external_view_default_team", "param_name": "paperExternalViewDefaultTeamValue", "static_instance": "PAPER_EXTERNAL_VIEW_DEFAULT_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_external_view_forbid": {"fq_name": "team_log.EventTypeArg.paper_external_view_forbid", "param_name": "paperExternalViewForbidValue", "static_instance": "PAPER_EXTERNAL_VIEW_FORBID", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_folder_change_subscription": {"fq_name": "team_log.EventTypeArg.paper_folder_change_subscription", "param_name": "paperFolderChangeSubscriptionValue", "static_instance": "PAPER_FOLDER_CHANGE_SUBSCRIPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_folder_deleted": {"fq_name": "team_log.EventTypeArg.paper_folder_deleted", "param_name": "paperFolderDeletedValue", "static_instance": "PAPER_FOLDER_DELETED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_folder_followed": {"fq_name": "team_log.EventTypeArg.paper_folder_followed", "param_name": "paperFolderFollowedValue", "static_instance": "PAPER_FOLDER_FOLLOWED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_folder_team_invite": {"fq_name": "team_log.EventTypeArg.paper_folder_team_invite", "param_name": "paperFolderTeamInviteValue", "static_instance": "PAPER_FOLDER_TEAM_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_published_link_change_permission": {"fq_name": "team_log.EventTypeArg.paper_published_link_change_permission", "param_name": "paperPublishedLinkChangePermissionValue", "static_instance": "PAPER_PUBLISHED_LINK_CHANGE_PERMISSION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_published_link_create": {"fq_name": "team_log.EventTypeArg.paper_published_link_create", "param_name": "paperPublishedLinkCreateValue", "static_instance": "PAPER_PUBLISHED_LINK_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_published_link_disabled": {"fq_name": "team_log.EventTypeArg.paper_published_link_disabled", "param_name": "paperPublishedLinkDisabledValue", "static_instance": "PAPER_PUBLISHED_LINK_DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_published_link_view": {"fq_name": "team_log.EventTypeArg.paper_published_link_view", "param_name": "paperPublishedLinkViewValue", "static_instance": "PAPER_PUBLISHED_LINK_VIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.password_change": {"fq_name": "team_log.EventTypeArg.password_change", "param_name": "passwordChangeValue", "static_instance": "PASSWORD_CHANGE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.password_reset": {"fq_name": "team_log.EventTypeArg.password_reset", "param_name": "passwordResetValue", "static_instance": "PASSWORD_RESET", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.password_reset_all": {"fq_name": "team_log.EventTypeArg.password_reset_all", "param_name": "passwordResetAllValue", "static_instance": "PASSWORD_RESET_ALL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.classification_create_report": {"fq_name": "team_log.EventTypeArg.classification_create_report", "param_name": "classificationCreateReportValue", "static_instance": "CLASSIFICATION_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.classification_create_report_fail": {"fq_name": "team_log.EventTypeArg.classification_create_report_fail", "param_name": "classificationCreateReportFailValue", "static_instance": "CLASSIFICATION_CREATE_REPORT_FAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.emm_create_exceptions_report": {"fq_name": "team_log.EventTypeArg.emm_create_exceptions_report", "param_name": "emmCreateExceptionsReportValue", "static_instance": "EMM_CREATE_EXCEPTIONS_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.emm_create_usage_report": {"fq_name": "team_log.EventTypeArg.emm_create_usage_report", "param_name": "emmCreateUsageReportValue", "static_instance": "EMM_CREATE_USAGE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.export_members_report": {"fq_name": "team_log.EventTypeArg.export_members_report", "param_name": "exportMembersReportValue", "static_instance": "EXPORT_MEMBERS_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.export_members_report_fail": {"fq_name": "team_log.EventTypeArg.export_members_report_fail", "param_name": "exportMembersReportFailValue", "static_instance": "EXPORT_MEMBERS_REPORT_FAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.external_sharing_create_report": {"fq_name": "team_log.EventTypeArg.external_sharing_create_report", "param_name": "externalSharingCreateReportValue", "static_instance": "EXTERNAL_SHARING_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.external_sharing_report_failed": {"fq_name": "team_log.EventTypeArg.external_sharing_report_failed", "param_name": "externalSharingReportFailedValue", "static_instance": "EXTERNAL_SHARING_REPORT_FAILED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.no_expiration_link_gen_create_report": {"fq_name": "team_log.EventTypeArg.no_expiration_link_gen_create_report", "param_name": "noExpirationLinkGenCreateReportValue", "static_instance": "NO_EXPIRATION_LINK_GEN_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.no_expiration_link_gen_report_failed": {"fq_name": "team_log.EventTypeArg.no_expiration_link_gen_report_failed", "param_name": "noExpirationLinkGenReportFailedValue", "static_instance": "NO_EXPIRATION_LINK_GEN_REPORT_FAILED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.no_password_link_gen_create_report": {"fq_name": "team_log.EventTypeArg.no_password_link_gen_create_report", "param_name": "noPasswordLinkGenCreateReportValue", "static_instance": "NO_PASSWORD_LINK_GEN_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.no_password_link_gen_report_failed": {"fq_name": "team_log.EventTypeArg.no_password_link_gen_report_failed", "param_name": "noPasswordLinkGenReportFailedValue", "static_instance": "NO_PASSWORD_LINK_GEN_REPORT_FAILED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.no_password_link_view_create_report": {"fq_name": "team_log.EventTypeArg.no_password_link_view_create_report", "param_name": "noPasswordLinkViewCreateReportValue", "static_instance": "NO_PASSWORD_LINK_VIEW_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.no_password_link_view_report_failed": {"fq_name": "team_log.EventTypeArg.no_password_link_view_report_failed", "param_name": "noPasswordLinkViewReportFailedValue", "static_instance": "NO_PASSWORD_LINK_VIEW_REPORT_FAILED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.outdated_link_view_create_report": {"fq_name": "team_log.EventTypeArg.outdated_link_view_create_report", "param_name": "outdatedLinkViewCreateReportValue", "static_instance": "OUTDATED_LINK_VIEW_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.outdated_link_view_report_failed": {"fq_name": "team_log.EventTypeArg.outdated_link_view_report_failed", "param_name": "outdatedLinkViewReportFailedValue", "static_instance": "OUTDATED_LINK_VIEW_REPORT_FAILED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_admin_export_start": {"fq_name": "team_log.EventTypeArg.paper_admin_export_start", "param_name": "paperAdminExportStartValue", "static_instance": "PAPER_ADMIN_EXPORT_START", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.ransomware_alert_create_report": {"fq_name": "team_log.EventTypeArg.ransomware_alert_create_report", "param_name": "ransomwareAlertCreateReportValue", "static_instance": "RANSOMWARE_ALERT_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.ransomware_alert_create_report_failed": {"fq_name": "team_log.EventTypeArg.ransomware_alert_create_report_failed", "param_name": "ransomwareAlertCreateReportFailedValue", "static_instance": "RANSOMWARE_ALERT_CREATE_REPORT_FAILED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.smart_sync_create_admin_privilege_report": {"fq_name": "team_log.EventTypeArg.smart_sync_create_admin_privilege_report", "param_name": "smartSyncCreateAdminPrivilegeReportValue", "static_instance": "SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_activity_create_report": {"fq_name": "team_log.EventTypeArg.team_activity_create_report", "param_name": "teamActivityCreateReportValue", "static_instance": "TEAM_ACTIVITY_CREATE_REPORT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_activity_create_report_fail": {"fq_name": "team_log.EventTypeArg.team_activity_create_report_fail", "param_name": "teamActivityCreateReportFailValue", "static_instance": "TEAM_ACTIVITY_CREATE_REPORT_FAIL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.collection_share": {"fq_name": "team_log.EventTypeArg.collection_share", "param_name": "collectionShareValue", "static_instance": "COLLECTION_SHARE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_transfers_file_add": {"fq_name": "team_log.EventTypeArg.file_transfers_file_add", "param_name": "fileTransfersFileAddValue", "static_instance": "FILE_TRANSFERS_FILE_ADD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_transfers_transfer_delete": {"fq_name": "team_log.EventTypeArg.file_transfers_transfer_delete", "param_name": "fileTransfersTransferDeleteValue", "static_instance": "FILE_TRANSFERS_TRANSFER_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_transfers_transfer_download": {"fq_name": "team_log.EventTypeArg.file_transfers_transfer_download", "param_name": "fileTransfersTransferDownloadValue", "static_instance": "FILE_TRANSFERS_TRANSFER_DOWNLOAD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_transfers_transfer_send": {"fq_name": "team_log.EventTypeArg.file_transfers_transfer_send", "param_name": "fileTransfersTransferSendValue", "static_instance": "FILE_TRANSFERS_TRANSFER_SEND", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_transfers_transfer_view": {"fq_name": "team_log.EventTypeArg.file_transfers_transfer_view", "param_name": "fileTransfersTransferViewValue", "static_instance": "FILE_TRANSFERS_TRANSFER_VIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.note_acl_invite_only": {"fq_name": "team_log.EventTypeArg.note_acl_invite_only", "param_name": "noteAclInviteOnlyValue", "static_instance": "NOTE_ACL_INVITE_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.note_acl_link": {"fq_name": "team_log.EventTypeArg.note_acl_link", "param_name": "noteAclLinkValue", "static_instance": "NOTE_ACL_LINK", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.note_acl_team_link": {"fq_name": "team_log.EventTypeArg.note_acl_team_link", "param_name": "noteAclTeamLinkValue", "static_instance": "NOTE_ACL_TEAM_LINK", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.note_shared": {"fq_name": "team_log.EventTypeArg.note_shared", "param_name": "noteSharedValue", "static_instance": "NOTE_SHARED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.note_share_receive": {"fq_name": "team_log.EventTypeArg.note_share_receive", "param_name": "noteShareReceiveValue", "static_instance": "NOTE_SHARE_RECEIVE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.open_note_shared": {"fq_name": "team_log.EventTypeArg.open_note_shared", "param_name": "openNoteSharedValue", "static_instance": "OPEN_NOTE_SHARED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.replay_file_shared_link_created": {"fq_name": "team_log.EventTypeArg.replay_file_shared_link_created", "param_name": "replayFileSharedLinkCreatedValue", "static_instance": "REPLAY_FILE_SHARED_LINK_CREATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.replay_file_shared_link_modified": {"fq_name": "team_log.EventTypeArg.replay_file_shared_link_modified", "param_name": "replayFileSharedLinkModifiedValue", "static_instance": "REPLAY_FILE_SHARED_LINK_MODIFIED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.replay_project_team_add": {"fq_name": "team_log.EventTypeArg.replay_project_team_add", "param_name": "replayProjectTeamAddValue", "static_instance": "REPLAY_PROJECT_TEAM_ADD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.replay_project_team_delete": {"fq_name": "team_log.EventTypeArg.replay_project_team_delete", "param_name": "replayProjectTeamDeleteValue", "static_instance": "REPLAY_PROJECT_TEAM_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_add_group": {"fq_name": "team_log.EventTypeArg.sf_add_group", "param_name": "sfAddGroupValue", "static_instance": "SF_ADD_GROUP", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_allow_non_members_to_view_shared_links": {"fq_name": "team_log.EventTypeArg.sf_allow_non_members_to_view_shared_links", "param_name": "sfAllowNonMembersToViewSharedLinksValue", "static_instance": "SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_external_invite_warn": {"fq_name": "team_log.EventTypeArg.sf_external_invite_warn", "param_name": "sfExternalInviteWarnValue", "static_instance": "SF_EXTERNAL_INVITE_WARN", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_fb_invite": {"fq_name": "team_log.EventTypeArg.sf_fb_invite", "param_name": "sfFbInviteValue", "static_instance": "SF_FB_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_fb_invite_change_role": {"fq_name": "team_log.EventTypeArg.sf_fb_invite_change_role", "param_name": "sfFbInviteChangeRoleValue", "static_instance": "SF_FB_INVITE_CHANGE_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_fb_uninvite": {"fq_name": "team_log.EventTypeArg.sf_fb_uninvite", "param_name": "sfFbUninviteValue", "static_instance": "SF_FB_UNINVITE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_invite_group": {"fq_name": "team_log.EventTypeArg.sf_invite_group", "param_name": "sfInviteGroupValue", "static_instance": "SF_INVITE_GROUP", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_team_grant_access": {"fq_name": "team_log.EventTypeArg.sf_team_grant_access", "param_name": "sfTeamGrantAccessValue", "static_instance": "SF_TEAM_GRANT_ACCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_team_invite": {"fq_name": "team_log.EventTypeArg.sf_team_invite", "param_name": "sfTeamInviteValue", "static_instance": "SF_TEAM_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_team_invite_change_role": {"fq_name": "team_log.EventTypeArg.sf_team_invite_change_role", "param_name": "sfTeamInviteChangeRoleValue", "static_instance": "SF_TEAM_INVITE_CHANGE_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_team_join": {"fq_name": "team_log.EventTypeArg.sf_team_join", "param_name": "sfTeamJoinValue", "static_instance": "SF_TEAM_JOIN", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_team_join_from_oob_link": {"fq_name": "team_log.EventTypeArg.sf_team_join_from_oob_link", "param_name": "sfTeamJoinFromOobLinkValue", "static_instance": "SF_TEAM_JOIN_FROM_OOB_LINK", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sf_team_uninvite": {"fq_name": "team_log.EventTypeArg.sf_team_uninvite", "param_name": "sfTeamUninviteValue", "static_instance": "SF_TEAM_UNINVITE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_add_invitees": {"fq_name": "team_log.EventTypeArg.shared_content_add_invitees", "param_name": "sharedContentAddInviteesValue", "static_instance": "SHARED_CONTENT_ADD_INVITEES", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_add_link_expiry": {"fq_name": "team_log.EventTypeArg.shared_content_add_link_expiry", "param_name": "sharedContentAddLinkExpiryValue", "static_instance": "SHARED_CONTENT_ADD_LINK_EXPIRY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_add_link_password": {"fq_name": "team_log.EventTypeArg.shared_content_add_link_password", "param_name": "sharedContentAddLinkPasswordValue", "static_instance": "SHARED_CONTENT_ADD_LINK_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_add_member": {"fq_name": "team_log.EventTypeArg.shared_content_add_member", "param_name": "sharedContentAddMemberValue", "static_instance": "SHARED_CONTENT_ADD_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_change_downloads_policy": {"fq_name": "team_log.EventTypeArg.shared_content_change_downloads_policy", "param_name": "sharedContentChangeDownloadsPolicyValue", "static_instance": "SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_change_invitee_role": {"fq_name": "team_log.EventTypeArg.shared_content_change_invitee_role", "param_name": "sharedContentChangeInviteeRoleValue", "static_instance": "SHARED_CONTENT_CHANGE_INVITEE_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_change_link_audience": {"fq_name": "team_log.EventTypeArg.shared_content_change_link_audience", "param_name": "sharedContentChangeLinkAudienceValue", "static_instance": "SHARED_CONTENT_CHANGE_LINK_AUDIENCE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_change_link_expiry": {"fq_name": "team_log.EventTypeArg.shared_content_change_link_expiry", "param_name": "sharedContentChangeLinkExpiryValue", "static_instance": "SHARED_CONTENT_CHANGE_LINK_EXPIRY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_change_link_password": {"fq_name": "team_log.EventTypeArg.shared_content_change_link_password", "param_name": "sharedContentChangeLinkPasswordValue", "static_instance": "SHARED_CONTENT_CHANGE_LINK_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_change_member_role": {"fq_name": "team_log.EventTypeArg.shared_content_change_member_role", "param_name": "sharedContentChangeMemberRoleValue", "static_instance": "SHARED_CONTENT_CHANGE_MEMBER_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_change_viewer_info_policy": {"fq_name": "team_log.EventTypeArg.shared_content_change_viewer_info_policy", "param_name": "sharedContentChangeViewerInfoPolicyValue", "static_instance": "SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_claim_invitation": {"fq_name": "team_log.EventTypeArg.shared_content_claim_invitation", "param_name": "sharedContentClaimInvitationValue", "static_instance": "SHARED_CONTENT_CLAIM_INVITATION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_copy": {"fq_name": "team_log.EventTypeArg.shared_content_copy", "param_name": "sharedContentCopyValue", "static_instance": "SHARED_CONTENT_COPY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_download": {"fq_name": "team_log.EventTypeArg.shared_content_download", "param_name": "sharedContentDownloadValue", "static_instance": "SHARED_CONTENT_DOWNLOAD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_relinquish_membership": {"fq_name": "team_log.EventTypeArg.shared_content_relinquish_membership", "param_name": "sharedContentRelinquishMembershipValue", "static_instance": "SHARED_CONTENT_RELINQUISH_MEMBERSHIP", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_remove_invitees": {"fq_name": "team_log.EventTypeArg.shared_content_remove_invitees", "param_name": "sharedContentRemoveInviteesValue", "static_instance": "SHARED_CONTENT_REMOVE_INVITEES", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_remove_link_expiry": {"fq_name": "team_log.EventTypeArg.shared_content_remove_link_expiry", "param_name": "sharedContentRemoveLinkExpiryValue", "static_instance": "SHARED_CONTENT_REMOVE_LINK_EXPIRY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_remove_link_password": {"fq_name": "team_log.EventTypeArg.shared_content_remove_link_password", "param_name": "sharedContentRemoveLinkPasswordValue", "static_instance": "SHARED_CONTENT_REMOVE_LINK_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_remove_member": {"fq_name": "team_log.EventTypeArg.shared_content_remove_member", "param_name": "sharedContentRemoveMemberValue", "static_instance": "SHARED_CONTENT_REMOVE_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_request_access": {"fq_name": "team_log.EventTypeArg.shared_content_request_access", "param_name": "sharedContentRequestAccessValue", "static_instance": "SHARED_CONTENT_REQUEST_ACCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_restore_invitees": {"fq_name": "team_log.EventTypeArg.shared_content_restore_invitees", "param_name": "sharedContentRestoreInviteesValue", "static_instance": "SHARED_CONTENT_RESTORE_INVITEES", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_restore_member": {"fq_name": "team_log.EventTypeArg.shared_content_restore_member", "param_name": "sharedContentRestoreMemberValue", "static_instance": "SHARED_CONTENT_RESTORE_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_unshare": {"fq_name": "team_log.EventTypeArg.shared_content_unshare", "param_name": "sharedContentUnshareValue", "static_instance": "SHARED_CONTENT_UNSHARE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_content_view": {"fq_name": "team_log.EventTypeArg.shared_content_view", "param_name": "sharedContentViewValue", "static_instance": "SHARED_CONTENT_VIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_change_link_policy": {"fq_name": "team_log.EventTypeArg.shared_folder_change_link_policy", "param_name": "sharedFolderChangeLinkPolicyValue", "static_instance": "SHARED_FOLDER_CHANGE_LINK_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_change_members_inheritance_policy": {"fq_name": "team_log.EventTypeArg.shared_folder_change_members_inheritance_policy", "param_name": "sharedFolderChangeMembersInheritancePolicyValue", "static_instance": "SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_change_members_management_policy": {"fq_name": "team_log.EventTypeArg.shared_folder_change_members_management_policy", "param_name": "sharedFolderChangeMembersManagementPolicyValue", "static_instance": "SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_change_members_policy": {"fq_name": "team_log.EventTypeArg.shared_folder_change_members_policy", "param_name": "sharedFolderChangeMembersPolicyValue", "static_instance": "SHARED_FOLDER_CHANGE_MEMBERS_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_create": {"fq_name": "team_log.EventTypeArg.shared_folder_create", "param_name": "sharedFolderCreateValue", "static_instance": "SHARED_FOLDER_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_decline_invitation": {"fq_name": "team_log.EventTypeArg.shared_folder_decline_invitation", "param_name": "sharedFolderDeclineInvitationValue", "static_instance": "SHARED_FOLDER_DECLINE_INVITATION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_mount": {"fq_name": "team_log.EventTypeArg.shared_folder_mount", "param_name": "sharedFolderMountValue", "static_instance": "SHARED_FOLDER_MOUNT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_nest": {"fq_name": "team_log.EventTypeArg.shared_folder_nest", "param_name": "sharedFolderNestValue", "static_instance": "SHARED_FOLDER_NEST", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_transfer_ownership": {"fq_name": "team_log.EventTypeArg.shared_folder_transfer_ownership", "param_name": "sharedFolderTransferOwnershipValue", "static_instance": "SHARED_FOLDER_TRANSFER_OWNERSHIP", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_folder_unmount": {"fq_name": "team_log.EventTypeArg.shared_folder_unmount", "param_name": "sharedFolderUnmountValue", "static_instance": "SHARED_FOLDER_UNMOUNT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_add_expiry": {"fq_name": "team_log.EventTypeArg.shared_link_add_expiry", "param_name": "sharedLinkAddExpiryValue", "static_instance": "SHARED_LINK_ADD_EXPIRY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_change_expiry": {"fq_name": "team_log.EventTypeArg.shared_link_change_expiry", "param_name": "sharedLinkChangeExpiryValue", "static_instance": "SHARED_LINK_CHANGE_EXPIRY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_change_visibility": {"fq_name": "team_log.EventTypeArg.shared_link_change_visibility", "param_name": "sharedLinkChangeVisibilityValue", "static_instance": "SHARED_LINK_CHANGE_VISIBILITY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_copy": {"fq_name": "team_log.EventTypeArg.shared_link_copy", "param_name": "sharedLinkCopyValue", "static_instance": "SHARED_LINK_COPY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_create": {"fq_name": "team_log.EventTypeArg.shared_link_create", "param_name": "sharedLinkCreateValue", "static_instance": "SHARED_LINK_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_disable": {"fq_name": "team_log.EventTypeArg.shared_link_disable", "param_name": "sharedLinkDisableValue", "static_instance": "SHARED_LINK_DISABLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_download": {"fq_name": "team_log.EventTypeArg.shared_link_download", "param_name": "sharedLinkDownloadValue", "static_instance": "SHARED_LINK_DOWNLOAD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_remove_expiry": {"fq_name": "team_log.EventTypeArg.shared_link_remove_expiry", "param_name": "sharedLinkRemoveExpiryValue", "static_instance": "SHARED_LINK_REMOVE_EXPIRY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_add_expiration": {"fq_name": "team_log.EventTypeArg.shared_link_settings_add_expiration", "param_name": "sharedLinkSettingsAddExpirationValue", "static_instance": "SHARED_LINK_SETTINGS_ADD_EXPIRATION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_add_password": {"fq_name": "team_log.EventTypeArg.shared_link_settings_add_password", "param_name": "sharedLinkSettingsAddPasswordValue", "static_instance": "SHARED_LINK_SETTINGS_ADD_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_allow_download_disabled": {"fq_name": "team_log.EventTypeArg.shared_link_settings_allow_download_disabled", "param_name": "sharedLinkSettingsAllowDownloadDisabledValue", "static_instance": "SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_allow_download_enabled": {"fq_name": "team_log.EventTypeArg.shared_link_settings_allow_download_enabled", "param_name": "sharedLinkSettingsAllowDownloadEnabledValue", "static_instance": "SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_change_audience": {"fq_name": "team_log.EventTypeArg.shared_link_settings_change_audience", "param_name": "sharedLinkSettingsChangeAudienceValue", "static_instance": "SHARED_LINK_SETTINGS_CHANGE_AUDIENCE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_change_expiration": {"fq_name": "team_log.EventTypeArg.shared_link_settings_change_expiration", "param_name": "sharedLinkSettingsChangeExpirationValue", "static_instance": "SHARED_LINK_SETTINGS_CHANGE_EXPIRATION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_change_password": {"fq_name": "team_log.EventTypeArg.shared_link_settings_change_password", "param_name": "sharedLinkSettingsChangePasswordValue", "static_instance": "SHARED_LINK_SETTINGS_CHANGE_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_remove_expiration": {"fq_name": "team_log.EventTypeArg.shared_link_settings_remove_expiration", "param_name": "sharedLinkSettingsRemoveExpirationValue", "static_instance": "SHARED_LINK_SETTINGS_REMOVE_EXPIRATION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_settings_remove_password": {"fq_name": "team_log.EventTypeArg.shared_link_settings_remove_password", "param_name": "sharedLinkSettingsRemovePasswordValue", "static_instance": "SHARED_LINK_SETTINGS_REMOVE_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_share": {"fq_name": "team_log.EventTypeArg.shared_link_share", "param_name": "sharedLinkShareValue", "static_instance": "SHARED_LINK_SHARE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_link_view": {"fq_name": "team_log.EventTypeArg.shared_link_view", "param_name": "sharedLinkViewValue", "static_instance": "SHARED_LINK_VIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shared_note_opened": {"fq_name": "team_log.EventTypeArg.shared_note_opened", "param_name": "sharedNoteOpenedValue", "static_instance": "SHARED_NOTE_OPENED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shmodel_disable_downloads": {"fq_name": "team_log.EventTypeArg.shmodel_disable_downloads", "param_name": "shmodelDisableDownloadsValue", "static_instance": "SHMODEL_DISABLE_DOWNLOADS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shmodel_enable_downloads": {"fq_name": "team_log.EventTypeArg.shmodel_enable_downloads", "param_name": "shmodelEnableDownloadsValue", "static_instance": "SHMODEL_ENABLE_DOWNLOADS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.shmodel_group_share": {"fq_name": "team_log.EventTypeArg.shmodel_group_share", "param_name": "shmodelGroupShareValue", "static_instance": "SHMODEL_GROUP_SHARE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_access_granted": {"fq_name": "team_log.EventTypeArg.showcase_access_granted", "param_name": "showcaseAccessGrantedValue", "static_instance": "SHOWCASE_ACCESS_GRANTED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_add_member": {"fq_name": "team_log.EventTypeArg.showcase_add_member", "param_name": "showcaseAddMemberValue", "static_instance": "SHOWCASE_ADD_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_archived": {"fq_name": "team_log.EventTypeArg.showcase_archived", "param_name": "showcaseArchivedValue", "static_instance": "SHOWCASE_ARCHIVED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_created": {"fq_name": "team_log.EventTypeArg.showcase_created", "param_name": "showcaseCreatedValue", "static_instance": "SHOWCASE_CREATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_delete_comment": {"fq_name": "team_log.EventTypeArg.showcase_delete_comment", "param_name": "showcaseDeleteCommentValue", "static_instance": "SHOWCASE_DELETE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_edited": {"fq_name": "team_log.EventTypeArg.showcase_edited", "param_name": "showcaseEditedValue", "static_instance": "SHOWCASE_EDITED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_edit_comment": {"fq_name": "team_log.EventTypeArg.showcase_edit_comment", "param_name": "showcaseEditCommentValue", "static_instance": "SHOWCASE_EDIT_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_file_added": {"fq_name": "team_log.EventTypeArg.showcase_file_added", "param_name": "showcaseFileAddedValue", "static_instance": "SHOWCASE_FILE_ADDED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_file_download": {"fq_name": "team_log.EventTypeArg.showcase_file_download", "param_name": "showcaseFileDownloadValue", "static_instance": "SHOWCASE_FILE_DOWNLOAD", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_file_removed": {"fq_name": "team_log.EventTypeArg.showcase_file_removed", "param_name": "showcaseFileRemovedValue", "static_instance": "SHOWCASE_FILE_REMOVED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_file_view": {"fq_name": "team_log.EventTypeArg.showcase_file_view", "param_name": "showcaseFileViewValue", "static_instance": "SHOWCASE_FILE_VIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_permanently_deleted": {"fq_name": "team_log.EventTypeArg.showcase_permanently_deleted", "param_name": "showcasePermanentlyDeletedValue", "static_instance": "SHOWCASE_PERMANENTLY_DELETED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_post_comment": {"fq_name": "team_log.EventTypeArg.showcase_post_comment", "param_name": "showcasePostCommentValue", "static_instance": "SHOWCASE_POST_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_remove_member": {"fq_name": "team_log.EventTypeArg.showcase_remove_member", "param_name": "showcaseRemoveMemberValue", "static_instance": "SHOWCASE_REMOVE_MEMBER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_renamed": {"fq_name": "team_log.EventTypeArg.showcase_renamed", "param_name": "showcaseRenamedValue", "static_instance": "SHOWCASE_RENAMED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_request_access": {"fq_name": "team_log.EventTypeArg.showcase_request_access", "param_name": "showcaseRequestAccessValue", "static_instance": "SHOWCASE_REQUEST_ACCESS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_resolve_comment": {"fq_name": "team_log.EventTypeArg.showcase_resolve_comment", "param_name": "showcaseResolveCommentValue", "static_instance": "SHOWCASE_RESOLVE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_restored": {"fq_name": "team_log.EventTypeArg.showcase_restored", "param_name": "showcaseRestoredValue", "static_instance": "SHOWCASE_RESTORED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_trashed": {"fq_name": "team_log.EventTypeArg.showcase_trashed", "param_name": "showcaseTrashedValue", "static_instance": "SHOWCASE_TRASHED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_trashed_deprecated": {"fq_name": "team_log.EventTypeArg.showcase_trashed_deprecated", "param_name": "showcaseTrashedDeprecatedValue", "static_instance": "SHOWCASE_TRASHED_DEPRECATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_unresolve_comment": {"fq_name": "team_log.EventTypeArg.showcase_unresolve_comment", "param_name": "showcaseUnresolveCommentValue", "static_instance": "SHOWCASE_UNRESOLVE_COMMENT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_untrashed": {"fq_name": "team_log.EventTypeArg.showcase_untrashed", "param_name": "showcaseUntrashedValue", "static_instance": "SHOWCASE_UNTRASHED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_untrashed_deprecated": {"fq_name": "team_log.EventTypeArg.showcase_untrashed_deprecated", "param_name": "showcaseUntrashedDeprecatedValue", "static_instance": "SHOWCASE_UNTRASHED_DEPRECATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_view": {"fq_name": "team_log.EventTypeArg.showcase_view", "param_name": "showcaseViewValue", "static_instance": "SHOWCASE_VIEW", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_add_cert": {"fq_name": "team_log.EventTypeArg.sso_add_cert", "param_name": "ssoAddCertValue", "static_instance": "SSO_ADD_CERT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_add_login_url": {"fq_name": "team_log.EventTypeArg.sso_add_login_url", "param_name": "ssoAddLoginUrlValue", "static_instance": "SSO_ADD_LOGIN_URL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_add_logout_url": {"fq_name": "team_log.EventTypeArg.sso_add_logout_url", "param_name": "ssoAddLogoutUrlValue", "static_instance": "SSO_ADD_LOGOUT_URL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_change_cert": {"fq_name": "team_log.EventTypeArg.sso_change_cert", "param_name": "ssoChangeCertValue", "static_instance": "SSO_CHANGE_CERT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_change_login_url": {"fq_name": "team_log.EventTypeArg.sso_change_login_url", "param_name": "ssoChangeLoginUrlValue", "static_instance": "SSO_CHANGE_LOGIN_URL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_change_logout_url": {"fq_name": "team_log.EventTypeArg.sso_change_logout_url", "param_name": "ssoChangeLogoutUrlValue", "static_instance": "SSO_CHANGE_LOGOUT_URL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_change_saml_identity_mode": {"fq_name": "team_log.EventTypeArg.sso_change_saml_identity_mode", "param_name": "ssoChangeSamlIdentityModeValue", "static_instance": "SSO_CHANGE_SAML_IDENTITY_MODE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_remove_cert": {"fq_name": "team_log.EventTypeArg.sso_remove_cert", "param_name": "ssoRemoveCertValue", "static_instance": "SSO_REMOVE_CERT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_remove_login_url": {"fq_name": "team_log.EventTypeArg.sso_remove_login_url", "param_name": "ssoRemoveLoginUrlValue", "static_instance": "SSO_REMOVE_LOGIN_URL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_remove_logout_url": {"fq_name": "team_log.EventTypeArg.sso_remove_logout_url", "param_name": "ssoRemoveLogoutUrlValue", "static_instance": "SSO_REMOVE_LOGOUT_URL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_folder_change_status": {"fq_name": "team_log.EventTypeArg.team_folder_change_status", "param_name": "teamFolderChangeStatusValue", "static_instance": "TEAM_FOLDER_CHANGE_STATUS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_folder_create": {"fq_name": "team_log.EventTypeArg.team_folder_create", "param_name": "teamFolderCreateValue", "static_instance": "TEAM_FOLDER_CREATE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_folder_downgrade": {"fq_name": "team_log.EventTypeArg.team_folder_downgrade", "param_name": "teamFolderDowngradeValue", "static_instance": "TEAM_FOLDER_DOWNGRADE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_folder_permanently_delete": {"fq_name": "team_log.EventTypeArg.team_folder_permanently_delete", "param_name": "teamFolderPermanentlyDeleteValue", "static_instance": "TEAM_FOLDER_PERMANENTLY_DELETE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_folder_rename": {"fq_name": "team_log.EventTypeArg.team_folder_rename", "param_name": "teamFolderRenameValue", "static_instance": "TEAM_FOLDER_RENAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_selective_sync_settings_changed": {"fq_name": "team_log.EventTypeArg.team_selective_sync_settings_changed", "param_name": "teamSelectiveSyncSettingsChangedValue", "static_instance": "TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.account_capture_change_policy": {"fq_name": "team_log.EventTypeArg.account_capture_change_policy", "param_name": "accountCaptureChangePolicyValue", "static_instance": "ACCOUNT_CAPTURE_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.admin_email_reminders_changed": {"fq_name": "team_log.EventTypeArg.admin_email_reminders_changed", "param_name": "adminEmailRemindersChangedValue", "static_instance": "ADMIN_EMAIL_REMINDERS_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.allow_download_disabled": {"fq_name": "team_log.EventTypeArg.allow_download_disabled", "param_name": "allowDownloadDisabledValue", "static_instance": "ALLOW_DOWNLOAD_DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.allow_download_enabled": {"fq_name": "team_log.EventTypeArg.allow_download_enabled", "param_name": "allowDownloadEnabledValue", "static_instance": "ALLOW_DOWNLOAD_ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.app_permissions_changed": {"fq_name": "team_log.EventTypeArg.app_permissions_changed", "param_name": "appPermissionsChangedValue", "static_instance": "APP_PERMISSIONS_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.camera_uploads_policy_changed": {"fq_name": "team_log.EventTypeArg.camera_uploads_policy_changed", "param_name": "cameraUploadsPolicyChangedValue", "static_instance": "CAMERA_UPLOADS_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.capture_transcript_policy_changed": {"fq_name": "team_log.EventTypeArg.capture_transcript_policy_changed", "param_name": "captureTranscriptPolicyChangedValue", "static_instance": "CAPTURE_TRANSCRIPT_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.classification_change_policy": {"fq_name": "team_log.EventTypeArg.classification_change_policy", "param_name": "classificationChangePolicyValue", "static_instance": "CLASSIFICATION_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.computer_backup_policy_changed": {"fq_name": "team_log.EventTypeArg.computer_backup_policy_changed", "param_name": "computerBackupPolicyChangedValue", "static_instance": "COMPUTER_BACKUP_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.content_administration_policy_changed": {"fq_name": "team_log.EventTypeArg.content_administration_policy_changed", "param_name": "contentAdministrationPolicyChangedValue", "static_instance": "CONTENT_ADMINISTRATION_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.data_placement_restriction_change_policy": {"fq_name": "team_log.EventTypeArg.data_placement_restriction_change_policy", "param_name": "dataPlacementRestrictionChangePolicyValue", "static_instance": "DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.data_placement_restriction_satisfy_policy": {"fq_name": "team_log.EventTypeArg.data_placement_restriction_satisfy_policy", "param_name": "dataPlacementRestrictionSatisfyPolicyValue", "static_instance": "DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_approvals_add_exception": {"fq_name": "team_log.EventTypeArg.device_approvals_add_exception", "param_name": "deviceApprovalsAddExceptionValue", "static_instance": "DEVICE_APPROVALS_ADD_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_approvals_change_desktop_policy": {"fq_name": "team_log.EventTypeArg.device_approvals_change_desktop_policy", "param_name": "deviceApprovalsChangeDesktopPolicyValue", "static_instance": "DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_approvals_change_mobile_policy": {"fq_name": "team_log.EventTypeArg.device_approvals_change_mobile_policy", "param_name": "deviceApprovalsChangeMobilePolicyValue", "static_instance": "DEVICE_APPROVALS_CHANGE_MOBILE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_approvals_change_overage_action": {"fq_name": "team_log.EventTypeArg.device_approvals_change_overage_action", "param_name": "deviceApprovalsChangeOverageActionValue", "static_instance": "DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_approvals_change_unlink_action": {"fq_name": "team_log.EventTypeArg.device_approvals_change_unlink_action", "param_name": "deviceApprovalsChangeUnlinkActionValue", "static_instance": "DEVICE_APPROVALS_CHANGE_UNLINK_ACTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.device_approvals_remove_exception": {"fq_name": "team_log.EventTypeArg.device_approvals_remove_exception", "param_name": "deviceApprovalsRemoveExceptionValue", "static_instance": "DEVICE_APPROVALS_REMOVE_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.directory_restrictions_add_members": {"fq_name": "team_log.EventTypeArg.directory_restrictions_add_members", "param_name": "directoryRestrictionsAddMembersValue", "static_instance": "DIRECTORY_RESTRICTIONS_ADD_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.directory_restrictions_remove_members": {"fq_name": "team_log.EventTypeArg.directory_restrictions_remove_members", "param_name": "directoryRestrictionsRemoveMembersValue", "static_instance": "DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.dropbox_passwords_policy_changed": {"fq_name": "team_log.EventTypeArg.dropbox_passwords_policy_changed", "param_name": "dropboxPasswordsPolicyChangedValue", "static_instance": "DROPBOX_PASSWORDS_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.email_ingest_policy_changed": {"fq_name": "team_log.EventTypeArg.email_ingest_policy_changed", "param_name": "emailIngestPolicyChangedValue", "static_instance": "EMAIL_INGEST_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.emm_add_exception": {"fq_name": "team_log.EventTypeArg.emm_add_exception", "param_name": "emmAddExceptionValue", "static_instance": "EMM_ADD_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.emm_change_policy": {"fq_name": "team_log.EventTypeArg.emm_change_policy", "param_name": "emmChangePolicyValue", "static_instance": "EMM_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.emm_remove_exception": {"fq_name": "team_log.EventTypeArg.emm_remove_exception", "param_name": "emmRemoveExceptionValue", "static_instance": "EMM_REMOVE_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.extended_version_history_change_policy": {"fq_name": "team_log.EventTypeArg.extended_version_history_change_policy", "param_name": "extendedVersionHistoryChangePolicyValue", "static_instance": "EXTENDED_VERSION_HISTORY_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.external_drive_backup_policy_changed": {"fq_name": "team_log.EventTypeArg.external_drive_backup_policy_changed", "param_name": "externalDriveBackupPolicyChangedValue", "static_instance": "EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_comments_change_policy": {"fq_name": "team_log.EventTypeArg.file_comments_change_policy", "param_name": "fileCommentsChangePolicyValue", "static_instance": "FILE_COMMENTS_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_locking_policy_changed": {"fq_name": "team_log.EventTypeArg.file_locking_policy_changed", "param_name": "fileLockingPolicyChangedValue", "static_instance": "FILE_LOCKING_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_provider_migration_policy_changed": {"fq_name": "team_log.EventTypeArg.file_provider_migration_policy_changed", "param_name": "fileProviderMigrationPolicyChangedValue", "static_instance": "FILE_PROVIDER_MIGRATION_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_requests_change_policy": {"fq_name": "team_log.EventTypeArg.file_requests_change_policy", "param_name": "fileRequestsChangePolicyValue", "static_instance": "FILE_REQUESTS_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_requests_emails_enabled": {"fq_name": "team_log.EventTypeArg.file_requests_emails_enabled", "param_name": "fileRequestsEmailsEnabledValue", "static_instance": "FILE_REQUESTS_EMAILS_ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_requests_emails_restricted_to_team_only": {"fq_name": "team_log.EventTypeArg.file_requests_emails_restricted_to_team_only", "param_name": "fileRequestsEmailsRestrictedToTeamOnlyValue", "static_instance": "FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.file_transfers_policy_changed": {"fq_name": "team_log.EventTypeArg.file_transfers_policy_changed", "param_name": "fileTransfersPolicyChangedValue", "static_instance": "FILE_TRANSFERS_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.folder_link_restriction_policy_changed": {"fq_name": "team_log.EventTypeArg.folder_link_restriction_policy_changed", "param_name": "folderLinkRestrictionPolicyChangedValue", "static_instance": "FOLDER_LINK_RESTRICTION_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.google_sso_change_policy": {"fq_name": "team_log.EventTypeArg.google_sso_change_policy", "param_name": "googleSsoChangePolicyValue", "static_instance": "GOOGLE_SSO_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.group_user_management_change_policy": {"fq_name": "team_log.EventTypeArg.group_user_management_change_policy", "param_name": "groupUserManagementChangePolicyValue", "static_instance": "GROUP_USER_MANAGEMENT_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.integration_policy_changed": {"fq_name": "team_log.EventTypeArg.integration_policy_changed", "param_name": "integrationPolicyChangedValue", "static_instance": "INTEGRATION_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.invite_acceptance_email_policy_changed": {"fq_name": "team_log.EventTypeArg.invite_acceptance_email_policy_changed", "param_name": "inviteAcceptanceEmailPolicyChangedValue", "static_instance": "INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_requests_change_policy": {"fq_name": "team_log.EventTypeArg.member_requests_change_policy", "param_name": "memberRequestsChangePolicyValue", "static_instance": "MEMBER_REQUESTS_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_send_invite_policy_changed": {"fq_name": "team_log.EventTypeArg.member_send_invite_policy_changed", "param_name": "memberSendInvitePolicyChangedValue", "static_instance": "MEMBER_SEND_INVITE_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_add_exception": {"fq_name": "team_log.EventTypeArg.member_space_limits_add_exception", "param_name": "memberSpaceLimitsAddExceptionValue", "static_instance": "MEMBER_SPACE_LIMITS_ADD_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_change_caps_type_policy": {"fq_name": "team_log.EventTypeArg.member_space_limits_change_caps_type_policy", "param_name": "memberSpaceLimitsChangeCapsTypePolicyValue", "static_instance": "MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_change_policy": {"fq_name": "team_log.EventTypeArg.member_space_limits_change_policy", "param_name": "memberSpaceLimitsChangePolicyValue", "static_instance": "MEMBER_SPACE_LIMITS_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_space_limits_remove_exception": {"fq_name": "team_log.EventTypeArg.member_space_limits_remove_exception", "param_name": "memberSpaceLimitsRemoveExceptionValue", "static_instance": "MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.member_suggestions_change_policy": {"fq_name": "team_log.EventTypeArg.member_suggestions_change_policy", "param_name": "memberSuggestionsChangePolicyValue", "static_instance": "MEMBER_SUGGESTIONS_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.microsoft_office_addin_change_policy": {"fq_name": "team_log.EventTypeArg.microsoft_office_addin_change_policy", "param_name": "microsoftOfficeAddinChangePolicyValue", "static_instance": "MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.network_control_change_policy": {"fq_name": "team_log.EventTypeArg.network_control_change_policy", "param_name": "networkControlChangePolicyValue", "static_instance": "NETWORK_CONTROL_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_change_deployment_policy": {"fq_name": "team_log.EventTypeArg.paper_change_deployment_policy", "param_name": "paperChangeDeploymentPolicyValue", "static_instance": "PAPER_CHANGE_DEPLOYMENT_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_change_member_link_policy": {"fq_name": "team_log.EventTypeArg.paper_change_member_link_policy", "param_name": "paperChangeMemberLinkPolicyValue", "static_instance": "PAPER_CHANGE_MEMBER_LINK_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_change_member_policy": {"fq_name": "team_log.EventTypeArg.paper_change_member_policy", "param_name": "paperChangeMemberPolicyValue", "static_instance": "PAPER_CHANGE_MEMBER_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_change_policy": {"fq_name": "team_log.EventTypeArg.paper_change_policy", "param_name": "paperChangePolicyValue", "static_instance": "PAPER_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_default_folder_policy_changed": {"fq_name": "team_log.EventTypeArg.paper_default_folder_policy_changed", "param_name": "paperDefaultFolderPolicyChangedValue", "static_instance": "PAPER_DEFAULT_FOLDER_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_desktop_policy_changed": {"fq_name": "team_log.EventTypeArg.paper_desktop_policy_changed", "param_name": "paperDesktopPolicyChangedValue", "static_instance": "PAPER_DESKTOP_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_enabled_users_group_addition": {"fq_name": "team_log.EventTypeArg.paper_enabled_users_group_addition", "param_name": "paperEnabledUsersGroupAdditionValue", "static_instance": "PAPER_ENABLED_USERS_GROUP_ADDITION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.paper_enabled_users_group_removal": {"fq_name": "team_log.EventTypeArg.paper_enabled_users_group_removal", "param_name": "paperEnabledUsersGroupRemovalValue", "static_instance": "PAPER_ENABLED_USERS_GROUP_REMOVAL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.password_strength_requirements_change_policy": {"fq_name": "team_log.EventTypeArg.password_strength_requirements_change_policy", "param_name": "passwordStrengthRequirementsChangePolicyValue", "static_instance": "PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.permanent_delete_change_policy": {"fq_name": "team_log.EventTypeArg.permanent_delete_change_policy", "param_name": "permanentDeleteChangePolicyValue", "static_instance": "PERMANENT_DELETE_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.reseller_support_change_policy": {"fq_name": "team_log.EventTypeArg.reseller_support_change_policy", "param_name": "resellerSupportChangePolicyValue", "static_instance": "RESELLER_SUPPORT_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.rewind_policy_changed": {"fq_name": "team_log.EventTypeArg.rewind_policy_changed", "param_name": "rewindPolicyChangedValue", "static_instance": "REWIND_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.send_for_signature_policy_changed": {"fq_name": "team_log.EventTypeArg.send_for_signature_policy_changed", "param_name": "sendForSignaturePolicyChangedValue", "static_instance": "SEND_FOR_SIGNATURE_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sharing_change_folder_join_policy": {"fq_name": "team_log.EventTypeArg.sharing_change_folder_join_policy", "param_name": "sharingChangeFolderJoinPolicyValue", "static_instance": "SHARING_CHANGE_FOLDER_JOIN_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sharing_change_link_allow_change_expiration_policy": {"fq_name": "team_log.EventTypeArg.sharing_change_link_allow_change_expiration_policy", "param_name": "sharingChangeLinkAllowChangeExpirationPolicyValue", "static_instance": "SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sharing_change_link_default_expiration_policy": {"fq_name": "team_log.EventTypeArg.sharing_change_link_default_expiration_policy", "param_name": "sharingChangeLinkDefaultExpirationPolicyValue", "static_instance": "SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sharing_change_link_enforce_password_policy": {"fq_name": "team_log.EventTypeArg.sharing_change_link_enforce_password_policy", "param_name": "sharingChangeLinkEnforcePasswordPolicyValue", "static_instance": "SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sharing_change_link_policy": {"fq_name": "team_log.EventTypeArg.sharing_change_link_policy", "param_name": "sharingChangeLinkPolicyValue", "static_instance": "SHARING_CHANGE_LINK_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sharing_change_member_policy": {"fq_name": "team_log.EventTypeArg.sharing_change_member_policy", "param_name": "sharingChangeMemberPolicyValue", "static_instance": "SHARING_CHANGE_MEMBER_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_change_download_policy": {"fq_name": "team_log.EventTypeArg.showcase_change_download_policy", "param_name": "showcaseChangeDownloadPolicyValue", "static_instance": "SHOWCASE_CHANGE_DOWNLOAD_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_change_enabled_policy": {"fq_name": "team_log.EventTypeArg.showcase_change_enabled_policy", "param_name": "showcaseChangeEnabledPolicyValue", "static_instance": "SHOWCASE_CHANGE_ENABLED_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.showcase_change_external_sharing_policy": {"fq_name": "team_log.EventTypeArg.showcase_change_external_sharing_policy", "param_name": "showcaseChangeExternalSharingPolicyValue", "static_instance": "SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.smarter_smart_sync_policy_changed": {"fq_name": "team_log.EventTypeArg.smarter_smart_sync_policy_changed", "param_name": "smarterSmartSyncPolicyChangedValue", "static_instance": "SMARTER_SMART_SYNC_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.smart_sync_change_policy": {"fq_name": "team_log.EventTypeArg.smart_sync_change_policy", "param_name": "smartSyncChangePolicyValue", "static_instance": "SMART_SYNC_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.smart_sync_not_opt_out": {"fq_name": "team_log.EventTypeArg.smart_sync_not_opt_out", "param_name": "smartSyncNotOptOutValue", "static_instance": "SMART_SYNC_NOT_OPT_OUT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.smart_sync_opt_out": {"fq_name": "team_log.EventTypeArg.smart_sync_opt_out", "param_name": "smartSyncOptOutValue", "static_instance": "SMART_SYNC_OPT_OUT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.sso_change_policy": {"fq_name": "team_log.EventTypeArg.sso_change_policy", "param_name": "ssoChangePolicyValue", "static_instance": "SSO_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_branding_policy_changed": {"fq_name": "team_log.EventTypeArg.team_branding_policy_changed", "param_name": "teamBrandingPolicyChangedValue", "static_instance": "TEAM_BRANDING_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_extensions_policy_changed": {"fq_name": "team_log.EventTypeArg.team_extensions_policy_changed", "param_name": "teamExtensionsPolicyChangedValue", "static_instance": "TEAM_EXTENSIONS_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_selective_sync_policy_changed": {"fq_name": "team_log.EventTypeArg.team_selective_sync_policy_changed", "param_name": "teamSelectiveSyncPolicyChangedValue", "static_instance": "TEAM_SELECTIVE_SYNC_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_sharing_whitelist_subjects_changed": {"fq_name": "team_log.EventTypeArg.team_sharing_whitelist_subjects_changed", "param_name": "teamSharingWhitelistSubjectsChangedValue", "static_instance": "TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_add_exception": {"fq_name": "team_log.EventTypeArg.tfa_add_exception", "param_name": "tfaAddExceptionValue", "static_instance": "TFA_ADD_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_change_policy": {"fq_name": "team_log.EventTypeArg.tfa_change_policy", "param_name": "tfaChangePolicyValue", "static_instance": "TFA_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_remove_exception": {"fq_name": "team_log.EventTypeArg.tfa_remove_exception", "param_name": "tfaRemoveExceptionValue", "static_instance": "TFA_REMOVE_EXCEPTION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.two_account_change_policy": {"fq_name": "team_log.EventTypeArg.two_account_change_policy", "param_name": "twoAccountChangePolicyValue", "static_instance": "TWO_ACCOUNT_CHANGE_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.viewer_info_policy_changed": {"fq_name": "team_log.EventTypeArg.viewer_info_policy_changed", "param_name": "viewerInfoPolicyChangedValue", "static_instance": "VIEWER_INFO_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.watermarking_policy_changed": {"fq_name": "team_log.EventTypeArg.watermarking_policy_changed", "param_name": "watermarkingPolicyChangedValue", "static_instance": "WATERMARKING_POLICY_CHANGED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.web_sessions_change_active_session_limit": {"fq_name": "team_log.EventTypeArg.web_sessions_change_active_session_limit", "param_name": "webSessionsChangeActiveSessionLimitValue", "static_instance": "WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.web_sessions_change_fixed_length_policy": {"fq_name": "team_log.EventTypeArg.web_sessions_change_fixed_length_policy", "param_name": "webSessionsChangeFixedLengthPolicyValue", "static_instance": "WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.web_sessions_change_idle_length_policy": {"fq_name": "team_log.EventTypeArg.web_sessions_change_idle_length_policy", "param_name": "webSessionsChangeIdleLengthPolicyValue", "static_instance": "WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.data_residency_migration_request_successful": {"fq_name": "team_log.EventTypeArg.data_residency_migration_request_successful", "param_name": "dataResidencyMigrationRequestSuccessfulValue", "static_instance": "DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.data_residency_migration_request_unsuccessful": {"fq_name": "team_log.EventTypeArg.data_residency_migration_request_unsuccessful", "param_name": "dataResidencyMigrationRequestUnsuccessfulValue", "static_instance": "DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_from": {"fq_name": "team_log.EventTypeArg.team_merge_from", "param_name": "teamMergeFromValue", "static_instance": "TEAM_MERGE_FROM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_to": {"fq_name": "team_log.EventTypeArg.team_merge_to", "param_name": "teamMergeToValue", "static_instance": "TEAM_MERGE_TO", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_add_background": {"fq_name": "team_log.EventTypeArg.team_profile_add_background", "param_name": "teamProfileAddBackgroundValue", "static_instance": "TEAM_PROFILE_ADD_BACKGROUND", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_add_logo": {"fq_name": "team_log.EventTypeArg.team_profile_add_logo", "param_name": "teamProfileAddLogoValue", "static_instance": "TEAM_PROFILE_ADD_LOGO", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_change_background": {"fq_name": "team_log.EventTypeArg.team_profile_change_background", "param_name": "teamProfileChangeBackgroundValue", "static_instance": "TEAM_PROFILE_CHANGE_BACKGROUND", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_change_default_language": {"fq_name": "team_log.EventTypeArg.team_profile_change_default_language", "param_name": "teamProfileChangeDefaultLanguageValue", "static_instance": "TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_change_logo": {"fq_name": "team_log.EventTypeArg.team_profile_change_logo", "param_name": "teamProfileChangeLogoValue", "static_instance": "TEAM_PROFILE_CHANGE_LOGO", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_change_name": {"fq_name": "team_log.EventTypeArg.team_profile_change_name", "param_name": "teamProfileChangeNameValue", "static_instance": "TEAM_PROFILE_CHANGE_NAME", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_remove_background": {"fq_name": "team_log.EventTypeArg.team_profile_remove_background", "param_name": "teamProfileRemoveBackgroundValue", "static_instance": "TEAM_PROFILE_REMOVE_BACKGROUND", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_profile_remove_logo": {"fq_name": "team_log.EventTypeArg.team_profile_remove_logo", "param_name": "teamProfileRemoveLogoValue", "static_instance": "TEAM_PROFILE_REMOVE_LOGO", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_add_backup_phone": {"fq_name": "team_log.EventTypeArg.tfa_add_backup_phone", "param_name": "tfaAddBackupPhoneValue", "static_instance": "TFA_ADD_BACKUP_PHONE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_add_security_key": {"fq_name": "team_log.EventTypeArg.tfa_add_security_key", "param_name": "tfaAddSecurityKeyValue", "static_instance": "TFA_ADD_SECURITY_KEY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_change_backup_phone": {"fq_name": "team_log.EventTypeArg.tfa_change_backup_phone", "param_name": "tfaChangeBackupPhoneValue", "static_instance": "TFA_CHANGE_BACKUP_PHONE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_change_status": {"fq_name": "team_log.EventTypeArg.tfa_change_status", "param_name": "tfaChangeStatusValue", "static_instance": "TFA_CHANGE_STATUS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_remove_backup_phone": {"fq_name": "team_log.EventTypeArg.tfa_remove_backup_phone", "param_name": "tfaRemoveBackupPhoneValue", "static_instance": "TFA_REMOVE_BACKUP_PHONE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_remove_security_key": {"fq_name": "team_log.EventTypeArg.tfa_remove_security_key", "param_name": "tfaRemoveSecurityKeyValue", "static_instance": "TFA_REMOVE_SECURITY_KEY", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.tfa_reset": {"fq_name": "team_log.EventTypeArg.tfa_reset", "param_name": "tfaResetValue", "static_instance": "TFA_RESET", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.changed_enterprise_admin_role": {"fq_name": "team_log.EventTypeArg.changed_enterprise_admin_role", "param_name": "changedEnterpriseAdminRoleValue", "static_instance": "CHANGED_ENTERPRISE_ADMIN_ROLE", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.changed_enterprise_connected_team_status": {"fq_name": "team_log.EventTypeArg.changed_enterprise_connected_team_status", "param_name": "changedEnterpriseConnectedTeamStatusValue", "static_instance": "CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.ended_enterprise_admin_session": {"fq_name": "team_log.EventTypeArg.ended_enterprise_admin_session", "param_name": "endedEnterpriseAdminSessionValue", "static_instance": "ENDED_ENTERPRISE_ADMIN_SESSION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.ended_enterprise_admin_session_deprecated": {"fq_name": "team_log.EventTypeArg.ended_enterprise_admin_session_deprecated", "param_name": "endedEnterpriseAdminSessionDeprecatedValue", "static_instance": "ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.enterprise_settings_locking": {"fq_name": "team_log.EventTypeArg.enterprise_settings_locking", "param_name": "enterpriseSettingsLockingValue", "static_instance": "ENTERPRISE_SETTINGS_LOCKING", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.guest_admin_change_status": {"fq_name": "team_log.EventTypeArg.guest_admin_change_status", "param_name": "guestAdminChangeStatusValue", "static_instance": "GUEST_ADMIN_CHANGE_STATUS", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.started_enterprise_admin_session": {"fq_name": "team_log.EventTypeArg.started_enterprise_admin_session", "param_name": "startedEnterpriseAdminSessionValue", "static_instance": "STARTED_ENTERPRISE_ADMIN_SESSION", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_accepted": {"fq_name": "team_log.EventTypeArg.team_merge_request_accepted", "param_name": "teamMergeRequestAcceptedValue", "static_instance": "TEAM_MERGE_REQUEST_ACCEPTED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_accepted_shown_to_primary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_accepted_shown_to_primary_team", "param_name": "teamMergeRequestAcceptedShownToPrimaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_accepted_shown_to_secondary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_accepted_shown_to_secondary_team", "param_name": "teamMergeRequestAcceptedShownToSecondaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_auto_canceled": {"fq_name": "team_log.EventTypeArg.team_merge_request_auto_canceled", "param_name": "teamMergeRequestAutoCanceledValue", "static_instance": "TEAM_MERGE_REQUEST_AUTO_CANCELED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_canceled": {"fq_name": "team_log.EventTypeArg.team_merge_request_canceled", "param_name": "teamMergeRequestCanceledValue", "static_instance": "TEAM_MERGE_REQUEST_CANCELED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_canceled_shown_to_primary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_canceled_shown_to_primary_team", "param_name": "teamMergeRequestCanceledShownToPrimaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_canceled_shown_to_secondary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_canceled_shown_to_secondary_team", "param_name": "teamMergeRequestCanceledShownToSecondaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_expired": {"fq_name": "team_log.EventTypeArg.team_merge_request_expired", "param_name": "teamMergeRequestExpiredValue", "static_instance": "TEAM_MERGE_REQUEST_EXPIRED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_expired_shown_to_primary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_expired_shown_to_primary_team", "param_name": "teamMergeRequestExpiredShownToPrimaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_expired_shown_to_secondary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_expired_shown_to_secondary_team", "param_name": "teamMergeRequestExpiredShownToSecondaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_rejected_shown_to_primary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_rejected_shown_to_primary_team", "param_name": "teamMergeRequestRejectedShownToPrimaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_rejected_shown_to_secondary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_rejected_shown_to_secondary_team", "param_name": "teamMergeRequestRejectedShownToSecondaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_reminder": {"fq_name": "team_log.EventTypeArg.team_merge_request_reminder", "param_name": "teamMergeRequestReminderValue", "static_instance": "TEAM_MERGE_REQUEST_REMINDER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_reminder_shown_to_primary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_reminder_shown_to_primary_team", "param_name": "teamMergeRequestReminderShownToPrimaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_reminder_shown_to_secondary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_reminder_shown_to_secondary_team", "param_name": "teamMergeRequestReminderShownToSecondaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_revoked": {"fq_name": "team_log.EventTypeArg.team_merge_request_revoked", "param_name": "teamMergeRequestRevokedValue", "static_instance": "TEAM_MERGE_REQUEST_REVOKED", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_sent_shown_to_primary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_sent_shown_to_primary_team", "param_name": "teamMergeRequestSentShownToPrimaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.team_merge_request_sent_shown_to_secondary_team": {"fq_name": "team_log.EventTypeArg.team_merge_request_sent_shown_to_secondary_team", "param_name": "teamMergeRequestSentShownToSecondaryTeamValue", "static_instance": "TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.EventTypeArg.other": {"fq_name": "team_log.EventTypeArg.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.EventTypeArg", "route_refs": [], "_type": "FieldReference"}, "team_log.ExportMembersReportFailDetails.failure_reason": {"fq_name": "team_log.ExportMembersReportFailDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.ExportMembersReportFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExportMembersReportFailType.description": {"fq_name": "team_log.ExportMembersReportFailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExportMembersReportFailType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExportMembersReportType.description": {"fq_name": "team_log.ExportMembersReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExportMembersReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryChangePolicyDetails.new_value": {"fq_name": "team_log.ExtendedVersionHistoryChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ExtendedVersionHistoryChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryChangePolicyDetails.previous_value": {"fq_name": "team_log.ExtendedVersionHistoryChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ExtendedVersionHistoryChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryChangePolicyType.description": {"fq_name": "team_log.ExtendedVersionHistoryChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExtendedVersionHistoryChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryPolicy.explicitly_limited": {"fq_name": "team_log.ExtendedVersionHistoryPolicy.explicitly_limited", "param_name": "explicitlyLimitedValue", "static_instance": "EXPLICITLY_LIMITED", "getter_method": null, "containing_data_type_ref": "team_log.ExtendedVersionHistoryPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryPolicy.explicitly_unlimited": {"fq_name": "team_log.ExtendedVersionHistoryPolicy.explicitly_unlimited", "param_name": "explicitlyUnlimitedValue", "static_instance": "EXPLICITLY_UNLIMITED", "getter_method": null, "containing_data_type_ref": "team_log.ExtendedVersionHistoryPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryPolicy.implicitly_limited": {"fq_name": "team_log.ExtendedVersionHistoryPolicy.implicitly_limited", "param_name": "implicitlyLimitedValue", "static_instance": "IMPLICITLY_LIMITED", "getter_method": null, "containing_data_type_ref": "team_log.ExtendedVersionHistoryPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryPolicy.implicitly_unlimited": {"fq_name": "team_log.ExtendedVersionHistoryPolicy.implicitly_unlimited", "param_name": "implicitlyUnlimitedValue", "static_instance": "IMPLICITLY_UNLIMITED", "getter_method": null, "containing_data_type_ref": "team_log.ExtendedVersionHistoryPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExtendedVersionHistoryPolicy.other": {"fq_name": "team_log.ExtendedVersionHistoryPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ExtendedVersionHistoryPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupEligibilityStatus.exceed_license_cap": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatus.exceed_license_cap", "param_name": "exceedLicenseCapValue", "static_instance": "EXCEED_LICENSE_CAP", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupEligibilityStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupEligibilityStatus.success": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatus.success", "param_name": "successValue", "static_instance": "SUCCESS", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupEligibilityStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupEligibilityStatus.other": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupEligibilityStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails.desktop_device_session_info": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails.desktop_device_session_info", "param_name": "desktopDeviceSessionInfo", "static_instance": null, "getter_method": "getDesktopDeviceSessionInfo", "containing_data_type_ref": "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails.status": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails.status", "param_name": "status", "static_instance": null, "getter_method": "getStatus", "containing_data_type_ref": "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails.number_of_external_drive_backup": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails.number_of_external_drive_backup", "param_name": "numberOfExternalDriveBackup", "static_instance": null, "getter_method": "getNumberOfExternalDriveBackup", "containing_data_type_ref": "team_log.ExternalDriveBackupEligibilityStatusCheckedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupEligibilityStatusCheckedType.description": {"fq_name": "team_log.ExternalDriveBackupEligibilityStatusCheckedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExternalDriveBackupEligibilityStatusCheckedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupPolicy.default": {"fq_name": "team_log.ExternalDriveBackupPolicy.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupPolicy.disabled": {"fq_name": "team_log.ExternalDriveBackupPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupPolicy.enabled": {"fq_name": "team_log.ExternalDriveBackupPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupPolicy.other": {"fq_name": "team_log.ExternalDriveBackupPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupPolicyChangedDetails.new_value": {"fq_name": "team_log.ExternalDriveBackupPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ExternalDriveBackupPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupPolicyChangedDetails.previous_value": {"fq_name": "team_log.ExternalDriveBackupPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ExternalDriveBackupPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupPolicyChangedType.description": {"fq_name": "team_log.ExternalDriveBackupPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExternalDriveBackupPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatus.broken": {"fq_name": "team_log.ExternalDriveBackupStatus.broken", "param_name": "brokenValue", "static_instance": "BROKEN", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatus.created": {"fq_name": "team_log.ExternalDriveBackupStatus.created", "param_name": "createdValue", "static_instance": "CREATED", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatus.created_or_broken": {"fq_name": "team_log.ExternalDriveBackupStatus.created_or_broken", "param_name": "createdOrBrokenValue", "static_instance": "CREATED_OR_BROKEN", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatus.deleted": {"fq_name": "team_log.ExternalDriveBackupStatus.deleted", "param_name": "deletedValue", "static_instance": "DELETED", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatus.empty": {"fq_name": "team_log.ExternalDriveBackupStatus.empty", "param_name": "emptyValue", "static_instance": "EMPTY", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatus.unknown": {"fq_name": "team_log.ExternalDriveBackupStatus.unknown", "param_name": "unknownValue", "static_instance": "UNKNOWN", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatus.other": {"fq_name": "team_log.ExternalDriveBackupStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ExternalDriveBackupStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatusChangedDetails.desktop_device_session_info": {"fq_name": "team_log.ExternalDriveBackupStatusChangedDetails.desktop_device_session_info", "param_name": "desktopDeviceSessionInfo", "static_instance": null, "getter_method": "getDesktopDeviceSessionInfo", "containing_data_type_ref": "team_log.ExternalDriveBackupStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatusChangedDetails.previous_value": {"fq_name": "team_log.ExternalDriveBackupStatusChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ExternalDriveBackupStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatusChangedDetails.new_value": {"fq_name": "team_log.ExternalDriveBackupStatusChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ExternalDriveBackupStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalDriveBackupStatusChangedType.description": {"fq_name": "team_log.ExternalDriveBackupStatusChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExternalDriveBackupStatusChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalSharingCreateReportType.description": {"fq_name": "team_log.ExternalSharingCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExternalSharingCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalSharingReportFailedDetails.failure_reason": {"fq_name": "team_log.ExternalSharingReportFailedDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.ExternalSharingReportFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalSharingReportFailedType.description": {"fq_name": "team_log.ExternalSharingReportFailedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ExternalSharingReportFailedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalUserLogInfo.user_identifier": {"fq_name": "team_log.ExternalUserLogInfo.user_identifier", "param_name": "userIdentifier", "static_instance": null, "getter_method": "getUserIdentifier", "containing_data_type_ref": "team_log.ExternalUserLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ExternalUserLogInfo.identifier_type": {"fq_name": "team_log.ExternalUserLogInfo.identifier_type", "param_name": "identifierType", "static_instance": null, "getter_method": "getIdentifierType", "containing_data_type_ref": "team_log.ExternalUserLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FailureDetailsLogInfo.user_friendly_message": {"fq_name": "team_log.FailureDetailsLogInfo.user_friendly_message", "param_name": "userFriendlyMessage", "static_instance": null, "getter_method": "getUserFriendlyMessage", "containing_data_type_ref": "team_log.FailureDetailsLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FailureDetailsLogInfo.technical_error_message": {"fq_name": "team_log.FailureDetailsLogInfo.technical_error_message", "param_name": "technicalErrorMessage", "static_instance": null, "getter_method": "getTechnicalErrorMessage", "containing_data_type_ref": "team_log.FailureDetailsLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FedAdminRole.enterprise_admin": {"fq_name": "team_log.FedAdminRole.enterprise_admin", "param_name": "enterpriseAdminValue", "static_instance": "ENTERPRISE_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.FedAdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.FedAdminRole.not_enterprise_admin": {"fq_name": "team_log.FedAdminRole.not_enterprise_admin", "param_name": "notEnterpriseAdminValue", "static_instance": "NOT_ENTERPRISE_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.FedAdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.FedAdminRole.other": {"fq_name": "team_log.FedAdminRole.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FedAdminRole", "route_refs": [], "_type": "FieldReference"}, "team_log.FedExtraDetails.organization": {"fq_name": "team_log.FedExtraDetails.organization", "param_name": "organizationValue", "static_instance": null, "getter_method": "getOrganizationValue", "containing_data_type_ref": "team_log.FedExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FedExtraDetails.team": {"fq_name": "team_log.FedExtraDetails.team", "param_name": "teamValue", "static_instance": null, "getter_method": "getTeamValue", "containing_data_type_ref": "team_log.FedExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FedExtraDetails.other": {"fq_name": "team_log.FedExtraDetails.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FedExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FedHandshakeAction.accepted_invite": {"fq_name": "team_log.FedHandshakeAction.accepted_invite", "param_name": "acceptedInviteValue", "static_instance": "ACCEPTED_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.FedHandshakeAction", "route_refs": [], "_type": "FieldReference"}, "team_log.FedHandshakeAction.canceled_invite": {"fq_name": "team_log.FedHandshakeAction.canceled_invite", "param_name": "canceledInviteValue", "static_instance": "CANCELED_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.FedHandshakeAction", "route_refs": [], "_type": "FieldReference"}, "team_log.FedHandshakeAction.invite_expired": {"fq_name": "team_log.FedHandshakeAction.invite_expired", "param_name": "inviteExpiredValue", "static_instance": "INVITE_EXPIRED", "getter_method": null, "containing_data_type_ref": "team_log.FedHandshakeAction", "route_refs": [], "_type": "FieldReference"}, "team_log.FedHandshakeAction.invited": {"fq_name": "team_log.FedHandshakeAction.invited", "param_name": "invitedValue", "static_instance": "INVITED", "getter_method": null, "containing_data_type_ref": "team_log.FedHandshakeAction", "route_refs": [], "_type": "FieldReference"}, "team_log.FedHandshakeAction.rejected_invite": {"fq_name": "team_log.FedHandshakeAction.rejected_invite", "param_name": "rejectedInviteValue", "static_instance": "REJECTED_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.FedHandshakeAction", "route_refs": [], "_type": "FieldReference"}, "team_log.FedHandshakeAction.removed_team": {"fq_name": "team_log.FedHandshakeAction.removed_team", "param_name": "removedTeamValue", "static_instance": "REMOVED_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.FedHandshakeAction", "route_refs": [], "_type": "FieldReference"}, "team_log.FedHandshakeAction.other": {"fq_name": "team_log.FedHandshakeAction.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FedHandshakeAction", "route_refs": [], "_type": "FieldReference"}, "team_log.FederationStatusChangeAdditionalInfo.connected_team_name": {"fq_name": "team_log.FederationStatusChangeAdditionalInfo.connected_team_name", "param_name": "connectedTeamNameValue", "static_instance": null, "getter_method": "getConnectedTeamNameValue", "containing_data_type_ref": "team_log.FederationStatusChangeAdditionalInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FederationStatusChangeAdditionalInfo.non_trusted_team_details": {"fq_name": "team_log.FederationStatusChangeAdditionalInfo.non_trusted_team_details", "param_name": "nonTrustedTeamDetailsValue", "static_instance": null, "getter_method": "getNonTrustedTeamDetailsValue", "containing_data_type_ref": "team_log.FederationStatusChangeAdditionalInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FederationStatusChangeAdditionalInfo.organization_name": {"fq_name": "team_log.FederationStatusChangeAdditionalInfo.organization_name", "param_name": "organizationNameValue", "static_instance": null, "getter_method": "getOrganizationNameValue", "containing_data_type_ref": "team_log.FederationStatusChangeAdditionalInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FederationStatusChangeAdditionalInfo.other": {"fq_name": "team_log.FederationStatusChangeAdditionalInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FederationStatusChangeAdditionalInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileAddCommentDetails.comment_text": {"fq_name": "team_log.FileAddCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.FileAddCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileAddCommentType.description": {"fq_name": "team_log.FileAddCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileAddCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileAddFromAutomationType.description": {"fq_name": "team_log.FileAddFromAutomationType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileAddFromAutomationType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileAddType.description": {"fq_name": "team_log.FileAddType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileAddType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileChangeCommentSubscriptionDetails.new_value": {"fq_name": "team_log.FileChangeCommentSubscriptionDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FileChangeCommentSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileChangeCommentSubscriptionDetails.previous_value": {"fq_name": "team_log.FileChangeCommentSubscriptionDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FileChangeCommentSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileChangeCommentSubscriptionType.description": {"fq_name": "team_log.FileChangeCommentSubscriptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileChangeCommentSubscriptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentNotificationPolicy.disabled": {"fq_name": "team_log.FileCommentNotificationPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileCommentNotificationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentNotificationPolicy.enabled": {"fq_name": "team_log.FileCommentNotificationPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileCommentNotificationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentNotificationPolicy.other": {"fq_name": "team_log.FileCommentNotificationPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FileCommentNotificationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentsChangePolicyDetails.new_value": {"fq_name": "team_log.FileCommentsChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FileCommentsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentsChangePolicyDetails.previous_value": {"fq_name": "team_log.FileCommentsChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FileCommentsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentsChangePolicyType.description": {"fq_name": "team_log.FileCommentsChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileCommentsChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentsPolicy.disabled": {"fq_name": "team_log.FileCommentsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileCommentsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentsPolicy.enabled": {"fq_name": "team_log.FileCommentsPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileCommentsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCommentsPolicy.other": {"fq_name": "team_log.FileCommentsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FileCommentsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCopyDetails.relocate_action_details": {"fq_name": "team_log.FileCopyDetails.relocate_action_details", "param_name": "relocateActionDetails", "static_instance": null, "getter_method": "getRelocateActionDetails", "containing_data_type_ref": "team_log.FileCopyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileCopyType.description": {"fq_name": "team_log.FileCopyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileCopyType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileDeleteCommentDetails.comment_text": {"fq_name": "team_log.FileDeleteCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.FileDeleteCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileDeleteCommentType.description": {"fq_name": "team_log.FileDeleteCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileDeleteCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileDeleteType.description": {"fq_name": "team_log.FileDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileDownloadType.description": {"fq_name": "team_log.FileDownloadType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileDownloadType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileEditCommentDetails.previous_comment_text": {"fq_name": "team_log.FileEditCommentDetails.previous_comment_text", "param_name": "previousCommentText", "static_instance": null, "getter_method": "getPreviousCommentText", "containing_data_type_ref": "team_log.FileEditCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileEditCommentDetails.comment_text": {"fq_name": "team_log.FileEditCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.FileEditCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileEditCommentType.description": {"fq_name": "team_log.FileEditCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileEditCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileEditType.description": {"fq_name": "team_log.FileEditType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileEditType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileGetCopyReferenceType.description": {"fq_name": "team_log.FileGetCopyReferenceType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileGetCopyReferenceType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLikeCommentDetails.comment_text": {"fq_name": "team_log.FileLikeCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.FileLikeCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLikeCommentType.description": {"fq_name": "team_log.FileLikeCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileLikeCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLockingLockStatusChangedDetails.previous_value": {"fq_name": "team_log.FileLockingLockStatusChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FileLockingLockStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLockingLockStatusChangedDetails.new_value": {"fq_name": "team_log.FileLockingLockStatusChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FileLockingLockStatusChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLockingLockStatusChangedType.description": {"fq_name": "team_log.FileLockingLockStatusChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileLockingLockStatusChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLockingPolicyChangedDetails.new_value": {"fq_name": "team_log.FileLockingPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FileLockingPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLockingPolicyChangedDetails.previous_value": {"fq_name": "team_log.FileLockingPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FileLockingPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLockingPolicyChangedType.description": {"fq_name": "team_log.FileLockingPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileLockingPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLogInfo.path": {"fq_name": "team_log.FileLogInfo.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "team_log.FileLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLogInfo.display_name": {"fq_name": "team_log.FileLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.FileLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLogInfo.file_id": {"fq_name": "team_log.FileLogInfo.file_id", "param_name": "fileId", "static_instance": null, "getter_method": "getFileId", "containing_data_type_ref": "team_log.FileLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileLogInfo.file_size": {"fq_name": "team_log.FileLogInfo.file_size", "param_name": "fileSize", "static_instance": null, "getter_method": "getFileSize", "containing_data_type_ref": "team_log.FileLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileMoveDetails.relocate_action_details": {"fq_name": "team_log.FileMoveDetails.relocate_action_details", "param_name": "relocateActionDetails", "static_instance": null, "getter_method": "getRelocateActionDetails", "containing_data_type_ref": "team_log.FileMoveDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileMoveType.description": {"fq_name": "team_log.FileMoveType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileMoveType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileOrFolderLogInfo.path": {"fq_name": "team_log.FileOrFolderLogInfo.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "team_log.FileOrFolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileOrFolderLogInfo.display_name": {"fq_name": "team_log.FileOrFolderLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.FileOrFolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileOrFolderLogInfo.file_id": {"fq_name": "team_log.FileOrFolderLogInfo.file_id", "param_name": "fileId", "static_instance": null, "getter_method": "getFileId", "containing_data_type_ref": "team_log.FileOrFolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FileOrFolderLogInfo.file_size": {"fq_name": "team_log.FileOrFolderLogInfo.file_size", "param_name": "fileSize", "static_instance": null, "getter_method": "getFileSize", "containing_data_type_ref": "team_log.FileOrFolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FilePermanentlyDeleteType.description": {"fq_name": "team_log.FilePermanentlyDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FilePermanentlyDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.FilePreviewType.description": {"fq_name": "team_log.FilePreviewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FilePreviewType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileProviderMigrationPolicyChangedDetails.new_value": {"fq_name": "team_log.FileProviderMigrationPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FileProviderMigrationPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileProviderMigrationPolicyChangedDetails.previous_value": {"fq_name": "team_log.FileProviderMigrationPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FileProviderMigrationPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileProviderMigrationPolicyChangedType.description": {"fq_name": "team_log.FileProviderMigrationPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileProviderMigrationPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRenameDetails.relocate_action_details": {"fq_name": "team_log.FileRenameDetails.relocate_action_details", "param_name": "relocateActionDetails", "static_instance": null, "getter_method": "getRelocateActionDetails", "containing_data_type_ref": "team_log.FileRenameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRenameType.description": {"fq_name": "team_log.FileRenameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRenameType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestChangeDetails.new_details": {"fq_name": "team_log.FileRequestChangeDetails.new_details", "param_name": "newDetails", "static_instance": null, "getter_method": "getNewDetails", "containing_data_type_ref": "team_log.FileRequestChangeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestChangeDetails.file_request_id": {"fq_name": "team_log.FileRequestChangeDetails.file_request_id", "param_name": "fileRequestId", "static_instance": null, "getter_method": "getFileRequestId", "containing_data_type_ref": "team_log.FileRequestChangeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestChangeDetails.previous_details": {"fq_name": "team_log.FileRequestChangeDetails.previous_details", "param_name": "previousDetails", "static_instance": null, "getter_method": "getPreviousDetails", "containing_data_type_ref": "team_log.FileRequestChangeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestChangeType.description": {"fq_name": "team_log.FileRequestChangeType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestChangeType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestCloseDetails.file_request_id": {"fq_name": "team_log.FileRequestCloseDetails.file_request_id", "param_name": "fileRequestId", "static_instance": null, "getter_method": "getFileRequestId", "containing_data_type_ref": "team_log.FileRequestCloseDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestCloseDetails.previous_details": {"fq_name": "team_log.FileRequestCloseDetails.previous_details", "param_name": "previousDetails", "static_instance": null, "getter_method": "getPreviousDetails", "containing_data_type_ref": "team_log.FileRequestCloseDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestCloseType.description": {"fq_name": "team_log.FileRequestCloseType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestCloseType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestCreateDetails.file_request_id": {"fq_name": "team_log.FileRequestCreateDetails.file_request_id", "param_name": "fileRequestId", "static_instance": null, "getter_method": "getFileRequestId", "containing_data_type_ref": "team_log.FileRequestCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestCreateDetails.request_details": {"fq_name": "team_log.FileRequestCreateDetails.request_details", "param_name": "requestDetails", "static_instance": null, "getter_method": "getRequestDetails", "containing_data_type_ref": "team_log.FileRequestCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestCreateType.description": {"fq_name": "team_log.FileRequestCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestDeadline.deadline": {"fq_name": "team_log.FileRequestDeadline.deadline", "param_name": "deadline", "static_instance": null, "getter_method": "getDeadline", "containing_data_type_ref": "team_log.FileRequestDeadline", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestDeadline.allow_late_uploads": {"fq_name": "team_log.FileRequestDeadline.allow_late_uploads", "param_name": "allowLateUploads", "static_instance": null, "getter_method": "getAllowLateUploads", "containing_data_type_ref": "team_log.FileRequestDeadline", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestDeleteDetails.file_request_id": {"fq_name": "team_log.FileRequestDeleteDetails.file_request_id", "param_name": "fileRequestId", "static_instance": null, "getter_method": "getFileRequestId", "containing_data_type_ref": "team_log.FileRequestDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestDeleteDetails.previous_details": {"fq_name": "team_log.FileRequestDeleteDetails.previous_details", "param_name": "previousDetails", "static_instance": null, "getter_method": "getPreviousDetails", "containing_data_type_ref": "team_log.FileRequestDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestDeleteType.description": {"fq_name": "team_log.FileRequestDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestDetails.asset_index": {"fq_name": "team_log.FileRequestDetails.asset_index", "param_name": "assetIndex", "static_instance": null, "getter_method": "getAssetIndex", "containing_data_type_ref": "team_log.FileRequestDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestDetails.deadline": {"fq_name": "team_log.FileRequestDetails.deadline", "param_name": "deadline", "static_instance": null, "getter_method": "getDeadline", "containing_data_type_ref": "team_log.FileRequestDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestReceiveFileDetails.submitted_file_names": {"fq_name": "team_log.FileRequestReceiveFileDetails.submitted_file_names", "param_name": "submittedFileNames", "static_instance": null, "getter_method": "getSubmittedFileNames", "containing_data_type_ref": "team_log.FileRequestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestReceiveFileDetails.file_request_id": {"fq_name": "team_log.FileRequestReceiveFileDetails.file_request_id", "param_name": "fileRequestId", "static_instance": null, "getter_method": "getFileRequestId", "containing_data_type_ref": "team_log.FileRequestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestReceiveFileDetails.file_request_details": {"fq_name": "team_log.FileRequestReceiveFileDetails.file_request_details", "param_name": "fileRequestDetails", "static_instance": null, "getter_method": "getFileRequestDetails", "containing_data_type_ref": "team_log.FileRequestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestReceiveFileDetails.submitter_name": {"fq_name": "team_log.FileRequestReceiveFileDetails.submitter_name", "param_name": "submitterName", "static_instance": null, "getter_method": "getSubmitterName", "containing_data_type_ref": "team_log.FileRequestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestReceiveFileDetails.submitter_email": {"fq_name": "team_log.FileRequestReceiveFileDetails.submitter_email", "param_name": "submitterEmail", "static_instance": null, "getter_method": "getSubmitterEmail", "containing_data_type_ref": "team_log.FileRequestReceiveFileDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestReceiveFileType.description": {"fq_name": "team_log.FileRequestReceiveFileType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestReceiveFileType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsChangePolicyDetails.new_value": {"fq_name": "team_log.FileRequestsChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FileRequestsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsChangePolicyDetails.previous_value": {"fq_name": "team_log.FileRequestsChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FileRequestsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsChangePolicyType.description": {"fq_name": "team_log.FileRequestsChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestsChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsEmailsEnabledType.description": {"fq_name": "team_log.FileRequestsEmailsEnabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestsEmailsEnabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsEmailsRestrictedToTeamOnlyType.description": {"fq_name": "team_log.FileRequestsEmailsRestrictedToTeamOnlyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRequestsEmailsRestrictedToTeamOnlyType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsPolicy.disabled": {"fq_name": "team_log.FileRequestsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileRequestsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsPolicy.enabled": {"fq_name": "team_log.FileRequestsPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileRequestsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRequestsPolicy.other": {"fq_name": "team_log.FileRequestsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FileRequestsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileResolveCommentDetails.comment_text": {"fq_name": "team_log.FileResolveCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.FileResolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileResolveCommentType.description": {"fq_name": "team_log.FileResolveCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileResolveCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRestoreType.description": {"fq_name": "team_log.FileRestoreType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRestoreType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRevertType.description": {"fq_name": "team_log.FileRevertType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRevertType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileRollbackChangesType.description": {"fq_name": "team_log.FileRollbackChangesType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileRollbackChangesType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileSaveCopyReferenceDetails.relocate_action_details": {"fq_name": "team_log.FileSaveCopyReferenceDetails.relocate_action_details", "param_name": "relocateActionDetails", "static_instance": null, "getter_method": "getRelocateActionDetails", "containing_data_type_ref": "team_log.FileSaveCopyReferenceDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileSaveCopyReferenceType.description": {"fq_name": "team_log.FileSaveCopyReferenceType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileSaveCopyReferenceType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersFileAddDetails.file_transfer_id": {"fq_name": "team_log.FileTransfersFileAddDetails.file_transfer_id", "param_name": "fileTransferId", "static_instance": null, "getter_method": "getFileTransferId", "containing_data_type_ref": "team_log.FileTransfersFileAddDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersFileAddType.description": {"fq_name": "team_log.FileTransfersFileAddType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileTransfersFileAddType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersPolicy.disabled": {"fq_name": "team_log.FileTransfersPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileTransfersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersPolicy.enabled": {"fq_name": "team_log.FileTransfersPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.FileTransfersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersPolicy.other": {"fq_name": "team_log.FileTransfersPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FileTransfersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersPolicyChangedDetails.new_value": {"fq_name": "team_log.FileTransfersPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FileTransfersPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersPolicyChangedDetails.previous_value": {"fq_name": "team_log.FileTransfersPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FileTransfersPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersPolicyChangedType.description": {"fq_name": "team_log.FileTransfersPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileTransfersPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferDeleteDetails.file_transfer_id": {"fq_name": "team_log.FileTransfersTransferDeleteDetails.file_transfer_id", "param_name": "fileTransferId", "static_instance": null, "getter_method": "getFileTransferId", "containing_data_type_ref": "team_log.FileTransfersTransferDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferDeleteType.description": {"fq_name": "team_log.FileTransfersTransferDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileTransfersTransferDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferDownloadDetails.file_transfer_id": {"fq_name": "team_log.FileTransfersTransferDownloadDetails.file_transfer_id", "param_name": "fileTransferId", "static_instance": null, "getter_method": "getFileTransferId", "containing_data_type_ref": "team_log.FileTransfersTransferDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferDownloadType.description": {"fq_name": "team_log.FileTransfersTransferDownloadType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileTransfersTransferDownloadType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferSendDetails.file_transfer_id": {"fq_name": "team_log.FileTransfersTransferSendDetails.file_transfer_id", "param_name": "fileTransferId", "static_instance": null, "getter_method": "getFileTransferId", "containing_data_type_ref": "team_log.FileTransfersTransferSendDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferSendType.description": {"fq_name": "team_log.FileTransfersTransferSendType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileTransfersTransferSendType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferViewDetails.file_transfer_id": {"fq_name": "team_log.FileTransfersTransferViewDetails.file_transfer_id", "param_name": "fileTransferId", "static_instance": null, "getter_method": "getFileTransferId", "containing_data_type_ref": "team_log.FileTransfersTransferViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileTransfersTransferViewType.description": {"fq_name": "team_log.FileTransfersTransferViewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileTransfersTransferViewType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileUnlikeCommentDetails.comment_text": {"fq_name": "team_log.FileUnlikeCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.FileUnlikeCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileUnlikeCommentType.description": {"fq_name": "team_log.FileUnlikeCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileUnlikeCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.FileUnresolveCommentDetails.comment_text": {"fq_name": "team_log.FileUnresolveCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.FileUnresolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FileUnresolveCommentType.description": {"fq_name": "team_log.FileUnresolveCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FileUnresolveCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLinkRestrictionPolicy.disabled": {"fq_name": "team_log.FolderLinkRestrictionPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.FolderLinkRestrictionPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLinkRestrictionPolicy.enabled": {"fq_name": "team_log.FolderLinkRestrictionPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.FolderLinkRestrictionPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLinkRestrictionPolicy.other": {"fq_name": "team_log.FolderLinkRestrictionPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.FolderLinkRestrictionPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLinkRestrictionPolicyChangedDetails.new_value": {"fq_name": "team_log.FolderLinkRestrictionPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.FolderLinkRestrictionPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLinkRestrictionPolicyChangedDetails.previous_value": {"fq_name": "team_log.FolderLinkRestrictionPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.FolderLinkRestrictionPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLinkRestrictionPolicyChangedType.description": {"fq_name": "team_log.FolderLinkRestrictionPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FolderLinkRestrictionPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLogInfo.path": {"fq_name": "team_log.FolderLogInfo.path", "param_name": "path", "static_instance": null, "getter_method": "getPath", "containing_data_type_ref": "team_log.FolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLogInfo.display_name": {"fq_name": "team_log.FolderLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.FolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLogInfo.file_id": {"fq_name": "team_log.FolderLogInfo.file_id", "param_name": "fileId", "static_instance": null, "getter_method": "getFileId", "containing_data_type_ref": "team_log.FolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLogInfo.file_size": {"fq_name": "team_log.FolderLogInfo.file_size", "param_name": "fileSize", "static_instance": null, "getter_method": "getFileSize", "containing_data_type_ref": "team_log.FolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderLogInfo.file_count": {"fq_name": "team_log.FolderLogInfo.file_count", "param_name": "fileCount", "static_instance": null, "getter_method": "getFileCount", "containing_data_type_ref": "team_log.FolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewDescriptionChangedDetails.folder_overview_location_asset": {"fq_name": "team_log.FolderOverviewDescriptionChangedDetails.folder_overview_location_asset", "param_name": "folderOverviewLocationAsset", "static_instance": null, "getter_method": "getFolderOverviewLocationAsset", "containing_data_type_ref": "team_log.FolderOverviewDescriptionChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewDescriptionChangedType.description": {"fq_name": "team_log.FolderOverviewDescriptionChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FolderOverviewDescriptionChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewItemPinnedDetails.folder_overview_location_asset": {"fq_name": "team_log.FolderOverviewItemPinnedDetails.folder_overview_location_asset", "param_name": "folderOverviewLocationAsset", "static_instance": null, "getter_method": "getFolderOverviewLocationAsset", "containing_data_type_ref": "team_log.FolderOverviewItemPinnedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewItemPinnedDetails.pinned_items_asset_indices": {"fq_name": "team_log.FolderOverviewItemPinnedDetails.pinned_items_asset_indices", "param_name": "pinnedItemsAssetIndices", "static_instance": null, "getter_method": "getPinnedItemsAssetIndices", "containing_data_type_ref": "team_log.FolderOverviewItemPinnedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewItemPinnedType.description": {"fq_name": "team_log.FolderOverviewItemPinnedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FolderOverviewItemPinnedType", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewItemUnpinnedDetails.folder_overview_location_asset": {"fq_name": "team_log.FolderOverviewItemUnpinnedDetails.folder_overview_location_asset", "param_name": "folderOverviewLocationAsset", "static_instance": null, "getter_method": "getFolderOverviewLocationAsset", "containing_data_type_ref": "team_log.FolderOverviewItemUnpinnedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewItemUnpinnedDetails.pinned_items_asset_indices": {"fq_name": "team_log.FolderOverviewItemUnpinnedDetails.pinned_items_asset_indices", "param_name": "pinnedItemsAssetIndices", "static_instance": null, "getter_method": "getPinnedItemsAssetIndices", "containing_data_type_ref": "team_log.FolderOverviewItemUnpinnedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.FolderOverviewItemUnpinnedType.description": {"fq_name": "team_log.FolderOverviewItemUnpinnedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.FolderOverviewItemUnpinnedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GeoLocationLogInfo.ip_address": {"fq_name": "team_log.GeoLocationLogInfo.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team_log.GeoLocationLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.GeoLocationLogInfo.city": {"fq_name": "team_log.GeoLocationLogInfo.city", "param_name": "city", "static_instance": null, "getter_method": "getCity", "containing_data_type_ref": "team_log.GeoLocationLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.GeoLocationLogInfo.region": {"fq_name": "team_log.GeoLocationLogInfo.region", "param_name": "region", "static_instance": null, "getter_method": "getRegion", "containing_data_type_ref": "team_log.GeoLocationLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.GeoLocationLogInfo.country": {"fq_name": "team_log.GeoLocationLogInfo.country", "param_name": "country", "static_instance": null, "getter_method": "getCountry", "containing_data_type_ref": "team_log.GeoLocationLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsArg.limit": {"fq_name": "team_log.GetTeamEventsArg.limit", "param_name": "limit", "static_instance": null, "getter_method": "getLimit", "containing_data_type_ref": "team_log.GetTeamEventsArg", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsArg.account_id": {"fq_name": "team_log.GetTeamEventsArg.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "team_log.GetTeamEventsArg", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsArg.time": {"fq_name": "team_log.GetTeamEventsArg.time", "param_name": "time", "static_instance": null, "getter_method": "getTime", "containing_data_type_ref": "team_log.GetTeamEventsArg", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsArg.category": {"fq_name": "team_log.GetTeamEventsArg.category", "param_name": "category", "static_instance": null, "getter_method": "getCategory", "containing_data_type_ref": "team_log.GetTeamEventsArg", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsArg.event_type": {"fq_name": "team_log.GetTeamEventsArg.event_type", "param_name": "eventType", "static_instance": null, "getter_method": "getEventType", "containing_data_type_ref": "team_log.GetTeamEventsArg", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsContinueArg.cursor": {"fq_name": "team_log.GetTeamEventsContinueArg.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team_log.GetTeamEventsContinueArg", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsContinueError.bad_cursor": {"fq_name": "team_log.GetTeamEventsContinueError.bad_cursor", "param_name": "badCursorValue", "static_instance": "BAD_CURSOR", "getter_method": null, "containing_data_type_ref": "team_log.GetTeamEventsContinueError", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsContinueError.reset": {"fq_name": "team_log.GetTeamEventsContinueError.reset", "param_name": "resetValue", "static_instance": null, "getter_method": "getResetValue", "containing_data_type_ref": "team_log.GetTeamEventsContinueError", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsContinueError.other": {"fq_name": "team_log.GetTeamEventsContinueError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.GetTeamEventsContinueError", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsError.account_id_not_found": {"fq_name": "team_log.GetTeamEventsError.account_id_not_found", "param_name": "accountIdNotFoundValue", "static_instance": "ACCOUNT_ID_NOT_FOUND", "getter_method": null, "containing_data_type_ref": "team_log.GetTeamEventsError", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsError.invalid_time_range": {"fq_name": "team_log.GetTeamEventsError.invalid_time_range", "param_name": "invalidTimeRangeValue", "static_instance": "INVALID_TIME_RANGE", "getter_method": null, "containing_data_type_ref": "team_log.GetTeamEventsError", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsError.invalid_filters": {"fq_name": "team_log.GetTeamEventsError.invalid_filters", "param_name": "invalidFiltersValue", "static_instance": "INVALID_FILTERS", "getter_method": null, "containing_data_type_ref": "team_log.GetTeamEventsError", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsError.other": {"fq_name": "team_log.GetTeamEventsError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.GetTeamEventsError", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsResult.events": {"fq_name": "team_log.GetTeamEventsResult.events", "param_name": "events", "static_instance": null, "getter_method": "getEvents", "containing_data_type_ref": "team_log.GetTeamEventsResult", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsResult.cursor": {"fq_name": "team_log.GetTeamEventsResult.cursor", "param_name": "cursor", "static_instance": null, "getter_method": "getCursor", "containing_data_type_ref": "team_log.GetTeamEventsResult", "route_refs": [], "_type": "FieldReference"}, "team_log.GetTeamEventsResult.has_more": {"fq_name": "team_log.GetTeamEventsResult.has_more", "param_name": "hasMore", "static_instance": null, "getter_method": "getHasMore", "containing_data_type_ref": "team_log.GetTeamEventsResult", "route_refs": [], "_type": "FieldReference"}, "team_log.GoogleSsoChangePolicyDetails.new_value": {"fq_name": "team_log.GoogleSsoChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GoogleSsoChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GoogleSsoChangePolicyDetails.previous_value": {"fq_name": "team_log.GoogleSsoChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GoogleSsoChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GoogleSsoChangePolicyType.description": {"fq_name": "team_log.GoogleSsoChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GoogleSsoChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.GoogleSsoPolicy.disabled": {"fq_name": "team_log.GoogleSsoPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.GoogleSsoPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.GoogleSsoPolicy.enabled": {"fq_name": "team_log.GoogleSsoPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.GoogleSsoPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.GoogleSsoPolicy.other": {"fq_name": "team_log.GoogleSsoPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.GoogleSsoPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFolderFailedDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyAddFolderFailedDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyAddFolderFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFolderFailedDetails.name": {"fq_name": "team_log.GovernancePolicyAddFolderFailedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyAddFolderFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFolderFailedDetails.folder": {"fq_name": "team_log.GovernancePolicyAddFolderFailedDetails.folder", "param_name": "folder", "static_instance": null, "getter_method": "getFolder", "containing_data_type_ref": "team_log.GovernancePolicyAddFolderFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFolderFailedDetails.policy_type": {"fq_name": "team_log.GovernancePolicyAddFolderFailedDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyAddFolderFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFolderFailedDetails.reason": {"fq_name": "team_log.GovernancePolicyAddFolderFailedDetails.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "team_log.GovernancePolicyAddFolderFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFolderFailedType.description": {"fq_name": "team_log.GovernancePolicyAddFolderFailedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyAddFolderFailedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFoldersDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyAddFoldersDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyAddFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFoldersDetails.name": {"fq_name": "team_log.GovernancePolicyAddFoldersDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyAddFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFoldersDetails.policy_type": {"fq_name": "team_log.GovernancePolicyAddFoldersDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyAddFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFoldersDetails.folders": {"fq_name": "team_log.GovernancePolicyAddFoldersDetails.folders", "param_name": "folders", "static_instance": null, "getter_method": "getFolders", "containing_data_type_ref": "team_log.GovernancePolicyAddFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyAddFoldersType.description": {"fq_name": "team_log.GovernancePolicyAddFoldersType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyAddFoldersType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyContentDisposedDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyContentDisposedDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyContentDisposedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyContentDisposedDetails.name": {"fq_name": "team_log.GovernancePolicyContentDisposedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyContentDisposedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyContentDisposedDetails.disposition_type": {"fq_name": "team_log.GovernancePolicyContentDisposedDetails.disposition_type", "param_name": "dispositionType", "static_instance": null, "getter_method": "getDispositionType", "containing_data_type_ref": "team_log.GovernancePolicyContentDisposedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyContentDisposedDetails.policy_type": {"fq_name": "team_log.GovernancePolicyContentDisposedDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyContentDisposedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyContentDisposedType.description": {"fq_name": "team_log.GovernancePolicyContentDisposedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyContentDisposedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyCreateDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyCreateDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyCreateDetails.name": {"fq_name": "team_log.GovernancePolicyCreateDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyCreateDetails.duration": {"fq_name": "team_log.GovernancePolicyCreateDetails.duration", "param_name": "duration", "static_instance": null, "getter_method": "getDuration", "containing_data_type_ref": "team_log.GovernancePolicyCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyCreateDetails.policy_type": {"fq_name": "team_log.GovernancePolicyCreateDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyCreateDetails.folders": {"fq_name": "team_log.GovernancePolicyCreateDetails.folders", "param_name": "folders", "static_instance": null, "getter_method": "getFolders", "containing_data_type_ref": "team_log.GovernancePolicyCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyCreateType.description": {"fq_name": "team_log.GovernancePolicyCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyDeleteDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyDeleteDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyDeleteDetails.name": {"fq_name": "team_log.GovernancePolicyDeleteDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyDeleteDetails.policy_type": {"fq_name": "team_log.GovernancePolicyDeleteDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyDeleteType.description": {"fq_name": "team_log.GovernancePolicyDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDetailsDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyEditDetailsDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyEditDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDetailsDetails.name": {"fq_name": "team_log.GovernancePolicyEditDetailsDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyEditDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDetailsDetails.attribute": {"fq_name": "team_log.GovernancePolicyEditDetailsDetails.attribute", "param_name": "attribute", "static_instance": null, "getter_method": "getAttribute", "containing_data_type_ref": "team_log.GovernancePolicyEditDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDetailsDetails.previous_value": {"fq_name": "team_log.GovernancePolicyEditDetailsDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GovernancePolicyEditDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDetailsDetails.new_value": {"fq_name": "team_log.GovernancePolicyEditDetailsDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GovernancePolicyEditDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDetailsDetails.policy_type": {"fq_name": "team_log.GovernancePolicyEditDetailsDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyEditDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDetailsType.description": {"fq_name": "team_log.GovernancePolicyEditDetailsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyEditDetailsType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDurationDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyEditDurationDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyEditDurationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDurationDetails.name": {"fq_name": "team_log.GovernancePolicyEditDurationDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyEditDurationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDurationDetails.previous_value": {"fq_name": "team_log.GovernancePolicyEditDurationDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GovernancePolicyEditDurationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDurationDetails.new_value": {"fq_name": "team_log.GovernancePolicyEditDurationDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GovernancePolicyEditDurationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDurationDetails.policy_type": {"fq_name": "team_log.GovernancePolicyEditDurationDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyEditDurationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyEditDurationType.description": {"fq_name": "team_log.GovernancePolicyEditDurationType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyEditDurationType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportCreatedDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyExportCreatedDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyExportCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportCreatedDetails.name": {"fq_name": "team_log.GovernancePolicyExportCreatedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyExportCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportCreatedDetails.export_name": {"fq_name": "team_log.GovernancePolicyExportCreatedDetails.export_name", "param_name": "exportName", "static_instance": null, "getter_method": "getExportName", "containing_data_type_ref": "team_log.GovernancePolicyExportCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportCreatedDetails.policy_type": {"fq_name": "team_log.GovernancePolicyExportCreatedDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyExportCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportCreatedType.description": {"fq_name": "team_log.GovernancePolicyExportCreatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyExportCreatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportRemovedDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyExportRemovedDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyExportRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportRemovedDetails.name": {"fq_name": "team_log.GovernancePolicyExportRemovedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyExportRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportRemovedDetails.export_name": {"fq_name": "team_log.GovernancePolicyExportRemovedDetails.export_name", "param_name": "exportName", "static_instance": null, "getter_method": "getExportName", "containing_data_type_ref": "team_log.GovernancePolicyExportRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportRemovedDetails.policy_type": {"fq_name": "team_log.GovernancePolicyExportRemovedDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyExportRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyExportRemovedType.description": {"fq_name": "team_log.GovernancePolicyExportRemovedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyExportRemovedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyRemoveFoldersDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyRemoveFoldersDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyRemoveFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyRemoveFoldersDetails.name": {"fq_name": "team_log.GovernancePolicyRemoveFoldersDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyRemoveFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyRemoveFoldersDetails.policy_type": {"fq_name": "team_log.GovernancePolicyRemoveFoldersDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyRemoveFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyRemoveFoldersDetails.folders": {"fq_name": "team_log.GovernancePolicyRemoveFoldersDetails.folders", "param_name": "folders", "static_instance": null, "getter_method": "getFolders", "containing_data_type_ref": "team_log.GovernancePolicyRemoveFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyRemoveFoldersDetails.reason": {"fq_name": "team_log.GovernancePolicyRemoveFoldersDetails.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "team_log.GovernancePolicyRemoveFoldersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyRemoveFoldersType.description": {"fq_name": "team_log.GovernancePolicyRemoveFoldersType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyRemoveFoldersType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyReportCreatedDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyReportCreatedDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyReportCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyReportCreatedDetails.name": {"fq_name": "team_log.GovernancePolicyReportCreatedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyReportCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyReportCreatedDetails.policy_type": {"fq_name": "team_log.GovernancePolicyReportCreatedDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyReportCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyReportCreatedType.description": {"fq_name": "team_log.GovernancePolicyReportCreatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyReportCreatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyZipPartDownloadedDetails.governance_policy_id": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedDetails.governance_policy_id", "param_name": "governancePolicyId", "static_instance": null, "getter_method": "getGovernancePolicyId", "containing_data_type_ref": "team_log.GovernancePolicyZipPartDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyZipPartDownloadedDetails.name": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.GovernancePolicyZipPartDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyZipPartDownloadedDetails.export_name": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedDetails.export_name", "param_name": "exportName", "static_instance": null, "getter_method": "getExportName", "containing_data_type_ref": "team_log.GovernancePolicyZipPartDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyZipPartDownloadedDetails.policy_type": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedDetails.policy_type", "param_name": "policyType", "static_instance": null, "getter_method": "getPolicyType", "containing_data_type_ref": "team_log.GovernancePolicyZipPartDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyZipPartDownloadedDetails.part": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedDetails.part", "param_name": "part", "static_instance": null, "getter_method": "getPart", "containing_data_type_ref": "team_log.GovernancePolicyZipPartDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GovernancePolicyZipPartDownloadedType.description": {"fq_name": "team_log.GovernancePolicyZipPartDownloadedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GovernancePolicyZipPartDownloadedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupAddExternalIdDetails.new_value": {"fq_name": "team_log.GroupAddExternalIdDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GroupAddExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupAddExternalIdType.description": {"fq_name": "team_log.GroupAddExternalIdType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupAddExternalIdType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupAddMemberDetails.is_group_owner": {"fq_name": "team_log.GroupAddMemberDetails.is_group_owner", "param_name": "isGroupOwner", "static_instance": null, "getter_method": "getIsGroupOwner", "containing_data_type_ref": "team_log.GroupAddMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupAddMemberType.description": {"fq_name": "team_log.GroupAddMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupAddMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeExternalIdDetails.new_value": {"fq_name": "team_log.GroupChangeExternalIdDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GroupChangeExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeExternalIdDetails.previous_value": {"fq_name": "team_log.GroupChangeExternalIdDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GroupChangeExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeExternalIdType.description": {"fq_name": "team_log.GroupChangeExternalIdType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupChangeExternalIdType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeManagementTypeDetails.new_value": {"fq_name": "team_log.GroupChangeManagementTypeDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GroupChangeManagementTypeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeManagementTypeDetails.previous_value": {"fq_name": "team_log.GroupChangeManagementTypeDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GroupChangeManagementTypeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeManagementTypeType.description": {"fq_name": "team_log.GroupChangeManagementTypeType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupChangeManagementTypeType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeMemberRoleDetails.is_group_owner": {"fq_name": "team_log.GroupChangeMemberRoleDetails.is_group_owner", "param_name": "isGroupOwner", "static_instance": null, "getter_method": "getIsGroupOwner", "containing_data_type_ref": "team_log.GroupChangeMemberRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupChangeMemberRoleType.description": {"fq_name": "team_log.GroupChangeMemberRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupChangeMemberRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupCreateDetails.is_company_managed": {"fq_name": "team_log.GroupCreateDetails.is_company_managed", "param_name": "isCompanyManaged", "static_instance": null, "getter_method": "getIsCompanyManaged", "containing_data_type_ref": "team_log.GroupCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupCreateDetails.join_policy": {"fq_name": "team_log.GroupCreateDetails.join_policy", "param_name": "joinPolicy", "static_instance": null, "getter_method": "getJoinPolicy", "containing_data_type_ref": "team_log.GroupCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupCreateType.description": {"fq_name": "team_log.GroupCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupDeleteDetails.is_company_managed": {"fq_name": "team_log.GroupDeleteDetails.is_company_managed", "param_name": "isCompanyManaged", "static_instance": null, "getter_method": "getIsCompanyManaged", "containing_data_type_ref": "team_log.GroupDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupDeleteType.description": {"fq_name": "team_log.GroupDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupDescriptionUpdatedType.description": {"fq_name": "team_log.GroupDescriptionUpdatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupDescriptionUpdatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupJoinPolicy.open": {"fq_name": "team_log.GroupJoinPolicy.open", "param_name": "openValue", "static_instance": "OPEN", "getter_method": null, "containing_data_type_ref": "team_log.GroupJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupJoinPolicy.request_to_join": {"fq_name": "team_log.GroupJoinPolicy.request_to_join", "param_name": "requestToJoinValue", "static_instance": "REQUEST_TO_JOIN", "getter_method": null, "containing_data_type_ref": "team_log.GroupJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupJoinPolicy.other": {"fq_name": "team_log.GroupJoinPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.GroupJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupJoinPolicyUpdatedDetails.is_company_managed": {"fq_name": "team_log.GroupJoinPolicyUpdatedDetails.is_company_managed", "param_name": "isCompanyManaged", "static_instance": null, "getter_method": "getIsCompanyManaged", "containing_data_type_ref": "team_log.GroupJoinPolicyUpdatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupJoinPolicyUpdatedDetails.join_policy": {"fq_name": "team_log.GroupJoinPolicyUpdatedDetails.join_policy", "param_name": "joinPolicy", "static_instance": null, "getter_method": "getJoinPolicy", "containing_data_type_ref": "team_log.GroupJoinPolicyUpdatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupJoinPolicyUpdatedType.description": {"fq_name": "team_log.GroupJoinPolicyUpdatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupJoinPolicyUpdatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupLogInfo.display_name": {"fq_name": "team_log.GroupLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.GroupLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupLogInfo.group_id": {"fq_name": "team_log.GroupLogInfo.group_id", "param_name": "groupId", "static_instance": null, "getter_method": "getGroupId", "containing_data_type_ref": "team_log.GroupLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupLogInfo.external_id": {"fq_name": "team_log.GroupLogInfo.external_id", "param_name": "externalId", "static_instance": null, "getter_method": "getExternalId", "containing_data_type_ref": "team_log.GroupLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupMovedType.description": {"fq_name": "team_log.GroupMovedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupMovedType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupRemoveExternalIdDetails.previous_value": {"fq_name": "team_log.GroupRemoveExternalIdDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GroupRemoveExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupRemoveExternalIdType.description": {"fq_name": "team_log.GroupRemoveExternalIdType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupRemoveExternalIdType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupRemoveMemberType.description": {"fq_name": "team_log.GroupRemoveMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupRemoveMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupRenameDetails.previous_value": {"fq_name": "team_log.GroupRenameDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GroupRenameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupRenameDetails.new_value": {"fq_name": "team_log.GroupRenameDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GroupRenameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupRenameType.description": {"fq_name": "team_log.GroupRenameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupRenameType", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupUserManagementChangePolicyDetails.new_value": {"fq_name": "team_log.GroupUserManagementChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GroupUserManagementChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupUserManagementChangePolicyDetails.previous_value": {"fq_name": "team_log.GroupUserManagementChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GroupUserManagementChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GroupUserManagementChangePolicyType.description": {"fq_name": "team_log.GroupUserManagementChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GroupUserManagementChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminChangeStatusDetails.is_guest": {"fq_name": "team_log.GuestAdminChangeStatusDetails.is_guest", "param_name": "isGuest", "static_instance": null, "getter_method": "getIsGuest", "containing_data_type_ref": "team_log.GuestAdminChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminChangeStatusDetails.previous_value": {"fq_name": "team_log.GuestAdminChangeStatusDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.GuestAdminChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminChangeStatusDetails.new_value": {"fq_name": "team_log.GuestAdminChangeStatusDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.GuestAdminChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminChangeStatusDetails.action_details": {"fq_name": "team_log.GuestAdminChangeStatusDetails.action_details", "param_name": "actionDetails", "static_instance": null, "getter_method": "getActionDetails", "containing_data_type_ref": "team_log.GuestAdminChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminChangeStatusDetails.guest_team_name": {"fq_name": "team_log.GuestAdminChangeStatusDetails.guest_team_name", "param_name": "guestTeamName", "static_instance": null, "getter_method": "getGuestTeamName", "containing_data_type_ref": "team_log.GuestAdminChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminChangeStatusDetails.host_team_name": {"fq_name": "team_log.GuestAdminChangeStatusDetails.host_team_name", "param_name": "hostTeamName", "static_instance": null, "getter_method": "getHostTeamName", "containing_data_type_ref": "team_log.GuestAdminChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminChangeStatusType.description": {"fq_name": "team_log.GuestAdminChangeStatusType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GuestAdminChangeStatusType", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminSignedInViaTrustedTeamsDetails.team_name": {"fq_name": "team_log.GuestAdminSignedInViaTrustedTeamsDetails.team_name", "param_name": "teamName", "static_instance": null, "getter_method": "getTeamName", "containing_data_type_ref": "team_log.GuestAdminSignedInViaTrustedTeamsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminSignedInViaTrustedTeamsDetails.trusted_team_name": {"fq_name": "team_log.GuestAdminSignedInViaTrustedTeamsDetails.trusted_team_name", "param_name": "trustedTeamName", "static_instance": null, "getter_method": "getTrustedTeamName", "containing_data_type_ref": "team_log.GuestAdminSignedInViaTrustedTeamsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminSignedInViaTrustedTeamsType.description": {"fq_name": "team_log.GuestAdminSignedInViaTrustedTeamsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GuestAdminSignedInViaTrustedTeamsType", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminSignedOutViaTrustedTeamsDetails.team_name": {"fq_name": "team_log.GuestAdminSignedOutViaTrustedTeamsDetails.team_name", "param_name": "teamName", "static_instance": null, "getter_method": "getTeamName", "containing_data_type_ref": "team_log.GuestAdminSignedOutViaTrustedTeamsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminSignedOutViaTrustedTeamsDetails.trusted_team_name": {"fq_name": "team_log.GuestAdminSignedOutViaTrustedTeamsDetails.trusted_team_name", "param_name": "trustedTeamName", "static_instance": null, "getter_method": "getTrustedTeamName", "containing_data_type_ref": "team_log.GuestAdminSignedOutViaTrustedTeamsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.GuestAdminSignedOutViaTrustedTeamsType.description": {"fq_name": "team_log.GuestAdminSignedOutViaTrustedTeamsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.GuestAdminSignedOutViaTrustedTeamsType", "route_refs": [], "_type": "FieldReference"}, "team_log.IdentifierType.email": {"fq_name": "team_log.IdentifierType.email", "param_name": "emailValue", "static_instance": "EMAIL", "getter_method": null, "containing_data_type_ref": "team_log.IdentifierType", "route_refs": [], "_type": "FieldReference"}, "team_log.IdentifierType.facebook_profile_name": {"fq_name": "team_log.IdentifierType.facebook_profile_name", "param_name": "facebookProfileNameValue", "static_instance": "FACEBOOK_PROFILE_NAME", "getter_method": null, "containing_data_type_ref": "team_log.IdentifierType", "route_refs": [], "_type": "FieldReference"}, "team_log.IdentifierType.other": {"fq_name": "team_log.IdentifierType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.IdentifierType", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationConnectedDetails.integration_name": {"fq_name": "team_log.IntegrationConnectedDetails.integration_name", "param_name": "integrationName", "static_instance": null, "getter_method": "getIntegrationName", "containing_data_type_ref": "team_log.IntegrationConnectedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationConnectedType.description": {"fq_name": "team_log.IntegrationConnectedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.IntegrationConnectedType", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationDisconnectedDetails.integration_name": {"fq_name": "team_log.IntegrationDisconnectedDetails.integration_name", "param_name": "integrationName", "static_instance": null, "getter_method": "getIntegrationName", "containing_data_type_ref": "team_log.IntegrationDisconnectedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationDisconnectedType.description": {"fq_name": "team_log.IntegrationDisconnectedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.IntegrationDisconnectedType", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationPolicy.disabled": {"fq_name": "team_log.IntegrationPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.IntegrationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationPolicy.enabled": {"fq_name": "team_log.IntegrationPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.IntegrationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationPolicy.other": {"fq_name": "team_log.IntegrationPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.IntegrationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationPolicyChangedDetails.integration_name": {"fq_name": "team_log.IntegrationPolicyChangedDetails.integration_name", "param_name": "integrationName", "static_instance": null, "getter_method": "getIntegrationName", "containing_data_type_ref": "team_log.IntegrationPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationPolicyChangedDetails.new_value": {"fq_name": "team_log.IntegrationPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.IntegrationPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationPolicyChangedDetails.previous_value": {"fq_name": "team_log.IntegrationPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.IntegrationPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.IntegrationPolicyChangedType.description": {"fq_name": "team_log.IntegrationPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.IntegrationPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteAcceptanceEmailPolicy.disabled": {"fq_name": "team_log.InviteAcceptanceEmailPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.InviteAcceptanceEmailPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteAcceptanceEmailPolicy.enabled": {"fq_name": "team_log.InviteAcceptanceEmailPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.InviteAcceptanceEmailPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteAcceptanceEmailPolicy.other": {"fq_name": "team_log.InviteAcceptanceEmailPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.InviteAcceptanceEmailPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteAcceptanceEmailPolicyChangedDetails.new_value": {"fq_name": "team_log.InviteAcceptanceEmailPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.InviteAcceptanceEmailPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteAcceptanceEmailPolicyChangedDetails.previous_value": {"fq_name": "team_log.InviteAcceptanceEmailPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.InviteAcceptanceEmailPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteAcceptanceEmailPolicyChangedType.description": {"fq_name": "team_log.InviteAcceptanceEmailPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.InviteAcceptanceEmailPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteMethod.auto_approve": {"fq_name": "team_log.InviteMethod.auto_approve", "param_name": "autoApproveValue", "static_instance": "AUTO_APPROVE", "getter_method": null, "containing_data_type_ref": "team_log.InviteMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteMethod.invite_link": {"fq_name": "team_log.InviteMethod.invite_link", "param_name": "inviteLinkValue", "static_instance": "INVITE_LINK", "getter_method": null, "containing_data_type_ref": "team_log.InviteMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteMethod.member_invite": {"fq_name": "team_log.InviteMethod.member_invite", "param_name": "memberInviteValue", "static_instance": "MEMBER_INVITE", "getter_method": null, "containing_data_type_ref": "team_log.InviteMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteMethod.moved_from_another_team": {"fq_name": "team_log.InviteMethod.moved_from_another_team", "param_name": "movedFromAnotherTeamValue", "static_instance": "MOVED_FROM_ANOTHER_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.InviteMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.InviteMethod.other": {"fq_name": "team_log.InviteMethod.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.InviteMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.linked_apps": {"fq_name": "team_log.JoinTeamDetails.linked_apps", "param_name": "linkedApps", "static_instance": null, "getter_method": "getLinkedApps", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.linked_devices": {"fq_name": "team_log.JoinTeamDetails.linked_devices", "param_name": "linkedDevices", "static_instance": null, "getter_method": "getLinkedDevices", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.linked_shared_folders": {"fq_name": "team_log.JoinTeamDetails.linked_shared_folders", "param_name": "linkedSharedFolders", "static_instance": null, "getter_method": "getLinkedSharedFolders", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.was_linked_apps_truncated": {"fq_name": "team_log.JoinTeamDetails.was_linked_apps_truncated", "param_name": "wasLinkedAppsTruncated", "static_instance": null, "getter_method": "getWasLinkedAppsTruncated", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.was_linked_devices_truncated": {"fq_name": "team_log.JoinTeamDetails.was_linked_devices_truncated", "param_name": "wasLinkedDevicesTruncated", "static_instance": null, "getter_method": "getWasLinkedDevicesTruncated", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.was_linked_shared_folders_truncated": {"fq_name": "team_log.JoinTeamDetails.was_linked_shared_folders_truncated", "param_name": "wasLinkedSharedFoldersTruncated", "static_instance": null, "getter_method": "getWasLinkedSharedFoldersTruncated", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.has_linked_apps": {"fq_name": "team_log.JoinTeamDetails.has_linked_apps", "param_name": "hasLinkedApps", "static_instance": null, "getter_method": "getHasLinkedApps", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.has_linked_devices": {"fq_name": "team_log.JoinTeamDetails.has_linked_devices", "param_name": "hasLinkedDevices", "static_instance": null, "getter_method": "getHasLinkedDevices", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.JoinTeamDetails.has_linked_shared_folders": {"fq_name": "team_log.JoinTeamDetails.has_linked_shared_folders", "param_name": "hasLinkedSharedFolders", "static_instance": null, "getter_method": "getHasLinkedSharedFolders", "containing_data_type_ref": "team_log.JoinTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LabelType.personal_information": {"fq_name": "team_log.LabelType.personal_information", "param_name": "personalInformationValue", "static_instance": "PERSONAL_INFORMATION", "getter_method": null, "containing_data_type_ref": "team_log.LabelType", "route_refs": [], "_type": "FieldReference"}, "team_log.LabelType.test_only": {"fq_name": "team_log.LabelType.test_only", "param_name": "testOnlyValue", "static_instance": "TEST_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.LabelType", "route_refs": [], "_type": "FieldReference"}, "team_log.LabelType.user_defined_tag": {"fq_name": "team_log.LabelType.user_defined_tag", "param_name": "userDefinedTagValue", "static_instance": "USER_DEFINED_TAG", "getter_method": null, "containing_data_type_ref": "team_log.LabelType", "route_refs": [], "_type": "FieldReference"}, "team_log.LabelType.other": {"fq_name": "team_log.LabelType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.LabelType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.ip_address": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.created": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.updated": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.session_info": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.session_info", "param_name": "sessionInfo", "static_instance": null, "getter_method": "getSessionInfo", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.display_name": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.is_emm_managed": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.is_emm_managed", "param_name": "isEmmManaged", "static_instance": null, "getter_method": "getIsEmmManaged", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.platform": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.platform", "param_name": "platform", "static_instance": null, "getter_method": "getPlatform", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.mac_address": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.mac_address", "param_name": "macAddress", "static_instance": null, "getter_method": "getMacAddress", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.os_version": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.os_version", "param_name": "osVersion", "static_instance": null, "getter_method": "getOsVersion", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.device_type": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.device_type", "param_name": "deviceType", "static_instance": null, "getter_method": "getDeviceType", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.client_version": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.client_version", "param_name": "clientVersion", "static_instance": null, "getter_method": "getClientVersion", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegacyDeviceSessionLogInfo.legacy_uniq_id": {"fq_name": "team_log.LegacyDeviceSessionLogInfo.legacy_uniq_id", "param_name": "legacyUniqId", "static_instance": null, "getter_method": "getLegacyUniqId", "containing_data_type_ref": "team_log.LegacyDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsActivateAHoldDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsActivateAHoldDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsActivateAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsActivateAHoldDetails.name": {"fq_name": "team_log.LegalHoldsActivateAHoldDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsActivateAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsActivateAHoldDetails.start_date": {"fq_name": "team_log.LegalHoldsActivateAHoldDetails.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team_log.LegalHoldsActivateAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsActivateAHoldDetails.end_date": {"fq_name": "team_log.LegalHoldsActivateAHoldDetails.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team_log.LegalHoldsActivateAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsActivateAHoldType.description": {"fq_name": "team_log.LegalHoldsActivateAHoldType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsActivateAHoldType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsAddMembersDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsAddMembersDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsAddMembersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsAddMembersDetails.name": {"fq_name": "team_log.LegalHoldsAddMembersDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsAddMembersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsAddMembersType.description": {"fq_name": "team_log.LegalHoldsAddMembersType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsAddMembersType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldDetailsDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsChangeHoldDetailsDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldDetailsDetails.name": {"fq_name": "team_log.LegalHoldsChangeHoldDetailsDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldDetailsDetails.previous_value": {"fq_name": "team_log.LegalHoldsChangeHoldDetailsDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldDetailsDetails.new_value": {"fq_name": "team_log.LegalHoldsChangeHoldDetailsDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldDetailsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldDetailsType.description": {"fq_name": "team_log.LegalHoldsChangeHoldDetailsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldDetailsType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldNameDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsChangeHoldNameDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldNameDetails.previous_value": {"fq_name": "team_log.LegalHoldsChangeHoldNameDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldNameDetails.new_value": {"fq_name": "team_log.LegalHoldsChangeHoldNameDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsChangeHoldNameType.description": {"fq_name": "team_log.LegalHoldsChangeHoldNameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsChangeHoldNameType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportAHoldDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsExportAHoldDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsExportAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportAHoldDetails.name": {"fq_name": "team_log.LegalHoldsExportAHoldDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsExportAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportAHoldDetails.export_name": {"fq_name": "team_log.LegalHoldsExportAHoldDetails.export_name", "param_name": "exportName", "static_instance": null, "getter_method": "getExportName", "containing_data_type_ref": "team_log.LegalHoldsExportAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportAHoldType.description": {"fq_name": "team_log.LegalHoldsExportAHoldType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsExportAHoldType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportCancelledDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsExportCancelledDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsExportCancelledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportCancelledDetails.name": {"fq_name": "team_log.LegalHoldsExportCancelledDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsExportCancelledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportCancelledDetails.export_name": {"fq_name": "team_log.LegalHoldsExportCancelledDetails.export_name", "param_name": "exportName", "static_instance": null, "getter_method": "getExportName", "containing_data_type_ref": "team_log.LegalHoldsExportCancelledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportCancelledType.description": {"fq_name": "team_log.LegalHoldsExportCancelledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsExportCancelledType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportDownloadedDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsExportDownloadedDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsExportDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportDownloadedDetails.name": {"fq_name": "team_log.LegalHoldsExportDownloadedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsExportDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportDownloadedDetails.export_name": {"fq_name": "team_log.LegalHoldsExportDownloadedDetails.export_name", "param_name": "exportName", "static_instance": null, "getter_method": "getExportName", "containing_data_type_ref": "team_log.LegalHoldsExportDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportDownloadedDetails.part": {"fq_name": "team_log.LegalHoldsExportDownloadedDetails.part", "param_name": "part", "static_instance": null, "getter_method": "getPart", "containing_data_type_ref": "team_log.LegalHoldsExportDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportDownloadedDetails.file_name": {"fq_name": "team_log.LegalHoldsExportDownloadedDetails.file_name", "param_name": "fileName", "static_instance": null, "getter_method": "getFileName", "containing_data_type_ref": "team_log.LegalHoldsExportDownloadedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportDownloadedType.description": {"fq_name": "team_log.LegalHoldsExportDownloadedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsExportDownloadedType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportRemovedDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsExportRemovedDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsExportRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportRemovedDetails.name": {"fq_name": "team_log.LegalHoldsExportRemovedDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsExportRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportRemovedDetails.export_name": {"fq_name": "team_log.LegalHoldsExportRemovedDetails.export_name", "param_name": "exportName", "static_instance": null, "getter_method": "getExportName", "containing_data_type_ref": "team_log.LegalHoldsExportRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsExportRemovedType.description": {"fq_name": "team_log.LegalHoldsExportRemovedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsExportRemovedType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsReleaseAHoldDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsReleaseAHoldDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsReleaseAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsReleaseAHoldDetails.name": {"fq_name": "team_log.LegalHoldsReleaseAHoldDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsReleaseAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsReleaseAHoldType.description": {"fq_name": "team_log.LegalHoldsReleaseAHoldType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsReleaseAHoldType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsRemoveMembersDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsRemoveMembersDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsRemoveMembersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsRemoveMembersDetails.name": {"fq_name": "team_log.LegalHoldsRemoveMembersDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsRemoveMembersDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsRemoveMembersType.description": {"fq_name": "team_log.LegalHoldsRemoveMembersType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsRemoveMembersType", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsReportAHoldDetails.legal_hold_id": {"fq_name": "team_log.LegalHoldsReportAHoldDetails.legal_hold_id", "param_name": "legalHoldId", "static_instance": null, "getter_method": "getLegalHoldId", "containing_data_type_ref": "team_log.LegalHoldsReportAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsReportAHoldDetails.name": {"fq_name": "team_log.LegalHoldsReportAHoldDetails.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "team_log.LegalHoldsReportAHoldDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LegalHoldsReportAHoldType.description": {"fq_name": "team_log.LegalHoldsReportAHoldType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LegalHoldsReportAHoldType", "route_refs": [], "_type": "FieldReference"}, "team_log.LinkedDeviceLogInfo.desktop_device_session": {"fq_name": "team_log.LinkedDeviceLogInfo.desktop_device_session", "param_name": "desktopDeviceSessionValue", "static_instance": null, "getter_method": "getDesktopDeviceSessionValue", "containing_data_type_ref": "team_log.LinkedDeviceLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LinkedDeviceLogInfo.legacy_device_session": {"fq_name": "team_log.LinkedDeviceLogInfo.legacy_device_session", "param_name": "legacyDeviceSessionValue", "static_instance": null, "getter_method": "getLegacyDeviceSessionValue", "containing_data_type_ref": "team_log.LinkedDeviceLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LinkedDeviceLogInfo.mobile_device_session": {"fq_name": "team_log.LinkedDeviceLogInfo.mobile_device_session", "param_name": "mobileDeviceSessionValue", "static_instance": null, "getter_method": "getMobileDeviceSessionValue", "containing_data_type_ref": "team_log.LinkedDeviceLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LinkedDeviceLogInfo.web_device_session": {"fq_name": "team_log.LinkedDeviceLogInfo.web_device_session", "param_name": "webDeviceSessionValue", "static_instance": null, "getter_method": "getWebDeviceSessionValue", "containing_data_type_ref": "team_log.LinkedDeviceLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LinkedDeviceLogInfo.other": {"fq_name": "team_log.LinkedDeviceLogInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.LinkedDeviceLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.LockStatus.locked": {"fq_name": "team_log.LockStatus.locked", "param_name": "lockedValue", "static_instance": "LOCKED", "getter_method": null, "containing_data_type_ref": "team_log.LockStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.LockStatus.unlocked": {"fq_name": "team_log.LockStatus.unlocked", "param_name": "unlockedValue", "static_instance": "UNLOCKED", "getter_method": null, "containing_data_type_ref": "team_log.LockStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.LockStatus.other": {"fq_name": "team_log.LockStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.LockStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginFailDetails.login_method": {"fq_name": "team_log.LoginFailDetails.login_method", "param_name": "loginMethod", "static_instance": null, "getter_method": "getLoginMethod", "containing_data_type_ref": "team_log.LoginFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginFailDetails.error_details": {"fq_name": "team_log.LoginFailDetails.error_details", "param_name": "errorDetails", "static_instance": null, "getter_method": "getErrorDetails", "containing_data_type_ref": "team_log.LoginFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginFailDetails.is_emm_managed": {"fq_name": "team_log.LoginFailDetails.is_emm_managed", "param_name": "isEmmManaged", "static_instance": null, "getter_method": "getIsEmmManaged", "containing_data_type_ref": "team_log.LoginFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginFailType.description": {"fq_name": "team_log.LoginFailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LoginFailType", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.apple_oauth": {"fq_name": "team_log.LoginMethod.apple_oauth", "param_name": "appleOauthValue", "static_instance": "APPLE_OAUTH", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.first_party_token_exchange": {"fq_name": "team_log.LoginMethod.first_party_token_exchange", "param_name": "firstPartyTokenExchangeValue", "static_instance": "FIRST_PARTY_TOKEN_EXCHANGE", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.google_oauth": {"fq_name": "team_log.LoginMethod.google_oauth", "param_name": "googleOauthValue", "static_instance": "GOOGLE_OAUTH", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.lenovo_oauth": {"fq_name": "team_log.LoginMethod.lenovo_oauth", "param_name": "lenovoOauthValue", "static_instance": "LENOVO_OAUTH", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.password": {"fq_name": "team_log.LoginMethod.password", "param_name": "passwordValue", "static_instance": "PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.qr_code": {"fq_name": "team_log.LoginMethod.qr_code", "param_name": "qrCodeValue", "static_instance": "QR_CODE", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.saml": {"fq_name": "team_log.LoginMethod.saml", "param_name": "samlValue", "static_instance": "SAML", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.two_factor_authentication": {"fq_name": "team_log.LoginMethod.two_factor_authentication", "param_name": "twoFactorAuthenticationValue", "static_instance": "TWO_FACTOR_AUTHENTICATION", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.web_session": {"fq_name": "team_log.LoginMethod.web_session", "param_name": "webSessionValue", "static_instance": "WEB_SESSION", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginMethod.other": {"fq_name": "team_log.LoginMethod.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.LoginMethod", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginSuccessDetails.login_method": {"fq_name": "team_log.LoginSuccessDetails.login_method", "param_name": "loginMethod", "static_instance": null, "getter_method": "getLoginMethod", "containing_data_type_ref": "team_log.LoginSuccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginSuccessDetails.is_emm_managed": {"fq_name": "team_log.LoginSuccessDetails.is_emm_managed", "param_name": "isEmmManaged", "static_instance": null, "getter_method": "getIsEmmManaged", "containing_data_type_ref": "team_log.LoginSuccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LoginSuccessType.description": {"fq_name": "team_log.LoginSuccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LoginSuccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.LogoutDetails.login_id": {"fq_name": "team_log.LogoutDetails.login_id", "param_name": "loginId", "static_instance": null, "getter_method": "getLoginId", "containing_data_type_ref": "team_log.LogoutDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.LogoutType.description": {"fq_name": "team_log.LogoutType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.LogoutType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberAddExternalIdDetails.new_value": {"fq_name": "team_log.MemberAddExternalIdDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberAddExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberAddExternalIdType.description": {"fq_name": "team_log.MemberAddExternalIdType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberAddExternalIdType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberAddNameDetails.new_value": {"fq_name": "team_log.MemberAddNameDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberAddNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberAddNameType.description": {"fq_name": "team_log.MemberAddNameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberAddNameType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeAdminRoleDetails.new_value": {"fq_name": "team_log.MemberChangeAdminRoleDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberChangeAdminRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeAdminRoleDetails.previous_value": {"fq_name": "team_log.MemberChangeAdminRoleDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberChangeAdminRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeAdminRoleType.description": {"fq_name": "team_log.MemberChangeAdminRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberChangeAdminRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeEmailDetails.new_value": {"fq_name": "team_log.MemberChangeEmailDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberChangeEmailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeEmailDetails.previous_value": {"fq_name": "team_log.MemberChangeEmailDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberChangeEmailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeEmailType.description": {"fq_name": "team_log.MemberChangeEmailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberChangeEmailType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeExternalIdDetails.new_value": {"fq_name": "team_log.MemberChangeExternalIdDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberChangeExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeExternalIdDetails.previous_value": {"fq_name": "team_log.MemberChangeExternalIdDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberChangeExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeExternalIdType.description": {"fq_name": "team_log.MemberChangeExternalIdType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberChangeExternalIdType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeMembershipTypeDetails.prev_value": {"fq_name": "team_log.MemberChangeMembershipTypeDetails.prev_value", "param_name": "prevValue", "static_instance": null, "getter_method": "getPrevValue", "containing_data_type_ref": "team_log.MemberChangeMembershipTypeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeMembershipTypeDetails.new_value": {"fq_name": "team_log.MemberChangeMembershipTypeDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberChangeMembershipTypeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeMembershipTypeType.description": {"fq_name": "team_log.MemberChangeMembershipTypeType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberChangeMembershipTypeType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeNameDetails.new_value": {"fq_name": "team_log.MemberChangeNameDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberChangeNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeNameDetails.previous_value": {"fq_name": "team_log.MemberChangeNameDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberChangeNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeNameType.description": {"fq_name": "team_log.MemberChangeNameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberChangeNameType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeResellerRoleDetails.new_value": {"fq_name": "team_log.MemberChangeResellerRoleDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberChangeResellerRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeResellerRoleDetails.previous_value": {"fq_name": "team_log.MemberChangeResellerRoleDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberChangeResellerRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeResellerRoleType.description": {"fq_name": "team_log.MemberChangeResellerRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberChangeResellerRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeStatusDetails.new_value": {"fq_name": "team_log.MemberChangeStatusDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeStatusDetails.previous_value": {"fq_name": "team_log.MemberChangeStatusDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeStatusDetails.action": {"fq_name": "team_log.MemberChangeStatusDetails.action", "param_name": "action", "static_instance": null, "getter_method": "getAction", "containing_data_type_ref": "team_log.MemberChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeStatusDetails.new_team": {"fq_name": "team_log.MemberChangeStatusDetails.new_team", "param_name": "newTeam", "static_instance": null, "getter_method": "getNewTeam", "containing_data_type_ref": "team_log.MemberChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeStatusDetails.previous_team": {"fq_name": "team_log.MemberChangeStatusDetails.previous_team", "param_name": "previousTeam", "static_instance": null, "getter_method": "getPreviousTeam", "containing_data_type_ref": "team_log.MemberChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberChangeStatusType.description": {"fq_name": "team_log.MemberChangeStatusType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberChangeStatusType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberDeleteManualContactsType.description": {"fq_name": "team_log.MemberDeleteManualContactsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberDeleteManualContactsType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberDeleteProfilePhotoType.description": {"fq_name": "team_log.MemberDeleteProfilePhotoType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberDeleteProfilePhotoType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberPermanentlyDeleteAccountContentsType.description": {"fq_name": "team_log.MemberPermanentlyDeleteAccountContentsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberPermanentlyDeleteAccountContentsType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRemoveActionType.delete": {"fq_name": "team_log.MemberRemoveActionType.delete", "param_name": "deleteValue", "static_instance": "DELETE", "getter_method": null, "containing_data_type_ref": "team_log.MemberRemoveActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRemoveActionType.leave": {"fq_name": "team_log.MemberRemoveActionType.leave", "param_name": "leaveValue", "static_instance": "LEAVE", "getter_method": null, "containing_data_type_ref": "team_log.MemberRemoveActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRemoveActionType.offboard": {"fq_name": "team_log.MemberRemoveActionType.offboard", "param_name": "offboardValue", "static_instance": "OFFBOARD", "getter_method": null, "containing_data_type_ref": "team_log.MemberRemoveActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRemoveActionType.offboard_and_retain_team_folders": {"fq_name": "team_log.MemberRemoveActionType.offboard_and_retain_team_folders", "param_name": "offboardAndRetainTeamFoldersValue", "static_instance": "OFFBOARD_AND_RETAIN_TEAM_FOLDERS", "getter_method": null, "containing_data_type_ref": "team_log.MemberRemoveActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRemoveActionType.other": {"fq_name": "team_log.MemberRemoveActionType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.MemberRemoveActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRemoveExternalIdDetails.previous_value": {"fq_name": "team_log.MemberRemoveExternalIdDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberRemoveExternalIdDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRemoveExternalIdType.description": {"fq_name": "team_log.MemberRemoveExternalIdType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberRemoveExternalIdType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRequestsChangePolicyDetails.new_value": {"fq_name": "team_log.MemberRequestsChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberRequestsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRequestsChangePolicyDetails.previous_value": {"fq_name": "team_log.MemberRequestsChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberRequestsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRequestsChangePolicyType.description": {"fq_name": "team_log.MemberRequestsChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberRequestsChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRequestsPolicy.auto_accept": {"fq_name": "team_log.MemberRequestsPolicy.auto_accept", "param_name": "autoAcceptValue", "static_instance": "AUTO_ACCEPT", "getter_method": null, "containing_data_type_ref": "team_log.MemberRequestsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRequestsPolicy.disabled": {"fq_name": "team_log.MemberRequestsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.MemberRequestsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRequestsPolicy.require_approval": {"fq_name": "team_log.MemberRequestsPolicy.require_approval", "param_name": "requireApprovalValue", "static_instance": "REQUIRE_APPROVAL", "getter_method": null, "containing_data_type_ref": "team_log.MemberRequestsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberRequestsPolicy.other": {"fq_name": "team_log.MemberRequestsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.MemberRequestsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSendInvitePolicy.disabled": {"fq_name": "team_log.MemberSendInvitePolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.MemberSendInvitePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSendInvitePolicy.everyone": {"fq_name": "team_log.MemberSendInvitePolicy.everyone", "param_name": "everyoneValue", "static_instance": "EVERYONE", "getter_method": null, "containing_data_type_ref": "team_log.MemberSendInvitePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSendInvitePolicy.specific_members": {"fq_name": "team_log.MemberSendInvitePolicy.specific_members", "param_name": "specificMembersValue", "static_instance": "SPECIFIC_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.MemberSendInvitePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSendInvitePolicy.other": {"fq_name": "team_log.MemberSendInvitePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.MemberSendInvitePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSendInvitePolicyChangedDetails.new_value": {"fq_name": "team_log.MemberSendInvitePolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberSendInvitePolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSendInvitePolicyChangedDetails.previous_value": {"fq_name": "team_log.MemberSendInvitePolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberSendInvitePolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSendInvitePolicyChangedType.description": {"fq_name": "team_log.MemberSendInvitePolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSendInvitePolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSetProfilePhotoType.description": {"fq_name": "team_log.MemberSetProfilePhotoType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSetProfilePhotoType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsAddCustomQuotaDetails.new_value": {"fq_name": "team_log.MemberSpaceLimitsAddCustomQuotaDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsAddCustomQuotaDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsAddCustomQuotaType.description": {"fq_name": "team_log.MemberSpaceLimitsAddCustomQuotaType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsAddCustomQuotaType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsAddExceptionType.description": {"fq_name": "team_log.MemberSpaceLimitsAddExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsAddExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.previous_value": {"fq_name": "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.new_value": {"fq_name": "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeCapsTypePolicyType.description": {"fq_name": "team_log.MemberSpaceLimitsChangeCapsTypePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeCapsTypePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeCustomQuotaDetails.previous_value": {"fq_name": "team_log.MemberSpaceLimitsChangeCustomQuotaDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeCustomQuotaDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeCustomQuotaDetails.new_value": {"fq_name": "team_log.MemberSpaceLimitsChangeCustomQuotaDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeCustomQuotaDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeCustomQuotaType.description": {"fq_name": "team_log.MemberSpaceLimitsChangeCustomQuotaType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeCustomQuotaType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangePolicyDetails.previous_value": {"fq_name": "team_log.MemberSpaceLimitsChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangePolicyDetails.new_value": {"fq_name": "team_log.MemberSpaceLimitsChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangePolicyType.description": {"fq_name": "team_log.MemberSpaceLimitsChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeStatusDetails.previous_value": {"fq_name": "team_log.MemberSpaceLimitsChangeStatusDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeStatusDetails.new_value": {"fq_name": "team_log.MemberSpaceLimitsChangeStatusDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsChangeStatusType.description": {"fq_name": "team_log.MemberSpaceLimitsChangeStatusType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsChangeStatusType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsRemoveCustomQuotaType.description": {"fq_name": "team_log.MemberSpaceLimitsRemoveCustomQuotaType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsRemoveCustomQuotaType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSpaceLimitsRemoveExceptionType.description": {"fq_name": "team_log.MemberSpaceLimitsRemoveExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSpaceLimitsRemoveExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberStatus.active": {"fq_name": "team_log.MemberStatus.active", "param_name": "activeValue", "static_instance": "ACTIVE", "getter_method": null, "containing_data_type_ref": "team_log.MemberStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberStatus.invited": {"fq_name": "team_log.MemberStatus.invited", "param_name": "invitedValue", "static_instance": "INVITED", "getter_method": null, "containing_data_type_ref": "team_log.MemberStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberStatus.moved_to_another_team": {"fq_name": "team_log.MemberStatus.moved_to_another_team", "param_name": "movedToAnotherTeamValue", "static_instance": "MOVED_TO_ANOTHER_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.MemberStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberStatus.not_joined": {"fq_name": "team_log.MemberStatus.not_joined", "param_name": "notJoinedValue", "static_instance": "NOT_JOINED", "getter_method": null, "containing_data_type_ref": "team_log.MemberStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberStatus.removed": {"fq_name": "team_log.MemberStatus.removed", "param_name": "removedValue", "static_instance": "REMOVED", "getter_method": null, "containing_data_type_ref": "team_log.MemberStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberStatus.suspended": {"fq_name": "team_log.MemberStatus.suspended", "param_name": "suspendedValue", "static_instance": "SUSPENDED", "getter_method": null, "containing_data_type_ref": "team_log.MemberStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberStatus.other": {"fq_name": "team_log.MemberStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.MemberStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestDetails.suggested_members": {"fq_name": "team_log.MemberSuggestDetails.suggested_members", "param_name": "suggestedMembers", "static_instance": null, "getter_method": "getSuggestedMembers", "containing_data_type_ref": "team_log.MemberSuggestDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestType.description": {"fq_name": "team_log.MemberSuggestType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSuggestType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestionsChangePolicyDetails.new_value": {"fq_name": "team_log.MemberSuggestionsChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MemberSuggestionsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestionsChangePolicyDetails.previous_value": {"fq_name": "team_log.MemberSuggestionsChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MemberSuggestionsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestionsChangePolicyType.description": {"fq_name": "team_log.MemberSuggestionsChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberSuggestionsChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestionsPolicy.disabled": {"fq_name": "team_log.MemberSuggestionsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.MemberSuggestionsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestionsPolicy.enabled": {"fq_name": "team_log.MemberSuggestionsPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.MemberSuggestionsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberSuggestionsPolicy.other": {"fq_name": "team_log.MemberSuggestionsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.MemberSuggestionsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberTransferAccountContentsType.description": {"fq_name": "team_log.MemberTransferAccountContentsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MemberTransferAccountContentsType", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberTransferredInternalFields.source_team_id": {"fq_name": "team_log.MemberTransferredInternalFields.source_team_id", "param_name": "sourceTeamId", "static_instance": null, "getter_method": "getSourceTeamId", "containing_data_type_ref": "team_log.MemberTransferredInternalFields", "route_refs": [], "_type": "FieldReference"}, "team_log.MemberTransferredInternalFields.target_team_id": {"fq_name": "team_log.MemberTransferredInternalFields.target_team_id", "param_name": "targetTeamId", "static_instance": null, "getter_method": "getTargetTeamId", "containing_data_type_ref": "team_log.MemberTransferredInternalFields", "route_refs": [], "_type": "FieldReference"}, "team_log.MicrosoftOfficeAddinChangePolicyDetails.new_value": {"fq_name": "team_log.MicrosoftOfficeAddinChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.MicrosoftOfficeAddinChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MicrosoftOfficeAddinChangePolicyDetails.previous_value": {"fq_name": "team_log.MicrosoftOfficeAddinChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.MicrosoftOfficeAddinChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MicrosoftOfficeAddinChangePolicyType.description": {"fq_name": "team_log.MicrosoftOfficeAddinChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.MicrosoftOfficeAddinChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.MicrosoftOfficeAddinPolicy.disabled": {"fq_name": "team_log.MicrosoftOfficeAddinPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.MicrosoftOfficeAddinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MicrosoftOfficeAddinPolicy.enabled": {"fq_name": "team_log.MicrosoftOfficeAddinPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.MicrosoftOfficeAddinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MicrosoftOfficeAddinPolicy.other": {"fq_name": "team_log.MicrosoftOfficeAddinPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.MicrosoftOfficeAddinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.MissingDetails.source_event_fields": {"fq_name": "team_log.MissingDetails.source_event_fields", "param_name": "sourceEventFields", "static_instance": null, "getter_method": "getSourceEventFields", "containing_data_type_ref": "team_log.MissingDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.device_name": {"fq_name": "team_log.MobileDeviceSessionLogInfo.device_name", "param_name": "deviceName", "static_instance": null, "getter_method": "getDeviceName", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.client_type": {"fq_name": "team_log.MobileDeviceSessionLogInfo.client_type", "param_name": "clientType", "static_instance": null, "getter_method": "getClientType", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.ip_address": {"fq_name": "team_log.MobileDeviceSessionLogInfo.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.created": {"fq_name": "team_log.MobileDeviceSessionLogInfo.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.updated": {"fq_name": "team_log.MobileDeviceSessionLogInfo.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.session_info": {"fq_name": "team_log.MobileDeviceSessionLogInfo.session_info", "param_name": "sessionInfo", "static_instance": null, "getter_method": "getSessionInfo", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.client_version": {"fq_name": "team_log.MobileDeviceSessionLogInfo.client_version", "param_name": "clientVersion", "static_instance": null, "getter_method": "getClientVersion", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.os_version": {"fq_name": "team_log.MobileDeviceSessionLogInfo.os_version", "param_name": "osVersion", "static_instance": null, "getter_method": "getOsVersion", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileDeviceSessionLogInfo.last_carrier": {"fq_name": "team_log.MobileDeviceSessionLogInfo.last_carrier", "param_name": "lastCarrier", "static_instance": null, "getter_method": "getLastCarrier", "containing_data_type_ref": "team_log.MobileDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.MobileSessionLogInfo.session_id": {"fq_name": "team_log.MobileSessionLogInfo.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team_log.MobileSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.NamespaceRelativePathLogInfo.ns_id": {"fq_name": "team_log.NamespaceRelativePathLogInfo.ns_id", "param_name": "nsId", "static_instance": null, "getter_method": "getNsId", "containing_data_type_ref": "team_log.NamespaceRelativePathLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.NamespaceRelativePathLogInfo.relative_path": {"fq_name": "team_log.NamespaceRelativePathLogInfo.relative_path", "param_name": "relativePath", "static_instance": null, "getter_method": "getRelativePath", "containing_data_type_ref": "team_log.NamespaceRelativePathLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.NamespaceRelativePathLogInfo.is_shared_namespace": {"fq_name": "team_log.NamespaceRelativePathLogInfo.is_shared_namespace", "param_name": "isSharedNamespace", "static_instance": null, "getter_method": "getIsSharedNamespace", "containing_data_type_ref": "team_log.NamespaceRelativePathLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.NetworkControlChangePolicyDetails.new_value": {"fq_name": "team_log.NetworkControlChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.NetworkControlChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NetworkControlChangePolicyDetails.previous_value": {"fq_name": "team_log.NetworkControlChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.NetworkControlChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NetworkControlChangePolicyType.description": {"fq_name": "team_log.NetworkControlChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NetworkControlChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.NetworkControlPolicy.disabled": {"fq_name": "team_log.NetworkControlPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.NetworkControlPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.NetworkControlPolicy.enabled": {"fq_name": "team_log.NetworkControlPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.NetworkControlPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.NetworkControlPolicy.other": {"fq_name": "team_log.NetworkControlPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.NetworkControlPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.NoExpirationLinkGenCreateReportDetails.start_date": {"fq_name": "team_log.NoExpirationLinkGenCreateReportDetails.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team_log.NoExpirationLinkGenCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoExpirationLinkGenCreateReportDetails.end_date": {"fq_name": "team_log.NoExpirationLinkGenCreateReportDetails.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team_log.NoExpirationLinkGenCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoExpirationLinkGenCreateReportType.description": {"fq_name": "team_log.NoExpirationLinkGenCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoExpirationLinkGenCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoExpirationLinkGenReportFailedDetails.failure_reason": {"fq_name": "team_log.NoExpirationLinkGenReportFailedDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.NoExpirationLinkGenReportFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoExpirationLinkGenReportFailedType.description": {"fq_name": "team_log.NoExpirationLinkGenReportFailedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoExpirationLinkGenReportFailedType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkGenCreateReportDetails.start_date": {"fq_name": "team_log.NoPasswordLinkGenCreateReportDetails.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team_log.NoPasswordLinkGenCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkGenCreateReportDetails.end_date": {"fq_name": "team_log.NoPasswordLinkGenCreateReportDetails.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team_log.NoPasswordLinkGenCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkGenCreateReportType.description": {"fq_name": "team_log.NoPasswordLinkGenCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoPasswordLinkGenCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkGenReportFailedDetails.failure_reason": {"fq_name": "team_log.NoPasswordLinkGenReportFailedDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.NoPasswordLinkGenReportFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkGenReportFailedType.description": {"fq_name": "team_log.NoPasswordLinkGenReportFailedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoPasswordLinkGenReportFailedType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkViewCreateReportDetails.start_date": {"fq_name": "team_log.NoPasswordLinkViewCreateReportDetails.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team_log.NoPasswordLinkViewCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkViewCreateReportDetails.end_date": {"fq_name": "team_log.NoPasswordLinkViewCreateReportDetails.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team_log.NoPasswordLinkViewCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkViewCreateReportType.description": {"fq_name": "team_log.NoPasswordLinkViewCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoPasswordLinkViewCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkViewReportFailedDetails.failure_reason": {"fq_name": "team_log.NoPasswordLinkViewReportFailedDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.NoPasswordLinkViewReportFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoPasswordLinkViewReportFailedType.description": {"fq_name": "team_log.NoPasswordLinkViewReportFailedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoPasswordLinkViewReportFailedType", "route_refs": [], "_type": "FieldReference"}, "team_log.NonTeamMemberLogInfo.account_id": {"fq_name": "team_log.NonTeamMemberLogInfo.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "team_log.NonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.NonTeamMemberLogInfo.display_name": {"fq_name": "team_log.NonTeamMemberLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.NonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.NonTeamMemberLogInfo.email": {"fq_name": "team_log.NonTeamMemberLogInfo.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "team_log.NonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.NonTrustedTeamDetails.team": {"fq_name": "team_log.NonTrustedTeamDetails.team", "param_name": "team", "static_instance": null, "getter_method": "getTeam", "containing_data_type_ref": "team_log.NonTrustedTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.NoteAclInviteOnlyType.description": {"fq_name": "team_log.NoteAclInviteOnlyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoteAclInviteOnlyType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoteAclLinkType.description": {"fq_name": "team_log.NoteAclLinkType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoteAclLinkType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoteAclTeamLinkType.description": {"fq_name": "team_log.NoteAclTeamLinkType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoteAclTeamLinkType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoteShareReceiveType.description": {"fq_name": "team_log.NoteShareReceiveType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoteShareReceiveType", "route_refs": [], "_type": "FieldReference"}, "team_log.NoteSharedType.description": {"fq_name": "team_log.NoteSharedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.NoteSharedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ObjectLabelAddedDetails.label_type": {"fq_name": "team_log.ObjectLabelAddedDetails.label_type", "param_name": "labelType", "static_instance": null, "getter_method": "getLabelType", "containing_data_type_ref": "team_log.ObjectLabelAddedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ObjectLabelAddedType.description": {"fq_name": "team_log.ObjectLabelAddedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ObjectLabelAddedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ObjectLabelRemovedDetails.label_type": {"fq_name": "team_log.ObjectLabelRemovedDetails.label_type", "param_name": "labelType", "static_instance": null, "getter_method": "getLabelType", "containing_data_type_ref": "team_log.ObjectLabelRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ObjectLabelRemovedType.description": {"fq_name": "team_log.ObjectLabelRemovedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ObjectLabelRemovedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ObjectLabelUpdatedValueDetails.label_type": {"fq_name": "team_log.ObjectLabelUpdatedValueDetails.label_type", "param_name": "labelType", "static_instance": null, "getter_method": "getLabelType", "containing_data_type_ref": "team_log.ObjectLabelUpdatedValueDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ObjectLabelUpdatedValueType.description": {"fq_name": "team_log.ObjectLabelUpdatedValueType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ObjectLabelUpdatedValueType", "route_refs": [], "_type": "FieldReference"}, "team_log.OpenNoteSharedType.description": {"fq_name": "team_log.OpenNoteSharedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.OpenNoteSharedType", "route_refs": [], "_type": "FieldReference"}, "team_log.OrganizationDetails.organization": {"fq_name": "team_log.OrganizationDetails.organization", "param_name": "organization", "static_instance": null, "getter_method": "getOrganization", "containing_data_type_ref": "team_log.OrganizationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.OrganizationName.organization": {"fq_name": "team_log.OrganizationName.organization", "param_name": "organization", "static_instance": null, "getter_method": "getOrganization", "containing_data_type_ref": "team_log.OrganizationName", "route_refs": [], "_type": "FieldReference"}, "team_log.OrganizeFolderWithTidyType.description": {"fq_name": "team_log.OrganizeFolderWithTidyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.OrganizeFolderWithTidyType", "route_refs": [], "_type": "FieldReference"}, "team_log.OriginLogInfo.access_method": {"fq_name": "team_log.OriginLogInfo.access_method", "param_name": "accessMethod", "static_instance": null, "getter_method": "getAccessMethod", "containing_data_type_ref": "team_log.OriginLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.OriginLogInfo.geo_location": {"fq_name": "team_log.OriginLogInfo.geo_location", "param_name": "geoLocation", "static_instance": null, "getter_method": "getGeoLocation", "containing_data_type_ref": "team_log.OriginLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.OutdatedLinkViewCreateReportDetails.start_date": {"fq_name": "team_log.OutdatedLinkViewCreateReportDetails.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team_log.OutdatedLinkViewCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.OutdatedLinkViewCreateReportDetails.end_date": {"fq_name": "team_log.OutdatedLinkViewCreateReportDetails.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team_log.OutdatedLinkViewCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.OutdatedLinkViewCreateReportType.description": {"fq_name": "team_log.OutdatedLinkViewCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.OutdatedLinkViewCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.OutdatedLinkViewReportFailedDetails.failure_reason": {"fq_name": "team_log.OutdatedLinkViewReportFailedDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.OutdatedLinkViewReportFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.OutdatedLinkViewReportFailedType.description": {"fq_name": "team_log.OutdatedLinkViewReportFailedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.OutdatedLinkViewReportFailedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperAccessType.commenter": {"fq_name": "team_log.PaperAccessType.commenter", "param_name": "commenterValue", "static_instance": "COMMENTER", "getter_method": null, "containing_data_type_ref": "team_log.PaperAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperAccessType.editor": {"fq_name": "team_log.PaperAccessType.editor", "param_name": "editorValue", "static_instance": "EDITOR", "getter_method": null, "containing_data_type_ref": "team_log.PaperAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperAccessType.viewer": {"fq_name": "team_log.PaperAccessType.viewer", "param_name": "viewerValue", "static_instance": "VIEWER", "getter_method": null, "containing_data_type_ref": "team_log.PaperAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperAccessType.other": {"fq_name": "team_log.PaperAccessType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PaperAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperAdminExportStartType.description": {"fq_name": "team_log.PaperAdminExportStartType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperAdminExportStartType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeDeploymentPolicyDetails.new_value": {"fq_name": "team_log.PaperChangeDeploymentPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PaperChangeDeploymentPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeDeploymentPolicyDetails.previous_value": {"fq_name": "team_log.PaperChangeDeploymentPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.PaperChangeDeploymentPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeDeploymentPolicyType.description": {"fq_name": "team_log.PaperChangeDeploymentPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperChangeDeploymentPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeMemberLinkPolicyDetails.new_value": {"fq_name": "team_log.PaperChangeMemberLinkPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PaperChangeMemberLinkPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeMemberLinkPolicyType.description": {"fq_name": "team_log.PaperChangeMemberLinkPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperChangeMemberLinkPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeMemberPolicyDetails.new_value": {"fq_name": "team_log.PaperChangeMemberPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PaperChangeMemberPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeMemberPolicyDetails.previous_value": {"fq_name": "team_log.PaperChangeMemberPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.PaperChangeMemberPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangeMemberPolicyType.description": {"fq_name": "team_log.PaperChangeMemberPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperChangeMemberPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangePolicyDetails.new_value": {"fq_name": "team_log.PaperChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PaperChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangePolicyDetails.previous_value": {"fq_name": "team_log.PaperChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.PaperChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperChangePolicyType.description": {"fq_name": "team_log.PaperChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentAddMemberDetails.event_uuid": {"fq_name": "team_log.PaperContentAddMemberDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentAddMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentAddMemberType.description": {"fq_name": "team_log.PaperContentAddMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentAddMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentAddToFolderDetails.event_uuid": {"fq_name": "team_log.PaperContentAddToFolderDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentAddToFolderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentAddToFolderDetails.target_asset_index": {"fq_name": "team_log.PaperContentAddToFolderDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.PaperContentAddToFolderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentAddToFolderDetails.parent_asset_index": {"fq_name": "team_log.PaperContentAddToFolderDetails.parent_asset_index", "param_name": "parentAssetIndex", "static_instance": null, "getter_method": "getParentAssetIndex", "containing_data_type_ref": "team_log.PaperContentAddToFolderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentAddToFolderType.description": {"fq_name": "team_log.PaperContentAddToFolderType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentAddToFolderType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentArchiveDetails.event_uuid": {"fq_name": "team_log.PaperContentArchiveDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentArchiveDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentArchiveType.description": {"fq_name": "team_log.PaperContentArchiveType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentArchiveType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentCreateDetails.event_uuid": {"fq_name": "team_log.PaperContentCreateDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentCreateType.description": {"fq_name": "team_log.PaperContentCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentPermanentlyDeleteDetails.event_uuid": {"fq_name": "team_log.PaperContentPermanentlyDeleteDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentPermanentlyDeleteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentPermanentlyDeleteType.description": {"fq_name": "team_log.PaperContentPermanentlyDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentPermanentlyDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRemoveFromFolderDetails.event_uuid": {"fq_name": "team_log.PaperContentRemoveFromFolderDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentRemoveFromFolderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRemoveFromFolderDetails.target_asset_index": {"fq_name": "team_log.PaperContentRemoveFromFolderDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.PaperContentRemoveFromFolderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRemoveFromFolderDetails.parent_asset_index": {"fq_name": "team_log.PaperContentRemoveFromFolderDetails.parent_asset_index", "param_name": "parentAssetIndex", "static_instance": null, "getter_method": "getParentAssetIndex", "containing_data_type_ref": "team_log.PaperContentRemoveFromFolderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRemoveFromFolderType.description": {"fq_name": "team_log.PaperContentRemoveFromFolderType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentRemoveFromFolderType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRemoveMemberDetails.event_uuid": {"fq_name": "team_log.PaperContentRemoveMemberDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentRemoveMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRemoveMemberType.description": {"fq_name": "team_log.PaperContentRemoveMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentRemoveMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRenameDetails.event_uuid": {"fq_name": "team_log.PaperContentRenameDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentRenameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRenameType.description": {"fq_name": "team_log.PaperContentRenameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentRenameType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRestoreDetails.event_uuid": {"fq_name": "team_log.PaperContentRestoreDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperContentRestoreDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperContentRestoreType.description": {"fq_name": "team_log.PaperContentRestoreType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperContentRestoreType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDefaultFolderPolicy.everyone_in_team": {"fq_name": "team_log.PaperDefaultFolderPolicy.everyone_in_team", "param_name": "everyoneInTeamValue", "static_instance": "EVERYONE_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.PaperDefaultFolderPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDefaultFolderPolicy.invite_only": {"fq_name": "team_log.PaperDefaultFolderPolicy.invite_only", "param_name": "inviteOnlyValue", "static_instance": "INVITE_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.PaperDefaultFolderPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDefaultFolderPolicy.other": {"fq_name": "team_log.PaperDefaultFolderPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PaperDefaultFolderPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDefaultFolderPolicyChangedDetails.new_value": {"fq_name": "team_log.PaperDefaultFolderPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PaperDefaultFolderPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDefaultFolderPolicyChangedDetails.previous_value": {"fq_name": "team_log.PaperDefaultFolderPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.PaperDefaultFolderPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDefaultFolderPolicyChangedType.description": {"fq_name": "team_log.PaperDefaultFolderPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDefaultFolderPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDesktopPolicy.disabled": {"fq_name": "team_log.PaperDesktopPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.PaperDesktopPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDesktopPolicy.enabled": {"fq_name": "team_log.PaperDesktopPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.PaperDesktopPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDesktopPolicy.other": {"fq_name": "team_log.PaperDesktopPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PaperDesktopPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDesktopPolicyChangedDetails.new_value": {"fq_name": "team_log.PaperDesktopPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PaperDesktopPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDesktopPolicyChangedDetails.previous_value": {"fq_name": "team_log.PaperDesktopPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.PaperDesktopPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDesktopPolicyChangedType.description": {"fq_name": "team_log.PaperDesktopPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDesktopPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocAddCommentDetails.event_uuid": {"fq_name": "team_log.PaperDocAddCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocAddCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocAddCommentDetails.comment_text": {"fq_name": "team_log.PaperDocAddCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.PaperDocAddCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocAddCommentType.description": {"fq_name": "team_log.PaperDocAddCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocAddCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeMemberRoleDetails.event_uuid": {"fq_name": "team_log.PaperDocChangeMemberRoleDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocChangeMemberRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeMemberRoleDetails.access_type": {"fq_name": "team_log.PaperDocChangeMemberRoleDetails.access_type", "param_name": "accessType", "static_instance": null, "getter_method": "getAccessType", "containing_data_type_ref": "team_log.PaperDocChangeMemberRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeMemberRoleType.description": {"fq_name": "team_log.PaperDocChangeMemberRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocChangeMemberRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSharingPolicyDetails.event_uuid": {"fq_name": "team_log.PaperDocChangeSharingPolicyDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocChangeSharingPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSharingPolicyDetails.public_sharing_policy": {"fq_name": "team_log.PaperDocChangeSharingPolicyDetails.public_sharing_policy", "param_name": "publicSharingPolicy", "static_instance": null, "getter_method": "getPublicSharingPolicy", "containing_data_type_ref": "team_log.PaperDocChangeSharingPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSharingPolicyDetails.team_sharing_policy": {"fq_name": "team_log.PaperDocChangeSharingPolicyDetails.team_sharing_policy", "param_name": "teamSharingPolicy", "static_instance": null, "getter_method": "getTeamSharingPolicy", "containing_data_type_ref": "team_log.PaperDocChangeSharingPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSharingPolicyType.description": {"fq_name": "team_log.PaperDocChangeSharingPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocChangeSharingPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSubscriptionDetails.event_uuid": {"fq_name": "team_log.PaperDocChangeSubscriptionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocChangeSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSubscriptionDetails.new_subscription_level": {"fq_name": "team_log.PaperDocChangeSubscriptionDetails.new_subscription_level", "param_name": "newSubscriptionLevel", "static_instance": null, "getter_method": "getNewSubscriptionLevel", "containing_data_type_ref": "team_log.PaperDocChangeSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSubscriptionDetails.previous_subscription_level": {"fq_name": "team_log.PaperDocChangeSubscriptionDetails.previous_subscription_level", "param_name": "previousSubscriptionLevel", "static_instance": null, "getter_method": "getPreviousSubscriptionLevel", "containing_data_type_ref": "team_log.PaperDocChangeSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocChangeSubscriptionType.description": {"fq_name": "team_log.PaperDocChangeSubscriptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocChangeSubscriptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDeleteCommentDetails.event_uuid": {"fq_name": "team_log.PaperDocDeleteCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocDeleteCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDeleteCommentDetails.comment_text": {"fq_name": "team_log.PaperDocDeleteCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.PaperDocDeleteCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDeleteCommentType.description": {"fq_name": "team_log.PaperDocDeleteCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocDeleteCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDeletedDetails.event_uuid": {"fq_name": "team_log.PaperDocDeletedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocDeletedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDeletedType.description": {"fq_name": "team_log.PaperDocDeletedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocDeletedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDownloadDetails.event_uuid": {"fq_name": "team_log.PaperDocDownloadDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDownloadDetails.export_file_format": {"fq_name": "team_log.PaperDocDownloadDetails.export_file_format", "param_name": "exportFileFormat", "static_instance": null, "getter_method": "getExportFileFormat", "containing_data_type_ref": "team_log.PaperDocDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocDownloadType.description": {"fq_name": "team_log.PaperDocDownloadType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocDownloadType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocEditCommentDetails.event_uuid": {"fq_name": "team_log.PaperDocEditCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocEditCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocEditCommentDetails.comment_text": {"fq_name": "team_log.PaperDocEditCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.PaperDocEditCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocEditCommentType.description": {"fq_name": "team_log.PaperDocEditCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocEditCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocEditDetails.event_uuid": {"fq_name": "team_log.PaperDocEditDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocEditDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocEditType.description": {"fq_name": "team_log.PaperDocEditType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocEditType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocFollowedDetails.event_uuid": {"fq_name": "team_log.PaperDocFollowedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocFollowedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocFollowedType.description": {"fq_name": "team_log.PaperDocFollowedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocFollowedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocMentionDetails.event_uuid": {"fq_name": "team_log.PaperDocMentionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocMentionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocMentionType.description": {"fq_name": "team_log.PaperDocMentionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocMentionType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocOwnershipChangedDetails.event_uuid": {"fq_name": "team_log.PaperDocOwnershipChangedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocOwnershipChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocOwnershipChangedDetails.new_owner_user_id": {"fq_name": "team_log.PaperDocOwnershipChangedDetails.new_owner_user_id", "param_name": "newOwnerUserId", "static_instance": null, "getter_method": "getNewOwnerUserId", "containing_data_type_ref": "team_log.PaperDocOwnershipChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocOwnershipChangedDetails.old_owner_user_id": {"fq_name": "team_log.PaperDocOwnershipChangedDetails.old_owner_user_id", "param_name": "oldOwnerUserId", "static_instance": null, "getter_method": "getOldOwnerUserId", "containing_data_type_ref": "team_log.PaperDocOwnershipChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocOwnershipChangedType.description": {"fq_name": "team_log.PaperDocOwnershipChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocOwnershipChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocRequestAccessDetails.event_uuid": {"fq_name": "team_log.PaperDocRequestAccessDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocRequestAccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocRequestAccessType.description": {"fq_name": "team_log.PaperDocRequestAccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocRequestAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocResolveCommentDetails.event_uuid": {"fq_name": "team_log.PaperDocResolveCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocResolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocResolveCommentDetails.comment_text": {"fq_name": "team_log.PaperDocResolveCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.PaperDocResolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocResolveCommentType.description": {"fq_name": "team_log.PaperDocResolveCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocResolveCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocRevertDetails.event_uuid": {"fq_name": "team_log.PaperDocRevertDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocRevertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocRevertType.description": {"fq_name": "team_log.PaperDocRevertType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocRevertType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocSlackShareDetails.event_uuid": {"fq_name": "team_log.PaperDocSlackShareDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocSlackShareDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocSlackShareType.description": {"fq_name": "team_log.PaperDocSlackShareType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocSlackShareType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocTeamInviteDetails.event_uuid": {"fq_name": "team_log.PaperDocTeamInviteDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocTeamInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocTeamInviteType.description": {"fq_name": "team_log.PaperDocTeamInviteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocTeamInviteType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocTrashedDetails.event_uuid": {"fq_name": "team_log.PaperDocTrashedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocTrashedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocTrashedType.description": {"fq_name": "team_log.PaperDocTrashedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocTrashedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocUnresolveCommentDetails.event_uuid": {"fq_name": "team_log.PaperDocUnresolveCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocUnresolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocUnresolveCommentDetails.comment_text": {"fq_name": "team_log.PaperDocUnresolveCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.PaperDocUnresolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocUnresolveCommentType.description": {"fq_name": "team_log.PaperDocUnresolveCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocUnresolveCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocUntrashedDetails.event_uuid": {"fq_name": "team_log.PaperDocUntrashedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocUntrashedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocUntrashedType.description": {"fq_name": "team_log.PaperDocUntrashedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocUntrashedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocViewDetails.event_uuid": {"fq_name": "team_log.PaperDocViewDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperDocViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocViewType.description": {"fq_name": "team_log.PaperDocViewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperDocViewType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocumentLogInfo.doc_id": {"fq_name": "team_log.PaperDocumentLogInfo.doc_id", "param_name": "docId", "static_instance": null, "getter_method": "getDocId", "containing_data_type_ref": "team_log.PaperDocumentLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDocumentLogInfo.doc_title": {"fq_name": "team_log.PaperDocumentLogInfo.doc_title", "param_name": "docTitle", "static_instance": null, "getter_method": "getDocTitle", "containing_data_type_ref": "team_log.PaperDocumentLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDownloadFormat.docx": {"fq_name": "team_log.PaperDownloadFormat.docx", "param_name": "docxValue", "static_instance": "DOCX", "getter_method": null, "containing_data_type_ref": "team_log.PaperDownloadFormat", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDownloadFormat.html": {"fq_name": "team_log.PaperDownloadFormat.html", "param_name": "htmlValue", "static_instance": "HTML", "getter_method": null, "containing_data_type_ref": "team_log.PaperDownloadFormat", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDownloadFormat.markdown": {"fq_name": "team_log.PaperDownloadFormat.markdown", "param_name": "markdownValue", "static_instance": "MARKDOWN", "getter_method": null, "containing_data_type_ref": "team_log.PaperDownloadFormat", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDownloadFormat.pdf": {"fq_name": "team_log.PaperDownloadFormat.pdf", "param_name": "pdfValue", "static_instance": "PDF", "getter_method": null, "containing_data_type_ref": "team_log.PaperDownloadFormat", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperDownloadFormat.other": {"fq_name": "team_log.PaperDownloadFormat.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PaperDownloadFormat", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperEnabledUsersGroupAdditionType.description": {"fq_name": "team_log.PaperEnabledUsersGroupAdditionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperEnabledUsersGroupAdditionType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperEnabledUsersGroupRemovalType.description": {"fq_name": "team_log.PaperEnabledUsersGroupRemovalType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperEnabledUsersGroupRemovalType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperExternalViewAllowDetails.event_uuid": {"fq_name": "team_log.PaperExternalViewAllowDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperExternalViewAllowDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperExternalViewAllowType.description": {"fq_name": "team_log.PaperExternalViewAllowType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperExternalViewAllowType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperExternalViewDefaultTeamDetails.event_uuid": {"fq_name": "team_log.PaperExternalViewDefaultTeamDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperExternalViewDefaultTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperExternalViewDefaultTeamType.description": {"fq_name": "team_log.PaperExternalViewDefaultTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperExternalViewDefaultTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperExternalViewForbidDetails.event_uuid": {"fq_name": "team_log.PaperExternalViewForbidDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperExternalViewForbidDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperExternalViewForbidType.description": {"fq_name": "team_log.PaperExternalViewForbidType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperExternalViewForbidType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderChangeSubscriptionDetails.event_uuid": {"fq_name": "team_log.PaperFolderChangeSubscriptionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperFolderChangeSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderChangeSubscriptionDetails.new_subscription_level": {"fq_name": "team_log.PaperFolderChangeSubscriptionDetails.new_subscription_level", "param_name": "newSubscriptionLevel", "static_instance": null, "getter_method": "getNewSubscriptionLevel", "containing_data_type_ref": "team_log.PaperFolderChangeSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderChangeSubscriptionDetails.previous_subscription_level": {"fq_name": "team_log.PaperFolderChangeSubscriptionDetails.previous_subscription_level", "param_name": "previousSubscriptionLevel", "static_instance": null, "getter_method": "getPreviousSubscriptionLevel", "containing_data_type_ref": "team_log.PaperFolderChangeSubscriptionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderChangeSubscriptionType.description": {"fq_name": "team_log.PaperFolderChangeSubscriptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperFolderChangeSubscriptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderDeletedDetails.event_uuid": {"fq_name": "team_log.PaperFolderDeletedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperFolderDeletedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderDeletedType.description": {"fq_name": "team_log.PaperFolderDeletedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperFolderDeletedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderFollowedDetails.event_uuid": {"fq_name": "team_log.PaperFolderFollowedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperFolderFollowedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderFollowedType.description": {"fq_name": "team_log.PaperFolderFollowedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperFolderFollowedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderLogInfo.folder_id": {"fq_name": "team_log.PaperFolderLogInfo.folder_id", "param_name": "folderId", "static_instance": null, "getter_method": "getFolderId", "containing_data_type_ref": "team_log.PaperFolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderLogInfo.folder_name": {"fq_name": "team_log.PaperFolderLogInfo.folder_name", "param_name": "folderName", "static_instance": null, "getter_method": "getFolderName", "containing_data_type_ref": "team_log.PaperFolderLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderTeamInviteDetails.event_uuid": {"fq_name": "team_log.PaperFolderTeamInviteDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperFolderTeamInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperFolderTeamInviteType.description": {"fq_name": "team_log.PaperFolderTeamInviteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperFolderTeamInviteType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperMemberPolicy.anyone_with_link": {"fq_name": "team_log.PaperMemberPolicy.anyone_with_link", "param_name": "anyoneWithLinkValue", "static_instance": "ANYONE_WITH_LINK", "getter_method": null, "containing_data_type_ref": "team_log.PaperMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperMemberPolicy.only_team": {"fq_name": "team_log.PaperMemberPolicy.only_team", "param_name": "onlyTeamValue", "static_instance": "ONLY_TEAM", "getter_method": null, "containing_data_type_ref": "team_log.PaperMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperMemberPolicy.team_and_explicitly_shared": {"fq_name": "team_log.PaperMemberPolicy.team_and_explicitly_shared", "param_name": "teamAndExplicitlySharedValue", "static_instance": "TEAM_AND_EXPLICITLY_SHARED", "getter_method": null, "containing_data_type_ref": "team_log.PaperMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperMemberPolicy.other": {"fq_name": "team_log.PaperMemberPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PaperMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkChangePermissionDetails.event_uuid": {"fq_name": "team_log.PaperPublishedLinkChangePermissionDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperPublishedLinkChangePermissionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkChangePermissionDetails.new_permission_level": {"fq_name": "team_log.PaperPublishedLinkChangePermissionDetails.new_permission_level", "param_name": "newPermissionLevel", "static_instance": null, "getter_method": "getNewPermissionLevel", "containing_data_type_ref": "team_log.PaperPublishedLinkChangePermissionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkChangePermissionDetails.previous_permission_level": {"fq_name": "team_log.PaperPublishedLinkChangePermissionDetails.previous_permission_level", "param_name": "previousPermissionLevel", "static_instance": null, "getter_method": "getPreviousPermissionLevel", "containing_data_type_ref": "team_log.PaperPublishedLinkChangePermissionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkChangePermissionType.description": {"fq_name": "team_log.PaperPublishedLinkChangePermissionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperPublishedLinkChangePermissionType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkCreateDetails.event_uuid": {"fq_name": "team_log.PaperPublishedLinkCreateDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperPublishedLinkCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkCreateType.description": {"fq_name": "team_log.PaperPublishedLinkCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperPublishedLinkCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkDisabledDetails.event_uuid": {"fq_name": "team_log.PaperPublishedLinkDisabledDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperPublishedLinkDisabledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkDisabledType.description": {"fq_name": "team_log.PaperPublishedLinkDisabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperPublishedLinkDisabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkViewDetails.event_uuid": {"fq_name": "team_log.PaperPublishedLinkViewDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.PaperPublishedLinkViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PaperPublishedLinkViewType.description": {"fq_name": "team_log.PaperPublishedLinkViewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PaperPublishedLinkViewType", "route_refs": [], "_type": "FieldReference"}, "team_log.ParticipantLogInfo.group": {"fq_name": "team_log.ParticipantLogInfo.group", "param_name": "groupValue", "static_instance": null, "getter_method": "getGroupValue", "containing_data_type_ref": "team_log.ParticipantLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ParticipantLogInfo.user": {"fq_name": "team_log.ParticipantLogInfo.user", "param_name": "userValue", "static_instance": null, "getter_method": "getUserValue", "containing_data_type_ref": "team_log.ParticipantLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ParticipantLogInfo.other": {"fq_name": "team_log.ParticipantLogInfo.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ParticipantLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.PassPolicy.allow": {"fq_name": "team_log.PassPolicy.allow", "param_name": "allowValue", "static_instance": "ALLOW", "getter_method": null, "containing_data_type_ref": "team_log.PassPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PassPolicy.disabled": {"fq_name": "team_log.PassPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.PassPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PassPolicy.enabled": {"fq_name": "team_log.PassPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.PassPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PassPolicy.other": {"fq_name": "team_log.PassPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PassPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.PasswordChangeType.description": {"fq_name": "team_log.PasswordChangeType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PasswordChangeType", "route_refs": [], "_type": "FieldReference"}, "team_log.PasswordResetAllType.description": {"fq_name": "team_log.PasswordResetAllType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PasswordResetAllType", "route_refs": [], "_type": "FieldReference"}, "team_log.PasswordResetType.description": {"fq_name": "team_log.PasswordResetType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PasswordResetType", "route_refs": [], "_type": "FieldReference"}, "team_log.PasswordStrengthRequirementsChangePolicyDetails.previous_value": {"fq_name": "team_log.PasswordStrengthRequirementsChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.PasswordStrengthRequirementsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PasswordStrengthRequirementsChangePolicyDetails.new_value": {"fq_name": "team_log.PasswordStrengthRequirementsChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PasswordStrengthRequirementsChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PasswordStrengthRequirementsChangePolicyType.description": {"fq_name": "team_log.PasswordStrengthRequirementsChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PasswordStrengthRequirementsChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PathLogInfo.namespace_relative": {"fq_name": "team_log.PathLogInfo.namespace_relative", "param_name": "namespaceRelative", "static_instance": null, "getter_method": "getNamespaceRelative", "containing_data_type_ref": "team_log.PathLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.PathLogInfo.contextual": {"fq_name": "team_log.PathLogInfo.contextual", "param_name": "contextual", "static_instance": null, "getter_method": "getContextual", "containing_data_type_ref": "team_log.PathLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.PendingSecondaryEmailAddedDetails.secondary_email": {"fq_name": "team_log.PendingSecondaryEmailAddedDetails.secondary_email", "param_name": "secondaryEmail", "static_instance": null, "getter_method": "getSecondaryEmail", "containing_data_type_ref": "team_log.PendingSecondaryEmailAddedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PendingSecondaryEmailAddedType.description": {"fq_name": "team_log.PendingSecondaryEmailAddedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PendingSecondaryEmailAddedType", "route_refs": [], "_type": "FieldReference"}, "team_log.PermanentDeleteChangePolicyDetails.new_value": {"fq_name": "team_log.PermanentDeleteChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.PermanentDeleteChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PermanentDeleteChangePolicyDetails.previous_value": {"fq_name": "team_log.PermanentDeleteChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.PermanentDeleteChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PermanentDeleteChangePolicyType.description": {"fq_name": "team_log.PermanentDeleteChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.PermanentDeleteChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PlacementRestriction.australia_only": {"fq_name": "team_log.PlacementRestriction.australia_only", "param_name": "australiaOnlyValue", "static_instance": "AUSTRALIA_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.PlacementRestriction", "route_refs": [], "_type": "FieldReference"}, "team_log.PlacementRestriction.europe_only": {"fq_name": "team_log.PlacementRestriction.europe_only", "param_name": "europeOnlyValue", "static_instance": "EUROPE_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.PlacementRestriction", "route_refs": [], "_type": "FieldReference"}, "team_log.PlacementRestriction.japan_only": {"fq_name": "team_log.PlacementRestriction.japan_only", "param_name": "japanOnlyValue", "static_instance": "JAPAN_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.PlacementRestriction", "route_refs": [], "_type": "FieldReference"}, "team_log.PlacementRestriction.none": {"fq_name": "team_log.PlacementRestriction.none", "param_name": "noneValue", "static_instance": "NONE", "getter_method": null, "containing_data_type_ref": "team_log.PlacementRestriction", "route_refs": [], "_type": "FieldReference"}, "team_log.PlacementRestriction.uk_only": {"fq_name": "team_log.PlacementRestriction.uk_only", "param_name": "ukOnlyValue", "static_instance": "UK_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.PlacementRestriction", "route_refs": [], "_type": "FieldReference"}, "team_log.PlacementRestriction.us_s3_only": {"fq_name": "team_log.PlacementRestriction.us_s3_only", "param_name": "usS3OnlyValue", "static_instance": "US_S3_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.PlacementRestriction", "route_refs": [], "_type": "FieldReference"}, "team_log.PlacementRestriction.other": {"fq_name": "team_log.PlacementRestriction.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PlacementRestriction", "route_refs": [], "_type": "FieldReference"}, "team_log.PolicyType.disposition": {"fq_name": "team_log.PolicyType.disposition", "param_name": "dispositionValue", "static_instance": "DISPOSITION", "getter_method": null, "containing_data_type_ref": "team_log.PolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PolicyType.retention": {"fq_name": "team_log.PolicyType.retention", "param_name": "retentionValue", "static_instance": "RETENTION", "getter_method": null, "containing_data_type_ref": "team_log.PolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PolicyType.other": {"fq_name": "team_log.PolicyType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.PolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestAcceptedDetails.secondary_team": {"fq_name": "team_log.PrimaryTeamRequestAcceptedDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.PrimaryTeamRequestAcceptedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestAcceptedDetails.sent_by": {"fq_name": "team_log.PrimaryTeamRequestAcceptedDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.PrimaryTeamRequestAcceptedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestCanceledDetails.secondary_team": {"fq_name": "team_log.PrimaryTeamRequestCanceledDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.PrimaryTeamRequestCanceledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestCanceledDetails.sent_by": {"fq_name": "team_log.PrimaryTeamRequestCanceledDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.PrimaryTeamRequestCanceledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestExpiredDetails.secondary_team": {"fq_name": "team_log.PrimaryTeamRequestExpiredDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.PrimaryTeamRequestExpiredDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestExpiredDetails.sent_by": {"fq_name": "team_log.PrimaryTeamRequestExpiredDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.PrimaryTeamRequestExpiredDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestReminderDetails.secondary_team": {"fq_name": "team_log.PrimaryTeamRequestReminderDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.PrimaryTeamRequestReminderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.PrimaryTeamRequestReminderDetails.sent_to": {"fq_name": "team_log.PrimaryTeamRequestReminderDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.PrimaryTeamRequestReminderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.QuickActionType.delete_shared_link": {"fq_name": "team_log.QuickActionType.delete_shared_link", "param_name": "deleteSharedLinkValue", "static_instance": "DELETE_SHARED_LINK", "getter_method": null, "containing_data_type_ref": "team_log.QuickActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.QuickActionType.reset_password": {"fq_name": "team_log.QuickActionType.reset_password", "param_name": "resetPasswordValue", "static_instance": "RESET_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.QuickActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.QuickActionType.restore_file_or_folder": {"fq_name": "team_log.QuickActionType.restore_file_or_folder", "param_name": "restoreFileOrFolderValue", "static_instance": "RESTORE_FILE_OR_FOLDER", "getter_method": null, "containing_data_type_ref": "team_log.QuickActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.QuickActionType.unlink_app": {"fq_name": "team_log.QuickActionType.unlink_app", "param_name": "unlinkAppValue", "static_instance": "UNLINK_APP", "getter_method": null, "containing_data_type_ref": "team_log.QuickActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.QuickActionType.unlink_device": {"fq_name": "team_log.QuickActionType.unlink_device", "param_name": "unlinkDeviceValue", "static_instance": "UNLINK_DEVICE", "getter_method": null, "containing_data_type_ref": "team_log.QuickActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.QuickActionType.unlink_session": {"fq_name": "team_log.QuickActionType.unlink_session", "param_name": "unlinkSessionValue", "static_instance": "UNLINK_SESSION", "getter_method": null, "containing_data_type_ref": "team_log.QuickActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.QuickActionType.other": {"fq_name": "team_log.QuickActionType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.QuickActionType", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareAlertCreateReportFailedDetails.failure_reason": {"fq_name": "team_log.RansomwareAlertCreateReportFailedDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.RansomwareAlertCreateReportFailedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareAlertCreateReportFailedType.description": {"fq_name": "team_log.RansomwareAlertCreateReportFailedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.RansomwareAlertCreateReportFailedType", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareAlertCreateReportType.description": {"fq_name": "team_log.RansomwareAlertCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.RansomwareAlertCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareRestoreProcessCompletedDetails.status": {"fq_name": "team_log.RansomwareRestoreProcessCompletedDetails.status", "param_name": "status", "static_instance": null, "getter_method": "getStatus", "containing_data_type_ref": "team_log.RansomwareRestoreProcessCompletedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareRestoreProcessCompletedDetails.restored_files_count": {"fq_name": "team_log.RansomwareRestoreProcessCompletedDetails.restored_files_count", "param_name": "restoredFilesCount", "static_instance": null, "getter_method": "getRestoredFilesCount", "containing_data_type_ref": "team_log.RansomwareRestoreProcessCompletedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareRestoreProcessCompletedDetails.restored_files_failed_count": {"fq_name": "team_log.RansomwareRestoreProcessCompletedDetails.restored_files_failed_count", "param_name": "restoredFilesFailedCount", "static_instance": null, "getter_method": "getRestoredFilesFailedCount", "containing_data_type_ref": "team_log.RansomwareRestoreProcessCompletedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareRestoreProcessCompletedType.description": {"fq_name": "team_log.RansomwareRestoreProcessCompletedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.RansomwareRestoreProcessCompletedType", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareRestoreProcessStartedDetails.extension": {"fq_name": "team_log.RansomwareRestoreProcessStartedDetails.extension", "param_name": "extension", "static_instance": null, "getter_method": "getExtension", "containing_data_type_ref": "team_log.RansomwareRestoreProcessStartedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RansomwareRestoreProcessStartedType.description": {"fq_name": "team_log.RansomwareRestoreProcessStartedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.RansomwareRestoreProcessStartedType", "route_refs": [], "_type": "FieldReference"}, "team_log.RecipientsConfiguration.recipient_setting_type": {"fq_name": "team_log.RecipientsConfiguration.recipient_setting_type", "param_name": "recipientSettingType", "static_instance": null, "getter_method": "getRecipientSettingType", "containing_data_type_ref": "team_log.RecipientsConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.RecipientsConfiguration.emails": {"fq_name": "team_log.RecipientsConfiguration.emails", "param_name": "emails", "static_instance": null, "getter_method": "getEmails", "containing_data_type_ref": "team_log.RecipientsConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.RecipientsConfiguration.groups": {"fq_name": "team_log.RecipientsConfiguration.groups", "param_name": "groups", "static_instance": null, "getter_method": "getGroups", "containing_data_type_ref": "team_log.RecipientsConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.RelocateAssetReferencesLogInfo.src_asset_index": {"fq_name": "team_log.RelocateAssetReferencesLogInfo.src_asset_index", "param_name": "srcAssetIndex", "static_instance": null, "getter_method": "getSrcAssetIndex", "containing_data_type_ref": "team_log.RelocateAssetReferencesLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.RelocateAssetReferencesLogInfo.dest_asset_index": {"fq_name": "team_log.RelocateAssetReferencesLogInfo.dest_asset_index", "param_name": "destAssetIndex", "static_instance": null, "getter_method": "getDestAssetIndex", "containing_data_type_ref": "team_log.RelocateAssetReferencesLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ReplayFileDeleteType.description": {"fq_name": "team_log.ReplayFileDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ReplayFileDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.ReplayFileSharedLinkCreatedType.description": {"fq_name": "team_log.ReplayFileSharedLinkCreatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ReplayFileSharedLinkCreatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ReplayFileSharedLinkModifiedType.description": {"fq_name": "team_log.ReplayFileSharedLinkModifiedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ReplayFileSharedLinkModifiedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ReplayProjectTeamAddType.description": {"fq_name": "team_log.ReplayProjectTeamAddType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ReplayProjectTeamAddType", "route_refs": [], "_type": "FieldReference"}, "team_log.ReplayProjectTeamDeleteType.description": {"fq_name": "team_log.ReplayProjectTeamDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ReplayProjectTeamDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerLogInfo.reseller_name": {"fq_name": "team_log.ResellerLogInfo.reseller_name", "param_name": "resellerName", "static_instance": null, "getter_method": "getResellerName", "containing_data_type_ref": "team_log.ResellerLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerLogInfo.reseller_email": {"fq_name": "team_log.ResellerLogInfo.reseller_email", "param_name": "resellerEmail", "static_instance": null, "getter_method": "getResellerEmail", "containing_data_type_ref": "team_log.ResellerLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerRole.not_reseller": {"fq_name": "team_log.ResellerRole.not_reseller", "param_name": "notResellerValue", "static_instance": "NOT_RESELLER", "getter_method": null, "containing_data_type_ref": "team_log.ResellerRole", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerRole.reseller_admin": {"fq_name": "team_log.ResellerRole.reseller_admin", "param_name": "resellerAdminValue", "static_instance": "RESELLER_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.ResellerRole", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerRole.other": {"fq_name": "team_log.ResellerRole.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ResellerRole", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportChangePolicyDetails.new_value": {"fq_name": "team_log.ResellerSupportChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ResellerSupportChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportChangePolicyDetails.previous_value": {"fq_name": "team_log.ResellerSupportChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ResellerSupportChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportChangePolicyType.description": {"fq_name": "team_log.ResellerSupportChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ResellerSupportChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportPolicy.disabled": {"fq_name": "team_log.ResellerSupportPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ResellerSupportPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportPolicy.enabled": {"fq_name": "team_log.ResellerSupportPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ResellerSupportPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportPolicy.other": {"fq_name": "team_log.ResellerSupportPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ResellerSupportPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportSessionEndType.description": {"fq_name": "team_log.ResellerSupportSessionEndType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ResellerSupportSessionEndType", "route_refs": [], "_type": "FieldReference"}, "team_log.ResellerSupportSessionStartType.description": {"fq_name": "team_log.ResellerSupportSessionStartType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ResellerSupportSessionStartType", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindFolderDetails.rewind_folder_target_ts_ms": {"fq_name": "team_log.RewindFolderDetails.rewind_folder_target_ts_ms", "param_name": "rewindFolderTargetTsMs", "static_instance": null, "getter_method": "getRewindFolderTargetTsMs", "containing_data_type_ref": "team_log.RewindFolderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindFolderType.description": {"fq_name": "team_log.RewindFolderType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.RewindFolderType", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindPolicy.admins_only": {"fq_name": "team_log.RewindPolicy.admins_only", "param_name": "adminsOnlyValue", "static_instance": "ADMINS_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.RewindPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindPolicy.everyone": {"fq_name": "team_log.RewindPolicy.everyone", "param_name": "everyoneValue", "static_instance": "EVERYONE", "getter_method": null, "containing_data_type_ref": "team_log.RewindPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindPolicy.other": {"fq_name": "team_log.RewindPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.RewindPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindPolicyChangedDetails.new_value": {"fq_name": "team_log.RewindPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.RewindPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindPolicyChangedDetails.previous_value": {"fq_name": "team_log.RewindPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.RewindPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.RewindPolicyChangedType.description": {"fq_name": "team_log.RewindPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.RewindPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryEmailDeletedDetails.secondary_email": {"fq_name": "team_log.SecondaryEmailDeletedDetails.secondary_email", "param_name": "secondaryEmail", "static_instance": null, "getter_method": "getSecondaryEmail", "containing_data_type_ref": "team_log.SecondaryEmailDeletedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryEmailDeletedType.description": {"fq_name": "team_log.SecondaryEmailDeletedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SecondaryEmailDeletedType", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryEmailVerifiedDetails.secondary_email": {"fq_name": "team_log.SecondaryEmailVerifiedDetails.secondary_email", "param_name": "secondaryEmail", "static_instance": null, "getter_method": "getSecondaryEmail", "containing_data_type_ref": "team_log.SecondaryEmailVerifiedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryEmailVerifiedType.description": {"fq_name": "team_log.SecondaryEmailVerifiedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SecondaryEmailVerifiedType", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryMailsPolicy.disabled": {"fq_name": "team_log.SecondaryMailsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.SecondaryMailsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryMailsPolicy.enabled": {"fq_name": "team_log.SecondaryMailsPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.SecondaryMailsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryMailsPolicy.other": {"fq_name": "team_log.SecondaryMailsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SecondaryMailsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryMailsPolicyChangedDetails.previous_value": {"fq_name": "team_log.SecondaryMailsPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SecondaryMailsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryMailsPolicyChangedDetails.new_value": {"fq_name": "team_log.SecondaryMailsPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SecondaryMailsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryMailsPolicyChangedType.description": {"fq_name": "team_log.SecondaryMailsPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SecondaryMailsPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryTeamRequestAcceptedDetails.primary_team": {"fq_name": "team_log.SecondaryTeamRequestAcceptedDetails.primary_team", "param_name": "primaryTeam", "static_instance": null, "getter_method": "getPrimaryTeam", "containing_data_type_ref": "team_log.SecondaryTeamRequestAcceptedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryTeamRequestAcceptedDetails.sent_by": {"fq_name": "team_log.SecondaryTeamRequestAcceptedDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.SecondaryTeamRequestAcceptedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryTeamRequestCanceledDetails.sent_to": {"fq_name": "team_log.SecondaryTeamRequestCanceledDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.SecondaryTeamRequestCanceledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryTeamRequestCanceledDetails.sent_by": {"fq_name": "team_log.SecondaryTeamRequestCanceledDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.SecondaryTeamRequestCanceledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryTeamRequestExpiredDetails.sent_to": {"fq_name": "team_log.SecondaryTeamRequestExpiredDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.SecondaryTeamRequestExpiredDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SecondaryTeamRequestReminderDetails.sent_to": {"fq_name": "team_log.SecondaryTeamRequestReminderDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.SecondaryTeamRequestReminderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SendForSignaturePolicy.disabled": {"fq_name": "team_log.SendForSignaturePolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.SendForSignaturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SendForSignaturePolicy.enabled": {"fq_name": "team_log.SendForSignaturePolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.SendForSignaturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SendForSignaturePolicy.other": {"fq_name": "team_log.SendForSignaturePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SendForSignaturePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SendForSignaturePolicyChangedDetails.new_value": {"fq_name": "team_log.SendForSignaturePolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SendForSignaturePolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SendForSignaturePolicyChangedDetails.previous_value": {"fq_name": "team_log.SendForSignaturePolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SendForSignaturePolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SendForSignaturePolicyChangedType.description": {"fq_name": "team_log.SendForSignaturePolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SendForSignaturePolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.SessionLogInfo.session_id": {"fq_name": "team_log.SessionLogInfo.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team_log.SessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAddGroupDetails.target_asset_index": {"fq_name": "team_log.SfAddGroupDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfAddGroupDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAddGroupDetails.original_folder_name": {"fq_name": "team_log.SfAddGroupDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfAddGroupDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAddGroupDetails.team_name": {"fq_name": "team_log.SfAddGroupDetails.team_name", "param_name": "teamName", "static_instance": null, "getter_method": "getTeamName", "containing_data_type_ref": "team_log.SfAddGroupDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAddGroupDetails.sharing_permission": {"fq_name": "team_log.SfAddGroupDetails.sharing_permission", "param_name": "sharingPermission", "static_instance": null, "getter_method": "getSharingPermission", "containing_data_type_ref": "team_log.SfAddGroupDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAddGroupType.description": {"fq_name": "team_log.SfAddGroupType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfAddGroupType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAllowNonMembersToViewSharedLinksDetails.target_asset_index": {"fq_name": "team_log.SfAllowNonMembersToViewSharedLinksDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfAllowNonMembersToViewSharedLinksDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAllowNonMembersToViewSharedLinksDetails.original_folder_name": {"fq_name": "team_log.SfAllowNonMembersToViewSharedLinksDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfAllowNonMembersToViewSharedLinksDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAllowNonMembersToViewSharedLinksDetails.shared_folder_type": {"fq_name": "team_log.SfAllowNonMembersToViewSharedLinksDetails.shared_folder_type", "param_name": "sharedFolderType", "static_instance": null, "getter_method": "getSharedFolderType", "containing_data_type_ref": "team_log.SfAllowNonMembersToViewSharedLinksDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfAllowNonMembersToViewSharedLinksType.description": {"fq_name": "team_log.SfAllowNonMembersToViewSharedLinksType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfAllowNonMembersToViewSharedLinksType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfExternalInviteWarnDetails.target_asset_index": {"fq_name": "team_log.SfExternalInviteWarnDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfExternalInviteWarnDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfExternalInviteWarnDetails.original_folder_name": {"fq_name": "team_log.SfExternalInviteWarnDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfExternalInviteWarnDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfExternalInviteWarnDetails.new_sharing_permission": {"fq_name": "team_log.SfExternalInviteWarnDetails.new_sharing_permission", "param_name": "newSharingPermission", "static_instance": null, "getter_method": "getNewSharingPermission", "containing_data_type_ref": "team_log.SfExternalInviteWarnDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfExternalInviteWarnDetails.previous_sharing_permission": {"fq_name": "team_log.SfExternalInviteWarnDetails.previous_sharing_permission", "param_name": "previousSharingPermission", "static_instance": null, "getter_method": "getPreviousSharingPermission", "containing_data_type_ref": "team_log.SfExternalInviteWarnDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfExternalInviteWarnType.description": {"fq_name": "team_log.SfExternalInviteWarnType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfExternalInviteWarnType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteChangeRoleDetails.target_asset_index": {"fq_name": "team_log.SfFbInviteChangeRoleDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfFbInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteChangeRoleDetails.original_folder_name": {"fq_name": "team_log.SfFbInviteChangeRoleDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfFbInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteChangeRoleDetails.previous_sharing_permission": {"fq_name": "team_log.SfFbInviteChangeRoleDetails.previous_sharing_permission", "param_name": "previousSharingPermission", "static_instance": null, "getter_method": "getPreviousSharingPermission", "containing_data_type_ref": "team_log.SfFbInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteChangeRoleDetails.new_sharing_permission": {"fq_name": "team_log.SfFbInviteChangeRoleDetails.new_sharing_permission", "param_name": "newSharingPermission", "static_instance": null, "getter_method": "getNewSharingPermission", "containing_data_type_ref": "team_log.SfFbInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteChangeRoleType.description": {"fq_name": "team_log.SfFbInviteChangeRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfFbInviteChangeRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteDetails.target_asset_index": {"fq_name": "team_log.SfFbInviteDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfFbInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteDetails.original_folder_name": {"fq_name": "team_log.SfFbInviteDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfFbInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteDetails.sharing_permission": {"fq_name": "team_log.SfFbInviteDetails.sharing_permission", "param_name": "sharingPermission", "static_instance": null, "getter_method": "getSharingPermission", "containing_data_type_ref": "team_log.SfFbInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbInviteType.description": {"fq_name": "team_log.SfFbInviteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfFbInviteType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbUninviteDetails.target_asset_index": {"fq_name": "team_log.SfFbUninviteDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfFbUninviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbUninviteDetails.original_folder_name": {"fq_name": "team_log.SfFbUninviteDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfFbUninviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfFbUninviteType.description": {"fq_name": "team_log.SfFbUninviteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfFbUninviteType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfInviteGroupDetails.target_asset_index": {"fq_name": "team_log.SfInviteGroupDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfInviteGroupDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfInviteGroupType.description": {"fq_name": "team_log.SfInviteGroupType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfInviteGroupType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamGrantAccessDetails.target_asset_index": {"fq_name": "team_log.SfTeamGrantAccessDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfTeamGrantAccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamGrantAccessDetails.original_folder_name": {"fq_name": "team_log.SfTeamGrantAccessDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfTeamGrantAccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamGrantAccessType.description": {"fq_name": "team_log.SfTeamGrantAccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfTeamGrantAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteChangeRoleDetails.target_asset_index": {"fq_name": "team_log.SfTeamInviteChangeRoleDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfTeamInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteChangeRoleDetails.original_folder_name": {"fq_name": "team_log.SfTeamInviteChangeRoleDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfTeamInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteChangeRoleDetails.new_sharing_permission": {"fq_name": "team_log.SfTeamInviteChangeRoleDetails.new_sharing_permission", "param_name": "newSharingPermission", "static_instance": null, "getter_method": "getNewSharingPermission", "containing_data_type_ref": "team_log.SfTeamInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteChangeRoleDetails.previous_sharing_permission": {"fq_name": "team_log.SfTeamInviteChangeRoleDetails.previous_sharing_permission", "param_name": "previousSharingPermission", "static_instance": null, "getter_method": "getPreviousSharingPermission", "containing_data_type_ref": "team_log.SfTeamInviteChangeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteChangeRoleType.description": {"fq_name": "team_log.SfTeamInviteChangeRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfTeamInviteChangeRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteDetails.target_asset_index": {"fq_name": "team_log.SfTeamInviteDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfTeamInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteDetails.original_folder_name": {"fq_name": "team_log.SfTeamInviteDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfTeamInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteDetails.sharing_permission": {"fq_name": "team_log.SfTeamInviteDetails.sharing_permission", "param_name": "sharingPermission", "static_instance": null, "getter_method": "getSharingPermission", "containing_data_type_ref": "team_log.SfTeamInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamInviteType.description": {"fq_name": "team_log.SfTeamInviteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfTeamInviteType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinDetails.target_asset_index": {"fq_name": "team_log.SfTeamJoinDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfTeamJoinDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinDetails.original_folder_name": {"fq_name": "team_log.SfTeamJoinDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfTeamJoinDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinFromOobLinkDetails.target_asset_index": {"fq_name": "team_log.SfTeamJoinFromOobLinkDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfTeamJoinFromOobLinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinFromOobLinkDetails.original_folder_name": {"fq_name": "team_log.SfTeamJoinFromOobLinkDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfTeamJoinFromOobLinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinFromOobLinkDetails.token_key": {"fq_name": "team_log.SfTeamJoinFromOobLinkDetails.token_key", "param_name": "tokenKey", "static_instance": null, "getter_method": "getTokenKey", "containing_data_type_ref": "team_log.SfTeamJoinFromOobLinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinFromOobLinkDetails.sharing_permission": {"fq_name": "team_log.SfTeamJoinFromOobLinkDetails.sharing_permission", "param_name": "sharingPermission", "static_instance": null, "getter_method": "getSharingPermission", "containing_data_type_ref": "team_log.SfTeamJoinFromOobLinkDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinFromOobLinkType.description": {"fq_name": "team_log.SfTeamJoinFromOobLinkType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfTeamJoinFromOobLinkType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamJoinType.description": {"fq_name": "team_log.SfTeamJoinType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfTeamJoinType", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamUninviteDetails.target_asset_index": {"fq_name": "team_log.SfTeamUninviteDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.SfTeamUninviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamUninviteDetails.original_folder_name": {"fq_name": "team_log.SfTeamUninviteDetails.original_folder_name", "param_name": "originalFolderName", "static_instance": null, "getter_method": "getOriginalFolderName", "containing_data_type_ref": "team_log.SfTeamUninviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SfTeamUninviteType.description": {"fq_name": "team_log.SfTeamUninviteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SfTeamUninviteType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddInviteesDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentAddInviteesDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentAddInviteesDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddInviteesDetails.invitees": {"fq_name": "team_log.SharedContentAddInviteesDetails.invitees", "param_name": "invitees", "static_instance": null, "getter_method": "getInvitees", "containing_data_type_ref": "team_log.SharedContentAddInviteesDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddInviteesType.description": {"fq_name": "team_log.SharedContentAddInviteesType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentAddInviteesType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddLinkExpiryDetails.new_value": {"fq_name": "team_log.SharedContentAddLinkExpiryDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedContentAddLinkExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddLinkExpiryType.description": {"fq_name": "team_log.SharedContentAddLinkExpiryType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentAddLinkExpiryType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddLinkPasswordType.description": {"fq_name": "team_log.SharedContentAddLinkPasswordType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentAddLinkPasswordType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddMemberDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentAddMemberDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentAddMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentAddMemberType.description": {"fq_name": "team_log.SharedContentAddMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentAddMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeDownloadsPolicyDetails.new_value": {"fq_name": "team_log.SharedContentChangeDownloadsPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedContentChangeDownloadsPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeDownloadsPolicyDetails.previous_value": {"fq_name": "team_log.SharedContentChangeDownloadsPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedContentChangeDownloadsPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeDownloadsPolicyType.description": {"fq_name": "team_log.SharedContentChangeDownloadsPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentChangeDownloadsPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeInviteeRoleDetails.new_access_level": {"fq_name": "team_log.SharedContentChangeInviteeRoleDetails.new_access_level", "param_name": "newAccessLevel", "static_instance": null, "getter_method": "getNewAccessLevel", "containing_data_type_ref": "team_log.SharedContentChangeInviteeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeInviteeRoleDetails.invitee": {"fq_name": "team_log.SharedContentChangeInviteeRoleDetails.invitee", "param_name": "invitee", "static_instance": null, "getter_method": "getInvitee", "containing_data_type_ref": "team_log.SharedContentChangeInviteeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeInviteeRoleDetails.previous_access_level": {"fq_name": "team_log.SharedContentChangeInviteeRoleDetails.previous_access_level", "param_name": "previousAccessLevel", "static_instance": null, "getter_method": "getPreviousAccessLevel", "containing_data_type_ref": "team_log.SharedContentChangeInviteeRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeInviteeRoleType.description": {"fq_name": "team_log.SharedContentChangeInviteeRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentChangeInviteeRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeLinkAudienceDetails.new_value": {"fq_name": "team_log.SharedContentChangeLinkAudienceDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedContentChangeLinkAudienceDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeLinkAudienceDetails.previous_value": {"fq_name": "team_log.SharedContentChangeLinkAudienceDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedContentChangeLinkAudienceDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeLinkAudienceType.description": {"fq_name": "team_log.SharedContentChangeLinkAudienceType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentChangeLinkAudienceType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeLinkExpiryDetails.new_value": {"fq_name": "team_log.SharedContentChangeLinkExpiryDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedContentChangeLinkExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeLinkExpiryDetails.previous_value": {"fq_name": "team_log.SharedContentChangeLinkExpiryDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedContentChangeLinkExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeLinkExpiryType.description": {"fq_name": "team_log.SharedContentChangeLinkExpiryType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentChangeLinkExpiryType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeLinkPasswordType.description": {"fq_name": "team_log.SharedContentChangeLinkPasswordType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentChangeLinkPasswordType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeMemberRoleDetails.new_access_level": {"fq_name": "team_log.SharedContentChangeMemberRoleDetails.new_access_level", "param_name": "newAccessLevel", "static_instance": null, "getter_method": "getNewAccessLevel", "containing_data_type_ref": "team_log.SharedContentChangeMemberRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeMemberRoleDetails.previous_access_level": {"fq_name": "team_log.SharedContentChangeMemberRoleDetails.previous_access_level", "param_name": "previousAccessLevel", "static_instance": null, "getter_method": "getPreviousAccessLevel", "containing_data_type_ref": "team_log.SharedContentChangeMemberRoleDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeMemberRoleType.description": {"fq_name": "team_log.SharedContentChangeMemberRoleType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentChangeMemberRoleType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeViewerInfoPolicyDetails.new_value": {"fq_name": "team_log.SharedContentChangeViewerInfoPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedContentChangeViewerInfoPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeViewerInfoPolicyDetails.previous_value": {"fq_name": "team_log.SharedContentChangeViewerInfoPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedContentChangeViewerInfoPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentChangeViewerInfoPolicyType.description": {"fq_name": "team_log.SharedContentChangeViewerInfoPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentChangeViewerInfoPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentClaimInvitationDetails.shared_content_link": {"fq_name": "team_log.SharedContentClaimInvitationDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedContentClaimInvitationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentClaimInvitationType.description": {"fq_name": "team_log.SharedContentClaimInvitationType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentClaimInvitationType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentCopyDetails.shared_content_link": {"fq_name": "team_log.SharedContentCopyDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedContentCopyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentCopyDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentCopyDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentCopyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentCopyDetails.destination_path": {"fq_name": "team_log.SharedContentCopyDetails.destination_path", "param_name": "destinationPath", "static_instance": null, "getter_method": "getDestinationPath", "containing_data_type_ref": "team_log.SharedContentCopyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentCopyDetails.shared_content_owner": {"fq_name": "team_log.SharedContentCopyDetails.shared_content_owner", "param_name": "sharedContentOwner", "static_instance": null, "getter_method": "getSharedContentOwner", "containing_data_type_ref": "team_log.SharedContentCopyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentCopyType.description": {"fq_name": "team_log.SharedContentCopyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentCopyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentDownloadDetails.shared_content_link": {"fq_name": "team_log.SharedContentDownloadDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedContentDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentDownloadDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentDownloadDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentDownloadDetails.shared_content_owner": {"fq_name": "team_log.SharedContentDownloadDetails.shared_content_owner", "param_name": "sharedContentOwner", "static_instance": null, "getter_method": "getSharedContentOwner", "containing_data_type_ref": "team_log.SharedContentDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentDownloadType.description": {"fq_name": "team_log.SharedContentDownloadType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentDownloadType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRelinquishMembershipType.description": {"fq_name": "team_log.SharedContentRelinquishMembershipType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRelinquishMembershipType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRemoveInviteesDetails.invitees": {"fq_name": "team_log.SharedContentRemoveInviteesDetails.invitees", "param_name": "invitees", "static_instance": null, "getter_method": "getInvitees", "containing_data_type_ref": "team_log.SharedContentRemoveInviteesDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRemoveInviteesType.description": {"fq_name": "team_log.SharedContentRemoveInviteesType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRemoveInviteesType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRemoveLinkExpiryDetails.previous_value": {"fq_name": "team_log.SharedContentRemoveLinkExpiryDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedContentRemoveLinkExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRemoveLinkExpiryType.description": {"fq_name": "team_log.SharedContentRemoveLinkExpiryType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRemoveLinkExpiryType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRemoveLinkPasswordType.description": {"fq_name": "team_log.SharedContentRemoveLinkPasswordType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRemoveLinkPasswordType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRemoveMemberDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentRemoveMemberDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentRemoveMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRemoveMemberType.description": {"fq_name": "team_log.SharedContentRemoveMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRemoveMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRequestAccessDetails.shared_content_link": {"fq_name": "team_log.SharedContentRequestAccessDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedContentRequestAccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRequestAccessType.description": {"fq_name": "team_log.SharedContentRequestAccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRequestAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRestoreInviteesDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentRestoreInviteesDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentRestoreInviteesDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRestoreInviteesDetails.invitees": {"fq_name": "team_log.SharedContentRestoreInviteesDetails.invitees", "param_name": "invitees", "static_instance": null, "getter_method": "getInvitees", "containing_data_type_ref": "team_log.SharedContentRestoreInviteesDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRestoreInviteesType.description": {"fq_name": "team_log.SharedContentRestoreInviteesType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRestoreInviteesType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRestoreMemberDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentRestoreMemberDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentRestoreMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentRestoreMemberType.description": {"fq_name": "team_log.SharedContentRestoreMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentRestoreMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentUnshareType.description": {"fq_name": "team_log.SharedContentUnshareType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentUnshareType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentViewDetails.shared_content_link": {"fq_name": "team_log.SharedContentViewDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedContentViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentViewDetails.shared_content_access_level": {"fq_name": "team_log.SharedContentViewDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedContentViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentViewDetails.shared_content_owner": {"fq_name": "team_log.SharedContentViewDetails.shared_content_owner", "param_name": "sharedContentOwner", "static_instance": null, "getter_method": "getSharedContentOwner", "containing_data_type_ref": "team_log.SharedContentViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedContentViewType.description": {"fq_name": "team_log.SharedContentViewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedContentViewType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeLinkPolicyDetails.new_value": {"fq_name": "team_log.SharedFolderChangeLinkPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedFolderChangeLinkPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeLinkPolicyDetails.previous_value": {"fq_name": "team_log.SharedFolderChangeLinkPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedFolderChangeLinkPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeLinkPolicyType.description": {"fq_name": "team_log.SharedFolderChangeLinkPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderChangeLinkPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersInheritancePolicyDetails.new_value": {"fq_name": "team_log.SharedFolderChangeMembersInheritancePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedFolderChangeMembersInheritancePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersInheritancePolicyDetails.previous_value": {"fq_name": "team_log.SharedFolderChangeMembersInheritancePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedFolderChangeMembersInheritancePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersInheritancePolicyType.description": {"fq_name": "team_log.SharedFolderChangeMembersInheritancePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderChangeMembersInheritancePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersManagementPolicyDetails.new_value": {"fq_name": "team_log.SharedFolderChangeMembersManagementPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedFolderChangeMembersManagementPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersManagementPolicyDetails.previous_value": {"fq_name": "team_log.SharedFolderChangeMembersManagementPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedFolderChangeMembersManagementPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersManagementPolicyType.description": {"fq_name": "team_log.SharedFolderChangeMembersManagementPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderChangeMembersManagementPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersPolicyDetails.new_value": {"fq_name": "team_log.SharedFolderChangeMembersPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedFolderChangeMembersPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersPolicyDetails.previous_value": {"fq_name": "team_log.SharedFolderChangeMembersPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedFolderChangeMembersPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderChangeMembersPolicyType.description": {"fq_name": "team_log.SharedFolderChangeMembersPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderChangeMembersPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderCreateDetails.target_ns_id": {"fq_name": "team_log.SharedFolderCreateDetails.target_ns_id", "param_name": "targetNsId", "static_instance": null, "getter_method": "getTargetNsId", "containing_data_type_ref": "team_log.SharedFolderCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderCreateType.description": {"fq_name": "team_log.SharedFolderCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderDeclineInvitationType.description": {"fq_name": "team_log.SharedFolderDeclineInvitationType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderDeclineInvitationType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderMembersInheritancePolicy.dont_inherit_members": {"fq_name": "team_log.SharedFolderMembersInheritancePolicy.dont_inherit_members", "param_name": "dontInheritMembersValue", "static_instance": "DONT_INHERIT_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.SharedFolderMembersInheritancePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderMembersInheritancePolicy.inherit_members": {"fq_name": "team_log.SharedFolderMembersInheritancePolicy.inherit_members", "param_name": "inheritMembersValue", "static_instance": "INHERIT_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_log.SharedFolderMembersInheritancePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderMembersInheritancePolicy.other": {"fq_name": "team_log.SharedFolderMembersInheritancePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SharedFolderMembersInheritancePolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderMountType.description": {"fq_name": "team_log.SharedFolderMountType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderMountType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderNestDetails.previous_parent_ns_id": {"fq_name": "team_log.SharedFolderNestDetails.previous_parent_ns_id", "param_name": "previousParentNsId", "static_instance": null, "getter_method": "getPreviousParentNsId", "containing_data_type_ref": "team_log.SharedFolderNestDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderNestDetails.new_parent_ns_id": {"fq_name": "team_log.SharedFolderNestDetails.new_parent_ns_id", "param_name": "newParentNsId", "static_instance": null, "getter_method": "getNewParentNsId", "containing_data_type_ref": "team_log.SharedFolderNestDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderNestDetails.previous_ns_path": {"fq_name": "team_log.SharedFolderNestDetails.previous_ns_path", "param_name": "previousNsPath", "static_instance": null, "getter_method": "getPreviousNsPath", "containing_data_type_ref": "team_log.SharedFolderNestDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderNestDetails.new_ns_path": {"fq_name": "team_log.SharedFolderNestDetails.new_ns_path", "param_name": "newNsPath", "static_instance": null, "getter_method": "getNewNsPath", "containing_data_type_ref": "team_log.SharedFolderNestDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderNestType.description": {"fq_name": "team_log.SharedFolderNestType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderNestType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderTransferOwnershipDetails.new_owner_email": {"fq_name": "team_log.SharedFolderTransferOwnershipDetails.new_owner_email", "param_name": "newOwnerEmail", "static_instance": null, "getter_method": "getNewOwnerEmail", "containing_data_type_ref": "team_log.SharedFolderTransferOwnershipDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderTransferOwnershipDetails.previous_owner_email": {"fq_name": "team_log.SharedFolderTransferOwnershipDetails.previous_owner_email", "param_name": "previousOwnerEmail", "static_instance": null, "getter_method": "getPreviousOwnerEmail", "containing_data_type_ref": "team_log.SharedFolderTransferOwnershipDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderTransferOwnershipType.description": {"fq_name": "team_log.SharedFolderTransferOwnershipType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderTransferOwnershipType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedFolderUnmountType.description": {"fq_name": "team_log.SharedFolderUnmountType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedFolderUnmountType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkAccessLevel.none": {"fq_name": "team_log.SharedLinkAccessLevel.none", "param_name": "noneValue", "static_instance": "NONE", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkAccessLevel.reader": {"fq_name": "team_log.SharedLinkAccessLevel.reader", "param_name": "readerValue", "static_instance": "READER", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkAccessLevel.writer": {"fq_name": "team_log.SharedLinkAccessLevel.writer", "param_name": "writerValue", "static_instance": "WRITER", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkAccessLevel.other": {"fq_name": "team_log.SharedLinkAccessLevel.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkAccessLevel", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkAddExpiryDetails.new_value": {"fq_name": "team_log.SharedLinkAddExpiryDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedLinkAddExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkAddExpiryType.description": {"fq_name": "team_log.SharedLinkAddExpiryType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkAddExpiryType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkChangeExpiryDetails.new_value": {"fq_name": "team_log.SharedLinkChangeExpiryDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedLinkChangeExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkChangeExpiryDetails.previous_value": {"fq_name": "team_log.SharedLinkChangeExpiryDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedLinkChangeExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkChangeExpiryType.description": {"fq_name": "team_log.SharedLinkChangeExpiryType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkChangeExpiryType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkChangeVisibilityDetails.new_value": {"fq_name": "team_log.SharedLinkChangeVisibilityDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedLinkChangeVisibilityDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkChangeVisibilityDetails.previous_value": {"fq_name": "team_log.SharedLinkChangeVisibilityDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedLinkChangeVisibilityDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkChangeVisibilityType.description": {"fq_name": "team_log.SharedLinkChangeVisibilityType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkChangeVisibilityType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkCopyDetails.shared_link_owner": {"fq_name": "team_log.SharedLinkCopyDetails.shared_link_owner", "param_name": "sharedLinkOwner", "static_instance": null, "getter_method": "getSharedLinkOwner", "containing_data_type_ref": "team_log.SharedLinkCopyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkCopyType.description": {"fq_name": "team_log.SharedLinkCopyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkCopyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkCreateDetails.shared_link_access_level": {"fq_name": "team_log.SharedLinkCreateDetails.shared_link_access_level", "param_name": "sharedLinkAccessLevel", "static_instance": null, "getter_method": "getSharedLinkAccessLevel", "containing_data_type_ref": "team_log.SharedLinkCreateDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkCreateType.description": {"fq_name": "team_log.SharedLinkCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkDisableDetails.shared_link_owner": {"fq_name": "team_log.SharedLinkDisableDetails.shared_link_owner", "param_name": "sharedLinkOwner", "static_instance": null, "getter_method": "getSharedLinkOwner", "containing_data_type_ref": "team_log.SharedLinkDisableDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkDisableType.description": {"fq_name": "team_log.SharedLinkDisableType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkDisableType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkDownloadDetails.shared_link_owner": {"fq_name": "team_log.SharedLinkDownloadDetails.shared_link_owner", "param_name": "sharedLinkOwner", "static_instance": null, "getter_method": "getSharedLinkOwner", "containing_data_type_ref": "team_log.SharedLinkDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkDownloadType.description": {"fq_name": "team_log.SharedLinkDownloadType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkDownloadType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkRemoveExpiryDetails.previous_value": {"fq_name": "team_log.SharedLinkRemoveExpiryDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedLinkRemoveExpiryDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkRemoveExpiryType.description": {"fq_name": "team_log.SharedLinkRemoveExpiryType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkRemoveExpiryType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAddExpirationDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsAddExpirationDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsAddExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAddExpirationDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsAddExpirationDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsAddExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAddExpirationDetails.new_value": {"fq_name": "team_log.SharedLinkSettingsAddExpirationDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedLinkSettingsAddExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAddExpirationType.description": {"fq_name": "team_log.SharedLinkSettingsAddExpirationType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsAddExpirationType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAddPasswordDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsAddPasswordDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsAddPasswordDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAddPasswordDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsAddPasswordDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsAddPasswordDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAddPasswordType.description": {"fq_name": "team_log.SharedLinkSettingsAddPasswordType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsAddPasswordType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAllowDownloadDisabledDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadDisabledDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsAllowDownloadDisabledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAllowDownloadDisabledDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadDisabledDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsAllowDownloadDisabledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAllowDownloadDisabledType.description": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadDisabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsAllowDownloadDisabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAllowDownloadEnabledDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadEnabledDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsAllowDownloadEnabledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAllowDownloadEnabledDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadEnabledDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsAllowDownloadEnabledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsAllowDownloadEnabledType.description": {"fq_name": "team_log.SharedLinkSettingsAllowDownloadEnabledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsAllowDownloadEnabledType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeAudienceDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsChangeAudienceDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeAudienceDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeAudienceDetails.new_value": {"fq_name": "team_log.SharedLinkSettingsChangeAudienceDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeAudienceDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeAudienceDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsChangeAudienceDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeAudienceDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeAudienceDetails.previous_value": {"fq_name": "team_log.SharedLinkSettingsChangeAudienceDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeAudienceDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeAudienceType.description": {"fq_name": "team_log.SharedLinkSettingsChangeAudienceType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeAudienceType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeExpirationDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsChangeExpirationDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeExpirationDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsChangeExpirationDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeExpirationDetails.new_value": {"fq_name": "team_log.SharedLinkSettingsChangeExpirationDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeExpirationDetails.previous_value": {"fq_name": "team_log.SharedLinkSettingsChangeExpirationDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangeExpirationType.description": {"fq_name": "team_log.SharedLinkSettingsChangeExpirationType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsChangeExpirationType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangePasswordDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsChangePasswordDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsChangePasswordDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangePasswordDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsChangePasswordDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsChangePasswordDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsChangePasswordType.description": {"fq_name": "team_log.SharedLinkSettingsChangePasswordType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsChangePasswordType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsRemoveExpirationDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsRemoveExpirationDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsRemoveExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsRemoveExpirationDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsRemoveExpirationDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsRemoveExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsRemoveExpirationDetails.previous_value": {"fq_name": "team_log.SharedLinkSettingsRemoveExpirationDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharedLinkSettingsRemoveExpirationDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsRemoveExpirationType.description": {"fq_name": "team_log.SharedLinkSettingsRemoveExpirationType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsRemoveExpirationType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsRemovePasswordDetails.shared_content_access_level": {"fq_name": "team_log.SharedLinkSettingsRemovePasswordDetails.shared_content_access_level", "param_name": "sharedContentAccessLevel", "static_instance": null, "getter_method": "getSharedContentAccessLevel", "containing_data_type_ref": "team_log.SharedLinkSettingsRemovePasswordDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsRemovePasswordDetails.shared_content_link": {"fq_name": "team_log.SharedLinkSettingsRemovePasswordDetails.shared_content_link", "param_name": "sharedContentLink", "static_instance": null, "getter_method": "getSharedContentLink", "containing_data_type_ref": "team_log.SharedLinkSettingsRemovePasswordDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkSettingsRemovePasswordType.description": {"fq_name": "team_log.SharedLinkSettingsRemovePasswordType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkSettingsRemovePasswordType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkShareDetails.shared_link_owner": {"fq_name": "team_log.SharedLinkShareDetails.shared_link_owner", "param_name": "sharedLinkOwner", "static_instance": null, "getter_method": "getSharedLinkOwner", "containing_data_type_ref": "team_log.SharedLinkShareDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkShareDetails.external_users": {"fq_name": "team_log.SharedLinkShareDetails.external_users", "param_name": "externalUsers", "static_instance": null, "getter_method": "getExternalUsers", "containing_data_type_ref": "team_log.SharedLinkShareDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkShareType.description": {"fq_name": "team_log.SharedLinkShareType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkShareType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkViewDetails.shared_link_owner": {"fq_name": "team_log.SharedLinkViewDetails.shared_link_owner", "param_name": "sharedLinkOwner", "static_instance": null, "getter_method": "getSharedLinkOwner", "containing_data_type_ref": "team_log.SharedLinkViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkViewType.description": {"fq_name": "team_log.SharedLinkViewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedLinkViewType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkVisibility.no_one": {"fq_name": "team_log.SharedLinkVisibility.no_one", "param_name": "noOneValue", "static_instance": "NO_ONE", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkVisibility", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkVisibility.password": {"fq_name": "team_log.SharedLinkVisibility.password", "param_name": "passwordValue", "static_instance": "PASSWORD", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkVisibility", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkVisibility.public": {"fq_name": "team_log.SharedLinkVisibility.public", "param_name": "publicValue", "static_instance": "PUBLIC", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkVisibility", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkVisibility.team_only": {"fq_name": "team_log.SharedLinkVisibility.team_only", "param_name": "teamOnlyValue", "static_instance": "TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkVisibility", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedLinkVisibility.other": {"fq_name": "team_log.SharedLinkVisibility.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SharedLinkVisibility", "route_refs": [], "_type": "FieldReference"}, "team_log.SharedNoteOpenedType.description": {"fq_name": "team_log.SharedNoteOpenedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharedNoteOpenedType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeFolderJoinPolicyDetails.new_value": {"fq_name": "team_log.SharingChangeFolderJoinPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharingChangeFolderJoinPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeFolderJoinPolicyDetails.previous_value": {"fq_name": "team_log.SharingChangeFolderJoinPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharingChangeFolderJoinPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeFolderJoinPolicyType.description": {"fq_name": "team_log.SharingChangeFolderJoinPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharingChangeFolderJoinPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails.new_value": {"fq_name": "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails.previous_value": {"fq_name": "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkAllowChangeExpirationPolicyType.description": {"fq_name": "team_log.SharingChangeLinkAllowChangeExpirationPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharingChangeLinkAllowChangeExpirationPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkDefaultExpirationPolicyDetails.new_value": {"fq_name": "team_log.SharingChangeLinkDefaultExpirationPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharingChangeLinkDefaultExpirationPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkDefaultExpirationPolicyDetails.previous_value": {"fq_name": "team_log.SharingChangeLinkDefaultExpirationPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharingChangeLinkDefaultExpirationPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkDefaultExpirationPolicyType.description": {"fq_name": "team_log.SharingChangeLinkDefaultExpirationPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharingChangeLinkDefaultExpirationPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkEnforcePasswordPolicyDetails.new_value": {"fq_name": "team_log.SharingChangeLinkEnforcePasswordPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharingChangeLinkEnforcePasswordPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkEnforcePasswordPolicyDetails.previous_value": {"fq_name": "team_log.SharingChangeLinkEnforcePasswordPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharingChangeLinkEnforcePasswordPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkEnforcePasswordPolicyType.description": {"fq_name": "team_log.SharingChangeLinkEnforcePasswordPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharingChangeLinkEnforcePasswordPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkPolicyDetails.new_value": {"fq_name": "team_log.SharingChangeLinkPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharingChangeLinkPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkPolicyDetails.previous_value": {"fq_name": "team_log.SharingChangeLinkPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharingChangeLinkPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeLinkPolicyType.description": {"fq_name": "team_log.SharingChangeLinkPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharingChangeLinkPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeMemberPolicyDetails.new_value": {"fq_name": "team_log.SharingChangeMemberPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SharingChangeMemberPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeMemberPolicyDetails.previous_value": {"fq_name": "team_log.SharingChangeMemberPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SharingChangeMemberPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingChangeMemberPolicyType.description": {"fq_name": "team_log.SharingChangeMemberPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SharingChangeMemberPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingFolderJoinPolicy.from_anyone": {"fq_name": "team_log.SharingFolderJoinPolicy.from_anyone", "param_name": "fromAnyoneValue", "static_instance": "FROM_ANYONE", "getter_method": null, "containing_data_type_ref": "team_log.SharingFolderJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingFolderJoinPolicy.from_team_only": {"fq_name": "team_log.SharingFolderJoinPolicy.from_team_only", "param_name": "fromTeamOnlyValue", "static_instance": "FROM_TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "team_log.SharingFolderJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingFolderJoinPolicy.other": {"fq_name": "team_log.SharingFolderJoinPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SharingFolderJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingLinkPolicy.default_no_one": {"fq_name": "team_log.SharingLinkPolicy.default_no_one", "param_name": "defaultNoOneValue", "static_instance": "DEFAULT_NO_ONE", "getter_method": null, "containing_data_type_ref": "team_log.SharingLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingLinkPolicy.default_private": {"fq_name": "team_log.SharingLinkPolicy.default_private", "param_name": "defaultPrivateValue", "static_instance": "DEFAULT_PRIVATE", "getter_method": null, "containing_data_type_ref": "team_log.SharingLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingLinkPolicy.default_public": {"fq_name": "team_log.SharingLinkPolicy.default_public", "param_name": "defaultPublicValue", "static_instance": "DEFAULT_PUBLIC", "getter_method": null, "containing_data_type_ref": "team_log.SharingLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingLinkPolicy.only_private": {"fq_name": "team_log.SharingLinkPolicy.only_private", "param_name": "onlyPrivateValue", "static_instance": "ONLY_PRIVATE", "getter_method": null, "containing_data_type_ref": "team_log.SharingLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingLinkPolicy.other": {"fq_name": "team_log.SharingLinkPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SharingLinkPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingMemberPolicy.allow": {"fq_name": "team_log.SharingMemberPolicy.allow", "param_name": "allowValue", "static_instance": "ALLOW", "getter_method": null, "containing_data_type_ref": "team_log.SharingMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingMemberPolicy.forbid": {"fq_name": "team_log.SharingMemberPolicy.forbid", "param_name": "forbidValue", "static_instance": "FORBID", "getter_method": null, "containing_data_type_ref": "team_log.SharingMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingMemberPolicy.forbid_with_exclusions": {"fq_name": "team_log.SharingMemberPolicy.forbid_with_exclusions", "param_name": "forbidWithExclusionsValue", "static_instance": "FORBID_WITH_EXCLUSIONS", "getter_method": null, "containing_data_type_ref": "team_log.SharingMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SharingMemberPolicy.other": {"fq_name": "team_log.SharingMemberPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SharingMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShmodelDisableDownloadsDetails.shared_link_owner": {"fq_name": "team_log.ShmodelDisableDownloadsDetails.shared_link_owner", "param_name": "sharedLinkOwner", "static_instance": null, "getter_method": "getSharedLinkOwner", "containing_data_type_ref": "team_log.ShmodelDisableDownloadsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShmodelDisableDownloadsType.description": {"fq_name": "team_log.ShmodelDisableDownloadsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShmodelDisableDownloadsType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShmodelEnableDownloadsDetails.shared_link_owner": {"fq_name": "team_log.ShmodelEnableDownloadsDetails.shared_link_owner", "param_name": "sharedLinkOwner", "static_instance": null, "getter_method": "getSharedLinkOwner", "containing_data_type_ref": "team_log.ShmodelEnableDownloadsDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShmodelEnableDownloadsType.description": {"fq_name": "team_log.ShmodelEnableDownloadsType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShmodelEnableDownloadsType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShmodelGroupShareType.description": {"fq_name": "team_log.ShmodelGroupShareType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShmodelGroupShareType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseAccessGrantedDetails.event_uuid": {"fq_name": "team_log.ShowcaseAccessGrantedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseAccessGrantedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseAccessGrantedType.description": {"fq_name": "team_log.ShowcaseAccessGrantedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseAccessGrantedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseAddMemberDetails.event_uuid": {"fq_name": "team_log.ShowcaseAddMemberDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseAddMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseAddMemberType.description": {"fq_name": "team_log.ShowcaseAddMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseAddMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseArchivedDetails.event_uuid": {"fq_name": "team_log.ShowcaseArchivedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseArchivedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseArchivedType.description": {"fq_name": "team_log.ShowcaseArchivedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseArchivedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeDownloadPolicyDetails.new_value": {"fq_name": "team_log.ShowcaseChangeDownloadPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ShowcaseChangeDownloadPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeDownloadPolicyDetails.previous_value": {"fq_name": "team_log.ShowcaseChangeDownloadPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ShowcaseChangeDownloadPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeDownloadPolicyType.description": {"fq_name": "team_log.ShowcaseChangeDownloadPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseChangeDownloadPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeEnabledPolicyDetails.new_value": {"fq_name": "team_log.ShowcaseChangeEnabledPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ShowcaseChangeEnabledPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeEnabledPolicyDetails.previous_value": {"fq_name": "team_log.ShowcaseChangeEnabledPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ShowcaseChangeEnabledPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeEnabledPolicyType.description": {"fq_name": "team_log.ShowcaseChangeEnabledPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseChangeEnabledPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeExternalSharingPolicyDetails.new_value": {"fq_name": "team_log.ShowcaseChangeExternalSharingPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ShowcaseChangeExternalSharingPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeExternalSharingPolicyDetails.previous_value": {"fq_name": "team_log.ShowcaseChangeExternalSharingPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ShowcaseChangeExternalSharingPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseChangeExternalSharingPolicyType.description": {"fq_name": "team_log.ShowcaseChangeExternalSharingPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseChangeExternalSharingPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseCreatedDetails.event_uuid": {"fq_name": "team_log.ShowcaseCreatedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseCreatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseCreatedType.description": {"fq_name": "team_log.ShowcaseCreatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseCreatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDeleteCommentDetails.event_uuid": {"fq_name": "team_log.ShowcaseDeleteCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseDeleteCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDeleteCommentDetails.comment_text": {"fq_name": "team_log.ShowcaseDeleteCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.ShowcaseDeleteCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDeleteCommentType.description": {"fq_name": "team_log.ShowcaseDeleteCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseDeleteCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDocumentLogInfo.showcase_id": {"fq_name": "team_log.ShowcaseDocumentLogInfo.showcase_id", "param_name": "showcaseId", "static_instance": null, "getter_method": "getShowcaseId", "containing_data_type_ref": "team_log.ShowcaseDocumentLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDocumentLogInfo.showcase_title": {"fq_name": "team_log.ShowcaseDocumentLogInfo.showcase_title", "param_name": "showcaseTitle", "static_instance": null, "getter_method": "getShowcaseTitle", "containing_data_type_ref": "team_log.ShowcaseDocumentLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDownloadPolicy.disabled": {"fq_name": "team_log.ShowcaseDownloadPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseDownloadPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDownloadPolicy.enabled": {"fq_name": "team_log.ShowcaseDownloadPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseDownloadPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseDownloadPolicy.other": {"fq_name": "team_log.ShowcaseDownloadPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseDownloadPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEditCommentDetails.event_uuid": {"fq_name": "team_log.ShowcaseEditCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseEditCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEditCommentDetails.comment_text": {"fq_name": "team_log.ShowcaseEditCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.ShowcaseEditCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEditCommentType.description": {"fq_name": "team_log.ShowcaseEditCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseEditCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEditedDetails.event_uuid": {"fq_name": "team_log.ShowcaseEditedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseEditedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEditedType.description": {"fq_name": "team_log.ShowcaseEditedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseEditedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEnabledPolicy.disabled": {"fq_name": "team_log.ShowcaseEnabledPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEnabledPolicy.enabled": {"fq_name": "team_log.ShowcaseEnabledPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseEnabledPolicy.other": {"fq_name": "team_log.ShowcaseEnabledPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseExternalSharingPolicy.disabled": {"fq_name": "team_log.ShowcaseExternalSharingPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseExternalSharingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseExternalSharingPolicy.enabled": {"fq_name": "team_log.ShowcaseExternalSharingPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseExternalSharingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseExternalSharingPolicy.other": {"fq_name": "team_log.ShowcaseExternalSharingPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.ShowcaseExternalSharingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileAddedDetails.event_uuid": {"fq_name": "team_log.ShowcaseFileAddedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseFileAddedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileAddedType.description": {"fq_name": "team_log.ShowcaseFileAddedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseFileAddedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileDownloadDetails.event_uuid": {"fq_name": "team_log.ShowcaseFileDownloadDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseFileDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileDownloadDetails.download_type": {"fq_name": "team_log.ShowcaseFileDownloadDetails.download_type", "param_name": "downloadType", "static_instance": null, "getter_method": "getDownloadType", "containing_data_type_ref": "team_log.ShowcaseFileDownloadDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileDownloadType.description": {"fq_name": "team_log.ShowcaseFileDownloadType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseFileDownloadType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileRemovedDetails.event_uuid": {"fq_name": "team_log.ShowcaseFileRemovedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseFileRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileRemovedType.description": {"fq_name": "team_log.ShowcaseFileRemovedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseFileRemovedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileViewDetails.event_uuid": {"fq_name": "team_log.ShowcaseFileViewDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseFileViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseFileViewType.description": {"fq_name": "team_log.ShowcaseFileViewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseFileViewType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcasePermanentlyDeletedDetails.event_uuid": {"fq_name": "team_log.ShowcasePermanentlyDeletedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcasePermanentlyDeletedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcasePermanentlyDeletedType.description": {"fq_name": "team_log.ShowcasePermanentlyDeletedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcasePermanentlyDeletedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcasePostCommentDetails.event_uuid": {"fq_name": "team_log.ShowcasePostCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcasePostCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcasePostCommentDetails.comment_text": {"fq_name": "team_log.ShowcasePostCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.ShowcasePostCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcasePostCommentType.description": {"fq_name": "team_log.ShowcasePostCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcasePostCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRemoveMemberDetails.event_uuid": {"fq_name": "team_log.ShowcaseRemoveMemberDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseRemoveMemberDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRemoveMemberType.description": {"fq_name": "team_log.ShowcaseRemoveMemberType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseRemoveMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRenamedDetails.event_uuid": {"fq_name": "team_log.ShowcaseRenamedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseRenamedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRenamedType.description": {"fq_name": "team_log.ShowcaseRenamedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseRenamedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRequestAccessDetails.event_uuid": {"fq_name": "team_log.ShowcaseRequestAccessDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseRequestAccessDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRequestAccessType.description": {"fq_name": "team_log.ShowcaseRequestAccessType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseRequestAccessType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseResolveCommentDetails.event_uuid": {"fq_name": "team_log.ShowcaseResolveCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseResolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseResolveCommentDetails.comment_text": {"fq_name": "team_log.ShowcaseResolveCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.ShowcaseResolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseResolveCommentType.description": {"fq_name": "team_log.ShowcaseResolveCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseResolveCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRestoredDetails.event_uuid": {"fq_name": "team_log.ShowcaseRestoredDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseRestoredDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseRestoredType.description": {"fq_name": "team_log.ShowcaseRestoredType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseRestoredType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseTrashedDeprecatedDetails.event_uuid": {"fq_name": "team_log.ShowcaseTrashedDeprecatedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseTrashedDeprecatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseTrashedDeprecatedType.description": {"fq_name": "team_log.ShowcaseTrashedDeprecatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseTrashedDeprecatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseTrashedDetails.event_uuid": {"fq_name": "team_log.ShowcaseTrashedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseTrashedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseTrashedType.description": {"fq_name": "team_log.ShowcaseTrashedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseTrashedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseUnresolveCommentDetails.event_uuid": {"fq_name": "team_log.ShowcaseUnresolveCommentDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseUnresolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseUnresolveCommentDetails.comment_text": {"fq_name": "team_log.ShowcaseUnresolveCommentDetails.comment_text", "param_name": "commentText", "static_instance": null, "getter_method": "getCommentText", "containing_data_type_ref": "team_log.ShowcaseUnresolveCommentDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseUnresolveCommentType.description": {"fq_name": "team_log.ShowcaseUnresolveCommentType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseUnresolveCommentType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseUntrashedDeprecatedDetails.event_uuid": {"fq_name": "team_log.ShowcaseUntrashedDeprecatedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseUntrashedDeprecatedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseUntrashedDeprecatedType.description": {"fq_name": "team_log.ShowcaseUntrashedDeprecatedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseUntrashedDeprecatedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseUntrashedDetails.event_uuid": {"fq_name": "team_log.ShowcaseUntrashedDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseUntrashedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseUntrashedType.description": {"fq_name": "team_log.ShowcaseUntrashedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseUntrashedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseViewDetails.event_uuid": {"fq_name": "team_log.ShowcaseViewDetails.event_uuid", "param_name": "eventUuid", "static_instance": null, "getter_method": "getEventUuid", "containing_data_type_ref": "team_log.ShowcaseViewDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ShowcaseViewType.description": {"fq_name": "team_log.ShowcaseViewType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ShowcaseViewType", "route_refs": [], "_type": "FieldReference"}, "team_log.SignInAsSessionEndType.description": {"fq_name": "team_log.SignInAsSessionEndType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SignInAsSessionEndType", "route_refs": [], "_type": "FieldReference"}, "team_log.SignInAsSessionStartType.description": {"fq_name": "team_log.SignInAsSessionStartType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SignInAsSessionStartType", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncChangePolicyDetails.new_value": {"fq_name": "team_log.SmartSyncChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SmartSyncChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncChangePolicyDetails.previous_value": {"fq_name": "team_log.SmartSyncChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SmartSyncChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncChangePolicyType.description": {"fq_name": "team_log.SmartSyncChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SmartSyncChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncCreateAdminPrivilegeReportType.description": {"fq_name": "team_log.SmartSyncCreateAdminPrivilegeReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SmartSyncCreateAdminPrivilegeReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncNotOptOutDetails.previous_value": {"fq_name": "team_log.SmartSyncNotOptOutDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SmartSyncNotOptOutDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncNotOptOutDetails.new_value": {"fq_name": "team_log.SmartSyncNotOptOutDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SmartSyncNotOptOutDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncNotOptOutType.description": {"fq_name": "team_log.SmartSyncNotOptOutType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SmartSyncNotOptOutType", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncOptOutDetails.previous_value": {"fq_name": "team_log.SmartSyncOptOutDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SmartSyncOptOutDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncOptOutDetails.new_value": {"fq_name": "team_log.SmartSyncOptOutDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SmartSyncOptOutDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncOptOutPolicy.default": {"fq_name": "team_log.SmartSyncOptOutPolicy.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_log.SmartSyncOptOutPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncOptOutPolicy.opted_out": {"fq_name": "team_log.SmartSyncOptOutPolicy.opted_out", "param_name": "optedOutValue", "static_instance": "OPTED_OUT", "getter_method": null, "containing_data_type_ref": "team_log.SmartSyncOptOutPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncOptOutPolicy.other": {"fq_name": "team_log.SmartSyncOptOutPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SmartSyncOptOutPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.SmartSyncOptOutType.description": {"fq_name": "team_log.SmartSyncOptOutType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SmartSyncOptOutType", "route_refs": [], "_type": "FieldReference"}, "team_log.SmarterSmartSyncPolicyChangedDetails.previous_value": {"fq_name": "team_log.SmarterSmartSyncPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SmarterSmartSyncPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmarterSmartSyncPolicyChangedDetails.new_value": {"fq_name": "team_log.SmarterSmartSyncPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SmarterSmartSyncPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SmarterSmartSyncPolicyChangedType.description": {"fq_name": "team_log.SmarterSmartSyncPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SmarterSmartSyncPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceCapsType.hard": {"fq_name": "team_log.SpaceCapsType.hard", "param_name": "hardValue", "static_instance": "HARD", "getter_method": null, "containing_data_type_ref": "team_log.SpaceCapsType", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceCapsType.off": {"fq_name": "team_log.SpaceCapsType.off", "param_name": "offValue", "static_instance": "OFF", "getter_method": null, "containing_data_type_ref": "team_log.SpaceCapsType", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceCapsType.soft": {"fq_name": "team_log.SpaceCapsType.soft", "param_name": "softValue", "static_instance": "SOFT", "getter_method": null, "containing_data_type_ref": "team_log.SpaceCapsType", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceCapsType.other": {"fq_name": "team_log.SpaceCapsType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SpaceCapsType", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceLimitsStatus.near_quota": {"fq_name": "team_log.SpaceLimitsStatus.near_quota", "param_name": "nearQuotaValue", "static_instance": "NEAR_QUOTA", "getter_method": null, "containing_data_type_ref": "team_log.SpaceLimitsStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceLimitsStatus.over_quota": {"fq_name": "team_log.SpaceLimitsStatus.over_quota", "param_name": "overQuotaValue", "static_instance": "OVER_QUOTA", "getter_method": null, "containing_data_type_ref": "team_log.SpaceLimitsStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceLimitsStatus.within_quota": {"fq_name": "team_log.SpaceLimitsStatus.within_quota", "param_name": "withinQuotaValue", "static_instance": "WITHIN_QUOTA", "getter_method": null, "containing_data_type_ref": "team_log.SpaceLimitsStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.SpaceLimitsStatus.other": {"fq_name": "team_log.SpaceLimitsStatus.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.SpaceLimitsStatus", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoAddCertDetails.certificate_details": {"fq_name": "team_log.SsoAddCertDetails.certificate_details", "param_name": "certificateDetails", "static_instance": null, "getter_method": "getCertificateDetails", "containing_data_type_ref": "team_log.SsoAddCertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoAddCertType.description": {"fq_name": "team_log.SsoAddCertType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoAddCertType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoAddLoginUrlDetails.new_value": {"fq_name": "team_log.SsoAddLoginUrlDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SsoAddLoginUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoAddLoginUrlType.description": {"fq_name": "team_log.SsoAddLoginUrlType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoAddLoginUrlType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoAddLogoutUrlDetails.new_value": {"fq_name": "team_log.SsoAddLogoutUrlDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SsoAddLogoutUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoAddLogoutUrlType.description": {"fq_name": "team_log.SsoAddLogoutUrlType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoAddLogoutUrlType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeCertDetails.new_certificate_details": {"fq_name": "team_log.SsoChangeCertDetails.new_certificate_details", "param_name": "newCertificateDetails", "static_instance": null, "getter_method": "getNewCertificateDetails", "containing_data_type_ref": "team_log.SsoChangeCertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeCertDetails.previous_certificate_details": {"fq_name": "team_log.SsoChangeCertDetails.previous_certificate_details", "param_name": "previousCertificateDetails", "static_instance": null, "getter_method": "getPreviousCertificateDetails", "containing_data_type_ref": "team_log.SsoChangeCertDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeCertType.description": {"fq_name": "team_log.SsoChangeCertType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoChangeCertType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeLoginUrlDetails.previous_value": {"fq_name": "team_log.SsoChangeLoginUrlDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SsoChangeLoginUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeLoginUrlDetails.new_value": {"fq_name": "team_log.SsoChangeLoginUrlDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SsoChangeLoginUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeLoginUrlType.description": {"fq_name": "team_log.SsoChangeLoginUrlType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoChangeLoginUrlType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeLogoutUrlDetails.previous_value": {"fq_name": "team_log.SsoChangeLogoutUrlDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SsoChangeLogoutUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeLogoutUrlDetails.new_value": {"fq_name": "team_log.SsoChangeLogoutUrlDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SsoChangeLogoutUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeLogoutUrlType.description": {"fq_name": "team_log.SsoChangeLogoutUrlType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoChangeLogoutUrlType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangePolicyDetails.new_value": {"fq_name": "team_log.SsoChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SsoChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangePolicyDetails.previous_value": {"fq_name": "team_log.SsoChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SsoChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangePolicyType.description": {"fq_name": "team_log.SsoChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeSamlIdentityModeDetails.previous_value": {"fq_name": "team_log.SsoChangeSamlIdentityModeDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SsoChangeSamlIdentityModeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeSamlIdentityModeDetails.new_value": {"fq_name": "team_log.SsoChangeSamlIdentityModeDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.SsoChangeSamlIdentityModeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoChangeSamlIdentityModeType.description": {"fq_name": "team_log.SsoChangeSamlIdentityModeType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoChangeSamlIdentityModeType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoErrorDetails.error_details": {"fq_name": "team_log.SsoErrorDetails.error_details", "param_name": "errorDetails", "static_instance": null, "getter_method": "getErrorDetails", "containing_data_type_ref": "team_log.SsoErrorDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoErrorType.description": {"fq_name": "team_log.SsoErrorType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoErrorType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoRemoveCertType.description": {"fq_name": "team_log.SsoRemoveCertType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoRemoveCertType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoRemoveLoginUrlDetails.previous_value": {"fq_name": "team_log.SsoRemoveLoginUrlDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SsoRemoveLoginUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoRemoveLoginUrlType.description": {"fq_name": "team_log.SsoRemoveLoginUrlType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoRemoveLoginUrlType", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoRemoveLogoutUrlDetails.previous_value": {"fq_name": "team_log.SsoRemoveLogoutUrlDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.SsoRemoveLogoutUrlDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.SsoRemoveLogoutUrlType.description": {"fq_name": "team_log.SsoRemoveLogoutUrlType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.SsoRemoveLogoutUrlType", "route_refs": [], "_type": "FieldReference"}, "team_log.StartedEnterpriseAdminSessionDetails.federation_extra_details": {"fq_name": "team_log.StartedEnterpriseAdminSessionDetails.federation_extra_details", "param_name": "federationExtraDetails", "static_instance": null, "getter_method": "getFederationExtraDetails", "containing_data_type_ref": "team_log.StartedEnterpriseAdminSessionDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.StartedEnterpriseAdminSessionType.description": {"fq_name": "team_log.StartedEnterpriseAdminSessionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.StartedEnterpriseAdminSessionType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamActivityCreateReportDetails.start_date": {"fq_name": "team_log.TeamActivityCreateReportDetails.start_date", "param_name": "startDate", "static_instance": null, "getter_method": "getStartDate", "containing_data_type_ref": "team_log.TeamActivityCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamActivityCreateReportDetails.end_date": {"fq_name": "team_log.TeamActivityCreateReportDetails.end_date", "param_name": "endDate", "static_instance": null, "getter_method": "getEndDate", "containing_data_type_ref": "team_log.TeamActivityCreateReportDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamActivityCreateReportFailDetails.failure_reason": {"fq_name": "team_log.TeamActivityCreateReportFailDetails.failure_reason", "param_name": "failureReason", "static_instance": null, "getter_method": "getFailureReason", "containing_data_type_ref": "team_log.TeamActivityCreateReportFailDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamActivityCreateReportFailType.description": {"fq_name": "team_log.TeamActivityCreateReportFailType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamActivityCreateReportFailType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamActivityCreateReportType.description": {"fq_name": "team_log.TeamActivityCreateReportType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamActivityCreateReportType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamBrandingPolicy.disabled": {"fq_name": "team_log.TeamBrandingPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.TeamBrandingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamBrandingPolicy.enabled": {"fq_name": "team_log.TeamBrandingPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.TeamBrandingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamBrandingPolicy.other": {"fq_name": "team_log.TeamBrandingPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamBrandingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamBrandingPolicyChangedDetails.new_value": {"fq_name": "team_log.TeamBrandingPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TeamBrandingPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamBrandingPolicyChangedDetails.previous_value": {"fq_name": "team_log.TeamBrandingPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TeamBrandingPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamBrandingPolicyChangedType.description": {"fq_name": "team_log.TeamBrandingPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamBrandingPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamDetails.team": {"fq_name": "team_log.TeamDetails.team", "param_name": "team", "static_instance": null, "getter_method": "getTeam", "containing_data_type_ref": "team_log.TeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEncryptionKeyCancelKeyDeletionType.description": {"fq_name": "team_log.TeamEncryptionKeyCancelKeyDeletionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamEncryptionKeyCancelKeyDeletionType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEncryptionKeyCreateKeyType.description": {"fq_name": "team_log.TeamEncryptionKeyCreateKeyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamEncryptionKeyCreateKeyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEncryptionKeyDeleteKeyType.description": {"fq_name": "team_log.TeamEncryptionKeyDeleteKeyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamEncryptionKeyDeleteKeyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEncryptionKeyDisableKeyType.description": {"fq_name": "team_log.TeamEncryptionKeyDisableKeyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamEncryptionKeyDisableKeyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEncryptionKeyEnableKeyType.description": {"fq_name": "team_log.TeamEncryptionKeyEnableKeyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamEncryptionKeyEnableKeyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEncryptionKeyRotateKeyType.description": {"fq_name": "team_log.TeamEncryptionKeyRotateKeyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamEncryptionKeyRotateKeyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEncryptionKeyScheduleKeyDeletionType.description": {"fq_name": "team_log.TeamEncryptionKeyScheduleKeyDeletionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamEncryptionKeyScheduleKeyDeletionType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.timestamp": {"fq_name": "team_log.TeamEvent.timestamp", "param_name": "timestamp", "static_instance": null, "getter_method": "getTimestamp", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.event_category": {"fq_name": "team_log.TeamEvent.event_category", "param_name": "eventCategory", "static_instance": null, "getter_method": "getEventCategory", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.event_type": {"fq_name": "team_log.TeamEvent.event_type", "param_name": "eventType", "static_instance": null, "getter_method": "getEventType", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.details": {"fq_name": "team_log.TeamEvent.details", "param_name": "details", "static_instance": null, "getter_method": "getDetails", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.actor": {"fq_name": "team_log.TeamEvent.actor", "param_name": "actor", "static_instance": null, "getter_method": "getActor", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.origin": {"fq_name": "team_log.TeamEvent.origin", "param_name": "origin", "static_instance": null, "getter_method": "getOrigin", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.involve_non_team_member": {"fq_name": "team_log.TeamEvent.involve_non_team_member", "param_name": "involveNonTeamMember", "static_instance": null, "getter_method": "getInvolveNonTeamMember", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.context": {"fq_name": "team_log.TeamEvent.context", "param_name": "context", "static_instance": null, "getter_method": "getContext", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.participants": {"fq_name": "team_log.TeamEvent.participants", "param_name": "participants", "static_instance": null, "getter_method": "getParticipants", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamEvent.assets": {"fq_name": "team_log.TeamEvent.assets", "param_name": "assets", "static_instance": null, "getter_method": "getAssets", "containing_data_type_ref": "team_log.TeamEvent", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamExtensionsPolicy.disabled": {"fq_name": "team_log.TeamExtensionsPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.TeamExtensionsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamExtensionsPolicy.enabled": {"fq_name": "team_log.TeamExtensionsPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.TeamExtensionsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamExtensionsPolicy.other": {"fq_name": "team_log.TeamExtensionsPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamExtensionsPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamExtensionsPolicyChangedDetails.new_value": {"fq_name": "team_log.TeamExtensionsPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TeamExtensionsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamExtensionsPolicyChangedDetails.previous_value": {"fq_name": "team_log.TeamExtensionsPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TeamExtensionsPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamExtensionsPolicyChangedType.description": {"fq_name": "team_log.TeamExtensionsPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamExtensionsPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderChangeStatusDetails.new_value": {"fq_name": "team_log.TeamFolderChangeStatusDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TeamFolderChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderChangeStatusDetails.previous_value": {"fq_name": "team_log.TeamFolderChangeStatusDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TeamFolderChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderChangeStatusType.description": {"fq_name": "team_log.TeamFolderChangeStatusType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamFolderChangeStatusType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderCreateType.description": {"fq_name": "team_log.TeamFolderCreateType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamFolderCreateType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderDowngradeDetails.target_asset_index": {"fq_name": "team_log.TeamFolderDowngradeDetails.target_asset_index", "param_name": "targetAssetIndex", "static_instance": null, "getter_method": "getTargetAssetIndex", "containing_data_type_ref": "team_log.TeamFolderDowngradeDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderDowngradeType.description": {"fq_name": "team_log.TeamFolderDowngradeType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamFolderDowngradeType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderPermanentlyDeleteType.description": {"fq_name": "team_log.TeamFolderPermanentlyDeleteType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamFolderPermanentlyDeleteType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderRenameDetails.previous_folder_name": {"fq_name": "team_log.TeamFolderRenameDetails.previous_folder_name", "param_name": "previousFolderName", "static_instance": null, "getter_method": "getPreviousFolderName", "containing_data_type_ref": "team_log.TeamFolderRenameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderRenameDetails.new_folder_name": {"fq_name": "team_log.TeamFolderRenameDetails.new_folder_name", "param_name": "newFolderName", "static_instance": null, "getter_method": "getNewFolderName", "containing_data_type_ref": "team_log.TeamFolderRenameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamFolderRenameType.description": {"fq_name": "team_log.TeamFolderRenameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamFolderRenameType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamInviteDetails.invite_method": {"fq_name": "team_log.TeamInviteDetails.invite_method", "param_name": "inviteMethod", "static_instance": null, "getter_method": "getInviteMethod", "containing_data_type_ref": "team_log.TeamInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamInviteDetails.additional_license_purchase": {"fq_name": "team_log.TeamInviteDetails.additional_license_purchase", "param_name": "additionalLicensePurchase", "static_instance": null, "getter_method": "getAdditionalLicensePurchase", "containing_data_type_ref": "team_log.TeamInviteDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamLinkedAppLogInfo.app_id": {"fq_name": "team_log.TeamLinkedAppLogInfo.app_id", "param_name": "appId", "static_instance": null, "getter_method": "getAppId", "containing_data_type_ref": "team_log.TeamLinkedAppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamLinkedAppLogInfo.display_name": {"fq_name": "team_log.TeamLinkedAppLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.TeamLinkedAppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamLogInfo.display_name": {"fq_name": "team_log.TeamLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.TeamLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMemberLogInfo.account_id": {"fq_name": "team_log.TeamMemberLogInfo.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "team_log.TeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMemberLogInfo.display_name": {"fq_name": "team_log.TeamMemberLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.TeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMemberLogInfo.email": {"fq_name": "team_log.TeamMemberLogInfo.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "team_log.TeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMemberLogInfo.team_member_id": {"fq_name": "team_log.TeamMemberLogInfo.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "team_log.TeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMemberLogInfo.member_external_id": {"fq_name": "team_log.TeamMemberLogInfo.member_external_id", "param_name": "memberExternalId", "static_instance": null, "getter_method": "getMemberExternalId", "containing_data_type_ref": "team_log.TeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMemberLogInfo.team": {"fq_name": "team_log.TeamMemberLogInfo.team", "param_name": "team", "static_instance": null, "getter_method": "getTeam", "containing_data_type_ref": "team_log.TeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMembershipType.free": {"fq_name": "team_log.TeamMembershipType.free", "param_name": "freeValue", "static_instance": "FREE", "getter_method": null, "containing_data_type_ref": "team_log.TeamMembershipType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMembershipType.full": {"fq_name": "team_log.TeamMembershipType.full", "param_name": "fullValue", "static_instance": "FULL", "getter_method": null, "containing_data_type_ref": "team_log.TeamMembershipType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMembershipType.guest": {"fq_name": "team_log.TeamMembershipType.guest", "param_name": "guestValue", "static_instance": "GUEST", "getter_method": null, "containing_data_type_ref": "team_log.TeamMembershipType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMembershipType.other": {"fq_name": "team_log.TeamMembershipType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamMembershipType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeFromDetails.team_name": {"fq_name": "team_log.TeamMergeFromDetails.team_name", "param_name": "teamName", "static_instance": null, "getter_method": "getTeamName", "containing_data_type_ref": "team_log.TeamMergeFromDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeFromType.description": {"fq_name": "team_log.TeamMergeFromType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeFromType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedDetails.request_accepted_details": {"fq_name": "team_log.TeamMergeRequestAcceptedDetails.request_accepted_details", "param_name": "requestAcceptedDetails", "static_instance": null, "getter_method": "getRequestAcceptedDetails", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedExtraDetails.primary_team": {"fq_name": "team_log.TeamMergeRequestAcceptedExtraDetails.primary_team", "param_name": "primaryTeamValue", "static_instance": null, "getter_method": "getPrimaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedExtraDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestAcceptedExtraDetails.secondary_team", "param_name": "secondaryTeamValue", "static_instance": null, "getter_method": "getSecondaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedExtraDetails.other": {"fq_name": "team_log.TeamMergeRequestAcceptedExtraDetails.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails.sent_by": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedShownToPrimaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails.primary_team": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails.primary_team", "param_name": "primaryTeam", "static_instance": null, "getter_method": "getPrimaryTeam", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails.sent_by": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedShownToSecondaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAcceptedType.description": {"fq_name": "team_log.TeamMergeRequestAcceptedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestAcceptedType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAutoCanceledDetails.details": {"fq_name": "team_log.TeamMergeRequestAutoCanceledDetails.details", "param_name": "details", "static_instance": null, "getter_method": "getDetails", "containing_data_type_ref": "team_log.TeamMergeRequestAutoCanceledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestAutoCanceledType.description": {"fq_name": "team_log.TeamMergeRequestAutoCanceledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestAutoCanceledType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledDetails.request_canceled_details": {"fq_name": "team_log.TeamMergeRequestCanceledDetails.request_canceled_details", "param_name": "requestCanceledDetails", "static_instance": null, "getter_method": "getRequestCanceledDetails", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledExtraDetails.primary_team": {"fq_name": "team_log.TeamMergeRequestCanceledExtraDetails.primary_team", "param_name": "primaryTeamValue", "static_instance": null, "getter_method": "getPrimaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledExtraDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestCanceledExtraDetails.secondary_team", "param_name": "secondaryTeamValue", "static_instance": null, "getter_method": "getSecondaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledExtraDetails.other": {"fq_name": "team_log.TeamMergeRequestCanceledExtraDetails.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamMergeRequestCanceledExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails.sent_by": {"fq_name": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledShownToPrimaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledShownToPrimaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails.sent_to": {"fq_name": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails.sent_by": {"fq_name": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledShownToSecondaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledShownToSecondaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestCanceledType.description": {"fq_name": "team_log.TeamMergeRequestCanceledType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestCanceledType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredDetails.request_expired_details": {"fq_name": "team_log.TeamMergeRequestExpiredDetails.request_expired_details", "param_name": "requestExpiredDetails", "static_instance": null, "getter_method": "getRequestExpiredDetails", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredExtraDetails.primary_team": {"fq_name": "team_log.TeamMergeRequestExpiredExtraDetails.primary_team", "param_name": "primaryTeamValue", "static_instance": null, "getter_method": "getPrimaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredExtraDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestExpiredExtraDetails.secondary_team", "param_name": "secondaryTeamValue", "static_instance": null, "getter_method": "getSecondaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredExtraDetails.other": {"fq_name": "team_log.TeamMergeRequestExpiredExtraDetails.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamMergeRequestExpiredExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails.sent_by": {"fq_name": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredShownToPrimaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredShownToPrimaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredShownToSecondaryTeamDetails.sent_to": {"fq_name": "team_log.TeamMergeRequestExpiredShownToSecondaryTeamDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredShownToSecondaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestExpiredShownToSecondaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredShownToSecondaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestExpiredType.description": {"fq_name": "team_log.TeamMergeRequestExpiredType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestExpiredType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails.sent_by": {"fq_name": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestRejectedShownToPrimaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestRejectedShownToPrimaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestRejectedShownToSecondaryTeamDetails.sent_by": {"fq_name": "team_log.TeamMergeRequestRejectedShownToSecondaryTeamDetails.sent_by", "param_name": "sentBy", "static_instance": null, "getter_method": "getSentBy", "containing_data_type_ref": "team_log.TeamMergeRequestRejectedShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestRejectedShownToSecondaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestRejectedShownToSecondaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestRejectedShownToSecondaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderDetails.request_reminder_details": {"fq_name": "team_log.TeamMergeRequestReminderDetails.request_reminder_details", "param_name": "requestReminderDetails", "static_instance": null, "getter_method": "getRequestReminderDetails", "containing_data_type_ref": "team_log.TeamMergeRequestReminderDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderExtraDetails.primary_team": {"fq_name": "team_log.TeamMergeRequestReminderExtraDetails.primary_team", "param_name": "primaryTeamValue", "static_instance": null, "getter_method": "getPrimaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestReminderExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderExtraDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestReminderExtraDetails.secondary_team", "param_name": "secondaryTeamValue", "static_instance": null, "getter_method": "getSecondaryTeamValue", "containing_data_type_ref": "team_log.TeamMergeRequestReminderExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderExtraDetails.other": {"fq_name": "team_log.TeamMergeRequestReminderExtraDetails.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamMergeRequestReminderExtraDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails.sent_to": {"fq_name": "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderShownToPrimaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestReminderShownToPrimaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestReminderShownToPrimaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderShownToSecondaryTeamDetails.sent_to": {"fq_name": "team_log.TeamMergeRequestReminderShownToSecondaryTeamDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.TeamMergeRequestReminderShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderShownToSecondaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestReminderShownToSecondaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestReminderShownToSecondaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestReminderType.description": {"fq_name": "team_log.TeamMergeRequestReminderType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestReminderType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestRevokedDetails.team": {"fq_name": "team_log.TeamMergeRequestRevokedDetails.team", "param_name": "team", "static_instance": null, "getter_method": "getTeam", "containing_data_type_ref": "team_log.TeamMergeRequestRevokedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestRevokedType.description": {"fq_name": "team_log.TeamMergeRequestRevokedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestRevokedType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails.secondary_team": {"fq_name": "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails.secondary_team", "param_name": "secondaryTeam", "static_instance": null, "getter_method": "getSecondaryTeam", "containing_data_type_ref": "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails.sent_to": {"fq_name": "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.TeamMergeRequestSentShownToPrimaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestSentShownToPrimaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestSentShownToPrimaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestSentShownToPrimaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestSentShownToSecondaryTeamDetails.sent_to": {"fq_name": "team_log.TeamMergeRequestSentShownToSecondaryTeamDetails.sent_to", "param_name": "sentTo", "static_instance": null, "getter_method": "getSentTo", "containing_data_type_ref": "team_log.TeamMergeRequestSentShownToSecondaryTeamDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeRequestSentShownToSecondaryTeamType.description": {"fq_name": "team_log.TeamMergeRequestSentShownToSecondaryTeamType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeRequestSentShownToSecondaryTeamType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeToDetails.team_name": {"fq_name": "team_log.TeamMergeToDetails.team_name", "param_name": "teamName", "static_instance": null, "getter_method": "getTeamName", "containing_data_type_ref": "team_log.TeamMergeToDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamMergeToType.description": {"fq_name": "team_log.TeamMergeToType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamMergeToType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamName.team_display_name": {"fq_name": "team_log.TeamName.team_display_name", "param_name": "teamDisplayName", "static_instance": null, "getter_method": "getTeamDisplayName", "containing_data_type_ref": "team_log.TeamName", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamName.team_legal_name": {"fq_name": "team_log.TeamName.team_legal_name", "param_name": "teamLegalName", "static_instance": null, "getter_method": "getTeamLegalName", "containing_data_type_ref": "team_log.TeamName", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileAddBackgroundType.description": {"fq_name": "team_log.TeamProfileAddBackgroundType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileAddBackgroundType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileAddLogoType.description": {"fq_name": "team_log.TeamProfileAddLogoType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileAddLogoType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeBackgroundType.description": {"fq_name": "team_log.TeamProfileChangeBackgroundType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileChangeBackgroundType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeDefaultLanguageDetails.new_value": {"fq_name": "team_log.TeamProfileChangeDefaultLanguageDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TeamProfileChangeDefaultLanguageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeDefaultLanguageDetails.previous_value": {"fq_name": "team_log.TeamProfileChangeDefaultLanguageDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TeamProfileChangeDefaultLanguageDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeDefaultLanguageType.description": {"fq_name": "team_log.TeamProfileChangeDefaultLanguageType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileChangeDefaultLanguageType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeLogoType.description": {"fq_name": "team_log.TeamProfileChangeLogoType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileChangeLogoType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeNameDetails.new_value": {"fq_name": "team_log.TeamProfileChangeNameDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TeamProfileChangeNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeNameDetails.previous_value": {"fq_name": "team_log.TeamProfileChangeNameDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TeamProfileChangeNameDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileChangeNameType.description": {"fq_name": "team_log.TeamProfileChangeNameType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileChangeNameType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileRemoveBackgroundType.description": {"fq_name": "team_log.TeamProfileRemoveBackgroundType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileRemoveBackgroundType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamProfileRemoveLogoType.description": {"fq_name": "team_log.TeamProfileRemoveLogoType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamProfileRemoveLogoType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncPolicy.disabled": {"fq_name": "team_log.TeamSelectiveSyncPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.TeamSelectiveSyncPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncPolicy.enabled": {"fq_name": "team_log.TeamSelectiveSyncPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.TeamSelectiveSyncPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncPolicy.other": {"fq_name": "team_log.TeamSelectiveSyncPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TeamSelectiveSyncPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncPolicyChangedDetails.new_value": {"fq_name": "team_log.TeamSelectiveSyncPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TeamSelectiveSyncPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncPolicyChangedDetails.previous_value": {"fq_name": "team_log.TeamSelectiveSyncPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TeamSelectiveSyncPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncPolicyChangedType.description": {"fq_name": "team_log.TeamSelectiveSyncPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamSelectiveSyncPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncSettingsChangedDetails.previous_value": {"fq_name": "team_log.TeamSelectiveSyncSettingsChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TeamSelectiveSyncSettingsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncSettingsChangedDetails.new_value": {"fq_name": "team_log.TeamSelectiveSyncSettingsChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TeamSelectiveSyncSettingsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSelectiveSyncSettingsChangedType.description": {"fq_name": "team_log.TeamSelectiveSyncSettingsChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamSelectiveSyncSettingsChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSharingWhitelistSubjectsChangedDetails.added_whitelist_subjects": {"fq_name": "team_log.TeamSharingWhitelistSubjectsChangedDetails.added_whitelist_subjects", "param_name": "addedWhitelistSubjects", "static_instance": null, "getter_method": "getAddedWhitelistSubjects", "containing_data_type_ref": "team_log.TeamSharingWhitelistSubjectsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSharingWhitelistSubjectsChangedDetails.removed_whitelist_subjects": {"fq_name": "team_log.TeamSharingWhitelistSubjectsChangedDetails.removed_whitelist_subjects", "param_name": "removedWhitelistSubjects", "static_instance": null, "getter_method": "getRemovedWhitelistSubjects", "containing_data_type_ref": "team_log.TeamSharingWhitelistSubjectsChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TeamSharingWhitelistSubjectsChangedType.description": {"fq_name": "team_log.TeamSharingWhitelistSubjectsChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TeamSharingWhitelistSubjectsChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaAddBackupPhoneType.description": {"fq_name": "team_log.TfaAddBackupPhoneType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaAddBackupPhoneType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaAddExceptionType.description": {"fq_name": "team_log.TfaAddExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaAddExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaAddSecurityKeyType.description": {"fq_name": "team_log.TfaAddSecurityKeyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaAddSecurityKeyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangeBackupPhoneType.description": {"fq_name": "team_log.TfaChangeBackupPhoneType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaChangeBackupPhoneType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangePolicyDetails.new_value": {"fq_name": "team_log.TfaChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TfaChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangePolicyDetails.previous_value": {"fq_name": "team_log.TfaChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TfaChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangePolicyType.description": {"fq_name": "team_log.TfaChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangeStatusDetails.new_value": {"fq_name": "team_log.TfaChangeStatusDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TfaChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangeStatusDetails.previous_value": {"fq_name": "team_log.TfaChangeStatusDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TfaChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangeStatusDetails.used_rescue_code": {"fq_name": "team_log.TfaChangeStatusDetails.used_rescue_code", "param_name": "usedRescueCode", "static_instance": null, "getter_method": "getUsedRescueCode", "containing_data_type_ref": "team_log.TfaChangeStatusDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaChangeStatusType.description": {"fq_name": "team_log.TfaChangeStatusType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaChangeStatusType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaConfiguration.authenticator": {"fq_name": "team_log.TfaConfiguration.authenticator", "param_name": "authenticatorValue", "static_instance": "AUTHENTICATOR", "getter_method": null, "containing_data_type_ref": "team_log.TfaConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaConfiguration.disabled": {"fq_name": "team_log.TfaConfiguration.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.TfaConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaConfiguration.enabled": {"fq_name": "team_log.TfaConfiguration.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.TfaConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaConfiguration.sms": {"fq_name": "team_log.TfaConfiguration.sms", "param_name": "smsValue", "static_instance": "SMS", "getter_method": null, "containing_data_type_ref": "team_log.TfaConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaConfiguration.other": {"fq_name": "team_log.TfaConfiguration.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TfaConfiguration", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaRemoveBackupPhoneType.description": {"fq_name": "team_log.TfaRemoveBackupPhoneType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaRemoveBackupPhoneType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaRemoveExceptionType.description": {"fq_name": "team_log.TfaRemoveExceptionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaRemoveExceptionType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaRemoveSecurityKeyType.description": {"fq_name": "team_log.TfaRemoveSecurityKeyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaRemoveSecurityKeyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TfaResetType.description": {"fq_name": "team_log.TfaResetType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TfaResetType", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.days": {"fq_name": "team_log.TimeUnit.days", "param_name": "daysValue", "static_instance": "DAYS", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.hours": {"fq_name": "team_log.TimeUnit.hours", "param_name": "hoursValue", "static_instance": "HOURS", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.milliseconds": {"fq_name": "team_log.TimeUnit.milliseconds", "param_name": "millisecondsValue", "static_instance": "MILLISECONDS", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.minutes": {"fq_name": "team_log.TimeUnit.minutes", "param_name": "minutesValue", "static_instance": "MINUTES", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.months": {"fq_name": "team_log.TimeUnit.months", "param_name": "monthsValue", "static_instance": "MONTHS", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.seconds": {"fq_name": "team_log.TimeUnit.seconds", "param_name": "secondsValue", "static_instance": "SECONDS", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.weeks": {"fq_name": "team_log.TimeUnit.weeks", "param_name": "weeksValue", "static_instance": "WEEKS", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.years": {"fq_name": "team_log.TimeUnit.years", "param_name": "yearsValue", "static_instance": "YEARS", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TimeUnit.other": {"fq_name": "team_log.TimeUnit.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TimeUnit", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberLogInfo.trusted_non_team_member_type": {"fq_name": "team_log.TrustedNonTeamMemberLogInfo.trusted_non_team_member_type", "param_name": "trustedNonTeamMemberType", "static_instance": null, "getter_method": "getTrustedNonTeamMemberType", "containing_data_type_ref": "team_log.TrustedNonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberLogInfo.account_id": {"fq_name": "team_log.TrustedNonTeamMemberLogInfo.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "team_log.TrustedNonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberLogInfo.display_name": {"fq_name": "team_log.TrustedNonTeamMemberLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.TrustedNonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberLogInfo.email": {"fq_name": "team_log.TrustedNonTeamMemberLogInfo.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "team_log.TrustedNonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberLogInfo.team": {"fq_name": "team_log.TrustedNonTeamMemberLogInfo.team", "param_name": "team", "static_instance": null, "getter_method": "getTeam", "containing_data_type_ref": "team_log.TrustedNonTeamMemberLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberType.enterprise_admin": {"fq_name": "team_log.TrustedNonTeamMemberType.enterprise_admin", "param_name": "enterpriseAdminValue", "static_instance": "ENTERPRISE_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.TrustedNonTeamMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberType.multi_instance_admin": {"fq_name": "team_log.TrustedNonTeamMemberType.multi_instance_admin", "param_name": "multiInstanceAdminValue", "static_instance": "MULTI_INSTANCE_ADMIN", "getter_method": null, "containing_data_type_ref": "team_log.TrustedNonTeamMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedNonTeamMemberType.other": {"fq_name": "team_log.TrustedNonTeamMemberType.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TrustedNonTeamMemberType", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestAction.accepted": {"fq_name": "team_log.TrustedTeamsRequestAction.accepted", "param_name": "acceptedValue", "static_instance": "ACCEPTED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestAction", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestAction.declined": {"fq_name": "team_log.TrustedTeamsRequestAction.declined", "param_name": "declinedValue", "static_instance": "DECLINED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestAction", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestAction.expired": {"fq_name": "team_log.TrustedTeamsRequestAction.expired", "param_name": "expiredValue", "static_instance": "EXPIRED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestAction", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestAction.invited": {"fq_name": "team_log.TrustedTeamsRequestAction.invited", "param_name": "invitedValue", "static_instance": "INVITED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestAction", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestAction.revoked": {"fq_name": "team_log.TrustedTeamsRequestAction.revoked", "param_name": "revokedValue", "static_instance": "REVOKED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestAction", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestAction.other": {"fq_name": "team_log.TrustedTeamsRequestAction.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestAction", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestState.invited": {"fq_name": "team_log.TrustedTeamsRequestState.invited", "param_name": "invitedValue", "static_instance": "INVITED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestState", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestState.linked": {"fq_name": "team_log.TrustedTeamsRequestState.linked", "param_name": "linkedValue", "static_instance": "LINKED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestState", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestState.unlinked": {"fq_name": "team_log.TrustedTeamsRequestState.unlinked", "param_name": "unlinkedValue", "static_instance": "UNLINKED", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestState", "route_refs": [], "_type": "FieldReference"}, "team_log.TrustedTeamsRequestState.other": {"fq_name": "team_log.TrustedTeamsRequestState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TrustedTeamsRequestState", "route_refs": [], "_type": "FieldReference"}, "team_log.TwoAccountChangePolicyDetails.new_value": {"fq_name": "team_log.TwoAccountChangePolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.TwoAccountChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TwoAccountChangePolicyDetails.previous_value": {"fq_name": "team_log.TwoAccountChangePolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.TwoAccountChangePolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.TwoAccountChangePolicyType.description": {"fq_name": "team_log.TwoAccountChangePolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.TwoAccountChangePolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.TwoAccountPolicy.disabled": {"fq_name": "team_log.TwoAccountPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.TwoAccountPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TwoAccountPolicy.enabled": {"fq_name": "team_log.TwoAccountPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.TwoAccountPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.TwoAccountPolicy.other": {"fq_name": "team_log.TwoAccountPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.TwoAccountPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.UndoNamingConventionType.description": {"fq_name": "team_log.UndoNamingConventionType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.UndoNamingConventionType", "route_refs": [], "_type": "FieldReference"}, "team_log.UndoOrganizeFolderWithTidyType.description": {"fq_name": "team_log.UndoOrganizeFolderWithTidyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.UndoOrganizeFolderWithTidyType", "route_refs": [], "_type": "FieldReference"}, "team_log.UserLinkedAppLogInfo.app_id": {"fq_name": "team_log.UserLinkedAppLogInfo.app_id", "param_name": "appId", "static_instance": null, "getter_method": "getAppId", "containing_data_type_ref": "team_log.UserLinkedAppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserLinkedAppLogInfo.display_name": {"fq_name": "team_log.UserLinkedAppLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.UserLinkedAppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserLogInfo.account_id": {"fq_name": "team_log.UserLogInfo.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "team_log.UserLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserLogInfo.display_name": {"fq_name": "team_log.UserLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.UserLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserLogInfo.email": {"fq_name": "team_log.UserLogInfo.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "team_log.UserLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserNameLogInfo.given_name": {"fq_name": "team_log.UserNameLogInfo.given_name", "param_name": "givenName", "static_instance": null, "getter_method": "getGivenName", "containing_data_type_ref": "team_log.UserNameLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserNameLogInfo.surname": {"fq_name": "team_log.UserNameLogInfo.surname", "param_name": "surname", "static_instance": null, "getter_method": "getSurname", "containing_data_type_ref": "team_log.UserNameLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserNameLogInfo.locale": {"fq_name": "team_log.UserNameLogInfo.locale", "param_name": "locale", "static_instance": null, "getter_method": "getLocale", "containing_data_type_ref": "team_log.UserNameLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserOrTeamLinkedAppLogInfo.app_id": {"fq_name": "team_log.UserOrTeamLinkedAppLogInfo.app_id", "param_name": "appId", "static_instance": null, "getter_method": "getAppId", "containing_data_type_ref": "team_log.UserOrTeamLinkedAppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserOrTeamLinkedAppLogInfo.display_name": {"fq_name": "team_log.UserOrTeamLinkedAppLogInfo.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "team_log.UserOrTeamLinkedAppLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.UserTagsAddedDetails.values": {"fq_name": "team_log.UserTagsAddedDetails.values", "param_name": "values", "static_instance": null, "getter_method": "getValues", "containing_data_type_ref": "team_log.UserTagsAddedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.UserTagsAddedType.description": {"fq_name": "team_log.UserTagsAddedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.UserTagsAddedType", "route_refs": [], "_type": "FieldReference"}, "team_log.UserTagsRemovedDetails.values": {"fq_name": "team_log.UserTagsRemovedDetails.values", "param_name": "values", "static_instance": null, "getter_method": "getValues", "containing_data_type_ref": "team_log.UserTagsRemovedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.UserTagsRemovedType.description": {"fq_name": "team_log.UserTagsRemovedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.UserTagsRemovedType", "route_refs": [], "_type": "FieldReference"}, "team_log.ViewerInfoPolicyChangedDetails.previous_value": {"fq_name": "team_log.ViewerInfoPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.ViewerInfoPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ViewerInfoPolicyChangedDetails.new_value": {"fq_name": "team_log.ViewerInfoPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.ViewerInfoPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.ViewerInfoPolicyChangedType.description": {"fq_name": "team_log.ViewerInfoPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.ViewerInfoPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.WatermarkingPolicy.disabled": {"fq_name": "team_log.WatermarkingPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_log.WatermarkingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WatermarkingPolicy.enabled": {"fq_name": "team_log.WatermarkingPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_log.WatermarkingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WatermarkingPolicy.other": {"fq_name": "team_log.WatermarkingPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.WatermarkingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WatermarkingPolicyChangedDetails.new_value": {"fq_name": "team_log.WatermarkingPolicyChangedDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.WatermarkingPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WatermarkingPolicyChangedDetails.previous_value": {"fq_name": "team_log.WatermarkingPolicyChangedDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.WatermarkingPolicyChangedDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WatermarkingPolicyChangedType.description": {"fq_name": "team_log.WatermarkingPolicyChangedType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.WatermarkingPolicyChangedType", "route_refs": [], "_type": "FieldReference"}, "team_log.WebDeviceSessionLogInfo.user_agent": {"fq_name": "team_log.WebDeviceSessionLogInfo.user_agent", "param_name": "userAgent", "static_instance": null, "getter_method": "getUserAgent", "containing_data_type_ref": "team_log.WebDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebDeviceSessionLogInfo.os": {"fq_name": "team_log.WebDeviceSessionLogInfo.os", "param_name": "os", "static_instance": null, "getter_method": "getOs", "containing_data_type_ref": "team_log.WebDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebDeviceSessionLogInfo.browser": {"fq_name": "team_log.WebDeviceSessionLogInfo.browser", "param_name": "browser", "static_instance": null, "getter_method": "getBrowser", "containing_data_type_ref": "team_log.WebDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebDeviceSessionLogInfo.ip_address": {"fq_name": "team_log.WebDeviceSessionLogInfo.ip_address", "param_name": "ipAddress", "static_instance": null, "getter_method": "getIpAddress", "containing_data_type_ref": "team_log.WebDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebDeviceSessionLogInfo.created": {"fq_name": "team_log.WebDeviceSessionLogInfo.created", "param_name": "created", "static_instance": null, "getter_method": "getCreated", "containing_data_type_ref": "team_log.WebDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebDeviceSessionLogInfo.updated": {"fq_name": "team_log.WebDeviceSessionLogInfo.updated", "param_name": "updated", "static_instance": null, "getter_method": "getUpdated", "containing_data_type_ref": "team_log.WebDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebDeviceSessionLogInfo.session_info": {"fq_name": "team_log.WebDeviceSessionLogInfo.session_info", "param_name": "sessionInfo", "static_instance": null, "getter_method": "getSessionInfo", "containing_data_type_ref": "team_log.WebDeviceSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionLogInfo.session_id": {"fq_name": "team_log.WebSessionLogInfo.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "team_log.WebSessionLogInfo", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeActiveSessionLimitDetails.previous_value": {"fq_name": "team_log.WebSessionsChangeActiveSessionLimitDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.WebSessionsChangeActiveSessionLimitDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeActiveSessionLimitDetails.new_value": {"fq_name": "team_log.WebSessionsChangeActiveSessionLimitDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.WebSessionsChangeActiveSessionLimitDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeActiveSessionLimitType.description": {"fq_name": "team_log.WebSessionsChangeActiveSessionLimitType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.WebSessionsChangeActiveSessionLimitType", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeFixedLengthPolicyDetails.new_value": {"fq_name": "team_log.WebSessionsChangeFixedLengthPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.WebSessionsChangeFixedLengthPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeFixedLengthPolicyDetails.previous_value": {"fq_name": "team_log.WebSessionsChangeFixedLengthPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.WebSessionsChangeFixedLengthPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeFixedLengthPolicyType.description": {"fq_name": "team_log.WebSessionsChangeFixedLengthPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.WebSessionsChangeFixedLengthPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeIdleLengthPolicyDetails.new_value": {"fq_name": "team_log.WebSessionsChangeIdleLengthPolicyDetails.new_value", "param_name": "newValue", "static_instance": null, "getter_method": "getNewValue", "containing_data_type_ref": "team_log.WebSessionsChangeIdleLengthPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeIdleLengthPolicyDetails.previous_value": {"fq_name": "team_log.WebSessionsChangeIdleLengthPolicyDetails.previous_value", "param_name": "previousValue", "static_instance": null, "getter_method": "getPreviousValue", "containing_data_type_ref": "team_log.WebSessionsChangeIdleLengthPolicyDetails", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsChangeIdleLengthPolicyType.description": {"fq_name": "team_log.WebSessionsChangeIdleLengthPolicyType.description", "param_name": "description", "static_instance": null, "getter_method": "getDescription", "containing_data_type_ref": "team_log.WebSessionsChangeIdleLengthPolicyType", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsFixedLengthPolicy.defined": {"fq_name": "team_log.WebSessionsFixedLengthPolicy.defined", "param_name": "definedValue", "static_instance": null, "getter_method": "getDefinedValue", "containing_data_type_ref": "team_log.WebSessionsFixedLengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsFixedLengthPolicy.undefined": {"fq_name": "team_log.WebSessionsFixedLengthPolicy.undefined", "param_name": "undefinedValue", "static_instance": "UNDEFINED", "getter_method": null, "containing_data_type_ref": "team_log.WebSessionsFixedLengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsFixedLengthPolicy.other": {"fq_name": "team_log.WebSessionsFixedLengthPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.WebSessionsFixedLengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsIdleLengthPolicy.defined": {"fq_name": "team_log.WebSessionsIdleLengthPolicy.defined", "param_name": "definedValue", "static_instance": null, "getter_method": "getDefinedValue", "containing_data_type_ref": "team_log.WebSessionsIdleLengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsIdleLengthPolicy.undefined": {"fq_name": "team_log.WebSessionsIdleLengthPolicy.undefined", "param_name": "undefinedValue", "static_instance": "UNDEFINED", "getter_method": null, "containing_data_type_ref": "team_log.WebSessionsIdleLengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_log.WebSessionsIdleLengthPolicy.other": {"fq_name": "team_log.WebSessionsIdleLengthPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_log.WebSessionsIdleLengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.CameraUploadsPolicyState.disabled": {"fq_name": "team_policies.CameraUploadsPolicyState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.CameraUploadsPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.CameraUploadsPolicyState.enabled": {"fq_name": "team_policies.CameraUploadsPolicyState.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.CameraUploadsPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.CameraUploadsPolicyState.other": {"fq_name": "team_policies.CameraUploadsPolicyState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.CameraUploadsPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ComputerBackupPolicyState.disabled": {"fq_name": "team_policies.ComputerBackupPolicyState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ComputerBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ComputerBackupPolicyState.enabled": {"fq_name": "team_policies.ComputerBackupPolicyState.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ComputerBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ComputerBackupPolicyState.default": {"fq_name": "team_policies.ComputerBackupPolicyState.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_policies.ComputerBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ComputerBackupPolicyState.other": {"fq_name": "team_policies.ComputerBackupPolicyState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.ComputerBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.EmmState.disabled": {"fq_name": "team_policies.EmmState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.EmmState", "route_refs": [], "_type": "FieldReference"}, "team_policies.EmmState.optional": {"fq_name": "team_policies.EmmState.optional", "param_name": "optionalValue", "static_instance": "OPTIONAL", "getter_method": null, "containing_data_type_ref": "team_policies.EmmState", "route_refs": [], "_type": "FieldReference"}, "team_policies.EmmState.required": {"fq_name": "team_policies.EmmState.required", "param_name": "requiredValue", "static_instance": "REQUIRED", "getter_method": null, "containing_data_type_ref": "team_policies.EmmState", "route_refs": [], "_type": "FieldReference"}, "team_policies.EmmState.other": {"fq_name": "team_policies.EmmState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.EmmState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ExternalDriveBackupPolicyState.disabled": {"fq_name": "team_policies.ExternalDriveBackupPolicyState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ExternalDriveBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ExternalDriveBackupPolicyState.enabled": {"fq_name": "team_policies.ExternalDriveBackupPolicyState.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ExternalDriveBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ExternalDriveBackupPolicyState.default": {"fq_name": "team_policies.ExternalDriveBackupPolicyState.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_policies.ExternalDriveBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.ExternalDriveBackupPolicyState.other": {"fq_name": "team_policies.ExternalDriveBackupPolicyState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.ExternalDriveBackupPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.FileLockingPolicyState.disabled": {"fq_name": "team_policies.FileLockingPolicyState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.FileLockingPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.FileLockingPolicyState.enabled": {"fq_name": "team_policies.FileLockingPolicyState.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.FileLockingPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.FileLockingPolicyState.other": {"fq_name": "team_policies.FileLockingPolicyState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.FileLockingPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.FileProviderMigrationPolicyState.disabled": {"fq_name": "team_policies.FileProviderMigrationPolicyState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.FileProviderMigrationPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.FileProviderMigrationPolicyState.enabled": {"fq_name": "team_policies.FileProviderMigrationPolicyState.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.FileProviderMigrationPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.FileProviderMigrationPolicyState.default": {"fq_name": "team_policies.FileProviderMigrationPolicyState.default", "param_name": "defaultValue", "static_instance": "DEFAULT", "getter_method": null, "containing_data_type_ref": "team_policies.FileProviderMigrationPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.FileProviderMigrationPolicyState.other": {"fq_name": "team_policies.FileProviderMigrationPolicyState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.FileProviderMigrationPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.GroupCreation.admins_and_members": {"fq_name": "team_policies.GroupCreation.admins_and_members", "param_name": "adminsAndMembersValue", "static_instance": "ADMINS_AND_MEMBERS", "getter_method": null, "containing_data_type_ref": "team_policies.GroupCreation", "route_refs": [], "_type": "FieldReference"}, "team_policies.GroupCreation.admins_only": {"fq_name": "team_policies.GroupCreation.admins_only", "param_name": "adminsOnlyValue", "static_instance": "ADMINS_ONLY", "getter_method": null, "containing_data_type_ref": "team_policies.GroupCreation", "route_refs": [], "_type": "FieldReference"}, "team_policies.OfficeAddInPolicy.disabled": {"fq_name": "team_policies.OfficeAddInPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.OfficeAddInPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.OfficeAddInPolicy.enabled": {"fq_name": "team_policies.OfficeAddInPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.OfficeAddInPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.OfficeAddInPolicy.other": {"fq_name": "team_policies.OfficeAddInPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.OfficeAddInPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDefaultFolderPolicy.everyone_in_team": {"fq_name": "team_policies.PaperDefaultFolderPolicy.everyone_in_team", "param_name": "everyoneInTeamValue", "static_instance": "EVERYONE_IN_TEAM", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDefaultFolderPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDefaultFolderPolicy.invite_only": {"fq_name": "team_policies.PaperDefaultFolderPolicy.invite_only", "param_name": "inviteOnlyValue", "static_instance": "INVITE_ONLY", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDefaultFolderPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDefaultFolderPolicy.other": {"fq_name": "team_policies.PaperDefaultFolderPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDefaultFolderPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDeploymentPolicy.full": {"fq_name": "team_policies.PaperDeploymentPolicy.full", "param_name": "fullValue", "static_instance": "FULL", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDeploymentPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDeploymentPolicy.partial": {"fq_name": "team_policies.PaperDeploymentPolicy.partial", "param_name": "partialValue", "static_instance": "PARTIAL", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDeploymentPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDeploymentPolicy.other": {"fq_name": "team_policies.PaperDeploymentPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDeploymentPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDesktopPolicy.disabled": {"fq_name": "team_policies.PaperDesktopPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDesktopPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDesktopPolicy.enabled": {"fq_name": "team_policies.PaperDesktopPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDesktopPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperDesktopPolicy.other": {"fq_name": "team_policies.PaperDesktopPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.PaperDesktopPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperEnabledPolicy.disabled": {"fq_name": "team_policies.PaperEnabledPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.PaperEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperEnabledPolicy.enabled": {"fq_name": "team_policies.PaperEnabledPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.PaperEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperEnabledPolicy.unspecified": {"fq_name": "team_policies.PaperEnabledPolicy.unspecified", "param_name": "unspecifiedValue", "static_instance": "UNSPECIFIED", "getter_method": null, "containing_data_type_ref": "team_policies.PaperEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PaperEnabledPolicy.other": {"fq_name": "team_policies.PaperEnabledPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.PaperEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PasswordControlMode.disabled": {"fq_name": "team_policies.PasswordControlMode.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.PasswordControlMode", "route_refs": [], "_type": "FieldReference"}, "team_policies.PasswordControlMode.enabled": {"fq_name": "team_policies.PasswordControlMode.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.PasswordControlMode", "route_refs": [], "_type": "FieldReference"}, "team_policies.PasswordControlMode.other": {"fq_name": "team_policies.PasswordControlMode.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.PasswordControlMode", "route_refs": [], "_type": "FieldReference"}, "team_policies.PasswordStrengthPolicy.minimal_requirements": {"fq_name": "team_policies.PasswordStrengthPolicy.minimal_requirements", "param_name": "minimalRequirementsValue", "static_instance": "MINIMAL_REQUIREMENTS", "getter_method": null, "containing_data_type_ref": "team_policies.PasswordStrengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PasswordStrengthPolicy.moderate_password": {"fq_name": "team_policies.PasswordStrengthPolicy.moderate_password", "param_name": "moderatePasswordValue", "static_instance": "MODERATE_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_policies.PasswordStrengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PasswordStrengthPolicy.strong_password": {"fq_name": "team_policies.PasswordStrengthPolicy.strong_password", "param_name": "strongPasswordValue", "static_instance": "STRONG_PASSWORD", "getter_method": null, "containing_data_type_ref": "team_policies.PasswordStrengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.PasswordStrengthPolicy.other": {"fq_name": "team_policies.PasswordStrengthPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.PasswordStrengthPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.RolloutMethod.unlink_all": {"fq_name": "team_policies.RolloutMethod.unlink_all", "param_name": "unlinkAllValue", "static_instance": "UNLINK_ALL", "getter_method": null, "containing_data_type_ref": "team_policies.RolloutMethod", "route_refs": [], "_type": "FieldReference"}, "team_policies.RolloutMethod.unlink_most_inactive": {"fq_name": "team_policies.RolloutMethod.unlink_most_inactive", "param_name": "unlinkMostInactiveValue", "static_instance": "UNLINK_MOST_INACTIVE", "getter_method": null, "containing_data_type_ref": "team_policies.RolloutMethod", "route_refs": [], "_type": "FieldReference"}, "team_policies.RolloutMethod.add_member_to_exceptions": {"fq_name": "team_policies.RolloutMethod.add_member_to_exceptions", "param_name": "addMemberToExceptionsValue", "static_instance": "ADD_MEMBER_TO_EXCEPTIONS", "getter_method": null, "containing_data_type_ref": "team_policies.RolloutMethod", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderBlanketLinkRestrictionPolicy.members": {"fq_name": "team_policies.SharedFolderBlanketLinkRestrictionPolicy.members", "param_name": "membersValue", "static_instance": "MEMBERS", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderBlanketLinkRestrictionPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderBlanketLinkRestrictionPolicy.anyone": {"fq_name": "team_policies.SharedFolderBlanketLinkRestrictionPolicy.anyone", "param_name": "anyoneValue", "static_instance": "ANYONE", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderBlanketLinkRestrictionPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderBlanketLinkRestrictionPolicy.other": {"fq_name": "team_policies.SharedFolderBlanketLinkRestrictionPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderBlanketLinkRestrictionPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderJoinPolicy.from_team_only": {"fq_name": "team_policies.SharedFolderJoinPolicy.from_team_only", "param_name": "fromTeamOnlyValue", "static_instance": "FROM_TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderJoinPolicy.from_anyone": {"fq_name": "team_policies.SharedFolderJoinPolicy.from_anyone", "param_name": "fromAnyoneValue", "static_instance": "FROM_ANYONE", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderJoinPolicy.other": {"fq_name": "team_policies.SharedFolderJoinPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderJoinPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderMemberPolicy.team": {"fq_name": "team_policies.SharedFolderMemberPolicy.team", "param_name": "teamValue", "static_instance": "TEAM", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderMemberPolicy.anyone": {"fq_name": "team_policies.SharedFolderMemberPolicy.anyone", "param_name": "anyoneValue", "static_instance": "ANYONE", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedFolderMemberPolicy.other": {"fq_name": "team_policies.SharedFolderMemberPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SharedFolderMemberPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedLinkCreatePolicy.default_public": {"fq_name": "team_policies.SharedLinkCreatePolicy.default_public", "param_name": "defaultPublicValue", "static_instance": "DEFAULT_PUBLIC", "getter_method": null, "containing_data_type_ref": "team_policies.SharedLinkCreatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedLinkCreatePolicy.default_team_only": {"fq_name": "team_policies.SharedLinkCreatePolicy.default_team_only", "param_name": "defaultTeamOnlyValue", "static_instance": "DEFAULT_TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "team_policies.SharedLinkCreatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedLinkCreatePolicy.team_only": {"fq_name": "team_policies.SharedLinkCreatePolicy.team_only", "param_name": "teamOnlyValue", "static_instance": "TEAM_ONLY", "getter_method": null, "containing_data_type_ref": "team_policies.SharedLinkCreatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedLinkCreatePolicy.default_no_one": {"fq_name": "team_policies.SharedLinkCreatePolicy.default_no_one", "param_name": "defaultNoOneValue", "static_instance": "DEFAULT_NO_ONE", "getter_method": null, "containing_data_type_ref": "team_policies.SharedLinkCreatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SharedLinkCreatePolicy.other": {"fq_name": "team_policies.SharedLinkCreatePolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SharedLinkCreatePolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseDownloadPolicy.disabled": {"fq_name": "team_policies.ShowcaseDownloadPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseDownloadPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseDownloadPolicy.enabled": {"fq_name": "team_policies.ShowcaseDownloadPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseDownloadPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseDownloadPolicy.other": {"fq_name": "team_policies.ShowcaseDownloadPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseDownloadPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseEnabledPolicy.disabled": {"fq_name": "team_policies.ShowcaseEnabledPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseEnabledPolicy.enabled": {"fq_name": "team_policies.ShowcaseEnabledPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseEnabledPolicy.other": {"fq_name": "team_policies.ShowcaseEnabledPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseEnabledPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseExternalSharingPolicy.disabled": {"fq_name": "team_policies.ShowcaseExternalSharingPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseExternalSharingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseExternalSharingPolicy.enabled": {"fq_name": "team_policies.ShowcaseExternalSharingPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseExternalSharingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.ShowcaseExternalSharingPolicy.other": {"fq_name": "team_policies.ShowcaseExternalSharingPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.ShowcaseExternalSharingPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SmartSyncPolicy.local": {"fq_name": "team_policies.SmartSyncPolicy.local", "param_name": "localValue", "static_instance": "LOCAL", "getter_method": null, "containing_data_type_ref": "team_policies.SmartSyncPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SmartSyncPolicy.on_demand": {"fq_name": "team_policies.SmartSyncPolicy.on_demand", "param_name": "onDemandValue", "static_instance": "ON_DEMAND", "getter_method": null, "containing_data_type_ref": "team_policies.SmartSyncPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SmartSyncPolicy.other": {"fq_name": "team_policies.SmartSyncPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SmartSyncPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SmarterSmartSyncPolicyState.disabled": {"fq_name": "team_policies.SmarterSmartSyncPolicyState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.SmarterSmartSyncPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.SmarterSmartSyncPolicyState.enabled": {"fq_name": "team_policies.SmarterSmartSyncPolicyState.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.SmarterSmartSyncPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.SmarterSmartSyncPolicyState.other": {"fq_name": "team_policies.SmarterSmartSyncPolicyState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SmarterSmartSyncPolicyState", "route_refs": [], "_type": "FieldReference"}, "team_policies.SsoPolicy.disabled": {"fq_name": "team_policies.SsoPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.SsoPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SsoPolicy.optional": {"fq_name": "team_policies.SsoPolicy.optional", "param_name": "optionalValue", "static_instance": "OPTIONAL", "getter_method": null, "containing_data_type_ref": "team_policies.SsoPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SsoPolicy.required": {"fq_name": "team_policies.SsoPolicy.required", "param_name": "requiredValue", "static_instance": "REQUIRED", "getter_method": null, "containing_data_type_ref": "team_policies.SsoPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SsoPolicy.other": {"fq_name": "team_policies.SsoPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SsoPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SuggestMembersPolicy.disabled": {"fq_name": "team_policies.SuggestMembersPolicy.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.SuggestMembersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SuggestMembersPolicy.enabled": {"fq_name": "team_policies.SuggestMembersPolicy.enabled", "param_name": "enabledValue", "static_instance": "ENABLED", "getter_method": null, "containing_data_type_ref": "team_policies.SuggestMembersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.SuggestMembersPolicy.other": {"fq_name": "team_policies.SuggestMembersPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.SuggestMembersPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamMemberPolicies.sharing": {"fq_name": "team_policies.TeamMemberPolicies.sharing", "param_name": "sharing", "static_instance": null, "getter_method": "getSharing", "containing_data_type_ref": "team_policies.TeamMemberPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamMemberPolicies.emm_state": {"fq_name": "team_policies.TeamMemberPolicies.emm_state", "param_name": "emmState", "static_instance": null, "getter_method": "getEmmState", "containing_data_type_ref": "team_policies.TeamMemberPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamMemberPolicies.office_addin": {"fq_name": "team_policies.TeamMemberPolicies.office_addin", "param_name": "officeAddin", "static_instance": null, "getter_method": "getOfficeAddin", "containing_data_type_ref": "team_policies.TeamMemberPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamMemberPolicies.suggest_members_policy": {"fq_name": "team_policies.TeamMemberPolicies.suggest_members_policy", "param_name": "suggestMembersPolicy", "static_instance": null, "getter_method": "getSuggestMembersPolicy", "containing_data_type_ref": "team_policies.TeamMemberPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamSharingPolicies.shared_folder_member_policy": {"fq_name": "team_policies.TeamSharingPolicies.shared_folder_member_policy", "param_name": "sharedFolderMemberPolicy", "static_instance": null, "getter_method": "getSharedFolderMemberPolicy", "containing_data_type_ref": "team_policies.TeamSharingPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamSharingPolicies.shared_folder_join_policy": {"fq_name": "team_policies.TeamSharingPolicies.shared_folder_join_policy", "param_name": "sharedFolderJoinPolicy", "static_instance": null, "getter_method": "getSharedFolderJoinPolicy", "containing_data_type_ref": "team_policies.TeamSharingPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamSharingPolicies.shared_link_create_policy": {"fq_name": "team_policies.TeamSharingPolicies.shared_link_create_policy", "param_name": "sharedLinkCreatePolicy", "static_instance": null, "getter_method": "getSharedLinkCreatePolicy", "containing_data_type_ref": "team_policies.TeamSharingPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamSharingPolicies.group_creation_policy": {"fq_name": "team_policies.TeamSharingPolicies.group_creation_policy", "param_name": "groupCreationPolicy", "static_instance": null, "getter_method": "getGroupCreationPolicy", "containing_data_type_ref": "team_policies.TeamSharingPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TeamSharingPolicies.shared_folder_link_restriction_policy": {"fq_name": "team_policies.TeamSharingPolicies.shared_folder_link_restriction_policy", "param_name": "sharedFolderLinkRestrictionPolicy", "static_instance": null, "getter_method": "getSharedFolderLinkRestrictionPolicy", "containing_data_type_ref": "team_policies.TeamSharingPolicies", "route_refs": [], "_type": "FieldReference"}, "team_policies.TwoStepVerificationPolicy.require_tfa_enable": {"fq_name": "team_policies.TwoStepVerificationPolicy.require_tfa_enable", "param_name": "requireTfaEnableValue", "static_instance": "REQUIRE_TFA_ENABLE", "getter_method": null, "containing_data_type_ref": "team_policies.TwoStepVerificationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.TwoStepVerificationPolicy.require_tfa_disable": {"fq_name": "team_policies.TwoStepVerificationPolicy.require_tfa_disable", "param_name": "requireTfaDisableValue", "static_instance": "REQUIRE_TFA_DISABLE", "getter_method": null, "containing_data_type_ref": "team_policies.TwoStepVerificationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.TwoStepVerificationPolicy.other": {"fq_name": "team_policies.TwoStepVerificationPolicy.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.TwoStepVerificationPolicy", "route_refs": [], "_type": "FieldReference"}, "team_policies.TwoStepVerificationState.required": {"fq_name": "team_policies.TwoStepVerificationState.required", "param_name": "requiredValue", "static_instance": "REQUIRED", "getter_method": null, "containing_data_type_ref": "team_policies.TwoStepVerificationState", "route_refs": [], "_type": "FieldReference"}, "team_policies.TwoStepVerificationState.optional": {"fq_name": "team_policies.TwoStepVerificationState.optional", "param_name": "optionalValue", "static_instance": "OPTIONAL", "getter_method": null, "containing_data_type_ref": "team_policies.TwoStepVerificationState", "route_refs": [], "_type": "FieldReference"}, "team_policies.TwoStepVerificationState.disabled": {"fq_name": "team_policies.TwoStepVerificationState.disabled", "param_name": "disabledValue", "static_instance": "DISABLED", "getter_method": null, "containing_data_type_ref": "team_policies.TwoStepVerificationState", "route_refs": [], "_type": "FieldReference"}, "team_policies.TwoStepVerificationState.other": {"fq_name": "team_policies.TwoStepVerificationState.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "team_policies.TwoStepVerificationState", "route_refs": [], "_type": "FieldReference"}, "users.Account.account_id": {"fq_name": "users.Account.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "users.Account", "route_refs": [], "_type": "FieldReference"}, "users.Account.name": {"fq_name": "users.Account.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "users.Account", "route_refs": [], "_type": "FieldReference"}, "users.Account.email": {"fq_name": "users.Account.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "users.Account", "route_refs": [], "_type": "FieldReference"}, "users.Account.email_verified": {"fq_name": "users.Account.email_verified", "param_name": "emailVerified", "static_instance": null, "getter_method": "getEmailVerified", "containing_data_type_ref": "users.Account", "route_refs": [], "_type": "FieldReference"}, "users.Account.disabled": {"fq_name": "users.Account.disabled", "param_name": "disabled", "static_instance": null, "getter_method": "getDisabled", "containing_data_type_ref": "users.Account", "route_refs": [], "_type": "FieldReference"}, "users.Account.profile_photo_url": {"fq_name": "users.Account.profile_photo_url", "param_name": "profilePhotoUrl", "static_instance": null, "getter_method": "getProfilePhotoUrl", "containing_data_type_ref": "users.Account", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.account_id": {"fq_name": "users.BasicAccount.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.name": {"fq_name": "users.BasicAccount.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.email": {"fq_name": "users.BasicAccount.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.email_verified": {"fq_name": "users.BasicAccount.email_verified", "param_name": "emailVerified", "static_instance": null, "getter_method": "getEmailVerified", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.disabled": {"fq_name": "users.BasicAccount.disabled", "param_name": "disabled", "static_instance": null, "getter_method": "getDisabled", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.is_teammate": {"fq_name": "users.BasicAccount.is_teammate", "param_name": "isTeammate", "static_instance": null, "getter_method": "getIsTeammate", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.profile_photo_url": {"fq_name": "users.BasicAccount.profile_photo_url", "param_name": "profilePhotoUrl", "static_instance": null, "getter_method": "getProfilePhotoUrl", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.BasicAccount.team_member_id": {"fq_name": "users.BasicAccount.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "users.BasicAccount", "route_refs": [], "_type": "FieldReference"}, "users.FileLockingValue.enabled": {"fq_name": "users.FileLockingValue.enabled", "param_name": "enabledValue", "static_instance": null, "getter_method": "getEnabledValue", "containing_data_type_ref": "users.FileLockingValue", "route_refs": [], "_type": "FieldReference"}, "users.FileLockingValue.other": {"fq_name": "users.FileLockingValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.FileLockingValue", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.account_id": {"fq_name": "users.FullAccount.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.name": {"fq_name": "users.FullAccount.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.email": {"fq_name": "users.FullAccount.email", "param_name": "email", "static_instance": null, "getter_method": "getEmail", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.email_verified": {"fq_name": "users.FullAccount.email_verified", "param_name": "emailVerified", "static_instance": null, "getter_method": "getEmailVerified", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.disabled": {"fq_name": "users.FullAccount.disabled", "param_name": "disabled", "static_instance": null, "getter_method": "getDisabled", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.locale": {"fq_name": "users.FullAccount.locale", "param_name": "locale", "static_instance": null, "getter_method": "getLocale", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.referral_link": {"fq_name": "users.FullAccount.referral_link", "param_name": "referralLink", "static_instance": null, "getter_method": "getReferralLink", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.is_paired": {"fq_name": "users.FullAccount.is_paired", "param_name": "isPaired", "static_instance": null, "getter_method": "getIsPaired", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.account_type": {"fq_name": "users.FullAccount.account_type", "param_name": "accountType", "static_instance": null, "getter_method": "getAccountType", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.root_info": {"fq_name": "users.FullAccount.root_info", "param_name": "rootInfo", "static_instance": null, "getter_method": "getRootInfo", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.profile_photo_url": {"fq_name": "users.FullAccount.profile_photo_url", "param_name": "profilePhotoUrl", "static_instance": null, "getter_method": "getProfilePhotoUrl", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.country": {"fq_name": "users.FullAccount.country", "param_name": "country", "static_instance": null, "getter_method": "getCountry", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.team": {"fq_name": "users.FullAccount.team", "param_name": "team", "static_instance": null, "getter_method": "getTeam", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullAccount.team_member_id": {"fq_name": "users.FullAccount.team_member_id", "param_name": "teamMemberId", "static_instance": null, "getter_method": "getTeamMemberId", "containing_data_type_ref": "users.FullAccount", "route_refs": [], "_type": "FieldReference"}, "users.FullTeam.id": {"fq_name": "users.FullTeam.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "users.FullTeam", "route_refs": [], "_type": "FieldReference"}, "users.FullTeam.name": {"fq_name": "users.FullTeam.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "users.FullTeam", "route_refs": [], "_type": "FieldReference"}, "users.FullTeam.sharing_policies": {"fq_name": "users.FullTeam.sharing_policies", "param_name": "sharingPolicies", "static_instance": null, "getter_method": "getSharingPolicies", "containing_data_type_ref": "users.FullTeam", "route_refs": [], "_type": "FieldReference"}, "users.FullTeam.office_addin_policy": {"fq_name": "users.FullTeam.office_addin_policy", "param_name": "officeAddinPolicy", "static_instance": null, "getter_method": "getOfficeAddinPolicy", "containing_data_type_ref": "users.FullTeam", "route_refs": [], "_type": "FieldReference"}, "users.GetAccountArg.account_id": {"fq_name": "users.GetAccountArg.account_id", "param_name": "accountId", "static_instance": null, "getter_method": "getAccountId", "containing_data_type_ref": "users.GetAccountArg", "route_refs": [], "_type": "FieldReference"}, "users.GetAccountBatchArg.account_ids": {"fq_name": "users.GetAccountBatchArg.account_ids", "param_name": "accountIds", "static_instance": null, "getter_method": "getAccountIds", "containing_data_type_ref": "users.GetAccountBatchArg", "route_refs": [], "_type": "FieldReference"}, "users.GetAccountBatchError.no_account": {"fq_name": "users.GetAccountBatchError.no_account", "param_name": "noAccountValue", "static_instance": null, "getter_method": "getNoAccountValue", "containing_data_type_ref": "users.GetAccountBatchError", "route_refs": [], "_type": "FieldReference"}, "users.GetAccountBatchError.other": {"fq_name": "users.GetAccountBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.GetAccountBatchError", "route_refs": [], "_type": "FieldReference"}, "users.GetAccountError.no_account": {"fq_name": "users.GetAccountError.no_account", "param_name": "noAccountValue", "static_instance": "NO_ACCOUNT", "getter_method": null, "containing_data_type_ref": "users.GetAccountError", "route_refs": [], "_type": "FieldReference"}, "users.GetAccountError.other": {"fq_name": "users.GetAccountError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.GetAccountError", "route_refs": [], "_type": "FieldReference"}, "users.IndividualSpaceAllocation.allocated": {"fq_name": "users.IndividualSpaceAllocation.allocated", "param_name": "allocated", "static_instance": null, "getter_method": "getAllocated", "containing_data_type_ref": "users.IndividualSpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.Name.given_name": {"fq_name": "users.Name.given_name", "param_name": "givenName", "static_instance": null, "getter_method": "getGivenName", "containing_data_type_ref": "users.Name", "route_refs": [], "_type": "FieldReference"}, "users.Name.surname": {"fq_name": "users.Name.surname", "param_name": "surname", "static_instance": null, "getter_method": "getSurname", "containing_data_type_ref": "users.Name", "route_refs": [], "_type": "FieldReference"}, "users.Name.familiar_name": {"fq_name": "users.Name.familiar_name", "param_name": "familiarName", "static_instance": null, "getter_method": "getFamiliarName", "containing_data_type_ref": "users.Name", "route_refs": [], "_type": "FieldReference"}, "users.Name.display_name": {"fq_name": "users.Name.display_name", "param_name": "displayName", "static_instance": null, "getter_method": "getDisplayName", "containing_data_type_ref": "users.Name", "route_refs": [], "_type": "FieldReference"}, "users.Name.abbreviated_name": {"fq_name": "users.Name.abbreviated_name", "param_name": "abbreviatedName", "static_instance": null, "getter_method": "getAbbreviatedName", "containing_data_type_ref": "users.Name", "route_refs": [], "_type": "FieldReference"}, "users.PaperAsFilesValue.enabled": {"fq_name": "users.PaperAsFilesValue.enabled", "param_name": "enabledValue", "static_instance": null, "getter_method": "getEnabledValue", "containing_data_type_ref": "users.PaperAsFilesValue", "route_refs": [], "_type": "FieldReference"}, "users.PaperAsFilesValue.other": {"fq_name": "users.PaperAsFilesValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.PaperAsFilesValue", "route_refs": [], "_type": "FieldReference"}, "users.SpaceAllocation.individual": {"fq_name": "users.SpaceAllocation.individual", "param_name": "individualValue", "static_instance": null, "getter_method": "getIndividualValue", "containing_data_type_ref": "users.SpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.SpaceAllocation.team": {"fq_name": "users.SpaceAllocation.team", "param_name": "teamValue", "static_instance": null, "getter_method": "getTeamValue", "containing_data_type_ref": "users.SpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.SpaceAllocation.other": {"fq_name": "users.SpaceAllocation.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.SpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.SpaceUsage.used": {"fq_name": "users.SpaceUsage.used", "param_name": "used", "static_instance": null, "getter_method": "getUsed", "containing_data_type_ref": "users.SpaceUsage", "route_refs": [], "_type": "FieldReference"}, "users.SpaceUsage.allocation": {"fq_name": "users.SpaceUsage.allocation", "param_name": "allocation", "static_instance": null, "getter_method": "getAllocation", "containing_data_type_ref": "users.SpaceUsage", "route_refs": [], "_type": "FieldReference"}, "users.Team.id": {"fq_name": "users.Team.id", "param_name": "id", "static_instance": null, "getter_method": "getId", "containing_data_type_ref": "users.Team", "route_refs": [], "_type": "FieldReference"}, "users.Team.name": {"fq_name": "users.Team.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "users.Team", "route_refs": [], "_type": "FieldReference"}, "users.TeamSpaceAllocation.used": {"fq_name": "users.TeamSpaceAllocation.used", "param_name": "used", "static_instance": null, "getter_method": "getUsed", "containing_data_type_ref": "users.TeamSpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.TeamSpaceAllocation.allocated": {"fq_name": "users.TeamSpaceAllocation.allocated", "param_name": "allocated", "static_instance": null, "getter_method": "getAllocated", "containing_data_type_ref": "users.TeamSpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.TeamSpaceAllocation.user_within_team_space_allocated": {"fq_name": "users.TeamSpaceAllocation.user_within_team_space_allocated", "param_name": "userWithinTeamSpaceAllocated", "static_instance": null, "getter_method": "getUserWithinTeamSpaceAllocated", "containing_data_type_ref": "users.TeamSpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.TeamSpaceAllocation.user_within_team_space_limit_type": {"fq_name": "users.TeamSpaceAllocation.user_within_team_space_limit_type", "param_name": "userWithinTeamSpaceLimitType", "static_instance": null, "getter_method": "getUserWithinTeamSpaceLimitType", "containing_data_type_ref": "users.TeamSpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.TeamSpaceAllocation.user_within_team_space_used_cached": {"fq_name": "users.TeamSpaceAllocation.user_within_team_space_used_cached", "param_name": "userWithinTeamSpaceUsedCached", "static_instance": null, "getter_method": "getUserWithinTeamSpaceUsedCached", "containing_data_type_ref": "users.TeamSpaceAllocation", "route_refs": [], "_type": "FieldReference"}, "users.UserFeature.paper_as_files": {"fq_name": "users.UserFeature.paper_as_files", "param_name": "paperAsFilesValue", "static_instance": "PAPER_AS_FILES", "getter_method": null, "containing_data_type_ref": "users.UserFeature", "route_refs": [], "_type": "FieldReference"}, "users.UserFeature.file_locking": {"fq_name": "users.UserFeature.file_locking", "param_name": "fileLockingValue", "static_instance": "FILE_LOCKING", "getter_method": null, "containing_data_type_ref": "users.UserFeature", "route_refs": [], "_type": "FieldReference"}, "users.UserFeature.other": {"fq_name": "users.UserFeature.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.UserFeature", "route_refs": [], "_type": "FieldReference"}, "users.UserFeatureValue.paper_as_files": {"fq_name": "users.UserFeatureValue.paper_as_files", "param_name": "paperAsFilesValue", "static_instance": null, "getter_method": "getPaperAsFilesValue", "containing_data_type_ref": "users.UserFeatureValue", "route_refs": [], "_type": "FieldReference"}, "users.UserFeatureValue.file_locking": {"fq_name": "users.UserFeatureValue.file_locking", "param_name": "fileLockingValue", "static_instance": null, "getter_method": "getFileLockingValue", "containing_data_type_ref": "users.UserFeatureValue", "route_refs": [], "_type": "FieldReference"}, "users.UserFeatureValue.other": {"fq_name": "users.UserFeatureValue.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.UserFeatureValue", "route_refs": [], "_type": "FieldReference"}, "users.UserFeaturesGetValuesBatchArg.features": {"fq_name": "users.UserFeaturesGetValuesBatchArg.features", "param_name": "features", "static_instance": null, "getter_method": "getFeatures", "containing_data_type_ref": "users.UserFeaturesGetValuesBatchArg", "route_refs": [], "_type": "FieldReference"}, "users.UserFeaturesGetValuesBatchError.empty_features_list": {"fq_name": "users.UserFeaturesGetValuesBatchError.empty_features_list", "param_name": "emptyFeaturesListValue", "static_instance": "EMPTY_FEATURES_LIST", "getter_method": null, "containing_data_type_ref": "users.UserFeaturesGetValuesBatchError", "route_refs": [], "_type": "FieldReference"}, "users.UserFeaturesGetValuesBatchError.other": {"fq_name": "users.UserFeaturesGetValuesBatchError.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "users.UserFeaturesGetValuesBatchError", "route_refs": [], "_type": "FieldReference"}, "users.UserFeaturesGetValuesBatchResult.values": {"fq_name": "users.UserFeaturesGetValuesBatchResult.values", "param_name": "values", "static_instance": null, "getter_method": "getValues", "containing_data_type_ref": "users.UserFeaturesGetValuesBatchResult", "route_refs": [], "_type": "FieldReference"}, "users_common.AccountType.basic": {"fq_name": "users_common.AccountType.basic", "param_name": "basicValue", "static_instance": "BASIC", "getter_method": null, "containing_data_type_ref": "users_common.AccountType", "route_refs": [], "_type": "FieldReference"}, "users_common.AccountType.pro": {"fq_name": "users_common.AccountType.pro", "param_name": "proValue", "static_instance": "PRO", "getter_method": null, "containing_data_type_ref": "users_common.AccountType", "route_refs": [], "_type": "FieldReference"}, "users_common.AccountType.business": {"fq_name": "users_common.AccountType.business", "param_name": "businessValue", "static_instance": "BUSINESS", "getter_method": null, "containing_data_type_ref": "users_common.AccountType", "route_refs": [], "_type": "FieldReference"}}} \ No newline at end of file diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxAppClientV2Base.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxAppClientV2Base.java new file mode 100644 index 000000000..2a76ea2bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxAppClientV2Base.java @@ -0,0 +1,70 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2; + +import com.dropbox.core.v2.auth.DbxAppAuthRequests; +import com.dropbox.core.v2.check.DbxAppCheckRequests; +import com.dropbox.core.v2.files.DbxAppFilesRequests; +import com.dropbox.core.v2.sharing.DbxAppSharingRequests; + +/** + * Base class for app auth clients. + */ +public class DbxAppClientV2Base { + protected final DbxRawClientV2 _client; + + private final DbxAppAuthRequests auth; + private final DbxAppCheckRequests check; + private final DbxAppFilesRequests files; + private final DbxAppSharingRequests sharing; + + /** + * For internal use only. + * + * @param _client Raw v2 client to use for issuing requests + */ + protected DbxAppClientV2Base(DbxRawClientV2 _client) { + this._client = _client; + this.auth = new DbxAppAuthRequests(_client); + this.check = new DbxAppCheckRequests(_client); + this.files = new DbxAppFilesRequests(_client); + this.sharing = new DbxAppSharingRequests(_client); + } + + /** + * Returns client for issuing requests in the {@code "auth"} namespace. + * + * @return Dropbox auth client + */ + public DbxAppAuthRequests auth() { + return auth; + } + + /** + * Returns client for issuing requests in the {@code "check"} namespace. + * + * @return Dropbox check client + */ + public DbxAppCheckRequests check() { + return check; + } + + /** + * Returns client for issuing requests in the {@code "files"} namespace. + * + * @return Dropbox files client + */ + public DbxAppFilesRequests files() { + return files; + } + + /** + * Returns client for issuing requests in the {@code "sharing"} namespace. + * + * @return Dropbox sharing client + */ + public DbxAppSharingRequests sharing() { + return sharing; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxClientV2Base.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxClientV2Base.java new file mode 100644 index 000000000..0dd031ae4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxClientV2Base.java @@ -0,0 +1,156 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2; + +import com.dropbox.core.v2.account.DbxUserAccountRequests; +import com.dropbox.core.v2.auth.DbxUserAuthRequests; +import com.dropbox.core.v2.check.DbxUserCheckRequests; +import com.dropbox.core.v2.contacts.DbxUserContactsRequests; +import com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests; +import com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests; +import com.dropbox.core.v2.files.DbxUserFilesRequests; +import com.dropbox.core.v2.openid.DbxUserOpenidRequests; +import com.dropbox.core.v2.paper.DbxUserPaperRequests; +import com.dropbox.core.v2.sharing.DbxUserSharingRequests; +import com.dropbox.core.v2.users.DbxUserUsersRequests; + +/** + * Base class for user auth clients. + */ +public class DbxClientV2Base { + protected final DbxRawClientV2 _client; + + private final DbxUserAccountRequests account; + private final DbxUserAuthRequests auth; + private final DbxUserCheckRequests check; + private final DbxUserContactsRequests contacts; + private final DbxUserFilePropertiesRequests fileProperties; + private final DbxUserFileRequestsRequests fileRequests; + private final DbxUserFilesRequests files; + private final DbxUserOpenidRequests openid; + private final DbxUserPaperRequests paper; + private final DbxUserSharingRequests sharing; + private final DbxUserUsersRequests users; + + /** + * For internal use only. + * + * @param _client Raw v2 client to use for issuing requests + */ + protected DbxClientV2Base(DbxRawClientV2 _client) { + this._client = _client; + this.account = new DbxUserAccountRequests(_client); + this.auth = new DbxUserAuthRequests(_client); + this.check = new DbxUserCheckRequests(_client); + this.contacts = new DbxUserContactsRequests(_client); + this.fileProperties = new DbxUserFilePropertiesRequests(_client); + this.fileRequests = new DbxUserFileRequestsRequests(_client); + this.files = new DbxUserFilesRequests(_client); + this.openid = new DbxUserOpenidRequests(_client); + this.paper = new DbxUserPaperRequests(_client); + this.sharing = new DbxUserSharingRequests(_client); + this.users = new DbxUserUsersRequests(_client); + } + + /** + * Returns client for issuing requests in the {@code "account"} namespace. + * + * @return Dropbox account client + */ + public DbxUserAccountRequests account() { + return account; + } + + /** + * Returns client for issuing requests in the {@code "auth"} namespace. + * + * @return Dropbox auth client + */ + public DbxUserAuthRequests auth() { + return auth; + } + + /** + * Returns client for issuing requests in the {@code "check"} namespace. + * + * @return Dropbox check client + */ + public DbxUserCheckRequests check() { + return check; + } + + /** + * Returns client for issuing requests in the {@code "contacts"} namespace. + * + * @return Dropbox contacts client + */ + public DbxUserContactsRequests contacts() { + return contacts; + } + + /** + * Returns client for issuing requests in the {@code "file_properties"} + * namespace. + * + * @return Dropbox file_properties client + */ + public DbxUserFilePropertiesRequests fileProperties() { + return fileProperties; + } + + /** + * Returns client for issuing requests in the {@code "file_requests"} + * namespace. + * + * @return Dropbox file_requests client + */ + public DbxUserFileRequestsRequests fileRequests() { + return fileRequests; + } + + /** + * Returns client for issuing requests in the {@code "files"} namespace. + * + * @return Dropbox files client + */ + public DbxUserFilesRequests files() { + return files; + } + + /** + * Returns client for issuing requests in the {@code "openid"} namespace. + * + * @return Dropbox openid client + */ + public DbxUserOpenidRequests openid() { + return openid; + } + + /** + * Returns client for issuing requests in the {@code "paper"} namespace. + * + * @return Dropbox paper client + */ + public DbxUserPaperRequests paper() { + return paper; + } + + /** + * Returns client for issuing requests in the {@code "sharing"} namespace. + * + * @return Dropbox sharing client + */ + public DbxUserSharingRequests sharing() { + return sharing; + } + + /** + * Returns client for issuing requests in the {@code "users"} namespace. + * + * @return Dropbox users client + */ + public DbxUserUsersRequests users() { + return users; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxTeamClientV2Base.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxTeamClientV2Base.java new file mode 100644 index 000000000..0e63d32a8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/DbxTeamClientV2Base.java @@ -0,0 +1,59 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2; + +import com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests; +import com.dropbox.core.v2.team.DbxTeamTeamRequests; +import com.dropbox.core.v2.teamlog.DbxTeamTeamLogRequests; + +/** + * Base class for team auth clients. + */ +public class DbxTeamClientV2Base { + protected final DbxRawClientV2 _client; + + private final DbxTeamFilePropertiesRequests fileProperties; + private final DbxTeamTeamRequests team; + private final DbxTeamTeamLogRequests teamLog; + + /** + * For internal use only. + * + * @param _client Raw v2 client to use for issuing requests + */ + protected DbxTeamClientV2Base(DbxRawClientV2 _client) { + this._client = _client; + this.fileProperties = new DbxTeamFilePropertiesRequests(_client); + this.team = new DbxTeamTeamRequests(_client); + this.teamLog = new DbxTeamTeamLogRequests(_client); + } + + /** + * Returns client for issuing requests in the {@code "file_properties"} + * namespace. + * + * @return Dropbox file_properties client + */ + public DbxTeamFilePropertiesRequests fileProperties() { + return fileProperties; + } + + /** + * Returns client for issuing requests in the {@code "team"} namespace. + * + * @return Dropbox team client + */ + public DbxTeamTeamRequests team() { + return team; + } + + /** + * Returns client for issuing requests in the {@code "team_log"} namespace. + * + * @return Dropbox team_log client + */ + public DbxTeamTeamLogRequests teamLog() { + return teamLog; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/DbxUserAccountRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/DbxUserAccountRequests.java new file mode 100644 index 000000000..0e76367af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/DbxUserAccountRequests.java @@ -0,0 +1,62 @@ +/* DO NOT EDIT */ +/* This file was generated from account.stone */ + +package com.dropbox.core.v2.account; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "account". + */ +public class DbxUserAccountRequests { + // namespace account (account.stone) + + private final DbxRawClientV2 client; + + public DbxUserAccountRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/account/set_profile_photo + // + + /** + * Sets a user's profile photo. + * + */ + SetProfilePhotoResult setProfilePhoto(SetProfilePhotoArg arg) throws SetProfilePhotoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/account/set_profile_photo", + arg, + false, + SetProfilePhotoArg.Serializer.INSTANCE, + SetProfilePhotoResult.Serializer.INSTANCE, + SetProfilePhotoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SetProfilePhotoErrorException("2/account/set_profile_photo", ex.getRequestId(), ex.getUserMessage(), (SetProfilePhotoError) ex.getErrorValue()); + } + } + + /** + * Sets a user's profile photo. + * + * @param photo Image to set as the user's new profile photo. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SetProfilePhotoResult setProfilePhoto(PhotoSourceArg photo) throws SetProfilePhotoErrorException, DbxException { + SetProfilePhotoArg _arg = new SetProfilePhotoArg(photo); + return setProfilePhoto(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/PhotoSourceArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/PhotoSourceArg.java new file mode 100644 index 000000000..6fe3665c2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/PhotoSourceArg.java @@ -0,0 +1,283 @@ +/* DO NOT EDIT */ +/* This file was generated from account.stone */ + +package com.dropbox.core.v2.account; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PhotoSourceArg { + // union account.PhotoSourceArg (account.stone) + + /** + * Discriminating tag type for {@link PhotoSourceArg}. + */ + public enum Tag { + /** + * Image data in base64-encoded bytes. + */ + BASE64_DATA, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PhotoSourceArg OTHER = new PhotoSourceArg().withTag(Tag.OTHER); + + private Tag _tag; + private String base64DataValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PhotoSourceArg() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PhotoSourceArg withTag(Tag _tag) { + PhotoSourceArg result = new PhotoSourceArg(); + result._tag = _tag; + return result; + } + + /** + * + * @param base64DataValue Image data in base64-encoded bytes. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PhotoSourceArg withTagAndBase64Data(Tag _tag, String base64DataValue) { + PhotoSourceArg result = new PhotoSourceArg(); + result._tag = _tag; + result.base64DataValue = base64DataValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PhotoSourceArg}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BASE64_DATA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BASE64_DATA}, {@code false} otherwise. + */ + public boolean isBase64Data() { + return this._tag == Tag.BASE64_DATA; + } + + /** + * Returns an instance of {@code PhotoSourceArg} that has its tag set to + * {@link Tag#BASE64_DATA}. + * + *

Image data in base64-encoded bytes.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PhotoSourceArg} with its tag set to {@link + * Tag#BASE64_DATA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PhotoSourceArg base64Data(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PhotoSourceArg().withTagAndBase64Data(Tag.BASE64_DATA, value); + } + + /** + * Image data in base64-encoded bytes. + * + *

This instance must be tagged as {@link Tag#BASE64_DATA}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isBase64Data} is {@code true}. + * + * @throws IllegalStateException If {@link #isBase64Data} is {@code false}. + */ + public String getBase64DataValue() { + if (this._tag != Tag.BASE64_DATA) { + throw new IllegalStateException("Invalid tag: required Tag.BASE64_DATA, but was Tag." + this._tag.name()); + } + return base64DataValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.base64DataValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PhotoSourceArg) { + PhotoSourceArg other = (PhotoSourceArg) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case BASE64_DATA: + return (this.base64DataValue == other.base64DataValue) || (this.base64DataValue.equals(other.base64DataValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PhotoSourceArg value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case BASE64_DATA: { + g.writeStartObject(); + writeTag("base64_data", g); + g.writeFieldName("base64_data"); + StoneSerializers.string().serialize(value.base64DataValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PhotoSourceArg deserialize(JsonParser p) throws IOException, JsonParseException { + PhotoSourceArg value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("base64_data".equals(tag)) { + String fieldValue = null; + expectField("base64_data", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = PhotoSourceArg.base64Data(fieldValue); + } + else { + value = PhotoSourceArg.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoArg.java new file mode 100644 index 000000000..9907d7a13 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from account.stone */ + +package com.dropbox.core.v2.account; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class SetProfilePhotoArg { + // struct account.SetProfilePhotoArg (account.stone) + + @Nonnull + protected final PhotoSourceArg photo; + + /** + * + * @param photo Image to set as the user's new profile photo. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SetProfilePhotoArg(@Nonnull PhotoSourceArg photo) { + if (photo == null) { + throw new IllegalArgumentException("Required value for 'photo' is null"); + } + this.photo = photo; + } + + /** + * Image to set as the user's new profile photo. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PhotoSourceArg getPhoto() { + return photo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.photo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SetProfilePhotoArg other = (SetProfilePhotoArg) obj; + return (this.photo == other.photo) || (this.photo.equals(other.photo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SetProfilePhotoArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("photo"); + PhotoSourceArg.Serializer.INSTANCE.serialize(value.photo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SetProfilePhotoArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SetProfilePhotoArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PhotoSourceArg f_photo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("photo".equals(field)) { + f_photo = PhotoSourceArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_photo == null) { + throw new JsonParseException(p, "Required field \"photo\" missing."); + } + value = new SetProfilePhotoArg(f_photo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoError.java new file mode 100644 index 000000000..a7dd74f85 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoError.java @@ -0,0 +1,128 @@ +/* DO NOT EDIT */ +/* This file was generated from account.stone */ + +package com.dropbox.core.v2.account; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SetProfilePhotoError { + // union account.SetProfilePhotoError (account.stone) + /** + * File cannot be set as profile photo. + */ + FILE_TYPE_ERROR, + /** + * File cannot exceed 10 MB. + */ + FILE_SIZE_ERROR, + /** + * Image must be larger than 128 x 128. + */ + DIMENSION_ERROR, + /** + * Image could not be thumbnailed. + */ + THUMBNAIL_ERROR, + /** + * Temporary infrastructure failure, please retry. + */ + TRANSIENT_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SetProfilePhotoError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FILE_TYPE_ERROR: { + g.writeString("file_type_error"); + break; + } + case FILE_SIZE_ERROR: { + g.writeString("file_size_error"); + break; + } + case DIMENSION_ERROR: { + g.writeString("dimension_error"); + break; + } + case THUMBNAIL_ERROR: { + g.writeString("thumbnail_error"); + break; + } + case TRANSIENT_ERROR: { + g.writeString("transient_error"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SetProfilePhotoError deserialize(JsonParser p) throws IOException, JsonParseException { + SetProfilePhotoError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("file_type_error".equals(tag)) { + value = SetProfilePhotoError.FILE_TYPE_ERROR; + } + else if ("file_size_error".equals(tag)) { + value = SetProfilePhotoError.FILE_SIZE_ERROR; + } + else if ("dimension_error".equals(tag)) { + value = SetProfilePhotoError.DIMENSION_ERROR; + } + else if ("thumbnail_error".equals(tag)) { + value = SetProfilePhotoError.THUMBNAIL_ERROR; + } + else if ("transient_error".equals(tag)) { + value = SetProfilePhotoError.TRANSIENT_ERROR; + } + else { + value = SetProfilePhotoError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoErrorException.java new file mode 100644 index 000000000..c8f5c7eba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.account; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link SetProfilePhotoError} + * error. + * + *

This exception is raised by {@link + * DbxUserAccountRequests#setProfilePhoto(PhotoSourceArg)}.

+ */ +public class SetProfilePhotoErrorException extends DbxApiException { + // exception for routes: + // 2/account/set_profile_photo + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserAccountRequests#setProfilePhoto(PhotoSourceArg)}. + */ + public final SetProfilePhotoError errorValue; + + public SetProfilePhotoErrorException(String routeName, String requestId, LocalizedText userMessage, SetProfilePhotoError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoResult.java new file mode 100644 index 000000000..f0cea6fbd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoResult.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from account.stone */ + +package com.dropbox.core.v2.account; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SetProfilePhotoResult { + // struct account.SetProfilePhotoResult (account.stone) + + @Nonnull + protected final String profilePhotoUrl; + + /** + * + * @param profilePhotoUrl URL for the photo representing the user, if one + * is set. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SetProfilePhotoResult(@Nonnull String profilePhotoUrl) { + if (profilePhotoUrl == null) { + throw new IllegalArgumentException("Required value for 'profilePhotoUrl' is null"); + } + this.profilePhotoUrl = profilePhotoUrl; + } + + /** + * URL for the photo representing the user, if one is set. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getProfilePhotoUrl() { + return profilePhotoUrl; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.profilePhotoUrl + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SetProfilePhotoResult other = (SetProfilePhotoResult) obj; + return (this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl.equals(other.profilePhotoUrl)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SetProfilePhotoResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("profile_photo_url"); + StoneSerializers.string().serialize(value.profilePhotoUrl, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SetProfilePhotoResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SetProfilePhotoResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_profilePhotoUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("profile_photo_url".equals(field)) { + f_profilePhotoUrl = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_profilePhotoUrl == null) { + throw new JsonParseException(p, "Required field \"profile_photo_url\" missing."); + } + value = new SetProfilePhotoResult(f_profilePhotoUrl); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/package-info.java new file mode 100644 index 000000000..c6ee62878 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/package-info.java @@ -0,0 +1,9 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.v2.account.DbxUserAccountRequests} for a list of + * possible requests for this namespace. + */ +package com.dropbox.core.v2.account; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchEmptyResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchEmptyResult.java new file mode 100644 index 000000000..747bbe37e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchEmptyResult.java @@ -0,0 +1,296 @@ +/* DO NOT EDIT */ +/* This file was generated from async.stone */ + +package com.dropbox.core.v2.async; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by methods that may either launch an asynchronous job or + * complete synchronously. Upon synchronous completion of the job, no additional + * information is returned. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class LaunchEmptyResult { + // union async.LaunchEmptyResult (async.stone) + + /** + * Discriminating tag type for {@link LaunchEmptyResult}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + /** + * The job finished synchronously and successfully. + */ + COMPLETE; + } + + /** + * The job finished synchronously and successfully. + */ + public static final LaunchEmptyResult COMPLETE = new LaunchEmptyResult().withTag(Tag.COMPLETE); + + private Tag _tag; + private String asyncJobIdValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LaunchEmptyResult() { + } + + + /** + * Result returned by methods that may either launch an asynchronous job or + * complete synchronously. Upon synchronous completion of the job, no + * additional information is returned. + * + * @param _tag Discriminating tag for this instance. + */ + private LaunchEmptyResult withTag(Tag _tag) { + LaunchEmptyResult result = new LaunchEmptyResult(); + result._tag = _tag; + return result; + } + + /** + * Result returned by methods that may either launch an asynchronous job or + * complete synchronously. Upon synchronous completion of the job, no + * additional information is returned. + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LaunchEmptyResult withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + LaunchEmptyResult result = new LaunchEmptyResult(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LaunchEmptyResult}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code LaunchEmptyResult} that has its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LaunchEmptyResult} with its tag set to {@link + * Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static LaunchEmptyResult asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new LaunchEmptyResult().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LaunchEmptyResult) { + LaunchEmptyResult other = (LaunchEmptyResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LaunchEmptyResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeString("complete"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public LaunchEmptyResult deserialize(JsonParser p) throws IOException, JsonParseException { + LaunchEmptyResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = LaunchEmptyResult.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + value = LaunchEmptyResult.COMPLETE; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchResultBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchResultBase.java new file mode 100644 index 000000000..701e14869 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/LaunchResultBase.java @@ -0,0 +1,271 @@ +/* DO NOT EDIT */ +/* This file was generated from async.stone */ + +package com.dropbox.core.v2.async; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by methods that launch an asynchronous job. A method who may + * either launch an asynchronous job, or complete the request synchronously, can + * use this union by extending it, and adding a 'complete' field with the type + * of the synchronous response. See {@link LaunchEmptyResult} for an example. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class LaunchResultBase { + // union async.LaunchResultBase (async.stone) + + /** + * Discriminating tag type for {@link LaunchResultBase}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID; // String + } + + private Tag _tag; + private String asyncJobIdValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LaunchResultBase() { + } + + + /** + * Result returned by methods that launch an asynchronous job. A method who + * may either launch an asynchronous job, or complete the request + * synchronously, can use this union by extending it, and adding a + * 'complete' field with the type of the synchronous response. See {@link + * LaunchEmptyResult} for an example. + * + * @param _tag Discriminating tag for this instance. + */ + private LaunchResultBase withTag(Tag _tag) { + LaunchResultBase result = new LaunchResultBase(); + result._tag = _tag; + return result; + } + + /** + * Result returned by methods that launch an asynchronous job. A method who + * may either launch an asynchronous job, or complete the request + * synchronously, can use this union by extending it, and adding a + * 'complete' field with the type of the synchronous response. See {@link + * LaunchEmptyResult} for an example. + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LaunchResultBase withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + LaunchResultBase result = new LaunchResultBase(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LaunchResultBase}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code LaunchResultBase} that has its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LaunchResultBase} with its tag set to {@link + * Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static LaunchResultBase asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new LaunchResultBase().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LaunchResultBase) { + LaunchResultBase other = (LaunchResultBase) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LaunchResultBase value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public LaunchResultBase deserialize(JsonParser p) throws IOException, JsonParseException { + LaunchResultBase value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = LaunchResultBase.asyncJobId(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollArg.java new file mode 100644 index 000000000..380f2b217 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollArg.java @@ -0,0 +1,157 @@ +/* DO NOT EDIT */ +/* This file was generated from async.stone */ + +package com.dropbox.core.v2.async; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Arguments for methods that poll the status of an asynchronous job. + */ +public class PollArg { + // struct async.PollArg (async.stone) + + @Nonnull + protected final String asyncJobId; + + /** + * Arguments for methods that poll the status of an asynchronous job. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PollArg(@Nonnull String asyncJobId) { + if (asyncJobId == null) { + throw new IllegalArgumentException("Required value for 'asyncJobId' is null"); + } + if (asyncJobId.length() < 1) { + throw new IllegalArgumentException("String 'asyncJobId' is shorter than 1"); + } + this.asyncJobId = asyncJobId; + } + + /** + * Id of the asynchronous job. This is the value of a response returned from + * the method that launched the job. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAsyncJobId() { + return asyncJobId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.asyncJobId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PollArg other = (PollArg) obj; + return (this.asyncJobId == other.asyncJobId) || (this.asyncJobId.equals(other.asyncJobId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PollArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PollArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PollArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_asyncJobId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("async_job_id".equals(field)) { + f_asyncJobId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_asyncJobId == null) { + throw new JsonParseException(p, "Required field \"async_job_id\" missing."); + } + value = new PollArg(f_asyncJobId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollEmptyResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollEmptyResult.java new file mode 100644 index 000000000..270b21c51 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollEmptyResult.java @@ -0,0 +1,91 @@ +/* DO NOT EDIT */ +/* This file was generated from async.stone */ + +package com.dropbox.core.v2.async; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by methods that poll for the status of an asynchronous job. + * Upon completion of the job, no additional information is returned. + */ +public enum PollEmptyResult { + // union async.PollEmptyResult (async.stone) + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The asynchronous job has completed successfully. + */ + COMPLETE; + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PollEmptyResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeString("complete"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public PollEmptyResult deserialize(JsonParser p) throws IOException, JsonParseException { + PollEmptyResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = PollEmptyResult.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + value = PollEmptyResult.COMPLETE; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollError.java new file mode 100644 index 000000000..03203784f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollError.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from async.stone */ + +package com.dropbox.core.v2.async; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned by methods for polling the status of asynchronous job. + */ +public enum PollError { + // union async.PollError (async.stone) + /** + * The job ID is invalid. + */ + INVALID_ASYNC_JOB_ID, + /** + * Something went wrong with the job on Dropbox's end. You'll need to verify + * that the action you were taking succeeded, and if not, try again. This + * should happen very rarely. + */ + INTERNAL_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PollError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_ASYNC_JOB_ID: { + g.writeString("invalid_async_job_id"); + break; + } + case INTERNAL_ERROR: { + g.writeString("internal_error"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PollError deserialize(JsonParser p) throws IOException, JsonParseException { + PollError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_async_job_id".equals(tag)) { + value = PollError.INVALID_ASYNC_JOB_ID; + } + else if ("internal_error".equals(tag)) { + value = PollError.INTERNAL_ERROR; + } + else { + value = PollError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollErrorException.java new file mode 100644 index 000000000..86e0e646c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollErrorException.java @@ -0,0 +1,110 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.async; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link PollError} error. + * + *

This exception is raised by {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersAddJobStatusGet(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersAddJobStatusGetV2(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersMoveFormerMemberFilesJobStatusCheck(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersRemoveJobStatusGet(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#teamFolderArchiveCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheckV2(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#createFolderBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#deleteBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#moveBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#moveBatchCheckV2(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#saveUrlCheckJobStatus(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#uploadSessionFinishBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.sharing.DbxUserSharingRequests#checkJobStatus(String)}, + * {@link + * com.dropbox.core.v2.sharing.DbxUserSharingRequests#checkRemoveMemberJobStatus(String)}, + * and {@link + * com.dropbox.core.v2.sharing.DbxUserSharingRequests#checkShareJobStatus(String)}. + *

+ */ +public class PollErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/add/job_status/get + // 2/team/members/add/job_status/get_v2 + // 2/team/members/move_former_member_files/job_status/check + // 2/team/members/remove/job_status/get + // 2/team/team_folder/archive/check + // 2/files/copy_batch/check + // 2/files/copy_batch/check_v2 + // 2/files/create_folder_batch/check + // 2/files/delete_batch/check + // 2/files/move_batch/check + // 2/files/move_batch/check_v2 + // 2/files/save_url/check_job_status + // 2/files/upload_session/finish_batch/check + // 2/sharing/check_job_status + // 2/sharing/check_remove_member_job_status + // 2/sharing/check_share_job_status + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersAddJobStatusGet(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersAddJobStatusGetV2(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersMoveFormerMemberFilesJobStatusCheck(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#membersRemoveJobStatusGet(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#teamFolderArchiveCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheckV2(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#createFolderBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#deleteBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#moveBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#moveBatchCheckV2(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#saveUrlCheckJobStatus(String)}, + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#uploadSessionFinishBatchCheck(String)}, + * {@link + * com.dropbox.core.v2.sharing.DbxUserSharingRequests#checkJobStatus(String)}, + * {@link + * com.dropbox.core.v2.sharing.DbxUserSharingRequests#checkRemoveMemberJobStatus(String)}, + * and {@link + * com.dropbox.core.v2.sharing.DbxUserSharingRequests#checkShareJobStatus(String)}. + */ + public final PollError errorValue; + + public PollErrorException(String routeName, String requestId, LocalizedText userMessage, PollError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/package-info.java new file mode 100644 index 000000000..c54318bde --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/package-info.java @@ -0,0 +1,7 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + */ +package com.dropbox.core.v2.async; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AccessError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AccessError.java new file mode 100644 index 000000000..0a44c5d68 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AccessError.java @@ -0,0 +1,381 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error occurred because the account doesn't have permission to access the + * resource. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AccessError { + // union auth.AccessError (auth.stone) + + /** + * Discriminating tag type for {@link AccessError}. + */ + public enum Tag { + /** + * Current account type cannot access the resource. + */ + INVALID_ACCOUNT_TYPE, // InvalidAccountTypeError + /** + * Current account cannot access Paper. + */ + PAPER_ACCESS_DENIED, // PaperAccessError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AccessError OTHER = new AccessError().withTag(Tag.OTHER); + + private Tag _tag; + private InvalidAccountTypeError invalidAccountTypeValue; + private PaperAccessError paperAccessDeniedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AccessError() { + } + + + /** + * Error occurred because the account doesn't have permission to access the + * resource. + * + * @param _tag Discriminating tag for this instance. + */ + private AccessError withTag(Tag _tag) { + AccessError result = new AccessError(); + result._tag = _tag; + return result; + } + + /** + * Error occurred because the account doesn't have permission to access the + * resource. + * + * @param invalidAccountTypeValue Current account type cannot access the + * resource. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessError withTagAndInvalidAccountType(Tag _tag, InvalidAccountTypeError invalidAccountTypeValue) { + AccessError result = new AccessError(); + result._tag = _tag; + result.invalidAccountTypeValue = invalidAccountTypeValue; + return result; + } + + /** + * Error occurred because the account doesn't have permission to access the + * resource. + * + * @param paperAccessDeniedValue Current account cannot access Paper. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessError withTagAndPaperAccessDenied(Tag _tag, PaperAccessError paperAccessDeniedValue) { + AccessError result = new AccessError(); + result._tag = _tag; + result.paperAccessDeniedValue = paperAccessDeniedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AccessError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_ACCOUNT_TYPE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_ACCOUNT_TYPE}, {@code false} otherwise. + */ + public boolean isInvalidAccountType() { + return this._tag == Tag.INVALID_ACCOUNT_TYPE; + } + + /** + * Returns an instance of {@code AccessError} that has its tag set to {@link + * Tag#INVALID_ACCOUNT_TYPE}. + * + *

Current account type cannot access the resource.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessError} with its tag set to {@link + * Tag#INVALID_ACCOUNT_TYPE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessError invalidAccountType(InvalidAccountTypeError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessError().withTagAndInvalidAccountType(Tag.INVALID_ACCOUNT_TYPE, value); + } + + /** + * Current account type cannot access the resource. + * + *

This instance must be tagged as {@link Tag#INVALID_ACCOUNT_TYPE}. + *

+ * + * @return The {@link InvalidAccountTypeError} value associated with this + * instance if {@link #isInvalidAccountType} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidAccountType} is {@code + * false}. + */ + public InvalidAccountTypeError getInvalidAccountTypeValue() { + if (this._tag != Tag.INVALID_ACCOUNT_TYPE) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_ACCOUNT_TYPE, but was Tag." + this._tag.name()); + } + return invalidAccountTypeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_ACCESS_DENIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_ACCESS_DENIED}, {@code false} otherwise. + */ + public boolean isPaperAccessDenied() { + return this._tag == Tag.PAPER_ACCESS_DENIED; + } + + /** + * Returns an instance of {@code AccessError} that has its tag set to {@link + * Tag#PAPER_ACCESS_DENIED}. + * + *

Current account cannot access Paper.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessError} with its tag set to {@link + * Tag#PAPER_ACCESS_DENIED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessError paperAccessDenied(PaperAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessError().withTagAndPaperAccessDenied(Tag.PAPER_ACCESS_DENIED, value); + } + + /** + * Current account cannot access Paper. + * + *

This instance must be tagged as {@link Tag#PAPER_ACCESS_DENIED}.

+ * + * @return The {@link PaperAccessError} value associated with this instance + * if {@link #isPaperAccessDenied} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperAccessDenied} is {@code + * false}. + */ + public PaperAccessError getPaperAccessDeniedValue() { + if (this._tag != Tag.PAPER_ACCESS_DENIED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_ACCESS_DENIED, but was Tag." + this._tag.name()); + } + return paperAccessDeniedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.invalidAccountTypeValue, + this.paperAccessDeniedValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AccessError) { + AccessError other = (AccessError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INVALID_ACCOUNT_TYPE: + return (this.invalidAccountTypeValue == other.invalidAccountTypeValue) || (this.invalidAccountTypeValue.equals(other.invalidAccountTypeValue)); + case PAPER_ACCESS_DENIED: + return (this.paperAccessDeniedValue == other.paperAccessDeniedValue) || (this.paperAccessDeniedValue.equals(other.paperAccessDeniedValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccessError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INVALID_ACCOUNT_TYPE: { + g.writeStartObject(); + writeTag("invalid_account_type", g); + g.writeFieldName("invalid_account_type"); + InvalidAccountTypeError.Serializer.INSTANCE.serialize(value.invalidAccountTypeValue, g); + g.writeEndObject(); + break; + } + case PAPER_ACCESS_DENIED: { + g.writeStartObject(); + writeTag("paper_access_denied", g); + g.writeFieldName("paper_access_denied"); + PaperAccessError.Serializer.INSTANCE.serialize(value.paperAccessDeniedValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccessError deserialize(JsonParser p) throws IOException, JsonParseException { + AccessError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_account_type".equals(tag)) { + InvalidAccountTypeError fieldValue = null; + expectField("invalid_account_type", p); + fieldValue = InvalidAccountTypeError.Serializer.INSTANCE.deserialize(p); + value = AccessError.invalidAccountType(fieldValue); + } + else if ("paper_access_denied".equals(tag)) { + PaperAccessError fieldValue = null; + expectField("paper_access_denied", p); + fieldValue = PaperAccessError.Serializer.INSTANCE.deserialize(p); + value = AccessError.paperAccessDenied(fieldValue); + } + else { + value = AccessError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AuthError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AuthError.java new file mode 100644 index 000000000..e4f05773a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/AuthError.java @@ -0,0 +1,459 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Errors occurred during authentication. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AuthError { + // union auth.AuthError (auth.stone) + + /** + * Discriminating tag type for {@link AuthError}. + */ + public enum Tag { + /** + * The access token is invalid. + */ + INVALID_ACCESS_TOKEN, + /** + * The user specified in 'Dropbox-API-Select-User' is no longer on the + * team. + */ + INVALID_SELECT_USER, + /** + * The user specified in 'Dropbox-API-Select-Admin' is not a Dropbox + * Business team admin. + */ + INVALID_SELECT_ADMIN, + /** + * The user has been suspended. + */ + USER_SUSPENDED, + /** + * The access token has expired. + */ + EXPIRED_ACCESS_TOKEN, + /** + * The access token does not have the required scope to access the + * route. + */ + MISSING_SCOPE, // TokenScopeError + /** + * The route is not available to public. + */ + ROUTE_ACCESS_DENIED, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The access token is invalid. + */ + public static final AuthError INVALID_ACCESS_TOKEN = new AuthError().withTag(Tag.INVALID_ACCESS_TOKEN); + /** + * The user specified in 'Dropbox-API-Select-User' is no longer on the team. + */ + public static final AuthError INVALID_SELECT_USER = new AuthError().withTag(Tag.INVALID_SELECT_USER); + /** + * The user specified in 'Dropbox-API-Select-Admin' is not a Dropbox + * Business team admin. + */ + public static final AuthError INVALID_SELECT_ADMIN = new AuthError().withTag(Tag.INVALID_SELECT_ADMIN); + /** + * The user has been suspended. + */ + public static final AuthError USER_SUSPENDED = new AuthError().withTag(Tag.USER_SUSPENDED); + /** + * The access token has expired. + */ + public static final AuthError EXPIRED_ACCESS_TOKEN = new AuthError().withTag(Tag.EXPIRED_ACCESS_TOKEN); + /** + * The route is not available to public. + */ + public static final AuthError ROUTE_ACCESS_DENIED = new AuthError().withTag(Tag.ROUTE_ACCESS_DENIED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AuthError OTHER = new AuthError().withTag(Tag.OTHER); + + private Tag _tag; + private TokenScopeError missingScopeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AuthError() { + } + + + /** + * Errors occurred during authentication. + * + * @param _tag Discriminating tag for this instance. + */ + private AuthError withTag(Tag _tag) { + AuthError result = new AuthError(); + result._tag = _tag; + return result; + } + + /** + * Errors occurred during authentication. + * + * @param missingScopeValue The access token does not have the required + * scope to access the route. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AuthError withTagAndMissingScope(Tag _tag, TokenScopeError missingScopeValue) { + AuthError result = new AuthError(); + result._tag = _tag; + result.missingScopeValue = missingScopeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AuthError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_ACCESS_TOKEN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_ACCESS_TOKEN}, {@code false} otherwise. + */ + public boolean isInvalidAccessToken() { + return this._tag == Tag.INVALID_ACCESS_TOKEN; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_SELECT_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_SELECT_USER}, {@code false} otherwise. + */ + public boolean isInvalidSelectUser() { + return this._tag == Tag.INVALID_SELECT_USER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_SELECT_ADMIN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_SELECT_ADMIN}, {@code false} otherwise. + */ + public boolean isInvalidSelectAdmin() { + return this._tag == Tag.INVALID_SELECT_ADMIN; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_SUSPENDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_SUSPENDED}, {@code false} otherwise. + */ + public boolean isUserSuspended() { + return this._tag == Tag.USER_SUSPENDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXPIRED_ACCESS_TOKEN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXPIRED_ACCESS_TOKEN}, {@code false} otherwise. + */ + public boolean isExpiredAccessToken() { + return this._tag == Tag.EXPIRED_ACCESS_TOKEN; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MISSING_SCOPE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MISSING_SCOPE}, {@code false} otherwise. + */ + public boolean isMissingScope() { + return this._tag == Tag.MISSING_SCOPE; + } + + /** + * Returns an instance of {@code AuthError} that has its tag set to {@link + * Tag#MISSING_SCOPE}. + * + *

The access token does not have the required scope to access the + * route.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AuthError} with its tag set to {@link + * Tag#MISSING_SCOPE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AuthError missingScope(TokenScopeError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AuthError().withTagAndMissingScope(Tag.MISSING_SCOPE, value); + } + + /** + * The access token does not have the required scope to access the route. + * + *

This instance must be tagged as {@link Tag#MISSING_SCOPE}.

+ * + * @return The {@link TokenScopeError} value associated with this instance + * if {@link #isMissingScope} is {@code true}. + * + * @throws IllegalStateException If {@link #isMissingScope} is {@code + * false}. + */ + public TokenScopeError getMissingScopeValue() { + if (this._tag != Tag.MISSING_SCOPE) { + throw new IllegalStateException("Invalid tag: required Tag.MISSING_SCOPE, but was Tag." + this._tag.name()); + } + return missingScopeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ROUTE_ACCESS_DENIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ROUTE_ACCESS_DENIED}, {@code false} otherwise. + */ + public boolean isRouteAccessDenied() { + return this._tag == Tag.ROUTE_ACCESS_DENIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.missingScopeValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AuthError) { + AuthError other = (AuthError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INVALID_ACCESS_TOKEN: + return true; + case INVALID_SELECT_USER: + return true; + case INVALID_SELECT_ADMIN: + return true; + case USER_SUSPENDED: + return true; + case EXPIRED_ACCESS_TOKEN: + return true; + case MISSING_SCOPE: + return (this.missingScopeValue == other.missingScopeValue) || (this.missingScopeValue.equals(other.missingScopeValue)); + case ROUTE_ACCESS_DENIED: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AuthError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INVALID_ACCESS_TOKEN: { + g.writeString("invalid_access_token"); + break; + } + case INVALID_SELECT_USER: { + g.writeString("invalid_select_user"); + break; + } + case INVALID_SELECT_ADMIN: { + g.writeString("invalid_select_admin"); + break; + } + case USER_SUSPENDED: { + g.writeString("user_suspended"); + break; + } + case EXPIRED_ACCESS_TOKEN: { + g.writeString("expired_access_token"); + break; + } + case MISSING_SCOPE: { + g.writeStartObject(); + writeTag("missing_scope", g); + TokenScopeError.Serializer.INSTANCE.serialize(value.missingScopeValue, g, true); + g.writeEndObject(); + break; + } + case ROUTE_ACCESS_DENIED: { + g.writeString("route_access_denied"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AuthError deserialize(JsonParser p) throws IOException, JsonParseException { + AuthError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_access_token".equals(tag)) { + value = AuthError.INVALID_ACCESS_TOKEN; + } + else if ("invalid_select_user".equals(tag)) { + value = AuthError.INVALID_SELECT_USER; + } + else if ("invalid_select_admin".equals(tag)) { + value = AuthError.INVALID_SELECT_ADMIN; + } + else if ("user_suspended".equals(tag)) { + value = AuthError.USER_SUSPENDED; + } + else if ("expired_access_token".equals(tag)) { + value = AuthError.EXPIRED_ACCESS_TOKEN; + } + else if ("missing_scope".equals(tag)) { + TokenScopeError fieldValue = null; + fieldValue = TokenScopeError.Serializer.INSTANCE.deserialize(p, true); + value = AuthError.missingScope(fieldValue); + } + else if ("route_access_denied".equals(tag)) { + value = AuthError.ROUTE_ACCESS_DENIED; + } + else { + value = AuthError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/DbxAppAuthRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/DbxAppAuthRequests.java new file mode 100644 index 000000000..f314c2b1c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/DbxAppAuthRequests.java @@ -0,0 +1,69 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "auth". + */ +public class DbxAppAuthRequests { + // namespace auth (auth.stone) + + private final DbxRawClientV2 client; + + public DbxAppAuthRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/auth/token/from_oauth1 + // + + /** + * Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access + * token. + * + */ + TokenFromOAuth1Result tokenFromOauth1(TokenFromOAuth1Arg arg) throws TokenFromOAuth1ErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/auth/token/from_oauth1", + arg, + false, + TokenFromOAuth1Arg.Serializer.INSTANCE, + TokenFromOAuth1Result.Serializer.INSTANCE, + TokenFromOAuth1Error.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TokenFromOAuth1ErrorException("2/auth/token/from_oauth1", ex.getRequestId(), ex.getUserMessage(), (TokenFromOAuth1Error) ex.getErrorValue()); + } + } + + /** + * Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access + * token. + * + * @param oauth1Token The supplied OAuth 1.0 access token. Must have length + * of at least 1 and not be {@code null}. + * @param oauth1TokenSecret The token secret associated with the supplied + * access token. Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public TokenFromOAuth1Result tokenFromOauth1(String oauth1Token, String oauth1TokenSecret) throws TokenFromOAuth1ErrorException, DbxException { + TokenFromOAuth1Arg _arg = new TokenFromOAuth1Arg(oauth1Token, oauth1TokenSecret); + return tokenFromOauth1(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/DbxUserAuthRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/DbxUserAuthRequests.java new file mode 100644 index 000000000..6cd7a3a7f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/DbxUserAuthRequests.java @@ -0,0 +1,50 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "auth". + */ +public class DbxUserAuthRequests { + // namespace auth (auth.stone) + + private final DbxRawClientV2 client; + + public DbxUserAuthRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/auth/token/revoke + // + + /** + * Disables the access token used to authenticate the call. If there is a + * corresponding refresh token for the access token, this disables that + * refresh token, as well as any other access tokens for that refresh token. + */ + public void tokenRevoke() throws DbxApiException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/auth/token/revoke", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + com.dropbox.core.stone.StoneSerializers.void_(), + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"token/revoke\":" + ex.getErrorValue()); + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/InvalidAccountTypeError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/InvalidAccountTypeError.java new file mode 100644 index 000000000..7d20f8331 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/InvalidAccountTypeError.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum InvalidAccountTypeError { + // union auth.InvalidAccountTypeError (auth.stone) + /** + * Current account type doesn't have permission to access this route + * endpoint. + */ + ENDPOINT, + /** + * Current account type doesn't have permission to access this feature. + */ + FEATURE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InvalidAccountTypeError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ENDPOINT: { + g.writeString("endpoint"); + break; + } + case FEATURE: { + g.writeString("feature"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public InvalidAccountTypeError deserialize(JsonParser p) throws IOException, JsonParseException { + InvalidAccountTypeError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("endpoint".equals(tag)) { + value = InvalidAccountTypeError.ENDPOINT; + } + else if ("feature".equals(tag)) { + value = InvalidAccountTypeError.FEATURE; + } + else { + value = InvalidAccountTypeError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/PaperAccessError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/PaperAccessError.java new file mode 100644 index 000000000..519b6cd83 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/PaperAccessError.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperAccessError { + // union auth.PaperAccessError (auth.stone) + /** + * Paper is disabled. + */ + PAPER_DISABLED, + /** + * The provided user has not used Paper yet. + */ + NOT_PAPER_USER, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperAccessError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PAPER_DISABLED: { + g.writeString("paper_disabled"); + break; + } + case NOT_PAPER_USER: { + g.writeString("not_paper_user"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperAccessError deserialize(JsonParser p) throws IOException, JsonParseException { + PaperAccessError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("paper_disabled".equals(tag)) { + value = PaperAccessError.PAPER_DISABLED; + } + else if ("not_paper_user".equals(tag)) { + value = PaperAccessError.NOT_PAPER_USER; + } + else { + value = PaperAccessError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/RateLimitError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/RateLimitError.java new file mode 100644 index 000000000..09559ab49 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/RateLimitError.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Error occurred because the app is being rate limited. + */ +public class RateLimitError { + // struct auth.RateLimitError (auth.stone) + + @Nonnull + protected final RateLimitReason reason; + protected final long retryAfter; + + /** + * Error occurred because the app is being rate limited. + * + * @param reason The reason why the app is being rate limited. Must not be + * {@code null}. + * @param retryAfter The number of seconds that the app should wait before + * making another request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RateLimitError(@Nonnull RateLimitReason reason, long retryAfter) { + if (reason == null) { + throw new IllegalArgumentException("Required value for 'reason' is null"); + } + this.reason = reason; + this.retryAfter = retryAfter; + } + + /** + * Error occurred because the app is being rate limited. + * + *

The default values for unset fields will be used.

+ * + * @param reason The reason why the app is being rate limited. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RateLimitError(@Nonnull RateLimitReason reason) { + this(reason, 1L); + } + + /** + * The reason why the app is being rate limited. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public RateLimitReason getReason() { + return reason; + } + + /** + * The number of seconds that the app should wait before making another + * request. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1L. + */ + public long getRetryAfter() { + return retryAfter; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.reason, + this.retryAfter + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RateLimitError other = (RateLimitError) obj; + return ((this.reason == other.reason) || (this.reason.equals(other.reason))) + && (this.retryAfter == other.retryAfter) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RateLimitError value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("reason"); + RateLimitReason.Serializer.INSTANCE.serialize(value.reason, g); + g.writeFieldName("retry_after"); + StoneSerializers.uInt64().serialize(value.retryAfter, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RateLimitError deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RateLimitError value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + RateLimitReason f_reason = null; + Long f_retryAfter = 1L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("reason".equals(field)) { + f_reason = RateLimitReason.Serializer.INSTANCE.deserialize(p); + } + else if ("retry_after".equals(field)) { + f_retryAfter = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_reason == null) { + throw new JsonParseException(p, "Required field \"reason\" missing."); + } + value = new RateLimitError(f_reason, f_retryAfter); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/RateLimitReason.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/RateLimitReason.java new file mode 100644 index 000000000..86eb321ec --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/RateLimitReason.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum RateLimitReason { + // union auth.RateLimitReason (auth.stone) + /** + * You are making too many requests in the past few minutes. + */ + TOO_MANY_REQUESTS, + /** + * There are currently too many write operations happening in the user's + * Dropbox. + */ + TOO_MANY_WRITE_OPERATIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RateLimitReason value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TOO_MANY_REQUESTS: { + g.writeString("too_many_requests"); + break; + } + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RateLimitReason deserialize(JsonParser p) throws IOException, JsonParseException { + RateLimitReason value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("too_many_requests".equals(tag)) { + value = RateLimitReason.TOO_MANY_REQUESTS; + } + else if ("too_many_write_operations".equals(tag)) { + value = RateLimitReason.TOO_MANY_WRITE_OPERATIONS; + } + else { + value = RateLimitReason.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Arg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Arg.java new file mode 100644 index 000000000..fd1135049 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Arg.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class TokenFromOAuth1Arg { + // struct auth.TokenFromOAuth1Arg (auth.stone) + + @Nonnull + protected final String oauth1Token; + @Nonnull + protected final String oauth1TokenSecret; + + /** + * + * @param oauth1Token The supplied OAuth 1.0 access token. Must have length + * of at least 1 and not be {@code null}. + * @param oauth1TokenSecret The token secret associated with the supplied + * access token. Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TokenFromOAuth1Arg(@Nonnull String oauth1Token, @Nonnull String oauth1TokenSecret) { + if (oauth1Token == null) { + throw new IllegalArgumentException("Required value for 'oauth1Token' is null"); + } + if (oauth1Token.length() < 1) { + throw new IllegalArgumentException("String 'oauth1Token' is shorter than 1"); + } + this.oauth1Token = oauth1Token; + if (oauth1TokenSecret == null) { + throw new IllegalArgumentException("Required value for 'oauth1TokenSecret' is null"); + } + if (oauth1TokenSecret.length() < 1) { + throw new IllegalArgumentException("String 'oauth1TokenSecret' is shorter than 1"); + } + this.oauth1TokenSecret = oauth1TokenSecret; + } + + /** + * The supplied OAuth 1.0 access token. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOauth1Token() { + return oauth1Token; + } + + /** + * The token secret associated with the supplied access token. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOauth1TokenSecret() { + return oauth1TokenSecret; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.oauth1Token, + this.oauth1TokenSecret + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TokenFromOAuth1Arg other = (TokenFromOAuth1Arg) obj; + return ((this.oauth1Token == other.oauth1Token) || (this.oauth1Token.equals(other.oauth1Token))) + && ((this.oauth1TokenSecret == other.oauth1TokenSecret) || (this.oauth1TokenSecret.equals(other.oauth1TokenSecret))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TokenFromOAuth1Arg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("oauth1_token"); + StoneSerializers.string().serialize(value.oauth1Token, g); + g.writeFieldName("oauth1_token_secret"); + StoneSerializers.string().serialize(value.oauth1TokenSecret, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TokenFromOAuth1Arg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TokenFromOAuth1Arg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_oauth1Token = null; + String f_oauth1TokenSecret = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("oauth1_token".equals(field)) { + f_oauth1Token = StoneSerializers.string().deserialize(p); + } + else if ("oauth1_token_secret".equals(field)) { + f_oauth1TokenSecret = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_oauth1Token == null) { + throw new JsonParseException(p, "Required field \"oauth1_token\" missing."); + } + if (f_oauth1TokenSecret == null) { + throw new JsonParseException(p, "Required field \"oauth1_token_secret\" missing."); + } + value = new TokenFromOAuth1Arg(f_oauth1Token, f_oauth1TokenSecret); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Error.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Error.java new file mode 100644 index 000000000..d011332f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Error.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TokenFromOAuth1Error { + // union auth.TokenFromOAuth1Error (auth.stone) + /** + * Part or all of the OAuth 1.0 access token info is invalid. + */ + INVALID_OAUTH1_TOKEN_INFO, + /** + * The authorized app does not match the app associated with the supplied + * access token. + */ + APP_ID_MISMATCH, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TokenFromOAuth1Error value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_OAUTH1_TOKEN_INFO: { + g.writeString("invalid_oauth1_token_info"); + break; + } + case APP_ID_MISMATCH: { + g.writeString("app_id_mismatch"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TokenFromOAuth1Error deserialize(JsonParser p) throws IOException, JsonParseException { + TokenFromOAuth1Error value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_oauth1_token_info".equals(tag)) { + value = TokenFromOAuth1Error.INVALID_OAUTH1_TOKEN_INFO; + } + else if ("app_id_mismatch".equals(tag)) { + value = TokenFromOAuth1Error.APP_ID_MISMATCH; + } + else { + value = TokenFromOAuth1Error.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1ErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1ErrorException.java new file mode 100644 index 000000000..f920f4b8a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1ErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link TokenFromOAuth1Error} + * error. + * + *

This exception is raised by {@link + * DbxAppAuthRequests#tokenFromOauth1(String,String)}.

+ */ +public class TokenFromOAuth1ErrorException extends DbxApiException { + // exception for routes: + // 2/auth/token/from_oauth1 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxAppAuthRequests#tokenFromOauth1(String,String)}. + */ + public final TokenFromOAuth1Error errorValue; + + public TokenFromOAuth1ErrorException(String routeName, String requestId, LocalizedText userMessage, TokenFromOAuth1Error errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Result.java new file mode 100644 index 000000000..471e4c859 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1Result.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TokenFromOAuth1Result { + // struct auth.TokenFromOAuth1Result (auth.stone) + + @Nonnull + protected final String oauth2Token; + + /** + * + * @param oauth2Token The OAuth 2.0 token generated from the supplied OAuth + * 1.0 token. Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TokenFromOAuth1Result(@Nonnull String oauth2Token) { + if (oauth2Token == null) { + throw new IllegalArgumentException("Required value for 'oauth2Token' is null"); + } + if (oauth2Token.length() < 1) { + throw new IllegalArgumentException("String 'oauth2Token' is shorter than 1"); + } + this.oauth2Token = oauth2Token; + } + + /** + * The OAuth 2.0 token generated from the supplied OAuth 1.0 token. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOauth2Token() { + return oauth2Token; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.oauth2Token + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TokenFromOAuth1Result other = (TokenFromOAuth1Result) obj; + return (this.oauth2Token == other.oauth2Token) || (this.oauth2Token.equals(other.oauth2Token)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TokenFromOAuth1Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("oauth2_token"); + StoneSerializers.string().serialize(value.oauth2Token, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TokenFromOAuth1Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TokenFromOAuth1Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_oauth2Token = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("oauth2_token".equals(field)) { + f_oauth2Token = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_oauth2Token == null) { + throw new JsonParseException(p, "Required field \"oauth2_token\" missing."); + } + value = new TokenFromOAuth1Result(f_oauth2Token); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenScopeError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenScopeError.java new file mode 100644 index 000000000..4e5042833 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenScopeError.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from auth.stone */ + +package com.dropbox.core.v2.auth; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TokenScopeError { + // struct auth.TokenScopeError (auth.stone) + + @Nonnull + protected final String requiredScope; + + /** + * + * @param requiredScope The required scope to access the route. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TokenScopeError(@Nonnull String requiredScope) { + if (requiredScope == null) { + throw new IllegalArgumentException("Required value for 'requiredScope' is null"); + } + this.requiredScope = requiredScope; + } + + /** + * The required scope to access the route. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRequiredScope() { + return requiredScope; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.requiredScope + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TokenScopeError other = (TokenScopeError) obj; + return (this.requiredScope == other.requiredScope) || (this.requiredScope.equals(other.requiredScope)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TokenScopeError value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("required_scope"); + StoneSerializers.string().serialize(value.requiredScope, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TokenScopeError deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TokenScopeError value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_requiredScope = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("required_scope".equals(field)) { + f_requiredScope = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_requiredScope == null) { + throw new JsonParseException(p, "Required field \"required_scope\" missing."); + } + value = new TokenScopeError(f_requiredScope); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/package-info.java new file mode 100644 index 000000000..66dd402cc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/package-info.java @@ -0,0 +1,10 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.v2.auth.DbxAppAuthRequests}, {@link + * com.dropbox.core.v2.auth.DbxUserAuthRequests} for a list of possible requests + * for this namespace. + */ +package com.dropbox.core.v2.auth; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/DbxAppCheckRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/DbxAppCheckRequests.java new file mode 100644 index 000000000..c003821a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/DbxAppCheckRequests.java @@ -0,0 +1,102 @@ +/* DO NOT EDIT */ +/* This file was generated from check_api_v2_types.stone, check_api_v2_service.stone */ + +package com.dropbox.core.v2.check; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "check". + */ +public class DbxAppCheckRequests { + // namespace check (check_api_v2_types.stone, check_api_v2_service.stone) + + private final DbxRawClientV2 client; + + public DbxAppCheckRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/check/app + // + + /** + * This endpoint performs App Authentication, validating the supplied app + * key and secret, and returns the supplied string, to allow you to test + * your code and connection to the Dropbox API. It has no other effect. If + * you receive an HTTP 200 response with the supplied query, it indicates at + * least part of the Dropbox API infrastructure is working and that the app + * key and secret valid. + * + * @param arg Contains the arguments to be sent to the Dropbox servers. + * + * @return EchoResult contains the result returned from the Dropbox servers. + */ + EchoResult app(EchoArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/check/app", + arg, + false, + EchoArg.Serializer.INSTANCE, + EchoResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"app\":" + ex.getErrorValue()); + } + } + + /** + * This endpoint performs App Authentication, validating the supplied app + * key and secret, and returns the supplied string, to allow you to test + * your code and connection to the Dropbox API. It has no other effect. If + * you receive an HTTP 200 response with the supplied query, it indicates at + * least part of the Dropbox API infrastructure is working and that the app + * key and secret valid. + * + *

The {@code query} request parameter will default to {@code ""} (see + * {@link #app(String)}).

+ * + * @return EchoResult contains the result returned from the Dropbox servers. + */ + public EchoResult app() throws DbxApiException, DbxException { + EchoArg _arg = new EchoArg(); + return app(_arg); + } + + /** + * This endpoint performs App Authentication, validating the supplied app + * key and secret, and returns the supplied string, to allow you to test + * your code and connection to the Dropbox API. It has no other effect. If + * you receive an HTTP 200 response with the supplied query, it indicates at + * least part of the Dropbox API infrastructure is working and that the app + * key and secret valid. + * + * @param query The string that you'd like to be echoed back to you. Must + * have length of at most 500 and not be {@code null}. + * + * @return EchoResult contains the result returned from the Dropbox servers. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EchoResult app(String query) throws DbxApiException, DbxException { + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + if (query.length() > 500) { + throw new IllegalArgumentException("String 'query' is longer than 500"); + } + EchoArg _arg = new EchoArg(query); + return app(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/DbxUserCheckRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/DbxUserCheckRequests.java new file mode 100644 index 000000000..4cf74c4f1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/DbxUserCheckRequests.java @@ -0,0 +1,102 @@ +/* DO NOT EDIT */ +/* This file was generated from check_api_v2_types.stone, check_api_v2_service.stone */ + +package com.dropbox.core.v2.check; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "check". + */ +public class DbxUserCheckRequests { + // namespace check (check_api_v2_types.stone, check_api_v2_service.stone) + + private final DbxRawClientV2 client; + + public DbxUserCheckRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/check/user + // + + /** + * This endpoint performs User Authentication, validating the supplied + * access token, and returns the supplied string, to allow you to test your + * code and connection to the Dropbox API. It has no other effect. If you + * receive an HTTP 200 response with the supplied query, it indicates at + * least part of the Dropbox API infrastructure is working and that the + * access token is valid. + * + * @param arg Contains the arguments to be sent to the Dropbox servers. + * + * @return EchoResult contains the result returned from the Dropbox servers. + */ + EchoResult user(EchoArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/check/user", + arg, + false, + EchoArg.Serializer.INSTANCE, + EchoResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"user\":" + ex.getErrorValue()); + } + } + + /** + * This endpoint performs User Authentication, validating the supplied + * access token, and returns the supplied string, to allow you to test your + * code and connection to the Dropbox API. It has no other effect. If you + * receive an HTTP 200 response with the supplied query, it indicates at + * least part of the Dropbox API infrastructure is working and that the + * access token is valid. + * + *

The {@code query} request parameter will default to {@code ""} (see + * {@link #user(String)}).

+ * + * @return EchoResult contains the result returned from the Dropbox servers. + */ + public EchoResult user() throws DbxApiException, DbxException { + EchoArg _arg = new EchoArg(); + return user(_arg); + } + + /** + * This endpoint performs User Authentication, validating the supplied + * access token, and returns the supplied string, to allow you to test your + * code and connection to the Dropbox API. It has no other effect. If you + * receive an HTTP 200 response with the supplied query, it indicates at + * least part of the Dropbox API infrastructure is working and that the + * access token is valid. + * + * @param query The string that you'd like to be echoed back to you. Must + * have length of at most 500 and not be {@code null}. + * + * @return EchoResult contains the result returned from the Dropbox servers. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EchoResult user(String query) throws DbxApiException, DbxException { + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + if (query.length() > 500) { + throw new IllegalArgumentException("String 'query' is longer than 500"); + } + EchoArg _arg = new EchoArg(query); + return user(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/EchoArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/EchoArg.java new file mode 100644 index 000000000..d96da1a02 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/EchoArg.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from check_api_v2_types.stone */ + +package com.dropbox.core.v2.check; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Contains the arguments to be sent to the Dropbox servers. + */ +class EchoArg { + // struct check.EchoArg (check_api_v2_types.stone) + + @Nonnull + protected final String query; + + /** + * Contains the arguments to be sent to the Dropbox servers. + * + * @param query The string that you'd like to be echoed back to you. Must + * have length of at most 500 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EchoArg(@Nonnull String query) { + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + if (query.length() > 500) { + throw new IllegalArgumentException("String 'query' is longer than 500"); + } + this.query = query; + } + + /** + * Contains the arguments to be sent to the Dropbox servers. + * + *

The default values for unset fields will be used.

+ */ + public EchoArg() { + this(""); + } + + /** + * The string that you'd like to be echoed back to you. + * + * @return value for this field, or {@code null} if not present. Defaults to + * "". + */ + @Nonnull + public String getQuery() { + return query; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.query + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EchoArg other = (EchoArg) obj; + return (this.query == other.query) || (this.query.equals(other.query)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EchoArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("query"); + StoneSerializers.string().serialize(value.query, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EchoArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EchoArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_query = ""; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("query".equals(field)) { + f_query = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + value = new EchoArg(f_query); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/EchoResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/EchoResult.java new file mode 100644 index 000000000..ed44d7b9d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/EchoResult.java @@ -0,0 +1,159 @@ +/* DO NOT EDIT */ +/* This file was generated from check_api_v2_types.stone */ + +package com.dropbox.core.v2.check; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * EchoResult contains the result returned from the Dropbox servers. + */ +public class EchoResult { + // struct check.EchoResult (check_api_v2_types.stone) + + @Nonnull + protected final String result; + + /** + * EchoResult contains the result returned from the Dropbox servers. + * + * @param result If everything worked correctly, this would be the same as + * query. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EchoResult(@Nonnull String result) { + if (result == null) { + throw new IllegalArgumentException("Required value for 'result' is null"); + } + this.result = result; + } + + /** + * EchoResult contains the result returned from the Dropbox servers. + * + *

The default values for unset fields will be used.

+ */ + public EchoResult() { + this(""); + } + + /** + * If everything worked correctly, this would be the same as query. + * + * @return value for this field, or {@code null} if not present. Defaults to + * "". + */ + @Nonnull + public String getResult() { + return result; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.result + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EchoResult other = (EchoResult) obj; + return (this.result == other.result) || (this.result.equals(other.result)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EchoResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("result"); + StoneSerializers.string().serialize(value.result, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EchoResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EchoResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_result = ""; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("result".equals(field)) { + f_result = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + value = new EchoResult(f_result); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/package-info.java new file mode 100644 index 000000000..052aa16bf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/check/package-info.java @@ -0,0 +1,10 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.v2.check.DbxAppCheckRequests}, {@link + * com.dropbox.core.v2.check.DbxUserCheckRequests} for a list of possible + * requests for this namespace. + */ +package com.dropbox.core.v2.check; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/PathRoot.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/PathRoot.java new file mode 100644 index 000000000..3dd207439 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/PathRoot.java @@ -0,0 +1,425 @@ +/* DO NOT EDIT */ +/* This file was generated from common.stone */ + +package com.dropbox.core.v2.common; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PathRoot { + // union common.PathRoot (common.stone) + + /** + * Discriminating tag type for {@link PathRoot}. + */ + public enum Tag { + /** + * Paths are relative to the authenticating user's home namespace, + * whether or not that user belongs to a team. + */ + HOME, + /** + * Paths are relative to the authenticating user's root namespace (This + * results in {@link PathRootError#getInvalidRootValue} if the user's + * root namespace has changed.). + */ + ROOT, // String + /** + * Paths are relative to given namespace id (This results in {@link + * PathRootError#NO_PERMISSION} if you don't have access to this + * namespace.). + */ + NAMESPACE_ID, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Paths are relative to the authenticating user's home namespace, whether + * or not that user belongs to a team. + */ + public static final PathRoot HOME = new PathRoot().withTag(Tag.HOME); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PathRoot OTHER = new PathRoot().withTag(Tag.OTHER); + + private Tag _tag; + private String rootValue; + private String namespaceIdValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PathRoot() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PathRoot withTag(Tag _tag) { + PathRoot result = new PathRoot(); + result._tag = _tag; + return result; + } + + /** + * + * @param rootValue Paths are relative to the authenticating user's root + * namespace (This results in {@link PathRootError#getInvalidRootValue} + * if the user's root namespace has changed.). Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PathRoot withTagAndRoot(Tag _tag, String rootValue) { + PathRoot result = new PathRoot(); + result._tag = _tag; + result.rootValue = rootValue; + return result; + } + + /** + * + * @param namespaceIdValue Paths are relative to given namespace id (This + * results in {@link PathRootError#NO_PERMISSION} if you don't have + * access to this namespace.). Must match pattern "{@code + * [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PathRoot withTagAndNamespaceId(Tag _tag, String namespaceIdValue) { + PathRoot result = new PathRoot(); + result._tag = _tag; + result.namespaceIdValue = namespaceIdValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PathRoot}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#HOME}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#HOME}, + * {@code false} otherwise. + */ + public boolean isHome() { + return this._tag == Tag.HOME; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ROOT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ROOT}, + * {@code false} otherwise. + */ + public boolean isRoot() { + return this._tag == Tag.ROOT; + } + + /** + * Returns an instance of {@code PathRoot} that has its tag set to {@link + * Tag#ROOT}. + * + *

Paths are relative to the authenticating user's root namespace (This + * results in {@link PathRootError#getInvalidRootValue} if the user's root + * namespace has changed.).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PathRoot} with its tag set to {@link + * Tag#ROOT}. + * + * @throws IllegalArgumentException if {@code value} does not match pattern + * "{@code [-_0-9a-zA-Z:]+}" or is {@code null}. + */ + public static PathRoot root(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new PathRoot().withTagAndRoot(Tag.ROOT, value); + } + + /** + * Paths are relative to the authenticating user's root namespace (This + * results in {@link PathRootError#getInvalidRootValue} if the user's root + * namespace has changed.). + * + *

This instance must be tagged as {@link Tag#ROOT}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isRoot} is {@code true}. + * + * @throws IllegalStateException If {@link #isRoot} is {@code false}. + */ + public String getRootValue() { + if (this._tag != Tag.ROOT) { + throw new IllegalStateException("Invalid tag: required Tag.ROOT, but was Tag." + this._tag.name()); + } + return rootValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NAMESPACE_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NAMESPACE_ID}, {@code false} otherwise. + */ + public boolean isNamespaceId() { + return this._tag == Tag.NAMESPACE_ID; + } + + /** + * Returns an instance of {@code PathRoot} that has its tag set to {@link + * Tag#NAMESPACE_ID}. + * + *

Paths are relative to given namespace id (This results in {@link + * PathRootError#NO_PERMISSION} if you don't have access to this + * namespace.).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PathRoot} with its tag set to {@link + * Tag#NAMESPACE_ID}. + * + * @throws IllegalArgumentException if {@code value} does not match pattern + * "{@code [-_0-9a-zA-Z:]+}" or is {@code null}. + */ + public static PathRoot namespaceId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new PathRoot().withTagAndNamespaceId(Tag.NAMESPACE_ID, value); + } + + /** + * Paths are relative to given namespace id (This results in {@link + * PathRootError#NO_PERMISSION} if you don't have access to this + * namespace.). + * + *

This instance must be tagged as {@link Tag#NAMESPACE_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isNamespaceId} is {@code true}. + * + * @throws IllegalStateException If {@link #isNamespaceId} is {@code + * false}. + */ + public String getNamespaceIdValue() { + if (this._tag != Tag.NAMESPACE_ID) { + throw new IllegalStateException("Invalid tag: required Tag.NAMESPACE_ID, but was Tag." + this._tag.name()); + } + return namespaceIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.rootValue, + this.namespaceIdValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PathRoot) { + PathRoot other = (PathRoot) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case HOME: + return true; + case ROOT: + return (this.rootValue == other.rootValue) || (this.rootValue.equals(other.rootValue)); + case NAMESPACE_ID: + return (this.namespaceIdValue == other.namespaceIdValue) || (this.namespaceIdValue.equals(other.namespaceIdValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PathRoot value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case HOME: { + g.writeString("home"); + break; + } + case ROOT: { + g.writeStartObject(); + writeTag("root", g); + g.writeFieldName("root"); + StoneSerializers.string().serialize(value.rootValue, g); + g.writeEndObject(); + break; + } + case NAMESPACE_ID: { + g.writeStartObject(); + writeTag("namespace_id", g); + g.writeFieldName("namespace_id"); + StoneSerializers.string().serialize(value.namespaceIdValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PathRoot deserialize(JsonParser p) throws IOException, JsonParseException { + PathRoot value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("home".equals(tag)) { + value = PathRoot.HOME; + } + else if ("root".equals(tag)) { + String fieldValue = null; + expectField("root", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = PathRoot.root(fieldValue); + } + else if ("namespace_id".equals(tag)) { + String fieldValue = null; + expectField("namespace_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = PathRoot.namespaceId(fieldValue); + } + else { + value = PathRoot.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/PathRootError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/PathRootError.java new file mode 100644 index 000000000..612f1ebfb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/PathRootError.java @@ -0,0 +1,318 @@ +/* DO NOT EDIT */ +/* This file was generated from common.stone */ + +package com.dropbox.core.v2.common; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PathRootError { + // union common.PathRootError (common.stone) + + /** + * Discriminating tag type for {@link PathRootError}. + */ + public enum Tag { + /** + * The root namespace id in Dropbox-API-Path-Root header is not valid. + * The value of this error is the user's latest root info. + */ + INVALID_ROOT, // RootInfo + /** + * You don't have permission to access the namespace id in + * Dropbox-API-Path-Root header. + */ + NO_PERMISSION, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * You don't have permission to access the namespace id in + * Dropbox-API-Path-Root header. + */ + public static final PathRootError NO_PERMISSION = new PathRootError().withTag(Tag.NO_PERMISSION); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PathRootError OTHER = new PathRootError().withTag(Tag.OTHER); + + private Tag _tag; + private RootInfo invalidRootValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PathRootError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PathRootError withTag(Tag _tag) { + PathRootError result = new PathRootError(); + result._tag = _tag; + return result; + } + + /** + * + * @param invalidRootValue The root namespace id in Dropbox-API-Path-Root + * header is not valid. The value of this error is the user's latest + * root info. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PathRootError withTagAndInvalidRoot(Tag _tag, RootInfo invalidRootValue) { + PathRootError result = new PathRootError(); + result._tag = _tag; + result.invalidRootValue = invalidRootValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PathRootError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_ROOT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_ROOT}, {@code false} otherwise. + */ + public boolean isInvalidRoot() { + return this._tag == Tag.INVALID_ROOT; + } + + /** + * Returns an instance of {@code PathRootError} that has its tag set to + * {@link Tag#INVALID_ROOT}. + * + *

The root namespace id in Dropbox-API-Path-Root header is not valid. + * The value of this error is the user's latest root info.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PathRootError} with its tag set to {@link + * Tag#INVALID_ROOT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PathRootError invalidRoot(RootInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PathRootError().withTagAndInvalidRoot(Tag.INVALID_ROOT, value); + } + + /** + * The root namespace id in Dropbox-API-Path-Root header is not valid. The + * value of this error is the user's latest root info. + * + *

This instance must be tagged as {@link Tag#INVALID_ROOT}.

+ * + * @return The {@link RootInfo} value associated with this instance if + * {@link #isInvalidRoot} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidRoot} is {@code + * false}. + */ + public RootInfo getInvalidRootValue() { + if (this._tag != Tag.INVALID_ROOT) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_ROOT, but was Tag." + this._tag.name()); + } + return invalidRootValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.invalidRootValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PathRootError) { + PathRootError other = (PathRootError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INVALID_ROOT: + return (this.invalidRootValue == other.invalidRootValue) || (this.invalidRootValue.equals(other.invalidRootValue)); + case NO_PERMISSION: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PathRootError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INVALID_ROOT: { + g.writeStartObject(); + writeTag("invalid_root", g); + g.writeFieldName("invalid_root"); + RootInfo.Serializer.INSTANCE.serialize(value.invalidRootValue, g); + g.writeEndObject(); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PathRootError deserialize(JsonParser p) throws IOException, JsonParseException { + PathRootError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_root".equals(tag)) { + RootInfo fieldValue = null; + expectField("invalid_root", p); + fieldValue = RootInfo.Serializer.INSTANCE.deserialize(p); + value = PathRootError.invalidRoot(fieldValue); + } + else if ("no_permission".equals(tag)) { + value = PathRootError.NO_PERMISSION; + } + else { + value = PathRootError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/RootInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/RootInfo.java new file mode 100644 index 000000000..271b381ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/RootInfo.java @@ -0,0 +1,215 @@ +/* DO NOT EDIT */ +/* This file was generated from common.stone */ + +package com.dropbox.core.v2.common; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Information about current user's root. + */ +public class RootInfo { + // struct common.RootInfo (common.stone) + + @Nonnull + protected final String rootNamespaceId; + @Nonnull + protected final String homeNamespaceId; + + /** + * Information about current user's root. + * + * @param rootNamespaceId The namespace ID for user's root namespace. It + * will be the namespace ID of the shared team root if the user is + * member of a team with a separate team root. Otherwise it will be same + * as {@link RootInfo#getHomeNamespaceId}. Must match pattern "{@code + * [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param homeNamespaceId The namespace ID for user's home namespace. Must + * match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId) { + if (rootNamespaceId == null) { + throw new IllegalArgumentException("Required value for 'rootNamespaceId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", rootNamespaceId)) { + throw new IllegalArgumentException("String 'rootNamespaceId' does not match pattern"); + } + this.rootNamespaceId = rootNamespaceId; + if (homeNamespaceId == null) { + throw new IllegalArgumentException("Required value for 'homeNamespaceId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", homeNamespaceId)) { + throw new IllegalArgumentException("String 'homeNamespaceId' does not match pattern"); + } + this.homeNamespaceId = homeNamespaceId; + } + + /** + * The namespace ID for user's root namespace. It will be the namespace ID + * of the shared team root if the user is member of a team with a separate + * team root. Otherwise it will be same as {@link + * RootInfo#getHomeNamespaceId}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRootNamespaceId() { + return rootNamespaceId; + } + + /** + * The namespace ID for user's home namespace. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getHomeNamespaceId() { + return homeNamespaceId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.rootNamespaceId, + this.homeNamespaceId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RootInfo other = (RootInfo) obj; + return ((this.rootNamespaceId == other.rootNamespaceId) || (this.rootNamespaceId.equals(other.rootNamespaceId))) + && ((this.homeNamespaceId == other.homeNamespaceId) || (this.homeNamespaceId.equals(other.homeNamespaceId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RootInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof TeamRootInfo) { + TeamRootInfo.Serializer.INSTANCE.serialize((TeamRootInfo) value, g, collapse); + return; + } + if (value instanceof UserRootInfo) { + UserRootInfo.Serializer.INSTANCE.serialize((UserRootInfo) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("root_namespace_id"); + StoneSerializers.string().serialize(value.rootNamespaceId, g); + g.writeFieldName("home_namespace_id"); + StoneSerializers.string().serialize(value.homeNamespaceId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RootInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RootInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_rootNamespaceId = null; + String f_homeNamespaceId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("root_namespace_id".equals(field)) { + f_rootNamespaceId = StoneSerializers.string().deserialize(p); + } + else if ("home_namespace_id".equals(field)) { + f_homeNamespaceId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_rootNamespaceId == null) { + throw new JsonParseException(p, "Required field \"root_namespace_id\" missing."); + } + if (f_homeNamespaceId == null) { + throw new JsonParseException(p, "Required field \"home_namespace_id\" missing."); + } + value = new RootInfo(f_rootNamespaceId, f_homeNamespaceId); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("team".equals(tag)) { + value = TeamRootInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("user".equals(tag)) { + value = UserRootInfo.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/TeamRootInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/TeamRootInfo.java new file mode 100644 index 000000000..95e086e6b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/TeamRootInfo.java @@ -0,0 +1,211 @@ +/* DO NOT EDIT */ +/* This file was generated from common.stone */ + +package com.dropbox.core.v2.common; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Root info when user is member of a team with a separate root namespace ID. + */ +public class TeamRootInfo extends RootInfo { + // struct common.TeamRootInfo (common.stone) + + @Nonnull + protected final String homePath; + + /** + * Root info when user is member of a team with a separate root namespace + * ID. + * + * @param rootNamespaceId The namespace ID for user's root namespace. It + * will be the namespace ID of the shared team root if the user is + * member of a team with a separate team root. Otherwise it will be same + * as {@link RootInfo#getHomeNamespaceId}. Must match pattern "{@code + * [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param homeNamespaceId The namespace ID for user's home namespace. Must + * match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param homePath The path for user's home directory under the shared team + * root. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamRootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId, @Nonnull String homePath) { + super(rootNamespaceId, homeNamespaceId); + if (homePath == null) { + throw new IllegalArgumentException("Required value for 'homePath' is null"); + } + this.homePath = homePath; + } + + /** + * The namespace ID for user's root namespace. It will be the namespace ID + * of the shared team root if the user is member of a team with a separate + * team root. Otherwise it will be same as {@link + * RootInfo#getHomeNamespaceId}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRootNamespaceId() { + return rootNamespaceId; + } + + /** + * The namespace ID for user's home namespace. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getHomeNamespaceId() { + return homeNamespaceId; + } + + /** + * The path for user's home directory under the shared team root. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getHomePath() { + return homePath; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.homePath + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamRootInfo other = (TeamRootInfo) obj; + return ((this.rootNamespaceId == other.rootNamespaceId) || (this.rootNamespaceId.equals(other.rootNamespaceId))) + && ((this.homeNamespaceId == other.homeNamespaceId) || (this.homeNamespaceId.equals(other.homeNamespaceId))) + && ((this.homePath == other.homePath) || (this.homePath.equals(other.homePath))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamRootInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("team", g); + g.writeFieldName("root_namespace_id"); + StoneSerializers.string().serialize(value.rootNamespaceId, g); + g.writeFieldName("home_namespace_id"); + StoneSerializers.string().serialize(value.homeNamespaceId, g); + g.writeFieldName("home_path"); + StoneSerializers.string().serialize(value.homePath, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamRootInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamRootInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("team".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_rootNamespaceId = null; + String f_homeNamespaceId = null; + String f_homePath = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("root_namespace_id".equals(field)) { + f_rootNamespaceId = StoneSerializers.string().deserialize(p); + } + else if ("home_namespace_id".equals(field)) { + f_homeNamespaceId = StoneSerializers.string().deserialize(p); + } + else if ("home_path".equals(field)) { + f_homePath = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_rootNamespaceId == null) { + throw new JsonParseException(p, "Required field \"root_namespace_id\" missing."); + } + if (f_homeNamespaceId == null) { + throw new JsonParseException(p, "Required field \"home_namespace_id\" missing."); + } + if (f_homePath == null) { + throw new JsonParseException(p, "Required field \"home_path\" missing."); + } + value = new TeamRootInfo(f_rootNamespaceId, f_homeNamespaceId, f_homePath); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/UserRootInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/UserRootInfo.java new file mode 100644 index 000000000..e74644ba7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/UserRootInfo.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from common.stone */ + +package com.dropbox.core.v2.common; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Root info when user is not member of a team or the user is a member of a team + * and the team does not have a separate root namespace. + */ +public class UserRootInfo extends RootInfo { + // struct common.UserRootInfo (common.stone) + + + /** + * Root info when user is not member of a team or the user is a member of a + * team and the team does not have a separate root namespace. + * + * @param rootNamespaceId The namespace ID for user's root namespace. It + * will be the namespace ID of the shared team root if the user is + * member of a team with a separate team root. Otherwise it will be same + * as {@link RootInfo#getHomeNamespaceId}. Must match pattern "{@code + * [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param homeNamespaceId The namespace ID for user's home namespace. Must + * match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserRootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId) { + super(rootNamespaceId, homeNamespaceId); + } + + /** + * The namespace ID for user's root namespace. It will be the namespace ID + * of the shared team root if the user is member of a team with a separate + * team root. Otherwise it will be same as {@link + * RootInfo#getHomeNamespaceId}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRootNamespaceId() { + return rootNamespaceId; + } + + /** + * The namespace ID for user's home namespace. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getHomeNamespaceId() { + return homeNamespaceId; + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserRootInfo other = (UserRootInfo) obj; + return ((this.rootNamespaceId == other.rootNamespaceId) || (this.rootNamespaceId.equals(other.rootNamespaceId))) + && ((this.homeNamespaceId == other.homeNamespaceId) || (this.homeNamespaceId.equals(other.homeNamespaceId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserRootInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("user", g); + g.writeFieldName("root_namespace_id"); + StoneSerializers.string().serialize(value.rootNamespaceId, g); + g.writeFieldName("home_namespace_id"); + StoneSerializers.string().serialize(value.homeNamespaceId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserRootInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserRootInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("user".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_rootNamespaceId = null; + String f_homeNamespaceId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("root_namespace_id".equals(field)) { + f_rootNamespaceId = StoneSerializers.string().deserialize(p); + } + else if ("home_namespace_id".equals(field)) { + f_homeNamespaceId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_rootNamespaceId == null) { + throw new JsonParseException(p, "Required field \"root_namespace_id\" missing."); + } + if (f_homeNamespaceId == null) { + throw new JsonParseException(p, "Required field \"home_namespace_id\" missing."); + } + value = new UserRootInfo(f_rootNamespaceId, f_homeNamespaceId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/package-info.java new file mode 100644 index 000000000..b3ce9a039 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/common/package-info.java @@ -0,0 +1,7 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + */ +package com.dropbox.core.v2.common; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DbxUserContactsRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DbxUserContactsRequests.java new file mode 100644 index 000000000..9fe518d99 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DbxUserContactsRequests.java @@ -0,0 +1,88 @@ +/* DO NOT EDIT */ +/* This file was generated from contacts.stone */ + +package com.dropbox.core.v2.contacts; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "contacts". + */ +public class DbxUserContactsRequests { + // namespace contacts (contacts.stone) + + private final DbxRawClientV2 client; + + public DbxUserContactsRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/contacts/delete_manual_contacts + // + + /** + * Removes all manually added contacts. You'll still keep contacts who are + * on your team or who you imported. New contacts will be added when you + * share. + */ + public void deleteManualContacts() throws DbxApiException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/contacts/delete_manual_contacts", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + com.dropbox.core.stone.StoneSerializers.void_(), + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"delete_manual_contacts\":" + ex.getErrorValue()); + } + } + + // + // route 2/contacts/delete_manual_contacts_batch + // + + /** + * Removes manually added contacts from the given list. + * + */ + void deleteManualContactsBatch(DeleteManualContactsArg arg) throws DeleteManualContactsErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/contacts/delete_manual_contacts_batch", + arg, + false, + DeleteManualContactsArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + DeleteManualContactsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DeleteManualContactsErrorException("2/contacts/delete_manual_contacts_batch", ex.getRequestId(), ex.getUserMessage(), (DeleteManualContactsError) ex.getErrorValue()); + } + } + + /** + * Removes manually added contacts from the given list. + * + * @param emailAddresses List of manually added contacts to be deleted. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void deleteManualContactsBatch(List emailAddresses) throws DeleteManualContactsErrorException, DbxException { + DeleteManualContactsArg _arg = new DeleteManualContactsArg(emailAddresses); + deleteManualContactsBatch(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsArg.java new file mode 100644 index 000000000..04a55ea86 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsArg.java @@ -0,0 +1,160 @@ +/* DO NOT EDIT */ +/* This file was generated from contacts.stone */ + +package com.dropbox.core.v2.contacts; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class DeleteManualContactsArg { + // struct contacts.DeleteManualContactsArg (contacts.stone) + + @Nonnull + protected final List emailAddresses; + + /** + * + * @param emailAddresses List of manually added contacts to be deleted. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteManualContactsArg(@Nonnull List emailAddresses) { + if (emailAddresses == null) { + throw new IllegalArgumentException("Required value for 'emailAddresses' is null"); + } + for (String x : emailAddresses) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emailAddresses' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'emailAddresses' is longer than 255"); + } + if (!java.util.regex.Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", x)) { + throw new IllegalArgumentException("Stringan item in list 'emailAddresses' does not match pattern"); + } + } + this.emailAddresses = emailAddresses; + } + + /** + * List of manually added contacts to be deleted. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEmailAddresses() { + return emailAddresses; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.emailAddresses + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteManualContactsArg other = (DeleteManualContactsArg) obj; + return (this.emailAddresses == other.emailAddresses) || (this.emailAddresses.equals(other.emailAddresses)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteManualContactsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("email_addresses"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.emailAddresses, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteManualContactsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteManualContactsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_emailAddresses = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("email_addresses".equals(field)) { + f_emailAddresses = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_emailAddresses == null) { + throw new JsonParseException(p, "Required field \"email_addresses\" missing."); + } + value = new DeleteManualContactsArg(f_emailAddresses); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsError.java new file mode 100644 index 000000000..a95303eab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsError.java @@ -0,0 +1,302 @@ +/* DO NOT EDIT */ +/* This file was generated from contacts.stone */ + +package com.dropbox.core.v2.contacts; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class DeleteManualContactsError { + // union contacts.DeleteManualContactsError (contacts.stone) + + /** + * Discriminating tag type for {@link DeleteManualContactsError}. + */ + public enum Tag { + /** + * Can't delete contacts from this list. Make sure the list only has + * manually added contacts. The deletion was cancelled. + */ + CONTACTS_NOT_FOUND, // List + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final DeleteManualContactsError OTHER = new DeleteManualContactsError().withTag(Tag.OTHER); + + private Tag _tag; + private List contactsNotFoundValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DeleteManualContactsError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private DeleteManualContactsError withTag(Tag _tag) { + DeleteManualContactsError result = new DeleteManualContactsError(); + result._tag = _tag; + return result; + } + + /** + * + * @param contactsNotFoundValue Can't delete contacts from this list. Make + * sure the list only has manually added contacts. The deletion was + * cancelled. Must not contain a {@code null} item and not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteManualContactsError withTagAndContactsNotFound(Tag _tag, List contactsNotFoundValue) { + DeleteManualContactsError result = new DeleteManualContactsError(); + result._tag = _tag; + result.contactsNotFoundValue = contactsNotFoundValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DeleteManualContactsError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTACTS_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTACTS_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isContactsNotFound() { + return this._tag == Tag.CONTACTS_NOT_FOUND; + } + + /** + * Returns an instance of {@code DeleteManualContactsError} that has its tag + * set to {@link Tag#CONTACTS_NOT_FOUND}. + * + *

Can't delete contacts from this list. Make sure the list only has + * manually added contacts. The deletion was cancelled.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteManualContactsError} with its tag set to + * {@link Tag#CONTACTS_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static DeleteManualContactsError contactsNotFound(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list is longer than 255"); + } + if (!java.util.regex.Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", x)) { + throw new IllegalArgumentException("Stringan item in list does not match pattern"); + } + } + return new DeleteManualContactsError().withTagAndContactsNotFound(Tag.CONTACTS_NOT_FOUND, value); + } + + /** + * Can't delete contacts from this list. Make sure the list only has + * manually added contacts. The deletion was cancelled. + * + *

This instance must be tagged as {@link Tag#CONTACTS_NOT_FOUND}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isContactsNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isContactsNotFound} is {@code + * false}. + */ + public List getContactsNotFoundValue() { + if (this._tag != Tag.CONTACTS_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.CONTACTS_NOT_FOUND, but was Tag." + this._tag.name()); + } + return contactsNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.contactsNotFoundValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DeleteManualContactsError) { + DeleteManualContactsError other = (DeleteManualContactsError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case CONTACTS_NOT_FOUND: + return (this.contactsNotFoundValue == other.contactsNotFoundValue) || (this.contactsNotFoundValue.equals(other.contactsNotFoundValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteManualContactsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case CONTACTS_NOT_FOUND: { + g.writeStartObject(); + writeTag("contacts_not_found", g); + g.writeFieldName("contacts_not_found"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.contactsNotFoundValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeleteManualContactsError deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteManualContactsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("contacts_not_found".equals(tag)) { + List fieldValue = null; + expectField("contacts_not_found", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = DeleteManualContactsError.contactsNotFound(fieldValue); + } + else { + value = DeleteManualContactsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsErrorException.java new file mode 100644 index 000000000..3e40cce2a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/DeleteManualContactsErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.contacts; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * DeleteManualContactsError} error. + * + *

This exception is raised by {@link + * DbxUserContactsRequests#deleteManualContactsBatch(java.util.List)}.

+ */ +public class DeleteManualContactsErrorException extends DbxApiException { + // exception for routes: + // 2/contacts/delete_manual_contacts_batch + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserContactsRequests#deleteManualContactsBatch(java.util.List)}. + */ + public final DeleteManualContactsError errorValue; + + public DeleteManualContactsErrorException(String routeName, String requestId, LocalizedText userMessage, DeleteManualContactsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/package-info.java new file mode 100644 index 000000000..ef8dfc38b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/contacts/package-info.java @@ -0,0 +1,9 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.v2.contacts.DbxUserContactsRequests} for a list + * of possible requests for this namespace. + */ +package com.dropbox.core.v2.contacts; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesArg.java new file mode 100644 index 000000000..7c4412324 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesArg.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class AddPropertiesArg { + // struct file_properties.AddPropertiesArg (file_properties.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final List propertyGroups; + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyGroups The property groups which are to be added to a + * Dropbox file. No two groups in the input should refer to the same + * template. Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddPropertiesArg(@Nonnull String path, @Nonnull List propertyGroups) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (propertyGroups == null) { + throw new IllegalArgumentException("Required value for 'propertyGroups' is null"); + } + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + this.propertyGroups = propertyGroups; + } + + /** + * A unique identifier for the file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The property groups which are to be added to a Dropbox file. No two + * groups in the input should refer to the same template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPropertyGroups() { + return propertyGroups; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.propertyGroups + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddPropertiesArg other = (AddPropertiesArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.propertyGroups == other.propertyGroups) || (this.propertyGroups.equals(other.propertyGroups))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddPropertiesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("property_groups"); + StoneSerializers.list(PropertyGroup.Serializer.INSTANCE).serialize(value.propertyGroups, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddPropertiesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddPropertiesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + List f_propertyGroups = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("property_groups".equals(field)) { + f_propertyGroups = StoneSerializers.list(PropertyGroup.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_propertyGroups == null) { + throw new JsonParseException(p, "Required field \"property_groups\" missing."); + } + value = new AddPropertiesArg(f_path, f_propertyGroups); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesError.java new file mode 100644 index 000000000..ff5187e1b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesError.java @@ -0,0 +1,549 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class AddPropertiesError { + // union file_properties.AddPropertiesError (file_properties.stone) + + /** + * Discriminating tag type for {@link AddPropertiesError}. + */ + public enum Tag { + /** + * Template does not exist for the given identifier. + */ + TEMPLATE_NOT_FOUND, // String + /** + * You do not have permission to modify this template. + */ + RESTRICTED_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + PATH, // LookupError + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + UNSUPPORTED_FOLDER, + /** + * One or more of the supplied property field values is too large. + */ + PROPERTY_FIELD_TOO_LARGE, + /** + * One or more of the supplied property fields does not conform to the + * template specifications. + */ + DOES_NOT_FIT_TEMPLATE, + /** + * There are 2 or more property groups referring to the same templates + * in the input. + */ + DUPLICATE_PROPERTY_GROUPS, + /** + * A property group associated with this template and file already + * exists. + */ + PROPERTY_GROUP_ALREADY_EXISTS; + } + + /** + * You do not have permission to modify this template. + */ + public static final AddPropertiesError RESTRICTED_CONTENT = new AddPropertiesError().withTag(Tag.RESTRICTED_CONTENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AddPropertiesError OTHER = new AddPropertiesError().withTag(Tag.OTHER); + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + public static final AddPropertiesError UNSUPPORTED_FOLDER = new AddPropertiesError().withTag(Tag.UNSUPPORTED_FOLDER); + /** + * One or more of the supplied property field values is too large. + */ + public static final AddPropertiesError PROPERTY_FIELD_TOO_LARGE = new AddPropertiesError().withTag(Tag.PROPERTY_FIELD_TOO_LARGE); + /** + * One or more of the supplied property fields does not conform to the + * template specifications. + */ + public static final AddPropertiesError DOES_NOT_FIT_TEMPLATE = new AddPropertiesError().withTag(Tag.DOES_NOT_FIT_TEMPLATE); + /** + * There are 2 or more property groups referring to the same templates in + * the input. + */ + public static final AddPropertiesError DUPLICATE_PROPERTY_GROUPS = new AddPropertiesError().withTag(Tag.DUPLICATE_PROPERTY_GROUPS); + /** + * A property group associated with this template and file already exists. + */ + public static final AddPropertiesError PROPERTY_GROUP_ALREADY_EXISTS = new AddPropertiesError().withTag(Tag.PROPERTY_GROUP_ALREADY_EXISTS); + + private Tag _tag; + private String templateNotFoundValue; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AddPropertiesError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private AddPropertiesError withTag(Tag _tag) { + AddPropertiesError result = new AddPropertiesError(); + result._tag = _tag; + return result; + } + + /** + * + * @param templateNotFoundValue Template does not exist for the given + * identifier. Must have length of at least 1, match pattern "{@code + * (/|ptid:).*}", and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddPropertiesError withTagAndTemplateNotFound(Tag _tag, String templateNotFoundValue) { + AddPropertiesError result = new AddPropertiesError(); + result._tag = _tag; + result.templateNotFoundValue = templateNotFoundValue; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddPropertiesError withTagAndPath(Tag _tag, LookupError pathValue) { + AddPropertiesError result = new AddPropertiesError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AddPropertiesError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isTemplateNotFound() { + return this._tag == Tag.TEMPLATE_NOT_FOUND; + } + + /** + * Returns an instance of {@code AddPropertiesError} that has its tag set to + * {@link Tag#TEMPLATE_NOT_FOUND}. + * + *

Template does not exist for the given identifier.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddPropertiesError} with its tag set to {@link + * Tag#TEMPLATE_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1, + * does not match pattern "{@code (/|ptid:).*}", or is {@code null}. + */ + public static AddPropertiesError templateNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddPropertiesError().withTagAndTemplateNotFound(Tag.TEMPLATE_NOT_FOUND, value); + } + + /** + * Template does not exist for the given identifier. + * + *

This instance must be tagged as {@link Tag#TEMPLATE_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTemplateNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isTemplateNotFound} is {@code + * false}. + */ + public String getTemplateNotFoundValue() { + if (this._tag != Tag.TEMPLATE_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEMPLATE_NOT_FOUND, but was Tag." + this._tag.name()); + } + return templateNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code AddPropertiesError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddPropertiesError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AddPropertiesError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AddPropertiesError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + */ + public boolean isUnsupportedFolder() { + return this._tag == Tag.UNSUPPORTED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTY_FIELD_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTY_FIELD_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isPropertyFieldTooLarge() { + return this._tag == Tag.PROPERTY_FIELD_TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOES_NOT_FIT_TEMPLATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOES_NOT_FIT_TEMPLATE}, {@code false} otherwise. + */ + public boolean isDoesNotFitTemplate() { + return this._tag == Tag.DOES_NOT_FIT_TEMPLATE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_PROPERTY_GROUPS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_PROPERTY_GROUPS}, {@code false} otherwise. + */ + public boolean isDuplicatePropertyGroups() { + return this._tag == Tag.DUPLICATE_PROPERTY_GROUPS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTY_GROUP_ALREADY_EXISTS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTY_GROUP_ALREADY_EXISTS}, {@code false} otherwise. + */ + public boolean isPropertyGroupAlreadyExists() { + return this._tag == Tag.PROPERTY_GROUP_ALREADY_EXISTS; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.templateNotFoundValue, + this.pathValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AddPropertiesError) { + AddPropertiesError other = (AddPropertiesError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEMPLATE_NOT_FOUND: + return (this.templateNotFoundValue == other.templateNotFoundValue) || (this.templateNotFoundValue.equals(other.templateNotFoundValue)); + case RESTRICTED_CONTENT: + return true; + case OTHER: + return true; + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_FOLDER: + return true; + case PROPERTY_FIELD_TOO_LARGE: + return true; + case DOES_NOT_FIT_TEMPLATE: + return true; + case DUPLICATE_PROPERTY_GROUPS: + return true; + case PROPERTY_GROUP_ALREADY_EXISTS: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddPropertiesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEMPLATE_NOT_FOUND: { + g.writeStartObject(); + writeTag("template_not_found", g); + g.writeFieldName("template_not_found"); + StoneSerializers.string().serialize(value.templateNotFoundValue, g); + g.writeEndObject(); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_FOLDER: { + g.writeString("unsupported_folder"); + break; + } + case PROPERTY_FIELD_TOO_LARGE: { + g.writeString("property_field_too_large"); + break; + } + case DOES_NOT_FIT_TEMPLATE: { + g.writeString("does_not_fit_template"); + break; + } + case DUPLICATE_PROPERTY_GROUPS: { + g.writeString("duplicate_property_groups"); + break; + } + case PROPERTY_GROUP_ALREADY_EXISTS: { + g.writeString("property_group_already_exists"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public AddPropertiesError deserialize(JsonParser p) throws IOException, JsonParseException { + AddPropertiesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("template_not_found".equals(tag)) { + String fieldValue = null; + expectField("template_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddPropertiesError.templateNotFound(fieldValue); + } + else if ("restricted_content".equals(tag)) { + value = AddPropertiesError.RESTRICTED_CONTENT; + } + else if ("other".equals(tag)) { + value = AddPropertiesError.OTHER; + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = AddPropertiesError.path(fieldValue); + } + else if ("unsupported_folder".equals(tag)) { + value = AddPropertiesError.UNSUPPORTED_FOLDER; + } + else if ("property_field_too_large".equals(tag)) { + value = AddPropertiesError.PROPERTY_FIELD_TOO_LARGE; + } + else if ("does_not_fit_template".equals(tag)) { + value = AddPropertiesError.DOES_NOT_FIT_TEMPLATE; + } + else if ("duplicate_property_groups".equals(tag)) { + value = AddPropertiesError.DUPLICATE_PROPERTY_GROUPS; + } + else if ("property_group_already_exists".equals(tag)) { + value = AddPropertiesError.PROPERTY_GROUP_ALREADY_EXISTS; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesErrorException.java new file mode 100644 index 000000000..7fff4a4dd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddPropertiesErrorException.java @@ -0,0 +1,41 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link AddPropertiesError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilePropertiesRequests#propertiesAdd(String,java.util.List)} and + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesAdd(String,java.util.List)}. + *

+ */ +public class AddPropertiesErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/properties/add + // 2/files/properties/add + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilePropertiesRequests#propertiesAdd(String,java.util.List)} and + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesAdd(String,java.util.List)}. + */ + public final AddPropertiesError errorValue; + + public AddPropertiesErrorException(String routeName, String requestId, LocalizedText userMessage, AddPropertiesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddTemplateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddTemplateArg.java new file mode 100644 index 000000000..3f455e477 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddTemplateArg.java @@ -0,0 +1,189 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.List; + +import javax.annotation.Nonnull; + +public class AddTemplateArg extends PropertyGroupTemplate { + // struct file_properties.AddTemplateArg (file_properties.stone) + + + /** + * + * @param name Display name for the template. Template names can be up to + * 256 bytes. Must not be {@code null}. + * @param description Description for the template. Template descriptions + * can be up to 1024 bytes. Must not be {@code null}. + * @param fields Definitions of the property fields associated with this + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddTemplateArg(@Nonnull String name, @Nonnull String description, @Nonnull List fields) { + super(name, description, fields); + } + + /** + * Display name for the template. Template names can be up to 256 bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Description for the template. Template descriptions can be up to 1024 + * bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + /** + * Definitions of the property fields associated with this template. There + * can be up to 32 properties in a single template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFields() { + return fields; + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddTemplateArg other = (AddTemplateArg) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.description == other.description) || (this.description.equals(other.description))) + && ((this.fields == other.fields) || (this.fields.equals(other.fields))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddTemplateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + g.writeFieldName("fields"); + StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE).serialize(value.fields, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddTemplateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddTemplateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_description = null; + List f_fields = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else if ("fields".equals(field)) { + f_fields = StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + if (f_fields == null) { + throw new JsonParseException(p, "Required field \"fields\" missing."); + } + value = new AddTemplateArg(f_name, f_description, f_fields); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddTemplateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddTemplateResult.java new file mode 100644 index 000000000..9dd768181 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/AddTemplateResult.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class AddTemplateResult { + // struct file_properties.AddTemplateResult (file_properties.stone) + + @Nonnull + protected final String templateId; + + /** + * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddTemplateResult(@Nonnull String templateId) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + } + + /** + * An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTemplateId() { + return templateId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddTemplateResult other = (AddTemplateResult) obj; + return (this.templateId == other.templateId) || (this.templateId.equals(other.templateId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddTemplateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_id"); + StoneSerializers.string().serialize(value.templateId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddTemplateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddTemplateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_templateId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_id".equals(field)) { + f_templateId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateId == null) { + throw new JsonParseException(p, "Required field \"template_id\" missing."); + } + value = new AddTemplateResult(f_templateId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/DbxTeamFilePropertiesRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/DbxTeamFilePropertiesRequests.java new file mode 100644 index 000000000..5bdcf5abb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/DbxTeamFilePropertiesRequests.java @@ -0,0 +1,255 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "file_properties". + */ +public class DbxTeamFilePropertiesRequests { + // namespace file_properties (file_properties.stone) + + private final DbxRawClientV2 client; + + public DbxTeamFilePropertiesRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/file_properties/templates/add_for_team + // + + /** + * Add a template associated with a team. See {@link + * DbxUserFilePropertiesRequests#propertiesAdd(String,List)} to add + * properties to a file or folder. Note: this endpoint will create + * team-owned templates. + * + */ + AddTemplateResult templatesAddForTeam(AddTemplateArg arg) throws ModifyTemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/add_for_team", + arg, + false, + AddTemplateArg.Serializer.INSTANCE, + AddTemplateResult.Serializer.INSTANCE, + ModifyTemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ModifyTemplateErrorException("2/file_properties/templates/add_for_team", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); + } + } + + /** + * Add a template associated with a team. See {@link + * DbxUserFilePropertiesRequests#propertiesAdd(String,List)} to add + * properties to a file or folder. + * + *

Note: this endpoint will create team-owned templates.

+ * + * @param name Display name for the template. Template names can be up to + * 256 bytes. Must not be {@code null}. + * @param description Description for the template. Template descriptions + * can be up to 1024 bytes. Must not be {@code null}. + * @param fields Definitions of the property fields associated with this + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddTemplateResult templatesAddForTeam(String name, String description, List fields) throws ModifyTemplateErrorException, DbxException { + AddTemplateArg _arg = new AddTemplateArg(name, description, fields); + return templatesAddForTeam(_arg); + } + + // + // route 2/file_properties/templates/get_for_team + // + + /** + * Get the schema for a specified template. + * + */ + GetTemplateResult templatesGetForTeam(GetTemplateArg arg) throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/get_for_team", + arg, + false, + GetTemplateArg.Serializer.INSTANCE, + GetTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/file_properties/templates/get_for_team", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + /** + * Get the schema for a specified template. + * + * @param templateId An identifier for template added by route See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemplateResult templatesGetForTeam(String templateId) throws TemplateErrorException, DbxException { + GetTemplateArg _arg = new GetTemplateArg(templateId); + return templatesGetForTeam(_arg); + } + + // + // route 2/file_properties/templates/list_for_team + // + + /** + * Get the template identifiers for a team. To get the schema of each + * template use {@link + * DbxTeamFilePropertiesRequests#templatesGetForTeam(String)}. + */ + public ListTemplateResult templatesListForTeam() throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/list_for_team", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + ListTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/file_properties/templates/list_for_team", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + // + // route 2/file_properties/templates/remove_for_team + // + + /** + * Permanently removes the specified template created from {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)}. + * All properties associated with the template will also be removed. This + * action cannot be undone. + * + */ + void templatesRemoveForTeam(RemoveTemplateArg arg) throws TemplateErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/remove_for_team", + arg, + false, + RemoveTemplateArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/file_properties/templates/remove_for_team", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + /** + * Permanently removes the specified template created from {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)}. + * All properties associated with the template will also be removed. This + * action cannot be undone. + * + * @param templateId An identifier for a template created by {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void templatesRemoveForTeam(String templateId) throws TemplateErrorException, DbxException { + RemoveTemplateArg _arg = new RemoveTemplateArg(templateId); + templatesRemoveForTeam(_arg); + } + + // + // route 2/file_properties/templates/update_for_team + // + + /** + * Update a template associated with a team. This route can update the + * template name, the template description and add optional properties to + * templates. + * + */ + UpdateTemplateResult templatesUpdateForTeam(UpdateTemplateArg arg) throws ModifyTemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/update_for_team", + arg, + false, + UpdateTemplateArg.Serializer.INSTANCE, + UpdateTemplateResult.Serializer.INSTANCE, + ModifyTemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ModifyTemplateErrorException("2/file_properties/templates/update_for_team", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); + } + } + + /** + * Update a template associated with a team. This route can update the + * template name, the template description and add optional properties to + * templates. + * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateTemplateResult templatesUpdateForTeam(String templateId) throws ModifyTemplateErrorException, DbxException { + UpdateTemplateArg _arg = new UpdateTemplateArg(templateId); + return templatesUpdateForTeam(_arg); + } + + /** + * Update a template associated with a team. This route can update the + * template name, the template description and add optional properties to + * templates. + * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TemplatesUpdateForTeamBuilder templatesUpdateForTeamBuilder(String templateId) { + UpdateTemplateArg.Builder argBuilder_ = UpdateTemplateArg.newBuilder(templateId); + return new TemplatesUpdateForTeamBuilder(this, argBuilder_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/DbxUserFilePropertiesRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/DbxUserFilePropertiesRequests.java new file mode 100644 index 000000000..73c518814 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/DbxUserFilePropertiesRequests.java @@ -0,0 +1,584 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "file_properties". + */ +public class DbxUserFilePropertiesRequests { + // namespace file_properties (file_properties.stone) + + private final DbxRawClientV2 client; + + public DbxUserFilePropertiesRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/file_properties/properties/add + // + + /** + * Add property groups to a Dropbox file. See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} or + * {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)} to + * create new templates. + * + */ + void propertiesAdd(AddPropertiesArg arg) throws AddPropertiesErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/properties/add", + arg, + false, + AddPropertiesArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + AddPropertiesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new AddPropertiesErrorException("2/file_properties/properties/add", ex.getRequestId(), ex.getUserMessage(), (AddPropertiesError) ex.getErrorValue()); + } + } + + /** + * Add property groups to a Dropbox file. See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} or + * {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)} to + * create new templates. + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyGroups The property groups which are to be added to a + * Dropbox file. No two groups in the input should refer to the same + * template. Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void propertiesAdd(String path, List propertyGroups) throws AddPropertiesErrorException, DbxException { + AddPropertiesArg _arg = new AddPropertiesArg(path, propertyGroups); + propertiesAdd(_arg); + } + + // + // route 2/file_properties/properties/overwrite + // + + /** + * Overwrite property groups associated with a file. This endpoint should be + * used instead of {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,List)} when + * property groups are being updated via a "snapshot" instead of via a + * "delta". In other words, this endpoint will delete all omitted fields + * from a property group, whereas {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,List)} will only + * delete fields that are explicitly marked for deletion. + * + */ + void propertiesOverwrite(OverwritePropertyGroupArg arg) throws InvalidPropertyGroupErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/properties/overwrite", + arg, + false, + OverwritePropertyGroupArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + InvalidPropertyGroupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new InvalidPropertyGroupErrorException("2/file_properties/properties/overwrite", ex.getRequestId(), ex.getUserMessage(), (InvalidPropertyGroupError) ex.getErrorValue()); + } + } + + /** + * Overwrite property groups associated with a file. This endpoint should be + * used instead of {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,List)} when + * property groups are being updated via a "snapshot" instead of via a + * "delta". In other words, this endpoint will delete all omitted fields + * from a property group, whereas {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,List)} will only + * delete fields that are explicitly marked for deletion. + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyGroups The property groups "snapshot" updates to force + * apply. No two groups in the input should refer to the same template. + * Must contain at least 1 items, not contain a {@code null} item, and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void propertiesOverwrite(String path, List propertyGroups) throws InvalidPropertyGroupErrorException, DbxException { + OverwritePropertyGroupArg _arg = new OverwritePropertyGroupArg(path, propertyGroups); + propertiesOverwrite(_arg); + } + + // + // route 2/file_properties/properties/remove + // + + /** + * Permanently removes the specified property group from the file. To remove + * specific property field key value pairs, see {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,List)}. To update a + * template, see {@link + * DbxUserFilePropertiesRequests#templatesUpdateForUser(String)} or {@link + * DbxTeamFilePropertiesRequests#templatesUpdateForTeam(String)}. To remove + * a template, see {@link + * DbxUserFilePropertiesRequests#templatesRemoveForUser(String)} or {@link + * DbxTeamFilePropertiesRequests#templatesRemoveForTeam(String)}. + * + */ + void propertiesRemove(RemovePropertiesArg arg) throws RemovePropertiesErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/properties/remove", + arg, + false, + RemovePropertiesArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + RemovePropertiesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RemovePropertiesErrorException("2/file_properties/properties/remove", ex.getRequestId(), ex.getUserMessage(), (RemovePropertiesError) ex.getErrorValue()); + } + } + + /** + * Permanently removes the specified property group from the file. To remove + * specific property field key value pairs, see {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,List)}. To update a + * template, see {@link + * DbxUserFilePropertiesRequests#templatesUpdateForUser(String)} or {@link + * DbxTeamFilePropertiesRequests#templatesUpdateForTeam(String)}. To remove + * a template, see {@link + * DbxUserFilePropertiesRequests#templatesRemoveForUser(String)} or {@link + * DbxTeamFilePropertiesRequests#templatesRemoveForTeam(String)}. + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyTemplateIds A list of identifiers for a template created + * by {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void propertiesRemove(String path, List propertyTemplateIds) throws RemovePropertiesErrorException, DbxException { + RemovePropertiesArg _arg = new RemovePropertiesArg(path, propertyTemplateIds); + propertiesRemove(_arg); + } + + // + // route 2/file_properties/properties/search + // + + /** + * Search across property templates for particular property field values. + * + */ + PropertiesSearchResult propertiesSearch(PropertiesSearchArg arg) throws PropertiesSearchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/properties/search", + arg, + false, + PropertiesSearchArg.Serializer.INSTANCE, + PropertiesSearchResult.Serializer.INSTANCE, + PropertiesSearchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PropertiesSearchErrorException("2/file_properties/properties/search", ex.getRequestId(), ex.getUserMessage(), (PropertiesSearchError) ex.getErrorValue()); + } + } + + /** + * Search across property templates for particular property field values. + * + *

The {@code templateFilter} request parameter will default to {@code + * TemplateFilter.FILTER_NONE} (see {@link + * #propertiesSearch(List,TemplateFilter)}).

+ * + * @param queries Queries to search. Must contain at least 1 items, not + * contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchResult propertiesSearch(List queries) throws PropertiesSearchErrorException, DbxException { + PropertiesSearchArg _arg = new PropertiesSearchArg(queries); + return propertiesSearch(_arg); + } + + /** + * Search across property templates for particular property field values. + * + * @param queries Queries to search. Must contain at least 1 items, not + * contain a {@code null} item, and not be {@code null}. + * @param templateFilter Filter results to contain only properties + * associated with these template IDs. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchResult propertiesSearch(List queries, TemplateFilter templateFilter) throws PropertiesSearchErrorException, DbxException { + if (templateFilter == null) { + throw new IllegalArgumentException("Required value for 'templateFilter' is null"); + } + PropertiesSearchArg _arg = new PropertiesSearchArg(queries, templateFilter); + return propertiesSearch(_arg); + } + + // + // route 2/file_properties/properties/search/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserFilePropertiesRequests#propertiesSearch(List,TemplateFilter)}, use + * this to paginate through all search results. + * + */ + PropertiesSearchResult propertiesSearchContinue(PropertiesSearchContinueArg arg) throws PropertiesSearchContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/properties/search/continue", + arg, + false, + PropertiesSearchContinueArg.Serializer.INSTANCE, + PropertiesSearchResult.Serializer.INSTANCE, + PropertiesSearchContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PropertiesSearchContinueErrorException("2/file_properties/properties/search/continue", ex.getRequestId(), ex.getUserMessage(), (PropertiesSearchContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserFilePropertiesRequests#propertiesSearch(List,TemplateFilter)}, use + * this to paginate through all search results. + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserFilePropertiesRequests#propertiesSearch(List,TemplateFilter)} + * or {@link + * DbxUserFilePropertiesRequests#propertiesSearchContinue(String)}. Must + * have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchResult propertiesSearchContinue(String cursor) throws PropertiesSearchContinueErrorException, DbxException { + PropertiesSearchContinueArg _arg = new PropertiesSearchContinueArg(cursor); + return propertiesSearchContinue(_arg); + } + + // + // route 2/file_properties/properties/update + // + + /** + * Add, update or remove properties associated with the supplied file and + * templates. This endpoint should be used instead of {@link + * DbxUserFilePropertiesRequests#propertiesOverwrite(String,List)} when + * property groups are being updated via a "delta" instead of via a + * "snapshot" . In other words, this endpoint will not delete any omitted + * fields from a property group, whereas {@link + * DbxUserFilePropertiesRequests#propertiesOverwrite(String,List)} will + * delete any fields that are omitted from a property group. + * + */ + void propertiesUpdate(UpdatePropertiesArg arg) throws UpdatePropertiesErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/properties/update", + arg, + false, + UpdatePropertiesArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + UpdatePropertiesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UpdatePropertiesErrorException("2/file_properties/properties/update", ex.getRequestId(), ex.getUserMessage(), (UpdatePropertiesError) ex.getErrorValue()); + } + } + + /** + * Add, update or remove properties associated with the supplied file and + * templates. This endpoint should be used instead of {@link + * DbxUserFilePropertiesRequests#propertiesOverwrite(String,List)} when + * property groups are being updated via a "delta" instead of via a + * "snapshot" . In other words, this endpoint will not delete any omitted + * fields from a property group, whereas {@link + * DbxUserFilePropertiesRequests#propertiesOverwrite(String,List)} will + * delete any fields that are omitted from a property group. + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param updatePropertyGroups The property groups "delta" updates to + * apply. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void propertiesUpdate(String path, List updatePropertyGroups) throws UpdatePropertiesErrorException, DbxException { + UpdatePropertiesArg _arg = new UpdatePropertiesArg(path, updatePropertyGroups); + propertiesUpdate(_arg); + } + + // + // route 2/file_properties/templates/add_for_user + // + + /** + * Add a template associated with a user. See {@link + * DbxUserFilePropertiesRequests#propertiesAdd(String,List)} to add + * properties to a file. This endpoint can't be called on a team member or + * admin's behalf. + * + */ + AddTemplateResult templatesAddForUser(AddTemplateArg arg) throws ModifyTemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/add_for_user", + arg, + false, + AddTemplateArg.Serializer.INSTANCE, + AddTemplateResult.Serializer.INSTANCE, + ModifyTemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ModifyTemplateErrorException("2/file_properties/templates/add_for_user", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); + } + } + + /** + * Add a template associated with a user. See {@link + * DbxUserFilePropertiesRequests#propertiesAdd(String,List)} to add + * properties to a file. This endpoint can't be called on a team member or + * admin's behalf. + * + * @param name Display name for the template. Template names can be up to + * 256 bytes. Must not be {@code null}. + * @param description Description for the template. Template descriptions + * can be up to 1024 bytes. Must not be {@code null}. + * @param fields Definitions of the property fields associated with this + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddTemplateResult templatesAddForUser(String name, String description, List fields) throws ModifyTemplateErrorException, DbxException { + AddTemplateArg _arg = new AddTemplateArg(name, description, fields); + return templatesAddForUser(_arg); + } + + // + // route 2/file_properties/templates/get_for_user + // + + /** + * Get the schema for a specified template. This endpoint can't be called on + * a team member or admin's behalf. + * + */ + GetTemplateResult templatesGetForUser(GetTemplateArg arg) throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/get_for_user", + arg, + false, + GetTemplateArg.Serializer.INSTANCE, + GetTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/file_properties/templates/get_for_user", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + /** + * Get the schema for a specified template. This endpoint can't be called on + * a team member or admin's behalf. + * + * @param templateId An identifier for template added by route See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemplateResult templatesGetForUser(String templateId) throws TemplateErrorException, DbxException { + GetTemplateArg _arg = new GetTemplateArg(templateId); + return templatesGetForUser(_arg); + } + + // + // route 2/file_properties/templates/list_for_user + // + + /** + * Get the template identifiers for a team. To get the schema of each + * template use {@link + * DbxUserFilePropertiesRequests#templatesGetForUser(String)}. This endpoint + * can't be called on a team member or admin's behalf. + */ + public ListTemplateResult templatesListForUser() throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/list_for_user", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + ListTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/file_properties/templates/list_for_user", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + // + // route 2/file_properties/templates/remove_for_user + // + + /** + * Permanently removes the specified template created from {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)}. + * All properties associated with the template will also be removed. This + * action cannot be undone. + * + */ + void templatesRemoveForUser(RemoveTemplateArg arg) throws TemplateErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/remove_for_user", + arg, + false, + RemoveTemplateArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/file_properties/templates/remove_for_user", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + /** + * Permanently removes the specified template created from {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)}. + * All properties associated with the template will also be removed. This + * action cannot be undone. + * + * @param templateId An identifier for a template created by {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void templatesRemoveForUser(String templateId) throws TemplateErrorException, DbxException { + RemoveTemplateArg _arg = new RemoveTemplateArg(templateId); + templatesRemoveForUser(_arg); + } + + // + // route 2/file_properties/templates/update_for_user + // + + /** + * Update a template associated with a user. This route can update the + * template name, the template description and add optional properties to + * templates. This endpoint can't be called on a team member or admin's + * behalf. + * + */ + UpdateTemplateResult templatesUpdateForUser(UpdateTemplateArg arg) throws ModifyTemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_properties/templates/update_for_user", + arg, + false, + UpdateTemplateArg.Serializer.INSTANCE, + UpdateTemplateResult.Serializer.INSTANCE, + ModifyTemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ModifyTemplateErrorException("2/file_properties/templates/update_for_user", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); + } + } + + /** + * Update a template associated with a user. This route can update the + * template name, the template description and add optional properties to + * templates. This endpoint can't be called on a team member or admin's + * behalf. + * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateTemplateResult templatesUpdateForUser(String templateId) throws ModifyTemplateErrorException, DbxException { + UpdateTemplateArg _arg = new UpdateTemplateArg(templateId); + return templatesUpdateForUser(_arg); + } + + /** + * Update a template associated with a user. This route can update the + * template name, the template description and add optional properties to + * templates. This endpoint can't be called on a team member or admin's + * behalf. + * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TemplatesUpdateForUserBuilder templatesUpdateForUserBuilder(String templateId) { + UpdateTemplateArg.Builder argBuilder_ = UpdateTemplateArg.newBuilder(templateId); + return new TemplatesUpdateForUserBuilder(this, argBuilder_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/GetTemplateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/GetTemplateArg.java new file mode 100644 index 000000000..240a43f0a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/GetTemplateArg.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class GetTemplateArg { + // struct file_properties.GetTemplateArg (file_properties.stone) + + @Nonnull + protected final String templateId; + + /** + * + * @param templateId An identifier for template added by route See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemplateArg(@Nonnull String templateId) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + } + + /** + * An identifier for template added by route See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTemplateId() { + return templateId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTemplateArg other = (GetTemplateArg) obj; + return (this.templateId == other.templateId) || (this.templateId.equals(other.templateId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTemplateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_id"); + StoneSerializers.string().serialize(value.templateId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTemplateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTemplateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_templateId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_id".equals(field)) { + f_templateId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateId == null) { + throw new JsonParseException(p, "Required field \"template_id\" missing."); + } + value = new GetTemplateArg(f_templateId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/GetTemplateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/GetTemplateResult.java new file mode 100644 index 000000000..c63de38fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/GetTemplateResult.java @@ -0,0 +1,189 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GetTemplateResult extends PropertyGroupTemplate { + // struct file_properties.GetTemplateResult (file_properties.stone) + + + /** + * + * @param name Display name for the template. Template names can be up to + * 256 bytes. Must not be {@code null}. + * @param description Description for the template. Template descriptions + * can be up to 1024 bytes. Must not be {@code null}. + * @param fields Definitions of the property fields associated with this + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemplateResult(@Nonnull String name, @Nonnull String description, @Nonnull List fields) { + super(name, description, fields); + } + + /** + * Display name for the template. Template names can be up to 256 bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Description for the template. Template descriptions can be up to 1024 + * bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + /** + * Definitions of the property fields associated with this template. There + * can be up to 32 properties in a single template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFields() { + return fields; + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTemplateResult other = (GetTemplateResult) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.description == other.description) || (this.description.equals(other.description))) + && ((this.fields == other.fields) || (this.fields.equals(other.fields))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTemplateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + g.writeFieldName("fields"); + StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE).serialize(value.fields, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTemplateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTemplateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_description = null; + List f_fields = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else if ("fields".equals(field)) { + f_fields = StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + if (f_fields == null) { + throw new JsonParseException(p, "Required field \"fields\" missing."); + } + value = new GetTemplateResult(f_name, f_description, f_fields); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/InvalidPropertyGroupError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/InvalidPropertyGroupError.java new file mode 100644 index 000000000..b0f8d8e12 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/InvalidPropertyGroupError.java @@ -0,0 +1,520 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class InvalidPropertyGroupError { + // union file_properties.InvalidPropertyGroupError (file_properties.stone) + + /** + * Discriminating tag type for {@link InvalidPropertyGroupError}. + */ + public enum Tag { + /** + * Template does not exist for the given identifier. + */ + TEMPLATE_NOT_FOUND, // String + /** + * You do not have permission to modify this template. + */ + RESTRICTED_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + PATH, // LookupError + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + UNSUPPORTED_FOLDER, + /** + * One or more of the supplied property field values is too large. + */ + PROPERTY_FIELD_TOO_LARGE, + /** + * One or more of the supplied property fields does not conform to the + * template specifications. + */ + DOES_NOT_FIT_TEMPLATE, + /** + * There are 2 or more property groups referring to the same templates + * in the input. + */ + DUPLICATE_PROPERTY_GROUPS; + } + + /** + * You do not have permission to modify this template. + */ + public static final InvalidPropertyGroupError RESTRICTED_CONTENT = new InvalidPropertyGroupError().withTag(Tag.RESTRICTED_CONTENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final InvalidPropertyGroupError OTHER = new InvalidPropertyGroupError().withTag(Tag.OTHER); + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + public static final InvalidPropertyGroupError UNSUPPORTED_FOLDER = new InvalidPropertyGroupError().withTag(Tag.UNSUPPORTED_FOLDER); + /** + * One or more of the supplied property field values is too large. + */ + public static final InvalidPropertyGroupError PROPERTY_FIELD_TOO_LARGE = new InvalidPropertyGroupError().withTag(Tag.PROPERTY_FIELD_TOO_LARGE); + /** + * One or more of the supplied property fields does not conform to the + * template specifications. + */ + public static final InvalidPropertyGroupError DOES_NOT_FIT_TEMPLATE = new InvalidPropertyGroupError().withTag(Tag.DOES_NOT_FIT_TEMPLATE); + /** + * There are 2 or more property groups referring to the same templates in + * the input. + */ + public static final InvalidPropertyGroupError DUPLICATE_PROPERTY_GROUPS = new InvalidPropertyGroupError().withTag(Tag.DUPLICATE_PROPERTY_GROUPS); + + private Tag _tag; + private String templateNotFoundValue; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private InvalidPropertyGroupError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private InvalidPropertyGroupError withTag(Tag _tag) { + InvalidPropertyGroupError result = new InvalidPropertyGroupError(); + result._tag = _tag; + return result; + } + + /** + * + * @param templateNotFoundValue Template does not exist for the given + * identifier. Must have length of at least 1, match pattern "{@code + * (/|ptid:).*}", and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private InvalidPropertyGroupError withTagAndTemplateNotFound(Tag _tag, String templateNotFoundValue) { + InvalidPropertyGroupError result = new InvalidPropertyGroupError(); + result._tag = _tag; + result.templateNotFoundValue = templateNotFoundValue; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private InvalidPropertyGroupError withTagAndPath(Tag _tag, LookupError pathValue) { + InvalidPropertyGroupError result = new InvalidPropertyGroupError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code InvalidPropertyGroupError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isTemplateNotFound() { + return this._tag == Tag.TEMPLATE_NOT_FOUND; + } + + /** + * Returns an instance of {@code InvalidPropertyGroupError} that has its tag + * set to {@link Tag#TEMPLATE_NOT_FOUND}. + * + *

Template does not exist for the given identifier.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code InvalidPropertyGroupError} with its tag set to + * {@link Tag#TEMPLATE_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1, + * does not match pattern "{@code (/|ptid:).*}", or is {@code null}. + */ + public static InvalidPropertyGroupError templateNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new InvalidPropertyGroupError().withTagAndTemplateNotFound(Tag.TEMPLATE_NOT_FOUND, value); + } + + /** + * Template does not exist for the given identifier. + * + *

This instance must be tagged as {@link Tag#TEMPLATE_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTemplateNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isTemplateNotFound} is {@code + * false}. + */ + public String getTemplateNotFoundValue() { + if (this._tag != Tag.TEMPLATE_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEMPLATE_NOT_FOUND, but was Tag." + this._tag.name()); + } + return templateNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code InvalidPropertyGroupError} that has its tag + * set to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code InvalidPropertyGroupError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static InvalidPropertyGroupError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new InvalidPropertyGroupError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + */ + public boolean isUnsupportedFolder() { + return this._tag == Tag.UNSUPPORTED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTY_FIELD_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTY_FIELD_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isPropertyFieldTooLarge() { + return this._tag == Tag.PROPERTY_FIELD_TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOES_NOT_FIT_TEMPLATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOES_NOT_FIT_TEMPLATE}, {@code false} otherwise. + */ + public boolean isDoesNotFitTemplate() { + return this._tag == Tag.DOES_NOT_FIT_TEMPLATE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_PROPERTY_GROUPS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_PROPERTY_GROUPS}, {@code false} otherwise. + */ + public boolean isDuplicatePropertyGroups() { + return this._tag == Tag.DUPLICATE_PROPERTY_GROUPS; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.templateNotFoundValue, + this.pathValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof InvalidPropertyGroupError) { + InvalidPropertyGroupError other = (InvalidPropertyGroupError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEMPLATE_NOT_FOUND: + return (this.templateNotFoundValue == other.templateNotFoundValue) || (this.templateNotFoundValue.equals(other.templateNotFoundValue)); + case RESTRICTED_CONTENT: + return true; + case OTHER: + return true; + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_FOLDER: + return true; + case PROPERTY_FIELD_TOO_LARGE: + return true; + case DOES_NOT_FIT_TEMPLATE: + return true; + case DUPLICATE_PROPERTY_GROUPS: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InvalidPropertyGroupError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEMPLATE_NOT_FOUND: { + g.writeStartObject(); + writeTag("template_not_found", g); + g.writeFieldName("template_not_found"); + StoneSerializers.string().serialize(value.templateNotFoundValue, g); + g.writeEndObject(); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_FOLDER: { + g.writeString("unsupported_folder"); + break; + } + case PROPERTY_FIELD_TOO_LARGE: { + g.writeString("property_field_too_large"); + break; + } + case DOES_NOT_FIT_TEMPLATE: { + g.writeString("does_not_fit_template"); + break; + } + case DUPLICATE_PROPERTY_GROUPS: { + g.writeString("duplicate_property_groups"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public InvalidPropertyGroupError deserialize(JsonParser p) throws IOException, JsonParseException { + InvalidPropertyGroupError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("template_not_found".equals(tag)) { + String fieldValue = null; + expectField("template_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = InvalidPropertyGroupError.templateNotFound(fieldValue); + } + else if ("restricted_content".equals(tag)) { + value = InvalidPropertyGroupError.RESTRICTED_CONTENT; + } + else if ("other".equals(tag)) { + value = InvalidPropertyGroupError.OTHER; + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = InvalidPropertyGroupError.path(fieldValue); + } + else if ("unsupported_folder".equals(tag)) { + value = InvalidPropertyGroupError.UNSUPPORTED_FOLDER; + } + else if ("property_field_too_large".equals(tag)) { + value = InvalidPropertyGroupError.PROPERTY_FIELD_TOO_LARGE; + } + else if ("does_not_fit_template".equals(tag)) { + value = InvalidPropertyGroupError.DOES_NOT_FIT_TEMPLATE; + } + else if ("duplicate_property_groups".equals(tag)) { + value = InvalidPropertyGroupError.DUPLICATE_PROPERTY_GROUPS; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/InvalidPropertyGroupErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/InvalidPropertyGroupErrorException.java new file mode 100644 index 000000000..407f66ba4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/InvalidPropertyGroupErrorException.java @@ -0,0 +1,41 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * InvalidPropertyGroupError} error. + * + *

This exception is raised by {@link + * DbxUserFilePropertiesRequests#propertiesOverwrite(String,java.util.List)} and + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesOverwrite(String,java.util.List)}. + *

+ */ +public class InvalidPropertyGroupErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/properties/overwrite + // 2/files/properties/overwrite + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilePropertiesRequests#propertiesOverwrite(String,java.util.List)} + * and {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesOverwrite(String,java.util.List)}. + */ + public final InvalidPropertyGroupError errorValue; + + public InvalidPropertyGroupErrorException(String routeName, String requestId, LocalizedText userMessage, InvalidPropertyGroupError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ListTemplateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ListTemplateResult.java new file mode 100644 index 000000000..373bcf793 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ListTemplateResult.java @@ -0,0 +1,167 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class ListTemplateResult { + // struct file_properties.ListTemplateResult (file_properties.stone) + + @Nonnull + protected final List templateIds; + + /** + * + * @param templateIds List of identifiers for templates added by See + * {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListTemplateResult(@Nonnull List templateIds) { + if (templateIds == null) { + throw new IllegalArgumentException("Required value for 'templateIds' is null"); + } + for (String x : templateIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'templateIds' is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list 'templateIds' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("(/|ptid:).*", x)) { + throw new IllegalArgumentException("Stringan item in list 'templateIds' does not match pattern"); + } + } + this.templateIds = templateIds; + } + + /** + * List of identifiers for templates added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} or + * {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTemplateIds() { + return templateIds; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateIds + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListTemplateResult other = (ListTemplateResult) obj; + return (this.templateIds == other.templateIds) || (this.templateIds.equals(other.templateIds)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListTemplateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.templateIds, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListTemplateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListTemplateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_templateIds = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_ids".equals(field)) { + f_templateIds = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateIds == null) { + throw new JsonParseException(p, "Required field \"template_ids\" missing."); + } + value = new ListTemplateResult(f_templateIds); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LogicalOperator.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LogicalOperator.java new file mode 100644 index 000000000..e21bec9af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LogicalOperator.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Logical operator to join search queries together. + */ +public enum LogicalOperator { + // union file_properties.LogicalOperator (file_properties.stone) + /** + * Append a query with an "or" operator. + */ + OR_OPERATOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LogicalOperator value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case OR_OPERATOR: { + g.writeString("or_operator"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LogicalOperator deserialize(JsonParser p) throws IOException, JsonParseException { + LogicalOperator value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("or_operator".equals(tag)) { + value = LogicalOperator.OR_OPERATOR; + } + else { + value = LogicalOperator.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LookUpPropertiesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LookUpPropertiesError.java new file mode 100644 index 000000000..613bb6233 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LookUpPropertiesError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LookUpPropertiesError { + // union file_properties.LookUpPropertiesError (file_properties.stone) + /** + * No property group was found. + */ + PROPERTY_GROUP_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LookUpPropertiesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PROPERTY_GROUP_NOT_FOUND: { + g.writeString("property_group_not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LookUpPropertiesError deserialize(JsonParser p) throws IOException, JsonParseException { + LookUpPropertiesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("property_group_not_found".equals(tag)) { + value = LookUpPropertiesError.PROPERTY_GROUP_NOT_FOUND; + } + else { + value = LookUpPropertiesError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LookupError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LookupError.java new file mode 100644 index 000000000..2d30e3c5e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/LookupError.java @@ -0,0 +1,396 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class LookupError { + // union file_properties.LookupError (file_properties.stone) + + /** + * Discriminating tag type for {@link LookupError}. + */ + public enum Tag { + MALFORMED_PATH, // String + /** + * There is nothing at the given path. + */ + NOT_FOUND, + /** + * We were expecting a file, but the given path refers to something that + * isn't a file. + */ + NOT_FILE, + /** + * We were expecting a folder, but the given path refers to something + * that isn't a folder. + */ + NOT_FOLDER, + /** + * The file cannot be transferred because the content is restricted. For + * example, we might restrict a file due to legal requirements. + */ + RESTRICTED_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * There is nothing at the given path. + */ + public static final LookupError NOT_FOUND = new LookupError().withTag(Tag.NOT_FOUND); + /** + * We were expecting a file, but the given path refers to something that + * isn't a file. + */ + public static final LookupError NOT_FILE = new LookupError().withTag(Tag.NOT_FILE); + /** + * We were expecting a folder, but the given path refers to something that + * isn't a folder. + */ + public static final LookupError NOT_FOLDER = new LookupError().withTag(Tag.NOT_FOLDER); + /** + * The file cannot be transferred because the content is restricted. For + * example, we might restrict a file due to legal requirements. + */ + public static final LookupError RESTRICTED_CONTENT = new LookupError().withTag(Tag.RESTRICTED_CONTENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final LookupError OTHER = new LookupError().withTag(Tag.OTHER); + + private Tag _tag; + private String malformedPathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LookupError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private LookupError withTag(Tag _tag) { + LookupError result = new LookupError(); + result._tag = _tag; + return result; + } + + /** + * + * @param malformedPathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LookupError withTagAndMalformedPath(Tag _tag, String malformedPathValue) { + LookupError result = new LookupError(); + result._tag = _tag; + result.malformedPathValue = malformedPathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LookupError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MALFORMED_PATH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MALFORMED_PATH}, {@code false} otherwise. + */ + public boolean isMalformedPath() { + return this._tag == Tag.MALFORMED_PATH; + } + + /** + * Returns an instance of {@code LookupError} that has its tag set to {@link + * Tag#MALFORMED_PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LookupError} with its tag set to {@link + * Tag#MALFORMED_PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LookupError malformedPath(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LookupError().withTagAndMalformedPath(Tag.MALFORMED_PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#MALFORMED_PATH}. + * + * @return The {@link String} value associated with this instance if {@link + * #isMalformedPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isMalformedPath} is {@code + * false}. + */ + public String getMalformedPathValue() { + if (this._tag != Tag.MALFORMED_PATH) { + throw new IllegalStateException("Invalid tag: required Tag.MALFORMED_PATH, but was Tag." + this._tag.name()); + } + return malformedPathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FILE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FILE}, + * {@code false} otherwise. + */ + public boolean isNotFile() { + return this._tag == Tag.NOT_FILE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOLDER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_FOLDER}, {@code false} otherwise. + */ + public boolean isNotFolder() { + return this._tag == Tag.NOT_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.malformedPathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LookupError) { + LookupError other = (LookupError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case MALFORMED_PATH: + return (this.malformedPathValue == other.malformedPathValue) || (this.malformedPathValue.equals(other.malformedPathValue)); + case NOT_FOUND: + return true; + case NOT_FILE: + return true; + case NOT_FOLDER: + return true; + case RESTRICTED_CONTENT: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LookupError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case MALFORMED_PATH: { + g.writeStartObject(); + writeTag("malformed_path", g); + g.writeFieldName("malformed_path"); + StoneSerializers.string().serialize(value.malformedPathValue, g); + g.writeEndObject(); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case NOT_FILE: { + g.writeString("not_file"); + break; + } + case NOT_FOLDER: { + g.writeString("not_folder"); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LookupError deserialize(JsonParser p) throws IOException, JsonParseException { + LookupError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("malformed_path".equals(tag)) { + String fieldValue = null; + expectField("malformed_path", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = LookupError.malformedPath(fieldValue); + } + else if ("not_found".equals(tag)) { + value = LookupError.NOT_FOUND; + } + else if ("not_file".equals(tag)) { + value = LookupError.NOT_FILE; + } + else if ("not_folder".equals(tag)) { + value = LookupError.NOT_FOLDER; + } + else if ("restricted_content".equals(tag)) { + value = LookupError.RESTRICTED_CONTENT; + } + else { + value = LookupError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ModifyTemplateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ModifyTemplateError.java new file mode 100644 index 000000000..80ba84914 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ModifyTemplateError.java @@ -0,0 +1,438 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ModifyTemplateError { + // union file_properties.ModifyTemplateError (file_properties.stone) + + /** + * Discriminating tag type for {@link ModifyTemplateError}. + */ + public enum Tag { + /** + * Template does not exist for the given identifier. + */ + TEMPLATE_NOT_FOUND, // String + /** + * You do not have permission to modify this template. + */ + RESTRICTED_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * A property field key with that name already exists in the template. + */ + CONFLICTING_PROPERTY_NAMES, + /** + * There are too many properties in the changed template. The maximum + * number of properties per template is 32. + */ + TOO_MANY_PROPERTIES, + /** + * There are too many templates for the team. + */ + TOO_MANY_TEMPLATES, + /** + * The template name, description or one or more of the property field + * keys is too large. + */ + TEMPLATE_ATTRIBUTE_TOO_LARGE; + } + + /** + * You do not have permission to modify this template. + */ + public static final ModifyTemplateError RESTRICTED_CONTENT = new ModifyTemplateError().withTag(Tag.RESTRICTED_CONTENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ModifyTemplateError OTHER = new ModifyTemplateError().withTag(Tag.OTHER); + /** + * A property field key with that name already exists in the template. + */ + public static final ModifyTemplateError CONFLICTING_PROPERTY_NAMES = new ModifyTemplateError().withTag(Tag.CONFLICTING_PROPERTY_NAMES); + /** + * There are too many properties in the changed template. The maximum number + * of properties per template is 32. + */ + public static final ModifyTemplateError TOO_MANY_PROPERTIES = new ModifyTemplateError().withTag(Tag.TOO_MANY_PROPERTIES); + /** + * There are too many templates for the team. + */ + public static final ModifyTemplateError TOO_MANY_TEMPLATES = new ModifyTemplateError().withTag(Tag.TOO_MANY_TEMPLATES); + /** + * The template name, description or one or more of the property field keys + * is too large. + */ + public static final ModifyTemplateError TEMPLATE_ATTRIBUTE_TOO_LARGE = new ModifyTemplateError().withTag(Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE); + + private Tag _tag; + private String templateNotFoundValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ModifyTemplateError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ModifyTemplateError withTag(Tag _tag) { + ModifyTemplateError result = new ModifyTemplateError(); + result._tag = _tag; + return result; + } + + /** + * + * @param templateNotFoundValue Template does not exist for the given + * identifier. Must have length of at least 1, match pattern "{@code + * (/|ptid:).*}", and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ModifyTemplateError withTagAndTemplateNotFound(Tag _tag, String templateNotFoundValue) { + ModifyTemplateError result = new ModifyTemplateError(); + result._tag = _tag; + result.templateNotFoundValue = templateNotFoundValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ModifyTemplateError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isTemplateNotFound() { + return this._tag == Tag.TEMPLATE_NOT_FOUND; + } + + /** + * Returns an instance of {@code ModifyTemplateError} that has its tag set + * to {@link Tag#TEMPLATE_NOT_FOUND}. + * + *

Template does not exist for the given identifier.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ModifyTemplateError} with its tag set to + * {@link Tag#TEMPLATE_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1, + * does not match pattern "{@code (/|ptid:).*}", or is {@code null}. + */ + public static ModifyTemplateError templateNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new ModifyTemplateError().withTagAndTemplateNotFound(Tag.TEMPLATE_NOT_FOUND, value); + } + + /** + * Template does not exist for the given identifier. + * + *

This instance must be tagged as {@link Tag#TEMPLATE_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTemplateNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isTemplateNotFound} is {@code + * false}. + */ + public String getTemplateNotFoundValue() { + if (this._tag != Tag.TEMPLATE_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEMPLATE_NOT_FOUND, but was Tag." + this._tag.name()); + } + return templateNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONFLICTING_PROPERTY_NAMES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONFLICTING_PROPERTY_NAMES}, {@code false} otherwise. + */ + public boolean isConflictingPropertyNames() { + return this._tag == Tag.CONFLICTING_PROPERTY_NAMES; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_PROPERTIES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_PROPERTIES}, {@code false} otherwise. + */ + public boolean isTooManyProperties() { + return this._tag == Tag.TOO_MANY_PROPERTIES; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_TEMPLATES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_TEMPLATES}, {@code false} otherwise. + */ + public boolean isTooManyTemplates() { + return this._tag == Tag.TOO_MANY_TEMPLATES; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_ATTRIBUTE_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_ATTRIBUTE_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isTemplateAttributeTooLarge() { + return this._tag == Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.templateNotFoundValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ModifyTemplateError) { + ModifyTemplateError other = (ModifyTemplateError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEMPLATE_NOT_FOUND: + return (this.templateNotFoundValue == other.templateNotFoundValue) || (this.templateNotFoundValue.equals(other.templateNotFoundValue)); + case RESTRICTED_CONTENT: + return true; + case OTHER: + return true; + case CONFLICTING_PROPERTY_NAMES: + return true; + case TOO_MANY_PROPERTIES: + return true; + case TOO_MANY_TEMPLATES: + return true; + case TEMPLATE_ATTRIBUTE_TOO_LARGE: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ModifyTemplateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEMPLATE_NOT_FOUND: { + g.writeStartObject(); + writeTag("template_not_found", g); + g.writeFieldName("template_not_found"); + StoneSerializers.string().serialize(value.templateNotFoundValue, g); + g.writeEndObject(); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case CONFLICTING_PROPERTY_NAMES: { + g.writeString("conflicting_property_names"); + break; + } + case TOO_MANY_PROPERTIES: { + g.writeString("too_many_properties"); + break; + } + case TOO_MANY_TEMPLATES: { + g.writeString("too_many_templates"); + break; + } + case TEMPLATE_ATTRIBUTE_TOO_LARGE: { + g.writeString("template_attribute_too_large"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ModifyTemplateError deserialize(JsonParser p) throws IOException, JsonParseException { + ModifyTemplateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("template_not_found".equals(tag)) { + String fieldValue = null; + expectField("template_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = ModifyTemplateError.templateNotFound(fieldValue); + } + else if ("restricted_content".equals(tag)) { + value = ModifyTemplateError.RESTRICTED_CONTENT; + } + else if ("other".equals(tag)) { + value = ModifyTemplateError.OTHER; + } + else if ("conflicting_property_names".equals(tag)) { + value = ModifyTemplateError.CONFLICTING_PROPERTY_NAMES; + } + else if ("too_many_properties".equals(tag)) { + value = ModifyTemplateError.TOO_MANY_PROPERTIES; + } + else if ("too_many_templates".equals(tag)) { + value = ModifyTemplateError.TOO_MANY_TEMPLATES; + } + else if ("template_attribute_too_large".equals(tag)) { + value = ModifyTemplateError.TEMPLATE_ATTRIBUTE_TOO_LARGE; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ModifyTemplateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ModifyTemplateErrorException.java new file mode 100644 index 000000000..a0886439e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/ModifyTemplateErrorException.java @@ -0,0 +1,56 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ModifyTemplateError} + * error. + * + *

This exception is raised by {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}, + * {@link DbxTeamFilePropertiesRequests#templatesUpdateForTeam(String)}, {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateAdd(String,String,java.util.List)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateUpdate(String)}, + * {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)}, + * and {@link DbxUserFilePropertiesRequests#templatesUpdateForUser(String)}. + *

+ */ +public class ModifyTemplateErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/templates/add_for_team + // 2/file_properties/templates/update_for_team + // 2/team/properties/template/add + // 2/team/properties/template/update + // 2/file_properties/templates/add_for_user + // 2/file_properties/templates/update_for_user + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}, + * {@link DbxTeamFilePropertiesRequests#templatesUpdateForTeam(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateAdd(String,String,java.util.List)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateUpdate(String)}, + * {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)}, + * and {@link DbxUserFilePropertiesRequests#templatesUpdateForUser(String)}. + */ + public final ModifyTemplateError errorValue; + + public ModifyTemplateErrorException(String routeName, String requestId, LocalizedText userMessage, ModifyTemplateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg.java new file mode 100644 index 000000000..ab3ab0573 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/OverwritePropertyGroupArg.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class OverwritePropertyGroupArg { + // struct file_properties.OverwritePropertyGroupArg (file_properties.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final List propertyGroups; + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyGroups The property groups "snapshot" updates to force + * apply. No two groups in the input should refer to the same template. + * Must contain at least 1 items, not contain a {@code null} item, and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OverwritePropertyGroupArg(@Nonnull String path, @Nonnull List propertyGroups) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (propertyGroups == null) { + throw new IllegalArgumentException("Required value for 'propertyGroups' is null"); + } + if (propertyGroups.size() < 1) { + throw new IllegalArgumentException("List 'propertyGroups' has fewer than 1 items"); + } + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + this.propertyGroups = propertyGroups; + } + + /** + * A unique identifier for the file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The property groups "snapshot" updates to force apply. No two groups in + * the input should refer to the same template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPropertyGroups() { + return propertyGroups; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.propertyGroups + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OverwritePropertyGroupArg other = (OverwritePropertyGroupArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.propertyGroups == other.propertyGroups) || (this.propertyGroups.equals(other.propertyGroups))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OverwritePropertyGroupArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("property_groups"); + StoneSerializers.list(PropertyGroup.Serializer.INSTANCE).serialize(value.propertyGroups, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OverwritePropertyGroupArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OverwritePropertyGroupArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + List f_propertyGroups = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("property_groups".equals(field)) { + f_propertyGroups = StoneSerializers.list(PropertyGroup.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_propertyGroups == null) { + throw new JsonParseException(p, "Required field \"property_groups\" missing."); + } + value = new OverwritePropertyGroupArg(f_path, f_propertyGroups); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchArg.java new file mode 100644 index 000000000..80ca6abd8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchArg.java @@ -0,0 +1,201 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class PropertiesSearchArg { + // struct file_properties.PropertiesSearchArg (file_properties.stone) + + @Nonnull + protected final List queries; + @Nonnull + protected final TemplateFilter templateFilter; + + /** + * + * @param queries Queries to search. Must contain at least 1 items, not + * contain a {@code null} item, and not be {@code null}. + * @param templateFilter Filter results to contain only properties + * associated with these template IDs. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchArg(@Nonnull List queries, @Nonnull TemplateFilter templateFilter) { + if (queries == null) { + throw new IllegalArgumentException("Required value for 'queries' is null"); + } + if (queries.size() < 1) { + throw new IllegalArgumentException("List 'queries' has fewer than 1 items"); + } + for (PropertiesSearchQuery x : queries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'queries' is null"); + } + } + this.queries = queries; + if (templateFilter == null) { + throw new IllegalArgumentException("Required value for 'templateFilter' is null"); + } + this.templateFilter = templateFilter; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param queries Queries to search. Must contain at least 1 items, not + * contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchArg(@Nonnull List queries) { + this(queries, TemplateFilter.FILTER_NONE); + } + + /** + * Queries to search. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getQueries() { + return queries; + } + + /** + * Filter results to contain only properties associated with these template + * IDs. + * + * @return value for this field, or {@code null} if not present. Defaults to + * TemplateFilter.FILTER_NONE. + */ + @Nonnull + public TemplateFilter getTemplateFilter() { + return templateFilter; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.queries, + this.templateFilter + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertiesSearchArg other = (PropertiesSearchArg) obj; + return ((this.queries == other.queries) || (this.queries.equals(other.queries))) + && ((this.templateFilter == other.templateFilter) || (this.templateFilter.equals(other.templateFilter))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("queries"); + StoneSerializers.list(PropertiesSearchQuery.Serializer.INSTANCE).serialize(value.queries, g); + g.writeFieldName("template_filter"); + TemplateFilter.Serializer.INSTANCE.serialize(value.templateFilter, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertiesSearchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertiesSearchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_queries = null; + TemplateFilter f_templateFilter = TemplateFilter.FILTER_NONE; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("queries".equals(field)) { + f_queries = StoneSerializers.list(PropertiesSearchQuery.Serializer.INSTANCE).deserialize(p); + } + else if ("template_filter".equals(field)) { + f_templateFilter = TemplateFilter.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_queries == null) { + throw new JsonParseException(p, "Required field \"queries\" missing."); + } + value = new PropertiesSearchArg(f_queries, f_templateFilter); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueArg.java new file mode 100644 index 000000000..57af1572f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueArg.java @@ -0,0 +1,157 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class PropertiesSearchContinueArg { + // struct file_properties.PropertiesSearchContinueArg (file_properties.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserFilePropertiesRequests#propertiesSearch(java.util.List,TemplateFilter)} + * or {@link + * DbxUserFilePropertiesRequests#propertiesSearchContinue(String)}. Must + * have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + this.cursor = cursor; + } + + /** + * The cursor returned by your last call to {@link + * DbxUserFilePropertiesRequests#propertiesSearch(java.util.List,TemplateFilter)} + * or {@link + * DbxUserFilePropertiesRequests#propertiesSearchContinue(String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertiesSearchContinueArg other = (PropertiesSearchContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertiesSearchContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertiesSearchContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new PropertiesSearchContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueError.java new file mode 100644 index 000000000..c76e9ce32 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueError.java @@ -0,0 +1,86 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PropertiesSearchContinueError { + // union file_properties.PropertiesSearchContinueError (file_properties.stone) + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxUserFilePropertiesRequests#propertiesSearch(java.util.List,TemplateFilter)} + * to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PropertiesSearchContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + PropertiesSearchContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("reset".equals(tag)) { + value = PropertiesSearchContinueError.RESET; + } + else { + value = PropertiesSearchContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueErrorException.java new file mode 100644 index 000000000..45f868de6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * PropertiesSearchContinueError} error. + * + *

This exception is raised by {@link + * DbxUserFilePropertiesRequests#propertiesSearchContinue(String)}.

+ */ +public class PropertiesSearchContinueErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/properties/search/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilePropertiesRequests#propertiesSearchContinue(String)}. + */ + public final PropertiesSearchContinueError errorValue; + + public PropertiesSearchContinueErrorException(String routeName, String requestId, LocalizedText userMessage, PropertiesSearchContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchError.java new file mode 100644 index 000000000..bcae2d531 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchError.java @@ -0,0 +1,278 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PropertiesSearchError { + // union file_properties.PropertiesSearchError (file_properties.stone) + + /** + * Discriminating tag type for {@link PropertiesSearchError}. + */ + public enum Tag { + PROPERTY_GROUP_LOOKUP, // LookUpPropertiesError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PropertiesSearchError OTHER = new PropertiesSearchError().withTag(Tag.OTHER); + + private Tag _tag; + private LookUpPropertiesError propertyGroupLookupValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PropertiesSearchError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PropertiesSearchError withTag(Tag _tag) { + PropertiesSearchError result = new PropertiesSearchError(); + result._tag = _tag; + return result; + } + + /** + * + * @param propertyGroupLookupValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PropertiesSearchError withTagAndPropertyGroupLookup(Tag _tag, LookUpPropertiesError propertyGroupLookupValue) { + PropertiesSearchError result = new PropertiesSearchError(); + result._tag = _tag; + result.propertyGroupLookupValue = propertyGroupLookupValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PropertiesSearchError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTY_GROUP_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTY_GROUP_LOOKUP}, {@code false} otherwise. + */ + public boolean isPropertyGroupLookup() { + return this._tag == Tag.PROPERTY_GROUP_LOOKUP; + } + + /** + * Returns an instance of {@code PropertiesSearchError} that has its tag set + * to {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PropertiesSearchError} with its tag set to + * {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PropertiesSearchError propertyGroupLookup(LookUpPropertiesError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PropertiesSearchError().withTagAndPropertyGroupLookup(Tag.PROPERTY_GROUP_LOOKUP, value); + } + + /** + * This instance must be tagged as {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + * @return The {@link LookUpPropertiesError} value associated with this + * instance if {@link #isPropertyGroupLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isPropertyGroupLookup} is + * {@code false}. + */ + public LookUpPropertiesError getPropertyGroupLookupValue() { + if (this._tag != Tag.PROPERTY_GROUP_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.PROPERTY_GROUP_LOOKUP, but was Tag." + this._tag.name()); + } + return propertyGroupLookupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.propertyGroupLookupValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PropertiesSearchError) { + PropertiesSearchError other = (PropertiesSearchError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PROPERTY_GROUP_LOOKUP: + return (this.propertyGroupLookupValue == other.propertyGroupLookupValue) || (this.propertyGroupLookupValue.equals(other.propertyGroupLookupValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PROPERTY_GROUP_LOOKUP: { + g.writeStartObject(); + writeTag("property_group_lookup", g); + g.writeFieldName("property_group_lookup"); + LookUpPropertiesError.Serializer.INSTANCE.serialize(value.propertyGroupLookupValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PropertiesSearchError deserialize(JsonParser p) throws IOException, JsonParseException { + PropertiesSearchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("property_group_lookup".equals(tag)) { + LookUpPropertiesError fieldValue = null; + expectField("property_group_lookup", p); + fieldValue = LookUpPropertiesError.Serializer.INSTANCE.deserialize(p); + value = PropertiesSearchError.propertyGroupLookup(fieldValue); + } + else { + value = PropertiesSearchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchErrorException.java new file mode 100644 index 000000000..dbca6e663 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * PropertiesSearchError} error. + * + *

This exception is raised by {@link + * DbxUserFilePropertiesRequests#propertiesSearch(java.util.List,TemplateFilter)}. + *

+ */ +public class PropertiesSearchErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/properties/search + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilePropertiesRequests#propertiesSearch(java.util.List,TemplateFilter)}. + */ + public final PropertiesSearchError errorValue; + + public PropertiesSearchErrorException(String routeName, String requestId, LocalizedText userMessage, PropertiesSearchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchMatch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchMatch.java new file mode 100644 index 000000000..2d14a161f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchMatch.java @@ -0,0 +1,239 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class PropertiesSearchMatch { + // struct file_properties.PropertiesSearchMatch (file_properties.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final String path; + protected final boolean isDeleted; + @Nonnull + protected final List propertyGroups; + + /** + * + * @param id The ID for the matched file or folder. Must have length of at + * least 1 and not be {@code null}. + * @param path The path for the matched file or folder. Must not be {@code + * null}. + * @param isDeleted Whether the file or folder is deleted. + * @param propertyGroups List of custom property groups associated with the + * file. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchMatch(@Nonnull String id, @Nonnull String path, boolean isDeleted, @Nonnull List propertyGroups) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + this.id = id; + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + this.path = path; + this.isDeleted = isDeleted; + if (propertyGroups == null) { + throw new IllegalArgumentException("Required value for 'propertyGroups' is null"); + } + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + this.propertyGroups = propertyGroups; + } + + /** + * The ID for the matched file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The path for the matched file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Whether the file or folder is deleted. + * + * @return value for this field. + */ + public boolean getIsDeleted() { + return isDeleted; + } + + /** + * List of custom property groups associated with the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPropertyGroups() { + return propertyGroups; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.path, + this.isDeleted, + this.propertyGroups + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertiesSearchMatch other = (PropertiesSearchMatch) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.path == other.path) || (this.path.equals(other.path))) + && (this.isDeleted == other.isDeleted) + && ((this.propertyGroups == other.propertyGroups) || (this.propertyGroups.equals(other.propertyGroups))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchMatch value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("is_deleted"); + StoneSerializers.boolean_().serialize(value.isDeleted, g); + g.writeFieldName("property_groups"); + StoneSerializers.list(PropertyGroup.Serializer.INSTANCE).serialize(value.propertyGroups, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertiesSearchMatch deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertiesSearchMatch value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_path = null; + Boolean f_isDeleted = null; + List f_propertyGroups = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("is_deleted".equals(field)) { + f_isDeleted = StoneSerializers.boolean_().deserialize(p); + } + else if ("property_groups".equals(field)) { + f_propertyGroups = StoneSerializers.list(PropertyGroup.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_isDeleted == null) { + throw new JsonParseException(p, "Required field \"is_deleted\" missing."); + } + if (f_propertyGroups == null) { + throw new JsonParseException(p, "Required field \"property_groups\" missing."); + } + value = new PropertiesSearchMatch(f_id, f_path, f_isDeleted, f_propertyGroups); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchMode.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchMode.java new file mode 100644 index 000000000..8a2cafe97 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchMode.java @@ -0,0 +1,283 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PropertiesSearchMode { + // union file_properties.PropertiesSearchMode (file_properties.stone) + + /** + * Discriminating tag type for {@link PropertiesSearchMode}. + */ + public enum Tag { + /** + * Search for a value associated with this field name. + */ + FIELD_NAME, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PropertiesSearchMode OTHER = new PropertiesSearchMode().withTag(Tag.OTHER); + + private Tag _tag; + private String fieldNameValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PropertiesSearchMode() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PropertiesSearchMode withTag(Tag _tag) { + PropertiesSearchMode result = new PropertiesSearchMode(); + result._tag = _tag; + return result; + } + + /** + * + * @param fieldNameValue Search for a value associated with this field + * name. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PropertiesSearchMode withTagAndFieldName(Tag _tag, String fieldNameValue) { + PropertiesSearchMode result = new PropertiesSearchMode(); + result._tag = _tag; + result.fieldNameValue = fieldNameValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PropertiesSearchMode}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FIELD_NAME}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FIELD_NAME}, {@code false} otherwise. + */ + public boolean isFieldName() { + return this._tag == Tag.FIELD_NAME; + } + + /** + * Returns an instance of {@code PropertiesSearchMode} that has its tag set + * to {@link Tag#FIELD_NAME}. + * + *

Search for a value associated with this field name.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PropertiesSearchMode} with its tag set to + * {@link Tag#FIELD_NAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PropertiesSearchMode fieldName(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PropertiesSearchMode().withTagAndFieldName(Tag.FIELD_NAME, value); + } + + /** + * Search for a value associated with this field name. + * + *

This instance must be tagged as {@link Tag#FIELD_NAME}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isFieldName} is {@code true}. + * + * @throws IllegalStateException If {@link #isFieldName} is {@code false}. + */ + public String getFieldNameValue() { + if (this._tag != Tag.FIELD_NAME) { + throw new IllegalStateException("Invalid tag: required Tag.FIELD_NAME, but was Tag." + this._tag.name()); + } + return fieldNameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.fieldNameValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PropertiesSearchMode) { + PropertiesSearchMode other = (PropertiesSearchMode) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case FIELD_NAME: + return (this.fieldNameValue == other.fieldNameValue) || (this.fieldNameValue.equals(other.fieldNameValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchMode value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case FIELD_NAME: { + g.writeStartObject(); + writeTag("field_name", g); + g.writeFieldName("field_name"); + StoneSerializers.string().serialize(value.fieldNameValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PropertiesSearchMode deserialize(JsonParser p) throws IOException, JsonParseException { + PropertiesSearchMode value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("field_name".equals(tag)) { + String fieldValue = null; + expectField("field_name", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = PropertiesSearchMode.fieldName(fieldValue); + } + else { + value = PropertiesSearchMode.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchQuery.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchQuery.java new file mode 100644 index 000000000..9031aa372 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchQuery.java @@ -0,0 +1,222 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PropertiesSearchQuery { + // struct file_properties.PropertiesSearchQuery (file_properties.stone) + + @Nonnull + protected final String query; + @Nonnull + protected final PropertiesSearchMode mode; + @Nonnull + protected final LogicalOperator logicalOperator; + + /** + * + * @param query The property field value for which to search across + * templates. Must not be {@code null}. + * @param mode The mode with which to perform the search. Must not be + * {@code null}. + * @param logicalOperator The logical operator with which to append the + * query. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchQuery(@Nonnull String query, @Nonnull PropertiesSearchMode mode, @Nonnull LogicalOperator logicalOperator) { + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + this.query = query; + if (mode == null) { + throw new IllegalArgumentException("Required value for 'mode' is null"); + } + this.mode = mode; + if (logicalOperator == null) { + throw new IllegalArgumentException("Required value for 'logicalOperator' is null"); + } + this.logicalOperator = logicalOperator; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param query The property field value for which to search across + * templates. Must not be {@code null}. + * @param mode The mode with which to perform the search. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchQuery(@Nonnull String query, @Nonnull PropertiesSearchMode mode) { + this(query, mode, LogicalOperator.OR_OPERATOR); + } + + /** + * The property field value for which to search across templates. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getQuery() { + return query; + } + + /** + * The mode with which to perform the search. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PropertiesSearchMode getMode() { + return mode; + } + + /** + * The logical operator with which to append the query. + * + * @return value for this field, or {@code null} if not present. Defaults to + * LogicalOperator.OR_OPERATOR. + */ + @Nonnull + public LogicalOperator getLogicalOperator() { + return logicalOperator; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.query, + this.mode, + this.logicalOperator + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertiesSearchQuery other = (PropertiesSearchQuery) obj; + return ((this.query == other.query) || (this.query.equals(other.query))) + && ((this.mode == other.mode) || (this.mode.equals(other.mode))) + && ((this.logicalOperator == other.logicalOperator) || (this.logicalOperator.equals(other.logicalOperator))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchQuery value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("query"); + StoneSerializers.string().serialize(value.query, g); + g.writeFieldName("mode"); + PropertiesSearchMode.Serializer.INSTANCE.serialize(value.mode, g); + g.writeFieldName("logical_operator"); + LogicalOperator.Serializer.INSTANCE.serialize(value.logicalOperator, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertiesSearchQuery deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertiesSearchQuery value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_query = null; + PropertiesSearchMode f_mode = null; + LogicalOperator f_logicalOperator = LogicalOperator.OR_OPERATOR; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("query".equals(field)) { + f_query = StoneSerializers.string().deserialize(p); + } + else if ("mode".equals(field)) { + f_mode = PropertiesSearchMode.Serializer.INSTANCE.deserialize(p); + } + else if ("logical_operator".equals(field)) { + f_logicalOperator = LogicalOperator.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_query == null) { + throw new JsonParseException(p, "Required field \"query\" missing."); + } + if (f_mode == null) { + throw new JsonParseException(p, "Required field \"mode\" missing."); + } + value = new PropertiesSearchQuery(f_query, f_mode, f_logicalOperator); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchResult.java new file mode 100644 index 000000000..e15251041 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertiesSearchResult.java @@ -0,0 +1,206 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class PropertiesSearchResult { + // struct file_properties.PropertiesSearchResult (file_properties.stone) + + @Nonnull + protected final List matches; + @Nullable + protected final String cursor; + + /** + * + * @param matches A list (possibly empty) of matches for the query. Must + * not contain a {@code null} item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxUserFilePropertiesRequests#propertiesSearchContinue(String)} to + * continue to receive search results. Cursor will be null when there + * are no more results. Must have length of at least 1. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchResult(@Nonnull List matches, @Nullable String cursor) { + if (matches == null) { + throw new IllegalArgumentException("Required value for 'matches' is null"); + } + for (PropertiesSearchMatch x : matches) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'matches' is null"); + } + } + this.matches = matches; + if (cursor != null) { + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + } + this.cursor = cursor; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param matches A list (possibly empty) of matches for the query. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesSearchResult(@Nonnull List matches) { + this(matches, null); + } + + /** + * A list (possibly empty) of matches for the query. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMatches() { + return matches; + } + + /** + * Pass the cursor into {@link + * DbxUserFilePropertiesRequests#propertiesSearchContinue(String)} to + * continue to receive search results. Cursor will be null when there are no + * more results. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.matches, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertiesSearchResult other = (PropertiesSearchResult) obj; + return ((this.matches == other.matches) || (this.matches.equals(other.matches))) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertiesSearchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("matches"); + StoneSerializers.list(PropertiesSearchMatch.Serializer.INSTANCE).serialize(value.matches, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertiesSearchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertiesSearchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_matches = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("matches".equals(field)) { + f_matches = StoneSerializers.list(PropertiesSearchMatch.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_matches == null) { + throw new JsonParseException(p, "Required field \"matches\" missing."); + } + value = new PropertiesSearchResult(f_matches, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyField.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyField.java new file mode 100644 index 000000000..fe219e15e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyField.java @@ -0,0 +1,186 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Raw key/value data to be associated with a Dropbox file. Property fields are + * added to Dropbox files as a {@link PropertyGroup}. + */ +public class PropertyField { + // struct file_properties.PropertyField (file_properties.stone) + + @Nonnull + protected final String name; + @Nonnull + protected final String value; + + /** + * Raw key/value data to be associated with a Dropbox file. Property fields + * are added to Dropbox files as a {@link PropertyGroup}. + * + * @param name Key of the property field associated with a file and + * template. Keys can be up to 256 bytes. Must not be {@code null}. + * @param value Value of the property field associated with a file and + * template. Values can be up to 1024 bytes. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertyField(@Nonnull String name, @Nonnull String value) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (value == null) { + throw new IllegalArgumentException("Required value for 'value' is null"); + } + this.value = value; + } + + /** + * Key of the property field associated with a file and template. Keys can + * be up to 256 bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Value of the property field associated with a file and template. Values + * can be up to 1024 bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getValue() { + return value; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.value + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertyField other = (PropertyField) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.value == other.value) || (this.value.equals(other.value))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertyField value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("value"); + StoneSerializers.string().serialize(value.value, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertyField deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertyField value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_value = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("value".equals(field)) { + f_value = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_value == null) { + throw new JsonParseException(p, "Required field \"value\" missing."); + } + value = new PropertyField(f_name, f_value); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyFieldTemplate.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyFieldTemplate.java new file mode 100644 index 000000000..dcbea56e1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyFieldTemplate.java @@ -0,0 +1,217 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Defines how a single property field may be structured. Used exclusively by + * {@link PropertyGroupTemplate}. + */ +public class PropertyFieldTemplate { + // struct file_properties.PropertyFieldTemplate (file_properties.stone) + + @Nonnull + protected final String name; + @Nonnull + protected final String description; + @Nonnull + protected final PropertyType type; + + /** + * Defines how a single property field may be structured. Used exclusively + * by {@link PropertyGroupTemplate}. + * + * @param name Key of the property field being described. Property field + * keys can be up to 256 bytes. Must not be {@code null}. + * @param description Description of the property field. Property field + * descriptions can be up to 1024 bytes. Must not be {@code null}. + * @param type Data type of the value of this property field. This type + * will be enforced upon property creation and modifications. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertyFieldTemplate(@Nonnull String name, @Nonnull String description, @Nonnull PropertyType type) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + if (type == null) { + throw new IllegalArgumentException("Required value for 'type' is null"); + } + this.type = type; + } + + /** + * Key of the property field being described. Property field keys can be up + * to 256 bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Description of the property field. Property field descriptions can be up + * to 1024 bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + /** + * Data type of the value of this property field. This type will be enforced + * upon property creation and modifications. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PropertyType getType() { + return type; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.description, + this.type + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertyFieldTemplate other = (PropertyFieldTemplate) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.description == other.description) || (this.description.equals(other.description))) + && ((this.type == other.type) || (this.type.equals(other.type))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertyFieldTemplate value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + g.writeFieldName("type"); + PropertyType.Serializer.INSTANCE.serialize(value.type, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertyFieldTemplate deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertyFieldTemplate value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_description = null; + PropertyType f_type = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else if ("type".equals(field)) { + f_type = PropertyType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + if (f_type == null) { + throw new JsonParseException(p, "Required field \"type\" missing."); + } + value = new PropertyFieldTemplate(f_name, f_description, f_type); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroup.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroup.java new file mode 100644 index 000000000..6e4b17463 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroup.java @@ -0,0 +1,204 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * A subset of the property fields described by the corresponding {@link + * PropertyGroupTemplate}. Properties are always added to a Dropbox file as a + * {@link PropertyGroup}. The possible key names and value types in this group + * are defined by the corresponding {@link PropertyGroupTemplate}. + */ +public class PropertyGroup { + // struct file_properties.PropertyGroup (file_properties.stone) + + @Nonnull + protected final String templateId; + @Nonnull + protected final List fields; + + /** + * A subset of the property fields described by the corresponding {@link + * PropertyGroupTemplate}. Properties are always added to a Dropbox file as + * a {@link PropertyGroup}. The possible key names and value types in this + * group are defined by the corresponding {@link PropertyGroupTemplate}. + * + * @param templateId A unique identifier for the associated template. Must + * have length of at least 1, match pattern "{@code (/|ptid:).*}", and + * not be {@code null}. + * @param fields The actual properties associated with the template. There + * can be up to 32 property types per template. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertyGroup(@Nonnull String templateId, @Nonnull List fields) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + if (fields == null) { + throw new IllegalArgumentException("Required value for 'fields' is null"); + } + for (PropertyField x : fields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fields' is null"); + } + } + this.fields = fields; + } + + /** + * A unique identifier for the associated template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTemplateId() { + return templateId; + } + + /** + * The actual properties associated with the template. There can be up to 32 + * property types per template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFields() { + return fields; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateId, + this.fields + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertyGroup other = (PropertyGroup) obj; + return ((this.templateId == other.templateId) || (this.templateId.equals(other.templateId))) + && ((this.fields == other.fields) || (this.fields.equals(other.fields))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertyGroup value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_id"); + StoneSerializers.string().serialize(value.templateId, g); + g.writeFieldName("fields"); + StoneSerializers.list(PropertyField.Serializer.INSTANCE).serialize(value.fields, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertyGroup deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertyGroup value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_templateId = null; + List f_fields = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_id".equals(field)) { + f_templateId = StoneSerializers.string().deserialize(p); + } + else if ("fields".equals(field)) { + f_fields = StoneSerializers.list(PropertyField.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateId == null) { + throw new JsonParseException(p, "Required field \"template_id\" missing."); + } + if (f_fields == null) { + throw new JsonParseException(p, "Required field \"fields\" missing."); + } + value = new PropertyGroup(f_templateId, f_fields); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroupTemplate.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroupTemplate.java new file mode 100644 index 000000000..c4febd3e7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroupTemplate.java @@ -0,0 +1,220 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Defines how a property group may be structured. + */ +public class PropertyGroupTemplate { + // struct file_properties.PropertyGroupTemplate (file_properties.stone) + + @Nonnull + protected final String name; + @Nonnull + protected final String description; + @Nonnull + protected final List fields; + + /** + * Defines how a property group may be structured. + * + * @param name Display name for the template. Template names can be up to + * 256 bytes. Must not be {@code null}. + * @param description Description for the template. Template descriptions + * can be up to 1024 bytes. Must not be {@code null}. + * @param fields Definitions of the property fields associated with this + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertyGroupTemplate(@Nonnull String name, @Nonnull String description, @Nonnull List fields) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + if (fields == null) { + throw new IllegalArgumentException("Required value for 'fields' is null"); + } + for (PropertyFieldTemplate x : fields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fields' is null"); + } + } + this.fields = fields; + } + + /** + * Display name for the template. Template names can be up to 256 bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Description for the template. Template descriptions can be up to 1024 + * bytes. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + /** + * Definitions of the property fields associated with this template. There + * can be up to 32 properties in a single template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFields() { + return fields; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.description, + this.fields + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertyGroupTemplate other = (PropertyGroupTemplate) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.description == other.description) || (this.description.equals(other.description))) + && ((this.fields == other.fields) || (this.fields.equals(other.fields))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertyGroupTemplate value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + g.writeFieldName("fields"); + StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE).serialize(value.fields, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertyGroupTemplate deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertyGroupTemplate value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_description = null; + List f_fields = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else if ("fields".equals(field)) { + f_fields = StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + if (f_fields == null) { + throw new JsonParseException(p, "Required field \"fields\" missing."); + } + value = new PropertyGroupTemplate(f_name, f_description, f_fields); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroupUpdate.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroupUpdate.java new file mode 100644 index 000000000..bf0a88162 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyGroupUpdate.java @@ -0,0 +1,344 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class PropertyGroupUpdate { + // struct file_properties.PropertyGroupUpdate (file_properties.stone) + + @Nonnull + protected final String templateId; + @Nullable + protected final List addOrUpdateFields; + @Nullable + protected final List removeFields; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param templateId A unique identifier for a property template. Must have + * length of at least 1, match pattern "{@code (/|ptid:).*}", and not be + * {@code null}. + * @param addOrUpdateFields Property fields to update. If the property + * field already exists, it is updated. If the property field doesn't + * exist, the property group is added. Must not contain a {@code null} + * item. + * @param removeFields Property fields to remove (by name), provided they + * exist. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertyGroupUpdate(@Nonnull String templateId, @Nullable List addOrUpdateFields, @Nullable List removeFields) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + if (addOrUpdateFields != null) { + for (PropertyField x : addOrUpdateFields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'addOrUpdateFields' is null"); + } + } + } + this.addOrUpdateFields = addOrUpdateFields; + if (removeFields != null) { + for (String x : removeFields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'removeFields' is null"); + } + } + } + this.removeFields = removeFields; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param templateId A unique identifier for a property template. Must have + * length of at least 1, match pattern "{@code (/|ptid:).*}", and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertyGroupUpdate(@Nonnull String templateId) { + this(templateId, null, null); + } + + /** + * A unique identifier for a property template. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTemplateId() { + return templateId; + } + + /** + * Property fields to update. If the property field already exists, it is + * updated. If the property field doesn't exist, the property group is + * added. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getAddOrUpdateFields() { + return addOrUpdateFields; + } + + /** + * Property fields to remove (by name), provided they exist. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getRemoveFields() { + return removeFields; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param templateId A unique identifier for a property template. Must have + * length of at least 1, match pattern "{@code (/|ptid:).*}", and not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String templateId) { + return new Builder(templateId); + } + + /** + * Builder for {@link PropertyGroupUpdate}. + */ + public static class Builder { + protected final String templateId; + + protected List addOrUpdateFields; + protected List removeFields; + + protected Builder(String templateId) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + this.addOrUpdateFields = null; + this.removeFields = null; + } + + /** + * Set value for optional field. + * + * @param addOrUpdateFields Property fields to update. If the property + * field already exists, it is updated. If the property field + * doesn't exist, the property group is added. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAddOrUpdateFields(List addOrUpdateFields) { + if (addOrUpdateFields != null) { + for (PropertyField x : addOrUpdateFields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'addOrUpdateFields' is null"); + } + } + } + this.addOrUpdateFields = addOrUpdateFields; + return this; + } + + /** + * Set value for optional field. + * + * @param removeFields Property fields to remove (by name), provided + * they exist. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withRemoveFields(List removeFields) { + if (removeFields != null) { + for (String x : removeFields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'removeFields' is null"); + } + } + } + this.removeFields = removeFields; + return this; + } + + /** + * Builds an instance of {@link PropertyGroupUpdate} configured with + * this builder's values + * + * @return new instance of {@link PropertyGroupUpdate} + */ + public PropertyGroupUpdate build() { + return new PropertyGroupUpdate(templateId, addOrUpdateFields, removeFields); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateId, + this.addOrUpdateFields, + this.removeFields + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PropertyGroupUpdate other = (PropertyGroupUpdate) obj; + return ((this.templateId == other.templateId) || (this.templateId.equals(other.templateId))) + && ((this.addOrUpdateFields == other.addOrUpdateFields) || (this.addOrUpdateFields != null && this.addOrUpdateFields.equals(other.addOrUpdateFields))) + && ((this.removeFields == other.removeFields) || (this.removeFields != null && this.removeFields.equals(other.removeFields))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertyGroupUpdate value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_id"); + StoneSerializers.string().serialize(value.templateId, g); + if (value.addOrUpdateFields != null) { + g.writeFieldName("add_or_update_fields"); + StoneSerializers.nullable(StoneSerializers.list(PropertyField.Serializer.INSTANCE)).serialize(value.addOrUpdateFields, g); + } + if (value.removeFields != null) { + g.writeFieldName("remove_fields"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.removeFields, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PropertyGroupUpdate deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PropertyGroupUpdate value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_templateId = null; + List f_addOrUpdateFields = null; + List f_removeFields = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_id".equals(field)) { + f_templateId = StoneSerializers.string().deserialize(p); + } + else if ("add_or_update_fields".equals(field)) { + f_addOrUpdateFields = StoneSerializers.nullable(StoneSerializers.list(PropertyField.Serializer.INSTANCE)).deserialize(p); + } + else if ("remove_fields".equals(field)) { + f_removeFields = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateId == null) { + throw new JsonParseException(p, "Required field \"template_id\" missing."); + } + value = new PropertyGroupUpdate(f_templateId, f_addOrUpdateFields, f_removeFields); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyType.java new file mode 100644 index 000000000..7834c862a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/PropertyType.java @@ -0,0 +1,88 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Data type of the given property field added. + */ +public enum PropertyType { + // union file_properties.PropertyType (file_properties.stone) + /** + * The associated property field will be of type string. Unicode is + * supported. + */ + STRING, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PropertyType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case STRING: { + g.writeString("string"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PropertyType deserialize(JsonParser p) throws IOException, JsonParseException { + PropertyType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("string".equals(tag)) { + value = PropertyType.STRING; + } + else { + value = PropertyType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesArg.java new file mode 100644 index 000000000..bf518cdfb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesArg.java @@ -0,0 +1,202 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class RemovePropertiesArg { + // struct file_properties.RemovePropertiesArg (file_properties.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final List propertyTemplateIds; + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyTemplateIds A list of identifiers for a template created + * by {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RemovePropertiesArg(@Nonnull String path, @Nonnull List propertyTemplateIds) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (propertyTemplateIds == null) { + throw new IllegalArgumentException("Required value for 'propertyTemplateIds' is null"); + } + for (String x : propertyTemplateIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyTemplateIds' is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list 'propertyTemplateIds' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", x)) { + throw new IllegalArgumentException("Stringan item in list 'propertyTemplateIds' does not match pattern"); + } + } + this.propertyTemplateIds = propertyTemplateIds; + } + + /** + * A unique identifier for the file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * A list of identifiers for a template created by {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} or + * {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPropertyTemplateIds() { + return propertyTemplateIds; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.propertyTemplateIds + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RemovePropertiesArg other = (RemovePropertiesArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.propertyTemplateIds == other.propertyTemplateIds) || (this.propertyTemplateIds.equals(other.propertyTemplateIds))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemovePropertiesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("property_template_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.propertyTemplateIds, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RemovePropertiesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RemovePropertiesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + List f_propertyTemplateIds = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("property_template_ids".equals(field)) { + f_propertyTemplateIds = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_propertyTemplateIds == null) { + throw new JsonParseException(p, "Required field \"property_template_ids\" missing."); + } + value = new RemovePropertiesArg(f_path, f_propertyTemplateIds); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesError.java new file mode 100644 index 000000000..e4b9e52e0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesError.java @@ -0,0 +1,513 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class RemovePropertiesError { + // union file_properties.RemovePropertiesError (file_properties.stone) + + /** + * Discriminating tag type for {@link RemovePropertiesError}. + */ + public enum Tag { + /** + * Template does not exist for the given identifier. + */ + TEMPLATE_NOT_FOUND, // String + /** + * You do not have permission to modify this template. + */ + RESTRICTED_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + PATH, // LookupError + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + UNSUPPORTED_FOLDER, + PROPERTY_GROUP_LOOKUP; // LookUpPropertiesError + } + + /** + * You do not have permission to modify this template. + */ + public static final RemovePropertiesError RESTRICTED_CONTENT = new RemovePropertiesError().withTag(Tag.RESTRICTED_CONTENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RemovePropertiesError OTHER = new RemovePropertiesError().withTag(Tag.OTHER); + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + public static final RemovePropertiesError UNSUPPORTED_FOLDER = new RemovePropertiesError().withTag(Tag.UNSUPPORTED_FOLDER); + + private Tag _tag; + private String templateNotFoundValue; + private LookupError pathValue; + private LookUpPropertiesError propertyGroupLookupValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RemovePropertiesError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RemovePropertiesError withTag(Tag _tag) { + RemovePropertiesError result = new RemovePropertiesError(); + result._tag = _tag; + return result; + } + + /** + * + * @param templateNotFoundValue Template does not exist for the given + * identifier. Must have length of at least 1, match pattern "{@code + * (/|ptid:).*}", and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemovePropertiesError withTagAndTemplateNotFound(Tag _tag, String templateNotFoundValue) { + RemovePropertiesError result = new RemovePropertiesError(); + result._tag = _tag; + result.templateNotFoundValue = templateNotFoundValue; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemovePropertiesError withTagAndPath(Tag _tag, LookupError pathValue) { + RemovePropertiesError result = new RemovePropertiesError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param propertyGroupLookupValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemovePropertiesError withTagAndPropertyGroupLookup(Tag _tag, LookUpPropertiesError propertyGroupLookupValue) { + RemovePropertiesError result = new RemovePropertiesError(); + result._tag = _tag; + result.propertyGroupLookupValue = propertyGroupLookupValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RemovePropertiesError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isTemplateNotFound() { + return this._tag == Tag.TEMPLATE_NOT_FOUND; + } + + /** + * Returns an instance of {@code RemovePropertiesError} that has its tag set + * to {@link Tag#TEMPLATE_NOT_FOUND}. + * + *

Template does not exist for the given identifier.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemovePropertiesError} with its tag set to + * {@link Tag#TEMPLATE_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1, + * does not match pattern "{@code (/|ptid:).*}", or is {@code null}. + */ + public static RemovePropertiesError templateNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new RemovePropertiesError().withTagAndTemplateNotFound(Tag.TEMPLATE_NOT_FOUND, value); + } + + /** + * Template does not exist for the given identifier. + * + *

This instance must be tagged as {@link Tag#TEMPLATE_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTemplateNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isTemplateNotFound} is {@code + * false}. + */ + public String getTemplateNotFoundValue() { + if (this._tag != Tag.TEMPLATE_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEMPLATE_NOT_FOUND, but was Tag." + this._tag.name()); + } + return templateNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code RemovePropertiesError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemovePropertiesError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemovePropertiesError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemovePropertiesError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + */ + public boolean isUnsupportedFolder() { + return this._tag == Tag.UNSUPPORTED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTY_GROUP_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTY_GROUP_LOOKUP}, {@code false} otherwise. + */ + public boolean isPropertyGroupLookup() { + return this._tag == Tag.PROPERTY_GROUP_LOOKUP; + } + + /** + * Returns an instance of {@code RemovePropertiesError} that has its tag set + * to {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemovePropertiesError} with its tag set to + * {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemovePropertiesError propertyGroupLookup(LookUpPropertiesError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemovePropertiesError().withTagAndPropertyGroupLookup(Tag.PROPERTY_GROUP_LOOKUP, value); + } + + /** + * This instance must be tagged as {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + * @return The {@link LookUpPropertiesError} value associated with this + * instance if {@link #isPropertyGroupLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isPropertyGroupLookup} is + * {@code false}. + */ + public LookUpPropertiesError getPropertyGroupLookupValue() { + if (this._tag != Tag.PROPERTY_GROUP_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.PROPERTY_GROUP_LOOKUP, but was Tag." + this._tag.name()); + } + return propertyGroupLookupValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.templateNotFoundValue, + this.pathValue, + this.propertyGroupLookupValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RemovePropertiesError) { + RemovePropertiesError other = (RemovePropertiesError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEMPLATE_NOT_FOUND: + return (this.templateNotFoundValue == other.templateNotFoundValue) || (this.templateNotFoundValue.equals(other.templateNotFoundValue)); + case RESTRICTED_CONTENT: + return true; + case OTHER: + return true; + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_FOLDER: + return true; + case PROPERTY_GROUP_LOOKUP: + return (this.propertyGroupLookupValue == other.propertyGroupLookupValue) || (this.propertyGroupLookupValue.equals(other.propertyGroupLookupValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemovePropertiesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEMPLATE_NOT_FOUND: { + g.writeStartObject(); + writeTag("template_not_found", g); + g.writeFieldName("template_not_found"); + StoneSerializers.string().serialize(value.templateNotFoundValue, g); + g.writeEndObject(); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_FOLDER: { + g.writeString("unsupported_folder"); + break; + } + case PROPERTY_GROUP_LOOKUP: { + g.writeStartObject(); + writeTag("property_group_lookup", g); + g.writeFieldName("property_group_lookup"); + LookUpPropertiesError.Serializer.INSTANCE.serialize(value.propertyGroupLookupValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RemovePropertiesError deserialize(JsonParser p) throws IOException, JsonParseException { + RemovePropertiesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("template_not_found".equals(tag)) { + String fieldValue = null; + expectField("template_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = RemovePropertiesError.templateNotFound(fieldValue); + } + else if ("restricted_content".equals(tag)) { + value = RemovePropertiesError.RESTRICTED_CONTENT; + } + else if ("other".equals(tag)) { + value = RemovePropertiesError.OTHER; + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = RemovePropertiesError.path(fieldValue); + } + else if ("unsupported_folder".equals(tag)) { + value = RemovePropertiesError.UNSUPPORTED_FOLDER; + } + else if ("property_group_lookup".equals(tag)) { + LookUpPropertiesError fieldValue = null; + expectField("property_group_lookup", p); + fieldValue = LookUpPropertiesError.Serializer.INSTANCE.deserialize(p); + value = RemovePropertiesError.propertyGroupLookup(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesErrorException.java new file mode 100644 index 000000000..0d756ac27 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemovePropertiesErrorException.java @@ -0,0 +1,41 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RemovePropertiesError} error. + * + *

This exception is raised by {@link + * DbxUserFilePropertiesRequests#propertiesRemove(String,java.util.List)} and + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesRemove(String,java.util.List)}. + *

+ */ +public class RemovePropertiesErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/properties/remove + // 2/files/properties/remove + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilePropertiesRequests#propertiesRemove(String,java.util.List)} + * and {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesRemove(String,java.util.List)}. + */ + public final RemovePropertiesError errorValue; + + public RemovePropertiesErrorException(String routeName, String requestId, LocalizedText userMessage, RemovePropertiesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemoveTemplateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemoveTemplateArg.java new file mode 100644 index 000000000..63d8db49b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/RemoveTemplateArg.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class RemoveTemplateArg { + // struct file_properties.RemoveTemplateArg (file_properties.stone) + + @Nonnull + protected final String templateId; + + /** + * + * @param templateId An identifier for a template created by {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RemoveTemplateArg(@Nonnull String templateId) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + } + + /** + * An identifier for a template created by {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTemplateId() { + return templateId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RemoveTemplateArg other = (RemoveTemplateArg) obj; + return (this.templateId == other.templateId) || (this.templateId.equals(other.templateId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveTemplateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_id"); + StoneSerializers.string().serialize(value.templateId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RemoveTemplateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RemoveTemplateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_templateId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_id".equals(field)) { + f_templateId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateId == null) { + throw new JsonParseException(p, "Required field \"template_id\" missing."); + } + value = new RemoveTemplateArg(f_templateId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateError.java new file mode 100644 index 000000000..d7f44605e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateError.java @@ -0,0 +1,321 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TemplateError { + // union file_properties.TemplateError (file_properties.stone) + + /** + * Discriminating tag type for {@link TemplateError}. + */ + public enum Tag { + /** + * Template does not exist for the given identifier. + */ + TEMPLATE_NOT_FOUND, // String + /** + * You do not have permission to modify this template. + */ + RESTRICTED_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * You do not have permission to modify this template. + */ + public static final TemplateError RESTRICTED_CONTENT = new TemplateError().withTag(Tag.RESTRICTED_CONTENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TemplateError OTHER = new TemplateError().withTag(Tag.OTHER); + + private Tag _tag; + private String templateNotFoundValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TemplateError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TemplateError withTag(Tag _tag) { + TemplateError result = new TemplateError(); + result._tag = _tag; + return result; + } + + /** + * + * @param templateNotFoundValue Template does not exist for the given + * identifier. Must have length of at least 1, match pattern "{@code + * (/|ptid:).*}", and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TemplateError withTagAndTemplateNotFound(Tag _tag, String templateNotFoundValue) { + TemplateError result = new TemplateError(); + result._tag = _tag; + result.templateNotFoundValue = templateNotFoundValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TemplateError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isTemplateNotFound() { + return this._tag == Tag.TEMPLATE_NOT_FOUND; + } + + /** + * Returns an instance of {@code TemplateError} that has its tag set to + * {@link Tag#TEMPLATE_NOT_FOUND}. + * + *

Template does not exist for the given identifier.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TemplateError} with its tag set to {@link + * Tag#TEMPLATE_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1, + * does not match pattern "{@code (/|ptid:).*}", or is {@code null}. + */ + public static TemplateError templateNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new TemplateError().withTagAndTemplateNotFound(Tag.TEMPLATE_NOT_FOUND, value); + } + + /** + * Template does not exist for the given identifier. + * + *

This instance must be tagged as {@link Tag#TEMPLATE_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTemplateNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isTemplateNotFound} is {@code + * false}. + */ + public String getTemplateNotFoundValue() { + if (this._tag != Tag.TEMPLATE_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEMPLATE_NOT_FOUND, but was Tag." + this._tag.name()); + } + return templateNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.templateNotFoundValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TemplateError) { + TemplateError other = (TemplateError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEMPLATE_NOT_FOUND: + return (this.templateNotFoundValue == other.templateNotFoundValue) || (this.templateNotFoundValue.equals(other.templateNotFoundValue)); + case RESTRICTED_CONTENT: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TemplateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEMPLATE_NOT_FOUND: { + g.writeStartObject(); + writeTag("template_not_found", g); + g.writeFieldName("template_not_found"); + StoneSerializers.string().serialize(value.templateNotFoundValue, g); + g.writeEndObject(); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TemplateError deserialize(JsonParser p) throws IOException, JsonParseException { + TemplateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("template_not_found".equals(tag)) { + String fieldValue = null; + expectField("template_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = TemplateError.templateNotFound(fieldValue); + } + else if ("restricted_content".equals(tag)) { + value = TemplateError.RESTRICTED_CONTENT; + } + else { + value = TemplateError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateErrorException.java new file mode 100644 index 000000000..006097b76 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateErrorException.java @@ -0,0 +1,64 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link TemplateError} error. + * + *

This exception is raised by {@link + * DbxTeamFilePropertiesRequests#templatesGetForTeam(String)}, {@link + * DbxTeamFilePropertiesRequests#templatesListForTeam}, {@link + * DbxTeamFilePropertiesRequests#templatesRemoveForTeam(String)}, {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateGet(String)}, + * {@link com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateList}, + * {@link DbxUserFilePropertiesRequests#templatesGetForUser(String)}, {@link + * DbxUserFilePropertiesRequests#templatesListForUser}, {@link + * DbxUserFilePropertiesRequests#templatesRemoveForUser(String)}, {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesTemplateGet(String)}, + * and {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesTemplateList}.

+ */ +public class TemplateErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/templates/get_for_team + // 2/file_properties/templates/list_for_team + // 2/file_properties/templates/remove_for_team + // 2/team/properties/template/get + // 2/team/properties/template/list + // 2/file_properties/templates/get_for_user + // 2/file_properties/templates/list_for_user + // 2/file_properties/templates/remove_for_user + // 2/files/properties/template/get + // 2/files/properties/template/list + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamFilePropertiesRequests#templatesGetForTeam(String)}, {@link + * DbxTeamFilePropertiesRequests#templatesListForTeam}, {@link + * DbxTeamFilePropertiesRequests#templatesRemoveForTeam(String)}, {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateGet(String)}, + * {@link + * com.dropbox.core.v2.team.DbxTeamTeamRequests#propertiesTemplateList}, + * {@link DbxUserFilePropertiesRequests#templatesGetForUser(String)}, {@link + * DbxUserFilePropertiesRequests#templatesListForUser}, {@link + * DbxUserFilePropertiesRequests#templatesRemoveForUser(String)}, {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesTemplateGet(String)}, + * and {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesTemplateList}. + */ + public final TemplateError errorValue; + + public TemplateErrorException(String routeName, String requestId, LocalizedText userMessage, TemplateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateFilter.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateFilter.java new file mode 100644 index 000000000..d5c23efdb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateFilter.java @@ -0,0 +1,335 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TemplateFilter { + // union file_properties.TemplateFilter (file_properties.stone) + + /** + * Discriminating tag type for {@link TemplateFilter}. + */ + public enum Tag { + /** + * Only templates with an ID in the supplied list will be returned (a + * subset of templates will be returned). + */ + FILTER_SOME, // List + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * No templates will be filtered from the result (all templates will be + * returned). + */ + FILTER_NONE; + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TemplateFilter OTHER = new TemplateFilter().withTag(Tag.OTHER); + /** + * No templates will be filtered from the result (all templates will be + * returned). + */ + public static final TemplateFilter FILTER_NONE = new TemplateFilter().withTag(Tag.FILTER_NONE); + + private Tag _tag; + private List filterSomeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TemplateFilter() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TemplateFilter withTag(Tag _tag) { + TemplateFilter result = new TemplateFilter(); + result._tag = _tag; + return result; + } + + /** + * + * @param filterSomeValue Only templates with an ID in the supplied list + * will be returned (a subset of templates will be returned). Must + * contain at least 1 items, not contain a {@code null} item, and not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TemplateFilter withTagAndFilterSome(Tag _tag, List filterSomeValue) { + TemplateFilter result = new TemplateFilter(); + result._tag = _tag; + result.filterSomeValue = filterSomeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TemplateFilter}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILTER_SOME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILTER_SOME}, {@code false} otherwise. + */ + public boolean isFilterSome() { + return this._tag == Tag.FILTER_SOME; + } + + /** + * Returns an instance of {@code TemplateFilter} that has its tag set to + * {@link Tag#FILTER_SOME}. + * + *

Only templates with an ID in the supplied list will be returned (a + * subset of templates will be returned).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TemplateFilter} with its tag set to {@link + * Tag#FILTER_SOME}. + * + * @throws IllegalArgumentException if {@code value} has fewer than 1 + * items, contains a {@code null} item, or is {@code null}. + */ + public static TemplateFilter filterSome(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.size() < 1) { + throw new IllegalArgumentException("List has fewer than 1 items"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("(/|ptid:).*", x)) { + throw new IllegalArgumentException("Stringan item in list does not match pattern"); + } + } + return new TemplateFilter().withTagAndFilterSome(Tag.FILTER_SOME, value); + } + + /** + * Only templates with an ID in the supplied list will be returned (a subset + * of templates will be returned). + * + *

This instance must be tagged as {@link Tag#FILTER_SOME}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isFilterSome} is {@code true}. + * + * @throws IllegalStateException If {@link #isFilterSome} is {@code false}. + */ + public List getFilterSomeValue() { + if (this._tag != Tag.FILTER_SOME) { + throw new IllegalStateException("Invalid tag: required Tag.FILTER_SOME, but was Tag." + this._tag.name()); + } + return filterSomeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILTER_NONE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILTER_NONE}, {@code false} otherwise. + */ + public boolean isFilterNone() { + return this._tag == Tag.FILTER_NONE; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.filterSomeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TemplateFilter) { + TemplateFilter other = (TemplateFilter) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case FILTER_SOME: + return (this.filterSomeValue == other.filterSomeValue) || (this.filterSomeValue.equals(other.filterSomeValue)); + case OTHER: + return true; + case FILTER_NONE: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TemplateFilter value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case FILTER_SOME: { + g.writeStartObject(); + writeTag("filter_some", g); + g.writeFieldName("filter_some"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.filterSomeValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case FILTER_NONE: { + g.writeString("filter_none"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TemplateFilter deserialize(JsonParser p) throws IOException, JsonParseException { + TemplateFilter value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("filter_some".equals(tag)) { + List fieldValue = null; + expectField("filter_some", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = TemplateFilter.filterSome(fieldValue); + } + else if ("other".equals(tag)) { + value = TemplateFilter.OTHER; + } + else if ("filter_none".equals(tag)) { + value = TemplateFilter.FILTER_NONE; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateFilterBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateFilterBase.java new file mode 100644 index 000000000..5954b797a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplateFilterBase.java @@ -0,0 +1,304 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TemplateFilterBase { + // union file_properties.TemplateFilterBase (file_properties.stone) + + /** + * Discriminating tag type for {@link TemplateFilterBase}. + */ + public enum Tag { + /** + * Only templates with an ID in the supplied list will be returned (a + * subset of templates will be returned). + */ + FILTER_SOME, // List + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TemplateFilterBase OTHER = new TemplateFilterBase().withTag(Tag.OTHER); + + private Tag _tag; + private List filterSomeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TemplateFilterBase() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TemplateFilterBase withTag(Tag _tag) { + TemplateFilterBase result = new TemplateFilterBase(); + result._tag = _tag; + return result; + } + + /** + * + * @param filterSomeValue Only templates with an ID in the supplied list + * will be returned (a subset of templates will be returned). Must + * contain at least 1 items, not contain a {@code null} item, and not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TemplateFilterBase withTagAndFilterSome(Tag _tag, List filterSomeValue) { + TemplateFilterBase result = new TemplateFilterBase(); + result._tag = _tag; + result.filterSomeValue = filterSomeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TemplateFilterBase}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILTER_SOME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILTER_SOME}, {@code false} otherwise. + */ + public boolean isFilterSome() { + return this._tag == Tag.FILTER_SOME; + } + + /** + * Returns an instance of {@code TemplateFilterBase} that has its tag set to + * {@link Tag#FILTER_SOME}. + * + *

Only templates with an ID in the supplied list will be returned (a + * subset of templates will be returned).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TemplateFilterBase} with its tag set to {@link + * Tag#FILTER_SOME}. + * + * @throws IllegalArgumentException if {@code value} has fewer than 1 + * items, contains a {@code null} item, or is {@code null}. + */ + public static TemplateFilterBase filterSome(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.size() < 1) { + throw new IllegalArgumentException("List has fewer than 1 items"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("(/|ptid:).*", x)) { + throw new IllegalArgumentException("Stringan item in list does not match pattern"); + } + } + return new TemplateFilterBase().withTagAndFilterSome(Tag.FILTER_SOME, value); + } + + /** + * Only templates with an ID in the supplied list will be returned (a subset + * of templates will be returned). + * + *

This instance must be tagged as {@link Tag#FILTER_SOME}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isFilterSome} is {@code true}. + * + * @throws IllegalStateException If {@link #isFilterSome} is {@code false}. + */ + public List getFilterSomeValue() { + if (this._tag != Tag.FILTER_SOME) { + throw new IllegalStateException("Invalid tag: required Tag.FILTER_SOME, but was Tag." + this._tag.name()); + } + return filterSomeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.filterSomeValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TemplateFilterBase) { + TemplateFilterBase other = (TemplateFilterBase) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case FILTER_SOME: + return (this.filterSomeValue == other.filterSomeValue) || (this.filterSomeValue.equals(other.filterSomeValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TemplateFilterBase value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case FILTER_SOME: { + g.writeStartObject(); + writeTag("filter_some", g); + g.writeFieldName("filter_some"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.filterSomeValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TemplateFilterBase deserialize(JsonParser p) throws IOException, JsonParseException { + TemplateFilterBase value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("filter_some".equals(tag)) { + List fieldValue = null; + expectField("filter_some", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = TemplateFilterBase.filterSome(fieldValue); + } + else { + value = TemplateFilterBase.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder.java new file mode 100644 index 000000000..532af1007 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplatesUpdateForTeamBuilder.java @@ -0,0 +1,91 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxTeamFilePropertiesRequests#templatesUpdateForTeamBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class TemplatesUpdateForTeamBuilder { + private final DbxTeamFilePropertiesRequests _client; + private final UpdateTemplateArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue + * file_properties requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + TemplatesUpdateForTeamBuilder(DbxTeamFilePropertiesRequests _client, UpdateTemplateArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param name A display name for the template. template names can be up to + * 256 bytes. + * + * @return this builder + */ + public TemplatesUpdateForTeamBuilder withName(String name) { + this._builder.withName(name); + return this; + } + + /** + * Set value for optional field. + * + * @param description Description for the new template. Template + * descriptions can be up to 1024 bytes. + * + * @return this builder + */ + public TemplatesUpdateForTeamBuilder withDescription(String description) { + this._builder.withDescription(description); + return this; + } + + /** + * Set value for optional field. + * + * @param addFields Property field templates to be added to the group + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TemplatesUpdateForTeamBuilder withAddFields(List addFields) { + this._builder.withAddFields(addFields); + return this; + } + + /** + * Issues the request. + */ + public UpdateTemplateResult start() throws ModifyTemplateErrorException, DbxException { + UpdateTemplateArg arg_ = this._builder.build(); + return _client.templatesUpdateForTeam(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder.java new file mode 100644 index 000000000..7d9494413 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/TemplatesUpdateForUserBuilder.java @@ -0,0 +1,91 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserFilePropertiesRequests#templatesUpdateForUserBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class TemplatesUpdateForUserBuilder { + private final DbxUserFilePropertiesRequests _client; + private final UpdateTemplateArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue + * file_properties requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + TemplatesUpdateForUserBuilder(DbxUserFilePropertiesRequests _client, UpdateTemplateArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param name A display name for the template. template names can be up to + * 256 bytes. + * + * @return this builder + */ + public TemplatesUpdateForUserBuilder withName(String name) { + this._builder.withName(name); + return this; + } + + /** + * Set value for optional field. + * + * @param description Description for the new template. Template + * descriptions can be up to 1024 bytes. + * + * @return this builder + */ + public TemplatesUpdateForUserBuilder withDescription(String description) { + this._builder.withDescription(description); + return this; + } + + /** + * Set value for optional field. + * + * @param addFields Property field templates to be added to the group + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TemplatesUpdateForUserBuilder withAddFields(List addFields) { + this._builder.withAddFields(addFields); + return this; + } + + /** + * Issues the request. + */ + public UpdateTemplateResult start() throws ModifyTemplateErrorException, DbxException { + UpdateTemplateArg arg_ = this._builder.build(); + return _client.templatesUpdateForUser(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesArg.java new file mode 100644 index 000000000..baa51df88 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesArg.java @@ -0,0 +1,189 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class UpdatePropertiesArg { + // struct file_properties.UpdatePropertiesArg (file_properties.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final List updatePropertyGroups; + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param updatePropertyGroups The property groups "delta" updates to + * apply. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdatePropertiesArg(@Nonnull String path, @Nonnull List updatePropertyGroups) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (updatePropertyGroups == null) { + throw new IllegalArgumentException("Required value for 'updatePropertyGroups' is null"); + } + for (PropertyGroupUpdate x : updatePropertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'updatePropertyGroups' is null"); + } + } + this.updatePropertyGroups = updatePropertyGroups; + } + + /** + * A unique identifier for the file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The property groups "delta" updates to apply. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUpdatePropertyGroups() { + return updatePropertyGroups; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.updatePropertyGroups + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UpdatePropertiesArg other = (UpdatePropertiesArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.updatePropertyGroups == other.updatePropertyGroups) || (this.updatePropertyGroups.equals(other.updatePropertyGroups))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdatePropertiesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("update_property_groups"); + StoneSerializers.list(PropertyGroupUpdate.Serializer.INSTANCE).serialize(value.updatePropertyGroups, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UpdatePropertiesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UpdatePropertiesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + List f_updatePropertyGroups = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("update_property_groups".equals(field)) { + f_updatePropertyGroups = StoneSerializers.list(PropertyGroupUpdate.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_updatePropertyGroups == null) { + throw new JsonParseException(p, "Required field \"update_property_groups\" missing."); + } + value = new UpdatePropertiesArg(f_path, f_updatePropertyGroups); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesError.java new file mode 100644 index 000000000..16f0a2e9d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesError.java @@ -0,0 +1,601 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class UpdatePropertiesError { + // union file_properties.UpdatePropertiesError (file_properties.stone) + + /** + * Discriminating tag type for {@link UpdatePropertiesError}. + */ + public enum Tag { + /** + * Template does not exist for the given identifier. + */ + TEMPLATE_NOT_FOUND, // String + /** + * You do not have permission to modify this template. + */ + RESTRICTED_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + PATH, // LookupError + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + UNSUPPORTED_FOLDER, + /** + * One or more of the supplied property field values is too large. + */ + PROPERTY_FIELD_TOO_LARGE, + /** + * One or more of the supplied property fields does not conform to the + * template specifications. + */ + DOES_NOT_FIT_TEMPLATE, + /** + * There are 2 or more property groups referring to the same templates + * in the input. + */ + DUPLICATE_PROPERTY_GROUPS, + PROPERTY_GROUP_LOOKUP; // LookUpPropertiesError + } + + /** + * You do not have permission to modify this template. + */ + public static final UpdatePropertiesError RESTRICTED_CONTENT = new UpdatePropertiesError().withTag(Tag.RESTRICTED_CONTENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UpdatePropertiesError OTHER = new UpdatePropertiesError().withTag(Tag.OTHER); + /** + * This folder cannot be tagged. Tagging folders is not supported for + * team-owned templates. + */ + public static final UpdatePropertiesError UNSUPPORTED_FOLDER = new UpdatePropertiesError().withTag(Tag.UNSUPPORTED_FOLDER); + /** + * One or more of the supplied property field values is too large. + */ + public static final UpdatePropertiesError PROPERTY_FIELD_TOO_LARGE = new UpdatePropertiesError().withTag(Tag.PROPERTY_FIELD_TOO_LARGE); + /** + * One or more of the supplied property fields does not conform to the + * template specifications. + */ + public static final UpdatePropertiesError DOES_NOT_FIT_TEMPLATE = new UpdatePropertiesError().withTag(Tag.DOES_NOT_FIT_TEMPLATE); + /** + * There are 2 or more property groups referring to the same templates in + * the input. + */ + public static final UpdatePropertiesError DUPLICATE_PROPERTY_GROUPS = new UpdatePropertiesError().withTag(Tag.DUPLICATE_PROPERTY_GROUPS); + + private Tag _tag; + private String templateNotFoundValue; + private LookupError pathValue; + private LookUpPropertiesError propertyGroupLookupValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UpdatePropertiesError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UpdatePropertiesError withTag(Tag _tag) { + UpdatePropertiesError result = new UpdatePropertiesError(); + result._tag = _tag; + return result; + } + + /** + * + * @param templateNotFoundValue Template does not exist for the given + * identifier. Must have length of at least 1, match pattern "{@code + * (/|ptid:).*}", and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UpdatePropertiesError withTagAndTemplateNotFound(Tag _tag, String templateNotFoundValue) { + UpdatePropertiesError result = new UpdatePropertiesError(); + result._tag = _tag; + result.templateNotFoundValue = templateNotFoundValue; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UpdatePropertiesError withTagAndPath(Tag _tag, LookupError pathValue) { + UpdatePropertiesError result = new UpdatePropertiesError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param propertyGroupLookupValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UpdatePropertiesError withTagAndPropertyGroupLookup(Tag _tag, LookUpPropertiesError propertyGroupLookupValue) { + UpdatePropertiesError result = new UpdatePropertiesError(); + result._tag = _tag; + result.propertyGroupLookupValue = propertyGroupLookupValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UpdatePropertiesError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isTemplateNotFound() { + return this._tag == Tag.TEMPLATE_NOT_FOUND; + } + + /** + * Returns an instance of {@code UpdatePropertiesError} that has its tag set + * to {@link Tag#TEMPLATE_NOT_FOUND}. + * + *

Template does not exist for the given identifier.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdatePropertiesError} with its tag set to + * {@link Tag#TEMPLATE_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1, + * does not match pattern "{@code (/|ptid:).*}", or is {@code null}. + */ + public static UpdatePropertiesError templateNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new UpdatePropertiesError().withTagAndTemplateNotFound(Tag.TEMPLATE_NOT_FOUND, value); + } + + /** + * Template does not exist for the given identifier. + * + *

This instance must be tagged as {@link Tag#TEMPLATE_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTemplateNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isTemplateNotFound} is {@code + * false}. + */ + public String getTemplateNotFoundValue() { + if (this._tag != Tag.TEMPLATE_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEMPLATE_NOT_FOUND, but was Tag." + this._tag.name()); + } + return templateNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code UpdatePropertiesError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdatePropertiesError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UpdatePropertiesError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UpdatePropertiesError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_FOLDER}, {@code false} otherwise. + */ + public boolean isUnsupportedFolder() { + return this._tag == Tag.UNSUPPORTED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTY_FIELD_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTY_FIELD_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isPropertyFieldTooLarge() { + return this._tag == Tag.PROPERTY_FIELD_TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOES_NOT_FIT_TEMPLATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOES_NOT_FIT_TEMPLATE}, {@code false} otherwise. + */ + public boolean isDoesNotFitTemplate() { + return this._tag == Tag.DOES_NOT_FIT_TEMPLATE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_PROPERTY_GROUPS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_PROPERTY_GROUPS}, {@code false} otherwise. + */ + public boolean isDuplicatePropertyGroups() { + return this._tag == Tag.DUPLICATE_PROPERTY_GROUPS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTY_GROUP_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTY_GROUP_LOOKUP}, {@code false} otherwise. + */ + public boolean isPropertyGroupLookup() { + return this._tag == Tag.PROPERTY_GROUP_LOOKUP; + } + + /** + * Returns an instance of {@code UpdatePropertiesError} that has its tag set + * to {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdatePropertiesError} with its tag set to + * {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UpdatePropertiesError propertyGroupLookup(LookUpPropertiesError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UpdatePropertiesError().withTagAndPropertyGroupLookup(Tag.PROPERTY_GROUP_LOOKUP, value); + } + + /** + * This instance must be tagged as {@link Tag#PROPERTY_GROUP_LOOKUP}. + * + * @return The {@link LookUpPropertiesError} value associated with this + * instance if {@link #isPropertyGroupLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isPropertyGroupLookup} is + * {@code false}. + */ + public LookUpPropertiesError getPropertyGroupLookupValue() { + if (this._tag != Tag.PROPERTY_GROUP_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.PROPERTY_GROUP_LOOKUP, but was Tag." + this._tag.name()); + } + return propertyGroupLookupValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.templateNotFoundValue, + this.pathValue, + this.propertyGroupLookupValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UpdatePropertiesError) { + UpdatePropertiesError other = (UpdatePropertiesError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEMPLATE_NOT_FOUND: + return (this.templateNotFoundValue == other.templateNotFoundValue) || (this.templateNotFoundValue.equals(other.templateNotFoundValue)); + case RESTRICTED_CONTENT: + return true; + case OTHER: + return true; + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_FOLDER: + return true; + case PROPERTY_FIELD_TOO_LARGE: + return true; + case DOES_NOT_FIT_TEMPLATE: + return true; + case DUPLICATE_PROPERTY_GROUPS: + return true; + case PROPERTY_GROUP_LOOKUP: + return (this.propertyGroupLookupValue == other.propertyGroupLookupValue) || (this.propertyGroupLookupValue.equals(other.propertyGroupLookupValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdatePropertiesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEMPLATE_NOT_FOUND: { + g.writeStartObject(); + writeTag("template_not_found", g); + g.writeFieldName("template_not_found"); + StoneSerializers.string().serialize(value.templateNotFoundValue, g); + g.writeEndObject(); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_FOLDER: { + g.writeString("unsupported_folder"); + break; + } + case PROPERTY_FIELD_TOO_LARGE: { + g.writeString("property_field_too_large"); + break; + } + case DOES_NOT_FIT_TEMPLATE: { + g.writeString("does_not_fit_template"); + break; + } + case DUPLICATE_PROPERTY_GROUPS: { + g.writeString("duplicate_property_groups"); + break; + } + case PROPERTY_GROUP_LOOKUP: { + g.writeStartObject(); + writeTag("property_group_lookup", g); + g.writeFieldName("property_group_lookup"); + LookUpPropertiesError.Serializer.INSTANCE.serialize(value.propertyGroupLookupValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public UpdatePropertiesError deserialize(JsonParser p) throws IOException, JsonParseException { + UpdatePropertiesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("template_not_found".equals(tag)) { + String fieldValue = null; + expectField("template_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = UpdatePropertiesError.templateNotFound(fieldValue); + } + else if ("restricted_content".equals(tag)) { + value = UpdatePropertiesError.RESTRICTED_CONTENT; + } + else if ("other".equals(tag)) { + value = UpdatePropertiesError.OTHER; + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = UpdatePropertiesError.path(fieldValue); + } + else if ("unsupported_folder".equals(tag)) { + value = UpdatePropertiesError.UNSUPPORTED_FOLDER; + } + else if ("property_field_too_large".equals(tag)) { + value = UpdatePropertiesError.PROPERTY_FIELD_TOO_LARGE; + } + else if ("does_not_fit_template".equals(tag)) { + value = UpdatePropertiesError.DOES_NOT_FIT_TEMPLATE; + } + else if ("duplicate_property_groups".equals(tag)) { + value = UpdatePropertiesError.DUPLICATE_PROPERTY_GROUPS; + } + else if ("property_group_lookup".equals(tag)) { + LookUpPropertiesError fieldValue = null; + expectField("property_group_lookup", p); + fieldValue = LookUpPropertiesError.Serializer.INSTANCE.deserialize(p); + value = UpdatePropertiesError.propertyGroupLookup(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesErrorException.java new file mode 100644 index 000000000..65b2ce690 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdatePropertiesErrorException.java @@ -0,0 +1,41 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UpdatePropertiesError} error. + * + *

This exception is raised by {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,java.util.List)} and + * {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesUpdate(String,java.util.List)}. + *

+ */ +public class UpdatePropertiesErrorException extends DbxApiException { + // exception for routes: + // 2/file_properties/properties/update + // 2/files/properties/update + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilePropertiesRequests#propertiesUpdate(String,java.util.List)} + * and {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#propertiesUpdate(String,java.util.List)}. + */ + public final UpdatePropertiesError errorValue; + + public UpdatePropertiesErrorException(String routeName, String requestId, LocalizedText userMessage, UpdatePropertiesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdateTemplateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdateTemplateArg.java new file mode 100644 index 000000000..94479fb06 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdateTemplateArg.java @@ -0,0 +1,377 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class UpdateTemplateArg { + // struct file_properties.UpdateTemplateArg (file_properties.stone) + + @Nonnull + protected final String templateId; + @Nullable + protected final String name; + @Nullable + protected final String description; + @Nullable + protected final List addFields; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * @param name A display name for the template. template names can be up to + * 256 bytes. + * @param description Description for the new template. Template + * descriptions can be up to 1024 bytes. + * @param addFields Property field templates to be added to the group + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateTemplateArg(@Nonnull String templateId, @Nullable String name, @Nullable String description, @Nullable List addFields) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + this.name = name; + this.description = description; + if (addFields != null) { + for (PropertyFieldTemplate x : addFields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'addFields' is null"); + } + } + } + this.addFields = addFields; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateTemplateArg(@Nonnull String templateId) { + this(templateId, null, null, null); + } + + /** + * An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} or + * {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTemplateId() { + return templateId; + } + + /** + * A display name for the template. template names can be up to 256 bytes. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getName() { + return name; + } + + /** + * Description for the new template. Template descriptions can be up to 1024 + * bytes. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDescription() { + return description; + } + + /** + * Property field templates to be added to the group template. There can be + * up to 32 properties in a single template. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getAddFields() { + return addFields; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param templateId An identifier for template added by See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String templateId) { + return new Builder(templateId); + } + + /** + * Builder for {@link UpdateTemplateArg}. + */ + public static class Builder { + protected final String templateId; + + protected String name; + protected String description; + protected List addFields; + + protected Builder(String templateId) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + this.name = null; + this.description = null; + this.addFields = null; + } + + /** + * Set value for optional field. + * + * @param name A display name for the template. template names can be + * up to 256 bytes. + * + * @return this builder + */ + public Builder withName(String name) { + this.name = name; + return this; + } + + /** + * Set value for optional field. + * + * @param description Description for the new template. Template + * descriptions can be up to 1024 bytes. + * + * @return this builder + */ + public Builder withDescription(String description) { + this.description = description; + return this; + } + + /** + * Set value for optional field. + * + * @param addFields Property field templates to be added to the group + * template. There can be up to 32 properties in a single template. + * Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAddFields(List addFields) { + if (addFields != null) { + for (PropertyFieldTemplate x : addFields) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'addFields' is null"); + } + } + } + this.addFields = addFields; + return this; + } + + /** + * Builds an instance of {@link UpdateTemplateArg} configured with this + * builder's values + * + * @return new instance of {@link UpdateTemplateArg} + */ + public UpdateTemplateArg build() { + return new UpdateTemplateArg(templateId, name, description, addFields); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateId, + this.name, + this.description, + this.addFields + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UpdateTemplateArg other = (UpdateTemplateArg) obj; + return ((this.templateId == other.templateId) || (this.templateId.equals(other.templateId))) + && ((this.name == other.name) || (this.name != null && this.name.equals(other.name))) + && ((this.description == other.description) || (this.description != null && this.description.equals(other.description))) + && ((this.addFields == other.addFields) || (this.addFields != null && this.addFields.equals(other.addFields))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateTemplateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_id"); + StoneSerializers.string().serialize(value.templateId, g); + if (value.name != null) { + g.writeFieldName("name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.name, g); + } + if (value.description != null) { + g.writeFieldName("description"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.description, g); + } + if (value.addFields != null) { + g.writeFieldName("add_fields"); + StoneSerializers.nullable(StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE)).serialize(value.addFields, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UpdateTemplateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UpdateTemplateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_templateId = null; + String f_name = null; + String f_description = null; + List f_addFields = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_id".equals(field)) { + f_templateId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("add_fields".equals(field)) { + f_addFields = StoneSerializers.nullable(StoneSerializers.list(PropertyFieldTemplate.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateId == null) { + throw new JsonParseException(p, "Required field \"template_id\" missing."); + } + value = new UpdateTemplateArg(f_templateId, f_name, f_description, f_addFields); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdateTemplateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdateTemplateResult.java new file mode 100644 index 000000000..8c1432519 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/UpdateTemplateResult.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from file_properties.stone */ + +package com.dropbox.core.v2.fileproperties; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class UpdateTemplateResult { + // struct file_properties.UpdateTemplateResult (file_properties.stone) + + @Nonnull + protected final String templateId; + + /** + * + * @param templateId An identifier for template added by route See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateTemplateResult(@Nonnull String templateId) { + if (templateId == null) { + throw new IllegalArgumentException("Required value for 'templateId' is null"); + } + if (templateId.length() < 1) { + throw new IllegalArgumentException("String 'templateId' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", templateId)) { + throw new IllegalArgumentException("String 'templateId' does not match pattern"); + } + this.templateId = templateId; + } + + /** + * An identifier for template added by route See {@link + * DbxUserFilePropertiesRequests#templatesAddForUser(String,String,java.util.List)} + * or {@link + * DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,java.util.List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTemplateId() { + return templateId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.templateId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UpdateTemplateResult other = (UpdateTemplateResult) obj; + return (this.templateId == other.templateId) || (this.templateId.equals(other.templateId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateTemplateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("template_id"); + StoneSerializers.string().serialize(value.templateId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UpdateTemplateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UpdateTemplateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_templateId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("template_id".equals(field)) { + f_templateId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_templateId == null) { + throw new JsonParseException(p, "Required field \"template_id\" missing."); + } + value = new UpdateTemplateResult(f_templateId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/package-info.java new file mode 100644 index 000000000..884513dc3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/fileproperties/package-info.java @@ -0,0 +1,48 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * This namespace contains helpers for property and template metadata endpoints. + * + *

These endpoints enable you to tag arbitrary key/value data to Dropbox + * files.

+ * + *

The most basic unit in this namespace is the {@code propertyField}. These + * fields encapsulate the actual key/value data.

+ * + *

Fields are added to a Dropbox file using a {@code propertyGroup}. + * Property groups contain a reference to a Dropbox file and a {@code + * propertyGroupTemplate}. Property groups are uniquely identified by the + * combination of their associated Dropbox file and template.

+ * + *

The {@code propertyGroupTemplate} is a way of restricting the possible + * key names and value types of the data within a property group. The possible + * key names and value types are explicitly enumerated using {@code + * propertyFieldTemplate} objects.

+ * + *

You can think of a property group template as a class definition for a + * particular key/value metadata object, and the property groups themselves as + * the instantiations of these objects.

+ * + *

Templates are owned either by a user/app pair or team/app pair. Templates + * and their associated properties can't be accessed by any app other than the + * app that created them, and even then, only when the app is linked with the + * owner of the template (either a user or team).

+ * + *

User-owned templates are accessed via the user-auth + * file_properties/templates/*_for_user endpoints, while team-owned templates + * are accessed via the team-auth file_properties/templates/*_for_team + * endpoints. Properties associated with either type of template can be accessed + * via the user-auth properties/* endpoints.

+ * + *

Finally, properties can be accessed from a number of endpoints that + * return metadata, including `files/get_metadata`, and `files/list_folder`. + * Properties can also be added during upload, using `files/upload`.

+ * + *

See {@link + * com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests}, {@link + * com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests} for a list + * of possible requests for this namespace.

+ */ +package com.dropbox.core.v2.fileproperties; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsError.java new file mode 100644 index 000000000..40bed4ce8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsError.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * There was an error counting the file requests. + */ +public enum CountFileRequestsError { + // union file_requests.CountFileRequestsError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CountFileRequestsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public CountFileRequestsError deserialize(JsonParser p) throws IOException, JsonParseException { + CountFileRequestsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = CountFileRequestsError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = CountFileRequestsError.OTHER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsErrorException.java new file mode 100644 index 000000000..13a1890b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * CountFileRequestsError} error. + * + *

This exception is raised by {@link DbxUserFileRequestsRequests#count}. + *

+ */ +public class CountFileRequestsErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/count + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFileRequestsRequests#count}. + */ + public final CountFileRequestsError errorValue; + + public CountFileRequestsErrorException(String routeName, String requestId, LocalizedText userMessage, CountFileRequestsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsResult.java new file mode 100644 index 000000000..352d34cfc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsResult.java @@ -0,0 +1,141 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result for {@link DbxUserFileRequestsRequests#count}. + */ +public class CountFileRequestsResult { + // struct file_requests.CountFileRequestsResult (file_requests.stone) + + protected final long fileRequestCount; + + /** + * Result for {@link DbxUserFileRequestsRequests#count}. + * + * @param fileRequestCount The number file requests owner by this user. + */ + public CountFileRequestsResult(long fileRequestCount) { + this.fileRequestCount = fileRequestCount; + } + + /** + * The number file requests owner by this user. + * + * @return value for this field. + */ + public long getFileRequestCount() { + return fileRequestCount; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequestCount + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CountFileRequestsResult other = (CountFileRequestsResult) obj; + return this.fileRequestCount == other.fileRequestCount; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CountFileRequestsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_request_count"); + StoneSerializers.uInt64().serialize(value.fileRequestCount, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CountFileRequestsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CountFileRequestsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_fileRequestCount = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_request_count".equals(field)) { + f_fileRequestCount = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileRequestCount == null) { + throw new JsonParseException(p, "Required field \"file_request_count\" missing."); + } + value = new CountFileRequestsResult(f_fileRequestCount); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateBuilder.java new file mode 100644 index 000000000..fc8b3d11b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateBuilder.java @@ -0,0 +1,88 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserFileRequestsRequests#createBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class CreateBuilder { + private final DbxUserFileRequestsRequests _client; + private final CreateFileRequestArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue + * file_requests requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + CreateBuilder(DbxUserFileRequestsRequests _client, CreateFileRequestArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param deadline The deadline for the file request. Deadlines can only be + * set by Professional and Business accounts. + * + * @return this builder + */ + public CreateBuilder withDeadline(FileRequestDeadline deadline) { + this._builder.withDeadline(deadline); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param open Whether or not the file request should be open. If the file + * request is closed, it will not accept any file submissions, but it + * can be opened later. Defaults to {@code true} when set to {@code + * null}. + * + * @return this builder + */ + public CreateBuilder withOpen(Boolean open) { + this._builder.withOpen(open); + return this; + } + + /** + * Set value for optional field. + * + * @param description A description of the file request. + * + * @return this builder + */ + public CreateBuilder withDescription(String description) { + this._builder.withDescription(description); + return this; + } + + /** + * Issues the request. + */ + public FileRequest start() throws CreateFileRequestErrorException, DbxException { + CreateFileRequestArgs arg_ = this._builder.build(); + return _client.create(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestArgs.java new file mode 100644 index 000000000..caddbd698 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestArgs.java @@ -0,0 +1,400 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments for {@link DbxUserFileRequestsRequests#create(String,String)}. + */ +class CreateFileRequestArgs { + // struct file_requests.CreateFileRequestArgs (file_requests.stone) + + @Nonnull + protected final String title; + @Nonnull + protected final String destination; + @Nullable + protected final FileRequestDeadline deadline; + protected final boolean open; + @Nullable + protected final String description; + + /** + * Arguments for {@link DbxUserFileRequestsRequests#create(String,String)}. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param title The title of the file request. Must not be empty. Must have + * length of at least 1 and not be {@code null}. + * @param destination The path of the folder in the Dropbox where uploaded + * files will be sent. For apps with the app folder permission, this + * will be relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param deadline The deadline for the file request. Deadlines can only be + * set by Professional and Business accounts. + * @param open Whether or not the file request should be open. If the file + * request is closed, it will not accept any file submissions, but it + * can be opened later. + * @param description A description of the file request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFileRequestArgs(@Nonnull String title, @Nonnull String destination, @Nullable FileRequestDeadline deadline, boolean open, @Nullable String description) { + if (title == null) { + throw new IllegalArgumentException("Required value for 'title' is null"); + } + if (title.length() < 1) { + throw new IllegalArgumentException("String 'title' is shorter than 1"); + } + this.title = title; + if (destination == null) { + throw new IllegalArgumentException("Required value for 'destination' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", destination)) { + throw new IllegalArgumentException("String 'destination' does not match pattern"); + } + this.destination = destination; + this.deadline = deadline; + this.open = open; + this.description = description; + } + + /** + * Arguments for {@link DbxUserFileRequestsRequests#create(String,String)}. + * + *

The default values for unset fields will be used.

+ * + * @param title The title of the file request. Must not be empty. Must have + * length of at least 1 and not be {@code null}. + * @param destination The path of the folder in the Dropbox where uploaded + * files will be sent. For apps with the app folder permission, this + * will be relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFileRequestArgs(@Nonnull String title, @Nonnull String destination) { + this(title, destination, null, true, null); + } + + /** + * The title of the file request. Must not be empty. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTitle() { + return title; + } + + /** + * The path of the folder in the Dropbox where uploaded files will be sent. + * For apps with the app folder permission, this will be relative to the app + * folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDestination() { + return destination; + } + + /** + * The deadline for the file request. Deadlines can only be set by + * Professional and Business accounts. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDeadline getDeadline() { + return deadline; + } + + /** + * Whether or not the file request should be open. If the file request is + * closed, it will not accept any file submissions, but it can be opened + * later. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getOpen() { + return open; + } + + /** + * A description of the file request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDescription() { + return description; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param title The title of the file request. Must not be empty. Must have + * length of at least 1 and not be {@code null}. + * @param destination The path of the folder in the Dropbox where uploaded + * files will be sent. For apps with the app folder permission, this + * will be relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String title, String destination) { + return new Builder(title, destination); + } + + /** + * Builder for {@link CreateFileRequestArgs}. + */ + public static class Builder { + protected final String title; + protected final String destination; + + protected FileRequestDeadline deadline; + protected boolean open; + protected String description; + + protected Builder(String title, String destination) { + if (title == null) { + throw new IllegalArgumentException("Required value for 'title' is null"); + } + if (title.length() < 1) { + throw new IllegalArgumentException("String 'title' is shorter than 1"); + } + this.title = title; + if (destination == null) { + throw new IllegalArgumentException("Required value for 'destination' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", destination)) { + throw new IllegalArgumentException("String 'destination' does not match pattern"); + } + this.destination = destination; + this.deadline = null; + this.open = true; + this.description = null; + } + + /** + * Set value for optional field. + * + * @param deadline The deadline for the file request. Deadlines can + * only be set by Professional and Business accounts. + * + * @return this builder + */ + public Builder withDeadline(FileRequestDeadline deadline) { + this.deadline = deadline; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param open Whether or not the file request should be open. If the + * file request is closed, it will not accept any file submissions, + * but it can be opened later. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withOpen(Boolean open) { + if (open != null) { + this.open = open; + } + else { + this.open = true; + } + return this; + } + + /** + * Set value for optional field. + * + * @param description A description of the file request. + * + * @return this builder + */ + public Builder withDescription(String description) { + this.description = description; + return this; + } + + /** + * Builds an instance of {@link CreateFileRequestArgs} configured with + * this builder's values + * + * @return new instance of {@link CreateFileRequestArgs} + */ + public CreateFileRequestArgs build() { + return new CreateFileRequestArgs(title, destination, deadline, open, description); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.title, + this.destination, + this.deadline, + this.open, + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFileRequestArgs other = (CreateFileRequestArgs) obj; + return ((this.title == other.title) || (this.title.equals(other.title))) + && ((this.destination == other.destination) || (this.destination.equals(other.destination))) + && ((this.deadline == other.deadline) || (this.deadline != null && this.deadline.equals(other.deadline))) + && (this.open == other.open) + && ((this.description == other.description) || (this.description != null && this.description.equals(other.description))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFileRequestArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("title"); + StoneSerializers.string().serialize(value.title, g); + g.writeFieldName("destination"); + StoneSerializers.string().serialize(value.destination, g); + if (value.deadline != null) { + g.writeFieldName("deadline"); + StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).serialize(value.deadline, g); + } + g.writeFieldName("open"); + StoneSerializers.boolean_().serialize(value.open, g); + if (value.description != null) { + g.writeFieldName("description"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.description, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFileRequestArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFileRequestArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_title = null; + String f_destination = null; + FileRequestDeadline f_deadline = null; + Boolean f_open = true; + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("title".equals(field)) { + f_title = StoneSerializers.string().deserialize(p); + } + else if ("destination".equals(field)) { + f_destination = StoneSerializers.string().deserialize(p); + } + else if ("deadline".equals(field)) { + f_deadline = StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).deserialize(p); + } + else if ("open".equals(field)) { + f_open = StoneSerializers.boolean_().deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_title == null) { + throw new JsonParseException(p, "Required field \"title\" missing."); + } + if (f_destination == null) { + throw new JsonParseException(p, "Required field \"destination\" missing."); + } + value = new CreateFileRequestArgs(f_title, f_destination, f_deadline, f_open, f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestError.java new file mode 100644 index 000000000..b09432dc2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestError.java @@ -0,0 +1,187 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * There was an error creating the file request. + */ +public enum CreateFileRequestError { + // union file_requests.CreateFileRequestError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This file request ID was not found. + */ + NOT_FOUND, + /** + * The specified path is not a folder. + */ + NOT_A_FOLDER, + /** + * This file request is not accessible to this app. Apps with the app folder + * permission can only access file requests in their app folder. + */ + APP_LACKS_ACCESS, + /** + * This user doesn't have permission to access or modify this file request. + */ + NO_PERMISSION, + /** + * This user's email address is not verified. File requests are only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * There was an error validating the request. For example, the title was + * invalid, or there were disallowed characters in the destination path. + */ + VALIDATION_ERROR, + /** + * File requests are not available on the specified folder. + */ + INVALID_LOCATION, + /** + * The user has reached the rate limit for creating file requests. The limit + * is currently 4000 file requests total. + */ + RATE_LIMIT; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFileRequestError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case NOT_A_FOLDER: { + g.writeString("not_a_folder"); + break; + } + case APP_LACKS_ACCESS: { + g.writeString("app_lacks_access"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case VALIDATION_ERROR: { + g.writeString("validation_error"); + break; + } + case INVALID_LOCATION: { + g.writeString("invalid_location"); + break; + } + case RATE_LIMIT: { + g.writeString("rate_limit"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public CreateFileRequestError deserialize(JsonParser p) throws IOException, JsonParseException { + CreateFileRequestError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = CreateFileRequestError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = CreateFileRequestError.OTHER; + } + else if ("not_found".equals(tag)) { + value = CreateFileRequestError.NOT_FOUND; + } + else if ("not_a_folder".equals(tag)) { + value = CreateFileRequestError.NOT_A_FOLDER; + } + else if ("app_lacks_access".equals(tag)) { + value = CreateFileRequestError.APP_LACKS_ACCESS; + } + else if ("no_permission".equals(tag)) { + value = CreateFileRequestError.NO_PERMISSION; + } + else if ("email_unverified".equals(tag)) { + value = CreateFileRequestError.EMAIL_UNVERIFIED; + } + else if ("validation_error".equals(tag)) { + value = CreateFileRequestError.VALIDATION_ERROR; + } + else if ("invalid_location".equals(tag)) { + value = CreateFileRequestError.INVALID_LOCATION; + } + else if ("rate_limit".equals(tag)) { + value = CreateFileRequestError.RATE_LIMIT; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestErrorException.java new file mode 100644 index 000000000..5dc25c01e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * CreateFileRequestError} error. + * + *

This exception is raised by {@link + * DbxUserFileRequestsRequests#create(String,String)}.

+ */ +public class CreateFileRequestErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/create + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFileRequestsRequests#create(String,String)}. + */ + public final CreateFileRequestError errorValue; + + public CreateFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, CreateFileRequestError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DbxUserFileRequestsRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DbxUserFileRequestsRequests.java new file mode 100644 index 000000000..d87105ab7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DbxUserFileRequestsRequests.java @@ -0,0 +1,443 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "file_requests". + */ +public class DbxUserFileRequestsRequests { + // namespace file_requests (file_requests.stone) + + private final DbxRawClientV2 client; + + public DbxUserFileRequestsRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/file_requests/count + // + + /** + * Returns the total number of file requests owned by this user. Includes + * both open and closed file requests. + * + * @return Result for {@link DbxUserFileRequestsRequests#count}. + */ + public CountFileRequestsResult count() throws CountFileRequestsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/count", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + CountFileRequestsResult.Serializer.INSTANCE, + CountFileRequestsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CountFileRequestsErrorException("2/file_requests/count", ex.getRequestId(), ex.getUserMessage(), (CountFileRequestsError) ex.getErrorValue()); + } + } + + // + // route 2/file_requests/create + // + + /** + * Creates a file request for this user. + * + * @param arg Arguments for {@link + * DbxUserFileRequestsRequests#create(String,String)}. + * + * @return A file request + * for receiving files into the user's Dropbox account. + */ + FileRequest create(CreateFileRequestArgs arg) throws CreateFileRequestErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/create", + arg, + false, + CreateFileRequestArgs.Serializer.INSTANCE, + FileRequest.Serializer.INSTANCE, + CreateFileRequestError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CreateFileRequestErrorException("2/file_requests/create", ex.getRequestId(), ex.getUserMessage(), (CreateFileRequestError) ex.getErrorValue()); + } + } + + /** + * Creates a file request for this user. + * + *

The default values for the optional request parameters will be used. + * See {@link CreateBuilder} for more details.

+ * + * @param title The title of the file request. Must not be empty. Must have + * length of at least 1 and not be {@code null}. + * @param destination The path of the folder in the Dropbox where uploaded + * files will be sent. For apps with the app folder permission, this + * will be relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * + * @return A file request + * for receiving files into the user's Dropbox account. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequest create(String title, String destination) throws CreateFileRequestErrorException, DbxException { + CreateFileRequestArgs _arg = new CreateFileRequestArgs(title, destination); + return create(_arg); + } + + /** + * Creates a file request for this user. + * + * @param title The title of the file request. Must not be empty. Must have + * length of at least 1 and not be {@code null}. + * @param destination The path of the folder in the Dropbox where uploaded + * files will be sent. For apps with the app folder permission, this + * will be relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateBuilder createBuilder(String title, String destination) { + CreateFileRequestArgs.Builder argBuilder_ = CreateFileRequestArgs.newBuilder(title, destination); + return new CreateBuilder(this, argBuilder_); + } + + // + // route 2/file_requests/delete + // + + /** + * Delete a batch of closed file requests. + * + * @param arg Arguments for {@link + * DbxUserFileRequestsRequests#delete(List)}. + * + * @return Result for {@link DbxUserFileRequestsRequests#delete(List)}. + */ + DeleteFileRequestsResult delete(DeleteFileRequestArgs arg) throws DeleteFileRequestErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/delete", + arg, + false, + DeleteFileRequestArgs.Serializer.INSTANCE, + DeleteFileRequestsResult.Serializer.INSTANCE, + DeleteFileRequestError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DeleteFileRequestErrorException("2/file_requests/delete", ex.getRequestId(), ex.getUserMessage(), (DeleteFileRequestError) ex.getErrorValue()); + } + } + + /** + * Delete a batch of closed file requests. + * + * @param ids List IDs of the file requests to delete. Must not contain a + * {@code null} item and not be {@code null}. + * + * @return Result for {@link DbxUserFileRequestsRequests#delete(List)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteFileRequestsResult delete(List ids) throws DeleteFileRequestErrorException, DbxException { + DeleteFileRequestArgs _arg = new DeleteFileRequestArgs(ids); + return delete(_arg); + } + + // + // route 2/file_requests/delete_all_closed + // + + /** + * Delete all closed file requests owned by this user. + * + * @return Result for {@link DbxUserFileRequestsRequests#deleteAllClosed}. + */ + public DeleteAllClosedFileRequestsResult deleteAllClosed() throws DeleteAllClosedFileRequestsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/delete_all_closed", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + DeleteAllClosedFileRequestsResult.Serializer.INSTANCE, + DeleteAllClosedFileRequestsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DeleteAllClosedFileRequestsErrorException("2/file_requests/delete_all_closed", ex.getRequestId(), ex.getUserMessage(), (DeleteAllClosedFileRequestsError) ex.getErrorValue()); + } + } + + // + // route 2/file_requests/get + // + + /** + * Returns the specified file request. + * + * @param arg Arguments for {@link + * DbxUserFileRequestsRequests#get(String)}. + * + * @return A file request + * for receiving files into the user's Dropbox account. + */ + FileRequest get(GetFileRequestArgs arg) throws GetFileRequestErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/get", + arg, + false, + GetFileRequestArgs.Serializer.INSTANCE, + FileRequest.Serializer.INSTANCE, + GetFileRequestError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetFileRequestErrorException("2/file_requests/get", ex.getRequestId(), ex.getUserMessage(), (GetFileRequestError) ex.getErrorValue()); + } + } + + /** + * Returns the specified file request. + * + * @param id The ID of the file request to retrieve. Must have length of at + * least 1, match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code + * null}. + * + * @return A file request + * for receiving files into the user's Dropbox account. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequest get(String id) throws GetFileRequestErrorException, DbxException { + GetFileRequestArgs _arg = new GetFileRequestArgs(id); + return get(_arg); + } + + // + // route 2/file_requests/list + // + + /** + * Returns a list of file requests owned by this user. For apps with the app + * folder permission, this will only return file requests with destinations + * in the app folder. + * + * @return Result for {@link DbxUserFileRequestsRequests#list}. + */ + public ListFileRequestsResult list() throws ListFileRequestsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/list", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + ListFileRequestsResult.Serializer.INSTANCE, + ListFileRequestsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFileRequestsErrorException("2/file_requests/list", ex.getRequestId(), ex.getUserMessage(), (ListFileRequestsError) ex.getErrorValue()); + } + } + + // + // route 2/file_requests/list_v2 + // + + /** + * Returns a list of file requests owned by this user. For apps with the app + * folder permission, this will only return file requests with destinations + * in the app folder. + * + * @param arg Arguments for {@link + * DbxUserFileRequestsRequests#listV2(long)}. + * + * @return Result for {@link DbxUserFileRequestsRequests#listV2(long)} and + * {@link DbxUserFileRequestsRequests#listContinue(String)}. + */ + ListFileRequestsV2Result listV2(ListFileRequestsArg arg) throws ListFileRequestsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/list_v2", + arg, + false, + ListFileRequestsArg.Serializer.INSTANCE, + ListFileRequestsV2Result.Serializer.INSTANCE, + ListFileRequestsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFileRequestsErrorException("2/file_requests/list_v2", ex.getRequestId(), ex.getUserMessage(), (ListFileRequestsError) ex.getErrorValue()); + } + } + + /** + * Returns a list of file requests owned by this user. For apps with the app + * folder permission, this will only return file requests with destinations + * in the app folder. + * + *

The {@code limit} request parameter will default to {@code 1000L} + * (see {@link #listV2(long)}).

+ * + * @return Result for {@link DbxUserFileRequestsRequests#listV2(long)} and + * {@link DbxUserFileRequestsRequests#listContinue(String)}. + */ + public ListFileRequestsV2Result listV2() throws ListFileRequestsErrorException, DbxException { + ListFileRequestsArg _arg = new ListFileRequestsArg(); + return listV2(_arg); + } + + /** + * Returns a list of file requests owned by this user. For apps with the app + * folder permission, this will only return file requests with destinations + * in the app folder. + * + * @param limit The maximum number of file requests that should be returned + * per request. + * + * @return Result for {@link DbxUserFileRequestsRequests#listV2(long)} and + * {@link DbxUserFileRequestsRequests#listContinue(String)}. + */ + public ListFileRequestsV2Result listV2(long limit) throws ListFileRequestsErrorException, DbxException { + ListFileRequestsArg _arg = new ListFileRequestsArg(limit); + return listV2(_arg); + } + + // + // route 2/file_requests/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserFileRequestsRequests#listV2(long)}, use this to paginate through + * all file requests. The cursor must come from a previous call to {@link + * DbxUserFileRequestsRequests#listV2(long)} or {@link + * DbxUserFileRequestsRequests#listContinue(String)}. + * + * + * @return Result for {@link DbxUserFileRequestsRequests#listV2(long)} and + * {@link DbxUserFileRequestsRequests#listContinue(String)}. + */ + ListFileRequestsV2Result listContinue(ListFileRequestsContinueArg arg) throws ListFileRequestsContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/list/continue", + arg, + false, + ListFileRequestsContinueArg.Serializer.INSTANCE, + ListFileRequestsV2Result.Serializer.INSTANCE, + ListFileRequestsContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFileRequestsContinueErrorException("2/file_requests/list/continue", ex.getRequestId(), ex.getUserMessage(), (ListFileRequestsContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserFileRequestsRequests#listV2(long)}, use this to paginate through + * all file requests. The cursor must come from a previous call to {@link + * DbxUserFileRequestsRequests#listV2(long)} or {@link + * DbxUserFileRequestsRequests#listContinue(String)}. + * + * @param cursor The cursor returned by the previous API call specified in + * the endpoint description. Must not be {@code null}. + * + * @return Result for {@link DbxUserFileRequestsRequests#listV2(long)} and + * {@link DbxUserFileRequestsRequests#listContinue(String)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileRequestsV2Result listContinue(String cursor) throws ListFileRequestsContinueErrorException, DbxException { + ListFileRequestsContinueArg _arg = new ListFileRequestsContinueArg(cursor); + return listContinue(_arg); + } + + // + // route 2/file_requests/update + // + + /** + * Update a file request. + * + * @param arg Arguments for {@link + * DbxUserFileRequestsRequests#update(String)}. + * + * @return A file request + * for receiving files into the user's Dropbox account. + */ + FileRequest update(UpdateFileRequestArgs arg) throws UpdateFileRequestErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/file_requests/update", + arg, + false, + UpdateFileRequestArgs.Serializer.INSTANCE, + FileRequest.Serializer.INSTANCE, + UpdateFileRequestError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UpdateFileRequestErrorException("2/file_requests/update", ex.getRequestId(), ex.getUserMessage(), (UpdateFileRequestError) ex.getErrorValue()); + } + } + + /** + * Update a file request. + * + *

The default values for the optional request parameters will be used. + * See {@link UpdateBuilder} for more details.

+ * + * @param id The ID of the file request to update. Must have length of at + * least 1, match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code + * null}. + * + * @return A file request + * for receiving files into the user's Dropbox account. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequest update(String id) throws UpdateFileRequestErrorException, DbxException { + UpdateFileRequestArgs _arg = new UpdateFileRequestArgs(id); + return update(_arg); + } + + /** + * Update a file request. + * + * @param id The ID of the file request to update. Must have length of at + * least 1, match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code + * null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateBuilder updateBuilder(String id) { + UpdateFileRequestArgs.Builder argBuilder_ = UpdateFileRequestArgs.newBuilder(id); + return new UpdateBuilder(this, argBuilder_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError.java new file mode 100644 index 000000000..a402793ed --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsError.java @@ -0,0 +1,163 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * There was an error deleting all closed file requests. + */ +public enum DeleteAllClosedFileRequestsError { + // union file_requests.DeleteAllClosedFileRequestsError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This file request ID was not found. + */ + NOT_FOUND, + /** + * The specified path is not a folder. + */ + NOT_A_FOLDER, + /** + * This file request is not accessible to this app. Apps with the app folder + * permission can only access file requests in their app folder. + */ + APP_LACKS_ACCESS, + /** + * This user doesn't have permission to access or modify this file request. + */ + NO_PERMISSION, + /** + * This user's email address is not verified. File requests are only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * There was an error validating the request. For example, the title was + * invalid, or there were disallowed characters in the destination path. + */ + VALIDATION_ERROR; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteAllClosedFileRequestsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case NOT_A_FOLDER: { + g.writeString("not_a_folder"); + break; + } + case APP_LACKS_ACCESS: { + g.writeString("app_lacks_access"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case VALIDATION_ERROR: { + g.writeString("validation_error"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public DeleteAllClosedFileRequestsError deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteAllClosedFileRequestsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = DeleteAllClosedFileRequestsError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = DeleteAllClosedFileRequestsError.OTHER; + } + else if ("not_found".equals(tag)) { + value = DeleteAllClosedFileRequestsError.NOT_FOUND; + } + else if ("not_a_folder".equals(tag)) { + value = DeleteAllClosedFileRequestsError.NOT_A_FOLDER; + } + else if ("app_lacks_access".equals(tag)) { + value = DeleteAllClosedFileRequestsError.APP_LACKS_ACCESS; + } + else if ("no_permission".equals(tag)) { + value = DeleteAllClosedFileRequestsError.NO_PERMISSION; + } + else if ("email_unverified".equals(tag)) { + value = DeleteAllClosedFileRequestsError.EMAIL_UNVERIFIED; + } + else if ("validation_error".equals(tag)) { + value = DeleteAllClosedFileRequestsError.VALIDATION_ERROR; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsErrorException.java new file mode 100644 index 000000000..8ae1ed4e1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * DeleteAllClosedFileRequestsError} error. + * + *

This exception is raised by {@link + * DbxUserFileRequestsRequests#deleteAllClosed}.

+ */ +public class DeleteAllClosedFileRequestsErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/delete_all_closed + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFileRequestsRequests#deleteAllClosed}. + */ + public final DeleteAllClosedFileRequestsError errorValue; + + public DeleteAllClosedFileRequestsErrorException(String routeName, String requestId, LocalizedText userMessage, DeleteAllClosedFileRequestsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsResult.java new file mode 100644 index 000000000..92c07e815 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteAllClosedFileRequestsResult.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Result for {@link DbxUserFileRequestsRequests#deleteAllClosed}. + */ +public class DeleteAllClosedFileRequestsResult { + // struct file_requests.DeleteAllClosedFileRequestsResult (file_requests.stone) + + @Nonnull + protected final List fileRequests; + + /** + * Result for {@link DbxUserFileRequestsRequests#deleteAllClosed}. + * + * @param fileRequests The file requests deleted for this user. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteAllClosedFileRequestsResult(@Nonnull List fileRequests) { + if (fileRequests == null) { + throw new IllegalArgumentException("Required value for 'fileRequests' is null"); + } + for (FileRequest x : fileRequests) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileRequests' is null"); + } + } + this.fileRequests = fileRequests; + } + + /** + * The file requests deleted for this user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFileRequests() { + return fileRequests; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequests + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteAllClosedFileRequestsResult other = (DeleteAllClosedFileRequestsResult) obj; + return (this.fileRequests == other.fileRequests) || (this.fileRequests.equals(other.fileRequests)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteAllClosedFileRequestsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_requests"); + StoneSerializers.list(FileRequest.Serializer.INSTANCE).serialize(value.fileRequests, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteAllClosedFileRequestsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteAllClosedFileRequestsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_fileRequests = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_requests".equals(field)) { + f_fileRequests = StoneSerializers.list(FileRequest.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileRequests == null) { + throw new JsonParseException(p, "Required field \"file_requests\" missing."); + } + value = new DeleteAllClosedFileRequestsResult(f_fileRequests); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestArgs.java new file mode 100644 index 000000000..02b826219 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestArgs.java @@ -0,0 +1,164 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link DbxUserFileRequestsRequests#delete(List)}. + */ +class DeleteFileRequestArgs { + // struct file_requests.DeleteFileRequestArgs (file_requests.stone) + + @Nonnull + protected final List ids; + + /** + * Arguments for {@link DbxUserFileRequestsRequests#delete(List)}. + * + * @param ids List IDs of the file requests to delete. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteFileRequestArgs(@Nonnull List ids) { + if (ids == null) { + throw new IllegalArgumentException("Required value for 'ids' is null"); + } + for (String x : ids) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'ids' is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list 'ids' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", x)) { + throw new IllegalArgumentException("Stringan item in list 'ids' does not match pattern"); + } + } + this.ids = ids; + } + + /** + * List IDs of the file requests to delete. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getIds() { + return ids; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.ids + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteFileRequestArgs other = (DeleteFileRequestArgs) obj; + return (this.ids == other.ids) || (this.ids.equals(other.ids)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteFileRequestArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.ids, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteFileRequestArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteFileRequestArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_ids = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("ids".equals(field)) { + f_ids = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_ids == null) { + throw new JsonParseException(p, "Required field \"ids\" missing."); + } + value = new DeleteFileRequestArgs(f_ids); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestError.java new file mode 100644 index 000000000..5dfcc2e53 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestError.java @@ -0,0 +1,175 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * There was an error deleting these file requests. + */ +public enum DeleteFileRequestError { + // union file_requests.DeleteFileRequestError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This file request ID was not found. + */ + NOT_FOUND, + /** + * The specified path is not a folder. + */ + NOT_A_FOLDER, + /** + * This file request is not accessible to this app. Apps with the app folder + * permission can only access file requests in their app folder. + */ + APP_LACKS_ACCESS, + /** + * This user doesn't have permission to access or modify this file request. + */ + NO_PERMISSION, + /** + * This user's email address is not verified. File requests are only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * There was an error validating the request. For example, the title was + * invalid, or there were disallowed characters in the destination path. + */ + VALIDATION_ERROR, + /** + * One or more file requests currently open. + */ + FILE_REQUEST_OPEN; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteFileRequestError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case NOT_A_FOLDER: { + g.writeString("not_a_folder"); + break; + } + case APP_LACKS_ACCESS: { + g.writeString("app_lacks_access"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case VALIDATION_ERROR: { + g.writeString("validation_error"); + break; + } + case FILE_REQUEST_OPEN: { + g.writeString("file_request_open"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public DeleteFileRequestError deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteFileRequestError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = DeleteFileRequestError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = DeleteFileRequestError.OTHER; + } + else if ("not_found".equals(tag)) { + value = DeleteFileRequestError.NOT_FOUND; + } + else if ("not_a_folder".equals(tag)) { + value = DeleteFileRequestError.NOT_A_FOLDER; + } + else if ("app_lacks_access".equals(tag)) { + value = DeleteFileRequestError.APP_LACKS_ACCESS; + } + else if ("no_permission".equals(tag)) { + value = DeleteFileRequestError.NO_PERMISSION; + } + else if ("email_unverified".equals(tag)) { + value = DeleteFileRequestError.EMAIL_UNVERIFIED; + } + else if ("validation_error".equals(tag)) { + value = DeleteFileRequestError.VALIDATION_ERROR; + } + else if ("file_request_open".equals(tag)) { + value = DeleteFileRequestError.FILE_REQUEST_OPEN; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestErrorException.java new file mode 100644 index 000000000..88df073ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * DeleteFileRequestError} error. + * + *

This exception is raised by {@link + * DbxUserFileRequestsRequests#delete(java.util.List)}.

+ */ +public class DeleteFileRequestErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/delete + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFileRequestsRequests#delete(java.util.List)}. + */ + public final DeleteFileRequestError errorValue; + + public DeleteFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, DeleteFileRequestError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestsResult.java new file mode 100644 index 000000000..4fefc56c4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestsResult.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Result for {@link DbxUserFileRequestsRequests#delete(List)}. + */ +public class DeleteFileRequestsResult { + // struct file_requests.DeleteFileRequestsResult (file_requests.stone) + + @Nonnull + protected final List fileRequests; + + /** + * Result for {@link DbxUserFileRequestsRequests#delete(List)}. + * + * @param fileRequests The file requests deleted by the request. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteFileRequestsResult(@Nonnull List fileRequests) { + if (fileRequests == null) { + throw new IllegalArgumentException("Required value for 'fileRequests' is null"); + } + for (FileRequest x : fileRequests) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileRequests' is null"); + } + } + this.fileRequests = fileRequests; + } + + /** + * The file requests deleted by the request. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFileRequests() { + return fileRequests; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequests + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteFileRequestsResult other = (DeleteFileRequestsResult) obj; + return (this.fileRequests == other.fileRequests) || (this.fileRequests.equals(other.fileRequests)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteFileRequestsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_requests"); + StoneSerializers.list(FileRequest.Serializer.INSTANCE).serialize(value.fileRequests, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteFileRequestsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteFileRequestsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_fileRequests = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_requests".equals(field)) { + f_fileRequests = StoneSerializers.list(FileRequest.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileRequests == null) { + throw new JsonParseException(p, "Required field \"file_requests\" missing."); + } + value = new DeleteFileRequestsResult(f_fileRequests); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/FileRequest.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/FileRequest.java new file mode 100644 index 000000000..55bb72810 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/FileRequest.java @@ -0,0 +1,554 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * A file request for receiving + * files into the user's Dropbox account. + */ +public class FileRequest { + // struct file_requests.FileRequest (file_requests.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final String url; + @Nonnull + protected final String title; + @Nullable + protected final String destination; + @Nonnull + protected final Date created; + @Nullable + protected final FileRequestDeadline deadline; + protected final boolean isOpen; + protected final long fileCount; + @Nullable + protected final String description; + + /** + * A file request for + * receiving files into the user's Dropbox account. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param id The ID of the file request. Must have length of at least 1, + * match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code null}. + * @param url The URL of the file request. Must have length of at least 1 + * and not be {@code null}. + * @param title The title of the file request. Must have length of at least + * 1 and not be {@code null}. + * @param created When this file request was created. Must not be {@code + * null}. + * @param isOpen Whether or not the file request is open. If the file + * request is closed, it will not accept any more file submissions. + * @param fileCount The number of files this file request has received. + * @param destination The path of the folder in the Dropbox where uploaded + * files will be sent. This can be {@code null} if the destination was + * removed. For apps with the app folder permission, this will be + * relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}". + * @param deadline The deadline for this file request. Only set if the + * request has a deadline. + * @param description A description of the file request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequest(@Nonnull String id, @Nonnull String url, @Nonnull String title, @Nonnull Date created, boolean isOpen, long fileCount, @Nullable String destination, @Nullable FileRequestDeadline deadline, @Nullable String description) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + if (!Pattern.matches("[-_0-9a-zA-Z]+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + if (url.length() < 1) { + throw new IllegalArgumentException("String 'url' is shorter than 1"); + } + this.url = url; + if (title == null) { + throw new IllegalArgumentException("Required value for 'title' is null"); + } + if (title.length() < 1) { + throw new IllegalArgumentException("String 'title' is shorter than 1"); + } + this.title = title; + if (destination != null) { + if (!Pattern.matches("/(.|[\\r\\n])*", destination)) { + throw new IllegalArgumentException("String 'destination' does not match pattern"); + } + } + this.destination = destination; + if (created == null) { + throw new IllegalArgumentException("Required value for 'created' is null"); + } + this.created = LangUtil.truncateMillis(created); + this.deadline = deadline; + this.isOpen = isOpen; + this.fileCount = fileCount; + this.description = description; + } + + /** + * A file request for + * receiving files into the user's Dropbox account. + * + *

The default values for unset fields will be used.

+ * + * @param id The ID of the file request. Must have length of at least 1, + * match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code null}. + * @param url The URL of the file request. Must have length of at least 1 + * and not be {@code null}. + * @param title The title of the file request. Must have length of at least + * 1 and not be {@code null}. + * @param created When this file request was created. Must not be {@code + * null}. + * @param isOpen Whether or not the file request is open. If the file + * request is closed, it will not accept any more file submissions. + * @param fileCount The number of files this file request has received. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequest(@Nonnull String id, @Nonnull String url, @Nonnull String title, @Nonnull Date created, boolean isOpen, long fileCount) { + this(id, url, title, created, isOpen, fileCount, null, null, null); + } + + /** + * The ID of the file request. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The URL of the file request. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * The title of the file request. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTitle() { + return title; + } + + /** + * When this file request was created. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getCreated() { + return created; + } + + /** + * Whether or not the file request is open. If the file request is closed, + * it will not accept any more file submissions. + * + * @return value for this field. + */ + public boolean getIsOpen() { + return isOpen; + } + + /** + * The number of files this file request has received. + * + * @return value for this field. + */ + public long getFileCount() { + return fileCount; + } + + /** + * The path of the folder in the Dropbox where uploaded files will be sent. + * This can be {@code null} if the destination was removed. For apps with + * the app folder permission, this will be relative to the app folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDestination() { + return destination; + } + + /** + * The deadline for this file request. Only set if the request has a + * deadline. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDeadline getDeadline() { + return deadline; + } + + /** + * A description of the file request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDescription() { + return description; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param id The ID of the file request. Must have length of at least 1, + * match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code null}. + * @param url The URL of the file request. Must have length of at least 1 + * and not be {@code null}. + * @param title The title of the file request. Must have length of at least + * 1 and not be {@code null}. + * @param created When this file request was created. Must not be {@code + * null}. + * @param isOpen Whether or not the file request is open. If the file + * request is closed, it will not accept any more file submissions. + * @param fileCount The number of files this file request has received. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String id, String url, String title, Date created, boolean isOpen, long fileCount) { + return new Builder(id, url, title, created, isOpen, fileCount); + } + + /** + * Builder for {@link FileRequest}. + */ + public static class Builder { + protected final String id; + protected final String url; + protected final String title; + protected final Date created; + protected final boolean isOpen; + protected final long fileCount; + + protected String destination; + protected FileRequestDeadline deadline; + protected String description; + + protected Builder(String id, String url, String title, Date created, boolean isOpen, long fileCount) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + if (!Pattern.matches("[-_0-9a-zA-Z]+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + if (url.length() < 1) { + throw new IllegalArgumentException("String 'url' is shorter than 1"); + } + this.url = url; + if (title == null) { + throw new IllegalArgumentException("Required value for 'title' is null"); + } + if (title.length() < 1) { + throw new IllegalArgumentException("String 'title' is shorter than 1"); + } + this.title = title; + if (created == null) { + throw new IllegalArgumentException("Required value for 'created' is null"); + } + this.created = LangUtil.truncateMillis(created); + this.isOpen = isOpen; + this.fileCount = fileCount; + this.destination = null; + this.deadline = null; + this.description = null; + } + + /** + * Set value for optional field. + * + * @param destination The path of the folder in the Dropbox where + * uploaded files will be sent. This can be {@code null} if the + * destination was removed. For apps with the app folder permission, + * this will be relative to the app folder. Must match pattern + * "{@code /(.|[\\r\\n])*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDestination(String destination) { + if (destination != null) { + if (!Pattern.matches("/(.|[\\r\\n])*", destination)) { + throw new IllegalArgumentException("String 'destination' does not match pattern"); + } + } + this.destination = destination; + return this; + } + + /** + * Set value for optional field. + * + * @param deadline The deadline for this file request. Only set if the + * request has a deadline. + * + * @return this builder + */ + public Builder withDeadline(FileRequestDeadline deadline) { + this.deadline = deadline; + return this; + } + + /** + * Set value for optional field. + * + * @param description A description of the file request. + * + * @return this builder + */ + public Builder withDescription(String description) { + this.description = description; + return this; + } + + /** + * Builds an instance of {@link FileRequest} configured with this + * builder's values + * + * @return new instance of {@link FileRequest} + */ + public FileRequest build() { + return new FileRequest(id, url, title, created, isOpen, fileCount, destination, deadline, description); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.url, + this.title, + this.destination, + this.created, + this.deadline, + this.isOpen, + this.fileCount, + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequest other = (FileRequest) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.title == other.title) || (this.title.equals(other.title))) + && ((this.created == other.created) || (this.created.equals(other.created))) + && (this.isOpen == other.isOpen) + && (this.fileCount == other.fileCount) + && ((this.destination == other.destination) || (this.destination != null && this.destination.equals(other.destination))) + && ((this.deadline == other.deadline) || (this.deadline != null && this.deadline.equals(other.deadline))) + && ((this.description == other.description) || (this.description != null && this.description.equals(other.description))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequest value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("title"); + StoneSerializers.string().serialize(value.title, g); + g.writeFieldName("created"); + StoneSerializers.timestamp().serialize(value.created, g); + g.writeFieldName("is_open"); + StoneSerializers.boolean_().serialize(value.isOpen, g); + g.writeFieldName("file_count"); + StoneSerializers.int64().serialize(value.fileCount, g); + if (value.destination != null) { + g.writeFieldName("destination"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.destination, g); + } + if (value.deadline != null) { + g.writeFieldName("deadline"); + StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).serialize(value.deadline, g); + } + if (value.description != null) { + g.writeFieldName("description"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.description, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequest deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequest value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_url = null; + String f_title = null; + Date f_created = null; + Boolean f_isOpen = null; + Long f_fileCount = null; + String f_destination = null; + FileRequestDeadline f_deadline = null; + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("title".equals(field)) { + f_title = StoneSerializers.string().deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.timestamp().deserialize(p); + } + else if ("is_open".equals(field)) { + f_isOpen = StoneSerializers.boolean_().deserialize(p); + } + else if ("file_count".equals(field)) { + f_fileCount = StoneSerializers.int64().deserialize(p); + } + else if ("destination".equals(field)) { + f_destination = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("deadline".equals(field)) { + f_deadline = StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_title == null) { + throw new JsonParseException(p, "Required field \"title\" missing."); + } + if (f_created == null) { + throw new JsonParseException(p, "Required field \"created\" missing."); + } + if (f_isOpen == null) { + throw new JsonParseException(p, "Required field \"is_open\" missing."); + } + if (f_fileCount == null) { + throw new JsonParseException(p, "Required field \"file_count\" missing."); + } + value = new FileRequest(f_id, f_url, f_title, f_created, f_isOpen, f_fileCount, f_destination, f_deadline, f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/FileRequestDeadline.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/FileRequestDeadline.java new file mode 100644 index 000000000..24ec6e518 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/FileRequestDeadline.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class FileRequestDeadline { + // struct file_requests.FileRequestDeadline (file_requests.stone) + + @Nonnull + protected final Date deadline; + @Nullable + protected final GracePeriod allowLateUploads; + + /** + * + * @param deadline The deadline for this file request. Must not be {@code + * null}. + * @param allowLateUploads If set, allow uploads after the deadline has + * passed. These uploads will be marked overdue. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestDeadline(@Nonnull Date deadline, @Nullable GracePeriod allowLateUploads) { + if (deadline == null) { + throw new IllegalArgumentException("Required value for 'deadline' is null"); + } + this.deadline = LangUtil.truncateMillis(deadline); + this.allowLateUploads = allowLateUploads; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param deadline The deadline for this file request. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestDeadline(@Nonnull Date deadline) { + this(deadline, null); + } + + /** + * The deadline for this file request. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getDeadline() { + return deadline; + } + + /** + * If set, allow uploads after the deadline has passed. These uploads + * will be marked overdue. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GracePeriod getAllowLateUploads() { + return allowLateUploads; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.deadline, + this.allowLateUploads + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestDeadline other = (FileRequestDeadline) obj; + return ((this.deadline == other.deadline) || (this.deadline.equals(other.deadline))) + && ((this.allowLateUploads == other.allowLateUploads) || (this.allowLateUploads != null && this.allowLateUploads.equals(other.allowLateUploads))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestDeadline value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("deadline"); + StoneSerializers.timestamp().serialize(value.deadline, g); + if (value.allowLateUploads != null) { + g.writeFieldName("allow_late_uploads"); + StoneSerializers.nullable(GracePeriod.Serializer.INSTANCE).serialize(value.allowLateUploads, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestDeadline deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestDeadline value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_deadline = null; + GracePeriod f_allowLateUploads = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("deadline".equals(field)) { + f_deadline = StoneSerializers.timestamp().deserialize(p); + } + else if ("allow_late_uploads".equals(field)) { + f_allowLateUploads = StoneSerializers.nullable(GracePeriod.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_deadline == null) { + throw new JsonParseException(p, "Required field \"deadline\" missing."); + } + value = new FileRequestDeadline(f_deadline, f_allowLateUploads); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestArgs.java new file mode 100644 index 000000000..a2b511ac9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestArgs.java @@ -0,0 +1,160 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link DbxUserFileRequestsRequests#get(String)}. + */ +class GetFileRequestArgs { + // struct file_requests.GetFileRequestArgs (file_requests.stone) + + @Nonnull + protected final String id; + + /** + * Arguments for {@link DbxUserFileRequestsRequests#get(String)}. + * + * @param id The ID of the file request to retrieve. Must have length of at + * least 1, match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetFileRequestArgs(@Nonnull String id) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + if (!Pattern.matches("[-_0-9a-zA-Z]+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + } + + /** + * The ID of the file request to retrieve. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetFileRequestArgs other = (GetFileRequestArgs) obj; + return (this.id == other.id) || (this.id.equals(other.id)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetFileRequestArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetFileRequestArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetFileRequestArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new GetFileRequestArgs(f_id); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestError.java new file mode 100644 index 000000000..dbd870c09 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestError.java @@ -0,0 +1,163 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * There was an error retrieving the specified file request. + */ +public enum GetFileRequestError { + // union file_requests.GetFileRequestError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This file request ID was not found. + */ + NOT_FOUND, + /** + * The specified path is not a folder. + */ + NOT_A_FOLDER, + /** + * This file request is not accessible to this app. Apps with the app folder + * permission can only access file requests in their app folder. + */ + APP_LACKS_ACCESS, + /** + * This user doesn't have permission to access or modify this file request. + */ + NO_PERMISSION, + /** + * This user's email address is not verified. File requests are only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * There was an error validating the request. For example, the title was + * invalid, or there were disallowed characters in the destination path. + */ + VALIDATION_ERROR; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetFileRequestError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case NOT_A_FOLDER: { + g.writeString("not_a_folder"); + break; + } + case APP_LACKS_ACCESS: { + g.writeString("app_lacks_access"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case VALIDATION_ERROR: { + g.writeString("validation_error"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GetFileRequestError deserialize(JsonParser p) throws IOException, JsonParseException { + GetFileRequestError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = GetFileRequestError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = GetFileRequestError.OTHER; + } + else if ("not_found".equals(tag)) { + value = GetFileRequestError.NOT_FOUND; + } + else if ("not_a_folder".equals(tag)) { + value = GetFileRequestError.NOT_A_FOLDER; + } + else if ("app_lacks_access".equals(tag)) { + value = GetFileRequestError.APP_LACKS_ACCESS; + } + else if ("no_permission".equals(tag)) { + value = GetFileRequestError.NO_PERMISSION; + } + else if ("email_unverified".equals(tag)) { + value = GetFileRequestError.EMAIL_UNVERIFIED; + } + else if ("validation_error".equals(tag)) { + value = GetFileRequestError.VALIDATION_ERROR; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestErrorException.java new file mode 100644 index 000000000..5de46275c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GetFileRequestError} + * error. + * + *

This exception is raised by {@link + * DbxUserFileRequestsRequests#get(String)}.

+ */ +public class GetFileRequestErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/get + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFileRequestsRequests#get(String)}. + */ + public final GetFileRequestError errorValue; + + public GetFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, GetFileRequestError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GracePeriod.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GracePeriod.java new file mode 100644 index 000000000..a4d6df999 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GracePeriod.java @@ -0,0 +1,113 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GracePeriod { + // union file_requests.GracePeriod (file_requests.stone) + ONE_DAY, + TWO_DAYS, + SEVEN_DAYS, + THIRTY_DAYS, + ALWAYS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GracePeriod value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ONE_DAY: { + g.writeString("one_day"); + break; + } + case TWO_DAYS: { + g.writeString("two_days"); + break; + } + case SEVEN_DAYS: { + g.writeString("seven_days"); + break; + } + case THIRTY_DAYS: { + g.writeString("thirty_days"); + break; + } + case ALWAYS: { + g.writeString("always"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GracePeriod deserialize(JsonParser p) throws IOException, JsonParseException { + GracePeriod value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("one_day".equals(tag)) { + value = GracePeriod.ONE_DAY; + } + else if ("two_days".equals(tag)) { + value = GracePeriod.TWO_DAYS; + } + else if ("seven_days".equals(tag)) { + value = GracePeriod.SEVEN_DAYS; + } + else if ("thirty_days".equals(tag)) { + value = GracePeriod.THIRTY_DAYS; + } + else if ("always".equals(tag)) { + value = GracePeriod.ALWAYS; + } + else { + value = GracePeriod.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsArg.java new file mode 100644 index 000000000..525f7765a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsArg.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Arguments for {@link DbxUserFileRequestsRequests#listV2(long)}. + */ +class ListFileRequestsArg { + // struct file_requests.ListFileRequestsArg (file_requests.stone) + + protected final long limit; + + /** + * Arguments for {@link DbxUserFileRequestsRequests#listV2(long)}. + * + * @param limit The maximum number of file requests that should be returned + * per request. + */ + public ListFileRequestsArg(long limit) { + this.limit = limit; + } + + /** + * Arguments for {@link DbxUserFileRequestsRequests#listV2(long)}. + * + *

The default values for unset fields will be used.

+ */ + public ListFileRequestsArg() { + this(1000L); + } + + /** + * The maximum number of file requests that should be returned per request. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileRequestsArg other = (ListFileRequestsArg) obj; + return this.limit == other.limit; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileRequestsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt64().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileRequestsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileRequestsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListFileRequestsArg(f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueArg.java new file mode 100644 index 000000000..d2583d229 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueArg.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListFileRequestsContinueArg { + // struct file_requests.ListFileRequestsContinueArg (file_requests.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor returned by the previous API call specified in + * the endpoint description. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileRequestsContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The cursor returned by the previous API call specified in the endpoint + * description. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileRequestsContinueArg other = (ListFileRequestsContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileRequestsContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileRequestsContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileRequestsContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFileRequestsContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueError.java new file mode 100644 index 000000000..694d0e4d3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueError.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * There was an error retrieving the file requests. + */ +public enum ListFileRequestsContinueError { + // union file_requests.ListFileRequestsContinueError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The cursor is invalid. + */ + INVALID_CURSOR; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileRequestsContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public ListFileRequestsContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFileRequestsContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = ListFileRequestsContinueError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = ListFileRequestsContinueError.OTHER; + } + else if ("invalid_cursor".equals(tag)) { + value = ListFileRequestsContinueError.INVALID_CURSOR; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueErrorException.java new file mode 100644 index 000000000..3a7b8b02f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFileRequestsContinueError} error. + * + *

This exception is raised by {@link + * DbxUserFileRequestsRequests#listContinue(String)}.

+ */ +public class ListFileRequestsContinueErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFileRequestsRequests#listContinue(String)}. + */ + public final ListFileRequestsContinueError errorValue; + + public ListFileRequestsContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFileRequestsContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsError.java new file mode 100644 index 000000000..b8c0b93ca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsError.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * There was an error retrieving the file requests. + */ +public enum ListFileRequestsError { + // union file_requests.ListFileRequestsError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileRequestsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public ListFileRequestsError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFileRequestsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = ListFileRequestsError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = ListFileRequestsError.OTHER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsErrorException.java new file mode 100644 index 000000000..2978b41bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFileRequestsError} error. + * + *

This exception is raised by {@link DbxUserFileRequestsRequests#list} and + * {@link DbxUserFileRequestsRequests#listV2(long)}.

+ */ +public class ListFileRequestsErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/list + // 2/file_requests/list_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFileRequestsRequests#list} and {@link + * DbxUserFileRequestsRequests#listV2(long)}. + */ + public final ListFileRequestsError errorValue; + + public ListFileRequestsErrorException(String routeName, String requestId, LocalizedText userMessage, ListFileRequestsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsResult.java new file mode 100644 index 000000000..01bc372b2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsResult.java @@ -0,0 +1,160 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Result for {@link DbxUserFileRequestsRequests#list}. + */ +public class ListFileRequestsResult { + // struct file_requests.ListFileRequestsResult (file_requests.stone) + + @Nonnull + protected final List fileRequests; + + /** + * Result for {@link DbxUserFileRequestsRequests#list}. + * + * @param fileRequests The file requests owned by this user. Apps with the + * app folder permission will only see file requests in their app + * folder. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileRequestsResult(@Nonnull List fileRequests) { + if (fileRequests == null) { + throw new IllegalArgumentException("Required value for 'fileRequests' is null"); + } + for (FileRequest x : fileRequests) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileRequests' is null"); + } + } + this.fileRequests = fileRequests; + } + + /** + * The file requests owned by this user. Apps with the app folder permission + * will only see file requests in their app folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFileRequests() { + return fileRequests; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequests + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileRequestsResult other = (ListFileRequestsResult) obj; + return (this.fileRequests == other.fileRequests) || (this.fileRequests.equals(other.fileRequests)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileRequestsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_requests"); + StoneSerializers.list(FileRequest.Serializer.INSTANCE).serialize(value.fileRequests, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileRequestsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileRequestsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_fileRequests = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_requests".equals(field)) { + f_fileRequests = StoneSerializers.list(FileRequest.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileRequests == null) { + throw new JsonParseException(p, "Required field \"file_requests\" missing."); + } + value = new ListFileRequestsResult(f_fileRequests); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsV2Result.java new file mode 100644 index 000000000..e7735810f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/ListFileRequestsV2Result.java @@ -0,0 +1,221 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Result for {@link DbxUserFileRequestsRequests#listV2(long)} and {@link + * DbxUserFileRequestsRequests#listContinue(String)}. + */ +public class ListFileRequestsV2Result { + // struct file_requests.ListFileRequestsV2Result (file_requests.stone) + + @Nonnull + protected final List fileRequests; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * Result for {@link DbxUserFileRequestsRequests#listV2(long)} and {@link + * DbxUserFileRequestsRequests#listContinue(String)}. + * + * @param fileRequests The file requests owned by this user. Apps with the + * app folder permission will only see file requests in their app + * folder. Must not contain a {@code null} item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxUserFileRequestsRequests#listContinue(String)} to obtain + * additional file requests. Must not be {@code null}. + * @param hasMore Is true if there are additional file requests that have + * not been returned yet. An additional call to :route:list/continue` + * can retrieve them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileRequestsV2Result(@Nonnull List fileRequests, @Nonnull String cursor, boolean hasMore) { + if (fileRequests == null) { + throw new IllegalArgumentException("Required value for 'fileRequests' is null"); + } + for (FileRequest x : fileRequests) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileRequests' is null"); + } + } + this.fileRequests = fileRequests; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * The file requests owned by this user. Apps with the app folder permission + * will only see file requests in their app folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFileRequests() { + return fileRequests; + } + + /** + * Pass the cursor into {@link + * DbxUserFileRequestsRequests#listContinue(String)} to obtain additional + * file requests. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there are additional file requests that have not been returned + * yet. An additional call to :route:list/continue` can retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequests, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileRequestsV2Result other = (ListFileRequestsV2Result) obj; + return ((this.fileRequests == other.fileRequests) || (this.fileRequests.equals(other.fileRequests))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileRequestsV2Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_requests"); + StoneSerializers.list(FileRequest.Serializer.INSTANCE).serialize(value.fileRequests, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileRequestsV2Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileRequestsV2Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_fileRequests = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_requests".equals(field)) { + f_fileRequests = StoneSerializers.list(FileRequest.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileRequests == null) { + throw new JsonParseException(p, "Required field \"file_requests\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListFileRequestsV2Result(f_fileRequests, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateBuilder.java new file mode 100644 index 000000000..0defa72af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateBuilder.java @@ -0,0 +1,125 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserFileRequestsRequests#updateBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class UpdateBuilder { + private final DbxUserFileRequestsRequests _client; + private final UpdateFileRequestArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue + * file_requests requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + UpdateBuilder(DbxUserFileRequestsRequests _client, UpdateFileRequestArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param title The new title of the file request. Must not be empty. Must + * have length of at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateBuilder withTitle(String title) { + this._builder.withTitle(title); + return this; + } + + /** + * Set value for optional field. + * + * @param destination The new path of the folder in the Dropbox where + * uploaded files will be sent. For apps with the app folder permission, + * this will be relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateBuilder withDestination(String destination) { + this._builder.withDestination(destination); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * UpdateFileRequestDeadline.NO_UPDATE}.

+ * + * @param deadline The new deadline for the file request. Deadlines can + * only be set by Professional and Business accounts. Must not be {@code + * null}. Defaults to {@code UpdateFileRequestDeadline.NO_UPDATE} when + * set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateBuilder withDeadline(UpdateFileRequestDeadline deadline) { + this._builder.withDeadline(deadline); + return this; + } + + /** + * Set value for optional field. + * + * @param open Whether to set this file request as open or closed. + * + * @return this builder + */ + public UpdateBuilder withOpen(Boolean open) { + this._builder.withOpen(open); + return this; + } + + /** + * Set value for optional field. + * + * @param description The description of the file request. + * + * @return this builder + */ + public UpdateBuilder withDescription(String description) { + this._builder.withDescription(description); + return this; + } + + /** + * Issues the request. + */ + public FileRequest start() throws UpdateFileRequestErrorException, DbxException { + UpdateFileRequestArgs arg_ = this._builder.build(); + return _client.update(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestArgs.java new file mode 100644 index 000000000..6b36f8db7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestArgs.java @@ -0,0 +1,473 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments for {@link DbxUserFileRequestsRequests#update(String)}. + */ +class UpdateFileRequestArgs { + // struct file_requests.UpdateFileRequestArgs (file_requests.stone) + + @Nonnull + protected final String id; + @Nullable + protected final String title; + @Nullable + protected final String destination; + @Nonnull + protected final UpdateFileRequestDeadline deadline; + @Nullable + protected final Boolean open; + @Nullable + protected final String description; + + /** + * Arguments for {@link DbxUserFileRequestsRequests#update(String)}. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param id The ID of the file request to update. Must have length of at + * least 1, match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code + * null}. + * @param title The new title of the file request. Must not be empty. Must + * have length of at least 1. + * @param destination The new path of the folder in the Dropbox where + * uploaded files will be sent. For apps with the app folder permission, + * this will be relative to the app folder. Must match pattern "{@code + * /(.|[\\r\\n])*}". + * @param deadline The new deadline for the file request. Deadlines can + * only be set by Professional and Business accounts. Must not be {@code + * null}. + * @param open Whether to set this file request as open or closed. + * @param description The description of the file request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFileRequestArgs(@Nonnull String id, @Nullable String title, @Nullable String destination, @Nonnull UpdateFileRequestDeadline deadline, @Nullable Boolean open, @Nullable String description) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + if (!Pattern.matches("[-_0-9a-zA-Z]+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (title != null) { + if (title.length() < 1) { + throw new IllegalArgumentException("String 'title' is shorter than 1"); + } + } + this.title = title; + if (destination != null) { + if (!Pattern.matches("/(.|[\\r\\n])*", destination)) { + throw new IllegalArgumentException("String 'destination' does not match pattern"); + } + } + this.destination = destination; + if (deadline == null) { + throw new IllegalArgumentException("Required value for 'deadline' is null"); + } + this.deadline = deadline; + this.open = open; + this.description = description; + } + + /** + * Arguments for {@link DbxUserFileRequestsRequests#update(String)}. + * + *

The default values for unset fields will be used.

+ * + * @param id The ID of the file request to update. Must have length of at + * least 1, match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFileRequestArgs(@Nonnull String id) { + this(id, null, null, UpdateFileRequestDeadline.NO_UPDATE, null, null); + } + + /** + * The ID of the file request to update. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The new title of the file request. Must not be empty. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTitle() { + return title; + } + + /** + * The new path of the folder in the Dropbox where uploaded files will be + * sent. For apps with the app folder permission, this will be relative to + * the app folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDestination() { + return destination; + } + + /** + * The new deadline for the file request. Deadlines can only be set by + * Professional and Business accounts. + * + * @return value for this field, or {@code null} if not present. Defaults to + * UpdateFileRequestDeadline.NO_UPDATE. + */ + @Nonnull + public UpdateFileRequestDeadline getDeadline() { + return deadline; + } + + /** + * Whether to set this file request as open or closed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getOpen() { + return open; + } + + /** + * The description of the file request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDescription() { + return description; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param id The ID of the file request to update. Must have length of at + * least 1, match pattern "{@code [-_0-9a-zA-Z]+}", and not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String id) { + return new Builder(id); + } + + /** + * Builder for {@link UpdateFileRequestArgs}. + */ + public static class Builder { + protected final String id; + + protected String title; + protected String destination; + protected UpdateFileRequestDeadline deadline; + protected Boolean open; + protected String description; + + protected Builder(String id) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + if (!Pattern.matches("[-_0-9a-zA-Z]+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + this.title = null; + this.destination = null; + this.deadline = UpdateFileRequestDeadline.NO_UPDATE; + this.open = null; + this.description = null; + } + + /** + * Set value for optional field. + * + * @param title The new title of the file request. Must not be empty. + * Must have length of at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withTitle(String title) { + if (title != null) { + if (title.length() < 1) { + throw new IllegalArgumentException("String 'title' is shorter than 1"); + } + } + this.title = title; + return this; + } + + /** + * Set value for optional field. + * + * @param destination The new path of the folder in the Dropbox where + * uploaded files will be sent. For apps with the app folder + * permission, this will be relative to the app folder. Must match + * pattern "{@code /(.|[\\r\\n])*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDestination(String destination) { + if (destination != null) { + if (!Pattern.matches("/(.|[\\r\\n])*", destination)) { + throw new IllegalArgumentException("String 'destination' does not match pattern"); + } + } + this.destination = destination; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * UpdateFileRequestDeadline.NO_UPDATE}.

+ * + * @param deadline The new deadline for the file request. Deadlines can + * only be set by Professional and Business accounts. Must not be + * {@code null}. Defaults to {@code + * UpdateFileRequestDeadline.NO_UPDATE} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDeadline(UpdateFileRequestDeadline deadline) { + if (deadline != null) { + this.deadline = deadline; + } + else { + this.deadline = UpdateFileRequestDeadline.NO_UPDATE; + } + return this; + } + + /** + * Set value for optional field. + * + * @param open Whether to set this file request as open or closed. + * + * @return this builder + */ + public Builder withOpen(Boolean open) { + this.open = open; + return this; + } + + /** + * Set value for optional field. + * + * @param description The description of the file request. + * + * @return this builder + */ + public Builder withDescription(String description) { + this.description = description; + return this; + } + + /** + * Builds an instance of {@link UpdateFileRequestArgs} configured with + * this builder's values + * + * @return new instance of {@link UpdateFileRequestArgs} + */ + public UpdateFileRequestArgs build() { + return new UpdateFileRequestArgs(id, title, destination, deadline, open, description); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.title, + this.destination, + this.deadline, + this.open, + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UpdateFileRequestArgs other = (UpdateFileRequestArgs) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.title == other.title) || (this.title != null && this.title.equals(other.title))) + && ((this.destination == other.destination) || (this.destination != null && this.destination.equals(other.destination))) + && ((this.deadline == other.deadline) || (this.deadline.equals(other.deadline))) + && ((this.open == other.open) || (this.open != null && this.open.equals(other.open))) + && ((this.description == other.description) || (this.description != null && this.description.equals(other.description))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFileRequestArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (value.title != null) { + g.writeFieldName("title"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.title, g); + } + if (value.destination != null) { + g.writeFieldName("destination"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.destination, g); + } + g.writeFieldName("deadline"); + UpdateFileRequestDeadline.Serializer.INSTANCE.serialize(value.deadline, g); + if (value.open != null) { + g.writeFieldName("open"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.open, g); + } + if (value.description != null) { + g.writeFieldName("description"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.description, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UpdateFileRequestArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UpdateFileRequestArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_title = null; + String f_destination = null; + UpdateFileRequestDeadline f_deadline = UpdateFileRequestDeadline.NO_UPDATE; + Boolean f_open = null; + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("title".equals(field)) { + f_title = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("destination".equals(field)) { + f_destination = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("deadline".equals(field)) { + f_deadline = UpdateFileRequestDeadline.Serializer.INSTANCE.deserialize(p); + } + else if ("open".equals(field)) { + f_open = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new UpdateFileRequestArgs(f_id, f_title, f_destination, f_deadline, f_open, f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestDeadline.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestDeadline.java new file mode 100644 index 000000000..be65702cf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestDeadline.java @@ -0,0 +1,321 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UpdateFileRequestDeadline { + // union file_requests.UpdateFileRequestDeadline (file_requests.stone) + + /** + * Discriminating tag type for {@link UpdateFileRequestDeadline}. + */ + public enum Tag { + /** + * Do not change the file request's deadline. + */ + NO_UPDATE, + /** + * If {@code null}, the file request's deadline is cleared. + */ + UPDATE, // FileRequestDeadline + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Do not change the file request's deadline. + */ + public static final UpdateFileRequestDeadline NO_UPDATE = new UpdateFileRequestDeadline().withTag(Tag.NO_UPDATE); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UpdateFileRequestDeadline OTHER = new UpdateFileRequestDeadline().withTag(Tag.OTHER); + + private Tag _tag; + private FileRequestDeadline updateValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UpdateFileRequestDeadline() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UpdateFileRequestDeadline withTag(Tag _tag) { + UpdateFileRequestDeadline result = new UpdateFileRequestDeadline(); + result._tag = _tag; + return result; + } + + /** + * + * @param updateValue If {@code null}, the file request's deadline is + * cleared. + * @param _tag Discriminating tag for this instance. + */ + private UpdateFileRequestDeadline withTagAndUpdate(Tag _tag, FileRequestDeadline updateValue) { + UpdateFileRequestDeadline result = new UpdateFileRequestDeadline(); + result._tag = _tag; + result.updateValue = updateValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UpdateFileRequestDeadline}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NO_UPDATE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NO_UPDATE}, + * {@code false} otherwise. + */ + public boolean isNoUpdate() { + return this._tag == Tag.NO_UPDATE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#UPDATE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#UPDATE}, + * {@code false} otherwise. + */ + public boolean isUpdate() { + return this._tag == Tag.UPDATE; + } + + /** + * Returns an instance of {@code UpdateFileRequestDeadline} that has its tag + * set to {@link Tag#UPDATE}. + * + *

If {@code null}, the file request's deadline is cleared.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdateFileRequestDeadline} with its tag set to + * {@link Tag#UPDATE}. + */ + public static UpdateFileRequestDeadline update(FileRequestDeadline value) { + return new UpdateFileRequestDeadline().withTagAndUpdate(Tag.UPDATE, value); + } + + /** + * Returns an instance of {@code UpdateFileRequestDeadline} that has its tag + * set to {@link Tag#UPDATE}. + * + *

If {@code null}, the file request's deadline is cleared.

+ * + * @return Instance of {@code UpdateFileRequestDeadline} with its tag set to + * {@link Tag#UPDATE}. + */ + public static UpdateFileRequestDeadline update() { + return update(null); + } + + /** + * If {@code null}, the file request's deadline is cleared. + * + *

This instance must be tagged as {@link Tag#UPDATE}.

+ * + * @return The {@link FileRequestDeadline} value associated with this + * instance if {@link #isUpdate} is {@code true}. + * + * @throws IllegalStateException If {@link #isUpdate} is {@code false}. + */ + public FileRequestDeadline getUpdateValue() { + if (this._tag != Tag.UPDATE) { + throw new IllegalStateException("Invalid tag: required Tag.UPDATE, but was Tag." + this._tag.name()); + } + return updateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.updateValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UpdateFileRequestDeadline) { + UpdateFileRequestDeadline other = (UpdateFileRequestDeadline) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case NO_UPDATE: + return true; + case UPDATE: + return (this.updateValue == other.updateValue) || (this.updateValue != null && this.updateValue.equals(other.updateValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFileRequestDeadline value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case NO_UPDATE: { + g.writeString("no_update"); + break; + } + case UPDATE: { + g.writeStartObject(); + writeTag("update", g); + StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).serialize(value.updateValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UpdateFileRequestDeadline deserialize(JsonParser p) throws IOException, JsonParseException { + UpdateFileRequestDeadline value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("no_update".equals(tag)) { + value = UpdateFileRequestDeadline.NO_UPDATE; + } + else if ("update".equals(tag)) { + FileRequestDeadline fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + fieldValue = StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).deserialize(p, true); + } + if (fieldValue == null) { + value = UpdateFileRequestDeadline.update(); + } + else { + value = UpdateFileRequestDeadline.update(fieldValue); + } + } + else { + value = UpdateFileRequestDeadline.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestError.java new file mode 100644 index 000000000..6cd546f1b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestError.java @@ -0,0 +1,163 @@ +/* DO NOT EDIT */ +/* This file was generated from file_requests.stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * There is an error updating the file request. + */ +public enum UpdateFileRequestError { + // union file_requests.UpdateFileRequestError (file_requests.stone) + /** + * This user's Dropbox Business team doesn't allow file requests. + */ + DISABLED_FOR_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This file request ID was not found. + */ + NOT_FOUND, + /** + * The specified path is not a folder. + */ + NOT_A_FOLDER, + /** + * This file request is not accessible to this app. Apps with the app folder + * permission can only access file requests in their app folder. + */ + APP_LACKS_ACCESS, + /** + * This user doesn't have permission to access or modify this file request. + */ + NO_PERMISSION, + /** + * This user's email address is not verified. File requests are only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * There was an error validating the request. For example, the title was + * invalid, or there were disallowed characters in the destination path. + */ + VALIDATION_ERROR; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFileRequestError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED_FOR_TEAM: { + g.writeString("disabled_for_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case NOT_A_FOLDER: { + g.writeString("not_a_folder"); + break; + } + case APP_LACKS_ACCESS: { + g.writeString("app_lacks_access"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case VALIDATION_ERROR: { + g.writeString("validation_error"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public UpdateFileRequestError deserialize(JsonParser p) throws IOException, JsonParseException { + UpdateFileRequestError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled_for_team".equals(tag)) { + value = UpdateFileRequestError.DISABLED_FOR_TEAM; + } + else if ("other".equals(tag)) { + value = UpdateFileRequestError.OTHER; + } + else if ("not_found".equals(tag)) { + value = UpdateFileRequestError.NOT_FOUND; + } + else if ("not_a_folder".equals(tag)) { + value = UpdateFileRequestError.NOT_A_FOLDER; + } + else if ("app_lacks_access".equals(tag)) { + value = UpdateFileRequestError.APP_LACKS_ACCESS; + } + else if ("no_permission".equals(tag)) { + value = UpdateFileRequestError.NO_PERMISSION; + } + else if ("email_unverified".equals(tag)) { + value = UpdateFileRequestError.EMAIL_UNVERIFIED; + } + else if ("validation_error".equals(tag)) { + value = UpdateFileRequestError.VALIDATION_ERROR; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestErrorException.java new file mode 100644 index 000000000..f86c46428 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.filerequests; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UpdateFileRequestError} error. + * + *

This exception is raised by {@link + * DbxUserFileRequestsRequests#update(String)}.

+ */ +public class UpdateFileRequestErrorException extends DbxApiException { + // exception for routes: + // 2/file_requests/update + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFileRequestsRequests#update(String)}. + */ + public final UpdateFileRequestError errorValue; + + public UpdateFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, UpdateFileRequestError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/package-info.java new file mode 100644 index 000000000..4bd5f6586 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/package-info.java @@ -0,0 +1,11 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * This namespace contains endpoints and data types for file request operations. + * + *

See {@link com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests} + * for a list of possible requests for this namespace.

+ */ +package com.dropbox.core.v2.filerequests; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagArg.java new file mode 100644 index 000000000..273b89248 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagArg.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class AddTagArg { + // struct files.AddTagArg (file_tagging.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final String tagText; + + /** + * + * @param path Path to the item to be tagged. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param tagText The value of the tag to add. Will be automatically + * converted to lowercase letters. Must have length of at least 1, have + * length of at most 32, match pattern "{@code [\\w]+}", and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddTagArg(@Nonnull String path, @Nonnull String tagText) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (tagText == null) { + throw new IllegalArgumentException("Required value for 'tagText' is null"); + } + if (tagText.length() < 1) { + throw new IllegalArgumentException("String 'tagText' is shorter than 1"); + } + if (tagText.length() > 32) { + throw new IllegalArgumentException("String 'tagText' is longer than 32"); + } + if (!Pattern.matches("[\\w]+", tagText)) { + throw new IllegalArgumentException("String 'tagText' does not match pattern"); + } + this.tagText = tagText; + } + + /** + * Path to the item to be tagged. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The value of the tag to add. Will be automatically converted to lowercase + * letters. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTagText() { + return tagText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.tagText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddTagArg other = (AddTagArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.tagText == other.tagText) || (this.tagText.equals(other.tagText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddTagArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("tag_text"); + StoneSerializers.string().serialize(value.tagText, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddTagArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddTagArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_tagText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("tag_text".equals(field)) { + f_tagText = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_tagText == null) { + throw new JsonParseException(p, "Required field \"tag_text\" missing."); + } + value = new AddTagArg(f_path, f_tagText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagError.java new file mode 100644 index 000000000..48a3d273c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagError.java @@ -0,0 +1,306 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class AddTagError { + // union files.AddTagError (file_tagging.stone) + + /** + * Discriminating tag type for {@link AddTagError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * The item already has the maximum supported number of tags. + */ + TOO_MANY_TAGS; + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AddTagError OTHER = new AddTagError().withTag(Tag.OTHER); + /** + * The item already has the maximum supported number of tags. + */ + public static final AddTagError TOO_MANY_TAGS = new AddTagError().withTag(Tag.TOO_MANY_TAGS); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AddTagError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private AddTagError withTag(Tag _tag) { + AddTagError result = new AddTagError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddTagError withTagAndPath(Tag _tag, LookupError pathValue) { + AddTagError result = new AddTagError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AddTagError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code AddTagError} that has its tag set to {@link + * Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddTagError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AddTagError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AddTagError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_TAGS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_TAGS}, {@code false} otherwise. + */ + public boolean isTooManyTags() { + return this._tag == Tag.TOO_MANY_TAGS; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AddTagError) { + AddTagError other = (AddTagError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + case TOO_MANY_TAGS: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddTagError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case TOO_MANY_TAGS: { + g.writeString("too_many_tags"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public AddTagError deserialize(JsonParser p) throws IOException, JsonParseException { + AddTagError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = AddTagError.path(fieldValue); + } + else if ("other".equals(tag)) { + value = AddTagError.OTHER; + } + else if ("too_many_tags".equals(tag)) { + value = AddTagError.TOO_MANY_TAGS; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagErrorException.java new file mode 100644 index 000000000..59ef69014 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link AddTagError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#tagsAdd(String,String)}.

+ */ +public class AddTagErrorException extends DbxApiException { + // exception for routes: + // 2/files/tags/add + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#tagsAdd(String,String)}. + */ + public final AddTagError errorValue; + + public AddTagErrorException(String routeName, String requestId, LocalizedText userMessage, AddTagError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataArg.java new file mode 100644 index 000000000..ba1a02d45 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataArg.java @@ -0,0 +1,430 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class AlphaGetMetadataArg extends GetMetadataArg { + // struct files.AlphaGetMetadataArg (files.stone) + + @Nullable + protected final List includePropertyTemplates; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. + * @param includeDeleted If true, {@link DeletedMetadata} will be returned + * for deleted file or folder, otherwise {@link LookupError#NOT_FOUND} + * will be returned. + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * @param includePropertyTemplates If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set for files with custom + * properties. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AlphaGetMetadataArg(@Nonnull String path, boolean includeMediaInfo, boolean includeDeleted, boolean includeHasExplicitSharedMembers, @Nullable TemplateFilterBase includePropertyGroups, @Nullable List includePropertyTemplates) { + super(path, includeMediaInfo, includeDeleted, includeHasExplicitSharedMembers, includePropertyGroups); + if (includePropertyTemplates != null) { + for (String x : includePropertyTemplates) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'includePropertyTemplates' is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list 'includePropertyTemplates' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", x)) { + throw new IllegalArgumentException("Stringan item in list 'includePropertyTemplates' does not match pattern"); + } + } + } + this.includePropertyTemplates = includePropertyTemplates; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AlphaGetMetadataArg(@Nonnull String path) { + this(path, false, false, false, null, null); + } + + /** + * The path of a file or folder on Dropbox. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * If true, {@link FileMetadata#getMediaInfo} is set for photo and video. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeMediaInfo() { + return includeMediaInfo; + } + + /** + * If true, {@link DeletedMetadata} will be returned for deleted file or + * folder, otherwise {@link LookupError#NOT_FOUND} will be returned. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeDeleted() { + return includeDeleted; + } + + /** + * If true, the results will include a flag for each file indicating whether + * or not that file has any explicit members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeHasExplicitSharedMembers() { + return includeHasExplicitSharedMembers; + } + + /** + * If set to a valid list of template IDs, {@link + * FileMetadata#getPropertyGroups} is set if there exists property data + * associated with the file and each of the listed templates. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TemplateFilterBase getIncludePropertyGroups() { + return includePropertyGroups; + } + + /** + * If set to a valid list of template IDs, {@link + * FileMetadata#getPropertyGroups} is set for files with custom properties. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getIncludePropertyTemplates() { + return includePropertyTemplates; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link AlphaGetMetadataArg}. + */ + public static class Builder extends GetMetadataArg.Builder { + + protected List includePropertyTemplates; + + protected Builder(String path) { + super(path); + this.includePropertyTemplates = null; + } + + /** + * Set value for optional field. + * + * @param includePropertyTemplates If set to a valid list of template + * IDs, {@link FileMetadata#getPropertyGroups} is set for files with + * custom properties. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withIncludePropertyTemplates(List includePropertyTemplates) { + if (includePropertyTemplates != null) { + for (String x : includePropertyTemplates) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'includePropertyTemplates' is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list 'includePropertyTemplates' is shorter than 1"); + } + if (!Pattern.matches("(/|ptid:).*", x)) { + throw new IllegalArgumentException("Stringan item in list 'includePropertyTemplates' does not match pattern"); + } + } + } + this.includePropertyTemplates = includePropertyTemplates; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} + * is set for photo and video. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withIncludeMediaInfo(Boolean includeMediaInfo) { + super.withIncludeMediaInfo(includeMediaInfo); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeDeleted If true, {@link DeletedMetadata} will be + * returned for deleted file or folder, otherwise {@link + * LookupError#NOT_FOUND} will be returned. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeDeleted(Boolean includeDeleted) { + super.withIncludeDeleted(includeDeleted); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeHasExplicitSharedMembers If true, the results will + * include a flag for each file indicating whether or not that file + * has any explicit members. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + super.withIncludeHasExplicitSharedMembers(includeHasExplicitSharedMembers); + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public Builder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + super.withIncludePropertyGroups(includePropertyGroups); + return this; + } + + /** + * Builds an instance of {@link AlphaGetMetadataArg} configured with + * this builder's values + * + * @return new instance of {@link AlphaGetMetadataArg} + */ + public AlphaGetMetadataArg build() { + return new AlphaGetMetadataArg(path, includeMediaInfo, includeDeleted, includeHasExplicitSharedMembers, includePropertyGroups, includePropertyTemplates); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.includePropertyTemplates + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AlphaGetMetadataArg other = (AlphaGetMetadataArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && (this.includeMediaInfo == other.includeMediaInfo) + && (this.includeDeleted == other.includeDeleted) + && (this.includeHasExplicitSharedMembers == other.includeHasExplicitSharedMembers) + && ((this.includePropertyGroups == other.includePropertyGroups) || (this.includePropertyGroups != null && this.includePropertyGroups.equals(other.includePropertyGroups))) + && ((this.includePropertyTemplates == other.includePropertyTemplates) || (this.includePropertyTemplates != null && this.includePropertyTemplates.equals(other.includePropertyTemplates))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AlphaGetMetadataArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("include_media_info"); + StoneSerializers.boolean_().serialize(value.includeMediaInfo, g); + g.writeFieldName("include_deleted"); + StoneSerializers.boolean_().serialize(value.includeDeleted, g); + g.writeFieldName("include_has_explicit_shared_members"); + StoneSerializers.boolean_().serialize(value.includeHasExplicitSharedMembers, g); + if (value.includePropertyGroups != null) { + g.writeFieldName("include_property_groups"); + StoneSerializers.nullable(TemplateFilterBase.Serializer.INSTANCE).serialize(value.includePropertyGroups, g); + } + if (value.includePropertyTemplates != null) { + g.writeFieldName("include_property_templates"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.includePropertyTemplates, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AlphaGetMetadataArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AlphaGetMetadataArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + Boolean f_includeMediaInfo = false; + Boolean f_includeDeleted = false; + Boolean f_includeHasExplicitSharedMembers = false; + TemplateFilterBase f_includePropertyGroups = null; + List f_includePropertyTemplates = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("include_media_info".equals(field)) { + f_includeMediaInfo = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_deleted".equals(field)) { + f_includeDeleted = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_has_explicit_shared_members".equals(field)) { + f_includeHasExplicitSharedMembers = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_property_groups".equals(field)) { + f_includePropertyGroups = StoneSerializers.nullable(TemplateFilterBase.Serializer.INSTANCE).deserialize(p); + } + else if ("include_property_templates".equals(field)) { + f_includePropertyTemplates = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new AlphaGetMetadataArg(f_path, f_includeMediaInfo, f_includeDeleted, f_includeHasExplicitSharedMembers, f_includePropertyGroups, f_includePropertyTemplates); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataBuilder.java new file mode 100644 index 000000000..a23a2e7af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataBuilder.java @@ -0,0 +1,130 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#alphaGetMetadataBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class AlphaGetMetadataBuilder { + private final DbxUserFilesRequests _client; + private final AlphaGetMetadataArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + AlphaGetMetadataBuilder(DbxUserFilesRequests _client, AlphaGetMetadataArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public AlphaGetMetadataBuilder withIncludeMediaInfo(Boolean includeMediaInfo) { + this._builder.withIncludeMediaInfo(includeMediaInfo); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeDeleted If true, {@link DeletedMetadata} will be returned + * for deleted file or folder, otherwise {@link LookupError#NOT_FOUND} + * will be returned. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public AlphaGetMetadataBuilder withIncludeDeleted(Boolean includeDeleted) { + this._builder.withIncludeDeleted(includeDeleted); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public AlphaGetMetadataBuilder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + this._builder.withIncludeHasExplicitSharedMembers(includeHasExplicitSharedMembers); + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public AlphaGetMetadataBuilder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + this._builder.withIncludePropertyGroups(includePropertyGroups); + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyTemplates If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set for files with custom + * properties. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AlphaGetMetadataBuilder withIncludePropertyTemplates(List includePropertyTemplates) { + this._builder.withIncludePropertyTemplates(includePropertyTemplates); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public Metadata start() throws AlphaGetMetadataErrorException, DbxException { + AlphaGetMetadataArg arg_ = this._builder.build(); + return _client.alphaGetMetadata(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataError.java new file mode 100644 index 000000000..5b2169287 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataError.java @@ -0,0 +1,322 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.fileproperties.LookUpPropertiesError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class AlphaGetMetadataError { + // union files.AlphaGetMetadataError (files.stone) + + /** + * Discriminating tag type for {@link AlphaGetMetadataError}. + */ + public enum Tag { + PATH, // LookupError + PROPERTIES_ERROR; // LookUpPropertiesError + } + + private Tag _tag; + private LookupError pathValue; + private LookUpPropertiesError propertiesErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AlphaGetMetadataError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private AlphaGetMetadataError withTag(Tag _tag) { + AlphaGetMetadataError result = new AlphaGetMetadataError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AlphaGetMetadataError withTagAndPath(Tag _tag, LookupError pathValue) { + AlphaGetMetadataError result = new AlphaGetMetadataError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param propertiesErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AlphaGetMetadataError withTagAndPropertiesError(Tag _tag, LookUpPropertiesError propertiesErrorValue) { + AlphaGetMetadataError result = new AlphaGetMetadataError(); + result._tag = _tag; + result.propertiesErrorValue = propertiesErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AlphaGetMetadataError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code AlphaGetMetadataError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AlphaGetMetadataError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AlphaGetMetadataError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AlphaGetMetadataError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTIES_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTIES_ERROR}, {@code false} otherwise. + */ + public boolean isPropertiesError() { + return this._tag == Tag.PROPERTIES_ERROR; + } + + /** + * Returns an instance of {@code AlphaGetMetadataError} that has its tag set + * to {@link Tag#PROPERTIES_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AlphaGetMetadataError} with its tag set to + * {@link Tag#PROPERTIES_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AlphaGetMetadataError propertiesError(LookUpPropertiesError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AlphaGetMetadataError().withTagAndPropertiesError(Tag.PROPERTIES_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#PROPERTIES_ERROR}. + * + * @return The {@link LookUpPropertiesError} value associated with this + * instance if {@link #isPropertiesError} is {@code true}. + * + * @throws IllegalStateException If {@link #isPropertiesError} is {@code + * false}. + */ + public LookUpPropertiesError getPropertiesErrorValue() { + if (this._tag != Tag.PROPERTIES_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.PROPERTIES_ERROR, but was Tag." + this._tag.name()); + } + return propertiesErrorValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue, + this.propertiesErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AlphaGetMetadataError) { + AlphaGetMetadataError other = (AlphaGetMetadataError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case PROPERTIES_ERROR: + return (this.propertiesErrorValue == other.propertiesErrorValue) || (this.propertiesErrorValue.equals(other.propertiesErrorValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AlphaGetMetadataError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case PROPERTIES_ERROR: { + g.writeStartObject(); + writeTag("properties_error", g); + g.writeFieldName("properties_error"); + LookUpPropertiesError.Serializer.INSTANCE.serialize(value.propertiesErrorValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public AlphaGetMetadataError deserialize(JsonParser p) throws IOException, JsonParseException { + AlphaGetMetadataError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = AlphaGetMetadataError.path(fieldValue); + } + else if ("properties_error".equals(tag)) { + LookUpPropertiesError fieldValue = null; + expectField("properties_error", p); + fieldValue = LookUpPropertiesError.Serializer.INSTANCE.deserialize(p); + value = AlphaGetMetadataError.propertiesError(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataErrorException.java new file mode 100644 index 000000000..6cb3e8499 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * AlphaGetMetadataError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#alphaGetMetadata(String)}.

+ */ +public class AlphaGetMetadataErrorException extends DbxApiException { + // exception for routes: + // 2/files/alpha/get_metadata + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#alphaGetMetadata(String)}. + */ + public final AlphaGetMetadataError errorValue; + + public AlphaGetMetadataErrorException(String routeName, String requestId, LocalizedText userMessage, AlphaGetMetadataError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaUploadBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaUploadBuilder.java new file mode 100644 index 000000000..c0fd869a0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaUploadBuilder.java @@ -0,0 +1,179 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxUploadStyleBuilder; +import com.dropbox.core.v2.fileproperties.PropertyGroup; + +import java.util.Date; +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#alphaUploadBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class AlphaUploadBuilder extends DbxUploadStyleBuilder { + private final DbxUserFilesRequests _client; + private final UploadArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + AlphaUploadBuilder(DbxUserFilesRequests _client, UploadArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * WriteMode.ADD}.

+ * + * @param mode Selects what to do if the file already exists. Must not be + * {@code null}. Defaults to {@code WriteMode.ADD} when set to {@code + * null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AlphaUploadBuilder withMode(WriteMode mode) { + this._builder.withMode(mode); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict, as determined by {@link + * CommitInfo#getMode}, have the Dropbox server try to autorename the + * file to avoid conflict. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public AlphaUploadBuilder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + * @param clientModified The value to store as the {@link + * CommitInfo#getClientModified} timestamp. Dropbox automatically + * records the time at which the file was written to the Dropbox + * servers. It can also record an additional timestamp, provided by + * Dropbox desktop clients, mobile clients, and API apps of when the + * file was actually created or modified. + * + * @return this builder + */ + public AlphaUploadBuilder withClientModified(Date clientModified) { + this._builder.withClientModified(clientModified); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param mute Normally, users are made aware of any file modifications in + * their Dropbox account via notifications in the client software. If + * {@code true}, this tells the clients that this modification shouldn't + * result in a user notification. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public AlphaUploadBuilder withMute(Boolean mute) { + this._builder.withMute(mute); + return this; + } + + /** + * Set value for optional field. + * + * @param propertyGroups List of custom properties to add to file. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AlphaUploadBuilder withPropertyGroups(List propertyGroups) { + this._builder.withPropertyGroups(propertyGroups); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param strictConflict Be more strict about how each {@link WriteMode} + * detects conflict. For example, always return a conflict error when + * {@link CommitInfo#getMode} = {@link WriteMode#getUpdateValue} and the + * given "rev" doesn't match the existing file's "rev", even if the + * existing file has been deleted. This also forces a conflict even when + * the target path refers to a file with identical contents. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public AlphaUploadBuilder withStrictConflict(Boolean strictConflict) { + this._builder.withStrictConflict(strictConflict); + return this; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AlphaUploadBuilder withContentHash(String contentHash) { + this._builder.withContentHash(contentHash); + return this; + } + + @Override + @SuppressWarnings("deprecation") + public AlphaUploadUploader start() throws UploadErrorException, DbxException { + UploadArg arg_ = this._builder.build(); + return _client.alphaUpload(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaUploadUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaUploadUploader.java new file mode 100644 index 000000000..646348dc7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaUploadUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#alphaUpload(String)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class AlphaUploadUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public AlphaUploadUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, FileMetadata.Serializer.INSTANCE, UploadError.Serializer.INSTANCE, userId); + } + + protected UploadErrorException newException(DbxWrappedException error) { + return new UploadErrorException("2/files/alpha/upload", error.getRequestId(), error.getUserMessage(), (UploadError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/BaseTagError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/BaseTagError.java new file mode 100644 index 000000000..f64d2fa02 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/BaseTagError.java @@ -0,0 +1,277 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class BaseTagError { + // union files.BaseTagError (file_tagging.stone) + + /** + * Discriminating tag type for {@link BaseTagError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final BaseTagError OTHER = new BaseTagError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private BaseTagError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private BaseTagError withTag(Tag _tag) { + BaseTagError result = new BaseTagError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private BaseTagError withTagAndPath(Tag _tag, LookupError pathValue) { + BaseTagError result = new BaseTagError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code BaseTagError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code BaseTagError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code BaseTagError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static BaseTagError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new BaseTagError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof BaseTagError) { + BaseTagError other = (BaseTagError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BaseTagError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public BaseTagError deserialize(JsonParser p) throws IOException, JsonParseException { + BaseTagError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = BaseTagError.path(fieldValue); + } + else { + value = BaseTagError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/BaseTagErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/BaseTagErrorException.java new file mode 100644 index 000000000..89aa902e6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/BaseTagErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link BaseTagError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#tagsGet(java.util.List)}.

+ */ +public class BaseTagErrorException extends DbxApiException { + // exception for routes: + // 2/files/tags/get + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#tagsGet(java.util.List)}. + */ + public final BaseTagError errorValue; + + public BaseTagErrorException(String routeName, String requestId, LocalizedText userMessage, BaseTagError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CommitInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CommitInfo.java new file mode 100644 index 000000000..2b0494951 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CommitInfo.java @@ -0,0 +1,546 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.fileproperties.PropertyGroup; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class CommitInfo { + // struct files.CommitInfo (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final WriteMode mode; + protected final boolean autorename; + @Nullable + protected final Date clientModified; + protected final boolean mute; + @Nullable + protected final List propertyGroups; + protected final boolean strictConflict; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * @param mode Selects what to do if the file already exists. Must not be + * {@code null}. + * @param autorename If there's a conflict, as determined by {@link + * CommitInfo#getMode}, have the Dropbox server try to autorename the + * file to avoid conflict. + * @param clientModified The value to store as the {@link + * CommitInfo#getClientModified} timestamp. Dropbox automatically + * records the time at which the file was written to the Dropbox + * servers. It can also record an additional timestamp, provided by + * Dropbox desktop clients, mobile clients, and API apps of when the + * file was actually created or modified. + * @param mute Normally, users are made aware of any file modifications in + * their Dropbox account via notifications in the client software. If + * {@code true}, this tells the clients that this modification shouldn't + * result in a user notification. + * @param propertyGroups List of custom properties to add to file. Must not + * contain a {@code null} item. + * @param strictConflict Be more strict about how each {@link WriteMode} + * detects conflict. For example, always return a conflict error when + * {@link CommitInfo#getMode} = {@link WriteMode#getUpdateValue} and the + * given "rev" doesn't match the existing file's "rev", even if the + * existing file has been deleted. This also forces a conflict even when + * the target path refers to a file with identical contents. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CommitInfo(@Nonnull String path, @Nonnull WriteMode mode, boolean autorename, @Nullable Date clientModified, boolean mute, @Nullable List propertyGroups, boolean strictConflict) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (mode == null) { + throw new IllegalArgumentException("Required value for 'mode' is null"); + } + this.mode = mode; + this.autorename = autorename; + this.clientModified = LangUtil.truncateMillis(clientModified); + this.mute = mute; + if (propertyGroups != null) { + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + } + this.propertyGroups = propertyGroups; + this.strictConflict = strictConflict; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CommitInfo(@Nonnull String path) { + this(path, WriteMode.ADD, false, null, false, null, false); + } + + /** + * Path in the user's Dropbox to save the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Selects what to do if the file already exists. + * + * @return value for this field, or {@code null} if not present. Defaults to + * WriteMode.ADD. + */ + @Nonnull + public WriteMode getMode() { + return mode; + } + + /** + * If there's a conflict, as determined by {@link CommitInfo#getMode}, have + * the Dropbox server try to autorename the file to avoid conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + /** + * The value to store as the {@link CommitInfo#getClientModified} timestamp. + * Dropbox automatically records the time at which the file was written to + * the Dropbox servers. It can also record an additional timestamp, provided + * by Dropbox desktop clients, mobile clients, and API apps of when the file + * was actually created or modified. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getClientModified() { + return clientModified; + } + + /** + * Normally, users are made aware of any file modifications in their Dropbox + * account via notifications in the client software. If {@code true}, this + * tells the clients that this modification shouldn't result in a user + * notification. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getMute() { + return mute; + } + + /** + * List of custom properties to add to file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPropertyGroups() { + return propertyGroups; + } + + /** + * Be more strict about how each {@link WriteMode} detects conflict. For + * example, always return a conflict error when {@link CommitInfo#getMode} = + * {@link WriteMode#getUpdateValue} and the given "rev" doesn't match the + * existing file's "rev", even if the existing file has been deleted. This + * also forces a conflict even when the target path refers to a file with + * identical contents. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getStrictConflict() { + return strictConflict; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link CommitInfo}. + */ + public static class Builder { + protected final String path; + + protected WriteMode mode; + protected boolean autorename; + protected Date clientModified; + protected boolean mute; + protected List propertyGroups; + protected boolean strictConflict; + + protected Builder(String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.mode = WriteMode.ADD; + this.autorename = false; + this.clientModified = null; + this.mute = false; + this.propertyGroups = null; + this.strictConflict = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * WriteMode.ADD}.

+ * + * @param mode Selects what to do if the file already exists. Must not + * be {@code null}. Defaults to {@code WriteMode.ADD} when set to + * {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMode(WriteMode mode) { + if (mode != null) { + this.mode = mode; + } + else { + this.mode = WriteMode.ADD; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param autorename If there's a conflict, as determined by {@link + * CommitInfo#getMode}, have the Dropbox server try to autorename + * the file to avoid conflict. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withAutorename(Boolean autorename) { + if (autorename != null) { + this.autorename = autorename; + } + else { + this.autorename = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param clientModified The value to store as the {@link + * CommitInfo#getClientModified} timestamp. Dropbox automatically + * records the time at which the file was written to the Dropbox + * servers. It can also record an additional timestamp, provided by + * Dropbox desktop clients, mobile clients, and API apps of when the + * file was actually created or modified. + * + * @return this builder + */ + public Builder withClientModified(Date clientModified) { + this.clientModified = LangUtil.truncateMillis(clientModified); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param mute Normally, users are made aware of any file modifications + * in their Dropbox account via notifications in the client + * software. If {@code true}, this tells the clients that this + * modification shouldn't result in a user notification. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withMute(Boolean mute) { + if (mute != null) { + this.mute = mute; + } + else { + this.mute = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param propertyGroups List of custom properties to add to file. Must + * not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPropertyGroups(List propertyGroups) { + if (propertyGroups != null) { + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + } + this.propertyGroups = propertyGroups; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param strictConflict Be more strict about how each {@link + * WriteMode} detects conflict. For example, always return a + * conflict error when {@link CommitInfo#getMode} = {@link + * WriteMode#getUpdateValue} and the given "rev" doesn't match the + * existing file's "rev", even if the existing file has been + * deleted. This also forces a conflict even when the target path + * refers to a file with identical contents. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withStrictConflict(Boolean strictConflict) { + if (strictConflict != null) { + this.strictConflict = strictConflict; + } + else { + this.strictConflict = false; + } + return this; + } + + /** + * Builds an instance of {@link CommitInfo} configured with this + * builder's values + * + * @return new instance of {@link CommitInfo} + */ + public CommitInfo build() { + return new CommitInfo(path, mode, autorename, clientModified, mute, propertyGroups, strictConflict); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.mode, + this.autorename, + this.clientModified, + this.mute, + this.propertyGroups, + this.strictConflict + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CommitInfo other = (CommitInfo) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.mode == other.mode) || (this.mode.equals(other.mode))) + && (this.autorename == other.autorename) + && ((this.clientModified == other.clientModified) || (this.clientModified != null && this.clientModified.equals(other.clientModified))) + && (this.mute == other.mute) + && ((this.propertyGroups == other.propertyGroups) || (this.propertyGroups != null && this.propertyGroups.equals(other.propertyGroups))) + && (this.strictConflict == other.strictConflict) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CommitInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("mode"); + WriteMode.Serializer.INSTANCE.serialize(value.mode, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + if (value.clientModified != null) { + g.writeFieldName("client_modified"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.clientModified, g); + } + g.writeFieldName("mute"); + StoneSerializers.boolean_().serialize(value.mute, g); + if (value.propertyGroups != null) { + g.writeFieldName("property_groups"); + StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).serialize(value.propertyGroups, g); + } + g.writeFieldName("strict_conflict"); + StoneSerializers.boolean_().serialize(value.strictConflict, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CommitInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CommitInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + WriteMode f_mode = WriteMode.ADD; + Boolean f_autorename = false; + Date f_clientModified = null; + Boolean f_mute = false; + List f_propertyGroups = null; + Boolean f_strictConflict = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("mode".equals(field)) { + f_mode = WriteMode.Serializer.INSTANCE.deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else if ("client_modified".equals(field)) { + f_clientModified = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("mute".equals(field)) { + f_mute = StoneSerializers.boolean_().deserialize(p); + } + else if ("property_groups".equals(field)) { + f_propertyGroups = StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).deserialize(p); + } + else if ("strict_conflict".equals(field)) { + f_strictConflict = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new CommitInfo(f_path, f_mode, f_autorename, f_clientModified, f_mute, f_propertyGroups, f_strictConflict); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ContentSyncSetting.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ContentSyncSetting.java new file mode 100644 index 000000000..03c1b9439 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ContentSyncSetting.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class ContentSyncSetting { + // struct files.ContentSyncSetting (files.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final SyncSetting syncSetting; + + /** + * + * @param id Id of the item this setting is applied to. Must have length of + * at least 4, match pattern "{@code id:.+}", and not be {@code null}. + * @param syncSetting Setting for this item. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ContentSyncSetting(@Nonnull String id, @Nonnull SyncSetting syncSetting) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 4) { + throw new IllegalArgumentException("String 'id' is shorter than 4"); + } + if (!Pattern.matches("id:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (syncSetting == null) { + throw new IllegalArgumentException("Required value for 'syncSetting' is null"); + } + this.syncSetting = syncSetting; + } + + /** + * Id of the item this setting is applied to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * Setting for this item. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SyncSetting getSyncSetting() { + return syncSetting; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.syncSetting + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ContentSyncSetting other = (ContentSyncSetting) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.syncSetting == other.syncSetting) || (this.syncSetting.equals(other.syncSetting))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ContentSyncSetting value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("sync_setting"); + SyncSetting.Serializer.INSTANCE.serialize(value.syncSetting, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ContentSyncSetting deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ContentSyncSetting value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + SyncSetting f_syncSetting = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("sync_setting".equals(field)) { + f_syncSetting = SyncSetting.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_syncSetting == null) { + throw new JsonParseException(p, "Required field \"sync_setting\" missing."); + } + value = new ContentSyncSetting(f_id, f_syncSetting); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ContentSyncSettingArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ContentSyncSettingArg.java new file mode 100644 index 000000000..03bb5effd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ContentSyncSettingArg.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class ContentSyncSettingArg { + // struct files.ContentSyncSettingArg (files.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final SyncSettingArg syncSetting; + + /** + * + * @param id Id of the item this setting is applied to. Must have length of + * at least 4, match pattern "{@code id:.+}", and not be {@code null}. + * @param syncSetting Setting for this item. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ContentSyncSettingArg(@Nonnull String id, @Nonnull SyncSettingArg syncSetting) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 4) { + throw new IllegalArgumentException("String 'id' is shorter than 4"); + } + if (!Pattern.matches("id:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (syncSetting == null) { + throw new IllegalArgumentException("Required value for 'syncSetting' is null"); + } + this.syncSetting = syncSetting; + } + + /** + * Id of the item this setting is applied to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * Setting for this item. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SyncSettingArg getSyncSetting() { + return syncSetting; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.syncSetting + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ContentSyncSettingArg other = (ContentSyncSettingArg) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.syncSetting == other.syncSetting) || (this.syncSetting.equals(other.syncSetting))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ContentSyncSettingArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("sync_setting"); + SyncSettingArg.Serializer.INSTANCE.serialize(value.syncSetting, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ContentSyncSettingArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ContentSyncSettingArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + SyncSettingArg f_syncSetting = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("sync_setting".equals(field)) { + f_syncSetting = SyncSettingArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_syncSetting == null) { + throw new JsonParseException(p, "Required field \"sync_setting\" missing."); + } + value = new ContentSyncSettingArg(f_id, f_syncSetting); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyBatchBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyBatchBuilder.java new file mode 100644 index 000000000..e67524e37 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyBatchBuilder.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#copyBatchBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class CopyBatchBuilder { + private final DbxUserFilesRequests _client; + private final RelocationBatchArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + CopyBatchBuilder(DbxUserFilesRequests _client, RelocationBatchArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict with any file, have the Dropbox + * server try to autorename that file to avoid the conflict. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public CopyBatchBuilder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public CopyBatchBuilder withAllowSharedFolder(Boolean allowSharedFolder) { + this._builder.withAllowSharedFolder(allowSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public CopyBatchBuilder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + this._builder.withAllowOwnershipTransfer(allowOwnershipTransfer); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public RelocationBatchLaunch start() throws DbxApiException, DbxException { + RelocationBatchArg arg_ = this._builder.build(); + return _client.copyBatch(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyBuilder.java new file mode 100644 index 000000000..522a0a1c1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyBuilder.java @@ -0,0 +1,94 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link DbxUserFilesRequests#copyBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class CopyBuilder { + private final DbxUserFilesRequests _client; + private final RelocationArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + CopyBuilder(DbxUserFilesRequests _client, RelocationArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public CopyBuilder withAllowSharedFolder(Boolean allowSharedFolder) { + this._builder.withAllowSharedFolder(allowSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the file to avoid the conflict. Defaults to {@code false} + * when set to {@code null}. + * + * @return this builder + */ + public CopyBuilder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public CopyBuilder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + this._builder.withAllowOwnershipTransfer(allowOwnershipTransfer); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public Metadata start() throws RelocationErrorException, DbxException { + RelocationArg arg_ = this._builder.build(); + return _client.copy(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyV2Builder.java new file mode 100644 index 000000000..d4c2f9208 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CopyV2Builder.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link DbxUserFilesRequests#copyV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class CopyV2Builder { + private final DbxUserFilesRequests _client; + private final RelocationArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + CopyV2Builder(DbxUserFilesRequests _client, RelocationArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public CopyV2Builder withAllowSharedFolder(Boolean allowSharedFolder) { + this._builder.withAllowSharedFolder(allowSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the file to avoid the conflict. Defaults to {@code false} + * when set to {@code null}. + * + * @return this builder + */ + public CopyV2Builder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public CopyV2Builder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + this._builder.withAllowOwnershipTransfer(allowOwnershipTransfer); + return this; + } + + /** + * Issues the request. + */ + public RelocationResult start() throws RelocationErrorException, DbxException { + RelocationArg arg_ = this._builder.build(); + return _client.copyV2(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderArg.java new file mode 100644 index 000000000..472faab60 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderArg.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class CreateFolderArg { + // struct files.CreateFolderArg (files.stone) + + @Nonnull + protected final String path; + protected final boolean autorename; + + /** + * + * @param path Path in the user's Dropbox to create. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the folder to avoid the conflict. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderArg(@Nonnull String path, boolean autorename) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.autorename = autorename; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path Path in the user's Dropbox to create. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderArg(@Nonnull String path) { + this(path, false); + } + + /** + * Path in the user's Dropbox to create. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * If there's a conflict, have the Dropbox server try to autorename the + * folder to avoid the conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.autorename + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFolderArg other = (CreateFolderArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && (this.autorename == other.autorename) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFolderArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFolderArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + Boolean f_autorename = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new CreateFolderArg(f_path, f_autorename); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchArg.java new file mode 100644 index 000000000..41df886bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchArg.java @@ -0,0 +1,328 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class CreateFolderBatchArg { + // struct files.CreateFolderBatchArg (files.stone) + + @Nonnull + protected final List paths; + protected final boolean autorename; + protected final boolean forceAsync; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param paths List of paths to be created in the user's Dropbox. + * Duplicate path arguments in the batch are considered only once. Must + * contain at most 10000 items, not contain a {@code null} item, and not + * be {@code null}. + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the folder to avoid the conflict. + * @param forceAsync Whether to force the create to happen asynchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderBatchArg(@Nonnull List paths, boolean autorename, boolean forceAsync) { + if (paths == null) { + throw new IllegalArgumentException("Required value for 'paths' is null"); + } + if (paths.size() > 10000) { + throw new IllegalArgumentException("List 'paths' has more than 10000 items"); + } + for (String x : paths) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'paths' is null"); + } + if (!java.util.regex.Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)", x)) { + throw new IllegalArgumentException("Stringan item in list 'paths' does not match pattern"); + } + } + this.paths = paths; + this.autorename = autorename; + this.forceAsync = forceAsync; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param paths List of paths to be created in the user's Dropbox. + * Duplicate path arguments in the batch are considered only once. Must + * contain at most 10000 items, not contain a {@code null} item, and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderBatchArg(@Nonnull List paths) { + this(paths, false, false); + } + + /** + * List of paths to be created in the user's Dropbox. Duplicate path + * arguments in the batch are considered only once. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPaths() { + return paths; + } + + /** + * If there's a conflict, have the Dropbox server try to autorename the + * folder to avoid the conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + /** + * Whether to force the create to happen asynchronously. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getForceAsync() { + return forceAsync; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param paths List of paths to be created in the user's Dropbox. + * Duplicate path arguments in the batch are considered only once. Must + * contain at most 10000 items, not contain a {@code null} item, and not + * be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List paths) { + return new Builder(paths); + } + + /** + * Builder for {@link CreateFolderBatchArg}. + */ + public static class Builder { + protected final List paths; + + protected boolean autorename; + protected boolean forceAsync; + + protected Builder(List paths) { + if (paths == null) { + throw new IllegalArgumentException("Required value for 'paths' is null"); + } + if (paths.size() > 10000) { + throw new IllegalArgumentException("List 'paths' has more than 10000 items"); + } + for (String x : paths) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'paths' is null"); + } + if (!java.util.regex.Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)", x)) { + throw new IllegalArgumentException("Stringan item in list 'paths' does not match pattern"); + } + } + this.paths = paths; + this.autorename = false; + this.forceAsync = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param autorename If there's a conflict, have the Dropbox server try + * to autorename the folder to avoid the conflict. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withAutorename(Boolean autorename) { + if (autorename != null) { + this.autorename = autorename; + } + else { + this.autorename = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param forceAsync Whether to force the create to happen + * asynchronously. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public Builder withForceAsync(Boolean forceAsync) { + if (forceAsync != null) { + this.forceAsync = forceAsync; + } + else { + this.forceAsync = false; + } + return this; + } + + /** + * Builds an instance of {@link CreateFolderBatchArg} configured with + * this builder's values + * + * @return new instance of {@link CreateFolderBatchArg} + */ + public CreateFolderBatchArg build() { + return new CreateFolderBatchArg(paths, autorename, forceAsync); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.paths, + this.autorename, + this.forceAsync + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFolderBatchArg other = (CreateFolderBatchArg) obj; + return ((this.paths == other.paths) || (this.paths.equals(other.paths))) + && (this.autorename == other.autorename) + && (this.forceAsync == other.forceAsync) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("paths"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.paths, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + g.writeFieldName("force_async"); + StoneSerializers.boolean_().serialize(value.forceAsync, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFolderBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFolderBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_paths = null; + Boolean f_autorename = false; + Boolean f_forceAsync = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("paths".equals(field)) { + f_paths = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else if ("force_async".equals(field)) { + f_forceAsync = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_paths == null) { + throw new JsonParseException(p, "Required field \"paths\" missing."); + } + value = new CreateFolderBatchArg(f_paths, f_autorename, f_forceAsync); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchBuilder.java new file mode 100644 index 000000000..e2b809faf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchBuilder.java @@ -0,0 +1,78 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#createFolderBatchBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class CreateFolderBatchBuilder { + private final DbxUserFilesRequests _client; + private final CreateFolderBatchArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + CreateFolderBatchBuilder(DbxUserFilesRequests _client, CreateFolderBatchArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the folder to avoid the conflict. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public CreateFolderBatchBuilder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param forceAsync Whether to force the create to happen asynchronously. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public CreateFolderBatchBuilder withForceAsync(Boolean forceAsync) { + this._builder.withForceAsync(forceAsync); + return this; + } + + /** + * Issues the request. + */ + public CreateFolderBatchLaunch start() throws DbxApiException, DbxException { + CreateFolderBatchArg arg_ = this._builder.build(); + return _client.createFolderBatch(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchError.java new file mode 100644 index 000000000..c912daa42 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum CreateFolderBatchError { + // union files.CreateFolderBatchError (files.stone) + /** + * The operation would involve too many files or folders. + */ + TOO_MANY_FILES, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CreateFolderBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + CreateFolderBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("too_many_files".equals(tag)) { + value = CreateFolderBatchError.TOO_MANY_FILES; + } + else { + value = CreateFolderBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchJobStatus.java new file mode 100644 index 000000000..528f5ee7d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchJobStatus.java @@ -0,0 +1,396 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class CreateFolderBatchJobStatus { + // union files.CreateFolderBatchJobStatus (files.stone) + + /** + * Discriminating tag type for {@link CreateFolderBatchJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The batch create folder has finished. + */ + COMPLETE, // CreateFolderBatchResult + /** + * The batch create folder has failed. + */ + FAILED, // CreateFolderBatchError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The asynchronous job is still in progress. + */ + public static final CreateFolderBatchJobStatus IN_PROGRESS = new CreateFolderBatchJobStatus().withTag(Tag.IN_PROGRESS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final CreateFolderBatchJobStatus OTHER = new CreateFolderBatchJobStatus().withTag(Tag.OTHER); + + private Tag _tag; + private CreateFolderBatchResult completeValue; + private CreateFolderBatchError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CreateFolderBatchJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private CreateFolderBatchJobStatus withTag(Tag _tag) { + CreateFolderBatchJobStatus result = new CreateFolderBatchJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The batch create folder has finished. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderBatchJobStatus withTagAndComplete(Tag _tag, CreateFolderBatchResult completeValue) { + CreateFolderBatchJobStatus result = new CreateFolderBatchJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue The batch create folder has failed. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderBatchJobStatus withTagAndFailed(Tag _tag, CreateFolderBatchError failedValue) { + CreateFolderBatchJobStatus result = new CreateFolderBatchJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CreateFolderBatchJobStatus}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code CreateFolderBatchJobStatus} that has its + * tag set to {@link Tag#COMPLETE}. + * + *

The batch create folder has finished.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderBatchJobStatus} with its tag set + * to {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateFolderBatchJobStatus complete(CreateFolderBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateFolderBatchJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The batch create folder has finished. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link CreateFolderBatchResult} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public CreateFolderBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code CreateFolderBatchJobStatus} that has its + * tag set to {@link Tag#FAILED}. + * + *

The batch create folder has failed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderBatchJobStatus} with its tag set + * to {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateFolderBatchJobStatus failed(CreateFolderBatchError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateFolderBatchJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * The batch create folder has failed. + * + *

This instance must be tagged as {@link Tag#FAILED}.

+ * + * @return The {@link CreateFolderBatchError} value associated with this + * instance if {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public CreateFolderBatchError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CreateFolderBatchJobStatus) { + CreateFolderBatchJobStatus other = (CreateFolderBatchJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderBatchJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + CreateFolderBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + CreateFolderBatchError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CreateFolderBatchJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + CreateFolderBatchJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = CreateFolderBatchJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + CreateFolderBatchResult fieldValue = null; + fieldValue = CreateFolderBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = CreateFolderBatchJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + CreateFolderBatchError fieldValue = null; + expectField("failed", p); + fieldValue = CreateFolderBatchError.Serializer.INSTANCE.deserialize(p); + value = CreateFolderBatchJobStatus.failed(fieldValue); + } + else { + value = CreateFolderBatchJobStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchLaunch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchLaunch.java new file mode 100644 index 000000000..1a4cbd338 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchLaunch.java @@ -0,0 +1,386 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by {@link + * DbxUserFilesRequests#createFolderBatch(java.util.List)} that may either + * launch an asynchronous job or complete synchronously. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class CreateFolderBatchLaunch { + // union files.CreateFolderBatchLaunch (files.stone) + + /** + * Discriminating tag type for {@link CreateFolderBatchLaunch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE, // CreateFolderBatchResult + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final CreateFolderBatchLaunch OTHER = new CreateFolderBatchLaunch().withTag(Tag.OTHER); + + private Tag _tag; + private String asyncJobIdValue; + private CreateFolderBatchResult completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CreateFolderBatchLaunch() { + } + + + /** + * Result returned by {@link + * DbxUserFilesRequests#createFolderBatch(java.util.List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @param _tag Discriminating tag for this instance. + */ + private CreateFolderBatchLaunch withTag(Tag _tag) { + CreateFolderBatchLaunch result = new CreateFolderBatchLaunch(); + result._tag = _tag; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#createFolderBatch(java.util.List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderBatchLaunch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + CreateFolderBatchLaunch result = new CreateFolderBatchLaunch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#createFolderBatch(java.util.List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @param completeValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderBatchLaunch withTagAndComplete(Tag _tag, CreateFolderBatchResult completeValue) { + CreateFolderBatchLaunch result = new CreateFolderBatchLaunch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CreateFolderBatchLaunch}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code CreateFolderBatchLaunch} that has its tag + * set to {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderBatchLaunch} with its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static CreateFolderBatchLaunch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new CreateFolderBatchLaunch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code CreateFolderBatchLaunch} that has its tag + * set to {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderBatchLaunch} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateFolderBatchLaunch complete(CreateFolderBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateFolderBatchLaunch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link CreateFolderBatchResult} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public CreateFolderBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CreateFolderBatchLaunch) { + CreateFolderBatchLaunch other = (CreateFolderBatchLaunch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderBatchLaunch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + CreateFolderBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CreateFolderBatchLaunch deserialize(JsonParser p) throws IOException, JsonParseException { + CreateFolderBatchLaunch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = CreateFolderBatchLaunch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + CreateFolderBatchResult fieldValue = null; + fieldValue = CreateFolderBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = CreateFolderBatchLaunch.complete(fieldValue); + } + else { + value = CreateFolderBatchLaunch.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchResult.java new file mode 100644 index 000000000..a137620db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchResult.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class CreateFolderBatchResult extends FileOpsResult { + // struct files.CreateFolderBatchResult (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Each entry in {@link CreateFolderBatchArg#getPaths} will + * appear at the same position inside {@link + * CreateFolderBatchResult#getEntries}. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderBatchResult(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (CreateFolderBatchResultEntry x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * Each entry in {@link CreateFolderBatchArg#getPaths} will appear at the + * same position inside {@link CreateFolderBatchResult#getEntries}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFolderBatchResult other = (CreateFolderBatchResult) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(CreateFolderBatchResultEntry.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFolderBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFolderBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(CreateFolderBatchResultEntry.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new CreateFolderBatchResult(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchResultEntry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchResultEntry.java new file mode 100644 index 000000000..38e46c310 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderBatchResultEntry.java @@ -0,0 +1,317 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class CreateFolderBatchResultEntry { + // union files.CreateFolderBatchResultEntry (files.stone) + + /** + * Discriminating tag type for {@link CreateFolderBatchResultEntry}. + */ + public enum Tag { + SUCCESS, // CreateFolderEntryResult + FAILURE; // CreateFolderEntryError + } + + private Tag _tag; + private CreateFolderEntryResult successValue; + private CreateFolderEntryError failureValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CreateFolderBatchResultEntry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private CreateFolderBatchResultEntry withTag(Tag _tag) { + CreateFolderBatchResultEntry result = new CreateFolderBatchResultEntry(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderBatchResultEntry withTagAndSuccess(Tag _tag, CreateFolderEntryResult successValue) { + CreateFolderBatchResultEntry result = new CreateFolderBatchResultEntry(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param failureValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderBatchResultEntry withTagAndFailure(Tag _tag, CreateFolderEntryError failureValue) { + CreateFolderBatchResultEntry result = new CreateFolderBatchResultEntry(); + result._tag = _tag; + result.failureValue = failureValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CreateFolderBatchResultEntry}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code CreateFolderBatchResultEntry} that has its + * tag set to {@link Tag#SUCCESS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderBatchResultEntry} with its tag set + * to {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateFolderBatchResultEntry success(CreateFolderEntryResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateFolderBatchResultEntry().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * This instance must be tagged as {@link Tag#SUCCESS}. + * + * @return The {@link CreateFolderEntryResult} value associated with this + * instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public CreateFolderEntryResult getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILURE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILURE}, + * {@code false} otherwise. + */ + public boolean isFailure() { + return this._tag == Tag.FAILURE; + } + + /** + * Returns an instance of {@code CreateFolderBatchResultEntry} that has its + * tag set to {@link Tag#FAILURE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderBatchResultEntry} with its tag set + * to {@link Tag#FAILURE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateFolderBatchResultEntry failure(CreateFolderEntryError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateFolderBatchResultEntry().withTagAndFailure(Tag.FAILURE, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILURE}. + * + * @return The {@link CreateFolderEntryError} value associated with this + * instance if {@link #isFailure} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailure} is {@code false}. + */ + public CreateFolderEntryError getFailureValue() { + if (this._tag != Tag.FAILURE) { + throw new IllegalStateException("Invalid tag: required Tag.FAILURE, but was Tag." + this._tag.name()); + } + return failureValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.failureValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CreateFolderBatchResultEntry) { + CreateFolderBatchResultEntry other = (CreateFolderBatchResultEntry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case FAILURE: + return (this.failureValue == other.failureValue) || (this.failureValue.equals(other.failureValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderBatchResultEntry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + CreateFolderEntryResult.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case FAILURE: { + g.writeStartObject(); + writeTag("failure", g); + g.writeFieldName("failure"); + CreateFolderEntryError.Serializer.INSTANCE.serialize(value.failureValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public CreateFolderBatchResultEntry deserialize(JsonParser p) throws IOException, JsonParseException { + CreateFolderBatchResultEntry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + CreateFolderEntryResult fieldValue = null; + fieldValue = CreateFolderEntryResult.Serializer.INSTANCE.deserialize(p, true); + value = CreateFolderBatchResultEntry.success(fieldValue); + } + else if ("failure".equals(tag)) { + CreateFolderEntryError fieldValue = null; + expectField("failure", p); + fieldValue = CreateFolderEntryError.Serializer.INSTANCE.deserialize(p); + value = CreateFolderBatchResultEntry.failure(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderEntryError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderEntryError.java new file mode 100644 index 000000000..b1d6e8c41 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderEntryError.java @@ -0,0 +1,277 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class CreateFolderEntryError { + // union files.CreateFolderEntryError (files.stone) + + /** + * Discriminating tag type for {@link CreateFolderEntryError}. + */ + public enum Tag { + PATH, // WriteError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final CreateFolderEntryError OTHER = new CreateFolderEntryError().withTag(Tag.OTHER); + + private Tag _tag; + private WriteError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CreateFolderEntryError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private CreateFolderEntryError withTag(Tag _tag) { + CreateFolderEntryError result = new CreateFolderEntryError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderEntryError withTagAndPath(Tag _tag, WriteError pathValue) { + CreateFolderEntryError result = new CreateFolderEntryError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CreateFolderEntryError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code CreateFolderEntryError} that has its tag + * set to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderEntryError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateFolderEntryError path(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateFolderEntryError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public WriteError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CreateFolderEntryError) { + CreateFolderEntryError other = (CreateFolderEntryError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderEntryError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + WriteError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CreateFolderEntryError deserialize(JsonParser p) throws IOException, JsonParseException { + CreateFolderEntryError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + WriteError fieldValue = null; + expectField("path", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = CreateFolderEntryError.path(fieldValue); + } + else { + value = CreateFolderEntryError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderEntryResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderEntryResult.java new file mode 100644 index 000000000..aa95cf829 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderEntryResult.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class CreateFolderEntryResult { + // struct files.CreateFolderEntryResult (files.stone) + + @Nonnull + protected final FolderMetadata metadata; + + /** + * + * @param metadata Metadata of the created folder. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderEntryResult(@Nonnull FolderMetadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * Metadata of the created folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderMetadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFolderEntryResult other = (CreateFolderEntryResult) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderEntryResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + FolderMetadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFolderEntryResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFolderEntryResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FolderMetadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = FolderMetadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new CreateFolderEntryResult(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderError.java new file mode 100644 index 000000000..0ff3968fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderError.java @@ -0,0 +1,239 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class CreateFolderError { + // union files.CreateFolderError (files.stone) + + /** + * Discriminating tag type for {@link CreateFolderError}. + */ + public enum Tag { + PATH; // WriteError + } + + private Tag _tag; + private WriteError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CreateFolderError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private CreateFolderError withTag(Tag _tag) { + CreateFolderError result = new CreateFolderError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateFolderError withTagAndPath(Tag _tag, WriteError pathValue) { + CreateFolderError result = new CreateFolderError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CreateFolderError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code CreateFolderError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateFolderError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateFolderError path(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateFolderError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public WriteError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CreateFolderError) { + CreateFolderError other = (CreateFolderError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + WriteError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public CreateFolderError deserialize(JsonParser p) throws IOException, JsonParseException { + CreateFolderError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + WriteError fieldValue = null; + expectField("path", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = CreateFolderError.path(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderErrorException.java new file mode 100644 index 000000000..ca12cd18b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link CreateFolderError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#createFolder(String,boolean)} and {@link + * DbxUserFilesRequests#createFolderV2(String,boolean)}.

+ */ +public class CreateFolderErrorException extends DbxApiException { + // exception for routes: + // 2/files/create_folder + // 2/files/create_folder_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#createFolder(String,boolean)} and {@link + * DbxUserFilesRequests#createFolderV2(String,boolean)}. + */ + public final CreateFolderError errorValue; + + public CreateFolderErrorException(String routeName, String requestId, LocalizedText userMessage, CreateFolderError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderResult.java new file mode 100644 index 000000000..55de452e4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/CreateFolderResult.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class CreateFolderResult extends FileOpsResult { + // struct files.CreateFolderResult (files.stone) + + @Nonnull + protected final FolderMetadata metadata; + + /** + * + * @param metadata Metadata of the created folder. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderResult(@Nonnull FolderMetadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * Metadata of the created folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderMetadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFolderResult other = (CreateFolderResult) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + FolderMetadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFolderResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFolderResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FolderMetadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = FolderMetadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new CreateFolderResult(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppFilesRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppFilesRequests.java new file mode 100644 index 000000000..8da340e3c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppFilesRequests.java @@ -0,0 +1,287 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone, files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "files". + */ +public class DbxAppFilesRequests { + // namespace files (file_tagging.stone, files.stone) + + private final DbxRawClientV2 client; + + public DbxAppFilesRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/files/get_thumbnail_v2 + // + + /** + * Get a thumbnail for an image. This method currently supports files with + * the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm + * and bmp. Photos that are larger than 20MB in size won't be converted to a + * thumbnail. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader getThumbnailV2(ThumbnailV2Arg arg, List _headers) throws ThumbnailV2ErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/files/get_thumbnail_v2", + arg, + false, + _headers, + ThumbnailV2Arg.Serializer.INSTANCE, + PreviewResult.Serializer.INSTANCE, + ThumbnailV2Error.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ThumbnailV2ErrorException("2/files/get_thumbnail_v2", ex.getRequestId(), ex.getUserMessage(), (ThumbnailV2Error) ex.getErrorValue()); + } + } + + /** + * Get a thumbnail for an image. + * + *

This method currently supports files with the following file + * extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos + * that are larger than 20MB in size won't be converted to a thumbnail.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DbxAppGetThumbnailV2Builder} for more details.

+ * + * @param resource Information specifying which file to preview. This could + * be a path to a file, a shared link pointing to a file, or a shared + * link pointing to a folder, with a relative path. Must not be {@code + * null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader getThumbnailV2(PathOrLink resource) throws ThumbnailV2ErrorException, DbxException { + ThumbnailV2Arg _arg = new ThumbnailV2Arg(resource); + return getThumbnailV2(_arg, Collections.emptyList()); + } + + /** + * Get a thumbnail for an image. This method currently supports files with + * the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm + * and bmp. Photos that are larger than 20MB in size won't be converted to a + * thumbnail. + * + * @param resource Information specifying which file to preview. This could + * be a path to a file, a shared link pointing to a file, or a shared + * link pointing to a folder, with a relative path. Must not be {@code + * null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppGetThumbnailV2Builder getThumbnailV2Builder(PathOrLink resource) { + ThumbnailV2Arg.Builder argBuilder_ = ThumbnailV2Arg.newBuilder(resource); + return new DbxAppGetThumbnailV2Builder(this, argBuilder_); + } + + // + // route 2/files/list_folder + // + + /** + * Starts returning the contents of a folder. If the result's {@link + * ListFolderResult#getHasMore} field is {@code true}, call {@link + * DbxAppFilesRequests#listFolderContinue(String)} with the returned {@link + * ListFolderResult#getCursor} to retrieve more entries. If you're using + * {@link ListFolderArg#getRecursive} set to {@code true} to keep a local + * cache of the contents of a Dropbox account, iterate through each entry in + * order and process them as follows to keep your local state in sync: For + * each {@link FileMetadata}, store the new entry at the given path in your + * local state. If the required parent folders don't exist yet, create them. + * If there's already something else at the given path, replace it and + * remove all its children. For each {@link FolderMetadata}, store the new + * entry at the given path in your local state. If the required parent + * folders don't exist yet, create them. If there's already something else + * at the given path, replace it but leave the children as they are. Check + * the new entry's {@link FolderSharingInfo#getReadOnly} and set all its + * children's read-only statuses to match. For each {@link DeletedMetadata}, + * if your local state has something at the given path, remove it and all + * its children. If there's nothing at the given path, ignore this entry. + * Note: {@link com.dropbox.core.v2.auth.RateLimitError} may be returned if + * multiple {@link DbxAppFilesRequests#listFolder(String)} or {@link + * DbxAppFilesRequests#listFolderContinue(String)} calls with same + * parameters are made simultaneously by same API app for same user. If your + * app implements retry logic, please hold off the retry until the previous + * request finishes. + * + */ + ListFolderResult listFolder(ListFolderArg arg) throws ListFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/list_folder", + arg, + false, + ListFolderArg.Serializer.INSTANCE, + ListFolderResult.Serializer.INSTANCE, + ListFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFolderErrorException("2/files/list_folder", ex.getRequestId(), ex.getUserMessage(), (ListFolderError) ex.getErrorValue()); + } + } + + /** + * Starts returning the contents of a folder. If the result's {@link + * ListFolderResult#getHasMore} field is {@code true}, call {@link + * DbxAppFilesRequests#listFolderContinue(String)} with the returned {@link + * ListFolderResult#getCursor} to retrieve more entries. + * + *

If you're using {@link ListFolderArg#getRecursive} set to {@code + * true} to keep a local cache of the contents of a Dropbox account, iterate + * through each entry in order and process them as follows to keep your + * local state in sync:

+ * + *

For each {@link FileMetadata}, store the new entry at the given path + * in your local state. If the required parent folders don't exist yet, + * create them. If there's already something else at the given path, replace + * it and remove all its children.

+ * + *

For each {@link FolderMetadata}, store the new entry at the given + * path in your local state. If the required parent folders don't exist yet, + * create them. If there's already something else at the given path, replace + * it but leave the children as they are. Check the new entry's {@link + * FolderSharingInfo#getReadOnly} and set all its children's read-only + * statuses to match.

+ * + *

For each {@link DeletedMetadata}, if your local state has something + * at the given path, remove it and all its children. If there's nothing at + * the given path, ignore this entry.

+ * + *

Note: {@link com.dropbox.core.v2.auth.RateLimitError} may be returned + * if multiple {@link DbxAppFilesRequests#listFolder(String)} or {@link + * DbxAppFilesRequests#listFolderContinue(String)} calls with same + * parameters are made simultaneously by same API app for same user. If your + * app implements retry logic, please hold off the retry until the previous + * request finishes.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DbxAppListFolderBuilder} for more details.

+ * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderResult listFolder(String path) throws ListFolderErrorException, DbxException { + ListFolderArg _arg = new ListFolderArg(path); + return listFolder(_arg); + } + + /** + * Starts returning the contents of a folder. If the result's {@link + * ListFolderResult#getHasMore} field is {@code true}, call {@link + * DbxAppFilesRequests#listFolderContinue(String)} with the returned {@link + * ListFolderResult#getCursor} to retrieve more entries. If you're using + * {@link ListFolderArg#getRecursive} set to {@code true} to keep a local + * cache of the contents of a Dropbox account, iterate through each entry in + * order and process them as follows to keep your local state in sync: For + * each {@link FileMetadata}, store the new entry at the given path in your + * local state. If the required parent folders don't exist yet, create them. + * If there's already something else at the given path, replace it and + * remove all its children. For each {@link FolderMetadata}, store the new + * entry at the given path in your local state. If the required parent + * folders don't exist yet, create them. If there's already something else + * at the given path, replace it but leave the children as they are. Check + * the new entry's {@link FolderSharingInfo#getReadOnly} and set all its + * children's read-only statuses to match. For each {@link DeletedMetadata}, + * if your local state has something at the given path, remove it and all + * its children. If there's nothing at the given path, ignore this entry. + * Note: {@link com.dropbox.core.v2.auth.RateLimitError} may be returned if + * multiple {@link DbxAppFilesRequests#listFolder(String)} or {@link + * DbxAppFilesRequests#listFolderContinue(String)} calls with same + * parameters are made simultaneously by same API app for same user. If your + * app implements retry logic, please hold off the retry until the previous + * request finishes. + * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppListFolderBuilder listFolderBuilder(String path) { + ListFolderArg.Builder argBuilder_ = ListFolderArg.newBuilder(path); + return new DbxAppListFolderBuilder(this, argBuilder_); + } + + // + // route 2/files/list_folder/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxAppFilesRequests#listFolder(String)}, use this to paginate through all + * files and retrieve updates to the folder, following the same rules as + * documented for {@link DbxAppFilesRequests#listFolder(String)}. + * + */ + ListFolderResult listFolderContinue(ListFolderContinueArg arg) throws ListFolderContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/list_folder/continue", + arg, + false, + ListFolderContinueArg.Serializer.INSTANCE, + ListFolderResult.Serializer.INSTANCE, + ListFolderContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFolderContinueErrorException("2/files/list_folder/continue", ex.getRequestId(), ex.getUserMessage(), (ListFolderContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxAppFilesRequests#listFolder(String)}, use this to paginate through all + * files and retrieve updates to the folder, following the same rules as + * documented for {@link DbxAppFilesRequests#listFolder(String)}. + * + * @param cursor The cursor returned by your last call to {@link + * DbxAppFilesRequests#listFolder(String)} or {@link + * DbxAppFilesRequests#listFolderContinue(String)}. Must have length of + * at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderResult listFolderContinue(String cursor) throws ListFolderContinueErrorException, DbxException { + ListFolderContinueArg _arg = new ListFolderContinueArg(cursor); + return listFolderContinue(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder.java new file mode 100644 index 000000000..93fe900f9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppGetThumbnailV2Builder.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxAppFilesRequests#getThumbnailV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DbxAppGetThumbnailV2Builder extends DbxDownloadStyleBuilder { + private final DbxAppFilesRequests _client; + private final ThumbnailV2Arg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DbxAppGetThumbnailV2Builder(DbxAppFilesRequests _client, ThumbnailV2Arg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailFormat.JPEG}.

+ * + * @param format The format for the thumbnail image, jpeg (default) or png. + * For images that are photos, jpeg should be preferred, while png is + * better for screenshots and digital arts. Must not be {@code null}. + * Defaults to {@code ThumbnailFormat.JPEG} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppGetThumbnailV2Builder withFormat(ThumbnailFormat format) { + this._builder.withFormat(format); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailSize.W64H64}.

+ * + * @param size The size for the thumbnail image. Must not be {@code null}. + * Defaults to {@code ThumbnailSize.W64H64} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppGetThumbnailV2Builder withSize(ThumbnailSize size) { + this._builder.withSize(size); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailMode.STRICT}.

+ * + * @param mode How to resize and crop the image to achieve the desired + * size. Must not be {@code null}. Defaults to {@code + * ThumbnailMode.STRICT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppGetThumbnailV2Builder withMode(ThumbnailMode mode) { + this._builder.withMode(mode); + return this; + } + + @Override + public DbxDownloader start() throws ThumbnailV2ErrorException, DbxException { + ThumbnailV2Arg arg_ = this._builder.build(); + return _client.getThumbnailV2(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppListFolderBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppListFolderBuilder.java new file mode 100644 index 000000000..b8277727b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxAppListFolderBuilder.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +/** + * The request builder returned by {@link + * DbxAppFilesRequests#listFolderBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DbxAppListFolderBuilder { + private final DbxAppFilesRequests _client; + private final ListFolderArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DbxAppListFolderBuilder(DbxAppFilesRequests _client, ListFolderArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param recursive If true, the list folder operation will be applied + * recursively to all subfolders and the response will contain contents + * of all subfolders. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public DbxAppListFolderBuilder withRecursive(Boolean recursive) { + this._builder.withRecursive(recursive); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. This parameter will no longer have an effect + * starting December 2, 2019. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public DbxAppListFolderBuilder withIncludeMediaInfo(Boolean includeMediaInfo) { + this._builder.withIncludeMediaInfo(includeMediaInfo); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeDeleted If true, the results will include entries for + * files and folders that used to exist but were deleted. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public DbxAppListFolderBuilder withIncludeDeleted(Boolean includeDeleted) { + this._builder.withIncludeDeleted(includeDeleted); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public DbxAppListFolderBuilder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + this._builder.withIncludeHasExplicitSharedMembers(includeHasExplicitSharedMembers); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeMountedFolders If true, the results will include entries + * under mounted folders which includes app folder, shared folder and + * team folder. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DbxAppListFolderBuilder withIncludeMountedFolders(Boolean includeMountedFolders) { + this._builder.withIncludeMountedFolders(includeMountedFolders); + return this; + } + + /** + * Set value for optional field. + * + * @param limit The maximum number of results to return per request. Note: + * This is an approximate number and there can be slightly more entries + * returned in some cases. Must be greater than or equal to 1 and be + * less than or equal to 2000. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppListFolderBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLink A shared link to list the contents of. If the link is + * password-protected, the password must be provided. If this field is + * present, {@link ListFolderArg#getPath} will be relative to root of + * the shared link. Only non-recursive mode is supported for shared + * link. + * + * @return this builder + */ + public DbxAppListFolderBuilder withSharedLink(SharedLink sharedLink) { + this._builder.withSharedLink(sharedLink); + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public DbxAppListFolderBuilder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + this._builder.withIncludePropertyGroups(includePropertyGroups); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeNonDownloadableFiles If true, include files that are not + * downloadable, i.e. Google Docs. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public DbxAppListFolderBuilder withIncludeNonDownloadableFiles(Boolean includeNonDownloadableFiles) { + this._builder.withIncludeNonDownloadableFiles(includeNonDownloadableFiles); + return this; + } + + /** + * Issues the request. + */ + public ListFolderResult start() throws ListFolderErrorException, DbxException { + ListFolderArg arg_ = this._builder.build(); + return _client.listFolder(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserFilesRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserFilesRequests.java new file mode 100644 index 000000000..03c799c65 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserFilesRequests.java @@ -0,0 +1,4847 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone, files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; +import com.dropbox.core.v2.DbxRawClientV2; +import com.dropbox.core.v2.DbxUploadStyleBuilder; +import com.dropbox.core.v2.async.PollArg; +import com.dropbox.core.v2.async.PollError; +import com.dropbox.core.v2.async.PollErrorException; +import com.dropbox.core.v2.fileproperties.AddPropertiesArg; +import com.dropbox.core.v2.fileproperties.AddPropertiesError; +import com.dropbox.core.v2.fileproperties.AddPropertiesErrorException; +import com.dropbox.core.v2.fileproperties.GetTemplateArg; +import com.dropbox.core.v2.fileproperties.GetTemplateResult; +import com.dropbox.core.v2.fileproperties.InvalidPropertyGroupError; +import com.dropbox.core.v2.fileproperties.InvalidPropertyGroupErrorException; +import com.dropbox.core.v2.fileproperties.ListTemplateResult; +import com.dropbox.core.v2.fileproperties.OverwritePropertyGroupArg; +import com.dropbox.core.v2.fileproperties.PropertyGroup; +import com.dropbox.core.v2.fileproperties.PropertyGroupUpdate; +import com.dropbox.core.v2.fileproperties.RemovePropertiesArg; +import com.dropbox.core.v2.fileproperties.RemovePropertiesError; +import com.dropbox.core.v2.fileproperties.RemovePropertiesErrorException; +import com.dropbox.core.v2.fileproperties.TemplateError; +import com.dropbox.core.v2.fileproperties.TemplateErrorException; +import com.dropbox.core.v2.fileproperties.UpdatePropertiesArg; +import com.dropbox.core.v2.fileproperties.UpdatePropertiesError; +import com.dropbox.core.v2.fileproperties.UpdatePropertiesErrorException; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "files". + */ +public class DbxUserFilesRequests { + // namespace files (file_tagging.stone, files.stone) + + private final DbxRawClientV2 client; + + public DbxUserFilesRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/files/alpha/get_metadata + // + + /** + * Returns the metadata for a file or folder. This is an alpha endpoint + * compatible with the properties API. Note: Metadata for the root folder is + * unsupported. + * + * + * @return Metadata for a file or folder. + */ + Metadata alphaGetMetadata(AlphaGetMetadataArg arg) throws AlphaGetMetadataErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/alpha/get_metadata", + arg, + false, + AlphaGetMetadataArg.Serializer.INSTANCE, + Metadata.Serializer.INSTANCE, + AlphaGetMetadataError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new AlphaGetMetadataErrorException("2/files/alpha/get_metadata", ex.getRequestId(), ex.getUserMessage(), (AlphaGetMetadataError) ex.getErrorValue()); + } + } + + /** + * Returns the metadata for a file or folder. This is an alpha endpoint + * compatible with the properties API. + * + *

Note: Metadata for the root folder is unsupported.

+ * + *

The default values for the optional request parameters will be used. + * See {@link AlphaGetMetadataBuilder} for more details.

+ * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Metadata for a file or folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#getMetadata(String)} instead. + */ + @Deprecated + public Metadata alphaGetMetadata(String path) throws AlphaGetMetadataErrorException, DbxException { + AlphaGetMetadataArg _arg = new AlphaGetMetadataArg(path); + return alphaGetMetadata(_arg); + } + + /** + * Returns the metadata for a file or folder. This is an alpha endpoint + * compatible with the properties API. Note: Metadata for the root folder is + * unsupported. + * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#getMetadata(String)} instead. + */ + @Deprecated + public AlphaGetMetadataBuilder alphaGetMetadataBuilder(String path) { + AlphaGetMetadataArg.Builder argBuilder_ = AlphaGetMetadataArg.newBuilder(path); + return new AlphaGetMetadataBuilder(this, argBuilder_); + } + + // + // route 2/files/alpha/upload + // + + /** + * Create a new file with the contents provided in the request. Note that + * the behavior of this alpha endpoint is unstable and subject to change. Do + * not use this to upload a file larger than 150 MB. Instead, create an + * upload session with {@link DbxUserFilesRequests#uploadSessionStart}. + * + * + * @return Uploader used to upload the request body and finish request. + */ + AlphaUploadUploader alphaUpload(UploadArg arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), + "2/files/alpha/upload", + arg, + false, + UploadArg.Serializer.INSTANCE); + return new AlphaUploadUploader(_uploader, this.client.getUserId()); + } + + /** + * Create a new file with the contents provided in the request. Note that + * the behavior of this alpha endpoint is unstable and subject to change. + * + *

Do not use this to upload a file larger than 150 MB. Instead, create + * an upload session with {@link DbxUserFilesRequests#uploadSessionStart}. + *

+ * + *

The default values for the optional request parameters will be used. + * See {@link AlphaUploadBuilder} for more details.

+ * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#upload(String)} instead. + */ + @Deprecated + public AlphaUploadUploader alphaUpload(String path) throws DbxException { + UploadArg _arg = new UploadArg(path); + return alphaUpload(_arg); + } + + /** + * Create a new file with the contents provided in the request. Note that + * the behavior of this alpha endpoint is unstable and subject to change. Do + * not use this to upload a file larger than 150 MB. Instead, create an + * upload session with {@link DbxUserFilesRequests#uploadSessionStart}. + * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @return Uploader builder for configuring request parameters and + * instantiating an uploader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#upload(String)} instead. + */ + @Deprecated + public AlphaUploadBuilder alphaUploadBuilder(String path) { + UploadArg.Builder argBuilder_ = UploadArg.newBuilder(path); + return new AlphaUploadBuilder(this, argBuilder_); + } + + // + // route 2/files/copy + // + + /** + * Copy a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be copied. + * + * + * @return Metadata for a file or folder. + */ + Metadata copy(RelocationArg arg) throws RelocationErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy", + arg, + false, + RelocationArg.Serializer.INSTANCE, + Metadata.Serializer.INSTANCE, + RelocationError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RelocationErrorException("2/files/copy", ex.getRequestId(), ex.getUserMessage(), (RelocationError) ex.getErrorValue()); + } + } + + /** + * Copy a file or folder to a different location in the user's Dropbox. + * + *

If the source path is a folder all its contents will be copied.

+ * + *

The default values for the optional request parameters will be used. + * See {@link CopyBuilder} for more details.

+ * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @return Metadata for a file or folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#copyV2(String,String)} + * instead. + */ + @Deprecated + public Metadata copy(String fromPath, String toPath) throws RelocationErrorException, DbxException { + RelocationArg _arg = new RelocationArg(fromPath, toPath); + return copy(_arg); + } + + /** + * Copy a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be copied. + * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#copyV2(String,String)} + * instead. + */ + @Deprecated + public CopyBuilder copyBuilder(String fromPath, String toPath) { + RelocationArg.Builder argBuilder_ = RelocationArg.newBuilder(fromPath, toPath); + return new CopyBuilder(this, argBuilder_); + } + + // + // route 2/files/copy_v2 + // + + /** + * Copy a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be copied. + * + */ + RelocationResult copyV2(RelocationArg arg) throws RelocationErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy_v2", + arg, + false, + RelocationArg.Serializer.INSTANCE, + RelocationResult.Serializer.INSTANCE, + RelocationError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RelocationErrorException("2/files/copy_v2", ex.getRequestId(), ex.getUserMessage(), (RelocationError) ex.getErrorValue()); + } + } + + /** + * Copy a file or folder to a different location in the user's Dropbox. + * + *

If the source path is a folder all its contents will be copied.

+ * + *

The default values for the optional request parameters will be used. + * See {@link CopyV2Builder} for more details.

+ * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationResult copyV2(String fromPath, String toPath) throws RelocationErrorException, DbxException { + RelocationArg _arg = new RelocationArg(fromPath, toPath); + return copyV2(_arg); + } + + /** + * Copy a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be copied. + * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CopyV2Builder copyV2Builder(String fromPath, String toPath) { + RelocationArg.Builder argBuilder_ = RelocationArg.newBuilder(fromPath, toPath); + return new CopyV2Builder(this, argBuilder_); + } + + // + // route 2/files/copy_batch + // + + /** + * Copy multiple files or folders to different locations at once in the + * user's Dropbox. This route will return job ID immediately and do the + * async copy job in background. Please use {@code copyBatchCheck:1} to + * check the job status. + * + * + * @return Result returned by {@link DbxUserFilesRequests#copyBatch(List)} + * or {@link DbxUserFilesRequests#moveBatch(List)} that may either + * launch an asynchronous job or complete synchronously. + */ + RelocationBatchLaunch copyBatch(RelocationBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy_batch", + arg, + false, + RelocationBatchArg.Serializer.INSTANCE, + RelocationBatchLaunch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"copy_batch\":" + ex.getErrorValue()); + } + } + + /** + * Copy multiple files or folders to different locations at once in the + * user's Dropbox. + * + *

This route will return job ID immediately and do the async copy job + * in background. Please use {@code copyBatchCheck:1} to check the job + * status.

+ * + *

The default values for the optional request parameters will be used. + * See {@link CopyBatchBuilder} for more details.

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return Result returned by {@link DbxUserFilesRequests#copyBatch(List)} + * or {@link DbxUserFilesRequests#moveBatch(List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#copyBatchV2(List,boolean)} + * instead. + */ + @Deprecated + public RelocationBatchLaunch copyBatch(List entries) throws DbxApiException, DbxException { + RelocationBatchArg _arg = new RelocationBatchArg(entries); + return copyBatch(_arg); + } + + /** + * Copy multiple files or folders to different locations at once in the + * user's Dropbox. This route will return job ID immediately and do the + * async copy job in background. Please use {@code copyBatchCheck:1} to + * check the job status. + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#copyBatchV2(List,boolean)} + * instead. + */ + @Deprecated + public CopyBatchBuilder copyBatchBuilder(List entries) { + RelocationBatchArg.Builder argBuilder_ = RelocationBatchArg.newBuilder(entries); + return new CopyBatchBuilder(this, argBuilder_); + } + + // + // route 2/files/copy_batch_v2 + // + + /** + * Copy multiple files or folders to different locations at once in the + * user's Dropbox. This route will replace {@code copyBatch:1}. The main + * difference is this route will return status for each entry, while {@code + * copyBatch:1} raises failure if any entry fails. This route will either + * finish synchronously, or return a job ID and do the async copy job in + * background. Please use {@link + * DbxUserFilesRequests#copyBatchCheckV2(String)} to check the job status. + * + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(List)} that may either launch an + * asynchronous job or complete synchronously. + */ + RelocationBatchV2Launch copyBatchV2(RelocationBatchArgBase arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy_batch_v2", + arg, + false, + RelocationBatchArgBase.Serializer.INSTANCE, + RelocationBatchV2Launch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"copy_batch_v2\":" + ex.getErrorValue()); + } + } + + /** + * Copy multiple files or folders to different locations at once in the + * user's Dropbox. + * + *

This route will replace {@code copyBatch:1}. The main difference is + * this route will return status for each entry, while {@code copyBatch:1} + * raises failure if any entry fails.

+ * + *

This route will either finish synchronously, or return a job ID and + * do the async copy job in background. Please use {@link + * DbxUserFilesRequests#copyBatchCheckV2(String)} to check the job status. + *

+ * + *

The {@code autorename} request parameter will default to {@code + * false} (see {@link #copyBatchV2(List,boolean)}).

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(List)} that may either launch an + * asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchV2Launch copyBatchV2(List entries) throws DbxApiException, DbxException { + RelocationBatchArgBase _arg = new RelocationBatchArgBase(entries); + return copyBatchV2(_arg); + } + + /** + * Copy multiple files or folders to different locations at once in the + * user's Dropbox. + * + *

This route will replace {@code copyBatch:1}. The main difference is + * this route will return status for each entry, while {@code copyBatch:1} + * raises failure if any entry fails.

+ * + *

This route will either finish synchronously, or return a job ID and + * do the async copy job in background. Please use {@link + * DbxUserFilesRequests#copyBatchCheckV2(String)} to check the job status. + *

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * @param autorename If there's a conflict with any file, have the Dropbox + * server try to autorename that file to avoid the conflict. + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(List)} that may either launch an + * asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchV2Launch copyBatchV2(List entries, boolean autorename) throws DbxApiException, DbxException { + RelocationBatchArgBase _arg = new RelocationBatchArgBase(entries, autorename); + return copyBatchV2(_arg); + } + + // + // route 2/files/copy_batch/check + // + + /** + * Returns the status of an asynchronous job for {@code copyBatch:1}. If + * success, it returns list of results for each entry. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + RelocationBatchJobStatus copyBatchCheck(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy_batch/check", + arg, + false, + PollArg.Serializer.INSTANCE, + RelocationBatchJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/copy_batch/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for {@code copyBatch:1}. If + * success, it returns list of results for each entry. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#copyBatchCheckV2(String)} + * instead. + */ + @Deprecated + public RelocationBatchJobStatus copyBatchCheck(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return copyBatchCheck(_arg); + } + + // + // route 2/files/copy_batch/check_v2 + // + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#copyBatchV2(List,boolean)}. It returns list of + * results for each entry. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchCheckV2(String)} or {@link + * DbxUserFilesRequests#moveBatchCheckV2(String)} that may either be in + * progress or completed with result for each entry. + */ + RelocationBatchV2JobStatus copyBatchCheckV2(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy_batch/check_v2", + arg, + false, + PollArg.Serializer.INSTANCE, + RelocationBatchV2JobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/copy_batch/check_v2", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#copyBatchV2(List,boolean)}. It returns list of + * results for each entry. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchCheckV2(String)} or {@link + * DbxUserFilesRequests#moveBatchCheckV2(String)} that may either be in + * progress or completed with result for each entry. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchV2JobStatus copyBatchCheckV2(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return copyBatchCheckV2(_arg); + } + + // + // route 2/files/copy_reference/get + // + + /** + * Get a copy reference to a file or folder. This reference string can be + * used to save that file or folder to another user's Dropbox by passing it + * to {@link DbxUserFilesRequests#copyReferenceSave(String,String)}. + * + */ + GetCopyReferenceResult copyReferenceGet(GetCopyReferenceArg arg) throws GetCopyReferenceErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy_reference/get", + arg, + false, + GetCopyReferenceArg.Serializer.INSTANCE, + GetCopyReferenceResult.Serializer.INSTANCE, + GetCopyReferenceError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetCopyReferenceErrorException("2/files/copy_reference/get", ex.getRequestId(), ex.getUserMessage(), (GetCopyReferenceError) ex.getErrorValue()); + } + } + + /** + * Get a copy reference to a file or folder. This reference string can be + * used to save that file or folder to another user's Dropbox by passing it + * to {@link DbxUserFilesRequests#copyReferenceSave(String,String)}. + * + * @param path The path to the file or folder you want to get a copy + * reference to. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetCopyReferenceResult copyReferenceGet(String path) throws GetCopyReferenceErrorException, DbxException { + GetCopyReferenceArg _arg = new GetCopyReferenceArg(path); + return copyReferenceGet(_arg); + } + + // + // route 2/files/copy_reference/save + // + + /** + * Save a copy reference returned by {@link + * DbxUserFilesRequests#copyReferenceGet(String)} to the user's Dropbox. + * + */ + SaveCopyReferenceResult copyReferenceSave(SaveCopyReferenceArg arg) throws SaveCopyReferenceErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/copy_reference/save", + arg, + false, + SaveCopyReferenceArg.Serializer.INSTANCE, + SaveCopyReferenceResult.Serializer.INSTANCE, + SaveCopyReferenceError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SaveCopyReferenceErrorException("2/files/copy_reference/save", ex.getRequestId(), ex.getUserMessage(), (SaveCopyReferenceError) ex.getErrorValue()); + } + } + + /** + * Save a copy reference returned by {@link + * DbxUserFilesRequests#copyReferenceGet(String)} to the user's Dropbox. + * + * @param copyReference A copy reference returned by {@link + * DbxUserFilesRequests#copyReferenceGet(String)}. Must not be {@code + * null}. + * @param path Path in the user's Dropbox that is the destination. Must + * match pattern "{@code /(.|[\\r\\n])*}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SaveCopyReferenceResult copyReferenceSave(String copyReference, String path) throws SaveCopyReferenceErrorException, DbxException { + SaveCopyReferenceArg _arg = new SaveCopyReferenceArg(copyReference, path); + return copyReferenceSave(_arg); + } + + // + // route 2/files/create_folder + // + + /** + * Create a folder at a given path. + * + */ + FolderMetadata createFolder(CreateFolderArg arg) throws CreateFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/create_folder", + arg, + false, + CreateFolderArg.Serializer.INSTANCE, + FolderMetadata.Serializer.INSTANCE, + CreateFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CreateFolderErrorException("2/files/create_folder", ex.getRequestId(), ex.getUserMessage(), (CreateFolderError) ex.getErrorValue()); + } + } + + /** + * Create a folder at a given path. + * + *

The {@code autorename} request parameter will default to {@code + * false} (see {@link #createFolder(String,boolean)}).

+ * + * @param path Path in the user's Dropbox to create. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link + * DbxUserFilesRequests#createFolderV2(String,boolean)} instead. + */ + @Deprecated + public FolderMetadata createFolder(String path) throws CreateFolderErrorException, DbxException { + CreateFolderArg _arg = new CreateFolderArg(path); + return createFolder(_arg); + } + + /** + * Create a folder at a given path. + * + * @param path Path in the user's Dropbox to create. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the folder to avoid the conflict. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link + * DbxUserFilesRequests#createFolderV2(String,boolean)} instead. + */ + @Deprecated + public FolderMetadata createFolder(String path, boolean autorename) throws CreateFolderErrorException, DbxException { + CreateFolderArg _arg = new CreateFolderArg(path, autorename); + return createFolder(_arg); + } + + // + // route 2/files/create_folder_v2 + // + + /** + * Create a folder at a given path. + * + */ + CreateFolderResult createFolderV2(CreateFolderArg arg) throws CreateFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/create_folder_v2", + arg, + false, + CreateFolderArg.Serializer.INSTANCE, + CreateFolderResult.Serializer.INSTANCE, + CreateFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CreateFolderErrorException("2/files/create_folder_v2", ex.getRequestId(), ex.getUserMessage(), (CreateFolderError) ex.getErrorValue()); + } + } + + /** + * Create a folder at a given path. + * + *

The {@code autorename} request parameter will default to {@code + * false} (see {@link #createFolderV2(String,boolean)}).

+ * + * @param path Path in the user's Dropbox to create. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderResult createFolderV2(String path) throws CreateFolderErrorException, DbxException { + CreateFolderArg _arg = new CreateFolderArg(path); + return createFolderV2(_arg); + } + + /** + * Create a folder at a given path. + * + * @param path Path in the user's Dropbox to create. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the folder to avoid the conflict. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderResult createFolderV2(String path, boolean autorename) throws CreateFolderErrorException, DbxException { + CreateFolderArg _arg = new CreateFolderArg(path, autorename); + return createFolderV2(_arg); + } + + // + // route 2/files/create_folder_batch + // + + /** + * Create multiple folders at once. This route is asynchronous for large + * batches, which returns a job ID immediately and runs the create folder + * batch asynchronously. Otherwise, creates the folders and returns the + * result synchronously for smaller inputs. You can force asynchronous + * behaviour by using the {@link CreateFolderBatchArg#getForceAsync} flag. + * Use {@link DbxUserFilesRequests#createFolderBatchCheck(String)} to check + * the job status. + * + * + * @return Result returned by {@link + * DbxUserFilesRequests#createFolderBatch(List)} that may either launch + * an asynchronous job or complete synchronously. + */ + CreateFolderBatchLaunch createFolderBatch(CreateFolderBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/create_folder_batch", + arg, + false, + CreateFolderBatchArg.Serializer.INSTANCE, + CreateFolderBatchLaunch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"create_folder_batch\":" + ex.getErrorValue()); + } + } + + /** + * Create multiple folders at once. + * + *

This route is asynchronous for large batches, which returns a job ID + * immediately and runs the create folder batch asynchronously. Otherwise, + * creates the folders and returns the result synchronously for smaller + * inputs. You can force asynchronous behaviour by using the {@link + * CreateFolderBatchArg#getForceAsync} flag. Use {@link + * DbxUserFilesRequests#createFolderBatchCheck(String)} to check the job + * status.

+ * + *

The default values for the optional request parameters will be used. + * See {@link CreateFolderBatchBuilder} for more details.

+ * + * @param paths List of paths to be created in the user's Dropbox. + * Duplicate path arguments in the batch are considered only once. Must + * contain at most 10000 items, not contain a {@code null} item, and not + * be {@code null}. + * + * @return Result returned by {@link + * DbxUserFilesRequests#createFolderBatch(List)} that may either launch + * an asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderBatchLaunch createFolderBatch(List paths) throws DbxApiException, DbxException { + CreateFolderBatchArg _arg = new CreateFolderBatchArg(paths); + return createFolderBatch(_arg); + } + + /** + * Create multiple folders at once. This route is asynchronous for large + * batches, which returns a job ID immediately and runs the create folder + * batch asynchronously. Otherwise, creates the folders and returns the + * result synchronously for smaller inputs. You can force asynchronous + * behaviour by using the {@link CreateFolderBatchArg#getForceAsync} flag. + * Use {@link DbxUserFilesRequests#createFolderBatchCheck(String)} to check + * the job status. + * + * @param paths List of paths to be created in the user's Dropbox. + * Duplicate path arguments in the batch are considered only once. Must + * contain at most 10000 items, not contain a {@code null} item, and not + * be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderBatchBuilder createFolderBatchBuilder(List paths) { + CreateFolderBatchArg.Builder argBuilder_ = CreateFolderBatchArg.newBuilder(paths); + return new CreateFolderBatchBuilder(this, argBuilder_); + } + + // + // route 2/files/create_folder_batch/check + // + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#createFolderBatch(List)}. If success, it returns + * list of result for each entry. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + CreateFolderBatchJobStatus createFolderBatchCheck(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/create_folder_batch/check", + arg, + false, + PollArg.Serializer.INSTANCE, + CreateFolderBatchJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/create_folder_batch/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#createFolderBatch(List)}. If success, it returns + * list of result for each entry. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderBatchJobStatus createFolderBatchCheck(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return createFolderBatchCheck(_arg); + } + + // + // route 2/files/delete + // + + /** + * Delete the file or folder at a given path. If the path is a folder, all + * its contents will be deleted too. A successful response indicates that + * the file or folder was deleted. The returned metadata will be the + * corresponding {@link FileMetadata} or {@link FolderMetadata} for the item + * at time of deletion, and not a {@link DeletedMetadata} object. + * + * + * @return Metadata for a file or folder. + */ + Metadata delete(DeleteArg arg) throws DeleteErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/delete", + arg, + false, + DeleteArg.Serializer.INSTANCE, + Metadata.Serializer.INSTANCE, + DeleteError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DeleteErrorException("2/files/delete", ex.getRequestId(), ex.getUserMessage(), (DeleteError) ex.getErrorValue()); + } + } + + /** + * Delete the file or folder at a given path. + * + *

If the path is a folder, all its contents will be deleted too.

+ * + *

A successful response indicates that the file or folder was deleted. + * The returned metadata will be the corresponding {@link FileMetadata} or + * {@link FolderMetadata} for the item at time of deletion, and not a {@link + * DeletedMetadata} object.

+ * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * + * @return Metadata for a file or folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#deleteV2(String,String)} + * instead. + */ + @Deprecated + public Metadata delete(String path) throws DeleteErrorException, DbxException { + DeleteArg _arg = new DeleteArg(path); + return delete(_arg); + } + + /** + * Delete the file or folder at a given path. + * + *

If the path is a folder, all its contents will be deleted too.

+ * + *

A successful response indicates that the file or folder was deleted. + * The returned metadata will be the corresponding {@link FileMetadata} or + * {@link FolderMetadata} for the item at time of deletion, and not a {@link + * DeletedMetadata} object.

+ * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * @param parentRev Perform delete if given "rev" matches the existing + * file's latest "rev". This field does not support deleting a folder. + * Must have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @return Metadata for a file or folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#deleteV2(String,String)} + * instead. + */ + @Deprecated + public Metadata delete(String path, String parentRev) throws DeleteErrorException, DbxException { + if (parentRev != null) { + if (parentRev.length() < 9) { + throw new IllegalArgumentException("String 'parentRev' is shorter than 9"); + } + if (!java.util.regex.Pattern.matches("[0-9a-f]+", parentRev)) { + throw new IllegalArgumentException("String 'parentRev' does not match pattern"); + } + } + DeleteArg _arg = new DeleteArg(path, parentRev); + return delete(_arg); + } + + // + // route 2/files/delete_v2 + // + + /** + * Delete the file or folder at a given path. If the path is a folder, all + * its contents will be deleted too. A successful response indicates that + * the file or folder was deleted. The returned metadata will be the + * corresponding {@link FileMetadata} or {@link FolderMetadata} for the item + * at time of deletion, and not a {@link DeletedMetadata} object. + * + */ + DeleteResult deleteV2(DeleteArg arg) throws DeleteErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/delete_v2", + arg, + false, + DeleteArg.Serializer.INSTANCE, + DeleteResult.Serializer.INSTANCE, + DeleteError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DeleteErrorException("2/files/delete_v2", ex.getRequestId(), ex.getUserMessage(), (DeleteError) ex.getErrorValue()); + } + } + + /** + * Delete the file or folder at a given path. + * + *

If the path is a folder, all its contents will be deleted too.

+ * + *

A successful response indicates that the file or folder was deleted. + * The returned metadata will be the corresponding {@link FileMetadata} or + * {@link FolderMetadata} for the item at time of deletion, and not a {@link + * DeletedMetadata} object.

+ * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteResult deleteV2(String path) throws DeleteErrorException, DbxException { + DeleteArg _arg = new DeleteArg(path); + return deleteV2(_arg); + } + + /** + * Delete the file or folder at a given path. + * + *

If the path is a folder, all its contents will be deleted too.

+ * + *

A successful response indicates that the file or folder was deleted. + * The returned metadata will be the corresponding {@link FileMetadata} or + * {@link FolderMetadata} for the item at time of deletion, and not a {@link + * DeletedMetadata} object.

+ * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * @param parentRev Perform delete if given "rev" matches the existing + * file's latest "rev". This field does not support deleting a folder. + * Must have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteResult deleteV2(String path, String parentRev) throws DeleteErrorException, DbxException { + if (parentRev != null) { + if (parentRev.length() < 9) { + throw new IllegalArgumentException("String 'parentRev' is shorter than 9"); + } + if (!java.util.regex.Pattern.matches("[0-9a-f]+", parentRev)) { + throw new IllegalArgumentException("String 'parentRev' does not match pattern"); + } + } + DeleteArg _arg = new DeleteArg(path, parentRev); + return deleteV2(_arg); + } + + // + // route 2/files/delete_batch + // + + /** + * Delete multiple files/folders at once. This route is asynchronous, which + * returns a job ID immediately and runs the delete batch asynchronously. + * Use {@link DbxUserFilesRequests#deleteBatchCheck(String)} to check the + * job status. + * + * + * @return Result returned by {@link DbxUserFilesRequests#deleteBatch(List)} + * that may either launch an asynchronous job or complete synchronously. + */ + DeleteBatchLaunch deleteBatch(DeleteBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/delete_batch", + arg, + false, + DeleteBatchArg.Serializer.INSTANCE, + DeleteBatchLaunch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"delete_batch\":" + ex.getErrorValue()); + } + } + + /** + * Delete multiple files/folders at once. + * + *

This route is asynchronous, which returns a job ID immediately and + * runs the delete batch asynchronously. Use {@link + * DbxUserFilesRequests#deleteBatchCheck(String)} to check the job status. + *

+ * + * @param entries Must contain at most 1000 items, not contain a {@code + * null} item, and not be {@code null}. + * + * @return Result returned by {@link DbxUserFilesRequests#deleteBatch(List)} + * that may either launch an asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteBatchLaunch deleteBatch(List entries) throws DbxApiException, DbxException { + DeleteBatchArg _arg = new DeleteBatchArg(entries); + return deleteBatch(_arg); + } + + // + // route 2/files/delete_batch/check + // + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#deleteBatch(List)}. If success, it returns list of + * result for each entry. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + DeleteBatchJobStatus deleteBatchCheck(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/delete_batch/check", + arg, + false, + PollArg.Serializer.INSTANCE, + DeleteBatchJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/delete_batch/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#deleteBatch(List)}. If success, it returns list of + * result for each entry. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteBatchJobStatus deleteBatchCheck(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return deleteBatchCheck(_arg); + } + + // + // route 2/files/download + // + + /** + * Download a file from a user's Dropbox. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader download(DownloadArg arg, List _headers) throws DownloadErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/files/download", + arg, + false, + _headers, + DownloadArg.Serializer.INSTANCE, + FileMetadata.Serializer.INSTANCE, + DownloadError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DownloadErrorException("2/files/download", ex.getRequestId(), ex.getUserMessage(), (DownloadError) ex.getErrorValue()); + } + } + + /** + * Download a file from a user's Dropbox. + * + * @param path The path of the file to download. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader download(String path) throws DownloadErrorException, DbxException { + DownloadArg _arg = new DownloadArg(path); + return download(_arg, Collections.emptyList()); + } + + /** + * Download a file from a user's Dropbox. + * + * @param path The path of the file to download. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param rev Please specify revision in the {@code path} argument to + * {@link DbxUserFilesRequests#download(String,String)} instead. Must + * have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader download(String path, String rev) throws DownloadErrorException, DbxException { + if (rev != null) { + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!java.util.regex.Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + } + DownloadArg _arg = new DownloadArg(path, rev); + return download(_arg, Collections.emptyList()); + } + + /** + * Download a file from a user's Dropbox. + * + * @param path The path of the file to download. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DownloadBuilder downloadBuilder(String path) { + return new DownloadBuilder(this, path); + } + + // + // route 2/files/download_zip + // + + /** + * Download a folder from the user's Dropbox, as a zip file. The folder must + * be less than 20 GB in size and any single file within must be less than 4 + * GB in size. The resulting zip must have fewer than 10,000 total file and + * folder entries, including the top level folder. The input cannot be a + * single file. Note: this endpoint does not support HTTP range requests. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader downloadZip(DownloadZipArg arg, List _headers) throws DownloadZipErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/files/download_zip", + arg, + false, + _headers, + DownloadZipArg.Serializer.INSTANCE, + DownloadZipResult.Serializer.INSTANCE, + DownloadZipError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DownloadZipErrorException("2/files/download_zip", ex.getRequestId(), ex.getUserMessage(), (DownloadZipError) ex.getErrorValue()); + } + } + + /** + * Download a folder from the user's Dropbox, as a zip file. The folder must + * be less than 20 GB in size and any single file within must be less than 4 + * GB in size. The resulting zip must have fewer than 10,000 total file and + * folder entries, including the top level folder. The input cannot be a + * single file. + * + *

Note: this endpoint does not support HTTP range requests.

+ * + * @param path The path of the folder to download. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader downloadZip(String path) throws DownloadZipErrorException, DbxException { + DownloadZipArg _arg = new DownloadZipArg(path); + return downloadZip(_arg, Collections.emptyList()); + } + + /** + * Download a folder from the user's Dropbox, as a zip file. The folder must + * be less than 20 GB in size and any single file within must be less than 4 + * GB in size. The resulting zip must have fewer than 10,000 total file and + * folder entries, including the top level folder. The input cannot be a + * single file. Note: this endpoint does not support HTTP range requests. + * + * @param path The path of the folder to download. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DownloadZipBuilder downloadZipBuilder(String path) { + return new DownloadZipBuilder(this, path); + } + + // + // route 2/files/export + // + + /** + * Export a file from a user's Dropbox. This route only supports exporting + * files that cannot be downloaded directly and whose {@link + * ExportResult#getFileMetadata} has {@link ExportInfo#getExportAs} + * populated. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader export(ExportArg arg, List _headers) throws ExportErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/files/export", + arg, + false, + _headers, + ExportArg.Serializer.INSTANCE, + ExportResult.Serializer.INSTANCE, + ExportError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ExportErrorException("2/files/export", ex.getRequestId(), ex.getUserMessage(), (ExportError) ex.getErrorValue()); + } + } + + /** + * Export a file from a user's Dropbox. This route only supports exporting + * files that cannot be downloaded directly and whose {@link + * ExportResult#getFileMetadata} has {@link ExportInfo#getExportAs} + * populated. + * + * @param path The path of the file to be exported. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader export(String path) throws ExportErrorException, DbxException { + ExportArg _arg = new ExportArg(path); + return export(_arg, Collections.emptyList()); + } + + /** + * Export a file from a user's Dropbox. This route only supports exporting + * files that cannot be downloaded directly and whose {@link + * ExportResult#getFileMetadata} has {@link ExportInfo#getExportAs} + * populated. + * + * @param path The path of the file to be exported. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param exportFormat The file format to which the file should be + * exported. This must be one of the formats listed in the file's + * export_options returned by {@link + * DbxUserFilesRequests#getMetadata(String)}. If none is specified, the + * default format (specified in export_as in file metadata) will be + * used. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader export(String path, String exportFormat) throws ExportErrorException, DbxException { + ExportArg _arg = new ExportArg(path, exportFormat); + return export(_arg, Collections.emptyList()); + } + + /** + * Export a file from a user's Dropbox. This route only supports exporting + * files that cannot be downloaded directly and whose {@link + * ExportResult#getFileMetadata} has {@link ExportInfo#getExportAs} + * populated. + * + * @param path The path of the file to be exported. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportBuilder exportBuilder(String path) { + return new ExportBuilder(this, path); + } + + // + // route 2/files/get_file_lock_batch + // + + /** + * Return the lock metadata for the given list of paths. + * + */ + LockFileBatchResult getFileLockBatch(LockFileBatchArg arg) throws LockFileErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/get_file_lock_batch", + arg, + false, + LockFileBatchArg.Serializer.INSTANCE, + LockFileBatchResult.Serializer.INSTANCE, + LockFileError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LockFileErrorException("2/files/get_file_lock_batch", ex.getRequestId(), ex.getUserMessage(), (LockFileError) ex.getErrorValue()); + } + } + + /** + * Return the lock metadata for the given list of paths. + * + * @param entries List of 'entries'. Each 'entry' contains a path of the + * file which will be locked or queried. Duplicate path arguments in the + * batch are considered only once. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockFileBatchResult getFileLockBatch(List entries) throws LockFileErrorException, DbxException { + LockFileBatchArg _arg = new LockFileBatchArg(entries); + return getFileLockBatch(_arg); + } + + // + // route 2/files/get_metadata + // + + /** + * Returns the metadata for a file or folder. Note: Metadata for the root + * folder is unsupported. + * + * + * @return Metadata for a file or folder. + */ + Metadata getMetadata(GetMetadataArg arg) throws GetMetadataErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/get_metadata", + arg, + false, + GetMetadataArg.Serializer.INSTANCE, + Metadata.Serializer.INSTANCE, + GetMetadataError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetMetadataErrorException("2/files/get_metadata", ex.getRequestId(), ex.getUserMessage(), (GetMetadataError) ex.getErrorValue()); + } + } + + /** + * Returns the metadata for a file or folder. + * + *

Note: Metadata for the root folder is unsupported.

+ * + *

The default values for the optional request parameters will be used. + * See {@link GetMetadataBuilder} for more details.

+ * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Metadata for a file or folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Metadata getMetadata(String path) throws GetMetadataErrorException, DbxException { + GetMetadataArg _arg = new GetMetadataArg(path); + return getMetadata(_arg); + } + + /** + * Returns the metadata for a file or folder. Note: Metadata for the root + * folder is unsupported. + * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetMetadataBuilder getMetadataBuilder(String path) { + GetMetadataArg.Builder argBuilder_ = GetMetadataArg.newBuilder(path); + return new GetMetadataBuilder(this, argBuilder_); + } + + // + // route 2/files/get_preview + // + + /** + * Get a preview for a file. Currently, PDF previews are generated for files + * with the following extensions: .ai, .doc, .docm, .docx, .eps, .gdoc, + * .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML + * previews are generated for files with the following extensions: .csv, + * .ods, .xls, .xlsm, .gsheet, .xlsx. Other formats will return an + * unsupported extension error. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader getPreview(PreviewArg arg, List _headers) throws PreviewErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/files/get_preview", + arg, + false, + _headers, + PreviewArg.Serializer.INSTANCE, + FileMetadata.Serializer.INSTANCE, + PreviewError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PreviewErrorException("2/files/get_preview", ex.getRequestId(), ex.getUserMessage(), (PreviewError) ex.getErrorValue()); + } + } + + /** + * Get a preview for a file. + * + *

Currently, PDF previews are generated for files with the following + * extensions: .ai, .doc, .docm, .docx, .eps, .gdoc, .gslides, .odp, .odt, + * .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf.

+ * + *

HTML previews are generated for files with the following extensions: + * .csv, .ods, .xls, .xlsm, .gsheet, .xlsx.

+ * + *

Other formats will return an unsupported extension error.

+ * + * @param path The path of the file to preview. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader getPreview(String path) throws PreviewErrorException, DbxException { + PreviewArg _arg = new PreviewArg(path); + return getPreview(_arg, Collections.emptyList()); + } + + /** + * Get a preview for a file. + * + *

Currently, PDF previews are generated for files with the following + * extensions: .ai, .doc, .docm, .docx, .eps, .gdoc, .gslides, .odp, .odt, + * .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf.

+ * + *

HTML previews are generated for files with the following extensions: + * .csv, .ods, .xls, .xlsm, .gsheet, .xlsx.

+ * + *

Other formats will return an unsupported extension error.

+ * + * @param path The path of the file to preview. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param rev Please specify revision in the {@code path} argument to + * {@link DbxUserFilesRequests#getPreview(String,String)} instead. Must + * have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader getPreview(String path, String rev) throws PreviewErrorException, DbxException { + if (rev != null) { + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!java.util.regex.Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + } + PreviewArg _arg = new PreviewArg(path, rev); + return getPreview(_arg, Collections.emptyList()); + } + + /** + * Get a preview for a file. Currently, PDF previews are generated for files + * with the following extensions: .ai, .doc, .docm, .docx, .eps, .gdoc, + * .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML + * previews are generated for files with the following extensions: .csv, + * .ods, .xls, .xlsm, .gsheet, .xlsx. Other formats will return an + * unsupported extension error. + * + * @param path The path of the file to preview. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetPreviewBuilder getPreviewBuilder(String path) { + return new GetPreviewBuilder(this, path); + } + + // + // route 2/files/get_temporary_link + // + + /** + * Get a temporary link to stream content of a file. This link will expire + * in four hours and afterwards you will get 410 Gone. This URL should not + * be used to display content directly in the browser. The Content-Type of + * the link is determined automatically by the file's mime type. + * + */ + GetTemporaryLinkResult getTemporaryLink(GetTemporaryLinkArg arg) throws GetTemporaryLinkErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/get_temporary_link", + arg, + false, + GetTemporaryLinkArg.Serializer.INSTANCE, + GetTemporaryLinkResult.Serializer.INSTANCE, + GetTemporaryLinkError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetTemporaryLinkErrorException("2/files/get_temporary_link", ex.getRequestId(), ex.getUserMessage(), (GetTemporaryLinkError) ex.getErrorValue()); + } + } + + /** + * Get a temporary link to stream content of a file. This link will expire + * in four hours and afterwards you will get 410 Gone. This URL should not + * be used to display content directly in the browser. The Content-Type of + * the link is determined automatically by the file's mime type. + * + * @param path The path to the file you want a temporary link to. Must + * match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryLinkResult getTemporaryLink(String path) throws GetTemporaryLinkErrorException, DbxException { + GetTemporaryLinkArg _arg = new GetTemporaryLinkArg(path); + return getTemporaryLink(_arg); + } + + // + // route 2/files/get_temporary_upload_link + // + + /** + * Get a one-time use temporary upload link to upload a file to a Dropbox + * location. + * + *

This endpoint acts as a delayed {@link + * DbxUserFilesRequests#upload(String)}. The returned temporary upload link + * may be used to make a POST request with the data to be uploaded. The + * upload will then be perfomed with the {@link CommitInfo} previously + * provided to {@link + * DbxUserFilesRequests#getTemporaryUploadLink(CommitInfo,double)} but + * evaluated only upon consumption. Hence, errors stemming from invalid + * {@link CommitInfo} with respect to the state of the user's Dropbox will + * only be communicated at consumption time. Additionally, these errors are + * surfaced as generic HTTP 409 Conflict responses, potentially hiding issue + * details. The maximum temporary upload link duration is 4 hours. Upon + * consumption or expiration, a new link will have to be generated. Multiple + * links may exist for a specific upload path at any given time.

+ * + *

The POST request on the temporary upload link must have its + * Content-Type set to "application/octet-stream".

+ * + *

Example temporary upload link consumption request:

+ * + *

curl -X POST https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND + * --header "Content-Type: application/octet-stream" --data-binary + * @local_file.txt

+ * + *

A successful temporary upload link consumption request returns the + * content hash of the uploaded data in JSON format.

+ * + *

Example successful temporary upload link consumption response: + * {"content-hash": "599d71033d700ac892a0e48fa61b125d2f5994"}

+ * + *

An unsuccessful temporary upload link consumption request returns any + * of the following status codes:

+ * + *

HTTP 400 Bad Request: Content-Type is not one of + * application/octet-stream and text/plain or request is invalid. HTTP 409 + * Conflict: The temporary upload link does not exist or is currently + * unavailable, the upload failed, or another error happened. HTTP 410 Gone: + * The temporary upload link is expired or consumed.

+ * + *

Example unsuccessful temporary upload link consumption response: + * Temporary upload link has been recently consumed.

+ * + */ + GetTemporaryUploadLinkResult getTemporaryUploadLink(GetTemporaryUploadLinkArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/get_temporary_upload_link", + arg, + false, + GetTemporaryUploadLinkArg.Serializer.INSTANCE, + GetTemporaryUploadLinkResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"get_temporary_upload_link\":" + ex.getErrorValue()); + } + } + + /** + * Get a one-time use temporary upload link to upload a file to a Dropbox + * location. + * + *

This endpoint acts as a delayed {@link + * DbxUserFilesRequests#upload(String)}. The returned temporary upload link + * may be used to make a POST request with the data to be uploaded. The + * upload will then be perfomed with the {@link CommitInfo} previously + * provided to {@link + * DbxUserFilesRequests#getTemporaryUploadLink(CommitInfo,double)} but + * evaluated only upon consumption. Hence, errors stemming from invalid + * {@link CommitInfo} with respect to the state of the user's Dropbox will + * only be communicated at consumption time. Additionally, these errors are + * surfaced as generic HTTP 409 Conflict responses, potentially hiding issue + * details. The maximum temporary upload link duration is 4 hours. Upon + * consumption or expiration, a new link will have to be generated. Multiple + * links may exist for a specific upload path at any given time.

+ * + *

The POST request on the temporary upload link must have its + * Content-Type set to "application/octet-stream".

+ * + *

Example temporary upload link consumption request:

+ * + *

curl -X POST https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND + *

+ * + *

--header "Content-Type: application/octet-stream"

+ * + *

--data-binary @local_file.txt

+ * + *

A successful temporary upload link consumption request returns the + * content hash of the uploaded data in JSON format.

+ * + *

Example successful temporary upload link consumption response:

+ * + *

{"content-hash": "599d71033d700ac892a0e48fa61b125d2f5994"}

+ * + *

An unsuccessful temporary upload link consumption request returns any + * of the following status codes:

+ * + *

HTTP 400 Bad Request: Content-Type is not one of + * application/octet-stream and text/plain or request is invalid.

+ * + *

HTTP 409 Conflict: The temporary upload link does not exist or is + * currently unavailable, the upload failed, or another error happened.

+ * + *

HTTP 410 Gone: The temporary upload link is expired or consumed.

+ * + *

Example unsuccessful temporary upload link consumption response:

+ * + *

Temporary upload link has been recently consumed.

+ * + *

The {@code duration} request parameter will default to {@code + * 14400.0} (see {@link #getTemporaryUploadLink(CommitInfo,double)}).

+ * + * @param commitInfo Contains the path and other optional modifiers for the + * future upload commit. Equivalent to the parameters provided to {@link + * DbxUserFilesRequests#upload(String)}. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryUploadLinkResult getTemporaryUploadLink(CommitInfo commitInfo) throws DbxApiException, DbxException { + GetTemporaryUploadLinkArg _arg = new GetTemporaryUploadLinkArg(commitInfo); + return getTemporaryUploadLink(_arg); + } + + /** + * Get a one-time use temporary upload link to upload a file to a Dropbox + * location. + * + *

This endpoint acts as a delayed {@link + * DbxUserFilesRequests#upload(String)}. The returned temporary upload link + * may be used to make a POST request with the data to be uploaded. The + * upload will then be perfomed with the {@link CommitInfo} previously + * provided to {@link + * DbxUserFilesRequests#getTemporaryUploadLink(CommitInfo,double)} but + * evaluated only upon consumption. Hence, errors stemming from invalid + * {@link CommitInfo} with respect to the state of the user's Dropbox will + * only be communicated at consumption time. Additionally, these errors are + * surfaced as generic HTTP 409 Conflict responses, potentially hiding issue + * details. The maximum temporary upload link duration is 4 hours. Upon + * consumption or expiration, a new link will have to be generated. Multiple + * links may exist for a specific upload path at any given time.

+ * + *

The POST request on the temporary upload link must have its + * Content-Type set to "application/octet-stream".

+ * + *

Example temporary upload link consumption request:

+ * + *

curl -X POST https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND + *

+ * + *

--header "Content-Type: application/octet-stream"

+ * + *

--data-binary @local_file.txt

+ * + *

A successful temporary upload link consumption request returns the + * content hash of the uploaded data in JSON format.

+ * + *

Example successful temporary upload link consumption response:

+ * + *

{"content-hash": "599d71033d700ac892a0e48fa61b125d2f5994"}

+ * + *

An unsuccessful temporary upload link consumption request returns any + * of the following status codes:

+ * + *

HTTP 400 Bad Request: Content-Type is not one of + * application/octet-stream and text/plain or request is invalid.

+ * + *

HTTP 409 Conflict: The temporary upload link does not exist or is + * currently unavailable, the upload failed, or another error happened.

+ * + *

HTTP 410 Gone: The temporary upload link is expired or consumed.

+ * + *

Example unsuccessful temporary upload link consumption response:

+ * + *

Temporary upload link has been recently consumed.

+ * + * @param commitInfo Contains the path and other optional modifiers for the + * future upload commit. Equivalent to the parameters provided to {@link + * DbxUserFilesRequests#upload(String)}. Must not be {@code null}. + * @param duration How long before this link expires, in seconds. + * Attempting to start an upload with this link longer than this period + * of time after link creation will result in an error. Must be greater + * than or equal to 60.0 and be less than or equal to 14400.0. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryUploadLinkResult getTemporaryUploadLink(CommitInfo commitInfo, double duration) throws DbxApiException, DbxException { + if (duration < 60.0) { + throw new IllegalArgumentException("Number 'duration' is smaller than 60.0"); + } + if (duration > 14400.0) { + throw new IllegalArgumentException("Number 'duration' is larger than 14400.0"); + } + GetTemporaryUploadLinkArg _arg = new GetTemporaryUploadLinkArg(commitInfo, duration); + return getTemporaryUploadLink(_arg); + } + + // + // route 2/files/get_thumbnail + // + + /** + * Get a thumbnail for an image. This method currently supports files with + * the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm + * and bmp. Photos that are larger than 20MB in size won't be converted to a + * thumbnail. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader getThumbnail(ThumbnailArg arg, List _headers) throws ThumbnailErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/files/get_thumbnail", + arg, + false, + _headers, + ThumbnailArg.Serializer.INSTANCE, + FileMetadata.Serializer.INSTANCE, + ThumbnailError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ThumbnailErrorException("2/files/get_thumbnail", ex.getRequestId(), ex.getUserMessage(), (ThumbnailError) ex.getErrorValue()); + } + } + + /** + * Get a thumbnail for an image. + * + *

This method currently supports files with the following file + * extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos + * that are larger than 20MB in size won't be converted to a thumbnail.

+ * + *

The default values for the optional request parameters will be used. + * See {@link GetThumbnailBuilder} for more details.

+ * + * @param path The path to the image file you want to thumbnail. Must match + * pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader getThumbnail(String path) throws ThumbnailErrorException, DbxException { + ThumbnailArg _arg = new ThumbnailArg(path); + return getThumbnail(_arg, Collections.emptyList()); + } + + /** + * Get a thumbnail for an image. This method currently supports files with + * the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm + * and bmp. Photos that are larger than 20MB in size won't be converted to a + * thumbnail. + * + * @param path The path to the image file you want to thumbnail. Must match + * pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBuilder getThumbnailBuilder(String path) { + ThumbnailArg.Builder argBuilder_ = ThumbnailArg.newBuilder(path); + return new GetThumbnailBuilder(this, argBuilder_); + } + + // + // route 2/files/get_thumbnail_v2 + // + + /** + * Get a thumbnail for an image. This method currently supports files with + * the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm + * and bmp. Photos that are larger than 20MB in size won't be converted to a + * thumbnail. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader getThumbnailV2(ThumbnailV2Arg arg, List _headers) throws ThumbnailV2ErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/files/get_thumbnail_v2", + arg, + false, + _headers, + ThumbnailV2Arg.Serializer.INSTANCE, + PreviewResult.Serializer.INSTANCE, + ThumbnailV2Error.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ThumbnailV2ErrorException("2/files/get_thumbnail_v2", ex.getRequestId(), ex.getUserMessage(), (ThumbnailV2Error) ex.getErrorValue()); + } + } + + /** + * Get a thumbnail for an image. + * + *

This method currently supports files with the following file + * extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos + * that are larger than 20MB in size won't be converted to a thumbnail.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DbxUserGetThumbnailV2Builder} for more details.

+ * + * @param resource Information specifying which file to preview. This could + * be a path to a file, a shared link pointing to a file, or a shared + * link pointing to a folder, with a relative path. Must not be {@code + * null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader getThumbnailV2(PathOrLink resource) throws ThumbnailV2ErrorException, DbxException { + ThumbnailV2Arg _arg = new ThumbnailV2Arg(resource); + return getThumbnailV2(_arg, Collections.emptyList()); + } + + /** + * Get a thumbnail for an image. This method currently supports files with + * the following file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm + * and bmp. Photos that are larger than 20MB in size won't be converted to a + * thumbnail. + * + * @param resource Information specifying which file to preview. This could + * be a path to a file, a shared link pointing to a file, or a shared + * link pointing to a folder, with a relative path. Must not be {@code + * null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserGetThumbnailV2Builder getThumbnailV2Builder(PathOrLink resource) { + ThumbnailV2Arg.Builder argBuilder_ = ThumbnailV2Arg.newBuilder(resource); + return new DbxUserGetThumbnailV2Builder(this, argBuilder_); + } + + // + // route 2/files/get_thumbnail_batch + // + + /** + * Get thumbnails for a list of images. We allow up to 25 thumbnails in a + * single batch. This method currently supports files with the following + * file extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. + * Photos that are larger than 20MB in size won't be converted to a + * thumbnail. + * + * @param arg Arguments for {@link + * DbxUserFilesRequests#getThumbnailBatch(List)}. + */ + GetThumbnailBatchResult getThumbnailBatch(GetThumbnailBatchArg arg) throws GetThumbnailBatchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getContent(), + "2/files/get_thumbnail_batch", + arg, + false, + GetThumbnailBatchArg.Serializer.INSTANCE, + GetThumbnailBatchResult.Serializer.INSTANCE, + GetThumbnailBatchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetThumbnailBatchErrorException("2/files/get_thumbnail_batch", ex.getRequestId(), ex.getUserMessage(), (GetThumbnailBatchError) ex.getErrorValue()); + } + } + + /** + * Get thumbnails for a list of images. We allow up to 25 thumbnails in a + * single batch. + * + *

This method currently supports files with the following file + * extensions: jpg, jpeg, png, tiff, tif, gif, webp, ppm and bmp. Photos + * that are larger than 20MB in size won't be converted to a thumbnail.

+ * + * @param entries List of files to get thumbnails. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBatchResult getThumbnailBatch(List entries) throws GetThumbnailBatchErrorException, DbxException { + GetThumbnailBatchArg _arg = new GetThumbnailBatchArg(entries); + return getThumbnailBatch(_arg); + } + + // + // route 2/files/list_folder + // + + /** + * Starts returning the contents of a folder. If the result's {@link + * ListFolderResult#getHasMore} field is {@code true}, call {@link + * DbxUserFilesRequests#listFolderContinue(String)} with the returned {@link + * ListFolderResult#getCursor} to retrieve more entries. If you're using + * {@link ListFolderArg#getRecursive} set to {@code true} to keep a local + * cache of the contents of a Dropbox account, iterate through each entry in + * order and process them as follows to keep your local state in sync: For + * each {@link FileMetadata}, store the new entry at the given path in your + * local state. If the required parent folders don't exist yet, create them. + * If there's already something else at the given path, replace it and + * remove all its children. For each {@link FolderMetadata}, store the new + * entry at the given path in your local state. If the required parent + * folders don't exist yet, create them. If there's already something else + * at the given path, replace it but leave the children as they are. Check + * the new entry's {@link FolderSharingInfo#getReadOnly} and set all its + * children's read-only statuses to match. For each {@link DeletedMetadata}, + * if your local state has something at the given path, remove it and all + * its children. If there's nothing at the given path, ignore this entry. + * Note: {@link com.dropbox.core.v2.auth.RateLimitError} may be returned if + * multiple {@link DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)} calls with same + * parameters are made simultaneously by same API app for same user. If your + * app implements retry logic, please hold off the retry until the previous + * request finishes. + * + */ + ListFolderResult listFolder(ListFolderArg arg) throws ListFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/list_folder", + arg, + false, + ListFolderArg.Serializer.INSTANCE, + ListFolderResult.Serializer.INSTANCE, + ListFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFolderErrorException("2/files/list_folder", ex.getRequestId(), ex.getUserMessage(), (ListFolderError) ex.getErrorValue()); + } + } + + /** + * Starts returning the contents of a folder. If the result's {@link + * ListFolderResult#getHasMore} field is {@code true}, call {@link + * DbxUserFilesRequests#listFolderContinue(String)} with the returned {@link + * ListFolderResult#getCursor} to retrieve more entries. + * + *

If you're using {@link ListFolderArg#getRecursive} set to {@code + * true} to keep a local cache of the contents of a Dropbox account, iterate + * through each entry in order and process them as follows to keep your + * local state in sync:

+ * + *

For each {@link FileMetadata}, store the new entry at the given path + * in your local state. If the required parent folders don't exist yet, + * create them. If there's already something else at the given path, replace + * it and remove all its children.

+ * + *

For each {@link FolderMetadata}, store the new entry at the given + * path in your local state. If the required parent folders don't exist yet, + * create them. If there's already something else at the given path, replace + * it but leave the children as they are. Check the new entry's {@link + * FolderSharingInfo#getReadOnly} and set all its children's read-only + * statuses to match.

+ * + *

For each {@link DeletedMetadata}, if your local state has something + * at the given path, remove it and all its children. If there's nothing at + * the given path, ignore this entry.

+ * + *

Note: {@link com.dropbox.core.v2.auth.RateLimitError} may be returned + * if multiple {@link DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)} calls with same + * parameters are made simultaneously by same API app for same user. If your + * app implements retry logic, please hold off the retry until the previous + * request finishes.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DbxUserListFolderBuilder} for more details.

+ * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderResult listFolder(String path) throws ListFolderErrorException, DbxException { + ListFolderArg _arg = new ListFolderArg(path); + return listFolder(_arg); + } + + /** + * Starts returning the contents of a folder. If the result's {@link + * ListFolderResult#getHasMore} field is {@code true}, call {@link + * DbxUserFilesRequests#listFolderContinue(String)} with the returned {@link + * ListFolderResult#getCursor} to retrieve more entries. If you're using + * {@link ListFolderArg#getRecursive} set to {@code true} to keep a local + * cache of the contents of a Dropbox account, iterate through each entry in + * order and process them as follows to keep your local state in sync: For + * each {@link FileMetadata}, store the new entry at the given path in your + * local state. If the required parent folders don't exist yet, create them. + * If there's already something else at the given path, replace it and + * remove all its children. For each {@link FolderMetadata}, store the new + * entry at the given path in your local state. If the required parent + * folders don't exist yet, create them. If there's already something else + * at the given path, replace it but leave the children as they are. Check + * the new entry's {@link FolderSharingInfo#getReadOnly} and set all its + * children's read-only statuses to match. For each {@link DeletedMetadata}, + * if your local state has something at the given path, remove it and all + * its children. If there's nothing at the given path, ignore this entry. + * Note: {@link com.dropbox.core.v2.auth.RateLimitError} may be returned if + * multiple {@link DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)} calls with same + * parameters are made simultaneously by same API app for same user. If your + * app implements retry logic, please hold off the retry until the previous + * request finishes. + * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserListFolderBuilder listFolderBuilder(String path) { + ListFolderArg.Builder argBuilder_ = ListFolderArg.newBuilder(path); + return new DbxUserListFolderBuilder(this, argBuilder_); + } + + // + // route 2/files/list_folder/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserFilesRequests#listFolder(String)}, use this to paginate through + * all files and retrieve updates to the folder, following the same rules as + * documented for {@link DbxUserFilesRequests#listFolder(String)}. + * + */ + ListFolderResult listFolderContinue(ListFolderContinueArg arg) throws ListFolderContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/list_folder/continue", + arg, + false, + ListFolderContinueArg.Serializer.INSTANCE, + ListFolderResult.Serializer.INSTANCE, + ListFolderContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFolderContinueErrorException("2/files/list_folder/continue", ex.getRequestId(), ex.getUserMessage(), (ListFolderContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserFilesRequests#listFolder(String)}, use this to paginate through + * all files and retrieve updates to the folder, following the same rules as + * documented for {@link DbxUserFilesRequests#listFolder(String)}. + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)}. Must have length of + * at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderResult listFolderContinue(String cursor) throws ListFolderContinueErrorException, DbxException { + ListFolderContinueArg _arg = new ListFolderContinueArg(cursor); + return listFolderContinue(_arg); + } + + // + // route 2/files/list_folder/get_latest_cursor + // + + /** + * A way to quickly get a cursor for the folder's state. Unlike {@link + * DbxUserFilesRequests#listFolder(String)}, {@link + * DbxUserFilesRequests#listFolderGetLatestCursor(String)} doesn't return + * any entries. This endpoint is for app which only needs to know about new + * files and modifications and doesn't need to know about files that already + * exist in Dropbox. + * + */ + ListFolderGetLatestCursorResult listFolderGetLatestCursor(ListFolderArg arg) throws ListFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/list_folder/get_latest_cursor", + arg, + false, + ListFolderArg.Serializer.INSTANCE, + ListFolderGetLatestCursorResult.Serializer.INSTANCE, + ListFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFolderErrorException("2/files/list_folder/get_latest_cursor", ex.getRequestId(), ex.getUserMessage(), (ListFolderError) ex.getErrorValue()); + } + } + + /** + * A way to quickly get a cursor for the folder's state. Unlike {@link + * DbxUserFilesRequests#listFolder(String)}, {@link + * DbxUserFilesRequests#listFolderGetLatestCursor(String)} doesn't return + * any entries. This endpoint is for app which only needs to know about new + * files and modifications and doesn't need to know about files that already + * exist in Dropbox. + * + *

The default values for the optional request parameters will be used. + * See {@link ListFolderGetLatestCursorBuilder} for more details.

+ * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderGetLatestCursorResult listFolderGetLatestCursor(String path) throws ListFolderErrorException, DbxException { + ListFolderArg _arg = new ListFolderArg(path); + return listFolderGetLatestCursor(_arg); + } + + /** + * A way to quickly get a cursor for the folder's state. Unlike {@link + * DbxUserFilesRequests#listFolder(String)}, {@link + * DbxUserFilesRequests#listFolderGetLatestCursor(String)} doesn't return + * any entries. This endpoint is for app which only needs to know about new + * files and modifications and doesn't need to know about files that already + * exist in Dropbox. + * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderGetLatestCursorBuilder listFolderGetLatestCursorBuilder(String path) { + ListFolderArg.Builder argBuilder_ = ListFolderArg.newBuilder(path); + return new ListFolderGetLatestCursorBuilder(this, argBuilder_); + } + + // + // route 2/files/list_folder/longpoll + // + + /** + * A longpoll endpoint to wait for changes on an account. In conjunction + * with {@link DbxUserFilesRequests#listFolderContinue(String)}, this call + * gives you a low-latency way to monitor an account for file changes. The + * connection will block until there are changes available or a timeout + * occurs. This endpoint is useful mostly for client-side apps. If you're + * looking for server-side notifications, check out our webhooks + * documentation. + * + */ + ListFolderLongpollResult listFolderLongpoll(ListFolderLongpollArg arg) throws ListFolderLongpollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getNotify(), + "2/files/list_folder/longpoll", + arg, + true, + ListFolderLongpollArg.Serializer.INSTANCE, + ListFolderLongpollResult.Serializer.INSTANCE, + ListFolderLongpollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFolderLongpollErrorException("2/files/list_folder/longpoll", ex.getRequestId(), ex.getUserMessage(), (ListFolderLongpollError) ex.getErrorValue()); + } + } + + /** + * A longpoll endpoint to wait for changes on an account. In conjunction + * with {@link DbxUserFilesRequests#listFolderContinue(String)}, this call + * gives you a low-latency way to monitor an account for file changes. The + * connection will block until there are changes available or a timeout + * occurs. This endpoint is useful mostly for client-side apps. If you're + * looking for server-side notifications, check out our webhooks + * documentation. + * + *

The {@code timeout} request parameter will default to {@code 30L} + * (see {@link #listFolderLongpoll(String,long)}).

+ * + * @param cursor A cursor as returned by {@link + * DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)}. Cursors retrieved + * by setting {@link ListFolderArg#getIncludeMediaInfo} to {@code true} + * are not supported. Must have length of at least 1 and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderLongpollResult listFolderLongpoll(String cursor) throws ListFolderLongpollErrorException, DbxException { + ListFolderLongpollArg _arg = new ListFolderLongpollArg(cursor); + return listFolderLongpoll(_arg); + } + + /** + * A longpoll endpoint to wait for changes on an account. In conjunction + * with {@link DbxUserFilesRequests#listFolderContinue(String)}, this call + * gives you a low-latency way to monitor an account for file changes. The + * connection will block until there are changes available or a timeout + * occurs. This endpoint is useful mostly for client-side apps. If you're + * looking for server-side notifications, check out our webhooks + * documentation. + * + * @param cursor A cursor as returned by {@link + * DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)}. Cursors retrieved + * by setting {@link ListFolderArg#getIncludeMediaInfo} to {@code true} + * are not supported. Must have length of at least 1 and not be {@code + * null}. + * @param timeout A timeout in seconds. The request will block for at most + * this length of time, plus up to 90 seconds of random jitter added to + * avoid the thundering herd problem. Care should be taken when using + * this parameter, as some network infrastructure does not support long + * timeouts. Must be greater than or equal to 30 and be less than or + * equal to 480. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderLongpollResult listFolderLongpoll(String cursor, long timeout) throws ListFolderLongpollErrorException, DbxException { + if (timeout < 30L) { + throw new IllegalArgumentException("Number 'timeout' is smaller than 30L"); + } + if (timeout > 480L) { + throw new IllegalArgumentException("Number 'timeout' is larger than 480L"); + } + ListFolderLongpollArg _arg = new ListFolderLongpollArg(cursor, timeout); + return listFolderLongpoll(_arg); + } + + // + // route 2/files/list_revisions + // + + /** + * Returns revisions for files based on a file path or a file id. The file + * path or file id is identified from the latest file entry at the given + * file path or id. This end point allows your app to query either by file + * path or file id by setting the mode parameter appropriately. In the + * {@link ListRevisionsMode#PATH} (default) mode, all revisions at the same + * file path as the latest file entry are returned. If revisions with the + * same file id are desired, then mode must be set to {@link + * ListRevisionsMode#ID}. The {@link ListRevisionsMode#ID} mode is useful to + * retrieve revisions for a given file across moves or renames. + * + */ + ListRevisionsResult listRevisions(ListRevisionsArg arg) throws ListRevisionsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/list_revisions", + arg, + false, + ListRevisionsArg.Serializer.INSTANCE, + ListRevisionsResult.Serializer.INSTANCE, + ListRevisionsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListRevisionsErrorException("2/files/list_revisions", ex.getRequestId(), ex.getUserMessage(), (ListRevisionsError) ex.getErrorValue()); + } + } + + /** + * Returns revisions for files based on a file path or a file id. The file + * path or file id is identified from the latest file entry at the given + * file path or id. This end point allows your app to query either by file + * path or file id by setting the mode parameter appropriately. + * + *

In the {@link ListRevisionsMode#PATH} (default) mode, all revisions + * at the same file path as the latest file entry are returned. If revisions + * with the same file id are desired, then mode must be set to {@link + * ListRevisionsMode#ID}. The {@link ListRevisionsMode#ID} mode is useful to + * retrieve revisions for a given file across moves or renames.

+ * + *

The default values for the optional request parameters will be used. + * See {@link ListRevisionsBuilder} for more details.

+ * + * @param path The path to the file you want to see the revisions of. Must + * match pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsResult listRevisions(String path) throws ListRevisionsErrorException, DbxException { + ListRevisionsArg _arg = new ListRevisionsArg(path); + return listRevisions(_arg); + } + + /** + * Returns revisions for files based on a file path or a file id. The file + * path or file id is identified from the latest file entry at the given + * file path or id. This end point allows your app to query either by file + * path or file id by setting the mode parameter appropriately. In the + * {@link ListRevisionsMode#PATH} (default) mode, all revisions at the same + * file path as the latest file entry are returned. If revisions with the + * same file id are desired, then mode must be set to {@link + * ListRevisionsMode#ID}. The {@link ListRevisionsMode#ID} mode is useful to + * retrieve revisions for a given file across moves or renames. + * + * @param path The path to the file you want to see the revisions of. Must + * match pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and + * not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsBuilder listRevisionsBuilder(String path) { + ListRevisionsArg.Builder argBuilder_ = ListRevisionsArg.newBuilder(path); + return new ListRevisionsBuilder(this, argBuilder_); + } + + // + // route 2/files/lock_file_batch + // + + /** + * Lock the files at the given paths. A locked file will be writable only by + * the lock holder. A successful response indicates that the file has been + * locked. Returns a list of the locked file paths and their metadata after + * this operation. + * + */ + LockFileBatchResult lockFileBatch(LockFileBatchArg arg) throws LockFileErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/lock_file_batch", + arg, + false, + LockFileBatchArg.Serializer.INSTANCE, + LockFileBatchResult.Serializer.INSTANCE, + LockFileError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LockFileErrorException("2/files/lock_file_batch", ex.getRequestId(), ex.getUserMessage(), (LockFileError) ex.getErrorValue()); + } + } + + /** + * Lock the files at the given paths. A locked file will be writable only by + * the lock holder. A successful response indicates that the file has been + * locked. Returns a list of the locked file paths and their metadata after + * this operation. + * + * @param entries List of 'entries'. Each 'entry' contains a path of the + * file which will be locked or queried. Duplicate path arguments in the + * batch are considered only once. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockFileBatchResult lockFileBatch(List entries) throws LockFileErrorException, DbxException { + LockFileBatchArg _arg = new LockFileBatchArg(entries); + return lockFileBatch(_arg); + } + + // + // route 2/files/move + // + + /** + * Move a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be moved. + * + * + * @return Metadata for a file or folder. + */ + Metadata move(RelocationArg arg) throws RelocationErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/move", + arg, + false, + RelocationArg.Serializer.INSTANCE, + Metadata.Serializer.INSTANCE, + RelocationError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RelocationErrorException("2/files/move", ex.getRequestId(), ex.getUserMessage(), (RelocationError) ex.getErrorValue()); + } + } + + /** + * Move a file or folder to a different location in the user's Dropbox. + * + *

If the source path is a folder all its contents will be moved.

+ * + *

The default values for the optional request parameters will be used. + * See {@link MoveBuilder} for more details.

+ * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @return Metadata for a file or folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#moveV2(String,String)} + * instead. + */ + @Deprecated + public Metadata move(String fromPath, String toPath) throws RelocationErrorException, DbxException { + RelocationArg _arg = new RelocationArg(fromPath, toPath); + return move(_arg); + } + + /** + * Move a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be moved. + * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#moveV2(String,String)} + * instead. + */ + @Deprecated + public MoveBuilder moveBuilder(String fromPath, String toPath) { + RelocationArg.Builder argBuilder_ = RelocationArg.newBuilder(fromPath, toPath); + return new MoveBuilder(this, argBuilder_); + } + + // + // route 2/files/move_v2 + // + + /** + * Move a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be moved. Note that we + * do not currently support case-only renaming. + * + */ + RelocationResult moveV2(RelocationArg arg) throws RelocationErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/move_v2", + arg, + false, + RelocationArg.Serializer.INSTANCE, + RelocationResult.Serializer.INSTANCE, + RelocationError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RelocationErrorException("2/files/move_v2", ex.getRequestId(), ex.getUserMessage(), (RelocationError) ex.getErrorValue()); + } + } + + /** + * Move a file or folder to a different location in the user's Dropbox. + * + *

If the source path is a folder all its contents will be moved.

+ * + *

Note that we do not currently support case-only renaming.

+ * + *

The default values for the optional request parameters will be used. + * See {@link MoveV2Builder} for more details.

+ * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationResult moveV2(String fromPath, String toPath) throws RelocationErrorException, DbxException { + RelocationArg _arg = new RelocationArg(fromPath, toPath); + return moveV2(_arg); + } + + /** + * Move a file or folder to a different location in the user's Dropbox. If + * the source path is a folder all its contents will be moved. Note that we + * do not currently support case-only renaming. + * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MoveV2Builder moveV2Builder(String fromPath, String toPath) { + RelocationArg.Builder argBuilder_ = RelocationArg.newBuilder(fromPath, toPath); + return new MoveV2Builder(this, argBuilder_); + } + + // + // route 2/files/move_batch + // + + /** + * Move multiple files or folders to different locations at once in the + * user's Dropbox. This route will return job ID immediately and do the + * async moving job in background. Please use {@code moveBatchCheck:1} to + * check the job status. + * + * + * @return Result returned by {@link DbxUserFilesRequests#copyBatch(List)} + * or {@link DbxUserFilesRequests#moveBatch(List)} that may either + * launch an asynchronous job or complete synchronously. + */ + RelocationBatchLaunch moveBatch(RelocationBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/move_batch", + arg, + false, + RelocationBatchArg.Serializer.INSTANCE, + RelocationBatchLaunch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"move_batch\":" + ex.getErrorValue()); + } + } + + /** + * Move multiple files or folders to different locations at once in the + * user's Dropbox. + * + *

This route will return job ID immediately and do the async moving job + * in background. Please use {@code moveBatchCheck:1} to check the job + * status.

+ * + *

The default values for the optional request parameters will be used. + * See {@link MoveBatchBuilder} for more details.

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return Result returned by {@link DbxUserFilesRequests#copyBatch(List)} + * or {@link DbxUserFilesRequests#moveBatch(List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#moveBatchV2(List)} instead. + */ + @Deprecated + public RelocationBatchLaunch moveBatch(List entries) throws DbxApiException, DbxException { + RelocationBatchArg _arg = new RelocationBatchArg(entries); + return moveBatch(_arg); + } + + /** + * Move multiple files or folders to different locations at once in the + * user's Dropbox. This route will return job ID immediately and do the + * async moving job in background. Please use {@code moveBatchCheck:1} to + * check the job status. + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#moveBatchV2(List)} instead. + */ + @Deprecated + public MoveBatchBuilder moveBatchBuilder(List entries) { + RelocationBatchArg.Builder argBuilder_ = RelocationBatchArg.newBuilder(entries); + return new MoveBatchBuilder(this, argBuilder_); + } + + // + // route 2/files/move_batch_v2 + // + + /** + * Move multiple files or folders to different locations at once in the + * user's Dropbox. Note that we do not currently support case-only renaming. + * This route will replace {@code moveBatch:1}. The main difference is this + * route will return status for each entry, while {@code moveBatch:1} raises + * failure if any entry fails. This route will either finish synchronously, + * or return a job ID and do the async move job in background. Please use + * {@link DbxUserFilesRequests#moveBatchCheckV2(String)} to check the job + * status. + * + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(List)} that may either launch an + * asynchronous job or complete synchronously. + */ + RelocationBatchV2Launch moveBatchV2(MoveBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/move_batch_v2", + arg, + false, + MoveBatchArg.Serializer.INSTANCE, + RelocationBatchV2Launch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"move_batch_v2\":" + ex.getErrorValue()); + } + } + + /** + * Move multiple files or folders to different locations at once in the + * user's Dropbox. Note that we do not currently support case-only renaming. + * + *

This route will replace {@code moveBatch:1}. The main difference is + * this route will return status for each entry, while {@code moveBatch:1} + * raises failure if any entry fails.

+ * + *

This route will either finish synchronously, or return a job ID and + * do the async move job in background. Please use {@link + * DbxUserFilesRequests#moveBatchCheckV2(String)} to check the job status. + *

+ * + *

The default values for the optional request parameters will be used. + * See {@link MoveBatchV2Builder} for more details.

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(List)} that may either launch an + * asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchV2Launch moveBatchV2(List entries) throws DbxApiException, DbxException { + MoveBatchArg _arg = new MoveBatchArg(entries); + return moveBatchV2(_arg); + } + + /** + * Move multiple files or folders to different locations at once in the + * user's Dropbox. Note that we do not currently support case-only renaming. + * This route will replace {@code moveBatch:1}. The main difference is this + * route will return status for each entry, while {@code moveBatch:1} raises + * failure if any entry fails. This route will either finish synchronously, + * or return a job ID and do the async move job in background. Please use + * {@link DbxUserFilesRequests#moveBatchCheckV2(String)} to check the job + * status. + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MoveBatchV2Builder moveBatchV2Builder(List entries) { + MoveBatchArg.Builder argBuilder_ = MoveBatchArg.newBuilder(entries); + return new MoveBatchV2Builder(this, argBuilder_); + } + + // + // route 2/files/move_batch/check + // + + /** + * Returns the status of an asynchronous job for {@code moveBatch:1}. If + * success, it returns list of results for each entry. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + RelocationBatchJobStatus moveBatchCheck(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/move_batch/check", + arg, + false, + PollArg.Serializer.INSTANCE, + RelocationBatchJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/move_batch/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for {@code moveBatch:1}. If + * success, it returns list of results for each entry. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#moveBatchCheckV2(String)} + * instead. + */ + @Deprecated + public RelocationBatchJobStatus moveBatchCheck(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return moveBatchCheck(_arg); + } + + // + // route 2/files/move_batch/check_v2 + // + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#moveBatchV2(List)}. It returns list of results for + * each entry. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchCheckV2(String)} or {@link + * DbxUserFilesRequests#moveBatchCheckV2(String)} that may either be in + * progress or completed with result for each entry. + */ + RelocationBatchV2JobStatus moveBatchCheckV2(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/move_batch/check_v2", + arg, + false, + PollArg.Serializer.INSTANCE, + RelocationBatchV2JobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/move_batch/check_v2", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#moveBatchV2(List)}. It returns list of results for + * each entry. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @return Result returned by {@link + * DbxUserFilesRequests#copyBatchCheckV2(String)} or {@link + * DbxUserFilesRequests#moveBatchCheckV2(String)} that may either be in + * progress or completed with result for each entry. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchV2JobStatus moveBatchCheckV2(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return moveBatchCheckV2(_arg); + } + + // + // route 2/files/paper/create + // + + /** + * Creates a new Paper doc with the provided content. + * + * + * @return Uploader used to upload the request body and finish request. + */ + PaperCreateUploader paperCreate(PaperCreateArg arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), + "2/files/paper/create", + arg, + false, + PaperCreateArg.Serializer.INSTANCE); + return new PaperCreateUploader(_uploader, this.client.getUserId()); + } + + /** + * Creates a new Paper doc with the provided content. + * + * @param path The fully qualified path to the location in the user's + * Dropbox where the Paper Doc should be created. This should include + * the document's title and end with .paper. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param importFormat The format of the provided data. Must not be {@code + * null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperCreateUploader paperCreate(String path, ImportFormat importFormat) throws DbxException { + PaperCreateArg _arg = new PaperCreateArg(path, importFormat); + return paperCreate(_arg); + } + + // + // route 2/files/paper/update + // + + /** + * Updates an existing Paper doc with the provided content. + * + * + * @return Uploader used to upload the request body and finish request. + */ + PaperUpdateUploader paperUpdate(PaperUpdateArg arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), + "2/files/paper/update", + arg, + false, + PaperUpdateArg.Serializer.INSTANCE); + return new PaperUpdateUploader(_uploader, this.client.getUserId()); + } + + /** + * Updates an existing Paper doc with the provided content. + * + * @param path Path in the user's Dropbox to update. The path must + * correspond to a Paper doc or an error will be returned. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * @param importFormat The format of the provided data. Must not be {@code + * null}. + * @param docUpdatePolicy How the provided content should be applied to the + * doc. Must not be {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperUpdateUploader paperUpdate(String path, ImportFormat importFormat, PaperDocUpdatePolicy docUpdatePolicy) throws DbxException { + PaperUpdateArg _arg = new PaperUpdateArg(path, importFormat, docUpdatePolicy); + return paperUpdate(_arg); + } + + /** + * Updates an existing Paper doc with the provided content. + * + * @param path Path in the user's Dropbox to update. The path must + * correspond to a Paper doc or an error will be returned. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * @param importFormat The format of the provided data. Must not be {@code + * null}. + * @param docUpdatePolicy How the provided content should be applied to the + * doc. Must not be {@code null}. + * @param paperRevision The latest doc revision. Required when + * doc_update_policy is update. This value must match the current + * revision of the doc or error revision_mismatch will be returned. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperUpdateUploader paperUpdate(String path, ImportFormat importFormat, PaperDocUpdatePolicy docUpdatePolicy, Long paperRevision) throws DbxException { + PaperUpdateArg _arg = new PaperUpdateArg(path, importFormat, docUpdatePolicy, paperRevision); + return paperUpdate(_arg); + } + + // + // route 2/files/permanently_delete + // + + /** + * Permanently delete the file or folder at a given path (see + * https://www.dropbox.com/en/help/40). If the given file or folder is not + * yet deleted, this route will first delete it. It is possible for this + * route to successfully delete, then fail to permanently delete. Note: This + * endpoint is only available for Dropbox Business apps. + * + */ + void permanentlyDelete(DeleteArg arg) throws DeleteErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/permanently_delete", + arg, + false, + DeleteArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + DeleteError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DeleteErrorException("2/files/permanently_delete", ex.getRequestId(), ex.getUserMessage(), (DeleteError) ex.getErrorValue()); + } + } + + /** + * Permanently delete the file or folder at a given path (see + * https://www.dropbox.com/en/help/40). + * + *

If the given file or folder is not yet deleted, this route will first + * delete it. It is possible for this route to successfully delete, then + * fail to permanently delete.

+ * + *

Note: This endpoint is only available for Dropbox Business apps.

+ * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void permanentlyDelete(String path) throws DeleteErrorException, DbxException { + DeleteArg _arg = new DeleteArg(path); + permanentlyDelete(_arg); + } + + /** + * Permanently delete the file or folder at a given path (see + * https://www.dropbox.com/en/help/40). + * + *

If the given file or folder is not yet deleted, this route will first + * delete it. It is possible for this route to successfully delete, then + * fail to permanently delete.

+ * + *

Note: This endpoint is only available for Dropbox Business apps.

+ * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * @param parentRev Perform delete if given "rev" matches the existing + * file's latest "rev". This field does not support deleting a folder. + * Must have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void permanentlyDelete(String path, String parentRev) throws DeleteErrorException, DbxException { + if (parentRev != null) { + if (parentRev.length() < 9) { + throw new IllegalArgumentException("String 'parentRev' is shorter than 9"); + } + if (!java.util.regex.Pattern.matches("[0-9a-f]+", parentRev)) { + throw new IllegalArgumentException("String 'parentRev' does not match pattern"); + } + } + DeleteArg _arg = new DeleteArg(path, parentRev); + permanentlyDelete(_arg); + } + + // + // route 2/files/properties/add + // + + /** + * + */ + void propertiesAdd(AddPropertiesArg arg) throws AddPropertiesErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/properties/add", + arg, + false, + AddPropertiesArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + AddPropertiesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new AddPropertiesErrorException("2/files/properties/add", ex.getRequestId(), ex.getUserMessage(), (AddPropertiesError) ex.getErrorValue()); + } + } + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyGroups The property groups which are to be added to a + * Dropbox file. No two groups in the input should refer to the same + * template. Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void propertiesAdd(String path, List propertyGroups) throws AddPropertiesErrorException, DbxException { + AddPropertiesArg _arg = new AddPropertiesArg(path, propertyGroups); + propertiesAdd(_arg); + } + + // + // route 2/files/properties/overwrite + // + + /** + * + */ + void propertiesOverwrite(OverwritePropertyGroupArg arg) throws InvalidPropertyGroupErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/properties/overwrite", + arg, + false, + OverwritePropertyGroupArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + InvalidPropertyGroupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new InvalidPropertyGroupErrorException("2/files/properties/overwrite", ex.getRequestId(), ex.getUserMessage(), (InvalidPropertyGroupError) ex.getErrorValue()); + } + } + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyGroups The property groups "snapshot" updates to force + * apply. No two groups in the input should refer to the same template. + * Must contain at least 1 items, not contain a {@code null} item, and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void propertiesOverwrite(String path, List propertyGroups) throws InvalidPropertyGroupErrorException, DbxException { + OverwritePropertyGroupArg _arg = new OverwritePropertyGroupArg(path, propertyGroups); + propertiesOverwrite(_arg); + } + + // + // route 2/files/properties/remove + // + + /** + * + */ + void propertiesRemove(RemovePropertiesArg arg) throws RemovePropertiesErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/properties/remove", + arg, + false, + RemovePropertiesArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + RemovePropertiesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RemovePropertiesErrorException("2/files/properties/remove", ex.getRequestId(), ex.getUserMessage(), (RemovePropertiesError) ex.getErrorValue()); + } + } + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param propertyTemplateIds A list of identifiers for a template created + * by {@link + * com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void propertiesRemove(String path, List propertyTemplateIds) throws RemovePropertiesErrorException, DbxException { + RemovePropertiesArg _arg = new RemovePropertiesArg(path, propertyTemplateIds); + propertiesRemove(_arg); + } + + // + // route 2/files/properties/template/get + // + + /** + * + */ + GetTemplateResult propertiesTemplateGet(GetTemplateArg arg) throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/properties/template/get", + arg, + false, + GetTemplateArg.Serializer.INSTANCE, + GetTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/files/properties/template/get", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + /** + * + * @param templateId An identifier for template added by route See {@link + * com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public GetTemplateResult propertiesTemplateGet(String templateId) throws TemplateErrorException, DbxException { + GetTemplateArg _arg = new GetTemplateArg(templateId); + return propertiesTemplateGet(_arg); + } + + // + // route 2/files/properties/template/list + // + + /** + * + * @deprecated + */ + @Deprecated + public ListTemplateResult propertiesTemplateList() throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/properties/template/list", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + ListTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/files/properties/template/list", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + // + // route 2/files/properties/update + // + + /** + * + */ + void propertiesUpdate(UpdatePropertiesArg arg) throws UpdatePropertiesErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/properties/update", + arg, + false, + UpdatePropertiesArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + UpdatePropertiesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UpdatePropertiesErrorException("2/files/properties/update", ex.getRequestId(), ex.getUserMessage(), (UpdatePropertiesError) ex.getErrorValue()); + } + } + + /** + * + * @param path A unique identifier for the file or folder. Must match + * pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and not be + * {@code null}. + * @param updatePropertyGroups The property groups "delta" updates to + * apply. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void propertiesUpdate(String path, List updatePropertyGroups) throws UpdatePropertiesErrorException, DbxException { + UpdatePropertiesArg _arg = new UpdatePropertiesArg(path, updatePropertyGroups); + propertiesUpdate(_arg); + } + + // + // route 2/files/restore + // + + /** + * Restore a specific revision of a file to the given path. + * + */ + FileMetadata restore(RestoreArg arg) throws RestoreErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/restore", + arg, + false, + RestoreArg.Serializer.INSTANCE, + FileMetadata.Serializer.INSTANCE, + RestoreError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RestoreErrorException("2/files/restore", ex.getRequestId(), ex.getUserMessage(), (RestoreError) ex.getErrorValue()); + } + } + + /** + * Restore a specific revision of a file to the given path. + * + * @param path The path to save the restored file. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param rev The revision to restore. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMetadata restore(String path, String rev) throws RestoreErrorException, DbxException { + RestoreArg _arg = new RestoreArg(path, rev); + return restore(_arg); + } + + // + // route 2/files/save_url + // + + /** + * Save the data from a specified URL into a file in user's Dropbox. Note + * that the transfer from the URL must complete within 15 minutes, or the + * operation will time out and the job will fail. If the given path already + * exists, the file will be renamed to avoid the conflict (e.g. myfile + * (1).txt). + * + */ + SaveUrlResult saveUrl(SaveUrlArg arg) throws SaveUrlErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/save_url", + arg, + false, + SaveUrlArg.Serializer.INSTANCE, + SaveUrlResult.Serializer.INSTANCE, + SaveUrlError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SaveUrlErrorException("2/files/save_url", ex.getRequestId(), ex.getUserMessage(), (SaveUrlError) ex.getErrorValue()); + } + } + + /** + * Save the data from a specified URL into a file in user's Dropbox. + * + *

Note that the transfer from the URL must complete within 15 minutes, + * or the operation will time out and the job will fail.

+ * + *

If the given path already exists, the file will be renamed to avoid + * the conflict (e.g. myfile (1).txt).

+ * + * @param path The path in Dropbox where the URL will be saved to. Must + * match pattern "{@code /(.|[\\r\\n])*}" and not be {@code null}. + * @param url The URL to be saved. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SaveUrlResult saveUrl(String path, String url) throws SaveUrlErrorException, DbxException { + SaveUrlArg _arg = new SaveUrlArg(path, url); + return saveUrl(_arg); + } + + // + // route 2/files/save_url/check_job_status + // + + /** + * Check the status of a {@link DbxUserFilesRequests#saveUrl(String,String)} + * job. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + SaveUrlJobStatus saveUrlCheckJobStatus(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/save_url/check_job_status", + arg, + false, + PollArg.Serializer.INSTANCE, + SaveUrlJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/save_url/check_job_status", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Check the status of a {@link DbxUserFilesRequests#saveUrl(String,String)} + * job. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SaveUrlJobStatus saveUrlCheckJobStatus(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return saveUrlCheckJobStatus(_arg); + } + + // + // route 2/files/search + // + + /** + * Searches for files and folders. Note: Recent changes will be reflected in + * search results within a few seconds and older revisions of existing files + * may still match your query for up to a few days. + * + */ + SearchResult search(SearchArg arg) throws SearchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/search", + arg, + false, + SearchArg.Serializer.INSTANCE, + SearchResult.Serializer.INSTANCE, + SearchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SearchErrorException("2/files/search", ex.getRequestId(), ex.getUserMessage(), (SearchError) ex.getErrorValue()); + } + } + + /** + * Searches for files and folders. + * + *

Note: Recent changes will be reflected in search results within a few + * seconds and older revisions of existing files may still match your query + * for up to a few days.

+ * + *

The default values for the optional request parameters will be used. + * See {@link SearchBuilder} for more details.

+ * + * @param path The path in the user's Dropbox to search. Should probably be + * a folder. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param query The string to search for. Query string may be rewritten to + * improve relevance of results. The string is split on spaces into + * multiple tokens. For file name searching, the last token is used for + * prefix matching (i.e. "bat c" matches "bat cave" but not "batman + * car"). Must have length of at most 1000 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#searchV2(String)} instead. + */ + @Deprecated + public SearchResult search(String path, String query) throws SearchErrorException, DbxException { + SearchArg _arg = new SearchArg(path, query); + return search(_arg); + } + + /** + * Searches for files and folders. Note: Recent changes will be reflected in + * search results within a few seconds and older revisions of existing files + * may still match your query for up to a few days. + * + * @param path The path in the user's Dropbox to search. Should probably be + * a folder. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param query The string to search for. Query string may be rewritten to + * improve relevance of results. The string is split on spaces into + * multiple tokens. For file name searching, the last token is used for + * prefix matching (i.e. "bat c" matches "bat cave" but not "batman + * car"). Must have length of at most 1000 and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link DbxUserFilesRequests#searchV2(String)} instead. + */ + @Deprecated + public SearchBuilder searchBuilder(String path, String query) { + SearchArg.Builder argBuilder_ = SearchArg.newBuilder(path, query); + return new SearchBuilder(this, argBuilder_); + } + + // + // route 2/files/search_v2 + // + + /** + * Searches for files and folders. Note: {@link + * DbxUserFilesRequests#searchV2(String)} along with {@link + * DbxUserFilesRequests#searchContinueV2(String)} can only be used to + * retrieve a maximum of 10,000 matches. Recent changes may not immediately + * be reflected in search results due to a short delay in indexing. + * Duplicate results may be returned across pages. Some results may not be + * returned. + * + */ + SearchV2Result searchV2(SearchV2Arg arg) throws SearchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/search_v2", + arg, + false, + SearchV2Arg.Serializer.INSTANCE, + SearchV2Result.Serializer.INSTANCE, + SearchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SearchErrorException("2/files/search_v2", ex.getRequestId(), ex.getUserMessage(), (SearchError) ex.getErrorValue()); + } + } + + /** + * Searches for files and folders. + * + *

Note: {@link DbxUserFilesRequests#searchV2(String)} along with {@link + * DbxUserFilesRequests#searchContinueV2(String)} can only be used to + * retrieve a maximum of 10,000 matches.

+ * + *

Recent changes may not immediately be reflected in search results due + * to a short delay in indexing. Duplicate results may be returned across + * pages. Some results may not be returned.

+ * + * @param query The string to search for. May match across multiple fields + * based on the request arguments. Must have length of at most 1000 and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2Result searchV2(String query) throws SearchErrorException, DbxException { + SearchV2Arg _arg = new SearchV2Arg(query); + return searchV2(_arg); + } + + /** + * Searches for files and folders. Note: {@link + * DbxUserFilesRequests#searchV2(String)} along with {@link + * DbxUserFilesRequests#searchContinueV2(String)} can only be used to + * retrieve a maximum of 10,000 matches. Recent changes may not immediately + * be reflected in search results due to a short delay in indexing. + * Duplicate results may be returned across pages. Some results may not be + * returned. + * + * @param query The string to search for. May match across multiple fields + * based on the request arguments. Must have length of at most 1000 and + * not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2Builder searchV2Builder(String query) { + SearchV2Arg.Builder argBuilder_ = SearchV2Arg.newBuilder(query); + return new SearchV2Builder(this, argBuilder_); + } + + // + // route 2/files/search/continue_v2 + // + + /** + * Fetches the next page of search results returned from {@link + * DbxUserFilesRequests#searchV2(String)}. Note: {@link + * DbxUserFilesRequests#searchV2(String)} along with {@link + * DbxUserFilesRequests#searchContinueV2(String)} can only be used to + * retrieve a maximum of 10,000 matches. Recent changes may not immediately + * be reflected in search results due to a short delay in indexing. + * Duplicate results may be returned across pages. Some results may not be + * returned. + * + */ + SearchV2Result searchContinueV2(SearchV2ContinueArg arg) throws SearchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/search/continue_v2", + arg, + false, + SearchV2ContinueArg.Serializer.INSTANCE, + SearchV2Result.Serializer.INSTANCE, + SearchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SearchErrorException("2/files/search/continue_v2", ex.getRequestId(), ex.getUserMessage(), (SearchError) ex.getErrorValue()); + } + } + + /** + * Fetches the next page of search results returned from {@link + * DbxUserFilesRequests#searchV2(String)}. + * + *

Note: {@link DbxUserFilesRequests#searchV2(String)} along with {@link + * DbxUserFilesRequests#searchContinueV2(String)} can only be used to + * retrieve a maximum of 10,000 matches.

+ * + *

Recent changes may not immediately be reflected in search results due + * to a short delay in indexing. Duplicate results may be returned across + * pages. Some results may not be returned.

+ * + * @param cursor The cursor returned by your last call to {@link + * DbxUserFilesRequests#searchV2(String)}. Used to fetch the next page + * of results. Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2Result searchContinueV2(String cursor) throws SearchErrorException, DbxException { + SearchV2ContinueArg _arg = new SearchV2ContinueArg(cursor); + return searchContinueV2(_arg); + } + + // + // route 2/files/tags/add + // + + /** + * Add a tag to an item. A tag is a string. The strings are automatically + * converted to lowercase letters. No more than 20 tags can be added to a + * given item. + * + */ + void tagsAdd(AddTagArg arg) throws AddTagErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/tags/add", + arg, + false, + AddTagArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + AddTagError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new AddTagErrorException("2/files/tags/add", ex.getRequestId(), ex.getUserMessage(), (AddTagError) ex.getErrorValue()); + } + } + + /** + * Add a tag to an item. A tag is a string. The strings are automatically + * converted to lowercase letters. No more than 20 tags can be added to a + * given item. + * + * @param path Path to the item to be tagged. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param tagText The value of the tag to add. Will be automatically + * converted to lowercase letters. Must have length of at least 1, have + * length of at most 32, match pattern "{@code [\\w]+}", and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void tagsAdd(String path, String tagText) throws AddTagErrorException, DbxException { + AddTagArg _arg = new AddTagArg(path, tagText); + tagsAdd(_arg); + } + + // + // route 2/files/tags/get + // + + /** + * Get list of tags assigned to items. + * + */ + GetTagsResult tagsGet(GetTagsArg arg) throws BaseTagErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/tags/get", + arg, + false, + GetTagsArg.Serializer.INSTANCE, + GetTagsResult.Serializer.INSTANCE, + BaseTagError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new BaseTagErrorException("2/files/tags/get", ex.getRequestId(), ex.getUserMessage(), (BaseTagError) ex.getErrorValue()); + } + } + + /** + * Get list of tags assigned to items. + * + * @param paths Path to the items. Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTagsResult tagsGet(List paths) throws BaseTagErrorException, DbxException { + GetTagsArg _arg = new GetTagsArg(paths); + return tagsGet(_arg); + } + + // + // route 2/files/tags/remove + // + + /** + * Remove a tag from an item. + * + */ + void tagsRemove(RemoveTagArg arg) throws RemoveTagErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/tags/remove", + arg, + false, + RemoveTagArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + RemoveTagError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RemoveTagErrorException("2/files/tags/remove", ex.getRequestId(), ex.getUserMessage(), (RemoveTagError) ex.getErrorValue()); + } + } + + /** + * Remove a tag from an item. + * + * @param path Path to the item to tag. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param tagText The tag to remove. Will be automatically converted to + * lowercase letters. Must have length of at least 1, have length of at + * most 32, match pattern "{@code [\\w]+}", and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void tagsRemove(String path, String tagText) throws RemoveTagErrorException, DbxException { + RemoveTagArg _arg = new RemoveTagArg(path, tagText); + tagsRemove(_arg); + } + + // + // route 2/files/unlock_file_batch + // + + /** + * Unlock the files at the given paths. A locked file can only be unlocked + * by the lock holder or, if a business account, a team admin. A successful + * response indicates that the file has been unlocked. Returns a list of the + * unlocked file paths and their metadata after this operation. + * + */ + LockFileBatchResult unlockFileBatch(UnlockFileBatchArg arg) throws LockFileErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/unlock_file_batch", + arg, + false, + UnlockFileBatchArg.Serializer.INSTANCE, + LockFileBatchResult.Serializer.INSTANCE, + LockFileError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LockFileErrorException("2/files/unlock_file_batch", ex.getRequestId(), ex.getUserMessage(), (LockFileError) ex.getErrorValue()); + } + } + + /** + * Unlock the files at the given paths. A locked file can only be unlocked + * by the lock holder or, if a business account, a team admin. A successful + * response indicates that the file has been unlocked. Returns a list of the + * unlocked file paths and their metadata after this operation. + * + * @param entries List of 'entries'. Each 'entry' contains a path of the + * file which will be unlocked. Duplicate path arguments in the batch + * are considered only once. Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockFileBatchResult unlockFileBatch(List entries) throws LockFileErrorException, DbxException { + UnlockFileBatchArg _arg = new UnlockFileBatchArg(entries); + return unlockFileBatch(_arg); + } + + // + // route 2/files/upload + // + + /** + * Create a new file with the contents provided in the request. Do not use + * this to upload a file larger than 150 MB. Instead, create an upload + * session with {@link DbxUserFilesRequests#uploadSessionStart}. Calls to + * this endpoint will count as data transport calls for any Dropbox Business + * teams with a limit on the number of data transport calls allowed per + * month. For more information, see the Data + * transport limit page. + * + * + * @return Uploader used to upload the request body and finish request. + */ + UploadUploader upload(UploadArg arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), + "2/files/upload", + arg, + false, + UploadArg.Serializer.INSTANCE); + return new UploadUploader(_uploader, this.client.getUserId()); + } + + /** + * Create a new file with the contents provided in the request. + * + *

Do not use this to upload a file larger than 150 MB. Instead, create + * an upload session with {@link DbxUserFilesRequests#uploadSessionStart}. + *

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the Data + * transport limit page.

+ * + *

The default values for the optional request parameters will be used. + * See {@link UploadBuilder} for more details.

+ * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadUploader upload(String path) throws DbxException { + UploadArg _arg = new UploadArg(path); + return upload(_arg); + } + + /** + * Create a new file with the contents provided in the request. Do not use + * this to upload a file larger than 150 MB. Instead, create an upload + * session with {@link DbxUserFilesRequests#uploadSessionStart}. Calls to + * this endpoint will count as data transport calls for any Dropbox Business + * teams with a limit on the number of data transport calls allowed per + * month. For more information, see the Data + * transport limit page. + * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @return Uploader builder for configuring request parameters and + * instantiating an uploader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadBuilder uploadBuilder(String path) { + UploadArg.Builder argBuilder_ = UploadArg.newBuilder(path); + return new UploadBuilder(this, argBuilder_); + } + + // + // route 2/files/upload_session/append + // + + /** + * Append more data to an upload session. A single request should not upload + * more than 150 MB. The maximum size of a file one can upload to an upload + * session is 350 GB. Calls to this endpoint will count as data transport + * calls for any Dropbox Business teams with a limit on the number of data + * transport calls allowed per month. For more information, see the Data + * transport limit page. + * + * + * @return Uploader used to upload the request body and finish request. + */ + UploadSessionAppendUploader uploadSessionAppend(UploadSessionCursor arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), + "2/files/upload_session/append", + arg, + false, + UploadSessionCursor.Serializer.INSTANCE); + return new UploadSessionAppendUploader(_uploader, this.client.getUserId()); + } + + /** + * Append more data to an upload session. + * + *

A single request should not upload more than 150 MB. The maximum size + * of a file one can upload to an upload session is 350 GB.

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the Data + * transport limit page.

+ * + * @param sessionId The upload session ID (returned by {@link + * DbxUserFilesRequests#uploadSessionStart}). Must not be {@code null}. + * @param offset Offset in bytes at which data should be appended. We use + * this to make sure upload data isn't lost or duplicated in the event + * of a network error. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * instead. + */ + @Deprecated + public UploadSessionAppendUploader uploadSessionAppend(String sessionId, long offset) throws DbxException { + UploadSessionCursor _arg = new UploadSessionCursor(sessionId, offset); + return uploadSessionAppend(_arg); + } + + // + // route 2/files/upload_session/append_v2 + // + + /** + * Append more data to an upload session. When the parameter close is set, + * this call will close the session. A single request should not upload more + * than 150 MB. The maximum size of a file one can upload to an upload + * session is 350 GB. Calls to this endpoint will count as data transport + * calls for any Dropbox Business teams with a limit on the number of data + * transport calls allowed per month. For more information, see the Data + * transport limit page. + * + * + * @return Uploader used to upload the request body and finish request. + */ + UploadSessionAppendV2Uploader uploadSessionAppendV2(UploadSessionAppendArg arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), + "2/files/upload_session/append_v2", + arg, + false, + UploadSessionAppendArg.Serializer.INSTANCE); + return new UploadSessionAppendV2Uploader(_uploader, this.client.getUserId()); + } + + /** + * Append more data to an upload session. + * + *

When the parameter close is set, this call will close the session. + *

+ * + *

A single request should not upload more than 150 MB. The maximum size + * of a file one can upload to an upload session is 350 GB.

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the Data + * transport limit page.

+ * + *

The default values for the optional request parameters will be used. + * See {@link UploadSessionAppendV2Builder} for more details.

+ * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionAppendV2Uploader uploadSessionAppendV2(UploadSessionCursor cursor) throws DbxException { + UploadSessionAppendArg _arg = new UploadSessionAppendArg(cursor); + return uploadSessionAppendV2(_arg); + } + + /** + * Append more data to an upload session. When the parameter close is set, + * this call will close the session. A single request should not upload more + * than 150 MB. The maximum size of a file one can upload to an upload + * session is 350 GB. Calls to this endpoint will count as data transport + * calls for any Dropbox Business teams with a limit on the number of data + * transport calls allowed per month. For more information, see the Data + * transport limit page. + * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * + * @return Uploader builder for configuring request parameters and + * instantiating an uploader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionAppendV2Builder uploadSessionAppendV2Builder(UploadSessionCursor cursor) { + UploadSessionAppendArg.Builder argBuilder_ = UploadSessionAppendArg.newBuilder(cursor); + return new UploadSessionAppendV2Builder(this, argBuilder_); + } + + // + // route 2/files/upload_session/finish + // + + /** + * Finish an upload session and save the uploaded data to the given file + * path. A single request should not upload more than 150 MB. The maximum + * size of a file one can upload to an upload session is 350 GB. Calls to + * this endpoint will count as data transport calls for any Dropbox Business + * teams with a limit on the number of data transport calls allowed per + * month. For more information, see the Data + * transport limit page. + * + * + * @return Uploader used to upload the request body and finish request. + */ + UploadSessionFinishUploader uploadSessionFinish(UploadSessionFinishArg arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), + "2/files/upload_session/finish", + arg, + false, + UploadSessionFinishArg.Serializer.INSTANCE); + return new UploadSessionFinishUploader(_uploader, this.client.getUserId()); + } + + /** + * Finish an upload session and save the uploaded data to the given file + * path. + * + *

A single request should not upload more than 150 MB. The maximum size + * of a file one can upload to an upload session is 350 GB.

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the Data + * transport limit page.

+ * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * @param commit Contains the path and other optional modifiers for the + * commit. Must not be {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishUploader uploadSessionFinish(UploadSessionCursor cursor, CommitInfo commit) throws DbxException { + UploadSessionFinishArg _arg = new UploadSessionFinishArg(cursor, commit); + return uploadSessionFinish(_arg); + } + + /** + * Finish an upload session and save the uploaded data to the given file + * path. + * + *

A single request should not upload more than 150 MB. The maximum size + * of a file one can upload to an upload session is 350 GB.

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the Data + * transport limit page.

+ * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * @param commit Contains the path and other optional modifiers for the + * commit. Must not be {@code null}. + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishUploader uploadSessionFinish(UploadSessionCursor cursor, CommitInfo commit, String contentHash) throws DbxException { + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + UploadSessionFinishArg _arg = new UploadSessionFinishArg(cursor, commit, contentHash); + return uploadSessionFinish(_arg); + } + + // + // route 2/files/upload_session/finish_batch + // + + /** + * This route helps you commit many files at once into a user's Dropbox. Use + * {@link DbxUserFilesRequests#uploadSessionStart} and {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} to + * upload file contents. We recommend uploading many files in parallel to + * increase throughput. Once the file contents have been uploaded, rather + * than calling {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}, + * use this route to finish all your upload sessions in a single request. + * {@link UploadSessionStartArg#getClose} or {@link + * UploadSessionAppendArg#getClose} needs to be true for the last {@link + * DbxUserFilesRequests#uploadSessionStart} or {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call. + * The maximum size of a file one can upload to an upload session is 350 GB. + * This route will return a job_id immediately and do the async commit job + * in background. Use {@link + * DbxUserFilesRequests#uploadSessionFinishBatchCheck(String)} to check the + * job status. For the same account, this route should be executed serially. + * That means you should not start the next job before current job finishes. + * We allow up to 1000 entries in a single request. Calls to this endpoint + * will count as data transport calls for any Dropbox Business teams with a + * limit on the number of data transport calls allowed per month. For more + * information, see the Data + * transport limit page. + * + * + * @return Result returned by {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(List)} that may either + * launch an asynchronous job or complete synchronously. + */ + UploadSessionFinishBatchLaunch uploadSessionFinishBatch(UploadSessionFinishBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/upload_session/finish_batch", + arg, + false, + UploadSessionFinishBatchArg.Serializer.INSTANCE, + UploadSessionFinishBatchLaunch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"upload_session/finish_batch\":" + ex.getErrorValue()); + } + } + + /** + * This route helps you commit many files at once into a user's Dropbox. Use + * {@link DbxUserFilesRequests#uploadSessionStart} and {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} to + * upload file contents. We recommend uploading many files in parallel to + * increase throughput. Once the file contents have been uploaded, rather + * than calling {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}, + * use this route to finish all your upload sessions in a single request. + * + *

{@link UploadSessionStartArg#getClose} or {@link + * UploadSessionAppendArg#getClose} needs to be true for the last {@link + * DbxUserFilesRequests#uploadSessionStart} or {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call. + * The maximum size of a file one can upload to an upload session is 350 GB. + *

+ * + *

This route will return a job_id immediately and do the async commit + * job in background. Use {@link + * DbxUserFilesRequests#uploadSessionFinishBatchCheck(String)} to check the + * job status.

+ * + *

For the same account, this route should be executed serially. That + * means you should not start the next job before current job finishes. We + * allow up to 1000 entries in a single request.

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the Data + * transport limit page.

+ * + * @param entries Commit information for each file in the batch. Must + * contain at most 1000 items, not contain a {@code null} item, and not + * be {@code null}. + * + * @return Result returned by {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link + * DbxUserFilesRequests#uploadSessionFinishBatchV2(List)} instead. + */ + @Deprecated + public UploadSessionFinishBatchLaunch uploadSessionFinishBatch(List entries) throws DbxApiException, DbxException { + UploadSessionFinishBatchArg _arg = new UploadSessionFinishBatchArg(entries); + return uploadSessionFinishBatch(_arg); + } + + // + // route 2/files/upload_session/finish_batch_v2 + // + + /** + * This route helps you commit many files at once into a user's Dropbox. Use + * {@link DbxUserFilesRequests#uploadSessionStart} and {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} to + * upload file contents. We recommend uploading many files in parallel to + * increase throughput. Once the file contents have been uploaded, rather + * than calling {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}, + * use this route to finish all your upload sessions in a single request. + * {@link UploadSessionStartArg#getClose} or {@link + * UploadSessionAppendArg#getClose} needs to be true for the last {@link + * DbxUserFilesRequests#uploadSessionStart} or {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call of + * each upload session. The maximum size of a file one can upload to an + * upload session is 350 GB. We allow up to 1000 entries in a single + * request. Calls to this endpoint will count as data transport calls for + * any Dropbox Business teams with a limit on the number of data transport + * calls allowed per month. For more information, see the Data + * transport limit page. + * + */ + UploadSessionFinishBatchResult uploadSessionFinishBatchV2(UploadSessionFinishBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/upload_session/finish_batch_v2", + arg, + false, + UploadSessionFinishBatchArg.Serializer.INSTANCE, + UploadSessionFinishBatchResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"upload_session/finish_batch_v2\":" + ex.getErrorValue()); + } + } + + /** + * This route helps you commit many files at once into a user's Dropbox. Use + * {@link DbxUserFilesRequests#uploadSessionStart} and {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} to + * upload file contents. We recommend uploading many files in parallel to + * increase throughput. Once the file contents have been uploaded, rather + * than calling {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}, + * use this route to finish all your upload sessions in a single request. + * + *

{@link UploadSessionStartArg#getClose} or {@link + * UploadSessionAppendArg#getClose} needs to be true for the last {@link + * DbxUserFilesRequests#uploadSessionStart} or {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call of + * each upload session. The maximum size of a file one can upload to an + * upload session is 350 GB.

+ * + *

We allow up to 1000 entries in a single request.

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the Data + * transport limit page.

+ * + * @param entries Commit information for each file in the batch. Must + * contain at most 1000 items, not contain a {@code null} item, and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishBatchResult uploadSessionFinishBatchV2(List entries) throws DbxApiException, DbxException { + UploadSessionFinishBatchArg _arg = new UploadSessionFinishBatchArg(entries); + return uploadSessionFinishBatchV2(_arg); + } + + // + // route 2/files/upload_session/finish_batch/check + // + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(List)}. If success, it + * returns list of result for each entry. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + UploadSessionFinishBatchJobStatus uploadSessionFinishBatchCheck(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/upload_session/finish_batch/check", + arg, + false, + PollArg.Serializer.INSTANCE, + UploadSessionFinishBatchJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/files/upload_session/finish_batch/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(List)}. If success, it + * returns list of result for each entry. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishBatchJobStatus uploadSessionFinishBatchCheck(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return uploadSessionFinishBatchCheck(_arg); + } + + // + // route 2/files/upload_session/start + // + + /** + * Upload sessions allow you to upload a single file in one or more + * requests, for example where the size of the file is greater than 150 MB. + * This call starts a new upload session with the given data. You can then + * use {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} to add + * more data and {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * to save all the data to a file in Dropbox. A single request should not + * upload more than 150 MB. The maximum size of a file one can upload to an + * upload session is 350 GB. An upload session can be used for a maximum of + * 7 days. Attempting to use an {@link + * UploadSessionStartResult#getSessionId} with {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} or + * {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * more than 7 days after its creation will return a {@link + * UploadSessionLookupError#NOT_FOUND}. Calls to this endpoint will count as + * data transport calls for any Dropbox Business teams with a limit on the + * number of data transport calls allowed per month. For more information, + * see the Data + * transport limit page. By default, upload sessions require you to send + * content of the file in sequential order via consecutive {@link + * DbxUserFilesRequests#uploadSessionStart}, {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)}, {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * calls. For better performance, you can instead optionally use a {@link + * UploadSessionType#CONCURRENT} upload session. To start a new concurrent + * session, set {@link UploadSessionStartArg#getSessionType} to {@link + * UploadSessionType#CONCURRENT}. After that, you can send file data in + * concurrent {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * requests. Finally finish the session with {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * There are couple of constraints with concurrent sessions to make them + * work. You can not send data with {@link + * DbxUserFilesRequests#uploadSessionStart} or {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * call, only with {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call. + * Also data uploaded in {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call + * must be multiple of 4194304 bytes (except for last {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} with + * {@link UploadSessionStartArg#getClose} to {@code true}, that may contain + * any remaining data). + * + * + * @return Uploader used to upload the request body and finish request. + */ + UploadSessionStartUploader uploadSessionStart(UploadSessionStartArg arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), + "2/files/upload_session/start", + arg, + false, + UploadSessionStartArg.Serializer.INSTANCE); + return new UploadSessionStartUploader(_uploader, this.client.getUserId()); + } + + /** + * Upload sessions allow you to upload a single file in one or more + * requests, for example where the size of the file is greater than 150 MB. + * This call starts a new upload session with the given data. You can then + * use {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} to add + * more data and {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * to save all the data to a file in Dropbox. + * + *

A single request should not upload more than 150 MB. The maximum size + * of a file one can upload to an upload session is 350 GB.

+ * + *

An upload session can be used for a maximum of 7 days. Attempting to + * use an {@link UploadSessionStartResult#getSessionId} with {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} or + * {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * more than 7 days after its creation will return a {@link + * UploadSessionLookupError#NOT_FOUND}.

+ * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the :link:`Data transport + * limit page + * https://www.dropbox.com/developers/reference/data-transport-limit`.

+ * + *

By default, upload sessions require you to send content of the file + * in sequential order via consecutive {@link + * DbxUserFilesRequests#uploadSessionStart}, {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)}, {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * calls. For better performance, you can instead optionally use a {@link + * UploadSessionType#CONCURRENT} upload session. To start a new concurrent + * session, set {@link UploadSessionStartArg#getSessionType} to {@link + * UploadSessionType#CONCURRENT}. After that, you can send file data in + * concurrent {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * requests. Finally finish the session with {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + *

+ * + *

There are couple of constraints with concurrent sessions to make them + * work. You can not send data with {@link + * DbxUserFilesRequests#uploadSessionStart} or {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * call, only with {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call. + * Also data uploaded in {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call + * must be multiple of 4194304 bytes (except for last {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} with + * {@link UploadSessionStartArg#getClose} to {@code true}, that may contain + * any remaining data).

+ * + *

The default values for the optional request parameters will be used. + * See {@link UploadSessionStartBuilder} for more details.

+ * + * @return Uploader used to upload the request body and finish request. + */ + public UploadSessionStartUploader uploadSessionStart() throws DbxException { + UploadSessionStartArg _arg = new UploadSessionStartArg(); + return uploadSessionStart(_arg); + } + + /** + * Upload sessions allow you to upload a single file in one or more + * requests, for example where the size of the file is greater than 150 MB. + * This call starts a new upload session with the given data. You can then + * use {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} to add + * more data and {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * to save all the data to a file in Dropbox. A single request should not + * upload more than 150 MB. The maximum size of a file one can upload to an + * upload session is 350 GB. An upload session can be used for a maximum of + * 7 days. Attempting to use an {@link + * UploadSessionStartResult#getSessionId} with {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} or + * {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * more than 7 days after its creation will return a {@link + * UploadSessionLookupError#NOT_FOUND}. Calls to this endpoint will count as + * data transport calls for any Dropbox Business teams with a limit on the + * number of data transport calls allowed per month. For more information, + * see the Data + * transport limit page. By default, upload sessions require you to send + * content of the file in sequential order via consecutive {@link + * DbxUserFilesRequests#uploadSessionStart}, {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)}, {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * calls. For better performance, you can instead optionally use a {@link + * UploadSessionType#CONCURRENT} upload session. To start a new concurrent + * session, set {@link UploadSessionStartArg#getSessionType} to {@link + * UploadSessionType#CONCURRENT}. After that, you can send file data in + * concurrent {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * requests. Finally finish the session with {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * There are couple of constraints with concurrent sessions to make them + * work. You can not send data with {@link + * DbxUserFilesRequests#uploadSessionStart} or {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)} + * call, only with {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call. + * Also data uploaded in {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} call + * must be multiple of 4194304 bytes (except for last {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} with + * {@link UploadSessionStartArg#getClose} to {@code true}, that may contain + * any remaining data). + * + * @return Uploader builder for configuring request parameters and + * instantiating an uploader. + */ + public UploadSessionStartBuilder uploadSessionStartBuilder() { + UploadSessionStartArg.Builder argBuilder_ = UploadSessionStartArg.newBuilder(); + return new UploadSessionStartBuilder(this, argBuilder_); + } + + // + // route 2/files/upload_session/start_batch + // + + /** + * This route starts batch of upload_sessions. Please refer to + * `upload_session/start` usage. Calls to this endpoint will count as data + * transport calls for any Dropbox Business teams with a limit on the number + * of data transport calls allowed per month. For more information, see the + * Data + * transport limit page. + * + */ + UploadSessionStartBatchResult uploadSessionStartBatch(UploadSessionStartBatchArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/files/upload_session/start_batch", + arg, + false, + UploadSessionStartBatchArg.Serializer.INSTANCE, + UploadSessionStartBatchResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"upload_session/start_batch\":" + ex.getErrorValue()); + } + } + + /** + * This route starts batch of upload_sessions. Please refer to + * `upload_session/start` usage. + * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the :link:`Data transport + * limit page + * https://www.dropbox.com/developers/reference/data-transport-limit`.

+ * + * @param numSessions The number of upload sessions to start. Must be + * greater than or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartBatchResult uploadSessionStartBatch(long numSessions) throws DbxApiException, DbxException { + UploadSessionStartBatchArg _arg = new UploadSessionStartBatchArg(numSessions); + return uploadSessionStartBatch(_arg); + } + + /** + * This route starts batch of upload_sessions. Please refer to + * `upload_session/start` usage. + * + *

Calls to this endpoint will count as data transport calls for any + * Dropbox Business teams with a limit on the number of data transport calls + * allowed per month. For more information, see the :link:`Data transport + * limit page + * https://www.dropbox.com/developers/reference/data-transport-limit`.

+ * + * @param numSessions The number of upload sessions to start. Must be + * greater than or equal to 1 and be less than or equal to 1000. + * @param sessionType Type of upload session you want to start. If not + * specified, default is {@link UploadSessionType#SEQUENTIAL}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartBatchResult uploadSessionStartBatch(long numSessions, UploadSessionType sessionType) throws DbxApiException, DbxException { + UploadSessionStartBatchArg _arg = new UploadSessionStartBatchArg(numSessions, sessionType); + return uploadSessionStartBatch(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder.java new file mode 100644 index 000000000..938a51838 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserGetThumbnailV2Builder.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#getThumbnailV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DbxUserGetThumbnailV2Builder extends DbxDownloadStyleBuilder { + private final DbxUserFilesRequests _client; + private final ThumbnailV2Arg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DbxUserGetThumbnailV2Builder(DbxUserFilesRequests _client, ThumbnailV2Arg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailFormat.JPEG}.

+ * + * @param format The format for the thumbnail image, jpeg (default) or png. + * For images that are photos, jpeg should be preferred, while png is + * better for screenshots and digital arts. Must not be {@code null}. + * Defaults to {@code ThumbnailFormat.JPEG} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserGetThumbnailV2Builder withFormat(ThumbnailFormat format) { + this._builder.withFormat(format); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailSize.W64H64}.

+ * + * @param size The size for the thumbnail image. Must not be {@code null}. + * Defaults to {@code ThumbnailSize.W64H64} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserGetThumbnailV2Builder withSize(ThumbnailSize size) { + this._builder.withSize(size); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailMode.STRICT}.

+ * + * @param mode How to resize and crop the image to achieve the desired + * size. Must not be {@code null}. Defaults to {@code + * ThumbnailMode.STRICT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserGetThumbnailV2Builder withMode(ThumbnailMode mode) { + this._builder.withMode(mode); + return this; + } + + @Override + public DbxDownloader start() throws ThumbnailV2ErrorException, DbxException { + ThumbnailV2Arg arg_ = this._builder.build(); + return _client.getThumbnailV2(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserListFolderBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserListFolderBuilder.java new file mode 100644 index 000000000..ed28afbde --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DbxUserListFolderBuilder.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#listFolderBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DbxUserListFolderBuilder { + private final DbxUserFilesRequests _client; + private final ListFolderArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DbxUserListFolderBuilder(DbxUserFilesRequests _client, ListFolderArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param recursive If true, the list folder operation will be applied + * recursively to all subfolders and the response will contain contents + * of all subfolders. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public DbxUserListFolderBuilder withRecursive(Boolean recursive) { + this._builder.withRecursive(recursive); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. This parameter will no longer have an effect + * starting December 2, 2019. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public DbxUserListFolderBuilder withIncludeMediaInfo(Boolean includeMediaInfo) { + this._builder.withIncludeMediaInfo(includeMediaInfo); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeDeleted If true, the results will include entries for + * files and folders that used to exist but were deleted. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public DbxUserListFolderBuilder withIncludeDeleted(Boolean includeDeleted) { + this._builder.withIncludeDeleted(includeDeleted); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public DbxUserListFolderBuilder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + this._builder.withIncludeHasExplicitSharedMembers(includeHasExplicitSharedMembers); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeMountedFolders If true, the results will include entries + * under mounted folders which includes app folder, shared folder and + * team folder. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DbxUserListFolderBuilder withIncludeMountedFolders(Boolean includeMountedFolders) { + this._builder.withIncludeMountedFolders(includeMountedFolders); + return this; + } + + /** + * Set value for optional field. + * + * @param limit The maximum number of results to return per request. Note: + * This is an approximate number and there can be slightly more entries + * returned in some cases. Must be greater than or equal to 1 and be + * less than or equal to 2000. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserListFolderBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLink A shared link to list the contents of. If the link is + * password-protected, the password must be provided. If this field is + * present, {@link ListFolderArg#getPath} will be relative to root of + * the shared link. Only non-recursive mode is supported for shared + * link. + * + * @return this builder + */ + public DbxUserListFolderBuilder withSharedLink(SharedLink sharedLink) { + this._builder.withSharedLink(sharedLink); + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public DbxUserListFolderBuilder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + this._builder.withIncludePropertyGroups(includePropertyGroups); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeNonDownloadableFiles If true, include files that are not + * downloadable, i.e. Google Docs. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public DbxUserListFolderBuilder withIncludeNonDownloadableFiles(Boolean includeNonDownloadableFiles) { + this._builder.withIncludeNonDownloadableFiles(includeNonDownloadableFiles); + return this; + } + + /** + * Issues the request. + */ + public ListFolderResult start() throws ListFolderErrorException, DbxException { + ListFolderArg arg_ = this._builder.build(); + return _client.listFolder(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteArg.java new file mode 100644 index 000000000..7970f76df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteArg.java @@ -0,0 +1,206 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class DeleteArg { + // struct files.DeleteArg (files.stone) + + @Nonnull + protected final String path; + @Nullable + protected final String parentRev; + + /** + * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * @param parentRev Perform delete if given "rev" matches the existing + * file's latest "rev". This field does not support deleting a folder. + * Must have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteArg(@Nonnull String path, @Nullable String parentRev) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (parentRev != null) { + if (parentRev.length() < 9) { + throw new IllegalArgumentException("String 'parentRev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", parentRev)) { + throw new IllegalArgumentException("String 'parentRev' does not match pattern"); + } + } + this.parentRev = parentRev; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path Path in the user's Dropbox to delete. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteArg(@Nonnull String path) { + this(path, null); + } + + /** + * Path in the user's Dropbox to delete. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Perform delete if given "rev" matches the existing file's latest "rev". + * This field does not support deleting a folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentRev() { + return parentRev; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.parentRev + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteArg other = (DeleteArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.parentRev == other.parentRev) || (this.parentRev != null && this.parentRev.equals(other.parentRev))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.parentRev != null) { + g.writeFieldName("parent_rev"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentRev, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_parentRev = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("parent_rev".equals(field)) { + f_parentRev = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new DeleteArg(f_path, f_parentRev); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchArg.java new file mode 100644 index 000000000..e4d2efabb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchArg.java @@ -0,0 +1,156 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class DeleteBatchArg { + // struct files.DeleteBatchArg (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Must contain at most 1000 items, not contain a {@code + * null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteBatchArg(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + if (entries.size() > 1000) { + throw new IllegalArgumentException("List 'entries' has more than 1000 items"); + } + for (DeleteArg x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteBatchArg other = (DeleteBatchArg) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(DeleteArg.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(DeleteArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new DeleteBatchArg(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchError.java new file mode 100644 index 000000000..8e57d4f97 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchError.java @@ -0,0 +1,86 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DeleteBatchError { + // union files.DeleteBatchError (files.stone) + /** + * Use {@link DeleteError#TOO_MANY_WRITE_OPERATIONS}. {@link + * DbxUserFilesRequests#deleteBatch(java.util.List)} now provides smaller + * granularity about which entry has failed because of this. + */ + TOO_MANY_WRITE_OPERATIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeleteBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("too_many_write_operations".equals(tag)) { + value = DeleteBatchError.TOO_MANY_WRITE_OPERATIONS; + } + else { + value = DeleteBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchJobStatus.java new file mode 100644 index 000000000..670270a77 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchJobStatus.java @@ -0,0 +1,396 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class DeleteBatchJobStatus { + // union files.DeleteBatchJobStatus (files.stone) + + /** + * Discriminating tag type for {@link DeleteBatchJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The batch delete has finished. + */ + COMPLETE, // DeleteBatchResult + /** + * The batch delete has failed. + */ + FAILED, // DeleteBatchError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The asynchronous job is still in progress. + */ + public static final DeleteBatchJobStatus IN_PROGRESS = new DeleteBatchJobStatus().withTag(Tag.IN_PROGRESS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final DeleteBatchJobStatus OTHER = new DeleteBatchJobStatus().withTag(Tag.OTHER); + + private Tag _tag; + private DeleteBatchResult completeValue; + private DeleteBatchError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DeleteBatchJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private DeleteBatchJobStatus withTag(Tag _tag) { + DeleteBatchJobStatus result = new DeleteBatchJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The batch delete has finished. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteBatchJobStatus withTagAndComplete(Tag _tag, DeleteBatchResult completeValue) { + DeleteBatchJobStatus result = new DeleteBatchJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue The batch delete has failed. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteBatchJobStatus withTagAndFailed(Tag _tag, DeleteBatchError failedValue) { + DeleteBatchJobStatus result = new DeleteBatchJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DeleteBatchJobStatus}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code DeleteBatchJobStatus} that has its tag set + * to {@link Tag#COMPLETE}. + * + *

The batch delete has finished.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteBatchJobStatus} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DeleteBatchJobStatus complete(DeleteBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DeleteBatchJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The batch delete has finished. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link DeleteBatchResult} value associated with this instance + * if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public DeleteBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code DeleteBatchJobStatus} that has its tag set + * to {@link Tag#FAILED}. + * + *

The batch delete has failed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteBatchJobStatus} with its tag set to + * {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DeleteBatchJobStatus failed(DeleteBatchError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DeleteBatchJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * The batch delete has failed. + * + *

This instance must be tagged as {@link Tag#FAILED}.

+ * + * @return The {@link DeleteBatchError} value associated with this instance + * if {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public DeleteBatchError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DeleteBatchJobStatus) { + DeleteBatchJobStatus other = (DeleteBatchJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteBatchJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + DeleteBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + DeleteBatchError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeleteBatchJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteBatchJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = DeleteBatchJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + DeleteBatchResult fieldValue = null; + fieldValue = DeleteBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = DeleteBatchJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + DeleteBatchError fieldValue = null; + expectField("failed", p); + fieldValue = DeleteBatchError.Serializer.INSTANCE.deserialize(p); + value = DeleteBatchJobStatus.failed(fieldValue); + } + else { + value = DeleteBatchJobStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchLaunch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchLaunch.java new file mode 100644 index 000000000..43a10829c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchLaunch.java @@ -0,0 +1,385 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by {@link DbxUserFilesRequests#deleteBatch(java.util.List)} + * that may either launch an asynchronous job or complete synchronously. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class DeleteBatchLaunch { + // union files.DeleteBatchLaunch (files.stone) + + /** + * Discriminating tag type for {@link DeleteBatchLaunch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE, // DeleteBatchResult + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final DeleteBatchLaunch OTHER = new DeleteBatchLaunch().withTag(Tag.OTHER); + + private Tag _tag; + private String asyncJobIdValue; + private DeleteBatchResult completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DeleteBatchLaunch() { + } + + + /** + * Result returned by {@link + * DbxUserFilesRequests#deleteBatch(java.util.List)} that may either launch + * an asynchronous job or complete synchronously. + * + * @param _tag Discriminating tag for this instance. + */ + private DeleteBatchLaunch withTag(Tag _tag) { + DeleteBatchLaunch result = new DeleteBatchLaunch(); + result._tag = _tag; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#deleteBatch(java.util.List)} that may either launch + * an asynchronous job or complete synchronously. + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteBatchLaunch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + DeleteBatchLaunch result = new DeleteBatchLaunch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#deleteBatch(java.util.List)} that may either launch + * an asynchronous job or complete synchronously. + * + * @param completeValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteBatchLaunch withTagAndComplete(Tag _tag, DeleteBatchResult completeValue) { + DeleteBatchLaunch result = new DeleteBatchLaunch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DeleteBatchLaunch}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code DeleteBatchLaunch} that has its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteBatchLaunch} with its tag set to {@link + * Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static DeleteBatchLaunch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new DeleteBatchLaunch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code DeleteBatchLaunch} that has its tag set to + * {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteBatchLaunch} with its tag set to {@link + * Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DeleteBatchLaunch complete(DeleteBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DeleteBatchLaunch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link DeleteBatchResult} value associated with this instance + * if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public DeleteBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DeleteBatchLaunch) { + DeleteBatchLaunch other = (DeleteBatchLaunch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteBatchLaunch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + DeleteBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeleteBatchLaunch deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteBatchLaunch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = DeleteBatchLaunch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + DeleteBatchResult fieldValue = null; + fieldValue = DeleteBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = DeleteBatchLaunch.complete(fieldValue); + } + else { + value = DeleteBatchLaunch.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResult.java new file mode 100644 index 000000000..aa489ed94 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResult.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class DeleteBatchResult extends FileOpsResult { + // struct files.DeleteBatchResult (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Each entry in {@link DeleteBatchArg#getEntries} will + * appear at the same position inside {@link + * DeleteBatchResult#getEntries}. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteBatchResult(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (DeleteBatchResultEntry x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * Each entry in {@link DeleteBatchArg#getEntries} will appear at the same + * position inside {@link DeleteBatchResult#getEntries}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteBatchResult other = (DeleteBatchResult) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(DeleteBatchResultEntry.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(DeleteBatchResultEntry.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new DeleteBatchResult(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResultData.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResultData.java new file mode 100644 index 000000000..fe99cf25b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResultData.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeleteBatchResultData { + // struct files.DeleteBatchResultData (files.stone) + + @Nonnull + protected final Metadata metadata; + + /** + * + * @param metadata Metadata of the deleted object. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteBatchResultData(@Nonnull Metadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * Metadata of the deleted object. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteBatchResultData other = (DeleteBatchResultData) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteBatchResultData value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteBatchResultData deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteBatchResultData value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Metadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new DeleteBatchResultData(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResultEntry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResultEntry.java new file mode 100644 index 000000000..097375b17 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteBatchResultEntry.java @@ -0,0 +1,317 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class DeleteBatchResultEntry { + // union files.DeleteBatchResultEntry (files.stone) + + /** + * Discriminating tag type for {@link DeleteBatchResultEntry}. + */ + public enum Tag { + SUCCESS, // DeleteBatchResultData + FAILURE; // DeleteError + } + + private Tag _tag; + private DeleteBatchResultData successValue; + private DeleteError failureValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DeleteBatchResultEntry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private DeleteBatchResultEntry withTag(Tag _tag) { + DeleteBatchResultEntry result = new DeleteBatchResultEntry(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteBatchResultEntry withTagAndSuccess(Tag _tag, DeleteBatchResultData successValue) { + DeleteBatchResultEntry result = new DeleteBatchResultEntry(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param failureValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteBatchResultEntry withTagAndFailure(Tag _tag, DeleteError failureValue) { + DeleteBatchResultEntry result = new DeleteBatchResultEntry(); + result._tag = _tag; + result.failureValue = failureValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DeleteBatchResultEntry}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code DeleteBatchResultEntry} that has its tag + * set to {@link Tag#SUCCESS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteBatchResultEntry} with its tag set to + * {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DeleteBatchResultEntry success(DeleteBatchResultData value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DeleteBatchResultEntry().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * This instance must be tagged as {@link Tag#SUCCESS}. + * + * @return The {@link DeleteBatchResultData} value associated with this + * instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public DeleteBatchResultData getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILURE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILURE}, + * {@code false} otherwise. + */ + public boolean isFailure() { + return this._tag == Tag.FAILURE; + } + + /** + * Returns an instance of {@code DeleteBatchResultEntry} that has its tag + * set to {@link Tag#FAILURE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteBatchResultEntry} with its tag set to + * {@link Tag#FAILURE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DeleteBatchResultEntry failure(DeleteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DeleteBatchResultEntry().withTagAndFailure(Tag.FAILURE, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILURE}. + * + * @return The {@link DeleteError} value associated with this instance if + * {@link #isFailure} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailure} is {@code false}. + */ + public DeleteError getFailureValue() { + if (this._tag != Tag.FAILURE) { + throw new IllegalStateException("Invalid tag: required Tag.FAILURE, but was Tag." + this._tag.name()); + } + return failureValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.failureValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DeleteBatchResultEntry) { + DeleteBatchResultEntry other = (DeleteBatchResultEntry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case FAILURE: + return (this.failureValue == other.failureValue) || (this.failureValue.equals(other.failureValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteBatchResultEntry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + DeleteBatchResultData.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case FAILURE: { + g.writeStartObject(); + writeTag("failure", g); + g.writeFieldName("failure"); + DeleteError.Serializer.INSTANCE.serialize(value.failureValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public DeleteBatchResultEntry deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteBatchResultEntry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + DeleteBatchResultData fieldValue = null; + fieldValue = DeleteBatchResultData.Serializer.INSTANCE.deserialize(p, true); + value = DeleteBatchResultEntry.success(fieldValue); + } + else if ("failure".equals(tag)) { + DeleteError fieldValue = null; + expectField("failure", p); + fieldValue = DeleteError.Serializer.INSTANCE.deserialize(p); + value = DeleteBatchResultEntry.failure(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteError.java new file mode 100644 index 000000000..2a9936874 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteError.java @@ -0,0 +1,416 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class DeleteError { + // union files.DeleteError (files.stone) + + /** + * Discriminating tag type for {@link DeleteError}. + */ + public enum Tag { + PATH_LOOKUP, // LookupError + PATH_WRITE, // WriteError + /** + * There are too many write operations in user's Dropbox. Please retry + * this request. + */ + TOO_MANY_WRITE_OPERATIONS, + /** + * There are too many files in one request. Please retry with fewer + * files. + */ + TOO_MANY_FILES, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * There are too many write operations in user's Dropbox. Please retry this + * request. + */ + public static final DeleteError TOO_MANY_WRITE_OPERATIONS = new DeleteError().withTag(Tag.TOO_MANY_WRITE_OPERATIONS); + /** + * There are too many files in one request. Please retry with fewer files. + */ + public static final DeleteError TOO_MANY_FILES = new DeleteError().withTag(Tag.TOO_MANY_FILES); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final DeleteError OTHER = new DeleteError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathLookupValue; + private WriteError pathWriteValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DeleteError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private DeleteError withTag(Tag _tag) { + DeleteError result = new DeleteError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathLookupValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteError withTagAndPathLookup(Tag _tag, LookupError pathLookupValue) { + DeleteError result = new DeleteError(); + result._tag = _tag; + result.pathLookupValue = pathLookupValue; + return result; + } + + /** + * + * @param pathWriteValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteError withTagAndPathWrite(Tag _tag, WriteError pathWriteValue) { + DeleteError result = new DeleteError(); + result._tag = _tag; + result.pathWriteValue = pathWriteValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DeleteError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PATH_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PATH_LOOKUP}, {@code false} otherwise. + */ + public boolean isPathLookup() { + return this._tag == Tag.PATH_LOOKUP; + } + + /** + * Returns an instance of {@code DeleteError} that has its tag set to {@link + * Tag#PATH_LOOKUP}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteError} with its tag set to {@link + * Tag#PATH_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DeleteError pathLookup(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DeleteError().withTagAndPathLookup(Tag.PATH_LOOKUP, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH_LOOKUP}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPathLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isPathLookup} is {@code false}. + */ + public LookupError getPathLookupValue() { + if (this._tag != Tag.PATH_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.PATH_LOOKUP, but was Tag." + this._tag.name()); + } + return pathLookupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH_WRITE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PATH_WRITE}, {@code false} otherwise. + */ + public boolean isPathWrite() { + return this._tag == Tag.PATH_WRITE; + } + + /** + * Returns an instance of {@code DeleteError} that has its tag set to {@link + * Tag#PATH_WRITE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteError} with its tag set to {@link + * Tag#PATH_WRITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DeleteError pathWrite(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DeleteError().withTagAndPathWrite(Tag.PATH_WRITE, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH_WRITE}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isPathWrite} is {@code true}. + * + * @throws IllegalStateException If {@link #isPathWrite} is {@code false}. + */ + public WriteError getPathWriteValue() { + if (this._tag != Tag.PATH_WRITE) { + throw new IllegalStateException("Invalid tag: required Tag.PATH_WRITE, but was Tag." + this._tag.name()); + } + return pathWriteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + */ + public boolean isTooManyWriteOperations() { + return this._tag == Tag.TOO_MANY_WRITE_OPERATIONS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathLookupValue, + this.pathWriteValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DeleteError) { + DeleteError other = (DeleteError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH_LOOKUP: + return (this.pathLookupValue == other.pathLookupValue) || (this.pathLookupValue.equals(other.pathLookupValue)); + case PATH_WRITE: + return (this.pathWriteValue == other.pathWriteValue) || (this.pathWriteValue.equals(other.pathWriteValue)); + case TOO_MANY_WRITE_OPERATIONS: + return true; + case TOO_MANY_FILES: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH_LOOKUP: { + g.writeStartObject(); + writeTag("path_lookup", g); + g.writeFieldName("path_lookup"); + LookupError.Serializer.INSTANCE.serialize(value.pathLookupValue, g); + g.writeEndObject(); + break; + } + case PATH_WRITE: { + g.writeStartObject(); + writeTag("path_write", g); + g.writeFieldName("path_write"); + WriteError.Serializer.INSTANCE.serialize(value.pathWriteValue, g); + g.writeEndObject(); + break; + } + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeleteError deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path_lookup".equals(tag)) { + LookupError fieldValue = null; + expectField("path_lookup", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = DeleteError.pathLookup(fieldValue); + } + else if ("path_write".equals(tag)) { + WriteError fieldValue = null; + expectField("path_write", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = DeleteError.pathWrite(fieldValue); + } + else if ("too_many_write_operations".equals(tag)) { + value = DeleteError.TOO_MANY_WRITE_OPERATIONS; + } + else if ("too_many_files".equals(tag)) { + value = DeleteError.TOO_MANY_FILES; + } + else { + value = DeleteError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteErrorException.java new file mode 100644 index 000000000..a5cc467e6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteErrorException.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link DeleteError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#delete(String,String)}, {@link + * DbxUserFilesRequests#deleteV2(String,String)}, and {@link + * DbxUserFilesRequests#permanentlyDelete(String,String)}.

+ */ +public class DeleteErrorException extends DbxApiException { + // exception for routes: + // 2/files/delete + // 2/files/delete_v2 + // 2/files/permanently_delete + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#delete(String,String)}, + * {@link DbxUserFilesRequests#deleteV2(String,String)}, and {@link + * DbxUserFilesRequests#permanentlyDelete(String,String)}. + */ + public final DeleteError errorValue; + + public DeleteErrorException(String routeName, String requestId, LocalizedText userMessage, DeleteError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteResult.java new file mode 100644 index 000000000..5d66a1e6b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeleteResult.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeleteResult extends FileOpsResult { + // struct files.DeleteResult (files.stone) + + @Nonnull + protected final Metadata metadata; + + /** + * + * @param metadata Metadata of the deleted object. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteResult(@Nonnull Metadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * Metadata of the deleted object. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteResult other = (DeleteResult) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Metadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new DeleteResult(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeletedMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeletedMetadata.java new file mode 100644 index 000000000..d1bf351b3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DeletedMetadata.java @@ -0,0 +1,369 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Indicates that there used to be a file or folder at this path, but it no + * longer exists. + */ +public class DeletedMetadata extends Metadata { + // struct files.DeletedMetadata (files.stone) + + + /** + * Indicates that there used to be a file or folder at this path, but it no + * longer exists. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param pathLower The lowercased full path in the user's Dropbox. This + * always starts with a slash. This field will be null if the file or + * folder is not mounted. + * @param pathDisplay The cased path to be used for display purposes only. + * In rare instances the casing will not correctly match the user's + * filesystem, but this behavior will match the path provided in the + * Core API v1, and at least the last path component will have the + * correct casing. Changes to only the casing of paths won't be returned + * by {@link DbxAppFilesRequests#listFolderContinue(String)}. This field + * will be null if the file or folder is not mounted. + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * @param previewUrl The preview URL of the file. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeletedMetadata(@Nonnull String name, @Nullable String pathLower, @Nullable String pathDisplay, @Nullable String parentSharedFolderId, @Nullable String previewUrl) { + super(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl); + } + + /** + * Indicates that there used to be a file or folder at this path, but it no + * longer exists. + * + *

The default values for unset fields will be used.

+ * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeletedMetadata(@Nonnull String name) { + this(name, null, null, null, null); + } + + /** + * The last component of the path (including extension). This never contains + * a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The lowercased full path in the user's Dropbox. This always starts with a + * slash. This field will be null if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The cased path to be used for display purposes only. In rare instances + * the casing will not correctly match the user's filesystem, but this + * behavior will match the path provided in the Core API v1, and at least + * the last path component will have the correct casing. Changes to only the + * casing of paths won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will be null + * if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathDisplay() { + return pathDisplay; + } + + /** + * Please use {@link FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The preview URL of the file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviewUrl() { + return previewUrl; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name) { + return new Builder(name); + } + + /** + * Builder for {@link DeletedMetadata}. + */ + public static class Builder extends Metadata.Builder { + + protected Builder(String name) { + super(name); + } + + /** + * Set value for optional field. + * + * @param pathLower The lowercased full path in the user's Dropbox. + * This always starts with a slash. This field will be null if the + * file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + super.withPathLower(pathLower); + return this; + } + + /** + * Set value for optional field. + * + * @param pathDisplay The cased path to be used for display purposes + * only. In rare instances the casing will not correctly match the + * user's filesystem, but this behavior will match the path provided + * in the Core API v1, and at least the last path component will + * have the correct casing. Changes to only the casing of paths + * won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will + * be null if the file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathDisplay(String pathDisplay) { + super.withPathDisplay(pathDisplay); + return this; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + super.withParentSharedFolderId(parentSharedFolderId); + return this; + } + + /** + * Set value for optional field. + * + * @param previewUrl The preview URL of the file. + * + * @return this builder + */ + public Builder withPreviewUrl(String previewUrl) { + super.withPreviewUrl(previewUrl); + return this; + } + + /** + * Builds an instance of {@link DeletedMetadata} configured with this + * builder's values + * + * @return new instance of {@link DeletedMetadata} + */ + public DeletedMetadata build() { + return new DeletedMetadata(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeletedMetadata other = (DeletedMetadata) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.pathDisplay == other.pathDisplay) || (this.pathDisplay != null && this.pathDisplay.equals(other.pathDisplay))) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.previewUrl == other.previewUrl) || (this.previewUrl != null && this.previewUrl.equals(other.previewUrl))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeletedMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("deleted", g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.pathDisplay != null) { + g.writeFieldName("path_display"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathDisplay, g); + } + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.previewUrl != null) { + g.writeFieldName("preview_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previewUrl, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeletedMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeletedMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("deleted".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + String f_pathLower = null; + String f_pathDisplay = null; + String f_parentSharedFolderId = null; + String f_previewUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_display".equals(field)) { + f_pathDisplay = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("preview_url".equals(field)) { + f_previewUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new DeletedMetadata(f_name, f_pathLower, f_pathDisplay, f_parentSharedFolderId, f_previewUrl); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/Dimensions.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/Dimensions.java new file mode 100644 index 000000000..b59482542 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/Dimensions.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Dimensions for a photo or video. + */ +public class Dimensions { + // struct files.Dimensions (files.stone) + + protected final long height; + protected final long width; + + /** + * Dimensions for a photo or video. + * + * @param height Height of the photo/video. + * @param width Width of the photo/video. + */ + public Dimensions(long height, long width) { + this.height = height; + this.width = width; + } + + /** + * Height of the photo/video. + * + * @return value for this field. + */ + public long getHeight() { + return height; + } + + /** + * Width of the photo/video. + * + * @return value for this field. + */ + public long getWidth() { + return width; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.height, + this.width + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Dimensions other = (Dimensions) obj; + return (this.height == other.height) + && (this.width == other.width) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Dimensions value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("height"); + StoneSerializers.uInt64().serialize(value.height, g); + g.writeFieldName("width"); + StoneSerializers.uInt64().serialize(value.width, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Dimensions deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Dimensions value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_height = null; + Long f_width = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("height".equals(field)) { + f_height = StoneSerializers.uInt64().deserialize(p); + } + else if ("width".equals(field)) { + f_width = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_height == null) { + throw new JsonParseException(p, "Required field \"height\" missing."); + } + if (f_width == null) { + throw new JsonParseException(p, "Required field \"width\" missing."); + } + value = new Dimensions(f_height, f_width); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadArg.java new file mode 100644 index 000000000..f647b08b7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadArg.java @@ -0,0 +1,206 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class DownloadArg { + // struct files.DownloadArg (files.stone) + + @Nonnull + protected final String path; + @Nullable + protected final String rev; + + /** + * + * @param path The path of the file to download. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param rev Please specify revision in the {@code path} argument to + * {@link DbxUserFilesRequests#download(String,String)} instead. Must + * have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DownloadArg(@Nonnull String path, @Nullable String rev) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (rev != null) { + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + } + this.rev = rev; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path of the file to download. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DownloadArg(@Nonnull String path) { + this(path, null); + } + + /** + * The path of the file to download. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Please specify revision in the {@code path} argument to {@link + * DbxUserFilesRequests#download(String,String)} instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getRev() { + return rev; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.rev + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DownloadArg other = (DownloadArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.rev == other.rev) || (this.rev != null && this.rev.equals(other.rev))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DownloadArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.rev != null) { + g.writeFieldName("rev"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.rev, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DownloadArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DownloadArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_rev = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("rev".equals(field)) { + f_rev = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new DownloadArg(f_path, f_rev); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadBuilder.java new file mode 100644 index 000000000..eeb3152de --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadBuilder.java @@ -0,0 +1,74 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link DbxUserFilesRequests#downloadBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DownloadBuilder extends DbxDownloadStyleBuilder { + private final DbxUserFilesRequests _client; + private final String path; + private String rev; + + /** + * Creates a new instance of this builder. + * + * @param path The path of the file to download. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * + * @return instsance of this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + DownloadBuilder(DbxUserFilesRequests _client, String path) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + this.path = path; + this.rev = null; + } + + /** + * Set value for optional field. + * + * @param rev Please specify revision in the {@code path} argument to + * {@link DbxUserFilesRequests#download(String,String)} instead. Must + * have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DownloadBuilder withRev(String rev) { + if (rev != null) { + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!java.util.regex.Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + } + this.rev = rev; + return this; + } + + @Override + public DbxDownloader start() throws DownloadErrorException, DbxException { + DownloadArg arg_ = new DownloadArg(path, rev); + return _client.download(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadError.java new file mode 100644 index 000000000..7aa677582 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadError.java @@ -0,0 +1,307 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class DownloadError { + // union files.DownloadError (files.stone) + + /** + * Discriminating tag type for {@link DownloadError}. + */ + public enum Tag { + PATH, // LookupError + /** + * This file type cannot be downloaded directly; use {@link + * DbxUserFilesRequests#export(String,String)} instead. + */ + UNSUPPORTED_FILE, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * This file type cannot be downloaded directly; use {@link + * DbxUserFilesRequests#export(String,String)} instead. + */ + public static final DownloadError UNSUPPORTED_FILE = new DownloadError().withTag(Tag.UNSUPPORTED_FILE); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final DownloadError OTHER = new DownloadError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DownloadError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private DownloadError withTag(Tag _tag) { + DownloadError result = new DownloadError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DownloadError withTagAndPath(Tag _tag, LookupError pathValue) { + DownloadError result = new DownloadError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DownloadError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code DownloadError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DownloadError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DownloadError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DownloadError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_FILE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_FILE}, {@code false} otherwise. + */ + public boolean isUnsupportedFile() { + return this._tag == Tag.UNSUPPORTED_FILE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DownloadError) { + DownloadError other = (DownloadError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_FILE: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DownloadError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_FILE: { + g.writeString("unsupported_file"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DownloadError deserialize(JsonParser p) throws IOException, JsonParseException { + DownloadError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = DownloadError.path(fieldValue); + } + else if ("unsupported_file".equals(tag)) { + value = DownloadError.UNSUPPORTED_FILE; + } + else { + value = DownloadError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadErrorException.java new file mode 100644 index 000000000..2ce56156d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link DownloadError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#download(String,String)}.

+ */ +public class DownloadErrorException extends DbxApiException { + // exception for routes: + // 2/files/download + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#download(String,String)}. + */ + public final DownloadError errorValue; + + public DownloadErrorException(String routeName, String requestId, LocalizedText userMessage, DownloadError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipArg.java new file mode 100644 index 000000000..1d895445e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipArg.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class DownloadZipArg { + // struct files.DownloadZipArg (files.stone) + + @Nonnull + protected final String path; + + /** + * + * @param path The path of the folder to download. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DownloadZipArg(@Nonnull String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + } + + /** + * The path of the folder to download. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DownloadZipArg other = (DownloadZipArg) obj; + return (this.path == other.path) || (this.path.equals(other.path)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DownloadZipArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DownloadZipArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DownloadZipArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new DownloadZipArg(f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipBuilder.java new file mode 100644 index 000000000..25dd34ba7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipBuilder.java @@ -0,0 +1,48 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#downloadZipBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DownloadZipBuilder extends DbxDownloadStyleBuilder { + private final DbxUserFilesRequests _client; + private final String path; + + /** + * Creates a new instance of this builder. + * + * @param path The path of the folder to download. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * + * @return instsance of this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + DownloadZipBuilder(DbxUserFilesRequests _client, String path) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + this.path = path; + } + + @Override + public DbxDownloader start() throws DownloadZipErrorException, DbxException { + DownloadZipArg arg_ = new DownloadZipArg(path); + return _client.downloadZip(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipError.java new file mode 100644 index 000000000..1576577de --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipError.java @@ -0,0 +1,333 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class DownloadZipError { + // union files.DownloadZipError (files.stone) + + /** + * Discriminating tag type for {@link DownloadZipError}. + */ + public enum Tag { + PATH, // LookupError + /** + * The folder or a file is too large to download. + */ + TOO_LARGE, + /** + * The folder has too many files to download. + */ + TOO_MANY_FILES, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The folder or a file is too large to download. + */ + public static final DownloadZipError TOO_LARGE = new DownloadZipError().withTag(Tag.TOO_LARGE); + /** + * The folder has too many files to download. + */ + public static final DownloadZipError TOO_MANY_FILES = new DownloadZipError().withTag(Tag.TOO_MANY_FILES); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final DownloadZipError OTHER = new DownloadZipError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DownloadZipError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private DownloadZipError withTag(Tag _tag) { + DownloadZipError result = new DownloadZipError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DownloadZipError withTagAndPath(Tag _tag, LookupError pathValue) { + DownloadZipError result = new DownloadZipError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DownloadZipError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code DownloadZipError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DownloadZipError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static DownloadZipError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new DownloadZipError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TOO_LARGE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TOO_LARGE}, + * {@code false} otherwise. + */ + public boolean isTooLarge() { + return this._tag == Tag.TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DownloadZipError) { + DownloadZipError other = (DownloadZipError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case TOO_LARGE: + return true; + case TOO_MANY_FILES: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DownloadZipError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case TOO_LARGE: { + g.writeString("too_large"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DownloadZipError deserialize(JsonParser p) throws IOException, JsonParseException { + DownloadZipError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = DownloadZipError.path(fieldValue); + } + else if ("too_large".equals(tag)) { + value = DownloadZipError.TOO_LARGE; + } + else if ("too_many_files".equals(tag)) { + value = DownloadZipError.TOO_MANY_FILES; + } + else { + value = DownloadZipError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipErrorException.java new file mode 100644 index 000000000..e7dcee297 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link DownloadZipError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#downloadZip(String)}.

+ */ +public class DownloadZipErrorException extends DbxApiException { + // exception for routes: + // 2/files/download_zip + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#downloadZip(String)}. + */ + public final DownloadZipError errorValue; + + public DownloadZipErrorException(String routeName, String requestId, LocalizedText userMessage, DownloadZipError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipResult.java new file mode 100644 index 000000000..ad3bff1e3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipResult.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DownloadZipResult { + // struct files.DownloadZipResult (files.stone) + + @Nonnull + protected final FolderMetadata metadata; + + /** + * + * @param metadata Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DownloadZipResult(@Nonnull FolderMetadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderMetadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DownloadZipResult other = (DownloadZipResult) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DownloadZipResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + FolderMetadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DownloadZipResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DownloadZipResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FolderMetadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = FolderMetadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new DownloadZipResult(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportArg.java new file mode 100644 index 000000000..8bdec4890 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportArg.java @@ -0,0 +1,203 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ExportArg { + // struct files.ExportArg (files.stone) + + @Nonnull + protected final String path; + @Nullable + protected final String exportFormat; + + /** + * + * @param path The path of the file to be exported. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param exportFormat The file format to which the file should be + * exported. This must be one of the formats listed in the file's + * export_options returned by {@link + * DbxUserFilesRequests#getMetadata(String)}. If none is specified, the + * default format (specified in export_as in file metadata) will be + * used. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportArg(@Nonnull String path, @Nullable String exportFormat) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.exportFormat = exportFormat; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path of the file to be exported. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportArg(@Nonnull String path) { + this(path, null); + } + + /** + * The path of the file to be exported. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The file format to which the file should be exported. This must be one of + * the formats listed in the file's export_options returned by {@link + * DbxUserFilesRequests#getMetadata(String)}. If none is specified, the + * default format (specified in export_as in file metadata) will be used. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExportFormat() { + return exportFormat; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.exportFormat + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportArg other = (ExportArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.exportFormat == other.exportFormat) || (this.exportFormat != null && this.exportFormat.equals(other.exportFormat))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.exportFormat != null) { + g.writeFieldName("export_format"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.exportFormat, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_exportFormat = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("export_format".equals(field)) { + f_exportFormat = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new ExportArg(f_path, f_exportFormat); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportBuilder.java new file mode 100644 index 000000000..d6d8e5cb6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportBuilder.java @@ -0,0 +1,66 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link DbxUserFilesRequests#exportBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ExportBuilder extends DbxDownloadStyleBuilder { + private final DbxUserFilesRequests _client; + private final String path; + private String exportFormat; + + /** + * Creates a new instance of this builder. + * + * @param path The path of the file to be exported. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * + * @return instsance of this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + ExportBuilder(DbxUserFilesRequests _client, String path) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + this.path = path; + this.exportFormat = null; + } + + /** + * Set value for optional field. + * + * @param exportFormat The file format to which the file should be + * exported. This must be one of the formats listed in the file's + * export_options returned by {@link + * DbxUserFilesRequests#getMetadata(String)}. If none is specified, the + * default format (specified in export_as in file metadata) will be + * used. + * + * @return this builder + */ + public ExportBuilder withExportFormat(String exportFormat) { + this.exportFormat = exportFormat; + return this; + } + + @Override + public DbxDownloader start() throws ExportErrorException, DbxException { + ExportArg arg_ = new ExportArg(path, exportFormat); + return _client.export(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportError.java new file mode 100644 index 000000000..d2dd4f60a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportError.java @@ -0,0 +1,363 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ExportError { + // union files.ExportError (files.stone) + + /** + * Discriminating tag type for {@link ExportError}. + */ + public enum Tag { + PATH, // LookupError + /** + * This file type cannot be exported. Use {@link + * DbxUserFilesRequests#download(String,String)} instead. + */ + NON_EXPORTABLE, + /** + * The specified export format is not a valid option for this file type. + */ + INVALID_EXPORT_FORMAT, + /** + * The exportable content is not yet available. Please retry later. + */ + RETRY_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * This file type cannot be exported. Use {@link + * DbxUserFilesRequests#download(String,String)} instead. + */ + public static final ExportError NON_EXPORTABLE = new ExportError().withTag(Tag.NON_EXPORTABLE); + /** + * The specified export format is not a valid option for this file type. + */ + public static final ExportError INVALID_EXPORT_FORMAT = new ExportError().withTag(Tag.INVALID_EXPORT_FORMAT); + /** + * The exportable content is not yet available. Please retry later. + */ + public static final ExportError RETRY_ERROR = new ExportError().withTag(Tag.RETRY_ERROR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ExportError OTHER = new ExportError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ExportError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ExportError withTag(Tag _tag) { + ExportError result = new ExportError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ExportError withTagAndPath(Tag _tag, LookupError pathValue) { + ExportError result = new ExportError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ExportError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code ExportError} that has its tag set to {@link + * Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ExportError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ExportError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ExportError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NON_EXPORTABLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NON_EXPORTABLE}, {@code false} otherwise. + */ + public boolean isNonExportable() { + return this._tag == Tag.NON_EXPORTABLE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_EXPORT_FORMAT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_EXPORT_FORMAT}, {@code false} otherwise. + */ + public boolean isInvalidExportFormat() { + return this._tag == Tag.INVALID_EXPORT_FORMAT; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RETRY_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RETRY_ERROR}, {@code false} otherwise. + */ + public boolean isRetryError() { + return this._tag == Tag.RETRY_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ExportError) { + ExportError other = (ExportError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case NON_EXPORTABLE: + return true; + case INVALID_EXPORT_FORMAT: + return true; + case RETRY_ERROR: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case NON_EXPORTABLE: { + g.writeString("non_exportable"); + break; + } + case INVALID_EXPORT_FORMAT: { + g.writeString("invalid_export_format"); + break; + } + case RETRY_ERROR: { + g.writeString("retry_error"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExportError deserialize(JsonParser p) throws IOException, JsonParseException { + ExportError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = ExportError.path(fieldValue); + } + else if ("non_exportable".equals(tag)) { + value = ExportError.NON_EXPORTABLE; + } + else if ("invalid_export_format".equals(tag)) { + value = ExportError.INVALID_EXPORT_FORMAT; + } + else if ("retry_error".equals(tag)) { + value = ExportError.RETRY_ERROR; + } + else { + value = ExportError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportErrorException.java new file mode 100644 index 000000000..fef69bc16 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportErrorException.java @@ -0,0 +1,33 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ExportError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#export(String,String)}.

+ */ +public class ExportErrorException extends DbxApiException { + // exception for routes: + // 2/files/export + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#export(String,String)}. + */ + public final ExportError errorValue; + + public ExportErrorException(String routeName, String requestId, LocalizedText userMessage, ExportError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportInfo.java new file mode 100644 index 000000000..f27a437db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportInfo.java @@ -0,0 +1,265 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Export information for a file. + */ +public class ExportInfo { + // struct files.ExportInfo (files.stone) + + @Nullable + protected final String exportAs; + @Nullable + protected final List exportOptions; + + /** + * Export information for a file. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param exportAs Format to which the file can be exported to. + * @param exportOptions Additional formats to which the file can be + * exported. These values can be specified as the export_format in + * /files/export. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportInfo(@Nullable String exportAs, @Nullable List exportOptions) { + this.exportAs = exportAs; + if (exportOptions != null) { + for (String x : exportOptions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'exportOptions' is null"); + } + } + } + this.exportOptions = exportOptions; + } + + /** + * Export information for a file. + * + *

The default values for unset fields will be used.

+ */ + public ExportInfo() { + this(null, null); + } + + /** + * Format to which the file can be exported to. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExportAs() { + return exportAs; + } + + /** + * Additional formats to which the file can be exported. These values can be + * specified as the export_format in /files/export. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getExportOptions() { + return exportOptions; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ExportInfo}. + */ + public static class Builder { + + protected String exportAs; + protected List exportOptions; + + protected Builder() { + this.exportAs = null; + this.exportOptions = null; + } + + /** + * Set value for optional field. + * + * @param exportAs Format to which the file can be exported to. + * + * @return this builder + */ + public Builder withExportAs(String exportAs) { + this.exportAs = exportAs; + return this; + } + + /** + * Set value for optional field. + * + * @param exportOptions Additional formats to which the file can be + * exported. These values can be specified as the export_format in + * /files/export. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withExportOptions(List exportOptions) { + if (exportOptions != null) { + for (String x : exportOptions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'exportOptions' is null"); + } + } + } + this.exportOptions = exportOptions; + return this; + } + + /** + * Builds an instance of {@link ExportInfo} configured with this + * builder's values + * + * @return new instance of {@link ExportInfo} + */ + public ExportInfo build() { + return new ExportInfo(exportAs, exportOptions); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.exportAs, + this.exportOptions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportInfo other = (ExportInfo) obj; + return ((this.exportAs == other.exportAs) || (this.exportAs != null && this.exportAs.equals(other.exportAs))) + && ((this.exportOptions == other.exportOptions) || (this.exportOptions != null && this.exportOptions.equals(other.exportOptions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.exportAs != null) { + g.writeFieldName("export_as"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.exportAs, g); + } + if (value.exportOptions != null) { + g.writeFieldName("export_options"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.exportOptions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_exportAs = null; + List f_exportOptions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("export_as".equals(field)) { + f_exportAs = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("export_options".equals(field)) { + f_exportOptions = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ExportInfo(f_exportAs, f_exportOptions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportMetadata.java new file mode 100644 index 000000000..c02441162 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportMetadata.java @@ -0,0 +1,350 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ExportMetadata { + // struct files.ExportMetadata (files.stone) + + @Nonnull + protected final String name; + protected final long size; + @Nullable + protected final String exportHash; + @Nullable + protected final Long paperRevision; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param size The file size in bytes. + * @param exportHash A hash based on the exported file content. This field + * can be used to verify data integrity. Similar to content hash. For + * more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * @param paperRevision If the file is a Paper doc, this gives the latest + * doc revision which can be used in {@link + * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportMetadata(@Nonnull String name, long size, @Nullable String exportHash, @Nullable Long paperRevision) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.size = size; + if (exportHash != null) { + if (exportHash.length() < 64) { + throw new IllegalArgumentException("String 'exportHash' is shorter than 64"); + } + if (exportHash.length() > 64) { + throw new IllegalArgumentException("String 'exportHash' is longer than 64"); + } + } + this.exportHash = exportHash; + this.paperRevision = paperRevision; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param size The file size in bytes. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportMetadata(@Nonnull String name, long size) { + this(name, size, null, null); + } + + /** + * The last component of the path (including extension). This never contains + * a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The file size in bytes. + * + * @return value for this field. + */ + public long getSize() { + return size; + } + + /** + * A hash based on the exported file content. This field can be used to + * verify data integrity. Similar to content hash. For more information see + * our Content + * hash page. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExportHash() { + return exportHash; + } + + /** + * If the file is a Paper doc, this gives the latest doc revision which can + * be used in {@link + * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getPaperRevision() { + return paperRevision; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param size The file size in bytes. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name, long size) { + return new Builder(name, size); + } + + /** + * Builder for {@link ExportMetadata}. + */ + public static class Builder { + protected final String name; + protected final long size; + + protected String exportHash; + protected Long paperRevision; + + protected Builder(String name, long size) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.size = size; + this.exportHash = null; + this.paperRevision = null; + } + + /** + * Set value for optional field. + * + * @param exportHash A hash based on the exported file content. This + * field can be used to verify data integrity. Similar to content + * hash. For more information see our Content + * hash page. Must have length of at least 64 and have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withExportHash(String exportHash) { + if (exportHash != null) { + if (exportHash.length() < 64) { + throw new IllegalArgumentException("String 'exportHash' is shorter than 64"); + } + if (exportHash.length() > 64) { + throw new IllegalArgumentException("String 'exportHash' is longer than 64"); + } + } + this.exportHash = exportHash; + return this; + } + + /** + * Set value for optional field. + * + * @param paperRevision If the file is a Paper doc, this gives the + * latest doc revision which can be used in {@link + * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. + * + * @return this builder + */ + public Builder withPaperRevision(Long paperRevision) { + this.paperRevision = paperRevision; + return this; + } + + /** + * Builds an instance of {@link ExportMetadata} configured with this + * builder's values + * + * @return new instance of {@link ExportMetadata} + */ + public ExportMetadata build() { + return new ExportMetadata(name, size, exportHash, paperRevision); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.size, + this.exportHash, + this.paperRevision + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportMetadata other = (ExportMetadata) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && (this.size == other.size) + && ((this.exportHash == other.exportHash) || (this.exportHash != null && this.exportHash.equals(other.exportHash))) + && ((this.paperRevision == other.paperRevision) || (this.paperRevision != null && this.paperRevision.equals(other.paperRevision))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("size"); + StoneSerializers.uInt64().serialize(value.size, g); + if (value.exportHash != null) { + g.writeFieldName("export_hash"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.exportHash, g); + } + if (value.paperRevision != null) { + g.writeFieldName("paper_revision"); + StoneSerializers.nullable(StoneSerializers.int64()).serialize(value.paperRevision, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + Long f_size = null; + String f_exportHash = null; + Long f_paperRevision = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("size".equals(field)) { + f_size = StoneSerializers.uInt64().deserialize(p); + } + else if ("export_hash".equals(field)) { + f_exportHash = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("paper_revision".equals(field)) { + f_paperRevision = StoneSerializers.nullable(StoneSerializers.int64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_size == null) { + throw new JsonParseException(p, "Required field \"size\" missing."); + } + value = new ExportMetadata(f_name, f_size, f_exportHash, f_paperRevision); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportResult.java new file mode 100644 index 000000000..dcade47e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportResult.java @@ -0,0 +1,178 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExportResult { + // struct files.ExportResult (files.stone) + + @Nonnull + protected final ExportMetadata exportMetadata; + @Nonnull + protected final FileMetadata fileMetadata; + + /** + * + * @param exportMetadata Metadata for the exported version of the file. + * Must not be {@code null}. + * @param fileMetadata Metadata for the original file. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportResult(@Nonnull ExportMetadata exportMetadata, @Nonnull FileMetadata fileMetadata) { + if (exportMetadata == null) { + throw new IllegalArgumentException("Required value for 'exportMetadata' is null"); + } + this.exportMetadata = exportMetadata; + if (fileMetadata == null) { + throw new IllegalArgumentException("Required value for 'fileMetadata' is null"); + } + this.fileMetadata = fileMetadata; + } + + /** + * Metadata for the exported version of the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExportMetadata getExportMetadata() { + return exportMetadata; + } + + /** + * Metadata for the original file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileMetadata getFileMetadata() { + return fileMetadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.exportMetadata, + this.fileMetadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportResult other = (ExportResult) obj; + return ((this.exportMetadata == other.exportMetadata) || (this.exportMetadata.equals(other.exportMetadata))) + && ((this.fileMetadata == other.fileMetadata) || (this.fileMetadata.equals(other.fileMetadata))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("export_metadata"); + ExportMetadata.Serializer.INSTANCE.serialize(value.exportMetadata, g); + g.writeFieldName("file_metadata"); + FileMetadata.Serializer.INSTANCE.serialize(value.fileMetadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ExportMetadata f_exportMetadata = null; + FileMetadata f_fileMetadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("export_metadata".equals(field)) { + f_exportMetadata = ExportMetadata.Serializer.INSTANCE.deserialize(p); + } + else if ("file_metadata".equals(field)) { + f_fileMetadata = FileMetadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_exportMetadata == null) { + throw new JsonParseException(p, "Required field \"export_metadata\" missing."); + } + if (f_fileMetadata == null) { + throw new JsonParseException(p, "Required field \"file_metadata\" missing."); + } + value = new ExportResult(f_exportMetadata, f_fileMetadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileCategory.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileCategory.java new file mode 100644 index 000000000..2cefa0315 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileCategory.java @@ -0,0 +1,183 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum FileCategory { + // union files.FileCategory (files.stone) + /** + * jpg, png, gif, and more. + */ + IMAGE, + /** + * doc, docx, txt, and more. + */ + DOCUMENT, + /** + * pdf. + */ + PDF, + /** + * xlsx, xls, csv, and more. + */ + SPREADSHEET, + /** + * ppt, pptx, key, and more. + */ + PRESENTATION, + /** + * mp3, wav, mid, and more. + */ + AUDIO, + /** + * mov, wmv, mp4, and more. + */ + VIDEO, + /** + * dropbox folder. + */ + FOLDER, + /** + * dropbox paper doc. + */ + PAPER, + /** + * any file not in one of the categories above. + */ + OTHERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileCategory value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case IMAGE: { + g.writeString("image"); + break; + } + case DOCUMENT: { + g.writeString("document"); + break; + } + case PDF: { + g.writeString("pdf"); + break; + } + case SPREADSHEET: { + g.writeString("spreadsheet"); + break; + } + case PRESENTATION: { + g.writeString("presentation"); + break; + } + case AUDIO: { + g.writeString("audio"); + break; + } + case VIDEO: { + g.writeString("video"); + break; + } + case FOLDER: { + g.writeString("folder"); + break; + } + case PAPER: { + g.writeString("paper"); + break; + } + case OTHERS: { + g.writeString("others"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileCategory deserialize(JsonParser p) throws IOException, JsonParseException { + FileCategory value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("image".equals(tag)) { + value = FileCategory.IMAGE; + } + else if ("document".equals(tag)) { + value = FileCategory.DOCUMENT; + } + else if ("pdf".equals(tag)) { + value = FileCategory.PDF; + } + else if ("spreadsheet".equals(tag)) { + value = FileCategory.SPREADSHEET; + } + else if ("presentation".equals(tag)) { + value = FileCategory.PRESENTATION; + } + else if ("audio".equals(tag)) { + value = FileCategory.AUDIO; + } + else if ("video".equals(tag)) { + value = FileCategory.VIDEO; + } + else if ("folder".equals(tag)) { + value = FileCategory.FOLDER; + } + else if ("paper".equals(tag)) { + value = FileCategory.PAPER; + } + else if ("others".equals(tag)) { + value = FileCategory.OTHERS; + } + else { + value = FileCategory.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLock.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLock.java new file mode 100644 index 000000000..c0de1a246 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLock.java @@ -0,0 +1,147 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileLock { + // struct files.FileLock (files.stone) + + @Nonnull + protected final FileLockContent content; + + /** + * + * @param content The lock description. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLock(@Nonnull FileLockContent content) { + if (content == null) { + throw new IllegalArgumentException("Required value for 'content' is null"); + } + this.content = content; + } + + /** + * The lock description. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileLockContent getContent() { + return content; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.content + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLock other = (FileLock) obj; + return (this.content == other.content) || (this.content.equals(other.content)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLock value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("content"); + FileLockContent.Serializer.INSTANCE.serialize(value.content, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLock deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLock value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileLockContent f_content = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("content".equals(field)) { + f_content = FileLockContent.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_content == null) { + throw new JsonParseException(p, "Required field \"content\" missing."); + } + value = new FileLock(f_content); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLockContent.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLockContent.java new file mode 100644 index 000000000..a4868377e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLockContent.java @@ -0,0 +1,309 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class FileLockContent { + // union files.FileLockContent (files.stone) + + /** + * Discriminating tag type for {@link FileLockContent}. + */ + public enum Tag { + /** + * Empty type to indicate no lock. + */ + UNLOCKED, + /** + * A lock held by a single user. + */ + SINGLE_USER, // SingleUserLock + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Empty type to indicate no lock. + */ + public static final FileLockContent UNLOCKED = new FileLockContent().withTag(Tag.UNLOCKED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final FileLockContent OTHER = new FileLockContent().withTag(Tag.OTHER); + + private Tag _tag; + private SingleUserLock singleUserValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FileLockContent() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private FileLockContent withTag(Tag _tag) { + FileLockContent result = new FileLockContent(); + result._tag = _tag; + return result; + } + + /** + * + * @param singleUserValue A lock held by a single user. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FileLockContent withTagAndSingleUser(Tag _tag, SingleUserLock singleUserValue) { + FileLockContent result = new FileLockContent(); + result._tag = _tag; + result.singleUserValue = singleUserValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FileLockContent}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#UNLOCKED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#UNLOCKED}, + * {@code false} otherwise. + */ + public boolean isUnlocked() { + return this._tag == Tag.UNLOCKED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SINGLE_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SINGLE_USER}, {@code false} otherwise. + */ + public boolean isSingleUser() { + return this._tag == Tag.SINGLE_USER; + } + + /** + * Returns an instance of {@code FileLockContent} that has its tag set to + * {@link Tag#SINGLE_USER}. + * + *

A lock held by a single user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileLockContent} with its tag set to {@link + * Tag#SINGLE_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FileLockContent singleUser(SingleUserLock value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FileLockContent().withTagAndSingleUser(Tag.SINGLE_USER, value); + } + + /** + * A lock held by a single user. + * + *

This instance must be tagged as {@link Tag#SINGLE_USER}.

+ * + * @return The {@link SingleUserLock} value associated with this instance if + * {@link #isSingleUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isSingleUser} is {@code false}. + */ + public SingleUserLock getSingleUserValue() { + if (this._tag != Tag.SINGLE_USER) { + throw new IllegalStateException("Invalid tag: required Tag.SINGLE_USER, but was Tag." + this._tag.name()); + } + return singleUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.singleUserValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FileLockContent) { + FileLockContent other = (FileLockContent) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case UNLOCKED: + return true; + case SINGLE_USER: + return (this.singleUserValue == other.singleUserValue) || (this.singleUserValue.equals(other.singleUserValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockContent value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case UNLOCKED: { + g.writeString("unlocked"); + break; + } + case SINGLE_USER: { + g.writeStartObject(); + writeTag("single_user", g); + SingleUserLock.Serializer.INSTANCE.serialize(value.singleUserValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileLockContent deserialize(JsonParser p) throws IOException, JsonParseException { + FileLockContent value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unlocked".equals(tag)) { + value = FileLockContent.UNLOCKED; + } + else if ("single_user".equals(tag)) { + SingleUserLock fieldValue = null; + fieldValue = SingleUserLock.Serializer.INSTANCE.deserialize(p, true); + value = FileLockContent.singleUser(fieldValue); + } + else { + value = FileLockContent.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLockMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLockMetadata.java new file mode 100644 index 000000000..11f3f2376 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileLockMetadata.java @@ -0,0 +1,337 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class FileLockMetadata { + // struct files.FileLockMetadata (files.stone) + + @Nullable + protected final Boolean isLockholder; + @Nullable + protected final String lockholderName; + @Nullable + protected final String lockholderAccountId; + @Nullable + protected final Date created; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param isLockholder True if caller holds the file lock. + * @param lockholderName The display name of the lock holder. + * @param lockholderAccountId The account ID of the lock holder if known. + * Must have length of at least 40 and have length of at most 40. + * @param created The timestamp of the lock was created. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLockMetadata(@Nullable Boolean isLockholder, @Nullable String lockholderName, @Nullable String lockholderAccountId, @Nullable Date created) { + this.isLockholder = isLockholder; + this.lockholderName = lockholderName; + if (lockholderAccountId != null) { + if (lockholderAccountId.length() < 40) { + throw new IllegalArgumentException("String 'lockholderAccountId' is shorter than 40"); + } + if (lockholderAccountId.length() > 40) { + throw new IllegalArgumentException("String 'lockholderAccountId' is longer than 40"); + } + } + this.lockholderAccountId = lockholderAccountId; + this.created = LangUtil.truncateMillis(created); + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public FileLockMetadata() { + this(null, null, null, null); + } + + /** + * True if caller holds the file lock. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsLockholder() { + return isLockholder; + } + + /** + * The display name of the lock holder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLockholderName() { + return lockholderName; + } + + /** + * The account ID of the lock holder if known. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLockholderAccountId() { + return lockholderAccountId; + } + + /** + * The timestamp of the lock was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link FileLockMetadata}. + */ + public static class Builder { + + protected Boolean isLockholder; + protected String lockholderName; + protected String lockholderAccountId; + protected Date created; + + protected Builder() { + this.isLockholder = null; + this.lockholderName = null; + this.lockholderAccountId = null; + this.created = null; + } + + /** + * Set value for optional field. + * + * @param isLockholder True if caller holds the file lock. + * + * @return this builder + */ + public Builder withIsLockholder(Boolean isLockholder) { + this.isLockholder = isLockholder; + return this; + } + + /** + * Set value for optional field. + * + * @param lockholderName The display name of the lock holder. + * + * @return this builder + */ + public Builder withLockholderName(String lockholderName) { + this.lockholderName = lockholderName; + return this; + } + + /** + * Set value for optional field. + * + * @param lockholderAccountId The account ID of the lock holder if + * known. Must have length of at least 40 and have length of at most + * 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLockholderAccountId(String lockholderAccountId) { + if (lockholderAccountId != null) { + if (lockholderAccountId.length() < 40) { + throw new IllegalArgumentException("String 'lockholderAccountId' is shorter than 40"); + } + if (lockholderAccountId.length() > 40) { + throw new IllegalArgumentException("String 'lockholderAccountId' is longer than 40"); + } + } + this.lockholderAccountId = lockholderAccountId; + return this; + } + + /** + * Set value for optional field. + * + * @param created The timestamp of the lock was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + this.created = LangUtil.truncateMillis(created); + return this; + } + + /** + * Builds an instance of {@link FileLockMetadata} configured with this + * builder's values + * + * @return new instance of {@link FileLockMetadata} + */ + public FileLockMetadata build() { + return new FileLockMetadata(isLockholder, lockholderName, lockholderAccountId, created); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isLockholder, + this.lockholderName, + this.lockholderAccountId, + this.created + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLockMetadata other = (FileLockMetadata) obj; + return ((this.isLockholder == other.isLockholder) || (this.isLockholder != null && this.isLockholder.equals(other.isLockholder))) + && ((this.lockholderName == other.lockholderName) || (this.lockholderName != null && this.lockholderName.equals(other.lockholderName))) + && ((this.lockholderAccountId == other.lockholderAccountId) || (this.lockholderAccountId != null && this.lockholderAccountId.equals(other.lockholderAccountId))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.isLockholder != null) { + g.writeFieldName("is_lockholder"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isLockholder, g); + } + if (value.lockholderName != null) { + g.writeFieldName("lockholder_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.lockholderName, g); + } + if (value.lockholderAccountId != null) { + g.writeFieldName("lockholder_account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.lockholderAccountId, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLockMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLockMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isLockholder = null; + String f_lockholderName = null; + String f_lockholderAccountId = null; + Date f_created = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_lockholder".equals(field)) { + f_isLockholder = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("lockholder_name".equals(field)) { + f_lockholderName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("lockholder_account_id".equals(field)) { + f_lockholderAccountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileLockMetadata(f_isLockholder, f_lockholderName, f_lockholderAccountId, f_created); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileMetadata.java new file mode 100644 index 000000000..5805519ed --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileMetadata.java @@ -0,0 +1,1033 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.fileproperties.PropertyGroup; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class FileMetadata extends Metadata { + // struct files.FileMetadata (files.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final Date clientModified; + @Nonnull + protected final Date serverModified; + @Nonnull + protected final String rev; + protected final long size; + @Nullable + protected final MediaInfo mediaInfo; + @Nullable + protected final SymlinkInfo symlinkInfo; + @Nullable + protected final FileSharingInfo sharingInfo; + protected final boolean isDownloadable; + @Nullable + protected final ExportInfo exportInfo; + @Nullable + protected final List propertyGroups; + @Nullable + protected final Boolean hasExplicitSharedMembers; + @Nullable + protected final String contentHash; + @Nullable + protected final FileLockMetadata fileLockInfo; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param id A unique identifier for the file. Must have length of at least + * 1 and not be {@code null}. + * @param clientModified For files, this is the modification time set by + * the desktop client when the file was added to Dropbox. Since this + * time is not verified (the Dropbox server stores whatever the desktop + * client sends up), this should only be used for display purposes (such + * as sorting) and not, for example, to determine if a file has changed + * or not. Must not be {@code null}. + * @param serverModified The last time the file was modified on Dropbox. + * Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * @param size The file size in bytes. + * @param pathLower The lowercased full path in the user's Dropbox. This + * always starts with a slash. This field will be null if the file or + * folder is not mounted. + * @param pathDisplay The cased path to be used for display purposes only. + * In rare instances the casing will not correctly match the user's + * filesystem, but this behavior will match the path provided in the + * Core API v1, and at least the last path component will have the + * correct casing. Changes to only the casing of paths won't be returned + * by {@link DbxAppFilesRequests#listFolderContinue(String)}. This field + * will be null if the file or folder is not mounted. + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * @param previewUrl The preview URL of the file. + * @param mediaInfo Additional information if the file is a photo or video. + * This field will not be set on entries returned by {@link + * DbxAppFilesRequests#listFolder(String)}, {@link + * DbxAppFilesRequests#listFolderContinue(String)}, or {@link + * DbxUserFilesRequests#getThumbnailBatch(List)}, starting December 2, + * 2019. + * @param symlinkInfo Set if this file is a symlink. + * @param sharingInfo Set if this file is contained in a shared folder. + * @param isDownloadable If true, file can be downloaded directly; else the + * file must be exported. + * @param exportInfo Information about format this file can be exported to. + * This filed must be set if {@link FileMetadata#getIsDownloadable} is + * set to false. + * @param propertyGroups Additional information if the file has custom + * properties with the property template specified. Must not contain a + * {@code null} item. + * @param hasExplicitSharedMembers This flag will only be present if + * include_has_explicit_shared_members is true in {@link + * DbxAppFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#getMetadata(String)}. If this flag is present, + * it will be true if this file has any explicit shared members. This + * is different from sharing_info in that this could be true in the + * case where a file has explicit members but is not contained within a + * shared folder. + * @param contentHash A hash of the file content. This field can be used to + * verify data integrity. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * @param fileLockInfo If present, the metadata associated with the file's + * current lock. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMetadata(@Nonnull String name, @Nonnull String id, @Nonnull Date clientModified, @Nonnull Date serverModified, @Nonnull String rev, long size, @Nullable String pathLower, @Nullable String pathDisplay, @Nullable String parentSharedFolderId, @Nullable String previewUrl, @Nullable MediaInfo mediaInfo, @Nullable SymlinkInfo symlinkInfo, @Nullable FileSharingInfo sharingInfo, boolean isDownloadable, @Nullable ExportInfo exportInfo, @Nullable List propertyGroups, @Nullable Boolean hasExplicitSharedMembers, @Nullable String contentHash, @Nullable FileLockMetadata fileLockInfo) { + super(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl); + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + this.id = id; + if (clientModified == null) { + throw new IllegalArgumentException("Required value for 'clientModified' is null"); + } + this.clientModified = LangUtil.truncateMillis(clientModified); + if (serverModified == null) { + throw new IllegalArgumentException("Required value for 'serverModified' is null"); + } + this.serverModified = LangUtil.truncateMillis(serverModified); + if (rev == null) { + throw new IllegalArgumentException("Required value for 'rev' is null"); + } + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + this.rev = rev; + this.size = size; + this.mediaInfo = mediaInfo; + this.symlinkInfo = symlinkInfo; + this.sharingInfo = sharingInfo; + this.isDownloadable = isDownloadable; + this.exportInfo = exportInfo; + if (propertyGroups != null) { + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + } + this.propertyGroups = propertyGroups; + this.hasExplicitSharedMembers = hasExplicitSharedMembers; + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + this.fileLockInfo = fileLockInfo; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param id A unique identifier for the file. Must have length of at least + * 1 and not be {@code null}. + * @param clientModified For files, this is the modification time set by + * the desktop client when the file was added to Dropbox. Since this + * time is not verified (the Dropbox server stores whatever the desktop + * client sends up), this should only be used for display purposes (such + * as sorting) and not, for example, to determine if a file has changed + * or not. Must not be {@code null}. + * @param serverModified The last time the file was modified on Dropbox. + * Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * @param size The file size in bytes. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMetadata(@Nonnull String name, @Nonnull String id, @Nonnull Date clientModified, @Nonnull Date serverModified, @Nonnull String rev, long size) { + this(name, id, clientModified, serverModified, rev, size, null, null, null, null, null, null, null, true, null, null, null, null, null); + } + + /** + * The last component of the path (including extension). This never contains + * a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * A unique identifier for the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * For files, this is the modification time set by the desktop client when + * the file was added to Dropbox. Since this time is not verified (the + * Dropbox server stores whatever the desktop client sends up), this should + * only be used for display purposes (such as sorting) and not, for example, + * to determine if a file has changed or not. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getClientModified() { + return clientModified; + } + + /** + * The last time the file was modified on Dropbox. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getServerModified() { + return serverModified; + } + + /** + * A unique identifier for the current revision of a file. This field is the + * same rev as elsewhere in the API and can be used to detect changes and + * avoid conflicts. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRev() { + return rev; + } + + /** + * The file size in bytes. + * + * @return value for this field. + */ + public long getSize() { + return size; + } + + /** + * The lowercased full path in the user's Dropbox. This always starts with a + * slash. This field will be null if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The cased path to be used for display purposes only. In rare instances + * the casing will not correctly match the user's filesystem, but this + * behavior will match the path provided in the Core API v1, and at least + * the last path component will have the correct casing. Changes to only the + * casing of paths won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will be null + * if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathDisplay() { + return pathDisplay; + } + + /** + * Please use {@link FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The preview URL of the file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviewUrl() { + return previewUrl; + } + + /** + * Additional information if the file is a photo or video. This field will + * not be set on entries returned by {@link + * DbxAppFilesRequests#listFolder(String)}, {@link + * DbxAppFilesRequests#listFolderContinue(String)}, or {@link + * DbxUserFilesRequests#getThumbnailBatch(List)}, starting December 2, 2019. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MediaInfo getMediaInfo() { + return mediaInfo; + } + + /** + * Set if this file is a symlink. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SymlinkInfo getSymlinkInfo() { + return symlinkInfo; + } + + /** + * Set if this file is contained in a shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileSharingInfo getSharingInfo() { + return sharingInfo; + } + + /** + * If true, file can be downloaded directly; else the file must be exported. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIsDownloadable() { + return isDownloadable; + } + + /** + * Information about format this file can be exported to. This filed must be + * set if {@link FileMetadata#getIsDownloadable} is set to false. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ExportInfo getExportInfo() { + return exportInfo; + } + + /** + * Additional information if the file has custom properties with the + * property template specified. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPropertyGroups() { + return propertyGroups; + } + + /** + * This flag will only be present if include_has_explicit_shared_members is + * true in {@link DbxAppFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#getMetadata(String)}. If this flag is present, it + * will be true if this file has any explicit shared members. This is + * different from sharing_info in that this could be true in the case where + * a file has explicit members but is not contained within a shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getHasExplicitSharedMembers() { + return hasExplicitSharedMembers; + } + + /** + * A hash of the file content. This field can be used to verify data + * integrity. For more information see our Content + * hash page. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getContentHash() { + return contentHash; + } + + /** + * If present, the metadata associated with the file's current lock. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileLockMetadata getFileLockInfo() { + return fileLockInfo; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param id A unique identifier for the file. Must have length of at least + * 1 and not be {@code null}. + * @param clientModified For files, this is the modification time set by + * the desktop client when the file was added to Dropbox. Since this + * time is not verified (the Dropbox server stores whatever the desktop + * client sends up), this should only be used for display purposes (such + * as sorting) and not, for example, to determine if a file has changed + * or not. Must not be {@code null}. + * @param serverModified The last time the file was modified on Dropbox. + * Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * @param size The file size in bytes. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name, String id, Date clientModified, Date serverModified, String rev, long size) { + return new Builder(name, id, clientModified, serverModified, rev, size); + } + + /** + * Builder for {@link FileMetadata}. + */ + public static class Builder extends Metadata.Builder { + protected final String id; + protected final Date clientModified; + protected final Date serverModified; + protected final String rev; + protected final long size; + + protected MediaInfo mediaInfo; + protected SymlinkInfo symlinkInfo; + protected FileSharingInfo sharingInfo; + protected boolean isDownloadable; + protected ExportInfo exportInfo; + protected List propertyGroups; + protected Boolean hasExplicitSharedMembers; + protected String contentHash; + protected FileLockMetadata fileLockInfo; + + protected Builder(String name, String id, Date clientModified, Date serverModified, String rev, long size) { + super(name); + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + this.id = id; + if (clientModified == null) { + throw new IllegalArgumentException("Required value for 'clientModified' is null"); + } + this.clientModified = LangUtil.truncateMillis(clientModified); + if (serverModified == null) { + throw new IllegalArgumentException("Required value for 'serverModified' is null"); + } + this.serverModified = LangUtil.truncateMillis(serverModified); + if (rev == null) { + throw new IllegalArgumentException("Required value for 'rev' is null"); + } + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + this.rev = rev; + this.size = size; + this.mediaInfo = null; + this.symlinkInfo = null; + this.sharingInfo = null; + this.isDownloadable = true; + this.exportInfo = null; + this.propertyGroups = null; + this.hasExplicitSharedMembers = null; + this.contentHash = null; + this.fileLockInfo = null; + } + + /** + * Set value for optional field. + * + * @param mediaInfo Additional information if the file is a photo or + * video. This field will not be set on entries returned by {@link + * DbxAppFilesRequests#listFolder(String)}, {@link + * DbxAppFilesRequests#listFolderContinue(String)}, or {@link + * DbxUserFilesRequests#getThumbnailBatch(List)}, starting December + * 2, 2019. + * + * @return this builder + */ + public Builder withMediaInfo(MediaInfo mediaInfo) { + this.mediaInfo = mediaInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param symlinkInfo Set if this file is a symlink. + * + * @return this builder + */ + public Builder withSymlinkInfo(SymlinkInfo symlinkInfo) { + this.symlinkInfo = symlinkInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param sharingInfo Set if this file is contained in a shared folder. + * + * @return this builder + */ + public Builder withSharingInfo(FileSharingInfo sharingInfo) { + this.sharingInfo = sharingInfo; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param isDownloadable If true, file can be downloaded directly; else + * the file must be exported. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withIsDownloadable(Boolean isDownloadable) { + if (isDownloadable != null) { + this.isDownloadable = isDownloadable; + } + else { + this.isDownloadable = true; + } + return this; + } + + /** + * Set value for optional field. + * + * @param exportInfo Information about format this file can be exported + * to. This filed must be set if {@link + * FileMetadata#getIsDownloadable} is set to false. + * + * @return this builder + */ + public Builder withExportInfo(ExportInfo exportInfo) { + this.exportInfo = exportInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param propertyGroups Additional information if the file has custom + * properties with the property template specified. Must not contain + * a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPropertyGroups(List propertyGroups) { + if (propertyGroups != null) { + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + } + this.propertyGroups = propertyGroups; + return this; + } + + /** + * Set value for optional field. + * + * @param hasExplicitSharedMembers This flag will only be present if + * include_has_explicit_shared_members is true in {@link + * DbxAppFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#getMetadata(String)}. If this flag is + * present, it will be true if this file has any explicit shared + * members. This is different from sharing_info in that this could + * be true in the case where a file has explicit members but is not + * contained within a shared folder. + * + * @return this builder + */ + public Builder withHasExplicitSharedMembers(Boolean hasExplicitSharedMembers) { + this.hasExplicitSharedMembers = hasExplicitSharedMembers; + return this; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content. This field can be + * used to verify data integrity. For more information see our Content + * hash page. Must have length of at least 64 and have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withContentHash(String contentHash) { + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + return this; + } + + /** + * Set value for optional field. + * + * @param fileLockInfo If present, the metadata associated with the + * file's current lock. + * + * @return this builder + */ + public Builder withFileLockInfo(FileLockMetadata fileLockInfo) { + this.fileLockInfo = fileLockInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lowercased full path in the user's Dropbox. + * This always starts with a slash. This field will be null if the + * file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + super.withPathLower(pathLower); + return this; + } + + /** + * Set value for optional field. + * + * @param pathDisplay The cased path to be used for display purposes + * only. In rare instances the casing will not correctly match the + * user's filesystem, but this behavior will match the path provided + * in the Core API v1, and at least the last path component will + * have the correct casing. Changes to only the casing of paths + * won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will + * be null if the file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathDisplay(String pathDisplay) { + super.withPathDisplay(pathDisplay); + return this; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + super.withParentSharedFolderId(parentSharedFolderId); + return this; + } + + /** + * Set value for optional field. + * + * @param previewUrl The preview URL of the file. + * + * @return this builder + */ + public Builder withPreviewUrl(String previewUrl) { + super.withPreviewUrl(previewUrl); + return this; + } + + /** + * Builds an instance of {@link FileMetadata} configured with this + * builder's values + * + * @return new instance of {@link FileMetadata} + */ + public FileMetadata build() { + return new FileMetadata(name, id, clientModified, serverModified, rev, size, pathLower, pathDisplay, parentSharedFolderId, previewUrl, mediaInfo, symlinkInfo, sharingInfo, isDownloadable, exportInfo, propertyGroups, hasExplicitSharedMembers, contentHash, fileLockInfo); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.clientModified, + this.serverModified, + this.rev, + this.size, + this.mediaInfo, + this.symlinkInfo, + this.sharingInfo, + this.isDownloadable, + this.exportInfo, + this.propertyGroups, + this.hasExplicitSharedMembers, + this.contentHash, + this.fileLockInfo + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileMetadata other = (FileMetadata) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.clientModified == other.clientModified) || (this.clientModified.equals(other.clientModified))) + && ((this.serverModified == other.serverModified) || (this.serverModified.equals(other.serverModified))) + && ((this.rev == other.rev) || (this.rev.equals(other.rev))) + && (this.size == other.size) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.pathDisplay == other.pathDisplay) || (this.pathDisplay != null && this.pathDisplay.equals(other.pathDisplay))) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.previewUrl == other.previewUrl) || (this.previewUrl != null && this.previewUrl.equals(other.previewUrl))) + && ((this.mediaInfo == other.mediaInfo) || (this.mediaInfo != null && this.mediaInfo.equals(other.mediaInfo))) + && ((this.symlinkInfo == other.symlinkInfo) || (this.symlinkInfo != null && this.symlinkInfo.equals(other.symlinkInfo))) + && ((this.sharingInfo == other.sharingInfo) || (this.sharingInfo != null && this.sharingInfo.equals(other.sharingInfo))) + && (this.isDownloadable == other.isDownloadable) + && ((this.exportInfo == other.exportInfo) || (this.exportInfo != null && this.exportInfo.equals(other.exportInfo))) + && ((this.propertyGroups == other.propertyGroups) || (this.propertyGroups != null && this.propertyGroups.equals(other.propertyGroups))) + && ((this.hasExplicitSharedMembers == other.hasExplicitSharedMembers) || (this.hasExplicitSharedMembers != null && this.hasExplicitSharedMembers.equals(other.hasExplicitSharedMembers))) + && ((this.contentHash == other.contentHash) || (this.contentHash != null && this.contentHash.equals(other.contentHash))) + && ((this.fileLockInfo == other.fileLockInfo) || (this.fileLockInfo != null && this.fileLockInfo.equals(other.fileLockInfo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("file", g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("client_modified"); + StoneSerializers.timestamp().serialize(value.clientModified, g); + g.writeFieldName("server_modified"); + StoneSerializers.timestamp().serialize(value.serverModified, g); + g.writeFieldName("rev"); + StoneSerializers.string().serialize(value.rev, g); + g.writeFieldName("size"); + StoneSerializers.uInt64().serialize(value.size, g); + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.pathDisplay != null) { + g.writeFieldName("path_display"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathDisplay, g); + } + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.previewUrl != null) { + g.writeFieldName("preview_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previewUrl, g); + } + if (value.mediaInfo != null) { + g.writeFieldName("media_info"); + StoneSerializers.nullable(MediaInfo.Serializer.INSTANCE).serialize(value.mediaInfo, g); + } + if (value.symlinkInfo != null) { + g.writeFieldName("symlink_info"); + StoneSerializers.nullableStruct(SymlinkInfo.Serializer.INSTANCE).serialize(value.symlinkInfo, g); + } + if (value.sharingInfo != null) { + g.writeFieldName("sharing_info"); + StoneSerializers.nullableStruct(FileSharingInfo.Serializer.INSTANCE).serialize(value.sharingInfo, g); + } + g.writeFieldName("is_downloadable"); + StoneSerializers.boolean_().serialize(value.isDownloadable, g); + if (value.exportInfo != null) { + g.writeFieldName("export_info"); + StoneSerializers.nullableStruct(ExportInfo.Serializer.INSTANCE).serialize(value.exportInfo, g); + } + if (value.propertyGroups != null) { + g.writeFieldName("property_groups"); + StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).serialize(value.propertyGroups, g); + } + if (value.hasExplicitSharedMembers != null) { + g.writeFieldName("has_explicit_shared_members"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.hasExplicitSharedMembers, g); + } + if (value.contentHash != null) { + g.writeFieldName("content_hash"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.contentHash, g); + } + if (value.fileLockInfo != null) { + g.writeFieldName("file_lock_info"); + StoneSerializers.nullableStruct(FileLockMetadata.Serializer.INSTANCE).serialize(value.fileLockInfo, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("file".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + String f_id = null; + Date f_clientModified = null; + Date f_serverModified = null; + String f_rev = null; + Long f_size = null; + String f_pathLower = null; + String f_pathDisplay = null; + String f_parentSharedFolderId = null; + String f_previewUrl = null; + MediaInfo f_mediaInfo = null; + SymlinkInfo f_symlinkInfo = null; + FileSharingInfo f_sharingInfo = null; + Boolean f_isDownloadable = true; + ExportInfo f_exportInfo = null; + List f_propertyGroups = null; + Boolean f_hasExplicitSharedMembers = null; + String f_contentHash = null; + FileLockMetadata f_fileLockInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("client_modified".equals(field)) { + f_clientModified = StoneSerializers.timestamp().deserialize(p); + } + else if ("server_modified".equals(field)) { + f_serverModified = StoneSerializers.timestamp().deserialize(p); + } + else if ("rev".equals(field)) { + f_rev = StoneSerializers.string().deserialize(p); + } + else if ("size".equals(field)) { + f_size = StoneSerializers.uInt64().deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_display".equals(field)) { + f_pathDisplay = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("preview_url".equals(field)) { + f_previewUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("media_info".equals(field)) { + f_mediaInfo = StoneSerializers.nullable(MediaInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("symlink_info".equals(field)) { + f_symlinkInfo = StoneSerializers.nullableStruct(SymlinkInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("sharing_info".equals(field)) { + f_sharingInfo = StoneSerializers.nullableStruct(FileSharingInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("is_downloadable".equals(field)) { + f_isDownloadable = StoneSerializers.boolean_().deserialize(p); + } + else if ("export_info".equals(field)) { + f_exportInfo = StoneSerializers.nullableStruct(ExportInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("property_groups".equals(field)) { + f_propertyGroups = StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).deserialize(p); + } + else if ("has_explicit_shared_members".equals(field)) { + f_hasExplicitSharedMembers = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("content_hash".equals(field)) { + f_contentHash = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_lock_info".equals(field)) { + f_fileLockInfo = StoneSerializers.nullableStruct(FileLockMetadata.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_clientModified == null) { + throw new JsonParseException(p, "Required field \"client_modified\" missing."); + } + if (f_serverModified == null) { + throw new JsonParseException(p, "Required field \"server_modified\" missing."); + } + if (f_rev == null) { + throw new JsonParseException(p, "Required field \"rev\" missing."); + } + if (f_size == null) { + throw new JsonParseException(p, "Required field \"size\" missing."); + } + value = new FileMetadata(f_name, f_id, f_clientModified, f_serverModified, f_rev, f_size, f_pathLower, f_pathDisplay, f_parentSharedFolderId, f_previewUrl, f_mediaInfo, f_symlinkInfo, f_sharingInfo, f_isDownloadable, f_exportInfo, f_propertyGroups, f_hasExplicitSharedMembers, f_contentHash, f_fileLockInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileOpsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileOpsResult.java new file mode 100644 index 000000000..4badce71a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileOpsResult.java @@ -0,0 +1,103 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +public class FileOpsResult { + // struct files.FileOpsResult (files.stone) + + + public FileOpsResult() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileOpsResult other = (FileOpsResult) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileOpsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileOpsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileOpsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileOpsResult(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileSharingInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileSharingInfo.java new file mode 100644 index 000000000..219bf7bd6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileSharingInfo.java @@ -0,0 +1,233 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Sharing info for a file which is contained by a shared folder. + */ +public class FileSharingInfo extends SharingInfo { + // struct files.FileSharingInfo (files.stone) + + @Nonnull + protected final String parentSharedFolderId; + @Nullable + protected final String modifiedBy; + + /** + * Sharing info for a file which is contained by a shared folder. + * + * @param readOnly True if the file or folder is inside a read-only shared + * folder. + * @param parentSharedFolderId ID of shared folder that holds this file. + * Must match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param modifiedBy The last user who modified the file. This field will + * be null if the user's account has been deleted. Must have length of + * at least 40 and have length of at most 40. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileSharingInfo(boolean readOnly, @Nonnull String parentSharedFolderId, @Nullable String modifiedBy) { + super(readOnly); + if (parentSharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'parentSharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + this.parentSharedFolderId = parentSharedFolderId; + if (modifiedBy != null) { + if (modifiedBy.length() < 40) { + throw new IllegalArgumentException("String 'modifiedBy' is shorter than 40"); + } + if (modifiedBy.length() > 40) { + throw new IllegalArgumentException("String 'modifiedBy' is longer than 40"); + } + } + this.modifiedBy = modifiedBy; + } + + /** + * Sharing info for a file which is contained by a shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param readOnly True if the file or folder is inside a read-only shared + * folder. + * @param parentSharedFolderId ID of shared folder that holds this file. + * Must match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileSharingInfo(boolean readOnly, @Nonnull String parentSharedFolderId) { + this(readOnly, parentSharedFolderId, null); + } + + /** + * True if the file or folder is inside a read-only shared folder. + * + * @return value for this field. + */ + public boolean getReadOnly() { + return readOnly; + } + + /** + * ID of shared folder that holds this file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The last user who modified the file. This field will be null if the + * user's account has been deleted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getModifiedBy() { + return modifiedBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.parentSharedFolderId, + this.modifiedBy + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileSharingInfo other = (FileSharingInfo) obj; + return (this.readOnly == other.readOnly) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.modifiedBy == other.modifiedBy) || (this.modifiedBy != null && this.modifiedBy.equals(other.modifiedBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileSharingInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("read_only"); + StoneSerializers.boolean_().serialize(value.readOnly, g); + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.string().serialize(value.parentSharedFolderId, g); + if (value.modifiedBy != null) { + g.writeFieldName("modified_by"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.modifiedBy, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileSharingInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileSharingInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_readOnly = null; + String f_parentSharedFolderId = null; + String f_modifiedBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("read_only".equals(field)) { + f_readOnly = StoneSerializers.boolean_().deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("modified_by".equals(field)) { + f_modifiedBy = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_readOnly == null) { + throw new JsonParseException(p, "Required field \"read_only\" missing."); + } + if (f_parentSharedFolderId == null) { + throw new JsonParseException(p, "Required field \"parent_shared_folder_id\" missing."); + } + value = new FileSharingInfo(f_readOnly, f_parentSharedFolderId, f_modifiedBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileStatus.java new file mode 100644 index 000000000..fa0f693f9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FileStatus.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum FileStatus { + // union files.FileStatus (files.stone) + ACTIVE, + DELETED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACTIVE: { + g.writeString("active"); + break; + } + case DELETED: { + g.writeString("deleted"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileStatus deserialize(JsonParser p) throws IOException, JsonParseException { + FileStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("active".equals(tag)) { + value = FileStatus.ACTIVE; + } + else if ("deleted".equals(tag)) { + value = FileStatus.DELETED; + } + else { + value = FileStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FolderMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FolderMetadata.java new file mode 100644 index 000000000..afd643db2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FolderMetadata.java @@ -0,0 +1,572 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.fileproperties.PropertyGroup; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class FolderMetadata extends Metadata { + // struct files.FolderMetadata (files.stone) + + @Nonnull + protected final String id; + @Nullable + protected final String sharedFolderId; + @Nullable + protected final FolderSharingInfo sharingInfo; + @Nullable + protected final List propertyGroups; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param id A unique identifier for the folder. Must have length of at + * least 1 and not be {@code null}. + * @param pathLower The lowercased full path in the user's Dropbox. This + * always starts with a slash. This field will be null if the file or + * folder is not mounted. + * @param pathDisplay The cased path to be used for display purposes only. + * In rare instances the casing will not correctly match the user's + * filesystem, but this behavior will match the path provided in the + * Core API v1, and at least the last path component will have the + * correct casing. Changes to only the casing of paths won't be returned + * by {@link DbxAppFilesRequests#listFolderContinue(String)}. This field + * will be null if the file or folder is not mounted. + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * @param previewUrl The preview URL of the file. + * @param sharedFolderId Please use {@link FolderMetadata#getSharingInfo} + * instead. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * @param sharingInfo Set if the folder is contained in a shared folder or + * is a shared folder mount point. + * @param propertyGroups Additional information if the file has custom + * properties with the property template specified. Note that only + * properties associated with user-owned templates, not team-owned + * templates, can be attached to folders. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderMetadata(@Nonnull String name, @Nonnull String id, @Nullable String pathLower, @Nullable String pathDisplay, @Nullable String parentSharedFolderId, @Nullable String previewUrl, @Nullable String sharedFolderId, @Nullable FolderSharingInfo sharingInfo, @Nullable List propertyGroups) { + super(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl); + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + this.id = id; + if (sharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + } + this.sharedFolderId = sharedFolderId; + this.sharingInfo = sharingInfo; + if (propertyGroups != null) { + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + } + this.propertyGroups = propertyGroups; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param id A unique identifier for the folder. Must have length of at + * least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderMetadata(@Nonnull String name, @Nonnull String id) { + this(name, id, null, null, null, null, null, null, null); + } + + /** + * The last component of the path (including extension). This never contains + * a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * A unique identifier for the folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The lowercased full path in the user's Dropbox. This always starts with a + * slash. This field will be null if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The cased path to be used for display purposes only. In rare instances + * the casing will not correctly match the user's filesystem, but this + * behavior will match the path provided in the Core API v1, and at least + * the last path component will have the correct casing. Changes to only the + * casing of paths won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will be null + * if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathDisplay() { + return pathDisplay; + } + + /** + * Please use {@link FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The preview URL of the file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviewUrl() { + return previewUrl; + } + + /** + * Please use {@link FolderMetadata#getSharingInfo} instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * Set if the folder is contained in a shared folder or is a shared folder + * mount point. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FolderSharingInfo getSharingInfo() { + return sharingInfo; + } + + /** + * Additional information if the file has custom properties with the + * property template specified. Note that only properties associated with + * user-owned templates, not team-owned templates, can be attached to + * folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPropertyGroups() { + return propertyGroups; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param id A unique identifier for the folder. Must have length of at + * least 1 and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name, String id) { + return new Builder(name, id); + } + + /** + * Builder for {@link FolderMetadata}. + */ + public static class Builder extends Metadata.Builder { + protected final String id; + + protected String sharedFolderId; + protected FolderSharingInfo sharingInfo; + protected List propertyGroups; + + protected Builder(String name, String id) { + super(name); + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + this.id = id; + this.sharedFolderId = null; + this.sharingInfo = null; + this.propertyGroups = null; + } + + /** + * Set value for optional field. + * + * @param sharedFolderId Please use {@link + * FolderMetadata#getSharingInfo} instead. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSharedFolderId(String sharedFolderId) { + if (sharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + } + this.sharedFolderId = sharedFolderId; + return this; + } + + /** + * Set value for optional field. + * + * @param sharingInfo Set if the folder is contained in a shared folder + * or is a shared folder mount point. + * + * @return this builder + */ + public Builder withSharingInfo(FolderSharingInfo sharingInfo) { + this.sharingInfo = sharingInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param propertyGroups Additional information if the file has custom + * properties with the property template specified. Note that only + * properties associated with user-owned templates, not team-owned + * templates, can be attached to folders. Must not contain a {@code + * null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPropertyGroups(List propertyGroups) { + if (propertyGroups != null) { + for (PropertyGroup x : propertyGroups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'propertyGroups' is null"); + } + } + } + this.propertyGroups = propertyGroups; + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lowercased full path in the user's Dropbox. + * This always starts with a slash. This field will be null if the + * file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + super.withPathLower(pathLower); + return this; + } + + /** + * Set value for optional field. + * + * @param pathDisplay The cased path to be used for display purposes + * only. In rare instances the casing will not correctly match the + * user's filesystem, but this behavior will match the path provided + * in the Core API v1, and at least the last path component will + * have the correct casing. Changes to only the casing of paths + * won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will + * be null if the file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathDisplay(String pathDisplay) { + super.withPathDisplay(pathDisplay); + return this; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + super.withParentSharedFolderId(parentSharedFolderId); + return this; + } + + /** + * Set value for optional field. + * + * @param previewUrl The preview URL of the file. + * + * @return this builder + */ + public Builder withPreviewUrl(String previewUrl) { + super.withPreviewUrl(previewUrl); + return this; + } + + /** + * Builds an instance of {@link FolderMetadata} configured with this + * builder's values + * + * @return new instance of {@link FolderMetadata} + */ + public FolderMetadata build() { + return new FolderMetadata(name, id, pathLower, pathDisplay, parentSharedFolderId, previewUrl, sharedFolderId, sharingInfo, propertyGroups); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.sharedFolderId, + this.sharingInfo, + this.propertyGroups + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderMetadata other = (FolderMetadata) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.pathDisplay == other.pathDisplay) || (this.pathDisplay != null && this.pathDisplay.equals(other.pathDisplay))) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.previewUrl == other.previewUrl) || (this.previewUrl != null && this.previewUrl.equals(other.previewUrl))) + && ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId != null && this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.sharingInfo == other.sharingInfo) || (this.sharingInfo != null && this.sharingInfo.equals(other.sharingInfo))) + && ((this.propertyGroups == other.propertyGroups) || (this.propertyGroups != null && this.propertyGroups.equals(other.propertyGroups))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("folder", g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.pathDisplay != null) { + g.writeFieldName("path_display"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathDisplay, g); + } + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.previewUrl != null) { + g.writeFieldName("preview_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previewUrl, g); + } + if (value.sharedFolderId != null) { + g.writeFieldName("shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedFolderId, g); + } + if (value.sharingInfo != null) { + g.writeFieldName("sharing_info"); + StoneSerializers.nullableStruct(FolderSharingInfo.Serializer.INSTANCE).serialize(value.sharingInfo, g); + } + if (value.propertyGroups != null) { + g.writeFieldName("property_groups"); + StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).serialize(value.propertyGroups, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("folder".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + String f_id = null; + String f_pathLower = null; + String f_pathDisplay = null; + String f_parentSharedFolderId = null; + String f_previewUrl = null; + String f_sharedFolderId = null; + FolderSharingInfo f_sharingInfo = null; + List f_propertyGroups = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_display".equals(field)) { + f_pathDisplay = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("preview_url".equals(field)) { + f_previewUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("sharing_info".equals(field)) { + f_sharingInfo = StoneSerializers.nullableStruct(FolderSharingInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("property_groups".equals(field)) { + f_propertyGroups = StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new FolderMetadata(f_name, f_id, f_pathLower, f_pathDisplay, f_parentSharedFolderId, f_previewUrl, f_sharedFolderId, f_sharingInfo, f_propertyGroups); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FolderSharingInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FolderSharingInfo.java new file mode 100644 index 000000000..343ddb9f6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/FolderSharingInfo.java @@ -0,0 +1,407 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Sharing info for a folder which is contained in a shared folder or is a + * shared folder mount point. + */ +public class FolderSharingInfo extends SharingInfo { + // struct files.FolderSharingInfo (files.stone) + + @Nullable + protected final String parentSharedFolderId; + @Nullable + protected final String sharedFolderId; + protected final boolean traverseOnly; + protected final boolean noAccess; + + /** + * Sharing info for a folder which is contained in a shared folder or is a + * shared folder mount point. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param readOnly True if the file or folder is inside a read-only shared + * folder. + * @param parentSharedFolderId Set if the folder is contained by a shared + * folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * @param sharedFolderId If this folder is a shared folder mount point, the + * ID of the shared folder mounted at this location. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}". + * @param traverseOnly Specifies that the folder can only be traversed and + * the user can only see a limited subset of the contents of this folder + * because they don't have read access to this folder. They do, however, + * have access to some sub folder. + * @param noAccess Specifies that the folder cannot be accessed by the + * user. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderSharingInfo(boolean readOnly, @Nullable String parentSharedFolderId, @Nullable String sharedFolderId, boolean traverseOnly, boolean noAccess) { + super(readOnly); + if (parentSharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + if (sharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + } + this.sharedFolderId = sharedFolderId; + this.traverseOnly = traverseOnly; + this.noAccess = noAccess; + } + + /** + * Sharing info for a folder which is contained in a shared folder or is a + * shared folder mount point. + * + *

The default values for unset fields will be used.

+ * + * @param readOnly True if the file or folder is inside a read-only shared + * folder. + */ + public FolderSharingInfo(boolean readOnly) { + this(readOnly, null, null, false, false); + } + + /** + * True if the file or folder is inside a read-only shared folder. + * + * @return value for this field. + */ + public boolean getReadOnly() { + return readOnly; + } + + /** + * Set if the folder is contained by a shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * If this folder is a shared folder mount point, the ID of the shared + * folder mounted at this location. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * Specifies that the folder can only be traversed and the user can only see + * a limited subset of the contents of this folder because they don't have + * read access to this folder. They do, however, have access to some sub + * folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getTraverseOnly() { + return traverseOnly; + } + + /** + * Specifies that the folder cannot be accessed by the user. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getNoAccess() { + return noAccess; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param readOnly True if the file or folder is inside a read-only shared + * folder. + * + * @return builder for this class. + */ + public static Builder newBuilder(boolean readOnly) { + return new Builder(readOnly); + } + + /** + * Builder for {@link FolderSharingInfo}. + */ + public static class Builder { + protected final boolean readOnly; + + protected String parentSharedFolderId; + protected String sharedFolderId; + protected boolean traverseOnly; + protected boolean noAccess; + + protected Builder(boolean readOnly) { + this.readOnly = readOnly; + this.parentSharedFolderId = null; + this.sharedFolderId = null; + this.traverseOnly = false; + this.noAccess = false; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId Set if the folder is contained by a + * shared folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + if (parentSharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + return this; + } + + /** + * Set value for optional field. + * + * @param sharedFolderId If this folder is a shared folder mount point, + * the ID of the shared folder mounted at this location. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSharedFolderId(String sharedFolderId) { + if (sharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + } + this.sharedFolderId = sharedFolderId; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param traverseOnly Specifies that the folder can only be traversed + * and the user can only see a limited subset of the contents of + * this folder because they don't have read access to this folder. + * They do, however, have access to some sub folder. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withTraverseOnly(Boolean traverseOnly) { + if (traverseOnly != null) { + this.traverseOnly = traverseOnly; + } + else { + this.traverseOnly = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param noAccess Specifies that the folder cannot be accessed by the + * user. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withNoAccess(Boolean noAccess) { + if (noAccess != null) { + this.noAccess = noAccess; + } + else { + this.noAccess = false; + } + return this; + } + + /** + * Builds an instance of {@link FolderSharingInfo} configured with this + * builder's values + * + * @return new instance of {@link FolderSharingInfo} + */ + public FolderSharingInfo build() { + return new FolderSharingInfo(readOnly, parentSharedFolderId, sharedFolderId, traverseOnly, noAccess); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.parentSharedFolderId, + this.sharedFolderId, + this.traverseOnly, + this.noAccess + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderSharingInfo other = (FolderSharingInfo) obj; + return (this.readOnly == other.readOnly) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId != null && this.sharedFolderId.equals(other.sharedFolderId))) + && (this.traverseOnly == other.traverseOnly) + && (this.noAccess == other.noAccess) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderSharingInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("read_only"); + StoneSerializers.boolean_().serialize(value.readOnly, g); + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.sharedFolderId != null) { + g.writeFieldName("shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedFolderId, g); + } + g.writeFieldName("traverse_only"); + StoneSerializers.boolean_().serialize(value.traverseOnly, g); + g.writeFieldName("no_access"); + StoneSerializers.boolean_().serialize(value.noAccess, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderSharingInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderSharingInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_readOnly = null; + String f_parentSharedFolderId = null; + String f_sharedFolderId = null; + Boolean f_traverseOnly = false; + Boolean f_noAccess = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("read_only".equals(field)) { + f_readOnly = StoneSerializers.boolean_().deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("traverse_only".equals(field)) { + f_traverseOnly = StoneSerializers.boolean_().deserialize(p); + } + else if ("no_access".equals(field)) { + f_noAccess = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_readOnly == null) { + throw new JsonParseException(p, "Required field \"read_only\" missing."); + } + value = new FolderSharingInfo(f_readOnly, f_parentSharedFolderId, f_sharedFolderId, f_traverseOnly, f_noAccess); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceArg.java new file mode 100644 index 000000000..08de23eb7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class GetCopyReferenceArg { + // struct files.GetCopyReferenceArg (files.stone) + + @Nonnull + protected final String path; + + /** + * + * @param path The path to the file or folder you want to get a copy + * reference to. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetCopyReferenceArg(@Nonnull String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + } + + /** + * The path to the file or folder you want to get a copy reference to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetCopyReferenceArg other = (GetCopyReferenceArg) obj; + return (this.path == other.path) || (this.path.equals(other.path)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetCopyReferenceArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetCopyReferenceArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetCopyReferenceArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new GetCopyReferenceArg(f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceError.java new file mode 100644 index 000000000..e17d73fc9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceError.java @@ -0,0 +1,277 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetCopyReferenceError { + // union files.GetCopyReferenceError (files.stone) + + /** + * Discriminating tag type for {@link GetCopyReferenceError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetCopyReferenceError OTHER = new GetCopyReferenceError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetCopyReferenceError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetCopyReferenceError withTag(Tag _tag) { + GetCopyReferenceError result = new GetCopyReferenceError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetCopyReferenceError withTagAndPath(Tag _tag, LookupError pathValue) { + GetCopyReferenceError result = new GetCopyReferenceError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetCopyReferenceError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code GetCopyReferenceError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetCopyReferenceError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetCopyReferenceError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetCopyReferenceError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetCopyReferenceError) { + GetCopyReferenceError other = (GetCopyReferenceError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetCopyReferenceError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetCopyReferenceError deserialize(JsonParser p) throws IOException, JsonParseException { + GetCopyReferenceError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = GetCopyReferenceError.path(fieldValue); + } + else { + value = GetCopyReferenceError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceErrorException.java new file mode 100644 index 000000000..60a6c9198 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GetCopyReferenceError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#copyReferenceGet(String)}.

+ */ +public class GetCopyReferenceErrorException extends DbxApiException { + // exception for routes: + // 2/files/copy_reference/get + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#copyReferenceGet(String)}. + */ + public final GetCopyReferenceError errorValue; + + public GetCopyReferenceErrorException(String routeName, String requestId, LocalizedText userMessage, GetCopyReferenceError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceResult.java new file mode 100644 index 000000000..a6420c778 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceResult.java @@ -0,0 +1,212 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +public class GetCopyReferenceResult { + // struct files.GetCopyReferenceResult (files.stone) + + @Nonnull + protected final Metadata metadata; + @Nonnull + protected final String copyReference; + @Nonnull + protected final Date expires; + + /** + * + * @param metadata Metadata of the file or folder. Must not be {@code + * null}. + * @param copyReference A copy reference to the file or folder. Must not be + * {@code null}. + * @param expires The expiration date of the copy reference. This value is + * currently set to be far enough in the future so that expiration is + * effectively not an issue. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetCopyReferenceResult(@Nonnull Metadata metadata, @Nonnull String copyReference, @Nonnull Date expires) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + if (copyReference == null) { + throw new IllegalArgumentException("Required value for 'copyReference' is null"); + } + this.copyReference = copyReference; + if (expires == null) { + throw new IllegalArgumentException("Required value for 'expires' is null"); + } + this.expires = LangUtil.truncateMillis(expires); + } + + /** + * Metadata of the file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + /** + * A copy reference to the file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCopyReference() { + return copyReference; + } + + /** + * The expiration date of the copy reference. This value is currently set to + * be far enough in the future so that expiration is effectively not an + * issue. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getExpires() { + return expires; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata, + this.copyReference, + this.expires + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetCopyReferenceResult other = (GetCopyReferenceResult) obj; + return ((this.metadata == other.metadata) || (this.metadata.equals(other.metadata))) + && ((this.copyReference == other.copyReference) || (this.copyReference.equals(other.copyReference))) + && ((this.expires == other.expires) || (this.expires.equals(other.expires))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetCopyReferenceResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + g.writeFieldName("copy_reference"); + StoneSerializers.string().serialize(value.copyReference, g); + g.writeFieldName("expires"); + StoneSerializers.timestamp().serialize(value.expires, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetCopyReferenceResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetCopyReferenceResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Metadata f_metadata = null; + String f_copyReference = null; + Date f_expires = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else if ("copy_reference".equals(field)) { + f_copyReference = StoneSerializers.string().deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + if (f_copyReference == null) { + throw new JsonParseException(p, "Required field \"copy_reference\" missing."); + } + if (f_expires == null) { + throw new JsonParseException(p, "Required field \"expires\" missing."); + } + value = new GetCopyReferenceResult(f_metadata, f_copyReference, f_expires); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataArg.java new file mode 100644 index 000000000..e134a1bcd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataArg.java @@ -0,0 +1,408 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class GetMetadataArg { + // struct files.GetMetadataArg (files.stone) + + @Nonnull + protected final String path; + protected final boolean includeMediaInfo; + protected final boolean includeDeleted; + protected final boolean includeHasExplicitSharedMembers; + @Nullable + protected final TemplateFilterBase includePropertyGroups; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. + * @param includeDeleted If true, {@link DeletedMetadata} will be returned + * for deleted file or folder, otherwise {@link LookupError#NOT_FOUND} + * will be returned. + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetMetadataArg(@Nonnull String path, boolean includeMediaInfo, boolean includeDeleted, boolean includeHasExplicitSharedMembers, @Nullable TemplateFilterBase includePropertyGroups) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.includeMediaInfo = includeMediaInfo; + this.includeDeleted = includeDeleted; + this.includeHasExplicitSharedMembers = includeHasExplicitSharedMembers; + this.includePropertyGroups = includePropertyGroups; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetMetadataArg(@Nonnull String path) { + this(path, false, false, false, null); + } + + /** + * The path of a file or folder on Dropbox. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * If true, {@link FileMetadata#getMediaInfo} is set for photo and video. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeMediaInfo() { + return includeMediaInfo; + } + + /** + * If true, {@link DeletedMetadata} will be returned for deleted file or + * folder, otherwise {@link LookupError#NOT_FOUND} will be returned. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeDeleted() { + return includeDeleted; + } + + /** + * If true, the results will include a flag for each file indicating whether + * or not that file has any explicit members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeHasExplicitSharedMembers() { + return includeHasExplicitSharedMembers; + } + + /** + * If set to a valid list of template IDs, {@link + * FileMetadata#getPropertyGroups} is set if there exists property data + * associated with the file and each of the listed templates. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TemplateFilterBase getIncludePropertyGroups() { + return includePropertyGroups; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path of a file or folder on Dropbox. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link GetMetadataArg}. + */ + public static class Builder { + protected final String path; + + protected boolean includeMediaInfo; + protected boolean includeDeleted; + protected boolean includeHasExplicitSharedMembers; + protected TemplateFilterBase includePropertyGroups; + + protected Builder(String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.includeMediaInfo = false; + this.includeDeleted = false; + this.includeHasExplicitSharedMembers = false; + this.includePropertyGroups = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} + * is set for photo and video. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withIncludeMediaInfo(Boolean includeMediaInfo) { + if (includeMediaInfo != null) { + this.includeMediaInfo = includeMediaInfo; + } + else { + this.includeMediaInfo = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeDeleted If true, {@link DeletedMetadata} will be + * returned for deleted file or folder, otherwise {@link + * LookupError#NOT_FOUND} will be returned. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeDeleted(Boolean includeDeleted) { + if (includeDeleted != null) { + this.includeDeleted = includeDeleted; + } + else { + this.includeDeleted = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeHasExplicitSharedMembers If true, the results will + * include a flag for each file indicating whether or not that file + * has any explicit members. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + if (includeHasExplicitSharedMembers != null) { + this.includeHasExplicitSharedMembers = includeHasExplicitSharedMembers; + } + else { + this.includeHasExplicitSharedMembers = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public Builder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + this.includePropertyGroups = includePropertyGroups; + return this; + } + + /** + * Builds an instance of {@link GetMetadataArg} configured with this + * builder's values + * + * @return new instance of {@link GetMetadataArg} + */ + public GetMetadataArg build() { + return new GetMetadataArg(path, includeMediaInfo, includeDeleted, includeHasExplicitSharedMembers, includePropertyGroups); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.includeMediaInfo, + this.includeDeleted, + this.includeHasExplicitSharedMembers, + this.includePropertyGroups + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetMetadataArg other = (GetMetadataArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && (this.includeMediaInfo == other.includeMediaInfo) + && (this.includeDeleted == other.includeDeleted) + && (this.includeHasExplicitSharedMembers == other.includeHasExplicitSharedMembers) + && ((this.includePropertyGroups == other.includePropertyGroups) || (this.includePropertyGroups != null && this.includePropertyGroups.equals(other.includePropertyGroups))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetMetadataArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("include_media_info"); + StoneSerializers.boolean_().serialize(value.includeMediaInfo, g); + g.writeFieldName("include_deleted"); + StoneSerializers.boolean_().serialize(value.includeDeleted, g); + g.writeFieldName("include_has_explicit_shared_members"); + StoneSerializers.boolean_().serialize(value.includeHasExplicitSharedMembers, g); + if (value.includePropertyGroups != null) { + g.writeFieldName("include_property_groups"); + StoneSerializers.nullable(TemplateFilterBase.Serializer.INSTANCE).serialize(value.includePropertyGroups, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetMetadataArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetMetadataArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + Boolean f_includeMediaInfo = false; + Boolean f_includeDeleted = false; + Boolean f_includeHasExplicitSharedMembers = false; + TemplateFilterBase f_includePropertyGroups = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("include_media_info".equals(field)) { + f_includeMediaInfo = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_deleted".equals(field)) { + f_includeDeleted = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_has_explicit_shared_members".equals(field)) { + f_includeHasExplicitSharedMembers = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_property_groups".equals(field)) { + f_includePropertyGroups = StoneSerializers.nullable(TemplateFilterBase.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new GetMetadataArg(f_path, f_includeMediaInfo, f_includeDeleted, f_includeHasExplicitSharedMembers, f_includePropertyGroups); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataBuilder.java new file mode 100644 index 000000000..f00b5ef5f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataBuilder.java @@ -0,0 +1,110 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#getMetadataBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class GetMetadataBuilder { + private final DbxUserFilesRequests _client; + private final GetMetadataArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + GetMetadataBuilder(DbxUserFilesRequests _client, GetMetadataArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public GetMetadataBuilder withIncludeMediaInfo(Boolean includeMediaInfo) { + this._builder.withIncludeMediaInfo(includeMediaInfo); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeDeleted If true, {@link DeletedMetadata} will be returned + * for deleted file or folder, otherwise {@link LookupError#NOT_FOUND} + * will be returned. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public GetMetadataBuilder withIncludeDeleted(Boolean includeDeleted) { + this._builder.withIncludeDeleted(includeDeleted); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public GetMetadataBuilder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + this._builder.withIncludeHasExplicitSharedMembers(includeHasExplicitSharedMembers); + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public GetMetadataBuilder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + this._builder.withIncludePropertyGroups(includePropertyGroups); + return this; + } + + /** + * Issues the request. + */ + public Metadata start() throws GetMetadataErrorException, DbxException { + GetMetadataArg arg_ = this._builder.build(); + return _client.getMetadata(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataError.java new file mode 100644 index 000000000..1696951ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataError.java @@ -0,0 +1,239 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class GetMetadataError { + // union files.GetMetadataError (files.stone) + + /** + * Discriminating tag type for {@link GetMetadataError}. + */ + public enum Tag { + PATH; // LookupError + } + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetMetadataError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetMetadataError withTag(Tag _tag) { + GetMetadataError result = new GetMetadataError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetMetadataError withTagAndPath(Tag _tag, LookupError pathValue) { + GetMetadataError result = new GetMetadataError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetMetadataError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code GetMetadataError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetMetadataError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetMetadataError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetMetadataError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetMetadataError) { + GetMetadataError other = (GetMetadataError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetMetadataError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public GetMetadataError deserialize(JsonParser p) throws IOException, JsonParseException { + GetMetadataError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = GetMetadataError.path(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataErrorException.java new file mode 100644 index 000000000..dc061c5a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GetMetadataError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#getMetadata(String)}.

+ */ +public class GetMetadataErrorException extends DbxApiException { + // exception for routes: + // 2/files/get_metadata + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#getMetadata(String)}. + */ + public final GetMetadataError errorValue; + + public GetMetadataErrorException(String routeName, String requestId, LocalizedText userMessage, GetMetadataError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetPreviewBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetPreviewBuilder.java new file mode 100644 index 000000000..b56a4a6ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetPreviewBuilder.java @@ -0,0 +1,75 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#getPreviewBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class GetPreviewBuilder extends DbxDownloadStyleBuilder { + private final DbxUserFilesRequests _client; + private final String path; + private String rev; + + /** + * Creates a new instance of this builder. + * + * @param path The path of the file to preview. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * + * @return instsance of this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + GetPreviewBuilder(DbxUserFilesRequests _client, String path) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + this.path = path; + this.rev = null; + } + + /** + * Set value for optional field. + * + * @param rev Please specify revision in the {@code path} argument to + * {@link DbxUserFilesRequests#getPreview(String,String)} instead. Must + * have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetPreviewBuilder withRev(String rev) { + if (rev != null) { + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!java.util.regex.Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + } + this.rev = rev; + return this; + } + + @Override + public DbxDownloader start() throws PreviewErrorException, DbxException { + PreviewArg arg_ = new PreviewArg(path, rev); + return _client.getPreview(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTagsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTagsArg.java new file mode 100644 index 000000000..bd1a21bba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTagsArg.java @@ -0,0 +1,157 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class GetTagsArg { + // struct files.GetTagsArg (file_tagging.stone) + + @Nonnull + protected final List paths; + + /** + * + * @param paths Path to the items. Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTagsArg(@Nonnull List paths) { + if (paths == null) { + throw new IllegalArgumentException("Required value for 'paths' is null"); + } + for (String x : paths) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'paths' is null"); + } + if (!java.util.regex.Pattern.matches("/(.|[\\r\\n])*", x)) { + throw new IllegalArgumentException("Stringan item in list 'paths' does not match pattern"); + } + } + this.paths = paths; + } + + /** + * Path to the items. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPaths() { + return paths; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.paths + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTagsArg other = (GetTagsArg) obj; + return (this.paths == other.paths) || (this.paths.equals(other.paths)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTagsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("paths"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.paths, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTagsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTagsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_paths = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("paths".equals(field)) { + f_paths = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_paths == null) { + throw new JsonParseException(p, "Required field \"paths\" missing."); + } + value = new GetTagsArg(f_paths); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTagsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTagsResult.java new file mode 100644 index 000000000..2b27ca91c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTagsResult.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GetTagsResult { + // struct files.GetTagsResult (file_tagging.stone) + + @Nonnull + protected final List pathsToTags; + + /** + * + * @param pathsToTags List of paths and their corresponding tags. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTagsResult(@Nonnull List pathsToTags) { + if (pathsToTags == null) { + throw new IllegalArgumentException("Required value for 'pathsToTags' is null"); + } + for (PathToTags x : pathsToTags) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'pathsToTags' is null"); + } + } + this.pathsToTags = pathsToTags; + } + + /** + * List of paths and their corresponding tags. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPathsToTags() { + return pathsToTags; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.pathsToTags + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTagsResult other = (GetTagsResult) obj; + return (this.pathsToTags == other.pathsToTags) || (this.pathsToTags.equals(other.pathsToTags)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTagsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("paths_to_tags"); + StoneSerializers.list(PathToTags.Serializer.INSTANCE).serialize(value.pathsToTags, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTagsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTagsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_pathsToTags = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("paths_to_tags".equals(field)) { + f_pathsToTags = StoneSerializers.list(PathToTags.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_pathsToTags == null) { + throw new JsonParseException(p, "Required field \"paths_to_tags\" missing."); + } + value = new GetTagsResult(f_pathsToTags); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkArg.java new file mode 100644 index 000000000..260a4cb28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class GetTemporaryLinkArg { + // struct files.GetTemporaryLinkArg (files.stone) + + @Nonnull + protected final String path; + + /** + * + * @param path The path to the file you want a temporary link to. Must + * match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryLinkArg(@Nonnull String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + } + + /** + * The path to the file you want a temporary link to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTemporaryLinkArg other = (GetTemporaryLinkArg) obj; + return (this.path == other.path) || (this.path.equals(other.path)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTemporaryLinkArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTemporaryLinkArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTemporaryLinkArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new GetTemporaryLinkArg(f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkError.java new file mode 100644 index 000000000..18ac5d5c3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkError.java @@ -0,0 +1,374 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetTemporaryLinkError { + // union files.GetTemporaryLinkError (files.stone) + + /** + * Discriminating tag type for {@link GetTemporaryLinkError}. + */ + public enum Tag { + PATH, // LookupError + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_NOT_VERIFIED, + /** + * Cannot get temporary link to this file type; use {@link + * DbxUserFilesRequests#export(String,String)} instead. + */ + UNSUPPORTED_FILE, + /** + * The user is not allowed to request a temporary link to the specified + * file. For example, this can occur if the file is restricted or if the + * user's links are banned. + */ + NOT_ALLOWED, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + public static final GetTemporaryLinkError EMAIL_NOT_VERIFIED = new GetTemporaryLinkError().withTag(Tag.EMAIL_NOT_VERIFIED); + /** + * Cannot get temporary link to this file type; use {@link + * DbxUserFilesRequests#export(String,String)} instead. + */ + public static final GetTemporaryLinkError UNSUPPORTED_FILE = new GetTemporaryLinkError().withTag(Tag.UNSUPPORTED_FILE); + /** + * The user is not allowed to request a temporary link to the specified + * file. For example, this can occur if the file is restricted or if the + * user's links are banned. + */ + public static final GetTemporaryLinkError NOT_ALLOWED = new GetTemporaryLinkError().withTag(Tag.NOT_ALLOWED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetTemporaryLinkError OTHER = new GetTemporaryLinkError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetTemporaryLinkError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetTemporaryLinkError withTag(Tag _tag) { + GetTemporaryLinkError result = new GetTemporaryLinkError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetTemporaryLinkError withTagAndPath(Tag _tag, LookupError pathValue) { + GetTemporaryLinkError result = new GetTemporaryLinkError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetTemporaryLinkError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code GetTemporaryLinkError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetTemporaryLinkError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetTemporaryLinkError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetTemporaryLinkError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_NOT_VERIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_NOT_VERIFIED}, {@code false} otherwise. + */ + public boolean isEmailNotVerified() { + return this._tag == Tag.EMAIL_NOT_VERIFIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_FILE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_FILE}, {@code false} otherwise. + */ + public boolean isUnsupportedFile() { + return this._tag == Tag.UNSUPPORTED_FILE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOT_ALLOWED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_ALLOWED}, {@code false} otherwise. + */ + public boolean isNotAllowed() { + return this._tag == Tag.NOT_ALLOWED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetTemporaryLinkError) { + GetTemporaryLinkError other = (GetTemporaryLinkError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case EMAIL_NOT_VERIFIED: + return true; + case UNSUPPORTED_FILE: + return true; + case NOT_ALLOWED: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTemporaryLinkError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case EMAIL_NOT_VERIFIED: { + g.writeString("email_not_verified"); + break; + } + case UNSUPPORTED_FILE: { + g.writeString("unsupported_file"); + break; + } + case NOT_ALLOWED: { + g.writeString("not_allowed"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetTemporaryLinkError deserialize(JsonParser p) throws IOException, JsonParseException { + GetTemporaryLinkError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = GetTemporaryLinkError.path(fieldValue); + } + else if ("email_not_verified".equals(tag)) { + value = GetTemporaryLinkError.EMAIL_NOT_VERIFIED; + } + else if ("unsupported_file".equals(tag)) { + value = GetTemporaryLinkError.UNSUPPORTED_FILE; + } + else if ("not_allowed".equals(tag)) { + value = GetTemporaryLinkError.NOT_ALLOWED; + } + else { + value = GetTemporaryLinkError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkErrorException.java new file mode 100644 index 000000000..1d1134f6a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GetTemporaryLinkError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#getTemporaryLink(String)}.

+ */ +public class GetTemporaryLinkErrorException extends DbxApiException { + // exception for routes: + // 2/files/get_temporary_link + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#getTemporaryLink(String)}. + */ + public final GetTemporaryLinkError errorValue; + + public GetTemporaryLinkErrorException(String routeName, String requestId, LocalizedText userMessage, GetTemporaryLinkError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkResult.java new file mode 100644 index 000000000..12045b253 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkResult.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GetTemporaryLinkResult { + // struct files.GetTemporaryLinkResult (files.stone) + + @Nonnull + protected final FileMetadata metadata; + @Nonnull + protected final String link; + + /** + * + * @param metadata Metadata of the file. Must not be {@code null}. + * @param link The temporary link which can be used to stream content the + * file. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryLinkResult(@Nonnull FileMetadata metadata, @Nonnull String link) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + if (link == null) { + throw new IllegalArgumentException("Required value for 'link' is null"); + } + this.link = link; + } + + /** + * Metadata of the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileMetadata getMetadata() { + return metadata; + } + + /** + * The temporary link which can be used to stream content the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLink() { + return link; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata, + this.link + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTemporaryLinkResult other = (GetTemporaryLinkResult) obj; + return ((this.metadata == other.metadata) || (this.metadata.equals(other.metadata))) + && ((this.link == other.link) || (this.link.equals(other.link))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTemporaryLinkResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + FileMetadata.Serializer.INSTANCE.serialize(value.metadata, g); + g.writeFieldName("link"); + StoneSerializers.string().serialize(value.link, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTemporaryLinkResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTemporaryLinkResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileMetadata f_metadata = null; + String f_link = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = FileMetadata.Serializer.INSTANCE.deserialize(p); + } + else if ("link".equals(field)) { + f_link = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + if (f_link == null) { + throw new JsonParseException(p, "Required field \"link\" missing."); + } + value = new GetTemporaryLinkResult(f_metadata, f_link); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryUploadLinkArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryUploadLinkArg.java new file mode 100644 index 000000000..61d5619f0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryUploadLinkArg.java @@ -0,0 +1,200 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class GetTemporaryUploadLinkArg { + // struct files.GetTemporaryUploadLinkArg (files.stone) + + @Nonnull + protected final CommitInfo commitInfo; + protected final double duration; + + /** + * + * @param commitInfo Contains the path and other optional modifiers for the + * future upload commit. Equivalent to the parameters provided to {@link + * DbxUserFilesRequests#upload(String)}. Must not be {@code null}. + * @param duration How long before this link expires, in seconds. + * Attempting to start an upload with this link longer than this period + * of time after link creation will result in an error. Must be greater + * than or equal to 60.0 and be less than or equal to 14400.0. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryUploadLinkArg(@Nonnull CommitInfo commitInfo, double duration) { + if (commitInfo == null) { + throw new IllegalArgumentException("Required value for 'commitInfo' is null"); + } + this.commitInfo = commitInfo; + if (duration < 60.0) { + throw new IllegalArgumentException("Number 'duration' is smaller than 60.0"); + } + if (duration > 14400.0) { + throw new IllegalArgumentException("Number 'duration' is larger than 14400.0"); + } + this.duration = duration; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param commitInfo Contains the path and other optional modifiers for the + * future upload commit. Equivalent to the parameters provided to {@link + * DbxUserFilesRequests#upload(String)}. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryUploadLinkArg(@Nonnull CommitInfo commitInfo) { + this(commitInfo, 14400.0); + } + + /** + * Contains the path and other optional modifiers for the future upload + * commit. Equivalent to the parameters provided to {@link + * DbxUserFilesRequests#upload(String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public CommitInfo getCommitInfo() { + return commitInfo; + } + + /** + * How long before this link expires, in seconds. Attempting to start an + * upload with this link longer than this period of time after link + * creation will result in an error. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 14400.0. + */ + public double getDuration() { + return duration; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commitInfo, + this.duration + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTemporaryUploadLinkArg other = (GetTemporaryUploadLinkArg) obj; + return ((this.commitInfo == other.commitInfo) || (this.commitInfo.equals(other.commitInfo))) + && (this.duration == other.duration) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTemporaryUploadLinkArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("commit_info"); + CommitInfo.Serializer.INSTANCE.serialize(value.commitInfo, g); + g.writeFieldName("duration"); + StoneSerializers.float64().serialize(value.duration, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTemporaryUploadLinkArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTemporaryUploadLinkArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + CommitInfo f_commitInfo = null; + Double f_duration = 14400.0; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("commit_info".equals(field)) { + f_commitInfo = CommitInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("duration".equals(field)) { + f_duration = StoneSerializers.float64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_commitInfo == null) { + throw new JsonParseException(p, "Required field \"commit_info\" missing."); + } + value = new GetTemporaryUploadLinkArg(f_commitInfo, f_duration); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryUploadLinkResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryUploadLinkResult.java new file mode 100644 index 000000000..26c999d47 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryUploadLinkResult.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GetTemporaryUploadLinkResult { + // struct files.GetTemporaryUploadLinkResult (files.stone) + + @Nonnull + protected final String link; + + /** + * + * @param link The temporary link which can be used to stream a file to a + * Dropbox location. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTemporaryUploadLinkResult(@Nonnull String link) { + if (link == null) { + throw new IllegalArgumentException("Required value for 'link' is null"); + } + this.link = link; + } + + /** + * The temporary link which can be used to stream a file to a Dropbox + * location. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLink() { + return link; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.link + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTemporaryUploadLinkResult other = (GetTemporaryUploadLinkResult) obj; + return (this.link == other.link) || (this.link.equals(other.link)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTemporaryUploadLinkResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("link"); + StoneSerializers.string().serialize(value.link, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTemporaryUploadLinkResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTemporaryUploadLinkResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_link = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("link".equals(field)) { + f_link = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_link == null) { + throw new JsonParseException(p, "Required field \"link\" missing."); + } + value = new GetTemporaryUploadLinkResult(f_link); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchArg.java new file mode 100644 index 000000000..2f174fcd6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchArg.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link DbxUserFilesRequests#getThumbnailBatch(List)}. + */ +class GetThumbnailBatchArg { + // struct files.GetThumbnailBatchArg (files.stone) + + @Nonnull + protected final List entries; + + /** + * Arguments for {@link DbxUserFilesRequests#getThumbnailBatch(List)}. + * + * @param entries List of files to get thumbnails. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBatchArg(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (ThumbnailArg x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * List of files to get thumbnails. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetThumbnailBatchArg other = (GetThumbnailBatchArg) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetThumbnailBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(ThumbnailArg.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetThumbnailBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetThumbnailBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(ThumbnailArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new GetThumbnailBatchArg(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchError.java new file mode 100644 index 000000000..656c5ccbb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GetThumbnailBatchError { + // union files.GetThumbnailBatchError (files.stone) + /** + * The operation involves more than 25 files. + */ + TOO_MANY_FILES, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetThumbnailBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetThumbnailBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + GetThumbnailBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("too_many_files".equals(tag)) { + value = GetThumbnailBatchError.TOO_MANY_FILES; + } + else { + value = GetThumbnailBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchErrorException.java new file mode 100644 index 000000000..867e49046 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GetThumbnailBatchError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#getThumbnailBatch(java.util.List)}.

+ */ +public class GetThumbnailBatchErrorException extends DbxApiException { + // exception for routes: + // 2/files/get_thumbnail_batch + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#getThumbnailBatch(java.util.List)}. + */ + public final GetThumbnailBatchError errorValue; + + public GetThumbnailBatchErrorException(String routeName, String requestId, LocalizedText userMessage, GetThumbnailBatchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResult.java new file mode 100644 index 000000000..a68ee3256 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResult.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GetThumbnailBatchResult { + // struct files.GetThumbnailBatchResult (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries List of files and their thumbnails. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBatchResult(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (GetThumbnailBatchResultEntry x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * List of files and their thumbnails. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetThumbnailBatchResult other = (GetThumbnailBatchResult) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetThumbnailBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(GetThumbnailBatchResultEntry.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetThumbnailBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetThumbnailBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(GetThumbnailBatchResultEntry.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new GetThumbnailBatchResult(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResultData.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResultData.java new file mode 100644 index 000000000..0c02ccd54 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResultData.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GetThumbnailBatchResultData { + // struct files.GetThumbnailBatchResultData (files.stone) + + @Nonnull + protected final FileMetadata metadata; + @Nonnull + protected final String thumbnail; + + /** + * + * @param metadata Must not be {@code null}. + * @param thumbnail A string containing the base64-encoded thumbnail data + * for this file. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBatchResultData(@Nonnull FileMetadata metadata, @Nonnull String thumbnail) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + if (thumbnail == null) { + throw new IllegalArgumentException("Required value for 'thumbnail' is null"); + } + this.thumbnail = thumbnail; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileMetadata getMetadata() { + return metadata; + } + + /** + * A string containing the base64-encoded thumbnail data for this file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getThumbnail() { + return thumbnail; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata, + this.thumbnail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetThumbnailBatchResultData other = (GetThumbnailBatchResultData) obj; + return ((this.metadata == other.metadata) || (this.metadata.equals(other.metadata))) + && ((this.thumbnail == other.thumbnail) || (this.thumbnail.equals(other.thumbnail))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetThumbnailBatchResultData value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + FileMetadata.Serializer.INSTANCE.serialize(value.metadata, g); + g.writeFieldName("thumbnail"); + StoneSerializers.string().serialize(value.thumbnail, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetThumbnailBatchResultData deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetThumbnailBatchResultData value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileMetadata f_metadata = null; + String f_thumbnail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = FileMetadata.Serializer.INSTANCE.deserialize(p); + } + else if ("thumbnail".equals(field)) { + f_thumbnail = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + if (f_thumbnail == null) { + throw new JsonParseException(p, "Required field \"thumbnail\" missing."); + } + value = new GetThumbnailBatchResultData(f_metadata, f_thumbnail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResultEntry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResultEntry.java new file mode 100644 index 000000000..d8ccbaccd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchResultEntry.java @@ -0,0 +1,361 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetThumbnailBatchResultEntry { + // union files.GetThumbnailBatchResultEntry (files.stone) + + /** + * Discriminating tag type for {@link GetThumbnailBatchResultEntry}. + */ + public enum Tag { + SUCCESS, // GetThumbnailBatchResultData + /** + * The result for this file if it was an error. + */ + FAILURE, // ThumbnailError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetThumbnailBatchResultEntry OTHER = new GetThumbnailBatchResultEntry().withTag(Tag.OTHER); + + private Tag _tag; + private GetThumbnailBatchResultData successValue; + private ThumbnailError failureValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetThumbnailBatchResultEntry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetThumbnailBatchResultEntry withTag(Tag _tag) { + GetThumbnailBatchResultEntry result = new GetThumbnailBatchResultEntry(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetThumbnailBatchResultEntry withTagAndSuccess(Tag _tag, GetThumbnailBatchResultData successValue) { + GetThumbnailBatchResultEntry result = new GetThumbnailBatchResultEntry(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param failureValue The result for this file if it was an error. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetThumbnailBatchResultEntry withTagAndFailure(Tag _tag, ThumbnailError failureValue) { + GetThumbnailBatchResultEntry result = new GetThumbnailBatchResultEntry(); + result._tag = _tag; + result.failureValue = failureValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetThumbnailBatchResultEntry}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code GetThumbnailBatchResultEntry} that has its + * tag set to {@link Tag#SUCCESS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetThumbnailBatchResultEntry} with its tag set + * to {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetThumbnailBatchResultEntry success(GetThumbnailBatchResultData value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetThumbnailBatchResultEntry().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * This instance must be tagged as {@link Tag#SUCCESS}. + * + * @return The {@link GetThumbnailBatchResultData} value associated with + * this instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public GetThumbnailBatchResultData getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILURE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILURE}, + * {@code false} otherwise. + */ + public boolean isFailure() { + return this._tag == Tag.FAILURE; + } + + /** + * Returns an instance of {@code GetThumbnailBatchResultEntry} that has its + * tag set to {@link Tag#FAILURE}. + * + *

The result for this file if it was an error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetThumbnailBatchResultEntry} with its tag set + * to {@link Tag#FAILURE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetThumbnailBatchResultEntry failure(ThumbnailError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetThumbnailBatchResultEntry().withTagAndFailure(Tag.FAILURE, value); + } + + /** + * The result for this file if it was an error. + * + *

This instance must be tagged as {@link Tag#FAILURE}.

+ * + * @return The {@link ThumbnailError} value associated with this instance if + * {@link #isFailure} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailure} is {@code false}. + */ + public ThumbnailError getFailureValue() { + if (this._tag != Tag.FAILURE) { + throw new IllegalStateException("Invalid tag: required Tag.FAILURE, but was Tag." + this._tag.name()); + } + return failureValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.failureValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetThumbnailBatchResultEntry) { + GetThumbnailBatchResultEntry other = (GetThumbnailBatchResultEntry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case FAILURE: + return (this.failureValue == other.failureValue) || (this.failureValue.equals(other.failureValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetThumbnailBatchResultEntry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + GetThumbnailBatchResultData.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case FAILURE: { + g.writeStartObject(); + writeTag("failure", g); + g.writeFieldName("failure"); + ThumbnailError.Serializer.INSTANCE.serialize(value.failureValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetThumbnailBatchResultEntry deserialize(JsonParser p) throws IOException, JsonParseException { + GetThumbnailBatchResultEntry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + GetThumbnailBatchResultData fieldValue = null; + fieldValue = GetThumbnailBatchResultData.Serializer.INSTANCE.deserialize(p, true); + value = GetThumbnailBatchResultEntry.success(fieldValue); + } + else if ("failure".equals(tag)) { + ThumbnailError fieldValue = null; + expectField("failure", p); + fieldValue = ThumbnailError.Serializer.INSTANCE.deserialize(p); + value = GetThumbnailBatchResultEntry.failure(fieldValue); + } + else { + value = GetThumbnailBatchResultEntry.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBuilder.java new file mode 100644 index 000000000..3fc7667ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBuilder.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#getThumbnailBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class GetThumbnailBuilder extends DbxDownloadStyleBuilder { + private final DbxUserFilesRequests _client; + private final ThumbnailArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + GetThumbnailBuilder(DbxUserFilesRequests _client, ThumbnailArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailFormat.JPEG}.

+ * + * @param format The format for the thumbnail image, jpeg (default) or png. + * For images that are photos, jpeg should be preferred, while png is + * better for screenshots and digital arts. Must not be {@code null}. + * Defaults to {@code ThumbnailFormat.JPEG} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBuilder withFormat(ThumbnailFormat format) { + this._builder.withFormat(format); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailSize.W64H64}.

+ * + * @param size The size for the thumbnail image. Must not be {@code null}. + * Defaults to {@code ThumbnailSize.W64H64} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBuilder withSize(ThumbnailSize size) { + this._builder.withSize(size); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailMode.STRICT}.

+ * + * @param mode How to resize and crop the image to achieve the desired + * size. Must not be {@code null}. Defaults to {@code + * ThumbnailMode.STRICT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetThumbnailBuilder withMode(ThumbnailMode mode) { + this._builder.withMode(mode); + return this; + } + + @Override + public DbxDownloader start() throws ThumbnailErrorException, DbxException { + ThumbnailArg arg_ = this._builder.build(); + return _client.getThumbnail(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GpsCoordinates.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GpsCoordinates.java new file mode 100644 index 000000000..172608287 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GpsCoordinates.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * GPS coordinates for a photo or video. + */ +public class GpsCoordinates { + // struct files.GpsCoordinates (files.stone) + + protected final double latitude; + protected final double longitude; + + /** + * GPS coordinates for a photo or video. + * + * @param latitude Latitude of the GPS coordinates. + * @param longitude Longitude of the GPS coordinates. + */ + public GpsCoordinates(double latitude, double longitude) { + this.latitude = latitude; + this.longitude = longitude; + } + + /** + * Latitude of the GPS coordinates. + * + * @return value for this field. + */ + public double getLatitude() { + return latitude; + } + + /** + * Longitude of the GPS coordinates. + * + * @return value for this field. + */ + public double getLongitude() { + return longitude; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.latitude, + this.longitude + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GpsCoordinates other = (GpsCoordinates) obj; + return (this.latitude == other.latitude) + && (this.longitude == other.longitude) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GpsCoordinates value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("latitude"); + StoneSerializers.float64().serialize(value.latitude, g); + g.writeFieldName("longitude"); + StoneSerializers.float64().serialize(value.longitude, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GpsCoordinates deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GpsCoordinates value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Double f_latitude = null; + Double f_longitude = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("latitude".equals(field)) { + f_latitude = StoneSerializers.float64().deserialize(p); + } + else if ("longitude".equals(field)) { + f_longitude = StoneSerializers.float64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_latitude == null) { + throw new JsonParseException(p, "Required field \"latitude\" missing."); + } + if (f_longitude == null) { + throw new JsonParseException(p, "Required field \"longitude\" missing."); + } + value = new GpsCoordinates(f_latitude, f_longitude); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/HighlightSpan.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/HighlightSpan.java new file mode 100644 index 000000000..b0b1d62f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/HighlightSpan.java @@ -0,0 +1,172 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class HighlightSpan { + // struct files.HighlightSpan (files.stone) + + @Nonnull + protected final String highlightStr; + protected final boolean isHighlighted; + + /** + * + * @param highlightStr String to be determined whether it should be + * highlighted or not. Must not be {@code null}. + * @param isHighlighted The string should be highlighted or not. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public HighlightSpan(@Nonnull String highlightStr, boolean isHighlighted) { + if (highlightStr == null) { + throw new IllegalArgumentException("Required value for 'highlightStr' is null"); + } + this.highlightStr = highlightStr; + this.isHighlighted = isHighlighted; + } + + /** + * String to be determined whether it should be highlighted or not. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getHighlightStr() { + return highlightStr; + } + + /** + * The string should be highlighted or not. + * + * @return value for this field. + */ + public boolean getIsHighlighted() { + return isHighlighted; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.highlightStr, + this.isHighlighted + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + HighlightSpan other = (HighlightSpan) obj; + return ((this.highlightStr == other.highlightStr) || (this.highlightStr.equals(other.highlightStr))) + && (this.isHighlighted == other.isHighlighted) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(HighlightSpan value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("highlight_str"); + StoneSerializers.string().serialize(value.highlightStr, g); + g.writeFieldName("is_highlighted"); + StoneSerializers.boolean_().serialize(value.isHighlighted, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public HighlightSpan deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + HighlightSpan value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_highlightStr = null; + Boolean f_isHighlighted = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("highlight_str".equals(field)) { + f_highlightStr = StoneSerializers.string().deserialize(p); + } + else if ("is_highlighted".equals(field)) { + f_isHighlighted = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_highlightStr == null) { + throw new JsonParseException(p, "Required field \"highlight_str\" missing."); + } + if (f_isHighlighted == null) { + throw new JsonParseException(p, "Required field \"is_highlighted\" missing."); + } + value = new HighlightSpan(f_highlightStr, f_isHighlighted); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ImportFormat.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ImportFormat.java new file mode 100644 index 000000000..6a8fdb6a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ImportFormat.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The import format of the incoming Paper doc content. + */ +public enum ImportFormat { + // union files.ImportFormat (files.stone) + /** + * The provided data is interpreted as standard HTML. + */ + HTML, + /** + * The provided data is interpreted as markdown. + */ + MARKDOWN, + /** + * The provided data is interpreted as plain text. + */ + PLAIN_TEXT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ImportFormat value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case HTML: { + g.writeString("html"); + break; + } + case MARKDOWN: { + g.writeString("markdown"); + break; + } + case PLAIN_TEXT: { + g.writeString("plain_text"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ImportFormat deserialize(JsonParser p) throws IOException, JsonParseException { + ImportFormat value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("html".equals(tag)) { + value = ImportFormat.HTML; + } + else if ("markdown".equals(tag)) { + value = ImportFormat.MARKDOWN; + } + else if ("plain_text".equals(tag)) { + value = ImportFormat.PLAIN_TEXT; + } + else { + value = ImportFormat.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderArg.java new file mode 100644 index 000000000..c6987c4a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderArg.java @@ -0,0 +1,664 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ListFolderArg { + // struct files.ListFolderArg (files.stone) + + @Nonnull + protected final String path; + protected final boolean recursive; + protected final boolean includeMediaInfo; + protected final boolean includeDeleted; + protected final boolean includeHasExplicitSharedMembers; + protected final boolean includeMountedFolders; + @Nullable + protected final Long limit; + @Nullable + protected final SharedLink sharedLink; + @Nullable + protected final TemplateFilterBase includePropertyGroups; + protected final boolean includeNonDownloadableFiles; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param recursive If true, the list folder operation will be applied + * recursively to all subfolders and the response will contain contents + * of all subfolders. + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. This parameter will no longer have an effect + * starting December 2, 2019. + * @param includeDeleted If true, the results will include entries for + * files and folders that used to exist but were deleted. + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. + * @param includeMountedFolders If true, the results will include entries + * under mounted folders which includes app folder, shared folder and + * team folder. + * @param limit The maximum number of results to return per request. Note: + * This is an approximate number and there can be slightly more entries + * returned in some cases. Must be greater than or equal to 1 and be + * less than or equal to 2000. + * @param sharedLink A shared link to list the contents of. If the link is + * password-protected, the password must be provided. If this field is + * present, {@link ListFolderArg#getPath} will be relative to root of + * the shared link. Only non-recursive mode is supported for shared + * link. + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * @param includeNonDownloadableFiles If true, include files that are not + * downloadable, i.e. Google Docs. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderArg(@Nonnull String path, boolean recursive, boolean includeMediaInfo, boolean includeDeleted, boolean includeHasExplicitSharedMembers, boolean includeMountedFolders, @Nullable Long limit, @Nullable SharedLink sharedLink, @Nullable TemplateFilterBase includePropertyGroups, boolean includeNonDownloadableFiles) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.recursive = recursive; + this.includeMediaInfo = includeMediaInfo; + this.includeDeleted = includeDeleted; + this.includeHasExplicitSharedMembers = includeHasExplicitSharedMembers; + this.includeMountedFolders = includeMountedFolders; + if (limit != null) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 2000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 2000L"); + } + } + this.limit = limit; + this.sharedLink = sharedLink; + this.includePropertyGroups = includePropertyGroups; + this.includeNonDownloadableFiles = includeNonDownloadableFiles; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderArg(@Nonnull String path) { + this(path, false, false, false, false, true, null, null, null, true); + } + + /** + * A unique identifier for the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * If true, the list folder operation will be applied recursively to all + * subfolders and the response will contain contents of all subfolders. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getRecursive() { + return recursive; + } + + /** + * If true, {@link FileMetadata#getMediaInfo} is set for photo and video. + * This parameter will no longer have an effect starting December 2, 2019. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeMediaInfo() { + return includeMediaInfo; + } + + /** + * If true, the results will include entries for files and folders that used + * to exist but were deleted. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeDeleted() { + return includeDeleted; + } + + /** + * If true, the results will include a flag for each file indicating whether + * or not that file has any explicit members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeHasExplicitSharedMembers() { + return includeHasExplicitSharedMembers; + } + + /** + * If true, the results will include entries under mounted folders which + * includes app folder, shared folder and team folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeMountedFolders() { + return includeMountedFolders; + } + + /** + * The maximum number of results to return per request. Note: This is an + * approximate number and there can be slightly more entries returned in + * some cases. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getLimit() { + return limit; + } + + /** + * A shared link to list the contents of. If the link is password-protected, + * the password must be provided. If this field is present, {@link + * ListFolderArg#getPath} will be relative to root of the shared link. Only + * non-recursive mode is supported for shared link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLink getSharedLink() { + return sharedLink; + } + + /** + * If set to a valid list of template IDs, {@link + * FileMetadata#getPropertyGroups} is set if there exists property data + * associated with the file and each of the listed templates. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TemplateFilterBase getIncludePropertyGroups() { + return includePropertyGroups; + } + + /** + * If true, include files that are not downloadable, i.e. Google Docs. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeNonDownloadableFiles() { + return includeNonDownloadableFiles; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path A unique identifier for the file. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link ListFolderArg}. + */ + public static class Builder { + protected final String path; + + protected boolean recursive; + protected boolean includeMediaInfo; + protected boolean includeDeleted; + protected boolean includeHasExplicitSharedMembers; + protected boolean includeMountedFolders; + protected Long limit; + protected SharedLink sharedLink; + protected TemplateFilterBase includePropertyGroups; + protected boolean includeNonDownloadableFiles; + + protected Builder(String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.recursive = false; + this.includeMediaInfo = false; + this.includeDeleted = false; + this.includeHasExplicitSharedMembers = false; + this.includeMountedFolders = true; + this.limit = null; + this.sharedLink = null; + this.includePropertyGroups = null; + this.includeNonDownloadableFiles = true; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param recursive If true, the list folder operation will be applied + * recursively to all subfolders and the response will contain + * contents of all subfolders. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withRecursive(Boolean recursive) { + if (recursive != null) { + this.recursive = recursive; + } + else { + this.recursive = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} + * is set for photo and video. This parameter will no longer have an + * effect starting December 2, 2019. Defaults to {@code false} when + * set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeMediaInfo(Boolean includeMediaInfo) { + if (includeMediaInfo != null) { + this.includeMediaInfo = includeMediaInfo; + } + else { + this.includeMediaInfo = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeDeleted If true, the results will include entries for + * files and folders that used to exist but were deleted. Defaults + * to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeDeleted(Boolean includeDeleted) { + if (includeDeleted != null) { + this.includeDeleted = includeDeleted; + } + else { + this.includeDeleted = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeHasExplicitSharedMembers If true, the results will + * include a flag for each file indicating whether or not that file + * has any explicit members. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + if (includeHasExplicitSharedMembers != null) { + this.includeHasExplicitSharedMembers = includeHasExplicitSharedMembers; + } + else { + this.includeHasExplicitSharedMembers = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeMountedFolders If true, the results will include + * entries under mounted folders which includes app folder, shared + * folder and team folder. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withIncludeMountedFolders(Boolean includeMountedFolders) { + if (includeMountedFolders != null) { + this.includeMountedFolders = includeMountedFolders; + } + else { + this.includeMountedFolders = true; + } + return this; + } + + /** + * Set value for optional field. + * + * @param limit The maximum number of results to return per request. + * Note: This is an approximate number and there can be slightly + * more entries returned in some cases. Must be greater than or + * equal to 1 and be less than or equal to 2000. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit != null) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 2000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 2000L"); + } + } + this.limit = limit; + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLink A shared link to list the contents of. If the link + * is password-protected, the password must be provided. If this + * field is present, {@link ListFolderArg#getPath} will be relative + * to root of the shared link. Only non-recursive mode is supported + * for shared link. + * + * @return this builder + */ + public Builder withSharedLink(SharedLink sharedLink) { + this.sharedLink = sharedLink; + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public Builder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + this.includePropertyGroups = includePropertyGroups; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeNonDownloadableFiles If true, include files that are + * not downloadable, i.e. Google Docs. Defaults to {@code true} when + * set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeNonDownloadableFiles(Boolean includeNonDownloadableFiles) { + if (includeNonDownloadableFiles != null) { + this.includeNonDownloadableFiles = includeNonDownloadableFiles; + } + else { + this.includeNonDownloadableFiles = true; + } + return this; + } + + /** + * Builds an instance of {@link ListFolderArg} configured with this + * builder's values + * + * @return new instance of {@link ListFolderArg} + */ + public ListFolderArg build() { + return new ListFolderArg(path, recursive, includeMediaInfo, includeDeleted, includeHasExplicitSharedMembers, includeMountedFolders, limit, sharedLink, includePropertyGroups, includeNonDownloadableFiles); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.recursive, + this.includeMediaInfo, + this.includeDeleted, + this.includeHasExplicitSharedMembers, + this.includeMountedFolders, + this.limit, + this.sharedLink, + this.includePropertyGroups, + this.includeNonDownloadableFiles + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderArg other = (ListFolderArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && (this.recursive == other.recursive) + && (this.includeMediaInfo == other.includeMediaInfo) + && (this.includeDeleted == other.includeDeleted) + && (this.includeHasExplicitSharedMembers == other.includeHasExplicitSharedMembers) + && (this.includeMountedFolders == other.includeMountedFolders) + && ((this.limit == other.limit) || (this.limit != null && this.limit.equals(other.limit))) + && ((this.sharedLink == other.sharedLink) || (this.sharedLink != null && this.sharedLink.equals(other.sharedLink))) + && ((this.includePropertyGroups == other.includePropertyGroups) || (this.includePropertyGroups != null && this.includePropertyGroups.equals(other.includePropertyGroups))) + && (this.includeNonDownloadableFiles == other.includeNonDownloadableFiles) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("recursive"); + StoneSerializers.boolean_().serialize(value.recursive, g); + g.writeFieldName("include_media_info"); + StoneSerializers.boolean_().serialize(value.includeMediaInfo, g); + g.writeFieldName("include_deleted"); + StoneSerializers.boolean_().serialize(value.includeDeleted, g); + g.writeFieldName("include_has_explicit_shared_members"); + StoneSerializers.boolean_().serialize(value.includeHasExplicitSharedMembers, g); + g.writeFieldName("include_mounted_folders"); + StoneSerializers.boolean_().serialize(value.includeMountedFolders, g); + if (value.limit != null) { + g.writeFieldName("limit"); + StoneSerializers.nullable(StoneSerializers.uInt32()).serialize(value.limit, g); + } + if (value.sharedLink != null) { + g.writeFieldName("shared_link"); + StoneSerializers.nullableStruct(SharedLink.Serializer.INSTANCE).serialize(value.sharedLink, g); + } + if (value.includePropertyGroups != null) { + g.writeFieldName("include_property_groups"); + StoneSerializers.nullable(TemplateFilterBase.Serializer.INSTANCE).serialize(value.includePropertyGroups, g); + } + g.writeFieldName("include_non_downloadable_files"); + StoneSerializers.boolean_().serialize(value.includeNonDownloadableFiles, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + Boolean f_recursive = false; + Boolean f_includeMediaInfo = false; + Boolean f_includeDeleted = false; + Boolean f_includeHasExplicitSharedMembers = false; + Boolean f_includeMountedFolders = true; + Long f_limit = null; + SharedLink f_sharedLink = null; + TemplateFilterBase f_includePropertyGroups = null; + Boolean f_includeNonDownloadableFiles = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("recursive".equals(field)) { + f_recursive = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_media_info".equals(field)) { + f_includeMediaInfo = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_deleted".equals(field)) { + f_includeDeleted = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_has_explicit_shared_members".equals(field)) { + f_includeHasExplicitSharedMembers = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_mounted_folders".equals(field)) { + f_includeMountedFolders = StoneSerializers.boolean_().deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.nullable(StoneSerializers.uInt32()).deserialize(p); + } + else if ("shared_link".equals(field)) { + f_sharedLink = StoneSerializers.nullableStruct(SharedLink.Serializer.INSTANCE).deserialize(p); + } + else if ("include_property_groups".equals(field)) { + f_includePropertyGroups = StoneSerializers.nullable(TemplateFilterBase.Serializer.INSTANCE).deserialize(p); + } + else if ("include_non_downloadable_files".equals(field)) { + f_includeNonDownloadableFiles = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new ListFolderArg(f_path, f_recursive, f_includeMediaInfo, f_includeDeleted, f_includeHasExplicitSharedMembers, f_includeMountedFolders, f_limit, f_sharedLink, f_includePropertyGroups, f_includeNonDownloadableFiles); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueArg.java new file mode 100644 index 000000000..7353c26e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueArg.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListFolderContinueArg { + // struct files.ListFolderContinueArg (files.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor returned by your last call to {@link + * DbxAppFilesRequests#listFolder(String)} or {@link + * DbxAppFilesRequests#listFolderContinue(String)}. Must have length of + * at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + this.cursor = cursor; + } + + /** + * The cursor returned by your last call to {@link + * DbxAppFilesRequests#listFolder(String)} or {@link + * DbxAppFilesRequests#listFolderContinue(String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderContinueArg other = (ListFolderContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFolderContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueError.java new file mode 100644 index 000000000..e57a49b25 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueError.java @@ -0,0 +1,307 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListFolderContinueError { + // union files.ListFolderContinueError (files.stone) + + /** + * Discriminating tag type for {@link ListFolderContinueError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxAppFilesRequests#listFolder(String)} to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxAppFilesRequests#listFolder(String)} to obtain a new cursor. + */ + public static final ListFolderContinueError RESET = new ListFolderContinueError().withTag(Tag.RESET); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListFolderContinueError OTHER = new ListFolderContinueError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListFolderContinueError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListFolderContinueError withTag(Tag _tag) { + ListFolderContinueError result = new ListFolderContinueError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFolderContinueError withTagAndPath(Tag _tag, LookupError pathValue) { + ListFolderContinueError result = new ListFolderContinueError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListFolderContinueError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code ListFolderContinueError} that has its tag + * set to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFolderContinueError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFolderContinueError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFolderContinueError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#RESET}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#RESET}, + * {@code false} otherwise. + */ + public boolean isReset() { + return this._tag == Tag.RESET; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListFolderContinueError) { + ListFolderContinueError other = (ListFolderContinueError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case RESET: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFolderContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFolderContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = ListFolderContinueError.path(fieldValue); + } + else if ("reset".equals(tag)) { + value = ListFolderContinueError.RESET; + } + else { + value = ListFolderContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueErrorException.java new file mode 100644 index 000000000..010a8185d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFolderContinueError} error. + * + *

This exception is raised by {@link + * DbxAppFilesRequests#listFolderContinue(String)}.

+ */ +public class ListFolderContinueErrorException extends DbxApiException { + // exception for routes: + // 2/files/list_folder/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. + */ + public final ListFolderContinueError errorValue; + + public ListFolderContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFolderContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderError.java new file mode 100644 index 000000000..2c40a2bc0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderError.java @@ -0,0 +1,359 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.fileproperties.TemplateError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListFolderError { + // union files.ListFolderError (files.stone) + + /** + * Discriminating tag type for {@link ListFolderError}. + */ + public enum Tag { + PATH, // LookupError + TEMPLATE_ERROR, // TemplateError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListFolderError OTHER = new ListFolderError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + private TemplateError templateErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListFolderError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListFolderError withTag(Tag _tag) { + ListFolderError result = new ListFolderError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFolderError withTagAndPath(Tag _tag, LookupError pathValue) { + ListFolderError result = new ListFolderError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param templateErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFolderError withTagAndTemplateError(Tag _tag, TemplateError templateErrorValue) { + ListFolderError result = new ListFolderError(); + result._tag = _tag; + result.templateErrorValue = templateErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListFolderError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code ListFolderError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFolderError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFolderError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFolderError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEMPLATE_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEMPLATE_ERROR}, {@code false} otherwise. + */ + public boolean isTemplateError() { + return this._tag == Tag.TEMPLATE_ERROR; + } + + /** + * Returns an instance of {@code ListFolderError} that has its tag set to + * {@link Tag#TEMPLATE_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFolderError} with its tag set to {@link + * Tag#TEMPLATE_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFolderError templateError(TemplateError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFolderError().withTagAndTemplateError(Tag.TEMPLATE_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#TEMPLATE_ERROR}. + * + * @return The {@link TemplateError} value associated with this instance if + * {@link #isTemplateError} is {@code true}. + * + * @throws IllegalStateException If {@link #isTemplateError} is {@code + * false}. + */ + public TemplateError getTemplateErrorValue() { + if (this._tag != Tag.TEMPLATE_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.TEMPLATE_ERROR, but was Tag." + this._tag.name()); + } + return templateErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue, + this.templateErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListFolderError) { + ListFolderError other = (ListFolderError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case TEMPLATE_ERROR: + return (this.templateErrorValue == other.templateErrorValue) || (this.templateErrorValue.equals(other.templateErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case TEMPLATE_ERROR: { + g.writeStartObject(); + writeTag("template_error", g); + g.writeFieldName("template_error"); + TemplateError.Serializer.INSTANCE.serialize(value.templateErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFolderError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFolderError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = ListFolderError.path(fieldValue); + } + else if ("template_error".equals(tag)) { + TemplateError fieldValue = null; + expectField("template_error", p); + fieldValue = TemplateError.Serializer.INSTANCE.deserialize(p); + value = ListFolderError.templateError(fieldValue); + } + else { + value = ListFolderError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderErrorException.java new file mode 100644 index 000000000..0801692f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderErrorException.java @@ -0,0 +1,37 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListFolderError} + * error. + * + *

This exception is raised by {@link + * DbxAppFilesRequests#listFolder(String)} and {@link + * DbxUserFilesRequests#listFolderGetLatestCursor(String)}.

+ */ +public class ListFolderErrorException extends DbxApiException { + // exception for routes: + // 2/files/list_folder + // 2/files/list_folder/get_latest_cursor + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxAppFilesRequests#listFolder(String)} and + * {@link DbxUserFilesRequests#listFolderGetLatestCursor(String)}. + */ + public final ListFolderError errorValue; + + public ListFolderErrorException(String routeName, String requestId, LocalizedText userMessage, ListFolderError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder.java new file mode 100644 index 000000000..9a10005d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderGetLatestCursorBuilder.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.fileproperties.TemplateFilterBase; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#listFolderGetLatestCursorBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListFolderGetLatestCursorBuilder { + private final DbxUserFilesRequests _client; + private final ListFolderArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListFolderGetLatestCursorBuilder(DbxUserFilesRequests _client, ListFolderArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param recursive If true, the list folder operation will be applied + * recursively to all subfolders and the response will contain contents + * of all subfolders. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withRecursive(Boolean recursive) { + this._builder.withRecursive(recursive); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeMediaInfo If true, {@link FileMetadata#getMediaInfo} is + * set for photo and video. This parameter will no longer have an effect + * starting December 2, 2019. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withIncludeMediaInfo(Boolean includeMediaInfo) { + this._builder.withIncludeMediaInfo(includeMediaInfo); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeDeleted If true, the results will include entries for + * files and folders that used to exist but were deleted. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withIncludeDeleted(Boolean includeDeleted) { + this._builder.withIncludeDeleted(includeDeleted); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeHasExplicitSharedMembers If true, the results will include + * a flag for each file indicating whether or not that file has any + * explicit members. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withIncludeHasExplicitSharedMembers(Boolean includeHasExplicitSharedMembers) { + this._builder.withIncludeHasExplicitSharedMembers(includeHasExplicitSharedMembers); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeMountedFolders If true, the results will include entries + * under mounted folders which includes app folder, shared folder and + * team folder. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withIncludeMountedFolders(Boolean includeMountedFolders) { + this._builder.withIncludeMountedFolders(includeMountedFolders); + return this; + } + + /** + * Set value for optional field. + * + * @param limit The maximum number of results to return per request. Note: + * This is an approximate number and there can be slightly more entries + * returned in some cases. Must be greater than or equal to 1 and be + * less than or equal to 2000. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderGetLatestCursorBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLink A shared link to list the contents of. If the link is + * password-protected, the password must be provided. If this field is + * present, {@link ListFolderArg#getPath} will be relative to root of + * the shared link. Only non-recursive mode is supported for shared + * link. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withSharedLink(SharedLink sharedLink) { + this._builder.withSharedLink(sharedLink); + return this; + } + + /** + * Set value for optional field. + * + * @param includePropertyGroups If set to a valid list of template IDs, + * {@link FileMetadata#getPropertyGroups} is set if there exists + * property data associated with the file and each of the listed + * templates. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withIncludePropertyGroups(TemplateFilterBase includePropertyGroups) { + this._builder.withIncludePropertyGroups(includePropertyGroups); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeNonDownloadableFiles If true, include files that are not + * downloadable, i.e. Google Docs. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public ListFolderGetLatestCursorBuilder withIncludeNonDownloadableFiles(Boolean includeNonDownloadableFiles) { + this._builder.withIncludeNonDownloadableFiles(includeNonDownloadableFiles); + return this; + } + + /** + * Issues the request. + */ + public ListFolderGetLatestCursorResult start() throws ListFolderErrorException, DbxException { + ListFolderArg arg_ = this._builder.build(); + return _client.listFolderGetLatestCursor(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderGetLatestCursorResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderGetLatestCursorResult.java new file mode 100644 index 000000000..be4a5aaca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderGetLatestCursorResult.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ListFolderGetLatestCursorResult { + // struct files.ListFolderGetLatestCursorResult (files.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor Pass the cursor into {@link + * DbxUserFilesRequests#listFolderContinue(String)} to see what's + * changed in the folder since your previous query. Must have length of + * at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderGetLatestCursorResult(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + this.cursor = cursor; + } + + /** + * Pass the cursor into {@link + * DbxUserFilesRequests#listFolderContinue(String)} to see what's changed in + * the folder since your previous query. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderGetLatestCursorResult other = (ListFolderGetLatestCursorResult) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderGetLatestCursorResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderGetLatestCursorResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderGetLatestCursorResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFolderGetLatestCursorResult(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollArg.java new file mode 100644 index 000000000..c846333eb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollArg.java @@ -0,0 +1,213 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListFolderLongpollArg { + // struct files.ListFolderLongpollArg (files.stone) + + @Nonnull + protected final String cursor; + protected final long timeout; + + /** + * + * @param cursor A cursor as returned by {@link + * DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)}. Cursors retrieved + * by setting {@link ListFolderArg#getIncludeMediaInfo} to {@code true} + * are not supported. Must have length of at least 1 and not be {@code + * null}. + * @param timeout A timeout in seconds. The request will block for at most + * this length of time, plus up to 90 seconds of random jitter added to + * avoid the thundering herd problem. Care should be taken when using + * this parameter, as some network infrastructure does not support long + * timeouts. Must be greater than or equal to 30 and be less than or + * equal to 480. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderLongpollArg(@Nonnull String cursor, long timeout) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + this.cursor = cursor; + if (timeout < 30L) { + throw new IllegalArgumentException("Number 'timeout' is smaller than 30L"); + } + if (timeout > 480L) { + throw new IllegalArgumentException("Number 'timeout' is larger than 480L"); + } + this.timeout = timeout; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param cursor A cursor as returned by {@link + * DbxUserFilesRequests#listFolder(String)} or {@link + * DbxUserFilesRequests#listFolderContinue(String)}. Cursors retrieved + * by setting {@link ListFolderArg#getIncludeMediaInfo} to {@code true} + * are not supported. Must have length of at least 1 and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderLongpollArg(@Nonnull String cursor) { + this(cursor, 30L); + } + + /** + * A cursor as returned by {@link DbxUserFilesRequests#listFolder(String)} + * or {@link DbxUserFilesRequests#listFolderContinue(String)}. Cursors + * retrieved by setting {@link ListFolderArg#getIncludeMediaInfo} to {@code + * true} are not supported. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * A timeout in seconds. The request will block for at most this length of + * time, plus up to 90 seconds of random jitter added to avoid the + * thundering herd problem. Care should be taken when using this parameter, + * as some network infrastructure does not support long timeouts. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 30L. + */ + public long getTimeout() { + return timeout; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor, + this.timeout + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderLongpollArg other = (ListFolderLongpollArg) obj; + return ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.timeout == other.timeout) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderLongpollArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("timeout"); + StoneSerializers.uInt64().serialize(value.timeout, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderLongpollArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderLongpollArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + Long f_timeout = 30L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("timeout".equals(field)) { + f_timeout = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFolderLongpollArg(f_cursor, f_timeout); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollError.java new file mode 100644 index 000000000..1c8512f19 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollError.java @@ -0,0 +1,85 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListFolderLongpollError { + // union files.ListFolderLongpollError (files.stone) + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxUserFilesRequests#listFolder(String)} to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderLongpollError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFolderLongpollError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFolderLongpollError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("reset".equals(tag)) { + value = ListFolderLongpollError.RESET; + } + else { + value = ListFolderLongpollError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollErrorException.java new file mode 100644 index 000000000..28d9839da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFolderLongpollError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#listFolderLongpoll(String,long)}.

+ */ +public class ListFolderLongpollErrorException extends DbxApiException { + // exception for routes: + // 2/files/list_folder/longpoll + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#listFolderLongpoll(String,long)}. + */ + public final ListFolderLongpollError errorValue; + + public ListFolderLongpollErrorException(String routeName, String requestId, LocalizedText userMessage, ListFolderLongpollError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollResult.java new file mode 100644 index 000000000..d3b8ee850 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollResult.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ListFolderLongpollResult { + // struct files.ListFolderLongpollResult (files.stone) + + protected final boolean changes; + @Nullable + protected final Long backoff; + + /** + * + * @param changes Indicates whether new changes are available. If true, + * call {@link DbxUserFilesRequests#listFolderContinue(String)} to + * retrieve the changes. + * @param backoff If present, backoff for at least this many seconds before + * calling {@link DbxUserFilesRequests#listFolderLongpoll(String,long)} + * again. + */ + public ListFolderLongpollResult(boolean changes, @Nullable Long backoff) { + this.changes = changes; + this.backoff = backoff; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param changes Indicates whether new changes are available. If true, + * call {@link DbxUserFilesRequests#listFolderContinue(String)} to + * retrieve the changes. + */ + public ListFolderLongpollResult(boolean changes) { + this(changes, null); + } + + /** + * Indicates whether new changes are available. If true, call {@link + * DbxUserFilesRequests#listFolderContinue(String)} to retrieve the changes. + * + * @return value for this field. + */ + public boolean getChanges() { + return changes; + } + + /** + * If present, backoff for at least this many seconds before calling {@link + * DbxUserFilesRequests#listFolderLongpoll(String,long)} again. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getBackoff() { + return backoff; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.changes, + this.backoff + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderLongpollResult other = (ListFolderLongpollResult) obj; + return (this.changes == other.changes) + && ((this.backoff == other.backoff) || (this.backoff != null && this.backoff.equals(other.backoff))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderLongpollResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("changes"); + StoneSerializers.boolean_().serialize(value.changes, g); + if (value.backoff != null) { + g.writeFieldName("backoff"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.backoff, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderLongpollResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderLongpollResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_changes = null; + Long f_backoff = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("changes".equals(field)) { + f_changes = StoneSerializers.boolean_().deserialize(p); + } + else if ("backoff".equals(field)) { + f_backoff = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_changes == null) { + throw new JsonParseException(p, "Required field \"changes\" missing."); + } + value = new ListFolderLongpollResult(f_changes, f_backoff); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderResult.java new file mode 100644 index 000000000..13fe34eac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderResult.java @@ -0,0 +1,217 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class ListFolderResult { + // struct files.ListFolderResult (files.stone) + + @Nonnull + protected final List entries; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * + * @param entries The files and (direct) subfolders in the folder. Must not + * contain a {@code null} item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxAppFilesRequests#listFolderContinue(String)} to see what's changed + * in the folder since your previous query. Must have length of at least + * 1 and not be {@code null}. + * @param hasMore If true, then there are more entries available. Pass the + * cursor to {@link DbxAppFilesRequests#listFolderContinue(String)} to + * retrieve the rest. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderResult(@Nonnull List entries, @Nonnull String cursor, boolean hasMore) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (Metadata x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * The files and (direct) subfolders in the folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * Pass the cursor into {@link + * DbxAppFilesRequests#listFolderContinue(String)} to see what's changed in + * the folder since your previous query. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * If true, then there are more entries available. Pass the cursor to {@link + * DbxAppFilesRequests#listFolderContinue(String)} to retrieve the rest. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderResult other = (ListFolderResult) obj; + return ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(Metadata.Serializer.INSTANCE).serialize(value.entries, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(Metadata.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListFolderResult(f_entries, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsArg.java new file mode 100644 index 000000000..09980e0bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsArg.java @@ -0,0 +1,333 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class ListRevisionsArg { + // struct files.ListRevisionsArg (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final ListRevisionsMode mode; + protected final long limit; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path to the file you want to see the revisions of. Must + * match pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and + * not be {@code null}. + * @param mode Determines the behavior of the API in listing the revisions + * for a given file path or id. Must not be {@code null}. + * @param limit The maximum number of revision entries returned. Must be + * greater than or equal to 1 and be less than or equal to 100. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsArg(@Nonnull String path, @Nonnull ListRevisionsMode mode, long limit) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (mode == null) { + throw new IllegalArgumentException("Required value for 'mode' is null"); + } + this.mode = mode; + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 100L) { + throw new IllegalArgumentException("Number 'limit' is larger than 100L"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path to the file you want to see the revisions of. Must + * match pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsArg(@Nonnull String path) { + this(path, ListRevisionsMode.PATH, 10L); + } + + /** + * The path to the file you want to see the revisions of. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Determines the behavior of the API in listing the revisions for a given + * file path or id. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ListRevisionsMode.PATH. + */ + @Nonnull + public ListRevisionsMode getMode() { + return mode; + } + + /** + * The maximum number of revision entries returned. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 10L. + */ + public long getLimit() { + return limit; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path to the file you want to see the revisions of. Must + * match pattern "{@code /(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)}" and + * not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link ListRevisionsArg}. + */ + public static class Builder { + protected final String path; + + protected ListRevisionsMode mode; + protected long limit; + + protected Builder(String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.mode = ListRevisionsMode.PATH; + this.limit = 10L; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListRevisionsMode.PATH}.

+ * + * @param mode Determines the behavior of the API in listing the + * revisions for a given file path or id. Must not be {@code null}. + * Defaults to {@code ListRevisionsMode.PATH} when set to {@code + * null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMode(ListRevisionsMode mode) { + if (mode != null) { + this.mode = mode; + } + else { + this.mode = ListRevisionsMode.PATH; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 10L}. + *

+ * + * @param limit The maximum number of revision entries returned. Must + * be greater than or equal to 1 and be less than or equal to 100. + * Defaults to {@code 10L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 100L) { + throw new IllegalArgumentException("Number 'limit' is larger than 100L"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 10L; + } + return this; + } + + /** + * Builds an instance of {@link ListRevisionsArg} configured with this + * builder's values + * + * @return new instance of {@link ListRevisionsArg} + */ + public ListRevisionsArg build() { + return new ListRevisionsArg(path, mode, limit); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.mode, + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListRevisionsArg other = (ListRevisionsArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.mode == other.mode) || (this.mode.equals(other.mode))) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListRevisionsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("mode"); + ListRevisionsMode.Serializer.INSTANCE.serialize(value.mode, g); + g.writeFieldName("limit"); + StoneSerializers.uInt64().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListRevisionsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListRevisionsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + ListRevisionsMode f_mode = ListRevisionsMode.PATH; + Long f_limit = 10L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("mode".equals(field)) { + f_mode = ListRevisionsMode.Serializer.INSTANCE.deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new ListRevisionsArg(f_path, f_mode, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsBuilder.java new file mode 100644 index 000000000..85fed694e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsBuilder.java @@ -0,0 +1,85 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#listRevisionsBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListRevisionsBuilder { + private final DbxUserFilesRequests _client; + private final ListRevisionsArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListRevisionsBuilder(DbxUserFilesRequests _client, ListRevisionsArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListRevisionsMode.PATH}.

+ * + * @param mode Determines the behavior of the API in listing the revisions + * for a given file path or id. Must not be {@code null}. Defaults to + * {@code ListRevisionsMode.PATH} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsBuilder withMode(ListRevisionsMode mode) { + this._builder.withMode(mode); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 10L}.

+ * + * @param limit The maximum number of revision entries returned. Must be + * greater than or equal to 1 and be less than or equal to 100. Defaults + * to {@code 10L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Issues the request. + */ + public ListRevisionsResult start() throws ListRevisionsErrorException, DbxException { + ListRevisionsArg arg_ = this._builder.build(); + return _client.listRevisions(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsError.java new file mode 100644 index 000000000..219706354 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsError.java @@ -0,0 +1,277 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListRevisionsError { + // union files.ListRevisionsError (files.stone) + + /** + * Discriminating tag type for {@link ListRevisionsError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListRevisionsError OTHER = new ListRevisionsError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListRevisionsError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListRevisionsError withTag(Tag _tag) { + ListRevisionsError result = new ListRevisionsError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListRevisionsError withTagAndPath(Tag _tag, LookupError pathValue) { + ListRevisionsError result = new ListRevisionsError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListRevisionsError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code ListRevisionsError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListRevisionsError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListRevisionsError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListRevisionsError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListRevisionsError) { + ListRevisionsError other = (ListRevisionsError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListRevisionsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListRevisionsError deserialize(JsonParser p) throws IOException, JsonParseException { + ListRevisionsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = ListRevisionsError.path(fieldValue); + } + else { + value = ListRevisionsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsErrorException.java new file mode 100644 index 000000000..942edbd67 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListRevisionsError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#listRevisions(String)}.

+ */ +public class ListRevisionsErrorException extends DbxApiException { + // exception for routes: + // 2/files/list_revisions + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#listRevisions(String)}. + */ + public final ListRevisionsError errorValue; + + public ListRevisionsErrorException(String routeName, String requestId, LocalizedText userMessage, ListRevisionsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsMode.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsMode.java new file mode 100644 index 000000000..1272b4917 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsMode.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListRevisionsMode { + // union files.ListRevisionsMode (files.stone) + /** + * Returns revisions with the same file path as identified by the latest + * file entry at the given file path or id. + */ + PATH, + /** + * Returns revisions with the same file id as identified by the latest file + * entry at the given file path or id. + */ + ID, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListRevisionsMode value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PATH: { + g.writeString("path"); + break; + } + case ID: { + g.writeString("id"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListRevisionsMode deserialize(JsonParser p) throws IOException, JsonParseException { + ListRevisionsMode value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + value = ListRevisionsMode.PATH; + } + else if ("id".equals(tag)) { + value = ListRevisionsMode.ID; + } + else { + value = ListRevisionsMode.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsResult.java new file mode 100644 index 000000000..ef81789d0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsResult.java @@ -0,0 +1,227 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ListRevisionsResult { + // struct files.ListRevisionsResult (files.stone) + + protected final boolean isDeleted; + @Nullable + protected final Date serverDeleted; + @Nonnull + protected final List entries; + + /** + * + * @param isDeleted If the file identified by the latest revision in the + * response is either deleted or moved. + * @param entries The revisions for the file. Only revisions that are not + * deleted will show up here. Must not contain a {@code null} item and + * not be {@code null}. + * @param serverDeleted The time of deletion if the file was deleted. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsResult(boolean isDeleted, @Nonnull List entries, @Nullable Date serverDeleted) { + this.isDeleted = isDeleted; + this.serverDeleted = LangUtil.truncateMillis(serverDeleted); + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (FileMetadata x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param isDeleted If the file identified by the latest revision in the + * response is either deleted or moved. + * @param entries The revisions for the file. Only revisions that are not + * deleted will show up here. Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListRevisionsResult(boolean isDeleted, @Nonnull List entries) { + this(isDeleted, entries, null); + } + + /** + * If the file identified by the latest revision in the response is either + * deleted or moved. + * + * @return value for this field. + */ + public boolean getIsDeleted() { + return isDeleted; + } + + /** + * The revisions for the file. Only revisions that are not deleted will show + * up here. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * The time of deletion if the file was deleted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getServerDeleted() { + return serverDeleted; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isDeleted, + this.serverDeleted, + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListRevisionsResult other = (ListRevisionsResult) obj; + return (this.isDeleted == other.isDeleted) + && ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && ((this.serverDeleted == other.serverDeleted) || (this.serverDeleted != null && this.serverDeleted.equals(other.serverDeleted))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListRevisionsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("is_deleted"); + StoneSerializers.boolean_().serialize(value.isDeleted, g); + g.writeFieldName("entries"); + StoneSerializers.list(FileMetadata.Serializer.INSTANCE).serialize(value.entries, g); + if (value.serverDeleted != null) { + g.writeFieldName("server_deleted"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.serverDeleted, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListRevisionsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListRevisionsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isDeleted = null; + List f_entries = null; + Date f_serverDeleted = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_deleted".equals(field)) { + f_isDeleted = StoneSerializers.boolean_().deserialize(p); + } + else if ("entries".equals(field)) { + f_entries = StoneSerializers.list(FileMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("server_deleted".equals(field)) { + f_serverDeleted = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_isDeleted == null) { + throw new JsonParseException(p, "Required field \"is_deleted\" missing."); + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new ListRevisionsResult(f_isDeleted, f_entries, f_serverDeleted); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockConflictError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockConflictError.java new file mode 100644 index 000000000..050f0ce94 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockConflictError.java @@ -0,0 +1,147 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LockConflictError { + // struct files.LockConflictError (files.stone) + + @Nonnull + protected final FileLock lock; + + /** + * + * @param lock The lock that caused the conflict. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockConflictError(@Nonnull FileLock lock) { + if (lock == null) { + throw new IllegalArgumentException("Required value for 'lock' is null"); + } + this.lock = lock; + } + + /** + * The lock that caused the conflict. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileLock getLock() { + return lock; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.lock + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LockConflictError other = (LockConflictError) obj; + return (this.lock == other.lock) || (this.lock.equals(other.lock)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockConflictError value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("lock"); + FileLock.Serializer.INSTANCE.serialize(value.lock, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LockConflictError deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LockConflictError value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileLock f_lock = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("lock".equals(field)) { + f_lock = FileLock.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_lock == null) { + throw new JsonParseException(p, "Required field \"lock\" missing."); + } + value = new LockConflictError(f_lock); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileArg.java new file mode 100644 index 000000000..84080351c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileArg.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class LockFileArg { + // struct files.LockFileArg (files.stone) + + @Nonnull + protected final String path; + + /** + * + * @param path Path in the user's Dropbox to a file. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockFileArg(@Nonnull String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + } + + /** + * Path in the user's Dropbox to a file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LockFileArg other = (LockFileArg) obj; + return (this.path == other.path) || (this.path.equals(other.path)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockFileArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LockFileArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LockFileArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new LockFileArg(f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileBatchArg.java new file mode 100644 index 000000000..292d62cfd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileBatchArg.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class LockFileBatchArg { + // struct files.LockFileBatchArg (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries List of 'entries'. Each 'entry' contains a path of the + * file which will be locked or queried. Duplicate path arguments in the + * batch are considered only once. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockFileBatchArg(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (LockFileArg x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * List of 'entries'. Each 'entry' contains a path of the file which will be + * locked or queried. Duplicate path arguments in the batch are considered + * only once. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LockFileBatchArg other = (LockFileBatchArg) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockFileBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(LockFileArg.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LockFileBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LockFileBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(LockFileArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new LockFileBatchArg(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileBatchResult.java new file mode 100644 index 000000000..53cda83a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileBatchResult.java @@ -0,0 +1,159 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class LockFileBatchResult extends FileOpsResult { + // struct files.LockFileBatchResult (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Each Entry in the 'entries' will have '.tag' with the + * operation status (e.g. success), the metadata for the file and the + * lock state after the operation. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockFileBatchResult(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (LockFileResultEntry x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * Each Entry in the 'entries' will have '.tag' with the operation status + * (e.g. success), the metadata for the file and the lock state after the + * operation. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LockFileBatchResult other = (LockFileBatchResult) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockFileBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(LockFileResultEntry.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LockFileBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LockFileBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(LockFileResultEntry.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new LockFileBatchResult(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileError.java new file mode 100644 index 000000000..9a6e57ab6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileError.java @@ -0,0 +1,545 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class LockFileError { + // union files.LockFileError (files.stone) + + /** + * Discriminating tag type for {@link LockFileError}. + */ + public enum Tag { + /** + * Could not find the specified resource. + */ + PATH_LOOKUP, // LookupError + /** + * There are too many write operations in user's Dropbox. Please retry + * this request. + */ + TOO_MANY_WRITE_OPERATIONS, + /** + * There are too many files in one request. Please retry with fewer + * files. + */ + TOO_MANY_FILES, + /** + * The user does not have permissions to change the lock state or access + * the file. + */ + NO_WRITE_PERMISSION, + /** + * Item is a type that cannot be locked. + */ + CANNOT_BE_LOCKED, + /** + * Requested file is not currently shared. + */ + FILE_NOT_SHARED, + /** + * The user action conflicts with an existing lock on the file. + */ + LOCK_CONFLICT, // LockConflictError + /** + * Something went wrong with the job on Dropbox's end. You'll need to + * verify that the action you were taking succeeded, and if not, try + * again. This should happen very rarely. + */ + INTERNAL_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * There are too many write operations in user's Dropbox. Please retry this + * request. + */ + public static final LockFileError TOO_MANY_WRITE_OPERATIONS = new LockFileError().withTag(Tag.TOO_MANY_WRITE_OPERATIONS); + /** + * There are too many files in one request. Please retry with fewer files. + */ + public static final LockFileError TOO_MANY_FILES = new LockFileError().withTag(Tag.TOO_MANY_FILES); + /** + * The user does not have permissions to change the lock state or access the + * file. + */ + public static final LockFileError NO_WRITE_PERMISSION = new LockFileError().withTag(Tag.NO_WRITE_PERMISSION); + /** + * Item is a type that cannot be locked. + */ + public static final LockFileError CANNOT_BE_LOCKED = new LockFileError().withTag(Tag.CANNOT_BE_LOCKED); + /** + * Requested file is not currently shared. + */ + public static final LockFileError FILE_NOT_SHARED = new LockFileError().withTag(Tag.FILE_NOT_SHARED); + /** + * Something went wrong with the job on Dropbox's end. You'll need to verify + * that the action you were taking succeeded, and if not, try again. This + * should happen very rarely. + */ + public static final LockFileError INTERNAL_ERROR = new LockFileError().withTag(Tag.INTERNAL_ERROR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final LockFileError OTHER = new LockFileError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathLookupValue; + private LockConflictError lockConflictValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LockFileError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private LockFileError withTag(Tag _tag) { + LockFileError result = new LockFileError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathLookupValue Could not find the specified resource. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LockFileError withTagAndPathLookup(Tag _tag, LookupError pathLookupValue) { + LockFileError result = new LockFileError(); + result._tag = _tag; + result.pathLookupValue = pathLookupValue; + return result; + } + + /** + * + * @param lockConflictValue The user action conflicts with an existing lock + * on the file. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LockFileError withTagAndLockConflict(Tag _tag, LockConflictError lockConflictValue) { + LockFileError result = new LockFileError(); + result._tag = _tag; + result.lockConflictValue = lockConflictValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LockFileError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PATH_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PATH_LOOKUP}, {@code false} otherwise. + */ + public boolean isPathLookup() { + return this._tag == Tag.PATH_LOOKUP; + } + + /** + * Returns an instance of {@code LockFileError} that has its tag set to + * {@link Tag#PATH_LOOKUP}. + * + *

Could not find the specified resource.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LockFileError} with its tag set to {@link + * Tag#PATH_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LockFileError pathLookup(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LockFileError().withTagAndPathLookup(Tag.PATH_LOOKUP, value); + } + + /** + * Could not find the specified resource. + * + *

This instance must be tagged as {@link Tag#PATH_LOOKUP}.

+ * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPathLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isPathLookup} is {@code false}. + */ + public LookupError getPathLookupValue() { + if (this._tag != Tag.PATH_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.PATH_LOOKUP, but was Tag." + this._tag.name()); + } + return pathLookupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + */ + public boolean isTooManyWriteOperations() { + return this._tag == Tag.TOO_MANY_WRITE_OPERATIONS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_WRITE_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_WRITE_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoWritePermission() { + return this._tag == Tag.NO_WRITE_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANNOT_BE_LOCKED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANNOT_BE_LOCKED}, {@code false} otherwise. + */ + public boolean isCannotBeLocked() { + return this._tag == Tag.CANNOT_BE_LOCKED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_NOT_SHARED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_NOT_SHARED}, {@code false} otherwise. + */ + public boolean isFileNotShared() { + return this._tag == Tag.FILE_NOT_SHARED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LOCK_CONFLICT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LOCK_CONFLICT}, {@code false} otherwise. + */ + public boolean isLockConflict() { + return this._tag == Tag.LOCK_CONFLICT; + } + + /** + * Returns an instance of {@code LockFileError} that has its tag set to + * {@link Tag#LOCK_CONFLICT}. + * + *

The user action conflicts with an existing lock on the file.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LockFileError} with its tag set to {@link + * Tag#LOCK_CONFLICT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LockFileError lockConflict(LockConflictError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LockFileError().withTagAndLockConflict(Tag.LOCK_CONFLICT, value); + } + + /** + * The user action conflicts with an existing lock on the file. + * + *

This instance must be tagged as {@link Tag#LOCK_CONFLICT}.

+ * + * @return The {@link LockConflictError} value associated with this instance + * if {@link #isLockConflict} is {@code true}. + * + * @throws IllegalStateException If {@link #isLockConflict} is {@code + * false}. + */ + public LockConflictError getLockConflictValue() { + if (this._tag != Tag.LOCK_CONFLICT) { + throw new IllegalStateException("Invalid tag: required Tag.LOCK_CONFLICT, but was Tag." + this._tag.name()); + } + return lockConflictValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + */ + public boolean isInternalError() { + return this._tag == Tag.INTERNAL_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathLookupValue, + this.lockConflictValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LockFileError) { + LockFileError other = (LockFileError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH_LOOKUP: + return (this.pathLookupValue == other.pathLookupValue) || (this.pathLookupValue.equals(other.pathLookupValue)); + case TOO_MANY_WRITE_OPERATIONS: + return true; + case TOO_MANY_FILES: + return true; + case NO_WRITE_PERMISSION: + return true; + case CANNOT_BE_LOCKED: + return true; + case FILE_NOT_SHARED: + return true; + case LOCK_CONFLICT: + return (this.lockConflictValue == other.lockConflictValue) || (this.lockConflictValue.equals(other.lockConflictValue)); + case INTERNAL_ERROR: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockFileError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH_LOOKUP: { + g.writeStartObject(); + writeTag("path_lookup", g); + g.writeFieldName("path_lookup"); + LookupError.Serializer.INSTANCE.serialize(value.pathLookupValue, g); + g.writeEndObject(); + break; + } + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + case NO_WRITE_PERMISSION: { + g.writeString("no_write_permission"); + break; + } + case CANNOT_BE_LOCKED: { + g.writeString("cannot_be_locked"); + break; + } + case FILE_NOT_SHARED: { + g.writeString("file_not_shared"); + break; + } + case LOCK_CONFLICT: { + g.writeStartObject(); + writeTag("lock_conflict", g); + LockConflictError.Serializer.INSTANCE.serialize(value.lockConflictValue, g, true); + g.writeEndObject(); + break; + } + case INTERNAL_ERROR: { + g.writeString("internal_error"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LockFileError deserialize(JsonParser p) throws IOException, JsonParseException { + LockFileError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path_lookup".equals(tag)) { + LookupError fieldValue = null; + expectField("path_lookup", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = LockFileError.pathLookup(fieldValue); + } + else if ("too_many_write_operations".equals(tag)) { + value = LockFileError.TOO_MANY_WRITE_OPERATIONS; + } + else if ("too_many_files".equals(tag)) { + value = LockFileError.TOO_MANY_FILES; + } + else if ("no_write_permission".equals(tag)) { + value = LockFileError.NO_WRITE_PERMISSION; + } + else if ("cannot_be_locked".equals(tag)) { + value = LockFileError.CANNOT_BE_LOCKED; + } + else if ("file_not_shared".equals(tag)) { + value = LockFileError.FILE_NOT_SHARED; + } + else if ("lock_conflict".equals(tag)) { + LockConflictError fieldValue = null; + fieldValue = LockConflictError.Serializer.INSTANCE.deserialize(p, true); + value = LockFileError.lockConflict(fieldValue); + } + else if ("internal_error".equals(tag)) { + value = LockFileError.INTERNAL_ERROR; + } + else { + value = LockFileError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileErrorException.java new file mode 100644 index 000000000..2b1f03db8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileErrorException.java @@ -0,0 +1,40 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link LockFileError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#getFileLockBatch(java.util.List)}, {@link + * DbxUserFilesRequests#lockFileBatch(java.util.List)}, and {@link + * DbxUserFilesRequests#unlockFileBatch(java.util.List)}.

+ */ +public class LockFileErrorException extends DbxApiException { + // exception for routes: + // 2/files/get_file_lock_batch + // 2/files/lock_file_batch + // 2/files/unlock_file_batch + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#getFileLockBatch(java.util.List)}, {@link + * DbxUserFilesRequests#lockFileBatch(java.util.List)}, and {@link + * DbxUserFilesRequests#unlockFileBatch(java.util.List)}. + */ + public final LockFileError errorValue; + + public LockFileErrorException(String routeName, String requestId, LocalizedText userMessage, LockFileError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileResult.java new file mode 100644 index 000000000..0117cbfd3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileResult.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LockFileResult { + // struct files.LockFileResult (files.stone) + + @Nonnull + protected final Metadata metadata; + @Nonnull + protected final FileLock lock; + + /** + * + * @param metadata Metadata of the file. Must not be {@code null}. + * @param lock The file lock state after the operation. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LockFileResult(@Nonnull Metadata metadata, @Nonnull FileLock lock) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + if (lock == null) { + throw new IllegalArgumentException("Required value for 'lock' is null"); + } + this.lock = lock; + } + + /** + * Metadata of the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + /** + * The file lock state after the operation. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileLock getLock() { + return lock; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata, + this.lock + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LockFileResult other = (LockFileResult) obj; + return ((this.metadata == other.metadata) || (this.metadata.equals(other.metadata))) + && ((this.lock == other.lock) || (this.lock.equals(other.lock))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockFileResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + g.writeFieldName("lock"); + FileLock.Serializer.INSTANCE.serialize(value.lock, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LockFileResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LockFileResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Metadata f_metadata = null; + FileLock f_lock = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else if ("lock".equals(field)) { + f_lock = FileLock.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + if (f_lock == null) { + throw new JsonParseException(p, "Required field \"lock\" missing."); + } + value = new LockFileResult(f_metadata, f_lock); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileResultEntry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileResultEntry.java new file mode 100644 index 000000000..91922ea19 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LockFileResultEntry.java @@ -0,0 +1,317 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class LockFileResultEntry { + // union files.LockFileResultEntry (files.stone) + + /** + * Discriminating tag type for {@link LockFileResultEntry}. + */ + public enum Tag { + SUCCESS, // LockFileResult + FAILURE; // LockFileError + } + + private Tag _tag; + private LockFileResult successValue; + private LockFileError failureValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LockFileResultEntry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private LockFileResultEntry withTag(Tag _tag) { + LockFileResultEntry result = new LockFileResultEntry(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LockFileResultEntry withTagAndSuccess(Tag _tag, LockFileResult successValue) { + LockFileResultEntry result = new LockFileResultEntry(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param failureValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LockFileResultEntry withTagAndFailure(Tag _tag, LockFileError failureValue) { + LockFileResultEntry result = new LockFileResultEntry(); + result._tag = _tag; + result.failureValue = failureValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LockFileResultEntry}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code LockFileResultEntry} that has its tag set + * to {@link Tag#SUCCESS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LockFileResultEntry} with its tag set to + * {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LockFileResultEntry success(LockFileResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LockFileResultEntry().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * This instance must be tagged as {@link Tag#SUCCESS}. + * + * @return The {@link LockFileResult} value associated with this instance if + * {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public LockFileResult getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILURE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILURE}, + * {@code false} otherwise. + */ + public boolean isFailure() { + return this._tag == Tag.FAILURE; + } + + /** + * Returns an instance of {@code LockFileResultEntry} that has its tag set + * to {@link Tag#FAILURE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LockFileResultEntry} with its tag set to + * {@link Tag#FAILURE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LockFileResultEntry failure(LockFileError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LockFileResultEntry().withTagAndFailure(Tag.FAILURE, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILURE}. + * + * @return The {@link LockFileError} value associated with this instance if + * {@link #isFailure} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailure} is {@code false}. + */ + public LockFileError getFailureValue() { + if (this._tag != Tag.FAILURE) { + throw new IllegalStateException("Invalid tag: required Tag.FAILURE, but was Tag." + this._tag.name()); + } + return failureValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.failureValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LockFileResultEntry) { + LockFileResultEntry other = (LockFileResultEntry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case FAILURE: + return (this.failureValue == other.failureValue) || (this.failureValue.equals(other.failureValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockFileResultEntry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + LockFileResult.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case FAILURE: { + g.writeStartObject(); + writeTag("failure", g); + g.writeFieldName("failure"); + LockFileError.Serializer.INSTANCE.serialize(value.failureValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public LockFileResultEntry deserialize(JsonParser p) throws IOException, JsonParseException { + LockFileResultEntry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + LockFileResult fieldValue = null; + fieldValue = LockFileResult.Serializer.INSTANCE.deserialize(p, true); + value = LockFileResultEntry.success(fieldValue); + } + else if ("failure".equals(tag)) { + LockFileError fieldValue = null; + expectField("failure", p); + fieldValue = LockFileError.Serializer.INSTANCE.deserialize(p); + value = LockFileResultEntry.failure(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LookupError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LookupError.java new file mode 100644 index 000000000..5b3a3c08e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/LookupError.java @@ -0,0 +1,484 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class LookupError { + // union files.LookupError (files.stone) + + /** + * Discriminating tag type for {@link LookupError}. + */ + public enum Tag { + /** + * The given path does not satisfy the required path format. Please + * refer to the Path + * formats documentation for more information. + */ + MALFORMED_PATH, // String + /** + * There is nothing at the given path. + */ + NOT_FOUND, + /** + * We were expecting a file, but the given path refers to something that + * isn't a file. + */ + NOT_FILE, + /** + * We were expecting a folder, but the given path refers to something + * that isn't a folder. + */ + NOT_FOLDER, + /** + * The file cannot be transferred because the content is restricted. For + * example, we might restrict a file due to legal requirements. + */ + RESTRICTED_CONTENT, + /** + * This operation is not supported for this content type. + */ + UNSUPPORTED_CONTENT_TYPE, + /** + * The given path is locked. + */ + LOCKED, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * There is nothing at the given path. + */ + public static final LookupError NOT_FOUND = new LookupError().withTag(Tag.NOT_FOUND); + /** + * We were expecting a file, but the given path refers to something that + * isn't a file. + */ + public static final LookupError NOT_FILE = new LookupError().withTag(Tag.NOT_FILE); + /** + * We were expecting a folder, but the given path refers to something that + * isn't a folder. + */ + public static final LookupError NOT_FOLDER = new LookupError().withTag(Tag.NOT_FOLDER); + /** + * The file cannot be transferred because the content is restricted. For + * example, we might restrict a file due to legal requirements. + */ + public static final LookupError RESTRICTED_CONTENT = new LookupError().withTag(Tag.RESTRICTED_CONTENT); + /** + * This operation is not supported for this content type. + */ + public static final LookupError UNSUPPORTED_CONTENT_TYPE = new LookupError().withTag(Tag.UNSUPPORTED_CONTENT_TYPE); + /** + * The given path is locked. + */ + public static final LookupError LOCKED = new LookupError().withTag(Tag.LOCKED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final LookupError OTHER = new LookupError().withTag(Tag.OTHER); + + private Tag _tag; + private String malformedPathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LookupError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private LookupError withTag(Tag _tag) { + LookupError result = new LookupError(); + result._tag = _tag; + return result; + } + + /** + * + * @param malformedPathValue The given path does not satisfy the required + * path format. Please refer to the Path + * formats documentation for more information. + * @param _tag Discriminating tag for this instance. + */ + private LookupError withTagAndMalformedPath(Tag _tag, String malformedPathValue) { + LookupError result = new LookupError(); + result._tag = _tag; + result.malformedPathValue = malformedPathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LookupError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MALFORMED_PATH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MALFORMED_PATH}, {@code false} otherwise. + */ + public boolean isMalformedPath() { + return this._tag == Tag.MALFORMED_PATH; + } + + /** + * Returns an instance of {@code LookupError} that has its tag set to {@link + * Tag#MALFORMED_PATH}. + * + *

The given path does not satisfy the required path format. Please + * refer to the Path + * formats documentation for more information.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LookupError} with its tag set to {@link + * Tag#MALFORMED_PATH}. + */ + public static LookupError malformedPath(String value) { + return new LookupError().withTagAndMalformedPath(Tag.MALFORMED_PATH, value); + } + + /** + * Returns an instance of {@code LookupError} that has its tag set to {@link + * Tag#MALFORMED_PATH}. + * + *

The given path does not satisfy the required path format. Please + * refer to the Path + * formats documentation for more information.

+ * + * @return Instance of {@code LookupError} with its tag set to {@link + * Tag#MALFORMED_PATH}. + */ + public static LookupError malformedPath() { + return malformedPath(null); + } + + /** + * The given path does not satisfy the required path format. Please refer to + * the Path + * formats documentation for more information. + * + *

This instance must be tagged as {@link Tag#MALFORMED_PATH}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isMalformedPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isMalformedPath} is {@code + * false}. + */ + public String getMalformedPathValue() { + if (this._tag != Tag.MALFORMED_PATH) { + throw new IllegalStateException("Invalid tag: required Tag.MALFORMED_PATH, but was Tag." + this._tag.name()); + } + return malformedPathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FILE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FILE}, + * {@code false} otherwise. + */ + public boolean isNotFile() { + return this._tag == Tag.NOT_FILE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOLDER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_FOLDER}, {@code false} otherwise. + */ + public boolean isNotFolder() { + return this._tag == Tag.NOT_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_CONTENT}, {@code false} otherwise. + */ + public boolean isRestrictedContent() { + return this._tag == Tag.RESTRICTED_CONTENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_CONTENT_TYPE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_CONTENT_TYPE}, {@code false} otherwise. + */ + public boolean isUnsupportedContentType() { + return this._tag == Tag.UNSUPPORTED_CONTENT_TYPE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#LOCKED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#LOCKED}, + * {@code false} otherwise. + */ + public boolean isLocked() { + return this._tag == Tag.LOCKED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.malformedPathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LookupError) { + LookupError other = (LookupError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case MALFORMED_PATH: + return (this.malformedPathValue == other.malformedPathValue) || (this.malformedPathValue != null && this.malformedPathValue.equals(other.malformedPathValue)); + case NOT_FOUND: + return true; + case NOT_FILE: + return true; + case NOT_FOLDER: + return true; + case RESTRICTED_CONTENT: + return true; + case UNSUPPORTED_CONTENT_TYPE: + return true; + case LOCKED: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LookupError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case MALFORMED_PATH: { + g.writeStartObject(); + writeTag("malformed_path", g); + g.writeFieldName("malformed_path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.malformedPathValue, g); + g.writeEndObject(); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case NOT_FILE: { + g.writeString("not_file"); + break; + } + case NOT_FOLDER: { + g.writeString("not_folder"); + break; + } + case RESTRICTED_CONTENT: { + g.writeString("restricted_content"); + break; + } + case UNSUPPORTED_CONTENT_TYPE: { + g.writeString("unsupported_content_type"); + break; + } + case LOCKED: { + g.writeString("locked"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LookupError deserialize(JsonParser p) throws IOException, JsonParseException { + LookupError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("malformed_path".equals(tag)) { + String fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + expectField("malformed_path", p); + fieldValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + if (fieldValue == null) { + value = LookupError.malformedPath(); + } + else { + value = LookupError.malformedPath(fieldValue); + } + } + else if ("not_found".equals(tag)) { + value = LookupError.NOT_FOUND; + } + else if ("not_file".equals(tag)) { + value = LookupError.NOT_FILE; + } + else if ("not_folder".equals(tag)) { + value = LookupError.NOT_FOLDER; + } + else if ("restricted_content".equals(tag)) { + value = LookupError.RESTRICTED_CONTENT; + } + else if ("unsupported_content_type".equals(tag)) { + value = LookupError.UNSUPPORTED_CONTENT_TYPE; + } + else if ("locked".equals(tag)) { + value = LookupError.LOCKED; + } + else { + value = LookupError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MediaInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MediaInfo.java new file mode 100644 index 000000000..73ad5c5aa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MediaInfo.java @@ -0,0 +1,276 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class MediaInfo { + // union files.MediaInfo (files.stone) + + /** + * Discriminating tag type for {@link MediaInfo}. + */ + public enum Tag { + /** + * Indicate the photo/video is still under processing and metadata is + * not available yet. + */ + PENDING, + /** + * The metadata for the photo/video. + */ + METADATA; // MediaMetadata + } + + /** + * Indicate the photo/video is still under processing and metadata is not + * available yet. + */ + public static final MediaInfo PENDING = new MediaInfo().withTag(Tag.PENDING); + + private Tag _tag; + private MediaMetadata metadataValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MediaInfo() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private MediaInfo withTag(Tag _tag) { + MediaInfo result = new MediaInfo(); + result._tag = _tag; + return result; + } + + /** + * + * @param metadataValue The metadata for the photo/video. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MediaInfo withTagAndMetadata(Tag _tag, MediaMetadata metadataValue) { + MediaInfo result = new MediaInfo(); + result._tag = _tag; + result.metadataValue = metadataValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MediaInfo}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PENDING}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PENDING}, + * {@code false} otherwise. + */ + public boolean isPending() { + return this._tag == Tag.PENDING; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#METADATA}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#METADATA}, + * {@code false} otherwise. + */ + public boolean isMetadata() { + return this._tag == Tag.METADATA; + } + + /** + * Returns an instance of {@code MediaInfo} that has its tag set to {@link + * Tag#METADATA}. + * + *

The metadata for the photo/video.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MediaInfo} with its tag set to {@link + * Tag#METADATA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MediaInfo metadata(MediaMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MediaInfo().withTagAndMetadata(Tag.METADATA, value); + } + + /** + * The metadata for the photo/video. + * + *

This instance must be tagged as {@link Tag#METADATA}.

+ * + * @return The {@link MediaMetadata} value associated with this instance if + * {@link #isMetadata} is {@code true}. + * + * @throws IllegalStateException If {@link #isMetadata} is {@code false}. + */ + public MediaMetadata getMetadataValue() { + if (this._tag != Tag.METADATA) { + throw new IllegalStateException("Invalid tag: required Tag.METADATA, but was Tag." + this._tag.name()); + } + return metadataValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.metadataValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MediaInfo) { + MediaInfo other = (MediaInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PENDING: + return true; + case METADATA: + return (this.metadataValue == other.metadataValue) || (this.metadataValue.equals(other.metadataValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MediaInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PENDING: { + g.writeString("pending"); + break; + } + case METADATA: { + g.writeStartObject(); + writeTag("metadata", g); + g.writeFieldName("metadata"); + MediaMetadata.Serializer.INSTANCE.serialize(value.metadataValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public MediaInfo deserialize(JsonParser p) throws IOException, JsonParseException { + MediaInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("pending".equals(tag)) { + value = MediaInfo.PENDING; + } + else if ("metadata".equals(tag)) { + MediaMetadata fieldValue = null; + expectField("metadata", p); + fieldValue = MediaMetadata.Serializer.INSTANCE.deserialize(p); + value = MediaInfo.metadata(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MediaMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MediaMetadata.java new file mode 100644 index 000000000..e2c12f387 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MediaMetadata.java @@ -0,0 +1,299 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata for a photo or video. + */ +public class MediaMetadata { + // struct files.MediaMetadata (files.stone) + + @Nullable + protected final Dimensions dimensions; + @Nullable + protected final GpsCoordinates location; + @Nullable + protected final Date timeTaken; + + /** + * Metadata for a photo or video. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param dimensions Dimension of the photo/video. + * @param location The GPS coordinate of the photo/video. + * @param timeTaken The timestamp when the photo/video is taken. + */ + public MediaMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken) { + this.dimensions = dimensions; + this.location = location; + this.timeTaken = LangUtil.truncateMillis(timeTaken); + } + + /** + * Metadata for a photo or video. + * + *

The default values for unset fields will be used.

+ */ + public MediaMetadata() { + this(null, null, null); + } + + /** + * Dimension of the photo/video. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Dimensions getDimensions() { + return dimensions; + } + + /** + * The GPS coordinate of the photo/video. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GpsCoordinates getLocation() { + return location; + } + + /** + * The timestamp when the photo/video is taken. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getTimeTaken() { + return timeTaken; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link MediaMetadata}. + */ + public static class Builder { + + protected Dimensions dimensions; + protected GpsCoordinates location; + protected Date timeTaken; + + protected Builder() { + this.dimensions = null; + this.location = null; + this.timeTaken = null; + } + + /** + * Set value for optional field. + * + * @param dimensions Dimension of the photo/video. + * + * @return this builder + */ + public Builder withDimensions(Dimensions dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * Set value for optional field. + * + * @param location The GPS coordinate of the photo/video. + * + * @return this builder + */ + public Builder withLocation(GpsCoordinates location) { + this.location = location; + return this; + } + + /** + * Set value for optional field. + * + * @param timeTaken The timestamp when the photo/video is taken. + * + * @return this builder + */ + public Builder withTimeTaken(Date timeTaken) { + this.timeTaken = LangUtil.truncateMillis(timeTaken); + return this; + } + + /** + * Builds an instance of {@link MediaMetadata} configured with this + * builder's values + * + * @return new instance of {@link MediaMetadata} + */ + public MediaMetadata build() { + return new MediaMetadata(dimensions, location, timeTaken); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.dimensions, + this.location, + this.timeTaken + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MediaMetadata other = (MediaMetadata) obj; + return ((this.dimensions == other.dimensions) || (this.dimensions != null && this.dimensions.equals(other.dimensions))) + && ((this.location == other.location) || (this.location != null && this.location.equals(other.location))) + && ((this.timeTaken == other.timeTaken) || (this.timeTaken != null && this.timeTaken.equals(other.timeTaken))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MediaMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof PhotoMetadata) { + PhotoMetadata.Serializer.INSTANCE.serialize((PhotoMetadata) value, g, collapse); + return; + } + if (value instanceof VideoMetadata) { + VideoMetadata.Serializer.INSTANCE.serialize((VideoMetadata) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + if (value.dimensions != null) { + g.writeFieldName("dimensions"); + StoneSerializers.nullableStruct(Dimensions.Serializer.INSTANCE).serialize(value.dimensions, g); + } + if (value.location != null) { + g.writeFieldName("location"); + StoneSerializers.nullableStruct(GpsCoordinates.Serializer.INSTANCE).serialize(value.location, g); + } + if (value.timeTaken != null) { + g.writeFieldName("time_taken"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.timeTaken, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MediaMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MediaMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + Dimensions f_dimensions = null; + GpsCoordinates f_location = null; + Date f_timeTaken = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("dimensions".equals(field)) { + f_dimensions = StoneSerializers.nullableStruct(Dimensions.Serializer.INSTANCE).deserialize(p); + } + else if ("location".equals(field)) { + f_location = StoneSerializers.nullableStruct(GpsCoordinates.Serializer.INSTANCE).deserialize(p); + } + else if ("time_taken".equals(field)) { + f_timeTaken = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new MediaMetadata(f_dimensions, f_location, f_timeTaken); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("photo".equals(tag)) { + value = PhotoMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else if ("video".equals(tag)) { + value = VideoMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/Metadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/Metadata.java new file mode 100644 index 000000000..5e1d762d9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/Metadata.java @@ -0,0 +1,436 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata for a file or folder. + */ +public class Metadata { + // struct files.Metadata (files.stone) + + @Nonnull + protected final String name; + @Nullable + protected final String pathLower; + @Nullable + protected final String pathDisplay; + @Nullable + protected final String parentSharedFolderId; + @Nullable + protected final String previewUrl; + + /** + * Metadata for a file or folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * @param pathLower The lowercased full path in the user's Dropbox. This + * always starts with a slash. This field will be null if the file or + * folder is not mounted. + * @param pathDisplay The cased path to be used for display purposes only. + * In rare instances the casing will not correctly match the user's + * filesystem, but this behavior will match the path provided in the + * Core API v1, and at least the last path component will have the + * correct casing. Changes to only the casing of paths won't be returned + * by {@link DbxAppFilesRequests#listFolderContinue(String)}. This field + * will be null if the file or folder is not mounted. + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * @param previewUrl The preview URL of the file. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Metadata(@Nonnull String name, @Nullable String pathLower, @Nullable String pathDisplay, @Nullable String parentSharedFolderId, @Nullable String previewUrl) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.pathLower = pathLower; + this.pathDisplay = pathDisplay; + if (parentSharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + this.previewUrl = previewUrl; + } + + /** + * Metadata for a file or folder. + * + *

The default values for unset fields will be used.

+ * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Metadata(@Nonnull String name) { + this(name, null, null, null, null); + } + + /** + * The last component of the path (including extension). This never contains + * a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The lowercased full path in the user's Dropbox. This always starts with a + * slash. This field will be null if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The cased path to be used for display purposes only. In rare instances + * the casing will not correctly match the user's filesystem, but this + * behavior will match the path provided in the Core API v1, and at least + * the last path component will have the correct casing. Changes to only the + * casing of paths won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will be null + * if the file or folder is not mounted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathDisplay() { + return pathDisplay; + } + + /** + * Please use {@link FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The preview URL of the file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviewUrl() { + return previewUrl; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name The last component of the path (including extension). This + * never contains a slash. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name) { + return new Builder(name); + } + + /** + * Builder for {@link Metadata}. + */ + public static class Builder { + protected final String name; + + protected String pathLower; + protected String pathDisplay; + protected String parentSharedFolderId; + protected String previewUrl; + + protected Builder(String name) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.pathLower = null; + this.pathDisplay = null; + this.parentSharedFolderId = null; + this.previewUrl = null; + } + + /** + * Set value for optional field. + * + * @param pathLower The lowercased full path in the user's Dropbox. + * This always starts with a slash. This field will be null if the + * file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + this.pathLower = pathLower; + return this; + } + + /** + * Set value for optional field. + * + * @param pathDisplay The cased path to be used for display purposes + * only. In rare instances the casing will not correctly match the + * user's filesystem, but this behavior will match the path provided + * in the Core API v1, and at least the last path component will + * have the correct casing. Changes to only the casing of paths + * won't be returned by {@link + * DbxAppFilesRequests#listFolderContinue(String)}. This field will + * be null if the file or folder is not mounted. + * + * @return this builder + */ + public Builder withPathDisplay(String pathDisplay) { + this.pathDisplay = pathDisplay; + return this; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId Please use {@link + * FileSharingInfo#getParentSharedFolderId} or {@link + * FolderSharingInfo#getParentSharedFolderId} instead. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + if (parentSharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + return this; + } + + /** + * Set value for optional field. + * + * @param previewUrl The preview URL of the file. + * + * @return this builder + */ + public Builder withPreviewUrl(String previewUrl) { + this.previewUrl = previewUrl; + return this; + } + + /** + * Builds an instance of {@link Metadata} configured with this builder's + * values + * + * @return new instance of {@link Metadata} + */ + public Metadata build() { + return new Metadata(name, pathLower, pathDisplay, parentSharedFolderId, previewUrl); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.pathLower, + this.pathDisplay, + this.parentSharedFolderId, + this.previewUrl + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Metadata other = (Metadata) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.pathDisplay == other.pathDisplay) || (this.pathDisplay != null && this.pathDisplay.equals(other.pathDisplay))) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.previewUrl == other.previewUrl) || (this.previewUrl != null && this.previewUrl.equals(other.previewUrl))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Metadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof FileMetadata) { + FileMetadata.Serializer.INSTANCE.serialize((FileMetadata) value, g, collapse); + return; + } + if (value instanceof FolderMetadata) { + FolderMetadata.Serializer.INSTANCE.serialize((FolderMetadata) value, g, collapse); + return; + } + if (value instanceof DeletedMetadata) { + DeletedMetadata.Serializer.INSTANCE.serialize((DeletedMetadata) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.pathDisplay != null) { + g.writeFieldName("path_display"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathDisplay, g); + } + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.previewUrl != null) { + g.writeFieldName("preview_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previewUrl, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Metadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Metadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + String f_pathLower = null; + String f_pathDisplay = null; + String f_parentSharedFolderId = null; + String f_previewUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_display".equals(field)) { + f_pathDisplay = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("preview_url".equals(field)) { + f_previewUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new Metadata(f_name, f_pathLower, f_pathDisplay, f_parentSharedFolderId, f_previewUrl); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("file".equals(tag)) { + value = FileMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else if ("folder".equals(tag)) { + value = FolderMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else if ("deleted".equals(tag)) { + value = DeletedMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MetadataV2.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MetadataV2.java new file mode 100644 index 000000000..c60b1754b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MetadataV2.java @@ -0,0 +1,281 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Metadata for a file, folder or other resource types. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MetadataV2 { + // union files.MetadataV2 (files.stone) + + /** + * Discriminating tag type for {@link MetadataV2}. + */ + public enum Tag { + METADATA, // Metadata + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MetadataV2 OTHER = new MetadataV2().withTag(Tag.OTHER); + + private Tag _tag; + private Metadata metadataValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MetadataV2() { + } + + + /** + * Metadata for a file, folder or other resource types. + * + * @param _tag Discriminating tag for this instance. + */ + private MetadataV2 withTag(Tag _tag) { + MetadataV2 result = new MetadataV2(); + result._tag = _tag; + return result; + } + + /** + * Metadata for a file, folder or other resource types. + * + * @param metadataValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MetadataV2 withTagAndMetadata(Tag _tag, Metadata metadataValue) { + MetadataV2 result = new MetadataV2(); + result._tag = _tag; + result.metadataValue = metadataValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MetadataV2}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#METADATA}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#METADATA}, + * {@code false} otherwise. + */ + public boolean isMetadata() { + return this._tag == Tag.METADATA; + } + + /** + * Returns an instance of {@code MetadataV2} that has its tag set to {@link + * Tag#METADATA}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MetadataV2} with its tag set to {@link + * Tag#METADATA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MetadataV2 metadata(Metadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MetadataV2().withTagAndMetadata(Tag.METADATA, value); + } + + /** + * This instance must be tagged as {@link Tag#METADATA}. + * + * @return The {@link Metadata} value associated with this instance if + * {@link #isMetadata} is {@code true}. + * + * @throws IllegalStateException If {@link #isMetadata} is {@code false}. + */ + public Metadata getMetadataValue() { + if (this._tag != Tag.METADATA) { + throw new IllegalStateException("Invalid tag: required Tag.METADATA, but was Tag." + this._tag.name()); + } + return metadataValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.metadataValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MetadataV2) { + MetadataV2 other = (MetadataV2) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case METADATA: + return (this.metadataValue == other.metadataValue) || (this.metadataValue.equals(other.metadataValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MetadataV2 value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case METADATA: { + g.writeStartObject(); + writeTag("metadata", g); + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadataValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MetadataV2 deserialize(JsonParser p) throws IOException, JsonParseException { + MetadataV2 value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("metadata".equals(tag)) { + Metadata fieldValue = null; + expectField("metadata", p); + fieldValue = Metadata.Serializer.INSTANCE.deserialize(p); + value = MetadataV2.metadata(fieldValue); + } + else { + value = MetadataV2.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MinimalFileLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MinimalFileLinkMetadata.java new file mode 100644 index 000000000..e8181a9e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MinimalFileLinkMetadata.java @@ -0,0 +1,360 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class MinimalFileLinkMetadata { + // struct files.MinimalFileLinkMetadata (files.stone) + + @Nonnull + protected final String url; + @Nullable + protected final String id; + @Nullable + protected final String path; + @Nonnull + protected final String rev; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * @param id Unique identifier for the linked file. Must have length of at + * least 1. + * @param path Full path in the user's Dropbox. This always starts with a + * slash. This field will only be present only if the linked file is in + * the authenticated user's Dropbox. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MinimalFileLinkMetadata(@Nonnull String url, @Nonnull String rev, @Nullable String id, @Nullable String path) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (id != null) { + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + } + this.id = id; + this.path = path; + if (rev == null) { + throw new IllegalArgumentException("Required value for 'rev' is null"); + } + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + this.rev = rev; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MinimalFileLinkMetadata(@Nonnull String url, @Nonnull String rev) { + this(url, rev, null, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * A unique identifier for the current revision of a file. This field is the + * same rev as elsewhere in the API and can be used to detect changes and + * avoid conflicts. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRev() { + return rev; + } + + /** + * Unique identifier for the linked file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getId() { + return id; + } + + /** + * Full path in the user's Dropbox. This always starts with a slash. This + * field will only be present only if the linked file is in the + * authenticated user's Dropbox. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPath() { + return path; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String url, String rev) { + return new Builder(url, rev); + } + + /** + * Builder for {@link MinimalFileLinkMetadata}. + */ + public static class Builder { + protected final String url; + protected final String rev; + + protected String id; + protected String path; + + protected Builder(String url, String rev) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (rev == null) { + throw new IllegalArgumentException("Required value for 'rev' is null"); + } + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + this.rev = rev; + this.id = null; + this.path = null; + } + + /** + * Set value for optional field. + * + * @param id Unique identifier for the linked file. Must have length of + * at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withId(String id) { + if (id != null) { + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + } + this.id = id; + return this; + } + + /** + * Set value for optional field. + * + * @param path Full path in the user's Dropbox. This always starts with + * a slash. This field will only be present only if the linked file + * is in the authenticated user's Dropbox. + * + * @return this builder + */ + public Builder withPath(String path) { + this.path = path; + return this; + } + + /** + * Builds an instance of {@link MinimalFileLinkMetadata} configured with + * this builder's values + * + * @return new instance of {@link MinimalFileLinkMetadata} + */ + public MinimalFileLinkMetadata build() { + return new MinimalFileLinkMetadata(url, rev, id, path); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.id, + this.path, + this.rev + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MinimalFileLinkMetadata other = (MinimalFileLinkMetadata) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.rev == other.rev) || (this.rev.equals(other.rev))) + && ((this.id == other.id) || (this.id != null && this.id.equals(other.id))) + && ((this.path == other.path) || (this.path != null && this.path.equals(other.path))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MinimalFileLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("rev"); + StoneSerializers.string().serialize(value.rev, g); + if (value.id != null) { + g.writeFieldName("id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.id, g); + } + if (value.path != null) { + g.writeFieldName("path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.path, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MinimalFileLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MinimalFileLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_url = null; + String f_rev = null; + String f_id = null; + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("rev".equals(field)) { + f_rev = StoneSerializers.string().deserialize(p); + } + else if ("id".equals(field)) { + f_id = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path".equals(field)) { + f_path = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_rev == null) { + throw new JsonParseException(p, "Required field \"rev\" missing."); + } + value = new MinimalFileLinkMetadata(f_url, f_rev, f_id, f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchArg.java new file mode 100644 index 000000000..33ce745fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchArg.java @@ -0,0 +1,313 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class MoveBatchArg extends RelocationBatchArgBase { + // struct files.MoveBatchArg (files.stone) + + protected final boolean allowOwnershipTransfer; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * @param autorename If there's a conflict with any file, have the Dropbox + * server try to autorename that file to avoid the conflict. + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MoveBatchArg(@Nonnull List entries, boolean autorename, boolean allowOwnershipTransfer) { + super(entries, autorename); + this.allowOwnershipTransfer = allowOwnershipTransfer; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MoveBatchArg(@Nonnull List entries) { + this(entries, false, false); + } + + /** + * List of entries to be moved or copied. Each entry is {@link + * RelocationPath}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * If there's a conflict with any file, have the Dropbox server try to + * autorename that file to avoid the conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + /** + * Allow moves by owner even if it would result in an ownership transfer for + * the content being moved. This does not apply to copies. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAllowOwnershipTransfer() { + return allowOwnershipTransfer; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List entries) { + return new Builder(entries); + } + + /** + * Builder for {@link MoveBatchArg}. + */ + public static class Builder { + protected final List entries; + + protected boolean autorename; + protected boolean allowOwnershipTransfer; + + protected Builder(List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + if (entries.size() < 1) { + throw new IllegalArgumentException("List 'entries' has fewer than 1 items"); + } + if (entries.size() > 1000) { + throw new IllegalArgumentException("List 'entries' has more than 1000 items"); + } + for (RelocationPath x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + this.autorename = false; + this.allowOwnershipTransfer = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param autorename If there's a conflict with any file, have the + * Dropbox server try to autorename that file to avoid the conflict. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withAutorename(Boolean autorename) { + if (autorename != null) { + this.autorename = autorename; + } + else { + this.autorename = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + if (allowOwnershipTransfer != null) { + this.allowOwnershipTransfer = allowOwnershipTransfer; + } + else { + this.allowOwnershipTransfer = false; + } + return this; + } + + /** + * Builds an instance of {@link MoveBatchArg} configured with this + * builder's values + * + * @return new instance of {@link MoveBatchArg} + */ + public MoveBatchArg build() { + return new MoveBatchArg(entries, autorename, allowOwnershipTransfer); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.allowOwnershipTransfer + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MoveBatchArg other = (MoveBatchArg) obj; + return ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && (this.autorename == other.autorename) + && (this.allowOwnershipTransfer == other.allowOwnershipTransfer) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MoveBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(RelocationPath.Serializer.INSTANCE).serialize(value.entries, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + g.writeFieldName("allow_ownership_transfer"); + StoneSerializers.boolean_().serialize(value.allowOwnershipTransfer, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MoveBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MoveBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + Boolean f_autorename = false; + Boolean f_allowOwnershipTransfer = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(RelocationPath.Serializer.INSTANCE).deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else if ("allow_ownership_transfer".equals(field)) { + f_allowOwnershipTransfer = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new MoveBatchArg(f_entries, f_autorename, f_allowOwnershipTransfer); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchBuilder.java new file mode 100644 index 000000000..fcd827eb9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchBuilder.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#moveBatchBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MoveBatchBuilder { + private final DbxUserFilesRequests _client; + private final RelocationBatchArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MoveBatchBuilder(DbxUserFilesRequests _client, RelocationBatchArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict with any file, have the Dropbox + * server try to autorename that file to avoid the conflict. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public MoveBatchBuilder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public MoveBatchBuilder withAllowSharedFolder(Boolean allowSharedFolder) { + this._builder.withAllowSharedFolder(allowSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public MoveBatchBuilder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + this._builder.withAllowOwnershipTransfer(allowOwnershipTransfer); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public RelocationBatchLaunch start() throws DbxApiException, DbxException { + RelocationBatchArg arg_ = this._builder.build(); + return _client.moveBatch(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchV2Builder.java new file mode 100644 index 000000000..8a45fd641 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBatchV2Builder.java @@ -0,0 +1,80 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#moveBatchV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MoveBatchV2Builder { + private final DbxUserFilesRequests _client; + private final MoveBatchArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MoveBatchV2Builder(DbxUserFilesRequests _client, MoveBatchArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict with any file, have the Dropbox + * server try to autorename that file to avoid the conflict. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public MoveBatchV2Builder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public MoveBatchV2Builder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + this._builder.withAllowOwnershipTransfer(allowOwnershipTransfer); + return this; + } + + /** + * Issues the request. + */ + public RelocationBatchV2Launch start() throws DbxApiException, DbxException { + MoveBatchArg arg_ = this._builder.build(); + return _client.moveBatchV2(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBuilder.java new file mode 100644 index 000000000..243db1469 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveBuilder.java @@ -0,0 +1,94 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link DbxUserFilesRequests#moveBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MoveBuilder { + private final DbxUserFilesRequests _client; + private final RelocationArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MoveBuilder(DbxUserFilesRequests _client, RelocationArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public MoveBuilder withAllowSharedFolder(Boolean allowSharedFolder) { + this._builder.withAllowSharedFolder(allowSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the file to avoid the conflict. Defaults to {@code false} + * when set to {@code null}. + * + * @return this builder + */ + public MoveBuilder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public MoveBuilder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + this._builder.withAllowOwnershipTransfer(allowOwnershipTransfer); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public Metadata start() throws RelocationErrorException, DbxException { + RelocationArg arg_ = this._builder.build(); + return _client.move(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveIntoFamilyError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveIntoFamilyError.java new file mode 100644 index 000000000..e4cbe8602 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveIntoFamilyError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MoveIntoFamilyError { + // union files.MoveIntoFamilyError (files.stone) + /** + * Moving shared folder into Family Room folder is not allowed. + */ + IS_SHARED_FOLDER, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MoveIntoFamilyError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case IS_SHARED_FOLDER: { + g.writeString("is_shared_folder"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MoveIntoFamilyError deserialize(JsonParser p) throws IOException, JsonParseException { + MoveIntoFamilyError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("is_shared_folder".equals(tag)) { + value = MoveIntoFamilyError.IS_SHARED_FOLDER; + } + else { + value = MoveIntoFamilyError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveIntoVaultError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveIntoVaultError.java new file mode 100644 index 000000000..43866016b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveIntoVaultError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MoveIntoVaultError { + // union files.MoveIntoVaultError (files.stone) + /** + * Moving shared folder into Vault is not allowed. + */ + IS_SHARED_FOLDER, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MoveIntoVaultError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case IS_SHARED_FOLDER: { + g.writeString("is_shared_folder"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MoveIntoVaultError deserialize(JsonParser p) throws IOException, JsonParseException { + MoveIntoVaultError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("is_shared_folder".equals(tag)) { + value = MoveIntoVaultError.IS_SHARED_FOLDER; + } + else { + value = MoveIntoVaultError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveV2Builder.java new file mode 100644 index 000000000..e6f760e03 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/MoveV2Builder.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link DbxUserFilesRequests#moveV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MoveV2Builder { + private final DbxUserFilesRequests _client; + private final RelocationArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MoveV2Builder(DbxUserFilesRequests _client, RelocationArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public MoveV2Builder withAllowSharedFolder(Boolean allowSharedFolder) { + this._builder.withAllowSharedFolder(allowSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the file to avoid the conflict. Defaults to {@code false} + * when set to {@code null}. + * + * @return this builder + */ + public MoveV2Builder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public MoveV2Builder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + this._builder.withAllowOwnershipTransfer(allowOwnershipTransfer); + return this; + } + + /** + * Issues the request. + */ + public RelocationResult start() throws RelocationErrorException, DbxException { + RelocationArg arg_ = this._builder.build(); + return _client.moveV2(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateArg.java new file mode 100644 index 000000000..c864f9a98 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateArg.java @@ -0,0 +1,186 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class PaperCreateArg { + // struct files.PaperCreateArg (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final ImportFormat importFormat; + + /** + * + * @param path The fully qualified path to the location in the user's + * Dropbox where the Paper Doc should be created. This should include + * the document's title and end with .paper. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param importFormat The format of the provided data. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperCreateArg(@Nonnull String path, @Nonnull ImportFormat importFormat) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (importFormat == null) { + throw new IllegalArgumentException("Required value for 'importFormat' is null"); + } + this.importFormat = importFormat; + } + + /** + * The fully qualified path to the location in the user's Dropbox where the + * Paper Doc should be created. This should include the document's title and + * end with .paper. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The format of the provided data. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ImportFormat getImportFormat() { + return importFormat; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.importFormat + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperCreateArg other = (PaperCreateArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.importFormat == other.importFormat) || (this.importFormat.equals(other.importFormat))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperCreateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("import_format"); + ImportFormat.Serializer.INSTANCE.serialize(value.importFormat, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperCreateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperCreateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + ImportFormat f_importFormat = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("import_format".equals(field)) { + f_importFormat = ImportFormat.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_importFormat == null) { + throw new JsonParseException(p, "Required field \"import_format\" missing."); + } + value = new PaperCreateArg(f_path, f_importFormat); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateError.java new file mode 100644 index 000000000..62d7ad8ae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateError.java @@ -0,0 +1,169 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperCreateError { + // union files.PaperCreateError (files.stone) + /** + * Your account does not have permissions to edit Paper docs. + */ + INSUFFICIENT_PERMISSIONS, + /** + * The provided content was malformed and cannot be imported to Paper. + */ + CONTENT_MALFORMED, + /** + * The Paper doc would be too large, split the content into multiple docs. + */ + DOC_LENGTH_EXCEEDED, + /** + * The imported document contains an image that is too large. The current + * limit is 1MB. This only applies to HTML with data URI. + */ + IMAGE_SIZE_EXCEEDED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The file could not be saved to the specified location. + */ + INVALID_PATH, + /** + * The user's email must be verified to create Paper docs. + */ + EMAIL_UNVERIFIED, + /** + * The file path must end in .paper. + */ + INVALID_FILE_EXTENSION, + /** + * Paper is disabled for your team. + */ + PAPER_DISABLED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperCreateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case CONTENT_MALFORMED: { + g.writeString("content_malformed"); + break; + } + case DOC_LENGTH_EXCEEDED: { + g.writeString("doc_length_exceeded"); + break; + } + case IMAGE_SIZE_EXCEEDED: { + g.writeString("image_size_exceeded"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case INVALID_PATH: { + g.writeString("invalid_path"); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case INVALID_FILE_EXTENSION: { + g.writeString("invalid_file_extension"); + break; + } + case PAPER_DISABLED: { + g.writeString("paper_disabled"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public PaperCreateError deserialize(JsonParser p) throws IOException, JsonParseException { + PaperCreateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("insufficient_permissions".equals(tag)) { + value = PaperCreateError.INSUFFICIENT_PERMISSIONS; + } + else if ("content_malformed".equals(tag)) { + value = PaperCreateError.CONTENT_MALFORMED; + } + else if ("doc_length_exceeded".equals(tag)) { + value = PaperCreateError.DOC_LENGTH_EXCEEDED; + } + else if ("image_size_exceeded".equals(tag)) { + value = PaperCreateError.IMAGE_SIZE_EXCEEDED; + } + else if ("other".equals(tag)) { + value = PaperCreateError.OTHER; + } + else if ("invalid_path".equals(tag)) { + value = PaperCreateError.INVALID_PATH; + } + else if ("email_unverified".equals(tag)) { + value = PaperCreateError.EMAIL_UNVERIFIED; + } + else if ("invalid_file_extension".equals(tag)) { + value = PaperCreateError.INVALID_FILE_EXTENSION; + } + else if ("paper_disabled".equals(tag)) { + value = PaperCreateError.PAPER_DISABLED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateErrorException.java new file mode 100644 index 000000000..3207e2e40 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link PaperCreateError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#paperCreate(String,ImportFormat)}.

+ */ +public class PaperCreateErrorException extends DbxApiException { + // exception for routes: + // 2/files/paper/create + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#paperCreate(String,ImportFormat)}. + */ + public final PaperCreateError errorValue; + + public PaperCreateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperCreateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateResult.java new file mode 100644 index 000000000..5d4ec4973 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateResult.java @@ -0,0 +1,237 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class PaperCreateResult { + // struct files.PaperCreateResult (files.stone) + + @Nonnull + protected final String url; + @Nonnull + protected final String resultPath; + @Nonnull + protected final String fileId; + protected final long paperRevision; + + /** + * + * @param url URL to open the Paper Doc. Must not be {@code null}. + * @param resultPath The fully qualified path the Paper Doc was actually + * created at. Must not be {@code null}. + * @param fileId The id to use in Dropbox APIs when referencing the Paper + * Doc. Must have length of at least 4, match pattern "{@code id:.+}", + * and not be {@code null}. + * @param paperRevision The current doc revision. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperCreateResult(@Nonnull String url, @Nonnull String resultPath, @Nonnull String fileId, long paperRevision) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (resultPath == null) { + throw new IllegalArgumentException("Required value for 'resultPath' is null"); + } + this.resultPath = resultPath; + if (fileId == null) { + throw new IllegalArgumentException("Required value for 'fileId' is null"); + } + if (fileId.length() < 4) { + throw new IllegalArgumentException("String 'fileId' is shorter than 4"); + } + if (!Pattern.matches("id:.+", fileId)) { + throw new IllegalArgumentException("String 'fileId' does not match pattern"); + } + this.fileId = fileId; + this.paperRevision = paperRevision; + } + + /** + * URL to open the Paper Doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * The fully qualified path the Paper Doc was actually created at. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getResultPath() { + return resultPath; + } + + /** + * The id to use in Dropbox APIs when referencing the Paper Doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFileId() { + return fileId; + } + + /** + * The current doc revision. + * + * @return value for this field. + */ + public long getPaperRevision() { + return paperRevision; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.resultPath, + this.fileId, + this.paperRevision + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperCreateResult other = (PaperCreateResult) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.resultPath == other.resultPath) || (this.resultPath.equals(other.resultPath))) + && ((this.fileId == other.fileId) || (this.fileId.equals(other.fileId))) + && (this.paperRevision == other.paperRevision) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperCreateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("result_path"); + StoneSerializers.string().serialize(value.resultPath, g); + g.writeFieldName("file_id"); + StoneSerializers.string().serialize(value.fileId, g); + g.writeFieldName("paper_revision"); + StoneSerializers.int64().serialize(value.paperRevision, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperCreateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperCreateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_url = null; + String f_resultPath = null; + String f_fileId = null; + Long f_paperRevision = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("result_path".equals(field)) { + f_resultPath = StoneSerializers.string().deserialize(p); + } + else if ("file_id".equals(field)) { + f_fileId = StoneSerializers.string().deserialize(p); + } + else if ("paper_revision".equals(field)) { + f_paperRevision = StoneSerializers.int64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_resultPath == null) { + throw new JsonParseException(p, "Required field \"result_path\" missing."); + } + if (f_fileId == null) { + throw new JsonParseException(p, "Required field \"file_id\" missing."); + } + if (f_paperRevision == null) { + throw new JsonParseException(p, "Required field \"paper_revision\" missing."); + } + value = new PaperCreateResult(f_url, f_resultPath, f_fileId, f_paperRevision); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateUploader.java new file mode 100644 index 000000000..50394f147 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#paperCreate(String,ImportFormat)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class PaperCreateUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public PaperCreateUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, PaperCreateResult.Serializer.INSTANCE, PaperCreateError.Serializer.INSTANCE, userId); + } + + protected PaperCreateErrorException newException(DbxWrappedException error) { + return new PaperCreateErrorException("2/files/paper/create", error.getRequestId(), error.getUserMessage(), (PaperCreateError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperDocUpdatePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperDocUpdatePolicy.java new file mode 100644 index 000000000..6fcf818f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperDocUpdatePolicy.java @@ -0,0 +1,122 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperDocUpdatePolicy { + // union files.PaperDocUpdatePolicy (files.stone) + /** + * Sets the doc content to the provided content if the provided + * paper_revision matches the latest doc revision. Otherwise, returns an + * error. + */ + UPDATE, + /** + * Sets the doc content to the provided content without checking + * paper_revision. + */ + OVERWRITE, + /** + * Adds the provided content to the beginning of the doc without checking + * paper_revision. + */ + PREPEND, + /** + * Adds the provided content to the end of the doc without checking + * paper_revision. + */ + APPEND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUpdatePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UPDATE: { + g.writeString("update"); + break; + } + case OVERWRITE: { + g.writeString("overwrite"); + break; + } + case PREPEND: { + g.writeString("prepend"); + break; + } + case APPEND: { + g.writeString("append"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperDocUpdatePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDocUpdatePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("update".equals(tag)) { + value = PaperDocUpdatePolicy.UPDATE; + } + else if ("overwrite".equals(tag)) { + value = PaperDocUpdatePolicy.OVERWRITE; + } + else if ("prepend".equals(tag)) { + value = PaperDocUpdatePolicy.PREPEND; + } + else if ("append".equals(tag)) { + value = PaperDocUpdatePolicy.APPEND; + } + else { + value = PaperDocUpdatePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateArg.java new file mode 100644 index 000000000..d1754ab36 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateArg.java @@ -0,0 +1,264 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class PaperUpdateArg { + // struct files.PaperUpdateArg (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final ImportFormat importFormat; + @Nonnull + protected final PaperDocUpdatePolicy docUpdatePolicy; + @Nullable + protected final Long paperRevision; + + /** + * + * @param path Path in the user's Dropbox to update. The path must + * correspond to a Paper doc or an error will be returned. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * @param importFormat The format of the provided data. Must not be {@code + * null}. + * @param docUpdatePolicy How the provided content should be applied to the + * doc. Must not be {@code null}. + * @param paperRevision The latest doc revision. Required when + * doc_update_policy is update. This value must match the current + * revision of the doc or error revision_mismatch will be returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperUpdateArg(@Nonnull String path, @Nonnull ImportFormat importFormat, @Nonnull PaperDocUpdatePolicy docUpdatePolicy, @Nullable Long paperRevision) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (importFormat == null) { + throw new IllegalArgumentException("Required value for 'importFormat' is null"); + } + this.importFormat = importFormat; + if (docUpdatePolicy == null) { + throw new IllegalArgumentException("Required value for 'docUpdatePolicy' is null"); + } + this.docUpdatePolicy = docUpdatePolicy; + this.paperRevision = paperRevision; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path Path in the user's Dropbox to update. The path must + * correspond to a Paper doc or an error will be returned. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * @param importFormat The format of the provided data. Must not be {@code + * null}. + * @param docUpdatePolicy How the provided content should be applied to the + * doc. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperUpdateArg(@Nonnull String path, @Nonnull ImportFormat importFormat, @Nonnull PaperDocUpdatePolicy docUpdatePolicy) { + this(path, importFormat, docUpdatePolicy, null); + } + + /** + * Path in the user's Dropbox to update. The path must correspond to a Paper + * doc or an error will be returned. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The format of the provided data. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ImportFormat getImportFormat() { + return importFormat; + } + + /** + * How the provided content should be applied to the doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDocUpdatePolicy getDocUpdatePolicy() { + return docUpdatePolicy; + } + + /** + * The latest doc revision. Required when doc_update_policy is update. This + * value must match the current revision of the doc or error + * revision_mismatch will be returned. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getPaperRevision() { + return paperRevision; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.importFormat, + this.docUpdatePolicy, + this.paperRevision + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperUpdateArg other = (PaperUpdateArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.importFormat == other.importFormat) || (this.importFormat.equals(other.importFormat))) + && ((this.docUpdatePolicy == other.docUpdatePolicy) || (this.docUpdatePolicy.equals(other.docUpdatePolicy))) + && ((this.paperRevision == other.paperRevision) || (this.paperRevision != null && this.paperRevision.equals(other.paperRevision))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperUpdateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("import_format"); + ImportFormat.Serializer.INSTANCE.serialize(value.importFormat, g); + g.writeFieldName("doc_update_policy"); + PaperDocUpdatePolicy.Serializer.INSTANCE.serialize(value.docUpdatePolicy, g); + if (value.paperRevision != null) { + g.writeFieldName("paper_revision"); + StoneSerializers.nullable(StoneSerializers.int64()).serialize(value.paperRevision, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperUpdateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperUpdateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + ImportFormat f_importFormat = null; + PaperDocUpdatePolicy f_docUpdatePolicy = null; + Long f_paperRevision = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("import_format".equals(field)) { + f_importFormat = ImportFormat.Serializer.INSTANCE.deserialize(p); + } + else if ("doc_update_policy".equals(field)) { + f_docUpdatePolicy = PaperDocUpdatePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("paper_revision".equals(field)) { + f_paperRevision = StoneSerializers.nullable(StoneSerializers.int64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_importFormat == null) { + throw new JsonParseException(p, "Required field \"import_format\" missing."); + } + if (f_docUpdatePolicy == null) { + throw new JsonParseException(p, "Required field \"doc_update_policy\" missing."); + } + value = new PaperUpdateArg(f_path, f_importFormat, f_docUpdatePolicy, f_paperRevision); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateError.java new file mode 100644 index 000000000..95b27abd8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateError.java @@ -0,0 +1,477 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class PaperUpdateError { + // union files.PaperUpdateError (files.stone) + + /** + * Discriminating tag type for {@link PaperUpdateError}. + */ + public enum Tag { + /** + * Your account does not have permissions to edit Paper docs. + */ + INSUFFICIENT_PERMISSIONS, + /** + * The provided content was malformed and cannot be imported to Paper. + */ + CONTENT_MALFORMED, + /** + * The Paper doc would be too large, split the content into multiple + * docs. + */ + DOC_LENGTH_EXCEEDED, + /** + * The imported document contains an image that is too large. The + * current limit is 1MB. This only applies to HTML with data URI. + */ + IMAGE_SIZE_EXCEEDED, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + PATH, // LookupError + /** + * The provided revision does not match the document head. + */ + REVISION_MISMATCH, + /** + * This operation is not allowed on archived Paper docs. + */ + DOC_ARCHIVED, + /** + * This operation is not allowed on deleted Paper docs. + */ + DOC_DELETED; + } + + /** + * Your account does not have permissions to edit Paper docs. + */ + public static final PaperUpdateError INSUFFICIENT_PERMISSIONS = new PaperUpdateError().withTag(Tag.INSUFFICIENT_PERMISSIONS); + /** + * The provided content was malformed and cannot be imported to Paper. + */ + public static final PaperUpdateError CONTENT_MALFORMED = new PaperUpdateError().withTag(Tag.CONTENT_MALFORMED); + /** + * The Paper doc would be too large, split the content into multiple docs. + */ + public static final PaperUpdateError DOC_LENGTH_EXCEEDED = new PaperUpdateError().withTag(Tag.DOC_LENGTH_EXCEEDED); + /** + * The imported document contains an image that is too large. The current + * limit is 1MB. This only applies to HTML with data URI. + */ + public static final PaperUpdateError IMAGE_SIZE_EXCEEDED = new PaperUpdateError().withTag(Tag.IMAGE_SIZE_EXCEEDED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PaperUpdateError OTHER = new PaperUpdateError().withTag(Tag.OTHER); + /** + * The provided revision does not match the document head. + */ + public static final PaperUpdateError REVISION_MISMATCH = new PaperUpdateError().withTag(Tag.REVISION_MISMATCH); + /** + * This operation is not allowed on archived Paper docs. + */ + public static final PaperUpdateError DOC_ARCHIVED = new PaperUpdateError().withTag(Tag.DOC_ARCHIVED); + /** + * This operation is not allowed on deleted Paper docs. + */ + public static final PaperUpdateError DOC_DELETED = new PaperUpdateError().withTag(Tag.DOC_DELETED); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PaperUpdateError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PaperUpdateError withTag(Tag _tag) { + PaperUpdateError result = new PaperUpdateError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PaperUpdateError withTagAndPath(Tag _tag, LookupError pathValue) { + PaperUpdateError result = new PaperUpdateError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PaperUpdateError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_PERMISSIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_PERMISSIONS}, {@code false} otherwise. + */ + public boolean isInsufficientPermissions() { + return this._tag == Tag.INSUFFICIENT_PERMISSIONS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTENT_MALFORMED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTENT_MALFORMED}, {@code false} otherwise. + */ + public boolean isContentMalformed() { + return this._tag == Tag.CONTENT_MALFORMED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOC_LENGTH_EXCEEDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOC_LENGTH_EXCEEDED}, {@code false} otherwise. + */ + public boolean isDocLengthExceeded() { + return this._tag == Tag.DOC_LENGTH_EXCEEDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IMAGE_SIZE_EXCEEDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IMAGE_SIZE_EXCEEDED}, {@code false} otherwise. + */ + public boolean isImageSizeExceeded() { + return this._tag == Tag.IMAGE_SIZE_EXCEEDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code PaperUpdateError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PaperUpdateError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PaperUpdateError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PaperUpdateError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REVISION_MISMATCH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REVISION_MISMATCH}, {@code false} otherwise. + */ + public boolean isRevisionMismatch() { + return this._tag == Tag.REVISION_MISMATCH; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOC_ARCHIVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOC_ARCHIVED}, {@code false} otherwise. + */ + public boolean isDocArchived() { + return this._tag == Tag.DOC_ARCHIVED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOC_DELETED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOC_DELETED}, {@code false} otherwise. + */ + public boolean isDocDeleted() { + return this._tag == Tag.DOC_DELETED; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PaperUpdateError) { + PaperUpdateError other = (PaperUpdateError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INSUFFICIENT_PERMISSIONS: + return true; + case CONTENT_MALFORMED: + return true; + case DOC_LENGTH_EXCEEDED: + return true; + case IMAGE_SIZE_EXCEEDED: + return true; + case OTHER: + return true; + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case REVISION_MISMATCH: + return true; + case DOC_ARCHIVED: + return true; + case DOC_DELETED: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperUpdateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case CONTENT_MALFORMED: { + g.writeString("content_malformed"); + break; + } + case DOC_LENGTH_EXCEEDED: { + g.writeString("doc_length_exceeded"); + break; + } + case IMAGE_SIZE_EXCEEDED: { + g.writeString("image_size_exceeded"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case REVISION_MISMATCH: { + g.writeString("revision_mismatch"); + break; + } + case DOC_ARCHIVED: { + g.writeString("doc_archived"); + break; + } + case DOC_DELETED: { + g.writeString("doc_deleted"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public PaperUpdateError deserialize(JsonParser p) throws IOException, JsonParseException { + PaperUpdateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("insufficient_permissions".equals(tag)) { + value = PaperUpdateError.INSUFFICIENT_PERMISSIONS; + } + else if ("content_malformed".equals(tag)) { + value = PaperUpdateError.CONTENT_MALFORMED; + } + else if ("doc_length_exceeded".equals(tag)) { + value = PaperUpdateError.DOC_LENGTH_EXCEEDED; + } + else if ("image_size_exceeded".equals(tag)) { + value = PaperUpdateError.IMAGE_SIZE_EXCEEDED; + } + else if ("other".equals(tag)) { + value = PaperUpdateError.OTHER; + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = PaperUpdateError.path(fieldValue); + } + else if ("revision_mismatch".equals(tag)) { + value = PaperUpdateError.REVISION_MISMATCH; + } + else if ("doc_archived".equals(tag)) { + value = PaperUpdateError.DOC_ARCHIVED; + } + else if ("doc_deleted".equals(tag)) { + value = PaperUpdateError.DOC_DELETED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateErrorException.java new file mode 100644 index 000000000..20dcdcc66 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link PaperUpdateError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. + *

+ */ +public class PaperUpdateErrorException extends DbxApiException { + // exception for routes: + // 2/files/paper/update + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. + */ + public final PaperUpdateError errorValue; + + public PaperUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperUpdateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateResult.java new file mode 100644 index 000000000..64fc47d2f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateResult.java @@ -0,0 +1,137 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class PaperUpdateResult { + // struct files.PaperUpdateResult (files.stone) + + protected final long paperRevision; + + /** + * + * @param paperRevision The current doc revision. + */ + public PaperUpdateResult(long paperRevision) { + this.paperRevision = paperRevision; + } + + /** + * The current doc revision. + * + * @return value for this field. + */ + public long getPaperRevision() { + return paperRevision; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.paperRevision + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperUpdateResult other = (PaperUpdateResult) obj; + return this.paperRevision == other.paperRevision; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperUpdateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("paper_revision"); + StoneSerializers.int64().serialize(value.paperRevision, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperUpdateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperUpdateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_paperRevision = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("paper_revision".equals(field)) { + f_paperRevision = StoneSerializers.int64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_paperRevision == null) { + throw new JsonParseException(p, "Required field \"paper_revision\" missing."); + } + value = new PaperUpdateResult(f_paperRevision); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateUploader.java new file mode 100644 index 000000000..648a73f52 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class PaperUpdateUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public PaperUpdateUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, PaperUpdateResult.Serializer.INSTANCE, PaperUpdateError.Serializer.INSTANCE, userId); + } + + protected PaperUpdateErrorException newException(DbxWrappedException error) { + return new PaperUpdateErrorException("2/files/paper/update", error.getRequestId(), error.getUserMessage(), (PaperUpdateError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PathOrLink.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PathOrLink.java new file mode 100644 index 000000000..2ee42a85d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PathOrLink.java @@ -0,0 +1,363 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PathOrLink { + // union files.PathOrLink (files.stone) + + /** + * Discriminating tag type for {@link PathOrLink}. + */ + public enum Tag { + PATH, // String + LINK, // SharedLinkFileInfo + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PathOrLink OTHER = new PathOrLink().withTag(Tag.OTHER); + + private Tag _tag; + private String pathValue; + private SharedLinkFileInfo linkValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PathOrLink() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PathOrLink withTag(Tag _tag) { + PathOrLink result = new PathOrLink(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PathOrLink withTagAndPath(Tag _tag, String pathValue) { + PathOrLink result = new PathOrLink(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param linkValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PathOrLink withTagAndLink(Tag _tag, SharedLinkFileInfo linkValue) { + PathOrLink result = new PathOrLink(); + result._tag = _tag; + result.linkValue = linkValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PathOrLink}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code PathOrLink} that has its tag set to {@link + * Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PathOrLink} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} does not match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * or is {@code null}. + */ + public static PathOrLink path(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new PathOrLink().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link String} value associated with this instance if {@link + * #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public String getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#LINK}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#LINK}, + * {@code false} otherwise. + */ + public boolean isLink() { + return this._tag == Tag.LINK; + } + + /** + * Returns an instance of {@code PathOrLink} that has its tag set to {@link + * Tag#LINK}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PathOrLink} with its tag set to {@link + * Tag#LINK}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PathOrLink link(SharedLinkFileInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PathOrLink().withTagAndLink(Tag.LINK, value); + } + + /** + * This instance must be tagged as {@link Tag#LINK}. + * + * @return The {@link SharedLinkFileInfo} value associated with this + * instance if {@link #isLink} is {@code true}. + * + * @throws IllegalStateException If {@link #isLink} is {@code false}. + */ + public SharedLinkFileInfo getLinkValue() { + if (this._tag != Tag.LINK) { + throw new IllegalStateException("Invalid tag: required Tag.LINK, but was Tag." + this._tag.name()); + } + return linkValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue, + this.linkValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PathOrLink) { + PathOrLink other = (PathOrLink) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case LINK: + return (this.linkValue == other.linkValue) || (this.linkValue.equals(other.linkValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PathOrLink value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case LINK: { + g.writeStartObject(); + writeTag("link", g); + SharedLinkFileInfo.Serializer.INSTANCE.serialize(value.linkValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PathOrLink deserialize(JsonParser p) throws IOException, JsonParseException { + PathOrLink value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + String fieldValue = null; + expectField("path", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = PathOrLink.path(fieldValue); + } + else if ("link".equals(tag)) { + SharedLinkFileInfo fieldValue = null; + fieldValue = SharedLinkFileInfo.Serializer.INSTANCE.deserialize(p, true); + value = PathOrLink.link(fieldValue); + } + else { + value = PathOrLink.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PathToTags.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PathToTags.java new file mode 100644 index 000000000..8c8c10ce0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PathToTags.java @@ -0,0 +1,188 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class PathToTags { + // struct files.PathToTags (file_tagging.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final List tags; + + /** + * + * @param path Path of the item. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param tags Tags assigned to this item. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PathToTags(@Nonnull String path, @Nonnull List tags) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (tags == null) { + throw new IllegalArgumentException("Required value for 'tags' is null"); + } + for (TagObject x : tags) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'tags' is null"); + } + } + this.tags = tags; + } + + /** + * Path of the item. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Tags assigned to this item. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTags() { + return tags; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.tags + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PathToTags other = (PathToTags) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.tags == other.tags) || (this.tags.equals(other.tags))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PathToTags value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("tags"); + StoneSerializers.list(TagObject.Serializer.INSTANCE).serialize(value.tags, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PathToTags deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PathToTags value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + List f_tags = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("tags".equals(field)) { + f_tags = StoneSerializers.list(TagObject.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_tags == null) { + throw new JsonParseException(p, "Required field \"tags\" missing."); + } + value = new PathToTags(f_path, f_tags); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PhotoMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PhotoMetadata.java new file mode 100644 index 000000000..b641a6f4e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PhotoMetadata.java @@ -0,0 +1,263 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata for a photo. + */ +public class PhotoMetadata extends MediaMetadata { + // struct files.PhotoMetadata (files.stone) + + + /** + * Metadata for a photo. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param dimensions Dimension of the photo/video. + * @param location The GPS coordinate of the photo/video. + * @param timeTaken The timestamp when the photo/video is taken. + */ + public PhotoMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken) { + super(dimensions, location, timeTaken); + } + + /** + * Metadata for a photo. + * + *

The default values for unset fields will be used.

+ */ + public PhotoMetadata() { + this(null, null, null); + } + + /** + * Dimension of the photo/video. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Dimensions getDimensions() { + return dimensions; + } + + /** + * The GPS coordinate of the photo/video. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GpsCoordinates getLocation() { + return location; + } + + /** + * The timestamp when the photo/video is taken. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getTimeTaken() { + return timeTaken; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link PhotoMetadata}. + */ + public static class Builder extends MediaMetadata.Builder { + + protected Builder() { + } + + /** + * Set value for optional field. + * + * @param dimensions Dimension of the photo/video. + * + * @return this builder + */ + public Builder withDimensions(Dimensions dimensions) { + super.withDimensions(dimensions); + return this; + } + + /** + * Set value for optional field. + * + * @param location The GPS coordinate of the photo/video. + * + * @return this builder + */ + public Builder withLocation(GpsCoordinates location) { + super.withLocation(location); + return this; + } + + /** + * Set value for optional field. + * + * @param timeTaken The timestamp when the photo/video is taken. + * + * @return this builder + */ + public Builder withTimeTaken(Date timeTaken) { + super.withTimeTaken(timeTaken); + return this; + } + + /** + * Builds an instance of {@link PhotoMetadata} configured with this + * builder's values + * + * @return new instance of {@link PhotoMetadata} + */ + public PhotoMetadata build() { + return new PhotoMetadata(dimensions, location, timeTaken); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PhotoMetadata other = (PhotoMetadata) obj; + return ((this.dimensions == other.dimensions) || (this.dimensions != null && this.dimensions.equals(other.dimensions))) + && ((this.location == other.location) || (this.location != null && this.location.equals(other.location))) + && ((this.timeTaken == other.timeTaken) || (this.timeTaken != null && this.timeTaken.equals(other.timeTaken))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PhotoMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("photo", g); + if (value.dimensions != null) { + g.writeFieldName("dimensions"); + StoneSerializers.nullableStruct(Dimensions.Serializer.INSTANCE).serialize(value.dimensions, g); + } + if (value.location != null) { + g.writeFieldName("location"); + StoneSerializers.nullableStruct(GpsCoordinates.Serializer.INSTANCE).serialize(value.location, g); + } + if (value.timeTaken != null) { + g.writeFieldName("time_taken"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.timeTaken, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PhotoMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PhotoMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("photo".equals(tag)) { + tag = null; + } + } + if (tag == null) { + Dimensions f_dimensions = null; + GpsCoordinates f_location = null; + Date f_timeTaken = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("dimensions".equals(field)) { + f_dimensions = StoneSerializers.nullableStruct(Dimensions.Serializer.INSTANCE).deserialize(p); + } + else if ("location".equals(field)) { + f_location = StoneSerializers.nullableStruct(GpsCoordinates.Serializer.INSTANCE).deserialize(p); + } + else if ("time_taken".equals(field)) { + f_timeTaken = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new PhotoMetadata(f_dimensions, f_location, f_timeTaken); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewArg.java new file mode 100644 index 000000000..68da56a46 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewArg.java @@ -0,0 +1,206 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class PreviewArg { + // struct files.PreviewArg (files.stone) + + @Nonnull + protected final String path; + @Nullable + protected final String rev; + + /** + * + * @param path The path of the file to preview. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param rev Please specify revision in the {@code path} argument to + * {@link DbxUserFilesRequests#getPreview(String,String)} instead. Must + * have length of at least 9 and match pattern "{@code [0-9a-f]+}". + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PreviewArg(@Nonnull String path, @Nullable String rev) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (rev != null) { + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + } + this.rev = rev; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path of the file to preview. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PreviewArg(@Nonnull String path) { + this(path, null); + } + + /** + * The path of the file to preview. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Please specify revision in the {@code path} argument to {@link + * DbxUserFilesRequests#getPreview(String,String)} instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getRev() { + return rev; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.rev + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PreviewArg other = (PreviewArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.rev == other.rev) || (this.rev != null && this.rev.equals(other.rev))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PreviewArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.rev != null) { + g.writeFieldName("rev"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.rev, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PreviewArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PreviewArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_rev = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("rev".equals(field)) { + f_rev = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new PreviewArg(f_path, f_rev); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewError.java new file mode 100644 index 000000000..5b5fd74df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewError.java @@ -0,0 +1,332 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class PreviewError { + // union files.PreviewError (files.stone) + + /** + * Discriminating tag type for {@link PreviewError}. + */ + public enum Tag { + /** + * An error occurs when downloading metadata for the file. + */ + PATH, // LookupError + /** + * This preview generation is still in progress and the file is not + * ready for preview yet. + */ + IN_PROGRESS, + /** + * The file extension is not supported preview generation. + */ + UNSUPPORTED_EXTENSION, + /** + * The file content is not supported for preview generation. + */ + UNSUPPORTED_CONTENT; + } + + /** + * This preview generation is still in progress and the file is not ready + * for preview yet. + */ + public static final PreviewError IN_PROGRESS = new PreviewError().withTag(Tag.IN_PROGRESS); + /** + * The file extension is not supported preview generation. + */ + public static final PreviewError UNSUPPORTED_EXTENSION = new PreviewError().withTag(Tag.UNSUPPORTED_EXTENSION); + /** + * The file content is not supported for preview generation. + */ + public static final PreviewError UNSUPPORTED_CONTENT = new PreviewError().withTag(Tag.UNSUPPORTED_CONTENT); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PreviewError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private PreviewError withTag(Tag _tag) { + PreviewError result = new PreviewError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue An error occurs when downloading metadata for the file. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PreviewError withTagAndPath(Tag _tag, LookupError pathValue) { + PreviewError result = new PreviewError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PreviewError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code PreviewError} that has its tag set to + * {@link Tag#PATH}. + * + *

An error occurs when downloading metadata for the file.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PreviewError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PreviewError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PreviewError().withTagAndPath(Tag.PATH, value); + } + + /** + * An error occurs when downloading metadata for the file. + * + *

This instance must be tagged as {@link Tag#PATH}.

+ * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_EXTENSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_EXTENSION}, {@code false} otherwise. + */ + public boolean isUnsupportedExtension() { + return this._tag == Tag.UNSUPPORTED_EXTENSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_CONTENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_CONTENT}, {@code false} otherwise. + */ + public boolean isUnsupportedContent() { + return this._tag == Tag.UNSUPPORTED_CONTENT; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PreviewError) { + PreviewError other = (PreviewError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case IN_PROGRESS: + return true; + case UNSUPPORTED_EXTENSION: + return true; + case UNSUPPORTED_CONTENT: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PreviewError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case UNSUPPORTED_EXTENSION: { + g.writeString("unsupported_extension"); + break; + } + case UNSUPPORTED_CONTENT: { + g.writeString("unsupported_content"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public PreviewError deserialize(JsonParser p) throws IOException, JsonParseException { + PreviewError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = PreviewError.path(fieldValue); + } + else if ("in_progress".equals(tag)) { + value = PreviewError.IN_PROGRESS; + } + else if ("unsupported_extension".equals(tag)) { + value = PreviewError.UNSUPPORTED_EXTENSION; + } + else if ("unsupported_content".equals(tag)) { + value = PreviewError.UNSUPPORTED_CONTENT; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewErrorException.java new file mode 100644 index 000000000..b8504f0ec --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link PreviewError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#getPreview(String,String)}.

+ */ +public class PreviewErrorException extends DbxApiException { + // exception for routes: + // 2/files/get_preview + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#getPreview(String,String)}. + */ + public final PreviewError errorValue; + + public PreviewErrorException(String routeName, String requestId, LocalizedText userMessage, PreviewError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewResult.java new file mode 100644 index 000000000..05261068f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewResult.java @@ -0,0 +1,245 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class PreviewResult { + // struct files.PreviewResult (files.stone) + + @Nullable + protected final FileMetadata fileMetadata; + @Nullable + protected final MinimalFileLinkMetadata linkMetadata; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param fileMetadata Metadata corresponding to the file received as an + * argument. Will be populated if the endpoint is called with a path + * (ReadPath). + * @param linkMetadata Minimal metadata corresponding to the file received + * as an argument. Will be populated if the endpoint is called using a + * shared link (SharedLinkFileInfo). + */ + public PreviewResult(@Nullable FileMetadata fileMetadata, @Nullable MinimalFileLinkMetadata linkMetadata) { + this.fileMetadata = fileMetadata; + this.linkMetadata = linkMetadata; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public PreviewResult() { + this(null, null); + } + + /** + * Metadata corresponding to the file received as an argument. Will be + * populated if the endpoint is called with a path (ReadPath). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileMetadata getFileMetadata() { + return fileMetadata; + } + + /** + * Minimal metadata corresponding to the file received as an argument. Will + * be populated if the endpoint is called using a shared link + * (SharedLinkFileInfo). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MinimalFileLinkMetadata getLinkMetadata() { + return linkMetadata; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link PreviewResult}. + */ + public static class Builder { + + protected FileMetadata fileMetadata; + protected MinimalFileLinkMetadata linkMetadata; + + protected Builder() { + this.fileMetadata = null; + this.linkMetadata = null; + } + + /** + * Set value for optional field. + * + * @param fileMetadata Metadata corresponding to the file received as + * an argument. Will be populated if the endpoint is called with a + * path (ReadPath). + * + * @return this builder + */ + public Builder withFileMetadata(FileMetadata fileMetadata) { + this.fileMetadata = fileMetadata; + return this; + } + + /** + * Set value for optional field. + * + * @param linkMetadata Minimal metadata corresponding to the file + * received as an argument. Will be populated if the endpoint is + * called using a shared link (SharedLinkFileInfo). + * + * @return this builder + */ + public Builder withLinkMetadata(MinimalFileLinkMetadata linkMetadata) { + this.linkMetadata = linkMetadata; + return this; + } + + /** + * Builds an instance of {@link PreviewResult} configured with this + * builder's values + * + * @return new instance of {@link PreviewResult} + */ + public PreviewResult build() { + return new PreviewResult(fileMetadata, linkMetadata); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileMetadata, + this.linkMetadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PreviewResult other = (PreviewResult) obj; + return ((this.fileMetadata == other.fileMetadata) || (this.fileMetadata != null && this.fileMetadata.equals(other.fileMetadata))) + && ((this.linkMetadata == other.linkMetadata) || (this.linkMetadata != null && this.linkMetadata.equals(other.linkMetadata))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PreviewResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.fileMetadata != null) { + g.writeFieldName("file_metadata"); + StoneSerializers.nullableStruct(FileMetadata.Serializer.INSTANCE).serialize(value.fileMetadata, g); + } + if (value.linkMetadata != null) { + g.writeFieldName("link_metadata"); + StoneSerializers.nullableStruct(MinimalFileLinkMetadata.Serializer.INSTANCE).serialize(value.linkMetadata, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PreviewResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PreviewResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileMetadata f_fileMetadata = null; + MinimalFileLinkMetadata f_linkMetadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_metadata".equals(field)) { + f_fileMetadata = StoneSerializers.nullableStruct(FileMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("link_metadata".equals(field)) { + f_linkMetadata = StoneSerializers.nullableStruct(MinimalFileLinkMetadata.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new PreviewResult(f_fileMetadata, f_linkMetadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationArg.java new file mode 100644 index 000000000..34becdf05 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationArg.java @@ -0,0 +1,385 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class RelocationArg extends RelocationPath { + // struct files.RelocationArg (files.stone) + + protected final boolean allowSharedFolder; + protected final boolean autorename; + protected final boolean allowOwnershipTransfer; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param allowSharedFolder This flag has no effect. + * @param autorename If there's a conflict, have the Dropbox server try to + * autorename the file to avoid the conflict. + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationArg(@Nonnull String fromPath, @Nonnull String toPath, boolean allowSharedFolder, boolean autorename, boolean allowOwnershipTransfer) { + super(fromPath, toPath); + this.allowSharedFolder = allowSharedFolder; + this.autorename = autorename; + this.allowOwnershipTransfer = allowOwnershipTransfer; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationArg(@Nonnull String fromPath, @Nonnull String toPath) { + this(fromPath, toPath, false, false, false); + } + + /** + * Path in the user's Dropbox to be copied or moved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFromPath() { + return fromPath; + } + + /** + * Path in the user's Dropbox that is the destination. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getToPath() { + return toPath; + } + + /** + * This flag has no effect. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAllowSharedFolder() { + return allowSharedFolder; + } + + /** + * If there's a conflict, have the Dropbox server try to autorename the file + * to avoid the conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + /** + * Allow moves by owner even if it would result in an ownership transfer for + * the content being moved. This does not apply to copies. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAllowOwnershipTransfer() { + return allowOwnershipTransfer; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String fromPath, String toPath) { + return new Builder(fromPath, toPath); + } + + /** + * Builder for {@link RelocationArg}. + */ + public static class Builder { + protected final String fromPath; + protected final String toPath; + + protected boolean allowSharedFolder; + protected boolean autorename; + protected boolean allowOwnershipTransfer; + + protected Builder(String fromPath, String toPath) { + if (fromPath == null) { + throw new IllegalArgumentException("Required value for 'fromPath' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", fromPath)) { + throw new IllegalArgumentException("String 'fromPath' does not match pattern"); + } + this.fromPath = fromPath; + if (toPath == null) { + throw new IllegalArgumentException("Required value for 'toPath' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", toPath)) { + throw new IllegalArgumentException("String 'toPath' does not match pattern"); + } + this.toPath = toPath; + this.allowSharedFolder = false; + this.autorename = false; + this.allowOwnershipTransfer = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withAllowSharedFolder(Boolean allowSharedFolder) { + if (allowSharedFolder != null) { + this.allowSharedFolder = allowSharedFolder; + } + else { + this.allowSharedFolder = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param autorename If there's a conflict, have the Dropbox server try + * to autorename the file to avoid the conflict. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withAutorename(Boolean autorename) { + if (autorename != null) { + this.autorename = autorename; + } + else { + this.autorename = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + if (allowOwnershipTransfer != null) { + this.allowOwnershipTransfer = allowOwnershipTransfer; + } + else { + this.allowOwnershipTransfer = false; + } + return this; + } + + /** + * Builds an instance of {@link RelocationArg} configured with this + * builder's values + * + * @return new instance of {@link RelocationArg} + */ + public RelocationArg build() { + return new RelocationArg(fromPath, toPath, allowSharedFolder, autorename, allowOwnershipTransfer); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.allowSharedFolder, + this.autorename, + this.allowOwnershipTransfer + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationArg other = (RelocationArg) obj; + return ((this.fromPath == other.fromPath) || (this.fromPath.equals(other.fromPath))) + && ((this.toPath == other.toPath) || (this.toPath.equals(other.toPath))) + && (this.allowSharedFolder == other.allowSharedFolder) + && (this.autorename == other.autorename) + && (this.allowOwnershipTransfer == other.allowOwnershipTransfer) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("from_path"); + StoneSerializers.string().serialize(value.fromPath, g); + g.writeFieldName("to_path"); + StoneSerializers.string().serialize(value.toPath, g); + g.writeFieldName("allow_shared_folder"); + StoneSerializers.boolean_().serialize(value.allowSharedFolder, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + g.writeFieldName("allow_ownership_transfer"); + StoneSerializers.boolean_().serialize(value.allowOwnershipTransfer, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fromPath = null; + String f_toPath = null; + Boolean f_allowSharedFolder = false; + Boolean f_autorename = false; + Boolean f_allowOwnershipTransfer = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("from_path".equals(field)) { + f_fromPath = StoneSerializers.string().deserialize(p); + } + else if ("to_path".equals(field)) { + f_toPath = StoneSerializers.string().deserialize(p); + } + else if ("allow_shared_folder".equals(field)) { + f_allowSharedFolder = StoneSerializers.boolean_().deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else if ("allow_ownership_transfer".equals(field)) { + f_allowOwnershipTransfer = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fromPath == null) { + throw new JsonParseException(p, "Required field \"from_path\" missing."); + } + if (f_toPath == null) { + throw new JsonParseException(p, "Required field \"to_path\" missing."); + } + value = new RelocationArg(f_fromPath, f_toPath, f_allowSharedFolder, f_autorename, f_allowOwnershipTransfer); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchArg.java new file mode 100644 index 000000000..b8f39a2c3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchArg.java @@ -0,0 +1,357 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class RelocationBatchArg extends RelocationBatchArgBase { + // struct files.RelocationBatchArg (files.stone) + + protected final boolean allowSharedFolder; + protected final boolean allowOwnershipTransfer; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * @param autorename If there's a conflict with any file, have the Dropbox + * server try to autorename that file to avoid the conflict. + * @param allowSharedFolder This flag has no effect. + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchArg(@Nonnull List entries, boolean autorename, boolean allowSharedFolder, boolean allowOwnershipTransfer) { + super(entries, autorename); + this.allowSharedFolder = allowSharedFolder; + this.allowOwnershipTransfer = allowOwnershipTransfer; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchArg(@Nonnull List entries) { + this(entries, false, false, false); + } + + /** + * List of entries to be moved or copied. Each entry is {@link + * RelocationPath}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * If there's a conflict with any file, have the Dropbox server try to + * autorename that file to avoid the conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + /** + * This flag has no effect. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAllowSharedFolder() { + return allowSharedFolder; + } + + /** + * Allow moves by owner even if it would result in an ownership transfer for + * the content being moved. This does not apply to copies. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAllowOwnershipTransfer() { + return allowOwnershipTransfer; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List entries) { + return new Builder(entries); + } + + /** + * Builder for {@link RelocationBatchArg}. + */ + public static class Builder { + protected final List entries; + + protected boolean autorename; + protected boolean allowSharedFolder; + protected boolean allowOwnershipTransfer; + + protected Builder(List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + if (entries.size() < 1) { + throw new IllegalArgumentException("List 'entries' has fewer than 1 items"); + } + if (entries.size() > 1000) { + throw new IllegalArgumentException("List 'entries' has more than 1000 items"); + } + for (RelocationPath x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + this.autorename = false; + this.allowSharedFolder = false; + this.allowOwnershipTransfer = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param autorename If there's a conflict with any file, have the + * Dropbox server try to autorename that file to avoid the conflict. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withAutorename(Boolean autorename) { + if (autorename != null) { + this.autorename = autorename; + } + else { + this.autorename = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param allowSharedFolder This flag has no effect. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withAllowSharedFolder(Boolean allowSharedFolder) { + if (allowSharedFolder != null) { + this.allowSharedFolder = allowSharedFolder; + } + else { + this.allowSharedFolder = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param allowOwnershipTransfer Allow moves by owner even if it would + * result in an ownership transfer for the content being moved. This + * does not apply to copies. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withAllowOwnershipTransfer(Boolean allowOwnershipTransfer) { + if (allowOwnershipTransfer != null) { + this.allowOwnershipTransfer = allowOwnershipTransfer; + } + else { + this.allowOwnershipTransfer = false; + } + return this; + } + + /** + * Builds an instance of {@link RelocationBatchArg} configured with this + * builder's values + * + * @return new instance of {@link RelocationBatchArg} + */ + public RelocationBatchArg build() { + return new RelocationBatchArg(entries, autorename, allowSharedFolder, allowOwnershipTransfer); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.allowSharedFolder, + this.allowOwnershipTransfer + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationBatchArg other = (RelocationBatchArg) obj; + return ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && (this.autorename == other.autorename) + && (this.allowSharedFolder == other.allowSharedFolder) + && (this.allowOwnershipTransfer == other.allowOwnershipTransfer) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(RelocationPath.Serializer.INSTANCE).serialize(value.entries, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + g.writeFieldName("allow_shared_folder"); + StoneSerializers.boolean_().serialize(value.allowSharedFolder, g); + g.writeFieldName("allow_ownership_transfer"); + StoneSerializers.boolean_().serialize(value.allowOwnershipTransfer, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + Boolean f_autorename = false; + Boolean f_allowSharedFolder = false; + Boolean f_allowOwnershipTransfer = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(RelocationPath.Serializer.INSTANCE).deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else if ("allow_shared_folder".equals(field)) { + f_allowSharedFolder = StoneSerializers.boolean_().deserialize(p); + } + else if ("allow_ownership_transfer".equals(field)) { + f_allowOwnershipTransfer = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new RelocationBatchArg(f_entries, f_autorename, f_allowSharedFolder, f_allowOwnershipTransfer); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchArgBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchArgBase.java new file mode 100644 index 000000000..1842e45aa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchArgBase.java @@ -0,0 +1,204 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class RelocationBatchArgBase { + // struct files.RelocationBatchArgBase (files.stone) + + @Nonnull + protected final List entries; + protected final boolean autorename; + + /** + * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * @param autorename If there's a conflict with any file, have the Dropbox + * server try to autorename that file to avoid the conflict. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchArgBase(@Nonnull List entries, boolean autorename) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + if (entries.size() < 1) { + throw new IllegalArgumentException("List 'entries' has fewer than 1 items"); + } + if (entries.size() > 1000) { + throw new IllegalArgumentException("List 'entries' has more than 1000 items"); + } + for (RelocationPath x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + this.autorename = autorename; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param entries List of entries to be moved or copied. Each entry is + * {@link RelocationPath}. Must contain at least 1 items, contain at + * most 1000 items, not contain a {@code null} item, and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchArgBase(@Nonnull List entries) { + this(entries, false); + } + + /** + * List of entries to be moved or copied. Each entry is {@link + * RelocationPath}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * If there's a conflict with any file, have the Dropbox server try to + * autorename that file to avoid the conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries, + this.autorename + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationBatchArgBase other = (RelocationBatchArgBase) obj; + return ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && (this.autorename == other.autorename) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchArgBase value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(RelocationPath.Serializer.INSTANCE).serialize(value.entries, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationBatchArgBase deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationBatchArgBase value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + Boolean f_autorename = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(RelocationPath.Serializer.INSTANCE).deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new RelocationBatchArgBase(f_entries, f_autorename); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchError.java new file mode 100644 index 000000000..78a1e8146 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchError.java @@ -0,0 +1,917 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class RelocationBatchError { + // union files.RelocationBatchError (files.stone) + + /** + * Discriminating tag type for {@link RelocationBatchError}. + */ + public enum Tag { + FROM_LOOKUP, // LookupError + FROM_WRITE, // WriteError + TO, // WriteError + /** + * Shared folders can't be copied. + */ + CANT_COPY_SHARED_FOLDER, + /** + * Your move operation would result in nested shared folders. This is + * not allowed. + */ + CANT_NEST_SHARED_FOLDER, + /** + * You cannot move a folder into itself. + */ + CANT_MOVE_FOLDER_INTO_ITSELF, + /** + * The operation would involve more than 10,000 files and folders. + */ + TOO_MANY_FILES, + /** + * There are duplicated/nested paths among {@link + * RelocationArg#getFromPath} and {@link RelocationArg#getToPath}. + */ + DUPLICATED_OR_NESTED_PATHS, + /** + * Your move operation would result in an ownership transfer. You may + * reissue the request with the field {@link + * RelocationArg#getAllowOwnershipTransfer} to true. + */ + CANT_TRANSFER_OWNERSHIP, + /** + * The current user does not have enough space to move or copy the + * files. + */ + INSUFFICIENT_QUOTA, + /** + * Something went wrong with the job on Dropbox's end. You'll need to + * verify that the action you were taking succeeded, and if not, try + * again. This should happen very rarely. + */ + INTERNAL_ERROR, + /** + * Can't move the shared folder to the given destination. + */ + CANT_MOVE_SHARED_FOLDER, + /** + * Some content cannot be moved into Vault under certain circumstances, + * see detailed error. + */ + CANT_MOVE_INTO_VAULT, // MoveIntoVaultError + /** + * Some content cannot be moved into the Family Room folder under + * certain circumstances, see detailed error. + */ + CANT_MOVE_INTO_FAMILY, // MoveIntoFamilyError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * There are too many write operations in user's Dropbox. Please retry + * this request. + */ + TOO_MANY_WRITE_OPERATIONS; + } + + /** + * Shared folders can't be copied. + */ + public static final RelocationBatchError CANT_COPY_SHARED_FOLDER = new RelocationBatchError().withTag(Tag.CANT_COPY_SHARED_FOLDER); + /** + * Your move operation would result in nested shared folders. This is not + * allowed. + */ + public static final RelocationBatchError CANT_NEST_SHARED_FOLDER = new RelocationBatchError().withTag(Tag.CANT_NEST_SHARED_FOLDER); + /** + * You cannot move a folder into itself. + */ + public static final RelocationBatchError CANT_MOVE_FOLDER_INTO_ITSELF = new RelocationBatchError().withTag(Tag.CANT_MOVE_FOLDER_INTO_ITSELF); + /** + * The operation would involve more than 10,000 files and folders. + */ + public static final RelocationBatchError TOO_MANY_FILES = new RelocationBatchError().withTag(Tag.TOO_MANY_FILES); + /** + * There are duplicated/nested paths among {@link RelocationArg#getFromPath} + * and {@link RelocationArg#getToPath}. + */ + public static final RelocationBatchError DUPLICATED_OR_NESTED_PATHS = new RelocationBatchError().withTag(Tag.DUPLICATED_OR_NESTED_PATHS); + /** + * Your move operation would result in an ownership transfer. You may + * reissue the request with the field {@link + * RelocationArg#getAllowOwnershipTransfer} to true. + */ + public static final RelocationBatchError CANT_TRANSFER_OWNERSHIP = new RelocationBatchError().withTag(Tag.CANT_TRANSFER_OWNERSHIP); + /** + * The current user does not have enough space to move or copy the files. + */ + public static final RelocationBatchError INSUFFICIENT_QUOTA = new RelocationBatchError().withTag(Tag.INSUFFICIENT_QUOTA); + /** + * Something went wrong with the job on Dropbox's end. You'll need to verify + * that the action you were taking succeeded, and if not, try again. This + * should happen very rarely. + */ + public static final RelocationBatchError INTERNAL_ERROR = new RelocationBatchError().withTag(Tag.INTERNAL_ERROR); + /** + * Can't move the shared folder to the given destination. + */ + public static final RelocationBatchError CANT_MOVE_SHARED_FOLDER = new RelocationBatchError().withTag(Tag.CANT_MOVE_SHARED_FOLDER); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RelocationBatchError OTHER = new RelocationBatchError().withTag(Tag.OTHER); + /** + * There are too many write operations in user's Dropbox. Please retry this + * request. + */ + public static final RelocationBatchError TOO_MANY_WRITE_OPERATIONS = new RelocationBatchError().withTag(Tag.TOO_MANY_WRITE_OPERATIONS); + + private Tag _tag; + private LookupError fromLookupValue; + private WriteError fromWriteValue; + private WriteError toValue; + private MoveIntoVaultError cantMoveIntoVaultValue; + private MoveIntoFamilyError cantMoveIntoFamilyValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationBatchError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationBatchError withTag(Tag _tag) { + RelocationBatchError result = new RelocationBatchError(); + result._tag = _tag; + return result; + } + + /** + * + * @param fromLookupValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchError withTagAndFromLookup(Tag _tag, LookupError fromLookupValue) { + RelocationBatchError result = new RelocationBatchError(); + result._tag = _tag; + result.fromLookupValue = fromLookupValue; + return result; + } + + /** + * + * @param fromWriteValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchError withTagAndFromWrite(Tag _tag, WriteError fromWriteValue) { + RelocationBatchError result = new RelocationBatchError(); + result._tag = _tag; + result.fromWriteValue = fromWriteValue; + return result; + } + + /** + * + * @param toValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchError withTagAndTo(Tag _tag, WriteError toValue) { + RelocationBatchError result = new RelocationBatchError(); + result._tag = _tag; + result.toValue = toValue; + return result; + } + + /** + * + * @param cantMoveIntoVaultValue Some content cannot be moved into Vault + * under certain circumstances, see detailed error. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchError withTagAndCantMoveIntoVault(Tag _tag, MoveIntoVaultError cantMoveIntoVaultValue) { + RelocationBatchError result = new RelocationBatchError(); + result._tag = _tag; + result.cantMoveIntoVaultValue = cantMoveIntoVaultValue; + return result; + } + + /** + * + * @param cantMoveIntoFamilyValue Some content cannot be moved into the + * Family Room folder under certain circumstances, see detailed error. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchError withTagAndCantMoveIntoFamily(Tag _tag, MoveIntoFamilyError cantMoveIntoFamilyValue) { + RelocationBatchError result = new RelocationBatchError(); + result._tag = _tag; + result.cantMoveIntoFamilyValue = cantMoveIntoFamilyValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationBatchError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FROM_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FROM_LOOKUP}, {@code false} otherwise. + */ + public boolean isFromLookup() { + return this._tag == Tag.FROM_LOOKUP; + } + + /** + * Returns an instance of {@code RelocationBatchError} that has its tag set + * to {@link Tag#FROM_LOOKUP}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchError} with its tag set to + * {@link Tag#FROM_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchError fromLookup(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchError().withTagAndFromLookup(Tag.FROM_LOOKUP, value); + } + + /** + * This instance must be tagged as {@link Tag#FROM_LOOKUP}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isFromLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isFromLookup} is {@code false}. + */ + public LookupError getFromLookupValue() { + if (this._tag != Tag.FROM_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.FROM_LOOKUP, but was Tag." + this._tag.name()); + } + return fromLookupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FROM_WRITE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FROM_WRITE}, {@code false} otherwise. + */ + public boolean isFromWrite() { + return this._tag == Tag.FROM_WRITE; + } + + /** + * Returns an instance of {@code RelocationBatchError} that has its tag set + * to {@link Tag#FROM_WRITE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchError} with its tag set to + * {@link Tag#FROM_WRITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchError fromWrite(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchError().withTagAndFromWrite(Tag.FROM_WRITE, value); + } + + /** + * This instance must be tagged as {@link Tag#FROM_WRITE}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isFromWrite} is {@code true}. + * + * @throws IllegalStateException If {@link #isFromWrite} is {@code false}. + */ + public WriteError getFromWriteValue() { + if (this._tag != Tag.FROM_WRITE) { + throw new IllegalStateException("Invalid tag: required Tag.FROM_WRITE, but was Tag." + this._tag.name()); + } + return fromWriteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TO}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TO}, {@code + * false} otherwise. + */ + public boolean isTo() { + return this._tag == Tag.TO; + } + + /** + * Returns an instance of {@code RelocationBatchError} that has its tag set + * to {@link Tag#TO}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchError} with its tag set to + * {@link Tag#TO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchError to(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchError().withTagAndTo(Tag.TO, value); + } + + /** + * This instance must be tagged as {@link Tag#TO}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isTo} is {@code true}. + * + * @throws IllegalStateException If {@link #isTo} is {@code false}. + */ + public WriteError getToValue() { + if (this._tag != Tag.TO) { + throw new IllegalStateException("Invalid tag: required Tag.TO, but was Tag." + this._tag.name()); + } + return toValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_COPY_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_COPY_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isCantCopySharedFolder() { + return this._tag == Tag.CANT_COPY_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_NEST_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_NEST_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isCantNestSharedFolder() { + return this._tag == Tag.CANT_NEST_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_FOLDER_INTO_ITSELF}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_FOLDER_INTO_ITSELF}, {@code false} otherwise. + */ + public boolean isCantMoveFolderIntoItself() { + return this._tag == Tag.CANT_MOVE_FOLDER_INTO_ITSELF; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATED_OR_NESTED_PATHS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATED_OR_NESTED_PATHS}, {@code false} otherwise. + */ + public boolean isDuplicatedOrNestedPaths() { + return this._tag == Tag.DUPLICATED_OR_NESTED_PATHS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_TRANSFER_OWNERSHIP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_TRANSFER_OWNERSHIP}, {@code false} otherwise. + */ + public boolean isCantTransferOwnership() { + return this._tag == Tag.CANT_TRANSFER_OWNERSHIP; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_QUOTA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_QUOTA}, {@code false} otherwise. + */ + public boolean isInsufficientQuota() { + return this._tag == Tag.INSUFFICIENT_QUOTA; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + */ + public boolean isInternalError() { + return this._tag == Tag.INTERNAL_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isCantMoveSharedFolder() { + return this._tag == Tag.CANT_MOVE_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_INTO_VAULT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_INTO_VAULT}, {@code false} otherwise. + */ + public boolean isCantMoveIntoVault() { + return this._tag == Tag.CANT_MOVE_INTO_VAULT; + } + + /** + * Returns an instance of {@code RelocationBatchError} that has its tag set + * to {@link Tag#CANT_MOVE_INTO_VAULT}. + * + *

Some content cannot be moved into Vault under certain circumstances, + * see detailed error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchError} with its tag set to + * {@link Tag#CANT_MOVE_INTO_VAULT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchError cantMoveIntoVault(MoveIntoVaultError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchError().withTagAndCantMoveIntoVault(Tag.CANT_MOVE_INTO_VAULT, value); + } + + /** + * Some content cannot be moved into Vault under certain circumstances, see + * detailed error. + * + *

This instance must be tagged as {@link Tag#CANT_MOVE_INTO_VAULT}. + *

+ * + * @return The {@link MoveIntoVaultError} value associated with this + * instance if {@link #isCantMoveIntoVault} is {@code true}. + * + * @throws IllegalStateException If {@link #isCantMoveIntoVault} is {@code + * false}. + */ + public MoveIntoVaultError getCantMoveIntoVaultValue() { + if (this._tag != Tag.CANT_MOVE_INTO_VAULT) { + throw new IllegalStateException("Invalid tag: required Tag.CANT_MOVE_INTO_VAULT, but was Tag." + this._tag.name()); + } + return cantMoveIntoVaultValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_INTO_FAMILY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_INTO_FAMILY}, {@code false} otherwise. + */ + public boolean isCantMoveIntoFamily() { + return this._tag == Tag.CANT_MOVE_INTO_FAMILY; + } + + /** + * Returns an instance of {@code RelocationBatchError} that has its tag set + * to {@link Tag#CANT_MOVE_INTO_FAMILY}. + * + *

Some content cannot be moved into the Family Room folder under + * certain circumstances, see detailed error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchError} with its tag set to + * {@link Tag#CANT_MOVE_INTO_FAMILY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchError cantMoveIntoFamily(MoveIntoFamilyError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchError().withTagAndCantMoveIntoFamily(Tag.CANT_MOVE_INTO_FAMILY, value); + } + + /** + * Some content cannot be moved into the Family Room folder under certain + * circumstances, see detailed error. + * + *

This instance must be tagged as {@link Tag#CANT_MOVE_INTO_FAMILY}. + *

+ * + * @return The {@link MoveIntoFamilyError} value associated with this + * instance if {@link #isCantMoveIntoFamily} is {@code true}. + * + * @throws IllegalStateException If {@link #isCantMoveIntoFamily} is {@code + * false}. + */ + public MoveIntoFamilyError getCantMoveIntoFamilyValue() { + if (this._tag != Tag.CANT_MOVE_INTO_FAMILY) { + throw new IllegalStateException("Invalid tag: required Tag.CANT_MOVE_INTO_FAMILY, but was Tag." + this._tag.name()); + } + return cantMoveIntoFamilyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + */ + public boolean isTooManyWriteOperations() { + return this._tag == Tag.TOO_MANY_WRITE_OPERATIONS; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.fromLookupValue, + this.fromWriteValue, + this.toValue, + this.cantMoveIntoVaultValue, + this.cantMoveIntoFamilyValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationBatchError) { + RelocationBatchError other = (RelocationBatchError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case FROM_LOOKUP: + return (this.fromLookupValue == other.fromLookupValue) || (this.fromLookupValue.equals(other.fromLookupValue)); + case FROM_WRITE: + return (this.fromWriteValue == other.fromWriteValue) || (this.fromWriteValue.equals(other.fromWriteValue)); + case TO: + return (this.toValue == other.toValue) || (this.toValue.equals(other.toValue)); + case CANT_COPY_SHARED_FOLDER: + return true; + case CANT_NEST_SHARED_FOLDER: + return true; + case CANT_MOVE_FOLDER_INTO_ITSELF: + return true; + case TOO_MANY_FILES: + return true; + case DUPLICATED_OR_NESTED_PATHS: + return true; + case CANT_TRANSFER_OWNERSHIP: + return true; + case INSUFFICIENT_QUOTA: + return true; + case INTERNAL_ERROR: + return true; + case CANT_MOVE_SHARED_FOLDER: + return true; + case CANT_MOVE_INTO_VAULT: + return (this.cantMoveIntoVaultValue == other.cantMoveIntoVaultValue) || (this.cantMoveIntoVaultValue.equals(other.cantMoveIntoVaultValue)); + case CANT_MOVE_INTO_FAMILY: + return (this.cantMoveIntoFamilyValue == other.cantMoveIntoFamilyValue) || (this.cantMoveIntoFamilyValue.equals(other.cantMoveIntoFamilyValue)); + case OTHER: + return true; + case TOO_MANY_WRITE_OPERATIONS: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case FROM_LOOKUP: { + g.writeStartObject(); + writeTag("from_lookup", g); + g.writeFieldName("from_lookup"); + LookupError.Serializer.INSTANCE.serialize(value.fromLookupValue, g); + g.writeEndObject(); + break; + } + case FROM_WRITE: { + g.writeStartObject(); + writeTag("from_write", g); + g.writeFieldName("from_write"); + WriteError.Serializer.INSTANCE.serialize(value.fromWriteValue, g); + g.writeEndObject(); + break; + } + case TO: { + g.writeStartObject(); + writeTag("to", g); + g.writeFieldName("to"); + WriteError.Serializer.INSTANCE.serialize(value.toValue, g); + g.writeEndObject(); + break; + } + case CANT_COPY_SHARED_FOLDER: { + g.writeString("cant_copy_shared_folder"); + break; + } + case CANT_NEST_SHARED_FOLDER: { + g.writeString("cant_nest_shared_folder"); + break; + } + case CANT_MOVE_FOLDER_INTO_ITSELF: { + g.writeString("cant_move_folder_into_itself"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + case DUPLICATED_OR_NESTED_PATHS: { + g.writeString("duplicated_or_nested_paths"); + break; + } + case CANT_TRANSFER_OWNERSHIP: { + g.writeString("cant_transfer_ownership"); + break; + } + case INSUFFICIENT_QUOTA: { + g.writeString("insufficient_quota"); + break; + } + case INTERNAL_ERROR: { + g.writeString("internal_error"); + break; + } + case CANT_MOVE_SHARED_FOLDER: { + g.writeString("cant_move_shared_folder"); + break; + } + case CANT_MOVE_INTO_VAULT: { + g.writeStartObject(); + writeTag("cant_move_into_vault", g); + g.writeFieldName("cant_move_into_vault"); + MoveIntoVaultError.Serializer.INSTANCE.serialize(value.cantMoveIntoVaultValue, g); + g.writeEndObject(); + break; + } + case CANT_MOVE_INTO_FAMILY: { + g.writeStartObject(); + writeTag("cant_move_into_family", g); + g.writeFieldName("cant_move_into_family"); + MoveIntoFamilyError.Serializer.INSTANCE.serialize(value.cantMoveIntoFamilyValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RelocationBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("from_lookup".equals(tag)) { + LookupError fieldValue = null; + expectField("from_lookup", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchError.fromLookup(fieldValue); + } + else if ("from_write".equals(tag)) { + WriteError fieldValue = null; + expectField("from_write", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchError.fromWrite(fieldValue); + } + else if ("to".equals(tag)) { + WriteError fieldValue = null; + expectField("to", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchError.to(fieldValue); + } + else if ("cant_copy_shared_folder".equals(tag)) { + value = RelocationBatchError.CANT_COPY_SHARED_FOLDER; + } + else if ("cant_nest_shared_folder".equals(tag)) { + value = RelocationBatchError.CANT_NEST_SHARED_FOLDER; + } + else if ("cant_move_folder_into_itself".equals(tag)) { + value = RelocationBatchError.CANT_MOVE_FOLDER_INTO_ITSELF; + } + else if ("too_many_files".equals(tag)) { + value = RelocationBatchError.TOO_MANY_FILES; + } + else if ("duplicated_or_nested_paths".equals(tag)) { + value = RelocationBatchError.DUPLICATED_OR_NESTED_PATHS; + } + else if ("cant_transfer_ownership".equals(tag)) { + value = RelocationBatchError.CANT_TRANSFER_OWNERSHIP; + } + else if ("insufficient_quota".equals(tag)) { + value = RelocationBatchError.INSUFFICIENT_QUOTA; + } + else if ("internal_error".equals(tag)) { + value = RelocationBatchError.INTERNAL_ERROR; + } + else if ("cant_move_shared_folder".equals(tag)) { + value = RelocationBatchError.CANT_MOVE_SHARED_FOLDER; + } + else if ("cant_move_into_vault".equals(tag)) { + MoveIntoVaultError fieldValue = null; + expectField("cant_move_into_vault", p); + fieldValue = MoveIntoVaultError.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchError.cantMoveIntoVault(fieldValue); + } + else if ("cant_move_into_family".equals(tag)) { + MoveIntoFamilyError fieldValue = null; + expectField("cant_move_into_family", p); + fieldValue = MoveIntoFamilyError.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchError.cantMoveIntoFamily(fieldValue); + } + else if ("other".equals(tag)) { + value = RelocationBatchError.OTHER; + } + else if ("too_many_write_operations".equals(tag)) { + value = RelocationBatchError.TOO_MANY_WRITE_OPERATIONS; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchErrorEntry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchErrorEntry.java new file mode 100644 index 000000000..39ba99d25 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchErrorEntry.java @@ -0,0 +1,346 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RelocationBatchErrorEntry { + // union files.RelocationBatchErrorEntry (files.stone) + + /** + * Discriminating tag type for {@link RelocationBatchErrorEntry}. + */ + public enum Tag { + /** + * User errors that retry won't help. + */ + RELOCATION_ERROR, // RelocationError + /** + * Something went wrong with the job on Dropbox's end. You'll need to + * verify that the action you were taking succeeded, and if not, try + * again. This should happen very rarely. + */ + INTERNAL_ERROR, + /** + * There are too many write operations in user's Dropbox. Please retry + * this request. + */ + TOO_MANY_WRITE_OPERATIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Something went wrong with the job on Dropbox's end. You'll need to verify + * that the action you were taking succeeded, and if not, try again. This + * should happen very rarely. + */ + public static final RelocationBatchErrorEntry INTERNAL_ERROR = new RelocationBatchErrorEntry().withTag(Tag.INTERNAL_ERROR); + /** + * There are too many write operations in user's Dropbox. Please retry this + * request. + */ + public static final RelocationBatchErrorEntry TOO_MANY_WRITE_OPERATIONS = new RelocationBatchErrorEntry().withTag(Tag.TOO_MANY_WRITE_OPERATIONS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RelocationBatchErrorEntry OTHER = new RelocationBatchErrorEntry().withTag(Tag.OTHER); + + private Tag _tag; + private RelocationError relocationErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationBatchErrorEntry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationBatchErrorEntry withTag(Tag _tag) { + RelocationBatchErrorEntry result = new RelocationBatchErrorEntry(); + result._tag = _tag; + return result; + } + + /** + * + * @param relocationErrorValue User errors that retry won't help. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchErrorEntry withTagAndRelocationError(Tag _tag, RelocationError relocationErrorValue) { + RelocationBatchErrorEntry result = new RelocationBatchErrorEntry(); + result._tag = _tag; + result.relocationErrorValue = relocationErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationBatchErrorEntry}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RELOCATION_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RELOCATION_ERROR}, {@code false} otherwise. + */ + public boolean isRelocationError() { + return this._tag == Tag.RELOCATION_ERROR; + } + + /** + * Returns an instance of {@code RelocationBatchErrorEntry} that has its tag + * set to {@link Tag#RELOCATION_ERROR}. + * + *

User errors that retry won't help.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchErrorEntry} with its tag set to + * {@link Tag#RELOCATION_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchErrorEntry relocationError(RelocationError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchErrorEntry().withTagAndRelocationError(Tag.RELOCATION_ERROR, value); + } + + /** + * User errors that retry won't help. + * + *

This instance must be tagged as {@link Tag#RELOCATION_ERROR}.

+ * + * @return The {@link RelocationError} value associated with this instance + * if {@link #isRelocationError} is {@code true}. + * + * @throws IllegalStateException If {@link #isRelocationError} is {@code + * false}. + */ + public RelocationError getRelocationErrorValue() { + if (this._tag != Tag.RELOCATION_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.RELOCATION_ERROR, but was Tag." + this._tag.name()); + } + return relocationErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + */ + public boolean isInternalError() { + return this._tag == Tag.INTERNAL_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + */ + public boolean isTooManyWriteOperations() { + return this._tag == Tag.TOO_MANY_WRITE_OPERATIONS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.relocationErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationBatchErrorEntry) { + RelocationBatchErrorEntry other = (RelocationBatchErrorEntry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case RELOCATION_ERROR: + return (this.relocationErrorValue == other.relocationErrorValue) || (this.relocationErrorValue.equals(other.relocationErrorValue)); + case INTERNAL_ERROR: + return true; + case TOO_MANY_WRITE_OPERATIONS: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchErrorEntry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case RELOCATION_ERROR: { + g.writeStartObject(); + writeTag("relocation_error", g); + g.writeFieldName("relocation_error"); + RelocationError.Serializer.INSTANCE.serialize(value.relocationErrorValue, g); + g.writeEndObject(); + break; + } + case INTERNAL_ERROR: { + g.writeString("internal_error"); + break; + } + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RelocationBatchErrorEntry deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationBatchErrorEntry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("relocation_error".equals(tag)) { + RelocationError fieldValue = null; + expectField("relocation_error", p); + fieldValue = RelocationError.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchErrorEntry.relocationError(fieldValue); + } + else if ("internal_error".equals(tag)) { + value = RelocationBatchErrorEntry.INTERNAL_ERROR; + } + else if ("too_many_write_operations".equals(tag)) { + value = RelocationBatchErrorEntry.TOO_MANY_WRITE_OPERATIONS; + } + else { + value = RelocationBatchErrorEntry.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchJobStatus.java new file mode 100644 index 000000000..afee5b137 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchJobStatus.java @@ -0,0 +1,359 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class RelocationBatchJobStatus { + // union files.RelocationBatchJobStatus (files.stone) + + /** + * Discriminating tag type for {@link RelocationBatchJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The copy or move batch job has finished. + */ + COMPLETE, // RelocationBatchResult + /** + * The copy or move batch job has failed with exception. + */ + FAILED; // RelocationBatchError + } + + /** + * The asynchronous job is still in progress. + */ + public static final RelocationBatchJobStatus IN_PROGRESS = new RelocationBatchJobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private RelocationBatchResult completeValue; + private RelocationBatchError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationBatchJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationBatchJobStatus withTag(Tag _tag) { + RelocationBatchJobStatus result = new RelocationBatchJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The copy or move batch job has finished. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchJobStatus withTagAndComplete(Tag _tag, RelocationBatchResult completeValue) { + RelocationBatchJobStatus result = new RelocationBatchJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue The copy or move batch job has failed with exception. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchJobStatus withTagAndFailed(Tag _tag, RelocationBatchError failedValue) { + RelocationBatchJobStatus result = new RelocationBatchJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationBatchJobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code RelocationBatchJobStatus} that has its tag + * set to {@link Tag#COMPLETE}. + * + *

The copy or move batch job has finished.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchJobStatus} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchJobStatus complete(RelocationBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The copy or move batch job has finished. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link RelocationBatchResult} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public RelocationBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code RelocationBatchJobStatus} that has its tag + * set to {@link Tag#FAILED}. + * + *

The copy or move batch job has failed with exception.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchJobStatus} with its tag set to + * {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchJobStatus failed(RelocationBatchError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * The copy or move batch job has failed with exception. + * + *

This instance must be tagged as {@link Tag#FAILED}.

+ * + * @return The {@link RelocationBatchError} value associated with this + * instance if {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public RelocationBatchError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationBatchJobStatus) { + RelocationBatchJobStatus other = (RelocationBatchJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + RelocationBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + RelocationBatchError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RelocationBatchJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationBatchJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = RelocationBatchJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + RelocationBatchResult fieldValue = null; + fieldValue = RelocationBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = RelocationBatchJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + RelocationBatchError fieldValue = null; + expectField("failed", p); + fieldValue = RelocationBatchError.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchJobStatus.failed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchLaunch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchLaunch.java new file mode 100644 index 000000000..71de9c450 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchLaunch.java @@ -0,0 +1,386 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by {@link DbxUserFilesRequests#copyBatch(java.util.List)} or + * {@link DbxUserFilesRequests#moveBatch(java.util.List)} that may either launch + * an asynchronous job or complete synchronously. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RelocationBatchLaunch { + // union files.RelocationBatchLaunch (files.stone) + + /** + * Discriminating tag type for {@link RelocationBatchLaunch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE, // RelocationBatchResult + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RelocationBatchLaunch OTHER = new RelocationBatchLaunch().withTag(Tag.OTHER); + + private Tag _tag; + private String asyncJobIdValue; + private RelocationBatchResult completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationBatchLaunch() { + } + + + /** + * Result returned by {@link DbxUserFilesRequests#copyBatch(java.util.List)} + * or {@link DbxUserFilesRequests#moveBatch(java.util.List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationBatchLaunch withTag(Tag _tag) { + RelocationBatchLaunch result = new RelocationBatchLaunch(); + result._tag = _tag; + return result; + } + + /** + * Result returned by {@link DbxUserFilesRequests#copyBatch(java.util.List)} + * or {@link DbxUserFilesRequests#moveBatch(java.util.List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchLaunch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + RelocationBatchLaunch result = new RelocationBatchLaunch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * Result returned by {@link DbxUserFilesRequests#copyBatch(java.util.List)} + * or {@link DbxUserFilesRequests#moveBatch(java.util.List)} that may either + * launch an asynchronous job or complete synchronously. + * + * @param completeValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchLaunch withTagAndComplete(Tag _tag, RelocationBatchResult completeValue) { + RelocationBatchLaunch result = new RelocationBatchLaunch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationBatchLaunch}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code RelocationBatchLaunch} that has its tag set + * to {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchLaunch} with its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static RelocationBatchLaunch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new RelocationBatchLaunch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code RelocationBatchLaunch} that has its tag set + * to {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchLaunch} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchLaunch complete(RelocationBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchLaunch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link RelocationBatchResult} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public RelocationBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationBatchLaunch) { + RelocationBatchLaunch other = (RelocationBatchLaunch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchLaunch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + RelocationBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RelocationBatchLaunch deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationBatchLaunch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = RelocationBatchLaunch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + RelocationBatchResult fieldValue = null; + fieldValue = RelocationBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = RelocationBatchLaunch.complete(fieldValue); + } + else { + value = RelocationBatchLaunch.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResult.java new file mode 100644 index 000000000..710da375c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResult.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class RelocationBatchResult extends FileOpsResult { + // struct files.RelocationBatchResult (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchResult(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (RelocationBatchResultData x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationBatchResult other = (RelocationBatchResult) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(RelocationBatchResultData.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(RelocationBatchResultData.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new RelocationBatchResult(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResultData.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResultData.java new file mode 100644 index 000000000..d2efbb190 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResultData.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RelocationBatchResultData { + // struct files.RelocationBatchResultData (files.stone) + + @Nonnull + protected final Metadata metadata; + + /** + * + * @param metadata Metadata of the relocated object. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchResultData(@Nonnull Metadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * Metadata of the relocated object. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationBatchResultData other = (RelocationBatchResultData) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchResultData value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationBatchResultData deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationBatchResultData value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Metadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new RelocationBatchResultData(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResultEntry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResultEntry.java new file mode 100644 index 000000000..810b28697 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchResultEntry.java @@ -0,0 +1,357 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RelocationBatchResultEntry { + // union files.RelocationBatchResultEntry (files.stone) + + /** + * Discriminating tag type for {@link RelocationBatchResultEntry}. + */ + public enum Tag { + SUCCESS, // Metadata + FAILURE, // RelocationBatchErrorEntry + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RelocationBatchResultEntry OTHER = new RelocationBatchResultEntry().withTag(Tag.OTHER); + + private Tag _tag; + private Metadata successValue; + private RelocationBatchErrorEntry failureValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationBatchResultEntry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationBatchResultEntry withTag(Tag _tag) { + RelocationBatchResultEntry result = new RelocationBatchResultEntry(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchResultEntry withTagAndSuccess(Tag _tag, Metadata successValue) { + RelocationBatchResultEntry result = new RelocationBatchResultEntry(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param failureValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchResultEntry withTagAndFailure(Tag _tag, RelocationBatchErrorEntry failureValue) { + RelocationBatchResultEntry result = new RelocationBatchResultEntry(); + result._tag = _tag; + result.failureValue = failureValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationBatchResultEntry}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code RelocationBatchResultEntry} that has its + * tag set to {@link Tag#SUCCESS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchResultEntry} with its tag set + * to {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchResultEntry success(Metadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchResultEntry().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * This instance must be tagged as {@link Tag#SUCCESS}. + * + * @return The {@link Metadata} value associated with this instance if + * {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public Metadata getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILURE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILURE}, + * {@code false} otherwise. + */ + public boolean isFailure() { + return this._tag == Tag.FAILURE; + } + + /** + * Returns an instance of {@code RelocationBatchResultEntry} that has its + * tag set to {@link Tag#FAILURE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchResultEntry} with its tag set + * to {@link Tag#FAILURE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchResultEntry failure(RelocationBatchErrorEntry value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchResultEntry().withTagAndFailure(Tag.FAILURE, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILURE}. + * + * @return The {@link RelocationBatchErrorEntry} value associated with this + * instance if {@link #isFailure} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailure} is {@code false}. + */ + public RelocationBatchErrorEntry getFailureValue() { + if (this._tag != Tag.FAILURE) { + throw new IllegalStateException("Invalid tag: required Tag.FAILURE, but was Tag." + this._tag.name()); + } + return failureValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.failureValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationBatchResultEntry) { + RelocationBatchResultEntry other = (RelocationBatchResultEntry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case FAILURE: + return (this.failureValue == other.failureValue) || (this.failureValue.equals(other.failureValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchResultEntry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + g.writeFieldName("success"); + Metadata.Serializer.INSTANCE.serialize(value.successValue, g); + g.writeEndObject(); + break; + } + case FAILURE: { + g.writeStartObject(); + writeTag("failure", g); + g.writeFieldName("failure"); + RelocationBatchErrorEntry.Serializer.INSTANCE.serialize(value.failureValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RelocationBatchResultEntry deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationBatchResultEntry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + Metadata fieldValue = null; + expectField("success", p); + fieldValue = Metadata.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchResultEntry.success(fieldValue); + } + else if ("failure".equals(tag)) { + RelocationBatchErrorEntry fieldValue = null; + expectField("failure", p); + fieldValue = RelocationBatchErrorEntry.Serializer.INSTANCE.deserialize(p); + value = RelocationBatchResultEntry.failure(fieldValue); + } + else { + value = RelocationBatchResultEntry.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2JobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2JobStatus.java new file mode 100644 index 000000000..b9c1f341c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2JobStatus.java @@ -0,0 +1,283 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by {@link DbxUserFilesRequests#copyBatchCheckV2(String)} or + * {@link DbxUserFilesRequests#moveBatchCheckV2(String)} that may either be in + * progress or completed with result for each entry. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class RelocationBatchV2JobStatus { + // union files.RelocationBatchV2JobStatus (files.stone) + + /** + * Discriminating tag type for {@link RelocationBatchV2JobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The copy or move batch job has finished. + */ + COMPLETE; // RelocationBatchV2Result + } + + /** + * The asynchronous job is still in progress. + */ + public static final RelocationBatchV2JobStatus IN_PROGRESS = new RelocationBatchV2JobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private RelocationBatchV2Result completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationBatchV2JobStatus() { + } + + + /** + * Result returned by {@link DbxUserFilesRequests#copyBatchCheckV2(String)} + * or {@link DbxUserFilesRequests#moveBatchCheckV2(String)} that may either + * be in progress or completed with result for each entry. + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationBatchV2JobStatus withTag(Tag _tag) { + RelocationBatchV2JobStatus result = new RelocationBatchV2JobStatus(); + result._tag = _tag; + return result; + } + + /** + * Result returned by {@link DbxUserFilesRequests#copyBatchCheckV2(String)} + * or {@link DbxUserFilesRequests#moveBatchCheckV2(String)} that may either + * be in progress or completed with result for each entry. + * + * @param completeValue The copy or move batch job has finished. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchV2JobStatus withTagAndComplete(Tag _tag, RelocationBatchV2Result completeValue) { + RelocationBatchV2JobStatus result = new RelocationBatchV2JobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationBatchV2JobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code RelocationBatchV2JobStatus} that has its + * tag set to {@link Tag#COMPLETE}. + * + *

The copy or move batch job has finished.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchV2JobStatus} with its tag set + * to {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchV2JobStatus complete(RelocationBatchV2Result value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchV2JobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The copy or move batch job has finished. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link RelocationBatchV2Result} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public RelocationBatchV2Result getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationBatchV2JobStatus) { + RelocationBatchV2JobStatus other = (RelocationBatchV2JobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchV2JobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + RelocationBatchV2Result.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RelocationBatchV2JobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationBatchV2JobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = RelocationBatchV2JobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + RelocationBatchV2Result fieldValue = null; + fieldValue = RelocationBatchV2Result.Serializer.INSTANCE.deserialize(p, true); + value = RelocationBatchV2JobStatus.complete(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2Launch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2Launch.java new file mode 100644 index 000000000..4659b2d44 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2Launch.java @@ -0,0 +1,352 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(java.util.List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(java.util.List)} that may either launch an + * asynchronous job or complete synchronously. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class RelocationBatchV2Launch { + // union files.RelocationBatchV2Launch (files.stone) + + /** + * Discriminating tag type for {@link RelocationBatchV2Launch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE; // RelocationBatchV2Result + } + + private Tag _tag; + private String asyncJobIdValue; + private RelocationBatchV2Result completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationBatchV2Launch() { + } + + + /** + * Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(java.util.List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(java.util.List)} that may either launch + * an asynchronous job or complete synchronously. + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationBatchV2Launch withTag(Tag _tag) { + RelocationBatchV2Launch result = new RelocationBatchV2Launch(); + result._tag = _tag; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(java.util.List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(java.util.List)} that may either launch + * an asynchronous job or complete synchronously. + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchV2Launch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + RelocationBatchV2Launch result = new RelocationBatchV2Launch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#copyBatchV2(java.util.List,boolean)} or {@link + * DbxUserFilesRequests#moveBatchV2(java.util.List)} that may either launch + * an asynchronous job or complete synchronously. + * + * @param completeValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationBatchV2Launch withTagAndComplete(Tag _tag, RelocationBatchV2Result completeValue) { + RelocationBatchV2Launch result = new RelocationBatchV2Launch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationBatchV2Launch}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code RelocationBatchV2Launch} that has its tag + * set to {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchV2Launch} with its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static RelocationBatchV2Launch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new RelocationBatchV2Launch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code RelocationBatchV2Launch} that has its tag + * set to {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationBatchV2Launch} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationBatchV2Launch complete(RelocationBatchV2Result value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationBatchV2Launch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link RelocationBatchV2Result} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public RelocationBatchV2Result getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationBatchV2Launch) { + RelocationBatchV2Launch other = (RelocationBatchV2Launch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchV2Launch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + RelocationBatchV2Result.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RelocationBatchV2Launch deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationBatchV2Launch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = RelocationBatchV2Launch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + RelocationBatchV2Result fieldValue = null; + fieldValue = RelocationBatchV2Result.Serializer.INSTANCE.deserialize(p, true); + value = RelocationBatchV2Launch.complete(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2Result.java new file mode 100644 index 000000000..5bf816417 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchV2Result.java @@ -0,0 +1,160 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class RelocationBatchV2Result extends FileOpsResult { + // struct files.RelocationBatchV2Result (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Each entry in CopyBatchArg.entries or the {@code entries} + * argument to {@link DbxUserFilesRequests#copyBatchV2(List,boolean)} + * will appear at the same position inside {@link + * RelocationBatchV2Result#getEntries}. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationBatchV2Result(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (RelocationBatchResultEntry x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * Each entry in CopyBatchArg.entries or the {@code entries} argument to + * {@link DbxUserFilesRequests#copyBatchV2(List,boolean)} will appear at the + * same position inside {@link RelocationBatchV2Result#getEntries}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationBatchV2Result other = (RelocationBatchV2Result) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationBatchV2Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(RelocationBatchResultEntry.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationBatchV2Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationBatchV2Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(RelocationBatchResultEntry.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new RelocationBatchV2Result(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationError.java new file mode 100644 index 000000000..d84d5186c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationError.java @@ -0,0 +1,886 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RelocationError { + // union files.RelocationError (files.stone) + + /** + * Discriminating tag type for {@link RelocationError}. + */ + public enum Tag { + FROM_LOOKUP, // LookupError + FROM_WRITE, // WriteError + TO, // WriteError + /** + * Shared folders can't be copied. + */ + CANT_COPY_SHARED_FOLDER, + /** + * Your move operation would result in nested shared folders. This is + * not allowed. + */ + CANT_NEST_SHARED_FOLDER, + /** + * You cannot move a folder into itself. + */ + CANT_MOVE_FOLDER_INTO_ITSELF, + /** + * The operation would involve more than 10,000 files and folders. + */ + TOO_MANY_FILES, + /** + * There are duplicated/nested paths among {@link + * RelocationArg#getFromPath} and {@link RelocationArg#getToPath}. + */ + DUPLICATED_OR_NESTED_PATHS, + /** + * Your move operation would result in an ownership transfer. You may + * reissue the request with the field {@link + * RelocationArg#getAllowOwnershipTransfer} to true. + */ + CANT_TRANSFER_OWNERSHIP, + /** + * The current user does not have enough space to move or copy the + * files. + */ + INSUFFICIENT_QUOTA, + /** + * Something went wrong with the job on Dropbox's end. You'll need to + * verify that the action you were taking succeeded, and if not, try + * again. This should happen very rarely. + */ + INTERNAL_ERROR, + /** + * Can't move the shared folder to the given destination. + */ + CANT_MOVE_SHARED_FOLDER, + /** + * Some content cannot be moved into Vault under certain circumstances, + * see detailed error. + */ + CANT_MOVE_INTO_VAULT, // MoveIntoVaultError + /** + * Some content cannot be moved into the Family Room folder under + * certain circumstances, see detailed error. + */ + CANT_MOVE_INTO_FAMILY, // MoveIntoFamilyError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Shared folders can't be copied. + */ + public static final RelocationError CANT_COPY_SHARED_FOLDER = new RelocationError().withTag(Tag.CANT_COPY_SHARED_FOLDER); + /** + * Your move operation would result in nested shared folders. This is not + * allowed. + */ + public static final RelocationError CANT_NEST_SHARED_FOLDER = new RelocationError().withTag(Tag.CANT_NEST_SHARED_FOLDER); + /** + * You cannot move a folder into itself. + */ + public static final RelocationError CANT_MOVE_FOLDER_INTO_ITSELF = new RelocationError().withTag(Tag.CANT_MOVE_FOLDER_INTO_ITSELF); + /** + * The operation would involve more than 10,000 files and folders. + */ + public static final RelocationError TOO_MANY_FILES = new RelocationError().withTag(Tag.TOO_MANY_FILES); + /** + * There are duplicated/nested paths among {@link RelocationArg#getFromPath} + * and {@link RelocationArg#getToPath}. + */ + public static final RelocationError DUPLICATED_OR_NESTED_PATHS = new RelocationError().withTag(Tag.DUPLICATED_OR_NESTED_PATHS); + /** + * Your move operation would result in an ownership transfer. You may + * reissue the request with the field {@link + * RelocationArg#getAllowOwnershipTransfer} to true. + */ + public static final RelocationError CANT_TRANSFER_OWNERSHIP = new RelocationError().withTag(Tag.CANT_TRANSFER_OWNERSHIP); + /** + * The current user does not have enough space to move or copy the files. + */ + public static final RelocationError INSUFFICIENT_QUOTA = new RelocationError().withTag(Tag.INSUFFICIENT_QUOTA); + /** + * Something went wrong with the job on Dropbox's end. You'll need to verify + * that the action you were taking succeeded, and if not, try again. This + * should happen very rarely. + */ + public static final RelocationError INTERNAL_ERROR = new RelocationError().withTag(Tag.INTERNAL_ERROR); + /** + * Can't move the shared folder to the given destination. + */ + public static final RelocationError CANT_MOVE_SHARED_FOLDER = new RelocationError().withTag(Tag.CANT_MOVE_SHARED_FOLDER); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RelocationError OTHER = new RelocationError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError fromLookupValue; + private WriteError fromWriteValue; + private WriteError toValue; + private MoveIntoVaultError cantMoveIntoVaultValue; + private MoveIntoFamilyError cantMoveIntoFamilyValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelocationError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RelocationError withTag(Tag _tag) { + RelocationError result = new RelocationError(); + result._tag = _tag; + return result; + } + + /** + * + * @param fromLookupValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationError withTagAndFromLookup(Tag _tag, LookupError fromLookupValue) { + RelocationError result = new RelocationError(); + result._tag = _tag; + result.fromLookupValue = fromLookupValue; + return result; + } + + /** + * + * @param fromWriteValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationError withTagAndFromWrite(Tag _tag, WriteError fromWriteValue) { + RelocationError result = new RelocationError(); + result._tag = _tag; + result.fromWriteValue = fromWriteValue; + return result; + } + + /** + * + * @param toValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationError withTagAndTo(Tag _tag, WriteError toValue) { + RelocationError result = new RelocationError(); + result._tag = _tag; + result.toValue = toValue; + return result; + } + + /** + * + * @param cantMoveIntoVaultValue Some content cannot be moved into Vault + * under certain circumstances, see detailed error. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationError withTagAndCantMoveIntoVault(Tag _tag, MoveIntoVaultError cantMoveIntoVaultValue) { + RelocationError result = new RelocationError(); + result._tag = _tag; + result.cantMoveIntoVaultValue = cantMoveIntoVaultValue; + return result; + } + + /** + * + * @param cantMoveIntoFamilyValue Some content cannot be moved into the + * Family Room folder under certain circumstances, see detailed error. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelocationError withTagAndCantMoveIntoFamily(Tag _tag, MoveIntoFamilyError cantMoveIntoFamilyValue) { + RelocationError result = new RelocationError(); + result._tag = _tag; + result.cantMoveIntoFamilyValue = cantMoveIntoFamilyValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelocationError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FROM_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FROM_LOOKUP}, {@code false} otherwise. + */ + public boolean isFromLookup() { + return this._tag == Tag.FROM_LOOKUP; + } + + /** + * Returns an instance of {@code RelocationError} that has its tag set to + * {@link Tag#FROM_LOOKUP}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationError} with its tag set to {@link + * Tag#FROM_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationError fromLookup(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationError().withTagAndFromLookup(Tag.FROM_LOOKUP, value); + } + + /** + * This instance must be tagged as {@link Tag#FROM_LOOKUP}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isFromLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isFromLookup} is {@code false}. + */ + public LookupError getFromLookupValue() { + if (this._tag != Tag.FROM_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.FROM_LOOKUP, but was Tag." + this._tag.name()); + } + return fromLookupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FROM_WRITE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FROM_WRITE}, {@code false} otherwise. + */ + public boolean isFromWrite() { + return this._tag == Tag.FROM_WRITE; + } + + /** + * Returns an instance of {@code RelocationError} that has its tag set to + * {@link Tag#FROM_WRITE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationError} with its tag set to {@link + * Tag#FROM_WRITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationError fromWrite(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationError().withTagAndFromWrite(Tag.FROM_WRITE, value); + } + + /** + * This instance must be tagged as {@link Tag#FROM_WRITE}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isFromWrite} is {@code true}. + * + * @throws IllegalStateException If {@link #isFromWrite} is {@code false}. + */ + public WriteError getFromWriteValue() { + if (this._tag != Tag.FROM_WRITE) { + throw new IllegalStateException("Invalid tag: required Tag.FROM_WRITE, but was Tag." + this._tag.name()); + } + return fromWriteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TO}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TO}, {@code + * false} otherwise. + */ + public boolean isTo() { + return this._tag == Tag.TO; + } + + /** + * Returns an instance of {@code RelocationError} that has its tag set to + * {@link Tag#TO}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationError} with its tag set to {@link + * Tag#TO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationError to(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationError().withTagAndTo(Tag.TO, value); + } + + /** + * This instance must be tagged as {@link Tag#TO}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isTo} is {@code true}. + * + * @throws IllegalStateException If {@link #isTo} is {@code false}. + */ + public WriteError getToValue() { + if (this._tag != Tag.TO) { + throw new IllegalStateException("Invalid tag: required Tag.TO, but was Tag." + this._tag.name()); + } + return toValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_COPY_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_COPY_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isCantCopySharedFolder() { + return this._tag == Tag.CANT_COPY_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_NEST_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_NEST_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isCantNestSharedFolder() { + return this._tag == Tag.CANT_NEST_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_FOLDER_INTO_ITSELF}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_FOLDER_INTO_ITSELF}, {@code false} otherwise. + */ + public boolean isCantMoveFolderIntoItself() { + return this._tag == Tag.CANT_MOVE_FOLDER_INTO_ITSELF; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATED_OR_NESTED_PATHS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATED_OR_NESTED_PATHS}, {@code false} otherwise. + */ + public boolean isDuplicatedOrNestedPaths() { + return this._tag == Tag.DUPLICATED_OR_NESTED_PATHS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_TRANSFER_OWNERSHIP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_TRANSFER_OWNERSHIP}, {@code false} otherwise. + */ + public boolean isCantTransferOwnership() { + return this._tag == Tag.CANT_TRANSFER_OWNERSHIP; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_QUOTA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_QUOTA}, {@code false} otherwise. + */ + public boolean isInsufficientQuota() { + return this._tag == Tag.INSUFFICIENT_QUOTA; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + */ + public boolean isInternalError() { + return this._tag == Tag.INTERNAL_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isCantMoveSharedFolder() { + return this._tag == Tag.CANT_MOVE_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_INTO_VAULT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_INTO_VAULT}, {@code false} otherwise. + */ + public boolean isCantMoveIntoVault() { + return this._tag == Tag.CANT_MOVE_INTO_VAULT; + } + + /** + * Returns an instance of {@code RelocationError} that has its tag set to + * {@link Tag#CANT_MOVE_INTO_VAULT}. + * + *

Some content cannot be moved into Vault under certain circumstances, + * see detailed error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationError} with its tag set to {@link + * Tag#CANT_MOVE_INTO_VAULT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationError cantMoveIntoVault(MoveIntoVaultError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationError().withTagAndCantMoveIntoVault(Tag.CANT_MOVE_INTO_VAULT, value); + } + + /** + * Some content cannot be moved into Vault under certain circumstances, see + * detailed error. + * + *

This instance must be tagged as {@link Tag#CANT_MOVE_INTO_VAULT}. + *

+ * + * @return The {@link MoveIntoVaultError} value associated with this + * instance if {@link #isCantMoveIntoVault} is {@code true}. + * + * @throws IllegalStateException If {@link #isCantMoveIntoVault} is {@code + * false}. + */ + public MoveIntoVaultError getCantMoveIntoVaultValue() { + if (this._tag != Tag.CANT_MOVE_INTO_VAULT) { + throw new IllegalStateException("Invalid tag: required Tag.CANT_MOVE_INTO_VAULT, but was Tag." + this._tag.name()); + } + return cantMoveIntoVaultValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_MOVE_INTO_FAMILY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_MOVE_INTO_FAMILY}, {@code false} otherwise. + */ + public boolean isCantMoveIntoFamily() { + return this._tag == Tag.CANT_MOVE_INTO_FAMILY; + } + + /** + * Returns an instance of {@code RelocationError} that has its tag set to + * {@link Tag#CANT_MOVE_INTO_FAMILY}. + * + *

Some content cannot be moved into the Family Room folder under + * certain circumstances, see detailed error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelocationError} with its tag set to {@link + * Tag#CANT_MOVE_INTO_FAMILY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelocationError cantMoveIntoFamily(MoveIntoFamilyError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelocationError().withTagAndCantMoveIntoFamily(Tag.CANT_MOVE_INTO_FAMILY, value); + } + + /** + * Some content cannot be moved into the Family Room folder under certain + * circumstances, see detailed error. + * + *

This instance must be tagged as {@link Tag#CANT_MOVE_INTO_FAMILY}. + *

+ * + * @return The {@link MoveIntoFamilyError} value associated with this + * instance if {@link #isCantMoveIntoFamily} is {@code true}. + * + * @throws IllegalStateException If {@link #isCantMoveIntoFamily} is {@code + * false}. + */ + public MoveIntoFamilyError getCantMoveIntoFamilyValue() { + if (this._tag != Tag.CANT_MOVE_INTO_FAMILY) { + throw new IllegalStateException("Invalid tag: required Tag.CANT_MOVE_INTO_FAMILY, but was Tag." + this._tag.name()); + } + return cantMoveIntoFamilyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.fromLookupValue, + this.fromWriteValue, + this.toValue, + this.cantMoveIntoVaultValue, + this.cantMoveIntoFamilyValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelocationError) { + RelocationError other = (RelocationError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case FROM_LOOKUP: + return (this.fromLookupValue == other.fromLookupValue) || (this.fromLookupValue.equals(other.fromLookupValue)); + case FROM_WRITE: + return (this.fromWriteValue == other.fromWriteValue) || (this.fromWriteValue.equals(other.fromWriteValue)); + case TO: + return (this.toValue == other.toValue) || (this.toValue.equals(other.toValue)); + case CANT_COPY_SHARED_FOLDER: + return true; + case CANT_NEST_SHARED_FOLDER: + return true; + case CANT_MOVE_FOLDER_INTO_ITSELF: + return true; + case TOO_MANY_FILES: + return true; + case DUPLICATED_OR_NESTED_PATHS: + return true; + case CANT_TRANSFER_OWNERSHIP: + return true; + case INSUFFICIENT_QUOTA: + return true; + case INTERNAL_ERROR: + return true; + case CANT_MOVE_SHARED_FOLDER: + return true; + case CANT_MOVE_INTO_VAULT: + return (this.cantMoveIntoVaultValue == other.cantMoveIntoVaultValue) || (this.cantMoveIntoVaultValue.equals(other.cantMoveIntoVaultValue)); + case CANT_MOVE_INTO_FAMILY: + return (this.cantMoveIntoFamilyValue == other.cantMoveIntoFamilyValue) || (this.cantMoveIntoFamilyValue.equals(other.cantMoveIntoFamilyValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case FROM_LOOKUP: { + g.writeStartObject(); + writeTag("from_lookup", g); + g.writeFieldName("from_lookup"); + LookupError.Serializer.INSTANCE.serialize(value.fromLookupValue, g); + g.writeEndObject(); + break; + } + case FROM_WRITE: { + g.writeStartObject(); + writeTag("from_write", g); + g.writeFieldName("from_write"); + WriteError.Serializer.INSTANCE.serialize(value.fromWriteValue, g); + g.writeEndObject(); + break; + } + case TO: { + g.writeStartObject(); + writeTag("to", g); + g.writeFieldName("to"); + WriteError.Serializer.INSTANCE.serialize(value.toValue, g); + g.writeEndObject(); + break; + } + case CANT_COPY_SHARED_FOLDER: { + g.writeString("cant_copy_shared_folder"); + break; + } + case CANT_NEST_SHARED_FOLDER: { + g.writeString("cant_nest_shared_folder"); + break; + } + case CANT_MOVE_FOLDER_INTO_ITSELF: { + g.writeString("cant_move_folder_into_itself"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + case DUPLICATED_OR_NESTED_PATHS: { + g.writeString("duplicated_or_nested_paths"); + break; + } + case CANT_TRANSFER_OWNERSHIP: { + g.writeString("cant_transfer_ownership"); + break; + } + case INSUFFICIENT_QUOTA: { + g.writeString("insufficient_quota"); + break; + } + case INTERNAL_ERROR: { + g.writeString("internal_error"); + break; + } + case CANT_MOVE_SHARED_FOLDER: { + g.writeString("cant_move_shared_folder"); + break; + } + case CANT_MOVE_INTO_VAULT: { + g.writeStartObject(); + writeTag("cant_move_into_vault", g); + g.writeFieldName("cant_move_into_vault"); + MoveIntoVaultError.Serializer.INSTANCE.serialize(value.cantMoveIntoVaultValue, g); + g.writeEndObject(); + break; + } + case CANT_MOVE_INTO_FAMILY: { + g.writeStartObject(); + writeTag("cant_move_into_family", g); + g.writeFieldName("cant_move_into_family"); + MoveIntoFamilyError.Serializer.INSTANCE.serialize(value.cantMoveIntoFamilyValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RelocationError deserialize(JsonParser p) throws IOException, JsonParseException { + RelocationError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("from_lookup".equals(tag)) { + LookupError fieldValue = null; + expectField("from_lookup", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = RelocationError.fromLookup(fieldValue); + } + else if ("from_write".equals(tag)) { + WriteError fieldValue = null; + expectField("from_write", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = RelocationError.fromWrite(fieldValue); + } + else if ("to".equals(tag)) { + WriteError fieldValue = null; + expectField("to", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = RelocationError.to(fieldValue); + } + else if ("cant_copy_shared_folder".equals(tag)) { + value = RelocationError.CANT_COPY_SHARED_FOLDER; + } + else if ("cant_nest_shared_folder".equals(tag)) { + value = RelocationError.CANT_NEST_SHARED_FOLDER; + } + else if ("cant_move_folder_into_itself".equals(tag)) { + value = RelocationError.CANT_MOVE_FOLDER_INTO_ITSELF; + } + else if ("too_many_files".equals(tag)) { + value = RelocationError.TOO_MANY_FILES; + } + else if ("duplicated_or_nested_paths".equals(tag)) { + value = RelocationError.DUPLICATED_OR_NESTED_PATHS; + } + else if ("cant_transfer_ownership".equals(tag)) { + value = RelocationError.CANT_TRANSFER_OWNERSHIP; + } + else if ("insufficient_quota".equals(tag)) { + value = RelocationError.INSUFFICIENT_QUOTA; + } + else if ("internal_error".equals(tag)) { + value = RelocationError.INTERNAL_ERROR; + } + else if ("cant_move_shared_folder".equals(tag)) { + value = RelocationError.CANT_MOVE_SHARED_FOLDER; + } + else if ("cant_move_into_vault".equals(tag)) { + MoveIntoVaultError fieldValue = null; + expectField("cant_move_into_vault", p); + fieldValue = MoveIntoVaultError.Serializer.INSTANCE.deserialize(p); + value = RelocationError.cantMoveIntoVault(fieldValue); + } + else if ("cant_move_into_family".equals(tag)) { + MoveIntoFamilyError fieldValue = null; + expectField("cant_move_into_family", p); + fieldValue = MoveIntoFamilyError.Serializer.INSTANCE.deserialize(p); + value = RelocationError.cantMoveIntoFamily(fieldValue); + } + else { + value = RelocationError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationErrorException.java new file mode 100644 index 000000000..672c4eaf1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationErrorException.java @@ -0,0 +1,43 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link RelocationError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#copy(String,String)}, {@link + * DbxUserFilesRequests#copyV2(String,String)}, {@link + * DbxUserFilesRequests#move(String,String)}, and {@link + * DbxUserFilesRequests#moveV2(String,String)}.

+ */ +public class RelocationErrorException extends DbxApiException { + // exception for routes: + // 2/files/copy + // 2/files/copy_v2 + // 2/files/move + // 2/files/move_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#copy(String,String)}, + * {@link DbxUserFilesRequests#copyV2(String,String)}, {@link + * DbxUserFilesRequests#move(String,String)}, and {@link + * DbxUserFilesRequests#moveV2(String,String)}. + */ + public final RelocationError errorValue; + + public RelocationErrorException(String routeName, String requestId, LocalizedText userMessage, RelocationError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationPath.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationPath.java new file mode 100644 index 000000000..f5501e3fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationPath.java @@ -0,0 +1,187 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class RelocationPath { + // struct files.RelocationPath (files.stone) + + @Nonnull + protected final String fromPath; + @Nonnull + protected final String toPath; + + /** + * + * @param fromPath Path in the user's Dropbox to be copied or moved. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * @param toPath Path in the user's Dropbox that is the destination. Must + * match pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationPath(@Nonnull String fromPath, @Nonnull String toPath) { + if (fromPath == null) { + throw new IllegalArgumentException("Required value for 'fromPath' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", fromPath)) { + throw new IllegalArgumentException("String 'fromPath' does not match pattern"); + } + this.fromPath = fromPath; + if (toPath == null) { + throw new IllegalArgumentException("Required value for 'toPath' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", toPath)) { + throw new IllegalArgumentException("String 'toPath' does not match pattern"); + } + this.toPath = toPath; + } + + /** + * Path in the user's Dropbox to be copied or moved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFromPath() { + return fromPath; + } + + /** + * Path in the user's Dropbox that is the destination. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getToPath() { + return toPath; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fromPath, + this.toPath + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationPath other = (RelocationPath) obj; + return ((this.fromPath == other.fromPath) || (this.fromPath.equals(other.fromPath))) + && ((this.toPath == other.toPath) || (this.toPath.equals(other.toPath))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationPath value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("from_path"); + StoneSerializers.string().serialize(value.fromPath, g); + g.writeFieldName("to_path"); + StoneSerializers.string().serialize(value.toPath, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationPath deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationPath value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fromPath = null; + String f_toPath = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("from_path".equals(field)) { + f_fromPath = StoneSerializers.string().deserialize(p); + } + else if ("to_path".equals(field)) { + f_toPath = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fromPath == null) { + throw new JsonParseException(p, "Required field \"from_path\" missing."); + } + if (f_toPath == null) { + throw new JsonParseException(p, "Required field \"to_path\" missing."); + } + value = new RelocationPath(f_fromPath, f_toPath); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationResult.java new file mode 100644 index 000000000..47643aa15 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationResult.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RelocationResult extends FileOpsResult { + // struct files.RelocationResult (files.stone) + + @Nonnull + protected final Metadata metadata; + + /** + * + * @param metadata Metadata of the relocated object. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelocationResult(@Nonnull Metadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * Metadata of the relocated object. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocationResult other = (RelocationResult) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocationResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocationResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocationResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Metadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new RelocationResult(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagArg.java new file mode 100644 index 000000000..6aa89ae9b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagArg.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class RemoveTagArg { + // struct files.RemoveTagArg (file_tagging.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final String tagText; + + /** + * + * @param path Path to the item to tag. Must match pattern "{@code + * /(.|[\\r\\n])*}" and not be {@code null}. + * @param tagText The tag to remove. Will be automatically converted to + * lowercase letters. Must have length of at least 1, have length of at + * most 32, match pattern "{@code [\\w]+}", and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RemoveTagArg(@Nonnull String path, @Nonnull String tagText) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (tagText == null) { + throw new IllegalArgumentException("Required value for 'tagText' is null"); + } + if (tagText.length() < 1) { + throw new IllegalArgumentException("String 'tagText' is shorter than 1"); + } + if (tagText.length() > 32) { + throw new IllegalArgumentException("String 'tagText' is longer than 32"); + } + if (!Pattern.matches("[\\w]+", tagText)) { + throw new IllegalArgumentException("String 'tagText' does not match pattern"); + } + this.tagText = tagText; + } + + /** + * Path to the item to tag. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The tag to remove. Will be automatically converted to lowercase letters. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTagText() { + return tagText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.tagText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RemoveTagArg other = (RemoveTagArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.tagText == other.tagText) || (this.tagText.equals(other.tagText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveTagArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("tag_text"); + StoneSerializers.string().serialize(value.tagText, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RemoveTagArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RemoveTagArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_tagText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("tag_text".equals(field)) { + f_tagText = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_tagText == null) { + throw new JsonParseException(p, "Required field \"tag_text\" missing."); + } + value = new RemoveTagArg(f_path, f_tagText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagError.java new file mode 100644 index 000000000..7709f61fd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagError.java @@ -0,0 +1,306 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class RemoveTagError { + // union files.RemoveTagError (file_tagging.stone) + + /** + * Discriminating tag type for {@link RemoveTagError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * That tag doesn't exist at this path. + */ + TAG_NOT_PRESENT; + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RemoveTagError OTHER = new RemoveTagError().withTag(Tag.OTHER); + /** + * That tag doesn't exist at this path. + */ + public static final RemoveTagError TAG_NOT_PRESENT = new RemoveTagError().withTag(Tag.TAG_NOT_PRESENT); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RemoveTagError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RemoveTagError withTag(Tag _tag) { + RemoveTagError result = new RemoveTagError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveTagError withTagAndPath(Tag _tag, LookupError pathValue) { + RemoveTagError result = new RemoveTagError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RemoveTagError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code RemoveTagError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveTagError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveTagError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveTagError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TAG_NOT_PRESENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TAG_NOT_PRESENT}, {@code false} otherwise. + */ + public boolean isTagNotPresent() { + return this._tag == Tag.TAG_NOT_PRESENT; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RemoveTagError) { + RemoveTagError other = (RemoveTagError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + case TAG_NOT_PRESENT: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveTagError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case TAG_NOT_PRESENT: { + g.writeString("tag_not_present"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RemoveTagError deserialize(JsonParser p) throws IOException, JsonParseException { + RemoveTagError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = RemoveTagError.path(fieldValue); + } + else if ("other".equals(tag)) { + value = RemoveTagError.OTHER; + } + else if ("tag_not_present".equals(tag)) { + value = RemoveTagError.TAG_NOT_PRESENT; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagErrorException.java new file mode 100644 index 000000000..37af82d28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link RemoveTagError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#tagsRemove(String,String)}.

+ */ +public class RemoveTagErrorException extends DbxApiException { + // exception for routes: + // 2/files/tags/remove + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#tagsRemove(String,String)}. + */ + public final RemoveTagError errorValue; + + public RemoveTagErrorException(String routeName, String requestId, LocalizedText userMessage, RemoveTagError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreArg.java new file mode 100644 index 000000000..1448e39ed --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreArg.java @@ -0,0 +1,188 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class RestoreArg { + // struct files.RestoreArg (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final String rev; + + /** + * + * @param path The path to save the restored file. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param rev The revision to restore. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RestoreArg(@Nonnull String path, @Nonnull String rev) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (rev == null) { + throw new IllegalArgumentException("Required value for 'rev' is null"); + } + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + this.rev = rev; + } + + /** + * The path to save the restored file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The revision to restore. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRev() { + return rev; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.rev + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RestoreArg other = (RestoreArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.rev == other.rev) || (this.rev.equals(other.rev))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RestoreArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("rev"); + StoneSerializers.string().serialize(value.rev, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RestoreArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RestoreArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_rev = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("rev".equals(field)) { + f_rev = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_rev == null) { + throw new JsonParseException(p, "Required field \"rev\" missing."); + } + value = new RestoreArg(f_path, f_rev); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreError.java new file mode 100644 index 000000000..8b79a4cbb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreError.java @@ -0,0 +1,426 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RestoreError { + // union files.RestoreError (files.stone) + + /** + * Discriminating tag type for {@link RestoreError}. + */ + public enum Tag { + /** + * An error occurs when downloading metadata for the file. + */ + PATH_LOOKUP, // LookupError + /** + * An error occurs when trying to restore the file to that path. + */ + PATH_WRITE, // WriteError + /** + * The revision is invalid. It may not exist or may point to a deleted + * file. + */ + INVALID_REVISION, + /** + * The restore is currently executing, but has not yet completed. + */ + IN_PROGRESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The revision is invalid. It may not exist or may point to a deleted file. + */ + public static final RestoreError INVALID_REVISION = new RestoreError().withTag(Tag.INVALID_REVISION); + /** + * The restore is currently executing, but has not yet completed. + */ + public static final RestoreError IN_PROGRESS = new RestoreError().withTag(Tag.IN_PROGRESS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RestoreError OTHER = new RestoreError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathLookupValue; + private WriteError pathWriteValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RestoreError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RestoreError withTag(Tag _tag) { + RestoreError result = new RestoreError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathLookupValue An error occurs when downloading metadata for the + * file. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RestoreError withTagAndPathLookup(Tag _tag, LookupError pathLookupValue) { + RestoreError result = new RestoreError(); + result._tag = _tag; + result.pathLookupValue = pathLookupValue; + return result; + } + + /** + * + * @param pathWriteValue An error occurs when trying to restore the file to + * that path. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RestoreError withTagAndPathWrite(Tag _tag, WriteError pathWriteValue) { + RestoreError result = new RestoreError(); + result._tag = _tag; + result.pathWriteValue = pathWriteValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RestoreError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PATH_LOOKUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PATH_LOOKUP}, {@code false} otherwise. + */ + public boolean isPathLookup() { + return this._tag == Tag.PATH_LOOKUP; + } + + /** + * Returns an instance of {@code RestoreError} that has its tag set to + * {@link Tag#PATH_LOOKUP}. + * + *

An error occurs when downloading metadata for the file.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RestoreError} with its tag set to {@link + * Tag#PATH_LOOKUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RestoreError pathLookup(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RestoreError().withTagAndPathLookup(Tag.PATH_LOOKUP, value); + } + + /** + * An error occurs when downloading metadata for the file. + * + *

This instance must be tagged as {@link Tag#PATH_LOOKUP}.

+ * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPathLookup} is {@code true}. + * + * @throws IllegalStateException If {@link #isPathLookup} is {@code false}. + */ + public LookupError getPathLookupValue() { + if (this._tag != Tag.PATH_LOOKUP) { + throw new IllegalStateException("Invalid tag: required Tag.PATH_LOOKUP, but was Tag." + this._tag.name()); + } + return pathLookupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH_WRITE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PATH_WRITE}, {@code false} otherwise. + */ + public boolean isPathWrite() { + return this._tag == Tag.PATH_WRITE; + } + + /** + * Returns an instance of {@code RestoreError} that has its tag set to + * {@link Tag#PATH_WRITE}. + * + *

An error occurs when trying to restore the file to that path.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RestoreError} with its tag set to {@link + * Tag#PATH_WRITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RestoreError pathWrite(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RestoreError().withTagAndPathWrite(Tag.PATH_WRITE, value); + } + + /** + * An error occurs when trying to restore the file to that path. + * + *

This instance must be tagged as {@link Tag#PATH_WRITE}.

+ * + * @return The {@link WriteError} value associated with this instance if + * {@link #isPathWrite} is {@code true}. + * + * @throws IllegalStateException If {@link #isPathWrite} is {@code false}. + */ + public WriteError getPathWriteValue() { + if (this._tag != Tag.PATH_WRITE) { + throw new IllegalStateException("Invalid tag: required Tag.PATH_WRITE, but was Tag." + this._tag.name()); + } + return pathWriteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_REVISION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_REVISION}, {@code false} otherwise. + */ + public boolean isInvalidRevision() { + return this._tag == Tag.INVALID_REVISION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathLookupValue, + this.pathWriteValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RestoreError) { + RestoreError other = (RestoreError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH_LOOKUP: + return (this.pathLookupValue == other.pathLookupValue) || (this.pathLookupValue.equals(other.pathLookupValue)); + case PATH_WRITE: + return (this.pathWriteValue == other.pathWriteValue) || (this.pathWriteValue.equals(other.pathWriteValue)); + case INVALID_REVISION: + return true; + case IN_PROGRESS: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RestoreError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH_LOOKUP: { + g.writeStartObject(); + writeTag("path_lookup", g); + g.writeFieldName("path_lookup"); + LookupError.Serializer.INSTANCE.serialize(value.pathLookupValue, g); + g.writeEndObject(); + break; + } + case PATH_WRITE: { + g.writeStartObject(); + writeTag("path_write", g); + g.writeFieldName("path_write"); + WriteError.Serializer.INSTANCE.serialize(value.pathWriteValue, g); + g.writeEndObject(); + break; + } + case INVALID_REVISION: { + g.writeString("invalid_revision"); + break; + } + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RestoreError deserialize(JsonParser p) throws IOException, JsonParseException { + RestoreError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path_lookup".equals(tag)) { + LookupError fieldValue = null; + expectField("path_lookup", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = RestoreError.pathLookup(fieldValue); + } + else if ("path_write".equals(tag)) { + WriteError fieldValue = null; + expectField("path_write", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = RestoreError.pathWrite(fieldValue); + } + else if ("invalid_revision".equals(tag)) { + value = RestoreError.INVALID_REVISION; + } + else if ("in_progress".equals(tag)) { + value = RestoreError.IN_PROGRESS; + } + else { + value = RestoreError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreErrorException.java new file mode 100644 index 000000000..5fdd76f0e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link RestoreError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#restore(String,String)}.

+ */ +public class RestoreErrorException extends DbxApiException { + // exception for routes: + // 2/files/restore + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#restore(String,String)}. + */ + public final RestoreError errorValue; + + public RestoreErrorException(String routeName, String requestId, LocalizedText userMessage, RestoreError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceArg.java new file mode 100644 index 000000000..7c9974a5d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceArg.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class SaveCopyReferenceArg { + // struct files.SaveCopyReferenceArg (files.stone) + + @Nonnull + protected final String copyReference; + @Nonnull + protected final String path; + + /** + * + * @param copyReference A copy reference returned by {@link + * DbxUserFilesRequests#copyReferenceGet(String)}. Must not be {@code + * null}. + * @param path Path in the user's Dropbox that is the destination. Must + * match pattern "{@code /(.|[\\r\\n])*}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SaveCopyReferenceArg(@Nonnull String copyReference, @Nonnull String path) { + if (copyReference == null) { + throw new IllegalArgumentException("Required value for 'copyReference' is null"); + } + this.copyReference = copyReference; + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + } + + /** + * A copy reference returned by {@link + * DbxUserFilesRequests#copyReferenceGet(String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCopyReference() { + return copyReference; + } + + /** + * Path in the user's Dropbox that is the destination. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.copyReference, + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SaveCopyReferenceArg other = (SaveCopyReferenceArg) obj; + return ((this.copyReference == other.copyReference) || (this.copyReference.equals(other.copyReference))) + && ((this.path == other.path) || (this.path.equals(other.path))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SaveCopyReferenceArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("copy_reference"); + StoneSerializers.string().serialize(value.copyReference, g); + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SaveCopyReferenceArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SaveCopyReferenceArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_copyReference = null; + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("copy_reference".equals(field)) { + f_copyReference = StoneSerializers.string().deserialize(p); + } + else if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_copyReference == null) { + throw new JsonParseException(p, "Required field \"copy_reference\" missing."); + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new SaveCopyReferenceArg(f_copyReference, f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceError.java new file mode 100644 index 000000000..4883e8b76 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceError.java @@ -0,0 +1,393 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SaveCopyReferenceError { + // union files.SaveCopyReferenceError (files.stone) + + /** + * Discriminating tag type for {@link SaveCopyReferenceError}. + */ + public enum Tag { + PATH, // WriteError + /** + * The copy reference is invalid. + */ + INVALID_COPY_REFERENCE, + /** + * You don't have permission to save the given copy reference. Please + * make sure this app is same app which created the copy reference and + * the source user is still linked to the app. + */ + NO_PERMISSION, + /** + * The file referenced by the copy reference cannot be found. + */ + NOT_FOUND, + /** + * The operation would involve more than 10,000 files and folders. + */ + TOO_MANY_FILES, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The copy reference is invalid. + */ + public static final SaveCopyReferenceError INVALID_COPY_REFERENCE = new SaveCopyReferenceError().withTag(Tag.INVALID_COPY_REFERENCE); + /** + * You don't have permission to save the given copy reference. Please make + * sure this app is same app which created the copy reference and the source + * user is still linked to the app. + */ + public static final SaveCopyReferenceError NO_PERMISSION = new SaveCopyReferenceError().withTag(Tag.NO_PERMISSION); + /** + * The file referenced by the copy reference cannot be found. + */ + public static final SaveCopyReferenceError NOT_FOUND = new SaveCopyReferenceError().withTag(Tag.NOT_FOUND); + /** + * The operation would involve more than 10,000 files and folders. + */ + public static final SaveCopyReferenceError TOO_MANY_FILES = new SaveCopyReferenceError().withTag(Tag.TOO_MANY_FILES); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SaveCopyReferenceError OTHER = new SaveCopyReferenceError().withTag(Tag.OTHER); + + private Tag _tag; + private WriteError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SaveCopyReferenceError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SaveCopyReferenceError withTag(Tag _tag) { + SaveCopyReferenceError result = new SaveCopyReferenceError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SaveCopyReferenceError withTagAndPath(Tag _tag, WriteError pathValue) { + SaveCopyReferenceError result = new SaveCopyReferenceError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SaveCopyReferenceError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code SaveCopyReferenceError} that has its tag + * set to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SaveCopyReferenceError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SaveCopyReferenceError path(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SaveCopyReferenceError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public WriteError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_COPY_REFERENCE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_COPY_REFERENCE}, {@code false} otherwise. + */ + public boolean isInvalidCopyReference() { + return this._tag == Tag.INVALID_COPY_REFERENCE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SaveCopyReferenceError) { + SaveCopyReferenceError other = (SaveCopyReferenceError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case INVALID_COPY_REFERENCE: + return true; + case NO_PERMISSION: + return true; + case NOT_FOUND: + return true; + case TOO_MANY_FILES: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SaveCopyReferenceError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + WriteError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case INVALID_COPY_REFERENCE: { + g.writeString("invalid_copy_reference"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SaveCopyReferenceError deserialize(JsonParser p) throws IOException, JsonParseException { + SaveCopyReferenceError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + WriteError fieldValue = null; + expectField("path", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = SaveCopyReferenceError.path(fieldValue); + } + else if ("invalid_copy_reference".equals(tag)) { + value = SaveCopyReferenceError.INVALID_COPY_REFERENCE; + } + else if ("no_permission".equals(tag)) { + value = SaveCopyReferenceError.NO_PERMISSION; + } + else if ("not_found".equals(tag)) { + value = SaveCopyReferenceError.NOT_FOUND; + } + else if ("too_many_files".equals(tag)) { + value = SaveCopyReferenceError.TOO_MANY_FILES; + } + else { + value = SaveCopyReferenceError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceErrorException.java new file mode 100644 index 000000000..db444a538 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * SaveCopyReferenceError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#copyReferenceSave(String,String)}.

+ */ +public class SaveCopyReferenceErrorException extends DbxApiException { + // exception for routes: + // 2/files/copy_reference/save + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#copyReferenceSave(String,String)}. + */ + public final SaveCopyReferenceError errorValue; + + public SaveCopyReferenceErrorException(String routeName, String requestId, LocalizedText userMessage, SaveCopyReferenceError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceResult.java new file mode 100644 index 000000000..cb5469bd5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceResult.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SaveCopyReferenceResult { + // struct files.SaveCopyReferenceResult (files.stone) + + @Nonnull + protected final Metadata metadata; + + /** + * + * @param metadata The metadata of the saved file or folder in the user's + * Dropbox. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SaveCopyReferenceResult(@Nonnull Metadata metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * The metadata of the saved file or folder in the user's Dropbox. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SaveCopyReferenceResult other = (SaveCopyReferenceResult) obj; + return (this.metadata == other.metadata) || (this.metadata.equals(other.metadata)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SaveCopyReferenceResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SaveCopyReferenceResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SaveCopyReferenceResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Metadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new SaveCopyReferenceResult(f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlArg.java new file mode 100644 index 000000000..e355141a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlArg.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class SaveUrlArg { + // struct files.SaveUrlArg (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final String url; + + /** + * + * @param path The path in Dropbox where the URL will be saved to. Must + * match pattern "{@code /(.|[\\r\\n])*}" and not be {@code null}. + * @param url The URL to be saved. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SaveUrlArg(@Nonnull String path, @Nonnull String url) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + } + + /** + * The path in Dropbox where the URL will be saved to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The URL to be saved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.url + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SaveUrlArg other = (SaveUrlArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.url == other.url) || (this.url.equals(other.url))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SaveUrlArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SaveUrlArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SaveUrlArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_url = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + value = new SaveUrlArg(f_path, f_url); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlError.java new file mode 100644 index 000000000..451f8e3b8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlError.java @@ -0,0 +1,364 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SaveUrlError { + // union files.SaveUrlError (files.stone) + + /** + * Discriminating tag type for {@link SaveUrlError}. + */ + public enum Tag { + PATH, // WriteError + /** + * Failed downloading the given URL. The URL may be password-protected + * and the password provided was incorrect, or the link may be + * disabled. + */ + DOWNLOAD_FAILED, + /** + * The given URL is invalid. + */ + INVALID_URL, + /** + * The file where the URL is saved to no longer exists. + */ + NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Failed downloading the given URL. The URL may be password-protected and + * the password provided was incorrect, or the link may be disabled. + */ + public static final SaveUrlError DOWNLOAD_FAILED = new SaveUrlError().withTag(Tag.DOWNLOAD_FAILED); + /** + * The given URL is invalid. + */ + public static final SaveUrlError INVALID_URL = new SaveUrlError().withTag(Tag.INVALID_URL); + /** + * The file where the URL is saved to no longer exists. + */ + public static final SaveUrlError NOT_FOUND = new SaveUrlError().withTag(Tag.NOT_FOUND); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SaveUrlError OTHER = new SaveUrlError().withTag(Tag.OTHER); + + private Tag _tag; + private WriteError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SaveUrlError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SaveUrlError withTag(Tag _tag) { + SaveUrlError result = new SaveUrlError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SaveUrlError withTagAndPath(Tag _tag, WriteError pathValue) { + SaveUrlError result = new SaveUrlError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SaveUrlError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code SaveUrlError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SaveUrlError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SaveUrlError path(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SaveUrlError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link WriteError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public WriteError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOWNLOAD_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOWNLOAD_FAILED}, {@code false} otherwise. + */ + public boolean isDownloadFailed() { + return this._tag == Tag.DOWNLOAD_FAILED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_URL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_URL}, {@code false} otherwise. + */ + public boolean isInvalidUrl() { + return this._tag == Tag.INVALID_URL; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SaveUrlError) { + SaveUrlError other = (SaveUrlError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case DOWNLOAD_FAILED: + return true; + case INVALID_URL: + return true; + case NOT_FOUND: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SaveUrlError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + WriteError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case DOWNLOAD_FAILED: { + g.writeString("download_failed"); + break; + } + case INVALID_URL: { + g.writeString("invalid_url"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SaveUrlError deserialize(JsonParser p) throws IOException, JsonParseException { + SaveUrlError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + WriteError fieldValue = null; + expectField("path", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = SaveUrlError.path(fieldValue); + } + else if ("download_failed".equals(tag)) { + value = SaveUrlError.DOWNLOAD_FAILED; + } + else if ("invalid_url".equals(tag)) { + value = SaveUrlError.INVALID_URL; + } + else if ("not_found".equals(tag)) { + value = SaveUrlError.NOT_FOUND; + } + else { + value = SaveUrlError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlErrorException.java new file mode 100644 index 000000000..b1139c7db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link SaveUrlError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#saveUrl(String,String)}.

+ */ +public class SaveUrlErrorException extends DbxApiException { + // exception for routes: + // 2/files/save_url + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#saveUrl(String,String)}. + */ + public final SaveUrlError errorValue; + + public SaveUrlErrorException(String routeName, String requestId, LocalizedText userMessage, SaveUrlError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlJobStatus.java new file mode 100644 index 000000000..e94cb7bf2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlJobStatus.java @@ -0,0 +1,353 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class SaveUrlJobStatus { + // union files.SaveUrlJobStatus (files.stone) + + /** + * Discriminating tag type for {@link SaveUrlJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * Metadata of the file where the URL is saved to. + */ + COMPLETE, // FileMetadata + FAILED; // SaveUrlError + } + + /** + * The asynchronous job is still in progress. + */ + public static final SaveUrlJobStatus IN_PROGRESS = new SaveUrlJobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private FileMetadata completeValue; + private SaveUrlError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SaveUrlJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SaveUrlJobStatus withTag(Tag _tag) { + SaveUrlJobStatus result = new SaveUrlJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue Metadata of the file where the URL is saved to. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SaveUrlJobStatus withTagAndComplete(Tag _tag, FileMetadata completeValue) { + SaveUrlJobStatus result = new SaveUrlJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SaveUrlJobStatus withTagAndFailed(Tag _tag, SaveUrlError failedValue) { + SaveUrlJobStatus result = new SaveUrlJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SaveUrlJobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code SaveUrlJobStatus} that has its tag set to + * {@link Tag#COMPLETE}. + * + *

Metadata of the file where the URL is saved to.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SaveUrlJobStatus} with its tag set to {@link + * Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SaveUrlJobStatus complete(FileMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SaveUrlJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * Metadata of the file where the URL is saved to. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link FileMetadata} value associated with this instance if + * {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public FileMetadata getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code SaveUrlJobStatus} that has its tag set to + * {@link Tag#FAILED}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SaveUrlJobStatus} with its tag set to {@link + * Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SaveUrlJobStatus failed(SaveUrlError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SaveUrlJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILED}. + * + * @return The {@link SaveUrlError} value associated with this instance if + * {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public SaveUrlError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SaveUrlJobStatus) { + SaveUrlJobStatus other = (SaveUrlJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SaveUrlJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + FileMetadata.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + SaveUrlError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public SaveUrlJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + SaveUrlJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = SaveUrlJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + FileMetadata fieldValue = null; + fieldValue = FileMetadata.Serializer.INSTANCE.deserialize(p, true); + value = SaveUrlJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + SaveUrlError fieldValue = null; + expectField("failed", p); + fieldValue = SaveUrlError.Serializer.INSTANCE.deserialize(p); + value = SaveUrlJobStatus.failed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlResult.java new file mode 100644 index 000000000..afa7cd172 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlResult.java @@ -0,0 +1,341 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class SaveUrlResult { + // union files.SaveUrlResult (files.stone) + + /** + * Discriminating tag type for {@link SaveUrlResult}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + /** + * Metadata of the file where the URL is saved to. + */ + COMPLETE; // FileMetadata + } + + private Tag _tag; + private String asyncJobIdValue; + private FileMetadata completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SaveUrlResult() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SaveUrlResult withTag(Tag _tag) { + SaveUrlResult result = new SaveUrlResult(); + result._tag = _tag; + return result; + } + + /** + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SaveUrlResult withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + SaveUrlResult result = new SaveUrlResult(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * + * @param completeValue Metadata of the file where the URL is saved to. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SaveUrlResult withTagAndComplete(Tag _tag, FileMetadata completeValue) { + SaveUrlResult result = new SaveUrlResult(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SaveUrlResult}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code SaveUrlResult} that has its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SaveUrlResult} with its tag set to {@link + * Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static SaveUrlResult asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new SaveUrlResult().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code SaveUrlResult} that has its tag set to + * {@link Tag#COMPLETE}. + * + *

Metadata of the file where the URL is saved to.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SaveUrlResult} with its tag set to {@link + * Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SaveUrlResult complete(FileMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SaveUrlResult().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * Metadata of the file where the URL is saved to. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link FileMetadata} value associated with this instance if + * {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public FileMetadata getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SaveUrlResult) { + SaveUrlResult other = (SaveUrlResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SaveUrlResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + FileMetadata.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public SaveUrlResult deserialize(JsonParser p) throws IOException, JsonParseException { + SaveUrlResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = SaveUrlResult.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + FileMetadata fieldValue = null; + fieldValue = FileMetadata.Serializer.INSTANCE.deserialize(p, true); + value = SaveUrlResult.complete(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchArg.java new file mode 100644 index 000000000..4983ecad3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchArg.java @@ -0,0 +1,447 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class SearchArg { + // struct files.SearchArg (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final String query; + protected final long start; + protected final long maxResults; + @Nonnull + protected final SearchMode mode; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path in the user's Dropbox to search. Should probably be + * a folder. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param query The string to search for. Query string may be rewritten to + * improve relevance of results. The string is split on spaces into + * multiple tokens. For file name searching, the last token is used for + * prefix matching (i.e. "bat c" matches "bat cave" but not "batman + * car"). Must have length of at most 1000 and not be {@code null}. + * @param start The starting index within the search results (used for + * paging). Must be less than or equal to 9999. + * @param maxResults The maximum number of search results to return. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * @param mode The search mode (filename, filename_and_content, or + * deleted_filename). Note that searching file content is only available + * for Dropbox Business accounts. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchArg(@Nonnull String path, @Nonnull String query, long start, long maxResults, @Nonnull SearchMode mode) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + if (query.length() > 1000) { + throw new IllegalArgumentException("String 'query' is longer than 1000"); + } + this.query = query; + if (start > 9999L) { + throw new IllegalArgumentException("Number 'start' is larger than 9999L"); + } + this.start = start; + if (maxResults < 1L) { + throw new IllegalArgumentException("Number 'maxResults' is smaller than 1L"); + } + if (maxResults > 1000L) { + throw new IllegalArgumentException("Number 'maxResults' is larger than 1000L"); + } + this.maxResults = maxResults; + if (mode == null) { + throw new IllegalArgumentException("Required value for 'mode' is null"); + } + this.mode = mode; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path in the user's Dropbox to search. Should probably be + * a folder. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param query The string to search for. Query string may be rewritten to + * improve relevance of results. The string is split on spaces into + * multiple tokens. For file name searching, the last token is used for + * prefix matching (i.e. "bat c" matches "bat cave" but not "batman + * car"). Must have length of at most 1000 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchArg(@Nonnull String path, @Nonnull String query) { + this(path, query, 0L, 100L, SearchMode.FILENAME); + } + + /** + * The path in the user's Dropbox to search. Should probably be a folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The string to search for. Query string may be rewritten to improve + * relevance of results. The string is split on spaces into multiple tokens. + * For file name searching, the last token is used for prefix matching (i.e. + * "bat c" matches "bat cave" but not "batman car"). + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getQuery() { + return query; + } + + /** + * The starting index within the search results (used for paging). + * + * @return value for this field, or {@code null} if not present. Defaults to + * 0L. + */ + public long getStart() { + return start; + } + + /** + * The maximum number of search results to return. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 100L. + */ + public long getMaxResults() { + return maxResults; + } + + /** + * The search mode (filename, filename_and_content, or deleted_filename). + * Note that searching file content is only available for Dropbox Business + * accounts. + * + * @return value for this field, or {@code null} if not present. Defaults to + * SearchMode.FILENAME. + */ + @Nonnull + public SearchMode getMode() { + return mode; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path in the user's Dropbox to search. Should probably be + * a folder. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}" and not be {@code null}. + * @param query The string to search for. Query string may be rewritten to + * improve relevance of results. The string is split on spaces into + * multiple tokens. For file name searching, the last token is used for + * prefix matching (i.e. "bat c" matches "bat cave" but not "batman + * car"). Must have length of at most 1000 and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path, String query) { + return new Builder(path, query); + } + + /** + * Builder for {@link SearchArg}. + */ + public static class Builder { + protected final String path; + protected final String query; + + protected long start; + protected long maxResults; + protected SearchMode mode; + + protected Builder(String path, String query) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + if (query.length() > 1000) { + throw new IllegalArgumentException("String 'query' is longer than 1000"); + } + this.query = query; + this.start = 0L; + this.maxResults = 100L; + this.mode = SearchMode.FILENAME; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 0L}. + *

+ * + * @param start The starting index within the search results (used for + * paging). Must be less than or equal to 9999. Defaults to {@code + * 0L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withStart(Long start) { + if (start > 9999L) { + throw new IllegalArgumentException("Number 'start' is larger than 9999L"); + } + if (start != null) { + this.start = start; + } + else { + this.start = 0L; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 100L}. + *

+ * + * @param maxResults The maximum number of search results to return. + * Must be greater than or equal to 1 and be less than or equal to + * 1000. Defaults to {@code 100L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMaxResults(Long maxResults) { + if (maxResults < 1L) { + throw new IllegalArgumentException("Number 'maxResults' is smaller than 1L"); + } + if (maxResults > 1000L) { + throw new IllegalArgumentException("Number 'maxResults' is larger than 1000L"); + } + if (maxResults != null) { + this.maxResults = maxResults; + } + else { + this.maxResults = 100L; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * SearchMode.FILENAME}.

+ * + * @param mode The search mode (filename, filename_and_content, or + * deleted_filename). Note that searching file content is only + * available for Dropbox Business accounts. Must not be {@code + * null}. Defaults to {@code SearchMode.FILENAME} when set to {@code + * null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMode(SearchMode mode) { + if (mode != null) { + this.mode = mode; + } + else { + this.mode = SearchMode.FILENAME; + } + return this; + } + + /** + * Builds an instance of {@link SearchArg} configured with this + * builder's values + * + * @return new instance of {@link SearchArg} + */ + public SearchArg build() { + return new SearchArg(path, query, start, maxResults, mode); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.query, + this.start, + this.maxResults, + this.mode + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchArg other = (SearchArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.query == other.query) || (this.query.equals(other.query))) + && (this.start == other.start) + && (this.maxResults == other.maxResults) + && ((this.mode == other.mode) || (this.mode.equals(other.mode))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("query"); + StoneSerializers.string().serialize(value.query, g); + g.writeFieldName("start"); + StoneSerializers.uInt64().serialize(value.start, g); + g.writeFieldName("max_results"); + StoneSerializers.uInt64().serialize(value.maxResults, g); + g.writeFieldName("mode"); + SearchMode.Serializer.INSTANCE.serialize(value.mode, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_query = null; + Long f_start = 0L; + Long f_maxResults = 100L; + SearchMode f_mode = SearchMode.FILENAME; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("query".equals(field)) { + f_query = StoneSerializers.string().deserialize(p); + } + else if ("start".equals(field)) { + f_start = StoneSerializers.uInt64().deserialize(p); + } + else if ("max_results".equals(field)) { + f_maxResults = StoneSerializers.uInt64().deserialize(p); + } + else if ("mode".equals(field)) { + f_mode = SearchMode.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + if (f_query == null) { + throw new JsonParseException(p, "Required field \"query\" missing."); + } + value = new SearchArg(f_path, f_query, f_start, f_maxResults, f_mode); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchBuilder.java new file mode 100644 index 000000000..79845f671 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchBuilder.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link DbxUserFilesRequests#searchBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class SearchBuilder { + private final DbxUserFilesRequests _client; + private final SearchArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + SearchBuilder(DbxUserFilesRequests _client, SearchArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 0L}.

+ * + * @param start The starting index within the search results (used for + * paging). Must be less than or equal to 9999. Defaults to {@code 0L} + * when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchBuilder withStart(Long start) { + this._builder.withStart(start); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 100L}.

+ * + * @param maxResults The maximum number of search results to return. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * Defaults to {@code 100L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchBuilder withMaxResults(Long maxResults) { + this._builder.withMaxResults(maxResults); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * SearchMode.FILENAME}.

+ * + * @param mode The search mode (filename, filename_and_content, or + * deleted_filename). Note that searching file content is only available + * for Dropbox Business accounts. Must not be {@code null}. Defaults to + * {@code SearchMode.FILENAME} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchBuilder withMode(SearchMode mode) { + this._builder.withMode(mode); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public SearchResult start() throws SearchErrorException, DbxException { + SearchArg arg_ = this._builder.build(); + return _client.search(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchError.java new file mode 100644 index 000000000..4ee4f025d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchError.java @@ -0,0 +1,397 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SearchError { + // union files.SearchError (files.stone) + + /** + * Discriminating tag type for {@link SearchError}. + */ + public enum Tag { + PATH, // LookupError + INVALID_ARGUMENT, // String + /** + * Something went wrong, please try again. + */ + INTERNAL_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Something went wrong, please try again. + */ + public static final SearchError INTERNAL_ERROR = new SearchError().withTag(Tag.INTERNAL_ERROR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SearchError OTHER = new SearchError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + private String invalidArgumentValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SearchError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SearchError withTag(Tag _tag) { + SearchError result = new SearchError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SearchError withTagAndPath(Tag _tag, LookupError pathValue) { + SearchError result = new SearchError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SearchError withTagAndInvalidArgument(Tag _tag, String invalidArgumentValue) { + SearchError result = new SearchError(); + result._tag = _tag; + result.invalidArgumentValue = invalidArgumentValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SearchError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code SearchError} that has its tag set to {@link + * Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SearchError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SearchError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SearchError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_ARGUMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_ARGUMENT}, {@code false} otherwise. + */ + public boolean isInvalidArgument() { + return this._tag == Tag.INVALID_ARGUMENT; + } + + /** + * Returns an instance of {@code SearchError} that has its tag set to {@link + * Tag#INVALID_ARGUMENT}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SearchError} with its tag set to {@link + * Tag#INVALID_ARGUMENT}. + */ + public static SearchError invalidArgument(String value) { + return new SearchError().withTagAndInvalidArgument(Tag.INVALID_ARGUMENT, value); + } + + /** + * Returns an instance of {@code SearchError} that has its tag set to {@link + * Tag#INVALID_ARGUMENT}. + * + *

None

+ * + * @return Instance of {@code SearchError} with its tag set to {@link + * Tag#INVALID_ARGUMENT}. + */ + public static SearchError invalidArgument() { + return invalidArgument(null); + } + + /** + * This instance must be tagged as {@link Tag#INVALID_ARGUMENT}. + * + * @return The {@link String} value associated with this instance if {@link + * #isInvalidArgument} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidArgument} is {@code + * false}. + */ + public String getInvalidArgumentValue() { + if (this._tag != Tag.INVALID_ARGUMENT) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_ARGUMENT, but was Tag." + this._tag.name()); + } + return invalidArgumentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTERNAL_ERROR}, {@code false} otherwise. + */ + public boolean isInternalError() { + return this._tag == Tag.INTERNAL_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue, + this.invalidArgumentValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SearchError) { + SearchError other = (SearchError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case INVALID_ARGUMENT: + return (this.invalidArgumentValue == other.invalidArgumentValue) || (this.invalidArgumentValue != null && this.invalidArgumentValue.equals(other.invalidArgumentValue)); + case INTERNAL_ERROR: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case INVALID_ARGUMENT: { + g.writeStartObject(); + writeTag("invalid_argument", g); + g.writeFieldName("invalid_argument"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.invalidArgumentValue, g); + g.writeEndObject(); + break; + } + case INTERNAL_ERROR: { + g.writeString("internal_error"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SearchError deserialize(JsonParser p) throws IOException, JsonParseException { + SearchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = SearchError.path(fieldValue); + } + else if ("invalid_argument".equals(tag)) { + String fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + expectField("invalid_argument", p); + fieldValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + if (fieldValue == null) { + value = SearchError.invalidArgument(); + } + else { + value = SearchError.invalidArgument(fieldValue); + } + } + else if ("internal_error".equals(tag)) { + value = SearchError.INTERNAL_ERROR; + } + else { + value = SearchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchErrorException.java new file mode 100644 index 000000000..c1a13275a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchErrorException.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link SearchError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#search(String,String)}, {@link + * DbxUserFilesRequests#searchV2(String)}, and {@link + * DbxUserFilesRequests#searchContinueV2(String)}.

+ */ +public class SearchErrorException extends DbxApiException { + // exception for routes: + // 2/files/search + // 2/files/search_v2 + // 2/files/search/continue_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#search(String,String)}, + * {@link DbxUserFilesRequests#searchV2(String)}, and {@link + * DbxUserFilesRequests#searchContinueV2(String)}. + */ + public final SearchError errorValue; + + public SearchErrorException(String routeName, String requestId, LocalizedText userMessage, SearchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatch.java new file mode 100644 index 000000000..c35e3ae81 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatch.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SearchMatch { + // struct files.SearchMatch (files.stone) + + @Nonnull + protected final SearchMatchType matchType; + @Nonnull + protected final Metadata metadata; + + /** + * + * @param matchType The type of the match. Must not be {@code null}. + * @param metadata The metadata for the matched file or folder. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchMatch(@Nonnull SearchMatchType matchType, @Nonnull Metadata metadata) { + if (matchType == null) { + throw new IllegalArgumentException("Required value for 'matchType' is null"); + } + this.matchType = matchType; + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + } + + /** + * The type of the match. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SearchMatchType getMatchType() { + return matchType; + } + + /** + * The metadata for the matched file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Metadata getMetadata() { + return metadata; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.matchType, + this.metadata + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchMatch other = (SearchMatch) obj; + return ((this.matchType == other.matchType) || (this.matchType.equals(other.matchType))) + && ((this.metadata == other.metadata) || (this.metadata.equals(other.metadata))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchMatch value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("match_type"); + SearchMatchType.Serializer.INSTANCE.serialize(value.matchType, g); + g.writeFieldName("metadata"); + Metadata.Serializer.INSTANCE.serialize(value.metadata, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchMatch deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchMatch value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SearchMatchType f_matchType = null; + Metadata f_metadata = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("match_type".equals(field)) { + f_matchType = SearchMatchType.Serializer.INSTANCE.deserialize(p); + } + else if ("metadata".equals(field)) { + f_metadata = Metadata.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_matchType == null) { + throw new JsonParseException(p, "Required field \"match_type\" missing."); + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new SearchMatch(f_matchType, f_metadata); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchFieldOptions.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchFieldOptions.java new file mode 100644 index 000000000..0b41abf6a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchFieldOptions.java @@ -0,0 +1,145 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class SearchMatchFieldOptions { + // struct files.SearchMatchFieldOptions (files.stone) + + protected final boolean includeHighlights; + + /** + * + * @param includeHighlights Whether to include highlight span from file + * title. + */ + public SearchMatchFieldOptions(boolean includeHighlights) { + this.includeHighlights = includeHighlights; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public SearchMatchFieldOptions() { + this(false); + } + + /** + * Whether to include highlight span from file title. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeHighlights() { + return includeHighlights; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.includeHighlights + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchMatchFieldOptions other = (SearchMatchFieldOptions) obj; + return this.includeHighlights == other.includeHighlights; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchMatchFieldOptions value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("include_highlights"); + StoneSerializers.boolean_().serialize(value.includeHighlights, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchMatchFieldOptions deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchMatchFieldOptions value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_includeHighlights = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("include_highlights".equals(field)) { + f_includeHighlights = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + value = new SearchMatchFieldOptions(f_includeHighlights); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchType.java new file mode 100644 index 000000000..4381d195c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchType.java @@ -0,0 +1,101 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Indicates what type of match was found for a given item. + */ +public enum SearchMatchType { + // union files.SearchMatchType (files.stone) + /** + * This item was matched on its file or folder name. + */ + FILENAME, + /** + * This item was matched based on its file contents. + */ + CONTENT, + /** + * This item was matched based on both its contents and its file name. + */ + BOTH; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchMatchType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FILENAME: { + g.writeString("filename"); + break; + } + case CONTENT: { + g.writeString("content"); + break; + } + case BOTH: { + g.writeString("both"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public SearchMatchType deserialize(JsonParser p) throws IOException, JsonParseException { + SearchMatchType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("filename".equals(tag)) { + value = SearchMatchType.FILENAME; + } + else if ("content".equals(tag)) { + value = SearchMatchType.CONTENT; + } + else if ("both".equals(tag)) { + value = SearchMatchType.BOTH; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchTypeV2.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchTypeV2.java new file mode 100644 index 000000000..e28844322 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchTypeV2.java @@ -0,0 +1,120 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Indicates what type of match was found for a given item. + */ +public enum SearchMatchTypeV2 { + // union files.SearchMatchTypeV2 (files.stone) + /** + * This item was matched on its file or folder name. + */ + FILENAME, + /** + * This item was matched based on its file contents. + */ + FILE_CONTENT, + /** + * This item was matched based on both its contents and its file name. + */ + FILENAME_AND_CONTENT, + /** + * This item was matched on image content. + */ + IMAGE_CONTENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchMatchTypeV2 value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FILENAME: { + g.writeString("filename"); + break; + } + case FILE_CONTENT: { + g.writeString("file_content"); + break; + } + case FILENAME_AND_CONTENT: { + g.writeString("filename_and_content"); + break; + } + case IMAGE_CONTENT: { + g.writeString("image_content"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SearchMatchTypeV2 deserialize(JsonParser p) throws IOException, JsonParseException { + SearchMatchTypeV2 value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("filename".equals(tag)) { + value = SearchMatchTypeV2.FILENAME; + } + else if ("file_content".equals(tag)) { + value = SearchMatchTypeV2.FILE_CONTENT; + } + else if ("filename_and_content".equals(tag)) { + value = SearchMatchTypeV2.FILENAME_AND_CONTENT; + } + else if ("image_content".equals(tag)) { + value = SearchMatchTypeV2.IMAGE_CONTENT; + } + else { + value = SearchMatchTypeV2.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchV2.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchV2.java new file mode 100644 index 000000000..dc33be803 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMatchV2.java @@ -0,0 +1,306 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SearchMatchV2 { + // struct files.SearchMatchV2 (files.stone) + + @Nonnull + protected final MetadataV2 metadata; + @Nullable + protected final SearchMatchTypeV2 matchType; + @Nullable + protected final List highlightSpans; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param metadata The metadata for the matched file or folder. Must not be + * {@code null}. + * @param matchType The type of the match. + * @param highlightSpans The list of HighlightSpan determines which parts + * of the file title should be highlighted. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchMatchV2(@Nonnull MetadataV2 metadata, @Nullable SearchMatchTypeV2 matchType, @Nullable List highlightSpans) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + this.matchType = matchType; + if (highlightSpans != null) { + for (HighlightSpan x : highlightSpans) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'highlightSpans' is null"); + } + } + } + this.highlightSpans = highlightSpans; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param metadata The metadata for the matched file or folder. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchMatchV2(@Nonnull MetadataV2 metadata) { + this(metadata, null, null); + } + + /** + * The metadata for the matched file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MetadataV2 getMetadata() { + return metadata; + } + + /** + * The type of the match. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SearchMatchTypeV2 getMatchType() { + return matchType; + } + + /** + * The list of HighlightSpan determines which parts of the file title should + * be highlighted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getHighlightSpans() { + return highlightSpans; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param metadata The metadata for the matched file or folder. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(MetadataV2 metadata) { + return new Builder(metadata); + } + + /** + * Builder for {@link SearchMatchV2}. + */ + public static class Builder { + protected final MetadataV2 metadata; + + protected SearchMatchTypeV2 matchType; + protected List highlightSpans; + + protected Builder(MetadataV2 metadata) { + if (metadata == null) { + throw new IllegalArgumentException("Required value for 'metadata' is null"); + } + this.metadata = metadata; + this.matchType = null; + this.highlightSpans = null; + } + + /** + * Set value for optional field. + * + * @param matchType The type of the match. + * + * @return this builder + */ + public Builder withMatchType(SearchMatchTypeV2 matchType) { + this.matchType = matchType; + return this; + } + + /** + * Set value for optional field. + * + * @param highlightSpans The list of HighlightSpan determines which + * parts of the file title should be highlighted. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withHighlightSpans(List highlightSpans) { + if (highlightSpans != null) { + for (HighlightSpan x : highlightSpans) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'highlightSpans' is null"); + } + } + } + this.highlightSpans = highlightSpans; + return this; + } + + /** + * Builds an instance of {@link SearchMatchV2} configured with this + * builder's values + * + * @return new instance of {@link SearchMatchV2} + */ + public SearchMatchV2 build() { + return new SearchMatchV2(metadata, matchType, highlightSpans); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.metadata, + this.matchType, + this.highlightSpans + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchMatchV2 other = (SearchMatchV2) obj; + return ((this.metadata == other.metadata) || (this.metadata.equals(other.metadata))) + && ((this.matchType == other.matchType) || (this.matchType != null && this.matchType.equals(other.matchType))) + && ((this.highlightSpans == other.highlightSpans) || (this.highlightSpans != null && this.highlightSpans.equals(other.highlightSpans))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchMatchV2 value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("metadata"); + MetadataV2.Serializer.INSTANCE.serialize(value.metadata, g); + if (value.matchType != null) { + g.writeFieldName("match_type"); + StoneSerializers.nullable(SearchMatchTypeV2.Serializer.INSTANCE).serialize(value.matchType, g); + } + if (value.highlightSpans != null) { + g.writeFieldName("highlight_spans"); + StoneSerializers.nullable(StoneSerializers.list(HighlightSpan.Serializer.INSTANCE)).serialize(value.highlightSpans, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchMatchV2 deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchMatchV2 value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MetadataV2 f_metadata = null; + SearchMatchTypeV2 f_matchType = null; + List f_highlightSpans = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("metadata".equals(field)) { + f_metadata = MetadataV2.Serializer.INSTANCE.deserialize(p); + } + else if ("match_type".equals(field)) { + f_matchType = StoneSerializers.nullable(SearchMatchTypeV2.Serializer.INSTANCE).deserialize(p); + } + else if ("highlight_spans".equals(field)) { + f_highlightSpans = StoneSerializers.nullable(StoneSerializers.list(HighlightSpan.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_metadata == null) { + throw new JsonParseException(p, "Required field \"metadata\" missing."); + } + value = new SearchMatchV2(f_metadata, f_matchType, f_highlightSpans); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMode.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMode.java new file mode 100644 index 000000000..d4deb6e1c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchMode.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SearchMode { + // union files.SearchMode (files.stone) + /** + * Search file and folder names. + */ + FILENAME, + /** + * Search file and folder names as well as file contents. + */ + FILENAME_AND_CONTENT, + /** + * Search for deleted file and folder names. + */ + DELETED_FILENAME; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchMode value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FILENAME: { + g.writeString("filename"); + break; + } + case FILENAME_AND_CONTENT: { + g.writeString("filename_and_content"); + break; + } + case DELETED_FILENAME: { + g.writeString("deleted_filename"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public SearchMode deserialize(JsonParser p) throws IOException, JsonParseException { + SearchMode value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("filename".equals(tag)) { + value = SearchMode.FILENAME; + } + else if ("filename_and_content".equals(tag)) { + value = SearchMode.FILENAME_AND_CONTENT; + } + else if ("deleted_filename".equals(tag)) { + value = SearchMode.DELETED_FILENAME; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchOptions.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchOptions.java new file mode 100644 index 000000000..ac7a332ee --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchOptions.java @@ -0,0 +1,597 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SearchOptions { + // struct files.SearchOptions (files.stone) + + @Nullable + protected final String path; + protected final long maxResults; + @Nullable + protected final SearchOrderBy orderBy; + @Nonnull + protected final FileStatus fileStatus; + protected final boolean filenameOnly; + @Nullable + protected final List fileExtensions; + @Nullable + protected final List fileCategories; + @Nullable + protected final String accountId; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path Scopes the search to a path in the user's Dropbox. Searches + * the entire Dropbox if not specified. Must match pattern "{@code + * (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}". + * @param maxResults The maximum number of search results to return. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * @param orderBy Specified property of the order of search results. By + * default, results are sorted by relevance. + * @param fileStatus Restricts search to the given file status. Must not be + * {@code null}. + * @param filenameOnly Restricts search to only match on filenames. + * @param fileExtensions Restricts search to only the extensions specified. + * Only supported for active file search. Must not contain a {@code + * null} item. + * @param fileCategories Restricts search to only the file categories + * specified. Only supported for active file search. Must not contain a + * {@code null} item. + * @param accountId Restricts results to the given account id. Must have + * length of at least 40 and have length of at most 40. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchOptions(@Nullable String path, long maxResults, @Nullable SearchOrderBy orderBy, @Nonnull FileStatus fileStatus, boolean filenameOnly, @Nullable List fileExtensions, @Nullable List fileCategories, @Nullable String accountId) { + if (path != null) { + if (!java.util.regex.Pattern.matches("(/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + } + this.path = path; + if (maxResults < 1L) { + throw new IllegalArgumentException("Number 'maxResults' is smaller than 1L"); + } + if (maxResults > 1000L) { + throw new IllegalArgumentException("Number 'maxResults' is larger than 1000L"); + } + this.maxResults = maxResults; + this.orderBy = orderBy; + if (fileStatus == null) { + throw new IllegalArgumentException("Required value for 'fileStatus' is null"); + } + this.fileStatus = fileStatus; + this.filenameOnly = filenameOnly; + if (fileExtensions != null) { + for (String x : fileExtensions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileExtensions' is null"); + } + } + } + this.fileExtensions = fileExtensions; + if (fileCategories != null) { + for (FileCategory x : fileCategories) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileCategories' is null"); + } + } + } + this.fileCategories = fileCategories; + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public SearchOptions() { + this(null, 100L, null, FileStatus.ACTIVE, false, null, null, null); + } + + /** + * Scopes the search to a path in the user's Dropbox. Searches the entire + * Dropbox if not specified. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPath() { + return path; + } + + /** + * The maximum number of search results to return. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 100L. + */ + public long getMaxResults() { + return maxResults; + } + + /** + * Specified property of the order of search results. By default, results + * are sorted by relevance. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SearchOrderBy getOrderBy() { + return orderBy; + } + + /** + * Restricts search to the given file status. + * + * @return value for this field, or {@code null} if not present. Defaults to + * FileStatus.ACTIVE. + */ + @Nonnull + public FileStatus getFileStatus() { + return fileStatus; + } + + /** + * Restricts search to only match on filenames. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getFilenameOnly() { + return filenameOnly; + } + + /** + * Restricts search to only the extensions specified. Only supported for + * active file search. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getFileExtensions() { + return fileExtensions; + } + + /** + * Restricts search to only the file categories specified. Only supported + * for active file search. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getFileCategories() { + return fileCategories; + } + + /** + * Restricts results to the given account id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SearchOptions}. + */ + public static class Builder { + + protected String path; + protected long maxResults; + protected SearchOrderBy orderBy; + protected FileStatus fileStatus; + protected boolean filenameOnly; + protected List fileExtensions; + protected List fileCategories; + protected String accountId; + + protected Builder() { + this.path = null; + this.maxResults = 100L; + this.orderBy = null; + this.fileStatus = FileStatus.ACTIVE; + this.filenameOnly = false; + this.fileExtensions = null; + this.fileCategories = null; + this.accountId = null; + } + + /** + * Set value for optional field. + * + * @param path Scopes the search to a path in the user's Dropbox. + * Searches the entire Dropbox if not specified. Must match pattern + * "{@code (/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPath(String path) { + if (path != null) { + if (!java.util.regex.Pattern.matches("(/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + } + this.path = path; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 100L}. + *

+ * + * @param maxResults The maximum number of search results to return. + * Must be greater than or equal to 1 and be less than or equal to + * 1000. Defaults to {@code 100L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMaxResults(Long maxResults) { + if (maxResults < 1L) { + throw new IllegalArgumentException("Number 'maxResults' is smaller than 1L"); + } + if (maxResults > 1000L) { + throw new IllegalArgumentException("Number 'maxResults' is larger than 1000L"); + } + if (maxResults != null) { + this.maxResults = maxResults; + } + else { + this.maxResults = 100L; + } + return this; + } + + /** + * Set value for optional field. + * + * @param orderBy Specified property of the order of search results. By + * default, results are sorted by relevance. + * + * @return this builder + */ + public Builder withOrderBy(SearchOrderBy orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * FileStatus.ACTIVE}.

+ * + * @param fileStatus Restricts search to the given file status. Must + * not be {@code null}. Defaults to {@code FileStatus.ACTIVE} when + * set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileStatus(FileStatus fileStatus) { + if (fileStatus != null) { + this.fileStatus = fileStatus; + } + else { + this.fileStatus = FileStatus.ACTIVE; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param filenameOnly Restricts search to only match on filenames. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withFilenameOnly(Boolean filenameOnly) { + if (filenameOnly != null) { + this.filenameOnly = filenameOnly; + } + else { + this.filenameOnly = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param fileExtensions Restricts search to only the extensions + * specified. Only supported for active file search. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileExtensions(List fileExtensions) { + if (fileExtensions != null) { + for (String x : fileExtensions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileExtensions' is null"); + } + } + } + this.fileExtensions = fileExtensions; + return this; + } + + /** + * Set value for optional field. + * + * @param fileCategories Restricts search to only the file categories + * specified. Only supported for active file search. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileCategories(List fileCategories) { + if (fileCategories != null) { + for (FileCategory x : fileCategories) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'fileCategories' is null"); + } + } + } + this.fileCategories = fileCategories; + return this; + } + + /** + * Set value for optional field. + * + * @param accountId Restricts results to the given account id. Must + * have length of at least 40 and have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + return this; + } + + /** + * Builds an instance of {@link SearchOptions} configured with this + * builder's values + * + * @return new instance of {@link SearchOptions} + */ + public SearchOptions build() { + return new SearchOptions(path, maxResults, orderBy, fileStatus, filenameOnly, fileExtensions, fileCategories, accountId); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.maxResults, + this.orderBy, + this.fileStatus, + this.filenameOnly, + this.fileExtensions, + this.fileCategories, + this.accountId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchOptions other = (SearchOptions) obj; + return ((this.path == other.path) || (this.path != null && this.path.equals(other.path))) + && (this.maxResults == other.maxResults) + && ((this.orderBy == other.orderBy) || (this.orderBy != null && this.orderBy.equals(other.orderBy))) + && ((this.fileStatus == other.fileStatus) || (this.fileStatus.equals(other.fileStatus))) + && (this.filenameOnly == other.filenameOnly) + && ((this.fileExtensions == other.fileExtensions) || (this.fileExtensions != null && this.fileExtensions.equals(other.fileExtensions))) + && ((this.fileCategories == other.fileCategories) || (this.fileCategories != null && this.fileCategories.equals(other.fileCategories))) + && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchOptions value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.path != null) { + g.writeFieldName("path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.path, g); + } + g.writeFieldName("max_results"); + StoneSerializers.uInt64().serialize(value.maxResults, g); + if (value.orderBy != null) { + g.writeFieldName("order_by"); + StoneSerializers.nullable(SearchOrderBy.Serializer.INSTANCE).serialize(value.orderBy, g); + } + g.writeFieldName("file_status"); + FileStatus.Serializer.INSTANCE.serialize(value.fileStatus, g); + g.writeFieldName("filename_only"); + StoneSerializers.boolean_().serialize(value.filenameOnly, g); + if (value.fileExtensions != null) { + g.writeFieldName("file_extensions"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.fileExtensions, g); + } + if (value.fileCategories != null) { + g.writeFieldName("file_categories"); + StoneSerializers.nullable(StoneSerializers.list(FileCategory.Serializer.INSTANCE)).serialize(value.fileCategories, g); + } + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchOptions deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchOptions value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + Long f_maxResults = 100L; + SearchOrderBy f_orderBy = null; + FileStatus f_fileStatus = FileStatus.ACTIVE; + Boolean f_filenameOnly = false; + List f_fileExtensions = null; + List f_fileCategories = null; + String f_accountId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("max_results".equals(field)) { + f_maxResults = StoneSerializers.uInt64().deserialize(p); + } + else if ("order_by".equals(field)) { + f_orderBy = StoneSerializers.nullable(SearchOrderBy.Serializer.INSTANCE).deserialize(p); + } + else if ("file_status".equals(field)) { + f_fileStatus = FileStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("filename_only".equals(field)) { + f_filenameOnly = StoneSerializers.boolean_().deserialize(p); + } + else if ("file_extensions".equals(field)) { + f_fileExtensions = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("file_categories".equals(field)) { + f_fileCategories = StoneSerializers.nullable(StoneSerializers.list(FileCategory.Serializer.INSTANCE)).deserialize(p); + } + else if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SearchOptions(f_path, f_maxResults, f_orderBy, f_fileStatus, f_filenameOnly, f_fileExtensions, f_fileCategories, f_accountId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchOrderBy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchOrderBy.java new file mode 100644 index 000000000..c442a3353 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchOrderBy.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SearchOrderBy { + // union files.SearchOrderBy (files.stone) + RELEVANCE, + LAST_MODIFIED_TIME, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchOrderBy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case RELEVANCE: { + g.writeString("relevance"); + break; + } + case LAST_MODIFIED_TIME: { + g.writeString("last_modified_time"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SearchOrderBy deserialize(JsonParser p) throws IOException, JsonParseException { + SearchOrderBy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("relevance".equals(tag)) { + value = SearchOrderBy.RELEVANCE; + } + else if ("last_modified_time".equals(tag)) { + value = SearchOrderBy.LAST_MODIFIED_TIME; + } + else { + value = SearchOrderBy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchResult.java new file mode 100644 index 000000000..0854faff7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchResult.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class SearchResult { + // struct files.SearchResult (files.stone) + + @Nonnull + protected final List matches; + protected final boolean more; + protected final long start; + + /** + * + * @param matches A list (possibly empty) of matches for the query. Must + * not contain a {@code null} item and not be {@code null}. + * @param more Used for paging. If true, indicates there is another page of + * results available that can be fetched by calling {@link + * DbxUserFilesRequests#search(String,String)} again. + * @param start Used for paging. Value to set the start argument to when + * calling {@link DbxUserFilesRequests#search(String,String)} to fetch + * the next page of results. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchResult(@Nonnull List matches, boolean more, long start) { + if (matches == null) { + throw new IllegalArgumentException("Required value for 'matches' is null"); + } + for (SearchMatch x : matches) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'matches' is null"); + } + } + this.matches = matches; + this.more = more; + this.start = start; + } + + /** + * A list (possibly empty) of matches for the query. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMatches() { + return matches; + } + + /** + * Used for paging. If true, indicates there is another page of results + * available that can be fetched by calling {@link + * DbxUserFilesRequests#search(String,String)} again. + * + * @return value for this field. + */ + public boolean getMore() { + return more; + } + + /** + * Used for paging. Value to set the start argument to when calling {@link + * DbxUserFilesRequests#search(String,String)} to fetch the next page of + * results. + * + * @return value for this field. + */ + public long getStart() { + return start; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.matches, + this.more, + this.start + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchResult other = (SearchResult) obj; + return ((this.matches == other.matches) || (this.matches.equals(other.matches))) + && (this.more == other.more) + && (this.start == other.start) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("matches"); + StoneSerializers.list(SearchMatch.Serializer.INSTANCE).serialize(value.matches, g); + g.writeFieldName("more"); + StoneSerializers.boolean_().serialize(value.more, g); + g.writeFieldName("start"); + StoneSerializers.uInt64().serialize(value.start, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_matches = null; + Boolean f_more = null; + Long f_start = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("matches".equals(field)) { + f_matches = StoneSerializers.list(SearchMatch.Serializer.INSTANCE).deserialize(p); + } + else if ("more".equals(field)) { + f_more = StoneSerializers.boolean_().deserialize(p); + } + else if ("start".equals(field)) { + f_start = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_matches == null) { + throw new JsonParseException(p, "Required field \"matches\" missing."); + } + if (f_more == null) { + throw new JsonParseException(p, "Required field \"more\" missing."); + } + if (f_start == null) { + throw new JsonParseException(p, "Required field \"start\" missing."); + } + value = new SearchResult(f_matches, f_more, f_start); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Arg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Arg.java new file mode 100644 index 000000000..c9bce7956 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Arg.java @@ -0,0 +1,333 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class SearchV2Arg { + // struct files.SearchV2Arg (files.stone) + + @Nonnull + protected final String query; + @Nullable + protected final SearchOptions options; + @Nullable + protected final SearchMatchFieldOptions matchFieldOptions; + @Nullable + protected final Boolean includeHighlights; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param query The string to search for. May match across multiple fields + * based on the request arguments. Must have length of at most 1000 and + * not be {@code null}. + * @param options Options for more targeted search results. + * @param matchFieldOptions Options for search results match fields. + * @param includeHighlights Deprecated and moved this option to + * SearchMatchFieldOptions. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2Arg(@Nonnull String query, @Nullable SearchOptions options, @Nullable SearchMatchFieldOptions matchFieldOptions, @Nullable Boolean includeHighlights) { + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + if (query.length() > 1000) { + throw new IllegalArgumentException("String 'query' is longer than 1000"); + } + this.query = query; + this.options = options; + this.matchFieldOptions = matchFieldOptions; + this.includeHighlights = includeHighlights; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param query The string to search for. May match across multiple fields + * based on the request arguments. Must have length of at most 1000 and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2Arg(@Nonnull String query) { + this(query, null, null, null); + } + + /** + * The string to search for. May match across multiple fields based on the + * request arguments. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getQuery() { + return query; + } + + /** + * Options for more targeted search results. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SearchOptions getOptions() { + return options; + } + + /** + * Options for search results match fields. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SearchMatchFieldOptions getMatchFieldOptions() { + return matchFieldOptions; + } + + /** + * Deprecated and moved this option to SearchMatchFieldOptions. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIncludeHighlights() { + return includeHighlights; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param query The string to search for. May match across multiple fields + * based on the request arguments. Must have length of at most 1000 and + * not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String query) { + return new Builder(query); + } + + /** + * Builder for {@link SearchV2Arg}. + */ + public static class Builder { + protected final String query; + + protected SearchOptions options; + protected SearchMatchFieldOptions matchFieldOptions; + protected Boolean includeHighlights; + + protected Builder(String query) { + if (query == null) { + throw new IllegalArgumentException("Required value for 'query' is null"); + } + if (query.length() > 1000) { + throw new IllegalArgumentException("String 'query' is longer than 1000"); + } + this.query = query; + this.options = null; + this.matchFieldOptions = null; + this.includeHighlights = null; + } + + /** + * Set value for optional field. + * + * @param options Options for more targeted search results. + * + * @return this builder + */ + public Builder withOptions(SearchOptions options) { + this.options = options; + return this; + } + + /** + * Set value for optional field. + * + * @param matchFieldOptions Options for search results match fields. + * + * @return this builder + */ + public Builder withMatchFieldOptions(SearchMatchFieldOptions matchFieldOptions) { + this.matchFieldOptions = matchFieldOptions; + return this; + } + + /** + * Set value for optional field. + * + * @param includeHighlights Deprecated and moved this option to + * SearchMatchFieldOptions. + * + * @return this builder + */ + public Builder withIncludeHighlights(Boolean includeHighlights) { + this.includeHighlights = includeHighlights; + return this; + } + + /** + * Builds an instance of {@link SearchV2Arg} configured with this + * builder's values + * + * @return new instance of {@link SearchV2Arg} + */ + public SearchV2Arg build() { + return new SearchV2Arg(query, options, matchFieldOptions, includeHighlights); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.query, + this.options, + this.matchFieldOptions, + this.includeHighlights + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchV2Arg other = (SearchV2Arg) obj; + return ((this.query == other.query) || (this.query.equals(other.query))) + && ((this.options == other.options) || (this.options != null && this.options.equals(other.options))) + && ((this.matchFieldOptions == other.matchFieldOptions) || (this.matchFieldOptions != null && this.matchFieldOptions.equals(other.matchFieldOptions))) + && ((this.includeHighlights == other.includeHighlights) || (this.includeHighlights != null && this.includeHighlights.equals(other.includeHighlights))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchV2Arg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("query"); + StoneSerializers.string().serialize(value.query, g); + if (value.options != null) { + g.writeFieldName("options"); + StoneSerializers.nullableStruct(SearchOptions.Serializer.INSTANCE).serialize(value.options, g); + } + if (value.matchFieldOptions != null) { + g.writeFieldName("match_field_options"); + StoneSerializers.nullableStruct(SearchMatchFieldOptions.Serializer.INSTANCE).serialize(value.matchFieldOptions, g); + } + if (value.includeHighlights != null) { + g.writeFieldName("include_highlights"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.includeHighlights, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchV2Arg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchV2Arg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_query = null; + SearchOptions f_options = null; + SearchMatchFieldOptions f_matchFieldOptions = null; + Boolean f_includeHighlights = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("query".equals(field)) { + f_query = StoneSerializers.string().deserialize(p); + } + else if ("options".equals(field)) { + f_options = StoneSerializers.nullableStruct(SearchOptions.Serializer.INSTANCE).deserialize(p); + } + else if ("match_field_options".equals(field)) { + f_matchFieldOptions = StoneSerializers.nullableStruct(SearchMatchFieldOptions.Serializer.INSTANCE).deserialize(p); + } + else if ("include_highlights".equals(field)) { + f_includeHighlights = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_query == null) { + throw new JsonParseException(p, "Required field \"query\" missing."); + } + value = new SearchV2Arg(f_query, f_options, f_matchFieldOptions, f_includeHighlights); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Builder.java new file mode 100644 index 000000000..7fe8a5e71 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Builder.java @@ -0,0 +1,82 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link DbxUserFilesRequests#searchV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class SearchV2Builder { + private final DbxUserFilesRequests _client; + private final SearchV2Arg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + SearchV2Builder(DbxUserFilesRequests _client, SearchV2Arg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param options Options for more targeted search results. + * + * @return this builder + */ + public SearchV2Builder withOptions(SearchOptions options) { + this._builder.withOptions(options); + return this; + } + + /** + * Set value for optional field. + * + * @param matchFieldOptions Options for search results match fields. + * + * @return this builder + */ + public SearchV2Builder withMatchFieldOptions(SearchMatchFieldOptions matchFieldOptions) { + this._builder.withMatchFieldOptions(matchFieldOptions); + return this; + } + + /** + * Set value for optional field. + * + * @param includeHighlights Deprecated and moved this option to + * SearchMatchFieldOptions. + * + * @return this builder + */ + public SearchV2Builder withIncludeHighlights(Boolean includeHighlights) { + this._builder.withIncludeHighlights(includeHighlights); + return this; + } + + /** + * Issues the request. + */ + public SearchV2Result start() throws SearchErrorException, DbxException { + SearchV2Arg arg_ = this._builder.build(); + return _client.searchV2(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2ContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2ContinueArg.java new file mode 100644 index 000000000..e4c0129f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2ContinueArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class SearchV2ContinueArg { + // struct files.SearchV2ContinueArg (files.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserFilesRequests#searchV2(String)}. Used to fetch the next page + * of results. Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2ContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + this.cursor = cursor; + } + + /** + * The cursor returned by your last call to {@link + * DbxUserFilesRequests#searchV2(String)}. Used to fetch the next page of + * results. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchV2ContinueArg other = (SearchV2ContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchV2ContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchV2ContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchV2ContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new SearchV2ContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Result.java new file mode 100644 index 000000000..8c76a5548 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SearchV2Result.java @@ -0,0 +1,234 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SearchV2Result { + // struct files.SearchV2Result (files.stone) + + @Nonnull + protected final List matches; + protected final boolean hasMore; + @Nullable + protected final String cursor; + + /** + * + * @param matches A list (possibly empty) of matches for the query. Must + * not contain a {@code null} item and not be {@code null}. + * @param hasMore Used for paging. If true, indicates there is another page + * of results available that can be fetched by calling {@link + * DbxUserFilesRequests#searchContinueV2(String)} with the cursor. + * @param cursor Pass the cursor into {@link + * DbxUserFilesRequests#searchContinueV2(String)} to fetch the next page + * of results. Must have length of at least 1. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2Result(@Nonnull List matches, boolean hasMore, @Nullable String cursor) { + if (matches == null) { + throw new IllegalArgumentException("Required value for 'matches' is null"); + } + for (SearchMatchV2 x : matches) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'matches' is null"); + } + } + this.matches = matches; + this.hasMore = hasMore; + if (cursor != null) { + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + } + this.cursor = cursor; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param matches A list (possibly empty) of matches for the query. Must + * not contain a {@code null} item and not be {@code null}. + * @param hasMore Used for paging. If true, indicates there is another page + * of results available that can be fetched by calling {@link + * DbxUserFilesRequests#searchContinueV2(String)} with the cursor. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SearchV2Result(@Nonnull List matches, boolean hasMore) { + this(matches, hasMore, null); + } + + /** + * A list (possibly empty) of matches for the query. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMatches() { + return matches; + } + + /** + * Used for paging. If true, indicates there is another page of results + * available that can be fetched by calling {@link + * DbxUserFilesRequests#searchContinueV2(String)} with the cursor. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Pass the cursor into {@link + * DbxUserFilesRequests#searchContinueV2(String)} to fetch the next page of + * results. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.matches, + this.hasMore, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SearchV2Result other = (SearchV2Result) obj; + return ((this.matches == other.matches) || (this.matches.equals(other.matches))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SearchV2Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("matches"); + StoneSerializers.list(SearchMatchV2.Serializer.INSTANCE).serialize(value.matches, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SearchV2Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SearchV2Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_matches = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("matches".equals(field)) { + f_matches = StoneSerializers.list(SearchMatchV2.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_matches == null) { + throw new JsonParseException(p, "Required field \"matches\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new SearchV2Result(f_matches, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharedLink.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharedLink.java new file mode 100644 index 000000000..4442664b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharedLink.java @@ -0,0 +1,187 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SharedLink { + // struct files.SharedLink (files.stone) + + @Nonnull + protected final String url; + @Nullable + protected final String password; + + /** + * + * @param url Shared link url. Must not be {@code null}. + * @param password Password for the shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLink(@Nonnull String url, @Nullable String password) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + this.password = password; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param url Shared link url. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLink(@Nonnull String url) { + this(url, null); + } + + /** + * Shared link url. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * Password for the shared link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPassword() { + return password; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.password + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLink other = (SharedLink) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.password == other.password) || (this.password != null && this.password.equals(other.password))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLink value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + if (value.password != null) { + g.writeFieldName("password"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.password, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLink deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLink value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_url = null; + String f_password = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("password".equals(field)) { + f_password = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + value = new SharedLink(f_url, f_password); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharedLinkFileInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharedLinkFileInfo.java new file mode 100644 index 000000000..22b82c9ed --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharedLinkFileInfo.java @@ -0,0 +1,299 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SharedLinkFileInfo { + // struct files.SharedLinkFileInfo (files.stone) + + @Nonnull + protected final String url; + @Nullable + protected final String path; + @Nullable + protected final String password; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param url The shared link corresponding to either a file or shared link + * to a folder. If it is for a folder shared link, we use the path param + * to determine for which file in the folder the view is for. Must not + * be {@code null}. + * @param path The path corresponding to a file in a shared link to a + * folder. Required for shared links to folders. + * @param password Password for the shared link. Required for + * password-protected shared links to files unless it can be read from + * a cookie. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkFileInfo(@Nonnull String url, @Nullable String path, @Nullable String password) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + this.path = path; + this.password = password; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param url The shared link corresponding to either a file or shared link + * to a folder. If it is for a folder shared link, we use the path param + * to determine for which file in the folder the view is for. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkFileInfo(@Nonnull String url) { + this(url, null, null); + } + + /** + * The shared link corresponding to either a file or shared link to a + * folder. If it is for a folder shared link, we use the path param to + * determine for which file in the folder the view is for. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * The path corresponding to a file in a shared link to a folder. Required + * for shared links to folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPath() { + return path; + } + + /** + * Password for the shared link. Required for password-protected shared + * links to files unless it can be read from a cookie. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPassword() { + return password; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param url The shared link corresponding to either a file or shared link + * to a folder. If it is for a folder shared link, we use the path param + * to determine for which file in the folder the view is for. Must not + * be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String url) { + return new Builder(url); + } + + /** + * Builder for {@link SharedLinkFileInfo}. + */ + public static class Builder { + protected final String url; + + protected String path; + protected String password; + + protected Builder(String url) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + this.path = null; + this.password = null; + } + + /** + * Set value for optional field. + * + * @param path The path corresponding to a file in a shared link to a + * folder. Required for shared links to folders. + * + * @return this builder + */ + public Builder withPath(String path) { + this.path = path; + return this; + } + + /** + * Set value for optional field. + * + * @param password Password for the shared link. Required for + * password-protected shared links to files unless it can be read + * from a cookie. + * + * @return this builder + */ + public Builder withPassword(String password) { + this.password = password; + return this; + } + + /** + * Builds an instance of {@link SharedLinkFileInfo} configured with this + * builder's values + * + * @return new instance of {@link SharedLinkFileInfo} + */ + public SharedLinkFileInfo build() { + return new SharedLinkFileInfo(url, path, password); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.path, + this.password + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkFileInfo other = (SharedLinkFileInfo) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.path == other.path) || (this.path != null && this.path.equals(other.path))) + && ((this.password == other.password) || (this.password != null && this.password.equals(other.password))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkFileInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + if (value.path != null) { + g.writeFieldName("path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.path, g); + } + if (value.password != null) { + g.writeFieldName("password"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.password, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkFileInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkFileInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_url = null; + String f_path = null; + String f_password = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("path".equals(field)) { + f_path = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("password".equals(field)) { + f_password = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + value = new SharedLinkFileInfo(f_url, f_path, f_password); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharingInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharingInfo.java new file mode 100644 index 000000000..f77ac788f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SharingInfo.java @@ -0,0 +1,142 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Sharing info for a file or folder. + */ +public class SharingInfo { + // struct files.SharingInfo (files.stone) + + protected final boolean readOnly; + + /** + * Sharing info for a file or folder. + * + * @param readOnly True if the file or folder is inside a read-only shared + * folder. + */ + public SharingInfo(boolean readOnly) { + this.readOnly = readOnly; + } + + /** + * True if the file or folder is inside a read-only shared folder. + * + * @return value for this field. + */ + public boolean getReadOnly() { + return readOnly; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.readOnly + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingInfo other = (SharingInfo) obj; + return this.readOnly == other.readOnly; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("read_only"); + StoneSerializers.boolean_().serialize(value.readOnly, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_readOnly = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("read_only".equals(field)) { + f_readOnly = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_readOnly == null) { + throw new JsonParseException(p, "Required field \"read_only\" missing."); + } + value = new SharingInfo(f_readOnly); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SingleUserLock.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SingleUserLock.java new file mode 100644 index 000000000..f4f805f67 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SingleUserLock.java @@ -0,0 +1,229 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SingleUserLock { + // struct files.SingleUserLock (files.stone) + + @Nonnull + protected final Date created; + @Nonnull + protected final String lockHolderAccountId; + @Nullable + protected final String lockHolderTeamId; + + /** + * + * @param created The time the lock was created. Must not be {@code null}. + * @param lockHolderAccountId The account ID of the lock holder if known. + * Must have length of at least 40, have length of at most 40, and not + * be {@code null}. + * @param lockHolderTeamId The id of the team of the account holder if it + * exists. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId, @Nullable String lockHolderTeamId) { + if (created == null) { + throw new IllegalArgumentException("Required value for 'created' is null"); + } + this.created = LangUtil.truncateMillis(created); + if (lockHolderAccountId == null) { + throw new IllegalArgumentException("Required value for 'lockHolderAccountId' is null"); + } + if (lockHolderAccountId.length() < 40) { + throw new IllegalArgumentException("String 'lockHolderAccountId' is shorter than 40"); + } + if (lockHolderAccountId.length() > 40) { + throw new IllegalArgumentException("String 'lockHolderAccountId' is longer than 40"); + } + this.lockHolderAccountId = lockHolderAccountId; + this.lockHolderTeamId = lockHolderTeamId; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param created The time the lock was created. Must not be {@code null}. + * @param lockHolderAccountId The account ID of the lock holder if known. + * Must have length of at least 40, have length of at most 40, and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId) { + this(created, lockHolderAccountId, null); + } + + /** + * The time the lock was created. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getCreated() { + return created; + } + + /** + * The account ID of the lock holder if known. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLockHolderAccountId() { + return lockHolderAccountId; + } + + /** + * The id of the team of the account holder if it exists. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLockHolderTeamId() { + return lockHolderTeamId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.created, + this.lockHolderAccountId, + this.lockHolderTeamId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SingleUserLock other = (SingleUserLock) obj; + return ((this.created == other.created) || (this.created.equals(other.created))) + && ((this.lockHolderAccountId == other.lockHolderAccountId) || (this.lockHolderAccountId.equals(other.lockHolderAccountId))) + && ((this.lockHolderTeamId == other.lockHolderTeamId) || (this.lockHolderTeamId != null && this.lockHolderTeamId.equals(other.lockHolderTeamId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SingleUserLock value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("created"); + StoneSerializers.timestamp().serialize(value.created, g); + g.writeFieldName("lock_holder_account_id"); + StoneSerializers.string().serialize(value.lockHolderAccountId, g); + if (value.lockHolderTeamId != null) { + g.writeFieldName("lock_holder_team_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.lockHolderTeamId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SingleUserLock deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SingleUserLock value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_created = null; + String f_lockHolderAccountId = null; + String f_lockHolderTeamId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("created".equals(field)) { + f_created = StoneSerializers.timestamp().deserialize(p); + } + else if ("lock_holder_account_id".equals(field)) { + f_lockHolderAccountId = StoneSerializers.string().deserialize(p); + } + else if ("lock_holder_team_id".equals(field)) { + f_lockHolderTeamId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_created == null) { + throw new JsonParseException(p, "Required field \"created\" missing."); + } + if (f_lockHolderAccountId == null) { + throw new JsonParseException(p, "Required field \"lock_holder_account_id\" missing."); + } + value = new SingleUserLock(f_created, f_lockHolderAccountId, f_lockHolderTeamId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SymlinkInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SymlinkInfo.java new file mode 100644 index 000000000..0adbf773b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SymlinkInfo.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SymlinkInfo { + // struct files.SymlinkInfo (files.stone) + + @Nonnull + protected final String target; + + /** + * + * @param target The target this symlink points to. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SymlinkInfo(@Nonnull String target) { + if (target == null) { + throw new IllegalArgumentException("Required value for 'target' is null"); + } + this.target = target; + } + + /** + * The target this symlink points to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTarget() { + return target; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.target + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SymlinkInfo other = (SymlinkInfo) obj; + return (this.target == other.target) || (this.target.equals(other.target)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SymlinkInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target"); + StoneSerializers.string().serialize(value.target, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SymlinkInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SymlinkInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_target = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target".equals(field)) { + f_target = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_target == null) { + throw new JsonParseException(p, "Required field \"target\" missing."); + } + value = new SymlinkInfo(f_target); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSetting.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSetting.java new file mode 100644 index 000000000..c4e56f050 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSetting.java @@ -0,0 +1,110 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SyncSetting { + // union files.SyncSetting (files.stone) + /** + * On first sync to members' computers, the specified folder will follow its + * parent folder's setting or otherwise follow default sync behavior. + */ + DEFAULT, + /** + * On first sync to members' computers, the specified folder will be set to + * not sync with selective sync. + */ + NOT_SYNCED, + /** + * The specified folder's not_synced setting is inactive due to its location + * or other configuration changes. It will follow its parent folder's + * setting. + */ + NOT_SYNCED_INACTIVE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SyncSetting value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case NOT_SYNCED: { + g.writeString("not_synced"); + break; + } + case NOT_SYNCED_INACTIVE: { + g.writeString("not_synced_inactive"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SyncSetting deserialize(JsonParser p) throws IOException, JsonParseException { + SyncSetting value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = SyncSetting.DEFAULT; + } + else if ("not_synced".equals(tag)) { + value = SyncSetting.NOT_SYNCED; + } + else if ("not_synced_inactive".equals(tag)) { + value = SyncSetting.NOT_SYNCED_INACTIVE; + } + else { + value = SyncSetting.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSettingArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSettingArg.java new file mode 100644 index 000000000..c8f44ed8f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSettingArg.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SyncSettingArg { + // union files.SyncSettingArg (files.stone) + /** + * On first sync to members' computers, the specified folder will follow its + * parent folder's setting or otherwise follow default sync behavior. + */ + DEFAULT, + /** + * On first sync to members' computers, the specified folder will be set to + * not sync with selective sync. + */ + NOT_SYNCED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SyncSettingArg value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case NOT_SYNCED: { + g.writeString("not_synced"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SyncSettingArg deserialize(JsonParser p) throws IOException, JsonParseException { + SyncSettingArg value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = SyncSettingArg.DEFAULT; + } + else if ("not_synced".equals(tag)) { + value = SyncSettingArg.NOT_SYNCED; + } + else { + value = SyncSettingArg.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSettingsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSettingsError.java new file mode 100644 index 000000000..f8fb91d0e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SyncSettingsError.java @@ -0,0 +1,335 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SyncSettingsError { + // union files.SyncSettingsError (files.stone) + + /** + * Discriminating tag type for {@link SyncSettingsError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Setting this combination of sync settings simultaneously is not + * supported. + */ + UNSUPPORTED_COMBINATION, + /** + * The specified configuration is not supported. + */ + UNSUPPORTED_CONFIGURATION, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Setting this combination of sync settings simultaneously is not + * supported. + */ + public static final SyncSettingsError UNSUPPORTED_COMBINATION = new SyncSettingsError().withTag(Tag.UNSUPPORTED_COMBINATION); + /** + * The specified configuration is not supported. + */ + public static final SyncSettingsError UNSUPPORTED_CONFIGURATION = new SyncSettingsError().withTag(Tag.UNSUPPORTED_CONFIGURATION); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SyncSettingsError OTHER = new SyncSettingsError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SyncSettingsError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SyncSettingsError withTag(Tag _tag) { + SyncSettingsError result = new SyncSettingsError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SyncSettingsError withTagAndPath(Tag _tag, LookupError pathValue) { + SyncSettingsError result = new SyncSettingsError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SyncSettingsError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code SyncSettingsError} that has its tag set to + * {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SyncSettingsError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SyncSettingsError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SyncSettingsError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_COMBINATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_COMBINATION}, {@code false} otherwise. + */ + public boolean isUnsupportedCombination() { + return this._tag == Tag.UNSUPPORTED_COMBINATION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_CONFIGURATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_CONFIGURATION}, {@code false} otherwise. + */ + public boolean isUnsupportedConfiguration() { + return this._tag == Tag.UNSUPPORTED_CONFIGURATION; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SyncSettingsError) { + SyncSettingsError other = (SyncSettingsError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_COMBINATION: + return true; + case UNSUPPORTED_CONFIGURATION: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SyncSettingsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_COMBINATION: { + g.writeString("unsupported_combination"); + break; + } + case UNSUPPORTED_CONFIGURATION: { + g.writeString("unsupported_configuration"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SyncSettingsError deserialize(JsonParser p) throws IOException, JsonParseException { + SyncSettingsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = SyncSettingsError.path(fieldValue); + } + else if ("unsupported_combination".equals(tag)) { + value = SyncSettingsError.UNSUPPORTED_COMBINATION; + } + else if ("unsupported_configuration".equals(tag)) { + value = SyncSettingsError.UNSUPPORTED_CONFIGURATION; + } + else { + value = SyncSettingsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/TagObject.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/TagObject.java new file mode 100644 index 000000000..a4d7c108c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/TagObject.java @@ -0,0 +1,286 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Tag that can be added in multiple ways. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TagObject { + // union files.Tag (file_tagging.stone) + + /** + * Discriminating tag type for {@link TagObject}. + */ + public enum Tag { + /** + * Tag generated by the user. + */ + USER_GENERATED_TAG, // UserGeneratedTag + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TagObject OTHER = new TagObject().withTag(Tag.OTHER); + + private Tag _tag; + private UserGeneratedTag userGeneratedTagValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TagObject() { + } + + + /** + * Tag that can be added in multiple ways. + * + * @param _tag Discriminating tag for this instance. + */ + private TagObject withTag(Tag _tag) { + TagObject result = new TagObject(); + result._tag = _tag; + return result; + } + + /** + * Tag that can be added in multiple ways. + * + * @param userGeneratedTagValue Tag generated by the user. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TagObject withTagAndUserGeneratedTag(Tag _tag, UserGeneratedTag userGeneratedTagValue) { + TagObject result = new TagObject(); + result._tag = _tag; + result.userGeneratedTagValue = userGeneratedTagValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TagObject}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_GENERATED_TAG}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_GENERATED_TAG}, {@code false} otherwise. + */ + public boolean isUserGeneratedTag() { + return this._tag == Tag.USER_GENERATED_TAG; + } + + /** + * Returns an instance of {@code TagObject} that has its tag set to {@link + * Tag#USER_GENERATED_TAG}. + * + *

Tag generated by the user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TagObject} with its tag set to {@link + * Tag#USER_GENERATED_TAG}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TagObject userGeneratedTag(UserGeneratedTag value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TagObject().withTagAndUserGeneratedTag(Tag.USER_GENERATED_TAG, value); + } + + /** + * Tag generated by the user. + * + *

This instance must be tagged as {@link Tag#USER_GENERATED_TAG}.

+ * + * @return The {@link UserGeneratedTag} value associated with this instance + * if {@link #isUserGeneratedTag} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserGeneratedTag} is {@code + * false}. + */ + public UserGeneratedTag getUserGeneratedTagValue() { + if (this._tag != Tag.USER_GENERATED_TAG) { + throw new IllegalStateException("Invalid tag: required Tag.USER_GENERATED_TAG, but was Tag." + this._tag.name()); + } + return userGeneratedTagValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userGeneratedTagValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TagObject) { + TagObject other = (TagObject) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_GENERATED_TAG: + return (this.userGeneratedTagValue == other.userGeneratedTagValue) || (this.userGeneratedTagValue.equals(other.userGeneratedTagValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TagObject value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_GENERATED_TAG: { + g.writeStartObject(); + writeTag("user_generated_tag", g); + UserGeneratedTag.Serializer.INSTANCE.serialize(value.userGeneratedTagValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TagObject deserialize(JsonParser p) throws IOException, JsonParseException { + TagObject value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_generated_tag".equals(tag)) { + UserGeneratedTag fieldValue = null; + fieldValue = UserGeneratedTag.Serializer.INSTANCE.deserialize(p, true); + value = TagObject.userGeneratedTag(fieldValue); + } + else { + value = TagObject.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailArg.java new file mode 100644 index 000000000..a75f9151c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailArg.java @@ -0,0 +1,385 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class ThumbnailArg { + // struct files.ThumbnailArg (files.stone) + + @Nonnull + protected final String path; + @Nonnull + protected final ThumbnailFormat format; + @Nonnull + protected final ThumbnailSize size; + @Nonnull + protected final ThumbnailMode mode; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path to the image file you want to thumbnail. Must match + * pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * @param format The format for the thumbnail image, jpeg (default) or png. + * For images that are photos, jpeg should be preferred, while png is + * better for screenshots and digital arts. Must not be {@code null}. + * @param size The size for the thumbnail image. Must not be {@code null}. + * @param mode How to resize and crop the image to achieve the desired + * size. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ThumbnailArg(@Nonnull String path, @Nonnull ThumbnailFormat format, @Nonnull ThumbnailSize size, @Nonnull ThumbnailMode mode) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + if (format == null) { + throw new IllegalArgumentException("Required value for 'format' is null"); + } + this.format = format; + if (size == null) { + throw new IllegalArgumentException("Required value for 'size' is null"); + } + this.size = size; + if (mode == null) { + throw new IllegalArgumentException("Required value for 'mode' is null"); + } + this.mode = mode; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path to the image file you want to thumbnail. Must match + * pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ThumbnailArg(@Nonnull String path) { + this(path, ThumbnailFormat.JPEG, ThumbnailSize.W64H64, ThumbnailMode.STRICT); + } + + /** + * The path to the image file you want to thumbnail. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The format for the thumbnail image, jpeg (default) or png. For images + * that are photos, jpeg should be preferred, while png is better for + * screenshots and digital arts. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ThumbnailFormat.JPEG. + */ + @Nonnull + public ThumbnailFormat getFormat() { + return format; + } + + /** + * The size for the thumbnail image. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ThumbnailSize.W64H64. + */ + @Nonnull + public ThumbnailSize getSize() { + return size; + } + + /** + * How to resize and crop the image to achieve the desired size. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ThumbnailMode.STRICT. + */ + @Nonnull + public ThumbnailMode getMode() { + return mode; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path to the image file you want to thumbnail. Must match + * pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" and not + * be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link ThumbnailArg}. + */ + public static class Builder { + protected final String path; + + protected ThumbnailFormat format; + protected ThumbnailSize size; + protected ThumbnailMode mode; + + protected Builder(String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.format = ThumbnailFormat.JPEG; + this.size = ThumbnailSize.W64H64; + this.mode = ThumbnailMode.STRICT; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailFormat.JPEG}.

+ * + * @param format The format for the thumbnail image, jpeg (default) or + * png. For images that are photos, jpeg should be preferred, while + * png is better for screenshots and digital arts. Must not be + * {@code null}. Defaults to {@code ThumbnailFormat.JPEG} when set + * to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFormat(ThumbnailFormat format) { + if (format != null) { + this.format = format; + } + else { + this.format = ThumbnailFormat.JPEG; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailSize.W64H64}.

+ * + * @param size The size for the thumbnail image. Must not be {@code + * null}. Defaults to {@code ThumbnailSize.W64H64} when set to + * {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSize(ThumbnailSize size) { + if (size != null) { + this.size = size; + } + else { + this.size = ThumbnailSize.W64H64; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailMode.STRICT}.

+ * + * @param mode How to resize and crop the image to achieve the desired + * size. Must not be {@code null}. Defaults to {@code + * ThumbnailMode.STRICT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMode(ThumbnailMode mode) { + if (mode != null) { + this.mode = mode; + } + else { + this.mode = ThumbnailMode.STRICT; + } + return this; + } + + /** + * Builds an instance of {@link ThumbnailArg} configured with this + * builder's values + * + * @return new instance of {@link ThumbnailArg} + */ + public ThumbnailArg build() { + return new ThumbnailArg(path, format, size, mode); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.format, + this.size, + this.mode + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ThumbnailArg other = (ThumbnailArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.format == other.format) || (this.format.equals(other.format))) + && ((this.size == other.size) || (this.size.equals(other.size))) + && ((this.mode == other.mode) || (this.mode.equals(other.mode))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ThumbnailArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("format"); + ThumbnailFormat.Serializer.INSTANCE.serialize(value.format, g); + g.writeFieldName("size"); + ThumbnailSize.Serializer.INSTANCE.serialize(value.size, g); + g.writeFieldName("mode"); + ThumbnailMode.Serializer.INSTANCE.serialize(value.mode, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ThumbnailArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ThumbnailArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + ThumbnailFormat f_format = ThumbnailFormat.JPEG; + ThumbnailSize f_size = ThumbnailSize.W64H64; + ThumbnailMode f_mode = ThumbnailMode.STRICT; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("format".equals(field)) { + f_format = ThumbnailFormat.Serializer.INSTANCE.deserialize(p); + } + else if ("size".equals(field)) { + f_size = ThumbnailSize.Serializer.INSTANCE.deserialize(p); + } + else if ("mode".equals(field)) { + f_mode = ThumbnailMode.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new ThumbnailArg(f_path, f_format, f_size, f_mode); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailError.java new file mode 100644 index 000000000..02002c3b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailError.java @@ -0,0 +1,330 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ThumbnailError { + // union files.ThumbnailError (files.stone) + + /** + * Discriminating tag type for {@link ThumbnailError}. + */ + public enum Tag { + /** + * An error occurs when downloading metadata for the image. + */ + PATH, // LookupError + /** + * The file extension doesn't allow conversion to a thumbnail. + */ + UNSUPPORTED_EXTENSION, + /** + * The image cannot be converted to a thumbnail. + */ + UNSUPPORTED_IMAGE, + /** + * An error occurs during thumbnail conversion. + */ + CONVERSION_ERROR; + } + + /** + * The file extension doesn't allow conversion to a thumbnail. + */ + public static final ThumbnailError UNSUPPORTED_EXTENSION = new ThumbnailError().withTag(Tag.UNSUPPORTED_EXTENSION); + /** + * The image cannot be converted to a thumbnail. + */ + public static final ThumbnailError UNSUPPORTED_IMAGE = new ThumbnailError().withTag(Tag.UNSUPPORTED_IMAGE); + /** + * An error occurs during thumbnail conversion. + */ + public static final ThumbnailError CONVERSION_ERROR = new ThumbnailError().withTag(Tag.CONVERSION_ERROR); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ThumbnailError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ThumbnailError withTag(Tag _tag) { + ThumbnailError result = new ThumbnailError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue An error occurs when downloading metadata for the + * image. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ThumbnailError withTagAndPath(Tag _tag, LookupError pathValue) { + ThumbnailError result = new ThumbnailError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ThumbnailError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code ThumbnailError} that has its tag set to + * {@link Tag#PATH}. + * + *

An error occurs when downloading metadata for the image.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ThumbnailError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ThumbnailError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ThumbnailError().withTagAndPath(Tag.PATH, value); + } + + /** + * An error occurs when downloading metadata for the image. + * + *

This instance must be tagged as {@link Tag#PATH}.

+ * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_EXTENSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_EXTENSION}, {@code false} otherwise. + */ + public boolean isUnsupportedExtension() { + return this._tag == Tag.UNSUPPORTED_EXTENSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_IMAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_IMAGE}, {@code false} otherwise. + */ + public boolean isUnsupportedImage() { + return this._tag == Tag.UNSUPPORTED_IMAGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONVERSION_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONVERSION_ERROR}, {@code false} otherwise. + */ + public boolean isConversionError() { + return this._tag == Tag.CONVERSION_ERROR; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ThumbnailError) { + ThumbnailError other = (ThumbnailError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_EXTENSION: + return true; + case UNSUPPORTED_IMAGE: + return true; + case CONVERSION_ERROR: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ThumbnailError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_EXTENSION: { + g.writeString("unsupported_extension"); + break; + } + case UNSUPPORTED_IMAGE: { + g.writeString("unsupported_image"); + break; + } + case CONVERSION_ERROR: { + g.writeString("conversion_error"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ThumbnailError deserialize(JsonParser p) throws IOException, JsonParseException { + ThumbnailError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = ThumbnailError.path(fieldValue); + } + else if ("unsupported_extension".equals(tag)) { + value = ThumbnailError.UNSUPPORTED_EXTENSION; + } + else if ("unsupported_image".equals(tag)) { + value = ThumbnailError.UNSUPPORTED_IMAGE; + } + else if ("conversion_error".equals(tag)) { + value = ThumbnailError.CONVERSION_ERROR; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailErrorException.java new file mode 100644 index 000000000..1d016f8bc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ThumbnailError} + * error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#getThumbnail(String)}.

+ */ +public class ThumbnailErrorException extends DbxApiException { + // exception for routes: + // 2/files/get_thumbnail + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#getThumbnail(String)}. + */ + public final ThumbnailError errorValue; + + public ThumbnailErrorException(String routeName, String requestId, LocalizedText userMessage, ThumbnailError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailFormat.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailFormat.java new file mode 100644 index 000000000..4ba34b091 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailFormat.java @@ -0,0 +1,81 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ThumbnailFormat { + // union files.ThumbnailFormat (files.stone) + JPEG, + PNG; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ThumbnailFormat value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case JPEG: { + g.writeString("jpeg"); + break; + } + case PNG: { + g.writeString("png"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public ThumbnailFormat deserialize(JsonParser p) throws IOException, JsonParseException { + ThumbnailFormat value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("jpeg".equals(tag)) { + value = ThumbnailFormat.JPEG; + } + else if ("png".equals(tag)) { + value = ThumbnailFormat.PNG; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailMode.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailMode.java new file mode 100644 index 000000000..946feb17c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailMode.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ThumbnailMode { + // union files.ThumbnailMode (files.stone) + /** + * Scale down the image to fit within the given size. + */ + STRICT, + /** + * Scale down the image to fit within the given size or its transpose. + */ + BESTFIT, + /** + * Scale down the image to completely cover the given size or its transpose. + */ + FITONE_BESTFIT; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ThumbnailMode value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case STRICT: { + g.writeString("strict"); + break; + } + case BESTFIT: { + g.writeString("bestfit"); + break; + } + case FITONE_BESTFIT: { + g.writeString("fitone_bestfit"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public ThumbnailMode deserialize(JsonParser p) throws IOException, JsonParseException { + ThumbnailMode value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("strict".equals(tag)) { + value = ThumbnailMode.STRICT; + } + else if ("bestfit".equals(tag)) { + value = ThumbnailMode.BESTFIT; + } + else if ("fitone_bestfit".equals(tag)) { + value = ThumbnailMode.FITONE_BESTFIT; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailSize.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailSize.java new file mode 100644 index 000000000..ff47adbd2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailSize.java @@ -0,0 +1,164 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ThumbnailSize { + // union files.ThumbnailSize (files.stone) + /** + * 32 by 32 px. + */ + W32H32, + /** + * 64 by 64 px. + */ + W64H64, + /** + * 128 by 128 px. + */ + W128H128, + /** + * 256 by 256 px. + */ + W256H256, + /** + * 480 by 320 px. + */ + W480H320, + /** + * 640 by 480 px. + */ + W640H480, + /** + * 960 by 640 px. + */ + W960H640, + /** + * 1024 by 768 px. + */ + W1024H768, + /** + * 2048 by 1536 px. + */ + W2048H1536; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ThumbnailSize value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case W32H32: { + g.writeString("w32h32"); + break; + } + case W64H64: { + g.writeString("w64h64"); + break; + } + case W128H128: { + g.writeString("w128h128"); + break; + } + case W256H256: { + g.writeString("w256h256"); + break; + } + case W480H320: { + g.writeString("w480h320"); + break; + } + case W640H480: { + g.writeString("w640h480"); + break; + } + case W960H640: { + g.writeString("w960h640"); + break; + } + case W1024H768: { + g.writeString("w1024h768"); + break; + } + case W2048H1536: { + g.writeString("w2048h1536"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public ThumbnailSize deserialize(JsonParser p) throws IOException, JsonParseException { + ThumbnailSize value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("w32h32".equals(tag)) { + value = ThumbnailSize.W32H32; + } + else if ("w64h64".equals(tag)) { + value = ThumbnailSize.W64H64; + } + else if ("w128h128".equals(tag)) { + value = ThumbnailSize.W128H128; + } + else if ("w256h256".equals(tag)) { + value = ThumbnailSize.W256H256; + } + else if ("w480h320".equals(tag)) { + value = ThumbnailSize.W480H320; + } + else if ("w640h480".equals(tag)) { + value = ThumbnailSize.W640H480; + } + else if ("w960h640".equals(tag)) { + value = ThumbnailSize.W960H640; + } + else if ("w1024h768".equals(tag)) { + value = ThumbnailSize.W1024H768; + } + else if ("w2048h1536".equals(tag)) { + value = ThumbnailSize.W2048H1536; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2Arg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2Arg.java new file mode 100644 index 000000000..09a4391b5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2Arg.java @@ -0,0 +1,380 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ThumbnailV2Arg { + // struct files.ThumbnailV2Arg (files.stone) + + @Nonnull + protected final PathOrLink resource; + @Nonnull + protected final ThumbnailFormat format; + @Nonnull + protected final ThumbnailSize size; + @Nonnull + protected final ThumbnailMode mode; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param resource Information specifying which file to preview. This could + * be a path to a file, a shared link pointing to a file, or a shared + * link pointing to a folder, with a relative path. Must not be {@code + * null}. + * @param format The format for the thumbnail image, jpeg (default) or png. + * For images that are photos, jpeg should be preferred, while png is + * better for screenshots and digital arts. Must not be {@code null}. + * @param size The size for the thumbnail image. Must not be {@code null}. + * @param mode How to resize and crop the image to achieve the desired + * size. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ThumbnailV2Arg(@Nonnull PathOrLink resource, @Nonnull ThumbnailFormat format, @Nonnull ThumbnailSize size, @Nonnull ThumbnailMode mode) { + if (resource == null) { + throw new IllegalArgumentException("Required value for 'resource' is null"); + } + this.resource = resource; + if (format == null) { + throw new IllegalArgumentException("Required value for 'format' is null"); + } + this.format = format; + if (size == null) { + throw new IllegalArgumentException("Required value for 'size' is null"); + } + this.size = size; + if (mode == null) { + throw new IllegalArgumentException("Required value for 'mode' is null"); + } + this.mode = mode; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param resource Information specifying which file to preview. This could + * be a path to a file, a shared link pointing to a file, or a shared + * link pointing to a folder, with a relative path. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ThumbnailV2Arg(@Nonnull PathOrLink resource) { + this(resource, ThumbnailFormat.JPEG, ThumbnailSize.W64H64, ThumbnailMode.STRICT); + } + + /** + * Information specifying which file to preview. This could be a path to a + * file, a shared link pointing to a file, or a shared link pointing to a + * folder, with a relative path. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PathOrLink getResource() { + return resource; + } + + /** + * The format for the thumbnail image, jpeg (default) or png. For images + * that are photos, jpeg should be preferred, while png is better for + * screenshots and digital arts. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ThumbnailFormat.JPEG. + */ + @Nonnull + public ThumbnailFormat getFormat() { + return format; + } + + /** + * The size for the thumbnail image. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ThumbnailSize.W64H64. + */ + @Nonnull + public ThumbnailSize getSize() { + return size; + } + + /** + * How to resize and crop the image to achieve the desired size. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ThumbnailMode.STRICT. + */ + @Nonnull + public ThumbnailMode getMode() { + return mode; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param resource Information specifying which file to preview. This could + * be a path to a file, a shared link pointing to a file, or a shared + * link pointing to a folder, with a relative path. Must not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(PathOrLink resource) { + return new Builder(resource); + } + + /** + * Builder for {@link ThumbnailV2Arg}. + */ + public static class Builder { + protected final PathOrLink resource; + + protected ThumbnailFormat format; + protected ThumbnailSize size; + protected ThumbnailMode mode; + + protected Builder(PathOrLink resource) { + if (resource == null) { + throw new IllegalArgumentException("Required value for 'resource' is null"); + } + this.resource = resource; + this.format = ThumbnailFormat.JPEG; + this.size = ThumbnailSize.W64H64; + this.mode = ThumbnailMode.STRICT; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailFormat.JPEG}.

+ * + * @param format The format for the thumbnail image, jpeg (default) or + * png. For images that are photos, jpeg should be preferred, while + * png is better for screenshots and digital arts. Must not be + * {@code null}. Defaults to {@code ThumbnailFormat.JPEG} when set + * to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFormat(ThumbnailFormat format) { + if (format != null) { + this.format = format; + } + else { + this.format = ThumbnailFormat.JPEG; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailSize.W64H64}.

+ * + * @param size The size for the thumbnail image. Must not be {@code + * null}. Defaults to {@code ThumbnailSize.W64H64} when set to + * {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSize(ThumbnailSize size) { + if (size != null) { + this.size = size; + } + else { + this.size = ThumbnailSize.W64H64; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ThumbnailMode.STRICT}.

+ * + * @param mode How to resize and crop the image to achieve the desired + * size. Must not be {@code null}. Defaults to {@code + * ThumbnailMode.STRICT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMode(ThumbnailMode mode) { + if (mode != null) { + this.mode = mode; + } + else { + this.mode = ThumbnailMode.STRICT; + } + return this; + } + + /** + * Builds an instance of {@link ThumbnailV2Arg} configured with this + * builder's values + * + * @return new instance of {@link ThumbnailV2Arg} + */ + public ThumbnailV2Arg build() { + return new ThumbnailV2Arg(resource, format, size, mode); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.resource, + this.format, + this.size, + this.mode + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ThumbnailV2Arg other = (ThumbnailV2Arg) obj; + return ((this.resource == other.resource) || (this.resource.equals(other.resource))) + && ((this.format == other.format) || (this.format.equals(other.format))) + && ((this.size == other.size) || (this.size.equals(other.size))) + && ((this.mode == other.mode) || (this.mode.equals(other.mode))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ThumbnailV2Arg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("resource"); + PathOrLink.Serializer.INSTANCE.serialize(value.resource, g); + g.writeFieldName("format"); + ThumbnailFormat.Serializer.INSTANCE.serialize(value.format, g); + g.writeFieldName("size"); + ThumbnailSize.Serializer.INSTANCE.serialize(value.size, g); + g.writeFieldName("mode"); + ThumbnailMode.Serializer.INSTANCE.serialize(value.mode, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ThumbnailV2Arg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ThumbnailV2Arg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PathOrLink f_resource = null; + ThumbnailFormat f_format = ThumbnailFormat.JPEG; + ThumbnailSize f_size = ThumbnailSize.W64H64; + ThumbnailMode f_mode = ThumbnailMode.STRICT; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("resource".equals(field)) { + f_resource = PathOrLink.Serializer.INSTANCE.deserialize(p); + } + else if ("format".equals(field)) { + f_format = ThumbnailFormat.Serializer.INSTANCE.deserialize(p); + } + else if ("size".equals(field)) { + f_size = ThumbnailSize.Serializer.INSTANCE.deserialize(p); + } + else if ("mode".equals(field)) { + f_mode = ThumbnailMode.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_resource == null) { + throw new JsonParseException(p, "Required field \"resource\" missing."); + } + value = new ThumbnailV2Arg(f_resource, f_format, f_size, f_mode); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2Error.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2Error.java new file mode 100644 index 000000000..6a5688411 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2Error.java @@ -0,0 +1,423 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ThumbnailV2Error { + // union files.ThumbnailV2Error (files.stone) + + /** + * Discriminating tag type for {@link ThumbnailV2Error}. + */ + public enum Tag { + /** + * An error occurred when downloading metadata for the image. + */ + PATH, // LookupError + /** + * The file extension doesn't allow conversion to a thumbnail. + */ + UNSUPPORTED_EXTENSION, + /** + * The image cannot be converted to a thumbnail. + */ + UNSUPPORTED_IMAGE, + /** + * An error occurred during thumbnail conversion. + */ + CONVERSION_ERROR, + /** + * Access to this shared link is forbidden. + */ + ACCESS_DENIED, + /** + * The shared link does not exist. + */ + NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The file extension doesn't allow conversion to a thumbnail. + */ + public static final ThumbnailV2Error UNSUPPORTED_EXTENSION = new ThumbnailV2Error().withTag(Tag.UNSUPPORTED_EXTENSION); + /** + * The image cannot be converted to a thumbnail. + */ + public static final ThumbnailV2Error UNSUPPORTED_IMAGE = new ThumbnailV2Error().withTag(Tag.UNSUPPORTED_IMAGE); + /** + * An error occurred during thumbnail conversion. + */ + public static final ThumbnailV2Error CONVERSION_ERROR = new ThumbnailV2Error().withTag(Tag.CONVERSION_ERROR); + /** + * Access to this shared link is forbidden. + */ + public static final ThumbnailV2Error ACCESS_DENIED = new ThumbnailV2Error().withTag(Tag.ACCESS_DENIED); + /** + * The shared link does not exist. + */ + public static final ThumbnailV2Error NOT_FOUND = new ThumbnailV2Error().withTag(Tag.NOT_FOUND); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ThumbnailV2Error OTHER = new ThumbnailV2Error().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ThumbnailV2Error() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ThumbnailV2Error withTag(Tag _tag) { + ThumbnailV2Error result = new ThumbnailV2Error(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue An error occurred when downloading metadata for the + * image. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ThumbnailV2Error withTagAndPath(Tag _tag, LookupError pathValue) { + ThumbnailV2Error result = new ThumbnailV2Error(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ThumbnailV2Error}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code ThumbnailV2Error} that has its tag set to + * {@link Tag#PATH}. + * + *

An error occurred when downloading metadata for the image.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ThumbnailV2Error} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ThumbnailV2Error path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ThumbnailV2Error().withTagAndPath(Tag.PATH, value); + } + + /** + * An error occurred when downloading metadata for the image. + * + *

This instance must be tagged as {@link Tag#PATH}.

+ * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_EXTENSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_EXTENSION}, {@code false} otherwise. + */ + public boolean isUnsupportedExtension() { + return this._tag == Tag.UNSUPPORTED_EXTENSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_IMAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_IMAGE}, {@code false} otherwise. + */ + public boolean isUnsupportedImage() { + return this._tag == Tag.UNSUPPORTED_IMAGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONVERSION_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONVERSION_ERROR}, {@code false} otherwise. + */ + public boolean isConversionError() { + return this._tag == Tag.CONVERSION_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_DENIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_DENIED}, {@code false} otherwise. + */ + public boolean isAccessDenied() { + return this._tag == Tag.ACCESS_DENIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ThumbnailV2Error) { + ThumbnailV2Error other = (ThumbnailV2Error) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case UNSUPPORTED_EXTENSION: + return true; + case UNSUPPORTED_IMAGE: + return true; + case CONVERSION_ERROR: + return true; + case ACCESS_DENIED: + return true; + case NOT_FOUND: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ThumbnailV2Error value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case UNSUPPORTED_EXTENSION: { + g.writeString("unsupported_extension"); + break; + } + case UNSUPPORTED_IMAGE: { + g.writeString("unsupported_image"); + break; + } + case CONVERSION_ERROR: { + g.writeString("conversion_error"); + break; + } + case ACCESS_DENIED: { + g.writeString("access_denied"); + break; + } + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ThumbnailV2Error deserialize(JsonParser p) throws IOException, JsonParseException { + ThumbnailV2Error value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = ThumbnailV2Error.path(fieldValue); + } + else if ("unsupported_extension".equals(tag)) { + value = ThumbnailV2Error.UNSUPPORTED_EXTENSION; + } + else if ("unsupported_image".equals(tag)) { + value = ThumbnailV2Error.UNSUPPORTED_IMAGE; + } + else if ("conversion_error".equals(tag)) { + value = ThumbnailV2Error.CONVERSION_ERROR; + } + else if ("access_denied".equals(tag)) { + value = ThumbnailV2Error.ACCESS_DENIED; + } + else if ("not_found".equals(tag)) { + value = ThumbnailV2Error.NOT_FOUND; + } + else { + value = ThumbnailV2Error.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2ErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2ErrorException.java new file mode 100644 index 000000000..dcd66d9cd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2ErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ThumbnailV2Error} + * error. + * + *

This exception is raised by {@link + * DbxAppFilesRequests#getThumbnailV2(PathOrLink)}.

+ */ +public class ThumbnailV2ErrorException extends DbxApiException { + // exception for routes: + // 2/files/get_thumbnail_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxAppFilesRequests#getThumbnailV2(PathOrLink)}. + */ + public final ThumbnailV2Error errorValue; + + public ThumbnailV2ErrorException(String routeName, String requestId, LocalizedText userMessage, ThumbnailV2Error errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UnlockFileArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UnlockFileArg.java new file mode 100644 index 000000000..0b619ea2f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UnlockFileArg.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class UnlockFileArg { + // struct files.UnlockFileArg (files.stone) + + @Nonnull + protected final String path; + + /** + * + * @param path Path in the user's Dropbox to a file. Must match pattern + * "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UnlockFileArg(@Nonnull String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + } + + /** + * Path in the user's Dropbox to a file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UnlockFileArg other = (UnlockFileArg) obj; + return (this.path == other.path) || (this.path.equals(other.path)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnlockFileArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UnlockFileArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UnlockFileArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new UnlockFileArg(f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UnlockFileBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UnlockFileBatchArg.java new file mode 100644 index 000000000..bbaa29134 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UnlockFileBatchArg.java @@ -0,0 +1,157 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class UnlockFileBatchArg { + // struct files.UnlockFileBatchArg (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries List of 'entries'. Each 'entry' contains a path of the + * file which will be unlocked. Duplicate path arguments in the batch + * are considered only once. Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UnlockFileBatchArg(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (UnlockFileArg x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * List of 'entries'. Each 'entry' contains a path of the file which will be + * unlocked. Duplicate path arguments in the batch are considered only once. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UnlockFileBatchArg other = (UnlockFileBatchArg) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnlockFileBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(UnlockFileArg.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UnlockFileBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UnlockFileBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(UnlockFileArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new UnlockFileBatchArg(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadArg.java new file mode 100644 index 000000000..4419408f2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadArg.java @@ -0,0 +1,532 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.fileproperties.PropertyGroup; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class UploadArg extends CommitInfo { + // struct files.UploadArg (files.stone) + + @Nullable + protected final String contentHash; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * @param mode Selects what to do if the file already exists. Must not be + * {@code null}. + * @param autorename If there's a conflict, as determined by {@link + * CommitInfo#getMode}, have the Dropbox server try to autorename the + * file to avoid conflict. + * @param clientModified The value to store as the {@link + * CommitInfo#getClientModified} timestamp. Dropbox automatically + * records the time at which the file was written to the Dropbox + * servers. It can also record an additional timestamp, provided by + * Dropbox desktop clients, mobile clients, and API apps of when the + * file was actually created or modified. + * @param mute Normally, users are made aware of any file modifications in + * their Dropbox account via notifications in the client software. If + * {@code true}, this tells the clients that this modification shouldn't + * result in a user notification. + * @param propertyGroups List of custom properties to add to file. Must not + * contain a {@code null} item. + * @param strictConflict Be more strict about how each {@link WriteMode} + * detects conflict. For example, always return a conflict error when + * {@link CommitInfo#getMode} = {@link WriteMode#getUpdateValue} and the + * given "rev" doesn't match the existing file's "rev", even if the + * existing file has been deleted. This also forces a conflict even when + * the target path refers to a file with identical contents. + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadArg(@Nonnull String path, @Nonnull WriteMode mode, boolean autorename, @Nullable Date clientModified, boolean mute, @Nullable List propertyGroups, boolean strictConflict, @Nullable String contentHash) { + super(path, mode, autorename, clientModified, mute, propertyGroups, strictConflict); + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadArg(@Nonnull String path) { + this(path, WriteMode.ADD, false, null, false, null, false, null); + } + + /** + * Path in the user's Dropbox to save the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Selects what to do if the file already exists. + * + * @return value for this field, or {@code null} if not present. Defaults to + * WriteMode.ADD. + */ + @Nonnull + public WriteMode getMode() { + return mode; + } + + /** + * If there's a conflict, as determined by {@link CommitInfo#getMode}, have + * the Dropbox server try to autorename the file to avoid conflict. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAutorename() { + return autorename; + } + + /** + * The value to store as the {@link CommitInfo#getClientModified} timestamp. + * Dropbox automatically records the time at which the file was written to + * the Dropbox servers. It can also record an additional timestamp, provided + * by Dropbox desktop clients, mobile clients, and API apps of when the file + * was actually created or modified. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getClientModified() { + return clientModified; + } + + /** + * Normally, users are made aware of any file modifications in their Dropbox + * account via notifications in the client software. If {@code true}, this + * tells the clients that this modification shouldn't result in a user + * notification. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getMute() { + return mute; + } + + /** + * List of custom properties to add to file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPropertyGroups() { + return propertyGroups; + } + + /** + * Be more strict about how each {@link WriteMode} detects conflict. For + * example, always return a conflict error when {@link CommitInfo#getMode} = + * {@link WriteMode#getUpdateValue} and the given "rev" doesn't match the + * existing file's "rev", even if the existing file has been deleted. This + * also forces a conflict even when the target path refers to a file with + * identical contents. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getStrictConflict() { + return strictConflict; + } + + /** + * A hash of the file content uploaded in this call. If provided and the + * uploaded content does not match this hash, an error will be returned. For + * more information see our Content + * hash page. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getContentHash() { + return contentHash; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path Path in the user's Dropbox to save the file. Must match + * pattern "{@code (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not + * be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link UploadArg}. + */ + public static class Builder extends CommitInfo.Builder { + + protected String contentHash; + + protected Builder(String path) { + super(path); + this.contentHash = null; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content uploaded in this call. + * If provided and the uploaded content does not match this hash, an + * error will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withContentHash(String contentHash) { + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * WriteMode.ADD}.

+ * + * @param mode Selects what to do if the file already exists. Must not + * be {@code null}. Defaults to {@code WriteMode.ADD} when set to + * {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMode(WriteMode mode) { + super.withMode(mode); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param autorename If there's a conflict, as determined by {@link + * CommitInfo#getMode}, have the Dropbox server try to autorename + * the file to avoid conflict. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withAutorename(Boolean autorename) { + super.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + * @param clientModified The value to store as the {@link + * CommitInfo#getClientModified} timestamp. Dropbox automatically + * records the time at which the file was written to the Dropbox + * servers. It can also record an additional timestamp, provided by + * Dropbox desktop clients, mobile clients, and API apps of when the + * file was actually created or modified. + * + * @return this builder + */ + public Builder withClientModified(Date clientModified) { + super.withClientModified(clientModified); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param mute Normally, users are made aware of any file modifications + * in their Dropbox account via notifications in the client + * software. If {@code true}, this tells the clients that this + * modification shouldn't result in a user notification. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withMute(Boolean mute) { + super.withMute(mute); + return this; + } + + /** + * Set value for optional field. + * + * @param propertyGroups List of custom properties to add to file. Must + * not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPropertyGroups(List propertyGroups) { + super.withPropertyGroups(propertyGroups); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param strictConflict Be more strict about how each {@link + * WriteMode} detects conflict. For example, always return a + * conflict error when {@link CommitInfo#getMode} = {@link + * WriteMode#getUpdateValue} and the given "rev" doesn't match the + * existing file's "rev", even if the existing file has been + * deleted. This also forces a conflict even when the target path + * refers to a file with identical contents. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withStrictConflict(Boolean strictConflict) { + super.withStrictConflict(strictConflict); + return this; + } + + /** + * Builds an instance of {@link UploadArg} configured with this + * builder's values + * + * @return new instance of {@link UploadArg} + */ + public UploadArg build() { + return new UploadArg(path, mode, autorename, clientModified, mute, propertyGroups, strictConflict, contentHash); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.contentHash + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadArg other = (UploadArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.mode == other.mode) || (this.mode.equals(other.mode))) + && (this.autorename == other.autorename) + && ((this.clientModified == other.clientModified) || (this.clientModified != null && this.clientModified.equals(other.clientModified))) + && (this.mute == other.mute) + && ((this.propertyGroups == other.propertyGroups) || (this.propertyGroups != null && this.propertyGroups.equals(other.propertyGroups))) + && (this.strictConflict == other.strictConflict) + && ((this.contentHash == other.contentHash) || (this.contentHash != null && this.contentHash.equals(other.contentHash))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("mode"); + WriteMode.Serializer.INSTANCE.serialize(value.mode, g); + g.writeFieldName("autorename"); + StoneSerializers.boolean_().serialize(value.autorename, g); + if (value.clientModified != null) { + g.writeFieldName("client_modified"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.clientModified, g); + } + g.writeFieldName("mute"); + StoneSerializers.boolean_().serialize(value.mute, g); + if (value.propertyGroups != null) { + g.writeFieldName("property_groups"); + StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).serialize(value.propertyGroups, g); + } + g.writeFieldName("strict_conflict"); + StoneSerializers.boolean_().serialize(value.strictConflict, g); + if (value.contentHash != null) { + g.writeFieldName("content_hash"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.contentHash, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + WriteMode f_mode = WriteMode.ADD; + Boolean f_autorename = false; + Date f_clientModified = null; + Boolean f_mute = false; + List f_propertyGroups = null; + Boolean f_strictConflict = false; + String f_contentHash = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("mode".equals(field)) { + f_mode = WriteMode.Serializer.INSTANCE.deserialize(p); + } + else if ("autorename".equals(field)) { + f_autorename = StoneSerializers.boolean_().deserialize(p); + } + else if ("client_modified".equals(field)) { + f_clientModified = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("mute".equals(field)) { + f_mute = StoneSerializers.boolean_().deserialize(p); + } + else if ("property_groups".equals(field)) { + f_propertyGroups = StoneSerializers.nullable(StoneSerializers.list(PropertyGroup.Serializer.INSTANCE)).deserialize(p); + } + else if ("strict_conflict".equals(field)) { + f_strictConflict = StoneSerializers.boolean_().deserialize(p); + } + else if ("content_hash".equals(field)) { + f_contentHash = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new UploadArg(f_path, f_mode, f_autorename, f_clientModified, f_mute, f_propertyGroups, f_strictConflict, f_contentHash); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadBuilder.java new file mode 100644 index 000000000..976ce921d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadBuilder.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxUploadStyleBuilder; +import com.dropbox.core.v2.fileproperties.PropertyGroup; + +import java.util.Date; +import java.util.List; + +/** + * The request builder returned by {@link DbxUserFilesRequests#uploadBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class UploadBuilder extends DbxUploadStyleBuilder { + private final DbxUserFilesRequests _client; + private final UploadArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + UploadBuilder(DbxUserFilesRequests _client, UploadArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * WriteMode.ADD}.

+ * + * @param mode Selects what to do if the file already exists. Must not be + * {@code null}. Defaults to {@code WriteMode.ADD} when set to {@code + * null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadBuilder withMode(WriteMode mode) { + this._builder.withMode(mode); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param autorename If there's a conflict, as determined by {@link + * CommitInfo#getMode}, have the Dropbox server try to autorename the + * file to avoid conflict. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public UploadBuilder withAutorename(Boolean autorename) { + this._builder.withAutorename(autorename); + return this; + } + + /** + * Set value for optional field. + * + * @param clientModified The value to store as the {@link + * CommitInfo#getClientModified} timestamp. Dropbox automatically + * records the time at which the file was written to the Dropbox + * servers. It can also record an additional timestamp, provided by + * Dropbox desktop clients, mobile clients, and API apps of when the + * file was actually created or modified. + * + * @return this builder + */ + public UploadBuilder withClientModified(Date clientModified) { + this._builder.withClientModified(clientModified); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param mute Normally, users are made aware of any file modifications in + * their Dropbox account via notifications in the client software. If + * {@code true}, this tells the clients that this modification shouldn't + * result in a user notification. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public UploadBuilder withMute(Boolean mute) { + this._builder.withMute(mute); + return this; + } + + /** + * Set value for optional field. + * + * @param propertyGroups List of custom properties to add to file. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadBuilder withPropertyGroups(List propertyGroups) { + this._builder.withPropertyGroups(propertyGroups); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param strictConflict Be more strict about how each {@link WriteMode} + * detects conflict. For example, always return a conflict error when + * {@link CommitInfo#getMode} = {@link WriteMode#getUpdateValue} and the + * given "rev" doesn't match the existing file's "rev", even if the + * existing file has been deleted. This also forces a conflict even when + * the target path refers to a file with identical contents. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public UploadBuilder withStrictConflict(Boolean strictConflict) { + this._builder.withStrictConflict(strictConflict); + return this; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadBuilder withContentHash(String contentHash) { + this._builder.withContentHash(contentHash); + return this; + } + + @Override + public UploadUploader start() throws UploadErrorException, DbxException { + UploadArg arg_ = this._builder.build(); + return _client.upload(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadError.java new file mode 100644 index 000000000..12f9f3472 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadError.java @@ -0,0 +1,430 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.fileproperties.InvalidPropertyGroupError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UploadError { + // union files.UploadError (files.stone) + + /** + * Discriminating tag type for {@link UploadError}. + */ + public enum Tag { + /** + * Unable to save the uploaded contents to a file. + */ + PATH, // UploadWriteFailed + /** + * The supplied property group is invalid. The file has uploaded without + * property groups. + */ + PROPERTIES_ERROR, // InvalidPropertyGroupError + /** + * The request payload must be at most 150 MB. + */ + PAYLOAD_TOO_LARGE, + /** + * The content received by the Dropbox server in this call does not + * match the provided content hash. + */ + CONTENT_HASH_MISMATCH, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The request payload must be at most 150 MB. + */ + public static final UploadError PAYLOAD_TOO_LARGE = new UploadError().withTag(Tag.PAYLOAD_TOO_LARGE); + /** + * The content received by the Dropbox server in this call does not match + * the provided content hash. + */ + public static final UploadError CONTENT_HASH_MISMATCH = new UploadError().withTag(Tag.CONTENT_HASH_MISMATCH); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UploadError OTHER = new UploadError().withTag(Tag.OTHER); + + private Tag _tag; + private UploadWriteFailed pathValue; + private InvalidPropertyGroupError propertiesErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UploadError withTag(Tag _tag) { + UploadError result = new UploadError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Unable to save the uploaded contents to a file. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadError withTagAndPath(Tag _tag, UploadWriteFailed pathValue) { + UploadError result = new UploadError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param propertiesErrorValue The supplied property group is invalid. The + * file has uploaded without property groups. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadError withTagAndPropertiesError(Tag _tag, InvalidPropertyGroupError propertiesErrorValue) { + UploadError result = new UploadError(); + result._tag = _tag; + result.propertiesErrorValue = propertiesErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code UploadError} that has its tag set to {@link + * Tag#PATH}. + * + *

Unable to save the uploaded contents to a file.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadError} with its tag set to {@link + * Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadError path(UploadWriteFailed value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadError().withTagAndPath(Tag.PATH, value); + } + + /** + * Unable to save the uploaded contents to a file. + * + *

This instance must be tagged as {@link Tag#PATH}.

+ * + * @return The {@link UploadWriteFailed} value associated with this instance + * if {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public UploadWriteFailed getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTIES_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTIES_ERROR}, {@code false} otherwise. + */ + public boolean isPropertiesError() { + return this._tag == Tag.PROPERTIES_ERROR; + } + + /** + * Returns an instance of {@code UploadError} that has its tag set to {@link + * Tag#PROPERTIES_ERROR}. + * + *

The supplied property group is invalid. The file has uploaded without + * property groups.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadError} with its tag set to {@link + * Tag#PROPERTIES_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadError propertiesError(InvalidPropertyGroupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadError().withTagAndPropertiesError(Tag.PROPERTIES_ERROR, value); + } + + /** + * The supplied property group is invalid. The file has uploaded without + * property groups. + * + *

This instance must be tagged as {@link Tag#PROPERTIES_ERROR}.

+ * + * @return The {@link InvalidPropertyGroupError} value associated with this + * instance if {@link #isPropertiesError} is {@code true}. + * + * @throws IllegalStateException If {@link #isPropertiesError} is {@code + * false}. + */ + public InvalidPropertyGroupError getPropertiesErrorValue() { + if (this._tag != Tag.PROPERTIES_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.PROPERTIES_ERROR, but was Tag." + this._tag.name()); + } + return propertiesErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isPayloadTooLarge() { + return this._tag == Tag.PAYLOAD_TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTENT_HASH_MISMATCH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTENT_HASH_MISMATCH}, {@code false} otherwise. + */ + public boolean isContentHashMismatch() { + return this._tag == Tag.CONTENT_HASH_MISMATCH; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue, + this.propertiesErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadError) { + UploadError other = (UploadError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case PROPERTIES_ERROR: + return (this.propertiesErrorValue == other.propertiesErrorValue) || (this.propertiesErrorValue.equals(other.propertiesErrorValue)); + case PAYLOAD_TOO_LARGE: + return true; + case CONTENT_HASH_MISMATCH: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + UploadWriteFailed.Serializer.INSTANCE.serialize(value.pathValue, g, true); + g.writeEndObject(); + break; + } + case PROPERTIES_ERROR: { + g.writeStartObject(); + writeTag("properties_error", g); + g.writeFieldName("properties_error"); + InvalidPropertyGroupError.Serializer.INSTANCE.serialize(value.propertiesErrorValue, g); + g.writeEndObject(); + break; + } + case PAYLOAD_TOO_LARGE: { + g.writeString("payload_too_large"); + break; + } + case CONTENT_HASH_MISMATCH: { + g.writeString("content_hash_mismatch"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UploadError deserialize(JsonParser p) throws IOException, JsonParseException { + UploadError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + UploadWriteFailed fieldValue = null; + fieldValue = UploadWriteFailed.Serializer.INSTANCE.deserialize(p, true); + value = UploadError.path(fieldValue); + } + else if ("properties_error".equals(tag)) { + InvalidPropertyGroupError fieldValue = null; + expectField("properties_error", p); + fieldValue = InvalidPropertyGroupError.Serializer.INSTANCE.deserialize(p); + value = UploadError.propertiesError(fieldValue); + } + else if ("payload_too_large".equals(tag)) { + value = UploadError.PAYLOAD_TOO_LARGE; + } + else if ("content_hash_mismatch".equals(tag)) { + value = UploadError.CONTENT_HASH_MISMATCH; + } + else { + value = UploadError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadErrorException.java new file mode 100644 index 000000000..bd06cd2d1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link UploadError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#alphaUpload(String)} and {@link + * DbxUserFilesRequests#upload(String)}.

+ */ +public class UploadErrorException extends DbxApiException { + // exception for routes: + // 2/files/alpha/upload + // 2/files/upload + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#alphaUpload(String)} + * and {@link DbxUserFilesRequests#upload(String)}. + */ + public final UploadError errorValue; + + public UploadErrorException(String routeName, String requestId, LocalizedText userMessage, UploadError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendArg.java new file mode 100644 index 000000000..d2e507fb9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendArg.java @@ -0,0 +1,331 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class UploadSessionAppendArg { + // struct files.UploadSessionAppendArg (files.stone) + + @Nonnull + protected final UploadSessionCursor cursor; + protected final boolean close; + @Nullable + protected final String contentHash; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * @param close If true, the current session will be closed, at which point + * you won't be able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * anymore with the current session. + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionAppendArg(@Nonnull UploadSessionCursor cursor, boolean close, @Nullable String contentHash) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.close = close; + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionAppendArg(@Nonnull UploadSessionCursor cursor) { + this(cursor, false, null); + } + + /** + * Contains the upload session ID and the offset. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UploadSessionCursor getCursor() { + return cursor; + } + + /** + * If true, the current session will be closed, at which point you won't be + * able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} anymore + * with the current session. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getClose() { + return close; + } + + /** + * A hash of the file content uploaded in this call. If provided and the + * uploaded content does not match this hash, an error will be returned. For + * more information see our Content + * hash page. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getContentHash() { + return contentHash; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(UploadSessionCursor cursor) { + return new Builder(cursor); + } + + /** + * Builder for {@link UploadSessionAppendArg}. + */ + public static class Builder { + protected final UploadSessionCursor cursor; + + protected boolean close; + protected String contentHash; + + protected Builder(UploadSessionCursor cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.close = false; + this.contentHash = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param close If true, the current session will be closed, at which + * point you won't be able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * anymore with the current session. Defaults to {@code false} when + * set to {@code null}. + * + * @return this builder + */ + public Builder withClose(Boolean close) { + if (close != null) { + this.close = close; + } + else { + this.close = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content uploaded in this call. + * If provided and the uploaded content does not match this hash, an + * error will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withContentHash(String contentHash) { + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + return this; + } + + /** + * Builds an instance of {@link UploadSessionAppendArg} configured with + * this builder's values + * + * @return new instance of {@link UploadSessionAppendArg} + */ + public UploadSessionAppendArg build() { + return new UploadSessionAppendArg(cursor, close, contentHash); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor, + this.close, + this.contentHash + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionAppendArg other = (UploadSessionAppendArg) obj; + return ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.close == other.close) + && ((this.contentHash == other.contentHash) || (this.contentHash != null && this.contentHash.equals(other.contentHash))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionAppendArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + UploadSessionCursor.Serializer.INSTANCE.serialize(value.cursor, g); + g.writeFieldName("close"); + StoneSerializers.boolean_().serialize(value.close, g); + if (value.contentHash != null) { + g.writeFieldName("content_hash"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.contentHash, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionAppendArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionAppendArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UploadSessionCursor f_cursor = null; + Boolean f_close = false; + String f_contentHash = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = UploadSessionCursor.Serializer.INSTANCE.deserialize(p); + } + else if ("close".equals(field)) { + f_close = StoneSerializers.boolean_().deserialize(p); + } + else if ("content_hash".equals(field)) { + f_contentHash = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new UploadSessionAppendArg(f_cursor, f_close, f_contentHash); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendError.java new file mode 100644 index 000000000..dedef64cd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendError.java @@ -0,0 +1,532 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class UploadSessionAppendError { + // union files.UploadSessionAppendError (files.stone) + + /** + * Discriminating tag type for {@link UploadSessionAppendError}. + */ + public enum Tag { + /** + * The upload session ID was not found or has expired. Upload sessions + * are valid for 7 days. + */ + NOT_FOUND, + /** + * The specified offset was incorrect. See the value for the correct + * offset. This error may occur when a previous request was received and + * processed successfully but the client did not receive the response, + * e.g. due to a network error. + */ + INCORRECT_OFFSET, // UploadSessionOffsetError + /** + * You are attempting to append data to an upload session that has + * already been closed (i.e. committed). + */ + CLOSED, + /** + * The session must be closed before calling + * upload_session/finish_batch. + */ + NOT_CLOSED, + /** + * You can not append to the upload session because the size of a file + * should not reach the max file size limit (i.e. 350GB). + */ + TOO_LARGE, + /** + * For concurrent upload sessions, offset needs to be multiple of + * 4194304 bytes. + */ + CONCURRENT_SESSION_INVALID_OFFSET, + /** + * For concurrent upload sessions, only chunks with size multiple of + * 4194304 bytes can be uploaded. + */ + CONCURRENT_SESSION_INVALID_DATA_SIZE, + /** + * The request payload must be at most 150 MB. + */ + PAYLOAD_TOO_LARGE, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * The content received by the Dropbox server in this call does not + * match the provided content hash. + */ + CONTENT_HASH_MISMATCH; + } + + /** + * The upload session ID was not found or has expired. Upload sessions are + * valid for 7 days. + */ + public static final UploadSessionAppendError NOT_FOUND = new UploadSessionAppendError().withTag(Tag.NOT_FOUND); + /** + * You are attempting to append data to an upload session that has already + * been closed (i.e. committed). + */ + public static final UploadSessionAppendError CLOSED = new UploadSessionAppendError().withTag(Tag.CLOSED); + /** + * The session must be closed before calling upload_session/finish_batch. + */ + public static final UploadSessionAppendError NOT_CLOSED = new UploadSessionAppendError().withTag(Tag.NOT_CLOSED); + /** + * You can not append to the upload session because the size of a file + * should not reach the max file size limit (i.e. 350GB). + */ + public static final UploadSessionAppendError TOO_LARGE = new UploadSessionAppendError().withTag(Tag.TOO_LARGE); + /** + * For concurrent upload sessions, offset needs to be multiple of 4194304 + * bytes. + */ + public static final UploadSessionAppendError CONCURRENT_SESSION_INVALID_OFFSET = new UploadSessionAppendError().withTag(Tag.CONCURRENT_SESSION_INVALID_OFFSET); + /** + * For concurrent upload sessions, only chunks with size multiple of 4194304 + * bytes can be uploaded. + */ + public static final UploadSessionAppendError CONCURRENT_SESSION_INVALID_DATA_SIZE = new UploadSessionAppendError().withTag(Tag.CONCURRENT_SESSION_INVALID_DATA_SIZE); + /** + * The request payload must be at most 150 MB. + */ + public static final UploadSessionAppendError PAYLOAD_TOO_LARGE = new UploadSessionAppendError().withTag(Tag.PAYLOAD_TOO_LARGE); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UploadSessionAppendError OTHER = new UploadSessionAppendError().withTag(Tag.OTHER); + /** + * The content received by the Dropbox server in this call does not match + * the provided content hash. + */ + public static final UploadSessionAppendError CONTENT_HASH_MISMATCH = new UploadSessionAppendError().withTag(Tag.CONTENT_HASH_MISMATCH); + + private Tag _tag; + private UploadSessionOffsetError incorrectOffsetValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadSessionAppendError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UploadSessionAppendError withTag(Tag _tag) { + UploadSessionAppendError result = new UploadSessionAppendError(); + result._tag = _tag; + return result; + } + + /** + * + * @param incorrectOffsetValue The specified offset was incorrect. See the + * value for the correct offset. This error may occur when a previous + * request was received and processed successfully but the client did + * not receive the response, e.g. due to a network error. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionAppendError withTagAndIncorrectOffset(Tag _tag, UploadSessionOffsetError incorrectOffsetValue) { + UploadSessionAppendError result = new UploadSessionAppendError(); + result._tag = _tag; + result.incorrectOffsetValue = incorrectOffsetValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadSessionAppendError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INCORRECT_OFFSET}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INCORRECT_OFFSET}, {@code false} otherwise. + */ + public boolean isIncorrectOffset() { + return this._tag == Tag.INCORRECT_OFFSET; + } + + /** + * Returns an instance of {@code UploadSessionAppendError} that has its tag + * set to {@link Tag#INCORRECT_OFFSET}. + * + *

The specified offset was incorrect. See the value for the correct + * offset. This error may occur when a previous request was received and + * processed successfully but the client did not receive the response, e.g. + * due to a network error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionAppendError} with its tag set to + * {@link Tag#INCORRECT_OFFSET}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionAppendError incorrectOffset(UploadSessionOffsetError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionAppendError().withTagAndIncorrectOffset(Tag.INCORRECT_OFFSET, value); + } + + /** + * The specified offset was incorrect. See the value for the correct offset. + * This error may occur when a previous request was received and processed + * successfully but the client did not receive the response, e.g. due to a + * network error. + * + *

This instance must be tagged as {@link Tag#INCORRECT_OFFSET}.

+ * + * @return The {@link UploadSessionOffsetError} value associated with this + * instance if {@link #isIncorrectOffset} is {@code true}. + * + * @throws IllegalStateException If {@link #isIncorrectOffset} is {@code + * false}. + */ + public UploadSessionOffsetError getIncorrectOffsetValue() { + if (this._tag != Tag.INCORRECT_OFFSET) { + throw new IllegalStateException("Invalid tag: required Tag.INCORRECT_OFFSET, but was Tag." + this._tag.name()); + } + return incorrectOffsetValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#CLOSED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#CLOSED}, + * {@code false} otherwise. + */ + public boolean isClosed() { + return this._tag == Tag.CLOSED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_CLOSED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_CLOSED}, {@code false} otherwise. + */ + public boolean isNotClosed() { + return this._tag == Tag.NOT_CLOSED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TOO_LARGE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TOO_LARGE}, + * {@code false} otherwise. + */ + public boolean isTooLarge() { + return this._tag == Tag.TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONCURRENT_SESSION_INVALID_OFFSET}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONCURRENT_SESSION_INVALID_OFFSET}, {@code false} otherwise. + */ + public boolean isConcurrentSessionInvalidOffset() { + return this._tag == Tag.CONCURRENT_SESSION_INVALID_OFFSET; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONCURRENT_SESSION_INVALID_DATA_SIZE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONCURRENT_SESSION_INVALID_DATA_SIZE}, {@code false} otherwise. + */ + public boolean isConcurrentSessionInvalidDataSize() { + return this._tag == Tag.CONCURRENT_SESSION_INVALID_DATA_SIZE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isPayloadTooLarge() { + return this._tag == Tag.PAYLOAD_TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTENT_HASH_MISMATCH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTENT_HASH_MISMATCH}, {@code false} otherwise. + */ + public boolean isContentHashMismatch() { + return this._tag == Tag.CONTENT_HASH_MISMATCH; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.incorrectOffsetValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadSessionAppendError) { + UploadSessionAppendError other = (UploadSessionAppendError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case NOT_FOUND: + return true; + case INCORRECT_OFFSET: + return (this.incorrectOffsetValue == other.incorrectOffsetValue) || (this.incorrectOffsetValue.equals(other.incorrectOffsetValue)); + case CLOSED: + return true; + case NOT_CLOSED: + return true; + case TOO_LARGE: + return true; + case CONCURRENT_SESSION_INVALID_OFFSET: + return true; + case CONCURRENT_SESSION_INVALID_DATA_SIZE: + return true; + case PAYLOAD_TOO_LARGE: + return true; + case OTHER: + return true; + case CONTENT_HASH_MISMATCH: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionAppendError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case INCORRECT_OFFSET: { + g.writeStartObject(); + writeTag("incorrect_offset", g); + UploadSessionOffsetError.Serializer.INSTANCE.serialize(value.incorrectOffsetValue, g, true); + g.writeEndObject(); + break; + } + case CLOSED: { + g.writeString("closed"); + break; + } + case NOT_CLOSED: { + g.writeString("not_closed"); + break; + } + case TOO_LARGE: { + g.writeString("too_large"); + break; + } + case CONCURRENT_SESSION_INVALID_OFFSET: { + g.writeString("concurrent_session_invalid_offset"); + break; + } + case CONCURRENT_SESSION_INVALID_DATA_SIZE: { + g.writeString("concurrent_session_invalid_data_size"); + break; + } + case PAYLOAD_TOO_LARGE: { + g.writeString("payload_too_large"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case CONTENT_HASH_MISMATCH: { + g.writeString("content_hash_mismatch"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public UploadSessionAppendError deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionAppendError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("not_found".equals(tag)) { + value = UploadSessionAppendError.NOT_FOUND; + } + else if ("incorrect_offset".equals(tag)) { + UploadSessionOffsetError fieldValue = null; + fieldValue = UploadSessionOffsetError.Serializer.INSTANCE.deserialize(p, true); + value = UploadSessionAppendError.incorrectOffset(fieldValue); + } + else if ("closed".equals(tag)) { + value = UploadSessionAppendError.CLOSED; + } + else if ("not_closed".equals(tag)) { + value = UploadSessionAppendError.NOT_CLOSED; + } + else if ("too_large".equals(tag)) { + value = UploadSessionAppendError.TOO_LARGE; + } + else if ("concurrent_session_invalid_offset".equals(tag)) { + value = UploadSessionAppendError.CONCURRENT_SESSION_INVALID_OFFSET; + } + else if ("concurrent_session_invalid_data_size".equals(tag)) { + value = UploadSessionAppendError.CONCURRENT_SESSION_INVALID_DATA_SIZE; + } + else if ("payload_too_large".equals(tag)) { + value = UploadSessionAppendError.PAYLOAD_TOO_LARGE; + } + else if ("other".equals(tag)) { + value = UploadSessionAppendError.OTHER; + } + else if ("content_hash_mismatch".equals(tag)) { + value = UploadSessionAppendError.CONTENT_HASH_MISMATCH; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendErrorException.java new file mode 100644 index 000000000..38e202b8c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UploadSessionAppendError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#uploadSessionAppend(String,long)} and {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)}.

+ */ +public class UploadSessionAppendErrorException extends DbxApiException { + // exception for routes: + // 2/files/upload_session/append + // 2/files/upload_session/append_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#uploadSessionAppend(String,long)} and {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)}. + */ + public final UploadSessionAppendError errorValue; + + public UploadSessionAppendErrorException(String routeName, String requestId, LocalizedText userMessage, UploadSessionAppendError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendUploader.java new file mode 100644 index 000000000..142f064b2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#uploadSessionAppend(String,long)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class UploadSessionAppendUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public UploadSessionAppendUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, com.dropbox.core.stone.StoneSerializers.void_(), UploadSessionAppendError.Serializer.INSTANCE, userId); + } + + protected UploadSessionAppendErrorException newException(DbxWrappedException error) { + return new UploadSessionAppendErrorException("2/files/upload_session/append", error.getRequestId(), error.getUserMessage(), (UploadSessionAppendError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendV2Builder.java new file mode 100644 index 000000000..9cd676f22 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendV2Builder.java @@ -0,0 +1,83 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxUploadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#uploadSessionAppendV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class UploadSessionAppendV2Builder extends DbxUploadStyleBuilder { + private final DbxUserFilesRequests _client; + private final UploadSessionAppendArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + UploadSessionAppendV2Builder(DbxUserFilesRequests _client, UploadSessionAppendArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param close If true, the current session will be closed, at which point + * you won't be able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * anymore with the current session. Defaults to {@code false} when set + * to {@code null}. + * + * @return this builder + */ + public UploadSessionAppendV2Builder withClose(Boolean close) { + this._builder.withClose(close); + return this; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionAppendV2Builder withContentHash(String contentHash) { + this._builder.withContentHash(contentHash); + return this; + } + + @Override + public UploadSessionAppendV2Uploader start() throws UploadSessionAppendErrorException, DbxException { + UploadSessionAppendArg arg_ = this._builder.build(); + return _client.uploadSessionAppendV2(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendV2Uploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendV2Uploader.java new file mode 100644 index 000000000..11e5305a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionAppendV2Uploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class UploadSessionAppendV2Uploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public UploadSessionAppendV2Uploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, com.dropbox.core.stone.StoneSerializers.void_(), UploadSessionAppendError.Serializer.INSTANCE, userId); + } + + protected UploadSessionAppendErrorException newException(DbxWrappedException error) { + return new UploadSessionAppendErrorException("2/files/upload_session/append_v2", error.getRequestId(), error.getUserMessage(), (UploadSessionAppendError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionCursor.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionCursor.java new file mode 100644 index 000000000..6e16c3c28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionCursor.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UploadSessionCursor { + // struct files.UploadSessionCursor (files.stone) + + @Nonnull + protected final String sessionId; + protected final long offset; + + /** + * + * @param sessionId The upload session ID (returned by {@link + * DbxUserFilesRequests#uploadSessionStart}). Must not be {@code null}. + * @param offset Offset in bytes at which data should be appended. We use + * this to make sure upload data isn't lost or duplicated in the event + * of a network error. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionCursor(@Nonnull String sessionId, long offset) { + if (sessionId == null) { + throw new IllegalArgumentException("Required value for 'sessionId' is null"); + } + this.sessionId = sessionId; + this.offset = offset; + } + + /** + * The upload session ID (returned by {@link + * DbxUserFilesRequests#uploadSessionStart}). + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + /** + * Offset in bytes at which data should be appended. We use this to make + * sure upload data isn't lost or duplicated in the event of a network + * error. + * + * @return value for this field. + */ + public long getOffset() { + return offset; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionId, + this.offset + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionCursor other = (UploadSessionCursor) obj; + return ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + && (this.offset == other.offset) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionCursor value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + g.writeFieldName("offset"); + StoneSerializers.uInt64().serialize(value.offset, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionCursor deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionCursor value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + Long f_offset = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else if ("offset".equals(field)) { + f_offset = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + if (f_offset == null) { + throw new JsonParseException(p, "Required field \"offset\" missing."); + } + value = new UploadSessionCursor(f_sessionId, f_offset); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishArg.java new file mode 100644 index 000000000..936041075 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishArg.java @@ -0,0 +1,237 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class UploadSessionFinishArg { + // struct files.UploadSessionFinishArg (files.stone) + + @Nonnull + protected final UploadSessionCursor cursor; + @Nonnull + protected final CommitInfo commit; + @Nullable + protected final String contentHash; + + /** + * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * @param commit Contains the path and other optional modifiers for the + * commit. Must not be {@code null}. + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishArg(@Nonnull UploadSessionCursor cursor, @Nonnull CommitInfo commit, @Nullable String contentHash) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + if (commit == null) { + throw new IllegalArgumentException("Required value for 'commit' is null"); + } + this.commit = commit; + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param cursor Contains the upload session ID and the offset. Must not be + * {@code null}. + * @param commit Contains the path and other optional modifiers for the + * commit. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishArg(@Nonnull UploadSessionCursor cursor, @Nonnull CommitInfo commit) { + this(cursor, commit, null); + } + + /** + * Contains the upload session ID and the offset. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UploadSessionCursor getCursor() { + return cursor; + } + + /** + * Contains the path and other optional modifiers for the commit. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public CommitInfo getCommit() { + return commit; + } + + /** + * A hash of the file content uploaded in this call. If provided and the + * uploaded content does not match this hash, an error will be returned. For + * more information see our Content + * hash page. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getContentHash() { + return contentHash; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor, + this.commit, + this.contentHash + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionFinishArg other = (UploadSessionFinishArg) obj; + return ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && ((this.commit == other.commit) || (this.commit.equals(other.commit))) + && ((this.contentHash == other.contentHash) || (this.contentHash != null && this.contentHash.equals(other.contentHash))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionFinishArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + UploadSessionCursor.Serializer.INSTANCE.serialize(value.cursor, g); + g.writeFieldName("commit"); + CommitInfo.Serializer.INSTANCE.serialize(value.commit, g); + if (value.contentHash != null) { + g.writeFieldName("content_hash"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.contentHash, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionFinishArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionFinishArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UploadSessionCursor f_cursor = null; + CommitInfo f_commit = null; + String f_contentHash = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = UploadSessionCursor.Serializer.INSTANCE.deserialize(p); + } + else if ("commit".equals(field)) { + f_commit = CommitInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("content_hash".equals(field)) { + f_contentHash = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_commit == null) { + throw new JsonParseException(p, "Required field \"commit\" missing."); + } + value = new UploadSessionFinishArg(f_cursor, f_commit, f_contentHash); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchArg.java new file mode 100644 index 000000000..7359c41cd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchArg.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class UploadSessionFinishBatchArg { + // struct files.UploadSessionFinishBatchArg (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Commit information for each file in the batch. Must + * contain at most 1000 items, not contain a {@code null} item, and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishBatchArg(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + if (entries.size() > 1000) { + throw new IllegalArgumentException("List 'entries' has more than 1000 items"); + } + for (UploadSessionFinishArg x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * Commit information for each file in the batch. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionFinishBatchArg other = (UploadSessionFinishBatchArg) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionFinishBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(UploadSessionFinishArg.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionFinishBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionFinishBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(UploadSessionFinishArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new UploadSessionFinishBatchArg(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus.java new file mode 100644 index 000000000..b472a2e9a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchJobStatus.java @@ -0,0 +1,279 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class UploadSessionFinishBatchJobStatus { + // union files.UploadSessionFinishBatchJobStatus (files.stone) + + /** + * Discriminating tag type for {@link UploadSessionFinishBatchJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} has + * finished. + */ + COMPLETE; // UploadSessionFinishBatchResult + } + + /** + * The asynchronous job is still in progress. + */ + public static final UploadSessionFinishBatchJobStatus IN_PROGRESS = new UploadSessionFinishBatchJobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private UploadSessionFinishBatchResult completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadSessionFinishBatchJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UploadSessionFinishBatchJobStatus withTag(Tag _tag) { + UploadSessionFinishBatchJobStatus result = new UploadSessionFinishBatchJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} has + * finished. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishBatchJobStatus withTagAndComplete(Tag _tag, UploadSessionFinishBatchResult completeValue) { + UploadSessionFinishBatchJobStatus result = new UploadSessionFinishBatchJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadSessionFinishBatchJobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code UploadSessionFinishBatchJobStatus} that has + * its tag set to {@link Tag#COMPLETE}. + * + *

The {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} has + * finished.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishBatchJobStatus} with its + * tag set to {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionFinishBatchJobStatus complete(UploadSessionFinishBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionFinishBatchJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The {@link DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} + * has finished. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link UploadSessionFinishBatchResult} value associated with + * this instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public UploadSessionFinishBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadSessionFinishBatchJobStatus) { + UploadSessionFinishBatchJobStatus other = (UploadSessionFinishBatchJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionFinishBatchJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + UploadSessionFinishBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public UploadSessionFinishBatchJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionFinishBatchJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = UploadSessionFinishBatchJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + UploadSessionFinishBatchResult fieldValue = null; + fieldValue = UploadSessionFinishBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = UploadSessionFinishBatchJobStatus.complete(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchLaunch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchLaunch.java new file mode 100644 index 000000000..c848bd395 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchLaunch.java @@ -0,0 +1,386 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result returned by {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} that may + * either launch an asynchronous job or complete synchronously. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UploadSessionFinishBatchLaunch { + // union files.UploadSessionFinishBatchLaunch (files.stone) + + /** + * Discriminating tag type for {@link UploadSessionFinishBatchLaunch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE, // UploadSessionFinishBatchResult + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UploadSessionFinishBatchLaunch OTHER = new UploadSessionFinishBatchLaunch().withTag(Tag.OTHER); + + private Tag _tag; + private String asyncJobIdValue; + private UploadSessionFinishBatchResult completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadSessionFinishBatchLaunch() { + } + + + /** + * Result returned by {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} that may + * either launch an asynchronous job or complete synchronously. + * + * @param _tag Discriminating tag for this instance. + */ + private UploadSessionFinishBatchLaunch withTag(Tag _tag) { + UploadSessionFinishBatchLaunch result = new UploadSessionFinishBatchLaunch(); + result._tag = _tag; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} that may + * either launch an asynchronous job or complete synchronously. + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishBatchLaunch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + UploadSessionFinishBatchLaunch result = new UploadSessionFinishBatchLaunch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * Result returned by {@link + * DbxUserFilesRequests#uploadSessionFinishBatch(java.util.List)} that may + * either launch an asynchronous job or complete synchronously. + * + * @param completeValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishBatchLaunch withTagAndComplete(Tag _tag, UploadSessionFinishBatchResult completeValue) { + UploadSessionFinishBatchLaunch result = new UploadSessionFinishBatchLaunch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadSessionFinishBatchLaunch}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code UploadSessionFinishBatchLaunch} that has + * its tag set to {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishBatchLaunch} with its tag + * set to {@link Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static UploadSessionFinishBatchLaunch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new UploadSessionFinishBatchLaunch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code UploadSessionFinishBatchLaunch} that has + * its tag set to {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishBatchLaunch} with its tag + * set to {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionFinishBatchLaunch complete(UploadSessionFinishBatchResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionFinishBatchLaunch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link UploadSessionFinishBatchResult} value associated with + * this instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public UploadSessionFinishBatchResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadSessionFinishBatchLaunch) { + UploadSessionFinishBatchLaunch other = (UploadSessionFinishBatchLaunch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionFinishBatchLaunch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + UploadSessionFinishBatchResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UploadSessionFinishBatchLaunch deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionFinishBatchLaunch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = UploadSessionFinishBatchLaunch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + UploadSessionFinishBatchResult fieldValue = null; + fieldValue = UploadSessionFinishBatchResult.Serializer.INSTANCE.deserialize(p, true); + value = UploadSessionFinishBatchLaunch.complete(fieldValue); + } + else { + value = UploadSessionFinishBatchLaunch.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchResult.java new file mode 100644 index 000000000..734218235 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchResult.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class UploadSessionFinishBatchResult { + // struct files.UploadSessionFinishBatchResult (files.stone) + + @Nonnull + protected final List entries; + + /** + * + * @param entries Each entry in {@link + * UploadSessionFinishBatchArg#getEntries} will appear at the same + * position inside {@link UploadSessionFinishBatchResult#getEntries}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionFinishBatchResult(@Nonnull List entries) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (UploadSessionFinishBatchResultEntry x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + } + + /** + * Each entry in {@link UploadSessionFinishBatchArg#getEntries} will appear + * at the same position inside {@link + * UploadSessionFinishBatchResult#getEntries}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionFinishBatchResult other = (UploadSessionFinishBatchResult) obj; + return (this.entries == other.entries) || (this.entries.equals(other.entries)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionFinishBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(UploadSessionFinishBatchResultEntry.Serializer.INSTANCE).serialize(value.entries, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionFinishBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionFinishBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(UploadSessionFinishBatchResultEntry.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new UploadSessionFinishBatchResult(f_entries); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry.java new file mode 100644 index 000000000..61fd35811 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishBatchResultEntry.java @@ -0,0 +1,317 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class UploadSessionFinishBatchResultEntry { + // union files.UploadSessionFinishBatchResultEntry (files.stone) + + /** + * Discriminating tag type for {@link UploadSessionFinishBatchResultEntry}. + */ + public enum Tag { + SUCCESS, // FileMetadata + FAILURE; // UploadSessionFinishError + } + + private Tag _tag; + private FileMetadata successValue; + private UploadSessionFinishError failureValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadSessionFinishBatchResultEntry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UploadSessionFinishBatchResultEntry withTag(Tag _tag) { + UploadSessionFinishBatchResultEntry result = new UploadSessionFinishBatchResultEntry(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishBatchResultEntry withTagAndSuccess(Tag _tag, FileMetadata successValue) { + UploadSessionFinishBatchResultEntry result = new UploadSessionFinishBatchResultEntry(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param failureValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishBatchResultEntry withTagAndFailure(Tag _tag, UploadSessionFinishError failureValue) { + UploadSessionFinishBatchResultEntry result = new UploadSessionFinishBatchResultEntry(); + result._tag = _tag; + result.failureValue = failureValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadSessionFinishBatchResultEntry}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code UploadSessionFinishBatchResultEntry} that + * has its tag set to {@link Tag#SUCCESS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishBatchResultEntry} with its + * tag set to {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionFinishBatchResultEntry success(FileMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionFinishBatchResultEntry().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * This instance must be tagged as {@link Tag#SUCCESS}. + * + * @return The {@link FileMetadata} value associated with this instance if + * {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public FileMetadata getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILURE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILURE}, + * {@code false} otherwise. + */ + public boolean isFailure() { + return this._tag == Tag.FAILURE; + } + + /** + * Returns an instance of {@code UploadSessionFinishBatchResultEntry} that + * has its tag set to {@link Tag#FAILURE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishBatchResultEntry} with its + * tag set to {@link Tag#FAILURE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionFinishBatchResultEntry failure(UploadSessionFinishError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionFinishBatchResultEntry().withTagAndFailure(Tag.FAILURE, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILURE}. + * + * @return The {@link UploadSessionFinishError} value associated with this + * instance if {@link #isFailure} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailure} is {@code false}. + */ + public UploadSessionFinishError getFailureValue() { + if (this._tag != Tag.FAILURE) { + throw new IllegalStateException("Invalid tag: required Tag.FAILURE, but was Tag." + this._tag.name()); + } + return failureValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.failureValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadSessionFinishBatchResultEntry) { + UploadSessionFinishBatchResultEntry other = (UploadSessionFinishBatchResultEntry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case FAILURE: + return (this.failureValue == other.failureValue) || (this.failureValue.equals(other.failureValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionFinishBatchResultEntry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + FileMetadata.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case FAILURE: { + g.writeStartObject(); + writeTag("failure", g); + g.writeFieldName("failure"); + UploadSessionFinishError.Serializer.INSTANCE.serialize(value.failureValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public UploadSessionFinishBatchResultEntry deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionFinishBatchResultEntry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + FileMetadata fieldValue = null; + fieldValue = FileMetadata.Serializer.INSTANCE.deserialize(p, true); + value = UploadSessionFinishBatchResultEntry.success(fieldValue); + } + else if ("failure".equals(tag)) { + UploadSessionFinishError fieldValue = null; + expectField("failure", p); + fieldValue = UploadSessionFinishError.Serializer.INSTANCE.deserialize(p); + value = UploadSessionFinishBatchResultEntry.failure(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishError.java new file mode 100644 index 000000000..3d8e79e16 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishError.java @@ -0,0 +1,674 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.fileproperties.InvalidPropertyGroupError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UploadSessionFinishError { + // union files.UploadSessionFinishError (files.stone) + + /** + * Discriminating tag type for {@link UploadSessionFinishError}. + */ + public enum Tag { + /** + * The session arguments are incorrect; the value explains the reason. + */ + LOOKUP_FAILED, // UploadSessionLookupError + /** + * Unable to save the uploaded contents to a file. Data has already been + * appended to the upload session. Please retry with empty data body and + * updated offset. + */ + PATH, // WriteError + /** + * The supplied property group is invalid. The file has uploaded without + * property groups. + */ + PROPERTIES_ERROR, // InvalidPropertyGroupError + /** + * The batch request commits files into too many different shared + * folders. Please limit your batch request to files contained in a + * single shared folder. + */ + TOO_MANY_SHARED_FOLDER_TARGETS, + /** + * There are too many write operations happening in the user's Dropbox. + * You should retry uploading this file. + */ + TOO_MANY_WRITE_OPERATIONS, + /** + * Uploading data not allowed when finishing concurrent upload session. + */ + CONCURRENT_SESSION_DATA_NOT_ALLOWED, + /** + * Concurrent upload sessions need to be closed before finishing. + */ + CONCURRENT_SESSION_NOT_CLOSED, + /** + * Not all pieces of data were uploaded before trying to finish the + * session. + */ + CONCURRENT_SESSION_MISSING_DATA, + /** + * The request payload must be at most 150 MB. + */ + PAYLOAD_TOO_LARGE, + /** + * The content received by the Dropbox server in this call does not + * match the provided content hash. + */ + CONTENT_HASH_MISMATCH, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The batch request commits files into too many different shared folders. + * Please limit your batch request to files contained in a single shared + * folder. + */ + public static final UploadSessionFinishError TOO_MANY_SHARED_FOLDER_TARGETS = new UploadSessionFinishError().withTag(Tag.TOO_MANY_SHARED_FOLDER_TARGETS); + /** + * There are too many write operations happening in the user's Dropbox. You + * should retry uploading this file. + */ + public static final UploadSessionFinishError TOO_MANY_WRITE_OPERATIONS = new UploadSessionFinishError().withTag(Tag.TOO_MANY_WRITE_OPERATIONS); + /** + * Uploading data not allowed when finishing concurrent upload session. + */ + public static final UploadSessionFinishError CONCURRENT_SESSION_DATA_NOT_ALLOWED = new UploadSessionFinishError().withTag(Tag.CONCURRENT_SESSION_DATA_NOT_ALLOWED); + /** + * Concurrent upload sessions need to be closed before finishing. + */ + public static final UploadSessionFinishError CONCURRENT_SESSION_NOT_CLOSED = new UploadSessionFinishError().withTag(Tag.CONCURRENT_SESSION_NOT_CLOSED); + /** + * Not all pieces of data were uploaded before trying to finish the session. + */ + public static final UploadSessionFinishError CONCURRENT_SESSION_MISSING_DATA = new UploadSessionFinishError().withTag(Tag.CONCURRENT_SESSION_MISSING_DATA); + /** + * The request payload must be at most 150 MB. + */ + public static final UploadSessionFinishError PAYLOAD_TOO_LARGE = new UploadSessionFinishError().withTag(Tag.PAYLOAD_TOO_LARGE); + /** + * The content received by the Dropbox server in this call does not match + * the provided content hash. + */ + public static final UploadSessionFinishError CONTENT_HASH_MISMATCH = new UploadSessionFinishError().withTag(Tag.CONTENT_HASH_MISMATCH); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UploadSessionFinishError OTHER = new UploadSessionFinishError().withTag(Tag.OTHER); + + private Tag _tag; + private UploadSessionLookupError lookupFailedValue; + private WriteError pathValue; + private InvalidPropertyGroupError propertiesErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadSessionFinishError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UploadSessionFinishError withTag(Tag _tag) { + UploadSessionFinishError result = new UploadSessionFinishError(); + result._tag = _tag; + return result; + } + + /** + * + * @param lookupFailedValue The session arguments are incorrect; the value + * explains the reason. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishError withTagAndLookupFailed(Tag _tag, UploadSessionLookupError lookupFailedValue) { + UploadSessionFinishError result = new UploadSessionFinishError(); + result._tag = _tag; + result.lookupFailedValue = lookupFailedValue; + return result; + } + + /** + * + * @param pathValue Unable to save the uploaded contents to a file. Data + * has already been appended to the upload session. Please retry with + * empty data body and updated offset. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishError withTagAndPath(Tag _tag, WriteError pathValue) { + UploadSessionFinishError result = new UploadSessionFinishError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param propertiesErrorValue The supplied property group is invalid. The + * file has uploaded without property groups. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionFinishError withTagAndPropertiesError(Tag _tag, InvalidPropertyGroupError propertiesErrorValue) { + UploadSessionFinishError result = new UploadSessionFinishError(); + result._tag = _tag; + result.propertiesErrorValue = propertiesErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadSessionFinishError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LOOKUP_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LOOKUP_FAILED}, {@code false} otherwise. + */ + public boolean isLookupFailed() { + return this._tag == Tag.LOOKUP_FAILED; + } + + /** + * Returns an instance of {@code UploadSessionFinishError} that has its tag + * set to {@link Tag#LOOKUP_FAILED}. + * + *

The session arguments are incorrect; the value explains the reason. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishError} with its tag set to + * {@link Tag#LOOKUP_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionFinishError lookupFailed(UploadSessionLookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionFinishError().withTagAndLookupFailed(Tag.LOOKUP_FAILED, value); + } + + /** + * The session arguments are incorrect; the value explains the reason. + * + *

This instance must be tagged as {@link Tag#LOOKUP_FAILED}.

+ * + * @return The {@link UploadSessionLookupError} value associated with this + * instance if {@link #isLookupFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isLookupFailed} is {@code + * false}. + */ + public UploadSessionLookupError getLookupFailedValue() { + if (this._tag != Tag.LOOKUP_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.LOOKUP_FAILED, but was Tag." + this._tag.name()); + } + return lookupFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code UploadSessionFinishError} that has its tag + * set to {@link Tag#PATH}. + * + *

Unable to save the uploaded contents to a file. Data has already been + * appended to the upload session. Please retry with empty data body and + * updated offset.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionFinishError path(WriteError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionFinishError().withTagAndPath(Tag.PATH, value); + } + + /** + * Unable to save the uploaded contents to a file. Data has already been + * appended to the upload session. Please retry with empty data body and + * updated offset. + * + *

This instance must be tagged as {@link Tag#PATH}.

+ * + * @return The {@link WriteError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public WriteError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PROPERTIES_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PROPERTIES_ERROR}, {@code false} otherwise. + */ + public boolean isPropertiesError() { + return this._tag == Tag.PROPERTIES_ERROR; + } + + /** + * Returns an instance of {@code UploadSessionFinishError} that has its tag + * set to {@link Tag#PROPERTIES_ERROR}. + * + *

The supplied property group is invalid. The file has uploaded without + * property groups.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionFinishError} with its tag set to + * {@link Tag#PROPERTIES_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionFinishError propertiesError(InvalidPropertyGroupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionFinishError().withTagAndPropertiesError(Tag.PROPERTIES_ERROR, value); + } + + /** + * The supplied property group is invalid. The file has uploaded without + * property groups. + * + *

This instance must be tagged as {@link Tag#PROPERTIES_ERROR}.

+ * + * @return The {@link InvalidPropertyGroupError} value associated with this + * instance if {@link #isPropertiesError} is {@code true}. + * + * @throws IllegalStateException If {@link #isPropertiesError} is {@code + * false}. + */ + public InvalidPropertyGroupError getPropertiesErrorValue() { + if (this._tag != Tag.PROPERTIES_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.PROPERTIES_ERROR, but was Tag." + this._tag.name()); + } + return propertiesErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_SHARED_FOLDER_TARGETS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_SHARED_FOLDER_TARGETS}, {@code false} otherwise. + */ + public boolean isTooManySharedFolderTargets() { + return this._tag == Tag.TOO_MANY_SHARED_FOLDER_TARGETS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + */ + public boolean isTooManyWriteOperations() { + return this._tag == Tag.TOO_MANY_WRITE_OPERATIONS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONCURRENT_SESSION_DATA_NOT_ALLOWED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONCURRENT_SESSION_DATA_NOT_ALLOWED}, {@code false} otherwise. + */ + public boolean isConcurrentSessionDataNotAllowed() { + return this._tag == Tag.CONCURRENT_SESSION_DATA_NOT_ALLOWED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONCURRENT_SESSION_NOT_CLOSED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONCURRENT_SESSION_NOT_CLOSED}, {@code false} otherwise. + */ + public boolean isConcurrentSessionNotClosed() { + return this._tag == Tag.CONCURRENT_SESSION_NOT_CLOSED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONCURRENT_SESSION_MISSING_DATA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONCURRENT_SESSION_MISSING_DATA}, {@code false} otherwise. + */ + public boolean isConcurrentSessionMissingData() { + return this._tag == Tag.CONCURRENT_SESSION_MISSING_DATA; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isPayloadTooLarge() { + return this._tag == Tag.PAYLOAD_TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTENT_HASH_MISMATCH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTENT_HASH_MISMATCH}, {@code false} otherwise. + */ + public boolean isContentHashMismatch() { + return this._tag == Tag.CONTENT_HASH_MISMATCH; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.lookupFailedValue, + this.pathValue, + this.propertiesErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadSessionFinishError) { + UploadSessionFinishError other = (UploadSessionFinishError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case LOOKUP_FAILED: + return (this.lookupFailedValue == other.lookupFailedValue) || (this.lookupFailedValue.equals(other.lookupFailedValue)); + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case PROPERTIES_ERROR: + return (this.propertiesErrorValue == other.propertiesErrorValue) || (this.propertiesErrorValue.equals(other.propertiesErrorValue)); + case TOO_MANY_SHARED_FOLDER_TARGETS: + return true; + case TOO_MANY_WRITE_OPERATIONS: + return true; + case CONCURRENT_SESSION_DATA_NOT_ALLOWED: + return true; + case CONCURRENT_SESSION_NOT_CLOSED: + return true; + case CONCURRENT_SESSION_MISSING_DATA: + return true; + case PAYLOAD_TOO_LARGE: + return true; + case CONTENT_HASH_MISMATCH: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionFinishError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case LOOKUP_FAILED: { + g.writeStartObject(); + writeTag("lookup_failed", g); + g.writeFieldName("lookup_failed"); + UploadSessionLookupError.Serializer.INSTANCE.serialize(value.lookupFailedValue, g); + g.writeEndObject(); + break; + } + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + WriteError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case PROPERTIES_ERROR: { + g.writeStartObject(); + writeTag("properties_error", g); + g.writeFieldName("properties_error"); + InvalidPropertyGroupError.Serializer.INSTANCE.serialize(value.propertiesErrorValue, g); + g.writeEndObject(); + break; + } + case TOO_MANY_SHARED_FOLDER_TARGETS: { + g.writeString("too_many_shared_folder_targets"); + break; + } + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + case CONCURRENT_SESSION_DATA_NOT_ALLOWED: { + g.writeString("concurrent_session_data_not_allowed"); + break; + } + case CONCURRENT_SESSION_NOT_CLOSED: { + g.writeString("concurrent_session_not_closed"); + break; + } + case CONCURRENT_SESSION_MISSING_DATA: { + g.writeString("concurrent_session_missing_data"); + break; + } + case PAYLOAD_TOO_LARGE: { + g.writeString("payload_too_large"); + break; + } + case CONTENT_HASH_MISMATCH: { + g.writeString("content_hash_mismatch"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UploadSessionFinishError deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionFinishError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("lookup_failed".equals(tag)) { + UploadSessionLookupError fieldValue = null; + expectField("lookup_failed", p); + fieldValue = UploadSessionLookupError.Serializer.INSTANCE.deserialize(p); + value = UploadSessionFinishError.lookupFailed(fieldValue); + } + else if ("path".equals(tag)) { + WriteError fieldValue = null; + expectField("path", p); + fieldValue = WriteError.Serializer.INSTANCE.deserialize(p); + value = UploadSessionFinishError.path(fieldValue); + } + else if ("properties_error".equals(tag)) { + InvalidPropertyGroupError fieldValue = null; + expectField("properties_error", p); + fieldValue = InvalidPropertyGroupError.Serializer.INSTANCE.deserialize(p); + value = UploadSessionFinishError.propertiesError(fieldValue); + } + else if ("too_many_shared_folder_targets".equals(tag)) { + value = UploadSessionFinishError.TOO_MANY_SHARED_FOLDER_TARGETS; + } + else if ("too_many_write_operations".equals(tag)) { + value = UploadSessionFinishError.TOO_MANY_WRITE_OPERATIONS; + } + else if ("concurrent_session_data_not_allowed".equals(tag)) { + value = UploadSessionFinishError.CONCURRENT_SESSION_DATA_NOT_ALLOWED; + } + else if ("concurrent_session_not_closed".equals(tag)) { + value = UploadSessionFinishError.CONCURRENT_SESSION_NOT_CLOSED; + } + else if ("concurrent_session_missing_data".equals(tag)) { + value = UploadSessionFinishError.CONCURRENT_SESSION_MISSING_DATA; + } + else if ("payload_too_large".equals(tag)) { + value = UploadSessionFinishError.PAYLOAD_TOO_LARGE; + } + else if ("content_hash_mismatch".equals(tag)) { + value = UploadSessionFinishError.CONTENT_HASH_MISMATCH; + } + else { + value = UploadSessionFinishError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishErrorException.java new file mode 100644 index 000000000..cd76ffa81 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UploadSessionFinishError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + *

+ */ +public class UploadSessionFinishErrorException extends DbxApiException { + // exception for routes: + // 2/files/upload_session/finish + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + */ + public final UploadSessionFinishError errorValue; + + public UploadSessionFinishErrorException(String routeName, String requestId, LocalizedText userMessage, UploadSessionFinishError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishUploader.java new file mode 100644 index 000000000..522955ed8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionFinishUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class UploadSessionFinishUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public UploadSessionFinishUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, FileMetadata.Serializer.INSTANCE, UploadSessionFinishError.Serializer.INSTANCE, userId); + } + + protected UploadSessionFinishErrorException newException(DbxWrappedException error) { + return new UploadSessionFinishErrorException("2/files/upload_session/finish", error.getRequestId(), error.getUserMessage(), (UploadSessionFinishError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionLookupError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionLookupError.java new file mode 100644 index 000000000..3d0ed41b8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionLookupError.java @@ -0,0 +1,501 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UploadSessionLookupError { + // union files.UploadSessionLookupError (files.stone) + + /** + * Discriminating tag type for {@link UploadSessionLookupError}. + */ + public enum Tag { + /** + * The upload session ID was not found or has expired. Upload sessions + * are valid for 7 days. + */ + NOT_FOUND, + /** + * The specified offset was incorrect. See the value for the correct + * offset. This error may occur when a previous request was received and + * processed successfully but the client did not receive the response, + * e.g. due to a network error. + */ + INCORRECT_OFFSET, // UploadSessionOffsetError + /** + * You are attempting to append data to an upload session that has + * already been closed (i.e. committed). + */ + CLOSED, + /** + * The session must be closed before calling + * upload_session/finish_batch. + */ + NOT_CLOSED, + /** + * You can not append to the upload session because the size of a file + * should not reach the max file size limit (i.e. 350GB). + */ + TOO_LARGE, + /** + * For concurrent upload sessions, offset needs to be multiple of + * 4194304 bytes. + */ + CONCURRENT_SESSION_INVALID_OFFSET, + /** + * For concurrent upload sessions, only chunks with size multiple of + * 4194304 bytes can be uploaded. + */ + CONCURRENT_SESSION_INVALID_DATA_SIZE, + /** + * The request payload must be at most 150 MB. + */ + PAYLOAD_TOO_LARGE, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The upload session ID was not found or has expired. Upload sessions are + * valid for 7 days. + */ + public static final UploadSessionLookupError NOT_FOUND = new UploadSessionLookupError().withTag(Tag.NOT_FOUND); + /** + * You are attempting to append data to an upload session that has already + * been closed (i.e. committed). + */ + public static final UploadSessionLookupError CLOSED = new UploadSessionLookupError().withTag(Tag.CLOSED); + /** + * The session must be closed before calling upload_session/finish_batch. + */ + public static final UploadSessionLookupError NOT_CLOSED = new UploadSessionLookupError().withTag(Tag.NOT_CLOSED); + /** + * You can not append to the upload session because the size of a file + * should not reach the max file size limit (i.e. 350GB). + */ + public static final UploadSessionLookupError TOO_LARGE = new UploadSessionLookupError().withTag(Tag.TOO_LARGE); + /** + * For concurrent upload sessions, offset needs to be multiple of 4194304 + * bytes. + */ + public static final UploadSessionLookupError CONCURRENT_SESSION_INVALID_OFFSET = new UploadSessionLookupError().withTag(Tag.CONCURRENT_SESSION_INVALID_OFFSET); + /** + * For concurrent upload sessions, only chunks with size multiple of 4194304 + * bytes can be uploaded. + */ + public static final UploadSessionLookupError CONCURRENT_SESSION_INVALID_DATA_SIZE = new UploadSessionLookupError().withTag(Tag.CONCURRENT_SESSION_INVALID_DATA_SIZE); + /** + * The request payload must be at most 150 MB. + */ + public static final UploadSessionLookupError PAYLOAD_TOO_LARGE = new UploadSessionLookupError().withTag(Tag.PAYLOAD_TOO_LARGE); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UploadSessionLookupError OTHER = new UploadSessionLookupError().withTag(Tag.OTHER); + + private Tag _tag; + private UploadSessionOffsetError incorrectOffsetValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadSessionLookupError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UploadSessionLookupError withTag(Tag _tag) { + UploadSessionLookupError result = new UploadSessionLookupError(); + result._tag = _tag; + return result; + } + + /** + * + * @param incorrectOffsetValue The specified offset was incorrect. See the + * value for the correct offset. This error may occur when a previous + * request was received and processed successfully but the client did + * not receive the response, e.g. due to a network error. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UploadSessionLookupError withTagAndIncorrectOffset(Tag _tag, UploadSessionOffsetError incorrectOffsetValue) { + UploadSessionLookupError result = new UploadSessionLookupError(); + result._tag = _tag; + result.incorrectOffsetValue = incorrectOffsetValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadSessionLookupError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INCORRECT_OFFSET}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INCORRECT_OFFSET}, {@code false} otherwise. + */ + public boolean isIncorrectOffset() { + return this._tag == Tag.INCORRECT_OFFSET; + } + + /** + * Returns an instance of {@code UploadSessionLookupError} that has its tag + * set to {@link Tag#INCORRECT_OFFSET}. + * + *

The specified offset was incorrect. See the value for the correct + * offset. This error may occur when a previous request was received and + * processed successfully but the client did not receive the response, e.g. + * due to a network error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadSessionLookupError} with its tag set to + * {@link Tag#INCORRECT_OFFSET}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UploadSessionLookupError incorrectOffset(UploadSessionOffsetError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UploadSessionLookupError().withTagAndIncorrectOffset(Tag.INCORRECT_OFFSET, value); + } + + /** + * The specified offset was incorrect. See the value for the correct offset. + * This error may occur when a previous request was received and processed + * successfully but the client did not receive the response, e.g. due to a + * network error. + * + *

This instance must be tagged as {@link Tag#INCORRECT_OFFSET}.

+ * + * @return The {@link UploadSessionOffsetError} value associated with this + * instance if {@link #isIncorrectOffset} is {@code true}. + * + * @throws IllegalStateException If {@link #isIncorrectOffset} is {@code + * false}. + */ + public UploadSessionOffsetError getIncorrectOffsetValue() { + if (this._tag != Tag.INCORRECT_OFFSET) { + throw new IllegalStateException("Invalid tag: required Tag.INCORRECT_OFFSET, but was Tag." + this._tag.name()); + } + return incorrectOffsetValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#CLOSED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#CLOSED}, + * {@code false} otherwise. + */ + public boolean isClosed() { + return this._tag == Tag.CLOSED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_CLOSED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_CLOSED}, {@code false} otherwise. + */ + public boolean isNotClosed() { + return this._tag == Tag.NOT_CLOSED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TOO_LARGE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TOO_LARGE}, + * {@code false} otherwise. + */ + public boolean isTooLarge() { + return this._tag == Tag.TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONCURRENT_SESSION_INVALID_OFFSET}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONCURRENT_SESSION_INVALID_OFFSET}, {@code false} otherwise. + */ + public boolean isConcurrentSessionInvalidOffset() { + return this._tag == Tag.CONCURRENT_SESSION_INVALID_OFFSET; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONCURRENT_SESSION_INVALID_DATA_SIZE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONCURRENT_SESSION_INVALID_DATA_SIZE}, {@code false} otherwise. + */ + public boolean isConcurrentSessionInvalidDataSize() { + return this._tag == Tag.CONCURRENT_SESSION_INVALID_DATA_SIZE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAYLOAD_TOO_LARGE}, {@code false} otherwise. + */ + public boolean isPayloadTooLarge() { + return this._tag == Tag.PAYLOAD_TOO_LARGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.incorrectOffsetValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadSessionLookupError) { + UploadSessionLookupError other = (UploadSessionLookupError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case NOT_FOUND: + return true; + case INCORRECT_OFFSET: + return (this.incorrectOffsetValue == other.incorrectOffsetValue) || (this.incorrectOffsetValue.equals(other.incorrectOffsetValue)); + case CLOSED: + return true; + case NOT_CLOSED: + return true; + case TOO_LARGE: + return true; + case CONCURRENT_SESSION_INVALID_OFFSET: + return true; + case CONCURRENT_SESSION_INVALID_DATA_SIZE: + return true; + case PAYLOAD_TOO_LARGE: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionLookupError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case NOT_FOUND: { + g.writeString("not_found"); + break; + } + case INCORRECT_OFFSET: { + g.writeStartObject(); + writeTag("incorrect_offset", g); + UploadSessionOffsetError.Serializer.INSTANCE.serialize(value.incorrectOffsetValue, g, true); + g.writeEndObject(); + break; + } + case CLOSED: { + g.writeString("closed"); + break; + } + case NOT_CLOSED: { + g.writeString("not_closed"); + break; + } + case TOO_LARGE: { + g.writeString("too_large"); + break; + } + case CONCURRENT_SESSION_INVALID_OFFSET: { + g.writeString("concurrent_session_invalid_offset"); + break; + } + case CONCURRENT_SESSION_INVALID_DATA_SIZE: { + g.writeString("concurrent_session_invalid_data_size"); + break; + } + case PAYLOAD_TOO_LARGE: { + g.writeString("payload_too_large"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UploadSessionLookupError deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionLookupError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("not_found".equals(tag)) { + value = UploadSessionLookupError.NOT_FOUND; + } + else if ("incorrect_offset".equals(tag)) { + UploadSessionOffsetError fieldValue = null; + fieldValue = UploadSessionOffsetError.Serializer.INSTANCE.deserialize(p, true); + value = UploadSessionLookupError.incorrectOffset(fieldValue); + } + else if ("closed".equals(tag)) { + value = UploadSessionLookupError.CLOSED; + } + else if ("not_closed".equals(tag)) { + value = UploadSessionLookupError.NOT_CLOSED; + } + else if ("too_large".equals(tag)) { + value = UploadSessionLookupError.TOO_LARGE; + } + else if ("concurrent_session_invalid_offset".equals(tag)) { + value = UploadSessionLookupError.CONCURRENT_SESSION_INVALID_OFFSET; + } + else if ("concurrent_session_invalid_data_size".equals(tag)) { + value = UploadSessionLookupError.CONCURRENT_SESSION_INVALID_DATA_SIZE; + } + else if ("payload_too_large".equals(tag)) { + value = UploadSessionLookupError.PAYLOAD_TOO_LARGE; + } + else { + value = UploadSessionLookupError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionOffsetError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionOffsetError.java new file mode 100644 index 000000000..4b0aac9db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionOffsetError.java @@ -0,0 +1,137 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class UploadSessionOffsetError { + // struct files.UploadSessionOffsetError (files.stone) + + protected final long correctOffset; + + /** + * + * @param correctOffset The offset up to which data has been collected. + */ + public UploadSessionOffsetError(long correctOffset) { + this.correctOffset = correctOffset; + } + + /** + * The offset up to which data has been collected. + * + * @return value for this field. + */ + public long getCorrectOffset() { + return correctOffset; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.correctOffset + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionOffsetError other = (UploadSessionOffsetError) obj; + return this.correctOffset == other.correctOffset; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionOffsetError value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("correct_offset"); + StoneSerializers.uInt64().serialize(value.correctOffset, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionOffsetError deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionOffsetError value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_correctOffset = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("correct_offset".equals(field)) { + f_correctOffset = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_correctOffset == null) { + throw new JsonParseException(p, "Required field \"correct_offset\" missing."); + } + value = new UploadSessionOffsetError(f_correctOffset); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartArg.java new file mode 100644 index 000000000..20fcc0195 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartArg.java @@ -0,0 +1,326 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class UploadSessionStartArg { + // struct files.UploadSessionStartArg (files.stone) + + protected final boolean close; + @Nullable + protected final UploadSessionType sessionType; + @Nullable + protected final String contentHash; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param close If true, the current session will be closed, at which point + * you won't be able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * anymore with the current session. + * @param sessionType Type of upload session you want to start. If not + * specified, default is {@link UploadSessionType#SEQUENTIAL}. + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartArg(boolean close, @Nullable UploadSessionType sessionType, @Nullable String contentHash) { + this.close = close; + this.sessionType = sessionType; + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public UploadSessionStartArg() { + this(false, null, null); + } + + /** + * If true, the current session will be closed, at which point you won't be + * able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} anymore + * with the current session. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getClose() { + return close; + } + + /** + * Type of upload session you want to start. If not specified, default is + * {@link UploadSessionType#SEQUENTIAL}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UploadSessionType getSessionType() { + return sessionType; + } + + /** + * A hash of the file content uploaded in this call. If provided and the + * uploaded content does not match this hash, an error will be returned. For + * more information see our Content + * hash page. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getContentHash() { + return contentHash; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link UploadSessionStartArg}. + */ + public static class Builder { + + protected boolean close; + protected UploadSessionType sessionType; + protected String contentHash; + + protected Builder() { + this.close = false; + this.sessionType = null; + this.contentHash = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param close If true, the current session will be closed, at which + * point you won't be able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * anymore with the current session. Defaults to {@code false} when + * set to {@code null}. + * + * @return this builder + */ + public Builder withClose(Boolean close) { + if (close != null) { + this.close = close; + } + else { + this.close = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param sessionType Type of upload session you want to start. If not + * specified, default is {@link UploadSessionType#SEQUENTIAL}. + * + * @return this builder + */ + public Builder withSessionType(UploadSessionType sessionType) { + this.sessionType = sessionType; + return this; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content uploaded in this call. + * If provided and the uploaded content does not match this hash, an + * error will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withContentHash(String contentHash) { + if (contentHash != null) { + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + } + this.contentHash = contentHash; + return this; + } + + /** + * Builds an instance of {@link UploadSessionStartArg} configured with + * this builder's values + * + * @return new instance of {@link UploadSessionStartArg} + */ + public UploadSessionStartArg build() { + return new UploadSessionStartArg(close, sessionType, contentHash); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.close, + this.sessionType, + this.contentHash + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionStartArg other = (UploadSessionStartArg) obj; + return (this.close == other.close) + && ((this.sessionType == other.sessionType) || (this.sessionType != null && this.sessionType.equals(other.sessionType))) + && ((this.contentHash == other.contentHash) || (this.contentHash != null && this.contentHash.equals(other.contentHash))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionStartArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("close"); + StoneSerializers.boolean_().serialize(value.close, g); + if (value.sessionType != null) { + g.writeFieldName("session_type"); + StoneSerializers.nullable(UploadSessionType.Serializer.INSTANCE).serialize(value.sessionType, g); + } + if (value.contentHash != null) { + g.writeFieldName("content_hash"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.contentHash, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionStartArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionStartArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_close = false; + UploadSessionType f_sessionType = null; + String f_contentHash = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("close".equals(field)) { + f_close = StoneSerializers.boolean_().deserialize(p); + } + else if ("session_type".equals(field)) { + f_sessionType = StoneSerializers.nullable(UploadSessionType.Serializer.INSTANCE).deserialize(p); + } + else if ("content_hash".equals(field)) { + f_contentHash = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new UploadSessionStartArg(f_close, f_sessionType, f_contentHash); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBatchArg.java new file mode 100644 index 000000000..23c4a2d5f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBatchArg.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class UploadSessionStartBatchArg { + // struct files.UploadSessionStartBatchArg (files.stone) + + @Nullable + protected final UploadSessionType sessionType; + protected final long numSessions; + + /** + * + * @param numSessions The number of upload sessions to start. Must be + * greater than or equal to 1 and be less than or equal to 1000. + * @param sessionType Type of upload session you want to start. If not + * specified, default is {@link UploadSessionType#SEQUENTIAL}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartBatchArg(long numSessions, @Nullable UploadSessionType sessionType) { + this.sessionType = sessionType; + if (numSessions < 1L) { + throw new IllegalArgumentException("Number 'numSessions' is smaller than 1L"); + } + if (numSessions > 1000L) { + throw new IllegalArgumentException("Number 'numSessions' is larger than 1000L"); + } + this.numSessions = numSessions; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param numSessions The number of upload sessions to start. Must be + * greater than or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartBatchArg(long numSessions) { + this(numSessions, null); + } + + /** + * The number of upload sessions to start. + * + * @return value for this field. + */ + public long getNumSessions() { + return numSessions; + } + + /** + * Type of upload session you want to start. If not specified, default is + * {@link UploadSessionType#SEQUENTIAL}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UploadSessionType getSessionType() { + return sessionType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionType, + this.numSessions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionStartBatchArg other = (UploadSessionStartBatchArg) obj; + return (this.numSessions == other.numSessions) + && ((this.sessionType == other.sessionType) || (this.sessionType != null && this.sessionType.equals(other.sessionType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionStartBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("num_sessions"); + StoneSerializers.uInt64().serialize(value.numSessions, g); + if (value.sessionType != null) { + g.writeFieldName("session_type"); + StoneSerializers.nullable(UploadSessionType.Serializer.INSTANCE).serialize(value.sessionType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionStartBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionStartBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_numSessions = null; + UploadSessionType f_sessionType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("num_sessions".equals(field)) { + f_numSessions = StoneSerializers.uInt64().deserialize(p); + } + else if ("session_type".equals(field)) { + f_sessionType = StoneSerializers.nullable(UploadSessionType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_numSessions == null) { + throw new JsonParseException(p, "Required field \"num_sessions\" missing."); + } + value = new UploadSessionStartBatchArg(f_numSessions, f_sessionType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBatchResult.java new file mode 100644 index 000000000..a14ea21eb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBatchResult.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class UploadSessionStartBatchResult { + // struct files.UploadSessionStartBatchResult (files.stone) + + @Nonnull + protected final List sessionIds; + + /** + * + * @param sessionIds A List of unique identifiers for the upload session. + * Pass each session_id to {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} and + * {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartBatchResult(@Nonnull List sessionIds) { + if (sessionIds == null) { + throw new IllegalArgumentException("Required value for 'sessionIds' is null"); + } + for (String x : sessionIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sessionIds' is null"); + } + } + this.sessionIds = sessionIds; + } + + /** + * A List of unique identifiers for the upload session. Pass each session_id + * to {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} and + * {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSessionIds() { + return sessionIds; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionIds + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionStartBatchResult other = (UploadSessionStartBatchResult) obj; + return (this.sessionIds == other.sessionIds) || (this.sessionIds.equals(other.sessionIds)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionStartBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.sessionIds, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionStartBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionStartBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_sessionIds = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_ids".equals(field)) { + f_sessionIds = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionIds == null) { + throw new JsonParseException(p, "Required field \"session_ids\" missing."); + } + value = new UploadSessionStartBatchResult(f_sessionIds); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBuilder.java new file mode 100644 index 000000000..1b33da550 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartBuilder.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxUploadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserFilesRequests#uploadSessionStartBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class UploadSessionStartBuilder extends DbxUploadStyleBuilder { + private final DbxUserFilesRequests _client; + private final UploadSessionStartArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue files + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + UploadSessionStartBuilder(DbxUserFilesRequests _client, UploadSessionStartArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param close If true, the current session will be closed, at which point + * you won't be able to call {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} + * anymore with the current session. Defaults to {@code false} when set + * to {@code null}. + * + * @return this builder + */ + public UploadSessionStartBuilder withClose(Boolean close) { + this._builder.withClose(close); + return this; + } + + /** + * Set value for optional field. + * + * @param sessionType Type of upload session you want to start. If not + * specified, default is {@link UploadSessionType#SEQUENTIAL}. + * + * @return this builder + */ + public UploadSessionStartBuilder withSessionType(UploadSessionType sessionType) { + this._builder.withSessionType(sessionType); + return this; + } + + /** + * Set value for optional field. + * + * @param contentHash A hash of the file content uploaded in this call. If + * provided and the uploaded content does not match this hash, an error + * will be returned. For more information see our Content + * hash page. Must have length of at least 64 and have length of at + * most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartBuilder withContentHash(String contentHash) { + this._builder.withContentHash(contentHash); + return this; + } + + @Override + public UploadSessionStartUploader start() throws UploadSessionStartErrorException, DbxException { + UploadSessionStartArg arg_ = this._builder.build(); + return _client.uploadSessionStart(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartError.java new file mode 100644 index 000000000..6cd8a4ef8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartError.java @@ -0,0 +1,118 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum UploadSessionStartError { + // union files.UploadSessionStartError (files.stone) + /** + * Uploading data not allowed when starting concurrent upload session. + */ + CONCURRENT_SESSION_DATA_NOT_ALLOWED, + /** + * Can not start a closed concurrent upload session. + */ + CONCURRENT_SESSION_CLOSE_NOT_ALLOWED, + /** + * The request payload must be at most 150 MB. + */ + PAYLOAD_TOO_LARGE, + /** + * The content received by the Dropbox server in this call does not match + * the provided content hash. + */ + CONTENT_HASH_MISMATCH, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionStartError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case CONCURRENT_SESSION_DATA_NOT_ALLOWED: { + g.writeString("concurrent_session_data_not_allowed"); + break; + } + case CONCURRENT_SESSION_CLOSE_NOT_ALLOWED: { + g.writeString("concurrent_session_close_not_allowed"); + break; + } + case PAYLOAD_TOO_LARGE: { + g.writeString("payload_too_large"); + break; + } + case CONTENT_HASH_MISMATCH: { + g.writeString("content_hash_mismatch"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UploadSessionStartError deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionStartError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("concurrent_session_data_not_allowed".equals(tag)) { + value = UploadSessionStartError.CONCURRENT_SESSION_DATA_NOT_ALLOWED; + } + else if ("concurrent_session_close_not_allowed".equals(tag)) { + value = UploadSessionStartError.CONCURRENT_SESSION_CLOSE_NOT_ALLOWED; + } + else if ("payload_too_large".equals(tag)) { + value = UploadSessionStartError.PAYLOAD_TOO_LARGE; + } + else if ("content_hash_mismatch".equals(tag)) { + value = UploadSessionStartError.CONTENT_HASH_MISMATCH; + } + else { + value = UploadSessionStartError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartErrorException.java new file mode 100644 index 000000000..82817d6ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UploadSessionStartError} error. + * + *

This exception is raised by {@link + * DbxUserFilesRequests#uploadSessionStart}.

+ */ +public class UploadSessionStartErrorException extends DbxApiException { + // exception for routes: + // 2/files/upload_session/start + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserFilesRequests#uploadSessionStart}. + */ + public final UploadSessionStartError errorValue; + + public UploadSessionStartErrorException(String routeName, String requestId, LocalizedText userMessage, UploadSessionStartError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartResult.java new file mode 100644 index 000000000..5bd8e12df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartResult.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UploadSessionStartResult { + // struct files.UploadSessionStartResult (files.stone) + + @Nonnull + protected final String sessionId; + + /** + * + * @param sessionId A unique identifier for the upload session. Pass this + * to {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} and + * {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadSessionStartResult(@Nonnull String sessionId) { + if (sessionId == null) { + throw new IllegalArgumentException("Required value for 'sessionId' is null"); + } + this.sessionId = sessionId; + } + + /** + * A unique identifier for the upload session. Pass this to {@link + * DbxUserFilesRequests#uploadSessionAppendV2(UploadSessionCursor)} and + * {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadSessionStartResult other = (UploadSessionStartResult) obj; + return (this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionStartResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadSessionStartResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadSessionStartResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + value = new UploadSessionStartResult(f_sessionId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartUploader.java new file mode 100644 index 000000000..79a99f912 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#uploadSessionStart}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class UploadSessionStartUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public UploadSessionStartUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, UploadSessionStartResult.Serializer.INSTANCE, UploadSessionStartError.Serializer.INSTANCE, userId); + } + + protected UploadSessionStartErrorException newException(DbxWrappedException error) { + return new UploadSessionStartErrorException("2/files/upload_session/start", error.getRequestId(), error.getUserMessage(), (UploadSessionStartError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionType.java new file mode 100644 index 000000000..e54035a2a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionType.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum UploadSessionType { + // union files.UploadSessionType (files.stone) + /** + * Pieces of data are uploaded sequentially one after another. This is the + * default behavior. + */ + SEQUENTIAL, + /** + * Pieces of data can be uploaded in concurrent RPCs in any order. + */ + CONCURRENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadSessionType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case SEQUENTIAL: { + g.writeString("sequential"); + break; + } + case CONCURRENT: { + g.writeString("concurrent"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UploadSessionType deserialize(JsonParser p) throws IOException, JsonParseException { + UploadSessionType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("sequential".equals(tag)) { + value = UploadSessionType.SEQUENTIAL; + } + else if ("concurrent".equals(tag)) { + value = UploadSessionType.CONCURRENT; + } + else { + value = UploadSessionType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadUploader.java new file mode 100644 index 000000000..a3ee854d3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserFilesRequests#upload(String)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class UploadUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public UploadUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, FileMetadata.Serializer.INSTANCE, UploadError.Serializer.INSTANCE, userId); + } + + protected UploadErrorException newException(DbxWrappedException error) { + return new UploadErrorException("2/files/upload", error.getRequestId(), error.getUserMessage(), (UploadError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadWriteFailed.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadWriteFailed.java new file mode 100644 index 000000000..b56a432f4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadWriteFailed.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UploadWriteFailed { + // struct files.UploadWriteFailed (files.stone) + + @Nonnull + protected final WriteError reason; + @Nonnull + protected final String uploadSessionId; + + /** + * + * @param reason The reason why the file couldn't be saved. Must not be + * {@code null}. + * @param uploadSessionId The upload session ID; data has already been + * uploaded to the corresponding upload session and this ID may be used + * to retry the commit with {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UploadWriteFailed(@Nonnull WriteError reason, @Nonnull String uploadSessionId) { + if (reason == null) { + throw new IllegalArgumentException("Required value for 'reason' is null"); + } + this.reason = reason; + if (uploadSessionId == null) { + throw new IllegalArgumentException("Required value for 'uploadSessionId' is null"); + } + this.uploadSessionId = uploadSessionId; + } + + /** + * The reason why the file couldn't be saved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public WriteError getReason() { + return reason; + } + + /** + * The upload session ID; data has already been uploaded to the + * corresponding upload session and this ID may be used to retry the commit + * with {@link + * DbxUserFilesRequests#uploadSessionFinish(UploadSessionCursor,CommitInfo,String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUploadSessionId() { + return uploadSessionId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.reason, + this.uploadSessionId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UploadWriteFailed other = (UploadWriteFailed) obj; + return ((this.reason == other.reason) || (this.reason.equals(other.reason))) + && ((this.uploadSessionId == other.uploadSessionId) || (this.uploadSessionId.equals(other.uploadSessionId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadWriteFailed value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("reason"); + WriteError.Serializer.INSTANCE.serialize(value.reason, g); + g.writeFieldName("upload_session_id"); + StoneSerializers.string().serialize(value.uploadSessionId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UploadWriteFailed deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UploadWriteFailed value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + WriteError f_reason = null; + String f_uploadSessionId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("reason".equals(field)) { + f_reason = WriteError.Serializer.INSTANCE.deserialize(p); + } + else if ("upload_session_id".equals(field)) { + f_uploadSessionId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_reason == null) { + throw new JsonParseException(p, "Required field \"reason\" missing."); + } + if (f_uploadSessionId == null) { + throw new JsonParseException(p, "Required field \"upload_session_id\" missing."); + } + value = new UploadWriteFailed(f_reason, f_uploadSessionId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UserGeneratedTag.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UserGeneratedTag.java new file mode 100644 index 000000000..b6865c83f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UserGeneratedTag.java @@ -0,0 +1,157 @@ +/* DO NOT EDIT */ +/* This file was generated from file_tagging.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class UserGeneratedTag { + // struct files.UserGeneratedTag (file_tagging.stone) + + @Nonnull + protected final String tagText; + + /** + * + * @param tagText Must have length of at least 1, have length of at most + * 32, match pattern "{@code [\\w]+}", and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserGeneratedTag(@Nonnull String tagText) { + if (tagText == null) { + throw new IllegalArgumentException("Required value for 'tagText' is null"); + } + if (tagText.length() < 1) { + throw new IllegalArgumentException("String 'tagText' is shorter than 1"); + } + if (tagText.length() > 32) { + throw new IllegalArgumentException("String 'tagText' is longer than 32"); + } + if (!Pattern.matches("[\\w]+", tagText)) { + throw new IllegalArgumentException("String 'tagText' does not match pattern"); + } + this.tagText = tagText; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTagText() { + return tagText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.tagText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserGeneratedTag other = (UserGeneratedTag) obj; + return (this.tagText == other.tagText) || (this.tagText.equals(other.tagText)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserGeneratedTag value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("tag_text"); + StoneSerializers.string().serialize(value.tagText, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserGeneratedTag deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserGeneratedTag value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_tagText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("tag_text".equals(field)) { + f_tagText = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_tagText == null) { + throw new JsonParseException(p, "Required field \"tag_text\" missing."); + } + value = new UserGeneratedTag(f_tagText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/VideoMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/VideoMetadata.java new file mode 100644 index 000000000..fe3b14ba3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/VideoMetadata.java @@ -0,0 +1,305 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata for a video. + */ +public class VideoMetadata extends MediaMetadata { + // struct files.VideoMetadata (files.stone) + + @Nullable + protected final Long duration; + + /** + * Metadata for a video. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param dimensions Dimension of the photo/video. + * @param location The GPS coordinate of the photo/video. + * @param timeTaken The timestamp when the photo/video is taken. + * @param duration The duration of the video in milliseconds. + */ + public VideoMetadata(@Nullable Dimensions dimensions, @Nullable GpsCoordinates location, @Nullable Date timeTaken, @Nullable Long duration) { + super(dimensions, location, timeTaken); + this.duration = duration; + } + + /** + * Metadata for a video. + * + *

The default values for unset fields will be used.

+ */ + public VideoMetadata() { + this(null, null, null, null); + } + + /** + * Dimension of the photo/video. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Dimensions getDimensions() { + return dimensions; + } + + /** + * The GPS coordinate of the photo/video. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GpsCoordinates getLocation() { + return location; + } + + /** + * The timestamp when the photo/video is taken. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getTimeTaken() { + return timeTaken; + } + + /** + * The duration of the video in milliseconds. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getDuration() { + return duration; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link VideoMetadata}. + */ + public static class Builder extends MediaMetadata.Builder { + + protected Long duration; + + protected Builder() { + this.duration = null; + } + + /** + * Set value for optional field. + * + * @param duration The duration of the video in milliseconds. + * + * @return this builder + */ + public Builder withDuration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Set value for optional field. + * + * @param dimensions Dimension of the photo/video. + * + * @return this builder + */ + public Builder withDimensions(Dimensions dimensions) { + super.withDimensions(dimensions); + return this; + } + + /** + * Set value for optional field. + * + * @param location The GPS coordinate of the photo/video. + * + * @return this builder + */ + public Builder withLocation(GpsCoordinates location) { + super.withLocation(location); + return this; + } + + /** + * Set value for optional field. + * + * @param timeTaken The timestamp when the photo/video is taken. + * + * @return this builder + */ + public Builder withTimeTaken(Date timeTaken) { + super.withTimeTaken(timeTaken); + return this; + } + + /** + * Builds an instance of {@link VideoMetadata} configured with this + * builder's values + * + * @return new instance of {@link VideoMetadata} + */ + public VideoMetadata build() { + return new VideoMetadata(dimensions, location, timeTaken, duration); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.duration + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + VideoMetadata other = (VideoMetadata) obj; + return ((this.dimensions == other.dimensions) || (this.dimensions != null && this.dimensions.equals(other.dimensions))) + && ((this.location == other.location) || (this.location != null && this.location.equals(other.location))) + && ((this.timeTaken == other.timeTaken) || (this.timeTaken != null && this.timeTaken.equals(other.timeTaken))) + && ((this.duration == other.duration) || (this.duration != null && this.duration.equals(other.duration))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(VideoMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("video", g); + if (value.dimensions != null) { + g.writeFieldName("dimensions"); + StoneSerializers.nullableStruct(Dimensions.Serializer.INSTANCE).serialize(value.dimensions, g); + } + if (value.location != null) { + g.writeFieldName("location"); + StoneSerializers.nullableStruct(GpsCoordinates.Serializer.INSTANCE).serialize(value.location, g); + } + if (value.timeTaken != null) { + g.writeFieldName("time_taken"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.timeTaken, g); + } + if (value.duration != null) { + g.writeFieldName("duration"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.duration, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public VideoMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + VideoMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("video".equals(tag)) { + tag = null; + } + } + if (tag == null) { + Dimensions f_dimensions = null; + GpsCoordinates f_location = null; + Date f_timeTaken = null; + Long f_duration = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("dimensions".equals(field)) { + f_dimensions = StoneSerializers.nullableStruct(Dimensions.Serializer.INSTANCE).deserialize(p); + } + else if ("location".equals(field)) { + f_location = StoneSerializers.nullableStruct(GpsCoordinates.Serializer.INSTANCE).deserialize(p); + } + else if ("time_taken".equals(field)) { + f_timeTaken = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("duration".equals(field)) { + f_duration = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new VideoMetadata(f_dimensions, f_location, f_timeTaken, f_duration); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteConflictError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteConflictError.java new file mode 100644 index 000000000..f4f0aecbb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteConflictError.java @@ -0,0 +1,107 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum WriteConflictError { + // union files.WriteConflictError (files.stone) + /** + * There's a file in the way. + */ + FILE, + /** + * There's a folder in the way. + */ + FOLDER, + /** + * There's a file at an ancestor path, so we couldn't create the required + * parent folders. + */ + FILE_ANCESTOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WriteConflictError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FILE: { + g.writeString("file"); + break; + } + case FOLDER: { + g.writeString("folder"); + break; + } + case FILE_ANCESTOR: { + g.writeString("file_ancestor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public WriteConflictError deserialize(JsonParser p) throws IOException, JsonParseException { + WriteConflictError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("file".equals(tag)) { + value = WriteConflictError.FILE; + } + else if ("folder".equals(tag)) { + value = WriteConflictError.FOLDER; + } + else if ("file_ancestor".equals(tag)) { + value = WriteConflictError.FILE_ANCESTOR; + } + else { + value = WriteConflictError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteError.java new file mode 100644 index 000000000..2f9183271 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteError.java @@ -0,0 +1,569 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class WriteError { + // union files.WriteError (files.stone) + + /** + * Discriminating tag type for {@link WriteError}. + */ + public enum Tag { + /** + * The given path does not satisfy the required path format. Please + * refer to the Path + * formats documentation for more information. + */ + MALFORMED_PATH, // String + /** + * Couldn't write to the target path because there was something in the + * way. + */ + CONFLICT, // WriteConflictError + /** + * The user doesn't have permissions to write to the target location. + */ + NO_WRITE_PERMISSION, + /** + * The user doesn't have enough available space (bytes) to write more + * data. + */ + INSUFFICIENT_SPACE, + /** + * Dropbox will not save the file or folder because of its name. + */ + DISALLOWED_NAME, + /** + * This endpoint cannot move or delete team folders. + */ + TEAM_FOLDER, + /** + * This file operation is not allowed at this path. + */ + OPERATION_SUPPRESSED, + /** + * There are too many write operations in user's Dropbox. Please retry + * this request. + */ + TOO_MANY_WRITE_OPERATIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The user doesn't have permissions to write to the target location. + */ + public static final WriteError NO_WRITE_PERMISSION = new WriteError().withTag(Tag.NO_WRITE_PERMISSION); + /** + * The user doesn't have enough available space (bytes) to write more data. + */ + public static final WriteError INSUFFICIENT_SPACE = new WriteError().withTag(Tag.INSUFFICIENT_SPACE); + /** + * Dropbox will not save the file or folder because of its name. + */ + public static final WriteError DISALLOWED_NAME = new WriteError().withTag(Tag.DISALLOWED_NAME); + /** + * This endpoint cannot move or delete team folders. + */ + public static final WriteError TEAM_FOLDER = new WriteError().withTag(Tag.TEAM_FOLDER); + /** + * This file operation is not allowed at this path. + */ + public static final WriteError OPERATION_SUPPRESSED = new WriteError().withTag(Tag.OPERATION_SUPPRESSED); + /** + * There are too many write operations in user's Dropbox. Please retry this + * request. + */ + public static final WriteError TOO_MANY_WRITE_OPERATIONS = new WriteError().withTag(Tag.TOO_MANY_WRITE_OPERATIONS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final WriteError OTHER = new WriteError().withTag(Tag.OTHER); + + private Tag _tag; + private String malformedPathValue; + private WriteConflictError conflictValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private WriteError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private WriteError withTag(Tag _tag) { + WriteError result = new WriteError(); + result._tag = _tag; + return result; + } + + /** + * + * @param malformedPathValue The given path does not satisfy the required + * path format. Please refer to the Path + * formats documentation for more information. + * @param _tag Discriminating tag for this instance. + */ + private WriteError withTagAndMalformedPath(Tag _tag, String malformedPathValue) { + WriteError result = new WriteError(); + result._tag = _tag; + result.malformedPathValue = malformedPathValue; + return result; + } + + /** + * + * @param conflictValue Couldn't write to the target path because there was + * something in the way. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private WriteError withTagAndConflict(Tag _tag, WriteConflictError conflictValue) { + WriteError result = new WriteError(); + result._tag = _tag; + result.conflictValue = conflictValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code WriteError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MALFORMED_PATH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MALFORMED_PATH}, {@code false} otherwise. + */ + public boolean isMalformedPath() { + return this._tag == Tag.MALFORMED_PATH; + } + + /** + * Returns an instance of {@code WriteError} that has its tag set to {@link + * Tag#MALFORMED_PATH}. + * + *

The given path does not satisfy the required path format. Please + * refer to the Path + * formats documentation for more information.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code WriteError} with its tag set to {@link + * Tag#MALFORMED_PATH}. + */ + public static WriteError malformedPath(String value) { + return new WriteError().withTagAndMalformedPath(Tag.MALFORMED_PATH, value); + } + + /** + * Returns an instance of {@code WriteError} that has its tag set to {@link + * Tag#MALFORMED_PATH}. + * + *

The given path does not satisfy the required path format. Please + * refer to the Path + * formats documentation for more information.

+ * + * @return Instance of {@code WriteError} with its tag set to {@link + * Tag#MALFORMED_PATH}. + */ + public static WriteError malformedPath() { + return malformedPath(null); + } + + /** + * The given path does not satisfy the required path format. Please refer to + * the Path + * formats documentation for more information. + * + *

This instance must be tagged as {@link Tag#MALFORMED_PATH}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isMalformedPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isMalformedPath} is {@code + * false}. + */ + public String getMalformedPathValue() { + if (this._tag != Tag.MALFORMED_PATH) { + throw new IllegalStateException("Invalid tag: required Tag.MALFORMED_PATH, but was Tag." + this._tag.name()); + } + return malformedPathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#CONFLICT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#CONFLICT}, + * {@code false} otherwise. + */ + public boolean isConflict() { + return this._tag == Tag.CONFLICT; + } + + /** + * Returns an instance of {@code WriteError} that has its tag set to {@link + * Tag#CONFLICT}. + * + *

Couldn't write to the target path because there was something in the + * way.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code WriteError} with its tag set to {@link + * Tag#CONFLICT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static WriteError conflict(WriteConflictError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new WriteError().withTagAndConflict(Tag.CONFLICT, value); + } + + /** + * Couldn't write to the target path because there was something in the way. + * + *

This instance must be tagged as {@link Tag#CONFLICT}.

+ * + * @return The {@link WriteConflictError} value associated with this + * instance if {@link #isConflict} is {@code true}. + * + * @throws IllegalStateException If {@link #isConflict} is {@code false}. + */ + public WriteConflictError getConflictValue() { + if (this._tag != Tag.CONFLICT) { + throw new IllegalStateException("Invalid tag: required Tag.CONFLICT, but was Tag." + this._tag.name()); + } + return conflictValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_WRITE_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_WRITE_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoWritePermission() { + return this._tag == Tag.NO_WRITE_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_SPACE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_SPACE}, {@code false} otherwise. + */ + public boolean isInsufficientSpace() { + return this._tag == Tag.INSUFFICIENT_SPACE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DISALLOWED_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DISALLOWED_NAME}, {@code false} otherwise. + */ + public boolean isDisallowedName() { + return this._tag == Tag.DISALLOWED_NAME; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isTeamFolder() { + return this._tag == Tag.TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OPERATION_SUPPRESSED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OPERATION_SUPPRESSED}, {@code false} otherwise. + */ + public boolean isOperationSuppressed() { + return this._tag == Tag.OPERATION_SUPPRESSED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_WRITE_OPERATIONS}, {@code false} otherwise. + */ + public boolean isTooManyWriteOperations() { + return this._tag == Tag.TOO_MANY_WRITE_OPERATIONS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.malformedPathValue, + this.conflictValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof WriteError) { + WriteError other = (WriteError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case MALFORMED_PATH: + return (this.malformedPathValue == other.malformedPathValue) || (this.malformedPathValue != null && this.malformedPathValue.equals(other.malformedPathValue)); + case CONFLICT: + return (this.conflictValue == other.conflictValue) || (this.conflictValue.equals(other.conflictValue)); + case NO_WRITE_PERMISSION: + return true; + case INSUFFICIENT_SPACE: + return true; + case DISALLOWED_NAME: + return true; + case TEAM_FOLDER: + return true; + case OPERATION_SUPPRESSED: + return true; + case TOO_MANY_WRITE_OPERATIONS: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WriteError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case MALFORMED_PATH: { + g.writeStartObject(); + writeTag("malformed_path", g); + g.writeFieldName("malformed_path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.malformedPathValue, g); + g.writeEndObject(); + break; + } + case CONFLICT: { + g.writeStartObject(); + writeTag("conflict", g); + g.writeFieldName("conflict"); + WriteConflictError.Serializer.INSTANCE.serialize(value.conflictValue, g); + g.writeEndObject(); + break; + } + case NO_WRITE_PERMISSION: { + g.writeString("no_write_permission"); + break; + } + case INSUFFICIENT_SPACE: { + g.writeString("insufficient_space"); + break; + } + case DISALLOWED_NAME: { + g.writeString("disallowed_name"); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + case OPERATION_SUPPRESSED: { + g.writeString("operation_suppressed"); + break; + } + case TOO_MANY_WRITE_OPERATIONS: { + g.writeString("too_many_write_operations"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public WriteError deserialize(JsonParser p) throws IOException, JsonParseException { + WriteError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("malformed_path".equals(tag)) { + String fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + expectField("malformed_path", p); + fieldValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + if (fieldValue == null) { + value = WriteError.malformedPath(); + } + else { + value = WriteError.malformedPath(fieldValue); + } + } + else if ("conflict".equals(tag)) { + WriteConflictError fieldValue = null; + expectField("conflict", p); + fieldValue = WriteConflictError.Serializer.INSTANCE.deserialize(p); + value = WriteError.conflict(fieldValue); + } + else if ("no_write_permission".equals(tag)) { + value = WriteError.NO_WRITE_PERMISSION; + } + else if ("insufficient_space".equals(tag)) { + value = WriteError.INSUFFICIENT_SPACE; + } + else if ("disallowed_name".equals(tag)) { + value = WriteError.DISALLOWED_NAME; + } + else if ("team_folder".equals(tag)) { + value = WriteError.TEAM_FOLDER; + } + else if ("operation_suppressed".equals(tag)) { + value = WriteError.OPERATION_SUPPRESSED; + } + else if ("too_many_write_operations".equals(tag)) { + value = WriteError.TOO_MANY_WRITE_OPERATIONS; + } + else { + value = WriteError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteMode.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteMode.java new file mode 100644 index 000000000..fda3a61ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/WriteMode.java @@ -0,0 +1,377 @@ +/* DO NOT EDIT */ +/* This file was generated from files.stone */ + +package com.dropbox.core.v2.files; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Your intent when writing a file to some path. This is used to determine what + * constitutes a conflict and what the autorename strategy is. In some + * situations, the conflict behavior is identical: (a) If the target path + * doesn't refer to anything, the file is always written; no conflict. (b) If + * the target path refers to a folder, it's always a conflict. (c) If the target + * path refers to a file with identical contents, nothing gets written; no + * conflict. The conflict checking differs in the case where there's a file at + * the target path with contents different from the contents you're trying to + * write. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class WriteMode { + // union files.WriteMode (files.stone) + + /** + * Discriminating tag type for {@link WriteMode}. + */ + public enum Tag { + /** + * Do not overwrite an existing file if there is a conflict. The + * autorename strategy is to append a number to the file name. For + * example, "document.txt" might become "document (2).txt". + */ + ADD, + /** + * Always overwrite the existing file. The autorename strategy is the + * same as it is for {@link WriteMode#ADD}. + */ + OVERWRITE, + /** + * Overwrite if the given "rev" matches the existing file's "rev". The + * supplied value should be the latest known "rev" of the file, for + * example, from {@link FileMetadata}, from when the file was last + * downloaded by the app. This will cause the file on the Dropbox + * servers to be overwritten if the given "rev" matches the existing + * file's current "rev" on the Dropbox servers. The autorename strategy + * is to append the string "conflicted copy" to the file name. For + * example, "document.txt" might become "document (conflicted copy).txt" + * or "document (Panda's conflicted copy).txt". + */ + UPDATE; // String + } + + /** + * Do not overwrite an existing file if there is a conflict. The autorename + * strategy is to append a number to the file name. For example, + * "document.txt" might become "document (2).txt". + */ + public static final WriteMode ADD = new WriteMode().withTag(Tag.ADD); + /** + * Always overwrite the existing file. The autorename strategy is the same + * as it is for {@link WriteMode#ADD}. + */ + public static final WriteMode OVERWRITE = new WriteMode().withTag(Tag.OVERWRITE); + + private Tag _tag; + private String updateValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private WriteMode() { + } + + + /** + * Your intent when writing a file to some path. This is used to determine + * what constitutes a conflict and what the autorename strategy is. In some + * situations, the conflict behavior is identical: (a) If the target path + * doesn't refer to anything, the file is always written; no conflict. (b) + * If the target path refers to a folder, it's always a conflict. (c) If the + * target path refers to a file with identical contents, nothing gets + * written; no conflict. The conflict checking differs in the case where + * there's a file at the target path with contents different from the + * contents you're trying to write. + * + * @param _tag Discriminating tag for this instance. + */ + private WriteMode withTag(Tag _tag) { + WriteMode result = new WriteMode(); + result._tag = _tag; + return result; + } + + /** + * Your intent when writing a file to some path. This is used to determine + * what constitutes a conflict and what the autorename strategy is. In some + * situations, the conflict behavior is identical: (a) If the target path + * doesn't refer to anything, the file is always written; no conflict. (b) + * If the target path refers to a folder, it's always a conflict. (c) If the + * target path refers to a file with identical contents, nothing gets + * written; no conflict. The conflict checking differs in the case where + * there's a file at the target path with contents different from the + * contents you're trying to write. + * + * @param updateValue Overwrite if the given "rev" matches the existing + * file's "rev". The supplied value should be the latest known "rev" of + * the file, for example, from {@link FileMetadata}, from when the file + * was last downloaded by the app. This will cause the file on the + * Dropbox servers to be overwritten if the given "rev" matches the + * existing file's current "rev" on the Dropbox servers. The autorename + * strategy is to append the string "conflicted copy" to the file name. + * For example, "document.txt" might become "document (conflicted + * copy).txt" or "document (Panda's conflicted copy).txt". Must have + * length of at least 9, match pattern "{@code [0-9a-f]+}", and not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private WriteMode withTagAndUpdate(Tag _tag, String updateValue) { + WriteMode result = new WriteMode(); + result._tag = _tag; + result.updateValue = updateValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code WriteMode}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ADD}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ADD}, + * {@code false} otherwise. + */ + public boolean isAdd() { + return this._tag == Tag.ADD; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OVERWRITE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OVERWRITE}, + * {@code false} otherwise. + */ + public boolean isOverwrite() { + return this._tag == Tag.OVERWRITE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#UPDATE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#UPDATE}, + * {@code false} otherwise. + */ + public boolean isUpdate() { + return this._tag == Tag.UPDATE; + } + + /** + * Returns an instance of {@code WriteMode} that has its tag set to {@link + * Tag#UPDATE}. + * + *

Overwrite if the given "rev" matches the existing file's "rev". The + * supplied value should be the latest known "rev" of the file, for example, + * from {@link FileMetadata}, from when the file was last downloaded by the + * app. This will cause the file on the Dropbox servers to be overwritten if + * the given "rev" matches the existing file's current "rev" on the Dropbox + * servers. The autorename strategy is to append the string "conflicted + * copy" to the file name. For example, "document.txt" might become + * "document (conflicted copy).txt" or "document (Panda's conflicted + * copy).txt".

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code WriteMode} with its tag set to {@link + * Tag#UPDATE}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 9, + * does not match pattern "{@code [0-9a-f]+}", or is {@code null}. + */ + public static WriteMode update(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 9) { + throw new IllegalArgumentException("String is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new WriteMode().withTagAndUpdate(Tag.UPDATE, value); + } + + /** + * Overwrite if the given "rev" matches the existing file's "rev". The + * supplied value should be the latest known "rev" of the file, for example, + * from {@link FileMetadata}, from when the file was last downloaded by the + * app. This will cause the file on the Dropbox servers to be overwritten if + * the given "rev" matches the existing file's current "rev" on the Dropbox + * servers. The autorename strategy is to append the string "conflicted + * copy" to the file name. For example, "document.txt" might become + * "document (conflicted copy).txt" or "document (Panda's conflicted + * copy).txt". + * + *

This instance must be tagged as {@link Tag#UPDATE}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUpdate} is {@code true}. + * + * @throws IllegalStateException If {@link #isUpdate} is {@code false}. + */ + public String getUpdateValue() { + if (this._tag != Tag.UPDATE) { + throw new IllegalStateException("Invalid tag: required Tag.UPDATE, but was Tag." + this._tag.name()); + } + return updateValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.updateValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof WriteMode) { + WriteMode other = (WriteMode) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ADD: + return true; + case OVERWRITE: + return true; + case UPDATE: + return (this.updateValue == other.updateValue) || (this.updateValue.equals(other.updateValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WriteMode value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ADD: { + g.writeString("add"); + break; + } + case OVERWRITE: { + g.writeString("overwrite"); + break; + } + case UPDATE: { + g.writeStartObject(); + writeTag("update", g); + g.writeFieldName("update"); + StoneSerializers.string().serialize(value.updateValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public WriteMode deserialize(JsonParser p) throws IOException, JsonParseException { + WriteMode value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("add".equals(tag)) { + value = WriteMode.ADD; + } + else if ("overwrite".equals(tag)) { + value = WriteMode.OVERWRITE; + } + else if ("update".equals(tag)) { + String fieldValue = null; + expectField("update", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = WriteMode.update(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/package-info.java new file mode 100644 index 000000000..e8d686603 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/package-info.java @@ -0,0 +1,12 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * This namespace contains endpoints and data types for basic file operations. + * + *

See {@link com.dropbox.core.v2.files.DbxAppFilesRequests}, {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests} for a list of possible + * requests for this namespace.

+ */ +package com.dropbox.core.v2.files; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/DbxUserOpenidRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/DbxUserOpenidRequests.java new file mode 100644 index 000000000..e2d189134 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/DbxUserOpenidRequests.java @@ -0,0 +1,61 @@ +/* DO NOT EDIT */ +/* This file was generated from openid_openid_types.stone, openid_openid.stone */ + +package com.dropbox.core.v2.openid; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "openid". + */ +public class DbxUserOpenidRequests { + // namespace openid (openid_openid_types.stone, openid_openid.stone) + + private final DbxRawClientV2 client; + + public DbxUserOpenidRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/openid/userinfo + // + + /** + * This route is used for refreshing the info that is found in the id_token + * during the OIDC flow. This route doesn't require any arguments and will + * use the scopes approved for the given access token. + * + * @param arg No Parameters + */ + UserInfoResult userinfo(UserInfoArgs arg) throws UserInfoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/openid/userinfo", + arg, + false, + UserInfoArgs.Serializer.INSTANCE, + UserInfoResult.Serializer.INSTANCE, + UserInfoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UserInfoErrorException("2/openid/userinfo", ex.getRequestId(), ex.getUserMessage(), (UserInfoError) ex.getErrorValue()); + } + } + + /** + * This route is used for refreshing the info that is found in the id_token + * during the OIDC flow. This route doesn't require any arguments and will + * use the scopes approved for the given access token. + */ + public UserInfoResult userinfo() throws UserInfoErrorException, DbxException { + UserInfoArgs _arg = new UserInfoArgs(); + return userinfo(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/OpenIdError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/OpenIdError.java new file mode 100644 index 000000000..a83e2cf8a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/OpenIdError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from openid_openid_types.stone */ + +package com.dropbox.core.v2.openid; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum OpenIdError { + // union openid.OpenIdError (openid_openid_types.stone) + /** + * Missing openid claims for the associated access token. + */ + INCORRECT_OPENID_SCOPES, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OpenIdError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INCORRECT_OPENID_SCOPES: { + g.writeString("incorrect_openid_scopes"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public OpenIdError deserialize(JsonParser p) throws IOException, JsonParseException { + OpenIdError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("incorrect_openid_scopes".equals(tag)) { + value = OpenIdError.INCORRECT_OPENID_SCOPES; + } + else { + value = OpenIdError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoArgs.java new file mode 100644 index 000000000..c85fdbb7c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoArgs.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from openid_openid_types.stone */ + +package com.dropbox.core.v2.openid; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * No Parameters + */ +class UserInfoArgs { + // struct openid.UserInfoArgs (openid_openid_types.stone) + + + /** + * No Parameters + */ + public UserInfoArgs() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserInfoArgs other = (UserInfoArgs) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserInfoArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserInfoArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserInfoArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new UserInfoArgs(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoError.java new file mode 100644 index 000000000..a342a25ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoError.java @@ -0,0 +1,278 @@ +/* DO NOT EDIT */ +/* This file was generated from openid_openid_types.stone */ + +package com.dropbox.core.v2.openid; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UserInfoError { + // union openid.UserInfoError (openid_openid_types.stone) + + /** + * Discriminating tag type for {@link UserInfoError}. + */ + public enum Tag { + OPENID_ERROR, // OpenIdError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UserInfoError OTHER = new UserInfoError().withTag(Tag.OTHER); + + private Tag _tag; + private OpenIdError openidErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UserInfoError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UserInfoError withTag(Tag _tag) { + UserInfoError result = new UserInfoError(); + result._tag = _tag; + return result; + } + + /** + * + * @param openidErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserInfoError withTagAndOpenidError(Tag _tag, OpenIdError openidErrorValue) { + UserInfoError result = new UserInfoError(); + result._tag = _tag; + result.openidErrorValue = openidErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UserInfoError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OPENID_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OPENID_ERROR}, {@code false} otherwise. + */ + public boolean isOpenidError() { + return this._tag == Tag.OPENID_ERROR; + } + + /** + * Returns an instance of {@code UserInfoError} that has its tag set to + * {@link Tag#OPENID_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserInfoError} with its tag set to {@link + * Tag#OPENID_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserInfoError openidError(OpenIdError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserInfoError().withTagAndOpenidError(Tag.OPENID_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#OPENID_ERROR}. + * + * @return The {@link OpenIdError} value associated with this instance if + * {@link #isOpenidError} is {@code true}. + * + * @throws IllegalStateException If {@link #isOpenidError} is {@code + * false}. + */ + public OpenIdError getOpenidErrorValue() { + if (this._tag != Tag.OPENID_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.OPENID_ERROR, but was Tag." + this._tag.name()); + } + return openidErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.openidErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UserInfoError) { + UserInfoError other = (UserInfoError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case OPENID_ERROR: + return (this.openidErrorValue == other.openidErrorValue) || (this.openidErrorValue.equals(other.openidErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserInfoError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case OPENID_ERROR: { + g.writeStartObject(); + writeTag("openid_error", g); + g.writeFieldName("openid_error"); + OpenIdError.Serializer.INSTANCE.serialize(value.openidErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserInfoError deserialize(JsonParser p) throws IOException, JsonParseException { + UserInfoError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("openid_error".equals(tag)) { + OpenIdError fieldValue = null; + expectField("openid_error", p); + fieldValue = OpenIdError.Serializer.INSTANCE.deserialize(p); + value = UserInfoError.openidError(fieldValue); + } + else { + value = UserInfoError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoErrorException.java new file mode 100644 index 000000000..750486759 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoErrorException.java @@ -0,0 +1,32 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.openid; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link UserInfoError} error. + * + *

This exception is raised by {@link DbxUserOpenidRequests#userinfo}.

+ */ +public class UserInfoErrorException extends DbxApiException { + // exception for routes: + // 2/openid/userinfo + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserOpenidRequests#userinfo}. + */ + public final UserInfoError errorValue; + + public UserInfoErrorException(String routeName, String requestId, LocalizedText userMessage, UserInfoError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoResult.java new file mode 100644 index 000000000..f9e44f9ea --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/UserInfoResult.java @@ -0,0 +1,423 @@ +/* DO NOT EDIT */ +/* This file was generated from openid_openid_types.stone */ + +package com.dropbox.core.v2.openid; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class UserInfoResult { + // struct openid.UserInfoResult (openid_openid_types.stone) + + @Nullable + protected final String familyName; + @Nullable + protected final String givenName; + @Nullable + protected final String email; + @Nullable + protected final Boolean emailVerified; + @Nonnull + protected final String iss; + @Nonnull + protected final String sub; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param familyName Last name of user. + * @param givenName First name of user. + * @param email Email address of user. + * @param emailVerified If user is email verified. + * @param iss Issuer of token (in this case Dropbox). Must not be {@code + * null}. + * @param sub An identifier for the user. This is the Dropbox account_id, a + * string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserInfoResult(@Nullable String familyName, @Nullable String givenName, @Nullable String email, @Nullable Boolean emailVerified, @Nonnull String iss, @Nonnull String sub) { + this.familyName = familyName; + this.givenName = givenName; + this.email = email; + this.emailVerified = emailVerified; + if (iss == null) { + throw new IllegalArgumentException("Required value for 'iss' is null"); + } + this.iss = iss; + if (sub == null) { + throw new IllegalArgumentException("Required value for 'sub' is null"); + } + this.sub = sub; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public UserInfoResult() { + this(null, null, null, null, "", ""); + } + + /** + * Last name of user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFamilyName() { + return familyName; + } + + /** + * First name of user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getGivenName() { + return givenName; + } + + /** + * Email address of user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getEmail() { + return email; + } + + /** + * If user is email verified. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getEmailVerified() { + return emailVerified; + } + + /** + * Issuer of token (in this case Dropbox). + * + * @return value for this field, or {@code null} if not present. Defaults to + * "". + */ + @Nonnull + public String getIss() { + return iss; + } + + /** + * An identifier for the user. This is the Dropbox account_id, a string + * value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. + * + * @return value for this field, or {@code null} if not present. Defaults to + * "". + */ + @Nonnull + public String getSub() { + return sub; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link UserInfoResult}. + */ + public static class Builder { + + protected String familyName; + protected String givenName; + protected String email; + protected Boolean emailVerified; + protected String iss; + protected String sub; + + protected Builder() { + this.familyName = null; + this.givenName = null; + this.email = null; + this.emailVerified = null; + this.iss = ""; + this.sub = ""; + } + + /** + * Set value for optional field. + * + * @param familyName Last name of user. + * + * @return this builder + */ + public Builder withFamilyName(String familyName) { + this.familyName = familyName; + return this; + } + + /** + * Set value for optional field. + * + * @param givenName First name of user. + * + * @return this builder + */ + public Builder withGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** + * Set value for optional field. + * + * @param email Email address of user. + * + * @return this builder + */ + public Builder withEmail(String email) { + this.email = email; + return this; + } + + /** + * Set value for optional field. + * + * @param emailVerified If user is email verified. + * + * @return this builder + */ + public Builder withEmailVerified(Boolean emailVerified) { + this.emailVerified = emailVerified; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code ""}. + *

+ * + * @param iss Issuer of token (in this case Dropbox). Must not be + * {@code null}. Defaults to {@code ""} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withIss(String iss) { + if (iss != null) { + this.iss = iss; + } + else { + this.iss = ""; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code ""}. + *

+ * + * @param sub An identifier for the user. This is the Dropbox + * account_id, a string value such as + * dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. Must not be {@code + * null}. Defaults to {@code ""} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSub(String sub) { + if (sub != null) { + this.sub = sub; + } + else { + this.sub = ""; + } + return this; + } + + /** + * Builds an instance of {@link UserInfoResult} configured with this + * builder's values + * + * @return new instance of {@link UserInfoResult} + */ + public UserInfoResult build() { + return new UserInfoResult(familyName, givenName, email, emailVerified, iss, sub); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.familyName, + this.givenName, + this.email, + this.emailVerified, + this.iss, + this.sub + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserInfoResult other = (UserInfoResult) obj; + return ((this.familyName == other.familyName) || (this.familyName != null && this.familyName.equals(other.familyName))) + && ((this.givenName == other.givenName) || (this.givenName != null && this.givenName.equals(other.givenName))) + && ((this.email == other.email) || (this.email != null && this.email.equals(other.email))) + && ((this.emailVerified == other.emailVerified) || (this.emailVerified != null && this.emailVerified.equals(other.emailVerified))) + && ((this.iss == other.iss) || (this.iss.equals(other.iss))) + && ((this.sub == other.sub) || (this.sub.equals(other.sub))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserInfoResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.familyName != null) { + g.writeFieldName("family_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.familyName, g); + } + if (value.givenName != null) { + g.writeFieldName("given_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.givenName, g); + } + if (value.email != null) { + g.writeFieldName("email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.email, g); + } + if (value.emailVerified != null) { + g.writeFieldName("email_verified"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.emailVerified, g); + } + g.writeFieldName("iss"); + StoneSerializers.string().serialize(value.iss, g); + g.writeFieldName("sub"); + StoneSerializers.string().serialize(value.sub, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserInfoResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserInfoResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_familyName = null; + String f_givenName = null; + String f_email = null; + Boolean f_emailVerified = null; + String f_iss = ""; + String f_sub = ""; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("family_name".equals(field)) { + f_familyName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("given_name".equals(field)) { + f_givenName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("email_verified".equals(field)) { + f_emailVerified = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("iss".equals(field)) { + f_iss = StoneSerializers.string().deserialize(p); + } + else if ("sub".equals(field)) { + f_sub = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + value = new UserInfoResult(f_familyName, f_givenName, f_email, f_emailVerified, f_iss, f_sub); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/package-info.java new file mode 100644 index 000000000..1dd700161 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/openid/package-info.java @@ -0,0 +1,9 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.v2.openid.DbxUserOpenidRequests} for a list of + * possible requests for this namespace. + */ +package com.dropbox.core.v2.openid; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddMember.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddMember.java new file mode 100644 index 000000000..f5930c770 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddMember.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.MemberSelector; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AddMember { + // struct paper.AddMember (paper.stone) + + @Nonnull + protected final PaperDocPermissionLevel permissionLevel; + @Nonnull + protected final MemberSelector member; + + /** + * + * @param member User which should be added to the Paper doc. Specify only + * email address or Dropbox account ID. Must not be {@code null}. + * @param permissionLevel Permission for the user. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddMember(@Nonnull MemberSelector member, @Nonnull PaperDocPermissionLevel permissionLevel) { + if (permissionLevel == null) { + throw new IllegalArgumentException("Required value for 'permissionLevel' is null"); + } + this.permissionLevel = permissionLevel; + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param member User which should be added to the Paper doc. Specify only + * email address or Dropbox account ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddMember(@Nonnull MemberSelector member) { + this(member, PaperDocPermissionLevel.EDIT); + } + + /** + * User which should be added to the Paper doc. Specify only email address + * or Dropbox account ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + /** + * Permission for the user. + * + * @return value for this field, or {@code null} if not present. Defaults to + * PaperDocPermissionLevel.EDIT. + */ + @Nonnull + public PaperDocPermissionLevel getPermissionLevel() { + return permissionLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.permissionLevel, + this.member + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddMember other = (AddMember) obj; + return ((this.member == other.member) || (this.member.equals(other.member))) + && ((this.permissionLevel == other.permissionLevel) || (this.permissionLevel.equals(other.permissionLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddMember value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + g.writeFieldName("permission_level"); + PaperDocPermissionLevel.Serializer.INSTANCE.serialize(value.permissionLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddMember deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddMember value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberSelector f_member = null; + PaperDocPermissionLevel f_permissionLevel = PaperDocPermissionLevel.EDIT; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("permission_level".equals(field)) { + f_permissionLevel = PaperDocPermissionLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + value = new AddMember(f_member, f_permissionLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUser.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUser.java new file mode 100644 index 000000000..1e45f563f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUser.java @@ -0,0 +1,346 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class AddPaperDocUser extends RefPaperDoc { + // struct paper.AddPaperDocUser (paper.stone) + + @Nonnull + protected final List members; + @Nullable + protected final String customMessage; + protected final boolean quiet; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param members User which should be added to the Paper doc. Specify only + * email address or Dropbox account ID. Must contain at most 20 items, + * not contain a {@code null} item, and not be {@code null}. + * @param customMessage A personal message that will be emailed to each + * successfully added member. + * @param quiet Clients should set this to true if no email message shall + * be sent to added users. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddPaperDocUser(@Nonnull String docId, @Nonnull List members, @Nullable String customMessage, boolean quiet) { + super(docId); + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + if (members.size() > 20) { + throw new IllegalArgumentException("List 'members' has more than 20 items"); + } + for (AddMember x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.customMessage = customMessage; + this.quiet = quiet; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param members User which should be added to the Paper doc. Specify only + * email address or Dropbox account ID. Must contain at most 20 items, + * not contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddPaperDocUser(@Nonnull String docId, @Nonnull List members) { + this(docId, members, null, false); + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * User which should be added to the Paper doc. Specify only email address + * or Dropbox account ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * A personal message that will be emailed to each successfully added + * member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCustomMessage() { + return customMessage; + } + + /** + * Clients should set this to true if no email message shall be sent to + * added users. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getQuiet() { + return quiet; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param members User which should be added to the Paper doc. Specify only + * email address or Dropbox account ID. Must contain at most 20 items, + * not contain a {@code null} item, and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String docId, List members) { + return new Builder(docId, members); + } + + /** + * Builder for {@link AddPaperDocUser}. + */ + public static class Builder { + protected final String docId; + protected final List members; + + protected String customMessage; + protected boolean quiet; + + protected Builder(String docId, List members) { + if (docId == null) { + throw new IllegalArgumentException("Required value for 'docId' is null"); + } + this.docId = docId; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + if (members.size() > 20) { + throw new IllegalArgumentException("List 'members' has more than 20 items"); + } + for (AddMember x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.customMessage = null; + this.quiet = false; + } + + /** + * Set value for optional field. + * + * @param customMessage A personal message that will be emailed to each + * successfully added member. + * + * @return this builder + */ + public Builder withCustomMessage(String customMessage) { + this.customMessage = customMessage; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param quiet Clients should set this to true if no email message + * shall be sent to added users. Defaults to {@code false} when set + * to {@code null}. + * + * @return this builder + */ + public Builder withQuiet(Boolean quiet) { + if (quiet != null) { + this.quiet = quiet; + } + else { + this.quiet = false; + } + return this; + } + + /** + * Builds an instance of {@link AddPaperDocUser} configured with this + * builder's values + * + * @return new instance of {@link AddPaperDocUser} + */ + public AddPaperDocUser build() { + return new AddPaperDocUser(docId, members, customMessage, quiet); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members, + this.customMessage, + this.quiet + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddPaperDocUser other = (AddPaperDocUser) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.members == other.members) || (this.members.equals(other.members))) + && ((this.customMessage == other.customMessage) || (this.customMessage != null && this.customMessage.equals(other.customMessage))) + && (this.quiet == other.quiet) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddPaperDocUser value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("members"); + StoneSerializers.list(AddMember.Serializer.INSTANCE).serialize(value.members, g); + if (value.customMessage != null) { + g.writeFieldName("custom_message"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.customMessage, g); + } + g.writeFieldName("quiet"); + StoneSerializers.boolean_().serialize(value.quiet, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddPaperDocUser deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddPaperDocUser value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + List f_members = null; + String f_customMessage = null; + Boolean f_quiet = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("members".equals(field)) { + f_members = StoneSerializers.list(AddMember.Serializer.INSTANCE).deserialize(p); + } + else if ("custom_message".equals(field)) { + f_customMessage = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("quiet".equals(field)) { + f_quiet = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + value = new AddPaperDocUser(f_docId, f_members, f_customMessage, f_quiet); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUserMemberResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUserMemberResult.java new file mode 100644 index 000000000..d817cd8cb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUserMemberResult.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.MemberSelector; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Per-member result for {@link + * DbxUserPaperRequests#docsUsersAdd(String,java.util.List)}. + */ +public class AddPaperDocUserMemberResult { + // struct paper.AddPaperDocUserMemberResult (paper.stone) + + @Nonnull + protected final MemberSelector member; + @Nonnull + protected final AddPaperDocUserResult result; + + /** + * Per-member result for {@link + * DbxUserPaperRequests#docsUsersAdd(String,java.util.List)}. + * + * @param member One of specified input members. Must not be {@code null}. + * @param result The outcome of the action on this member. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddPaperDocUserMemberResult(@Nonnull MemberSelector member, @Nonnull AddPaperDocUserResult result) { + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + if (result == null) { + throw new IllegalArgumentException("Required value for 'result' is null"); + } + this.result = result; + } + + /** + * One of specified input members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + /** + * The outcome of the action on this member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AddPaperDocUserResult getResult() { + return result; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.member, + this.result + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddPaperDocUserMemberResult other = (AddPaperDocUserMemberResult) obj; + return ((this.member == other.member) || (this.member.equals(other.member))) + && ((this.result == other.result) || (this.result.equals(other.result))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddPaperDocUserMemberResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + g.writeFieldName("result"); + AddPaperDocUserResult.Serializer.INSTANCE.serialize(value.result, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddPaperDocUserMemberResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddPaperDocUserMemberResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberSelector f_member = null; + AddPaperDocUserResult f_result = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("result".equals(field)) { + f_result = AddPaperDocUserResult.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + if (f_result == null) { + throw new JsonParseException(p, "Required field \"result\" missing."); + } + value = new AddPaperDocUserMemberResult(f_member, f_result); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUserResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUserResult.java new file mode 100644 index 000000000..61f72b3ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/AddPaperDocUserResult.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AddPaperDocUserResult { + // union paper.AddPaperDocUserResult (paper.stone) + /** + * User was successfully added to the Paper doc. + */ + SUCCESS, + /** + * Something unexpected happened when trying to add the user to the Paper + * doc. + */ + UNKNOWN_ERROR, + /** + * The Paper doc can be shared only with team members. + */ + SHARING_OUTSIDE_TEAM_DISABLED, + /** + * The daily limit of how many users can be added to the Paper doc was + * reached. + */ + DAILY_LIMIT_REACHED, + /** + * Owner's permissions cannot be changed. + */ + USER_IS_OWNER, + /** + * User data could not be retrieved. Clients should retry. + */ + FAILED_USER_DATA_RETRIEVAL, + /** + * This user already has the correct permission to the Paper doc. + */ + PERMISSION_ALREADY_GRANTED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddPaperDocUserResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case SUCCESS: { + g.writeString("success"); + break; + } + case UNKNOWN_ERROR: { + g.writeString("unknown_error"); + break; + } + case SHARING_OUTSIDE_TEAM_DISABLED: { + g.writeString("sharing_outside_team_disabled"); + break; + } + case DAILY_LIMIT_REACHED: { + g.writeString("daily_limit_reached"); + break; + } + case USER_IS_OWNER: { + g.writeString("user_is_owner"); + break; + } + case FAILED_USER_DATA_RETRIEVAL: { + g.writeString("failed_user_data_retrieval"); + break; + } + case PERMISSION_ALREADY_GRANTED: { + g.writeString("permission_already_granted"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AddPaperDocUserResult deserialize(JsonParser p) throws IOException, JsonParseException { + AddPaperDocUserResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + value = AddPaperDocUserResult.SUCCESS; + } + else if ("unknown_error".equals(tag)) { + value = AddPaperDocUserResult.UNKNOWN_ERROR; + } + else if ("sharing_outside_team_disabled".equals(tag)) { + value = AddPaperDocUserResult.SHARING_OUTSIDE_TEAM_DISABLED; + } + else if ("daily_limit_reached".equals(tag)) { + value = AddPaperDocUserResult.DAILY_LIMIT_REACHED; + } + else if ("user_is_owner".equals(tag)) { + value = AddPaperDocUserResult.USER_IS_OWNER; + } + else if ("failed_user_data_retrieval".equals(tag)) { + value = AddPaperDocUserResult.FAILED_USER_DATA_RETRIEVAL; + } + else if ("permission_already_granted".equals(tag)) { + value = AddPaperDocUserResult.PERMISSION_ALREADY_GRANTED; + } + else { + value = AddPaperDocUserResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/Cursor.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/Cursor.java new file mode 100644 index 000000000..4bfc69e73 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/Cursor.java @@ -0,0 +1,214 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class Cursor { + // struct paper.Cursor (paper.stone) + + @Nonnull + protected final String value; + @Nullable + protected final Date expiration; + + /** + * + * @param value The actual cursor value. Must not be {@code null}. + * @param expiration Expiration time of {@link Cursor#getValue}. Some + * cursors might have expiration time assigned. This is a UTC value + * after which the cursor is no longer valid and the API starts + * returning an error. If cursor expires a new one needs to be obtained + * and pagination needs to be restarted. Some cursors might be + * short-lived some cursors might be long-lived. This really depends on + * the sorting type and order, e.g.: 1. on one hand, listing docs + * created by the user, sorted by the created time ascending will have + * undefinite expiration because the results cannot change while the + * iteration is happening. This cursor would be suitable for long term + * polling. 2. on the other hand, listing docs sorted by the last + * modified time will have a very short expiration as docs do get + * modified very often and the modified time can be changed while the + * iteration is happening thus altering the results. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Cursor(@Nonnull String value, @Nullable Date expiration) { + if (value == null) { + throw new IllegalArgumentException("Required value for 'value' is null"); + } + this.value = value; + this.expiration = LangUtil.truncateMillis(expiration); + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param value The actual cursor value. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Cursor(@Nonnull String value) { + this(value, null); + } + + /** + * The actual cursor value. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getValue() { + return value; + } + + /** + * Expiration time of {@link Cursor#getValue}. Some cursors might have + * expiration time assigned. This is a UTC value after which the cursor is + * no longer valid and the API starts returning an error. If cursor expires + * a new one needs to be obtained and pagination needs to be restarted. Some + * cursors might be short-lived some cursors might be long-lived. This + * really depends on the sorting type and order, e.g.: 1. on one hand, + * listing docs created by the user, sorted by the created time ascending + * will have undefinite expiration because the results cannot change while + * the iteration is happening. This cursor would be suitable for long term + * polling. 2. on the other hand, listing docs sorted by the last modified + * time will have a very short expiration as docs do get modified very often + * and the modified time can be changed while the iteration is happening + * thus altering the results. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpiration() { + return expiration; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.value, + this.expiration + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Cursor other = (Cursor) obj; + return ((this.value == other.value) || (this.value.equals(other.value))) + && ((this.expiration == other.expiration) || (this.expiration != null && this.expiration.equals(other.expiration))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Cursor value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("value"); + StoneSerializers.string().serialize(value.value, g); + if (value.expiration != null) { + g.writeFieldName("expiration"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expiration, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Cursor deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Cursor value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_value = null; + Date f_expiration = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("value".equals(field)) { + f_value = StoneSerializers.string().deserialize(p); + } + else if ("expiration".equals(field)) { + f_expiration = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_value == null) { + throw new JsonParseException(p, "Required field \"value\" missing."); + } + value = new Cursor(f_value, f_expiration); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DbxUserPaperRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DbxUserPaperRequests.java new file mode 100644 index 000000000..95d82f0d5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DbxUserPaperRequests.java @@ -0,0 +1,1276 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; +import com.dropbox.core.v2.DbxRawClientV2; +import com.dropbox.core.v2.sharing.MemberSelector; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "paper". + */ +public class DbxUserPaperRequests { + // namespace paper (paper.stone) + + private final DbxRawClientV2 client; + + public DbxUserPaperRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/paper/docs/archive + // + + /** + * Marks the given Paper doc as archived. This action can be performed or + * undone by anyone with edit permissions to the doc. Note that this + * endpoint will continue to work for content created by users on the older + * version of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. This endpoint will be + * retired in September 2020. Refer to the Paper + * Migration Guide for more information. + * + */ + void docsArchive(RefPaperDoc arg) throws DocLookupErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/archive", + arg, + false, + RefPaperDoc.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/archive", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Marks the given Paper doc as archived. + * + *

This action can be performed or undone by anyone with edit + * permissions to the doc.

+ * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

This endpoint will be retired in September 2020. Refer to the Paper + * Migration Guide for more information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void docsArchive(String docId) throws DocLookupErrorException, DbxException { + RefPaperDoc _arg = new RefPaperDoc(docId); + docsArchive(_arg); + } + + // + // route 2/paper/docs/create + // + + /** + * Creates a new Paper doc with the provided content. Note that this + * endpoint will continue to work for content created by users on the older + * version of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. This endpoint will be + * retired in September 2020. Refer to the Paper + * Migration Guide for more information. + * + * + * @return Uploader used to upload the request body and finish request. + */ + DocsCreateUploader docsCreate(PaperDocCreateArgs arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), + "2/paper/docs/create", + arg, + false, + PaperDocCreateArgs.Serializer.INSTANCE); + return new DocsCreateUploader(_uploader, this.client.getUserId()); + } + + /** + * Creates a new Paper doc with the provided content. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

This endpoint will be retired in September 2020. Refer to the Paper + * Migration Guide for more information.

+ * + * @param importFormat The format of provided data. Must not be {@code + * null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public DocsCreateUploader docsCreate(ImportFormat importFormat) throws DbxException { + PaperDocCreateArgs _arg = new PaperDocCreateArgs(importFormat); + return docsCreate(_arg); + } + + /** + * Creates a new Paper doc with the provided content. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

This endpoint will be retired in September 2020. Refer to the Paper + * Migration Guide for more information.

+ * + * @param importFormat The format of provided data. Must not be {@code + * null}. + * @param parentFolderId The Paper folder ID where the Paper document + * should be created. The API user has to have write access to this + * folder or error is thrown. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public DocsCreateUploader docsCreate(ImportFormat importFormat, String parentFolderId) throws DbxException { + PaperDocCreateArgs _arg = new PaperDocCreateArgs(importFormat, parentFolderId); + return docsCreate(_arg); + } + + // + // route 2/paper/docs/download + // + + /** + * Exports and downloads Paper doc either as HTML or markdown. Note that + * this endpoint will continue to work for content created by users on the + * older version of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader docsDownload(PaperDocExport arg, List _headers) throws DocLookupErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getApi(), + "2/paper/docs/download", + arg, + false, + _headers, + PaperDocExport.Serializer.INSTANCE, + PaperDocExportResult.Serializer.INSTANCE, + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/download", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Exports and downloads Paper doc either as HTML or markdown. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param exportFormat Must not be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public DbxDownloader docsDownload(String docId, ExportFormat exportFormat) throws DocLookupErrorException, DbxException { + PaperDocExport _arg = new PaperDocExport(docId, exportFormat); + return docsDownload(_arg, Collections.emptyList()); + } + + /** + * Exports and downloads Paper doc either as HTML or markdown. Note that + * this endpoint will continue to work for content created by users on the + * older version of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param exportFormat Must not be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public DocsDownloadBuilder docsDownloadBuilder(String docId, ExportFormat exportFormat) { + return new DocsDownloadBuilder(this, docId, exportFormat); + } + + // + // route 2/paper/docs/folder_users/list + // + + /** + * Lists the users who are explicitly invited to the Paper folder in which + * the Paper doc is contained. For private folders all users (including + * owner) shared on the folder are listed and for team folders all non-team + * users shared on the folder are returned. Note that this endpoint will + * continue to work for content created by users on the older version of + * Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + */ + ListUsersOnFolderResponse docsFolderUsersList(ListUsersOnFolderArgs arg) throws DocLookupErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/folder_users/list", + arg, + false, + ListUsersOnFolderArgs.Serializer.INSTANCE, + ListUsersOnFolderResponse.Serializer.INSTANCE, + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/folder_users/list", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Lists the users who are explicitly invited to the Paper folder in which + * the Paper doc is contained. For private folders all users (including + * owner) shared on the folder are listed and for team folders all non-team + * users shared on the folder are returned. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + *

The {@code limit} request parameter will default to {@code 1000} (see + * {@link #docsFolderUsersList(String,int)}).

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public ListUsersOnFolderResponse docsFolderUsersList(String docId) throws DocLookupErrorException, DbxException { + ListUsersOnFolderArgs _arg = new ListUsersOnFolderArgs(docId); + return docsFolderUsersList(_arg); + } + + /** + * Lists the users who are explicitly invited to the Paper folder in which + * the Paper doc is contained. For private folders all users (including + * owner) shared on the folder are listed and for team folders all non-team + * users shared on the folder are returned. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param limit Size limit per batch. The maximum number of users that can + * be retrieved per batch is 1000. Higher value results in invalid + * arguments error. Must be greater than or equal to 1 and be less than + * or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public ListUsersOnFolderResponse docsFolderUsersList(String docId, int limit) throws DocLookupErrorException, DbxException { + if (limit < 1) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1"); + } + if (limit > 1000) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000"); + } + ListUsersOnFolderArgs _arg = new ListUsersOnFolderArgs(docId, limit); + return docsFolderUsersList(_arg); + } + + // + // route 2/paper/docs/folder_users/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)}, use this to + * paginate through all users on the Paper folder. Note that this endpoint + * will continue to work for content created by users on the older version + * of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + */ + ListUsersOnFolderResponse docsFolderUsersListContinue(ListUsersOnFolderContinueArgs arg) throws ListUsersCursorErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/folder_users/list/continue", + arg, + false, + ListUsersOnFolderContinueArgs.Serializer.INSTANCE, + ListUsersOnFolderResponse.Serializer.INSTANCE, + ListUsersCursorError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListUsersCursorErrorException("2/paper/docs/folder_users/list/continue", ex.getRequestId(), ex.getUserMessage(), (ListUsersCursorError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)}, use this to + * paginate through all users on the Paper folder. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param cursor The cursor obtained from {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)} or {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)}. + * Allows for pagination. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public ListUsersOnFolderResponse docsFolderUsersListContinue(String docId, String cursor) throws ListUsersCursorErrorException, DbxException { + ListUsersOnFolderContinueArgs _arg = new ListUsersOnFolderContinueArgs(docId, cursor); + return docsFolderUsersListContinue(_arg); + } + + // + // route 2/paper/docs/get_folder_info + // + + /** + * Retrieves folder information for the given Paper doc. This includes: - + * folder sharing policy; permissions for subfolders are set by the + * top-level folder. - full 'filepath', i.e. the list of folders (both + * folderId and folderName) from the root folder to the folder directly + * containing the Paper doc. + * + *

If the Paper doc is not in any folder (aka unfiled) the response will + * be empty. Note that this endpoint will continue to work for content + * created by users on the older version of Paper. To check which version of + * Paper a user is on, use /users/features/get_values. If the paper_as_files + * feature is enabled, then the user is running the new version of Paper. + * Refer to the Paper + * Migration Guide for migration information.

+ * + * + * @return Metadata about Paper folders containing the specififed Paper doc. + */ + FoldersContainingPaperDoc docsGetFolderInfo(RefPaperDoc arg) throws DocLookupErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/get_folder_info", + arg, + false, + RefPaperDoc.Serializer.INSTANCE, + FoldersContainingPaperDoc.Serializer.INSTANCE, + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/get_folder_info", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Retrieves folder information for the given Paper doc. This includes: + * + *

- folder sharing policy; permissions for subfolders are set by the + * top-level folder.

+ * + *

- full 'filepath', i.e. the list of folders (both folderId and + * folderName) from the root folder to the folder directly containing the + * Paper doc.

+ * + *

If the Paper doc is not in any folder (aka unfiled) the response will + * be empty.

+ * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @return Metadata about Paper folders containing the specififed Paper doc. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public FoldersContainingPaperDoc docsGetFolderInfo(String docId) throws DocLookupErrorException, DbxException { + RefPaperDoc _arg = new RefPaperDoc(docId); + return docsGetFolderInfo(_arg); + } + + // + // route 2/paper/docs/list + // + + /** + * Return the list of all Paper docs according to the argument + * specifications. To iterate over through the full pagination, pass the + * cursor to {@link DbxUserPaperRequests#docsListContinue(String)}. Note + * that this endpoint will continue to work for content created by users on + * the older version of Paper. To check which version of Paper a user is on, + * use /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + */ + ListPaperDocsResponse docsList(ListPaperDocsArgs arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/list", + arg, + false, + ListPaperDocsArgs.Serializer.INSTANCE, + ListPaperDocsResponse.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"docs/list\":" + ex.getErrorValue()); + } + } + + /** + * Return the list of all Paper docs according to the argument + * specifications. To iterate over through the full pagination, pass the + * cursor to {@link DbxUserPaperRequests#docsListContinue(String)}. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DocsListBuilder} for more details.

+ * + * @deprecated + */ + @Deprecated + public ListPaperDocsResponse docsList() throws DbxApiException, DbxException { + ListPaperDocsArgs _arg = new ListPaperDocsArgs(); + return docsList(_arg); + } + + /** + * Return the list of all Paper docs according to the argument + * specifications. To iterate over through the full pagination, pass the + * cursor to {@link DbxUserPaperRequests#docsListContinue(String)}. Note + * that this endpoint will continue to work for content created by users on + * the older version of Paper. To check which version of Paper a user is on, + * use /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @deprecated + */ + @Deprecated + public DocsListBuilder docsListBuilder() { + ListPaperDocsArgs.Builder argBuilder_ = ListPaperDocsArgs.newBuilder(); + return new DocsListBuilder(this, argBuilder_); + } + + // + // route 2/paper/docs/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserPaperRequests#docsList}, use this to paginate through all Paper + * doc. Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper. Refer to + * the Paper + * Migration Guide for migration information. + * + */ + ListPaperDocsResponse docsListContinue(ListPaperDocsContinueArgs arg) throws ListDocsCursorErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/list/continue", + arg, + false, + ListPaperDocsContinueArgs.Serializer.INSTANCE, + ListPaperDocsResponse.Serializer.INSTANCE, + ListDocsCursorError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListDocsCursorErrorException("2/paper/docs/list/continue", ex.getRequestId(), ex.getUserMessage(), (ListDocsCursorError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserPaperRequests#docsList}, use this to paginate through all Paper + * doc. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param cursor The cursor obtained from {@link + * DbxUserPaperRequests#docsList} or {@link + * DbxUserPaperRequests#docsListContinue(String)}. Allows for + * pagination. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public ListPaperDocsResponse docsListContinue(String cursor) throws ListDocsCursorErrorException, DbxException { + ListPaperDocsContinueArgs _arg = new ListPaperDocsContinueArgs(cursor); + return docsListContinue(_arg); + } + + // + // route 2/paper/docs/permanently_delete + // + + /** + * Permanently deletes the given Paper doc. This operation is final as the + * doc cannot be recovered. This action can be performed only by the doc + * owner. Note that this endpoint will continue to work for content created + * by users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper. Refer to + * the Paper + * Migration Guide for migration information. + * + */ + void docsPermanentlyDelete(RefPaperDoc arg) throws DocLookupErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/permanently_delete", + arg, + false, + RefPaperDoc.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/permanently_delete", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Permanently deletes the given Paper doc. This operation is final as the + * doc cannot be recovered. + * + *

This action can be performed only by the doc owner.

+ * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void docsPermanentlyDelete(String docId) throws DocLookupErrorException, DbxException { + RefPaperDoc _arg = new RefPaperDoc(docId); + docsPermanentlyDelete(_arg); + } + + // + // route 2/paper/docs/sharing_policy/get + // + + /** + * Gets the default sharing policy for the given Paper doc. Note that this + * endpoint will continue to work for content created by users on the older + * version of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + * + * @return Sharing policy of Paper doc. + */ + SharingPolicy docsSharingPolicyGet(RefPaperDoc arg) throws DocLookupErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/sharing_policy/get", + arg, + false, + RefPaperDoc.Serializer.INSTANCE, + SharingPolicy.Serializer.INSTANCE, + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/sharing_policy/get", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Gets the default sharing policy for the given Paper doc. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @return Sharing policy of Paper doc. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public SharingPolicy docsSharingPolicyGet(String docId) throws DocLookupErrorException, DbxException { + RefPaperDoc _arg = new RefPaperDoc(docId); + return docsSharingPolicyGet(_arg); + } + + // + // route 2/paper/docs/sharing_policy/set + // + + /** + * Sets the default sharing policy for the given Paper doc. The default + * 'team_sharing_policy' can be changed only by teams, omit this field for + * personal accounts. The 'public_sharing_policy' policy can't be set to the + * value 'disabled' because this setting can be changed only via the team + * admin console. Note that this endpoint will continue to work for content + * created by users on the older version of Paper. To check which version of + * Paper a user is on, use /users/features/get_values. If the paper_as_files + * feature is enabled, then the user is running the new version of Paper. + * Refer to the Paper + * Migration Guide for migration information. + * + */ + void docsSharingPolicySet(PaperDocSharingPolicy arg) throws DocLookupErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/sharing_policy/set", + arg, + false, + PaperDocSharingPolicy.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/sharing_policy/set", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Sets the default sharing policy for the given Paper doc. The default + * 'team_sharing_policy' can be changed only by teams, omit this field for + * personal accounts. + * + *

The 'public_sharing_policy' policy can't be set to the value + * 'disabled' because this setting can be changed only via the team admin + * console.

+ * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param sharingPolicy The default sharing policy to be set for the Paper + * doc. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void docsSharingPolicySet(String docId, SharingPolicy sharingPolicy) throws DocLookupErrorException, DbxException { + PaperDocSharingPolicy _arg = new PaperDocSharingPolicy(docId, sharingPolicy); + docsSharingPolicySet(_arg); + } + + // + // route 2/paper/docs/update + // + + /** + * Updates an existing Paper doc with the provided content. Note that this + * endpoint will continue to work for content created by users on the older + * version of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. This endpoint will be + * retired in September 2020. Refer to the Paper + * Migration Guide for more information. + * + * + * @return Uploader used to upload the request body and finish request. + */ + DocsUpdateUploader docsUpdate(PaperDocUpdateArgs arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), + "2/paper/docs/update", + arg, + false, + PaperDocUpdateArgs.Serializer.INSTANCE); + return new DocsUpdateUploader(_uploader, this.client.getUserId()); + } + + /** + * Updates an existing Paper doc with the provided content. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

This endpoint will be retired in September 2020. Refer to the Paper + * Migration Guide for more information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param docUpdatePolicy The policy used for the current update call. Must + * not be {@code null}. + * @param revision The latest doc revision. This value must match the head + * revision or an error code will be returned. This is to prevent + * colliding writes. + * @param importFormat The format of provided data. Must not be {@code + * null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public DocsUpdateUploader docsUpdate(String docId, PaperDocUpdatePolicy docUpdatePolicy, long revision, ImportFormat importFormat) throws DbxException { + PaperDocUpdateArgs _arg = new PaperDocUpdateArgs(docId, docUpdatePolicy, revision, importFormat); + return docsUpdate(_arg); + } + + // + // route 2/paper/docs/users/add + // + + /** + * Allows an owner or editor to add users to a Paper doc or change their + * permissions using their email address or Dropbox account ID. The doc + * owner's permissions cannot be changed. Note that this endpoint will + * continue to work for content created by users on the older version of + * Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + */ + List docsUsersAdd(AddPaperDocUser arg) throws DocLookupErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/users/add", + arg, + false, + AddPaperDocUser.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(AddPaperDocUserMemberResult.Serializer.INSTANCE), + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/users/add", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Allows an owner or editor to add users to a Paper doc or change their + * permissions using their email address or Dropbox account ID. + * + *

The doc owner's permissions cannot be changed.

+ * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DocsUsersAddBuilder} for more details.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param members User which should be added to the Paper doc. Specify only + * email address or Dropbox account ID. Must contain at most 20 items, + * not contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public List docsUsersAdd(String docId, List members) throws DocLookupErrorException, DbxException { + AddPaperDocUser _arg = new AddPaperDocUser(docId, members); + return docsUsersAdd(_arg); + } + + /** + * Allows an owner or editor to add users to a Paper doc or change their + * permissions using their email address or Dropbox account ID. The doc + * owner's permissions cannot be changed. Note that this endpoint will + * continue to work for content created by users on the older version of + * Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param members User which should be added to the Paper doc. Specify only + * email address or Dropbox account ID. Must contain at most 20 items, + * not contain a {@code null} item, and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public DocsUsersAddBuilder docsUsersAddBuilder(String docId, List members) { + AddPaperDocUser.Builder argBuilder_ = AddPaperDocUser.newBuilder(docId, members); + return new DocsUsersAddBuilder(this, argBuilder_); + } + + // + // route 2/paper/docs/users/list + // + + /** + * Lists all users who visited the Paper doc or users with explicit access. + * This call excludes users who have been removed. The list is sorted by the + * date of the visit or the share date. The list will include both users, + * the explicitly shared ones as well as those who came in using the Paper + * url link. Note that this endpoint will continue to work for content + * created by users on the older version of Paper. To check which version of + * Paper a user is on, use /users/features/get_values. If the paper_as_files + * feature is enabled, then the user is running the new version of Paper. + * Refer to the Paper + * Migration Guide for migration information. + * + */ + ListUsersOnPaperDocResponse docsUsersList(ListUsersOnPaperDocArgs arg) throws DocLookupErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/users/list", + arg, + false, + ListUsersOnPaperDocArgs.Serializer.INSTANCE, + ListUsersOnPaperDocResponse.Serializer.INSTANCE, + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/users/list", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Lists all users who visited the Paper doc or users with explicit access. + * This call excludes users who have been removed. The list is sorted by the + * date of the visit or the share date. + * + *

The list will include both users, the explicitly shared ones as well + * as those who came in using the Paper url link.

+ * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DocsUsersListBuilder} for more details.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public ListUsersOnPaperDocResponse docsUsersList(String docId) throws DocLookupErrorException, DbxException { + ListUsersOnPaperDocArgs _arg = new ListUsersOnPaperDocArgs(docId); + return docsUsersList(_arg); + } + + /** + * Lists all users who visited the Paper doc or users with explicit access. + * This call excludes users who have been removed. The list is sorted by the + * date of the visit or the share date. The list will include both users, + * the explicitly shared ones as well as those who came in using the Paper + * url link. Note that this endpoint will continue to work for content + * created by users on the older version of Paper. To check which version of + * Paper a user is on, use /users/features/get_values. If the paper_as_files + * feature is enabled, then the user is running the new version of Paper. + * Refer to the Paper + * Migration Guide for migration information. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public DocsUsersListBuilder docsUsersListBuilder(String docId) { + ListUsersOnPaperDocArgs.Builder argBuilder_ = ListUsersOnPaperDocArgs.newBuilder(docId); + return new DocsUsersListBuilder(this, argBuilder_); + } + + // + // route 2/paper/docs/users/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserPaperRequests#docsUsersList(String)}, use this to paginate through + * all users on the Paper doc. Note that this endpoint will continue to work + * for content created by users on the older version of Paper. To check + * which version of Paper a user is on, use /users/features/get_values. If + * the paper_as_files feature is enabled, then the user is running the new + * version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + */ + ListUsersOnPaperDocResponse docsUsersListContinue(ListUsersOnPaperDocContinueArgs arg) throws ListUsersCursorErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/users/list/continue", + arg, + false, + ListUsersOnPaperDocContinueArgs.Serializer.INSTANCE, + ListUsersOnPaperDocResponse.Serializer.INSTANCE, + ListUsersCursorError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListUsersCursorErrorException("2/paper/docs/users/list/continue", ex.getRequestId(), ex.getUserMessage(), (ListUsersCursorError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserPaperRequests#docsUsersList(String)}, use this to paginate through + * all users on the Paper doc. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param cursor The cursor obtained from {@link + * DbxUserPaperRequests#docsUsersList(String)} or {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)}. Allows + * for pagination. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public ListUsersOnPaperDocResponse docsUsersListContinue(String docId, String cursor) throws ListUsersCursorErrorException, DbxException { + ListUsersOnPaperDocContinueArgs _arg = new ListUsersOnPaperDocContinueArgs(docId, cursor); + return docsUsersListContinue(_arg); + } + + // + // route 2/paper/docs/users/remove + // + + /** + * Allows an owner or editor to remove users from a Paper doc using their + * email address or Dropbox account ID. The doc owner cannot be removed. + * Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper. Refer to + * the Paper + * Migration Guide for migration information. + * + */ + void docsUsersRemove(RemovePaperDocUser arg) throws DocLookupErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/docs/users/remove", + arg, + false, + RemovePaperDocUser.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + DocLookupError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DocLookupErrorException("2/paper/docs/users/remove", ex.getRequestId(), ex.getUserMessage(), (DocLookupError) ex.getErrorValue()); + } + } + + /** + * Allows an owner or editor to remove users from a Paper doc using their + * email address or Dropbox account ID. + * + *

The doc owner cannot be removed.

+ * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param member User which should be removed from the Paper doc. Specify + * only email address or Dropbox account ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public void docsUsersRemove(String docId, MemberSelector member) throws DocLookupErrorException, DbxException { + RemovePaperDocUser _arg = new RemovePaperDocUser(docId, member); + docsUsersRemove(_arg); + } + + // + // route 2/paper/folders/create + // + + /** + * Create a new Paper folder with the provided info. Note that this endpoint + * will continue to work for content created by users on the older version + * of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + */ + PaperFolderCreateResult foldersCreate(PaperFolderCreateArg arg) throws PaperFolderCreateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/paper/folders/create", + arg, + false, + PaperFolderCreateArg.Serializer.INSTANCE, + PaperFolderCreateResult.Serializer.INSTANCE, + PaperFolderCreateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PaperFolderCreateErrorException("2/paper/folders/create", ex.getRequestId(), ex.getUserMessage(), (PaperFolderCreateError) ex.getErrorValue()); + } + } + + /** + * Create a new Paper folder with the provided info. + * + *

Note that this endpoint will continue to work for content created by + * users on the older version of Paper. To check which version of Paper a + * user is on, use /users/features/get_values. If the paper_as_files feature + * is enabled, then the user is running the new version of Paper.

+ * + *

Refer to the Paper + * Migration Guide for migration information.

+ * + * @param name The name of the new Paper folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public PaperFolderCreateResult foldersCreate(String name) throws PaperFolderCreateErrorException, DbxException { + PaperFolderCreateArg _arg = new PaperFolderCreateArg(name); + return foldersCreate(_arg); + } + + /** + * Create a new Paper folder with the provided info. Note that this endpoint + * will continue to work for content created by users on the older version + * of Paper. To check which version of Paper a user is on, use + * /users/features/get_values. If the paper_as_files feature is enabled, + * then the user is running the new version of Paper. Refer to the Paper + * Migration Guide for migration information. + * + * @param name The name of the new Paper folder. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public FoldersCreateBuilder foldersCreateBuilder(String name) { + PaperFolderCreateArg.Builder argBuilder_ = PaperFolderCreateArg.newBuilder(name); + return new FoldersCreateBuilder(this, argBuilder_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocLookupError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocLookupError.java new file mode 100644 index 000000000..61ac0f632 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocLookupError.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DocLookupError { + // union paper.DocLookupError (paper.stone) + /** + * Your account does not have permissions to perform this action. This may + * be due to it only having access to Paper as files in the Dropbox + * filesystem. For more information, refer to the Paper + * Migration Guide. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The required doc was not found. + */ + DOC_NOT_FOUND; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DocLookupError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case DOC_NOT_FOUND: { + g.writeString("doc_not_found"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public DocLookupError deserialize(JsonParser p) throws IOException, JsonParseException { + DocLookupError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("insufficient_permissions".equals(tag)) { + value = DocLookupError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = DocLookupError.OTHER; + } + else if ("doc_not_found".equals(tag)) { + value = DocLookupError.DOC_NOT_FOUND; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocLookupErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocLookupErrorException.java new file mode 100644 index 000000000..3dcafbd25 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocLookupErrorException.java @@ -0,0 +1,62 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link DocLookupError} + * error. + * + *

This exception is raised by {@link + * DbxUserPaperRequests#docsArchive(String)}, {@link + * DbxUserPaperRequests#docsDownload(String,ExportFormat)}, {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)}, {@link + * DbxUserPaperRequests#docsGetFolderInfo(String)}, {@link + * DbxUserPaperRequests#docsPermanentlyDelete(String)}, {@link + * DbxUserPaperRequests#docsSharingPolicyGet(String)}, {@link + * DbxUserPaperRequests#docsSharingPolicySet(String,SharingPolicy)}, {@link + * DbxUserPaperRequests#docsUsersAdd(String,java.util.List)}, {@link + * DbxUserPaperRequests#docsUsersList(String)}, and {@link + * DbxUserPaperRequests#docsUsersRemove(String,com.dropbox.core.v2.sharing.MemberSelector)}. + *

+ */ +public class DocLookupErrorException extends DbxApiException { + // exception for routes: + // 2/paper/docs/archive + // 2/paper/docs/download + // 2/paper/docs/folder_users/list + // 2/paper/docs/get_folder_info + // 2/paper/docs/permanently_delete + // 2/paper/docs/sharing_policy/get + // 2/paper/docs/sharing_policy/set + // 2/paper/docs/users/add + // 2/paper/docs/users/list + // 2/paper/docs/users/remove + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserPaperRequests#docsArchive(String)}, + * {@link DbxUserPaperRequests#docsDownload(String,ExportFormat)}, {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)}, {@link + * DbxUserPaperRequests#docsGetFolderInfo(String)}, {@link + * DbxUserPaperRequests#docsPermanentlyDelete(String)}, {@link + * DbxUserPaperRequests#docsSharingPolicyGet(String)}, {@link + * DbxUserPaperRequests#docsSharingPolicySet(String,SharingPolicy)}, {@link + * DbxUserPaperRequests#docsUsersAdd(String,java.util.List)}, {@link + * DbxUserPaperRequests#docsUsersList(String)}, and {@link + * DbxUserPaperRequests#docsUsersRemove(String,com.dropbox.core.v2.sharing.MemberSelector)}. + */ + public final DocLookupError errorValue; + + public DocLookupErrorException(String routeName, String requestId, LocalizedText userMessage, DocLookupError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsCreateUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsCreateUploader.java new file mode 100644 index 000000000..5e08a1bf9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsCreateUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserPaperRequests#docsCreate(ImportFormat,String)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class DocsCreateUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public DocsCreateUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, PaperDocCreateUpdateResult.Serializer.INSTANCE, PaperDocCreateError.Serializer.INSTANCE, userId); + } + + protected PaperDocCreateErrorException newException(DbxWrappedException error) { + return new PaperDocCreateErrorException("2/paper/docs/create", error.getRequestId(), error.getUserMessage(), (PaperDocCreateError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsDownloadBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsDownloadBuilder.java new file mode 100644 index 000000000..8b257ffd8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsDownloadBuilder.java @@ -0,0 +1,50 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserPaperRequests#docsDownloadBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DocsDownloadBuilder extends DbxDownloadStyleBuilder { + private final DbxUserPaperRequests _client; + private final String docId; + private final ExportFormat exportFormat; + + /** + * Creates a new instance of this builder. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param exportFormat Must not be {@code null}. + * @param _client Dropbox namespace-specific client used to issue paper + * requests. + * + * @return instsance of this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + DocsDownloadBuilder(DbxUserPaperRequests _client, String docId, ExportFormat exportFormat) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + this.docId = docId; + this.exportFormat = exportFormat; + } + + @Override + @SuppressWarnings("deprecation") + public DbxDownloader start() throws DocLookupErrorException, DbxException { + PaperDocExport arg_ = new PaperDocExport(docId, exportFormat); + return _client.docsDownload(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsListBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsListBuilder.java new file mode 100644 index 000000000..1199c075e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsListBuilder.java @@ -0,0 +1,127 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link DbxUserPaperRequests#docsListBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DocsListBuilder { + private final DbxUserPaperRequests _client; + private final ListPaperDocsArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue paper + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DocsListBuilder(DbxUserPaperRequests _client, ListPaperDocsArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListPaperDocsFilterBy.DOCS_ACCESSED}.

+ * + * @param filterBy Allows user to specify how the Paper docs should be + * filtered. Must not be {@code null}. Defaults to {@code + * ListPaperDocsFilterBy.DOCS_ACCESSED} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DocsListBuilder withFilterBy(ListPaperDocsFilterBy filterBy) { + this._builder.withFilterBy(filterBy); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListPaperDocsSortBy.ACCESSED}.

+ * + * @param sortBy Allows user to specify how the Paper docs should be + * sorted. Must not be {@code null}. Defaults to {@code + * ListPaperDocsSortBy.ACCESSED} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DocsListBuilder withSortBy(ListPaperDocsSortBy sortBy) { + this._builder.withSortBy(sortBy); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListPaperDocsSortOrder.ASCENDING}.

+ * + * @param sortOrder Allows user to specify the sort order of the result. + * Must not be {@code null}. Defaults to {@code + * ListPaperDocsSortOrder.ASCENDING} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DocsListBuilder withSortOrder(ListPaperDocsSortOrder sortOrder) { + this._builder.withSortOrder(sortOrder); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000}.

+ * + * @param limit Size limit per batch. The maximum number of docs that can + * be retrieved per batch is 1000. Higher value results in invalid + * arguments error. Must be greater than or equal to 1 and be less than + * or equal to 1000. Defaults to {@code 1000} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DocsListBuilder withLimit(Integer limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public ListPaperDocsResponse start() throws DbxApiException, DbxException { + ListPaperDocsArgs arg_ = this._builder.build(); + return _client.docsList(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUpdateUploader.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUpdateUploader.java new file mode 100644 index 000000000..cc743f9fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUpdateUploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxUserPaperRequests#docsUpdate(String,PaperDocUpdatePolicy,long,ImportFormat)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class DocsUpdateUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public DocsUpdateUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, PaperDocCreateUpdateResult.Serializer.INSTANCE, PaperDocUpdateError.Serializer.INSTANCE, userId); + } + + protected PaperDocUpdateErrorException newException(DbxWrappedException error) { + return new PaperDocUpdateErrorException("2/paper/docs/update", error.getRequestId(), error.getUserMessage(), (PaperDocUpdateError) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUsersAddBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUsersAddBuilder.java new file mode 100644 index 000000000..0a663e91d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUsersAddBuilder.java @@ -0,0 +1,78 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserPaperRequests#docsUsersAddBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DocsUsersAddBuilder { + private final DbxUserPaperRequests _client; + private final AddPaperDocUser.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue paper + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DocsUsersAddBuilder(DbxUserPaperRequests _client, AddPaperDocUser.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param customMessage A personal message that will be emailed to each + * successfully added member. + * + * @return this builder + */ + public DocsUsersAddBuilder withCustomMessage(String customMessage) { + this._builder.withCustomMessage(customMessage); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param quiet Clients should set this to true if no email message shall + * be sent to added users. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public DocsUsersAddBuilder withQuiet(Boolean quiet) { + this._builder.withQuiet(quiet); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public List start() throws DocLookupErrorException, DbxException { + AddPaperDocUser arg_ = this._builder.build(); + return _client.docsUsersAdd(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUsersListBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUsersListBuilder.java new file mode 100644 index 000000000..ba2bb4fa2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/DocsUsersListBuilder.java @@ -0,0 +1,88 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserPaperRequests#docsUsersListBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DocsUsersListBuilder { + private final DbxUserPaperRequests _client; + private final ListUsersOnPaperDocArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue paper + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DocsUsersListBuilder(DbxUserPaperRequests _client, ListUsersOnPaperDocArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000}.

+ * + * @param limit Size limit per batch. The maximum number of users that can + * be retrieved per batch is 1000. Higher value results in invalid + * arguments error. Must be greater than or equal to 1 and be less than + * or equal to 1000. Defaults to {@code 1000} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DocsUsersListBuilder withLimit(Integer limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * UserOnPaperDocFilter.SHARED}.

+ * + * @param filterBy Specify this attribute if you want to obtain users that + * have already accessed the Paper doc. Must not be {@code null}. + * Defaults to {@code UserOnPaperDocFilter.SHARED} when set to {@code + * null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DocsUsersListBuilder withFilterBy(UserOnPaperDocFilter filterBy) { + this._builder.withFilterBy(filterBy); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public ListUsersOnPaperDocResponse start() throws DocLookupErrorException, DbxException { + ListUsersOnPaperDocArgs arg_ = this._builder.build(); + return _client.docsUsersList(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ExportFormat.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ExportFormat.java new file mode 100644 index 000000000..c8fd654ef --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ExportFormat.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The desired export format of the Paper doc. + */ +public enum ExportFormat { + // union paper.ExportFormat (paper.stone) + /** + * The HTML export format. + */ + HTML, + /** + * The markdown export format. + */ + MARKDOWN, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportFormat value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case HTML: { + g.writeString("html"); + break; + } + case MARKDOWN: { + g.writeString("markdown"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExportFormat deserialize(JsonParser p) throws IOException, JsonParseException { + ExportFormat value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("html".equals(tag)) { + value = ExportFormat.HTML; + } + else if ("markdown".equals(tag)) { + value = ExportFormat.MARKDOWN; + } + else { + value = ExportFormat.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/Folder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/Folder.java new file mode 100644 index 000000000..97466d58a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/Folder.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Data structure representing a Paper folder. + */ +public class Folder { + // struct paper.Folder (paper.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final String name; + + /** + * Data structure representing a Paper folder. + * + * @param id Paper folder ID. This ID uniquely identifies the folder. Must + * not be {@code null}. + * @param name Paper folder name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Folder(@Nonnull String id, @Nonnull String name) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + this.id = id; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * Paper folder ID. This ID uniquely identifies the folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * Paper folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.name + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Folder other = (Folder) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.name == other.name) || (this.name.equals(other.name))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Folder value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Folder deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Folder value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new Folder(f_id, f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FolderSharingPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FolderSharingPolicyType.java new file mode 100644 index 000000000..48f10aaaf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FolderSharingPolicyType.java @@ -0,0 +1,91 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The sharing policy of a Paper folder. The sharing policy of subfolders is + * inherited from the root folder. + */ +public enum FolderSharingPolicyType { + // union paper.FolderSharingPolicyType (paper.stone) + /** + * Everyone in your team and anyone directly invited can access this folder. + */ + TEAM, + /** + * Only people directly invited can access this folder. + */ + INVITE_ONLY; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderSharingPolicyType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TEAM: { + g.writeString("team"); + break; + } + case INVITE_ONLY: { + g.writeString("invite_only"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public FolderSharingPolicyType deserialize(JsonParser p) throws IOException, JsonParseException { + FolderSharingPolicyType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team".equals(tag)) { + value = FolderSharingPolicyType.TEAM; + } + else if ("invite_only".equals(tag)) { + value = FolderSharingPolicyType.INVITE_ONLY; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FoldersContainingPaperDoc.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FoldersContainingPaperDoc.java new file mode 100644 index 000000000..1414b4084 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FoldersContainingPaperDoc.java @@ -0,0 +1,264 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata about Paper folders containing the specififed Paper doc. + */ +public class FoldersContainingPaperDoc { + // struct paper.FoldersContainingPaperDoc (paper.stone) + + @Nullable + protected final FolderSharingPolicyType folderSharingPolicyType; + @Nullable + protected final List folders; + + /** + * Metadata about Paper folders containing the specififed Paper doc. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param folderSharingPolicyType The sharing policy of the folder + * containing the Paper doc. + * @param folders The folder path. If present the first folder is the root + * folder. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FoldersContainingPaperDoc(@Nullable FolderSharingPolicyType folderSharingPolicyType, @Nullable List folders) { + this.folderSharingPolicyType = folderSharingPolicyType; + if (folders != null) { + for (Folder x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + } + + /** + * Metadata about Paper folders containing the specififed Paper doc. + * + *

The default values for unset fields will be used.

+ */ + public FoldersContainingPaperDoc() { + this(null, null); + } + + /** + * The sharing policy of the folder containing the Paper doc. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FolderSharingPolicyType getFolderSharingPolicyType() { + return folderSharingPolicyType; + } + + /** + * The folder path. If present the first folder is the root folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getFolders() { + return folders; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link FoldersContainingPaperDoc}. + */ + public static class Builder { + + protected FolderSharingPolicyType folderSharingPolicyType; + protected List folders; + + protected Builder() { + this.folderSharingPolicyType = null; + this.folders = null; + } + + /** + * Set value for optional field. + * + * @param folderSharingPolicyType The sharing policy of the folder + * containing the Paper doc. + * + * @return this builder + */ + public Builder withFolderSharingPolicyType(FolderSharingPolicyType folderSharingPolicyType) { + this.folderSharingPolicyType = folderSharingPolicyType; + return this; + } + + /** + * Set value for optional field. + * + * @param folders The folder path. If present the first folder is the + * root folder. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFolders(List folders) { + if (folders != null) { + for (Folder x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + return this; + } + + /** + * Builds an instance of {@link FoldersContainingPaperDoc} configured + * with this builder's values + * + * @return new instance of {@link FoldersContainingPaperDoc} + */ + public FoldersContainingPaperDoc build() { + return new FoldersContainingPaperDoc(folderSharingPolicyType, folders); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.folderSharingPolicyType, + this.folders + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FoldersContainingPaperDoc other = (FoldersContainingPaperDoc) obj; + return ((this.folderSharingPolicyType == other.folderSharingPolicyType) || (this.folderSharingPolicyType != null && this.folderSharingPolicyType.equals(other.folderSharingPolicyType))) + && ((this.folders == other.folders) || (this.folders != null && this.folders.equals(other.folders))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FoldersContainingPaperDoc value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.folderSharingPolicyType != null) { + g.writeFieldName("folder_sharing_policy_type"); + StoneSerializers.nullable(FolderSharingPolicyType.Serializer.INSTANCE).serialize(value.folderSharingPolicyType, g); + } + if (value.folders != null) { + g.writeFieldName("folders"); + StoneSerializers.nullable(StoneSerializers.list(Folder.Serializer.INSTANCE)).serialize(value.folders, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FoldersContainingPaperDoc deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FoldersContainingPaperDoc value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FolderSharingPolicyType f_folderSharingPolicyType = null; + List f_folders = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("folder_sharing_policy_type".equals(field)) { + f_folderSharingPolicyType = StoneSerializers.nullable(FolderSharingPolicyType.Serializer.INSTANCE).deserialize(p); + } + else if ("folders".equals(field)) { + f_folders = StoneSerializers.nullable(StoneSerializers.list(Folder.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FoldersContainingPaperDoc(f_folderSharingPolicyType, f_folders); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FoldersCreateBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FoldersCreateBuilder.java new file mode 100644 index 000000000..34b5cc1ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/FoldersCreateBuilder.java @@ -0,0 +1,78 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserPaperRequests#foldersCreateBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class FoldersCreateBuilder { + private final DbxUserPaperRequests _client; + private final PaperFolderCreateArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue paper + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + FoldersCreateBuilder(DbxUserPaperRequests _client, PaperFolderCreateArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param parentFolderId The encrypted Paper folder Id where the new Paper + * folder should be created. The API user has to have write access to + * this folder or error is thrown. If not supplied, the new folder will + * be created at top level. + * + * @return this builder + */ + public FoldersCreateBuilder withParentFolderId(String parentFolderId) { + this._builder.withParentFolderId(parentFolderId); + return this; + } + + /** + * Set value for optional field. + * + * @param isTeamFolder Whether the folder to be created should be a team + * folder. This value will be ignored if parent_folder_id is supplied, + * as the new folder will inherit the type (private or team folder) from + * its parent. We will by default create a top-level private folder if + * both parent_folder_id and is_team_folder are not supplied. + * + * @return this builder + */ + public FoldersCreateBuilder withIsTeamFolder(Boolean isTeamFolder) { + this._builder.withIsTeamFolder(isTeamFolder); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public PaperFolderCreateResult start() throws PaperFolderCreateErrorException, DbxException { + PaperFolderCreateArg arg_ = this._builder.build(); + return _client.foldersCreate(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ImportFormat.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ImportFormat.java new file mode 100644 index 000000000..6a80e1563 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ImportFormat.java @@ -0,0 +1,111 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The import format of the incoming data. + */ +public enum ImportFormat { + // union paper.ImportFormat (paper.stone) + /** + * The provided data is interpreted as standard HTML. + */ + HTML, + /** + * The provided data is interpreted as markdown. The first line of the + * provided document will be used as the doc title. + */ + MARKDOWN, + /** + * The provided data is interpreted as plain text. The first line of the + * provided document will be used as the doc title. + */ + PLAIN_TEXT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ImportFormat value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case HTML: { + g.writeString("html"); + break; + } + case MARKDOWN: { + g.writeString("markdown"); + break; + } + case PLAIN_TEXT: { + g.writeString("plain_text"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ImportFormat deserialize(JsonParser p) throws IOException, JsonParseException { + ImportFormat value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("html".equals(tag)) { + value = ImportFormat.HTML; + } + else if ("markdown".equals(tag)) { + value = ImportFormat.MARKDOWN; + } + else if ("plain_text".equals(tag)) { + value = ImportFormat.PLAIN_TEXT; + } + else { + value = ImportFormat.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/InviteeInfoWithPermissionLevel.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/InviteeInfoWithPermissionLevel.java new file mode 100644 index 000000000..5e1befdcb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/InviteeInfoWithPermissionLevel.java @@ -0,0 +1,179 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.InviteeInfo; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class InviteeInfoWithPermissionLevel { + // struct paper.InviteeInfoWithPermissionLevel (paper.stone) + + @Nonnull + protected final InviteeInfo invitee; + @Nonnull + protected final PaperDocPermissionLevel permissionLevel; + + /** + * + * @param invitee Email address invited to the Paper doc. Must not be + * {@code null}. + * @param permissionLevel Permission level for the invitee. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public InviteeInfoWithPermissionLevel(@Nonnull InviteeInfo invitee, @Nonnull PaperDocPermissionLevel permissionLevel) { + if (invitee == null) { + throw new IllegalArgumentException("Required value for 'invitee' is null"); + } + this.invitee = invitee; + if (permissionLevel == null) { + throw new IllegalArgumentException("Required value for 'permissionLevel' is null"); + } + this.permissionLevel = permissionLevel; + } + + /** + * Email address invited to the Paper doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public InviteeInfo getInvitee() { + return invitee; + } + + /** + * Permission level for the invitee. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDocPermissionLevel getPermissionLevel() { + return permissionLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.invitee, + this.permissionLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + InviteeInfoWithPermissionLevel other = (InviteeInfoWithPermissionLevel) obj; + return ((this.invitee == other.invitee) || (this.invitee.equals(other.invitee))) + && ((this.permissionLevel == other.permissionLevel) || (this.permissionLevel.equals(other.permissionLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InviteeInfoWithPermissionLevel value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("invitee"); + InviteeInfo.Serializer.INSTANCE.serialize(value.invitee, g); + g.writeFieldName("permission_level"); + PaperDocPermissionLevel.Serializer.INSTANCE.serialize(value.permissionLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public InviteeInfoWithPermissionLevel deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + InviteeInfoWithPermissionLevel value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + InviteeInfo f_invitee = null; + PaperDocPermissionLevel f_permissionLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("invitee".equals(field)) { + f_invitee = InviteeInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("permission_level".equals(field)) { + f_permissionLevel = PaperDocPermissionLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_invitee == null) { + throw new JsonParseException(p, "Required field \"invitee\" missing."); + } + if (f_permissionLevel == null) { + throw new JsonParseException(p, "Required field \"permission_level\" missing."); + } + value = new InviteeInfoWithPermissionLevel(f_invitee, f_permissionLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListDocsCursorError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListDocsCursorError.java new file mode 100644 index 000000000..7ffeb337f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListDocsCursorError.java @@ -0,0 +1,278 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListDocsCursorError { + // union paper.ListDocsCursorError (paper.stone) + + /** + * Discriminating tag type for {@link ListDocsCursorError}. + */ + public enum Tag { + CURSOR_ERROR, // PaperApiCursorError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListDocsCursorError OTHER = new ListDocsCursorError().withTag(Tag.OTHER); + + private Tag _tag; + private PaperApiCursorError cursorErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListDocsCursorError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListDocsCursorError withTag(Tag _tag) { + ListDocsCursorError result = new ListDocsCursorError(); + result._tag = _tag; + return result; + } + + /** + * + * @param cursorErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListDocsCursorError withTagAndCursorError(Tag _tag, PaperApiCursorError cursorErrorValue) { + ListDocsCursorError result = new ListDocsCursorError(); + result._tag = _tag; + result.cursorErrorValue = cursorErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListDocsCursorError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CURSOR_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CURSOR_ERROR}, {@code false} otherwise. + */ + public boolean isCursorError() { + return this._tag == Tag.CURSOR_ERROR; + } + + /** + * Returns an instance of {@code ListDocsCursorError} that has its tag set + * to {@link Tag#CURSOR_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListDocsCursorError} with its tag set to + * {@link Tag#CURSOR_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListDocsCursorError cursorError(PaperApiCursorError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListDocsCursorError().withTagAndCursorError(Tag.CURSOR_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#CURSOR_ERROR}. + * + * @return The {@link PaperApiCursorError} value associated with this + * instance if {@link #isCursorError} is {@code true}. + * + * @throws IllegalStateException If {@link #isCursorError} is {@code + * false}. + */ + public PaperApiCursorError getCursorErrorValue() { + if (this._tag != Tag.CURSOR_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.CURSOR_ERROR, but was Tag." + this._tag.name()); + } + return cursorErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.cursorErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListDocsCursorError) { + ListDocsCursorError other = (ListDocsCursorError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case CURSOR_ERROR: + return (this.cursorErrorValue == other.cursorErrorValue) || (this.cursorErrorValue.equals(other.cursorErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListDocsCursorError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case CURSOR_ERROR: { + g.writeStartObject(); + writeTag("cursor_error", g); + g.writeFieldName("cursor_error"); + PaperApiCursorError.Serializer.INSTANCE.serialize(value.cursorErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListDocsCursorError deserialize(JsonParser p) throws IOException, JsonParseException { + ListDocsCursorError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("cursor_error".equals(tag)) { + PaperApiCursorError fieldValue = null; + expectField("cursor_error", p); + fieldValue = PaperApiCursorError.Serializer.INSTANCE.deserialize(p); + value = ListDocsCursorError.cursorError(fieldValue); + } + else { + value = ListDocsCursorError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListDocsCursorErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListDocsCursorErrorException.java new file mode 100644 index 000000000..8e1760f57 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListDocsCursorErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListDocsCursorError} + * error. + * + *

This exception is raised by {@link + * DbxUserPaperRequests#docsListContinue(String)}.

+ */ +public class ListDocsCursorErrorException extends DbxApiException { + // exception for routes: + // 2/paper/docs/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserPaperRequests#docsListContinue(String)}. + */ + public final ListDocsCursorError errorValue; + + public ListDocsCursorErrorException(String routeName, String requestId, LocalizedText userMessage, ListDocsCursorError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsArgs.java new file mode 100644 index 000000000..523231465 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsArgs.java @@ -0,0 +1,388 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListPaperDocsArgs { + // struct paper.ListPaperDocsArgs (paper.stone) + + @Nonnull + protected final ListPaperDocsFilterBy filterBy; + @Nonnull + protected final ListPaperDocsSortBy sortBy; + @Nonnull + protected final ListPaperDocsSortOrder sortOrder; + protected final int limit; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param filterBy Allows user to specify how the Paper docs should be + * filtered. Must not be {@code null}. + * @param sortBy Allows user to specify how the Paper docs should be + * sorted. Must not be {@code null}. + * @param sortOrder Allows user to specify the sort order of the result. + * Must not be {@code null}. + * @param limit Size limit per batch. The maximum number of docs that can + * be retrieved per batch is 1000. Higher value results in invalid + * arguments error. Must be greater than or equal to 1 and be less than + * or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListPaperDocsArgs(@Nonnull ListPaperDocsFilterBy filterBy, @Nonnull ListPaperDocsSortBy sortBy, @Nonnull ListPaperDocsSortOrder sortOrder, int limit) { + if (filterBy == null) { + throw new IllegalArgumentException("Required value for 'filterBy' is null"); + } + this.filterBy = filterBy; + if (sortBy == null) { + throw new IllegalArgumentException("Required value for 'sortBy' is null"); + } + this.sortBy = sortBy; + if (sortOrder == null) { + throw new IllegalArgumentException("Required value for 'sortOrder' is null"); + } + this.sortOrder = sortOrder; + if (limit < 1) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1"); + } + if (limit > 1000) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public ListPaperDocsArgs() { + this(ListPaperDocsFilterBy.DOCS_ACCESSED, ListPaperDocsSortBy.ACCESSED, ListPaperDocsSortOrder.ASCENDING, 1000); + } + + /** + * Allows user to specify how the Paper docs should be filtered. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ListPaperDocsFilterBy.DOCS_ACCESSED. + */ + @Nonnull + public ListPaperDocsFilterBy getFilterBy() { + return filterBy; + } + + /** + * Allows user to specify how the Paper docs should be sorted. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ListPaperDocsSortBy.ACCESSED. + */ + @Nonnull + public ListPaperDocsSortBy getSortBy() { + return sortBy; + } + + /** + * Allows user to specify the sort order of the result. + * + * @return value for this field, or {@code null} if not present. Defaults to + * ListPaperDocsSortOrder.ASCENDING. + */ + @Nonnull + public ListPaperDocsSortOrder getSortOrder() { + return sortOrder; + } + + /** + * Size limit per batch. The maximum number of docs that can be retrieved + * per batch is 1000. Higher value results in invalid arguments error. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000. + */ + public int getLimit() { + return limit; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListPaperDocsArgs}. + */ + public static class Builder { + + protected ListPaperDocsFilterBy filterBy; + protected ListPaperDocsSortBy sortBy; + protected ListPaperDocsSortOrder sortOrder; + protected int limit; + + protected Builder() { + this.filterBy = ListPaperDocsFilterBy.DOCS_ACCESSED; + this.sortBy = ListPaperDocsSortBy.ACCESSED; + this.sortOrder = ListPaperDocsSortOrder.ASCENDING; + this.limit = 1000; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListPaperDocsFilterBy.DOCS_ACCESSED}.

+ * + * @param filterBy Allows user to specify how the Paper docs should be + * filtered. Must not be {@code null}. Defaults to {@code + * ListPaperDocsFilterBy.DOCS_ACCESSED} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFilterBy(ListPaperDocsFilterBy filterBy) { + if (filterBy != null) { + this.filterBy = filterBy; + } + else { + this.filterBy = ListPaperDocsFilterBy.DOCS_ACCESSED; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListPaperDocsSortBy.ACCESSED}.

+ * + * @param sortBy Allows user to specify how the Paper docs should be + * sorted. Must not be {@code null}. Defaults to {@code + * ListPaperDocsSortBy.ACCESSED} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSortBy(ListPaperDocsSortBy sortBy) { + if (sortBy != null) { + this.sortBy = sortBy; + } + else { + this.sortBy = ListPaperDocsSortBy.ACCESSED; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * ListPaperDocsSortOrder.ASCENDING}.

+ * + * @param sortOrder Allows user to specify the sort order of the + * result. Must not be {@code null}. Defaults to {@code + * ListPaperDocsSortOrder.ASCENDING} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSortOrder(ListPaperDocsSortOrder sortOrder) { + if (sortOrder != null) { + this.sortOrder = sortOrder; + } + else { + this.sortOrder = ListPaperDocsSortOrder.ASCENDING; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000}. + *

+ * + * @param limit Size limit per batch. The maximum number of docs that + * can be retrieved per batch is 1000. Higher value results in + * invalid arguments error. Must be greater than or equal to 1 and + * be less than or equal to 1000. Defaults to {@code 1000} when set + * to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Integer limit) { + if (limit < 1) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1"); + } + if (limit > 1000) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 1000; + } + return this; + } + + /** + * Builds an instance of {@link ListPaperDocsArgs} configured with this + * builder's values + * + * @return new instance of {@link ListPaperDocsArgs} + */ + public ListPaperDocsArgs build() { + return new ListPaperDocsArgs(filterBy, sortBy, sortOrder, limit); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.filterBy, + this.sortBy, + this.sortOrder, + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListPaperDocsArgs other = (ListPaperDocsArgs) obj; + return ((this.filterBy == other.filterBy) || (this.filterBy.equals(other.filterBy))) + && ((this.sortBy == other.sortBy) || (this.sortBy.equals(other.sortBy))) + && ((this.sortOrder == other.sortOrder) || (this.sortOrder.equals(other.sortOrder))) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListPaperDocsArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("filter_by"); + ListPaperDocsFilterBy.Serializer.INSTANCE.serialize(value.filterBy, g); + g.writeFieldName("sort_by"); + ListPaperDocsSortBy.Serializer.INSTANCE.serialize(value.sortBy, g); + g.writeFieldName("sort_order"); + ListPaperDocsSortOrder.Serializer.INSTANCE.serialize(value.sortOrder, g); + g.writeFieldName("limit"); + StoneSerializers.int32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListPaperDocsArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListPaperDocsArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ListPaperDocsFilterBy f_filterBy = ListPaperDocsFilterBy.DOCS_ACCESSED; + ListPaperDocsSortBy f_sortBy = ListPaperDocsSortBy.ACCESSED; + ListPaperDocsSortOrder f_sortOrder = ListPaperDocsSortOrder.ASCENDING; + Integer f_limit = 1000; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("filter_by".equals(field)) { + f_filterBy = ListPaperDocsFilterBy.Serializer.INSTANCE.deserialize(p); + } + else if ("sort_by".equals(field)) { + f_sortBy = ListPaperDocsSortBy.Serializer.INSTANCE.deserialize(p); + } + else if ("sort_order".equals(field)) { + f_sortOrder = ListPaperDocsSortOrder.Serializer.INSTANCE.deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.int32().deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListPaperDocsArgs(f_filterBy, f_sortBy, f_sortOrder, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsContinueArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsContinueArgs.java new file mode 100644 index 000000000..4a8d45ff3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsContinueArgs.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListPaperDocsContinueArgs { + // struct paper.ListPaperDocsContinueArgs (paper.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor obtained from {@link + * DbxUserPaperRequests#docsList} or {@link + * DbxUserPaperRequests#docsListContinue(String)}. Allows for + * pagination. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListPaperDocsContinueArgs(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The cursor obtained from {@link DbxUserPaperRequests#docsList} or {@link + * DbxUserPaperRequests#docsListContinue(String)}. Allows for pagination. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListPaperDocsContinueArgs other = (ListPaperDocsContinueArgs) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListPaperDocsContinueArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListPaperDocsContinueArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListPaperDocsContinueArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListPaperDocsContinueArgs(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsFilterBy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsFilterBy.java new file mode 100644 index 000000000..23f5f2303 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsFilterBy.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListPaperDocsFilterBy { + // union paper.ListPaperDocsFilterBy (paper.stone) + /** + * Fetches all Paper doc IDs that the user has ever accessed. + */ + DOCS_ACCESSED, + /** + * Fetches only the Paper doc IDs that the user has created. + */ + DOCS_CREATED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListPaperDocsFilterBy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DOCS_ACCESSED: { + g.writeString("docs_accessed"); + break; + } + case DOCS_CREATED: { + g.writeString("docs_created"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListPaperDocsFilterBy deserialize(JsonParser p) throws IOException, JsonParseException { + ListPaperDocsFilterBy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("docs_accessed".equals(tag)) { + value = ListPaperDocsFilterBy.DOCS_ACCESSED; + } + else if ("docs_created".equals(tag)) { + value = ListPaperDocsFilterBy.DOCS_CREATED; + } + else { + value = ListPaperDocsFilterBy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsResponse.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsResponse.java new file mode 100644 index 000000000..4150b62fb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsResponse.java @@ -0,0 +1,226 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class ListPaperDocsResponse { + // struct paper.ListPaperDocsResponse (paper.stone) + + @Nonnull + protected final List docIds; + @Nonnull + protected final Cursor cursor; + protected final boolean hasMore; + + /** + * + * @param docIds The list of Paper doc IDs that can be used to access the + * given Paper docs or supplied to other API methods. The list is sorted + * in the order specified by the initial call to {@link + * DbxUserPaperRequests#docsList}. Must not contain a {@code null} item + * and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxUserPaperRequests#docsListContinue(String)} to paginate through + * all files. The cursor preserves all properties as specified in the + * original call to {@link DbxUserPaperRequests#docsList}. Must not be + * {@code null}. + * @param hasMore Will be set to True if a subsequent call with the + * provided cursor to {@link + * DbxUserPaperRequests#docsListContinue(String)} returns immediately + * with some results. If set to False please allow some delay before + * making another call to {@link + * DbxUserPaperRequests#docsListContinue(String)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListPaperDocsResponse(@Nonnull List docIds, @Nonnull Cursor cursor, boolean hasMore) { + if (docIds == null) { + throw new IllegalArgumentException("Required value for 'docIds' is null"); + } + for (String x : docIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'docIds' is null"); + } + } + this.docIds = docIds; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * The list of Paper doc IDs that can be used to access the given Paper docs + * or supplied to other API methods. The list is sorted in the order + * specified by the initial call to {@link DbxUserPaperRequests#docsList}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getDocIds() { + return docIds; + } + + /** + * Pass the cursor into {@link + * DbxUserPaperRequests#docsListContinue(String)} to paginate through all + * files. The cursor preserves all properties as specified in the original + * call to {@link DbxUserPaperRequests#docsList}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Cursor getCursor() { + return cursor; + } + + /** + * Will be set to True if a subsequent call with the provided cursor to + * {@link DbxUserPaperRequests#docsListContinue(String)} returns immediately + * with some results. If set to False please allow some delay before making + * another call to {@link DbxUserPaperRequests#docsListContinue(String)}. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.docIds, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListPaperDocsResponse other = (ListPaperDocsResponse) obj; + return ((this.docIds == other.docIds) || (this.docIds.equals(other.docIds))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListPaperDocsResponse value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.docIds, g); + g.writeFieldName("cursor"); + Cursor.Serializer.INSTANCE.serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListPaperDocsResponse deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListPaperDocsResponse value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_docIds = null; + Cursor f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_ids".equals(field)) { + f_docIds = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = Cursor.Serializer.INSTANCE.deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docIds == null) { + throw new JsonParseException(p, "Required field \"doc_ids\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListPaperDocsResponse(f_docIds, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsSortBy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsSortBy.java new file mode 100644 index 000000000..47001c805 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsSortBy.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListPaperDocsSortBy { + // union paper.ListPaperDocsSortBy (paper.stone) + /** + * Sorts the Paper docs by the time they were last accessed. + */ + ACCESSED, + /** + * Sorts the Paper docs by the time they were last modified. + */ + MODIFIED, + /** + * Sorts the Paper docs by the creation time. + */ + CREATED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListPaperDocsSortBy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACCESSED: { + g.writeString("accessed"); + break; + } + case MODIFIED: { + g.writeString("modified"); + break; + } + case CREATED: { + g.writeString("created"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListPaperDocsSortBy deserialize(JsonParser p) throws IOException, JsonParseException { + ListPaperDocsSortBy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("accessed".equals(tag)) { + value = ListPaperDocsSortBy.ACCESSED; + } + else if ("modified".equals(tag)) { + value = ListPaperDocsSortBy.MODIFIED; + } + else if ("created".equals(tag)) { + value = ListPaperDocsSortBy.CREATED; + } + else { + value = ListPaperDocsSortBy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsSortOrder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsSortOrder.java new file mode 100644 index 000000000..69bbefa76 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListPaperDocsSortOrder.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListPaperDocsSortOrder { + // union paper.ListPaperDocsSortOrder (paper.stone) + /** + * Sorts the search result in ascending order. + */ + ASCENDING, + /** + * Sorts the search result in descending order. + */ + DESCENDING, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListPaperDocsSortOrder value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ASCENDING: { + g.writeString("ascending"); + break; + } + case DESCENDING: { + g.writeString("descending"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListPaperDocsSortOrder deserialize(JsonParser p) throws IOException, JsonParseException { + ListPaperDocsSortOrder value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("ascending".equals(tag)) { + value = ListPaperDocsSortOrder.ASCENDING; + } + else if ("descending".equals(tag)) { + value = ListPaperDocsSortOrder.DESCENDING; + } + else { + value = ListPaperDocsSortOrder.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersCursorError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersCursorError.java new file mode 100644 index 000000000..c395be5f0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersCursorError.java @@ -0,0 +1,343 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ListUsersCursorError { + // union paper.ListUsersCursorError (paper.stone) + + /** + * Discriminating tag type for {@link ListUsersCursorError}. + */ + public enum Tag { + /** + * Your account does not have permissions to perform this action. This + * may be due to it only having access to Paper as files in the Dropbox + * filesystem. For more information, refer to the Paper + * Migration Guide. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * The required doc was not found. + */ + DOC_NOT_FOUND, + CURSOR_ERROR; // PaperApiCursorError + } + + /** + * Your account does not have permissions to perform this action. This may + * be due to it only having access to Paper as files in the Dropbox + * filesystem. For more information, refer to the Paper + * Migration Guide. + */ + public static final ListUsersCursorError INSUFFICIENT_PERMISSIONS = new ListUsersCursorError().withTag(Tag.INSUFFICIENT_PERMISSIONS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListUsersCursorError OTHER = new ListUsersCursorError().withTag(Tag.OTHER); + /** + * The required doc was not found. + */ + public static final ListUsersCursorError DOC_NOT_FOUND = new ListUsersCursorError().withTag(Tag.DOC_NOT_FOUND); + + private Tag _tag; + private PaperApiCursorError cursorErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListUsersCursorError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListUsersCursorError withTag(Tag _tag) { + ListUsersCursorError result = new ListUsersCursorError(); + result._tag = _tag; + return result; + } + + /** + * + * @param cursorErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListUsersCursorError withTagAndCursorError(Tag _tag, PaperApiCursorError cursorErrorValue) { + ListUsersCursorError result = new ListUsersCursorError(); + result._tag = _tag; + result.cursorErrorValue = cursorErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListUsersCursorError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_PERMISSIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_PERMISSIONS}, {@code false} otherwise. + */ + public boolean isInsufficientPermissions() { + return this._tag == Tag.INSUFFICIENT_PERMISSIONS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOC_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOC_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isDocNotFound() { + return this._tag == Tag.DOC_NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CURSOR_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CURSOR_ERROR}, {@code false} otherwise. + */ + public boolean isCursorError() { + return this._tag == Tag.CURSOR_ERROR; + } + + /** + * Returns an instance of {@code ListUsersCursorError} that has its tag set + * to {@link Tag#CURSOR_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListUsersCursorError} with its tag set to + * {@link Tag#CURSOR_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListUsersCursorError cursorError(PaperApiCursorError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListUsersCursorError().withTagAndCursorError(Tag.CURSOR_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#CURSOR_ERROR}. + * + * @return The {@link PaperApiCursorError} value associated with this + * instance if {@link #isCursorError} is {@code true}. + * + * @throws IllegalStateException If {@link #isCursorError} is {@code + * false}. + */ + public PaperApiCursorError getCursorErrorValue() { + if (this._tag != Tag.CURSOR_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.CURSOR_ERROR, but was Tag." + this._tag.name()); + } + return cursorErrorValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.cursorErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListUsersCursorError) { + ListUsersCursorError other = (ListUsersCursorError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INSUFFICIENT_PERMISSIONS: + return true; + case OTHER: + return true; + case DOC_NOT_FOUND: + return true; + case CURSOR_ERROR: + return (this.cursorErrorValue == other.cursorErrorValue) || (this.cursorErrorValue.equals(other.cursorErrorValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListUsersCursorError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case DOC_NOT_FOUND: { + g.writeString("doc_not_found"); + break; + } + case CURSOR_ERROR: { + g.writeStartObject(); + writeTag("cursor_error", g); + g.writeFieldName("cursor_error"); + PaperApiCursorError.Serializer.INSTANCE.serialize(value.cursorErrorValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ListUsersCursorError deserialize(JsonParser p) throws IOException, JsonParseException { + ListUsersCursorError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("insufficient_permissions".equals(tag)) { + value = ListUsersCursorError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = ListUsersCursorError.OTHER; + } + else if ("doc_not_found".equals(tag)) { + value = ListUsersCursorError.DOC_NOT_FOUND; + } + else if ("cursor_error".equals(tag)) { + PaperApiCursorError fieldValue = null; + expectField("cursor_error", p); + fieldValue = PaperApiCursorError.Serializer.INSTANCE.deserialize(p); + value = ListUsersCursorError.cursorError(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersCursorErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersCursorErrorException.java new file mode 100644 index 000000000..ec8080896 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersCursorErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListUsersCursorError} + * error. + * + *

This exception is raised by {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)} and {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)}.

+ */ +public class ListUsersCursorErrorException extends DbxApiException { + // exception for routes: + // 2/paper/docs/folder_users/list/continue + // 2/paper/docs/users/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)} and + * {@link DbxUserPaperRequests#docsUsersListContinue(String,String)}. + */ + public final ListUsersCursorError errorValue; + + public ListUsersCursorErrorException(String routeName, String requestId, LocalizedText userMessage, ListUsersCursorError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderArgs.java new file mode 100644 index 000000000..b9f695763 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderArgs.java @@ -0,0 +1,188 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListUsersOnFolderArgs extends RefPaperDoc { + // struct paper.ListUsersOnFolderArgs (paper.stone) + + protected final int limit; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param limit Size limit per batch. The maximum number of users that can + * be retrieved per batch is 1000. Higher value results in invalid + * arguments error. Must be greater than or equal to 1 and be less than + * or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnFolderArgs(@Nonnull String docId, int limit) { + super(docId); + if (limit < 1) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1"); + } + if (limit > 1000) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnFolderArgs(@Nonnull String docId) { + this(docId, 1000); + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * Size limit per batch. The maximum number of users that can be retrieved + * per batch is 1000. Higher value results in invalid arguments error. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000. + */ + public int getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListUsersOnFolderArgs other = (ListUsersOnFolderArgs) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListUsersOnFolderArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("limit"); + StoneSerializers.int32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListUsersOnFolderArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListUsersOnFolderArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + Integer f_limit = 1000; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.int32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + value = new ListUsersOnFolderArgs(f_docId, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderContinueArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderContinueArgs.java new file mode 100644 index 000000000..01749c090 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderContinueArgs.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListUsersOnFolderContinueArgs extends RefPaperDoc { + // struct paper.ListUsersOnFolderContinueArgs (paper.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param cursor The cursor obtained from {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)} or {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)}. + * Allows for pagination. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnFolderContinueArgs(@Nonnull String docId, @Nonnull String cursor) { + super(docId); + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * The cursor obtained from {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)} or {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)}. Allows + * for pagination. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListUsersOnFolderContinueArgs other = (ListUsersOnFolderContinueArgs) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListUsersOnFolderContinueArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListUsersOnFolderContinueArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListUsersOnFolderContinueArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListUsersOnFolderContinueArgs(f_docId, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderResponse.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderResponse.java new file mode 100644 index 000000000..c7468b281 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnFolderResponse.java @@ -0,0 +1,260 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.InviteeInfo; +import com.dropbox.core.v2.sharing.UserInfo; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class ListUsersOnFolderResponse { + // struct paper.ListUsersOnFolderResponse (paper.stone) + + @Nonnull + protected final List invitees; + @Nonnull + protected final List users; + @Nonnull + protected final Cursor cursor; + protected final boolean hasMore; + + /** + * + * @param invitees List of email addresses that are invited on the Paper + * folder. Must not contain a {@code null} item and not be {@code null}. + * @param users List of users that are invited on the Paper folder. Must + * not contain a {@code null} item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)} to + * paginate through all users. The cursor preserves all properties as + * specified in the original call to {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)}. Must not be + * {@code null}. + * @param hasMore Will be set to True if a subsequent call with the + * provided cursor to {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)} + * returns immediately with some results. If set to False please allow + * some delay before making another call to {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnFolderResponse(@Nonnull List invitees, @Nonnull List users, @Nonnull Cursor cursor, boolean hasMore) { + if (invitees == null) { + throw new IllegalArgumentException("Required value for 'invitees' is null"); + } + for (InviteeInfo x : invitees) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitees' is null"); + } + } + this.invitees = invitees; + if (users == null) { + throw new IllegalArgumentException("Required value for 'users' is null"); + } + for (UserInfo x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + this.users = users; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * List of email addresses that are invited on the Paper folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getInvitees() { + return invitees; + } + + /** + * List of users that are invited on the Paper folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsers() { + return users; + } + + /** + * Pass the cursor into {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)} to + * paginate through all users. The cursor preserves all properties as + * specified in the original call to {@link + * DbxUserPaperRequests#docsFolderUsersList(String,int)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Cursor getCursor() { + return cursor; + } + + /** + * Will be set to True if a subsequent call with the provided cursor to + * {@link DbxUserPaperRequests#docsFolderUsersListContinue(String,String)} + * returns immediately with some results. If set to False please allow some + * delay before making another call to {@link + * DbxUserPaperRequests#docsFolderUsersListContinue(String,String)}. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.invitees, + this.users, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListUsersOnFolderResponse other = (ListUsersOnFolderResponse) obj; + return ((this.invitees == other.invitees) || (this.invitees.equals(other.invitees))) + && ((this.users == other.users) || (this.users.equals(other.users))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListUsersOnFolderResponse value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("invitees"); + StoneSerializers.list(InviteeInfo.Serializer.INSTANCE).serialize(value.invitees, g); + g.writeFieldName("users"); + StoneSerializers.list(UserInfo.Serializer.INSTANCE).serialize(value.users, g); + g.writeFieldName("cursor"); + Cursor.Serializer.INSTANCE.serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListUsersOnFolderResponse deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListUsersOnFolderResponse value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_invitees = null; + List f_users = null; + Cursor f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("invitees".equals(field)) { + f_invitees = StoneSerializers.list(InviteeInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("users".equals(field)) { + f_users = StoneSerializers.list(UserInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = Cursor.Serializer.INSTANCE.deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_invitees == null) { + throw new JsonParseException(p, "Required field \"invitees\" missing."); + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListUsersOnFolderResponse(f_invitees, f_users, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocArgs.java new file mode 100644 index 000000000..3319dd3bc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocArgs.java @@ -0,0 +1,320 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListUsersOnPaperDocArgs extends RefPaperDoc { + // struct paper.ListUsersOnPaperDocArgs (paper.stone) + + protected final int limit; + @Nonnull + protected final UserOnPaperDocFilter filterBy; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param limit Size limit per batch. The maximum number of users that can + * be retrieved per batch is 1000. Higher value results in invalid + * arguments error. Must be greater than or equal to 1 and be less than + * or equal to 1000. + * @param filterBy Specify this attribute if you want to obtain users that + * have already accessed the Paper doc. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnPaperDocArgs(@Nonnull String docId, int limit, @Nonnull UserOnPaperDocFilter filterBy) { + super(docId); + if (limit < 1) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1"); + } + if (limit > 1000) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000"); + } + this.limit = limit; + if (filterBy == null) { + throw new IllegalArgumentException("Required value for 'filterBy' is null"); + } + this.filterBy = filterBy; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnPaperDocArgs(@Nonnull String docId) { + this(docId, 1000, UserOnPaperDocFilter.SHARED); + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * Size limit per batch. The maximum number of users that can be retrieved + * per batch is 1000. Higher value results in invalid arguments error. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000. + */ + public int getLimit() { + return limit; + } + + /** + * Specify this attribute if you want to obtain users that have already + * accessed the Paper doc. + * + * @return value for this field, or {@code null} if not present. Defaults to + * UserOnPaperDocFilter.SHARED. + */ + @Nonnull + public UserOnPaperDocFilter getFilterBy() { + return filterBy; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String docId) { + return new Builder(docId); + } + + /** + * Builder for {@link ListUsersOnPaperDocArgs}. + */ + public static class Builder { + protected final String docId; + + protected int limit; + protected UserOnPaperDocFilter filterBy; + + protected Builder(String docId) { + if (docId == null) { + throw new IllegalArgumentException("Required value for 'docId' is null"); + } + this.docId = docId; + this.limit = 1000; + this.filterBy = UserOnPaperDocFilter.SHARED; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000}. + *

+ * + * @param limit Size limit per batch. The maximum number of users that + * can be retrieved per batch is 1000. Higher value results in + * invalid arguments error. Must be greater than or equal to 1 and + * be less than or equal to 1000. Defaults to {@code 1000} when set + * to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Integer limit) { + if (limit < 1) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1"); + } + if (limit > 1000) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 1000; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * UserOnPaperDocFilter.SHARED}.

+ * + * @param filterBy Specify this attribute if you want to obtain users + * that have already accessed the Paper doc. Must not be {@code + * null}. Defaults to {@code UserOnPaperDocFilter.SHARED} when set + * to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFilterBy(UserOnPaperDocFilter filterBy) { + if (filterBy != null) { + this.filterBy = filterBy; + } + else { + this.filterBy = UserOnPaperDocFilter.SHARED; + } + return this; + } + + /** + * Builds an instance of {@link ListUsersOnPaperDocArgs} configured with + * this builder's values + * + * @return new instance of {@link ListUsersOnPaperDocArgs} + */ + public ListUsersOnPaperDocArgs build() { + return new ListUsersOnPaperDocArgs(docId, limit, filterBy); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit, + this.filterBy + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListUsersOnPaperDocArgs other = (ListUsersOnPaperDocArgs) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && (this.limit == other.limit) + && ((this.filterBy == other.filterBy) || (this.filterBy.equals(other.filterBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListUsersOnPaperDocArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("limit"); + StoneSerializers.int32().serialize(value.limit, g); + g.writeFieldName("filter_by"); + UserOnPaperDocFilter.Serializer.INSTANCE.serialize(value.filterBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListUsersOnPaperDocArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListUsersOnPaperDocArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + Integer f_limit = 1000; + UserOnPaperDocFilter f_filterBy = UserOnPaperDocFilter.SHARED; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.int32().deserialize(p); + } + else if ("filter_by".equals(field)) { + f_filterBy = UserOnPaperDocFilter.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + value = new ListUsersOnPaperDocArgs(f_docId, f_limit, f_filterBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocContinueArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocContinueArgs.java new file mode 100644 index 000000000..40846d3b2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocContinueArgs.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListUsersOnPaperDocContinueArgs extends RefPaperDoc { + // struct paper.ListUsersOnPaperDocContinueArgs (paper.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param cursor The cursor obtained from {@link + * DbxUserPaperRequests#docsUsersList(String)} or {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)}. Allows + * for pagination. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnPaperDocContinueArgs(@Nonnull String docId, @Nonnull String cursor) { + super(docId); + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * The cursor obtained from {@link + * DbxUserPaperRequests#docsUsersList(String)} or {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)}. Allows for + * pagination. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListUsersOnPaperDocContinueArgs other = (ListUsersOnPaperDocContinueArgs) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListUsersOnPaperDocContinueArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListUsersOnPaperDocContinueArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListUsersOnPaperDocContinueArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListUsersOnPaperDocContinueArgs(f_docId, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocResponse.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocResponse.java new file mode 100644 index 000000000..74a61936f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListUsersOnPaperDocResponse.java @@ -0,0 +1,291 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.UserInfo; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class ListUsersOnPaperDocResponse { + // struct paper.ListUsersOnPaperDocResponse (paper.stone) + + @Nonnull + protected final List invitees; + @Nonnull + protected final List users; + @Nonnull + protected final UserInfo docOwner; + @Nonnull + protected final Cursor cursor; + protected final boolean hasMore; + + /** + * + * @param invitees List of email addresses with their respective permission + * levels that are invited on the Paper doc. Must not contain a {@code + * null} item and not be {@code null}. + * @param users List of users with their respective permission levels that + * are invited on the Paper folder. Must not contain a {@code null} item + * and not be {@code null}. + * @param docOwner The Paper doc owner. This field is populated on every + * single response. Must not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)} to + * paginate through all users. The cursor preserves all properties as + * specified in the original call to {@link + * DbxUserPaperRequests#docsUsersList(String)}. Must not be {@code + * null}. + * @param hasMore Will be set to True if a subsequent call with the + * provided cursor to {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)} returns + * immediately with some results. If set to False please allow some + * delay before making another call to {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListUsersOnPaperDocResponse(@Nonnull List invitees, @Nonnull List users, @Nonnull UserInfo docOwner, @Nonnull Cursor cursor, boolean hasMore) { + if (invitees == null) { + throw new IllegalArgumentException("Required value for 'invitees' is null"); + } + for (InviteeInfoWithPermissionLevel x : invitees) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitees' is null"); + } + } + this.invitees = invitees; + if (users == null) { + throw new IllegalArgumentException("Required value for 'users' is null"); + } + for (UserInfoWithPermissionLevel x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + this.users = users; + if (docOwner == null) { + throw new IllegalArgumentException("Required value for 'docOwner' is null"); + } + this.docOwner = docOwner; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * List of email addresses with their respective permission levels that are + * invited on the Paper doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getInvitees() { + return invitees; + } + + /** + * List of users with their respective permission levels that are invited on + * the Paper folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsers() { + return users; + } + + /** + * The Paper doc owner. This field is populated on every single response. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserInfo getDocOwner() { + return docOwner; + } + + /** + * Pass the cursor into {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)} to paginate + * through all users. The cursor preserves all properties as specified in + * the original call to {@link DbxUserPaperRequests#docsUsersList(String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Cursor getCursor() { + return cursor; + } + + /** + * Will be set to True if a subsequent call with the provided cursor to + * {@link DbxUserPaperRequests#docsUsersListContinue(String,String)} returns + * immediately with some results. If set to False please allow some delay + * before making another call to {@link + * DbxUserPaperRequests#docsUsersListContinue(String,String)}. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.invitees, + this.users, + this.docOwner, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListUsersOnPaperDocResponse other = (ListUsersOnPaperDocResponse) obj; + return ((this.invitees == other.invitees) || (this.invitees.equals(other.invitees))) + && ((this.users == other.users) || (this.users.equals(other.users))) + && ((this.docOwner == other.docOwner) || (this.docOwner.equals(other.docOwner))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListUsersOnPaperDocResponse value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("invitees"); + StoneSerializers.list(InviteeInfoWithPermissionLevel.Serializer.INSTANCE).serialize(value.invitees, g); + g.writeFieldName("users"); + StoneSerializers.list(UserInfoWithPermissionLevel.Serializer.INSTANCE).serialize(value.users, g); + g.writeFieldName("doc_owner"); + UserInfo.Serializer.INSTANCE.serialize(value.docOwner, g); + g.writeFieldName("cursor"); + Cursor.Serializer.INSTANCE.serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListUsersOnPaperDocResponse deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListUsersOnPaperDocResponse value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_invitees = null; + List f_users = null; + UserInfo f_docOwner = null; + Cursor f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("invitees".equals(field)) { + f_invitees = StoneSerializers.list(InviteeInfoWithPermissionLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("users".equals(field)) { + f_users = StoneSerializers.list(UserInfoWithPermissionLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("doc_owner".equals(field)) { + f_docOwner = UserInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = Cursor.Serializer.INSTANCE.deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_invitees == null) { + throw new JsonParseException(p, "Required field \"invitees\" missing."); + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + if (f_docOwner == null) { + throw new JsonParseException(p, "Required field \"doc_owner\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListUsersOnPaperDocResponse(f_invitees, f_users, f_docOwner, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperApiCursorError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperApiCursorError.java new file mode 100644 index 000000000..49eb41eba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperApiCursorError.java @@ -0,0 +1,118 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperApiCursorError { + // union paper.PaperApiCursorError (paper.stone) + /** + * The provided cursor is expired. + */ + EXPIRED_CURSOR, + /** + * The provided cursor is invalid. + */ + INVALID_CURSOR, + /** + * The provided cursor contains invalid user. + */ + WRONG_USER_IN_CURSOR, + /** + * Indicates that the cursor has been invalidated. Call the corresponding + * non-continue endpoint to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperApiCursorError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EXPIRED_CURSOR: { + g.writeString("expired_cursor"); + break; + } + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + case WRONG_USER_IN_CURSOR: { + g.writeString("wrong_user_in_cursor"); + break; + } + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperApiCursorError deserialize(JsonParser p) throws IOException, JsonParseException { + PaperApiCursorError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("expired_cursor".equals(tag)) { + value = PaperApiCursorError.EXPIRED_CURSOR; + } + else if ("invalid_cursor".equals(tag)) { + value = PaperApiCursorError.INVALID_CURSOR; + } + else if ("wrong_user_in_cursor".equals(tag)) { + value = PaperApiCursorError.WRONG_USER_IN_CURSOR; + } + else if ("reset".equals(tag)) { + value = PaperApiCursorError.RESET; + } + else { + value = PaperApiCursorError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateArgs.java new file mode 100644 index 000000000..dfe92c2ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateArgs.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class PaperDocCreateArgs { + // struct paper.PaperDocCreateArgs (paper.stone) + + @Nullable + protected final String parentFolderId; + @Nonnull + protected final ImportFormat importFormat; + + /** + * + * @param importFormat The format of provided data. Must not be {@code + * null}. + * @param parentFolderId The Paper folder ID where the Paper document + * should be created. The API user has to have write access to this + * folder or error is thrown. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocCreateArgs(@Nonnull ImportFormat importFormat, @Nullable String parentFolderId) { + this.parentFolderId = parentFolderId; + if (importFormat == null) { + throw new IllegalArgumentException("Required value for 'importFormat' is null"); + } + this.importFormat = importFormat; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param importFormat The format of provided data. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocCreateArgs(@Nonnull ImportFormat importFormat) { + this(importFormat, null); + } + + /** + * The format of provided data. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ImportFormat getImportFormat() { + return importFormat; + } + + /** + * The Paper folder ID where the Paper document should be created. The API + * user has to have write access to this folder or error is thrown. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentFolderId() { + return parentFolderId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.parentFolderId, + this.importFormat + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocCreateArgs other = (PaperDocCreateArgs) obj; + return ((this.importFormat == other.importFormat) || (this.importFormat.equals(other.importFormat))) + && ((this.parentFolderId == other.parentFolderId) || (this.parentFolderId != null && this.parentFolderId.equals(other.parentFolderId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocCreateArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("import_format"); + ImportFormat.Serializer.INSTANCE.serialize(value.importFormat, g); + if (value.parentFolderId != null) { + g.writeFieldName("parent_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentFolderId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocCreateArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocCreateArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ImportFormat f_importFormat = null; + String f_parentFolderId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("import_format".equals(field)) { + f_importFormat = ImportFormat.Serializer.INSTANCE.deserialize(p); + } + else if ("parent_folder_id".equals(field)) { + f_parentFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_importFormat == null) { + throw new JsonParseException(p, "Required field \"import_format\" missing."); + } + value = new PaperDocCreateArgs(f_importFormat, f_parentFolderId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateError.java new file mode 100644 index 000000000..b9219da0c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateError.java @@ -0,0 +1,141 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperDocCreateError { + // union paper.PaperDocCreateError (paper.stone) + /** + * Your account does not have permissions to perform this action. This may + * be due to it only having access to Paper as files in the Dropbox + * filesystem. For more information, refer to the Paper + * Migration Guide. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The provided content was malformed and cannot be imported to Paper. + */ + CONTENT_MALFORMED, + /** + * The specified Paper folder is cannot be found. + */ + FOLDER_NOT_FOUND, + /** + * The newly created Paper doc would be too large. Please split the content + * into multiple docs. + */ + DOC_LENGTH_EXCEEDED, + /** + * The imported document contains an image that is too large. The current + * limit is 1MB. This only applies to HTML with data URI. + */ + IMAGE_SIZE_EXCEEDED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocCreateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case CONTENT_MALFORMED: { + g.writeString("content_malformed"); + break; + } + case FOLDER_NOT_FOUND: { + g.writeString("folder_not_found"); + break; + } + case DOC_LENGTH_EXCEEDED: { + g.writeString("doc_length_exceeded"); + break; + } + case IMAGE_SIZE_EXCEEDED: { + g.writeString("image_size_exceeded"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public PaperDocCreateError deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDocCreateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("insufficient_permissions".equals(tag)) { + value = PaperDocCreateError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = PaperDocCreateError.OTHER; + } + else if ("content_malformed".equals(tag)) { + value = PaperDocCreateError.CONTENT_MALFORMED; + } + else if ("folder_not_found".equals(tag)) { + value = PaperDocCreateError.FOLDER_NOT_FOUND; + } + else if ("doc_length_exceeded".equals(tag)) { + value = PaperDocCreateError.DOC_LENGTH_EXCEEDED; + } + else if ("image_size_exceeded".equals(tag)) { + value = PaperDocCreateError.IMAGE_SIZE_EXCEEDED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateErrorException.java new file mode 100644 index 000000000..87cb90eaa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link PaperDocCreateError} + * error. + * + *

This exception is raised by {@link + * DbxUserPaperRequests#docsCreate(ImportFormat,String)}.

+ */ +public class PaperDocCreateErrorException extends DbxApiException { + // exception for routes: + // 2/paper/docs/create + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserPaperRequests#docsCreate(ImportFormat,String)}. + */ + public final PaperDocCreateError errorValue; + + public PaperDocCreateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperDocCreateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateUpdateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateUpdateResult.java new file mode 100644 index 000000000..0e98eda83 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateUpdateResult.java @@ -0,0 +1,200 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocCreateUpdateResult { + // struct paper.PaperDocCreateUpdateResult (paper.stone) + + @Nonnull + protected final String docId; + protected final long revision; + @Nonnull + protected final String title; + + /** + * + * @param docId Doc ID of the newly created doc. Must not be {@code null}. + * @param revision The Paper doc revision. Simply an ever increasing + * number. + * @param title The Paper doc title. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocCreateUpdateResult(@Nonnull String docId, long revision, @Nonnull String title) { + if (docId == null) { + throw new IllegalArgumentException("Required value for 'docId' is null"); + } + this.docId = docId; + this.revision = revision; + if (title == null) { + throw new IllegalArgumentException("Required value for 'title' is null"); + } + this.title = title; + } + + /** + * Doc ID of the newly created doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * The Paper doc revision. Simply an ever increasing number. + * + * @return value for this field. + */ + public long getRevision() { + return revision; + } + + /** + * The Paper doc title. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTitle() { + return title; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.docId, + this.revision, + this.title + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocCreateUpdateResult other = (PaperDocCreateUpdateResult) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && (this.revision == other.revision) + && ((this.title == other.title) || (this.title.equals(other.title))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocCreateUpdateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("revision"); + StoneSerializers.int64().serialize(value.revision, g); + g.writeFieldName("title"); + StoneSerializers.string().serialize(value.title, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocCreateUpdateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocCreateUpdateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + Long f_revision = null; + String f_title = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("revision".equals(field)) { + f_revision = StoneSerializers.int64().deserialize(p); + } + else if ("title".equals(field)) { + f_title = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_revision == null) { + throw new JsonParseException(p, "Required field \"revision\" missing."); + } + if (f_title == null) { + throw new JsonParseException(p, "Required field \"title\" missing."); + } + value = new PaperDocCreateUpdateResult(f_docId, f_revision, f_title); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocExport.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocExport.java new file mode 100644 index 000000000..63fe94d50 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocExport.java @@ -0,0 +1,170 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class PaperDocExport extends RefPaperDoc { + // struct paper.PaperDocExport (paper.stone) + + @Nonnull + protected final ExportFormat exportFormat; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param exportFormat Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocExport(@Nonnull String docId, @Nonnull ExportFormat exportFormat) { + super(docId); + if (exportFormat == null) { + throw new IllegalArgumentException("Required value for 'exportFormat' is null"); + } + this.exportFormat = exportFormat; + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExportFormat getExportFormat() { + return exportFormat; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.exportFormat + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocExport other = (PaperDocExport) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.exportFormat == other.exportFormat) || (this.exportFormat.equals(other.exportFormat))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocExport value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("export_format"); + ExportFormat.Serializer.INSTANCE.serialize(value.exportFormat, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocExport deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocExport value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + ExportFormat f_exportFormat = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("export_format".equals(field)) { + f_exportFormat = ExportFormat.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_exportFormat == null) { + throw new JsonParseException(p, "Required field \"export_format\" missing."); + } + value = new PaperDocExport(f_docId, f_exportFormat); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocExportResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocExportResult.java new file mode 100644 index 000000000..ea6d3550e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocExportResult.java @@ -0,0 +1,231 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocExportResult { + // struct paper.PaperDocExportResult (paper.stone) + + @Nonnull + protected final String owner; + @Nonnull + protected final String title; + protected final long revision; + @Nonnull + protected final String mimeType; + + /** + * + * @param owner The Paper doc owner's email address. Must not be {@code + * null}. + * @param title The Paper doc title. Must not be {@code null}. + * @param revision The Paper doc revision. Simply an ever increasing + * number. + * @param mimeType MIME type of the export. This corresponds to {@link + * ExportFormat} specified in the request. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocExportResult(@Nonnull String owner, @Nonnull String title, long revision, @Nonnull String mimeType) { + if (owner == null) { + throw new IllegalArgumentException("Required value for 'owner' is null"); + } + this.owner = owner; + if (title == null) { + throw new IllegalArgumentException("Required value for 'title' is null"); + } + this.title = title; + this.revision = revision; + if (mimeType == null) { + throw new IllegalArgumentException("Required value for 'mimeType' is null"); + } + this.mimeType = mimeType; + } + + /** + * The Paper doc owner's email address. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOwner() { + return owner; + } + + /** + * The Paper doc title. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTitle() { + return title; + } + + /** + * The Paper doc revision. Simply an ever increasing number. + * + * @return value for this field. + */ + public long getRevision() { + return revision; + } + + /** + * MIME type of the export. This corresponds to {@link ExportFormat} + * specified in the request. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getMimeType() { + return mimeType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.owner, + this.title, + this.revision, + this.mimeType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocExportResult other = (PaperDocExportResult) obj; + return ((this.owner == other.owner) || (this.owner.equals(other.owner))) + && ((this.title == other.title) || (this.title.equals(other.title))) + && (this.revision == other.revision) + && ((this.mimeType == other.mimeType) || (this.mimeType.equals(other.mimeType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocExportResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("owner"); + StoneSerializers.string().serialize(value.owner, g); + g.writeFieldName("title"); + StoneSerializers.string().serialize(value.title, g); + g.writeFieldName("revision"); + StoneSerializers.int64().serialize(value.revision, g); + g.writeFieldName("mime_type"); + StoneSerializers.string().serialize(value.mimeType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocExportResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocExportResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_owner = null; + String f_title = null; + Long f_revision = null; + String f_mimeType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("owner".equals(field)) { + f_owner = StoneSerializers.string().deserialize(p); + } + else if ("title".equals(field)) { + f_title = StoneSerializers.string().deserialize(p); + } + else if ("revision".equals(field)) { + f_revision = StoneSerializers.int64().deserialize(p); + } + else if ("mime_type".equals(field)) { + f_mimeType = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_owner == null) { + throw new JsonParseException(p, "Required field \"owner\" missing."); + } + if (f_title == null) { + throw new JsonParseException(p, "Required field \"title\" missing."); + } + if (f_revision == null) { + throw new JsonParseException(p, "Required field \"revision\" missing."); + } + if (f_mimeType == null) { + throw new JsonParseException(p, "Required field \"mime_type\" missing."); + } + value = new PaperDocExportResult(f_owner, f_title, f_revision, f_mimeType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocPermissionLevel.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocPermissionLevel.java new file mode 100644 index 000000000..d87da5925 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocPermissionLevel.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperDocPermissionLevel { + // union paper.PaperDocPermissionLevel (paper.stone) + /** + * User will be granted edit permissions. + */ + EDIT, + /** + * User will be granted view and comment permissions. + */ + VIEW_AND_COMMENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocPermissionLevel value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EDIT: { + g.writeString("edit"); + break; + } + case VIEW_AND_COMMENT: { + g.writeString("view_and_comment"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperDocPermissionLevel deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDocPermissionLevel value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("edit".equals(tag)) { + value = PaperDocPermissionLevel.EDIT; + } + else if ("view_and_comment".equals(tag)) { + value = PaperDocPermissionLevel.VIEW_AND_COMMENT; + } + else { + value = PaperDocPermissionLevel.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocSharingPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocSharingPolicy.java new file mode 100644 index 000000000..7bec22385 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocSharingPolicy.java @@ -0,0 +1,172 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class PaperDocSharingPolicy extends RefPaperDoc { + // struct paper.PaperDocSharingPolicy (paper.stone) + + @Nonnull + protected final SharingPolicy sharingPolicy; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param sharingPolicy The default sharing policy to be set for the Paper + * doc. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocSharingPolicy(@Nonnull String docId, @Nonnull SharingPolicy sharingPolicy) { + super(docId); + if (sharingPolicy == null) { + throw new IllegalArgumentException("Required value for 'sharingPolicy' is null"); + } + this.sharingPolicy = sharingPolicy; + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * The default sharing policy to be set for the Paper doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharingPolicy getSharingPolicy() { + return sharingPolicy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharingPolicy + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocSharingPolicy other = (PaperDocSharingPolicy) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.sharingPolicy == other.sharingPolicy) || (this.sharingPolicy.equals(other.sharingPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocSharingPolicy value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("sharing_policy"); + SharingPolicy.Serializer.INSTANCE.serialize(value.sharingPolicy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocSharingPolicy deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocSharingPolicy value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + SharingPolicy f_sharingPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("sharing_policy".equals(field)) { + f_sharingPolicy = SharingPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_sharingPolicy == null) { + throw new JsonParseException(p, "Required field \"sharing_policy\" missing."); + } + value = new PaperDocSharingPolicy(f_docId, f_sharingPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateArgs.java new file mode 100644 index 000000000..09d83d329 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateArgs.java @@ -0,0 +1,227 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class PaperDocUpdateArgs extends RefPaperDoc { + // struct paper.PaperDocUpdateArgs (paper.stone) + + @Nonnull + protected final PaperDocUpdatePolicy docUpdatePolicy; + protected final long revision; + @Nonnull + protected final ImportFormat importFormat; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param docUpdatePolicy The policy used for the current update call. Must + * not be {@code null}. + * @param revision The latest doc revision. This value must match the head + * revision or an error code will be returned. This is to prevent + * colliding writes. + * @param importFormat The format of provided data. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocUpdateArgs(@Nonnull String docId, @Nonnull PaperDocUpdatePolicy docUpdatePolicy, long revision, @Nonnull ImportFormat importFormat) { + super(docId); + if (docUpdatePolicy == null) { + throw new IllegalArgumentException("Required value for 'docUpdatePolicy' is null"); + } + this.docUpdatePolicy = docUpdatePolicy; + this.revision = revision; + if (importFormat == null) { + throw new IllegalArgumentException("Required value for 'importFormat' is null"); + } + this.importFormat = importFormat; + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * The policy used for the current update call. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDocUpdatePolicy getDocUpdatePolicy() { + return docUpdatePolicy; + } + + /** + * The latest doc revision. This value must match the head revision or an + * error code will be returned. This is to prevent colliding writes. + * + * @return value for this field. + */ + public long getRevision() { + return revision; + } + + /** + * The format of provided data. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ImportFormat getImportFormat() { + return importFormat; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.docUpdatePolicy, + this.revision, + this.importFormat + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocUpdateArgs other = (PaperDocUpdateArgs) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.docUpdatePolicy == other.docUpdatePolicy) || (this.docUpdatePolicy.equals(other.docUpdatePolicy))) + && (this.revision == other.revision) + && ((this.importFormat == other.importFormat) || (this.importFormat.equals(other.importFormat))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUpdateArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("doc_update_policy"); + PaperDocUpdatePolicy.Serializer.INSTANCE.serialize(value.docUpdatePolicy, g); + g.writeFieldName("revision"); + StoneSerializers.int64().serialize(value.revision, g); + g.writeFieldName("import_format"); + ImportFormat.Serializer.INSTANCE.serialize(value.importFormat, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocUpdateArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocUpdateArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + PaperDocUpdatePolicy f_docUpdatePolicy = null; + Long f_revision = null; + ImportFormat f_importFormat = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("doc_update_policy".equals(field)) { + f_docUpdatePolicy = PaperDocUpdatePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("revision".equals(field)) { + f_revision = StoneSerializers.int64().deserialize(p); + } + else if ("import_format".equals(field)) { + f_importFormat = ImportFormat.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_docUpdatePolicy == null) { + throw new JsonParseException(p, "Required field \"doc_update_policy\" missing."); + } + if (f_revision == null) { + throw new JsonParseException(p, "Required field \"revision\" missing."); + } + if (f_importFormat == null) { + throw new JsonParseException(p, "Required field \"import_format\" missing."); + } + value = new PaperDocUpdateArgs(f_docId, f_docUpdatePolicy, f_revision, f_importFormat); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateError.java new file mode 100644 index 000000000..4f942c44a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateError.java @@ -0,0 +1,174 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperDocUpdateError { + // union paper.PaperDocUpdateError (paper.stone) + /** + * Your account does not have permissions to perform this action. This may + * be due to it only having access to Paper as files in the Dropbox + * filesystem. For more information, refer to the Paper + * Migration Guide. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The required doc was not found. + */ + DOC_NOT_FOUND, + /** + * The provided content was malformed and cannot be imported to Paper. + */ + CONTENT_MALFORMED, + /** + * The provided revision does not match the document head. + */ + REVISION_MISMATCH, + /** + * The newly created Paper doc would be too large, split the content into + * multiple docs. + */ + DOC_LENGTH_EXCEEDED, + /** + * The imported document contains an image that is too large. The current + * limit is 1MB. This only applies to HTML with data URI. + */ + IMAGE_SIZE_EXCEEDED, + /** + * This operation is not allowed on archived Paper docs. + */ + DOC_ARCHIVED, + /** + * This operation is not allowed on deleted Paper docs. + */ + DOC_DELETED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUpdateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case DOC_NOT_FOUND: { + g.writeString("doc_not_found"); + break; + } + case CONTENT_MALFORMED: { + g.writeString("content_malformed"); + break; + } + case REVISION_MISMATCH: { + g.writeString("revision_mismatch"); + break; + } + case DOC_LENGTH_EXCEEDED: { + g.writeString("doc_length_exceeded"); + break; + } + case IMAGE_SIZE_EXCEEDED: { + g.writeString("image_size_exceeded"); + break; + } + case DOC_ARCHIVED: { + g.writeString("doc_archived"); + break; + } + case DOC_DELETED: { + g.writeString("doc_deleted"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public PaperDocUpdateError deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDocUpdateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("insufficient_permissions".equals(tag)) { + value = PaperDocUpdateError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = PaperDocUpdateError.OTHER; + } + else if ("doc_not_found".equals(tag)) { + value = PaperDocUpdateError.DOC_NOT_FOUND; + } + else if ("content_malformed".equals(tag)) { + value = PaperDocUpdateError.CONTENT_MALFORMED; + } + else if ("revision_mismatch".equals(tag)) { + value = PaperDocUpdateError.REVISION_MISMATCH; + } + else if ("doc_length_exceeded".equals(tag)) { + value = PaperDocUpdateError.DOC_LENGTH_EXCEEDED; + } + else if ("image_size_exceeded".equals(tag)) { + value = PaperDocUpdateError.IMAGE_SIZE_EXCEEDED; + } + else if ("doc_archived".equals(tag)) { + value = PaperDocUpdateError.DOC_ARCHIVED; + } + else if ("doc_deleted".equals(tag)) { + value = PaperDocUpdateError.DOC_DELETED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateErrorException.java new file mode 100644 index 000000000..50894326a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link PaperDocUpdateError} + * error. + * + *

This exception is raised by {@link + * DbxUserPaperRequests#docsUpdate(String,PaperDocUpdatePolicy,long,ImportFormat)}. + *

+ */ +public class PaperDocUpdateErrorException extends DbxApiException { + // exception for routes: + // 2/paper/docs/update + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserPaperRequests#docsUpdate(String,PaperDocUpdatePolicy,long,ImportFormat)}. + */ + public final PaperDocUpdateError errorValue; + + public PaperDocUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperDocUpdateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdatePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdatePolicy.java new file mode 100644 index 000000000..60ee811ea --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdatePolicy.java @@ -0,0 +1,107 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperDocUpdatePolicy { + // union paper.PaperDocUpdatePolicy (paper.stone) + /** + * The content will be appended to the doc. + */ + APPEND, + /** + * The content will be prepended to the doc. The doc title will not be + * affected. + */ + PREPEND, + /** + * The document will be overwitten at the head with the provided content. + */ + OVERWRITE_ALL, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUpdatePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case APPEND: { + g.writeString("append"); + break; + } + case PREPEND: { + g.writeString("prepend"); + break; + } + case OVERWRITE_ALL: { + g.writeString("overwrite_all"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperDocUpdatePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDocUpdatePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("append".equals(tag)) { + value = PaperDocUpdatePolicy.APPEND; + } + else if ("prepend".equals(tag)) { + value = PaperDocUpdatePolicy.PREPEND; + } + else if ("overwrite_all".equals(tag)) { + value = PaperDocUpdatePolicy.OVERWRITE_ALL; + } + else { + value = PaperDocUpdatePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateArg.java new file mode 100644 index 000000000..78f35d68d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateArg.java @@ -0,0 +1,301 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class PaperFolderCreateArg { + // struct paper.PaperFolderCreateArg (paper.stone) + + @Nonnull + protected final String name; + @Nullable + protected final String parentFolderId; + @Nullable + protected final Boolean isTeamFolder; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param name The name of the new Paper folder. Must not be {@code null}. + * @param parentFolderId The encrypted Paper folder Id where the new Paper + * folder should be created. The API user has to have write access to + * this folder or error is thrown. If not supplied, the new folder will + * be created at top level. + * @param isTeamFolder Whether the folder to be created should be a team + * folder. This value will be ignored if parent_folder_id is supplied, + * as the new folder will inherit the type (private or team folder) from + * its parent. We will by default create a top-level private folder if + * both parent_folder_id and is_team_folder are not supplied. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderCreateArg(@Nonnull String name, @Nullable String parentFolderId, @Nullable Boolean isTeamFolder) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.parentFolderId = parentFolderId; + this.isTeamFolder = isTeamFolder; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name The name of the new Paper folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderCreateArg(@Nonnull String name) { + this(name, null, null); + } + + /** + * The name of the new Paper folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The encrypted Paper folder Id where the new Paper folder should be + * created. The API user has to have write access to this folder or error is + * thrown. If not supplied, the new folder will be created at top level. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentFolderId() { + return parentFolderId; + } + + /** + * Whether the folder to be created should be a team folder. This value will + * be ignored if parent_folder_id is supplied, as the new folder will + * inherit the type (private or team folder) from its parent. We will by + * default create a top-level private folder if both parent_folder_id and + * is_team_folder are not supplied. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsTeamFolder() { + return isTeamFolder; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name The name of the new Paper folder. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name) { + return new Builder(name); + } + + /** + * Builder for {@link PaperFolderCreateArg}. + */ + public static class Builder { + protected final String name; + + protected String parentFolderId; + protected Boolean isTeamFolder; + + protected Builder(String name) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.parentFolderId = null; + this.isTeamFolder = null; + } + + /** + * Set value for optional field. + * + * @param parentFolderId The encrypted Paper folder Id where the new + * Paper folder should be created. The API user has to have write + * access to this folder or error is thrown. If not supplied, the + * new folder will be created at top level. + * + * @return this builder + */ + public Builder withParentFolderId(String parentFolderId) { + this.parentFolderId = parentFolderId; + return this; + } + + /** + * Set value for optional field. + * + * @param isTeamFolder Whether the folder to be created should be a + * team folder. This value will be ignored if parent_folder_id is + * supplied, as the new folder will inherit the type (private or + * team folder) from its parent. We will by default create a + * top-level private folder if both parent_folder_id and + * is_team_folder are not supplied. + * + * @return this builder + */ + public Builder withIsTeamFolder(Boolean isTeamFolder) { + this.isTeamFolder = isTeamFolder; + return this; + } + + /** + * Builds an instance of {@link PaperFolderCreateArg} configured with + * this builder's values + * + * @return new instance of {@link PaperFolderCreateArg} + */ + public PaperFolderCreateArg build() { + return new PaperFolderCreateArg(name, parentFolderId, isTeamFolder); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.parentFolderId, + this.isTeamFolder + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderCreateArg other = (PaperFolderCreateArg) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.parentFolderId == other.parentFolderId) || (this.parentFolderId != null && this.parentFolderId.equals(other.parentFolderId))) + && ((this.isTeamFolder == other.isTeamFolder) || (this.isTeamFolder != null && this.isTeamFolder.equals(other.isTeamFolder))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderCreateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.parentFolderId != null) { + g.writeFieldName("parent_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentFolderId, g); + } + if (value.isTeamFolder != null) { + g.writeFieldName("is_team_folder"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isTeamFolder, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderCreateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderCreateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_parentFolderId = null; + Boolean f_isTeamFolder = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("parent_folder_id".equals(field)) { + f_parentFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_team_folder".equals(field)) { + f_isTeamFolder = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new PaperFolderCreateArg(f_name, f_parentFolderId, f_isTeamFolder); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateError.java new file mode 100644 index 000000000..3d5813355 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateError.java @@ -0,0 +1,117 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperFolderCreateError { + // union paper.PaperFolderCreateError (paper.stone) + /** + * Your account does not have permissions to perform this action. This may + * be due to it only having access to Paper as files in the Dropbox + * filesystem. For more information, refer to the Paper + * Migration Guide. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The specified parent Paper folder cannot be found. + */ + FOLDER_NOT_FOUND, + /** + * The folder id cannot be decrypted to valid folder id. + */ + INVALID_FOLDER_ID; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderCreateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case FOLDER_NOT_FOUND: { + g.writeString("folder_not_found"); + break; + } + case INVALID_FOLDER_ID: { + g.writeString("invalid_folder_id"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public PaperFolderCreateError deserialize(JsonParser p) throws IOException, JsonParseException { + PaperFolderCreateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("insufficient_permissions".equals(tag)) { + value = PaperFolderCreateError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = PaperFolderCreateError.OTHER; + } + else if ("folder_not_found".equals(tag)) { + value = PaperFolderCreateError.FOLDER_NOT_FOUND; + } + else if ("invalid_folder_id".equals(tag)) { + value = PaperFolderCreateError.INVALID_FOLDER_ID; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateErrorException.java new file mode 100644 index 000000000..ed2fe4e97 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * PaperFolderCreateError} error. + * + *

This exception is raised by {@link + * DbxUserPaperRequests#foldersCreate(String)}.

+ */ +public class PaperFolderCreateErrorException extends DbxApiException { + // exception for routes: + // 2/paper/folders/create + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserPaperRequests#foldersCreate(String)}. + */ + public final PaperFolderCreateError errorValue; + + public PaperFolderCreateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperFolderCreateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateResult.java new file mode 100644 index 000000000..da9030033 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateResult.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperFolderCreateResult { + // struct paper.PaperFolderCreateResult (paper.stone) + + @Nonnull + protected final String folderId; + + /** + * + * @param folderId Folder ID of the newly created folder. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderCreateResult(@Nonnull String folderId) { + if (folderId == null) { + throw new IllegalArgumentException("Required value for 'folderId' is null"); + } + this.folderId = folderId; + } + + /** + * Folder ID of the newly created folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFolderId() { + return folderId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.folderId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderCreateResult other = (PaperFolderCreateResult) obj; + return (this.folderId == other.folderId) || (this.folderId.equals(other.folderId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderCreateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("folder_id"); + StoneSerializers.string().serialize(value.folderId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderCreateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderCreateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_folderId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("folder_id".equals(field)) { + f_folderId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_folderId == null) { + throw new JsonParseException(p, "Required field \"folder_id\" missing."); + } + value = new PaperFolderCreateResult(f_folderId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/RefPaperDoc.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/RefPaperDoc.java new file mode 100644 index 000000000..fd8998445 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/RefPaperDoc.java @@ -0,0 +1,147 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class RefPaperDoc { + // struct paper.RefPaperDoc (paper.stone) + + @Nonnull + protected final String docId; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RefPaperDoc(@Nonnull String docId) { + if (docId == null) { + throw new IllegalArgumentException("Required value for 'docId' is null"); + } + this.docId = docId; + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.docId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RefPaperDoc other = (RefPaperDoc) obj; + return (this.docId == other.docId) || (this.docId.equals(other.docId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RefPaperDoc value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RefPaperDoc deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RefPaperDoc value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + value = new RefPaperDoc(f_docId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/RemovePaperDocUser.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/RemovePaperDocUser.java new file mode 100644 index 000000000..82f4a0ebf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/RemovePaperDocUser.java @@ -0,0 +1,174 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.MemberSelector; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class RemovePaperDocUser extends RefPaperDoc { + // struct paper.RemovePaperDocUser (paper.stone) + + @Nonnull + protected final MemberSelector member; + + /** + * + * @param docId The Paper doc ID. Must not be {@code null}. + * @param member User which should be removed from the Paper doc. Specify + * only email address or Dropbox account ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RemovePaperDocUser(@Nonnull String docId, @Nonnull MemberSelector member) { + super(docId); + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + } + + /** + * The Paper doc ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * User which should be removed from the Paper doc. Specify only email + * address or Dropbox account ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.member + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RemovePaperDocUser other = (RemovePaperDocUser) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.member == other.member) || (this.member.equals(other.member))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemovePaperDocUser value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RemovePaperDocUser deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RemovePaperDocUser value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + MemberSelector f_member = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + value = new RemovePaperDocUser(f_docId, f_member); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingPolicy.java new file mode 100644 index 000000000..631326935 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingPolicy.java @@ -0,0 +1,243 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Sharing policy of Paper doc. + */ +public class SharingPolicy { + // struct paper.SharingPolicy (paper.stone) + + @Nullable + protected final SharingPublicPolicyType publicSharingPolicy; + @Nullable + protected final SharingTeamPolicyType teamSharingPolicy; + + /** + * Sharing policy of Paper doc. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param publicSharingPolicy This value applies to the non-team members. + * @param teamSharingPolicy This value applies to the team members only. + * The value is null for all personal accounts. + */ + public SharingPolicy(@Nullable SharingPublicPolicyType publicSharingPolicy, @Nullable SharingTeamPolicyType teamSharingPolicy) { + this.publicSharingPolicy = publicSharingPolicy; + this.teamSharingPolicy = teamSharingPolicy; + } + + /** + * Sharing policy of Paper doc. + * + *

The default values for unset fields will be used.

+ */ + public SharingPolicy() { + this(null, null); + } + + /** + * This value applies to the non-team members. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharingPublicPolicyType getPublicSharingPolicy() { + return publicSharingPolicy; + } + + /** + * This value applies to the team members only. The value is null for all + * personal accounts. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharingTeamPolicyType getTeamSharingPolicy() { + return teamSharingPolicy; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharingPolicy}. + */ + public static class Builder { + + protected SharingPublicPolicyType publicSharingPolicy; + protected SharingTeamPolicyType teamSharingPolicy; + + protected Builder() { + this.publicSharingPolicy = null; + this.teamSharingPolicy = null; + } + + /** + * Set value for optional field. + * + * @param publicSharingPolicy This value applies to the non-team + * members. + * + * @return this builder + */ + public Builder withPublicSharingPolicy(SharingPublicPolicyType publicSharingPolicy) { + this.publicSharingPolicy = publicSharingPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param teamSharingPolicy This value applies to the team members + * only. The value is null for all personal accounts. + * + * @return this builder + */ + public Builder withTeamSharingPolicy(SharingTeamPolicyType teamSharingPolicy) { + this.teamSharingPolicy = teamSharingPolicy; + return this; + } + + /** + * Builds an instance of {@link SharingPolicy} configured with this + * builder's values + * + * @return new instance of {@link SharingPolicy} + */ + public SharingPolicy build() { + return new SharingPolicy(publicSharingPolicy, teamSharingPolicy); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.publicSharingPolicy, + this.teamSharingPolicy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingPolicy other = (SharingPolicy) obj; + return ((this.publicSharingPolicy == other.publicSharingPolicy) || (this.publicSharingPolicy != null && this.publicSharingPolicy.equals(other.publicSharingPolicy))) + && ((this.teamSharingPolicy == other.teamSharingPolicy) || (this.teamSharingPolicy != null && this.teamSharingPolicy.equals(other.teamSharingPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingPolicy value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.publicSharingPolicy != null) { + g.writeFieldName("public_sharing_policy"); + StoneSerializers.nullable(SharingPublicPolicyType.Serializer.INSTANCE).serialize(value.publicSharingPolicy, g); + } + if (value.teamSharingPolicy != null) { + g.writeFieldName("team_sharing_policy"); + StoneSerializers.nullable(SharingTeamPolicyType.Serializer.INSTANCE).serialize(value.teamSharingPolicy, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingPolicy deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingPolicy value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharingPublicPolicyType f_publicSharingPolicy = null; + SharingTeamPolicyType f_teamSharingPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("public_sharing_policy".equals(field)) { + f_publicSharingPolicy = StoneSerializers.nullable(SharingPublicPolicyType.Serializer.INSTANCE).deserialize(p); + } + else if ("team_sharing_policy".equals(field)) { + f_teamSharingPolicy = StoneSerializers.nullable(SharingTeamPolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharingPolicy(f_publicSharingPolicy, f_teamSharingPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingPublicPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingPublicPolicyType.java new file mode 100644 index 000000000..d2b9e55da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingPublicPolicyType.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SharingPublicPolicyType { + // union paper.SharingPublicPolicyType (paper.stone) + /** + * Users who have a link to this doc can edit it. + */ + PEOPLE_WITH_LINK_CAN_EDIT, + /** + * Users who have a link to this doc can view and comment on it. + */ + PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT, + /** + * Users must be explicitly invited to this doc. + */ + INVITE_ONLY, + /** + * Value used to indicate that doc sharing is enabled only within team. + */ + DISABLED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingPublicPolicyType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PEOPLE_WITH_LINK_CAN_EDIT: { + g.writeString("people_with_link_can_edit"); + break; + } + case PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT: { + g.writeString("people_with_link_can_view_and_comment"); + break; + } + case INVITE_ONLY: { + g.writeString("invite_only"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public SharingPublicPolicyType deserialize(JsonParser p) throws IOException, JsonParseException { + SharingPublicPolicyType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("people_with_link_can_edit".equals(tag)) { + value = SharingPublicPolicyType.PEOPLE_WITH_LINK_CAN_EDIT; + } + else if ("people_with_link_can_view_and_comment".equals(tag)) { + value = SharingPublicPolicyType.PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT; + } + else if ("invite_only".equals(tag)) { + value = SharingPublicPolicyType.INVITE_ONLY; + } + else if ("disabled".equals(tag)) { + value = SharingPublicPolicyType.DISABLED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingTeamPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingTeamPolicyType.java new file mode 100644 index 000000000..d2f71a2a5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/SharingTeamPolicyType.java @@ -0,0 +1,101 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The sharing policy type of the Paper doc. + */ +public enum SharingTeamPolicyType { + // union paper.SharingTeamPolicyType (paper.stone) + /** + * Users who have a link to this doc can edit it. + */ + PEOPLE_WITH_LINK_CAN_EDIT, + /** + * Users who have a link to this doc can view and comment on it. + */ + PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT, + /** + * Users must be explicitly invited to this doc. + */ + INVITE_ONLY; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingTeamPolicyType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PEOPLE_WITH_LINK_CAN_EDIT: { + g.writeString("people_with_link_can_edit"); + break; + } + case PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT: { + g.writeString("people_with_link_can_view_and_comment"); + break; + } + case INVITE_ONLY: { + g.writeString("invite_only"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public SharingTeamPolicyType deserialize(JsonParser p) throws IOException, JsonParseException { + SharingTeamPolicyType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("people_with_link_can_edit".equals(tag)) { + value = SharingTeamPolicyType.PEOPLE_WITH_LINK_CAN_EDIT; + } + else if ("people_with_link_can_view_and_comment".equals(tag)) { + value = SharingTeamPolicyType.PEOPLE_WITH_LINK_CAN_VIEW_AND_COMMENT; + } + else if ("invite_only".equals(tag)) { + value = SharingTeamPolicyType.INVITE_ONLY; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/UserInfoWithPermissionLevel.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/UserInfoWithPermissionLevel.java new file mode 100644 index 000000000..fd3b8230e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/UserInfoWithPermissionLevel.java @@ -0,0 +1,178 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.UserInfo; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UserInfoWithPermissionLevel { + // struct paper.UserInfoWithPermissionLevel (paper.stone) + + @Nonnull + protected final UserInfo user; + @Nonnull + protected final PaperDocPermissionLevel permissionLevel; + + /** + * + * @param user User shared on the Paper doc. Must not be {@code null}. + * @param permissionLevel Permission level for the user. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserInfoWithPermissionLevel(@Nonnull UserInfo user, @Nonnull PaperDocPermissionLevel permissionLevel) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (permissionLevel == null) { + throw new IllegalArgumentException("Required value for 'permissionLevel' is null"); + } + this.permissionLevel = permissionLevel; + } + + /** + * User shared on the Paper doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserInfo getUser() { + return user; + } + + /** + * Permission level for the user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDocPermissionLevel getPermissionLevel() { + return permissionLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.permissionLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserInfoWithPermissionLevel other = (UserInfoWithPermissionLevel) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.permissionLevel == other.permissionLevel) || (this.permissionLevel.equals(other.permissionLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserInfoWithPermissionLevel value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserInfo.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("permission_level"); + PaperDocPermissionLevel.Serializer.INSTANCE.serialize(value.permissionLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserInfoWithPermissionLevel deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserInfoWithPermissionLevel value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserInfo f_user = null; + PaperDocPermissionLevel f_permissionLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("permission_level".equals(field)) { + f_permissionLevel = PaperDocPermissionLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_permissionLevel == null) { + throw new JsonParseException(p, "Required field \"permission_level\" missing."); + } + value = new UserInfoWithPermissionLevel(f_user, f_permissionLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/UserOnPaperDocFilter.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/UserOnPaperDocFilter.java new file mode 100644 index 000000000..e1c19c5e0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/UserOnPaperDocFilter.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from paper.stone */ + +package com.dropbox.core.v2.paper; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum UserOnPaperDocFilter { + // union paper.UserOnPaperDocFilter (paper.stone) + /** + * all users who have visited the Paper doc. + */ + VISITED, + /** + * All uses who are shared on the Paper doc. This includes all users who + * have visited the Paper doc as well as those who have not. + */ + SHARED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserOnPaperDocFilter value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case VISITED: { + g.writeString("visited"); + break; + } + case SHARED: { + g.writeString("shared"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserOnPaperDocFilter deserialize(JsonParser p) throws IOException, JsonParseException { + UserOnPaperDocFilter value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("visited".equals(tag)) { + value = UserOnPaperDocFilter.VISITED; + } + else if ("shared".equals(tag)) { + value = UserOnPaperDocFilter.SHARED; + } + else { + value = UserOnPaperDocFilter.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/package-info.java new file mode 100644 index 000000000..5b9756093 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/package-info.java @@ -0,0 +1,17 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * This namespace contains endpoints and data types for managing docs and + * folders in Dropbox Paper. New Paper users will see docs they create in their + * filesystem as '.paper' files alongside their other Dropbox content. The + * /paper endpoints are being deprecated and you'll need to use /files and + * /sharing endpoints to interact with their Paper content. Read more in the Paper + * Migration Guide. + * + *

See {@link com.dropbox.core.v2.paper.DbxUserPaperRequests} for a list of + * possible requests for this namespace.

+ */ +package com.dropbox.core.v2.paper; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/secondaryemails/SecondaryEmail.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/secondaryemails/SecondaryEmail.java new file mode 100644 index 000000000..14b522964 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/secondaryemails/SecondaryEmail.java @@ -0,0 +1,183 @@ +/* DO NOT EDIT */ +/* This file was generated from secondary_emails.stone */ + +package com.dropbox.core.v2.secondaryemails; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class SecondaryEmail { + // struct secondary_emails.SecondaryEmail (secondary_emails.stone) + + @Nonnull + protected final String email; + protected final boolean isVerified; + + /** + * + * @param email Secondary email address. Must have length of at most 255, + * match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param isVerified Whether or not the secondary email address is verified + * to be owned by a user. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryEmail(@Nonnull String email, boolean isVerified) { + if (email == null) { + throw new IllegalArgumentException("Required value for 'email' is null"); + } + if (email.length() > 255) { + throw new IllegalArgumentException("String 'email' is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", email)) { + throw new IllegalArgumentException("String 'email' does not match pattern"); + } + this.email = email; + this.isVerified = isVerified; + } + + /** + * Secondary email address. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEmail() { + return email; + } + + /** + * Whether or not the secondary email address is verified to be owned by a + * user. + * + * @return value for this field. + */ + public boolean getIsVerified() { + return isVerified; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.email, + this.isVerified + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryEmail other = (SecondaryEmail) obj; + return ((this.email == other.email) || (this.email.equals(other.email))) + && (this.isVerified == other.isVerified) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryEmail value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.email, g); + g.writeFieldName("is_verified"); + StoneSerializers.boolean_().serialize(value.isVerified, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryEmail deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryEmail value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_email = null; + Boolean f_isVerified = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("email".equals(field)) { + f_email = StoneSerializers.string().deserialize(p); + } + else if ("is_verified".equals(field)) { + f_isVerified = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_email == null) { + throw new JsonParseException(p, "Required field \"email\" missing."); + } + if (f_isVerified == null) { + throw new JsonParseException(p, "Required field \"is_verified\" missing."); + } + value = new SecondaryEmail(f_email, f_isVerified); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/secondaryemails/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/secondaryemails/package-info.java new file mode 100644 index 000000000..108a8ef93 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/secondaryemails/package-info.java @@ -0,0 +1,7 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + */ +package com.dropbox.core.v2.secondaryemails; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/seenstate/PlatformType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/seenstate/PlatformType.java new file mode 100644 index 000000000..7afb874ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/seenstate/PlatformType.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from seen_state.stone */ + +package com.dropbox.core.v2.seenstate; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Possible platforms on which a user may view content. + */ +public enum PlatformType { + // union seen_state.PlatformType (seen_state.stone) + /** + * The content was viewed on the web. + */ + WEB, + /** + * The content was viewed on a desktop client. + */ + DESKTOP, + /** + * The content was viewed on a mobile iOS client. + */ + MOBILE_IOS, + /** + * The content was viewed on a mobile android client. + */ + MOBILE_ANDROID, + /** + * The content was viewed from an API client. + */ + API, + /** + * The content was viewed on an unknown platform. + */ + UNKNOWN, + /** + * The content was viewed on a mobile client. DEPRECATED: Use mobile_ios or + * mobile_android instead. + */ + MOBILE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PlatformType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case WEB: { + g.writeString("web"); + break; + } + case DESKTOP: { + g.writeString("desktop"); + break; + } + case MOBILE_IOS: { + g.writeString("mobile_ios"); + break; + } + case MOBILE_ANDROID: { + g.writeString("mobile_android"); + break; + } + case API: { + g.writeString("api"); + break; + } + case UNKNOWN: { + g.writeString("unknown"); + break; + } + case MOBILE: { + g.writeString("mobile"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PlatformType deserialize(JsonParser p) throws IOException, JsonParseException { + PlatformType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("web".equals(tag)) { + value = PlatformType.WEB; + } + else if ("desktop".equals(tag)) { + value = PlatformType.DESKTOP; + } + else if ("mobile_ios".equals(tag)) { + value = PlatformType.MOBILE_IOS; + } + else if ("mobile_android".equals(tag)) { + value = PlatformType.MOBILE_ANDROID; + } + else if ("api".equals(tag)) { + value = PlatformType.API; + } + else if ("unknown".equals(tag)) { + value = PlatformType.UNKNOWN; + } + else if ("mobile".equals(tag)) { + value = PlatformType.MOBILE; + } + else { + value = PlatformType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/seenstate/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/seenstate/package-info.java new file mode 100644 index 000000000..dc533a484 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/seenstate/package-info.java @@ -0,0 +1,7 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + */ +package com.dropbox.core.v2.seenstate; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AccessInheritance.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AccessInheritance.java new file mode 100644 index 000000000..d340c2991 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AccessInheritance.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Information about the inheritance policy of a shared folder. + */ +public enum AccessInheritance { + // union sharing.AccessInheritance (sharing_folders.stone) + /** + * The shared folder inherits its members from the parent folder. + */ + INHERIT, + /** + * The shared folder does not inherit its members from the parent folder. + */ + NO_INHERIT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccessInheritance value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INHERIT: { + g.writeString("inherit"); + break; + } + case NO_INHERIT: { + g.writeString("no_inherit"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccessInheritance deserialize(JsonParser p) throws IOException, JsonParseException { + AccessInheritance value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("inherit".equals(tag)) { + value = AccessInheritance.INHERIT; + } + else if ("no_inherit".equals(tag)) { + value = AccessInheritance.NO_INHERIT; + } + else { + value = AccessInheritance.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AccessLevel.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AccessLevel.java new file mode 100644 index 000000000..4686db118 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AccessLevel.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Defines the access levels for collaborators. + */ +public enum AccessLevel { + // union sharing.AccessLevel (sharing_folders.stone) + /** + * The collaborator is the owner of the shared folder. Owners can view and + * edit the shared folder as well as set the folder's policies using {@link + * DbxUserSharingRequests#updateFolderPolicy(String)}. + */ + OWNER, + /** + * The collaborator can both view and edit the shared folder. + */ + EDITOR, + /** + * The collaborator can only view the shared folder. + */ + VIEWER, + /** + * The collaborator can only view the shared folder and does not have any + * access to comments. + */ + VIEWER_NO_COMMENT, + /** + * The collaborator can only view the shared folder that they have access + * to. + */ + TRAVERSE, + /** + * If there is a Righteous Link on the folder which grants access and the + * user has visited such link, they are allowed to perform certain action + * (i.e. add themselves to the folder) via the link access even though the + * user themselves are not a member on the shared folder yet. + */ + NO_ACCESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccessLevel value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case OWNER: { + g.writeString("owner"); + break; + } + case EDITOR: { + g.writeString("editor"); + break; + } + case VIEWER: { + g.writeString("viewer"); + break; + } + case VIEWER_NO_COMMENT: { + g.writeString("viewer_no_comment"); + break; + } + case TRAVERSE: { + g.writeString("traverse"); + break; + } + case NO_ACCESS: { + g.writeString("no_access"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccessLevel deserialize(JsonParser p) throws IOException, JsonParseException { + AccessLevel value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("owner".equals(tag)) { + value = AccessLevel.OWNER; + } + else if ("editor".equals(tag)) { + value = AccessLevel.EDITOR; + } + else if ("viewer".equals(tag)) { + value = AccessLevel.VIEWER; + } + else if ("viewer_no_comment".equals(tag)) { + value = AccessLevel.VIEWER_NO_COMMENT; + } + else if ("traverse".equals(tag)) { + value = AccessLevel.TRAVERSE; + } + else if ("no_access".equals(tag)) { + value = AccessLevel.NO_ACCESS; + } + else { + value = AccessLevel.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AclUpdatePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AclUpdatePolicy.java new file mode 100644 index 000000000..6df1f77a8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AclUpdatePolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Who can change a shared folder's access control list (ACL). In other words, + * who can add, remove, or change the privileges of members. + */ +public enum AclUpdatePolicy { + // union sharing.AclUpdatePolicy (sharing_folders.stone) + /** + * Only the owner can update the ACL. + */ + OWNER, + /** + * Any editor can update the ACL. This may be further restricted to editors + * on the same team. + */ + EDITORS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AclUpdatePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case OWNER: { + g.writeString("owner"); + break; + } + case EDITORS: { + g.writeString("editors"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AclUpdatePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + AclUpdatePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("owner".equals(tag)) { + value = AclUpdatePolicy.OWNER; + } + else if ("editors".equals(tag)) { + value = AclUpdatePolicy.EDITORS; + } + else { + value = AclUpdatePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberArgs.java new file mode 100644 index 000000000..372f2c7ec --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberArgs.java @@ -0,0 +1,476 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments for {@link DbxUserSharingRequests#addFileMember(String,List)}. + */ +class AddFileMemberArgs { + // struct sharing.AddFileMemberArgs (sharing_files.stone) + + @Nonnull + protected final String file; + @Nonnull + protected final List members; + @Nullable + protected final String customMessage; + protected final boolean quiet; + @Nonnull + protected final AccessLevel accessLevel; + protected final boolean addMessageAsComment; + + /** + * Arguments for {@link DbxUserSharingRequests#addFileMember(String,List)}. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param file File to which to add members. Must have length of at least + * 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param members Members to add. Note that even an email address is given, + * this may result in a user being directly added to the membership if + * that email is the user's main account email. Must not contain a + * {@code null} item and not be {@code null}. + * @param customMessage Message to send to added members in their + * invitation. + * @param quiet Whether added members should be notified via email and + * device notifications of their invitation. + * @param accessLevel AccessLevel union object, describing what access + * level we want to give new members. Must not be {@code null}. + * @param addMessageAsComment If the custom message should be added as a + * comment on the file. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFileMemberArgs(@Nonnull String file, @Nonnull List members, @Nullable String customMessage, boolean quiet, @Nonnull AccessLevel accessLevel, boolean addMessageAsComment) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (MemberSelector x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.customMessage = customMessage; + this.quiet = quiet; + if (accessLevel == null) { + throw new IllegalArgumentException("Required value for 'accessLevel' is null"); + } + this.accessLevel = accessLevel; + this.addMessageAsComment = addMessageAsComment; + } + + /** + * Arguments for {@link DbxUserSharingRequests#addFileMember(String,List)}. + * + *

The default values for unset fields will be used.

+ * + * @param file File to which to add members. Must have length of at least + * 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param members Members to add. Note that even an email address is given, + * this may result in a user being directly added to the membership if + * that email is the user's main account email. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFileMemberArgs(@Nonnull String file, @Nonnull List members) { + this(file, members, null, false, AccessLevel.VIEWER, false); + } + + /** + * File to which to add members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + /** + * Members to add. Note that even an email address is given, this may result + * in a user being directly added to the membership if that email is the + * user's main account email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * Message to send to added members in their invitation. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCustomMessage() { + return customMessage; + } + + /** + * Whether added members should be notified via email and device + * notifications of their invitation. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getQuiet() { + return quiet; + } + + /** + * AccessLevel union object, describing what access level we want to give + * new members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * AccessLevel.VIEWER. + */ + @Nonnull + public AccessLevel getAccessLevel() { + return accessLevel; + } + + /** + * If the custom message should be added as a comment on the file. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAddMessageAsComment() { + return addMessageAsComment; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param file File to which to add members. Must have length of at least + * 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param members Members to add. Note that even an email address is given, + * this may result in a user being directly added to the membership if + * that email is the user's main account email. Must not contain a + * {@code null} item and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String file, List members) { + return new Builder(file, members); + } + + /** + * Builder for {@link AddFileMemberArgs}. + */ + public static class Builder { + protected final String file; + protected final List members; + + protected String customMessage; + protected boolean quiet; + protected AccessLevel accessLevel; + protected boolean addMessageAsComment; + + protected Builder(String file, List members) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (MemberSelector x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.customMessage = null; + this.quiet = false; + this.accessLevel = AccessLevel.VIEWER; + this.addMessageAsComment = false; + } + + /** + * Set value for optional field. + * + * @param customMessage Message to send to added members in their + * invitation. + * + * @return this builder + */ + public Builder withCustomMessage(String customMessage) { + this.customMessage = customMessage; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param quiet Whether added members should be notified via email and + * device notifications of their invitation. Defaults to {@code + * false} when set to {@code null}. + * + * @return this builder + */ + public Builder withQuiet(Boolean quiet) { + if (quiet != null) { + this.quiet = quiet; + } + else { + this.quiet = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * AccessLevel.VIEWER}.

+ * + * @param accessLevel AccessLevel union object, describing what access + * level we want to give new members. Must not be {@code null}. + * Defaults to {@code AccessLevel.VIEWER} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccessLevel(AccessLevel accessLevel) { + if (accessLevel != null) { + this.accessLevel = accessLevel; + } + else { + this.accessLevel = AccessLevel.VIEWER; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param addMessageAsComment If the custom message should be added as + * a comment on the file. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withAddMessageAsComment(Boolean addMessageAsComment) { + if (addMessageAsComment != null) { + this.addMessageAsComment = addMessageAsComment; + } + else { + this.addMessageAsComment = false; + } + return this; + } + + /** + * Builds an instance of {@link AddFileMemberArgs} configured with this + * builder's values + * + * @return new instance of {@link AddFileMemberArgs} + */ + public AddFileMemberArgs build() { + return new AddFileMemberArgs(file, members, customMessage, quiet, accessLevel, addMessageAsComment); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file, + this.members, + this.customMessage, + this.quiet, + this.accessLevel, + this.addMessageAsComment + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddFileMemberArgs other = (AddFileMemberArgs) obj; + return ((this.file == other.file) || (this.file.equals(other.file))) + && ((this.members == other.members) || (this.members.equals(other.members))) + && ((this.customMessage == other.customMessage) || (this.customMessage != null && this.customMessage.equals(other.customMessage))) + && (this.quiet == other.quiet) + && ((this.accessLevel == other.accessLevel) || (this.accessLevel.equals(other.accessLevel))) + && (this.addMessageAsComment == other.addMessageAsComment) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddFileMemberArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + g.writeFieldName("members"); + StoneSerializers.list(MemberSelector.Serializer.INSTANCE).serialize(value.members, g); + if (value.customMessage != null) { + g.writeFieldName("custom_message"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.customMessage, g); + } + g.writeFieldName("quiet"); + StoneSerializers.boolean_().serialize(value.quiet, g); + g.writeFieldName("access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessLevel, g); + g.writeFieldName("add_message_as_comment"); + StoneSerializers.boolean_().serialize(value.addMessageAsComment, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddFileMemberArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddFileMemberArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + List f_members = null; + String f_customMessage = null; + Boolean f_quiet = false; + AccessLevel f_accessLevel = AccessLevel.VIEWER; + Boolean f_addMessageAsComment = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else if ("members".equals(field)) { + f_members = StoneSerializers.list(MemberSelector.Serializer.INSTANCE).deserialize(p); + } + else if ("custom_message".equals(field)) { + f_customMessage = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("quiet".equals(field)) { + f_quiet = StoneSerializers.boolean_().deserialize(p); + } + else if ("access_level".equals(field)) { + f_accessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("add_message_as_comment".equals(field)) { + f_addMessageAsComment = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + value = new AddFileMemberArgs(f_file, f_members, f_customMessage, f_quiet, f_accessLevel, f_addMessageAsComment); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberBuilder.java new file mode 100644 index 000000000..b259209df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberBuilder.java @@ -0,0 +1,113 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#addFileMemberBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class AddFileMemberBuilder { + private final DbxUserSharingRequests _client; + private final AddFileMemberArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + AddFileMemberBuilder(DbxUserSharingRequests _client, AddFileMemberArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param customMessage Message to send to added members in their + * invitation. + * + * @return this builder + */ + public AddFileMemberBuilder withCustomMessage(String customMessage) { + this._builder.withCustomMessage(customMessage); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param quiet Whether added members should be notified via email and + * device notifications of their invitation. Defaults to {@code false} + * when set to {@code null}. + * + * @return this builder + */ + public AddFileMemberBuilder withQuiet(Boolean quiet) { + this._builder.withQuiet(quiet); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * AccessLevel.VIEWER}.

+ * + * @param accessLevel AccessLevel union object, describing what access + * level we want to give new members. Must not be {@code null}. Defaults + * to {@code AccessLevel.VIEWER} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFileMemberBuilder withAccessLevel(AccessLevel accessLevel) { + this._builder.withAccessLevel(accessLevel); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param addMessageAsComment If the custom message should be added as a + * comment on the file. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public AddFileMemberBuilder withAddMessageAsComment(Boolean addMessageAsComment) { + this._builder.withAddMessageAsComment(addMessageAsComment); + return this; + } + + /** + * Issues the request. + */ + public List start() throws AddFileMemberErrorException, DbxException { + AddFileMemberArgs arg_ = this._builder.build(); + return _client.addFileMember(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberError.java new file mode 100644 index 000000000..00744dd54 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberError.java @@ -0,0 +1,423 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Errors for {@link + * DbxUserSharingRequests#addFileMember(String,java.util.List)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AddFileMemberError { + // union sharing.AddFileMemberError (sharing_files.stone) + + /** + * Discriminating tag type for {@link AddFileMemberError}. + */ + public enum Tag { + USER_ERROR, // SharingUserError + ACCESS_ERROR, // SharingFileAccessError + /** + * The user has reached the rate limit for invitations. + */ + RATE_LIMIT, + /** + * The custom message did not pass comment permissions checks. + */ + INVALID_COMMENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The user has reached the rate limit for invitations. + */ + public static final AddFileMemberError RATE_LIMIT = new AddFileMemberError().withTag(Tag.RATE_LIMIT); + /** + * The custom message did not pass comment permissions checks. + */ + public static final AddFileMemberError INVALID_COMMENT = new AddFileMemberError().withTag(Tag.INVALID_COMMENT); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AddFileMemberError OTHER = new AddFileMemberError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingUserError userErrorValue; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AddFileMemberError() { + } + + + /** + * Errors for {@link + * DbxUserSharingRequests#addFileMember(String,java.util.List)}. + * + * @param _tag Discriminating tag for this instance. + */ + private AddFileMemberError withTag(Tag _tag) { + AddFileMemberError result = new AddFileMemberError(); + result._tag = _tag; + return result; + } + + /** + * Errors for {@link + * DbxUserSharingRequests#addFileMember(String,java.util.List)}. + * + * @param userErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddFileMemberError withTagAndUserError(Tag _tag, SharingUserError userErrorValue) { + AddFileMemberError result = new AddFileMemberError(); + result._tag = _tag; + result.userErrorValue = userErrorValue; + return result; + } + + /** + * Errors for {@link + * DbxUserSharingRequests#addFileMember(String,java.util.List)}. + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddFileMemberError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + AddFileMemberError result = new AddFileMemberError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AddFileMemberError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ERROR}, {@code false} otherwise. + */ + public boolean isUserError() { + return this._tag == Tag.USER_ERROR; + } + + /** + * Returns an instance of {@code AddFileMemberError} that has its tag set to + * {@link Tag#USER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddFileMemberError} with its tag set to {@link + * Tag#USER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AddFileMemberError userError(SharingUserError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AddFileMemberError().withTagAndUserError(Tag.USER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_ERROR}. + * + * @return The {@link SharingUserError} value associated with this instance + * if {@link #isUserError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserError} is {@code false}. + */ + public SharingUserError getUserErrorValue() { + if (this._tag != Tag.USER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ERROR, but was Tag." + this._tag.name()); + } + return userErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code AddFileMemberError} that has its tag set to + * {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddFileMemberError} with its tag set to {@link + * Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AddFileMemberError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AddFileMemberError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#RATE_LIMIT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RATE_LIMIT}, {@code false} otherwise. + */ + public boolean isRateLimit() { + return this._tag == Tag.RATE_LIMIT; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_COMMENT}, {@code false} otherwise. + */ + public boolean isInvalidComment() { + return this._tag == Tag.INVALID_COMMENT; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userErrorValue, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AddFileMemberError) { + AddFileMemberError other = (AddFileMemberError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_ERROR: + return (this.userErrorValue == other.userErrorValue) || (this.userErrorValue.equals(other.userErrorValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case RATE_LIMIT: + return true; + case INVALID_COMMENT: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddFileMemberError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_ERROR: { + g.writeStartObject(); + writeTag("user_error", g); + g.writeFieldName("user_error"); + SharingUserError.Serializer.INSTANCE.serialize(value.userErrorValue, g); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case RATE_LIMIT: { + g.writeString("rate_limit"); + break; + } + case INVALID_COMMENT: { + g.writeString("invalid_comment"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AddFileMemberError deserialize(JsonParser p) throws IOException, JsonParseException { + AddFileMemberError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_error".equals(tag)) { + SharingUserError fieldValue = null; + expectField("user_error", p); + fieldValue = SharingUserError.Serializer.INSTANCE.deserialize(p); + value = AddFileMemberError.userError(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = AddFileMemberError.accessError(fieldValue); + } + else if ("rate_limit".equals(tag)) { + value = AddFileMemberError.RATE_LIMIT; + } + else if ("invalid_comment".equals(tag)) { + value = AddFileMemberError.INVALID_COMMENT; + } + else { + value = AddFileMemberError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberErrorException.java new file mode 100644 index 000000000..15c2577b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link AddFileMemberError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#addFileMember(String,java.util.List)}.

+ */ +public class AddFileMemberErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/add_file_member + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#addFileMember(String,java.util.List)}. + */ + public final AddFileMemberError errorValue; + + public AddFileMemberErrorException(String routeName, String requestId, LocalizedText userMessage, AddFileMemberError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberArg.java new file mode 100644 index 000000000..b7e4bcece --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberArg.java @@ -0,0 +1,367 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class AddFolderMemberArg { + // struct sharing.AddFolderMemberArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + @Nonnull + protected final List members; + protected final boolean quiet; + @Nullable + protected final String customMessage; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param members The intended list of members to add. Added members will + * receive invites to join the shared folder. Must not contain a {@code + * null} item and not be {@code null}. + * @param quiet Whether added members should be notified via email and + * device notifications of their invite. + * @param customMessage Optional message to display to added members in + * their invitation. Must have length of at least 1. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFolderMemberArg(@Nonnull String sharedFolderId, @Nonnull List members, boolean quiet, @Nullable String customMessage) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (AddMember x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.quiet = quiet; + if (customMessage != null) { + if (customMessage.length() < 1) { + throw new IllegalArgumentException("String 'customMessage' is shorter than 1"); + } + } + this.customMessage = customMessage; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param members The intended list of members to add. Added members will + * receive invites to join the shared folder. Must not contain a {@code + * null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFolderMemberArg(@Nonnull String sharedFolderId, @Nonnull List members) { + this(sharedFolderId, members, false, null); + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * The intended list of members to add. Added members will receive invites + * to join the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * Whether added members should be notified via email and device + * notifications of their invite. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getQuiet() { + return quiet; + } + + /** + * Optional message to display to added members in their invitation. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCustomMessage() { + return customMessage; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param members The intended list of members to add. Added members will + * receive invites to join the shared folder. Must not contain a {@code + * null} item and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String sharedFolderId, List members) { + return new Builder(sharedFolderId, members); + } + + /** + * Builder for {@link AddFolderMemberArg}. + */ + public static class Builder { + protected final String sharedFolderId; + protected final List members; + + protected boolean quiet; + protected String customMessage; + + protected Builder(String sharedFolderId, List members) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (AddMember x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.quiet = false; + this.customMessage = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param quiet Whether added members should be notified via email and + * device notifications of their invite. Defaults to {@code false} + * when set to {@code null}. + * + * @return this builder + */ + public Builder withQuiet(Boolean quiet) { + if (quiet != null) { + this.quiet = quiet; + } + else { + this.quiet = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param customMessage Optional message to display to added members in + * their invitation. Must have length of at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withCustomMessage(String customMessage) { + if (customMessage != null) { + if (customMessage.length() < 1) { + throw new IllegalArgumentException("String 'customMessage' is shorter than 1"); + } + } + this.customMessage = customMessage; + return this; + } + + /** + * Builds an instance of {@link AddFolderMemberArg} configured with this + * builder's values + * + * @return new instance of {@link AddFolderMemberArg} + */ + public AddFolderMemberArg build() { + return new AddFolderMemberArg(sharedFolderId, members, quiet, customMessage); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.members, + this.quiet, + this.customMessage + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddFolderMemberArg other = (AddFolderMemberArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.members == other.members) || (this.members.equals(other.members))) + && (this.quiet == other.quiet) + && ((this.customMessage == other.customMessage) || (this.customMessage != null && this.customMessage.equals(other.customMessage))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddFolderMemberArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("members"); + StoneSerializers.list(AddMember.Serializer.INSTANCE).serialize(value.members, g); + g.writeFieldName("quiet"); + StoneSerializers.boolean_().serialize(value.quiet, g); + if (value.customMessage != null) { + g.writeFieldName("custom_message"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.customMessage, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddFolderMemberArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddFolderMemberArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + List f_members = null; + Boolean f_quiet = false; + String f_customMessage = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("members".equals(field)) { + f_members = StoneSerializers.list(AddMember.Serializer.INSTANCE).deserialize(p); + } + else if ("quiet".equals(field)) { + f_quiet = StoneSerializers.boolean_().deserialize(p); + } + else if ("custom_message".equals(field)) { + f_customMessage = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + value = new AddFolderMemberArg(f_sharedFolderId, f_members, f_quiet, f_customMessage); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberBuilder.java new file mode 100644 index 000000000..766843b7e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberBuilder.java @@ -0,0 +1,78 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#addFolderMemberBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class AddFolderMemberBuilder { + private final DbxUserSharingRequests _client; + private final AddFolderMemberArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + AddFolderMemberBuilder(DbxUserSharingRequests _client, AddFolderMemberArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param quiet Whether added members should be notified via email and + * device notifications of their invite. Defaults to {@code false} when + * set to {@code null}. + * + * @return this builder + */ + public AddFolderMemberBuilder withQuiet(Boolean quiet) { + this._builder.withQuiet(quiet); + return this; + } + + /** + * Set value for optional field. + * + * @param customMessage Optional message to display to added members in + * their invitation. Must have length of at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFolderMemberBuilder withCustomMessage(String customMessage) { + this._builder.withCustomMessage(customMessage); + return this; + } + + /** + * Issues the request. + */ + public void start() throws AddFolderMemberErrorException, DbxException { + AddFolderMemberArg arg_ = this._builder.build(); + _client.addFolderMember(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberError.java new file mode 100644 index 000000000..824ba25cc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberError.java @@ -0,0 +1,795 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AddFolderMemberError { + // union sharing.AddFolderMemberError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link AddFolderMemberError}. + */ + public enum Tag { + /** + * Unable to access shared folder. + */ + ACCESS_ERROR, // SharedFolderAccessError + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * The current user has been banned. + */ + BANNED_MEMBER, + /** + * {@link AddFolderMemberArg#getMembers} contains a bad invitation + * recipient. + */ + BAD_MEMBER, // AddMemberSelectorError + /** + * Your team policy does not allow sharing outside of the team. + */ + CANT_SHARE_OUTSIDE_TEAM, + /** + * The value is the member limit that was reached. + */ + TOO_MANY_MEMBERS, // long + /** + * The value is the pending invite limit that was reached. + */ + TOO_MANY_PENDING_INVITES, // long + /** + * The current user has hit the limit of invites they can send per day. + * Try again in 24 hours. + */ + RATE_LIMIT, + /** + * The current user is trying to share with too many people at once. + */ + TOO_MANY_INVITEES, + /** + * The current user's account doesn't support this action. An example of + * this is when adding a read-only member. This action can only be + * performed by users that have upgraded to a Pro or Business plan. + */ + INSUFFICIENT_PLAN, + /** + * This action cannot be performed on a team shared folder. + */ + TEAM_FOLDER, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * Invalid shared folder error will be returned as an access_error. + */ + INVALID_SHARED_FOLDER, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + public static final AddFolderMemberError EMAIL_UNVERIFIED = new AddFolderMemberError().withTag(Tag.EMAIL_UNVERIFIED); + /** + * The current user has been banned. + */ + public static final AddFolderMemberError BANNED_MEMBER = new AddFolderMemberError().withTag(Tag.BANNED_MEMBER); + /** + * Your team policy does not allow sharing outside of the team. + */ + public static final AddFolderMemberError CANT_SHARE_OUTSIDE_TEAM = new AddFolderMemberError().withTag(Tag.CANT_SHARE_OUTSIDE_TEAM); + /** + * The current user has hit the limit of invites they can send per day. Try + * again in 24 hours. + */ + public static final AddFolderMemberError RATE_LIMIT = new AddFolderMemberError().withTag(Tag.RATE_LIMIT); + /** + * The current user is trying to share with too many people at once. + */ + public static final AddFolderMemberError TOO_MANY_INVITEES = new AddFolderMemberError().withTag(Tag.TOO_MANY_INVITEES); + /** + * The current user's account doesn't support this action. An example of + * this is when adding a read-only member. This action can only be performed + * by users that have upgraded to a Pro or Business plan. + */ + public static final AddFolderMemberError INSUFFICIENT_PLAN = new AddFolderMemberError().withTag(Tag.INSUFFICIENT_PLAN); + /** + * This action cannot be performed on a team shared folder. + */ + public static final AddFolderMemberError TEAM_FOLDER = new AddFolderMemberError().withTag(Tag.TEAM_FOLDER); + /** + * The current user does not have permission to perform this action. + */ + public static final AddFolderMemberError NO_PERMISSION = new AddFolderMemberError().withTag(Tag.NO_PERMISSION); + /** + * Invalid shared folder error will be returned as an access_error. + */ + public static final AddFolderMemberError INVALID_SHARED_FOLDER = new AddFolderMemberError().withTag(Tag.INVALID_SHARED_FOLDER); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AddFolderMemberError OTHER = new AddFolderMemberError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + private AddMemberSelectorError badMemberValue; + private Long tooManyMembersValue; + private Long tooManyPendingInvitesValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AddFolderMemberError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private AddFolderMemberError withTag(Tag _tag) { + AddFolderMemberError result = new AddFolderMemberError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Unable to access shared folder. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddFolderMemberError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + AddFolderMemberError result = new AddFolderMemberError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param badMemberValue {@link AddFolderMemberArg#getMembers} contains a + * bad invitation recipient. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddFolderMemberError withTagAndBadMember(Tag _tag, AddMemberSelectorError badMemberValue) { + AddFolderMemberError result = new AddFolderMemberError(); + result._tag = _tag; + result.badMemberValue = badMemberValue; + return result; + } + + /** + * + * @param tooManyMembersValue The value is the member limit that was + * reached. + * @param _tag Discriminating tag for this instance. + */ + private AddFolderMemberError withTagAndTooManyMembers(Tag _tag, Long tooManyMembersValue) { + AddFolderMemberError result = new AddFolderMemberError(); + result._tag = _tag; + result.tooManyMembersValue = tooManyMembersValue; + return result; + } + + /** + * + * @param tooManyPendingInvitesValue The value is the pending invite limit + * that was reached. + * @param _tag Discriminating tag for this instance. + */ + private AddFolderMemberError withTagAndTooManyPendingInvites(Tag _tag, Long tooManyPendingInvitesValue) { + AddFolderMemberError result = new AddFolderMemberError(); + result._tag = _tag; + result.tooManyPendingInvitesValue = tooManyPendingInvitesValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AddFolderMemberError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code AddFolderMemberError} that has its tag set + * to {@link Tag#ACCESS_ERROR}. + * + *

Unable to access shared folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddFolderMemberError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AddFolderMemberError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AddFolderMemberError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * Unable to access shared folder. + * + *

This instance must be tagged as {@link Tag#ACCESS_ERROR}.

+ * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_UNVERIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_UNVERIFIED}, {@code false} otherwise. + */ + public boolean isEmailUnverified() { + return this._tag == Tag.EMAIL_UNVERIFIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BANNED_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BANNED_MEMBER}, {@code false} otherwise. + */ + public boolean isBannedMember() { + return this._tag == Tag.BANNED_MEMBER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#BAD_MEMBER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BAD_MEMBER}, {@code false} otherwise. + */ + public boolean isBadMember() { + return this._tag == Tag.BAD_MEMBER; + } + + /** + * Returns an instance of {@code AddFolderMemberError} that has its tag set + * to {@link Tag#BAD_MEMBER}. + * + *

{@link AddFolderMemberArg#getMembers} contains a bad invitation + * recipient.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddFolderMemberError} with its tag set to + * {@link Tag#BAD_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AddFolderMemberError badMember(AddMemberSelectorError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AddFolderMemberError().withTagAndBadMember(Tag.BAD_MEMBER, value); + } + + /** + * {@link AddFolderMemberArg#getMembers} contains a bad invitation + * recipient. + * + *

This instance must be tagged as {@link Tag#BAD_MEMBER}.

+ * + * @return The {@link AddMemberSelectorError} value associated with this + * instance if {@link #isBadMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isBadMember} is {@code false}. + */ + public AddMemberSelectorError getBadMemberValue() { + if (this._tag != Tag.BAD_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.BAD_MEMBER, but was Tag." + this._tag.name()); + } + return badMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANT_SHARE_OUTSIDE_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANT_SHARE_OUTSIDE_TEAM}, {@code false} otherwise. + */ + public boolean isCantShareOutsideTeam() { + return this._tag == Tag.CANT_SHARE_OUTSIDE_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_MEMBERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_MEMBERS}, {@code false} otherwise. + */ + public boolean isTooManyMembers() { + return this._tag == Tag.TOO_MANY_MEMBERS; + } + + /** + * Returns an instance of {@code AddFolderMemberError} that has its tag set + * to {@link Tag#TOO_MANY_MEMBERS}. + * + *

The value is the member limit that was reached.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddFolderMemberError} with its tag set to + * {@link Tag#TOO_MANY_MEMBERS}. + */ + public static AddFolderMemberError tooManyMembers(long value) { + return new AddFolderMemberError().withTagAndTooManyMembers(Tag.TOO_MANY_MEMBERS, value); + } + + /** + * The value is the member limit that was reached. + * + *

This instance must be tagged as {@link Tag#TOO_MANY_MEMBERS}.

+ * + * @return The {@link long} value associated with this instance if {@link + * #isTooManyMembers} is {@code true}. + * + * @throws IllegalStateException If {@link #isTooManyMembers} is {@code + * false}. + */ + public long getTooManyMembersValue() { + if (this._tag != Tag.TOO_MANY_MEMBERS) { + throw new IllegalStateException("Invalid tag: required Tag.TOO_MANY_MEMBERS, but was Tag." + this._tag.name()); + } + return tooManyMembersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_PENDING_INVITES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_PENDING_INVITES}, {@code false} otherwise. + */ + public boolean isTooManyPendingInvites() { + return this._tag == Tag.TOO_MANY_PENDING_INVITES; + } + + /** + * Returns an instance of {@code AddFolderMemberError} that has its tag set + * to {@link Tag#TOO_MANY_PENDING_INVITES}. + * + *

The value is the pending invite limit that was reached.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddFolderMemberError} with its tag set to + * {@link Tag#TOO_MANY_PENDING_INVITES}. + */ + public static AddFolderMemberError tooManyPendingInvites(long value) { + return new AddFolderMemberError().withTagAndTooManyPendingInvites(Tag.TOO_MANY_PENDING_INVITES, value); + } + + /** + * The value is the pending invite limit that was reached. + * + *

This instance must be tagged as {@link Tag#TOO_MANY_PENDING_INVITES}. + *

+ * + * @return The {@link long} value associated with this instance if {@link + * #isTooManyPendingInvites} is {@code true}. + * + * @throws IllegalStateException If {@link #isTooManyPendingInvites} is + * {@code false}. + */ + public long getTooManyPendingInvitesValue() { + if (this._tag != Tag.TOO_MANY_PENDING_INVITES) { + throw new IllegalStateException("Invalid tag: required Tag.TOO_MANY_PENDING_INVITES, but was Tag." + this._tag.name()); + } + return tooManyPendingInvitesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#RATE_LIMIT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RATE_LIMIT}, {@code false} otherwise. + */ + public boolean isRateLimit() { + return this._tag == Tag.RATE_LIMIT; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_INVITEES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_INVITEES}, {@code false} otherwise. + */ + public boolean isTooManyInvitees() { + return this._tag == Tag.TOO_MANY_INVITEES; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_PLAN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_PLAN}, {@code false} otherwise. + */ + public boolean isInsufficientPlan() { + return this._tag == Tag.INSUFFICIENT_PLAN; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isTeamFolder() { + return this._tag == Tag.TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isInvalidSharedFolder() { + return this._tag == Tag.INVALID_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.badMemberValue, + this.tooManyMembersValue, + this.tooManyPendingInvitesValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AddFolderMemberError) { + AddFolderMemberError other = (AddFolderMemberError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case EMAIL_UNVERIFIED: + return true; + case BANNED_MEMBER: + return true; + case BAD_MEMBER: + return (this.badMemberValue == other.badMemberValue) || (this.badMemberValue.equals(other.badMemberValue)); + case CANT_SHARE_OUTSIDE_TEAM: + return true; + case TOO_MANY_MEMBERS: + return this.tooManyMembersValue == other.tooManyMembersValue; + case TOO_MANY_PENDING_INVITES: + return this.tooManyPendingInvitesValue == other.tooManyPendingInvitesValue; + case RATE_LIMIT: + return true; + case TOO_MANY_INVITEES: + return true; + case INSUFFICIENT_PLAN: + return true; + case TEAM_FOLDER: + return true; + case NO_PERMISSION: + return true; + case INVALID_SHARED_FOLDER: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddFolderMemberError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case BANNED_MEMBER: { + g.writeString("banned_member"); + break; + } + case BAD_MEMBER: { + g.writeStartObject(); + writeTag("bad_member", g); + g.writeFieldName("bad_member"); + AddMemberSelectorError.Serializer.INSTANCE.serialize(value.badMemberValue, g); + g.writeEndObject(); + break; + } + case CANT_SHARE_OUTSIDE_TEAM: { + g.writeString("cant_share_outside_team"); + break; + } + case TOO_MANY_MEMBERS: { + g.writeStartObject(); + writeTag("too_many_members", g); + g.writeFieldName("too_many_members"); + StoneSerializers.uInt64().serialize(value.tooManyMembersValue, g); + g.writeEndObject(); + break; + } + case TOO_MANY_PENDING_INVITES: { + g.writeStartObject(); + writeTag("too_many_pending_invites", g); + g.writeFieldName("too_many_pending_invites"); + StoneSerializers.uInt64().serialize(value.tooManyPendingInvitesValue, g); + g.writeEndObject(); + break; + } + case RATE_LIMIT: { + g.writeString("rate_limit"); + break; + } + case TOO_MANY_INVITEES: { + g.writeString("too_many_invitees"); + break; + } + case INSUFFICIENT_PLAN: { + g.writeString("insufficient_plan"); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case INVALID_SHARED_FOLDER: { + g.writeString("invalid_shared_folder"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AddFolderMemberError deserialize(JsonParser p) throws IOException, JsonParseException { + AddFolderMemberError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = AddFolderMemberError.accessError(fieldValue); + } + else if ("email_unverified".equals(tag)) { + value = AddFolderMemberError.EMAIL_UNVERIFIED; + } + else if ("banned_member".equals(tag)) { + value = AddFolderMemberError.BANNED_MEMBER; + } + else if ("bad_member".equals(tag)) { + AddMemberSelectorError fieldValue = null; + expectField("bad_member", p); + fieldValue = AddMemberSelectorError.Serializer.INSTANCE.deserialize(p); + value = AddFolderMemberError.badMember(fieldValue); + } + else if ("cant_share_outside_team".equals(tag)) { + value = AddFolderMemberError.CANT_SHARE_OUTSIDE_TEAM; + } + else if ("too_many_members".equals(tag)) { + Long fieldValue = null; + expectField("too_many_members", p); + fieldValue = StoneSerializers.uInt64().deserialize(p); + value = AddFolderMemberError.tooManyMembers(fieldValue); + } + else if ("too_many_pending_invites".equals(tag)) { + Long fieldValue = null; + expectField("too_many_pending_invites", p); + fieldValue = StoneSerializers.uInt64().deserialize(p); + value = AddFolderMemberError.tooManyPendingInvites(fieldValue); + } + else if ("rate_limit".equals(tag)) { + value = AddFolderMemberError.RATE_LIMIT; + } + else if ("too_many_invitees".equals(tag)) { + value = AddFolderMemberError.TOO_MANY_INVITEES; + } + else if ("insufficient_plan".equals(tag)) { + value = AddFolderMemberError.INSUFFICIENT_PLAN; + } + else if ("team_folder".equals(tag)) { + value = AddFolderMemberError.TEAM_FOLDER; + } + else if ("no_permission".equals(tag)) { + value = AddFolderMemberError.NO_PERMISSION; + } + else if ("invalid_shared_folder".equals(tag)) { + value = AddFolderMemberError.INVALID_SHARED_FOLDER; + } + else { + value = AddFolderMemberError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberErrorException.java new file mode 100644 index 000000000..ccb8a1e97 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link AddFolderMemberError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#addFolderMember(String,java.util.List)}.

+ */ +public class AddFolderMemberErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/add_folder_member + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#addFolderMember(String,java.util.List)}. + */ + public final AddFolderMemberError errorValue; + + public AddFolderMemberErrorException(String routeName, String requestId, LocalizedText userMessage, AddFolderMemberError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddMember.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddMember.java new file mode 100644 index 000000000..fb6cba370 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddMember.java @@ -0,0 +1,200 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * The member and type of access the member should have when added to a shared + * folder. + */ +public class AddMember { + // struct sharing.AddMember (sharing_folders.stone) + + @Nonnull + protected final MemberSelector member; + @Nonnull + protected final AccessLevel accessLevel; + + /** + * The member and type of access the member should have when added to a + * shared folder. + * + * @param member The member to add to the shared folder. Must not be {@code + * null}. + * @param accessLevel The access level to grant {@link AddMember#getMember} + * to the shared folder. {@link AccessLevel#OWNER} is disallowed. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddMember(@Nonnull MemberSelector member, @Nonnull AccessLevel accessLevel) { + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + if (accessLevel == null) { + throw new IllegalArgumentException("Required value for 'accessLevel' is null"); + } + this.accessLevel = accessLevel; + } + + /** + * The member and type of access the member should have when added to a + * shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param member The member to add to the shared folder. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddMember(@Nonnull MemberSelector member) { + this(member, AccessLevel.VIEWER); + } + + /** + * The member to add to the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + /** + * The access level to grant {@link AddMember#getMember} to the shared + * folder. {@link AccessLevel#OWNER} is disallowed. + * + * @return value for this field, or {@code null} if not present. Defaults to + * AccessLevel.VIEWER. + */ + @Nonnull + public AccessLevel getAccessLevel() { + return accessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.member, + this.accessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddMember other = (AddMember) obj; + return ((this.member == other.member) || (this.member.equals(other.member))) + && ((this.accessLevel == other.accessLevel) || (this.accessLevel.equals(other.accessLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddMember value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + g.writeFieldName("access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddMember deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddMember value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberSelector f_member = null; + AccessLevel f_accessLevel = AccessLevel.VIEWER; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("access_level".equals(field)) { + f_accessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + value = new AddMember(f_member, f_accessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddMemberSelectorError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddMemberSelectorError.java new file mode 100644 index 000000000..c2f79bace --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddMemberSelectorError.java @@ -0,0 +1,572 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AddMemberSelectorError { + // union sharing.AddMemberSelectorError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link AddMemberSelectorError}. + */ + public enum Tag { + /** + * Automatically created groups can only be added to team folders. + */ + AUTOMATIC_GROUP, + /** + * The value is the ID that could not be identified. + */ + INVALID_DROPBOX_ID, // String + /** + * The value is the e-email address that is malformed. + */ + INVALID_EMAIL, // String + /** + * The value is the ID of the Dropbox user with an unverified email + * address. Invite unverified users by email address instead of by their + * Dropbox ID. + */ + UNVERIFIED_DROPBOX_ID, // String + /** + * At least one of the specified groups in {@link + * AddFolderMemberArg#getMembers} is deleted. + */ + GROUP_DELETED, + /** + * Sharing to a group that is not on the current user's team. + */ + GROUP_NOT_ON_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Automatically created groups can only be added to team folders. + */ + public static final AddMemberSelectorError AUTOMATIC_GROUP = new AddMemberSelectorError().withTag(Tag.AUTOMATIC_GROUP); + /** + * At least one of the specified groups in {@link + * AddFolderMemberArg#getMembers} is deleted. + */ + public static final AddMemberSelectorError GROUP_DELETED = new AddMemberSelectorError().withTag(Tag.GROUP_DELETED); + /** + * Sharing to a group that is not on the current user's team. + */ + public static final AddMemberSelectorError GROUP_NOT_ON_TEAM = new AddMemberSelectorError().withTag(Tag.GROUP_NOT_ON_TEAM); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AddMemberSelectorError OTHER = new AddMemberSelectorError().withTag(Tag.OTHER); + + private Tag _tag; + private String invalidDropboxIdValue; + private String invalidEmailValue; + private String unverifiedDropboxIdValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AddMemberSelectorError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private AddMemberSelectorError withTag(Tag _tag) { + AddMemberSelectorError result = new AddMemberSelectorError(); + result._tag = _tag; + return result; + } + + /** + * + * @param invalidDropboxIdValue The value is the ID that could not be + * identified. Must have length of at least 1 and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddMemberSelectorError withTagAndInvalidDropboxId(Tag _tag, String invalidDropboxIdValue) { + AddMemberSelectorError result = new AddMemberSelectorError(); + result._tag = _tag; + result.invalidDropboxIdValue = invalidDropboxIdValue; + return result; + } + + /** + * + * @param invalidEmailValue The value is the e-email address that is + * malformed. Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddMemberSelectorError withTagAndInvalidEmail(Tag _tag, String invalidEmailValue) { + AddMemberSelectorError result = new AddMemberSelectorError(); + result._tag = _tag; + result.invalidEmailValue = invalidEmailValue; + return result; + } + + /** + * + * @param unverifiedDropboxIdValue The value is the ID of the Dropbox user + * with an unverified email address. Invite unverified users by email + * address instead of by their Dropbox ID. Must have length of at least + * 1 and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddMemberSelectorError withTagAndUnverifiedDropboxId(Tag _tag, String unverifiedDropboxIdValue) { + AddMemberSelectorError result = new AddMemberSelectorError(); + result._tag = _tag; + result.unverifiedDropboxIdValue = unverifiedDropboxIdValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AddMemberSelectorError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#AUTOMATIC_GROUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#AUTOMATIC_GROUP}, {@code false} otherwise. + */ + public boolean isAutomaticGroup() { + return this._tag == Tag.AUTOMATIC_GROUP; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_DROPBOX_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_DROPBOX_ID}, {@code false} otherwise. + */ + public boolean isInvalidDropboxId() { + return this._tag == Tag.INVALID_DROPBOX_ID; + } + + /** + * Returns an instance of {@code AddMemberSelectorError} that has its tag + * set to {@link Tag#INVALID_DROPBOX_ID}. + * + *

The value is the ID that could not be identified.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddMemberSelectorError} with its tag set to + * {@link Tag#INVALID_DROPBOX_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static AddMemberSelectorError invalidDropboxId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new AddMemberSelectorError().withTagAndInvalidDropboxId(Tag.INVALID_DROPBOX_ID, value); + } + + /** + * The value is the ID that could not be identified. + * + *

This instance must be tagged as {@link Tag#INVALID_DROPBOX_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isInvalidDropboxId} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidDropboxId} is {@code + * false}. + */ + public String getInvalidDropboxIdValue() { + if (this._tag != Tag.INVALID_DROPBOX_ID) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_DROPBOX_ID, but was Tag." + this._tag.name()); + } + return invalidDropboxIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_EMAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_EMAIL}, {@code false} otherwise. + */ + public boolean isInvalidEmail() { + return this._tag == Tag.INVALID_EMAIL; + } + + /** + * Returns an instance of {@code AddMemberSelectorError} that has its tag + * set to {@link Tag#INVALID_EMAIL}. + * + *

The value is the e-email address that is malformed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddMemberSelectorError} with its tag set to + * {@link Tag#INVALID_EMAIL}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddMemberSelectorError invalidEmail(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddMemberSelectorError().withTagAndInvalidEmail(Tag.INVALID_EMAIL, value); + } + + /** + * The value is the e-email address that is malformed. + * + *

This instance must be tagged as {@link Tag#INVALID_EMAIL}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isInvalidEmail} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidEmail} is {@code + * false}. + */ + public String getInvalidEmailValue() { + if (this._tag != Tag.INVALID_EMAIL) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_EMAIL, but was Tag." + this._tag.name()); + } + return invalidEmailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNVERIFIED_DROPBOX_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNVERIFIED_DROPBOX_ID}, {@code false} otherwise. + */ + public boolean isUnverifiedDropboxId() { + return this._tag == Tag.UNVERIFIED_DROPBOX_ID; + } + + /** + * Returns an instance of {@code AddMemberSelectorError} that has its tag + * set to {@link Tag#UNVERIFIED_DROPBOX_ID}. + * + *

The value is the ID of the Dropbox user with an unverified email + * address. Invite unverified users by email address instead of by their + * Dropbox ID.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddMemberSelectorError} with its tag set to + * {@link Tag#UNVERIFIED_DROPBOX_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static AddMemberSelectorError unverifiedDropboxId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new AddMemberSelectorError().withTagAndUnverifiedDropboxId(Tag.UNVERIFIED_DROPBOX_ID, value); + } + + /** + * The value is the ID of the Dropbox user with an unverified email address. + * Invite unverified users by email address instead of by their Dropbox ID. + * + *

This instance must be tagged as {@link Tag#UNVERIFIED_DROPBOX_ID}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUnverifiedDropboxId} is {@code true}. + * + * @throws IllegalStateException If {@link #isUnverifiedDropboxId} is + * {@code false}. + */ + public String getUnverifiedDropboxIdValue() { + if (this._tag != Tag.UNVERIFIED_DROPBOX_ID) { + throw new IllegalStateException("Invalid tag: required Tag.UNVERIFIED_DROPBOX_ID, but was Tag." + this._tag.name()); + } + return unverifiedDropboxIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_DELETED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_DELETED}, {@code false} otherwise. + */ + public boolean isGroupDeleted() { + return this._tag == Tag.GROUP_DELETED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_NOT_ON_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_NOT_ON_TEAM}, {@code false} otherwise. + */ + public boolean isGroupNotOnTeam() { + return this._tag == Tag.GROUP_NOT_ON_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.invalidDropboxIdValue, + this.invalidEmailValue, + this.unverifiedDropboxIdValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AddMemberSelectorError) { + AddMemberSelectorError other = (AddMemberSelectorError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case AUTOMATIC_GROUP: + return true; + case INVALID_DROPBOX_ID: + return (this.invalidDropboxIdValue == other.invalidDropboxIdValue) || (this.invalidDropboxIdValue.equals(other.invalidDropboxIdValue)); + case INVALID_EMAIL: + return (this.invalidEmailValue == other.invalidEmailValue) || (this.invalidEmailValue.equals(other.invalidEmailValue)); + case UNVERIFIED_DROPBOX_ID: + return (this.unverifiedDropboxIdValue == other.unverifiedDropboxIdValue) || (this.unverifiedDropboxIdValue.equals(other.unverifiedDropboxIdValue)); + case GROUP_DELETED: + return true; + case GROUP_NOT_ON_TEAM: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddMemberSelectorError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case AUTOMATIC_GROUP: { + g.writeString("automatic_group"); + break; + } + case INVALID_DROPBOX_ID: { + g.writeStartObject(); + writeTag("invalid_dropbox_id", g); + g.writeFieldName("invalid_dropbox_id"); + StoneSerializers.string().serialize(value.invalidDropboxIdValue, g); + g.writeEndObject(); + break; + } + case INVALID_EMAIL: { + g.writeStartObject(); + writeTag("invalid_email", g); + g.writeFieldName("invalid_email"); + StoneSerializers.string().serialize(value.invalidEmailValue, g); + g.writeEndObject(); + break; + } + case UNVERIFIED_DROPBOX_ID: { + g.writeStartObject(); + writeTag("unverified_dropbox_id", g); + g.writeFieldName("unverified_dropbox_id"); + StoneSerializers.string().serialize(value.unverifiedDropboxIdValue, g); + g.writeEndObject(); + break; + } + case GROUP_DELETED: { + g.writeString("group_deleted"); + break; + } + case GROUP_NOT_ON_TEAM: { + g.writeString("group_not_on_team"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AddMemberSelectorError deserialize(JsonParser p) throws IOException, JsonParseException { + AddMemberSelectorError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("automatic_group".equals(tag)) { + value = AddMemberSelectorError.AUTOMATIC_GROUP; + } + else if ("invalid_dropbox_id".equals(tag)) { + String fieldValue = null; + expectField("invalid_dropbox_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddMemberSelectorError.invalidDropboxId(fieldValue); + } + else if ("invalid_email".equals(tag)) { + String fieldValue = null; + expectField("invalid_email", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddMemberSelectorError.invalidEmail(fieldValue); + } + else if ("unverified_dropbox_id".equals(tag)) { + String fieldValue = null; + expectField("unverified_dropbox_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddMemberSelectorError.unverifiedDropboxId(fieldValue); + } + else if ("group_deleted".equals(tag)) { + value = AddMemberSelectorError.GROUP_DELETED; + } + else if ("group_not_on_team".equals(tag)) { + value = AddMemberSelectorError.GROUP_NOT_ON_TEAM; + } + else { + value = AddMemberSelectorError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AlphaResolvedVisibility.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AlphaResolvedVisibility.java new file mode 100644 index 000000000..a211e6f92 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AlphaResolvedVisibility.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * check documentation for ResolvedVisibility. + */ +public enum AlphaResolvedVisibility { + // union sharing.AlphaResolvedVisibility (shared_links.stone) + /** + * Anyone who has received the link can access it. No login required. + */ + PUBLIC, + /** + * Only members of the same team can access the link. Login is required. + */ + TEAM_ONLY, + /** + * A link-specific password is required to access the link. Login is not + * required. + */ + PASSWORD, + /** + * Only members of the same team who have the link-specific password can + * access the link. Login is required. + */ + TEAM_AND_PASSWORD, + /** + * Only members of the shared folder containing the linked file can access + * the link. Login is required. + */ + SHARED_FOLDER_ONLY, + /** + * The link merely points the user to the content, and does not grant any + * additional rights. Existing members of the content who use this link can + * only access the content with their pre-existing access rights. Either on + * the file directly, or inherited from a parent folder. + */ + NO_ONE, + /** + * Only the current user can view this link. + */ + ONLY_YOU, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AlphaResolvedVisibility value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PUBLIC: { + g.writeString("public"); + break; + } + case TEAM_ONLY: { + g.writeString("team_only"); + break; + } + case PASSWORD: { + g.writeString("password"); + break; + } + case TEAM_AND_PASSWORD: { + g.writeString("team_and_password"); + break; + } + case SHARED_FOLDER_ONLY: { + g.writeString("shared_folder_only"); + break; + } + case NO_ONE: { + g.writeString("no_one"); + break; + } + case ONLY_YOU: { + g.writeString("only_you"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public AlphaResolvedVisibility deserialize(JsonParser p) throws IOException, JsonParseException { + AlphaResolvedVisibility value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("public".equals(tag)) { + value = AlphaResolvedVisibility.PUBLIC; + } + else if ("team_only".equals(tag)) { + value = AlphaResolvedVisibility.TEAM_ONLY; + } + else if ("password".equals(tag)) { + value = AlphaResolvedVisibility.PASSWORD; + } + else if ("team_and_password".equals(tag)) { + value = AlphaResolvedVisibility.TEAM_AND_PASSWORD; + } + else if ("shared_folder_only".equals(tag)) { + value = AlphaResolvedVisibility.SHARED_FOLDER_ONLY; + } + else if ("no_one".equals(tag)) { + value = AlphaResolvedVisibility.NO_ONE; + } + else if ("only_you".equals(tag)) { + value = AlphaResolvedVisibility.ONLY_YOU; + } + else if ("other".equals(tag)) { + value = AlphaResolvedVisibility.OTHER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceExceptionContentInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceExceptionContentInfo.java new file mode 100644 index 000000000..a9e0e1b82 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceExceptionContentInfo.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Information about the content that has a link audience different than that of + * this folder. + */ +public class AudienceExceptionContentInfo { + // struct sharing.AudienceExceptionContentInfo (shared_content_links.stone) + + @Nonnull + protected final String name; + + /** + * Information about the content that has a link audience different than + * that of this folder. + * + * @param name The name of the content, which is either a file or a folder. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AudienceExceptionContentInfo(@Nonnull String name) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * The name of the content, which is either a file or a folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AudienceExceptionContentInfo other = (AudienceExceptionContentInfo) obj; + return (this.name == other.name) || (this.name.equals(other.name)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AudienceExceptionContentInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AudienceExceptionContentInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AudienceExceptionContentInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new AudienceExceptionContentInfo(f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceExceptions.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceExceptions.java new file mode 100644 index 000000000..234cc33a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceExceptions.java @@ -0,0 +1,188 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * The total count and truncated list of information of content inside this + * folder that has a different audience than the link on this folder. This is + * only returned for folders. + */ +public class AudienceExceptions { + // struct sharing.AudienceExceptions (shared_content_links.stone) + + protected final long count; + @Nonnull + protected final List exceptions; + + /** + * The total count and truncated list of information of content inside this + * folder that has a different audience than the link on this folder. This + * is only returned for folders. + * + * @param exceptions A truncated list of some of the content that is an + * exception. The length of this list could be smaller than the count + * since it is only a sample but will not be empty as long as count is + * not 0. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AudienceExceptions(long count, @Nonnull List exceptions) { + this.count = count; + if (exceptions == null) { + throw new IllegalArgumentException("Required value for 'exceptions' is null"); + } + for (AudienceExceptionContentInfo x : exceptions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'exceptions' is null"); + } + } + this.exceptions = exceptions; + } + + /** + * + * @return value for this field. + */ + public long getCount() { + return count; + } + + /** + * A truncated list of some of the content that is an exception. The length + * of this list could be smaller than the count since it is only a sample + * but will not be empty as long as count is not 0. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getExceptions() { + return exceptions; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.count, + this.exceptions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AudienceExceptions other = (AudienceExceptions) obj; + return (this.count == other.count) + && ((this.exceptions == other.exceptions) || (this.exceptions.equals(other.exceptions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AudienceExceptions value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("count"); + StoneSerializers.uInt32().serialize(value.count, g); + g.writeFieldName("exceptions"); + StoneSerializers.list(AudienceExceptionContentInfo.Serializer.INSTANCE).serialize(value.exceptions, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AudienceExceptions deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AudienceExceptions value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_count = null; + List f_exceptions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("count".equals(field)) { + f_count = StoneSerializers.uInt32().deserialize(p); + } + else if ("exceptions".equals(field)) { + f_exceptions = StoneSerializers.list(AudienceExceptionContentInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_count == null) { + throw new JsonParseException(p, "Required field \"count\" missing."); + } + if (f_exceptions == null) { + throw new JsonParseException(p, "Required field \"exceptions\" missing."); + } + value = new AudienceExceptions(f_count, f_exceptions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder.java new file mode 100644 index 000000000..26410e2fb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AudienceRestrictingSharedFolder.java @@ -0,0 +1,216 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Information about the shared folder that prevents the link audience for this + * link from being more restrictive. + */ +public class AudienceRestrictingSharedFolder { + // struct sharing.AudienceRestrictingSharedFolder (shared_content_links.stone) + + @Nonnull + protected final String sharedFolderId; + @Nonnull + protected final String name; + @Nonnull + protected final LinkAudience audience; + + /** + * Information about the shared folder that prevents the link audience for + * this link from being more restrictive. + * + * @param sharedFolderId The ID of the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param name The name of the shared folder. Must not be {@code null}. + * @param audience The link audience of the shared folder. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AudienceRestrictingSharedFolder(@Nonnull String sharedFolderId, @Nonnull String name, @Nonnull LinkAudience audience) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (audience == null) { + throw new IllegalArgumentException("Required value for 'audience' is null"); + } + this.audience = audience; + } + + /** + * The ID of the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * The name of the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The link audience of the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAudience getAudience() { + return audience; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.name, + this.audience + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AudienceRestrictingSharedFolder other = (AudienceRestrictingSharedFolder) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.audience == other.audience) || (this.audience.equals(other.audience))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AudienceRestrictingSharedFolder value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("audience"); + LinkAudience.Serializer.INSTANCE.serialize(value.audience, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AudienceRestrictingSharedFolder deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AudienceRestrictingSharedFolder value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + String f_name = null; + LinkAudience f_audience = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("audience".equals(field)) { + f_audience = LinkAudience.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_audience == null) { + throw new JsonParseException(p, "Required field \"audience\" missing."); + } + value = new AudienceRestrictingSharedFolder(f_sharedFolderId, f_name, f_audience); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CollectionLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CollectionLinkMetadata.java new file mode 100644 index 000000000..9234fbe8c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CollectionLinkMetadata.java @@ -0,0 +1,208 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata for a collection-based shared link. + */ +public class CollectionLinkMetadata extends LinkMetadata { + // struct sharing.CollectionLinkMetadata (shared_links.stone) + + + /** + * Metadata for a collection-based shared link. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param visibility Who can access the link. Must not be {@code null}. + * @param expires Expiration time, if set. By default the link won't + * expire. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CollectionLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nullable Date expires) { + super(url, visibility, expires); + } + + /** + * Metadata for a collection-based shared link. + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param visibility Who can access the link. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CollectionLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility) { + this(url, visibility, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * Who can access the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Visibility getVisibility() { + return visibility; + } + + /** + * Expiration time, if set. By default the link won't expire. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CollectionLinkMetadata other = (CollectionLinkMetadata) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.visibility == other.visibility) || (this.visibility.equals(other.visibility))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CollectionLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("collection", g); + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("visibility"); + Visibility.Serializer.INSTANCE.serialize(value.visibility, g); + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CollectionLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CollectionLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("collection".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_url = null; + Visibility f_visibility = null; + Date f_expires = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("visibility".equals(field)) { + f_visibility = Visibility.Serializer.INSTANCE.deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_visibility == null) { + throw new JsonParseException(p, "Required field \"visibility\" missing."); + } + value = new CollectionLinkMetadata(f_url, f_visibility, f_expires); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkArg.java new file mode 100644 index 000000000..412647c5a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkArg.java @@ -0,0 +1,291 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class CreateSharedLinkArg { + // struct sharing.CreateSharedLinkArg (shared_links.stone) + + @Nonnull + protected final String path; + protected final boolean shortUrl; + @Nullable + protected final PendingUploadMode pendingUpload; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path to share. Must not be {@code null}. + * @param pendingUpload If it's okay to share a path that does not yet + * exist, set this to either {@link PendingUploadMode#FILE} or {@link + * PendingUploadMode#FOLDER} to indicate whether to assume it's a file + * or folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateSharedLinkArg(@Nonnull String path, boolean shortUrl, @Nullable PendingUploadMode pendingUpload) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + this.path = path; + this.shortUrl = shortUrl; + this.pendingUpload = pendingUpload; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path to share. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateSharedLinkArg(@Nonnull String path) { + this(path, false, null); + } + + /** + * The path to share. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getShortUrl() { + return shortUrl; + } + + /** + * If it's okay to share a path that does not yet exist, set this to either + * {@link PendingUploadMode#FILE} or {@link PendingUploadMode#FOLDER} to + * indicate whether to assume it's a file or folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PendingUploadMode getPendingUpload() { + return pendingUpload; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path to share. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link CreateSharedLinkArg}. + */ + public static class Builder { + protected final String path; + + protected boolean shortUrl; + protected PendingUploadMode pendingUpload; + + protected Builder(String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + this.path = path; + this.shortUrl = false; + this.pendingUpload = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param shortUrl Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withShortUrl(Boolean shortUrl) { + if (shortUrl != null) { + this.shortUrl = shortUrl; + } + else { + this.shortUrl = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param pendingUpload If it's okay to share a path that does not yet + * exist, set this to either {@link PendingUploadMode#FILE} or + * {@link PendingUploadMode#FOLDER} to indicate whether to assume + * it's a file or folder. + * + * @return this builder + */ + public Builder withPendingUpload(PendingUploadMode pendingUpload) { + this.pendingUpload = pendingUpload; + return this; + } + + /** + * Builds an instance of {@link CreateSharedLinkArg} configured with + * this builder's values + * + * @return new instance of {@link CreateSharedLinkArg} + */ + public CreateSharedLinkArg build() { + return new CreateSharedLinkArg(path, shortUrl, pendingUpload); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.shortUrl, + this.pendingUpload + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateSharedLinkArg other = (CreateSharedLinkArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && (this.shortUrl == other.shortUrl) + && ((this.pendingUpload == other.pendingUpload) || (this.pendingUpload != null && this.pendingUpload.equals(other.pendingUpload))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateSharedLinkArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + g.writeFieldName("short_url"); + StoneSerializers.boolean_().serialize(value.shortUrl, g); + if (value.pendingUpload != null) { + g.writeFieldName("pending_upload"); + StoneSerializers.nullable(PendingUploadMode.Serializer.INSTANCE).serialize(value.pendingUpload, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateSharedLinkArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateSharedLinkArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + Boolean f_shortUrl = false; + PendingUploadMode f_pendingUpload = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("short_url".equals(field)) { + f_shortUrl = StoneSerializers.boolean_().deserialize(p); + } + else if ("pending_upload".equals(field)) { + f_pendingUpload = StoneSerializers.nullable(PendingUploadMode.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new CreateSharedLinkArg(f_path, f_shortUrl, f_pendingUpload); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkBuilder.java new file mode 100644 index 000000000..9bf9004fb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkBuilder.java @@ -0,0 +1,76 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#createSharedLinkBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class CreateSharedLinkBuilder { + private final DbxUserSharingRequests _client; + private final CreateSharedLinkArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + CreateSharedLinkBuilder(DbxUserSharingRequests _client, CreateSharedLinkArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param shortUrl Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public CreateSharedLinkBuilder withShortUrl(Boolean shortUrl) { + this._builder.withShortUrl(shortUrl); + return this; + } + + /** + * Set value for optional field. + * + * @param pendingUpload If it's okay to share a path that does not yet + * exist, set this to either {@link PendingUploadMode#FILE} or {@link + * PendingUploadMode#FOLDER} to indicate whether to assume it's a file + * or folder. + * + * @return this builder + */ + public CreateSharedLinkBuilder withPendingUpload(PendingUploadMode pendingUpload) { + this._builder.withPendingUpload(pendingUpload); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public PathLinkMetadata start() throws CreateSharedLinkErrorException, DbxException { + CreateSharedLinkArg arg_ = this._builder.build(); + return _client.createSharedLink(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkError.java new file mode 100644 index 000000000..7027a785f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkError.java @@ -0,0 +1,278 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.files.LookupError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class CreateSharedLinkError { + // union sharing.CreateSharedLinkError (shared_links.stone) + + /** + * Discriminating tag type for {@link CreateSharedLinkError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final CreateSharedLinkError OTHER = new CreateSharedLinkError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CreateSharedLinkError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private CreateSharedLinkError withTag(Tag _tag) { + CreateSharedLinkError result = new CreateSharedLinkError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateSharedLinkError withTagAndPath(Tag _tag, LookupError pathValue) { + CreateSharedLinkError result = new CreateSharedLinkError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CreateSharedLinkError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code CreateSharedLinkError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateSharedLinkError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateSharedLinkError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateSharedLinkError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CreateSharedLinkError) { + CreateSharedLinkError other = (CreateSharedLinkError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateSharedLinkError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CreateSharedLinkError deserialize(JsonParser p) throws IOException, JsonParseException { + CreateSharedLinkError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = CreateSharedLinkError.path(fieldValue); + } + else { + value = CreateSharedLinkError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkErrorException.java new file mode 100644 index 000000000..aa958e114 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * CreateSharedLinkError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#createSharedLink(String)}.

+ */ +public class CreateSharedLinkErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/create_shared_link + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#createSharedLink(String)}. + */ + public final CreateSharedLinkError errorValue; + + public CreateSharedLinkErrorException(String routeName, String requestId, LocalizedText userMessage, CreateSharedLinkError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsArg.java new file mode 100644 index 000000000..1217a5cd5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsArg.java @@ -0,0 +1,196 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class CreateSharedLinkWithSettingsArg { + // struct sharing.CreateSharedLinkWithSettingsArg (shared_links.stone) + + @Nonnull + protected final String path; + @Nullable + protected final SharedLinkSettings settings; + + /** + * + * @param path The path to be shared by the shared link. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param settings The requested settings for the newly created shared + * link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateSharedLinkWithSettingsArg(@Nonnull String path, @Nullable SharedLinkSettings settings) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.settings = settings; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path to be shared by the shared link. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateSharedLinkWithSettingsArg(@Nonnull String path) { + this(path, null); + } + + /** + * The path to be shared by the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * The requested settings for the newly created shared link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkSettings getSettings() { + return settings; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.settings + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateSharedLinkWithSettingsArg other = (CreateSharedLinkWithSettingsArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.settings == other.settings) || (this.settings != null && this.settings.equals(other.settings))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateSharedLinkWithSettingsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.settings != null) { + g.writeFieldName("settings"); + StoneSerializers.nullableStruct(SharedLinkSettings.Serializer.INSTANCE).serialize(value.settings, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateSharedLinkWithSettingsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateSharedLinkWithSettingsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + SharedLinkSettings f_settings = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("settings".equals(field)) { + f_settings = StoneSerializers.nullableStruct(SharedLinkSettings.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new CreateSharedLinkWithSettingsArg(f_path, f_settings); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError.java new file mode 100644 index 000000000..b16c0e5d2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsError.java @@ -0,0 +1,504 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.files.LookupError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class CreateSharedLinkWithSettingsError { + // union sharing.CreateSharedLinkWithSettingsError (shared_links.stone) + + /** + * Discriminating tag type for {@link CreateSharedLinkWithSettingsError}. + */ + public enum Tag { + PATH, // LookupError + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_NOT_VERIFIED, + /** + * The shared link already exists. You can call {@link + * DbxUserSharingRequests#listSharedLinks} to get the existing link, or + * use the provided metadata if it is returned. + */ + SHARED_LINK_ALREADY_EXISTS, // SharedLinkAlreadyExistsMetadata + /** + * There is an error with the given settings. + */ + SETTINGS_ERROR, // SharedLinkSettingsError + /** + * The user is not allowed to create a shared link to the specified + * file. For example, this can occur if the file is restricted or if + * the user's links are banned. + */ + ACCESS_DENIED; + } + + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + public static final CreateSharedLinkWithSettingsError EMAIL_NOT_VERIFIED = new CreateSharedLinkWithSettingsError().withTag(Tag.EMAIL_NOT_VERIFIED); + /** + * The user is not allowed to create a shared link to the specified file. + * For example, this can occur if the file is restricted or if the user's + * links are banned. + */ + public static final CreateSharedLinkWithSettingsError ACCESS_DENIED = new CreateSharedLinkWithSettingsError().withTag(Tag.ACCESS_DENIED); + + private Tag _tag; + private LookupError pathValue; + private SharedLinkAlreadyExistsMetadata sharedLinkAlreadyExistsValue; + private SharedLinkSettingsError settingsErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CreateSharedLinkWithSettingsError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private CreateSharedLinkWithSettingsError withTag(Tag _tag) { + CreateSharedLinkWithSettingsError result = new CreateSharedLinkWithSettingsError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateSharedLinkWithSettingsError withTagAndPath(Tag _tag, LookupError pathValue) { + CreateSharedLinkWithSettingsError result = new CreateSharedLinkWithSettingsError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * + * @param sharedLinkAlreadyExistsValue The shared link already exists. You + * can call {@link DbxUserSharingRequests#listSharedLinks} to get the + * existing link, or use the provided metadata if it is returned. + * @param _tag Discriminating tag for this instance. + */ + private CreateSharedLinkWithSettingsError withTagAndSharedLinkAlreadyExists(Tag _tag, SharedLinkAlreadyExistsMetadata sharedLinkAlreadyExistsValue) { + CreateSharedLinkWithSettingsError result = new CreateSharedLinkWithSettingsError(); + result._tag = _tag; + result.sharedLinkAlreadyExistsValue = sharedLinkAlreadyExistsValue; + return result; + } + + /** + * + * @param settingsErrorValue There is an error with the given settings. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CreateSharedLinkWithSettingsError withTagAndSettingsError(Tag _tag, SharedLinkSettingsError settingsErrorValue) { + CreateSharedLinkWithSettingsError result = new CreateSharedLinkWithSettingsError(); + result._tag = _tag; + result.settingsErrorValue = settingsErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CreateSharedLinkWithSettingsError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code CreateSharedLinkWithSettingsError} that has + * its tag set to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateSharedLinkWithSettingsError} with its + * tag set to {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateSharedLinkWithSettingsError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateSharedLinkWithSettingsError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_NOT_VERIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_NOT_VERIFIED}, {@code false} otherwise. + */ + public boolean isEmailNotVerified() { + return this._tag == Tag.EMAIL_NOT_VERIFIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_ALREADY_EXISTS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_ALREADY_EXISTS}, {@code false} otherwise. + */ + public boolean isSharedLinkAlreadyExists() { + return this._tag == Tag.SHARED_LINK_ALREADY_EXISTS; + } + + /** + * Returns an instance of {@code CreateSharedLinkWithSettingsError} that has + * its tag set to {@link Tag#SHARED_LINK_ALREADY_EXISTS}. + * + *

The shared link already exists. You can call {@link + * DbxUserSharingRequests#listSharedLinks} to get the existing link, or use + * the provided metadata if it is returned.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateSharedLinkWithSettingsError} with its + * tag set to {@link Tag#SHARED_LINK_ALREADY_EXISTS}. + */ + public static CreateSharedLinkWithSettingsError sharedLinkAlreadyExists(SharedLinkAlreadyExistsMetadata value) { + return new CreateSharedLinkWithSettingsError().withTagAndSharedLinkAlreadyExists(Tag.SHARED_LINK_ALREADY_EXISTS, value); + } + + /** + * Returns an instance of {@code CreateSharedLinkWithSettingsError} that has + * its tag set to {@link Tag#SHARED_LINK_ALREADY_EXISTS}. + * + *

The shared link already exists. You can call {@link + * DbxUserSharingRequests#listSharedLinks} to get the existing link, or use + * the provided metadata if it is returned.

+ * + * @return Instance of {@code CreateSharedLinkWithSettingsError} with its + * tag set to {@link Tag#SHARED_LINK_ALREADY_EXISTS}. + */ + public static CreateSharedLinkWithSettingsError sharedLinkAlreadyExists() { + return sharedLinkAlreadyExists(null); + } + + /** + * The shared link already exists. You can call {@link + * DbxUserSharingRequests#listSharedLinks} to get the existing link, or use + * the provided metadata if it is returned. + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_ALREADY_EXISTS}.

+ * + * @return The {@link SharedLinkAlreadyExistsMetadata} value associated with + * this instance if {@link #isSharedLinkAlreadyExists} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkAlreadyExists} is + * {@code false}. + */ + public SharedLinkAlreadyExistsMetadata getSharedLinkAlreadyExistsValue() { + if (this._tag != Tag.SHARED_LINK_ALREADY_EXISTS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_ALREADY_EXISTS, but was Tag." + this._tag.name()); + } + return sharedLinkAlreadyExistsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SETTINGS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SETTINGS_ERROR}, {@code false} otherwise. + */ + public boolean isSettingsError() { + return this._tag == Tag.SETTINGS_ERROR; + } + + /** + * Returns an instance of {@code CreateSharedLinkWithSettingsError} that has + * its tag set to {@link Tag#SETTINGS_ERROR}. + * + *

There is an error with the given settings.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CreateSharedLinkWithSettingsError} with its + * tag set to {@link Tag#SETTINGS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CreateSharedLinkWithSettingsError settingsError(SharedLinkSettingsError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CreateSharedLinkWithSettingsError().withTagAndSettingsError(Tag.SETTINGS_ERROR, value); + } + + /** + * There is an error with the given settings. + * + *

This instance must be tagged as {@link Tag#SETTINGS_ERROR}.

+ * + * @return The {@link SharedLinkSettingsError} value associated with this + * instance if {@link #isSettingsError} is {@code true}. + * + * @throws IllegalStateException If {@link #isSettingsError} is {@code + * false}. + */ + public SharedLinkSettingsError getSettingsErrorValue() { + if (this._tag != Tag.SETTINGS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.SETTINGS_ERROR, but was Tag." + this._tag.name()); + } + return settingsErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_DENIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_DENIED}, {@code false} otherwise. + */ + public boolean isAccessDenied() { + return this._tag == Tag.ACCESS_DENIED; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue, + this.sharedLinkAlreadyExistsValue, + this.settingsErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CreateSharedLinkWithSettingsError) { + CreateSharedLinkWithSettingsError other = (CreateSharedLinkWithSettingsError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case EMAIL_NOT_VERIFIED: + return true; + case SHARED_LINK_ALREADY_EXISTS: + return (this.sharedLinkAlreadyExistsValue == other.sharedLinkAlreadyExistsValue) || (this.sharedLinkAlreadyExistsValue != null && this.sharedLinkAlreadyExistsValue.equals(other.sharedLinkAlreadyExistsValue)); + case SETTINGS_ERROR: + return (this.settingsErrorValue == other.settingsErrorValue) || (this.settingsErrorValue.equals(other.settingsErrorValue)); + case ACCESS_DENIED: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateSharedLinkWithSettingsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case EMAIL_NOT_VERIFIED: { + g.writeString("email_not_verified"); + break; + } + case SHARED_LINK_ALREADY_EXISTS: { + g.writeStartObject(); + writeTag("shared_link_already_exists", g); + g.writeFieldName("shared_link_already_exists"); + StoneSerializers.nullable(SharedLinkAlreadyExistsMetadata.Serializer.INSTANCE).serialize(value.sharedLinkAlreadyExistsValue, g); + g.writeEndObject(); + break; + } + case SETTINGS_ERROR: { + g.writeStartObject(); + writeTag("settings_error", g); + g.writeFieldName("settings_error"); + SharedLinkSettingsError.Serializer.INSTANCE.serialize(value.settingsErrorValue, g); + g.writeEndObject(); + break; + } + case ACCESS_DENIED: { + g.writeString("access_denied"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public CreateSharedLinkWithSettingsError deserialize(JsonParser p) throws IOException, JsonParseException { + CreateSharedLinkWithSettingsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = CreateSharedLinkWithSettingsError.path(fieldValue); + } + else if ("email_not_verified".equals(tag)) { + value = CreateSharedLinkWithSettingsError.EMAIL_NOT_VERIFIED; + } + else if ("shared_link_already_exists".equals(tag)) { + SharedLinkAlreadyExistsMetadata fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + expectField("shared_link_already_exists", p); + fieldValue = StoneSerializers.nullable(SharedLinkAlreadyExistsMetadata.Serializer.INSTANCE).deserialize(p); + } + if (fieldValue == null) { + value = CreateSharedLinkWithSettingsError.sharedLinkAlreadyExists(); + } + else { + value = CreateSharedLinkWithSettingsError.sharedLinkAlreadyExists(fieldValue); + } + } + else if ("settings_error".equals(tag)) { + SharedLinkSettingsError fieldValue = null; + expectField("settings_error", p); + fieldValue = SharedLinkSettingsError.Serializer.INSTANCE.deserialize(p); + value = CreateSharedLinkWithSettingsError.settingsError(fieldValue); + } + else if ("access_denied".equals(tag)) { + value = CreateSharedLinkWithSettingsError.ACCESS_DENIED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsErrorException.java new file mode 100644 index 000000000..d8b051eb2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkWithSettingsErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * CreateSharedLinkWithSettingsError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#createSharedLinkWithSettings(String,SharedLinkSettings)}. + *

+ */ +public class CreateSharedLinkWithSettingsErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/create_shared_link_with_settings + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#createSharedLinkWithSettings(String,SharedLinkSettings)}. + */ + public final CreateSharedLinkWithSettingsError errorValue; + + public CreateSharedLinkWithSettingsErrorException(String routeName, String requestId, LocalizedText userMessage, CreateSharedLinkWithSettingsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxAppGetSharedLinkMetadataBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxAppGetSharedLinkMetadataBuilder.java new file mode 100644 index 000000000..ccdb9c820 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxAppGetSharedLinkMetadataBuilder.java @@ -0,0 +1,77 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxAppSharingRequests#getSharedLinkMetadataBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DbxAppGetSharedLinkMetadataBuilder { + private final DbxAppSharingRequests _client; + private final GetSharedLinkMetadataArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DbxAppGetSharedLinkMetadataBuilder(DbxAppSharingRequests _client, GetSharedLinkMetadataArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param path If the shared link is to a folder, this parameter can be + * used to retrieve the metadata for a specific file or sub-folder in + * this folder. A relative path should be used. Must match pattern + * "{@code /(.|[\\r\\n])*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppGetSharedLinkMetadataBuilder withPath(String path) { + this._builder.withPath(path); + return this; + } + + /** + * Set value for optional field. + * + * @param linkPassword If the shared link has a password, this parameter + * can be used. + * + * @return this builder + */ + public DbxAppGetSharedLinkMetadataBuilder withLinkPassword(String linkPassword) { + this._builder.withLinkPassword(linkPassword); + return this; + } + + /** + * Issues the request. + */ + public SharedLinkMetadata start() throws SharedLinkErrorException, DbxException { + GetSharedLinkMetadataArg arg_ = this._builder.build(); + return _client.getSharedLinkMetadata(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxAppSharingRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxAppSharingRequests.java new file mode 100644 index 000000000..c08916d69 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxAppSharingRequests.java @@ -0,0 +1,81 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone, sharing_files.stone, shared_links.stone, shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "sharing". + */ +public class DbxAppSharingRequests { + // namespace sharing (sharing_folders.stone, sharing_files.stone, shared_links.stone, shared_content_links.stone) + + private final DbxRawClientV2 client; + + public DbxAppSharingRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/sharing/get_shared_link_metadata + // + + /** + * Get the shared link's metadata. + * + * + * @return The metadata of a shared link. + */ + SharedLinkMetadata getSharedLinkMetadata(GetSharedLinkMetadataArg arg) throws SharedLinkErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/get_shared_link_metadata", + arg, + false, + GetSharedLinkMetadataArg.Serializer.INSTANCE, + SharedLinkMetadata.Serializer.INSTANCE, + SharedLinkError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharedLinkErrorException("2/sharing/get_shared_link_metadata", ex.getRequestId(), ex.getUserMessage(), (SharedLinkError) ex.getErrorValue()); + } + } + + /** + * Get the shared link's metadata. + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @return The metadata of a shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata getSharedLinkMetadata(String url) throws SharedLinkErrorException, DbxException { + GetSharedLinkMetadataArg _arg = new GetSharedLinkMetadataArg(url); + return getSharedLinkMetadata(_arg); + } + + /** + * Get the shared link's metadata. + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxAppGetSharedLinkMetadataBuilder getSharedLinkMetadataBuilder(String url) { + GetSharedLinkMetadataArg.Builder argBuilder_ = GetSharedLinkMetadataArg.newBuilder(url); + return new DbxAppGetSharedLinkMetadataBuilder(this, argBuilder_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxUserGetSharedLinkMetadataBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxUserGetSharedLinkMetadataBuilder.java new file mode 100644 index 000000000..43c15e656 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxUserGetSharedLinkMetadataBuilder.java @@ -0,0 +1,77 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#getSharedLinkMetadataBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DbxUserGetSharedLinkMetadataBuilder { + private final DbxUserSharingRequests _client; + private final GetSharedLinkMetadataArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DbxUserGetSharedLinkMetadataBuilder(DbxUserSharingRequests _client, GetSharedLinkMetadataArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param path If the shared link is to a folder, this parameter can be + * used to retrieve the metadata for a specific file or sub-folder in + * this folder. A relative path should be used. Must match pattern + * "{@code /(.|[\\r\\n])*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserGetSharedLinkMetadataBuilder withPath(String path) { + this._builder.withPath(path); + return this; + } + + /** + * Set value for optional field. + * + * @param linkPassword If the shared link has a password, this parameter + * can be used. + * + * @return this builder + */ + public DbxUserGetSharedLinkMetadataBuilder withLinkPassword(String linkPassword) { + this._builder.withLinkPassword(linkPassword); + return this; + } + + /** + * Issues the request. + */ + public SharedLinkMetadata start() throws SharedLinkErrorException, DbxException { + GetSharedLinkMetadataArg arg_ = this._builder.build(); + return _client.getSharedLinkMetadata(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxUserSharingRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxUserSharingRequests.java new file mode 100644 index 000000000..1d324f9dd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/DbxUserSharingRequests.java @@ -0,0 +1,2566 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone, sharing_files.stone, shared_links.stone, shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; +import com.dropbox.core.v2.DbxRawClientV2; +import com.dropbox.core.v2.async.LaunchEmptyResult; +import com.dropbox.core.v2.async.LaunchResultBase; +import com.dropbox.core.v2.async.PollArg; +import com.dropbox.core.v2.async.PollError; +import com.dropbox.core.v2.async.PollErrorException; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "sharing". + */ +public class DbxUserSharingRequests { + // namespace sharing (sharing_folders.stone, sharing_files.stone, shared_links.stone, shared_content_links.stone) + + private final DbxRawClientV2 client; + + public DbxUserSharingRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/sharing/add_file_member + // + + /** + * Adds specified members to a file. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#addFileMember(String,List)}. + */ + List addFileMember(AddFileMemberArgs arg) throws AddFileMemberErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/add_file_member", + arg, + false, + AddFileMemberArgs.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(FileMemberActionResult.Serializer.INSTANCE), + AddFileMemberError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new AddFileMemberErrorException("2/sharing/add_file_member", ex.getRequestId(), ex.getUserMessage(), (AddFileMemberError) ex.getErrorValue()); + } + } + + /** + * Adds specified members to a file. + * + *

The default values for the optional request parameters will be used. + * See {@link AddFileMemberBuilder} for more details.

+ * + * @param file File to which to add members. Must have length of at least + * 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param members Members to add. Note that even an email address is given, + * this may result in a user being directly added to the membership if + * that email is the user's main account email. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List addFileMember(String file, List members) throws AddFileMemberErrorException, DbxException { + AddFileMemberArgs _arg = new AddFileMemberArgs(file, members); + return addFileMember(_arg); + } + + /** + * Adds specified members to a file. + * + * @param file File to which to add members. Must have length of at least + * 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param members Members to add. Note that even an email address is given, + * this may result in a user being directly added to the membership if + * that email is the user's main account email. Must not contain a + * {@code null} item and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFileMemberBuilder addFileMemberBuilder(String file, List members) { + AddFileMemberArgs.Builder argBuilder_ = AddFileMemberArgs.newBuilder(file, members); + return new AddFileMemberBuilder(this, argBuilder_); + } + + // + // route 2/sharing/add_folder_member + // + + /** + * Allows an owner or editor (if the ACL update policy allows) of a shared + * folder to add another member. For the new member to get access to all the + * functionality for this folder, you will need to call {@link + * DbxUserSharingRequests#mountFolder(String)} on their behalf. + * + */ + void addFolderMember(AddFolderMemberArg arg) throws AddFolderMemberErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/add_folder_member", + arg, + false, + AddFolderMemberArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + AddFolderMemberError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new AddFolderMemberErrorException("2/sharing/add_folder_member", ex.getRequestId(), ex.getUserMessage(), (AddFolderMemberError) ex.getErrorValue()); + } + } + + /** + * Allows an owner or editor (if the ACL update policy allows) of a shared + * folder to add another member. + * + *

For the new member to get access to all the functionality for this + * folder, you will need to call {@link + * DbxUserSharingRequests#mountFolder(String)} on their behalf.

+ * + *

The default values for the optional request parameters will be used. + * See {@link AddFolderMemberBuilder} for more details.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param members The intended list of members to add. Added members will + * receive invites to join the shared folder. Must not contain a {@code + * null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void addFolderMember(String sharedFolderId, List members) throws AddFolderMemberErrorException, DbxException { + AddFolderMemberArg _arg = new AddFolderMemberArg(sharedFolderId, members); + addFolderMember(_arg); + } + + /** + * Allows an owner or editor (if the ACL update policy allows) of a shared + * folder to add another member. For the new member to get access to all the + * functionality for this folder, you will need to call {@link + * DbxUserSharingRequests#mountFolder(String)} on their behalf. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param members The intended list of members to add. Added members will + * receive invites to join the shared folder. Must not contain a {@code + * null} item and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddFolderMemberBuilder addFolderMemberBuilder(String sharedFolderId, List members) { + AddFolderMemberArg.Builder argBuilder_ = AddFolderMemberArg.newBuilder(sharedFolderId, members); + return new AddFolderMemberBuilder(this, argBuilder_); + } + + // + // route 2/sharing/check_job_status + // + + /** + * Returns the status of an asynchronous job. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + JobStatus checkJobStatus(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/check_job_status", + arg, + false, + PollArg.Serializer.INSTANCE, + JobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/sharing/check_job_status", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public JobStatus checkJobStatus(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return checkJobStatus(_arg); + } + + // + // route 2/sharing/check_remove_member_job_status + // + + /** + * Returns the status of an asynchronous job for sharing a folder. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + RemoveMemberJobStatus checkRemoveMemberJobStatus(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/check_remove_member_job_status", + arg, + false, + PollArg.Serializer.INSTANCE, + RemoveMemberJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/sharing/check_remove_member_job_status", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for sharing a folder. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RemoveMemberJobStatus checkRemoveMemberJobStatus(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return checkRemoveMemberJobStatus(_arg); + } + + // + // route 2/sharing/check_share_job_status + // + + /** + * Returns the status of an asynchronous job for sharing a folder. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + ShareFolderJobStatus checkShareJobStatus(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/check_share_job_status", + arg, + false, + PollArg.Serializer.INSTANCE, + ShareFolderJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/sharing/check_share_job_status", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for sharing a folder. + * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderJobStatus checkShareJobStatus(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return checkShareJobStatus(_arg); + } + + // + // route 2/sharing/create_shared_link + // + + /** + * Create a shared link. If a shared link already exists for the given path, + * that link is returned. Previously, it was technically possible to break a + * shared link by moving or renaming the corresponding file or folder. In + * the future, this will no longer be the case, so your app shouldn't rely + * on this behavior. Instead, if your app needs to revoke a shared link, use + * {@link DbxUserSharingRequests#revokeSharedLink(String)}. + * + * + * @return Metadata for a path-based shared link. + */ + PathLinkMetadata createSharedLink(CreateSharedLinkArg arg) throws CreateSharedLinkErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/create_shared_link", + arg, + false, + CreateSharedLinkArg.Serializer.INSTANCE, + PathLinkMetadata.Serializer.INSTANCE, + CreateSharedLinkError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CreateSharedLinkErrorException("2/sharing/create_shared_link", ex.getRequestId(), ex.getUserMessage(), (CreateSharedLinkError) ex.getErrorValue()); + } + } + + /** + * Create a shared link. + * + *

If a shared link already exists for the given path, that link is + * returned.

+ * + *

Previously, it was technically possible to break a shared link by + * moving or renaming the corresponding file or folder. In the future, this + * will no longer be the case, so your app shouldn't rely on this behavior. + * Instead, if your app needs to revoke a shared link, use {@link + * DbxUserSharingRequests#revokeSharedLink(String)}.

+ * + *

The default values for the optional request parameters will be used. + * See {@link CreateSharedLinkBuilder} for more details.

+ * + * @param path The path to share. Must not be {@code null}. + * + * @return Metadata for a path-based shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link + * DbxUserSharingRequests#createSharedLinkWithSettings(String,SharedLinkSettings)} + * instead. + */ + @Deprecated + public PathLinkMetadata createSharedLink(String path) throws CreateSharedLinkErrorException, DbxException { + CreateSharedLinkArg _arg = new CreateSharedLinkArg(path); + return createSharedLink(_arg); + } + + /** + * Create a shared link. If a shared link already exists for the given path, + * that link is returned. Previously, it was technically possible to break a + * shared link by moving or renaming the corresponding file or folder. In + * the future, this will no longer be the case, so your app shouldn't rely + * on this behavior. Instead, if your app needs to revoke a shared link, use + * {@link DbxUserSharingRequests#revokeSharedLink(String)}. + * + * @param path The path to share. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link + * DbxUserSharingRequests#createSharedLinkWithSettings(String,SharedLinkSettings)} + * instead. + */ + @Deprecated + public CreateSharedLinkBuilder createSharedLinkBuilder(String path) { + CreateSharedLinkArg.Builder argBuilder_ = CreateSharedLinkArg.newBuilder(path); + return new CreateSharedLinkBuilder(this, argBuilder_); + } + + // + // route 2/sharing/create_shared_link_with_settings + // + + /** + * Create a shared link with custom settings. If no settings are given then + * the default visibility is {@link RequestedVisibility#PUBLIC} (The + * resolved visibility, though, may depend on other aspects such as team and + * shared folder settings). + * + * + * @return The metadata of a shared link. + */ + SharedLinkMetadata createSharedLinkWithSettings(CreateSharedLinkWithSettingsArg arg) throws CreateSharedLinkWithSettingsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/create_shared_link_with_settings", + arg, + false, + CreateSharedLinkWithSettingsArg.Serializer.INSTANCE, + SharedLinkMetadata.Serializer.INSTANCE, + CreateSharedLinkWithSettingsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CreateSharedLinkWithSettingsErrorException("2/sharing/create_shared_link_with_settings", ex.getRequestId(), ex.getUserMessage(), (CreateSharedLinkWithSettingsError) ex.getErrorValue()); + } + } + + /** + * Create a shared link with custom settings. If no settings are given then + * the default visibility is {@link RequestedVisibility#PUBLIC} (The + * resolved visibility, though, may depend on other aspects such as team and + * shared folder settings). + * + * @param path The path to be shared by the shared link. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * + * @return The metadata of a shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata createSharedLinkWithSettings(String path) throws CreateSharedLinkWithSettingsErrorException, DbxException { + CreateSharedLinkWithSettingsArg _arg = new CreateSharedLinkWithSettingsArg(path); + return createSharedLinkWithSettings(_arg); + } + + /** + * Create a shared link with custom settings. If no settings are given then + * the default visibility is {@link RequestedVisibility#PUBLIC} (The + * resolved visibility, though, may depend on other aspects such as team and + * shared folder settings). + * + * @param path The path to be shared by the shared link. Must match pattern + * "{@code (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}" + * and not be {@code null}. + * @param settings The requested settings for the newly created shared + * link. + * + * @return The metadata of a shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata createSharedLinkWithSettings(String path, SharedLinkSettings settings) throws CreateSharedLinkWithSettingsErrorException, DbxException { + CreateSharedLinkWithSettingsArg _arg = new CreateSharedLinkWithSettingsArg(path, settings); + return createSharedLinkWithSettings(_arg); + } + + // + // route 2/sharing/get_file_metadata + // + + /** + * Returns shared file metadata. + * + * @param arg Arguments of {@link + * DbxUserSharingRequests#getFileMetadata(String,List)}. + * + * @return Properties of the shared file. + */ + SharedFileMetadata getFileMetadata(GetFileMetadataArg arg) throws GetFileMetadataErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/get_file_metadata", + arg, + false, + GetFileMetadataArg.Serializer.INSTANCE, + SharedFileMetadata.Serializer.INSTANCE, + GetFileMetadataError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetFileMetadataErrorException("2/sharing/get_file_metadata", ex.getRequestId(), ex.getUserMessage(), (GetFileMetadataError) ex.getErrorValue()); + } + } + + /** + * Returns shared file metadata. + * + * @param file The file to query. Must have length of at least 1, match + * pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and + * not be {@code null}. + * + * @return Properties of the shared file. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMetadata getFileMetadata(String file) throws GetFileMetadataErrorException, DbxException { + GetFileMetadataArg _arg = new GetFileMetadataArg(file); + return getFileMetadata(_arg); + } + + /** + * Returns shared file metadata. + * + * @param file The file to query. Must have length of at least 1, match + * pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and + * not be {@code null}. + * @param actions A list of `FileAction`s corresponding to + * `FilePermission`s that should appear in the response's {@link + * SharedFileMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the file. Must not contain a {@code + * null} item. + * + * @return Properties of the shared file. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMetadata getFileMetadata(String file, List actions) throws GetFileMetadataErrorException, DbxException { + if (actions != null) { + for (FileAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + GetFileMetadataArg _arg = new GetFileMetadataArg(file, actions); + return getFileMetadata(_arg); + } + + // + // route 2/sharing/get_file_metadata/batch + // + + /** + * Returns shared file metadata. + * + * @param arg Arguments of {@link + * DbxUserSharingRequests#getFileMetadataBatch(List,List)}. + */ + List getFileMetadataBatch(GetFileMetadataBatchArg arg) throws SharingUserErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/get_file_metadata/batch", + arg, + false, + GetFileMetadataBatchArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(GetFileMetadataBatchResult.Serializer.INSTANCE), + SharingUserError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharingUserErrorException("2/sharing/get_file_metadata/batch", ex.getRequestId(), ex.getUserMessage(), (SharingUserError) ex.getErrorValue()); + } + } + + /** + * Returns shared file metadata. + * + * @param files The files to query. Must contain at most 100 items, not + * contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List getFileMetadataBatch(List files) throws SharingUserErrorException, DbxException { + GetFileMetadataBatchArg _arg = new GetFileMetadataBatchArg(files); + return getFileMetadataBatch(_arg); + } + + /** + * Returns shared file metadata. + * + * @param files The files to query. Must contain at most 100 items, not + * contain a {@code null} item, and not be {@code null}. + * @param actions A list of `FileAction`s corresponding to + * `FilePermission`s that should appear in the response's {@link + * SharedFileMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the file. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List getFileMetadataBatch(List files, List actions) throws SharingUserErrorException, DbxException { + if (actions != null) { + for (FileAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + GetFileMetadataBatchArg _arg = new GetFileMetadataBatchArg(files, actions); + return getFileMetadataBatch(_arg); + } + + // + // route 2/sharing/get_folder_metadata + // + + /** + * Returns shared folder metadata by its folder ID. + * + * + * @return The metadata which includes basic information about the shared + * folder. + */ + SharedFolderMetadata getFolderMetadata(GetMetadataArgs arg) throws SharedFolderAccessErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/get_folder_metadata", + arg, + false, + GetMetadataArgs.Serializer.INSTANCE, + SharedFolderMetadata.Serializer.INSTANCE, + SharedFolderAccessError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharedFolderAccessErrorException("2/sharing/get_folder_metadata", ex.getRequestId(), ex.getUserMessage(), (SharedFolderAccessError) ex.getErrorValue()); + } + } + + /** + * Returns shared folder metadata by its folder ID. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return The metadata which includes basic information about the shared + * folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadata getFolderMetadata(String sharedFolderId) throws SharedFolderAccessErrorException, DbxException { + GetMetadataArgs _arg = new GetMetadataArgs(sharedFolderId); + return getFolderMetadata(_arg); + } + + /** + * Returns shared folder metadata by its folder ID. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @return The metadata which includes basic information about the shared + * folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadata getFolderMetadata(String sharedFolderId, List actions) throws SharedFolderAccessErrorException, DbxException { + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + GetMetadataArgs _arg = new GetMetadataArgs(sharedFolderId, actions); + return getFolderMetadata(_arg); + } + + // + // route 2/sharing/get_shared_link_file + // + + /** + * Download the shared link's file from a user's Dropbox. + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader getSharedLinkFile(GetSharedLinkMetadataArg arg, List _headers) throws GetSharedLinkFileErrorException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/sharing/get_shared_link_file", + arg, + false, + _headers, + GetSharedLinkMetadataArg.Serializer.INSTANCE, + SharedLinkMetadata.Serializer.INSTANCE, + GetSharedLinkFileError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetSharedLinkFileErrorException("2/sharing/get_shared_link_file", ex.getRequestId(), ex.getUserMessage(), (GetSharedLinkFileError) ex.getErrorValue()); + } + } + + /** + * Download the shared link's file from a user's Dropbox. + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader getSharedLinkFile(String url) throws GetSharedLinkFileErrorException, DbxException { + GetSharedLinkMetadataArg _arg = new GetSharedLinkMetadataArg(url); + return getSharedLinkFile(_arg, Collections.emptyList()); + } + + /** + * Download the shared link's file from a user's Dropbox. + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetSharedLinkFileBuilder getSharedLinkFileBuilder(String url) { + GetSharedLinkMetadataArg.Builder argBuilder_ = GetSharedLinkMetadataArg.newBuilder(url); + return new GetSharedLinkFileBuilder(this, argBuilder_); + } + + // + // route 2/sharing/get_shared_link_metadata + // + + /** + * Get the shared link's metadata. + * + * + * @return The metadata of a shared link. + */ + SharedLinkMetadata getSharedLinkMetadata(GetSharedLinkMetadataArg arg) throws SharedLinkErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/get_shared_link_metadata", + arg, + false, + GetSharedLinkMetadataArg.Serializer.INSTANCE, + SharedLinkMetadata.Serializer.INSTANCE, + SharedLinkError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharedLinkErrorException("2/sharing/get_shared_link_metadata", ex.getRequestId(), ex.getUserMessage(), (SharedLinkError) ex.getErrorValue()); + } + } + + /** + * Get the shared link's metadata. + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @return The metadata of a shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata getSharedLinkMetadata(String url) throws SharedLinkErrorException, DbxException { + GetSharedLinkMetadataArg _arg = new GetSharedLinkMetadataArg(url); + return getSharedLinkMetadata(_arg); + } + + /** + * Get the shared link's metadata. + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxUserGetSharedLinkMetadataBuilder getSharedLinkMetadataBuilder(String url) { + GetSharedLinkMetadataArg.Builder argBuilder_ = GetSharedLinkMetadataArg.newBuilder(url); + return new DbxUserGetSharedLinkMetadataBuilder(this, argBuilder_); + } + + // + // route 2/sharing/get_shared_links + // + + /** + * Returns a list of {@link LinkMetadata} objects for this user, including + * collection links. If no path is given, returns a list of all shared links + * for the current user, including collection links, up to a maximum of 1000 + * links. If a non-empty path is given, returns a list of all shared links + * that allow access to the given path. Collection links are never returned + * in this case. + * + */ + GetSharedLinksResult getSharedLinks(GetSharedLinksArg arg) throws GetSharedLinksErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/get_shared_links", + arg, + false, + GetSharedLinksArg.Serializer.INSTANCE, + GetSharedLinksResult.Serializer.INSTANCE, + GetSharedLinksError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetSharedLinksErrorException("2/sharing/get_shared_links", ex.getRequestId(), ex.getUserMessage(), (GetSharedLinksError) ex.getErrorValue()); + } + } + + /** + * Returns a list of {@link LinkMetadata} objects for this user, including + * collection links. + * + *

If no path is given, returns a list of all shared links for the + * current user, including collection links, up to a maximum of 1000 links. + *

+ * + *

If a non-empty path is given, returns a list of all shared links that + * allow access to the given path. Collection links are never returned in + * this case.

+ * + * @deprecated use {@link DbxUserSharingRequests#listSharedLinks} instead. + */ + @Deprecated + public GetSharedLinksResult getSharedLinks() throws GetSharedLinksErrorException, DbxException { + GetSharedLinksArg _arg = new GetSharedLinksArg(); + return getSharedLinks(_arg); + } + + /** + * Returns a list of {@link LinkMetadata} objects for this user, including + * collection links. + * + *

If no path is given, returns a list of all shared links for the + * current user, including collection links, up to a maximum of 1000 links. + *

+ * + *

If a non-empty path is given, returns a list of all shared links that + * allow access to the given path. Collection links are never returned in + * this case.

+ * + * @param path See {@link DbxUserSharingRequests#getSharedLinks(String)} + * description. + * + * @deprecated use {@link DbxUserSharingRequests#listSharedLinks} instead. + */ + @Deprecated + public GetSharedLinksResult getSharedLinks(String path) throws GetSharedLinksErrorException, DbxException { + GetSharedLinksArg _arg = new GetSharedLinksArg(path); + return getSharedLinks(_arg); + } + + // + // route 2/sharing/list_file_members + // + + /** + * Use to obtain the members who have been invited to a file, both inherited + * and uninherited members. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#listFileMembers(String)}. + * + * @return Shared file user, group, and invitee membership. Used for the + * results of {@link DbxUserSharingRequests#listFileMembers(String)} and + * {@link DbxUserSharingRequests#listFileMembersContinue(String)}, and + * used as part of the results for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + */ + SharedFileMembers listFileMembers(ListFileMembersArg arg) throws ListFileMembersErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_file_members", + arg, + false, + ListFileMembersArg.Serializer.INSTANCE, + SharedFileMembers.Serializer.INSTANCE, + ListFileMembersError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFileMembersErrorException("2/sharing/list_file_members", ex.getRequestId(), ex.getUserMessage(), (ListFileMembersError) ex.getErrorValue()); + } + } + + /** + * Use to obtain the members who have been invited to a file, both inherited + * and uninherited members. + * + *

The default values for the optional request parameters will be used. + * See {@link ListFileMembersBuilder} for more details.

+ * + * @param file The file for which you want to see members. Must have length + * of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * + * @return Shared file user, group, and invitee membership. Used for the + * results of {@link DbxUserSharingRequests#listFileMembers(String)} and + * {@link DbxUserSharingRequests#listFileMembersContinue(String)}, and + * used as part of the results for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMembers listFileMembers(String file) throws ListFileMembersErrorException, DbxException { + ListFileMembersArg _arg = new ListFileMembersArg(file); + return listFileMembers(_arg); + } + + /** + * Use to obtain the members who have been invited to a file, both inherited + * and uninherited members. + * + * @param file The file for which you want to see members. Must have length + * of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersBuilder listFileMembersBuilder(String file) { + ListFileMembersArg.Builder argBuilder_ = ListFileMembersArg.newBuilder(file); + return new ListFileMembersBuilder(this, argBuilder_); + } + + // + // route 2/sharing/list_file_members/batch + // + + /** + * Get members of multiple files at once. The arguments to this route are + * more limited, and the limit on query result size per file is more strict. + * To customize the results more, use the individual file endpoint. + * Inherited users and groups are not included in the result, and + * permissions are not returned for this endpoint. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + */ + List listFileMembersBatch(ListFileMembersBatchArg arg) throws SharingUserErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_file_members/batch", + arg, + false, + ListFileMembersBatchArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(ListFileMembersBatchResult.Serializer.INSTANCE), + SharingUserError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharingUserErrorException("2/sharing/list_file_members/batch", ex.getRequestId(), ex.getUserMessage(), (SharingUserError) ex.getErrorValue()); + } + } + + /** + * Get members of multiple files at once. The arguments to this route are + * more limited, and the limit on query result size per file is more strict. + * To customize the results more, use the individual file endpoint. + * + *

Inherited users and groups are not included in the result, and + * permissions are not returned for this endpoint.

+ * + *

The {@code limit} request parameter will default to {@code 10L} (see + * {@link #listFileMembersBatch(List,long)}).

+ * + * @param files Files for which to return members. Must contain at most 100 + * items, not contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List listFileMembersBatch(List files) throws SharingUserErrorException, DbxException { + ListFileMembersBatchArg _arg = new ListFileMembersBatchArg(files); + return listFileMembersBatch(_arg); + } + + /** + * Get members of multiple files at once. The arguments to this route are + * more limited, and the limit on query result size per file is more strict. + * To customize the results more, use the individual file endpoint. + * + *

Inherited users and groups are not included in the result, and + * permissions are not returned for this endpoint.

+ * + * @param files Files for which to return members. Must contain at most 100 + * items, not contain a {@code null} item, and not be {@code null}. + * @param limit Number of members to return max per query. Defaults to 10 + * if no limit is specified. Must be less than or equal to 20. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List listFileMembersBatch(List files, long limit) throws SharingUserErrorException, DbxException { + if (limit > 20L) { + throw new IllegalArgumentException("Number 'limit' is larger than 20L"); + } + ListFileMembersBatchArg _arg = new ListFileMembersBatchArg(files, limit); + return listFileMembersBatch(_arg); + } + + // + // route 2/sharing/list_file_members/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listFileMembers(String)} or {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}, use this to + * paginate through all shared file members. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}. + * + * @return Shared file user, group, and invitee membership. Used for the + * results of {@link DbxUserSharingRequests#listFileMembers(String)} and + * {@link DbxUserSharingRequests#listFileMembersContinue(String)}, and + * used as part of the results for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + */ + SharedFileMembers listFileMembersContinue(ListFileMembersContinueArg arg) throws ListFileMembersContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_file_members/continue", + arg, + false, + ListFileMembersContinueArg.Serializer.INSTANCE, + SharedFileMembers.Serializer.INSTANCE, + ListFileMembersContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFileMembersContinueErrorException("2/sharing/list_file_members/continue", ex.getRequestId(), ex.getUserMessage(), (ListFileMembersContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listFileMembers(String)} or {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}, use this to + * paginate through all shared file members. + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserSharingRequests#listFileMembers(String)}, {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}, or {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. Must not be + * {@code null}. + * + * @return Shared file user, group, and invitee membership. Used for the + * results of {@link DbxUserSharingRequests#listFileMembers(String)} and + * {@link DbxUserSharingRequests#listFileMembersContinue(String)}, and + * used as part of the results for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMembers listFileMembersContinue(String cursor) throws ListFileMembersContinueErrorException, DbxException { + ListFileMembersContinueArg _arg = new ListFileMembersContinueArg(cursor); + return listFileMembersContinue(_arg); + } + + // + // route 2/sharing/list_folder_members + // + + /** + * Returns shared folder membership by its folder ID. + * + * + * @return Shared folder user and group membership. + */ + SharedFolderMembers listFolderMembers(ListFolderMembersArgs arg) throws SharedFolderAccessErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_folder_members", + arg, + false, + ListFolderMembersArgs.Serializer.INSTANCE, + SharedFolderMembers.Serializer.INSTANCE, + SharedFolderAccessError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharedFolderAccessErrorException("2/sharing/list_folder_members", ex.getRequestId(), ex.getUserMessage(), (SharedFolderAccessError) ex.getErrorValue()); + } + } + + /** + * Returns shared folder membership by its folder ID. + * + *

The default values for the optional request parameters will be used. + * See {@link ListFolderMembersBuilder} for more details.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Shared folder user and group membership. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMembers listFolderMembers(String sharedFolderId) throws SharedFolderAccessErrorException, DbxException { + ListFolderMembersArgs _arg = new ListFolderMembersArgs(sharedFolderId); + return listFolderMembers(_arg); + } + + /** + * Returns shared folder membership by its folder ID. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderMembersBuilder listFolderMembersBuilder(String sharedFolderId) { + ListFolderMembersArgs.Builder argBuilder_ = ListFolderMembersArgs.newBuilder(sharedFolderId); + return new ListFolderMembersBuilder(this, argBuilder_); + } + + // + // route 2/sharing/list_folder_members/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listFolderMembers(String)}, use this to paginate + * through all shared folder members. + * + * + * @return Shared folder user and group membership. + */ + SharedFolderMembers listFolderMembersContinue(ListFolderMembersContinueArg arg) throws ListFolderMembersContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_folder_members/continue", + arg, + false, + ListFolderMembersContinueArg.Serializer.INSTANCE, + SharedFolderMembers.Serializer.INSTANCE, + ListFolderMembersContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFolderMembersContinueErrorException("2/sharing/list_folder_members/continue", ex.getRequestId(), ex.getUserMessage(), (ListFolderMembersContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listFolderMembers(String)}, use this to paginate + * through all shared folder members. + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserSharingRequests#listFolderMembers(String)} or {@link + * DbxUserSharingRequests#listFolderMembersContinue(String)}. Must not + * be {@code null}. + * + * @return Shared folder user and group membership. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMembers listFolderMembersContinue(String cursor) throws ListFolderMembersContinueErrorException, DbxException { + ListFolderMembersContinueArg _arg = new ListFolderMembersContinueArg(cursor); + return listFolderMembersContinue(_arg); + } + + // + // route 2/sharing/list_folders + // + + /** + * Return the list of all shared folders the current user has access to. + * + * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + */ + ListFoldersResult listFolders(ListFoldersArgs arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_folders", + arg, + false, + ListFoldersArgs.Serializer.INSTANCE, + ListFoldersResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"list_folders\":" + ex.getErrorValue()); + } + } + + /** + * Return the list of all shared folders the current user has access to. + * + *

The default values for the optional request parameters will be used. + * See {@link ListFoldersBuilder} for more details.

+ * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + */ + public ListFoldersResult listFolders() throws DbxApiException, DbxException { + ListFoldersArgs _arg = new ListFoldersArgs(); + return listFolders(_arg); + } + + /** + * Return the list of all shared folders the current user has access to. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public ListFoldersBuilder listFoldersBuilder() { + ListFoldersArgs.Builder argBuilder_ = ListFoldersArgs.newBuilder(); + return new ListFoldersBuilder(this, argBuilder_); + } + + // + // route 2/sharing/list_folders/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listFolders}, use this to paginate through all + * shared folders. The cursor must come from a previous call to {@link + * DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listFoldersContinue(String)}. + * + * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + */ + ListFoldersResult listFoldersContinue(ListFoldersContinueArg arg) throws ListFoldersContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_folders/continue", + arg, + false, + ListFoldersContinueArg.Serializer.INSTANCE, + ListFoldersResult.Serializer.INSTANCE, + ListFoldersContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFoldersContinueErrorException("2/sharing/list_folders/continue", ex.getRequestId(), ex.getUserMessage(), (ListFoldersContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listFolders}, use this to paginate through all + * shared folders. The cursor must come from a previous call to {@link + * DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listFoldersContinue(String)}. + * + * @param cursor The cursor returned by the previous API call specified in + * the endpoint description. Must not be {@code null}. + * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersResult listFoldersContinue(String cursor) throws ListFoldersContinueErrorException, DbxException { + ListFoldersContinueArg _arg = new ListFoldersContinueArg(cursor); + return listFoldersContinue(_arg); + } + + // + // route 2/sharing/list_mountable_folders + // + + /** + * Return the list of all shared folders the current user can mount or + * unmount. + * + * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + */ + ListFoldersResult listMountableFolders(ListFoldersArgs arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_mountable_folders", + arg, + false, + ListFoldersArgs.Serializer.INSTANCE, + ListFoldersResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"list_mountable_folders\":" + ex.getErrorValue()); + } + } + + /** + * Return the list of all shared folders the current user can mount or + * unmount. + * + *

The default values for the optional request parameters will be used. + * See {@link ListMountableFoldersBuilder} for more details.

+ * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + */ + public ListFoldersResult listMountableFolders() throws DbxApiException, DbxException { + ListFoldersArgs _arg = new ListFoldersArgs(); + return listMountableFolders(_arg); + } + + /** + * Return the list of all shared folders the current user can mount or + * unmount. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public ListMountableFoldersBuilder listMountableFoldersBuilder() { + ListFoldersArgs.Builder argBuilder_ = ListFoldersArgs.newBuilder(); + return new ListMountableFoldersBuilder(this, argBuilder_); + } + + // + // route 2/sharing/list_mountable_folders/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listMountableFolders}, use this to paginate + * through all mountable shared folders. The cursor must come from a + * previous call to {@link DbxUserSharingRequests#listMountableFolders} or + * {@link DbxUserSharingRequests#listMountableFoldersContinue(String)}. + * + * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + */ + ListFoldersResult listMountableFoldersContinue(ListFoldersContinueArg arg) throws ListFoldersContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_mountable_folders/continue", + arg, + false, + ListFoldersContinueArg.Serializer.INSTANCE, + ListFoldersResult.Serializer.INSTANCE, + ListFoldersContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFoldersContinueErrorException("2/sharing/list_mountable_folders/continue", ex.getRequestId(), ex.getUserMessage(), (ListFoldersContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxUserSharingRequests#listMountableFolders}, use this to paginate + * through all mountable shared folders. The cursor must come from a + * previous call to {@link DbxUserSharingRequests#listMountableFolders} or + * {@link DbxUserSharingRequests#listMountableFoldersContinue(String)}. + * + * @param cursor The cursor returned by the previous API call specified in + * the endpoint description. Must not be {@code null}. + * + * @return Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which + * endpoint was requested. Unmounted shared folders can be identified by + * the absence of {@link SharedFolderMetadata#getPathLower}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersResult listMountableFoldersContinue(String cursor) throws ListFoldersContinueErrorException, DbxException { + ListFoldersContinueArg _arg = new ListFoldersContinueArg(cursor); + return listMountableFoldersContinue(_arg); + } + + // + // route 2/sharing/list_received_files + // + + /** + * Returns a list of all files shared with current user. Does not include + * files the user has received via shared folders, and does not include + * unclaimed invitations. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#listReceivedFiles}. + * + * @return Success results for {@link + * DbxUserSharingRequests#listReceivedFiles}. + */ + ListFilesResult listReceivedFiles(ListFilesArg arg) throws SharingUserErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_received_files", + arg, + false, + ListFilesArg.Serializer.INSTANCE, + ListFilesResult.Serializer.INSTANCE, + SharingUserError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharingUserErrorException("2/sharing/list_received_files", ex.getRequestId(), ex.getUserMessage(), (SharingUserError) ex.getErrorValue()); + } + } + + /** + * Returns a list of all files shared with current user. + * + *

Does not include files the user has received via shared folders, and + * does not include unclaimed invitations.

+ * + *

The default values for the optional request parameters will be used. + * See {@link ListReceivedFilesBuilder} for more details.

+ * + * @return Success results for {@link + * DbxUserSharingRequests#listReceivedFiles}. + */ + public ListFilesResult listReceivedFiles() throws SharingUserErrorException, DbxException { + ListFilesArg _arg = new ListFilesArg(); + return listReceivedFiles(_arg); + } + + /** + * Returns a list of all files shared with current user. Does not include + * files the user has received via shared folders, and does not include + * unclaimed invitations. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public ListReceivedFilesBuilder listReceivedFilesBuilder() { + ListFilesArg.Builder argBuilder_ = ListFilesArg.newBuilder(); + return new ListReceivedFilesBuilder(this, argBuilder_); + } + + // + // route 2/sharing/list_received_files/continue + // + + /** + * Get more results with a cursor from {@link + * DbxUserSharingRequests#listReceivedFiles}. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}. + * + * @return Success results for {@link + * DbxUserSharingRequests#listReceivedFiles}. + */ + ListFilesResult listReceivedFilesContinue(ListFilesContinueArg arg) throws ListFilesContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_received_files/continue", + arg, + false, + ListFilesContinueArg.Serializer.INSTANCE, + ListFilesResult.Serializer.INSTANCE, + ListFilesContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListFilesContinueErrorException("2/sharing/list_received_files/continue", ex.getRequestId(), ex.getUserMessage(), (ListFilesContinueError) ex.getErrorValue()); + } + } + + /** + * Get more results with a cursor from {@link + * DbxUserSharingRequests#listReceivedFiles}. + * + * @param cursor Cursor in {@link ListFilesResult#getCursor}. Must not be + * {@code null}. + * + * @return Success results for {@link + * DbxUserSharingRequests#listReceivedFiles}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFilesResult listReceivedFilesContinue(String cursor) throws ListFilesContinueErrorException, DbxException { + ListFilesContinueArg _arg = new ListFilesContinueArg(cursor); + return listReceivedFilesContinue(_arg); + } + + // + // route 2/sharing/list_shared_links + // + + /** + * List shared links of this user. If no path is given, returns a list of + * all shared links for the current user. For members of business teams + * using team space and member folders, returns all shared links in the team + * member's home folder unless the team space ID is specified in the request + * header. For more information, refer to the Namespace + * Guide. If a non-empty path is given, returns a list of all shared + * links that allow access to the given path - direct links to the given + * path and links to parent folders of the given path. Links to parent + * folders can be suppressed by setting direct_only to true. + * + */ + ListSharedLinksResult listSharedLinks(ListSharedLinksArg arg) throws ListSharedLinksErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/list_shared_links", + arg, + false, + ListSharedLinksArg.Serializer.INSTANCE, + ListSharedLinksResult.Serializer.INSTANCE, + ListSharedLinksError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListSharedLinksErrorException("2/sharing/list_shared_links", ex.getRequestId(), ex.getUserMessage(), (ListSharedLinksError) ex.getErrorValue()); + } + } + + /** + * List shared links of this user. + * + *

If no path is given, returns a list of all shared links for the + * current user. For members of business teams using team space and member + * folders, returns all shared links in the team member's home folder unless + * the team space ID is specified in the request header. For more + * information, refer to the :link:`Namespace Guide + * https://www.dropbox.com/developers/reference/namespace-guide`.

+ * + *

If a non-empty path is given, returns a list of all shared links that + * allow access to the given path - direct links to the given path and links + * to parent folders of the given path. Links to parent folders can be + * suppressed by setting direct_only to true.

+ */ + public ListSharedLinksResult listSharedLinks() throws ListSharedLinksErrorException, DbxException { + ListSharedLinksArg _arg = new ListSharedLinksArg(); + return listSharedLinks(_arg); + } + + /** + * List shared links of this user. If no path is given, returns a list of + * all shared links for the current user. For members of business teams + * using team space and member folders, returns all shared links in the team + * member's home folder unless the team space ID is specified in the request + * header. For more information, refer to the Namespace + * Guide. If a non-empty path is given, returns a list of all shared + * links that allow access to the given path - direct links to the given + * path and links to parent folders of the given path. Links to parent + * folders can be suppressed by setting direct_only to true. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public ListSharedLinksBuilder listSharedLinksBuilder() { + ListSharedLinksArg.Builder argBuilder_ = ListSharedLinksArg.newBuilder(); + return new ListSharedLinksBuilder(this, argBuilder_); + } + + // + // route 2/sharing/modify_shared_link_settings + // + + /** + * Modify the shared link's settings. If the requested visibility conflict + * with the shared links policy of the team or the shared folder (in case + * the linked file is part of a shared folder) then the {@link + * LinkPermissions#getResolvedVisibility} of the returned {@link + * SharedLinkMetadata} will reflect the actual visibility of the shared link + * and the {@link LinkPermissions#getRequestedVisibility} will reflect the + * requested visibility. + * + * + * @return The metadata of a shared link. + */ + SharedLinkMetadata modifySharedLinkSettings(ModifySharedLinkSettingsArgs arg) throws ModifySharedLinkSettingsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/modify_shared_link_settings", + arg, + false, + ModifySharedLinkSettingsArgs.Serializer.INSTANCE, + SharedLinkMetadata.Serializer.INSTANCE, + ModifySharedLinkSettingsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ModifySharedLinkSettingsErrorException("2/sharing/modify_shared_link_settings", ex.getRequestId(), ex.getUserMessage(), (ModifySharedLinkSettingsError) ex.getErrorValue()); + } + } + + /** + * Modify the shared link's settings. + * + *

If the requested visibility conflict with the shared links policy of + * the team or the shared folder (in case the linked file is part of a + * shared folder) then the {@link LinkPermissions#getResolvedVisibility} of + * the returned {@link SharedLinkMetadata} will reflect the actual + * visibility of the shared link and the {@link + * LinkPermissions#getRequestedVisibility} will reflect the requested + * visibility.

+ * + *

The {@code removeExpiration} request parameter will default to {@code + * false} (see {@link + * #modifySharedLinkSettings(String,SharedLinkSettings,boolean)}).

+ * + * @param url URL of the shared link to change its settings. Must not be + * {@code null}. + * @param settings Set of settings for the shared link. Must not be {@code + * null}. + * + * @return The metadata of a shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata modifySharedLinkSettings(String url, SharedLinkSettings settings) throws ModifySharedLinkSettingsErrorException, DbxException { + ModifySharedLinkSettingsArgs _arg = new ModifySharedLinkSettingsArgs(url, settings); + return modifySharedLinkSettings(_arg); + } + + /** + * Modify the shared link's settings. + * + *

If the requested visibility conflict with the shared links policy of + * the team or the shared folder (in case the linked file is part of a + * shared folder) then the {@link LinkPermissions#getResolvedVisibility} of + * the returned {@link SharedLinkMetadata} will reflect the actual + * visibility of the shared link and the {@link + * LinkPermissions#getRequestedVisibility} will reflect the requested + * visibility.

+ * + * @param url URL of the shared link to change its settings. Must not be + * {@code null}. + * @param settings Set of settings for the shared link. Must not be {@code + * null}. + * @param removeExpiration If set to true, removes the expiration of the + * shared link. + * + * @return The metadata of a shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata modifySharedLinkSettings(String url, SharedLinkSettings settings, boolean removeExpiration) throws ModifySharedLinkSettingsErrorException, DbxException { + ModifySharedLinkSettingsArgs _arg = new ModifySharedLinkSettingsArgs(url, settings, removeExpiration); + return modifySharedLinkSettings(_arg); + } + + // + // route 2/sharing/mount_folder + // + + /** + * The current user mounts the designated folder. Mount a shared folder for + * a user after they have been added as a member. Once mounted, the shared + * folder will appear in their Dropbox. + * + * + * @return The metadata which includes basic information about the shared + * folder. + */ + SharedFolderMetadata mountFolder(MountFolderArg arg) throws MountFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/mount_folder", + arg, + false, + MountFolderArg.Serializer.INSTANCE, + SharedFolderMetadata.Serializer.INSTANCE, + MountFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MountFolderErrorException("2/sharing/mount_folder", ex.getRequestId(), ex.getUserMessage(), (MountFolderError) ex.getErrorValue()); + } + } + + /** + * The current user mounts the designated folder. + * + *

Mount a shared folder for a user after they have been added as a + * member. Once mounted, the shared folder will appear in their Dropbox. + *

+ * + * @param sharedFolderId The ID of the shared folder to mount. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return The metadata which includes basic information about the shared + * folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadata mountFolder(String sharedFolderId) throws MountFolderErrorException, DbxException { + MountFolderArg _arg = new MountFolderArg(sharedFolderId); + return mountFolder(_arg); + } + + // + // route 2/sharing/relinquish_file_membership + // + + /** + * The current user relinquishes their membership in the designated file. + * Note that the current user may still have inherited access to this file + * through the parent folder. + * + */ + void relinquishFileMembership(RelinquishFileMembershipArg arg) throws RelinquishFileMembershipErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/relinquish_file_membership", + arg, + false, + RelinquishFileMembershipArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + RelinquishFileMembershipError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RelinquishFileMembershipErrorException("2/sharing/relinquish_file_membership", ex.getRequestId(), ex.getUserMessage(), (RelinquishFileMembershipError) ex.getErrorValue()); + } + } + + /** + * The current user relinquishes their membership in the designated file. + * Note that the current user may still have inherited access to this file + * through the parent folder. + * + * @param file The path or id for the file. Must have length of at least 1, + * match pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void relinquishFileMembership(String file) throws RelinquishFileMembershipErrorException, DbxException { + RelinquishFileMembershipArg _arg = new RelinquishFileMembershipArg(file); + relinquishFileMembership(_arg); + } + + // + // route 2/sharing/relinquish_folder_membership + // + + /** + * The current user relinquishes their membership in the designated shared + * folder and will no longer have access to the folder. A folder owner + * cannot relinquish membership in their own folder. This will run + * synchronously if leave_a_copy is false, and asynchronously if + * leave_a_copy is true. + * + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + */ + LaunchEmptyResult relinquishFolderMembership(RelinquishFolderMembershipArg arg) throws RelinquishFolderMembershipErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/relinquish_folder_membership", + arg, + false, + RelinquishFolderMembershipArg.Serializer.INSTANCE, + LaunchEmptyResult.Serializer.INSTANCE, + RelinquishFolderMembershipError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RelinquishFolderMembershipErrorException("2/sharing/relinquish_folder_membership", ex.getRequestId(), ex.getUserMessage(), (RelinquishFolderMembershipError) ex.getErrorValue()); + } + } + + /** + * The current user relinquishes their membership in the designated shared + * folder and will no longer have access to the folder. A folder owner + * cannot relinquish membership in their own folder. + * + *

This will run synchronously if leave_a_copy is false, and + * asynchronously if leave_a_copy is true.

+ * + *

The {@code leaveACopy} request parameter will default to {@code + * false} (see {@link #relinquishFolderMembership(String,boolean)}).

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LaunchEmptyResult relinquishFolderMembership(String sharedFolderId) throws RelinquishFolderMembershipErrorException, DbxException { + RelinquishFolderMembershipArg _arg = new RelinquishFolderMembershipArg(sharedFolderId); + return relinquishFolderMembership(_arg); + } + + /** + * The current user relinquishes their membership in the designated shared + * folder and will no longer have access to the folder. A folder owner + * cannot relinquish membership in their own folder. + * + *

This will run synchronously if leave_a_copy is false, and + * asynchronously if leave_a_copy is true.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param leaveACopy Keep a copy of the folder's contents upon + * relinquishing membership. This must be set to false when the folder + * is within a team folder or another shared folder. + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LaunchEmptyResult relinquishFolderMembership(String sharedFolderId, boolean leaveACopy) throws RelinquishFolderMembershipErrorException, DbxException { + RelinquishFolderMembershipArg _arg = new RelinquishFolderMembershipArg(sharedFolderId, leaveACopy); + return relinquishFolderMembership(_arg); + } + + // + // route 2/sharing/remove_file_member + // + + /** + * Identical to remove_file_member_2 but with less information returned. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + */ + FileMemberActionIndividualResult removeFileMember(RemoveFileMemberArg arg) throws RemoveFileMemberErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/remove_file_member", + arg, + false, + RemoveFileMemberArg.Serializer.INSTANCE, + FileMemberActionIndividualResult.Serializer.INSTANCE, + RemoveFileMemberError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RemoveFileMemberErrorException("2/sharing/remove_file_member", ex.getRequestId(), ex.getUserMessage(), (RemoveFileMemberError) ex.getErrorValue()); + } + } + + /** + * Identical to remove_file_member_2 but with less information returned. + * + * @param file File from which to remove members. Must have length of at + * least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param member Member to remove from this file. Note that even if an + * email is specified, it may result in the removal of a user (not an + * invitee) if the user's main account corresponds to that email + * address. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated use {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)} + * instead. + */ + @Deprecated + public FileMemberActionIndividualResult removeFileMember(String file, MemberSelector member) throws RemoveFileMemberErrorException, DbxException { + RemoveFileMemberArg _arg = new RemoveFileMemberArg(file, member); + return removeFileMember(_arg); + } + + // + // route 2/sharing/remove_file_member_2 + // + + /** + * Removes a specified member from the file. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + */ + FileMemberRemoveActionResult removeFileMember2(RemoveFileMemberArg arg) throws RemoveFileMemberErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/remove_file_member_2", + arg, + false, + RemoveFileMemberArg.Serializer.INSTANCE, + FileMemberRemoveActionResult.Serializer.INSTANCE, + RemoveFileMemberError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RemoveFileMemberErrorException("2/sharing/remove_file_member_2", ex.getRequestId(), ex.getUserMessage(), (RemoveFileMemberError) ex.getErrorValue()); + } + } + + /** + * Removes a specified member from the file. + * + * @param file File from which to remove members. Must have length of at + * least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param member Member to remove from this file. Note that even if an + * email is specified, it may result in the removal of a user (not an + * invitee) if the user's main account corresponds to that email + * address. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMemberRemoveActionResult removeFileMember2(String file, MemberSelector member) throws RemoveFileMemberErrorException, DbxException { + RemoveFileMemberArg _arg = new RemoveFileMemberArg(file, member); + return removeFileMember2(_arg); + } + + // + // route 2/sharing/remove_folder_member + // + + /** + * Allows an owner or editor (if the ACL update policy allows) of a shared + * folder to remove another member. + * + * + * @return Result returned by methods that launch an asynchronous job. A + * method who may either launch an asynchronous job, or complete the + * request synchronously, can use this union by extending it, and adding + * a 'complete' field with the type of the synchronous response. See + * {@link LaunchEmptyResult} for an example. + */ + LaunchResultBase removeFolderMember(RemoveFolderMemberArg arg) throws RemoveFolderMemberErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/remove_folder_member", + arg, + false, + RemoveFolderMemberArg.Serializer.INSTANCE, + LaunchResultBase.Serializer.INSTANCE, + RemoveFolderMemberError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RemoveFolderMemberErrorException("2/sharing/remove_folder_member", ex.getRequestId(), ex.getUserMessage(), (RemoveFolderMemberError) ex.getErrorValue()); + } + } + + /** + * Allows an owner or editor (if the ACL update policy allows) of a shared + * folder to remove another member. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param member The member to remove from the folder. Must not be {@code + * null}. + * @param leaveACopy If true, the removed user will keep their copy of the + * folder after it's unshared, assuming it was mounted. Otherwise, it + * will be removed from their Dropbox. This must be set to false when + * removing a group, or when the folder is within a team folder or + * another shared folder. + * + * @return Result returned by methods that launch an asynchronous job. A + * method who may either launch an asynchronous job, or complete the + * request synchronously, can use this union by extending it, and adding + * a 'complete' field with the type of the synchronous response. See + * {@link LaunchEmptyResult} for an example. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LaunchResultBase removeFolderMember(String sharedFolderId, MemberSelector member, boolean leaveACopy) throws RemoveFolderMemberErrorException, DbxException { + RemoveFolderMemberArg _arg = new RemoveFolderMemberArg(sharedFolderId, member, leaveACopy); + return removeFolderMember(_arg); + } + + // + // route 2/sharing/revoke_shared_link + // + + /** + * Revoke a shared link. Note that even after revoking a shared link to a + * file, the file may be accessible if there are shared links leading to any + * of the file parent folders. To list all shared links that enable access + * to a specific file, you can use the {@link + * DbxUserSharingRequests#listSharedLinks} with the file as the {@link + * ListSharedLinksArg#getPath} argument. + * + */ + void revokeSharedLink(RevokeSharedLinkArg arg) throws RevokeSharedLinkErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/revoke_shared_link", + arg, + false, + RevokeSharedLinkArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + RevokeSharedLinkError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RevokeSharedLinkErrorException("2/sharing/revoke_shared_link", ex.getRequestId(), ex.getUserMessage(), (RevokeSharedLinkError) ex.getErrorValue()); + } + } + + /** + * Revoke a shared link. + * + *

Note that even after revoking a shared link to a file, the file may + * be accessible if there are shared links leading to any of the file parent + * folders. To list all shared links that enable access to a specific file, + * you can use the {@link DbxUserSharingRequests#listSharedLinks} with the + * file as the {@link ListSharedLinksArg#getPath} argument.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void revokeSharedLink(String url) throws RevokeSharedLinkErrorException, DbxException { + RevokeSharedLinkArg _arg = new RevokeSharedLinkArg(url); + revokeSharedLink(_arg); + } + + // + // route 2/sharing/set_access_inheritance + // + + /** + * Change the inheritance policy of an existing Shared Folder. Only + * permitted for shared folders in a shared team root. If a {@link + * ShareFolderLaunch#getAsyncJobIdValue} is returned, you'll need to call + * {@link DbxUserSharingRequests#checkShareJobStatus(String)} until the + * action completes to get the metadata for the folder. + * + */ + ShareFolderLaunch setAccessInheritance(SetAccessInheritanceArg arg) throws SetAccessInheritanceErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/set_access_inheritance", + arg, + false, + SetAccessInheritanceArg.Serializer.INSTANCE, + ShareFolderLaunch.Serializer.INSTANCE, + SetAccessInheritanceError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SetAccessInheritanceErrorException("2/sharing/set_access_inheritance", ex.getRequestId(), ex.getUserMessage(), (SetAccessInheritanceError) ex.getErrorValue()); + } + } + + /** + * Change the inheritance policy of an existing Shared Folder. Only + * permitted for shared folders in a shared team root. + * + *

If a {@link ShareFolderLaunch#getAsyncJobIdValue} is returned, you'll + * need to call {@link DbxUserSharingRequests#checkShareJobStatus(String)} + * until the action completes to get the metadata for the folder.

+ * + *

The {@code accessInheritance} request parameter will default to + * {@code AccessInheritance.INHERIT} (see {@link + * #setAccessInheritance(String,AccessInheritance)}).

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderLaunch setAccessInheritance(String sharedFolderId) throws SetAccessInheritanceErrorException, DbxException { + SetAccessInheritanceArg _arg = new SetAccessInheritanceArg(sharedFolderId); + return setAccessInheritance(_arg); + } + + /** + * Change the inheritance policy of an existing Shared Folder. Only + * permitted for shared folders in a shared team root. + * + *

If a {@link ShareFolderLaunch#getAsyncJobIdValue} is returned, you'll + * need to call {@link DbxUserSharingRequests#checkShareJobStatus(String)} + * until the action completes to get the metadata for the folder.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param accessInheritance The access inheritance settings for the folder. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderLaunch setAccessInheritance(String sharedFolderId, AccessInheritance accessInheritance) throws SetAccessInheritanceErrorException, DbxException { + if (accessInheritance == null) { + throw new IllegalArgumentException("Required value for 'accessInheritance' is null"); + } + SetAccessInheritanceArg _arg = new SetAccessInheritanceArg(sharedFolderId, accessInheritance); + return setAccessInheritance(_arg); + } + + // + // route 2/sharing/share_folder + // + + /** + * Share a folder with collaborators. Most sharing will be completed + * synchronously. Large folders will be completed asynchronously. To make + * testing the async case repeatable, set `ShareFolderArg.force_async`. If a + * {@link ShareFolderLaunch#getAsyncJobIdValue} is returned, you'll need to + * call {@link DbxUserSharingRequests#checkShareJobStatus(String)} until the + * action completes to get the metadata for the folder. + * + */ + ShareFolderLaunch shareFolder(ShareFolderArg arg) throws ShareFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/share_folder", + arg, + false, + ShareFolderArg.Serializer.INSTANCE, + ShareFolderLaunch.Serializer.INSTANCE, + ShareFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ShareFolderErrorException("2/sharing/share_folder", ex.getRequestId(), ex.getUserMessage(), (ShareFolderError) ex.getErrorValue()); + } + } + + /** + * Share a folder with collaborators. + * + *

Most sharing will be completed synchronously. Large folders will be + * completed asynchronously. To make testing the async case repeatable, set + * `ShareFolderArg.force_async`.

+ * + *

If a {@link ShareFolderLaunch#getAsyncJobIdValue} is returned, you'll + * need to call {@link DbxUserSharingRequests#checkShareJobStatus(String)} + * until the action completes to get the metadata for the folder.

+ * + *

The default values for the optional request parameters will be used. + * See {@link ShareFolderBuilder} for more details.

+ * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderLaunch shareFolder(String path) throws ShareFolderErrorException, DbxException { + ShareFolderArg _arg = new ShareFolderArg(path); + return shareFolder(_arg); + } + + /** + * Share a folder with collaborators. Most sharing will be completed + * synchronously. Large folders will be completed asynchronously. To make + * testing the async case repeatable, set `ShareFolderArg.force_async`. If a + * {@link ShareFolderLaunch#getAsyncJobIdValue} is returned, you'll need to + * call {@link DbxUserSharingRequests#checkShareJobStatus(String)} until the + * action completes to get the metadata for the folder. + * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderBuilder shareFolderBuilder(String path) { + ShareFolderArg.Builder argBuilder_ = ShareFolderArg.newBuilder(path); + return new ShareFolderBuilder(this, argBuilder_); + } + + // + // route 2/sharing/transfer_folder + // + + /** + * Transfer ownership of a shared folder to a member of the shared folder. + * User must have {@link AccessLevel#OWNER} access to the shared folder to + * perform a transfer. + * + */ + void transferFolder(TransferFolderArg arg) throws TransferFolderErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/transfer_folder", + arg, + false, + TransferFolderArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + TransferFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TransferFolderErrorException("2/sharing/transfer_folder", ex.getRequestId(), ex.getUserMessage(), (TransferFolderError) ex.getErrorValue()); + } + } + + /** + * Transfer ownership of a shared folder to a member of the shared folder. + * + *

User must have {@link AccessLevel#OWNER} access to the shared folder + * to perform a transfer.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param toDropboxId A account or team member ID to transfer ownership to. + * Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void transferFolder(String sharedFolderId, String toDropboxId) throws TransferFolderErrorException, DbxException { + TransferFolderArg _arg = new TransferFolderArg(sharedFolderId, toDropboxId); + transferFolder(_arg); + } + + // + // route 2/sharing/unmount_folder + // + + /** + * The current user unmounts the designated folder. They can re-mount the + * folder at a later time using {@link + * DbxUserSharingRequests#mountFolder(String)}. + * + */ + void unmountFolder(UnmountFolderArg arg) throws UnmountFolderErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/unmount_folder", + arg, + false, + UnmountFolderArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + UnmountFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UnmountFolderErrorException("2/sharing/unmount_folder", ex.getRequestId(), ex.getUserMessage(), (UnmountFolderError) ex.getErrorValue()); + } + } + + /** + * The current user unmounts the designated folder. They can re-mount the + * folder at a later time using {@link + * DbxUserSharingRequests#mountFolder(String)}. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void unmountFolder(String sharedFolderId) throws UnmountFolderErrorException, DbxException { + UnmountFolderArg _arg = new UnmountFolderArg(sharedFolderId); + unmountFolder(_arg); + } + + // + // route 2/sharing/unshare_file + // + + /** + * Remove all members from this file. Does not remove inherited members. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#unshareFile(String)}. + */ + void unshareFile(UnshareFileArg arg) throws UnshareFileErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/unshare_file", + arg, + false, + UnshareFileArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + UnshareFileError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UnshareFileErrorException("2/sharing/unshare_file", ex.getRequestId(), ex.getUserMessage(), (UnshareFileError) ex.getErrorValue()); + } + } + + /** + * Remove all members from this file. Does not remove inherited members. + * + * @param file The file to unshare. Must have length of at least 1, match + * pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void unshareFile(String file) throws UnshareFileErrorException, DbxException { + UnshareFileArg _arg = new UnshareFileArg(file); + unshareFile(_arg); + } + + // + // route 2/sharing/unshare_folder + // + + /** + * Allows a shared folder owner to unshare the folder. You'll need to call + * {@link DbxUserSharingRequests#checkJobStatus(String)} to determine if the + * action has completed successfully. + * + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + */ + LaunchEmptyResult unshareFolder(UnshareFolderArg arg) throws UnshareFolderErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/unshare_folder", + arg, + false, + UnshareFolderArg.Serializer.INSTANCE, + LaunchEmptyResult.Serializer.INSTANCE, + UnshareFolderError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UnshareFolderErrorException("2/sharing/unshare_folder", ex.getRequestId(), ex.getUserMessage(), (UnshareFolderError) ex.getErrorValue()); + } + } + + /** + * Allows a shared folder owner to unshare the folder. + * + *

You'll need to call {@link + * DbxUserSharingRequests#checkJobStatus(String)} to determine if the action + * has completed successfully.

+ * + *

The {@code leaveACopy} request parameter will default to {@code + * false} (see {@link #unshareFolder(String,boolean)}).

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LaunchEmptyResult unshareFolder(String sharedFolderId) throws UnshareFolderErrorException, DbxException { + UnshareFolderArg _arg = new UnshareFolderArg(sharedFolderId); + return unshareFolder(_arg); + } + + /** + * Allows a shared folder owner to unshare the folder. + * + *

You'll need to call {@link + * DbxUserSharingRequests#checkJobStatus(String)} to determine if the action + * has completed successfully.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param leaveACopy If true, members of this shared folder will get a copy + * of this folder after it's unshared. Otherwise, it will be removed + * from their Dropbox. The current user, who is an owner, will always + * retain their copy. + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LaunchEmptyResult unshareFolder(String sharedFolderId, boolean leaveACopy) throws UnshareFolderErrorException, DbxException { + UnshareFolderArg _arg = new UnshareFolderArg(sharedFolderId, leaveACopy); + return unshareFolder(_arg); + } + + // + // route 2/sharing/update_file_member + // + + /** + * Changes a member's access on a shared file. + * + * @param arg Arguments for {@link + * DbxUserSharingRequests#updateFileMember(String,MemberSelector,AccessLevel)}. + * + * @return Contains information about a member's access level to content + * after an operation. + */ + MemberAccessLevelResult updateFileMember(UpdateFileMemberArgs arg) throws FileMemberActionErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/update_file_member", + arg, + false, + UpdateFileMemberArgs.Serializer.INSTANCE, + MemberAccessLevelResult.Serializer.INSTANCE, + FileMemberActionError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new FileMemberActionErrorException("2/sharing/update_file_member", ex.getRequestId(), ex.getUserMessage(), (FileMemberActionError) ex.getErrorValue()); + } + } + + /** + * Changes a member's access on a shared file. + * + * @param file File for which we are changing a member's access. Must have + * length of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param member The member whose access we are changing. Must not be + * {@code null}. + * @param accessLevel The new access level for the member. Must not be + * {@code null}. + * + * @return Contains information about a member's access level to content + * after an operation. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAccessLevelResult updateFileMember(String file, MemberSelector member, AccessLevel accessLevel) throws FileMemberActionErrorException, DbxException { + UpdateFileMemberArgs _arg = new UpdateFileMemberArgs(file, member, accessLevel); + return updateFileMember(_arg); + } + + // + // route 2/sharing/update_folder_member + // + + /** + * Allows an owner or editor of a shared folder to update another member's + * permissions. + * + * + * @return Contains information about a member's access level to content + * after an operation. + */ + MemberAccessLevelResult updateFolderMember(UpdateFolderMemberArg arg) throws UpdateFolderMemberErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/update_folder_member", + arg, + false, + UpdateFolderMemberArg.Serializer.INSTANCE, + MemberAccessLevelResult.Serializer.INSTANCE, + UpdateFolderMemberError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UpdateFolderMemberErrorException("2/sharing/update_folder_member", ex.getRequestId(), ex.getUserMessage(), (UpdateFolderMemberError) ex.getErrorValue()); + } + } + + /** + * Allows an owner or editor of a shared folder to update another member's + * permissions. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param member The member of the shared folder to update. Only the + * {@link MemberSelector#getDropboxIdValue} may be set at this time. + * Must not be {@code null}. + * @param accessLevel The new access level for {@link + * UpdateFolderMemberArg#getMember}. {@link AccessLevel#OWNER} is + * disallowed. Must not be {@code null}. + * + * @return Contains information about a member's access level to content + * after an operation. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAccessLevelResult updateFolderMember(String sharedFolderId, MemberSelector member, AccessLevel accessLevel) throws UpdateFolderMemberErrorException, DbxException { + UpdateFolderMemberArg _arg = new UpdateFolderMemberArg(sharedFolderId, member, accessLevel); + return updateFolderMember(_arg); + } + + // + // route 2/sharing/update_folder_policy + // + + /** + * Update the sharing policies for a shared folder. User must have {@link + * AccessLevel#OWNER} access to the shared folder to update its policies. + * + * @param arg If any of the policies are unset, then they retain their + * current setting. + * + * @return The metadata which includes basic information about the shared + * folder. + */ + SharedFolderMetadata updateFolderPolicy(UpdateFolderPolicyArg arg) throws UpdateFolderPolicyErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/sharing/update_folder_policy", + arg, + false, + UpdateFolderPolicyArg.Serializer.INSTANCE, + SharedFolderMetadata.Serializer.INSTANCE, + UpdateFolderPolicyError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UpdateFolderPolicyErrorException("2/sharing/update_folder_policy", ex.getRequestId(), ex.getUserMessage(), (UpdateFolderPolicyError) ex.getErrorValue()); + } + } + + /** + * Update the sharing policies for a shared folder. + * + *

User must have {@link AccessLevel#OWNER} access to the shared folder + * to update its policies.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return The metadata which includes basic information about the shared + * folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadata updateFolderPolicy(String sharedFolderId) throws UpdateFolderPolicyErrorException, DbxException { + UpdateFolderPolicyArg _arg = new UpdateFolderPolicyArg(sharedFolderId); + return updateFolderPolicy(_arg); + } + + /** + * Update the sharing policies for a shared folder. User must have {@link + * AccessLevel#OWNER} access to the shared folder to update its policies. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFolderPolicyBuilder updateFolderPolicyBuilder(String sharedFolderId) { + UpdateFolderPolicyArg.Builder argBuilder_ = UpdateFolderPolicyArg.newBuilder(sharedFolderId); + return new UpdateFolderPolicyBuilder(this, argBuilder_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata.java new file mode 100644 index 000000000..6c3d7e2fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ExpectedSharedContentLinkMetadata.java @@ -0,0 +1,402 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The expected metadata of a shared link for a file or folder when a link is + * first created for the content. Absent if the link already exists. + */ +public class ExpectedSharedContentLinkMetadata extends SharedContentLinkMetadataBase { + // struct sharing.ExpectedSharedContentLinkMetadata (shared_content_links.stone) + + + /** + * The expected metadata of a shared link for a file or folder when a link + * is first created for the content. Absent if the link already exists. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * @param accessLevel The access level on the link for this file. + * @param audienceRestrictingSharedFolder The shared folder that prevents + * the link audience for this link from being more restrictive. + * @param expiry Whether the link has an expiry set on it. A link with an + * expiry will have its audience changed to members when the expiry is + * reached. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExpectedSharedContentLinkMetadata(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected, @Nullable AccessLevel accessLevel, @Nullable AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, @Nullable Date expiry) { + super(audienceOptions, currentAudience, linkPermissions, passwordProtected, accessLevel, audienceRestrictingSharedFolder, expiry); + } + + /** + * The expected metadata of a shared link for a file or folder when a link + * is first created for the content. Absent if the link already exists. + * + *

The default values for unset fields will be used.

+ * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExpectedSharedContentLinkMetadata(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected) { + this(audienceOptions, currentAudience, linkPermissions, passwordProtected, null, null, null); + } + + /** + * The audience options that are available for the content. Some audience + * options may be unavailable. For example, team_only may be unavailable if + * the content is not owned by a user on a team. The 'default' audience + * option is always available if the user can modify link settings. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAudienceOptions() { + return audienceOptions; + } + + /** + * The current audience of the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAudience getCurrentAudience() { + return currentAudience; + } + + /** + * A list of permissions for actions you can perform on the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkPermissions() { + return linkPermissions; + } + + /** + * Whether the link is protected by a password. + * + * @return value for this field. + */ + public boolean getPasswordProtected() { + return passwordProtected; + } + + /** + * The access level on the link for this file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getAccessLevel() { + return accessLevel; + } + + /** + * The shared folder that prevents the link audience for this link from + * being more restrictive. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { + return audienceRestrictingSharedFolder; + } + + /** + * Whether the link has an expiry set on it. A link with an expiry will have + * its audience changed to members when the expiry is reached. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpiry() { + return expiry; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected) { + return new Builder(audienceOptions, currentAudience, linkPermissions, passwordProtected); + } + + /** + * Builder for {@link ExpectedSharedContentLinkMetadata}. + */ + public static class Builder extends SharedContentLinkMetadataBase.Builder { + + protected Builder(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected) { + super(audienceOptions, currentAudience, linkPermissions, passwordProtected); + } + + /** + * Set value for optional field. + * + * @param accessLevel The access level on the link for this file. + * + * @return this builder + */ + public Builder withAccessLevel(AccessLevel accessLevel) { + super.withAccessLevel(accessLevel); + return this; + } + + /** + * Set value for optional field. + * + * @param audienceRestrictingSharedFolder The shared folder that + * prevents the link audience for this link from being more + * restrictive. + * + * @return this builder + */ + public Builder withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder) { + super.withAudienceRestrictingSharedFolder(audienceRestrictingSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + * @param expiry Whether the link has an expiry set on it. A link with + * an expiry will have its audience changed to members when the + * expiry is reached. + * + * @return this builder + */ + public Builder withExpiry(Date expiry) { + super.withExpiry(expiry); + return this; + } + + /** + * Builds an instance of {@link ExpectedSharedContentLinkMetadata} + * configured with this builder's values + * + * @return new instance of {@link ExpectedSharedContentLinkMetadata} + */ + public ExpectedSharedContentLinkMetadata build() { + return new ExpectedSharedContentLinkMetadata(audienceOptions, currentAudience, linkPermissions, passwordProtected, accessLevel, audienceRestrictingSharedFolder, expiry); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExpectedSharedContentLinkMetadata other = (ExpectedSharedContentLinkMetadata) obj; + return ((this.audienceOptions == other.audienceOptions) || (this.audienceOptions.equals(other.audienceOptions))) + && ((this.currentAudience == other.currentAudience) || (this.currentAudience.equals(other.currentAudience))) + && ((this.linkPermissions == other.linkPermissions) || (this.linkPermissions.equals(other.linkPermissions))) + && (this.passwordProtected == other.passwordProtected) + && ((this.accessLevel == other.accessLevel) || (this.accessLevel != null && this.accessLevel.equals(other.accessLevel))) + && ((this.audienceRestrictingSharedFolder == other.audienceRestrictingSharedFolder) || (this.audienceRestrictingSharedFolder != null && this.audienceRestrictingSharedFolder.equals(other.audienceRestrictingSharedFolder))) + && ((this.expiry == other.expiry) || (this.expiry != null && this.expiry.equals(other.expiry))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExpectedSharedContentLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("audience_options"); + StoneSerializers.list(LinkAudience.Serializer.INSTANCE).serialize(value.audienceOptions, g); + g.writeFieldName("current_audience"); + LinkAudience.Serializer.INSTANCE.serialize(value.currentAudience, g); + g.writeFieldName("link_permissions"); + StoneSerializers.list(LinkPermission.Serializer.INSTANCE).serialize(value.linkPermissions, g); + g.writeFieldName("password_protected"); + StoneSerializers.boolean_().serialize(value.passwordProtected, g); + if (value.accessLevel != null) { + g.writeFieldName("access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.accessLevel, g); + } + if (value.audienceRestrictingSharedFolder != null) { + g.writeFieldName("audience_restricting_shared_folder"); + StoneSerializers.nullableStruct(AudienceRestrictingSharedFolder.Serializer.INSTANCE).serialize(value.audienceRestrictingSharedFolder, g); + } + if (value.expiry != null) { + g.writeFieldName("expiry"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expiry, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExpectedSharedContentLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExpectedSharedContentLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_audienceOptions = null; + LinkAudience f_currentAudience = null; + List f_linkPermissions = null; + Boolean f_passwordProtected = null; + AccessLevel f_accessLevel = null; + AudienceRestrictingSharedFolder f_audienceRestrictingSharedFolder = null; + Date f_expiry = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("audience_options".equals(field)) { + f_audienceOptions = StoneSerializers.list(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else if ("current_audience".equals(field)) { + f_currentAudience = LinkAudience.Serializer.INSTANCE.deserialize(p); + } + else if ("link_permissions".equals(field)) { + f_linkPermissions = StoneSerializers.list(LinkPermission.Serializer.INSTANCE).deserialize(p); + } + else if ("password_protected".equals(field)) { + f_passwordProtected = StoneSerializers.boolean_().deserialize(p); + } + else if ("access_level".equals(field)) { + f_accessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("audience_restricting_shared_folder".equals(field)) { + f_audienceRestrictingSharedFolder = StoneSerializers.nullableStruct(AudienceRestrictingSharedFolder.Serializer.INSTANCE).deserialize(p); + } + else if ("expiry".equals(field)) { + f_expiry = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_audienceOptions == null) { + throw new JsonParseException(p, "Required field \"audience_options\" missing."); + } + if (f_currentAudience == null) { + throw new JsonParseException(p, "Required field \"current_audience\" missing."); + } + if (f_linkPermissions == null) { + throw new JsonParseException(p, "Required field \"link_permissions\" missing."); + } + if (f_passwordProtected == null) { + throw new JsonParseException(p, "Required field \"password_protected\" missing."); + } + value = new ExpectedSharedContentLinkMetadata(f_audienceOptions, f_currentAudience, f_linkPermissions, f_passwordProtected, f_accessLevel, f_audienceRestrictingSharedFolder, f_expiry); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileAction.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileAction.java new file mode 100644 index 000000000..a5a2e5c74 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileAction.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Sharing actions that may be taken on files. + */ +public enum FileAction { + // union sharing.FileAction (sharing_files.stone) + /** + * Disable viewer information on the file. + */ + DISABLE_VIEWER_INFO, + /** + * Change or edit contents of the file. + */ + EDIT_CONTENTS, + /** + * Enable viewer information on the file. + */ + ENABLE_VIEWER_INFO, + /** + * Add a member with view permissions. + */ + INVITE_VIEWER, + /** + * Add a member with view permissions but no comment permissions. + */ + INVITE_VIEWER_NO_COMMENT, + /** + * Add a member with edit permissions. + */ + INVITE_EDITOR, + /** + * Stop sharing this file. + */ + UNSHARE, + /** + * Relinquish one's own membership to the file. + */ + RELINQUISH_MEMBERSHIP, + /** + * Use create_view_link and create_edit_link instead. + */ + SHARE_LINK, + /** + * Use create_view_link and create_edit_link instead. + */ + CREATE_LINK, + /** + * Create a shared link to a file that only allows users to view the + * content. + */ + CREATE_VIEW_LINK, + /** + * Create a shared link to a file that allows users to edit the content. + */ + CREATE_EDIT_LINK, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileAction value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLE_VIEWER_INFO: { + g.writeString("disable_viewer_info"); + break; + } + case EDIT_CONTENTS: { + g.writeString("edit_contents"); + break; + } + case ENABLE_VIEWER_INFO: { + g.writeString("enable_viewer_info"); + break; + } + case INVITE_VIEWER: { + g.writeString("invite_viewer"); + break; + } + case INVITE_VIEWER_NO_COMMENT: { + g.writeString("invite_viewer_no_comment"); + break; + } + case INVITE_EDITOR: { + g.writeString("invite_editor"); + break; + } + case UNSHARE: { + g.writeString("unshare"); + break; + } + case RELINQUISH_MEMBERSHIP: { + g.writeString("relinquish_membership"); + break; + } + case SHARE_LINK: { + g.writeString("share_link"); + break; + } + case CREATE_LINK: { + g.writeString("create_link"); + break; + } + case CREATE_VIEW_LINK: { + g.writeString("create_view_link"); + break; + } + case CREATE_EDIT_LINK: { + g.writeString("create_edit_link"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileAction deserialize(JsonParser p) throws IOException, JsonParseException { + FileAction value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disable_viewer_info".equals(tag)) { + value = FileAction.DISABLE_VIEWER_INFO; + } + else if ("edit_contents".equals(tag)) { + value = FileAction.EDIT_CONTENTS; + } + else if ("enable_viewer_info".equals(tag)) { + value = FileAction.ENABLE_VIEWER_INFO; + } + else if ("invite_viewer".equals(tag)) { + value = FileAction.INVITE_VIEWER; + } + else if ("invite_viewer_no_comment".equals(tag)) { + value = FileAction.INVITE_VIEWER_NO_COMMENT; + } + else if ("invite_editor".equals(tag)) { + value = FileAction.INVITE_EDITOR; + } + else if ("unshare".equals(tag)) { + value = FileAction.UNSHARE; + } + else if ("relinquish_membership".equals(tag)) { + value = FileAction.RELINQUISH_MEMBERSHIP; + } + else if ("share_link".equals(tag)) { + value = FileAction.SHARE_LINK; + } + else if ("create_link".equals(tag)) { + value = FileAction.CREATE_LINK; + } + else if ("create_view_link".equals(tag)) { + value = FileAction.CREATE_VIEW_LINK; + } + else if ("create_edit_link".equals(tag)) { + value = FileAction.CREATE_EDIT_LINK; + } + else { + value = FileAction.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileLinkMetadata.java new file mode 100644 index 000000000..7ba86b649 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileLinkMetadata.java @@ -0,0 +1,622 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.users.Team; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The metadata of a file shared link. + */ +public class FileLinkMetadata extends SharedLinkMetadata { + // struct sharing.FileLinkMetadata (shared_links.stone) + + @Nonnull + protected final Date clientModified; + @Nonnull + protected final Date serverModified; + @Nonnull + protected final String rev; + protected final long size; + + /** + * The metadata of a file shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * @param clientModified The modification time set by the desktop client + * when the file was added to Dropbox. Since this time is not verified + * (the Dropbox server stores whatever the desktop client sends up), + * this should only be used for display purposes (such as sorting) and + * not, for example, to determine if a file has changed or not. Must not + * be {@code null}. + * @param serverModified The last time the file was modified on Dropbox. + * Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * @param size The file size in bytes. + * @param id A unique identifier for the linked file. Must have length of + * at least 1. + * @param expires Expiration time, if set. By default the link won't + * expire. + * @param pathLower The lowercased full path in the user's Dropbox. This + * always starts with a slash. This field will only be present only if + * the linked file is in the authenticated user's dropbox. + * @param teamMemberInfo The team membership information of the link's + * owner. This field will only be present if the link's owner is a + * team member. + * @param contentOwnerTeamInfo The team information of the content's owner. + * This field will only be present if the content's owner is a team + * member and the content's owner team is different from the link's + * owner team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions, @Nonnull Date clientModified, @Nonnull Date serverModified, @Nonnull String rev, long size, @Nullable String id, @Nullable Date expires, @Nullable String pathLower, @Nullable TeamMemberInfo teamMemberInfo, @Nullable Team contentOwnerTeamInfo) { + super(url, name, linkPermissions, id, expires, pathLower, teamMemberInfo, contentOwnerTeamInfo); + if (clientModified == null) { + throw new IllegalArgumentException("Required value for 'clientModified' is null"); + } + this.clientModified = LangUtil.truncateMillis(clientModified); + if (serverModified == null) { + throw new IllegalArgumentException("Required value for 'serverModified' is null"); + } + this.serverModified = LangUtil.truncateMillis(serverModified); + if (rev == null) { + throw new IllegalArgumentException("Required value for 'rev' is null"); + } + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + this.rev = rev; + this.size = size; + } + + /** + * The metadata of a file shared link. + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * @param clientModified The modification time set by the desktop client + * when the file was added to Dropbox. Since this time is not verified + * (the Dropbox server stores whatever the desktop client sends up), + * this should only be used for display purposes (such as sorting) and + * not, for example, to determine if a file has changed or not. Must not + * be {@code null}. + * @param serverModified The last time the file was modified on Dropbox. + * Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * @param size The file size in bytes. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions, @Nonnull Date clientModified, @Nonnull Date serverModified, @Nonnull String rev, long size) { + this(url, name, linkPermissions, clientModified, serverModified, rev, size, null, null, null, null, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * The linked file name (including extension). This never contains a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The link's access permissions. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkPermissions getLinkPermissions() { + return linkPermissions; + } + + /** + * The modification time set by the desktop client when the file was added + * to Dropbox. Since this time is not verified (the Dropbox server stores + * whatever the desktop client sends up), this should only be used for + * display purposes (such as sorting) and not, for example, to determine if + * a file has changed or not. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getClientModified() { + return clientModified; + } + + /** + * The last time the file was modified on Dropbox. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getServerModified() { + return serverModified; + } + + /** + * A unique identifier for the current revision of a file. This field is the + * same rev as elsewhere in the API and can be used to detect changes and + * avoid conflicts. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRev() { + return rev; + } + + /** + * The file size in bytes. + * + * @return value for this field. + */ + public long getSize() { + return size; + } + + /** + * A unique identifier for the linked file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getId() { + return id; + } + + /** + * Expiration time, if set. By default the link won't expire. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + /** + * The lowercased full path in the user's Dropbox. This always starts with a + * slash. This field will only be present only if the linked file is in the + * authenticated user's dropbox. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The team membership information of the link's owner. This field will + * only be present if the link's owner is a team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TeamMemberInfo getTeamMemberInfo() { + return teamMemberInfo; + } + + /** + * The team information of the content's owner. This field will only be + * present if the content's owner is a team member and the content's owner + * team is different from the link's owner team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Team getContentOwnerTeamInfo() { + return contentOwnerTeamInfo; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * @param clientModified The modification time set by the desktop client + * when the file was added to Dropbox. Since this time is not verified + * (the Dropbox server stores whatever the desktop client sends up), + * this should only be used for display purposes (such as sorting) and + * not, for example, to determine if a file has changed or not. Must not + * be {@code null}. + * @param serverModified The last time the file was modified on Dropbox. + * Must not be {@code null}. + * @param rev A unique identifier for the current revision of a file. This + * field is the same rev as elsewhere in the API and can be used to + * detect changes and avoid conflicts. Must have length of at least 9, + * match pattern "{@code [0-9a-f]+}", and not be {@code null}. + * @param size The file size in bytes. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String url, String name, LinkPermissions linkPermissions, Date clientModified, Date serverModified, String rev, long size) { + return new Builder(url, name, linkPermissions, clientModified, serverModified, rev, size); + } + + /** + * Builder for {@link FileLinkMetadata}. + */ + public static class Builder extends SharedLinkMetadata.Builder { + protected final Date clientModified; + protected final Date serverModified; + protected final String rev; + protected final long size; + + protected Builder(String url, String name, LinkPermissions linkPermissions, Date clientModified, Date serverModified, String rev, long size) { + super(url, name, linkPermissions); + if (clientModified == null) { + throw new IllegalArgumentException("Required value for 'clientModified' is null"); + } + this.clientModified = LangUtil.truncateMillis(clientModified); + if (serverModified == null) { + throw new IllegalArgumentException("Required value for 'serverModified' is null"); + } + this.serverModified = LangUtil.truncateMillis(serverModified); + if (rev == null) { + throw new IllegalArgumentException("Required value for 'rev' is null"); + } + if (rev.length() < 9) { + throw new IllegalArgumentException("String 'rev' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", rev)) { + throw new IllegalArgumentException("String 'rev' does not match pattern"); + } + this.rev = rev; + this.size = size; + } + + /** + * Set value for optional field. + * + * @param id A unique identifier for the linked file. Must have length + * of at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withId(String id) { + super.withId(id); + return this; + } + + /** + * Set value for optional field. + * + * @param expires Expiration time, if set. By default the link won't + * expire. + * + * @return this builder + */ + public Builder withExpires(Date expires) { + super.withExpires(expires); + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lowercased full path in the user's Dropbox. + * This always starts with a slash. This field will only be present + * only if the linked file is in the authenticated user's dropbox. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + super.withPathLower(pathLower); + return this; + } + + /** + * Set value for optional field. + * + * @param teamMemberInfo The team membership information of the link's + * owner. This field will only be present if the link's owner is a + * team member. + * + * @return this builder + */ + public Builder withTeamMemberInfo(TeamMemberInfo teamMemberInfo) { + super.withTeamMemberInfo(teamMemberInfo); + return this; + } + + /** + * Set value for optional field. + * + * @param contentOwnerTeamInfo The team information of the content's + * owner. This field will only be present if the content's owner is + * a team member and the content's owner team is different from the + * link's owner team. + * + * @return this builder + */ + public Builder withContentOwnerTeamInfo(Team contentOwnerTeamInfo) { + super.withContentOwnerTeamInfo(contentOwnerTeamInfo); + return this; + } + + /** + * Builds an instance of {@link FileLinkMetadata} configured with this + * builder's values + * + * @return new instance of {@link FileLinkMetadata} + */ + public FileLinkMetadata build() { + return new FileLinkMetadata(url, name, linkPermissions, clientModified, serverModified, rev, size, id, expires, pathLower, teamMemberInfo, contentOwnerTeamInfo); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.clientModified, + this.serverModified, + this.rev, + this.size + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLinkMetadata other = (FileLinkMetadata) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.linkPermissions == other.linkPermissions) || (this.linkPermissions.equals(other.linkPermissions))) + && ((this.clientModified == other.clientModified) || (this.clientModified.equals(other.clientModified))) + && ((this.serverModified == other.serverModified) || (this.serverModified.equals(other.serverModified))) + && ((this.rev == other.rev) || (this.rev.equals(other.rev))) + && (this.size == other.size) + && ((this.id == other.id) || (this.id != null && this.id.equals(other.id))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.teamMemberInfo == other.teamMemberInfo) || (this.teamMemberInfo != null && this.teamMemberInfo.equals(other.teamMemberInfo))) + && ((this.contentOwnerTeamInfo == other.contentOwnerTeamInfo) || (this.contentOwnerTeamInfo != null && this.contentOwnerTeamInfo.equals(other.contentOwnerTeamInfo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("file", g); + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("link_permissions"); + LinkPermissions.Serializer.INSTANCE.serialize(value.linkPermissions, g); + g.writeFieldName("client_modified"); + StoneSerializers.timestamp().serialize(value.clientModified, g); + g.writeFieldName("server_modified"); + StoneSerializers.timestamp().serialize(value.serverModified, g); + g.writeFieldName("rev"); + StoneSerializers.string().serialize(value.rev, g); + g.writeFieldName("size"); + StoneSerializers.uInt64().serialize(value.size, g); + if (value.id != null) { + g.writeFieldName("id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.id, g); + } + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.teamMemberInfo != null) { + g.writeFieldName("team_member_info"); + StoneSerializers.nullableStruct(TeamMemberInfo.Serializer.INSTANCE).serialize(value.teamMemberInfo, g); + } + if (value.contentOwnerTeamInfo != null) { + g.writeFieldName("content_owner_team_info"); + StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).serialize(value.contentOwnerTeamInfo, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("file".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_url = null; + String f_name = null; + LinkPermissions f_linkPermissions = null; + Date f_clientModified = null; + Date f_serverModified = null; + String f_rev = null; + Long f_size = null; + String f_id = null; + Date f_expires = null; + String f_pathLower = null; + TeamMemberInfo f_teamMemberInfo = null; + Team f_contentOwnerTeamInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("link_permissions".equals(field)) { + f_linkPermissions = LinkPermissions.Serializer.INSTANCE.deserialize(p); + } + else if ("client_modified".equals(field)) { + f_clientModified = StoneSerializers.timestamp().deserialize(p); + } + else if ("server_modified".equals(field)) { + f_serverModified = StoneSerializers.timestamp().deserialize(p); + } + else if ("rev".equals(field)) { + f_rev = StoneSerializers.string().deserialize(p); + } + else if ("size".equals(field)) { + f_size = StoneSerializers.uInt64().deserialize(p); + } + else if ("id".equals(field)) { + f_id = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team_member_info".equals(field)) { + f_teamMemberInfo = StoneSerializers.nullableStruct(TeamMemberInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("content_owner_team_info".equals(field)) { + f_contentOwnerTeamInfo = StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_linkPermissions == null) { + throw new JsonParseException(p, "Required field \"link_permissions\" missing."); + } + if (f_clientModified == null) { + throw new JsonParseException(p, "Required field \"client_modified\" missing."); + } + if (f_serverModified == null) { + throw new JsonParseException(p, "Required field \"server_modified\" missing."); + } + if (f_rev == null) { + throw new JsonParseException(p, "Required field \"rev\" missing."); + } + if (f_size == null) { + throw new JsonParseException(p, "Required field \"size\" missing."); + } + value = new FileLinkMetadata(f_url, f_name, f_linkPermissions, f_clientModified, f_serverModified, f_rev, f_size, f_id, f_expires, f_pathLower, f_teamMemberInfo, f_contentOwnerTeamInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionError.java new file mode 100644 index 000000000..dafed561d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionError.java @@ -0,0 +1,433 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class FileMemberActionError { + // union sharing.FileMemberActionError (sharing_files.stone) + + /** + * Discriminating tag type for {@link FileMemberActionError}. + */ + public enum Tag { + /** + * Specified member was not found. + */ + INVALID_MEMBER, + /** + * User does not have permission to perform this action on this member. + */ + NO_PERMISSION, + /** + * Specified file was invalid or user does not have access. + */ + ACCESS_ERROR, // SharingFileAccessError + /** + * The action cannot be completed because the target member does not + * have explicit access to the file. The return value is the access that + * the member has to the file from a parent folder. + */ + NO_EXPLICIT_ACCESS, // MemberAccessLevelResult + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Specified member was not found. + */ + public static final FileMemberActionError INVALID_MEMBER = new FileMemberActionError().withTag(Tag.INVALID_MEMBER); + /** + * User does not have permission to perform this action on this member. + */ + public static final FileMemberActionError NO_PERMISSION = new FileMemberActionError().withTag(Tag.NO_PERMISSION); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final FileMemberActionError OTHER = new FileMemberActionError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingFileAccessError accessErrorValue; + private MemberAccessLevelResult noExplicitAccessValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FileMemberActionError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private FileMemberActionError withTag(Tag _tag) { + FileMemberActionError result = new FileMemberActionError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Specified file was invalid or user does not have + * access. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FileMemberActionError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + FileMemberActionError result = new FileMemberActionError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param noExplicitAccessValue The action cannot be completed because the + * target member does not have explicit access to the file. The return + * value is the access that the member has to the file from a parent + * folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FileMemberActionError withTagAndNoExplicitAccess(Tag _tag, MemberAccessLevelResult noExplicitAccessValue) { + FileMemberActionError result = new FileMemberActionError(); + result._tag = _tag; + result.noExplicitAccessValue = noExplicitAccessValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FileMemberActionError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_MEMBER}, {@code false} otherwise. + */ + public boolean isInvalidMember() { + return this._tag == Tag.INVALID_MEMBER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code FileMemberActionError} that has its tag set + * to {@link Tag#ACCESS_ERROR}. + * + *

Specified file was invalid or user does not have access.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileMemberActionError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FileMemberActionError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FileMemberActionError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * Specified file was invalid or user does not have access. + * + *

This instance must be tagged as {@link Tag#ACCESS_ERROR}.

+ * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + */ + public boolean isNoExplicitAccess() { + return this._tag == Tag.NO_EXPLICIT_ACCESS; + } + + /** + * Returns an instance of {@code FileMemberActionError} that has its tag set + * to {@link Tag#NO_EXPLICIT_ACCESS}. + * + *

The action cannot be completed because the target member does not + * have explicit access to the file. The return value is the access that the + * member has to the file from a parent folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileMemberActionError} with its tag set to + * {@link Tag#NO_EXPLICIT_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FileMemberActionError noExplicitAccess(MemberAccessLevelResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FileMemberActionError().withTagAndNoExplicitAccess(Tag.NO_EXPLICIT_ACCESS, value); + } + + /** + * The action cannot be completed because the target member does not have + * explicit access to the file. The return value is the access that the + * member has to the file from a parent folder. + * + *

This instance must be tagged as {@link Tag#NO_EXPLICIT_ACCESS}.

+ * + * @return The {@link MemberAccessLevelResult} value associated with this + * instance if {@link #isNoExplicitAccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoExplicitAccess} is {@code + * false}. + */ + public MemberAccessLevelResult getNoExplicitAccessValue() { + if (this._tag != Tag.NO_EXPLICIT_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPLICIT_ACCESS, but was Tag." + this._tag.name()); + } + return noExplicitAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.noExplicitAccessValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FileMemberActionError) { + FileMemberActionError other = (FileMemberActionError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INVALID_MEMBER: + return true; + case NO_PERMISSION: + return true; + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case NO_EXPLICIT_ACCESS: + return (this.noExplicitAccessValue == other.noExplicitAccessValue) || (this.noExplicitAccessValue.equals(other.noExplicitAccessValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileMemberActionError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INVALID_MEMBER: { + g.writeString("invalid_member"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case NO_EXPLICIT_ACCESS: { + g.writeStartObject(); + writeTag("no_explicit_access", g); + MemberAccessLevelResult.Serializer.INSTANCE.serialize(value.noExplicitAccessValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileMemberActionError deserialize(JsonParser p) throws IOException, JsonParseException { + FileMemberActionError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_member".equals(tag)) { + value = FileMemberActionError.INVALID_MEMBER; + } + else if ("no_permission".equals(tag)) { + value = FileMemberActionError.NO_PERMISSION; + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = FileMemberActionError.accessError(fieldValue); + } + else if ("no_explicit_access".equals(tag)) { + MemberAccessLevelResult fieldValue = null; + fieldValue = MemberAccessLevelResult.Serializer.INSTANCE.deserialize(p, true); + value = FileMemberActionError.noExplicitAccess(fieldValue); + } + else { + value = FileMemberActionError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionErrorException.java new file mode 100644 index 000000000..74afa9041 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * FileMemberActionError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#updateFileMember(String,MemberSelector,AccessLevel)}. + *

+ */ +public class FileMemberActionErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/update_file_member + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#updateFileMember(String,MemberSelector,AccessLevel)}. + */ + public final FileMemberActionError errorValue; + + public FileMemberActionErrorException(String routeName, String requestId, LocalizedText userMessage, FileMemberActionError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionIndividualResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionIndividualResult.java new file mode 100644 index 000000000..940fac04e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionIndividualResult.java @@ -0,0 +1,365 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class FileMemberActionIndividualResult { + // union sharing.FileMemberActionIndividualResult (sharing_files.stone) + + /** + * Discriminating tag type for {@link FileMemberActionIndividualResult}. + */ + public enum Tag { + /** + * Part of the response for both add_file_member and + * remove_file_member_v1 (deprecated). For add_file_member, indicates + * giving access was successful and at what AccessLevel. For + * remove_file_member_v1, indicates member was successfully removed from + * the file. If AccessLevel is given, the member still has access via a + * parent shared folder. + */ + SUCCESS, // AccessLevel + /** + * User was not able to perform this action. + */ + MEMBER_ERROR; // FileMemberActionError + } + + private Tag _tag; + private AccessLevel successValue; + private FileMemberActionError memberErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FileMemberActionIndividualResult() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private FileMemberActionIndividualResult withTag(Tag _tag) { + FileMemberActionIndividualResult result = new FileMemberActionIndividualResult(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Part of the response for both add_file_member and + * remove_file_member_v1 (deprecated). For add_file_member, indicates + * giving access was successful and at what AccessLevel. For + * remove_file_member_v1, indicates member was successfully removed from + * the file. If AccessLevel is given, the member still has access via a + * parent shared folder. + * @param _tag Discriminating tag for this instance. + */ + private FileMemberActionIndividualResult withTagAndSuccess(Tag _tag, AccessLevel successValue) { + FileMemberActionIndividualResult result = new FileMemberActionIndividualResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param memberErrorValue User was not able to perform this action. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FileMemberActionIndividualResult withTagAndMemberError(Tag _tag, FileMemberActionError memberErrorValue) { + FileMemberActionIndividualResult result = new FileMemberActionIndividualResult(); + result._tag = _tag; + result.memberErrorValue = memberErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FileMemberActionIndividualResult}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code FileMemberActionIndividualResult} that has + * its tag set to {@link Tag#SUCCESS}. + * + *

Part of the response for both add_file_member and + * remove_file_member_v1 (deprecated). For add_file_member, indicates giving + * access was successful and at what AccessLevel. For remove_file_member_v1, + * indicates member was successfully removed from the file. If AccessLevel + * is given, the member still has access via a parent shared folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileMemberActionIndividualResult} with its tag + * set to {@link Tag#SUCCESS}. + */ + public static FileMemberActionIndividualResult success(AccessLevel value) { + return new FileMemberActionIndividualResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Returns an instance of {@code FileMemberActionIndividualResult} that has + * its tag set to {@link Tag#SUCCESS}. + * + *

Part of the response for both add_file_member and + * remove_file_member_v1 (deprecated). For add_file_member, indicates giving + * access was successful and at what AccessLevel. For remove_file_member_v1, + * indicates member was successfully removed from the file. If AccessLevel + * is given, the member still has access via a parent shared folder.

+ * + * @return Instance of {@code FileMemberActionIndividualResult} with its tag + * set to {@link Tag#SUCCESS}. + */ + public static FileMemberActionIndividualResult success() { + return success(null); + } + + /** + * Part of the response for both add_file_member and remove_file_member_v1 + * (deprecated). For add_file_member, indicates giving access was successful + * and at what AccessLevel. For remove_file_member_v1, indicates member was + * successfully removed from the file. If AccessLevel is given, the member + * still has access via a parent shared folder. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link AccessLevel} value associated with this instance if + * {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public AccessLevel getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + */ + public boolean isMemberError() { + return this._tag == Tag.MEMBER_ERROR; + } + + /** + * Returns an instance of {@code FileMemberActionIndividualResult} that has + * its tag set to {@link Tag#MEMBER_ERROR}. + * + *

User was not able to perform this action.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileMemberActionIndividualResult} with its tag + * set to {@link Tag#MEMBER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FileMemberActionIndividualResult memberError(FileMemberActionError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FileMemberActionIndividualResult().withTagAndMemberError(Tag.MEMBER_ERROR, value); + } + + /** + * User was not able to perform this action. + * + *

This instance must be tagged as {@link Tag#MEMBER_ERROR}.

+ * + * @return The {@link FileMemberActionError} value associated with this + * instance if {@link #isMemberError} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberError} is {@code + * false}. + */ + public FileMemberActionError getMemberErrorValue() { + if (this._tag != Tag.MEMBER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ERROR, but was Tag." + this._tag.name()); + } + return memberErrorValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.memberErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FileMemberActionIndividualResult) { + FileMemberActionIndividualResult other = (FileMemberActionIndividualResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue != null && this.successValue.equals(other.successValue)); + case MEMBER_ERROR: + return (this.memberErrorValue == other.memberErrorValue) || (this.memberErrorValue.equals(other.memberErrorValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileMemberActionIndividualResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + g.writeFieldName("success"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.successValue, g); + g.writeEndObject(); + break; + } + case MEMBER_ERROR: { + g.writeStartObject(); + writeTag("member_error", g); + g.writeFieldName("member_error"); + FileMemberActionError.Serializer.INSTANCE.serialize(value.memberErrorValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public FileMemberActionIndividualResult deserialize(JsonParser p) throws IOException, JsonParseException { + FileMemberActionIndividualResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + AccessLevel fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + expectField("success", p); + fieldValue = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + if (fieldValue == null) { + value = FileMemberActionIndividualResult.success(); + } + else { + value = FileMemberActionIndividualResult.success(fieldValue); + } + } + else if ("member_error".equals(tag)) { + FileMemberActionError fieldValue = null; + expectField("member_error", p); + fieldValue = FileMemberActionError.Serializer.INSTANCE.deserialize(p); + value = FileMemberActionIndividualResult.memberError(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionResult.java new file mode 100644 index 000000000..f4452d051 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberActionResult.java @@ -0,0 +1,352 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Per-member result for {@link + * DbxUserSharingRequests#addFileMember(String,List)}. + */ +public class FileMemberActionResult { + // struct sharing.FileMemberActionResult (sharing_files.stone) + + @Nonnull + protected final MemberSelector member; + @Nonnull + protected final FileMemberActionIndividualResult result; + @Nullable + protected final String sckeySha1; + @Nullable + protected final List invitationSignature; + + /** + * Per-member result for {@link + * DbxUserSharingRequests#addFileMember(String,List)}. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param member One of specified input members. Must not be {@code null}. + * @param result The outcome of the action on this member. Must not be + * {@code null}. + * @param sckeySha1 The SHA-1 encrypted shared content key. + * @param invitationSignature The sharing sender-recipient invitation + * signatures for the input member_id. A member_id can be a group and + * thus have multiple users and multiple invitation signatures. Must not + * contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMemberActionResult(@Nonnull MemberSelector member, @Nonnull FileMemberActionIndividualResult result, @Nullable String sckeySha1, @Nullable List invitationSignature) { + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + if (result == null) { + throw new IllegalArgumentException("Required value for 'result' is null"); + } + this.result = result; + this.sckeySha1 = sckeySha1; + if (invitationSignature != null) { + for (String x : invitationSignature) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitationSignature' is null"); + } + } + } + this.invitationSignature = invitationSignature; + } + + /** + * Per-member result for {@link + * DbxUserSharingRequests#addFileMember(String,List)}. + * + *

The default values for unset fields will be used.

+ * + * @param member One of specified input members. Must not be {@code null}. + * @param result The outcome of the action on this member. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMemberActionResult(@Nonnull MemberSelector member, @Nonnull FileMemberActionIndividualResult result) { + this(member, result, null, null); + } + + /** + * One of specified input members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + /** + * The outcome of the action on this member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileMemberActionIndividualResult getResult() { + return result; + } + + /** + * The SHA-1 encrypted shared content key. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSckeySha1() { + return sckeySha1; + } + + /** + * The sharing sender-recipient invitation signatures for the input + * member_id. A member_id can be a group and thus have multiple users and + * multiple invitation signatures. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getInvitationSignature() { + return invitationSignature; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param member One of specified input members. Must not be {@code null}. + * @param result The outcome of the action on this member. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(MemberSelector member, FileMemberActionIndividualResult result) { + return new Builder(member, result); + } + + /** + * Builder for {@link FileMemberActionResult}. + */ + public static class Builder { + protected final MemberSelector member; + protected final FileMemberActionIndividualResult result; + + protected String sckeySha1; + protected List invitationSignature; + + protected Builder(MemberSelector member, FileMemberActionIndividualResult result) { + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + if (result == null) { + throw new IllegalArgumentException("Required value for 'result' is null"); + } + this.result = result; + this.sckeySha1 = null; + this.invitationSignature = null; + } + + /** + * Set value for optional field. + * + * @param sckeySha1 The SHA-1 encrypted shared content key. + * + * @return this builder + */ + public Builder withSckeySha1(String sckeySha1) { + this.sckeySha1 = sckeySha1; + return this; + } + + /** + * Set value for optional field. + * + * @param invitationSignature The sharing sender-recipient invitation + * signatures for the input member_id. A member_id can be a group + * and thus have multiple users and multiple invitation signatures. + * Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withInvitationSignature(List invitationSignature) { + if (invitationSignature != null) { + for (String x : invitationSignature) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitationSignature' is null"); + } + } + } + this.invitationSignature = invitationSignature; + return this; + } + + /** + * Builds an instance of {@link FileMemberActionResult} configured with + * this builder's values + * + * @return new instance of {@link FileMemberActionResult} + */ + public FileMemberActionResult build() { + return new FileMemberActionResult(member, result, sckeySha1, invitationSignature); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.member, + this.result, + this.sckeySha1, + this.invitationSignature + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileMemberActionResult other = (FileMemberActionResult) obj; + return ((this.member == other.member) || (this.member.equals(other.member))) + && ((this.result == other.result) || (this.result.equals(other.result))) + && ((this.sckeySha1 == other.sckeySha1) || (this.sckeySha1 != null && this.sckeySha1.equals(other.sckeySha1))) + && ((this.invitationSignature == other.invitationSignature) || (this.invitationSignature != null && this.invitationSignature.equals(other.invitationSignature))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileMemberActionResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + g.writeFieldName("result"); + FileMemberActionIndividualResult.Serializer.INSTANCE.serialize(value.result, g); + if (value.sckeySha1 != null) { + g.writeFieldName("sckey_sha1"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sckeySha1, g); + } + if (value.invitationSignature != null) { + g.writeFieldName("invitation_signature"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.invitationSignature, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileMemberActionResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileMemberActionResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberSelector f_member = null; + FileMemberActionIndividualResult f_result = null; + String f_sckeySha1 = null; + List f_invitationSignature = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("result".equals(field)) { + f_result = FileMemberActionIndividualResult.Serializer.INSTANCE.deserialize(p); + } + else if ("sckey_sha1".equals(field)) { + f_sckeySha1 = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("invitation_signature".equals(field)) { + f_invitationSignature = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + if (f_result == null) { + throw new JsonParseException(p, "Required field \"result\" missing."); + } + value = new FileMemberActionResult(f_member, f_result, f_sckeySha1, f_invitationSignature); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberRemoveActionResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberRemoveActionResult.java new file mode 100644 index 000000000..c2422debc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FileMemberRemoveActionResult.java @@ -0,0 +1,368 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class FileMemberRemoveActionResult { + // union sharing.FileMemberRemoveActionResult (sharing_files.stone) + + /** + * Discriminating tag type for {@link FileMemberRemoveActionResult}. + */ + public enum Tag { + /** + * Member was successfully removed from this file. + */ + SUCCESS, // MemberAccessLevelResult + /** + * User was not able to remove this member. + */ + MEMBER_ERROR, // FileMemberActionError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final FileMemberRemoveActionResult OTHER = new FileMemberRemoveActionResult().withTag(Tag.OTHER); + + private Tag _tag; + private MemberAccessLevelResult successValue; + private FileMemberActionError memberErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FileMemberRemoveActionResult() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private FileMemberRemoveActionResult withTag(Tag _tag) { + FileMemberRemoveActionResult result = new FileMemberRemoveActionResult(); + result._tag = _tag; + return result; + } + + /** + * + * @param successValue Member was successfully removed from this file. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FileMemberRemoveActionResult withTagAndSuccess(Tag _tag, MemberAccessLevelResult successValue) { + FileMemberRemoveActionResult result = new FileMemberRemoveActionResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * + * @param memberErrorValue User was not able to remove this member. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FileMemberRemoveActionResult withTagAndMemberError(Tag _tag, FileMemberActionError memberErrorValue) { + FileMemberRemoveActionResult result = new FileMemberRemoveActionResult(); + result._tag = _tag; + result.memberErrorValue = memberErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FileMemberRemoveActionResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code FileMemberRemoveActionResult} that has its + * tag set to {@link Tag#SUCCESS}. + * + *

Member was successfully removed from this file.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileMemberRemoveActionResult} with its tag set + * to {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FileMemberRemoveActionResult success(MemberAccessLevelResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FileMemberRemoveActionResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Member was successfully removed from this file. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link MemberAccessLevelResult} value associated with this + * instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public MemberAccessLevelResult getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + */ + public boolean isMemberError() { + return this._tag == Tag.MEMBER_ERROR; + } + + /** + * Returns an instance of {@code FileMemberRemoveActionResult} that has its + * tag set to {@link Tag#MEMBER_ERROR}. + * + *

User was not able to remove this member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileMemberRemoveActionResult} with its tag set + * to {@link Tag#MEMBER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FileMemberRemoveActionResult memberError(FileMemberActionError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FileMemberRemoveActionResult().withTagAndMemberError(Tag.MEMBER_ERROR, value); + } + + /** + * User was not able to remove this member. + * + *

This instance must be tagged as {@link Tag#MEMBER_ERROR}.

+ * + * @return The {@link FileMemberActionError} value associated with this + * instance if {@link #isMemberError} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberError} is {@code + * false}. + */ + public FileMemberActionError getMemberErrorValue() { + if (this._tag != Tag.MEMBER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ERROR, but was Tag." + this._tag.name()); + } + return memberErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.memberErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FileMemberRemoveActionResult) { + FileMemberRemoveActionResult other = (FileMemberRemoveActionResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case MEMBER_ERROR: + return (this.memberErrorValue == other.memberErrorValue) || (this.memberErrorValue.equals(other.memberErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileMemberRemoveActionResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + MemberAccessLevelResult.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_ERROR: { + g.writeStartObject(); + writeTag("member_error", g); + g.writeFieldName("member_error"); + FileMemberActionError.Serializer.INSTANCE.serialize(value.memberErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileMemberRemoveActionResult deserialize(JsonParser p) throws IOException, JsonParseException { + FileMemberRemoveActionResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + MemberAccessLevelResult fieldValue = null; + fieldValue = MemberAccessLevelResult.Serializer.INSTANCE.deserialize(p, true); + value = FileMemberRemoveActionResult.success(fieldValue); + } + else if ("member_error".equals(tag)) { + FileMemberActionError fieldValue = null; + expectField("member_error", p); + fieldValue = FileMemberActionError.Serializer.INSTANCE.deserialize(p); + value = FileMemberRemoveActionResult.memberError(fieldValue); + } + else { + value = FileMemberRemoveActionResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FilePermission.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FilePermission.java new file mode 100644 index 000000000..64dcdc293 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FilePermission.java @@ -0,0 +1,219 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Whether the user is allowed to take the sharing action on the file. + */ +public class FilePermission { + // struct sharing.FilePermission (sharing_files.stone) + + @Nonnull + protected final FileAction action; + protected final boolean allow; + @Nullable + protected final PermissionDeniedReason reason; + + /** + * Whether the user is allowed to take the sharing action on the file. + * + * @param action The action that the user may wish to take on the file. + * Must not be {@code null}. + * @param allow True if the user is allowed to take the action. + * @param reason The reason why the user is denied the permission. Not + * present if the action is allowed. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FilePermission(@Nonnull FileAction action, boolean allow, @Nullable PermissionDeniedReason reason) { + if (action == null) { + throw new IllegalArgumentException("Required value for 'action' is null"); + } + this.action = action; + this.allow = allow; + this.reason = reason; + } + + /** + * Whether the user is allowed to take the sharing action on the file. + * + *

The default values for unset fields will be used.

+ * + * @param action The action that the user may wish to take on the file. + * Must not be {@code null}. + * @param allow True if the user is allowed to take the action. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FilePermission(@Nonnull FileAction action, boolean allow) { + this(action, allow, null); + } + + /** + * The action that the user may wish to take on the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileAction getAction() { + return action; + } + + /** + * True if the user is allowed to take the action. + * + * @return value for this field. + */ + public boolean getAllow() { + return allow; + } + + /** + * The reason why the user is denied the permission. Not present if the + * action is allowed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PermissionDeniedReason getReason() { + return reason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.action, + this.allow, + this.reason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FilePermission other = (FilePermission) obj; + return ((this.action == other.action) || (this.action.equals(other.action))) + && (this.allow == other.allow) + && ((this.reason == other.reason) || (this.reason != null && this.reason.equals(other.reason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FilePermission value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("action"); + FileAction.Serializer.INSTANCE.serialize(value.action, g); + g.writeFieldName("allow"); + StoneSerializers.boolean_().serialize(value.allow, g); + if (value.reason != null) { + g.writeFieldName("reason"); + StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).serialize(value.reason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FilePermission deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FilePermission value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileAction f_action = null; + Boolean f_allow = null; + PermissionDeniedReason f_reason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("action".equals(field)) { + f_action = FileAction.Serializer.INSTANCE.deserialize(p); + } + else if ("allow".equals(field)) { + f_allow = StoneSerializers.boolean_().deserialize(p); + } + else if ("reason".equals(field)) { + f_reason = StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_action == null) { + throw new JsonParseException(p, "Required field \"action\" missing."); + } + if (f_allow == null) { + throw new JsonParseException(p, "Required field \"allow\" missing."); + } + value = new FilePermission(f_action, f_allow, f_reason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderAction.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderAction.java new file mode 100644 index 000000000..2dcfecd4f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderAction.java @@ -0,0 +1,231 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Actions that may be taken on shared folders. + */ +public enum FolderAction { + // union sharing.FolderAction (sharing_folders.stone) + /** + * Change folder options, such as who can be invited to join the folder. + */ + CHANGE_OPTIONS, + /** + * Disable viewer information for this folder. + */ + DISABLE_VIEWER_INFO, + /** + * Change or edit contents of the folder. + */ + EDIT_CONTENTS, + /** + * Enable viewer information on the folder. + */ + ENABLE_VIEWER_INFO, + /** + * Invite a user or group to join the folder with read and write permission. + */ + INVITE_EDITOR, + /** + * Invite a user or group to join the folder with read permission. + */ + INVITE_VIEWER, + /** + * Invite a user or group to join the folder with read permission but no + * comment permissions. + */ + INVITE_VIEWER_NO_COMMENT, + /** + * Relinquish one's own membership in the folder. + */ + RELINQUISH_MEMBERSHIP, + /** + * Unmount the folder. + */ + UNMOUNT, + /** + * Stop sharing this folder. + */ + UNSHARE, + /** + * Keep a copy of the contents upon leaving or being kicked from the folder. + */ + LEAVE_A_COPY, + /** + * Use create_link instead. + */ + SHARE_LINK, + /** + * Create a shared link for folder. + */ + CREATE_LINK, + /** + * Set whether the folder inherits permissions from its parent. + */ + SET_ACCESS_INHERITANCE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderAction value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case CHANGE_OPTIONS: { + g.writeString("change_options"); + break; + } + case DISABLE_VIEWER_INFO: { + g.writeString("disable_viewer_info"); + break; + } + case EDIT_CONTENTS: { + g.writeString("edit_contents"); + break; + } + case ENABLE_VIEWER_INFO: { + g.writeString("enable_viewer_info"); + break; + } + case INVITE_EDITOR: { + g.writeString("invite_editor"); + break; + } + case INVITE_VIEWER: { + g.writeString("invite_viewer"); + break; + } + case INVITE_VIEWER_NO_COMMENT: { + g.writeString("invite_viewer_no_comment"); + break; + } + case RELINQUISH_MEMBERSHIP: { + g.writeString("relinquish_membership"); + break; + } + case UNMOUNT: { + g.writeString("unmount"); + break; + } + case UNSHARE: { + g.writeString("unshare"); + break; + } + case LEAVE_A_COPY: { + g.writeString("leave_a_copy"); + break; + } + case SHARE_LINK: { + g.writeString("share_link"); + break; + } + case CREATE_LINK: { + g.writeString("create_link"); + break; + } + case SET_ACCESS_INHERITANCE: { + g.writeString("set_access_inheritance"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FolderAction deserialize(JsonParser p) throws IOException, JsonParseException { + FolderAction value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("change_options".equals(tag)) { + value = FolderAction.CHANGE_OPTIONS; + } + else if ("disable_viewer_info".equals(tag)) { + value = FolderAction.DISABLE_VIEWER_INFO; + } + else if ("edit_contents".equals(tag)) { + value = FolderAction.EDIT_CONTENTS; + } + else if ("enable_viewer_info".equals(tag)) { + value = FolderAction.ENABLE_VIEWER_INFO; + } + else if ("invite_editor".equals(tag)) { + value = FolderAction.INVITE_EDITOR; + } + else if ("invite_viewer".equals(tag)) { + value = FolderAction.INVITE_VIEWER; + } + else if ("invite_viewer_no_comment".equals(tag)) { + value = FolderAction.INVITE_VIEWER_NO_COMMENT; + } + else if ("relinquish_membership".equals(tag)) { + value = FolderAction.RELINQUISH_MEMBERSHIP; + } + else if ("unmount".equals(tag)) { + value = FolderAction.UNMOUNT; + } + else if ("unshare".equals(tag)) { + value = FolderAction.UNSHARE; + } + else if ("leave_a_copy".equals(tag)) { + value = FolderAction.LEAVE_A_COPY; + } + else if ("share_link".equals(tag)) { + value = FolderAction.SHARE_LINK; + } + else if ("create_link".equals(tag)) { + value = FolderAction.CREATE_LINK; + } + else if ("set_access_inheritance".equals(tag)) { + value = FolderAction.SET_ACCESS_INHERITANCE; + } + else { + value = FolderAction.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderLinkMetadata.java new file mode 100644 index 000000000..6fcbacf91 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderLinkMetadata.java @@ -0,0 +1,441 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.users.Team; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The metadata of a folder shared link. + */ +public class FolderLinkMetadata extends SharedLinkMetadata { + // struct sharing.FolderLinkMetadata (shared_links.stone) + + + /** + * The metadata of a folder shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * @param id A unique identifier for the linked file. Must have length of + * at least 1. + * @param expires Expiration time, if set. By default the link won't + * expire. + * @param pathLower The lowercased full path in the user's Dropbox. This + * always starts with a slash. This field will only be present only if + * the linked file is in the authenticated user's dropbox. + * @param teamMemberInfo The team membership information of the link's + * owner. This field will only be present if the link's owner is a + * team member. + * @param contentOwnerTeamInfo The team information of the content's owner. + * This field will only be present if the content's owner is a team + * member and the content's owner team is different from the link's + * owner team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions, @Nullable String id, @Nullable Date expires, @Nullable String pathLower, @Nullable TeamMemberInfo teamMemberInfo, @Nullable Team contentOwnerTeamInfo) { + super(url, name, linkPermissions, id, expires, pathLower, teamMemberInfo, contentOwnerTeamInfo); + } + + /** + * The metadata of a folder shared link. + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions) { + this(url, name, linkPermissions, null, null, null, null, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * The linked file name (including extension). This never contains a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The link's access permissions. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkPermissions getLinkPermissions() { + return linkPermissions; + } + + /** + * A unique identifier for the linked file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getId() { + return id; + } + + /** + * Expiration time, if set. By default the link won't expire. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + /** + * The lowercased full path in the user's Dropbox. This always starts with a + * slash. This field will only be present only if the linked file is in the + * authenticated user's dropbox. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The team membership information of the link's owner. This field will + * only be present if the link's owner is a team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TeamMemberInfo getTeamMemberInfo() { + return teamMemberInfo; + } + + /** + * The team information of the content's owner. This field will only be + * present if the content's owner is a team member and the content's owner + * team is different from the link's owner team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Team getContentOwnerTeamInfo() { + return contentOwnerTeamInfo; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String url, String name, LinkPermissions linkPermissions) { + return new Builder(url, name, linkPermissions); + } + + /** + * Builder for {@link FolderLinkMetadata}. + */ + public static class Builder extends SharedLinkMetadata.Builder { + + protected Builder(String url, String name, LinkPermissions linkPermissions) { + super(url, name, linkPermissions); + } + + /** + * Set value for optional field. + * + * @param id A unique identifier for the linked file. Must have length + * of at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withId(String id) { + super.withId(id); + return this; + } + + /** + * Set value for optional field. + * + * @param expires Expiration time, if set. By default the link won't + * expire. + * + * @return this builder + */ + public Builder withExpires(Date expires) { + super.withExpires(expires); + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lowercased full path in the user's Dropbox. + * This always starts with a slash. This field will only be present + * only if the linked file is in the authenticated user's dropbox. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + super.withPathLower(pathLower); + return this; + } + + /** + * Set value for optional field. + * + * @param teamMemberInfo The team membership information of the link's + * owner. This field will only be present if the link's owner is a + * team member. + * + * @return this builder + */ + public Builder withTeamMemberInfo(TeamMemberInfo teamMemberInfo) { + super.withTeamMemberInfo(teamMemberInfo); + return this; + } + + /** + * Set value for optional field. + * + * @param contentOwnerTeamInfo The team information of the content's + * owner. This field will only be present if the content's owner is + * a team member and the content's owner team is different from the + * link's owner team. + * + * @return this builder + */ + public Builder withContentOwnerTeamInfo(Team contentOwnerTeamInfo) { + super.withContentOwnerTeamInfo(contentOwnerTeamInfo); + return this; + } + + /** + * Builds an instance of {@link FolderLinkMetadata} configured with this + * builder's values + * + * @return new instance of {@link FolderLinkMetadata} + */ + public FolderLinkMetadata build() { + return new FolderLinkMetadata(url, name, linkPermissions, id, expires, pathLower, teamMemberInfo, contentOwnerTeamInfo); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderLinkMetadata other = (FolderLinkMetadata) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.linkPermissions == other.linkPermissions) || (this.linkPermissions.equals(other.linkPermissions))) + && ((this.id == other.id) || (this.id != null && this.id.equals(other.id))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.teamMemberInfo == other.teamMemberInfo) || (this.teamMemberInfo != null && this.teamMemberInfo.equals(other.teamMemberInfo))) + && ((this.contentOwnerTeamInfo == other.contentOwnerTeamInfo) || (this.contentOwnerTeamInfo != null && this.contentOwnerTeamInfo.equals(other.contentOwnerTeamInfo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("folder", g); + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("link_permissions"); + LinkPermissions.Serializer.INSTANCE.serialize(value.linkPermissions, g); + if (value.id != null) { + g.writeFieldName("id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.id, g); + } + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.teamMemberInfo != null) { + g.writeFieldName("team_member_info"); + StoneSerializers.nullableStruct(TeamMemberInfo.Serializer.INSTANCE).serialize(value.teamMemberInfo, g); + } + if (value.contentOwnerTeamInfo != null) { + g.writeFieldName("content_owner_team_info"); + StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).serialize(value.contentOwnerTeamInfo, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("folder".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_url = null; + String f_name = null; + LinkPermissions f_linkPermissions = null; + String f_id = null; + Date f_expires = null; + String f_pathLower = null; + TeamMemberInfo f_teamMemberInfo = null; + Team f_contentOwnerTeamInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("link_permissions".equals(field)) { + f_linkPermissions = LinkPermissions.Serializer.INSTANCE.deserialize(p); + } + else if ("id".equals(field)) { + f_id = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team_member_info".equals(field)) { + f_teamMemberInfo = StoneSerializers.nullableStruct(TeamMemberInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("content_owner_team_info".equals(field)) { + f_contentOwnerTeamInfo = StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_linkPermissions == null) { + throw new JsonParseException(p, "Required field \"link_permissions\" missing."); + } + value = new FolderLinkMetadata(f_url, f_name, f_linkPermissions, f_id, f_expires, f_pathLower, f_teamMemberInfo, f_contentOwnerTeamInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderPermission.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderPermission.java new file mode 100644 index 000000000..f94fdec5f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderPermission.java @@ -0,0 +1,219 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Whether the user is allowed to take the action on the shared folder. + */ +public class FolderPermission { + // struct sharing.FolderPermission (sharing_folders.stone) + + @Nonnull + protected final FolderAction action; + protected final boolean allow; + @Nullable + protected final PermissionDeniedReason reason; + + /** + * Whether the user is allowed to take the action on the shared folder. + * + * @param action The action that the user may wish to take on the folder. + * Must not be {@code null}. + * @param allow True if the user is allowed to take the action. + * @param reason The reason why the user is denied the permission. Not + * present if the action is allowed, or if no reason is available. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderPermission(@Nonnull FolderAction action, boolean allow, @Nullable PermissionDeniedReason reason) { + if (action == null) { + throw new IllegalArgumentException("Required value for 'action' is null"); + } + this.action = action; + this.allow = allow; + this.reason = reason; + } + + /** + * Whether the user is allowed to take the action on the shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param action The action that the user may wish to take on the folder. + * Must not be {@code null}. + * @param allow True if the user is allowed to take the action. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderPermission(@Nonnull FolderAction action, boolean allow) { + this(action, allow, null); + } + + /** + * The action that the user may wish to take on the folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderAction getAction() { + return action; + } + + /** + * True if the user is allowed to take the action. + * + * @return value for this field. + */ + public boolean getAllow() { + return allow; + } + + /** + * The reason why the user is denied the permission. Not present if the + * action is allowed, or if no reason is available. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PermissionDeniedReason getReason() { + return reason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.action, + this.allow, + this.reason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderPermission other = (FolderPermission) obj; + return ((this.action == other.action) || (this.action.equals(other.action))) + && (this.allow == other.allow) + && ((this.reason == other.reason) || (this.reason != null && this.reason.equals(other.reason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderPermission value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("action"); + FolderAction.Serializer.INSTANCE.serialize(value.action, g); + g.writeFieldName("allow"); + StoneSerializers.boolean_().serialize(value.allow, g); + if (value.reason != null) { + g.writeFieldName("reason"); + StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).serialize(value.reason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderPermission deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderPermission value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FolderAction f_action = null; + Boolean f_allow = null; + PermissionDeniedReason f_reason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("action".equals(field)) { + f_action = FolderAction.Serializer.INSTANCE.deserialize(p); + } + else if ("allow".equals(field)) { + f_allow = StoneSerializers.boolean_().deserialize(p); + } + else if ("reason".equals(field)) { + f_reason = StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_action == null) { + throw new JsonParseException(p, "Required field \"action\" missing."); + } + if (f_allow == null) { + throw new JsonParseException(p, "Required field \"allow\" missing."); + } + value = new FolderPermission(f_action, f_allow, f_reason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderPolicy.java new file mode 100644 index 000000000..37ffaed00 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/FolderPolicy.java @@ -0,0 +1,387 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * A set of policies governing membership and privileges for a shared folder. + */ +public class FolderPolicy { + // struct sharing.FolderPolicy (sharing_folders.stone) + + @Nullable + protected final MemberPolicy memberPolicy; + @Nullable + protected final MemberPolicy resolvedMemberPolicy; + @Nonnull + protected final AclUpdatePolicy aclUpdatePolicy; + @Nonnull + protected final SharedLinkPolicy sharedLinkPolicy; + @Nullable + protected final ViewerInfoPolicy viewerInfoPolicy; + + /** + * A set of policies governing membership and privileges for a shared + * folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param aclUpdatePolicy Who can add and remove members from this shared + * folder. Must not be {@code null}. + * @param sharedLinkPolicy Who links can be shared with. Must not be {@code + * null}. + * @param memberPolicy Who can be a member of this shared folder, as set on + * the folder itself. The effective policy may differ from this value if + * the team-wide policy is more restrictive. Present only if the folder + * is owned by a team. + * @param resolvedMemberPolicy Who can be a member of this shared folder, + * taking into account both the folder and the team-wide policy. This + * value may differ from that of member_policy if the team-wide policy + * is more restrictive than the folder policy. Present only if the + * folder is owned by a team. + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderPolicy(@Nonnull AclUpdatePolicy aclUpdatePolicy, @Nonnull SharedLinkPolicy sharedLinkPolicy, @Nullable MemberPolicy memberPolicy, @Nullable MemberPolicy resolvedMemberPolicy, @Nullable ViewerInfoPolicy viewerInfoPolicy) { + this.memberPolicy = memberPolicy; + this.resolvedMemberPolicy = resolvedMemberPolicy; + if (aclUpdatePolicy == null) { + throw new IllegalArgumentException("Required value for 'aclUpdatePolicy' is null"); + } + this.aclUpdatePolicy = aclUpdatePolicy; + if (sharedLinkPolicy == null) { + throw new IllegalArgumentException("Required value for 'sharedLinkPolicy' is null"); + } + this.sharedLinkPolicy = sharedLinkPolicy; + this.viewerInfoPolicy = viewerInfoPolicy; + } + + /** + * A set of policies governing membership and privileges for a shared + * folder. + * + *

The default values for unset fields will be used.

+ * + * @param aclUpdatePolicy Who can add and remove members from this shared + * folder. Must not be {@code null}. + * @param sharedLinkPolicy Who links can be shared with. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderPolicy(@Nonnull AclUpdatePolicy aclUpdatePolicy, @Nonnull SharedLinkPolicy sharedLinkPolicy) { + this(aclUpdatePolicy, sharedLinkPolicy, null, null, null); + } + + /** + * Who can add and remove members from this shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AclUpdatePolicy getAclUpdatePolicy() { + return aclUpdatePolicy; + } + + /** + * Who links can be shared with. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedLinkPolicy getSharedLinkPolicy() { + return sharedLinkPolicy; + } + + /** + * Who can be a member of this shared folder, as set on the folder itself. + * The effective policy may differ from this value if the team-wide policy + * is more restrictive. Present only if the folder is owned by a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberPolicy getMemberPolicy() { + return memberPolicy; + } + + /** + * Who can be a member of this shared folder, taking into account both the + * folder and the team-wide policy. This value may differ from that of + * member_policy if the team-wide policy is more restrictive than the folder + * policy. Present only if the folder is owned by a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberPolicy getResolvedMemberPolicy() { + return resolvedMemberPolicy; + } + + /** + * Who can enable/disable viewer info for this shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ViewerInfoPolicy getViewerInfoPolicy() { + return viewerInfoPolicy; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param aclUpdatePolicy Who can add and remove members from this shared + * folder. Must not be {@code null}. + * @param sharedLinkPolicy Who links can be shared with. Must not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy) { + return new Builder(aclUpdatePolicy, sharedLinkPolicy); + } + + /** + * Builder for {@link FolderPolicy}. + */ + public static class Builder { + protected final AclUpdatePolicy aclUpdatePolicy; + protected final SharedLinkPolicy sharedLinkPolicy; + + protected MemberPolicy memberPolicy; + protected MemberPolicy resolvedMemberPolicy; + protected ViewerInfoPolicy viewerInfoPolicy; + + protected Builder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy) { + if (aclUpdatePolicy == null) { + throw new IllegalArgumentException("Required value for 'aclUpdatePolicy' is null"); + } + this.aclUpdatePolicy = aclUpdatePolicy; + if (sharedLinkPolicy == null) { + throw new IllegalArgumentException("Required value for 'sharedLinkPolicy' is null"); + } + this.sharedLinkPolicy = sharedLinkPolicy; + this.memberPolicy = null; + this.resolvedMemberPolicy = null; + this.viewerInfoPolicy = null; + } + + /** + * Set value for optional field. + * + * @param memberPolicy Who can be a member of this shared folder, as + * set on the folder itself. The effective policy may differ from + * this value if the team-wide policy is more restrictive. Present + * only if the folder is owned by a team. + * + * @return this builder + */ + public Builder withMemberPolicy(MemberPolicy memberPolicy) { + this.memberPolicy = memberPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param resolvedMemberPolicy Who can be a member of this shared + * folder, taking into account both the folder and the team-wide + * policy. This value may differ from that of member_policy if the + * team-wide policy is more restrictive than the folder policy. + * Present only if the folder is owned by a team. + * + * @return this builder + */ + public Builder withResolvedMemberPolicy(MemberPolicy resolvedMemberPolicy) { + this.resolvedMemberPolicy = resolvedMemberPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * + * @return this builder + */ + public Builder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) { + this.viewerInfoPolicy = viewerInfoPolicy; + return this; + } + + /** + * Builds an instance of {@link FolderPolicy} configured with this + * builder's values + * + * @return new instance of {@link FolderPolicy} + */ + public FolderPolicy build() { + return new FolderPolicy(aclUpdatePolicy, sharedLinkPolicy, memberPolicy, resolvedMemberPolicy, viewerInfoPolicy); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.memberPolicy, + this.resolvedMemberPolicy, + this.aclUpdatePolicy, + this.sharedLinkPolicy, + this.viewerInfoPolicy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderPolicy other = (FolderPolicy) obj; + return ((this.aclUpdatePolicy == other.aclUpdatePolicy) || (this.aclUpdatePolicy.equals(other.aclUpdatePolicy))) + && ((this.sharedLinkPolicy == other.sharedLinkPolicy) || (this.sharedLinkPolicy.equals(other.sharedLinkPolicy))) + && ((this.memberPolicy == other.memberPolicy) || (this.memberPolicy != null && this.memberPolicy.equals(other.memberPolicy))) + && ((this.resolvedMemberPolicy == other.resolvedMemberPolicy) || (this.resolvedMemberPolicy != null && this.resolvedMemberPolicy.equals(other.resolvedMemberPolicy))) + && ((this.viewerInfoPolicy == other.viewerInfoPolicy) || (this.viewerInfoPolicy != null && this.viewerInfoPolicy.equals(other.viewerInfoPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderPolicy value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("acl_update_policy"); + AclUpdatePolicy.Serializer.INSTANCE.serialize(value.aclUpdatePolicy, g); + g.writeFieldName("shared_link_policy"); + SharedLinkPolicy.Serializer.INSTANCE.serialize(value.sharedLinkPolicy, g); + if (value.memberPolicy != null) { + g.writeFieldName("member_policy"); + StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).serialize(value.memberPolicy, g); + } + if (value.resolvedMemberPolicy != null) { + g.writeFieldName("resolved_member_policy"); + StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).serialize(value.resolvedMemberPolicy, g); + } + if (value.viewerInfoPolicy != null) { + g.writeFieldName("viewer_info_policy"); + StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).serialize(value.viewerInfoPolicy, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderPolicy deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderPolicy value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AclUpdatePolicy f_aclUpdatePolicy = null; + SharedLinkPolicy f_sharedLinkPolicy = null; + MemberPolicy f_memberPolicy = null; + MemberPolicy f_resolvedMemberPolicy = null; + ViewerInfoPolicy f_viewerInfoPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("acl_update_policy".equals(field)) { + f_aclUpdatePolicy = AclUpdatePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_link_policy".equals(field)) { + f_sharedLinkPolicy = SharedLinkPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("member_policy".equals(field)) { + f_memberPolicy = StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("resolved_member_policy".equals(field)) { + f_resolvedMemberPolicy = StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("viewer_info_policy".equals(field)) { + f_viewerInfoPolicy = StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_aclUpdatePolicy == null) { + throw new JsonParseException(p, "Required field \"acl_update_policy\" missing."); + } + if (f_sharedLinkPolicy == null) { + throw new JsonParseException(p, "Required field \"shared_link_policy\" missing."); + } + value = new FolderPolicy(f_aclUpdatePolicy, f_sharedLinkPolicy, f_memberPolicy, f_resolvedMemberPolicy, f_viewerInfoPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataArg.java new file mode 100644 index 000000000..d496601e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataArg.java @@ -0,0 +1,216 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments of {@link DbxUserSharingRequests#getFileMetadata(String,List)}. + */ +class GetFileMetadataArg { + // struct sharing.GetFileMetadataArg (sharing_files.stone) + + @Nonnull + protected final String file; + @Nullable + protected final List actions; + + /** + * Arguments of {@link DbxUserSharingRequests#getFileMetadata(String,List)}. + * + * @param file The file to query. Must have length of at least 1, match + * pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and + * not be {@code null}. + * @param actions A list of `FileAction`s corresponding to + * `FilePermission`s that should appear in the response's {@link + * SharedFileMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the file. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetFileMetadataArg(@Nonnull String file, @Nullable List actions) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (actions != null) { + for (FileAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + } + + /** + * Arguments of {@link DbxUserSharingRequests#getFileMetadata(String,List)}. + * + *

The default values for unset fields will be used.

+ * + * @param file The file to query. Must have length of at least 1, match + * pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetFileMetadataArg(@Nonnull String file) { + this(file, null); + } + + /** + * The file to query. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + /** + * A list of `FileAction`s corresponding to `FilePermission`s that should + * appear in the response's {@link SharedFileMetadata#getPermissions} field + * describing the actions the authenticated user can perform on the file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file, + this.actions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetFileMetadataArg other = (GetFileMetadataArg) obj; + return ((this.file == other.file) || (this.file.equals(other.file))) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetFileMetadataArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(FileAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetFileMetadataArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetFileMetadataArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + List f_actions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(FileAction.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + value = new GetFileMetadataArg(f_file, f_actions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataBatchArg.java new file mode 100644 index 000000000..0dde411ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataBatchArg.java @@ -0,0 +1,223 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments of {@link DbxUserSharingRequests#getFileMetadataBatch(List,List)}. + */ +class GetFileMetadataBatchArg { + // struct sharing.GetFileMetadataBatchArg (sharing_files.stone) + + @Nonnull + protected final List files; + @Nullable + protected final List actions; + + /** + * Arguments of {@link + * DbxUserSharingRequests#getFileMetadataBatch(List,List)}. + * + * @param files The files to query. Must contain at most 100 items, not + * contain a {@code null} item, and not be {@code null}. + * @param actions A list of `FileAction`s corresponding to + * `FilePermission`s that should appear in the response's {@link + * SharedFileMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the file. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetFileMetadataBatchArg(@Nonnull List files, @Nullable List actions) { + if (files == null) { + throw new IllegalArgumentException("Required value for 'files' is null"); + } + if (files.size() > 100) { + throw new IllegalArgumentException("List 'files' has more than 100 items"); + } + for (String x : files) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'files' is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list 'files' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", x)) { + throw new IllegalArgumentException("Stringan item in list 'files' does not match pattern"); + } + } + this.files = files; + if (actions != null) { + for (FileAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + } + + /** + * Arguments of {@link + * DbxUserSharingRequests#getFileMetadataBatch(List,List)}. + * + *

The default values for unset fields will be used.

+ * + * @param files The files to query. Must contain at most 100 items, not + * contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetFileMetadataBatchArg(@Nonnull List files) { + this(files, null); + } + + /** + * The files to query. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFiles() { + return files; + } + + /** + * A list of `FileAction`s corresponding to `FilePermission`s that should + * appear in the response's {@link SharedFileMetadata#getPermissions} field + * describing the actions the authenticated user can perform on the file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.files, + this.actions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetFileMetadataBatchArg other = (GetFileMetadataBatchArg) obj; + return ((this.files == other.files) || (this.files.equals(other.files))) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetFileMetadataBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("files"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.files, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(FileAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetFileMetadataBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetFileMetadataBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_files = null; + List f_actions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("files".equals(field)) { + f_files = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(FileAction.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_files == null) { + throw new JsonParseException(p, "Required field \"files\" missing."); + } + value = new GetFileMetadataBatchArg(f_files, f_actions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataBatchResult.java new file mode 100644 index 000000000..132050815 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataBatchResult.java @@ -0,0 +1,197 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Per file results of {@link + * DbxUserSharingRequests#getFileMetadataBatch(java.util.List,java.util.List)}. + */ +public class GetFileMetadataBatchResult { + // struct sharing.GetFileMetadataBatchResult (sharing_files.stone) + + @Nonnull + protected final String file; + @Nonnull + protected final GetFileMetadataIndividualResult result; + + /** + * Per file results of {@link + * DbxUserSharingRequests#getFileMetadataBatch(java.util.List,java.util.List)}. + * + * @param file This is the input file identifier corresponding to one of + * the {@code files} argument to {@link + * DbxUserSharingRequests#getFileMetadataBatch(java.util.List,java.util.List)}. + * Must have length of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param result The result for this particular file. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetFileMetadataBatchResult(@Nonnull String file, @Nonnull GetFileMetadataIndividualResult result) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (result == null) { + throw new IllegalArgumentException("Required value for 'result' is null"); + } + this.result = result; + } + + /** + * This is the input file identifier corresponding to one of the {@code + * files} argument to {@link + * DbxUserSharingRequests#getFileMetadataBatch(java.util.List,java.util.List)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + /** + * The result for this particular file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GetFileMetadataIndividualResult getResult() { + return result; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file, + this.result + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetFileMetadataBatchResult other = (GetFileMetadataBatchResult) obj; + return ((this.file == other.file) || (this.file.equals(other.file))) + && ((this.result == other.result) || (this.result.equals(other.result))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetFileMetadataBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + g.writeFieldName("result"); + GetFileMetadataIndividualResult.Serializer.INSTANCE.serialize(value.result, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetFileMetadataBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetFileMetadataBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + GetFileMetadataIndividualResult f_result = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else if ("result".equals(field)) { + f_result = GetFileMetadataIndividualResult.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + if (f_result == null) { + throw new JsonParseException(p, "Required field \"result\" missing."); + } + value = new GetFileMetadataBatchResult(f_file, f_result); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataError.java new file mode 100644 index 000000000..0630f37c5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataError.java @@ -0,0 +1,367 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error result for {@link + * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetFileMetadataError { + // union sharing.GetFileMetadataError (sharing_files.stone) + + /** + * Discriminating tag type for {@link GetFileMetadataError}. + */ + public enum Tag { + USER_ERROR, // SharingUserError + ACCESS_ERROR, // SharingFileAccessError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetFileMetadataError OTHER = new GetFileMetadataError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingUserError userErrorValue; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetFileMetadataError() { + } + + + /** + * Error result for {@link + * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}. + * + * @param _tag Discriminating tag for this instance. + */ + private GetFileMetadataError withTag(Tag _tag) { + GetFileMetadataError result = new GetFileMetadataError(); + result._tag = _tag; + return result; + } + + /** + * Error result for {@link + * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}. + * + * @param userErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetFileMetadataError withTagAndUserError(Tag _tag, SharingUserError userErrorValue) { + GetFileMetadataError result = new GetFileMetadataError(); + result._tag = _tag; + result.userErrorValue = userErrorValue; + return result; + } + + /** + * Error result for {@link + * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}. + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetFileMetadataError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + GetFileMetadataError result = new GetFileMetadataError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetFileMetadataError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ERROR}, {@code false} otherwise. + */ + public boolean isUserError() { + return this._tag == Tag.USER_ERROR; + } + + /** + * Returns an instance of {@code GetFileMetadataError} that has its tag set + * to {@link Tag#USER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetFileMetadataError} with its tag set to + * {@link Tag#USER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetFileMetadataError userError(SharingUserError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetFileMetadataError().withTagAndUserError(Tag.USER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_ERROR}. + * + * @return The {@link SharingUserError} value associated with this instance + * if {@link #isUserError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserError} is {@code false}. + */ + public SharingUserError getUserErrorValue() { + if (this._tag != Tag.USER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ERROR, but was Tag." + this._tag.name()); + } + return userErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code GetFileMetadataError} that has its tag set + * to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetFileMetadataError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetFileMetadataError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetFileMetadataError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userErrorValue, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetFileMetadataError) { + GetFileMetadataError other = (GetFileMetadataError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_ERROR: + return (this.userErrorValue == other.userErrorValue) || (this.userErrorValue.equals(other.userErrorValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetFileMetadataError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_ERROR: { + g.writeStartObject(); + writeTag("user_error", g); + g.writeFieldName("user_error"); + SharingUserError.Serializer.INSTANCE.serialize(value.userErrorValue, g); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetFileMetadataError deserialize(JsonParser p) throws IOException, JsonParseException { + GetFileMetadataError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_error".equals(tag)) { + SharingUserError fieldValue = null; + expectField("user_error", p); + fieldValue = SharingUserError.Serializer.INSTANCE.deserialize(p); + value = GetFileMetadataError.userError(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = GetFileMetadataError.accessError(fieldValue); + } + else { + value = GetFileMetadataError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataErrorException.java new file mode 100644 index 000000000..71b18c65e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GetFileMetadataError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}.

+ */ +public class GetFileMetadataErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/get_file_metadata + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}. + */ + public final GetFileMetadataError errorValue; + + public GetFileMetadataErrorException(String routeName, String requestId, LocalizedText userMessage, GetFileMetadataError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataIndividualResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataIndividualResult.java new file mode 100644 index 000000000..8f4c61b86 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataIndividualResult.java @@ -0,0 +1,368 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetFileMetadataIndividualResult { + // union sharing.GetFileMetadataIndividualResult (sharing_files.stone) + + /** + * Discriminating tag type for {@link GetFileMetadataIndividualResult}. + */ + public enum Tag { + /** + * The result for this file if it was successful. + */ + METADATA, // SharedFileMetadata + /** + * The result for this file if it was an error. + */ + ACCESS_ERROR, // SharingFileAccessError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetFileMetadataIndividualResult OTHER = new GetFileMetadataIndividualResult().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFileMetadata metadataValue; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetFileMetadataIndividualResult() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetFileMetadataIndividualResult withTag(Tag _tag) { + GetFileMetadataIndividualResult result = new GetFileMetadataIndividualResult(); + result._tag = _tag; + return result; + } + + /** + * + * @param metadataValue The result for this file if it was successful. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetFileMetadataIndividualResult withTagAndMetadata(Tag _tag, SharedFileMetadata metadataValue) { + GetFileMetadataIndividualResult result = new GetFileMetadataIndividualResult(); + result._tag = _tag; + result.metadataValue = metadataValue; + return result; + } + + /** + * + * @param accessErrorValue The result for this file if it was an error. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetFileMetadataIndividualResult withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + GetFileMetadataIndividualResult result = new GetFileMetadataIndividualResult(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetFileMetadataIndividualResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#METADATA}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#METADATA}, + * {@code false} otherwise. + */ + public boolean isMetadata() { + return this._tag == Tag.METADATA; + } + + /** + * Returns an instance of {@code GetFileMetadataIndividualResult} that has + * its tag set to {@link Tag#METADATA}. + * + *

The result for this file if it was successful.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetFileMetadataIndividualResult} with its tag + * set to {@link Tag#METADATA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetFileMetadataIndividualResult metadata(SharedFileMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetFileMetadataIndividualResult().withTagAndMetadata(Tag.METADATA, value); + } + + /** + * The result for this file if it was successful. + * + *

This instance must be tagged as {@link Tag#METADATA}.

+ * + * @return The {@link SharedFileMetadata} value associated with this + * instance if {@link #isMetadata} is {@code true}. + * + * @throws IllegalStateException If {@link #isMetadata} is {@code false}. + */ + public SharedFileMetadata getMetadataValue() { + if (this._tag != Tag.METADATA) { + throw new IllegalStateException("Invalid tag: required Tag.METADATA, but was Tag." + this._tag.name()); + } + return metadataValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code GetFileMetadataIndividualResult} that has + * its tag set to {@link Tag#ACCESS_ERROR}. + * + *

The result for this file if it was an error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetFileMetadataIndividualResult} with its tag + * set to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetFileMetadataIndividualResult accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetFileMetadataIndividualResult().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * The result for this file if it was an error. + * + *

This instance must be tagged as {@link Tag#ACCESS_ERROR}.

+ * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.metadataValue, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetFileMetadataIndividualResult) { + GetFileMetadataIndividualResult other = (GetFileMetadataIndividualResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case METADATA: + return (this.metadataValue == other.metadataValue) || (this.metadataValue.equals(other.metadataValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetFileMetadataIndividualResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case METADATA: { + g.writeStartObject(); + writeTag("metadata", g); + SharedFileMetadata.Serializer.INSTANCE.serialize(value.metadataValue, g, true); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetFileMetadataIndividualResult deserialize(JsonParser p) throws IOException, JsonParseException { + GetFileMetadataIndividualResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("metadata".equals(tag)) { + SharedFileMetadata fieldValue = null; + fieldValue = SharedFileMetadata.Serializer.INSTANCE.deserialize(p, true); + value = GetFileMetadataIndividualResult.metadata(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = GetFileMetadataIndividualResult.accessError(fieldValue); + } + else { + value = GetFileMetadataIndividualResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetMetadataArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetMetadataArgs.java new file mode 100644 index 000000000..4a11b29e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetMetadataArgs.java @@ -0,0 +1,208 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class GetMetadataArgs { + // struct sharing.GetMetadataArgs (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + @Nullable + protected final List actions; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetMetadataArgs(@Nonnull String sharedFolderId, @Nullable List actions) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetMetadataArgs(@Nonnull String sharedFolderId) { + this(sharedFolderId, null); + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * A list of `FolderAction`s corresponding to `FolderPermission`s that + * should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.actions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetMetadataArgs other = (GetMetadataArgs) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetMetadataArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetMetadataArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetMetadataArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + List f_actions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new GetMetadataArgs(f_sharedFolderId, f_actions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileBuilder.java new file mode 100644 index 000000000..30d7ae33e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileBuilder.java @@ -0,0 +1,77 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#getSharedLinkFileBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class GetSharedLinkFileBuilder extends DbxDownloadStyleBuilder { + private final DbxUserSharingRequests _client; + private final GetSharedLinkMetadataArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + GetSharedLinkFileBuilder(DbxUserSharingRequests _client, GetSharedLinkMetadataArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param path If the shared link is to a folder, this parameter can be + * used to retrieve the metadata for a specific file or sub-folder in + * this folder. A relative path should be used. Must match pattern + * "{@code /(.|[\\r\\n])*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetSharedLinkFileBuilder withPath(String path) { + this._builder.withPath(path); + return this; + } + + /** + * Set value for optional field. + * + * @param linkPassword If the shared link has a password, this parameter + * can be used. + * + * @return this builder + */ + public GetSharedLinkFileBuilder withLinkPassword(String linkPassword) { + this._builder.withLinkPassword(linkPassword); + return this; + } + + @Override + public DbxDownloader start() throws GetSharedLinkFileErrorException, DbxException { + GetSharedLinkMetadataArg arg_ = this._builder.build(); + return _client.getSharedLinkFile(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileError.java new file mode 100644 index 000000000..ae5b9b495 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileError.java @@ -0,0 +1,126 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GetSharedLinkFileError { + // union sharing.GetSharedLinkFileError (shared_links.stone) + /** + * The shared link wasn't found. + */ + SHARED_LINK_NOT_FOUND, + /** + * The caller is not allowed to access this shared link. + */ + SHARED_LINK_ACCESS_DENIED, + /** + * This type of link is not supported; use {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#export(String,String)} + * instead. + */ + UNSUPPORTED_LINK_TYPE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Directories cannot be retrieved by this endpoint. + */ + SHARED_LINK_IS_DIRECTORY; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetSharedLinkFileError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case SHARED_LINK_NOT_FOUND: { + g.writeString("shared_link_not_found"); + break; + } + case SHARED_LINK_ACCESS_DENIED: { + g.writeString("shared_link_access_denied"); + break; + } + case UNSUPPORTED_LINK_TYPE: { + g.writeString("unsupported_link_type"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SHARED_LINK_IS_DIRECTORY: { + g.writeString("shared_link_is_directory"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GetSharedLinkFileError deserialize(JsonParser p) throws IOException, JsonParseException { + GetSharedLinkFileError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("shared_link_not_found".equals(tag)) { + value = GetSharedLinkFileError.SHARED_LINK_NOT_FOUND; + } + else if ("shared_link_access_denied".equals(tag)) { + value = GetSharedLinkFileError.SHARED_LINK_ACCESS_DENIED; + } + else if ("unsupported_link_type".equals(tag)) { + value = GetSharedLinkFileError.UNSUPPORTED_LINK_TYPE; + } + else if ("other".equals(tag)) { + value = GetSharedLinkFileError.OTHER; + } + else if ("shared_link_is_directory".equals(tag)) { + value = GetSharedLinkFileError.SHARED_LINK_IS_DIRECTORY; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileErrorException.java new file mode 100644 index 000000000..86a288ad8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GetSharedLinkFileError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#getSharedLinkFile(String)}.

+ */ +public class GetSharedLinkFileErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/get_shared_link_file + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#getSharedLinkFile(String)}. + */ + public final GetSharedLinkFileError errorValue; + + public GetSharedLinkFileErrorException(String routeName, String requestId, LocalizedText userMessage, GetSharedLinkFileError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkMetadataArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkMetadataArg.java new file mode 100644 index 000000000..6f3e7ac7c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkMetadataArg.java @@ -0,0 +1,303 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class GetSharedLinkMetadataArg { + // struct sharing.GetSharedLinkMetadataArg (shared_links.stone) + + @Nonnull + protected final String url; + @Nullable + protected final String path; + @Nullable + protected final String linkPassword; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param path If the shared link is to a folder, this parameter can be + * used to retrieve the metadata for a specific file or sub-folder in + * this folder. A relative path should be used. Must match pattern + * "{@code /(.|[\\r\\n])*}". + * @param linkPassword If the shared link has a password, this parameter + * can be used. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetSharedLinkMetadataArg(@Nonnull String url, @Nullable String path, @Nullable String linkPassword) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (path != null) { + if (!java.util.regex.Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + } + this.path = path; + this.linkPassword = linkPassword; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetSharedLinkMetadataArg(@Nonnull String url) { + this(url, null, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * If the shared link is to a folder, this parameter can be used to retrieve + * the metadata for a specific file or sub-folder in this folder. A relative + * path should be used. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPath() { + return path; + } + + /** + * If the shared link has a password, this parameter can be used. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLinkPassword() { + return linkPassword; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String url) { + return new Builder(url); + } + + /** + * Builder for {@link GetSharedLinkMetadataArg}. + */ + public static class Builder { + protected final String url; + + protected String path; + protected String linkPassword; + + protected Builder(String url) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + this.path = null; + this.linkPassword = null; + } + + /** + * Set value for optional field. + * + * @param path If the shared link is to a folder, this parameter can be + * used to retrieve the metadata for a specific file or sub-folder + * in this folder. A relative path should be used. Must match + * pattern "{@code /(.|[\\r\\n])*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPath(String path) { + if (path != null) { + if (!java.util.regex.Pattern.matches("/(.|[\\r\\n])*", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + } + this.path = path; + return this; + } + + /** + * Set value for optional field. + * + * @param linkPassword If the shared link has a password, this + * parameter can be used. + * + * @return this builder + */ + public Builder withLinkPassword(String linkPassword) { + this.linkPassword = linkPassword; + return this; + } + + /** + * Builds an instance of {@link GetSharedLinkMetadataArg} configured + * with this builder's values + * + * @return new instance of {@link GetSharedLinkMetadataArg} + */ + public GetSharedLinkMetadataArg build() { + return new GetSharedLinkMetadataArg(url, path, linkPassword); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.path, + this.linkPassword + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetSharedLinkMetadataArg other = (GetSharedLinkMetadataArg) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.path == other.path) || (this.path != null && this.path.equals(other.path))) + && ((this.linkPassword == other.linkPassword) || (this.linkPassword != null && this.linkPassword.equals(other.linkPassword))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetSharedLinkMetadataArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + if (value.path != null) { + g.writeFieldName("path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.path, g); + } + if (value.linkPassword != null) { + g.writeFieldName("link_password"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.linkPassword, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetSharedLinkMetadataArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetSharedLinkMetadataArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_url = null; + String f_path = null; + String f_linkPassword = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("path".equals(field)) { + f_path = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("link_password".equals(field)) { + f_linkPassword = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + value = new GetSharedLinkMetadataArg(f_url, f_path, f_linkPassword); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksArg.java new file mode 100644 index 000000000..2873872e5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksArg.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class GetSharedLinksArg { + // struct sharing.GetSharedLinksArg (shared_links.stone) + + @Nullable + protected final String path; + + /** + * + * @param path See {@link DbxUserSharingRequests#getSharedLinks(String)} + * description. + */ + public GetSharedLinksArg(@Nullable String path) { + this.path = path; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public GetSharedLinksArg() { + this(null); + } + + /** + * See {@link DbxUserSharingRequests#getSharedLinks(String)} description. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetSharedLinksArg other = (GetSharedLinksArg) obj; + return (this.path == other.path) || (this.path != null && this.path.equals(other.path)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetSharedLinksArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.path != null) { + g.writeFieldName("path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.path, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetSharedLinksArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetSharedLinksArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new GetSharedLinksArg(f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksError.java new file mode 100644 index 000000000..48a5457e5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksError.java @@ -0,0 +1,288 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetSharedLinksError { + // union sharing.GetSharedLinksError (shared_links.stone) + + /** + * Discriminating tag type for {@link GetSharedLinksError}. + */ + public enum Tag { + PATH, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetSharedLinksError OTHER = new GetSharedLinksError().withTag(Tag.OTHER); + + private Tag _tag; + private String pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetSharedLinksError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetSharedLinksError withTag(Tag _tag) { + GetSharedLinksError result = new GetSharedLinksError(); + result._tag = _tag; + return result; + } + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetSharedLinksError withTagAndPath(Tag _tag, String pathValue) { + GetSharedLinksError result = new GetSharedLinksError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetSharedLinksError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code GetSharedLinksError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetSharedLinksError} with its tag set to + * {@link Tag#PATH}. + */ + public static GetSharedLinksError path(String value) { + return new GetSharedLinksError().withTagAndPath(Tag.PATH, value); + } + + /** + * Returns an instance of {@code GetSharedLinksError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @return Instance of {@code GetSharedLinksError} with its tag set to + * {@link Tag#PATH}. + */ + public static GetSharedLinksError path() { + return path(null); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link String} value associated with this instance if {@link + * #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public String getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetSharedLinksError) { + GetSharedLinksError other = (GetSharedLinksError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue != null && this.pathValue.equals(other.pathValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetSharedLinksError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetSharedLinksError deserialize(JsonParser p) throws IOException, JsonParseException { + GetSharedLinksError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + String fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + expectField("path", p); + fieldValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + if (fieldValue == null) { + value = GetSharedLinksError.path(); + } + else { + value = GetSharedLinksError.path(fieldValue); + } + } + else { + value = GetSharedLinksError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksErrorException.java new file mode 100644 index 000000000..81006510c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GetSharedLinksError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#getSharedLinks(String)}.

+ */ +public class GetSharedLinksErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/get_shared_links + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#getSharedLinks(String)}. + */ + public final GetSharedLinksError errorValue; + + public GetSharedLinksErrorException(String routeName, String requestId, LocalizedText userMessage, GetSharedLinksError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksResult.java new file mode 100644 index 000000000..bd52a0a77 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksResult.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GetSharedLinksResult { + // struct sharing.GetSharedLinksResult (shared_links.stone) + + @Nonnull + protected final List links; + + /** + * + * @param links Shared links applicable to the path argument. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetSharedLinksResult(@Nonnull List links) { + if (links == null) { + throw new IllegalArgumentException("Required value for 'links' is null"); + } + for (LinkMetadata x : links) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'links' is null"); + } + } + this.links = links; + } + + /** + * Shared links applicable to the path argument. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinks() { + return links; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.links + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetSharedLinksResult other = (GetSharedLinksResult) obj; + return (this.links == other.links) || (this.links.equals(other.links)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetSharedLinksResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("links"); + StoneSerializers.list(LinkMetadata.Serializer.INSTANCE).serialize(value.links, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetSharedLinksResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetSharedLinksResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_links = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("links".equals(field)) { + f_links = StoneSerializers.list(LinkMetadata.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_links == null) { + throw new JsonParseException(p, "Required field \"links\" missing."); + } + value = new GetSharedLinksResult(f_links); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GroupInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GroupInfo.java new file mode 100644 index 000000000..5ca6f1f07 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GroupInfo.java @@ -0,0 +1,435 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.GroupManagementType; +import com.dropbox.core.v2.teamcommon.GroupSummary; +import com.dropbox.core.v2.teamcommon.GroupType; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The information about a group. Groups is a way to manage a list of users who + * need same access permission to the shared folder. + */ +public class GroupInfo extends GroupSummary { + // struct sharing.GroupInfo (sharing_folders.stone) + + @Nonnull + protected final GroupType groupType; + protected final boolean isMember; + protected final boolean isOwner; + protected final boolean sameTeam; + + /** + * The information about a group. Groups is a way to manage a list of users + * who need same access permission to the shared folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * @param groupType The type of group. Must not be {@code null}. + * @param isMember If the current user is a member of the group. + * @param isOwner If the current user is an owner of the group. + * @param sameTeam If the group is owned by the current user's team. + * @param groupExternalId External ID of group. This is an arbitrary ID + * that an admin can attach to a group. + * @param memberCount The number of members in the group. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, @Nonnull GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam, @Nullable String groupExternalId, @Nullable Long memberCount) { + super(groupName, groupId, groupManagementType, groupExternalId, memberCount); + if (groupType == null) { + throw new IllegalArgumentException("Required value for 'groupType' is null"); + } + this.groupType = groupType; + this.isMember = isMember; + this.isOwner = isOwner; + this.sameTeam = sameTeam; + } + + /** + * The information about a group. Groups is a way to manage a list of users + * who need same access permission to the shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * @param groupType The type of group. Must not be {@code null}. + * @param isMember If the current user is a member of the group. + * @param isOwner If the current user is an owner of the group. + * @param sameTeam If the group is owned by the current user's team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, @Nonnull GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) { + this(groupName, groupId, groupManagementType, groupType, isMember, isOwner, sameTeam, null, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGroupName() { + return groupName; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGroupId() { + return groupId; + } + + /** + * Who is allowed to manage the group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupManagementType getGroupManagementType() { + return groupManagementType; + } + + /** + * The type of group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupType getGroupType() { + return groupType; + } + + /** + * If the current user is a member of the group. + * + * @return value for this field. + */ + public boolean getIsMember() { + return isMember; + } + + /** + * If the current user is an owner of the group. + * + * @return value for this field. + */ + public boolean getIsOwner() { + return isOwner; + } + + /** + * If the group is owned by the current user's team. + * + * @return value for this field. + */ + public boolean getSameTeam() { + return sameTeam; + } + + /** + * External ID of group. This is an arbitrary ID that an admin can attach to + * a group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getGroupExternalId() { + return groupExternalId; + } + + /** + * The number of members in the group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getMemberCount() { + return memberCount; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * @param groupType The type of group. Must not be {@code null}. + * @param isMember If the current user is a member of the group. + * @param isOwner If the current user is an owner of the group. + * @param sameTeam If the group is owned by the current user's team. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) { + return new Builder(groupName, groupId, groupManagementType, groupType, isMember, isOwner, sameTeam); + } + + /** + * Builder for {@link GroupInfo}. + */ + public static class Builder extends GroupSummary.Builder { + protected final GroupType groupType; + protected final boolean isMember; + protected final boolean isOwner; + protected final boolean sameTeam; + + protected Builder(String groupName, String groupId, GroupManagementType groupManagementType, GroupType groupType, boolean isMember, boolean isOwner, boolean sameTeam) { + super(groupName, groupId, groupManagementType); + if (groupType == null) { + throw new IllegalArgumentException("Required value for 'groupType' is null"); + } + this.groupType = groupType; + this.isMember = isMember; + this.isOwner = isOwner; + this.sameTeam = sameTeam; + } + + /** + * Set value for optional field. + * + * @param groupExternalId External ID of group. This is an arbitrary ID + * that an admin can attach to a group. + * + * @return this builder + */ + public Builder withGroupExternalId(String groupExternalId) { + super.withGroupExternalId(groupExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param memberCount The number of members in the group. + * + * @return this builder + */ + public Builder withMemberCount(Long memberCount) { + super.withMemberCount(memberCount); + return this; + } + + /** + * Builds an instance of {@link GroupInfo} configured with this + * builder's values + * + * @return new instance of {@link GroupInfo} + */ + public GroupInfo build() { + return new GroupInfo(groupName, groupId, groupManagementType, groupType, isMember, isOwner, sameTeam, groupExternalId, memberCount); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.groupType, + this.isMember, + this.isOwner, + this.sameTeam + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupInfo other = (GroupInfo) obj; + return ((this.groupName == other.groupName) || (this.groupName.equals(other.groupName))) + && ((this.groupId == other.groupId) || (this.groupId.equals(other.groupId))) + && ((this.groupManagementType == other.groupManagementType) || (this.groupManagementType.equals(other.groupManagementType))) + && ((this.groupType == other.groupType) || (this.groupType.equals(other.groupType))) + && (this.isMember == other.isMember) + && (this.isOwner == other.isOwner) + && (this.sameTeam == other.sameTeam) + && ((this.groupExternalId == other.groupExternalId) || (this.groupExternalId != null && this.groupExternalId.equals(other.groupExternalId))) + && ((this.memberCount == other.memberCount) || (this.memberCount != null && this.memberCount.equals(other.memberCount))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group_name"); + StoneSerializers.string().serialize(value.groupName, g); + g.writeFieldName("group_id"); + StoneSerializers.string().serialize(value.groupId, g); + g.writeFieldName("group_management_type"); + GroupManagementType.Serializer.INSTANCE.serialize(value.groupManagementType, g); + g.writeFieldName("group_type"); + GroupType.Serializer.INSTANCE.serialize(value.groupType, g); + g.writeFieldName("is_member"); + StoneSerializers.boolean_().serialize(value.isMember, g); + g.writeFieldName("is_owner"); + StoneSerializers.boolean_().serialize(value.isOwner, g); + g.writeFieldName("same_team"); + StoneSerializers.boolean_().serialize(value.sameTeam, g); + if (value.groupExternalId != null) { + g.writeFieldName("group_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.groupExternalId, g); + } + if (value.memberCount != null) { + g.writeFieldName("member_count"); + StoneSerializers.nullable(StoneSerializers.uInt32()).serialize(value.memberCount, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_groupName = null; + String f_groupId = null; + GroupManagementType f_groupManagementType = null; + GroupType f_groupType = null; + Boolean f_isMember = null; + Boolean f_isOwner = null; + Boolean f_sameTeam = null; + String f_groupExternalId = null; + Long f_memberCount = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group_name".equals(field)) { + f_groupName = StoneSerializers.string().deserialize(p); + } + else if ("group_id".equals(field)) { + f_groupId = StoneSerializers.string().deserialize(p); + } + else if ("group_management_type".equals(field)) { + f_groupManagementType = GroupManagementType.Serializer.INSTANCE.deserialize(p); + } + else if ("group_type".equals(field)) { + f_groupType = GroupType.Serializer.INSTANCE.deserialize(p); + } + else if ("is_member".equals(field)) { + f_isMember = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_owner".equals(field)) { + f_isOwner = StoneSerializers.boolean_().deserialize(p); + } + else if ("same_team".equals(field)) { + f_sameTeam = StoneSerializers.boolean_().deserialize(p); + } + else if ("group_external_id".equals(field)) { + f_groupExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_count".equals(field)) { + f_memberCount = StoneSerializers.nullable(StoneSerializers.uInt32()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_groupName == null) { + throw new JsonParseException(p, "Required field \"group_name\" missing."); + } + if (f_groupId == null) { + throw new JsonParseException(p, "Required field \"group_id\" missing."); + } + if (f_groupManagementType == null) { + throw new JsonParseException(p, "Required field \"group_management_type\" missing."); + } + if (f_groupType == null) { + throw new JsonParseException(p, "Required field \"group_type\" missing."); + } + if (f_isMember == null) { + throw new JsonParseException(p, "Required field \"is_member\" missing."); + } + if (f_isOwner == null) { + throw new JsonParseException(p, "Required field \"is_owner\" missing."); + } + if (f_sameTeam == null) { + throw new JsonParseException(p, "Required field \"same_team\" missing."); + } + value = new GroupInfo(f_groupName, f_groupId, f_groupManagementType, f_groupType, f_isMember, f_isOwner, f_sameTeam, f_groupExternalId, f_memberCount); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GroupMembershipInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GroupMembershipInfo.java new file mode 100644 index 000000000..d26e52eb6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GroupMembershipInfo.java @@ -0,0 +1,351 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The information about a group member of the shared content. + */ +public class GroupMembershipInfo extends MembershipInfo { + // struct sharing.GroupMembershipInfo (sharing_folders.stone) + + @Nonnull + protected final GroupInfo group; + + /** + * The information about a group member of the shared content. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param group The information about the membership group. Must not be + * {@code null}. + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions in + * the request. Must not contain a {@code null} item. + * @param initials Never set. + * @param isInherited True if the member has access from a parent folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull GroupInfo group, @Nullable List permissions, @Nullable String initials, boolean isInherited) { + super(accessType, permissions, initials, isInherited); + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + } + + /** + * The information about a group member of the shared content. + * + *

The default values for unset fields will be used.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param group The information about the membership group. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull GroupInfo group) { + this(accessType, group, null, null, false); + } + + /** + * The access type for this member. It contains inherited access type from + * parent folder, and acquired access type from this folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessType() { + return accessType; + } + + /** + * The information about the membership group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupInfo getGroup() { + return group; + } + + /** + * The permissions that requesting user has on this member. The set of + * permissions corresponds to the MemberActions in the request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPermissions() { + return permissions; + } + + /** + * Never set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getInitials() { + return initials; + } + + /** + * True if the member has access from a parent folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIsInherited() { + return isInherited; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param group The information about the membership group. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel accessType, GroupInfo group) { + return new Builder(accessType, group); + } + + /** + * Builder for {@link GroupMembershipInfo}. + */ + public static class Builder extends MembershipInfo.Builder { + protected final GroupInfo group; + + protected Builder(AccessLevel accessType, GroupInfo group) { + super(accessType); + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + } + + /** + * Set value for optional field. + * + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions + * in the request. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPermissions(List permissions) { + super.withPermissions(permissions); + return this; + } + + /** + * Set value for optional field. + * + * @param initials Never set. + * + * @return this builder + */ + public Builder withInitials(String initials) { + super.withInitials(initials); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param isInherited True if the member has access from a parent + * folder. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIsInherited(Boolean isInherited) { + super.withIsInherited(isInherited); + return this; + } + + /** + * Builds an instance of {@link GroupMembershipInfo} configured with + * this builder's values + * + * @return new instance of {@link GroupMembershipInfo} + */ + public GroupMembershipInfo build() { + return new GroupMembershipInfo(accessType, group, permissions, initials, isInherited); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.group + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMembershipInfo other = (GroupMembershipInfo) obj; + return ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && ((this.group == other.group) || (this.group.equals(other.group))) + && ((this.permissions == other.permissions) || (this.permissions != null && this.permissions.equals(other.permissions))) + && ((this.initials == other.initials) || (this.initials != null && this.initials.equals(other.initials))) + && (this.isInherited == other.isInherited) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMembershipInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_type"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessType, g); + g.writeFieldName("group"); + GroupInfo.Serializer.INSTANCE.serialize(value.group, g); + if (value.permissions != null) { + g.writeFieldName("permissions"); + StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).serialize(value.permissions, g); + } + if (value.initials != null) { + g.writeFieldName("initials"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.initials, g); + } + g.writeFieldName("is_inherited"); + StoneSerializers.boolean_().serialize(value.isInherited, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMembershipInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMembershipInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessType = null; + GroupInfo f_group = null; + List f_permissions = null; + String f_initials = null; + Boolean f_isInherited = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_type".equals(field)) { + f_accessType = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("group".equals(field)) { + f_group = GroupInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).deserialize(p); + } + else if ("initials".equals(field)) { + f_initials = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_inherited".equals(field)) { + f_isInherited = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + if (f_group == null) { + throw new JsonParseException(p, "Required field \"group\" missing."); + } + value = new GroupMembershipInfo(f_accessType, f_group, f_permissions, f_initials, f_isInherited); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InsufficientPlan.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InsufficientPlan.java new file mode 100644 index 000000000..63b92fae0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InsufficientPlan.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class InsufficientPlan { + // struct sharing.InsufficientPlan (sharing_folders.stone) + + @Nonnull + protected final String message; + @Nullable + protected final String upsellUrl; + + /** + * + * @param message A message to tell the user to upgrade in order to support + * expected action. Must not be {@code null}. + * @param upsellUrl A URL to send the user to in order to obtain the + * account type they need, e.g. upgrading. Absent if there is no action + * the user can take to upgrade. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public InsufficientPlan(@Nonnull String message, @Nullable String upsellUrl) { + if (message == null) { + throw new IllegalArgumentException("Required value for 'message' is null"); + } + this.message = message; + this.upsellUrl = upsellUrl; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param message A message to tell the user to upgrade in order to support + * expected action. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public InsufficientPlan(@Nonnull String message) { + this(message, null); + } + + /** + * A message to tell the user to upgrade in order to support expected + * action. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getMessage() { + return message; + } + + /** + * A URL to send the user to in order to obtain the account type they need, + * e.g. upgrading. Absent if there is no action the user can take to + * upgrade. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getUpsellUrl() { + return upsellUrl; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.message, + this.upsellUrl + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + InsufficientPlan other = (InsufficientPlan) obj; + return ((this.message == other.message) || (this.message.equals(other.message))) + && ((this.upsellUrl == other.upsellUrl) || (this.upsellUrl != null && this.upsellUrl.equals(other.upsellUrl))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InsufficientPlan value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("message"); + StoneSerializers.string().serialize(value.message, g); + if (value.upsellUrl != null) { + g.writeFieldName("upsell_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.upsellUrl, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public InsufficientPlan deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + InsufficientPlan value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_message = null; + String f_upsellUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("message".equals(field)) { + f_message = StoneSerializers.string().deserialize(p); + } + else if ("upsell_url".equals(field)) { + f_upsellUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_message == null) { + throw new JsonParseException(p, "Required field \"message\" missing."); + } + value = new InsufficientPlan(f_message, f_upsellUrl); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InsufficientQuotaAmounts.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InsufficientQuotaAmounts.java new file mode 100644 index 000000000..7fef1891b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InsufficientQuotaAmounts.java @@ -0,0 +1,186 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class InsufficientQuotaAmounts { + // struct sharing.InsufficientQuotaAmounts (sharing_folders.stone) + + protected final long spaceNeeded; + protected final long spaceShortage; + protected final long spaceLeft; + + /** + * + * @param spaceNeeded The amount of space needed to add the item (the size + * of the item). + * @param spaceShortage The amount of extra space needed to add the item. + * @param spaceLeft The amount of space left in the user's Dropbox, less + * than space_needed. + */ + public InsufficientQuotaAmounts(long spaceNeeded, long spaceShortage, long spaceLeft) { + this.spaceNeeded = spaceNeeded; + this.spaceShortage = spaceShortage; + this.spaceLeft = spaceLeft; + } + + /** + * The amount of space needed to add the item (the size of the item). + * + * @return value for this field. + */ + public long getSpaceNeeded() { + return spaceNeeded; + } + + /** + * The amount of extra space needed to add the item. + * + * @return value for this field. + */ + public long getSpaceShortage() { + return spaceShortage; + } + + /** + * The amount of space left in the user's Dropbox, less than space_needed. + * + * @return value for this field. + */ + public long getSpaceLeft() { + return spaceLeft; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.spaceNeeded, + this.spaceShortage, + this.spaceLeft + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + InsufficientQuotaAmounts other = (InsufficientQuotaAmounts) obj; + return (this.spaceNeeded == other.spaceNeeded) + && (this.spaceShortage == other.spaceShortage) + && (this.spaceLeft == other.spaceLeft) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InsufficientQuotaAmounts value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("space_needed"); + StoneSerializers.uInt64().serialize(value.spaceNeeded, g); + g.writeFieldName("space_shortage"); + StoneSerializers.uInt64().serialize(value.spaceShortage, g); + g.writeFieldName("space_left"); + StoneSerializers.uInt64().serialize(value.spaceLeft, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public InsufficientQuotaAmounts deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + InsufficientQuotaAmounts value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_spaceNeeded = null; + Long f_spaceShortage = null; + Long f_spaceLeft = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("space_needed".equals(field)) { + f_spaceNeeded = StoneSerializers.uInt64().deserialize(p); + } + else if ("space_shortage".equals(field)) { + f_spaceShortage = StoneSerializers.uInt64().deserialize(p); + } + else if ("space_left".equals(field)) { + f_spaceLeft = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_spaceNeeded == null) { + throw new JsonParseException(p, "Required field \"space_needed\" missing."); + } + if (f_spaceShortage == null) { + throw new JsonParseException(p, "Required field \"space_shortage\" missing."); + } + if (f_spaceLeft == null) { + throw new JsonParseException(p, "Required field \"space_left\" missing."); + } + value = new InsufficientQuotaAmounts(f_spaceNeeded, f_spaceShortage, f_spaceLeft); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InviteeInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InviteeInfo.java new file mode 100644 index 000000000..60766739d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InviteeInfo.java @@ -0,0 +1,299 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Information about the recipient of a shared content invitation. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class InviteeInfo { + // union sharing.InviteeInfo (sharing_folders.stone) + + /** + * Discriminating tag type for {@link InviteeInfo}. + */ + public enum Tag { + /** + * Email address of invited user. + */ + EMAIL, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final InviteeInfo OTHER = new InviteeInfo().withTag(Tag.OTHER); + + private Tag _tag; + private String emailValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private InviteeInfo() { + } + + + /** + * Information about the recipient of a shared content invitation. + * + * @param _tag Discriminating tag for this instance. + */ + private InviteeInfo withTag(Tag _tag) { + InviteeInfo result = new InviteeInfo(); + result._tag = _tag; + return result; + } + + /** + * Information about the recipient of a shared content invitation. + * + * @param emailValue Email address of invited user. Must have length of at + * most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private InviteeInfo withTagAndEmail(Tag _tag, String emailValue) { + InviteeInfo result = new InviteeInfo(); + result._tag = _tag; + result.emailValue = emailValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code InviteeInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#EMAIL}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#EMAIL}, + * {@code false} otherwise. + */ + public boolean isEmail() { + return this._tag == Tag.EMAIL; + } + + /** + * Returns an instance of {@code InviteeInfo} that has its tag set to {@link + * Tag#EMAIL}. + * + *

Email address of invited user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code InviteeInfo} with its tag set to {@link + * Tag#EMAIL}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static InviteeInfo email(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new InviteeInfo().withTagAndEmail(Tag.EMAIL, value); + } + + /** + * Email address of invited user. + * + *

This instance must be tagged as {@link Tag#EMAIL}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isEmail} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmail} is {@code false}. + */ + public String getEmailValue() { + if (this._tag != Tag.EMAIL) { + throw new IllegalStateException("Invalid tag: required Tag.EMAIL, but was Tag." + this._tag.name()); + } + return emailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.emailValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof InviteeInfo) { + InviteeInfo other = (InviteeInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case EMAIL: + return (this.emailValue == other.emailValue) || (this.emailValue.equals(other.emailValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InviteeInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case EMAIL: { + g.writeStartObject(); + writeTag("email", g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.emailValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public InviteeInfo deserialize(JsonParser p) throws IOException, JsonParseException { + InviteeInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("email".equals(tag)) { + String fieldValue = null; + expectField("email", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = InviteeInfo.email(fieldValue); + } + else { + value = InviteeInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InviteeMembershipInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InviteeMembershipInfo.java new file mode 100644 index 000000000..fa9d724f6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/InviteeMembershipInfo.java @@ -0,0 +1,387 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about an invited member of a shared content. + */ +public class InviteeMembershipInfo extends MembershipInfo { + // struct sharing.InviteeMembershipInfo (sharing_folders.stone) + + @Nonnull + protected final InviteeInfo invitee; + @Nullable + protected final UserInfo user; + + /** + * Information about an invited member of a shared content. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param invitee Recipient of the invitation. Must not be {@code null}. + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions in + * the request. Must not contain a {@code null} item. + * @param initials Never set. + * @param isInherited True if the member has access from a parent folder. + * @param user The user this invitation is tied to, if available. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public InviteeMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull InviteeInfo invitee, @Nullable List permissions, @Nullable String initials, boolean isInherited, @Nullable UserInfo user) { + super(accessType, permissions, initials, isInherited); + if (invitee == null) { + throw new IllegalArgumentException("Required value for 'invitee' is null"); + } + this.invitee = invitee; + this.user = user; + } + + /** + * Information about an invited member of a shared content. + * + *

The default values for unset fields will be used.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param invitee Recipient of the invitation. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public InviteeMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull InviteeInfo invitee) { + this(accessType, invitee, null, null, false, null); + } + + /** + * The access type for this member. It contains inherited access type from + * parent folder, and acquired access type from this folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessType() { + return accessType; + } + + /** + * Recipient of the invitation. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public InviteeInfo getInvitee() { + return invitee; + } + + /** + * The permissions that requesting user has on this member. The set of + * permissions corresponds to the MemberActions in the request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPermissions() { + return permissions; + } + + /** + * Never set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getInitials() { + return initials; + } + + /** + * True if the member has access from a parent folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIsInherited() { + return isInherited; + } + + /** + * The user this invitation is tied to, if available. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserInfo getUser() { + return user; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param invitee Recipient of the invitation. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel accessType, InviteeInfo invitee) { + return new Builder(accessType, invitee); + } + + /** + * Builder for {@link InviteeMembershipInfo}. + */ + public static class Builder extends MembershipInfo.Builder { + protected final InviteeInfo invitee; + + protected UserInfo user; + + protected Builder(AccessLevel accessType, InviteeInfo invitee) { + super(accessType); + if (invitee == null) { + throw new IllegalArgumentException("Required value for 'invitee' is null"); + } + this.invitee = invitee; + this.user = null; + } + + /** + * Set value for optional field. + * + * @param user The user this invitation is tied to, if available. + * + * @return this builder + */ + public Builder withUser(UserInfo user) { + this.user = user; + return this; + } + + /** + * Set value for optional field. + * + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions + * in the request. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPermissions(List permissions) { + super.withPermissions(permissions); + return this; + } + + /** + * Set value for optional field. + * + * @param initials Never set. + * + * @return this builder + */ + public Builder withInitials(String initials) { + super.withInitials(initials); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param isInherited True if the member has access from a parent + * folder. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIsInherited(Boolean isInherited) { + super.withIsInherited(isInherited); + return this; + } + + /** + * Builds an instance of {@link InviteeMembershipInfo} configured with + * this builder's values + * + * @return new instance of {@link InviteeMembershipInfo} + */ + public InviteeMembershipInfo build() { + return new InviteeMembershipInfo(accessType, invitee, permissions, initials, isInherited, user); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.invitee, + this.user + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + InviteeMembershipInfo other = (InviteeMembershipInfo) obj; + return ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && ((this.invitee == other.invitee) || (this.invitee.equals(other.invitee))) + && ((this.permissions == other.permissions) || (this.permissions != null && this.permissions.equals(other.permissions))) + && ((this.initials == other.initials) || (this.initials != null && this.initials.equals(other.initials))) + && (this.isInherited == other.isInherited) + && ((this.user == other.user) || (this.user != null && this.user.equals(other.user))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InviteeMembershipInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_type"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessType, g); + g.writeFieldName("invitee"); + InviteeInfo.Serializer.INSTANCE.serialize(value.invitee, g); + if (value.permissions != null) { + g.writeFieldName("permissions"); + StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).serialize(value.permissions, g); + } + if (value.initials != null) { + g.writeFieldName("initials"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.initials, g); + } + g.writeFieldName("is_inherited"); + StoneSerializers.boolean_().serialize(value.isInherited, g); + if (value.user != null) { + g.writeFieldName("user"); + StoneSerializers.nullableStruct(UserInfo.Serializer.INSTANCE).serialize(value.user, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public InviteeMembershipInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + InviteeMembershipInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessType = null; + InviteeInfo f_invitee = null; + List f_permissions = null; + String f_initials = null; + Boolean f_isInherited = false; + UserInfo f_user = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_type".equals(field)) { + f_accessType = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("invitee".equals(field)) { + f_invitee = InviteeInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).deserialize(p); + } + else if ("initials".equals(field)) { + f_initials = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_inherited".equals(field)) { + f_isInherited = StoneSerializers.boolean_().deserialize(p); + } + else if ("user".equals(field)) { + f_user = StoneSerializers.nullableStruct(UserInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + if (f_invitee == null) { + throw new JsonParseException(p, "Required field \"invitee\" missing."); + } + value = new InviteeMembershipInfo(f_accessType, f_invitee, f_permissions, f_initials, f_isInherited, f_user); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/JobError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/JobError.java new file mode 100644 index 000000000..35b9abc6e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/JobError.java @@ -0,0 +1,498 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error occurred while performing an asynchronous job from {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} or {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class JobError { + // union sharing.JobError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link JobError}. + */ + public enum Tag { + /** + * Error occurred while performing {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} action. + */ + UNSHARE_FOLDER_ERROR, // UnshareFolderError + /** + * Error occurred while performing {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)} + * action. + */ + REMOVE_FOLDER_MEMBER_ERROR, // RemoveFolderMemberError + /** + * Error occurred while performing {@link + * DbxUserSharingRequests#relinquishFolderMembership(String,boolean)} + * action. + */ + RELINQUISH_FOLDER_MEMBERSHIP_ERROR, // RelinquishFolderMembershipError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final JobError OTHER = new JobError().withTag(Tag.OTHER); + + private Tag _tag; + private UnshareFolderError unshareFolderErrorValue; + private RemoveFolderMemberError removeFolderMemberErrorValue; + private RelinquishFolderMembershipError relinquishFolderMembershipErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private JobError() { + } + + + /** + * Error occurred while performing an asynchronous job from {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} or {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)}. + * + * @param _tag Discriminating tag for this instance. + */ + private JobError withTag(Tag _tag) { + JobError result = new JobError(); + result._tag = _tag; + return result; + } + + /** + * Error occurred while performing an asynchronous job from {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} or {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)}. + * + * @param unshareFolderErrorValue Error occurred while performing {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} action. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private JobError withTagAndUnshareFolderError(Tag _tag, UnshareFolderError unshareFolderErrorValue) { + JobError result = new JobError(); + result._tag = _tag; + result.unshareFolderErrorValue = unshareFolderErrorValue; + return result; + } + + /** + * Error occurred while performing an asynchronous job from {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} or {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)}. + * + * @param removeFolderMemberErrorValue Error occurred while performing + * {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)} + * action. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private JobError withTagAndRemoveFolderMemberError(Tag _tag, RemoveFolderMemberError removeFolderMemberErrorValue) { + JobError result = new JobError(); + result._tag = _tag; + result.removeFolderMemberErrorValue = removeFolderMemberErrorValue; + return result; + } + + /** + * Error occurred while performing an asynchronous job from {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} or {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)}. + * + * @param relinquishFolderMembershipErrorValue Error occurred while + * performing {@link + * DbxUserSharingRequests#relinquishFolderMembership(String,boolean)} + * action. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private JobError withTagAndRelinquishFolderMembershipError(Tag _tag, RelinquishFolderMembershipError relinquishFolderMembershipErrorValue) { + JobError result = new JobError(); + result._tag = _tag; + result.relinquishFolderMembershipErrorValue = relinquishFolderMembershipErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code JobError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSHARE_FOLDER_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSHARE_FOLDER_ERROR}, {@code false} otherwise. + */ + public boolean isUnshareFolderError() { + return this._tag == Tag.UNSHARE_FOLDER_ERROR; + } + + /** + * Returns an instance of {@code JobError} that has its tag set to {@link + * Tag#UNSHARE_FOLDER_ERROR}. + * + *

Error occurred while performing {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} action.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code JobError} with its tag set to {@link + * Tag#UNSHARE_FOLDER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static JobError unshareFolderError(UnshareFolderError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new JobError().withTagAndUnshareFolderError(Tag.UNSHARE_FOLDER_ERROR, value); + } + + /** + * Error occurred while performing {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)} action. + * + *

This instance must be tagged as {@link Tag#UNSHARE_FOLDER_ERROR}. + *

+ * + * @return The {@link UnshareFolderError} value associated with this + * instance if {@link #isUnshareFolderError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUnshareFolderError} is {@code + * false}. + */ + public UnshareFolderError getUnshareFolderErrorValue() { + if (this._tag != Tag.UNSHARE_FOLDER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.UNSHARE_FOLDER_ERROR, but was Tag." + this._tag.name()); + } + return unshareFolderErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REMOVE_FOLDER_MEMBER_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REMOVE_FOLDER_MEMBER_ERROR}, {@code false} otherwise. + */ + public boolean isRemoveFolderMemberError() { + return this._tag == Tag.REMOVE_FOLDER_MEMBER_ERROR; + } + + /** + * Returns an instance of {@code JobError} that has its tag set to {@link + * Tag#REMOVE_FOLDER_MEMBER_ERROR}. + * + *

Error occurred while performing {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)} + * action.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code JobError} with its tag set to {@link + * Tag#REMOVE_FOLDER_MEMBER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static JobError removeFolderMemberError(RemoveFolderMemberError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new JobError().withTagAndRemoveFolderMemberError(Tag.REMOVE_FOLDER_MEMBER_ERROR, value); + } + + /** + * Error occurred while performing {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)} + * action. + * + *

This instance must be tagged as {@link + * Tag#REMOVE_FOLDER_MEMBER_ERROR}.

+ * + * @return The {@link RemoveFolderMemberError} value associated with this + * instance if {@link #isRemoveFolderMemberError} is {@code true}. + * + * @throws IllegalStateException If {@link #isRemoveFolderMemberError} is + * {@code false}. + */ + public RemoveFolderMemberError getRemoveFolderMemberErrorValue() { + if (this._tag != Tag.REMOVE_FOLDER_MEMBER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.REMOVE_FOLDER_MEMBER_ERROR, but was Tag." + this._tag.name()); + } + return removeFolderMemberErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RELINQUISH_FOLDER_MEMBERSHIP_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RELINQUISH_FOLDER_MEMBERSHIP_ERROR}, {@code false} otherwise. + */ + public boolean isRelinquishFolderMembershipError() { + return this._tag == Tag.RELINQUISH_FOLDER_MEMBERSHIP_ERROR; + } + + /** + * Returns an instance of {@code JobError} that has its tag set to {@link + * Tag#RELINQUISH_FOLDER_MEMBERSHIP_ERROR}. + * + *

Error occurred while performing {@link + * DbxUserSharingRequests#relinquishFolderMembership(String,boolean)} + * action.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code JobError} with its tag set to {@link + * Tag#RELINQUISH_FOLDER_MEMBERSHIP_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static JobError relinquishFolderMembershipError(RelinquishFolderMembershipError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new JobError().withTagAndRelinquishFolderMembershipError(Tag.RELINQUISH_FOLDER_MEMBERSHIP_ERROR, value); + } + + /** + * Error occurred while performing {@link + * DbxUserSharingRequests#relinquishFolderMembership(String,boolean)} + * action. + * + *

This instance must be tagged as {@link + * Tag#RELINQUISH_FOLDER_MEMBERSHIP_ERROR}.

+ * + * @return The {@link RelinquishFolderMembershipError} value associated with + * this instance if {@link #isRelinquishFolderMembershipError} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isRelinquishFolderMembershipError} is {@code false}. + */ + public RelinquishFolderMembershipError getRelinquishFolderMembershipErrorValue() { + if (this._tag != Tag.RELINQUISH_FOLDER_MEMBERSHIP_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.RELINQUISH_FOLDER_MEMBERSHIP_ERROR, but was Tag." + this._tag.name()); + } + return relinquishFolderMembershipErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.unshareFolderErrorValue, + this.removeFolderMemberErrorValue, + this.relinquishFolderMembershipErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof JobError) { + JobError other = (JobError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case UNSHARE_FOLDER_ERROR: + return (this.unshareFolderErrorValue == other.unshareFolderErrorValue) || (this.unshareFolderErrorValue.equals(other.unshareFolderErrorValue)); + case REMOVE_FOLDER_MEMBER_ERROR: + return (this.removeFolderMemberErrorValue == other.removeFolderMemberErrorValue) || (this.removeFolderMemberErrorValue.equals(other.removeFolderMemberErrorValue)); + case RELINQUISH_FOLDER_MEMBERSHIP_ERROR: + return (this.relinquishFolderMembershipErrorValue == other.relinquishFolderMembershipErrorValue) || (this.relinquishFolderMembershipErrorValue.equals(other.relinquishFolderMembershipErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(JobError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case UNSHARE_FOLDER_ERROR: { + g.writeStartObject(); + writeTag("unshare_folder_error", g); + g.writeFieldName("unshare_folder_error"); + UnshareFolderError.Serializer.INSTANCE.serialize(value.unshareFolderErrorValue, g); + g.writeEndObject(); + break; + } + case REMOVE_FOLDER_MEMBER_ERROR: { + g.writeStartObject(); + writeTag("remove_folder_member_error", g); + g.writeFieldName("remove_folder_member_error"); + RemoveFolderMemberError.Serializer.INSTANCE.serialize(value.removeFolderMemberErrorValue, g); + g.writeEndObject(); + break; + } + case RELINQUISH_FOLDER_MEMBERSHIP_ERROR: { + g.writeStartObject(); + writeTag("relinquish_folder_membership_error", g); + g.writeFieldName("relinquish_folder_membership_error"); + RelinquishFolderMembershipError.Serializer.INSTANCE.serialize(value.relinquishFolderMembershipErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public JobError deserialize(JsonParser p) throws IOException, JsonParseException { + JobError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unshare_folder_error".equals(tag)) { + UnshareFolderError fieldValue = null; + expectField("unshare_folder_error", p); + fieldValue = UnshareFolderError.Serializer.INSTANCE.deserialize(p); + value = JobError.unshareFolderError(fieldValue); + } + else if ("remove_folder_member_error".equals(tag)) { + RemoveFolderMemberError fieldValue = null; + expectField("remove_folder_member_error", p); + fieldValue = RemoveFolderMemberError.Serializer.INSTANCE.deserialize(p); + value = JobError.removeFolderMemberError(fieldValue); + } + else if ("relinquish_folder_membership_error".equals(tag)) { + RelinquishFolderMembershipError fieldValue = null; + expectField("relinquish_folder_membership_error", p); + fieldValue = RelinquishFolderMembershipError.Serializer.INSTANCE.deserialize(p); + value = JobError.relinquishFolderMembershipError(fieldValue); + } + else { + value = JobError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/JobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/JobStatus.java new file mode 100644 index 000000000..5ba6d8550 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/JobStatus.java @@ -0,0 +1,303 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class JobStatus { + // union sharing.JobStatus (sharing_folders.stone) + + /** + * Discriminating tag type for {@link JobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The asynchronous job has finished. + */ + COMPLETE, + /** + * The asynchronous job returned an error. + */ + FAILED; // JobError + } + + /** + * The asynchronous job is still in progress. + */ + public static final JobStatus IN_PROGRESS = new JobStatus().withTag(Tag.IN_PROGRESS); + /** + * The asynchronous job has finished. + */ + public static final JobStatus COMPLETE = new JobStatus().withTag(Tag.COMPLETE); + + private Tag _tag; + private JobError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private JobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private JobStatus withTag(Tag _tag) { + JobStatus result = new JobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param failedValue The asynchronous job returned an error. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private JobStatus withTagAndFailed(Tag _tag, JobError failedValue) { + JobStatus result = new JobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code JobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code JobStatus} that has its tag set to {@link + * Tag#FAILED}. + * + *

The asynchronous job returned an error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code JobStatus} with its tag set to {@link + * Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static JobStatus failed(JobError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new JobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * The asynchronous job returned an error. + * + *

This instance must be tagged as {@link Tag#FAILED}.

+ * + * @return The {@link JobError} value associated with this instance if + * {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public JobError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof JobStatus) { + JobStatus other = (JobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return true; + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(JobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeString("complete"); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + JobError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public JobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + JobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = JobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + value = JobStatus.COMPLETE; + } + else if ("failed".equals(tag)) { + JobError fieldValue = null; + expectField("failed", p); + fieldValue = JobError.Serializer.INSTANCE.deserialize(p); + value = JobStatus.failed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAccessLevel.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAccessLevel.java new file mode 100644 index 000000000..f053e4fc9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAccessLevel.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LinkAccessLevel { + // union sharing.LinkAccessLevel (shared_links.stone) + /** + * Users who use the link can view and comment on the content. + */ + VIEWER, + /** + * Users who use the link can edit, view and comment on the content. + */ + EDITOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkAccessLevel value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case VIEWER: { + g.writeString("viewer"); + break; + } + case EDITOR: { + g.writeString("editor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LinkAccessLevel deserialize(JsonParser p) throws IOException, JsonParseException { + LinkAccessLevel value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("viewer".equals(tag)) { + value = LinkAccessLevel.VIEWER; + } + else if ("editor".equals(tag)) { + value = LinkAccessLevel.EDITOR; + } + else { + value = LinkAccessLevel.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAction.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAction.java new file mode 100644 index 000000000..50f5e4fd5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAction.java @@ -0,0 +1,142 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Actions that can be performed on a link. + */ +public enum LinkAction { + // union sharing.LinkAction (shared_content_links.stone) + /** + * Change the access level of the link. + */ + CHANGE_ACCESS_LEVEL, + /** + * Change the audience of the link. + */ + CHANGE_AUDIENCE, + /** + * Remove the expiry date of the link. + */ + REMOVE_EXPIRY, + /** + * Remove the password of the link. + */ + REMOVE_PASSWORD, + /** + * Create or modify the expiry date of the link. + */ + SET_EXPIRY, + /** + * Create or modify the password of the link. + */ + SET_PASSWORD, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkAction value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case CHANGE_ACCESS_LEVEL: { + g.writeString("change_access_level"); + break; + } + case CHANGE_AUDIENCE: { + g.writeString("change_audience"); + break; + } + case REMOVE_EXPIRY: { + g.writeString("remove_expiry"); + break; + } + case REMOVE_PASSWORD: { + g.writeString("remove_password"); + break; + } + case SET_EXPIRY: { + g.writeString("set_expiry"); + break; + } + case SET_PASSWORD: { + g.writeString("set_password"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LinkAction deserialize(JsonParser p) throws IOException, JsonParseException { + LinkAction value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("change_access_level".equals(tag)) { + value = LinkAction.CHANGE_ACCESS_LEVEL; + } + else if ("change_audience".equals(tag)) { + value = LinkAction.CHANGE_AUDIENCE; + } + else if ("remove_expiry".equals(tag)) { + value = LinkAction.REMOVE_EXPIRY; + } + else if ("remove_password".equals(tag)) { + value = LinkAction.REMOVE_PASSWORD; + } + else if ("set_expiry".equals(tag)) { + value = LinkAction.SET_EXPIRY; + } + else if ("set_password".equals(tag)) { + value = LinkAction.SET_PASSWORD; + } + else { + value = LinkAction.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudience.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudience.java new file mode 100644 index 000000000..b3a4dd1ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudience.java @@ -0,0 +1,132 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LinkAudience { + // union sharing.LinkAudience (shared_content_links.stone) + /** + * Link is accessible by anyone. + */ + PUBLIC, + /** + * Link is accessible only by team members. + */ + TEAM, + /** + * The link can be used by no one. The link merely points the user to the + * content, and does not grant additional rights to the user. Members of the + * content who use this link can only access the content with their + * pre-existing access rights. + */ + NO_ONE, + /** + * Use `require_password` instead. A link-specific password is required to + * access the link. Login is not required. + */ + PASSWORD, + /** + * Link is accessible only by members of the content. + */ + MEMBERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkAudience value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PUBLIC: { + g.writeString("public"); + break; + } + case TEAM: { + g.writeString("team"); + break; + } + case NO_ONE: { + g.writeString("no_one"); + break; + } + case PASSWORD: { + g.writeString("password"); + break; + } + case MEMBERS: { + g.writeString("members"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LinkAudience deserialize(JsonParser p) throws IOException, JsonParseException { + LinkAudience value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("public".equals(tag)) { + value = LinkAudience.PUBLIC; + } + else if ("team".equals(tag)) { + value = LinkAudience.TEAM; + } + else if ("no_one".equals(tag)) { + value = LinkAudience.NO_ONE; + } + else if ("password".equals(tag)) { + value = LinkAudience.PASSWORD; + } + else if ("members".equals(tag)) { + value = LinkAudience.MEMBERS; + } + else { + value = LinkAudience.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudienceDisallowedReason.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudienceDisallowedReason.java new file mode 100644 index 000000000..61aad913f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudienceDisallowedReason.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * check documentation for VisibilityPolicyDisallowedReason. + */ +public enum LinkAudienceDisallowedReason { + // union sharing.LinkAudienceDisallowedReason (shared_links.stone) + /** + * The user needs to delete and recreate the link to change the visibility + * policy. + */ + DELETE_AND_RECREATE, + /** + * The parent shared folder restricts sharing of links outside the shared + * folder. To change the visibility policy, remove the restriction from the + * parent shared folder. + */ + RESTRICTED_BY_SHARED_FOLDER, + /** + * The team policy prevents links being shared outside the team. + */ + RESTRICTED_BY_TEAM, + /** + * The user needs to be on a team to set this policy. + */ + USER_NOT_ON_TEAM, + /** + * The user is a basic user or is on a limited team. + */ + USER_ACCOUNT_TYPE, + /** + * The user does not have permission. + */ + PERMISSION_DENIED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkAudienceDisallowedReason value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DELETE_AND_RECREATE: { + g.writeString("delete_and_recreate"); + break; + } + case RESTRICTED_BY_SHARED_FOLDER: { + g.writeString("restricted_by_shared_folder"); + break; + } + case RESTRICTED_BY_TEAM: { + g.writeString("restricted_by_team"); + break; + } + case USER_NOT_ON_TEAM: { + g.writeString("user_not_on_team"); + break; + } + case USER_ACCOUNT_TYPE: { + g.writeString("user_account_type"); + break; + } + case PERMISSION_DENIED: { + g.writeString("permission_denied"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public LinkAudienceDisallowedReason deserialize(JsonParser p) throws IOException, JsonParseException { + LinkAudienceDisallowedReason value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("delete_and_recreate".equals(tag)) { + value = LinkAudienceDisallowedReason.DELETE_AND_RECREATE; + } + else if ("restricted_by_shared_folder".equals(tag)) { + value = LinkAudienceDisallowedReason.RESTRICTED_BY_SHARED_FOLDER; + } + else if ("restricted_by_team".equals(tag)) { + value = LinkAudienceDisallowedReason.RESTRICTED_BY_TEAM; + } + else if ("user_not_on_team".equals(tag)) { + value = LinkAudienceDisallowedReason.USER_NOT_ON_TEAM; + } + else if ("user_account_type".equals(tag)) { + value = LinkAudienceDisallowedReason.USER_ACCOUNT_TYPE; + } + else if ("permission_denied".equals(tag)) { + value = LinkAudienceDisallowedReason.PERMISSION_DENIED; + } + else if ("other".equals(tag)) { + value = LinkAudienceDisallowedReason.OTHER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudienceOption.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudienceOption.java new file mode 100644 index 000000000..58b963ea4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkAudienceOption.java @@ -0,0 +1,219 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class LinkAudienceOption { + // struct sharing.LinkAudienceOption (shared_links.stone) + + @Nonnull + protected final LinkAudience audience; + protected final boolean allowed; + @Nullable + protected final LinkAudienceDisallowedReason disallowedReason; + + /** + * + * @param audience Specifies who can access the link. Must not be {@code + * null}. + * @param allowed Whether the user calling this API can select this + * audience option. + * @param disallowedReason If {@link LinkAudienceOption#getAllowed} is + * {@code false}, this will provide the reason that the user is not + * permitted to set the visibility to this policy. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkAudienceOption(@Nonnull LinkAudience audience, boolean allowed, @Nullable LinkAudienceDisallowedReason disallowedReason) { + if (audience == null) { + throw new IllegalArgumentException("Required value for 'audience' is null"); + } + this.audience = audience; + this.allowed = allowed; + this.disallowedReason = disallowedReason; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param audience Specifies who can access the link. Must not be {@code + * null}. + * @param allowed Whether the user calling this API can select this + * audience option. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkAudienceOption(@Nonnull LinkAudience audience, boolean allowed) { + this(audience, allowed, null); + } + + /** + * Specifies who can access the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAudience getAudience() { + return audience; + } + + /** + * Whether the user calling this API can select this audience option. + * + * @return value for this field. + */ + public boolean getAllowed() { + return allowed; + } + + /** + * If {@link LinkAudienceOption#getAllowed} is {@code false}, this will + * provide the reason that the user is not permitted to set the visibility + * to this policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkAudienceDisallowedReason getDisallowedReason() { + return disallowedReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.audience, + this.allowed, + this.disallowedReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LinkAudienceOption other = (LinkAudienceOption) obj; + return ((this.audience == other.audience) || (this.audience.equals(other.audience))) + && (this.allowed == other.allowed) + && ((this.disallowedReason == other.disallowedReason) || (this.disallowedReason != null && this.disallowedReason.equals(other.disallowedReason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkAudienceOption value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("audience"); + LinkAudience.Serializer.INSTANCE.serialize(value.audience, g); + g.writeFieldName("allowed"); + StoneSerializers.boolean_().serialize(value.allowed, g); + if (value.disallowedReason != null) { + g.writeFieldName("disallowed_reason"); + StoneSerializers.nullable(LinkAudienceDisallowedReason.Serializer.INSTANCE).serialize(value.disallowedReason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LinkAudienceOption deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LinkAudienceOption value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LinkAudience f_audience = null; + Boolean f_allowed = null; + LinkAudienceDisallowedReason f_disallowedReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("audience".equals(field)) { + f_audience = LinkAudience.Serializer.INSTANCE.deserialize(p); + } + else if ("allowed".equals(field)) { + f_allowed = StoneSerializers.boolean_().deserialize(p); + } + else if ("disallowed_reason".equals(field)) { + f_disallowedReason = StoneSerializers.nullable(LinkAudienceDisallowedReason.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_audience == null) { + throw new JsonParseException(p, "Required field \"audience\" missing."); + } + if (f_allowed == null) { + throw new JsonParseException(p, "Required field \"allowed\" missing."); + } + value = new LinkAudienceOption(f_audience, f_allowed, f_disallowedReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkExpiry.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkExpiry.java new file mode 100644 index 000000000..adcf6e985 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkExpiry.java @@ -0,0 +1,313 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class LinkExpiry { + // union sharing.LinkExpiry (shared_content_links.stone) + + /** + * Discriminating tag type for {@link LinkExpiry}. + */ + public enum Tag { + /** + * Remove the currently set expiry for the link. + */ + REMOVE_EXPIRY, + /** + * Set a new expiry or change an existing expiry. + */ + SET_EXPIRY, // Date + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Remove the currently set expiry for the link. + */ + public static final LinkExpiry REMOVE_EXPIRY = new LinkExpiry().withTag(Tag.REMOVE_EXPIRY); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final LinkExpiry OTHER = new LinkExpiry().withTag(Tag.OTHER); + + private Tag _tag; + private Date setExpiryValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LinkExpiry() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private LinkExpiry withTag(Tag _tag) { + LinkExpiry result = new LinkExpiry(); + result._tag = _tag; + return result; + } + + /** + * + * @param setExpiryValue Set a new expiry or change an existing expiry. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LinkExpiry withTagAndSetExpiry(Tag _tag, Date setExpiryValue) { + LinkExpiry result = new LinkExpiry(); + result._tag = _tag; + result.setExpiryValue = setExpiryValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LinkExpiry}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REMOVE_EXPIRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REMOVE_EXPIRY}, {@code false} otherwise. + */ + public boolean isRemoveExpiry() { + return this._tag == Tag.REMOVE_EXPIRY; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SET_EXPIRY}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SET_EXPIRY}, {@code false} otherwise. + */ + public boolean isSetExpiry() { + return this._tag == Tag.SET_EXPIRY; + } + + /** + * Returns an instance of {@code LinkExpiry} that has its tag set to {@link + * Tag#SET_EXPIRY}. + * + *

Set a new expiry or change an existing expiry.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LinkExpiry} with its tag set to {@link + * Tag#SET_EXPIRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LinkExpiry setExpiry(Date value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LinkExpiry().withTagAndSetExpiry(Tag.SET_EXPIRY, value); + } + + /** + * Set a new expiry or change an existing expiry. + * + *

This instance must be tagged as {@link Tag#SET_EXPIRY}.

+ * + * @return The {@link Date} value associated with this instance if {@link + * #isSetExpiry} is {@code true}. + * + * @throws IllegalStateException If {@link #isSetExpiry} is {@code false}. + */ + public Date getSetExpiryValue() { + if (this._tag != Tag.SET_EXPIRY) { + throw new IllegalStateException("Invalid tag: required Tag.SET_EXPIRY, but was Tag." + this._tag.name()); + } + return setExpiryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.setExpiryValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LinkExpiry) { + LinkExpiry other = (LinkExpiry) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case REMOVE_EXPIRY: + return true; + case SET_EXPIRY: + return (this.setExpiryValue == other.setExpiryValue) || (this.setExpiryValue.equals(other.setExpiryValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkExpiry value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case REMOVE_EXPIRY: { + g.writeString("remove_expiry"); + break; + } + case SET_EXPIRY: { + g.writeStartObject(); + writeTag("set_expiry", g); + g.writeFieldName("set_expiry"); + StoneSerializers.timestamp().serialize(value.setExpiryValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LinkExpiry deserialize(JsonParser p) throws IOException, JsonParseException { + LinkExpiry value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("remove_expiry".equals(tag)) { + value = LinkExpiry.REMOVE_EXPIRY; + } + else if ("set_expiry".equals(tag)) { + Date fieldValue = null; + expectField("set_expiry", p); + fieldValue = StoneSerializers.timestamp().deserialize(p); + value = LinkExpiry.setExpiry(fieldValue); + } + else { + value = LinkExpiry.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkMetadata.java new file mode 100644 index 000000000..16b8f97c7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkMetadata.java @@ -0,0 +1,246 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata for a shared link. This can be either a {@link PathLinkMetadata} or + * {@link CollectionLinkMetadata}. + */ +public class LinkMetadata { + // struct sharing.LinkMetadata (shared_links.stone) + + @Nonnull + protected final String url; + @Nonnull + protected final Visibility visibility; + @Nullable + protected final Date expires; + + /** + * Metadata for a shared link. This can be either a {@link PathLinkMetadata} + * or {@link CollectionLinkMetadata}. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param visibility Who can access the link. Must not be {@code null}. + * @param expires Expiration time, if set. By default the link won't + * expire. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nullable Date expires) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (visibility == null) { + throw new IllegalArgumentException("Required value for 'visibility' is null"); + } + this.visibility = visibility; + this.expires = LangUtil.truncateMillis(expires); + } + + /** + * Metadata for a shared link. This can be either a {@link PathLinkMetadata} + * or {@link CollectionLinkMetadata}. + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param visibility Who can access the link. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkMetadata(@Nonnull String url, @Nonnull Visibility visibility) { + this(url, visibility, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * Who can access the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Visibility getVisibility() { + return visibility; + } + + /** + * Expiration time, if set. By default the link won't expire. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.visibility, + this.expires + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LinkMetadata other = (LinkMetadata) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.visibility == other.visibility) || (this.visibility.equals(other.visibility))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof PathLinkMetadata) { + PathLinkMetadata.Serializer.INSTANCE.serialize((PathLinkMetadata) value, g, collapse); + return; + } + if (value instanceof CollectionLinkMetadata) { + CollectionLinkMetadata.Serializer.INSTANCE.serialize((CollectionLinkMetadata) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("visibility"); + Visibility.Serializer.INSTANCE.serialize(value.visibility, g); + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_url = null; + Visibility f_visibility = null; + Date f_expires = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("visibility".equals(field)) { + f_visibility = Visibility.Serializer.INSTANCE.deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_visibility == null) { + throw new JsonParseException(p, "Required field \"visibility\" missing."); + } + value = new LinkMetadata(f_url, f_visibility, f_expires); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("path".equals(tag)) { + value = PathLinkMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else if ("collection".equals(tag)) { + value = CollectionLinkMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPassword.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPassword.java new file mode 100644 index 000000000..a6a2b8448 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPassword.java @@ -0,0 +1,312 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class LinkPassword { + // union sharing.LinkPassword (shared_content_links.stone) + + /** + * Discriminating tag type for {@link LinkPassword}. + */ + public enum Tag { + /** + * Remove the currently set password for the link. + */ + REMOVE_PASSWORD, + /** + * Set a new password or change an existing password. + */ + SET_PASSWORD, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Remove the currently set password for the link. + */ + public static final LinkPassword REMOVE_PASSWORD = new LinkPassword().withTag(Tag.REMOVE_PASSWORD); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final LinkPassword OTHER = new LinkPassword().withTag(Tag.OTHER); + + private Tag _tag; + private String setPasswordValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LinkPassword() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private LinkPassword withTag(Tag _tag) { + LinkPassword result = new LinkPassword(); + result._tag = _tag; + return result; + } + + /** + * + * @param setPasswordValue Set a new password or change an existing + * password. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LinkPassword withTagAndSetPassword(Tag _tag, String setPasswordValue) { + LinkPassword result = new LinkPassword(); + result._tag = _tag; + result.setPasswordValue = setPasswordValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LinkPassword}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REMOVE_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REMOVE_PASSWORD}, {@code false} otherwise. + */ + public boolean isRemovePassword() { + return this._tag == Tag.REMOVE_PASSWORD; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SET_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SET_PASSWORD}, {@code false} otherwise. + */ + public boolean isSetPassword() { + return this._tag == Tag.SET_PASSWORD; + } + + /** + * Returns an instance of {@code LinkPassword} that has its tag set to + * {@link Tag#SET_PASSWORD}. + * + *

Set a new password or change an existing password.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LinkPassword} with its tag set to {@link + * Tag#SET_PASSWORD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LinkPassword setPassword(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LinkPassword().withTagAndSetPassword(Tag.SET_PASSWORD, value); + } + + /** + * Set a new password or change an existing password. + * + *

This instance must be tagged as {@link Tag#SET_PASSWORD}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isSetPassword} is {@code true}. + * + * @throws IllegalStateException If {@link #isSetPassword} is {@code + * false}. + */ + public String getSetPasswordValue() { + if (this._tag != Tag.SET_PASSWORD) { + throw new IllegalStateException("Invalid tag: required Tag.SET_PASSWORD, but was Tag." + this._tag.name()); + } + return setPasswordValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.setPasswordValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LinkPassword) { + LinkPassword other = (LinkPassword) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case REMOVE_PASSWORD: + return true; + case SET_PASSWORD: + return (this.setPasswordValue == other.setPasswordValue) || (this.setPasswordValue.equals(other.setPasswordValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkPassword value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case REMOVE_PASSWORD: { + g.writeString("remove_password"); + break; + } + case SET_PASSWORD: { + g.writeStartObject(); + writeTag("set_password", g); + g.writeFieldName("set_password"); + StoneSerializers.string().serialize(value.setPasswordValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LinkPassword deserialize(JsonParser p) throws IOException, JsonParseException { + LinkPassword value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("remove_password".equals(tag)) { + value = LinkPassword.REMOVE_PASSWORD; + } + else if ("set_password".equals(tag)) { + String fieldValue = null; + expectField("set_password", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = LinkPassword.setPassword(fieldValue); + } + else { + value = LinkPassword.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPermission.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPermission.java new file mode 100644 index 000000000..d8dacc784 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPermission.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Permissions for actions that can be performed on a link. + */ +public class LinkPermission { + // struct sharing.LinkPermission (shared_content_links.stone) + + @Nonnull + protected final LinkAction action; + protected final boolean allow; + @Nullable + protected final PermissionDeniedReason reason; + + /** + * Permissions for actions that can be performed on a link. + * + * @param action Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkPermission(@Nonnull LinkAction action, boolean allow, @Nullable PermissionDeniedReason reason) { + if (action == null) { + throw new IllegalArgumentException("Required value for 'action' is null"); + } + this.action = action; + this.allow = allow; + this.reason = reason; + } + + /** + * Permissions for actions that can be performed on a link. + * + *

The default values for unset fields will be used.

+ * + * @param action Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkPermission(@Nonnull LinkAction action, boolean allow) { + this(action, allow, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAction getAction() { + return action; + } + + /** + * + * @return value for this field. + */ + public boolean getAllow() { + return allow; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PermissionDeniedReason getReason() { + return reason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.action, + this.allow, + this.reason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LinkPermission other = (LinkPermission) obj; + return ((this.action == other.action) || (this.action.equals(other.action))) + && (this.allow == other.allow) + && ((this.reason == other.reason) || (this.reason != null && this.reason.equals(other.reason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkPermission value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("action"); + LinkAction.Serializer.INSTANCE.serialize(value.action, g); + g.writeFieldName("allow"); + StoneSerializers.boolean_().serialize(value.allow, g); + if (value.reason != null) { + g.writeFieldName("reason"); + StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).serialize(value.reason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LinkPermission deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LinkPermission value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LinkAction f_action = null; + Boolean f_allow = null; + PermissionDeniedReason f_reason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("action".equals(field)) { + f_action = LinkAction.Serializer.INSTANCE.deserialize(p); + } + else if ("allow".equals(field)) { + f_allow = StoneSerializers.boolean_().deserialize(p); + } + else if ("reason".equals(field)) { + f_reason = StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_action == null) { + throw new JsonParseException(p, "Required field \"action\" missing."); + } + if (f_allow == null) { + throw new JsonParseException(p, "Required field \"allow\" missing."); + } + value = new LinkPermission(f_action, f_allow, f_reason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPermissions.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPermissions.java new file mode 100644 index 000000000..af808f503 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkPermissions.java @@ -0,0 +1,941 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class LinkPermissions { + // struct sharing.LinkPermissions (shared_links.stone) + + @Nullable + protected final ResolvedVisibility resolvedVisibility; + @Nullable + protected final RequestedVisibility requestedVisibility; + protected final boolean canRevoke; + @Nullable + protected final SharedLinkAccessFailureReason revokeFailureReason; + @Nullable + protected final LinkAudience effectiveAudience; + @Nullable + protected final LinkAccessLevel linkAccessLevel; + @Nonnull + protected final List visibilityPolicies; + protected final boolean canSetExpiry; + protected final boolean canRemoveExpiry; + protected final boolean allowDownload; + protected final boolean canAllowDownload; + protected final boolean canDisallowDownload; + protected final boolean allowComments; + protected final boolean teamRestrictsComments; + @Nullable + protected final List audienceOptions; + @Nullable + protected final Boolean canSetPassword; + @Nullable + protected final Boolean canRemovePassword; + @Nullable + protected final Boolean requirePassword; + @Nullable + protected final Boolean canUseExtendedSharingControls; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param canRevoke Whether the caller can revoke the shared link. + * @param visibilityPolicies A list of policies that the user might be able + * to set for the visibility. Must not contain a {@code null} item and + * not be {@code null}. + * @param canSetExpiry Whether the user can set the expiry settings of the + * link. This refers to the ability to create a new expiry and modify an + * existing expiry. + * @param canRemoveExpiry Whether the user can remove the expiry of the + * link. + * @param allowDownload Whether the link can be downloaded or not. + * @param canAllowDownload Whether the user can allow downloads via the + * link. This refers to the ability to remove a no-download restriction + * on the link. + * @param canDisallowDownload Whether the user can disallow downloads via + * the link. This refers to the ability to impose a no-download + * restriction on the link. + * @param allowComments Whether comments are enabled for the linked file. + * This takes the team commenting policy into account. + * @param teamRestrictsComments Whether the team has disabled commenting + * globally. + * @param resolvedVisibility The current visibility of the link after + * considering the shared links policies of the the team (in case the + * link's owner is part of a team) and the shared folder (in case the + * linked file is part of a shared folder). This field is shown only if + * the caller has access to this info (the link's owner always has + * access to this data). For some links, an effective_audience value is + * returned instead. + * @param requestedVisibility The shared link's requested visibility. This + * can be overridden by the team and shared folder policies. The final + * visibility, after considering these policies, can be found in {@link + * LinkPermissions#getResolvedVisibility}. This is shown only if the + * caller is the link's owner and resolved_visibility is returned + * instead of effective_audience. + * @param revokeFailureReason The failure reason for revoking the link. + * This field will only be present if the {@link + * LinkPermissions#getCanRevoke} is {@code false}. + * @param effectiveAudience The type of audience who can benefit from the + * access level specified by the `link_access_level` field. + * @param linkAccessLevel The access level that the link will grant to its + * users. A link can grant additional rights to a user beyond their + * current access level. For example, if a user was invited as a viewer + * to a file, and then opens a link with `link_access_level` set to + * `editor`, then they will gain editor privileges. The + * `link_access_level` is a property of the link, and does not depend on + * who is calling this API. In particular, `link_access_level` does not + * take into account the API caller's current permissions to the + * content. + * @param audienceOptions A list of link audience options the user might be + * able to set as the new audience. Must not contain a {@code null} + * item. + * @param canSetPassword Whether the user can set a password for the link. + * @param canRemovePassword Whether the user can remove the password of the + * link. + * @param requirePassword Whether the user is required to provide a + * password to view the link. + * @param canUseExtendedSharingControls Whether the user can use extended + * sharing controls, based on their account type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkPermissions(boolean canRevoke, @Nonnull List visibilityPolicies, boolean canSetExpiry, boolean canRemoveExpiry, boolean allowDownload, boolean canAllowDownload, boolean canDisallowDownload, boolean allowComments, boolean teamRestrictsComments, @Nullable ResolvedVisibility resolvedVisibility, @Nullable RequestedVisibility requestedVisibility, @Nullable SharedLinkAccessFailureReason revokeFailureReason, @Nullable LinkAudience effectiveAudience, @Nullable LinkAccessLevel linkAccessLevel, @Nullable List audienceOptions, @Nullable Boolean canSetPassword, @Nullable Boolean canRemovePassword, @Nullable Boolean requirePassword, @Nullable Boolean canUseExtendedSharingControls) { + this.resolvedVisibility = resolvedVisibility; + this.requestedVisibility = requestedVisibility; + this.canRevoke = canRevoke; + this.revokeFailureReason = revokeFailureReason; + this.effectiveAudience = effectiveAudience; + this.linkAccessLevel = linkAccessLevel; + if (visibilityPolicies == null) { + throw new IllegalArgumentException("Required value for 'visibilityPolicies' is null"); + } + for (VisibilityPolicy x : visibilityPolicies) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'visibilityPolicies' is null"); + } + } + this.visibilityPolicies = visibilityPolicies; + this.canSetExpiry = canSetExpiry; + this.canRemoveExpiry = canRemoveExpiry; + this.allowDownload = allowDownload; + this.canAllowDownload = canAllowDownload; + this.canDisallowDownload = canDisallowDownload; + this.allowComments = allowComments; + this.teamRestrictsComments = teamRestrictsComments; + if (audienceOptions != null) { + for (LinkAudienceOption x : audienceOptions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'audienceOptions' is null"); + } + } + } + this.audienceOptions = audienceOptions; + this.canSetPassword = canSetPassword; + this.canRemovePassword = canRemovePassword; + this.requirePassword = requirePassword; + this.canUseExtendedSharingControls = canUseExtendedSharingControls; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param canRevoke Whether the caller can revoke the shared link. + * @param visibilityPolicies A list of policies that the user might be able + * to set for the visibility. Must not contain a {@code null} item and + * not be {@code null}. + * @param canSetExpiry Whether the user can set the expiry settings of the + * link. This refers to the ability to create a new expiry and modify an + * existing expiry. + * @param canRemoveExpiry Whether the user can remove the expiry of the + * link. + * @param allowDownload Whether the link can be downloaded or not. + * @param canAllowDownload Whether the user can allow downloads via the + * link. This refers to the ability to remove a no-download restriction + * on the link. + * @param canDisallowDownload Whether the user can disallow downloads via + * the link. This refers to the ability to impose a no-download + * restriction on the link. + * @param allowComments Whether comments are enabled for the linked file. + * This takes the team commenting policy into account. + * @param teamRestrictsComments Whether the team has disabled commenting + * globally. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LinkPermissions(boolean canRevoke, @Nonnull List visibilityPolicies, boolean canSetExpiry, boolean canRemoveExpiry, boolean allowDownload, boolean canAllowDownload, boolean canDisallowDownload, boolean allowComments, boolean teamRestrictsComments) { + this(canRevoke, visibilityPolicies, canSetExpiry, canRemoveExpiry, allowDownload, canAllowDownload, canDisallowDownload, allowComments, teamRestrictsComments, null, null, null, null, null, null, null, null, null, null); + } + + /** + * Whether the caller can revoke the shared link. + * + * @return value for this field. + */ + public boolean getCanRevoke() { + return canRevoke; + } + + /** + * A list of policies that the user might be able to set for the visibility. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getVisibilityPolicies() { + return visibilityPolicies; + } + + /** + * Whether the user can set the expiry settings of the link. This refers to + * the ability to create a new expiry and modify an existing expiry. + * + * @return value for this field. + */ + public boolean getCanSetExpiry() { + return canSetExpiry; + } + + /** + * Whether the user can remove the expiry of the link. + * + * @return value for this field. + */ + public boolean getCanRemoveExpiry() { + return canRemoveExpiry; + } + + /** + * Whether the link can be downloaded or not. + * + * @return value for this field. + */ + public boolean getAllowDownload() { + return allowDownload; + } + + /** + * Whether the user can allow downloads via the link. This refers to the + * ability to remove a no-download restriction on the link. + * + * @return value for this field. + */ + public boolean getCanAllowDownload() { + return canAllowDownload; + } + + /** + * Whether the user can disallow downloads via the link. This refers to the + * ability to impose a no-download restriction on the link. + * + * @return value for this field. + */ + public boolean getCanDisallowDownload() { + return canDisallowDownload; + } + + /** + * Whether comments are enabled for the linked file. This takes the team + * commenting policy into account. + * + * @return value for this field. + */ + public boolean getAllowComments() { + return allowComments; + } + + /** + * Whether the team has disabled commenting globally. + * + * @return value for this field. + */ + public boolean getTeamRestrictsComments() { + return teamRestrictsComments; + } + + /** + * The current visibility of the link after considering the shared links + * policies of the the team (in case the link's owner is part of a team) and + * the shared folder (in case the linked file is part of a shared folder). + * This field is shown only if the caller has access to this info (the + * link's owner always has access to this data). For some links, an + * effective_audience value is returned instead. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ResolvedVisibility getResolvedVisibility() { + return resolvedVisibility; + } + + /** + * The shared link's requested visibility. This can be overridden by the + * team and shared folder policies. The final visibility, after considering + * these policies, can be found in {@link + * LinkPermissions#getResolvedVisibility}. This is shown only if the caller + * is the link's owner and resolved_visibility is returned instead of + * effective_audience. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RequestedVisibility getRequestedVisibility() { + return requestedVisibility; + } + + /** + * The failure reason for revoking the link. This field will only be present + * if the {@link LinkPermissions#getCanRevoke} is {@code false}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkAccessFailureReason getRevokeFailureReason() { + return revokeFailureReason; + } + + /** + * The type of audience who can benefit from the access level specified by + * the `link_access_level` field. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkAudience getEffectiveAudience() { + return effectiveAudience; + } + + /** + * The access level that the link will grant to its users. A link can grant + * additional rights to a user beyond their current access level. For + * example, if a user was invited as a viewer to a file, and then opens a + * link with `link_access_level` set to `editor`, then they will gain editor + * privileges. The `link_access_level` is a property of the link, and does + * not depend on who is calling this API. In particular, `link_access_level` + * does not take into account the API caller's current permissions to the + * content. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkAccessLevel getLinkAccessLevel() { + return linkAccessLevel; + } + + /** + * A list of link audience options the user might be able to set as the new + * audience. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getAudienceOptions() { + return audienceOptions; + } + + /** + * Whether the user can set a password for the link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getCanSetPassword() { + return canSetPassword; + } + + /** + * Whether the user can remove the password of the link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getCanRemovePassword() { + return canRemovePassword; + } + + /** + * Whether the user is required to provide a password to view the link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getRequirePassword() { + return requirePassword; + } + + /** + * Whether the user can use extended sharing controls, based on their + * account type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getCanUseExtendedSharingControls() { + return canUseExtendedSharingControls; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param canRevoke Whether the caller can revoke the shared link. + * @param visibilityPolicies A list of policies that the user might be able + * to set for the visibility. Must not contain a {@code null} item and + * not be {@code null}. + * @param canSetExpiry Whether the user can set the expiry settings of the + * link. This refers to the ability to create a new expiry and modify an + * existing expiry. + * @param canRemoveExpiry Whether the user can remove the expiry of the + * link. + * @param allowDownload Whether the link can be downloaded or not. + * @param canAllowDownload Whether the user can allow downloads via the + * link. This refers to the ability to remove a no-download restriction + * on the link. + * @param canDisallowDownload Whether the user can disallow downloads via + * the link. This refers to the ability to impose a no-download + * restriction on the link. + * @param allowComments Whether comments are enabled for the linked file. + * This takes the team commenting policy into account. + * @param teamRestrictsComments Whether the team has disabled commenting + * globally. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(boolean canRevoke, List visibilityPolicies, boolean canSetExpiry, boolean canRemoveExpiry, boolean allowDownload, boolean canAllowDownload, boolean canDisallowDownload, boolean allowComments, boolean teamRestrictsComments) { + return new Builder(canRevoke, visibilityPolicies, canSetExpiry, canRemoveExpiry, allowDownload, canAllowDownload, canDisallowDownload, allowComments, teamRestrictsComments); + } + + /** + * Builder for {@link LinkPermissions}. + */ + public static class Builder { + protected final boolean canRevoke; + protected final List visibilityPolicies; + protected final boolean canSetExpiry; + protected final boolean canRemoveExpiry; + protected final boolean allowDownload; + protected final boolean canAllowDownload; + protected final boolean canDisallowDownload; + protected final boolean allowComments; + protected final boolean teamRestrictsComments; + + protected ResolvedVisibility resolvedVisibility; + protected RequestedVisibility requestedVisibility; + protected SharedLinkAccessFailureReason revokeFailureReason; + protected LinkAudience effectiveAudience; + protected LinkAccessLevel linkAccessLevel; + protected List audienceOptions; + protected Boolean canSetPassword; + protected Boolean canRemovePassword; + protected Boolean requirePassword; + protected Boolean canUseExtendedSharingControls; + + protected Builder(boolean canRevoke, List visibilityPolicies, boolean canSetExpiry, boolean canRemoveExpiry, boolean allowDownload, boolean canAllowDownload, boolean canDisallowDownload, boolean allowComments, boolean teamRestrictsComments) { + this.canRevoke = canRevoke; + if (visibilityPolicies == null) { + throw new IllegalArgumentException("Required value for 'visibilityPolicies' is null"); + } + for (VisibilityPolicy x : visibilityPolicies) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'visibilityPolicies' is null"); + } + } + this.visibilityPolicies = visibilityPolicies; + this.canSetExpiry = canSetExpiry; + this.canRemoveExpiry = canRemoveExpiry; + this.allowDownload = allowDownload; + this.canAllowDownload = canAllowDownload; + this.canDisallowDownload = canDisallowDownload; + this.allowComments = allowComments; + this.teamRestrictsComments = teamRestrictsComments; + this.resolvedVisibility = null; + this.requestedVisibility = null; + this.revokeFailureReason = null; + this.effectiveAudience = null; + this.linkAccessLevel = null; + this.audienceOptions = null; + this.canSetPassword = null; + this.canRemovePassword = null; + this.requirePassword = null; + this.canUseExtendedSharingControls = null; + } + + /** + * Set value for optional field. + * + * @param resolvedVisibility The current visibility of the link after + * considering the shared links policies of the the team (in case + * the link's owner is part of a team) and the shared folder (in + * case the linked file is part of a shared folder). This field is + * shown only if the caller has access to this info (the link's + * owner always has access to this data). For some links, an + * effective_audience value is returned instead. + * + * @return this builder + */ + public Builder withResolvedVisibility(ResolvedVisibility resolvedVisibility) { + this.resolvedVisibility = resolvedVisibility; + return this; + } + + /** + * Set value for optional field. + * + * @param requestedVisibility The shared link's requested visibility. + * This can be overridden by the team and shared folder policies. + * The final visibility, after considering these policies, can be + * found in {@link LinkPermissions#getResolvedVisibility}. This is + * shown only if the caller is the link's owner and + * resolved_visibility is returned instead of effective_audience. + * + * @return this builder + */ + public Builder withRequestedVisibility(RequestedVisibility requestedVisibility) { + this.requestedVisibility = requestedVisibility; + return this; + } + + /** + * Set value for optional field. + * + * @param revokeFailureReason The failure reason for revoking the link. + * This field will only be present if the {@link + * LinkPermissions#getCanRevoke} is {@code false}. + * + * @return this builder + */ + public Builder withRevokeFailureReason(SharedLinkAccessFailureReason revokeFailureReason) { + this.revokeFailureReason = revokeFailureReason; + return this; + } + + /** + * Set value for optional field. + * + * @param effectiveAudience The type of audience who can benefit from + * the access level specified by the `link_access_level` field. + * + * @return this builder + */ + public Builder withEffectiveAudience(LinkAudience effectiveAudience) { + this.effectiveAudience = effectiveAudience; + return this; + } + + /** + * Set value for optional field. + * + * @param linkAccessLevel The access level that the link will grant to + * its users. A link can grant additional rights to a user beyond + * their current access level. For example, if a user was invited as + * a viewer to a file, and then opens a link with + * `link_access_level` set to `editor`, then they will gain editor + * privileges. The `link_access_level` is a property of the link, + * and does not depend on who is calling this API. In particular, + * `link_access_level` does not take into account the API caller's + * current permissions to the content. + * + * @return this builder + */ + public Builder withLinkAccessLevel(LinkAccessLevel linkAccessLevel) { + this.linkAccessLevel = linkAccessLevel; + return this; + } + + /** + * Set value for optional field. + * + * @param audienceOptions A list of link audience options the user + * might be able to set as the new audience. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAudienceOptions(List audienceOptions) { + if (audienceOptions != null) { + for (LinkAudienceOption x : audienceOptions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'audienceOptions' is null"); + } + } + } + this.audienceOptions = audienceOptions; + return this; + } + + /** + * Set value for optional field. + * + * @param canSetPassword Whether the user can set a password for the + * link. + * + * @return this builder + */ + public Builder withCanSetPassword(Boolean canSetPassword) { + this.canSetPassword = canSetPassword; + return this; + } + + /** + * Set value for optional field. + * + * @param canRemovePassword Whether the user can remove the password of + * the link. + * + * @return this builder + */ + public Builder withCanRemovePassword(Boolean canRemovePassword) { + this.canRemovePassword = canRemovePassword; + return this; + } + + /** + * Set value for optional field. + * + * @param requirePassword Whether the user is required to provide a + * password to view the link. + * + * @return this builder + */ + public Builder withRequirePassword(Boolean requirePassword) { + this.requirePassword = requirePassword; + return this; + } + + /** + * Set value for optional field. + * + * @param canUseExtendedSharingControls Whether the user can use + * extended sharing controls, based on their account type. + * + * @return this builder + */ + public Builder withCanUseExtendedSharingControls(Boolean canUseExtendedSharingControls) { + this.canUseExtendedSharingControls = canUseExtendedSharingControls; + return this; + } + + /** + * Builds an instance of {@link LinkPermissions} configured with this + * builder's values + * + * @return new instance of {@link LinkPermissions} + */ + public LinkPermissions build() { + return new LinkPermissions(canRevoke, visibilityPolicies, canSetExpiry, canRemoveExpiry, allowDownload, canAllowDownload, canDisallowDownload, allowComments, teamRestrictsComments, resolvedVisibility, requestedVisibility, revokeFailureReason, effectiveAudience, linkAccessLevel, audienceOptions, canSetPassword, canRemovePassword, requirePassword, canUseExtendedSharingControls); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.resolvedVisibility, + this.requestedVisibility, + this.canRevoke, + this.revokeFailureReason, + this.effectiveAudience, + this.linkAccessLevel, + this.visibilityPolicies, + this.canSetExpiry, + this.canRemoveExpiry, + this.allowDownload, + this.canAllowDownload, + this.canDisallowDownload, + this.allowComments, + this.teamRestrictsComments, + this.audienceOptions, + this.canSetPassword, + this.canRemovePassword, + this.requirePassword, + this.canUseExtendedSharingControls + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LinkPermissions other = (LinkPermissions) obj; + return (this.canRevoke == other.canRevoke) + && ((this.visibilityPolicies == other.visibilityPolicies) || (this.visibilityPolicies.equals(other.visibilityPolicies))) + && (this.canSetExpiry == other.canSetExpiry) + && (this.canRemoveExpiry == other.canRemoveExpiry) + && (this.allowDownload == other.allowDownload) + && (this.canAllowDownload == other.canAllowDownload) + && (this.canDisallowDownload == other.canDisallowDownload) + && (this.allowComments == other.allowComments) + && (this.teamRestrictsComments == other.teamRestrictsComments) + && ((this.resolvedVisibility == other.resolvedVisibility) || (this.resolvedVisibility != null && this.resolvedVisibility.equals(other.resolvedVisibility))) + && ((this.requestedVisibility == other.requestedVisibility) || (this.requestedVisibility != null && this.requestedVisibility.equals(other.requestedVisibility))) + && ((this.revokeFailureReason == other.revokeFailureReason) || (this.revokeFailureReason != null && this.revokeFailureReason.equals(other.revokeFailureReason))) + && ((this.effectiveAudience == other.effectiveAudience) || (this.effectiveAudience != null && this.effectiveAudience.equals(other.effectiveAudience))) + && ((this.linkAccessLevel == other.linkAccessLevel) || (this.linkAccessLevel != null && this.linkAccessLevel.equals(other.linkAccessLevel))) + && ((this.audienceOptions == other.audienceOptions) || (this.audienceOptions != null && this.audienceOptions.equals(other.audienceOptions))) + && ((this.canSetPassword == other.canSetPassword) || (this.canSetPassword != null && this.canSetPassword.equals(other.canSetPassword))) + && ((this.canRemovePassword == other.canRemovePassword) || (this.canRemovePassword != null && this.canRemovePassword.equals(other.canRemovePassword))) + && ((this.requirePassword == other.requirePassword) || (this.requirePassword != null && this.requirePassword.equals(other.requirePassword))) + && ((this.canUseExtendedSharingControls == other.canUseExtendedSharingControls) || (this.canUseExtendedSharingControls != null && this.canUseExtendedSharingControls.equals(other.canUseExtendedSharingControls))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkPermissions value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("can_revoke"); + StoneSerializers.boolean_().serialize(value.canRevoke, g); + g.writeFieldName("visibility_policies"); + StoneSerializers.list(VisibilityPolicy.Serializer.INSTANCE).serialize(value.visibilityPolicies, g); + g.writeFieldName("can_set_expiry"); + StoneSerializers.boolean_().serialize(value.canSetExpiry, g); + g.writeFieldName("can_remove_expiry"); + StoneSerializers.boolean_().serialize(value.canRemoveExpiry, g); + g.writeFieldName("allow_download"); + StoneSerializers.boolean_().serialize(value.allowDownload, g); + g.writeFieldName("can_allow_download"); + StoneSerializers.boolean_().serialize(value.canAllowDownload, g); + g.writeFieldName("can_disallow_download"); + StoneSerializers.boolean_().serialize(value.canDisallowDownload, g); + g.writeFieldName("allow_comments"); + StoneSerializers.boolean_().serialize(value.allowComments, g); + g.writeFieldName("team_restricts_comments"); + StoneSerializers.boolean_().serialize(value.teamRestrictsComments, g); + if (value.resolvedVisibility != null) { + g.writeFieldName("resolved_visibility"); + StoneSerializers.nullable(ResolvedVisibility.Serializer.INSTANCE).serialize(value.resolvedVisibility, g); + } + if (value.requestedVisibility != null) { + g.writeFieldName("requested_visibility"); + StoneSerializers.nullable(RequestedVisibility.Serializer.INSTANCE).serialize(value.requestedVisibility, g); + } + if (value.revokeFailureReason != null) { + g.writeFieldName("revoke_failure_reason"); + StoneSerializers.nullable(SharedLinkAccessFailureReason.Serializer.INSTANCE).serialize(value.revokeFailureReason, g); + } + if (value.effectiveAudience != null) { + g.writeFieldName("effective_audience"); + StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).serialize(value.effectiveAudience, g); + } + if (value.linkAccessLevel != null) { + g.writeFieldName("link_access_level"); + StoneSerializers.nullable(LinkAccessLevel.Serializer.INSTANCE).serialize(value.linkAccessLevel, g); + } + if (value.audienceOptions != null) { + g.writeFieldName("audience_options"); + StoneSerializers.nullable(StoneSerializers.list(LinkAudienceOption.Serializer.INSTANCE)).serialize(value.audienceOptions, g); + } + if (value.canSetPassword != null) { + g.writeFieldName("can_set_password"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.canSetPassword, g); + } + if (value.canRemovePassword != null) { + g.writeFieldName("can_remove_password"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.canRemovePassword, g); + } + if (value.requirePassword != null) { + g.writeFieldName("require_password"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.requirePassword, g); + } + if (value.canUseExtendedSharingControls != null) { + g.writeFieldName("can_use_extended_sharing_controls"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.canUseExtendedSharingControls, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LinkPermissions deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LinkPermissions value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_canRevoke = null; + List f_visibilityPolicies = null; + Boolean f_canSetExpiry = null; + Boolean f_canRemoveExpiry = null; + Boolean f_allowDownload = null; + Boolean f_canAllowDownload = null; + Boolean f_canDisallowDownload = null; + Boolean f_allowComments = null; + Boolean f_teamRestrictsComments = null; + ResolvedVisibility f_resolvedVisibility = null; + RequestedVisibility f_requestedVisibility = null; + SharedLinkAccessFailureReason f_revokeFailureReason = null; + LinkAudience f_effectiveAudience = null; + LinkAccessLevel f_linkAccessLevel = null; + List f_audienceOptions = null; + Boolean f_canSetPassword = null; + Boolean f_canRemovePassword = null; + Boolean f_requirePassword = null; + Boolean f_canUseExtendedSharingControls = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("can_revoke".equals(field)) { + f_canRevoke = StoneSerializers.boolean_().deserialize(p); + } + else if ("visibility_policies".equals(field)) { + f_visibilityPolicies = StoneSerializers.list(VisibilityPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("can_set_expiry".equals(field)) { + f_canSetExpiry = StoneSerializers.boolean_().deserialize(p); + } + else if ("can_remove_expiry".equals(field)) { + f_canRemoveExpiry = StoneSerializers.boolean_().deserialize(p); + } + else if ("allow_download".equals(field)) { + f_allowDownload = StoneSerializers.boolean_().deserialize(p); + } + else if ("can_allow_download".equals(field)) { + f_canAllowDownload = StoneSerializers.boolean_().deserialize(p); + } + else if ("can_disallow_download".equals(field)) { + f_canDisallowDownload = StoneSerializers.boolean_().deserialize(p); + } + else if ("allow_comments".equals(field)) { + f_allowComments = StoneSerializers.boolean_().deserialize(p); + } + else if ("team_restricts_comments".equals(field)) { + f_teamRestrictsComments = StoneSerializers.boolean_().deserialize(p); + } + else if ("resolved_visibility".equals(field)) { + f_resolvedVisibility = StoneSerializers.nullable(ResolvedVisibility.Serializer.INSTANCE).deserialize(p); + } + else if ("requested_visibility".equals(field)) { + f_requestedVisibility = StoneSerializers.nullable(RequestedVisibility.Serializer.INSTANCE).deserialize(p); + } + else if ("revoke_failure_reason".equals(field)) { + f_revokeFailureReason = StoneSerializers.nullable(SharedLinkAccessFailureReason.Serializer.INSTANCE).deserialize(p); + } + else if ("effective_audience".equals(field)) { + f_effectiveAudience = StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else if ("link_access_level".equals(field)) { + f_linkAccessLevel = StoneSerializers.nullable(LinkAccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("audience_options".equals(field)) { + f_audienceOptions = StoneSerializers.nullable(StoneSerializers.list(LinkAudienceOption.Serializer.INSTANCE)).deserialize(p); + } + else if ("can_set_password".equals(field)) { + f_canSetPassword = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("can_remove_password".equals(field)) { + f_canRemovePassword = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("require_password".equals(field)) { + f_requirePassword = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("can_use_extended_sharing_controls".equals(field)) { + f_canUseExtendedSharingControls = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_canRevoke == null) { + throw new JsonParseException(p, "Required field \"can_revoke\" missing."); + } + if (f_visibilityPolicies == null) { + throw new JsonParseException(p, "Required field \"visibility_policies\" missing."); + } + if (f_canSetExpiry == null) { + throw new JsonParseException(p, "Required field \"can_set_expiry\" missing."); + } + if (f_canRemoveExpiry == null) { + throw new JsonParseException(p, "Required field \"can_remove_expiry\" missing."); + } + if (f_allowDownload == null) { + throw new JsonParseException(p, "Required field \"allow_download\" missing."); + } + if (f_canAllowDownload == null) { + throw new JsonParseException(p, "Required field \"can_allow_download\" missing."); + } + if (f_canDisallowDownload == null) { + throw new JsonParseException(p, "Required field \"can_disallow_download\" missing."); + } + if (f_allowComments == null) { + throw new JsonParseException(p, "Required field \"allow_comments\" missing."); + } + if (f_teamRestrictsComments == null) { + throw new JsonParseException(p, "Required field \"team_restricts_comments\" missing."); + } + value = new LinkPermissions(f_canRevoke, f_visibilityPolicies, f_canSetExpiry, f_canRemoveExpiry, f_allowDownload, f_canAllowDownload, f_canDisallowDownload, f_allowComments, f_teamRestrictsComments, f_resolvedVisibility, f_requestedVisibility, f_revokeFailureReason, f_effectiveAudience, f_linkAccessLevel, f_audienceOptions, f_canSetPassword, f_canRemovePassword, f_requirePassword, f_canUseExtendedSharingControls); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkSettings.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkSettings.java new file mode 100644 index 000000000..efda61c4b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/LinkSettings.java @@ -0,0 +1,318 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Settings that apply to a link. + */ +public class LinkSettings { + // struct sharing.LinkSettings (shared_content_links.stone) + + @Nullable + protected final AccessLevel accessLevel; + @Nullable + protected final LinkAudience audience; + @Nullable + protected final LinkExpiry expiry; + @Nullable + protected final LinkPassword password; + + /** + * Settings that apply to a link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessLevel The access level on the link for this file. + * Currently, it only accepts 'viewer' and 'viewer_no_comment'. + * @param audience The type of audience on the link for this file. + * @param expiry An expiry timestamp to set on a link. + * @param password The password for the link. + */ + public LinkSettings(@Nullable AccessLevel accessLevel, @Nullable LinkAudience audience, @Nullable LinkExpiry expiry, @Nullable LinkPassword password) { + this.accessLevel = accessLevel; + this.audience = audience; + this.expiry = expiry; + this.password = password; + } + + /** + * Settings that apply to a link. + * + *

The default values for unset fields will be used.

+ */ + public LinkSettings() { + this(null, null, null, null); + } + + /** + * The access level on the link for this file. Currently, it only accepts + * 'viewer' and 'viewer_no_comment'. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getAccessLevel() { + return accessLevel; + } + + /** + * The type of audience on the link for this file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkAudience getAudience() { + return audience; + } + + /** + * An expiry timestamp to set on a link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkExpiry getExpiry() { + return expiry; + } + + /** + * The password for the link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkPassword getPassword() { + return password; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link LinkSettings}. + */ + public static class Builder { + + protected AccessLevel accessLevel; + protected LinkAudience audience; + protected LinkExpiry expiry; + protected LinkPassword password; + + protected Builder() { + this.accessLevel = null; + this.audience = null; + this.expiry = null; + this.password = null; + } + + /** + * Set value for optional field. + * + * @param accessLevel The access level on the link for this file. + * Currently, it only accepts 'viewer' and 'viewer_no_comment'. + * + * @return this builder + */ + public Builder withAccessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * Set value for optional field. + * + * @param audience The type of audience on the link for this file. + * + * @return this builder + */ + public Builder withAudience(LinkAudience audience) { + this.audience = audience; + return this; + } + + /** + * Set value for optional field. + * + * @param expiry An expiry timestamp to set on a link. + * + * @return this builder + */ + public Builder withExpiry(LinkExpiry expiry) { + this.expiry = expiry; + return this; + } + + /** + * Set value for optional field. + * + * @param password The password for the link. + * + * @return this builder + */ + public Builder withPassword(LinkPassword password) { + this.password = password; + return this; + } + + /** + * Builds an instance of {@link LinkSettings} configured with this + * builder's values + * + * @return new instance of {@link LinkSettings} + */ + public LinkSettings build() { + return new LinkSettings(accessLevel, audience, expiry, password); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessLevel, + this.audience, + this.expiry, + this.password + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LinkSettings other = (LinkSettings) obj; + return ((this.accessLevel == other.accessLevel) || (this.accessLevel != null && this.accessLevel.equals(other.accessLevel))) + && ((this.audience == other.audience) || (this.audience != null && this.audience.equals(other.audience))) + && ((this.expiry == other.expiry) || (this.expiry != null && this.expiry.equals(other.expiry))) + && ((this.password == other.password) || (this.password != null && this.password.equals(other.password))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkSettings value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.accessLevel != null) { + g.writeFieldName("access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.accessLevel, g); + } + if (value.audience != null) { + g.writeFieldName("audience"); + StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).serialize(value.audience, g); + } + if (value.expiry != null) { + g.writeFieldName("expiry"); + StoneSerializers.nullable(LinkExpiry.Serializer.INSTANCE).serialize(value.expiry, g); + } + if (value.password != null) { + g.writeFieldName("password"); + StoneSerializers.nullable(LinkPassword.Serializer.INSTANCE).serialize(value.password, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LinkSettings deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LinkSettings value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessLevel = null; + LinkAudience f_audience = null; + LinkExpiry f_expiry = null; + LinkPassword f_password = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_level".equals(field)) { + f_accessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("audience".equals(field)) { + f_audience = StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else if ("expiry".equals(field)) { + f_expiry = StoneSerializers.nullable(LinkExpiry.Serializer.INSTANCE).deserialize(p); + } + else if ("password".equals(field)) { + f_password = StoneSerializers.nullable(LinkPassword.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new LinkSettings(f_accessLevel, f_audience, f_expiry, f_password); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersArg.java new file mode 100644 index 000000000..7a06918e5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersArg.java @@ -0,0 +1,400 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments for {@link DbxUserSharingRequests#listFileMembers(String)}. + */ +class ListFileMembersArg { + // struct sharing.ListFileMembersArg (sharing_files.stone) + + @Nonnull + protected final String file; + @Nullable + protected final List actions; + protected final boolean includeInherited; + protected final long limit; + + /** + * Arguments for {@link DbxUserSharingRequests#listFileMembers(String)}. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param file The file for which you want to see members. Must have length + * of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param actions The actions for which to return permissions on a member. + * Must not contain a {@code null} item. + * @param includeInherited Whether to include members who only have access + * from a parent shared folder. + * @param limit Number of members to return max per query. Defaults to 100 + * if no limit is specified. Must be greater than or equal to 1 and be + * less than or equal to 300. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersArg(@Nonnull String file, @Nullable List actions, boolean includeInherited, long limit) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (actions != null) { + for (MemberAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + this.includeInherited = includeInherited; + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 300L) { + throw new IllegalArgumentException("Number 'limit' is larger than 300L"); + } + this.limit = limit; + } + + /** + * Arguments for {@link DbxUserSharingRequests#listFileMembers(String)}. + * + *

The default values for unset fields will be used.

+ * + * @param file The file for which you want to see members. Must have length + * of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersArg(@Nonnull String file) { + this(file, null, true, 100L); + } + + /** + * The file for which you want to see members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + /** + * The actions for which to return permissions on a member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + /** + * Whether to include members who only have access from a parent shared + * folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeInherited() { + return includeInherited; + } + + /** + * Number of members to return max per query. Defaults to 100 if no limit is + * specified. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 100L. + */ + public long getLimit() { + return limit; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param file The file for which you want to see members. Must have length + * of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String file) { + return new Builder(file); + } + + /** + * Builder for {@link ListFileMembersArg}. + */ + public static class Builder { + protected final String file; + + protected List actions; + protected boolean includeInherited; + protected long limit; + + protected Builder(String file) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + this.actions = null; + this.includeInherited = true; + this.limit = 100L; + } + + /** + * Set value for optional field. + * + * @param actions The actions for which to return permissions on a + * member. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActions(List actions) { + if (actions != null) { + for (MemberAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeInherited Whether to include members who only have + * access from a parent shared folder. Defaults to {@code true} when + * set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeInherited(Boolean includeInherited) { + if (includeInherited != null) { + this.includeInherited = includeInherited; + } + else { + this.includeInherited = true; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 100L}. + *

+ * + * @param limit Number of members to return max per query. Defaults to + * 100 if no limit is specified. Must be greater than or equal to 1 + * and be less than or equal to 300. Defaults to {@code 100L} when + * set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 300L) { + throw new IllegalArgumentException("Number 'limit' is larger than 300L"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 100L; + } + return this; + } + + /** + * Builds an instance of {@link ListFileMembersArg} configured with this + * builder's values + * + * @return new instance of {@link ListFileMembersArg} + */ + public ListFileMembersArg build() { + return new ListFileMembersArg(file, actions, includeInherited, limit); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file, + this.actions, + this.includeInherited, + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileMembersArg other = (ListFileMembersArg) obj; + return ((this.file == other.file) || (this.file.equals(other.file))) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + && (this.includeInherited == other.includeInherited) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(MemberAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + g.writeFieldName("include_inherited"); + StoneSerializers.boolean_().serialize(value.includeInherited, g); + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileMembersArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileMembersArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + List f_actions = null; + Boolean f_includeInherited = true; + Long f_limit = 100L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(MemberAction.Serializer.INSTANCE)).deserialize(p); + } + else if ("include_inherited".equals(field)) { + f_includeInherited = StoneSerializers.boolean_().deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + value = new ListFileMembersArg(f_file, f_actions, f_includeInherited, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBatchArg.java new file mode 100644 index 000000000..8cb7c676c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBatchArg.java @@ -0,0 +1,211 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link DbxUserSharingRequests#listFileMembersBatch(List,long)}. + */ +class ListFileMembersBatchArg { + // struct sharing.ListFileMembersBatchArg (sharing_files.stone) + + @Nonnull + protected final List files; + protected final long limit; + + /** + * Arguments for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + * + * @param files Files for which to return members. Must contain at most 100 + * items, not contain a {@code null} item, and not be {@code null}. + * @param limit Number of members to return max per query. Defaults to 10 + * if no limit is specified. Must be less than or equal to 20. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersBatchArg(@Nonnull List files, long limit) { + if (files == null) { + throw new IllegalArgumentException("Required value for 'files' is null"); + } + if (files.size() > 100) { + throw new IllegalArgumentException("List 'files' has more than 100 items"); + } + for (String x : files) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'files' is null"); + } + if (x.length() < 1) { + throw new IllegalArgumentException("Stringan item in list 'files' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", x)) { + throw new IllegalArgumentException("Stringan item in list 'files' does not match pattern"); + } + } + this.files = files; + if (limit > 20L) { + throw new IllegalArgumentException("Number 'limit' is larger than 20L"); + } + this.limit = limit; + } + + /** + * Arguments for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + * + *

The default values for unset fields will be used.

+ * + * @param files Files for which to return members. Must contain at most 100 + * items, not contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersBatchArg(@Nonnull List files) { + this(files, 10L); + } + + /** + * Files for which to return members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFiles() { + return files; + } + + /** + * Number of members to return max per query. Defaults to 10 if no limit is + * specified. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 10L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.files, + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileMembersBatchArg other = (ListFileMembersBatchArg) obj; + return ((this.files == other.files) || (this.files.equals(other.files))) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("files"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.files, g); + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileMembersBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileMembersBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_files = null; + Long f_limit = 10L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("files".equals(field)) { + f_files = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_files == null) { + throw new JsonParseException(p, "Required field \"files\" missing."); + } + value = new ListFileMembersBatchArg(f_files, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBatchResult.java new file mode 100644 index 000000000..0776870a8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBatchResult.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Per-file result for {@link + * DbxUserSharingRequests#listFileMembersBatch(java.util.List,long)}. + */ +public class ListFileMembersBatchResult { + // struct sharing.ListFileMembersBatchResult (sharing_files.stone) + + @Nonnull + protected final String file; + @Nonnull + protected final ListFileMembersIndividualResult result; + + /** + * Per-file result for {@link + * DbxUserSharingRequests#listFileMembersBatch(java.util.List,long)}. + * + * @param file This is the input file identifier, whether an ID or a path. + * Must have length of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param result The result for this particular file. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersBatchResult(@Nonnull String file, @Nonnull ListFileMembersIndividualResult result) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (result == null) { + throw new IllegalArgumentException("Required value for 'result' is null"); + } + this.result = result; + } + + /** + * This is the input file identifier, whether an ID or a path. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + /** + * The result for this particular file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ListFileMembersIndividualResult getResult() { + return result; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file, + this.result + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileMembersBatchResult other = (ListFileMembersBatchResult) obj; + return ((this.file == other.file) || (this.file.equals(other.file))) + && ((this.result == other.result) || (this.result.equals(other.result))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + g.writeFieldName("result"); + ListFileMembersIndividualResult.Serializer.INSTANCE.serialize(value.result, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileMembersBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileMembersBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + ListFileMembersIndividualResult f_result = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else if ("result".equals(field)) { + f_result = ListFileMembersIndividualResult.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + if (f_result == null) { + throw new JsonParseException(p, "Required field \"result\" missing."); + } + value = new ListFileMembersBatchResult(f_file, f_result); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBuilder.java new file mode 100644 index 000000000..86b5b9829 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersBuilder.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#listFileMembersBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListFileMembersBuilder { + private final DbxUserSharingRequests _client; + private final ListFileMembersArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListFileMembersBuilder(DbxUserSharingRequests _client, ListFileMembersArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param actions The actions for which to return permissions on a member. + * Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersBuilder withActions(List actions) { + this._builder.withActions(actions); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeInherited Whether to include members who only have access + * from a parent shared folder. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public ListFileMembersBuilder withIncludeInherited(Boolean includeInherited) { + this._builder.withIncludeInherited(includeInherited); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 100L}.

+ * + * @param limit Number of members to return max per query. Defaults to 100 + * if no limit is specified. Must be greater than or equal to 1 and be + * less than or equal to 300. Defaults to {@code 100L} when set to + * {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Issues the request. + */ + public SharedFileMembers start() throws ListFileMembersErrorException, DbxException { + ListFileMembersArg arg_ = this._builder.build(); + return _client.listFileMembers(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueArg.java new file mode 100644 index 000000000..42fb5b3f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueArg.java @@ -0,0 +1,159 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link DbxUserSharingRequests#listFileMembersContinue(String)}. + */ +class ListFileMembersContinueArg { + // struct sharing.ListFileMembersContinueArg (sharing_files.stone) + + @Nonnull + protected final String cursor; + + /** + * Arguments for {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}. + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserSharingRequests#listFileMembers(String)}, {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}, or {@link + * DbxUserSharingRequests#listFileMembersBatch(java.util.List,long)}. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The cursor returned by your last call to {@link + * DbxUserSharingRequests#listFileMembers(String)}, {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}, or {@link + * DbxUserSharingRequests#listFileMembersBatch(java.util.List,long)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileMembersContinueArg other = (ListFileMembersContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileMembersContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileMembersContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFileMembersContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueError.java new file mode 100644 index 000000000..404eae852 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueError.java @@ -0,0 +1,391 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error for {@link DbxUserSharingRequests#listFileMembersContinue(String)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListFileMembersContinueError { + // union sharing.ListFileMembersContinueError (sharing_files.stone) + + /** + * Discriminating tag type for {@link ListFileMembersContinueError}. + */ + public enum Tag { + USER_ERROR, // SharingUserError + ACCESS_ERROR, // SharingFileAccessError + /** + * {@link ListFileMembersContinueArg#getCursor} is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * {@link ListFileMembersContinueArg#getCursor} is invalid. + */ + public static final ListFileMembersContinueError INVALID_CURSOR = new ListFileMembersContinueError().withTag(Tag.INVALID_CURSOR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListFileMembersContinueError OTHER = new ListFileMembersContinueError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingUserError userErrorValue; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListFileMembersContinueError() { + } + + + /** + * Error for {@link DbxUserSharingRequests#listFileMembersContinue(String)}. + * + * @param _tag Discriminating tag for this instance. + */ + private ListFileMembersContinueError withTag(Tag _tag) { + ListFileMembersContinueError result = new ListFileMembersContinueError(); + result._tag = _tag; + return result; + } + + /** + * Error for {@link DbxUserSharingRequests#listFileMembersContinue(String)}. + * + * @param userErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFileMembersContinueError withTagAndUserError(Tag _tag, SharingUserError userErrorValue) { + ListFileMembersContinueError result = new ListFileMembersContinueError(); + result._tag = _tag; + result.userErrorValue = userErrorValue; + return result; + } + + /** + * Error for {@link DbxUserSharingRequests#listFileMembersContinue(String)}. + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFileMembersContinueError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + ListFileMembersContinueError result = new ListFileMembersContinueError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListFileMembersContinueError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ERROR}, {@code false} otherwise. + */ + public boolean isUserError() { + return this._tag == Tag.USER_ERROR; + } + + /** + * Returns an instance of {@code ListFileMembersContinueError} that has its + * tag set to {@link Tag#USER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFileMembersContinueError} with its tag set + * to {@link Tag#USER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFileMembersContinueError userError(SharingUserError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFileMembersContinueError().withTagAndUserError(Tag.USER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_ERROR}. + * + * @return The {@link SharingUserError} value associated with this instance + * if {@link #isUserError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserError} is {@code false}. + */ + public SharingUserError getUserErrorValue() { + if (this._tag != Tag.USER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ERROR, but was Tag." + this._tag.name()); + } + return userErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code ListFileMembersContinueError} that has its + * tag set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFileMembersContinueError} with its tag set + * to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFileMembersContinueError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFileMembersContinueError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_CURSOR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_CURSOR}, {@code false} otherwise. + */ + public boolean isInvalidCursor() { + return this._tag == Tag.INVALID_CURSOR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userErrorValue, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListFileMembersContinueError) { + ListFileMembersContinueError other = (ListFileMembersContinueError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_ERROR: + return (this.userErrorValue == other.userErrorValue) || (this.userErrorValue.equals(other.userErrorValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case INVALID_CURSOR: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_ERROR: { + g.writeStartObject(); + writeTag("user_error", g); + g.writeFieldName("user_error"); + SharingUserError.Serializer.INSTANCE.serialize(value.userErrorValue, g); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFileMembersContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFileMembersContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_error".equals(tag)) { + SharingUserError fieldValue = null; + expectField("user_error", p); + fieldValue = SharingUserError.Serializer.INSTANCE.deserialize(p); + value = ListFileMembersContinueError.userError(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = ListFileMembersContinueError.accessError(fieldValue); + } + else if ("invalid_cursor".equals(tag)) { + value = ListFileMembersContinueError.INVALID_CURSOR; + } + else { + value = ListFileMembersContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueErrorException.java new file mode 100644 index 000000000..cf8a00fca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFileMembersContinueError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}.

+ */ +public class ListFileMembersContinueErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/list_file_members/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}. + */ + public final ListFileMembersContinueError errorValue; + + public ListFileMembersContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFileMembersContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersCountResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersCountResult.java new file mode 100644 index 000000000..bfbaf123c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersCountResult.java @@ -0,0 +1,173 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ListFileMembersCountResult { + // struct sharing.ListFileMembersCountResult (sharing_files.stone) + + @Nonnull + protected final SharedFileMembers members; + protected final long memberCount; + + /** + * + * @param members A list of members on this file. Must not be {@code null}. + * @param memberCount The number of members on this file. This does not + * include inherited members. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFileMembersCountResult(@Nonnull SharedFileMembers members, long memberCount) { + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + this.members = members; + this.memberCount = memberCount; + } + + /** + * A list of members on this file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedFileMembers getMembers() { + return members; + } + + /** + * The number of members on this file. This does not include inherited + * members. + * + * @return value for this field. + */ + public long getMemberCount() { + return memberCount; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members, + this.memberCount + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFileMembersCountResult other = (ListFileMembersCountResult) obj; + return ((this.members == other.members) || (this.members.equals(other.members))) + && (this.memberCount == other.memberCount) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersCountResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("members"); + SharedFileMembers.Serializer.INSTANCE.serialize(value.members, g); + g.writeFieldName("member_count"); + StoneSerializers.uInt32().serialize(value.memberCount, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFileMembersCountResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFileMembersCountResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharedFileMembers f_members = null; + Long f_memberCount = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("members".equals(field)) { + f_members = SharedFileMembers.Serializer.INSTANCE.deserialize(p); + } + else if ("member_count".equals(field)) { + f_memberCount = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + if (f_memberCount == null) { + throw new JsonParseException(p, "Required field \"member_count\" missing."); + } + value = new ListFileMembersCountResult(f_members, f_memberCount); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersError.java new file mode 100644 index 000000000..3af1be85b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersError.java @@ -0,0 +1,363 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error for {@link DbxUserSharingRequests#listFileMembers(String)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListFileMembersError { + // union sharing.ListFileMembersError (sharing_files.stone) + + /** + * Discriminating tag type for {@link ListFileMembersError}. + */ + public enum Tag { + USER_ERROR, // SharingUserError + ACCESS_ERROR, // SharingFileAccessError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListFileMembersError OTHER = new ListFileMembersError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingUserError userErrorValue; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListFileMembersError() { + } + + + /** + * Error for {@link DbxUserSharingRequests#listFileMembers(String)}. + * + * @param _tag Discriminating tag for this instance. + */ + private ListFileMembersError withTag(Tag _tag) { + ListFileMembersError result = new ListFileMembersError(); + result._tag = _tag; + return result; + } + + /** + * Error for {@link DbxUserSharingRequests#listFileMembers(String)}. + * + * @param userErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFileMembersError withTagAndUserError(Tag _tag, SharingUserError userErrorValue) { + ListFileMembersError result = new ListFileMembersError(); + result._tag = _tag; + result.userErrorValue = userErrorValue; + return result; + } + + /** + * Error for {@link DbxUserSharingRequests#listFileMembers(String)}. + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFileMembersError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + ListFileMembersError result = new ListFileMembersError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListFileMembersError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ERROR}, {@code false} otherwise. + */ + public boolean isUserError() { + return this._tag == Tag.USER_ERROR; + } + + /** + * Returns an instance of {@code ListFileMembersError} that has its tag set + * to {@link Tag#USER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFileMembersError} with its tag set to + * {@link Tag#USER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFileMembersError userError(SharingUserError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFileMembersError().withTagAndUserError(Tag.USER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_ERROR}. + * + * @return The {@link SharingUserError} value associated with this instance + * if {@link #isUserError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserError} is {@code false}. + */ + public SharingUserError getUserErrorValue() { + if (this._tag != Tag.USER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ERROR, but was Tag." + this._tag.name()); + } + return userErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code ListFileMembersError} that has its tag set + * to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFileMembersError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFileMembersError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFileMembersError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userErrorValue, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListFileMembersError) { + ListFileMembersError other = (ListFileMembersError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_ERROR: + return (this.userErrorValue == other.userErrorValue) || (this.userErrorValue.equals(other.userErrorValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_ERROR: { + g.writeStartObject(); + writeTag("user_error", g); + g.writeFieldName("user_error"); + SharingUserError.Serializer.INSTANCE.serialize(value.userErrorValue, g); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFileMembersError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFileMembersError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_error".equals(tag)) { + SharingUserError fieldValue = null; + expectField("user_error", p); + fieldValue = SharingUserError.Serializer.INSTANCE.deserialize(p); + value = ListFileMembersError.userError(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = ListFileMembersError.accessError(fieldValue); + } + else { + value = ListFileMembersError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersErrorException.java new file mode 100644 index 000000000..b671a74d2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListFileMembersError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#listFileMembers(String)}.

+ */ +public class ListFileMembersErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/list_file_members + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#listFileMembers(String)}. + */ + public final ListFileMembersError errorValue; + + public ListFileMembersErrorException(String routeName, String requestId, LocalizedText userMessage, ListFileMembersError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersIndividualResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersIndividualResult.java new file mode 100644 index 000000000..6ee4fab2a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersIndividualResult.java @@ -0,0 +1,368 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListFileMembersIndividualResult { + // union sharing.ListFileMembersIndividualResult (sharing_files.stone) + + /** + * Discriminating tag type for {@link ListFileMembersIndividualResult}. + */ + public enum Tag { + /** + * The results of the query for this file if it was successful. + */ + RESULT, // ListFileMembersCountResult + /** + * The result of the query for this file if it was an error. + */ + ACCESS_ERROR, // SharingFileAccessError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListFileMembersIndividualResult OTHER = new ListFileMembersIndividualResult().withTag(Tag.OTHER); + + private Tag _tag; + private ListFileMembersCountResult resultValue; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListFileMembersIndividualResult() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListFileMembersIndividualResult withTag(Tag _tag) { + ListFileMembersIndividualResult result = new ListFileMembersIndividualResult(); + result._tag = _tag; + return result; + } + + /** + * + * @param resultValue The results of the query for this file if it was + * successful. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFileMembersIndividualResult withTagAndResult(Tag _tag, ListFileMembersCountResult resultValue) { + ListFileMembersIndividualResult result = new ListFileMembersIndividualResult(); + result._tag = _tag; + result.resultValue = resultValue; + return result; + } + + /** + * + * @param accessErrorValue The result of the query for this file if it was + * an error. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFileMembersIndividualResult withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + ListFileMembersIndividualResult result = new ListFileMembersIndividualResult(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListFileMembersIndividualResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#RESULT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#RESULT}, + * {@code false} otherwise. + */ + public boolean isResult() { + return this._tag == Tag.RESULT; + } + + /** + * Returns an instance of {@code ListFileMembersIndividualResult} that has + * its tag set to {@link Tag#RESULT}. + * + *

The results of the query for this file if it was successful.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFileMembersIndividualResult} with its tag + * set to {@link Tag#RESULT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFileMembersIndividualResult result(ListFileMembersCountResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFileMembersIndividualResult().withTagAndResult(Tag.RESULT, value); + } + + /** + * The results of the query for this file if it was successful. + * + *

This instance must be tagged as {@link Tag#RESULT}.

+ * + * @return The {@link ListFileMembersCountResult} value associated with this + * instance if {@link #isResult} is {@code true}. + * + * @throws IllegalStateException If {@link #isResult} is {@code false}. + */ + public ListFileMembersCountResult getResultValue() { + if (this._tag != Tag.RESULT) { + throw new IllegalStateException("Invalid tag: required Tag.RESULT, but was Tag." + this._tag.name()); + } + return resultValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code ListFileMembersIndividualResult} that has + * its tag set to {@link Tag#ACCESS_ERROR}. + * + *

The result of the query for this file if it was an error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFileMembersIndividualResult} with its tag + * set to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFileMembersIndividualResult accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFileMembersIndividualResult().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * The result of the query for this file if it was an error. + * + *

This instance must be tagged as {@link Tag#ACCESS_ERROR}.

+ * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.resultValue, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListFileMembersIndividualResult) { + ListFileMembersIndividualResult other = (ListFileMembersIndividualResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case RESULT: + return (this.resultValue == other.resultValue) || (this.resultValue.equals(other.resultValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFileMembersIndividualResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case RESULT: { + g.writeStartObject(); + writeTag("result", g); + ListFileMembersCountResult.Serializer.INSTANCE.serialize(value.resultValue, g, true); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFileMembersIndividualResult deserialize(JsonParser p) throws IOException, JsonParseException { + ListFileMembersIndividualResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("result".equals(tag)) { + ListFileMembersCountResult fieldValue = null; + fieldValue = ListFileMembersCountResult.Serializer.INSTANCE.deserialize(p, true); + value = ListFileMembersIndividualResult.result(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = ListFileMembersIndividualResult.accessError(fieldValue); + } + else { + value = ListFileMembersIndividualResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesArg.java new file mode 100644 index 000000000..b141f5b5e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesArg.java @@ -0,0 +1,296 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments for {@link DbxUserSharingRequests#listReceivedFiles}. + */ +class ListFilesArg { + // struct sharing.ListFilesArg (sharing_files.stone) + + protected final long limit; + @Nullable + protected final List actions; + + /** + * Arguments for {@link DbxUserSharingRequests#listReceivedFiles}. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param limit Number of files to return max per query. Defaults to 100 if + * no limit is specified. Must be greater than or equal to 1 and be less + * than or equal to 300. + * @param actions A list of `FileAction`s corresponding to + * `FilePermission`s that should appear in the response's {@link + * SharedFileMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the file. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFilesArg(long limit, @Nullable List actions) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 300L) { + throw new IllegalArgumentException("Number 'limit' is larger than 300L"); + } + this.limit = limit; + if (actions != null) { + for (FileAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + } + + /** + * Arguments for {@link DbxUserSharingRequests#listReceivedFiles}. + * + *

The default values for unset fields will be used.

+ */ + public ListFilesArg() { + this(100L, null); + } + + /** + * Number of files to return max per query. Defaults to 100 if no limit is + * specified. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 100L. + */ + public long getLimit() { + return limit; + } + + /** + * A list of `FileAction`s corresponding to `FilePermission`s that should + * appear in the response's {@link SharedFileMetadata#getPermissions} field + * describing the actions the authenticated user can perform on the file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListFilesArg}. + */ + public static class Builder { + + protected long limit; + protected List actions; + + protected Builder() { + this.limit = 100L; + this.actions = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 100L}. + *

+ * + * @param limit Number of files to return max per query. Defaults to + * 100 if no limit is specified. Must be greater than or equal to 1 + * and be less than or equal to 300. Defaults to {@code 100L} when + * set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 300L) { + throw new IllegalArgumentException("Number 'limit' is larger than 300L"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 100L; + } + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FileAction`s corresponding to + * `FilePermission`s that should appear in the response's {@link + * SharedFileMetadata#getPermissions} field describing the actions + * the authenticated user can perform on the file. Must not contain + * a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActions(List actions) { + if (actions != null) { + for (FileAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + return this; + } + + /** + * Builds an instance of {@link ListFilesArg} configured with this + * builder's values + * + * @return new instance of {@link ListFilesArg} + */ + public ListFilesArg build() { + return new ListFilesArg(limit, actions); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit, + this.actions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFilesArg other = (ListFilesArg) obj; + return (this.limit == other.limit) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFilesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(FileAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFilesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFilesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 100L; + List f_actions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(FileAction.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListFilesArg(f_limit, f_actions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueArg.java new file mode 100644 index 000000000..b0b19ff5c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}. + */ +class ListFilesContinueArg { + // struct sharing.ListFilesContinueArg (sharing_files.stone) + + @Nonnull + protected final String cursor; + + /** + * Arguments for {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}. + * + * @param cursor Cursor in {@link ListFilesResult#getCursor}. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFilesContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Cursor in {@link ListFilesResult#getCursor}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFilesContinueArg other = (ListFilesContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFilesContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFilesContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFilesContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFilesContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueError.java new file mode 100644 index 000000000..815b2920c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueError.java @@ -0,0 +1,318 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error results for {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListFilesContinueError { + // union sharing.ListFilesContinueError (sharing_files.stone) + + /** + * Discriminating tag type for {@link ListFilesContinueError}. + */ + public enum Tag { + /** + * User account had a problem. + */ + USER_ERROR, // SharingUserError + /** + * {@link ListFilesContinueArg#getCursor} is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * {@link ListFilesContinueArg#getCursor} is invalid. + */ + public static final ListFilesContinueError INVALID_CURSOR = new ListFilesContinueError().withTag(Tag.INVALID_CURSOR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListFilesContinueError OTHER = new ListFilesContinueError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingUserError userErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListFilesContinueError() { + } + + + /** + * Error results for {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}. + * + * @param _tag Discriminating tag for this instance. + */ + private ListFilesContinueError withTag(Tag _tag) { + ListFilesContinueError result = new ListFilesContinueError(); + result._tag = _tag; + return result; + } + + /** + * Error results for {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}. + * + * @param userErrorValue User account had a problem. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFilesContinueError withTagAndUserError(Tag _tag, SharingUserError userErrorValue) { + ListFilesContinueError result = new ListFilesContinueError(); + result._tag = _tag; + result.userErrorValue = userErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListFilesContinueError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ERROR}, {@code false} otherwise. + */ + public boolean isUserError() { + return this._tag == Tag.USER_ERROR; + } + + /** + * Returns an instance of {@code ListFilesContinueError} that has its tag + * set to {@link Tag#USER_ERROR}. + * + *

User account had a problem.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFilesContinueError} with its tag set to + * {@link Tag#USER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFilesContinueError userError(SharingUserError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFilesContinueError().withTagAndUserError(Tag.USER_ERROR, value); + } + + /** + * User account had a problem. + * + *

This instance must be tagged as {@link Tag#USER_ERROR}.

+ * + * @return The {@link SharingUserError} value associated with this instance + * if {@link #isUserError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserError} is {@code false}. + */ + public SharingUserError getUserErrorValue() { + if (this._tag != Tag.USER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ERROR, but was Tag." + this._tag.name()); + } + return userErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_CURSOR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_CURSOR}, {@code false} otherwise. + */ + public boolean isInvalidCursor() { + return this._tag == Tag.INVALID_CURSOR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListFilesContinueError) { + ListFilesContinueError other = (ListFilesContinueError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_ERROR: + return (this.userErrorValue == other.userErrorValue) || (this.userErrorValue.equals(other.userErrorValue)); + case INVALID_CURSOR: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFilesContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_ERROR: { + g.writeStartObject(); + writeTag("user_error", g); + g.writeFieldName("user_error"); + SharingUserError.Serializer.INSTANCE.serialize(value.userErrorValue, g); + g.writeEndObject(); + break; + } + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFilesContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFilesContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_error".equals(tag)) { + SharingUserError fieldValue = null; + expectField("user_error", p); + fieldValue = SharingUserError.Serializer.INSTANCE.deserialize(p); + value = ListFilesContinueError.userError(fieldValue); + } + else if ("invalid_cursor".equals(tag)) { + value = ListFilesContinueError.INVALID_CURSOR; + } + else { + value = ListFilesContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueErrorException.java new file mode 100644 index 000000000..3dd1420a0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFilesContinueError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}.

+ */ +public class ListFilesContinueErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/list_received_files/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#listReceivedFilesContinue(String)}. + */ + public final ListFilesContinueError errorValue; + + public ListFilesContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFilesContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesResult.java new file mode 100644 index 000000000..0dc2aa9a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesResult.java @@ -0,0 +1,199 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Success results for {@link DbxUserSharingRequests#listReceivedFiles}. + */ +public class ListFilesResult { + // struct sharing.ListFilesResult (sharing_files.stone) + + @Nonnull + protected final List entries; + @Nullable + protected final String cursor; + + /** + * Success results for {@link DbxUserSharingRequests#listReceivedFiles}. + * + * @param entries Information about the files shared with current user. + * Must not contain a {@code null} item and not be {@code null}. + * @param cursor Cursor used to obtain additional shared files. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFilesResult(@Nonnull List entries, @Nullable String cursor) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (SharedFileMetadata x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + this.cursor = cursor; + } + + /** + * Success results for {@link DbxUserSharingRequests#listReceivedFiles}. + * + *

The default values for unset fields will be used.

+ * + * @param entries Information about the files shared with current user. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFilesResult(@Nonnull List entries) { + this(entries, null); + } + + /** + * Information about the files shared with current user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * Cursor used to obtain additional shared files. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFilesResult other = (ListFilesResult) obj; + return ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFilesResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(SharedFileMetadata.Serializer.INSTANCE).serialize(value.entries, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFilesResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFilesResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(SharedFileMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new ListFilesResult(f_entries, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersArgs.java new file mode 100644 index 000000000..2d5e42387 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersArgs.java @@ -0,0 +1,302 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ListFolderMembersArgs extends ListFolderMembersCursorArg { + // struct sharing.ListFolderMembersArgs (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param actions This is a list indicating whether each returned member + * will include a boolean value {@link MemberPermission#getAllow} that + * describes whether the current user can perform the MemberAction on + * the member. Must not contain a {@code null} item. + * @param limit The maximum number of results that include members, groups + * and invitees to return per request. Must be greater than or equal to + * 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderMembersArgs(@Nonnull String sharedFolderId, @Nullable List actions, long limit) { + super(actions, limit); + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderMembersArgs(@Nonnull String sharedFolderId) { + this(sharedFolderId, null, 1000L); + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * This is a list indicating whether each returned member will include a + * boolean value {@link MemberPermission#getAllow} that describes whether + * the current user can perform the MemberAction on the member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + /** + * The maximum number of results that include members, groups and invitees + * to return per request. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String sharedFolderId) { + return new Builder(sharedFolderId); + } + + /** + * Builder for {@link ListFolderMembersArgs}. + */ + public static class Builder extends ListFolderMembersCursorArg.Builder { + protected final String sharedFolderId; + + protected Builder(String sharedFolderId) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + } + + /** + * Set value for optional field. + * + * @param actions This is a list indicating whether each returned + * member will include a boolean value {@link + * MemberPermission#getAllow} that describes whether the current + * user can perform the MemberAction on the member. Must not contain + * a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActions(List actions) { + super.withActions(actions); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}. + *

+ * + * @param limit The maximum number of results that include members, + * groups and invitees to return per request. Must be greater than + * or equal to 1 and be less than or equal to 1000. Defaults to + * {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + super.withLimit(limit); + return this; + } + + /** + * Builds an instance of {@link ListFolderMembersArgs} configured with + * this builder's values + * + * @return new instance of {@link ListFolderMembersArgs} + */ + public ListFolderMembersArgs build() { + return new ListFolderMembersArgs(sharedFolderId, actions, limit); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderMembersArgs other = (ListFolderMembersArgs) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderMembersArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(MemberAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderMembersArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderMembersArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + List f_actions = null; + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(MemberAction.Serializer.INSTANCE)).deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new ListFolderMembersArgs(f_sharedFolderId, f_actions, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersBuilder.java new file mode 100644 index 000000000..610aca34e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersBuilder.java @@ -0,0 +1,86 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#listFolderMembersBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListFolderMembersBuilder { + private final DbxUserSharingRequests _client; + private final ListFolderMembersArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListFolderMembersBuilder(DbxUserSharingRequests _client, ListFolderMembersArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param actions This is a list indicating whether each returned member + * will include a boolean value {@link MemberPermission#getAllow} that + * describes whether the current user can perform the MemberAction on + * the member. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderMembersBuilder withActions(List actions) { + this._builder.withActions(actions); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}.

+ * + * @param limit The maximum number of results that include members, groups + * and invitees to return per request. Must be greater than or equal to + * 1 and be less than or equal to 1000. Defaults to {@code 1000L} when + * set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderMembersBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Issues the request. + */ + public SharedFolderMembers start() throws SharedFolderAccessErrorException, DbxException { + ListFolderMembersArgs arg_ = this._builder.build(); + return _client.listFolderMembers(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueArg.java new file mode 100644 index 000000000..768cd5c0d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListFolderMembersContinueArg { + // struct sharing.ListFolderMembersContinueArg (sharing_folders.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserSharingRequests#listFolderMembers(String)} or {@link + * DbxUserSharingRequests#listFolderMembersContinue(String)}. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderMembersContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The cursor returned by your last call to {@link + * DbxUserSharingRequests#listFolderMembers(String)} or {@link + * DbxUserSharingRequests#listFolderMembersContinue(String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderMembersContinueArg other = (ListFolderMembersContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderMembersContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderMembersContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderMembersContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFolderMembersContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueError.java new file mode 100644 index 000000000..f8c49e9c6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueError.java @@ -0,0 +1,306 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListFolderMembersContinueError { + // union sharing.ListFolderMembersContinueError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link ListFolderMembersContinueError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + /** + * {@link ListFolderMembersContinueArg#getCursor} is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * {@link ListFolderMembersContinueArg#getCursor} is invalid. + */ + public static final ListFolderMembersContinueError INVALID_CURSOR = new ListFolderMembersContinueError().withTag(Tag.INVALID_CURSOR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListFolderMembersContinueError OTHER = new ListFolderMembersContinueError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListFolderMembersContinueError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListFolderMembersContinueError withTag(Tag _tag) { + ListFolderMembersContinueError result = new ListFolderMembersContinueError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListFolderMembersContinueError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + ListFolderMembersContinueError result = new ListFolderMembersContinueError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListFolderMembersContinueError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code ListFolderMembersContinueError} that has + * its tag set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListFolderMembersContinueError} with its tag + * set to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListFolderMembersContinueError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListFolderMembersContinueError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_CURSOR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_CURSOR}, {@code false} otherwise. + */ + public boolean isInvalidCursor() { + return this._tag == Tag.INVALID_CURSOR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListFolderMembersContinueError) { + ListFolderMembersContinueError other = (ListFolderMembersContinueError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case INVALID_CURSOR: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderMembersContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFolderMembersContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFolderMembersContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = ListFolderMembersContinueError.accessError(fieldValue); + } + else if ("invalid_cursor".equals(tag)) { + value = ListFolderMembersContinueError.INVALID_CURSOR; + } + else { + value = ListFolderMembersContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueErrorException.java new file mode 100644 index 000000000..aa0266a45 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFolderMembersContinueError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#listFolderMembersContinue(String)}.

+ */ +public class ListFolderMembersContinueErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/list_folder_members/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#listFolderMembersContinue(String)}. + */ + public final ListFolderMembersContinueError errorValue; + + public ListFolderMembersContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFolderMembersContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersCursorArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersCursorArg.java new file mode 100644 index 000000000..bf1c57bad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFolderMembersCursorArg.java @@ -0,0 +1,290 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ListFolderMembersCursorArg { + // struct sharing.ListFolderMembersCursorArg (sharing_folders.stone) + + @Nullable + protected final List actions; + protected final long limit; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param actions This is a list indicating whether each returned member + * will include a boolean value {@link MemberPermission#getAllow} that + * describes whether the current user can perform the MemberAction on + * the member. Must not contain a {@code null} item. + * @param limit The maximum number of results that include members, groups + * and invitees to return per request. Must be greater than or equal to + * 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFolderMembersCursorArg(@Nullable List actions, long limit) { + if (actions != null) { + for (MemberAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public ListFolderMembersCursorArg() { + this(null, 1000L); + } + + /** + * This is a list indicating whether each returned member will include a + * boolean value {@link MemberPermission#getAllow} that describes whether + * the current user can perform the MemberAction on the member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + /** + * The maximum number of results that include members, groups and invitees + * to return per request. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListFolderMembersCursorArg}. + */ + public static class Builder { + + protected List actions; + protected long limit; + + protected Builder() { + this.actions = null; + this.limit = 1000L; + } + + /** + * Set value for optional field. + * + * @param actions This is a list indicating whether each returned + * member will include a boolean value {@link + * MemberPermission#getAllow} that describes whether the current + * user can perform the MemberAction on the member. Must not contain + * a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActions(List actions) { + if (actions != null) { + for (MemberAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}. + *

+ * + * @param limit The maximum number of results that include members, + * groups and invitees to return per request. Must be greater than + * or equal to 1 and be less than or equal to 1000. Defaults to + * {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 1000L; + } + return this; + } + + /** + * Builds an instance of {@link ListFolderMembersCursorArg} configured + * with this builder's values + * + * @return new instance of {@link ListFolderMembersCursorArg} + */ + public ListFolderMembersCursorArg build() { + return new ListFolderMembersCursorArg(actions, limit); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.actions, + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFolderMembersCursorArg other = (ListFolderMembersCursorArg) obj; + return ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFolderMembersCursorArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(MemberAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFolderMembersCursorArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFolderMembersCursorArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_actions = null; + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(MemberAction.Serializer.INSTANCE)).deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListFolderMembersCursorArg(f_actions, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersArgs.java new file mode 100644 index 000000000..ed924027a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersArgs.java @@ -0,0 +1,289 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ListFoldersArgs { + // struct sharing.ListFoldersArgs (sharing_folders.stone) + + protected final long limit; + @Nullable + protected final List actions; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param limit The maximum number of results to return per request. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersArgs(long limit, @Nullable List actions) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public ListFoldersArgs() { + this(1000L, null); + } + + /** + * The maximum number of results to return per request. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + /** + * A list of `FolderAction`s corresponding to `FolderPermission`s that + * should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListFoldersArgs}. + */ + public static class Builder { + + protected long limit; + protected List actions; + + protected Builder() { + this.limit = 1000L; + this.actions = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}. + *

+ * + * @param limit The maximum number of results to return per request. + * Must be greater than or equal to 1 and be less than or equal to + * 1000. Defaults to {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 1000L; + } + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions + * the authenticated user can perform on the folder. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActions(List actions) { + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + return this; + } + + /** + * Builds an instance of {@link ListFoldersArgs} configured with this + * builder's values + * + * @return new instance of {@link ListFoldersArgs} + */ + public ListFoldersArgs build() { + return new ListFoldersArgs(limit, actions); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit, + this.actions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFoldersArgs other = (ListFoldersArgs) obj; + return (this.limit == other.limit) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFoldersArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFoldersArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFoldersArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + List f_actions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListFoldersArgs(f_limit, f_actions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersBuilder.java new file mode 100644 index 000000000..740e2520f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersBuilder.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#listFoldersBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListFoldersBuilder { + private final DbxUserSharingRequests _client; + private final ListFoldersArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListFoldersBuilder(DbxUserSharingRequests _client, ListFoldersArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}.

+ * + * @param limit The maximum number of results to return per request. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * Defaults to {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersBuilder withActions(List actions) { + this._builder.withActions(actions); + return this; + } + + /** + * Issues the request. + */ + public ListFoldersResult start() throws DbxApiException, DbxException { + ListFoldersArgs arg_ = this._builder.build(); + return _client.listFolders(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueArg.java new file mode 100644 index 000000000..51d7910de --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueArg.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListFoldersContinueArg { + // struct sharing.ListFoldersContinueArg (sharing_folders.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor returned by the previous API call specified in + * the endpoint description. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The cursor returned by the previous API call specified in the endpoint + * description. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFoldersContinueArg other = (ListFoldersContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFoldersContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFoldersContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFoldersContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ListFoldersContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueError.java new file mode 100644 index 000000000..da2210d7e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListFoldersContinueError { + // union sharing.ListFoldersContinueError (sharing_folders.stone) + /** + * {@link ListFoldersContinueArg#getCursor} is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFoldersContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListFoldersContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + ListFoldersContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_cursor".equals(tag)) { + value = ListFoldersContinueError.INVALID_CURSOR; + } + else { + value = ListFoldersContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueErrorException.java new file mode 100644 index 000000000..8b22947d7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersContinueErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListFoldersContinueError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#listFoldersContinue(String)} and {@link + * DbxUserSharingRequests#listMountableFoldersContinue(String)}.

+ */ +public class ListFoldersContinueErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/list_folders/continue + // 2/sharing/list_mountable_folders/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#listFoldersContinue(String)} and {@link + * DbxUserSharingRequests#listMountableFoldersContinue(String)}. + */ + public final ListFoldersContinueError errorValue; + + public ListFoldersContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFoldersContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersResult.java new file mode 100644 index 000000000..c5c8cda77 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFoldersResult.java @@ -0,0 +1,219 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which endpoint was + * requested. Unmounted shared folders can be identified by the absence of + * {@link SharedFolderMetadata#getPathLower}. + */ +public class ListFoldersResult { + // struct sharing.ListFoldersResult (sharing_folders.stone) + + @Nonnull + protected final List entries; + @Nullable + protected final String cursor; + + /** + * Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which endpoint + * was requested. Unmounted shared folders can be identified by the absence + * of {@link SharedFolderMetadata#getPathLower}. + * + * @param entries List of all shared folders the authenticated user has + * access to. Must not contain a {@code null} item and not be {@code + * null}. + * @param cursor Present if there are additional shared folders that have + * not been returned yet. Pass the cursor into the corresponding + * continue endpoint (either {@link + * DbxUserSharingRequests#listFoldersContinue(String)} or {@link + * DbxUserSharingRequests#listMountableFoldersContinue(String)}) to list + * additional folders. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersResult(@Nonnull List entries, @Nullable String cursor) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (SharedFolderMetadata x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + this.cursor = cursor; + } + + /** + * Result for {@link DbxUserSharingRequests#listFolders} or {@link + * DbxUserSharingRequests#listMountableFolders}, depending on which endpoint + * was requested. Unmounted shared folders can be identified by the absence + * of {@link SharedFolderMetadata#getPathLower}. + * + *

The default values for unset fields will be used.

+ * + * @param entries List of all shared folders the authenticated user has + * access to. Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListFoldersResult(@Nonnull List entries) { + this(entries, null); + } + + /** + * List of all shared folders the authenticated user has access to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * Present if there are additional shared folders that have not been + * returned yet. Pass the cursor into the corresponding continue endpoint + * (either {@link DbxUserSharingRequests#listFoldersContinue(String)} or + * {@link DbxUserSharingRequests#listMountableFoldersContinue(String)}) to + * list additional folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListFoldersResult other = (ListFoldersResult) obj; + return ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListFoldersResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(SharedFolderMetadata.Serializer.INSTANCE).serialize(value.entries, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListFoldersResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListFoldersResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(SharedFolderMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + value = new ListFoldersResult(f_entries, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListMountableFoldersBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListMountableFoldersBuilder.java new file mode 100644 index 000000000..aa717c391 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListMountableFoldersBuilder.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#listMountableFoldersBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListMountableFoldersBuilder { + private final DbxUserSharingRequests _client; + private final ListFoldersArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListMountableFoldersBuilder(DbxUserSharingRequests _client, ListFoldersArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}.

+ * + * @param limit The maximum number of results to return per request. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * Defaults to {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMountableFoldersBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMountableFoldersBuilder withActions(List actions) { + this._builder.withActions(actions); + return this; + } + + /** + * Issues the request. + */ + public ListFoldersResult start() throws DbxApiException, DbxException { + ListFoldersArgs arg_ = this._builder.build(); + return _client.listMountableFolders(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListReceivedFilesBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListReceivedFilesBuilder.java new file mode 100644 index 000000000..0a19d50d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListReceivedFilesBuilder.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#listReceivedFilesBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListReceivedFilesBuilder { + private final DbxUserSharingRequests _client; + private final ListFilesArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListReceivedFilesBuilder(DbxUserSharingRequests _client, ListFilesArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 100L}.

+ * + * @param limit Number of files to return max per query. Defaults to 100 if + * no limit is specified. Must be greater than or equal to 1 and be less + * than or equal to 300. Defaults to {@code 100L} when set to {@code + * null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListReceivedFilesBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FileAction`s corresponding to + * `FilePermission`s that should appear in the response's {@link + * SharedFileMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the file. Must not contain a {@code + * null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListReceivedFilesBuilder withActions(List actions) { + this._builder.withActions(actions); + return this; + } + + /** + * Issues the request. + */ + public ListFilesResult start() throws SharingUserErrorException, DbxException { + ListFilesArg arg_ = this._builder.build(); + return _client.listReceivedFiles(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksArg.java new file mode 100644 index 000000000..367551102 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksArg.java @@ -0,0 +1,297 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ListSharedLinksArg { + // struct sharing.ListSharedLinksArg (shared_links.stone) + + @Nullable + protected final String path; + @Nullable + protected final String cursor; + @Nullable + protected final Boolean directOnly; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path See {@link DbxUserSharingRequests#listSharedLinks} + * description. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}". + * @param cursor The cursor returned by your last call to {@link + * DbxUserSharingRequests#listSharedLinks}. + * @param directOnly See {@link DbxUserSharingRequests#listSharedLinks} + * description. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListSharedLinksArg(@Nullable String path, @Nullable String cursor, @Nullable Boolean directOnly) { + if (path != null) { + if (!java.util.regex.Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + } + this.path = path; + this.cursor = cursor; + this.directOnly = directOnly; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public ListSharedLinksArg() { + this(null, null, null); + } + + /** + * See {@link DbxUserSharingRequests#listSharedLinks} description. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPath() { + return path; + } + + /** + * The cursor returned by your last call to {@link + * DbxUserSharingRequests#listSharedLinks}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + /** + * See {@link DbxUserSharingRequests#listSharedLinks} description. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getDirectOnly() { + return directOnly; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListSharedLinksArg}. + */ + public static class Builder { + + protected String path; + protected String cursor; + protected Boolean directOnly; + + protected Builder() { + this.path = null; + this.cursor = null; + this.directOnly = null; + } + + /** + * Set value for optional field. + * + * @param path See {@link DbxUserSharingRequests#listSharedLinks} + * description. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPath(String path) { + if (path != null) { + if (!java.util.regex.Pattern.matches("(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + } + this.path = path; + return this; + } + + /** + * Set value for optional field. + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserSharingRequests#listSharedLinks}. + * + * @return this builder + */ + public Builder withCursor(String cursor) { + this.cursor = cursor; + return this; + } + + /** + * Set value for optional field. + * + * @param directOnly See {@link DbxUserSharingRequests#listSharedLinks} + * description. + * + * @return this builder + */ + public Builder withDirectOnly(Boolean directOnly) { + this.directOnly = directOnly; + return this; + } + + /** + * Builds an instance of {@link ListSharedLinksArg} configured with this + * builder's values + * + * @return new instance of {@link ListSharedLinksArg} + */ + public ListSharedLinksArg build() { + return new ListSharedLinksArg(path, cursor, directOnly); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.cursor, + this.directOnly + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListSharedLinksArg other = (ListSharedLinksArg) obj; + return ((this.path == other.path) || (this.path != null && this.path.equals(other.path))) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + && ((this.directOnly == other.directOnly) || (this.directOnly != null && this.directOnly.equals(other.directOnly))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListSharedLinksArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.path != null) { + g.writeFieldName("path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.path, g); + } + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (value.directOnly != null) { + g.writeFieldName("direct_only"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.directOnly, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListSharedLinksArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListSharedLinksArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + String f_cursor = null; + Boolean f_directOnly = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("direct_only".equals(field)) { + f_directOnly = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListSharedLinksArg(f_path, f_cursor, f_directOnly); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksBuilder.java new file mode 100644 index 000000000..525501172 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksBuilder.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#listSharedLinksBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ListSharedLinksBuilder { + private final DbxUserSharingRequests _client; + private final ListSharedLinksArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ListSharedLinksBuilder(DbxUserSharingRequests _client, ListSharedLinksArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param path See {@link DbxUserSharingRequests#listSharedLinks} + * description. Must match pattern "{@code + * (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListSharedLinksBuilder withPath(String path) { + this._builder.withPath(path); + return this; + } + + /** + * Set value for optional field. + * + * @param cursor The cursor returned by your last call to {@link + * DbxUserSharingRequests#listSharedLinks}. + * + * @return this builder + */ + public ListSharedLinksBuilder withCursor(String cursor) { + this._builder.withCursor(cursor); + return this; + } + + /** + * Set value for optional field. + * + * @param directOnly See {@link DbxUserSharingRequests#listSharedLinks} + * description. + * + * @return this builder + */ + public ListSharedLinksBuilder withDirectOnly(Boolean directOnly) { + this._builder.withDirectOnly(directOnly); + return this; + } + + /** + * Issues the request. + */ + public ListSharedLinksResult start() throws ListSharedLinksErrorException, DbxException { + ListSharedLinksArg arg_ = this._builder.build(); + return _client.listSharedLinks(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksError.java new file mode 100644 index 000000000..858ab71d9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksError.java @@ -0,0 +1,308 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.files.LookupError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ListSharedLinksError { + // union sharing.ListSharedLinksError (shared_links.stone) + + /** + * Discriminating tag type for {@link ListSharedLinksError}. + */ + public enum Tag { + PATH, // LookupError + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxUserSharingRequests#listSharedLinks} to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxUserSharingRequests#listSharedLinks} to obtain a new cursor. + */ + public static final ListSharedLinksError RESET = new ListSharedLinksError().withTag(Tag.RESET); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ListSharedLinksError OTHER = new ListSharedLinksError().withTag(Tag.OTHER); + + private Tag _tag; + private LookupError pathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ListSharedLinksError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ListSharedLinksError withTag(Tag _tag) { + ListSharedLinksError result = new ListSharedLinksError(); + result._tag = _tag; + return result; + } + + /** + * + * @param pathValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ListSharedLinksError withTagAndPath(Tag _tag, LookupError pathValue) { + ListSharedLinksError result = new ListSharedLinksError(); + result._tag = _tag; + result.pathValue = pathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ListSharedLinksError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#PATH}, + * {@code false} otherwise. + */ + public boolean isPath() { + return this._tag == Tag.PATH; + } + + /** + * Returns an instance of {@code ListSharedLinksError} that has its tag set + * to {@link Tag#PATH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ListSharedLinksError} with its tag set to + * {@link Tag#PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ListSharedLinksError path(LookupError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ListSharedLinksError().withTagAndPath(Tag.PATH, value); + } + + /** + * This instance must be tagged as {@link Tag#PATH}. + * + * @return The {@link LookupError} value associated with this instance if + * {@link #isPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isPath} is {@code false}. + */ + public LookupError getPathValue() { + if (this._tag != Tag.PATH) { + throw new IllegalStateException("Invalid tag: required Tag.PATH, but was Tag." + this._tag.name()); + } + return pathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#RESET}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#RESET}, + * {@code false} otherwise. + */ + public boolean isReset() { + return this._tag == Tag.RESET; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.pathValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ListSharedLinksError) { + ListSharedLinksError other = (ListSharedLinksError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PATH: + return (this.pathValue == other.pathValue) || (this.pathValue.equals(other.pathValue)); + case RESET: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListSharedLinksError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PATH: { + g.writeStartObject(); + writeTag("path", g); + g.writeFieldName("path"); + LookupError.Serializer.INSTANCE.serialize(value.pathValue, g); + g.writeEndObject(); + break; + } + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListSharedLinksError deserialize(JsonParser p) throws IOException, JsonParseException { + ListSharedLinksError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("path".equals(tag)) { + LookupError fieldValue = null; + expectField("path", p); + fieldValue = LookupError.Serializer.INSTANCE.deserialize(p); + value = ListSharedLinksError.path(fieldValue); + } + else if ("reset".equals(tag)) { + value = ListSharedLinksError.RESET; + } + else { + value = ListSharedLinksError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksErrorException.java new file mode 100644 index 000000000..0e2fb31a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListSharedLinksError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#listSharedLinks}.

+ */ +public class ListSharedLinksErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/list_shared_links + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserSharingRequests#listSharedLinks}. + */ + public final ListSharedLinksError errorValue; + + public ListSharedLinksErrorException(String routeName, String requestId, LocalizedText userMessage, ListSharedLinksError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksResult.java new file mode 100644 index 000000000..c73788cf4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksResult.java @@ -0,0 +1,228 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ListSharedLinksResult { + // struct sharing.ListSharedLinksResult (shared_links.stone) + + @Nonnull + protected final List links; + protected final boolean hasMore; + @Nullable + protected final String cursor; + + /** + * + * @param links Shared links applicable to the path argument. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore Is true if there are additional shared links that have + * not been returned yet. Pass the cursor into {@link + * DbxUserSharingRequests#listSharedLinks} to retrieve them. + * @param cursor Pass the cursor into {@link + * DbxUserSharingRequests#listSharedLinks} to obtain the additional + * links. Cursor is returned only if no path is given. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListSharedLinksResult(@Nonnull List links, boolean hasMore, @Nullable String cursor) { + if (links == null) { + throw new IllegalArgumentException("Required value for 'links' is null"); + } + for (SharedLinkMetadata x : links) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'links' is null"); + } + } + this.links = links; + this.hasMore = hasMore; + this.cursor = cursor; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param links Shared links applicable to the path argument. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore Is true if there are additional shared links that have + * not been returned yet. Pass the cursor into {@link + * DbxUserSharingRequests#listSharedLinks} to retrieve them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListSharedLinksResult(@Nonnull List links, boolean hasMore) { + this(links, hasMore, null); + } + + /** + * Shared links applicable to the path argument. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinks() { + return links; + } + + /** + * Is true if there are additional shared links that have not been returned + * yet. Pass the cursor into {@link DbxUserSharingRequests#listSharedLinks} + * to retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Pass the cursor into {@link DbxUserSharingRequests#listSharedLinks} to + * obtain the additional links. Cursor is returned only if no path is given. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.links, + this.hasMore, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListSharedLinksResult other = (ListSharedLinksResult) obj; + return ((this.links == other.links) || (this.links.equals(other.links))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListSharedLinksResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("links"); + StoneSerializers.list(SharedLinkMetadata.Serializer.INSTANCE).serialize(value.links, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListSharedLinksResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListSharedLinksResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_links = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("links".equals(field)) { + f_links = StoneSerializers.list(SharedLinkMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_links == null) { + throw new JsonParseException(p, "Required field \"links\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListSharedLinksResult(f_links, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberAccessLevelResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberAccessLevelResult.java new file mode 100644 index 000000000..42cfbb92a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberAccessLevelResult.java @@ -0,0 +1,314 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Contains information about a member's access level to content after an + * operation. + */ +public class MemberAccessLevelResult { + // struct sharing.MemberAccessLevelResult (sharing_folders.stone) + + @Nullable + protected final AccessLevel accessLevel; + @Nullable + protected final String warning; + @Nullable + protected final List accessDetails; + + /** + * Contains information about a member's access level to content after an + * operation. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessLevel The member still has this level of access to the + * content through a parent folder. + * @param warning A localized string with additional information about why + * the user has this access level to the content. + * @param accessDetails The parent folders that a member has access to. The + * field is present if the user has access to the first parent folder + * where the member gains access. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAccessLevelResult(@Nullable AccessLevel accessLevel, @Nullable String warning, @Nullable List accessDetails) { + this.accessLevel = accessLevel; + this.warning = warning; + if (accessDetails != null) { + for (ParentFolderAccessInfo x : accessDetails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'accessDetails' is null"); + } + } + } + this.accessDetails = accessDetails; + } + + /** + * Contains information about a member's access level to content after an + * operation. + * + *

The default values for unset fields will be used.

+ */ + public MemberAccessLevelResult() { + this(null, null, null); + } + + /** + * The member still has this level of access to the content through a parent + * folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getAccessLevel() { + return accessLevel; + } + + /** + * A localized string with additional information about why the user has + * this access level to the content. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getWarning() { + return warning; + } + + /** + * The parent folders that a member has access to. The field is present if + * the user has access to the first parent folder where the member gains + * access. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getAccessDetails() { + return accessDetails; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link MemberAccessLevelResult}. + */ + public static class Builder { + + protected AccessLevel accessLevel; + protected String warning; + protected List accessDetails; + + protected Builder() { + this.accessLevel = null; + this.warning = null; + this.accessDetails = null; + } + + /** + * Set value for optional field. + * + * @param accessLevel The member still has this level of access to the + * content through a parent folder. + * + * @return this builder + */ + public Builder withAccessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * Set value for optional field. + * + * @param warning A localized string with additional information about + * why the user has this access level to the content. + * + * @return this builder + */ + public Builder withWarning(String warning) { + this.warning = warning; + return this; + } + + /** + * Set value for optional field. + * + * @param accessDetails The parent folders that a member has access to. + * The field is present if the user has access to the first parent + * folder where the member gains access. Must not contain a {@code + * null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccessDetails(List accessDetails) { + if (accessDetails != null) { + for (ParentFolderAccessInfo x : accessDetails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'accessDetails' is null"); + } + } + } + this.accessDetails = accessDetails; + return this; + } + + /** + * Builds an instance of {@link MemberAccessLevelResult} configured with + * this builder's values + * + * @return new instance of {@link MemberAccessLevelResult} + */ + public MemberAccessLevelResult build() { + return new MemberAccessLevelResult(accessLevel, warning, accessDetails); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessLevel, + this.warning, + this.accessDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAccessLevelResult other = (MemberAccessLevelResult) obj; + return ((this.accessLevel == other.accessLevel) || (this.accessLevel != null && this.accessLevel.equals(other.accessLevel))) + && ((this.warning == other.warning) || (this.warning != null && this.warning.equals(other.warning))) + && ((this.accessDetails == other.accessDetails) || (this.accessDetails != null && this.accessDetails.equals(other.accessDetails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAccessLevelResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.accessLevel != null) { + g.writeFieldName("access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.accessLevel, g); + } + if (value.warning != null) { + g.writeFieldName("warning"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.warning, g); + } + if (value.accessDetails != null) { + g.writeFieldName("access_details"); + StoneSerializers.nullable(StoneSerializers.list(ParentFolderAccessInfo.Serializer.INSTANCE)).serialize(value.accessDetails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAccessLevelResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAccessLevelResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessLevel = null; + String f_warning = null; + List f_accessDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_level".equals(field)) { + f_accessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("warning".equals(field)) { + f_warning = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("access_details".equals(field)) { + f_accessDetails = StoneSerializers.nullable(StoneSerializers.list(ParentFolderAccessInfo.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + value = new MemberAccessLevelResult(f_accessLevel, f_warning, f_accessDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberAction.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberAction.java new file mode 100644 index 000000000..7267aad70 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberAction.java @@ -0,0 +1,142 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Actions that may be taken on members of a shared folder. + */ +public enum MemberAction { + // union sharing.MemberAction (sharing_folders.stone) + /** + * Allow the member to keep a copy of the folder when removing. + */ + LEAVE_A_COPY, + /** + * Make the member an editor of the folder. + */ + MAKE_EDITOR, + /** + * Make the member an owner of the folder. + */ + MAKE_OWNER, + /** + * Make the member a viewer of the folder. + */ + MAKE_VIEWER, + /** + * Make the member a viewer of the folder without commenting permissions. + */ + MAKE_VIEWER_NO_COMMENT, + /** + * Remove the member from the folder. + */ + REMOVE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAction value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LEAVE_A_COPY: { + g.writeString("leave_a_copy"); + break; + } + case MAKE_EDITOR: { + g.writeString("make_editor"); + break; + } + case MAKE_OWNER: { + g.writeString("make_owner"); + break; + } + case MAKE_VIEWER: { + g.writeString("make_viewer"); + break; + } + case MAKE_VIEWER_NO_COMMENT: { + g.writeString("make_viewer_no_comment"); + break; + } + case REMOVE: { + g.writeString("remove"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberAction deserialize(JsonParser p) throws IOException, JsonParseException { + MemberAction value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("leave_a_copy".equals(tag)) { + value = MemberAction.LEAVE_A_COPY; + } + else if ("make_editor".equals(tag)) { + value = MemberAction.MAKE_EDITOR; + } + else if ("make_owner".equals(tag)) { + value = MemberAction.MAKE_OWNER; + } + else if ("make_viewer".equals(tag)) { + value = MemberAction.MAKE_VIEWER; + } + else if ("make_viewer_no_comment".equals(tag)) { + value = MemberAction.MAKE_VIEWER_NO_COMMENT; + } + else if ("remove".equals(tag)) { + value = MemberAction.REMOVE; + } + else { + value = MemberAction.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberPermission.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberPermission.java new file mode 100644 index 000000000..468dd3160 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberPermission.java @@ -0,0 +1,219 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Whether the user is allowed to take the action on the associated member. + */ +public class MemberPermission { + // struct sharing.MemberPermission (sharing_folders.stone) + + @Nonnull + protected final MemberAction action; + protected final boolean allow; + @Nullable + protected final PermissionDeniedReason reason; + + /** + * Whether the user is allowed to take the action on the associated member. + * + * @param action The action that the user may wish to take on the member. + * Must not be {@code null}. + * @param allow True if the user is allowed to take the action. + * @param reason The reason why the user is denied the permission. Not + * present if the action is allowed. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberPermission(@Nonnull MemberAction action, boolean allow, @Nullable PermissionDeniedReason reason) { + if (action == null) { + throw new IllegalArgumentException("Required value for 'action' is null"); + } + this.action = action; + this.allow = allow; + this.reason = reason; + } + + /** + * Whether the user is allowed to take the action on the associated member. + * + *

The default values for unset fields will be used.

+ * + * @param action The action that the user may wish to take on the member. + * Must not be {@code null}. + * @param allow True if the user is allowed to take the action. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberPermission(@Nonnull MemberAction action, boolean allow) { + this(action, allow, null); + } + + /** + * The action that the user may wish to take on the member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberAction getAction() { + return action; + } + + /** + * True if the user is allowed to take the action. + * + * @return value for this field. + */ + public boolean getAllow() { + return allow; + } + + /** + * The reason why the user is denied the permission. Not present if the + * action is allowed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PermissionDeniedReason getReason() { + return reason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.action, + this.allow, + this.reason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberPermission other = (MemberPermission) obj; + return ((this.action == other.action) || (this.action.equals(other.action))) + && (this.allow == other.allow) + && ((this.reason == other.reason) || (this.reason != null && this.reason.equals(other.reason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberPermission value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("action"); + MemberAction.Serializer.INSTANCE.serialize(value.action, g); + g.writeFieldName("allow"); + StoneSerializers.boolean_().serialize(value.allow, g); + if (value.reason != null) { + g.writeFieldName("reason"); + StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).serialize(value.reason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberPermission deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberPermission value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberAction f_action = null; + Boolean f_allow = null; + PermissionDeniedReason f_reason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("action".equals(field)) { + f_action = MemberAction.Serializer.INSTANCE.deserialize(p); + } + else if ("allow".equals(field)) { + f_allow = StoneSerializers.boolean_().deserialize(p); + } + else if ("reason".equals(field)) { + f_reason = StoneSerializers.nullable(PermissionDeniedReason.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_action == null) { + throw new JsonParseException(p, "Required field \"action\" missing."); + } + if (f_allow == null) { + throw new JsonParseException(p, "Required field \"allow\" missing."); + } + value = new MemberPermission(f_action, f_allow, f_reason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberPolicy.java new file mode 100644 index 000000000..4a841e683 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberPolicy.java @@ -0,0 +1,99 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy governing who can be a member of a shared folder. Only applicable to + * folders owned by a user on a team. + */ +public enum MemberPolicy { + // union sharing.MemberPolicy (sharing_folders.stone) + /** + * Only a teammate can become a member. + */ + TEAM, + /** + * Anyone can become a member. + */ + ANYONE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TEAM: { + g.writeString("team"); + break; + } + case ANYONE: { + g.writeString("anyone"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + MemberPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team".equals(tag)) { + value = MemberPolicy.TEAM; + } + else if ("anyone".equals(tag)) { + value = MemberPolicy.ANYONE; + } + else { + value = MemberPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberSelector.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberSelector.java new file mode 100644 index 000000000..e56d3d26e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MemberSelector.java @@ -0,0 +1,390 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Includes different ways to identify a member of a shared folder. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MemberSelector { + // union sharing.MemberSelector (sharing_folders.stone) + + /** + * Discriminating tag type for {@link MemberSelector}. + */ + public enum Tag { + /** + * Dropbox account, team member, or group ID of member. + */ + DROPBOX_ID, // String + /** + * Email address of member. + */ + EMAIL, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MemberSelector OTHER = new MemberSelector().withTag(Tag.OTHER); + + private Tag _tag; + private String dropboxIdValue; + private String emailValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MemberSelector() { + } + + + /** + * Includes different ways to identify a member of a shared folder. + * + * @param _tag Discriminating tag for this instance. + */ + private MemberSelector withTag(Tag _tag) { + MemberSelector result = new MemberSelector(); + result._tag = _tag; + return result; + } + + /** + * Includes different ways to identify a member of a shared folder. + * + * @param dropboxIdValue Dropbox account, team member, or group ID of + * member. Must have length of at least 1 and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberSelector withTagAndDropboxId(Tag _tag, String dropboxIdValue) { + MemberSelector result = new MemberSelector(); + result._tag = _tag; + result.dropboxIdValue = dropboxIdValue; + return result; + } + + /** + * Includes different ways to identify a member of a shared folder. + * + * @param emailValue Email address of member. Must have length of at most + * 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberSelector withTagAndEmail(Tag _tag, String emailValue) { + MemberSelector result = new MemberSelector(); + result._tag = _tag; + result.emailValue = emailValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MemberSelector}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#DROPBOX_ID}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DROPBOX_ID}, {@code false} otherwise. + */ + public boolean isDropboxId() { + return this._tag == Tag.DROPBOX_ID; + } + + /** + * Returns an instance of {@code MemberSelector} that has its tag set to + * {@link Tag#DROPBOX_ID}. + * + *

Dropbox account, team member, or group ID of member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberSelector} with its tag set to {@link + * Tag#DROPBOX_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static MemberSelector dropboxId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new MemberSelector().withTagAndDropboxId(Tag.DROPBOX_ID, value); + } + + /** + * Dropbox account, team member, or group ID of member. + * + *

This instance must be tagged as {@link Tag#DROPBOX_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isDropboxId} is {@code true}. + * + * @throws IllegalStateException If {@link #isDropboxId} is {@code false}. + */ + public String getDropboxIdValue() { + if (this._tag != Tag.DROPBOX_ID) { + throw new IllegalStateException("Invalid tag: required Tag.DROPBOX_ID, but was Tag." + this._tag.name()); + } + return dropboxIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#EMAIL}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#EMAIL}, + * {@code false} otherwise. + */ + public boolean isEmail() { + return this._tag == Tag.EMAIL; + } + + /** + * Returns an instance of {@code MemberSelector} that has its tag set to + * {@link Tag#EMAIL}. + * + *

Email address of member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberSelector} with its tag set to {@link + * Tag#EMAIL}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberSelector email(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberSelector().withTagAndEmail(Tag.EMAIL, value); + } + + /** + * Email address of member. + * + *

This instance must be tagged as {@link Tag#EMAIL}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isEmail} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmail} is {@code false}. + */ + public String getEmailValue() { + if (this._tag != Tag.EMAIL) { + throw new IllegalStateException("Invalid tag: required Tag.EMAIL, but was Tag." + this._tag.name()); + } + return emailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.dropboxIdValue, + this.emailValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MemberSelector) { + MemberSelector other = (MemberSelector) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case DROPBOX_ID: + return (this.dropboxIdValue == other.dropboxIdValue) || (this.dropboxIdValue.equals(other.dropboxIdValue)); + case EMAIL: + return (this.emailValue == other.emailValue) || (this.emailValue.equals(other.emailValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSelector value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case DROPBOX_ID: { + g.writeStartObject(); + writeTag("dropbox_id", g); + g.writeFieldName("dropbox_id"); + StoneSerializers.string().serialize(value.dropboxIdValue, g); + g.writeEndObject(); + break; + } + case EMAIL: { + g.writeStartObject(); + writeTag("email", g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.emailValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberSelector deserialize(JsonParser p) throws IOException, JsonParseException { + MemberSelector value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("dropbox_id".equals(tag)) { + String fieldValue = null; + expectField("dropbox_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberSelector.dropboxId(fieldValue); + } + else if ("email".equals(tag)) { + String fieldValue = null; + expectField("email", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberSelector.email(fieldValue); + } + else { + value = MemberSelector.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MembershipInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MembershipInfo.java new file mode 100644 index 000000000..c4f0b9748 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MembershipInfo.java @@ -0,0 +1,359 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The information about a member of the shared content. + */ +public class MembershipInfo { + // struct sharing.MembershipInfo (sharing_folders.stone) + + @Nonnull + protected final AccessLevel accessType; + @Nullable + protected final List permissions; + @Nullable + protected final String initials; + protected final boolean isInherited; + + /** + * The information about a member of the shared content. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions in + * the request. Must not contain a {@code null} item. + * @param initials Never set. + * @param isInherited True if the member has access from a parent folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembershipInfo(@Nonnull AccessLevel accessType, @Nullable List permissions, @Nullable String initials, boolean isInherited) { + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + if (permissions != null) { + for (MemberPermission x : permissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'permissions' is null"); + } + } + } + this.permissions = permissions; + this.initials = initials; + this.isInherited = isInherited; + } + + /** + * The information about a member of the shared content. + * + *

The default values for unset fields will be used.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembershipInfo(@Nonnull AccessLevel accessType) { + this(accessType, null, null, false); + } + + /** + * The access type for this member. It contains inherited access type from + * parent folder, and acquired access type from this folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessType() { + return accessType; + } + + /** + * The permissions that requesting user has on this member. The set of + * permissions corresponds to the MemberActions in the request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPermissions() { + return permissions; + } + + /** + * Never set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getInitials() { + return initials; + } + + /** + * True if the member has access from a parent folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIsInherited() { + return isInherited; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel accessType) { + return new Builder(accessType); + } + + /** + * Builder for {@link MembershipInfo}. + */ + public static class Builder { + protected final AccessLevel accessType; + + protected List permissions; + protected String initials; + protected boolean isInherited; + + protected Builder(AccessLevel accessType) { + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + this.permissions = null; + this.initials = null; + this.isInherited = false; + } + + /** + * Set value for optional field. + * + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions + * in the request. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPermissions(List permissions) { + if (permissions != null) { + for (MemberPermission x : permissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'permissions' is null"); + } + } + } + this.permissions = permissions; + return this; + } + + /** + * Set value for optional field. + * + * @param initials Never set. + * + * @return this builder + */ + public Builder withInitials(String initials) { + this.initials = initials; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param isInherited True if the member has access from a parent + * folder. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIsInherited(Boolean isInherited) { + if (isInherited != null) { + this.isInherited = isInherited; + } + else { + this.isInherited = false; + } + return this; + } + + /** + * Builds an instance of {@link MembershipInfo} configured with this + * builder's values + * + * @return new instance of {@link MembershipInfo} + */ + public MembershipInfo build() { + return new MembershipInfo(accessType, permissions, initials, isInherited); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessType, + this.permissions, + this.initials, + this.isInherited + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembershipInfo other = (MembershipInfo) obj; + return ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && ((this.permissions == other.permissions) || (this.permissions != null && this.permissions.equals(other.permissions))) + && ((this.initials == other.initials) || (this.initials != null && this.initials.equals(other.initials))) + && (this.isInherited == other.isInherited) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembershipInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_type"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessType, g); + if (value.permissions != null) { + g.writeFieldName("permissions"); + StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).serialize(value.permissions, g); + } + if (value.initials != null) { + g.writeFieldName("initials"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.initials, g); + } + g.writeFieldName("is_inherited"); + StoneSerializers.boolean_().serialize(value.isInherited, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembershipInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembershipInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessType = null; + List f_permissions = null; + String f_initials = null; + Boolean f_isInherited = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_type".equals(field)) { + f_accessType = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).deserialize(p); + } + else if ("initials".equals(field)) { + f_initials = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_inherited".equals(field)) { + f_isInherited = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + value = new MembershipInfo(f_accessType, f_permissions, f_initials, f_isInherited); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsArgs.java new file mode 100644 index 000000000..3440908c2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsArgs.java @@ -0,0 +1,217 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ModifySharedLinkSettingsArgs { + // struct sharing.ModifySharedLinkSettingsArgs (shared_links.stone) + + @Nonnull + protected final String url; + @Nonnull + protected final SharedLinkSettings settings; + protected final boolean removeExpiration; + + /** + * + * @param url URL of the shared link to change its settings. Must not be + * {@code null}. + * @param settings Set of settings for the shared link. Must not be {@code + * null}. + * @param removeExpiration If set to true, removes the expiration of the + * shared link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ModifySharedLinkSettingsArgs(@Nonnull String url, @Nonnull SharedLinkSettings settings, boolean removeExpiration) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (settings == null) { + throw new IllegalArgumentException("Required value for 'settings' is null"); + } + this.settings = settings; + this.removeExpiration = removeExpiration; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link to change its settings. Must not be + * {@code null}. + * @param settings Set of settings for the shared link. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ModifySharedLinkSettingsArgs(@Nonnull String url, @Nonnull SharedLinkSettings settings) { + this(url, settings, false); + } + + /** + * URL of the shared link to change its settings. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * Set of settings for the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedLinkSettings getSettings() { + return settings; + } + + /** + * If set to true, removes the expiration of the shared link. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getRemoveExpiration() { + return removeExpiration; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.settings, + this.removeExpiration + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ModifySharedLinkSettingsArgs other = (ModifySharedLinkSettingsArgs) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.settings == other.settings) || (this.settings.equals(other.settings))) + && (this.removeExpiration == other.removeExpiration) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ModifySharedLinkSettingsArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("settings"); + SharedLinkSettings.Serializer.INSTANCE.serialize(value.settings, g); + g.writeFieldName("remove_expiration"); + StoneSerializers.boolean_().serialize(value.removeExpiration, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ModifySharedLinkSettingsArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ModifySharedLinkSettingsArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_url = null; + SharedLinkSettings f_settings = null; + Boolean f_removeExpiration = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("settings".equals(field)) { + f_settings = SharedLinkSettings.Serializer.INSTANCE.deserialize(p); + } + else if ("remove_expiration".equals(field)) { + f_removeExpiration = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_settings == null) { + throw new JsonParseException(p, "Required field \"settings\" missing."); + } + value = new ModifySharedLinkSettingsArgs(f_url, f_settings, f_removeExpiration); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsError.java new file mode 100644 index 000000000..ab490ec0d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsError.java @@ -0,0 +1,406 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ModifySharedLinkSettingsError { + // union sharing.ModifySharedLinkSettingsError (shared_links.stone) + + /** + * Discriminating tag type for {@link ModifySharedLinkSettingsError}. + */ + public enum Tag { + /** + * The shared link wasn't found. + */ + SHARED_LINK_NOT_FOUND, + /** + * The caller is not allowed to access this shared link. + */ + SHARED_LINK_ACCESS_DENIED, + /** + * This type of link is not supported; use {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#export(String,String)} + * instead. + */ + UNSUPPORTED_LINK_TYPE, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * There is an error with the given settings. + */ + SETTINGS_ERROR, // SharedLinkSettingsError + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_NOT_VERIFIED; + } + + /** + * The shared link wasn't found. + */ + public static final ModifySharedLinkSettingsError SHARED_LINK_NOT_FOUND = new ModifySharedLinkSettingsError().withTag(Tag.SHARED_LINK_NOT_FOUND); + /** + * The caller is not allowed to access this shared link. + */ + public static final ModifySharedLinkSettingsError SHARED_LINK_ACCESS_DENIED = new ModifySharedLinkSettingsError().withTag(Tag.SHARED_LINK_ACCESS_DENIED); + /** + * This type of link is not supported; use {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#export(String,String)} + * instead. + */ + public static final ModifySharedLinkSettingsError UNSUPPORTED_LINK_TYPE = new ModifySharedLinkSettingsError().withTag(Tag.UNSUPPORTED_LINK_TYPE); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ModifySharedLinkSettingsError OTHER = new ModifySharedLinkSettingsError().withTag(Tag.OTHER); + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + public static final ModifySharedLinkSettingsError EMAIL_NOT_VERIFIED = new ModifySharedLinkSettingsError().withTag(Tag.EMAIL_NOT_VERIFIED); + + private Tag _tag; + private SharedLinkSettingsError settingsErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ModifySharedLinkSettingsError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ModifySharedLinkSettingsError withTag(Tag _tag) { + ModifySharedLinkSettingsError result = new ModifySharedLinkSettingsError(); + result._tag = _tag; + return result; + } + + /** + * + * @param settingsErrorValue There is an error with the given settings. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ModifySharedLinkSettingsError withTagAndSettingsError(Tag _tag, SharedLinkSettingsError settingsErrorValue) { + ModifySharedLinkSettingsError result = new ModifySharedLinkSettingsError(); + result._tag = _tag; + result.settingsErrorValue = settingsErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ModifySharedLinkSettingsError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isSharedLinkNotFound() { + return this._tag == Tag.SHARED_LINK_NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_ACCESS_DENIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_ACCESS_DENIED}, {@code false} otherwise. + */ + public boolean isSharedLinkAccessDenied() { + return this._tag == Tag.SHARED_LINK_ACCESS_DENIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNSUPPORTED_LINK_TYPE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNSUPPORTED_LINK_TYPE}, {@code false} otherwise. + */ + public boolean isUnsupportedLinkType() { + return this._tag == Tag.UNSUPPORTED_LINK_TYPE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SETTINGS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SETTINGS_ERROR}, {@code false} otherwise. + */ + public boolean isSettingsError() { + return this._tag == Tag.SETTINGS_ERROR; + } + + /** + * Returns an instance of {@code ModifySharedLinkSettingsError} that has its + * tag set to {@link Tag#SETTINGS_ERROR}. + * + *

There is an error with the given settings.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ModifySharedLinkSettingsError} with its tag + * set to {@link Tag#SETTINGS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ModifySharedLinkSettingsError settingsError(SharedLinkSettingsError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ModifySharedLinkSettingsError().withTagAndSettingsError(Tag.SETTINGS_ERROR, value); + } + + /** + * There is an error with the given settings. + * + *

This instance must be tagged as {@link Tag#SETTINGS_ERROR}.

+ * + * @return The {@link SharedLinkSettingsError} value associated with this + * instance if {@link #isSettingsError} is {@code true}. + * + * @throws IllegalStateException If {@link #isSettingsError} is {@code + * false}. + */ + public SharedLinkSettingsError getSettingsErrorValue() { + if (this._tag != Tag.SETTINGS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.SETTINGS_ERROR, but was Tag." + this._tag.name()); + } + return settingsErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_NOT_VERIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_NOT_VERIFIED}, {@code false} otherwise. + */ + public boolean isEmailNotVerified() { + return this._tag == Tag.EMAIL_NOT_VERIFIED; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.settingsErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ModifySharedLinkSettingsError) { + ModifySharedLinkSettingsError other = (ModifySharedLinkSettingsError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SHARED_LINK_NOT_FOUND: + return true; + case SHARED_LINK_ACCESS_DENIED: + return true; + case UNSUPPORTED_LINK_TYPE: + return true; + case OTHER: + return true; + case SETTINGS_ERROR: + return (this.settingsErrorValue == other.settingsErrorValue) || (this.settingsErrorValue.equals(other.settingsErrorValue)); + case EMAIL_NOT_VERIFIED: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ModifySharedLinkSettingsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SHARED_LINK_NOT_FOUND: { + g.writeString("shared_link_not_found"); + break; + } + case SHARED_LINK_ACCESS_DENIED: { + g.writeString("shared_link_access_denied"); + break; + } + case UNSUPPORTED_LINK_TYPE: { + g.writeString("unsupported_link_type"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SETTINGS_ERROR: { + g.writeStartObject(); + writeTag("settings_error", g); + g.writeFieldName("settings_error"); + SharedLinkSettingsError.Serializer.INSTANCE.serialize(value.settingsErrorValue, g); + g.writeEndObject(); + break; + } + case EMAIL_NOT_VERIFIED: { + g.writeString("email_not_verified"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ModifySharedLinkSettingsError deserialize(JsonParser p) throws IOException, JsonParseException { + ModifySharedLinkSettingsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("shared_link_not_found".equals(tag)) { + value = ModifySharedLinkSettingsError.SHARED_LINK_NOT_FOUND; + } + else if ("shared_link_access_denied".equals(tag)) { + value = ModifySharedLinkSettingsError.SHARED_LINK_ACCESS_DENIED; + } + else if ("unsupported_link_type".equals(tag)) { + value = ModifySharedLinkSettingsError.UNSUPPORTED_LINK_TYPE; + } + else if ("other".equals(tag)) { + value = ModifySharedLinkSettingsError.OTHER; + } + else if ("settings_error".equals(tag)) { + SharedLinkSettingsError fieldValue = null; + expectField("settings_error", p); + fieldValue = SharedLinkSettingsError.Serializer.INSTANCE.deserialize(p); + value = ModifySharedLinkSettingsError.settingsError(fieldValue); + } + else if ("email_not_verified".equals(tag)) { + value = ModifySharedLinkSettingsError.EMAIL_NOT_VERIFIED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsErrorException.java new file mode 100644 index 000000000..b6daf7a3c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ModifySharedLinkSettingsErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ModifySharedLinkSettingsError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#modifySharedLinkSettings(String,SharedLinkSettings,boolean)}. + *

+ */ +public class ModifySharedLinkSettingsErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/modify_shared_link_settings + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#modifySharedLinkSettings(String,SharedLinkSettings,boolean)}. + */ + public final ModifySharedLinkSettingsError errorValue; + + public ModifySharedLinkSettingsErrorException(String routeName, String requestId, LocalizedText userMessage, ModifySharedLinkSettingsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderArg.java new file mode 100644 index 000000000..f02f76ab8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class MountFolderArg { + // struct sharing.MountFolderArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + + /** + * + * @param sharedFolderId The ID of the shared folder to mount. Must match + * pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MountFolderArg(@Nonnull String sharedFolderId) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + } + + /** + * The ID of the shared folder to mount. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MountFolderArg other = (MountFolderArg) obj; + return (this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MountFolderArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MountFolderArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MountFolderArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new MountFolderArg(f_sharedFolderId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderError.java new file mode 100644 index 000000000..9067068b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderError.java @@ -0,0 +1,483 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MountFolderError { + // union sharing.MountFolderError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link MountFolderError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + /** + * Mounting would cause a shared folder to be inside another, which is + * disallowed. + */ + INSIDE_SHARED_FOLDER, + /** + * The current user does not have enough space to mount the shared + * folder. + */ + INSUFFICIENT_QUOTA, // InsufficientQuotaAmounts + /** + * The shared folder is already mounted. + */ + ALREADY_MOUNTED, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * The shared folder is not mountable. One example where this can occur + * is when the shared folder belongs within a team folder in the user's + * Dropbox. + */ + NOT_MOUNTABLE, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Mounting would cause a shared folder to be inside another, which is + * disallowed. + */ + public static final MountFolderError INSIDE_SHARED_FOLDER = new MountFolderError().withTag(Tag.INSIDE_SHARED_FOLDER); + /** + * The shared folder is already mounted. + */ + public static final MountFolderError ALREADY_MOUNTED = new MountFolderError().withTag(Tag.ALREADY_MOUNTED); + /** + * The current user does not have permission to perform this action. + */ + public static final MountFolderError NO_PERMISSION = new MountFolderError().withTag(Tag.NO_PERMISSION); + /** + * The shared folder is not mountable. One example where this can occur is + * when the shared folder belongs within a team folder in the user's + * Dropbox. + */ + public static final MountFolderError NOT_MOUNTABLE = new MountFolderError().withTag(Tag.NOT_MOUNTABLE); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MountFolderError OTHER = new MountFolderError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + private InsufficientQuotaAmounts insufficientQuotaValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MountFolderError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private MountFolderError withTag(Tag _tag) { + MountFolderError result = new MountFolderError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MountFolderError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + MountFolderError result = new MountFolderError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param insufficientQuotaValue The current user does not have enough + * space to mount the shared folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MountFolderError withTagAndInsufficientQuota(Tag _tag, InsufficientQuotaAmounts insufficientQuotaValue) { + MountFolderError result = new MountFolderError(); + result._tag = _tag; + result.insufficientQuotaValue = insufficientQuotaValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MountFolderError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code MountFolderError} that has its tag set to + * {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MountFolderError} with its tag set to {@link + * Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MountFolderError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MountFolderError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSIDE_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSIDE_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isInsideSharedFolder() { + return this._tag == Tag.INSIDE_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_QUOTA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_QUOTA}, {@code false} otherwise. + */ + public boolean isInsufficientQuota() { + return this._tag == Tag.INSUFFICIENT_QUOTA; + } + + /** + * Returns an instance of {@code MountFolderError} that has its tag set to + * {@link Tag#INSUFFICIENT_QUOTA}. + * + *

The current user does not have enough space to mount the shared + * folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MountFolderError} with its tag set to {@link + * Tag#INSUFFICIENT_QUOTA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MountFolderError insufficientQuota(InsufficientQuotaAmounts value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MountFolderError().withTagAndInsufficientQuota(Tag.INSUFFICIENT_QUOTA, value); + } + + /** + * The current user does not have enough space to mount the shared folder. + * + *

This instance must be tagged as {@link Tag#INSUFFICIENT_QUOTA}.

+ * + * @return The {@link InsufficientQuotaAmounts} value associated with this + * instance if {@link #isInsufficientQuota} is {@code true}. + * + * @throws IllegalStateException If {@link #isInsufficientQuota} is {@code + * false}. + */ + public InsufficientQuotaAmounts getInsufficientQuotaValue() { + if (this._tag != Tag.INSUFFICIENT_QUOTA) { + throw new IllegalStateException("Invalid tag: required Tag.INSUFFICIENT_QUOTA, but was Tag." + this._tag.name()); + } + return insufficientQuotaValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALREADY_MOUNTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALREADY_MOUNTED}, {@code false} otherwise. + */ + public boolean isAlreadyMounted() { + return this._tag == Tag.ALREADY_MOUNTED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOT_MOUNTABLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_MOUNTABLE}, {@code false} otherwise. + */ + public boolean isNotMountable() { + return this._tag == Tag.NOT_MOUNTABLE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.insufficientQuotaValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MountFolderError) { + MountFolderError other = (MountFolderError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case INSIDE_SHARED_FOLDER: + return true; + case INSUFFICIENT_QUOTA: + return (this.insufficientQuotaValue == other.insufficientQuotaValue) || (this.insufficientQuotaValue.equals(other.insufficientQuotaValue)); + case ALREADY_MOUNTED: + return true; + case NO_PERMISSION: + return true; + case NOT_MOUNTABLE: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MountFolderError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case INSIDE_SHARED_FOLDER: { + g.writeString("inside_shared_folder"); + break; + } + case INSUFFICIENT_QUOTA: { + g.writeStartObject(); + writeTag("insufficient_quota", g); + InsufficientQuotaAmounts.Serializer.INSTANCE.serialize(value.insufficientQuotaValue, g, true); + g.writeEndObject(); + break; + } + case ALREADY_MOUNTED: { + g.writeString("already_mounted"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case NOT_MOUNTABLE: { + g.writeString("not_mountable"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MountFolderError deserialize(JsonParser p) throws IOException, JsonParseException { + MountFolderError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = MountFolderError.accessError(fieldValue); + } + else if ("inside_shared_folder".equals(tag)) { + value = MountFolderError.INSIDE_SHARED_FOLDER; + } + else if ("insufficient_quota".equals(tag)) { + InsufficientQuotaAmounts fieldValue = null; + fieldValue = InsufficientQuotaAmounts.Serializer.INSTANCE.deserialize(p, true); + value = MountFolderError.insufficientQuota(fieldValue); + } + else if ("already_mounted".equals(tag)) { + value = MountFolderError.ALREADY_MOUNTED; + } + else if ("no_permission".equals(tag)) { + value = MountFolderError.NO_PERMISSION; + } + else if ("not_mountable".equals(tag)) { + value = MountFolderError.NOT_MOUNTABLE; + } + else { + value = MountFolderError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderErrorException.java new file mode 100644 index 000000000..fba3aa240 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link MountFolderError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#mountFolder(String)}.

+ */ +public class MountFolderErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/mount_folder + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserSharingRequests#mountFolder(String)}. + */ + public final MountFolderError errorValue; + + public MountFolderErrorException(String routeName, String requestId, LocalizedText userMessage, MountFolderError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ParentFolderAccessInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ParentFolderAccessInfo.java new file mode 100644 index 000000000..715c29f82 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ParentFolderAccessInfo.java @@ -0,0 +1,250 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Contains information about a parent folder that a member has access to. + */ +public class ParentFolderAccessInfo { + // struct sharing.ParentFolderAccessInfo (sharing_folders.stone) + + @Nonnull + protected final String folderName; + @Nonnull + protected final String sharedFolderId; + @Nonnull + protected final List permissions; + @Nonnull + protected final String path; + + /** + * Contains information about a parent folder that a member has access to. + * + * @param folderName Display name for the folder. Must not be {@code null}. + * @param sharedFolderId The identifier of the parent shared folder. Must + * match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param permissions The user's permissions for the parent shared folder. + * Must not contain a {@code null} item and not be {@code null}. + * @param path The full path to the parent shared folder relative to the + * acting user's root. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ParentFolderAccessInfo(@Nonnull String folderName, @Nonnull String sharedFolderId, @Nonnull List permissions, @Nonnull String path) { + if (folderName == null) { + throw new IllegalArgumentException("Required value for 'folderName' is null"); + } + this.folderName = folderName; + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (permissions == null) { + throw new IllegalArgumentException("Required value for 'permissions' is null"); + } + for (MemberPermission x : permissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'permissions' is null"); + } + } + this.permissions = permissions; + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + this.path = path; + } + + /** + * Display name for the folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFolderName() { + return folderName; + } + + /** + * The identifier of the parent shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * The user's permissions for the parent shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPermissions() { + return permissions; + } + + /** + * The full path to the parent shared folder relative to the acting user's + * root. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.folderName, + this.sharedFolderId, + this.permissions, + this.path + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ParentFolderAccessInfo other = (ParentFolderAccessInfo) obj; + return ((this.folderName == other.folderName) || (this.folderName.equals(other.folderName))) + && ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.permissions == other.permissions) || (this.permissions.equals(other.permissions))) + && ((this.path == other.path) || (this.path.equals(other.path))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ParentFolderAccessInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("folder_name"); + StoneSerializers.string().serialize(value.folderName, g); + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("permissions"); + StoneSerializers.list(MemberPermission.Serializer.INSTANCE).serialize(value.permissions, g); + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ParentFolderAccessInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ParentFolderAccessInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_folderName = null; + String f_sharedFolderId = null; + List f_permissions = null; + String f_path = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("folder_name".equals(field)) { + f_folderName = StoneSerializers.string().deserialize(p); + } + else if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.list(MemberPermission.Serializer.INSTANCE).deserialize(p); + } + else if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_folderName == null) { + throw new JsonParseException(p, "Required field \"folder_name\" missing."); + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + if (f_permissions == null) { + throw new JsonParseException(p, "Required field \"permissions\" missing."); + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new ParentFolderAccessInfo(f_folderName, f_sharedFolderId, f_permissions, f_path); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PathLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PathLinkMetadata.java new file mode 100644 index 000000000..52f4a917f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PathLinkMetadata.java @@ -0,0 +1,240 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata for a path-based shared link. + */ +public class PathLinkMetadata extends LinkMetadata { + // struct sharing.PathLinkMetadata (shared_links.stone) + + @Nonnull + protected final String path; + + /** + * Metadata for a path-based shared link. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param visibility Who can access the link. Must not be {@code null}. + * @param path Path in user's Dropbox. Must not be {@code null}. + * @param expires Expiration time, if set. By default the link won't + * expire. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PathLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nonnull String path, @Nullable Date expires) { + super(url, visibility, expires); + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + this.path = path; + } + + /** + * Metadata for a path-based shared link. + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param visibility Who can access the link. Must not be {@code null}. + * @param path Path in user's Dropbox. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PathLinkMetadata(@Nonnull String url, @Nonnull Visibility visibility, @Nonnull String path) { + this(url, visibility, path, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * Who can access the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Visibility getVisibility() { + return visibility; + } + + /** + * Path in user's Dropbox. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Expiration time, if set. By default the link won't expire. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PathLinkMetadata other = (PathLinkMetadata) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.visibility == other.visibility) || (this.visibility.equals(other.visibility))) + && ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PathLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("path", g); + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("visibility"); + Visibility.Serializer.INSTANCE.serialize(value.visibility, g); + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PathLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PathLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("path".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_url = null; + Visibility f_visibility = null; + String f_path = null; + Date f_expires = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("visibility".equals(field)) { + f_visibility = Visibility.Serializer.INSTANCE.deserialize(p); + } + else if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_visibility == null) { + throw new JsonParseException(p, "Required field \"visibility\" missing."); + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new PathLinkMetadata(f_url, f_visibility, f_path, f_expires); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PendingUploadMode.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PendingUploadMode.java new file mode 100644 index 000000000..ecd0bf44c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PendingUploadMode.java @@ -0,0 +1,91 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Flag to indicate pending upload default (for linking to not-yet-existing + * paths). + */ +public enum PendingUploadMode { + // union sharing.PendingUploadMode (shared_links.stone) + /** + * Assume pending uploads are files. + */ + FILE, + /** + * Assume pending uploads are folders. + */ + FOLDER; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PendingUploadMode value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FILE: { + g.writeString("file"); + break; + } + case FOLDER: { + g.writeString("folder"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public PendingUploadMode deserialize(JsonParser p) throws IOException, JsonParseException { + PendingUploadMode value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("file".equals(tag)) { + value = PendingUploadMode.FILE; + } + else if ("folder".equals(tag)) { + value = PendingUploadMode.FOLDER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PermissionDeniedReason.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PermissionDeniedReason.java new file mode 100644 index 000000000..c54ede6f2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/PermissionDeniedReason.java @@ -0,0 +1,675 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Possible reasons the user is denied a permission. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PermissionDeniedReason { + // union sharing.PermissionDeniedReason (sharing_folders.stone) + + /** + * Discriminating tag type for {@link PermissionDeniedReason}. + */ + public enum Tag { + /** + * User is not on the same team as the folder owner. + */ + USER_NOT_SAME_TEAM_AS_OWNER, + /** + * User is prohibited by the owner from taking the action. + */ + USER_NOT_ALLOWED_BY_OWNER, + /** + * Target is indirectly a member of the folder, for example by being + * part of a group. + */ + TARGET_IS_INDIRECT_MEMBER, + /** + * Target is the owner of the folder. + */ + TARGET_IS_OWNER, + /** + * Target is the user itself. + */ + TARGET_IS_SELF, + /** + * Target is not an active member of the team. + */ + TARGET_NOT_ACTIVE, + /** + * Folder is team folder for a limited team. + */ + FOLDER_IS_LIMITED_TEAM_FOLDER, + /** + * The content owner needs to be on a Dropbox team to perform this + * action. + */ + OWNER_NOT_ON_TEAM, + /** + * The user does not have permission to perform this action on the link. + */ + PERMISSION_DENIED, + /** + * The user's team policy prevents performing this action on the link. + */ + RESTRICTED_BY_TEAM, + /** + * The user's account type does not support this action. + */ + USER_ACCOUNT_TYPE, + /** + * The user needs to be on a Dropbox team to perform this action. + */ + USER_NOT_ON_TEAM, + /** + * Folder is inside of another shared folder. + */ + FOLDER_IS_INSIDE_SHARED_FOLDER, + /** + * Policy cannot be changed due to restrictions from parent folder. + */ + RESTRICTED_BY_PARENT_FOLDER, + INSUFFICIENT_PLAN, // InsufficientPlan + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * User is not on the same team as the folder owner. + */ + public static final PermissionDeniedReason USER_NOT_SAME_TEAM_AS_OWNER = new PermissionDeniedReason().withTag(Tag.USER_NOT_SAME_TEAM_AS_OWNER); + /** + * User is prohibited by the owner from taking the action. + */ + public static final PermissionDeniedReason USER_NOT_ALLOWED_BY_OWNER = new PermissionDeniedReason().withTag(Tag.USER_NOT_ALLOWED_BY_OWNER); + /** + * Target is indirectly a member of the folder, for example by being part of + * a group. + */ + public static final PermissionDeniedReason TARGET_IS_INDIRECT_MEMBER = new PermissionDeniedReason().withTag(Tag.TARGET_IS_INDIRECT_MEMBER); + /** + * Target is the owner of the folder. + */ + public static final PermissionDeniedReason TARGET_IS_OWNER = new PermissionDeniedReason().withTag(Tag.TARGET_IS_OWNER); + /** + * Target is the user itself. + */ + public static final PermissionDeniedReason TARGET_IS_SELF = new PermissionDeniedReason().withTag(Tag.TARGET_IS_SELF); + /** + * Target is not an active member of the team. + */ + public static final PermissionDeniedReason TARGET_NOT_ACTIVE = new PermissionDeniedReason().withTag(Tag.TARGET_NOT_ACTIVE); + /** + * Folder is team folder for a limited team. + */ + public static final PermissionDeniedReason FOLDER_IS_LIMITED_TEAM_FOLDER = new PermissionDeniedReason().withTag(Tag.FOLDER_IS_LIMITED_TEAM_FOLDER); + /** + * The content owner needs to be on a Dropbox team to perform this action. + */ + public static final PermissionDeniedReason OWNER_NOT_ON_TEAM = new PermissionDeniedReason().withTag(Tag.OWNER_NOT_ON_TEAM); + /** + * The user does not have permission to perform this action on the link. + */ + public static final PermissionDeniedReason PERMISSION_DENIED = new PermissionDeniedReason().withTag(Tag.PERMISSION_DENIED); + /** + * The user's team policy prevents performing this action on the link. + */ + public static final PermissionDeniedReason RESTRICTED_BY_TEAM = new PermissionDeniedReason().withTag(Tag.RESTRICTED_BY_TEAM); + /** + * The user's account type does not support this action. + */ + public static final PermissionDeniedReason USER_ACCOUNT_TYPE = new PermissionDeniedReason().withTag(Tag.USER_ACCOUNT_TYPE); + /** + * The user needs to be on a Dropbox team to perform this action. + */ + public static final PermissionDeniedReason USER_NOT_ON_TEAM = new PermissionDeniedReason().withTag(Tag.USER_NOT_ON_TEAM); + /** + * Folder is inside of another shared folder. + */ + public static final PermissionDeniedReason FOLDER_IS_INSIDE_SHARED_FOLDER = new PermissionDeniedReason().withTag(Tag.FOLDER_IS_INSIDE_SHARED_FOLDER); + /** + * Policy cannot be changed due to restrictions from parent folder. + */ + public static final PermissionDeniedReason RESTRICTED_BY_PARENT_FOLDER = new PermissionDeniedReason().withTag(Tag.RESTRICTED_BY_PARENT_FOLDER); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PermissionDeniedReason OTHER = new PermissionDeniedReason().withTag(Tag.OTHER); + + private Tag _tag; + private InsufficientPlan insufficientPlanValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PermissionDeniedReason() { + } + + + /** + * Possible reasons the user is denied a permission. + * + * @param _tag Discriminating tag for this instance. + */ + private PermissionDeniedReason withTag(Tag _tag) { + PermissionDeniedReason result = new PermissionDeniedReason(); + result._tag = _tag; + return result; + } + + /** + * Possible reasons the user is denied a permission. + * + * @param insufficientPlanValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private PermissionDeniedReason withTagAndInsufficientPlan(Tag _tag, InsufficientPlan insufficientPlanValue) { + PermissionDeniedReason result = new PermissionDeniedReason(); + result._tag = _tag; + result.insufficientPlanValue = insufficientPlanValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PermissionDeniedReason}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_NOT_SAME_TEAM_AS_OWNER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_NOT_SAME_TEAM_AS_OWNER}, {@code false} otherwise. + */ + public boolean isUserNotSameTeamAsOwner() { + return this._tag == Tag.USER_NOT_SAME_TEAM_AS_OWNER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_NOT_ALLOWED_BY_OWNER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_NOT_ALLOWED_BY_OWNER}, {@code false} otherwise. + */ + public boolean isUserNotAllowedByOwner() { + return this._tag == Tag.USER_NOT_ALLOWED_BY_OWNER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TARGET_IS_INDIRECT_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TARGET_IS_INDIRECT_MEMBER}, {@code false} otherwise. + */ + public boolean isTargetIsIndirectMember() { + return this._tag == Tag.TARGET_IS_INDIRECT_MEMBER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TARGET_IS_OWNER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TARGET_IS_OWNER}, {@code false} otherwise. + */ + public boolean isTargetIsOwner() { + return this._tag == Tag.TARGET_IS_OWNER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TARGET_IS_SELF}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TARGET_IS_SELF}, {@code false} otherwise. + */ + public boolean isTargetIsSelf() { + return this._tag == Tag.TARGET_IS_SELF; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TARGET_NOT_ACTIVE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TARGET_NOT_ACTIVE}, {@code false} otherwise. + */ + public boolean isTargetNotActive() { + return this._tag == Tag.TARGET_NOT_ACTIVE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_IS_LIMITED_TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_IS_LIMITED_TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isFolderIsLimitedTeamFolder() { + return this._tag == Tag.FOLDER_IS_LIMITED_TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OWNER_NOT_ON_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OWNER_NOT_ON_TEAM}, {@code false} otherwise. + */ + public boolean isOwnerNotOnTeam() { + return this._tag == Tag.OWNER_NOT_ON_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PERMISSION_DENIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PERMISSION_DENIED}, {@code false} otherwise. + */ + public boolean isPermissionDenied() { + return this._tag == Tag.PERMISSION_DENIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_BY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_BY_TEAM}, {@code false} otherwise. + */ + public boolean isRestrictedByTeam() { + return this._tag == Tag.RESTRICTED_BY_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_ACCOUNT_TYPE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ACCOUNT_TYPE}, {@code false} otherwise. + */ + public boolean isUserAccountType() { + return this._tag == Tag.USER_ACCOUNT_TYPE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_NOT_ON_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_NOT_ON_TEAM}, {@code false} otherwise. + */ + public boolean isUserNotOnTeam() { + return this._tag == Tag.USER_NOT_ON_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_IS_INSIDE_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_IS_INSIDE_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isFolderIsInsideSharedFolder() { + return this._tag == Tag.FOLDER_IS_INSIDE_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESTRICTED_BY_PARENT_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESTRICTED_BY_PARENT_FOLDER}, {@code false} otherwise. + */ + public boolean isRestrictedByParentFolder() { + return this._tag == Tag.RESTRICTED_BY_PARENT_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_PLAN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_PLAN}, {@code false} otherwise. + */ + public boolean isInsufficientPlan() { + return this._tag == Tag.INSUFFICIENT_PLAN; + } + + /** + * Returns an instance of {@code PermissionDeniedReason} that has its tag + * set to {@link Tag#INSUFFICIENT_PLAN}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PermissionDeniedReason} with its tag set to + * {@link Tag#INSUFFICIENT_PLAN}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static PermissionDeniedReason insufficientPlan(InsufficientPlan value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new PermissionDeniedReason().withTagAndInsufficientPlan(Tag.INSUFFICIENT_PLAN, value); + } + + /** + * This instance must be tagged as {@link Tag#INSUFFICIENT_PLAN}. + * + * @return The {@link InsufficientPlan} value associated with this instance + * if {@link #isInsufficientPlan} is {@code true}. + * + * @throws IllegalStateException If {@link #isInsufficientPlan} is {@code + * false}. + */ + public InsufficientPlan getInsufficientPlanValue() { + if (this._tag != Tag.INSUFFICIENT_PLAN) { + throw new IllegalStateException("Invalid tag: required Tag.INSUFFICIENT_PLAN, but was Tag." + this._tag.name()); + } + return insufficientPlanValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.insufficientPlanValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PermissionDeniedReason) { + PermissionDeniedReason other = (PermissionDeniedReason) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_NOT_SAME_TEAM_AS_OWNER: + return true; + case USER_NOT_ALLOWED_BY_OWNER: + return true; + case TARGET_IS_INDIRECT_MEMBER: + return true; + case TARGET_IS_OWNER: + return true; + case TARGET_IS_SELF: + return true; + case TARGET_NOT_ACTIVE: + return true; + case FOLDER_IS_LIMITED_TEAM_FOLDER: + return true; + case OWNER_NOT_ON_TEAM: + return true; + case PERMISSION_DENIED: + return true; + case RESTRICTED_BY_TEAM: + return true; + case USER_ACCOUNT_TYPE: + return true; + case USER_NOT_ON_TEAM: + return true; + case FOLDER_IS_INSIDE_SHARED_FOLDER: + return true; + case RESTRICTED_BY_PARENT_FOLDER: + return true; + case INSUFFICIENT_PLAN: + return (this.insufficientPlanValue == other.insufficientPlanValue) || (this.insufficientPlanValue.equals(other.insufficientPlanValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PermissionDeniedReason value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_NOT_SAME_TEAM_AS_OWNER: { + g.writeString("user_not_same_team_as_owner"); + break; + } + case USER_NOT_ALLOWED_BY_OWNER: { + g.writeString("user_not_allowed_by_owner"); + break; + } + case TARGET_IS_INDIRECT_MEMBER: { + g.writeString("target_is_indirect_member"); + break; + } + case TARGET_IS_OWNER: { + g.writeString("target_is_owner"); + break; + } + case TARGET_IS_SELF: { + g.writeString("target_is_self"); + break; + } + case TARGET_NOT_ACTIVE: { + g.writeString("target_not_active"); + break; + } + case FOLDER_IS_LIMITED_TEAM_FOLDER: { + g.writeString("folder_is_limited_team_folder"); + break; + } + case OWNER_NOT_ON_TEAM: { + g.writeString("owner_not_on_team"); + break; + } + case PERMISSION_DENIED: { + g.writeString("permission_denied"); + break; + } + case RESTRICTED_BY_TEAM: { + g.writeString("restricted_by_team"); + break; + } + case USER_ACCOUNT_TYPE: { + g.writeString("user_account_type"); + break; + } + case USER_NOT_ON_TEAM: { + g.writeString("user_not_on_team"); + break; + } + case FOLDER_IS_INSIDE_SHARED_FOLDER: { + g.writeString("folder_is_inside_shared_folder"); + break; + } + case RESTRICTED_BY_PARENT_FOLDER: { + g.writeString("restricted_by_parent_folder"); + break; + } + case INSUFFICIENT_PLAN: { + g.writeStartObject(); + writeTag("insufficient_plan", g); + InsufficientPlan.Serializer.INSTANCE.serialize(value.insufficientPlanValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PermissionDeniedReason deserialize(JsonParser p) throws IOException, JsonParseException { + PermissionDeniedReason value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_same_team_as_owner".equals(tag)) { + value = PermissionDeniedReason.USER_NOT_SAME_TEAM_AS_OWNER; + } + else if ("user_not_allowed_by_owner".equals(tag)) { + value = PermissionDeniedReason.USER_NOT_ALLOWED_BY_OWNER; + } + else if ("target_is_indirect_member".equals(tag)) { + value = PermissionDeniedReason.TARGET_IS_INDIRECT_MEMBER; + } + else if ("target_is_owner".equals(tag)) { + value = PermissionDeniedReason.TARGET_IS_OWNER; + } + else if ("target_is_self".equals(tag)) { + value = PermissionDeniedReason.TARGET_IS_SELF; + } + else if ("target_not_active".equals(tag)) { + value = PermissionDeniedReason.TARGET_NOT_ACTIVE; + } + else if ("folder_is_limited_team_folder".equals(tag)) { + value = PermissionDeniedReason.FOLDER_IS_LIMITED_TEAM_FOLDER; + } + else if ("owner_not_on_team".equals(tag)) { + value = PermissionDeniedReason.OWNER_NOT_ON_TEAM; + } + else if ("permission_denied".equals(tag)) { + value = PermissionDeniedReason.PERMISSION_DENIED; + } + else if ("restricted_by_team".equals(tag)) { + value = PermissionDeniedReason.RESTRICTED_BY_TEAM; + } + else if ("user_account_type".equals(tag)) { + value = PermissionDeniedReason.USER_ACCOUNT_TYPE; + } + else if ("user_not_on_team".equals(tag)) { + value = PermissionDeniedReason.USER_NOT_ON_TEAM; + } + else if ("folder_is_inside_shared_folder".equals(tag)) { + value = PermissionDeniedReason.FOLDER_IS_INSIDE_SHARED_FOLDER; + } + else if ("restricted_by_parent_folder".equals(tag)) { + value = PermissionDeniedReason.RESTRICTED_BY_PARENT_FOLDER; + } + else if ("insufficient_plan".equals(tag)) { + InsufficientPlan fieldValue = null; + fieldValue = InsufficientPlan.Serializer.INSTANCE.deserialize(p, true); + value = PermissionDeniedReason.insufficientPlan(fieldValue); + } + else { + value = PermissionDeniedReason.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipArg.java new file mode 100644 index 000000000..db8e63a0b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipArg.java @@ -0,0 +1,156 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class RelinquishFileMembershipArg { + // struct sharing.RelinquishFileMembershipArg (sharing_files.stone) + + @Nonnull + protected final String file; + + /** + * + * @param file The path or id for the file. Must have length of at least 1, + * match pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelinquishFileMembershipArg(@Nonnull String file) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + } + + /** + * The path or id for the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelinquishFileMembershipArg other = (RelinquishFileMembershipArg) obj; + return (this.file == other.file) || (this.file.equals(other.file)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelinquishFileMembershipArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelinquishFileMembershipArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelinquishFileMembershipArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + value = new RelinquishFileMembershipArg(f_file); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipError.java new file mode 100644 index 000000000..2ad2cc71b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipError.java @@ -0,0 +1,336 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RelinquishFileMembershipError { + // union sharing.RelinquishFileMembershipError (sharing_files.stone) + + /** + * Discriminating tag type for {@link RelinquishFileMembershipError}. + */ + public enum Tag { + ACCESS_ERROR, // SharingFileAccessError + /** + * The current user has access to the shared file via a group. You + * can't relinquish membership to a file shared via groups. + */ + GROUP_ACCESS, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The current user has access to the shared file via a group. You can't + * relinquish membership to a file shared via groups. + */ + public static final RelinquishFileMembershipError GROUP_ACCESS = new RelinquishFileMembershipError().withTag(Tag.GROUP_ACCESS); + /** + * The current user does not have permission to perform this action. + */ + public static final RelinquishFileMembershipError NO_PERMISSION = new RelinquishFileMembershipError().withTag(Tag.NO_PERMISSION); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RelinquishFileMembershipError OTHER = new RelinquishFileMembershipError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelinquishFileMembershipError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RelinquishFileMembershipError withTag(Tag _tag) { + RelinquishFileMembershipError result = new RelinquishFileMembershipError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelinquishFileMembershipError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + RelinquishFileMembershipError result = new RelinquishFileMembershipError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelinquishFileMembershipError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code RelinquishFileMembershipError} that has its + * tag set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelinquishFileMembershipError} with its tag + * set to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelinquishFileMembershipError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelinquishFileMembershipError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_ACCESS}, {@code false} otherwise. + */ + public boolean isGroupAccess() { + return this._tag == Tag.GROUP_ACCESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelinquishFileMembershipError) { + RelinquishFileMembershipError other = (RelinquishFileMembershipError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case GROUP_ACCESS: + return true; + case NO_PERMISSION: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelinquishFileMembershipError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case GROUP_ACCESS: { + g.writeString("group_access"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RelinquishFileMembershipError deserialize(JsonParser p) throws IOException, JsonParseException { + RelinquishFileMembershipError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = RelinquishFileMembershipError.accessError(fieldValue); + } + else if ("group_access".equals(tag)) { + value = RelinquishFileMembershipError.GROUP_ACCESS; + } + else if ("no_permission".equals(tag)) { + value = RelinquishFileMembershipError.NO_PERMISSION; + } + else { + value = RelinquishFileMembershipError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipErrorException.java new file mode 100644 index 000000000..658c5a884 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFileMembershipErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RelinquishFileMembershipError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#relinquishFileMembership(String)}.

+ */ +public class RelinquishFileMembershipErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/relinquish_file_membership + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#relinquishFileMembership(String)}. + */ + public final RelinquishFileMembershipError errorValue; + + public RelinquishFileMembershipErrorException(String routeName, String requestId, LocalizedText userMessage, RelinquishFileMembershipError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipArg.java new file mode 100644 index 000000000..90c443be1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipArg.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class RelinquishFolderMembershipArg { + // struct sharing.RelinquishFolderMembershipArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + protected final boolean leaveACopy; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param leaveACopy Keep a copy of the folder's contents upon + * relinquishing membership. This must be set to false when the folder + * is within a team folder or another shared folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelinquishFolderMembershipArg(@Nonnull String sharedFolderId, boolean leaveACopy) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + this.leaveACopy = leaveACopy; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RelinquishFolderMembershipArg(@Nonnull String sharedFolderId) { + this(sharedFolderId, false); + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * Keep a copy of the folder's contents upon relinquishing membership. This + * must be set to false when the folder is within a team folder or another + * shared folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getLeaveACopy() { + return leaveACopy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.leaveACopy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelinquishFolderMembershipArg other = (RelinquishFolderMembershipArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && (this.leaveACopy == other.leaveACopy) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelinquishFolderMembershipArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("leave_a_copy"); + StoneSerializers.boolean_().serialize(value.leaveACopy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelinquishFolderMembershipArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelinquishFolderMembershipArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + Boolean f_leaveACopy = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("leave_a_copy".equals(field)) { + f_leaveACopy = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new RelinquishFolderMembershipArg(f_sharedFolderId, f_leaveACopy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipError.java new file mode 100644 index 000000000..664fb9530 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipError.java @@ -0,0 +1,456 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RelinquishFolderMembershipError { + // union sharing.RelinquishFolderMembershipError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link RelinquishFolderMembershipError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + /** + * The current user is the owner of the shared folder. Owners cannot + * relinquish membership to their own folders. Try unsharing or + * transferring ownership first. + */ + FOLDER_OWNER, + /** + * The shared folder is currently mounted. Unmount the shared folder + * before relinquishing membership. + */ + MOUNTED, + /** + * The current user has access to the shared folder via a group. You + * can't relinquish membership to folders shared via groups. + */ + GROUP_ACCESS, + /** + * This action cannot be performed on a team shared folder. + */ + TEAM_FOLDER, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * The current user only has inherited access to the shared folder. You + * can't relinquish inherited membership to folders. + */ + NO_EXPLICIT_ACCESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The current user is the owner of the shared folder. Owners cannot + * relinquish membership to their own folders. Try unsharing or transferring + * ownership first. + */ + public static final RelinquishFolderMembershipError FOLDER_OWNER = new RelinquishFolderMembershipError().withTag(Tag.FOLDER_OWNER); + /** + * The shared folder is currently mounted. Unmount the shared folder before + * relinquishing membership. + */ + public static final RelinquishFolderMembershipError MOUNTED = new RelinquishFolderMembershipError().withTag(Tag.MOUNTED); + /** + * The current user has access to the shared folder via a group. You can't + * relinquish membership to folders shared via groups. + */ + public static final RelinquishFolderMembershipError GROUP_ACCESS = new RelinquishFolderMembershipError().withTag(Tag.GROUP_ACCESS); + /** + * This action cannot be performed on a team shared folder. + */ + public static final RelinquishFolderMembershipError TEAM_FOLDER = new RelinquishFolderMembershipError().withTag(Tag.TEAM_FOLDER); + /** + * The current user does not have permission to perform this action. + */ + public static final RelinquishFolderMembershipError NO_PERMISSION = new RelinquishFolderMembershipError().withTag(Tag.NO_PERMISSION); + /** + * The current user only has inherited access to the shared folder. You + * can't relinquish inherited membership to folders. + */ + public static final RelinquishFolderMembershipError NO_EXPLICIT_ACCESS = new RelinquishFolderMembershipError().withTag(Tag.NO_EXPLICIT_ACCESS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RelinquishFolderMembershipError OTHER = new RelinquishFolderMembershipError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RelinquishFolderMembershipError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RelinquishFolderMembershipError withTag(Tag _tag) { + RelinquishFolderMembershipError result = new RelinquishFolderMembershipError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RelinquishFolderMembershipError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + RelinquishFolderMembershipError result = new RelinquishFolderMembershipError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RelinquishFolderMembershipError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code RelinquishFolderMembershipError} that has + * its tag set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RelinquishFolderMembershipError} with its tag + * set to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RelinquishFolderMembershipError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RelinquishFolderMembershipError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OWNER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OWNER}, {@code false} otherwise. + */ + public boolean isFolderOwner() { + return this._tag == Tag.FOLDER_OWNER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#MOUNTED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#MOUNTED}, + * {@code false} otherwise. + */ + public boolean isMounted() { + return this._tag == Tag.MOUNTED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_ACCESS}, {@code false} otherwise. + */ + public boolean isGroupAccess() { + return this._tag == Tag.GROUP_ACCESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isTeamFolder() { + return this._tag == Tag.TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + */ + public boolean isNoExplicitAccess() { + return this._tag == Tag.NO_EXPLICIT_ACCESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RelinquishFolderMembershipError) { + RelinquishFolderMembershipError other = (RelinquishFolderMembershipError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case FOLDER_OWNER: + return true; + case MOUNTED: + return true; + case GROUP_ACCESS: + return true; + case TEAM_FOLDER: + return true; + case NO_PERMISSION: + return true; + case NO_EXPLICIT_ACCESS: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelinquishFolderMembershipError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case FOLDER_OWNER: { + g.writeString("folder_owner"); + break; + } + case MOUNTED: { + g.writeString("mounted"); + break; + } + case GROUP_ACCESS: { + g.writeString("group_access"); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case NO_EXPLICIT_ACCESS: { + g.writeString("no_explicit_access"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RelinquishFolderMembershipError deserialize(JsonParser p) throws IOException, JsonParseException { + RelinquishFolderMembershipError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = RelinquishFolderMembershipError.accessError(fieldValue); + } + else if ("folder_owner".equals(tag)) { + value = RelinquishFolderMembershipError.FOLDER_OWNER; + } + else if ("mounted".equals(tag)) { + value = RelinquishFolderMembershipError.MOUNTED; + } + else if ("group_access".equals(tag)) { + value = RelinquishFolderMembershipError.GROUP_ACCESS; + } + else if ("team_folder".equals(tag)) { + value = RelinquishFolderMembershipError.TEAM_FOLDER; + } + else if ("no_permission".equals(tag)) { + value = RelinquishFolderMembershipError.NO_PERMISSION; + } + else if ("no_explicit_access".equals(tag)) { + value = RelinquishFolderMembershipError.NO_EXPLICIT_ACCESS; + } + else { + value = RelinquishFolderMembershipError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipErrorException.java new file mode 100644 index 000000000..2fd6ecc0d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RelinquishFolderMembershipErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RelinquishFolderMembershipError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#relinquishFolderMembership(String,boolean)}.

+ */ +public class RelinquishFolderMembershipErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/relinquish_folder_membership + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#relinquishFolderMembership(String,boolean)}. + */ + public final RelinquishFolderMembershipError errorValue; + + public RelinquishFolderMembershipErrorException(String routeName, String requestId, LocalizedText userMessage, RelinquishFolderMembershipError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberArg.java new file mode 100644 index 000000000..7c983f7c7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberArg.java @@ -0,0 +1,197 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + */ +class RemoveFileMemberArg { + // struct sharing.RemoveFileMemberArg (sharing_files.stone) + + @Nonnull + protected final String file; + @Nonnull + protected final MemberSelector member; + + /** + * Arguments for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + * + * @param file File from which to remove members. Must have length of at + * least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param member Member to remove from this file. Note that even if an + * email is specified, it may result in the removal of a user (not an + * invitee) if the user's main account corresponds to that email + * address. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RemoveFileMemberArg(@Nonnull String file, @Nonnull MemberSelector member) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + } + + /** + * File from which to remove members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + /** + * Member to remove from this file. Note that even if an email is specified, + * it may result in the removal of a user (not an invitee) if the user's + * main account corresponds to that email address. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file, + this.member + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RemoveFileMemberArg other = (RemoveFileMemberArg) obj; + return ((this.file == other.file) || (this.file.equals(other.file))) + && ((this.member == other.member) || (this.member.equals(other.member))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveFileMemberArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RemoveFileMemberArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RemoveFileMemberArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + MemberSelector f_member = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + value = new RemoveFileMemberArg(f_file, f_member); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberError.java new file mode 100644 index 000000000..8fbc286be --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberError.java @@ -0,0 +1,462 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Errors for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RemoveFileMemberError { + // union sharing.RemoveFileMemberError (sharing_files.stone) + + /** + * Discriminating tag type for {@link RemoveFileMemberError}. + */ + public enum Tag { + USER_ERROR, // SharingUserError + ACCESS_ERROR, // SharingFileAccessError + /** + * This member does not have explicit access to the file and therefore + * cannot be removed. The return value is the access that a user might + * have to the file from a parent folder. + */ + NO_EXPLICIT_ACCESS, // MemberAccessLevelResult + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RemoveFileMemberError OTHER = new RemoveFileMemberError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingUserError userErrorValue; + private SharingFileAccessError accessErrorValue; + private MemberAccessLevelResult noExplicitAccessValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RemoveFileMemberError() { + } + + + /** + * Errors for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + * + * @param _tag Discriminating tag for this instance. + */ + private RemoveFileMemberError withTag(Tag _tag) { + RemoveFileMemberError result = new RemoveFileMemberError(); + result._tag = _tag; + return result; + } + + /** + * Errors for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + * + * @param userErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveFileMemberError withTagAndUserError(Tag _tag, SharingUserError userErrorValue) { + RemoveFileMemberError result = new RemoveFileMemberError(); + result._tag = _tag; + result.userErrorValue = userErrorValue; + return result; + } + + /** + * Errors for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveFileMemberError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + RemoveFileMemberError result = new RemoveFileMemberError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Errors for {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + * + * @param noExplicitAccessValue This member does not have explicit access + * to the file and therefore cannot be removed. The return value is the + * access that a user might have to the file from a parent folder. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveFileMemberError withTagAndNoExplicitAccess(Tag _tag, MemberAccessLevelResult noExplicitAccessValue) { + RemoveFileMemberError result = new RemoveFileMemberError(); + result._tag = _tag; + result.noExplicitAccessValue = noExplicitAccessValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RemoveFileMemberError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ERROR}, {@code false} otherwise. + */ + public boolean isUserError() { + return this._tag == Tag.USER_ERROR; + } + + /** + * Returns an instance of {@code RemoveFileMemberError} that has its tag set + * to {@link Tag#USER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveFileMemberError} with its tag set to + * {@link Tag#USER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveFileMemberError userError(SharingUserError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveFileMemberError().withTagAndUserError(Tag.USER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_ERROR}. + * + * @return The {@link SharingUserError} value associated with this instance + * if {@link #isUserError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserError} is {@code false}. + */ + public SharingUserError getUserErrorValue() { + if (this._tag != Tag.USER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ERROR, but was Tag." + this._tag.name()); + } + return userErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code RemoveFileMemberError} that has its tag set + * to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveFileMemberError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveFileMemberError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveFileMemberError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + */ + public boolean isNoExplicitAccess() { + return this._tag == Tag.NO_EXPLICIT_ACCESS; + } + + /** + * Returns an instance of {@code RemoveFileMemberError} that has its tag set + * to {@link Tag#NO_EXPLICIT_ACCESS}. + * + *

This member does not have explicit access to the file and therefore + * cannot be removed. The return value is the access that a user might have + * to the file from a parent folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveFileMemberError} with its tag set to + * {@link Tag#NO_EXPLICIT_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveFileMemberError noExplicitAccess(MemberAccessLevelResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveFileMemberError().withTagAndNoExplicitAccess(Tag.NO_EXPLICIT_ACCESS, value); + } + + /** + * This member does not have explicit access to the file and therefore + * cannot be removed. The return value is the access that a user might have + * to the file from a parent folder. + * + *

This instance must be tagged as {@link Tag#NO_EXPLICIT_ACCESS}.

+ * + * @return The {@link MemberAccessLevelResult} value associated with this + * instance if {@link #isNoExplicitAccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoExplicitAccess} is {@code + * false}. + */ + public MemberAccessLevelResult getNoExplicitAccessValue() { + if (this._tag != Tag.NO_EXPLICIT_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPLICIT_ACCESS, but was Tag." + this._tag.name()); + } + return noExplicitAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userErrorValue, + this.accessErrorValue, + this.noExplicitAccessValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RemoveFileMemberError) { + RemoveFileMemberError other = (RemoveFileMemberError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_ERROR: + return (this.userErrorValue == other.userErrorValue) || (this.userErrorValue.equals(other.userErrorValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case NO_EXPLICIT_ACCESS: + return (this.noExplicitAccessValue == other.noExplicitAccessValue) || (this.noExplicitAccessValue.equals(other.noExplicitAccessValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveFileMemberError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_ERROR: { + g.writeStartObject(); + writeTag("user_error", g); + g.writeFieldName("user_error"); + SharingUserError.Serializer.INSTANCE.serialize(value.userErrorValue, g); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case NO_EXPLICIT_ACCESS: { + g.writeStartObject(); + writeTag("no_explicit_access", g); + MemberAccessLevelResult.Serializer.INSTANCE.serialize(value.noExplicitAccessValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RemoveFileMemberError deserialize(JsonParser p) throws IOException, JsonParseException { + RemoveFileMemberError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_error".equals(tag)) { + SharingUserError fieldValue = null; + expectField("user_error", p); + fieldValue = SharingUserError.Serializer.INSTANCE.deserialize(p); + value = RemoveFileMemberError.userError(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = RemoveFileMemberError.accessError(fieldValue); + } + else if ("no_explicit_access".equals(tag)) { + MemberAccessLevelResult fieldValue = null; + fieldValue = MemberAccessLevelResult.Serializer.INSTANCE.deserialize(p, true); + value = RemoveFileMemberError.noExplicitAccess(fieldValue); + } + else { + value = RemoveFileMemberError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberErrorException.java new file mode 100644 index 000000000..261b0585f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFileMemberErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RemoveFileMemberError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#removeFileMember(String,MemberSelector)} and {@link + * DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}.

+ */ +public class RemoveFileMemberErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/remove_file_member + // 2/sharing/remove_file_member_2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#removeFileMember(String,MemberSelector)} and + * {@link DbxUserSharingRequests#removeFileMember2(String,MemberSelector)}. + */ + public final RemoveFileMemberError errorValue; + + public RemoveFileMemberErrorException(String routeName, String requestId, LocalizedText userMessage, RemoveFileMemberError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberArg.java new file mode 100644 index 000000000..c19e4ce9e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberArg.java @@ -0,0 +1,212 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class RemoveFolderMemberArg { + // struct sharing.RemoveFolderMemberArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + @Nonnull + protected final MemberSelector member; + protected final boolean leaveACopy; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param member The member to remove from the folder. Must not be {@code + * null}. + * @param leaveACopy If true, the removed user will keep their copy of the + * folder after it's unshared, assuming it was mounted. Otherwise, it + * will be removed from their Dropbox. This must be set to false when + * removing a group, or when the folder is within a team folder or + * another shared folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RemoveFolderMemberArg(@Nonnull String sharedFolderId, @Nonnull MemberSelector member, boolean leaveACopy) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + this.leaveACopy = leaveACopy; + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * The member to remove from the folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + /** + * If true, the removed user will keep their copy of the folder after it's + * unshared, assuming it was mounted. Otherwise, it will be removed from + * their Dropbox. This must be set to false when removing a group, or when + * the folder is within a team folder or another shared folder. + * + * @return value for this field. + */ + public boolean getLeaveACopy() { + return leaveACopy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.member, + this.leaveACopy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RemoveFolderMemberArg other = (RemoveFolderMemberArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.member == other.member) || (this.member.equals(other.member))) + && (this.leaveACopy == other.leaveACopy) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveFolderMemberArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + g.writeFieldName("leave_a_copy"); + StoneSerializers.boolean_().serialize(value.leaveACopy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RemoveFolderMemberArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RemoveFolderMemberArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + MemberSelector f_member = null; + Boolean f_leaveACopy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("leave_a_copy".equals(field)) { + f_leaveACopy = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + if (f_leaveACopy == null) { + throw new JsonParseException(p, "Required field \"leave_a_copy\" missing."); + } + value = new RemoveFolderMemberArg(f_sharedFolderId, f_member, f_leaveACopy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberError.java new file mode 100644 index 000000000..52ac9ed77 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberError.java @@ -0,0 +1,503 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RemoveFolderMemberError { + // union sharing.RemoveFolderMemberError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link RemoveFolderMemberError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + MEMBER_ERROR, // SharedFolderMemberError + /** + * The target user is the owner of the shared folder. You can't remove + * this user until ownership has been transferred to another member. + */ + FOLDER_OWNER, + /** + * The target user has access to the shared folder via a group. + */ + GROUP_ACCESS, + /** + * This action cannot be performed on a team shared folder. + */ + TEAM_FOLDER, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * This shared folder has too many files for leaving a copy. You can + * still remove this user without leaving a copy. + */ + TOO_MANY_FILES, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The target user is the owner of the shared folder. You can't remove this + * user until ownership has been transferred to another member. + */ + public static final RemoveFolderMemberError FOLDER_OWNER = new RemoveFolderMemberError().withTag(Tag.FOLDER_OWNER); + /** + * The target user has access to the shared folder via a group. + */ + public static final RemoveFolderMemberError GROUP_ACCESS = new RemoveFolderMemberError().withTag(Tag.GROUP_ACCESS); + /** + * This action cannot be performed on a team shared folder. + */ + public static final RemoveFolderMemberError TEAM_FOLDER = new RemoveFolderMemberError().withTag(Tag.TEAM_FOLDER); + /** + * The current user does not have permission to perform this action. + */ + public static final RemoveFolderMemberError NO_PERMISSION = new RemoveFolderMemberError().withTag(Tag.NO_PERMISSION); + /** + * This shared folder has too many files for leaving a copy. You can still + * remove this user without leaving a copy. + */ + public static final RemoveFolderMemberError TOO_MANY_FILES = new RemoveFolderMemberError().withTag(Tag.TOO_MANY_FILES); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RemoveFolderMemberError OTHER = new RemoveFolderMemberError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + private SharedFolderMemberError memberErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RemoveFolderMemberError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RemoveFolderMemberError withTag(Tag _tag) { + RemoveFolderMemberError result = new RemoveFolderMemberError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveFolderMemberError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + RemoveFolderMemberError result = new RemoveFolderMemberError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param memberErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveFolderMemberError withTagAndMemberError(Tag _tag, SharedFolderMemberError memberErrorValue) { + RemoveFolderMemberError result = new RemoveFolderMemberError(); + result._tag = _tag; + result.memberErrorValue = memberErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RemoveFolderMemberError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code RemoveFolderMemberError} that has its tag + * set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveFolderMemberError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveFolderMemberError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveFolderMemberError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + */ + public boolean isMemberError() { + return this._tag == Tag.MEMBER_ERROR; + } + + /** + * Returns an instance of {@code RemoveFolderMemberError} that has its tag + * set to {@link Tag#MEMBER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveFolderMemberError} with its tag set to + * {@link Tag#MEMBER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveFolderMemberError memberError(SharedFolderMemberError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveFolderMemberError().withTagAndMemberError(Tag.MEMBER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#MEMBER_ERROR}. + * + * @return The {@link SharedFolderMemberError} value associated with this + * instance if {@link #isMemberError} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberError} is {@code + * false}. + */ + public SharedFolderMemberError getMemberErrorValue() { + if (this._tag != Tag.MEMBER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ERROR, but was Tag." + this._tag.name()); + } + return memberErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OWNER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OWNER}, {@code false} otherwise. + */ + public boolean isFolderOwner() { + return this._tag == Tag.FOLDER_OWNER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_ACCESS}, {@code false} otherwise. + */ + public boolean isGroupAccess() { + return this._tag == Tag.GROUP_ACCESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isTeamFolder() { + return this._tag == Tag.TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.memberErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RemoveFolderMemberError) { + RemoveFolderMemberError other = (RemoveFolderMemberError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case MEMBER_ERROR: + return (this.memberErrorValue == other.memberErrorValue) || (this.memberErrorValue.equals(other.memberErrorValue)); + case FOLDER_OWNER: + return true; + case GROUP_ACCESS: + return true; + case TEAM_FOLDER: + return true; + case NO_PERMISSION: + return true; + case TOO_MANY_FILES: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveFolderMemberError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case MEMBER_ERROR: { + g.writeStartObject(); + writeTag("member_error", g); + g.writeFieldName("member_error"); + SharedFolderMemberError.Serializer.INSTANCE.serialize(value.memberErrorValue, g); + g.writeEndObject(); + break; + } + case FOLDER_OWNER: { + g.writeString("folder_owner"); + break; + } + case GROUP_ACCESS: { + g.writeString("group_access"); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RemoveFolderMemberError deserialize(JsonParser p) throws IOException, JsonParseException { + RemoveFolderMemberError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = RemoveFolderMemberError.accessError(fieldValue); + } + else if ("member_error".equals(tag)) { + SharedFolderMemberError fieldValue = null; + expectField("member_error", p); + fieldValue = SharedFolderMemberError.Serializer.INSTANCE.deserialize(p); + value = RemoveFolderMemberError.memberError(fieldValue); + } + else if ("folder_owner".equals(tag)) { + value = RemoveFolderMemberError.FOLDER_OWNER; + } + else if ("group_access".equals(tag)) { + value = RemoveFolderMemberError.GROUP_ACCESS; + } + else if ("team_folder".equals(tag)) { + value = RemoveFolderMemberError.TEAM_FOLDER; + } + else if ("no_permission".equals(tag)) { + value = RemoveFolderMemberError.NO_PERMISSION; + } + else if ("too_many_files".equals(tag)) { + value = RemoveFolderMemberError.TOO_MANY_FILES; + } + else { + value = RemoveFolderMemberError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberErrorException.java new file mode 100644 index 000000000..09439b8ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveFolderMemberErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RemoveFolderMemberError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)}. + *

+ */ +public class RemoveFolderMemberErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/remove_folder_member + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#removeFolderMember(String,MemberSelector,boolean)}. + */ + public final RemoveFolderMemberError errorValue; + + public RemoveFolderMemberErrorException(String routeName, String requestId, LocalizedText userMessage, RemoveFolderMemberError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveMemberJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveMemberJobStatus.java new file mode 100644 index 000000000..16c79915d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RemoveMemberJobStatus.java @@ -0,0 +1,357 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class RemoveMemberJobStatus { + // union sharing.RemoveMemberJobStatus (sharing_folders.stone) + + /** + * Discriminating tag type for {@link RemoveMemberJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * Removing the folder member has finished. The value is information + * about whether the member has another form of access. + */ + COMPLETE, // MemberAccessLevelResult + FAILED; // RemoveFolderMemberError + } + + /** + * The asynchronous job is still in progress. + */ + public static final RemoveMemberJobStatus IN_PROGRESS = new RemoveMemberJobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private MemberAccessLevelResult completeValue; + private RemoveFolderMemberError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RemoveMemberJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RemoveMemberJobStatus withTag(Tag _tag) { + RemoveMemberJobStatus result = new RemoveMemberJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue Removing the folder member has finished. The value + * is information about whether the member has another form of access. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveMemberJobStatus withTagAndComplete(Tag _tag, MemberAccessLevelResult completeValue) { + RemoveMemberJobStatus result = new RemoveMemberJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveMemberJobStatus withTagAndFailed(Tag _tag, RemoveFolderMemberError failedValue) { + RemoveMemberJobStatus result = new RemoveMemberJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RemoveMemberJobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code RemoveMemberJobStatus} that has its tag set + * to {@link Tag#COMPLETE}. + * + *

Removing the folder member has finished. The value is information + * about whether the member has another form of access.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveMemberJobStatus} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveMemberJobStatus complete(MemberAccessLevelResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveMemberJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * Removing the folder member has finished. The value is information about + * whether the member has another form of access. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link MemberAccessLevelResult} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public MemberAccessLevelResult getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code RemoveMemberJobStatus} that has its tag set + * to {@link Tag#FAILED}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveMemberJobStatus} with its tag set to + * {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveMemberJobStatus failed(RemoveFolderMemberError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveMemberJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILED}. + * + * @return The {@link RemoveFolderMemberError} value associated with this + * instance if {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public RemoveFolderMemberError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RemoveMemberJobStatus) { + RemoveMemberJobStatus other = (RemoveMemberJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveMemberJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + MemberAccessLevelResult.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + RemoveFolderMemberError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RemoveMemberJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + RemoveMemberJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = RemoveMemberJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + MemberAccessLevelResult fieldValue = null; + fieldValue = MemberAccessLevelResult.Serializer.INSTANCE.deserialize(p, true); + value = RemoveMemberJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + RemoveFolderMemberError fieldValue = null; + expectField("failed", p); + fieldValue = RemoveFolderMemberError.Serializer.INSTANCE.deserialize(p); + value = RemoveMemberJobStatus.failed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RequestedLinkAccessLevel.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RequestedLinkAccessLevel.java new file mode 100644 index 000000000..551c9fc5f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RequestedLinkAccessLevel.java @@ -0,0 +1,118 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum RequestedLinkAccessLevel { + // union sharing.RequestedLinkAccessLevel (shared_links.stone) + /** + * Users who use the link can view and comment on the content. + */ + VIEWER, + /** + * Users who use the link can edit, view and comment on the content. Note + * not all file types support edit links yet. + */ + EDITOR, + /** + * Request for the maximum access level you can set the link to. + */ + MAX, + /** + * Request for the default access level the user has set. + */ + DEFAULT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RequestedLinkAccessLevel value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case VIEWER: { + g.writeString("viewer"); + break; + } + case EDITOR: { + g.writeString("editor"); + break; + } + case MAX: { + g.writeString("max"); + break; + } + case DEFAULT: { + g.writeString("default"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RequestedLinkAccessLevel deserialize(JsonParser p) throws IOException, JsonParseException { + RequestedLinkAccessLevel value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("viewer".equals(tag)) { + value = RequestedLinkAccessLevel.VIEWER; + } + else if ("editor".equals(tag)) { + value = RequestedLinkAccessLevel.EDITOR; + } + else if ("max".equals(tag)) { + value = RequestedLinkAccessLevel.MAX; + } + else if ("default".equals(tag)) { + value = RequestedLinkAccessLevel.DEFAULT; + } + else { + value = RequestedLinkAccessLevel.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RequestedVisibility.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RequestedVisibility.java new file mode 100644 index 000000000..d60606e6d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RequestedVisibility.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The access permission that can be requested by the caller for the shared + * link. Note that the final resolved visibility of the shared link takes into + * account other aspects, such as team and shared folder settings. Check the + * {@link ResolvedVisibility} for more info on the possible resolved visibility + * values of shared links. + */ +public enum RequestedVisibility { + // union sharing.RequestedVisibility (shared_links.stone) + /** + * Anyone who has received the link can access it. No login required. + */ + PUBLIC, + /** + * Only members of the same team can access the link. Login is required. + */ + TEAM_ONLY, + /** + * A link-specific password is required to access the link. Login is not + * required. + */ + PASSWORD; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RequestedVisibility value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PUBLIC: { + g.writeString("public"); + break; + } + case TEAM_ONLY: { + g.writeString("team_only"); + break; + } + case PASSWORD: { + g.writeString("password"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public RequestedVisibility deserialize(JsonParser p) throws IOException, JsonParseException { + RequestedVisibility value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("public".equals(tag)) { + value = RequestedVisibility.PUBLIC; + } + else if ("team_only".equals(tag)) { + value = RequestedVisibility.TEAM_ONLY; + } + else if ("password".equals(tag)) { + value = RequestedVisibility.PASSWORD; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ResolvedVisibility.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ResolvedVisibility.java new file mode 100644 index 000000000..5315124a0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ResolvedVisibility.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The actual access permissions values of shared links after taking into + * account user preferences and the team and shared folder settings. Check the + * {@link RequestedVisibility} for more info on the possible visibility values + * that can be set by the shared link's owner. + */ +public enum ResolvedVisibility { + // union sharing.ResolvedVisibility (shared_links.stone) + /** + * Anyone who has received the link can access it. No login required. + */ + PUBLIC, + /** + * Only members of the same team can access the link. Login is required. + */ + TEAM_ONLY, + /** + * A link-specific password is required to access the link. Login is not + * required. + */ + PASSWORD, + /** + * Only members of the same team who have the link-specific password can + * access the link. Login is required. + */ + TEAM_AND_PASSWORD, + /** + * Only members of the shared folder containing the linked file can access + * the link. Login is required. + */ + SHARED_FOLDER_ONLY, + /** + * The link merely points the user to the content, and does not grant any + * additional rights. Existing members of the content who use this link can + * only access the content with their pre-existing access rights. Either on + * the file directly, or inherited from a parent folder. + */ + NO_ONE, + /** + * Only the current user can view this link. + */ + ONLY_YOU, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResolvedVisibility value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PUBLIC: { + g.writeString("public"); + break; + } + case TEAM_ONLY: { + g.writeString("team_only"); + break; + } + case PASSWORD: { + g.writeString("password"); + break; + } + case TEAM_AND_PASSWORD: { + g.writeString("team_and_password"); + break; + } + case SHARED_FOLDER_ONLY: { + g.writeString("shared_folder_only"); + break; + } + case NO_ONE: { + g.writeString("no_one"); + break; + } + case ONLY_YOU: { + g.writeString("only_you"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ResolvedVisibility deserialize(JsonParser p) throws IOException, JsonParseException { + ResolvedVisibility value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("public".equals(tag)) { + value = ResolvedVisibility.PUBLIC; + } + else if ("team_only".equals(tag)) { + value = ResolvedVisibility.TEAM_ONLY; + } + else if ("password".equals(tag)) { + value = ResolvedVisibility.PASSWORD; + } + else if ("team_and_password".equals(tag)) { + value = ResolvedVisibility.TEAM_AND_PASSWORD; + } + else if ("shared_folder_only".equals(tag)) { + value = ResolvedVisibility.SHARED_FOLDER_ONLY; + } + else if ("no_one".equals(tag)) { + value = ResolvedVisibility.NO_ONE; + } + else if ("only_you".equals(tag)) { + value = ResolvedVisibility.ONLY_YOU; + } + else { + value = ResolvedVisibility.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkArg.java new file mode 100644 index 000000000..72926f283 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkArg.java @@ -0,0 +1,147 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class RevokeSharedLinkArg { + // struct sharing.RevokeSharedLinkArg (shared_links.stone) + + @Nonnull + protected final String url; + + /** + * + * @param url URL of the shared link. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeSharedLinkArg(@Nonnull String url) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeSharedLinkArg other = (RevokeSharedLinkArg) obj; + return (this.url == other.url) || (this.url.equals(other.url)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeSharedLinkArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeSharedLinkArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeSharedLinkArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_url = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + value = new RevokeSharedLinkArg(f_url); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkError.java new file mode 100644 index 000000000..4b49034b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkError.java @@ -0,0 +1,126 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum RevokeSharedLinkError { + // union sharing.RevokeSharedLinkError (shared_links.stone) + /** + * The shared link wasn't found. + */ + SHARED_LINK_NOT_FOUND, + /** + * The caller is not allowed to access this shared link. + */ + SHARED_LINK_ACCESS_DENIED, + /** + * This type of link is not supported; use {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#export(String,String)} + * instead. + */ + UNSUPPORTED_LINK_TYPE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Shared link is malformed. + */ + SHARED_LINK_MALFORMED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeSharedLinkError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case SHARED_LINK_NOT_FOUND: { + g.writeString("shared_link_not_found"); + break; + } + case SHARED_LINK_ACCESS_DENIED: { + g.writeString("shared_link_access_denied"); + break; + } + case UNSUPPORTED_LINK_TYPE: { + g.writeString("unsupported_link_type"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SHARED_LINK_MALFORMED: { + g.writeString("shared_link_malformed"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public RevokeSharedLinkError deserialize(JsonParser p) throws IOException, JsonParseException { + RevokeSharedLinkError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("shared_link_not_found".equals(tag)) { + value = RevokeSharedLinkError.SHARED_LINK_NOT_FOUND; + } + else if ("shared_link_access_denied".equals(tag)) { + value = RevokeSharedLinkError.SHARED_LINK_ACCESS_DENIED; + } + else if ("unsupported_link_type".equals(tag)) { + value = RevokeSharedLinkError.UNSUPPORTED_LINK_TYPE; + } + else if ("other".equals(tag)) { + value = RevokeSharedLinkError.OTHER; + } + else if ("shared_link_malformed".equals(tag)) { + value = RevokeSharedLinkError.SHARED_LINK_MALFORMED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkErrorException.java new file mode 100644 index 000000000..e21820276 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RevokeSharedLinkError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#revokeSharedLink(String)}.

+ */ +public class RevokeSharedLinkErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/revoke_shared_link + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#revokeSharedLink(String)}. + */ + public final RevokeSharedLinkError errorValue; + + public RevokeSharedLinkErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeSharedLinkError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceArg.java new file mode 100644 index 000000000..34a2b6c86 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceArg.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class SetAccessInheritanceArg { + // struct sharing.SetAccessInheritanceArg (sharing_folders.stone) + + @Nonnull + protected final AccessInheritance accessInheritance; + @Nonnull + protected final String sharedFolderId; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param accessInheritance The access inheritance settings for the folder. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SetAccessInheritanceArg(@Nonnull String sharedFolderId, @Nonnull AccessInheritance accessInheritance) { + if (accessInheritance == null) { + throw new IllegalArgumentException("Required value for 'accessInheritance' is null"); + } + this.accessInheritance = accessInheritance; + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SetAccessInheritanceArg(@Nonnull String sharedFolderId) { + this(sharedFolderId, AccessInheritance.INHERIT); + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * The access inheritance settings for the folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * AccessInheritance.INHERIT. + */ + @Nonnull + public AccessInheritance getAccessInheritance() { + return accessInheritance; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessInheritance, + this.sharedFolderId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SetAccessInheritanceArg other = (SetAccessInheritanceArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.accessInheritance == other.accessInheritance) || (this.accessInheritance.equals(other.accessInheritance))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SetAccessInheritanceArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("access_inheritance"); + AccessInheritance.Serializer.INSTANCE.serialize(value.accessInheritance, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SetAccessInheritanceArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SetAccessInheritanceArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + AccessInheritance f_accessInheritance = AccessInheritance.INHERIT; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("access_inheritance".equals(field)) { + f_accessInheritance = AccessInheritance.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new SetAccessInheritanceArg(f_sharedFolderId, f_accessInheritance); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceError.java new file mode 100644 index 000000000..21b148f5d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceError.java @@ -0,0 +1,312 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SetAccessInheritanceError { + // union sharing.SetAccessInheritanceError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link SetAccessInheritanceError}. + */ + public enum Tag { + /** + * Unable to access shared folder. + */ + ACCESS_ERROR, // SharedFolderAccessError + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The current user does not have permission to perform this action. + */ + public static final SetAccessInheritanceError NO_PERMISSION = new SetAccessInheritanceError().withTag(Tag.NO_PERMISSION); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SetAccessInheritanceError OTHER = new SetAccessInheritanceError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SetAccessInheritanceError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SetAccessInheritanceError withTag(Tag _tag) { + SetAccessInheritanceError result = new SetAccessInheritanceError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Unable to access shared folder. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SetAccessInheritanceError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + SetAccessInheritanceError result = new SetAccessInheritanceError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SetAccessInheritanceError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code SetAccessInheritanceError} that has its tag + * set to {@link Tag#ACCESS_ERROR}. + * + *

Unable to access shared folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SetAccessInheritanceError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SetAccessInheritanceError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SetAccessInheritanceError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * Unable to access shared folder. + * + *

This instance must be tagged as {@link Tag#ACCESS_ERROR}.

+ * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SetAccessInheritanceError) { + SetAccessInheritanceError other = (SetAccessInheritanceError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case NO_PERMISSION: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SetAccessInheritanceError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SetAccessInheritanceError deserialize(JsonParser p) throws IOException, JsonParseException { + SetAccessInheritanceError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = SetAccessInheritanceError.accessError(fieldValue); + } + else if ("no_permission".equals(tag)) { + value = SetAccessInheritanceError.NO_PERMISSION; + } + else { + value = SetAccessInheritanceError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceErrorException.java new file mode 100644 index 000000000..d3d6f3629 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SetAccessInheritanceErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * SetAccessInheritanceError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#setAccessInheritance(String,AccessInheritance)}.

+ */ +public class SetAccessInheritanceErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/set_access_inheritance + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#setAccessInheritance(String,AccessInheritance)}. + */ + public final SetAccessInheritanceError errorValue; + + public SetAccessInheritanceErrorException(String routeName, String requestId, LocalizedText userMessage, SetAccessInheritanceError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderArg.java new file mode 100644 index 000000000..aeb877db5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderArg.java @@ -0,0 +1,524 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ShareFolderArg extends ShareFolderArgBase { + // struct sharing.ShareFolderArg (sharing_folders.stone) + + @Nullable + protected final List actions; + @Nullable + protected final LinkSettings linkSettings; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * @param forceAsync Whether to force the share to happen asynchronously. + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * @param sharedLinkPolicy The policy to apply to shared links created for + * content inside this shared folder. The current user must be on a + * team to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * @param accessInheritance The access inheritance settings for the folder. + * Must not be {@code null}. + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * @param linkSettings Settings on the link for this folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderArg(@Nonnull String path, @Nullable AclUpdatePolicy aclUpdatePolicy, boolean forceAsync, @Nullable MemberPolicy memberPolicy, @Nullable SharedLinkPolicy sharedLinkPolicy, @Nullable ViewerInfoPolicy viewerInfoPolicy, @Nonnull AccessInheritance accessInheritance, @Nullable List actions, @Nullable LinkSettings linkSettings) { + super(path, aclUpdatePolicy, forceAsync, memberPolicy, sharedLinkPolicy, viewerInfoPolicy, accessInheritance); + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + this.linkSettings = linkSettings; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderArg(@Nonnull String path) { + this(path, null, false, null, null, null, AccessInheritance.INHERIT, null, null); + } + + /** + * The path or the file id to the folder to share. If it does not exist, + * then a new one is created. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Who can add and remove members of this shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AclUpdatePolicy getAclUpdatePolicy() { + return aclUpdatePolicy; + } + + /** + * Whether to force the share to happen asynchronously. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getForceAsync() { + return forceAsync; + } + + /** + * Who can be a member of this shared folder. Only applicable if the current + * user is on a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberPolicy getMemberPolicy() { + return memberPolicy; + } + + /** + * The policy to apply to shared links created for content inside this + * shared folder. The current user must be on a team to set this policy to + * {@link SharedLinkPolicy#MEMBERS}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkPolicy getSharedLinkPolicy() { + return sharedLinkPolicy; + } + + /** + * Who can enable/disable viewer info for this shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ViewerInfoPolicy getViewerInfoPolicy() { + return viewerInfoPolicy; + } + + /** + * The access inheritance settings for the folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * AccessInheritance.INHERIT. + */ + @Nonnull + public AccessInheritance getAccessInheritance() { + return accessInheritance; + } + + /** + * A list of `FolderAction`s corresponding to `FolderPermission`s that + * should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + /** + * Settings on the link for this folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkSettings getLinkSettings() { + return linkSettings; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link ShareFolderArg}. + */ + public static class Builder extends ShareFolderArgBase.Builder { + + protected List actions; + protected LinkSettings linkSettings; + + protected Builder(String path) { + super(path); + this.actions = null; + this.linkSettings = null; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions + * the authenticated user can perform on the folder. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActions(List actions) { + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + return this; + } + + /** + * Set value for optional field. + * + * @param linkSettings Settings on the link for this folder. + * + * @return this builder + */ + public Builder withLinkSettings(LinkSettings linkSettings) { + this.linkSettings = linkSettings; + return this; + } + + /** + * Set value for optional field. + * + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * + * @return this builder + */ + public Builder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy) { + super.withAclUpdatePolicy(aclUpdatePolicy); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param forceAsync Whether to force the share to happen + * asynchronously. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public Builder withForceAsync(Boolean forceAsync) { + super.withForceAsync(forceAsync); + return this; + } + + /** + * Set value for optional field. + * + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * + * @return this builder + */ + public Builder withMemberPolicy(MemberPolicy memberPolicy) { + super.withMemberPolicy(memberPolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLinkPolicy The policy to apply to shared links created + * for content inside this shared folder. The current user must be + * on a team to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * + * @return this builder + */ + public Builder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy) { + super.withSharedLinkPolicy(sharedLinkPolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * + * @return this builder + */ + public Builder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) { + super.withViewerInfoPolicy(viewerInfoPolicy); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * AccessInheritance.INHERIT}.

+ * + * @param accessInheritance The access inheritance settings for the + * folder. Must not be {@code null}. Defaults to {@code + * AccessInheritance.INHERIT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccessInheritance(AccessInheritance accessInheritance) { + super.withAccessInheritance(accessInheritance); + return this; + } + + /** + * Builds an instance of {@link ShareFolderArg} configured with this + * builder's values + * + * @return new instance of {@link ShareFolderArg} + */ + public ShareFolderArg build() { + return new ShareFolderArg(path, aclUpdatePolicy, forceAsync, memberPolicy, sharedLinkPolicy, viewerInfoPolicy, accessInheritance, actions, linkSettings); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.actions, + this.linkSettings + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShareFolderArg other = (ShareFolderArg) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.aclUpdatePolicy == other.aclUpdatePolicy) || (this.aclUpdatePolicy != null && this.aclUpdatePolicy.equals(other.aclUpdatePolicy))) + && (this.forceAsync == other.forceAsync) + && ((this.memberPolicy == other.memberPolicy) || (this.memberPolicy != null && this.memberPolicy.equals(other.memberPolicy))) + && ((this.sharedLinkPolicy == other.sharedLinkPolicy) || (this.sharedLinkPolicy != null && this.sharedLinkPolicy.equals(other.sharedLinkPolicy))) + && ((this.viewerInfoPolicy == other.viewerInfoPolicy) || (this.viewerInfoPolicy != null && this.viewerInfoPolicy.equals(other.viewerInfoPolicy))) + && ((this.accessInheritance == other.accessInheritance) || (this.accessInheritance.equals(other.accessInheritance))) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + && ((this.linkSettings == other.linkSettings) || (this.linkSettings != null && this.linkSettings.equals(other.linkSettings))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShareFolderArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.aclUpdatePolicy != null) { + g.writeFieldName("acl_update_policy"); + StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).serialize(value.aclUpdatePolicy, g); + } + g.writeFieldName("force_async"); + StoneSerializers.boolean_().serialize(value.forceAsync, g); + if (value.memberPolicy != null) { + g.writeFieldName("member_policy"); + StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).serialize(value.memberPolicy, g); + } + if (value.sharedLinkPolicy != null) { + g.writeFieldName("shared_link_policy"); + StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).serialize(value.sharedLinkPolicy, g); + } + if (value.viewerInfoPolicy != null) { + g.writeFieldName("viewer_info_policy"); + StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).serialize(value.viewerInfoPolicy, g); + } + g.writeFieldName("access_inheritance"); + AccessInheritance.Serializer.INSTANCE.serialize(value.accessInheritance, g); + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + if (value.linkSettings != null) { + g.writeFieldName("link_settings"); + StoneSerializers.nullableStruct(LinkSettings.Serializer.INSTANCE).serialize(value.linkSettings, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShareFolderArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShareFolderArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + AclUpdatePolicy f_aclUpdatePolicy = null; + Boolean f_forceAsync = false; + MemberPolicy f_memberPolicy = null; + SharedLinkPolicy f_sharedLinkPolicy = null; + ViewerInfoPolicy f_viewerInfoPolicy = null; + AccessInheritance f_accessInheritance = AccessInheritance.INHERIT; + List f_actions = null; + LinkSettings f_linkSettings = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("acl_update_policy".equals(field)) { + f_aclUpdatePolicy = StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("force_async".equals(field)) { + f_forceAsync = StoneSerializers.boolean_().deserialize(p); + } + else if ("member_policy".equals(field)) { + f_memberPolicy = StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("shared_link_policy".equals(field)) { + f_sharedLinkPolicy = StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("viewer_info_policy".equals(field)) { + f_viewerInfoPolicy = StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("access_inheritance".equals(field)) { + f_accessInheritance = AccessInheritance.Serializer.INSTANCE.deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).deserialize(p); + } + else if ("link_settings".equals(field)) { + f_linkSettings = StoneSerializers.nullableStruct(LinkSettings.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new ShareFolderArg(f_path, f_aclUpdatePolicy, f_forceAsync, f_memberPolicy, f_sharedLinkPolicy, f_viewerInfoPolicy, f_accessInheritance, f_actions, f_linkSettings); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderArgBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderArgBase.java new file mode 100644 index 000000000..94456fa45 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderArgBase.java @@ -0,0 +1,482 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ShareFolderArgBase { + // struct sharing.ShareFolderArgBase (sharing_folders.stone) + + @Nullable + protected final AclUpdatePolicy aclUpdatePolicy; + protected final boolean forceAsync; + @Nullable + protected final MemberPolicy memberPolicy; + @Nonnull + protected final String path; + @Nullable + protected final SharedLinkPolicy sharedLinkPolicy; + @Nullable + protected final ViewerInfoPolicy viewerInfoPolicy; + @Nonnull + protected final AccessInheritance accessInheritance; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * @param forceAsync Whether to force the share to happen asynchronously. + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * @param sharedLinkPolicy The policy to apply to shared links created for + * content inside this shared folder. The current user must be on a + * team to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * @param accessInheritance The access inheritance settings for the folder. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderArgBase(@Nonnull String path, @Nullable AclUpdatePolicy aclUpdatePolicy, boolean forceAsync, @Nullable MemberPolicy memberPolicy, @Nullable SharedLinkPolicy sharedLinkPolicy, @Nullable ViewerInfoPolicy viewerInfoPolicy, @Nonnull AccessInheritance accessInheritance) { + this.aclUpdatePolicy = aclUpdatePolicy; + this.forceAsync = forceAsync; + this.memberPolicy = memberPolicy; + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.sharedLinkPolicy = sharedLinkPolicy; + this.viewerInfoPolicy = viewerInfoPolicy; + if (accessInheritance == null) { + throw new IllegalArgumentException("Required value for 'accessInheritance' is null"); + } + this.accessInheritance = accessInheritance; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderArgBase(@Nonnull String path) { + this(path, null, false, null, null, null, AccessInheritance.INHERIT); + } + + /** + * The path or the file id to the folder to share. If it does not exist, + * then a new one is created. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPath() { + return path; + } + + /** + * Who can add and remove members of this shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AclUpdatePolicy getAclUpdatePolicy() { + return aclUpdatePolicy; + } + + /** + * Whether to force the share to happen asynchronously. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getForceAsync() { + return forceAsync; + } + + /** + * Who can be a member of this shared folder. Only applicable if the current + * user is on a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberPolicy getMemberPolicy() { + return memberPolicy; + } + + /** + * The policy to apply to shared links created for content inside this + * shared folder. The current user must be on a team to set this policy to + * {@link SharedLinkPolicy#MEMBERS}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkPolicy getSharedLinkPolicy() { + return sharedLinkPolicy; + } + + /** + * Who can enable/disable viewer info for this shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ViewerInfoPolicy getViewerInfoPolicy() { + return viewerInfoPolicy; + } + + /** + * The access inheritance settings for the folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * AccessInheritance.INHERIT. + */ + @Nonnull + public AccessInheritance getAccessInheritance() { + return accessInheritance; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path The path or the file id to the folder to share. If it does + * not exist, then a new one is created. Must match pattern "{@code + * (/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String path) { + return new Builder(path); + } + + /** + * Builder for {@link ShareFolderArgBase}. + */ + public static class Builder { + protected final String path; + + protected AclUpdatePolicy aclUpdatePolicy; + protected boolean forceAsync; + protected MemberPolicy memberPolicy; + protected SharedLinkPolicy sharedLinkPolicy; + protected ViewerInfoPolicy viewerInfoPolicy; + protected AccessInheritance accessInheritance; + + protected Builder(String path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)", path)) { + throw new IllegalArgumentException("String 'path' does not match pattern"); + } + this.path = path; + this.aclUpdatePolicy = null; + this.forceAsync = false; + this.memberPolicy = null; + this.sharedLinkPolicy = null; + this.viewerInfoPolicy = null; + this.accessInheritance = AccessInheritance.INHERIT; + } + + /** + * Set value for optional field. + * + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * + * @return this builder + */ + public Builder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy) { + this.aclUpdatePolicy = aclUpdatePolicy; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param forceAsync Whether to force the share to happen + * asynchronously. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public Builder withForceAsync(Boolean forceAsync) { + if (forceAsync != null) { + this.forceAsync = forceAsync; + } + else { + this.forceAsync = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * + * @return this builder + */ + public Builder withMemberPolicy(MemberPolicy memberPolicy) { + this.memberPolicy = memberPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLinkPolicy The policy to apply to shared links created + * for content inside this shared folder. The current user must be + * on a team to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * + * @return this builder + */ + public Builder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy) { + this.sharedLinkPolicy = sharedLinkPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * + * @return this builder + */ + public Builder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) { + this.viewerInfoPolicy = viewerInfoPolicy; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * AccessInheritance.INHERIT}.

+ * + * @param accessInheritance The access inheritance settings for the + * folder. Must not be {@code null}. Defaults to {@code + * AccessInheritance.INHERIT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccessInheritance(AccessInheritance accessInheritance) { + if (accessInheritance != null) { + this.accessInheritance = accessInheritance; + } + else { + this.accessInheritance = AccessInheritance.INHERIT; + } + return this; + } + + /** + * Builds an instance of {@link ShareFolderArgBase} configured with this + * builder's values + * + * @return new instance of {@link ShareFolderArgBase} + */ + public ShareFolderArgBase build() { + return new ShareFolderArgBase(path, aclUpdatePolicy, forceAsync, memberPolicy, sharedLinkPolicy, viewerInfoPolicy, accessInheritance); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.aclUpdatePolicy, + this.forceAsync, + this.memberPolicy, + this.path, + this.sharedLinkPolicy, + this.viewerInfoPolicy, + this.accessInheritance + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShareFolderArgBase other = (ShareFolderArgBase) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.aclUpdatePolicy == other.aclUpdatePolicy) || (this.aclUpdatePolicy != null && this.aclUpdatePolicy.equals(other.aclUpdatePolicy))) + && (this.forceAsync == other.forceAsync) + && ((this.memberPolicy == other.memberPolicy) || (this.memberPolicy != null && this.memberPolicy.equals(other.memberPolicy))) + && ((this.sharedLinkPolicy == other.sharedLinkPolicy) || (this.sharedLinkPolicy != null && this.sharedLinkPolicy.equals(other.sharedLinkPolicy))) + && ((this.viewerInfoPolicy == other.viewerInfoPolicy) || (this.viewerInfoPolicy != null && this.viewerInfoPolicy.equals(other.viewerInfoPolicy))) + && ((this.accessInheritance == other.accessInheritance) || (this.accessInheritance.equals(other.accessInheritance))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShareFolderArgBase value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + StoneSerializers.string().serialize(value.path, g); + if (value.aclUpdatePolicy != null) { + g.writeFieldName("acl_update_policy"); + StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).serialize(value.aclUpdatePolicy, g); + } + g.writeFieldName("force_async"); + StoneSerializers.boolean_().serialize(value.forceAsync, g); + if (value.memberPolicy != null) { + g.writeFieldName("member_policy"); + StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).serialize(value.memberPolicy, g); + } + if (value.sharedLinkPolicy != null) { + g.writeFieldName("shared_link_policy"); + StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).serialize(value.sharedLinkPolicy, g); + } + if (value.viewerInfoPolicy != null) { + g.writeFieldName("viewer_info_policy"); + StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).serialize(value.viewerInfoPolicy, g); + } + g.writeFieldName("access_inheritance"); + AccessInheritance.Serializer.INSTANCE.serialize(value.accessInheritance, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShareFolderArgBase deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShareFolderArgBase value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_path = null; + AclUpdatePolicy f_aclUpdatePolicy = null; + Boolean f_forceAsync = false; + MemberPolicy f_memberPolicy = null; + SharedLinkPolicy f_sharedLinkPolicy = null; + ViewerInfoPolicy f_viewerInfoPolicy = null; + AccessInheritance f_accessInheritance = AccessInheritance.INHERIT; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = StoneSerializers.string().deserialize(p); + } + else if ("acl_update_policy".equals(field)) { + f_aclUpdatePolicy = StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("force_async".equals(field)) { + f_forceAsync = StoneSerializers.boolean_().deserialize(p); + } + else if ("member_policy".equals(field)) { + f_memberPolicy = StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("shared_link_policy".equals(field)) { + f_sharedLinkPolicy = StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("viewer_info_policy".equals(field)) { + f_viewerInfoPolicy = StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("access_inheritance".equals(field)) { + f_accessInheritance = AccessInheritance.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new ShareFolderArgBase(f_path, f_aclUpdatePolicy, f_forceAsync, f_memberPolicy, f_sharedLinkPolicy, f_viewerInfoPolicy, f_accessInheritance); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderBuilder.java new file mode 100644 index 000000000..6d3bcfb72 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderBuilder.java @@ -0,0 +1,167 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#shareFolderBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ShareFolderBuilder { + private final DbxUserSharingRequests _client; + private final ShareFolderArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ShareFolderBuilder(DbxUserSharingRequests _client, ShareFolderArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * + * @return this builder + */ + public ShareFolderBuilder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy) { + this._builder.withAclUpdatePolicy(aclUpdatePolicy); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param forceAsync Whether to force the share to happen asynchronously. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public ShareFolderBuilder withForceAsync(Boolean forceAsync) { + this._builder.withForceAsync(forceAsync); + return this; + } + + /** + * Set value for optional field. + * + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * + * @return this builder + */ + public ShareFolderBuilder withMemberPolicy(MemberPolicy memberPolicy) { + this._builder.withMemberPolicy(memberPolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLinkPolicy The policy to apply to shared links created for + * content inside this shared folder. The current user must be on a + * team to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * + * @return this builder + */ + public ShareFolderBuilder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy) { + this._builder.withSharedLinkPolicy(sharedLinkPolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * + * @return this builder + */ + public ShareFolderBuilder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) { + this._builder.withViewerInfoPolicy(viewerInfoPolicy); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * AccessInheritance.INHERIT}.

+ * + * @param accessInheritance The access inheritance settings for the folder. + * Must not be {@code null}. Defaults to {@code + * AccessInheritance.INHERIT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderBuilder withAccessInheritance(AccessInheritance accessInheritance) { + this._builder.withAccessInheritance(accessInheritance); + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShareFolderBuilder withActions(List actions) { + this._builder.withActions(actions); + return this; + } + + /** + * Set value for optional field. + * + * @param linkSettings Settings on the link for this folder. + * + * @return this builder + */ + public ShareFolderBuilder withLinkSettings(LinkSettings linkSettings) { + this._builder.withLinkSettings(linkSettings); + return this; + } + + /** + * Issues the request. + */ + public ShareFolderLaunch start() throws ShareFolderErrorException, DbxException { + ShareFolderArg arg_ = this._builder.build(); + return _client.shareFolder(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderError.java new file mode 100644 index 000000000..2b9075ccf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderError.java @@ -0,0 +1,405 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ShareFolderError { + // union sharing.ShareFolderError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link ShareFolderError}. + */ + public enum Tag { + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * {@link ShareFolderArg#getPath} is invalid. + */ + BAD_PATH, // SharePathError + /** + * Team policy is more restrictive than {@link + * ShareFolderArg#getMemberPolicy}. + */ + TEAM_POLICY_DISALLOWS_MEMBER_POLICY, + /** + * The current user's account is not allowed to select the specified + * {@link ShareFolderArg#getSharedLinkPolicy}. + */ + DISALLOWED_SHARED_LINK_POLICY, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION; + } + + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + public static final ShareFolderError EMAIL_UNVERIFIED = new ShareFolderError().withTag(Tag.EMAIL_UNVERIFIED); + /** + * Team policy is more restrictive than {@link + * ShareFolderArg#getMemberPolicy}. + */ + public static final ShareFolderError TEAM_POLICY_DISALLOWS_MEMBER_POLICY = new ShareFolderError().withTag(Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY); + /** + * The current user's account is not allowed to select the specified {@link + * ShareFolderArg#getSharedLinkPolicy}. + */ + public static final ShareFolderError DISALLOWED_SHARED_LINK_POLICY = new ShareFolderError().withTag(Tag.DISALLOWED_SHARED_LINK_POLICY); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ShareFolderError OTHER = new ShareFolderError().withTag(Tag.OTHER); + /** + * The current user does not have permission to perform this action. + */ + public static final ShareFolderError NO_PERMISSION = new ShareFolderError().withTag(Tag.NO_PERMISSION); + + private Tag _tag; + private SharePathError badPathValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ShareFolderError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ShareFolderError withTag(Tag _tag) { + ShareFolderError result = new ShareFolderError(); + result._tag = _tag; + return result; + } + + /** + * + * @param badPathValue {@link ShareFolderArg#getPath} is invalid. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ShareFolderError withTagAndBadPath(Tag _tag, SharePathError badPathValue) { + ShareFolderError result = new ShareFolderError(); + result._tag = _tag; + result.badPathValue = badPathValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ShareFolderError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_UNVERIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_UNVERIFIED}, {@code false} otherwise. + */ + public boolean isEmailUnverified() { + return this._tag == Tag.EMAIL_UNVERIFIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#BAD_PATH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#BAD_PATH}, + * {@code false} otherwise. + */ + public boolean isBadPath() { + return this._tag == Tag.BAD_PATH; + } + + /** + * Returns an instance of {@code ShareFolderError} that has its tag set to + * {@link Tag#BAD_PATH}. + * + *

{@link ShareFolderArg#getPath} is invalid.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ShareFolderError} with its tag set to {@link + * Tag#BAD_PATH}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ShareFolderError badPath(SharePathError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ShareFolderError().withTagAndBadPath(Tag.BAD_PATH, value); + } + + /** + * {@link ShareFolderArg#getPath} is invalid. + * + *

This instance must be tagged as {@link Tag#BAD_PATH}.

+ * + * @return The {@link SharePathError} value associated with this instance if + * {@link #isBadPath} is {@code true}. + * + * @throws IllegalStateException If {@link #isBadPath} is {@code false}. + */ + public SharePathError getBadPathValue() { + if (this._tag != Tag.BAD_PATH) { + throw new IllegalStateException("Invalid tag: required Tag.BAD_PATH, but was Tag." + this._tag.name()); + } + return badPathValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_POLICY_DISALLOWS_MEMBER_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_POLICY_DISALLOWS_MEMBER_POLICY}, {@code false} otherwise. + */ + public boolean isTeamPolicyDisallowsMemberPolicy() { + return this._tag == Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DISALLOWED_SHARED_LINK_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DISALLOWED_SHARED_LINK_POLICY}, {@code false} otherwise. + */ + public boolean isDisallowedSharedLinkPolicy() { + return this._tag == Tag.DISALLOWED_SHARED_LINK_POLICY; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.badPathValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ShareFolderError) { + ShareFolderError other = (ShareFolderError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case EMAIL_UNVERIFIED: + return true; + case BAD_PATH: + return (this.badPathValue == other.badPathValue) || (this.badPathValue.equals(other.badPathValue)); + case TEAM_POLICY_DISALLOWS_MEMBER_POLICY: + return true; + case DISALLOWED_SHARED_LINK_POLICY: + return true; + case OTHER: + return true; + case NO_PERMISSION: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShareFolderError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case BAD_PATH: { + g.writeStartObject(); + writeTag("bad_path", g); + g.writeFieldName("bad_path"); + SharePathError.Serializer.INSTANCE.serialize(value.badPathValue, g); + g.writeEndObject(); + break; + } + case TEAM_POLICY_DISALLOWS_MEMBER_POLICY: { + g.writeString("team_policy_disallows_member_policy"); + break; + } + case DISALLOWED_SHARED_LINK_POLICY: { + g.writeString("disallowed_shared_link_policy"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ShareFolderError deserialize(JsonParser p) throws IOException, JsonParseException { + ShareFolderError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("email_unverified".equals(tag)) { + value = ShareFolderError.EMAIL_UNVERIFIED; + } + else if ("bad_path".equals(tag)) { + SharePathError fieldValue = null; + expectField("bad_path", p); + fieldValue = SharePathError.Serializer.INSTANCE.deserialize(p); + value = ShareFolderError.badPath(fieldValue); + } + else if ("team_policy_disallows_member_policy".equals(tag)) { + value = ShareFolderError.TEAM_POLICY_DISALLOWS_MEMBER_POLICY; + } + else if ("disallowed_shared_link_policy".equals(tag)) { + value = ShareFolderError.DISALLOWED_SHARED_LINK_POLICY; + } + else if ("other".equals(tag)) { + value = ShareFolderError.OTHER; + } + else if ("no_permission".equals(tag)) { + value = ShareFolderError.NO_PERMISSION; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderErrorException.java new file mode 100644 index 000000000..db4a918a6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ShareFolderError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#shareFolder(String)}.

+ */ +public class ShareFolderErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/share_folder + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserSharingRequests#shareFolder(String)}. + */ + public final ShareFolderError errorValue; + + public ShareFolderErrorException(String routeName, String requestId, LocalizedText userMessage, ShareFolderError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderJobStatus.java new file mode 100644 index 000000000..b0ea877f1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderJobStatus.java @@ -0,0 +1,354 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ShareFolderJobStatus { + // union sharing.ShareFolderJobStatus (sharing_folders.stone) + + /** + * Discriminating tag type for {@link ShareFolderJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The share job has finished. The value is the metadata for the folder. + */ + COMPLETE, // SharedFolderMetadata + FAILED; // ShareFolderError + } + + /** + * The asynchronous job is still in progress. + */ + public static final ShareFolderJobStatus IN_PROGRESS = new ShareFolderJobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private SharedFolderMetadata completeValue; + private ShareFolderError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ShareFolderJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ShareFolderJobStatus withTag(Tag _tag) { + ShareFolderJobStatus result = new ShareFolderJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The share job has finished. The value is the + * metadata for the folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ShareFolderJobStatus withTagAndComplete(Tag _tag, SharedFolderMetadata completeValue) { + ShareFolderJobStatus result = new ShareFolderJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ShareFolderJobStatus withTagAndFailed(Tag _tag, ShareFolderError failedValue) { + ShareFolderJobStatus result = new ShareFolderJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ShareFolderJobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code ShareFolderJobStatus} that has its tag set + * to {@link Tag#COMPLETE}. + * + *

The share job has finished. The value is the metadata for the folder. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ShareFolderJobStatus} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ShareFolderJobStatus complete(SharedFolderMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ShareFolderJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The share job has finished. The value is the metadata for the folder. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link SharedFolderMetadata} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public SharedFolderMetadata getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code ShareFolderJobStatus} that has its tag set + * to {@link Tag#FAILED}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ShareFolderJobStatus} with its tag set to + * {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ShareFolderJobStatus failed(ShareFolderError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ShareFolderJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * This instance must be tagged as {@link Tag#FAILED}. + * + * @return The {@link ShareFolderError} value associated with this instance + * if {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public ShareFolderError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ShareFolderJobStatus) { + ShareFolderJobStatus other = (ShareFolderJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShareFolderJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + SharedFolderMetadata.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + ShareFolderError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ShareFolderJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + ShareFolderJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = ShareFolderJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + SharedFolderMetadata fieldValue = null; + fieldValue = SharedFolderMetadata.Serializer.INSTANCE.deserialize(p, true); + value = ShareFolderJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + ShareFolderError fieldValue = null; + expectField("failed", p); + fieldValue = ShareFolderError.Serializer.INSTANCE.deserialize(p); + value = ShareFolderJobStatus.failed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderLaunch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderLaunch.java new file mode 100644 index 000000000..f200e26bd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderLaunch.java @@ -0,0 +1,335 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ShareFolderLaunch { + // union sharing.ShareFolderLaunch (sharing_folders.stone) + + /** + * Discriminating tag type for {@link ShareFolderLaunch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE; // SharedFolderMetadata + } + + private Tag _tag; + private String asyncJobIdValue; + private SharedFolderMetadata completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ShareFolderLaunch() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ShareFolderLaunch withTag(Tag _tag) { + ShareFolderLaunch result = new ShareFolderLaunch(); + result._tag = _tag; + return result; + } + + /** + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ShareFolderLaunch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + ShareFolderLaunch result = new ShareFolderLaunch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * + * @param completeValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ShareFolderLaunch withTagAndComplete(Tag _tag, SharedFolderMetadata completeValue) { + ShareFolderLaunch result = new ShareFolderLaunch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ShareFolderLaunch}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code ShareFolderLaunch} that has its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ShareFolderLaunch} with its tag set to {@link + * Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static ShareFolderLaunch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new ShareFolderLaunch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code ShareFolderLaunch} that has its tag set to + * {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ShareFolderLaunch} with its tag set to {@link + * Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ShareFolderLaunch complete(SharedFolderMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ShareFolderLaunch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link SharedFolderMetadata} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public SharedFolderMetadata getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ShareFolderLaunch) { + ShareFolderLaunch other = (ShareFolderLaunch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShareFolderLaunch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + SharedFolderMetadata.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ShareFolderLaunch deserialize(JsonParser p) throws IOException, JsonParseException { + ShareFolderLaunch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = ShareFolderLaunch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + SharedFolderMetadata fieldValue = null; + fieldValue = SharedFolderMetadata.Serializer.INSTANCE.deserialize(p, true); + value = ShareFolderLaunch.complete(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharePathError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharePathError.java new file mode 100644 index 000000000..c155a9808 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharePathError.java @@ -0,0 +1,707 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SharePathError { + // union sharing.SharePathError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link SharePathError}. + */ + public enum Tag { + /** + * A file is at the specified path. + */ + IS_FILE, + /** + * We do not support sharing a folder inside a shared folder. + */ + INSIDE_SHARED_FOLDER, + /** + * We do not support shared folders that contain shared folders. + */ + CONTAINS_SHARED_FOLDER, + /** + * We do not support shared folders that contain app folders. + */ + CONTAINS_APP_FOLDER, + /** + * We do not support shared folders that contain team folders. + */ + CONTAINS_TEAM_FOLDER, + /** + * We do not support sharing an app folder. + */ + IS_APP_FOLDER, + /** + * We do not support sharing a folder inside an app folder. + */ + INSIDE_APP_FOLDER, + /** + * A public folder can't be shared this way. Use a public link instead. + */ + IS_PUBLIC_FOLDER, + /** + * A folder inside a public folder can't be shared this way. Use a + * public link instead. + */ + INSIDE_PUBLIC_FOLDER, + /** + * Folder is already shared. Contains metadata about the existing shared + * folder. + */ + ALREADY_SHARED, // SharedFolderMetadata + /** + * Path is not valid. + */ + INVALID_PATH, + /** + * We do not support sharing a Mac OS X package. + */ + IS_OSX_PACKAGE, + /** + * We do not support sharing a folder inside a Mac OS X package. + */ + INSIDE_OSX_PACKAGE, + /** + * We do not support sharing the Vault folder. + */ + IS_VAULT, + /** + * We do not support sharing a folder inside a locked Vault. + */ + IS_VAULT_LOCKED, + /** + * We do not support sharing the Family folder. + */ + IS_FAMILY, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * A file is at the specified path. + */ + public static final SharePathError IS_FILE = new SharePathError().withTag(Tag.IS_FILE); + /** + * We do not support sharing a folder inside a shared folder. + */ + public static final SharePathError INSIDE_SHARED_FOLDER = new SharePathError().withTag(Tag.INSIDE_SHARED_FOLDER); + /** + * We do not support shared folders that contain shared folders. + */ + public static final SharePathError CONTAINS_SHARED_FOLDER = new SharePathError().withTag(Tag.CONTAINS_SHARED_FOLDER); + /** + * We do not support shared folders that contain app folders. + */ + public static final SharePathError CONTAINS_APP_FOLDER = new SharePathError().withTag(Tag.CONTAINS_APP_FOLDER); + /** + * We do not support shared folders that contain team folders. + */ + public static final SharePathError CONTAINS_TEAM_FOLDER = new SharePathError().withTag(Tag.CONTAINS_TEAM_FOLDER); + /** + * We do not support sharing an app folder. + */ + public static final SharePathError IS_APP_FOLDER = new SharePathError().withTag(Tag.IS_APP_FOLDER); + /** + * We do not support sharing a folder inside an app folder. + */ + public static final SharePathError INSIDE_APP_FOLDER = new SharePathError().withTag(Tag.INSIDE_APP_FOLDER); + /** + * A public folder can't be shared this way. Use a public link instead. + */ + public static final SharePathError IS_PUBLIC_FOLDER = new SharePathError().withTag(Tag.IS_PUBLIC_FOLDER); + /** + * A folder inside a public folder can't be shared this way. Use a public + * link instead. + */ + public static final SharePathError INSIDE_PUBLIC_FOLDER = new SharePathError().withTag(Tag.INSIDE_PUBLIC_FOLDER); + /** + * Path is not valid. + */ + public static final SharePathError INVALID_PATH = new SharePathError().withTag(Tag.INVALID_PATH); + /** + * We do not support sharing a Mac OS X package. + */ + public static final SharePathError IS_OSX_PACKAGE = new SharePathError().withTag(Tag.IS_OSX_PACKAGE); + /** + * We do not support sharing a folder inside a Mac OS X package. + */ + public static final SharePathError INSIDE_OSX_PACKAGE = new SharePathError().withTag(Tag.INSIDE_OSX_PACKAGE); + /** + * We do not support sharing the Vault folder. + */ + public static final SharePathError IS_VAULT = new SharePathError().withTag(Tag.IS_VAULT); + /** + * We do not support sharing a folder inside a locked Vault. + */ + public static final SharePathError IS_VAULT_LOCKED = new SharePathError().withTag(Tag.IS_VAULT_LOCKED); + /** + * We do not support sharing the Family folder. + */ + public static final SharePathError IS_FAMILY = new SharePathError().withTag(Tag.IS_FAMILY); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SharePathError OTHER = new SharePathError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderMetadata alreadySharedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SharePathError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SharePathError withTag(Tag _tag) { + SharePathError result = new SharePathError(); + result._tag = _tag; + return result; + } + + /** + * + * @param alreadySharedValue Folder is already shared. Contains metadata + * about the existing shared folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SharePathError withTagAndAlreadyShared(Tag _tag, SharedFolderMetadata alreadySharedValue) { + SharePathError result = new SharePathError(); + result._tag = _tag; + result.alreadySharedValue = alreadySharedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SharePathError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#IS_FILE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#IS_FILE}, + * {@code false} otherwise. + */ + public boolean isIsFile() { + return this._tag == Tag.IS_FILE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSIDE_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSIDE_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isInsideSharedFolder() { + return this._tag == Tag.INSIDE_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTAINS_SHARED_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTAINS_SHARED_FOLDER}, {@code false} otherwise. + */ + public boolean isContainsSharedFolder() { + return this._tag == Tag.CONTAINS_SHARED_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTAINS_APP_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTAINS_APP_FOLDER}, {@code false} otherwise. + */ + public boolean isContainsAppFolder() { + return this._tag == Tag.CONTAINS_APP_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTAINS_TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTAINS_TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isContainsTeamFolder() { + return this._tag == Tag.CONTAINS_TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IS_APP_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IS_APP_FOLDER}, {@code false} otherwise. + */ + public boolean isIsAppFolder() { + return this._tag == Tag.IS_APP_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSIDE_APP_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSIDE_APP_FOLDER}, {@code false} otherwise. + */ + public boolean isInsideAppFolder() { + return this._tag == Tag.INSIDE_APP_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IS_PUBLIC_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IS_PUBLIC_FOLDER}, {@code false} otherwise. + */ + public boolean isIsPublicFolder() { + return this._tag == Tag.IS_PUBLIC_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSIDE_PUBLIC_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSIDE_PUBLIC_FOLDER}, {@code false} otherwise. + */ + public boolean isInsidePublicFolder() { + return this._tag == Tag.INSIDE_PUBLIC_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALREADY_SHARED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALREADY_SHARED}, {@code false} otherwise. + */ + public boolean isAlreadyShared() { + return this._tag == Tag.ALREADY_SHARED; + } + + /** + * Returns an instance of {@code SharePathError} that has its tag set to + * {@link Tag#ALREADY_SHARED}. + * + *

Folder is already shared. Contains metadata about the existing shared + * folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SharePathError} with its tag set to {@link + * Tag#ALREADY_SHARED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SharePathError alreadyShared(SharedFolderMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SharePathError().withTagAndAlreadyShared(Tag.ALREADY_SHARED, value); + } + + /** + * Folder is already shared. Contains metadata about the existing shared + * folder. + * + *

This instance must be tagged as {@link Tag#ALREADY_SHARED}.

+ * + * @return The {@link SharedFolderMetadata} value associated with this + * instance if {@link #isAlreadyShared} is {@code true}. + * + * @throws IllegalStateException If {@link #isAlreadyShared} is {@code + * false}. + */ + public SharedFolderMetadata getAlreadySharedValue() { + if (this._tag != Tag.ALREADY_SHARED) { + throw new IllegalStateException("Invalid tag: required Tag.ALREADY_SHARED, but was Tag." + this._tag.name()); + } + return alreadySharedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_PATH}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_PATH}, {@code false} otherwise. + */ + public boolean isInvalidPath() { + return this._tag == Tag.INVALID_PATH; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IS_OSX_PACKAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IS_OSX_PACKAGE}, {@code false} otherwise. + */ + public boolean isIsOsxPackage() { + return this._tag == Tag.IS_OSX_PACKAGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSIDE_OSX_PACKAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSIDE_OSX_PACKAGE}, {@code false} otherwise. + */ + public boolean isInsideOsxPackage() { + return this._tag == Tag.INSIDE_OSX_PACKAGE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#IS_VAULT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#IS_VAULT}, + * {@code false} otherwise. + */ + public boolean isIsVault() { + return this._tag == Tag.IS_VAULT; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IS_VAULT_LOCKED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IS_VAULT_LOCKED}, {@code false} otherwise. + */ + public boolean isIsVaultLocked() { + return this._tag == Tag.IS_VAULT_LOCKED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#IS_FAMILY}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#IS_FAMILY}, + * {@code false} otherwise. + */ + public boolean isIsFamily() { + return this._tag == Tag.IS_FAMILY; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.alreadySharedValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SharePathError) { + SharePathError other = (SharePathError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IS_FILE: + return true; + case INSIDE_SHARED_FOLDER: + return true; + case CONTAINS_SHARED_FOLDER: + return true; + case CONTAINS_APP_FOLDER: + return true; + case CONTAINS_TEAM_FOLDER: + return true; + case IS_APP_FOLDER: + return true; + case INSIDE_APP_FOLDER: + return true; + case IS_PUBLIC_FOLDER: + return true; + case INSIDE_PUBLIC_FOLDER: + return true; + case ALREADY_SHARED: + return (this.alreadySharedValue == other.alreadySharedValue) || (this.alreadySharedValue.equals(other.alreadySharedValue)); + case INVALID_PATH: + return true; + case IS_OSX_PACKAGE: + return true; + case INSIDE_OSX_PACKAGE: + return true; + case IS_VAULT: + return true; + case IS_VAULT_LOCKED: + return true; + case IS_FAMILY: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharePathError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IS_FILE: { + g.writeString("is_file"); + break; + } + case INSIDE_SHARED_FOLDER: { + g.writeString("inside_shared_folder"); + break; + } + case CONTAINS_SHARED_FOLDER: { + g.writeString("contains_shared_folder"); + break; + } + case CONTAINS_APP_FOLDER: { + g.writeString("contains_app_folder"); + break; + } + case CONTAINS_TEAM_FOLDER: { + g.writeString("contains_team_folder"); + break; + } + case IS_APP_FOLDER: { + g.writeString("is_app_folder"); + break; + } + case INSIDE_APP_FOLDER: { + g.writeString("inside_app_folder"); + break; + } + case IS_PUBLIC_FOLDER: { + g.writeString("is_public_folder"); + break; + } + case INSIDE_PUBLIC_FOLDER: { + g.writeString("inside_public_folder"); + break; + } + case ALREADY_SHARED: { + g.writeStartObject(); + writeTag("already_shared", g); + SharedFolderMetadata.Serializer.INSTANCE.serialize(value.alreadySharedValue, g, true); + g.writeEndObject(); + break; + } + case INVALID_PATH: { + g.writeString("invalid_path"); + break; + } + case IS_OSX_PACKAGE: { + g.writeString("is_osx_package"); + break; + } + case INSIDE_OSX_PACKAGE: { + g.writeString("inside_osx_package"); + break; + } + case IS_VAULT: { + g.writeString("is_vault"); + break; + } + case IS_VAULT_LOCKED: { + g.writeString("is_vault_locked"); + break; + } + case IS_FAMILY: { + g.writeString("is_family"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharePathError deserialize(JsonParser p) throws IOException, JsonParseException { + SharePathError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("is_file".equals(tag)) { + value = SharePathError.IS_FILE; + } + else if ("inside_shared_folder".equals(tag)) { + value = SharePathError.INSIDE_SHARED_FOLDER; + } + else if ("contains_shared_folder".equals(tag)) { + value = SharePathError.CONTAINS_SHARED_FOLDER; + } + else if ("contains_app_folder".equals(tag)) { + value = SharePathError.CONTAINS_APP_FOLDER; + } + else if ("contains_team_folder".equals(tag)) { + value = SharePathError.CONTAINS_TEAM_FOLDER; + } + else if ("is_app_folder".equals(tag)) { + value = SharePathError.IS_APP_FOLDER; + } + else if ("inside_app_folder".equals(tag)) { + value = SharePathError.INSIDE_APP_FOLDER; + } + else if ("is_public_folder".equals(tag)) { + value = SharePathError.IS_PUBLIC_FOLDER; + } + else if ("inside_public_folder".equals(tag)) { + value = SharePathError.INSIDE_PUBLIC_FOLDER; + } + else if ("already_shared".equals(tag)) { + SharedFolderMetadata fieldValue = null; + fieldValue = SharedFolderMetadata.Serializer.INSTANCE.deserialize(p, true); + value = SharePathError.alreadyShared(fieldValue); + } + else if ("invalid_path".equals(tag)) { + value = SharePathError.INVALID_PATH; + } + else if ("is_osx_package".equals(tag)) { + value = SharePathError.IS_OSX_PACKAGE; + } + else if ("inside_osx_package".equals(tag)) { + value = SharePathError.INSIDE_OSX_PACKAGE; + } + else if ("is_vault".equals(tag)) { + value = SharePathError.IS_VAULT; + } + else if ("is_vault_locked".equals(tag)) { + value = SharePathError.IS_VAULT_LOCKED; + } + else if ("is_family".equals(tag)) { + value = SharePathError.IS_FAMILY; + } + else { + value = SharePathError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedContentLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedContentLinkMetadata.java new file mode 100644 index 000000000..e6010fb92 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedContentLinkMetadata.java @@ -0,0 +1,484 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Metadata of a shared link for a file or folder. + */ +public class SharedContentLinkMetadata extends SharedContentLinkMetadataBase { + // struct sharing.SharedContentLinkMetadata (shared_content_links.stone) + + @Nullable + protected final AudienceExceptions audienceExceptions; + @Nonnull + protected final String url; + + /** + * Metadata of a shared link for a file or folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * @param url The URL of the link. Must not be {@code null}. + * @param accessLevel The access level on the link for this file. + * @param audienceRestrictingSharedFolder The shared folder that prevents + * the link audience for this link from being more restrictive. + * @param expiry Whether the link has an expiry set on it. A link with an + * expiry will have its audience changed to members when the expiry is + * reached. + * @param audienceExceptions The content inside this folder with link + * audience different than this folder's. This is only returned when an + * endpoint that returns metadata for a single shared folder is called, + * e.g. /get_folder_metadata. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentLinkMetadata(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected, @Nonnull String url, @Nullable AccessLevel accessLevel, @Nullable AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, @Nullable Date expiry, @Nullable AudienceExceptions audienceExceptions) { + super(audienceOptions, currentAudience, linkPermissions, passwordProtected, accessLevel, audienceRestrictingSharedFolder, expiry); + this.audienceExceptions = audienceExceptions; + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + } + + /** + * Metadata of a shared link for a file or folder. + * + *

The default values for unset fields will be used.

+ * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * @param url The URL of the link. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentLinkMetadata(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected, @Nonnull String url) { + this(audienceOptions, currentAudience, linkPermissions, passwordProtected, url, null, null, null, null); + } + + /** + * The audience options that are available for the content. Some audience + * options may be unavailable. For example, team_only may be unavailable if + * the content is not owned by a user on a team. The 'default' audience + * option is always available if the user can modify link settings. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAudienceOptions() { + return audienceOptions; + } + + /** + * The current audience of the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAudience getCurrentAudience() { + return currentAudience; + } + + /** + * A list of permissions for actions you can perform on the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkPermissions() { + return linkPermissions; + } + + /** + * Whether the link is protected by a password. + * + * @return value for this field. + */ + public boolean getPasswordProtected() { + return passwordProtected; + } + + /** + * The URL of the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * The access level on the link for this file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getAccessLevel() { + return accessLevel; + } + + /** + * The shared folder that prevents the link audience for this link from + * being more restrictive. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { + return audienceRestrictingSharedFolder; + } + + /** + * Whether the link has an expiry set on it. A link with an expiry will have + * its audience changed to members when the expiry is reached. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpiry() { + return expiry; + } + + /** + * The content inside this folder with link audience different than this + * folder's. This is only returned when an endpoint that returns metadata + * for a single shared folder is called, e.g. /get_folder_metadata. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AudienceExceptions getAudienceExceptions() { + return audienceExceptions; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * @param url The URL of the link. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected, String url) { + return new Builder(audienceOptions, currentAudience, linkPermissions, passwordProtected, url); + } + + /** + * Builder for {@link SharedContentLinkMetadata}. + */ + public static class Builder extends SharedContentLinkMetadataBase.Builder { + protected final String url; + + protected AudienceExceptions audienceExceptions; + + protected Builder(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected, String url) { + super(audienceOptions, currentAudience, linkPermissions, passwordProtected); + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + this.audienceExceptions = null; + } + + /** + * Set value for optional field. + * + * @param audienceExceptions The content inside this folder with link + * audience different than this folder's. This is only returned when + * an endpoint that returns metadata for a single shared folder is + * called, e.g. /get_folder_metadata. + * + * @return this builder + */ + public Builder withAudienceExceptions(AudienceExceptions audienceExceptions) { + this.audienceExceptions = audienceExceptions; + return this; + } + + /** + * Set value for optional field. + * + * @param accessLevel The access level on the link for this file. + * + * @return this builder + */ + public Builder withAccessLevel(AccessLevel accessLevel) { + super.withAccessLevel(accessLevel); + return this; + } + + /** + * Set value for optional field. + * + * @param audienceRestrictingSharedFolder The shared folder that + * prevents the link audience for this link from being more + * restrictive. + * + * @return this builder + */ + public Builder withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder) { + super.withAudienceRestrictingSharedFolder(audienceRestrictingSharedFolder); + return this; + } + + /** + * Set value for optional field. + * + * @param expiry Whether the link has an expiry set on it. A link with + * an expiry will have its audience changed to members when the + * expiry is reached. + * + * @return this builder + */ + public Builder withExpiry(Date expiry) { + super.withExpiry(expiry); + return this; + } + + /** + * Builds an instance of {@link SharedContentLinkMetadata} configured + * with this builder's values + * + * @return new instance of {@link SharedContentLinkMetadata} + */ + public SharedContentLinkMetadata build() { + return new SharedContentLinkMetadata(audienceOptions, currentAudience, linkPermissions, passwordProtected, url, accessLevel, audienceRestrictingSharedFolder, expiry, audienceExceptions); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.audienceExceptions, + this.url + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentLinkMetadata other = (SharedContentLinkMetadata) obj; + return ((this.audienceOptions == other.audienceOptions) || (this.audienceOptions.equals(other.audienceOptions))) + && ((this.currentAudience == other.currentAudience) || (this.currentAudience.equals(other.currentAudience))) + && ((this.linkPermissions == other.linkPermissions) || (this.linkPermissions.equals(other.linkPermissions))) + && (this.passwordProtected == other.passwordProtected) + && ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.accessLevel == other.accessLevel) || (this.accessLevel != null && this.accessLevel.equals(other.accessLevel))) + && ((this.audienceRestrictingSharedFolder == other.audienceRestrictingSharedFolder) || (this.audienceRestrictingSharedFolder != null && this.audienceRestrictingSharedFolder.equals(other.audienceRestrictingSharedFolder))) + && ((this.expiry == other.expiry) || (this.expiry != null && this.expiry.equals(other.expiry))) + && ((this.audienceExceptions == other.audienceExceptions) || (this.audienceExceptions != null && this.audienceExceptions.equals(other.audienceExceptions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("audience_options"); + StoneSerializers.list(LinkAudience.Serializer.INSTANCE).serialize(value.audienceOptions, g); + g.writeFieldName("current_audience"); + LinkAudience.Serializer.INSTANCE.serialize(value.currentAudience, g); + g.writeFieldName("link_permissions"); + StoneSerializers.list(LinkPermission.Serializer.INSTANCE).serialize(value.linkPermissions, g); + g.writeFieldName("password_protected"); + StoneSerializers.boolean_().serialize(value.passwordProtected, g); + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + if (value.accessLevel != null) { + g.writeFieldName("access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.accessLevel, g); + } + if (value.audienceRestrictingSharedFolder != null) { + g.writeFieldName("audience_restricting_shared_folder"); + StoneSerializers.nullableStruct(AudienceRestrictingSharedFolder.Serializer.INSTANCE).serialize(value.audienceRestrictingSharedFolder, g); + } + if (value.expiry != null) { + g.writeFieldName("expiry"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expiry, g); + } + if (value.audienceExceptions != null) { + g.writeFieldName("audience_exceptions"); + StoneSerializers.nullableStruct(AudienceExceptions.Serializer.INSTANCE).serialize(value.audienceExceptions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_audienceOptions = null; + LinkAudience f_currentAudience = null; + List f_linkPermissions = null; + Boolean f_passwordProtected = null; + String f_url = null; + AccessLevel f_accessLevel = null; + AudienceRestrictingSharedFolder f_audienceRestrictingSharedFolder = null; + Date f_expiry = null; + AudienceExceptions f_audienceExceptions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("audience_options".equals(field)) { + f_audienceOptions = StoneSerializers.list(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else if ("current_audience".equals(field)) { + f_currentAudience = LinkAudience.Serializer.INSTANCE.deserialize(p); + } + else if ("link_permissions".equals(field)) { + f_linkPermissions = StoneSerializers.list(LinkPermission.Serializer.INSTANCE).deserialize(p); + } + else if ("password_protected".equals(field)) { + f_passwordProtected = StoneSerializers.boolean_().deserialize(p); + } + else if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("access_level".equals(field)) { + f_accessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("audience_restricting_shared_folder".equals(field)) { + f_audienceRestrictingSharedFolder = StoneSerializers.nullableStruct(AudienceRestrictingSharedFolder.Serializer.INSTANCE).deserialize(p); + } + else if ("expiry".equals(field)) { + f_expiry = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("audience_exceptions".equals(field)) { + f_audienceExceptions = StoneSerializers.nullableStruct(AudienceExceptions.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_audienceOptions == null) { + throw new JsonParseException(p, "Required field \"audience_options\" missing."); + } + if (f_currentAudience == null) { + throw new JsonParseException(p, "Required field \"current_audience\" missing."); + } + if (f_linkPermissions == null) { + throw new JsonParseException(p, "Required field \"link_permissions\" missing."); + } + if (f_passwordProtected == null) { + throw new JsonParseException(p, "Required field \"password_protected\" missing."); + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + value = new SharedContentLinkMetadata(f_audienceOptions, f_currentAudience, f_linkPermissions, f_passwordProtected, f_url, f_accessLevel, f_audienceRestrictingSharedFolder, f_expiry, f_audienceExceptions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase.java new file mode 100644 index 000000000..65f04c578 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedContentLinkMetadataBase.java @@ -0,0 +1,474 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_content_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SharedContentLinkMetadataBase { + // struct sharing.SharedContentLinkMetadataBase (shared_content_links.stone) + + @Nullable + protected final AccessLevel accessLevel; + @Nonnull + protected final List audienceOptions; + @Nullable + protected final AudienceRestrictingSharedFolder audienceRestrictingSharedFolder; + @Nonnull + protected final LinkAudience currentAudience; + @Nullable + protected final Date expiry; + @Nonnull + protected final List linkPermissions; + protected final boolean passwordProtected; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * @param accessLevel The access level on the link for this file. + * @param audienceRestrictingSharedFolder The shared folder that prevents + * the link audience for this link from being more restrictive. + * @param expiry Whether the link has an expiry set on it. A link with an + * expiry will have its audience changed to members when the expiry is + * reached. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentLinkMetadataBase(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected, @Nullable AccessLevel accessLevel, @Nullable AudienceRestrictingSharedFolder audienceRestrictingSharedFolder, @Nullable Date expiry) { + this.accessLevel = accessLevel; + if (audienceOptions == null) { + throw new IllegalArgumentException("Required value for 'audienceOptions' is null"); + } + for (LinkAudience x : audienceOptions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'audienceOptions' is null"); + } + } + this.audienceOptions = audienceOptions; + this.audienceRestrictingSharedFolder = audienceRestrictingSharedFolder; + if (currentAudience == null) { + throw new IllegalArgumentException("Required value for 'currentAudience' is null"); + } + this.currentAudience = currentAudience; + this.expiry = LangUtil.truncateMillis(expiry); + if (linkPermissions == null) { + throw new IllegalArgumentException("Required value for 'linkPermissions' is null"); + } + for (LinkPermission x : linkPermissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkPermissions' is null"); + } + } + this.linkPermissions = linkPermissions; + this.passwordProtected = passwordProtected; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentLinkMetadataBase(@Nonnull List audienceOptions, @Nonnull LinkAudience currentAudience, @Nonnull List linkPermissions, boolean passwordProtected) { + this(audienceOptions, currentAudience, linkPermissions, passwordProtected, null, null, null); + } + + /** + * The audience options that are available for the content. Some audience + * options may be unavailable. For example, team_only may be unavailable if + * the content is not owned by a user on a team. The 'default' audience + * option is always available if the user can modify link settings. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAudienceOptions() { + return audienceOptions; + } + + /** + * The current audience of the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAudience getCurrentAudience() { + return currentAudience; + } + + /** + * A list of permissions for actions you can perform on the link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkPermissions() { + return linkPermissions; + } + + /** + * Whether the link is protected by a password. + * + * @return value for this field. + */ + public boolean getPasswordProtected() { + return passwordProtected; + } + + /** + * The access level on the link for this file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getAccessLevel() { + return accessLevel; + } + + /** + * The shared folder that prevents the link audience for this link from + * being more restrictive. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AudienceRestrictingSharedFolder getAudienceRestrictingSharedFolder() { + return audienceRestrictingSharedFolder; + } + + /** + * Whether the link has an expiry set on it. A link with an expiry will have + * its audience changed to members when the expiry is reached. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpiry() { + return expiry; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param audienceOptions The audience options that are available for the + * content. Some audience options may be unavailable. For example, + * team_only may be unavailable if the content is not owned by a user on + * a team. The 'default' audience option is always available if the user + * can modify link settings. Must not contain a {@code null} item and + * not be {@code null}. + * @param currentAudience The current audience of the link. Must not be + * {@code null}. + * @param linkPermissions A list of permissions for actions you can perform + * on the link. Must not contain a {@code null} item and not be {@code + * null}. + * @param passwordProtected Whether the link is protected by a password. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected) { + return new Builder(audienceOptions, currentAudience, linkPermissions, passwordProtected); + } + + /** + * Builder for {@link SharedContentLinkMetadataBase}. + */ + public static class Builder { + protected final List audienceOptions; + protected final LinkAudience currentAudience; + protected final List linkPermissions; + protected final boolean passwordProtected; + + protected AccessLevel accessLevel; + protected AudienceRestrictingSharedFolder audienceRestrictingSharedFolder; + protected Date expiry; + + protected Builder(List audienceOptions, LinkAudience currentAudience, List linkPermissions, boolean passwordProtected) { + if (audienceOptions == null) { + throw new IllegalArgumentException("Required value for 'audienceOptions' is null"); + } + for (LinkAudience x : audienceOptions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'audienceOptions' is null"); + } + } + this.audienceOptions = audienceOptions; + if (currentAudience == null) { + throw new IllegalArgumentException("Required value for 'currentAudience' is null"); + } + this.currentAudience = currentAudience; + if (linkPermissions == null) { + throw new IllegalArgumentException("Required value for 'linkPermissions' is null"); + } + for (LinkPermission x : linkPermissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkPermissions' is null"); + } + } + this.linkPermissions = linkPermissions; + this.passwordProtected = passwordProtected; + this.accessLevel = null; + this.audienceRestrictingSharedFolder = null; + this.expiry = null; + } + + /** + * Set value for optional field. + * + * @param accessLevel The access level on the link for this file. + * + * @return this builder + */ + public Builder withAccessLevel(AccessLevel accessLevel) { + this.accessLevel = accessLevel; + return this; + } + + /** + * Set value for optional field. + * + * @param audienceRestrictingSharedFolder The shared folder that + * prevents the link audience for this link from being more + * restrictive. + * + * @return this builder + */ + public Builder withAudienceRestrictingSharedFolder(AudienceRestrictingSharedFolder audienceRestrictingSharedFolder) { + this.audienceRestrictingSharedFolder = audienceRestrictingSharedFolder; + return this; + } + + /** + * Set value for optional field. + * + * @param expiry Whether the link has an expiry set on it. A link with + * an expiry will have its audience changed to members when the + * expiry is reached. + * + * @return this builder + */ + public Builder withExpiry(Date expiry) { + this.expiry = LangUtil.truncateMillis(expiry); + return this; + } + + /** + * Builds an instance of {@link SharedContentLinkMetadataBase} + * configured with this builder's values + * + * @return new instance of {@link SharedContentLinkMetadataBase} + */ + public SharedContentLinkMetadataBase build() { + return new SharedContentLinkMetadataBase(audienceOptions, currentAudience, linkPermissions, passwordProtected, accessLevel, audienceRestrictingSharedFolder, expiry); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessLevel, + this.audienceOptions, + this.audienceRestrictingSharedFolder, + this.currentAudience, + this.expiry, + this.linkPermissions, + this.passwordProtected + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentLinkMetadataBase other = (SharedContentLinkMetadataBase) obj; + return ((this.audienceOptions == other.audienceOptions) || (this.audienceOptions.equals(other.audienceOptions))) + && ((this.currentAudience == other.currentAudience) || (this.currentAudience.equals(other.currentAudience))) + && ((this.linkPermissions == other.linkPermissions) || (this.linkPermissions.equals(other.linkPermissions))) + && (this.passwordProtected == other.passwordProtected) + && ((this.accessLevel == other.accessLevel) || (this.accessLevel != null && this.accessLevel.equals(other.accessLevel))) + && ((this.audienceRestrictingSharedFolder == other.audienceRestrictingSharedFolder) || (this.audienceRestrictingSharedFolder != null && this.audienceRestrictingSharedFolder.equals(other.audienceRestrictingSharedFolder))) + && ((this.expiry == other.expiry) || (this.expiry != null && this.expiry.equals(other.expiry))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentLinkMetadataBase value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("audience_options"); + StoneSerializers.list(LinkAudience.Serializer.INSTANCE).serialize(value.audienceOptions, g); + g.writeFieldName("current_audience"); + LinkAudience.Serializer.INSTANCE.serialize(value.currentAudience, g); + g.writeFieldName("link_permissions"); + StoneSerializers.list(LinkPermission.Serializer.INSTANCE).serialize(value.linkPermissions, g); + g.writeFieldName("password_protected"); + StoneSerializers.boolean_().serialize(value.passwordProtected, g); + if (value.accessLevel != null) { + g.writeFieldName("access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.accessLevel, g); + } + if (value.audienceRestrictingSharedFolder != null) { + g.writeFieldName("audience_restricting_shared_folder"); + StoneSerializers.nullableStruct(AudienceRestrictingSharedFolder.Serializer.INSTANCE).serialize(value.audienceRestrictingSharedFolder, g); + } + if (value.expiry != null) { + g.writeFieldName("expiry"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expiry, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentLinkMetadataBase deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentLinkMetadataBase value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_audienceOptions = null; + LinkAudience f_currentAudience = null; + List f_linkPermissions = null; + Boolean f_passwordProtected = null; + AccessLevel f_accessLevel = null; + AudienceRestrictingSharedFolder f_audienceRestrictingSharedFolder = null; + Date f_expiry = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("audience_options".equals(field)) { + f_audienceOptions = StoneSerializers.list(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else if ("current_audience".equals(field)) { + f_currentAudience = LinkAudience.Serializer.INSTANCE.deserialize(p); + } + else if ("link_permissions".equals(field)) { + f_linkPermissions = StoneSerializers.list(LinkPermission.Serializer.INSTANCE).deserialize(p); + } + else if ("password_protected".equals(field)) { + f_passwordProtected = StoneSerializers.boolean_().deserialize(p); + } + else if ("access_level".equals(field)) { + f_accessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("audience_restricting_shared_folder".equals(field)) { + f_audienceRestrictingSharedFolder = StoneSerializers.nullableStruct(AudienceRestrictingSharedFolder.Serializer.INSTANCE).deserialize(p); + } + else if ("expiry".equals(field)) { + f_expiry = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_audienceOptions == null) { + throw new JsonParseException(p, "Required field \"audience_options\" missing."); + } + if (f_currentAudience == null) { + throw new JsonParseException(p, "Required field \"current_audience\" missing."); + } + if (f_linkPermissions == null) { + throw new JsonParseException(p, "Required field \"link_permissions\" missing."); + } + if (f_passwordProtected == null) { + throw new JsonParseException(p, "Required field \"password_protected\" missing."); + } + value = new SharedContentLinkMetadataBase(f_audienceOptions, f_currentAudience, f_linkPermissions, f_passwordProtected, f_accessLevel, f_audienceRestrictingSharedFolder, f_expiry); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFileMembers.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFileMembers.java new file mode 100644 index 000000000..a6c6f78fb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFileMembers.java @@ -0,0 +1,292 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Shared file user, group, and invitee membership. Used for the results of + * {@link DbxUserSharingRequests#listFileMembers(String)} and {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}, and used as part of + * the results for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + */ +public class SharedFileMembers { + // struct sharing.SharedFileMembers (sharing_files.stone) + + @Nonnull + protected final List users; + @Nonnull + protected final List groups; + @Nonnull + protected final List invitees; + @Nullable + protected final String cursor; + + /** + * Shared file user, group, and invitee membership. Used for the results of + * {@link DbxUserSharingRequests#listFileMembers(String)} and {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}, and used as part + * of the results for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + * + * @param users The list of user members of the shared file. Must not + * contain a {@code null} item and not be {@code null}. + * @param groups The list of group members of the shared file. Must not + * contain a {@code null} item and not be {@code null}. + * @param invitees The list of invited members of a file, but have not + * logged in and claimed this. Must not contain a {@code null} item and + * not be {@code null}. + * @param cursor Present if there are additional shared file members that + * have not been returned yet. Pass the cursor into {@link + * DbxUserSharingRequests#listFileMembersContinue(String)} to list + * additional members. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMembers(@Nonnull List users, @Nonnull List groups, @Nonnull List invitees, @Nullable String cursor) { + if (users == null) { + throw new IllegalArgumentException("Required value for 'users' is null"); + } + for (UserFileMembershipInfo x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + this.users = users; + if (groups == null) { + throw new IllegalArgumentException("Required value for 'groups' is null"); + } + for (GroupMembershipInfo x : groups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'groups' is null"); + } + } + this.groups = groups; + if (invitees == null) { + throw new IllegalArgumentException("Required value for 'invitees' is null"); + } + for (InviteeMembershipInfo x : invitees) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitees' is null"); + } + } + this.invitees = invitees; + this.cursor = cursor; + } + + /** + * Shared file user, group, and invitee membership. Used for the results of + * {@link DbxUserSharingRequests#listFileMembers(String)} and {@link + * DbxUserSharingRequests#listFileMembersContinue(String)}, and used as part + * of the results for {@link + * DbxUserSharingRequests#listFileMembersBatch(List,long)}. + * + *

The default values for unset fields will be used.

+ * + * @param users The list of user members of the shared file. Must not + * contain a {@code null} item and not be {@code null}. + * @param groups The list of group members of the shared file. Must not + * contain a {@code null} item and not be {@code null}. + * @param invitees The list of invited members of a file, but have not + * logged in and claimed this. Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMembers(@Nonnull List users, @Nonnull List groups, @Nonnull List invitees) { + this(users, groups, invitees, null); + } + + /** + * The list of user members of the shared file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsers() { + return users; + } + + /** + * The list of group members of the shared file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getGroups() { + return groups; + } + + /** + * The list of invited members of a file, but have not logged in and claimed + * this. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getInvitees() { + return invitees; + } + + /** + * Present if there are additional shared file members that have not been + * returned yet. Pass the cursor into {@link + * DbxUserSharingRequests#listFileMembersContinue(String)} to list + * additional members. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.users, + this.groups, + this.invitees, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFileMembers other = (SharedFileMembers) obj; + return ((this.users == other.users) || (this.users.equals(other.users))) + && ((this.groups == other.groups) || (this.groups.equals(other.groups))) + && ((this.invitees == other.invitees) || (this.invitees.equals(other.invitees))) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFileMembers value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("users"); + StoneSerializers.list(UserFileMembershipInfo.Serializer.INSTANCE).serialize(value.users, g); + g.writeFieldName("groups"); + StoneSerializers.list(GroupMembershipInfo.Serializer.INSTANCE).serialize(value.groups, g); + g.writeFieldName("invitees"); + StoneSerializers.list(InviteeMembershipInfo.Serializer.INSTANCE).serialize(value.invitees, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFileMembers deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFileMembers value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_users = null; + List f_groups = null; + List f_invitees = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("users".equals(field)) { + f_users = StoneSerializers.list(UserFileMembershipInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("groups".equals(field)) { + f_groups = StoneSerializers.list(GroupMembershipInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("invitees".equals(field)) { + f_invitees = StoneSerializers.list(InviteeMembershipInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + if (f_groups == null) { + throw new JsonParseException(p, "Required field \"groups\" missing."); + } + if (f_invitees == null) { + throw new JsonParseException(p, "Required field \"invitees\" missing."); + } + value = new SharedFileMembers(f_users, f_groups, f_invitees, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFileMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFileMetadata.java new file mode 100644 index 000000000..4c9dfd322 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFileMetadata.java @@ -0,0 +1,832 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.users.Team; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Properties of the shared file. + */ +public class SharedFileMetadata { + // struct sharing.SharedFileMetadata (sharing_files.stone) + + @Nullable + protected final AccessLevel accessType; + @Nonnull + protected final String id; + @Nullable + protected final ExpectedSharedContentLinkMetadata expectedLinkMetadata; + @Nullable + protected final SharedContentLinkMetadata linkMetadata; + @Nonnull + protected final String name; + @Nullable + protected final List ownerDisplayNames; + @Nullable + protected final Team ownerTeam; + @Nullable + protected final String parentSharedFolderId; + @Nullable + protected final String pathDisplay; + @Nullable + protected final String pathLower; + @Nullable + protected final List permissions; + @Nonnull + protected final FolderPolicy policy; + @Nonnull + protected final String previewUrl; + @Nullable + protected final Date timeInvited; + + /** + * Properties of the shared file. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param id The ID of the file. Must have length of at least 4, match + * pattern "{@code id:.+}", and not be {@code null}. + * @param name The name of this file. Must not be {@code null}. + * @param policy Policies governing this shared file. Must not be {@code + * null}. + * @param previewUrl URL for displaying a web preview of the shared file. + * Must not be {@code null}. + * @param accessType The current user's access level for this shared file. + * @param expectedLinkMetadata The expected metadata of the link associated + * for the file when it is first shared. Absent if the link already + * exists. This is for an unreleased feature so it may not be returned + * yet. + * @param linkMetadata The metadata of the link associated for the file. + * This is for an unreleased feature so it may not be returned yet. + * @param ownerDisplayNames The display names of the users that own the + * file. If the file is part of a team folder, the display names of the + * team admins are also included. Absent if the owner display names + * cannot be fetched. Must not contain a {@code null} item. + * @param ownerTeam The team that owns the file. This field is not present + * if the file is not owned by a team. + * @param parentSharedFolderId The ID of the parent shared folder. This + * field is present only if the file is contained within a shared + * folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * @param pathDisplay The cased path to be used for display purposes only. + * In rare instances the casing will not correctly match the user's + * filesystem, but this behavior will match the path provided in the + * Core API v1. Absent for unmounted files. + * @param pathLower The lower-case full path of this file. Absent for + * unmounted files. + * @param permissions The sharing permissions that requesting user has on + * this file. This corresponds to the entries given in the {@code + * actions} argument to {@link + * DbxUserSharingRequests#getFileMetadataBatch(List,List)} or the {@code + * actions} argument to {@link + * DbxUserSharingRequests#getFileMetadata(String,List)}. Must not + * contain a {@code null} item. + * @param timeInvited Timestamp indicating when the current user was + * invited to this shared file. If the user was not invited to the + * shared file, the timestamp will indicate when the user was invited to + * the parent shared folder. This value may be absent. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMetadata(@Nonnull String id, @Nonnull String name, @Nonnull FolderPolicy policy, @Nonnull String previewUrl, @Nullable AccessLevel accessType, @Nullable ExpectedSharedContentLinkMetadata expectedLinkMetadata, @Nullable SharedContentLinkMetadata linkMetadata, @Nullable List ownerDisplayNames, @Nullable Team ownerTeam, @Nullable String parentSharedFolderId, @Nullable String pathDisplay, @Nullable String pathLower, @Nullable List permissions, @Nullable Date timeInvited) { + this.accessType = accessType; + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 4) { + throw new IllegalArgumentException("String 'id' is shorter than 4"); + } + if (!Pattern.matches("id:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + this.expectedLinkMetadata = expectedLinkMetadata; + this.linkMetadata = linkMetadata; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (ownerDisplayNames != null) { + for (String x : ownerDisplayNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'ownerDisplayNames' is null"); + } + } + } + this.ownerDisplayNames = ownerDisplayNames; + this.ownerTeam = ownerTeam; + if (parentSharedFolderId != null) { + if (!Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + this.pathDisplay = pathDisplay; + this.pathLower = pathLower; + if (permissions != null) { + for (FilePermission x : permissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'permissions' is null"); + } + } + } + this.permissions = permissions; + if (policy == null) { + throw new IllegalArgumentException("Required value for 'policy' is null"); + } + this.policy = policy; + if (previewUrl == null) { + throw new IllegalArgumentException("Required value for 'previewUrl' is null"); + } + this.previewUrl = previewUrl; + this.timeInvited = LangUtil.truncateMillis(timeInvited); + } + + /** + * Properties of the shared file. + * + *

The default values for unset fields will be used.

+ * + * @param id The ID of the file. Must have length of at least 4, match + * pattern "{@code id:.+}", and not be {@code null}. + * @param name The name of this file. Must not be {@code null}. + * @param policy Policies governing this shared file. Must not be {@code + * null}. + * @param previewUrl URL for displaying a web preview of the shared file. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFileMetadata(@Nonnull String id, @Nonnull String name, @Nonnull FolderPolicy policy, @Nonnull String previewUrl) { + this(id, name, policy, previewUrl, null, null, null, null, null, null, null, null, null, null); + } + + /** + * The ID of the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The name of this file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Policies governing this shared file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderPolicy getPolicy() { + return policy; + } + + /** + * URL for displaying a web preview of the shared file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviewUrl() { + return previewUrl; + } + + /** + * The current user's access level for this shared file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getAccessType() { + return accessType; + } + + /** + * The expected metadata of the link associated for the file when it is + * first shared. Absent if the link already exists. This is for an + * unreleased feature so it may not be returned yet. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ExpectedSharedContentLinkMetadata getExpectedLinkMetadata() { + return expectedLinkMetadata; + } + + /** + * The metadata of the link associated for the file. This is for an + * unreleased feature so it may not be returned yet. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedContentLinkMetadata getLinkMetadata() { + return linkMetadata; + } + + /** + * The display names of the users that own the file. If the file is part of + * a team folder, the display names of the team admins are also included. + * Absent if the owner display names cannot be fetched. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getOwnerDisplayNames() { + return ownerDisplayNames; + } + + /** + * The team that owns the file. This field is not present if the file is not + * owned by a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Team getOwnerTeam() { + return ownerTeam; + } + + /** + * The ID of the parent shared folder. This field is present only if the + * file is contained within a shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The cased path to be used for display purposes only. In rare instances + * the casing will not correctly match the user's filesystem, but this + * behavior will match the path provided in the Core API v1. Absent for + * unmounted files. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathDisplay() { + return pathDisplay; + } + + /** + * The lower-case full path of this file. Absent for unmounted files. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The sharing permissions that requesting user has on this file. This + * corresponds to the entries given in the {@code actions} argument to + * {@link DbxUserSharingRequests#getFileMetadataBatch(List,List)} or the + * {@code actions} argument to {@link + * DbxUserSharingRequests#getFileMetadata(String,List)}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPermissions() { + return permissions; + } + + /** + * Timestamp indicating when the current user was invited to this shared + * file. If the user was not invited to the shared file, the timestamp will + * indicate when the user was invited to the parent shared folder. This + * value may be absent. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getTimeInvited() { + return timeInvited; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param id The ID of the file. Must have length of at least 4, match + * pattern "{@code id:.+}", and not be {@code null}. + * @param name The name of this file. Must not be {@code null}. + * @param policy Policies governing this shared file. Must not be {@code + * null}. + * @param previewUrl URL for displaying a web preview of the shared file. + * Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String id, String name, FolderPolicy policy, String previewUrl) { + return new Builder(id, name, policy, previewUrl); + } + + /** + * Builder for {@link SharedFileMetadata}. + */ + public static class Builder { + protected final String id; + protected final String name; + protected final FolderPolicy policy; + protected final String previewUrl; + + protected AccessLevel accessType; + protected ExpectedSharedContentLinkMetadata expectedLinkMetadata; + protected SharedContentLinkMetadata linkMetadata; + protected List ownerDisplayNames; + protected Team ownerTeam; + protected String parentSharedFolderId; + protected String pathDisplay; + protected String pathLower; + protected List permissions; + protected Date timeInvited; + + protected Builder(String id, String name, FolderPolicy policy, String previewUrl) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (id.length() < 4) { + throw new IllegalArgumentException("String 'id' is shorter than 4"); + } + if (!Pattern.matches("id:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (policy == null) { + throw new IllegalArgumentException("Required value for 'policy' is null"); + } + this.policy = policy; + if (previewUrl == null) { + throw new IllegalArgumentException("Required value for 'previewUrl' is null"); + } + this.previewUrl = previewUrl; + this.accessType = null; + this.expectedLinkMetadata = null; + this.linkMetadata = null; + this.ownerDisplayNames = null; + this.ownerTeam = null; + this.parentSharedFolderId = null; + this.pathDisplay = null; + this.pathLower = null; + this.permissions = null; + this.timeInvited = null; + } + + /** + * Set value for optional field. + * + * @param accessType The current user's access level for this shared + * file. + * + * @return this builder + */ + public Builder withAccessType(AccessLevel accessType) { + this.accessType = accessType; + return this; + } + + /** + * Set value for optional field. + * + * @param expectedLinkMetadata The expected metadata of the link + * associated for the file when it is first shared. Absent if the + * link already exists. This is for an unreleased feature so it may + * not be returned yet. + * + * @return this builder + */ + public Builder withExpectedLinkMetadata(ExpectedSharedContentLinkMetadata expectedLinkMetadata) { + this.expectedLinkMetadata = expectedLinkMetadata; + return this; + } + + /** + * Set value for optional field. + * + * @param linkMetadata The metadata of the link associated for the + * file. This is for an unreleased feature so it may not be returned + * yet. + * + * @return this builder + */ + public Builder withLinkMetadata(SharedContentLinkMetadata linkMetadata) { + this.linkMetadata = linkMetadata; + return this; + } + + /** + * Set value for optional field. + * + * @param ownerDisplayNames The display names of the users that own the + * file. If the file is part of a team folder, the display names of + * the team admins are also included. Absent if the owner display + * names cannot be fetched. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withOwnerDisplayNames(List ownerDisplayNames) { + if (ownerDisplayNames != null) { + for (String x : ownerDisplayNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'ownerDisplayNames' is null"); + } + } + } + this.ownerDisplayNames = ownerDisplayNames; + return this; + } + + /** + * Set value for optional field. + * + * @param ownerTeam The team that owns the file. This field is not + * present if the file is not owned by a team. + * + * @return this builder + */ + public Builder withOwnerTeam(Team ownerTeam) { + this.ownerTeam = ownerTeam; + return this; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId The ID of the parent shared folder. This + * field is present only if the file is contained within a shared + * folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + if (parentSharedFolderId != null) { + if (!Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + return this; + } + + /** + * Set value for optional field. + * + * @param pathDisplay The cased path to be used for display purposes + * only. In rare instances the casing will not correctly match the + * user's filesystem, but this behavior will match the path provided + * in the Core API v1. Absent for unmounted files. + * + * @return this builder + */ + public Builder withPathDisplay(String pathDisplay) { + this.pathDisplay = pathDisplay; + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lower-case full path of this file. Absent for + * unmounted files. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + this.pathLower = pathLower; + return this; + } + + /** + * Set value for optional field. + * + * @param permissions The sharing permissions that requesting user has + * on this file. This corresponds to the entries given in the {@code + * actions} argument to {@link + * DbxUserSharingRequests#getFileMetadataBatch(List,List)} or the + * {@code actions} argument to {@link + * DbxUserSharingRequests#getFileMetadata(String,List)}. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPermissions(List permissions) { + if (permissions != null) { + for (FilePermission x : permissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'permissions' is null"); + } + } + } + this.permissions = permissions; + return this; + } + + /** + * Set value for optional field. + * + * @param timeInvited Timestamp indicating when the current user was + * invited to this shared file. If the user was not invited to the + * shared file, the timestamp will indicate when the user was + * invited to the parent shared folder. This value may be absent. + * + * @return this builder + */ + public Builder withTimeInvited(Date timeInvited) { + this.timeInvited = LangUtil.truncateMillis(timeInvited); + return this; + } + + /** + * Builds an instance of {@link SharedFileMetadata} configured with this + * builder's values + * + * @return new instance of {@link SharedFileMetadata} + */ + public SharedFileMetadata build() { + return new SharedFileMetadata(id, name, policy, previewUrl, accessType, expectedLinkMetadata, linkMetadata, ownerDisplayNames, ownerTeam, parentSharedFolderId, pathDisplay, pathLower, permissions, timeInvited); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessType, + this.id, + this.expectedLinkMetadata, + this.linkMetadata, + this.name, + this.ownerDisplayNames, + this.ownerTeam, + this.parentSharedFolderId, + this.pathDisplay, + this.pathLower, + this.permissions, + this.policy, + this.previewUrl, + this.timeInvited + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFileMetadata other = (SharedFileMetadata) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.policy == other.policy) || (this.policy.equals(other.policy))) + && ((this.previewUrl == other.previewUrl) || (this.previewUrl.equals(other.previewUrl))) + && ((this.accessType == other.accessType) || (this.accessType != null && this.accessType.equals(other.accessType))) + && ((this.expectedLinkMetadata == other.expectedLinkMetadata) || (this.expectedLinkMetadata != null && this.expectedLinkMetadata.equals(other.expectedLinkMetadata))) + && ((this.linkMetadata == other.linkMetadata) || (this.linkMetadata != null && this.linkMetadata.equals(other.linkMetadata))) + && ((this.ownerDisplayNames == other.ownerDisplayNames) || (this.ownerDisplayNames != null && this.ownerDisplayNames.equals(other.ownerDisplayNames))) + && ((this.ownerTeam == other.ownerTeam) || (this.ownerTeam != null && this.ownerTeam.equals(other.ownerTeam))) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.pathDisplay == other.pathDisplay) || (this.pathDisplay != null && this.pathDisplay.equals(other.pathDisplay))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.permissions == other.permissions) || (this.permissions != null && this.permissions.equals(other.permissions))) + && ((this.timeInvited == other.timeInvited) || (this.timeInvited != null && this.timeInvited.equals(other.timeInvited))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFileMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("policy"); + FolderPolicy.Serializer.INSTANCE.serialize(value.policy, g); + g.writeFieldName("preview_url"); + StoneSerializers.string().serialize(value.previewUrl, g); + if (value.accessType != null) { + g.writeFieldName("access_type"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.accessType, g); + } + if (value.expectedLinkMetadata != null) { + g.writeFieldName("expected_link_metadata"); + StoneSerializers.nullableStruct(ExpectedSharedContentLinkMetadata.Serializer.INSTANCE).serialize(value.expectedLinkMetadata, g); + } + if (value.linkMetadata != null) { + g.writeFieldName("link_metadata"); + StoneSerializers.nullableStruct(SharedContentLinkMetadata.Serializer.INSTANCE).serialize(value.linkMetadata, g); + } + if (value.ownerDisplayNames != null) { + g.writeFieldName("owner_display_names"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.ownerDisplayNames, g); + } + if (value.ownerTeam != null) { + g.writeFieldName("owner_team"); + StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).serialize(value.ownerTeam, g); + } + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.pathDisplay != null) { + g.writeFieldName("path_display"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathDisplay, g); + } + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.permissions != null) { + g.writeFieldName("permissions"); + StoneSerializers.nullable(StoneSerializers.list(FilePermission.Serializer.INSTANCE)).serialize(value.permissions, g); + } + if (value.timeInvited != null) { + g.writeFieldName("time_invited"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.timeInvited, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFileMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFileMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_name = null; + FolderPolicy f_policy = null; + String f_previewUrl = null; + AccessLevel f_accessType = null; + ExpectedSharedContentLinkMetadata f_expectedLinkMetadata = null; + SharedContentLinkMetadata f_linkMetadata = null; + List f_ownerDisplayNames = null; + Team f_ownerTeam = null; + String f_parentSharedFolderId = null; + String f_pathDisplay = null; + String f_pathLower = null; + List f_permissions = null; + Date f_timeInvited = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("policy".equals(field)) { + f_policy = FolderPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("preview_url".equals(field)) { + f_previewUrl = StoneSerializers.string().deserialize(p); + } + else if ("access_type".equals(field)) { + f_accessType = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("expected_link_metadata".equals(field)) { + f_expectedLinkMetadata = StoneSerializers.nullableStruct(ExpectedSharedContentLinkMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("link_metadata".equals(field)) { + f_linkMetadata = StoneSerializers.nullableStruct(SharedContentLinkMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("owner_display_names".equals(field)) { + f_ownerDisplayNames = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("owner_team".equals(field)) { + f_ownerTeam = StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_display".equals(field)) { + f_pathDisplay = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.nullable(StoneSerializers.list(FilePermission.Serializer.INSTANCE)).deserialize(p); + } + else if ("time_invited".equals(field)) { + f_timeInvited = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_policy == null) { + throw new JsonParseException(p, "Required field \"policy\" missing."); + } + if (f_previewUrl == null) { + throw new JsonParseException(p, "Required field \"preview_url\" missing."); + } + value = new SharedFileMetadata(f_id, f_name, f_policy, f_previewUrl, f_accessType, f_expectedLinkMetadata, f_linkMetadata, f_ownerDisplayNames, f_ownerTeam, f_parentSharedFolderId, f_pathDisplay, f_pathLower, f_permissions, f_timeInvited); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderAccessError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderAccessError.java new file mode 100644 index 000000000..ef28cbf24 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderAccessError.java @@ -0,0 +1,131 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * There is an error accessing the shared folder. + */ +public enum SharedFolderAccessError { + // union sharing.SharedFolderAccessError (sharing_folders.stone) + /** + * This shared folder ID is invalid. + */ + INVALID_ID, + /** + * The user is not a member of the shared folder thus cannot access it. + */ + NOT_A_MEMBER, + /** + * The user does not exist or their account is disabled. + */ + INVALID_MEMBER, + /** + * Never set. + */ + EMAIL_UNVERIFIED, + /** + * The shared folder is unmounted. + */ + UNMOUNTED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderAccessError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_ID: { + g.writeString("invalid_id"); + break; + } + case NOT_A_MEMBER: { + g.writeString("not_a_member"); + break; + } + case INVALID_MEMBER: { + g.writeString("invalid_member"); + break; + } + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + case UNMOUNTED: { + g.writeString("unmounted"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedFolderAccessError deserialize(JsonParser p) throws IOException, JsonParseException { + SharedFolderAccessError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_id".equals(tag)) { + value = SharedFolderAccessError.INVALID_ID; + } + else if ("not_a_member".equals(tag)) { + value = SharedFolderAccessError.NOT_A_MEMBER; + } + else if ("invalid_member".equals(tag)) { + value = SharedFolderAccessError.INVALID_MEMBER; + } + else if ("email_unverified".equals(tag)) { + value = SharedFolderAccessError.EMAIL_UNVERIFIED; + } + else if ("unmounted".equals(tag)) { + value = SharedFolderAccessError.UNMOUNTED; + } + else { + value = SharedFolderAccessError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderAccessErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderAccessErrorException.java new file mode 100644 index 000000000..44d280615 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderAccessErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * SharedFolderAccessError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#getFolderMetadata(String,java.util.List)} and {@link + * DbxUserSharingRequests#listFolderMembers(String)}.

+ */ +public class SharedFolderAccessErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/get_folder_metadata + // 2/sharing/list_folder_members + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#getFolderMetadata(String,java.util.List)} and + * {@link DbxUserSharingRequests#listFolderMembers(String)}. + */ + public final SharedFolderAccessError errorValue; + + public SharedFolderAccessErrorException(String routeName, String requestId, LocalizedText userMessage, SharedFolderAccessError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMemberError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMemberError.java new file mode 100644 index 000000000..4e9e9d30c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMemberError.java @@ -0,0 +1,339 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SharedFolderMemberError { + // union sharing.SharedFolderMemberError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link SharedFolderMemberError}. + */ + public enum Tag { + /** + * The target dropbox_id is invalid. + */ + INVALID_DROPBOX_ID, + /** + * The target dropbox_id is not a member of the shared folder. + */ + NOT_A_MEMBER, + /** + * The target member only has inherited access to the shared folder. + */ + NO_EXPLICIT_ACCESS, // MemberAccessLevelResult + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The target dropbox_id is invalid. + */ + public static final SharedFolderMemberError INVALID_DROPBOX_ID = new SharedFolderMemberError().withTag(Tag.INVALID_DROPBOX_ID); + /** + * The target dropbox_id is not a member of the shared folder. + */ + public static final SharedFolderMemberError NOT_A_MEMBER = new SharedFolderMemberError().withTag(Tag.NOT_A_MEMBER); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SharedFolderMemberError OTHER = new SharedFolderMemberError().withTag(Tag.OTHER); + + private Tag _tag; + private MemberAccessLevelResult noExplicitAccessValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SharedFolderMemberError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SharedFolderMemberError withTag(Tag _tag) { + SharedFolderMemberError result = new SharedFolderMemberError(); + result._tag = _tag; + return result; + } + + /** + * + * @param noExplicitAccessValue The target member only has inherited access + * to the shared folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SharedFolderMemberError withTagAndNoExplicitAccess(Tag _tag, MemberAccessLevelResult noExplicitAccessValue) { + SharedFolderMemberError result = new SharedFolderMemberError(); + result._tag = _tag; + result.noExplicitAccessValue = noExplicitAccessValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SharedFolderMemberError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_DROPBOX_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_DROPBOX_ID}, {@code false} otherwise. + */ + public boolean isInvalidDropboxId() { + return this._tag == Tag.INVALID_DROPBOX_ID; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOT_A_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_A_MEMBER}, {@code false} otherwise. + */ + public boolean isNotAMember() { + return this._tag == Tag.NOT_A_MEMBER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + */ + public boolean isNoExplicitAccess() { + return this._tag == Tag.NO_EXPLICIT_ACCESS; + } + + /** + * Returns an instance of {@code SharedFolderMemberError} that has its tag + * set to {@link Tag#NO_EXPLICIT_ACCESS}. + * + *

The target member only has inherited access to the shared folder. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SharedFolderMemberError} with its tag set to + * {@link Tag#NO_EXPLICIT_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SharedFolderMemberError noExplicitAccess(MemberAccessLevelResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SharedFolderMemberError().withTagAndNoExplicitAccess(Tag.NO_EXPLICIT_ACCESS, value); + } + + /** + * The target member only has inherited access to the shared folder. + * + *

This instance must be tagged as {@link Tag#NO_EXPLICIT_ACCESS}.

+ * + * @return The {@link MemberAccessLevelResult} value associated with this + * instance if {@link #isNoExplicitAccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoExplicitAccess} is {@code + * false}. + */ + public MemberAccessLevelResult getNoExplicitAccessValue() { + if (this._tag != Tag.NO_EXPLICIT_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPLICIT_ACCESS, but was Tag." + this._tag.name()); + } + return noExplicitAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.noExplicitAccessValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SharedFolderMemberError) { + SharedFolderMemberError other = (SharedFolderMemberError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INVALID_DROPBOX_ID: + return true; + case NOT_A_MEMBER: + return true; + case NO_EXPLICIT_ACCESS: + return (this.noExplicitAccessValue == other.noExplicitAccessValue) || (this.noExplicitAccessValue.equals(other.noExplicitAccessValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMemberError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INVALID_DROPBOX_ID: { + g.writeString("invalid_dropbox_id"); + break; + } + case NOT_A_MEMBER: { + g.writeString("not_a_member"); + break; + } + case NO_EXPLICIT_ACCESS: { + g.writeStartObject(); + writeTag("no_explicit_access", g); + MemberAccessLevelResult.Serializer.INSTANCE.serialize(value.noExplicitAccessValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedFolderMemberError deserialize(JsonParser p) throws IOException, JsonParseException { + SharedFolderMemberError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_dropbox_id".equals(tag)) { + value = SharedFolderMemberError.INVALID_DROPBOX_ID; + } + else if ("not_a_member".equals(tag)) { + value = SharedFolderMemberError.NOT_A_MEMBER; + } + else if ("no_explicit_access".equals(tag)) { + MemberAccessLevelResult fieldValue = null; + fieldValue = MemberAccessLevelResult.Serializer.INSTANCE.deserialize(p, true); + value = SharedFolderMemberError.noExplicitAccess(fieldValue); + } + else { + value = SharedFolderMemberError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMembers.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMembers.java new file mode 100644 index 000000000..08b67c2f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMembers.java @@ -0,0 +1,277 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Shared folder user and group membership. + */ +public class SharedFolderMembers { + // struct sharing.SharedFolderMembers (sharing_folders.stone) + + @Nonnull + protected final List users; + @Nonnull + protected final List groups; + @Nonnull + protected final List invitees; + @Nullable + protected final String cursor; + + /** + * Shared folder user and group membership. + * + * @param users The list of user members of the shared folder. Must not + * contain a {@code null} item and not be {@code null}. + * @param groups The list of group members of the shared folder. Must not + * contain a {@code null} item and not be {@code null}. + * @param invitees The list of invitees to the shared folder. Must not + * contain a {@code null} item and not be {@code null}. + * @param cursor Present if there are additional shared folder members that + * have not been returned yet. Pass the cursor into {@link + * DbxUserSharingRequests#listFolderMembersContinue(String)} to list + * additional members. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMembers(@Nonnull List users, @Nonnull List groups, @Nonnull List invitees, @Nullable String cursor) { + if (users == null) { + throw new IllegalArgumentException("Required value for 'users' is null"); + } + for (UserMembershipInfo x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + this.users = users; + if (groups == null) { + throw new IllegalArgumentException("Required value for 'groups' is null"); + } + for (GroupMembershipInfo x : groups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'groups' is null"); + } + } + this.groups = groups; + if (invitees == null) { + throw new IllegalArgumentException("Required value for 'invitees' is null"); + } + for (InviteeMembershipInfo x : invitees) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitees' is null"); + } + } + this.invitees = invitees; + this.cursor = cursor; + } + + /** + * Shared folder user and group membership. + * + *

The default values for unset fields will be used.

+ * + * @param users The list of user members of the shared folder. Must not + * contain a {@code null} item and not be {@code null}. + * @param groups The list of group members of the shared folder. Must not + * contain a {@code null} item and not be {@code null}. + * @param invitees The list of invitees to the shared folder. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMembers(@Nonnull List users, @Nonnull List groups, @Nonnull List invitees) { + this(users, groups, invitees, null); + } + + /** + * The list of user members of the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsers() { + return users; + } + + /** + * The list of group members of the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getGroups() { + return groups; + } + + /** + * The list of invitees to the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getInvitees() { + return invitees; + } + + /** + * Present if there are additional shared folder members that have not been + * returned yet. Pass the cursor into {@link + * DbxUserSharingRequests#listFolderMembersContinue(String)} to list + * additional members. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.users, + this.groups, + this.invitees, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderMembers other = (SharedFolderMembers) obj; + return ((this.users == other.users) || (this.users.equals(other.users))) + && ((this.groups == other.groups) || (this.groups.equals(other.groups))) + && ((this.invitees == other.invitees) || (this.invitees.equals(other.invitees))) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMembers value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("users"); + StoneSerializers.list(UserMembershipInfo.Serializer.INSTANCE).serialize(value.users, g); + g.writeFieldName("groups"); + StoneSerializers.list(GroupMembershipInfo.Serializer.INSTANCE).serialize(value.groups, g); + g.writeFieldName("invitees"); + StoneSerializers.list(InviteeMembershipInfo.Serializer.INSTANCE).serialize(value.invitees, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderMembers deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderMembers value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_users = null; + List f_groups = null; + List f_invitees = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("users".equals(field)) { + f_users = StoneSerializers.list(UserMembershipInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("groups".equals(field)) { + f_groups = StoneSerializers.list(GroupMembershipInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("invitees".equals(field)) { + f_invitees = StoneSerializers.list(InviteeMembershipInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + if (f_groups == null) { + throw new JsonParseException(p, "Required field \"groups\" missing."); + } + if (f_invitees == null) { + throw new JsonParseException(p, "Required field \"invitees\" missing."); + } + value = new SharedFolderMembers(f_users, f_groups, f_invitees, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMetadata.java new file mode 100644 index 000000000..aeb14988b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMetadata.java @@ -0,0 +1,834 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.users.Team; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The metadata which includes basic information about the shared folder. + */ +public class SharedFolderMetadata extends SharedFolderMetadataBase { + // struct sharing.SharedFolderMetadata (sharing_folders.stone) + + @Nullable + protected final SharedContentLinkMetadata linkMetadata; + @Nonnull + protected final String name; + @Nullable + protected final List permissions; + @Nonnull + protected final FolderPolicy policy; + @Nonnull + protected final String previewUrl; + @Nonnull + protected final String sharedFolderId; + @Nonnull + protected final Date timeInvited; + @Nonnull + protected final AccessInheritance accessInheritance; + + /** + * The metadata which includes basic information about the shared folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessType The current user's access level for this shared + * folder. Must not be {@code null}. + * @param isInsideTeamFolder Whether this folder is inside of a team + * folder. + * @param isTeamFolder Whether this folder is a team folder. + * @param name The name of the this shared folder. Must not be {@code + * null}. + * @param policy Policies governing this shared folder. Must not be {@code + * null}. + * @param previewUrl URL for displaying a web preview of the shared folder. + * Must not be {@code null}. + * @param sharedFolderId The ID of the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param timeInvited Timestamp indicating when the current user was + * invited to this shared folder. Must not be {@code null}. + * @param ownerDisplayNames The display names of the users that own the + * folder. If the folder is part of a team folder, the display names of + * the team admins are also included. Absent if the owner display names + * cannot be fetched. Must not contain a {@code null} item. + * @param ownerTeam The team that owns the folder. This field is not + * present if the folder is not owned by a team. + * @param parentSharedFolderId The ID of the parent shared folder. This + * field is present only if the folder is contained within another + * shared folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * @param pathDisplay The full path of this shared folder. Absent for + * unmounted folders. + * @param pathLower The lower-cased full path of this shared folder. Absent + * for unmounted folders. + * @param parentFolderName Display name for the parent folder. + * @param linkMetadata The metadata of the shared content link to this + * shared folder. Absent if there is no link on the folder. This is for + * an unreleased feature so it may not be returned yet. + * @param permissions Actions the current user may perform on the folder + * and its contents. The set of permissions corresponds to the + * FolderActions in the request. Must not contain a {@code null} item. + * @param accessInheritance Whether the folder inherits its members from + * its parent. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadata(@Nonnull AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, @Nonnull String name, @Nonnull FolderPolicy policy, @Nonnull String previewUrl, @Nonnull String sharedFolderId, @Nonnull Date timeInvited, @Nullable List ownerDisplayNames, @Nullable Team ownerTeam, @Nullable String parentSharedFolderId, @Nullable String pathDisplay, @Nullable String pathLower, @Nullable String parentFolderName, @Nullable SharedContentLinkMetadata linkMetadata, @Nullable List permissions, @Nonnull AccessInheritance accessInheritance) { + super(accessType, isInsideTeamFolder, isTeamFolder, ownerDisplayNames, ownerTeam, parentSharedFolderId, pathDisplay, pathLower, parentFolderName); + this.linkMetadata = linkMetadata; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (permissions != null) { + for (FolderPermission x : permissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'permissions' is null"); + } + } + } + this.permissions = permissions; + if (policy == null) { + throw new IllegalArgumentException("Required value for 'policy' is null"); + } + this.policy = policy; + if (previewUrl == null) { + throw new IllegalArgumentException("Required value for 'previewUrl' is null"); + } + this.previewUrl = previewUrl; + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (timeInvited == null) { + throw new IllegalArgumentException("Required value for 'timeInvited' is null"); + } + this.timeInvited = LangUtil.truncateMillis(timeInvited); + if (accessInheritance == null) { + throw new IllegalArgumentException("Required value for 'accessInheritance' is null"); + } + this.accessInheritance = accessInheritance; + } + + /** + * The metadata which includes basic information about the shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param accessType The current user's access level for this shared + * folder. Must not be {@code null}. + * @param isInsideTeamFolder Whether this folder is inside of a team + * folder. + * @param isTeamFolder Whether this folder is a team folder. + * @param name The name of the this shared folder. Must not be {@code + * null}. + * @param policy Policies governing this shared folder. Must not be {@code + * null}. + * @param previewUrl URL for displaying a web preview of the shared folder. + * Must not be {@code null}. + * @param sharedFolderId The ID of the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param timeInvited Timestamp indicating when the current user was + * invited to this shared folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadata(@Nonnull AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, @Nonnull String name, @Nonnull FolderPolicy policy, @Nonnull String previewUrl, @Nonnull String sharedFolderId, @Nonnull Date timeInvited) { + this(accessType, isInsideTeamFolder, isTeamFolder, name, policy, previewUrl, sharedFolderId, timeInvited, null, null, null, null, null, null, null, null, AccessInheritance.INHERIT); + } + + /** + * The current user's access level for this shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessType() { + return accessType; + } + + /** + * Whether this folder is inside of a team folder. + * + * @return value for this field. + */ + public boolean getIsInsideTeamFolder() { + return isInsideTeamFolder; + } + + /** + * Whether this folder is a team folder. + * + * @return value for this field. + */ + public boolean getIsTeamFolder() { + return isTeamFolder; + } + + /** + * The name of the this shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Policies governing this shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderPolicy getPolicy() { + return policy; + } + + /** + * URL for displaying a web preview of the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviewUrl() { + return previewUrl; + } + + /** + * The ID of the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * Timestamp indicating when the current user was invited to this shared + * folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getTimeInvited() { + return timeInvited; + } + + /** + * The display names of the users that own the folder. If the folder is part + * of a team folder, the display names of the team admins are also included. + * Absent if the owner display names cannot be fetched. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getOwnerDisplayNames() { + return ownerDisplayNames; + } + + /** + * The team that owns the folder. This field is not present if the folder is + * not owned by a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Team getOwnerTeam() { + return ownerTeam; + } + + /** + * The ID of the parent shared folder. This field is present only if the + * folder is contained within another shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The full path of this shared folder. Absent for unmounted folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathDisplay() { + return pathDisplay; + } + + /** + * The lower-cased full path of this shared folder. Absent for unmounted + * folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * Display name for the parent folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentFolderName() { + return parentFolderName; + } + + /** + * The metadata of the shared content link to this shared folder. Absent if + * there is no link on the folder. This is for an unreleased feature so it + * may not be returned yet. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedContentLinkMetadata getLinkMetadata() { + return linkMetadata; + } + + /** + * Actions the current user may perform on the folder and its contents. The + * set of permissions corresponds to the FolderActions in the request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPermissions() { + return permissions; + } + + /** + * Whether the folder inherits its members from its parent. + * + * @return value for this field, or {@code null} if not present. Defaults to + * AccessInheritance.INHERIT. + */ + @Nonnull + public AccessInheritance getAccessInheritance() { + return accessInheritance; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accessType The current user's access level for this shared + * folder. Must not be {@code null}. + * @param isInsideTeamFolder Whether this folder is inside of a team + * folder. + * @param isTeamFolder Whether this folder is a team folder. + * @param name The name of the this shared folder. Must not be {@code + * null}. + * @param policy Policies governing this shared folder. Must not be {@code + * null}. + * @param previewUrl URL for displaying a web preview of the shared folder. + * Must not be {@code null}. + * @param sharedFolderId The ID of the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param timeInvited Timestamp indicating when the current user was + * invited to this shared folder. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, Date timeInvited) { + return new Builder(accessType, isInsideTeamFolder, isTeamFolder, name, policy, previewUrl, sharedFolderId, timeInvited); + } + + /** + * Builder for {@link SharedFolderMetadata}. + */ + public static class Builder extends SharedFolderMetadataBase.Builder { + protected final String name; + protected final FolderPolicy policy; + protected final String previewUrl; + protected final String sharedFolderId; + protected final Date timeInvited; + + protected SharedContentLinkMetadata linkMetadata; + protected List permissions; + protected AccessInheritance accessInheritance; + + protected Builder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, Date timeInvited) { + super(accessType, isInsideTeamFolder, isTeamFolder); + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (policy == null) { + throw new IllegalArgumentException("Required value for 'policy' is null"); + } + this.policy = policy; + if (previewUrl == null) { + throw new IllegalArgumentException("Required value for 'previewUrl' is null"); + } + this.previewUrl = previewUrl; + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (timeInvited == null) { + throw new IllegalArgumentException("Required value for 'timeInvited' is null"); + } + this.timeInvited = LangUtil.truncateMillis(timeInvited); + this.linkMetadata = null; + this.permissions = null; + this.accessInheritance = AccessInheritance.INHERIT; + } + + /** + * Set value for optional field. + * + * @param linkMetadata The metadata of the shared content link to this + * shared folder. Absent if there is no link on the folder. This is + * for an unreleased feature so it may not be returned yet. + * + * @return this builder + */ + public Builder withLinkMetadata(SharedContentLinkMetadata linkMetadata) { + this.linkMetadata = linkMetadata; + return this; + } + + /** + * Set value for optional field. + * + * @param permissions Actions the current user may perform on the + * folder and its contents. The set of permissions corresponds to + * the FolderActions in the request. Must not contain a {@code null} + * item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPermissions(List permissions) { + if (permissions != null) { + for (FolderPermission x : permissions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'permissions' is null"); + } + } + } + this.permissions = permissions; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * AccessInheritance.INHERIT}.

+ * + * @param accessInheritance Whether the folder inherits its members + * from its parent. Must not be {@code null}. Defaults to {@code + * AccessInheritance.INHERIT} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccessInheritance(AccessInheritance accessInheritance) { + if (accessInheritance != null) { + this.accessInheritance = accessInheritance; + } + else { + this.accessInheritance = AccessInheritance.INHERIT; + } + return this; + } + + /** + * Set value for optional field. + * + * @param ownerDisplayNames The display names of the users that own the + * folder. If the folder is part of a team folder, the display names + * of the team admins are also included. Absent if the owner display + * names cannot be fetched. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withOwnerDisplayNames(List ownerDisplayNames) { + super.withOwnerDisplayNames(ownerDisplayNames); + return this; + } + + /** + * Set value for optional field. + * + * @param ownerTeam The team that owns the folder. This field is not + * present if the folder is not owned by a team. + * + * @return this builder + */ + public Builder withOwnerTeam(Team ownerTeam) { + super.withOwnerTeam(ownerTeam); + return this; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId The ID of the parent shared folder. This + * field is present only if the folder is contained within another + * shared folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + super.withParentSharedFolderId(parentSharedFolderId); + return this; + } + + /** + * Set value for optional field. + * + * @param pathDisplay The full path of this shared folder. Absent for + * unmounted folders. + * + * @return this builder + */ + public Builder withPathDisplay(String pathDisplay) { + super.withPathDisplay(pathDisplay); + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lower-cased full path of this shared folder. + * Absent for unmounted folders. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + super.withPathLower(pathLower); + return this; + } + + /** + * Set value for optional field. + * + * @param parentFolderName Display name for the parent folder. + * + * @return this builder + */ + public Builder withParentFolderName(String parentFolderName) { + super.withParentFolderName(parentFolderName); + return this; + } + + /** + * Builds an instance of {@link SharedFolderMetadata} configured with + * this builder's values + * + * @return new instance of {@link SharedFolderMetadata} + */ + public SharedFolderMetadata build() { + return new SharedFolderMetadata(accessType, isInsideTeamFolder, isTeamFolder, name, policy, previewUrl, sharedFolderId, timeInvited, ownerDisplayNames, ownerTeam, parentSharedFolderId, pathDisplay, pathLower, parentFolderName, linkMetadata, permissions, accessInheritance); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.linkMetadata, + this.name, + this.permissions, + this.policy, + this.previewUrl, + this.sharedFolderId, + this.timeInvited, + this.accessInheritance + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderMetadata other = (SharedFolderMetadata) obj; + return ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && (this.isInsideTeamFolder == other.isInsideTeamFolder) + && (this.isTeamFolder == other.isTeamFolder) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.policy == other.policy) || (this.policy.equals(other.policy))) + && ((this.previewUrl == other.previewUrl) || (this.previewUrl.equals(other.previewUrl))) + && ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.timeInvited == other.timeInvited) || (this.timeInvited.equals(other.timeInvited))) + && ((this.ownerDisplayNames == other.ownerDisplayNames) || (this.ownerDisplayNames != null && this.ownerDisplayNames.equals(other.ownerDisplayNames))) + && ((this.ownerTeam == other.ownerTeam) || (this.ownerTeam != null && this.ownerTeam.equals(other.ownerTeam))) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.pathDisplay == other.pathDisplay) || (this.pathDisplay != null && this.pathDisplay.equals(other.pathDisplay))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.parentFolderName == other.parentFolderName) || (this.parentFolderName != null && this.parentFolderName.equals(other.parentFolderName))) + && ((this.linkMetadata == other.linkMetadata) || (this.linkMetadata != null && this.linkMetadata.equals(other.linkMetadata))) + && ((this.permissions == other.permissions) || (this.permissions != null && this.permissions.equals(other.permissions))) + && ((this.accessInheritance == other.accessInheritance) || (this.accessInheritance.equals(other.accessInheritance))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_type"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessType, g); + g.writeFieldName("is_inside_team_folder"); + StoneSerializers.boolean_().serialize(value.isInsideTeamFolder, g); + g.writeFieldName("is_team_folder"); + StoneSerializers.boolean_().serialize(value.isTeamFolder, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("policy"); + FolderPolicy.Serializer.INSTANCE.serialize(value.policy, g); + g.writeFieldName("preview_url"); + StoneSerializers.string().serialize(value.previewUrl, g); + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("time_invited"); + StoneSerializers.timestamp().serialize(value.timeInvited, g); + if (value.ownerDisplayNames != null) { + g.writeFieldName("owner_display_names"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.ownerDisplayNames, g); + } + if (value.ownerTeam != null) { + g.writeFieldName("owner_team"); + StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).serialize(value.ownerTeam, g); + } + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.pathDisplay != null) { + g.writeFieldName("path_display"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathDisplay, g); + } + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.parentFolderName != null) { + g.writeFieldName("parent_folder_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentFolderName, g); + } + if (value.linkMetadata != null) { + g.writeFieldName("link_metadata"); + StoneSerializers.nullableStruct(SharedContentLinkMetadata.Serializer.INSTANCE).serialize(value.linkMetadata, g); + } + if (value.permissions != null) { + g.writeFieldName("permissions"); + StoneSerializers.nullable(StoneSerializers.list(FolderPermission.Serializer.INSTANCE)).serialize(value.permissions, g); + } + g.writeFieldName("access_inheritance"); + AccessInheritance.Serializer.INSTANCE.serialize(value.accessInheritance, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessType = null; + Boolean f_isInsideTeamFolder = null; + Boolean f_isTeamFolder = null; + String f_name = null; + FolderPolicy f_policy = null; + String f_previewUrl = null; + String f_sharedFolderId = null; + Date f_timeInvited = null; + List f_ownerDisplayNames = null; + Team f_ownerTeam = null; + String f_parentSharedFolderId = null; + String f_pathDisplay = null; + String f_pathLower = null; + String f_parentFolderName = null; + SharedContentLinkMetadata f_linkMetadata = null; + List f_permissions = null; + AccessInheritance f_accessInheritance = AccessInheritance.INHERIT; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_type".equals(field)) { + f_accessType = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("is_inside_team_folder".equals(field)) { + f_isInsideTeamFolder = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_team_folder".equals(field)) { + f_isTeamFolder = StoneSerializers.boolean_().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("policy".equals(field)) { + f_policy = FolderPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("preview_url".equals(field)) { + f_previewUrl = StoneSerializers.string().deserialize(p); + } + else if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("time_invited".equals(field)) { + f_timeInvited = StoneSerializers.timestamp().deserialize(p); + } + else if ("owner_display_names".equals(field)) { + f_ownerDisplayNames = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("owner_team".equals(field)) { + f_ownerTeam = StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_display".equals(field)) { + f_pathDisplay = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("parent_folder_name".equals(field)) { + f_parentFolderName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("link_metadata".equals(field)) { + f_linkMetadata = StoneSerializers.nullableStruct(SharedContentLinkMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.nullable(StoneSerializers.list(FolderPermission.Serializer.INSTANCE)).deserialize(p); + } + else if ("access_inheritance".equals(field)) { + f_accessInheritance = AccessInheritance.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + if (f_isInsideTeamFolder == null) { + throw new JsonParseException(p, "Required field \"is_inside_team_folder\" missing."); + } + if (f_isTeamFolder == null) { + throw new JsonParseException(p, "Required field \"is_team_folder\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_policy == null) { + throw new JsonParseException(p, "Required field \"policy\" missing."); + } + if (f_previewUrl == null) { + throw new JsonParseException(p, "Required field \"preview_url\" missing."); + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + if (f_timeInvited == null) { + throw new JsonParseException(p, "Required field \"time_invited\" missing."); + } + value = new SharedFolderMetadata(f_accessType, f_isInsideTeamFolder, f_isTeamFolder, f_name, f_policy, f_previewUrl, f_sharedFolderId, f_timeInvited, f_ownerDisplayNames, f_ownerTeam, f_parentSharedFolderId, f_pathDisplay, f_pathLower, f_parentFolderName, f_linkMetadata, f_permissions, f_accessInheritance); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMetadataBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMetadataBase.java new file mode 100644 index 000000000..3c8a5f6b2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedFolderMetadataBase.java @@ -0,0 +1,554 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.users.Team; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Properties of the shared folder. + */ +public class SharedFolderMetadataBase { + // struct sharing.SharedFolderMetadataBase (sharing_folders.stone) + + @Nonnull + protected final AccessLevel accessType; + protected final boolean isInsideTeamFolder; + protected final boolean isTeamFolder; + @Nullable + protected final List ownerDisplayNames; + @Nullable + protected final Team ownerTeam; + @Nullable + protected final String parentSharedFolderId; + @Nullable + protected final String pathDisplay; + @Nullable + protected final String pathLower; + @Nullable + protected final String parentFolderName; + + /** + * Properties of the shared folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessType The current user's access level for this shared + * folder. Must not be {@code null}. + * @param isInsideTeamFolder Whether this folder is inside of a team + * folder. + * @param isTeamFolder Whether this folder is a team folder. + * @param ownerDisplayNames The display names of the users that own the + * folder. If the folder is part of a team folder, the display names of + * the team admins are also included. Absent if the owner display names + * cannot be fetched. Must not contain a {@code null} item. + * @param ownerTeam The team that owns the folder. This field is not + * present if the folder is not owned by a team. + * @param parentSharedFolderId The ID of the parent shared folder. This + * field is present only if the folder is contained within another + * shared folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * @param pathDisplay The full path of this shared folder. Absent for + * unmounted folders. + * @param pathLower The lower-cased full path of this shared folder. Absent + * for unmounted folders. + * @param parentFolderName Display name for the parent folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadataBase(@Nonnull AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, @Nullable List ownerDisplayNames, @Nullable Team ownerTeam, @Nullable String parentSharedFolderId, @Nullable String pathDisplay, @Nullable String pathLower, @Nullable String parentFolderName) { + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + this.isInsideTeamFolder = isInsideTeamFolder; + this.isTeamFolder = isTeamFolder; + if (ownerDisplayNames != null) { + for (String x : ownerDisplayNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'ownerDisplayNames' is null"); + } + } + } + this.ownerDisplayNames = ownerDisplayNames; + this.ownerTeam = ownerTeam; + if (parentSharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + this.pathDisplay = pathDisplay; + this.pathLower = pathLower; + this.parentFolderName = parentFolderName; + } + + /** + * Properties of the shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param accessType The current user's access level for this shared + * folder. Must not be {@code null}. + * @param isInsideTeamFolder Whether this folder is inside of a team + * folder. + * @param isTeamFolder Whether this folder is a team folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMetadataBase(@Nonnull AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder) { + this(accessType, isInsideTeamFolder, isTeamFolder, null, null, null, null, null, null); + } + + /** + * The current user's access level for this shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessType() { + return accessType; + } + + /** + * Whether this folder is inside of a team folder. + * + * @return value for this field. + */ + public boolean getIsInsideTeamFolder() { + return isInsideTeamFolder; + } + + /** + * Whether this folder is a team folder. + * + * @return value for this field. + */ + public boolean getIsTeamFolder() { + return isTeamFolder; + } + + /** + * The display names of the users that own the folder. If the folder is part + * of a team folder, the display names of the team admins are also included. + * Absent if the owner display names cannot be fetched. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getOwnerDisplayNames() { + return ownerDisplayNames; + } + + /** + * The team that owns the folder. This field is not present if the folder is + * not owned by a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Team getOwnerTeam() { + return ownerTeam; + } + + /** + * The ID of the parent shared folder. This field is present only if the + * folder is contained within another shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentSharedFolderId() { + return parentSharedFolderId; + } + + /** + * The full path of this shared folder. Absent for unmounted folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathDisplay() { + return pathDisplay; + } + + /** + * The lower-cased full path of this shared folder. Absent for unmounted + * folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * Display name for the parent folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getParentFolderName() { + return parentFolderName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accessType The current user's access level for this shared + * folder. Must not be {@code null}. + * @param isInsideTeamFolder Whether this folder is inside of a team + * folder. + * @param isTeamFolder Whether this folder is a team folder. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder) { + return new Builder(accessType, isInsideTeamFolder, isTeamFolder); + } + + /** + * Builder for {@link SharedFolderMetadataBase}. + */ + public static class Builder { + protected final AccessLevel accessType; + protected final boolean isInsideTeamFolder; + protected final boolean isTeamFolder; + + protected List ownerDisplayNames; + protected Team ownerTeam; + protected String parentSharedFolderId; + protected String pathDisplay; + protected String pathLower; + protected String parentFolderName; + + protected Builder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder) { + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + this.isInsideTeamFolder = isInsideTeamFolder; + this.isTeamFolder = isTeamFolder; + this.ownerDisplayNames = null; + this.ownerTeam = null; + this.parentSharedFolderId = null; + this.pathDisplay = null; + this.pathLower = null; + this.parentFolderName = null; + } + + /** + * Set value for optional field. + * + * @param ownerDisplayNames The display names of the users that own the + * folder. If the folder is part of a team folder, the display names + * of the team admins are also included. Absent if the owner display + * names cannot be fetched. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withOwnerDisplayNames(List ownerDisplayNames) { + if (ownerDisplayNames != null) { + for (String x : ownerDisplayNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'ownerDisplayNames' is null"); + } + } + } + this.ownerDisplayNames = ownerDisplayNames; + return this; + } + + /** + * Set value for optional field. + * + * @param ownerTeam The team that owns the folder. This field is not + * present if the folder is not owned by a team. + * + * @return this builder + */ + public Builder withOwnerTeam(Team ownerTeam) { + this.ownerTeam = ownerTeam; + return this; + } + + /** + * Set value for optional field. + * + * @param parentSharedFolderId The ID of the parent shared folder. This + * field is present only if the folder is contained within another + * shared folder. Must match pattern "{@code [-_0-9a-zA-Z:]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParentSharedFolderId(String parentSharedFolderId) { + if (parentSharedFolderId != null) { + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", parentSharedFolderId)) { + throw new IllegalArgumentException("String 'parentSharedFolderId' does not match pattern"); + } + } + this.parentSharedFolderId = parentSharedFolderId; + return this; + } + + /** + * Set value for optional field. + * + * @param pathDisplay The full path of this shared folder. Absent for + * unmounted folders. + * + * @return this builder + */ + public Builder withPathDisplay(String pathDisplay) { + this.pathDisplay = pathDisplay; + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lower-cased full path of this shared folder. + * Absent for unmounted folders. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + this.pathLower = pathLower; + return this; + } + + /** + * Set value for optional field. + * + * @param parentFolderName Display name for the parent folder. + * + * @return this builder + */ + public Builder withParentFolderName(String parentFolderName) { + this.parentFolderName = parentFolderName; + return this; + } + + /** + * Builds an instance of {@link SharedFolderMetadataBase} configured + * with this builder's values + * + * @return new instance of {@link SharedFolderMetadataBase} + */ + public SharedFolderMetadataBase build() { + return new SharedFolderMetadataBase(accessType, isInsideTeamFolder, isTeamFolder, ownerDisplayNames, ownerTeam, parentSharedFolderId, pathDisplay, pathLower, parentFolderName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessType, + this.isInsideTeamFolder, + this.isTeamFolder, + this.ownerDisplayNames, + this.ownerTeam, + this.parentSharedFolderId, + this.pathDisplay, + this.pathLower, + this.parentFolderName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderMetadataBase other = (SharedFolderMetadataBase) obj; + return ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && (this.isInsideTeamFolder == other.isInsideTeamFolder) + && (this.isTeamFolder == other.isTeamFolder) + && ((this.ownerDisplayNames == other.ownerDisplayNames) || (this.ownerDisplayNames != null && this.ownerDisplayNames.equals(other.ownerDisplayNames))) + && ((this.ownerTeam == other.ownerTeam) || (this.ownerTeam != null && this.ownerTeam.equals(other.ownerTeam))) + && ((this.parentSharedFolderId == other.parentSharedFolderId) || (this.parentSharedFolderId != null && this.parentSharedFolderId.equals(other.parentSharedFolderId))) + && ((this.pathDisplay == other.pathDisplay) || (this.pathDisplay != null && this.pathDisplay.equals(other.pathDisplay))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.parentFolderName == other.parentFolderName) || (this.parentFolderName != null && this.parentFolderName.equals(other.parentFolderName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMetadataBase value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_type"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessType, g); + g.writeFieldName("is_inside_team_folder"); + StoneSerializers.boolean_().serialize(value.isInsideTeamFolder, g); + g.writeFieldName("is_team_folder"); + StoneSerializers.boolean_().serialize(value.isTeamFolder, g); + if (value.ownerDisplayNames != null) { + g.writeFieldName("owner_display_names"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.ownerDisplayNames, g); + } + if (value.ownerTeam != null) { + g.writeFieldName("owner_team"); + StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).serialize(value.ownerTeam, g); + } + if (value.parentSharedFolderId != null) { + g.writeFieldName("parent_shared_folder_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentSharedFolderId, g); + } + if (value.pathDisplay != null) { + g.writeFieldName("path_display"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathDisplay, g); + } + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.parentFolderName != null) { + g.writeFieldName("parent_folder_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.parentFolderName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderMetadataBase deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderMetadataBase value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessType = null; + Boolean f_isInsideTeamFolder = null; + Boolean f_isTeamFolder = null; + List f_ownerDisplayNames = null; + Team f_ownerTeam = null; + String f_parentSharedFolderId = null; + String f_pathDisplay = null; + String f_pathLower = null; + String f_parentFolderName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_type".equals(field)) { + f_accessType = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("is_inside_team_folder".equals(field)) { + f_isInsideTeamFolder = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_team_folder".equals(field)) { + f_isTeamFolder = StoneSerializers.boolean_().deserialize(p); + } + else if ("owner_display_names".equals(field)) { + f_ownerDisplayNames = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("owner_team".equals(field)) { + f_ownerTeam = StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).deserialize(p); + } + else if ("parent_shared_folder_id".equals(field)) { + f_parentSharedFolderId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_display".equals(field)) { + f_pathDisplay = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("parent_folder_name".equals(field)) { + f_parentFolderName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + if (f_isInsideTeamFolder == null) { + throw new JsonParseException(p, "Required field \"is_inside_team_folder\" missing."); + } + if (f_isTeamFolder == null) { + throw new JsonParseException(p, "Required field \"is_team_folder\" missing."); + } + value = new SharedFolderMetadataBase(f_accessType, f_isInsideTeamFolder, f_isTeamFolder, f_ownerDisplayNames, f_ownerTeam, f_parentSharedFolderId, f_pathDisplay, f_pathLower, f_parentFolderName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkAccessFailureReason.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkAccessFailureReason.java new file mode 100644 index 000000000..0b1d9d64d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkAccessFailureReason.java @@ -0,0 +1,130 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SharedLinkAccessFailureReason { + // union sharing.SharedLinkAccessFailureReason (shared_links.stone) + /** + * User is not logged in. + */ + LOGIN_REQUIRED, + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_VERIFY_REQUIRED, + /** + * The link is password protected. + */ + PASSWORD_REQUIRED, + /** + * Access is allowed for team members only. + */ + TEAM_ONLY, + /** + * Access is allowed for the shared link's owner only. + */ + OWNER_ONLY, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkAccessFailureReason value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LOGIN_REQUIRED: { + g.writeString("login_required"); + break; + } + case EMAIL_VERIFY_REQUIRED: { + g.writeString("email_verify_required"); + break; + } + case PASSWORD_REQUIRED: { + g.writeString("password_required"); + break; + } + case TEAM_ONLY: { + g.writeString("team_only"); + break; + } + case OWNER_ONLY: { + g.writeString("owner_only"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedLinkAccessFailureReason deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkAccessFailureReason value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("login_required".equals(tag)) { + value = SharedLinkAccessFailureReason.LOGIN_REQUIRED; + } + else if ("email_verify_required".equals(tag)) { + value = SharedLinkAccessFailureReason.EMAIL_VERIFY_REQUIRED; + } + else if ("password_required".equals(tag)) { + value = SharedLinkAccessFailureReason.PASSWORD_REQUIRED; + } + else if ("team_only".equals(tag)) { + value = SharedLinkAccessFailureReason.TEAM_ONLY; + } + else if ("owner_only".equals(tag)) { + value = SharedLinkAccessFailureReason.OWNER_ONLY; + } + else { + value = SharedLinkAccessFailureReason.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata.java new file mode 100644 index 000000000..b6c456017 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkAlreadyExistsMetadata.java @@ -0,0 +1,283 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SharedLinkAlreadyExistsMetadata { + // union sharing.SharedLinkAlreadyExistsMetadata (shared_links.stone) + + /** + * Discriminating tag type for {@link SharedLinkAlreadyExistsMetadata}. + */ + public enum Tag { + /** + * Metadata of the shared link that already exists. + */ + METADATA, // SharedLinkMetadata + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SharedLinkAlreadyExistsMetadata OTHER = new SharedLinkAlreadyExistsMetadata().withTag(Tag.OTHER); + + private Tag _tag; + private SharedLinkMetadata metadataValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SharedLinkAlreadyExistsMetadata() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SharedLinkAlreadyExistsMetadata withTag(Tag _tag) { + SharedLinkAlreadyExistsMetadata result = new SharedLinkAlreadyExistsMetadata(); + result._tag = _tag; + return result; + } + + /** + * + * @param metadataValue Metadata of the shared link that already exists. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SharedLinkAlreadyExistsMetadata withTagAndMetadata(Tag _tag, SharedLinkMetadata metadataValue) { + SharedLinkAlreadyExistsMetadata result = new SharedLinkAlreadyExistsMetadata(); + result._tag = _tag; + result.metadataValue = metadataValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SharedLinkAlreadyExistsMetadata}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#METADATA}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#METADATA}, + * {@code false} otherwise. + */ + public boolean isMetadata() { + return this._tag == Tag.METADATA; + } + + /** + * Returns an instance of {@code SharedLinkAlreadyExistsMetadata} that has + * its tag set to {@link Tag#METADATA}. + * + *

Metadata of the shared link that already exists.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SharedLinkAlreadyExistsMetadata} with its tag + * set to {@link Tag#METADATA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SharedLinkAlreadyExistsMetadata metadata(SharedLinkMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SharedLinkAlreadyExistsMetadata().withTagAndMetadata(Tag.METADATA, value); + } + + /** + * Metadata of the shared link that already exists. + * + *

This instance must be tagged as {@link Tag#METADATA}.

+ * + * @return The {@link SharedLinkMetadata} value associated with this + * instance if {@link #isMetadata} is {@code true}. + * + * @throws IllegalStateException If {@link #isMetadata} is {@code false}. + */ + public SharedLinkMetadata getMetadataValue() { + if (this._tag != Tag.METADATA) { + throw new IllegalStateException("Invalid tag: required Tag.METADATA, but was Tag." + this._tag.name()); + } + return metadataValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.metadataValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SharedLinkAlreadyExistsMetadata) { + SharedLinkAlreadyExistsMetadata other = (SharedLinkAlreadyExistsMetadata) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case METADATA: + return (this.metadataValue == other.metadataValue) || (this.metadataValue.equals(other.metadataValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkAlreadyExistsMetadata value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case METADATA: { + g.writeStartObject(); + writeTag("metadata", g); + g.writeFieldName("metadata"); + SharedLinkMetadata.Serializer.INSTANCE.serialize(value.metadataValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedLinkAlreadyExistsMetadata deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkAlreadyExistsMetadata value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("metadata".equals(tag)) { + SharedLinkMetadata fieldValue = null; + expectField("metadata", p); + fieldValue = SharedLinkMetadata.Serializer.INSTANCE.deserialize(p); + value = SharedLinkAlreadyExistsMetadata.metadata(fieldValue); + } + else { + value = SharedLinkAlreadyExistsMetadata.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkError.java new file mode 100644 index 000000000..7e25e69d3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkError.java @@ -0,0 +1,108 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SharedLinkError { + // union sharing.SharedLinkError (shared_links.stone) + /** + * The shared link wasn't found. + */ + SHARED_LINK_NOT_FOUND, + /** + * The caller is not allowed to access this shared link. + */ + SHARED_LINK_ACCESS_DENIED, + /** + * This type of link is not supported; use {@link + * com.dropbox.core.v2.files.DbxUserFilesRequests#export(String,String)} + * instead. + */ + UNSUPPORTED_LINK_TYPE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case SHARED_LINK_NOT_FOUND: { + g.writeString("shared_link_not_found"); + break; + } + case SHARED_LINK_ACCESS_DENIED: { + g.writeString("shared_link_access_denied"); + break; + } + case UNSUPPORTED_LINK_TYPE: { + g.writeString("unsupported_link_type"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedLinkError deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("shared_link_not_found".equals(tag)) { + value = SharedLinkError.SHARED_LINK_NOT_FOUND; + } + else if ("shared_link_access_denied".equals(tag)) { + value = SharedLinkError.SHARED_LINK_ACCESS_DENIED; + } + else if ("unsupported_link_type".equals(tag)) { + value = SharedLinkError.UNSUPPORTED_LINK_TYPE; + } + else { + value = SharedLinkError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkErrorException.java new file mode 100644 index 000000000..97d6e9432 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link SharedLinkError} + * error. + * + *

This exception is raised by {@link + * DbxAppSharingRequests#getSharedLinkMetadata(String)}.

+ */ +public class SharedLinkErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/get_shared_link_metadata + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxAppSharingRequests#getSharedLinkMetadata(String)}. + */ + public final SharedLinkError errorValue; + + public SharedLinkErrorException(String routeName, String requestId, LocalizedText userMessage, SharedLinkError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkMetadata.java new file mode 100644 index 000000000..c3487d439 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkMetadata.java @@ -0,0 +1,534 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.users.Team; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The metadata of a shared link. + */ +public class SharedLinkMetadata { + // struct sharing.SharedLinkMetadata (shared_links.stone) + + @Nonnull + protected final String url; + @Nullable + protected final String id; + @Nonnull + protected final String name; + @Nullable + protected final Date expires; + @Nullable + protected final String pathLower; + @Nonnull + protected final LinkPermissions linkPermissions; + @Nullable + protected final TeamMemberInfo teamMemberInfo; + @Nullable + protected final Team contentOwnerTeamInfo; + + /** + * The metadata of a shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * @param id A unique identifier for the linked file. Must have length of + * at least 1. + * @param expires Expiration time, if set. By default the link won't + * expire. + * @param pathLower The lowercased full path in the user's Dropbox. This + * always starts with a slash. This field will only be present only if + * the linked file is in the authenticated user's dropbox. + * @param teamMemberInfo The team membership information of the link's + * owner. This field will only be present if the link's owner is a + * team member. + * @param contentOwnerTeamInfo The team information of the content's owner. + * This field will only be present if the content's owner is a team + * member and the content's owner team is different from the link's + * owner team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions, @Nullable String id, @Nullable Date expires, @Nullable String pathLower, @Nullable TeamMemberInfo teamMemberInfo, @Nullable Team contentOwnerTeamInfo) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (id != null) { + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + } + this.id = id; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.expires = LangUtil.truncateMillis(expires); + this.pathLower = pathLower; + if (linkPermissions == null) { + throw new IllegalArgumentException("Required value for 'linkPermissions' is null"); + } + this.linkPermissions = linkPermissions; + this.teamMemberInfo = teamMemberInfo; + this.contentOwnerTeamInfo = contentOwnerTeamInfo; + } + + /** + * The metadata of a shared link. + * + *

The default values for unset fields will be used.

+ * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkMetadata(@Nonnull String url, @Nonnull String name, @Nonnull LinkPermissions linkPermissions) { + this(url, name, linkPermissions, null, null, null, null, null); + } + + /** + * URL of the shared link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUrl() { + return url; + } + + /** + * The linked file name (including extension). This never contains a slash. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The link's access permissions. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkPermissions getLinkPermissions() { + return linkPermissions; + } + + /** + * A unique identifier for the linked file. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getId() { + return id; + } + + /** + * Expiration time, if set. By default the link won't expire. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + /** + * The lowercased full path in the user's Dropbox. This always starts with a + * slash. This field will only be present only if the linked file is in the + * authenticated user's dropbox. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPathLower() { + return pathLower; + } + + /** + * The team membership information of the link's owner. This field will + * only be present if the link's owner is a team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TeamMemberInfo getTeamMemberInfo() { + return teamMemberInfo; + } + + /** + * The team information of the content's owner. This field will only be + * present if the content's owner is a team member and the content's owner + * team is different from the link's owner team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Team getContentOwnerTeamInfo() { + return contentOwnerTeamInfo; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param url URL of the shared link. Must not be {@code null}. + * @param name The linked file name (including extension). This never + * contains a slash. Must not be {@code null}. + * @param linkPermissions The link's access permissions. Must not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String url, String name, LinkPermissions linkPermissions) { + return new Builder(url, name, linkPermissions); + } + + /** + * Builder for {@link SharedLinkMetadata}. + */ + public static class Builder { + protected final String url; + protected final String name; + protected final LinkPermissions linkPermissions; + + protected String id; + protected Date expires; + protected String pathLower; + protected TeamMemberInfo teamMemberInfo; + protected Team contentOwnerTeamInfo; + + protected Builder(String url, String name, LinkPermissions linkPermissions) { + if (url == null) { + throw new IllegalArgumentException("Required value for 'url' is null"); + } + this.url = url; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (linkPermissions == null) { + throw new IllegalArgumentException("Required value for 'linkPermissions' is null"); + } + this.linkPermissions = linkPermissions; + this.id = null; + this.expires = null; + this.pathLower = null; + this.teamMemberInfo = null; + this.contentOwnerTeamInfo = null; + } + + /** + * Set value for optional field. + * + * @param id A unique identifier for the linked file. Must have length + * of at least 1. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withId(String id) { + if (id != null) { + if (id.length() < 1) { + throw new IllegalArgumentException("String 'id' is shorter than 1"); + } + } + this.id = id; + return this; + } + + /** + * Set value for optional field. + * + * @param expires Expiration time, if set. By default the link won't + * expire. + * + * @return this builder + */ + public Builder withExpires(Date expires) { + this.expires = LangUtil.truncateMillis(expires); + return this; + } + + /** + * Set value for optional field. + * + * @param pathLower The lowercased full path in the user's Dropbox. + * This always starts with a slash. This field will only be present + * only if the linked file is in the authenticated user's dropbox. + * + * @return this builder + */ + public Builder withPathLower(String pathLower) { + this.pathLower = pathLower; + return this; + } + + /** + * Set value for optional field. + * + * @param teamMemberInfo The team membership information of the link's + * owner. This field will only be present if the link's owner is a + * team member. + * + * @return this builder + */ + public Builder withTeamMemberInfo(TeamMemberInfo teamMemberInfo) { + this.teamMemberInfo = teamMemberInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param contentOwnerTeamInfo The team information of the content's + * owner. This field will only be present if the content's owner is + * a team member and the content's owner team is different from the + * link's owner team. + * + * @return this builder + */ + public Builder withContentOwnerTeamInfo(Team contentOwnerTeamInfo) { + this.contentOwnerTeamInfo = contentOwnerTeamInfo; + return this; + } + + /** + * Builds an instance of {@link SharedLinkMetadata} configured with this + * builder's values + * + * @return new instance of {@link SharedLinkMetadata} + */ + public SharedLinkMetadata build() { + return new SharedLinkMetadata(url, name, linkPermissions, id, expires, pathLower, teamMemberInfo, contentOwnerTeamInfo); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.url, + this.id, + this.name, + this.expires, + this.pathLower, + this.linkPermissions, + this.teamMemberInfo, + this.contentOwnerTeamInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkMetadata other = (SharedLinkMetadata) obj; + return ((this.url == other.url) || (this.url.equals(other.url))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.linkPermissions == other.linkPermissions) || (this.linkPermissions.equals(other.linkPermissions))) + && ((this.id == other.id) || (this.id != null && this.id.equals(other.id))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + && ((this.pathLower == other.pathLower) || (this.pathLower != null && this.pathLower.equals(other.pathLower))) + && ((this.teamMemberInfo == other.teamMemberInfo) || (this.teamMemberInfo != null && this.teamMemberInfo.equals(other.teamMemberInfo))) + && ((this.contentOwnerTeamInfo == other.contentOwnerTeamInfo) || (this.contentOwnerTeamInfo != null && this.contentOwnerTeamInfo.equals(other.contentOwnerTeamInfo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof FileLinkMetadata) { + FileLinkMetadata.Serializer.INSTANCE.serialize((FileLinkMetadata) value, g, collapse); + return; + } + if (value instanceof FolderLinkMetadata) { + FolderLinkMetadata.Serializer.INSTANCE.serialize((FolderLinkMetadata) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("url"); + StoneSerializers.string().serialize(value.url, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("link_permissions"); + LinkPermissions.Serializer.INSTANCE.serialize(value.linkPermissions, g); + if (value.id != null) { + g.writeFieldName("id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.id, g); + } + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (value.pathLower != null) { + g.writeFieldName("path_lower"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.pathLower, g); + } + if (value.teamMemberInfo != null) { + g.writeFieldName("team_member_info"); + StoneSerializers.nullableStruct(TeamMemberInfo.Serializer.INSTANCE).serialize(value.teamMemberInfo, g); + } + if (value.contentOwnerTeamInfo != null) { + g.writeFieldName("content_owner_team_info"); + StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).serialize(value.contentOwnerTeamInfo, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_url = null; + String f_name = null; + LinkPermissions f_linkPermissions = null; + String f_id = null; + Date f_expires = null; + String f_pathLower = null; + TeamMemberInfo f_teamMemberInfo = null; + Team f_contentOwnerTeamInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("url".equals(field)) { + f_url = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("link_permissions".equals(field)) { + f_linkPermissions = LinkPermissions.Serializer.INSTANCE.deserialize(p); + } + else if ("id".equals(field)) { + f_id = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("path_lower".equals(field)) { + f_pathLower = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team_member_info".equals(field)) { + f_teamMemberInfo = StoneSerializers.nullableStruct(TeamMemberInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("content_owner_team_info".equals(field)) { + f_contentOwnerTeamInfo = StoneSerializers.nullableStruct(Team.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_url == null) { + throw new JsonParseException(p, "Required field \"url\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_linkPermissions == null) { + throw new JsonParseException(p, "Required field \"link_permissions\" missing."); + } + value = new SharedLinkMetadata(f_url, f_name, f_linkPermissions, f_id, f_expires, f_pathLower, f_teamMemberInfo, f_contentOwnerTeamInfo); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("file".equals(tag)) { + value = FileLinkMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else if ("folder".equals(tag)) { + value = FolderLinkMetadata.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkPolicy.java new file mode 100644 index 000000000..919bb4d8c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkPolicy.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Who can view shared links in this folder. + */ +public enum SharedLinkPolicy { + // union sharing.SharedLinkPolicy (sharing_folders.stone) + /** + * Links can be shared with anyone. + */ + ANYONE, + /** + * Links can be shared with anyone on the same team as the owner. + */ + TEAM, + /** + * Links can only be shared among members of the shared folder. + */ + MEMBERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ANYONE: { + g.writeString("anyone"); + break; + } + case TEAM: { + g.writeString("team"); + break; + } + case MEMBERS: { + g.writeString("members"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedLinkPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("anyone".equals(tag)) { + value = SharedLinkPolicy.ANYONE; + } + else if ("team".equals(tag)) { + value = SharedLinkPolicy.TEAM; + } + else if ("members".equals(tag)) { + value = SharedLinkPolicy.MEMBERS; + } + else { + value = SharedLinkPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkSettings.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkSettings.java new file mode 100644 index 000000000..1c708d957 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkSettings.java @@ -0,0 +1,459 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class SharedLinkSettings { + // struct sharing.SharedLinkSettings (shared_links.stone) + + @Nullable + protected final Boolean requirePassword; + @Nullable + protected final String linkPassword; + @Nullable + protected final Date expires; + @Nullable + protected final LinkAudience audience; + @Nullable + protected final RequestedLinkAccessLevel access; + @Nullable + protected final RequestedVisibility requestedVisibility; + @Nullable + protected final Boolean allowDownload; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param requirePassword Boolean flag to enable or disable password + * protection. + * @param linkPassword If {@link SharedLinkSettings#getRequirePassword} is + * true, this is needed to specify the password to access the link. + * @param expires Expiration time of the shared link. By default the link + * won't expire. + * @param audience The new audience who can benefit from the access level + * specified by the link's access level specified in the + * `link_access_level` field of `LinkPermissions`. This is used in + * conjunction with team policies and shared folder policies to + * determine the final effective audience type in the + * `effective_audience` field of `LinkPermissions. + * @param access Requested access level you want the audience to gain from + * this link. Note, modifying access level for an existing link is not + * supported. + * @param requestedVisibility Use {@link SharedLinkSettings#getAudience} + * instead. The requested access for this shared link. + * @param allowDownload Boolean flag to allow or not download capabilities + * for shared links. + */ + public SharedLinkSettings(@Nullable Boolean requirePassword, @Nullable String linkPassword, @Nullable Date expires, @Nullable LinkAudience audience, @Nullable RequestedLinkAccessLevel access, @Nullable RequestedVisibility requestedVisibility, @Nullable Boolean allowDownload) { + this.requirePassword = requirePassword; + this.linkPassword = linkPassword; + this.expires = LangUtil.truncateMillis(expires); + this.audience = audience; + this.access = access; + this.requestedVisibility = requestedVisibility; + this.allowDownload = allowDownload; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkSettings() { + this(null, null, null, null, null, null, null); + } + + /** + * Boolean flag to enable or disable password protection. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getRequirePassword() { + return requirePassword; + } + + /** + * If {@link SharedLinkSettings#getRequirePassword} is true, this is needed + * to specify the password to access the link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLinkPassword() { + return linkPassword; + } + + /** + * Expiration time of the shared link. By default the link won't expire. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + /** + * The new audience who can benefit from the access level specified by the + * link's access level specified in the `link_access_level` field of + * `LinkPermissions`. This is used in conjunction with team policies and + * shared folder policies to determine the final effective audience type in + * the `effective_audience` field of `LinkPermissions. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkAudience getAudience() { + return audience; + } + + /** + * Requested access level you want the audience to gain from this link. + * Note, modifying access level for an existing link is not supported. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RequestedLinkAccessLevel getAccess() { + return access; + } + + /** + * Use {@link SharedLinkSettings#getAudience} instead. The requested access + * for this shared link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RequestedVisibility getRequestedVisibility() { + return requestedVisibility; + } + + /** + * Boolean flag to allow or not download capabilities for shared links. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getAllowDownload() { + return allowDownload; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharedLinkSettings}. + */ + public static class Builder { + + protected Boolean requirePassword; + protected String linkPassword; + protected Date expires; + protected LinkAudience audience; + protected RequestedLinkAccessLevel access; + protected RequestedVisibility requestedVisibility; + protected Boolean allowDownload; + + protected Builder() { + this.requirePassword = null; + this.linkPassword = null; + this.expires = null; + this.audience = null; + this.access = null; + this.requestedVisibility = null; + this.allowDownload = null; + } + + /** + * Set value for optional field. + * + * @param requirePassword Boolean flag to enable or disable password + * protection. + * + * @return this builder + */ + public Builder withRequirePassword(Boolean requirePassword) { + this.requirePassword = requirePassword; + return this; + } + + /** + * Set value for optional field. + * + * @param linkPassword If {@link SharedLinkSettings#getRequirePassword} + * is true, this is needed to specify the password to access the + * link. + * + * @return this builder + */ + public Builder withLinkPassword(String linkPassword) { + this.linkPassword = linkPassword; + return this; + } + + /** + * Set value for optional field. + * + * @param expires Expiration time of the shared link. By default the + * link won't expire. + * + * @return this builder + */ + public Builder withExpires(Date expires) { + this.expires = LangUtil.truncateMillis(expires); + return this; + } + + /** + * Set value for optional field. + * + * @param audience The new audience who can benefit from the access + * level specified by the link's access level specified in the + * `link_access_level` field of `LinkPermissions`. This is used in + * conjunction with team policies and shared folder policies to + * determine the final effective audience type in the + * `effective_audience` field of `LinkPermissions. + * + * @return this builder + */ + public Builder withAudience(LinkAudience audience) { + this.audience = audience; + return this; + } + + /** + * Set value for optional field. + * + * @param access Requested access level you want the audience to gain + * from this link. Note, modifying access level for an existing link + * is not supported. + * + * @return this builder + */ + public Builder withAccess(RequestedLinkAccessLevel access) { + this.access = access; + return this; + } + + /** + * Set value for optional field. + * + * @param requestedVisibility Use {@link + * SharedLinkSettings#getAudience} instead. The requested access + * for this shared link. + * + * @return this builder + */ + public Builder withRequestedVisibility(RequestedVisibility requestedVisibility) { + this.requestedVisibility = requestedVisibility; + return this; + } + + /** + * Set value for optional field. + * + * @param allowDownload Boolean flag to allow or not download + * capabilities for shared links. + * + * @return this builder + */ + public Builder withAllowDownload(Boolean allowDownload) { + this.allowDownload = allowDownload; + return this; + } + + /** + * Builds an instance of {@link SharedLinkSettings} configured with this + * builder's values + * + * @return new instance of {@link SharedLinkSettings} + */ + public SharedLinkSettings build() { + return new SharedLinkSettings(requirePassword, linkPassword, expires, audience, access, requestedVisibility, allowDownload); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.requirePassword, + this.linkPassword, + this.expires, + this.audience, + this.access, + this.requestedVisibility, + this.allowDownload + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettings other = (SharedLinkSettings) obj; + return ((this.requirePassword == other.requirePassword) || (this.requirePassword != null && this.requirePassword.equals(other.requirePassword))) + && ((this.linkPassword == other.linkPassword) || (this.linkPassword != null && this.linkPassword.equals(other.linkPassword))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + && ((this.audience == other.audience) || (this.audience != null && this.audience.equals(other.audience))) + && ((this.access == other.access) || (this.access != null && this.access.equals(other.access))) + && ((this.requestedVisibility == other.requestedVisibility) || (this.requestedVisibility != null && this.requestedVisibility.equals(other.requestedVisibility))) + && ((this.allowDownload == other.allowDownload) || (this.allowDownload != null && this.allowDownload.equals(other.allowDownload))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettings value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.requirePassword != null) { + g.writeFieldName("require_password"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.requirePassword, g); + } + if (value.linkPassword != null) { + g.writeFieldName("link_password"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.linkPassword, g); + } + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (value.audience != null) { + g.writeFieldName("audience"); + StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).serialize(value.audience, g); + } + if (value.access != null) { + g.writeFieldName("access"); + StoneSerializers.nullable(RequestedLinkAccessLevel.Serializer.INSTANCE).serialize(value.access, g); + } + if (value.requestedVisibility != null) { + g.writeFieldName("requested_visibility"); + StoneSerializers.nullable(RequestedVisibility.Serializer.INSTANCE).serialize(value.requestedVisibility, g); + } + if (value.allowDownload != null) { + g.writeFieldName("allow_download"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.allowDownload, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettings deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettings value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_requirePassword = null; + String f_linkPassword = null; + Date f_expires = null; + LinkAudience f_audience = null; + RequestedLinkAccessLevel f_access = null; + RequestedVisibility f_requestedVisibility = null; + Boolean f_allowDownload = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("require_password".equals(field)) { + f_requirePassword = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("link_password".equals(field)) { + f_linkPassword = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("audience".equals(field)) { + f_audience = StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else if ("access".equals(field)) { + f_access = StoneSerializers.nullable(RequestedLinkAccessLevel.Serializer.INSTANCE).deserialize(p); + } + else if ("requested_visibility".equals(field)) { + f_requestedVisibility = StoneSerializers.nullable(RequestedVisibility.Serializer.INSTANCE).deserialize(p); + } + else if ("allow_download".equals(field)) { + f_allowDownload = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkSettings(f_requirePassword, f_linkPassword, f_expires, f_audience, f_access, f_requestedVisibility, f_allowDownload); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkSettingsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkSettingsError.java new file mode 100644 index 000000000..df40de689 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkSettingsError.java @@ -0,0 +1,94 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SharedLinkSettingsError { + // union sharing.SharedLinkSettingsError (shared_links.stone) + /** + * The given settings are invalid (for example, all attributes of the {@link + * SharedLinkSettings} are empty, the requested visibility is {@link + * RequestedVisibility#PASSWORD} but the {@link + * SharedLinkSettings#getLinkPassword} is missing, {@link + * SharedLinkSettings#getExpires} is set to the past, etc.). + */ + INVALID_SETTINGS, + /** + * User is not allowed to modify the settings of this link. Note that basic + * users can only set {@link RequestedVisibility#PUBLIC} as the {@link + * SharedLinkSettings#getRequestedVisibility} and cannot set {@link + * SharedLinkSettings#getExpires}. + */ + NOT_AUTHORIZED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_SETTINGS: { + g.writeString("invalid_settings"); + break; + } + case NOT_AUTHORIZED: { + g.writeString("not_authorized"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public SharedLinkSettingsError deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkSettingsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_settings".equals(tag)) { + value = SharedLinkSettingsError.INVALID_SETTINGS; + } + else if ("not_authorized".equals(tag)) { + value = SharedLinkSettingsError.NOT_AUTHORIZED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingFileAccessError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingFileAccessError.java new file mode 100644 index 000000000..57e67a7c0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingFileAccessError.java @@ -0,0 +1,134 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * User could not access this file. + */ +public enum SharingFileAccessError { + // union sharing.SharingFileAccessError (sharing_files.stone) + /** + * Current user does not have sufficient privileges to perform the desired + * action. + */ + NO_PERMISSION, + /** + * File specified was not found. + */ + INVALID_FILE, + /** + * A folder can't be shared this way. Use folder sharing or a shared link + * instead. + */ + IS_FOLDER, + /** + * A file inside a public folder can't be shared this way. Use a public link + * instead. + */ + INSIDE_PUBLIC_FOLDER, + /** + * A Mac OS X package can't be shared this way. Use a shared link instead. + */ + INSIDE_OSX_PACKAGE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingFileAccessError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case INVALID_FILE: { + g.writeString("invalid_file"); + break; + } + case IS_FOLDER: { + g.writeString("is_folder"); + break; + } + case INSIDE_PUBLIC_FOLDER: { + g.writeString("inside_public_folder"); + break; + } + case INSIDE_OSX_PACKAGE: { + g.writeString("inside_osx_package"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingFileAccessError deserialize(JsonParser p) throws IOException, JsonParseException { + SharingFileAccessError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("no_permission".equals(tag)) { + value = SharingFileAccessError.NO_PERMISSION; + } + else if ("invalid_file".equals(tag)) { + value = SharingFileAccessError.INVALID_FILE; + } + else if ("is_folder".equals(tag)) { + value = SharingFileAccessError.IS_FOLDER; + } + else if ("inside_public_folder".equals(tag)) { + value = SharingFileAccessError.INSIDE_PUBLIC_FOLDER; + } + else if ("inside_osx_package".equals(tag)) { + value = SharingFileAccessError.INSIDE_OSX_PACKAGE; + } + else { + value = SharingFileAccessError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingUserError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingUserError.java new file mode 100644 index 000000000..4954da252 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingUserError.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * User account had a problem preventing this action. + */ +public enum SharingUserError { + // union sharing.SharingUserError (sharing_files.stone) + /** + * This user's email address is not verified. This functionality is only + * available on accounts with a verified email address. Users can verify + * their email address here. + */ + EMAIL_UNVERIFIED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingUserError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EMAIL_UNVERIFIED: { + g.writeString("email_unverified"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingUserError deserialize(JsonParser p) throws IOException, JsonParseException { + SharingUserError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("email_unverified".equals(tag)) { + value = SharingUserError.EMAIL_UNVERIFIED; + } + else { + value = SharingUserError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingUserErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingUserErrorException.java new file mode 100644 index 000000000..383ed9196 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharingUserErrorException.java @@ -0,0 +1,41 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link SharingUserError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#getFileMetadataBatch(java.util.List,java.util.List)}, + * {@link DbxUserSharingRequests#listFileMembersBatch(java.util.List,long)}, and + * {@link DbxUserSharingRequests#listReceivedFiles}.

+ */ +public class SharingUserErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/get_file_metadata/batch + // 2/sharing/list_file_members/batch + // 2/sharing/list_received_files + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#getFileMetadataBatch(java.util.List,java.util.List)}, + * {@link DbxUserSharingRequests#listFileMembersBatch(java.util.List,long)}, + * and {@link DbxUserSharingRequests#listReceivedFiles}. + */ + public final SharingUserError errorValue; + + public SharingUserErrorException(String routeName, String requestId, LocalizedText userMessage, SharingUserError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TeamMemberInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TeamMemberInfo.java new file mode 100644 index 000000000..8549d59df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TeamMemberInfo.java @@ -0,0 +1,227 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.users.Team; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about a team member. + */ +public class TeamMemberInfo { + // struct sharing.TeamMemberInfo (shared_links.stone) + + @Nonnull + protected final Team teamInfo; + @Nonnull + protected final String displayName; + @Nullable + protected final String memberId; + + /** + * Information about a team member. + * + * @param teamInfo Information about the member's team. Must not be {@code + * null}. + * @param displayName The display name of the user. Must not be {@code + * null}. + * @param memberId ID of user as a member of a team. This field will only + * be present if the member is in the same team as current user. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfo(@Nonnull Team teamInfo, @Nonnull String displayName, @Nullable String memberId) { + if (teamInfo == null) { + throw new IllegalArgumentException("Required value for 'teamInfo' is null"); + } + this.teamInfo = teamInfo; + if (displayName == null) { + throw new IllegalArgumentException("Required value for 'displayName' is null"); + } + this.displayName = displayName; + this.memberId = memberId; + } + + /** + * Information about a team member. + * + *

The default values for unset fields will be used.

+ * + * @param teamInfo Information about the member's team. Must not be {@code + * null}. + * @param displayName The display name of the user. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfo(@Nonnull Team teamInfo, @Nonnull String displayName) { + this(teamInfo, displayName, null); + } + + /** + * Information about the member's team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Team getTeamInfo() { + return teamInfo; + } + + /** + * The display name of the user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDisplayName() { + return displayName; + } + + /** + * ID of user as a member of a team. This field will only be present if the + * member is in the same team as current user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberId() { + return memberId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamInfo, + this.displayName, + this.memberId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberInfo other = (TeamMemberInfo) obj; + return ((this.teamInfo == other.teamInfo) || (this.teamInfo.equals(other.teamInfo))) + && ((this.displayName == other.displayName) || (this.displayName.equals(other.displayName))) + && ((this.memberId == other.memberId) || (this.memberId != null && this.memberId.equals(other.memberId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_info"); + Team.Serializer.INSTANCE.serialize(value.teamInfo, g); + g.writeFieldName("display_name"); + StoneSerializers.string().serialize(value.displayName, g); + if (value.memberId != null) { + g.writeFieldName("member_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Team f_teamInfo = null; + String f_displayName = null; + String f_memberId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_info".equals(field)) { + f_teamInfo = Team.Serializer.INSTANCE.deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.string().deserialize(p); + } + else if ("member_id".equals(field)) { + f_memberId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamInfo == null) { + throw new JsonParseException(p, "Required field \"team_info\" missing."); + } + if (f_displayName == null) { + throw new JsonParseException(p, "Required field \"display_name\" missing."); + } + value = new TeamMemberInfo(f_teamInfo, f_displayName, f_memberId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderArg.java new file mode 100644 index 000000000..5b4597abd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderArg.java @@ -0,0 +1,185 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class TransferFolderArg { + // struct sharing.TransferFolderArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + @Nonnull + protected final String toDropboxId; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param toDropboxId A account or team member ID to transfer ownership to. + * Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TransferFolderArg(@Nonnull String sharedFolderId, @Nonnull String toDropboxId) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (toDropboxId == null) { + throw new IllegalArgumentException("Required value for 'toDropboxId' is null"); + } + if (toDropboxId.length() < 1) { + throw new IllegalArgumentException("String 'toDropboxId' is shorter than 1"); + } + this.toDropboxId = toDropboxId; + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * A account or team member ID to transfer ownership to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getToDropboxId() { + return toDropboxId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.toDropboxId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TransferFolderArg other = (TransferFolderArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.toDropboxId == other.toDropboxId) || (this.toDropboxId.equals(other.toDropboxId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TransferFolderArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("to_dropbox_id"); + StoneSerializers.string().serialize(value.toDropboxId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TransferFolderArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TransferFolderArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + String f_toDropboxId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("to_dropbox_id".equals(field)) { + f_toDropboxId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + if (f_toDropboxId == null) { + throw new JsonParseException(p, "Required field \"to_dropbox_id\" missing."); + } + value = new TransferFolderArg(f_sharedFolderId, f_toDropboxId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderError.java new file mode 100644 index 000000000..46ade2439 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderError.java @@ -0,0 +1,453 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TransferFolderError { + // union sharing.TransferFolderError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link TransferFolderError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + /** + * {@link TransferFolderArg#getToDropboxId} is invalid. + */ + INVALID_DROPBOX_ID, + /** + * The new designated owner is not currently a member of the shared + * folder. + */ + NEW_OWNER_NOT_A_MEMBER, + /** + * The new designated owner has not added the folder to their Dropbox. + */ + NEW_OWNER_UNMOUNTED, + /** + * The new designated owner's email address is not verified. This + * functionality is only available on accounts with a verified email + * address. Users can verify their email address here. + */ + NEW_OWNER_EMAIL_UNVERIFIED, + /** + * This action cannot be performed on a team shared folder. + */ + TEAM_FOLDER, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * {@link TransferFolderArg#getToDropboxId} is invalid. + */ + public static final TransferFolderError INVALID_DROPBOX_ID = new TransferFolderError().withTag(Tag.INVALID_DROPBOX_ID); + /** + * The new designated owner is not currently a member of the shared folder. + */ + public static final TransferFolderError NEW_OWNER_NOT_A_MEMBER = new TransferFolderError().withTag(Tag.NEW_OWNER_NOT_A_MEMBER); + /** + * The new designated owner has not added the folder to their Dropbox. + */ + public static final TransferFolderError NEW_OWNER_UNMOUNTED = new TransferFolderError().withTag(Tag.NEW_OWNER_UNMOUNTED); + /** + * The new designated owner's email address is not verified. This + * functionality is only available on accounts with a verified email + * address. Users can verify their email address here. + */ + public static final TransferFolderError NEW_OWNER_EMAIL_UNVERIFIED = new TransferFolderError().withTag(Tag.NEW_OWNER_EMAIL_UNVERIFIED); + /** + * This action cannot be performed on a team shared folder. + */ + public static final TransferFolderError TEAM_FOLDER = new TransferFolderError().withTag(Tag.TEAM_FOLDER); + /** + * The current user does not have permission to perform this action. + */ + public static final TransferFolderError NO_PERMISSION = new TransferFolderError().withTag(Tag.NO_PERMISSION); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TransferFolderError OTHER = new TransferFolderError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TransferFolderError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TransferFolderError withTag(Tag _tag) { + TransferFolderError result = new TransferFolderError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TransferFolderError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + TransferFolderError result = new TransferFolderError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TransferFolderError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code TransferFolderError} that has its tag set + * to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TransferFolderError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TransferFolderError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TransferFolderError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_DROPBOX_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_DROPBOX_ID}, {@code false} otherwise. + */ + public boolean isInvalidDropboxId() { + return this._tag == Tag.INVALID_DROPBOX_ID; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NEW_OWNER_NOT_A_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NEW_OWNER_NOT_A_MEMBER}, {@code false} otherwise. + */ + public boolean isNewOwnerNotAMember() { + return this._tag == Tag.NEW_OWNER_NOT_A_MEMBER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NEW_OWNER_UNMOUNTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NEW_OWNER_UNMOUNTED}, {@code false} otherwise. + */ + public boolean isNewOwnerUnmounted() { + return this._tag == Tag.NEW_OWNER_UNMOUNTED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NEW_OWNER_EMAIL_UNVERIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NEW_OWNER_EMAIL_UNVERIFIED}, {@code false} otherwise. + */ + public boolean isNewOwnerEmailUnverified() { + return this._tag == Tag.NEW_OWNER_EMAIL_UNVERIFIED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isTeamFolder() { + return this._tag == Tag.TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TransferFolderError) { + TransferFolderError other = (TransferFolderError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case INVALID_DROPBOX_ID: + return true; + case NEW_OWNER_NOT_A_MEMBER: + return true; + case NEW_OWNER_UNMOUNTED: + return true; + case NEW_OWNER_EMAIL_UNVERIFIED: + return true; + case TEAM_FOLDER: + return true; + case NO_PERMISSION: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TransferFolderError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case INVALID_DROPBOX_ID: { + g.writeString("invalid_dropbox_id"); + break; + } + case NEW_OWNER_NOT_A_MEMBER: { + g.writeString("new_owner_not_a_member"); + break; + } + case NEW_OWNER_UNMOUNTED: { + g.writeString("new_owner_unmounted"); + break; + } + case NEW_OWNER_EMAIL_UNVERIFIED: { + g.writeString("new_owner_email_unverified"); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TransferFolderError deserialize(JsonParser p) throws IOException, JsonParseException { + TransferFolderError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = TransferFolderError.accessError(fieldValue); + } + else if ("invalid_dropbox_id".equals(tag)) { + value = TransferFolderError.INVALID_DROPBOX_ID; + } + else if ("new_owner_not_a_member".equals(tag)) { + value = TransferFolderError.NEW_OWNER_NOT_A_MEMBER; + } + else if ("new_owner_unmounted".equals(tag)) { + value = TransferFolderError.NEW_OWNER_UNMOUNTED; + } + else if ("new_owner_email_unverified".equals(tag)) { + value = TransferFolderError.NEW_OWNER_EMAIL_UNVERIFIED; + } + else if ("team_folder".equals(tag)) { + value = TransferFolderError.TEAM_FOLDER; + } + else if ("no_permission".equals(tag)) { + value = TransferFolderError.NO_PERMISSION; + } + else { + value = TransferFolderError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderErrorException.java new file mode 100644 index 000000000..c1d669ceb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link TransferFolderError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#transferFolder(String,String)}.

+ */ +public class TransferFolderErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/transfer_folder + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#transferFolder(String,String)}. + */ + public final TransferFolderError errorValue; + + public TransferFolderErrorException(String routeName, String requestId, LocalizedText userMessage, TransferFolderError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderArg.java new file mode 100644 index 000000000..98731ab7f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class UnmountFolderArg { + // struct sharing.UnmountFolderArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UnmountFolderArg(@Nonnull String sharedFolderId) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UnmountFolderArg other = (UnmountFolderArg) obj; + return (this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnmountFolderArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UnmountFolderArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UnmountFolderArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new UnmountFolderArg(f_sharedFolderId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderError.java new file mode 100644 index 000000000..2c212f15f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderError.java @@ -0,0 +1,338 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UnmountFolderError { + // union sharing.UnmountFolderError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link UnmountFolderError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * The shared folder can't be unmounted. One example where this can + * occur is when the shared folder's parent folder is also a shared + * folder that resides in the current user's Dropbox. + */ + NOT_UNMOUNTABLE, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The current user does not have permission to perform this action. + */ + public static final UnmountFolderError NO_PERMISSION = new UnmountFolderError().withTag(Tag.NO_PERMISSION); + /** + * The shared folder can't be unmounted. One example where this can occur is + * when the shared folder's parent folder is also a shared folder that + * resides in the current user's Dropbox. + */ + public static final UnmountFolderError NOT_UNMOUNTABLE = new UnmountFolderError().withTag(Tag.NOT_UNMOUNTABLE); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UnmountFolderError OTHER = new UnmountFolderError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UnmountFolderError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UnmountFolderError withTag(Tag _tag) { + UnmountFolderError result = new UnmountFolderError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UnmountFolderError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + UnmountFolderError result = new UnmountFolderError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UnmountFolderError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code UnmountFolderError} that has its tag set to + * {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UnmountFolderError} with its tag set to {@link + * Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UnmountFolderError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UnmountFolderError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOT_UNMOUNTABLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_UNMOUNTABLE}, {@code false} otherwise. + */ + public boolean isNotUnmountable() { + return this._tag == Tag.NOT_UNMOUNTABLE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UnmountFolderError) { + UnmountFolderError other = (UnmountFolderError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case NO_PERMISSION: + return true; + case NOT_UNMOUNTABLE: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnmountFolderError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case NOT_UNMOUNTABLE: { + g.writeString("not_unmountable"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UnmountFolderError deserialize(JsonParser p) throws IOException, JsonParseException { + UnmountFolderError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = UnmountFolderError.accessError(fieldValue); + } + else if ("no_permission".equals(tag)) { + value = UnmountFolderError.NO_PERMISSION; + } + else if ("not_unmountable".equals(tag)) { + value = UnmountFolderError.NOT_UNMOUNTABLE; + } + else { + value = UnmountFolderError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderErrorException.java new file mode 100644 index 000000000..a665e4b0c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link UnmountFolderError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#unmountFolder(String)}.

+ */ +public class UnmountFolderErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/unmount_folder + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#unmountFolder(String)}. + */ + public final UnmountFolderError errorValue; + + public UnmountFolderErrorException(String routeName, String requestId, LocalizedText userMessage, UnmountFolderError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileArg.java new file mode 100644 index 000000000..e136f18e4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileArg.java @@ -0,0 +1,160 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link DbxUserSharingRequests#unshareFile(String)}. + */ +class UnshareFileArg { + // struct sharing.UnshareFileArg (sharing_files.stone) + + @Nonnull + protected final String file; + + /** + * Arguments for {@link DbxUserSharingRequests#unshareFile(String)}. + * + * @param file The file to unshare. Must have length of at least 1, match + * pattern "{@code ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UnshareFileArg(@Nonnull String file) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + } + + /** + * The file to unshare. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UnshareFileArg other = (UnshareFileArg) obj; + return (this.file == other.file) || (this.file.equals(other.file)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnshareFileArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UnshareFileArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UnshareFileArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + value = new UnshareFileArg(f_file); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileError.java new file mode 100644 index 000000000..fef7dfcf6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileError.java @@ -0,0 +1,363 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error result for {@link DbxUserSharingRequests#unshareFile(String)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UnshareFileError { + // union sharing.UnshareFileError (sharing_files.stone) + + /** + * Discriminating tag type for {@link UnshareFileError}. + */ + public enum Tag { + USER_ERROR, // SharingUserError + ACCESS_ERROR, // SharingFileAccessError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UnshareFileError OTHER = new UnshareFileError().withTag(Tag.OTHER); + + private Tag _tag; + private SharingUserError userErrorValue; + private SharingFileAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UnshareFileError() { + } + + + /** + * Error result for {@link DbxUserSharingRequests#unshareFile(String)}. + * + * @param _tag Discriminating tag for this instance. + */ + private UnshareFileError withTag(Tag _tag) { + UnshareFileError result = new UnshareFileError(); + result._tag = _tag; + return result; + } + + /** + * Error result for {@link DbxUserSharingRequests#unshareFile(String)}. + * + * @param userErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UnshareFileError withTagAndUserError(Tag _tag, SharingUserError userErrorValue) { + UnshareFileError result = new UnshareFileError(); + result._tag = _tag; + result.userErrorValue = userErrorValue; + return result; + } + + /** + * Error result for {@link DbxUserSharingRequests#unshareFile(String)}. + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UnshareFileError withTagAndAccessError(Tag _tag, SharingFileAccessError accessErrorValue) { + UnshareFileError result = new UnshareFileError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UnshareFileError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ERROR}, {@code false} otherwise. + */ + public boolean isUserError() { + return this._tag == Tag.USER_ERROR; + } + + /** + * Returns an instance of {@code UnshareFileError} that has its tag set to + * {@link Tag#USER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UnshareFileError} with its tag set to {@link + * Tag#USER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UnshareFileError userError(SharingUserError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UnshareFileError().withTagAndUserError(Tag.USER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_ERROR}. + * + * @return The {@link SharingUserError} value associated with this instance + * if {@link #isUserError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserError} is {@code false}. + */ + public SharingUserError getUserErrorValue() { + if (this._tag != Tag.USER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ERROR, but was Tag." + this._tag.name()); + } + return userErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code UnshareFileError} that has its tag set to + * {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UnshareFileError} with its tag set to {@link + * Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UnshareFileError accessError(SharingFileAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UnshareFileError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharingFileAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharingFileAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.userErrorValue, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UnshareFileError) { + UnshareFileError other = (UnshareFileError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_ERROR: + return (this.userErrorValue == other.userErrorValue) || (this.userErrorValue.equals(other.userErrorValue)); + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnshareFileError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_ERROR: { + g.writeStartObject(); + writeTag("user_error", g); + g.writeFieldName("user_error"); + SharingUserError.Serializer.INSTANCE.serialize(value.userErrorValue, g); + g.writeEndObject(); + break; + } + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharingFileAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UnshareFileError deserialize(JsonParser p) throws IOException, JsonParseException { + UnshareFileError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_error".equals(tag)) { + SharingUserError fieldValue = null; + expectField("user_error", p); + fieldValue = SharingUserError.Serializer.INSTANCE.deserialize(p); + value = UnshareFileError.userError(fieldValue); + } + else if ("access_error".equals(tag)) { + SharingFileAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharingFileAccessError.Serializer.INSTANCE.deserialize(p); + value = UnshareFileError.accessError(fieldValue); + } + else { + value = UnshareFileError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileErrorException.java new file mode 100644 index 000000000..ad4fac7ea --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link UnshareFileError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#unshareFile(String)}.

+ */ +public class UnshareFileErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/unshare_file + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserSharingRequests#unshareFile(String)}. + */ + public final UnshareFileError errorValue; + + public UnshareFileErrorException(String routeName, String requestId, LocalizedText userMessage, UnshareFileError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderArg.java new file mode 100644 index 000000000..2a34728b2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderArg.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class UnshareFolderArg { + // struct sharing.UnshareFolderArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + protected final boolean leaveACopy; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param leaveACopy If true, members of this shared folder will get a copy + * of this folder after it's unshared. Otherwise, it will be removed + * from their Dropbox. The current user, who is an owner, will always + * retain their copy. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UnshareFolderArg(@Nonnull String sharedFolderId, boolean leaveACopy) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + this.leaveACopy = leaveACopy; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UnshareFolderArg(@Nonnull String sharedFolderId) { + this(sharedFolderId, false); + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * If true, members of this shared folder will get a copy of this folder + * after it's unshared. Otherwise, it will be removed from their Dropbox. + * The current user, who is an owner, will always retain their copy. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getLeaveACopy() { + return leaveACopy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.leaveACopy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UnshareFolderArg other = (UnshareFolderArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && (this.leaveACopy == other.leaveACopy) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnshareFolderArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("leave_a_copy"); + StoneSerializers.boolean_().serialize(value.leaveACopy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UnshareFolderArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UnshareFolderArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + Boolean f_leaveACopy = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("leave_a_copy".equals(field)) { + f_leaveACopy = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new UnshareFolderArg(f_sharedFolderId, f_leaveACopy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderError.java new file mode 100644 index 000000000..2c0fe81e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderError.java @@ -0,0 +1,362 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UnshareFolderError { + // union sharing.UnshareFolderError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link UnshareFolderError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + /** + * This action cannot be performed on a team shared folder. + */ + TEAM_FOLDER, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * This shared folder has too many files to be unshared. + */ + TOO_MANY_FILES, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * This action cannot be performed on a team shared folder. + */ + public static final UnshareFolderError TEAM_FOLDER = new UnshareFolderError().withTag(Tag.TEAM_FOLDER); + /** + * The current user does not have permission to perform this action. + */ + public static final UnshareFolderError NO_PERMISSION = new UnshareFolderError().withTag(Tag.NO_PERMISSION); + /** + * This shared folder has too many files to be unshared. + */ + public static final UnshareFolderError TOO_MANY_FILES = new UnshareFolderError().withTag(Tag.TOO_MANY_FILES); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UnshareFolderError OTHER = new UnshareFolderError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UnshareFolderError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UnshareFolderError withTag(Tag _tag) { + UnshareFolderError result = new UnshareFolderError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UnshareFolderError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + UnshareFolderError result = new UnshareFolderError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UnshareFolderError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code UnshareFolderError} that has its tag set to + * {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UnshareFolderError} with its tag set to {@link + * Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UnshareFolderError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UnshareFolderError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isTeamFolder() { + return this._tag == Tag.TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_FILES}, {@code false} otherwise. + */ + public boolean isTooManyFiles() { + return this._tag == Tag.TOO_MANY_FILES; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UnshareFolderError) { + UnshareFolderError other = (UnshareFolderError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case TEAM_FOLDER: + return true; + case NO_PERMISSION: + return true; + case TOO_MANY_FILES: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UnshareFolderError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case TOO_MANY_FILES: { + g.writeString("too_many_files"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UnshareFolderError deserialize(JsonParser p) throws IOException, JsonParseException { + UnshareFolderError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = UnshareFolderError.accessError(fieldValue); + } + else if ("team_folder".equals(tag)) { + value = UnshareFolderError.TEAM_FOLDER; + } + else if ("no_permission".equals(tag)) { + value = UnshareFolderError.NO_PERMISSION; + } + else if ("too_many_files".equals(tag)) { + value = UnshareFolderError.TOO_MANY_FILES; + } + else { + value = UnshareFolderError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderErrorException.java new file mode 100644 index 000000000..664803ff5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link UnshareFolderError} + * error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)}.

+ */ +public class UnshareFolderErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/unshare_folder + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#unshareFolder(String,boolean)}. + */ + public final UnshareFolderError errorValue; + + public UnshareFolderErrorException(String routeName, String requestId, LocalizedText userMessage, UnshareFolderError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFileMemberArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFileMemberArgs.java new file mode 100644 index 000000000..b8eb8caa5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFileMemberArgs.java @@ -0,0 +1,222 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Arguments for {@link + * DbxUserSharingRequests#updateFileMember(String,MemberSelector,AccessLevel)}. + */ +class UpdateFileMemberArgs { + // struct sharing.UpdateFileMemberArgs (sharing_files.stone) + + @Nonnull + protected final String file; + @Nonnull + protected final MemberSelector member; + @Nonnull + protected final AccessLevel accessLevel; + + /** + * Arguments for {@link + * DbxUserSharingRequests#updateFileMember(String,MemberSelector,AccessLevel)}. + * + * @param file File for which we are changing a member's access. Must have + * length of at least 1, match pattern "{@code + * ((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?}", and not be {@code + * null}. + * @param member The member whose access we are changing. Must not be + * {@code null}. + * @param accessLevel The new access level for the member. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFileMemberArgs(@Nonnull String file, @Nonnull MemberSelector member, @Nonnull AccessLevel accessLevel) { + if (file == null) { + throw new IllegalArgumentException("Required value for 'file' is null"); + } + if (file.length() < 1) { + throw new IllegalArgumentException("String 'file' is shorter than 1"); + } + if (!Pattern.matches("((/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?", file)) { + throw new IllegalArgumentException("String 'file' does not match pattern"); + } + this.file = file; + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + if (accessLevel == null) { + throw new IllegalArgumentException("Required value for 'accessLevel' is null"); + } + this.accessLevel = accessLevel; + } + + /** + * File for which we are changing a member's access. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFile() { + return file; + } + + /** + * The member whose access we are changing. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + /** + * The new access level for the member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessLevel() { + return accessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.file, + this.member, + this.accessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UpdateFileMemberArgs other = (UpdateFileMemberArgs) obj; + return ((this.file == other.file) || (this.file.equals(other.file))) + && ((this.member == other.member) || (this.member.equals(other.member))) + && ((this.accessLevel == other.accessLevel) || (this.accessLevel.equals(other.accessLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFileMemberArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file"); + StoneSerializers.string().serialize(value.file, g); + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + g.writeFieldName("access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UpdateFileMemberArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UpdateFileMemberArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_file = null; + MemberSelector f_member = null; + AccessLevel f_accessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file".equals(field)) { + f_file = StoneSerializers.string().deserialize(p); + } + else if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("access_level".equals(field)) { + f_accessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_file == null) { + throw new JsonParseException(p, "Required field \"file\" missing."); + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + if (f_accessLevel == null) { + throw new JsonParseException(p, "Required field \"access_level\" missing."); + } + value = new UpdateFileMemberArgs(f_file, f_member, f_accessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberArg.java new file mode 100644 index 000000000..4bd8a89ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberArg.java @@ -0,0 +1,215 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class UpdateFolderMemberArg { + // struct sharing.UpdateFolderMemberArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + @Nonnull + protected final MemberSelector member; + @Nonnull + protected final AccessLevel accessLevel; + + /** + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param member The member of the shared folder to update. Only the + * {@link MemberSelector#getDropboxIdValue} may be set at this time. + * Must not be {@code null}. + * @param accessLevel The new access level for {@link + * UpdateFolderMemberArg#getMember}. {@link AccessLevel#OWNER} is + * disallowed. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFolderMemberArg(@Nonnull String sharedFolderId, @Nonnull MemberSelector member, @Nonnull AccessLevel accessLevel) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + if (member == null) { + throw new IllegalArgumentException("Required value for 'member' is null"); + } + this.member = member; + if (accessLevel == null) { + throw new IllegalArgumentException("Required value for 'accessLevel' is null"); + } + this.accessLevel = accessLevel; + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * The member of the shared folder to update. Only the {@link + * MemberSelector#getDropboxIdValue} may be set at this time. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSelector getMember() { + return member; + } + + /** + * The new access level for {@link UpdateFolderMemberArg#getMember}. {@link + * AccessLevel#OWNER} is disallowed. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessLevel() { + return accessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.member, + this.accessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UpdateFolderMemberArg other = (UpdateFolderMemberArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.member == other.member) || (this.member.equals(other.member))) + && ((this.accessLevel == other.accessLevel) || (this.accessLevel.equals(other.accessLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFolderMemberArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + g.writeFieldName("member"); + MemberSelector.Serializer.INSTANCE.serialize(value.member, g); + g.writeFieldName("access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UpdateFolderMemberArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UpdateFolderMemberArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + MemberSelector f_member = null; + AccessLevel f_accessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("member".equals(field)) { + f_member = MemberSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("access_level".equals(field)) { + f_accessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + if (f_member == null) { + throw new JsonParseException(p, "Required field \"member\" missing."); + } + if (f_accessLevel == null) { + throw new JsonParseException(p, "Required field \"access_level\" missing."); + } + value = new UpdateFolderMemberArg(f_sharedFolderId, f_member, f_accessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberError.java new file mode 100644 index 000000000..9e46035af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberError.java @@ -0,0 +1,511 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UpdateFolderMemberError { + // union sharing.UpdateFolderMemberError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link UpdateFolderMemberError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + MEMBER_ERROR, // SharedFolderMemberError + /** + * If updating the access type required the member to be added to the + * shared folder and there was an error when adding the member. + */ + NO_EXPLICIT_ACCESS, // AddFolderMemberError + /** + * The current user's account doesn't support this action. An example of + * this is when downgrading a member from editor to viewer. This action + * can only be performed by users that have upgraded to a Pro or + * Business plan. + */ + INSUFFICIENT_PLAN, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The current user's account doesn't support this action. An example of + * this is when downgrading a member from editor to viewer. This action can + * only be performed by users that have upgraded to a Pro or Business plan. + */ + public static final UpdateFolderMemberError INSUFFICIENT_PLAN = new UpdateFolderMemberError().withTag(Tag.INSUFFICIENT_PLAN); + /** + * The current user does not have permission to perform this action. + */ + public static final UpdateFolderMemberError NO_PERMISSION = new UpdateFolderMemberError().withTag(Tag.NO_PERMISSION); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UpdateFolderMemberError OTHER = new UpdateFolderMemberError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + private SharedFolderMemberError memberErrorValue; + private AddFolderMemberError noExplicitAccessValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UpdateFolderMemberError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UpdateFolderMemberError withTag(Tag _tag) { + UpdateFolderMemberError result = new UpdateFolderMemberError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UpdateFolderMemberError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + UpdateFolderMemberError result = new UpdateFolderMemberError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param memberErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UpdateFolderMemberError withTagAndMemberError(Tag _tag, SharedFolderMemberError memberErrorValue) { + UpdateFolderMemberError result = new UpdateFolderMemberError(); + result._tag = _tag; + result.memberErrorValue = memberErrorValue; + return result; + } + + /** + * + * @param noExplicitAccessValue If updating the access type required the + * member to be added to the shared folder and there was an error when + * adding the member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UpdateFolderMemberError withTagAndNoExplicitAccess(Tag _tag, AddFolderMemberError noExplicitAccessValue) { + UpdateFolderMemberError result = new UpdateFolderMemberError(); + result._tag = _tag; + result.noExplicitAccessValue = noExplicitAccessValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UpdateFolderMemberError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code UpdateFolderMemberError} that has its tag + * set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdateFolderMemberError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UpdateFolderMemberError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UpdateFolderMemberError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ERROR}, {@code false} otherwise. + */ + public boolean isMemberError() { + return this._tag == Tag.MEMBER_ERROR; + } + + /** + * Returns an instance of {@code UpdateFolderMemberError} that has its tag + * set to {@link Tag#MEMBER_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdateFolderMemberError} with its tag set to + * {@link Tag#MEMBER_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UpdateFolderMemberError memberError(SharedFolderMemberError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UpdateFolderMemberError().withTagAndMemberError(Tag.MEMBER_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#MEMBER_ERROR}. + * + * @return The {@link SharedFolderMemberError} value associated with this + * instance if {@link #isMemberError} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberError} is {@code + * false}. + */ + public SharedFolderMemberError getMemberErrorValue() { + if (this._tag != Tag.MEMBER_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ERROR, but was Tag." + this._tag.name()); + } + return memberErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPLICIT_ACCESS}, {@code false} otherwise. + */ + public boolean isNoExplicitAccess() { + return this._tag == Tag.NO_EXPLICIT_ACCESS; + } + + /** + * Returns an instance of {@code UpdateFolderMemberError} that has its tag + * set to {@link Tag#NO_EXPLICIT_ACCESS}. + * + *

If updating the access type required the member to be added to the + * shared folder and there was an error when adding the member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdateFolderMemberError} with its tag set to + * {@link Tag#NO_EXPLICIT_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UpdateFolderMemberError noExplicitAccess(AddFolderMemberError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UpdateFolderMemberError().withTagAndNoExplicitAccess(Tag.NO_EXPLICIT_ACCESS, value); + } + + /** + * If updating the access type required the member to be added to the shared + * folder and there was an error when adding the member. + * + *

This instance must be tagged as {@link Tag#NO_EXPLICIT_ACCESS}.

+ * + * @return The {@link AddFolderMemberError} value associated with this + * instance if {@link #isNoExplicitAccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoExplicitAccess} is {@code + * false}. + */ + public AddFolderMemberError getNoExplicitAccessValue() { + if (this._tag != Tag.NO_EXPLICIT_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPLICIT_ACCESS, but was Tag." + this._tag.name()); + } + return noExplicitAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INSUFFICIENT_PLAN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INSUFFICIENT_PLAN}, {@code false} otherwise. + */ + public boolean isInsufficientPlan() { + return this._tag == Tag.INSUFFICIENT_PLAN; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.memberErrorValue, + this.noExplicitAccessValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UpdateFolderMemberError) { + UpdateFolderMemberError other = (UpdateFolderMemberError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case MEMBER_ERROR: + return (this.memberErrorValue == other.memberErrorValue) || (this.memberErrorValue.equals(other.memberErrorValue)); + case NO_EXPLICIT_ACCESS: + return (this.noExplicitAccessValue == other.noExplicitAccessValue) || (this.noExplicitAccessValue.equals(other.noExplicitAccessValue)); + case INSUFFICIENT_PLAN: + return true; + case NO_PERMISSION: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFolderMemberError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case MEMBER_ERROR: { + g.writeStartObject(); + writeTag("member_error", g); + g.writeFieldName("member_error"); + SharedFolderMemberError.Serializer.INSTANCE.serialize(value.memberErrorValue, g); + g.writeEndObject(); + break; + } + case NO_EXPLICIT_ACCESS: { + g.writeStartObject(); + writeTag("no_explicit_access", g); + g.writeFieldName("no_explicit_access"); + AddFolderMemberError.Serializer.INSTANCE.serialize(value.noExplicitAccessValue, g); + g.writeEndObject(); + break; + } + case INSUFFICIENT_PLAN: { + g.writeString("insufficient_plan"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UpdateFolderMemberError deserialize(JsonParser p) throws IOException, JsonParseException { + UpdateFolderMemberError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = UpdateFolderMemberError.accessError(fieldValue); + } + else if ("member_error".equals(tag)) { + SharedFolderMemberError fieldValue = null; + expectField("member_error", p); + fieldValue = SharedFolderMemberError.Serializer.INSTANCE.deserialize(p); + value = UpdateFolderMemberError.memberError(fieldValue); + } + else if ("no_explicit_access".equals(tag)) { + AddFolderMemberError fieldValue = null; + expectField("no_explicit_access", p); + fieldValue = AddFolderMemberError.Serializer.INSTANCE.deserialize(p); + value = UpdateFolderMemberError.noExplicitAccess(fieldValue); + } + else if ("insufficient_plan".equals(tag)) { + value = UpdateFolderMemberError.INSUFFICIENT_PLAN; + } + else if ("no_permission".equals(tag)) { + value = UpdateFolderMemberError.NO_PERMISSION; + } + else { + value = UpdateFolderMemberError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberErrorException.java new file mode 100644 index 000000000..3fa439538 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderMemberErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UpdateFolderMemberError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#updateFolderMember(String,MemberSelector,AccessLevel)}. + *

+ */ +public class UpdateFolderMemberErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/update_folder_member + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#updateFolderMember(String,MemberSelector,AccessLevel)}. + */ + public final UpdateFolderMemberError errorValue; + + public UpdateFolderMemberErrorException(String routeName, String requestId, LocalizedText userMessage, UpdateFolderMemberError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyArg.java new file mode 100644 index 000000000..a06652ee7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyArg.java @@ -0,0 +1,489 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * If any of the policies are unset, then they retain their current setting. + */ +class UpdateFolderPolicyArg { + // struct sharing.UpdateFolderPolicyArg (sharing_folders.stone) + + @Nonnull + protected final String sharedFolderId; + @Nullable + protected final MemberPolicy memberPolicy; + @Nullable + protected final AclUpdatePolicy aclUpdatePolicy; + @Nullable + protected final ViewerInfoPolicy viewerInfoPolicy; + @Nullable + protected final SharedLinkPolicy sharedLinkPolicy; + @Nullable + protected final LinkSettings linkSettings; + @Nullable + protected final List actions; + + /** + * If any of the policies are unset, then they retain their current setting. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * @param sharedLinkPolicy The policy to apply to shared links created for + * content inside this shared folder. The current user must be on a team + * to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * @param linkSettings Settings on the link for this folder. + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFolderPolicyArg(@Nonnull String sharedFolderId, @Nullable MemberPolicy memberPolicy, @Nullable AclUpdatePolicy aclUpdatePolicy, @Nullable ViewerInfoPolicy viewerInfoPolicy, @Nullable SharedLinkPolicy sharedLinkPolicy, @Nullable LinkSettings linkSettings, @Nullable List actions) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + this.memberPolicy = memberPolicy; + this.aclUpdatePolicy = aclUpdatePolicy; + this.viewerInfoPolicy = viewerInfoPolicy; + this.sharedLinkPolicy = sharedLinkPolicy; + this.linkSettings = linkSettings; + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + } + + /** + * If any of the policies are unset, then they retain their current setting. + * + *

The default values for unset fields will be used.

+ * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFolderPolicyArg(@Nonnull String sharedFolderId) { + this(sharedFolderId, null, null, null, null, null, null); + } + + /** + * The ID for the shared folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedFolderId() { + return sharedFolderId; + } + + /** + * Who can be a member of this shared folder. Only applicable if the current + * user is on a team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberPolicy getMemberPolicy() { + return memberPolicy; + } + + /** + * Who can add and remove members of this shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AclUpdatePolicy getAclUpdatePolicy() { + return aclUpdatePolicy; + } + + /** + * Who can enable/disable viewer info for this shared folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ViewerInfoPolicy getViewerInfoPolicy() { + return viewerInfoPolicy; + } + + /** + * The policy to apply to shared links created for content inside this + * shared folder. The current user must be on a team to set this policy to + * {@link SharedLinkPolicy#MEMBERS}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkPolicy getSharedLinkPolicy() { + return sharedLinkPolicy; + } + + /** + * Settings on the link for this folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkSettings getLinkSettings() { + return linkSettings; + } + + /** + * A list of `FolderAction`s corresponding to `FolderPermission`s that + * should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActions() { + return actions; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sharedFolderId The ID for the shared folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String sharedFolderId) { + return new Builder(sharedFolderId); + } + + /** + * Builder for {@link UpdateFolderPolicyArg}. + */ + public static class Builder { + protected final String sharedFolderId; + + protected MemberPolicy memberPolicy; + protected AclUpdatePolicy aclUpdatePolicy; + protected ViewerInfoPolicy viewerInfoPolicy; + protected SharedLinkPolicy sharedLinkPolicy; + protected LinkSettings linkSettings; + protected List actions; + + protected Builder(String sharedFolderId) { + if (sharedFolderId == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", sharedFolderId)) { + throw new IllegalArgumentException("String 'sharedFolderId' does not match pattern"); + } + this.sharedFolderId = sharedFolderId; + this.memberPolicy = null; + this.aclUpdatePolicy = null; + this.viewerInfoPolicy = null; + this.sharedLinkPolicy = null; + this.linkSettings = null; + this.actions = null; + } + + /** + * Set value for optional field. + * + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * + * @return this builder + */ + public Builder withMemberPolicy(MemberPolicy memberPolicy) { + this.memberPolicy = memberPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * + * @return this builder + */ + public Builder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy) { + this.aclUpdatePolicy = aclUpdatePolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * + * @return this builder + */ + public Builder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) { + this.viewerInfoPolicy = viewerInfoPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLinkPolicy The policy to apply to shared links created + * for content inside this shared folder. The current user must be + * on a team to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * + * @return this builder + */ + public Builder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy) { + this.sharedLinkPolicy = sharedLinkPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param linkSettings Settings on the link for this folder. + * + * @return this builder + */ + public Builder withLinkSettings(LinkSettings linkSettings) { + this.linkSettings = linkSettings; + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions + * the authenticated user can perform on the folder. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActions(List actions) { + if (actions != null) { + for (FolderAction x : actions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'actions' is null"); + } + } + } + this.actions = actions; + return this; + } + + /** + * Builds an instance of {@link UpdateFolderPolicyArg} configured with + * this builder's values + * + * @return new instance of {@link UpdateFolderPolicyArg} + */ + public UpdateFolderPolicyArg build() { + return new UpdateFolderPolicyArg(sharedFolderId, memberPolicy, aclUpdatePolicy, viewerInfoPolicy, sharedLinkPolicy, linkSettings, actions); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderId, + this.memberPolicy, + this.aclUpdatePolicy, + this.viewerInfoPolicy, + this.sharedLinkPolicy, + this.linkSettings, + this.actions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UpdateFolderPolicyArg other = (UpdateFolderPolicyArg) obj; + return ((this.sharedFolderId == other.sharedFolderId) || (this.sharedFolderId.equals(other.sharedFolderId))) + && ((this.memberPolicy == other.memberPolicy) || (this.memberPolicy != null && this.memberPolicy.equals(other.memberPolicy))) + && ((this.aclUpdatePolicy == other.aclUpdatePolicy) || (this.aclUpdatePolicy != null && this.aclUpdatePolicy.equals(other.aclUpdatePolicy))) + && ((this.viewerInfoPolicy == other.viewerInfoPolicy) || (this.viewerInfoPolicy != null && this.viewerInfoPolicy.equals(other.viewerInfoPolicy))) + && ((this.sharedLinkPolicy == other.sharedLinkPolicy) || (this.sharedLinkPolicy != null && this.sharedLinkPolicy.equals(other.sharedLinkPolicy))) + && ((this.linkSettings == other.linkSettings) || (this.linkSettings != null && this.linkSettings.equals(other.linkSettings))) + && ((this.actions == other.actions) || (this.actions != null && this.actions.equals(other.actions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFolderPolicyArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_id"); + StoneSerializers.string().serialize(value.sharedFolderId, g); + if (value.memberPolicy != null) { + g.writeFieldName("member_policy"); + StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).serialize(value.memberPolicy, g); + } + if (value.aclUpdatePolicy != null) { + g.writeFieldName("acl_update_policy"); + StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).serialize(value.aclUpdatePolicy, g); + } + if (value.viewerInfoPolicy != null) { + g.writeFieldName("viewer_info_policy"); + StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).serialize(value.viewerInfoPolicy, g); + } + if (value.sharedLinkPolicy != null) { + g.writeFieldName("shared_link_policy"); + StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).serialize(value.sharedLinkPolicy, g); + } + if (value.linkSettings != null) { + g.writeFieldName("link_settings"); + StoneSerializers.nullableStruct(LinkSettings.Serializer.INSTANCE).serialize(value.linkSettings, g); + } + if (value.actions != null) { + g.writeFieldName("actions"); + StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).serialize(value.actions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UpdateFolderPolicyArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UpdateFolderPolicyArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedFolderId = null; + MemberPolicy f_memberPolicy = null; + AclUpdatePolicy f_aclUpdatePolicy = null; + ViewerInfoPolicy f_viewerInfoPolicy = null; + SharedLinkPolicy f_sharedLinkPolicy = null; + LinkSettings f_linkSettings = null; + List f_actions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_id".equals(field)) { + f_sharedFolderId = StoneSerializers.string().deserialize(p); + } + else if ("member_policy".equals(field)) { + f_memberPolicy = StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("acl_update_policy".equals(field)) { + f_aclUpdatePolicy = StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("viewer_info_policy".equals(field)) { + f_viewerInfoPolicy = StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("shared_link_policy".equals(field)) { + f_sharedLinkPolicy = StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("link_settings".equals(field)) { + f_linkSettings = StoneSerializers.nullableStruct(LinkSettings.Serializer.INSTANCE).deserialize(p); + } + else if ("actions".equals(field)) { + f_actions = StoneSerializers.nullable(StoneSerializers.list(FolderAction.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderId == null) { + throw new JsonParseException(p, "Required field \"shared_folder_id\" missing."); + } + value = new UpdateFolderPolicyArg(f_sharedFolderId, f_memberPolicy, f_aclUpdatePolicy, f_viewerInfoPolicy, f_sharedLinkPolicy, f_linkSettings, f_actions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder.java new file mode 100644 index 000000000..710f0f78e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyBuilder.java @@ -0,0 +1,132 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxUserSharingRequests#updateFolderPolicyBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class UpdateFolderPolicyBuilder { + private final DbxUserSharingRequests _client; + private final UpdateFolderPolicyArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue sharing + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + UpdateFolderPolicyBuilder(DbxUserSharingRequests _client, UpdateFolderPolicyArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param memberPolicy Who can be a member of this shared folder. Only + * applicable if the current user is on a team. + * + * @return this builder + */ + public UpdateFolderPolicyBuilder withMemberPolicy(MemberPolicy memberPolicy) { + this._builder.withMemberPolicy(memberPolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param aclUpdatePolicy Who can add and remove members of this shared + * folder. + * + * @return this builder + */ + public UpdateFolderPolicyBuilder withAclUpdatePolicy(AclUpdatePolicy aclUpdatePolicy) { + this._builder.withAclUpdatePolicy(aclUpdatePolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param viewerInfoPolicy Who can enable/disable viewer info for this + * shared folder. + * + * @return this builder + */ + public UpdateFolderPolicyBuilder withViewerInfoPolicy(ViewerInfoPolicy viewerInfoPolicy) { + this._builder.withViewerInfoPolicy(viewerInfoPolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param sharedLinkPolicy The policy to apply to shared links created for + * content inside this shared folder. The current user must be on a team + * to set this policy to {@link SharedLinkPolicy#MEMBERS}. + * + * @return this builder + */ + public UpdateFolderPolicyBuilder withSharedLinkPolicy(SharedLinkPolicy sharedLinkPolicy) { + this._builder.withSharedLinkPolicy(sharedLinkPolicy); + return this; + } + + /** + * Set value for optional field. + * + * @param linkSettings Settings on the link for this folder. + * + * @return this builder + */ + public UpdateFolderPolicyBuilder withLinkSettings(LinkSettings linkSettings) { + this._builder.withLinkSettings(linkSettings); + return this; + } + + /** + * Set value for optional field. + * + * @param actions A list of `FolderAction`s corresponding to + * `FolderPermission`s that should appear in the response's {@link + * SharedFolderMetadata#getPermissions} field describing the actions the + * authenticated user can perform on the folder. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UpdateFolderPolicyBuilder withActions(List actions) { + this._builder.withActions(actions); + return this; + } + + /** + * Issues the request. + */ + public SharedFolderMetadata start() throws UpdateFolderPolicyErrorException, DbxException { + UpdateFolderPolicyArg arg_ = this._builder.build(); + return _client.updateFolderPolicy(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyError.java new file mode 100644 index 000000000..88e0de9af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyError.java @@ -0,0 +1,424 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UpdateFolderPolicyError { + // union sharing.UpdateFolderPolicyError (sharing_folders.stone) + + /** + * Discriminating tag type for {@link UpdateFolderPolicyError}. + */ + public enum Tag { + ACCESS_ERROR, // SharedFolderAccessError + /** + * {@link UpdateFolderPolicyArg#getMemberPolicy} was set even though + * user is not on a team. + */ + NOT_ON_TEAM, + /** + * Team policy is more restrictive than {@link + * ShareFolderArg#getMemberPolicy}. + */ + TEAM_POLICY_DISALLOWS_MEMBER_POLICY, + /** + * The current account is not allowed to select the specified {@link + * ShareFolderArg#getSharedLinkPolicy}. + */ + DISALLOWED_SHARED_LINK_POLICY, + /** + * The current user does not have permission to perform this action. + */ + NO_PERMISSION, + /** + * This action cannot be performed on a team shared folder. + */ + TEAM_FOLDER, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * {@link UpdateFolderPolicyArg#getMemberPolicy} was set even though user is + * not on a team. + */ + public static final UpdateFolderPolicyError NOT_ON_TEAM = new UpdateFolderPolicyError().withTag(Tag.NOT_ON_TEAM); + /** + * Team policy is more restrictive than {@link + * ShareFolderArg#getMemberPolicy}. + */ + public static final UpdateFolderPolicyError TEAM_POLICY_DISALLOWS_MEMBER_POLICY = new UpdateFolderPolicyError().withTag(Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY); + /** + * The current account is not allowed to select the specified {@link + * ShareFolderArg#getSharedLinkPolicy}. + */ + public static final UpdateFolderPolicyError DISALLOWED_SHARED_LINK_POLICY = new UpdateFolderPolicyError().withTag(Tag.DISALLOWED_SHARED_LINK_POLICY); + /** + * The current user does not have permission to perform this action. + */ + public static final UpdateFolderPolicyError NO_PERMISSION = new UpdateFolderPolicyError().withTag(Tag.NO_PERMISSION); + /** + * This action cannot be performed on a team shared folder. + */ + public static final UpdateFolderPolicyError TEAM_FOLDER = new UpdateFolderPolicyError().withTag(Tag.TEAM_FOLDER); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UpdateFolderPolicyError OTHER = new UpdateFolderPolicyError().withTag(Tag.OTHER); + + private Tag _tag; + private SharedFolderAccessError accessErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UpdateFolderPolicyError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UpdateFolderPolicyError withTag(Tag _tag) { + UpdateFolderPolicyError result = new UpdateFolderPolicyError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UpdateFolderPolicyError withTagAndAccessError(Tag _tag, SharedFolderAccessError accessErrorValue) { + UpdateFolderPolicyError result = new UpdateFolderPolicyError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UpdateFolderPolicyError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code UpdateFolderPolicyError} that has its tag + * set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UpdateFolderPolicyError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UpdateFolderPolicyError accessError(SharedFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UpdateFolderPolicyError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link SharedFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public SharedFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOT_ON_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_ON_TEAM}, {@code false} otherwise. + */ + public boolean isNotOnTeam() { + return this._tag == Tag.NOT_ON_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_POLICY_DISALLOWS_MEMBER_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_POLICY_DISALLOWS_MEMBER_POLICY}, {@code false} otherwise. + */ + public boolean isTeamPolicyDisallowsMemberPolicy() { + return this._tag == Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DISALLOWED_SHARED_LINK_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DISALLOWED_SHARED_LINK_POLICY}, {@code false} otherwise. + */ + public boolean isDisallowedSharedLinkPolicy() { + return this._tag == Tag.DISALLOWED_SHARED_LINK_POLICY; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PERMISSION}, {@code false} otherwise. + */ + public boolean isNoPermission() { + return this._tag == Tag.NO_PERMISSION; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER}, {@code false} otherwise. + */ + public boolean isTeamFolder() { + return this._tag == Tag.TEAM_FOLDER; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UpdateFolderPolicyError) { + UpdateFolderPolicyError other = (UpdateFolderPolicyError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case NOT_ON_TEAM: + return true; + case TEAM_POLICY_DISALLOWS_MEMBER_POLICY: + return true; + case DISALLOWED_SHARED_LINK_POLICY: + return true; + case NO_PERMISSION: + return true; + case TEAM_FOLDER: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UpdateFolderPolicyError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + SharedFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case NOT_ON_TEAM: { + g.writeString("not_on_team"); + break; + } + case TEAM_POLICY_DISALLOWS_MEMBER_POLICY: { + g.writeString("team_policy_disallows_member_policy"); + break; + } + case DISALLOWED_SHARED_LINK_POLICY: { + g.writeString("disallowed_shared_link_policy"); + break; + } + case NO_PERMISSION: { + g.writeString("no_permission"); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UpdateFolderPolicyError deserialize(JsonParser p) throws IOException, JsonParseException { + UpdateFolderPolicyError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + SharedFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = SharedFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = UpdateFolderPolicyError.accessError(fieldValue); + } + else if ("not_on_team".equals(tag)) { + value = UpdateFolderPolicyError.NOT_ON_TEAM; + } + else if ("team_policy_disallows_member_policy".equals(tag)) { + value = UpdateFolderPolicyError.TEAM_POLICY_DISALLOWS_MEMBER_POLICY; + } + else if ("disallowed_shared_link_policy".equals(tag)) { + value = UpdateFolderPolicyError.DISALLOWED_SHARED_LINK_POLICY; + } + else if ("no_permission".equals(tag)) { + value = UpdateFolderPolicyError.NO_PERMISSION; + } + else if ("team_folder".equals(tag)) { + value = UpdateFolderPolicyError.TEAM_FOLDER; + } + else { + value = UpdateFolderPolicyError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyErrorException.java new file mode 100644 index 000000000..314b146c8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UpdateFolderPolicyError} error. + * + *

This exception is raised by {@link + * DbxUserSharingRequests#updateFolderPolicy(String)}.

+ */ +public class UpdateFolderPolicyErrorException extends DbxApiException { + // exception for routes: + // 2/sharing/update_folder_policy + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserSharingRequests#updateFolderPolicy(String)}. + */ + public final UpdateFolderPolicyError errorValue; + + public UpdateFolderPolicyErrorException(String routeName, String requestId, LocalizedText userMessage, UpdateFolderPolicyError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserFileMembershipInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserFileMembershipInfo.java new file mode 100644 index 000000000..f098fdd28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserFileMembershipInfo.java @@ -0,0 +1,430 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.seenstate.PlatformType; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The information about a user member of the shared content with an appended + * last seen timestamp. + */ +public class UserFileMembershipInfo extends UserMembershipInfo { + // struct sharing.UserFileMembershipInfo (sharing_files.stone) + + @Nullable + protected final Date timeLastSeen; + @Nullable + protected final PlatformType platformType; + + /** + * The information about a user member of the shared content with an + * appended last seen timestamp. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param user The account information for the membership user. Must not be + * {@code null}. + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions in + * the request. Must not contain a {@code null} item. + * @param initials Never set. + * @param isInherited True if the member has access from a parent folder. + * @param timeLastSeen The UTC timestamp of when the user has last seen the + * content. Only populated if the user has seen the content and the + * caller has a plan that includes viewer history. + * @param platformType The platform on which the user has last seen the + * content, or unknown. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserFileMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull UserInfo user, @Nullable List permissions, @Nullable String initials, boolean isInherited, @Nullable Date timeLastSeen, @Nullable PlatformType platformType) { + super(accessType, user, permissions, initials, isInherited); + this.timeLastSeen = LangUtil.truncateMillis(timeLastSeen); + this.platformType = platformType; + } + + /** + * The information about a user member of the shared content with an + * appended last seen timestamp. + * + *

The default values for unset fields will be used.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param user The account information for the membership user. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserFileMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull UserInfo user) { + this(accessType, user, null, null, false, null, null); + } + + /** + * The access type for this member. It contains inherited access type from + * parent folder, and acquired access type from this folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessType() { + return accessType; + } + + /** + * The account information for the membership user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserInfo getUser() { + return user; + } + + /** + * The permissions that requesting user has on this member. The set of + * permissions corresponds to the MemberActions in the request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPermissions() { + return permissions; + } + + /** + * Never set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getInitials() { + return initials; + } + + /** + * True if the member has access from a parent folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIsInherited() { + return isInherited; + } + + /** + * The UTC timestamp of when the user has last seen the content. Only + * populated if the user has seen the content and the caller has a plan that + * includes viewer history. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getTimeLastSeen() { + return timeLastSeen; + } + + /** + * The platform on which the user has last seen the content, or unknown. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PlatformType getPlatformType() { + return platformType; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param user The account information for the membership user. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel accessType, UserInfo user) { + return new Builder(accessType, user); + } + + /** + * Builder for {@link UserFileMembershipInfo}. + */ + public static class Builder extends UserMembershipInfo.Builder { + + protected Date timeLastSeen; + protected PlatformType platformType; + + protected Builder(AccessLevel accessType, UserInfo user) { + super(accessType, user); + this.timeLastSeen = null; + this.platformType = null; + } + + /** + * Set value for optional field. + * + * @param timeLastSeen The UTC timestamp of when the user has last seen + * the content. Only populated if the user has seen the content and + * the caller has a plan that includes viewer history. + * + * @return this builder + */ + public Builder withTimeLastSeen(Date timeLastSeen) { + this.timeLastSeen = LangUtil.truncateMillis(timeLastSeen); + return this; + } + + /** + * Set value for optional field. + * + * @param platformType The platform on which the user has last seen the + * content, or unknown. + * + * @return this builder + */ + public Builder withPlatformType(PlatformType platformType) { + this.platformType = platformType; + return this; + } + + /** + * Set value for optional field. + * + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions + * in the request. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPermissions(List permissions) { + super.withPermissions(permissions); + return this; + } + + /** + * Set value for optional field. + * + * @param initials Never set. + * + * @return this builder + */ + public Builder withInitials(String initials) { + super.withInitials(initials); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param isInherited True if the member has access from a parent + * folder. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIsInherited(Boolean isInherited) { + super.withIsInherited(isInherited); + return this; + } + + /** + * Builds an instance of {@link UserFileMembershipInfo} configured with + * this builder's values + * + * @return new instance of {@link UserFileMembershipInfo} + */ + public UserFileMembershipInfo build() { + return new UserFileMembershipInfo(accessType, user, permissions, initials, isInherited, timeLastSeen, platformType); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.timeLastSeen, + this.platformType + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserFileMembershipInfo other = (UserFileMembershipInfo) obj; + return ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.permissions == other.permissions) || (this.permissions != null && this.permissions.equals(other.permissions))) + && ((this.initials == other.initials) || (this.initials != null && this.initials.equals(other.initials))) + && (this.isInherited == other.isInherited) + && ((this.timeLastSeen == other.timeLastSeen) || (this.timeLastSeen != null && this.timeLastSeen.equals(other.timeLastSeen))) + && ((this.platformType == other.platformType) || (this.platformType != null && this.platformType.equals(other.platformType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserFileMembershipInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_type"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessType, g); + g.writeFieldName("user"); + UserInfo.Serializer.INSTANCE.serialize(value.user, g); + if (value.permissions != null) { + g.writeFieldName("permissions"); + StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).serialize(value.permissions, g); + } + if (value.initials != null) { + g.writeFieldName("initials"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.initials, g); + } + g.writeFieldName("is_inherited"); + StoneSerializers.boolean_().serialize(value.isInherited, g); + if (value.timeLastSeen != null) { + g.writeFieldName("time_last_seen"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.timeLastSeen, g); + } + if (value.platformType != null) { + g.writeFieldName("platform_type"); + StoneSerializers.nullable(PlatformType.Serializer.INSTANCE).serialize(value.platformType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserFileMembershipInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserFileMembershipInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessType = null; + UserInfo f_user = null; + List f_permissions = null; + String f_initials = null; + Boolean f_isInherited = false; + Date f_timeLastSeen = null; + PlatformType f_platformType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_type".equals(field)) { + f_accessType = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("user".equals(field)) { + f_user = UserInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).deserialize(p); + } + else if ("initials".equals(field)) { + f_initials = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_inherited".equals(field)) { + f_isInherited = StoneSerializers.boolean_().deserialize(p); + } + else if ("time_last_seen".equals(field)) { + f_timeLastSeen = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("platform_type".equals(field)) { + f_platformType = StoneSerializers.nullable(PlatformType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new UserFileMembershipInfo(f_accessType, f_user, f_permissions, f_initials, f_isInherited, f_timeLastSeen, f_platformType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserInfo.java new file mode 100644 index 000000000..f3f8591df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserInfo.java @@ -0,0 +1,296 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Basic information about a user. Use {@link + * com.dropbox.core.v2.users.DbxUserUsersRequests#getAccount(String)} and {@link + * com.dropbox.core.v2.users.DbxUserUsersRequests#getAccountBatch(java.util.List)} + * to obtain more detailed information. + */ +public class UserInfo { + // struct sharing.UserInfo (sharing_folders.stone) + + @Nonnull + protected final String accountId; + @Nonnull + protected final String email; + @Nonnull + protected final String displayName; + protected final boolean sameTeam; + @Nullable + protected final String teamMemberId; + + /** + * Basic information about a user. Use {@link + * com.dropbox.core.v2.users.DbxUserUsersRequests#getAccount(String)} and + * {@link + * com.dropbox.core.v2.users.DbxUserUsersRequests#getAccountBatch(java.util.List)} + * to obtain more detailed information. + * + * @param accountId The account ID of the user. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param email Email address of user. Must not be {@code null}. + * @param displayName The display name of the user. Must not be {@code + * null}. + * @param sameTeam If the user is in the same team as current user. + * @param teamMemberId The team member ID of the shared folder member. Only + * present if {@link UserInfo#getSameTeam} is true. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserInfo(@Nonnull String accountId, @Nonnull String email, @Nonnull String displayName, boolean sameTeam, @Nullable String teamMemberId) { + if (accountId == null) { + throw new IllegalArgumentException("Required value for 'accountId' is null"); + } + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + this.accountId = accountId; + if (email == null) { + throw new IllegalArgumentException("Required value for 'email' is null"); + } + this.email = email; + if (displayName == null) { + throw new IllegalArgumentException("Required value for 'displayName' is null"); + } + this.displayName = displayName; + this.sameTeam = sameTeam; + this.teamMemberId = teamMemberId; + } + + /** + * Basic information about a user. Use {@link + * com.dropbox.core.v2.users.DbxUserUsersRequests#getAccount(String)} and + * {@link + * com.dropbox.core.v2.users.DbxUserUsersRequests#getAccountBatch(java.util.List)} + * to obtain more detailed information. + * + *

The default values for unset fields will be used.

+ * + * @param accountId The account ID of the user. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param email Email address of user. Must not be {@code null}. + * @param displayName The display name of the user. Must not be {@code + * null}. + * @param sameTeam If the user is in the same team as current user. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserInfo(@Nonnull String accountId, @Nonnull String email, @Nonnull String displayName, boolean sameTeam) { + this(accountId, email, displayName, sameTeam, null); + } + + /** + * The account ID of the user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAccountId() { + return accountId; + } + + /** + * Email address of user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEmail() { + return email; + } + + /** + * The display name of the user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDisplayName() { + return displayName; + } + + /** + * If the user is in the same team as current user. + * + * @return value for this field. + */ + public boolean getSameTeam() { + return sameTeam; + } + + /** + * The team member ID of the shared folder member. Only present if {@link + * UserInfo#getSameTeam} is true. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamMemberId() { + return teamMemberId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accountId, + this.email, + this.displayName, + this.sameTeam, + this.teamMemberId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserInfo other = (UserInfo) obj; + return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) + && ((this.email == other.email) || (this.email.equals(other.email))) + && ((this.displayName == other.displayName) || (this.displayName.equals(other.displayName))) + && (this.sameTeam == other.sameTeam) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId != null && this.teamMemberId.equals(other.teamMemberId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("account_id"); + StoneSerializers.string().serialize(value.accountId, g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.email, g); + g.writeFieldName("display_name"); + StoneSerializers.string().serialize(value.displayName, g); + g.writeFieldName("same_team"); + StoneSerializers.boolean_().serialize(value.sameTeam, g); + if (value.teamMemberId != null) { + g.writeFieldName("team_member_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamMemberId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_accountId = null; + String f_email = null; + String f_displayName = null; + Boolean f_sameTeam = null; + String f_teamMemberId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.string().deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.string().deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.string().deserialize(p); + } + else if ("same_team".equals(field)) { + f_sameTeam = StoneSerializers.boolean_().deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accountId == null) { + throw new JsonParseException(p, "Required field \"account_id\" missing."); + } + if (f_email == null) { + throw new JsonParseException(p, "Required field \"email\" missing."); + } + if (f_displayName == null) { + throw new JsonParseException(p, "Required field \"display_name\" missing."); + } + if (f_sameTeam == null) { + throw new JsonParseException(p, "Required field \"same_team\" missing."); + } + value = new UserInfo(f_accountId, f_email, f_displayName, f_sameTeam, f_teamMemberId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserMembershipInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserMembershipInfo.java new file mode 100644 index 000000000..0a3282557 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UserMembershipInfo.java @@ -0,0 +1,351 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_folders.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The information about a user member of the shared content. + */ +public class UserMembershipInfo extends MembershipInfo { + // struct sharing.UserMembershipInfo (sharing_folders.stone) + + @Nonnull + protected final UserInfo user; + + /** + * The information about a user member of the shared content. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param user The account information for the membership user. Must not be + * {@code null}. + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions in + * the request. Must not contain a {@code null} item. + * @param initials Never set. + * @param isInherited True if the member has access from a parent folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull UserInfo user, @Nullable List permissions, @Nullable String initials, boolean isInherited) { + super(accessType, permissions, initials, isInherited); + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + } + + /** + * The information about a user member of the shared content. + * + *

The default values for unset fields will be used.

+ * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param user The account information for the membership user. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull UserInfo user) { + this(accessType, user, null, null, false); + } + + /** + * The access type for this member. It contains inherited access type from + * parent folder, and acquired access type from this folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getAccessType() { + return accessType; + } + + /** + * The account information for the membership user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserInfo getUser() { + return user; + } + + /** + * The permissions that requesting user has on this member. The set of + * permissions corresponds to the MemberActions in the request. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getPermissions() { + return permissions; + } + + /** + * Never set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getInitials() { + return initials; + } + + /** + * True if the member has access from a parent folder. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIsInherited() { + return isInherited; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accessType The access type for this member. It contains inherited + * access type from parent folder, and acquired access type from this + * folder. Must not be {@code null}. + * @param user The account information for the membership user. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel accessType, UserInfo user) { + return new Builder(accessType, user); + } + + /** + * Builder for {@link UserMembershipInfo}. + */ + public static class Builder extends MembershipInfo.Builder { + protected final UserInfo user; + + protected Builder(AccessLevel accessType, UserInfo user) { + super(accessType); + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + } + + /** + * Set value for optional field. + * + * @param permissions The permissions that requesting user has on this + * member. The set of permissions corresponds to the MemberActions + * in the request. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withPermissions(List permissions) { + super.withPermissions(permissions); + return this; + } + + /** + * Set value for optional field. + * + * @param initials Never set. + * + * @return this builder + */ + public Builder withInitials(String initials) { + super.withInitials(initials); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param isInherited True if the member has access from a parent + * folder. Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIsInherited(Boolean isInherited) { + super.withIsInherited(isInherited); + return this; + } + + /** + * Builds an instance of {@link UserMembershipInfo} configured with this + * builder's values + * + * @return new instance of {@link UserMembershipInfo} + */ + public UserMembershipInfo build() { + return new UserMembershipInfo(accessType, user, permissions, initials, isInherited); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserMembershipInfo other = (UserMembershipInfo) obj; + return ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.permissions == other.permissions) || (this.permissions != null && this.permissions.equals(other.permissions))) + && ((this.initials == other.initials) || (this.initials != null && this.initials.equals(other.initials))) + && (this.isInherited == other.isInherited) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserMembershipInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_type"); + AccessLevel.Serializer.INSTANCE.serialize(value.accessType, g); + g.writeFieldName("user"); + UserInfo.Serializer.INSTANCE.serialize(value.user, g); + if (value.permissions != null) { + g.writeFieldName("permissions"); + StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).serialize(value.permissions, g); + } + if (value.initials != null) { + g.writeFieldName("initials"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.initials, g); + } + g.writeFieldName("is_inherited"); + StoneSerializers.boolean_().serialize(value.isInherited, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserMembershipInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserMembershipInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_accessType = null; + UserInfo f_user = null; + List f_permissions = null; + String f_initials = null; + Boolean f_isInherited = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_type".equals(field)) { + f_accessType = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("user".equals(field)) { + f_user = UserInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("permissions".equals(field)) { + f_permissions = StoneSerializers.nullable(StoneSerializers.list(MemberPermission.Serializer.INSTANCE)).deserialize(p); + } + else if ("initials".equals(field)) { + f_initials = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_inherited".equals(field)) { + f_isInherited = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new UserMembershipInfo(f_accessType, f_user, f_permissions, f_initials, f_isInherited); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ViewerInfoPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ViewerInfoPolicy.java new file mode 100644 index 000000000..c04699164 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ViewerInfoPolicy.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from sharing_files.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ViewerInfoPolicy { + // union sharing.ViewerInfoPolicy (sharing_files.stone) + /** + * Viewer information is available on this file. + */ + ENABLED, + /** + * Viewer information is disabled on this file. + */ + DISABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ViewerInfoPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ENABLED: { + g.writeString("enabled"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ViewerInfoPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ViewerInfoPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("enabled".equals(tag)) { + value = ViewerInfoPolicy.ENABLED; + } + else if ("disabled".equals(tag)) { + value = ViewerInfoPolicy.DISABLED; + } + else { + value = ViewerInfoPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/Visibility.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/Visibility.java new file mode 100644 index 000000000..8d6c78268 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/Visibility.java @@ -0,0 +1,136 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Who can access a shared link. The most open visibility is {@link + * Visibility#PUBLIC}. The default depends on many aspects, such as team and + * user preferences and shared folder settings. + */ +public enum Visibility { + // union sharing.Visibility (shared_links.stone) + /** + * Anyone who has received the link can access it. No login required. + */ + PUBLIC, + /** + * Only members of the same team can access the link. Login is required. + */ + TEAM_ONLY, + /** + * A link-specific password is required to access the link. Login is not + * required. + */ + PASSWORD, + /** + * Only members of the same team who have the link-specific password can + * access the link. + */ + TEAM_AND_PASSWORD, + /** + * Only members of the shared folder containing the linked file can access + * the link. Login is required. + */ + SHARED_FOLDER_ONLY, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Visibility value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PUBLIC: { + g.writeString("public"); + break; + } + case TEAM_ONLY: { + g.writeString("team_only"); + break; + } + case PASSWORD: { + g.writeString("password"); + break; + } + case TEAM_AND_PASSWORD: { + g.writeString("team_and_password"); + break; + } + case SHARED_FOLDER_ONLY: { + g.writeString("shared_folder_only"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public Visibility deserialize(JsonParser p) throws IOException, JsonParseException { + Visibility value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("public".equals(tag)) { + value = Visibility.PUBLIC; + } + else if ("team_only".equals(tag)) { + value = Visibility.TEAM_ONLY; + } + else if ("password".equals(tag)) { + value = Visibility.PASSWORD; + } + else if ("team_and_password".equals(tag)) { + value = Visibility.TEAM_AND_PASSWORD; + } + else if ("shared_folder_only".equals(tag)) { + value = Visibility.SHARED_FOLDER_ONLY; + } + else { + value = Visibility.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/VisibilityPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/VisibilityPolicy.java new file mode 100644 index 000000000..9a5b55e8d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/VisibilityPolicy.java @@ -0,0 +1,259 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class VisibilityPolicy { + // struct sharing.VisibilityPolicy (shared_links.stone) + + @Nonnull + protected final RequestedVisibility policy; + @Nonnull + protected final AlphaResolvedVisibility resolvedPolicy; + protected final boolean allowed; + @Nullable + protected final VisibilityPolicyDisallowedReason disallowedReason; + + /** + * + * @param policy This is the value to submit when saving the visibility + * setting. Must not be {@code null}. + * @param resolvedPolicy This is what the effective policy would be, if you + * selected this option. The resolved policy is obtained after + * considering external effects such as shared folder settings and team + * policy. This value is guaranteed to be provided. Must not be {@code + * null}. + * @param allowed Whether the user is permitted to set the visibility to + * this policy. + * @param disallowedReason If {@link VisibilityPolicy#getAllowed} is {@code + * false}, this will provide the reason that the user is not permitted + * to set the visibility to this policy. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public VisibilityPolicy(@Nonnull RequestedVisibility policy, @Nonnull AlphaResolvedVisibility resolvedPolicy, boolean allowed, @Nullable VisibilityPolicyDisallowedReason disallowedReason) { + if (policy == null) { + throw new IllegalArgumentException("Required value for 'policy' is null"); + } + this.policy = policy; + if (resolvedPolicy == null) { + throw new IllegalArgumentException("Required value for 'resolvedPolicy' is null"); + } + this.resolvedPolicy = resolvedPolicy; + this.allowed = allowed; + this.disallowedReason = disallowedReason; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param policy This is the value to submit when saving the visibility + * setting. Must not be {@code null}. + * @param resolvedPolicy This is what the effective policy would be, if you + * selected this option. The resolved policy is obtained after + * considering external effects such as shared folder settings and team + * policy. This value is guaranteed to be provided. Must not be {@code + * null}. + * @param allowed Whether the user is permitted to set the visibility to + * this policy. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public VisibilityPolicy(@Nonnull RequestedVisibility policy, @Nonnull AlphaResolvedVisibility resolvedPolicy, boolean allowed) { + this(policy, resolvedPolicy, allowed, null); + } + + /** + * This is the value to submit when saving the visibility setting. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public RequestedVisibility getPolicy() { + return policy; + } + + /** + * This is what the effective policy would be, if you selected this option. + * The resolved policy is obtained after considering external effects such + * as shared folder settings and team policy. This value is guaranteed to be + * provided. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AlphaResolvedVisibility getResolvedPolicy() { + return resolvedPolicy; + } + + /** + * Whether the user is permitted to set the visibility to this policy. + * + * @return value for this field. + */ + public boolean getAllowed() { + return allowed; + } + + /** + * If {@link VisibilityPolicy#getAllowed} is {@code false}, this will + * provide the reason that the user is not permitted to set the visibility + * to this policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public VisibilityPolicyDisallowedReason getDisallowedReason() { + return disallowedReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.policy, + this.resolvedPolicy, + this.allowed, + this.disallowedReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + VisibilityPolicy other = (VisibilityPolicy) obj; + return ((this.policy == other.policy) || (this.policy.equals(other.policy))) + && ((this.resolvedPolicy == other.resolvedPolicy) || (this.resolvedPolicy.equals(other.resolvedPolicy))) + && (this.allowed == other.allowed) + && ((this.disallowedReason == other.disallowedReason) || (this.disallowedReason != null && this.disallowedReason.equals(other.disallowedReason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(VisibilityPolicy value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("policy"); + RequestedVisibility.Serializer.INSTANCE.serialize(value.policy, g); + g.writeFieldName("resolved_policy"); + AlphaResolvedVisibility.Serializer.INSTANCE.serialize(value.resolvedPolicy, g); + g.writeFieldName("allowed"); + StoneSerializers.boolean_().serialize(value.allowed, g); + if (value.disallowedReason != null) { + g.writeFieldName("disallowed_reason"); + StoneSerializers.nullable(VisibilityPolicyDisallowedReason.Serializer.INSTANCE).serialize(value.disallowedReason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public VisibilityPolicy deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + VisibilityPolicy value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + RequestedVisibility f_policy = null; + AlphaResolvedVisibility f_resolvedPolicy = null; + Boolean f_allowed = null; + VisibilityPolicyDisallowedReason f_disallowedReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("policy".equals(field)) { + f_policy = RequestedVisibility.Serializer.INSTANCE.deserialize(p); + } + else if ("resolved_policy".equals(field)) { + f_resolvedPolicy = AlphaResolvedVisibility.Serializer.INSTANCE.deserialize(p); + } + else if ("allowed".equals(field)) { + f_allowed = StoneSerializers.boolean_().deserialize(p); + } + else if ("disallowed_reason".equals(field)) { + f_disallowedReason = StoneSerializers.nullable(VisibilityPolicyDisallowedReason.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_policy == null) { + throw new JsonParseException(p, "Required field \"policy\" missing."); + } + if (f_resolvedPolicy == null) { + throw new JsonParseException(p, "Required field \"resolved_policy\" missing."); + } + if (f_allowed == null) { + throw new JsonParseException(p, "Required field \"allowed\" missing."); + } + value = new VisibilityPolicy(f_policy, f_resolvedPolicy, f_allowed, f_disallowedReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason.java new file mode 100644 index 000000000..202578723 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/VisibilityPolicyDisallowedReason.java @@ -0,0 +1,142 @@ +/* DO NOT EDIT */ +/* This file was generated from shared_links.stone */ + +package com.dropbox.core.v2.sharing; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum VisibilityPolicyDisallowedReason { + // union sharing.VisibilityPolicyDisallowedReason (shared_links.stone) + /** + * The user needs to delete and recreate the link to change the visibility + * policy. + */ + DELETE_AND_RECREATE, + /** + * The parent shared folder restricts sharing of links outside the shared + * folder. To change the visibility policy, remove the restriction from the + * parent shared folder. + */ + RESTRICTED_BY_SHARED_FOLDER, + /** + * The team policy prevents links being shared outside the team. + */ + RESTRICTED_BY_TEAM, + /** + * The user needs to be on a team to set this policy. + */ + USER_NOT_ON_TEAM, + /** + * The user is a basic user or is on a limited team. + */ + USER_ACCOUNT_TYPE, + /** + * The user does not have permission. + */ + PERMISSION_DENIED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(VisibilityPolicyDisallowedReason value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DELETE_AND_RECREATE: { + g.writeString("delete_and_recreate"); + break; + } + case RESTRICTED_BY_SHARED_FOLDER: { + g.writeString("restricted_by_shared_folder"); + break; + } + case RESTRICTED_BY_TEAM: { + g.writeString("restricted_by_team"); + break; + } + case USER_NOT_ON_TEAM: { + g.writeString("user_not_on_team"); + break; + } + case USER_ACCOUNT_TYPE: { + g.writeString("user_account_type"); + break; + } + case PERMISSION_DENIED: { + g.writeString("permission_denied"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public VisibilityPolicyDisallowedReason deserialize(JsonParser p) throws IOException, JsonParseException { + VisibilityPolicyDisallowedReason value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("delete_and_recreate".equals(tag)) { + value = VisibilityPolicyDisallowedReason.DELETE_AND_RECREATE; + } + else if ("restricted_by_shared_folder".equals(tag)) { + value = VisibilityPolicyDisallowedReason.RESTRICTED_BY_SHARED_FOLDER; + } + else if ("restricted_by_team".equals(tag)) { + value = VisibilityPolicyDisallowedReason.RESTRICTED_BY_TEAM; + } + else if ("user_not_on_team".equals(tag)) { + value = VisibilityPolicyDisallowedReason.USER_NOT_ON_TEAM; + } + else if ("user_account_type".equals(tag)) { + value = VisibilityPolicyDisallowedReason.USER_ACCOUNT_TYPE; + } + else if ("permission_denied".equals(tag)) { + value = VisibilityPolicyDisallowedReason.PERMISSION_DENIED; + } + else { + value = VisibilityPolicyDisallowedReason.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/package-info.java new file mode 100644 index 000000000..47a87f938 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/package-info.java @@ -0,0 +1,13 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * This namespace contains endpoints and data types for creating and managing + * shared links and shared folders. + * + *

See {@link com.dropbox.core.v2.sharing.DbxAppSharingRequests}, {@link + * com.dropbox.core.v2.sharing.DbxUserSharingRequests} for a list of possible + * requests for this namespace.

+ */ +package com.dropbox.core.v2.sharing; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ActiveWebSession.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ActiveWebSession.java new file mode 100644 index 000000000..512f3194b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ActiveWebSession.java @@ -0,0 +1,485 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information on active web sessions. + */ +public class ActiveWebSession extends DeviceSession { + // struct team.ActiveWebSession (team_devices.stone) + + @Nonnull + protected final String userAgent; + @Nonnull + protected final String os; + @Nonnull + protected final String browser; + @Nullable + protected final Date expires; + + /** + * Information on active web sessions. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sessionId The session id. Must not be {@code null}. + * @param userAgent Information on the hosting device. Must not be {@code + * null}. + * @param os Information on the hosting operating system. Must not be + * {@code null}. + * @param browser Information on the browser used for this web session. + * Must not be {@code null}. + * @param ipAddress The IP address of the last activity from this session. + * @param country The country from which the last activity from this + * session was made. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * @param expires The time this session expires. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ActiveWebSession(@Nonnull String sessionId, @Nonnull String userAgent, @Nonnull String os, @Nonnull String browser, @Nullable String ipAddress, @Nullable String country, @Nullable Date created, @Nullable Date updated, @Nullable Date expires) { + super(sessionId, ipAddress, country, created, updated); + if (userAgent == null) { + throw new IllegalArgumentException("Required value for 'userAgent' is null"); + } + this.userAgent = userAgent; + if (os == null) { + throw new IllegalArgumentException("Required value for 'os' is null"); + } + this.os = os; + if (browser == null) { + throw new IllegalArgumentException("Required value for 'browser' is null"); + } + this.browser = browser; + this.expires = LangUtil.truncateMillis(expires); + } + + /** + * Information on active web sessions. + * + *

The default values for unset fields will be used.

+ * + * @param sessionId The session id. Must not be {@code null}. + * @param userAgent Information on the hosting device. Must not be {@code + * null}. + * @param os Information on the hosting operating system. Must not be + * {@code null}. + * @param browser Information on the browser used for this web session. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ActiveWebSession(@Nonnull String sessionId, @Nonnull String userAgent, @Nonnull String os, @Nonnull String browser) { + this(sessionId, userAgent, os, browser, null, null, null, null, null); + } + + /** + * The session id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + /** + * Information on the hosting device. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUserAgent() { + return userAgent; + } + + /** + * Information on the hosting operating system. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOs() { + return os; + } + + /** + * Information on the browser used for this web session. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBrowser() { + return browser; + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The country from which the last activity from this session was made. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCountry() { + return country; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * The time this session expires. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getExpires() { + return expires; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sessionId The session id. Must not be {@code null}. + * @param userAgent Information on the hosting device. Must not be {@code + * null}. + * @param os Information on the hosting operating system. Must not be + * {@code null}. + * @param browser Information on the browser used for this web session. + * Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String sessionId, String userAgent, String os, String browser) { + return new Builder(sessionId, userAgent, os, browser); + } + + /** + * Builder for {@link ActiveWebSession}. + */ + public static class Builder extends DeviceSession.Builder { + protected final String userAgent; + protected final String os; + protected final String browser; + + protected Date expires; + + protected Builder(String sessionId, String userAgent, String os, String browser) { + super(sessionId); + if (userAgent == null) { + throw new IllegalArgumentException("Required value for 'userAgent' is null"); + } + this.userAgent = userAgent; + if (os == null) { + throw new IllegalArgumentException("Required value for 'os' is null"); + } + this.os = os; + if (browser == null) { + throw new IllegalArgumentException("Required value for 'browser' is null"); + } + this.browser = browser; + this.expires = null; + } + + /** + * Set value for optional field. + * + * @param expires The time this session expires. + * + * @return this builder + */ + public Builder withExpires(Date expires) { + this.expires = LangUtil.truncateMillis(expires); + return this; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + super.withIpAddress(ipAddress); + return this; + } + + /** + * Set value for optional field. + * + * @param country The country from which the last activity from this + * session was made. + * + * @return this builder + */ + public Builder withCountry(String country) { + super.withCountry(country); + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + super.withCreated(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + super.withUpdated(updated); + return this; + } + + /** + * Builds an instance of {@link ActiveWebSession} configured with this + * builder's values + * + * @return new instance of {@link ActiveWebSession} + */ + public ActiveWebSession build() { + return new ActiveWebSession(sessionId, userAgent, os, browser, ipAddress, country, created, updated, expires); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.userAgent, + this.os, + this.browser, + this.expires + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ActiveWebSession other = (ActiveWebSession) obj; + return ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + && ((this.userAgent == other.userAgent) || (this.userAgent.equals(other.userAgent))) + && ((this.os == other.os) || (this.os.equals(other.os))) + && ((this.browser == other.browser) || (this.browser.equals(other.browser))) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.country == other.country) || (this.country != null && this.country.equals(other.country))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + && ((this.expires == other.expires) || (this.expires != null && this.expires.equals(other.expires))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ActiveWebSession value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + g.writeFieldName("user_agent"); + StoneSerializers.string().serialize(value.userAgent, g); + g.writeFieldName("os"); + StoneSerializers.string().serialize(value.os, g); + g.writeFieldName("browser"); + StoneSerializers.string().serialize(value.browser, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.country != null) { + g.writeFieldName("country"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.country, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (value.expires != null) { + g.writeFieldName("expires"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.expires, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ActiveWebSession deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ActiveWebSession value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + String f_userAgent = null; + String f_os = null; + String f_browser = null; + String f_ipAddress = null; + String f_country = null; + Date f_created = null; + Date f_updated = null; + Date f_expires = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else if ("user_agent".equals(field)) { + f_userAgent = StoneSerializers.string().deserialize(p); + } + else if ("os".equals(field)) { + f_os = StoneSerializers.string().deserialize(p); + } + else if ("browser".equals(field)) { + f_browser = StoneSerializers.string().deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("country".equals(field)) { + f_country = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("expires".equals(field)) { + f_expires = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + if (f_userAgent == null) { + throw new JsonParseException(p, "Required field \"user_agent\" missing."); + } + if (f_os == null) { + throw new JsonParseException(p, "Required field \"os\" missing."); + } + if (f_browser == null) { + throw new JsonParseException(p, "Required field \"browser\" missing."); + } + value = new ActiveWebSession(f_sessionId, f_userAgent, f_os, f_browser, f_ipAddress, f_country, f_created, f_updated, f_expires); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailResult.java new file mode 100644 index 000000000..b24631b01 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailResult.java @@ -0,0 +1,1122 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.secondaryemails.SecondaryEmail; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Result of trying to add a secondary email to a user. 'success' is the only + * value indicating that a secondary email was successfully added to a user. The + * other values explain the type of error that occurred, and include the email + * for which the error occurred. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AddSecondaryEmailResult { + // union team.AddSecondaryEmailResult (team_secondary_mails.stone) + + /** + * Discriminating tag type for {@link AddSecondaryEmailResult}. + */ + public enum Tag { + /** + * Describes a secondary email that was successfully added to a user. + */ + SUCCESS, // SecondaryEmail + /** + * Secondary email is not available to be claimed by the user. + */ + UNAVAILABLE, // String + /** + * Secondary email is already a pending email for the user. + */ + ALREADY_PENDING, // String + /** + * Secondary email is already a verified email for the user. + */ + ALREADY_OWNED_BY_USER, // String + /** + * User already has the maximum number of secondary emails allowed. + */ + REACHED_LIMIT, // String + /** + * A transient error occurred. Please try again later. + */ + TRANSIENT_ERROR, // String + /** + * An error occurred due to conflicting updates. Please try again later. + */ + TOO_MANY_UPDATES, // String + /** + * An unknown error occurred. + */ + UNKNOWN_ERROR, // String + /** + * Too many emails are being sent to this email address. Please try + * again later. + */ + RATE_LIMITED, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AddSecondaryEmailResult OTHER = new AddSecondaryEmailResult().withTag(Tag.OTHER); + + private Tag _tag; + private SecondaryEmail successValue; + private String unavailableValue; + private String alreadyPendingValue; + private String alreadyOwnedByUserValue; + private String reachedLimitValue; + private String transientErrorValue; + private String tooManyUpdatesValue; + private String unknownErrorValue; + private String rateLimitedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AddSecondaryEmailResult() { + } + + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param _tag Discriminating tag for this instance. + */ + private AddSecondaryEmailResult withTag(Tag _tag) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param successValue Describes a secondary email that was successfully + * added to a user. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndSuccess(Tag _tag, SecondaryEmail successValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param unavailableValue Secondary email is not available to be claimed + * by the user. Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndUnavailable(Tag _tag, String unavailableValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.unavailableValue = unavailableValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param alreadyPendingValue Secondary email is already a pending email + * for the user. Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndAlreadyPending(Tag _tag, String alreadyPendingValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.alreadyPendingValue = alreadyPendingValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param alreadyOwnedByUserValue Secondary email is already a verified + * email for the user. Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndAlreadyOwnedByUser(Tag _tag, String alreadyOwnedByUserValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.alreadyOwnedByUserValue = alreadyOwnedByUserValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param reachedLimitValue User already has the maximum number of + * secondary emails allowed. Must have length of at most 255, match + * pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndReachedLimit(Tag _tag, String reachedLimitValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.reachedLimitValue = reachedLimitValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param transientErrorValue A transient error occurred. Please try again + * later. Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndTransientError(Tag _tag, String transientErrorValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.transientErrorValue = transientErrorValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param tooManyUpdatesValue An error occurred due to conflicting updates. + * Please try again later. Must have length of at most 255, match + * pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndTooManyUpdates(Tag _tag, String tooManyUpdatesValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.tooManyUpdatesValue = tooManyUpdatesValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param unknownErrorValue An unknown error occurred. Must have length of + * at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndUnknownError(Tag _tag, String unknownErrorValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.unknownErrorValue = unknownErrorValue; + return result; + } + + /** + * Result of trying to add a secondary email to a user. 'success' is the + * only value indicating that a secondary email was successfully added to a + * user. The other values explain the type of error that occurred, and + * include the email for which the error occurred. + * + * @param rateLimitedValue Too many emails are being sent to this email + * address. Please try again later. Must have length of at most 255, + * match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AddSecondaryEmailResult withTagAndRateLimited(Tag _tag, String rateLimitedValue) { + AddSecondaryEmailResult result = new AddSecondaryEmailResult(); + result._tag = _tag; + result.rateLimitedValue = rateLimitedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AddSecondaryEmailResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#SUCCESS}. + * + *

Describes a secondary email that was successfully added to a user. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AddSecondaryEmailResult success(SecondaryEmail value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AddSecondaryEmailResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Describes a secondary email that was successfully added to a user. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link SecondaryEmail} value associated with this instance if + * {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public SecondaryEmail getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNAVAILABLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNAVAILABLE}, {@code false} otherwise. + */ + public boolean isUnavailable() { + return this._tag == Tag.UNAVAILABLE; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#UNAVAILABLE}. + * + *

Secondary email is not available to be claimed by the user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#UNAVAILABLE}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult unavailable(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndUnavailable(Tag.UNAVAILABLE, value); + } + + /** + * Secondary email is not available to be claimed by the user. + * + *

This instance must be tagged as {@link Tag#UNAVAILABLE}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUnavailable} is {@code true}. + * + * @throws IllegalStateException If {@link #isUnavailable} is {@code + * false}. + */ + public String getUnavailableValue() { + if (this._tag != Tag.UNAVAILABLE) { + throw new IllegalStateException("Invalid tag: required Tag.UNAVAILABLE, but was Tag." + this._tag.name()); + } + return unavailableValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALREADY_PENDING}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALREADY_PENDING}, {@code false} otherwise. + */ + public boolean isAlreadyPending() { + return this._tag == Tag.ALREADY_PENDING; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#ALREADY_PENDING}. + * + *

Secondary email is already a pending email for the user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#ALREADY_PENDING}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult alreadyPending(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndAlreadyPending(Tag.ALREADY_PENDING, value); + } + + /** + * Secondary email is already a pending email for the user. + * + *

This instance must be tagged as {@link Tag#ALREADY_PENDING}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAlreadyPending} is {@code true}. + * + * @throws IllegalStateException If {@link #isAlreadyPending} is {@code + * false}. + */ + public String getAlreadyPendingValue() { + if (this._tag != Tag.ALREADY_PENDING) { + throw new IllegalStateException("Invalid tag: required Tag.ALREADY_PENDING, but was Tag." + this._tag.name()); + } + return alreadyPendingValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALREADY_OWNED_BY_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALREADY_OWNED_BY_USER}, {@code false} otherwise. + */ + public boolean isAlreadyOwnedByUser() { + return this._tag == Tag.ALREADY_OWNED_BY_USER; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#ALREADY_OWNED_BY_USER}. + * + *

Secondary email is already a verified email for the user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#ALREADY_OWNED_BY_USER}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult alreadyOwnedByUser(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndAlreadyOwnedByUser(Tag.ALREADY_OWNED_BY_USER, value); + } + + /** + * Secondary email is already a verified email for the user. + * + *

This instance must be tagged as {@link Tag#ALREADY_OWNED_BY_USER}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAlreadyOwnedByUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isAlreadyOwnedByUser} is {@code + * false}. + */ + public String getAlreadyOwnedByUserValue() { + if (this._tag != Tag.ALREADY_OWNED_BY_USER) { + throw new IllegalStateException("Invalid tag: required Tag.ALREADY_OWNED_BY_USER, but was Tag." + this._tag.name()); + } + return alreadyOwnedByUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REACHED_LIMIT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REACHED_LIMIT}, {@code false} otherwise. + */ + public boolean isReachedLimit() { + return this._tag == Tag.REACHED_LIMIT; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#REACHED_LIMIT}. + * + *

User already has the maximum number of secondary emails allowed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#REACHED_LIMIT}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult reachedLimit(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndReachedLimit(Tag.REACHED_LIMIT, value); + } + + /** + * User already has the maximum number of secondary emails allowed. + * + *

This instance must be tagged as {@link Tag#REACHED_LIMIT}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isReachedLimit} is {@code true}. + * + * @throws IllegalStateException If {@link #isReachedLimit} is {@code + * false}. + */ + public String getReachedLimitValue() { + if (this._tag != Tag.REACHED_LIMIT) { + throw new IllegalStateException("Invalid tag: required Tag.REACHED_LIMIT, but was Tag." + this._tag.name()); + } + return reachedLimitValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TRANSIENT_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TRANSIENT_ERROR}, {@code false} otherwise. + */ + public boolean isTransientError() { + return this._tag == Tag.TRANSIENT_ERROR; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#TRANSIENT_ERROR}. + * + *

A transient error occurred. Please try again later.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#TRANSIENT_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult transientError(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndTransientError(Tag.TRANSIENT_ERROR, value); + } + + /** + * A transient error occurred. Please try again later. + * + *

This instance must be tagged as {@link Tag#TRANSIENT_ERROR}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTransientError} is {@code true}. + * + * @throws IllegalStateException If {@link #isTransientError} is {@code + * false}. + */ + public String getTransientErrorValue() { + if (this._tag != Tag.TRANSIENT_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.TRANSIENT_ERROR, but was Tag." + this._tag.name()); + } + return transientErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_UPDATES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_UPDATES}, {@code false} otherwise. + */ + public boolean isTooManyUpdates() { + return this._tag == Tag.TOO_MANY_UPDATES; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#TOO_MANY_UPDATES}. + * + *

An error occurred due to conflicting updates. Please try again later. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#TOO_MANY_UPDATES}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult tooManyUpdates(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndTooManyUpdates(Tag.TOO_MANY_UPDATES, value); + } + + /** + * An error occurred due to conflicting updates. Please try again later. + * + *

This instance must be tagged as {@link Tag#TOO_MANY_UPDATES}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTooManyUpdates} is {@code true}. + * + * @throws IllegalStateException If {@link #isTooManyUpdates} is {@code + * false}. + */ + public String getTooManyUpdatesValue() { + if (this._tag != Tag.TOO_MANY_UPDATES) { + throw new IllegalStateException("Invalid tag: required Tag.TOO_MANY_UPDATES, but was Tag." + this._tag.name()); + } + return tooManyUpdatesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNKNOWN_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNKNOWN_ERROR}, {@code false} otherwise. + */ + public boolean isUnknownError() { + return this._tag == Tag.UNKNOWN_ERROR; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#UNKNOWN_ERROR}. + * + *

An unknown error occurred.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#UNKNOWN_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult unknownError(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndUnknownError(Tag.UNKNOWN_ERROR, value); + } + + /** + * An unknown error occurred. + * + *

This instance must be tagged as {@link Tag#UNKNOWN_ERROR}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUnknownError} is {@code true}. + * + * @throws IllegalStateException If {@link #isUnknownError} is {@code + * false}. + */ + public String getUnknownErrorValue() { + if (this._tag != Tag.UNKNOWN_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.UNKNOWN_ERROR, but was Tag." + this._tag.name()); + } + return unknownErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RATE_LIMITED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RATE_LIMITED}, {@code false} otherwise. + */ + public boolean isRateLimited() { + return this._tag == Tag.RATE_LIMITED; + } + + /** + * Returns an instance of {@code AddSecondaryEmailResult} that has its tag + * set to {@link Tag#RATE_LIMITED}. + * + *

Too many emails are being sent to this email address. Please try + * again later.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AddSecondaryEmailResult} with its tag set to + * {@link Tag#RATE_LIMITED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static AddSecondaryEmailResult rateLimited(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new AddSecondaryEmailResult().withTagAndRateLimited(Tag.RATE_LIMITED, value); + } + + /** + * Too many emails are being sent to this email address. Please try again + * later. + * + *

This instance must be tagged as {@link Tag#RATE_LIMITED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isRateLimited} is {@code true}. + * + * @throws IllegalStateException If {@link #isRateLimited} is {@code + * false}. + */ + public String getRateLimitedValue() { + if (this._tag != Tag.RATE_LIMITED) { + throw new IllegalStateException("Invalid tag: required Tag.RATE_LIMITED, but was Tag." + this._tag.name()); + } + return rateLimitedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.unavailableValue, + this.alreadyPendingValue, + this.alreadyOwnedByUserValue, + this.reachedLimitValue, + this.transientErrorValue, + this.tooManyUpdatesValue, + this.unknownErrorValue, + this.rateLimitedValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AddSecondaryEmailResult) { + AddSecondaryEmailResult other = (AddSecondaryEmailResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case UNAVAILABLE: + return (this.unavailableValue == other.unavailableValue) || (this.unavailableValue.equals(other.unavailableValue)); + case ALREADY_PENDING: + return (this.alreadyPendingValue == other.alreadyPendingValue) || (this.alreadyPendingValue.equals(other.alreadyPendingValue)); + case ALREADY_OWNED_BY_USER: + return (this.alreadyOwnedByUserValue == other.alreadyOwnedByUserValue) || (this.alreadyOwnedByUserValue.equals(other.alreadyOwnedByUserValue)); + case REACHED_LIMIT: + return (this.reachedLimitValue == other.reachedLimitValue) || (this.reachedLimitValue.equals(other.reachedLimitValue)); + case TRANSIENT_ERROR: + return (this.transientErrorValue == other.transientErrorValue) || (this.transientErrorValue.equals(other.transientErrorValue)); + case TOO_MANY_UPDATES: + return (this.tooManyUpdatesValue == other.tooManyUpdatesValue) || (this.tooManyUpdatesValue.equals(other.tooManyUpdatesValue)); + case UNKNOWN_ERROR: + return (this.unknownErrorValue == other.unknownErrorValue) || (this.unknownErrorValue.equals(other.unknownErrorValue)); + case RATE_LIMITED: + return (this.rateLimitedValue == other.rateLimitedValue) || (this.rateLimitedValue.equals(other.rateLimitedValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddSecondaryEmailResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + SecondaryEmail.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case UNAVAILABLE: { + g.writeStartObject(); + writeTag("unavailable", g); + g.writeFieldName("unavailable"); + StoneSerializers.string().serialize(value.unavailableValue, g); + g.writeEndObject(); + break; + } + case ALREADY_PENDING: { + g.writeStartObject(); + writeTag("already_pending", g); + g.writeFieldName("already_pending"); + StoneSerializers.string().serialize(value.alreadyPendingValue, g); + g.writeEndObject(); + break; + } + case ALREADY_OWNED_BY_USER: { + g.writeStartObject(); + writeTag("already_owned_by_user", g); + g.writeFieldName("already_owned_by_user"); + StoneSerializers.string().serialize(value.alreadyOwnedByUserValue, g); + g.writeEndObject(); + break; + } + case REACHED_LIMIT: { + g.writeStartObject(); + writeTag("reached_limit", g); + g.writeFieldName("reached_limit"); + StoneSerializers.string().serialize(value.reachedLimitValue, g); + g.writeEndObject(); + break; + } + case TRANSIENT_ERROR: { + g.writeStartObject(); + writeTag("transient_error", g); + g.writeFieldName("transient_error"); + StoneSerializers.string().serialize(value.transientErrorValue, g); + g.writeEndObject(); + break; + } + case TOO_MANY_UPDATES: { + g.writeStartObject(); + writeTag("too_many_updates", g); + g.writeFieldName("too_many_updates"); + StoneSerializers.string().serialize(value.tooManyUpdatesValue, g); + g.writeEndObject(); + break; + } + case UNKNOWN_ERROR: { + g.writeStartObject(); + writeTag("unknown_error", g); + g.writeFieldName("unknown_error"); + StoneSerializers.string().serialize(value.unknownErrorValue, g); + g.writeEndObject(); + break; + } + case RATE_LIMITED: { + g.writeStartObject(); + writeTag("rate_limited", g); + g.writeFieldName("rate_limited"); + StoneSerializers.string().serialize(value.rateLimitedValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AddSecondaryEmailResult deserialize(JsonParser p) throws IOException, JsonParseException { + AddSecondaryEmailResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + SecondaryEmail fieldValue = null; + fieldValue = SecondaryEmail.Serializer.INSTANCE.deserialize(p, true); + value = AddSecondaryEmailResult.success(fieldValue); + } + else if ("unavailable".equals(tag)) { + String fieldValue = null; + expectField("unavailable", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.unavailable(fieldValue); + } + else if ("already_pending".equals(tag)) { + String fieldValue = null; + expectField("already_pending", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.alreadyPending(fieldValue); + } + else if ("already_owned_by_user".equals(tag)) { + String fieldValue = null; + expectField("already_owned_by_user", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.alreadyOwnedByUser(fieldValue); + } + else if ("reached_limit".equals(tag)) { + String fieldValue = null; + expectField("reached_limit", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.reachedLimit(fieldValue); + } + else if ("transient_error".equals(tag)) { + String fieldValue = null; + expectField("transient_error", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.transientError(fieldValue); + } + else if ("too_many_updates".equals(tag)) { + String fieldValue = null; + expectField("too_many_updates", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.tooManyUpdates(fieldValue); + } + else if ("unknown_error".equals(tag)) { + String fieldValue = null; + expectField("unknown_error", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.unknownError(fieldValue); + } + else if ("rate_limited".equals(tag)) { + String fieldValue = null; + expectField("rate_limited", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = AddSecondaryEmailResult.rateLimited(fieldValue); + } + else { + value = AddSecondaryEmailResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsArg.java new file mode 100644 index 000000000..aa24d8aad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class AddSecondaryEmailsArg { + // struct team.AddSecondaryEmailsArg (team_secondary_mails.stone) + + @Nonnull + protected final List newSecondaryEmails; + + /** + * + * @param newSecondaryEmails List of users and secondary emails to add. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddSecondaryEmailsArg(@Nonnull List newSecondaryEmails) { + if (newSecondaryEmails == null) { + throw new IllegalArgumentException("Required value for 'newSecondaryEmails' is null"); + } + for (UserSecondaryEmailsArg x : newSecondaryEmails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'newSecondaryEmails' is null"); + } + } + this.newSecondaryEmails = newSecondaryEmails; + } + + /** + * List of users and secondary emails to add. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getNewSecondaryEmails() { + return newSecondaryEmails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newSecondaryEmails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddSecondaryEmailsArg other = (AddSecondaryEmailsArg) obj; + return (this.newSecondaryEmails == other.newSecondaryEmails) || (this.newSecondaryEmails.equals(other.newSecondaryEmails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddSecondaryEmailsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_secondary_emails"); + StoneSerializers.list(UserSecondaryEmailsArg.Serializer.INSTANCE).serialize(value.newSecondaryEmails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddSecondaryEmailsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddSecondaryEmailsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_newSecondaryEmails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_secondary_emails".equals(field)) { + f_newSecondaryEmails = StoneSerializers.list(UserSecondaryEmailsArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newSecondaryEmails == null) { + throw new JsonParseException(p, "Required field \"new_secondary_emails\" missing."); + } + value = new AddSecondaryEmailsArg(f_newSecondaryEmails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsError.java new file mode 100644 index 000000000..492a6838c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsError.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned when adding secondary emails fails. + */ +public enum AddSecondaryEmailsError { + // union team.AddSecondaryEmailsError (team_secondary_mails.stone) + /** + * Secondary emails are disabled for the team. + */ + SECONDARY_EMAILS_DISABLED, + /** + * A maximum of 20 secondary emails can be added in a single call. + */ + TOO_MANY_EMAILS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddSecondaryEmailsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case SECONDARY_EMAILS_DISABLED: { + g.writeString("secondary_emails_disabled"); + break; + } + case TOO_MANY_EMAILS: { + g.writeString("too_many_emails"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AddSecondaryEmailsError deserialize(JsonParser p) throws IOException, JsonParseException { + AddSecondaryEmailsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("secondary_emails_disabled".equals(tag)) { + value = AddSecondaryEmailsError.SECONDARY_EMAILS_DISABLED; + } + else if ("too_many_emails".equals(tag)) { + value = AddSecondaryEmailsError.TOO_MANY_EMAILS; + } + else { + value = AddSecondaryEmailsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsErrorException.java new file mode 100644 index 000000000..edbb18056 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * AddSecondaryEmailsError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersSecondaryEmailsAdd(java.util.List)}.

+ */ +public class AddSecondaryEmailsErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/secondary_emails/add + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersSecondaryEmailsAdd(java.util.List)}. + */ + public final AddSecondaryEmailsError errorValue; + + public AddSecondaryEmailsErrorException(String routeName, String requestId, LocalizedText userMessage, AddSecondaryEmailsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsResult.java new file mode 100644 index 000000000..53368309f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsResult.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class AddSecondaryEmailsResult { + // struct team.AddSecondaryEmailsResult (team_secondary_mails.stone) + + @Nonnull + protected final List results; + + /** + * + * @param results List of users and secondary email results. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddSecondaryEmailsResult(@Nonnull List results) { + if (results == null) { + throw new IllegalArgumentException("Required value for 'results' is null"); + } + for (UserAddResult x : results) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'results' is null"); + } + } + this.results = results; + } + + /** + * List of users and secondary email results. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getResults() { + return results; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.results + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AddSecondaryEmailsResult other = (AddSecondaryEmailsResult) obj; + return (this.results == other.results) || (this.results.equals(other.results)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AddSecondaryEmailsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("results"); + StoneSerializers.list(UserAddResult.Serializer.INSTANCE).serialize(value.results, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AddSecondaryEmailsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AddSecondaryEmailsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_results = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("results".equals(field)) { + f_results = StoneSerializers.list(UserAddResult.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_results == null) { + throw new JsonParseException(p, "Required field \"results\" missing."); + } + value = new AddSecondaryEmailsResult(f_results); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AdminTier.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AdminTier.java new file mode 100644 index 000000000..56867074e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AdminTier.java @@ -0,0 +1,114 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Describes which team-related admin permissions a user has. + */ +public enum AdminTier { + // union team.AdminTier (team_members.stone) + /** + * User is an administrator of the team - has all permissions. + */ + TEAM_ADMIN, + /** + * User can do most user provisioning, de-provisioning and management. + */ + USER_MANAGEMENT_ADMIN, + /** + * User can do a limited set of common support tasks for existing users. + * Note: Dropbox is adding new types of admin roles; these may display as + * support_admin. + */ + SUPPORT_ADMIN, + /** + * User is not an admin of the team. + */ + MEMBER_ONLY; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminTier value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TEAM_ADMIN: { + g.writeString("team_admin"); + break; + } + case USER_MANAGEMENT_ADMIN: { + g.writeString("user_management_admin"); + break; + } + case SUPPORT_ADMIN: { + g.writeString("support_admin"); + break; + } + case MEMBER_ONLY: { + g.writeString("member_only"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public AdminTier deserialize(JsonParser p) throws IOException, JsonParseException { + AdminTier value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team_admin".equals(tag)) { + value = AdminTier.TEAM_ADMIN; + } + else if ("user_management_admin".equals(tag)) { + value = AdminTier.USER_MANAGEMENT_ADMIN; + } + else if ("support_admin".equals(tag)) { + value = AdminTier.SUPPORT_ADMIN; + } + else if ("member_only".equals(tag)) { + value = AdminTier.MEMBER_ONLY; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ApiApp.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ApiApp.java new file mode 100644 index 000000000..a724cc9d2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ApiApp.java @@ -0,0 +1,390 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information on linked third party applications. + */ +public class ApiApp { + // struct team.ApiApp (team_linked_apps.stone) + + @Nonnull + protected final String appId; + @Nonnull + protected final String appName; + @Nullable + protected final String publisher; + @Nullable + protected final String publisherUrl; + @Nullable + protected final Date linked; + protected final boolean isAppFolder; + + /** + * Information on linked third party applications. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param appId The application unique id. Must not be {@code null}. + * @param appName The application name. Must not be {@code null}. + * @param isAppFolder Whether the linked application uses a dedicated + * folder. + * @param publisher The application publisher name. + * @param publisherUrl The publisher's URL. + * @param linked The time this application was linked. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ApiApp(@Nonnull String appId, @Nonnull String appName, boolean isAppFolder, @Nullable String publisher, @Nullable String publisherUrl, @Nullable Date linked) { + if (appId == null) { + throw new IllegalArgumentException("Required value for 'appId' is null"); + } + this.appId = appId; + if (appName == null) { + throw new IllegalArgumentException("Required value for 'appName' is null"); + } + this.appName = appName; + this.publisher = publisher; + this.publisherUrl = publisherUrl; + this.linked = LangUtil.truncateMillis(linked); + this.isAppFolder = isAppFolder; + } + + /** + * Information on linked third party applications. + * + *

The default values for unset fields will be used.

+ * + * @param appId The application unique id. Must not be {@code null}. + * @param appName The application name. Must not be {@code null}. + * @param isAppFolder Whether the linked application uses a dedicated + * folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ApiApp(@Nonnull String appId, @Nonnull String appName, boolean isAppFolder) { + this(appId, appName, isAppFolder, null, null, null); + } + + /** + * The application unique id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAppId() { + return appId; + } + + /** + * The application name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAppName() { + return appName; + } + + /** + * Whether the linked application uses a dedicated folder. + * + * @return value for this field. + */ + public boolean getIsAppFolder() { + return isAppFolder; + } + + /** + * The application publisher name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPublisher() { + return publisher; + } + + /** + * The publisher's URL. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPublisherUrl() { + return publisherUrl; + } + + /** + * The time this application was linked. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getLinked() { + return linked; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param appId The application unique id. Must not be {@code null}. + * @param appName The application name. Must not be {@code null}. + * @param isAppFolder Whether the linked application uses a dedicated + * folder. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String appId, String appName, boolean isAppFolder) { + return new Builder(appId, appName, isAppFolder); + } + + /** + * Builder for {@link ApiApp}. + */ + public static class Builder { + protected final String appId; + protected final String appName; + protected final boolean isAppFolder; + + protected String publisher; + protected String publisherUrl; + protected Date linked; + + protected Builder(String appId, String appName, boolean isAppFolder) { + if (appId == null) { + throw new IllegalArgumentException("Required value for 'appId' is null"); + } + this.appId = appId; + if (appName == null) { + throw new IllegalArgumentException("Required value for 'appName' is null"); + } + this.appName = appName; + this.isAppFolder = isAppFolder; + this.publisher = null; + this.publisherUrl = null; + this.linked = null; + } + + /** + * Set value for optional field. + * + * @param publisher The application publisher name. + * + * @return this builder + */ + public Builder withPublisher(String publisher) { + this.publisher = publisher; + return this; + } + + /** + * Set value for optional field. + * + * @param publisherUrl The publisher's URL. + * + * @return this builder + */ + public Builder withPublisherUrl(String publisherUrl) { + this.publisherUrl = publisherUrl; + return this; + } + + /** + * Set value for optional field. + * + * @param linked The time this application was linked. + * + * @return this builder + */ + public Builder withLinked(Date linked) { + this.linked = LangUtil.truncateMillis(linked); + return this; + } + + /** + * Builds an instance of {@link ApiApp} configured with this builder's + * values + * + * @return new instance of {@link ApiApp} + */ + public ApiApp build() { + return new ApiApp(appId, appName, isAppFolder, publisher, publisherUrl, linked); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appId, + this.appName, + this.publisher, + this.publisherUrl, + this.linked, + this.isAppFolder + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ApiApp other = (ApiApp) obj; + return ((this.appId == other.appId) || (this.appId.equals(other.appId))) + && ((this.appName == other.appName) || (this.appName.equals(other.appName))) + && (this.isAppFolder == other.isAppFolder) + && ((this.publisher == other.publisher) || (this.publisher != null && this.publisher.equals(other.publisher))) + && ((this.publisherUrl == other.publisherUrl) || (this.publisherUrl != null && this.publisherUrl.equals(other.publisherUrl))) + && ((this.linked == other.linked) || (this.linked != null && this.linked.equals(other.linked))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ApiApp value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("app_id"); + StoneSerializers.string().serialize(value.appId, g); + g.writeFieldName("app_name"); + StoneSerializers.string().serialize(value.appName, g); + g.writeFieldName("is_app_folder"); + StoneSerializers.boolean_().serialize(value.isAppFolder, g); + if (value.publisher != null) { + g.writeFieldName("publisher"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.publisher, g); + } + if (value.publisherUrl != null) { + g.writeFieldName("publisher_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.publisherUrl, g); + } + if (value.linked != null) { + g.writeFieldName("linked"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.linked, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ApiApp deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ApiApp value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_appId = null; + String f_appName = null; + Boolean f_isAppFolder = null; + String f_publisher = null; + String f_publisherUrl = null; + Date f_linked = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_id".equals(field)) { + f_appId = StoneSerializers.string().deserialize(p); + } + else if ("app_name".equals(field)) { + f_appName = StoneSerializers.string().deserialize(p); + } + else if ("is_app_folder".equals(field)) { + f_isAppFolder = StoneSerializers.boolean_().deserialize(p); + } + else if ("publisher".equals(field)) { + f_publisher = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("publisher_url".equals(field)) { + f_publisherUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("linked".equals(field)) { + f_linked = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_appId == null) { + throw new JsonParseException(p, "Required field \"app_id\" missing."); + } + if (f_appName == null) { + throw new JsonParseException(p, "Required field \"app_name\" missing."); + } + if (f_isAppFolder == null) { + throw new JsonParseException(p, "Required field \"is_app_folder\" missing."); + } + value = new ApiApp(f_appId, f_appName, f_isAppFolder, f_publisher, f_publisherUrl, f_linked); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/BaseDfbReport.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/BaseDfbReport.java new file mode 100644 index 000000000..f1376b63e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/BaseDfbReport.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Base report structure. + */ +public class BaseDfbReport { + // struct team.BaseDfbReport (team_reports.stone) + + @Nonnull + protected final String startDate; + + /** + * Base report structure. + * + * @param startDate First date present in the results as 'YYYY-MM-DD' or + * None. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BaseDfbReport(@Nonnull String startDate) { + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = startDate; + } + + /** + * First date present in the results as 'YYYY-MM-DD' or None. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getStartDate() { + return startDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BaseDfbReport other = (BaseDfbReport) obj; + return (this.startDate == other.startDate) || (this.startDate.equals(other.startDate)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BaseDfbReport value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.string().serialize(value.startDate, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BaseDfbReport deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BaseDfbReport value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_startDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + value = new BaseDfbReport(f_startDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaError.java new file mode 100644 index 000000000..60dffe54a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaError.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned when getting member custom quota. + */ +public enum CustomQuotaError { + // union team.CustomQuotaError (team_member_space_limits.stone) + /** + * A maximum of 1000 users can be set for a single call. + */ + TOO_MANY_USERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CustomQuotaError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TOO_MANY_USERS: { + g.writeString("too_many_users"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CustomQuotaError deserialize(JsonParser p) throws IOException, JsonParseException { + CustomQuotaError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("too_many_users".equals(tag)) { + value = CustomQuotaError.TOO_MANY_USERS; + } + else { + value = CustomQuotaError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaErrorException.java new file mode 100644 index 000000000..d92c423f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaErrorException.java @@ -0,0 +1,40 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link CustomQuotaError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#memberSpaceLimitsGetCustomQuota(java.util.List)} and + * {@link + * DbxTeamTeamRequests#memberSpaceLimitsRemoveCustomQuota(java.util.List)}.

+ */ +public class CustomQuotaErrorException extends DbxApiException { + // exception for routes: + // 2/team/member_space_limits/get_custom_quota + // 2/team/member_space_limits/remove_custom_quota + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#memberSpaceLimitsGetCustomQuota(java.util.List)} and + * {@link + * DbxTeamTeamRequests#memberSpaceLimitsRemoveCustomQuota(java.util.List)}. + */ + public final CustomQuotaError errorValue; + + public CustomQuotaErrorException(String routeName, String requestId, LocalizedText userMessage, CustomQuotaError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaResult.java new file mode 100644 index 000000000..0b8fd8bbb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaResult.java @@ -0,0 +1,372 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * User custom quota. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class CustomQuotaResult { + // union team.CustomQuotaResult (team_member_space_limits.stone) + + /** + * Discriminating tag type for {@link CustomQuotaResult}. + */ + public enum Tag { + /** + * User's custom quota. + */ + SUCCESS, // UserCustomQuotaResult + /** + * Invalid user (not in team). + */ + INVALID_USER, // UserSelectorArg + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final CustomQuotaResult OTHER = new CustomQuotaResult().withTag(Tag.OTHER); + + private Tag _tag; + private UserCustomQuotaResult successValue; + private UserSelectorArg invalidUserValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private CustomQuotaResult() { + } + + + /** + * User custom quota. + * + * @param _tag Discriminating tag for this instance. + */ + private CustomQuotaResult withTag(Tag _tag) { + CustomQuotaResult result = new CustomQuotaResult(); + result._tag = _tag; + return result; + } + + /** + * User custom quota. + * + * @param successValue User's custom quota. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CustomQuotaResult withTagAndSuccess(Tag _tag, UserCustomQuotaResult successValue) { + CustomQuotaResult result = new CustomQuotaResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * User custom quota. + * + * @param invalidUserValue Invalid user (not in team). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private CustomQuotaResult withTagAndInvalidUser(Tag _tag, UserSelectorArg invalidUserValue) { + CustomQuotaResult result = new CustomQuotaResult(); + result._tag = _tag; + result.invalidUserValue = invalidUserValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code CustomQuotaResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code CustomQuotaResult} that has its tag set to + * {@link Tag#SUCCESS}. + * + *

User's custom quota.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CustomQuotaResult} with its tag set to {@link + * Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CustomQuotaResult success(UserCustomQuotaResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CustomQuotaResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * User's custom quota. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link UserCustomQuotaResult} value associated with this + * instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public UserCustomQuotaResult getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_USER}, {@code false} otherwise. + */ + public boolean isInvalidUser() { + return this._tag == Tag.INVALID_USER; + } + + /** + * Returns an instance of {@code CustomQuotaResult} that has its tag set to + * {@link Tag#INVALID_USER}. + * + *

Invalid user (not in team).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code CustomQuotaResult} with its tag set to {@link + * Tag#INVALID_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static CustomQuotaResult invalidUser(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new CustomQuotaResult().withTagAndInvalidUser(Tag.INVALID_USER, value); + } + + /** + * Invalid user (not in team). + * + *

This instance must be tagged as {@link Tag#INVALID_USER}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isInvalidUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidUser} is {@code + * false}. + */ + public UserSelectorArg getInvalidUserValue() { + if (this._tag != Tag.INVALID_USER) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_USER, but was Tag." + this._tag.name()); + } + return invalidUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.invalidUserValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof CustomQuotaResult) { + CustomQuotaResult other = (CustomQuotaResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case INVALID_USER: + return (this.invalidUserValue == other.invalidUserValue) || (this.invalidUserValue.equals(other.invalidUserValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CustomQuotaResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + UserCustomQuotaResult.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case INVALID_USER: { + g.writeStartObject(); + writeTag("invalid_user", g); + g.writeFieldName("invalid_user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.invalidUserValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CustomQuotaResult deserialize(JsonParser p) throws IOException, JsonParseException { + CustomQuotaResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + UserCustomQuotaResult fieldValue = null; + fieldValue = UserCustomQuotaResult.Serializer.INSTANCE.deserialize(p, true); + value = CustomQuotaResult.success(fieldValue); + } + else if ("invalid_user".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("invalid_user", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = CustomQuotaResult.invalidUser(fieldValue); + } + else { + value = CustomQuotaResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaUsersArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaUsersArg.java new file mode 100644 index 000000000..cd0c1ad06 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/CustomQuotaUsersArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class CustomQuotaUsersArg { + // struct team.CustomQuotaUsersArg (team_member_space_limits.stone) + + @Nonnull + protected final List users; + + /** + * + * @param users List of users. Must not contain a {@code null} item and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CustomQuotaUsersArg(@Nonnull List users) { + if (users == null) { + throw new IllegalArgumentException("Required value for 'users' is null"); + } + for (UserSelectorArg x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + this.users = users; + } + + /** + * List of users. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsers() { + return users; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.users + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CustomQuotaUsersArg other = (CustomQuotaUsersArg) obj; + return (this.users == other.users) || (this.users.equals(other.users)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CustomQuotaUsersArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("users"); + StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).serialize(value.users, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CustomQuotaUsersArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CustomQuotaUsersArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_users = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("users".equals(field)) { + f_users = StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + value = new CustomQuotaUsersArg(f_users); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRange.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRange.java new file mode 100644 index 000000000..f2ea488ca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRange.java @@ -0,0 +1,244 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Input arguments that can be provided for most reports. + */ +class DateRange { + // struct team.DateRange (team_reports.stone) + + @Nullable + protected final Date startDate; + @Nullable + protected final Date endDate; + + /** + * Input arguments that can be provided for most reports. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param startDate Optional starting date (inclusive). If start_date is + * None or too long ago, this field will be set to 6 months ago. + * @param endDate Optional ending date (exclusive). + */ + public DateRange(@Nullable Date startDate, @Nullable Date endDate) { + this.startDate = LangUtil.truncateMillis(startDate); + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * Input arguments that can be provided for most reports. + * + *

The default values for unset fields will be used.

+ */ + public DateRange() { + this(null, null); + } + + /** + * Optional starting date (inclusive). If start_date is None or too long + * ago, this field will be set to 6 months ago. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getStartDate() { + return startDate; + } + + /** + * Optional ending date (exclusive). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getEndDate() { + return endDate; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link DateRange}. + */ + public static class Builder { + + protected Date startDate; + protected Date endDate; + + protected Builder() { + this.startDate = null; + this.endDate = null; + } + + /** + * Set value for optional field. + * + * @param startDate Optional starting date (inclusive). If start_date + * is None or too long ago, this field will be set to 6 months ago. + * + * @return this builder + */ + public Builder withStartDate(Date startDate) { + this.startDate = LangUtil.truncateMillis(startDate); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate Optional ending date (exclusive). + * + * @return this builder + */ + public Builder withEndDate(Date endDate) { + this.endDate = LangUtil.truncateMillis(endDate); + return this; + } + + /** + * Builds an instance of {@link DateRange} configured with this + * builder's values + * + * @return new instance of {@link DateRange} + */ + public DateRange build() { + return new DateRange(startDate, endDate); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DateRange other = (DateRange) obj; + return ((this.startDate == other.startDate) || (this.startDate != null && this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate != null && this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DateRange value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.startDate != null) { + g.writeFieldName("start_date"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.startDate, g); + } + if (value.endDate != null) { + g.writeFieldName("end_date"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.endDate, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DateRange deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DateRange value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DateRange(f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRangeError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRangeError.java new file mode 100644 index 000000000..4cb736b42 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRangeError.java @@ -0,0 +1,76 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Errors that can originate from problems in input arguments to reports. + */ +public enum DateRangeError { + // union team.DateRangeError (team_reports.stone) + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DateRangeError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + default: { + g.writeString("other"); + } + } + } + + @Override + public DateRangeError deserialize(JsonParser p) throws IOException, JsonParseException { + DateRangeError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else { + value = DateRangeError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRangeErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRangeErrorException.java new file mode 100644 index 000000000..7c15acccf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DateRangeErrorException.java @@ -0,0 +1,43 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link DateRangeError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#reportsGetActivity}, {@link + * DbxTeamTeamRequests#reportsGetDevices}, {@link + * DbxTeamTeamRequests#reportsGetMembership}, and {@link + * DbxTeamTeamRequests#reportsGetStorage}.

+ */ +public class DateRangeErrorException extends DbxApiException { + // exception for routes: + // 2/team/reports/get_activity + // 2/team/reports/get_devices + // 2/team/reports/get_membership + // 2/team/reports/get_storage + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#reportsGetActivity}, + * {@link DbxTeamTeamRequests#reportsGetDevices}, {@link + * DbxTeamTeamRequests#reportsGetMembership}, and {@link + * DbxTeamTeamRequests#reportsGetStorage}. + */ + public final DateRangeError errorValue; + + public DateRangeErrorException(String routeName, String requestId, LocalizedText userMessage, DateRangeError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DbxTeamTeamRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DbxTeamTeamRequests.java new file mode 100644 index 000000000..4c1bec26b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DbxTeamTeamRequests.java @@ -0,0 +1,4987 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone, team_secondary_mails.stone, team_members.stone, team_linked_apps.stone, team_reports.stone, team_folders.stone, team_member_space_limits.stone, team.stone, team_groups.stone, team_legal_holds.stone, team_namespaces.stone, team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; +import com.dropbox.core.v2.account.PhotoSourceArg; +import com.dropbox.core.v2.async.LaunchEmptyResult; +import com.dropbox.core.v2.async.PollArg; +import com.dropbox.core.v2.async.PollEmptyResult; +import com.dropbox.core.v2.async.PollError; +import com.dropbox.core.v2.async.PollErrorException; +import com.dropbox.core.v2.fileproperties.AddTemplateArg; +import com.dropbox.core.v2.fileproperties.AddTemplateResult; +import com.dropbox.core.v2.fileproperties.GetTemplateArg; +import com.dropbox.core.v2.fileproperties.GetTemplateResult; +import com.dropbox.core.v2.fileproperties.ListTemplateResult; +import com.dropbox.core.v2.fileproperties.ModifyTemplateError; +import com.dropbox.core.v2.fileproperties.ModifyTemplateErrorException; +import com.dropbox.core.v2.fileproperties.PropertyFieldTemplate; +import com.dropbox.core.v2.fileproperties.TemplateError; +import com.dropbox.core.v2.fileproperties.TemplateErrorException; +import com.dropbox.core.v2.fileproperties.UpdateTemplateArg; +import com.dropbox.core.v2.fileproperties.UpdateTemplateResult; +import com.dropbox.core.v2.files.SyncSettingArg; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "team". + */ +public class DbxTeamTeamRequests { + // namespace team (team_devices.stone, team_secondary_mails.stone, team_members.stone, team_linked_apps.stone, team_reports.stone, team_folders.stone, team_member_space_limits.stone, team.stone, team_groups.stone, team_legal_holds.stone, team_namespaces.stone, team_sharing_allowlist.stone) + + private final DbxRawClientV2 client; + + public DbxTeamTeamRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/team/devices/list_member_devices + // + + /** + * List all device sessions of a team's member. + * + */ + ListMemberDevicesResult devicesListMemberDevices(ListMemberDevicesArg arg) throws ListMemberDevicesErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/devices/list_member_devices", + arg, + false, + ListMemberDevicesArg.Serializer.INSTANCE, + ListMemberDevicesResult.Serializer.INSTANCE, + ListMemberDevicesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListMemberDevicesErrorException("2/team/devices/list_member_devices", ex.getRequestId(), ex.getUserMessage(), (ListMemberDevicesError) ex.getErrorValue()); + } + } + + /** + * List all device sessions of a team's member. + * + *

The default values for the optional request parameters will be used. + * See {@link DevicesListMemberDevicesBuilder} for more details.

+ * + * @param teamMemberId The team's member id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMemberDevicesResult devicesListMemberDevices(String teamMemberId) throws ListMemberDevicesErrorException, DbxException { + ListMemberDevicesArg _arg = new ListMemberDevicesArg(teamMemberId); + return devicesListMemberDevices(_arg); + } + + /** + * List all device sessions of a team's member. + * + * @param teamMemberId The team's member id. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DevicesListMemberDevicesBuilder devicesListMemberDevicesBuilder(String teamMemberId) { + ListMemberDevicesArg.Builder argBuilder_ = ListMemberDevicesArg.newBuilder(teamMemberId); + return new DevicesListMemberDevicesBuilder(this, argBuilder_); + } + + // + // route 2/team/devices/list_members_devices + // + + /** + * List all device sessions of a team. Permission : Team member file access. + * + */ + ListMembersDevicesResult devicesListMembersDevices(ListMembersDevicesArg arg) throws ListMembersDevicesErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/devices/list_members_devices", + arg, + false, + ListMembersDevicesArg.Serializer.INSTANCE, + ListMembersDevicesResult.Serializer.INSTANCE, + ListMembersDevicesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListMembersDevicesErrorException("2/team/devices/list_members_devices", ex.getRequestId(), ex.getUserMessage(), (ListMembersDevicesError) ex.getErrorValue()); + } + } + + /** + * List all device sessions of a team. + * + *

Permission : Team member file access.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DevicesListMembersDevicesBuilder} for more details.

+ */ + public ListMembersDevicesResult devicesListMembersDevices() throws ListMembersDevicesErrorException, DbxException { + ListMembersDevicesArg _arg = new ListMembersDevicesArg(); + return devicesListMembersDevices(_arg); + } + + /** + * List all device sessions of a team. Permission : Team member file access. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public DevicesListMembersDevicesBuilder devicesListMembersDevicesBuilder() { + ListMembersDevicesArg.Builder argBuilder_ = ListMembersDevicesArg.newBuilder(); + return new DevicesListMembersDevicesBuilder(this, argBuilder_); + } + + // + // route 2/team/devices/list_team_devices + // + + /** + * List all device sessions of a team. Permission : Team member file access. + * + */ + ListTeamDevicesResult devicesListTeamDevices(ListTeamDevicesArg arg) throws ListTeamDevicesErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/devices/list_team_devices", + arg, + false, + ListTeamDevicesArg.Serializer.INSTANCE, + ListTeamDevicesResult.Serializer.INSTANCE, + ListTeamDevicesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListTeamDevicesErrorException("2/team/devices/list_team_devices", ex.getRequestId(), ex.getUserMessage(), (ListTeamDevicesError) ex.getErrorValue()); + } + } + + /** + * List all device sessions of a team. + * + *

Permission : Team member file access.

+ * + *

The default values for the optional request parameters will be used. + * See {@link DevicesListTeamDevicesBuilder} for more details.

+ * + * @deprecated use {@link DbxTeamTeamRequests#devicesListMembersDevices} + * instead. + */ + @Deprecated + public ListTeamDevicesResult devicesListTeamDevices() throws ListTeamDevicesErrorException, DbxException { + ListTeamDevicesArg _arg = new ListTeamDevicesArg(); + return devicesListTeamDevices(_arg); + } + + /** + * List all device sessions of a team. Permission : Team member file access. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @deprecated use {@link DbxTeamTeamRequests#devicesListMembersDevices} + * instead. + */ + @Deprecated + public DevicesListTeamDevicesBuilder devicesListTeamDevicesBuilder() { + ListTeamDevicesArg.Builder argBuilder_ = ListTeamDevicesArg.newBuilder(); + return new DevicesListTeamDevicesBuilder(this, argBuilder_); + } + + // + // route 2/team/devices/revoke_device_session + // + + /** + * Revoke a device session of a team's member. + * + */ + public void devicesRevokeDeviceSession(RevokeDeviceSessionArg arg) throws RevokeDeviceSessionErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/devices/revoke_device_session", + arg, + false, + RevokeDeviceSessionArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + RevokeDeviceSessionError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RevokeDeviceSessionErrorException("2/team/devices/revoke_device_session", ex.getRequestId(), ex.getUserMessage(), (RevokeDeviceSessionError) ex.getErrorValue()); + } + } + + // + // route 2/team/devices/revoke_device_session_batch + // + + /** + * Revoke a list of device sessions of team members. + * + */ + RevokeDeviceSessionBatchResult devicesRevokeDeviceSessionBatch(RevokeDeviceSessionBatchArg arg) throws RevokeDeviceSessionBatchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/devices/revoke_device_session_batch", + arg, + false, + RevokeDeviceSessionBatchArg.Serializer.INSTANCE, + RevokeDeviceSessionBatchResult.Serializer.INSTANCE, + RevokeDeviceSessionBatchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RevokeDeviceSessionBatchErrorException("2/team/devices/revoke_device_session_batch", ex.getRequestId(), ex.getUserMessage(), (RevokeDeviceSessionBatchError) ex.getErrorValue()); + } + } + + /** + * Revoke a list of device sessions of team members. + * + * @param revokeDevices Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeDeviceSessionBatchResult devicesRevokeDeviceSessionBatch(List revokeDevices) throws RevokeDeviceSessionBatchErrorException, DbxException { + RevokeDeviceSessionBatchArg _arg = new RevokeDeviceSessionBatchArg(revokeDevices); + return devicesRevokeDeviceSessionBatch(_arg); + } + + // + // route 2/team/features/get_values + // + + /** + * Get the values for one or more featues. This route allows you to check + * your account's capability for what feature you can access or what value + * you have for certain features. Permission : Team information. + * + */ + FeaturesGetValuesBatchResult featuresGetValues(FeaturesGetValuesBatchArg arg) throws FeaturesGetValuesBatchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/features/get_values", + arg, + false, + FeaturesGetValuesBatchArg.Serializer.INSTANCE, + FeaturesGetValuesBatchResult.Serializer.INSTANCE, + FeaturesGetValuesBatchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new FeaturesGetValuesBatchErrorException("2/team/features/get_values", ex.getRequestId(), ex.getUserMessage(), (FeaturesGetValuesBatchError) ex.getErrorValue()); + } + } + + /** + * Get the values for one or more featues. This route allows you to check + * your account's capability for what feature you can access or what value + * you have for certain features. + * + *

Permission : Team information.

+ * + * @param features A list of features in {@link Feature}. If the list is + * empty, this route will return {@link FeaturesGetValuesBatchError}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FeaturesGetValuesBatchResult featuresGetValues(List features) throws FeaturesGetValuesBatchErrorException, DbxException { + FeaturesGetValuesBatchArg _arg = new FeaturesGetValuesBatchArg(features); + return featuresGetValues(_arg); + } + + // + // route 2/team/get_info + // + + /** + * Retrieves information about a team. + */ + public TeamGetInfoResult getInfo() throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/get_info", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + TeamGetInfoResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"get_info\":" + ex.getErrorValue()); + } + } + + // + // route 2/team/groups/create + // + + /** + * Creates a new, empty group, with a requested name. Permission : Team + * member management. + * + * + * @return Full description of a group. + */ + GroupFullInfo groupsCreate(GroupCreateArg arg) throws GroupCreateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/create", + arg, + false, + GroupCreateArg.Serializer.INSTANCE, + GroupFullInfo.Serializer.INSTANCE, + GroupCreateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupCreateErrorException("2/team/groups/create", ex.getRequestId(), ex.getUserMessage(), (GroupCreateError) ex.getErrorValue()); + } + } + + /** + * Creates a new, empty group, with a requested name. + * + *

Permission : Team member management.

+ * + *

The default values for the optional request parameters will be used. + * See {@link GroupsCreateBuilder} for more details.

+ * + * @param groupName Group name. Must not be {@code null}. + * + * @return Full description of a group. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupFullInfo groupsCreate(String groupName) throws GroupCreateErrorException, DbxException { + GroupCreateArg _arg = new GroupCreateArg(groupName); + return groupsCreate(_arg); + } + + /** + * Creates a new, empty group, with a requested name. Permission : Team + * member management. + * + * @param groupName Group name. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsCreateBuilder groupsCreateBuilder(String groupName) { + GroupCreateArg.Builder argBuilder_ = GroupCreateArg.newBuilder(groupName); + return new GroupsCreateBuilder(this, argBuilder_); + } + + // + // route 2/team/groups/delete + // + + /** + * Deletes a group. The group is deleted immediately. However the revoking + * of group-owned resources may take additional time. Use the {@link + * DbxTeamTeamRequests#groupsJobStatusGet(String)} to determine whether this + * process has completed. Permission : Team member management. + * + * @param arg Argument for selecting a single group, either by group_id or + * by external group ID. + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + */ + public LaunchEmptyResult groupsDelete(GroupSelector arg) throws GroupDeleteErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/delete", + arg, + false, + GroupSelector.Serializer.INSTANCE, + LaunchEmptyResult.Serializer.INSTANCE, + GroupDeleteError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupDeleteErrorException("2/team/groups/delete", ex.getRequestId(), ex.getUserMessage(), (GroupDeleteError) ex.getErrorValue()); + } + } + + // + // route 2/team/groups/get_info + // + + /** + * Retrieves information about one or more groups. Note that the optional + * field {@link GroupFullInfo#getMembers} is not returned for + * system-managed groups. Permission : Team Information. + * + * @param arg Argument for selecting a list of groups, either by group_ids, + * or external group IDs. + */ + public List groupsGetInfo(GroupsSelector arg) throws GroupsGetInfoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/get_info", + arg, + false, + GroupsSelector.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(GroupsGetInfoItem.Serializer.INSTANCE), + GroupsGetInfoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupsGetInfoErrorException("2/team/groups/get_info", ex.getRequestId(), ex.getUserMessage(), (GroupsGetInfoError) ex.getErrorValue()); + } + } + + // + // route 2/team/groups/job_status/get + // + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#groupsDelete}, {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} , or + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)} use + * this method to poll the status of granting/revoking group members' access + * to group-owned resources. Permission : Team member management. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + * + * @return Result returned by methods that poll for the status of an + * asynchronous job. Upon completion of the job, no additional + * information is returned. + */ + PollEmptyResult groupsJobStatusGet(PollArg arg) throws GroupsPollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/job_status/get", + arg, + false, + PollArg.Serializer.INSTANCE, + PollEmptyResult.Serializer.INSTANCE, + GroupsPollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupsPollErrorException("2/team/groups/job_status/get", ex.getRequestId(), ex.getUserMessage(), (GroupsPollError) ex.getErrorValue()); + } + } + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#groupsDelete}, {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} , or + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)} use + * this method to poll the status of granting/revoking group members' access + * to group-owned resources. + * + *

Permission : Team member management.

+ * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @return Result returned by methods that poll for the status of an + * asynchronous job. Upon completion of the job, no additional + * information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PollEmptyResult groupsJobStatusGet(String asyncJobId) throws GroupsPollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return groupsJobStatusGet(_arg); + } + + // + // route 2/team/groups/list + // + + /** + * Lists groups on a team. Permission : Team Information. + * + */ + GroupsListResult groupsList(GroupsListArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/list", + arg, + false, + GroupsListArg.Serializer.INSTANCE, + GroupsListResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"groups/list\":" + ex.getErrorValue()); + } + } + + /** + * Lists groups on a team. + * + *

Permission : Team Information.

+ * + *

The {@code limit} request parameter will default to {@code 1000L} + * (see {@link #groupsList(long)}).

+ */ + public GroupsListResult groupsList() throws DbxApiException, DbxException { + GroupsListArg _arg = new GroupsListArg(); + return groupsList(_arg); + } + + /** + * Lists groups on a team. + * + *

Permission : Team Information.

+ * + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsListResult groupsList(long limit) throws DbxApiException, DbxException { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + GroupsListArg _arg = new GroupsListArg(limit); + return groupsList(_arg); + } + + // + // route 2/team/groups/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#groupsList(long)}, use this to paginate through all + * groups. Permission : Team Information. + * + */ + GroupsListResult groupsListContinue(GroupsListContinueArg arg) throws GroupsListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/list/continue", + arg, + false, + GroupsListContinueArg.Serializer.INSTANCE, + GroupsListResult.Serializer.INSTANCE, + GroupsListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupsListContinueErrorException("2/team/groups/list/continue", ex.getRequestId(), ex.getUserMessage(), (GroupsListContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#groupsList(long)}, use this to paginate through all + * groups. + * + *

Permission : Team Information.

+ * + * @param cursor Indicates from what point to get the next set of groups. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsListResult groupsListContinue(String cursor) throws GroupsListContinueErrorException, DbxException { + GroupsListContinueArg _arg = new GroupsListContinueArg(cursor); + return groupsListContinue(_arg); + } + + // + // route 2/team/groups/members/add + // + + /** + * Adds members to a group. The members are added immediately. However the + * granting of group-owned resources may take additional time. Use the + * {@link DbxTeamTeamRequests#groupsJobStatusGet(String)} to determine + * whether this process has completed. Permission : Team member management. + * + * + * @return Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} and + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)}. + */ + GroupMembersChangeResult groupsMembersAdd(GroupMembersAddArg arg) throws GroupMembersAddErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/members/add", + arg, + false, + GroupMembersAddArg.Serializer.INSTANCE, + GroupMembersChangeResult.Serializer.INSTANCE, + GroupMembersAddError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupMembersAddErrorException("2/team/groups/members/add", ex.getRequestId(), ex.getUserMessage(), (GroupMembersAddError) ex.getErrorValue()); + } + } + + /** + * Adds members to a group. + * + *

The members are added immediately. However the granting of + * group-owned resources may take additional time. Use the {@link + * DbxTeamTeamRequests#groupsJobStatusGet(String)} to determine whether this + * process has completed.

+ * + *

Permission : Team member management.

+ * + *

The {@code returnMembers} request parameter will default to {@code + * true} (see {@link #groupsMembersAdd(GroupSelector,List,boolean)}).

+ * + * @param group Group to which users will be added. Must not be {@code + * null}. + * @param members List of users to be added to the group. Must not contain + * a {@code null} item and not be {@code null}. + * + * @return Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} and + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersChangeResult groupsMembersAdd(GroupSelector group, List members) throws GroupMembersAddErrorException, DbxException { + GroupMembersAddArg _arg = new GroupMembersAddArg(group, members); + return groupsMembersAdd(_arg); + } + + /** + * Adds members to a group. + * + *

The members are added immediately. However the granting of + * group-owned resources may take additional time. Use the {@link + * DbxTeamTeamRequests#groupsJobStatusGet(String)} to determine whether this + * process has completed.

+ * + *

Permission : Team member management.

+ * + * @param group Group to which users will be added. Must not be {@code + * null}. + * @param members List of users to be added to the group. Must not contain + * a {@code null} item and not be {@code null}. + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * + * @return Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} and + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersChangeResult groupsMembersAdd(GroupSelector group, List members, boolean returnMembers) throws GroupMembersAddErrorException, DbxException { + GroupMembersAddArg _arg = new GroupMembersAddArg(group, members, returnMembers); + return groupsMembersAdd(_arg); + } + + // + // route 2/team/groups/members/list + // + + /** + * Lists members of a group. Permission : Team Information. + * + */ + GroupsMembersListResult groupsMembersList(GroupsMembersListArg arg) throws GroupSelectorErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/members/list", + arg, + false, + GroupsMembersListArg.Serializer.INSTANCE, + GroupsMembersListResult.Serializer.INSTANCE, + GroupSelectorError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupSelectorErrorException("2/team/groups/members/list", ex.getRequestId(), ex.getUserMessage(), (GroupSelectorError) ex.getErrorValue()); + } + } + + /** + * Lists members of a group. + * + *

Permission : Team Information.

+ * + *

The {@code limit} request parameter will default to {@code 1000L} + * (see {@link #groupsMembersList(GroupSelector,long)}).

+ * + * @param group The group whose members are to be listed. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsMembersListResult groupsMembersList(GroupSelector group) throws GroupSelectorErrorException, DbxException { + GroupsMembersListArg _arg = new GroupsMembersListArg(group); + return groupsMembersList(_arg); + } + + /** + * Lists members of a group. + * + *

Permission : Team Information.

+ * + * @param group The group whose members are to be listed. Must not be + * {@code null}. + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsMembersListResult groupsMembersList(GroupSelector group, long limit) throws GroupSelectorErrorException, DbxException { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + GroupsMembersListArg _arg = new GroupsMembersListArg(group, limit); + return groupsMembersList(_arg); + } + + // + // route 2/team/groups/members/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#groupsMembersList(GroupSelector,long)}, use this to + * paginate through all members of the group. Permission : Team information. + * + */ + GroupsMembersListResult groupsMembersListContinue(GroupsMembersListContinueArg arg) throws GroupsMembersListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/members/list/continue", + arg, + false, + GroupsMembersListContinueArg.Serializer.INSTANCE, + GroupsMembersListResult.Serializer.INSTANCE, + GroupsMembersListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupsMembersListContinueErrorException("2/team/groups/members/list/continue", ex.getRequestId(), ex.getUserMessage(), (GroupsMembersListContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#groupsMembersList(GroupSelector,long)}, use this to + * paginate through all members of the group. + * + *

Permission : Team information.

+ * + * @param cursor Indicates from what point to get the next set of groups. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsMembersListResult groupsMembersListContinue(String cursor) throws GroupsMembersListContinueErrorException, DbxException { + GroupsMembersListContinueArg _arg = new GroupsMembersListContinueArg(cursor); + return groupsMembersListContinue(_arg); + } + + // + // route 2/team/groups/members/remove + // + + /** + * Removes members from a group. The members are removed immediately. + * However the revoking of group-owned resources may take additional time. + * Use the {@link DbxTeamTeamRequests#groupsJobStatusGet(String)} to + * determine whether this process has completed. This method permits + * removing the only owner of a group, even in cases where this is not + * possible via the web client. Permission : Team member management. + * + * + * @return Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} and + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)}. + */ + GroupMembersChangeResult groupsMembersRemove(GroupMembersRemoveArg arg) throws GroupMembersRemoveErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/members/remove", + arg, + false, + GroupMembersRemoveArg.Serializer.INSTANCE, + GroupMembersChangeResult.Serializer.INSTANCE, + GroupMembersRemoveError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupMembersRemoveErrorException("2/team/groups/members/remove", ex.getRequestId(), ex.getUserMessage(), (GroupMembersRemoveError) ex.getErrorValue()); + } + } + + /** + * Removes members from a group. + * + *

The members are removed immediately. However the revoking of + * group-owned resources may take additional time. Use the {@link + * DbxTeamTeamRequests#groupsJobStatusGet(String)} to determine whether this + * process has completed.

+ * + *

This method permits removing the only owner of a group, even in cases + * where this is not possible via the web client.

+ * + *

Permission : Team member management.

+ * + *

The {@code returnMembers} request parameter will default to {@code + * true} (see {@link #groupsMembersRemove(GroupSelector,List,boolean)}). + *

+ * + * @param group Group from which users will be removed. Must not be {@code + * null}. + * @param users List of users to be removed from the group. Must not + * contain a {@code null} item and not be {@code null}. + * + * @return Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} and + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersChangeResult groupsMembersRemove(GroupSelector group, List users) throws GroupMembersRemoveErrorException, DbxException { + GroupMembersRemoveArg _arg = new GroupMembersRemoveArg(group, users); + return groupsMembersRemove(_arg); + } + + /** + * Removes members from a group. + * + *

The members are removed immediately. However the revoking of + * group-owned resources may take additional time. Use the {@link + * DbxTeamTeamRequests#groupsJobStatusGet(String)} to determine whether this + * process has completed.

+ * + *

This method permits removing the only owner of a group, even in cases + * where this is not possible via the web client.

+ * + *

Permission : Team member management.

+ * + * @param group Group from which users will be removed. Must not be {@code + * null}. + * @param users List of users to be removed from the group. Must not + * contain a {@code null} item and not be {@code null}. + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * + * @return Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,List,boolean)} and + * {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,List,boolean)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersChangeResult groupsMembersRemove(GroupSelector group, List users, boolean returnMembers) throws GroupMembersRemoveErrorException, DbxException { + GroupMembersRemoveArg _arg = new GroupMembersRemoveArg(group, users, returnMembers); + return groupsMembersRemove(_arg); + } + + // + // route 2/team/groups/members/set_access_type + // + + /** + * Sets a member's access type in a group. Permission : Team member + * management. + * + */ + List groupsMembersSetAccessType(GroupMembersSetAccessTypeArg arg) throws GroupMemberSetAccessTypeErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/members/set_access_type", + arg, + false, + GroupMembersSetAccessTypeArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(GroupsGetInfoItem.Serializer.INSTANCE), + GroupMemberSetAccessTypeError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupMemberSetAccessTypeErrorException("2/team/groups/members/set_access_type", ex.getRequestId(), ex.getUserMessage(), (GroupMemberSetAccessTypeError) ex.getErrorValue()); + } + } + + /** + * Sets a member's access type in a group. + * + *

Permission : Team member management.

+ * + *

The {@code returnMembers} request parameter will default to {@code + * true} (see {@link + * #groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}). + *

+ * + * @param group Specify a group. Must not be {@code null}. + * @param user Identity of a user that is a member of the {@code group} + * argument to {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + * Must not be {@code null}. + * @param accessType New group access type the user will have. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType) throws GroupMemberSetAccessTypeErrorException, DbxException { + GroupMembersSetAccessTypeArg _arg = new GroupMembersSetAccessTypeArg(group, user, accessType); + return groupsMembersSetAccessType(_arg); + } + + /** + * Sets a member's access type in a group. + * + *

Permission : Team member management.

+ * + * @param group Specify a group. Must not be {@code null}. + * @param user Identity of a user that is a member of the {@code group} + * argument to {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + * Must not be {@code null}. + * @param accessType New group access type the user will have. Must not be + * {@code null}. + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType, boolean returnMembers) throws GroupMemberSetAccessTypeErrorException, DbxException { + GroupMembersSetAccessTypeArg _arg = new GroupMembersSetAccessTypeArg(group, user, accessType, returnMembers); + return groupsMembersSetAccessType(_arg); + } + + // + // route 2/team/groups/update + // + + /** + * Updates a group's name and/or external ID. Permission : Team member + * management. + * + * + * @return Full description of a group. + */ + GroupFullInfo groupsUpdate(GroupUpdateArgs arg) throws GroupUpdateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/groups/update", + arg, + false, + GroupUpdateArgs.Serializer.INSTANCE, + GroupFullInfo.Serializer.INSTANCE, + GroupUpdateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GroupUpdateErrorException("2/team/groups/update", ex.getRequestId(), ex.getUserMessage(), (GroupUpdateError) ex.getErrorValue()); + } + } + + /** + * Updates a group's name and/or external ID. + * + *

Permission : Team member management.

+ * + *

The default values for the optional request parameters will be used. + * See {@link GroupsUpdateBuilder} for more details.

+ * + * @param group Specify a group. Must not be {@code null}. + * + * @return Full description of a group. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupFullInfo groupsUpdate(GroupSelector group) throws GroupUpdateErrorException, DbxException { + GroupUpdateArgs _arg = new GroupUpdateArgs(group); + return groupsUpdate(_arg); + } + + /** + * Updates a group's name and/or external ID. Permission : Team member + * management. + * + * @param group Specify a group. Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsUpdateBuilder groupsUpdateBuilder(GroupSelector group) { + GroupUpdateArgs.Builder argBuilder_ = GroupUpdateArgs.newBuilder(group); + return new GroupsUpdateBuilder(this, argBuilder_); + } + + // + // route 2/team/legal_holds/create_policy + // + + /** + * Creates new legal hold policy. Note: Legal Holds is a paid add-on. Not + * all teams have the feature. Permission : Team member file access. + * + */ + LegalHoldPolicy legalHoldsCreatePolicy(LegalHoldsPolicyCreateArg arg) throws LegalHoldsPolicyCreateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/legal_holds/create_policy", + arg, + false, + LegalHoldsPolicyCreateArg.Serializer.INSTANCE, + LegalHoldPolicy.Serializer.INSTANCE, + LegalHoldsPolicyCreateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LegalHoldsPolicyCreateErrorException("2/team/legal_holds/create_policy", ex.getRequestId(), ex.getUserMessage(), (LegalHoldsPolicyCreateError) ex.getErrorValue()); + } + } + + /** + * Creates new legal hold policy. Note: Legal Holds is a paid add-on. Not + * all teams have the feature. + * + *

Permission : Team member file access.

+ * + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members List of team member IDs added to the hold. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldPolicy legalHoldsCreatePolicy(String name, List members) throws LegalHoldsPolicyCreateErrorException, DbxException { + LegalHoldsPolicyCreateArg _arg = new LegalHoldsPolicyCreateArg(name, members); + return legalHoldsCreatePolicy(_arg); + } + + /** + * Creates new legal hold policy. Note: Legal Holds is a paid add-on. Not + * all teams have the feature. Permission : Team member file access. + * + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members List of team member IDs added to the hold. Must not + * contain a {@code null} item and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsCreatePolicyBuilder legalHoldsCreatePolicyBuilder(String name, List members) { + LegalHoldsPolicyCreateArg.Builder argBuilder_ = LegalHoldsPolicyCreateArg.newBuilder(name, members); + return new LegalHoldsCreatePolicyBuilder(this, argBuilder_); + } + + // + // route 2/team/legal_holds/get_policy + // + + /** + * Gets a legal hold by Id. Note: Legal Holds is a paid add-on. Not all + * teams have the feature. Permission : Team member file access. + * + */ + LegalHoldPolicy legalHoldsGetPolicy(LegalHoldsGetPolicyArg arg) throws LegalHoldsGetPolicyErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/legal_holds/get_policy", + arg, + false, + LegalHoldsGetPolicyArg.Serializer.INSTANCE, + LegalHoldPolicy.Serializer.INSTANCE, + LegalHoldsGetPolicyError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LegalHoldsGetPolicyErrorException("2/team/legal_holds/get_policy", ex.getRequestId(), ex.getUserMessage(), (LegalHoldsGetPolicyError) ex.getErrorValue()); + } + } + + /** + * Gets a legal hold by Id. Note: Legal Holds is a paid add-on. Not all + * teams have the feature. + * + *

Permission : Team member file access.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldPolicy legalHoldsGetPolicy(String id) throws LegalHoldsGetPolicyErrorException, DbxException { + LegalHoldsGetPolicyArg _arg = new LegalHoldsGetPolicyArg(id); + return legalHoldsGetPolicy(_arg); + } + + // + // route 2/team/legal_holds/list_held_revisions + // + + /** + * List the file metadata that's under the hold. Note: Legal Holds is a paid + * add-on. Not all teams have the feature. Permission : Team member file + * access. + * + */ + LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisions(LegalHoldsListHeldRevisionsArg arg) throws LegalHoldsListHeldRevisionsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/legal_holds/list_held_revisions", + arg, + false, + LegalHoldsListHeldRevisionsArg.Serializer.INSTANCE, + LegalHoldsListHeldRevisionResult.Serializer.INSTANCE, + LegalHoldsListHeldRevisionsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LegalHoldsListHeldRevisionsErrorException("2/team/legal_holds/list_held_revisions", ex.getRequestId(), ex.getUserMessage(), (LegalHoldsListHeldRevisionsError) ex.getErrorValue()); + } + } + + /** + * List the file metadata that's under the hold. Note: Legal Holds is a paid + * add-on. Not all teams have the feature. + * + *

Permission : Team member file access.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisions(String id) throws LegalHoldsListHeldRevisionsErrorException, DbxException { + LegalHoldsListHeldRevisionsArg _arg = new LegalHoldsListHeldRevisionsArg(id); + return legalHoldsListHeldRevisions(_arg); + } + + // + // route 2/team/legal_holds/list_held_revisions_continue + // + + /** + * Continue listing the file metadata that's under the hold. Note: Legal + * Holds is a paid add-on. Not all teams have the feature. Permission : Team + * member file access. + * + */ + LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisionsContinue(LegalHoldsListHeldRevisionsContinueArg arg) throws LegalHoldsListHeldRevisionsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/legal_holds/list_held_revisions_continue", + arg, + false, + LegalHoldsListHeldRevisionsContinueArg.Serializer.INSTANCE, + LegalHoldsListHeldRevisionResult.Serializer.INSTANCE, + LegalHoldsListHeldRevisionsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LegalHoldsListHeldRevisionsErrorException("2/team/legal_holds/list_held_revisions_continue", ex.getRequestId(), ex.getUserMessage(), (LegalHoldsListHeldRevisionsError) ex.getErrorValue()); + } + } + + /** + * Continue listing the file metadata that's under the hold. Note: Legal + * Holds is a paid add-on. Not all teams have the feature. + * + *

Permission : Team member file access.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisionsContinue(String id) throws LegalHoldsListHeldRevisionsErrorException, DbxException { + LegalHoldsListHeldRevisionsContinueArg _arg = new LegalHoldsListHeldRevisionsContinueArg(id); + return legalHoldsListHeldRevisionsContinue(_arg); + } + + /** + * Continue listing the file metadata that's under the hold. Note: Legal + * Holds is a paid add-on. Not all teams have the feature. + * + *

Permission : Team member file access.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * @param cursor The cursor idicates where to continue reading file + * metadata entries for the next API call. When there are no more + * entries, the cursor will return none. Must have length of at least 1. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionResult legalHoldsListHeldRevisionsContinue(String id, String cursor) throws LegalHoldsListHeldRevisionsErrorException, DbxException { + if (cursor != null) { + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + } + LegalHoldsListHeldRevisionsContinueArg _arg = new LegalHoldsListHeldRevisionsContinueArg(id, cursor); + return legalHoldsListHeldRevisionsContinue(_arg); + } + + // + // route 2/team/legal_holds/list_policies + // + + /** + * Lists legal holds on a team. Note: Legal Holds is a paid add-on. Not all + * teams have the feature. Permission : Team member file access. + * + */ + LegalHoldsListPoliciesResult legalHoldsListPolicies(LegalHoldsListPoliciesArg arg) throws LegalHoldsListPoliciesErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/legal_holds/list_policies", + arg, + false, + LegalHoldsListPoliciesArg.Serializer.INSTANCE, + LegalHoldsListPoliciesResult.Serializer.INSTANCE, + LegalHoldsListPoliciesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LegalHoldsListPoliciesErrorException("2/team/legal_holds/list_policies", ex.getRequestId(), ex.getUserMessage(), (LegalHoldsListPoliciesError) ex.getErrorValue()); + } + } + + /** + * Lists legal holds on a team. Note: Legal Holds is a paid add-on. Not all + * teams have the feature. + * + *

Permission : Team member file access.

+ * + *

The {@code includeReleased} request parameter will default to {@code + * false} (see {@link #legalHoldsListPolicies(boolean)}).

+ */ + public LegalHoldsListPoliciesResult legalHoldsListPolicies() throws LegalHoldsListPoliciesErrorException, DbxException { + LegalHoldsListPoliciesArg _arg = new LegalHoldsListPoliciesArg(); + return legalHoldsListPolicies(_arg); + } + + /** + * Lists legal holds on a team. Note: Legal Holds is a paid add-on. Not all + * teams have the feature. + * + *

Permission : Team member file access.

+ * + * @param includeReleased Whether to return holds that were released. + */ + public LegalHoldsListPoliciesResult legalHoldsListPolicies(boolean includeReleased) throws LegalHoldsListPoliciesErrorException, DbxException { + LegalHoldsListPoliciesArg _arg = new LegalHoldsListPoliciesArg(includeReleased); + return legalHoldsListPolicies(_arg); + } + + // + // route 2/team/legal_holds/release_policy + // + + /** + * Releases a legal hold by Id. Note: Legal Holds is a paid add-on. Not all + * teams have the feature. Permission : Team member file access. + * + */ + void legalHoldsReleasePolicy(LegalHoldsPolicyReleaseArg arg) throws LegalHoldsPolicyReleaseErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/legal_holds/release_policy", + arg, + false, + LegalHoldsPolicyReleaseArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + LegalHoldsPolicyReleaseError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LegalHoldsPolicyReleaseErrorException("2/team/legal_holds/release_policy", ex.getRequestId(), ex.getUserMessage(), (LegalHoldsPolicyReleaseError) ex.getErrorValue()); + } + } + + /** + * Releases a legal hold by Id. Note: Legal Holds is a paid add-on. Not all + * teams have the feature. + * + *

Permission : Team member file access.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void legalHoldsReleasePolicy(String id) throws LegalHoldsPolicyReleaseErrorException, DbxException { + LegalHoldsPolicyReleaseArg _arg = new LegalHoldsPolicyReleaseArg(id); + legalHoldsReleasePolicy(_arg); + } + + // + // route 2/team/legal_holds/update_policy + // + + /** + * Updates a legal hold. Note: Legal Holds is a paid add-on. Not all teams + * have the feature. Permission : Team member file access. + * + */ + LegalHoldPolicy legalHoldsUpdatePolicy(LegalHoldsPolicyUpdateArg arg) throws LegalHoldsPolicyUpdateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/legal_holds/update_policy", + arg, + false, + LegalHoldsPolicyUpdateArg.Serializer.INSTANCE, + LegalHoldPolicy.Serializer.INSTANCE, + LegalHoldsPolicyUpdateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new LegalHoldsPolicyUpdateErrorException("2/team/legal_holds/update_policy", ex.getRequestId(), ex.getUserMessage(), (LegalHoldsPolicyUpdateError) ex.getErrorValue()); + } + } + + /** + * Updates a legal hold. Note: Legal Holds is a paid add-on. Not all teams + * have the feature. + * + *

Permission : Team member file access.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldPolicy legalHoldsUpdatePolicy(String id) throws LegalHoldsPolicyUpdateErrorException, DbxException { + LegalHoldsPolicyUpdateArg _arg = new LegalHoldsPolicyUpdateArg(id); + return legalHoldsUpdatePolicy(_arg); + } + + /** + * Updates a legal hold. Note: Legal Holds is a paid add-on. Not all teams + * have the feature. Permission : Team member file access. + * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsUpdatePolicyBuilder legalHoldsUpdatePolicyBuilder(String id) { + LegalHoldsPolicyUpdateArg.Builder argBuilder_ = LegalHoldsPolicyUpdateArg.newBuilder(id); + return new LegalHoldsUpdatePolicyBuilder(this, argBuilder_); + } + + // + // route 2/team/linked_apps/list_member_linked_apps + // + + /** + * List all linked applications of the team member. Note, this endpoint does + * not list any team-linked applications. + * + */ + ListMemberAppsResult linkedAppsListMemberLinkedApps(ListMemberAppsArg arg) throws ListMemberAppsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/linked_apps/list_member_linked_apps", + arg, + false, + ListMemberAppsArg.Serializer.INSTANCE, + ListMemberAppsResult.Serializer.INSTANCE, + ListMemberAppsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListMemberAppsErrorException("2/team/linked_apps/list_member_linked_apps", ex.getRequestId(), ex.getUserMessage(), (ListMemberAppsError) ex.getErrorValue()); + } + } + + /** + * List all linked applications of the team member. + * + *

Note, this endpoint does not list any team-linked applications.

+ * + * @param teamMemberId The team member id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMemberAppsResult linkedAppsListMemberLinkedApps(String teamMemberId) throws ListMemberAppsErrorException, DbxException { + ListMemberAppsArg _arg = new ListMemberAppsArg(teamMemberId); + return linkedAppsListMemberLinkedApps(_arg); + } + + // + // route 2/team/linked_apps/list_members_linked_apps + // + + /** + * List all applications linked to the team members' accounts. Note, this + * endpoint does not list any team-linked applications. + * + * @param arg Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + * + * @return Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + */ + ListMembersAppsResult linkedAppsListMembersLinkedApps(ListMembersAppsArg arg) throws ListMembersAppsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/linked_apps/list_members_linked_apps", + arg, + false, + ListMembersAppsArg.Serializer.INSTANCE, + ListMembersAppsResult.Serializer.INSTANCE, + ListMembersAppsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListMembersAppsErrorException("2/team/linked_apps/list_members_linked_apps", ex.getRequestId(), ex.getUserMessage(), (ListMembersAppsError) ex.getErrorValue()); + } + } + + /** + * List all applications linked to the team members' accounts. + * + *

Note, this endpoint does not list any team-linked applications.

+ * + * @return Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + */ + public ListMembersAppsResult linkedAppsListMembersLinkedApps() throws ListMembersAppsErrorException, DbxException { + ListMembersAppsArg _arg = new ListMembersAppsArg(); + return linkedAppsListMembersLinkedApps(_arg); + } + + /** + * List all applications linked to the team members' accounts. + * + *

Note, this endpoint does not list any team-linked applications.

+ * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} the + * cursor shouldn't be passed. Then, if the result of the call includes + * a cursor, the following requests should include the received cursors + * in order to receive the next sub list of the team applications. + * + * @return Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + */ + public ListMembersAppsResult linkedAppsListMembersLinkedApps(String cursor) throws ListMembersAppsErrorException, DbxException { + ListMembersAppsArg _arg = new ListMembersAppsArg(cursor); + return linkedAppsListMembersLinkedApps(_arg); + } + + // + // route 2/team/linked_apps/list_team_linked_apps + // + + /** + * List all applications linked to the team members' accounts. Note, this + * endpoint doesn't list any team-linked applications. + * + * @param arg Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + * + * @return Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + */ + ListTeamAppsResult linkedAppsListTeamLinkedApps(ListTeamAppsArg arg) throws ListTeamAppsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/linked_apps/list_team_linked_apps", + arg, + false, + ListTeamAppsArg.Serializer.INSTANCE, + ListTeamAppsResult.Serializer.INSTANCE, + ListTeamAppsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ListTeamAppsErrorException("2/team/linked_apps/list_team_linked_apps", ex.getRequestId(), ex.getUserMessage(), (ListTeamAppsError) ex.getErrorValue()); + } + } + + /** + * List all applications linked to the team members' accounts. + * + *

Note, this endpoint doesn't list any team-linked applications.

+ * + * @return Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + * + * @deprecated use {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} instead. + */ + @Deprecated + public ListTeamAppsResult linkedAppsListTeamLinkedApps() throws ListTeamAppsErrorException, DbxException { + ListTeamAppsArg _arg = new ListTeamAppsArg(); + return linkedAppsListTeamLinkedApps(_arg); + } + + /** + * List all applications linked to the team members' accounts. + * + *

Note, this endpoint doesn't list any team-linked applications.

+ * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} the cursor + * shouldn't be passed. Then, if the result of the call includes a + * cursor, the following requests should include the received cursors in + * order to receive the next sub list of the team applications. + * + * @return Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + * + * @deprecated use {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} instead. + */ + @Deprecated + public ListTeamAppsResult linkedAppsListTeamLinkedApps(String cursor) throws ListTeamAppsErrorException, DbxException { + ListTeamAppsArg _arg = new ListTeamAppsArg(cursor); + return linkedAppsListTeamLinkedApps(_arg); + } + + // + // route 2/team/linked_apps/revoke_linked_app + // + + /** + * Revoke a linked application of the team member. + * + */ + void linkedAppsRevokeLinkedApp(RevokeLinkedApiAppArg arg) throws RevokeLinkedAppErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/linked_apps/revoke_linked_app", + arg, + false, + RevokeLinkedApiAppArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + RevokeLinkedAppError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RevokeLinkedAppErrorException("2/team/linked_apps/revoke_linked_app", ex.getRequestId(), ex.getUserMessage(), (RevokeLinkedAppError) ex.getErrorValue()); + } + } + + /** + * Revoke a linked application of the team member. + * + *

The {@code keepAppFolder} request parameter will default to {@code + * true} (see {@link #linkedAppsRevokeLinkedApp(String,String,boolean)}). + *

+ * + * @param appId The application's unique id. Must not be {@code null}. + * @param teamMemberId The unique id of the member owning the device. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void linkedAppsRevokeLinkedApp(String appId, String teamMemberId) throws RevokeLinkedAppErrorException, DbxException { + RevokeLinkedApiAppArg _arg = new RevokeLinkedApiAppArg(appId, teamMemberId); + linkedAppsRevokeLinkedApp(_arg); + } + + /** + * Revoke a linked application of the team member. + * + * @param appId The application's unique id. Must not be {@code null}. + * @param teamMemberId The unique id of the member owning the device. Must + * not be {@code null}. + * @param keepAppFolder This flag is not longer supported, the application + * dedicated folder (in case the application uses one) will be kept. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void linkedAppsRevokeLinkedApp(String appId, String teamMemberId, boolean keepAppFolder) throws RevokeLinkedAppErrorException, DbxException { + RevokeLinkedApiAppArg _arg = new RevokeLinkedApiAppArg(appId, teamMemberId, keepAppFolder); + linkedAppsRevokeLinkedApp(_arg); + } + + // + // route 2/team/linked_apps/revoke_linked_app_batch + // + + /** + * Revoke a list of linked applications of the team members. + * + */ + RevokeLinkedAppBatchResult linkedAppsRevokeLinkedAppBatch(RevokeLinkedApiAppBatchArg arg) throws RevokeLinkedAppBatchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/linked_apps/revoke_linked_app_batch", + arg, + false, + RevokeLinkedApiAppBatchArg.Serializer.INSTANCE, + RevokeLinkedAppBatchResult.Serializer.INSTANCE, + RevokeLinkedAppBatchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new RevokeLinkedAppBatchErrorException("2/team/linked_apps/revoke_linked_app_batch", ex.getRequestId(), ex.getUserMessage(), (RevokeLinkedAppBatchError) ex.getErrorValue()); + } + } + + /** + * Revoke a list of linked applications of the team members. + * + * @param revokeLinkedApp Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeLinkedAppBatchResult linkedAppsRevokeLinkedAppBatch(List revokeLinkedApp) throws RevokeLinkedAppBatchErrorException, DbxException { + RevokeLinkedApiAppBatchArg _arg = new RevokeLinkedApiAppBatchArg(revokeLinkedApp); + return linkedAppsRevokeLinkedAppBatch(_arg); + } + + // + // route 2/team/member_space_limits/excluded_users/add + // + + /** + * Add users to member space limits excluded users list. + * + * @param arg Argument of excluded users update operation. Should include a + * list of users to add/remove (according to endpoint), Maximum size of + * the list is 1000 users. + * + * @return Excluded users update result. + */ + ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersAdd(ExcludedUsersUpdateArg arg) throws ExcludedUsersUpdateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/member_space_limits/excluded_users/add", + arg, + false, + ExcludedUsersUpdateArg.Serializer.INSTANCE, + ExcludedUsersUpdateResult.Serializer.INSTANCE, + ExcludedUsersUpdateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ExcludedUsersUpdateErrorException("2/team/member_space_limits/excluded_users/add", ex.getRequestId(), ex.getUserMessage(), (ExcludedUsersUpdateError) ex.getErrorValue()); + } + } + + /** + * Add users to member space limits excluded users list. + * + * @return Excluded users update result. + */ + public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersAdd() throws ExcludedUsersUpdateErrorException, DbxException { + ExcludedUsersUpdateArg _arg = new ExcludedUsersUpdateArg(); + return memberSpaceLimitsExcludedUsersAdd(_arg); + } + + /** + * Add users to member space limits excluded users list. + * + * @param users List of users to be added/removed. Must not contain a + * {@code null} item. + * + * @return Excluded users update result. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersAdd(List users) throws ExcludedUsersUpdateErrorException, DbxException { + if (users != null) { + for (UserSelectorArg x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + } + ExcludedUsersUpdateArg _arg = new ExcludedUsersUpdateArg(users); + return memberSpaceLimitsExcludedUsersAdd(_arg); + } + + // + // route 2/team/member_space_limits/excluded_users/list + // + + /** + * List member space limits excluded users. + * + * @param arg Excluded users list argument. + * + * @return Excluded users list result. + */ + ExcludedUsersListResult memberSpaceLimitsExcludedUsersList(ExcludedUsersListArg arg) throws ExcludedUsersListErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/member_space_limits/excluded_users/list", + arg, + false, + ExcludedUsersListArg.Serializer.INSTANCE, + ExcludedUsersListResult.Serializer.INSTANCE, + ExcludedUsersListError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ExcludedUsersListErrorException("2/team/member_space_limits/excluded_users/list", ex.getRequestId(), ex.getUserMessage(), (ExcludedUsersListError) ex.getErrorValue()); + } + } + + /** + * List member space limits excluded users. + * + *

The {@code limit} request parameter will default to {@code 1000L} + * (see {@link #memberSpaceLimitsExcludedUsersList(long)}).

+ * + * @return Excluded users list result. + */ + public ExcludedUsersListResult memberSpaceLimitsExcludedUsersList() throws ExcludedUsersListErrorException, DbxException { + ExcludedUsersListArg _arg = new ExcludedUsersListArg(); + return memberSpaceLimitsExcludedUsersList(_arg); + } + + /** + * List member space limits excluded users. + * + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @return Excluded users list result. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersListResult memberSpaceLimitsExcludedUsersList(long limit) throws ExcludedUsersListErrorException, DbxException { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + ExcludedUsersListArg _arg = new ExcludedUsersListArg(limit); + return memberSpaceLimitsExcludedUsersList(_arg); + } + + // + // route 2/team/member_space_limits/excluded_users/list/continue + // + + /** + * Continue listing member space limits excluded users. + * + * @param arg Excluded users list continue argument. + * + * @return Excluded users list result. + */ + ExcludedUsersListResult memberSpaceLimitsExcludedUsersListContinue(ExcludedUsersListContinueArg arg) throws ExcludedUsersListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/member_space_limits/excluded_users/list/continue", + arg, + false, + ExcludedUsersListContinueArg.Serializer.INSTANCE, + ExcludedUsersListResult.Serializer.INSTANCE, + ExcludedUsersListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ExcludedUsersListContinueErrorException("2/team/member_space_limits/excluded_users/list/continue", ex.getRequestId(), ex.getUserMessage(), (ExcludedUsersListContinueError) ex.getErrorValue()); + } + } + + /** + * Continue listing member space limits excluded users. + * + * @param cursor Indicates from what point to get the next set of users. + * Must not be {@code null}. + * + * @return Excluded users list result. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersListResult memberSpaceLimitsExcludedUsersListContinue(String cursor) throws ExcludedUsersListContinueErrorException, DbxException { + ExcludedUsersListContinueArg _arg = new ExcludedUsersListContinueArg(cursor); + return memberSpaceLimitsExcludedUsersListContinue(_arg); + } + + // + // route 2/team/member_space_limits/excluded_users/remove + // + + /** + * Remove users from member space limits excluded users list. + * + * @param arg Argument of excluded users update operation. Should include a + * list of users to add/remove (according to endpoint), Maximum size of + * the list is 1000 users. + * + * @return Excluded users update result. + */ + ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersRemove(ExcludedUsersUpdateArg arg) throws ExcludedUsersUpdateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/member_space_limits/excluded_users/remove", + arg, + false, + ExcludedUsersUpdateArg.Serializer.INSTANCE, + ExcludedUsersUpdateResult.Serializer.INSTANCE, + ExcludedUsersUpdateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ExcludedUsersUpdateErrorException("2/team/member_space_limits/excluded_users/remove", ex.getRequestId(), ex.getUserMessage(), (ExcludedUsersUpdateError) ex.getErrorValue()); + } + } + + /** + * Remove users from member space limits excluded users list. + * + * @return Excluded users update result. + */ + public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersRemove() throws ExcludedUsersUpdateErrorException, DbxException { + ExcludedUsersUpdateArg _arg = new ExcludedUsersUpdateArg(); + return memberSpaceLimitsExcludedUsersRemove(_arg); + } + + /** + * Remove users from member space limits excluded users list. + * + * @param users List of users to be added/removed. Must not contain a + * {@code null} item. + * + * @return Excluded users update result. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersUpdateResult memberSpaceLimitsExcludedUsersRemove(List users) throws ExcludedUsersUpdateErrorException, DbxException { + if (users != null) { + for (UserSelectorArg x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + } + ExcludedUsersUpdateArg _arg = new ExcludedUsersUpdateArg(users); + return memberSpaceLimitsExcludedUsersRemove(_arg); + } + + // + // route 2/team/member_space_limits/get_custom_quota + // + + /** + * Get users custom quota. A maximum of 1000 members can be specified in a + * single call. Note: to apply a custom space limit, a team admin needs to + * set a member space limit for the team first. (the team admin can check + * the settings here: https://www.dropbox.com/team/admin/settings/space). + * + */ + List memberSpaceLimitsGetCustomQuota(CustomQuotaUsersArg arg) throws CustomQuotaErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/member_space_limits/get_custom_quota", + arg, + false, + CustomQuotaUsersArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(CustomQuotaResult.Serializer.INSTANCE), + CustomQuotaError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CustomQuotaErrorException("2/team/member_space_limits/get_custom_quota", ex.getRequestId(), ex.getUserMessage(), (CustomQuotaError) ex.getErrorValue()); + } + } + + /** + * Get users custom quota. A maximum of 1000 members can be specified in a + * single call. Note: to apply a custom space limit, a team admin needs to + * set a member space limit for the team first. (the team admin can check + * the settings here: https://www.dropbox.com/team/admin/settings/space). + * + * @param users List of users. Must not contain a {@code null} item and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List memberSpaceLimitsGetCustomQuota(List users) throws CustomQuotaErrorException, DbxException { + CustomQuotaUsersArg _arg = new CustomQuotaUsersArg(users); + return memberSpaceLimitsGetCustomQuota(_arg); + } + + // + // route 2/team/member_space_limits/remove_custom_quota + // + + /** + * Remove users custom quota. A maximum of 1000 members can be specified in + * a single call. Note: to apply a custom space limit, a team admin needs to + * set a member space limit for the team first. (the team admin can check + * the settings here: https://www.dropbox.com/team/admin/settings/space). + * + */ + List memberSpaceLimitsRemoveCustomQuota(CustomQuotaUsersArg arg) throws CustomQuotaErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/member_space_limits/remove_custom_quota", + arg, + false, + CustomQuotaUsersArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(RemoveCustomQuotaResult.Serializer.INSTANCE), + CustomQuotaError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new CustomQuotaErrorException("2/team/member_space_limits/remove_custom_quota", ex.getRequestId(), ex.getUserMessage(), (CustomQuotaError) ex.getErrorValue()); + } + } + + /** + * Remove users custom quota. A maximum of 1000 members can be specified in + * a single call. Note: to apply a custom space limit, a team admin needs to + * set a member space limit for the team first. (the team admin can check + * the settings here: https://www.dropbox.com/team/admin/settings/space). + * + * @param users List of users. Must not contain a {@code null} item and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List memberSpaceLimitsRemoveCustomQuota(List users) throws CustomQuotaErrorException, DbxException { + CustomQuotaUsersArg _arg = new CustomQuotaUsersArg(users); + return memberSpaceLimitsRemoveCustomQuota(_arg); + } + + // + // route 2/team/member_space_limits/set_custom_quota + // + + /** + * Set users custom quota. Custom quota has to be at least 15GB. A maximum + * of 1000 members can be specified in a single call. Note: to apply a + * custom space limit, a team admin needs to set a member space limit for + * the team first. (the team admin can check the settings here: + * https://www.dropbox.com/team/admin/settings/space). + * + */ + List memberSpaceLimitsSetCustomQuota(SetCustomQuotaArg arg) throws SetCustomQuotaErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/member_space_limits/set_custom_quota", + arg, + false, + SetCustomQuotaArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(CustomQuotaResult.Serializer.INSTANCE), + SetCustomQuotaError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SetCustomQuotaErrorException("2/team/member_space_limits/set_custom_quota", ex.getRequestId(), ex.getUserMessage(), (SetCustomQuotaError) ex.getErrorValue()); + } + } + + /** + * Set users custom quota. Custom quota has to be at least 15GB. A maximum + * of 1000 members can be specified in a single call. Note: to apply a + * custom space limit, a team admin needs to set a member space limit for + * the team first. (the team admin can check the settings here: + * https://www.dropbox.com/team/admin/settings/space). + * + * @param usersAndQuotas List of users and their custom quotas. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List memberSpaceLimitsSetCustomQuota(List usersAndQuotas) throws SetCustomQuotaErrorException, DbxException { + SetCustomQuotaArg _arg = new SetCustomQuotaArg(usersAndQuotas); + return memberSpaceLimitsSetCustomQuota(_arg); + } + + // + // route 2/team/members/add + // + + /** + * Adds members to a team. Permission : Team member management A maximum of + * 20 members can be specified in a single call. If no Dropbox account + * exists with the email address specified, a new Dropbox account will be + * created with the given email address, and that account will be invited to + * the team. If a personal Dropbox account exists with the email address + * specified in the call, this call will create a placeholder Dropbox + * account for the user on the team and send an email inviting the user to + * migrate their existing personal account onto the team. Team member + * management apps are required to set an initial given_name and surname for + * a user to use in the team invitation and for 'Perform as team member' + * actions taken on the user before they become 'active'. + * + */ + MembersAddLaunch membersAdd(MembersAddArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/add", + arg, + false, + MembersAddArg.Serializer.INSTANCE, + MembersAddLaunch.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"members/add\":" + ex.getErrorValue()); + } + } + + /** + * Adds members to a team. + * + *

Permission : Team member management

+ * + *

A maximum of 20 members can be specified in a single call.

+ * + *

If no Dropbox account exists with the email address specified, a new + * Dropbox account will be created with the given email address, and that + * account will be invited to the team.

+ * + *

If a personal Dropbox account exists with the email address specified + * in the call, this call will create a placeholder Dropbox account for the + * user on the team and send an email inviting the user to migrate their + * existing personal account onto the team.

+ * + *

Team member management apps are required to set an initial given_name + * and surname for a user to use in the team invitation and for 'Perform as + * team member' actions taken on the user before they become 'active'.

+ * + *

The {@code forceAsync} request parameter will default to {@code + * false} (see {@link #membersAdd(List,boolean)}).

+ * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddLaunch membersAdd(List newMembers) throws DbxApiException, DbxException { + MembersAddArg _arg = new MembersAddArg(newMembers); + return membersAdd(_arg); + } + + /** + * Adds members to a team. + * + *

Permission : Team member management

+ * + *

A maximum of 20 members can be specified in a single call.

+ * + *

If no Dropbox account exists with the email address specified, a new + * Dropbox account will be created with the given email address, and that + * account will be invited to the team.

+ * + *

If a personal Dropbox account exists with the email address specified + * in the call, this call will create a placeholder Dropbox account for the + * user on the team and send an email inviting the user to migrate their + * existing personal account onto the team.

+ * + *

Team member management apps are required to set an initial given_name + * and surname for a user to use in the team invitation and for 'Perform as + * team member' actions taken on the user before they become 'active'.

+ * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * @param forceAsync Whether to force the add to happen asynchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddLaunch membersAdd(List newMembers, boolean forceAsync) throws DbxApiException, DbxException { + MembersAddArg _arg = new MembersAddArg(newMembers, forceAsync); + return membersAdd(_arg); + } + + // + // route 2/team/members/add_v2 + // + + /** + * Adds members to a team. Permission : Team member management A maximum of + * 20 members can be specified in a single call. If no Dropbox account + * exists with the email address specified, a new Dropbox account will be + * created with the given email address, and that account will be invited to + * the team. If a personal Dropbox account exists with the email address + * specified in the call, this call will create a placeholder Dropbox + * account for the user on the team and send an email inviting the user to + * migrate their existing personal account onto the team. Team member + * management apps are required to set an initial given_name and surname for + * a user to use in the team invitation and for 'Perform as team member' + * actions taken on the user before they become 'active'. + * + */ + MembersAddLaunchV2Result membersAddV2(MembersAddV2Arg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/add_v2", + arg, + false, + MembersAddV2Arg.Serializer.INSTANCE, + MembersAddLaunchV2Result.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"members/add_v2\":" + ex.getErrorValue()); + } + } + + /** + * Adds members to a team. + * + *

Permission : Team member management

+ * + *

A maximum of 20 members can be specified in a single call.

+ * + *

If no Dropbox account exists with the email address specified, a new + * Dropbox account will be created with the given email address, and that + * account will be invited to the team.

+ * + *

If a personal Dropbox account exists with the email address specified + * in the call, this call will create a placeholder Dropbox account for the + * user on the team and send an email inviting the user to migrate their + * existing personal account onto the team.

+ * + *

Team member management apps are required to set an initial given_name + * and surname for a user to use in the team invitation and for 'Perform as + * team member' actions taken on the user before they become 'active'.

+ * + *

The {@code forceAsync} request parameter will default to {@code + * false} (see {@link #membersAddV2(List,boolean)}).

+ * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddLaunchV2Result membersAddV2(List newMembers) throws DbxApiException, DbxException { + MembersAddV2Arg _arg = new MembersAddV2Arg(newMembers); + return membersAddV2(_arg); + } + + /** + * Adds members to a team. + * + *

Permission : Team member management

+ * + *

A maximum of 20 members can be specified in a single call.

+ * + *

If no Dropbox account exists with the email address specified, a new + * Dropbox account will be created with the given email address, and that + * account will be invited to the team.

+ * + *

If a personal Dropbox account exists with the email address specified + * in the call, this call will create a placeholder Dropbox account for the + * user on the team and send an email inviting the user to migrate their + * existing personal account onto the team.

+ * + *

Team member management apps are required to set an initial given_name + * and surname for a user to use in the team invitation and for 'Perform as + * team member' actions taken on the user before they become 'active'.

+ * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * @param forceAsync Whether to force the add to happen asynchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddLaunchV2Result membersAddV2(List newMembers, boolean forceAsync) throws DbxApiException, DbxException { + MembersAddV2Arg _arg = new MembersAddV2Arg(newMembers, forceAsync); + return membersAddV2(_arg); + } + + // + // route 2/team/members/add/job_status/get + // + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} , use this to poll the + * status of the asynchronous request. Permission : Team member management. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + MembersAddJobStatus membersAddJobStatusGet(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/add/job_status/get", + arg, + false, + PollArg.Serializer.INSTANCE, + MembersAddJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/team/members/add/job_status/get", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} , use this to poll the + * status of the asynchronous request. + * + *

Permission : Team member management.

+ * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddJobStatus membersAddJobStatusGet(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return membersAddJobStatusGet(_arg); + } + + // + // route 2/team/members/add/job_status/get_v2 + // + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersAddV2(List,boolean)} , use this to poll the + * status of the asynchronous request. Permission : Team member management. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + MembersAddJobStatusV2Result membersAddJobStatusGetV2(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/add/job_status/get_v2", + arg, + false, + PollArg.Serializer.INSTANCE, + MembersAddJobStatusV2Result.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/team/members/add/job_status/get_v2", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersAddV2(List,boolean)} , use this to poll the + * status of the asynchronous request. + * + *

Permission : Team member management.

+ * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddJobStatusV2Result membersAddJobStatusGetV2(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return membersAddJobStatusGetV2(_arg); + } + + // + // route 2/team/members/delete_profile_photo + // + + /** + * Deletes a team member's profile photo. Permission : Team member + * management. + * + * + * @return Information about a team member. + */ + TeamMemberInfo membersDeleteProfilePhoto(MembersDeleteProfilePhotoArg arg) throws MembersDeleteProfilePhotoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/delete_profile_photo", + arg, + false, + MembersDeleteProfilePhotoArg.Serializer.INSTANCE, + TeamMemberInfo.Serializer.INSTANCE, + MembersDeleteProfilePhotoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersDeleteProfilePhotoErrorException("2/team/members/delete_profile_photo", ex.getRequestId(), ex.getUserMessage(), (MembersDeleteProfilePhotoError) ex.getErrorValue()); + } + } + + /** + * Deletes a team member's profile photo. + * + *

Permission : Team member management.

+ * + * @param user Identity of the user whose profile photo will be deleted. + * Must not be {@code null}. + * + * @return Information about a team member. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfo membersDeleteProfilePhoto(UserSelectorArg user) throws MembersDeleteProfilePhotoErrorException, DbxException { + MembersDeleteProfilePhotoArg _arg = new MembersDeleteProfilePhotoArg(user); + return membersDeleteProfilePhoto(_arg); + } + + // + // route 2/team/members/delete_profile_photo_v2 + // + + /** + * Deletes a team member's profile photo. Permission : Team member + * management. + * + * + * @return Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + */ + TeamMemberInfoV2Result membersDeleteProfilePhotoV2(MembersDeleteProfilePhotoArg arg) throws MembersDeleteProfilePhotoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/delete_profile_photo_v2", + arg, + false, + MembersDeleteProfilePhotoArg.Serializer.INSTANCE, + TeamMemberInfoV2Result.Serializer.INSTANCE, + MembersDeleteProfilePhotoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersDeleteProfilePhotoErrorException("2/team/members/delete_profile_photo_v2", ex.getRequestId(), ex.getUserMessage(), (MembersDeleteProfilePhotoError) ex.getErrorValue()); + } + } + + /** + * Deletes a team member's profile photo. + * + *

Permission : Team member management.

+ * + * @param user Identity of the user whose profile photo will be deleted. + * Must not be {@code null}. + * + * @return Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfoV2Result membersDeleteProfilePhotoV2(UserSelectorArg user) throws MembersDeleteProfilePhotoErrorException, DbxException { + MembersDeleteProfilePhotoArg _arg = new MembersDeleteProfilePhotoArg(user); + return membersDeleteProfilePhotoV2(_arg); + } + + // + // route 2/team/members/get_available_team_member_roles + // + + /** + * Get available TeamMemberRoles for the connected team. To be used with + * {@link + * DbxTeamTeamRequests#membersSetAdminPermissionsV2(UserSelectorArg,List)}. + * Permission : Team member management. + * + * @return Available TeamMemberRole for the connected team. To be used with + * {@link + * DbxTeamTeamRequests#membersSetAdminPermissionsV2(UserSelectorArg,List)}. + */ + public MembersGetAvailableTeamMemberRolesResult membersGetAvailableTeamMemberRoles() throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/get_available_team_member_roles", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + MembersGetAvailableTeamMemberRolesResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"members/get_available_team_member_roles\":" + ex.getErrorValue()); + } + } + + // + // route 2/team/members/get_info + // + + /** + * Returns information about multiple team members. Permission : Team + * information This endpoint will return {@link + * MembersGetInfoItem#getIdNotFoundValue}, for IDs (or emails) that cannot + * be matched to a valid team member. + * + */ + List membersGetInfo(MembersGetInfoArgs arg) throws MembersGetInfoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/get_info", + arg, + false, + MembersGetInfoArgs.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(MembersGetInfoItem.Serializer.INSTANCE), + MembersGetInfoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersGetInfoErrorException("2/team/members/get_info", ex.getRequestId(), ex.getUserMessage(), (MembersGetInfoError) ex.getErrorValue()); + } + } + + /** + * Returns information about multiple team members. + * + *

Permission : Team information

+ * + *

This endpoint will return {@link + * MembersGetInfoItem#getIdNotFoundValue}, for IDs (or emails) that cannot + * be matched to a valid team member.

+ * + * @param members List of team members. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List membersGetInfo(List members) throws MembersGetInfoErrorException, DbxException { + MembersGetInfoArgs _arg = new MembersGetInfoArgs(members); + return membersGetInfo(_arg); + } + + // + // route 2/team/members/get_info_v2 + // + + /** + * Returns information about multiple team members. Permission : Team + * information This endpoint will return {@link + * MembersGetInfoItem#getIdNotFoundValue}, for IDs (or emails) that cannot + * be matched to a valid team member. + * + */ + MembersGetInfoV2Result membersGetInfoV2(MembersGetInfoV2Arg arg) throws MembersGetInfoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/get_info_v2", + arg, + false, + MembersGetInfoV2Arg.Serializer.INSTANCE, + MembersGetInfoV2Result.Serializer.INSTANCE, + MembersGetInfoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersGetInfoErrorException("2/team/members/get_info_v2", ex.getRequestId(), ex.getUserMessage(), (MembersGetInfoError) ex.getErrorValue()); + } + } + + /** + * Returns information about multiple team members. + * + *

Permission : Team information

+ * + *

This endpoint will return {@link + * MembersGetInfoItem#getIdNotFoundValue}, for IDs (or emails) that cannot + * be matched to a valid team member.

+ * + * @param members List of team members. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersGetInfoV2Result membersGetInfoV2(List members) throws MembersGetInfoErrorException, DbxException { + MembersGetInfoV2Arg _arg = new MembersGetInfoV2Arg(members); + return membersGetInfoV2(_arg); + } + + // + // route 2/team/members/list + // + + /** + * Lists members of a team. Permission : Team information. + * + */ + MembersListResult membersList(MembersListArg arg) throws MembersListErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/list", + arg, + false, + MembersListArg.Serializer.INSTANCE, + MembersListResult.Serializer.INSTANCE, + MembersListError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersListErrorException("2/team/members/list", ex.getRequestId(), ex.getUserMessage(), (MembersListError) ex.getErrorValue()); + } + } + + /** + * Lists members of a team. + * + *

Permission : Team information.

+ * + *

The default values for the optional request parameters will be used. + * See {@link MembersListBuilder} for more details.

+ */ + public MembersListResult membersList() throws MembersListErrorException, DbxException { + MembersListArg _arg = new MembersListArg(); + return membersList(_arg); + } + + /** + * Lists members of a team. Permission : Team information. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public MembersListBuilder membersListBuilder() { + MembersListArg.Builder argBuilder_ = MembersListArg.newBuilder(); + return new MembersListBuilder(this, argBuilder_); + } + + // + // route 2/team/members/list_v2 + // + + /** + * Lists members of a team. Permission : Team information. + * + */ + MembersListV2Result membersListV2(MembersListArg arg) throws MembersListErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/list_v2", + arg, + false, + MembersListArg.Serializer.INSTANCE, + MembersListV2Result.Serializer.INSTANCE, + MembersListError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersListErrorException("2/team/members/list_v2", ex.getRequestId(), ex.getUserMessage(), (MembersListError) ex.getErrorValue()); + } + } + + /** + * Lists members of a team. + * + *

Permission : Team information.

+ * + *

The default values for the optional request parameters will be used. + * See {@link MembersListV2Builder} for more details.

+ */ + public MembersListV2Result membersListV2() throws MembersListErrorException, DbxException { + MembersListArg _arg = new MembersListArg(); + return membersListV2(_arg); + } + + /** + * Lists members of a team. Permission : Team information. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public MembersListV2Builder membersListV2Builder() { + MembersListArg.Builder argBuilder_ = MembersListArg.newBuilder(); + return new MembersListV2Builder(this, argBuilder_); + } + + // + // route 2/team/members/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#membersList}, use this to paginate through all team + * members. Permission : Team information. + * + */ + MembersListResult membersListContinue(MembersListContinueArg arg) throws MembersListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/list/continue", + arg, + false, + MembersListContinueArg.Serializer.INSTANCE, + MembersListResult.Serializer.INSTANCE, + MembersListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersListContinueErrorException("2/team/members/list/continue", ex.getRequestId(), ex.getUserMessage(), (MembersListContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#membersList}, use this to paginate through all team + * members. + * + *

Permission : Team information.

+ * + * @param cursor Indicates from what point to get the next set of members. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListResult membersListContinue(String cursor) throws MembersListContinueErrorException, DbxException { + MembersListContinueArg _arg = new MembersListContinueArg(cursor); + return membersListContinue(_arg); + } + + // + // route 2/team/members/list/continue_v2 + // + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#membersListV2}, use this to paginate through all team + * members. Permission : Team information. + * + */ + MembersListV2Result membersListContinueV2(MembersListContinueArg arg) throws MembersListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/list/continue_v2", + arg, + false, + MembersListContinueArg.Serializer.INSTANCE, + MembersListV2Result.Serializer.INSTANCE, + MembersListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersListContinueErrorException("2/team/members/list/continue_v2", ex.getRequestId(), ex.getUserMessage(), (MembersListContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#membersListV2}, use this to paginate through all team + * members. + * + *

Permission : Team information.

+ * + * @param cursor Indicates from what point to get the next set of members. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListV2Result membersListContinueV2(String cursor) throws MembersListContinueErrorException, DbxException { + MembersListContinueArg _arg = new MembersListContinueArg(cursor); + return membersListContinueV2(_arg); + } + + // + // route 2/team/members/move_former_member_files + // + + /** + * Moves removed member's files to a different member. This endpoint + * initiates an asynchronous job. To obtain the final result of the job, the + * client should periodically poll {@link + * DbxTeamTeamRequests#membersMoveFormerMemberFilesJobStatusCheck(String)}. + * Permission : Team member management. + * + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + */ + LaunchEmptyResult membersMoveFormerMemberFiles(MembersDataTransferArg arg) throws MembersTransferFormerMembersFilesErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/move_former_member_files", + arg, + false, + MembersDataTransferArg.Serializer.INSTANCE, + LaunchEmptyResult.Serializer.INSTANCE, + MembersTransferFormerMembersFilesError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersTransferFormerMembersFilesErrorException("2/team/members/move_former_member_files", ex.getRequestId(), ex.getUserMessage(), (MembersTransferFormerMembersFilesError) ex.getErrorValue()); + } + } + + /** + * Moves removed member's files to a different member. This endpoint + * initiates an asynchronous job. To obtain the final result of the job, the + * client should periodically poll {@link + * DbxTeamTeamRequests#membersMoveFormerMemberFilesJobStatusCheck(String)}. + * + *

Permission : Team member management.

+ * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * @param transferDestId Files from the deleted member account will be + * transferred to this user. Must not be {@code null}. + * @param transferAdminId Errors during the transfer process will be sent + * via email to this user. Must not be {@code null}. + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LaunchEmptyResult membersMoveFormerMemberFiles(UserSelectorArg user, UserSelectorArg transferDestId, UserSelectorArg transferAdminId) throws MembersTransferFormerMembersFilesErrorException, DbxException { + MembersDataTransferArg _arg = new MembersDataTransferArg(user, transferDestId, transferAdminId); + return membersMoveFormerMemberFiles(_arg); + } + + // + // route 2/team/members/move_former_member_files/job_status/check + // + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersMoveFormerMemberFiles(UserSelectorArg,UserSelectorArg,UserSelectorArg)} + * , use this to poll the status of the asynchronous request. Permission : + * Team member management. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + * + * @return Result returned by methods that poll for the status of an + * asynchronous job. Upon completion of the job, no additional + * information is returned. + */ + PollEmptyResult membersMoveFormerMemberFilesJobStatusCheck(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/move_former_member_files/job_status/check", + arg, + false, + PollArg.Serializer.INSTANCE, + PollEmptyResult.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/team/members/move_former_member_files/job_status/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersMoveFormerMemberFiles(UserSelectorArg,UserSelectorArg,UserSelectorArg)} + * , use this to poll the status of the asynchronous request. + * + *

Permission : Team member management.

+ * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @return Result returned by methods that poll for the status of an + * asynchronous job. Upon completion of the job, no additional + * information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PollEmptyResult membersMoveFormerMemberFilesJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return membersMoveFormerMemberFilesJobStatusCheck(_arg); + } + + // + // route 2/team/members/recover + // + + /** + * Recover a deleted member. Permission : Team member management Exactly one + * of team_member_id, email, or external_id must be provided to identify the + * user account. + * + * @param arg Exactly one of team_member_id, email, or external_id must be + * provided to identify the user account. + */ + void membersRecover(MembersRecoverArg arg) throws MembersRecoverErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/recover", + arg, + false, + MembersRecoverArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + MembersRecoverError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersRecoverErrorException("2/team/members/recover", ex.getRequestId(), ex.getUserMessage(), (MembersRecoverError) ex.getErrorValue()); + } + } + + /** + * Recover a deleted member. + * + *

Permission : Team member management

+ * + *

Exactly one of team_member_id, email, or external_id must be provided + * to identify the user account.

+ * + * @param user Identity of user to recover. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void membersRecover(UserSelectorArg user) throws MembersRecoverErrorException, DbxException { + MembersRecoverArg _arg = new MembersRecoverArg(user); + membersRecover(_arg); + } + + // + // route 2/team/members/remove + // + + /** + * Removes a member from a team. Permission : Team member management Exactly + * one of team_member_id, email, or external_id must be provided to identify + * the user account. Accounts can be recovered via {@link + * DbxTeamTeamRequests#membersRecover(UserSelectorArg)} for a 7 day period + * or until the account has been permanently deleted or transferred to + * another account (whichever comes first). Calling {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} while a user is still + * recoverable on your team will return with {@link + * MemberAddResult#getUserAlreadyOnTeamValue}. Accounts can have their files + * transferred via the admin console for a limited time, based on the + * version history length associated with the team (180 days for most + * teams). This endpoint may initiate an asynchronous job. To obtain the + * final result of the job, the client should periodically poll {@link + * DbxTeamTeamRequests#membersRemoveJobStatusGet(String)}. + * + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + */ + LaunchEmptyResult membersRemove(MembersRemoveArg arg) throws MembersRemoveErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/remove", + arg, + false, + MembersRemoveArg.Serializer.INSTANCE, + LaunchEmptyResult.Serializer.INSTANCE, + MembersRemoveError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersRemoveErrorException("2/team/members/remove", ex.getRequestId(), ex.getUserMessage(), (MembersRemoveError) ex.getErrorValue()); + } + } + + /** + * Removes a member from a team. + * + *

Permission : Team member management

+ * + *

Exactly one of team_member_id, email, or external_id must be provided + * to identify the user account.

+ * + *

Accounts can be recovered via {@link + * DbxTeamTeamRequests#membersRecover(UserSelectorArg)} for a 7 day period + * or until the account has been permanently deleted or transferred to + * another account (whichever comes first). Calling {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} while a user is still + * recoverable on your team will return with {@link + * MemberAddResult#getUserAlreadyOnTeamValue}.

+ * + *

Accounts can have their files transferred via the admin console for a + * limited time, based on the version history length associated with the + * team (180 days for most teams).

+ * + *

This endpoint may initiate an asynchronous job. To obtain the final + * result of the job, the client should periodically poll {@link + * DbxTeamTeamRequests#membersRemoveJobStatusGet(String)}.

+ * + *

The default values for the optional request parameters will be used. + * See {@link MembersRemoveBuilder} for more details.

+ * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * + * @return Result returned by methods that may either launch an asynchronous + * job or complete synchronously. Upon synchronous completion of the + * job, no additional information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LaunchEmptyResult membersRemove(UserSelectorArg user) throws MembersRemoveErrorException, DbxException { + MembersRemoveArg _arg = new MembersRemoveArg(user); + return membersRemove(_arg); + } + + /** + * Removes a member from a team. Permission : Team member management Exactly + * one of team_member_id, email, or external_id must be provided to identify + * the user account. Accounts can be recovered via {@link + * DbxTeamTeamRequests#membersRecover(UserSelectorArg)} for a 7 day period + * or until the account has been permanently deleted or transferred to + * another account (whichever comes first). Calling {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} while a user is still + * recoverable on your team will return with {@link + * MemberAddResult#getUserAlreadyOnTeamValue}. Accounts can have their files + * transferred via the admin console for a limited time, based on the + * version history length associated with the team (180 days for most + * teams). This endpoint may initiate an asynchronous job. To obtain the + * final result of the job, the client should periodically poll {@link + * DbxTeamTeamRequests#membersRemoveJobStatusGet(String)}. + * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersRemoveBuilder membersRemoveBuilder(UserSelectorArg user) { + MembersRemoveArg.Builder argBuilder_ = MembersRemoveArg.newBuilder(user); + return new MembersRemoveBuilder(this, argBuilder_); + } + + // + // route 2/team/members/remove/job_status/get + // + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersRemove(UserSelectorArg)} , use this to poll + * the status of the asynchronous request. Permission : Team member + * management. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + * + * @return Result returned by methods that poll for the status of an + * asynchronous job. Upon completion of the job, no additional + * information is returned. + */ + PollEmptyResult membersRemoveJobStatusGet(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/remove/job_status/get", + arg, + false, + PollArg.Serializer.INSTANCE, + PollEmptyResult.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/team/members/remove/job_status/get", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Once an async_job_id is returned from {@link + * DbxTeamTeamRequests#membersRemove(UserSelectorArg)} , use this to poll + * the status of the asynchronous request. + * + *

Permission : Team member management.

+ * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @return Result returned by methods that poll for the status of an + * asynchronous job. Upon completion of the job, no additional + * information is returned. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PollEmptyResult membersRemoveJobStatusGet(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return membersRemoveJobStatusGet(_arg); + } + + // + // route 2/team/members/secondary_emails/add + // + + /** + * Add secondary emails to users. Permission : Team member management. + * Emails that are on verified domains will be verified automatically. For + * each email address not on a verified domain a verification email will be + * sent. + * + */ + AddSecondaryEmailsResult membersSecondaryEmailsAdd(AddSecondaryEmailsArg arg) throws AddSecondaryEmailsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/secondary_emails/add", + arg, + false, + AddSecondaryEmailsArg.Serializer.INSTANCE, + AddSecondaryEmailsResult.Serializer.INSTANCE, + AddSecondaryEmailsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new AddSecondaryEmailsErrorException("2/team/members/secondary_emails/add", ex.getRequestId(), ex.getUserMessage(), (AddSecondaryEmailsError) ex.getErrorValue()); + } + } + + /** + * Add secondary emails to users. + * + *

Permission : Team member management.

+ * + *

Emails that are on verified domains will be verified automatically. + * For each email address not on a verified domain a verification email will + * be sent.

+ * + * @param newSecondaryEmails List of users and secondary emails to add. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AddSecondaryEmailsResult membersSecondaryEmailsAdd(List newSecondaryEmails) throws AddSecondaryEmailsErrorException, DbxException { + AddSecondaryEmailsArg _arg = new AddSecondaryEmailsArg(newSecondaryEmails); + return membersSecondaryEmailsAdd(_arg); + } + + // + // route 2/team/members/secondary_emails/delete + // + + /** + * Delete secondary emails from users Permission : Team member management. + * Users will be notified of deletions of verified secondary emails at both + * the secondary email and their primary email. + * + */ + DeleteSecondaryEmailsResult membersSecondaryEmailsDelete(DeleteSecondaryEmailsArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/secondary_emails/delete", + arg, + false, + DeleteSecondaryEmailsArg.Serializer.INSTANCE, + DeleteSecondaryEmailsResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"members/secondary_emails/delete\":" + ex.getErrorValue()); + } + } + + /** + * Delete secondary emails from users + * + *

Permission : Team member management.

+ * + *

Users will be notified of deletions of verified secondary emails at + * both the secondary email and their primary email.

+ * + * @param emailsToDelete List of users and their secondary emails to + * delete. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteSecondaryEmailsResult membersSecondaryEmailsDelete(List emailsToDelete) throws DbxApiException, DbxException { + DeleteSecondaryEmailsArg _arg = new DeleteSecondaryEmailsArg(emailsToDelete); + return membersSecondaryEmailsDelete(_arg); + } + + // + // route 2/team/members/secondary_emails/resend_verification_emails + // + + /** + * Resend secondary email verification emails. Permission : Team member + * management. + * + * + * @return List of users and resend results. + */ + ResendVerificationEmailResult membersSecondaryEmailsResendVerificationEmails(ResendVerificationEmailArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/secondary_emails/resend_verification_emails", + arg, + false, + ResendVerificationEmailArg.Serializer.INSTANCE, + ResendVerificationEmailResult.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"members/secondary_emails/resend_verification_emails\":" + ex.getErrorValue()); + } + } + + /** + * Resend secondary email verification emails. + * + *

Permission : Team member management.

+ * + * @param emailsToResend List of users and secondary emails to resend + * verification emails to. Must not contain a {@code null} item and not + * be {@code null}. + * + * @return List of users and resend results. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResendVerificationEmailResult membersSecondaryEmailsResendVerificationEmails(List emailsToResend) throws DbxApiException, DbxException { + ResendVerificationEmailArg _arg = new ResendVerificationEmailArg(emailsToResend); + return membersSecondaryEmailsResendVerificationEmails(_arg); + } + + // + // route 2/team/members/send_welcome_email + // + + /** + * Sends welcome email to pending team member. Permission : Team member + * management Exactly one of team_member_id, email, or external_id must be + * provided to identify the user account. No-op if team member is not + * pending. + * + * @param arg Argument for selecting a single user, either by + * team_member_id, external_id or email. + */ + public void membersSendWelcomeEmail(UserSelectorArg arg) throws MembersSendWelcomeErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/send_welcome_email", + arg, + false, + UserSelectorArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + MembersSendWelcomeError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSendWelcomeErrorException("2/team/members/send_welcome_email", ex.getRequestId(), ex.getUserMessage(), (MembersSendWelcomeError) ex.getErrorValue()); + } + } + + // + // route 2/team/members/set_admin_permissions + // + + /** + * Updates a team member's permissions. Permission : Team member management. + * + * @param arg Exactly one of team_member_id, email, or external_id must be + * provided to identify the user account. + */ + MembersSetPermissionsResult membersSetAdminPermissions(MembersSetPermissionsArg arg) throws MembersSetPermissionsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/set_admin_permissions", + arg, + false, + MembersSetPermissionsArg.Serializer.INSTANCE, + MembersSetPermissionsResult.Serializer.INSTANCE, + MembersSetPermissionsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSetPermissionsErrorException("2/team/members/set_admin_permissions", ex.getRequestId(), ex.getUserMessage(), (MembersSetPermissionsError) ex.getErrorValue()); + } + } + + /** + * Updates a team member's permissions. + * + *

Permission : Team member management.

+ * + * @param user Identity of user whose role will be set. Must not be {@code + * null}. + * @param newRole The new role of the member. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissionsResult membersSetAdminPermissions(UserSelectorArg user, AdminTier newRole) throws MembersSetPermissionsErrorException, DbxException { + MembersSetPermissionsArg _arg = new MembersSetPermissionsArg(user, newRole); + return membersSetAdminPermissions(_arg); + } + + // + // route 2/team/members/set_admin_permissions_v2 + // + + /** + * Updates a team member's permissions. Permission : Team member management. + * + * @param arg Exactly one of team_member_id, email, or external_id must be + * provided to identify the user account. + */ + MembersSetPermissions2Result membersSetAdminPermissionsV2(MembersSetPermissions2Arg arg) throws MembersSetPermissions2ErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/set_admin_permissions_v2", + arg, + false, + MembersSetPermissions2Arg.Serializer.INSTANCE, + MembersSetPermissions2Result.Serializer.INSTANCE, + MembersSetPermissions2Error.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSetPermissions2ErrorException("2/team/members/set_admin_permissions_v2", ex.getRequestId(), ex.getUserMessage(), (MembersSetPermissions2Error) ex.getErrorValue()); + } + } + + /** + * Updates a team member's permissions. + * + *

Permission : Team member management.

+ * + * @param user Identity of user whose role will be set. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissions2Result membersSetAdminPermissionsV2(UserSelectorArg user) throws MembersSetPermissions2ErrorException, DbxException { + MembersSetPermissions2Arg _arg = new MembersSetPermissions2Arg(user); + return membersSetAdminPermissionsV2(_arg); + } + + /** + * Updates a team member's permissions. + * + *

Permission : Team member management.

+ * + * @param user Identity of user whose role will be set. Must not be {@code + * null}. + * @param newRoles The new roles for the member. Send empty list to make + * user member only. For now, only up to one role is allowed. Must + * contain at most 1 items and not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissions2Result membersSetAdminPermissionsV2(UserSelectorArg user, List newRoles) throws MembersSetPermissions2ErrorException, DbxException { + if (newRoles != null) { + if (newRoles.size() > 1) { + throw new IllegalArgumentException("List 'newRoles' has more than 1 items"); + } + for (String x : newRoles) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'newRoles' is null"); + } + if (x.length() > 128) { + throw new IllegalArgumentException("Stringan item in list 'newRoles' is longer than 128"); + } + if (!java.util.regex.Pattern.matches("pid_dbtmr:.*", x)) { + throw new IllegalArgumentException("Stringan item in list 'newRoles' does not match pattern"); + } + } + } + MembersSetPermissions2Arg _arg = new MembersSetPermissions2Arg(user, newRoles); + return membersSetAdminPermissionsV2(_arg); + } + + // + // route 2/team/members/set_profile + // + + /** + * Updates a team member's profile. Permission : Team member management. + * + * @param arg Exactly one of team_member_id, email, or external_id must be + * provided to identify the user account. At least one of new_email, + * new_external_id, new_given_name, and/or new_surname must be provided. + * + * @return Information about a team member. + */ + TeamMemberInfo membersSetProfile(MembersSetProfileArg arg) throws MembersSetProfileErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/set_profile", + arg, + false, + MembersSetProfileArg.Serializer.INSTANCE, + TeamMemberInfo.Serializer.INSTANCE, + MembersSetProfileError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSetProfileErrorException("2/team/members/set_profile", ex.getRequestId(), ex.getUserMessage(), (MembersSetProfileError) ex.getErrorValue()); + } + } + + /** + * Updates a team member's profile. + * + *

Permission : Team member management.

+ * + * @param user Identity of user whose profile will be set. Must not be + * {@code null}. + * + * @return Information about a team member. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfo membersSetProfile(UserSelectorArg user) throws MembersSetProfileErrorException, DbxException { + MembersSetProfileArg _arg = new MembersSetProfileArg(user); + return membersSetProfile(_arg); + } + + /** + * Updates a team member's profile. Permission : Team member management. + * + * @param user Identity of user whose profile will be set. Must not be + * {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileBuilder membersSetProfileBuilder(UserSelectorArg user) { + MembersSetProfileArg.Builder argBuilder_ = MembersSetProfileArg.newBuilder(user); + return new MembersSetProfileBuilder(this, argBuilder_); + } + + // + // route 2/team/members/set_profile_v2 + // + + /** + * Updates a team member's profile. Permission : Team member management. + * + * @param arg Exactly one of team_member_id, email, or external_id must be + * provided to identify the user account. At least one of new_email, + * new_external_id, new_given_name, and/or new_surname must be provided. + * + * @return Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + */ + TeamMemberInfoV2Result membersSetProfileV2(MembersSetProfileArg arg) throws MembersSetProfileErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/set_profile_v2", + arg, + false, + MembersSetProfileArg.Serializer.INSTANCE, + TeamMemberInfoV2Result.Serializer.INSTANCE, + MembersSetProfileError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSetProfileErrorException("2/team/members/set_profile_v2", ex.getRequestId(), ex.getUserMessage(), (MembersSetProfileError) ex.getErrorValue()); + } + } + + /** + * Updates a team member's profile. + * + *

Permission : Team member management.

+ * + * @param user Identity of user whose profile will be set. Must not be + * {@code null}. + * + * @return Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfoV2Result membersSetProfileV2(UserSelectorArg user) throws MembersSetProfileErrorException, DbxException { + MembersSetProfileArg _arg = new MembersSetProfileArg(user); + return membersSetProfileV2(_arg); + } + + /** + * Updates a team member's profile. Permission : Team member management. + * + * @param user Identity of user whose profile will be set. Must not be + * {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileV2Builder membersSetProfileV2Builder(UserSelectorArg user) { + MembersSetProfileArg.Builder argBuilder_ = MembersSetProfileArg.newBuilder(user); + return new MembersSetProfileV2Builder(this, argBuilder_); + } + + // + // route 2/team/members/set_profile_photo + // + + /** + * Updates a team member's profile photo. Permission : Team member + * management. + * + * + * @return Information about a team member. + */ + TeamMemberInfo membersSetProfilePhoto(MembersSetProfilePhotoArg arg) throws MembersSetProfilePhotoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/set_profile_photo", + arg, + false, + MembersSetProfilePhotoArg.Serializer.INSTANCE, + TeamMemberInfo.Serializer.INSTANCE, + MembersSetProfilePhotoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSetProfilePhotoErrorException("2/team/members/set_profile_photo", ex.getRequestId(), ex.getUserMessage(), (MembersSetProfilePhotoError) ex.getErrorValue()); + } + } + + /** + * Updates a team member's profile photo. + * + *

Permission : Team member management.

+ * + * @param user Identity of the user whose profile photo will be set. Must + * not be {@code null}. + * @param photo Image to set as the member's new profile photo. Must not be + * {@code null}. + * + * @return Information about a team member. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfo membersSetProfilePhoto(UserSelectorArg user, PhotoSourceArg photo) throws MembersSetProfilePhotoErrorException, DbxException { + MembersSetProfilePhotoArg _arg = new MembersSetProfilePhotoArg(user, photo); + return membersSetProfilePhoto(_arg); + } + + // + // route 2/team/members/set_profile_photo_v2 + // + + /** + * Updates a team member's profile photo. Permission : Team member + * management. + * + * + * @return Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + */ + TeamMemberInfoV2Result membersSetProfilePhotoV2(MembersSetProfilePhotoArg arg) throws MembersSetProfilePhotoErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/set_profile_photo_v2", + arg, + false, + MembersSetProfilePhotoArg.Serializer.INSTANCE, + TeamMemberInfoV2Result.Serializer.INSTANCE, + MembersSetProfilePhotoError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSetProfilePhotoErrorException("2/team/members/set_profile_photo_v2", ex.getRequestId(), ex.getUserMessage(), (MembersSetProfilePhotoError) ex.getErrorValue()); + } + } + + /** + * Updates a team member's profile photo. + * + *

Permission : Team member management.

+ * + * @param user Identity of the user whose profile photo will be set. Must + * not be {@code null}. + * @param photo Image to set as the member's new profile photo. Must not be + * {@code null}. + * + * @return Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfoV2Result membersSetProfilePhotoV2(UserSelectorArg user, PhotoSourceArg photo) throws MembersSetProfilePhotoErrorException, DbxException { + MembersSetProfilePhotoArg _arg = new MembersSetProfilePhotoArg(user, photo); + return membersSetProfilePhotoV2(_arg); + } + + // + // route 2/team/members/suspend + // + + /** + * Suspend a member from a team. Permission : Team member management Exactly + * one of team_member_id, email, or external_id must be provided to identify + * the user account. + * + */ + void membersSuspend(MembersDeactivateArg arg) throws MembersSuspendErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/suspend", + arg, + false, + MembersDeactivateArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + MembersSuspendError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersSuspendErrorException("2/team/members/suspend", ex.getRequestId(), ex.getUserMessage(), (MembersSuspendError) ex.getErrorValue()); + } + } + + /** + * Suspend a member from a team. + * + *

Permission : Team member management

+ * + *

Exactly one of team_member_id, email, or external_id must be provided + * to identify the user account.

+ * + *

The {@code wipeData} request parameter will default to {@code true} + * (see {@link #membersSuspend(UserSelectorArg,boolean)}).

+ * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void membersSuspend(UserSelectorArg user) throws MembersSuspendErrorException, DbxException { + MembersDeactivateArg _arg = new MembersDeactivateArg(user); + membersSuspend(_arg); + } + + /** + * Suspend a member from a team. + * + *

Permission : Team member management

+ * + *

Exactly one of team_member_id, email, or external_id must be provided + * to identify the user account.

+ * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * @param wipeData If provided, controls if the user's data will be deleted + * on their linked devices. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void membersSuspend(UserSelectorArg user, boolean wipeData) throws MembersSuspendErrorException, DbxException { + MembersDeactivateArg _arg = new MembersDeactivateArg(user, wipeData); + membersSuspend(_arg); + } + + // + // route 2/team/members/unsuspend + // + + /** + * Unsuspend a member from a team. Permission : Team member management + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + * + * @param arg Exactly one of team_member_id, email, or external_id must be + * provided to identify the user account. + */ + void membersUnsuspend(MembersUnsuspendArg arg) throws MembersUnsuspendErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/members/unsuspend", + arg, + false, + MembersUnsuspendArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + MembersUnsuspendError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new MembersUnsuspendErrorException("2/team/members/unsuspend", ex.getRequestId(), ex.getUserMessage(), (MembersUnsuspendError) ex.getErrorValue()); + } + } + + /** + * Unsuspend a member from a team. + * + *

Permission : Team member management

+ * + *

Exactly one of team_member_id, email, or external_id must be provided + * to identify the user account.

+ * + * @param user Identity of user to unsuspend. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void membersUnsuspend(UserSelectorArg user) throws MembersUnsuspendErrorException, DbxException { + MembersUnsuspendArg _arg = new MembersUnsuspendArg(user); + membersUnsuspend(_arg); + } + + // + // route 2/team/namespaces/list + // + + /** + * Returns a list of all team-accessible namespaces. This list includes team + * folders, shared folders containing team members, team members' home + * namespaces, and team members' app folders. Home namespaces and app + * folders are always owned by this team or members of the team, but shared + * folders may be owned by other users or other teams. Duplicates may occur + * in the list. + * + * + * @return Result for {@link DbxTeamTeamRequests#namespacesList(long)}. + */ + TeamNamespacesListResult namespacesList(TeamNamespacesListArg arg) throws TeamNamespacesListErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/namespaces/list", + arg, + false, + TeamNamespacesListArg.Serializer.INSTANCE, + TeamNamespacesListResult.Serializer.INSTANCE, + TeamNamespacesListError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamNamespacesListErrorException("2/team/namespaces/list", ex.getRequestId(), ex.getUserMessage(), (TeamNamespacesListError) ex.getErrorValue()); + } + } + + /** + * Returns a list of all team-accessible namespaces. This list includes team + * folders, shared folders containing team members, team members' home + * namespaces, and team members' app folders. Home namespaces and app + * folders are always owned by this team or members of the team, but shared + * folders may be owned by other users or other teams. Duplicates may occur + * in the list. + * + *

The {@code limit} request parameter will default to {@code 1000L} + * (see {@link #namespacesList(long)}).

+ * + * @return Result for {@link DbxTeamTeamRequests#namespacesList(long)}. + */ + public TeamNamespacesListResult namespacesList() throws TeamNamespacesListErrorException, DbxException { + TeamNamespacesListArg _arg = new TeamNamespacesListArg(); + return namespacesList(_arg); + } + + /** + * Returns a list of all team-accessible namespaces. This list includes team + * folders, shared folders containing team members, team members' home + * namespaces, and team members' app folders. Home namespaces and app + * folders are always owned by this team or members of the team, but shared + * folders may be owned by other users or other teams. Duplicates may occur + * in the list. + * + * @param limit Specifying a value here has no effect. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @return Result for {@link DbxTeamTeamRequests#namespacesList(long)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamNamespacesListResult namespacesList(long limit) throws TeamNamespacesListErrorException, DbxException { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + TeamNamespacesListArg _arg = new TeamNamespacesListArg(limit); + return namespacesList(_arg); + } + + // + // route 2/team/namespaces/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#namespacesList(long)}, use this to paginate through + * all team-accessible namespaces. Duplicates may occur in the list. + * + * + * @return Result for {@link DbxTeamTeamRequests#namespacesList(long)}. + */ + TeamNamespacesListResult namespacesListContinue(TeamNamespacesListContinueArg arg) throws TeamNamespacesListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/namespaces/list/continue", + arg, + false, + TeamNamespacesListContinueArg.Serializer.INSTANCE, + TeamNamespacesListResult.Serializer.INSTANCE, + TeamNamespacesListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamNamespacesListContinueErrorException("2/team/namespaces/list/continue", ex.getRequestId(), ex.getUserMessage(), (TeamNamespacesListContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#namespacesList(long)}, use this to paginate through + * all team-accessible namespaces. Duplicates may occur in the list. + * + * @param cursor Indicates from what point to get the next set of + * team-accessible namespaces. Must not be {@code null}. + * + * @return Result for {@link DbxTeamTeamRequests#namespacesList(long)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamNamespacesListResult namespacesListContinue(String cursor) throws TeamNamespacesListContinueErrorException, DbxException { + TeamNamespacesListContinueArg _arg = new TeamNamespacesListContinueArg(cursor); + return namespacesListContinue(_arg); + } + + // + // route 2/team/properties/template/add + // + + /** + * Permission : Team member file access. + * + */ + AddTemplateResult propertiesTemplateAdd(AddTemplateArg arg) throws ModifyTemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/properties/template/add", + arg, + false, + AddTemplateArg.Serializer.INSTANCE, + AddTemplateResult.Serializer.INSTANCE, + ModifyTemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ModifyTemplateErrorException("2/team/properties/template/add", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); + } + } + + /** + * Permission : Team member file access. + * + * @param name Display name for the template. Template names can be up to + * 256 bytes. Must not be {@code null}. + * @param description Description for the template. Template descriptions + * can be up to 1024 bytes. Must not be {@code null}. + * @param fields Definitions of the property fields associated with this + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public AddTemplateResult propertiesTemplateAdd(String name, String description, List fields) throws ModifyTemplateErrorException, DbxException { + AddTemplateArg _arg = new AddTemplateArg(name, description, fields); + return propertiesTemplateAdd(_arg); + } + + // + // route 2/team/properties/template/get + // + + /** + * Permission : Team member file access. The scope for the route is + * files.team_metadata.write. + * + */ + GetTemplateResult propertiesTemplateGet(GetTemplateArg arg) throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/properties/template/get", + arg, + false, + GetTemplateArg.Serializer.INSTANCE, + GetTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/team/properties/template/get", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + /** + * Permission : Team member file access. The scope for the route is + * files.team_metadata.write. + * + * @param templateId An identifier for template added by route See {@link + * com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public GetTemplateResult propertiesTemplateGet(String templateId) throws TemplateErrorException, DbxException { + GetTemplateArg _arg = new GetTemplateArg(templateId); + return propertiesTemplateGet(_arg); + } + + // + // route 2/team/properties/template/list + // + + /** + * Permission : Team member file access. The scope for the route is + * files.team_metadata.write. + * + * @deprecated + */ + @Deprecated + public ListTemplateResult propertiesTemplateList() throws TemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/properties/template/list", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + ListTemplateResult.Serializer.INSTANCE, + TemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TemplateErrorException("2/team/properties/template/list", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); + } + } + + // + // route 2/team/properties/template/update + // + + /** + * Permission : Team member file access. + * + */ + UpdateTemplateResult propertiesTemplateUpdate(UpdateTemplateArg arg) throws ModifyTemplateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/properties/template/update", + arg, + false, + UpdateTemplateArg.Serializer.INSTANCE, + UpdateTemplateResult.Serializer.INSTANCE, + ModifyTemplateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ModifyTemplateErrorException("2/team/properties/template/update", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); + } + } + + /** + * Permission : Team member file access. + * + * @param templateId An identifier for template added by See {@link + * com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public UpdateTemplateResult propertiesTemplateUpdate(String templateId) throws ModifyTemplateErrorException, DbxException { + UpdateTemplateArg _arg = new UpdateTemplateArg(templateId); + return propertiesTemplateUpdate(_arg); + } + + /** + * Permission : Team member file access. + * + * @param templateId An identifier for template added by See {@link + * com.dropbox.core.v2.fileproperties.DbxUserFilePropertiesRequests#templatesAddForUser(String,String,List)} + * or {@link + * com.dropbox.core.v2.fileproperties.DbxTeamFilePropertiesRequests#templatesAddForTeam(String,String,List)}. + * Must have length of at least 1, match pattern "{@code (/|ptid:).*}", + * and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + * + * @deprecated + */ + @Deprecated + public PropertiesTemplateUpdateBuilder propertiesTemplateUpdateBuilder(String templateId) { + UpdateTemplateArg.Builder argBuilder_ = UpdateTemplateArg.newBuilder(templateId); + return new PropertiesTemplateUpdateBuilder(this, argBuilder_); + } + + // + // route 2/team/reports/get_activity + // + + /** + * Retrieves reporting data about a team's user activity. Deprecated: Will + * be removed on July 1st 2021. + * + * @param arg Input arguments that can be provided for most reports. + * + * @return Activity Report Result. Each of the items in the storage report + * is an array of values, one value per day. If there is no data for a + * day, then the value will be None. + */ + GetActivityReport reportsGetActivity(DateRange arg) throws DateRangeErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/reports/get_activity", + arg, + false, + DateRange.Serializer.INSTANCE, + GetActivityReport.Serializer.INSTANCE, + DateRangeError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DateRangeErrorException("2/team/reports/get_activity", ex.getRequestId(), ex.getUserMessage(), (DateRangeError) ex.getErrorValue()); + } + } + + /** + * Retrieves reporting data about a team's user activity. Deprecated: Will + * be removed on July 1st 2021. + * + * @return Activity Report Result. Each of the items in the storage report + * is an array of values, one value per day. If there is no data for a + * day, then the value will be None. + * + * @deprecated + */ + @Deprecated + public GetActivityReport reportsGetActivity() throws DateRangeErrorException, DbxException { + DateRange _arg = new DateRange(); + return reportsGetActivity(_arg); + } + + /** + * Retrieves reporting data about a team's user activity. Deprecated: Will + * be removed on July 1st 2021. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @deprecated + */ + @Deprecated + public ReportsGetActivityBuilder reportsGetActivityBuilder() { + DateRange.Builder argBuilder_ = DateRange.newBuilder(); + return new ReportsGetActivityBuilder(this, argBuilder_); + } + + // + // route 2/team/reports/get_devices + // + + /** + * Retrieves reporting data about a team's linked devices. Deprecated: Will + * be removed on July 1st 2021. + * + * @param arg Input arguments that can be provided for most reports. + * + * @return Devices Report Result. Contains subsections for different time + * ranges of activity. Each of the items in each subsection of the + * storage report is an array of values, one value per day. If there is + * no data for a day, then the value will be None. + */ + GetDevicesReport reportsGetDevices(DateRange arg) throws DateRangeErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/reports/get_devices", + arg, + false, + DateRange.Serializer.INSTANCE, + GetDevicesReport.Serializer.INSTANCE, + DateRangeError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DateRangeErrorException("2/team/reports/get_devices", ex.getRequestId(), ex.getUserMessage(), (DateRangeError) ex.getErrorValue()); + } + } + + /** + * Retrieves reporting data about a team's linked devices. Deprecated: Will + * be removed on July 1st 2021. + * + * @return Devices Report Result. Contains subsections for different time + * ranges of activity. Each of the items in each subsection of the + * storage report is an array of values, one value per day. If there is + * no data for a day, then the value will be None. + * + * @deprecated + */ + @Deprecated + public GetDevicesReport reportsGetDevices() throws DateRangeErrorException, DbxException { + DateRange _arg = new DateRange(); + return reportsGetDevices(_arg); + } + + /** + * Retrieves reporting data about a team's linked devices. Deprecated: Will + * be removed on July 1st 2021. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @deprecated + */ + @Deprecated + public ReportsGetDevicesBuilder reportsGetDevicesBuilder() { + DateRange.Builder argBuilder_ = DateRange.newBuilder(); + return new ReportsGetDevicesBuilder(this, argBuilder_); + } + + // + // route 2/team/reports/get_membership + // + + /** + * Retrieves reporting data about a team's membership. Deprecated: Will be + * removed on July 1st 2021. + * + * @param arg Input arguments that can be provided for most reports. + * + * @return Membership Report Result. Each of the items in the storage report + * is an array of values, one value per day. If there is no data for a + * day, then the value will be None. + */ + GetMembershipReport reportsGetMembership(DateRange arg) throws DateRangeErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/reports/get_membership", + arg, + false, + DateRange.Serializer.INSTANCE, + GetMembershipReport.Serializer.INSTANCE, + DateRangeError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DateRangeErrorException("2/team/reports/get_membership", ex.getRequestId(), ex.getUserMessage(), (DateRangeError) ex.getErrorValue()); + } + } + + /** + * Retrieves reporting data about a team's membership. Deprecated: Will be + * removed on July 1st 2021. + * + * @return Membership Report Result. Each of the items in the storage report + * is an array of values, one value per day. If there is no data for a + * day, then the value will be None. + * + * @deprecated + */ + @Deprecated + public GetMembershipReport reportsGetMembership() throws DateRangeErrorException, DbxException { + DateRange _arg = new DateRange(); + return reportsGetMembership(_arg); + } + + /** + * Retrieves reporting data about a team's membership. Deprecated: Will be + * removed on July 1st 2021. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @deprecated + */ + @Deprecated + public ReportsGetMembershipBuilder reportsGetMembershipBuilder() { + DateRange.Builder argBuilder_ = DateRange.newBuilder(); + return new ReportsGetMembershipBuilder(this, argBuilder_); + } + + // + // route 2/team/reports/get_storage + // + + /** + * Retrieves reporting data about a team's storage usage. Deprecated: Will + * be removed on July 1st 2021. + * + * @param arg Input arguments that can be provided for most reports. + * + * @return Storage Report Result. Each of the items in the storage report is + * an array of values, one value per day. If there is no data for a day, + * then the value will be None. + */ + GetStorageReport reportsGetStorage(DateRange arg) throws DateRangeErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/reports/get_storage", + arg, + false, + DateRange.Serializer.INSTANCE, + GetStorageReport.Serializer.INSTANCE, + DateRangeError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new DateRangeErrorException("2/team/reports/get_storage", ex.getRequestId(), ex.getUserMessage(), (DateRangeError) ex.getErrorValue()); + } + } + + /** + * Retrieves reporting data about a team's storage usage. Deprecated: Will + * be removed on July 1st 2021. + * + * @return Storage Report Result. Each of the items in the storage report is + * an array of values, one value per day. If there is no data for a day, + * then the value will be None. + * + * @deprecated + */ + @Deprecated + public GetStorageReport reportsGetStorage() throws DateRangeErrorException, DbxException { + DateRange _arg = new DateRange(); + return reportsGetStorage(_arg); + } + + /** + * Retrieves reporting data about a team's storage usage. Deprecated: Will + * be removed on July 1st 2021. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @deprecated + */ + @Deprecated + public ReportsGetStorageBuilder reportsGetStorageBuilder() { + DateRange.Builder argBuilder_ = DateRange.newBuilder(); + return new ReportsGetStorageBuilder(this, argBuilder_); + } + + // + // route 2/team/sharing_allowlist/add + // + + /** + * Endpoint adds Approve List entries. Changes are effective immediately. + * Changes are committed in transaction. In case of single validation error + * - all entries are rejected. Valid domains (RFC-1034/5) and emails + * (RFC-5322/822) are accepted. Added entries cannot overflow limit of 10000 + * entries per team. Maximum 100 entries per call is allowed. + * + * @param arg Structure representing Approve List entries. Domain and + * emails are supported. At least one entry of any supported type is + * required. + * + * @return This struct is empty. The comment here is intentionally emitted + * to avoid indentation issues with Stone. + */ + SharingAllowlistAddResponse sharingAllowlistAdd(SharingAllowlistAddArgs arg) throws SharingAllowlistAddErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/sharing_allowlist/add", + arg, + false, + SharingAllowlistAddArgs.Serializer.INSTANCE, + SharingAllowlistAddResponse.Serializer.INSTANCE, + SharingAllowlistAddError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharingAllowlistAddErrorException("2/team/sharing_allowlist/add", ex.getRequestId(), ex.getUserMessage(), (SharingAllowlistAddError) ex.getErrorValue()); + } + } + + /** + * Endpoint adds Approve List entries. Changes are effective immediately. + * Changes are committed in transaction. In case of single validation error + * - all entries are rejected. Valid domains (RFC-1034/5) and emails + * (RFC-5322/822) are accepted. Added entries cannot overflow limit of 10000 + * entries per team. Maximum 100 entries per call is allowed. + * + * @return This struct is empty. The comment here is intentionally emitted + * to avoid indentation issues with Stone. + */ + public SharingAllowlistAddResponse sharingAllowlistAdd() throws SharingAllowlistAddErrorException, DbxException { + SharingAllowlistAddArgs _arg = new SharingAllowlistAddArgs(); + return sharingAllowlistAdd(_arg); + } + + /** + * Endpoint adds Approve List entries. Changes are effective immediately. + * Changes are committed in transaction. In case of single validation error + * - all entries are rejected. Valid domains (RFC-1034/5) and emails + * (RFC-5322/822) are accepted. Added entries cannot overflow limit of 10000 + * entries per team. Maximum 100 entries per call is allowed. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public SharingAllowlistAddBuilder sharingAllowlistAddBuilder() { + SharingAllowlistAddArgs.Builder argBuilder_ = SharingAllowlistAddArgs.newBuilder(); + return new SharingAllowlistAddBuilder(this, argBuilder_); + } + + // + // route 2/team/sharing_allowlist/list + // + + /** + * Lists Approve List entries for given team, from newest to oldest, + * returning up to `limit` entries at a time. If there are more than `limit` + * entries associated with the current team, more can be fetched by passing + * the returned `cursor` to {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * + */ + SharingAllowlistListResponse sharingAllowlistList(SharingAllowlistListArg arg) throws SharingAllowlistListErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/sharing_allowlist/list", + arg, + false, + SharingAllowlistListArg.Serializer.INSTANCE, + SharingAllowlistListResponse.Serializer.INSTANCE, + SharingAllowlistListError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharingAllowlistListErrorException("2/team/sharing_allowlist/list", ex.getRequestId(), ex.getUserMessage(), (SharingAllowlistListError) ex.getErrorValue()); + } + } + + /** + * Lists Approve List entries for given team, from newest to oldest, + * returning up to `limit` entries at a time. If there are more than `limit` + * entries associated with the current team, more can be fetched by passing + * the returned `cursor` to {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * + *

The {@code limit} request parameter will default to {@code 1000L} + * (see {@link #sharingAllowlistList(long)}).

+ */ + public SharingAllowlistListResponse sharingAllowlistList() throws SharingAllowlistListErrorException, DbxException { + SharingAllowlistListArg _arg = new SharingAllowlistListArg(); + return sharingAllowlistList(_arg); + } + + /** + * Lists Approve List entries for given team, from newest to oldest, + * returning up to `limit` entries at a time. If there are more than `limit` + * entries associated with the current team, more can be fetched by passing + * the returned `cursor` to {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * + * @param limit The number of entries to fetch at one time. Must be greater + * than or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistListResponse sharingAllowlistList(long limit) throws SharingAllowlistListErrorException, DbxException { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + SharingAllowlistListArg _arg = new SharingAllowlistListArg(limit); + return sharingAllowlistList(_arg); + } + + // + // route 2/team/sharing_allowlist/list/continue + // + + /** + * Lists entries associated with given team, starting from a the cursor. See + * {@link DbxTeamTeamRequests#sharingAllowlistList(long)}. + * + */ + SharingAllowlistListResponse sharingAllowlistListContinue(SharingAllowlistListContinueArg arg) throws SharingAllowlistListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/sharing_allowlist/list/continue", + arg, + false, + SharingAllowlistListContinueArg.Serializer.INSTANCE, + SharingAllowlistListResponse.Serializer.INSTANCE, + SharingAllowlistListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharingAllowlistListContinueErrorException("2/team/sharing_allowlist/list/continue", ex.getRequestId(), ex.getUserMessage(), (SharingAllowlistListContinueError) ex.getErrorValue()); + } + } + + /** + * Lists entries associated with given team, starting from a the cursor. See + * {@link DbxTeamTeamRequests#sharingAllowlistList(long)}. + * + * @param cursor The cursor returned from a previous call to {@link + * DbxTeamTeamRequests#sharingAllowlistList(long)} or {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistListResponse sharingAllowlistListContinue(String cursor) throws SharingAllowlistListContinueErrorException, DbxException { + SharingAllowlistListContinueArg _arg = new SharingAllowlistListContinueArg(cursor); + return sharingAllowlistListContinue(_arg); + } + + // + // route 2/team/sharing_allowlist/remove + // + + /** + * Endpoint removes Approve List entries. Changes are effective immediately. + * Changes are committed in transaction. In case of single validation error + * - all entries are rejected. Valid domains (RFC-1034/5) and emails + * (RFC-5322/822) are accepted. Entries being removed have to be present on + * the list. Maximum 1000 entries per call is allowed. + * + * + * @return This struct is empty. The comment here is intentionally emitted + * to avoid indentation issues with Stone. + */ + SharingAllowlistRemoveResponse sharingAllowlistRemove(SharingAllowlistRemoveArgs arg) throws SharingAllowlistRemoveErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/sharing_allowlist/remove", + arg, + false, + SharingAllowlistRemoveArgs.Serializer.INSTANCE, + SharingAllowlistRemoveResponse.Serializer.INSTANCE, + SharingAllowlistRemoveError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new SharingAllowlistRemoveErrorException("2/team/sharing_allowlist/remove", ex.getRequestId(), ex.getUserMessage(), (SharingAllowlistRemoveError) ex.getErrorValue()); + } + } + + /** + * Endpoint removes Approve List entries. Changes are effective immediately. + * Changes are committed in transaction. In case of single validation error + * - all entries are rejected. Valid domains (RFC-1034/5) and emails + * (RFC-5322/822) are accepted. Entries being removed have to be present on + * the list. Maximum 1000 entries per call is allowed. + * + * @return This struct is empty. The comment here is intentionally emitted + * to avoid indentation issues with Stone. + */ + public SharingAllowlistRemoveResponse sharingAllowlistRemove() throws SharingAllowlistRemoveErrorException, DbxException { + SharingAllowlistRemoveArgs _arg = new SharingAllowlistRemoveArgs(); + return sharingAllowlistRemove(_arg); + } + + /** + * Endpoint removes Approve List entries. Changes are effective immediately. + * Changes are committed in transaction. In case of single validation error + * - all entries are rejected. Valid domains (RFC-1034/5) and emails + * (RFC-5322/822) are accepted. Entries being removed have to be present on + * the list. Maximum 1000 entries per call is allowed. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public SharingAllowlistRemoveBuilder sharingAllowlistRemoveBuilder() { + SharingAllowlistRemoveArgs.Builder argBuilder_ = SharingAllowlistRemoveArgs.newBuilder(); + return new SharingAllowlistRemoveBuilder(this, argBuilder_); + } + + // + // route 2/team/team_folder/activate + // + + /** + * Sets an archived team folder's status to active. Permission : Team member + * file access. + * + * + * @return Properties of a team folder. + */ + TeamFolderMetadata teamFolderActivate(TeamFolderIdArg arg) throws TeamFolderActivateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/activate", + arg, + false, + TeamFolderIdArg.Serializer.INSTANCE, + TeamFolderMetadata.Serializer.INSTANCE, + TeamFolderActivateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderActivateErrorException("2/team/team_folder/activate", ex.getRequestId(), ex.getUserMessage(), (TeamFolderActivateError) ex.getErrorValue()); + } + } + + /** + * Sets an archived team folder's status to active. + * + *

Permission : Team member file access.

+ * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Properties of a team folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderMetadata teamFolderActivate(String teamFolderId) throws TeamFolderActivateErrorException, DbxException { + TeamFolderIdArg _arg = new TeamFolderIdArg(teamFolderId); + return teamFolderActivate(_arg); + } + + // + // route 2/team/team_folder/archive + // + + /** + * Sets an active team folder's status to archived and removes all folder + * and file members. This endpoint cannot be used for teams that have a + * shared team space. Permission : Team member file access. + * + */ + TeamFolderArchiveLaunch teamFolderArchive(TeamFolderArchiveArg arg) throws TeamFolderArchiveErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/archive", + arg, + false, + TeamFolderArchiveArg.Serializer.INSTANCE, + TeamFolderArchiveLaunch.Serializer.INSTANCE, + TeamFolderArchiveError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderArchiveErrorException("2/team/team_folder/archive", ex.getRequestId(), ex.getUserMessage(), (TeamFolderArchiveError) ex.getErrorValue()); + } + } + + /** + * Sets an active team folder's status to archived and removes all folder + * and file members. This endpoint cannot be used for teams that have a + * shared team space. + * + *

Permission : Team member file access.

+ * + *

The {@code forceAsyncOff} request parameter will default to {@code + * false} (see {@link #teamFolderArchive(String,boolean)}).

+ * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderArchiveLaunch teamFolderArchive(String teamFolderId) throws TeamFolderArchiveErrorException, DbxException { + TeamFolderArchiveArg _arg = new TeamFolderArchiveArg(teamFolderId); + return teamFolderArchive(_arg); + } + + /** + * Sets an active team folder's status to archived and removes all folder + * and file members. This endpoint cannot be used for teams that have a + * shared team space. + * + *

Permission : Team member file access.

+ * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param forceAsyncOff Whether to force the archive to happen + * synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderArchiveLaunch teamFolderArchive(String teamFolderId, boolean forceAsyncOff) throws TeamFolderArchiveErrorException, DbxException { + TeamFolderArchiveArg _arg = new TeamFolderArchiveArg(teamFolderId, forceAsyncOff); + return teamFolderArchive(_arg); + } + + // + // route 2/team/team_folder/archive/check + // + + /** + * Returns the status of an asynchronous job for archiving a team folder. + * Permission : Team member file access. + * + * @param arg Arguments for methods that poll the status of an asynchronous + * job. + */ + TeamFolderArchiveJobStatus teamFolderArchiveCheck(PollArg arg) throws PollErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/archive/check", + arg, + false, + PollArg.Serializer.INSTANCE, + TeamFolderArchiveJobStatus.Serializer.INSTANCE, + PollError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new PollErrorException("2/team/team_folder/archive/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue()); + } + } + + /** + * Returns the status of an asynchronous job for archiving a team folder. + * + *

Permission : Team member file access.

+ * + * @param asyncJobId Id of the asynchronous job. This is the value of a + * response returned from the method that launched the job. Must have + * length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderArchiveJobStatus teamFolderArchiveCheck(String asyncJobId) throws PollErrorException, DbxException { + PollArg _arg = new PollArg(asyncJobId); + return teamFolderArchiveCheck(_arg); + } + + // + // route 2/team/team_folder/create + // + + /** + * Creates a new, active, team folder with no members. This endpoint can + * only be used for teams that do not already have a shared team space. + * Permission : Team member file access. + * + * + * @return Properties of a team folder. + */ + TeamFolderMetadata teamFolderCreate(TeamFolderCreateArg arg) throws TeamFolderCreateErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/create", + arg, + false, + TeamFolderCreateArg.Serializer.INSTANCE, + TeamFolderMetadata.Serializer.INSTANCE, + TeamFolderCreateError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderCreateErrorException("2/team/team_folder/create", ex.getRequestId(), ex.getUserMessage(), (TeamFolderCreateError) ex.getErrorValue()); + } + } + + /** + * Creates a new, active, team folder with no members. This endpoint can + * only be used for teams that do not already have a shared team space. + * + *

Permission : Team member file access.

+ * + * @param name Name for the new team folder. Must not be {@code null}. + * + * @return Properties of a team folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderMetadata teamFolderCreate(String name) throws TeamFolderCreateErrorException, DbxException { + TeamFolderCreateArg _arg = new TeamFolderCreateArg(name); + return teamFolderCreate(_arg); + } + + /** + * Creates a new, active, team folder with no members. This endpoint can + * only be used for teams that do not already have a shared team space. + * + *

Permission : Team member file access.

+ * + * @param name Name for the new team folder. Must not be {@code null}. + * @param syncSetting The sync setting to apply to this team folder. Only + * permitted if the team has team selective sync enabled. + * + * @return Properties of a team folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderMetadata teamFolderCreate(String name, SyncSettingArg syncSetting) throws TeamFolderCreateErrorException, DbxException { + TeamFolderCreateArg _arg = new TeamFolderCreateArg(name, syncSetting); + return teamFolderCreate(_arg); + } + + // + // route 2/team/team_folder/get_info + // + + /** + * Retrieves metadata for team folders. Permission : Team member file + * access. + * + */ + List teamFolderGetInfo(TeamFolderIdListArg arg) throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/get_info", + arg, + false, + TeamFolderIdListArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(TeamFolderGetInfoItem.Serializer.INSTANCE), + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"team_folder/get_info\":" + ex.getErrorValue()); + } + } + + /** + * Retrieves metadata for team folders. + * + *

Permission : Team member file access.

+ * + * @param teamFolderIds The list of team folder IDs. Must contain at least + * 1 items, not contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List teamFolderGetInfo(List teamFolderIds) throws DbxApiException, DbxException { + TeamFolderIdListArg _arg = new TeamFolderIdListArg(teamFolderIds); + return teamFolderGetInfo(_arg); + } + + // + // route 2/team/team_folder/list + // + + /** + * Lists all team folders. Permission : Team member file access. + * + * + * @return Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and + * {@link DbxTeamTeamRequests#teamFolderListContinue(String)}. + */ + TeamFolderListResult teamFolderList(TeamFolderListArg arg) throws TeamFolderListErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/list", + arg, + false, + TeamFolderListArg.Serializer.INSTANCE, + TeamFolderListResult.Serializer.INSTANCE, + TeamFolderListError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderListErrorException("2/team/team_folder/list", ex.getRequestId(), ex.getUserMessage(), (TeamFolderListError) ex.getErrorValue()); + } + } + + /** + * Lists all team folders. + * + *

Permission : Team member file access.

+ * + *

The {@code limit} request parameter will default to {@code 1000L} + * (see {@link #teamFolderList(long)}).

+ * + * @return Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and + * {@link DbxTeamTeamRequests#teamFolderListContinue(String)}. + */ + public TeamFolderListResult teamFolderList() throws TeamFolderListErrorException, DbxException { + TeamFolderListArg _arg = new TeamFolderListArg(); + return teamFolderList(_arg); + } + + /** + * Lists all team folders. + * + *

Permission : Team member file access.

+ * + * @param limit The maximum number of results to return per request. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * + * @return Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and + * {@link DbxTeamTeamRequests#teamFolderListContinue(String)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderListResult teamFolderList(long limit) throws TeamFolderListErrorException, DbxException { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + TeamFolderListArg _arg = new TeamFolderListArg(limit); + return teamFolderList(_arg); + } + + // + // route 2/team/team_folder/list/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#teamFolderList(long)}, use this to paginate through + * all team folders. Permission : Team member file access. + * + * + * @return Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and + * {@link DbxTeamTeamRequests#teamFolderListContinue(String)}. + */ + TeamFolderListResult teamFolderListContinue(TeamFolderListContinueArg arg) throws TeamFolderListContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/list/continue", + arg, + false, + TeamFolderListContinueArg.Serializer.INSTANCE, + TeamFolderListResult.Serializer.INSTANCE, + TeamFolderListContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderListContinueErrorException("2/team/team_folder/list/continue", ex.getRequestId(), ex.getUserMessage(), (TeamFolderListContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamRequests#teamFolderList(long)}, use this to paginate through + * all team folders. + * + *

Permission : Team member file access.

+ * + * @param cursor Indicates from what point to get the next set of team + * folders. Must not be {@code null}. + * + * @return Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and + * {@link DbxTeamTeamRequests#teamFolderListContinue(String)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderListResult teamFolderListContinue(String cursor) throws TeamFolderListContinueErrorException, DbxException { + TeamFolderListContinueArg _arg = new TeamFolderListContinueArg(cursor); + return teamFolderListContinue(_arg); + } + + // + // route 2/team/team_folder/permanently_delete + // + + /** + * Permanently deletes an archived team folder. This endpoint cannot be used + * for teams that have a shared team space. Permission : Team member file + * access. + * + */ + void teamFolderPermanentlyDelete(TeamFolderIdArg arg) throws TeamFolderPermanentlyDeleteErrorException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/permanently_delete", + arg, + false, + TeamFolderIdArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + TeamFolderPermanentlyDeleteError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderPermanentlyDeleteErrorException("2/team/team_folder/permanently_delete", ex.getRequestId(), ex.getUserMessage(), (TeamFolderPermanentlyDeleteError) ex.getErrorValue()); + } + } + + /** + * Permanently deletes an archived team folder. This endpoint cannot be used + * for teams that have a shared team space. + * + *

Permission : Team member file access.

+ * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void teamFolderPermanentlyDelete(String teamFolderId) throws TeamFolderPermanentlyDeleteErrorException, DbxException { + TeamFolderIdArg _arg = new TeamFolderIdArg(teamFolderId); + teamFolderPermanentlyDelete(_arg); + } + + // + // route 2/team/team_folder/rename + // + + /** + * Changes an active team folder's name. Permission : Team member file + * access. + * + * + * @return Properties of a team folder. + */ + TeamFolderMetadata teamFolderRename(TeamFolderRenameArg arg) throws TeamFolderRenameErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/rename", + arg, + false, + TeamFolderRenameArg.Serializer.INSTANCE, + TeamFolderMetadata.Serializer.INSTANCE, + TeamFolderRenameError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderRenameErrorException("2/team/team_folder/rename", ex.getRequestId(), ex.getUserMessage(), (TeamFolderRenameError) ex.getErrorValue()); + } + } + + /** + * Changes an active team folder's name. + * + *

Permission : Team member file access.

+ * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param name New team folder name. Must not be {@code null}. + * + * @return Properties of a team folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderMetadata teamFolderRename(String teamFolderId, String name) throws TeamFolderRenameErrorException, DbxException { + TeamFolderRenameArg _arg = new TeamFolderRenameArg(teamFolderId, name); + return teamFolderRename(_arg); + } + + // + // route 2/team/team_folder/update_sync_settings + // + + /** + * Updates the sync settings on a team folder or its contents. Use of this + * endpoint requires that the team has team selective sync enabled. + * + * + * @return Properties of a team folder. + */ + TeamFolderMetadata teamFolderUpdateSyncSettings(TeamFolderUpdateSyncSettingsArg arg) throws TeamFolderUpdateSyncSettingsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/team_folder/update_sync_settings", + arg, + false, + TeamFolderUpdateSyncSettingsArg.Serializer.INSTANCE, + TeamFolderMetadata.Serializer.INSTANCE, + TeamFolderUpdateSyncSettingsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TeamFolderUpdateSyncSettingsErrorException("2/team/team_folder/update_sync_settings", ex.getRequestId(), ex.getUserMessage(), (TeamFolderUpdateSyncSettingsError) ex.getErrorValue()); + } + } + + /** + * Updates the sync settings on a team folder or its contents. Use of this + * endpoint requires that the team has team selective sync enabled. + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Properties of a team folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderMetadata teamFolderUpdateSyncSettings(String teamFolderId) throws TeamFolderUpdateSyncSettingsErrorException, DbxException { + TeamFolderUpdateSyncSettingsArg _arg = new TeamFolderUpdateSyncSettingsArg(teamFolderId); + return teamFolderUpdateSyncSettings(_arg); + } + + /** + * Updates the sync settings on a team folder or its contents. Use of this + * endpoint requires that the team has team selective sync enabled. + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return Request builder for configuring request parameters and completing + * the request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderUpdateSyncSettingsBuilder teamFolderUpdateSyncSettingsBuilder(String teamFolderId) { + TeamFolderUpdateSyncSettingsArg.Builder argBuilder_ = TeamFolderUpdateSyncSettingsArg.newBuilder(teamFolderId); + return new TeamFolderUpdateSyncSettingsBuilder(this, argBuilder_); + } + + // + // route 2/team/token/get_authenticated_admin + // + + /** + * Returns the member profile of the admin who generated the team access + * token used to make the call. + * + * @return Results for {@link + * DbxTeamTeamRequests#tokenGetAuthenticatedAdmin}. + */ + public TokenGetAuthenticatedAdminResult tokenGetAuthenticatedAdmin() throws TokenGetAuthenticatedAdminErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team/token/get_authenticated_admin", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + TokenGetAuthenticatedAdminResult.Serializer.INSTANCE, + TokenGetAuthenticatedAdminError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new TokenGetAuthenticatedAdminErrorException("2/team/token/get_authenticated_admin", ex.getRequestId(), ex.getUserMessage(), (TokenGetAuthenticatedAdminError) ex.getErrorValue()); + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailResult.java new file mode 100644 index 000000000..9949b0548 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailResult.java @@ -0,0 +1,516 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Result of trying to delete a secondary email address. 'success' is the only + * value indicating that a secondary email was successfully deleted. The other + * values explain the type of error that occurred, and include the email for + * which the error occurred. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class DeleteSecondaryEmailResult { + // union team.DeleteSecondaryEmailResult (team_secondary_mails.stone) + + /** + * Discriminating tag type for {@link DeleteSecondaryEmailResult}. + */ + public enum Tag { + /** + * The secondary email was successfully deleted. + */ + SUCCESS, // String + /** + * The email address was not found for the user. + */ + NOT_FOUND, // String + /** + * The email address is the primary email address of the user, and + * cannot be removed. + */ + CANNOT_REMOVE_PRIMARY, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final DeleteSecondaryEmailResult OTHER = new DeleteSecondaryEmailResult().withTag(Tag.OTHER); + + private Tag _tag; + private String successValue; + private String notFoundValue; + private String cannotRemovePrimaryValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private DeleteSecondaryEmailResult() { + } + + + /** + * Result of trying to delete a secondary email address. 'success' is the + * only value indicating that a secondary email was successfully deleted. + * The other values explain the type of error that occurred, and include the + * email for which the error occurred. + * + * @param _tag Discriminating tag for this instance. + */ + private DeleteSecondaryEmailResult withTag(Tag _tag) { + DeleteSecondaryEmailResult result = new DeleteSecondaryEmailResult(); + result._tag = _tag; + return result; + } + + /** + * Result of trying to delete a secondary email address. 'success' is the + * only value indicating that a secondary email was successfully deleted. + * The other values explain the type of error that occurred, and include the + * email for which the error occurred. + * + * @param successValue The secondary email was successfully deleted. Must + * have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteSecondaryEmailResult withTagAndSuccess(Tag _tag, String successValue) { + DeleteSecondaryEmailResult result = new DeleteSecondaryEmailResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Result of trying to delete a secondary email address. 'success' is the + * only value indicating that a secondary email was successfully deleted. + * The other values explain the type of error that occurred, and include the + * email for which the error occurred. + * + * @param notFoundValue The email address was not found for the user. Must + * have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteSecondaryEmailResult withTagAndNotFound(Tag _tag, String notFoundValue) { + DeleteSecondaryEmailResult result = new DeleteSecondaryEmailResult(); + result._tag = _tag; + result.notFoundValue = notFoundValue; + return result; + } + + /** + * Result of trying to delete a secondary email address. 'success' is the + * only value indicating that a secondary email was successfully deleted. + * The other values explain the type of error that occurred, and include the + * email for which the error occurred. + * + * @param cannotRemovePrimaryValue The email address is the primary email + * address of the user, and cannot be removed. Must have length of at + * most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private DeleteSecondaryEmailResult withTagAndCannotRemovePrimary(Tag _tag, String cannotRemovePrimaryValue) { + DeleteSecondaryEmailResult result = new DeleteSecondaryEmailResult(); + result._tag = _tag; + result.cannotRemovePrimaryValue = cannotRemovePrimaryValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code DeleteSecondaryEmailResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code DeleteSecondaryEmailResult} that has its + * tag set to {@link Tag#SUCCESS}. + * + *

The secondary email was successfully deleted.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteSecondaryEmailResult} with its tag set + * to {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static DeleteSecondaryEmailResult success(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new DeleteSecondaryEmailResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * The secondary email was successfully deleted. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public String getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#NOT_FOUND}, + * {@code false} otherwise. + */ + public boolean isNotFound() { + return this._tag == Tag.NOT_FOUND; + } + + /** + * Returns an instance of {@code DeleteSecondaryEmailResult} that has its + * tag set to {@link Tag#NOT_FOUND}. + * + *

The email address was not found for the user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteSecondaryEmailResult} with its tag set + * to {@link Tag#NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static DeleteSecondaryEmailResult notFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new DeleteSecondaryEmailResult().withTagAndNotFound(Tag.NOT_FOUND, value); + } + + /** + * The email address was not found for the user. + * + *

This instance must be tagged as {@link Tag#NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isNotFound} is {@code false}. + */ + public String getNotFoundValue() { + if (this._tag != Tag.NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.NOT_FOUND, but was Tag." + this._tag.name()); + } + return notFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CANNOT_REMOVE_PRIMARY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CANNOT_REMOVE_PRIMARY}, {@code false} otherwise. + */ + public boolean isCannotRemovePrimary() { + return this._tag == Tag.CANNOT_REMOVE_PRIMARY; + } + + /** + * Returns an instance of {@code DeleteSecondaryEmailResult} that has its + * tag set to {@link Tag#CANNOT_REMOVE_PRIMARY}. + * + *

The email address is the primary email address of the user, and + * cannot be removed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code DeleteSecondaryEmailResult} with its tag set + * to {@link Tag#CANNOT_REMOVE_PRIMARY}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static DeleteSecondaryEmailResult cannotRemovePrimary(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new DeleteSecondaryEmailResult().withTagAndCannotRemovePrimary(Tag.CANNOT_REMOVE_PRIMARY, value); + } + + /** + * The email address is the primary email address of the user, and cannot be + * removed. + * + *

This instance must be tagged as {@link Tag#CANNOT_REMOVE_PRIMARY}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isCannotRemovePrimary} is {@code true}. + * + * @throws IllegalStateException If {@link #isCannotRemovePrimary} is + * {@code false}. + */ + public String getCannotRemovePrimaryValue() { + if (this._tag != Tag.CANNOT_REMOVE_PRIMARY) { + throw new IllegalStateException("Invalid tag: required Tag.CANNOT_REMOVE_PRIMARY, but was Tag." + this._tag.name()); + } + return cannotRemovePrimaryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.notFoundValue, + this.cannotRemovePrimaryValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof DeleteSecondaryEmailResult) { + DeleteSecondaryEmailResult other = (DeleteSecondaryEmailResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case NOT_FOUND: + return (this.notFoundValue == other.notFoundValue) || (this.notFoundValue.equals(other.notFoundValue)); + case CANNOT_REMOVE_PRIMARY: + return (this.cannotRemovePrimaryValue == other.cannotRemovePrimaryValue) || (this.cannotRemovePrimaryValue.equals(other.cannotRemovePrimaryValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteSecondaryEmailResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + g.writeFieldName("success"); + StoneSerializers.string().serialize(value.successValue, g); + g.writeEndObject(); + break; + } + case NOT_FOUND: { + g.writeStartObject(); + writeTag("not_found", g); + g.writeFieldName("not_found"); + StoneSerializers.string().serialize(value.notFoundValue, g); + g.writeEndObject(); + break; + } + case CANNOT_REMOVE_PRIMARY: { + g.writeStartObject(); + writeTag("cannot_remove_primary", g); + g.writeFieldName("cannot_remove_primary"); + StoneSerializers.string().serialize(value.cannotRemovePrimaryValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeleteSecondaryEmailResult deserialize(JsonParser p) throws IOException, JsonParseException { + DeleteSecondaryEmailResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + String fieldValue = null; + expectField("success", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = DeleteSecondaryEmailResult.success(fieldValue); + } + else if ("not_found".equals(tag)) { + String fieldValue = null; + expectField("not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = DeleteSecondaryEmailResult.notFound(fieldValue); + } + else if ("cannot_remove_primary".equals(tag)) { + String fieldValue = null; + expectField("cannot_remove_primary", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = DeleteSecondaryEmailResult.cannotRemovePrimary(fieldValue); + } + else { + value = DeleteSecondaryEmailResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailsArg.java new file mode 100644 index 000000000..b2b8984fc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailsArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class DeleteSecondaryEmailsArg { + // struct team.DeleteSecondaryEmailsArg (team_secondary_mails.stone) + + @Nonnull + protected final List emailsToDelete; + + /** + * + * @param emailsToDelete List of users and their secondary emails to + * delete. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteSecondaryEmailsArg(@Nonnull List emailsToDelete) { + if (emailsToDelete == null) { + throw new IllegalArgumentException("Required value for 'emailsToDelete' is null"); + } + for (UserSecondaryEmailsArg x : emailsToDelete) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emailsToDelete' is null"); + } + } + this.emailsToDelete = emailsToDelete; + } + + /** + * List of users and their secondary emails to delete. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEmailsToDelete() { + return emailsToDelete; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.emailsToDelete + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteSecondaryEmailsArg other = (DeleteSecondaryEmailsArg) obj; + return (this.emailsToDelete == other.emailsToDelete) || (this.emailsToDelete.equals(other.emailsToDelete)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteSecondaryEmailsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("emails_to_delete"); + StoneSerializers.list(UserSecondaryEmailsArg.Serializer.INSTANCE).serialize(value.emailsToDelete, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteSecondaryEmailsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteSecondaryEmailsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_emailsToDelete = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("emails_to_delete".equals(field)) { + f_emailsToDelete = StoneSerializers.list(UserSecondaryEmailsArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_emailsToDelete == null) { + throw new JsonParseException(p, "Required field \"emails_to_delete\" missing."); + } + value = new DeleteSecondaryEmailsArg(f_emailsToDelete); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailsResult.java new file mode 100644 index 000000000..90847c8f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeleteSecondaryEmailsResult.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class DeleteSecondaryEmailsResult { + // struct team.DeleteSecondaryEmailsResult (team_secondary_mails.stone) + + @Nonnull + protected final List results; + + /** + * + * @param results Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteSecondaryEmailsResult(@Nonnull List results) { + if (results == null) { + throw new IllegalArgumentException("Required value for 'results' is null"); + } + for (UserDeleteResult x : results) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'results' is null"); + } + } + this.results = results; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getResults() { + return results; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.results + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteSecondaryEmailsResult other = (DeleteSecondaryEmailsResult) obj; + return (this.results == other.results) || (this.results.equals(other.results)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteSecondaryEmailsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("results"); + StoneSerializers.list(UserDeleteResult.Serializer.INSTANCE).serialize(value.results, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteSecondaryEmailsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteSecondaryEmailsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_results = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("results".equals(field)) { + f_results = StoneSerializers.list(UserDeleteResult.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_results == null) { + throw new JsonParseException(p, "Required field \"results\" missing."); + } + value = new DeleteSecondaryEmailsResult(f_results); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DesktopClientSession.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DesktopClientSession.java new file mode 100644 index 000000000..f7387f6e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DesktopClientSession.java @@ -0,0 +1,511 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about linked Dropbox desktop client sessions. + */ +public class DesktopClientSession extends DeviceSession { + // struct team.DesktopClientSession (team_devices.stone) + + @Nonnull + protected final String hostName; + @Nonnull + protected final DesktopPlatform clientType; + @Nonnull + protected final String clientVersion; + @Nonnull + protected final String platform; + protected final boolean isDeleteOnUnlinkSupported; + + /** + * Information about linked Dropbox desktop client sessions. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sessionId The session id. Must not be {@code null}. + * @param hostName Name of the hosting desktop. Must not be {@code null}. + * @param clientType The Dropbox desktop client type. Must not be {@code + * null}. + * @param clientVersion The Dropbox client version. Must not be {@code + * null}. + * @param platform Information on the hosting platform. Must not be {@code + * null}. + * @param isDeleteOnUnlinkSupported Whether it's possible to delete all of + * the account files upon unlinking. + * @param ipAddress The IP address of the last activity from this session. + * @param country The country from which the last activity from this + * session was made. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DesktopClientSession(@Nonnull String sessionId, @Nonnull String hostName, @Nonnull DesktopPlatform clientType, @Nonnull String clientVersion, @Nonnull String platform, boolean isDeleteOnUnlinkSupported, @Nullable String ipAddress, @Nullable String country, @Nullable Date created, @Nullable Date updated) { + super(sessionId, ipAddress, country, created, updated); + if (hostName == null) { + throw new IllegalArgumentException("Required value for 'hostName' is null"); + } + this.hostName = hostName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + if (clientVersion == null) { + throw new IllegalArgumentException("Required value for 'clientVersion' is null"); + } + this.clientVersion = clientVersion; + if (platform == null) { + throw new IllegalArgumentException("Required value for 'platform' is null"); + } + this.platform = platform; + this.isDeleteOnUnlinkSupported = isDeleteOnUnlinkSupported; + } + + /** + * Information about linked Dropbox desktop client sessions. + * + *

The default values for unset fields will be used.

+ * + * @param sessionId The session id. Must not be {@code null}. + * @param hostName Name of the hosting desktop. Must not be {@code null}. + * @param clientType The Dropbox desktop client type. Must not be {@code + * null}. + * @param clientVersion The Dropbox client version. Must not be {@code + * null}. + * @param platform Information on the hosting platform. Must not be {@code + * null}. + * @param isDeleteOnUnlinkSupported Whether it's possible to delete all of + * the account files upon unlinking. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DesktopClientSession(@Nonnull String sessionId, @Nonnull String hostName, @Nonnull DesktopPlatform clientType, @Nonnull String clientVersion, @Nonnull String platform, boolean isDeleteOnUnlinkSupported) { + this(sessionId, hostName, clientType, clientVersion, platform, isDeleteOnUnlinkSupported, null, null, null, null); + } + + /** + * The session id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + /** + * Name of the hosting desktop. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getHostName() { + return hostName; + } + + /** + * The Dropbox desktop client type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DesktopPlatform getClientType() { + return clientType; + } + + /** + * The Dropbox client version. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getClientVersion() { + return clientVersion; + } + + /** + * Information on the hosting platform. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPlatform() { + return platform; + } + + /** + * Whether it's possible to delete all of the account files upon unlinking. + * + * @return value for this field. + */ + public boolean getIsDeleteOnUnlinkSupported() { + return isDeleteOnUnlinkSupported; + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The country from which the last activity from this session was made. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCountry() { + return country; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sessionId The session id. Must not be {@code null}. + * @param hostName Name of the hosting desktop. Must not be {@code null}. + * @param clientType The Dropbox desktop client type. Must not be {@code + * null}. + * @param clientVersion The Dropbox client version. Must not be {@code + * null}. + * @param platform Information on the hosting platform. Must not be {@code + * null}. + * @param isDeleteOnUnlinkSupported Whether it's possible to delete all of + * the account files upon unlinking. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported) { + return new Builder(sessionId, hostName, clientType, clientVersion, platform, isDeleteOnUnlinkSupported); + } + + /** + * Builder for {@link DesktopClientSession}. + */ + public static class Builder extends DeviceSession.Builder { + protected final String hostName; + protected final DesktopPlatform clientType; + protected final String clientVersion; + protected final String platform; + protected final boolean isDeleteOnUnlinkSupported; + + protected Builder(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported) { + super(sessionId); + if (hostName == null) { + throw new IllegalArgumentException("Required value for 'hostName' is null"); + } + this.hostName = hostName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + if (clientVersion == null) { + throw new IllegalArgumentException("Required value for 'clientVersion' is null"); + } + this.clientVersion = clientVersion; + if (platform == null) { + throw new IllegalArgumentException("Required value for 'platform' is null"); + } + this.platform = platform; + this.isDeleteOnUnlinkSupported = isDeleteOnUnlinkSupported; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + super.withIpAddress(ipAddress); + return this; + } + + /** + * Set value for optional field. + * + * @param country The country from which the last activity from this + * session was made. + * + * @return this builder + */ + public Builder withCountry(String country) { + super.withCountry(country); + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + super.withCreated(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + super.withUpdated(updated); + return this; + } + + /** + * Builds an instance of {@link DesktopClientSession} configured with + * this builder's values + * + * @return new instance of {@link DesktopClientSession} + */ + public DesktopClientSession build() { + return new DesktopClientSession(sessionId, hostName, clientType, clientVersion, platform, isDeleteOnUnlinkSupported, ipAddress, country, created, updated); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.hostName, + this.clientType, + this.clientVersion, + this.platform, + this.isDeleteOnUnlinkSupported + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DesktopClientSession other = (DesktopClientSession) obj; + return ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + && ((this.hostName == other.hostName) || (this.hostName.equals(other.hostName))) + && ((this.clientType == other.clientType) || (this.clientType.equals(other.clientType))) + && ((this.clientVersion == other.clientVersion) || (this.clientVersion.equals(other.clientVersion))) + && ((this.platform == other.platform) || (this.platform.equals(other.platform))) + && (this.isDeleteOnUnlinkSupported == other.isDeleteOnUnlinkSupported) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.country == other.country) || (this.country != null && this.country.equals(other.country))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DesktopClientSession value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + g.writeFieldName("host_name"); + StoneSerializers.string().serialize(value.hostName, g); + g.writeFieldName("client_type"); + DesktopPlatform.Serializer.INSTANCE.serialize(value.clientType, g); + g.writeFieldName("client_version"); + StoneSerializers.string().serialize(value.clientVersion, g); + g.writeFieldName("platform"); + StoneSerializers.string().serialize(value.platform, g); + g.writeFieldName("is_delete_on_unlink_supported"); + StoneSerializers.boolean_().serialize(value.isDeleteOnUnlinkSupported, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.country != null) { + g.writeFieldName("country"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.country, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DesktopClientSession deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DesktopClientSession value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + String f_hostName = null; + DesktopPlatform f_clientType = null; + String f_clientVersion = null; + String f_platform = null; + Boolean f_isDeleteOnUnlinkSupported = null; + String f_ipAddress = null; + String f_country = null; + Date f_created = null; + Date f_updated = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else if ("host_name".equals(field)) { + f_hostName = StoneSerializers.string().deserialize(p); + } + else if ("client_type".equals(field)) { + f_clientType = DesktopPlatform.Serializer.INSTANCE.deserialize(p); + } + else if ("client_version".equals(field)) { + f_clientVersion = StoneSerializers.string().deserialize(p); + } + else if ("platform".equals(field)) { + f_platform = StoneSerializers.string().deserialize(p); + } + else if ("is_delete_on_unlink_supported".equals(field)) { + f_isDeleteOnUnlinkSupported = StoneSerializers.boolean_().deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("country".equals(field)) { + f_country = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + if (f_hostName == null) { + throw new JsonParseException(p, "Required field \"host_name\" missing."); + } + if (f_clientType == null) { + throw new JsonParseException(p, "Required field \"client_type\" missing."); + } + if (f_clientVersion == null) { + throw new JsonParseException(p, "Required field \"client_version\" missing."); + } + if (f_platform == null) { + throw new JsonParseException(p, "Required field \"platform\" missing."); + } + if (f_isDeleteOnUnlinkSupported == null) { + throw new JsonParseException(p, "Required field \"is_delete_on_unlink_supported\" missing."); + } + value = new DesktopClientSession(f_sessionId, f_hostName, f_clientType, f_clientVersion, f_platform, f_isDeleteOnUnlinkSupported, f_ipAddress, f_country, f_created, f_updated); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DesktopPlatform.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DesktopPlatform.java new file mode 100644 index 000000000..57fa904f9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DesktopPlatform.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DesktopPlatform { + // union team.DesktopPlatform (team_devices.stone) + /** + * Official Windows Dropbox desktop client. + */ + WINDOWS, + /** + * Official Mac Dropbox desktop client. + */ + MAC, + /** + * Official Linux Dropbox desktop client. + */ + LINUX, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DesktopPlatform value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case WINDOWS: { + g.writeString("windows"); + break; + } + case MAC: { + g.writeString("mac"); + break; + } + case LINUX: { + g.writeString("linux"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DesktopPlatform deserialize(JsonParser p) throws IOException, JsonParseException { + DesktopPlatform value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("windows".equals(tag)) { + value = DesktopPlatform.WINDOWS; + } + else if ("mac".equals(tag)) { + value = DesktopPlatform.MAC; + } + else if ("linux".equals(tag)) { + value = DesktopPlatform.LINUX; + } + else { + value = DesktopPlatform.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeviceSession.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeviceSession.java new file mode 100644 index 000000000..fb98aabca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeviceSession.java @@ -0,0 +1,361 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class DeviceSession { + // struct team.DeviceSession (team_devices.stone) + + @Nonnull + protected final String sessionId; + @Nullable + protected final String ipAddress; + @Nullable + protected final String country; + @Nullable + protected final Date created; + @Nullable + protected final Date updated; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param sessionId The session id. Must not be {@code null}. + * @param ipAddress The IP address of the last activity from this session. + * @param country The country from which the last activity from this + * session was made. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceSession(@Nonnull String sessionId, @Nullable String ipAddress, @Nullable String country, @Nullable Date created, @Nullable Date updated) { + if (sessionId == null) { + throw new IllegalArgumentException("Required value for 'sessionId' is null"); + } + this.sessionId = sessionId; + this.ipAddress = ipAddress; + this.country = country; + this.created = LangUtil.truncateMillis(created); + this.updated = LangUtil.truncateMillis(updated); + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sessionId The session id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceSession(@Nonnull String sessionId) { + this(sessionId, null, null, null, null); + } + + /** + * The session id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The country from which the last activity from this session was made. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCountry() { + return country; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sessionId The session id. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String sessionId) { + return new Builder(sessionId); + } + + /** + * Builder for {@link DeviceSession}. + */ + public static class Builder { + protected final String sessionId; + + protected String ipAddress; + protected String country; + protected Date created; + protected Date updated; + + protected Builder(String sessionId) { + if (sessionId == null) { + throw new IllegalArgumentException("Required value for 'sessionId' is null"); + } + this.sessionId = sessionId; + this.ipAddress = null; + this.country = null; + this.created = null; + this.updated = null; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Set value for optional field. + * + * @param country The country from which the last activity from this + * session was made. + * + * @return this builder + */ + public Builder withCountry(String country) { + this.country = country; + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + this.created = LangUtil.truncateMillis(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + this.updated = LangUtil.truncateMillis(updated); + return this; + } + + /** + * Builds an instance of {@link DeviceSession} configured with this + * builder's values + * + * @return new instance of {@link DeviceSession} + */ + public DeviceSession build() { + return new DeviceSession(sessionId, ipAddress, country, created, updated); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionId, + this.ipAddress, + this.country, + this.created, + this.updated + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceSession other = (DeviceSession) obj; + return ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.country == other.country) || (this.country != null && this.country.equals(other.country))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceSession value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.country != null) { + g.writeFieldName("country"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.country, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceSession deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceSession value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + String f_ipAddress = null; + String f_country = null; + Date f_created = null; + Date f_updated = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("country".equals(field)) { + f_country = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + value = new DeviceSession(f_sessionId, f_ipAddress, f_country, f_created, f_updated); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeviceSessionArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeviceSessionArg.java new file mode 100644 index 000000000..4486ebae5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DeviceSessionArg.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceSessionArg { + // struct team.DeviceSessionArg (team_devices.stone) + + @Nonnull + protected final String sessionId; + @Nonnull + protected final String teamMemberId; + + /** + * + * @param sessionId The session id. Must not be {@code null}. + * @param teamMemberId The unique id of the member owning the device. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceSessionArg(@Nonnull String sessionId, @Nonnull String teamMemberId) { + if (sessionId == null) { + throw new IllegalArgumentException("Required value for 'sessionId' is null"); + } + this.sessionId = sessionId; + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + } + + /** + * The session id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + /** + * The unique id of the member owning the device. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionId, + this.teamMemberId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceSessionArg other = (DeviceSessionArg) obj; + return ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceSessionArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceSessionArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceSessionArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + String f_teamMemberId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + value = new DeviceSessionArg(f_sessionId, f_teamMemberId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesActive.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesActive.java new file mode 100644 index 000000000..a57fe032a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesActive.java @@ -0,0 +1,372 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Each of the items is an array of values, one value per day. The value is the + * number of devices active within a time window, ending with that day. If there + * is no data for a day, then the value will be None. + */ +public class DevicesActive { + // struct team.DevicesActive (team_reports.stone) + + @Nonnull + protected final List windows; + @Nonnull + protected final List macos; + @Nonnull + protected final List linux; + @Nonnull + protected final List ios; + @Nonnull + protected final List android; + @Nonnull + protected final List other; + @Nonnull + protected final List total; + + /** + * Each of the items is an array of values, one value per day. The value is + * the number of devices active within a time window, ending with that day. + * If there is no data for a day, then the value will be None. + * + * @param windows Array of number of linked windows (desktop) clients with + * activity. Must not contain a {@code null} item and not be {@code + * null}. + * @param macos Array of number of linked mac (desktop) clients with + * activity. Must not contain a {@code null} item and not be {@code + * null}. + * @param linux Array of number of linked linus (desktop) clients with + * activity. Must not contain a {@code null} item and not be {@code + * null}. + * @param ios Array of number of linked ios devices with activity. Must not + * contain a {@code null} item and not be {@code null}. + * @param android Array of number of linked android devices with activity. + * Must not contain a {@code null} item and not be {@code null}. + * @param other Array of number of other linked devices (blackberry, + * windows phone, etc) with activity. Must not contain a {@code null} + * item and not be {@code null}. + * @param total Array of total number of linked clients with activity. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DevicesActive(@Nonnull List windows, @Nonnull List macos, @Nonnull List linux, @Nonnull List ios, @Nonnull List android, @Nonnull List other, @Nonnull List total) { + if (windows == null) { + throw new IllegalArgumentException("Required value for 'windows' is null"); + } + for (Long x : windows) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'windows' is null"); + } + } + this.windows = windows; + if (macos == null) { + throw new IllegalArgumentException("Required value for 'macos' is null"); + } + for (Long x : macos) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'macos' is null"); + } + } + this.macos = macos; + if (linux == null) { + throw new IllegalArgumentException("Required value for 'linux' is null"); + } + for (Long x : linux) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linux' is null"); + } + } + this.linux = linux; + if (ios == null) { + throw new IllegalArgumentException("Required value for 'ios' is null"); + } + for (Long x : ios) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'ios' is null"); + } + } + this.ios = ios; + if (android == null) { + throw new IllegalArgumentException("Required value for 'android' is null"); + } + for (Long x : android) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'android' is null"); + } + } + this.android = android; + if (other == null) { + throw new IllegalArgumentException("Required value for 'other' is null"); + } + for (Long x : other) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'other' is null"); + } + } + this.other = other; + if (total == null) { + throw new IllegalArgumentException("Required value for 'total' is null"); + } + for (Long x : total) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'total' is null"); + } + } + this.total = total; + } + + /** + * Array of number of linked windows (desktop) clients with activity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getWindows() { + return windows; + } + + /** + * Array of number of linked mac (desktop) clients with activity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMacos() { + return macos; + } + + /** + * Array of number of linked linus (desktop) clients with activity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinux() { + return linux; + } + + /** + * Array of number of linked ios devices with activity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getIos() { + return ios; + } + + /** + * Array of number of linked android devices with activity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAndroid() { + return android; + } + + /** + * Array of number of other linked devices (blackberry, windows phone, etc) + * with activity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getOther() { + return other; + } + + /** + * Array of total number of linked clients with activity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTotal() { + return total; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.windows, + this.macos, + this.linux, + this.ios, + this.android, + this.other, + this.total + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DevicesActive other = (DevicesActive) obj; + return ((this.windows == other.windows) || (this.windows.equals(other.windows))) + && ((this.macos == other.macos) || (this.macos.equals(other.macos))) + && ((this.linux == other.linux) || (this.linux.equals(other.linux))) + && ((this.ios == other.ios) || (this.ios.equals(other.ios))) + && ((this.android == other.android) || (this.android.equals(other.android))) + && ((this.other == other.other) || (this.other.equals(other.other))) + && ((this.total == other.total) || (this.total.equals(other.total))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DevicesActive value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("windows"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.windows, g); + g.writeFieldName("macos"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.macos, g); + g.writeFieldName("linux"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.linux, g); + g.writeFieldName("ios"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.ios, g); + g.writeFieldName("android"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.android, g); + g.writeFieldName("other"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.other, g); + g.writeFieldName("total"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.total, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DevicesActive deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DevicesActive value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_windows = null; + List f_macos = null; + List f_linux = null; + List f_ios = null; + List f_android = null; + List f_other = null; + List f_total = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("windows".equals(field)) { + f_windows = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("macos".equals(field)) { + f_macos = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("linux".equals(field)) { + f_linux = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("ios".equals(field)) { + f_ios = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("android".equals(field)) { + f_android = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("other".equals(field)) { + f_other = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("total".equals(field)) { + f_total = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_windows == null) { + throw new JsonParseException(p, "Required field \"windows\" missing."); + } + if (f_macos == null) { + throw new JsonParseException(p, "Required field \"macos\" missing."); + } + if (f_linux == null) { + throw new JsonParseException(p, "Required field \"linux\" missing."); + } + if (f_ios == null) { + throw new JsonParseException(p, "Required field \"ios\" missing."); + } + if (f_android == null) { + throw new JsonParseException(p, "Required field \"android\" missing."); + } + if (f_other == null) { + throw new JsonParseException(p, "Required field \"other\" missing."); + } + if (f_total == null) { + throw new JsonParseException(p, "Required field \"total\" missing."); + } + value = new DevicesActive(f_windows, f_macos, f_linux, f_ios, f_android, f_other, f_total); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListMemberDevicesBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListMemberDevicesBuilder.java new file mode 100644 index 000000000..1361f54a5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListMemberDevicesBuilder.java @@ -0,0 +1,91 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#devicesListMemberDevicesBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DevicesListMemberDevicesBuilder { + private final DbxTeamTeamRequests _client; + private final ListMemberDevicesArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DevicesListMemberDevicesBuilder(DbxTeamTeamRequests _client, ListMemberDevicesArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeWebSessions Whether to list web sessions of the team's + * member. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListMemberDevicesBuilder withIncludeWebSessions(Boolean includeWebSessions) { + this._builder.withIncludeWebSessions(includeWebSessions); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeDesktopClients Whether to list linked desktop devices of + * the team's member. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListMemberDevicesBuilder withIncludeDesktopClients(Boolean includeDesktopClients) { + this._builder.withIncludeDesktopClients(includeDesktopClients); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeMobileClients Whether to list linked mobile devices of the + * team's member. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListMemberDevicesBuilder withIncludeMobileClients(Boolean includeMobileClients) { + this._builder.withIncludeMobileClients(includeMobileClients); + return this; + } + + /** + * Issues the request. + */ + public ListMemberDevicesResult start() throws ListMemberDevicesErrorException, DbxException { + ListMemberDevicesArg arg_ = this._builder.build(); + return _client.devicesListMemberDevices(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListMembersDevicesBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListMembersDevicesBuilder.java new file mode 100644 index 000000000..2a1d68d05 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListMembersDevicesBuilder.java @@ -0,0 +1,107 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#devicesListMembersDevicesBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DevicesListMembersDevicesBuilder { + private final DbxTeamTeamRequests _client; + private final ListMembersDevicesArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DevicesListMembersDevicesBuilder(DbxTeamTeamRequests _client, ListMembersDevicesArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#devicesListMembersDevices} the cursor shouldn't + * be passed. Then, if the result of the call includes a cursor, the + * following requests should include the received cursors in order to + * receive the next sub list of team devices. + * + * @return this builder + */ + public DevicesListMembersDevicesBuilder withCursor(String cursor) { + this._builder.withCursor(cursor); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeWebSessions Whether to list web sessions of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListMembersDevicesBuilder withIncludeWebSessions(Boolean includeWebSessions) { + this._builder.withIncludeWebSessions(includeWebSessions); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeDesktopClients Whether to list desktop clients of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListMembersDevicesBuilder withIncludeDesktopClients(Boolean includeDesktopClients) { + this._builder.withIncludeDesktopClients(includeDesktopClients); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeMobileClients Whether to list mobile clients of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListMembersDevicesBuilder withIncludeMobileClients(Boolean includeMobileClients) { + this._builder.withIncludeMobileClients(includeMobileClients); + return this; + } + + /** + * Issues the request. + */ + public ListMembersDevicesResult start() throws ListMembersDevicesErrorException, DbxException { + ListMembersDevicesArg arg_ = this._builder.build(); + return _client.devicesListMembersDevices(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListTeamDevicesBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListTeamDevicesBuilder.java new file mode 100644 index 000000000..1442d3e79 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DevicesListTeamDevicesBuilder.java @@ -0,0 +1,108 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#devicesListTeamDevicesBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DevicesListTeamDevicesBuilder { + private final DbxTeamTeamRequests _client; + private final ListTeamDevicesArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DevicesListTeamDevicesBuilder(DbxTeamTeamRequests _client, ListTeamDevicesArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#devicesListTeamDevices} the cursor shouldn't be + * passed. Then, if the result of the call includes a cursor, the + * following requests should include the received cursors in order to + * receive the next sub list of team devices. + * + * @return this builder + */ + public DevicesListTeamDevicesBuilder withCursor(String cursor) { + this._builder.withCursor(cursor); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeWebSessions Whether to list web sessions of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListTeamDevicesBuilder withIncludeWebSessions(Boolean includeWebSessions) { + this._builder.withIncludeWebSessions(includeWebSessions); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeDesktopClients Whether to list desktop clients of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListTeamDevicesBuilder withIncludeDesktopClients(Boolean includeDesktopClients) { + this._builder.withIncludeDesktopClients(includeDesktopClients); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param includeMobileClients Whether to list mobile clients of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public DevicesListTeamDevicesBuilder withIncludeMobileClients(Boolean includeMobileClients) { + this._builder.withIncludeMobileClients(includeMobileClients); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public ListTeamDevicesResult start() throws ListTeamDevicesErrorException, DbxException { + ListTeamDevicesArg arg_ = this._builder.build(); + return _client.devicesListTeamDevices(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListArg.java new file mode 100644 index 000000000..ae0e1785c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListArg.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Excluded users list argument. + */ +class ExcludedUsersListArg { + // struct team.ExcludedUsersListArg (team_member_space_limits.stone) + + protected final long limit; + + /** + * Excluded users list argument. + * + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersListArg(long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + } + + /** + * Excluded users list argument. + * + *

The default values for unset fields will be used.

+ */ + public ExcludedUsersListArg() { + this(1000L); + } + + /** + * Number of results to return per call. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExcludedUsersListArg other = (ExcludedUsersListArg) obj; + return this.limit == other.limit; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExcludedUsersListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExcludedUsersListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + value = new ExcludedUsersListArg(f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueArg.java new file mode 100644 index 000000000..20a70f2f6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Excluded users list continue argument. + */ +class ExcludedUsersListContinueArg { + // struct team.ExcludedUsersListContinueArg (team_member_space_limits.stone) + + @Nonnull + protected final String cursor; + + /** + * Excluded users list continue argument. + * + * @param cursor Indicates from what point to get the next set of users. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersListContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Indicates from what point to get the next set of users. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExcludedUsersListContinueArg other = (ExcludedUsersListContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersListContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExcludedUsersListContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExcludedUsersListContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new ExcludedUsersListContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueError.java new file mode 100644 index 000000000..2afa046ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueError.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Excluded users list continue error. + */ +public enum ExcludedUsersListContinueError { + // union team.ExcludedUsersListContinueError (team_member_space_limits.stone) + /** + * The cursor is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersListContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExcludedUsersListContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + ExcludedUsersListContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_cursor".equals(tag)) { + value = ExcludedUsersListContinueError.INVALID_CURSOR; + } + else { + value = ExcludedUsersListContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueErrorException.java new file mode 100644 index 000000000..b26175278 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ExcludedUsersListContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersListContinue(String)}.

+ */ +public class ExcludedUsersListContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team/member_space_limits/excluded_users/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersListContinue(String)}. + */ + public final ExcludedUsersListContinueError errorValue; + + public ExcludedUsersListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ExcludedUsersListContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListError.java new file mode 100644 index 000000000..25f6bd36c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListError.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Excluded users list error. + */ +public enum ExcludedUsersListError { + // union team.ExcludedUsersListError (team_member_space_limits.stone) + /** + * An error occurred. + */ + LIST_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersListError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LIST_ERROR: { + g.writeString("list_error"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExcludedUsersListError deserialize(JsonParser p) throws IOException, JsonParseException { + ExcludedUsersListError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("list_error".equals(tag)) { + value = ExcludedUsersListError.LIST_ERROR; + } + else { + value = ExcludedUsersListError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListErrorException.java new file mode 100644 index 000000000..fe86d469e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ExcludedUsersListError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersList(long)}.

+ */ +public class ExcludedUsersListErrorException extends DbxApiException { + // exception for routes: + // 2/team/member_space_limits/excluded_users/list + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersList(long)}. + */ + public final ExcludedUsersListError errorValue; + + public ExcludedUsersListErrorException(String routeName, String requestId, LocalizedText userMessage, ExcludedUsersListError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListResult.java new file mode 100644 index 000000000..0be5baf34 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListResult.java @@ -0,0 +1,235 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Excluded users list result. + */ +public class ExcludedUsersListResult { + // struct team.ExcludedUsersListResult (team_member_space_limits.stone) + + @Nonnull + protected final List users; + @Nullable + protected final String cursor; + protected final boolean hasMore; + + /** + * Excluded users list result. + * + * @param users Must not contain a {@code null} item and not be {@code + * null}. + * @param hasMore Is true if there are additional excluded users that have + * not been returned yet. An additional call to {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersListContinue(String)} + * can retrieve them. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersListContinue(String)} + * to obtain additional excluded users. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersListResult(@Nonnull List users, boolean hasMore, @Nullable String cursor) { + if (users == null) { + throw new IllegalArgumentException("Required value for 'users' is null"); + } + for (MemberProfile x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + this.users = users; + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * Excluded users list result. + * + *

The default values for unset fields will be used.

+ * + * @param users Must not contain a {@code null} item and not be {@code + * null}. + * @param hasMore Is true if there are additional excluded users that have + * not been returned yet. An additional call to {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersListContinue(String)} + * can retrieve them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersListResult(@Nonnull List users, boolean hasMore) { + this(users, hasMore, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsers() { + return users; + } + + /** + * Is true if there are additional excluded users that have not been + * returned yet. An additional call to {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersListContinue(String)} + * can retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersListContinue(String)} + * to obtain additional excluded users. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.users, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExcludedUsersListResult other = (ExcludedUsersListResult) obj; + return ((this.users == other.users) || (this.users.equals(other.users))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersListResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("users"); + StoneSerializers.list(MemberProfile.Serializer.INSTANCE).serialize(value.users, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExcludedUsersListResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExcludedUsersListResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_users = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("users".equals(field)) { + f_users = StoneSerializers.list(MemberProfile.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ExcludedUsersListResult(f_users, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateArg.java new file mode 100644 index 000000000..2608fab91 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateArg.java @@ -0,0 +1,172 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Argument of excluded users update operation. Should include a list of users + * to add/remove (according to endpoint), Maximum size of the list is 1000 + * users. + */ +class ExcludedUsersUpdateArg { + // struct team.ExcludedUsersUpdateArg (team_member_space_limits.stone) + + @Nullable + protected final List users; + + /** + * Argument of excluded users update operation. Should include a list of + * users to add/remove (according to endpoint), Maximum size of the list is + * 1000 users. + * + * @param users List of users to be added/removed. Must not contain a + * {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersUpdateArg(@Nullable List users) { + if (users != null) { + for (UserSelectorArg x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + } + this.users = users; + } + + /** + * Argument of excluded users update operation. Should include a list of + * users to add/remove (according to endpoint), Maximum size of the list is + * 1000 users. + * + *

The default values for unset fields will be used.

+ */ + public ExcludedUsersUpdateArg() { + this(null); + } + + /** + * List of users to be added/removed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getUsers() { + return users; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.users + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExcludedUsersUpdateArg other = (ExcludedUsersUpdateArg) obj; + return (this.users == other.users) || (this.users != null && this.users.equals(other.users)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersUpdateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.users != null) { + g.writeFieldName("users"); + StoneSerializers.nullable(StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE)).serialize(value.users, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExcludedUsersUpdateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExcludedUsersUpdateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_users = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("users".equals(field)) { + f_users = StoneSerializers.nullable(StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ExcludedUsersUpdateArg(f_users); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateError.java new file mode 100644 index 000000000..f53ad9099 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateError.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Excluded users update error. + */ +public enum ExcludedUsersUpdateError { + // union team.ExcludedUsersUpdateError (team_member_space_limits.stone) + /** + * At least one of the users is not part of your team. + */ + USERS_NOT_IN_TEAM, + /** + * A maximum of 1000 users for each of addition/removal can be supplied. + */ + TOO_MANY_USERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersUpdateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USERS_NOT_IN_TEAM: { + g.writeString("users_not_in_team"); + break; + } + case TOO_MANY_USERS: { + g.writeString("too_many_users"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExcludedUsersUpdateError deserialize(JsonParser p) throws IOException, JsonParseException { + ExcludedUsersUpdateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("users_not_in_team".equals(tag)) { + value = ExcludedUsersUpdateError.USERS_NOT_IN_TEAM; + } + else if ("too_many_users".equals(tag)) { + value = ExcludedUsersUpdateError.TOO_MANY_USERS; + } + else { + value = ExcludedUsersUpdateError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateErrorException.java new file mode 100644 index 000000000..67824ebd3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateErrorException.java @@ -0,0 +1,41 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ExcludedUsersUpdateError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersAdd(java.util.List)} and + * {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersRemove(java.util.List)}. + *

+ */ +public class ExcludedUsersUpdateErrorException extends DbxApiException { + // exception for routes: + // 2/team/member_space_limits/excluded_users/add + // 2/team/member_space_limits/excluded_users/remove + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersAdd(java.util.List)} + * and {@link + * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersRemove(java.util.List)}. + */ + public final ExcludedUsersUpdateError errorValue; + + public ExcludedUsersUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, ExcludedUsersUpdateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateResult.java new file mode 100644 index 000000000..7b37cf017 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateResult.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Excluded users update result. + */ +public class ExcludedUsersUpdateResult { + // struct team.ExcludedUsersUpdateResult (team_member_space_limits.stone) + + @Nonnull + protected final ExcludedUsersUpdateStatus status; + + /** + * Excluded users update result. + * + * @param status Update status. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExcludedUsersUpdateResult(@Nonnull ExcludedUsersUpdateStatus status) { + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + } + + /** + * Update status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExcludedUsersUpdateStatus getStatus() { + return status; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.status + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExcludedUsersUpdateResult other = (ExcludedUsersUpdateResult) obj; + return (this.status == other.status) || (this.status.equals(other.status)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersUpdateResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("status"); + ExcludedUsersUpdateStatus.Serializer.INSTANCE.serialize(value.status, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExcludedUsersUpdateResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExcludedUsersUpdateResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ExcludedUsersUpdateStatus f_status = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("status".equals(field)) { + f_status = ExcludedUsersUpdateStatus.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_status == null) { + throw new JsonParseException(p, "Required field \"status\" missing."); + } + value = new ExcludedUsersUpdateResult(f_status); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateStatus.java new file mode 100644 index 000000000..0df8442c3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersUpdateStatus.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Excluded users update operation status. + */ +public enum ExcludedUsersUpdateStatus { + // union team.ExcludedUsersUpdateStatus (team_member_space_limits.stone) + /** + * Update successful. + */ + SUCCESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExcludedUsersUpdateStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case SUCCESS: { + g.writeString("success"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExcludedUsersUpdateStatus deserialize(JsonParser p) throws IOException, JsonParseException { + ExcludedUsersUpdateStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + value = ExcludedUsersUpdateStatus.SUCCESS; + } + else { + value = ExcludedUsersUpdateStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/Feature.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/Feature.java new file mode 100644 index 000000000..68fa9ec22 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/Feature.java @@ -0,0 +1,120 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * A set of features that a Dropbox Business account may support. + */ +public enum Feature { + // union team.Feature (team.stone) + /** + * The number of upload API calls allowed per month. + */ + UPLOAD_API_RATE_LIMIT, + /** + * Does this team have a shared team root. + */ + HAS_TEAM_SHARED_DROPBOX, + /** + * Does this team have file events. + */ + HAS_TEAM_FILE_EVENTS, + /** + * Does this team have team selective sync enabled. + */ + HAS_TEAM_SELECTIVE_SYNC, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Feature value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UPLOAD_API_RATE_LIMIT: { + g.writeString("upload_api_rate_limit"); + break; + } + case HAS_TEAM_SHARED_DROPBOX: { + g.writeString("has_team_shared_dropbox"); + break; + } + case HAS_TEAM_FILE_EVENTS: { + g.writeString("has_team_file_events"); + break; + } + case HAS_TEAM_SELECTIVE_SYNC: { + g.writeString("has_team_selective_sync"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public Feature deserialize(JsonParser p) throws IOException, JsonParseException { + Feature value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("upload_api_rate_limit".equals(tag)) { + value = Feature.UPLOAD_API_RATE_LIMIT; + } + else if ("has_team_shared_dropbox".equals(tag)) { + value = Feature.HAS_TEAM_SHARED_DROPBOX; + } + else if ("has_team_file_events".equals(tag)) { + value = Feature.HAS_TEAM_FILE_EVENTS; + } + else if ("has_team_selective_sync".equals(tag)) { + value = Feature.HAS_TEAM_SELECTIVE_SYNC; + } + else { + value = Feature.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeatureValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeatureValue.java new file mode 100644 index 000000000..175c48080 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeatureValue.java @@ -0,0 +1,534 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The values correspond to entries in {@link Feature}. You may get different + * value according to your Dropbox Business plan. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class FeatureValue { + // union team.FeatureValue (team.stone) + + /** + * Discriminating tag type for {@link FeatureValue}. + */ + public enum Tag { + UPLOAD_API_RATE_LIMIT, // UploadApiRateLimitValue + HAS_TEAM_SHARED_DROPBOX, // HasTeamSharedDropboxValue + HAS_TEAM_FILE_EVENTS, // HasTeamFileEventsValue + HAS_TEAM_SELECTIVE_SYNC, // HasTeamSelectiveSyncValue + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final FeatureValue OTHER = new FeatureValue().withTag(Tag.OTHER); + + private Tag _tag; + private UploadApiRateLimitValue uploadApiRateLimitValue; + private HasTeamSharedDropboxValue hasTeamSharedDropboxValue; + private HasTeamFileEventsValue hasTeamFileEventsValue; + private HasTeamSelectiveSyncValue hasTeamSelectiveSyncValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FeatureValue() { + } + + + /** + * The values correspond to entries in {@link Feature}. You may get + * different value according to your Dropbox Business plan. + * + * @param _tag Discriminating tag for this instance. + */ + private FeatureValue withTag(Tag _tag) { + FeatureValue result = new FeatureValue(); + result._tag = _tag; + return result; + } + + /** + * The values correspond to entries in {@link Feature}. You may get + * different value according to your Dropbox Business plan. + * + * @param uploadApiRateLimitValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FeatureValue withTagAndUploadApiRateLimit(Tag _tag, UploadApiRateLimitValue uploadApiRateLimitValue) { + FeatureValue result = new FeatureValue(); + result._tag = _tag; + result.uploadApiRateLimitValue = uploadApiRateLimitValue; + return result; + } + + /** + * The values correspond to entries in {@link Feature}. You may get + * different value according to your Dropbox Business plan. + * + * @param hasTeamSharedDropboxValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FeatureValue withTagAndHasTeamSharedDropbox(Tag _tag, HasTeamSharedDropboxValue hasTeamSharedDropboxValue) { + FeatureValue result = new FeatureValue(); + result._tag = _tag; + result.hasTeamSharedDropboxValue = hasTeamSharedDropboxValue; + return result; + } + + /** + * The values correspond to entries in {@link Feature}. You may get + * different value according to your Dropbox Business plan. + * + * @param hasTeamFileEventsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FeatureValue withTagAndHasTeamFileEvents(Tag _tag, HasTeamFileEventsValue hasTeamFileEventsValue) { + FeatureValue result = new FeatureValue(); + result._tag = _tag; + result.hasTeamFileEventsValue = hasTeamFileEventsValue; + return result; + } + + /** + * The values correspond to entries in {@link Feature}. You may get + * different value according to your Dropbox Business plan. + * + * @param hasTeamSelectiveSyncValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FeatureValue withTagAndHasTeamSelectiveSync(Tag _tag, HasTeamSelectiveSyncValue hasTeamSelectiveSyncValue) { + FeatureValue result = new FeatureValue(); + result._tag = _tag; + result.hasTeamSelectiveSyncValue = hasTeamSelectiveSyncValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FeatureValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UPLOAD_API_RATE_LIMIT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UPLOAD_API_RATE_LIMIT}, {@code false} otherwise. + */ + public boolean isUploadApiRateLimit() { + return this._tag == Tag.UPLOAD_API_RATE_LIMIT; + } + + /** + * Returns an instance of {@code FeatureValue} that has its tag set to + * {@link Tag#UPLOAD_API_RATE_LIMIT}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FeatureValue} with its tag set to {@link + * Tag#UPLOAD_API_RATE_LIMIT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FeatureValue uploadApiRateLimit(UploadApiRateLimitValue value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FeatureValue().withTagAndUploadApiRateLimit(Tag.UPLOAD_API_RATE_LIMIT, value); + } + + /** + * This instance must be tagged as {@link Tag#UPLOAD_API_RATE_LIMIT}. + * + * @return The {@link UploadApiRateLimitValue} value associated with this + * instance if {@link #isUploadApiRateLimit} is {@code true}. + * + * @throws IllegalStateException If {@link #isUploadApiRateLimit} is {@code + * false}. + */ + public UploadApiRateLimitValue getUploadApiRateLimitValue() { + if (this._tag != Tag.UPLOAD_API_RATE_LIMIT) { + throw new IllegalStateException("Invalid tag: required Tag.UPLOAD_API_RATE_LIMIT, but was Tag." + this._tag.name()); + } + return uploadApiRateLimitValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#HAS_TEAM_SHARED_DROPBOX}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#HAS_TEAM_SHARED_DROPBOX}, {@code false} otherwise. + */ + public boolean isHasTeamSharedDropbox() { + return this._tag == Tag.HAS_TEAM_SHARED_DROPBOX; + } + + /** + * Returns an instance of {@code FeatureValue} that has its tag set to + * {@link Tag#HAS_TEAM_SHARED_DROPBOX}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FeatureValue} with its tag set to {@link + * Tag#HAS_TEAM_SHARED_DROPBOX}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FeatureValue hasTeamSharedDropbox(HasTeamSharedDropboxValue value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FeatureValue().withTagAndHasTeamSharedDropbox(Tag.HAS_TEAM_SHARED_DROPBOX, value); + } + + /** + * This instance must be tagged as {@link Tag#HAS_TEAM_SHARED_DROPBOX}. + * + * @return The {@link HasTeamSharedDropboxValue} value associated with this + * instance if {@link #isHasTeamSharedDropbox} is {@code true}. + * + * @throws IllegalStateException If {@link #isHasTeamSharedDropbox} is + * {@code false}. + */ + public HasTeamSharedDropboxValue getHasTeamSharedDropboxValue() { + if (this._tag != Tag.HAS_TEAM_SHARED_DROPBOX) { + throw new IllegalStateException("Invalid tag: required Tag.HAS_TEAM_SHARED_DROPBOX, but was Tag." + this._tag.name()); + } + return hasTeamSharedDropboxValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#HAS_TEAM_FILE_EVENTS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#HAS_TEAM_FILE_EVENTS}, {@code false} otherwise. + */ + public boolean isHasTeamFileEvents() { + return this._tag == Tag.HAS_TEAM_FILE_EVENTS; + } + + /** + * Returns an instance of {@code FeatureValue} that has its tag set to + * {@link Tag#HAS_TEAM_FILE_EVENTS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FeatureValue} with its tag set to {@link + * Tag#HAS_TEAM_FILE_EVENTS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FeatureValue hasTeamFileEvents(HasTeamFileEventsValue value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FeatureValue().withTagAndHasTeamFileEvents(Tag.HAS_TEAM_FILE_EVENTS, value); + } + + /** + * This instance must be tagged as {@link Tag#HAS_TEAM_FILE_EVENTS}. + * + * @return The {@link HasTeamFileEventsValue} value associated with this + * instance if {@link #isHasTeamFileEvents} is {@code true}. + * + * @throws IllegalStateException If {@link #isHasTeamFileEvents} is {@code + * false}. + */ + public HasTeamFileEventsValue getHasTeamFileEventsValue() { + if (this._tag != Tag.HAS_TEAM_FILE_EVENTS) { + throw new IllegalStateException("Invalid tag: required Tag.HAS_TEAM_FILE_EVENTS, but was Tag." + this._tag.name()); + } + return hasTeamFileEventsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#HAS_TEAM_SELECTIVE_SYNC}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#HAS_TEAM_SELECTIVE_SYNC}, {@code false} otherwise. + */ + public boolean isHasTeamSelectiveSync() { + return this._tag == Tag.HAS_TEAM_SELECTIVE_SYNC; + } + + /** + * Returns an instance of {@code FeatureValue} that has its tag set to + * {@link Tag#HAS_TEAM_SELECTIVE_SYNC}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FeatureValue} with its tag set to {@link + * Tag#HAS_TEAM_SELECTIVE_SYNC}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FeatureValue hasTeamSelectiveSync(HasTeamSelectiveSyncValue value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FeatureValue().withTagAndHasTeamSelectiveSync(Tag.HAS_TEAM_SELECTIVE_SYNC, value); + } + + /** + * This instance must be tagged as {@link Tag#HAS_TEAM_SELECTIVE_SYNC}. + * + * @return The {@link HasTeamSelectiveSyncValue} value associated with this + * instance if {@link #isHasTeamSelectiveSync} is {@code true}. + * + * @throws IllegalStateException If {@link #isHasTeamSelectiveSync} is + * {@code false}. + */ + public HasTeamSelectiveSyncValue getHasTeamSelectiveSyncValue() { + if (this._tag != Tag.HAS_TEAM_SELECTIVE_SYNC) { + throw new IllegalStateException("Invalid tag: required Tag.HAS_TEAM_SELECTIVE_SYNC, but was Tag." + this._tag.name()); + } + return hasTeamSelectiveSyncValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.uploadApiRateLimitValue, + this.hasTeamSharedDropboxValue, + this.hasTeamFileEventsValue, + this.hasTeamSelectiveSyncValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FeatureValue) { + FeatureValue other = (FeatureValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case UPLOAD_API_RATE_LIMIT: + return (this.uploadApiRateLimitValue == other.uploadApiRateLimitValue) || (this.uploadApiRateLimitValue.equals(other.uploadApiRateLimitValue)); + case HAS_TEAM_SHARED_DROPBOX: + return (this.hasTeamSharedDropboxValue == other.hasTeamSharedDropboxValue) || (this.hasTeamSharedDropboxValue.equals(other.hasTeamSharedDropboxValue)); + case HAS_TEAM_FILE_EVENTS: + return (this.hasTeamFileEventsValue == other.hasTeamFileEventsValue) || (this.hasTeamFileEventsValue.equals(other.hasTeamFileEventsValue)); + case HAS_TEAM_SELECTIVE_SYNC: + return (this.hasTeamSelectiveSyncValue == other.hasTeamSelectiveSyncValue) || (this.hasTeamSelectiveSyncValue.equals(other.hasTeamSelectiveSyncValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FeatureValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case UPLOAD_API_RATE_LIMIT: { + g.writeStartObject(); + writeTag("upload_api_rate_limit", g); + g.writeFieldName("upload_api_rate_limit"); + UploadApiRateLimitValue.Serializer.INSTANCE.serialize(value.uploadApiRateLimitValue, g); + g.writeEndObject(); + break; + } + case HAS_TEAM_SHARED_DROPBOX: { + g.writeStartObject(); + writeTag("has_team_shared_dropbox", g); + g.writeFieldName("has_team_shared_dropbox"); + HasTeamSharedDropboxValue.Serializer.INSTANCE.serialize(value.hasTeamSharedDropboxValue, g); + g.writeEndObject(); + break; + } + case HAS_TEAM_FILE_EVENTS: { + g.writeStartObject(); + writeTag("has_team_file_events", g); + g.writeFieldName("has_team_file_events"); + HasTeamFileEventsValue.Serializer.INSTANCE.serialize(value.hasTeamFileEventsValue, g); + g.writeEndObject(); + break; + } + case HAS_TEAM_SELECTIVE_SYNC: { + g.writeStartObject(); + writeTag("has_team_selective_sync", g); + g.writeFieldName("has_team_selective_sync"); + HasTeamSelectiveSyncValue.Serializer.INSTANCE.serialize(value.hasTeamSelectiveSyncValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FeatureValue deserialize(JsonParser p) throws IOException, JsonParseException { + FeatureValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("upload_api_rate_limit".equals(tag)) { + UploadApiRateLimitValue fieldValue = null; + expectField("upload_api_rate_limit", p); + fieldValue = UploadApiRateLimitValue.Serializer.INSTANCE.deserialize(p); + value = FeatureValue.uploadApiRateLimit(fieldValue); + } + else if ("has_team_shared_dropbox".equals(tag)) { + HasTeamSharedDropboxValue fieldValue = null; + expectField("has_team_shared_dropbox", p); + fieldValue = HasTeamSharedDropboxValue.Serializer.INSTANCE.deserialize(p); + value = FeatureValue.hasTeamSharedDropbox(fieldValue); + } + else if ("has_team_file_events".equals(tag)) { + HasTeamFileEventsValue fieldValue = null; + expectField("has_team_file_events", p); + fieldValue = HasTeamFileEventsValue.Serializer.INSTANCE.deserialize(p); + value = FeatureValue.hasTeamFileEvents(fieldValue); + } + else if ("has_team_selective_sync".equals(tag)) { + HasTeamSelectiveSyncValue fieldValue = null; + expectField("has_team_selective_sync", p); + fieldValue = HasTeamSelectiveSyncValue.Serializer.INSTANCE.deserialize(p); + value = FeatureValue.hasTeamSelectiveSync(fieldValue); + } + else { + value = FeatureValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchArg.java new file mode 100644 index 000000000..ea896af4c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchArg.java @@ -0,0 +1,156 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class FeaturesGetValuesBatchArg { + // struct team.FeaturesGetValuesBatchArg (team.stone) + + @Nonnull + protected final List features; + + /** + * + * @param features A list of features in {@link Feature}. If the list is + * empty, this route will return {@link FeaturesGetValuesBatchError}. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FeaturesGetValuesBatchArg(@Nonnull List features) { + if (features == null) { + throw new IllegalArgumentException("Required value for 'features' is null"); + } + for (Feature x : features) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'features' is null"); + } + } + this.features = features; + } + + /** + * A list of features in {@link Feature}. If the list is empty, this route + * will return {@link FeaturesGetValuesBatchError}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFeatures() { + return features; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.features + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FeaturesGetValuesBatchArg other = (FeaturesGetValuesBatchArg) obj; + return (this.features == other.features) || (this.features.equals(other.features)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FeaturesGetValuesBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("features"); + StoneSerializers.list(Feature.Serializer.INSTANCE).serialize(value.features, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FeaturesGetValuesBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FeaturesGetValuesBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_features = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("features".equals(field)) { + f_features = StoneSerializers.list(Feature.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_features == null) { + throw new JsonParseException(p, "Required field \"features\" missing."); + } + value = new FeaturesGetValuesBatchArg(f_features); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchError.java new file mode 100644 index 000000000..70b8a0a53 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchError.java @@ -0,0 +1,85 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum FeaturesGetValuesBatchError { + // union team.FeaturesGetValuesBatchError (team.stone) + /** + * At least one {@link Feature} must be included in the {@link + * FeaturesGetValuesBatchArg}.features list. + */ + EMPTY_FEATURES_LIST, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FeaturesGetValuesBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EMPTY_FEATURES_LIST: { + g.writeString("empty_features_list"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FeaturesGetValuesBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + FeaturesGetValuesBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("empty_features_list".equals(tag)) { + value = FeaturesGetValuesBatchError.EMPTY_FEATURES_LIST; + } + else { + value = FeaturesGetValuesBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchErrorException.java new file mode 100644 index 000000000..e28e9ce27 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * FeaturesGetValuesBatchError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#featuresGetValues(java.util.List)}.

+ */ +public class FeaturesGetValuesBatchErrorException extends DbxApiException { + // exception for routes: + // 2/team/features/get_values + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#featuresGetValues(java.util.List)}. + */ + public final FeaturesGetValuesBatchError errorValue; + + public FeaturesGetValuesBatchErrorException(String routeName, String requestId, LocalizedText userMessage, FeaturesGetValuesBatchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchResult.java new file mode 100644 index 000000000..904e6311e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchResult.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class FeaturesGetValuesBatchResult { + // struct team.FeaturesGetValuesBatchResult (team.stone) + + @Nonnull + protected final List values; + + /** + * + * @param values Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FeaturesGetValuesBatchResult(@Nonnull List values) { + if (values == null) { + throw new IllegalArgumentException("Required value for 'values' is null"); + } + for (FeatureValue x : values) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'values' is null"); + } + } + this.values = values; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getValues() { + return values; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.values + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FeaturesGetValuesBatchResult other = (FeaturesGetValuesBatchResult) obj; + return (this.values == other.values) || (this.values.equals(other.values)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FeaturesGetValuesBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("values"); + StoneSerializers.list(FeatureValue.Serializer.INSTANCE).serialize(value.values, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FeaturesGetValuesBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FeaturesGetValuesBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_values = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("values".equals(field)) { + f_values = StoneSerializers.list(FeatureValue.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_values == null) { + throw new JsonParseException(p, "Required field \"values\" missing."); + } + value = new FeaturesGetValuesBatchResult(f_values); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetActivityReport.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetActivityReport.java new file mode 100644 index 000000000..5875246ee --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetActivityReport.java @@ -0,0 +1,646 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Activity Report Result. Each of the items in the storage report is an array + * of values, one value per day. If there is no data for a day, then the value + * will be None. + */ +public class GetActivityReport extends BaseDfbReport { + // struct team.GetActivityReport (team_reports.stone) + + @Nonnull + protected final List adds; + @Nonnull + protected final List edits; + @Nonnull + protected final List deletes; + @Nonnull + protected final List activeUsers28Day; + @Nonnull + protected final List activeUsers7Day; + @Nonnull + protected final List activeUsers1Day; + @Nonnull + protected final List activeSharedFolders28Day; + @Nonnull + protected final List activeSharedFolders7Day; + @Nonnull + protected final List activeSharedFolders1Day; + @Nonnull + protected final List sharedLinksCreated; + @Nonnull + protected final List sharedLinksViewedByTeam; + @Nonnull + protected final List sharedLinksViewedByOutsideUser; + @Nonnull + protected final List sharedLinksViewedByNotLoggedIn; + @Nonnull + protected final List sharedLinksViewedTotal; + + /** + * Activity Report Result. Each of the items in the storage report is an + * array of values, one value per day. If there is no data for a day, then + * the value will be None. + * + * @param startDate First date present in the results as 'YYYY-MM-DD' or + * None. Must not be {@code null}. + * @param adds Array of total number of adds by team members. Must not + * contain a {@code null} item and not be {@code null}. + * @param edits Array of number of edits by team members. If the same user + * edits the same file multiple times this is counted as a single edit. + * Must not contain a {@code null} item and not be {@code null}. + * @param deletes Array of total number of deletes by team members. Must + * not contain a {@code null} item and not be {@code null}. + * @param activeUsers28Day Array of the number of users who have been + * active in the last 28 days. Must not contain a {@code null} item and + * not be {@code null}. + * @param activeUsers7Day Array of the number of users who have been active + * in the last week. Must not contain a {@code null} item and not be + * {@code null}. + * @param activeUsers1Day Array of the number of users who have been active + * in the last day. Must not contain a {@code null} item and not be + * {@code null}. + * @param activeSharedFolders28Day Array of the number of shared folders + * with some activity in the last 28 days. Must not contain a {@code + * null} item and not be {@code null}. + * @param activeSharedFolders7Day Array of the number of shared folders + * with some activity in the last week. Must not contain a {@code null} + * item and not be {@code null}. + * @param activeSharedFolders1Day Array of the number of shared folders + * with some activity in the last day. Must not contain a {@code null} + * item and not be {@code null}. + * @param sharedLinksCreated Array of the number of shared links created. + * Must not contain a {@code null} item and not be {@code null}. + * @param sharedLinksViewedByTeam Array of the number of views by team + * users to shared links created by the team. Must not contain a {@code + * null} item and not be {@code null}. + * @param sharedLinksViewedByOutsideUser Array of the number of views by + * users outside of the team to shared links created by the team. Must + * not contain a {@code null} item and not be {@code null}. + * @param sharedLinksViewedByNotLoggedIn Array of the number of views by + * non-logged-in users to shared links created by the team. Must not + * contain a {@code null} item and not be {@code null}. + * @param sharedLinksViewedTotal Array of the total number of views to + * shared links created by the team. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetActivityReport(@Nonnull String startDate, @Nonnull List adds, @Nonnull List edits, @Nonnull List deletes, @Nonnull List activeUsers28Day, @Nonnull List activeUsers7Day, @Nonnull List activeUsers1Day, @Nonnull List activeSharedFolders28Day, @Nonnull List activeSharedFolders7Day, @Nonnull List activeSharedFolders1Day, @Nonnull List sharedLinksCreated, @Nonnull List sharedLinksViewedByTeam, @Nonnull List sharedLinksViewedByOutsideUser, @Nonnull List sharedLinksViewedByNotLoggedIn, @Nonnull List sharedLinksViewedTotal) { + super(startDate); + if (adds == null) { + throw new IllegalArgumentException("Required value for 'adds' is null"); + } + for (Long x : adds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'adds' is null"); + } + } + this.adds = adds; + if (edits == null) { + throw new IllegalArgumentException("Required value for 'edits' is null"); + } + for (Long x : edits) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'edits' is null"); + } + } + this.edits = edits; + if (deletes == null) { + throw new IllegalArgumentException("Required value for 'deletes' is null"); + } + for (Long x : deletes) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'deletes' is null"); + } + } + this.deletes = deletes; + if (activeUsers28Day == null) { + throw new IllegalArgumentException("Required value for 'activeUsers28Day' is null"); + } + for (Long x : activeUsers28Day) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeUsers28Day' is null"); + } + } + this.activeUsers28Day = activeUsers28Day; + if (activeUsers7Day == null) { + throw new IllegalArgumentException("Required value for 'activeUsers7Day' is null"); + } + for (Long x : activeUsers7Day) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeUsers7Day' is null"); + } + } + this.activeUsers7Day = activeUsers7Day; + if (activeUsers1Day == null) { + throw new IllegalArgumentException("Required value for 'activeUsers1Day' is null"); + } + for (Long x : activeUsers1Day) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeUsers1Day' is null"); + } + } + this.activeUsers1Day = activeUsers1Day; + if (activeSharedFolders28Day == null) { + throw new IllegalArgumentException("Required value for 'activeSharedFolders28Day' is null"); + } + for (Long x : activeSharedFolders28Day) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeSharedFolders28Day' is null"); + } + } + this.activeSharedFolders28Day = activeSharedFolders28Day; + if (activeSharedFolders7Day == null) { + throw new IllegalArgumentException("Required value for 'activeSharedFolders7Day' is null"); + } + for (Long x : activeSharedFolders7Day) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeSharedFolders7Day' is null"); + } + } + this.activeSharedFolders7Day = activeSharedFolders7Day; + if (activeSharedFolders1Day == null) { + throw new IllegalArgumentException("Required value for 'activeSharedFolders1Day' is null"); + } + for (Long x : activeSharedFolders1Day) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeSharedFolders1Day' is null"); + } + } + this.activeSharedFolders1Day = activeSharedFolders1Day; + if (sharedLinksCreated == null) { + throw new IllegalArgumentException("Required value for 'sharedLinksCreated' is null"); + } + for (Long x : sharedLinksCreated) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sharedLinksCreated' is null"); + } + } + this.sharedLinksCreated = sharedLinksCreated; + if (sharedLinksViewedByTeam == null) { + throw new IllegalArgumentException("Required value for 'sharedLinksViewedByTeam' is null"); + } + for (Long x : sharedLinksViewedByTeam) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sharedLinksViewedByTeam' is null"); + } + } + this.sharedLinksViewedByTeam = sharedLinksViewedByTeam; + if (sharedLinksViewedByOutsideUser == null) { + throw new IllegalArgumentException("Required value for 'sharedLinksViewedByOutsideUser' is null"); + } + for (Long x : sharedLinksViewedByOutsideUser) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sharedLinksViewedByOutsideUser' is null"); + } + } + this.sharedLinksViewedByOutsideUser = sharedLinksViewedByOutsideUser; + if (sharedLinksViewedByNotLoggedIn == null) { + throw new IllegalArgumentException("Required value for 'sharedLinksViewedByNotLoggedIn' is null"); + } + for (Long x : sharedLinksViewedByNotLoggedIn) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sharedLinksViewedByNotLoggedIn' is null"); + } + } + this.sharedLinksViewedByNotLoggedIn = sharedLinksViewedByNotLoggedIn; + if (sharedLinksViewedTotal == null) { + throw new IllegalArgumentException("Required value for 'sharedLinksViewedTotal' is null"); + } + for (Long x : sharedLinksViewedTotal) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sharedLinksViewedTotal' is null"); + } + } + this.sharedLinksViewedTotal = sharedLinksViewedTotal; + } + + /** + * First date present in the results as 'YYYY-MM-DD' or None. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getStartDate() { + return startDate; + } + + /** + * Array of total number of adds by team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAdds() { + return adds; + } + + /** + * Array of number of edits by team members. If the same user edits the same + * file multiple times this is counted as a single edit. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEdits() { + return edits; + } + + /** + * Array of total number of deletes by team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getDeletes() { + return deletes; + } + + /** + * Array of the number of users who have been active in the last 28 days. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getActiveUsers28Day() { + return activeUsers28Day; + } + + /** + * Array of the number of users who have been active in the last week. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getActiveUsers7Day() { + return activeUsers7Day; + } + + /** + * Array of the number of users who have been active in the last day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getActiveUsers1Day() { + return activeUsers1Day; + } + + /** + * Array of the number of shared folders with some activity in the last 28 + * days. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getActiveSharedFolders28Day() { + return activeSharedFolders28Day; + } + + /** + * Array of the number of shared folders with some activity in the last + * week. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getActiveSharedFolders7Day() { + return activeSharedFolders7Day; + } + + /** + * Array of the number of shared folders with some activity in the last day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getActiveSharedFolders1Day() { + return activeSharedFolders1Day; + } + + /** + * Array of the number of shared links created. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSharedLinksCreated() { + return sharedLinksCreated; + } + + /** + * Array of the number of views by team users to shared links created by the + * team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSharedLinksViewedByTeam() { + return sharedLinksViewedByTeam; + } + + /** + * Array of the number of views by users outside of the team to shared links + * created by the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSharedLinksViewedByOutsideUser() { + return sharedLinksViewedByOutsideUser; + } + + /** + * Array of the number of views by non-logged-in users to shared links + * created by the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSharedLinksViewedByNotLoggedIn() { + return sharedLinksViewedByNotLoggedIn; + } + + /** + * Array of the total number of views to shared links created by the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSharedLinksViewedTotal() { + return sharedLinksViewedTotal; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.adds, + this.edits, + this.deletes, + this.activeUsers28Day, + this.activeUsers7Day, + this.activeUsers1Day, + this.activeSharedFolders28Day, + this.activeSharedFolders7Day, + this.activeSharedFolders1Day, + this.sharedLinksCreated, + this.sharedLinksViewedByTeam, + this.sharedLinksViewedByOutsideUser, + this.sharedLinksViewedByNotLoggedIn, + this.sharedLinksViewedTotal + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetActivityReport other = (GetActivityReport) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.adds == other.adds) || (this.adds.equals(other.adds))) + && ((this.edits == other.edits) || (this.edits.equals(other.edits))) + && ((this.deletes == other.deletes) || (this.deletes.equals(other.deletes))) + && ((this.activeUsers28Day == other.activeUsers28Day) || (this.activeUsers28Day.equals(other.activeUsers28Day))) + && ((this.activeUsers7Day == other.activeUsers7Day) || (this.activeUsers7Day.equals(other.activeUsers7Day))) + && ((this.activeUsers1Day == other.activeUsers1Day) || (this.activeUsers1Day.equals(other.activeUsers1Day))) + && ((this.activeSharedFolders28Day == other.activeSharedFolders28Day) || (this.activeSharedFolders28Day.equals(other.activeSharedFolders28Day))) + && ((this.activeSharedFolders7Day == other.activeSharedFolders7Day) || (this.activeSharedFolders7Day.equals(other.activeSharedFolders7Day))) + && ((this.activeSharedFolders1Day == other.activeSharedFolders1Day) || (this.activeSharedFolders1Day.equals(other.activeSharedFolders1Day))) + && ((this.sharedLinksCreated == other.sharedLinksCreated) || (this.sharedLinksCreated.equals(other.sharedLinksCreated))) + && ((this.sharedLinksViewedByTeam == other.sharedLinksViewedByTeam) || (this.sharedLinksViewedByTeam.equals(other.sharedLinksViewedByTeam))) + && ((this.sharedLinksViewedByOutsideUser == other.sharedLinksViewedByOutsideUser) || (this.sharedLinksViewedByOutsideUser.equals(other.sharedLinksViewedByOutsideUser))) + && ((this.sharedLinksViewedByNotLoggedIn == other.sharedLinksViewedByNotLoggedIn) || (this.sharedLinksViewedByNotLoggedIn.equals(other.sharedLinksViewedByNotLoggedIn))) + && ((this.sharedLinksViewedTotal == other.sharedLinksViewedTotal) || (this.sharedLinksViewedTotal.equals(other.sharedLinksViewedTotal))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetActivityReport value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.string().serialize(value.startDate, g); + g.writeFieldName("adds"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.adds, g); + g.writeFieldName("edits"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.edits, g); + g.writeFieldName("deletes"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.deletes, g); + g.writeFieldName("active_users_28_day"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.activeUsers28Day, g); + g.writeFieldName("active_users_7_day"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.activeUsers7Day, g); + g.writeFieldName("active_users_1_day"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.activeUsers1Day, g); + g.writeFieldName("active_shared_folders_28_day"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.activeSharedFolders28Day, g); + g.writeFieldName("active_shared_folders_7_day"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.activeSharedFolders7Day, g); + g.writeFieldName("active_shared_folders_1_day"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.activeSharedFolders1Day, g); + g.writeFieldName("shared_links_created"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.sharedLinksCreated, g); + g.writeFieldName("shared_links_viewed_by_team"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.sharedLinksViewedByTeam, g); + g.writeFieldName("shared_links_viewed_by_outside_user"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.sharedLinksViewedByOutsideUser, g); + g.writeFieldName("shared_links_viewed_by_not_logged_in"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.sharedLinksViewedByNotLoggedIn, g); + g.writeFieldName("shared_links_viewed_total"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.sharedLinksViewedTotal, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetActivityReport deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetActivityReport value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_startDate = null; + List f_adds = null; + List f_edits = null; + List f_deletes = null; + List f_activeUsers28Day = null; + List f_activeUsers7Day = null; + List f_activeUsers1Day = null; + List f_activeSharedFolders28Day = null; + List f_activeSharedFolders7Day = null; + List f_activeSharedFolders1Day = null; + List f_sharedLinksCreated = null; + List f_sharedLinksViewedByTeam = null; + List f_sharedLinksViewedByOutsideUser = null; + List f_sharedLinksViewedByNotLoggedIn = null; + List f_sharedLinksViewedTotal = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.string().deserialize(p); + } + else if ("adds".equals(field)) { + f_adds = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("edits".equals(field)) { + f_edits = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("deletes".equals(field)) { + f_deletes = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("active_users_28_day".equals(field)) { + f_activeUsers28Day = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("active_users_7_day".equals(field)) { + f_activeUsers7Day = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("active_users_1_day".equals(field)) { + f_activeUsers1Day = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("active_shared_folders_28_day".equals(field)) { + f_activeSharedFolders28Day = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("active_shared_folders_7_day".equals(field)) { + f_activeSharedFolders7Day = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("active_shared_folders_1_day".equals(field)) { + f_activeSharedFolders1Day = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("shared_links_created".equals(field)) { + f_sharedLinksCreated = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("shared_links_viewed_by_team".equals(field)) { + f_sharedLinksViewedByTeam = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("shared_links_viewed_by_outside_user".equals(field)) { + f_sharedLinksViewedByOutsideUser = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("shared_links_viewed_by_not_logged_in".equals(field)) { + f_sharedLinksViewedByNotLoggedIn = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("shared_links_viewed_total".equals(field)) { + f_sharedLinksViewedTotal = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_adds == null) { + throw new JsonParseException(p, "Required field \"adds\" missing."); + } + if (f_edits == null) { + throw new JsonParseException(p, "Required field \"edits\" missing."); + } + if (f_deletes == null) { + throw new JsonParseException(p, "Required field \"deletes\" missing."); + } + if (f_activeUsers28Day == null) { + throw new JsonParseException(p, "Required field \"active_users_28_day\" missing."); + } + if (f_activeUsers7Day == null) { + throw new JsonParseException(p, "Required field \"active_users_7_day\" missing."); + } + if (f_activeUsers1Day == null) { + throw new JsonParseException(p, "Required field \"active_users_1_day\" missing."); + } + if (f_activeSharedFolders28Day == null) { + throw new JsonParseException(p, "Required field \"active_shared_folders_28_day\" missing."); + } + if (f_activeSharedFolders7Day == null) { + throw new JsonParseException(p, "Required field \"active_shared_folders_7_day\" missing."); + } + if (f_activeSharedFolders1Day == null) { + throw new JsonParseException(p, "Required field \"active_shared_folders_1_day\" missing."); + } + if (f_sharedLinksCreated == null) { + throw new JsonParseException(p, "Required field \"shared_links_created\" missing."); + } + if (f_sharedLinksViewedByTeam == null) { + throw new JsonParseException(p, "Required field \"shared_links_viewed_by_team\" missing."); + } + if (f_sharedLinksViewedByOutsideUser == null) { + throw new JsonParseException(p, "Required field \"shared_links_viewed_by_outside_user\" missing."); + } + if (f_sharedLinksViewedByNotLoggedIn == null) { + throw new JsonParseException(p, "Required field \"shared_links_viewed_by_not_logged_in\" missing."); + } + if (f_sharedLinksViewedTotal == null) { + throw new JsonParseException(p, "Required field \"shared_links_viewed_total\" missing."); + } + value = new GetActivityReport(f_startDate, f_adds, f_edits, f_deletes, f_activeUsers28Day, f_activeUsers7Day, f_activeUsers1Day, f_activeSharedFolders28Day, f_activeSharedFolders7Day, f_activeSharedFolders1Day, f_sharedLinksCreated, f_sharedLinksViewedByTeam, f_sharedLinksViewedByOutsideUser, f_sharedLinksViewedByNotLoggedIn, f_sharedLinksViewedTotal); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetDevicesReport.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetDevicesReport.java new file mode 100644 index 000000000..e9f8c9d75 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetDevicesReport.java @@ -0,0 +1,241 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Devices Report Result. Contains subsections for different time ranges of + * activity. Each of the items in each subsection of the storage report is an + * array of values, one value per day. If there is no data for a day, then the + * value will be None. + */ +public class GetDevicesReport extends BaseDfbReport { + // struct team.GetDevicesReport (team_reports.stone) + + @Nonnull + protected final DevicesActive active1Day; + @Nonnull + protected final DevicesActive active7Day; + @Nonnull + protected final DevicesActive active28Day; + + /** + * Devices Report Result. Contains subsections for different time ranges of + * activity. Each of the items in each subsection of the storage report is + * an array of values, one value per day. If there is no data for a day, + * then the value will be None. + * + * @param startDate First date present in the results as 'YYYY-MM-DD' or + * None. Must not be {@code null}. + * @param active1Day Report of the number of devices active in the last + * day. Must not be {@code null}. + * @param active7Day Report of the number of devices active in the last 7 + * days. Must not be {@code null}. + * @param active28Day Report of the number of devices active in the last 28 + * days. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetDevicesReport(@Nonnull String startDate, @Nonnull DevicesActive active1Day, @Nonnull DevicesActive active7Day, @Nonnull DevicesActive active28Day) { + super(startDate); + if (active1Day == null) { + throw new IllegalArgumentException("Required value for 'active1Day' is null"); + } + this.active1Day = active1Day; + if (active7Day == null) { + throw new IllegalArgumentException("Required value for 'active7Day' is null"); + } + this.active7Day = active7Day; + if (active28Day == null) { + throw new IllegalArgumentException("Required value for 'active28Day' is null"); + } + this.active28Day = active28Day; + } + + /** + * First date present in the results as 'YYYY-MM-DD' or None. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getStartDate() { + return startDate; + } + + /** + * Report of the number of devices active in the last day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DevicesActive getActive1Day() { + return active1Day; + } + + /** + * Report of the number of devices active in the last 7 days. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DevicesActive getActive7Day() { + return active7Day; + } + + /** + * Report of the number of devices active in the last 28 days. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DevicesActive getActive28Day() { + return active28Day; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.active1Day, + this.active7Day, + this.active28Day + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetDevicesReport other = (GetDevicesReport) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.active1Day == other.active1Day) || (this.active1Day.equals(other.active1Day))) + && ((this.active7Day == other.active7Day) || (this.active7Day.equals(other.active7Day))) + && ((this.active28Day == other.active28Day) || (this.active28Day.equals(other.active28Day))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetDevicesReport value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.string().serialize(value.startDate, g); + g.writeFieldName("active_1_day"); + DevicesActive.Serializer.INSTANCE.serialize(value.active1Day, g); + g.writeFieldName("active_7_day"); + DevicesActive.Serializer.INSTANCE.serialize(value.active7Day, g); + g.writeFieldName("active_28_day"); + DevicesActive.Serializer.INSTANCE.serialize(value.active28Day, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetDevicesReport deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetDevicesReport value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_startDate = null; + DevicesActive f_active1Day = null; + DevicesActive f_active7Day = null; + DevicesActive f_active28Day = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.string().deserialize(p); + } + else if ("active_1_day".equals(field)) { + f_active1Day = DevicesActive.Serializer.INSTANCE.deserialize(p); + } + else if ("active_7_day".equals(field)) { + f_active7Day = DevicesActive.Serializer.INSTANCE.deserialize(p); + } + else if ("active_28_day".equals(field)) { + f_active28Day = DevicesActive.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_active1Day == null) { + throw new JsonParseException(p, "Required field \"active_1_day\" missing."); + } + if (f_active7Day == null) { + throw new JsonParseException(p, "Required field \"active_7_day\" missing."); + } + if (f_active28Day == null) { + throw new JsonParseException(p, "Required field \"active_28_day\" missing."); + } + value = new GetDevicesReport(f_startDate, f_active1Day, f_active7Day, f_active28Day); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetMembershipReport.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetMembershipReport.java new file mode 100644 index 000000000..128258d6d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetMembershipReport.java @@ -0,0 +1,325 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Membership Report Result. Each of the items in the storage report is an array + * of values, one value per day. If there is no data for a day, then the value + * will be None. + */ +public class GetMembershipReport extends BaseDfbReport { + // struct team.GetMembershipReport (team_reports.stone) + + @Nonnull + protected final List teamSize; + @Nonnull + protected final List pendingInvites; + @Nonnull + protected final List membersJoined; + @Nonnull + protected final List suspendedMembers; + @Nonnull + protected final List licenses; + + /** + * Membership Report Result. Each of the items in the storage report is an + * array of values, one value per day. If there is no data for a day, then + * the value will be None. + * + * @param startDate First date present in the results as 'YYYY-MM-DD' or + * None. Must not be {@code null}. + * @param teamSize Team size, for each day. Must not contain a {@code null} + * item and not be {@code null}. + * @param pendingInvites The number of pending invites to the team, for + * each day. Must not contain a {@code null} item and not be {@code + * null}. + * @param membersJoined The number of members that joined the team, for + * each day. Must not contain a {@code null} item and not be {@code + * null}. + * @param suspendedMembers The number of suspended team members, for each + * day. Must not contain a {@code null} item and not be {@code null}. + * @param licenses The total number of licenses the team has, for each day. + * Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetMembershipReport(@Nonnull String startDate, @Nonnull List teamSize, @Nonnull List pendingInvites, @Nonnull List membersJoined, @Nonnull List suspendedMembers, @Nonnull List licenses) { + super(startDate); + if (teamSize == null) { + throw new IllegalArgumentException("Required value for 'teamSize' is null"); + } + for (Long x : teamSize) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'teamSize' is null"); + } + } + this.teamSize = teamSize; + if (pendingInvites == null) { + throw new IllegalArgumentException("Required value for 'pendingInvites' is null"); + } + for (Long x : pendingInvites) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'pendingInvites' is null"); + } + } + this.pendingInvites = pendingInvites; + if (membersJoined == null) { + throw new IllegalArgumentException("Required value for 'membersJoined' is null"); + } + for (Long x : membersJoined) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'membersJoined' is null"); + } + } + this.membersJoined = membersJoined; + if (suspendedMembers == null) { + throw new IllegalArgumentException("Required value for 'suspendedMembers' is null"); + } + for (Long x : suspendedMembers) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'suspendedMembers' is null"); + } + } + this.suspendedMembers = suspendedMembers; + if (licenses == null) { + throw new IllegalArgumentException("Required value for 'licenses' is null"); + } + for (Long x : licenses) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'licenses' is null"); + } + } + this.licenses = licenses; + } + + /** + * First date present in the results as 'YYYY-MM-DD' or None. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getStartDate() { + return startDate; + } + + /** + * Team size, for each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTeamSize() { + return teamSize; + } + + /** + * The number of pending invites to the team, for each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPendingInvites() { + return pendingInvites; + } + + /** + * The number of members that joined the team, for each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembersJoined() { + return membersJoined; + } + + /** + * The number of suspended team members, for each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSuspendedMembers() { + return suspendedMembers; + } + + /** + * The total number of licenses the team has, for each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLicenses() { + return licenses; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamSize, + this.pendingInvites, + this.membersJoined, + this.suspendedMembers, + this.licenses + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetMembershipReport other = (GetMembershipReport) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.teamSize == other.teamSize) || (this.teamSize.equals(other.teamSize))) + && ((this.pendingInvites == other.pendingInvites) || (this.pendingInvites.equals(other.pendingInvites))) + && ((this.membersJoined == other.membersJoined) || (this.membersJoined.equals(other.membersJoined))) + && ((this.suspendedMembers == other.suspendedMembers) || (this.suspendedMembers.equals(other.suspendedMembers))) + && ((this.licenses == other.licenses) || (this.licenses.equals(other.licenses))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetMembershipReport value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.string().serialize(value.startDate, g); + g.writeFieldName("team_size"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.teamSize, g); + g.writeFieldName("pending_invites"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.pendingInvites, g); + g.writeFieldName("members_joined"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.membersJoined, g); + g.writeFieldName("suspended_members"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.suspendedMembers, g); + g.writeFieldName("licenses"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.licenses, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetMembershipReport deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetMembershipReport value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_startDate = null; + List f_teamSize = null; + List f_pendingInvites = null; + List f_membersJoined = null; + List f_suspendedMembers = null; + List f_licenses = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.string().deserialize(p); + } + else if ("team_size".equals(field)) { + f_teamSize = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("pending_invites".equals(field)) { + f_pendingInvites = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("members_joined".equals(field)) { + f_membersJoined = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("suspended_members".equals(field)) { + f_suspendedMembers = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("licenses".equals(field)) { + f_licenses = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_teamSize == null) { + throw new JsonParseException(p, "Required field \"team_size\" missing."); + } + if (f_pendingInvites == null) { + throw new JsonParseException(p, "Required field \"pending_invites\" missing."); + } + if (f_membersJoined == null) { + throw new JsonParseException(p, "Required field \"members_joined\" missing."); + } + if (f_suspendedMembers == null) { + throw new JsonParseException(p, "Required field \"suspended_members\" missing."); + } + if (f_licenses == null) { + throw new JsonParseException(p, "Required field \"licenses\" missing."); + } + value = new GetMembershipReport(f_startDate, f_teamSize, f_pendingInvites, f_membersJoined, f_suspendedMembers, f_licenses); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetStorageReport.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetStorageReport.java new file mode 100644 index 000000000..df3fbd250 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GetStorageReport.java @@ -0,0 +1,345 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Storage Report Result. Each of the items in the storage report is an array of + * values, one value per day. If there is no data for a day, then the value will + * be None. + */ +public class GetStorageReport extends BaseDfbReport { + // struct team.GetStorageReport (team_reports.stone) + + @Nonnull + protected final List totalUsage; + @Nonnull + protected final List sharedUsage; + @Nonnull + protected final List unsharedUsage; + @Nonnull + protected final List sharedFolders; + @Nonnull + protected final List> memberStorageMap; + + /** + * Storage Report Result. Each of the items in the storage report is an + * array of values, one value per day. If there is no data for a day, then + * the value will be None. + * + * @param startDate First date present in the results as 'YYYY-MM-DD' or + * None. Must not be {@code null}. + * @param totalUsage Sum of the shared, unshared, and datastore usages, for + * each day. Must not contain a {@code null} item and not be {@code + * null}. + * @param sharedUsage Array of the combined size (bytes) of team members' + * shared folders, for each day. Must not contain a {@code null} item + * and not be {@code null}. + * @param unsharedUsage Array of the combined size (bytes) of team members' + * root namespaces, for each day. Must not contain a {@code null} item + * and not be {@code null}. + * @param sharedFolders Array of the number of shared folders owned by team + * members, for each day. Must not contain a {@code null} item and not + * be {@code null}. + * @param memberStorageMap Array of storage summaries of team members' + * account sizes. Each storage summary is an array of key, value pairs, + * where each pair describes a storage bucket. The key indicates the + * upper bound of the bucket and the value is the number of users in + * that bucket. There is one such summary per day. If there is no data + * for a day, the storage summary will be empty. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetStorageReport(@Nonnull String startDate, @Nonnull List totalUsage, @Nonnull List sharedUsage, @Nonnull List unsharedUsage, @Nonnull List sharedFolders, @Nonnull List> memberStorageMap) { + super(startDate); + if (totalUsage == null) { + throw new IllegalArgumentException("Required value for 'totalUsage' is null"); + } + for (Long x : totalUsage) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'totalUsage' is null"); + } + } + this.totalUsage = totalUsage; + if (sharedUsage == null) { + throw new IllegalArgumentException("Required value for 'sharedUsage' is null"); + } + for (Long x : sharedUsage) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sharedUsage' is null"); + } + } + this.sharedUsage = sharedUsage; + if (unsharedUsage == null) { + throw new IllegalArgumentException("Required value for 'unsharedUsage' is null"); + } + for (Long x : unsharedUsage) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'unsharedUsage' is null"); + } + } + this.unsharedUsage = unsharedUsage; + if (sharedFolders == null) { + throw new IllegalArgumentException("Required value for 'sharedFolders' is null"); + } + for (Long x : sharedFolders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'sharedFolders' is null"); + } + } + this.sharedFolders = sharedFolders; + if (memberStorageMap == null) { + throw new IllegalArgumentException("Required value for 'memberStorageMap' is null"); + } + for (List x : memberStorageMap) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'memberStorageMap' is null"); + } + for (StorageBucket x1 : x) { + if (x1 == null) { + throw new IllegalArgumentException("An item in listan item in list 'memberStorageMap' is null"); + } + } + } + this.memberStorageMap = memberStorageMap; + } + + /** + * First date present in the results as 'YYYY-MM-DD' or None. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getStartDate() { + return startDate; + } + + /** + * Sum of the shared, unshared, and datastore usages, for each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTotalUsage() { + return totalUsage; + } + + /** + * Array of the combined size (bytes) of team members' shared folders, for + * each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSharedUsage() { + return sharedUsage; + } + + /** + * Array of the combined size (bytes) of team members' root namespaces, for + * each day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUnsharedUsage() { + return unsharedUsage; + } + + /** + * Array of the number of shared folders owned by team members, for each + * day. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSharedFolders() { + return sharedFolders; + } + + /** + * Array of storage summaries of team members' account sizes. Each storage + * summary is an array of key, value pairs, where each pair describes a + * storage bucket. The key indicates the upper bound of the bucket and the + * value is the number of users in that bucket. There is one such summary + * per day. If there is no data for a day, the storage summary will be + * empty. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List> getMemberStorageMap() { + return memberStorageMap; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.totalUsage, + this.sharedUsage, + this.unsharedUsage, + this.sharedFolders, + this.memberStorageMap + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetStorageReport other = (GetStorageReport) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.totalUsage == other.totalUsage) || (this.totalUsage.equals(other.totalUsage))) + && ((this.sharedUsage == other.sharedUsage) || (this.sharedUsage.equals(other.sharedUsage))) + && ((this.unsharedUsage == other.unsharedUsage) || (this.unsharedUsage.equals(other.unsharedUsage))) + && ((this.sharedFolders == other.sharedFolders) || (this.sharedFolders.equals(other.sharedFolders))) + && ((this.memberStorageMap == other.memberStorageMap) || (this.memberStorageMap.equals(other.memberStorageMap))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetStorageReport value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.string().serialize(value.startDate, g); + g.writeFieldName("total_usage"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.totalUsage, g); + g.writeFieldName("shared_usage"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.sharedUsage, g); + g.writeFieldName("unshared_usage"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.unsharedUsage, g); + g.writeFieldName("shared_folders"); + StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).serialize(value.sharedFolders, g); + g.writeFieldName("member_storage_map"); + StoneSerializers.list(StoneSerializers.list(StorageBucket.Serializer.INSTANCE)).serialize(value.memberStorageMap, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetStorageReport deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetStorageReport value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_startDate = null; + List f_totalUsage = null; + List f_sharedUsage = null; + List f_unsharedUsage = null; + List f_sharedFolders = null; + List> f_memberStorageMap = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.string().deserialize(p); + } + else if ("total_usage".equals(field)) { + f_totalUsage = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("shared_usage".equals(field)) { + f_sharedUsage = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("unshared_usage".equals(field)) { + f_unsharedUsage = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("shared_folders".equals(field)) { + f_sharedFolders = StoneSerializers.list(StoneSerializers.nullable(StoneSerializers.uInt64())).deserialize(p); + } + else if ("member_storage_map".equals(field)) { + f_memberStorageMap = StoneSerializers.list(StoneSerializers.list(StorageBucket.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_totalUsage == null) { + throw new JsonParseException(p, "Required field \"total_usage\" missing."); + } + if (f_sharedUsage == null) { + throw new JsonParseException(p, "Required field \"shared_usage\" missing."); + } + if (f_unsharedUsage == null) { + throw new JsonParseException(p, "Required field \"unshared_usage\" missing."); + } + if (f_sharedFolders == null) { + throw new JsonParseException(p, "Required field \"shared_folders\" missing."); + } + if (f_memberStorageMap == null) { + throw new JsonParseException(p, "Required field \"member_storage_map\" missing."); + } + value = new GetStorageReport(f_startDate, f_totalUsage, f_sharedUsage, f_unsharedUsage, f_sharedFolders, f_memberStorageMap); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupAccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupAccessType.java new file mode 100644 index 000000000..fd009b0f4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupAccessType.java @@ -0,0 +1,90 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Role of a user in group. + */ +public enum GroupAccessType { + // union team.GroupAccessType (team_groups.stone) + /** + * User is a member of the group, but has no special permissions. + */ + MEMBER, + /** + * User can rename the group, and add/remove members. + */ + OWNER; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupAccessType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case MEMBER: { + g.writeString("member"); + break; + } + case OWNER: { + g.writeString("owner"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GroupAccessType deserialize(JsonParser p) throws IOException, JsonParseException { + GroupAccessType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("member".equals(tag)) { + value = GroupAccessType.MEMBER; + } + else if ("owner".equals(tag)) { + value = GroupAccessType.OWNER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateArg.java new file mode 100644 index 000000000..23b99afe6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateArg.java @@ -0,0 +1,331 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.GroupManagementType; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class GroupCreateArg { + // struct team.GroupCreateArg (team_groups.stone) + + @Nonnull + protected final String groupName; + protected final boolean addCreatorAsOwner; + @Nullable + protected final String groupExternalId; + @Nullable + protected final GroupManagementType groupManagementType; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param groupName Group name. Must not be {@code null}. + * @param addCreatorAsOwner Automatically add the creator of the group. + * @param groupExternalId The creator of a team can associate an arbitrary + * external ID to the group. + * @param groupManagementType Whether the team can be managed by selected + * users, or only by team admins. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupCreateArg(@Nonnull String groupName, boolean addCreatorAsOwner, @Nullable String groupExternalId, @Nullable GroupManagementType groupManagementType) { + if (groupName == null) { + throw new IllegalArgumentException("Required value for 'groupName' is null"); + } + this.groupName = groupName; + this.addCreatorAsOwner = addCreatorAsOwner; + this.groupExternalId = groupExternalId; + this.groupManagementType = groupManagementType; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param groupName Group name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupCreateArg(@Nonnull String groupName) { + this(groupName, false, null, null); + } + + /** + * Group name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGroupName() { + return groupName; + } + + /** + * Automatically add the creator of the group. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getAddCreatorAsOwner() { + return addCreatorAsOwner; + } + + /** + * The creator of a team can associate an arbitrary external ID to the + * group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getGroupExternalId() { + return groupExternalId; + } + + /** + * Whether the team can be managed by selected users, or only by team + * admins. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GroupManagementType getGroupManagementType() { + return groupManagementType; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param groupName Group name. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String groupName) { + return new Builder(groupName); + } + + /** + * Builder for {@link GroupCreateArg}. + */ + public static class Builder { + protected final String groupName; + + protected boolean addCreatorAsOwner; + protected String groupExternalId; + protected GroupManagementType groupManagementType; + + protected Builder(String groupName) { + if (groupName == null) { + throw new IllegalArgumentException("Required value for 'groupName' is null"); + } + this.groupName = groupName; + this.addCreatorAsOwner = false; + this.groupExternalId = null; + this.groupManagementType = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param addCreatorAsOwner Automatically add the creator of the group. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withAddCreatorAsOwner(Boolean addCreatorAsOwner) { + if (addCreatorAsOwner != null) { + this.addCreatorAsOwner = addCreatorAsOwner; + } + else { + this.addCreatorAsOwner = false; + } + return this; + } + + /** + * Set value for optional field. + * + * @param groupExternalId The creator of a team can associate an + * arbitrary external ID to the group. + * + * @return this builder + */ + public Builder withGroupExternalId(String groupExternalId) { + this.groupExternalId = groupExternalId; + return this; + } + + /** + * Set value for optional field. + * + * @param groupManagementType Whether the team can be managed by + * selected users, or only by team admins. + * + * @return this builder + */ + public Builder withGroupManagementType(GroupManagementType groupManagementType) { + this.groupManagementType = groupManagementType; + return this; + } + + /** + * Builds an instance of {@link GroupCreateArg} configured with this + * builder's values + * + * @return new instance of {@link GroupCreateArg} + */ + public GroupCreateArg build() { + return new GroupCreateArg(groupName, addCreatorAsOwner, groupExternalId, groupManagementType); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.groupName, + this.addCreatorAsOwner, + this.groupExternalId, + this.groupManagementType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupCreateArg other = (GroupCreateArg) obj; + return ((this.groupName == other.groupName) || (this.groupName.equals(other.groupName))) + && (this.addCreatorAsOwner == other.addCreatorAsOwner) + && ((this.groupExternalId == other.groupExternalId) || (this.groupExternalId != null && this.groupExternalId.equals(other.groupExternalId))) + && ((this.groupManagementType == other.groupManagementType) || (this.groupManagementType != null && this.groupManagementType.equals(other.groupManagementType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupCreateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group_name"); + StoneSerializers.string().serialize(value.groupName, g); + g.writeFieldName("add_creator_as_owner"); + StoneSerializers.boolean_().serialize(value.addCreatorAsOwner, g); + if (value.groupExternalId != null) { + g.writeFieldName("group_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.groupExternalId, g); + } + if (value.groupManagementType != null) { + g.writeFieldName("group_management_type"); + StoneSerializers.nullable(GroupManagementType.Serializer.INSTANCE).serialize(value.groupManagementType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupCreateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupCreateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_groupName = null; + Boolean f_addCreatorAsOwner = false; + String f_groupExternalId = null; + GroupManagementType f_groupManagementType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group_name".equals(field)) { + f_groupName = StoneSerializers.string().deserialize(p); + } + else if ("add_creator_as_owner".equals(field)) { + f_addCreatorAsOwner = StoneSerializers.boolean_().deserialize(p); + } + else if ("group_external_id".equals(field)) { + f_groupExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("group_management_type".equals(field)) { + f_groupManagementType = StoneSerializers.nullable(GroupManagementType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_groupName == null) { + throw new JsonParseException(p, "Required field \"group_name\" missing."); + } + value = new GroupCreateArg(f_groupName, f_addCreatorAsOwner, f_groupExternalId, f_groupManagementType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateError.java new file mode 100644 index 000000000..4fdda596b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateError.java @@ -0,0 +1,117 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupCreateError { + // union team.GroupCreateError (team_groups.stone) + /** + * The requested group name is already being used by another group. + */ + GROUP_NAME_ALREADY_USED, + /** + * Group name is empty or has invalid characters. + */ + GROUP_NAME_INVALID, + /** + * The requested external ID is already being used by another group. + */ + EXTERNAL_ID_ALREADY_IN_USE, + /** + * System-managed group cannot be manually created. + */ + SYSTEM_MANAGED_GROUP_DISALLOWED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupCreateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case GROUP_NAME_ALREADY_USED: { + g.writeString("group_name_already_used"); + break; + } + case GROUP_NAME_INVALID: { + g.writeString("group_name_invalid"); + break; + } + case EXTERNAL_ID_ALREADY_IN_USE: { + g.writeString("external_id_already_in_use"); + break; + } + case SYSTEM_MANAGED_GROUP_DISALLOWED: { + g.writeString("system_managed_group_disallowed"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupCreateError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupCreateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_name_already_used".equals(tag)) { + value = GroupCreateError.GROUP_NAME_ALREADY_USED; + } + else if ("group_name_invalid".equals(tag)) { + value = GroupCreateError.GROUP_NAME_INVALID; + } + else if ("external_id_already_in_use".equals(tag)) { + value = GroupCreateError.EXTERNAL_ID_ALREADY_IN_USE; + } + else if ("system_managed_group_disallowed".equals(tag)) { + value = GroupCreateError.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + else { + value = GroupCreateError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateErrorException.java new file mode 100644 index 000000000..7fc64a159 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GroupCreateError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsCreate(String)}.

+ */ +public class GroupCreateErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/create + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#groupsCreate(String)}. + */ + public final GroupCreateError errorValue; + + public GroupCreateErrorException(String routeName, String requestId, LocalizedText userMessage, GroupCreateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupDeleteError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupDeleteError.java new file mode 100644 index 000000000..066a7f0f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupDeleteError.java @@ -0,0 +1,113 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupDeleteError { + // union team.GroupDeleteError (team_groups.stone) + /** + * No matching group found. No groups match the specified group ID. + */ + GROUP_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This operation is not supported on system-managed groups. + */ + SYSTEM_MANAGED_GROUP_DISALLOWED, + /** + * This group has already been deleted. + */ + GROUP_ALREADY_DELETED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupDeleteError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case GROUP_NOT_FOUND: { + g.writeString("group_not_found"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SYSTEM_MANAGED_GROUP_DISALLOWED: { + g.writeString("system_managed_group_disallowed"); + break; + } + case GROUP_ALREADY_DELETED: { + g.writeString("group_already_deleted"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GroupDeleteError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupDeleteError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_not_found".equals(tag)) { + value = GroupDeleteError.GROUP_NOT_FOUND; + } + else if ("other".equals(tag)) { + value = GroupDeleteError.OTHER; + } + else if ("system_managed_group_disallowed".equals(tag)) { + value = GroupDeleteError.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + else if ("group_already_deleted".equals(tag)) { + value = GroupDeleteError.GROUP_ALREADY_DELETED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupDeleteErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupDeleteErrorException.java new file mode 100644 index 000000000..1f0f455bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupDeleteErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GroupDeleteError} + * error. + * + *

This exception is raised by {@link DbxTeamTeamRequests#groupsDelete}. + *

+ */ +public class GroupDeleteErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/delete + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#groupsDelete}. + */ + public final GroupDeleteError errorValue; + + public GroupDeleteErrorException(String routeName, String requestId, LocalizedText userMessage, GroupDeleteError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupFullInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupFullInfo.java new file mode 100644 index 000000000..6aec3aece --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupFullInfo.java @@ -0,0 +1,405 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.GroupManagementType; +import com.dropbox.core.v2.teamcommon.GroupSummary; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Full description of a group. + */ +public class GroupFullInfo extends GroupSummary { + // struct team.GroupFullInfo (team_groups.stone) + + @Nullable + protected final List members; + protected final long created; + + /** + * Full description of a group. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * @param created The group creation time as a UTC timestamp in + * milliseconds since the Unix epoch. + * @param groupExternalId External ID of group. This is an arbitrary ID + * that an admin can attach to a group. + * @param memberCount The number of members in the group. + * @param members List of group members. Must not contain a {@code null} + * item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupFullInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, long created, @Nullable String groupExternalId, @Nullable Long memberCount, @Nullable List members) { + super(groupName, groupId, groupManagementType, groupExternalId, memberCount); + if (members != null) { + for (GroupMemberInfo x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + } + this.members = members; + this.created = created; + } + + /** + * Full description of a group. + * + *

The default values for unset fields will be used.

+ * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * @param created The group creation time as a UTC timestamp in + * milliseconds since the Unix epoch. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupFullInfo(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, long created) { + this(groupName, groupId, groupManagementType, created, null, null, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGroupName() { + return groupName; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGroupId() { + return groupId; + } + + /** + * Who is allowed to manage the group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupManagementType getGroupManagementType() { + return groupManagementType; + } + + /** + * The group creation time as a UTC timestamp in milliseconds since the Unix + * epoch. + * + * @return value for this field. + */ + public long getCreated() { + return created; + } + + /** + * External ID of group. This is an arbitrary ID that an admin can attach to + * a group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getGroupExternalId() { + return groupExternalId; + } + + /** + * The number of members in the group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getMemberCount() { + return memberCount; + } + + /** + * List of group members. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getMembers() { + return members; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * @param created The group creation time as a UTC timestamp in + * milliseconds since the Unix epoch. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String groupName, String groupId, GroupManagementType groupManagementType, long created) { + return new Builder(groupName, groupId, groupManagementType, created); + } + + /** + * Builder for {@link GroupFullInfo}. + */ + public static class Builder extends GroupSummary.Builder { + protected final long created; + + protected List members; + + protected Builder(String groupName, String groupId, GroupManagementType groupManagementType, long created) { + super(groupName, groupId, groupManagementType); + this.created = created; + this.members = null; + } + + /** + * Set value for optional field. + * + * @param members List of group members. Must not contain a {@code + * null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMembers(List members) { + if (members != null) { + for (GroupMemberInfo x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + } + this.members = members; + return this; + } + + /** + * Set value for optional field. + * + * @param groupExternalId External ID of group. This is an arbitrary ID + * that an admin can attach to a group. + * + * @return this builder + */ + public Builder withGroupExternalId(String groupExternalId) { + super.withGroupExternalId(groupExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param memberCount The number of members in the group. + * + * @return this builder + */ + public Builder withMemberCount(Long memberCount) { + super.withMemberCount(memberCount); + return this; + } + + /** + * Builds an instance of {@link GroupFullInfo} configured with this + * builder's values + * + * @return new instance of {@link GroupFullInfo} + */ + public GroupFullInfo build() { + return new GroupFullInfo(groupName, groupId, groupManagementType, created, groupExternalId, memberCount, members); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members, + this.created + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupFullInfo other = (GroupFullInfo) obj; + return ((this.groupName == other.groupName) || (this.groupName.equals(other.groupName))) + && ((this.groupId == other.groupId) || (this.groupId.equals(other.groupId))) + && ((this.groupManagementType == other.groupManagementType) || (this.groupManagementType.equals(other.groupManagementType))) + && (this.created == other.created) + && ((this.groupExternalId == other.groupExternalId) || (this.groupExternalId != null && this.groupExternalId.equals(other.groupExternalId))) + && ((this.memberCount == other.memberCount) || (this.memberCount != null && this.memberCount.equals(other.memberCount))) + && ((this.members == other.members) || (this.members != null && this.members.equals(other.members))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupFullInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group_name"); + StoneSerializers.string().serialize(value.groupName, g); + g.writeFieldName("group_id"); + StoneSerializers.string().serialize(value.groupId, g); + g.writeFieldName("group_management_type"); + GroupManagementType.Serializer.INSTANCE.serialize(value.groupManagementType, g); + g.writeFieldName("created"); + StoneSerializers.uInt64().serialize(value.created, g); + if (value.groupExternalId != null) { + g.writeFieldName("group_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.groupExternalId, g); + } + if (value.memberCount != null) { + g.writeFieldName("member_count"); + StoneSerializers.nullable(StoneSerializers.uInt32()).serialize(value.memberCount, g); + } + if (value.members != null) { + g.writeFieldName("members"); + StoneSerializers.nullable(StoneSerializers.list(GroupMemberInfo.Serializer.INSTANCE)).serialize(value.members, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupFullInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupFullInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_groupName = null; + String f_groupId = null; + GroupManagementType f_groupManagementType = null; + Long f_created = null; + String f_groupExternalId = null; + Long f_memberCount = null; + List f_members = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group_name".equals(field)) { + f_groupName = StoneSerializers.string().deserialize(p); + } + else if ("group_id".equals(field)) { + f_groupId = StoneSerializers.string().deserialize(p); + } + else if ("group_management_type".equals(field)) { + f_groupManagementType = GroupManagementType.Serializer.INSTANCE.deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.uInt64().deserialize(p); + } + else if ("group_external_id".equals(field)) { + f_groupExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_count".equals(field)) { + f_memberCount = StoneSerializers.nullable(StoneSerializers.uInt32()).deserialize(p); + } + else if ("members".equals(field)) { + f_members = StoneSerializers.nullable(StoneSerializers.list(GroupMemberInfo.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_groupName == null) { + throw new JsonParseException(p, "Required field \"group_name\" missing."); + } + if (f_groupId == null) { + throw new JsonParseException(p, "Required field \"group_id\" missing."); + } + if (f_groupManagementType == null) { + throw new JsonParseException(p, "Required field \"group_management_type\" missing."); + } + if (f_created == null) { + throw new JsonParseException(p, "Required field \"created\" missing."); + } + value = new GroupFullInfo(f_groupName, f_groupId, f_groupManagementType, f_created, f_groupExternalId, f_memberCount, f_members); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberInfo.java new file mode 100644 index 000000000..4edd7fbcc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberInfo.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Profile of group member, and role in group. + */ +public class GroupMemberInfo { + // struct team.GroupMemberInfo (team_groups.stone) + + @Nonnull + protected final MemberProfile profile; + @Nonnull + protected final GroupAccessType accessType; + + /** + * Profile of group member, and role in group. + * + * @param profile Profile of group member. Must not be {@code null}. + * @param accessType The role that the user has in the group. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMemberInfo(@Nonnull MemberProfile profile, @Nonnull GroupAccessType accessType) { + if (profile == null) { + throw new IllegalArgumentException("Required value for 'profile' is null"); + } + this.profile = profile; + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + } + + /** + * Profile of group member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberProfile getProfile() { + return profile; + } + + /** + * The role that the user has in the group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupAccessType getAccessType() { + return accessType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.profile, + this.accessType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMemberInfo other = (GroupMemberInfo) obj; + return ((this.profile == other.profile) || (this.profile.equals(other.profile))) + && ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMemberInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("profile"); + MemberProfile.Serializer.INSTANCE.serialize(value.profile, g); + g.writeFieldName("access_type"); + GroupAccessType.Serializer.INSTANCE.serialize(value.accessType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMemberInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMemberInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberProfile f_profile = null; + GroupAccessType f_accessType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("profile".equals(field)) { + f_profile = MemberProfile.Serializer.INSTANCE.deserialize(p); + } + else if ("access_type".equals(field)) { + f_accessType = GroupAccessType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_profile == null) { + throw new JsonParseException(p, "Required field \"profile\" missing."); + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + value = new GroupMemberInfo(f_profile, f_accessType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSelector.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSelector.java new file mode 100644 index 000000000..a477a6e78 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSelector.java @@ -0,0 +1,185 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Argument for selecting a group and a single user. + */ +class GroupMemberSelector { + // struct team.GroupMemberSelector (team_groups.stone) + + @Nonnull + protected final GroupSelector group; + @Nonnull + protected final UserSelectorArg user; + + /** + * Argument for selecting a group and a single user. + * + * @param group Specify a group. Must not be {@code null}. + * @param user Identity of a user that is a member of the {@code group} + * argument to {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMemberSelector(@Nonnull GroupSelector group, @Nonnull UserSelectorArg user) { + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + } + + /** + * Specify a group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupSelector getGroup() { + return group; + } + + /** + * Identity of a user that is a member of the {@code group} argument to + * {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.group, + this.user + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMemberSelector other = (GroupMemberSelector) obj; + return ((this.group == other.group) || (this.group.equals(other.group))) + && ((this.user == other.user) || (this.user.equals(other.user))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMemberSelector value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group"); + GroupSelector.Serializer.INSTANCE.serialize(value.group, g); + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMemberSelector deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMemberSelector value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupSelector f_group = null; + UserSelectorArg f_user = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group".equals(field)) { + f_group = GroupSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_group == null) { + throw new JsonParseException(p, "Required field \"group\" missing."); + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new GroupMemberSelector(f_group, f_user); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSetAccessTypeError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSetAccessTypeError.java new file mode 100644 index 000000000..12cbd73f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSetAccessTypeError.java @@ -0,0 +1,124 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupMemberSetAccessTypeError { + // union team.GroupMemberSetAccessTypeError (team_groups.stone) + /** + * No matching group found. No groups match the specified group ID. + */ + GROUP_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This operation is not supported on system-managed groups. + */ + SYSTEM_MANAGED_GROUP_DISALLOWED, + /** + * The specified user is not a member of this group. + */ + MEMBER_NOT_IN_GROUP, + /** + * A company managed group cannot be managed by a user. + */ + USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMemberSetAccessTypeError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case GROUP_NOT_FOUND: { + g.writeString("group_not_found"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SYSTEM_MANAGED_GROUP_DISALLOWED: { + g.writeString("system_managed_group_disallowed"); + break; + } + case MEMBER_NOT_IN_GROUP: { + g.writeString("member_not_in_group"); + break; + } + case USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP: { + g.writeString("user_cannot_be_manager_of_company_managed_group"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GroupMemberSetAccessTypeError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupMemberSetAccessTypeError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_not_found".equals(tag)) { + value = GroupMemberSetAccessTypeError.GROUP_NOT_FOUND; + } + else if ("other".equals(tag)) { + value = GroupMemberSetAccessTypeError.OTHER; + } + else if ("system_managed_group_disallowed".equals(tag)) { + value = GroupMemberSetAccessTypeError.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + else if ("member_not_in_group".equals(tag)) { + value = GroupMemberSetAccessTypeError.MEMBER_NOT_IN_GROUP; + } + else if ("user_cannot_be_manager_of_company_managed_group".equals(tag)) { + value = GroupMemberSetAccessTypeError.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSetAccessTypeErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSetAccessTypeErrorException.java new file mode 100644 index 000000000..dfd895a9b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMemberSetAccessTypeErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GroupMemberSetAccessTypeError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + *

+ */ +public class GroupMemberSetAccessTypeErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/members/set_access_type + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + */ + public final GroupMemberSetAccessTypeError errorValue; + + public GroupMemberSetAccessTypeErrorException(String routeName, String requestId, LocalizedText userMessage, GroupMemberSetAccessTypeError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddArg.java new file mode 100644 index 000000000..19c779844 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddArg.java @@ -0,0 +1,225 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class GroupMembersAddArg extends IncludeMembersArg { + // struct team.GroupMembersAddArg (team_groups.stone) + + @Nonnull + protected final GroupSelector group; + @Nonnull + protected final List members; + + /** + * + * @param group Group to which users will be added. Must not be {@code + * null}. + * @param members List of users to be added to the group. Must not contain + * a {@code null} item and not be {@code null}. + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersAddArg(@Nonnull GroupSelector group, @Nonnull List members, boolean returnMembers) { + super(returnMembers); + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (MemberAccess x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param group Group to which users will be added. Must not be {@code + * null}. + * @param members List of users to be added to the group. Must not contain + * a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersAddArg(@Nonnull GroupSelector group, @Nonnull List members) { + this(group, members, true); + } + + /** + * Group to which users will be added. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupSelector getGroup() { + return group; + } + + /** + * List of users to be added to the group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * Whether to return the list of members in the group. Note that the + * default value will cause all the group members to be returned in the + * response. This may take a long time for large groups. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getReturnMembers() { + return returnMembers; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.group, + this.members + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMembersAddArg other = (GroupMembersAddArg) obj; + return ((this.group == other.group) || (this.group.equals(other.group))) + && ((this.members == other.members) || (this.members.equals(other.members))) + && (this.returnMembers == other.returnMembers) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMembersAddArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group"); + GroupSelector.Serializer.INSTANCE.serialize(value.group, g); + g.writeFieldName("members"); + StoneSerializers.list(MemberAccess.Serializer.INSTANCE).serialize(value.members, g); + g.writeFieldName("return_members"); + StoneSerializers.boolean_().serialize(value.returnMembers, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMembersAddArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMembersAddArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupSelector f_group = null; + List f_members = null; + Boolean f_returnMembers = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group".equals(field)) { + f_group = GroupSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("members".equals(field)) { + f_members = StoneSerializers.list(MemberAccess.Serializer.INSTANCE).deserialize(p); + } + else if ("return_members".equals(field)) { + f_returnMembers = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_group == null) { + throw new JsonParseException(p, "Required field \"group\" missing."); + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + value = new GroupMembersAddArg(f_group, f_members, f_returnMembers); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddError.java new file mode 100644 index 000000000..aa1b1b177 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddError.java @@ -0,0 +1,644 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class GroupMembersAddError { + // union team.GroupMembersAddError (team_groups.stone) + + /** + * Discriminating tag type for {@link GroupMembersAddError}. + */ + public enum Tag { + /** + * No matching group found. No groups match the specified group ID. + */ + GROUP_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * This operation is not supported on system-managed groups. + */ + SYSTEM_MANAGED_GROUP_DISALLOWED, + /** + * You cannot add duplicate users. One or more of the members you are + * trying to add is already a member of the group. + */ + DUPLICATE_USER, + /** + * Group is not in this team. You cannot add members to a group that is + * outside of your team. + */ + GROUP_NOT_IN_TEAM, + /** + * These members are not part of your team. Currently, you cannot add + * members to a group if they are not part of your team, though this may + * change in a subsequent version. To add new members to your Dropbox + * Business team, use the {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} endpoint. + */ + MEMBERS_NOT_IN_TEAM, // List + /** + * These users were not found in Dropbox. + */ + USERS_NOT_FOUND, // List + /** + * A suspended user cannot be added to a group as {@link + * GroupAccessType#OWNER}. + */ + USER_MUST_BE_ACTIVE_TO_BE_OWNER, + /** + * A company-managed group cannot be managed by a user. + */ + USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP; // List + } + + /** + * No matching group found. No groups match the specified group ID. + */ + public static final GroupMembersAddError GROUP_NOT_FOUND = new GroupMembersAddError().withTag(Tag.GROUP_NOT_FOUND); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GroupMembersAddError OTHER = new GroupMembersAddError().withTag(Tag.OTHER); + /** + * This operation is not supported on system-managed groups. + */ + public static final GroupMembersAddError SYSTEM_MANAGED_GROUP_DISALLOWED = new GroupMembersAddError().withTag(Tag.SYSTEM_MANAGED_GROUP_DISALLOWED); + /** + * You cannot add duplicate users. One or more of the members you are trying + * to add is already a member of the group. + */ + public static final GroupMembersAddError DUPLICATE_USER = new GroupMembersAddError().withTag(Tag.DUPLICATE_USER); + /** + * Group is not in this team. You cannot add members to a group that is + * outside of your team. + */ + public static final GroupMembersAddError GROUP_NOT_IN_TEAM = new GroupMembersAddError().withTag(Tag.GROUP_NOT_IN_TEAM); + /** + * A suspended user cannot be added to a group as {@link + * GroupAccessType#OWNER}. + */ + public static final GroupMembersAddError USER_MUST_BE_ACTIVE_TO_BE_OWNER = new GroupMembersAddError().withTag(Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER); + + private Tag _tag; + private List membersNotInTeamValue; + private List usersNotFoundValue; + private List userCannotBeManagerOfCompanyManagedGroupValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GroupMembersAddError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GroupMembersAddError withTag(Tag _tag) { + GroupMembersAddError result = new GroupMembersAddError(); + result._tag = _tag; + return result; + } + + /** + * + * @param membersNotInTeamValue These members are not part of your team. + * Currently, you cannot add members to a group if they are not part of + * your team, though this may change in a subsequent version. To add new + * members to your Dropbox Business team, use the {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} endpoint. Must not + * contain a {@code null} item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupMembersAddError withTagAndMembersNotInTeam(Tag _tag, List membersNotInTeamValue) { + GroupMembersAddError result = new GroupMembersAddError(); + result._tag = _tag; + result.membersNotInTeamValue = membersNotInTeamValue; + return result; + } + + /** + * + * @param usersNotFoundValue These users were not found in Dropbox. Must + * not contain a {@code null} item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupMembersAddError withTagAndUsersNotFound(Tag _tag, List usersNotFoundValue) { + GroupMembersAddError result = new GroupMembersAddError(); + result._tag = _tag; + result.usersNotFoundValue = usersNotFoundValue; + return result; + } + + /** + * + * @param userCannotBeManagerOfCompanyManagedGroupValue A company-managed + * group cannot be managed by a user. Must not contain a {@code null} + * item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupMembersAddError withTagAndUserCannotBeManagerOfCompanyManagedGroup(Tag _tag, List userCannotBeManagerOfCompanyManagedGroupValue) { + GroupMembersAddError result = new GroupMembersAddError(); + result._tag = _tag; + result.userCannotBeManagerOfCompanyManagedGroupValue = userCannotBeManagerOfCompanyManagedGroupValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GroupMembersAddError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isGroupNotFound() { + return this._tag == Tag.GROUP_NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SYSTEM_MANAGED_GROUP_DISALLOWED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SYSTEM_MANAGED_GROUP_DISALLOWED}, {@code false} otherwise. + */ + public boolean isSystemManagedGroupDisallowed() { + return this._tag == Tag.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_USER}, {@code false} otherwise. + */ + public boolean isDuplicateUser() { + return this._tag == Tag.DUPLICATE_USER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_NOT_IN_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_NOT_IN_TEAM}, {@code false} otherwise. + */ + public boolean isGroupNotInTeam() { + return this._tag == Tag.GROUP_NOT_IN_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBERS_NOT_IN_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBERS_NOT_IN_TEAM}, {@code false} otherwise. + */ + public boolean isMembersNotInTeam() { + return this._tag == Tag.MEMBERS_NOT_IN_TEAM; + } + + /** + * Returns an instance of {@code GroupMembersAddError} that has its tag set + * to {@link Tag#MEMBERS_NOT_IN_TEAM}. + * + *

These members are not part of your team. Currently, you cannot add + * members to a group if they are not part of your team, though this may + * change in a subsequent version. To add new members to your Dropbox + * Business team, use the {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} endpoint.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupMembersAddError} with its tag set to + * {@link Tag#MEMBERS_NOT_IN_TEAM}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static GroupMembersAddError membersNotInTeam(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new GroupMembersAddError().withTagAndMembersNotInTeam(Tag.MEMBERS_NOT_IN_TEAM, value); + } + + /** + * These members are not part of your team. Currently, you cannot add + * members to a group if they are not part of your team, though this may + * change in a subsequent version. To add new members to your Dropbox + * Business team, use the {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)} endpoint. + * + *

This instance must be tagged as {@link Tag#MEMBERS_NOT_IN_TEAM}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isMembersNotInTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isMembersNotInTeam} is {@code + * false}. + */ + public List getMembersNotInTeamValue() { + if (this._tag != Tag.MEMBERS_NOT_IN_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBERS_NOT_IN_TEAM, but was Tag." + this._tag.name()); + } + return membersNotInTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USERS_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USERS_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isUsersNotFound() { + return this._tag == Tag.USERS_NOT_FOUND; + } + + /** + * Returns an instance of {@code GroupMembersAddError} that has its tag set + * to {@link Tag#USERS_NOT_FOUND}. + * + *

These users were not found in Dropbox.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupMembersAddError} with its tag set to + * {@link Tag#USERS_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static GroupMembersAddError usersNotFound(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new GroupMembersAddError().withTagAndUsersNotFound(Tag.USERS_NOT_FOUND, value); + } + + /** + * These users were not found in Dropbox. + * + *

This instance must be tagged as {@link Tag#USERS_NOT_FOUND}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isUsersNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isUsersNotFound} is {@code + * false}. + */ + public List getUsersNotFoundValue() { + if (this._tag != Tag.USERS_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.USERS_NOT_FOUND, but was Tag." + this._tag.name()); + } + return usersNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_MUST_BE_ACTIVE_TO_BE_OWNER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_MUST_BE_ACTIVE_TO_BE_OWNER}, {@code false} otherwise. + */ + public boolean isUserMustBeActiveToBeOwner() { + return this._tag == Tag.USER_MUST_BE_ACTIVE_TO_BE_OWNER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP}, {@code false} + * otherwise. + */ + public boolean isUserCannotBeManagerOfCompanyManagedGroup() { + return this._tag == Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP; + } + + /** + * Returns an instance of {@code GroupMembersAddError} that has its tag set + * to {@link Tag#USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP}. + * + *

A company-managed group cannot be managed by a user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupMembersAddError} with its tag set to + * {@link Tag#USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static GroupMembersAddError userCannotBeManagerOfCompanyManagedGroup(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new GroupMembersAddError().withTagAndUserCannotBeManagerOfCompanyManagedGroup(Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP, value); + } + + /** + * A company-managed group cannot be managed by a user. + * + *

This instance must be tagged as {@link + * Tag#USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isUserCannotBeManagerOfCompanyManagedGroup} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isUserCannotBeManagerOfCompanyManagedGroup} is {@code false}. + */ + public List getUserCannotBeManagerOfCompanyManagedGroupValue() { + if (this._tag != Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP) { + throw new IllegalStateException("Invalid tag: required Tag.USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP, but was Tag." + this._tag.name()); + } + return userCannotBeManagerOfCompanyManagedGroupValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.membersNotInTeamValue, + this.usersNotFoundValue, + this.userCannotBeManagerOfCompanyManagedGroupValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GroupMembersAddError) { + GroupMembersAddError other = (GroupMembersAddError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case GROUP_NOT_FOUND: + return true; + case OTHER: + return true; + case SYSTEM_MANAGED_GROUP_DISALLOWED: + return true; + case DUPLICATE_USER: + return true; + case GROUP_NOT_IN_TEAM: + return true; + case MEMBERS_NOT_IN_TEAM: + return (this.membersNotInTeamValue == other.membersNotInTeamValue) || (this.membersNotInTeamValue.equals(other.membersNotInTeamValue)); + case USERS_NOT_FOUND: + return (this.usersNotFoundValue == other.usersNotFoundValue) || (this.usersNotFoundValue.equals(other.usersNotFoundValue)); + case USER_MUST_BE_ACTIVE_TO_BE_OWNER: + return true; + case USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP: + return (this.userCannotBeManagerOfCompanyManagedGroupValue == other.userCannotBeManagerOfCompanyManagedGroupValue) || (this.userCannotBeManagerOfCompanyManagedGroupValue.equals(other.userCannotBeManagerOfCompanyManagedGroupValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMembersAddError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case GROUP_NOT_FOUND: { + g.writeString("group_not_found"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SYSTEM_MANAGED_GROUP_DISALLOWED: { + g.writeString("system_managed_group_disallowed"); + break; + } + case DUPLICATE_USER: { + g.writeString("duplicate_user"); + break; + } + case GROUP_NOT_IN_TEAM: { + g.writeString("group_not_in_team"); + break; + } + case MEMBERS_NOT_IN_TEAM: { + g.writeStartObject(); + writeTag("members_not_in_team", g); + g.writeFieldName("members_not_in_team"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.membersNotInTeamValue, g); + g.writeEndObject(); + break; + } + case USERS_NOT_FOUND: { + g.writeStartObject(); + writeTag("users_not_found", g); + g.writeFieldName("users_not_found"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.usersNotFoundValue, g); + g.writeEndObject(); + break; + } + case USER_MUST_BE_ACTIVE_TO_BE_OWNER: { + g.writeString("user_must_be_active_to_be_owner"); + break; + } + case USER_CANNOT_BE_MANAGER_OF_COMPANY_MANAGED_GROUP: { + g.writeStartObject(); + writeTag("user_cannot_be_manager_of_company_managed_group", g); + g.writeFieldName("user_cannot_be_manager_of_company_managed_group"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.userCannotBeManagerOfCompanyManagedGroupValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public GroupMembersAddError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupMembersAddError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_not_found".equals(tag)) { + value = GroupMembersAddError.GROUP_NOT_FOUND; + } + else if ("other".equals(tag)) { + value = GroupMembersAddError.OTHER; + } + else if ("system_managed_group_disallowed".equals(tag)) { + value = GroupMembersAddError.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + else if ("duplicate_user".equals(tag)) { + value = GroupMembersAddError.DUPLICATE_USER; + } + else if ("group_not_in_team".equals(tag)) { + value = GroupMembersAddError.GROUP_NOT_IN_TEAM; + } + else if ("members_not_in_team".equals(tag)) { + List fieldValue = null; + expectField("members_not_in_team", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = GroupMembersAddError.membersNotInTeam(fieldValue); + } + else if ("users_not_found".equals(tag)) { + List fieldValue = null; + expectField("users_not_found", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = GroupMembersAddError.usersNotFound(fieldValue); + } + else if ("user_must_be_active_to_be_owner".equals(tag)) { + value = GroupMembersAddError.USER_MUST_BE_ACTIVE_TO_BE_OWNER; + } + else if ("user_cannot_be_manager_of_company_managed_group".equals(tag)) { + List fieldValue = null; + expectField("user_cannot_be_manager_of_company_managed_group", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = GroupMembersAddError.userCannotBeManagerOfCompanyManagedGroup(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddErrorException.java new file mode 100644 index 000000000..42334896c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GroupMembersAddError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,java.util.List,boolean)}. + *

+ */ +public class GroupMembersAddErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/members/add + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,java.util.List,boolean)}. + */ + public final GroupMembersAddError errorValue; + + public GroupMembersAddErrorException(String routeName, String requestId, LocalizedText userMessage, GroupMembersAddError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersChangeResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersChangeResult.java new file mode 100644 index 000000000..57316d716 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersChangeResult.java @@ -0,0 +1,197 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,java.util.List,boolean)} + * and {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,java.util.List,boolean)}. + */ +public class GroupMembersChangeResult { + // struct team.GroupMembersChangeResult (team_groups.stone) + + @Nonnull + protected final GroupFullInfo groupInfo; + @Nonnull + protected final String asyncJobId; + + /** + * Result returned by {@link + * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,java.util.List,boolean)} + * and {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,java.util.List,boolean)}. + * + * @param groupInfo The group info after member change operation has been + * performed. Must not be {@code null}. + * @param asyncJobId For legacy purposes async_job_id will always return + * one space ' '. Formerly, it was an ID that was used to obtain the + * status of granting/revoking group-owned resources. It's no longer + * necessary because the async processing now happens automatically. + * Must have length of at least 1 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersChangeResult(@Nonnull GroupFullInfo groupInfo, @Nonnull String asyncJobId) { + if (groupInfo == null) { + throw new IllegalArgumentException("Required value for 'groupInfo' is null"); + } + this.groupInfo = groupInfo; + if (asyncJobId == null) { + throw new IllegalArgumentException("Required value for 'asyncJobId' is null"); + } + if (asyncJobId.length() < 1) { + throw new IllegalArgumentException("String 'asyncJobId' is shorter than 1"); + } + this.asyncJobId = asyncJobId; + } + + /** + * The group info after member change operation has been performed. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupFullInfo getGroupInfo() { + return groupInfo; + } + + /** + * For legacy purposes async_job_id will always return one space ' '. + * Formerly, it was an ID that was used to obtain the status of + * granting/revoking group-owned resources. It's no longer necessary because + * the async processing now happens automatically. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAsyncJobId() { + return asyncJobId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.groupInfo, + this.asyncJobId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMembersChangeResult other = (GroupMembersChangeResult) obj; + return ((this.groupInfo == other.groupInfo) || (this.groupInfo.equals(other.groupInfo))) + && ((this.asyncJobId == other.asyncJobId) || (this.asyncJobId.equals(other.asyncJobId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMembersChangeResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group_info"); + GroupFullInfo.Serializer.INSTANCE.serialize(value.groupInfo, g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMembersChangeResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMembersChangeResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupFullInfo f_groupInfo = null; + String f_asyncJobId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group_info".equals(field)) { + f_groupInfo = GroupFullInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("async_job_id".equals(field)) { + f_asyncJobId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_groupInfo == null) { + throw new JsonParseException(p, "Required field \"group_info\" missing."); + } + if (f_asyncJobId == null) { + throw new JsonParseException(p, "Required field \"async_job_id\" missing."); + } + value = new GroupMembersChangeResult(f_groupInfo, f_asyncJobId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveArg.java new file mode 100644 index 000000000..33533c704 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveArg.java @@ -0,0 +1,225 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class GroupMembersRemoveArg extends IncludeMembersArg { + // struct team.GroupMembersRemoveArg (team_groups.stone) + + @Nonnull + protected final GroupSelector group; + @Nonnull + protected final List users; + + /** + * + * @param group Group from which users will be removed. Must not be {@code + * null}. + * @param users List of users to be removed from the group. Must not + * contain a {@code null} item and not be {@code null}. + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersRemoveArg(@Nonnull GroupSelector group, @Nonnull List users, boolean returnMembers) { + super(returnMembers); + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + if (users == null) { + throw new IllegalArgumentException("Required value for 'users' is null"); + } + for (UserSelectorArg x : users) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'users' is null"); + } + } + this.users = users; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param group Group from which users will be removed. Must not be {@code + * null}. + * @param users List of users to be removed from the group. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersRemoveArg(@Nonnull GroupSelector group, @Nonnull List users) { + this(group, users, true); + } + + /** + * Group from which users will be removed. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupSelector getGroup() { + return group; + } + + /** + * List of users to be removed from the group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsers() { + return users; + } + + /** + * Whether to return the list of members in the group. Note that the + * default value will cause all the group members to be returned in the + * response. This may take a long time for large groups. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getReturnMembers() { + return returnMembers; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.group, + this.users + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMembersRemoveArg other = (GroupMembersRemoveArg) obj; + return ((this.group == other.group) || (this.group.equals(other.group))) + && ((this.users == other.users) || (this.users.equals(other.users))) + && (this.returnMembers == other.returnMembers) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMembersRemoveArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group"); + GroupSelector.Serializer.INSTANCE.serialize(value.group, g); + g.writeFieldName("users"); + StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).serialize(value.users, g); + g.writeFieldName("return_members"); + StoneSerializers.boolean_().serialize(value.returnMembers, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMembersRemoveArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMembersRemoveArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupSelector f_group = null; + List f_users = null; + Boolean f_returnMembers = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group".equals(field)) { + f_group = GroupSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("users".equals(field)) { + f_users = StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).deserialize(p); + } + else if ("return_members".equals(field)) { + f_returnMembers = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_group == null) { + throw new JsonParseException(p, "Required field \"group\" missing."); + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + value = new GroupMembersRemoveArg(f_group, f_users, f_returnMembers); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveError.java new file mode 100644 index 000000000..68a77c5bf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveError.java @@ -0,0 +1,499 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class GroupMembersRemoveError { + // union team.GroupMembersRemoveError (team_groups.stone) + + /** + * Discriminating tag type for {@link GroupMembersRemoveError}. + */ + public enum Tag { + /** + * No matching group found. No groups match the specified group ID. + */ + GROUP_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * This operation is not supported on system-managed groups. + */ + SYSTEM_MANAGED_GROUP_DISALLOWED, + /** + * At least one of the specified users is not a member of the group. + */ + MEMBER_NOT_IN_GROUP, + /** + * Group is not in this team. You cannot remove members from a group + * that is outside of your team. + */ + GROUP_NOT_IN_TEAM, + /** + * These members are not part of your team. + */ + MEMBERS_NOT_IN_TEAM, // List + /** + * These users were not found in Dropbox. + */ + USERS_NOT_FOUND; // List + } + + /** + * No matching group found. No groups match the specified group ID. + */ + public static final GroupMembersRemoveError GROUP_NOT_FOUND = new GroupMembersRemoveError().withTag(Tag.GROUP_NOT_FOUND); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GroupMembersRemoveError OTHER = new GroupMembersRemoveError().withTag(Tag.OTHER); + /** + * This operation is not supported on system-managed groups. + */ + public static final GroupMembersRemoveError SYSTEM_MANAGED_GROUP_DISALLOWED = new GroupMembersRemoveError().withTag(Tag.SYSTEM_MANAGED_GROUP_DISALLOWED); + /** + * At least one of the specified users is not a member of the group. + */ + public static final GroupMembersRemoveError MEMBER_NOT_IN_GROUP = new GroupMembersRemoveError().withTag(Tag.MEMBER_NOT_IN_GROUP); + /** + * Group is not in this team. You cannot remove members from a group that is + * outside of your team. + */ + public static final GroupMembersRemoveError GROUP_NOT_IN_TEAM = new GroupMembersRemoveError().withTag(Tag.GROUP_NOT_IN_TEAM); + + private Tag _tag; + private List membersNotInTeamValue; + private List usersNotFoundValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GroupMembersRemoveError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GroupMembersRemoveError withTag(Tag _tag) { + GroupMembersRemoveError result = new GroupMembersRemoveError(); + result._tag = _tag; + return result; + } + + /** + * + * @param membersNotInTeamValue These members are not part of your team. + * Must not contain a {@code null} item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupMembersRemoveError withTagAndMembersNotInTeam(Tag _tag, List membersNotInTeamValue) { + GroupMembersRemoveError result = new GroupMembersRemoveError(); + result._tag = _tag; + result.membersNotInTeamValue = membersNotInTeamValue; + return result; + } + + /** + * + * @param usersNotFoundValue These users were not found in Dropbox. Must + * not contain a {@code null} item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupMembersRemoveError withTagAndUsersNotFound(Tag _tag, List usersNotFoundValue) { + GroupMembersRemoveError result = new GroupMembersRemoveError(); + result._tag = _tag; + result.usersNotFoundValue = usersNotFoundValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GroupMembersRemoveError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isGroupNotFound() { + return this._tag == Tag.GROUP_NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SYSTEM_MANAGED_GROUP_DISALLOWED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SYSTEM_MANAGED_GROUP_DISALLOWED}, {@code false} otherwise. + */ + public boolean isSystemManagedGroupDisallowed() { + return this._tag == Tag.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_NOT_IN_GROUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_NOT_IN_GROUP}, {@code false} otherwise. + */ + public boolean isMemberNotInGroup() { + return this._tag == Tag.MEMBER_NOT_IN_GROUP; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_NOT_IN_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_NOT_IN_TEAM}, {@code false} otherwise. + */ + public boolean isGroupNotInTeam() { + return this._tag == Tag.GROUP_NOT_IN_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBERS_NOT_IN_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBERS_NOT_IN_TEAM}, {@code false} otherwise. + */ + public boolean isMembersNotInTeam() { + return this._tag == Tag.MEMBERS_NOT_IN_TEAM; + } + + /** + * Returns an instance of {@code GroupMembersRemoveError} that has its tag + * set to {@link Tag#MEMBERS_NOT_IN_TEAM}. + * + *

These members are not part of your team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupMembersRemoveError} with its tag set to + * {@link Tag#MEMBERS_NOT_IN_TEAM}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static GroupMembersRemoveError membersNotInTeam(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new GroupMembersRemoveError().withTagAndMembersNotInTeam(Tag.MEMBERS_NOT_IN_TEAM, value); + } + + /** + * These members are not part of your team. + * + *

This instance must be tagged as {@link Tag#MEMBERS_NOT_IN_TEAM}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isMembersNotInTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isMembersNotInTeam} is {@code + * false}. + */ + public List getMembersNotInTeamValue() { + if (this._tag != Tag.MEMBERS_NOT_IN_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBERS_NOT_IN_TEAM, but was Tag." + this._tag.name()); + } + return membersNotInTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USERS_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USERS_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isUsersNotFound() { + return this._tag == Tag.USERS_NOT_FOUND; + } + + /** + * Returns an instance of {@code GroupMembersRemoveError} that has its tag + * set to {@link Tag#USERS_NOT_FOUND}. + * + *

These users were not found in Dropbox.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupMembersRemoveError} with its tag set to + * {@link Tag#USERS_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static GroupMembersRemoveError usersNotFound(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new GroupMembersRemoveError().withTagAndUsersNotFound(Tag.USERS_NOT_FOUND, value); + } + + /** + * These users were not found in Dropbox. + * + *

This instance must be tagged as {@link Tag#USERS_NOT_FOUND}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isUsersNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isUsersNotFound} is {@code + * false}. + */ + public List getUsersNotFoundValue() { + if (this._tag != Tag.USERS_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.USERS_NOT_FOUND, but was Tag." + this._tag.name()); + } + return usersNotFoundValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.membersNotInTeamValue, + this.usersNotFoundValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GroupMembersRemoveError) { + GroupMembersRemoveError other = (GroupMembersRemoveError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case GROUP_NOT_FOUND: + return true; + case OTHER: + return true; + case SYSTEM_MANAGED_GROUP_DISALLOWED: + return true; + case MEMBER_NOT_IN_GROUP: + return true; + case GROUP_NOT_IN_TEAM: + return true; + case MEMBERS_NOT_IN_TEAM: + return (this.membersNotInTeamValue == other.membersNotInTeamValue) || (this.membersNotInTeamValue.equals(other.membersNotInTeamValue)); + case USERS_NOT_FOUND: + return (this.usersNotFoundValue == other.usersNotFoundValue) || (this.usersNotFoundValue.equals(other.usersNotFoundValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMembersRemoveError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case GROUP_NOT_FOUND: { + g.writeString("group_not_found"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SYSTEM_MANAGED_GROUP_DISALLOWED: { + g.writeString("system_managed_group_disallowed"); + break; + } + case MEMBER_NOT_IN_GROUP: { + g.writeString("member_not_in_group"); + break; + } + case GROUP_NOT_IN_TEAM: { + g.writeString("group_not_in_team"); + break; + } + case MEMBERS_NOT_IN_TEAM: { + g.writeStartObject(); + writeTag("members_not_in_team", g); + g.writeFieldName("members_not_in_team"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.membersNotInTeamValue, g); + g.writeEndObject(); + break; + } + case USERS_NOT_FOUND: { + g.writeStartObject(); + writeTag("users_not_found", g); + g.writeFieldName("users_not_found"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.usersNotFoundValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public GroupMembersRemoveError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupMembersRemoveError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_not_found".equals(tag)) { + value = GroupMembersRemoveError.GROUP_NOT_FOUND; + } + else if ("other".equals(tag)) { + value = GroupMembersRemoveError.OTHER; + } + else if ("system_managed_group_disallowed".equals(tag)) { + value = GroupMembersRemoveError.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + else if ("member_not_in_group".equals(tag)) { + value = GroupMembersRemoveError.MEMBER_NOT_IN_GROUP; + } + else if ("group_not_in_team".equals(tag)) { + value = GroupMembersRemoveError.GROUP_NOT_IN_TEAM; + } + else if ("members_not_in_team".equals(tag)) { + List fieldValue = null; + expectField("members_not_in_team", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = GroupMembersRemoveError.membersNotInTeam(fieldValue); + } + else if ("users_not_found".equals(tag)) { + List fieldValue = null; + expectField("users_not_found", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = GroupMembersRemoveError.usersNotFound(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveErrorException.java new file mode 100644 index 000000000..6afbcc2fc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersRemoveErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GroupMembersRemoveError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,java.util.List,boolean)}. + *

+ */ +public class GroupMembersRemoveErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/members/remove + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsMembersRemove(GroupSelector,java.util.List,boolean)}. + */ + public final GroupMembersRemoveError errorValue; + + public GroupMembersRemoveErrorException(String routeName, String requestId, LocalizedText userMessage, GroupMembersRemoveError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersSetAccessTypeArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersSetAccessTypeArg.java new file mode 100644 index 000000000..36adb9f0b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersSetAccessTypeArg.java @@ -0,0 +1,243 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class GroupMembersSetAccessTypeArg extends GroupMemberSelector { + // struct team.GroupMembersSetAccessTypeArg (team_groups.stone) + + @Nonnull + protected final GroupAccessType accessType; + protected final boolean returnMembers; + + /** + * + * @param group Specify a group. Must not be {@code null}. + * @param user Identity of a user that is a member of the {@code group} + * argument to {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + * Must not be {@code null}. + * @param accessType New group access type the user will have. Must not be + * {@code null}. + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersSetAccessTypeArg(@Nonnull GroupSelector group, @Nonnull UserSelectorArg user, @Nonnull GroupAccessType accessType, boolean returnMembers) { + super(group, user); + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + this.returnMembers = returnMembers; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param group Specify a group. Must not be {@code null}. + * @param user Identity of a user that is a member of the {@code group} + * argument to {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + * Must not be {@code null}. + * @param accessType New group access type the user will have. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMembersSetAccessTypeArg(@Nonnull GroupSelector group, @Nonnull UserSelectorArg user, @Nonnull GroupAccessType accessType) { + this(group, user, accessType, true); + } + + /** + * Specify a group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupSelector getGroup() { + return group; + } + + /** + * Identity of a user that is a member of the {@code group} argument to + * {@link + * DbxTeamTeamRequests#groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * New group access type the user will have. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupAccessType getAccessType() { + return accessType; + } + + /** + * Whether to return the list of members in the group. Note that the + * default value will cause all the group members to be returned in the + * response. This may take a long time for large groups. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getReturnMembers() { + return returnMembers; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessType, + this.returnMembers + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMembersSetAccessTypeArg other = (GroupMembersSetAccessTypeArg) obj; + return ((this.group == other.group) || (this.group.equals(other.group))) + && ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + && (this.returnMembers == other.returnMembers) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMembersSetAccessTypeArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group"); + GroupSelector.Serializer.INSTANCE.serialize(value.group, g); + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("access_type"); + GroupAccessType.Serializer.INSTANCE.serialize(value.accessType, g); + g.writeFieldName("return_members"); + StoneSerializers.boolean_().serialize(value.returnMembers, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMembersSetAccessTypeArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMembersSetAccessTypeArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupSelector f_group = null; + UserSelectorArg f_user = null; + GroupAccessType f_accessType = null; + Boolean f_returnMembers = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group".equals(field)) { + f_group = GroupSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("access_type".equals(field)) { + f_accessType = GroupAccessType.Serializer.INSTANCE.deserialize(p); + } + else if ("return_members".equals(field)) { + f_returnMembers = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_group == null) { + throw new JsonParseException(p, "Required field \"group\" missing."); + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + value = new GroupMembersSetAccessTypeArg(f_group, f_user, f_accessType, f_returnMembers); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelector.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelector.java new file mode 100644 index 000000000..dfd956f32 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelector.java @@ -0,0 +1,340 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Argument for selecting a single group, either by group_id or by external + * group ID. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class GroupSelector { + // union team.GroupSelector (team_groups.stone) + + /** + * Discriminating tag type for {@link GroupSelector}. + */ + public enum Tag { + /** + * Group ID. + */ + GROUP_ID, // String + /** + * External ID of the group. + */ + GROUP_EXTERNAL_ID; // String + } + + private Tag _tag; + private String groupIdValue; + private String groupExternalIdValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GroupSelector() { + } + + + /** + * Argument for selecting a single group, either by group_id or by external + * group ID. + * + * @param _tag Discriminating tag for this instance. + */ + private GroupSelector withTag(Tag _tag) { + GroupSelector result = new GroupSelector(); + result._tag = _tag; + return result; + } + + /** + * Argument for selecting a single group, either by group_id or by external + * group ID. + * + * @param groupIdValue Group ID. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupSelector withTagAndGroupId(Tag _tag, String groupIdValue) { + GroupSelector result = new GroupSelector(); + result._tag = _tag; + result.groupIdValue = groupIdValue; + return result; + } + + /** + * Argument for selecting a single group, either by group_id or by external + * group ID. + * + * @param groupExternalIdValue External ID of the group. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupSelector withTagAndGroupExternalId(Tag _tag, String groupExternalIdValue) { + GroupSelector result = new GroupSelector(); + result._tag = _tag; + result.groupExternalIdValue = groupExternalIdValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GroupSelector}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#GROUP_ID}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#GROUP_ID}, + * {@code false} otherwise. + */ + public boolean isGroupId() { + return this._tag == Tag.GROUP_ID; + } + + /** + * Returns an instance of {@code GroupSelector} that has its tag set to + * {@link Tag#GROUP_ID}. + * + *

Group ID.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupSelector} with its tag set to {@link + * Tag#GROUP_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GroupSelector groupId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GroupSelector().withTagAndGroupId(Tag.GROUP_ID, value); + } + + /** + * Group ID. + * + *

This instance must be tagged as {@link Tag#GROUP_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isGroupId} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupId} is {@code false}. + */ + public String getGroupIdValue() { + if (this._tag != Tag.GROUP_ID) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_ID, but was Tag." + this._tag.name()); + } + return groupIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isGroupExternalId() { + return this._tag == Tag.GROUP_EXTERNAL_ID; + } + + /** + * Returns an instance of {@code GroupSelector} that has its tag set to + * {@link Tag#GROUP_EXTERNAL_ID}. + * + *

External ID of the group.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupSelector} with its tag set to {@link + * Tag#GROUP_EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GroupSelector groupExternalId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GroupSelector().withTagAndGroupExternalId(Tag.GROUP_EXTERNAL_ID, value); + } + + /** + * External ID of the group. + * + *

This instance must be tagged as {@link Tag#GROUP_EXTERNAL_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isGroupExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupExternalId} is {@code + * false}. + */ + public String getGroupExternalIdValue() { + if (this._tag != Tag.GROUP_EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return groupExternalIdValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.groupIdValue, + this.groupExternalIdValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GroupSelector) { + GroupSelector other = (GroupSelector) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case GROUP_ID: + return (this.groupIdValue == other.groupIdValue) || (this.groupIdValue.equals(other.groupIdValue)); + case GROUP_EXTERNAL_ID: + return (this.groupExternalIdValue == other.groupExternalIdValue) || (this.groupExternalIdValue.equals(other.groupExternalIdValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupSelector value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case GROUP_ID: { + g.writeStartObject(); + writeTag("group_id", g); + g.writeFieldName("group_id"); + StoneSerializers.string().serialize(value.groupIdValue, g); + g.writeEndObject(); + break; + } + case GROUP_EXTERNAL_ID: { + g.writeStartObject(); + writeTag("group_external_id", g); + g.writeFieldName("group_external_id"); + StoneSerializers.string().serialize(value.groupExternalIdValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public GroupSelector deserialize(JsonParser p) throws IOException, JsonParseException { + GroupSelector value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_id".equals(tag)) { + String fieldValue = null; + expectField("group_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = GroupSelector.groupId(fieldValue); + } + else if ("group_external_id".equals(tag)) { + String fieldValue = null; + expectField("group_external_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = GroupSelector.groupExternalId(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelectorError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelectorError.java new file mode 100644 index 000000000..4d02bf0de --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelectorError.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error that can be raised when {@link GroupSelector} is used. + */ +public enum GroupSelectorError { + // union team.GroupSelectorError (team_groups.stone) + /** + * No matching group found. No groups match the specified group ID. + */ + GROUP_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupSelectorError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case GROUP_NOT_FOUND: { + g.writeString("group_not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupSelectorError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupSelectorError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_not_found".equals(tag)) { + value = GroupSelectorError.GROUP_NOT_FOUND; + } + else { + value = GroupSelectorError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelectorErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelectorErrorException.java new file mode 100644 index 000000000..54ab24e3d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelectorErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GroupSelectorError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsMembersList(GroupSelector,long)}.

+ */ +public class GroupSelectorErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/members/list + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsMembersList(GroupSelector,long)}. + */ + public final GroupSelectorError errorValue; + + public GroupSelectorErrorException(String routeName, String requestId, LocalizedText userMessage, GroupSelectorError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateArgs.java new file mode 100644 index 000000000..9ae3f7c67 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateArgs.java @@ -0,0 +1,381 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.GroupManagementType; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class GroupUpdateArgs extends IncludeMembersArg { + // struct team.GroupUpdateArgs (team_groups.stone) + + @Nonnull + protected final GroupSelector group; + @Nullable + protected final String newGroupName; + @Nullable + protected final String newGroupExternalId; + @Nullable + protected final GroupManagementType newGroupManagementType; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param group Specify a group. Must not be {@code null}. + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * @param newGroupName Optional argument. Set group name to this if + * provided. + * @param newGroupExternalId Optional argument. New group external ID. If + * the argument is None, the group's external_id won't be updated. If + * the argument is empty string, the group's external id will be + * cleared. + * @param newGroupManagementType Set new group management type, if + * provided. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupUpdateArgs(@Nonnull GroupSelector group, boolean returnMembers, @Nullable String newGroupName, @Nullable String newGroupExternalId, @Nullable GroupManagementType newGroupManagementType) { + super(returnMembers); + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + this.newGroupName = newGroupName; + this.newGroupExternalId = newGroupExternalId; + this.newGroupManagementType = newGroupManagementType; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param group Specify a group. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupUpdateArgs(@Nonnull GroupSelector group) { + this(group, true, null, null, null); + } + + /** + * Specify a group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupSelector getGroup() { + return group; + } + + /** + * Whether to return the list of members in the group. Note that the + * default value will cause all the group members to be returned in the + * response. This may take a long time for large groups. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getReturnMembers() { + return returnMembers; + } + + /** + * Optional argument. Set group name to this if provided. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewGroupName() { + return newGroupName; + } + + /** + * Optional argument. New group external ID. If the argument is None, the + * group's external_id won't be updated. If the argument is empty string, + * the group's external id will be cleared. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewGroupExternalId() { + return newGroupExternalId; + } + + /** + * Set new group management type, if provided. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GroupManagementType getNewGroupManagementType() { + return newGroupManagementType; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param group Specify a group. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(GroupSelector group) { + return new Builder(group); + } + + /** + * Builder for {@link GroupUpdateArgs}. + */ + public static class Builder { + protected final GroupSelector group; + + protected boolean returnMembers; + protected String newGroupName; + protected String newGroupExternalId; + protected GroupManagementType newGroupManagementType; + + protected Builder(GroupSelector group) { + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + this.returnMembers = true; + this.newGroupName = null; + this.newGroupExternalId = null; + this.newGroupManagementType = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param returnMembers Whether to return the list of members in the + * group. Note that the default value will cause all the group + * members to be returned in the response. This may take a long + * time for large groups. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withReturnMembers(Boolean returnMembers) { + if (returnMembers != null) { + this.returnMembers = returnMembers; + } + else { + this.returnMembers = true; + } + return this; + } + + /** + * Set value for optional field. + * + * @param newGroupName Optional argument. Set group name to this if + * provided. + * + * @return this builder + */ + public Builder withNewGroupName(String newGroupName) { + this.newGroupName = newGroupName; + return this; + } + + /** + * Set value for optional field. + * + * @param newGroupExternalId Optional argument. New group external ID. + * If the argument is None, the group's external_id won't be + * updated. If the argument is empty string, the group's external id + * will be cleared. + * + * @return this builder + */ + public Builder withNewGroupExternalId(String newGroupExternalId) { + this.newGroupExternalId = newGroupExternalId; + return this; + } + + /** + * Set value for optional field. + * + * @param newGroupManagementType Set new group management type, if + * provided. + * + * @return this builder + */ + public Builder withNewGroupManagementType(GroupManagementType newGroupManagementType) { + this.newGroupManagementType = newGroupManagementType; + return this; + } + + /** + * Builds an instance of {@link GroupUpdateArgs} configured with this + * builder's values + * + * @return new instance of {@link GroupUpdateArgs} + */ + public GroupUpdateArgs build() { + return new GroupUpdateArgs(group, returnMembers, newGroupName, newGroupExternalId, newGroupManagementType); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.group, + this.newGroupName, + this.newGroupExternalId, + this.newGroupManagementType + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupUpdateArgs other = (GroupUpdateArgs) obj; + return ((this.group == other.group) || (this.group.equals(other.group))) + && (this.returnMembers == other.returnMembers) + && ((this.newGroupName == other.newGroupName) || (this.newGroupName != null && this.newGroupName.equals(other.newGroupName))) + && ((this.newGroupExternalId == other.newGroupExternalId) || (this.newGroupExternalId != null && this.newGroupExternalId.equals(other.newGroupExternalId))) + && ((this.newGroupManagementType == other.newGroupManagementType) || (this.newGroupManagementType != null && this.newGroupManagementType.equals(other.newGroupManagementType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupUpdateArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group"); + GroupSelector.Serializer.INSTANCE.serialize(value.group, g); + g.writeFieldName("return_members"); + StoneSerializers.boolean_().serialize(value.returnMembers, g); + if (value.newGroupName != null) { + g.writeFieldName("new_group_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newGroupName, g); + } + if (value.newGroupExternalId != null) { + g.writeFieldName("new_group_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newGroupExternalId, g); + } + if (value.newGroupManagementType != null) { + g.writeFieldName("new_group_management_type"); + StoneSerializers.nullable(GroupManagementType.Serializer.INSTANCE).serialize(value.newGroupManagementType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupUpdateArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupUpdateArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupSelector f_group = null; + Boolean f_returnMembers = true; + String f_newGroupName = null; + String f_newGroupExternalId = null; + GroupManagementType f_newGroupManagementType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group".equals(field)) { + f_group = GroupSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("return_members".equals(field)) { + f_returnMembers = StoneSerializers.boolean_().deserialize(p); + } + else if ("new_group_name".equals(field)) { + f_newGroupName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_group_external_id".equals(field)) { + f_newGroupExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_group_management_type".equals(field)) { + f_newGroupManagementType = StoneSerializers.nullable(GroupManagementType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_group == null) { + throw new JsonParseException(p, "Required field \"group\" missing."); + } + value = new GroupUpdateArgs(f_group, f_returnMembers, f_newGroupName, f_newGroupExternalId, f_newGroupManagementType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateError.java new file mode 100644 index 000000000..cfb5630b0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateError.java @@ -0,0 +1,135 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupUpdateError { + // union team.GroupUpdateError (team_groups.stone) + /** + * No matching group found. No groups match the specified group ID. + */ + GROUP_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * This operation is not supported on system-managed groups. + */ + SYSTEM_MANAGED_GROUP_DISALLOWED, + /** + * The requested group name is already being used by another group. + */ + GROUP_NAME_ALREADY_USED, + /** + * Group name is empty or has invalid characters. + */ + GROUP_NAME_INVALID, + /** + * The requested external ID is already being used by another group. + */ + EXTERNAL_ID_ALREADY_IN_USE; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupUpdateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case GROUP_NOT_FOUND: { + g.writeString("group_not_found"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SYSTEM_MANAGED_GROUP_DISALLOWED: { + g.writeString("system_managed_group_disallowed"); + break; + } + case GROUP_NAME_ALREADY_USED: { + g.writeString("group_name_already_used"); + break; + } + case GROUP_NAME_INVALID: { + g.writeString("group_name_invalid"); + break; + } + case EXTERNAL_ID_ALREADY_IN_USE: { + g.writeString("external_id_already_in_use"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GroupUpdateError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupUpdateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_not_found".equals(tag)) { + value = GroupUpdateError.GROUP_NOT_FOUND; + } + else if ("other".equals(tag)) { + value = GroupUpdateError.OTHER; + } + else if ("system_managed_group_disallowed".equals(tag)) { + value = GroupUpdateError.SYSTEM_MANAGED_GROUP_DISALLOWED; + } + else if ("group_name_already_used".equals(tag)) { + value = GroupUpdateError.GROUP_NAME_ALREADY_USED; + } + else if ("group_name_invalid".equals(tag)) { + value = GroupUpdateError.GROUP_NAME_INVALID; + } + else if ("external_id_already_in_use".equals(tag)) { + value = GroupUpdateError.EXTERNAL_ID_ALREADY_IN_USE; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateErrorException.java new file mode 100644 index 000000000..ff06dbc95 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupUpdateErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GroupUpdateError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsUpdate(GroupSelector)}.

+ */ +public class GroupUpdateErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/update + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsUpdate(GroupSelector)}. + */ + public final GroupUpdateError errorValue; + + public GroupUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, GroupUpdateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsCreateBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsCreateBuilder.java new file mode 100644 index 000000000..a04f6832b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsCreateBuilder.java @@ -0,0 +1,88 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.teamcommon.GroupManagementType; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#groupsCreateBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class GroupsCreateBuilder { + private final DbxTeamTeamRequests _client; + private final GroupCreateArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + GroupsCreateBuilder(DbxTeamTeamRequests _client, GroupCreateArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param addCreatorAsOwner Automatically add the creator of the group. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public GroupsCreateBuilder withAddCreatorAsOwner(Boolean addCreatorAsOwner) { + this._builder.withAddCreatorAsOwner(addCreatorAsOwner); + return this; + } + + /** + * Set value for optional field. + * + * @param groupExternalId The creator of a team can associate an arbitrary + * external ID to the group. + * + * @return this builder + */ + public GroupsCreateBuilder withGroupExternalId(String groupExternalId) { + this._builder.withGroupExternalId(groupExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param groupManagementType Whether the team can be managed by selected + * users, or only by team admins. + * + * @return this builder + */ + public GroupsCreateBuilder withGroupManagementType(GroupManagementType groupManagementType) { + this._builder.withGroupManagementType(groupManagementType); + return this; + } + + /** + * Issues the request. + */ + public GroupFullInfo start() throws GroupCreateErrorException, DbxException { + GroupCreateArg arg_ = this._builder.build(); + return _client.groupsCreate(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoError.java new file mode 100644 index 000000000..e33f9106d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupsGetInfoError { + // union team.GroupsGetInfoError (team_groups.stone) + /** + * The group is not on your team. + */ + GROUP_NOT_ON_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsGetInfoError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case GROUP_NOT_ON_TEAM: { + g.writeString("group_not_on_team"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupsGetInfoError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupsGetInfoError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_not_on_team".equals(tag)) { + value = GroupsGetInfoError.GROUP_NOT_ON_TEAM; + } + else { + value = GroupsGetInfoError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoErrorException.java new file mode 100644 index 000000000..16ba4f215 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GroupsGetInfoError} + * error. + * + *

This exception is raised by {@link DbxTeamTeamRequests#groupsGetInfo}. + *

+ */ +public class GroupsGetInfoErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/get_info + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#groupsGetInfo}. + */ + public final GroupsGetInfoError errorValue; + + public GroupsGetInfoErrorException(String routeName, String requestId, LocalizedText userMessage, GroupsGetInfoError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoItem.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoItem.java new file mode 100644 index 000000000..04a07e80f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoItem.java @@ -0,0 +1,339 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class GroupsGetInfoItem { + // union team.GroupsGetInfoItem (team_groups.stone) + + /** + * Discriminating tag type for {@link GroupsGetInfoItem}. + */ + public enum Tag { + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#groupsGetInfo}, and did not match a corresponding + * group. The ID can be a group ID, or an external ID, depending on how + * the method was called. + */ + ID_NOT_FOUND, // String + /** + * Info about a group. + */ + GROUP_INFO; // GroupFullInfo + } + + private Tag _tag; + private String idNotFoundValue; + private GroupFullInfo groupInfoValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GroupsGetInfoItem() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GroupsGetInfoItem withTag(Tag _tag) { + GroupsGetInfoItem result = new GroupsGetInfoItem(); + result._tag = _tag; + return result; + } + + /** + * + * @param idNotFoundValue An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#groupsGetInfo}, and did not match a corresponding + * group. The ID can be a group ID, or an external ID, depending on how + * the method was called. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupsGetInfoItem withTagAndIdNotFound(Tag _tag, String idNotFoundValue) { + GroupsGetInfoItem result = new GroupsGetInfoItem(); + result._tag = _tag; + result.idNotFoundValue = idNotFoundValue; + return result; + } + + /** + * + * @param groupInfoValue Info about a group. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupsGetInfoItem withTagAndGroupInfo(Tag _tag, GroupFullInfo groupInfoValue) { + GroupsGetInfoItem result = new GroupsGetInfoItem(); + result._tag = _tag; + result.groupInfoValue = groupInfoValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GroupsGetInfoItem}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isIdNotFound() { + return this._tag == Tag.ID_NOT_FOUND; + } + + /** + * Returns an instance of {@code GroupsGetInfoItem} that has its tag set to + * {@link Tag#ID_NOT_FOUND}. + * + *

An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#groupsGetInfo}, and did not match a corresponding + * group. The ID can be a group ID, or an external ID, depending on how the + * method was called.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupsGetInfoItem} with its tag set to {@link + * Tag#ID_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GroupsGetInfoItem idNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GroupsGetInfoItem().withTagAndIdNotFound(Tag.ID_NOT_FOUND, value); + } + + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#groupsGetInfo}, and did not match a corresponding + * group. The ID can be a group ID, or an external ID, depending on how the + * method was called. + * + *

This instance must be tagged as {@link Tag#ID_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isIdNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isIdNotFound} is {@code false}. + */ + public String getIdNotFoundValue() { + if (this._tag != Tag.ID_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.ID_NOT_FOUND, but was Tag." + this._tag.name()); + } + return idNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#GROUP_INFO}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_INFO}, {@code false} otherwise. + */ + public boolean isGroupInfo() { + return this._tag == Tag.GROUP_INFO; + } + + /** + * Returns an instance of {@code GroupsGetInfoItem} that has its tag set to + * {@link Tag#GROUP_INFO}. + * + *

Info about a group.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupsGetInfoItem} with its tag set to {@link + * Tag#GROUP_INFO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GroupsGetInfoItem groupInfo(GroupFullInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GroupsGetInfoItem().withTagAndGroupInfo(Tag.GROUP_INFO, value); + } + + /** + * Info about a group. + * + *

This instance must be tagged as {@link Tag#GROUP_INFO}.

+ * + * @return The {@link GroupFullInfo} value associated with this instance if + * {@link #isGroupInfo} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupInfo} is {@code false}. + */ + public GroupFullInfo getGroupInfoValue() { + if (this._tag != Tag.GROUP_INFO) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_INFO, but was Tag." + this._tag.name()); + } + return groupInfoValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.idNotFoundValue, + this.groupInfoValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GroupsGetInfoItem) { + GroupsGetInfoItem other = (GroupsGetInfoItem) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ID_NOT_FOUND: + return (this.idNotFoundValue == other.idNotFoundValue) || (this.idNotFoundValue.equals(other.idNotFoundValue)); + case GROUP_INFO: + return (this.groupInfoValue == other.groupInfoValue) || (this.groupInfoValue.equals(other.groupInfoValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsGetInfoItem value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ID_NOT_FOUND: { + g.writeStartObject(); + writeTag("id_not_found", g); + g.writeFieldName("id_not_found"); + StoneSerializers.string().serialize(value.idNotFoundValue, g); + g.writeEndObject(); + break; + } + case GROUP_INFO: { + g.writeStartObject(); + writeTag("group_info", g); + GroupFullInfo.Serializer.INSTANCE.serialize(value.groupInfoValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public GroupsGetInfoItem deserialize(JsonParser p) throws IOException, JsonParseException { + GroupsGetInfoItem value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("id_not_found".equals(tag)) { + String fieldValue = null; + expectField("id_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = GroupsGetInfoItem.idNotFound(fieldValue); + } + else if ("group_info".equals(tag)) { + GroupFullInfo fieldValue = null; + fieldValue = GroupFullInfo.Serializer.INSTANCE.deserialize(p, true); + value = GroupsGetInfoItem.groupInfo(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListArg.java new file mode 100644 index 000000000..064101d13 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class GroupsListArg { + // struct team.GroupsListArg (team_groups.stone) + + protected final long limit; + + /** + * + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsListArg(long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public GroupsListArg() { + this(1000L); + } + + /** + * Number of results to return per call. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupsListArg other = (GroupsListArg) obj; + return this.limit == other.limit; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupsListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupsListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + value = new GroupsListArg(f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueArg.java new file mode 100644 index 000000000..146366cac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class GroupsListContinueArg { + // struct team.GroupsListContinueArg (team_groups.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor Indicates from what point to get the next set of groups. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsListContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Indicates from what point to get the next set of groups. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupsListContinueArg other = (GroupsListContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsListContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupsListContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupsListContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new GroupsListContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueError.java new file mode 100644 index 000000000..7dd0ceb76 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupsListContinueError { + // union team.GroupsListContinueError (team_groups.stone) + /** + * The cursor is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsListContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupsListContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupsListContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_cursor".equals(tag)) { + value = GroupsListContinueError.INVALID_CURSOR; + } + else { + value = GroupsListContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueErrorException.java new file mode 100644 index 000000000..32f4a92e1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GroupsListContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsListContinue(String)}.

+ */ +public class GroupsListContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsListContinue(String)}. + */ + public final GroupsListContinueError errorValue; + + public GroupsListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, GroupsListContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListResult.java new file mode 100644 index 000000000..551ad46cb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListResult.java @@ -0,0 +1,214 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.GroupSummary; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GroupsListResult { + // struct team.GroupsListResult (team_groups.stone) + + @Nonnull + protected final List groups; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * + * @param groups Must not contain a {@code null} item and not be {@code + * null}. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#groupsListContinue(String)} to obtain the + * additional groups. Must not be {@code null}. + * @param hasMore Is true if there are additional groups that have not been + * returned yet. An additional call to {@link + * DbxTeamTeamRequests#groupsListContinue(String)} can retrieve them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsListResult(@Nonnull List groups, @Nonnull String cursor, boolean hasMore) { + if (groups == null) { + throw new IllegalArgumentException("Required value for 'groups' is null"); + } + for (GroupSummary x : groups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'groups' is null"); + } + } + this.groups = groups; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getGroups() { + return groups; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#groupsListContinue(String)} to obtain the additional + * groups. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there are additional groups that have not been returned yet. + * An additional call to {@link + * DbxTeamTeamRequests#groupsListContinue(String)} can retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.groups, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupsListResult other = (GroupsListResult) obj; + return ((this.groups == other.groups) || (this.groups.equals(other.groups))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsListResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("groups"); + StoneSerializers.list(GroupSummary.Serializer.INSTANCE).serialize(value.groups, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupsListResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupsListResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_groups = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("groups".equals(field)) { + f_groups = StoneSerializers.list(GroupSummary.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_groups == null) { + throw new JsonParseException(p, "Required field \"groups\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new GroupsListResult(f_groups, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListArg.java new file mode 100644 index 000000000..42bfea667 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListArg.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class GroupsMembersListArg { + // struct team.GroupsMembersListArg (team_groups.stone) + + @Nonnull + protected final GroupSelector group; + protected final long limit; + + /** + * + * @param group The group whose members are to be listed. Must not be + * {@code null}. + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsMembersListArg(@Nonnull GroupSelector group, long limit) { + if (group == null) { + throw new IllegalArgumentException("Required value for 'group' is null"); + } + this.group = group; + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param group The group whose members are to be listed. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsMembersListArg(@Nonnull GroupSelector group) { + this(group, 1000L); + } + + /** + * The group whose members are to be listed. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupSelector getGroup() { + return group; + } + + /** + * Number of results to return per call. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.group, + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupsMembersListArg other = (GroupsMembersListArg) obj; + return ((this.group == other.group) || (this.group.equals(other.group))) + && (this.limit == other.limit) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsMembersListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group"); + GroupSelector.Serializer.INSTANCE.serialize(value.group, g); + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupsMembersListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupsMembersListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupSelector f_group = null; + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group".equals(field)) { + f_group = GroupSelector.Serializer.INSTANCE.deserialize(p); + } + else if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_group == null) { + throw new JsonParseException(p, "Required field \"group\" missing."); + } + value = new GroupsMembersListArg(f_group, f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueArg.java new file mode 100644 index 000000000..f2a48480f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class GroupsMembersListContinueArg { + // struct team.GroupsMembersListContinueArg (team_groups.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor Indicates from what point to get the next set of groups. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsMembersListContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Indicates from what point to get the next set of groups. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupsMembersListContinueArg other = (GroupsMembersListContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsMembersListContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupsMembersListContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupsMembersListContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new GroupsMembersListContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueError.java new file mode 100644 index 000000000..185d63c58 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupsMembersListContinueError { + // union team.GroupsMembersListContinueError (team_groups.stone) + /** + * The cursor is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsMembersListContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupsMembersListContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupsMembersListContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_cursor".equals(tag)) { + value = GroupsMembersListContinueError.INVALID_CURSOR; + } + else { + value = GroupsMembersListContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueErrorException.java new file mode 100644 index 000000000..603c8fdc1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GroupsMembersListContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsMembersListContinue(String)}.

+ */ +public class GroupsMembersListContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/members/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsMembersListContinue(String)}. + */ + public final GroupsMembersListContinueError errorValue; + + public GroupsMembersListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, GroupsMembersListContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListResult.java new file mode 100644 index 000000000..a7c259e07 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsMembersListResult.java @@ -0,0 +1,214 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GroupsMembersListResult { + // struct team.GroupsMembersListResult (team_groups.stone) + + @Nonnull + protected final List members; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * + * @param members Must not contain a {@code null} item and not be {@code + * null}. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#groupsMembersListContinue(String)} to obtain + * additional group members. Must not be {@code null}. + * @param hasMore Is true if there are additional group members that have + * not been returned yet. An additional call to {@link + * DbxTeamTeamRequests#groupsMembersListContinue(String)} can retrieve + * them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupsMembersListResult(@Nonnull List members, @Nonnull String cursor, boolean hasMore) { + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (GroupMemberInfo x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#groupsMembersListContinue(String)} to obtain + * additional group members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there are additional group members that have not been returned + * yet. An additional call to {@link + * DbxTeamTeamRequests#groupsMembersListContinue(String)} can retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupsMembersListResult other = (GroupsMembersListResult) obj; + return ((this.members == other.members) || (this.members.equals(other.members))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsMembersListResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("members"); + StoneSerializers.list(GroupMemberInfo.Serializer.INSTANCE).serialize(value.members, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupsMembersListResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupsMembersListResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_members = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("members".equals(field)) { + f_members = StoneSerializers.list(GroupMemberInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new GroupsMembersListResult(f_members, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsPollError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsPollError.java new file mode 100644 index 000000000..44565c003 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsPollError.java @@ -0,0 +1,115 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupsPollError { + // union team.GroupsPollError (team_groups.stone) + /** + * The job ID is invalid. + */ + INVALID_ASYNC_JOB_ID, + /** + * Something went wrong with the job on Dropbox's end. You'll need to verify + * that the action you were taking succeeded, and if not, try again. This + * should happen very rarely. + */ + INTERNAL_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * You are not allowed to poll this job. + */ + ACCESS_DENIED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsPollError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_ASYNC_JOB_ID: { + g.writeString("invalid_async_job_id"); + break; + } + case INTERNAL_ERROR: { + g.writeString("internal_error"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case ACCESS_DENIED: { + g.writeString("access_denied"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GroupsPollError deserialize(JsonParser p) throws IOException, JsonParseException { + GroupsPollError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_async_job_id".equals(tag)) { + value = GroupsPollError.INVALID_ASYNC_JOB_ID; + } + else if ("internal_error".equals(tag)) { + value = GroupsPollError.INTERNAL_ERROR; + } + else if ("other".equals(tag)) { + value = GroupsPollError.OTHER; + } + else if ("access_denied".equals(tag)) { + value = GroupsPollError.ACCESS_DENIED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsPollErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsPollErrorException.java new file mode 100644 index 000000000..61a80fa3e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsPollErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GroupsPollError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#groupsJobStatusGet(String)}.

+ */ +public class GroupsPollErrorException extends DbxApiException { + // exception for routes: + // 2/team/groups/job_status/get + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#groupsJobStatusGet(String)}. + */ + public final GroupsPollError errorValue; + + public GroupsPollErrorException(String routeName, String requestId, LocalizedText userMessage, GroupsPollError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsSelector.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsSelector.java new file mode 100644 index 000000000..b90e5a5b3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsSelector.java @@ -0,0 +1,354 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * Argument for selecting a list of groups, either by group_ids, or external + * group IDs. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class GroupsSelector { + // union team.GroupsSelector (team_groups.stone) + + /** + * Discriminating tag type for {@link GroupsSelector}. + */ + public enum Tag { + /** + * List of group IDs. + */ + GROUP_IDS, // List + /** + * List of external IDs of groups. + */ + GROUP_EXTERNAL_IDS; // List + } + + private Tag _tag; + private List groupIdsValue; + private List groupExternalIdsValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GroupsSelector() { + } + + + /** + * Argument for selecting a list of groups, either by group_ids, or external + * group IDs. + * + * @param _tag Discriminating tag for this instance. + */ + private GroupsSelector withTag(Tag _tag) { + GroupsSelector result = new GroupsSelector(); + result._tag = _tag; + return result; + } + + /** + * Argument for selecting a list of groups, either by group_ids, or external + * group IDs. + * + * @param groupIdsValue List of group IDs. Must not contain a {@code null} + * item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupsSelector withTagAndGroupIds(Tag _tag, List groupIdsValue) { + GroupsSelector result = new GroupsSelector(); + result._tag = _tag; + result.groupIdsValue = groupIdsValue; + return result; + } + + /** + * Argument for selecting a list of groups, either by group_ids, or external + * group IDs. + * + * @param groupExternalIdsValue List of external IDs of groups. Must not + * contain a {@code null} item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GroupsSelector withTagAndGroupExternalIds(Tag _tag, List groupExternalIdsValue) { + GroupsSelector result = new GroupsSelector(); + result._tag = _tag; + result.groupExternalIdsValue = groupExternalIdsValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GroupsSelector}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#GROUP_IDS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#GROUP_IDS}, + * {@code false} otherwise. + */ + public boolean isGroupIds() { + return this._tag == Tag.GROUP_IDS; + } + + /** + * Returns an instance of {@code GroupsSelector} that has its tag set to + * {@link Tag#GROUP_IDS}. + * + *

List of group IDs.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupsSelector} with its tag set to {@link + * Tag#GROUP_IDS}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static GroupsSelector groupIds(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new GroupsSelector().withTagAndGroupIds(Tag.GROUP_IDS, value); + } + + /** + * List of group IDs. + * + *

This instance must be tagged as {@link Tag#GROUP_IDS}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isGroupIds} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupIds} is {@code false}. + */ + public List getGroupIdsValue() { + if (this._tag != Tag.GROUP_IDS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_IDS, but was Tag." + this._tag.name()); + } + return groupIdsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_EXTERNAL_IDS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_EXTERNAL_IDS}, {@code false} otherwise. + */ + public boolean isGroupExternalIds() { + return this._tag == Tag.GROUP_EXTERNAL_IDS; + } + + /** + * Returns an instance of {@code GroupsSelector} that has its tag set to + * {@link Tag#GROUP_EXTERNAL_IDS}. + * + *

List of external IDs of groups.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GroupsSelector} with its tag set to {@link + * Tag#GROUP_EXTERNAL_IDS}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static GroupsSelector groupExternalIds(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (String x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new GroupsSelector().withTagAndGroupExternalIds(Tag.GROUP_EXTERNAL_IDS, value); + } + + /** + * List of external IDs of groups. + * + *

This instance must be tagged as {@link Tag#GROUP_EXTERNAL_IDS}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isGroupExternalIds} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupExternalIds} is {@code + * false}. + */ + public List getGroupExternalIdsValue() { + if (this._tag != Tag.GROUP_EXTERNAL_IDS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_EXTERNAL_IDS, but was Tag." + this._tag.name()); + } + return groupExternalIdsValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.groupIdsValue, + this.groupExternalIdsValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GroupsSelector) { + GroupsSelector other = (GroupsSelector) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case GROUP_IDS: + return (this.groupIdsValue == other.groupIdsValue) || (this.groupIdsValue.equals(other.groupIdsValue)); + case GROUP_EXTERNAL_IDS: + return (this.groupExternalIdsValue == other.groupExternalIdsValue) || (this.groupExternalIdsValue.equals(other.groupExternalIdsValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupsSelector value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case GROUP_IDS: { + g.writeStartObject(); + writeTag("group_ids", g); + g.writeFieldName("group_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.groupIdsValue, g); + g.writeEndObject(); + break; + } + case GROUP_EXTERNAL_IDS: { + g.writeStartObject(); + writeTag("group_external_ids", g); + g.writeFieldName("group_external_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.groupExternalIdsValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public GroupsSelector deserialize(JsonParser p) throws IOException, JsonParseException { + GroupsSelector value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group_ids".equals(tag)) { + List fieldValue = null; + expectField("group_ids", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = GroupsSelector.groupIds(fieldValue); + } + else if ("group_external_ids".equals(tag)) { + List fieldValue = null; + expectField("group_external_ids", p); + fieldValue = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + value = GroupsSelector.groupExternalIds(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsUpdateBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsUpdateBuilder.java new file mode 100644 index 000000000..96be0dcac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsUpdateBuilder.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.teamcommon.GroupManagementType; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#groupsUpdateBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class GroupsUpdateBuilder { + private final DbxTeamTeamRequests _client; + private final GroupUpdateArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + GroupsUpdateBuilder(DbxTeamTeamRequests _client, GroupUpdateArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + * Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public GroupsUpdateBuilder withReturnMembers(Boolean returnMembers) { + this._builder.withReturnMembers(returnMembers); + return this; + } + + /** + * Set value for optional field. + * + * @param newGroupName Optional argument. Set group name to this if + * provided. + * + * @return this builder + */ + public GroupsUpdateBuilder withNewGroupName(String newGroupName) { + this._builder.withNewGroupName(newGroupName); + return this; + } + + /** + * Set value for optional field. + * + * @param newGroupExternalId Optional argument. New group external ID. If + * the argument is None, the group's external_id won't be updated. If + * the argument is empty string, the group's external id will be + * cleared. + * + * @return this builder + */ + public GroupsUpdateBuilder withNewGroupExternalId(String newGroupExternalId) { + this._builder.withNewGroupExternalId(newGroupExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param newGroupManagementType Set new group management type, if + * provided. + * + * @return this builder + */ + public GroupsUpdateBuilder withNewGroupManagementType(GroupManagementType newGroupManagementType) { + this._builder.withNewGroupManagementType(newGroupManagementType); + return this; + } + + /** + * Issues the request. + */ + public GroupFullInfo start() throws GroupUpdateErrorException, DbxException { + GroupUpdateArgs arg_ = this._builder.build(); + return _client.groupsUpdate(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamFileEventsValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamFileEventsValue.java new file mode 100644 index 000000000..828d0303c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamFileEventsValue.java @@ -0,0 +1,278 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The value for {@link Feature#HAS_TEAM_FILE_EVENTS}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class HasTeamFileEventsValue { + // union team.HasTeamFileEventsValue (team.stone) + + /** + * Discriminating tag type for {@link HasTeamFileEventsValue}. + */ + public enum Tag { + /** + * Does this team have file events. + */ + ENABLED, // boolean + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final HasTeamFileEventsValue OTHER = new HasTeamFileEventsValue().withTag(Tag.OTHER); + + private Tag _tag; + private Boolean enabledValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private HasTeamFileEventsValue() { + } + + + /** + * The value for {@link Feature#HAS_TEAM_FILE_EVENTS}. + * + * @param _tag Discriminating tag for this instance. + */ + private HasTeamFileEventsValue withTag(Tag _tag) { + HasTeamFileEventsValue result = new HasTeamFileEventsValue(); + result._tag = _tag; + return result; + } + + /** + * The value for {@link Feature#HAS_TEAM_FILE_EVENTS}. + * + * @param enabledValue Does this team have file events. + * @param _tag Discriminating tag for this instance. + */ + private HasTeamFileEventsValue withTagAndEnabled(Tag _tag, Boolean enabledValue) { + HasTeamFileEventsValue result = new HasTeamFileEventsValue(); + result._tag = _tag; + result.enabledValue = enabledValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code HasTeamFileEventsValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ENABLED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ENABLED}, + * {@code false} otherwise. + */ + public boolean isEnabled() { + return this._tag == Tag.ENABLED; + } + + /** + * Returns an instance of {@code HasTeamFileEventsValue} that has its tag + * set to {@link Tag#ENABLED}. + * + *

Does this team have file events.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code HasTeamFileEventsValue} with its tag set to + * {@link Tag#ENABLED}. + */ + public static HasTeamFileEventsValue enabled(boolean value) { + return new HasTeamFileEventsValue().withTagAndEnabled(Tag.ENABLED, value); + } + + /** + * Does this team have file events. + * + *

This instance must be tagged as {@link Tag#ENABLED}.

+ * + * @return The {@link boolean} value associated with this instance if {@link + * #isEnabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isEnabled} is {@code false}. + */ + public boolean getEnabledValue() { + if (this._tag != Tag.ENABLED) { + throw new IllegalStateException("Invalid tag: required Tag.ENABLED, but was Tag." + this._tag.name()); + } + return enabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.enabledValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof HasTeamFileEventsValue) { + HasTeamFileEventsValue other = (HasTeamFileEventsValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ENABLED: + return this.enabledValue == other.enabledValue; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(HasTeamFileEventsValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ENABLED: { + g.writeStartObject(); + writeTag("enabled", g); + g.writeFieldName("enabled"); + StoneSerializers.boolean_().serialize(value.enabledValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public HasTeamFileEventsValue deserialize(JsonParser p) throws IOException, JsonParseException { + HasTeamFileEventsValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("enabled".equals(tag)) { + Boolean fieldValue = null; + expectField("enabled", p); + fieldValue = StoneSerializers.boolean_().deserialize(p); + value = HasTeamFileEventsValue.enabled(fieldValue); + } + else { + value = HasTeamFileEventsValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamSelectiveSyncValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamSelectiveSyncValue.java new file mode 100644 index 000000000..8884e8767 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamSelectiveSyncValue.java @@ -0,0 +1,281 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The value for {@link Feature#HAS_TEAM_SELECTIVE_SYNC}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class HasTeamSelectiveSyncValue { + // union team.HasTeamSelectiveSyncValue (team.stone) + + /** + * Discriminating tag type for {@link HasTeamSelectiveSyncValue}. + */ + public enum Tag { + /** + * Does this team have team selective sync enabled. + */ + HAS_TEAM_SELECTIVE_SYNC, // boolean + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final HasTeamSelectiveSyncValue OTHER = new HasTeamSelectiveSyncValue().withTag(Tag.OTHER); + + private Tag _tag; + private Boolean hasTeamSelectiveSyncValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private HasTeamSelectiveSyncValue() { + } + + + /** + * The value for {@link Feature#HAS_TEAM_SELECTIVE_SYNC}. + * + * @param _tag Discriminating tag for this instance. + */ + private HasTeamSelectiveSyncValue withTag(Tag _tag) { + HasTeamSelectiveSyncValue result = new HasTeamSelectiveSyncValue(); + result._tag = _tag; + return result; + } + + /** + * The value for {@link Feature#HAS_TEAM_SELECTIVE_SYNC}. + * + * @param hasTeamSelectiveSyncValue Does this team have team selective sync + * enabled. + * @param _tag Discriminating tag for this instance. + */ + private HasTeamSelectiveSyncValue withTagAndHasTeamSelectiveSync(Tag _tag, Boolean hasTeamSelectiveSyncValue) { + HasTeamSelectiveSyncValue result = new HasTeamSelectiveSyncValue(); + result._tag = _tag; + result.hasTeamSelectiveSyncValue = hasTeamSelectiveSyncValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code HasTeamSelectiveSyncValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#HAS_TEAM_SELECTIVE_SYNC}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#HAS_TEAM_SELECTIVE_SYNC}, {@code false} otherwise. + */ + public boolean isHasTeamSelectiveSync() { + return this._tag == Tag.HAS_TEAM_SELECTIVE_SYNC; + } + + /** + * Returns an instance of {@code HasTeamSelectiveSyncValue} that has its tag + * set to {@link Tag#HAS_TEAM_SELECTIVE_SYNC}. + * + *

Does this team have team selective sync enabled.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code HasTeamSelectiveSyncValue} with its tag set to + * {@link Tag#HAS_TEAM_SELECTIVE_SYNC}. + */ + public static HasTeamSelectiveSyncValue hasTeamSelectiveSync(boolean value) { + return new HasTeamSelectiveSyncValue().withTagAndHasTeamSelectiveSync(Tag.HAS_TEAM_SELECTIVE_SYNC, value); + } + + /** + * Does this team have team selective sync enabled. + * + *

This instance must be tagged as {@link Tag#HAS_TEAM_SELECTIVE_SYNC}. + *

+ * + * @return The {@link boolean} value associated with this instance if {@link + * #isHasTeamSelectiveSync} is {@code true}. + * + * @throws IllegalStateException If {@link #isHasTeamSelectiveSync} is + * {@code false}. + */ + public boolean getHasTeamSelectiveSyncValue() { + if (this._tag != Tag.HAS_TEAM_SELECTIVE_SYNC) { + throw new IllegalStateException("Invalid tag: required Tag.HAS_TEAM_SELECTIVE_SYNC, but was Tag." + this._tag.name()); + } + return hasTeamSelectiveSyncValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.hasTeamSelectiveSyncValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof HasTeamSelectiveSyncValue) { + HasTeamSelectiveSyncValue other = (HasTeamSelectiveSyncValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case HAS_TEAM_SELECTIVE_SYNC: + return this.hasTeamSelectiveSyncValue == other.hasTeamSelectiveSyncValue; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(HasTeamSelectiveSyncValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case HAS_TEAM_SELECTIVE_SYNC: { + g.writeStartObject(); + writeTag("has_team_selective_sync", g); + g.writeFieldName("has_team_selective_sync"); + StoneSerializers.boolean_().serialize(value.hasTeamSelectiveSyncValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public HasTeamSelectiveSyncValue deserialize(JsonParser p) throws IOException, JsonParseException { + HasTeamSelectiveSyncValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("has_team_selective_sync".equals(tag)) { + Boolean fieldValue = null; + expectField("has_team_selective_sync", p); + fieldValue = StoneSerializers.boolean_().deserialize(p); + value = HasTeamSelectiveSyncValue.hasTeamSelectiveSync(fieldValue); + } + else { + value = HasTeamSelectiveSyncValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamSharedDropboxValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamSharedDropboxValue.java new file mode 100644 index 000000000..dada2539c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/HasTeamSharedDropboxValue.java @@ -0,0 +1,280 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The value for {@link Feature#HAS_TEAM_SHARED_DROPBOX}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class HasTeamSharedDropboxValue { + // union team.HasTeamSharedDropboxValue (team.stone) + + /** + * Discriminating tag type for {@link HasTeamSharedDropboxValue}. + */ + public enum Tag { + /** + * Does this team have a shared team root. + */ + HAS_TEAM_SHARED_DROPBOX, // boolean + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final HasTeamSharedDropboxValue OTHER = new HasTeamSharedDropboxValue().withTag(Tag.OTHER); + + private Tag _tag; + private Boolean hasTeamSharedDropboxValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private HasTeamSharedDropboxValue() { + } + + + /** + * The value for {@link Feature#HAS_TEAM_SHARED_DROPBOX}. + * + * @param _tag Discriminating tag for this instance. + */ + private HasTeamSharedDropboxValue withTag(Tag _tag) { + HasTeamSharedDropboxValue result = new HasTeamSharedDropboxValue(); + result._tag = _tag; + return result; + } + + /** + * The value for {@link Feature#HAS_TEAM_SHARED_DROPBOX}. + * + * @param hasTeamSharedDropboxValue Does this team have a shared team root. + * @param _tag Discriminating tag for this instance. + */ + private HasTeamSharedDropboxValue withTagAndHasTeamSharedDropbox(Tag _tag, Boolean hasTeamSharedDropboxValue) { + HasTeamSharedDropboxValue result = new HasTeamSharedDropboxValue(); + result._tag = _tag; + result.hasTeamSharedDropboxValue = hasTeamSharedDropboxValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code HasTeamSharedDropboxValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#HAS_TEAM_SHARED_DROPBOX}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#HAS_TEAM_SHARED_DROPBOX}, {@code false} otherwise. + */ + public boolean isHasTeamSharedDropbox() { + return this._tag == Tag.HAS_TEAM_SHARED_DROPBOX; + } + + /** + * Returns an instance of {@code HasTeamSharedDropboxValue} that has its tag + * set to {@link Tag#HAS_TEAM_SHARED_DROPBOX}. + * + *

Does this team have a shared team root.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code HasTeamSharedDropboxValue} with its tag set to + * {@link Tag#HAS_TEAM_SHARED_DROPBOX}. + */ + public static HasTeamSharedDropboxValue hasTeamSharedDropbox(boolean value) { + return new HasTeamSharedDropboxValue().withTagAndHasTeamSharedDropbox(Tag.HAS_TEAM_SHARED_DROPBOX, value); + } + + /** + * Does this team have a shared team root. + * + *

This instance must be tagged as {@link Tag#HAS_TEAM_SHARED_DROPBOX}. + *

+ * + * @return The {@link boolean} value associated with this instance if {@link + * #isHasTeamSharedDropbox} is {@code true}. + * + * @throws IllegalStateException If {@link #isHasTeamSharedDropbox} is + * {@code false}. + */ + public boolean getHasTeamSharedDropboxValue() { + if (this._tag != Tag.HAS_TEAM_SHARED_DROPBOX) { + throw new IllegalStateException("Invalid tag: required Tag.HAS_TEAM_SHARED_DROPBOX, but was Tag." + this._tag.name()); + } + return hasTeamSharedDropboxValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.hasTeamSharedDropboxValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof HasTeamSharedDropboxValue) { + HasTeamSharedDropboxValue other = (HasTeamSharedDropboxValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case HAS_TEAM_SHARED_DROPBOX: + return this.hasTeamSharedDropboxValue == other.hasTeamSharedDropboxValue; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(HasTeamSharedDropboxValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case HAS_TEAM_SHARED_DROPBOX: { + g.writeStartObject(); + writeTag("has_team_shared_dropbox", g); + g.writeFieldName("has_team_shared_dropbox"); + StoneSerializers.boolean_().serialize(value.hasTeamSharedDropboxValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public HasTeamSharedDropboxValue deserialize(JsonParser p) throws IOException, JsonParseException { + HasTeamSharedDropboxValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("has_team_shared_dropbox".equals(tag)) { + Boolean fieldValue = null; + expectField("has_team_shared_dropbox", p); + fieldValue = StoneSerializers.boolean_().deserialize(p); + value = HasTeamSharedDropboxValue.hasTeamSharedDropbox(fieldValue); + } + else { + value = HasTeamSharedDropboxValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/IncludeMembersArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/IncludeMembersArg.java new file mode 100644 index 000000000..7a1f7933e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/IncludeMembersArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class IncludeMembersArg { + // struct team.IncludeMembersArg (team_groups.stone) + + protected final boolean returnMembers; + + /** + * + * @param returnMembers Whether to return the list of members in the group. + * Note that the default value will cause all the group members to be + * returned in the response. This may take a long time for large groups. + */ + public IncludeMembersArg(boolean returnMembers) { + this.returnMembers = returnMembers; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public IncludeMembersArg() { + this(true); + } + + /** + * Whether to return the list of members in the group. Note that the + * default value will cause all the group members to be returned in the + * response. This may take a long time for large groups. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getReturnMembers() { + return returnMembers; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.returnMembers + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IncludeMembersArg other = (IncludeMembersArg) obj; + return this.returnMembers == other.returnMembers; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IncludeMembersArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("return_members"); + StoneSerializers.boolean_().serialize(value.returnMembers, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IncludeMembersArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IncludeMembersArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_returnMembers = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("return_members".equals(field)) { + f_returnMembers = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + value = new IncludeMembersArg(f_returnMembers); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldHeldRevisionMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldHeldRevisionMetadata.java new file mode 100644 index 000000000..564df7609 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldHeldRevisionMetadata.java @@ -0,0 +1,436 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +public class LegalHoldHeldRevisionMetadata { + // struct team.LegalHoldHeldRevisionMetadata (team_legal_holds.stone) + + @Nonnull + protected final String newFilename; + @Nonnull + protected final String originalRevisionId; + @Nonnull + protected final String originalFilePath; + @Nonnull + protected final Date serverModified; + @Nonnull + protected final String authorMemberId; + @Nonnull + protected final TeamMemberStatus authorMemberStatus; + @Nonnull + protected final String authorEmail; + @Nonnull + protected final String fileType; + protected final long size; + @Nonnull + protected final String contentHash; + + /** + * + * @param newFilename The held revision filename. Must not be {@code null}. + * @param originalRevisionId The id of the held revision. Must have length + * of at least 9, match pattern "{@code [0-9a-f]+}", and not be {@code + * null}. + * @param originalFilePath The original path of the held revision. Must + * match pattern "{@code (/(.|[\\r\\n])*)?}" and not be {@code null}. + * @param serverModified The last time the file was modified on Dropbox. + * Must not be {@code null}. + * @param authorMemberId The member id of the revision's author. Must not + * be {@code null}. + * @param authorMemberStatus The member status of the revision's author. + * Must not be {@code null}. + * @param authorEmail The email address of the held revision author. Must + * have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param fileType The type of the held revision's file. Must not be {@code + * null}. + * @param size The file size in bytes. + * @param contentHash A hash of the file content. This field can be used to + * verify data integrity. For more information see our Content + * hash page. Must have length of at least 64, have length of at + * most 64, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldHeldRevisionMetadata(@Nonnull String newFilename, @Nonnull String originalRevisionId, @Nonnull String originalFilePath, @Nonnull Date serverModified, @Nonnull String authorMemberId, @Nonnull TeamMemberStatus authorMemberStatus, @Nonnull String authorEmail, @Nonnull String fileType, long size, @Nonnull String contentHash) { + if (newFilename == null) { + throw new IllegalArgumentException("Required value for 'newFilename' is null"); + } + this.newFilename = newFilename; + if (originalRevisionId == null) { + throw new IllegalArgumentException("Required value for 'originalRevisionId' is null"); + } + if (originalRevisionId.length() < 9) { + throw new IllegalArgumentException("String 'originalRevisionId' is shorter than 9"); + } + if (!Pattern.matches("[0-9a-f]+", originalRevisionId)) { + throw new IllegalArgumentException("String 'originalRevisionId' does not match pattern"); + } + this.originalRevisionId = originalRevisionId; + if (originalFilePath == null) { + throw new IllegalArgumentException("Required value for 'originalFilePath' is null"); + } + if (!Pattern.matches("(/(.|[\\r\\n])*)?", originalFilePath)) { + throw new IllegalArgumentException("String 'originalFilePath' does not match pattern"); + } + this.originalFilePath = originalFilePath; + if (serverModified == null) { + throw new IllegalArgumentException("Required value for 'serverModified' is null"); + } + this.serverModified = LangUtil.truncateMillis(serverModified); + if (authorMemberId == null) { + throw new IllegalArgumentException("Required value for 'authorMemberId' is null"); + } + this.authorMemberId = authorMemberId; + if (authorMemberStatus == null) { + throw new IllegalArgumentException("Required value for 'authorMemberStatus' is null"); + } + this.authorMemberStatus = authorMemberStatus; + if (authorEmail == null) { + throw new IllegalArgumentException("Required value for 'authorEmail' is null"); + } + if (authorEmail.length() > 255) { + throw new IllegalArgumentException("String 'authorEmail' is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", authorEmail)) { + throw new IllegalArgumentException("String 'authorEmail' does not match pattern"); + } + this.authorEmail = authorEmail; + if (fileType == null) { + throw new IllegalArgumentException("Required value for 'fileType' is null"); + } + this.fileType = fileType; + this.size = size; + if (contentHash == null) { + throw new IllegalArgumentException("Required value for 'contentHash' is null"); + } + if (contentHash.length() < 64) { + throw new IllegalArgumentException("String 'contentHash' is shorter than 64"); + } + if (contentHash.length() > 64) { + throw new IllegalArgumentException("String 'contentHash' is longer than 64"); + } + this.contentHash = contentHash; + } + + /** + * The held revision filename. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewFilename() { + return newFilename; + } + + /** + * The id of the held revision. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalRevisionId() { + return originalRevisionId; + } + + /** + * The original path of the held revision. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFilePath() { + return originalFilePath; + } + + /** + * The last time the file was modified on Dropbox. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getServerModified() { + return serverModified; + } + + /** + * The member id of the revision's author. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAuthorMemberId() { + return authorMemberId; + } + + /** + * The member status of the revision's author. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberStatus getAuthorMemberStatus() { + return authorMemberStatus; + } + + /** + * The email address of the held revision author. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAuthorEmail() { + return authorEmail; + } + + /** + * The type of the held revision's file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFileType() { + return fileType; + } + + /** + * The file size in bytes. + * + * @return value for this field. + */ + public long getSize() { + return size; + } + + /** + * A hash of the file content. This field can be used to verify data + * integrity. For more information see our Content + * hash page. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getContentHash() { + return contentHash; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newFilename, + this.originalRevisionId, + this.originalFilePath, + this.serverModified, + this.authorMemberId, + this.authorMemberStatus, + this.authorEmail, + this.fileType, + this.size, + this.contentHash + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldHeldRevisionMetadata other = (LegalHoldHeldRevisionMetadata) obj; + return ((this.newFilename == other.newFilename) || (this.newFilename.equals(other.newFilename))) + && ((this.originalRevisionId == other.originalRevisionId) || (this.originalRevisionId.equals(other.originalRevisionId))) + && ((this.originalFilePath == other.originalFilePath) || (this.originalFilePath.equals(other.originalFilePath))) + && ((this.serverModified == other.serverModified) || (this.serverModified.equals(other.serverModified))) + && ((this.authorMemberId == other.authorMemberId) || (this.authorMemberId.equals(other.authorMemberId))) + && ((this.authorMemberStatus == other.authorMemberStatus) || (this.authorMemberStatus.equals(other.authorMemberStatus))) + && ((this.authorEmail == other.authorEmail) || (this.authorEmail.equals(other.authorEmail))) + && ((this.fileType == other.fileType) || (this.fileType.equals(other.fileType))) + && (this.size == other.size) + && ((this.contentHash == other.contentHash) || (this.contentHash.equals(other.contentHash))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldHeldRevisionMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_filename"); + StoneSerializers.string().serialize(value.newFilename, g); + g.writeFieldName("original_revision_id"); + StoneSerializers.string().serialize(value.originalRevisionId, g); + g.writeFieldName("original_file_path"); + StoneSerializers.string().serialize(value.originalFilePath, g); + g.writeFieldName("server_modified"); + StoneSerializers.timestamp().serialize(value.serverModified, g); + g.writeFieldName("author_member_id"); + StoneSerializers.string().serialize(value.authorMemberId, g); + g.writeFieldName("author_member_status"); + TeamMemberStatus.Serializer.INSTANCE.serialize(value.authorMemberStatus, g); + g.writeFieldName("author_email"); + StoneSerializers.string().serialize(value.authorEmail, g); + g.writeFieldName("file_type"); + StoneSerializers.string().serialize(value.fileType, g); + g.writeFieldName("size"); + StoneSerializers.uInt64().serialize(value.size, g); + g.writeFieldName("content_hash"); + StoneSerializers.string().serialize(value.contentHash, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldHeldRevisionMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldHeldRevisionMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newFilename = null; + String f_originalRevisionId = null; + String f_originalFilePath = null; + Date f_serverModified = null; + String f_authorMemberId = null; + TeamMemberStatus f_authorMemberStatus = null; + String f_authorEmail = null; + String f_fileType = null; + Long f_size = null; + String f_contentHash = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_filename".equals(field)) { + f_newFilename = StoneSerializers.string().deserialize(p); + } + else if ("original_revision_id".equals(field)) { + f_originalRevisionId = StoneSerializers.string().deserialize(p); + } + else if ("original_file_path".equals(field)) { + f_originalFilePath = StoneSerializers.string().deserialize(p); + } + else if ("server_modified".equals(field)) { + f_serverModified = StoneSerializers.timestamp().deserialize(p); + } + else if ("author_member_id".equals(field)) { + f_authorMemberId = StoneSerializers.string().deserialize(p); + } + else if ("author_member_status".equals(field)) { + f_authorMemberStatus = TeamMemberStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("author_email".equals(field)) { + f_authorEmail = StoneSerializers.string().deserialize(p); + } + else if ("file_type".equals(field)) { + f_fileType = StoneSerializers.string().deserialize(p); + } + else if ("size".equals(field)) { + f_size = StoneSerializers.uInt64().deserialize(p); + } + else if ("content_hash".equals(field)) { + f_contentHash = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newFilename == null) { + throw new JsonParseException(p, "Required field \"new_filename\" missing."); + } + if (f_originalRevisionId == null) { + throw new JsonParseException(p, "Required field \"original_revision_id\" missing."); + } + if (f_originalFilePath == null) { + throw new JsonParseException(p, "Required field \"original_file_path\" missing."); + } + if (f_serverModified == null) { + throw new JsonParseException(p, "Required field \"server_modified\" missing."); + } + if (f_authorMemberId == null) { + throw new JsonParseException(p, "Required field \"author_member_id\" missing."); + } + if (f_authorMemberStatus == null) { + throw new JsonParseException(p, "Required field \"author_member_status\" missing."); + } + if (f_authorEmail == null) { + throw new JsonParseException(p, "Required field \"author_email\" missing."); + } + if (f_fileType == null) { + throw new JsonParseException(p, "Required field \"file_type\" missing."); + } + if (f_size == null) { + throw new JsonParseException(p, "Required field \"size\" missing."); + } + if (f_contentHash == null) { + throw new JsonParseException(p, "Required field \"content_hash\" missing."); + } + value = new LegalHoldHeldRevisionMetadata(f_newFilename, f_originalRevisionId, f_originalFilePath, f_serverModified, f_authorMemberId, f_authorMemberStatus, f_authorEmail, f_fileType, f_size, f_contentHash); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldPolicy.java new file mode 100644 index 000000000..5895e57c1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldPolicy.java @@ -0,0 +1,501 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class LegalHoldPolicy { + // struct team.LegalHoldPolicy (team_legal_holds.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final String name; + @Nullable + protected final String description; + @Nullable + protected final Date activationTime; + @Nonnull + protected final MembersInfo members; + @Nonnull + protected final LegalHoldStatus status; + @Nonnull + protected final Date startDate; + @Nullable + protected final Date endDate; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param id The legal hold id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members Team members IDs and number of permanently deleted + * members under hold. Must not be {@code null}. + * @param status The current state of the hold. Must not be {@code null}. + * @param startDate Start date of the legal hold policy. Must not be {@code + * null}. + * @param description A description of the legal hold policy. Must have + * length of at most 501. + * @param activationTime The time at which the legal hold was activated. + * @param endDate End date of the legal hold policy. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldPolicy(@Nonnull String id, @Nonnull String name, @Nonnull MembersInfo members, @Nonnull LegalHoldStatus status, @Nonnull Date startDate, @Nullable String description, @Nullable Date activationTime, @Nullable Date endDate) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + if (name.length() > 140) { + throw new IllegalArgumentException("String 'name' is longer than 140"); + } + this.name = name; + if (description != null) { + if (description.length() > 501) { + throw new IllegalArgumentException("String 'description' is longer than 501"); + } + } + this.description = description; + this.activationTime = LangUtil.truncateMillis(activationTime); + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + this.members = members; + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param id The legal hold id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members Team members IDs and number of permanently deleted + * members under hold. Must not be {@code null}. + * @param status The current state of the hold. Must not be {@code null}. + * @param startDate Start date of the legal hold policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldPolicy(@Nonnull String id, @Nonnull String name, @Nonnull MembersInfo members, @Nonnull LegalHoldStatus status, @Nonnull Date startDate) { + this(id, name, members, status, startDate, null, null, null); + } + + /** + * The legal hold id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Team members IDs and number of permanently deleted members under hold. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MembersInfo getMembers() { + return members; + } + + /** + * The current state of the hold. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LegalHoldStatus getStatus() { + return status; + } + + /** + * Start date of the legal hold policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getStartDate() { + return startDate; + } + + /** + * A description of the legal hold policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDescription() { + return description; + } + + /** + * The time at which the legal hold was activated. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getActivationTime() { + return activationTime; + } + + /** + * End date of the legal hold policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getEndDate() { + return endDate; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param id The legal hold id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members Team members IDs and number of permanently deleted + * members under hold. Must not be {@code null}. + * @param status The current state of the hold. Must not be {@code null}. + * @param startDate Start date of the legal hold policy. Must not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate) { + return new Builder(id, name, members, status, startDate); + } + + /** + * Builder for {@link LegalHoldPolicy}. + */ + public static class Builder { + protected final String id; + protected final String name; + protected final MembersInfo members; + protected final LegalHoldStatus status; + protected final Date startDate; + + protected String description; + protected Date activationTime; + protected Date endDate; + + protected Builder(String id, String name, MembersInfo members, LegalHoldStatus status, Date startDate) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + if (name.length() > 140) { + throw new IllegalArgumentException("String 'name' is longer than 140"); + } + this.name = name; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + this.members = members; + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + this.description = null; + this.activationTime = null; + this.endDate = null; + } + + /** + * Set value for optional field. + * + * @param description A description of the legal hold policy. Must have + * length of at most 501. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDescription(String description) { + if (description != null) { + if (description.length() > 501) { + throw new IllegalArgumentException("String 'description' is longer than 501"); + } + } + this.description = description; + return this; + } + + /** + * Set value for optional field. + * + * @param activationTime The time at which the legal hold was + * activated. + * + * @return this builder + */ + public Builder withActivationTime(Date activationTime) { + this.activationTime = LangUtil.truncateMillis(activationTime); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate End date of the legal hold policy. + * + * @return this builder + */ + public Builder withEndDate(Date endDate) { + this.endDate = LangUtil.truncateMillis(endDate); + return this; + } + + /** + * Builds an instance of {@link LegalHoldPolicy} configured with this + * builder's values + * + * @return new instance of {@link LegalHoldPolicy} + */ + public LegalHoldPolicy build() { + return new LegalHoldPolicy(id, name, members, status, startDate, description, activationTime, endDate); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.name, + this.description, + this.activationTime, + this.members, + this.status, + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldPolicy other = (LegalHoldPolicy) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.members == other.members) || (this.members.equals(other.members))) + && ((this.status == other.status) || (this.status.equals(other.status))) + && ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.description == other.description) || (this.description != null && this.description.equals(other.description))) + && ((this.activationTime == other.activationTime) || (this.activationTime != null && this.activationTime.equals(other.activationTime))) + && ((this.endDate == other.endDate) || (this.endDate != null && this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldPolicy value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("members"); + MembersInfo.Serializer.INSTANCE.serialize(value.members, g); + g.writeFieldName("status"); + LegalHoldStatus.Serializer.INSTANCE.serialize(value.status, g); + g.writeFieldName("start_date"); + StoneSerializers.timestamp().serialize(value.startDate, g); + if (value.description != null) { + g.writeFieldName("description"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.description, g); + } + if (value.activationTime != null) { + g.writeFieldName("activation_time"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.activationTime, g); + } + if (value.endDate != null) { + g.writeFieldName("end_date"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.endDate, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldPolicy deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldPolicy value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_name = null; + MembersInfo f_members = null; + LegalHoldStatus f_status = null; + Date f_startDate = null; + String f_description = null; + Date f_activationTime = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("members".equals(field)) { + f_members = MembersInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("status".equals(field)) { + f_status = LegalHoldStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("start_date".equals(field)) { + f_startDate = StoneSerializers.timestamp().deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("activation_time".equals(field)) { + f_activationTime = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + if (f_status == null) { + throw new JsonParseException(p, "Required field \"status\" missing."); + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + value = new LegalHoldPolicy(f_id, f_name, f_members, f_status, f_startDate, f_description, f_activationTime, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldStatus.java new file mode 100644 index 000000000..6dfa46350 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldStatus.java @@ -0,0 +1,139 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LegalHoldStatus { + // union team.LegalHoldStatus (team_legal_holds.stone) + /** + * The legal hold policy is active. + */ + ACTIVE, + /** + * The legal hold policy was released. + */ + RELEASED, + /** + * The legal hold policy is activating. + */ + ACTIVATING, + /** + * The legal hold policy is updating. + */ + UPDATING, + /** + * The legal hold policy is exporting. + */ + EXPORTING, + /** + * The legal hold policy is releasing. + */ + RELEASING, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACTIVE: { + g.writeString("active"); + break; + } + case RELEASED: { + g.writeString("released"); + break; + } + case ACTIVATING: { + g.writeString("activating"); + break; + } + case UPDATING: { + g.writeString("updating"); + break; + } + case EXPORTING: { + g.writeString("exporting"); + break; + } + case RELEASING: { + g.writeString("releasing"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LegalHoldStatus deserialize(JsonParser p) throws IOException, JsonParseException { + LegalHoldStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("active".equals(tag)) { + value = LegalHoldStatus.ACTIVE; + } + else if ("released".equals(tag)) { + value = LegalHoldStatus.RELEASED; + } + else if ("activating".equals(tag)) { + value = LegalHoldStatus.ACTIVATING; + } + else if ("updating".equals(tag)) { + value = LegalHoldStatus.UPDATING; + } + else if ("exporting".equals(tag)) { + value = LegalHoldStatus.EXPORTING; + } + else if ("releasing".equals(tag)) { + value = LegalHoldStatus.RELEASING; + } + else { + value = LegalHoldStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder.java new file mode 100644 index 000000000..af19cad63 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsCreatePolicyBuilder.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#legalHoldsCreatePolicyBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class LegalHoldsCreatePolicyBuilder { + private final DbxTeamTeamRequests _client; + private final LegalHoldsPolicyCreateArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + LegalHoldsCreatePolicyBuilder(DbxTeamTeamRequests _client, LegalHoldsPolicyCreateArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param description A description of the legal hold policy. Must have + * length of at most 501. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsCreatePolicyBuilder withDescription(String description) { + this._builder.withDescription(description); + return this; + } + + /** + * Set value for optional field. + * + * @param startDate start date of the legal hold policy. + * + * @return this builder + */ + public LegalHoldsCreatePolicyBuilder withStartDate(Date startDate) { + this._builder.withStartDate(startDate); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate end date of the legal hold policy. + * + * @return this builder + */ + public LegalHoldsCreatePolicyBuilder withEndDate(Date endDate) { + this._builder.withEndDate(endDate); + return this; + } + + /** + * Issues the request. + */ + public LegalHoldPolicy start() throws LegalHoldsPolicyCreateErrorException, DbxException { + LegalHoldsPolicyCreateArg arg_ = this._builder.build(); + return _client.legalHoldsCreatePolicy(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyArg.java new file mode 100644 index 000000000..2b8c1f6a1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class LegalHoldsGetPolicyArg { + // struct team.LegalHoldsGetPolicyArg (team_legal_holds.stone) + + @Nonnull + protected final String id; + + /** + * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsGetPolicyArg(@Nonnull String id) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + } + + /** + * The legal hold Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsGetPolicyArg other = (LegalHoldsGetPolicyArg) obj; + return (this.id == other.id) || (this.id.equals(other.id)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsGetPolicyArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsGetPolicyArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsGetPolicyArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new LegalHoldsGetPolicyArg(f_id); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyError.java new file mode 100644 index 000000000..fb5caf3ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyError.java @@ -0,0 +1,114 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LegalHoldsGetPolicyError { + // union team.LegalHoldsGetPolicyError (team_legal_holds.stone) + /** + * There has been an unknown legal hold error. + */ + UNKNOWN_LEGAL_HOLD_ERROR, + /** + * You don't have permissions to perform this action. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Legal hold policy does not exist for {@link + * LegalHoldsGetPolicyArg#getId}. + */ + LEGAL_HOLD_POLICY_NOT_FOUND; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsGetPolicyError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UNKNOWN_LEGAL_HOLD_ERROR: { + g.writeString("unknown_legal_hold_error"); + break; + } + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case LEGAL_HOLD_POLICY_NOT_FOUND: { + g.writeString("legal_hold_policy_not_found"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public LegalHoldsGetPolicyError deserialize(JsonParser p) throws IOException, JsonParseException { + LegalHoldsGetPolicyError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unknown_legal_hold_error".equals(tag)) { + value = LegalHoldsGetPolicyError.UNKNOWN_LEGAL_HOLD_ERROR; + } + else if ("insufficient_permissions".equals(tag)) { + value = LegalHoldsGetPolicyError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = LegalHoldsGetPolicyError.OTHER; + } + else if ("legal_hold_policy_not_found".equals(tag)) { + value = LegalHoldsGetPolicyError.LEGAL_HOLD_POLICY_NOT_FOUND; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyErrorException.java new file mode 100644 index 000000000..38566f6f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * LegalHoldsGetPolicyError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#legalHoldsGetPolicy(String)}.

+ */ +public class LegalHoldsGetPolicyErrorException extends DbxApiException { + // exception for routes: + // 2/team/legal_holds/get_policy + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#legalHoldsGetPolicy(String)}. + */ + public final LegalHoldsGetPolicyError errorValue; + + public LegalHoldsGetPolicyErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsGetPolicyError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionResult.java new file mode 100644 index 000000000..1a3632d87 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionResult.java @@ -0,0 +1,236 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class LegalHoldsListHeldRevisionResult { + // struct team.LegalHoldsListHeldRevisionResult (team_legal_holds.stone) + + @Nonnull + protected final List entries; + @Nullable + protected final String cursor; + protected final boolean hasMore; + + /** + * + * @param entries List of file entries that under the hold. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore True if there are more file entries that haven't been + * returned. You can retrieve them with a call to + * /legal_holds/list_held_revisions_continue. + * @param cursor The cursor idicates where to continue reading file + * metadata entries for the next API call. When there are no more + * entries, the cursor will return none. Pass the cursor into + * /2/team/legal_holds/list_held_revisions/continue. Must have length of + * at least 1. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionResult(@Nonnull List entries, boolean hasMore, @Nullable String cursor) { + if (entries == null) { + throw new IllegalArgumentException("Required value for 'entries' is null"); + } + for (LegalHoldHeldRevisionMetadata x : entries) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'entries' is null"); + } + } + this.entries = entries; + if (cursor != null) { + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param entries List of file entries that under the hold. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore True if there are more file entries that haven't been + * returned. You can retrieve them with a call to + * /legal_holds/list_held_revisions_continue. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionResult(@Nonnull List entries, boolean hasMore) { + this(entries, hasMore, null); + } + + /** + * List of file entries that under the hold. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEntries() { + return entries; + } + + /** + * True if there are more file entries that haven't been returned. You can + * retrieve them with a call to /legal_holds/list_held_revisions_continue. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * The cursor idicates where to continue reading file metadata entries for + * the next API call. When there are no more entries, the cursor will return + * none. Pass the cursor into + * /2/team/legal_holds/list_held_revisions/continue. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.entries, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsListHeldRevisionResult other = (LegalHoldsListHeldRevisionResult) obj; + return ((this.entries == other.entries) || (this.entries.equals(other.entries))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsListHeldRevisionResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("entries"); + StoneSerializers.list(LegalHoldHeldRevisionMetadata.Serializer.INSTANCE).serialize(value.entries, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsListHeldRevisionResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsListHeldRevisionResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_entries = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("entries".equals(field)) { + f_entries = StoneSerializers.list(LegalHoldHeldRevisionMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_entries == null) { + throw new JsonParseException(p, "Required field \"entries\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new LegalHoldsListHeldRevisionResult(f_entries, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsArg.java new file mode 100644 index 000000000..673241504 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class LegalHoldsListHeldRevisionsArg { + // struct team.LegalHoldsListHeldRevisionsArg (team_legal_holds.stone) + + @Nonnull + protected final String id; + + /** + * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionsArg(@Nonnull String id) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + } + + /** + * The legal hold Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsListHeldRevisionsArg other = (LegalHoldsListHeldRevisionsArg) obj; + return (this.id == other.id) || (this.id.equals(other.id)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsListHeldRevisionsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsListHeldRevisionsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsListHeldRevisionsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new LegalHoldsListHeldRevisionsArg(f_id); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsContinueArg.java new file mode 100644 index 000000000..a44e71ba6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsContinueArg.java @@ -0,0 +1,202 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class LegalHoldsListHeldRevisionsContinueArg { + // struct team.LegalHoldsListHeldRevisionsContinueArg (team_legal_holds.stone) + + @Nonnull + protected final String id; + @Nullable + protected final String cursor; + + /** + * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * @param cursor The cursor idicates where to continue reading file + * metadata entries for the next API call. When there are no more + * entries, the cursor will return none. Must have length of at least 1. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionsContinueArg(@Nonnull String id, @Nullable String cursor) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (cursor != null) { + if (cursor.length() < 1) { + throw new IllegalArgumentException("String 'cursor' is shorter than 1"); + } + } + this.cursor = cursor; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListHeldRevisionsContinueArg(@Nonnull String id) { + this(id, null); + } + + /** + * The legal hold Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The cursor idicates where to continue reading file metadata entries for + * the next API call. When there are no more entries, the cursor will return + * none. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsListHeldRevisionsContinueArg other = (LegalHoldsListHeldRevisionsContinueArg) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsListHeldRevisionsContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsListHeldRevisionsContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsListHeldRevisionsContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new LegalHoldsListHeldRevisionsContinueArg(f_id, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError.java new file mode 100644 index 000000000..f8576cabd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsError.java @@ -0,0 +1,135 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LegalHoldsListHeldRevisionsError { + // union team.LegalHoldsListHeldRevisionsError (team_legal_holds.stone) + /** + * There has been an unknown legal hold error. + */ + UNKNOWN_LEGAL_HOLD_ERROR, + /** + * You don't have permissions to perform this action. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Temporary infrastructure failure, please retry. + */ + TRANSIENT_ERROR, + /** + * The legal hold is not holding any revisions yet. + */ + LEGAL_HOLD_STILL_EMPTY, + /** + * Trying to list revisions for an inactive legal hold. + */ + INACTIVE_LEGAL_HOLD; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsListHeldRevisionsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UNKNOWN_LEGAL_HOLD_ERROR: { + g.writeString("unknown_legal_hold_error"); + break; + } + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case TRANSIENT_ERROR: { + g.writeString("transient_error"); + break; + } + case LEGAL_HOLD_STILL_EMPTY: { + g.writeString("legal_hold_still_empty"); + break; + } + case INACTIVE_LEGAL_HOLD: { + g.writeString("inactive_legal_hold"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public LegalHoldsListHeldRevisionsError deserialize(JsonParser p) throws IOException, JsonParseException { + LegalHoldsListHeldRevisionsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unknown_legal_hold_error".equals(tag)) { + value = LegalHoldsListHeldRevisionsError.UNKNOWN_LEGAL_HOLD_ERROR; + } + else if ("insufficient_permissions".equals(tag)) { + value = LegalHoldsListHeldRevisionsError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = LegalHoldsListHeldRevisionsError.OTHER; + } + else if ("transient_error".equals(tag)) { + value = LegalHoldsListHeldRevisionsError.TRANSIENT_ERROR; + } + else if ("legal_hold_still_empty".equals(tag)) { + value = LegalHoldsListHeldRevisionsError.LEGAL_HOLD_STILL_EMPTY; + } + else if ("inactive_legal_hold".equals(tag)) { + value = LegalHoldsListHeldRevisionsError.INACTIVE_LEGAL_HOLD; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsErrorException.java new file mode 100644 index 000000000..2133326a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListHeldRevisionsErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * LegalHoldsListHeldRevisionsError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#legalHoldsListHeldRevisions(String)} and {@link + * DbxTeamTeamRequests#legalHoldsListHeldRevisionsContinue(String,String)}.

+ */ +public class LegalHoldsListHeldRevisionsErrorException extends DbxApiException { + // exception for routes: + // 2/team/legal_holds/list_held_revisions + // 2/team/legal_holds/list_held_revisions_continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#legalHoldsListHeldRevisions(String)} and {@link + * DbxTeamTeamRequests#legalHoldsListHeldRevisionsContinue(String,String)}. + */ + public final LegalHoldsListHeldRevisionsError errorValue; + + public LegalHoldsListHeldRevisionsErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsListHeldRevisionsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesArg.java new file mode 100644 index 000000000..d8eda51cb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesArg.java @@ -0,0 +1,144 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class LegalHoldsListPoliciesArg { + // struct team.LegalHoldsListPoliciesArg (team_legal_holds.stone) + + protected final boolean includeReleased; + + /** + * + * @param includeReleased Whether to return holds that were released. + */ + public LegalHoldsListPoliciesArg(boolean includeReleased) { + this.includeReleased = includeReleased; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public LegalHoldsListPoliciesArg() { + this(false); + } + + /** + * Whether to return holds that were released. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeReleased() { + return includeReleased; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.includeReleased + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsListPoliciesArg other = (LegalHoldsListPoliciesArg) obj; + return this.includeReleased == other.includeReleased; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsListPoliciesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("include_released"); + StoneSerializers.boolean_().serialize(value.includeReleased, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsListPoliciesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsListPoliciesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_includeReleased = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("include_released".equals(field)) { + f_includeReleased = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + value = new LegalHoldsListPoliciesArg(f_includeReleased); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesError.java new file mode 100644 index 000000000..959d000bf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesError.java @@ -0,0 +1,113 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LegalHoldsListPoliciesError { + // union team.LegalHoldsListPoliciesError (team_legal_holds.stone) + /** + * There has been an unknown legal hold error. + */ + UNKNOWN_LEGAL_HOLD_ERROR, + /** + * You don't have permissions to perform this action. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Temporary infrastructure failure, please retry. + */ + TRANSIENT_ERROR; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsListPoliciesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UNKNOWN_LEGAL_HOLD_ERROR: { + g.writeString("unknown_legal_hold_error"); + break; + } + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case TRANSIENT_ERROR: { + g.writeString("transient_error"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public LegalHoldsListPoliciesError deserialize(JsonParser p) throws IOException, JsonParseException { + LegalHoldsListPoliciesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unknown_legal_hold_error".equals(tag)) { + value = LegalHoldsListPoliciesError.UNKNOWN_LEGAL_HOLD_ERROR; + } + else if ("insufficient_permissions".equals(tag)) { + value = LegalHoldsListPoliciesError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = LegalHoldsListPoliciesError.OTHER; + } + else if ("transient_error".equals(tag)) { + value = LegalHoldsListPoliciesError.TRANSIENT_ERROR; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesErrorException.java new file mode 100644 index 000000000..8f54ccc28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * LegalHoldsListPoliciesError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#legalHoldsListPolicies(boolean)}.

+ */ +public class LegalHoldsListPoliciesErrorException extends DbxApiException { + // exception for routes: + // 2/team/legal_holds/list_policies + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#legalHoldsListPolicies(boolean)}. + */ + public final LegalHoldsListPoliciesError errorValue; + + public LegalHoldsListPoliciesErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsListPoliciesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesResult.java new file mode 100644 index 000000000..5166592f2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesResult.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class LegalHoldsListPoliciesResult { + // struct team.LegalHoldsListPoliciesResult (team_legal_holds.stone) + + @Nonnull + protected final List policies; + + /** + * + * @param policies Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsListPoliciesResult(@Nonnull List policies) { + if (policies == null) { + throw new IllegalArgumentException("Required value for 'policies' is null"); + } + for (LegalHoldPolicy x : policies) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'policies' is null"); + } + } + this.policies = policies; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPolicies() { + return policies; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.policies + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsListPoliciesResult other = (LegalHoldsListPoliciesResult) obj; + return (this.policies == other.policies) || (this.policies.equals(other.policies)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsListPoliciesResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("policies"); + StoneSerializers.list(LegalHoldPolicy.Serializer.INSTANCE).serialize(value.policies, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsListPoliciesResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsListPoliciesResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_policies = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("policies".equals(field)) { + f_policies = StoneSerializers.list(LegalHoldPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_policies == null) { + throw new JsonParseException(p, "Required field \"policies\" missing."); + } + value = new LegalHoldsListPoliciesResult(f_policies); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateArg.java new file mode 100644 index 000000000..1cda28819 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateArg.java @@ -0,0 +1,393 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class LegalHoldsPolicyCreateArg { + // struct team.LegalHoldsPolicyCreateArg (team_legal_holds.stone) + + @Nonnull + protected final String name; + @Nullable + protected final String description; + @Nonnull + protected final List members; + @Nullable + protected final Date startDate; + @Nullable + protected final Date endDate; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members List of team member IDs added to the hold. Must not + * contain a {@code null} item and not be {@code null}. + * @param description A description of the legal hold policy. Must have + * length of at most 501. + * @param startDate start date of the legal hold policy. + * @param endDate end date of the legal hold policy. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsPolicyCreateArg(@Nonnull String name, @Nonnull List members, @Nullable String description, @Nullable Date startDate, @Nullable Date endDate) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + if (name.length() > 140) { + throw new IllegalArgumentException("String 'name' is longer than 140"); + } + this.name = name; + if (description != null) { + if (description.length() > 501) { + throw new IllegalArgumentException("String 'description' is longer than 501"); + } + } + this.description = description; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (String x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.startDate = LangUtil.truncateMillis(startDate); + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members List of team member IDs added to the hold. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsPolicyCreateArg(@Nonnull String name, @Nonnull List members) { + this(name, members, null, null, null); + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * List of team member IDs added to the hold. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * A description of the legal hold policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDescription() { + return description; + } + + /** + * start date of the legal hold policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getStartDate() { + return startDate; + } + + /** + * end date of the legal hold policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getEndDate() { + return endDate; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name Policy name. Must have length of at most 140 and not be + * {@code null}. + * @param members List of team member IDs added to the hold. Must not + * contain a {@code null} item and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name, List members) { + return new Builder(name, members); + } + + /** + * Builder for {@link LegalHoldsPolicyCreateArg}. + */ + public static class Builder { + protected final String name; + protected final List members; + + protected String description; + protected Date startDate; + protected Date endDate; + + protected Builder(String name, List members) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + if (name.length() > 140) { + throw new IllegalArgumentException("String 'name' is longer than 140"); + } + this.name = name; + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (String x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + this.description = null; + this.startDate = null; + this.endDate = null; + } + + /** + * Set value for optional field. + * + * @param description A description of the legal hold policy. Must have + * length of at most 501. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDescription(String description) { + if (description != null) { + if (description.length() > 501) { + throw new IllegalArgumentException("String 'description' is longer than 501"); + } + } + this.description = description; + return this; + } + + /** + * Set value for optional field. + * + * @param startDate start date of the legal hold policy. + * + * @return this builder + */ + public Builder withStartDate(Date startDate) { + this.startDate = LangUtil.truncateMillis(startDate); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate end date of the legal hold policy. + * + * @return this builder + */ + public Builder withEndDate(Date endDate) { + this.endDate = LangUtil.truncateMillis(endDate); + return this; + } + + /** + * Builds an instance of {@link LegalHoldsPolicyCreateArg} configured + * with this builder's values + * + * @return new instance of {@link LegalHoldsPolicyCreateArg} + */ + public LegalHoldsPolicyCreateArg build() { + return new LegalHoldsPolicyCreateArg(name, members, description, startDate, endDate); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.description, + this.members, + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsPolicyCreateArg other = (LegalHoldsPolicyCreateArg) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.members == other.members) || (this.members.equals(other.members))) + && ((this.description == other.description) || (this.description != null && this.description.equals(other.description))) + && ((this.startDate == other.startDate) || (this.startDate != null && this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate != null && this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsPolicyCreateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("members"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.members, g); + if (value.description != null) { + g.writeFieldName("description"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.description, g); + } + if (value.startDate != null) { + g.writeFieldName("start_date"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.startDate, g); + } + if (value.endDate != null) { + g.writeFieldName("end_date"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.endDate, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsPolicyCreateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsPolicyCreateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + List f_members = null; + String f_description = null; + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("members".equals(field)) { + f_members = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("start_date".equals(field)) { + f_startDate = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + value = new LegalHoldsPolicyCreateArg(f_name, f_members, f_description, f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateError.java new file mode 100644 index 000000000..9076175a0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateError.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LegalHoldsPolicyCreateError { + // union team.LegalHoldsPolicyCreateError (team_legal_holds.stone) + /** + * There has been an unknown legal hold error. + */ + UNKNOWN_LEGAL_HOLD_ERROR, + /** + * You don't have permissions to perform this action. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Start date must be earlier than end date. + */ + START_DATE_IS_LATER_THAN_END_DATE, + /** + * The users list must have at least one user. + */ + EMPTY_MEMBERS_LIST, + /** + * Some members in the members list are not valid to be placed under legal + * hold. + */ + INVALID_MEMBERS, + /** + * You cannot add more than 5 users in a legal hold. + */ + NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION, + /** + * Temporary infrastructure failure, please retry. + */ + TRANSIENT_ERROR, + /** + * The name provided is already in use by another legal hold. + */ + NAME_MUST_BE_UNIQUE, + /** + * Team exceeded legal hold quota. + */ + TEAM_EXCEEDED_LEGAL_HOLD_QUOTA, + /** + * The provided date is invalid. + */ + INVALID_DATE; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsPolicyCreateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UNKNOWN_LEGAL_HOLD_ERROR: { + g.writeString("unknown_legal_hold_error"); + break; + } + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case START_DATE_IS_LATER_THAN_END_DATE: { + g.writeString("start_date_is_later_than_end_date"); + break; + } + case EMPTY_MEMBERS_LIST: { + g.writeString("empty_members_list"); + break; + } + case INVALID_MEMBERS: { + g.writeString("invalid_members"); + break; + } + case NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION: { + g.writeString("number_of_users_on_hold_is_greater_than_hold_limitation"); + break; + } + case TRANSIENT_ERROR: { + g.writeString("transient_error"); + break; + } + case NAME_MUST_BE_UNIQUE: { + g.writeString("name_must_be_unique"); + break; + } + case TEAM_EXCEEDED_LEGAL_HOLD_QUOTA: { + g.writeString("team_exceeded_legal_hold_quota"); + break; + } + case INVALID_DATE: { + g.writeString("invalid_date"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public LegalHoldsPolicyCreateError deserialize(JsonParser p) throws IOException, JsonParseException { + LegalHoldsPolicyCreateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unknown_legal_hold_error".equals(tag)) { + value = LegalHoldsPolicyCreateError.UNKNOWN_LEGAL_HOLD_ERROR; + } + else if ("insufficient_permissions".equals(tag)) { + value = LegalHoldsPolicyCreateError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = LegalHoldsPolicyCreateError.OTHER; + } + else if ("start_date_is_later_than_end_date".equals(tag)) { + value = LegalHoldsPolicyCreateError.START_DATE_IS_LATER_THAN_END_DATE; + } + else if ("empty_members_list".equals(tag)) { + value = LegalHoldsPolicyCreateError.EMPTY_MEMBERS_LIST; + } + else if ("invalid_members".equals(tag)) { + value = LegalHoldsPolicyCreateError.INVALID_MEMBERS; + } + else if ("number_of_users_on_hold_is_greater_than_hold_limitation".equals(tag)) { + value = LegalHoldsPolicyCreateError.NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION; + } + else if ("transient_error".equals(tag)) { + value = LegalHoldsPolicyCreateError.TRANSIENT_ERROR; + } + else if ("name_must_be_unique".equals(tag)) { + value = LegalHoldsPolicyCreateError.NAME_MUST_BE_UNIQUE; + } + else if ("team_exceeded_legal_hold_quota".equals(tag)) { + value = LegalHoldsPolicyCreateError.TEAM_EXCEEDED_LEGAL_HOLD_QUOTA; + } + else if ("invalid_date".equals(tag)) { + value = LegalHoldsPolicyCreateError.INVALID_DATE; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateErrorException.java new file mode 100644 index 000000000..e50cc2aa6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyCreateErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * LegalHoldsPolicyCreateError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#legalHoldsCreatePolicy(String,java.util.List)}.

+ */ +public class LegalHoldsPolicyCreateErrorException extends DbxApiException { + // exception for routes: + // 2/team/legal_holds/create_policy + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#legalHoldsCreatePolicy(String,java.util.List)}. + */ + public final LegalHoldsPolicyCreateError errorValue; + + public LegalHoldsPolicyCreateErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsPolicyCreateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseArg.java new file mode 100644 index 000000000..fec03f4d3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class LegalHoldsPolicyReleaseArg { + // struct team.LegalHoldsPolicyReleaseArg (team_legal_holds.stone) + + @Nonnull + protected final String id; + + /** + * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsPolicyReleaseArg(@Nonnull String id) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + } + + /** + * The legal hold Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsPolicyReleaseArg other = (LegalHoldsPolicyReleaseArg) obj; + return (this.id == other.id) || (this.id.equals(other.id)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsPolicyReleaseArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsPolicyReleaseArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsPolicyReleaseArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new LegalHoldsPolicyReleaseArg(f_id); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseError.java new file mode 100644 index 000000000..df72fc7d9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseError.java @@ -0,0 +1,136 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LegalHoldsPolicyReleaseError { + // union team.LegalHoldsPolicyReleaseError (team_legal_holds.stone) + /** + * There has been an unknown legal hold error. + */ + UNKNOWN_LEGAL_HOLD_ERROR, + /** + * You don't have permissions to perform this action. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Legal hold is currently performing another operation. + */ + LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION, + /** + * Legal hold is currently performing a release or is already released. + */ + LEGAL_HOLD_ALREADY_RELEASING, + /** + * Legal hold policy does not exist for {@link + * LegalHoldsPolicyReleaseArg#getId}. + */ + LEGAL_HOLD_POLICY_NOT_FOUND; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsPolicyReleaseError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UNKNOWN_LEGAL_HOLD_ERROR: { + g.writeString("unknown_legal_hold_error"); + break; + } + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION: { + g.writeString("legal_hold_performing_another_operation"); + break; + } + case LEGAL_HOLD_ALREADY_RELEASING: { + g.writeString("legal_hold_already_releasing"); + break; + } + case LEGAL_HOLD_POLICY_NOT_FOUND: { + g.writeString("legal_hold_policy_not_found"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public LegalHoldsPolicyReleaseError deserialize(JsonParser p) throws IOException, JsonParseException { + LegalHoldsPolicyReleaseError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unknown_legal_hold_error".equals(tag)) { + value = LegalHoldsPolicyReleaseError.UNKNOWN_LEGAL_HOLD_ERROR; + } + else if ("insufficient_permissions".equals(tag)) { + value = LegalHoldsPolicyReleaseError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = LegalHoldsPolicyReleaseError.OTHER; + } + else if ("legal_hold_performing_another_operation".equals(tag)) { + value = LegalHoldsPolicyReleaseError.LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION; + } + else if ("legal_hold_already_releasing".equals(tag)) { + value = LegalHoldsPolicyReleaseError.LEGAL_HOLD_ALREADY_RELEASING; + } + else if ("legal_hold_policy_not_found".equals(tag)) { + value = LegalHoldsPolicyReleaseError.LEGAL_HOLD_POLICY_NOT_FOUND; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseErrorException.java new file mode 100644 index 000000000..8a73589f8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * LegalHoldsPolicyReleaseError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#legalHoldsReleasePolicy(String)}.

+ */ +public class LegalHoldsPolicyReleaseErrorException extends DbxApiException { + // exception for routes: + // 2/team/legal_holds/release_policy + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#legalHoldsReleasePolicy(String)}. + */ + public final LegalHoldsPolicyReleaseError errorValue; + + public LegalHoldsPolicyReleaseErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsPolicyReleaseError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateArg.java new file mode 100644 index 000000000..c64c946a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateArg.java @@ -0,0 +1,376 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class LegalHoldsPolicyUpdateArg { + // struct team.LegalHoldsPolicyUpdateArg (team_legal_holds.stone) + + @Nonnull + protected final String id; + @Nullable + protected final String name; + @Nullable + protected final String description; + @Nullable + protected final List members; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * @param name Policy new name. Must have length of at most 140. + * @param description Policy new description. Must have length of at most + * 501. + * @param members List of team member IDs to apply the policy on. Must not + * contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsPolicyUpdateArg(@Nonnull String id, @Nullable String name, @Nullable String description, @Nullable List members) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + if (name != null) { + if (name.length() > 140) { + throw new IllegalArgumentException("String 'name' is longer than 140"); + } + } + this.name = name; + if (description != null) { + if (description.length() > 501) { + throw new IllegalArgumentException("String 'description' is longer than 501"); + } + } + this.description = description; + if (members != null) { + for (String x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + } + this.members = members; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsPolicyUpdateArg(@Nonnull String id) { + this(id, null, null, null); + } + + /** + * The legal hold Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * Policy new name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getName() { + return name; + } + + /** + * Policy new description. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDescription() { + return description; + } + + /** + * List of team member IDs to apply the policy on. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getMembers() { + return members; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param id The legal hold Id. Must match pattern "{@code ^pid_dbhid:.+}" + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String id) { + return new Builder(id); + } + + /** + * Builder for {@link LegalHoldsPolicyUpdateArg}. + */ + public static class Builder { + protected final String id; + + protected String name; + protected String description; + protected List members; + + protected Builder(String id) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + if (!Pattern.matches("^pid_dbhid:.+", id)) { + throw new IllegalArgumentException("String 'id' does not match pattern"); + } + this.id = id; + this.name = null; + this.description = null; + this.members = null; + } + + /** + * Set value for optional field. + * + * @param name Policy new name. Must have length of at most 140. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withName(String name) { + if (name != null) { + if (name.length() > 140) { + throw new IllegalArgumentException("String 'name' is longer than 140"); + } + } + this.name = name; + return this; + } + + /** + * Set value for optional field. + * + * @param description Policy new description. Must have length of at + * most 501. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDescription(String description) { + if (description != null) { + if (description.length() > 501) { + throw new IllegalArgumentException("String 'description' is longer than 501"); + } + } + this.description = description; + return this; + } + + /** + * Set value for optional field. + * + * @param members List of team member IDs to apply the policy on. Must + * not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMembers(List members) { + if (members != null) { + for (String x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + } + this.members = members; + return this; + } + + /** + * Builds an instance of {@link LegalHoldsPolicyUpdateArg} configured + * with this builder's values + * + * @return new instance of {@link LegalHoldsPolicyUpdateArg} + */ + public LegalHoldsPolicyUpdateArg build() { + return new LegalHoldsPolicyUpdateArg(id, name, description, members); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.name, + this.description, + this.members + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsPolicyUpdateArg other = (LegalHoldsPolicyUpdateArg) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.name == other.name) || (this.name != null && this.name.equals(other.name))) + && ((this.description == other.description) || (this.description != null && this.description.equals(other.description))) + && ((this.members == other.members) || (this.members != null && this.members.equals(other.members))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsPolicyUpdateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + if (value.name != null) { + g.writeFieldName("name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.name, g); + } + if (value.description != null) { + g.writeFieldName("description"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.description, g); + } + if (value.members != null) { + g.writeFieldName("members"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.members, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsPolicyUpdateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsPolicyUpdateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_name = null; + String f_description = null; + List f_members = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("members".equals(field)) { + f_members = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + value = new LegalHoldsPolicyUpdateArg(f_id, f_name, f_description, f_members); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateError.java new file mode 100644 index 000000000..b43d279a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateError.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LegalHoldsPolicyUpdateError { + // union team.LegalHoldsPolicyUpdateError (team_legal_holds.stone) + /** + * There has been an unknown legal hold error. + */ + UNKNOWN_LEGAL_HOLD_ERROR, + /** + * You don't have permissions to perform this action. + */ + INSUFFICIENT_PERMISSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Temporary infrastructure failure, please retry. + */ + TRANSIENT_ERROR, + /** + * Trying to release an inactive legal hold. + */ + INACTIVE_LEGAL_HOLD, + /** + * Legal hold is currently performing another operation. + */ + LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION, + /** + * Some members in the members list are not valid to be placed under legal + * hold. + */ + INVALID_MEMBERS, + /** + * You cannot add more than 5 users in a legal hold. + */ + NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION, + /** + * The users list must have at least one user. + */ + EMPTY_MEMBERS_LIST, + /** + * The name provided is already in use by another legal hold. + */ + NAME_MUST_BE_UNIQUE, + /** + * Legal hold policy does not exist for {@link + * LegalHoldsPolicyUpdateArg#getId}. + */ + LEGAL_HOLD_POLICY_NOT_FOUND; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsPolicyUpdateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UNKNOWN_LEGAL_HOLD_ERROR: { + g.writeString("unknown_legal_hold_error"); + break; + } + case INSUFFICIENT_PERMISSIONS: { + g.writeString("insufficient_permissions"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case TRANSIENT_ERROR: { + g.writeString("transient_error"); + break; + } + case INACTIVE_LEGAL_HOLD: { + g.writeString("inactive_legal_hold"); + break; + } + case LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION: { + g.writeString("legal_hold_performing_another_operation"); + break; + } + case INVALID_MEMBERS: { + g.writeString("invalid_members"); + break; + } + case NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION: { + g.writeString("number_of_users_on_hold_is_greater_than_hold_limitation"); + break; + } + case EMPTY_MEMBERS_LIST: { + g.writeString("empty_members_list"); + break; + } + case NAME_MUST_BE_UNIQUE: { + g.writeString("name_must_be_unique"); + break; + } + case LEGAL_HOLD_POLICY_NOT_FOUND: { + g.writeString("legal_hold_policy_not_found"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public LegalHoldsPolicyUpdateError deserialize(JsonParser p) throws IOException, JsonParseException { + LegalHoldsPolicyUpdateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unknown_legal_hold_error".equals(tag)) { + value = LegalHoldsPolicyUpdateError.UNKNOWN_LEGAL_HOLD_ERROR; + } + else if ("insufficient_permissions".equals(tag)) { + value = LegalHoldsPolicyUpdateError.INSUFFICIENT_PERMISSIONS; + } + else if ("other".equals(tag)) { + value = LegalHoldsPolicyUpdateError.OTHER; + } + else if ("transient_error".equals(tag)) { + value = LegalHoldsPolicyUpdateError.TRANSIENT_ERROR; + } + else if ("inactive_legal_hold".equals(tag)) { + value = LegalHoldsPolicyUpdateError.INACTIVE_LEGAL_HOLD; + } + else if ("legal_hold_performing_another_operation".equals(tag)) { + value = LegalHoldsPolicyUpdateError.LEGAL_HOLD_PERFORMING_ANOTHER_OPERATION; + } + else if ("invalid_members".equals(tag)) { + value = LegalHoldsPolicyUpdateError.INVALID_MEMBERS; + } + else if ("number_of_users_on_hold_is_greater_than_hold_limitation".equals(tag)) { + value = LegalHoldsPolicyUpdateError.NUMBER_OF_USERS_ON_HOLD_IS_GREATER_THAN_HOLD_LIMITATION; + } + else if ("empty_members_list".equals(tag)) { + value = LegalHoldsPolicyUpdateError.EMPTY_MEMBERS_LIST; + } + else if ("name_must_be_unique".equals(tag)) { + value = LegalHoldsPolicyUpdateError.NAME_MUST_BE_UNIQUE; + } + else if ("legal_hold_policy_not_found".equals(tag)) { + value = LegalHoldsPolicyUpdateError.LEGAL_HOLD_POLICY_NOT_FOUND; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateErrorException.java new file mode 100644 index 000000000..7483ac6fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * LegalHoldsPolicyUpdateError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#legalHoldsUpdatePolicy(String)}.

+ */ +public class LegalHoldsPolicyUpdateErrorException extends DbxApiException { + // exception for routes: + // 2/team/legal_holds/update_policy + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#legalHoldsUpdatePolicy(String)}. + */ + public final LegalHoldsPolicyUpdateError errorValue; + + public LegalHoldsPolicyUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsPolicyUpdateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder.java new file mode 100644 index 000000000..4ccbd5cf4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsUpdatePolicyBuilder.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#legalHoldsUpdatePolicyBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class LegalHoldsUpdatePolicyBuilder { + private final DbxTeamTeamRequests _client; + private final LegalHoldsPolicyUpdateArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + LegalHoldsUpdatePolicyBuilder(DbxTeamTeamRequests _client, LegalHoldsPolicyUpdateArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param name Policy new name. Must have length of at most 140. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsUpdatePolicyBuilder withName(String name) { + this._builder.withName(name); + return this; + } + + /** + * Set value for optional field. + * + * @param description Policy new description. Must have length of at most + * 501. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsUpdatePolicyBuilder withDescription(String description) { + this._builder.withDescription(description); + return this; + } + + /** + * Set value for optional field. + * + * @param members List of team member IDs to apply the policy on. Must not + * contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsUpdatePolicyBuilder withMembers(List members) { + this._builder.withMembers(members); + return this; + } + + /** + * Issues the request. + */ + public LegalHoldPolicy start() throws LegalHoldsPolicyUpdateErrorException, DbxException { + LegalHoldsPolicyUpdateArg arg_ = this._builder.build(); + return _client.legalHoldsUpdatePolicy(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsArg.java new file mode 100644 index 000000000..38c418292 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsArg.java @@ -0,0 +1,147 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListMemberAppsArg { + // struct team.ListMemberAppsArg (team_linked_apps.stone) + + @Nonnull + protected final String teamMemberId; + + /** + * + * @param teamMemberId The team member id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMemberAppsArg(@Nonnull String teamMemberId) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + } + + /** + * The team member id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMemberAppsArg other = (ListMemberAppsArg) obj; + return (this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMemberAppsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMemberAppsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMemberAppsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + value = new ListMemberAppsArg(f_teamMemberId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsError.java new file mode 100644 index 000000000..0e01b93ef --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsError.java @@ -0,0 +1,88 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned by {@link + * DbxTeamTeamRequests#linkedAppsListMemberLinkedApps(String)}. + */ +public enum ListMemberAppsError { + // union team.ListMemberAppsError (team_linked_apps.stone) + /** + * Member not found. + */ + MEMBER_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMemberAppsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case MEMBER_NOT_FOUND: { + g.writeString("member_not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListMemberAppsError deserialize(JsonParser p) throws IOException, JsonParseException { + ListMemberAppsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("member_not_found".equals(tag)) { + value = ListMemberAppsError.MEMBER_NOT_FOUND; + } + else { + value = ListMemberAppsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsErrorException.java new file mode 100644 index 000000000..756665462 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListMemberAppsError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#linkedAppsListMemberLinkedApps(String)}.

+ */ +public class ListMemberAppsErrorException extends DbxApiException { + // exception for routes: + // 2/team/linked_apps/list_member_linked_apps + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#linkedAppsListMemberLinkedApps(String)}. + */ + public final ListMemberAppsError errorValue; + + public ListMemberAppsErrorException(String routeName, String requestId, LocalizedText userMessage, ListMemberAppsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsResult.java new file mode 100644 index 000000000..0e7982883 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsResult.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class ListMemberAppsResult { + // struct team.ListMemberAppsResult (team_linked_apps.stone) + + @Nonnull + protected final List linkedApiApps; + + /** + * + * @param linkedApiApps List of third party applications linked by this + * team member. Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMemberAppsResult(@Nonnull List linkedApiApps) { + if (linkedApiApps == null) { + throw new IllegalArgumentException("Required value for 'linkedApiApps' is null"); + } + for (ApiApp x : linkedApiApps) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedApiApps' is null"); + } + } + this.linkedApiApps = linkedApiApps; + } + + /** + * List of third party applications linked by this team member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkedApiApps() { + return linkedApiApps; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.linkedApiApps + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMemberAppsResult other = (ListMemberAppsResult) obj; + return (this.linkedApiApps == other.linkedApiApps) || (this.linkedApiApps.equals(other.linkedApiApps)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMemberAppsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("linked_api_apps"); + StoneSerializers.list(ApiApp.Serializer.INSTANCE).serialize(value.linkedApiApps, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMemberAppsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMemberAppsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_linkedApiApps = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("linked_api_apps".equals(field)) { + f_linkedApiApps = StoneSerializers.list(ApiApp.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_linkedApiApps == null) { + throw new JsonParseException(p, "Required field \"linked_api_apps\" missing."); + } + value = new ListMemberAppsResult(f_linkedApiApps); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesArg.java new file mode 100644 index 000000000..c8b012cf2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesArg.java @@ -0,0 +1,340 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class ListMemberDevicesArg { + // struct team.ListMemberDevicesArg (team_devices.stone) + + @Nonnull + protected final String teamMemberId; + protected final boolean includeWebSessions; + protected final boolean includeDesktopClients; + protected final boolean includeMobileClients; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param teamMemberId The team's member id. Must not be {@code null}. + * @param includeWebSessions Whether to list web sessions of the team's + * member. + * @param includeDesktopClients Whether to list linked desktop devices of + * the team's member. + * @param includeMobileClients Whether to list linked mobile devices of the + * team's member. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMemberDevicesArg(@Nonnull String teamMemberId, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + this.includeWebSessions = includeWebSessions; + this.includeDesktopClients = includeDesktopClients; + this.includeMobileClients = includeMobileClients; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param teamMemberId The team's member id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMemberDevicesArg(@Nonnull String teamMemberId) { + this(teamMemberId, true, true, true); + } + + /** + * The team's member id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * Whether to list web sessions of the team's member. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeWebSessions() { + return includeWebSessions; + } + + /** + * Whether to list linked desktop devices of the team's member. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeDesktopClients() { + return includeDesktopClients; + } + + /** + * Whether to list linked mobile devices of the team's member. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeMobileClients() { + return includeMobileClients; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param teamMemberId The team's member id. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String teamMemberId) { + return new Builder(teamMemberId); + } + + /** + * Builder for {@link ListMemberDevicesArg}. + */ + public static class Builder { + protected final String teamMemberId; + + protected boolean includeWebSessions; + protected boolean includeDesktopClients; + protected boolean includeMobileClients; + + protected Builder(String teamMemberId) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + this.includeWebSessions = true; + this.includeDesktopClients = true; + this.includeMobileClients = true; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeWebSessions Whether to list web sessions of the team's + * member. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeWebSessions(Boolean includeWebSessions) { + if (includeWebSessions != null) { + this.includeWebSessions = includeWebSessions; + } + else { + this.includeWebSessions = true; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeDesktopClients Whether to list linked desktop devices + * of the team's member. Defaults to {@code true} when set to {@code + * null}. + * + * @return this builder + */ + public Builder withIncludeDesktopClients(Boolean includeDesktopClients) { + if (includeDesktopClients != null) { + this.includeDesktopClients = includeDesktopClients; + } + else { + this.includeDesktopClients = true; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeMobileClients Whether to list linked mobile devices of + * the team's member. Defaults to {@code true} when set to {@code + * null}. + * + * @return this builder + */ + public Builder withIncludeMobileClients(Boolean includeMobileClients) { + if (includeMobileClients != null) { + this.includeMobileClients = includeMobileClients; + } + else { + this.includeMobileClients = true; + } + return this; + } + + /** + * Builds an instance of {@link ListMemberDevicesArg} configured with + * this builder's values + * + * @return new instance of {@link ListMemberDevicesArg} + */ + public ListMemberDevicesArg build() { + return new ListMemberDevicesArg(teamMemberId, includeWebSessions, includeDesktopClients, includeMobileClients); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId, + this.includeWebSessions, + this.includeDesktopClients, + this.includeMobileClients + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMemberDevicesArg other = (ListMemberDevicesArg) obj; + return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && (this.includeWebSessions == other.includeWebSessions) + && (this.includeDesktopClients == other.includeDesktopClients) + && (this.includeMobileClients == other.includeMobileClients) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMemberDevicesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + g.writeFieldName("include_web_sessions"); + StoneSerializers.boolean_().serialize(value.includeWebSessions, g); + g.writeFieldName("include_desktop_clients"); + StoneSerializers.boolean_().serialize(value.includeDesktopClients, g); + g.writeFieldName("include_mobile_clients"); + StoneSerializers.boolean_().serialize(value.includeMobileClients, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMemberDevicesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMemberDevicesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + Boolean f_includeWebSessions = true; + Boolean f_includeDesktopClients = true; + Boolean f_includeMobileClients = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("include_web_sessions".equals(field)) { + f_includeWebSessions = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_desktop_clients".equals(field)) { + f_includeDesktopClients = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_mobile_clients".equals(field)) { + f_includeMobileClients = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + value = new ListMemberDevicesArg(f_teamMemberId, f_includeWebSessions, f_includeDesktopClients, f_includeMobileClients); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesError.java new file mode 100644 index 000000000..a8137716d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListMemberDevicesError { + // union team.ListMemberDevicesError (team_devices.stone) + /** + * Member not found. + */ + MEMBER_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMemberDevicesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case MEMBER_NOT_FOUND: { + g.writeString("member_not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListMemberDevicesError deserialize(JsonParser p) throws IOException, JsonParseException { + ListMemberDevicesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("member_not_found".equals(tag)) { + value = ListMemberDevicesError.MEMBER_NOT_FOUND; + } + else { + value = ListMemberDevicesError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesErrorException.java new file mode 100644 index 000000000..1366789ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListMemberDevicesError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#devicesListMemberDevices(String)}.

+ */ +public class ListMemberDevicesErrorException extends DbxApiException { + // exception for routes: + // 2/team/devices/list_member_devices + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#devicesListMemberDevices(String)}. + */ + public final ListMemberDevicesError errorValue; + + public ListMemberDevicesErrorException(String routeName, String requestId, LocalizedText userMessage, ListMemberDevicesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesResult.java new file mode 100644 index 000000000..b1ee32dac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesResult.java @@ -0,0 +1,333 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ListMemberDevicesResult { + // struct team.ListMemberDevicesResult (team_devices.stone) + + @Nullable + protected final List activeWebSessions; + @Nullable + protected final List desktopClientSessions; + @Nullable + protected final List mobileClientSessions; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param activeWebSessions List of web sessions made by this team member. + * Must not contain a {@code null} item. + * @param desktopClientSessions List of desktop clients used by this team + * member. Must not contain a {@code null} item. + * @param mobileClientSessions List of mobile client used by this team + * member. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMemberDevicesResult(@Nullable List activeWebSessions, @Nullable List desktopClientSessions, @Nullable List mobileClientSessions) { + if (activeWebSessions != null) { + for (ActiveWebSession x : activeWebSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeWebSessions' is null"); + } + } + } + this.activeWebSessions = activeWebSessions; + if (desktopClientSessions != null) { + for (DesktopClientSession x : desktopClientSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'desktopClientSessions' is null"); + } + } + } + this.desktopClientSessions = desktopClientSessions; + if (mobileClientSessions != null) { + for (MobileClientSession x : mobileClientSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'mobileClientSessions' is null"); + } + } + } + this.mobileClientSessions = mobileClientSessions; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public ListMemberDevicesResult() { + this(null, null, null); + } + + /** + * List of web sessions made by this team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getActiveWebSessions() { + return activeWebSessions; + } + + /** + * List of desktop clients used by this team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getDesktopClientSessions() { + return desktopClientSessions; + } + + /** + * List of mobile client used by this team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getMobileClientSessions() { + return mobileClientSessions; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListMemberDevicesResult}. + */ + public static class Builder { + + protected List activeWebSessions; + protected List desktopClientSessions; + protected List mobileClientSessions; + + protected Builder() { + this.activeWebSessions = null; + this.desktopClientSessions = null; + this.mobileClientSessions = null; + } + + /** + * Set value for optional field. + * + * @param activeWebSessions List of web sessions made by this team + * member. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withActiveWebSessions(List activeWebSessions) { + if (activeWebSessions != null) { + for (ActiveWebSession x : activeWebSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'activeWebSessions' is null"); + } + } + } + this.activeWebSessions = activeWebSessions; + return this; + } + + /** + * Set value for optional field. + * + * @param desktopClientSessions List of desktop clients used by this + * team member. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDesktopClientSessions(List desktopClientSessions) { + if (desktopClientSessions != null) { + for (DesktopClientSession x : desktopClientSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'desktopClientSessions' is null"); + } + } + } + this.desktopClientSessions = desktopClientSessions; + return this; + } + + /** + * Set value for optional field. + * + * @param mobileClientSessions List of mobile client used by this team + * member. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMobileClientSessions(List mobileClientSessions) { + if (mobileClientSessions != null) { + for (MobileClientSession x : mobileClientSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'mobileClientSessions' is null"); + } + } + } + this.mobileClientSessions = mobileClientSessions; + return this; + } + + /** + * Builds an instance of {@link ListMemberDevicesResult} configured with + * this builder's values + * + * @return new instance of {@link ListMemberDevicesResult} + */ + public ListMemberDevicesResult build() { + return new ListMemberDevicesResult(activeWebSessions, desktopClientSessions, mobileClientSessions); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.activeWebSessions, + this.desktopClientSessions, + this.mobileClientSessions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMemberDevicesResult other = (ListMemberDevicesResult) obj; + return ((this.activeWebSessions == other.activeWebSessions) || (this.activeWebSessions != null && this.activeWebSessions.equals(other.activeWebSessions))) + && ((this.desktopClientSessions == other.desktopClientSessions) || (this.desktopClientSessions != null && this.desktopClientSessions.equals(other.desktopClientSessions))) + && ((this.mobileClientSessions == other.mobileClientSessions) || (this.mobileClientSessions != null && this.mobileClientSessions.equals(other.mobileClientSessions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMemberDevicesResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.activeWebSessions != null) { + g.writeFieldName("active_web_sessions"); + StoneSerializers.nullable(StoneSerializers.list(ActiveWebSession.Serializer.INSTANCE)).serialize(value.activeWebSessions, g); + } + if (value.desktopClientSessions != null) { + g.writeFieldName("desktop_client_sessions"); + StoneSerializers.nullable(StoneSerializers.list(DesktopClientSession.Serializer.INSTANCE)).serialize(value.desktopClientSessions, g); + } + if (value.mobileClientSessions != null) { + g.writeFieldName("mobile_client_sessions"); + StoneSerializers.nullable(StoneSerializers.list(MobileClientSession.Serializer.INSTANCE)).serialize(value.mobileClientSessions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMemberDevicesResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMemberDevicesResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_activeWebSessions = null; + List f_desktopClientSessions = null; + List f_mobileClientSessions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("active_web_sessions".equals(field)) { + f_activeWebSessions = StoneSerializers.nullable(StoneSerializers.list(ActiveWebSession.Serializer.INSTANCE)).deserialize(p); + } + else if ("desktop_client_sessions".equals(field)) { + f_desktopClientSessions = StoneSerializers.nullable(StoneSerializers.list(DesktopClientSession.Serializer.INSTANCE)).deserialize(p); + } + else if ("mobile_client_sessions".equals(field)) { + f_mobileClientSessions = StoneSerializers.nullable(StoneSerializers.list(MobileClientSession.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListMemberDevicesResult(f_activeWebSessions, f_desktopClientSessions, f_mobileClientSessions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsArg.java new file mode 100644 index 000000000..c6f596fd8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsArg.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + */ +class ListMembersAppsArg { + // struct team.ListMembersAppsArg (team_linked_apps.stone) + + @Nullable + protected final String cursor; + + /** + * Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} the + * cursor shouldn't be passed. Then, if the result of the call includes + * a cursor, the following requests should include the received cursors + * in order to receive the next sub list of the team applications. + */ + public ListMembersAppsArg(@Nullable String cursor) { + this.cursor = cursor; + } + + /** + * Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + * + *

The default values for unset fields will be used.

+ */ + public ListMembersAppsArg() { + this(null); + } + + /** + * At the first call to the {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} the cursor + * shouldn't be passed. Then, if the result of the call includes a cursor, + * the following requests should include the received cursors in order to + * receive the next sub list of the team applications. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMembersAppsArg other = (ListMembersAppsArg) obj; + return (this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMembersAppsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMembersAppsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMembersAppsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListMembersAppsArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsError.java new file mode 100644 index 000000000..241237325 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsError.java @@ -0,0 +1,90 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + */ +public enum ListMembersAppsError { + // union team.ListMembersAppsError (team_linked_apps.stone) + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} again with + * an empty cursor to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMembersAppsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListMembersAppsError deserialize(JsonParser p) throws IOException, JsonParseException { + ListMembersAppsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("reset".equals(tag)) { + value = ListMembersAppsError.RESET; + } + else { + value = ListMembersAppsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsErrorException.java new file mode 100644 index 000000000..0aa347361 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListMembersAppsError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}.

+ */ +public class ListMembersAppsErrorException extends DbxApiException { + // exception for routes: + // 2/team/linked_apps/list_members_linked_apps + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + */ + public final ListMembersAppsError errorValue; + + public ListMembersAppsErrorException(String routeName, String requestId, LocalizedText userMessage, ListMembersAppsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsResult.java new file mode 100644 index 000000000..29c8419d4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsResult.java @@ -0,0 +1,238 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + */ +public class ListMembersAppsResult { + // struct team.ListMembersAppsResult (team_linked_apps.stone) + + @Nonnull + protected final List apps; + protected final boolean hasMore; + @Nullable + protected final String cursor; + + /** + * Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + * + * @param apps The linked applications of each member of the team. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more apps available. Pass the + * cursor to {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} to + * retrieve the rest. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} to + * receive the next sub list of team's applications. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMembersAppsResult(@Nonnull List apps, boolean hasMore, @Nullable String cursor) { + if (apps == null) { + throw new IllegalArgumentException("Required value for 'apps' is null"); + } + for (MemberLinkedApps x : apps) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'apps' is null"); + } + } + this.apps = apps; + this.hasMore = hasMore; + this.cursor = cursor; + } + + /** + * Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. + * + *

The default values for unset fields will be used.

+ * + * @param apps The linked applications of each member of the team. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more apps available. Pass the + * cursor to {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} to + * retrieve the rest. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMembersAppsResult(@Nonnull List apps, boolean hasMore) { + this(apps, hasMore, null); + } + + /** + * The linked applications of each member of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getApps() { + return apps; + } + + /** + * If true, then there are more apps available. Pass the cursor to {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} to retrieve + * the rest. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)} to receive + * the next sub list of team's applications. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.apps, + this.hasMore, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMembersAppsResult other = (ListMembersAppsResult) obj; + return ((this.apps == other.apps) || (this.apps.equals(other.apps))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMembersAppsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("apps"); + StoneSerializers.list(MemberLinkedApps.Serializer.INSTANCE).serialize(value.apps, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMembersAppsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMembersAppsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_apps = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("apps".equals(field)) { + f_apps = StoneSerializers.list(MemberLinkedApps.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_apps == null) { + throw new JsonParseException(p, "Required field \"apps\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListMembersAppsResult(f_apps, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesArg.java new file mode 100644 index 000000000..354db8627 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesArg.java @@ -0,0 +1,343 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ListMembersDevicesArg { + // struct team.ListMembersDevicesArg (team_devices.stone) + + @Nullable + protected final String cursor; + protected final boolean includeWebSessions; + protected final boolean includeDesktopClients; + protected final boolean includeMobileClients; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#devicesListMembersDevices} the cursor shouldn't + * be passed. Then, if the result of the call includes a cursor, the + * following requests should include the received cursors in order to + * receive the next sub list of team devices. + * @param includeWebSessions Whether to list web sessions of the team + * members. + * @param includeDesktopClients Whether to list desktop clients of the team + * members. + * @param includeMobileClients Whether to list mobile clients of the team + * members. + */ + public ListMembersDevicesArg(@Nullable String cursor, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { + this.cursor = cursor; + this.includeWebSessions = includeWebSessions; + this.includeDesktopClients = includeDesktopClients; + this.includeMobileClients = includeMobileClients; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public ListMembersDevicesArg() { + this(null, true, true, true); + } + + /** + * At the first call to the {@link + * DbxTeamTeamRequests#devicesListMembersDevices} the cursor shouldn't be + * passed. Then, if the result of the call includes a cursor, the following + * requests should include the received cursors in order to receive the next + * sub list of team devices. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + /** + * Whether to list web sessions of the team members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeWebSessions() { + return includeWebSessions; + } + + /** + * Whether to list desktop clients of the team members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeDesktopClients() { + return includeDesktopClients; + } + + /** + * Whether to list mobile clients of the team members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeMobileClients() { + return includeMobileClients; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListMembersDevicesArg}. + */ + public static class Builder { + + protected String cursor; + protected boolean includeWebSessions; + protected boolean includeDesktopClients; + protected boolean includeMobileClients; + + protected Builder() { + this.cursor = null; + this.includeWebSessions = true; + this.includeDesktopClients = true; + this.includeMobileClients = true; + } + + /** + * Set value for optional field. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#devicesListMembersDevices} the cursor + * shouldn't be passed. Then, if the result of the call includes a + * cursor, the following requests should include the received + * cursors in order to receive the next sub list of team devices. + * + * @return this builder + */ + public Builder withCursor(String cursor) { + this.cursor = cursor; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeWebSessions Whether to list web sessions of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeWebSessions(Boolean includeWebSessions) { + if (includeWebSessions != null) { + this.includeWebSessions = includeWebSessions; + } + else { + this.includeWebSessions = true; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeDesktopClients Whether to list desktop clients of the + * team members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeDesktopClients(Boolean includeDesktopClients) { + if (includeDesktopClients != null) { + this.includeDesktopClients = includeDesktopClients; + } + else { + this.includeDesktopClients = true; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeMobileClients Whether to list mobile clients of the + * team members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeMobileClients(Boolean includeMobileClients) { + if (includeMobileClients != null) { + this.includeMobileClients = includeMobileClients; + } + else { + this.includeMobileClients = true; + } + return this; + } + + /** + * Builds an instance of {@link ListMembersDevicesArg} configured with + * this builder's values + * + * @return new instance of {@link ListMembersDevicesArg} + */ + public ListMembersDevicesArg build() { + return new ListMembersDevicesArg(cursor, includeWebSessions, includeDesktopClients, includeMobileClients); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor, + this.includeWebSessions, + this.includeDesktopClients, + this.includeMobileClients + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMembersDevicesArg other = (ListMembersDevicesArg) obj; + return ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + && (this.includeWebSessions == other.includeWebSessions) + && (this.includeDesktopClients == other.includeDesktopClients) + && (this.includeMobileClients == other.includeMobileClients) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMembersDevicesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + g.writeFieldName("include_web_sessions"); + StoneSerializers.boolean_().serialize(value.includeWebSessions, g); + g.writeFieldName("include_desktop_clients"); + StoneSerializers.boolean_().serialize(value.includeDesktopClients, g); + g.writeFieldName("include_mobile_clients"); + StoneSerializers.boolean_().serialize(value.includeMobileClients, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMembersDevicesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMembersDevicesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + Boolean f_includeWebSessions = true; + Boolean f_includeDesktopClients = true; + Boolean f_includeMobileClients = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("include_web_sessions".equals(field)) { + f_includeWebSessions = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_desktop_clients".equals(field)) { + f_includeDesktopClients = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_mobile_clients".equals(field)) { + f_includeMobileClients = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListMembersDevicesArg(f_cursor, f_includeWebSessions, f_includeDesktopClients, f_includeMobileClients); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesError.java new file mode 100644 index 000000000..c07d482fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesError.java @@ -0,0 +1,86 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListMembersDevicesError { + // union team.ListMembersDevicesError (team_devices.stone) + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxTeamTeamRequests#devicesListMembersDevices} again with an empty cursor + * to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMembersDevicesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListMembersDevicesError deserialize(JsonParser p) throws IOException, JsonParseException { + ListMembersDevicesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("reset".equals(tag)) { + value = ListMembersDevicesError.RESET; + } + else { + value = ListMembersDevicesError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesErrorException.java new file mode 100644 index 000000000..43ca6bfb6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * ListMembersDevicesError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#devicesListMembersDevices}.

+ */ +public class ListMembersDevicesErrorException extends DbxApiException { + // exception for routes: + // 2/team/devices/list_members_devices + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#devicesListMembersDevices}. + */ + public final ListMembersDevicesError errorValue; + + public ListMembersDevicesErrorException(String routeName, String requestId, LocalizedText userMessage, ListMembersDevicesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesResult.java new file mode 100644 index 000000000..6b36696ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesResult.java @@ -0,0 +1,228 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ListMembersDevicesResult { + // struct team.ListMembersDevicesResult (team_devices.stone) + + @Nonnull + protected final List devices; + protected final boolean hasMore; + @Nullable + protected final String cursor; + + /** + * + * @param devices The devices of each member of the team. Must not contain + * a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more devices available. Pass the + * cursor to {@link DbxTeamTeamRequests#devicesListMembersDevices} to + * retrieve the rest. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#devicesListMembersDevices} to receive the next + * sub list of team's devices. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMembersDevicesResult(@Nonnull List devices, boolean hasMore, @Nullable String cursor) { + if (devices == null) { + throw new IllegalArgumentException("Required value for 'devices' is null"); + } + for (MemberDevices x : devices) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'devices' is null"); + } + } + this.devices = devices; + this.hasMore = hasMore; + this.cursor = cursor; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param devices The devices of each member of the team. Must not contain + * a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more devices available. Pass the + * cursor to {@link DbxTeamTeamRequests#devicesListMembersDevices} to + * retrieve the rest. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListMembersDevicesResult(@Nonnull List devices, boolean hasMore) { + this(devices, hasMore, null); + } + + /** + * The devices of each member of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getDevices() { + return devices; + } + + /** + * If true, then there are more devices available. Pass the cursor to {@link + * DbxTeamTeamRequests#devicesListMembersDevices} to retrieve the rest. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#devicesListMembersDevices} to receive the next sub + * list of team's devices. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.devices, + this.hasMore, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListMembersDevicesResult other = (ListMembersDevicesResult) obj; + return ((this.devices == other.devices) || (this.devices.equals(other.devices))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListMembersDevicesResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("devices"); + StoneSerializers.list(MemberDevices.Serializer.INSTANCE).serialize(value.devices, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListMembersDevicesResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListMembersDevicesResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_devices = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("devices".equals(field)) { + f_devices = StoneSerializers.list(MemberDevices.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_devices == null) { + throw new JsonParseException(p, "Required field \"devices\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListMembersDevicesResult(f_devices, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsArg.java new file mode 100644 index 000000000..2332835c4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsArg.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + */ +class ListTeamAppsArg { + // struct team.ListTeamAppsArg (team_linked_apps.stone) + + @Nullable + protected final String cursor; + + /** + * Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} the cursor + * shouldn't be passed. Then, if the result of the call includes a + * cursor, the following requests should include the received cursors in + * order to receive the next sub list of the team applications. + */ + public ListTeamAppsArg(@Nullable String cursor) { + this.cursor = cursor; + } + + /** + * Arguments for {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + * + *

The default values for unset fields will be used.

+ */ + public ListTeamAppsArg() { + this(null); + } + + /** + * At the first call to the {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} the cursor + * shouldn't be passed. Then, if the result of the call includes a cursor, + * the following requests should include the received cursors in order to + * receive the next sub list of the team applications. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListTeamAppsArg other = (ListTeamAppsArg) obj; + return (this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListTeamAppsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListTeamAppsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListTeamAppsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListTeamAppsArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsError.java new file mode 100644 index 000000000..4a2b98d5a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsError.java @@ -0,0 +1,90 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + */ +public enum ListTeamAppsError { + // union team.ListTeamAppsError (team_linked_apps.stone) + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} again with an + * empty cursor to obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListTeamAppsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListTeamAppsError deserialize(JsonParser p) throws IOException, JsonParseException { + ListTeamAppsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("reset".equals(tag)) { + value = ListTeamAppsError.RESET; + } + else { + value = ListTeamAppsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsErrorException.java new file mode 100644 index 000000000..d62abc086 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListTeamAppsError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}.

+ */ +public class ListTeamAppsErrorException extends DbxApiException { + // exception for routes: + // 2/team/linked_apps/list_team_linked_apps + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + */ + public final ListTeamAppsError errorValue; + + public ListTeamAppsErrorException(String routeName, String requestId, LocalizedText userMessage, ListTeamAppsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsResult.java new file mode 100644 index 000000000..22cdf8044 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsResult.java @@ -0,0 +1,238 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + */ +public class ListTeamAppsResult { + // struct team.ListTeamAppsResult (team_linked_apps.stone) + + @Nonnull + protected final List apps; + protected final boolean hasMore; + @Nullable + protected final String cursor; + + /** + * Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + * + * @param apps The linked applications of each member of the team. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more apps available. Pass the + * cursor to {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} to retrieve + * the rest. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} to receive + * the next sub list of team's applications. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListTeamAppsResult(@Nonnull List apps, boolean hasMore, @Nullable String cursor) { + if (apps == null) { + throw new IllegalArgumentException("Required value for 'apps' is null"); + } + for (MemberLinkedApps x : apps) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'apps' is null"); + } + } + this.apps = apps; + this.hasMore = hasMore; + this.cursor = cursor; + } + + /** + * Information returned by {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. + * + *

The default values for unset fields will be used.

+ * + * @param apps The linked applications of each member of the team. Must not + * contain a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more apps available. Pass the + * cursor to {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} to retrieve + * the rest. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListTeamAppsResult(@Nonnull List apps, boolean hasMore) { + this(apps, hasMore, null); + } + + /** + * The linked applications of each member of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getApps() { + return apps; + } + + /** + * If true, then there are more apps available. Pass the cursor to {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} to retrieve the + * rest. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)} to receive the + * next sub list of team's applications. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.apps, + this.hasMore, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListTeamAppsResult other = (ListTeamAppsResult) obj; + return ((this.apps == other.apps) || (this.apps.equals(other.apps))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListTeamAppsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("apps"); + StoneSerializers.list(MemberLinkedApps.Serializer.INSTANCE).serialize(value.apps, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListTeamAppsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListTeamAppsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_apps = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("apps".equals(field)) { + f_apps = StoneSerializers.list(MemberLinkedApps.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_apps == null) { + throw new JsonParseException(p, "Required field \"apps\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListTeamAppsResult(f_apps, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesArg.java new file mode 100644 index 000000000..c581593db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesArg.java @@ -0,0 +1,343 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class ListTeamDevicesArg { + // struct team.ListTeamDevicesArg (team_devices.stone) + + @Nullable + protected final String cursor; + protected final boolean includeWebSessions; + protected final boolean includeDesktopClients; + protected final boolean includeMobileClients; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#devicesListTeamDevices} the cursor shouldn't be + * passed. Then, if the result of the call includes a cursor, the + * following requests should include the received cursors in order to + * receive the next sub list of team devices. + * @param includeWebSessions Whether to list web sessions of the team + * members. + * @param includeDesktopClients Whether to list desktop clients of the team + * members. + * @param includeMobileClients Whether to list mobile clients of the team + * members. + */ + public ListTeamDevicesArg(@Nullable String cursor, boolean includeWebSessions, boolean includeDesktopClients, boolean includeMobileClients) { + this.cursor = cursor; + this.includeWebSessions = includeWebSessions; + this.includeDesktopClients = includeDesktopClients; + this.includeMobileClients = includeMobileClients; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public ListTeamDevicesArg() { + this(null, true, true, true); + } + + /** + * At the first call to the {@link + * DbxTeamTeamRequests#devicesListTeamDevices} the cursor shouldn't be + * passed. Then, if the result of the call includes a cursor, the following + * requests should include the received cursors in order to receive the next + * sub list of team devices. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + /** + * Whether to list web sessions of the team members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeWebSessions() { + return includeWebSessions; + } + + /** + * Whether to list desktop clients of the team members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeDesktopClients() { + return includeDesktopClients; + } + + /** + * Whether to list mobile clients of the team members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getIncludeMobileClients() { + return includeMobileClients; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link ListTeamDevicesArg}. + */ + public static class Builder { + + protected String cursor; + protected boolean includeWebSessions; + protected boolean includeDesktopClients; + protected boolean includeMobileClients; + + protected Builder() { + this.cursor = null; + this.includeWebSessions = true; + this.includeDesktopClients = true; + this.includeMobileClients = true; + } + + /** + * Set value for optional field. + * + * @param cursor At the first call to the {@link + * DbxTeamTeamRequests#devicesListTeamDevices} the cursor shouldn't + * be passed. Then, if the result of the call includes a cursor, the + * following requests should include the received cursors in order + * to receive the next sub list of team devices. + * + * @return this builder + */ + public Builder withCursor(String cursor) { + this.cursor = cursor; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeWebSessions Whether to list web sessions of the team + * members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeWebSessions(Boolean includeWebSessions) { + if (includeWebSessions != null) { + this.includeWebSessions = includeWebSessions; + } + else { + this.includeWebSessions = true; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeDesktopClients Whether to list desktop clients of the + * team members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeDesktopClients(Boolean includeDesktopClients) { + if (includeDesktopClients != null) { + this.includeDesktopClients = includeDesktopClients; + } + else { + this.includeDesktopClients = true; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param includeMobileClients Whether to list mobile clients of the + * team members. Defaults to {@code true} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeMobileClients(Boolean includeMobileClients) { + if (includeMobileClients != null) { + this.includeMobileClients = includeMobileClients; + } + else { + this.includeMobileClients = true; + } + return this; + } + + /** + * Builds an instance of {@link ListTeamDevicesArg} configured with this + * builder's values + * + * @return new instance of {@link ListTeamDevicesArg} + */ + public ListTeamDevicesArg build() { + return new ListTeamDevicesArg(cursor, includeWebSessions, includeDesktopClients, includeMobileClients); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor, + this.includeWebSessions, + this.includeDesktopClients, + this.includeMobileClients + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListTeamDevicesArg other = (ListTeamDevicesArg) obj; + return ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + && (this.includeWebSessions == other.includeWebSessions) + && (this.includeDesktopClients == other.includeDesktopClients) + && (this.includeMobileClients == other.includeMobileClients) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListTeamDevicesArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + g.writeFieldName("include_web_sessions"); + StoneSerializers.boolean_().serialize(value.includeWebSessions, g); + g.writeFieldName("include_desktop_clients"); + StoneSerializers.boolean_().serialize(value.includeDesktopClients, g); + g.writeFieldName("include_mobile_clients"); + StoneSerializers.boolean_().serialize(value.includeMobileClients, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListTeamDevicesArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListTeamDevicesArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + Boolean f_includeWebSessions = true; + Boolean f_includeDesktopClients = true; + Boolean f_includeMobileClients = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("include_web_sessions".equals(field)) { + f_includeWebSessions = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_desktop_clients".equals(field)) { + f_includeDesktopClients = StoneSerializers.boolean_().deserialize(p); + } + else if ("include_mobile_clients".equals(field)) { + f_includeMobileClients = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + value = new ListTeamDevicesArg(f_cursor, f_includeWebSessions, f_includeDesktopClients, f_includeMobileClients); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesError.java new file mode 100644 index 000000000..892937fc5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesError.java @@ -0,0 +1,86 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ListTeamDevicesError { + // union team.ListTeamDevicesError (team_devices.stone) + /** + * Indicates that the cursor has been invalidated. Call {@link + * DbxTeamTeamRequests#devicesListTeamDevices} again with an empty cursor to + * obtain a new cursor. + */ + RESET, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListTeamDevicesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case RESET: { + g.writeString("reset"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ListTeamDevicesError deserialize(JsonParser p) throws IOException, JsonParseException { + ListTeamDevicesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("reset".equals(tag)) { + value = ListTeamDevicesError.RESET; + } + else { + value = ListTeamDevicesError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesErrorException.java new file mode 100644 index 000000000..274289851 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ListTeamDevicesError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#devicesListTeamDevices}.

+ */ +public class ListTeamDevicesErrorException extends DbxApiException { + // exception for routes: + // 2/team/devices/list_team_devices + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#devicesListTeamDevices}. + */ + public final ListTeamDevicesError errorValue; + + public ListTeamDevicesErrorException(String routeName, String requestId, LocalizedText userMessage, ListTeamDevicesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesResult.java new file mode 100644 index 000000000..4726f26ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesResult.java @@ -0,0 +1,227 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class ListTeamDevicesResult { + // struct team.ListTeamDevicesResult (team_devices.stone) + + @Nonnull + protected final List devices; + protected final boolean hasMore; + @Nullable + protected final String cursor; + + /** + * + * @param devices The devices of each member of the team. Must not contain + * a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more devices available. Pass the + * cursor to {@link DbxTeamTeamRequests#devicesListTeamDevices} to + * retrieve the rest. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#devicesListTeamDevices} to receive the next sub + * list of team's devices. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListTeamDevicesResult(@Nonnull List devices, boolean hasMore, @Nullable String cursor) { + if (devices == null) { + throw new IllegalArgumentException("Required value for 'devices' is null"); + } + for (MemberDevices x : devices) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'devices' is null"); + } + } + this.devices = devices; + this.hasMore = hasMore; + this.cursor = cursor; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param devices The devices of each member of the team. Must not contain + * a {@code null} item and not be {@code null}. + * @param hasMore If true, then there are more devices available. Pass the + * cursor to {@link DbxTeamTeamRequests#devicesListTeamDevices} to + * retrieve the rest. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ListTeamDevicesResult(@Nonnull List devices, boolean hasMore) { + this(devices, hasMore, null); + } + + /** + * The devices of each member of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getDevices() { + return devices; + } + + /** + * If true, then there are more devices available. Pass the cursor to {@link + * DbxTeamTeamRequests#devicesListTeamDevices} to retrieve the rest. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Pass the cursor into {@link DbxTeamTeamRequests#devicesListTeamDevices} + * to receive the next sub list of team's devices. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.devices, + this.hasMore, + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ListTeamDevicesResult other = (ListTeamDevicesResult) obj; + return ((this.devices == other.devices) || (this.devices.equals(other.devices))) + && (this.hasMore == other.hasMore) + && ((this.cursor == other.cursor) || (this.cursor != null && this.cursor.equals(other.cursor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ListTeamDevicesResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("devices"); + StoneSerializers.list(MemberDevices.Serializer.INSTANCE).serialize(value.devices, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (value.cursor != null) { + g.writeFieldName("cursor"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.cursor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ListTeamDevicesResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ListTeamDevicesResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_devices = null; + Boolean f_hasMore = null; + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("devices".equals(field)) { + f_devices = StoneSerializers.list(MemberDevices.Serializer.INSTANCE).deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_devices == null) { + throw new JsonParseException(p, "Required field \"devices\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new ListTeamDevicesResult(f_devices, f_hasMore, f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAccess.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAccess.java new file mode 100644 index 000000000..4866ce859 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAccess.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_groups.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Specify access type a member should have when joined to a group. + */ +public class MemberAccess { + // struct team.MemberAccess (team_groups.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nonnull + protected final GroupAccessType accessType; + + /** + * Specify access type a member should have when joined to a group. + * + * @param user Identity of a user. Must not be {@code null}. + * @param accessType Access type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAccess(@Nonnull UserSelectorArg user, @Nonnull GroupAccessType accessType) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + } + + /** + * Identity of a user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * Access type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupAccessType getAccessType() { + return accessType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.accessType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAccess other = (MemberAccess) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAccess value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("access_type"); + GroupAccessType.Serializer.INSTANCE.serialize(value.accessType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAccess deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAccess value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + GroupAccessType f_accessType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("access_type".equals(field)) { + f_accessType = GroupAccessType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + value = new MemberAccess(f_user, f_accessType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddArg.java new file mode 100644 index 000000000..8c68813a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddArg.java @@ -0,0 +1,477 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class MemberAddArg extends MemberAddArgBase { + // struct team.MemberAddArg (team_members.stone) + + @Nonnull + protected final AdminTier role; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param memberGivenName Member's first name. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * @param memberSurname Member's last name. Must have length of at most 100 + * and match pattern "{@code [^/:?*<>\"|]*}". + * @param memberExternalId External ID for member. Must have length of at + * most 64. + * @param memberPersistentId Persistent ID for member. This field is only + * available to teams using persistent ID SAML configuration. + * @param sendWelcomeEmail Whether to send a welcome email to the member. + * If send_welcome_email is false, no email invitation will be sent to + * the user. This may be useful for apps using single sign-on (SSO) + * flows for onboarding that want to handle announcements themselves. + * @param isDirectoryRestricted Whether a user is directory restricted. + * @param role Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddArg(@Nonnull String memberEmail, @Nullable String memberGivenName, @Nullable String memberSurname, @Nullable String memberExternalId, @Nullable String memberPersistentId, boolean sendWelcomeEmail, @Nullable Boolean isDirectoryRestricted, @Nonnull AdminTier role) { + super(memberEmail, memberGivenName, memberSurname, memberExternalId, memberPersistentId, sendWelcomeEmail, isDirectoryRestricted); + if (role == null) { + throw new IllegalArgumentException("Required value for 'role' is null"); + } + this.role = role; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddArg(@Nonnull String memberEmail) { + this(memberEmail, null, null, null, null, true, null, AdminTier.MEMBER_ONLY); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getMemberEmail() { + return memberEmail; + } + + /** + * Member's first name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberGivenName() { + return memberGivenName; + } + + /** + * Member's last name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberSurname() { + return memberSurname; + } + + /** + * External ID for member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberExternalId() { + return memberExternalId; + } + + /** + * Persistent ID for member. This field is only available to teams using + * persistent ID SAML configuration. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberPersistentId() { + return memberPersistentId; + } + + /** + * Whether to send a welcome email to the member. If send_welcome_email is + * false, no email invitation will be sent to the user. This may be useful + * for apps using single sign-on (SSO) flows for onboarding that want to + * handle announcements themselves. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getSendWelcomeEmail() { + return sendWelcomeEmail; + } + + /** + * Whether a user is directory restricted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsDirectoryRestricted() { + return isDirectoryRestricted; + } + + /** + * + * @return value for this field, or {@code null} if not present. Defaults to + * AdminTier.MEMBER_ONLY. + */ + @Nonnull + public AdminTier getRole() { + return role; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String memberEmail) { + return new Builder(memberEmail); + } + + /** + * Builder for {@link MemberAddArg}. + */ + public static class Builder extends MemberAddArgBase.Builder { + + protected AdminTier role; + + protected Builder(String memberEmail) { + super(memberEmail); + this.role = AdminTier.MEMBER_ONLY; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code + * AdminTier.MEMBER_ONLY}.

+ * + * @param role Must not be {@code null}. Defaults to {@code + * AdminTier.MEMBER_ONLY} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withRole(AdminTier role) { + if (role != null) { + this.role = role; + } + else { + this.role = AdminTier.MEMBER_ONLY; + } + return this; + } + + /** + * Set value for optional field. + * + * @param memberGivenName Member's first name. Must have length of at + * most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberGivenName(String memberGivenName) { + super.withMemberGivenName(memberGivenName); + return this; + } + + /** + * Set value for optional field. + * + * @param memberSurname Member's last name. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberSurname(String memberSurname) { + super.withMemberSurname(memberSurname); + return this; + } + + /** + * Set value for optional field. + * + * @param memberExternalId External ID for member. Must have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberExternalId(String memberExternalId) { + super.withMemberExternalId(memberExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param memberPersistentId Persistent ID for member. This field is + * only available to teams using persistent ID SAML configuration. + * + * @return this builder + */ + public Builder withMemberPersistentId(String memberPersistentId) { + super.withMemberPersistentId(memberPersistentId); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param sendWelcomeEmail Whether to send a welcome email to the + * member. If send_welcome_email is false, no email invitation will + * be sent to the user. This may be useful for apps using single + * sign-on (SSO) flows for onboarding that want to handle + * announcements themselves. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withSendWelcomeEmail(Boolean sendWelcomeEmail) { + super.withSendWelcomeEmail(sendWelcomeEmail); + return this; + } + + /** + * Set value for optional field. + * + * @param isDirectoryRestricted Whether a user is directory restricted. + * + * @return this builder + */ + public Builder withIsDirectoryRestricted(Boolean isDirectoryRestricted) { + super.withIsDirectoryRestricted(isDirectoryRestricted); + return this; + } + + /** + * Builds an instance of {@link MemberAddArg} configured with this + * builder's values + * + * @return new instance of {@link MemberAddArg} + */ + public MemberAddArg build() { + return new MemberAddArg(memberEmail, memberGivenName, memberSurname, memberExternalId, memberPersistentId, sendWelcomeEmail, isDirectoryRestricted, role); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.role + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAddArg other = (MemberAddArg) obj; + return ((this.memberEmail == other.memberEmail) || (this.memberEmail.equals(other.memberEmail))) + && ((this.memberGivenName == other.memberGivenName) || (this.memberGivenName != null && this.memberGivenName.equals(other.memberGivenName))) + && ((this.memberSurname == other.memberSurname) || (this.memberSurname != null && this.memberSurname.equals(other.memberSurname))) + && ((this.memberExternalId == other.memberExternalId) || (this.memberExternalId != null && this.memberExternalId.equals(other.memberExternalId))) + && ((this.memberPersistentId == other.memberPersistentId) || (this.memberPersistentId != null && this.memberPersistentId.equals(other.memberPersistentId))) + && (this.sendWelcomeEmail == other.sendWelcomeEmail) + && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) + && ((this.role == other.role) || (this.role.equals(other.role))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member_email"); + StoneSerializers.string().serialize(value.memberEmail, g); + if (value.memberGivenName != null) { + g.writeFieldName("member_given_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberGivenName, g); + } + if (value.memberSurname != null) { + g.writeFieldName("member_surname"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberSurname, g); + } + if (value.memberExternalId != null) { + g.writeFieldName("member_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberExternalId, g); + } + if (value.memberPersistentId != null) { + g.writeFieldName("member_persistent_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberPersistentId, g); + } + g.writeFieldName("send_welcome_email"); + StoneSerializers.boolean_().serialize(value.sendWelcomeEmail, g); + if (value.isDirectoryRestricted != null) { + g.writeFieldName("is_directory_restricted"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isDirectoryRestricted, g); + } + g.writeFieldName("role"); + AdminTier.Serializer.INSTANCE.serialize(value.role, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAddArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAddArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_memberEmail = null; + String f_memberGivenName = null; + String f_memberSurname = null; + String f_memberExternalId = null; + String f_memberPersistentId = null; + Boolean f_sendWelcomeEmail = true; + Boolean f_isDirectoryRestricted = null; + AdminTier f_role = AdminTier.MEMBER_ONLY; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member_email".equals(field)) { + f_memberEmail = StoneSerializers.string().deserialize(p); + } + else if ("member_given_name".equals(field)) { + f_memberGivenName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_surname".equals(field)) { + f_memberSurname = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_external_id".equals(field)) { + f_memberExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_persistent_id".equals(field)) { + f_memberPersistentId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("send_welcome_email".equals(field)) { + f_sendWelcomeEmail = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_directory_restricted".equals(field)) { + f_isDirectoryRestricted = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("role".equals(field)) { + f_role = AdminTier.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_memberEmail == null) { + throw new JsonParseException(p, "Required field \"member_email\" missing."); + } + value = new MemberAddArg(f_memberEmail, f_memberGivenName, f_memberSurname, f_memberExternalId, f_memberPersistentId, f_sendWelcomeEmail, f_isDirectoryRestricted, f_role); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddArgBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddArgBase.java new file mode 100644 index 000000000..cfc3ffb8a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddArgBase.java @@ -0,0 +1,529 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class MemberAddArgBase { + // struct team.MemberAddArgBase (team_members.stone) + + @Nonnull + protected final String memberEmail; + @Nullable + protected final String memberGivenName; + @Nullable + protected final String memberSurname; + @Nullable + protected final String memberExternalId; + @Nullable + protected final String memberPersistentId; + protected final boolean sendWelcomeEmail; + @Nullable + protected final Boolean isDirectoryRestricted; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param memberGivenName Member's first name. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * @param memberSurname Member's last name. Must have length of at most 100 + * and match pattern "{@code [^/:?*<>\"|]*}". + * @param memberExternalId External ID for member. Must have length of at + * most 64. + * @param memberPersistentId Persistent ID for member. This field is only + * available to teams using persistent ID SAML configuration. + * @param sendWelcomeEmail Whether to send a welcome email to the member. + * If send_welcome_email is false, no email invitation will be sent to + * the user. This may be useful for apps using single sign-on (SSO) + * flows for onboarding that want to handle announcements themselves. + * @param isDirectoryRestricted Whether a user is directory restricted. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddArgBase(@Nonnull String memberEmail, @Nullable String memberGivenName, @Nullable String memberSurname, @Nullable String memberExternalId, @Nullable String memberPersistentId, boolean sendWelcomeEmail, @Nullable Boolean isDirectoryRestricted) { + if (memberEmail == null) { + throw new IllegalArgumentException("Required value for 'memberEmail' is null"); + } + if (memberEmail.length() > 255) { + throw new IllegalArgumentException("String 'memberEmail' is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", memberEmail)) { + throw new IllegalArgumentException("String 'memberEmail' does not match pattern"); + } + this.memberEmail = memberEmail; + if (memberGivenName != null) { + if (memberGivenName.length() > 100) { + throw new IllegalArgumentException("String 'memberGivenName' is longer than 100"); + } + if (!Pattern.matches("[^/:?*<>\"|]*", memberGivenName)) { + throw new IllegalArgumentException("String 'memberGivenName' does not match pattern"); + } + } + this.memberGivenName = memberGivenName; + if (memberSurname != null) { + if (memberSurname.length() > 100) { + throw new IllegalArgumentException("String 'memberSurname' is longer than 100"); + } + if (!Pattern.matches("[^/:?*<>\"|]*", memberSurname)) { + throw new IllegalArgumentException("String 'memberSurname' does not match pattern"); + } + } + this.memberSurname = memberSurname; + if (memberExternalId != null) { + if (memberExternalId.length() > 64) { + throw new IllegalArgumentException("String 'memberExternalId' is longer than 64"); + } + } + this.memberExternalId = memberExternalId; + this.memberPersistentId = memberPersistentId; + this.sendWelcomeEmail = sendWelcomeEmail; + this.isDirectoryRestricted = isDirectoryRestricted; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddArgBase(@Nonnull String memberEmail) { + this(memberEmail, null, null, null, null, true, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getMemberEmail() { + return memberEmail; + } + + /** + * Member's first name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberGivenName() { + return memberGivenName; + } + + /** + * Member's last name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberSurname() { + return memberSurname; + } + + /** + * External ID for member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberExternalId() { + return memberExternalId; + } + + /** + * Persistent ID for member. This field is only available to teams using + * persistent ID SAML configuration. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberPersistentId() { + return memberPersistentId; + } + + /** + * Whether to send a welcome email to the member. If send_welcome_email is + * false, no email invitation will be sent to the user. This may be useful + * for apps using single sign-on (SSO) flows for onboarding that want to + * handle announcements themselves. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getSendWelcomeEmail() { + return sendWelcomeEmail; + } + + /** + * Whether a user is directory restricted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsDirectoryRestricted() { + return isDirectoryRestricted; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String memberEmail) { + return new Builder(memberEmail); + } + + /** + * Builder for {@link MemberAddArgBase}. + */ + public static class Builder { + protected final String memberEmail; + + protected String memberGivenName; + protected String memberSurname; + protected String memberExternalId; + protected String memberPersistentId; + protected boolean sendWelcomeEmail; + protected Boolean isDirectoryRestricted; + + protected Builder(String memberEmail) { + if (memberEmail == null) { + throw new IllegalArgumentException("Required value for 'memberEmail' is null"); + } + if (memberEmail.length() > 255) { + throw new IllegalArgumentException("String 'memberEmail' is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", memberEmail)) { + throw new IllegalArgumentException("String 'memberEmail' does not match pattern"); + } + this.memberEmail = memberEmail; + this.memberGivenName = null; + this.memberSurname = null; + this.memberExternalId = null; + this.memberPersistentId = null; + this.sendWelcomeEmail = true; + this.isDirectoryRestricted = null; + } + + /** + * Set value for optional field. + * + * @param memberGivenName Member's first name. Must have length of at + * most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberGivenName(String memberGivenName) { + if (memberGivenName != null) { + if (memberGivenName.length() > 100) { + throw new IllegalArgumentException("String 'memberGivenName' is longer than 100"); + } + if (!Pattern.matches("[^/:?*<>\"|]*", memberGivenName)) { + throw new IllegalArgumentException("String 'memberGivenName' does not match pattern"); + } + } + this.memberGivenName = memberGivenName; + return this; + } + + /** + * Set value for optional field. + * + * @param memberSurname Member's last name. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberSurname(String memberSurname) { + if (memberSurname != null) { + if (memberSurname.length() > 100) { + throw new IllegalArgumentException("String 'memberSurname' is longer than 100"); + } + if (!Pattern.matches("[^/:?*<>\"|]*", memberSurname)) { + throw new IllegalArgumentException("String 'memberSurname' does not match pattern"); + } + } + this.memberSurname = memberSurname; + return this; + } + + /** + * Set value for optional field. + * + * @param memberExternalId External ID for member. Must have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberExternalId(String memberExternalId) { + if (memberExternalId != null) { + if (memberExternalId.length() > 64) { + throw new IllegalArgumentException("String 'memberExternalId' is longer than 64"); + } + } + this.memberExternalId = memberExternalId; + return this; + } + + /** + * Set value for optional field. + * + * @param memberPersistentId Persistent ID for member. This field is + * only available to teams using persistent ID SAML configuration. + * + * @return this builder + */ + public Builder withMemberPersistentId(String memberPersistentId) { + this.memberPersistentId = memberPersistentId; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param sendWelcomeEmail Whether to send a welcome email to the + * member. If send_welcome_email is false, no email invitation will + * be sent to the user. This may be useful for apps using single + * sign-on (SSO) flows for onboarding that want to handle + * announcements themselves. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withSendWelcomeEmail(Boolean sendWelcomeEmail) { + if (sendWelcomeEmail != null) { + this.sendWelcomeEmail = sendWelcomeEmail; + } + else { + this.sendWelcomeEmail = true; + } + return this; + } + + /** + * Set value for optional field. + * + * @param isDirectoryRestricted Whether a user is directory restricted. + * + * @return this builder + */ + public Builder withIsDirectoryRestricted(Boolean isDirectoryRestricted) { + this.isDirectoryRestricted = isDirectoryRestricted; + return this; + } + + /** + * Builds an instance of {@link MemberAddArgBase} configured with this + * builder's values + * + * @return new instance of {@link MemberAddArgBase} + */ + public MemberAddArgBase build() { + return new MemberAddArgBase(memberEmail, memberGivenName, memberSurname, memberExternalId, memberPersistentId, sendWelcomeEmail, isDirectoryRestricted); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.memberEmail, + this.memberGivenName, + this.memberSurname, + this.memberExternalId, + this.memberPersistentId, + this.sendWelcomeEmail, + this.isDirectoryRestricted + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAddArgBase other = (MemberAddArgBase) obj; + return ((this.memberEmail == other.memberEmail) || (this.memberEmail.equals(other.memberEmail))) + && ((this.memberGivenName == other.memberGivenName) || (this.memberGivenName != null && this.memberGivenName.equals(other.memberGivenName))) + && ((this.memberSurname == other.memberSurname) || (this.memberSurname != null && this.memberSurname.equals(other.memberSurname))) + && ((this.memberExternalId == other.memberExternalId) || (this.memberExternalId != null && this.memberExternalId.equals(other.memberExternalId))) + && ((this.memberPersistentId == other.memberPersistentId) || (this.memberPersistentId != null && this.memberPersistentId.equals(other.memberPersistentId))) + && (this.sendWelcomeEmail == other.sendWelcomeEmail) + && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddArgBase value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member_email"); + StoneSerializers.string().serialize(value.memberEmail, g); + if (value.memberGivenName != null) { + g.writeFieldName("member_given_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberGivenName, g); + } + if (value.memberSurname != null) { + g.writeFieldName("member_surname"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberSurname, g); + } + if (value.memberExternalId != null) { + g.writeFieldName("member_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberExternalId, g); + } + if (value.memberPersistentId != null) { + g.writeFieldName("member_persistent_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberPersistentId, g); + } + g.writeFieldName("send_welcome_email"); + StoneSerializers.boolean_().serialize(value.sendWelcomeEmail, g); + if (value.isDirectoryRestricted != null) { + g.writeFieldName("is_directory_restricted"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isDirectoryRestricted, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAddArgBase deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAddArgBase value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_memberEmail = null; + String f_memberGivenName = null; + String f_memberSurname = null; + String f_memberExternalId = null; + String f_memberPersistentId = null; + Boolean f_sendWelcomeEmail = true; + Boolean f_isDirectoryRestricted = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member_email".equals(field)) { + f_memberEmail = StoneSerializers.string().deserialize(p); + } + else if ("member_given_name".equals(field)) { + f_memberGivenName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_surname".equals(field)) { + f_memberSurname = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_external_id".equals(field)) { + f_memberExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_persistent_id".equals(field)) { + f_memberPersistentId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("send_welcome_email".equals(field)) { + f_sendWelcomeEmail = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_directory_restricted".equals(field)) { + f_isDirectoryRestricted = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_memberEmail == null) { + throw new JsonParseException(p, "Required field \"member_email\" missing."); + } + value = new MemberAddArgBase(f_memberEmail, f_memberGivenName, f_memberSurname, f_memberExternalId, f_memberPersistentId, f_sendWelcomeEmail, f_isDirectoryRestricted); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddResult.java new file mode 100644 index 000000000..50cfafb06 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddResult.java @@ -0,0 +1,1318 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to the + * team - the other values explain the type of failure that occurred, and + * include the email of the user for which the operation has failed. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class MemberAddResult { + // union team.MemberAddResult (team_members.stone) + + /** + * Discriminating tag type for {@link MemberAddResult}. + */ + public enum Tag { + /** + * Team is already full. The organization has no available licenses. + */ + TEAM_LICENSE_LIMIT, // String + /** + * Team is already full. The free team member limit has been reached. + */ + FREE_TEAM_MEMBER_LIMIT_REACHED, // String + /** + * User is already on this team. The provided email address is + * associated with a user who is already a member of (including in + * recoverable state) or invited to the team. + */ + USER_ALREADY_ON_TEAM, // String + /** + * User is already on another team. The provided email address is + * associated with a user that is already a member or invited to another + * team. + */ + USER_ON_ANOTHER_TEAM, // String + /** + * User is already paired. + */ + USER_ALREADY_PAIRED, // String + /** + * User migration has failed. + */ + USER_MIGRATION_FAILED, // String + /** + * A user with the given external member ID already exists on the team + * (including in recoverable state). + */ + DUPLICATE_EXTERNAL_MEMBER_ID, // String + /** + * A user with the given persistent ID already exists on the team + * (including in recoverable state). + */ + DUPLICATE_MEMBER_PERSISTENT_ID, // String + /** + * Persistent ID is only available to teams with persistent ID SAML + * configuration. Please contact Dropbox for more information. + */ + PERSISTENT_ID_DISABLED, // String + /** + * User creation has failed. + */ + USER_CREATION_FAILED, // String + /** + * Describes a user that was successfully added to the team. + */ + SUCCESS; // TeamMemberInfo + } + + private Tag _tag; + private String teamLicenseLimitValue; + private String freeTeamMemberLimitReachedValue; + private String userAlreadyOnTeamValue; + private String userOnAnotherTeamValue; + private String userAlreadyPairedValue; + private String userMigrationFailedValue; + private String duplicateExternalMemberIdValue; + private String duplicateMemberPersistentIdValue; + private String persistentIdDisabledValue; + private String userCreationFailedValue; + private TeamMemberInfo successValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MemberAddResult() { + } + + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param _tag Discriminating tag for this instance. + */ + private MemberAddResult withTag(Tag _tag) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param teamLicenseLimitValue Team is already full. The organization has + * no available licenses. Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndTeamLicenseLimit(Tag _tag, String teamLicenseLimitValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.teamLicenseLimitValue = teamLicenseLimitValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param freeTeamMemberLimitReachedValue Team is already full. The free + * team member limit has been reached. Must have length of at most 255, + * match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndFreeTeamMemberLimitReached(Tag _tag, String freeTeamMemberLimitReachedValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.freeTeamMemberLimitReachedValue = freeTeamMemberLimitReachedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userAlreadyOnTeamValue User is already on this team. The provided + * email address is associated with a user who is already a member of + * (including in recoverable state) or invited to the team. Must have + * length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndUserAlreadyOnTeam(Tag _tag, String userAlreadyOnTeamValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.userAlreadyOnTeamValue = userAlreadyOnTeamValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userOnAnotherTeamValue User is already on another team. The + * provided email address is associated with a user that is already a + * member or invited to another team. Must have length of at most 255, + * match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndUserOnAnotherTeam(Tag _tag, String userOnAnotherTeamValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.userOnAnotherTeamValue = userOnAnotherTeamValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userAlreadyPairedValue User is already paired. Must have length + * of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndUserAlreadyPaired(Tag _tag, String userAlreadyPairedValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.userAlreadyPairedValue = userAlreadyPairedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userMigrationFailedValue User migration has failed. Must have + * length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndUserMigrationFailed(Tag _tag, String userMigrationFailedValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.userMigrationFailedValue = userMigrationFailedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param duplicateExternalMemberIdValue A user with the given external + * member ID already exists on the team (including in recoverable + * state). Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndDuplicateExternalMemberId(Tag _tag, String duplicateExternalMemberIdValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.duplicateExternalMemberIdValue = duplicateExternalMemberIdValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param duplicateMemberPersistentIdValue A user with the given persistent + * ID already exists on the team (including in recoverable state). Must + * have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndDuplicateMemberPersistentId(Tag _tag, String duplicateMemberPersistentIdValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.duplicateMemberPersistentIdValue = duplicateMemberPersistentIdValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param persistentIdDisabledValue Persistent ID is only available to + * teams with persistent ID SAML configuration. Please contact Dropbox + * for more information. Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndPersistentIdDisabled(Tag _tag, String persistentIdDisabledValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.persistentIdDisabledValue = persistentIdDisabledValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userCreationFailedValue User creation has failed. Must have + * length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndUserCreationFailed(Tag _tag, String userCreationFailedValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.userCreationFailedValue = userCreationFailedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param successValue Describes a user that was successfully added to the + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddResult withTagAndSuccess(Tag _tag, TeamMemberInfo successValue) { + MemberAddResult result = new MemberAddResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MemberAddResult}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_LICENSE_LIMIT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_LICENSE_LIMIT}, {@code false} otherwise. + */ + public boolean isTeamLicenseLimit() { + return this._tag == Tag.TEAM_LICENSE_LIMIT; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#TEAM_LICENSE_LIMIT}. + * + *

Team is already full. The organization has no available licenses. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#TEAM_LICENSE_LIMIT}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult teamLicenseLimit(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndTeamLicenseLimit(Tag.TEAM_LICENSE_LIMIT, value); + } + + /** + * Team is already full. The organization has no available licenses. + * + *

This instance must be tagged as {@link Tag#TEAM_LICENSE_LIMIT}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTeamLicenseLimit} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamLicenseLimit} is {@code + * false}. + */ + public String getTeamLicenseLimitValue() { + if (this._tag != Tag.TEAM_LICENSE_LIMIT) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_LICENSE_LIMIT, but was Tag." + this._tag.name()); + } + return teamLicenseLimitValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}, {@code false} otherwise. + */ + public boolean isFreeTeamMemberLimitReached() { + return this._tag == Tag.FREE_TEAM_MEMBER_LIMIT_REACHED; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}. + * + *

Team is already full. The free team member limit has been reached. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult freeTeamMemberLimitReached(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndFreeTeamMemberLimitReached(Tag.FREE_TEAM_MEMBER_LIMIT_REACHED, value); + } + + /** + * Team is already full. The free team member limit has been reached. + * + *

This instance must be tagged as {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isFreeTeamMemberLimitReached} is {@code true}. + * + * @throws IllegalStateException If {@link #isFreeTeamMemberLimitReached} + * is {@code false}. + */ + public String getFreeTeamMemberLimitReachedValue() { + if (this._tag != Tag.FREE_TEAM_MEMBER_LIMIT_REACHED) { + throw new IllegalStateException("Invalid tag: required Tag.FREE_TEAM_MEMBER_LIMIT_REACHED, but was Tag." + this._tag.name()); + } + return freeTeamMemberLimitReachedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_ALREADY_ON_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ALREADY_ON_TEAM}, {@code false} otherwise. + */ + public boolean isUserAlreadyOnTeam() { + return this._tag == Tag.USER_ALREADY_ON_TEAM; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#USER_ALREADY_ON_TEAM}. + * + *

User is already on this team. The provided email address is + * associated with a user who is already a member of (including in + * recoverable state) or invited to the team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#USER_ALREADY_ON_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult userAlreadyOnTeam(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndUserAlreadyOnTeam(Tag.USER_ALREADY_ON_TEAM, value); + } + + /** + * User is already on this team. The provided email address is associated + * with a user who is already a member of (including in recoverable state) + * or invited to the team. + * + *

This instance must be tagged as {@link Tag#USER_ALREADY_ON_TEAM}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserAlreadyOnTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserAlreadyOnTeam} is {@code + * false}. + */ + public String getUserAlreadyOnTeamValue() { + if (this._tag != Tag.USER_ALREADY_ON_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ALREADY_ON_TEAM, but was Tag." + this._tag.name()); + } + return userAlreadyOnTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_ON_ANOTHER_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ON_ANOTHER_TEAM}, {@code false} otherwise. + */ + public boolean isUserOnAnotherTeam() { + return this._tag == Tag.USER_ON_ANOTHER_TEAM; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#USER_ON_ANOTHER_TEAM}. + * + *

User is already on another team. The provided email address is + * associated with a user that is already a member or invited to another + * team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#USER_ON_ANOTHER_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult userOnAnotherTeam(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndUserOnAnotherTeam(Tag.USER_ON_ANOTHER_TEAM, value); + } + + /** + * User is already on another team. The provided email address is associated + * with a user that is already a member or invited to another team. + * + *

This instance must be tagged as {@link Tag#USER_ON_ANOTHER_TEAM}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserOnAnotherTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserOnAnotherTeam} is {@code + * false}. + */ + public String getUserOnAnotherTeamValue() { + if (this._tag != Tag.USER_ON_ANOTHER_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ON_ANOTHER_TEAM, but was Tag." + this._tag.name()); + } + return userOnAnotherTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_ALREADY_PAIRED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ALREADY_PAIRED}, {@code false} otherwise. + */ + public boolean isUserAlreadyPaired() { + return this._tag == Tag.USER_ALREADY_PAIRED; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#USER_ALREADY_PAIRED}. + * + *

User is already paired.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#USER_ALREADY_PAIRED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult userAlreadyPaired(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndUserAlreadyPaired(Tag.USER_ALREADY_PAIRED, value); + } + + /** + * User is already paired. + * + *

This instance must be tagged as {@link Tag#USER_ALREADY_PAIRED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserAlreadyPaired} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserAlreadyPaired} is {@code + * false}. + */ + public String getUserAlreadyPairedValue() { + if (this._tag != Tag.USER_ALREADY_PAIRED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ALREADY_PAIRED, but was Tag." + this._tag.name()); + } + return userAlreadyPairedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_MIGRATION_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_MIGRATION_FAILED}, {@code false} otherwise. + */ + public boolean isUserMigrationFailed() { + return this._tag == Tag.USER_MIGRATION_FAILED; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#USER_MIGRATION_FAILED}. + * + *

User migration has failed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#USER_MIGRATION_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult userMigrationFailed(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndUserMigrationFailed(Tag.USER_MIGRATION_FAILED, value); + } + + /** + * User migration has failed. + * + *

This instance must be tagged as {@link Tag#USER_MIGRATION_FAILED}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserMigrationFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserMigrationFailed} is + * {@code false}. + */ + public String getUserMigrationFailedValue() { + if (this._tag != Tag.USER_MIGRATION_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_MIGRATION_FAILED, but was Tag." + this._tag.name()); + } + return userMigrationFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}, {@code false} otherwise. + */ + public boolean isDuplicateExternalMemberId() { + return this._tag == Tag.DUPLICATE_EXTERNAL_MEMBER_ID; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#DUPLICATE_EXTERNAL_MEMBER_ID}. + * + *

A user with the given external member ID already exists on the team + * (including in recoverable state).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult duplicateExternalMemberId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndDuplicateExternalMemberId(Tag.DUPLICATE_EXTERNAL_MEMBER_ID, value); + } + + /** + * A user with the given external member ID already exists on the team + * (including in recoverable state). + * + *

This instance must be tagged as {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isDuplicateExternalMemberId} is {@code true}. + * + * @throws IllegalStateException If {@link #isDuplicateExternalMemberId} is + * {@code false}. + */ + public String getDuplicateExternalMemberIdValue() { + if (this._tag != Tag.DUPLICATE_EXTERNAL_MEMBER_ID) { + throw new IllegalStateException("Invalid tag: required Tag.DUPLICATE_EXTERNAL_MEMBER_ID, but was Tag." + this._tag.name()); + } + return duplicateExternalMemberIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}, {@code false} otherwise. + */ + public boolean isDuplicateMemberPersistentId() { + return this._tag == Tag.DUPLICATE_MEMBER_PERSISTENT_ID; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#DUPLICATE_MEMBER_PERSISTENT_ID}. + * + *

A user with the given persistent ID already exists on the team + * (including in recoverable state).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult duplicateMemberPersistentId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndDuplicateMemberPersistentId(Tag.DUPLICATE_MEMBER_PERSISTENT_ID, value); + } + + /** + * A user with the given persistent ID already exists on the team (including + * in recoverable state). + * + *

This instance must be tagged as {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isDuplicateMemberPersistentId} is {@code true}. + * + * @throws IllegalStateException If {@link #isDuplicateMemberPersistentId} + * is {@code false}. + */ + public String getDuplicateMemberPersistentIdValue() { + if (this._tag != Tag.DUPLICATE_MEMBER_PERSISTENT_ID) { + throw new IllegalStateException("Invalid tag: required Tag.DUPLICATE_MEMBER_PERSISTENT_ID, but was Tag." + this._tag.name()); + } + return duplicateMemberPersistentIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PERSISTENT_ID_DISABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PERSISTENT_ID_DISABLED}, {@code false} otherwise. + */ + public boolean isPersistentIdDisabled() { + return this._tag == Tag.PERSISTENT_ID_DISABLED; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#PERSISTENT_ID_DISABLED}. + * + *

Persistent ID is only available to teams with persistent ID SAML + * configuration. Please contact Dropbox for more information.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#PERSISTENT_ID_DISABLED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult persistentIdDisabled(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndPersistentIdDisabled(Tag.PERSISTENT_ID_DISABLED, value); + } + + /** + * Persistent ID is only available to teams with persistent ID SAML + * configuration. Please contact Dropbox for more information. + * + *

This instance must be tagged as {@link Tag#PERSISTENT_ID_DISABLED}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isPersistentIdDisabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isPersistentIdDisabled} is + * {@code false}. + */ + public String getPersistentIdDisabledValue() { + if (this._tag != Tag.PERSISTENT_ID_DISABLED) { + throw new IllegalStateException("Invalid tag: required Tag.PERSISTENT_ID_DISABLED, but was Tag." + this._tag.name()); + } + return persistentIdDisabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_CREATION_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_CREATION_FAILED}, {@code false} otherwise. + */ + public boolean isUserCreationFailed() { + return this._tag == Tag.USER_CREATION_FAILED; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#USER_CREATION_FAILED}. + * + *

User creation has failed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#USER_CREATION_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddResult userCreationFailed(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddResult().withTagAndUserCreationFailed(Tag.USER_CREATION_FAILED, value); + } + + /** + * User creation has failed. + * + *

This instance must be tagged as {@link Tag#USER_CREATION_FAILED}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserCreationFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserCreationFailed} is {@code + * false}. + */ + public String getUserCreationFailedValue() { + if (this._tag != Tag.USER_CREATION_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_CREATION_FAILED, but was Tag." + this._tag.name()); + } + return userCreationFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code MemberAddResult} that has its tag set to + * {@link Tag#SUCCESS}. + * + *

Describes a user that was successfully added to the team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddResult} with its tag set to {@link + * Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MemberAddResult success(TeamMemberInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MemberAddResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Describes a user that was successfully added to the team. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link TeamMemberInfo} value associated with this instance if + * {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public TeamMemberInfo getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.teamLicenseLimitValue, + this.freeTeamMemberLimitReachedValue, + this.userAlreadyOnTeamValue, + this.userOnAnotherTeamValue, + this.userAlreadyPairedValue, + this.userMigrationFailedValue, + this.duplicateExternalMemberIdValue, + this.duplicateMemberPersistentIdValue, + this.persistentIdDisabledValue, + this.userCreationFailedValue, + this.successValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MemberAddResult) { + MemberAddResult other = (MemberAddResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEAM_LICENSE_LIMIT: + return (this.teamLicenseLimitValue == other.teamLicenseLimitValue) || (this.teamLicenseLimitValue.equals(other.teamLicenseLimitValue)); + case FREE_TEAM_MEMBER_LIMIT_REACHED: + return (this.freeTeamMemberLimitReachedValue == other.freeTeamMemberLimitReachedValue) || (this.freeTeamMemberLimitReachedValue.equals(other.freeTeamMemberLimitReachedValue)); + case USER_ALREADY_ON_TEAM: + return (this.userAlreadyOnTeamValue == other.userAlreadyOnTeamValue) || (this.userAlreadyOnTeamValue.equals(other.userAlreadyOnTeamValue)); + case USER_ON_ANOTHER_TEAM: + return (this.userOnAnotherTeamValue == other.userOnAnotherTeamValue) || (this.userOnAnotherTeamValue.equals(other.userOnAnotherTeamValue)); + case USER_ALREADY_PAIRED: + return (this.userAlreadyPairedValue == other.userAlreadyPairedValue) || (this.userAlreadyPairedValue.equals(other.userAlreadyPairedValue)); + case USER_MIGRATION_FAILED: + return (this.userMigrationFailedValue == other.userMigrationFailedValue) || (this.userMigrationFailedValue.equals(other.userMigrationFailedValue)); + case DUPLICATE_EXTERNAL_MEMBER_ID: + return (this.duplicateExternalMemberIdValue == other.duplicateExternalMemberIdValue) || (this.duplicateExternalMemberIdValue.equals(other.duplicateExternalMemberIdValue)); + case DUPLICATE_MEMBER_PERSISTENT_ID: + return (this.duplicateMemberPersistentIdValue == other.duplicateMemberPersistentIdValue) || (this.duplicateMemberPersistentIdValue.equals(other.duplicateMemberPersistentIdValue)); + case PERSISTENT_ID_DISABLED: + return (this.persistentIdDisabledValue == other.persistentIdDisabledValue) || (this.persistentIdDisabledValue.equals(other.persistentIdDisabledValue)); + case USER_CREATION_FAILED: + return (this.userCreationFailedValue == other.userCreationFailedValue) || (this.userCreationFailedValue.equals(other.userCreationFailedValue)); + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEAM_LICENSE_LIMIT: { + g.writeStartObject(); + writeTag("team_license_limit", g); + g.writeFieldName("team_license_limit"); + StoneSerializers.string().serialize(value.teamLicenseLimitValue, g); + g.writeEndObject(); + break; + } + case FREE_TEAM_MEMBER_LIMIT_REACHED: { + g.writeStartObject(); + writeTag("free_team_member_limit_reached", g); + g.writeFieldName("free_team_member_limit_reached"); + StoneSerializers.string().serialize(value.freeTeamMemberLimitReachedValue, g); + g.writeEndObject(); + break; + } + case USER_ALREADY_ON_TEAM: { + g.writeStartObject(); + writeTag("user_already_on_team", g); + g.writeFieldName("user_already_on_team"); + StoneSerializers.string().serialize(value.userAlreadyOnTeamValue, g); + g.writeEndObject(); + break; + } + case USER_ON_ANOTHER_TEAM: { + g.writeStartObject(); + writeTag("user_on_another_team", g); + g.writeFieldName("user_on_another_team"); + StoneSerializers.string().serialize(value.userOnAnotherTeamValue, g); + g.writeEndObject(); + break; + } + case USER_ALREADY_PAIRED: { + g.writeStartObject(); + writeTag("user_already_paired", g); + g.writeFieldName("user_already_paired"); + StoneSerializers.string().serialize(value.userAlreadyPairedValue, g); + g.writeEndObject(); + break; + } + case USER_MIGRATION_FAILED: { + g.writeStartObject(); + writeTag("user_migration_failed", g); + g.writeFieldName("user_migration_failed"); + StoneSerializers.string().serialize(value.userMigrationFailedValue, g); + g.writeEndObject(); + break; + } + case DUPLICATE_EXTERNAL_MEMBER_ID: { + g.writeStartObject(); + writeTag("duplicate_external_member_id", g); + g.writeFieldName("duplicate_external_member_id"); + StoneSerializers.string().serialize(value.duplicateExternalMemberIdValue, g); + g.writeEndObject(); + break; + } + case DUPLICATE_MEMBER_PERSISTENT_ID: { + g.writeStartObject(); + writeTag("duplicate_member_persistent_id", g); + g.writeFieldName("duplicate_member_persistent_id"); + StoneSerializers.string().serialize(value.duplicateMemberPersistentIdValue, g); + g.writeEndObject(); + break; + } + case PERSISTENT_ID_DISABLED: { + g.writeStartObject(); + writeTag("persistent_id_disabled", g); + g.writeFieldName("persistent_id_disabled"); + StoneSerializers.string().serialize(value.persistentIdDisabledValue, g); + g.writeEndObject(); + break; + } + case USER_CREATION_FAILED: { + g.writeStartObject(); + writeTag("user_creation_failed", g); + g.writeFieldName("user_creation_failed"); + StoneSerializers.string().serialize(value.userCreationFailedValue, g); + g.writeEndObject(); + break; + } + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + TeamMemberInfo.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public MemberAddResult deserialize(JsonParser p) throws IOException, JsonParseException { + MemberAddResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team_license_limit".equals(tag)) { + String fieldValue = null; + expectField("team_license_limit", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.teamLicenseLimit(fieldValue); + } + else if ("free_team_member_limit_reached".equals(tag)) { + String fieldValue = null; + expectField("free_team_member_limit_reached", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.freeTeamMemberLimitReached(fieldValue); + } + else if ("user_already_on_team".equals(tag)) { + String fieldValue = null; + expectField("user_already_on_team", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.userAlreadyOnTeam(fieldValue); + } + else if ("user_on_another_team".equals(tag)) { + String fieldValue = null; + expectField("user_on_another_team", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.userOnAnotherTeam(fieldValue); + } + else if ("user_already_paired".equals(tag)) { + String fieldValue = null; + expectField("user_already_paired", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.userAlreadyPaired(fieldValue); + } + else if ("user_migration_failed".equals(tag)) { + String fieldValue = null; + expectField("user_migration_failed", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.userMigrationFailed(fieldValue); + } + else if ("duplicate_external_member_id".equals(tag)) { + String fieldValue = null; + expectField("duplicate_external_member_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.duplicateExternalMemberId(fieldValue); + } + else if ("duplicate_member_persistent_id".equals(tag)) { + String fieldValue = null; + expectField("duplicate_member_persistent_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.duplicateMemberPersistentId(fieldValue); + } + else if ("persistent_id_disabled".equals(tag)) { + String fieldValue = null; + expectField("persistent_id_disabled", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.persistentIdDisabled(fieldValue); + } + else if ("user_creation_failed".equals(tag)) { + String fieldValue = null; + expectField("user_creation_failed", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddResult.userCreationFailed(fieldValue); + } + else if ("success".equals(tag)) { + TeamMemberInfo fieldValue = null; + fieldValue = TeamMemberInfo.Serializer.INSTANCE.deserialize(p, true); + value = MemberAddResult.success(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddV2Arg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddV2Arg.java new file mode 100644 index 000000000..d374d24b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddV2Arg.java @@ -0,0 +1,501 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class MemberAddV2Arg extends MemberAddArgBase { + // struct team.MemberAddV2Arg (team_members.stone) + + @Nullable + protected final List roleIds; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param memberGivenName Member's first name. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * @param memberSurname Member's last name. Must have length of at most 100 + * and match pattern "{@code [^/:?*<>\"|]*}". + * @param memberExternalId External ID for member. Must have length of at + * most 64. + * @param memberPersistentId Persistent ID for member. This field is only + * available to teams using persistent ID SAML configuration. + * @param sendWelcomeEmail Whether to send a welcome email to the member. + * If send_welcome_email is false, no email invitation will be sent to + * the user. This may be useful for apps using single sign-on (SSO) + * flows for onboarding that want to handle announcements themselves. + * @param isDirectoryRestricted Whether a user is directory restricted. + * @param roleIds Must contain at most 1 items and not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddV2Arg(@Nonnull String memberEmail, @Nullable String memberGivenName, @Nullable String memberSurname, @Nullable String memberExternalId, @Nullable String memberPersistentId, boolean sendWelcomeEmail, @Nullable Boolean isDirectoryRestricted, @Nullable List roleIds) { + super(memberEmail, memberGivenName, memberSurname, memberExternalId, memberPersistentId, sendWelcomeEmail, isDirectoryRestricted); + if (roleIds != null) { + if (roleIds.size() > 1) { + throw new IllegalArgumentException("List 'roleIds' has more than 1 items"); + } + for (String x : roleIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'roleIds' is null"); + } + if (x.length() > 128) { + throw new IllegalArgumentException("Stringan item in list 'roleIds' is longer than 128"); + } + if (!Pattern.matches("pid_dbtmr:.*", x)) { + throw new IllegalArgumentException("Stringan item in list 'roleIds' does not match pattern"); + } + } + } + this.roleIds = roleIds; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddV2Arg(@Nonnull String memberEmail) { + this(memberEmail, null, null, null, null, true, null, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getMemberEmail() { + return memberEmail; + } + + /** + * Member's first name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberGivenName() { + return memberGivenName; + } + + /** + * Member's last name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberSurname() { + return memberSurname; + } + + /** + * External ID for member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberExternalId() { + return memberExternalId; + } + + /** + * Persistent ID for member. This field is only available to teams using + * persistent ID SAML configuration. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberPersistentId() { + return memberPersistentId; + } + + /** + * Whether to send a welcome email to the member. If send_welcome_email is + * false, no email invitation will be sent to the user. This may be useful + * for apps using single sign-on (SSO) flows for onboarding that want to + * handle announcements themselves. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getSendWelcomeEmail() { + return sendWelcomeEmail; + } + + /** + * Whether a user is directory restricted. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsDirectoryRestricted() { + return isDirectoryRestricted; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getRoleIds() { + return roleIds; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param memberEmail Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String memberEmail) { + return new Builder(memberEmail); + } + + /** + * Builder for {@link MemberAddV2Arg}. + */ + public static class Builder extends MemberAddArgBase.Builder { + + protected List roleIds; + + protected Builder(String memberEmail) { + super(memberEmail); + this.roleIds = null; + } + + /** + * Set value for optional field. + * + * @param roleIds Must contain at most 1 items and not contain a {@code + * null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withRoleIds(List roleIds) { + if (roleIds != null) { + if (roleIds.size() > 1) { + throw new IllegalArgumentException("List 'roleIds' has more than 1 items"); + } + for (String x : roleIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'roleIds' is null"); + } + if (x.length() > 128) { + throw new IllegalArgumentException("Stringan item in list 'roleIds' is longer than 128"); + } + if (!Pattern.matches("pid_dbtmr:.*", x)) { + throw new IllegalArgumentException("Stringan item in list 'roleIds' does not match pattern"); + } + } + } + this.roleIds = roleIds; + return this; + } + + /** + * Set value for optional field. + * + * @param memberGivenName Member's first name. Must have length of at + * most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberGivenName(String memberGivenName) { + super.withMemberGivenName(memberGivenName); + return this; + } + + /** + * Set value for optional field. + * + * @param memberSurname Member's last name. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberSurname(String memberSurname) { + super.withMemberSurname(memberSurname); + return this; + } + + /** + * Set value for optional field. + * + * @param memberExternalId External ID for member. Must have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberExternalId(String memberExternalId) { + super.withMemberExternalId(memberExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param memberPersistentId Persistent ID for member. This field is + * only available to teams using persistent ID SAML configuration. + * + * @return this builder + */ + public Builder withMemberPersistentId(String memberPersistentId) { + super.withMemberPersistentId(memberPersistentId); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param sendWelcomeEmail Whether to send a welcome email to the + * member. If send_welcome_email is false, no email invitation will + * be sent to the user. This may be useful for apps using single + * sign-on (SSO) flows for onboarding that want to handle + * announcements themselves. Defaults to {@code true} when set to + * {@code null}. + * + * @return this builder + */ + public Builder withSendWelcomeEmail(Boolean sendWelcomeEmail) { + super.withSendWelcomeEmail(sendWelcomeEmail); + return this; + } + + /** + * Set value for optional field. + * + * @param isDirectoryRestricted Whether a user is directory restricted. + * + * @return this builder + */ + public Builder withIsDirectoryRestricted(Boolean isDirectoryRestricted) { + super.withIsDirectoryRestricted(isDirectoryRestricted); + return this; + } + + /** + * Builds an instance of {@link MemberAddV2Arg} configured with this + * builder's values + * + * @return new instance of {@link MemberAddV2Arg} + */ + public MemberAddV2Arg build() { + return new MemberAddV2Arg(memberEmail, memberGivenName, memberSurname, memberExternalId, memberPersistentId, sendWelcomeEmail, isDirectoryRestricted, roleIds); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.roleIds + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAddV2Arg other = (MemberAddV2Arg) obj; + return ((this.memberEmail == other.memberEmail) || (this.memberEmail.equals(other.memberEmail))) + && ((this.memberGivenName == other.memberGivenName) || (this.memberGivenName != null && this.memberGivenName.equals(other.memberGivenName))) + && ((this.memberSurname == other.memberSurname) || (this.memberSurname != null && this.memberSurname.equals(other.memberSurname))) + && ((this.memberExternalId == other.memberExternalId) || (this.memberExternalId != null && this.memberExternalId.equals(other.memberExternalId))) + && ((this.memberPersistentId == other.memberPersistentId) || (this.memberPersistentId != null && this.memberPersistentId.equals(other.memberPersistentId))) + && (this.sendWelcomeEmail == other.sendWelcomeEmail) + && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) + && ((this.roleIds == other.roleIds) || (this.roleIds != null && this.roleIds.equals(other.roleIds))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddV2Arg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member_email"); + StoneSerializers.string().serialize(value.memberEmail, g); + if (value.memberGivenName != null) { + g.writeFieldName("member_given_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberGivenName, g); + } + if (value.memberSurname != null) { + g.writeFieldName("member_surname"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberSurname, g); + } + if (value.memberExternalId != null) { + g.writeFieldName("member_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberExternalId, g); + } + if (value.memberPersistentId != null) { + g.writeFieldName("member_persistent_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberPersistentId, g); + } + g.writeFieldName("send_welcome_email"); + StoneSerializers.boolean_().serialize(value.sendWelcomeEmail, g); + if (value.isDirectoryRestricted != null) { + g.writeFieldName("is_directory_restricted"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isDirectoryRestricted, g); + } + if (value.roleIds != null) { + g.writeFieldName("role_ids"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.roleIds, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAddV2Arg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAddV2Arg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_memberEmail = null; + String f_memberGivenName = null; + String f_memberSurname = null; + String f_memberExternalId = null; + String f_memberPersistentId = null; + Boolean f_sendWelcomeEmail = true; + Boolean f_isDirectoryRestricted = null; + List f_roleIds = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member_email".equals(field)) { + f_memberEmail = StoneSerializers.string().deserialize(p); + } + else if ("member_given_name".equals(field)) { + f_memberGivenName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_surname".equals(field)) { + f_memberSurname = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_external_id".equals(field)) { + f_memberExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_persistent_id".equals(field)) { + f_memberPersistentId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("send_welcome_email".equals(field)) { + f_sendWelcomeEmail = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_directory_restricted".equals(field)) { + f_isDirectoryRestricted = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("role_ids".equals(field)) { + f_roleIds = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_memberEmail == null) { + throw new JsonParseException(p, "Required field \"member_email\" missing."); + } + value = new MemberAddV2Arg(f_memberEmail, f_memberGivenName, f_memberSurname, f_memberExternalId, f_memberPersistentId, f_sendWelcomeEmail, f_isDirectoryRestricted, f_roleIds); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddV2Result.java new file mode 100644 index 000000000..0b8387ff0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberAddV2Result.java @@ -0,0 +1,1356 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to the + * team - the other values explain the type of failure that occurred, and + * include the email of the user for which the operation has failed. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MemberAddV2Result { + // union team.MemberAddV2Result (team_members.stone) + + /** + * Discriminating tag type for {@link MemberAddV2Result}. + */ + public enum Tag { + /** + * Team is already full. The organization has no available licenses. + */ + TEAM_LICENSE_LIMIT, // String + /** + * Team is already full. The free team member limit has been reached. + */ + FREE_TEAM_MEMBER_LIMIT_REACHED, // String + /** + * User is already on this team. The provided email address is + * associated with a user who is already a member of (including in + * recoverable state) or invited to the team. + */ + USER_ALREADY_ON_TEAM, // String + /** + * User is already on another team. The provided email address is + * associated with a user that is already a member or invited to another + * team. + */ + USER_ON_ANOTHER_TEAM, // String + /** + * User is already paired. + */ + USER_ALREADY_PAIRED, // String + /** + * User migration has failed. + */ + USER_MIGRATION_FAILED, // String + /** + * A user with the given external member ID already exists on the team + * (including in recoverable state). + */ + DUPLICATE_EXTERNAL_MEMBER_ID, // String + /** + * A user with the given persistent ID already exists on the team + * (including in recoverable state). + */ + DUPLICATE_MEMBER_PERSISTENT_ID, // String + /** + * Persistent ID is only available to teams with persistent ID SAML + * configuration. Please contact Dropbox for more information. + */ + PERSISTENT_ID_DISABLED, // String + /** + * User creation has failed. + */ + USER_CREATION_FAILED, // String + /** + * Describes a user that was successfully added to the team. + */ + SUCCESS, // TeamMemberInfoV2 + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MemberAddV2Result OTHER = new MemberAddV2Result().withTag(Tag.OTHER); + + private Tag _tag; + private String teamLicenseLimitValue; + private String freeTeamMemberLimitReachedValue; + private String userAlreadyOnTeamValue; + private String userOnAnotherTeamValue; + private String userAlreadyPairedValue; + private String userMigrationFailedValue; + private String duplicateExternalMemberIdValue; + private String duplicateMemberPersistentIdValue; + private String persistentIdDisabledValue; + private String userCreationFailedValue; + private TeamMemberInfoV2 successValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MemberAddV2Result() { + } + + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param _tag Discriminating tag for this instance. + */ + private MemberAddV2Result withTag(Tag _tag) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param teamLicenseLimitValue Team is already full. The organization has + * no available licenses. Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndTeamLicenseLimit(Tag _tag, String teamLicenseLimitValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.teamLicenseLimitValue = teamLicenseLimitValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param freeTeamMemberLimitReachedValue Team is already full. The free + * team member limit has been reached. Must have length of at most 255, + * match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndFreeTeamMemberLimitReached(Tag _tag, String freeTeamMemberLimitReachedValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.freeTeamMemberLimitReachedValue = freeTeamMemberLimitReachedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userAlreadyOnTeamValue User is already on this team. The provided + * email address is associated with a user who is already a member of + * (including in recoverable state) or invited to the team. Must have + * length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndUserAlreadyOnTeam(Tag _tag, String userAlreadyOnTeamValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.userAlreadyOnTeamValue = userAlreadyOnTeamValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userOnAnotherTeamValue User is already on another team. The + * provided email address is associated with a user that is already a + * member or invited to another team. Must have length of at most 255, + * match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndUserOnAnotherTeam(Tag _tag, String userOnAnotherTeamValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.userOnAnotherTeamValue = userOnAnotherTeamValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userAlreadyPairedValue User is already paired. Must have length + * of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndUserAlreadyPaired(Tag _tag, String userAlreadyPairedValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.userAlreadyPairedValue = userAlreadyPairedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userMigrationFailedValue User migration has failed. Must have + * length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndUserMigrationFailed(Tag _tag, String userMigrationFailedValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.userMigrationFailedValue = userMigrationFailedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param duplicateExternalMemberIdValue A user with the given external + * member ID already exists on the team (including in recoverable + * state). Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndDuplicateExternalMemberId(Tag _tag, String duplicateExternalMemberIdValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.duplicateExternalMemberIdValue = duplicateExternalMemberIdValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param duplicateMemberPersistentIdValue A user with the given persistent + * ID already exists on the team (including in recoverable state). Must + * have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndDuplicateMemberPersistentId(Tag _tag, String duplicateMemberPersistentIdValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.duplicateMemberPersistentIdValue = duplicateMemberPersistentIdValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param persistentIdDisabledValue Persistent ID is only available to + * teams with persistent ID SAML configuration. Please contact Dropbox + * for more information. Must have length of at most 255, match pattern + * "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndPersistentIdDisabled(Tag _tag, String persistentIdDisabledValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.persistentIdDisabledValue = persistentIdDisabledValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param userCreationFailedValue User creation has failed. Must have + * length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndUserCreationFailed(Tag _tag, String userCreationFailedValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.userCreationFailedValue = userCreationFailedValue; + return result; + } + + /** + * Describes the result of attempting to add a single user to the team. + * 'success' is the only value indicating that a user was indeed added to + * the team - the other values explain the type of failure that occurred, + * and include the email of the user for which the operation has failed. + * + * @param successValue Describes a user that was successfully added to the + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MemberAddV2Result withTagAndSuccess(Tag _tag, TeamMemberInfoV2 successValue) { + MemberAddV2Result result = new MemberAddV2Result(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MemberAddV2Result}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_LICENSE_LIMIT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_LICENSE_LIMIT}, {@code false} otherwise. + */ + public boolean isTeamLicenseLimit() { + return this._tag == Tag.TEAM_LICENSE_LIMIT; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#TEAM_LICENSE_LIMIT}. + * + *

Team is already full. The organization has no available licenses. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#TEAM_LICENSE_LIMIT}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result teamLicenseLimit(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndTeamLicenseLimit(Tag.TEAM_LICENSE_LIMIT, value); + } + + /** + * Team is already full. The organization has no available licenses. + * + *

This instance must be tagged as {@link Tag#TEAM_LICENSE_LIMIT}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isTeamLicenseLimit} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamLicenseLimit} is {@code + * false}. + */ + public String getTeamLicenseLimitValue() { + if (this._tag != Tag.TEAM_LICENSE_LIMIT) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_LICENSE_LIMIT, but was Tag." + this._tag.name()); + } + return teamLicenseLimitValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}, {@code false} otherwise. + */ + public boolean isFreeTeamMemberLimitReached() { + return this._tag == Tag.FREE_TEAM_MEMBER_LIMIT_REACHED; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}. + * + *

Team is already full. The free team member limit has been reached. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result freeTeamMemberLimitReached(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndFreeTeamMemberLimitReached(Tag.FREE_TEAM_MEMBER_LIMIT_REACHED, value); + } + + /** + * Team is already full. The free team member limit has been reached. + * + *

This instance must be tagged as {@link + * Tag#FREE_TEAM_MEMBER_LIMIT_REACHED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isFreeTeamMemberLimitReached} is {@code true}. + * + * @throws IllegalStateException If {@link #isFreeTeamMemberLimitReached} + * is {@code false}. + */ + public String getFreeTeamMemberLimitReachedValue() { + if (this._tag != Tag.FREE_TEAM_MEMBER_LIMIT_REACHED) { + throw new IllegalStateException("Invalid tag: required Tag.FREE_TEAM_MEMBER_LIMIT_REACHED, but was Tag." + this._tag.name()); + } + return freeTeamMemberLimitReachedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_ALREADY_ON_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ALREADY_ON_TEAM}, {@code false} otherwise. + */ + public boolean isUserAlreadyOnTeam() { + return this._tag == Tag.USER_ALREADY_ON_TEAM; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#USER_ALREADY_ON_TEAM}. + * + *

User is already on this team. The provided email address is + * associated with a user who is already a member of (including in + * recoverable state) or invited to the team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#USER_ALREADY_ON_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result userAlreadyOnTeam(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndUserAlreadyOnTeam(Tag.USER_ALREADY_ON_TEAM, value); + } + + /** + * User is already on this team. The provided email address is associated + * with a user who is already a member of (including in recoverable state) + * or invited to the team. + * + *

This instance must be tagged as {@link Tag#USER_ALREADY_ON_TEAM}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserAlreadyOnTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserAlreadyOnTeam} is {@code + * false}. + */ + public String getUserAlreadyOnTeamValue() { + if (this._tag != Tag.USER_ALREADY_ON_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ALREADY_ON_TEAM, but was Tag." + this._tag.name()); + } + return userAlreadyOnTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_ON_ANOTHER_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ON_ANOTHER_TEAM}, {@code false} otherwise. + */ + public boolean isUserOnAnotherTeam() { + return this._tag == Tag.USER_ON_ANOTHER_TEAM; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#USER_ON_ANOTHER_TEAM}. + * + *

User is already on another team. The provided email address is + * associated with a user that is already a member or invited to another + * team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#USER_ON_ANOTHER_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result userOnAnotherTeam(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndUserOnAnotherTeam(Tag.USER_ON_ANOTHER_TEAM, value); + } + + /** + * User is already on another team. The provided email address is associated + * with a user that is already a member or invited to another team. + * + *

This instance must be tagged as {@link Tag#USER_ON_ANOTHER_TEAM}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserOnAnotherTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserOnAnotherTeam} is {@code + * false}. + */ + public String getUserOnAnotherTeamValue() { + if (this._tag != Tag.USER_ON_ANOTHER_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ON_ANOTHER_TEAM, but was Tag." + this._tag.name()); + } + return userOnAnotherTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_ALREADY_PAIRED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_ALREADY_PAIRED}, {@code false} otherwise. + */ + public boolean isUserAlreadyPaired() { + return this._tag == Tag.USER_ALREADY_PAIRED; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#USER_ALREADY_PAIRED}. + * + *

User is already paired.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#USER_ALREADY_PAIRED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result userAlreadyPaired(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndUserAlreadyPaired(Tag.USER_ALREADY_PAIRED, value); + } + + /** + * User is already paired. + * + *

This instance must be tagged as {@link Tag#USER_ALREADY_PAIRED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserAlreadyPaired} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserAlreadyPaired} is {@code + * false}. + */ + public String getUserAlreadyPairedValue() { + if (this._tag != Tag.USER_ALREADY_PAIRED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_ALREADY_PAIRED, but was Tag." + this._tag.name()); + } + return userAlreadyPairedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_MIGRATION_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_MIGRATION_FAILED}, {@code false} otherwise. + */ + public boolean isUserMigrationFailed() { + return this._tag == Tag.USER_MIGRATION_FAILED; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#USER_MIGRATION_FAILED}. + * + *

User migration has failed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#USER_MIGRATION_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result userMigrationFailed(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndUserMigrationFailed(Tag.USER_MIGRATION_FAILED, value); + } + + /** + * User migration has failed. + * + *

This instance must be tagged as {@link Tag#USER_MIGRATION_FAILED}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserMigrationFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserMigrationFailed} is + * {@code false}. + */ + public String getUserMigrationFailedValue() { + if (this._tag != Tag.USER_MIGRATION_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_MIGRATION_FAILED, but was Tag." + this._tag.name()); + } + return userMigrationFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}, {@code false} otherwise. + */ + public boolean isDuplicateExternalMemberId() { + return this._tag == Tag.DUPLICATE_EXTERNAL_MEMBER_ID; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#DUPLICATE_EXTERNAL_MEMBER_ID}. + * + *

A user with the given external member ID already exists on the team + * (including in recoverable state).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result duplicateExternalMemberId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndDuplicateExternalMemberId(Tag.DUPLICATE_EXTERNAL_MEMBER_ID, value); + } + + /** + * A user with the given external member ID already exists on the team + * (including in recoverable state). + * + *

This instance must be tagged as {@link + * Tag#DUPLICATE_EXTERNAL_MEMBER_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isDuplicateExternalMemberId} is {@code true}. + * + * @throws IllegalStateException If {@link #isDuplicateExternalMemberId} is + * {@code false}. + */ + public String getDuplicateExternalMemberIdValue() { + if (this._tag != Tag.DUPLICATE_EXTERNAL_MEMBER_ID) { + throw new IllegalStateException("Invalid tag: required Tag.DUPLICATE_EXTERNAL_MEMBER_ID, but was Tag." + this._tag.name()); + } + return duplicateExternalMemberIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}, {@code false} otherwise. + */ + public boolean isDuplicateMemberPersistentId() { + return this._tag == Tag.DUPLICATE_MEMBER_PERSISTENT_ID; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#DUPLICATE_MEMBER_PERSISTENT_ID}. + * + *

A user with the given persistent ID already exists on the team + * (including in recoverable state).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result duplicateMemberPersistentId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndDuplicateMemberPersistentId(Tag.DUPLICATE_MEMBER_PERSISTENT_ID, value); + } + + /** + * A user with the given persistent ID already exists on the team (including + * in recoverable state). + * + *

This instance must be tagged as {@link + * Tag#DUPLICATE_MEMBER_PERSISTENT_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isDuplicateMemberPersistentId} is {@code true}. + * + * @throws IllegalStateException If {@link #isDuplicateMemberPersistentId} + * is {@code false}. + */ + public String getDuplicateMemberPersistentIdValue() { + if (this._tag != Tag.DUPLICATE_MEMBER_PERSISTENT_ID) { + throw new IllegalStateException("Invalid tag: required Tag.DUPLICATE_MEMBER_PERSISTENT_ID, but was Tag." + this._tag.name()); + } + return duplicateMemberPersistentIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PERSISTENT_ID_DISABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PERSISTENT_ID_DISABLED}, {@code false} otherwise. + */ + public boolean isPersistentIdDisabled() { + return this._tag == Tag.PERSISTENT_ID_DISABLED; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#PERSISTENT_ID_DISABLED}. + * + *

Persistent ID is only available to teams with persistent ID SAML + * configuration. Please contact Dropbox for more information.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#PERSISTENT_ID_DISABLED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result persistentIdDisabled(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndPersistentIdDisabled(Tag.PERSISTENT_ID_DISABLED, value); + } + + /** + * Persistent ID is only available to teams with persistent ID SAML + * configuration. Please contact Dropbox for more information. + * + *

This instance must be tagged as {@link Tag#PERSISTENT_ID_DISABLED}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isPersistentIdDisabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isPersistentIdDisabled} is + * {@code false}. + */ + public String getPersistentIdDisabledValue() { + if (this._tag != Tag.PERSISTENT_ID_DISABLED) { + throw new IllegalStateException("Invalid tag: required Tag.PERSISTENT_ID_DISABLED, but was Tag." + this._tag.name()); + } + return persistentIdDisabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_CREATION_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_CREATION_FAILED}, {@code false} otherwise. + */ + public boolean isUserCreationFailed() { + return this._tag == Tag.USER_CREATION_FAILED; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#USER_CREATION_FAILED}. + * + *

User creation has failed.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#USER_CREATION_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static MemberAddV2Result userCreationFailed(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new MemberAddV2Result().withTagAndUserCreationFailed(Tag.USER_CREATION_FAILED, value); + } + + /** + * User creation has failed. + * + *

This instance must be tagged as {@link Tag#USER_CREATION_FAILED}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isUserCreationFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserCreationFailed} is {@code + * false}. + */ + public String getUserCreationFailedValue() { + if (this._tag != Tag.USER_CREATION_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_CREATION_FAILED, but was Tag." + this._tag.name()); + } + return userCreationFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code MemberAddV2Result} that has its tag set to + * {@link Tag#SUCCESS}. + * + *

Describes a user that was successfully added to the team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MemberAddV2Result} with its tag set to {@link + * Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MemberAddV2Result success(TeamMemberInfoV2 value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MemberAddV2Result().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Describes a user that was successfully added to the team. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link TeamMemberInfoV2} value associated with this instance + * if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public TeamMemberInfoV2 getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.teamLicenseLimitValue, + this.freeTeamMemberLimitReachedValue, + this.userAlreadyOnTeamValue, + this.userOnAnotherTeamValue, + this.userAlreadyPairedValue, + this.userMigrationFailedValue, + this.duplicateExternalMemberIdValue, + this.duplicateMemberPersistentIdValue, + this.persistentIdDisabledValue, + this.userCreationFailedValue, + this.successValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MemberAddV2Result) { + MemberAddV2Result other = (MemberAddV2Result) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEAM_LICENSE_LIMIT: + return (this.teamLicenseLimitValue == other.teamLicenseLimitValue) || (this.teamLicenseLimitValue.equals(other.teamLicenseLimitValue)); + case FREE_TEAM_MEMBER_LIMIT_REACHED: + return (this.freeTeamMemberLimitReachedValue == other.freeTeamMemberLimitReachedValue) || (this.freeTeamMemberLimitReachedValue.equals(other.freeTeamMemberLimitReachedValue)); + case USER_ALREADY_ON_TEAM: + return (this.userAlreadyOnTeamValue == other.userAlreadyOnTeamValue) || (this.userAlreadyOnTeamValue.equals(other.userAlreadyOnTeamValue)); + case USER_ON_ANOTHER_TEAM: + return (this.userOnAnotherTeamValue == other.userOnAnotherTeamValue) || (this.userOnAnotherTeamValue.equals(other.userOnAnotherTeamValue)); + case USER_ALREADY_PAIRED: + return (this.userAlreadyPairedValue == other.userAlreadyPairedValue) || (this.userAlreadyPairedValue.equals(other.userAlreadyPairedValue)); + case USER_MIGRATION_FAILED: + return (this.userMigrationFailedValue == other.userMigrationFailedValue) || (this.userMigrationFailedValue.equals(other.userMigrationFailedValue)); + case DUPLICATE_EXTERNAL_MEMBER_ID: + return (this.duplicateExternalMemberIdValue == other.duplicateExternalMemberIdValue) || (this.duplicateExternalMemberIdValue.equals(other.duplicateExternalMemberIdValue)); + case DUPLICATE_MEMBER_PERSISTENT_ID: + return (this.duplicateMemberPersistentIdValue == other.duplicateMemberPersistentIdValue) || (this.duplicateMemberPersistentIdValue.equals(other.duplicateMemberPersistentIdValue)); + case PERSISTENT_ID_DISABLED: + return (this.persistentIdDisabledValue == other.persistentIdDisabledValue) || (this.persistentIdDisabledValue.equals(other.persistentIdDisabledValue)); + case USER_CREATION_FAILED: + return (this.userCreationFailedValue == other.userCreationFailedValue) || (this.userCreationFailedValue.equals(other.userCreationFailedValue)); + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddV2Result value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEAM_LICENSE_LIMIT: { + g.writeStartObject(); + writeTag("team_license_limit", g); + g.writeFieldName("team_license_limit"); + StoneSerializers.string().serialize(value.teamLicenseLimitValue, g); + g.writeEndObject(); + break; + } + case FREE_TEAM_MEMBER_LIMIT_REACHED: { + g.writeStartObject(); + writeTag("free_team_member_limit_reached", g); + g.writeFieldName("free_team_member_limit_reached"); + StoneSerializers.string().serialize(value.freeTeamMemberLimitReachedValue, g); + g.writeEndObject(); + break; + } + case USER_ALREADY_ON_TEAM: { + g.writeStartObject(); + writeTag("user_already_on_team", g); + g.writeFieldName("user_already_on_team"); + StoneSerializers.string().serialize(value.userAlreadyOnTeamValue, g); + g.writeEndObject(); + break; + } + case USER_ON_ANOTHER_TEAM: { + g.writeStartObject(); + writeTag("user_on_another_team", g); + g.writeFieldName("user_on_another_team"); + StoneSerializers.string().serialize(value.userOnAnotherTeamValue, g); + g.writeEndObject(); + break; + } + case USER_ALREADY_PAIRED: { + g.writeStartObject(); + writeTag("user_already_paired", g); + g.writeFieldName("user_already_paired"); + StoneSerializers.string().serialize(value.userAlreadyPairedValue, g); + g.writeEndObject(); + break; + } + case USER_MIGRATION_FAILED: { + g.writeStartObject(); + writeTag("user_migration_failed", g); + g.writeFieldName("user_migration_failed"); + StoneSerializers.string().serialize(value.userMigrationFailedValue, g); + g.writeEndObject(); + break; + } + case DUPLICATE_EXTERNAL_MEMBER_ID: { + g.writeStartObject(); + writeTag("duplicate_external_member_id", g); + g.writeFieldName("duplicate_external_member_id"); + StoneSerializers.string().serialize(value.duplicateExternalMemberIdValue, g); + g.writeEndObject(); + break; + } + case DUPLICATE_MEMBER_PERSISTENT_ID: { + g.writeStartObject(); + writeTag("duplicate_member_persistent_id", g); + g.writeFieldName("duplicate_member_persistent_id"); + StoneSerializers.string().serialize(value.duplicateMemberPersistentIdValue, g); + g.writeEndObject(); + break; + } + case PERSISTENT_ID_DISABLED: { + g.writeStartObject(); + writeTag("persistent_id_disabled", g); + g.writeFieldName("persistent_id_disabled"); + StoneSerializers.string().serialize(value.persistentIdDisabledValue, g); + g.writeEndObject(); + break; + } + case USER_CREATION_FAILED: { + g.writeStartObject(); + writeTag("user_creation_failed", g); + g.writeFieldName("user_creation_failed"); + StoneSerializers.string().serialize(value.userCreationFailedValue, g); + g.writeEndObject(); + break; + } + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + TeamMemberInfoV2.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberAddV2Result deserialize(JsonParser p) throws IOException, JsonParseException { + MemberAddV2Result value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team_license_limit".equals(tag)) { + String fieldValue = null; + expectField("team_license_limit", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.teamLicenseLimit(fieldValue); + } + else if ("free_team_member_limit_reached".equals(tag)) { + String fieldValue = null; + expectField("free_team_member_limit_reached", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.freeTeamMemberLimitReached(fieldValue); + } + else if ("user_already_on_team".equals(tag)) { + String fieldValue = null; + expectField("user_already_on_team", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.userAlreadyOnTeam(fieldValue); + } + else if ("user_on_another_team".equals(tag)) { + String fieldValue = null; + expectField("user_on_another_team", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.userOnAnotherTeam(fieldValue); + } + else if ("user_already_paired".equals(tag)) { + String fieldValue = null; + expectField("user_already_paired", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.userAlreadyPaired(fieldValue); + } + else if ("user_migration_failed".equals(tag)) { + String fieldValue = null; + expectField("user_migration_failed", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.userMigrationFailed(fieldValue); + } + else if ("duplicate_external_member_id".equals(tag)) { + String fieldValue = null; + expectField("duplicate_external_member_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.duplicateExternalMemberId(fieldValue); + } + else if ("duplicate_member_persistent_id".equals(tag)) { + String fieldValue = null; + expectField("duplicate_member_persistent_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.duplicateMemberPersistentId(fieldValue); + } + else if ("persistent_id_disabled".equals(tag)) { + String fieldValue = null; + expectField("persistent_id_disabled", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.persistentIdDisabled(fieldValue); + } + else if ("user_creation_failed".equals(tag)) { + String fieldValue = null; + expectField("user_creation_failed", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MemberAddV2Result.userCreationFailed(fieldValue); + } + else if ("success".equals(tag)) { + TeamMemberInfoV2 fieldValue = null; + fieldValue = TeamMemberInfoV2.Serializer.INSTANCE.deserialize(p, true); + value = MemberAddV2Result.success(fieldValue); + } + else { + value = MemberAddV2Result.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberDevices.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberDevices.java new file mode 100644 index 000000000..d7d355c99 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberDevices.java @@ -0,0 +1,381 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information on devices of a team's member. + */ +public class MemberDevices { + // struct team.MemberDevices (team_devices.stone) + + @Nonnull + protected final String teamMemberId; + @Nullable + protected final List webSessions; + @Nullable + protected final List desktopClients; + @Nullable + protected final List mobileClients; + + /** + * Information on devices of a team's member. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param teamMemberId The member unique Id. Must not be {@code null}. + * @param webSessions List of web sessions made by this team member. Must + * not contain a {@code null} item. + * @param desktopClients List of desktop clients by this team member. Must + * not contain a {@code null} item. + * @param mobileClients List of mobile clients by this team member. Must + * not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberDevices(@Nonnull String teamMemberId, @Nullable List webSessions, @Nullable List desktopClients, @Nullable List mobileClients) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + if (webSessions != null) { + for (ActiveWebSession x : webSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'webSessions' is null"); + } + } + } + this.webSessions = webSessions; + if (desktopClients != null) { + for (DesktopClientSession x : desktopClients) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'desktopClients' is null"); + } + } + } + this.desktopClients = desktopClients; + if (mobileClients != null) { + for (MobileClientSession x : mobileClients) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'mobileClients' is null"); + } + } + } + this.mobileClients = mobileClients; + } + + /** + * Information on devices of a team's member. + * + *

The default values for unset fields will be used.

+ * + * @param teamMemberId The member unique Id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberDevices(@Nonnull String teamMemberId) { + this(teamMemberId, null, null, null); + } + + /** + * The member unique Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * List of web sessions made by this team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getWebSessions() { + return webSessions; + } + + /** + * List of desktop clients by this team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getDesktopClients() { + return desktopClients; + } + + /** + * List of mobile clients by this team member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getMobileClients() { + return mobileClients; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param teamMemberId The member unique Id. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String teamMemberId) { + return new Builder(teamMemberId); + } + + /** + * Builder for {@link MemberDevices}. + */ + public static class Builder { + protected final String teamMemberId; + + protected List webSessions; + protected List desktopClients; + protected List mobileClients; + + protected Builder(String teamMemberId) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + this.webSessions = null; + this.desktopClients = null; + this.mobileClients = null; + } + + /** + * Set value for optional field. + * + * @param webSessions List of web sessions made by this team member. + * Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withWebSessions(List webSessions) { + if (webSessions != null) { + for (ActiveWebSession x : webSessions) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'webSessions' is null"); + } + } + } + this.webSessions = webSessions; + return this; + } + + /** + * Set value for optional field. + * + * @param desktopClients List of desktop clients by this team member. + * Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDesktopClients(List desktopClients) { + if (desktopClients != null) { + for (DesktopClientSession x : desktopClients) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'desktopClients' is null"); + } + } + } + this.desktopClients = desktopClients; + return this; + } + + /** + * Set value for optional field. + * + * @param mobileClients List of mobile clients by this team member. + * Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMobileClients(List mobileClients) { + if (mobileClients != null) { + for (MobileClientSession x : mobileClients) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'mobileClients' is null"); + } + } + } + this.mobileClients = mobileClients; + return this; + } + + /** + * Builds an instance of {@link MemberDevices} configured with this + * builder's values + * + * @return new instance of {@link MemberDevices} + */ + public MemberDevices build() { + return new MemberDevices(teamMemberId, webSessions, desktopClients, mobileClients); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId, + this.webSessions, + this.desktopClients, + this.mobileClients + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberDevices other = (MemberDevices) obj; + return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && ((this.webSessions == other.webSessions) || (this.webSessions != null && this.webSessions.equals(other.webSessions))) + && ((this.desktopClients == other.desktopClients) || (this.desktopClients != null && this.desktopClients.equals(other.desktopClients))) + && ((this.mobileClients == other.mobileClients) || (this.mobileClients != null && this.mobileClients.equals(other.mobileClients))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberDevices value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + if (value.webSessions != null) { + g.writeFieldName("web_sessions"); + StoneSerializers.nullable(StoneSerializers.list(ActiveWebSession.Serializer.INSTANCE)).serialize(value.webSessions, g); + } + if (value.desktopClients != null) { + g.writeFieldName("desktop_clients"); + StoneSerializers.nullable(StoneSerializers.list(DesktopClientSession.Serializer.INSTANCE)).serialize(value.desktopClients, g); + } + if (value.mobileClients != null) { + g.writeFieldName("mobile_clients"); + StoneSerializers.nullable(StoneSerializers.list(MobileClientSession.Serializer.INSTANCE)).serialize(value.mobileClients, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberDevices deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberDevices value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + List f_webSessions = null; + List f_desktopClients = null; + List f_mobileClients = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("web_sessions".equals(field)) { + f_webSessions = StoneSerializers.nullable(StoneSerializers.list(ActiveWebSession.Serializer.INSTANCE)).deserialize(p); + } + else if ("desktop_clients".equals(field)) { + f_desktopClients = StoneSerializers.nullable(StoneSerializers.list(DesktopClientSession.Serializer.INSTANCE)).deserialize(p); + } + else if ("mobile_clients".equals(field)) { + f_mobileClients = StoneSerializers.nullable(StoneSerializers.list(MobileClientSession.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + value = new MemberDevices(f_teamMemberId, f_webSessions, f_desktopClients, f_mobileClients); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberLinkedApps.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberLinkedApps.java new file mode 100644 index 000000000..3cca35d3b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberLinkedApps.java @@ -0,0 +1,188 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Information on linked applications of a team member. + */ +public class MemberLinkedApps { + // struct team.MemberLinkedApps (team_linked_apps.stone) + + @Nonnull + protected final String teamMemberId; + @Nonnull + protected final List linkedApiApps; + + /** + * Information on linked applications of a team member. + * + * @param teamMemberId The member unique Id. Must not be {@code null}. + * @param linkedApiApps List of third party applications linked by this + * team member. Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberLinkedApps(@Nonnull String teamMemberId, @Nonnull List linkedApiApps) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + if (linkedApiApps == null) { + throw new IllegalArgumentException("Required value for 'linkedApiApps' is null"); + } + for (ApiApp x : linkedApiApps) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedApiApps' is null"); + } + } + this.linkedApiApps = linkedApiApps; + } + + /** + * The member unique Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * List of third party applications linked by this team member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkedApiApps() { + return linkedApiApps; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId, + this.linkedApiApps + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberLinkedApps other = (MemberLinkedApps) obj; + return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && ((this.linkedApiApps == other.linkedApiApps) || (this.linkedApiApps.equals(other.linkedApiApps))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberLinkedApps value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + g.writeFieldName("linked_api_apps"); + StoneSerializers.list(ApiApp.Serializer.INSTANCE).serialize(value.linkedApiApps, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberLinkedApps deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberLinkedApps value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + List f_linkedApiApps = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("linked_api_apps".equals(field)) { + f_linkedApiApps = StoneSerializers.list(ApiApp.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + if (f_linkedApiApps == null) { + throw new JsonParseException(p, "Required field \"linked_api_apps\" missing."); + } + value = new MemberLinkedApps(f_teamMemberId, f_linkedApiApps); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberProfile.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberProfile.java new file mode 100644 index 000000000..fceac55a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MemberProfile.java @@ -0,0 +1,809 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.secondaryemails.SecondaryEmail; +import com.dropbox.core.v2.users.Name; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Basic member profile. + */ +public class MemberProfile { + // struct team.MemberProfile (team.stone) + + @Nonnull + protected final String teamMemberId; + @Nullable + protected final String externalId; + @Nullable + protected final String accountId; + @Nonnull + protected final String email; + protected final boolean emailVerified; + @Nullable + protected final List secondaryEmails; + @Nonnull + protected final TeamMemberStatus status; + @Nonnull + protected final Name name; + @Nonnull + protected final TeamMembershipType membershipType; + @Nullable + protected final Date invitedOn; + @Nullable + protected final Date joinedOn; + @Nullable + protected final Date suspendedOn; + @Nullable + protected final String persistentId; + @Nullable + protected final Boolean isDirectoryRestricted; + @Nullable + protected final String profilePhotoUrl; + + /** + * Basic member profile. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param teamMemberId ID of user as a member of a team. Must not be {@code + * null}. + * @param email Email address of user. Must not be {@code null}. + * @param emailVerified Is true if the user's email is verified to be owned + * by the user. + * @param status The user's status as a member of a specific team. Must not + * be {@code null}. + * @param name Representations for a person's name. Must not be {@code + * null}. + * @param membershipType The user's membership type: full (normal team + * member) vs limited (does not use a license; no access to the team's + * shared quota). Must not be {@code null}. + * @param externalId External ID that a team can attach to the user. An + * application using the API may find it easier to use their own IDs + * instead of Dropbox IDs like account_id or team_member_id. + * @param accountId A user's account identifier. Must have length of at + * least 40 and have length of at most 40. + * @param secondaryEmails Secondary emails of a user. Must not contain a + * {@code null} item. + * @param invitedOn The date and time the user was invited to the team + * (contains value only when the member's status matches {@link + * TeamMemberStatus#INVITED}). + * @param joinedOn The date and time the user joined as a member of a + * specific team. + * @param suspendedOn The date and time the user was suspended from the + * team (contains value only when the member's status matches {@link + * TeamMemberStatus#SUSPENDED}). + * @param persistentId Persistent ID that a team can attach to the user. + * The persistent ID is unique ID to be used for SAML authentication. + * @param isDirectoryRestricted Whether the user is a directory restricted + * user. + * @param profilePhotoUrl URL for the photo representing the user, if one + * is set. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType, @Nullable String externalId, @Nullable String accountId, @Nullable List secondaryEmails, @Nullable Date invitedOn, @Nullable Date joinedOn, @Nullable Date suspendedOn, @Nullable String persistentId, @Nullable Boolean isDirectoryRestricted, @Nullable String profilePhotoUrl) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + this.externalId = externalId; + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + if (email == null) { + throw new IllegalArgumentException("Required value for 'email' is null"); + } + this.email = email; + this.emailVerified = emailVerified; + if (secondaryEmails != null) { + for (SecondaryEmail x : secondaryEmails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'secondaryEmails' is null"); + } + } + } + this.secondaryEmails = secondaryEmails; + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (membershipType == null) { + throw new IllegalArgumentException("Required value for 'membershipType' is null"); + } + this.membershipType = membershipType; + this.invitedOn = LangUtil.truncateMillis(invitedOn); + this.joinedOn = LangUtil.truncateMillis(joinedOn); + this.suspendedOn = LangUtil.truncateMillis(suspendedOn); + this.persistentId = persistentId; + this.isDirectoryRestricted = isDirectoryRestricted; + this.profilePhotoUrl = profilePhotoUrl; + } + + /** + * Basic member profile. + * + *

The default values for unset fields will be used.

+ * + * @param teamMemberId ID of user as a member of a team. Must not be {@code + * null}. + * @param email Email address of user. Must not be {@code null}. + * @param emailVerified Is true if the user's email is verified to be owned + * by the user. + * @param status The user's status as a member of a specific team. Must not + * be {@code null}. + * @param name Representations for a person's name. Must not be {@code + * null}. + * @param membershipType The user's membership type: full (normal team + * member) vs limited (does not use a license; no access to the team's + * shared quota). Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType) { + this(teamMemberId, email, emailVerified, status, name, membershipType, null, null, null, null, null, null, null, null, null); + } + + /** + * ID of user as a member of a team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * Email address of user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEmail() { + return email; + } + + /** + * Is true if the user's email is verified to be owned by the user. + * + * @return value for this field. + */ + public boolean getEmailVerified() { + return emailVerified; + } + + /** + * The user's status as a member of a specific team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberStatus getStatus() { + return status; + } + + /** + * Representations for a person's name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Name getName() { + return name; + } + + /** + * The user's membership type: full (normal team member) vs limited (does + * not use a license; no access to the team's shared quota). + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMembershipType getMembershipType() { + return membershipType; + } + + /** + * External ID that a team can attach to the user. An application using the + * API may find it easier to use their own IDs instead of Dropbox IDs like + * account_id or team_member_id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExternalId() { + return externalId; + } + + /** + * A user's account identifier. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * Secondary emails of a user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getSecondaryEmails() { + return secondaryEmails; + } + + /** + * The date and time the user was invited to the team (contains value only + * when the member's status matches {@link TeamMemberStatus#INVITED}). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getInvitedOn() { + return invitedOn; + } + + /** + * The date and time the user joined as a member of a specific team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getJoinedOn() { + return joinedOn; + } + + /** + * The date and time the user was suspended from the team (contains value + * only when the member's status matches {@link + * TeamMemberStatus#SUSPENDED}). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getSuspendedOn() { + return suspendedOn; + } + + /** + * Persistent ID that a team can attach to the user. The persistent ID is + * unique ID to be used for SAML authentication. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPersistentId() { + return persistentId; + } + + /** + * Whether the user is a directory restricted user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsDirectoryRestricted() { + return isDirectoryRestricted; + } + + /** + * URL for the photo representing the user, if one is set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getProfilePhotoUrl() { + return profilePhotoUrl; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param teamMemberId ID of user as a member of a team. Must not be {@code + * null}. + * @param email Email address of user. Must not be {@code null}. + * @param emailVerified Is true if the user's email is verified to be owned + * by the user. + * @param status The user's status as a member of a specific team. Must not + * be {@code null}. + * @param name Representations for a person's name. Must not be {@code + * null}. + * @param membershipType The user's membership type: full (normal team + * member) vs limited (does not use a license; no access to the team's + * shared quota). Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType) { + return new Builder(teamMemberId, email, emailVerified, status, name, membershipType); + } + + /** + * Builder for {@link MemberProfile}. + */ + public static class Builder { + protected final String teamMemberId; + protected final String email; + protected final boolean emailVerified; + protected final TeamMemberStatus status; + protected final Name name; + protected final TeamMembershipType membershipType; + + protected String externalId; + protected String accountId; + protected List secondaryEmails; + protected Date invitedOn; + protected Date joinedOn; + protected Date suspendedOn; + protected String persistentId; + protected Boolean isDirectoryRestricted; + protected String profilePhotoUrl; + + protected Builder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + if (email == null) { + throw new IllegalArgumentException("Required value for 'email' is null"); + } + this.email = email; + this.emailVerified = emailVerified; + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (membershipType == null) { + throw new IllegalArgumentException("Required value for 'membershipType' is null"); + } + this.membershipType = membershipType; + this.externalId = null; + this.accountId = null; + this.secondaryEmails = null; + this.invitedOn = null; + this.joinedOn = null; + this.suspendedOn = null; + this.persistentId = null; + this.isDirectoryRestricted = null; + this.profilePhotoUrl = null; + } + + /** + * Set value for optional field. + * + * @param externalId External ID that a team can attach to the user. An + * application using the API may find it easier to use their own IDs + * instead of Dropbox IDs like account_id or team_member_id. + * + * @return this builder + */ + public Builder withExternalId(String externalId) { + this.externalId = externalId; + return this; + } + + /** + * Set value for optional field. + * + * @param accountId A user's account identifier. Must have length of at + * least 40 and have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + return this; + } + + /** + * Set value for optional field. + * + * @param secondaryEmails Secondary emails of a user. Must not contain + * a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSecondaryEmails(List secondaryEmails) { + if (secondaryEmails != null) { + for (SecondaryEmail x : secondaryEmails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'secondaryEmails' is null"); + } + } + } + this.secondaryEmails = secondaryEmails; + return this; + } + + /** + * Set value for optional field. + * + * @param invitedOn The date and time the user was invited to the team + * (contains value only when the member's status matches {@link + * TeamMemberStatus#INVITED}). + * + * @return this builder + */ + public Builder withInvitedOn(Date invitedOn) { + this.invitedOn = LangUtil.truncateMillis(invitedOn); + return this; + } + + /** + * Set value for optional field. + * + * @param joinedOn The date and time the user joined as a member of a + * specific team. + * + * @return this builder + */ + public Builder withJoinedOn(Date joinedOn) { + this.joinedOn = LangUtil.truncateMillis(joinedOn); + return this; + } + + /** + * Set value for optional field. + * + * @param suspendedOn The date and time the user was suspended from the + * team (contains value only when the member's status matches {@link + * TeamMemberStatus#SUSPENDED}). + * + * @return this builder + */ + public Builder withSuspendedOn(Date suspendedOn) { + this.suspendedOn = LangUtil.truncateMillis(suspendedOn); + return this; + } + + /** + * Set value for optional field. + * + * @param persistentId Persistent ID that a team can attach to the + * user. The persistent ID is unique ID to be used for SAML + * authentication. + * + * @return this builder + */ + public Builder withPersistentId(String persistentId) { + this.persistentId = persistentId; + return this; + } + + /** + * Set value for optional field. + * + * @param isDirectoryRestricted Whether the user is a directory + * restricted user. + * + * @return this builder + */ + public Builder withIsDirectoryRestricted(Boolean isDirectoryRestricted) { + this.isDirectoryRestricted = isDirectoryRestricted; + return this; + } + + /** + * Set value for optional field. + * + * @param profilePhotoUrl URL for the photo representing the user, if + * one is set. + * + * @return this builder + */ + public Builder withProfilePhotoUrl(String profilePhotoUrl) { + this.profilePhotoUrl = profilePhotoUrl; + return this; + } + + /** + * Builds an instance of {@link MemberProfile} configured with this + * builder's values + * + * @return new instance of {@link MemberProfile} + */ + public MemberProfile build() { + return new MemberProfile(teamMemberId, email, emailVerified, status, name, membershipType, externalId, accountId, secondaryEmails, invitedOn, joinedOn, suspendedOn, persistentId, isDirectoryRestricted, profilePhotoUrl); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId, + this.externalId, + this.accountId, + this.email, + this.emailVerified, + this.secondaryEmails, + this.status, + this.name, + this.membershipType, + this.invitedOn, + this.joinedOn, + this.suspendedOn, + this.persistentId, + this.isDirectoryRestricted, + this.profilePhotoUrl + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberProfile other = (MemberProfile) obj; + return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && ((this.email == other.email) || (this.email.equals(other.email))) + && (this.emailVerified == other.emailVerified) + && ((this.status == other.status) || (this.status.equals(other.status))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.membershipType == other.membershipType) || (this.membershipType.equals(other.membershipType))) + && ((this.externalId == other.externalId) || (this.externalId != null && this.externalId.equals(other.externalId))) + && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + && ((this.secondaryEmails == other.secondaryEmails) || (this.secondaryEmails != null && this.secondaryEmails.equals(other.secondaryEmails))) + && ((this.invitedOn == other.invitedOn) || (this.invitedOn != null && this.invitedOn.equals(other.invitedOn))) + && ((this.joinedOn == other.joinedOn) || (this.joinedOn != null && this.joinedOn.equals(other.joinedOn))) + && ((this.suspendedOn == other.suspendedOn) || (this.suspendedOn != null && this.suspendedOn.equals(other.suspendedOn))) + && ((this.persistentId == other.persistentId) || (this.persistentId != null && this.persistentId.equals(other.persistentId))) + && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) + && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberProfile value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.email, g); + g.writeFieldName("email_verified"); + StoneSerializers.boolean_().serialize(value.emailVerified, g); + g.writeFieldName("status"); + TeamMemberStatus.Serializer.INSTANCE.serialize(value.status, g); + g.writeFieldName("name"); + Name.Serializer.INSTANCE.serialize(value.name, g); + g.writeFieldName("membership_type"); + TeamMembershipType.Serializer.INSTANCE.serialize(value.membershipType, g); + if (value.externalId != null) { + g.writeFieldName("external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.externalId, g); + } + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (value.secondaryEmails != null) { + g.writeFieldName("secondary_emails"); + StoneSerializers.nullable(StoneSerializers.list(SecondaryEmail.Serializer.INSTANCE)).serialize(value.secondaryEmails, g); + } + if (value.invitedOn != null) { + g.writeFieldName("invited_on"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.invitedOn, g); + } + if (value.joinedOn != null) { + g.writeFieldName("joined_on"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.joinedOn, g); + } + if (value.suspendedOn != null) { + g.writeFieldName("suspended_on"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.suspendedOn, g); + } + if (value.persistentId != null) { + g.writeFieldName("persistent_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.persistentId, g); + } + if (value.isDirectoryRestricted != null) { + g.writeFieldName("is_directory_restricted"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isDirectoryRestricted, g); + } + if (value.profilePhotoUrl != null) { + g.writeFieldName("profile_photo_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.profilePhotoUrl, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberProfile deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberProfile value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + String f_email = null; + Boolean f_emailVerified = null; + TeamMemberStatus f_status = null; + Name f_name = null; + TeamMembershipType f_membershipType = null; + String f_externalId = null; + String f_accountId = null; + List f_secondaryEmails = null; + Date f_invitedOn = null; + Date f_joinedOn = null; + Date f_suspendedOn = null; + String f_persistentId = null; + Boolean f_isDirectoryRestricted = null; + String f_profilePhotoUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.string().deserialize(p); + } + else if ("email_verified".equals(field)) { + f_emailVerified = StoneSerializers.boolean_().deserialize(p); + } + else if ("status".equals(field)) { + f_status = TeamMemberStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("name".equals(field)) { + f_name = Name.Serializer.INSTANCE.deserialize(p); + } + else if ("membership_type".equals(field)) { + f_membershipType = TeamMembershipType.Serializer.INSTANCE.deserialize(p); + } + else if ("external_id".equals(field)) { + f_externalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("secondary_emails".equals(field)) { + f_secondaryEmails = StoneSerializers.nullable(StoneSerializers.list(SecondaryEmail.Serializer.INSTANCE)).deserialize(p); + } + else if ("invited_on".equals(field)) { + f_invitedOn = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("joined_on".equals(field)) { + f_joinedOn = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("suspended_on".equals(field)) { + f_suspendedOn = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("persistent_id".equals(field)) { + f_persistentId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_directory_restricted".equals(field)) { + f_isDirectoryRestricted = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("profile_photo_url".equals(field)) { + f_profilePhotoUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + if (f_email == null) { + throw new JsonParseException(p, "Required field \"email\" missing."); + } + if (f_emailVerified == null) { + throw new JsonParseException(p, "Required field \"email_verified\" missing."); + } + if (f_status == null) { + throw new JsonParseException(p, "Required field \"status\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_membershipType == null) { + throw new JsonParseException(p, "Required field \"membership_type\" missing."); + } + value = new MemberProfile(f_teamMemberId, f_email, f_emailVerified, f_status, f_name, f_membershipType, f_externalId, f_accountId, f_secondaryEmails, f_invitedOn, f_joinedOn, f_suspendedOn, f_persistentId, f_isDirectoryRestricted, f_profilePhotoUrl); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddArg.java new file mode 100644 index 000000000..0d012e126 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddArg.java @@ -0,0 +1,190 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class MembersAddArg extends MembersAddArgBase { + // struct team.MembersAddArg (team_members.stone) + + @Nonnull + protected final List newMembers; + + /** + * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * @param forceAsync Whether to force the add to happen asynchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddArg(@Nonnull List newMembers, boolean forceAsync) { + super(forceAsync); + if (newMembers == null) { + throw new IllegalArgumentException("Required value for 'newMembers' is null"); + } + for (MemberAddArg x : newMembers) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'newMembers' is null"); + } + } + this.newMembers = newMembers; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddArg(@Nonnull List newMembers) { + this(newMembers, false); + } + + /** + * Details of new members to be added to the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getNewMembers() { + return newMembers; + } + + /** + * Whether to force the add to happen asynchronously. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getForceAsync() { + return forceAsync; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newMembers + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersAddArg other = (MembersAddArg) obj; + return ((this.newMembers == other.newMembers) || (this.newMembers.equals(other.newMembers))) + && (this.forceAsync == other.forceAsync) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersAddArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_members"); + StoneSerializers.list(MemberAddArg.Serializer.INSTANCE).serialize(value.newMembers, g); + g.writeFieldName("force_async"); + StoneSerializers.boolean_().serialize(value.forceAsync, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersAddArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersAddArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_newMembers = null; + Boolean f_forceAsync = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_members".equals(field)) { + f_newMembers = StoneSerializers.list(MemberAddArg.Serializer.INSTANCE).deserialize(p); + } + else if ("force_async".equals(field)) { + f_forceAsync = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newMembers == null) { + throw new JsonParseException(p, "Required field \"new_members\" missing."); + } + value = new MembersAddArg(f_newMembers, f_forceAsync); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddArgBase.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddArgBase.java new file mode 100644 index 000000000..0ed77f00d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddArgBase.java @@ -0,0 +1,144 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class MembersAddArgBase { + // struct team.MembersAddArgBase (team_members.stone) + + protected final boolean forceAsync; + + /** + * + * @param forceAsync Whether to force the add to happen asynchronously. + */ + public MembersAddArgBase(boolean forceAsync) { + this.forceAsync = forceAsync; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public MembersAddArgBase() { + this(false); + } + + /** + * Whether to force the add to happen asynchronously. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getForceAsync() { + return forceAsync; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.forceAsync + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersAddArgBase other = (MembersAddArgBase) obj; + return this.forceAsync == other.forceAsync; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersAddArgBase value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("force_async"); + StoneSerializers.boolean_().serialize(value.forceAsync, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersAddArgBase deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersAddArgBase value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_forceAsync = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("force_async".equals(field)) { + f_forceAsync = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + value = new MembersAddArgBase(f_forceAsync); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddJobStatus.java new file mode 100644 index 000000000..9bde42ecc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddJobStatus.java @@ -0,0 +1,383 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class MembersAddJobStatus { + // union team.MembersAddJobStatus (team_members.stone) + + /** + * Discriminating tag type for {@link MembersAddJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The asynchronous job has finished. For each member that was specified + * in the parameter {@link MembersAddArg} that was provided to {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)}, a corresponding item + * is returned in this list. + */ + COMPLETE, // List + /** + * The asynchronous job returned an error. The string contains an error + * message. + */ + FAILED; // String + } + + /** + * The asynchronous job is still in progress. + */ + public static final MembersAddJobStatus IN_PROGRESS = new MembersAddJobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private List completeValue; + private String failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MembersAddJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private MembersAddJobStatus withTag(Tag _tag) { + MembersAddJobStatus result = new MembersAddJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The asynchronous job has finished. For each member + * that was specified in the parameter {@link MembersAddArg} that was + * provided to {@link DbxTeamTeamRequests#membersAdd(List,boolean)}, a + * corresponding item is returned in this list. Must not contain a + * {@code null} item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddJobStatus withTagAndComplete(Tag _tag, List completeValue) { + MembersAddJobStatus result = new MembersAddJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue The asynchronous job returned an error. The string + * contains an error message. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddJobStatus withTagAndFailed(Tag _tag, String failedValue) { + MembersAddJobStatus result = new MembersAddJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MembersAddJobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code MembersAddJobStatus} that has its tag set + * to {@link Tag#COMPLETE}. + * + *

The asynchronous job has finished. For each member that was specified + * in the parameter {@link MembersAddArg} that was provided to {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)}, a corresponding item is + * returned in this list.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddJobStatus} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static MembersAddJobStatus complete(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (MemberAddResult x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new MembersAddJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The asynchronous job has finished. For each member that was specified in + * the parameter {@link MembersAddArg} that was provided to {@link + * DbxTeamTeamRequests#membersAdd(List,boolean)}, a corresponding item is + * returned in this list. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public List getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code MembersAddJobStatus} that has its tag set + * to {@link Tag#FAILED}. + * + *

The asynchronous job returned an error. The string contains an error + * message.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddJobStatus} with its tag set to + * {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MembersAddJobStatus failed(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MembersAddJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * The asynchronous job returned an error. The string contains an error + * message. + * + *

This instance must be tagged as {@link Tag#FAILED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public String getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MembersAddJobStatus) { + MembersAddJobStatus other = (MembersAddJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersAddJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + g.writeFieldName("complete"); + StoneSerializers.list(MemberAddResult.Serializer.INSTANCE).serialize(value.completeValue, g); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + StoneSerializers.string().serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public MembersAddJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + MembersAddJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = MembersAddJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + List fieldValue = null; + expectField("complete", p); + fieldValue = StoneSerializers.list(MemberAddResult.Serializer.INSTANCE).deserialize(p); + value = MembersAddJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + String fieldValue = null; + expectField("failed", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MembersAddJobStatus.failed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddJobStatusV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddJobStatusV2Result.java new file mode 100644 index 000000000..00f55863a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddJobStatusV2Result.java @@ -0,0 +1,420 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MembersAddJobStatusV2Result { + // union team.MembersAddJobStatusV2Result (team_members.stone) + + /** + * Discriminating tag type for {@link MembersAddJobStatusV2Result}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The asynchronous job has finished. For each member that was specified + * in the parameter {@link MembersAddArg} that was provided to {@link + * DbxTeamTeamRequests#membersAddV2(List,boolean)}, a corresponding item + * is returned in this list. + */ + COMPLETE, // List + /** + * The asynchronous job returned an error. The string contains an error + * message. + */ + FAILED, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The asynchronous job is still in progress. + */ + public static final MembersAddJobStatusV2Result IN_PROGRESS = new MembersAddJobStatusV2Result().withTag(Tag.IN_PROGRESS); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MembersAddJobStatusV2Result OTHER = new MembersAddJobStatusV2Result().withTag(Tag.OTHER); + + private Tag _tag; + private List completeValue; + private String failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MembersAddJobStatusV2Result() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private MembersAddJobStatusV2Result withTag(Tag _tag) { + MembersAddJobStatusV2Result result = new MembersAddJobStatusV2Result(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The asynchronous job has finished. For each member + * that was specified in the parameter {@link MembersAddArg} that was + * provided to {@link DbxTeamTeamRequests#membersAddV2(List,boolean)}, a + * corresponding item is returned in this list. Must not contain a + * {@code null} item and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddJobStatusV2Result withTagAndComplete(Tag _tag, List completeValue) { + MembersAddJobStatusV2Result result = new MembersAddJobStatusV2Result(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue The asynchronous job returned an error. The string + * contains an error message. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddJobStatusV2Result withTagAndFailed(Tag _tag, String failedValue) { + MembersAddJobStatusV2Result result = new MembersAddJobStatusV2Result(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MembersAddJobStatusV2Result}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code MembersAddJobStatusV2Result} that has its + * tag set to {@link Tag#COMPLETE}. + * + *

The asynchronous job has finished. For each member that was specified + * in the parameter {@link MembersAddArg} that was provided to {@link + * DbxTeamTeamRequests#membersAddV2(List,boolean)}, a corresponding item is + * returned in this list.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddJobStatusV2Result} with its tag set + * to {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static MembersAddJobStatusV2Result complete(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (MemberAddV2Result x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new MembersAddJobStatusV2Result().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The asynchronous job has finished. For each member that was specified in + * the parameter {@link MembersAddArg} that was provided to {@link + * DbxTeamTeamRequests#membersAddV2(List,boolean)}, a corresponding item is + * returned in this list. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link List} value associated with this instance if {@link + * #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public List getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code MembersAddJobStatusV2Result} that has its + * tag set to {@link Tag#FAILED}. + * + *

The asynchronous job returned an error. The string contains an error + * message.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddJobStatusV2Result} with its tag set + * to {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MembersAddJobStatusV2Result failed(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MembersAddJobStatusV2Result().withTagAndFailed(Tag.FAILED, value); + } + + /** + * The asynchronous job returned an error. The string contains an error + * message. + * + *

This instance must be tagged as {@link Tag#FAILED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public String getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MembersAddJobStatusV2Result) { + MembersAddJobStatusV2Result other = (MembersAddJobStatusV2Result) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersAddJobStatusV2Result value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + g.writeFieldName("complete"); + StoneSerializers.list(MemberAddV2Result.Serializer.INSTANCE).serialize(value.completeValue, g); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + StoneSerializers.string().serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersAddJobStatusV2Result deserialize(JsonParser p) throws IOException, JsonParseException { + MembersAddJobStatusV2Result value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = MembersAddJobStatusV2Result.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + List fieldValue = null; + expectField("complete", p); + fieldValue = StoneSerializers.list(MemberAddV2Result.Serializer.INSTANCE).deserialize(p); + value = MembersAddJobStatusV2Result.complete(fieldValue); + } + else if ("failed".equals(tag)) { + String fieldValue = null; + expectField("failed", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MembersAddJobStatusV2Result.failed(fieldValue); + } + else { + value = MembersAddJobStatusV2Result.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddLaunch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddLaunch.java new file mode 100644 index 000000000..44850b0aa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddLaunch.java @@ -0,0 +1,345 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class MembersAddLaunch { + // union team.MembersAddLaunch (team_members.stone) + + /** + * Discriminating tag type for {@link MembersAddLaunch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE; // List + } + + private Tag _tag; + private String asyncJobIdValue; + private List completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MembersAddLaunch() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private MembersAddLaunch withTag(Tag _tag) { + MembersAddLaunch result = new MembersAddLaunch(); + result._tag = _tag; + return result; + } + + /** + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddLaunch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + MembersAddLaunch result = new MembersAddLaunch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * + * @param completeValue Must not contain a {@code null} item and not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddLaunch withTagAndComplete(Tag _tag, List completeValue) { + MembersAddLaunch result = new MembersAddLaunch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MembersAddLaunch}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code MembersAddLaunch} that has its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddLaunch} with its tag set to {@link + * Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static MembersAddLaunch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new MembersAddLaunch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code MembersAddLaunch} that has its tag set to + * {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddLaunch} with its tag set to {@link + * Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static MembersAddLaunch complete(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (MemberAddResult x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new MembersAddLaunch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link List} value associated with this instance if {@link + * #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public List getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MembersAddLaunch) { + MembersAddLaunch other = (MembersAddLaunch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersAddLaunch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + g.writeFieldName("complete"); + StoneSerializers.list(MemberAddResult.Serializer.INSTANCE).serialize(value.completeValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public MembersAddLaunch deserialize(JsonParser p) throws IOException, JsonParseException { + MembersAddLaunch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MembersAddLaunch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + List fieldValue = null; + expectField("complete", p); + fieldValue = StoneSerializers.list(MemberAddResult.Serializer.INSTANCE).deserialize(p); + value = MembersAddLaunch.complete(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddLaunchV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddLaunchV2Result.java new file mode 100644 index 000000000..0700ad32a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddLaunchV2Result.java @@ -0,0 +1,383 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MembersAddLaunchV2Result { + // union team.MembersAddLaunchV2Result (team_members.stone) + + /** + * Discriminating tag type for {@link MembersAddLaunchV2Result}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE, // List + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MembersAddLaunchV2Result OTHER = new MembersAddLaunchV2Result().withTag(Tag.OTHER); + + private Tag _tag; + private String asyncJobIdValue; + private List completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MembersAddLaunchV2Result() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private MembersAddLaunchV2Result withTag(Tag _tag) { + MembersAddLaunchV2Result result = new MembersAddLaunchV2Result(); + result._tag = _tag; + return result; + } + + /** + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddLaunchV2Result withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + MembersAddLaunchV2Result result = new MembersAddLaunchV2Result(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * + * @param completeValue Must not contain a {@code null} item and not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersAddLaunchV2Result withTagAndComplete(Tag _tag, List completeValue) { + MembersAddLaunchV2Result result = new MembersAddLaunchV2Result(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MembersAddLaunchV2Result}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code MembersAddLaunchV2Result} that has its tag + * set to {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddLaunchV2Result} with its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static MembersAddLaunchV2Result asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new MembersAddLaunchV2Result().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code MembersAddLaunchV2Result} that has its tag + * set to {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersAddLaunchV2Result} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} contains a {@code + * null} item or is {@code null}. + */ + public static MembersAddLaunchV2Result complete(List value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + for (MemberAddV2Result x : value) { + if (x == null) { + throw new IllegalArgumentException("An item in list is null"); + } + } + return new MembersAddLaunchV2Result().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link List} value associated with this instance if {@link + * #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public List getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MembersAddLaunchV2Result) { + MembersAddLaunchV2Result other = (MembersAddLaunchV2Result) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersAddLaunchV2Result value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + g.writeFieldName("complete"); + StoneSerializers.list(MemberAddV2Result.Serializer.INSTANCE).serialize(value.completeValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersAddLaunchV2Result deserialize(JsonParser p) throws IOException, JsonParseException { + MembersAddLaunchV2Result value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MembersAddLaunchV2Result.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + List fieldValue = null; + expectField("complete", p); + fieldValue = StoneSerializers.list(MemberAddV2Result.Serializer.INSTANCE).deserialize(p); + value = MembersAddLaunchV2Result.complete(fieldValue); + } + else { + value = MembersAddLaunchV2Result.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddV2Arg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddV2Arg.java new file mode 100644 index 000000000..d9bbeec14 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersAddV2Arg.java @@ -0,0 +1,190 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class MembersAddV2Arg extends MembersAddArgBase { + // struct team.MembersAddV2Arg (team_members.stone) + + @Nonnull + protected final List newMembers; + + /** + * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * @param forceAsync Whether to force the add to happen asynchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddV2Arg(@Nonnull List newMembers, boolean forceAsync) { + super(forceAsync); + if (newMembers == null) { + throw new IllegalArgumentException("Required value for 'newMembers' is null"); + } + for (MemberAddV2Arg x : newMembers) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'newMembers' is null"); + } + } + this.newMembers = newMembers; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param newMembers Details of new members to be added to the team. Must + * not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersAddV2Arg(@Nonnull List newMembers) { + this(newMembers, false); + } + + /** + * Details of new members to be added to the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getNewMembers() { + return newMembers; + } + + /** + * Whether to force the add to happen asynchronously. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getForceAsync() { + return forceAsync; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newMembers + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersAddV2Arg other = (MembersAddV2Arg) obj; + return ((this.newMembers == other.newMembers) || (this.newMembers.equals(other.newMembers))) + && (this.forceAsync == other.forceAsync) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersAddV2Arg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_members"); + StoneSerializers.list(MemberAddV2Arg.Serializer.INSTANCE).serialize(value.newMembers, g); + g.writeFieldName("force_async"); + StoneSerializers.boolean_().serialize(value.forceAsync, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersAddV2Arg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersAddV2Arg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_newMembers = null; + Boolean f_forceAsync = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_members".equals(field)) { + f_newMembers = StoneSerializers.list(MemberAddV2Arg.Serializer.INSTANCE).deserialize(p); + } + else if ("force_async".equals(field)) { + f_forceAsync = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newMembers == null) { + throw new JsonParseException(p, "Required field \"new_members\" missing."); + } + value = new MembersAddV2Arg(f_newMembers, f_forceAsync); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDataTransferArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDataTransferArg.java new file mode 100644 index 000000000..6c9d8d6b8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDataTransferArg.java @@ -0,0 +1,202 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class MembersDataTransferArg extends MembersDeactivateBaseArg { + // struct team.MembersDataTransferArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg transferDestId; + @Nonnull + protected final UserSelectorArg transferAdminId; + + /** + * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * @param transferDestId Files from the deleted member account will be + * transferred to this user. Must not be {@code null}. + * @param transferAdminId Errors during the transfer process will be sent + * via email to this user. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersDataTransferArg(@Nonnull UserSelectorArg user, @Nonnull UserSelectorArg transferDestId, @Nonnull UserSelectorArg transferAdminId) { + super(user); + if (transferDestId == null) { + throw new IllegalArgumentException("Required value for 'transferDestId' is null"); + } + this.transferDestId = transferDestId; + if (transferAdminId == null) { + throw new IllegalArgumentException("Required value for 'transferAdminId' is null"); + } + this.transferAdminId = transferAdminId; + } + + /** + * Identity of user to remove/suspend/have their files moved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * Files from the deleted member account will be transferred to this user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getTransferDestId() { + return transferDestId; + } + + /** + * Errors during the transfer process will be sent via email to this user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getTransferAdminId() { + return transferAdminId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.transferDestId, + this.transferAdminId + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersDataTransferArg other = (MembersDataTransferArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.transferDestId == other.transferDestId) || (this.transferDestId.equals(other.transferDestId))) + && ((this.transferAdminId == other.transferAdminId) || (this.transferAdminId.equals(other.transferAdminId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersDataTransferArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("transfer_dest_id"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.transferDestId, g); + g.writeFieldName("transfer_admin_id"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.transferAdminId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersDataTransferArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersDataTransferArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + UserSelectorArg f_transferDestId = null; + UserSelectorArg f_transferAdminId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("transfer_dest_id".equals(field)) { + f_transferDestId = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("transfer_admin_id".equals(field)) { + f_transferAdminId = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_transferDestId == null) { + throw new JsonParseException(p, "Required field \"transfer_dest_id\" missing."); + } + if (f_transferAdminId == null) { + throw new JsonParseException(p, "Required field \"transfer_admin_id\" missing."); + } + value = new MembersDataTransferArg(f_user, f_transferDestId, f_transferAdminId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeactivateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeactivateArg.java new file mode 100644 index 000000000..d45b5d456 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeactivateArg.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class MembersDeactivateArg extends MembersDeactivateBaseArg { + // struct team.MembersDeactivateArg (team_members.stone) + + protected final boolean wipeData; + + /** + * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * @param wipeData If provided, controls if the user's data will be deleted + * on their linked devices. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersDeactivateArg(@Nonnull UserSelectorArg user, boolean wipeData) { + super(user); + this.wipeData = wipeData; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersDeactivateArg(@Nonnull UserSelectorArg user) { + this(user, true); + } + + /** + * Identity of user to remove/suspend/have their files moved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * If provided, controls if the user's data will be deleted on their linked + * devices. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getWipeData() { + return wipeData; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.wipeData + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersDeactivateArg other = (MembersDeactivateArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && (this.wipeData == other.wipeData) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersDeactivateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("wipe_data"); + StoneSerializers.boolean_().serialize(value.wipeData, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersDeactivateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersDeactivateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + Boolean f_wipeData = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("wipe_data".equals(field)) { + f_wipeData = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersDeactivateArg(f_user, f_wipeData); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeactivateBaseArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeactivateBaseArg.java new file mode 100644 index 000000000..912c7c117 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeactivateBaseArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + */ +class MembersDeactivateBaseArg { + // struct team.MembersDeactivateBaseArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersDeactivateBaseArg(@Nonnull UserSelectorArg user) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + } + + /** + * Identity of user to remove/suspend/have their files moved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersDeactivateBaseArg other = (MembersDeactivateBaseArg) obj; + return (this.user == other.user) || (this.user.equals(other.user)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersDeactivateBaseArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersDeactivateBaseArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersDeactivateBaseArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersDeactivateBaseArg(f_user); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoArg.java new file mode 100644 index 000000000..da4249351 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class MembersDeleteProfilePhotoArg { + // struct team.MembersDeleteProfilePhotoArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + + /** + * + * @param user Identity of the user whose profile photo will be deleted. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersDeleteProfilePhotoArg(@Nonnull UserSelectorArg user) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + } + + /** + * Identity of the user whose profile photo will be deleted. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersDeleteProfilePhotoArg other = (MembersDeleteProfilePhotoArg) obj; + return (this.user == other.user) || (this.user.equals(other.user)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersDeleteProfilePhotoArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersDeleteProfilePhotoArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersDeleteProfilePhotoArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersDeleteProfilePhotoArg(f_user); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoError.java new file mode 100644 index 000000000..bc3b91fc3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoError.java @@ -0,0 +1,107 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersDeleteProfilePhotoError { + // union team.MembersDeleteProfilePhotoError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Modifying deleted users is not allowed. + */ + SET_PROFILE_DISALLOWED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersDeleteProfilePhotoError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case SET_PROFILE_DISALLOWED: { + g.writeString("set_profile_disallowed"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersDeleteProfilePhotoError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersDeleteProfilePhotoError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersDeleteProfilePhotoError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersDeleteProfilePhotoError.USER_NOT_IN_TEAM; + } + else if ("set_profile_disallowed".equals(tag)) { + value = MembersDeleteProfilePhotoError.SET_PROFILE_DISALLOWED; + } + else { + value = MembersDeleteProfilePhotoError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoErrorException.java new file mode 100644 index 000000000..a778acbff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersDeleteProfilePhotoErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersDeleteProfilePhotoError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersDeleteProfilePhoto(UserSelectorArg)} and {@link + * DbxTeamTeamRequests#membersDeleteProfilePhotoV2(UserSelectorArg)}.

+ */ +public class MembersDeleteProfilePhotoErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/delete_profile_photo + // 2/team/members/delete_profile_photo_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersDeleteProfilePhoto(UserSelectorArg)} and + * {@link DbxTeamTeamRequests#membersDeleteProfilePhotoV2(UserSelectorArg)}. + */ + public final MembersDeleteProfilePhotoError errorValue; + + public MembersDeleteProfilePhotoErrorException(String routeName, String requestId, LocalizedText userMessage, MembersDeleteProfilePhotoError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetAvailableTeamMemberRolesResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetAvailableTeamMemberRolesResult.java new file mode 100644 index 000000000..4088b4ff3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetAvailableTeamMemberRolesResult.java @@ -0,0 +1,160 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Available TeamMemberRole for the connected team. To be used with {@link + * DbxTeamTeamRequests#membersSetAdminPermissionsV2(UserSelectorArg,List)}. + */ +public class MembersGetAvailableTeamMemberRolesResult { + // struct team.MembersGetAvailableTeamMemberRolesResult (team_members.stone) + + @Nonnull + protected final List roles; + + /** + * Available TeamMemberRole for the connected team. To be used with {@link + * DbxTeamTeamRequests#membersSetAdminPermissionsV2(UserSelectorArg,List)}. + * + * @param roles Available roles. Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersGetAvailableTeamMemberRolesResult(@Nonnull List roles) { + if (roles == null) { + throw new IllegalArgumentException("Required value for 'roles' is null"); + } + for (TeamMemberRole x : roles) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'roles' is null"); + } + } + this.roles = roles; + } + + /** + * Available roles. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRoles() { + return roles; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.roles + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersGetAvailableTeamMemberRolesResult other = (MembersGetAvailableTeamMemberRolesResult) obj; + return (this.roles == other.roles) || (this.roles.equals(other.roles)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersGetAvailableTeamMemberRolesResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("roles"); + StoneSerializers.list(TeamMemberRole.Serializer.INSTANCE).serialize(value.roles, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersGetAvailableTeamMemberRolesResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersGetAvailableTeamMemberRolesResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_roles = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("roles".equals(field)) { + f_roles = StoneSerializers.list(TeamMemberRole.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_roles == null) { + throw new JsonParseException(p, "Required field \"roles\" missing."); + } + value = new MembersGetAvailableTeamMemberRolesResult(f_roles); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoArgs.java new file mode 100644 index 000000000..829e8e674 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoArgs.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class MembersGetInfoArgs { + // struct team.MembersGetInfoArgs (team_members.stone) + + @Nonnull + protected final List members; + + /** + * + * @param members List of team members. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersGetInfoArgs(@Nonnull List members) { + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (UserSelectorArg x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + } + + /** + * List of team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersGetInfoArgs other = (MembersGetInfoArgs) obj; + return (this.members == other.members) || (this.members.equals(other.members)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersGetInfoArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("members"); + StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).serialize(value.members, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersGetInfoArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersGetInfoArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_members = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("members".equals(field)) { + f_members = StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + value = new MembersGetInfoArgs(f_members); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoError.java new file mode 100644 index 000000000..f4977ab5d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoError.java @@ -0,0 +1,73 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersGetInfoError { + // union team.MembersGetInfoError (team_members.stone) + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersGetInfoError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersGetInfoError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersGetInfoError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else { + value = MembersGetInfoError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoErrorException.java new file mode 100644 index 000000000..bfe99a3c0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link MembersGetInfoError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} and {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}.

+ */ +public class MembersGetInfoErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/get_info + // 2/team/members/get_info_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} and {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}. + */ + public final MembersGetInfoError errorValue; + + public MembersGetInfoErrorException(String routeName, String requestId, LocalizedText userMessage, MembersGetInfoError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoItem.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoItem.java new file mode 100644 index 000000000..8f6326a54 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoItem.java @@ -0,0 +1,358 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Describes a result obtained for a single user whose id was specified in the + * parameter of {@link DbxTeamTeamRequests#membersGetInfo(java.util.List)}. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class MembersGetInfoItem { + // union team.MembersGetInfoItem (team_members.stone) + + /** + * Discriminating tag type for {@link MembersGetInfoItem}. + */ + public enum Tag { + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not + * match a corresponding user. This might be a team_member_id, an email, + * or an external ID, depending on how the method was called. + */ + ID_NOT_FOUND, // String + /** + * Info about a team member. + */ + MEMBER_INFO; // TeamMemberInfo + } + + private Tag _tag; + private String idNotFoundValue; + private TeamMemberInfo memberInfoValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MembersGetInfoItem() { + } + + + /** + * Describes a result obtained for a single user whose id was specified in + * the parameter of {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)}. + * + * @param _tag Discriminating tag for this instance. + */ + private MembersGetInfoItem withTag(Tag _tag) { + MembersGetInfoItem result = new MembersGetInfoItem(); + result._tag = _tag; + return result; + } + + /** + * Describes a result obtained for a single user whose id was specified in + * the parameter of {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)}. + * + * @param idNotFoundValue An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not + * match a corresponding user. This might be a team_member_id, an email, + * or an external ID, depending on how the method was called. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersGetInfoItem withTagAndIdNotFound(Tag _tag, String idNotFoundValue) { + MembersGetInfoItem result = new MembersGetInfoItem(); + result._tag = _tag; + result.idNotFoundValue = idNotFoundValue; + return result; + } + + /** + * Describes a result obtained for a single user whose id was specified in + * the parameter of {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)}. + * + * @param memberInfoValue Info about a team member. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersGetInfoItem withTagAndMemberInfo(Tag _tag, TeamMemberInfo memberInfoValue) { + MembersGetInfoItem result = new MembersGetInfoItem(); + result._tag = _tag; + result.memberInfoValue = memberInfoValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MembersGetInfoItem}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isIdNotFound() { + return this._tag == Tag.ID_NOT_FOUND; + } + + /** + * Returns an instance of {@code MembersGetInfoItem} that has its tag set to + * {@link Tag#ID_NOT_FOUND}. + * + *

An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not match + * a corresponding user. This might be a team_member_id, an email, or an + * external ID, depending on how the method was called.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersGetInfoItem} with its tag set to {@link + * Tag#ID_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MembersGetInfoItem idNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MembersGetInfoItem().withTagAndIdNotFound(Tag.ID_NOT_FOUND, value); + } + + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not match + * a corresponding user. This might be a team_member_id, an email, or an + * external ID, depending on how the method was called. + * + *

This instance must be tagged as {@link Tag#ID_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isIdNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isIdNotFound} is {@code false}. + */ + public String getIdNotFoundValue() { + if (this._tag != Tag.ID_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.ID_NOT_FOUND, but was Tag." + this._tag.name()); + } + return idNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_INFO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_INFO}, {@code false} otherwise. + */ + public boolean isMemberInfo() { + return this._tag == Tag.MEMBER_INFO; + } + + /** + * Returns an instance of {@code MembersGetInfoItem} that has its tag set to + * {@link Tag#MEMBER_INFO}. + * + *

Info about a team member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersGetInfoItem} with its tag set to {@link + * Tag#MEMBER_INFO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MembersGetInfoItem memberInfo(TeamMemberInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MembersGetInfoItem().withTagAndMemberInfo(Tag.MEMBER_INFO, value); + } + + /** + * Info about a team member. + * + *

This instance must be tagged as {@link Tag#MEMBER_INFO}.

+ * + * @return The {@link TeamMemberInfo} value associated with this instance if + * {@link #isMemberInfo} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberInfo} is {@code false}. + */ + public TeamMemberInfo getMemberInfoValue() { + if (this._tag != Tag.MEMBER_INFO) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_INFO, but was Tag." + this._tag.name()); + } + return memberInfoValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.idNotFoundValue, + this.memberInfoValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MembersGetInfoItem) { + MembersGetInfoItem other = (MembersGetInfoItem) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ID_NOT_FOUND: + return (this.idNotFoundValue == other.idNotFoundValue) || (this.idNotFoundValue.equals(other.idNotFoundValue)); + case MEMBER_INFO: + return (this.memberInfoValue == other.memberInfoValue) || (this.memberInfoValue.equals(other.memberInfoValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersGetInfoItem value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ID_NOT_FOUND: { + g.writeStartObject(); + writeTag("id_not_found", g); + g.writeFieldName("id_not_found"); + StoneSerializers.string().serialize(value.idNotFoundValue, g); + g.writeEndObject(); + break; + } + case MEMBER_INFO: { + g.writeStartObject(); + writeTag("member_info", g); + TeamMemberInfo.Serializer.INSTANCE.serialize(value.memberInfoValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public MembersGetInfoItem deserialize(JsonParser p) throws IOException, JsonParseException { + MembersGetInfoItem value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("id_not_found".equals(tag)) { + String fieldValue = null; + expectField("id_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MembersGetInfoItem.idNotFound(fieldValue); + } + else if ("member_info".equals(tag)) { + TeamMemberInfo fieldValue = null; + fieldValue = TeamMemberInfo.Serializer.INSTANCE.deserialize(p, true); + value = MembersGetInfoItem.memberInfo(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoItemV2.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoItemV2.java new file mode 100644 index 000000000..fa951c6b7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoItemV2.java @@ -0,0 +1,396 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Describes a result obtained for a single user whose id was specified in the + * parameter of {@link DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MembersGetInfoItemV2 { + // union team.MembersGetInfoItemV2 (team_members.stone) + + /** + * Discriminating tag type for {@link MembersGetInfoItemV2}. + */ + public enum Tag { + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not + * match a corresponding user. This might be a team_member_id, an email, + * or an external ID, depending on how the method was called. + */ + ID_NOT_FOUND, // String + /** + * Info about a team member. + */ + MEMBER_INFO, // TeamMemberInfoV2 + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MembersGetInfoItemV2 OTHER = new MembersGetInfoItemV2().withTag(Tag.OTHER); + + private Tag _tag; + private String idNotFoundValue; + private TeamMemberInfoV2 memberInfoValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MembersGetInfoItemV2() { + } + + + /** + * Describes a result obtained for a single user whose id was specified in + * the parameter of {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}. + * + * @param _tag Discriminating tag for this instance. + */ + private MembersGetInfoItemV2 withTag(Tag _tag) { + MembersGetInfoItemV2 result = new MembersGetInfoItemV2(); + result._tag = _tag; + return result; + } + + /** + * Describes a result obtained for a single user whose id was specified in + * the parameter of {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}. + * + * @param idNotFoundValue An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not + * match a corresponding user. This might be a team_member_id, an email, + * or an external ID, depending on how the method was called. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersGetInfoItemV2 withTagAndIdNotFound(Tag _tag, String idNotFoundValue) { + MembersGetInfoItemV2 result = new MembersGetInfoItemV2(); + result._tag = _tag; + result.idNotFoundValue = idNotFoundValue; + return result; + } + + /** + * Describes a result obtained for a single user whose id was specified in + * the parameter of {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}. + * + * @param memberInfoValue Info about a team member. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersGetInfoItemV2 withTagAndMemberInfo(Tag _tag, TeamMemberInfoV2 memberInfoValue) { + MembersGetInfoItemV2 result = new MembersGetInfoItemV2(); + result._tag = _tag; + result.memberInfoValue = memberInfoValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MembersGetInfoItemV2}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isIdNotFound() { + return this._tag == Tag.ID_NOT_FOUND; + } + + /** + * Returns an instance of {@code MembersGetInfoItemV2} that has its tag set + * to {@link Tag#ID_NOT_FOUND}. + * + *

An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not match + * a corresponding user. This might be a team_member_id, an email, or an + * external ID, depending on how the method was called.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersGetInfoItemV2} with its tag set to + * {@link Tag#ID_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MembersGetInfoItemV2 idNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MembersGetInfoItemV2().withTagAndIdNotFound(Tag.ID_NOT_FOUND, value); + } + + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#membersGetInfo(java.util.List)} or {@link + * DbxTeamTeamRequests#membersGetInfoV2(java.util.List)}, and did not match + * a corresponding user. This might be a team_member_id, an email, or an + * external ID, depending on how the method was called. + * + *

This instance must be tagged as {@link Tag#ID_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isIdNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isIdNotFound} is {@code false}. + */ + public String getIdNotFoundValue() { + if (this._tag != Tag.ID_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.ID_NOT_FOUND, but was Tag." + this._tag.name()); + } + return idNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_INFO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_INFO}, {@code false} otherwise. + */ + public boolean isMemberInfo() { + return this._tag == Tag.MEMBER_INFO; + } + + /** + * Returns an instance of {@code MembersGetInfoItemV2} that has its tag set + * to {@link Tag#MEMBER_INFO}. + * + *

Info about a team member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersGetInfoItemV2} with its tag set to + * {@link Tag#MEMBER_INFO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MembersGetInfoItemV2 memberInfo(TeamMemberInfoV2 value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MembersGetInfoItemV2().withTagAndMemberInfo(Tag.MEMBER_INFO, value); + } + + /** + * Info about a team member. + * + *

This instance must be tagged as {@link Tag#MEMBER_INFO}.

+ * + * @return The {@link TeamMemberInfoV2} value associated with this instance + * if {@link #isMemberInfo} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberInfo} is {@code false}. + */ + public TeamMemberInfoV2 getMemberInfoValue() { + if (this._tag != Tag.MEMBER_INFO) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_INFO, but was Tag." + this._tag.name()); + } + return memberInfoValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.idNotFoundValue, + this.memberInfoValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MembersGetInfoItemV2) { + MembersGetInfoItemV2 other = (MembersGetInfoItemV2) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ID_NOT_FOUND: + return (this.idNotFoundValue == other.idNotFoundValue) || (this.idNotFoundValue.equals(other.idNotFoundValue)); + case MEMBER_INFO: + return (this.memberInfoValue == other.memberInfoValue) || (this.memberInfoValue.equals(other.memberInfoValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersGetInfoItemV2 value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ID_NOT_FOUND: { + g.writeStartObject(); + writeTag("id_not_found", g); + g.writeFieldName("id_not_found"); + StoneSerializers.string().serialize(value.idNotFoundValue, g); + g.writeEndObject(); + break; + } + case MEMBER_INFO: { + g.writeStartObject(); + writeTag("member_info", g); + TeamMemberInfoV2.Serializer.INSTANCE.serialize(value.memberInfoValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersGetInfoItemV2 deserialize(JsonParser p) throws IOException, JsonParseException { + MembersGetInfoItemV2 value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("id_not_found".equals(tag)) { + String fieldValue = null; + expectField("id_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = MembersGetInfoItemV2.idNotFound(fieldValue); + } + else if ("member_info".equals(tag)) { + TeamMemberInfoV2 fieldValue = null; + fieldValue = TeamMemberInfoV2.Serializer.INSTANCE.deserialize(p, true); + value = MembersGetInfoItemV2.memberInfo(fieldValue); + } + else { + value = MembersGetInfoItemV2.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoV2Arg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoV2Arg.java new file mode 100644 index 000000000..be120c82a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoV2Arg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class MembersGetInfoV2Arg { + // struct team.MembersGetInfoV2Arg (team_members.stone) + + @Nonnull + protected final List members; + + /** + * + * @param members List of team members. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersGetInfoV2Arg(@Nonnull List members) { + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (UserSelectorArg x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + } + + /** + * List of team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersGetInfoV2Arg other = (MembersGetInfoV2Arg) obj; + return (this.members == other.members) || (this.members.equals(other.members)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersGetInfoV2Arg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("members"); + StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).serialize(value.members, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersGetInfoV2Arg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersGetInfoV2Arg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_members = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("members".equals(field)) { + f_members = StoneSerializers.list(UserSelectorArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + value = new MembersGetInfoV2Arg(f_members); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoV2Result.java new file mode 100644 index 000000000..174cc1710 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersGetInfoV2Result.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class MembersGetInfoV2Result { + // struct team.MembersGetInfoV2Result (team_members.stone) + + @Nonnull + protected final List membersInfo; + + /** + * + * @param membersInfo List of team members info. Must not contain a {@code + * null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersGetInfoV2Result(@Nonnull List membersInfo) { + if (membersInfo == null) { + throw new IllegalArgumentException("Required value for 'membersInfo' is null"); + } + for (MembersGetInfoItemV2 x : membersInfo) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'membersInfo' is null"); + } + } + this.membersInfo = membersInfo; + } + + /** + * List of team members info. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembersInfo() { + return membersInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.membersInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersGetInfoV2Result other = (MembersGetInfoV2Result) obj; + return (this.membersInfo == other.membersInfo) || (this.membersInfo.equals(other.membersInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersGetInfoV2Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("members_info"); + StoneSerializers.list(MembersGetInfoItemV2.Serializer.INSTANCE).serialize(value.membersInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersGetInfoV2Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersGetInfoV2Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_membersInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("members_info".equals(field)) { + f_membersInfo = StoneSerializers.list(MembersGetInfoItemV2.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_membersInfo == null) { + throw new JsonParseException(p, "Required field \"members_info\" missing."); + } + value = new MembersGetInfoV2Result(f_membersInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersInfo.java new file mode 100644 index 000000000..ac4b9b2b5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersInfo.java @@ -0,0 +1,179 @@ +/* DO NOT EDIT */ +/* This file was generated from team_legal_holds.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class MembersInfo { + // struct team.MembersInfo (team_legal_holds.stone) + + @Nonnull + protected final List teamMemberIds; + protected final long permanentlyDeletedUsers; + + /** + * + * @param teamMemberIds Team member IDs of the users under this hold. Must + * not contain a {@code null} item and not be {@code null}. + * @param permanentlyDeletedUsers The number of permanently deleted users + * that were under this hold. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersInfo(@Nonnull List teamMemberIds, long permanentlyDeletedUsers) { + if (teamMemberIds == null) { + throw new IllegalArgumentException("Required value for 'teamMemberIds' is null"); + } + for (String x : teamMemberIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'teamMemberIds' is null"); + } + } + this.teamMemberIds = teamMemberIds; + this.permanentlyDeletedUsers = permanentlyDeletedUsers; + } + + /** + * Team member IDs of the users under this hold. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTeamMemberIds() { + return teamMemberIds; + } + + /** + * The number of permanently deleted users that were under this hold. + * + * @return value for this field. + */ + public long getPermanentlyDeletedUsers() { + return permanentlyDeletedUsers; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberIds, + this.permanentlyDeletedUsers + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersInfo other = (MembersInfo) obj; + return ((this.teamMemberIds == other.teamMemberIds) || (this.teamMemberIds.equals(other.teamMemberIds))) + && (this.permanentlyDeletedUsers == other.permanentlyDeletedUsers) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.teamMemberIds, g); + g.writeFieldName("permanently_deleted_users"); + StoneSerializers.uInt64().serialize(value.permanentlyDeletedUsers, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_teamMemberIds = null; + Long f_permanentlyDeletedUsers = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_ids".equals(field)) { + f_teamMemberIds = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("permanently_deleted_users".equals(field)) { + f_permanentlyDeletedUsers = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberIds == null) { + throw new JsonParseException(p, "Required field \"team_member_ids\" missing."); + } + if (f_permanentlyDeletedUsers == null) { + throw new JsonParseException(p, "Required field \"permanently_deleted_users\" missing."); + } + value = new MembersInfo(f_teamMemberIds, f_permanentlyDeletedUsers); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListArg.java new file mode 100644 index 000000000..ec63ef5c6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListArg.java @@ -0,0 +1,263 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class MembersListArg { + // struct team.MembersListArg (team_members.stone) + + protected final long limit; + protected final boolean includeRemoved; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * @param includeRemoved Whether to return removed members. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListArg(long limit, boolean includeRemoved) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + this.includeRemoved = includeRemoved; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public MembersListArg() { + this(1000L, false); + } + + /** + * Number of results to return per call. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + /** + * Whether to return removed members. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getIncludeRemoved() { + return includeRemoved; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link MembersListArg}. + */ + public static class Builder { + + protected long limit; + protected boolean includeRemoved; + + protected Builder() { + this.limit = 1000L; + this.includeRemoved = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}. + *

+ * + * @param limit Number of results to return per call. Must be greater + * than or equal to 1 and be less than or equal to 1000. Defaults to + * {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 1000L; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param includeRemoved Whether to return removed members. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withIncludeRemoved(Boolean includeRemoved) { + if (includeRemoved != null) { + this.includeRemoved = includeRemoved; + } + else { + this.includeRemoved = false; + } + return this; + } + + /** + * Builds an instance of {@link MembersListArg} configured with this + * builder's values + * + * @return new instance of {@link MembersListArg} + */ + public MembersListArg build() { + return new MembersListArg(limit, includeRemoved); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit, + this.includeRemoved + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersListArg other = (MembersListArg) obj; + return (this.limit == other.limit) + && (this.includeRemoved == other.includeRemoved) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + g.writeFieldName("include_removed"); + StoneSerializers.boolean_().serialize(value.includeRemoved, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + Boolean f_includeRemoved = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else if ("include_removed".equals(field)) { + f_includeRemoved = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + value = new MembersListArg(f_limit, f_includeRemoved); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListBuilder.java new file mode 100644 index 000000000..03a872307 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListBuilder.java @@ -0,0 +1,80 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#membersListBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MembersListBuilder { + private final DbxTeamTeamRequests _client; + private final MembersListArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MembersListBuilder(DbxTeamTeamRequests _client, MembersListArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}.

+ * + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. Defaults to {@code + * 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeRemoved Whether to return removed members. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public MembersListBuilder withIncludeRemoved(Boolean includeRemoved) { + this._builder.withIncludeRemoved(includeRemoved); + return this; + } + + /** + * Issues the request. + */ + public MembersListResult start() throws MembersListErrorException, DbxException { + MembersListArg arg_ = this._builder.build(); + return _client.membersList(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueArg.java new file mode 100644 index 000000000..fe589099d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class MembersListContinueArg { + // struct team.MembersListContinueArg (team_members.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor Indicates from what point to get the next set of members. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Indicates from what point to get the next set of members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersListContinueArg other = (MembersListContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersListContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersListContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersListContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new MembersListContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueError.java new file mode 100644 index 000000000..01aeb8fa2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersListContinueError { + // union team.MembersListContinueError (team_members.stone) + /** + * The cursor is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersListContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersListContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersListContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_cursor".equals(tag)) { + value = MembersListContinueError.INVALID_CURSOR; + } + else { + value = MembersListContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueErrorException.java new file mode 100644 index 000000000..3c93a0ea9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListContinueErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersListContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersListContinue(String)} and {@link + * DbxTeamTeamRequests#membersListContinueV2(String)}.

+ */ +public class MembersListContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/list/continue + // 2/team/members/list/continue_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersListContinue(String)} and {@link + * DbxTeamTeamRequests#membersListContinueV2(String)}. + */ + public final MembersListContinueError errorValue; + + public MembersListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, MembersListContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListError.java new file mode 100644 index 000000000..4b14f2737 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListError.java @@ -0,0 +1,73 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersListError { + // union team.MembersListError (team_members.stone) + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersListError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersListError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersListError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else { + value = MembersListError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListErrorException.java new file mode 100644 index 000000000..49dbf4dca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link MembersListError} + * error. + * + *

This exception is raised by {@link DbxTeamTeamRequests#membersList} and + * {@link DbxTeamTeamRequests#membersListV2}.

+ */ +public class MembersListErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/list + // 2/team/members/list_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#membersList} and {@link + * DbxTeamTeamRequests#membersListV2}. + */ + public final MembersListError errorValue; + + public MembersListErrorException(String routeName, String requestId, LocalizedText userMessage, MembersListError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListResult.java new file mode 100644 index 000000000..f9b61ace1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListResult.java @@ -0,0 +1,214 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class MembersListResult { + // struct team.MembersListResult (team_members.stone) + + @Nonnull + protected final List members; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * + * @param members List of team members. Must not contain a {@code null} + * item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#membersListContinue(String)} to obtain the + * additional members. Must not be {@code null}. + * @param hasMore Is true if there are additional team members that have + * not been returned yet. An additional call to {@link + * DbxTeamTeamRequests#membersListContinue(String)} can retrieve them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListResult(@Nonnull List members, @Nonnull String cursor, boolean hasMore) { + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (TeamMemberInfo x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * List of team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#membersListContinue(String)} to obtain the additional + * members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there are additional team members that have not been returned + * yet. An additional call to {@link + * DbxTeamTeamRequests#membersListContinue(String)} can retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersListResult other = (MembersListResult) obj; + return ((this.members == other.members) || (this.members.equals(other.members))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersListResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("members"); + StoneSerializers.list(TeamMemberInfo.Serializer.INSTANCE).serialize(value.members, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersListResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersListResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_members = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("members".equals(field)) { + f_members = StoneSerializers.list(TeamMemberInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new MembersListResult(f_members, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListV2Builder.java new file mode 100644 index 000000000..caae16082 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListV2Builder.java @@ -0,0 +1,80 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#membersListV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MembersListV2Builder { + private final DbxTeamTeamRequests _client; + private final MembersListArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MembersListV2Builder(DbxTeamTeamRequests _client, MembersListArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}.

+ * + * @param limit Number of results to return per call. Must be greater than + * or equal to 1 and be less than or equal to 1000. Defaults to {@code + * 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListV2Builder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param includeRemoved Whether to return removed members. Defaults to + * {@code false} when set to {@code null}. + * + * @return this builder + */ + public MembersListV2Builder withIncludeRemoved(Boolean includeRemoved) { + this._builder.withIncludeRemoved(includeRemoved); + return this; + } + + /** + * Issues the request. + */ + public MembersListV2Result start() throws MembersListErrorException, DbxException { + MembersListArg arg_ = this._builder.build(); + return _client.membersListV2(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListV2Result.java new file mode 100644 index 000000000..f0281f134 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListV2Result.java @@ -0,0 +1,214 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class MembersListV2Result { + // struct team.MembersListV2Result (team_members.stone) + + @Nonnull + protected final List members; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * + * @param members List of team members. Must not contain a {@code null} + * item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#membersListContinueV2(String)} to obtain the + * additional members. Must not be {@code null}. + * @param hasMore Is true if there are additional team members that have + * not been returned yet. An additional call to {@link + * DbxTeamTeamRequests#membersListContinueV2(String)} can retrieve them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersListV2Result(@Nonnull List members, @Nonnull String cursor, boolean hasMore) { + if (members == null) { + throw new IllegalArgumentException("Required value for 'members' is null"); + } + for (TeamMemberInfoV2 x : members) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'members' is null"); + } + } + this.members = members; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * List of team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getMembers() { + return members; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#membersListContinueV2(String)} to obtain the + * additional members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there are additional team members that have not been returned + * yet. An additional call to {@link + * DbxTeamTeamRequests#membersListContinueV2(String)} can retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.members, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersListV2Result other = (MembersListV2Result) obj; + return ((this.members == other.members) || (this.members.equals(other.members))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersListV2Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("members"); + StoneSerializers.list(TeamMemberInfoV2.Serializer.INSTANCE).serialize(value.members, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersListV2Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersListV2Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_members = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("members".equals(field)) { + f_members = StoneSerializers.list(TeamMemberInfoV2.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_members == null) { + throw new JsonParseException(p, "Required field \"members\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new MembersListV2Result(f_members, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverArg.java new file mode 100644 index 000000000..dc988475c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverArg.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + */ +class MembersRecoverArg { + // struct team.MembersRecoverArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + * + * @param user Identity of user to recover. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersRecoverArg(@Nonnull UserSelectorArg user) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + } + + /** + * Identity of user to recover. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersRecoverArg other = (MembersRecoverArg) obj; + return (this.user == other.user) || (this.user.equals(other.user)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersRecoverArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersRecoverArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersRecoverArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersRecoverArg(f_user); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverError.java new file mode 100644 index 000000000..bf2456781 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverError.java @@ -0,0 +1,118 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersRecoverError { + // union team.MembersRecoverError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not recoverable. + */ + USER_UNRECOVERABLE, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Team is full. The organization has no available licenses. + */ + TEAM_LICENSE_LIMIT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersRecoverError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_UNRECOVERABLE: { + g.writeString("user_unrecoverable"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case TEAM_LICENSE_LIMIT: { + g.writeString("team_license_limit"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersRecoverError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersRecoverError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersRecoverError.USER_NOT_FOUND; + } + else if ("user_unrecoverable".equals(tag)) { + value = MembersRecoverError.USER_UNRECOVERABLE; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersRecoverError.USER_NOT_IN_TEAM; + } + else if ("team_license_limit".equals(tag)) { + value = MembersRecoverError.TEAM_LICENSE_LIMIT; + } + else { + value = MembersRecoverError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverErrorException.java new file mode 100644 index 000000000..4e8c93f48 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link MembersRecoverError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersRecover(UserSelectorArg)}.

+ */ +public class MembersRecoverErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/recover + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersRecover(UserSelectorArg)}. + */ + public final MembersRecoverError errorValue; + + public MembersRecoverErrorException(String routeName, String requestId, LocalizedText userMessage, MembersRecoverError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveArg.java new file mode 100644 index 000000000..94788e2a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveArg.java @@ -0,0 +1,461 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class MembersRemoveArg extends MembersDeactivateArg { + // struct team.MembersRemoveArg (team_members.stone) + + @Nullable + protected final UserSelectorArg transferDestId; + @Nullable + protected final UserSelectorArg transferAdminId; + protected final boolean keepAccount; + protected final boolean retainTeamShares; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * @param wipeData If provided, controls if the user's data will be deleted + * on their linked devices. + * @param transferDestId If provided, files from the deleted member account + * will be transferred to this user. + * @param transferAdminId If provided, errors during the transfer process + * will be sent via email to this user. If the transfer_dest_id argument + * was provided, then this argument must be provided as well. + * @param keepAccount Downgrade the member to a Basic account. The user + * will retain the email address associated with their Dropbox account + * and data in their account that is not restricted to team members. In + * order to keep the account the argument the {@code wipeData} argument + * to {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} should + * be set to {@code false}. + * @param retainTeamShares If provided, allows removed users to keep access + * to Dropbox folders (not Dropbox Paper folders) already explicitly + * shared with them (not via a group) when they are downgraded to a + * Basic account. Users will not retain access to folders that do not + * allow external sharing. In order to keep the sharing relationships, + * the arguments the {@code wipeData} argument to {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} should + * be set to {@code false} and {@link MembersRemoveArg#getKeepAccount} + * should be set to {@code true}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersRemoveArg(@Nonnull UserSelectorArg user, boolean wipeData, @Nullable UserSelectorArg transferDestId, @Nullable UserSelectorArg transferAdminId, boolean keepAccount, boolean retainTeamShares) { + super(user, wipeData); + this.transferDestId = transferDestId; + this.transferAdminId = transferAdminId; + this.keepAccount = keepAccount; + this.retainTeamShares = retainTeamShares; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersRemoveArg(@Nonnull UserSelectorArg user) { + this(user, true, null, null, false, false); + } + + /** + * Identity of user to remove/suspend/have their files moved. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * If provided, controls if the user's data will be deleted on their linked + * devices. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getWipeData() { + return wipeData; + } + + /** + * If provided, files from the deleted member account will be transferred to + * this user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserSelectorArg getTransferDestId() { + return transferDestId; + } + + /** + * If provided, errors during the transfer process will be sent via email to + * this user. If the transfer_dest_id argument was provided, then this + * argument must be provided as well. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserSelectorArg getTransferAdminId() { + return transferAdminId; + } + + /** + * Downgrade the member to a Basic account. The user will retain the email + * address associated with their Dropbox account and data in their account + * that is not restricted to team members. In order to keep the account the + * argument the {@code wipeData} argument to {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} should be + * set to {@code false}. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getKeepAccount() { + return keepAccount; + } + + /** + * If provided, allows removed users to keep access to Dropbox folders (not + * Dropbox Paper folders) already explicitly shared with them (not via a + * group) when they are downgraded to a Basic account. Users will not retain + * access to folders that do not allow external sharing. In order to keep + * the sharing relationships, the arguments the {@code wipeData} argument to + * {@link DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} + * should be set to {@code false} and {@link + * MembersRemoveArg#getKeepAccount} should be set to {@code true}. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getRetainTeamShares() { + return retainTeamShares; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param user Identity of user to remove/suspend/have their files moved. + * Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(UserSelectorArg user) { + return new Builder(user); + } + + /** + * Builder for {@link MembersRemoveArg}. + */ + public static class Builder { + protected final UserSelectorArg user; + + protected boolean wipeData; + protected UserSelectorArg transferDestId; + protected UserSelectorArg transferAdminId; + protected boolean keepAccount; + protected boolean retainTeamShares; + + protected Builder(UserSelectorArg user) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + this.wipeData = true; + this.transferDestId = null; + this.transferAdminId = null; + this.keepAccount = false; + this.retainTeamShares = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}. + *

+ * + * @param wipeData If provided, controls if the user's data will be + * deleted on their linked devices. Defaults to {@code true} when + * set to {@code null}. + * + * @return this builder + */ + public Builder withWipeData(Boolean wipeData) { + if (wipeData != null) { + this.wipeData = wipeData; + } + else { + this.wipeData = true; + } + return this; + } + + /** + * Set value for optional field. + * + * @param transferDestId If provided, files from the deleted member + * account will be transferred to this user. + * + * @return this builder + */ + public Builder withTransferDestId(UserSelectorArg transferDestId) { + this.transferDestId = transferDestId; + return this; + } + + /** + * Set value for optional field. + * + * @param transferAdminId If provided, errors during the transfer + * process will be sent via email to this user. If the + * transfer_dest_id argument was provided, then this argument must + * be provided as well. + * + * @return this builder + */ + public Builder withTransferAdminId(UserSelectorArg transferAdminId) { + this.transferAdminId = transferAdminId; + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param keepAccount Downgrade the member to a Basic account. The user + * will retain the email address associated with their Dropbox + * account and data in their account that is not restricted to team + * members. In order to keep the account the argument the {@code + * wipeData} argument to {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} + * should be set to {@code false}. Defaults to {@code false} when + * set to {@code null}. + * + * @return this builder + */ + public Builder withKeepAccount(Boolean keepAccount) { + if (keepAccount != null) { + this.keepAccount = keepAccount; + } + else { + this.keepAccount = false; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param retainTeamShares If provided, allows removed users to keep + * access to Dropbox folders (not Dropbox Paper folders) already + * explicitly shared with them (not via a group) when they are + * downgraded to a Basic account. Users will not retain access to + * folders that do not allow external sharing. In order to keep the + * sharing relationships, the arguments the {@code wipeData} + * argument to {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} + * should be set to {@code false} and {@link + * MembersRemoveArg#getKeepAccount} should be set to {@code true}. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withRetainTeamShares(Boolean retainTeamShares) { + if (retainTeamShares != null) { + this.retainTeamShares = retainTeamShares; + } + else { + this.retainTeamShares = false; + } + return this; + } + + /** + * Builds an instance of {@link MembersRemoveArg} configured with this + * builder's values + * + * @return new instance of {@link MembersRemoveArg} + */ + public MembersRemoveArg build() { + return new MembersRemoveArg(user, wipeData, transferDestId, transferAdminId, keepAccount, retainTeamShares); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.transferDestId, + this.transferAdminId, + this.keepAccount, + this.retainTeamShares + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersRemoveArg other = (MembersRemoveArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && (this.wipeData == other.wipeData) + && ((this.transferDestId == other.transferDestId) || (this.transferDestId != null && this.transferDestId.equals(other.transferDestId))) + && ((this.transferAdminId == other.transferAdminId) || (this.transferAdminId != null && this.transferAdminId.equals(other.transferAdminId))) + && (this.keepAccount == other.keepAccount) + && (this.retainTeamShares == other.retainTeamShares) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersRemoveArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("wipe_data"); + StoneSerializers.boolean_().serialize(value.wipeData, g); + if (value.transferDestId != null) { + g.writeFieldName("transfer_dest_id"); + StoneSerializers.nullable(UserSelectorArg.Serializer.INSTANCE).serialize(value.transferDestId, g); + } + if (value.transferAdminId != null) { + g.writeFieldName("transfer_admin_id"); + StoneSerializers.nullable(UserSelectorArg.Serializer.INSTANCE).serialize(value.transferAdminId, g); + } + g.writeFieldName("keep_account"); + StoneSerializers.boolean_().serialize(value.keepAccount, g); + g.writeFieldName("retain_team_shares"); + StoneSerializers.boolean_().serialize(value.retainTeamShares, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersRemoveArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersRemoveArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + Boolean f_wipeData = true; + UserSelectorArg f_transferDestId = null; + UserSelectorArg f_transferAdminId = null; + Boolean f_keepAccount = false; + Boolean f_retainTeamShares = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("wipe_data".equals(field)) { + f_wipeData = StoneSerializers.boolean_().deserialize(p); + } + else if ("transfer_dest_id".equals(field)) { + f_transferDestId = StoneSerializers.nullable(UserSelectorArg.Serializer.INSTANCE).deserialize(p); + } + else if ("transfer_admin_id".equals(field)) { + f_transferAdminId = StoneSerializers.nullable(UserSelectorArg.Serializer.INSTANCE).deserialize(p); + } + else if ("keep_account".equals(field)) { + f_keepAccount = StoneSerializers.boolean_().deserialize(p); + } + else if ("retain_team_shares".equals(field)) { + f_retainTeamShares = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersRemoveArg(f_user, f_wipeData, f_transferDestId, f_transferAdminId, f_keepAccount, f_retainTeamShares); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveBuilder.java new file mode 100644 index 000000000..89e127eae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveBuilder.java @@ -0,0 +1,134 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.async.LaunchEmptyResult; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#membersRemoveBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MembersRemoveBuilder { + private final DbxTeamTeamRequests _client; + private final MembersRemoveArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MembersRemoveBuilder(DbxTeamTeamRequests _client, MembersRemoveArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code true}.

+ * + * @param wipeData If provided, controls if the user's data will be deleted + * on their linked devices. Defaults to {@code true} when set to {@code + * null}. + * + * @return this builder + */ + public MembersRemoveBuilder withWipeData(Boolean wipeData) { + this._builder.withWipeData(wipeData); + return this; + } + + /** + * Set value for optional field. + * + * @param transferDestId If provided, files from the deleted member account + * will be transferred to this user. + * + * @return this builder + */ + public MembersRemoveBuilder withTransferDestId(UserSelectorArg transferDestId) { + this._builder.withTransferDestId(transferDestId); + return this; + } + + /** + * Set value for optional field. + * + * @param transferAdminId If provided, errors during the transfer process + * will be sent via email to this user. If the transfer_dest_id argument + * was provided, then this argument must be provided as well. + * + * @return this builder + */ + public MembersRemoveBuilder withTransferAdminId(UserSelectorArg transferAdminId) { + this._builder.withTransferAdminId(transferAdminId); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param keepAccount Downgrade the member to a Basic account. The user + * will retain the email address associated with their Dropbox account + * and data in their account that is not restricted to team members. In + * order to keep the account the argument the {@code wipeData} argument + * to {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} should + * be set to {@code false}. Defaults to {@code false} when set to {@code + * null}. + * + * @return this builder + */ + public MembersRemoveBuilder withKeepAccount(Boolean keepAccount) { + this._builder.withKeepAccount(keepAccount); + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}.

+ * + * @param retainTeamShares If provided, allows removed users to keep access + * to Dropbox folders (not Dropbox Paper folders) already explicitly + * shared with them (not via a group) when they are downgraded to a + * Basic account. Users will not retain access to folders that do not + * allow external sharing. In order to keep the sharing relationships, + * the arguments the {@code wipeData} argument to {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)} should + * be set to {@code false} and {@link MembersRemoveArg#getKeepAccount} + * should be set to {@code true}. Defaults to {@code false} when set to + * {@code null}. + * + * @return this builder + */ + public MembersRemoveBuilder withRetainTeamShares(Boolean retainTeamShares) { + this._builder.withRetainTeamShares(retainTeamShares); + return this; + } + + /** + * Issues the request. + */ + public LaunchEmptyResult start() throws MembersRemoveErrorException, DbxException { + MembersRemoveArg arg_ = this._builder.build(); + return _client.membersRemove(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveError.java new file mode 100644 index 000000000..02b35305b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveError.java @@ -0,0 +1,333 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersRemoveError { + // union team.MembersRemoveError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Expected removed user and transfer_dest user to be different. + */ + REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER, + /** + * Expected removed user and transfer_admin user to be different. + */ + REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER, + /** + * No matching user found for the argument transfer_dest_id. + */ + TRANSFER_DEST_USER_NOT_FOUND, + /** + * The provided transfer_dest_id does not exist on this team. + */ + TRANSFER_DEST_USER_NOT_IN_TEAM, + /** + * The provided transfer_admin_id does not exist on this team. + */ + TRANSFER_ADMIN_USER_NOT_IN_TEAM, + /** + * No matching user found for the argument transfer_admin_id. + */ + TRANSFER_ADMIN_USER_NOT_FOUND, + /** + * The transfer_admin_id argument must be provided when file transfer is + * requested. + */ + UNSPECIFIED_TRANSFER_ADMIN_ID, + /** + * Specified transfer_admin user is not a team admin. + */ + TRANSFER_ADMIN_IS_NOT_ADMIN, + /** + * The recipient user's email is not verified. + */ + RECIPIENT_NOT_VERIFIED, + /** + * The user is the last admin of the team, so it cannot be removed from it. + */ + REMOVE_LAST_ADMIN, + /** + * Cannot keep account and transfer the data to another user at the same + * time. + */ + CANNOT_KEEP_ACCOUNT_AND_TRANSFER, + /** + * Cannot keep account and delete the data at the same time. To keep the + * account the argument wipe_data should be set to {@code false}. + */ + CANNOT_KEEP_ACCOUNT_AND_DELETE_DATA, + /** + * The email address of the user is too long to be disabled. + */ + EMAIL_ADDRESS_TOO_LONG_TO_BE_DISABLED, + /** + * Cannot keep account of an invited user. + */ + CANNOT_KEEP_INVITED_USER_ACCOUNT, + /** + * Cannot retain team shares when the user's data is marked for deletion on + * their linked devices. The argument wipe_data should be set to {@code + * false}. + */ + CANNOT_RETAIN_SHARES_WHEN_DATA_WIPED, + /** + * The user's account must be kept in order to retain team shares. The + * argument keep_account should be set to {@code true}. + */ + CANNOT_RETAIN_SHARES_WHEN_NO_ACCOUNT_KEPT, + /** + * Externally sharing files, folders, and links must be enabled in team + * settings in order to retain team shares for the user. + */ + CANNOT_RETAIN_SHARES_WHEN_TEAM_EXTERNAL_SHARING_OFF, + /** + * Only a team admin, can convert this account to a Basic account. + */ + CANNOT_KEEP_ACCOUNT, + /** + * This user content is currently being held. To convert this member's + * account to a Basic account, you'll first need to remove them from the + * hold. + */ + CANNOT_KEEP_ACCOUNT_UNDER_LEGAL_HOLD, + /** + * To convert this member to a Basic account, they'll first need to sign in + * to Dropbox and agree to the terms of service. + */ + CANNOT_KEEP_ACCOUNT_REQUIRED_TO_SIGN_TOS; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersRemoveError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER: { + g.writeString("removed_and_transfer_dest_should_differ"); + break; + } + case REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER: { + g.writeString("removed_and_transfer_admin_should_differ"); + break; + } + case TRANSFER_DEST_USER_NOT_FOUND: { + g.writeString("transfer_dest_user_not_found"); + break; + } + case TRANSFER_DEST_USER_NOT_IN_TEAM: { + g.writeString("transfer_dest_user_not_in_team"); + break; + } + case TRANSFER_ADMIN_USER_NOT_IN_TEAM: { + g.writeString("transfer_admin_user_not_in_team"); + break; + } + case TRANSFER_ADMIN_USER_NOT_FOUND: { + g.writeString("transfer_admin_user_not_found"); + break; + } + case UNSPECIFIED_TRANSFER_ADMIN_ID: { + g.writeString("unspecified_transfer_admin_id"); + break; + } + case TRANSFER_ADMIN_IS_NOT_ADMIN: { + g.writeString("transfer_admin_is_not_admin"); + break; + } + case RECIPIENT_NOT_VERIFIED: { + g.writeString("recipient_not_verified"); + break; + } + case REMOVE_LAST_ADMIN: { + g.writeString("remove_last_admin"); + break; + } + case CANNOT_KEEP_ACCOUNT_AND_TRANSFER: { + g.writeString("cannot_keep_account_and_transfer"); + break; + } + case CANNOT_KEEP_ACCOUNT_AND_DELETE_DATA: { + g.writeString("cannot_keep_account_and_delete_data"); + break; + } + case EMAIL_ADDRESS_TOO_LONG_TO_BE_DISABLED: { + g.writeString("email_address_too_long_to_be_disabled"); + break; + } + case CANNOT_KEEP_INVITED_USER_ACCOUNT: { + g.writeString("cannot_keep_invited_user_account"); + break; + } + case CANNOT_RETAIN_SHARES_WHEN_DATA_WIPED: { + g.writeString("cannot_retain_shares_when_data_wiped"); + break; + } + case CANNOT_RETAIN_SHARES_WHEN_NO_ACCOUNT_KEPT: { + g.writeString("cannot_retain_shares_when_no_account_kept"); + break; + } + case CANNOT_RETAIN_SHARES_WHEN_TEAM_EXTERNAL_SHARING_OFF: { + g.writeString("cannot_retain_shares_when_team_external_sharing_off"); + break; + } + case CANNOT_KEEP_ACCOUNT: { + g.writeString("cannot_keep_account"); + break; + } + case CANNOT_KEEP_ACCOUNT_UNDER_LEGAL_HOLD: { + g.writeString("cannot_keep_account_under_legal_hold"); + break; + } + case CANNOT_KEEP_ACCOUNT_REQUIRED_TO_SIGN_TOS: { + g.writeString("cannot_keep_account_required_to_sign_tos"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public MembersRemoveError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersRemoveError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersRemoveError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersRemoveError.USER_NOT_IN_TEAM; + } + else if ("other".equals(tag)) { + value = MembersRemoveError.OTHER; + } + else if ("removed_and_transfer_dest_should_differ".equals(tag)) { + value = MembersRemoveError.REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER; + } + else if ("removed_and_transfer_admin_should_differ".equals(tag)) { + value = MembersRemoveError.REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER; + } + else if ("transfer_dest_user_not_found".equals(tag)) { + value = MembersRemoveError.TRANSFER_DEST_USER_NOT_FOUND; + } + else if ("transfer_dest_user_not_in_team".equals(tag)) { + value = MembersRemoveError.TRANSFER_DEST_USER_NOT_IN_TEAM; + } + else if ("transfer_admin_user_not_in_team".equals(tag)) { + value = MembersRemoveError.TRANSFER_ADMIN_USER_NOT_IN_TEAM; + } + else if ("transfer_admin_user_not_found".equals(tag)) { + value = MembersRemoveError.TRANSFER_ADMIN_USER_NOT_FOUND; + } + else if ("unspecified_transfer_admin_id".equals(tag)) { + value = MembersRemoveError.UNSPECIFIED_TRANSFER_ADMIN_ID; + } + else if ("transfer_admin_is_not_admin".equals(tag)) { + value = MembersRemoveError.TRANSFER_ADMIN_IS_NOT_ADMIN; + } + else if ("recipient_not_verified".equals(tag)) { + value = MembersRemoveError.RECIPIENT_NOT_VERIFIED; + } + else if ("remove_last_admin".equals(tag)) { + value = MembersRemoveError.REMOVE_LAST_ADMIN; + } + else if ("cannot_keep_account_and_transfer".equals(tag)) { + value = MembersRemoveError.CANNOT_KEEP_ACCOUNT_AND_TRANSFER; + } + else if ("cannot_keep_account_and_delete_data".equals(tag)) { + value = MembersRemoveError.CANNOT_KEEP_ACCOUNT_AND_DELETE_DATA; + } + else if ("email_address_too_long_to_be_disabled".equals(tag)) { + value = MembersRemoveError.EMAIL_ADDRESS_TOO_LONG_TO_BE_DISABLED; + } + else if ("cannot_keep_invited_user_account".equals(tag)) { + value = MembersRemoveError.CANNOT_KEEP_INVITED_USER_ACCOUNT; + } + else if ("cannot_retain_shares_when_data_wiped".equals(tag)) { + value = MembersRemoveError.CANNOT_RETAIN_SHARES_WHEN_DATA_WIPED; + } + else if ("cannot_retain_shares_when_no_account_kept".equals(tag)) { + value = MembersRemoveError.CANNOT_RETAIN_SHARES_WHEN_NO_ACCOUNT_KEPT; + } + else if ("cannot_retain_shares_when_team_external_sharing_off".equals(tag)) { + value = MembersRemoveError.CANNOT_RETAIN_SHARES_WHEN_TEAM_EXTERNAL_SHARING_OFF; + } + else if ("cannot_keep_account".equals(tag)) { + value = MembersRemoveError.CANNOT_KEEP_ACCOUNT; + } + else if ("cannot_keep_account_under_legal_hold".equals(tag)) { + value = MembersRemoveError.CANNOT_KEEP_ACCOUNT_UNDER_LEGAL_HOLD; + } + else if ("cannot_keep_account_required_to_sign_tos".equals(tag)) { + value = MembersRemoveError.CANNOT_KEEP_ACCOUNT_REQUIRED_TO_SIGN_TOS; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveErrorException.java new file mode 100644 index 000000000..2d766c590 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link MembersRemoveError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersRemove(UserSelectorArg)}.

+ */ +public class MembersRemoveErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/remove + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersRemove(UserSelectorArg)}. + */ + public final MembersRemoveError errorValue; + + public MembersRemoveErrorException(String routeName, String requestId, LocalizedText userMessage, MembersRemoveError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSendWelcomeError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSendWelcomeError.java new file mode 100644 index 000000000..54ab07276 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSendWelcomeError.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersSendWelcomeError { + // union team.MembersSendWelcomeError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSendWelcomeError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersSendWelcomeError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersSendWelcomeError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersSendWelcomeError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersSendWelcomeError.USER_NOT_IN_TEAM; + } + else { + value = MembersSendWelcomeError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSendWelcomeErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSendWelcomeErrorException.java new file mode 100644 index 000000000..9084898e7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSendWelcomeErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersSendWelcomeError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersSendWelcomeEmail}.

+ */ +public class MembersSendWelcomeErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/send_welcome_email + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersSendWelcomeEmail}. + */ + public final MembersSendWelcomeError errorValue; + + public MembersSendWelcomeErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSendWelcomeError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Arg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Arg.java new file mode 100644 index 000000000..bdf179fbe --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Arg.java @@ -0,0 +1,216 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + */ +class MembersSetPermissions2Arg { + // struct team.MembersSetPermissions2Arg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nullable + protected final List newRoles; + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + * + * @param user Identity of user whose role will be set. Must not be {@code + * null}. + * @param newRoles The new roles for the member. Send empty list to make + * user member only. For now, only up to one role is allowed. Must + * contain at most 1 items and not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissions2Arg(@Nonnull UserSelectorArg user, @Nullable List newRoles) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (newRoles != null) { + if (newRoles.size() > 1) { + throw new IllegalArgumentException("List 'newRoles' has more than 1 items"); + } + for (String x : newRoles) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'newRoles' is null"); + } + if (x.length() > 128) { + throw new IllegalArgumentException("Stringan item in list 'newRoles' is longer than 128"); + } + if (!java.util.regex.Pattern.matches("pid_dbtmr:.*", x)) { + throw new IllegalArgumentException("Stringan item in list 'newRoles' does not match pattern"); + } + } + } + this.newRoles = newRoles; + } + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + * + *

The default values for unset fields will be used.

+ * + * @param user Identity of user whose role will be set. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissions2Arg(@Nonnull UserSelectorArg user) { + this(user, null); + } + + /** + * Identity of user whose role will be set. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * The new roles for the member. Send empty list to make user member only. + * For now, only up to one role is allowed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getNewRoles() { + return newRoles; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.newRoles + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersSetPermissions2Arg other = (MembersSetPermissions2Arg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.newRoles == other.newRoles) || (this.newRoles != null && this.newRoles.equals(other.newRoles))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetPermissions2Arg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (value.newRoles != null) { + g.writeFieldName("new_roles"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.newRoles, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersSetPermissions2Arg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersSetPermissions2Arg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + List f_newRoles = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("new_roles".equals(field)) { + f_newRoles = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersSetPermissions2Arg(f_user, f_newRoles); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Error.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Error.java new file mode 100644 index 000000000..c31d67563 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Error.java @@ -0,0 +1,131 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersSetPermissions2Error { + // union team.MembersSetPermissions2Error (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * Cannot remove the admin setting of the last admin. + */ + LAST_ADMIN, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Cannot remove/grant permissions. This can happen if the team member is + * suspended. + */ + CANNOT_SET_PERMISSIONS, + /** + * No matching role found. At least one of the provided new_roles does not + * exist on this team. + */ + ROLE_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetPermissions2Error value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case LAST_ADMIN: { + g.writeString("last_admin"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case CANNOT_SET_PERMISSIONS: { + g.writeString("cannot_set_permissions"); + break; + } + case ROLE_NOT_FOUND: { + g.writeString("role_not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersSetPermissions2Error deserialize(JsonParser p) throws IOException, JsonParseException { + MembersSetPermissions2Error value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersSetPermissions2Error.USER_NOT_FOUND; + } + else if ("last_admin".equals(tag)) { + value = MembersSetPermissions2Error.LAST_ADMIN; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersSetPermissions2Error.USER_NOT_IN_TEAM; + } + else if ("cannot_set_permissions".equals(tag)) { + value = MembersSetPermissions2Error.CANNOT_SET_PERMISSIONS; + } + else if ("role_not_found".equals(tag)) { + value = MembersSetPermissions2Error.ROLE_NOT_FOUND; + } + else { + value = MembersSetPermissions2Error.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2ErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2ErrorException.java new file mode 100644 index 000000000..8f98d422b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2ErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersSetPermissions2Error} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersSetAdminPermissionsV2(UserSelectorArg,java.util.List)}. + *

+ */ +public class MembersSetPermissions2ErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/set_admin_permissions_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersSetAdminPermissionsV2(UserSelectorArg,java.util.List)}. + */ + public final MembersSetPermissions2Error errorValue; + + public MembersSetPermissions2ErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSetPermissions2Error errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Result.java new file mode 100644 index 000000000..af850ac74 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissions2Result.java @@ -0,0 +1,198 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class MembersSetPermissions2Result { + // struct team.MembersSetPermissions2Result (team_members.stone) + + @Nonnull + protected final String teamMemberId; + @Nullable + protected final List roles; + + /** + * + * @param teamMemberId The member ID of the user to which the change was + * applied. Must not be {@code null}. + * @param roles The roles after the change. Empty in case the user become a + * non-admin. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissions2Result(@Nonnull String teamMemberId, @Nullable List roles) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + if (roles != null) { + for (TeamMemberRole x : roles) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'roles' is null"); + } + } + } + this.roles = roles; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param teamMemberId The member ID of the user to which the change was + * applied. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissions2Result(@Nonnull String teamMemberId) { + this(teamMemberId, null); + } + + /** + * The member ID of the user to which the change was applied. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * The roles after the change. Empty in case the user become a non-admin. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getRoles() { + return roles; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId, + this.roles + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersSetPermissions2Result other = (MembersSetPermissions2Result) obj; + return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && ((this.roles == other.roles) || (this.roles != null && this.roles.equals(other.roles))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetPermissions2Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + if (value.roles != null) { + g.writeFieldName("roles"); + StoneSerializers.nullable(StoneSerializers.list(TeamMemberRole.Serializer.INSTANCE)).serialize(value.roles, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersSetPermissions2Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersSetPermissions2Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + List f_roles = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("roles".equals(field)) { + f_roles = StoneSerializers.nullable(StoneSerializers.list(TeamMemberRole.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + value = new MembersSetPermissions2Result(f_teamMemberId, f_roles); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsArg.java new file mode 100644 index 000000000..d4fdf1b75 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsArg.java @@ -0,0 +1,183 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + */ +class MembersSetPermissionsArg { + // struct team.MembersSetPermissionsArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nonnull + protected final AdminTier newRole; + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + * + * @param user Identity of user whose role will be set. Must not be {@code + * null}. + * @param newRole The new role of the member. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissionsArg(@Nonnull UserSelectorArg user, @Nonnull AdminTier newRole) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (newRole == null) { + throw new IllegalArgumentException("Required value for 'newRole' is null"); + } + this.newRole = newRole; + } + + /** + * Identity of user whose role will be set. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * The new role of the member. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminTier getNewRole() { + return newRole; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.newRole + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersSetPermissionsArg other = (MembersSetPermissionsArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.newRole == other.newRole) || (this.newRole.equals(other.newRole))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetPermissionsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("new_role"); + AdminTier.Serializer.INSTANCE.serialize(value.newRole, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersSetPermissionsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersSetPermissionsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + AdminTier f_newRole = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("new_role".equals(field)) { + f_newRole = AdminTier.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_newRole == null) { + throw new JsonParseException(p, "Required field \"new_role\" missing."); + } + value = new MembersSetPermissionsArg(f_user, f_newRole); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsError.java new file mode 100644 index 000000000..9038b478f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsError.java @@ -0,0 +1,129 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersSetPermissionsError { + // union team.MembersSetPermissionsError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * Cannot remove the admin setting of the last admin. + */ + LAST_ADMIN, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Cannot remove/grant permissions. + */ + CANNOT_SET_PERMISSIONS, + /** + * Team is full. The organization has no available licenses. + */ + TEAM_LICENSE_LIMIT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetPermissionsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case LAST_ADMIN: { + g.writeString("last_admin"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case CANNOT_SET_PERMISSIONS: { + g.writeString("cannot_set_permissions"); + break; + } + case TEAM_LICENSE_LIMIT: { + g.writeString("team_license_limit"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersSetPermissionsError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersSetPermissionsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersSetPermissionsError.USER_NOT_FOUND; + } + else if ("last_admin".equals(tag)) { + value = MembersSetPermissionsError.LAST_ADMIN; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersSetPermissionsError.USER_NOT_IN_TEAM; + } + else if ("cannot_set_permissions".equals(tag)) { + value = MembersSetPermissionsError.CANNOT_SET_PERMISSIONS; + } + else if ("team_license_limit".equals(tag)) { + value = MembersSetPermissionsError.TEAM_LICENSE_LIMIT; + } + else { + value = MembersSetPermissionsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsErrorException.java new file mode 100644 index 000000000..f18948ade --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersSetPermissionsError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersSetAdminPermissions(UserSelectorArg,AdminTier)}. + *

+ */ +public class MembersSetPermissionsErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/set_admin_permissions + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersSetAdminPermissions(UserSelectorArg,AdminTier)}. + */ + public final MembersSetPermissionsError errorValue; + + public MembersSetPermissionsErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSetPermissionsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsResult.java new file mode 100644 index 000000000..7c35acd68 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetPermissionsResult.java @@ -0,0 +1,177 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MembersSetPermissionsResult { + // struct team.MembersSetPermissionsResult (team_members.stone) + + @Nonnull + protected final String teamMemberId; + @Nonnull + protected final AdminTier role; + + /** + * + * @param teamMemberId The member ID of the user to which the change was + * applied. Must not be {@code null}. + * @param role The role after the change. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetPermissionsResult(@Nonnull String teamMemberId, @Nonnull AdminTier role) { + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + if (role == null) { + throw new IllegalArgumentException("Required value for 'role' is null"); + } + this.role = role; + } + + /** + * The member ID of the user to which the change was applied. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * The role after the change. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminTier getRole() { + return role; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId, + this.role + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersSetPermissionsResult other = (MembersSetPermissionsResult) obj; + return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && ((this.role == other.role) || (this.role.equals(other.role))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetPermissionsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + g.writeFieldName("role"); + AdminTier.Serializer.INSTANCE.serialize(value.role, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersSetPermissionsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersSetPermissionsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + AdminTier f_role = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("role".equals(field)) { + f_role = AdminTier.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + if (f_role == null) { + throw new JsonParseException(p, "Required field \"role\" missing."); + } + value = new MembersSetPermissionsResult(f_teamMemberId, f_role); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileArg.java new file mode 100644 index 000000000..286b044ec --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileArg.java @@ -0,0 +1,531 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. At least one of new_email, new_external_id, + * new_given_name, and/or new_surname must be provided. + */ +class MembersSetProfileArg { + // struct team.MembersSetProfileArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nullable + protected final String newEmail; + @Nullable + protected final String newExternalId; + @Nullable + protected final String newGivenName; + @Nullable + protected final String newSurname; + @Nullable + protected final String newPersistentId; + @Nullable + protected final Boolean newIsDirectoryRestricted; + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. At least one of new_email, new_external_id, + * new_given_name, and/or new_surname must be provided. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param user Identity of user whose profile will be set. Must not be + * {@code null}. + * @param newEmail New email for member. Must have length of at most 255 + * and match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}". + * @param newExternalId New external ID for member. Must have length of at + * most 64. + * @param newGivenName New given name for member. Must have length of at + * most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * @param newSurname New surname for member. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * @param newPersistentId New persistent ID. This field only available to + * teams using persistent ID SAML configuration. + * @param newIsDirectoryRestricted New value for whether the user is a + * directory restricted user. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileArg(@Nonnull UserSelectorArg user, @Nullable String newEmail, @Nullable String newExternalId, @Nullable String newGivenName, @Nullable String newSurname, @Nullable String newPersistentId, @Nullable Boolean newIsDirectoryRestricted) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (newEmail != null) { + if (newEmail.length() > 255) { + throw new IllegalArgumentException("String 'newEmail' is longer than 255"); + } + if (!java.util.regex.Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", newEmail)) { + throw new IllegalArgumentException("String 'newEmail' does not match pattern"); + } + } + this.newEmail = newEmail; + if (newExternalId != null) { + if (newExternalId.length() > 64) { + throw new IllegalArgumentException("String 'newExternalId' is longer than 64"); + } + } + this.newExternalId = newExternalId; + if (newGivenName != null) { + if (newGivenName.length() > 100) { + throw new IllegalArgumentException("String 'newGivenName' is longer than 100"); + } + if (!java.util.regex.Pattern.matches("[^/:?*<>\"|]*", newGivenName)) { + throw new IllegalArgumentException("String 'newGivenName' does not match pattern"); + } + } + this.newGivenName = newGivenName; + if (newSurname != null) { + if (newSurname.length() > 100) { + throw new IllegalArgumentException("String 'newSurname' is longer than 100"); + } + if (!java.util.regex.Pattern.matches("[^/:?*<>\"|]*", newSurname)) { + throw new IllegalArgumentException("String 'newSurname' does not match pattern"); + } + } + this.newSurname = newSurname; + this.newPersistentId = newPersistentId; + this.newIsDirectoryRestricted = newIsDirectoryRestricted; + } + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. At least one of new_email, new_external_id, + * new_given_name, and/or new_surname must be provided. + * + *

The default values for unset fields will be used.

+ * + * @param user Identity of user whose profile will be set. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileArg(@Nonnull UserSelectorArg user) { + this(user, null, null, null, null, null, null); + } + + /** + * Identity of user whose profile will be set. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * New email for member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewEmail() { + return newEmail; + } + + /** + * New external ID for member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewExternalId() { + return newExternalId; + } + + /** + * New given name for member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewGivenName() { + return newGivenName; + } + + /** + * New surname for member. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewSurname() { + return newSurname; + } + + /** + * New persistent ID. This field only available to teams using persistent ID + * SAML configuration. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewPersistentId() { + return newPersistentId; + } + + /** + * New value for whether the user is a directory restricted user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getNewIsDirectoryRestricted() { + return newIsDirectoryRestricted; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param user Identity of user whose profile will be set. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(UserSelectorArg user) { + return new Builder(user); + } + + /** + * Builder for {@link MembersSetProfileArg}. + */ + public static class Builder { + protected final UserSelectorArg user; + + protected String newEmail; + protected String newExternalId; + protected String newGivenName; + protected String newSurname; + protected String newPersistentId; + protected Boolean newIsDirectoryRestricted; + + protected Builder(UserSelectorArg user) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + this.newEmail = null; + this.newExternalId = null; + this.newGivenName = null; + this.newSurname = null; + this.newPersistentId = null; + this.newIsDirectoryRestricted = null; + } + + /** + * Set value for optional field. + * + * @param newEmail New email for member. Must have length of at most + * 255 and match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withNewEmail(String newEmail) { + if (newEmail != null) { + if (newEmail.length() > 255) { + throw new IllegalArgumentException("String 'newEmail' is longer than 255"); + } + if (!java.util.regex.Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", newEmail)) { + throw new IllegalArgumentException("String 'newEmail' does not match pattern"); + } + } + this.newEmail = newEmail; + return this; + } + + /** + * Set value for optional field. + * + * @param newExternalId New external ID for member. Must have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withNewExternalId(String newExternalId) { + if (newExternalId != null) { + if (newExternalId.length() > 64) { + throw new IllegalArgumentException("String 'newExternalId' is longer than 64"); + } + } + this.newExternalId = newExternalId; + return this; + } + + /** + * Set value for optional field. + * + * @param newGivenName New given name for member. Must have length of + * at most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withNewGivenName(String newGivenName) { + if (newGivenName != null) { + if (newGivenName.length() > 100) { + throw new IllegalArgumentException("String 'newGivenName' is longer than 100"); + } + if (!java.util.regex.Pattern.matches("[^/:?*<>\"|]*", newGivenName)) { + throw new IllegalArgumentException("String 'newGivenName' does not match pattern"); + } + } + this.newGivenName = newGivenName; + return this; + } + + /** + * Set value for optional field. + * + * @param newSurname New surname for member. Must have length of at + * most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withNewSurname(String newSurname) { + if (newSurname != null) { + if (newSurname.length() > 100) { + throw new IllegalArgumentException("String 'newSurname' is longer than 100"); + } + if (!java.util.regex.Pattern.matches("[^/:?*<>\"|]*", newSurname)) { + throw new IllegalArgumentException("String 'newSurname' does not match pattern"); + } + } + this.newSurname = newSurname; + return this; + } + + /** + * Set value for optional field. + * + * @param newPersistentId New persistent ID. This field only available + * to teams using persistent ID SAML configuration. + * + * @return this builder + */ + public Builder withNewPersistentId(String newPersistentId) { + this.newPersistentId = newPersistentId; + return this; + } + + /** + * Set value for optional field. + * + * @param newIsDirectoryRestricted New value for whether the user is a + * directory restricted user. + * + * @return this builder + */ + public Builder withNewIsDirectoryRestricted(Boolean newIsDirectoryRestricted) { + this.newIsDirectoryRestricted = newIsDirectoryRestricted; + return this; + } + + /** + * Builds an instance of {@link MembersSetProfileArg} configured with + * this builder's values + * + * @return new instance of {@link MembersSetProfileArg} + */ + public MembersSetProfileArg build() { + return new MembersSetProfileArg(user, newEmail, newExternalId, newGivenName, newSurname, newPersistentId, newIsDirectoryRestricted); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.newEmail, + this.newExternalId, + this.newGivenName, + this.newSurname, + this.newPersistentId, + this.newIsDirectoryRestricted + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersSetProfileArg other = (MembersSetProfileArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.newEmail == other.newEmail) || (this.newEmail != null && this.newEmail.equals(other.newEmail))) + && ((this.newExternalId == other.newExternalId) || (this.newExternalId != null && this.newExternalId.equals(other.newExternalId))) + && ((this.newGivenName == other.newGivenName) || (this.newGivenName != null && this.newGivenName.equals(other.newGivenName))) + && ((this.newSurname == other.newSurname) || (this.newSurname != null && this.newSurname.equals(other.newSurname))) + && ((this.newPersistentId == other.newPersistentId) || (this.newPersistentId != null && this.newPersistentId.equals(other.newPersistentId))) + && ((this.newIsDirectoryRestricted == other.newIsDirectoryRestricted) || (this.newIsDirectoryRestricted != null && this.newIsDirectoryRestricted.equals(other.newIsDirectoryRestricted))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetProfileArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (value.newEmail != null) { + g.writeFieldName("new_email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newEmail, g); + } + if (value.newExternalId != null) { + g.writeFieldName("new_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newExternalId, g); + } + if (value.newGivenName != null) { + g.writeFieldName("new_given_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newGivenName, g); + } + if (value.newSurname != null) { + g.writeFieldName("new_surname"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newSurname, g); + } + if (value.newPersistentId != null) { + g.writeFieldName("new_persistent_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newPersistentId, g); + } + if (value.newIsDirectoryRestricted != null) { + g.writeFieldName("new_is_directory_restricted"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.newIsDirectoryRestricted, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersSetProfileArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersSetProfileArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + String f_newEmail = null; + String f_newExternalId = null; + String f_newGivenName = null; + String f_newSurname = null; + String f_newPersistentId = null; + Boolean f_newIsDirectoryRestricted = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("new_email".equals(field)) { + f_newEmail = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_external_id".equals(field)) { + f_newExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_given_name".equals(field)) { + f_newGivenName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_surname".equals(field)) { + f_newSurname = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_persistent_id".equals(field)) { + f_newPersistentId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_is_directory_restricted".equals(field)) { + f_newIsDirectoryRestricted = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersSetProfileArg(f_user, f_newEmail, f_newExternalId, f_newGivenName, f_newSurname, f_newPersistentId, f_newIsDirectoryRestricted); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileBuilder.java new file mode 100644 index 000000000..d27b6857a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileBuilder.java @@ -0,0 +1,137 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#membersSetProfileBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MembersSetProfileBuilder { + private final DbxTeamTeamRequests _client; + private final MembersSetProfileArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MembersSetProfileBuilder(DbxTeamTeamRequests _client, MembersSetProfileArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param newEmail New email for member. Must have length of at most 255 + * and match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileBuilder withNewEmail(String newEmail) { + this._builder.withNewEmail(newEmail); + return this; + } + + /** + * Set value for optional field. + * + * @param newExternalId New external ID for member. Must have length of at + * most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileBuilder withNewExternalId(String newExternalId) { + this._builder.withNewExternalId(newExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param newGivenName New given name for member. Must have length of at + * most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileBuilder withNewGivenName(String newGivenName) { + this._builder.withNewGivenName(newGivenName); + return this; + } + + /** + * Set value for optional field. + * + * @param newSurname New surname for member. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileBuilder withNewSurname(String newSurname) { + this._builder.withNewSurname(newSurname); + return this; + } + + /** + * Set value for optional field. + * + * @param newPersistentId New persistent ID. This field only available to + * teams using persistent ID SAML configuration. + * + * @return this builder + */ + public MembersSetProfileBuilder withNewPersistentId(String newPersistentId) { + this._builder.withNewPersistentId(newPersistentId); + return this; + } + + /** + * Set value for optional field. + * + * @param newIsDirectoryRestricted New value for whether the user is a + * directory restricted user. + * + * @return this builder + */ + public MembersSetProfileBuilder withNewIsDirectoryRestricted(Boolean newIsDirectoryRestricted) { + this._builder.withNewIsDirectoryRestricted(newIsDirectoryRestricted); + return this; + } + + /** + * Issues the request. + */ + public TeamMemberInfo start() throws MembersSetProfileErrorException, DbxException { + MembersSetProfileArg arg_ = this._builder.build(); + return _client.membersSetProfile(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileError.java new file mode 100644 index 000000000..3400bcbaf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileError.java @@ -0,0 +1,197 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersSetProfileError { + // union team.MembersSetProfileError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * It is unsafe to use both external_id and new_external_id. + */ + EXTERNAL_ID_AND_NEW_EXTERNAL_ID_UNSAFE, + /** + * None of new_email, new_given_name, new_surname, or new_external_id are + * specified. + */ + NO_NEW_DATA_SPECIFIED, + /** + * Email is already reserved for another user. + */ + EMAIL_RESERVED_FOR_OTHER_USER, + /** + * The external ID is already in use by another team member. + */ + EXTERNAL_ID_USED_BY_OTHER_USER, + /** + * Modifying deleted users is not allowed. + */ + SET_PROFILE_DISALLOWED, + /** + * Parameter new_email cannot be empty. + */ + PARAM_CANNOT_BE_EMPTY, + /** + * Persistent ID is only available to teams with persistent ID SAML + * configuration. Please contact Dropbox for more information. + */ + PERSISTENT_ID_DISABLED, + /** + * The persistent ID is already in use by another team member. + */ + PERSISTENT_ID_USED_BY_OTHER_USER, + /** + * Directory Restrictions option is not available. + */ + DIRECTORY_RESTRICTED_OFF, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetProfileError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case EXTERNAL_ID_AND_NEW_EXTERNAL_ID_UNSAFE: { + g.writeString("external_id_and_new_external_id_unsafe"); + break; + } + case NO_NEW_DATA_SPECIFIED: { + g.writeString("no_new_data_specified"); + break; + } + case EMAIL_RESERVED_FOR_OTHER_USER: { + g.writeString("email_reserved_for_other_user"); + break; + } + case EXTERNAL_ID_USED_BY_OTHER_USER: { + g.writeString("external_id_used_by_other_user"); + break; + } + case SET_PROFILE_DISALLOWED: { + g.writeString("set_profile_disallowed"); + break; + } + case PARAM_CANNOT_BE_EMPTY: { + g.writeString("param_cannot_be_empty"); + break; + } + case PERSISTENT_ID_DISABLED: { + g.writeString("persistent_id_disabled"); + break; + } + case PERSISTENT_ID_USED_BY_OTHER_USER: { + g.writeString("persistent_id_used_by_other_user"); + break; + } + case DIRECTORY_RESTRICTED_OFF: { + g.writeString("directory_restricted_off"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersSetProfileError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersSetProfileError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersSetProfileError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersSetProfileError.USER_NOT_IN_TEAM; + } + else if ("external_id_and_new_external_id_unsafe".equals(tag)) { + value = MembersSetProfileError.EXTERNAL_ID_AND_NEW_EXTERNAL_ID_UNSAFE; + } + else if ("no_new_data_specified".equals(tag)) { + value = MembersSetProfileError.NO_NEW_DATA_SPECIFIED; + } + else if ("email_reserved_for_other_user".equals(tag)) { + value = MembersSetProfileError.EMAIL_RESERVED_FOR_OTHER_USER; + } + else if ("external_id_used_by_other_user".equals(tag)) { + value = MembersSetProfileError.EXTERNAL_ID_USED_BY_OTHER_USER; + } + else if ("set_profile_disallowed".equals(tag)) { + value = MembersSetProfileError.SET_PROFILE_DISALLOWED; + } + else if ("param_cannot_be_empty".equals(tag)) { + value = MembersSetProfileError.PARAM_CANNOT_BE_EMPTY; + } + else if ("persistent_id_disabled".equals(tag)) { + value = MembersSetProfileError.PERSISTENT_ID_DISABLED; + } + else if ("persistent_id_used_by_other_user".equals(tag)) { + value = MembersSetProfileError.PERSISTENT_ID_USED_BY_OTHER_USER; + } + else if ("directory_restricted_off".equals(tag)) { + value = MembersSetProfileError.DIRECTORY_RESTRICTED_OFF; + } + else { + value = MembersSetProfileError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileErrorException.java new file mode 100644 index 000000000..e06563d95 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileErrorException.java @@ -0,0 +1,38 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersSetProfileError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersSetProfile(UserSelectorArg)} and {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}.

+ */ +public class MembersSetProfileErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/set_profile + // 2/team/members/set_profile_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersSetProfile(UserSelectorArg)} and {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + */ + public final MembersSetProfileError errorValue; + + public MembersSetProfileErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSetProfileError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoArg.java new file mode 100644 index 000000000..d89db4954 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoArg.java @@ -0,0 +1,179 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.account.PhotoSourceArg; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class MembersSetProfilePhotoArg { + // struct team.MembersSetProfilePhotoArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nonnull + protected final PhotoSourceArg photo; + + /** + * + * @param user Identity of the user whose profile photo will be set. Must + * not be {@code null}. + * @param photo Image to set as the member's new profile photo. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfilePhotoArg(@Nonnull UserSelectorArg user, @Nonnull PhotoSourceArg photo) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (photo == null) { + throw new IllegalArgumentException("Required value for 'photo' is null"); + } + this.photo = photo; + } + + /** + * Identity of the user whose profile photo will be set. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * Image to set as the member's new profile photo. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PhotoSourceArg getPhoto() { + return photo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.photo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersSetProfilePhotoArg other = (MembersSetProfilePhotoArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.photo == other.photo) || (this.photo.equals(other.photo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetProfilePhotoArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("photo"); + PhotoSourceArg.Serializer.INSTANCE.serialize(value.photo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersSetProfilePhotoArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersSetProfilePhotoArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + PhotoSourceArg f_photo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("photo".equals(field)) { + f_photo = PhotoSourceArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_photo == null) { + throw new JsonParseException(p, "Required field \"photo\" missing."); + } + value = new MembersSetProfilePhotoArg(f_user, f_photo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoError.java new file mode 100644 index 000000000..ecee8e214 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoError.java @@ -0,0 +1,365 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.account.SetProfilePhotoError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class MembersSetProfilePhotoError { + // union team.MembersSetProfilePhotoError (team_members.stone) + + /** + * Discriminating tag type for {@link MembersSetProfilePhotoError}. + */ + public enum Tag { + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Modifying deleted users is not allowed. + */ + SET_PROFILE_DISALLOWED, + PHOTO_ERROR, // SetProfilePhotoError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + public static final MembersSetProfilePhotoError USER_NOT_FOUND = new MembersSetProfilePhotoError().withTag(Tag.USER_NOT_FOUND); + /** + * The user is not a member of the team. + */ + public static final MembersSetProfilePhotoError USER_NOT_IN_TEAM = new MembersSetProfilePhotoError().withTag(Tag.USER_NOT_IN_TEAM); + /** + * Modifying deleted users is not allowed. + */ + public static final MembersSetProfilePhotoError SET_PROFILE_DISALLOWED = new MembersSetProfilePhotoError().withTag(Tag.SET_PROFILE_DISALLOWED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final MembersSetProfilePhotoError OTHER = new MembersSetProfilePhotoError().withTag(Tag.OTHER); + + private Tag _tag; + private SetProfilePhotoError photoErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private MembersSetProfilePhotoError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private MembersSetProfilePhotoError withTag(Tag _tag) { + MembersSetProfilePhotoError result = new MembersSetProfilePhotoError(); + result._tag = _tag; + return result; + } + + /** + * + * @param photoErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private MembersSetProfilePhotoError withTagAndPhotoError(Tag _tag, SetProfilePhotoError photoErrorValue) { + MembersSetProfilePhotoError result = new MembersSetProfilePhotoError(); + result._tag = _tag; + result.photoErrorValue = photoErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code MembersSetProfilePhotoError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isUserNotFound() { + return this._tag == Tag.USER_NOT_FOUND; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_NOT_IN_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_NOT_IN_TEAM}, {@code false} otherwise. + */ + public boolean isUserNotInTeam() { + return this._tag == Tag.USER_NOT_IN_TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SET_PROFILE_DISALLOWED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SET_PROFILE_DISALLOWED}, {@code false} otherwise. + */ + public boolean isSetProfileDisallowed() { + return this._tag == Tag.SET_PROFILE_DISALLOWED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PHOTO_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PHOTO_ERROR}, {@code false} otherwise. + */ + public boolean isPhotoError() { + return this._tag == Tag.PHOTO_ERROR; + } + + /** + * Returns an instance of {@code MembersSetProfilePhotoError} that has its + * tag set to {@link Tag#PHOTO_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code MembersSetProfilePhotoError} with its tag set + * to {@link Tag#PHOTO_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static MembersSetProfilePhotoError photoError(SetProfilePhotoError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new MembersSetProfilePhotoError().withTagAndPhotoError(Tag.PHOTO_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#PHOTO_ERROR}. + * + * @return The {@link SetProfilePhotoError} value associated with this + * instance if {@link #isPhotoError} is {@code true}. + * + * @throws IllegalStateException If {@link #isPhotoError} is {@code false}. + */ + public SetProfilePhotoError getPhotoErrorValue() { + if (this._tag != Tag.PHOTO_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.PHOTO_ERROR, but was Tag." + this._tag.name()); + } + return photoErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.photoErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof MembersSetProfilePhotoError) { + MembersSetProfilePhotoError other = (MembersSetProfilePhotoError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case USER_NOT_FOUND: + return true; + case USER_NOT_IN_TEAM: + return true; + case SET_PROFILE_DISALLOWED: + return true; + case PHOTO_ERROR: + return (this.photoErrorValue == other.photoErrorValue) || (this.photoErrorValue.equals(other.photoErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSetProfilePhotoError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case SET_PROFILE_DISALLOWED: { + g.writeString("set_profile_disallowed"); + break; + } + case PHOTO_ERROR: { + g.writeStartObject(); + writeTag("photo_error", g); + g.writeFieldName("photo_error"); + SetProfilePhotoError.Serializer.INSTANCE.serialize(value.photoErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MembersSetProfilePhotoError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersSetProfilePhotoError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersSetProfilePhotoError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersSetProfilePhotoError.USER_NOT_IN_TEAM; + } + else if ("set_profile_disallowed".equals(tag)) { + value = MembersSetProfilePhotoError.SET_PROFILE_DISALLOWED; + } + else if ("photo_error".equals(tag)) { + SetProfilePhotoError fieldValue = null; + expectField("photo_error", p); + fieldValue = SetProfilePhotoError.Serializer.INSTANCE.deserialize(p); + value = MembersSetProfilePhotoError.photoError(fieldValue); + } + else { + value = MembersSetProfilePhotoError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoErrorException.java new file mode 100644 index 000000000..1a4384e61 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfilePhotoErrorException.java @@ -0,0 +1,41 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersSetProfilePhotoError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersSetProfilePhoto(UserSelectorArg,com.dropbox.core.v2.account.PhotoSourceArg)} + * and {@link + * DbxTeamTeamRequests#membersSetProfilePhotoV2(UserSelectorArg,com.dropbox.core.v2.account.PhotoSourceArg)}. + *

+ */ +public class MembersSetProfilePhotoErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/set_profile_photo + // 2/team/members/set_profile_photo_v2 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersSetProfilePhoto(UserSelectorArg,com.dropbox.core.v2.account.PhotoSourceArg)} + * and {@link + * DbxTeamTeamRequests#membersSetProfilePhotoV2(UserSelectorArg,com.dropbox.core.v2.account.PhotoSourceArg)}. + */ + public final MembersSetProfilePhotoError errorValue; + + public MembersSetProfilePhotoErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSetProfilePhotoError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileV2Builder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileV2Builder.java new file mode 100644 index 000000000..03ae16d92 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSetProfileV2Builder.java @@ -0,0 +1,137 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#membersSetProfileV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class MembersSetProfileV2Builder { + private final DbxTeamTeamRequests _client; + private final MembersSetProfileArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + MembersSetProfileV2Builder(DbxTeamTeamRequests _client, MembersSetProfileArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param newEmail New email for member. Must have length of at most 255 + * and match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileV2Builder withNewEmail(String newEmail) { + this._builder.withNewEmail(newEmail); + return this; + } + + /** + * Set value for optional field. + * + * @param newExternalId New external ID for member. Must have length of at + * most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileV2Builder withNewExternalId(String newExternalId) { + this._builder.withNewExternalId(newExternalId); + return this; + } + + /** + * Set value for optional field. + * + * @param newGivenName New given name for member. Must have length of at + * most 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileV2Builder withNewGivenName(String newGivenName) { + this._builder.withNewGivenName(newGivenName); + return this; + } + + /** + * Set value for optional field. + * + * @param newSurname New surname for member. Must have length of at most + * 100 and match pattern "{@code [^/:?*<>\"|]*}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersSetProfileV2Builder withNewSurname(String newSurname) { + this._builder.withNewSurname(newSurname); + return this; + } + + /** + * Set value for optional field. + * + * @param newPersistentId New persistent ID. This field only available to + * teams using persistent ID SAML configuration. + * + * @return this builder + */ + public MembersSetProfileV2Builder withNewPersistentId(String newPersistentId) { + this._builder.withNewPersistentId(newPersistentId); + return this; + } + + /** + * Set value for optional field. + * + * @param newIsDirectoryRestricted New value for whether the user is a + * directory restricted user. + * + * @return this builder + */ + public MembersSetProfileV2Builder withNewIsDirectoryRestricted(Boolean newIsDirectoryRestricted) { + this._builder.withNewIsDirectoryRestricted(newIsDirectoryRestricted); + return this; + } + + /** + * Issues the request. + */ + public TeamMemberInfoV2Result start() throws MembersSetProfileErrorException, DbxException { + MembersSetProfileArg arg_ = this._builder.build(); + return _client.membersSetProfileV2(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSuspendError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSuspendError.java new file mode 100644 index 000000000..50534f51d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSuspendError.java @@ -0,0 +1,136 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersSuspendError { + // union team.MembersSuspendError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The user is not active, so it cannot be suspended. + */ + SUSPEND_INACTIVE_USER, + /** + * The user is the last admin of the team, so it cannot be suspended. + */ + SUSPEND_LAST_ADMIN, + /** + * Team is full. The organization has no available licenses. + */ + TEAM_LICENSE_LIMIT; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersSuspendError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SUSPEND_INACTIVE_USER: { + g.writeString("suspend_inactive_user"); + break; + } + case SUSPEND_LAST_ADMIN: { + g.writeString("suspend_last_admin"); + break; + } + case TEAM_LICENSE_LIMIT: { + g.writeString("team_license_limit"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public MembersSuspendError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersSuspendError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersSuspendError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersSuspendError.USER_NOT_IN_TEAM; + } + else if ("other".equals(tag)) { + value = MembersSuspendError.OTHER; + } + else if ("suspend_inactive_user".equals(tag)) { + value = MembersSuspendError.SUSPEND_INACTIVE_USER; + } + else if ("suspend_last_admin".equals(tag)) { + value = MembersSuspendError.SUSPEND_LAST_ADMIN; + } + else if ("team_license_limit".equals(tag)) { + value = MembersSuspendError.TEAM_LICENSE_LIMIT; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSuspendErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSuspendErrorException.java new file mode 100644 index 000000000..09b11cfbc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSuspendErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link MembersSuspendError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)}.

+ */ +public class MembersSuspendErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/suspend + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)}. + */ + public final MembersSuspendError errorValue; + + public MembersSuspendErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSuspendError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersTransferFormerMembersFilesError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersTransferFormerMembersFilesError.java new file mode 100644 index 000000000..48f745616 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersTransferFormerMembersFilesError.java @@ -0,0 +1,248 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersTransferFormerMembersFilesError { + // union team.MembersTransferFormerMembersFilesError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Expected removed user and transfer_dest user to be different. + */ + REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER, + /** + * Expected removed user and transfer_admin user to be different. + */ + REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER, + /** + * No matching user found for the argument transfer_dest_id. + */ + TRANSFER_DEST_USER_NOT_FOUND, + /** + * The provided transfer_dest_id does not exist on this team. + */ + TRANSFER_DEST_USER_NOT_IN_TEAM, + /** + * The provided transfer_admin_id does not exist on this team. + */ + TRANSFER_ADMIN_USER_NOT_IN_TEAM, + /** + * No matching user found for the argument transfer_admin_id. + */ + TRANSFER_ADMIN_USER_NOT_FOUND, + /** + * The transfer_admin_id argument must be provided when file transfer is + * requested. + */ + UNSPECIFIED_TRANSFER_ADMIN_ID, + /** + * Specified transfer_admin user is not a team admin. + */ + TRANSFER_ADMIN_IS_NOT_ADMIN, + /** + * The recipient user's email is not verified. + */ + RECIPIENT_NOT_VERIFIED, + /** + * The user's data is being transferred. Please wait some time before + * retrying. + */ + USER_DATA_IS_BEING_TRANSFERRED, + /** + * No matching removed user found for the argument user. + */ + USER_NOT_REMOVED, + /** + * User files aren't transferable anymore. + */ + USER_DATA_CANNOT_BE_TRANSFERRED, + /** + * User's data has already been transferred to another user. + */ + USER_DATA_ALREADY_TRANSFERRED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersTransferFormerMembersFilesError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER: { + g.writeString("removed_and_transfer_dest_should_differ"); + break; + } + case REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER: { + g.writeString("removed_and_transfer_admin_should_differ"); + break; + } + case TRANSFER_DEST_USER_NOT_FOUND: { + g.writeString("transfer_dest_user_not_found"); + break; + } + case TRANSFER_DEST_USER_NOT_IN_TEAM: { + g.writeString("transfer_dest_user_not_in_team"); + break; + } + case TRANSFER_ADMIN_USER_NOT_IN_TEAM: { + g.writeString("transfer_admin_user_not_in_team"); + break; + } + case TRANSFER_ADMIN_USER_NOT_FOUND: { + g.writeString("transfer_admin_user_not_found"); + break; + } + case UNSPECIFIED_TRANSFER_ADMIN_ID: { + g.writeString("unspecified_transfer_admin_id"); + break; + } + case TRANSFER_ADMIN_IS_NOT_ADMIN: { + g.writeString("transfer_admin_is_not_admin"); + break; + } + case RECIPIENT_NOT_VERIFIED: { + g.writeString("recipient_not_verified"); + break; + } + case USER_DATA_IS_BEING_TRANSFERRED: { + g.writeString("user_data_is_being_transferred"); + break; + } + case USER_NOT_REMOVED: { + g.writeString("user_not_removed"); + break; + } + case USER_DATA_CANNOT_BE_TRANSFERRED: { + g.writeString("user_data_cannot_be_transferred"); + break; + } + case USER_DATA_ALREADY_TRANSFERRED: { + g.writeString("user_data_already_transferred"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public MembersTransferFormerMembersFilesError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersTransferFormerMembersFilesError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersTransferFormerMembersFilesError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersTransferFormerMembersFilesError.USER_NOT_IN_TEAM; + } + else if ("other".equals(tag)) { + value = MembersTransferFormerMembersFilesError.OTHER; + } + else if ("removed_and_transfer_dest_should_differ".equals(tag)) { + value = MembersTransferFormerMembersFilesError.REMOVED_AND_TRANSFER_DEST_SHOULD_DIFFER; + } + else if ("removed_and_transfer_admin_should_differ".equals(tag)) { + value = MembersTransferFormerMembersFilesError.REMOVED_AND_TRANSFER_ADMIN_SHOULD_DIFFER; + } + else if ("transfer_dest_user_not_found".equals(tag)) { + value = MembersTransferFormerMembersFilesError.TRANSFER_DEST_USER_NOT_FOUND; + } + else if ("transfer_dest_user_not_in_team".equals(tag)) { + value = MembersTransferFormerMembersFilesError.TRANSFER_DEST_USER_NOT_IN_TEAM; + } + else if ("transfer_admin_user_not_in_team".equals(tag)) { + value = MembersTransferFormerMembersFilesError.TRANSFER_ADMIN_USER_NOT_IN_TEAM; + } + else if ("transfer_admin_user_not_found".equals(tag)) { + value = MembersTransferFormerMembersFilesError.TRANSFER_ADMIN_USER_NOT_FOUND; + } + else if ("unspecified_transfer_admin_id".equals(tag)) { + value = MembersTransferFormerMembersFilesError.UNSPECIFIED_TRANSFER_ADMIN_ID; + } + else if ("transfer_admin_is_not_admin".equals(tag)) { + value = MembersTransferFormerMembersFilesError.TRANSFER_ADMIN_IS_NOT_ADMIN; + } + else if ("recipient_not_verified".equals(tag)) { + value = MembersTransferFormerMembersFilesError.RECIPIENT_NOT_VERIFIED; + } + else if ("user_data_is_being_transferred".equals(tag)) { + value = MembersTransferFormerMembersFilesError.USER_DATA_IS_BEING_TRANSFERRED; + } + else if ("user_not_removed".equals(tag)) { + value = MembersTransferFormerMembersFilesError.USER_NOT_REMOVED; + } + else if ("user_data_cannot_be_transferred".equals(tag)) { + value = MembersTransferFormerMembersFilesError.USER_DATA_CANNOT_BE_TRANSFERRED; + } + else if ("user_data_already_transferred".equals(tag)) { + value = MembersTransferFormerMembersFilesError.USER_DATA_ALREADY_TRANSFERRED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersTransferFormerMembersFilesErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersTransferFormerMembersFilesErrorException.java new file mode 100644 index 000000000..6eb7a9f44 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersTransferFormerMembersFilesErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersTransferFormerMembersFilesError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersMoveFormerMemberFiles(UserSelectorArg,UserSelectorArg,UserSelectorArg)}. + *

+ */ +public class MembersTransferFormerMembersFilesErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/move_former_member_files + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersMoveFormerMemberFiles(UserSelectorArg,UserSelectorArg,UserSelectorArg)}. + */ + public final MembersTransferFormerMembersFilesError errorValue; + + public MembersTransferFormerMembersFilesErrorException(String routeName, String requestId, LocalizedText userMessage, MembersTransferFormerMembersFilesError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendArg.java new file mode 100644 index 000000000..fc85776dc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendArg.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + */ +class MembersUnsuspendArg { + // struct team.MembersUnsuspendArg (team_members.stone) + + @Nonnull + protected final UserSelectorArg user; + + /** + * Exactly one of team_member_id, email, or external_id must be provided to + * identify the user account. + * + * @param user Identity of user to unsuspend. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MembersUnsuspendArg(@Nonnull UserSelectorArg user) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + } + + /** + * Identity of user to unsuspend. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MembersUnsuspendArg other = (MembersUnsuspendArg) obj; + return (this.user == other.user) || (this.user.equals(other.user)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersUnsuspendArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MembersUnsuspendArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MembersUnsuspendArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new MembersUnsuspendArg(f_user); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendError.java new file mode 100644 index 000000000..a8162aa49 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendError.java @@ -0,0 +1,125 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MembersUnsuspendError { + // union team.MembersUnsuspendError (team_members.stone) + /** + * No matching user found. The provided team_member_id, email, or + * external_id does not exist on this team. + */ + USER_NOT_FOUND, + /** + * The user is not a member of the team. + */ + USER_NOT_IN_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The user is unsuspended, so it cannot be unsuspended again. + */ + UNSUSPEND_NON_SUSPENDED_MEMBER, + /** + * Team is full. The organization has no available licenses. + */ + TEAM_LICENSE_LIMIT; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MembersUnsuspendError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_NOT_FOUND: { + g.writeString("user_not_found"); + break; + } + case USER_NOT_IN_TEAM: { + g.writeString("user_not_in_team"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case UNSUSPEND_NON_SUSPENDED_MEMBER: { + g.writeString("unsuspend_non_suspended_member"); + break; + } + case TEAM_LICENSE_LIMIT: { + g.writeString("team_license_limit"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public MembersUnsuspendError deserialize(JsonParser p) throws IOException, JsonParseException { + MembersUnsuspendError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_not_found".equals(tag)) { + value = MembersUnsuspendError.USER_NOT_FOUND; + } + else if ("user_not_in_team".equals(tag)) { + value = MembersUnsuspendError.USER_NOT_IN_TEAM; + } + else if ("other".equals(tag)) { + value = MembersUnsuspendError.OTHER; + } + else if ("unsuspend_non_suspended_member".equals(tag)) { + value = MembersUnsuspendError.UNSUSPEND_NON_SUSPENDED_MEMBER; + } + else if ("team_license_limit".equals(tag)) { + value = MembersUnsuspendError.TEAM_LICENSE_LIMIT; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendErrorException.java new file mode 100644 index 000000000..648822dd9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * MembersUnsuspendError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#membersUnsuspend(UserSelectorArg)}.

+ */ +public class MembersUnsuspendErrorException extends DbxApiException { + // exception for routes: + // 2/team/members/unsuspend + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#membersUnsuspend(UserSelectorArg)}. + */ + public final MembersUnsuspendError errorValue; + + public MembersUnsuspendErrorException(String routeName, String requestId, LocalizedText userMessage, MembersUnsuspendError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MobileClientPlatform.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MobileClientPlatform.java new file mode 100644 index 000000000..aa6b4b835 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MobileClientPlatform.java @@ -0,0 +1,128 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MobileClientPlatform { + // union team.MobileClientPlatform (team_devices.stone) + /** + * Official Dropbox iPhone client. + */ + IPHONE, + /** + * Official Dropbox iPad client. + */ + IPAD, + /** + * Official Dropbox Android client. + */ + ANDROID, + /** + * Official Dropbox Windows phone client. + */ + WINDOWS_PHONE, + /** + * Official Dropbox Blackberry client. + */ + BLACKBERRY, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MobileClientPlatform value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case IPHONE: { + g.writeString("iphone"); + break; + } + case IPAD: { + g.writeString("ipad"); + break; + } + case ANDROID: { + g.writeString("android"); + break; + } + case WINDOWS_PHONE: { + g.writeString("windows_phone"); + break; + } + case BLACKBERRY: { + g.writeString("blackberry"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MobileClientPlatform deserialize(JsonParser p) throws IOException, JsonParseException { + MobileClientPlatform value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("iphone".equals(tag)) { + value = MobileClientPlatform.IPHONE; + } + else if ("ipad".equals(tag)) { + value = MobileClientPlatform.IPAD; + } + else if ("android".equals(tag)) { + value = MobileClientPlatform.ANDROID; + } + else if ("windows_phone".equals(tag)) { + value = MobileClientPlatform.WINDOWS_PHONE; + } + else if ("blackberry".equals(tag)) { + value = MobileClientPlatform.BLACKBERRY; + } + else { + value = MobileClientPlatform.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MobileClientSession.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MobileClientSession.java new file mode 100644 index 000000000..8b36769d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MobileClientSession.java @@ -0,0 +1,517 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about linked Dropbox mobile client sessions. + */ +public class MobileClientSession extends DeviceSession { + // struct team.MobileClientSession (team_devices.stone) + + @Nonnull + protected final String deviceName; + @Nonnull + protected final MobileClientPlatform clientType; + @Nullable + protected final String clientVersion; + @Nullable + protected final String osVersion; + @Nullable + protected final String lastCarrier; + + /** + * Information about linked Dropbox mobile client sessions. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sessionId The session id. Must not be {@code null}. + * @param deviceName The device name. Must not be {@code null}. + * @param clientType The mobile application type. Must not be {@code null}. + * @param ipAddress The IP address of the last activity from this session. + * @param country The country from which the last activity from this + * session was made. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * @param clientVersion The dropbox client version. + * @param osVersion The hosting OS version. + * @param lastCarrier last carrier used by the device. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MobileClientSession(@Nonnull String sessionId, @Nonnull String deviceName, @Nonnull MobileClientPlatform clientType, @Nullable String ipAddress, @Nullable String country, @Nullable Date created, @Nullable Date updated, @Nullable String clientVersion, @Nullable String osVersion, @Nullable String lastCarrier) { + super(sessionId, ipAddress, country, created, updated); + if (deviceName == null) { + throw new IllegalArgumentException("Required value for 'deviceName' is null"); + } + this.deviceName = deviceName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + this.clientVersion = clientVersion; + this.osVersion = osVersion; + this.lastCarrier = lastCarrier; + } + + /** + * Information about linked Dropbox mobile client sessions. + * + *

The default values for unset fields will be used.

+ * + * @param sessionId The session id. Must not be {@code null}. + * @param deviceName The device name. Must not be {@code null}. + * @param clientType The mobile application type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MobileClientSession(@Nonnull String sessionId, @Nonnull String deviceName, @Nonnull MobileClientPlatform clientType) { + this(sessionId, deviceName, clientType, null, null, null, null, null, null, null); + } + + /** + * The session id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + /** + * The device name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDeviceName() { + return deviceName; + } + + /** + * The mobile application type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MobileClientPlatform getClientType() { + return clientType; + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The country from which the last activity from this session was made. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCountry() { + return country; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * The dropbox client version. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getClientVersion() { + return clientVersion; + } + + /** + * The hosting OS version. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getOsVersion() { + return osVersion; + } + + /** + * last carrier used by the device. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLastCarrier() { + return lastCarrier; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sessionId The session id. Must not be {@code null}. + * @param deviceName The device name. Must not be {@code null}. + * @param clientType The mobile application type. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String sessionId, String deviceName, MobileClientPlatform clientType) { + return new Builder(sessionId, deviceName, clientType); + } + + /** + * Builder for {@link MobileClientSession}. + */ + public static class Builder extends DeviceSession.Builder { + protected final String deviceName; + protected final MobileClientPlatform clientType; + + protected String clientVersion; + protected String osVersion; + protected String lastCarrier; + + protected Builder(String sessionId, String deviceName, MobileClientPlatform clientType) { + super(sessionId); + if (deviceName == null) { + throw new IllegalArgumentException("Required value for 'deviceName' is null"); + } + this.deviceName = deviceName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + this.clientVersion = null; + this.osVersion = null; + this.lastCarrier = null; + } + + /** + * Set value for optional field. + * + * @param clientVersion The dropbox client version. + * + * @return this builder + */ + public Builder withClientVersion(String clientVersion) { + this.clientVersion = clientVersion; + return this; + } + + /** + * Set value for optional field. + * + * @param osVersion The hosting OS version. + * + * @return this builder + */ + public Builder withOsVersion(String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Set value for optional field. + * + * @param lastCarrier last carrier used by the device. + * + * @return this builder + */ + public Builder withLastCarrier(String lastCarrier) { + this.lastCarrier = lastCarrier; + return this; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + super.withIpAddress(ipAddress); + return this; + } + + /** + * Set value for optional field. + * + * @param country The country from which the last activity from this + * session was made. + * + * @return this builder + */ + public Builder withCountry(String country) { + super.withCountry(country); + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + super.withCreated(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + super.withUpdated(updated); + return this; + } + + /** + * Builds an instance of {@link MobileClientSession} configured with + * this builder's values + * + * @return new instance of {@link MobileClientSession} + */ + public MobileClientSession build() { + return new MobileClientSession(sessionId, deviceName, clientType, ipAddress, country, created, updated, clientVersion, osVersion, lastCarrier); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.deviceName, + this.clientType, + this.clientVersion, + this.osVersion, + this.lastCarrier + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MobileClientSession other = (MobileClientSession) obj; + return ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + && ((this.deviceName == other.deviceName) || (this.deviceName.equals(other.deviceName))) + && ((this.clientType == other.clientType) || (this.clientType.equals(other.clientType))) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.country == other.country) || (this.country != null && this.country.equals(other.country))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + && ((this.clientVersion == other.clientVersion) || (this.clientVersion != null && this.clientVersion.equals(other.clientVersion))) + && ((this.osVersion == other.osVersion) || (this.osVersion != null && this.osVersion.equals(other.osVersion))) + && ((this.lastCarrier == other.lastCarrier) || (this.lastCarrier != null && this.lastCarrier.equals(other.lastCarrier))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MobileClientSession value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + g.writeFieldName("device_name"); + StoneSerializers.string().serialize(value.deviceName, g); + g.writeFieldName("client_type"); + MobileClientPlatform.Serializer.INSTANCE.serialize(value.clientType, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.country != null) { + g.writeFieldName("country"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.country, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (value.clientVersion != null) { + g.writeFieldName("client_version"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.clientVersion, g); + } + if (value.osVersion != null) { + g.writeFieldName("os_version"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.osVersion, g); + } + if (value.lastCarrier != null) { + g.writeFieldName("last_carrier"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.lastCarrier, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MobileClientSession deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MobileClientSession value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + String f_deviceName = null; + MobileClientPlatform f_clientType = null; + String f_ipAddress = null; + String f_country = null; + Date f_created = null; + Date f_updated = null; + String f_clientVersion = null; + String f_osVersion = null; + String f_lastCarrier = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else if ("device_name".equals(field)) { + f_deviceName = StoneSerializers.string().deserialize(p); + } + else if ("client_type".equals(field)) { + f_clientType = MobileClientPlatform.Serializer.INSTANCE.deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("country".equals(field)) { + f_country = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("client_version".equals(field)) { + f_clientVersion = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("os_version".equals(field)) { + f_osVersion = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("last_carrier".equals(field)) { + f_lastCarrier = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + if (f_deviceName == null) { + throw new JsonParseException(p, "Required field \"device_name\" missing."); + } + if (f_clientType == null) { + throw new JsonParseException(p, "Required field \"client_type\" missing."); + } + value = new MobileClientSession(f_sessionId, f_deviceName, f_clientType, f_ipAddress, f_country, f_created, f_updated, f_clientVersion, f_osVersion, f_lastCarrier); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/NamespaceMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/NamespaceMetadata.java new file mode 100644 index 000000000..102462e29 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/NamespaceMetadata.java @@ -0,0 +1,259 @@ +/* DO NOT EDIT */ +/* This file was generated from team_namespaces.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Properties of a namespace. + */ +public class NamespaceMetadata { + // struct team.NamespaceMetadata (team_namespaces.stone) + + @Nonnull + protected final String name; + @Nonnull + protected final String namespaceId; + @Nonnull + protected final NamespaceType namespaceType; + @Nullable + protected final String teamMemberId; + + /** + * Properties of a namespace. + * + * @param name The name of this namespace. Must not be {@code null}. + * @param namespaceId The ID of this namespace. Must match pattern "{@code + * [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param namespaceType The type of this namespace. Must not be {@code + * null}. + * @param teamMemberId If this is a team member or app folder, the ID of + * the owning team member. Otherwise, this field is not present. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NamespaceMetadata(@Nonnull String name, @Nonnull String namespaceId, @Nonnull NamespaceType namespaceType, @Nullable String teamMemberId) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (namespaceId == null) { + throw new IllegalArgumentException("Required value for 'namespaceId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", namespaceId)) { + throw new IllegalArgumentException("String 'namespaceId' does not match pattern"); + } + this.namespaceId = namespaceId; + if (namespaceType == null) { + throw new IllegalArgumentException("Required value for 'namespaceType' is null"); + } + this.namespaceType = namespaceType; + this.teamMemberId = teamMemberId; + } + + /** + * Properties of a namespace. + * + *

The default values for unset fields will be used.

+ * + * @param name The name of this namespace. Must not be {@code null}. + * @param namespaceId The ID of this namespace. Must match pattern "{@code + * [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param namespaceType The type of this namespace. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NamespaceMetadata(@Nonnull String name, @Nonnull String namespaceId, @Nonnull NamespaceType namespaceType) { + this(name, namespaceId, namespaceType, null); + } + + /** + * The name of this namespace. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The ID of this namespace. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNamespaceId() { + return namespaceId; + } + + /** + * The type of this namespace. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public NamespaceType getNamespaceType() { + return namespaceType; + } + + /** + * If this is a team member or app folder, the ID of the owning team member. + * Otherwise, this field is not present. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamMemberId() { + return teamMemberId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.namespaceId, + this.namespaceType, + this.teamMemberId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NamespaceMetadata other = (NamespaceMetadata) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.namespaceId == other.namespaceId) || (this.namespaceId.equals(other.namespaceId))) + && ((this.namespaceType == other.namespaceType) || (this.namespaceType.equals(other.namespaceType))) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId != null && this.teamMemberId.equals(other.teamMemberId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NamespaceMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("namespace_id"); + StoneSerializers.string().serialize(value.namespaceId, g); + g.writeFieldName("namespace_type"); + NamespaceType.Serializer.INSTANCE.serialize(value.namespaceType, g); + if (value.teamMemberId != null) { + g.writeFieldName("team_member_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamMemberId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NamespaceMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NamespaceMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_namespaceId = null; + NamespaceType f_namespaceType = null; + String f_teamMemberId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("namespace_id".equals(field)) { + f_namespaceId = StoneSerializers.string().deserialize(p); + } + else if ("namespace_type".equals(field)) { + f_namespaceType = NamespaceType.Serializer.INSTANCE.deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_namespaceId == null) { + throw new JsonParseException(p, "Required field \"namespace_id\" missing."); + } + if (f_namespaceType == null) { + throw new JsonParseException(p, "Required field \"namespace_type\" missing."); + } + value = new NamespaceMetadata(f_name, f_namespaceId, f_namespaceType, f_teamMemberId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/NamespaceType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/NamespaceType.java new file mode 100644 index 000000000..996d5e6f6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/NamespaceType.java @@ -0,0 +1,117 @@ +/* DO NOT EDIT */ +/* This file was generated from team_namespaces.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum NamespaceType { + // union team.NamespaceType (team_namespaces.stone) + /** + * App sandbox folder. + */ + APP_FOLDER, + /** + * Shared folder. + */ + SHARED_FOLDER, + /** + * Top-level team-owned folder. + */ + TEAM_FOLDER, + /** + * Team member's home folder. + */ + TEAM_MEMBER_FOLDER, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NamespaceType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case APP_FOLDER: { + g.writeString("app_folder"); + break; + } + case SHARED_FOLDER: { + g.writeString("shared_folder"); + break; + } + case TEAM_FOLDER: { + g.writeString("team_folder"); + break; + } + case TEAM_MEMBER_FOLDER: { + g.writeString("team_member_folder"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public NamespaceType deserialize(JsonParser p) throws IOException, JsonParseException { + NamespaceType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("app_folder".equals(tag)) { + value = NamespaceType.APP_FOLDER; + } + else if ("shared_folder".equals(tag)) { + value = NamespaceType.SHARED_FOLDER; + } + else if ("team_folder".equals(tag)) { + value = NamespaceType.TEAM_FOLDER; + } + else if ("team_member_folder".equals(tag)) { + value = NamespaceType.TEAM_MEMBER_FOLDER; + } + else { + value = NamespaceType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder.java new file mode 100644 index 000000000..1862fe4ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/PropertiesTemplateUpdateBuilder.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.fileproperties.ModifyTemplateError; +import com.dropbox.core.v2.fileproperties.ModifyTemplateErrorException; +import com.dropbox.core.v2.fileproperties.PropertyFieldTemplate; +import com.dropbox.core.v2.fileproperties.UpdateTemplateArg; +import com.dropbox.core.v2.fileproperties.UpdateTemplateResult; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#propertiesTemplateUpdateBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class PropertiesTemplateUpdateBuilder { + private final DbxTeamTeamRequests _client; + private final UpdateTemplateArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + PropertiesTemplateUpdateBuilder(DbxTeamTeamRequests _client, UpdateTemplateArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param name A display name for the template. template names can be up to + * 256 bytes. + * + * @return this builder + */ + public PropertiesTemplateUpdateBuilder withName(String name) { + this._builder.withName(name); + return this; + } + + /** + * Set value for optional field. + * + * @param description Description for the new template. Template + * descriptions can be up to 1024 bytes. + * + * @return this builder + */ + public PropertiesTemplateUpdateBuilder withDescription(String description) { + this._builder.withDescription(description); + return this; + } + + /** + * Set value for optional field. + * + * @param addFields Property field templates to be added to the group + * template. There can be up to 32 properties in a single template. Must + * not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PropertiesTemplateUpdateBuilder withAddFields(List addFields) { + this._builder.withAddFields(addFields); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public UpdateTemplateResult start() throws ModifyTemplateErrorException, DbxException { + UpdateTemplateArg arg_ = this._builder.build(); + return _client.propertiesTemplateUpdate(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RemoveCustomQuotaResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RemoveCustomQuotaResult.java new file mode 100644 index 000000000..6be4c3733 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RemoveCustomQuotaResult.java @@ -0,0 +1,374 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * User result for setting member custom quota. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class RemoveCustomQuotaResult { + // union team.RemoveCustomQuotaResult (team_member_space_limits.stone) + + /** + * Discriminating tag type for {@link RemoveCustomQuotaResult}. + */ + public enum Tag { + /** + * Successfully removed user. + */ + SUCCESS, // UserSelectorArg + /** + * Invalid user (not in team). + */ + INVALID_USER, // UserSelectorArg + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final RemoveCustomQuotaResult OTHER = new RemoveCustomQuotaResult().withTag(Tag.OTHER); + + private Tag _tag; + private UserSelectorArg successValue; + private UserSelectorArg invalidUserValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RemoveCustomQuotaResult() { + } + + + /** + * User result for setting member custom quota. + * + * @param _tag Discriminating tag for this instance. + */ + private RemoveCustomQuotaResult withTag(Tag _tag) { + RemoveCustomQuotaResult result = new RemoveCustomQuotaResult(); + result._tag = _tag; + return result; + } + + /** + * User result for setting member custom quota. + * + * @param successValue Successfully removed user. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveCustomQuotaResult withTagAndSuccess(Tag _tag, UserSelectorArg successValue) { + RemoveCustomQuotaResult result = new RemoveCustomQuotaResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * User result for setting member custom quota. + * + * @param invalidUserValue Invalid user (not in team). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RemoveCustomQuotaResult withTagAndInvalidUser(Tag _tag, UserSelectorArg invalidUserValue) { + RemoveCustomQuotaResult result = new RemoveCustomQuotaResult(); + result._tag = _tag; + result.invalidUserValue = invalidUserValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RemoveCustomQuotaResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code RemoveCustomQuotaResult} that has its tag + * set to {@link Tag#SUCCESS}. + * + *

Successfully removed user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveCustomQuotaResult} with its tag set to + * {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveCustomQuotaResult success(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveCustomQuotaResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Successfully removed user. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public UserSelectorArg getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_USER}, {@code false} otherwise. + */ + public boolean isInvalidUser() { + return this._tag == Tag.INVALID_USER; + } + + /** + * Returns an instance of {@code RemoveCustomQuotaResult} that has its tag + * set to {@link Tag#INVALID_USER}. + * + *

Invalid user (not in team).

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RemoveCustomQuotaResult} with its tag set to + * {@link Tag#INVALID_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RemoveCustomQuotaResult invalidUser(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RemoveCustomQuotaResult().withTagAndInvalidUser(Tag.INVALID_USER, value); + } + + /** + * Invalid user (not in team). + * + *

This instance must be tagged as {@link Tag#INVALID_USER}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isInvalidUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidUser} is {@code + * false}. + */ + public UserSelectorArg getInvalidUserValue() { + if (this._tag != Tag.INVALID_USER) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_USER, but was Tag." + this._tag.name()); + } + return invalidUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.invalidUserValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RemoveCustomQuotaResult) { + RemoveCustomQuotaResult other = (RemoveCustomQuotaResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case INVALID_USER: + return (this.invalidUserValue == other.invalidUserValue) || (this.invalidUserValue.equals(other.invalidUserValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemoveCustomQuotaResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + g.writeFieldName("success"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.successValue, g); + g.writeEndObject(); + break; + } + case INVALID_USER: { + g.writeStartObject(); + writeTag("invalid_user", g); + g.writeFieldName("invalid_user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.invalidUserValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RemoveCustomQuotaResult deserialize(JsonParser p) throws IOException, JsonParseException { + RemoveCustomQuotaResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("success", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = RemoveCustomQuotaResult.success(fieldValue); + } + else if ("invalid_user".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("invalid_user", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = RemoveCustomQuotaResult.invalidUser(fieldValue); + } + else { + value = RemoveCustomQuotaResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RemovedStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RemovedStatus.java new file mode 100644 index 000000000..e88fcfef8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RemovedStatus.java @@ -0,0 +1,162 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class RemovedStatus { + // struct team.RemovedStatus (team.stone) + + protected final boolean isRecoverable; + protected final boolean isDisconnected; + + /** + * + * @param isRecoverable True if the removed team member is recoverable. + * @param isDisconnected True if the team member's account was converted to + * individual account. + */ + public RemovedStatus(boolean isRecoverable, boolean isDisconnected) { + this.isRecoverable = isRecoverable; + this.isDisconnected = isDisconnected; + } + + /** + * True if the removed team member is recoverable. + * + * @return value for this field. + */ + public boolean getIsRecoverable() { + return isRecoverable; + } + + /** + * True if the team member's account was converted to individual account. + * + * @return value for this field. + */ + public boolean getIsDisconnected() { + return isDisconnected; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isRecoverable, + this.isDisconnected + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RemovedStatus other = (RemovedStatus) obj; + return (this.isRecoverable == other.isRecoverable) + && (this.isDisconnected == other.isDisconnected) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RemovedStatus value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("is_recoverable"); + StoneSerializers.boolean_().serialize(value.isRecoverable, g); + g.writeFieldName("is_disconnected"); + StoneSerializers.boolean_().serialize(value.isDisconnected, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RemovedStatus deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RemovedStatus value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isRecoverable = null; + Boolean f_isDisconnected = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_recoverable".equals(field)) { + f_isRecoverable = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_disconnected".equals(field)) { + f_isDisconnected = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_isRecoverable == null) { + throw new JsonParseException(p, "Required field \"is_recoverable\" missing."); + } + if (f_isDisconnected == null) { + throw new JsonParseException(p, "Required field \"is_disconnected\" missing."); + } + value = new RemovedStatus(f_isRecoverable, f_isDisconnected); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetActivityBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetActivityBuilder.java new file mode 100644 index 000000000..7dce4abcb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetActivityBuilder.java @@ -0,0 +1,75 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#reportsGetActivityBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ReportsGetActivityBuilder { + private final DbxTeamTeamRequests _client; + private final DateRange.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ReportsGetActivityBuilder(DbxTeamTeamRequests _client, DateRange.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param startDate Optional starting date (inclusive). If start_date is + * None or too long ago, this field will be set to 6 months ago. + * + * @return this builder + */ + public ReportsGetActivityBuilder withStartDate(Date startDate) { + this._builder.withStartDate(startDate); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate Optional ending date (exclusive). + * + * @return this builder + */ + public ReportsGetActivityBuilder withEndDate(Date endDate) { + this._builder.withEndDate(endDate); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public GetActivityReport start() throws DateRangeErrorException, DbxException { + DateRange arg_ = this._builder.build(); + return _client.reportsGetActivity(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetDevicesBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetDevicesBuilder.java new file mode 100644 index 000000000..24a08239f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetDevicesBuilder.java @@ -0,0 +1,75 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#reportsGetDevicesBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ReportsGetDevicesBuilder { + private final DbxTeamTeamRequests _client; + private final DateRange.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ReportsGetDevicesBuilder(DbxTeamTeamRequests _client, DateRange.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param startDate Optional starting date (inclusive). If start_date is + * None or too long ago, this field will be set to 6 months ago. + * + * @return this builder + */ + public ReportsGetDevicesBuilder withStartDate(Date startDate) { + this._builder.withStartDate(startDate); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate Optional ending date (exclusive). + * + * @return this builder + */ + public ReportsGetDevicesBuilder withEndDate(Date endDate) { + this._builder.withEndDate(endDate); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public GetDevicesReport start() throws DateRangeErrorException, DbxException { + DateRange arg_ = this._builder.build(); + return _client.reportsGetDevices(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetMembershipBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetMembershipBuilder.java new file mode 100644 index 000000000..c378b25a5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetMembershipBuilder.java @@ -0,0 +1,75 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#reportsGetMembershipBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ReportsGetMembershipBuilder { + private final DbxTeamTeamRequests _client; + private final DateRange.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ReportsGetMembershipBuilder(DbxTeamTeamRequests _client, DateRange.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param startDate Optional starting date (inclusive). If start_date is + * None or too long ago, this field will be set to 6 months ago. + * + * @return this builder + */ + public ReportsGetMembershipBuilder withStartDate(Date startDate) { + this._builder.withStartDate(startDate); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate Optional ending date (exclusive). + * + * @return this builder + */ + public ReportsGetMembershipBuilder withEndDate(Date endDate) { + this._builder.withEndDate(endDate); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public GetMembershipReport start() throws DateRangeErrorException, DbxException { + DateRange arg_ = this._builder.build(); + return _client.reportsGetMembership(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetStorageBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetStorageBuilder.java new file mode 100644 index 000000000..a6fc7fa1b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ReportsGetStorageBuilder.java @@ -0,0 +1,75 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#reportsGetStorageBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class ReportsGetStorageBuilder { + private final DbxTeamTeamRequests _client; + private final DateRange.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + ReportsGetStorageBuilder(DbxTeamTeamRequests _client, DateRange.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param startDate Optional starting date (inclusive). If start_date is + * None or too long ago, this field will be set to 6 months ago. + * + * @return this builder + */ + public ReportsGetStorageBuilder withStartDate(Date startDate) { + this._builder.withStartDate(startDate); + return this; + } + + /** + * Set value for optional field. + * + * @param endDate Optional ending date (exclusive). + * + * @return this builder + */ + public ReportsGetStorageBuilder withEndDate(Date endDate) { + this._builder.withEndDate(endDate); + return this; + } + + /** + * Issues the request. + */ + @SuppressWarnings("deprecation") + public GetStorageReport start() throws DateRangeErrorException, DbxException { + DateRange arg_ = this._builder.build(); + return _client.reportsGetStorage(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendSecondaryEmailResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendSecondaryEmailResult.java new file mode 100644 index 000000000..1717f466e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendSecondaryEmailResult.java @@ -0,0 +1,519 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Result of trying to resend verification email to a secondary email address. + * 'success' is the only value indicating that a verification email was + * successfully sent. The other values explain the type of error that occurred, + * and include the email for which the error occurred. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ResendSecondaryEmailResult { + // union team.ResendSecondaryEmailResult (team_secondary_mails.stone) + + /** + * Discriminating tag type for {@link ResendSecondaryEmailResult}. + */ + public enum Tag { + /** + * A verification email was successfully sent to the secondary email + * address. + */ + SUCCESS, // String + /** + * This secondary email address is not pending for the user. + */ + NOT_PENDING, // String + /** + * Too many emails are being sent to this email address. Please try + * again later. + */ + RATE_LIMITED, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ResendSecondaryEmailResult OTHER = new ResendSecondaryEmailResult().withTag(Tag.OTHER); + + private Tag _tag; + private String successValue; + private String notPendingValue; + private String rateLimitedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ResendSecondaryEmailResult() { + } + + + /** + * Result of trying to resend verification email to a secondary email + * address. 'success' is the only value indicating that a verification email + * was successfully sent. The other values explain the type of error that + * occurred, and include the email for which the error occurred. + * + * @param _tag Discriminating tag for this instance. + */ + private ResendSecondaryEmailResult withTag(Tag _tag) { + ResendSecondaryEmailResult result = new ResendSecondaryEmailResult(); + result._tag = _tag; + return result; + } + + /** + * Result of trying to resend verification email to a secondary email + * address. 'success' is the only value indicating that a verification email + * was successfully sent. The other values explain the type of error that + * occurred, and include the email for which the error occurred. + * + * @param successValue A verification email was successfully sent to the + * secondary email address. Must have length of at most 255, match + * pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ResendSecondaryEmailResult withTagAndSuccess(Tag _tag, String successValue) { + ResendSecondaryEmailResult result = new ResendSecondaryEmailResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Result of trying to resend verification email to a secondary email + * address. 'success' is the only value indicating that a verification email + * was successfully sent. The other values explain the type of error that + * occurred, and include the email for which the error occurred. + * + * @param notPendingValue This secondary email address is not pending for + * the user. Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ResendSecondaryEmailResult withTagAndNotPending(Tag _tag, String notPendingValue) { + ResendSecondaryEmailResult result = new ResendSecondaryEmailResult(); + result._tag = _tag; + result.notPendingValue = notPendingValue; + return result; + } + + /** + * Result of trying to resend verification email to a secondary email + * address. 'success' is the only value indicating that a verification email + * was successfully sent. The other values explain the type of error that + * occurred, and include the email for which the error occurred. + * + * @param rateLimitedValue Too many emails are being sent to this email + * address. Please try again later. Must have length of at most 255, + * match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ResendSecondaryEmailResult withTagAndRateLimited(Tag _tag, String rateLimitedValue) { + ResendSecondaryEmailResult result = new ResendSecondaryEmailResult(); + result._tag = _tag; + result.rateLimitedValue = rateLimitedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ResendSecondaryEmailResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code ResendSecondaryEmailResult} that has its + * tag set to {@link Tag#SUCCESS}. + * + *

A verification email was successfully sent to the secondary email + * address.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ResendSecondaryEmailResult} with its tag set + * to {@link Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static ResendSecondaryEmailResult success(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new ResendSecondaryEmailResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * A verification email was successfully sent to the secondary email + * address. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public String getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOT_PENDING}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOT_PENDING}, {@code false} otherwise. + */ + public boolean isNotPending() { + return this._tag == Tag.NOT_PENDING; + } + + /** + * Returns an instance of {@code ResendSecondaryEmailResult} that has its + * tag set to {@link Tag#NOT_PENDING}. + * + *

This secondary email address is not pending for the user.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ResendSecondaryEmailResult} with its tag set + * to {@link Tag#NOT_PENDING}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static ResendSecondaryEmailResult notPending(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new ResendSecondaryEmailResult().withTagAndNotPending(Tag.NOT_PENDING, value); + } + + /** + * This secondary email address is not pending for the user. + * + *

This instance must be tagged as {@link Tag#NOT_PENDING}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isNotPending} is {@code true}. + * + * @throws IllegalStateException If {@link #isNotPending} is {@code false}. + */ + public String getNotPendingValue() { + if (this._tag != Tag.NOT_PENDING) { + throw new IllegalStateException("Invalid tag: required Tag.NOT_PENDING, but was Tag." + this._tag.name()); + } + return notPendingValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RATE_LIMITED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RATE_LIMITED}, {@code false} otherwise. + */ + public boolean isRateLimited() { + return this._tag == Tag.RATE_LIMITED; + } + + /** + * Returns an instance of {@code ResendSecondaryEmailResult} that has its + * tag set to {@link Tag#RATE_LIMITED}. + * + *

Too many emails are being sent to this email address. Please try + * again later.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ResendSecondaryEmailResult} with its tag set + * to {@link Tag#RATE_LIMITED}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static ResendSecondaryEmailResult rateLimited(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new ResendSecondaryEmailResult().withTagAndRateLimited(Tag.RATE_LIMITED, value); + } + + /** + * Too many emails are being sent to this email address. Please try again + * later. + * + *

This instance must be tagged as {@link Tag#RATE_LIMITED}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isRateLimited} is {@code true}. + * + * @throws IllegalStateException If {@link #isRateLimited} is {@code + * false}. + */ + public String getRateLimitedValue() { + if (this._tag != Tag.RATE_LIMITED) { + throw new IllegalStateException("Invalid tag: required Tag.RATE_LIMITED, but was Tag." + this._tag.name()); + } + return rateLimitedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.notPendingValue, + this.rateLimitedValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ResendSecondaryEmailResult) { + ResendSecondaryEmailResult other = (ResendSecondaryEmailResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case NOT_PENDING: + return (this.notPendingValue == other.notPendingValue) || (this.notPendingValue.equals(other.notPendingValue)); + case RATE_LIMITED: + return (this.rateLimitedValue == other.rateLimitedValue) || (this.rateLimitedValue.equals(other.rateLimitedValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResendSecondaryEmailResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + g.writeFieldName("success"); + StoneSerializers.string().serialize(value.successValue, g); + g.writeEndObject(); + break; + } + case NOT_PENDING: { + g.writeStartObject(); + writeTag("not_pending", g); + g.writeFieldName("not_pending"); + StoneSerializers.string().serialize(value.notPendingValue, g); + g.writeEndObject(); + break; + } + case RATE_LIMITED: { + g.writeStartObject(); + writeTag("rate_limited", g); + g.writeFieldName("rate_limited"); + StoneSerializers.string().serialize(value.rateLimitedValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ResendSecondaryEmailResult deserialize(JsonParser p) throws IOException, JsonParseException { + ResendSecondaryEmailResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + String fieldValue = null; + expectField("success", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = ResendSecondaryEmailResult.success(fieldValue); + } + else if ("not_pending".equals(tag)) { + String fieldValue = null; + expectField("not_pending", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = ResendSecondaryEmailResult.notPending(fieldValue); + } + else if ("rate_limited".equals(tag)) { + String fieldValue = null; + expectField("rate_limited", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = ResendSecondaryEmailResult.rateLimited(fieldValue); + } + else { + value = ResendSecondaryEmailResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendVerificationEmailArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendVerificationEmailArg.java new file mode 100644 index 000000000..ee88cbc06 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendVerificationEmailArg.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class ResendVerificationEmailArg { + // struct team.ResendVerificationEmailArg (team_secondary_mails.stone) + + @Nonnull + protected final List emailsToResend; + + /** + * + * @param emailsToResend List of users and secondary emails to resend + * verification emails to. Must not contain a {@code null} item and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResendVerificationEmailArg(@Nonnull List emailsToResend) { + if (emailsToResend == null) { + throw new IllegalArgumentException("Required value for 'emailsToResend' is null"); + } + for (UserSecondaryEmailsArg x : emailsToResend) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emailsToResend' is null"); + } + } + this.emailsToResend = emailsToResend; + } + + /** + * List of users and secondary emails to resend verification emails to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEmailsToResend() { + return emailsToResend; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.emailsToResend + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResendVerificationEmailArg other = (ResendVerificationEmailArg) obj; + return (this.emailsToResend == other.emailsToResend) || (this.emailsToResend.equals(other.emailsToResend)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResendVerificationEmailArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("emails_to_resend"); + StoneSerializers.list(UserSecondaryEmailsArg.Serializer.INSTANCE).serialize(value.emailsToResend, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResendVerificationEmailArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResendVerificationEmailArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_emailsToResend = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("emails_to_resend".equals(field)) { + f_emailsToResend = StoneSerializers.list(UserSecondaryEmailsArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_emailsToResend == null) { + throw new JsonParseException(p, "Required field \"emails_to_resend\" missing."); + } + value = new ResendVerificationEmailArg(f_emailsToResend); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendVerificationEmailResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendVerificationEmailResult.java new file mode 100644 index 000000000..26a05bfc7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ResendVerificationEmailResult.java @@ -0,0 +1,157 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * List of users and resend results. + */ +public class ResendVerificationEmailResult { + // struct team.ResendVerificationEmailResult (team_secondary_mails.stone) + + @Nonnull + protected final List results; + + /** + * List of users and resend results. + * + * @param results Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResendVerificationEmailResult(@Nonnull List results) { + if (results == null) { + throw new IllegalArgumentException("Required value for 'results' is null"); + } + for (UserResendResult x : results) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'results' is null"); + } + } + this.results = results; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getResults() { + return results; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.results + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResendVerificationEmailResult other = (ResendVerificationEmailResult) obj; + return (this.results == other.results) || (this.results.equals(other.results)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResendVerificationEmailResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("results"); + StoneSerializers.list(UserResendResult.Serializer.INSTANCE).serialize(value.results, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResendVerificationEmailResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResendVerificationEmailResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_results = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("results".equals(field)) { + f_results = StoneSerializers.list(UserResendResult.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_results == null) { + throw new JsonParseException(p, "Required field \"results\" missing."); + } + value = new ResendVerificationEmailResult(f_results); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDesktopClientArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDesktopClientArg.java new file mode 100644 index 000000000..e258d1b2d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDesktopClientArg.java @@ -0,0 +1,206 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RevokeDesktopClientArg extends DeviceSessionArg { + // struct team.RevokeDesktopClientArg (team_devices.stone) + + protected final boolean deleteOnUnlink; + + /** + * + * @param sessionId The session id. Must not be {@code null}. + * @param teamMemberId The unique id of the member owning the device. Must + * not be {@code null}. + * @param deleteOnUnlink Whether to delete all files of the account (this + * is possible only if supported by the desktop client and will be made + * the next time the client access the account). + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeDesktopClientArg(@Nonnull String sessionId, @Nonnull String teamMemberId, boolean deleteOnUnlink) { + super(sessionId, teamMemberId); + this.deleteOnUnlink = deleteOnUnlink; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param sessionId The session id. Must not be {@code null}. + * @param teamMemberId The unique id of the member owning the device. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeDesktopClientArg(@Nonnull String sessionId, @Nonnull String teamMemberId) { + this(sessionId, teamMemberId, false); + } + + /** + * The session id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + /** + * The unique id of the member owning the device. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * Whether to delete all files of the account (this is possible only if + * supported by the desktop client and will be made the next time the + * client access the account). + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getDeleteOnUnlink() { + return deleteOnUnlink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.deleteOnUnlink + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeDesktopClientArg other = (RevokeDesktopClientArg) obj; + return ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && (this.deleteOnUnlink == other.deleteOnUnlink) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeDesktopClientArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + g.writeFieldName("delete_on_unlink"); + StoneSerializers.boolean_().serialize(value.deleteOnUnlink, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeDesktopClientArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeDesktopClientArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sessionId = null; + String f_teamMemberId = null; + Boolean f_deleteOnUnlink = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("delete_on_unlink".equals(field)) { + f_deleteOnUnlink = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + value = new RevokeDesktopClientArg(f_sessionId, f_teamMemberId, f_deleteOnUnlink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionArg.java new file mode 100644 index 000000000..ef2b9dea7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionArg.java @@ -0,0 +1,412 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class RevokeDeviceSessionArg { + // union team.RevokeDeviceSessionArg (team_devices.stone) + + /** + * Discriminating tag type for {@link RevokeDeviceSessionArg}. + */ + public enum Tag { + /** + * End an active session. + */ + WEB_SESSION, // DeviceSessionArg + /** + * Unlink a linked desktop device. + */ + DESKTOP_CLIENT, // RevokeDesktopClientArg + /** + * Unlink a linked mobile device. + */ + MOBILE_CLIENT; // DeviceSessionArg + } + + private Tag _tag; + private DeviceSessionArg webSessionValue; + private RevokeDesktopClientArg desktopClientValue; + private DeviceSessionArg mobileClientValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private RevokeDeviceSessionArg() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private RevokeDeviceSessionArg withTag(Tag _tag) { + RevokeDeviceSessionArg result = new RevokeDeviceSessionArg(); + result._tag = _tag; + return result; + } + + /** + * + * @param webSessionValue End an active session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RevokeDeviceSessionArg withTagAndWebSession(Tag _tag, DeviceSessionArg webSessionValue) { + RevokeDeviceSessionArg result = new RevokeDeviceSessionArg(); + result._tag = _tag; + result.webSessionValue = webSessionValue; + return result; + } + + /** + * + * @param desktopClientValue Unlink a linked desktop device. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RevokeDeviceSessionArg withTagAndDesktopClient(Tag _tag, RevokeDesktopClientArg desktopClientValue) { + RevokeDeviceSessionArg result = new RevokeDeviceSessionArg(); + result._tag = _tag; + result.desktopClientValue = desktopClientValue; + return result; + } + + /** + * + * @param mobileClientValue Unlink a linked mobile device. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private RevokeDeviceSessionArg withTagAndMobileClient(Tag _tag, DeviceSessionArg mobileClientValue) { + RevokeDeviceSessionArg result = new RevokeDeviceSessionArg(); + result._tag = _tag; + result.mobileClientValue = mobileClientValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code RevokeDeviceSessionArg}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_SESSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_SESSION}, {@code false} otherwise. + */ + public boolean isWebSession() { + return this._tag == Tag.WEB_SESSION; + } + + /** + * Returns an instance of {@code RevokeDeviceSessionArg} that has its tag + * set to {@link Tag#WEB_SESSION}. + * + *

End an active session.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RevokeDeviceSessionArg} with its tag set to + * {@link Tag#WEB_SESSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RevokeDeviceSessionArg webSession(DeviceSessionArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RevokeDeviceSessionArg().withTagAndWebSession(Tag.WEB_SESSION, value); + } + + /** + * End an active session. + * + *

This instance must be tagged as {@link Tag#WEB_SESSION}.

+ * + * @return The {@link DeviceSessionArg} value associated with this instance + * if {@link #isWebSession} is {@code true}. + * + * @throws IllegalStateException If {@link #isWebSession} is {@code false}. + */ + public DeviceSessionArg getWebSessionValue() { + if (this._tag != Tag.WEB_SESSION) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_SESSION, but was Tag." + this._tag.name()); + } + return webSessionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DESKTOP_CLIENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DESKTOP_CLIENT}, {@code false} otherwise. + */ + public boolean isDesktopClient() { + return this._tag == Tag.DESKTOP_CLIENT; + } + + /** + * Returns an instance of {@code RevokeDeviceSessionArg} that has its tag + * set to {@link Tag#DESKTOP_CLIENT}. + * + *

Unlink a linked desktop device.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RevokeDeviceSessionArg} with its tag set to + * {@link Tag#DESKTOP_CLIENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RevokeDeviceSessionArg desktopClient(RevokeDesktopClientArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RevokeDeviceSessionArg().withTagAndDesktopClient(Tag.DESKTOP_CLIENT, value); + } + + /** + * Unlink a linked desktop device. + * + *

This instance must be tagged as {@link Tag#DESKTOP_CLIENT}.

+ * + * @return The {@link RevokeDesktopClientArg} value associated with this + * instance if {@link #isDesktopClient} is {@code true}. + * + * @throws IllegalStateException If {@link #isDesktopClient} is {@code + * false}. + */ + public RevokeDesktopClientArg getDesktopClientValue() { + if (this._tag != Tag.DESKTOP_CLIENT) { + throw new IllegalStateException("Invalid tag: required Tag.DESKTOP_CLIENT, but was Tag." + this._tag.name()); + } + return desktopClientValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MOBILE_CLIENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MOBILE_CLIENT}, {@code false} otherwise. + */ + public boolean isMobileClient() { + return this._tag == Tag.MOBILE_CLIENT; + } + + /** + * Returns an instance of {@code RevokeDeviceSessionArg} that has its tag + * set to {@link Tag#MOBILE_CLIENT}. + * + *

Unlink a linked mobile device.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code RevokeDeviceSessionArg} with its tag set to + * {@link Tag#MOBILE_CLIENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static RevokeDeviceSessionArg mobileClient(DeviceSessionArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new RevokeDeviceSessionArg().withTagAndMobileClient(Tag.MOBILE_CLIENT, value); + } + + /** + * Unlink a linked mobile device. + * + *

This instance must be tagged as {@link Tag#MOBILE_CLIENT}.

+ * + * @return The {@link DeviceSessionArg} value associated with this instance + * if {@link #isMobileClient} is {@code true}. + * + * @throws IllegalStateException If {@link #isMobileClient} is {@code + * false}. + */ + public DeviceSessionArg getMobileClientValue() { + if (this._tag != Tag.MOBILE_CLIENT) { + throw new IllegalStateException("Invalid tag: required Tag.MOBILE_CLIENT, but was Tag." + this._tag.name()); + } + return mobileClientValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.webSessionValue, + this.desktopClientValue, + this.mobileClientValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof RevokeDeviceSessionArg) { + RevokeDeviceSessionArg other = (RevokeDeviceSessionArg) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case WEB_SESSION: + return (this.webSessionValue == other.webSessionValue) || (this.webSessionValue.equals(other.webSessionValue)); + case DESKTOP_CLIENT: + return (this.desktopClientValue == other.desktopClientValue) || (this.desktopClientValue.equals(other.desktopClientValue)); + case MOBILE_CLIENT: + return (this.mobileClientValue == other.mobileClientValue) || (this.mobileClientValue.equals(other.mobileClientValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeDeviceSessionArg value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case WEB_SESSION: { + g.writeStartObject(); + writeTag("web_session", g); + DeviceSessionArg.Serializer.INSTANCE.serialize(value.webSessionValue, g, true); + g.writeEndObject(); + break; + } + case DESKTOP_CLIENT: { + g.writeStartObject(); + writeTag("desktop_client", g); + RevokeDesktopClientArg.Serializer.INSTANCE.serialize(value.desktopClientValue, g, true); + g.writeEndObject(); + break; + } + case MOBILE_CLIENT: { + g.writeStartObject(); + writeTag("mobile_client", g); + DeviceSessionArg.Serializer.INSTANCE.serialize(value.mobileClientValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public RevokeDeviceSessionArg deserialize(JsonParser p) throws IOException, JsonParseException { + RevokeDeviceSessionArg value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("web_session".equals(tag)) { + DeviceSessionArg fieldValue = null; + fieldValue = DeviceSessionArg.Serializer.INSTANCE.deserialize(p, true); + value = RevokeDeviceSessionArg.webSession(fieldValue); + } + else if ("desktop_client".equals(tag)) { + RevokeDesktopClientArg fieldValue = null; + fieldValue = RevokeDesktopClientArg.Serializer.INSTANCE.deserialize(p, true); + value = RevokeDeviceSessionArg.desktopClient(fieldValue); + } + else if ("mobile_client".equals(tag)) { + DeviceSessionArg fieldValue = null; + fieldValue = DeviceSessionArg.Serializer.INSTANCE.deserialize(p, true); + value = RevokeDeviceSessionArg.mobileClient(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchArg.java new file mode 100644 index 000000000..7daefe1b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchArg.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class RevokeDeviceSessionBatchArg { + // struct team.RevokeDeviceSessionBatchArg (team_devices.stone) + + @Nonnull + protected final List revokeDevices; + + /** + * + * @param revokeDevices Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeDeviceSessionBatchArg(@Nonnull List revokeDevices) { + if (revokeDevices == null) { + throw new IllegalArgumentException("Required value for 'revokeDevices' is null"); + } + for (RevokeDeviceSessionArg x : revokeDevices) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'revokeDevices' is null"); + } + } + this.revokeDevices = revokeDevices; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRevokeDevices() { + return revokeDevices; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.revokeDevices + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeDeviceSessionBatchArg other = (RevokeDeviceSessionBatchArg) obj; + return (this.revokeDevices == other.revokeDevices) || (this.revokeDevices.equals(other.revokeDevices)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeDeviceSessionBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("revoke_devices"); + StoneSerializers.list(RevokeDeviceSessionArg.Serializer.INSTANCE).serialize(value.revokeDevices, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeDeviceSessionBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeDeviceSessionBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_revokeDevices = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("revoke_devices".equals(field)) { + f_revokeDevices = StoneSerializers.list(RevokeDeviceSessionArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_revokeDevices == null) { + throw new JsonParseException(p, "Required field \"revoke_devices\" missing."); + } + value = new RevokeDeviceSessionBatchArg(f_revokeDevices); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchError.java new file mode 100644 index 000000000..d9f439343 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchError.java @@ -0,0 +1,73 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum RevokeDeviceSessionBatchError { + // union team.RevokeDeviceSessionBatchError (team_devices.stone) + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeDeviceSessionBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + default: { + g.writeString("other"); + } + } + } + + @Override + public RevokeDeviceSessionBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + RevokeDeviceSessionBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else { + value = RevokeDeviceSessionBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchErrorException.java new file mode 100644 index 000000000..7f826379b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RevokeDeviceSessionBatchError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#devicesRevokeDeviceSessionBatch(java.util.List)}.

+ */ +public class RevokeDeviceSessionBatchErrorException extends DbxApiException { + // exception for routes: + // 2/team/devices/revoke_device_session_batch + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#devicesRevokeDeviceSessionBatch(java.util.List)}. + */ + public final RevokeDeviceSessionBatchError errorValue; + + public RevokeDeviceSessionBatchErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeDeviceSessionBatchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchResult.java new file mode 100644 index 000000000..8a84b87f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionBatchResult.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class RevokeDeviceSessionBatchResult { + // struct team.RevokeDeviceSessionBatchResult (team_devices.stone) + + @Nonnull + protected final List revokeDevicesStatus; + + /** + * + * @param revokeDevicesStatus Must not contain a {@code null} item and not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeDeviceSessionBatchResult(@Nonnull List revokeDevicesStatus) { + if (revokeDevicesStatus == null) { + throw new IllegalArgumentException("Required value for 'revokeDevicesStatus' is null"); + } + for (RevokeDeviceSessionStatus x : revokeDevicesStatus) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'revokeDevicesStatus' is null"); + } + } + this.revokeDevicesStatus = revokeDevicesStatus; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRevokeDevicesStatus() { + return revokeDevicesStatus; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.revokeDevicesStatus + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeDeviceSessionBatchResult other = (RevokeDeviceSessionBatchResult) obj; + return (this.revokeDevicesStatus == other.revokeDevicesStatus) || (this.revokeDevicesStatus.equals(other.revokeDevicesStatus)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeDeviceSessionBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("revoke_devices_status"); + StoneSerializers.list(RevokeDeviceSessionStatus.Serializer.INSTANCE).serialize(value.revokeDevicesStatus, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeDeviceSessionBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeDeviceSessionBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_revokeDevicesStatus = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("revoke_devices_status".equals(field)) { + f_revokeDevicesStatus = StoneSerializers.list(RevokeDeviceSessionStatus.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_revokeDevicesStatus == null) { + throw new JsonParseException(p, "Required field \"revoke_devices_status\" missing."); + } + value = new RevokeDeviceSessionBatchResult(f_revokeDevicesStatus); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionError.java new file mode 100644 index 000000000..b6d716c72 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionError.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum RevokeDeviceSessionError { + // union team.RevokeDeviceSessionError (team_devices.stone) + /** + * Device session not found. + */ + DEVICE_SESSION_NOT_FOUND, + /** + * Member not found. + */ + MEMBER_NOT_FOUND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeDeviceSessionError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEVICE_SESSION_NOT_FOUND: { + g.writeString("device_session_not_found"); + break; + } + case MEMBER_NOT_FOUND: { + g.writeString("member_not_found"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RevokeDeviceSessionError deserialize(JsonParser p) throws IOException, JsonParseException { + RevokeDeviceSessionError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("device_session_not_found".equals(tag)) { + value = RevokeDeviceSessionError.DEVICE_SESSION_NOT_FOUND; + } + else if ("member_not_found".equals(tag)) { + value = RevokeDeviceSessionError.MEMBER_NOT_FOUND; + } + else { + value = RevokeDeviceSessionError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionErrorException.java new file mode 100644 index 000000000..1b3307b06 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RevokeDeviceSessionError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#devicesRevokeDeviceSession}.

+ */ +public class RevokeDeviceSessionErrorException extends DbxApiException { + // exception for routes: + // 2/team/devices/revoke_device_session + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#devicesRevokeDeviceSession}. + */ + public final RevokeDeviceSessionError errorValue; + + public RevokeDeviceSessionErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeDeviceSessionError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionStatus.java new file mode 100644 index 000000000..780b1f30e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionStatus.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_devices.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class RevokeDeviceSessionStatus { + // struct team.RevokeDeviceSessionStatus (team_devices.stone) + + protected final boolean success; + @Nullable + protected final RevokeDeviceSessionError errorType; + + /** + * + * @param success Result of the revoking request. + * @param errorType The error cause in case of a failure. + */ + public RevokeDeviceSessionStatus(boolean success, @Nullable RevokeDeviceSessionError errorType) { + this.success = success; + this.errorType = errorType; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param success Result of the revoking request. + */ + public RevokeDeviceSessionStatus(boolean success) { + this(success, null); + } + + /** + * Result of the revoking request. + * + * @return value for this field. + */ + public boolean getSuccess() { + return success; + } + + /** + * The error cause in case of a failure. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RevokeDeviceSessionError getErrorType() { + return errorType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.success, + this.errorType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeDeviceSessionStatus other = (RevokeDeviceSessionStatus) obj; + return (this.success == other.success) + && ((this.errorType == other.errorType) || (this.errorType != null && this.errorType.equals(other.errorType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeDeviceSessionStatus value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("success"); + StoneSerializers.boolean_().serialize(value.success, g); + if (value.errorType != null) { + g.writeFieldName("error_type"); + StoneSerializers.nullable(RevokeDeviceSessionError.Serializer.INSTANCE).serialize(value.errorType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeDeviceSessionStatus deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeDeviceSessionStatus value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_success = null; + RevokeDeviceSessionError f_errorType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("success".equals(field)) { + f_success = StoneSerializers.boolean_().deserialize(p); + } + else if ("error_type".equals(field)) { + f_errorType = StoneSerializers.nullable(RevokeDeviceSessionError.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_success == null) { + throw new JsonParseException(p, "Required field \"success\" missing."); + } + value = new RevokeDeviceSessionStatus(f_success, f_errorType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedApiAppArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedApiAppArg.java new file mode 100644 index 000000000..7629fe45a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedApiAppArg.java @@ -0,0 +1,216 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RevokeLinkedApiAppArg { + // struct team.RevokeLinkedApiAppArg (team_linked_apps.stone) + + @Nonnull + protected final String appId; + @Nonnull + protected final String teamMemberId; + protected final boolean keepAppFolder; + + /** + * + * @param appId The application's unique id. Must not be {@code null}. + * @param teamMemberId The unique id of the member owning the device. Must + * not be {@code null}. + * @param keepAppFolder This flag is not longer supported, the application + * dedicated folder (in case the application uses one) will be kept. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeLinkedApiAppArg(@Nonnull String appId, @Nonnull String teamMemberId, boolean keepAppFolder) { + if (appId == null) { + throw new IllegalArgumentException("Required value for 'appId' is null"); + } + this.appId = appId; + if (teamMemberId == null) { + throw new IllegalArgumentException("Required value for 'teamMemberId' is null"); + } + this.teamMemberId = teamMemberId; + this.keepAppFolder = keepAppFolder; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param appId The application's unique id. Must not be {@code null}. + * @param teamMemberId The unique id of the member owning the device. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeLinkedApiAppArg(@Nonnull String appId, @Nonnull String teamMemberId) { + this(appId, teamMemberId, true); + } + + /** + * The application's unique id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAppId() { + return appId; + } + + /** + * The unique id of the member owning the device. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * This flag is not longer supported, the application dedicated folder (in + * case the application uses one) will be kept. + * + * @return value for this field, or {@code null} if not present. Defaults to + * true. + */ + public boolean getKeepAppFolder() { + return keepAppFolder; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appId, + this.teamMemberId, + this.keepAppFolder + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeLinkedApiAppArg other = (RevokeLinkedApiAppArg) obj; + return ((this.appId == other.appId) || (this.appId.equals(other.appId))) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && (this.keepAppFolder == other.keepAppFolder) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeLinkedApiAppArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("app_id"); + StoneSerializers.string().serialize(value.appId, g); + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + g.writeFieldName("keep_app_folder"); + StoneSerializers.boolean_().serialize(value.keepAppFolder, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeLinkedApiAppArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeLinkedApiAppArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_appId = null; + String f_teamMemberId = null; + Boolean f_keepAppFolder = true; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_id".equals(field)) { + f_appId = StoneSerializers.string().deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("keep_app_folder".equals(field)) { + f_keepAppFolder = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_appId == null) { + throw new JsonParseException(p, "Required field \"app_id\" missing."); + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + value = new RevokeLinkedApiAppArg(f_appId, f_teamMemberId, f_keepAppFolder); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedApiAppBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedApiAppBatchArg.java new file mode 100644 index 000000000..6ebdf67bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedApiAppBatchArg.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class RevokeLinkedApiAppBatchArg { + // struct team.RevokeLinkedApiAppBatchArg (team_linked_apps.stone) + + @Nonnull + protected final List revokeLinkedApp; + + /** + * + * @param revokeLinkedApp Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeLinkedApiAppBatchArg(@Nonnull List revokeLinkedApp) { + if (revokeLinkedApp == null) { + throw new IllegalArgumentException("Required value for 'revokeLinkedApp' is null"); + } + for (RevokeLinkedApiAppArg x : revokeLinkedApp) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'revokeLinkedApp' is null"); + } + } + this.revokeLinkedApp = revokeLinkedApp; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRevokeLinkedApp() { + return revokeLinkedApp; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.revokeLinkedApp + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeLinkedApiAppBatchArg other = (RevokeLinkedApiAppBatchArg) obj; + return (this.revokeLinkedApp == other.revokeLinkedApp) || (this.revokeLinkedApp.equals(other.revokeLinkedApp)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeLinkedApiAppBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("revoke_linked_app"); + StoneSerializers.list(RevokeLinkedApiAppArg.Serializer.INSTANCE).serialize(value.revokeLinkedApp, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeLinkedApiAppBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeLinkedApiAppBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_revokeLinkedApp = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("revoke_linked_app".equals(field)) { + f_revokeLinkedApp = StoneSerializers.list(RevokeLinkedApiAppArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_revokeLinkedApp == null) { + throw new JsonParseException(p, "Required field \"revoke_linked_app\" missing."); + } + value = new RevokeLinkedApiAppBatchArg(f_revokeLinkedApp); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchError.java new file mode 100644 index 000000000..a094f3a8c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchError.java @@ -0,0 +1,77 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned by {@link + * DbxTeamTeamRequests#linkedAppsRevokeLinkedAppBatch(java.util.List)}. + */ +public enum RevokeLinkedAppBatchError { + // union team.RevokeLinkedAppBatchError (team_linked_apps.stone) + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeLinkedAppBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + default: { + g.writeString("other"); + } + } + } + + @Override + public RevokeLinkedAppBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + RevokeLinkedAppBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else { + value = RevokeLinkedAppBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchErrorException.java new file mode 100644 index 000000000..33f58919f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * RevokeLinkedAppBatchError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#linkedAppsRevokeLinkedAppBatch(java.util.List)}.

+ */ +public class RevokeLinkedAppBatchErrorException extends DbxApiException { + // exception for routes: + // 2/team/linked_apps/revoke_linked_app_batch + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#linkedAppsRevokeLinkedAppBatch(java.util.List)}. + */ + public final RevokeLinkedAppBatchError errorValue; + + public RevokeLinkedAppBatchErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeLinkedAppBatchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchResult.java new file mode 100644 index 000000000..33a7856d6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppBatchResult.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class RevokeLinkedAppBatchResult { + // struct team.RevokeLinkedAppBatchResult (team_linked_apps.stone) + + @Nonnull + protected final List revokeLinkedAppStatus; + + /** + * + * @param revokeLinkedAppStatus Must not contain a {@code null} item and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RevokeLinkedAppBatchResult(@Nonnull List revokeLinkedAppStatus) { + if (revokeLinkedAppStatus == null) { + throw new IllegalArgumentException("Required value for 'revokeLinkedAppStatus' is null"); + } + for (RevokeLinkedAppStatus x : revokeLinkedAppStatus) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'revokeLinkedAppStatus' is null"); + } + } + this.revokeLinkedAppStatus = revokeLinkedAppStatus; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRevokeLinkedAppStatus() { + return revokeLinkedAppStatus; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.revokeLinkedAppStatus + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeLinkedAppBatchResult other = (RevokeLinkedAppBatchResult) obj; + return (this.revokeLinkedAppStatus == other.revokeLinkedAppStatus) || (this.revokeLinkedAppStatus.equals(other.revokeLinkedAppStatus)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeLinkedAppBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("revoke_linked_app_status"); + StoneSerializers.list(RevokeLinkedAppStatus.Serializer.INSTANCE).serialize(value.revokeLinkedAppStatus, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeLinkedAppBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeLinkedAppBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_revokeLinkedAppStatus = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("revoke_linked_app_status".equals(field)) { + f_revokeLinkedAppStatus = StoneSerializers.list(RevokeLinkedAppStatus.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_revokeLinkedAppStatus == null) { + throw new JsonParseException(p, "Required field \"revoke_linked_app_status\" missing."); + } + value = new RevokeLinkedAppBatchResult(f_revokeLinkedAppStatus); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppError.java new file mode 100644 index 000000000..15dab00c1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppError.java @@ -0,0 +1,110 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned by {@link + * DbxTeamTeamRequests#linkedAppsRevokeLinkedApp(String,String,boolean)}. + */ +public enum RevokeLinkedAppError { + // union team.RevokeLinkedAppError (team_linked_apps.stone) + /** + * Application not found. + */ + APP_NOT_FOUND, + /** + * Member not found. + */ + MEMBER_NOT_FOUND, + /** + * App folder removal is not supported. + */ + APP_FOLDER_REMOVAL_NOT_SUPPORTED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeLinkedAppError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case APP_NOT_FOUND: { + g.writeString("app_not_found"); + break; + } + case MEMBER_NOT_FOUND: { + g.writeString("member_not_found"); + break; + } + case APP_FOLDER_REMOVAL_NOT_SUPPORTED: { + g.writeString("app_folder_removal_not_supported"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RevokeLinkedAppError deserialize(JsonParser p) throws IOException, JsonParseException { + RevokeLinkedAppError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("app_not_found".equals(tag)) { + value = RevokeLinkedAppError.APP_NOT_FOUND; + } + else if ("member_not_found".equals(tag)) { + value = RevokeLinkedAppError.MEMBER_NOT_FOUND; + } + else if ("app_folder_removal_not_supported".equals(tag)) { + value = RevokeLinkedAppError.APP_FOLDER_REMOVAL_NOT_SUPPORTED; + } + else { + value = RevokeLinkedAppError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppErrorException.java new file mode 100644 index 000000000..dcf5f219e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link RevokeLinkedAppError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#linkedAppsRevokeLinkedApp(String,String,boolean)}.

+ */ +public class RevokeLinkedAppErrorException extends DbxApiException { + // exception for routes: + // 2/team/linked_apps/revoke_linked_app + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#linkedAppsRevokeLinkedApp(String,String,boolean)}. + */ + public final RevokeLinkedAppError errorValue; + + public RevokeLinkedAppErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeLinkedAppError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppStatus.java new file mode 100644 index 000000000..9b3fbe01a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppStatus.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_linked_apps.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class RevokeLinkedAppStatus { + // struct team.RevokeLinkedAppStatus (team_linked_apps.stone) + + protected final boolean success; + @Nullable + protected final RevokeLinkedAppError errorType; + + /** + * + * @param success Result of the revoking request. + * @param errorType The error cause in case of a failure. + */ + public RevokeLinkedAppStatus(boolean success, @Nullable RevokeLinkedAppError errorType) { + this.success = success; + this.errorType = errorType; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param success Result of the revoking request. + */ + public RevokeLinkedAppStatus(boolean success) { + this(success, null); + } + + /** + * Result of the revoking request. + * + * @return value for this field. + */ + public boolean getSuccess() { + return success; + } + + /** + * The error cause in case of a failure. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RevokeLinkedAppError getErrorType() { + return errorType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.success, + this.errorType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RevokeLinkedAppStatus other = (RevokeLinkedAppStatus) obj; + return (this.success == other.success) + && ((this.errorType == other.errorType) || (this.errorType != null && this.errorType.equals(other.errorType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RevokeLinkedAppStatus value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("success"); + StoneSerializers.boolean_().serialize(value.success, g); + if (value.errorType != null) { + g.writeFieldName("error_type"); + StoneSerializers.nullable(RevokeLinkedAppError.Serializer.INSTANCE).serialize(value.errorType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RevokeLinkedAppStatus deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RevokeLinkedAppStatus value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_success = null; + RevokeLinkedAppError f_errorType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("success".equals(field)) { + f_success = StoneSerializers.boolean_().deserialize(p); + } + else if ("error_type".equals(field)) { + f_errorType = StoneSerializers.nullable(RevokeLinkedAppError.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_success == null) { + throw new JsonParseException(p, "Required field \"success\" missing."); + } + value = new RevokeLinkedAppStatus(f_success, f_errorType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaArg.java new file mode 100644 index 000000000..352e65894 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class SetCustomQuotaArg { + // struct team.SetCustomQuotaArg (team_member_space_limits.stone) + + @Nonnull + protected final List usersAndQuotas; + + /** + * + * @param usersAndQuotas List of users and their custom quotas. Must not + * contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SetCustomQuotaArg(@Nonnull List usersAndQuotas) { + if (usersAndQuotas == null) { + throw new IllegalArgumentException("Required value for 'usersAndQuotas' is null"); + } + for (UserCustomQuotaArg x : usersAndQuotas) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'usersAndQuotas' is null"); + } + } + this.usersAndQuotas = usersAndQuotas; + } + + /** + * List of users and their custom quotas. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getUsersAndQuotas() { + return usersAndQuotas; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.usersAndQuotas + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SetCustomQuotaArg other = (SetCustomQuotaArg) obj; + return (this.usersAndQuotas == other.usersAndQuotas) || (this.usersAndQuotas.equals(other.usersAndQuotas)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SetCustomQuotaArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("users_and_quotas"); + StoneSerializers.list(UserCustomQuotaArg.Serializer.INSTANCE).serialize(value.usersAndQuotas, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SetCustomQuotaArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SetCustomQuotaArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_usersAndQuotas = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("users_and_quotas".equals(field)) { + f_usersAndQuotas = StoneSerializers.list(UserCustomQuotaArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_usersAndQuotas == null) { + throw new JsonParseException(p, "Required field \"users_and_quotas\" missing."); + } + value = new SetCustomQuotaArg(f_usersAndQuotas); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaError.java new file mode 100644 index 000000000..fd5b0e8ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaError.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned when setting member custom quota. + */ +public enum SetCustomQuotaError { + // union team.SetCustomQuotaError (team_member_space_limits.stone) + /** + * A maximum of 1000 users can be set for a single call. + */ + TOO_MANY_USERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * Some of the users are on the excluded users list and can't have custom + * quota set. + */ + SOME_USERS_ARE_EXCLUDED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SetCustomQuotaError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TOO_MANY_USERS: { + g.writeString("too_many_users"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SOME_USERS_ARE_EXCLUDED: { + g.writeString("some_users_are_excluded"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public SetCustomQuotaError deserialize(JsonParser p) throws IOException, JsonParseException { + SetCustomQuotaError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("too_many_users".equals(tag)) { + value = SetCustomQuotaError.TOO_MANY_USERS; + } + else if ("other".equals(tag)) { + value = SetCustomQuotaError.OTHER; + } + else if ("some_users_are_excluded".equals(tag)) { + value = SetCustomQuotaError.SOME_USERS_ARE_EXCLUDED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaErrorException.java new file mode 100644 index 000000000..3360e29ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link SetCustomQuotaError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#memberSpaceLimitsSetCustomQuota(java.util.List)}.

+ */ +public class SetCustomQuotaErrorException extends DbxApiException { + // exception for routes: + // 2/team/member_space_limits/set_custom_quota + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#memberSpaceLimitsSetCustomQuota(java.util.List)}. + */ + public final SetCustomQuotaError errorValue; + + public SetCustomQuotaErrorException(String routeName, String requestId, LocalizedText userMessage, SetCustomQuotaError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddArgs.java new file mode 100644 index 000000000..e77f11f25 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddArgs.java @@ -0,0 +1,286 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Structure representing Approve List entries. Domain and emails are supported. + * At least one entry of any supported type is required. + */ +class SharingAllowlistAddArgs { + // struct team.SharingAllowlistAddArgs (team_sharing_allowlist.stone) + + @Nullable + protected final List domains; + @Nullable + protected final List emails; + + /** + * Structure representing Approve List entries. Domain and emails are + * supported. At least one entry of any supported type is required. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} item. + * @param emails List of emails represented by valid string representation + * (RFC-5322/822). Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistAddArgs(@Nullable List domains, @Nullable List emails) { + if (domains != null) { + for (String x : domains) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domains' is null"); + } + } + } + this.domains = domains; + if (emails != null) { + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + } + } + this.emails = emails; + } + + /** + * Structure representing Approve List entries. Domain and emails are + * supported. At least one entry of any supported type is required. + * + *

The default values for unset fields will be used.

+ */ + public SharingAllowlistAddArgs() { + this(null, null); + } + + /** + * List of domains represented by valid string representation (RFC-1034/5). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getDomains() { + return domains; + } + + /** + * List of emails represented by valid string representation (RFC-5322/822). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getEmails() { + return emails; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharingAllowlistAddArgs}. + */ + public static class Builder { + + protected List domains; + protected List emails; + + protected Builder() { + this.domains = null; + this.emails = null; + } + + /** + * Set value for optional field. + * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} + * item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDomains(List domains) { + if (domains != null) { + for (String x : domains) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domains' is null"); + } + } + } + this.domains = domains; + return this; + } + + /** + * Set value for optional field. + * + * @param emails List of emails represented by valid string + * representation (RFC-5322/822). Must not contain a {@code null} + * item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withEmails(List emails) { + if (emails != null) { + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + } + } + this.emails = emails; + return this; + } + + /** + * Builds an instance of {@link SharingAllowlistAddArgs} configured with + * this builder's values + * + * @return new instance of {@link SharingAllowlistAddArgs} + */ + public SharingAllowlistAddArgs build() { + return new SharingAllowlistAddArgs(domains, emails); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domains, + this.emails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistAddArgs other = (SharingAllowlistAddArgs) obj; + return ((this.domains == other.domains) || (this.domains != null && this.domains.equals(other.domains))) + && ((this.emails == other.emails) || (this.emails != null && this.emails.equals(other.emails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistAddArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.domains != null) { + g.writeFieldName("domains"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.domains, g); + } + if (value.emails != null) { + g.writeFieldName("emails"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.emails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistAddArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistAddArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_domains = null; + List f_emails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domains".equals(field)) { + f_domains = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("emails".equals(field)) { + f_emails = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharingAllowlistAddArgs(f_domains, f_emails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddBuilder.java new file mode 100644 index 000000000..97ceda38b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddBuilder.java @@ -0,0 +1,80 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#sharingAllowlistAddBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class SharingAllowlistAddBuilder { + private final DbxTeamTeamRequests _client; + private final SharingAllowlistAddArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + SharingAllowlistAddBuilder(DbxTeamTeamRequests _client, SharingAllowlistAddArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistAddBuilder withDomains(List domains) { + this._builder.withDomains(domains); + return this; + } + + /** + * Set value for optional field. + * + * @param emails List of emails represented by valid string representation + * (RFC-5322/822). Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistAddBuilder withEmails(List emails) { + this._builder.withEmails(emails); + return this; + } + + /** + * Issues the request. + */ + public SharingAllowlistAddResponse start() throws SharingAllowlistAddErrorException, DbxException { + SharingAllowlistAddArgs arg_ = this._builder.build(); + return _client.sharingAllowlistAdd(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddError.java new file mode 100644 index 000000000..87fcf6d0a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddError.java @@ -0,0 +1,484 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SharingAllowlistAddError { + // union team.SharingAllowlistAddError (team_sharing_allowlist.stone) + + /** + * Discriminating tag type for {@link SharingAllowlistAddError}. + */ + public enum Tag { + /** + * One of provided values is not valid. + */ + MALFORMED_ENTRY, // String + /** + * Neither single domain nor email provided. + */ + NO_ENTRIES_PROVIDED, + /** + * Too many entries provided within one call. + */ + TOO_MANY_ENTRIES_PROVIDED, + /** + * Team entries limit reached. + */ + TEAM_LIMIT_REACHED, + /** + * Unknown error. + */ + UNKNOWN_ERROR, + /** + * Entries already exists. + */ + ENTRIES_ALREADY_EXIST, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Neither single domain nor email provided. + */ + public static final SharingAllowlistAddError NO_ENTRIES_PROVIDED = new SharingAllowlistAddError().withTag(Tag.NO_ENTRIES_PROVIDED); + /** + * Too many entries provided within one call. + */ + public static final SharingAllowlistAddError TOO_MANY_ENTRIES_PROVIDED = new SharingAllowlistAddError().withTag(Tag.TOO_MANY_ENTRIES_PROVIDED); + /** + * Team entries limit reached. + */ + public static final SharingAllowlistAddError TEAM_LIMIT_REACHED = new SharingAllowlistAddError().withTag(Tag.TEAM_LIMIT_REACHED); + /** + * Unknown error. + */ + public static final SharingAllowlistAddError UNKNOWN_ERROR = new SharingAllowlistAddError().withTag(Tag.UNKNOWN_ERROR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SharingAllowlistAddError OTHER = new SharingAllowlistAddError().withTag(Tag.OTHER); + + private Tag _tag; + private String malformedEntryValue; + private String entriesAlreadyExistValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SharingAllowlistAddError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SharingAllowlistAddError withTag(Tag _tag) { + SharingAllowlistAddError result = new SharingAllowlistAddError(); + result._tag = _tag; + return result; + } + + /** + * + * @param malformedEntryValue One of provided values is not valid. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SharingAllowlistAddError withTagAndMalformedEntry(Tag _tag, String malformedEntryValue) { + SharingAllowlistAddError result = new SharingAllowlistAddError(); + result._tag = _tag; + result.malformedEntryValue = malformedEntryValue; + return result; + } + + /** + * + * @param entriesAlreadyExistValue Entries already exists. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SharingAllowlistAddError withTagAndEntriesAlreadyExist(Tag _tag, String entriesAlreadyExistValue) { + SharingAllowlistAddError result = new SharingAllowlistAddError(); + result._tag = _tag; + result.entriesAlreadyExistValue = entriesAlreadyExistValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SharingAllowlistAddError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MALFORMED_ENTRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MALFORMED_ENTRY}, {@code false} otherwise. + */ + public boolean isMalformedEntry() { + return this._tag == Tag.MALFORMED_ENTRY; + } + + /** + * Returns an instance of {@code SharingAllowlistAddError} that has its tag + * set to {@link Tag#MALFORMED_ENTRY}. + * + *

One of provided values is not valid.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SharingAllowlistAddError} with its tag set to + * {@link Tag#MALFORMED_ENTRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SharingAllowlistAddError malformedEntry(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SharingAllowlistAddError().withTagAndMalformedEntry(Tag.MALFORMED_ENTRY, value); + } + + /** + * One of provided values is not valid. + * + *

This instance must be tagged as {@link Tag#MALFORMED_ENTRY}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isMalformedEntry} is {@code true}. + * + * @throws IllegalStateException If {@link #isMalformedEntry} is {@code + * false}. + */ + public String getMalformedEntryValue() { + if (this._tag != Tag.MALFORMED_ENTRY) { + throw new IllegalStateException("Invalid tag: required Tag.MALFORMED_ENTRY, but was Tag." + this._tag.name()); + } + return malformedEntryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_ENTRIES_PROVIDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_ENTRIES_PROVIDED}, {@code false} otherwise. + */ + public boolean isNoEntriesProvided() { + return this._tag == Tag.NO_ENTRIES_PROVIDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_ENTRIES_PROVIDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_ENTRIES_PROVIDED}, {@code false} otherwise. + */ + public boolean isTooManyEntriesProvided() { + return this._tag == Tag.TOO_MANY_ENTRIES_PROVIDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_LIMIT_REACHED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_LIMIT_REACHED}, {@code false} otherwise. + */ + public boolean isTeamLimitReached() { + return this._tag == Tag.TEAM_LIMIT_REACHED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNKNOWN_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNKNOWN_ERROR}, {@code false} otherwise. + */ + public boolean isUnknownError() { + return this._tag == Tag.UNKNOWN_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENTRIES_ALREADY_EXIST}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENTRIES_ALREADY_EXIST}, {@code false} otherwise. + */ + public boolean isEntriesAlreadyExist() { + return this._tag == Tag.ENTRIES_ALREADY_EXIST; + } + + /** + * Returns an instance of {@code SharingAllowlistAddError} that has its tag + * set to {@link Tag#ENTRIES_ALREADY_EXIST}. + * + *

Entries already exists.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SharingAllowlistAddError} with its tag set to + * {@link Tag#ENTRIES_ALREADY_EXIST}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SharingAllowlistAddError entriesAlreadyExist(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SharingAllowlistAddError().withTagAndEntriesAlreadyExist(Tag.ENTRIES_ALREADY_EXIST, value); + } + + /** + * Entries already exists. + * + *

This instance must be tagged as {@link Tag#ENTRIES_ALREADY_EXIST}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isEntriesAlreadyExist} is {@code true}. + * + * @throws IllegalStateException If {@link #isEntriesAlreadyExist} is + * {@code false}. + */ + public String getEntriesAlreadyExistValue() { + if (this._tag != Tag.ENTRIES_ALREADY_EXIST) { + throw new IllegalStateException("Invalid tag: required Tag.ENTRIES_ALREADY_EXIST, but was Tag." + this._tag.name()); + } + return entriesAlreadyExistValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.malformedEntryValue, + this.entriesAlreadyExistValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SharingAllowlistAddError) { + SharingAllowlistAddError other = (SharingAllowlistAddError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case MALFORMED_ENTRY: + return (this.malformedEntryValue == other.malformedEntryValue) || (this.malformedEntryValue.equals(other.malformedEntryValue)); + case NO_ENTRIES_PROVIDED: + return true; + case TOO_MANY_ENTRIES_PROVIDED: + return true; + case TEAM_LIMIT_REACHED: + return true; + case UNKNOWN_ERROR: + return true; + case ENTRIES_ALREADY_EXIST: + return (this.entriesAlreadyExistValue == other.entriesAlreadyExistValue) || (this.entriesAlreadyExistValue.equals(other.entriesAlreadyExistValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistAddError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case MALFORMED_ENTRY: { + g.writeStartObject(); + writeTag("malformed_entry", g); + g.writeFieldName("malformed_entry"); + StoneSerializers.string().serialize(value.malformedEntryValue, g); + g.writeEndObject(); + break; + } + case NO_ENTRIES_PROVIDED: { + g.writeString("no_entries_provided"); + break; + } + case TOO_MANY_ENTRIES_PROVIDED: { + g.writeString("too_many_entries_provided"); + break; + } + case TEAM_LIMIT_REACHED: { + g.writeString("team_limit_reached"); + break; + } + case UNKNOWN_ERROR: { + g.writeString("unknown_error"); + break; + } + case ENTRIES_ALREADY_EXIST: { + g.writeStartObject(); + writeTag("entries_already_exist", g); + g.writeFieldName("entries_already_exist"); + StoneSerializers.string().serialize(value.entriesAlreadyExistValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingAllowlistAddError deserialize(JsonParser p) throws IOException, JsonParseException { + SharingAllowlistAddError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("malformed_entry".equals(tag)) { + String fieldValue = null; + expectField("malformed_entry", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = SharingAllowlistAddError.malformedEntry(fieldValue); + } + else if ("no_entries_provided".equals(tag)) { + value = SharingAllowlistAddError.NO_ENTRIES_PROVIDED; + } + else if ("too_many_entries_provided".equals(tag)) { + value = SharingAllowlistAddError.TOO_MANY_ENTRIES_PROVIDED; + } + else if ("team_limit_reached".equals(tag)) { + value = SharingAllowlistAddError.TEAM_LIMIT_REACHED; + } + else if ("unknown_error".equals(tag)) { + value = SharingAllowlistAddError.UNKNOWN_ERROR; + } + else if ("entries_already_exist".equals(tag)) { + String fieldValue = null; + expectField("entries_already_exist", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = SharingAllowlistAddError.entriesAlreadyExist(fieldValue); + } + else { + value = SharingAllowlistAddError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddErrorException.java new file mode 100644 index 000000000..242ec5cc0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * SharingAllowlistAddError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#sharingAllowlistAdd}.

+ */ +public class SharingAllowlistAddErrorException extends DbxApiException { + // exception for routes: + // 2/team/sharing_allowlist/add + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#sharingAllowlistAdd}. + */ + public final SharingAllowlistAddError errorValue; + + public SharingAllowlistAddErrorException(String routeName, String requestId, LocalizedText userMessage, SharingAllowlistAddError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddResponse.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddResponse.java new file mode 100644 index 000000000..3bd980c7b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddResponse.java @@ -0,0 +1,111 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * This struct is empty. The comment here is intentionally emitted to avoid + * indentation issues with Stone. + */ +public class SharingAllowlistAddResponse { + // struct team.SharingAllowlistAddResponse (team_sharing_allowlist.stone) + + + /** + * This struct is empty. The comment here is intentionally emitted to avoid + * indentation issues with Stone. + */ + public SharingAllowlistAddResponse() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistAddResponse other = (SharingAllowlistAddResponse) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistAddResponse value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistAddResponse deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistAddResponse value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharingAllowlistAddResponse(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListArg.java new file mode 100644 index 000000000..b2b83e16f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class SharingAllowlistListArg { + // struct team.SharingAllowlistListArg (team_sharing_allowlist.stone) + + protected final long limit; + + /** + * + * @param limit The number of entries to fetch at one time. Must be greater + * than or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistListArg(long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public SharingAllowlistListArg() { + this(1000L); + } + + /** + * The number of entries to fetch at one time. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistListArg other = (SharingAllowlistListArg) obj; + return this.limit == other.limit; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharingAllowlistListArg(f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueArg.java new file mode 100644 index 000000000..9ded0375b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class SharingAllowlistListContinueArg { + // struct team.SharingAllowlistListContinueArg (team_sharing_allowlist.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor The cursor returned from a previous call to {@link + * DbxTeamTeamRequests#sharingAllowlistList(long)} or {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistListContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * The cursor returned from a previous call to {@link + * DbxTeamTeamRequests#sharingAllowlistList(long)} or {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistListContinueArg other = (SharingAllowlistListContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistListContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistListContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistListContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new SharingAllowlistListContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueError.java new file mode 100644 index 000000000..59edbb786 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SharingAllowlistListContinueError { + // union team.SharingAllowlistListContinueError (team_sharing_allowlist.stone) + /** + * Provided cursor is not valid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistListContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingAllowlistListContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + SharingAllowlistListContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_cursor".equals(tag)) { + value = SharingAllowlistListContinueError.INVALID_CURSOR; + } + else { + value = SharingAllowlistListContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueErrorException.java new file mode 100644 index 000000000..53b1fc1cf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * SharingAllowlistListContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}.

+ */ +public class SharingAllowlistListContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team/sharing_allowlist/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + */ + public final SharingAllowlistListContinueError errorValue; + + public SharingAllowlistListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, SharingAllowlistListContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListError.java new file mode 100644 index 000000000..87e3814ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListError.java @@ -0,0 +1,111 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * This struct is empty. The comment here is intentionally emitted to avoid + * indentation issues with Stone. + */ +public class SharingAllowlistListError { + // struct team.SharingAllowlistListError (team_sharing_allowlist.stone) + + + /** + * This struct is empty. The comment here is intentionally emitted to avoid + * indentation issues with Stone. + */ + public SharingAllowlistListError() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistListError other = (SharingAllowlistListError) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistListError value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistListError deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistListError value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharingAllowlistListError(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListErrorException.java new file mode 100644 index 000000000..0c67ef776 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * SharingAllowlistListError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#sharingAllowlistList(long)}.

+ */ +public class SharingAllowlistListErrorException extends DbxApiException { + // exception for routes: + // 2/team/sharing_allowlist/list + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#sharingAllowlistList(long)}. + */ + public final SharingAllowlistListError errorValue; + + public SharingAllowlistListErrorException(String routeName, String requestId, LocalizedText userMessage, SharingAllowlistListError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListResponse.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListResponse.java new file mode 100644 index 000000000..6786ea2cf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListResponse.java @@ -0,0 +1,378 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class SharingAllowlistListResponse { + // struct team.SharingAllowlistListResponse (team_sharing_allowlist.stone) + + @Nonnull + protected final List domains; + @Nonnull + protected final List emails; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} item and + * not be {@code null}. + * @param emails List of emails represented by valid string representation + * (RFC-5322/822). Must not contain a {@code null} item and not be + * {@code null}. + * @param cursor If this is nonempty, there are more entries that can be + * fetched with {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. Must not + * be {@code null}. + * @param hasMore if true indicates that more entries can be fetched with + * {@link DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistListResponse(@Nonnull List domains, @Nonnull List emails, @Nonnull String cursor, boolean hasMore) { + if (domains == null) { + throw new IllegalArgumentException("Required value for 'domains' is null"); + } + for (String x : domains) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domains' is null"); + } + } + this.domains = domains; + if (emails == null) { + throw new IllegalArgumentException("Required value for 'emails' is null"); + } + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + } + this.emails = emails; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} item and + * not be {@code null}. + * @param emails List of emails represented by valid string representation + * (RFC-5322/822). Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistListResponse(@Nonnull List domains, @Nonnull List emails) { + this(domains, emails, "", false); + } + + /** + * List of domains represented by valid string representation (RFC-1034/5). + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getDomains() { + return domains; + } + + /** + * List of emails represented by valid string representation (RFC-5322/822). + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEmails() { + return emails; + } + + /** + * If this is nonempty, there are more entries that can be fetched with + * {@link DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * + * @return value for this field, or {@code null} if not present. Defaults to + * "". + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * if true indicates that more entries can be fetched with {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getHasMore() { + return hasMore; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} item and + * not be {@code null}. + * @param emails List of emails represented by valid string representation + * (RFC-5322/822). Must not contain a {@code null} item and not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List domains, List emails) { + return new Builder(domains, emails); + } + + /** + * Builder for {@link SharingAllowlistListResponse}. + */ + public static class Builder { + protected final List domains; + protected final List emails; + + protected String cursor; + protected boolean hasMore; + + protected Builder(List domains, List emails) { + if (domains == null) { + throw new IllegalArgumentException("Required value for 'domains' is null"); + } + for (String x : domains) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domains' is null"); + } + } + this.domains = domains; + if (emails == null) { + throw new IllegalArgumentException("Required value for 'emails' is null"); + } + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + } + this.emails = emails; + this.cursor = ""; + this.hasMore = false; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code ""}. + *

+ * + * @param cursor If this is nonempty, there are more entries that can + * be fetched with {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. Must + * not be {@code null}. Defaults to {@code ""} when set to {@code + * null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withCursor(String cursor) { + if (cursor != null) { + this.cursor = cursor; + } + else { + this.cursor = ""; + } + return this; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code false}. + *

+ * + * @param hasMore if true indicates that more entries can be fetched + * with {@link + * DbxTeamTeamRequests#sharingAllowlistListContinue(String)}. + * Defaults to {@code false} when set to {@code null}. + * + * @return this builder + */ + public Builder withHasMore(Boolean hasMore) { + if (hasMore != null) { + this.hasMore = hasMore; + } + else { + this.hasMore = false; + } + return this; + } + + /** + * Builds an instance of {@link SharingAllowlistListResponse} configured + * with this builder's values + * + * @return new instance of {@link SharingAllowlistListResponse} + */ + public SharingAllowlistListResponse build() { + return new SharingAllowlistListResponse(domains, emails, cursor, hasMore); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domains, + this.emails, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistListResponse other = (SharingAllowlistListResponse) obj; + return ((this.domains == other.domains) || (this.domains.equals(other.domains))) + && ((this.emails == other.emails) || (this.emails.equals(other.emails))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistListResponse value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domains"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.domains, g); + g.writeFieldName("emails"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.emails, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistListResponse deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistListResponse value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_domains = null; + List f_emails = null; + String f_cursor = ""; + Boolean f_hasMore = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domains".equals(field)) { + f_domains = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("emails".equals(field)) { + f_emails = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domains == null) { + throw new JsonParseException(p, "Required field \"domains\" missing."); + } + if (f_emails == null) { + throw new JsonParseException(p, "Required field \"emails\" missing."); + } + value = new SharingAllowlistListResponse(f_domains, f_emails, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveArgs.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveArgs.java new file mode 100644 index 000000000..6f38208b3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveArgs.java @@ -0,0 +1,278 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class SharingAllowlistRemoveArgs { + // struct team.SharingAllowlistRemoveArgs (team_sharing_allowlist.stone) + + @Nullable + protected final List domains; + @Nullable + protected final List emails; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} item. + * @param emails List of emails represented by valid string representation + * (RFC-5322/822). Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistRemoveArgs(@Nullable List domains, @Nullable List emails) { + if (domains != null) { + for (String x : domains) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domains' is null"); + } + } + } + this.domains = domains; + if (emails != null) { + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + } + } + this.emails = emails; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public SharingAllowlistRemoveArgs() { + this(null, null); + } + + /** + * List of domains represented by valid string representation (RFC-1034/5). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getDomains() { + return domains; + } + + /** + * List of emails represented by valid string representation (RFC-5322/822). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getEmails() { + return emails; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharingAllowlistRemoveArgs}. + */ + public static class Builder { + + protected List domains; + protected List emails; + + protected Builder() { + this.domains = null; + this.emails = null; + } + + /** + * Set value for optional field. + * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} + * item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withDomains(List domains) { + if (domains != null) { + for (String x : domains) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domains' is null"); + } + } + } + this.domains = domains; + return this; + } + + /** + * Set value for optional field. + * + * @param emails List of emails represented by valid string + * representation (RFC-5322/822). Must not contain a {@code null} + * item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withEmails(List emails) { + if (emails != null) { + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + } + } + this.emails = emails; + return this; + } + + /** + * Builds an instance of {@link SharingAllowlistRemoveArgs} configured + * with this builder's values + * + * @return new instance of {@link SharingAllowlistRemoveArgs} + */ + public SharingAllowlistRemoveArgs build() { + return new SharingAllowlistRemoveArgs(domains, emails); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domains, + this.emails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistRemoveArgs other = (SharingAllowlistRemoveArgs) obj; + return ((this.domains == other.domains) || (this.domains != null && this.domains.equals(other.domains))) + && ((this.emails == other.emails) || (this.emails != null && this.emails.equals(other.emails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistRemoveArgs value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.domains != null) { + g.writeFieldName("domains"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.domains, g); + } + if (value.emails != null) { + g.writeFieldName("emails"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.emails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistRemoveArgs deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistRemoveArgs value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_domains = null; + List f_emails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domains".equals(field)) { + f_domains = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("emails".equals(field)) { + f_emails = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharingAllowlistRemoveArgs(f_domains, f_emails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveBuilder.java new file mode 100644 index 000000000..5bef8005a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveBuilder.java @@ -0,0 +1,80 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#sharingAllowlistRemoveBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class SharingAllowlistRemoveBuilder { + private final DbxTeamTeamRequests _client; + private final SharingAllowlistRemoveArgs.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + SharingAllowlistRemoveBuilder(DbxTeamTeamRequests _client, SharingAllowlistRemoveArgs.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param domains List of domains represented by valid string + * representation (RFC-1034/5). Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistRemoveBuilder withDomains(List domains) { + this._builder.withDomains(domains); + return this; + } + + /** + * Set value for optional field. + * + * @param emails List of emails represented by valid string representation + * (RFC-5322/822). Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingAllowlistRemoveBuilder withEmails(List emails) { + this._builder.withEmails(emails); + return this; + } + + /** + * Issues the request. + */ + public SharingAllowlistRemoveResponse start() throws SharingAllowlistRemoveErrorException, DbxException { + SharingAllowlistRemoveArgs arg_ = this._builder.build(); + return _client.sharingAllowlistRemove(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveError.java new file mode 100644 index 000000000..c92f0871e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveError.java @@ -0,0 +1,456 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SharingAllowlistRemoveError { + // union team.SharingAllowlistRemoveError (team_sharing_allowlist.stone) + + /** + * Discriminating tag type for {@link SharingAllowlistRemoveError}. + */ + public enum Tag { + /** + * One of provided values is not valid. + */ + MALFORMED_ENTRY, // String + /** + * One or more provided values do not exist. + */ + ENTRIES_DO_NOT_EXIST, // String + /** + * Neither single domain nor email provided. + */ + NO_ENTRIES_PROVIDED, + /** + * Too many entries provided within one call. + */ + TOO_MANY_ENTRIES_PROVIDED, + /** + * Unknown error. + */ + UNKNOWN_ERROR, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Neither single domain nor email provided. + */ + public static final SharingAllowlistRemoveError NO_ENTRIES_PROVIDED = new SharingAllowlistRemoveError().withTag(Tag.NO_ENTRIES_PROVIDED); + /** + * Too many entries provided within one call. + */ + public static final SharingAllowlistRemoveError TOO_MANY_ENTRIES_PROVIDED = new SharingAllowlistRemoveError().withTag(Tag.TOO_MANY_ENTRIES_PROVIDED); + /** + * Unknown error. + */ + public static final SharingAllowlistRemoveError UNKNOWN_ERROR = new SharingAllowlistRemoveError().withTag(Tag.UNKNOWN_ERROR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SharingAllowlistRemoveError OTHER = new SharingAllowlistRemoveError().withTag(Tag.OTHER); + + private Tag _tag; + private String malformedEntryValue; + private String entriesDoNotExistValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SharingAllowlistRemoveError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private SharingAllowlistRemoveError withTag(Tag _tag) { + SharingAllowlistRemoveError result = new SharingAllowlistRemoveError(); + result._tag = _tag; + return result; + } + + /** + * + * @param malformedEntryValue One of provided values is not valid. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SharingAllowlistRemoveError withTagAndMalformedEntry(Tag _tag, String malformedEntryValue) { + SharingAllowlistRemoveError result = new SharingAllowlistRemoveError(); + result._tag = _tag; + result.malformedEntryValue = malformedEntryValue; + return result; + } + + /** + * + * @param entriesDoNotExistValue One or more provided values do not exist. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SharingAllowlistRemoveError withTagAndEntriesDoNotExist(Tag _tag, String entriesDoNotExistValue) { + SharingAllowlistRemoveError result = new SharingAllowlistRemoveError(); + result._tag = _tag; + result.entriesDoNotExistValue = entriesDoNotExistValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SharingAllowlistRemoveError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MALFORMED_ENTRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MALFORMED_ENTRY}, {@code false} otherwise. + */ + public boolean isMalformedEntry() { + return this._tag == Tag.MALFORMED_ENTRY; + } + + /** + * Returns an instance of {@code SharingAllowlistRemoveError} that has its + * tag set to {@link Tag#MALFORMED_ENTRY}. + * + *

One of provided values is not valid.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SharingAllowlistRemoveError} with its tag set + * to {@link Tag#MALFORMED_ENTRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SharingAllowlistRemoveError malformedEntry(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SharingAllowlistRemoveError().withTagAndMalformedEntry(Tag.MALFORMED_ENTRY, value); + } + + /** + * One of provided values is not valid. + * + *

This instance must be tagged as {@link Tag#MALFORMED_ENTRY}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isMalformedEntry} is {@code true}. + * + * @throws IllegalStateException If {@link #isMalformedEntry} is {@code + * false}. + */ + public String getMalformedEntryValue() { + if (this._tag != Tag.MALFORMED_ENTRY) { + throw new IllegalStateException("Invalid tag: required Tag.MALFORMED_ENTRY, but was Tag." + this._tag.name()); + } + return malformedEntryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENTRIES_DO_NOT_EXIST}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENTRIES_DO_NOT_EXIST}, {@code false} otherwise. + */ + public boolean isEntriesDoNotExist() { + return this._tag == Tag.ENTRIES_DO_NOT_EXIST; + } + + /** + * Returns an instance of {@code SharingAllowlistRemoveError} that has its + * tag set to {@link Tag#ENTRIES_DO_NOT_EXIST}. + * + *

One or more provided values do not exist.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SharingAllowlistRemoveError} with its tag set + * to {@link Tag#ENTRIES_DO_NOT_EXIST}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SharingAllowlistRemoveError entriesDoNotExist(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SharingAllowlistRemoveError().withTagAndEntriesDoNotExist(Tag.ENTRIES_DO_NOT_EXIST, value); + } + + /** + * One or more provided values do not exist. + * + *

This instance must be tagged as {@link Tag#ENTRIES_DO_NOT_EXIST}. + *

+ * + * @return The {@link String} value associated with this instance if {@link + * #isEntriesDoNotExist} is {@code true}. + * + * @throws IllegalStateException If {@link #isEntriesDoNotExist} is {@code + * false}. + */ + public String getEntriesDoNotExistValue() { + if (this._tag != Tag.ENTRIES_DO_NOT_EXIST) { + throw new IllegalStateException("Invalid tag: required Tag.ENTRIES_DO_NOT_EXIST, but was Tag." + this._tag.name()); + } + return entriesDoNotExistValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_ENTRIES_PROVIDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_ENTRIES_PROVIDED}, {@code false} otherwise. + */ + public boolean isNoEntriesProvided() { + return this._tag == Tag.NO_ENTRIES_PROVIDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TOO_MANY_ENTRIES_PROVIDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_MANY_ENTRIES_PROVIDED}, {@code false} otherwise. + */ + public boolean isTooManyEntriesProvided() { + return this._tag == Tag.TOO_MANY_ENTRIES_PROVIDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNKNOWN_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNKNOWN_ERROR}, {@code false} otherwise. + */ + public boolean isUnknownError() { + return this._tag == Tag.UNKNOWN_ERROR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.malformedEntryValue, + this.entriesDoNotExistValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SharingAllowlistRemoveError) { + SharingAllowlistRemoveError other = (SharingAllowlistRemoveError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case MALFORMED_ENTRY: + return (this.malformedEntryValue == other.malformedEntryValue) || (this.malformedEntryValue.equals(other.malformedEntryValue)); + case ENTRIES_DO_NOT_EXIST: + return (this.entriesDoNotExistValue == other.entriesDoNotExistValue) || (this.entriesDoNotExistValue.equals(other.entriesDoNotExistValue)); + case NO_ENTRIES_PROVIDED: + return true; + case TOO_MANY_ENTRIES_PROVIDED: + return true; + case UNKNOWN_ERROR: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistRemoveError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case MALFORMED_ENTRY: { + g.writeStartObject(); + writeTag("malformed_entry", g); + g.writeFieldName("malformed_entry"); + StoneSerializers.string().serialize(value.malformedEntryValue, g); + g.writeEndObject(); + break; + } + case ENTRIES_DO_NOT_EXIST: { + g.writeStartObject(); + writeTag("entries_do_not_exist", g); + g.writeFieldName("entries_do_not_exist"); + StoneSerializers.string().serialize(value.entriesDoNotExistValue, g); + g.writeEndObject(); + break; + } + case NO_ENTRIES_PROVIDED: { + g.writeString("no_entries_provided"); + break; + } + case TOO_MANY_ENTRIES_PROVIDED: { + g.writeString("too_many_entries_provided"); + break; + } + case UNKNOWN_ERROR: { + g.writeString("unknown_error"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingAllowlistRemoveError deserialize(JsonParser p) throws IOException, JsonParseException { + SharingAllowlistRemoveError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("malformed_entry".equals(tag)) { + String fieldValue = null; + expectField("malformed_entry", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = SharingAllowlistRemoveError.malformedEntry(fieldValue); + } + else if ("entries_do_not_exist".equals(tag)) { + String fieldValue = null; + expectField("entries_do_not_exist", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = SharingAllowlistRemoveError.entriesDoNotExist(fieldValue); + } + else if ("no_entries_provided".equals(tag)) { + value = SharingAllowlistRemoveError.NO_ENTRIES_PROVIDED; + } + else if ("too_many_entries_provided".equals(tag)) { + value = SharingAllowlistRemoveError.TOO_MANY_ENTRIES_PROVIDED; + } + else if ("unknown_error".equals(tag)) { + value = SharingAllowlistRemoveError.UNKNOWN_ERROR; + } + else { + value = SharingAllowlistRemoveError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveErrorException.java new file mode 100644 index 000000000..babcbcbae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * SharingAllowlistRemoveError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#sharingAllowlistRemove}.

+ */ +public class SharingAllowlistRemoveErrorException extends DbxApiException { + // exception for routes: + // 2/team/sharing_allowlist/remove + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#sharingAllowlistRemove}. + */ + public final SharingAllowlistRemoveError errorValue; + + public SharingAllowlistRemoveErrorException(String routeName, String requestId, LocalizedText userMessage, SharingAllowlistRemoveError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveResponse.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveResponse.java new file mode 100644 index 000000000..9060723f4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveResponse.java @@ -0,0 +1,111 @@ +/* DO NOT EDIT */ +/* This file was generated from team_sharing_allowlist.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * This struct is empty. The comment here is intentionally emitted to avoid + * indentation issues with Stone. + */ +public class SharingAllowlistRemoveResponse { + // struct team.SharingAllowlistRemoveResponse (team_sharing_allowlist.stone) + + + /** + * This struct is empty. The comment here is intentionally emitted to avoid + * indentation issues with Stone. + */ + public SharingAllowlistRemoveResponse() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingAllowlistRemoveResponse other = (SharingAllowlistRemoveResponse) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingAllowlistRemoveResponse value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingAllowlistRemoveResponse deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingAllowlistRemoveResponse value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharingAllowlistRemoveResponse(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/StorageBucket.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/StorageBucket.java new file mode 100644 index 000000000..0b13171ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/StorageBucket.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Describes the number of users in a specific storage bucket. + */ +public class StorageBucket { + // struct team.StorageBucket (team_reports.stone) + + @Nonnull + protected final String bucket; + protected final long users; + + /** + * Describes the number of users in a specific storage bucket. + * + * @param bucket The name of the storage bucket. For example, '1G' is a + * bucket of users with storage size up to 1 Giga. Must not be {@code + * null}. + * @param users The number of people whose storage is in the range of this + * storage bucket. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public StorageBucket(@Nonnull String bucket, long users) { + if (bucket == null) { + throw new IllegalArgumentException("Required value for 'bucket' is null"); + } + this.bucket = bucket; + this.users = users; + } + + /** + * The name of the storage bucket. For example, '1G' is a bucket of users + * with storage size up to 1 Giga. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBucket() { + return bucket; + } + + /** + * The number of people whose storage is in the range of this storage + * bucket. + * + * @return value for this field. + */ + public long getUsers() { + return users; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.bucket, + this.users + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + StorageBucket other = (StorageBucket) obj; + return ((this.bucket == other.bucket) || (this.bucket.equals(other.bucket))) + && (this.users == other.users) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(StorageBucket value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("bucket"); + StoneSerializers.string().serialize(value.bucket, g); + g.writeFieldName("users"); + StoneSerializers.uInt64().serialize(value.users, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public StorageBucket deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + StorageBucket value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_bucket = null; + Long f_users = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("bucket".equals(field)) { + f_bucket = StoneSerializers.string().deserialize(p); + } + else if ("users".equals(field)) { + f_users = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_bucket == null) { + throw new JsonParseException(p, "Required field \"bucket\" missing."); + } + if (f_users == null) { + throw new JsonParseException(p, "Required field \"users\" missing."); + } + value = new StorageBucket(f_bucket, f_users); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderAccessError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderAccessError.java new file mode 100644 index 000000000..8882ba9a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderAccessError.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamFolderAccessError { + // union team.TeamFolderAccessError (team_folders.stone) + /** + * The team folder ID is invalid. + */ + INVALID_TEAM_FOLDER_ID, + /** + * The authenticated app does not have permission to manage that team + * folder. + */ + NO_ACCESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderAccessError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_TEAM_FOLDER_ID: { + g.writeString("invalid_team_folder_id"); + break; + } + case NO_ACCESS: { + g.writeString("no_access"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamFolderAccessError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderAccessError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_team_folder_id".equals(tag)) { + value = TeamFolderAccessError.INVALID_TEAM_FOLDER_ID; + } + else if ("no_access".equals(tag)) { + value = TeamFolderAccessError.NO_ACCESS; + } + else { + value = TeamFolderAccessError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderActivateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderActivateError.java new file mode 100644 index 000000000..e56d27686 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderActivateError.java @@ -0,0 +1,442 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderActivateError { + // union team.TeamFolderActivateError (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderActivateError}. + */ + public enum Tag { + ACCESS_ERROR, // TeamFolderAccessError + STATUS_ERROR, // TeamFolderInvalidStatusError + TEAM_SHARED_DROPBOX_ERROR, // TeamFolderTeamSharedDropboxError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamFolderActivateError OTHER = new TeamFolderActivateError().withTag(Tag.OTHER); + + private Tag _tag; + private TeamFolderAccessError accessErrorValue; + private TeamFolderInvalidStatusError statusErrorValue; + private TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderActivateError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderActivateError withTag(Tag _tag) { + TeamFolderActivateError result = new TeamFolderActivateError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderActivateError withTagAndAccessError(Tag _tag, TeamFolderAccessError accessErrorValue) { + TeamFolderActivateError result = new TeamFolderActivateError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param statusErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderActivateError withTagAndStatusError(Tag _tag, TeamFolderInvalidStatusError statusErrorValue) { + TeamFolderActivateError result = new TeamFolderActivateError(); + result._tag = _tag; + result.statusErrorValue = statusErrorValue; + return result; + } + + /** + * + * @param teamSharedDropboxErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderActivateError withTagAndTeamSharedDropboxError(Tag _tag, TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue) { + TeamFolderActivateError result = new TeamFolderActivateError(); + result._tag = _tag; + result.teamSharedDropboxErrorValue = teamSharedDropboxErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderActivateError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderActivateError} that has its tag + * set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderActivateError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderActivateError accessError(TeamFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderActivateError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link TeamFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public TeamFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + */ + public boolean isStatusError() { + return this._tag == Tag.STATUS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderActivateError} that has its tag + * set to {@link Tag#STATUS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderActivateError} with its tag set to + * {@link Tag#STATUS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderActivateError statusError(TeamFolderInvalidStatusError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderActivateError().withTagAndStatusError(Tag.STATUS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#STATUS_ERROR}. + * + * @return The {@link TeamFolderInvalidStatusError} value associated with + * this instance if {@link #isStatusError} is {@code true}. + * + * @throws IllegalStateException If {@link #isStatusError} is {@code + * false}. + */ + public TeamFolderInvalidStatusError getStatusErrorValue() { + if (this._tag != Tag.STATUS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.STATUS_ERROR, but was Tag." + this._tag.name()); + } + return statusErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + */ + public boolean isTeamSharedDropboxError() { + return this._tag == Tag.TEAM_SHARED_DROPBOX_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderActivateError} that has its tag + * set to {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderActivateError} with its tag set to + * {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderActivateError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderActivateError().withTagAndTeamSharedDropboxError(Tag.TEAM_SHARED_DROPBOX_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @return The {@link TeamFolderTeamSharedDropboxError} value associated + * with this instance if {@link #isTeamSharedDropboxError} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamSharedDropboxError} is + * {@code false}. + */ + public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue() { + if (this._tag != Tag.TEAM_SHARED_DROPBOX_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SHARED_DROPBOX_ERROR, but was Tag." + this._tag.name()); + } + return teamSharedDropboxErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.statusErrorValue, + this.teamSharedDropboxErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderActivateError) { + TeamFolderActivateError other = (TeamFolderActivateError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case STATUS_ERROR: + return (this.statusErrorValue == other.statusErrorValue) || (this.statusErrorValue.equals(other.statusErrorValue)); + case TEAM_SHARED_DROPBOX_ERROR: + return (this.teamSharedDropboxErrorValue == other.teamSharedDropboxErrorValue) || (this.teamSharedDropboxErrorValue.equals(other.teamSharedDropboxErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderActivateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + TeamFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case STATUS_ERROR: { + g.writeStartObject(); + writeTag("status_error", g); + g.writeFieldName("status_error"); + TeamFolderInvalidStatusError.Serializer.INSTANCE.serialize(value.statusErrorValue, g); + g.writeEndObject(); + break; + } + case TEAM_SHARED_DROPBOX_ERROR: { + g.writeStartObject(); + writeTag("team_shared_dropbox_error", g); + g.writeFieldName("team_shared_dropbox_error"); + TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.serialize(value.teamSharedDropboxErrorValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderActivateError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderActivateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + TeamFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = TeamFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderActivateError.accessError(fieldValue); + } + else if ("status_error".equals(tag)) { + TeamFolderInvalidStatusError fieldValue = null; + expectField("status_error", p); + fieldValue = TeamFolderInvalidStatusError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderActivateError.statusError(fieldValue); + } + else if ("team_shared_dropbox_error".equals(tag)) { + TeamFolderTeamSharedDropboxError fieldValue = null; + expectField("team_shared_dropbox_error", p); + fieldValue = TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderActivateError.teamSharedDropboxError(fieldValue); + } + else if ("other".equals(tag)) { + value = TeamFolderActivateError.OTHER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderActivateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderActivateErrorException.java new file mode 100644 index 000000000..2583fe85b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderActivateErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamFolderActivateError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderActivate(String)}.

+ */ +public class TeamFolderActivateErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/activate + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#teamFolderActivate(String)}. + */ + public final TeamFolderActivateError errorValue; + + public TeamFolderActivateErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderActivateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveArg.java new file mode 100644 index 000000000..16acb7d67 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveArg.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class TeamFolderArchiveArg extends TeamFolderIdArg { + // struct team.TeamFolderArchiveArg (team_folders.stone) + + protected final boolean forceAsyncOff; + + /** + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param forceAsyncOff Whether to force the archive to happen + * synchronously. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderArchiveArg(@Nonnull String teamFolderId, boolean forceAsyncOff) { + super(teamFolderId); + this.forceAsyncOff = forceAsyncOff; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderArchiveArg(@Nonnull String teamFolderId) { + this(teamFolderId, false); + } + + /** + * The ID of the team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamFolderId() { + return teamFolderId; + } + + /** + * Whether to force the archive to happen synchronously. + * + * @return value for this field, or {@code null} if not present. Defaults to + * false. + */ + public boolean getForceAsyncOff() { + return forceAsyncOff; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.forceAsyncOff + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderArchiveArg other = (TeamFolderArchiveArg) obj; + return ((this.teamFolderId == other.teamFolderId) || (this.teamFolderId.equals(other.teamFolderId))) + && (this.forceAsyncOff == other.forceAsyncOff) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderArchiveArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_folder_id"); + StoneSerializers.string().serialize(value.teamFolderId, g); + g.writeFieldName("force_async_off"); + StoneSerializers.boolean_().serialize(value.forceAsyncOff, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderArchiveArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderArchiveArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamFolderId = null; + Boolean f_forceAsyncOff = false; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_folder_id".equals(field)) { + f_teamFolderId = StoneSerializers.string().deserialize(p); + } + else if ("force_async_off".equals(field)) { + f_forceAsyncOff = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamFolderId == null) { + throw new JsonParseException(p, "Required field \"team_folder_id\" missing."); + } + value = new TeamFolderArchiveArg(f_teamFolderId, f_forceAsyncOff); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveError.java new file mode 100644 index 000000000..b3dfe10f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveError.java @@ -0,0 +1,442 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderArchiveError { + // union team.TeamFolderArchiveError (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderArchiveError}. + */ + public enum Tag { + ACCESS_ERROR, // TeamFolderAccessError + STATUS_ERROR, // TeamFolderInvalidStatusError + TEAM_SHARED_DROPBOX_ERROR, // TeamFolderTeamSharedDropboxError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamFolderArchiveError OTHER = new TeamFolderArchiveError().withTag(Tag.OTHER); + + private Tag _tag; + private TeamFolderAccessError accessErrorValue; + private TeamFolderInvalidStatusError statusErrorValue; + private TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderArchiveError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderArchiveError withTag(Tag _tag) { + TeamFolderArchiveError result = new TeamFolderArchiveError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderArchiveError withTagAndAccessError(Tag _tag, TeamFolderAccessError accessErrorValue) { + TeamFolderArchiveError result = new TeamFolderArchiveError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param statusErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderArchiveError withTagAndStatusError(Tag _tag, TeamFolderInvalidStatusError statusErrorValue) { + TeamFolderArchiveError result = new TeamFolderArchiveError(); + result._tag = _tag; + result.statusErrorValue = statusErrorValue; + return result; + } + + /** + * + * @param teamSharedDropboxErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderArchiveError withTagAndTeamSharedDropboxError(Tag _tag, TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue) { + TeamFolderArchiveError result = new TeamFolderArchiveError(); + result._tag = _tag; + result.teamSharedDropboxErrorValue = teamSharedDropboxErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderArchiveError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderArchiveError} that has its tag + * set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderArchiveError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderArchiveError accessError(TeamFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderArchiveError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link TeamFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public TeamFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + */ + public boolean isStatusError() { + return this._tag == Tag.STATUS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderArchiveError} that has its tag + * set to {@link Tag#STATUS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderArchiveError} with its tag set to + * {@link Tag#STATUS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderArchiveError statusError(TeamFolderInvalidStatusError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderArchiveError().withTagAndStatusError(Tag.STATUS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#STATUS_ERROR}. + * + * @return The {@link TeamFolderInvalidStatusError} value associated with + * this instance if {@link #isStatusError} is {@code true}. + * + * @throws IllegalStateException If {@link #isStatusError} is {@code + * false}. + */ + public TeamFolderInvalidStatusError getStatusErrorValue() { + if (this._tag != Tag.STATUS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.STATUS_ERROR, but was Tag." + this._tag.name()); + } + return statusErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + */ + public boolean isTeamSharedDropboxError() { + return this._tag == Tag.TEAM_SHARED_DROPBOX_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderArchiveError} that has its tag + * set to {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderArchiveError} with its tag set to + * {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderArchiveError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderArchiveError().withTagAndTeamSharedDropboxError(Tag.TEAM_SHARED_DROPBOX_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @return The {@link TeamFolderTeamSharedDropboxError} value associated + * with this instance if {@link #isTeamSharedDropboxError} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamSharedDropboxError} is + * {@code false}. + */ + public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue() { + if (this._tag != Tag.TEAM_SHARED_DROPBOX_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SHARED_DROPBOX_ERROR, but was Tag." + this._tag.name()); + } + return teamSharedDropboxErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.statusErrorValue, + this.teamSharedDropboxErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderArchiveError) { + TeamFolderArchiveError other = (TeamFolderArchiveError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case STATUS_ERROR: + return (this.statusErrorValue == other.statusErrorValue) || (this.statusErrorValue.equals(other.statusErrorValue)); + case TEAM_SHARED_DROPBOX_ERROR: + return (this.teamSharedDropboxErrorValue == other.teamSharedDropboxErrorValue) || (this.teamSharedDropboxErrorValue.equals(other.teamSharedDropboxErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderArchiveError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + TeamFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case STATUS_ERROR: { + g.writeStartObject(); + writeTag("status_error", g); + g.writeFieldName("status_error"); + TeamFolderInvalidStatusError.Serializer.INSTANCE.serialize(value.statusErrorValue, g); + g.writeEndObject(); + break; + } + case TEAM_SHARED_DROPBOX_ERROR: { + g.writeStartObject(); + writeTag("team_shared_dropbox_error", g); + g.writeFieldName("team_shared_dropbox_error"); + TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.serialize(value.teamSharedDropboxErrorValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderArchiveError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderArchiveError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + TeamFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = TeamFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderArchiveError.accessError(fieldValue); + } + else if ("status_error".equals(tag)) { + TeamFolderInvalidStatusError fieldValue = null; + expectField("status_error", p); + fieldValue = TeamFolderInvalidStatusError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderArchiveError.statusError(fieldValue); + } + else if ("team_shared_dropbox_error".equals(tag)) { + TeamFolderTeamSharedDropboxError fieldValue = null; + expectField("team_shared_dropbox_error", p); + fieldValue = TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderArchiveError.teamSharedDropboxError(fieldValue); + } + else if ("other".equals(tag)) { + value = TeamFolderArchiveError.OTHER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveErrorException.java new file mode 100644 index 000000000..ad3205109 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamFolderArchiveError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderArchive(String,boolean)}.

+ */ +public class TeamFolderArchiveErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/archive + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#teamFolderArchive(String,boolean)}. + */ + public final TeamFolderArchiveError errorValue; + + public TeamFolderArchiveErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderArchiveError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveJobStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveJobStatus.java new file mode 100644 index 000000000..005fae8d5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveJobStatus.java @@ -0,0 +1,366 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderArchiveJobStatus { + // union team.TeamFolderArchiveJobStatus (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderArchiveJobStatus}. + */ + public enum Tag { + /** + * The asynchronous job is still in progress. + */ + IN_PROGRESS, + /** + * The archive job has finished. The value is the metadata for the + * resulting team folder. + */ + COMPLETE, // TeamFolderMetadata + /** + * Error occurred while performing an asynchronous job from {@link + * DbxTeamTeamRequests#teamFolderArchive(String,boolean)}. + */ + FAILED; // TeamFolderArchiveError + } + + /** + * The asynchronous job is still in progress. + */ + public static final TeamFolderArchiveJobStatus IN_PROGRESS = new TeamFolderArchiveJobStatus().withTag(Tag.IN_PROGRESS); + + private Tag _tag; + private TeamFolderMetadata completeValue; + private TeamFolderArchiveError failedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderArchiveJobStatus() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderArchiveJobStatus withTag(Tag _tag) { + TeamFolderArchiveJobStatus result = new TeamFolderArchiveJobStatus(); + result._tag = _tag; + return result; + } + + /** + * + * @param completeValue The archive job has finished. The value is the + * metadata for the resulting team folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderArchiveJobStatus withTagAndComplete(Tag _tag, TeamFolderMetadata completeValue) { + TeamFolderArchiveJobStatus result = new TeamFolderArchiveJobStatus(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * + * @param failedValue Error occurred while performing an asynchronous job + * from {@link DbxTeamTeamRequests#teamFolderArchive(String,boolean)}. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderArchiveJobStatus withTagAndFailed(Tag _tag, TeamFolderArchiveError failedValue) { + TeamFolderArchiveJobStatus result = new TeamFolderArchiveJobStatus(); + result._tag = _tag; + result.failedValue = failedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderArchiveJobStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#IN_PROGRESS}, {@code false} otherwise. + */ + public boolean isInProgress() { + return this._tag == Tag.IN_PROGRESS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code TeamFolderArchiveJobStatus} that has its + * tag set to {@link Tag#COMPLETE}. + * + *

The archive job has finished. The value is the metadata for the + * resulting team folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderArchiveJobStatus} with its tag set + * to {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderArchiveJobStatus complete(TeamFolderMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderArchiveJobStatus().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * The archive job has finished. The value is the metadata for the resulting + * team folder. + * + *

This instance must be tagged as {@link Tag#COMPLETE}.

+ * + * @return The {@link TeamFolderMetadata} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public TeamFolderMetadata getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FAILED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FAILED}, + * {@code false} otherwise. + */ + public boolean isFailed() { + return this._tag == Tag.FAILED; + } + + /** + * Returns an instance of {@code TeamFolderArchiveJobStatus} that has its + * tag set to {@link Tag#FAILED}. + * + *

Error occurred while performing an asynchronous job from {@link + * DbxTeamTeamRequests#teamFolderArchive(String,boolean)}.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderArchiveJobStatus} with its tag set + * to {@link Tag#FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderArchiveJobStatus failed(TeamFolderArchiveError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderArchiveJobStatus().withTagAndFailed(Tag.FAILED, value); + } + + /** + * Error occurred while performing an asynchronous job from {@link + * DbxTeamTeamRequests#teamFolderArchive(String,boolean)}. + * + *

This instance must be tagged as {@link Tag#FAILED}.

+ * + * @return The {@link TeamFolderArchiveError} value associated with this + * instance if {@link #isFailed} is {@code true}. + * + * @throws IllegalStateException If {@link #isFailed} is {@code false}. + */ + public TeamFolderArchiveError getFailedValue() { + if (this._tag != Tag.FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.FAILED, but was Tag." + this._tag.name()); + } + return failedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.completeValue, + this.failedValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderArchiveJobStatus) { + TeamFolderArchiveJobStatus other = (TeamFolderArchiveJobStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case IN_PROGRESS: + return true; + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + case FAILED: + return (this.failedValue == other.failedValue) || (this.failedValue.equals(other.failedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderArchiveJobStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + TeamFolderMetadata.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + case FAILED: { + g.writeStartObject(); + writeTag("failed", g); + g.writeFieldName("failed"); + TeamFolderArchiveError.Serializer.INSTANCE.serialize(value.failedValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderArchiveJobStatus deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderArchiveJobStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("in_progress".equals(tag)) { + value = TeamFolderArchiveJobStatus.IN_PROGRESS; + } + else if ("complete".equals(tag)) { + TeamFolderMetadata fieldValue = null; + fieldValue = TeamFolderMetadata.Serializer.INSTANCE.deserialize(p, true); + value = TeamFolderArchiveJobStatus.complete(fieldValue); + } + else if ("failed".equals(tag)) { + TeamFolderArchiveError fieldValue = null; + expectField("failed", p); + fieldValue = TeamFolderArchiveError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderArchiveJobStatus.failed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveLaunch.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveLaunch.java new file mode 100644 index 000000000..3236133b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveLaunch.java @@ -0,0 +1,335 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderArchiveLaunch { + // union team.TeamFolderArchiveLaunch (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderArchiveLaunch}. + */ + public enum Tag { + /** + * This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the + * asynchronous job. + */ + ASYNC_JOB_ID, // String + COMPLETE; // TeamFolderMetadata + } + + private Tag _tag; + private String asyncJobIdValue; + private TeamFolderMetadata completeValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderArchiveLaunch() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderArchiveLaunch withTag(Tag _tag) { + TeamFolderArchiveLaunch result = new TeamFolderArchiveLaunch(); + result._tag = _tag; + return result; + } + + /** + * + * @param asyncJobIdValue This response indicates that the processing is + * asynchronous. The string is an id that can be used to obtain the + * status of the asynchronous job. Must have length of at least 1 and + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderArchiveLaunch withTagAndAsyncJobId(Tag _tag, String asyncJobIdValue) { + TeamFolderArchiveLaunch result = new TeamFolderArchiveLaunch(); + result._tag = _tag; + result.asyncJobIdValue = asyncJobIdValue; + return result; + } + + /** + * + * @param completeValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderArchiveLaunch withTagAndComplete(Tag _tag, TeamFolderMetadata completeValue) { + TeamFolderArchiveLaunch result = new TeamFolderArchiveLaunch(); + result._tag = _tag; + result.completeValue = completeValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderArchiveLaunch}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ASYNC_JOB_ID}, {@code false} otherwise. + */ + public boolean isAsyncJobId() { + return this._tag == Tag.ASYNC_JOB_ID; + } + + /** + * Returns an instance of {@code TeamFolderArchiveLaunch} that has its tag + * set to {@link Tag#ASYNC_JOB_ID}. + * + *

This response indicates that the processing is asynchronous. The + * string is an id that can be used to obtain the status of the asynchronous + * job.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderArchiveLaunch} with its tag set to + * {@link Tag#ASYNC_JOB_ID}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 1 or + * is {@code null}. + */ + public static TeamFolderArchiveLaunch asyncJobId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 1) { + throw new IllegalArgumentException("String is shorter than 1"); + } + return new TeamFolderArchiveLaunch().withTagAndAsyncJobId(Tag.ASYNC_JOB_ID, value); + } + + /** + * This response indicates that the processing is asynchronous. The string + * is an id that can be used to obtain the status of the asynchronous job. + * + *

This instance must be tagged as {@link Tag#ASYNC_JOB_ID}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isAsyncJobId} is {@code true}. + * + * @throws IllegalStateException If {@link #isAsyncJobId} is {@code false}. + */ + public String getAsyncJobIdValue() { + if (this._tag != Tag.ASYNC_JOB_ID) { + throw new IllegalStateException("Invalid tag: required Tag.ASYNC_JOB_ID, but was Tag." + this._tag.name()); + } + return asyncJobIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#COMPLETE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#COMPLETE}, + * {@code false} otherwise. + */ + public boolean isComplete() { + return this._tag == Tag.COMPLETE; + } + + /** + * Returns an instance of {@code TeamFolderArchiveLaunch} that has its tag + * set to {@link Tag#COMPLETE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderArchiveLaunch} with its tag set to + * {@link Tag#COMPLETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderArchiveLaunch complete(TeamFolderMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderArchiveLaunch().withTagAndComplete(Tag.COMPLETE, value); + } + + /** + * This instance must be tagged as {@link Tag#COMPLETE}. + * + * @return The {@link TeamFolderMetadata} value associated with this + * instance if {@link #isComplete} is {@code true}. + * + * @throws IllegalStateException If {@link #isComplete} is {@code false}. + */ + public TeamFolderMetadata getCompleteValue() { + if (this._tag != Tag.COMPLETE) { + throw new IllegalStateException("Invalid tag: required Tag.COMPLETE, but was Tag." + this._tag.name()); + } + return completeValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.asyncJobIdValue, + this.completeValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderArchiveLaunch) { + TeamFolderArchiveLaunch other = (TeamFolderArchiveLaunch) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ASYNC_JOB_ID: + return (this.asyncJobIdValue == other.asyncJobIdValue) || (this.asyncJobIdValue.equals(other.asyncJobIdValue)); + case COMPLETE: + return (this.completeValue == other.completeValue) || (this.completeValue.equals(other.completeValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderArchiveLaunch value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ASYNC_JOB_ID: { + g.writeStartObject(); + writeTag("async_job_id", g); + g.writeFieldName("async_job_id"); + StoneSerializers.string().serialize(value.asyncJobIdValue, g); + g.writeEndObject(); + break; + } + case COMPLETE: { + g.writeStartObject(); + writeTag("complete", g); + TeamFolderMetadata.Serializer.INSTANCE.serialize(value.completeValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderArchiveLaunch deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderArchiveLaunch value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("async_job_id".equals(tag)) { + String fieldValue = null; + expectField("async_job_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = TeamFolderArchiveLaunch.asyncJobId(fieldValue); + } + else if ("complete".equals(tag)) { + TeamFolderMetadata fieldValue = null; + fieldValue = TeamFolderMetadata.Serializer.INSTANCE.deserialize(p, true); + value = TeamFolderArchiveLaunch.complete(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateArg.java new file mode 100644 index 000000000..c1e7e4154 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateArg.java @@ -0,0 +1,190 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.files.SyncSettingArg; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class TeamFolderCreateArg { + // struct team.TeamFolderCreateArg (team_folders.stone) + + @Nonnull + protected final String name; + @Nullable + protected final SyncSettingArg syncSetting; + + /** + * + * @param name Name for the new team folder. Must not be {@code null}. + * @param syncSetting The sync setting to apply to this team folder. Only + * permitted if the team has team selective sync enabled. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderCreateArg(@Nonnull String name, @Nullable SyncSettingArg syncSetting) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.syncSetting = syncSetting; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name Name for the new team folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderCreateArg(@Nonnull String name) { + this(name, null); + } + + /** + * Name for the new team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The sync setting to apply to this team folder. Only permitted if the team + * has team selective sync enabled. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SyncSettingArg getSyncSetting() { + return syncSetting; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.syncSetting + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderCreateArg other = (TeamFolderCreateArg) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.syncSetting == other.syncSetting) || (this.syncSetting != null && this.syncSetting.equals(other.syncSetting))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderCreateArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.syncSetting != null) { + g.writeFieldName("sync_setting"); + StoneSerializers.nullable(SyncSettingArg.Serializer.INSTANCE).serialize(value.syncSetting, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderCreateArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderCreateArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + SyncSettingArg f_syncSetting = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("sync_setting".equals(field)) { + f_syncSetting = StoneSerializers.nullable(SyncSettingArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new TeamFolderCreateArg(f_name, f_syncSetting); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateError.java new file mode 100644 index 000000000..e40e2429c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateError.java @@ -0,0 +1,369 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.files.SyncSettingsError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TeamFolderCreateError { + // union team.TeamFolderCreateError (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderCreateError}. + */ + public enum Tag { + /** + * The provided name cannot be used. + */ + INVALID_FOLDER_NAME, + /** + * There is already a team folder with the provided name. + */ + FOLDER_NAME_ALREADY_USED, + /** + * The provided name cannot be used because it is reserved. + */ + FOLDER_NAME_RESERVED, + /** + * An error occurred setting the sync settings. + */ + SYNC_SETTINGS_ERROR, // SyncSettingsError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * The provided name cannot be used. + */ + public static final TeamFolderCreateError INVALID_FOLDER_NAME = new TeamFolderCreateError().withTag(Tag.INVALID_FOLDER_NAME); + /** + * There is already a team folder with the provided name. + */ + public static final TeamFolderCreateError FOLDER_NAME_ALREADY_USED = new TeamFolderCreateError().withTag(Tag.FOLDER_NAME_ALREADY_USED); + /** + * The provided name cannot be used because it is reserved. + */ + public static final TeamFolderCreateError FOLDER_NAME_RESERVED = new TeamFolderCreateError().withTag(Tag.FOLDER_NAME_RESERVED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamFolderCreateError OTHER = new TeamFolderCreateError().withTag(Tag.OTHER); + + private Tag _tag; + private SyncSettingsError syncSettingsErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderCreateError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderCreateError withTag(Tag _tag) { + TeamFolderCreateError result = new TeamFolderCreateError(); + result._tag = _tag; + return result; + } + + /** + * + * @param syncSettingsErrorValue An error occurred setting the sync + * settings. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderCreateError withTagAndSyncSettingsError(Tag _tag, SyncSettingsError syncSettingsErrorValue) { + TeamFolderCreateError result = new TeamFolderCreateError(); + result._tag = _tag; + result.syncSettingsErrorValue = syncSettingsErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderCreateError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_FOLDER_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_FOLDER_NAME}, {@code false} otherwise. + */ + public boolean isInvalidFolderName() { + return this._tag == Tag.INVALID_FOLDER_NAME; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_NAME_ALREADY_USED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_NAME_ALREADY_USED}, {@code false} otherwise. + */ + public boolean isFolderNameAlreadyUsed() { + return this._tag == Tag.FOLDER_NAME_ALREADY_USED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_NAME_RESERVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_NAME_RESERVED}, {@code false} otherwise. + */ + public boolean isFolderNameReserved() { + return this._tag == Tag.FOLDER_NAME_RESERVED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SYNC_SETTINGS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SYNC_SETTINGS_ERROR}, {@code false} otherwise. + */ + public boolean isSyncSettingsError() { + return this._tag == Tag.SYNC_SETTINGS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderCreateError} that has its tag set + * to {@link Tag#SYNC_SETTINGS_ERROR}. + * + *

An error occurred setting the sync settings.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderCreateError} with its tag set to + * {@link Tag#SYNC_SETTINGS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderCreateError syncSettingsError(SyncSettingsError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderCreateError().withTagAndSyncSettingsError(Tag.SYNC_SETTINGS_ERROR, value); + } + + /** + * An error occurred setting the sync settings. + * + *

This instance must be tagged as {@link Tag#SYNC_SETTINGS_ERROR}.

+ * + * @return The {@link SyncSettingsError} value associated with this instance + * if {@link #isSyncSettingsError} is {@code true}. + * + * @throws IllegalStateException If {@link #isSyncSettingsError} is {@code + * false}. + */ + public SyncSettingsError getSyncSettingsErrorValue() { + if (this._tag != Tag.SYNC_SETTINGS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.SYNC_SETTINGS_ERROR, but was Tag." + this._tag.name()); + } + return syncSettingsErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.syncSettingsErrorValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderCreateError) { + TeamFolderCreateError other = (TeamFolderCreateError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INVALID_FOLDER_NAME: + return true; + case FOLDER_NAME_ALREADY_USED: + return true; + case FOLDER_NAME_RESERVED: + return true; + case SYNC_SETTINGS_ERROR: + return (this.syncSettingsErrorValue == other.syncSettingsErrorValue) || (this.syncSettingsErrorValue.equals(other.syncSettingsErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderCreateError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INVALID_FOLDER_NAME: { + g.writeString("invalid_folder_name"); + break; + } + case FOLDER_NAME_ALREADY_USED: { + g.writeString("folder_name_already_used"); + break; + } + case FOLDER_NAME_RESERVED: { + g.writeString("folder_name_reserved"); + break; + } + case SYNC_SETTINGS_ERROR: { + g.writeStartObject(); + writeTag("sync_settings_error", g); + g.writeFieldName("sync_settings_error"); + SyncSettingsError.Serializer.INSTANCE.serialize(value.syncSettingsErrorValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamFolderCreateError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderCreateError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_folder_name".equals(tag)) { + value = TeamFolderCreateError.INVALID_FOLDER_NAME; + } + else if ("folder_name_already_used".equals(tag)) { + value = TeamFolderCreateError.FOLDER_NAME_ALREADY_USED; + } + else if ("folder_name_reserved".equals(tag)) { + value = TeamFolderCreateError.FOLDER_NAME_RESERVED; + } + else if ("sync_settings_error".equals(tag)) { + SyncSettingsError fieldValue = null; + expectField("sync_settings_error", p); + fieldValue = SyncSettingsError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderCreateError.syncSettingsError(fieldValue); + } + else { + value = TeamFolderCreateError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateErrorException.java new file mode 100644 index 000000000..5849fda19 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderCreateErrorException.java @@ -0,0 +1,36 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamFolderCreateError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderCreate(String,com.dropbox.core.v2.files.SyncSettingArg)}. + *

+ */ +public class TeamFolderCreateErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/create + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#teamFolderCreate(String,com.dropbox.core.v2.files.SyncSettingArg)}. + */ + public final TeamFolderCreateError errorValue; + + public TeamFolderCreateErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderCreateError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderGetInfoItem.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderGetInfoItem.java new file mode 100644 index 000000000..d4a0a466a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderGetInfoItem.java @@ -0,0 +1,338 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderGetInfoItem { + // union team.TeamFolderGetInfoItem (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderGetInfoItem}. + */ + public enum Tag { + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#teamFolderGetInfo(java.util.List)} did not match + * any of the team's team folders. + */ + ID_NOT_FOUND, // String + /** + * Properties of a team folder. + */ + TEAM_FOLDER_METADATA; // TeamFolderMetadata + } + + private Tag _tag; + private String idNotFoundValue; + private TeamFolderMetadata teamFolderMetadataValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderGetInfoItem() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderGetInfoItem withTag(Tag _tag) { + TeamFolderGetInfoItem result = new TeamFolderGetInfoItem(); + result._tag = _tag; + return result; + } + + /** + * + * @param idNotFoundValue An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#teamFolderGetInfo(java.util.List)} did not match + * any of the team's team folders. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderGetInfoItem withTagAndIdNotFound(Tag _tag, String idNotFoundValue) { + TeamFolderGetInfoItem result = new TeamFolderGetInfoItem(); + result._tag = _tag; + result.idNotFoundValue = idNotFoundValue; + return result; + } + + /** + * + * @param teamFolderMetadataValue Properties of a team folder. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderGetInfoItem withTagAndTeamFolderMetadata(Tag _tag, TeamFolderMetadata teamFolderMetadataValue) { + TeamFolderGetInfoItem result = new TeamFolderGetInfoItem(); + result._tag = _tag; + result.teamFolderMetadataValue = teamFolderMetadataValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderGetInfoItem}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ID_NOT_FOUND}, {@code false} otherwise. + */ + public boolean isIdNotFound() { + return this._tag == Tag.ID_NOT_FOUND; + } + + /** + * Returns an instance of {@code TeamFolderGetInfoItem} that has its tag set + * to {@link Tag#ID_NOT_FOUND}. + * + *

An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#teamFolderGetInfo(java.util.List)} did not match any + * of the team's team folders.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderGetInfoItem} with its tag set to + * {@link Tag#ID_NOT_FOUND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderGetInfoItem idNotFound(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderGetInfoItem().withTagAndIdNotFound(Tag.ID_NOT_FOUND, value); + } + + /** + * An ID that was provided as a parameter to {@link + * DbxTeamTeamRequests#teamFolderGetInfo(java.util.List)} did not match any + * of the team's team folders. + * + *

This instance must be tagged as {@link Tag#ID_NOT_FOUND}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isIdNotFound} is {@code true}. + * + * @throws IllegalStateException If {@link #isIdNotFound} is {@code false}. + */ + public String getIdNotFoundValue() { + if (this._tag != Tag.ID_NOT_FOUND) { + throw new IllegalStateException("Invalid tag: required Tag.ID_NOT_FOUND, but was Tag." + this._tag.name()); + } + return idNotFoundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_METADATA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_METADATA}, {@code false} otherwise. + */ + public boolean isTeamFolderMetadata() { + return this._tag == Tag.TEAM_FOLDER_METADATA; + } + + /** + * Returns an instance of {@code TeamFolderGetInfoItem} that has its tag set + * to {@link Tag#TEAM_FOLDER_METADATA}. + * + *

Properties of a team folder.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderGetInfoItem} with its tag set to + * {@link Tag#TEAM_FOLDER_METADATA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderGetInfoItem teamFolderMetadata(TeamFolderMetadata value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderGetInfoItem().withTagAndTeamFolderMetadata(Tag.TEAM_FOLDER_METADATA, value); + } + + /** + * Properties of a team folder. + * + *

This instance must be tagged as {@link Tag#TEAM_FOLDER_METADATA}. + *

+ * + * @return The {@link TeamFolderMetadata} value associated with this + * instance if {@link #isTeamFolderMetadata} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderMetadata} is {@code + * false}. + */ + public TeamFolderMetadata getTeamFolderMetadataValue() { + if (this._tag != Tag.TEAM_FOLDER_METADATA) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_METADATA, but was Tag." + this._tag.name()); + } + return teamFolderMetadataValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.idNotFoundValue, + this.teamFolderMetadataValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderGetInfoItem) { + TeamFolderGetInfoItem other = (TeamFolderGetInfoItem) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ID_NOT_FOUND: + return (this.idNotFoundValue == other.idNotFoundValue) || (this.idNotFoundValue.equals(other.idNotFoundValue)); + case TEAM_FOLDER_METADATA: + return (this.teamFolderMetadataValue == other.teamFolderMetadataValue) || (this.teamFolderMetadataValue.equals(other.teamFolderMetadataValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderGetInfoItem value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ID_NOT_FOUND: { + g.writeStartObject(); + writeTag("id_not_found", g); + g.writeFieldName("id_not_found"); + StoneSerializers.string().serialize(value.idNotFoundValue, g); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_METADATA: { + g.writeStartObject(); + writeTag("team_folder_metadata", g); + TeamFolderMetadata.Serializer.INSTANCE.serialize(value.teamFolderMetadataValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderGetInfoItem deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderGetInfoItem value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("id_not_found".equals(tag)) { + String fieldValue = null; + expectField("id_not_found", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = TeamFolderGetInfoItem.idNotFound(fieldValue); + } + else if ("team_folder_metadata".equals(tag)) { + TeamFolderMetadata fieldValue = null; + fieldValue = TeamFolderMetadata.Serializer.INSTANCE.deserialize(p, true); + value = TeamFolderGetInfoItem.teamFolderMetadata(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderIdArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderIdArg.java new file mode 100644 index 000000000..de6f89954 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderIdArg.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class TeamFolderIdArg { + // struct team.TeamFolderIdArg (team_folders.stone) + + @Nonnull + protected final String teamFolderId; + + /** + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderIdArg(@Nonnull String teamFolderId) { + if (teamFolderId == null) { + throw new IllegalArgumentException("Required value for 'teamFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", teamFolderId)) { + throw new IllegalArgumentException("String 'teamFolderId' does not match pattern"); + } + this.teamFolderId = teamFolderId; + } + + /** + * The ID of the team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamFolderId() { + return teamFolderId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamFolderId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderIdArg other = (TeamFolderIdArg) obj; + return (this.teamFolderId == other.teamFolderId) || (this.teamFolderId.equals(other.teamFolderId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderIdArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_folder_id"); + StoneSerializers.string().serialize(value.teamFolderId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderIdArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderIdArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamFolderId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_folder_id".equals(field)) { + f_teamFolderId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamFolderId == null) { + throw new JsonParseException(p, "Required field \"team_folder_id\" missing."); + } + value = new TeamFolderIdArg(f_teamFolderId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderIdListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderIdListArg.java new file mode 100644 index 000000000..6f8d89878 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderIdListArg.java @@ -0,0 +1,160 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class TeamFolderIdListArg { + // struct team.TeamFolderIdListArg (team_folders.stone) + + @Nonnull + protected final List teamFolderIds; + + /** + * + * @param teamFolderIds The list of team folder IDs. Must contain at least + * 1 items, not contain a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderIdListArg(@Nonnull List teamFolderIds) { + if (teamFolderIds == null) { + throw new IllegalArgumentException("Required value for 'teamFolderIds' is null"); + } + if (teamFolderIds.size() < 1) { + throw new IllegalArgumentException("List 'teamFolderIds' has fewer than 1 items"); + } + for (String x : teamFolderIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'teamFolderIds' is null"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z:]+", x)) { + throw new IllegalArgumentException("Stringan item in list 'teamFolderIds' does not match pattern"); + } + } + this.teamFolderIds = teamFolderIds; + } + + /** + * The list of team folder IDs. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTeamFolderIds() { + return teamFolderIds; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamFolderIds + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderIdListArg other = (TeamFolderIdListArg) obj; + return (this.teamFolderIds == other.teamFolderIds) || (this.teamFolderIds.equals(other.teamFolderIds)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderIdListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_folder_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.teamFolderIds, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderIdListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderIdListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_teamFolderIds = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_folder_ids".equals(field)) { + f_teamFolderIds = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamFolderIds == null) { + throw new JsonParseException(p, "Required field \"team_folder_ids\" missing."); + } + value = new TeamFolderIdListArg(f_teamFolderIds); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderInvalidStatusError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderInvalidStatusError.java new file mode 100644 index 000000000..b69262088 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderInvalidStatusError.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamFolderInvalidStatusError { + // union team.TeamFolderInvalidStatusError (team_folders.stone) + /** + * The folder is active and the operation did not succeed. + */ + ACTIVE, + /** + * The folder is archived and the operation did not succeed. + */ + ARCHIVED, + /** + * The folder is being archived and the operation did not succeed. + */ + ARCHIVE_IN_PROGRESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderInvalidStatusError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACTIVE: { + g.writeString("active"); + break; + } + case ARCHIVED: { + g.writeString("archived"); + break; + } + case ARCHIVE_IN_PROGRESS: { + g.writeString("archive_in_progress"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamFolderInvalidStatusError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderInvalidStatusError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("active".equals(tag)) { + value = TeamFolderInvalidStatusError.ACTIVE; + } + else if ("archived".equals(tag)) { + value = TeamFolderInvalidStatusError.ARCHIVED; + } + else if ("archive_in_progress".equals(tag)) { + value = TeamFolderInvalidStatusError.ARCHIVE_IN_PROGRESS; + } + else { + value = TeamFolderInvalidStatusError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListArg.java new file mode 100644 index 000000000..83d84f5ea --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class TeamFolderListArg { + // struct team.TeamFolderListArg (team_folders.stone) + + protected final long limit; + + /** + * + * @param limit The maximum number of results to return per request. Must + * be greater than or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderListArg(long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public TeamFolderListArg() { + this(1000L); + } + + /** + * The maximum number of results to return per request. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderListArg other = (TeamFolderListArg) obj; + return this.limit == other.limit; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + value = new TeamFolderListArg(f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueArg.java new file mode 100644 index 000000000..b9e1f4d52 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class TeamFolderListContinueArg { + // struct team.TeamFolderListContinueArg (team_folders.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor Indicates from what point to get the next set of team + * folders. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderListContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Indicates from what point to get the next set of team folders. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderListContinueArg other = (TeamFolderListContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderListContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderListContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderListContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new TeamFolderListContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueError.java new file mode 100644 index 000000000..c3202c13d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamFolderListContinueError { + // union team.TeamFolderListContinueError (team_folders.stone) + /** + * The cursor is invalid. + */ + INVALID_CURSOR, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderListContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamFolderListContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderListContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_cursor".equals(tag)) { + value = TeamFolderListContinueError.INVALID_CURSOR; + } + else { + value = TeamFolderListContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueErrorException.java new file mode 100644 index 000000000..176df40ae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamFolderListContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)}.

+ */ +public class TeamFolderListContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)}. + */ + public final TeamFolderListContinueError errorValue; + + public TeamFolderListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderListContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListError.java new file mode 100644 index 000000000..21b10c3c1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListError.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamFolderListError { + // struct team.TeamFolderListError (team_folders.stone) + + @Nonnull + protected final TeamFolderAccessError accessError; + + /** + * + * @param accessError Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderListError(@Nonnull TeamFolderAccessError accessError) { + if (accessError == null) { + throw new IllegalArgumentException("Required value for 'accessError' is null"); + } + this.accessError = accessError; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamFolderAccessError getAccessError() { + return accessError; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accessError + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderListError other = (TeamFolderListError) obj; + return (this.accessError == other.accessError) || (this.accessError.equals(other.accessError)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderListError value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_error"); + TeamFolderAccessError.Serializer.INSTANCE.serialize(value.accessError, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderListError deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderListError value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamFolderAccessError f_accessError = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_error".equals(field)) { + f_accessError = TeamFolderAccessError.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessError == null) { + throw new JsonParseException(p, "Required field \"access_error\" missing."); + } + value = new TeamFolderListError(f_accessError); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListErrorException.java new file mode 100644 index 000000000..d6457d056 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link TeamFolderListError} + * error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderList(long)}.

+ */ +public class TeamFolderListErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/list + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#teamFolderList(long)}. + */ + public final TeamFolderListError errorValue; + + public TeamFolderListErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderListError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListResult.java new file mode 100644 index 000000000..d74e92f67 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListResult.java @@ -0,0 +1,221 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)}. + */ +public class TeamFolderListResult { + // struct team.TeamFolderListResult (team_folders.stone) + + @Nonnull + protected final List teamFolders; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * Result for {@link DbxTeamTeamRequests#teamFolderList(long)} and {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)}. + * + * @param teamFolders List of all team folders in the authenticated team. + * Must not contain a {@code null} item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)} to obtain + * additional team folders. Must not be {@code null}. + * @param hasMore Is true if there are additional team folders that have + * not been returned yet. An additional call to {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)} can retrieve + * them. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderListResult(@Nonnull List teamFolders, @Nonnull String cursor, boolean hasMore) { + if (teamFolders == null) { + throw new IllegalArgumentException("Required value for 'teamFolders' is null"); + } + for (TeamFolderMetadata x : teamFolders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'teamFolders' is null"); + } + } + this.teamFolders = teamFolders; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * List of all team folders in the authenticated team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getTeamFolders() { + return teamFolders; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)} to obtain additional + * team folders. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there are additional team folders that have not been returned + * yet. An additional call to {@link + * DbxTeamTeamRequests#teamFolderListContinue(String)} can retrieve them. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamFolders, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderListResult other = (TeamFolderListResult) obj; + return ((this.teamFolders == other.teamFolders) || (this.teamFolders.equals(other.teamFolders))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderListResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_folders"); + StoneSerializers.list(TeamFolderMetadata.Serializer.INSTANCE).serialize(value.teamFolders, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderListResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderListResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_teamFolders = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_folders".equals(field)) { + f_teamFolders = StoneSerializers.list(TeamFolderMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamFolders == null) { + throw new JsonParseException(p, "Required field \"team_folders\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new TeamFolderListResult(f_teamFolders, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderMetadata.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderMetadata.java new file mode 100644 index 000000000..d14a2fcab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderMetadata.java @@ -0,0 +1,304 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.files.ContentSyncSetting; +import com.dropbox.core.v2.files.SyncSetting; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * Properties of a team folder. + */ +public class TeamFolderMetadata { + // struct team.TeamFolderMetadata (team_folders.stone) + + @Nonnull + protected final String teamFolderId; + @Nonnull + protected final String name; + @Nonnull + protected final TeamFolderStatus status; + protected final boolean isTeamSharedDropbox; + @Nonnull + protected final SyncSetting syncSetting; + @Nonnull + protected final List contentSyncSettings; + + /** + * Properties of a team folder. + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param name The name of the team folder. Must not be {@code null}. + * @param status The status of the team folder. Must not be {@code null}. + * @param isTeamSharedDropbox True if this team folder is a shared team + * root. + * @param syncSetting The sync setting applied to this team folder. Must + * not be {@code null}. + * @param contentSyncSettings Sync settings applied to contents of this + * team folder. Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderMetadata(@Nonnull String teamFolderId, @Nonnull String name, @Nonnull TeamFolderStatus status, boolean isTeamSharedDropbox, @Nonnull SyncSetting syncSetting, @Nonnull List contentSyncSettings) { + if (teamFolderId == null) { + throw new IllegalArgumentException("Required value for 'teamFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", teamFolderId)) { + throw new IllegalArgumentException("String 'teamFolderId' does not match pattern"); + } + this.teamFolderId = teamFolderId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + this.isTeamSharedDropbox = isTeamSharedDropbox; + if (syncSetting == null) { + throw new IllegalArgumentException("Required value for 'syncSetting' is null"); + } + this.syncSetting = syncSetting; + if (contentSyncSettings == null) { + throw new IllegalArgumentException("Required value for 'contentSyncSettings' is null"); + } + for (ContentSyncSetting x : contentSyncSettings) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'contentSyncSettings' is null"); + } + } + this.contentSyncSettings = contentSyncSettings; + } + + /** + * The ID of the team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamFolderId() { + return teamFolderId; + } + + /** + * The name of the team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The status of the team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamFolderStatus getStatus() { + return status; + } + + /** + * True if this team folder is a shared team root. + * + * @return value for this field. + */ + public boolean getIsTeamSharedDropbox() { + return isTeamSharedDropbox; + } + + /** + * The sync setting applied to this team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SyncSetting getSyncSetting() { + return syncSetting; + } + + /** + * Sync settings applied to contents of this team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getContentSyncSettings() { + return contentSyncSettings; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamFolderId, + this.name, + this.status, + this.isTeamSharedDropbox, + this.syncSetting, + this.contentSyncSettings + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderMetadata other = (TeamFolderMetadata) obj; + return ((this.teamFolderId == other.teamFolderId) || (this.teamFolderId.equals(other.teamFolderId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.status == other.status) || (this.status.equals(other.status))) + && (this.isTeamSharedDropbox == other.isTeamSharedDropbox) + && ((this.syncSetting == other.syncSetting) || (this.syncSetting.equals(other.syncSetting))) + && ((this.contentSyncSettings == other.contentSyncSettings) || (this.contentSyncSettings.equals(other.contentSyncSettings))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderMetadata value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_folder_id"); + StoneSerializers.string().serialize(value.teamFolderId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("status"); + TeamFolderStatus.Serializer.INSTANCE.serialize(value.status, g); + g.writeFieldName("is_team_shared_dropbox"); + StoneSerializers.boolean_().serialize(value.isTeamSharedDropbox, g); + g.writeFieldName("sync_setting"); + SyncSetting.Serializer.INSTANCE.serialize(value.syncSetting, g); + g.writeFieldName("content_sync_settings"); + StoneSerializers.list(ContentSyncSetting.Serializer.INSTANCE).serialize(value.contentSyncSettings, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderMetadata deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderMetadata value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamFolderId = null; + String f_name = null; + TeamFolderStatus f_status = null; + Boolean f_isTeamSharedDropbox = null; + SyncSetting f_syncSetting = null; + List f_contentSyncSettings = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_folder_id".equals(field)) { + f_teamFolderId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("status".equals(field)) { + f_status = TeamFolderStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("is_team_shared_dropbox".equals(field)) { + f_isTeamSharedDropbox = StoneSerializers.boolean_().deserialize(p); + } + else if ("sync_setting".equals(field)) { + f_syncSetting = SyncSetting.Serializer.INSTANCE.deserialize(p); + } + else if ("content_sync_settings".equals(field)) { + f_contentSyncSettings = StoneSerializers.list(ContentSyncSetting.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamFolderId == null) { + throw new JsonParseException(p, "Required field \"team_folder_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_status == null) { + throw new JsonParseException(p, "Required field \"status\" missing."); + } + if (f_isTeamSharedDropbox == null) { + throw new JsonParseException(p, "Required field \"is_team_shared_dropbox\" missing."); + } + if (f_syncSetting == null) { + throw new JsonParseException(p, "Required field \"sync_setting\" missing."); + } + if (f_contentSyncSettings == null) { + throw new JsonParseException(p, "Required field \"content_sync_settings\" missing."); + } + value = new TeamFolderMetadata(f_teamFolderId, f_name, f_status, f_isTeamSharedDropbox, f_syncSetting, f_contentSyncSettings); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError.java new file mode 100644 index 000000000..633552c4c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteError.java @@ -0,0 +1,442 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderPermanentlyDeleteError { + // union team.TeamFolderPermanentlyDeleteError (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderPermanentlyDeleteError}. + */ + public enum Tag { + ACCESS_ERROR, // TeamFolderAccessError + STATUS_ERROR, // TeamFolderInvalidStatusError + TEAM_SHARED_DROPBOX_ERROR, // TeamFolderTeamSharedDropboxError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamFolderPermanentlyDeleteError OTHER = new TeamFolderPermanentlyDeleteError().withTag(Tag.OTHER); + + private Tag _tag; + private TeamFolderAccessError accessErrorValue; + private TeamFolderInvalidStatusError statusErrorValue; + private TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderPermanentlyDeleteError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderPermanentlyDeleteError withTag(Tag _tag) { + TeamFolderPermanentlyDeleteError result = new TeamFolderPermanentlyDeleteError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderPermanentlyDeleteError withTagAndAccessError(Tag _tag, TeamFolderAccessError accessErrorValue) { + TeamFolderPermanentlyDeleteError result = new TeamFolderPermanentlyDeleteError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param statusErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderPermanentlyDeleteError withTagAndStatusError(Tag _tag, TeamFolderInvalidStatusError statusErrorValue) { + TeamFolderPermanentlyDeleteError result = new TeamFolderPermanentlyDeleteError(); + result._tag = _tag; + result.statusErrorValue = statusErrorValue; + return result; + } + + /** + * + * @param teamSharedDropboxErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderPermanentlyDeleteError withTagAndTeamSharedDropboxError(Tag _tag, TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue) { + TeamFolderPermanentlyDeleteError result = new TeamFolderPermanentlyDeleteError(); + result._tag = _tag; + result.teamSharedDropboxErrorValue = teamSharedDropboxErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderPermanentlyDeleteError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderPermanentlyDeleteError} that has + * its tag set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderPermanentlyDeleteError} with its tag + * set to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderPermanentlyDeleteError accessError(TeamFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderPermanentlyDeleteError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link TeamFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public TeamFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + */ + public boolean isStatusError() { + return this._tag == Tag.STATUS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderPermanentlyDeleteError} that has + * its tag set to {@link Tag#STATUS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderPermanentlyDeleteError} with its tag + * set to {@link Tag#STATUS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderPermanentlyDeleteError statusError(TeamFolderInvalidStatusError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderPermanentlyDeleteError().withTagAndStatusError(Tag.STATUS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#STATUS_ERROR}. + * + * @return The {@link TeamFolderInvalidStatusError} value associated with + * this instance if {@link #isStatusError} is {@code true}. + * + * @throws IllegalStateException If {@link #isStatusError} is {@code + * false}. + */ + public TeamFolderInvalidStatusError getStatusErrorValue() { + if (this._tag != Tag.STATUS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.STATUS_ERROR, but was Tag." + this._tag.name()); + } + return statusErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + */ + public boolean isTeamSharedDropboxError() { + return this._tag == Tag.TEAM_SHARED_DROPBOX_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderPermanentlyDeleteError} that has + * its tag set to {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderPermanentlyDeleteError} with its tag + * set to {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderPermanentlyDeleteError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderPermanentlyDeleteError().withTagAndTeamSharedDropboxError(Tag.TEAM_SHARED_DROPBOX_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @return The {@link TeamFolderTeamSharedDropboxError} value associated + * with this instance if {@link #isTeamSharedDropboxError} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamSharedDropboxError} is + * {@code false}. + */ + public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue() { + if (this._tag != Tag.TEAM_SHARED_DROPBOX_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SHARED_DROPBOX_ERROR, but was Tag." + this._tag.name()); + } + return teamSharedDropboxErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.statusErrorValue, + this.teamSharedDropboxErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderPermanentlyDeleteError) { + TeamFolderPermanentlyDeleteError other = (TeamFolderPermanentlyDeleteError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case STATUS_ERROR: + return (this.statusErrorValue == other.statusErrorValue) || (this.statusErrorValue.equals(other.statusErrorValue)); + case TEAM_SHARED_DROPBOX_ERROR: + return (this.teamSharedDropboxErrorValue == other.teamSharedDropboxErrorValue) || (this.teamSharedDropboxErrorValue.equals(other.teamSharedDropboxErrorValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderPermanentlyDeleteError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + TeamFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case STATUS_ERROR: { + g.writeStartObject(); + writeTag("status_error", g); + g.writeFieldName("status_error"); + TeamFolderInvalidStatusError.Serializer.INSTANCE.serialize(value.statusErrorValue, g); + g.writeEndObject(); + break; + } + case TEAM_SHARED_DROPBOX_ERROR: { + g.writeStartObject(); + writeTag("team_shared_dropbox_error", g); + g.writeFieldName("team_shared_dropbox_error"); + TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.serialize(value.teamSharedDropboxErrorValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderPermanentlyDeleteError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderPermanentlyDeleteError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + TeamFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = TeamFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderPermanentlyDeleteError.accessError(fieldValue); + } + else if ("status_error".equals(tag)) { + TeamFolderInvalidStatusError fieldValue = null; + expectField("status_error", p); + fieldValue = TeamFolderInvalidStatusError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderPermanentlyDeleteError.statusError(fieldValue); + } + else if ("team_shared_dropbox_error".equals(tag)) { + TeamFolderTeamSharedDropboxError fieldValue = null; + expectField("team_shared_dropbox_error", p); + fieldValue = TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderPermanentlyDeleteError.teamSharedDropboxError(fieldValue); + } + else if ("other".equals(tag)) { + value = TeamFolderPermanentlyDeleteError.OTHER; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteErrorException.java new file mode 100644 index 000000000..979cdfc2d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderPermanentlyDeleteErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamFolderPermanentlyDeleteError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderPermanentlyDelete(String)}.

+ */ +public class TeamFolderPermanentlyDeleteErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/permanently_delete + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#teamFolderPermanentlyDelete(String)}. + */ + public final TeamFolderPermanentlyDeleteError errorValue; + + public TeamFolderPermanentlyDeleteErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderPermanentlyDeleteError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameArg.java new file mode 100644 index 000000000..d161d6a30 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameArg.java @@ -0,0 +1,173 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +class TeamFolderRenameArg extends TeamFolderIdArg { + // struct team.TeamFolderRenameArg (team_folders.stone) + + @Nonnull + protected final String name; + + /** + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param name New team folder name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderRenameArg(@Nonnull String teamFolderId, @Nonnull String name) { + super(teamFolderId); + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * The ID of the team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamFolderId() { + return teamFolderId; + } + + /** + * New team folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderRenameArg other = (TeamFolderRenameArg) obj; + return ((this.teamFolderId == other.teamFolderId) || (this.teamFolderId.equals(other.teamFolderId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderRenameArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_folder_id"); + StoneSerializers.string().serialize(value.teamFolderId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderRenameArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderRenameArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamFolderId = null; + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_folder_id".equals(field)) { + f_teamFolderId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamFolderId == null) { + throw new JsonParseException(p, "Required field \"team_folder_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new TeamFolderRenameArg(f_teamFolderId, f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameError.java new file mode 100644 index 000000000..fa56f6200 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameError.java @@ -0,0 +1,526 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderRenameError { + // union team.TeamFolderRenameError (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderRenameError}. + */ + public enum Tag { + ACCESS_ERROR, // TeamFolderAccessError + STATUS_ERROR, // TeamFolderInvalidStatusError + TEAM_SHARED_DROPBOX_ERROR, // TeamFolderTeamSharedDropboxError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * The provided folder name cannot be used. + */ + INVALID_FOLDER_NAME, + /** + * There is already a team folder with the same name. + */ + FOLDER_NAME_ALREADY_USED, + /** + * The provided name cannot be used because it is reserved. + */ + FOLDER_NAME_RESERVED; + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamFolderRenameError OTHER = new TeamFolderRenameError().withTag(Tag.OTHER); + /** + * The provided folder name cannot be used. + */ + public static final TeamFolderRenameError INVALID_FOLDER_NAME = new TeamFolderRenameError().withTag(Tag.INVALID_FOLDER_NAME); + /** + * There is already a team folder with the same name. + */ + public static final TeamFolderRenameError FOLDER_NAME_ALREADY_USED = new TeamFolderRenameError().withTag(Tag.FOLDER_NAME_ALREADY_USED); + /** + * The provided name cannot be used because it is reserved. + */ + public static final TeamFolderRenameError FOLDER_NAME_RESERVED = new TeamFolderRenameError().withTag(Tag.FOLDER_NAME_RESERVED); + + private Tag _tag; + private TeamFolderAccessError accessErrorValue; + private TeamFolderInvalidStatusError statusErrorValue; + private TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderRenameError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderRenameError withTag(Tag _tag) { + TeamFolderRenameError result = new TeamFolderRenameError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderRenameError withTagAndAccessError(Tag _tag, TeamFolderAccessError accessErrorValue) { + TeamFolderRenameError result = new TeamFolderRenameError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param statusErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderRenameError withTagAndStatusError(Tag _tag, TeamFolderInvalidStatusError statusErrorValue) { + TeamFolderRenameError result = new TeamFolderRenameError(); + result._tag = _tag; + result.statusErrorValue = statusErrorValue; + return result; + } + + /** + * + * @param teamSharedDropboxErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderRenameError withTagAndTeamSharedDropboxError(Tag _tag, TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue) { + TeamFolderRenameError result = new TeamFolderRenameError(); + result._tag = _tag; + result.teamSharedDropboxErrorValue = teamSharedDropboxErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderRenameError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderRenameError} that has its tag set + * to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderRenameError} with its tag set to + * {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderRenameError accessError(TeamFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderRenameError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link TeamFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public TeamFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + */ + public boolean isStatusError() { + return this._tag == Tag.STATUS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderRenameError} that has its tag set + * to {@link Tag#STATUS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderRenameError} with its tag set to + * {@link Tag#STATUS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderRenameError statusError(TeamFolderInvalidStatusError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderRenameError().withTagAndStatusError(Tag.STATUS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#STATUS_ERROR}. + * + * @return The {@link TeamFolderInvalidStatusError} value associated with + * this instance if {@link #isStatusError} is {@code true}. + * + * @throws IllegalStateException If {@link #isStatusError} is {@code + * false}. + */ + public TeamFolderInvalidStatusError getStatusErrorValue() { + if (this._tag != Tag.STATUS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.STATUS_ERROR, but was Tag." + this._tag.name()); + } + return statusErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + */ + public boolean isTeamSharedDropboxError() { + return this._tag == Tag.TEAM_SHARED_DROPBOX_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderRenameError} that has its tag set + * to {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderRenameError} with its tag set to + * {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderRenameError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderRenameError().withTagAndTeamSharedDropboxError(Tag.TEAM_SHARED_DROPBOX_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @return The {@link TeamFolderTeamSharedDropboxError} value associated + * with this instance if {@link #isTeamSharedDropboxError} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamSharedDropboxError} is + * {@code false}. + */ + public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue() { + if (this._tag != Tag.TEAM_SHARED_DROPBOX_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SHARED_DROPBOX_ERROR, but was Tag." + this._tag.name()); + } + return teamSharedDropboxErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_FOLDER_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_FOLDER_NAME}, {@code false} otherwise. + */ + public boolean isInvalidFolderName() { + return this._tag == Tag.INVALID_FOLDER_NAME; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_NAME_ALREADY_USED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_NAME_ALREADY_USED}, {@code false} otherwise. + */ + public boolean isFolderNameAlreadyUsed() { + return this._tag == Tag.FOLDER_NAME_ALREADY_USED; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_NAME_RESERVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_NAME_RESERVED}, {@code false} otherwise. + */ + public boolean isFolderNameReserved() { + return this._tag == Tag.FOLDER_NAME_RESERVED; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.statusErrorValue, + this.teamSharedDropboxErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderRenameError) { + TeamFolderRenameError other = (TeamFolderRenameError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case STATUS_ERROR: + return (this.statusErrorValue == other.statusErrorValue) || (this.statusErrorValue.equals(other.statusErrorValue)); + case TEAM_SHARED_DROPBOX_ERROR: + return (this.teamSharedDropboxErrorValue == other.teamSharedDropboxErrorValue) || (this.teamSharedDropboxErrorValue.equals(other.teamSharedDropboxErrorValue)); + case OTHER: + return true; + case INVALID_FOLDER_NAME: + return true; + case FOLDER_NAME_ALREADY_USED: + return true; + case FOLDER_NAME_RESERVED: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderRenameError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + TeamFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case STATUS_ERROR: { + g.writeStartObject(); + writeTag("status_error", g); + g.writeFieldName("status_error"); + TeamFolderInvalidStatusError.Serializer.INSTANCE.serialize(value.statusErrorValue, g); + g.writeEndObject(); + break; + } + case TEAM_SHARED_DROPBOX_ERROR: { + g.writeStartObject(); + writeTag("team_shared_dropbox_error", g); + g.writeFieldName("team_shared_dropbox_error"); + TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.serialize(value.teamSharedDropboxErrorValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case INVALID_FOLDER_NAME: { + g.writeString("invalid_folder_name"); + break; + } + case FOLDER_NAME_ALREADY_USED: { + g.writeString("folder_name_already_used"); + break; + } + case FOLDER_NAME_RESERVED: { + g.writeString("folder_name_reserved"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderRenameError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderRenameError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + TeamFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = TeamFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderRenameError.accessError(fieldValue); + } + else if ("status_error".equals(tag)) { + TeamFolderInvalidStatusError fieldValue = null; + expectField("status_error", p); + fieldValue = TeamFolderInvalidStatusError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderRenameError.statusError(fieldValue); + } + else if ("team_shared_dropbox_error".equals(tag)) { + TeamFolderTeamSharedDropboxError fieldValue = null; + expectField("team_shared_dropbox_error", p); + fieldValue = TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderRenameError.teamSharedDropboxError(fieldValue); + } + else if ("other".equals(tag)) { + value = TeamFolderRenameError.OTHER; + } + else if ("invalid_folder_name".equals(tag)) { + value = TeamFolderRenameError.INVALID_FOLDER_NAME; + } + else if ("folder_name_already_used".equals(tag)) { + value = TeamFolderRenameError.FOLDER_NAME_ALREADY_USED; + } + else if ("folder_name_reserved".equals(tag)) { + value = TeamFolderRenameError.FOLDER_NAME_RESERVED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameErrorException.java new file mode 100644 index 000000000..c5f71f3f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamFolderRenameError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderRename(String,String)}.

+ */ +public class TeamFolderRenameErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/rename + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#teamFolderRename(String,String)}. + */ + public final TeamFolderRenameError errorValue; + + public TeamFolderRenameErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderRenameError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderStatus.java new file mode 100644 index 000000000..27ace9ba8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderStatus.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamFolderStatus { + // union team.TeamFolderStatus (team_folders.stone) + /** + * The team folder and sub-folders are available to all members. + */ + ACTIVE, + /** + * The team folder is not accessible outside of the team folder manager. + */ + ARCHIVED, + /** + * The team folder is not accessible outside of the team folder manager. + */ + ARCHIVE_IN_PROGRESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACTIVE: { + g.writeString("active"); + break; + } + case ARCHIVED: { + g.writeString("archived"); + break; + } + case ARCHIVE_IN_PROGRESS: { + g.writeString("archive_in_progress"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamFolderStatus deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("active".equals(tag)) { + value = TeamFolderStatus.ACTIVE; + } + else if ("archived".equals(tag)) { + value = TeamFolderStatus.ARCHIVED; + } + else if ("archive_in_progress".equals(tag)) { + value = TeamFolderStatus.ARCHIVE_IN_PROGRESS; + } + else { + value = TeamFolderStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError.java new file mode 100644 index 000000000..27a214b24 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderTeamSharedDropboxError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamFolderTeamSharedDropboxError { + // union team.TeamFolderTeamSharedDropboxError (team_folders.stone) + /** + * This action is not allowed for a shared team root. + */ + DISALLOWED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderTeamSharedDropboxError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISALLOWED: { + g.writeString("disallowed"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamFolderTeamSharedDropboxError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderTeamSharedDropboxError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disallowed".equals(tag)) { + value = TeamFolderTeamSharedDropboxError.DISALLOWED; + } + else { + value = TeamFolderTeamSharedDropboxError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsArg.java new file mode 100644 index 000000000..13fd2d43e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsArg.java @@ -0,0 +1,307 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.files.ContentSyncSettingArg; +import com.dropbox.core.v2.files.SyncSettingArg; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class TeamFolderUpdateSyncSettingsArg extends TeamFolderIdArg { + // struct team.TeamFolderUpdateSyncSettingsArg (team_folders.stone) + + @Nullable + protected final SyncSettingArg syncSetting; + @Nullable + protected final List contentSyncSettings; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param syncSetting Sync setting to apply to the team folder itself. Only + * meaningful if the team folder is not a shared team root. + * @param contentSyncSettings Sync settings to apply to contents of this + * team folder. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderUpdateSyncSettingsArg(@Nonnull String teamFolderId, @Nullable SyncSettingArg syncSetting, @Nullable List contentSyncSettings) { + super(teamFolderId); + this.syncSetting = syncSetting; + if (contentSyncSettings != null) { + for (ContentSyncSettingArg x : contentSyncSettings) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'contentSyncSettings' is null"); + } + } + } + this.contentSyncSettings = contentSyncSettings; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderUpdateSyncSettingsArg(@Nonnull String teamFolderId) { + this(teamFolderId, null, null); + } + + /** + * The ID of the team folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamFolderId() { + return teamFolderId; + } + + /** + * Sync setting to apply to the team folder itself. Only meaningful if the + * team folder is not a shared team root. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SyncSettingArg getSyncSetting() { + return syncSetting; + } + + /** + * Sync settings to apply to contents of this team folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getContentSyncSettings() { + return contentSyncSettings; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param teamFolderId The ID of the team folder. Must match pattern + * "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String teamFolderId) { + return new Builder(teamFolderId); + } + + /** + * Builder for {@link TeamFolderUpdateSyncSettingsArg}. + */ + public static class Builder { + protected final String teamFolderId; + + protected SyncSettingArg syncSetting; + protected List contentSyncSettings; + + protected Builder(String teamFolderId) { + if (teamFolderId == null) { + throw new IllegalArgumentException("Required value for 'teamFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", teamFolderId)) { + throw new IllegalArgumentException("String 'teamFolderId' does not match pattern"); + } + this.teamFolderId = teamFolderId; + this.syncSetting = null; + this.contentSyncSettings = null; + } + + /** + * Set value for optional field. + * + * @param syncSetting Sync setting to apply to the team folder itself. + * Only meaningful if the team folder is not a shared team root. + * + * @return this builder + */ + public Builder withSyncSetting(SyncSettingArg syncSetting) { + this.syncSetting = syncSetting; + return this; + } + + /** + * Set value for optional field. + * + * @param contentSyncSettings Sync settings to apply to contents of + * this team folder. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withContentSyncSettings(List contentSyncSettings) { + if (contentSyncSettings != null) { + for (ContentSyncSettingArg x : contentSyncSettings) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'contentSyncSettings' is null"); + } + } + } + this.contentSyncSettings = contentSyncSettings; + return this; + } + + /** + * Builds an instance of {@link TeamFolderUpdateSyncSettingsArg} + * configured with this builder's values + * + * @return new instance of {@link TeamFolderUpdateSyncSettingsArg} + */ + public TeamFolderUpdateSyncSettingsArg build() { + return new TeamFolderUpdateSyncSettingsArg(teamFolderId, syncSetting, contentSyncSettings); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.syncSetting, + this.contentSyncSettings + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderUpdateSyncSettingsArg other = (TeamFolderUpdateSyncSettingsArg) obj; + return ((this.teamFolderId == other.teamFolderId) || (this.teamFolderId.equals(other.teamFolderId))) + && ((this.syncSetting == other.syncSetting) || (this.syncSetting != null && this.syncSetting.equals(other.syncSetting))) + && ((this.contentSyncSettings == other.contentSyncSettings) || (this.contentSyncSettings != null && this.contentSyncSettings.equals(other.contentSyncSettings))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderUpdateSyncSettingsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_folder_id"); + StoneSerializers.string().serialize(value.teamFolderId, g); + if (value.syncSetting != null) { + g.writeFieldName("sync_setting"); + StoneSerializers.nullable(SyncSettingArg.Serializer.INSTANCE).serialize(value.syncSetting, g); + } + if (value.contentSyncSettings != null) { + g.writeFieldName("content_sync_settings"); + StoneSerializers.nullable(StoneSerializers.list(ContentSyncSettingArg.Serializer.INSTANCE)).serialize(value.contentSyncSettings, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderUpdateSyncSettingsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderUpdateSyncSettingsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamFolderId = null; + SyncSettingArg f_syncSetting = null; + List f_contentSyncSettings = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_folder_id".equals(field)) { + f_teamFolderId = StoneSerializers.string().deserialize(p); + } + else if ("sync_setting".equals(field)) { + f_syncSetting = StoneSerializers.nullable(SyncSettingArg.Serializer.INSTANCE).deserialize(p); + } + else if ("content_sync_settings".equals(field)) { + f_contentSyncSettings = StoneSerializers.nullable(StoneSerializers.list(ContentSyncSettingArg.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamFolderId == null) { + throw new JsonParseException(p, "Required field \"team_folder_id\" missing."); + } + value = new TeamFolderUpdateSyncSettingsArg(f_teamFolderId, f_syncSetting, f_contentSyncSettings); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsBuilder.java new file mode 100644 index 000000000..1bdf48142 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsBuilder.java @@ -0,0 +1,79 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.files.ContentSyncSettingArg; +import com.dropbox.core.v2.files.SyncSettingArg; + +import java.util.List; + +/** + * The request builder returned by {@link + * DbxTeamTeamRequests#teamFolderUpdateSyncSettingsBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class TeamFolderUpdateSyncSettingsBuilder { + private final DbxTeamTeamRequests _client; + private final TeamFolderUpdateSyncSettingsArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + TeamFolderUpdateSyncSettingsBuilder(DbxTeamTeamRequests _client, TeamFolderUpdateSyncSettingsArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @param syncSetting Sync setting to apply to the team folder itself. Only + * meaningful if the team folder is not a shared team root. + * + * @return this builder + */ + public TeamFolderUpdateSyncSettingsBuilder withSyncSetting(SyncSettingArg syncSetting) { + this._builder.withSyncSetting(syncSetting); + return this; + } + + /** + * Set value for optional field. + * + * @param contentSyncSettings Sync settings to apply to contents of this + * team folder. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderUpdateSyncSettingsBuilder withContentSyncSettings(List contentSyncSettings) { + this._builder.withContentSyncSettings(contentSyncSettings); + return this; + } + + /** + * Issues the request. + */ + public TeamFolderMetadata start() throws TeamFolderUpdateSyncSettingsErrorException, DbxException { + TeamFolderUpdateSyncSettingsArg arg_ = this._builder.build(); + return _client.teamFolderUpdateSyncSettings(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError.java new file mode 100644 index 000000000..1e14caabd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsError.java @@ -0,0 +1,530 @@ +/* DO NOT EDIT */ +/* This file was generated from team_folders.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.v2.files.SyncSettingsError; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class TeamFolderUpdateSyncSettingsError { + // union team.TeamFolderUpdateSyncSettingsError (team_folders.stone) + + /** + * Discriminating tag type for {@link TeamFolderUpdateSyncSettingsError}. + */ + public enum Tag { + ACCESS_ERROR, // TeamFolderAccessError + STATUS_ERROR, // TeamFolderInvalidStatusError + TEAM_SHARED_DROPBOX_ERROR, // TeamFolderTeamSharedDropboxError + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER, + /** + * An error occurred setting the sync settings. + */ + SYNC_SETTINGS_ERROR; // SyncSettingsError + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamFolderUpdateSyncSettingsError OTHER = new TeamFolderUpdateSyncSettingsError().withTag(Tag.OTHER); + + private Tag _tag; + private TeamFolderAccessError accessErrorValue; + private TeamFolderInvalidStatusError statusErrorValue; + private TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue; + private SyncSettingsError syncSettingsErrorValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamFolderUpdateSyncSettingsError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TeamFolderUpdateSyncSettingsError withTag(Tag _tag) { + TeamFolderUpdateSyncSettingsError result = new TeamFolderUpdateSyncSettingsError(); + result._tag = _tag; + return result; + } + + /** + * + * @param accessErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderUpdateSyncSettingsError withTagAndAccessError(Tag _tag, TeamFolderAccessError accessErrorValue) { + TeamFolderUpdateSyncSettingsError result = new TeamFolderUpdateSyncSettingsError(); + result._tag = _tag; + result.accessErrorValue = accessErrorValue; + return result; + } + + /** + * + * @param statusErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderUpdateSyncSettingsError withTagAndStatusError(Tag _tag, TeamFolderInvalidStatusError statusErrorValue) { + TeamFolderUpdateSyncSettingsError result = new TeamFolderUpdateSyncSettingsError(); + result._tag = _tag; + result.statusErrorValue = statusErrorValue; + return result; + } + + /** + * + * @param teamSharedDropboxErrorValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderUpdateSyncSettingsError withTagAndTeamSharedDropboxError(Tag _tag, TeamFolderTeamSharedDropboxError teamSharedDropboxErrorValue) { + TeamFolderUpdateSyncSettingsError result = new TeamFolderUpdateSyncSettingsError(); + result._tag = _tag; + result.teamSharedDropboxErrorValue = teamSharedDropboxErrorValue; + return result; + } + + /** + * + * @param syncSettingsErrorValue An error occurred setting the sync + * settings. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamFolderUpdateSyncSettingsError withTagAndSyncSettingsError(Tag _tag, SyncSettingsError syncSettingsErrorValue) { + TeamFolderUpdateSyncSettingsError result = new TeamFolderUpdateSyncSettingsError(); + result._tag = _tag; + result.syncSettingsErrorValue = syncSettingsErrorValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamFolderUpdateSyncSettingsError}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCESS_ERROR}, {@code false} otherwise. + */ + public boolean isAccessError() { + return this._tag == Tag.ACCESS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderUpdateSyncSettingsError} that has + * its tag set to {@link Tag#ACCESS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderUpdateSyncSettingsError} with its + * tag set to {@link Tag#ACCESS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderUpdateSyncSettingsError accessError(TeamFolderAccessError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderUpdateSyncSettingsError().withTagAndAccessError(Tag.ACCESS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#ACCESS_ERROR}. + * + * @return The {@link TeamFolderAccessError} value associated with this + * instance if {@link #isAccessError} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccessError} is {@code + * false}. + */ + public TeamFolderAccessError getAccessErrorValue() { + if (this._tag != Tag.ACCESS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.ACCESS_ERROR, but was Tag." + this._tag.name()); + } + return accessErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#STATUS_ERROR}, {@code false} otherwise. + */ + public boolean isStatusError() { + return this._tag == Tag.STATUS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderUpdateSyncSettingsError} that has + * its tag set to {@link Tag#STATUS_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderUpdateSyncSettingsError} with its + * tag set to {@link Tag#STATUS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderUpdateSyncSettingsError statusError(TeamFolderInvalidStatusError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderUpdateSyncSettingsError().withTagAndStatusError(Tag.STATUS_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#STATUS_ERROR}. + * + * @return The {@link TeamFolderInvalidStatusError} value associated with + * this instance if {@link #isStatusError} is {@code true}. + * + * @throws IllegalStateException If {@link #isStatusError} is {@code + * false}. + */ + public TeamFolderInvalidStatusError getStatusErrorValue() { + if (this._tag != Tag.STATUS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.STATUS_ERROR, but was Tag." + this._tag.name()); + } + return statusErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SHARED_DROPBOX_ERROR}, {@code false} otherwise. + */ + public boolean isTeamSharedDropboxError() { + return this._tag == Tag.TEAM_SHARED_DROPBOX_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderUpdateSyncSettingsError} that has + * its tag set to {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderUpdateSyncSettingsError} with its + * tag set to {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderUpdateSyncSettingsError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderUpdateSyncSettingsError().withTagAndTeamSharedDropboxError(Tag.TEAM_SHARED_DROPBOX_ERROR, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_SHARED_DROPBOX_ERROR}. + * + * @return The {@link TeamFolderTeamSharedDropboxError} value associated + * with this instance if {@link #isTeamSharedDropboxError} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamSharedDropboxError} is + * {@code false}. + */ + public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue() { + if (this._tag != Tag.TEAM_SHARED_DROPBOX_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SHARED_DROPBOX_ERROR, but was Tag." + this._tag.name()); + } + return teamSharedDropboxErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SYNC_SETTINGS_ERROR}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SYNC_SETTINGS_ERROR}, {@code false} otherwise. + */ + public boolean isSyncSettingsError() { + return this._tag == Tag.SYNC_SETTINGS_ERROR; + } + + /** + * Returns an instance of {@code TeamFolderUpdateSyncSettingsError} that has + * its tag set to {@link Tag#SYNC_SETTINGS_ERROR}. + * + *

An error occurred setting the sync settings.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamFolderUpdateSyncSettingsError} with its + * tag set to {@link Tag#SYNC_SETTINGS_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamFolderUpdateSyncSettingsError syncSettingsError(SyncSettingsError value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamFolderUpdateSyncSettingsError().withTagAndSyncSettingsError(Tag.SYNC_SETTINGS_ERROR, value); + } + + /** + * An error occurred setting the sync settings. + * + *

This instance must be tagged as {@link Tag#SYNC_SETTINGS_ERROR}.

+ * + * @return The {@link SyncSettingsError} value associated with this instance + * if {@link #isSyncSettingsError} is {@code true}. + * + * @throws IllegalStateException If {@link #isSyncSettingsError} is {@code + * false}. + */ + public SyncSettingsError getSyncSettingsErrorValue() { + if (this._tag != Tag.SYNC_SETTINGS_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.SYNC_SETTINGS_ERROR, but was Tag." + this._tag.name()); + } + return syncSettingsErrorValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.accessErrorValue, + this.statusErrorValue, + this.teamSharedDropboxErrorValue, + this.syncSettingsErrorValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamFolderUpdateSyncSettingsError) { + TeamFolderUpdateSyncSettingsError other = (TeamFolderUpdateSyncSettingsError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACCESS_ERROR: + return (this.accessErrorValue == other.accessErrorValue) || (this.accessErrorValue.equals(other.accessErrorValue)); + case STATUS_ERROR: + return (this.statusErrorValue == other.statusErrorValue) || (this.statusErrorValue.equals(other.statusErrorValue)); + case TEAM_SHARED_DROPBOX_ERROR: + return (this.teamSharedDropboxErrorValue == other.teamSharedDropboxErrorValue) || (this.teamSharedDropboxErrorValue.equals(other.teamSharedDropboxErrorValue)); + case OTHER: + return true; + case SYNC_SETTINGS_ERROR: + return (this.syncSettingsErrorValue == other.syncSettingsErrorValue) || (this.syncSettingsErrorValue.equals(other.syncSettingsErrorValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderUpdateSyncSettingsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACCESS_ERROR: { + g.writeStartObject(); + writeTag("access_error", g); + g.writeFieldName("access_error"); + TeamFolderAccessError.Serializer.INSTANCE.serialize(value.accessErrorValue, g); + g.writeEndObject(); + break; + } + case STATUS_ERROR: { + g.writeStartObject(); + writeTag("status_error", g); + g.writeFieldName("status_error"); + TeamFolderInvalidStatusError.Serializer.INSTANCE.serialize(value.statusErrorValue, g); + g.writeEndObject(); + break; + } + case TEAM_SHARED_DROPBOX_ERROR: { + g.writeStartObject(); + writeTag("team_shared_dropbox_error", g); + g.writeFieldName("team_shared_dropbox_error"); + TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.serialize(value.teamSharedDropboxErrorValue, g); + g.writeEndObject(); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case SYNC_SETTINGS_ERROR: { + g.writeStartObject(); + writeTag("sync_settings_error", g); + g.writeFieldName("sync_settings_error"); + SyncSettingsError.Serializer.INSTANCE.serialize(value.syncSettingsErrorValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamFolderUpdateSyncSettingsError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamFolderUpdateSyncSettingsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("access_error".equals(tag)) { + TeamFolderAccessError fieldValue = null; + expectField("access_error", p); + fieldValue = TeamFolderAccessError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderUpdateSyncSettingsError.accessError(fieldValue); + } + else if ("status_error".equals(tag)) { + TeamFolderInvalidStatusError fieldValue = null; + expectField("status_error", p); + fieldValue = TeamFolderInvalidStatusError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderUpdateSyncSettingsError.statusError(fieldValue); + } + else if ("team_shared_dropbox_error".equals(tag)) { + TeamFolderTeamSharedDropboxError fieldValue = null; + expectField("team_shared_dropbox_error", p); + fieldValue = TeamFolderTeamSharedDropboxError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderUpdateSyncSettingsError.teamSharedDropboxError(fieldValue); + } + else if ("other".equals(tag)) { + value = TeamFolderUpdateSyncSettingsError.OTHER; + } + else if ("sync_settings_error".equals(tag)) { + SyncSettingsError fieldValue = null; + expectField("sync_settings_error", p); + fieldValue = SyncSettingsError.Serializer.INSTANCE.deserialize(p); + value = TeamFolderUpdateSyncSettingsError.syncSettingsError(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsErrorException.java new file mode 100644 index 000000000..f30ee7a22 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderUpdateSyncSettingsErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamFolderUpdateSyncSettingsError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#teamFolderUpdateSyncSettings(String)}.

+ */ +public class TeamFolderUpdateSyncSettingsErrorException extends DbxApiException { + // exception for routes: + // 2/team/team_folder/update_sync_settings + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#teamFolderUpdateSyncSettings(String)}. + */ + public final TeamFolderUpdateSyncSettingsError errorValue; + + public TeamFolderUpdateSyncSettingsErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderUpdateSyncSettingsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamGetInfoResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamGetInfoResult.java new file mode 100644 index 000000000..ec732573f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamGetInfoResult.java @@ -0,0 +1,292 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.TeamMemberPolicies; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamGetInfoResult { + // struct team.TeamGetInfoResult (team.stone) + + @Nonnull + protected final String name; + @Nonnull + protected final String teamId; + protected final long numLicensedUsers; + protected final long numProvisionedUsers; + protected final long numUsedLicenses; + @Nonnull + protected final TeamMemberPolicies policies; + + /** + * + * @param name The name of the team. Must not be {@code null}. + * @param teamId The ID of the team. Must not be {@code null}. + * @param numLicensedUsers The number of licenses available to the team. + * @param numProvisionedUsers The number of accounts that have been invited + * or are already active members of the team. + * @param policies Must not be {@code null}. + * @param numUsedLicenses The number of licenses used on the team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamGetInfoResult(@Nonnull String name, @Nonnull String teamId, long numLicensedUsers, long numProvisionedUsers, @Nonnull TeamMemberPolicies policies, long numUsedLicenses) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (teamId == null) { + throw new IllegalArgumentException("Required value for 'teamId' is null"); + } + this.teamId = teamId; + this.numLicensedUsers = numLicensedUsers; + this.numProvisionedUsers = numProvisionedUsers; + this.numUsedLicenses = numUsedLicenses; + if (policies == null) { + throw new IllegalArgumentException("Required value for 'policies' is null"); + } + this.policies = policies; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name The name of the team. Must not be {@code null}. + * @param teamId The ID of the team. Must not be {@code null}. + * @param numLicensedUsers The number of licenses available to the team. + * @param numProvisionedUsers The number of accounts that have been invited + * or are already active members of the team. + * @param policies Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamGetInfoResult(@Nonnull String name, @Nonnull String teamId, long numLicensedUsers, long numProvisionedUsers, @Nonnull TeamMemberPolicies policies) { + this(name, teamId, numLicensedUsers, numProvisionedUsers, policies, 0L); + } + + /** + * The name of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * The ID of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamId() { + return teamId; + } + + /** + * The number of licenses available to the team. + * + * @return value for this field. + */ + public long getNumLicensedUsers() { + return numLicensedUsers; + } + + /** + * The number of accounts that have been invited or are already active + * members of the team. + * + * @return value for this field. + */ + public long getNumProvisionedUsers() { + return numProvisionedUsers; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberPolicies getPolicies() { + return policies; + } + + /** + * The number of licenses used on the team. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 0L. + */ + public long getNumUsedLicenses() { + return numUsedLicenses; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.teamId, + this.numLicensedUsers, + this.numProvisionedUsers, + this.numUsedLicenses, + this.policies + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamGetInfoResult other = (TeamGetInfoResult) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.teamId == other.teamId) || (this.teamId.equals(other.teamId))) + && (this.numLicensedUsers == other.numLicensedUsers) + && (this.numProvisionedUsers == other.numProvisionedUsers) + && ((this.policies == other.policies) || (this.policies.equals(other.policies))) + && (this.numUsedLicenses == other.numUsedLicenses) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamGetInfoResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("team_id"); + StoneSerializers.string().serialize(value.teamId, g); + g.writeFieldName("num_licensed_users"); + StoneSerializers.uInt32().serialize(value.numLicensedUsers, g); + g.writeFieldName("num_provisioned_users"); + StoneSerializers.uInt32().serialize(value.numProvisionedUsers, g); + g.writeFieldName("policies"); + TeamMemberPolicies.Serializer.INSTANCE.serialize(value.policies, g); + g.writeFieldName("num_used_licenses"); + StoneSerializers.uInt32().serialize(value.numUsedLicenses, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamGetInfoResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamGetInfoResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_name = null; + String f_teamId = null; + Long f_numLicensedUsers = null; + Long f_numProvisionedUsers = null; + TeamMemberPolicies f_policies = null; + Long f_numUsedLicenses = 0L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("team_id".equals(field)) { + f_teamId = StoneSerializers.string().deserialize(p); + } + else if ("num_licensed_users".equals(field)) { + f_numLicensedUsers = StoneSerializers.uInt32().deserialize(p); + } + else if ("num_provisioned_users".equals(field)) { + f_numProvisionedUsers = StoneSerializers.uInt32().deserialize(p); + } + else if ("policies".equals(field)) { + f_policies = TeamMemberPolicies.Serializer.INSTANCE.deserialize(p); + } + else if ("num_used_licenses".equals(field)) { + f_numUsedLicenses = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_teamId == null) { + throw new JsonParseException(p, "Required field \"team_id\" missing."); + } + if (f_numLicensedUsers == null) { + throw new JsonParseException(p, "Required field \"num_licensed_users\" missing."); + } + if (f_numProvisionedUsers == null) { + throw new JsonParseException(p, "Required field \"num_provisioned_users\" missing."); + } + if (f_policies == null) { + throw new JsonParseException(p, "Required field \"policies\" missing."); + } + value = new TeamGetInfoResult(f_name, f_teamId, f_numLicensedUsers, f_numProvisionedUsers, f_policies, f_numUsedLicenses); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfo.java new file mode 100644 index 000000000..689d5f8d7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfo.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Information about a team member. + */ +public class TeamMemberInfo { + // struct team.TeamMemberInfo (team_members.stone) + + @Nonnull + protected final TeamMemberProfile profile; + @Nonnull + protected final AdminTier role; + + /** + * Information about a team member. + * + * @param profile Profile of a user as a member of a team. Must not be + * {@code null}. + * @param role The user's role in the team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfo(@Nonnull TeamMemberProfile profile, @Nonnull AdminTier role) { + if (profile == null) { + throw new IllegalArgumentException("Required value for 'profile' is null"); + } + this.profile = profile; + if (role == null) { + throw new IllegalArgumentException("Required value for 'role' is null"); + } + this.role = role; + } + + /** + * Profile of a user as a member of a team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberProfile getProfile() { + return profile; + } + + /** + * The user's role in the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminTier getRole() { + return role; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.profile, + this.role + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberInfo other = (TeamMemberInfo) obj; + return ((this.profile == other.profile) || (this.profile.equals(other.profile))) + && ((this.role == other.role) || (this.role.equals(other.role))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("profile"); + TeamMemberProfile.Serializer.INSTANCE.serialize(value.profile, g); + g.writeFieldName("role"); + AdminTier.Serializer.INSTANCE.serialize(value.role, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMemberProfile f_profile = null; + AdminTier f_role = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("profile".equals(field)) { + f_profile = TeamMemberProfile.Serializer.INSTANCE.deserialize(p); + } + else if ("role".equals(field)) { + f_role = AdminTier.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_profile == null) { + throw new JsonParseException(p, "Required field \"profile\" missing."); + } + if (f_role == null) { + throw new JsonParseException(p, "Required field \"role\" missing."); + } + value = new TeamMemberInfo(f_profile, f_role); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfoV2.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfoV2.java new file mode 100644 index 000000000..055e11ade --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfoV2.java @@ -0,0 +1,202 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about a team member. + */ +public class TeamMemberInfoV2 { + // struct team.TeamMemberInfoV2 (team_members.stone) + + @Nonnull + protected final TeamMemberProfile profile; + @Nullable + protected final List roles; + + /** + * Information about a team member. + * + * @param profile Profile of a user as a member of a team. Must not be + * {@code null}. + * @param roles The user's roles in the team. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfoV2(@Nonnull TeamMemberProfile profile, @Nullable List roles) { + if (profile == null) { + throw new IllegalArgumentException("Required value for 'profile' is null"); + } + this.profile = profile; + if (roles != null) { + for (TeamMemberRole x : roles) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'roles' is null"); + } + } + } + this.roles = roles; + } + + /** + * Information about a team member. + * + *

The default values for unset fields will be used.

+ * + * @param profile Profile of a user as a member of a team. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfoV2(@Nonnull TeamMemberProfile profile) { + this(profile, null); + } + + /** + * Profile of a user as a member of a team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberProfile getProfile() { + return profile; + } + + /** + * The user's roles in the team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getRoles() { + return roles; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.profile, + this.roles + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberInfoV2 other = (TeamMemberInfoV2) obj; + return ((this.profile == other.profile) || (this.profile.equals(other.profile))) + && ((this.roles == other.roles) || (this.roles != null && this.roles.equals(other.roles))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberInfoV2 value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("profile"); + TeamMemberProfile.Serializer.INSTANCE.serialize(value.profile, g); + if (value.roles != null) { + g.writeFieldName("roles"); + StoneSerializers.nullable(StoneSerializers.list(TeamMemberRole.Serializer.INSTANCE)).serialize(value.roles, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberInfoV2 deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberInfoV2 value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMemberProfile f_profile = null; + List f_roles = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("profile".equals(field)) { + f_profile = TeamMemberProfile.Serializer.INSTANCE.deserialize(p); + } + else if ("roles".equals(field)) { + f_roles = StoneSerializers.nullable(StoneSerializers.list(TeamMemberRole.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_profile == null) { + throw new JsonParseException(p, "Required field \"profile\" missing."); + } + value = new TeamMemberInfoV2(f_profile, f_roles); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfoV2Result.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfoV2Result.java new file mode 100644 index 000000000..aff97a43c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberInfoV2Result.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + */ +public class TeamMemberInfoV2Result { + // struct team.TeamMemberInfoV2Result (team_members.stone) + + @Nonnull + protected final TeamMemberInfoV2 memberInfo; + + /** + * Information about a team member, after the change, like at {@link + * DbxTeamTeamRequests#membersSetProfileV2(UserSelectorArg)}. + * + * @param memberInfo Member info, after the change. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberInfoV2Result(@Nonnull TeamMemberInfoV2 memberInfo) { + if (memberInfo == null) { + throw new IllegalArgumentException("Required value for 'memberInfo' is null"); + } + this.memberInfo = memberInfo; + } + + /** + * Member info, after the change. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberInfoV2 getMemberInfo() { + return memberInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.memberInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberInfoV2Result other = (TeamMemberInfoV2Result) obj; + return (this.memberInfo == other.memberInfo) || (this.memberInfo.equals(other.memberInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberInfoV2Result value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("member_info"); + TeamMemberInfoV2.Serializer.INSTANCE.serialize(value.memberInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberInfoV2Result deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberInfoV2Result value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMemberInfoV2 f_memberInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("member_info".equals(field)) { + f_memberInfo = TeamMemberInfoV2.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_memberInfo == null) { + throw new JsonParseException(p, "Required field \"member_info\" missing."); + } + value = new TeamMemberInfoV2Result(f_memberInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberProfile.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberProfile.java new file mode 100644 index 000000000..2b0130f94 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberProfile.java @@ -0,0 +1,755 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.secondaryemails.SecondaryEmail; +import com.dropbox.core.v2.users.Name; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Profile of a user as a member of a team. + */ +public class TeamMemberProfile extends MemberProfile { + // struct team.TeamMemberProfile (team_members.stone) + + @Nonnull + protected final List groups; + @Nonnull + protected final String memberFolderId; + + /** + * Profile of a user as a member of a team. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param teamMemberId ID of user as a member of a team. Must not be {@code + * null}. + * @param email Email address of user. Must not be {@code null}. + * @param emailVerified Is true if the user's email is verified to be owned + * by the user. + * @param status The user's status as a member of a specific team. Must not + * be {@code null}. + * @param name Representations for a person's name. Must not be {@code + * null}. + * @param membershipType The user's membership type: full (normal team + * member) vs limited (does not use a license; no access to the team's + * shared quota). Must not be {@code null}. + * @param groups List of group IDs of groups that the user belongs to. Must + * not contain a {@code null} item and not be {@code null}. + * @param memberFolderId The namespace id of the user's root folder. Must + * match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * @param externalId External ID that a team can attach to the user. An + * application using the API may find it easier to use their own IDs + * instead of Dropbox IDs like account_id or team_member_id. + * @param accountId A user's account identifier. Must have length of at + * least 40 and have length of at most 40. + * @param secondaryEmails Secondary emails of a user. Must not contain a + * {@code null} item. + * @param invitedOn The date and time the user was invited to the team + * (contains value only when the member's status matches {@link + * TeamMemberStatus#INVITED}). + * @param joinedOn The date and time the user joined as a member of a + * specific team. + * @param suspendedOn The date and time the user was suspended from the + * team (contains value only when the member's status matches {@link + * TeamMemberStatus#SUSPENDED}). + * @param persistentId Persistent ID that a team can attach to the user. + * The persistent ID is unique ID to be used for SAML authentication. + * @param isDirectoryRestricted Whether the user is a directory restricted + * user. + * @param profilePhotoUrl URL for the photo representing the user, if one + * is set. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType, @Nonnull List groups, @Nonnull String memberFolderId, @Nullable String externalId, @Nullable String accountId, @Nullable List secondaryEmails, @Nullable Date invitedOn, @Nullable Date joinedOn, @Nullable Date suspendedOn, @Nullable String persistentId, @Nullable Boolean isDirectoryRestricted, @Nullable String profilePhotoUrl) { + super(teamMemberId, email, emailVerified, status, name, membershipType, externalId, accountId, secondaryEmails, invitedOn, joinedOn, suspendedOn, persistentId, isDirectoryRestricted, profilePhotoUrl); + if (groups == null) { + throw new IllegalArgumentException("Required value for 'groups' is null"); + } + for (String x : groups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'groups' is null"); + } + } + this.groups = groups; + if (memberFolderId == null) { + throw new IllegalArgumentException("Required value for 'memberFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", memberFolderId)) { + throw new IllegalArgumentException("String 'memberFolderId' does not match pattern"); + } + this.memberFolderId = memberFolderId; + } + + /** + * Profile of a user as a member of a team. + * + *

The default values for unset fields will be used.

+ * + * @param teamMemberId ID of user as a member of a team. Must not be {@code + * null}. + * @param email Email address of user. Must not be {@code null}. + * @param emailVerified Is true if the user's email is verified to be owned + * by the user. + * @param status The user's status as a member of a specific team. Must not + * be {@code null}. + * @param name Representations for a person's name. Must not be {@code + * null}. + * @param membershipType The user's membership type: full (normal team + * member) vs limited (does not use a license; no access to the team's + * shared quota). Must not be {@code null}. + * @param groups List of group IDs of groups that the user belongs to. Must + * not contain a {@code null} item and not be {@code null}. + * @param memberFolderId The namespace id of the user's root folder. Must + * match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberProfile(@Nonnull String teamMemberId, @Nonnull String email, boolean emailVerified, @Nonnull TeamMemberStatus status, @Nonnull Name name, @Nonnull TeamMembershipType membershipType, @Nonnull List groups, @Nonnull String memberFolderId) { + this(teamMemberId, email, emailVerified, status, name, membershipType, groups, memberFolderId, null, null, null, null, null, null, null, null, null); + } + + /** + * ID of user as a member of a team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * Email address of user. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEmail() { + return email; + } + + /** + * Is true if the user's email is verified to be owned by the user. + * + * @return value for this field. + */ + public boolean getEmailVerified() { + return emailVerified; + } + + /** + * The user's status as a member of a specific team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberStatus getStatus() { + return status; + } + + /** + * Representations for a person's name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Name getName() { + return name; + } + + /** + * The user's membership type: full (normal team member) vs limited (does + * not use a license; no access to the team's shared quota). + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMembershipType getMembershipType() { + return membershipType; + } + + /** + * List of group IDs of groups that the user belongs to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getGroups() { + return groups; + } + + /** + * The namespace id of the user's root folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getMemberFolderId() { + return memberFolderId; + } + + /** + * External ID that a team can attach to the user. An application using the + * API may find it easier to use their own IDs instead of Dropbox IDs like + * account_id or team_member_id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExternalId() { + return externalId; + } + + /** + * A user's account identifier. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * Secondary emails of a user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getSecondaryEmails() { + return secondaryEmails; + } + + /** + * The date and time the user was invited to the team (contains value only + * when the member's status matches {@link TeamMemberStatus#INVITED}). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getInvitedOn() { + return invitedOn; + } + + /** + * The date and time the user joined as a member of a specific team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getJoinedOn() { + return joinedOn; + } + + /** + * The date and time the user was suspended from the team (contains value + * only when the member's status matches {@link + * TeamMemberStatus#SUSPENDED}). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getSuspendedOn() { + return suspendedOn; + } + + /** + * Persistent ID that a team can attach to the user. The persistent ID is + * unique ID to be used for SAML authentication. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPersistentId() { + return persistentId; + } + + /** + * Whether the user is a directory restricted user. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsDirectoryRestricted() { + return isDirectoryRestricted; + } + + /** + * URL for the photo representing the user, if one is set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getProfilePhotoUrl() { + return profilePhotoUrl; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param teamMemberId ID of user as a member of a team. Must not be {@code + * null}. + * @param email Email address of user. Must not be {@code null}. + * @param emailVerified Is true if the user's email is verified to be owned + * by the user. + * @param status The user's status as a member of a specific team. Must not + * be {@code null}. + * @param name Representations for a person's name. Must not be {@code + * null}. + * @param membershipType The user's membership type: full (normal team + * member) vs limited (does not use a license; no access to the team's + * shared quota). Must not be {@code null}. + * @param groups List of group IDs of groups that the user belongs to. Must + * not contain a {@code null} item and not be {@code null}. + * @param memberFolderId The namespace id of the user's root folder. Must + * match pattern "{@code [-_0-9a-zA-Z:]+}" and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List groups, String memberFolderId) { + return new Builder(teamMemberId, email, emailVerified, status, name, membershipType, groups, memberFolderId); + } + + /** + * Builder for {@link TeamMemberProfile}. + */ + public static class Builder extends MemberProfile.Builder { + protected final List groups; + protected final String memberFolderId; + + protected Builder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List groups, String memberFolderId) { + super(teamMemberId, email, emailVerified, status, name, membershipType); + if (groups == null) { + throw new IllegalArgumentException("Required value for 'groups' is null"); + } + for (String x : groups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'groups' is null"); + } + } + this.groups = groups; + if (memberFolderId == null) { + throw new IllegalArgumentException("Required value for 'memberFolderId' is null"); + } + if (!Pattern.matches("[-_0-9a-zA-Z:]+", memberFolderId)) { + throw new IllegalArgumentException("String 'memberFolderId' does not match pattern"); + } + this.memberFolderId = memberFolderId; + } + + /** + * Set value for optional field. + * + * @param externalId External ID that a team can attach to the user. An + * application using the API may find it easier to use their own IDs + * instead of Dropbox IDs like account_id or team_member_id. + * + * @return this builder + */ + public Builder withExternalId(String externalId) { + super.withExternalId(externalId); + return this; + } + + /** + * Set value for optional field. + * + * @param accountId A user's account identifier. Must have length of at + * least 40 and have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + super.withAccountId(accountId); + return this; + } + + /** + * Set value for optional field. + * + * @param secondaryEmails Secondary emails of a user. Must not contain + * a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSecondaryEmails(List secondaryEmails) { + super.withSecondaryEmails(secondaryEmails); + return this; + } + + /** + * Set value for optional field. + * + * @param invitedOn The date and time the user was invited to the team + * (contains value only when the member's status matches {@link + * TeamMemberStatus#INVITED}). + * + * @return this builder + */ + public Builder withInvitedOn(Date invitedOn) { + super.withInvitedOn(invitedOn); + return this; + } + + /** + * Set value for optional field. + * + * @param joinedOn The date and time the user joined as a member of a + * specific team. + * + * @return this builder + */ + public Builder withJoinedOn(Date joinedOn) { + super.withJoinedOn(joinedOn); + return this; + } + + /** + * Set value for optional field. + * + * @param suspendedOn The date and time the user was suspended from the + * team (contains value only when the member's status matches {@link + * TeamMemberStatus#SUSPENDED}). + * + * @return this builder + */ + public Builder withSuspendedOn(Date suspendedOn) { + super.withSuspendedOn(suspendedOn); + return this; + } + + /** + * Set value for optional field. + * + * @param persistentId Persistent ID that a team can attach to the + * user. The persistent ID is unique ID to be used for SAML + * authentication. + * + * @return this builder + */ + public Builder withPersistentId(String persistentId) { + super.withPersistentId(persistentId); + return this; + } + + /** + * Set value for optional field. + * + * @param isDirectoryRestricted Whether the user is a directory + * restricted user. + * + * @return this builder + */ + public Builder withIsDirectoryRestricted(Boolean isDirectoryRestricted) { + super.withIsDirectoryRestricted(isDirectoryRestricted); + return this; + } + + /** + * Set value for optional field. + * + * @param profilePhotoUrl URL for the photo representing the user, if + * one is set. + * + * @return this builder + */ + public Builder withProfilePhotoUrl(String profilePhotoUrl) { + super.withProfilePhotoUrl(profilePhotoUrl); + return this; + } + + /** + * Builds an instance of {@link TeamMemberProfile} configured with this + * builder's values + * + * @return new instance of {@link TeamMemberProfile} + */ + public TeamMemberProfile build() { + return new TeamMemberProfile(teamMemberId, email, emailVerified, status, name, membershipType, groups, memberFolderId, externalId, accountId, secondaryEmails, invitedOn, joinedOn, suspendedOn, persistentId, isDirectoryRestricted, profilePhotoUrl); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.groups, + this.memberFolderId + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberProfile other = (TeamMemberProfile) obj; + return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) + && ((this.email == other.email) || (this.email.equals(other.email))) + && (this.emailVerified == other.emailVerified) + && ((this.status == other.status) || (this.status.equals(other.status))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.membershipType == other.membershipType) || (this.membershipType.equals(other.membershipType))) + && ((this.groups == other.groups) || (this.groups.equals(other.groups))) + && ((this.memberFolderId == other.memberFolderId) || (this.memberFolderId.equals(other.memberFolderId))) + && ((this.externalId == other.externalId) || (this.externalId != null && this.externalId.equals(other.externalId))) + && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + && ((this.secondaryEmails == other.secondaryEmails) || (this.secondaryEmails != null && this.secondaryEmails.equals(other.secondaryEmails))) + && ((this.invitedOn == other.invitedOn) || (this.invitedOn != null && this.invitedOn.equals(other.invitedOn))) + && ((this.joinedOn == other.joinedOn) || (this.joinedOn != null && this.joinedOn.equals(other.joinedOn))) + && ((this.suspendedOn == other.suspendedOn) || (this.suspendedOn != null && this.suspendedOn.equals(other.suspendedOn))) + && ((this.persistentId == other.persistentId) || (this.persistentId != null && this.persistentId.equals(other.persistentId))) + && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) + && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberProfile value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberId, g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.email, g); + g.writeFieldName("email_verified"); + StoneSerializers.boolean_().serialize(value.emailVerified, g); + g.writeFieldName("status"); + TeamMemberStatus.Serializer.INSTANCE.serialize(value.status, g); + g.writeFieldName("name"); + Name.Serializer.INSTANCE.serialize(value.name, g); + g.writeFieldName("membership_type"); + TeamMembershipType.Serializer.INSTANCE.serialize(value.membershipType, g); + g.writeFieldName("groups"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.groups, g); + g.writeFieldName("member_folder_id"); + StoneSerializers.string().serialize(value.memberFolderId, g); + if (value.externalId != null) { + g.writeFieldName("external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.externalId, g); + } + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (value.secondaryEmails != null) { + g.writeFieldName("secondary_emails"); + StoneSerializers.nullable(StoneSerializers.list(SecondaryEmail.Serializer.INSTANCE)).serialize(value.secondaryEmails, g); + } + if (value.invitedOn != null) { + g.writeFieldName("invited_on"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.invitedOn, g); + } + if (value.joinedOn != null) { + g.writeFieldName("joined_on"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.joinedOn, g); + } + if (value.suspendedOn != null) { + g.writeFieldName("suspended_on"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.suspendedOn, g); + } + if (value.persistentId != null) { + g.writeFieldName("persistent_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.persistentId, g); + } + if (value.isDirectoryRestricted != null) { + g.writeFieldName("is_directory_restricted"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isDirectoryRestricted, g); + } + if (value.profilePhotoUrl != null) { + g.writeFieldName("profile_photo_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.profilePhotoUrl, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberProfile deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberProfile value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamMemberId = null; + String f_email = null; + Boolean f_emailVerified = null; + TeamMemberStatus f_status = null; + Name f_name = null; + TeamMembershipType f_membershipType = null; + List f_groups = null; + String f_memberFolderId = null; + String f_externalId = null; + String f_accountId = null; + List f_secondaryEmails = null; + Date f_invitedOn = null; + Date f_joinedOn = null; + Date f_suspendedOn = null; + String f_persistentId = null; + Boolean f_isDirectoryRestricted = null; + String f_profilePhotoUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.string().deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.string().deserialize(p); + } + else if ("email_verified".equals(field)) { + f_emailVerified = StoneSerializers.boolean_().deserialize(p); + } + else if ("status".equals(field)) { + f_status = TeamMemberStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("name".equals(field)) { + f_name = Name.Serializer.INSTANCE.deserialize(p); + } + else if ("membership_type".equals(field)) { + f_membershipType = TeamMembershipType.Serializer.INSTANCE.deserialize(p); + } + else if ("groups".equals(field)) { + f_groups = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("member_folder_id".equals(field)) { + f_memberFolderId = StoneSerializers.string().deserialize(p); + } + else if ("external_id".equals(field)) { + f_externalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("secondary_emails".equals(field)) { + f_secondaryEmails = StoneSerializers.nullable(StoneSerializers.list(SecondaryEmail.Serializer.INSTANCE)).deserialize(p); + } + else if ("invited_on".equals(field)) { + f_invitedOn = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("joined_on".equals(field)) { + f_joinedOn = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("suspended_on".equals(field)) { + f_suspendedOn = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("persistent_id".equals(field)) { + f_persistentId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_directory_restricted".equals(field)) { + f_isDirectoryRestricted = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("profile_photo_url".equals(field)) { + f_profilePhotoUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamMemberId == null) { + throw new JsonParseException(p, "Required field \"team_member_id\" missing."); + } + if (f_email == null) { + throw new JsonParseException(p, "Required field \"email\" missing."); + } + if (f_emailVerified == null) { + throw new JsonParseException(p, "Required field \"email_verified\" missing."); + } + if (f_status == null) { + throw new JsonParseException(p, "Required field \"status\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_membershipType == null) { + throw new JsonParseException(p, "Required field \"membership_type\" missing."); + } + if (f_groups == null) { + throw new JsonParseException(p, "Required field \"groups\" missing."); + } + if (f_memberFolderId == null) { + throw new JsonParseException(p, "Required field \"member_folder_id\" missing."); + } + value = new TeamMemberProfile(f_teamMemberId, f_email, f_emailVerified, f_status, f_name, f_membershipType, f_groups, f_memberFolderId, f_externalId, f_accountId, f_secondaryEmails, f_invitedOn, f_joinedOn, f_suspendedOn, f_persistentId, f_isDirectoryRestricted, f_profilePhotoUrl); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberRole.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberRole.java new file mode 100644 index 000000000..0290344f2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberRole.java @@ -0,0 +1,230 @@ +/* DO NOT EDIT */ +/* This file was generated from team_members.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +import javax.annotation.Nonnull; + +/** + * A role which can be attached to a team member. This replaces AdminTier; each + * AdminTier corresponds to a new TeamMemberRole with a matching name. + */ +public class TeamMemberRole { + // struct team.TeamMemberRole (team_members.stone) + + @Nonnull + protected final String roleId; + @Nonnull + protected final String name; + @Nonnull + protected final String description; + + /** + * A role which can be attached to a team member. This replaces AdminTier; + * each AdminTier corresponds to a new TeamMemberRole with a matching name. + * + * @param roleId A string containing encoded role ID. For roles defined by + * Dropbox, this is the same across all teams. Must have length of at + * most 128, match pattern "{@code pid_dbtmr:.*}", and not be {@code + * null}. + * @param name The role display name. Must have length of at most 32 and + * not be {@code null}. + * @param description Role description. Describes which permissions come + * with this role. Must have length of at most 256 and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberRole(@Nonnull String roleId, @Nonnull String name, @Nonnull String description) { + if (roleId == null) { + throw new IllegalArgumentException("Required value for 'roleId' is null"); + } + if (roleId.length() > 128) { + throw new IllegalArgumentException("String 'roleId' is longer than 128"); + } + if (!Pattern.matches("pid_dbtmr:.*", roleId)) { + throw new IllegalArgumentException("String 'roleId' does not match pattern"); + } + this.roleId = roleId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + if (name.length() > 32) { + throw new IllegalArgumentException("String 'name' is longer than 32"); + } + this.name = name; + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + if (description.length() > 256) { + throw new IllegalArgumentException("String 'description' is longer than 256"); + } + this.description = description; + } + + /** + * A string containing encoded role ID. For roles defined by Dropbox, this + * is the same across all teams. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRoleId() { + return roleId; + } + + /** + * The role display name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Role description. Describes which permissions come with this role. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.roleId, + this.name, + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberRole other = (TeamMemberRole) obj; + return ((this.roleId == other.roleId) || (this.roleId.equals(other.roleId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.description == other.description) || (this.description.equals(other.description))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberRole value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("role_id"); + StoneSerializers.string().serialize(value.roleId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberRole deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberRole value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_roleId = null; + String f_name = null; + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("role_id".equals(field)) { + f_roleId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_roleId == null) { + throw new JsonParseException(p, "Required field \"role_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMemberRole(f_roleId, f_name, f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberStatus.java new file mode 100644 index 000000000..743d8292b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMemberStatus.java @@ -0,0 +1,338 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The user's status as a member of a specific team. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class TeamMemberStatus { + // union team.TeamMemberStatus (team.stone) + + /** + * Discriminating tag type for {@link TeamMemberStatus}. + */ + public enum Tag { + /** + * User has successfully joined the team. + */ + ACTIVE, + /** + * User has been invited to a team, but has not joined the team yet. + */ + INVITED, + /** + * User is no longer a member of the team, but the account can be + * un-suspended, re-establishing the user as a team member. + */ + SUSPENDED, + /** + * User is no longer a member of the team. Removed users are only listed + * when include_removed is true in members/list. + */ + REMOVED; // RemovedStatus + } + + /** + * User has successfully joined the team. + */ + public static final TeamMemberStatus ACTIVE = new TeamMemberStatus().withTag(Tag.ACTIVE); + /** + * User has been invited to a team, but has not joined the team yet. + */ + public static final TeamMemberStatus INVITED = new TeamMemberStatus().withTag(Tag.INVITED); + /** + * User is no longer a member of the team, but the account can be + * un-suspended, re-establishing the user as a team member. + */ + public static final TeamMemberStatus SUSPENDED = new TeamMemberStatus().withTag(Tag.SUSPENDED); + + private Tag _tag; + private RemovedStatus removedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamMemberStatus() { + } + + + /** + * The user's status as a member of a specific team. + * + * @param _tag Discriminating tag for this instance. + */ + private TeamMemberStatus withTag(Tag _tag) { + TeamMemberStatus result = new TeamMemberStatus(); + result._tag = _tag; + return result; + } + + /** + * The user's status as a member of a specific team. + * + * @param removedValue User is no longer a member of the team. Removed + * users are only listed when include_removed is true in members/list. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMemberStatus withTagAndRemoved(Tag _tag, RemovedStatus removedValue) { + TeamMemberStatus result = new TeamMemberStatus(); + result._tag = _tag; + result.removedValue = removedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamMemberStatus}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ACTIVE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ACTIVE}, + * {@code false} otherwise. + */ + public boolean isActive() { + return this._tag == Tag.ACTIVE; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#INVITED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#INVITED}, + * {@code false} otherwise. + */ + public boolean isInvited() { + return this._tag == Tag.INVITED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUSPENDED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUSPENDED}, + * {@code false} otherwise. + */ + public boolean isSuspended() { + return this._tag == Tag.SUSPENDED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#REMOVED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#REMOVED}, + * {@code false} otherwise. + */ + public boolean isRemoved() { + return this._tag == Tag.REMOVED; + } + + /** + * Returns an instance of {@code TeamMemberStatus} that has its tag set to + * {@link Tag#REMOVED}. + * + *

User is no longer a member of the team. Removed users are only listed + * when include_removed is true in members/list.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMemberStatus} with its tag set to {@link + * Tag#REMOVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMemberStatus removed(RemovedStatus value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMemberStatus().withTagAndRemoved(Tag.REMOVED, value); + } + + /** + * User is no longer a member of the team. Removed users are only listed + * when include_removed is true in members/list. + * + *

This instance must be tagged as {@link Tag#REMOVED}.

+ * + * @return The {@link RemovedStatus} value associated with this instance if + * {@link #isRemoved} is {@code true}. + * + * @throws IllegalStateException If {@link #isRemoved} is {@code false}. + */ + public RemovedStatus getRemovedValue() { + if (this._tag != Tag.REMOVED) { + throw new IllegalStateException("Invalid tag: required Tag.REMOVED, but was Tag." + this._tag.name()); + } + return removedValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.removedValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamMemberStatus) { + TeamMemberStatus other = (TeamMemberStatus) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ACTIVE: + return true; + case INVITED: + return true; + case SUSPENDED: + return true; + case REMOVED: + return (this.removedValue == other.removedValue) || (this.removedValue.equals(other.removedValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ACTIVE: { + g.writeString("active"); + break; + } + case INVITED: { + g.writeString("invited"); + break; + } + case SUSPENDED: { + g.writeString("suspended"); + break; + } + case REMOVED: { + g.writeStartObject(); + writeTag("removed", g); + RemovedStatus.Serializer.INSTANCE.serialize(value.removedValue, g, true); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public TeamMemberStatus deserialize(JsonParser p) throws IOException, JsonParseException { + TeamMemberStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("active".equals(tag)) { + value = TeamMemberStatus.ACTIVE; + } + else if ("invited".equals(tag)) { + value = TeamMemberStatus.INVITED; + } + else if ("suspended".equals(tag)) { + value = TeamMemberStatus.SUSPENDED; + } + else if ("removed".equals(tag)) { + RemovedStatus fieldValue = null; + fieldValue = RemovedStatus.Serializer.INSTANCE.deserialize(p, true); + value = TeamMemberStatus.removed(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMembershipType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMembershipType.java new file mode 100644 index 000000000..22196dc1f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamMembershipType.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamMembershipType { + // union team.TeamMembershipType (team.stone) + /** + * User uses a license and has full access to team resources like the shared + * quota. + */ + FULL, + /** + * User does not have access to the shared quota and team admins have + * restricted administrative control. + */ + LIMITED; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMembershipType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FULL: { + g.writeString("full"); + break; + } + case LIMITED: { + g.writeString("limited"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public TeamMembershipType deserialize(JsonParser p) throws IOException, JsonParseException { + TeamMembershipType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("full".equals(tag)) { + value = TeamMembershipType.FULL; + } + else if ("limited".equals(tag)) { + value = TeamMembershipType.LIMITED; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListArg.java new file mode 100644 index 000000000..0d0fba5ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_namespaces.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +class TeamNamespacesListArg { + // struct team.TeamNamespacesListArg (team_namespaces.stone) + + protected final long limit; + + /** + * + * @param limit Specifying a value here has no effect. Must be greater than + * or equal to 1 and be less than or equal to 1000. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamNamespacesListArg(long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public TeamNamespacesListArg() { + this(1000L); + } + + /** + * Specifying a value here has no effect. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamNamespacesListArg other = (TeamNamespacesListArg) obj; + return this.limit == other.limit; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamNamespacesListArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamNamespacesListArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamNamespacesListArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + value = new TeamNamespacesListArg(f_limit); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueArg.java new file mode 100644 index 000000000..1a533fb55 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueArg.java @@ -0,0 +1,149 @@ +/* DO NOT EDIT */ +/* This file was generated from team_namespaces.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class TeamNamespacesListContinueArg { + // struct team.TeamNamespacesListContinueArg (team_namespaces.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor Indicates from what point to get the next set of + * team-accessible namespaces. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamNamespacesListContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Indicates from what point to get the next set of team-accessible + * namespaces. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamNamespacesListContinueArg other = (TeamNamespacesListContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamNamespacesListContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamNamespacesListContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamNamespacesListContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new TeamNamespacesListContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueError.java new file mode 100644 index 000000000..4b5d743d5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueError.java @@ -0,0 +1,102 @@ +/* DO NOT EDIT */ +/* This file was generated from team_namespaces.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamNamespacesListContinueError { + // union team.TeamNamespacesListContinueError (team_namespaces.stone) + /** + * Argument passed in is invalid. + */ + INVALID_ARG, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER, + /** + * The cursor is invalid. + */ + INVALID_CURSOR; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamNamespacesListContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_ARG: { + g.writeString("invalid_arg"); + break; + } + case OTHER: { + g.writeString("other"); + break; + } + case INVALID_CURSOR: { + g.writeString("invalid_cursor"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public TeamNamespacesListContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamNamespacesListContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_arg".equals(tag)) { + value = TeamNamespacesListContinueError.INVALID_ARG; + } + else if ("other".equals(tag)) { + value = TeamNamespacesListContinueError.OTHER; + } + else if ("invalid_cursor".equals(tag)) { + value = TeamNamespacesListContinueError.INVALID_CURSOR; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueErrorException.java new file mode 100644 index 000000000..d6b97ada1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamNamespacesListContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#namespacesListContinue(String)}.

+ */ +public class TeamNamespacesListContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team/namespaces/list/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#namespacesListContinue(String)}. + */ + public final TeamNamespacesListContinueError errorValue; + + public TeamNamespacesListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, TeamNamespacesListContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListError.java new file mode 100644 index 000000000..f6d9e8479 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from team_namespaces.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamNamespacesListError { + // union team.TeamNamespacesListError (team_namespaces.stone) + /** + * Argument passed in is invalid. + */ + INVALID_ARG, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamNamespacesListError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVALID_ARG: { + g.writeString("invalid_arg"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamNamespacesListError deserialize(JsonParser p) throws IOException, JsonParseException { + TeamNamespacesListError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invalid_arg".equals(tag)) { + value = TeamNamespacesListError.INVALID_ARG; + } + else { + value = TeamNamespacesListError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListErrorException.java new file mode 100644 index 000000000..6e0cf30ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TeamNamespacesListError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#namespacesList(long)}.

+ */ +public class TeamNamespacesListErrorException extends DbxApiException { + // exception for routes: + // 2/team/namespaces/list + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamRequests#namespacesList(long)}. + */ + public final TeamNamespacesListError errorValue; + + public TeamNamespacesListErrorException(String routeName, String requestId, LocalizedText userMessage, TeamNamespacesListError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListResult.java new file mode 100644 index 000000000..a02ead26a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListResult.java @@ -0,0 +1,217 @@ +/* DO NOT EDIT */ +/* This file was generated from team_namespaces.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Result for {@link DbxTeamTeamRequests#namespacesList(long)}. + */ +public class TeamNamespacesListResult { + // struct team.TeamNamespacesListResult (team_namespaces.stone) + + @Nonnull + protected final List namespaces; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * Result for {@link DbxTeamTeamRequests#namespacesList(long)}. + * + * @param namespaces List of all namespaces the team can access. Must not + * contain a {@code null} item and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamRequests#namespacesListContinue(String)} to obtain + * additional namespaces. Note that duplicate namespaces may be + * returned. Must not be {@code null}. + * @param hasMore Is true if there are additional namespaces that have not + * been returned yet. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamNamespacesListResult(@Nonnull List namespaces, @Nonnull String cursor, boolean hasMore) { + if (namespaces == null) { + throw new IllegalArgumentException("Required value for 'namespaces' is null"); + } + for (NamespaceMetadata x : namespaces) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'namespaces' is null"); + } + } + this.namespaces = namespaces; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * List of all namespaces the team can access. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getNamespaces() { + return namespaces; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamRequests#namespacesListContinue(String)} to obtain additional + * namespaces. Note that duplicate namespaces may be returned. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there are additional namespaces that have not been returned + * yet. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.namespaces, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamNamespacesListResult other = (TeamNamespacesListResult) obj; + return ((this.namespaces == other.namespaces) || (this.namespaces.equals(other.namespaces))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamNamespacesListResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("namespaces"); + StoneSerializers.list(NamespaceMetadata.Serializer.INSTANCE).serialize(value.namespaces, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamNamespacesListResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamNamespacesListResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_namespaces = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("namespaces".equals(field)) { + f_namespaces = StoneSerializers.list(NamespaceMetadata.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_namespaces == null) { + throw new JsonParseException(p, "Required field \"namespaces\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new TeamNamespacesListResult(f_namespaces, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamReportFailureReason.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamReportFailureReason.java new file mode 100644 index 000000000..8c7d18fe8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamReportFailureReason.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_reports.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamReportFailureReason { + // union team.TeamReportFailureReason (team_reports.stone) + /** + * We couldn't create the report, but we think this was a fluke. Everything + * should work if you try it again. + */ + TEMPORARY_ERROR, + /** + * Too many other reports are being created right now. Try creating this + * report again once the others finish. + */ + MANY_REPORTS_AT_ONCE, + /** + * We couldn't create the report. Try creating the report again with less + * data. + */ + TOO_MUCH_DATA, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamReportFailureReason value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TEMPORARY_ERROR: { + g.writeString("temporary_error"); + break; + } + case MANY_REPORTS_AT_ONCE: { + g.writeString("many_reports_at_once"); + break; + } + case TOO_MUCH_DATA: { + g.writeString("too_much_data"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamReportFailureReason deserialize(JsonParser p) throws IOException, JsonParseException { + TeamReportFailureReason value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("temporary_error".equals(tag)) { + value = TeamReportFailureReason.TEMPORARY_ERROR; + } + else if ("many_reports_at_once".equals(tag)) { + value = TeamReportFailureReason.MANY_REPORTS_AT_ONCE; + } + else if ("too_much_data".equals(tag)) { + value = TeamReportFailureReason.TOO_MUCH_DATA; + } + else { + value = TeamReportFailureReason.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminError.java new file mode 100644 index 000000000..ab6d1ca69 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminError.java @@ -0,0 +1,101 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Error returned by {@link DbxTeamTeamRequests#tokenGetAuthenticatedAdmin}. + */ +public enum TokenGetAuthenticatedAdminError { + // union team.TokenGetAuthenticatedAdminError (team.stone) + /** + * The current token is not associated with a team admin, because mappings + * were not recorded when the token was created. Consider re-authorizing a + * new access token to record its authenticating admin. + */ + MAPPING_NOT_FOUND, + /** + * Either the team admin that authorized this token is no longer an active + * member of the team or no longer a team admin. + */ + ADMIN_NOT_ACTIVE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TokenGetAuthenticatedAdminError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case MAPPING_NOT_FOUND: { + g.writeString("mapping_not_found"); + break; + } + case ADMIN_NOT_ACTIVE: { + g.writeString("admin_not_active"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TokenGetAuthenticatedAdminError deserialize(JsonParser p) throws IOException, JsonParseException { + TokenGetAuthenticatedAdminError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("mapping_not_found".equals(tag)) { + value = TokenGetAuthenticatedAdminError.MAPPING_NOT_FOUND; + } + else if ("admin_not_active".equals(tag)) { + value = TokenGetAuthenticatedAdminError.ADMIN_NOT_ACTIVE; + } + else { + value = TokenGetAuthenticatedAdminError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminErrorException.java new file mode 100644 index 000000000..5bc5bfdd2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * TokenGetAuthenticatedAdminError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamRequests#tokenGetAuthenticatedAdmin}.

+ */ +public class TokenGetAuthenticatedAdminErrorException extends DbxApiException { + // exception for routes: + // 2/team/token/get_authenticated_admin + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamRequests#tokenGetAuthenticatedAdmin}. + */ + public final TokenGetAuthenticatedAdminError errorValue; + + public TokenGetAuthenticatedAdminErrorException(String routeName, String requestId, LocalizedText userMessage, TokenGetAuthenticatedAdminError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminResult.java new file mode 100644 index 000000000..61303605f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TokenGetAuthenticatedAdminResult.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Results for {@link DbxTeamTeamRequests#tokenGetAuthenticatedAdmin}. + */ +public class TokenGetAuthenticatedAdminResult { + // struct team.TokenGetAuthenticatedAdminResult (team.stone) + + @Nonnull + protected final TeamMemberProfile adminProfile; + + /** + * Results for {@link DbxTeamTeamRequests#tokenGetAuthenticatedAdmin}. + * + * @param adminProfile The admin who authorized the token. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TokenGetAuthenticatedAdminResult(@Nonnull TeamMemberProfile adminProfile) { + if (adminProfile == null) { + throw new IllegalArgumentException("Required value for 'adminProfile' is null"); + } + this.adminProfile = adminProfile; + } + + /** + * The admin who authorized the token. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMemberProfile getAdminProfile() { + return adminProfile; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.adminProfile + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TokenGetAuthenticatedAdminResult other = (TokenGetAuthenticatedAdminResult) obj; + return (this.adminProfile == other.adminProfile) || (this.adminProfile.equals(other.adminProfile)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TokenGetAuthenticatedAdminResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("admin_profile"); + TeamMemberProfile.Serializer.INSTANCE.serialize(value.adminProfile, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TokenGetAuthenticatedAdminResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TokenGetAuthenticatedAdminResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMemberProfile f_adminProfile = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("admin_profile".equals(field)) { + f_adminProfile = TeamMemberProfile.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_adminProfile == null) { + throw new JsonParseException(p, "Required field \"admin_profile\" missing."); + } + value = new TokenGetAuthenticatedAdminResult(f_adminProfile); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UploadApiRateLimitValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UploadApiRateLimitValue.java new file mode 100644 index 000000000..fc7e00347 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UploadApiRateLimitValue.java @@ -0,0 +1,309 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The value for {@link Feature#UPLOAD_API_RATE_LIMIT}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UploadApiRateLimitValue { + // union team.UploadApiRateLimitValue (team.stone) + + /** + * Discriminating tag type for {@link UploadApiRateLimitValue}. + */ + public enum Tag { + /** + * This team has unlimited upload API quota. So far both server version + * account and legacy account type have unlimited monthly upload api + * quota. + */ + UNLIMITED, + /** + * The number of upload API calls allowed per month. + */ + LIMIT, // long + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * This team has unlimited upload API quota. So far both server version + * account and legacy account type have unlimited monthly upload api quota. + */ + public static final UploadApiRateLimitValue UNLIMITED = new UploadApiRateLimitValue().withTag(Tag.UNLIMITED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UploadApiRateLimitValue OTHER = new UploadApiRateLimitValue().withTag(Tag.OTHER); + + private Tag _tag; + private Long limitValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UploadApiRateLimitValue() { + } + + + /** + * The value for {@link Feature#UPLOAD_API_RATE_LIMIT}. + * + * @param _tag Discriminating tag for this instance. + */ + private UploadApiRateLimitValue withTag(Tag _tag) { + UploadApiRateLimitValue result = new UploadApiRateLimitValue(); + result._tag = _tag; + return result; + } + + /** + * The value for {@link Feature#UPLOAD_API_RATE_LIMIT}. + * + * @param limitValue The number of upload API calls allowed per month. + * @param _tag Discriminating tag for this instance. + */ + private UploadApiRateLimitValue withTagAndLimit(Tag _tag, Long limitValue) { + UploadApiRateLimitValue result = new UploadApiRateLimitValue(); + result._tag = _tag; + result.limitValue = limitValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UploadApiRateLimitValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#UNLIMITED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#UNLIMITED}, + * {@code false} otherwise. + */ + public boolean isUnlimited() { + return this._tag == Tag.UNLIMITED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#LIMIT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#LIMIT}, + * {@code false} otherwise. + */ + public boolean isLimit() { + return this._tag == Tag.LIMIT; + } + + /** + * Returns an instance of {@code UploadApiRateLimitValue} that has its tag + * set to {@link Tag#LIMIT}. + * + *

The number of upload API calls allowed per month.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UploadApiRateLimitValue} with its tag set to + * {@link Tag#LIMIT}. + */ + public static UploadApiRateLimitValue limit(long value) { + return new UploadApiRateLimitValue().withTagAndLimit(Tag.LIMIT, value); + } + + /** + * The number of upload API calls allowed per month. + * + *

This instance must be tagged as {@link Tag#LIMIT}.

+ * + * @return The {@link long} value associated with this instance if {@link + * #isLimit} is {@code true}. + * + * @throws IllegalStateException If {@link #isLimit} is {@code false}. + */ + public long getLimitValue() { + if (this._tag != Tag.LIMIT) { + throw new IllegalStateException("Invalid tag: required Tag.LIMIT, but was Tag." + this._tag.name()); + } + return limitValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.limitValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UploadApiRateLimitValue) { + UploadApiRateLimitValue other = (UploadApiRateLimitValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case UNLIMITED: + return true; + case LIMIT: + return this.limitValue == other.limitValue; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UploadApiRateLimitValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case UNLIMITED: { + g.writeString("unlimited"); + break; + } + case LIMIT: { + g.writeStartObject(); + writeTag("limit", g); + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limitValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UploadApiRateLimitValue deserialize(JsonParser p) throws IOException, JsonParseException { + UploadApiRateLimitValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unlimited".equals(tag)) { + value = UploadApiRateLimitValue.UNLIMITED; + } + else if ("limit".equals(tag)) { + Long fieldValue = null; + expectField("limit", p); + fieldValue = StoneSerializers.uInt32().deserialize(p); + value = UploadApiRateLimitValue.limit(fieldValue); + } + else { + value = UploadApiRateLimitValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserAddResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserAddResult.java new file mode 100644 index 000000000..4b33bb173 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserAddResult.java @@ -0,0 +1,570 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result of trying to add secondary emails to a user. 'success' is the only + * value indicating that a user was successfully retrieved for adding secondary + * emails. The other values explain the type of error that occurred, and include + * the user for which the error occurred. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UserAddResult { + // union team.UserAddResult (team_secondary_mails.stone) + + /** + * Discriminating tag type for {@link UserAddResult}. + */ + public enum Tag { + /** + * Describes a user and the results for each attempt to add a secondary + * email. + */ + SUCCESS, // UserSecondaryEmailsResult + /** + * Specified user is not a valid target for adding secondary emails. + */ + INVALID_USER, // UserSelectorArg + /** + * Secondary emails can only be added to verified users. + */ + UNVERIFIED, // UserSelectorArg + /** + * Secondary emails cannot be added to placeholder users. + */ + PLACEHOLDER_USER, // UserSelectorArg + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UserAddResult OTHER = new UserAddResult().withTag(Tag.OTHER); + + private Tag _tag; + private UserSecondaryEmailsResult successValue; + private UserSelectorArg invalidUserValue; + private UserSelectorArg unverifiedValue; + private UserSelectorArg placeholderUserValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UserAddResult() { + } + + + /** + * Result of trying to add secondary emails to a user. 'success' is the only + * value indicating that a user was successfully retrieved for adding + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param _tag Discriminating tag for this instance. + */ + private UserAddResult withTag(Tag _tag) { + UserAddResult result = new UserAddResult(); + result._tag = _tag; + return result; + } + + /** + * Result of trying to add secondary emails to a user. 'success' is the only + * value indicating that a user was successfully retrieved for adding + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param successValue Describes a user and the results for each attempt to + * add a secondary email. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserAddResult withTagAndSuccess(Tag _tag, UserSecondaryEmailsResult successValue) { + UserAddResult result = new UserAddResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Result of trying to add secondary emails to a user. 'success' is the only + * value indicating that a user was successfully retrieved for adding + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param invalidUserValue Specified user is not a valid target for adding + * secondary emails. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserAddResult withTagAndInvalidUser(Tag _tag, UserSelectorArg invalidUserValue) { + UserAddResult result = new UserAddResult(); + result._tag = _tag; + result.invalidUserValue = invalidUserValue; + return result; + } + + /** + * Result of trying to add secondary emails to a user. 'success' is the only + * value indicating that a user was successfully retrieved for adding + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param unverifiedValue Secondary emails can only be added to verified + * users. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserAddResult withTagAndUnverified(Tag _tag, UserSelectorArg unverifiedValue) { + UserAddResult result = new UserAddResult(); + result._tag = _tag; + result.unverifiedValue = unverifiedValue; + return result; + } + + /** + * Result of trying to add secondary emails to a user. 'success' is the only + * value indicating that a user was successfully retrieved for adding + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param placeholderUserValue Secondary emails cannot be added to + * placeholder users. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserAddResult withTagAndPlaceholderUser(Tag _tag, UserSelectorArg placeholderUserValue) { + UserAddResult result = new UserAddResult(); + result._tag = _tag; + result.placeholderUserValue = placeholderUserValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UserAddResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code UserAddResult} that has its tag set to + * {@link Tag#SUCCESS}. + * + *

Describes a user and the results for each attempt to add a secondary + * email.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserAddResult} with its tag set to {@link + * Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserAddResult success(UserSecondaryEmailsResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserAddResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Describes a user and the results for each attempt to add a secondary + * email. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link UserSecondaryEmailsResult} value associated with this + * instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public UserSecondaryEmailsResult getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_USER}, {@code false} otherwise. + */ + public boolean isInvalidUser() { + return this._tag == Tag.INVALID_USER; + } + + /** + * Returns an instance of {@code UserAddResult} that has its tag set to + * {@link Tag#INVALID_USER}. + * + *

Specified user is not a valid target for adding secondary emails. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserAddResult} with its tag set to {@link + * Tag#INVALID_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserAddResult invalidUser(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserAddResult().withTagAndInvalidUser(Tag.INVALID_USER, value); + } + + /** + * Specified user is not a valid target for adding secondary emails. + * + *

This instance must be tagged as {@link Tag#INVALID_USER}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isInvalidUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidUser} is {@code + * false}. + */ + public UserSelectorArg getInvalidUserValue() { + if (this._tag != Tag.INVALID_USER) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_USER, but was Tag." + this._tag.name()); + } + return invalidUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#UNVERIFIED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNVERIFIED}, {@code false} otherwise. + */ + public boolean isUnverified() { + return this._tag == Tag.UNVERIFIED; + } + + /** + * Returns an instance of {@code UserAddResult} that has its tag set to + * {@link Tag#UNVERIFIED}. + * + *

Secondary emails can only be added to verified users.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserAddResult} with its tag set to {@link + * Tag#UNVERIFIED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserAddResult unverified(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserAddResult().withTagAndUnverified(Tag.UNVERIFIED, value); + } + + /** + * Secondary emails can only be added to verified users. + * + *

This instance must be tagged as {@link Tag#UNVERIFIED}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isUnverified} is {@code true}. + * + * @throws IllegalStateException If {@link #isUnverified} is {@code false}. + */ + public UserSelectorArg getUnverifiedValue() { + if (this._tag != Tag.UNVERIFIED) { + throw new IllegalStateException("Invalid tag: required Tag.UNVERIFIED, but was Tag." + this._tag.name()); + } + return unverifiedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PLACEHOLDER_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PLACEHOLDER_USER}, {@code false} otherwise. + */ + public boolean isPlaceholderUser() { + return this._tag == Tag.PLACEHOLDER_USER; + } + + /** + * Returns an instance of {@code UserAddResult} that has its tag set to + * {@link Tag#PLACEHOLDER_USER}. + * + *

Secondary emails cannot be added to placeholder users.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserAddResult} with its tag set to {@link + * Tag#PLACEHOLDER_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserAddResult placeholderUser(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserAddResult().withTagAndPlaceholderUser(Tag.PLACEHOLDER_USER, value); + } + + /** + * Secondary emails cannot be added to placeholder users. + * + *

This instance must be tagged as {@link Tag#PLACEHOLDER_USER}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isPlaceholderUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isPlaceholderUser} is {@code + * false}. + */ + public UserSelectorArg getPlaceholderUserValue() { + if (this._tag != Tag.PLACEHOLDER_USER) { + throw new IllegalStateException("Invalid tag: required Tag.PLACEHOLDER_USER, but was Tag." + this._tag.name()); + } + return placeholderUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.invalidUserValue, + this.unverifiedValue, + this.placeholderUserValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UserAddResult) { + UserAddResult other = (UserAddResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case INVALID_USER: + return (this.invalidUserValue == other.invalidUserValue) || (this.invalidUserValue.equals(other.invalidUserValue)); + case UNVERIFIED: + return (this.unverifiedValue == other.unverifiedValue) || (this.unverifiedValue.equals(other.unverifiedValue)); + case PLACEHOLDER_USER: + return (this.placeholderUserValue == other.placeholderUserValue) || (this.placeholderUserValue.equals(other.placeholderUserValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserAddResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + UserSecondaryEmailsResult.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case INVALID_USER: { + g.writeStartObject(); + writeTag("invalid_user", g); + g.writeFieldName("invalid_user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.invalidUserValue, g); + g.writeEndObject(); + break; + } + case UNVERIFIED: { + g.writeStartObject(); + writeTag("unverified", g); + g.writeFieldName("unverified"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.unverifiedValue, g); + g.writeEndObject(); + break; + } + case PLACEHOLDER_USER: { + g.writeStartObject(); + writeTag("placeholder_user", g); + g.writeFieldName("placeholder_user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.placeholderUserValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserAddResult deserialize(JsonParser p) throws IOException, JsonParseException { + UserAddResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + UserSecondaryEmailsResult fieldValue = null; + fieldValue = UserSecondaryEmailsResult.Serializer.INSTANCE.deserialize(p, true); + value = UserAddResult.success(fieldValue); + } + else if ("invalid_user".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("invalid_user", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = UserAddResult.invalidUser(fieldValue); + } + else if ("unverified".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("unverified", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = UserAddResult.unverified(fieldValue); + } + else if ("placeholder_user".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("placeholder_user", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = UserAddResult.placeholderUser(fieldValue); + } + else { + value = UserAddResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserCustomQuotaArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserCustomQuotaArg.java new file mode 100644 index 000000000..fd3b42939 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserCustomQuotaArg.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * User and their required custom quota in GB (1 TB = 1024 GB). + */ +public class UserCustomQuotaArg { + // struct team.UserCustomQuotaArg (team_member_space_limits.stone) + + @Nonnull + protected final UserSelectorArg user; + protected final long quotaGb; + + /** + * User and their required custom quota in GB (1 TB = 1024 GB). + * + * @param user Must not be {@code null}. + * @param quotaGb Must be greater than or equal to 15. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserCustomQuotaArg(@Nonnull UserSelectorArg user, long quotaGb) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (quotaGb < 15L) { + throw new IllegalArgumentException("Number 'quotaGb' is smaller than 15L"); + } + this.quotaGb = quotaGb; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * + * @return value for this field. + */ + public long getQuotaGb() { + return quotaGb; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.quotaGb + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserCustomQuotaArg other = (UserCustomQuotaArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && (this.quotaGb == other.quotaGb) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserCustomQuotaArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("quota_gb"); + StoneSerializers.uInt32().serialize(value.quotaGb, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserCustomQuotaArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserCustomQuotaArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + Long f_quotaGb = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("quota_gb".equals(field)) { + f_quotaGb = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_quotaGb == null) { + throw new JsonParseException(p, "Required field \"quota_gb\" missing."); + } + value = new UserCustomQuotaArg(f_user, f_quotaGb); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserCustomQuotaResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserCustomQuotaResult.java new file mode 100644 index 000000000..5a82fc2c1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserCustomQuotaResult.java @@ -0,0 +1,197 @@ +/* DO NOT EDIT */ +/* This file was generated from team_member_space_limits.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * User and their custom quota in GB (1 TB = 1024 GB). No quota returns if the + * user has no custom quota set. + */ +public class UserCustomQuotaResult { + // struct team.UserCustomQuotaResult (team_member_space_limits.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nullable + protected final Long quotaGb; + + /** + * User and their custom quota in GB (1 TB = 1024 GB). No quota returns if + * the user has no custom quota set. + * + * @param user Must not be {@code null}. + * @param quotaGb Must be greater than or equal to 15. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserCustomQuotaResult(@Nonnull UserSelectorArg user, @Nullable Long quotaGb) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (quotaGb != null) { + if (quotaGb < 15L) { + throw new IllegalArgumentException("Number 'quotaGb' is smaller than 15L"); + } + } + this.quotaGb = quotaGb; + } + + /** + * User and their custom quota in GB (1 TB = 1024 GB). No quota returns if + * the user has no custom quota set. + * + *

The default values for unset fields will be used.

+ * + * @param user Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserCustomQuotaResult(@Nonnull UserSelectorArg user) { + this(user, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getQuotaGb() { + return quotaGb; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.quotaGb + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserCustomQuotaResult other = (UserCustomQuotaResult) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.quotaGb == other.quotaGb) || (this.quotaGb != null && this.quotaGb.equals(other.quotaGb))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserCustomQuotaResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + if (value.quotaGb != null) { + g.writeFieldName("quota_gb"); + StoneSerializers.nullable(StoneSerializers.uInt32()).serialize(value.quotaGb, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserCustomQuotaResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserCustomQuotaResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + Long f_quotaGb = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("quota_gb".equals(field)) { + f_quotaGb = StoneSerializers.nullable(StoneSerializers.uInt32()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + value = new UserCustomQuotaResult(f_user, f_quotaGb); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserDeleteEmailsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserDeleteEmailsResult.java new file mode 100644 index 000000000..03ef831e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserDeleteEmailsResult.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class UserDeleteEmailsResult { + // struct team.UserDeleteEmailsResult (team_secondary_mails.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nonnull + protected final List results; + + /** + * + * @param user Must not be {@code null}. + * @param results Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserDeleteEmailsResult(@Nonnull UserSelectorArg user, @Nonnull List results) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (results == null) { + throw new IllegalArgumentException("Required value for 'results' is null"); + } + for (DeleteSecondaryEmailResult x : results) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'results' is null"); + } + } + this.results = results; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getResults() { + return results; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.results + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserDeleteEmailsResult other = (UserDeleteEmailsResult) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.results == other.results) || (this.results.equals(other.results))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserDeleteEmailsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("results"); + StoneSerializers.list(DeleteSecondaryEmailResult.Serializer.INSTANCE).serialize(value.results, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserDeleteEmailsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserDeleteEmailsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + List f_results = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("results".equals(field)) { + f_results = StoneSerializers.list(DeleteSecondaryEmailResult.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_results == null) { + throw new JsonParseException(p, "Required field \"results\" missing."); + } + value = new UserDeleteEmailsResult(f_user, f_results); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserDeleteResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserDeleteResult.java new file mode 100644 index 000000000..294847ebd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserDeleteResult.java @@ -0,0 +1,389 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result of trying to delete a user's secondary emails. 'success' is the only + * value indicating that a user was successfully retrieved for deleting + * secondary emails. The other values explain the type of error that occurred, + * and include the user for which the error occurred. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UserDeleteResult { + // union team.UserDeleteResult (team_secondary_mails.stone) + + /** + * Discriminating tag type for {@link UserDeleteResult}. + */ + public enum Tag { + /** + * Describes a user and the results for each attempt to delete a + * secondary email. + */ + SUCCESS, // UserDeleteEmailsResult + /** + * Specified user is not a valid target for deleting secondary emails. + */ + INVALID_USER, // UserSelectorArg + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UserDeleteResult OTHER = new UserDeleteResult().withTag(Tag.OTHER); + + private Tag _tag; + private UserDeleteEmailsResult successValue; + private UserSelectorArg invalidUserValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UserDeleteResult() { + } + + + /** + * Result of trying to delete a user's secondary emails. 'success' is the + * only value indicating that a user was successfully retrieved for deleting + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param _tag Discriminating tag for this instance. + */ + private UserDeleteResult withTag(Tag _tag) { + UserDeleteResult result = new UserDeleteResult(); + result._tag = _tag; + return result; + } + + /** + * Result of trying to delete a user's secondary emails. 'success' is the + * only value indicating that a user was successfully retrieved for deleting + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param successValue Describes a user and the results for each attempt to + * delete a secondary email. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserDeleteResult withTagAndSuccess(Tag _tag, UserDeleteEmailsResult successValue) { + UserDeleteResult result = new UserDeleteResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Result of trying to delete a user's secondary emails. 'success' is the + * only value indicating that a user was successfully retrieved for deleting + * secondary emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + * @param invalidUserValue Specified user is not a valid target for + * deleting secondary emails. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserDeleteResult withTagAndInvalidUser(Tag _tag, UserSelectorArg invalidUserValue) { + UserDeleteResult result = new UserDeleteResult(); + result._tag = _tag; + result.invalidUserValue = invalidUserValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UserDeleteResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code UserDeleteResult} that has its tag set to + * {@link Tag#SUCCESS}. + * + *

Describes a user and the results for each attempt to delete a + * secondary email.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserDeleteResult} with its tag set to {@link + * Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserDeleteResult success(UserDeleteEmailsResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserDeleteResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Describes a user and the results for each attempt to delete a secondary + * email. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link UserDeleteEmailsResult} value associated with this + * instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public UserDeleteEmailsResult getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_USER}, {@code false} otherwise. + */ + public boolean isInvalidUser() { + return this._tag == Tag.INVALID_USER; + } + + /** + * Returns an instance of {@code UserDeleteResult} that has its tag set to + * {@link Tag#INVALID_USER}. + * + *

Specified user is not a valid target for deleting secondary emails. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserDeleteResult} with its tag set to {@link + * Tag#INVALID_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserDeleteResult invalidUser(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserDeleteResult().withTagAndInvalidUser(Tag.INVALID_USER, value); + } + + /** + * Specified user is not a valid target for deleting secondary emails. + * + *

This instance must be tagged as {@link Tag#INVALID_USER}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isInvalidUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidUser} is {@code + * false}. + */ + public UserSelectorArg getInvalidUserValue() { + if (this._tag != Tag.INVALID_USER) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_USER, but was Tag." + this._tag.name()); + } + return invalidUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.invalidUserValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UserDeleteResult) { + UserDeleteResult other = (UserDeleteResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case INVALID_USER: + return (this.invalidUserValue == other.invalidUserValue) || (this.invalidUserValue.equals(other.invalidUserValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserDeleteResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + UserDeleteEmailsResult.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case INVALID_USER: { + g.writeStartObject(); + writeTag("invalid_user", g); + g.writeFieldName("invalid_user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.invalidUserValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserDeleteResult deserialize(JsonParser p) throws IOException, JsonParseException { + UserDeleteResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + UserDeleteEmailsResult fieldValue = null; + fieldValue = UserDeleteEmailsResult.Serializer.INSTANCE.deserialize(p, true); + value = UserDeleteResult.success(fieldValue); + } + else if ("invalid_user".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("invalid_user", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = UserDeleteResult.invalidUser(fieldValue); + } + else { + value = UserDeleteResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserResendEmailsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserResendEmailsResult.java new file mode 100644 index 000000000..c9f753ac4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserResendEmailsResult.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class UserResendEmailsResult { + // struct team.UserResendEmailsResult (team_secondary_mails.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nonnull + protected final List results; + + /** + * + * @param user Must not be {@code null}. + * @param results Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserResendEmailsResult(@Nonnull UserSelectorArg user, @Nonnull List results) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (results == null) { + throw new IllegalArgumentException("Required value for 'results' is null"); + } + for (ResendSecondaryEmailResult x : results) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'results' is null"); + } + } + this.results = results; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getResults() { + return results; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.results + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserResendEmailsResult other = (UserResendEmailsResult) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.results == other.results) || (this.results.equals(other.results))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserResendEmailsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("results"); + StoneSerializers.list(ResendSecondaryEmailResult.Serializer.INSTANCE).serialize(value.results, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserResendEmailsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserResendEmailsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + List f_results = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("results".equals(field)) { + f_results = StoneSerializers.list(ResendSecondaryEmailResult.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_results == null) { + throw new JsonParseException(p, "Required field \"results\" missing."); + } + value = new UserResendEmailsResult(f_user, f_results); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserResendResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserResendResult.java new file mode 100644 index 000000000..75473624a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserResendResult.java @@ -0,0 +1,390 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Result of trying to resend verification emails to a user. 'success' is the + * only value indicating that a user was successfully retrieved for sending + * verification emails. The other values explain the type of error that + * occurred, and include the user for which the error occurred. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UserResendResult { + // union team.UserResendResult (team_secondary_mails.stone) + + /** + * Discriminating tag type for {@link UserResendResult}. + */ + public enum Tag { + /** + * Describes a user and the results for each attempt to resend + * verification emails. + */ + SUCCESS, // UserResendEmailsResult + /** + * Specified user is not a valid target for resending verification + * emails. + */ + INVALID_USER, // UserSelectorArg + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UserResendResult OTHER = new UserResendResult().withTag(Tag.OTHER); + + private Tag _tag; + private UserResendEmailsResult successValue; + private UserSelectorArg invalidUserValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UserResendResult() { + } + + + /** + * Result of trying to resend verification emails to a user. 'success' is + * the only value indicating that a user was successfully retrieved for + * sending verification emails. The other values explain the type of error + * that occurred, and include the user for which the error occurred. + * + * @param _tag Discriminating tag for this instance. + */ + private UserResendResult withTag(Tag _tag) { + UserResendResult result = new UserResendResult(); + result._tag = _tag; + return result; + } + + /** + * Result of trying to resend verification emails to a user. 'success' is + * the only value indicating that a user was successfully retrieved for + * sending verification emails. The other values explain the type of error + * that occurred, and include the user for which the error occurred. + * + * @param successValue Describes a user and the results for each attempt to + * resend verification emails. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserResendResult withTagAndSuccess(Tag _tag, UserResendEmailsResult successValue) { + UserResendResult result = new UserResendResult(); + result._tag = _tag; + result.successValue = successValue; + return result; + } + + /** + * Result of trying to resend verification emails to a user. 'success' is + * the only value indicating that a user was successfully retrieved for + * sending verification emails. The other values explain the type of error + * that occurred, and include the user for which the error occurred. + * + * @param invalidUserValue Specified user is not a valid target for + * resending verification emails. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserResendResult withTagAndInvalidUser(Tag _tag, UserSelectorArg invalidUserValue) { + UserResendResult result = new UserResendResult(); + result._tag = _tag; + result.invalidUserValue = invalidUserValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UserResendResult}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SUCCESS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SUCCESS}, + * {@code false} otherwise. + */ + public boolean isSuccess() { + return this._tag == Tag.SUCCESS; + } + + /** + * Returns an instance of {@code UserResendResult} that has its tag set to + * {@link Tag#SUCCESS}. + * + *

Describes a user and the results for each attempt to resend + * verification emails.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserResendResult} with its tag set to {@link + * Tag#SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserResendResult success(UserResendEmailsResult value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserResendResult().withTagAndSuccess(Tag.SUCCESS, value); + } + + /** + * Describes a user and the results for each attempt to resend verification + * emails. + * + *

This instance must be tagged as {@link Tag#SUCCESS}.

+ * + * @return The {@link UserResendEmailsResult} value associated with this + * instance if {@link #isSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSuccess} is {@code false}. + */ + public UserResendEmailsResult getSuccessValue() { + if (this._tag != Tag.SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SUCCESS, but was Tag." + this._tag.name()); + } + return successValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVALID_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVALID_USER}, {@code false} otherwise. + */ + public boolean isInvalidUser() { + return this._tag == Tag.INVALID_USER; + } + + /** + * Returns an instance of {@code UserResendResult} that has its tag set to + * {@link Tag#INVALID_USER}. + * + *

Specified user is not a valid target for resending verification + * emails.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserResendResult} with its tag set to {@link + * Tag#INVALID_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserResendResult invalidUser(UserSelectorArg value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserResendResult().withTagAndInvalidUser(Tag.INVALID_USER, value); + } + + /** + * Specified user is not a valid target for resending verification emails. + * + *

This instance must be tagged as {@link Tag#INVALID_USER}.

+ * + * @return The {@link UserSelectorArg} value associated with this instance + * if {@link #isInvalidUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isInvalidUser} is {@code + * false}. + */ + public UserSelectorArg getInvalidUserValue() { + if (this._tag != Tag.INVALID_USER) { + throw new IllegalStateException("Invalid tag: required Tag.INVALID_USER, but was Tag." + this._tag.name()); + } + return invalidUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.successValue, + this.invalidUserValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UserResendResult) { + UserResendResult other = (UserResendResult) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SUCCESS: + return (this.successValue == other.successValue) || (this.successValue.equals(other.successValue)); + case INVALID_USER: + return (this.invalidUserValue == other.invalidUserValue) || (this.invalidUserValue.equals(other.invalidUserValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserResendResult value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SUCCESS: { + g.writeStartObject(); + writeTag("success", g); + UserResendEmailsResult.Serializer.INSTANCE.serialize(value.successValue, g, true); + g.writeEndObject(); + break; + } + case INVALID_USER: { + g.writeStartObject(); + writeTag("invalid_user", g); + g.writeFieldName("invalid_user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.invalidUserValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserResendResult deserialize(JsonParser p) throws IOException, JsonParseException { + UserResendResult value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("success".equals(tag)) { + UserResendEmailsResult fieldValue = null; + fieldValue = UserResendEmailsResult.Serializer.INSTANCE.deserialize(p, true); + value = UserResendResult.success(fieldValue); + } + else if ("invalid_user".equals(tag)) { + UserSelectorArg fieldValue = null; + expectField("invalid_user", p); + fieldValue = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + value = UserResendResult.invalidUser(fieldValue); + } + else { + value = UserResendResult.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSecondaryEmailsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSecondaryEmailsArg.java new file mode 100644 index 000000000..84bf34965 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSecondaryEmailsArg.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * User and a list of secondary emails. + */ +public class UserSecondaryEmailsArg { + // struct team.UserSecondaryEmailsArg (team_secondary_mails.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nonnull + protected final List secondaryEmails; + + /** + * User and a list of secondary emails. + * + * @param user Must not be {@code null}. + * @param secondaryEmails Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserSecondaryEmailsArg(@Nonnull UserSelectorArg user, @Nonnull List secondaryEmails) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (secondaryEmails == null) { + throw new IllegalArgumentException("Required value for 'secondaryEmails' is null"); + } + for (String x : secondaryEmails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'secondaryEmails' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'secondaryEmails' is longer than 255"); + } + if (!java.util.regex.Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", x)) { + throw new IllegalArgumentException("Stringan item in list 'secondaryEmails' does not match pattern"); + } + } + this.secondaryEmails = secondaryEmails; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSecondaryEmails() { + return secondaryEmails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.secondaryEmails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserSecondaryEmailsArg other = (UserSecondaryEmailsArg) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.secondaryEmails == other.secondaryEmails) || (this.secondaryEmails.equals(other.secondaryEmails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserSecondaryEmailsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("secondary_emails"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.secondaryEmails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserSecondaryEmailsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserSecondaryEmailsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + List f_secondaryEmails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("secondary_emails".equals(field)) { + f_secondaryEmails = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_secondaryEmails == null) { + throw new JsonParseException(p, "Required field \"secondary_emails\" missing."); + } + value = new UserSecondaryEmailsArg(f_user, f_secondaryEmails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSecondaryEmailsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSecondaryEmailsResult.java new file mode 100644 index 000000000..407ec155b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSecondaryEmailsResult.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_secondary_mails.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class UserSecondaryEmailsResult { + // struct team.UserSecondaryEmailsResult (team_secondary_mails.stone) + + @Nonnull + protected final UserSelectorArg user; + @Nonnull + protected final List results; + + /** + * + * @param user Must not be {@code null}. + * @param results Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserSecondaryEmailsResult(@Nonnull UserSelectorArg user, @Nonnull List results) { + if (user == null) { + throw new IllegalArgumentException("Required value for 'user' is null"); + } + this.user = user; + if (results == null) { + throw new IllegalArgumentException("Required value for 'results' is null"); + } + for (AddSecondaryEmailResult x : results) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'results' is null"); + } + } + this.results = results; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserSelectorArg getUser() { + return user; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getResults() { + return results; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.user, + this.results + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserSecondaryEmailsResult other = (UserSecondaryEmailsResult) obj; + return ((this.user == other.user) || (this.user.equals(other.user))) + && ((this.results == other.results) || (this.results.equals(other.results))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserSecondaryEmailsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user"); + UserSelectorArg.Serializer.INSTANCE.serialize(value.user, g); + g.writeFieldName("results"); + StoneSerializers.list(AddSecondaryEmailResult.Serializer.INSTANCE).serialize(value.results, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserSecondaryEmailsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserSecondaryEmailsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserSelectorArg f_user = null; + List f_results = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user".equals(field)) { + f_user = UserSelectorArg.Serializer.INSTANCE.deserialize(p); + } + else if ("results".equals(field)) { + f_results = StoneSerializers.list(AddSecondaryEmailResult.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_user == null) { + throw new JsonParseException(p, "Required field \"user\" missing."); + } + if (f_results == null) { + throw new JsonParseException(p, "Required field \"results\" missing."); + } + value = new UserSecondaryEmailsResult(f_user, f_results); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSelectorArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSelectorArg.java new file mode 100644 index 000000000..1f1dc4412 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/UserSelectorArg.java @@ -0,0 +1,428 @@ +/* DO NOT EDIT */ +/* This file was generated from team.stone */ + +package com.dropbox.core.v2.team; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.regex.Pattern; + +/** + * Argument for selecting a single user, either by team_member_id, external_id + * or email. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ */ +public final class UserSelectorArg { + // union team.UserSelectorArg (team.stone) + + /** + * Discriminating tag type for {@link UserSelectorArg}. + */ + public enum Tag { + TEAM_MEMBER_ID, // String + EXTERNAL_ID, // String + EMAIL; // String + } + + private Tag _tag; + private String teamMemberIdValue; + private String externalIdValue; + private String emailValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UserSelectorArg() { + } + + + /** + * Argument for selecting a single user, either by team_member_id, + * external_id or email. + * + * @param _tag Discriminating tag for this instance. + */ + private UserSelectorArg withTag(Tag _tag) { + UserSelectorArg result = new UserSelectorArg(); + result._tag = _tag; + return result; + } + + /** + * Argument for selecting a single user, either by team_member_id, + * external_id or email. + * + * @param teamMemberIdValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserSelectorArg withTagAndTeamMemberId(Tag _tag, String teamMemberIdValue) { + UserSelectorArg result = new UserSelectorArg(); + result._tag = _tag; + result.teamMemberIdValue = teamMemberIdValue; + return result; + } + + /** + * Argument for selecting a single user, either by team_member_id, + * external_id or email. + * + * @param externalIdValue Must have length of at most 64 and not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserSelectorArg withTagAndExternalId(Tag _tag, String externalIdValue) { + UserSelectorArg result = new UserSelectorArg(); + result._tag = _tag; + result.externalIdValue = externalIdValue; + return result; + } + + /** + * Argument for selecting a single user, either by team_member_id, + * external_id or email. + * + * @param emailValue Must have length of at most 255, match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * and not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserSelectorArg withTagAndEmail(Tag _tag, String emailValue) { + UserSelectorArg result = new UserSelectorArg(); + result._tag = _tag; + result.emailValue = emailValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UserSelectorArg}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MEMBER_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MEMBER_ID}, {@code false} otherwise. + */ + public boolean isTeamMemberId() { + return this._tag == Tag.TEAM_MEMBER_ID; + } + + /** + * Returns an instance of {@code UserSelectorArg} that has its tag set to + * {@link Tag#TEAM_MEMBER_ID}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserSelectorArg} with its tag set to {@link + * Tag#TEAM_MEMBER_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserSelectorArg teamMemberId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserSelectorArg().withTagAndTeamMemberId(Tag.TEAM_MEMBER_ID, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_MEMBER_ID}. + * + * @return The {@link String} value associated with this instance if {@link + * #isTeamMemberId} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMemberId} is {@code + * false}. + */ + public String getTeamMemberIdValue() { + if (this._tag != Tag.TEAM_MEMBER_ID) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MEMBER_ID, but was Tag." + this._tag.name()); + } + return teamMemberIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isExternalId() { + return this._tag == Tag.EXTERNAL_ID; + } + + /** + * Returns an instance of {@code UserSelectorArg} that has its tag set to + * {@link Tag#EXTERNAL_ID}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserSelectorArg} with its tag set to {@link + * Tag#EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is longer than 64 or + * is {@code null}. + */ + public static UserSelectorArg externalId(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 64) { + throw new IllegalArgumentException("String is longer than 64"); + } + return new UserSelectorArg().withTagAndExternalId(Tag.EXTERNAL_ID, value); + } + + /** + * This instance must be tagged as {@link Tag#EXTERNAL_ID}. + * + * @return The {@link String} value associated with this instance if {@link + * #isExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isExternalId} is {@code false}. + */ + public String getExternalIdValue() { + if (this._tag != Tag.EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return externalIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#EMAIL}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#EMAIL}, + * {@code false} otherwise. + */ + public boolean isEmail() { + return this._tag == Tag.EMAIL; + } + + /** + * Returns an instance of {@code UserSelectorArg} that has its tag set to + * {@link Tag#EMAIL}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserSelectorArg} with its tag set to {@link + * Tag#EMAIL}. + * + * @throws IllegalArgumentException if {@code value} is longer than 255, + * does not match pattern "{@code + * ^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$}", + * or is {@code null}. + */ + public static UserSelectorArg email(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() > 255) { + throw new IllegalArgumentException("String is longer than 255"); + } + if (!Pattern.matches("^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", value)) { + throw new IllegalArgumentException("String does not match pattern"); + } + return new UserSelectorArg().withTagAndEmail(Tag.EMAIL, value); + } + + /** + * This instance must be tagged as {@link Tag#EMAIL}. + * + * @return The {@link String} value associated with this instance if {@link + * #isEmail} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmail} is {@code false}. + */ + public String getEmailValue() { + if (this._tag != Tag.EMAIL) { + throw new IllegalStateException("Invalid tag: required Tag.EMAIL, but was Tag." + this._tag.name()); + } + return emailValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.teamMemberIdValue, + this.externalIdValue, + this.emailValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UserSelectorArg) { + UserSelectorArg other = (UserSelectorArg) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case TEAM_MEMBER_ID: + return (this.teamMemberIdValue == other.teamMemberIdValue) || (this.teamMemberIdValue.equals(other.teamMemberIdValue)); + case EXTERNAL_ID: + return (this.externalIdValue == other.externalIdValue) || (this.externalIdValue.equals(other.externalIdValue)); + case EMAIL: + return (this.emailValue == other.emailValue) || (this.emailValue.equals(other.emailValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserSelectorArg value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case TEAM_MEMBER_ID: { + g.writeStartObject(); + writeTag("team_member_id", g); + g.writeFieldName("team_member_id"); + StoneSerializers.string().serialize(value.teamMemberIdValue, g); + g.writeEndObject(); + break; + } + case EXTERNAL_ID: { + g.writeStartObject(); + writeTag("external_id", g); + g.writeFieldName("external_id"); + StoneSerializers.string().serialize(value.externalIdValue, g); + g.writeEndObject(); + break; + } + case EMAIL: { + g.writeStartObject(); + writeTag("email", g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.emailValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public UserSelectorArg deserialize(JsonParser p) throws IOException, JsonParseException { + UserSelectorArg value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team_member_id".equals(tag)) { + String fieldValue = null; + expectField("team_member_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = UserSelectorArg.teamMemberId(fieldValue); + } + else if ("external_id".equals(tag)) { + String fieldValue = null; + expectField("external_id", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = UserSelectorArg.externalId(fieldValue); + } + else if ("email".equals(tag)) { + String fieldValue = null; + expectField("email", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = UserSelectorArg.email(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/package-info.java new file mode 100644 index 000000000..978670fe9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/package-info.java @@ -0,0 +1,9 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.v2.team.DbxTeamTeamRequests} for a list of + * possible requests for this namespace. + */ +package com.dropbox.core.v2.team; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupManagementType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupManagementType.java new file mode 100644 index 000000000..7fc734ca4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupManagementType.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_common.stone */ + +package com.dropbox.core.v2.teamcommon; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The group type determines how a group is managed. + */ +public enum GroupManagementType { + // union team_common.GroupManagementType (team_common.stone) + /** + * A group which is managed by selected users. + */ + USER_MANAGED, + /** + * A group which is managed by team admins only. + */ + COMPANY_MANAGED, + /** + * A group which is managed automatically by Dropbox. + */ + SYSTEM_MANAGED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupManagementType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case USER_MANAGED: { + g.writeString("user_managed"); + break; + } + case COMPANY_MANAGED: { + g.writeString("company_managed"); + break; + } + case SYSTEM_MANAGED: { + g.writeString("system_managed"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupManagementType deserialize(JsonParser p) throws IOException, JsonParseException { + GroupManagementType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("user_managed".equals(tag)) { + value = GroupManagementType.USER_MANAGED; + } + else if ("company_managed".equals(tag)) { + value = GroupManagementType.COMPANY_MANAGED; + } + else if ("system_managed".equals(tag)) { + value = GroupManagementType.SYSTEM_MANAGED; + } + else { + value = GroupManagementType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupSummary.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupSummary.java new file mode 100644 index 000000000..38c35542f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupSummary.java @@ -0,0 +1,359 @@ +/* DO NOT EDIT */ +/* This file was generated from team_common.stone */ + +package com.dropbox.core.v2.teamcommon; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about a group. + */ +public class GroupSummary { + // struct team_common.GroupSummary (team_common.stone) + + @Nonnull + protected final String groupName; + @Nonnull + protected final String groupId; + @Nullable + protected final String groupExternalId; + @Nullable + protected final Long memberCount; + @Nonnull + protected final GroupManagementType groupManagementType; + + /** + * Information about a group. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * @param groupExternalId External ID of group. This is an arbitrary ID + * that an admin can attach to a group. + * @param memberCount The number of members in the group. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupSummary(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType, @Nullable String groupExternalId, @Nullable Long memberCount) { + if (groupName == null) { + throw new IllegalArgumentException("Required value for 'groupName' is null"); + } + this.groupName = groupName; + if (groupId == null) { + throw new IllegalArgumentException("Required value for 'groupId' is null"); + } + this.groupId = groupId; + this.groupExternalId = groupExternalId; + this.memberCount = memberCount; + if (groupManagementType == null) { + throw new IllegalArgumentException("Required value for 'groupManagementType' is null"); + } + this.groupManagementType = groupManagementType; + } + + /** + * Information about a group. + * + *

The default values for unset fields will be used.

+ * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupSummary(@Nonnull String groupName, @Nonnull String groupId, @Nonnull GroupManagementType groupManagementType) { + this(groupName, groupId, groupManagementType, null, null); + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGroupName() { + return groupName; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGroupId() { + return groupId; + } + + /** + * Who is allowed to manage the group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupManagementType getGroupManagementType() { + return groupManagementType; + } + + /** + * External ID of group. This is an arbitrary ID that an admin can attach to + * a group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getGroupExternalId() { + return groupExternalId; + } + + /** + * The number of members in the group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getMemberCount() { + return memberCount; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param groupName Must not be {@code null}. + * @param groupId Must not be {@code null}. + * @param groupManagementType Who is allowed to manage the group. Must not + * be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String groupName, String groupId, GroupManagementType groupManagementType) { + return new Builder(groupName, groupId, groupManagementType); + } + + /** + * Builder for {@link GroupSummary}. + */ + public static class Builder { + protected final String groupName; + protected final String groupId; + protected final GroupManagementType groupManagementType; + + protected String groupExternalId; + protected Long memberCount; + + protected Builder(String groupName, String groupId, GroupManagementType groupManagementType) { + if (groupName == null) { + throw new IllegalArgumentException("Required value for 'groupName' is null"); + } + this.groupName = groupName; + if (groupId == null) { + throw new IllegalArgumentException("Required value for 'groupId' is null"); + } + this.groupId = groupId; + if (groupManagementType == null) { + throw new IllegalArgumentException("Required value for 'groupManagementType' is null"); + } + this.groupManagementType = groupManagementType; + this.groupExternalId = null; + this.memberCount = null; + } + + /** + * Set value for optional field. + * + * @param groupExternalId External ID of group. This is an arbitrary ID + * that an admin can attach to a group. + * + * @return this builder + */ + public Builder withGroupExternalId(String groupExternalId) { + this.groupExternalId = groupExternalId; + return this; + } + + /** + * Set value for optional field. + * + * @param memberCount The number of members in the group. + * + * @return this builder + */ + public Builder withMemberCount(Long memberCount) { + this.memberCount = memberCount; + return this; + } + + /** + * Builds an instance of {@link GroupSummary} configured with this + * builder's values + * + * @return new instance of {@link GroupSummary} + */ + public GroupSummary build() { + return new GroupSummary(groupName, groupId, groupManagementType, groupExternalId, memberCount); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.groupName, + this.groupId, + this.groupExternalId, + this.memberCount, + this.groupManagementType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupSummary other = (GroupSummary) obj; + return ((this.groupName == other.groupName) || (this.groupName.equals(other.groupName))) + && ((this.groupId == other.groupId) || (this.groupId.equals(other.groupId))) + && ((this.groupManagementType == other.groupManagementType) || (this.groupManagementType.equals(other.groupManagementType))) + && ((this.groupExternalId == other.groupExternalId) || (this.groupExternalId != null && this.groupExternalId.equals(other.groupExternalId))) + && ((this.memberCount == other.memberCount) || (this.memberCount != null && this.memberCount.equals(other.memberCount))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupSummary value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("group_name"); + StoneSerializers.string().serialize(value.groupName, g); + g.writeFieldName("group_id"); + StoneSerializers.string().serialize(value.groupId, g); + g.writeFieldName("group_management_type"); + GroupManagementType.Serializer.INSTANCE.serialize(value.groupManagementType, g); + if (value.groupExternalId != null) { + g.writeFieldName("group_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.groupExternalId, g); + } + if (value.memberCount != null) { + g.writeFieldName("member_count"); + StoneSerializers.nullable(StoneSerializers.uInt32()).serialize(value.memberCount, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupSummary deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupSummary value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_groupName = null; + String f_groupId = null; + GroupManagementType f_groupManagementType = null; + String f_groupExternalId = null; + Long f_memberCount = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("group_name".equals(field)) { + f_groupName = StoneSerializers.string().deserialize(p); + } + else if ("group_id".equals(field)) { + f_groupId = StoneSerializers.string().deserialize(p); + } + else if ("group_management_type".equals(field)) { + f_groupManagementType = GroupManagementType.Serializer.INSTANCE.deserialize(p); + } + else if ("group_external_id".equals(field)) { + f_groupExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_count".equals(field)) { + f_memberCount = StoneSerializers.nullable(StoneSerializers.uInt32()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_groupName == null) { + throw new JsonParseException(p, "Required field \"group_name\" missing."); + } + if (f_groupId == null) { + throw new JsonParseException(p, "Required field \"group_id\" missing."); + } + if (f_groupManagementType == null) { + throw new JsonParseException(p, "Required field \"group_management_type\" missing."); + } + value = new GroupSummary(f_groupName, f_groupId, f_groupManagementType, f_groupExternalId, f_memberCount); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupType.java new file mode 100644 index 000000000..6f0bc94c5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/GroupType.java @@ -0,0 +1,99 @@ +/* DO NOT EDIT */ +/* This file was generated from team_common.stone */ + +package com.dropbox.core.v2.teamcommon; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The group type determines how a group is created and managed. + */ +public enum GroupType { + // union team_common.GroupType (team_common.stone) + /** + * A group to which team members are automatically added. Applicable to team folders only. + */ + TEAM, + /** + * A group is created and managed by a user. + */ + USER_MANAGED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TEAM: { + g.writeString("team"); + break; + } + case USER_MANAGED: { + g.writeString("user_managed"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupType deserialize(JsonParser p) throws IOException, JsonParseException { + GroupType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team".equals(tag)) { + value = GroupType.TEAM; + } + else if ("user_managed".equals(tag)) { + value = GroupType.USER_MANAGED; + } + else { + value = GroupType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/MemberSpaceLimitType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/MemberSpaceLimitType.java new file mode 100644 index 000000000..dd5bda9fd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/MemberSpaceLimitType.java @@ -0,0 +1,111 @@ +/* DO NOT EDIT */ +/* This file was generated from team_common.stone */ + +package com.dropbox.core.v2.teamcommon; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The type of the space limit imposed on a team member. + */ +public enum MemberSpaceLimitType { + // union team_common.MemberSpaceLimitType (team_common.stone) + /** + * The team member does not have imposed space limit. + */ + OFF, + /** + * The team member has soft imposed space limit - the limit is used for + * display and for notifications. + */ + ALERT_ONLY, + /** + * The team member has hard imposed space limit - Dropbox file sync will + * stop after the limit is reached. + */ + STOP_SYNC, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case OFF: { + g.writeString("off"); + break; + } + case ALERT_ONLY: { + g.writeString("alert_only"); + break; + } + case STOP_SYNC: { + g.writeString("stop_sync"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberSpaceLimitType deserialize(JsonParser p) throws IOException, JsonParseException { + MemberSpaceLimitType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("off".equals(tag)) { + value = MemberSpaceLimitType.OFF; + } + else if ("alert_only".equals(tag)) { + value = MemberSpaceLimitType.ALERT_ONLY; + } + else if ("stop_sync".equals(tag)) { + value = MemberSpaceLimitType.STOP_SYNC; + } + else { + value = MemberSpaceLimitType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/TimeRange.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/TimeRange.java new file mode 100644 index 000000000..267e1c231 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/TimeRange.java @@ -0,0 +1,241 @@ +/* DO NOT EDIT */ +/* This file was generated from team_common.stone */ + +package com.dropbox.core.v2.teamcommon; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Time range. + */ +public class TimeRange { + // struct team_common.TimeRange (team_common.stone) + + @Nullable + protected final Date startTime; + @Nullable + protected final Date endTime; + + /** + * Time range. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param startTime Optional starting time (inclusive). + * @param endTime Optional ending time (exclusive). + */ + public TimeRange(@Nullable Date startTime, @Nullable Date endTime) { + this.startTime = LangUtil.truncateMillis(startTime); + this.endTime = LangUtil.truncateMillis(endTime); + } + + /** + * Time range. + * + *

The default values for unset fields will be used.

+ */ + public TimeRange() { + this(null, null); + } + + /** + * Optional starting time (inclusive). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getStartTime() { + return startTime; + } + + /** + * Optional ending time (exclusive). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getEndTime() { + return endTime; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link TimeRange}. + */ + public static class Builder { + + protected Date startTime; + protected Date endTime; + + protected Builder() { + this.startTime = null; + this.endTime = null; + } + + /** + * Set value for optional field. + * + * @param startTime Optional starting time (inclusive). + * + * @return this builder + */ + public Builder withStartTime(Date startTime) { + this.startTime = LangUtil.truncateMillis(startTime); + return this; + } + + /** + * Set value for optional field. + * + * @param endTime Optional ending time (exclusive). + * + * @return this builder + */ + public Builder withEndTime(Date endTime) { + this.endTime = LangUtil.truncateMillis(endTime); + return this; + } + + /** + * Builds an instance of {@link TimeRange} configured with this + * builder's values + * + * @return new instance of {@link TimeRange} + */ + public TimeRange build() { + return new TimeRange(startTime, endTime); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startTime, + this.endTime + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TimeRange other = (TimeRange) obj; + return ((this.startTime == other.startTime) || (this.startTime != null && this.startTime.equals(other.startTime))) + && ((this.endTime == other.endTime) || (this.endTime != null && this.endTime.equals(other.endTime))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TimeRange value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.startTime != null) { + g.writeFieldName("start_time"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.startTime, g); + } + if (value.endTime != null) { + g.writeFieldName("end_time"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.endTime, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TimeRange deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TimeRange value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_startTime = null; + Date f_endTime = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_time".equals(field)) { + f_startTime = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("end_time".equals(field)) { + f_endTime = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new TimeRange(f_startTime, f_endTime); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/package-info.java new file mode 100644 index 000000000..0927969d6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamcommon/package-info.java @@ -0,0 +1,7 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + */ +package com.dropbox.core.v2.teamcommon; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccessMethodLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccessMethodLogInfo.java new file mode 100644 index 000000000..7417cc6a6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccessMethodLogInfo.java @@ -0,0 +1,713 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Indicates the method in which the action was performed. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AccessMethodLogInfo { + // union team_log.AccessMethodLogInfo (team_log_generated.stone) + + /** + * Discriminating tag type for {@link AccessMethodLogInfo}. + */ + public enum Tag { + /** + * Admin console session details. + */ + ADMIN_CONSOLE, // WebSessionLogInfo + /** + * Api session details. + */ + API, // ApiSessionLogInfo + /** + * Content manager session details. + */ + CONTENT_MANAGER, // WebSessionLogInfo + /** + * End user session details. + */ + END_USER, // SessionLogInfo + /** + * Enterprise console session details. + */ + ENTERPRISE_CONSOLE, // WebSessionLogInfo + /** + * Sign in as session details. + */ + SIGN_IN_AS, // WebSessionLogInfo + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AccessMethodLogInfo OTHER = new AccessMethodLogInfo().withTag(Tag.OTHER); + + private Tag _tag; + private WebSessionLogInfo adminConsoleValue; + private ApiSessionLogInfo apiValue; + private WebSessionLogInfo contentManagerValue; + private SessionLogInfo endUserValue; + private WebSessionLogInfo enterpriseConsoleValue; + private WebSessionLogInfo signInAsValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AccessMethodLogInfo() { + } + + + /** + * Indicates the method in which the action was performed. + * + * @param _tag Discriminating tag for this instance. + */ + private AccessMethodLogInfo withTag(Tag _tag) { + AccessMethodLogInfo result = new AccessMethodLogInfo(); + result._tag = _tag; + return result; + } + + /** + * Indicates the method in which the action was performed. + * + * @param adminConsoleValue Admin console session details. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessMethodLogInfo withTagAndAdminConsole(Tag _tag, WebSessionLogInfo adminConsoleValue) { + AccessMethodLogInfo result = new AccessMethodLogInfo(); + result._tag = _tag; + result.adminConsoleValue = adminConsoleValue; + return result; + } + + /** + * Indicates the method in which the action was performed. + * + * @param apiValue Api session details. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessMethodLogInfo withTagAndApi(Tag _tag, ApiSessionLogInfo apiValue) { + AccessMethodLogInfo result = new AccessMethodLogInfo(); + result._tag = _tag; + result.apiValue = apiValue; + return result; + } + + /** + * Indicates the method in which the action was performed. + * + * @param contentManagerValue Content manager session details. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessMethodLogInfo withTagAndContentManager(Tag _tag, WebSessionLogInfo contentManagerValue) { + AccessMethodLogInfo result = new AccessMethodLogInfo(); + result._tag = _tag; + result.contentManagerValue = contentManagerValue; + return result; + } + + /** + * Indicates the method in which the action was performed. + * + * @param endUserValue End user session details. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessMethodLogInfo withTagAndEndUser(Tag _tag, SessionLogInfo endUserValue) { + AccessMethodLogInfo result = new AccessMethodLogInfo(); + result._tag = _tag; + result.endUserValue = endUserValue; + return result; + } + + /** + * Indicates the method in which the action was performed. + * + * @param enterpriseConsoleValue Enterprise console session details. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessMethodLogInfo withTagAndEnterpriseConsole(Tag _tag, WebSessionLogInfo enterpriseConsoleValue) { + AccessMethodLogInfo result = new AccessMethodLogInfo(); + result._tag = _tag; + result.enterpriseConsoleValue = enterpriseConsoleValue; + return result; + } + + /** + * Indicates the method in which the action was performed. + * + * @param signInAsValue Sign in as session details. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AccessMethodLogInfo withTagAndSignInAs(Tag _tag, WebSessionLogInfo signInAsValue) { + AccessMethodLogInfo result = new AccessMethodLogInfo(); + result._tag = _tag; + result.signInAsValue = signInAsValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AccessMethodLogInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_CONSOLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_CONSOLE}, {@code false} otherwise. + */ + public boolean isAdminConsole() { + return this._tag == Tag.ADMIN_CONSOLE; + } + + /** + * Returns an instance of {@code AccessMethodLogInfo} that has its tag set + * to {@link Tag#ADMIN_CONSOLE}. + * + *

Admin console session details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessMethodLogInfo} with its tag set to + * {@link Tag#ADMIN_CONSOLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessMethodLogInfo adminConsole(WebSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessMethodLogInfo().withTagAndAdminConsole(Tag.ADMIN_CONSOLE, value); + } + + /** + * Admin console session details. + * + *

This instance must be tagged as {@link Tag#ADMIN_CONSOLE}.

+ * + * @return The {@link WebSessionLogInfo} value associated with this instance + * if {@link #isAdminConsole} is {@code true}. + * + * @throws IllegalStateException If {@link #isAdminConsole} is {@code + * false}. + */ + public WebSessionLogInfo getAdminConsoleValue() { + if (this._tag != Tag.ADMIN_CONSOLE) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_CONSOLE, but was Tag." + this._tag.name()); + } + return adminConsoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#API}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#API}, + * {@code false} otherwise. + */ + public boolean isApi() { + return this._tag == Tag.API; + } + + /** + * Returns an instance of {@code AccessMethodLogInfo} that has its tag set + * to {@link Tag#API}. + * + *

Api session details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessMethodLogInfo} with its tag set to + * {@link Tag#API}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessMethodLogInfo api(ApiSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessMethodLogInfo().withTagAndApi(Tag.API, value); + } + + /** + * Api session details. + * + *

This instance must be tagged as {@link Tag#API}.

+ * + * @return The {@link ApiSessionLogInfo} value associated with this instance + * if {@link #isApi} is {@code true}. + * + * @throws IllegalStateException If {@link #isApi} is {@code false}. + */ + public ApiSessionLogInfo getApiValue() { + if (this._tag != Tag.API) { + throw new IllegalStateException("Invalid tag: required Tag.API, but was Tag." + this._tag.name()); + } + return apiValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTENT_MANAGER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTENT_MANAGER}, {@code false} otherwise. + */ + public boolean isContentManager() { + return this._tag == Tag.CONTENT_MANAGER; + } + + /** + * Returns an instance of {@code AccessMethodLogInfo} that has its tag set + * to {@link Tag#CONTENT_MANAGER}. + * + *

Content manager session details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessMethodLogInfo} with its tag set to + * {@link Tag#CONTENT_MANAGER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessMethodLogInfo contentManager(WebSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessMethodLogInfo().withTagAndContentManager(Tag.CONTENT_MANAGER, value); + } + + /** + * Content manager session details. + * + *

This instance must be tagged as {@link Tag#CONTENT_MANAGER}.

+ * + * @return The {@link WebSessionLogInfo} value associated with this instance + * if {@link #isContentManager} is {@code true}. + * + * @throws IllegalStateException If {@link #isContentManager} is {@code + * false}. + */ + public WebSessionLogInfo getContentManagerValue() { + if (this._tag != Tag.CONTENT_MANAGER) { + throw new IllegalStateException("Invalid tag: required Tag.CONTENT_MANAGER, but was Tag." + this._tag.name()); + } + return contentManagerValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#END_USER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#END_USER}, + * {@code false} otherwise. + */ + public boolean isEndUser() { + return this._tag == Tag.END_USER; + } + + /** + * Returns an instance of {@code AccessMethodLogInfo} that has its tag set + * to {@link Tag#END_USER}. + * + *

End user session details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessMethodLogInfo} with its tag set to + * {@link Tag#END_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessMethodLogInfo endUser(SessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessMethodLogInfo().withTagAndEndUser(Tag.END_USER, value); + } + + /** + * End user session details. + * + *

This instance must be tagged as {@link Tag#END_USER}.

+ * + * @return The {@link SessionLogInfo} value associated with this instance if + * {@link #isEndUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isEndUser} is {@code false}. + */ + public SessionLogInfo getEndUserValue() { + if (this._tag != Tag.END_USER) { + throw new IllegalStateException("Invalid tag: required Tag.END_USER, but was Tag." + this._tag.name()); + } + return endUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENTERPRISE_CONSOLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENTERPRISE_CONSOLE}, {@code false} otherwise. + */ + public boolean isEnterpriseConsole() { + return this._tag == Tag.ENTERPRISE_CONSOLE; + } + + /** + * Returns an instance of {@code AccessMethodLogInfo} that has its tag set + * to {@link Tag#ENTERPRISE_CONSOLE}. + * + *

Enterprise console session details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessMethodLogInfo} with its tag set to + * {@link Tag#ENTERPRISE_CONSOLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessMethodLogInfo enterpriseConsole(WebSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessMethodLogInfo().withTagAndEnterpriseConsole(Tag.ENTERPRISE_CONSOLE, value); + } + + /** + * Enterprise console session details. + * + *

This instance must be tagged as {@link Tag#ENTERPRISE_CONSOLE}.

+ * + * @return The {@link WebSessionLogInfo} value associated with this instance + * if {@link #isEnterpriseConsole} is {@code true}. + * + * @throws IllegalStateException If {@link #isEnterpriseConsole} is {@code + * false}. + */ + public WebSessionLogInfo getEnterpriseConsoleValue() { + if (this._tag != Tag.ENTERPRISE_CONSOLE) { + throw new IllegalStateException("Invalid tag: required Tag.ENTERPRISE_CONSOLE, but was Tag." + this._tag.name()); + } + return enterpriseConsoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SIGN_IN_AS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SIGN_IN_AS}, {@code false} otherwise. + */ + public boolean isSignInAs() { + return this._tag == Tag.SIGN_IN_AS; + } + + /** + * Returns an instance of {@code AccessMethodLogInfo} that has its tag set + * to {@link Tag#SIGN_IN_AS}. + * + *

Sign in as session details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AccessMethodLogInfo} with its tag set to + * {@link Tag#SIGN_IN_AS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AccessMethodLogInfo signInAs(WebSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AccessMethodLogInfo().withTagAndSignInAs(Tag.SIGN_IN_AS, value); + } + + /** + * Sign in as session details. + * + *

This instance must be tagged as {@link Tag#SIGN_IN_AS}.

+ * + * @return The {@link WebSessionLogInfo} value associated with this instance + * if {@link #isSignInAs} is {@code true}. + * + * @throws IllegalStateException If {@link #isSignInAs} is {@code false}. + */ + public WebSessionLogInfo getSignInAsValue() { + if (this._tag != Tag.SIGN_IN_AS) { + throw new IllegalStateException("Invalid tag: required Tag.SIGN_IN_AS, but was Tag." + this._tag.name()); + } + return signInAsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.adminConsoleValue, + this.apiValue, + this.contentManagerValue, + this.endUserValue, + this.enterpriseConsoleValue, + this.signInAsValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AccessMethodLogInfo) { + AccessMethodLogInfo other = (AccessMethodLogInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ADMIN_CONSOLE: + return (this.adminConsoleValue == other.adminConsoleValue) || (this.adminConsoleValue.equals(other.adminConsoleValue)); + case API: + return (this.apiValue == other.apiValue) || (this.apiValue.equals(other.apiValue)); + case CONTENT_MANAGER: + return (this.contentManagerValue == other.contentManagerValue) || (this.contentManagerValue.equals(other.contentManagerValue)); + case END_USER: + return (this.endUserValue == other.endUserValue) || (this.endUserValue.equals(other.endUserValue)); + case ENTERPRISE_CONSOLE: + return (this.enterpriseConsoleValue == other.enterpriseConsoleValue) || (this.enterpriseConsoleValue.equals(other.enterpriseConsoleValue)); + case SIGN_IN_AS: + return (this.signInAsValue == other.signInAsValue) || (this.signInAsValue.equals(other.signInAsValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccessMethodLogInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ADMIN_CONSOLE: { + g.writeStartObject(); + writeTag("admin_console", g); + WebSessionLogInfo.Serializer.INSTANCE.serialize(value.adminConsoleValue, g, true); + g.writeEndObject(); + break; + } + case API: { + g.writeStartObject(); + writeTag("api", g); + ApiSessionLogInfo.Serializer.INSTANCE.serialize(value.apiValue, g, true); + g.writeEndObject(); + break; + } + case CONTENT_MANAGER: { + g.writeStartObject(); + writeTag("content_manager", g); + WebSessionLogInfo.Serializer.INSTANCE.serialize(value.contentManagerValue, g, true); + g.writeEndObject(); + break; + } + case END_USER: { + g.writeStartObject(); + writeTag("end_user", g); + g.writeFieldName("end_user"); + SessionLogInfo.Serializer.INSTANCE.serialize(value.endUserValue, g); + g.writeEndObject(); + break; + } + case ENTERPRISE_CONSOLE: { + g.writeStartObject(); + writeTag("enterprise_console", g); + WebSessionLogInfo.Serializer.INSTANCE.serialize(value.enterpriseConsoleValue, g, true); + g.writeEndObject(); + break; + } + case SIGN_IN_AS: { + g.writeStartObject(); + writeTag("sign_in_as", g); + WebSessionLogInfo.Serializer.INSTANCE.serialize(value.signInAsValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccessMethodLogInfo deserialize(JsonParser p) throws IOException, JsonParseException { + AccessMethodLogInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admin_console".equals(tag)) { + WebSessionLogInfo fieldValue = null; + fieldValue = WebSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AccessMethodLogInfo.adminConsole(fieldValue); + } + else if ("api".equals(tag)) { + ApiSessionLogInfo fieldValue = null; + fieldValue = ApiSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AccessMethodLogInfo.api(fieldValue); + } + else if ("content_manager".equals(tag)) { + WebSessionLogInfo fieldValue = null; + fieldValue = WebSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AccessMethodLogInfo.contentManager(fieldValue); + } + else if ("end_user".equals(tag)) { + SessionLogInfo fieldValue = null; + expectField("end_user", p); + fieldValue = SessionLogInfo.Serializer.INSTANCE.deserialize(p); + value = AccessMethodLogInfo.endUser(fieldValue); + } + else if ("enterprise_console".equals(tag)) { + WebSessionLogInfo fieldValue = null; + fieldValue = WebSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AccessMethodLogInfo.enterpriseConsole(fieldValue); + } + else if ("sign_in_as".equals(tag)) { + WebSessionLogInfo fieldValue = null; + fieldValue = WebSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AccessMethodLogInfo.signInAs(fieldValue); + } + else { + value = AccessMethodLogInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureAvailability.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureAvailability.java new file mode 100644 index 000000000..89d350485 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureAvailability.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AccountCaptureAvailability { + // union team_log.AccountCaptureAvailability (team_log_generated.stone) + AVAILABLE, + UNAVAILABLE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureAvailability value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case AVAILABLE: { + g.writeString("available"); + break; + } + case UNAVAILABLE: { + g.writeString("unavailable"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccountCaptureAvailability deserialize(JsonParser p) throws IOException, JsonParseException { + AccountCaptureAvailability value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("available".equals(tag)) { + value = AccountCaptureAvailability.AVAILABLE; + } + else if ("unavailable".equals(tag)) { + value = AccountCaptureAvailability.UNAVAILABLE; + } + else { + value = AccountCaptureAvailability.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityDetails.java new file mode 100644 index 000000000..62ecd01dd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Granted/revoked option to enable account capture on team domains. + */ +public class AccountCaptureChangeAvailabilityDetails { + // struct team_log.AccountCaptureChangeAvailabilityDetails (team_log_generated.stone) + + @Nonnull + protected final AccountCaptureAvailability newValue; + @Nullable + protected final AccountCaptureAvailability previousValue; + + /** + * Granted/revoked option to enable account capture on team domains. + * + * @param newValue New account capture availabilty value. Must not be + * {@code null}. + * @param previousValue Previous account capture availabilty value. Might + * be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureChangeAvailabilityDetails(@Nonnull AccountCaptureAvailability newValue, @Nullable AccountCaptureAvailability previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Granted/revoked option to enable account capture on team domains. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New account capture availabilty value. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureChangeAvailabilityDetails(@Nonnull AccountCaptureAvailability newValue) { + this(newValue, null); + } + + /** + * New account capture availabilty value. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccountCaptureAvailability getNewValue() { + return newValue; + } + + /** + * Previous account capture availabilty value. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccountCaptureAvailability getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureChangeAvailabilityDetails other = (AccountCaptureChangeAvailabilityDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureChangeAvailabilityDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + AccountCaptureAvailability.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(AccountCaptureAvailability.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureChangeAvailabilityDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureChangeAvailabilityDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccountCaptureAvailability f_newValue = null; + AccountCaptureAvailability f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = AccountCaptureAvailability.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(AccountCaptureAvailability.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new AccountCaptureChangeAvailabilityDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityType.java new file mode 100644 index 000000000..d90ccf930 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangeAvailabilityType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AccountCaptureChangeAvailabilityType { + // struct team_log.AccountCaptureChangeAvailabilityType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureChangeAvailabilityType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureChangeAvailabilityType other = (AccountCaptureChangeAvailabilityType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureChangeAvailabilityType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureChangeAvailabilityType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureChangeAvailabilityType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AccountCaptureChangeAvailabilityType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyDetails.java new file mode 100644 index 000000000..094b85fd6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed account capture setting on team domain. + */ +public class AccountCaptureChangePolicyDetails { + // struct team_log.AccountCaptureChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final AccountCapturePolicy newValue; + @Nullable + protected final AccountCapturePolicy previousValue; + + /** + * Changed account capture setting on team domain. + * + * @param newValue New account capture policy. Must not be {@code null}. + * @param previousValue Previous account capture policy. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureChangePolicyDetails(@Nonnull AccountCapturePolicy newValue, @Nullable AccountCapturePolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed account capture setting on team domain. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New account capture policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureChangePolicyDetails(@Nonnull AccountCapturePolicy newValue) { + this(newValue, null); + } + + /** + * New account capture policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccountCapturePolicy getNewValue() { + return newValue; + } + + /** + * Previous account capture policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccountCapturePolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureChangePolicyDetails other = (AccountCaptureChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + AccountCapturePolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(AccountCapturePolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccountCapturePolicy f_newValue = null; + AccountCapturePolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = AccountCapturePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(AccountCapturePolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new AccountCaptureChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyType.java new file mode 100644 index 000000000..e69e8347d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AccountCaptureChangePolicyType { + // struct team_log.AccountCaptureChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureChangePolicyType other = (AccountCaptureChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AccountCaptureChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountDetails.java new file mode 100644 index 000000000..5659ab7b7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Account-captured user migrated account to team. + */ +public class AccountCaptureMigrateAccountDetails { + // struct team_log.AccountCaptureMigrateAccountDetails (team_log_generated.stone) + + @Nonnull + protected final String domainName; + + /** + * Account-captured user migrated account to team. + * + * @param domainName Domain name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureMigrateAccountDetails(@Nonnull String domainName) { + if (domainName == null) { + throw new IllegalArgumentException("Required value for 'domainName' is null"); + } + this.domainName = domainName; + } + + /** + * Domain name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDomainName() { + return domainName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domainName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureMigrateAccountDetails other = (AccountCaptureMigrateAccountDetails) obj; + return (this.domainName == other.domainName) || (this.domainName.equals(other.domainName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureMigrateAccountDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domain_name"); + StoneSerializers.string().serialize(value.domainName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureMigrateAccountDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureMigrateAccountDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_domainName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domain_name".equals(field)) { + f_domainName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domainName == null) { + throw new JsonParseException(p, "Required field \"domain_name\" missing."); + } + value = new AccountCaptureMigrateAccountDetails(f_domainName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountType.java new file mode 100644 index 000000000..a1382b29a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureMigrateAccountType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AccountCaptureMigrateAccountType { + // struct team_log.AccountCaptureMigrateAccountType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureMigrateAccountType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureMigrateAccountType other = (AccountCaptureMigrateAccountType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureMigrateAccountType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureMigrateAccountType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureMigrateAccountType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AccountCaptureMigrateAccountType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentDetails.java new file mode 100644 index 000000000..e3af32281 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Sent account capture email to all unmanaged members. + */ +public class AccountCaptureNotificationEmailsSentDetails { + // struct team_log.AccountCaptureNotificationEmailsSentDetails (team_log_generated.stone) + + @Nonnull + protected final String domainName; + @Nullable + protected final AccountCaptureNotificationType notificationType; + + /** + * Sent account capture email to all unmanaged members. + * + * @param domainName Domain name. Must not be {@code null}. + * @param notificationType Account-capture email notification type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureNotificationEmailsSentDetails(@Nonnull String domainName, @Nullable AccountCaptureNotificationType notificationType) { + if (domainName == null) { + throw new IllegalArgumentException("Required value for 'domainName' is null"); + } + this.domainName = domainName; + this.notificationType = notificationType; + } + + /** + * Sent account capture email to all unmanaged members. + * + *

The default values for unset fields will be used.

+ * + * @param domainName Domain name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureNotificationEmailsSentDetails(@Nonnull String domainName) { + this(domainName, null); + } + + /** + * Domain name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDomainName() { + return domainName; + } + + /** + * Account-capture email notification type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccountCaptureNotificationType getNotificationType() { + return notificationType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domainName, + this.notificationType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureNotificationEmailsSentDetails other = (AccountCaptureNotificationEmailsSentDetails) obj; + return ((this.domainName == other.domainName) || (this.domainName.equals(other.domainName))) + && ((this.notificationType == other.notificationType) || (this.notificationType != null && this.notificationType.equals(other.notificationType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureNotificationEmailsSentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domain_name"); + StoneSerializers.string().serialize(value.domainName, g); + if (value.notificationType != null) { + g.writeFieldName("notification_type"); + StoneSerializers.nullable(AccountCaptureNotificationType.Serializer.INSTANCE).serialize(value.notificationType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureNotificationEmailsSentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureNotificationEmailsSentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_domainName = null; + AccountCaptureNotificationType f_notificationType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domain_name".equals(field)) { + f_domainName = StoneSerializers.string().deserialize(p); + } + else if ("notification_type".equals(field)) { + f_notificationType = StoneSerializers.nullable(AccountCaptureNotificationType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domainName == null) { + throw new JsonParseException(p, "Required field \"domain_name\" missing."); + } + value = new AccountCaptureNotificationEmailsSentDetails(f_domainName, f_notificationType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentType.java new file mode 100644 index 000000000..da0de305d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationEmailsSentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AccountCaptureNotificationEmailsSentType { + // struct team_log.AccountCaptureNotificationEmailsSentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureNotificationEmailsSentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureNotificationEmailsSentType other = (AccountCaptureNotificationEmailsSentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureNotificationEmailsSentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureNotificationEmailsSentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureNotificationEmailsSentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AccountCaptureNotificationEmailsSentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationType.java new file mode 100644 index 000000000..50f9ee66f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureNotificationType.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AccountCaptureNotificationType { + // union team_log.AccountCaptureNotificationType (team_log_generated.stone) + ACTIONABLE_NOTIFICATION, + PROACTIVE_WARNING_NOTIFICATION, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureNotificationType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACTIONABLE_NOTIFICATION: { + g.writeString("actionable_notification"); + break; + } + case PROACTIVE_WARNING_NOTIFICATION: { + g.writeString("proactive_warning_notification"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccountCaptureNotificationType deserialize(JsonParser p) throws IOException, JsonParseException { + AccountCaptureNotificationType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("actionable_notification".equals(tag)) { + value = AccountCaptureNotificationType.ACTIONABLE_NOTIFICATION; + } + else if ("proactive_warning_notification".equals(tag)) { + value = AccountCaptureNotificationType.PROACTIVE_WARNING_NOTIFICATION; + } + else { + value = AccountCaptureNotificationType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCapturePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCapturePolicy.java new file mode 100644 index 000000000..c907fb32d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCapturePolicy.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AccountCapturePolicy { + // union team_log.AccountCapturePolicy (team_log_generated.stone) + ALL_USERS, + DISABLED, + INVITED_USERS, + PREVENT_PERSONAL_CREATION, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCapturePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALL_USERS: { + g.writeString("all_users"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case INVITED_USERS: { + g.writeString("invited_users"); + break; + } + case PREVENT_PERSONAL_CREATION: { + g.writeString("prevent_personal_creation"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccountCapturePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + AccountCapturePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("all_users".equals(tag)) { + value = AccountCapturePolicy.ALL_USERS; + } + else if ("disabled".equals(tag)) { + value = AccountCapturePolicy.DISABLED; + } + else if ("invited_users".equals(tag)) { + value = AccountCapturePolicy.INVITED_USERS; + } + else if ("prevent_personal_creation".equals(tag)) { + value = AccountCapturePolicy.PREVENT_PERSONAL_CREATION; + } + else { + value = AccountCapturePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountDetails.java new file mode 100644 index 000000000..a3bb0ee96 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Account-captured user changed account email to personal email. + */ +public class AccountCaptureRelinquishAccountDetails { + // struct team_log.AccountCaptureRelinquishAccountDetails (team_log_generated.stone) + + @Nonnull + protected final String domainName; + + /** + * Account-captured user changed account email to personal email. + * + * @param domainName Domain name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureRelinquishAccountDetails(@Nonnull String domainName) { + if (domainName == null) { + throw new IllegalArgumentException("Required value for 'domainName' is null"); + } + this.domainName = domainName; + } + + /** + * Domain name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDomainName() { + return domainName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domainName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureRelinquishAccountDetails other = (AccountCaptureRelinquishAccountDetails) obj; + return (this.domainName == other.domainName) || (this.domainName.equals(other.domainName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureRelinquishAccountDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domain_name"); + StoneSerializers.string().serialize(value.domainName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureRelinquishAccountDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureRelinquishAccountDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_domainName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domain_name".equals(field)) { + f_domainName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domainName == null) { + throw new JsonParseException(p, "Required field \"domain_name\" missing."); + } + value = new AccountCaptureRelinquishAccountDetails(f_domainName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountType.java new file mode 100644 index 000000000..6ee1b7f08 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountCaptureRelinquishAccountType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AccountCaptureRelinquishAccountType { + // struct team_log.AccountCaptureRelinquishAccountType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountCaptureRelinquishAccountType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountCaptureRelinquishAccountType other = (AccountCaptureRelinquishAccountType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountCaptureRelinquishAccountType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountCaptureRelinquishAccountType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountCaptureRelinquishAccountType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AccountCaptureRelinquishAccountType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountLockOrUnlockedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountLockOrUnlockedDetails.java new file mode 100644 index 000000000..be20d1173 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountLockOrUnlockedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Unlocked/locked account after failed sign in attempts. + */ +public class AccountLockOrUnlockedDetails { + // struct team_log.AccountLockOrUnlockedDetails (team_log_generated.stone) + + @Nonnull + protected final AccountState previousValue; + @Nonnull + protected final AccountState newValue; + + /** + * Unlocked/locked account after failed sign in attempts. + * + * @param previousValue The previous account status. Must not be {@code + * null}. + * @param newValue The new account status. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountLockOrUnlockedDetails(@Nonnull AccountState previousValue, @Nonnull AccountState newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * The previous account status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccountState getPreviousValue() { + return previousValue; + } + + /** + * The new account status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccountState getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountLockOrUnlockedDetails other = (AccountLockOrUnlockedDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountLockOrUnlockedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + AccountState.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + AccountState.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountLockOrUnlockedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountLockOrUnlockedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccountState f_previousValue = null; + AccountState f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = AccountState.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = AccountState.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new AccountLockOrUnlockedDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountLockOrUnlockedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountLockOrUnlockedType.java new file mode 100644 index 000000000..41dcaaf2b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountLockOrUnlockedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AccountLockOrUnlockedType { + // struct team_log.AccountLockOrUnlockedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AccountLockOrUnlockedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AccountLockOrUnlockedType other = (AccountLockOrUnlockedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountLockOrUnlockedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AccountLockOrUnlockedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AccountLockOrUnlockedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AccountLockOrUnlockedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountState.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountState.java new file mode 100644 index 000000000..d18bce219 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AccountState.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AccountState { + // union team_log.AccountState (team_log_generated.stone) + LOCKED, + UNLOCKED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountState value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LOCKED: { + g.writeString("locked"); + break; + } + case UNLOCKED: { + g.writeString("unlocked"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AccountState deserialize(JsonParser p) throws IOException, JsonParseException { + AccountState value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("locked".equals(tag)) { + value = AccountState.LOCKED; + } + else if ("unlocked".equals(tag)) { + value = AccountState.UNLOCKED; + } + else { + value = AccountState.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ActionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ActionDetails.java new file mode 100644 index 000000000..3143be27c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ActionDetails.java @@ -0,0 +1,466 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Additional information indicating the action taken that caused status change. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ActionDetails { + // union team_log.ActionDetails (team_log_generated.stone) + + /** + * Discriminating tag type for {@link ActionDetails}. + */ + public enum Tag { + /** + * Define how the user was removed from the team. + */ + REMOVE_ACTION, // MemberRemoveActionType + /** + * Additional information relevant when someone is invited to the team. + */ + TEAM_INVITE_DETAILS, // TeamInviteDetails + /** + * Additional information relevant when a new member joins the team. + */ + TEAM_JOIN_DETAILS, // JoinTeamDetails + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ActionDetails OTHER = new ActionDetails().withTag(Tag.OTHER); + + private Tag _tag; + private MemberRemoveActionType removeActionValue; + private TeamInviteDetails teamInviteDetailsValue; + private JoinTeamDetails teamJoinDetailsValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ActionDetails() { + } + + + /** + * Additional information indicating the action taken that caused status + * change. + * + * @param _tag Discriminating tag for this instance. + */ + private ActionDetails withTag(Tag _tag) { + ActionDetails result = new ActionDetails(); + result._tag = _tag; + return result; + } + + /** + * Additional information indicating the action taken that caused status + * change. + * + * @param removeActionValue Define how the user was removed from the team. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ActionDetails withTagAndRemoveAction(Tag _tag, MemberRemoveActionType removeActionValue) { + ActionDetails result = new ActionDetails(); + result._tag = _tag; + result.removeActionValue = removeActionValue; + return result; + } + + /** + * Additional information indicating the action taken that caused status + * change. + * + * @param teamInviteDetailsValue Additional information relevant when + * someone is invited to the team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ActionDetails withTagAndTeamInviteDetails(Tag _tag, TeamInviteDetails teamInviteDetailsValue) { + ActionDetails result = new ActionDetails(); + result._tag = _tag; + result.teamInviteDetailsValue = teamInviteDetailsValue; + return result; + } + + /** + * Additional information indicating the action taken that caused status + * change. + * + * @param teamJoinDetailsValue Additional information relevant when a new + * member joins the team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ActionDetails withTagAndTeamJoinDetails(Tag _tag, JoinTeamDetails teamJoinDetailsValue) { + ActionDetails result = new ActionDetails(); + result._tag = _tag; + result.teamJoinDetailsValue = teamJoinDetailsValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ActionDetails}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REMOVE_ACTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REMOVE_ACTION}, {@code false} otherwise. + */ + public boolean isRemoveAction() { + return this._tag == Tag.REMOVE_ACTION; + } + + /** + * Returns an instance of {@code ActionDetails} that has its tag set to + * {@link Tag#REMOVE_ACTION}. + * + *

Define how the user was removed from the team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ActionDetails} with its tag set to {@link + * Tag#REMOVE_ACTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ActionDetails removeAction(MemberRemoveActionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ActionDetails().withTagAndRemoveAction(Tag.REMOVE_ACTION, value); + } + + /** + * Define how the user was removed from the team. + * + *

This instance must be tagged as {@link Tag#REMOVE_ACTION}.

+ * + * @return The {@link MemberRemoveActionType} value associated with this + * instance if {@link #isRemoveAction} is {@code true}. + * + * @throws IllegalStateException If {@link #isRemoveAction} is {@code + * false}. + */ + public MemberRemoveActionType getRemoveActionValue() { + if (this._tag != Tag.REMOVE_ACTION) { + throw new IllegalStateException("Invalid tag: required Tag.REMOVE_ACTION, but was Tag." + this._tag.name()); + } + return removeActionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_INVITE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_INVITE_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamInviteDetails() { + return this._tag == Tag.TEAM_INVITE_DETAILS; + } + + /** + * Returns an instance of {@code ActionDetails} that has its tag set to + * {@link Tag#TEAM_INVITE_DETAILS}. + * + *

Additional information relevant when someone is invited to the team. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ActionDetails} with its tag set to {@link + * Tag#TEAM_INVITE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ActionDetails teamInviteDetails(TeamInviteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ActionDetails().withTagAndTeamInviteDetails(Tag.TEAM_INVITE_DETAILS, value); + } + + /** + * Additional information relevant when someone is invited to the team. + * + *

This instance must be tagged as {@link Tag#TEAM_INVITE_DETAILS}.

+ * + * @return The {@link TeamInviteDetails} value associated with this instance + * if {@link #isTeamInviteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamInviteDetails} is {@code + * false}. + */ + public TeamInviteDetails getTeamInviteDetailsValue() { + if (this._tag != Tag.TEAM_INVITE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_INVITE_DETAILS, but was Tag." + this._tag.name()); + } + return teamInviteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_JOIN_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_JOIN_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamJoinDetails() { + return this._tag == Tag.TEAM_JOIN_DETAILS; + } + + /** + * Returns an instance of {@code ActionDetails} that has its tag set to + * {@link Tag#TEAM_JOIN_DETAILS}. + * + *

Additional information relevant when a new member joins the team. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ActionDetails} with its tag set to {@link + * Tag#TEAM_JOIN_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ActionDetails teamJoinDetails(JoinTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ActionDetails().withTagAndTeamJoinDetails(Tag.TEAM_JOIN_DETAILS, value); + } + + /** + * Additional information relevant when a new member joins the team. + * + *

This instance must be tagged as {@link Tag#TEAM_JOIN_DETAILS}.

+ * + * @return The {@link JoinTeamDetails} value associated with this instance + * if {@link #isTeamJoinDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamJoinDetails} is {@code + * false}. + */ + public JoinTeamDetails getTeamJoinDetailsValue() { + if (this._tag != Tag.TEAM_JOIN_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_JOIN_DETAILS, but was Tag." + this._tag.name()); + } + return teamJoinDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.removeActionValue, + this.teamInviteDetailsValue, + this.teamJoinDetailsValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ActionDetails) { + ActionDetails other = (ActionDetails) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case REMOVE_ACTION: + return (this.removeActionValue == other.removeActionValue) || (this.removeActionValue.equals(other.removeActionValue)); + case TEAM_INVITE_DETAILS: + return (this.teamInviteDetailsValue == other.teamInviteDetailsValue) || (this.teamInviteDetailsValue.equals(other.teamInviteDetailsValue)); + case TEAM_JOIN_DETAILS: + return (this.teamJoinDetailsValue == other.teamJoinDetailsValue) || (this.teamJoinDetailsValue.equals(other.teamJoinDetailsValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ActionDetails value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case REMOVE_ACTION: { + g.writeStartObject(); + writeTag("remove_action", g); + g.writeFieldName("remove_action"); + MemberRemoveActionType.Serializer.INSTANCE.serialize(value.removeActionValue, g); + g.writeEndObject(); + break; + } + case TEAM_INVITE_DETAILS: { + g.writeStartObject(); + writeTag("team_invite_details", g); + TeamInviteDetails.Serializer.INSTANCE.serialize(value.teamInviteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_JOIN_DETAILS: { + g.writeStartObject(); + writeTag("team_join_details", g); + JoinTeamDetails.Serializer.INSTANCE.serialize(value.teamJoinDetailsValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ActionDetails deserialize(JsonParser p) throws IOException, JsonParseException { + ActionDetails value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("remove_action".equals(tag)) { + MemberRemoveActionType fieldValue = null; + expectField("remove_action", p); + fieldValue = MemberRemoveActionType.Serializer.INSTANCE.deserialize(p); + value = ActionDetails.removeAction(fieldValue); + } + else if ("team_invite_details".equals(tag)) { + TeamInviteDetails fieldValue = null; + fieldValue = TeamInviteDetails.Serializer.INSTANCE.deserialize(p, true); + value = ActionDetails.teamInviteDetails(fieldValue); + } + else if ("team_join_details".equals(tag)) { + JoinTeamDetails fieldValue = null; + fieldValue = JoinTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = ActionDetails.teamJoinDetails(fieldValue); + } + else { + value = ActionDetails.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ActorLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ActorLogInfo.java new file mode 100644 index 000000000..31bcbfe66 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ActorLogInfo.java @@ -0,0 +1,600 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The entity who performed the action. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ActorLogInfo { + // union team_log.ActorLogInfo (team_log_generated.stone) + + /** + * Discriminating tag type for {@link ActorLogInfo}. + */ + public enum Tag { + /** + * The admin who did the action. + */ + ADMIN, // UserLogInfo + /** + * Anonymous actor. + */ + ANONYMOUS, + /** + * The application who did the action. + */ + APP, // AppLogInfo + /** + * Action done by Dropbox. + */ + DROPBOX, + /** + * Action done by reseller. + */ + RESELLER, // ResellerLogInfo + /** + * The user who did the action. + */ + USER, // UserLogInfo + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Anonymous actor. + */ + public static final ActorLogInfo ANONYMOUS = new ActorLogInfo().withTag(Tag.ANONYMOUS); + /** + * Action done by Dropbox. + */ + public static final ActorLogInfo DROPBOX = new ActorLogInfo().withTag(Tag.DROPBOX); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ActorLogInfo OTHER = new ActorLogInfo().withTag(Tag.OTHER); + + private Tag _tag; + private UserLogInfo adminValue; + private AppLogInfo appValue; + private ResellerLogInfo resellerValue; + private UserLogInfo userValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ActorLogInfo() { + } + + + /** + * The entity who performed the action. + * + * @param _tag Discriminating tag for this instance. + */ + private ActorLogInfo withTag(Tag _tag) { + ActorLogInfo result = new ActorLogInfo(); + result._tag = _tag; + return result; + } + + /** + * The entity who performed the action. + * + * @param adminValue The admin who did the action. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ActorLogInfo withTagAndAdmin(Tag _tag, UserLogInfo adminValue) { + ActorLogInfo result = new ActorLogInfo(); + result._tag = _tag; + result.adminValue = adminValue; + return result; + } + + /** + * The entity who performed the action. + * + * @param appValue The application who did the action. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ActorLogInfo withTagAndApp(Tag _tag, AppLogInfo appValue) { + ActorLogInfo result = new ActorLogInfo(); + result._tag = _tag; + result.appValue = appValue; + return result; + } + + /** + * The entity who performed the action. + * + * @param resellerValue Action done by reseller. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ActorLogInfo withTagAndReseller(Tag _tag, ResellerLogInfo resellerValue) { + ActorLogInfo result = new ActorLogInfo(); + result._tag = _tag; + result.resellerValue = resellerValue; + return result; + } + + /** + * The entity who performed the action. + * + * @param userValue The user who did the action. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ActorLogInfo withTagAndUser(Tag _tag, UserLogInfo userValue) { + ActorLogInfo result = new ActorLogInfo(); + result._tag = _tag; + result.userValue = userValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ActorLogInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ADMIN}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ADMIN}, + * {@code false} otherwise. + */ + public boolean isAdmin() { + return this._tag == Tag.ADMIN; + } + + /** + * Returns an instance of {@code ActorLogInfo} that has its tag set to + * {@link Tag#ADMIN}. + * + *

The admin who did the action.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ActorLogInfo} with its tag set to {@link + * Tag#ADMIN}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ActorLogInfo admin(UserLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ActorLogInfo().withTagAndAdmin(Tag.ADMIN, value); + } + + /** + * The admin who did the action. + * + *

This instance must be tagged as {@link Tag#ADMIN}.

+ * + * @return The {@link UserLogInfo} value associated with this instance if + * {@link #isAdmin} is {@code true}. + * + * @throws IllegalStateException If {@link #isAdmin} is {@code false}. + */ + public UserLogInfo getAdminValue() { + if (this._tag != Tag.ADMIN) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN, but was Tag." + this._tag.name()); + } + return adminValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ANONYMOUS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ANONYMOUS}, + * {@code false} otherwise. + */ + public boolean isAnonymous() { + return this._tag == Tag.ANONYMOUS; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#APP}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#APP}, + * {@code false} otherwise. + */ + public boolean isApp() { + return this._tag == Tag.APP; + } + + /** + * Returns an instance of {@code ActorLogInfo} that has its tag set to + * {@link Tag#APP}. + * + *

The application who did the action.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ActorLogInfo} with its tag set to {@link + * Tag#APP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ActorLogInfo app(AppLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ActorLogInfo().withTagAndApp(Tag.APP, value); + } + + /** + * The application who did the action. + * + *

This instance must be tagged as {@link Tag#APP}.

+ * + * @return The {@link AppLogInfo} value associated with this instance if + * {@link #isApp} is {@code true}. + * + * @throws IllegalStateException If {@link #isApp} is {@code false}. + */ + public AppLogInfo getAppValue() { + if (this._tag != Tag.APP) { + throw new IllegalStateException("Invalid tag: required Tag.APP, but was Tag." + this._tag.name()); + } + return appValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#DROPBOX}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#DROPBOX}, + * {@code false} otherwise. + */ + public boolean isDropbox() { + return this._tag == Tag.DROPBOX; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#RESELLER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#RESELLER}, + * {@code false} otherwise. + */ + public boolean isReseller() { + return this._tag == Tag.RESELLER; + } + + /** + * Returns an instance of {@code ActorLogInfo} that has its tag set to + * {@link Tag#RESELLER}. + * + *

Action done by reseller.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ActorLogInfo} with its tag set to {@link + * Tag#RESELLER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ActorLogInfo reseller(ResellerLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ActorLogInfo().withTagAndReseller(Tag.RESELLER, value); + } + + /** + * Action done by reseller. + * + *

This instance must be tagged as {@link Tag#RESELLER}.

+ * + * @return The {@link ResellerLogInfo} value associated with this instance + * if {@link #isReseller} is {@code true}. + * + * @throws IllegalStateException If {@link #isReseller} is {@code false}. + */ + public ResellerLogInfo getResellerValue() { + if (this._tag != Tag.RESELLER) { + throw new IllegalStateException("Invalid tag: required Tag.RESELLER, but was Tag." + this._tag.name()); + } + return resellerValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#USER}, + * {@code false} otherwise. + */ + public boolean isUser() { + return this._tag == Tag.USER; + } + + /** + * Returns an instance of {@code ActorLogInfo} that has its tag set to + * {@link Tag#USER}. + * + *

The user who did the action.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ActorLogInfo} with its tag set to {@link + * Tag#USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ActorLogInfo user(UserLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ActorLogInfo().withTagAndUser(Tag.USER, value); + } + + /** + * The user who did the action. + * + *

This instance must be tagged as {@link Tag#USER}.

+ * + * @return The {@link UserLogInfo} value associated with this instance if + * {@link #isUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isUser} is {@code false}. + */ + public UserLogInfo getUserValue() { + if (this._tag != Tag.USER) { + throw new IllegalStateException("Invalid tag: required Tag.USER, but was Tag." + this._tag.name()); + } + return userValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.adminValue, + this.appValue, + this.resellerValue, + this.userValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ActorLogInfo) { + ActorLogInfo other = (ActorLogInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ADMIN: + return (this.adminValue == other.adminValue) || (this.adminValue.equals(other.adminValue)); + case ANONYMOUS: + return true; + case APP: + return (this.appValue == other.appValue) || (this.appValue.equals(other.appValue)); + case DROPBOX: + return true; + case RESELLER: + return (this.resellerValue == other.resellerValue) || (this.resellerValue.equals(other.resellerValue)); + case USER: + return (this.userValue == other.userValue) || (this.userValue.equals(other.userValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ActorLogInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ADMIN: { + g.writeStartObject(); + writeTag("admin", g); + g.writeFieldName("admin"); + UserLogInfo.Serializer.INSTANCE.serialize(value.adminValue, g); + g.writeEndObject(); + break; + } + case ANONYMOUS: { + g.writeString("anonymous"); + break; + } + case APP: { + g.writeStartObject(); + writeTag("app", g); + g.writeFieldName("app"); + AppLogInfo.Serializer.INSTANCE.serialize(value.appValue, g); + g.writeEndObject(); + break; + } + case DROPBOX: { + g.writeString("dropbox"); + break; + } + case RESELLER: { + g.writeStartObject(); + writeTag("reseller", g); + ResellerLogInfo.Serializer.INSTANCE.serialize(value.resellerValue, g, true); + g.writeEndObject(); + break; + } + case USER: { + g.writeStartObject(); + writeTag("user", g); + g.writeFieldName("user"); + UserLogInfo.Serializer.INSTANCE.serialize(value.userValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ActorLogInfo deserialize(JsonParser p) throws IOException, JsonParseException { + ActorLogInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admin".equals(tag)) { + UserLogInfo fieldValue = null; + expectField("admin", p); + fieldValue = UserLogInfo.Serializer.INSTANCE.deserialize(p); + value = ActorLogInfo.admin(fieldValue); + } + else if ("anonymous".equals(tag)) { + value = ActorLogInfo.ANONYMOUS; + } + else if ("app".equals(tag)) { + AppLogInfo fieldValue = null; + expectField("app", p); + fieldValue = AppLogInfo.Serializer.INSTANCE.deserialize(p); + value = ActorLogInfo.app(fieldValue); + } + else if ("dropbox".equals(tag)) { + value = ActorLogInfo.DROPBOX; + } + else if ("reseller".equals(tag)) { + ResellerLogInfo fieldValue = null; + fieldValue = ResellerLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = ActorLogInfo.reseller(fieldValue); + } + else if ("user".equals(tag)) { + UserLogInfo fieldValue = null; + expectField("user", p); + fieldValue = UserLogInfo.Serializer.INSTANCE.deserialize(p); + value = ActorLogInfo.user(fieldValue); + } + else { + value = ActorLogInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertCategoryEnum.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertCategoryEnum.java new file mode 100644 index 000000000..3848a07ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertCategoryEnum.java @@ -0,0 +1,132 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Alert category + */ +public enum AdminAlertCategoryEnum { + // union team_log.AdminAlertCategoryEnum (team_log_generated.stone) + ACCOUNT_TAKEOVER, + DATA_LOSS_PROTECTION, + INFORMATION_GOVERNANCE, + MALWARE_SHARING, + MASSIVE_FILE_OPERATION, + NA, + THREAT_MANAGEMENT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertCategoryEnum value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACCOUNT_TAKEOVER: { + g.writeString("account_takeover"); + break; + } + case DATA_LOSS_PROTECTION: { + g.writeString("data_loss_protection"); + break; + } + case INFORMATION_GOVERNANCE: { + g.writeString("information_governance"); + break; + } + case MALWARE_SHARING: { + g.writeString("malware_sharing"); + break; + } + case MASSIVE_FILE_OPERATION: { + g.writeString("massive_file_operation"); + break; + } + case NA: { + g.writeString("na"); + break; + } + case THREAT_MANAGEMENT: { + g.writeString("threat_management"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminAlertCategoryEnum deserialize(JsonParser p) throws IOException, JsonParseException { + AdminAlertCategoryEnum value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("account_takeover".equals(tag)) { + value = AdminAlertCategoryEnum.ACCOUNT_TAKEOVER; + } + else if ("data_loss_protection".equals(tag)) { + value = AdminAlertCategoryEnum.DATA_LOSS_PROTECTION; + } + else if ("information_governance".equals(tag)) { + value = AdminAlertCategoryEnum.INFORMATION_GOVERNANCE; + } + else if ("malware_sharing".equals(tag)) { + value = AdminAlertCategoryEnum.MALWARE_SHARING; + } + else if ("massive_file_operation".equals(tag)) { + value = AdminAlertCategoryEnum.MASSIVE_FILE_OPERATION; + } + else if ("na".equals(tag)) { + value = AdminAlertCategoryEnum.NA; + } + else if ("threat_management".equals(tag)) { + value = AdminAlertCategoryEnum.THREAT_MANAGEMENT; + } + else { + value = AdminAlertCategoryEnum.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum.java new file mode 100644 index 000000000..6cfec53f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertGeneralStateEnum.java @@ -0,0 +1,116 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Alert state + */ +public enum AdminAlertGeneralStateEnum { + // union team_log.AdminAlertGeneralStateEnum (team_log_generated.stone) + ACTIVE, + DISMISSED, + IN_PROGRESS, + NA, + RESOLVED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertGeneralStateEnum value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACTIVE: { + g.writeString("active"); + break; + } + case DISMISSED: { + g.writeString("dismissed"); + break; + } + case IN_PROGRESS: { + g.writeString("in_progress"); + break; + } + case NA: { + g.writeString("na"); + break; + } + case RESOLVED: { + g.writeString("resolved"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminAlertGeneralStateEnum deserialize(JsonParser p) throws IOException, JsonParseException { + AdminAlertGeneralStateEnum value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("active".equals(tag)) { + value = AdminAlertGeneralStateEnum.ACTIVE; + } + else if ("dismissed".equals(tag)) { + value = AdminAlertGeneralStateEnum.DISMISSED; + } + else if ("in_progress".equals(tag)) { + value = AdminAlertGeneralStateEnum.IN_PROGRESS; + } + else if ("na".equals(tag)) { + value = AdminAlertGeneralStateEnum.NA; + } + else if ("resolved".equals(tag)) { + value = AdminAlertGeneralStateEnum.RESOLVED; + } + else { + value = AdminAlertGeneralStateEnum.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertSeverityEnum.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertSeverityEnum.java new file mode 100644 index 000000000..23d31de90 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertSeverityEnum.java @@ -0,0 +1,116 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Alert severity + */ +public enum AdminAlertSeverityEnum { + // union team_log.AdminAlertSeverityEnum (team_log_generated.stone) + HIGH, + INFO, + LOW, + MEDIUM, + NA, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertSeverityEnum value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case HIGH: { + g.writeString("high"); + break; + } + case INFO: { + g.writeString("info"); + break; + } + case LOW: { + g.writeString("low"); + break; + } + case MEDIUM: { + g.writeString("medium"); + break; + } + case NA: { + g.writeString("na"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminAlertSeverityEnum deserialize(JsonParser p) throws IOException, JsonParseException { + AdminAlertSeverityEnum value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("high".equals(tag)) { + value = AdminAlertSeverityEnum.HIGH; + } + else if ("info".equals(tag)) { + value = AdminAlertSeverityEnum.INFO; + } + else if ("low".equals(tag)) { + value = AdminAlertSeverityEnum.LOW; + } + else if ("medium".equals(tag)) { + value = AdminAlertSeverityEnum.MEDIUM; + } + else if ("na".equals(tag)) { + value = AdminAlertSeverityEnum.NA; + } + else { + value = AdminAlertSeverityEnum.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration.java new file mode 100644 index 000000000..b99a04a85 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertConfiguration.java @@ -0,0 +1,353 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Alert configurations + */ +public class AdminAlertingAlertConfiguration { + // struct team_log.AdminAlertingAlertConfiguration (team_log_generated.stone) + + @Nullable + protected final AdminAlertingAlertStatePolicy alertState; + @Nullable + protected final AdminAlertingAlertSensitivity sensitivityLevel; + @Nullable + protected final RecipientsConfiguration recipientsSettings; + @Nullable + protected final String text; + @Nullable + protected final String excludedFileExtensions; + + /** + * Alert configurations + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param alertState Alert state. + * @param sensitivityLevel Sensitivity level. + * @param recipientsSettings Recipient settings. + * @param text Text. + * @param excludedFileExtensions Excluded file extensions. + */ + public AdminAlertingAlertConfiguration(@Nullable AdminAlertingAlertStatePolicy alertState, @Nullable AdminAlertingAlertSensitivity sensitivityLevel, @Nullable RecipientsConfiguration recipientsSettings, @Nullable String text, @Nullable String excludedFileExtensions) { + this.alertState = alertState; + this.sensitivityLevel = sensitivityLevel; + this.recipientsSettings = recipientsSettings; + this.text = text; + this.excludedFileExtensions = excludedFileExtensions; + } + + /** + * Alert configurations + * + *

The default values for unset fields will be used.

+ */ + public AdminAlertingAlertConfiguration() { + this(null, null, null, null, null); + } + + /** + * Alert state. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AdminAlertingAlertStatePolicy getAlertState() { + return alertState; + } + + /** + * Sensitivity level. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AdminAlertingAlertSensitivity getSensitivityLevel() { + return sensitivityLevel; + } + + /** + * Recipient settings. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RecipientsConfiguration getRecipientsSettings() { + return recipientsSettings; + } + + /** + * Text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getText() { + return text; + } + + /** + * Excluded file extensions. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExcludedFileExtensions() { + return excludedFileExtensions; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link AdminAlertingAlertConfiguration}. + */ + public static class Builder { + + protected AdminAlertingAlertStatePolicy alertState; + protected AdminAlertingAlertSensitivity sensitivityLevel; + protected RecipientsConfiguration recipientsSettings; + protected String text; + protected String excludedFileExtensions; + + protected Builder() { + this.alertState = null; + this.sensitivityLevel = null; + this.recipientsSettings = null; + this.text = null; + this.excludedFileExtensions = null; + } + + /** + * Set value for optional field. + * + * @param alertState Alert state. + * + * @return this builder + */ + public Builder withAlertState(AdminAlertingAlertStatePolicy alertState) { + this.alertState = alertState; + return this; + } + + /** + * Set value for optional field. + * + * @param sensitivityLevel Sensitivity level. + * + * @return this builder + */ + public Builder withSensitivityLevel(AdminAlertingAlertSensitivity sensitivityLevel) { + this.sensitivityLevel = sensitivityLevel; + return this; + } + + /** + * Set value for optional field. + * + * @param recipientsSettings Recipient settings. + * + * @return this builder + */ + public Builder withRecipientsSettings(RecipientsConfiguration recipientsSettings) { + this.recipientsSettings = recipientsSettings; + return this; + } + + /** + * Set value for optional field. + * + * @param text Text. + * + * @return this builder + */ + public Builder withText(String text) { + this.text = text; + return this; + } + + /** + * Set value for optional field. + * + * @param excludedFileExtensions Excluded file extensions. + * + * @return this builder + */ + public Builder withExcludedFileExtensions(String excludedFileExtensions) { + this.excludedFileExtensions = excludedFileExtensions; + return this; + } + + /** + * Builds an instance of {@link AdminAlertingAlertConfiguration} + * configured with this builder's values + * + * @return new instance of {@link AdminAlertingAlertConfiguration} + */ + public AdminAlertingAlertConfiguration build() { + return new AdminAlertingAlertConfiguration(alertState, sensitivityLevel, recipientsSettings, text, excludedFileExtensions); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.alertState, + this.sensitivityLevel, + this.recipientsSettings, + this.text, + this.excludedFileExtensions + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminAlertingAlertConfiguration other = (AdminAlertingAlertConfiguration) obj; + return ((this.alertState == other.alertState) || (this.alertState != null && this.alertState.equals(other.alertState))) + && ((this.sensitivityLevel == other.sensitivityLevel) || (this.sensitivityLevel != null && this.sensitivityLevel.equals(other.sensitivityLevel))) + && ((this.recipientsSettings == other.recipientsSettings) || (this.recipientsSettings != null && this.recipientsSettings.equals(other.recipientsSettings))) + && ((this.text == other.text) || (this.text != null && this.text.equals(other.text))) + && ((this.excludedFileExtensions == other.excludedFileExtensions) || (this.excludedFileExtensions != null && this.excludedFileExtensions.equals(other.excludedFileExtensions))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingAlertConfiguration value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.alertState != null) { + g.writeFieldName("alert_state"); + StoneSerializers.nullable(AdminAlertingAlertStatePolicy.Serializer.INSTANCE).serialize(value.alertState, g); + } + if (value.sensitivityLevel != null) { + g.writeFieldName("sensitivity_level"); + StoneSerializers.nullable(AdminAlertingAlertSensitivity.Serializer.INSTANCE).serialize(value.sensitivityLevel, g); + } + if (value.recipientsSettings != null) { + g.writeFieldName("recipients_settings"); + StoneSerializers.nullableStruct(RecipientsConfiguration.Serializer.INSTANCE).serialize(value.recipientsSettings, g); + } + if (value.text != null) { + g.writeFieldName("text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.text, g); + } + if (value.excludedFileExtensions != null) { + g.writeFieldName("excluded_file_extensions"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.excludedFileExtensions, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminAlertingAlertConfiguration deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminAlertingAlertConfiguration value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AdminAlertingAlertStatePolicy f_alertState = null; + AdminAlertingAlertSensitivity f_sensitivityLevel = null; + RecipientsConfiguration f_recipientsSettings = null; + String f_text = null; + String f_excludedFileExtensions = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("alert_state".equals(field)) { + f_alertState = StoneSerializers.nullable(AdminAlertingAlertStatePolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("sensitivity_level".equals(field)) { + f_sensitivityLevel = StoneSerializers.nullable(AdminAlertingAlertSensitivity.Serializer.INSTANCE).deserialize(p); + } + else if ("recipients_settings".equals(field)) { + f_recipientsSettings = StoneSerializers.nullableStruct(RecipientsConfiguration.Serializer.INSTANCE).deserialize(p); + } + else if ("text".equals(field)) { + f_text = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("excluded_file_extensions".equals(field)) { + f_excludedFileExtensions = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new AdminAlertingAlertConfiguration(f_alertState, f_sensitivityLevel, f_recipientsSettings, f_text, f_excludedFileExtensions); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity.java new file mode 100644 index 000000000..042ad81d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertSensitivity.java @@ -0,0 +1,124 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Alert sensitivity + */ +public enum AdminAlertingAlertSensitivity { + // union team_log.AdminAlertingAlertSensitivity (team_log_generated.stone) + HIGH, + HIGHEST, + INVALID, + LOW, + LOWEST, + MEDIUM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingAlertSensitivity value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case HIGH: { + g.writeString("high"); + break; + } + case HIGHEST: { + g.writeString("highest"); + break; + } + case INVALID: { + g.writeString("invalid"); + break; + } + case LOW: { + g.writeString("low"); + break; + } + case LOWEST: { + g.writeString("lowest"); + break; + } + case MEDIUM: { + g.writeString("medium"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminAlertingAlertSensitivity deserialize(JsonParser p) throws IOException, JsonParseException { + AdminAlertingAlertSensitivity value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("high".equals(tag)) { + value = AdminAlertingAlertSensitivity.HIGH; + } + else if ("highest".equals(tag)) { + value = AdminAlertingAlertSensitivity.HIGHEST; + } + else if ("invalid".equals(tag)) { + value = AdminAlertingAlertSensitivity.INVALID; + } + else if ("low".equals(tag)) { + value = AdminAlertingAlertSensitivity.LOW; + } + else if ("lowest".equals(tag)) { + value = AdminAlertingAlertSensitivity.LOWEST; + } + else if ("medium".equals(tag)) { + value = AdminAlertingAlertSensitivity.MEDIUM; + } + else { + value = AdminAlertingAlertSensitivity.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedDetails.java new file mode 100644 index 000000000..3cd614f2c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedDetails.java @@ -0,0 +1,293 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed an alert state. + */ +public class AdminAlertingAlertStateChangedDetails { + // struct team_log.AdminAlertingAlertStateChangedDetails (team_log_generated.stone) + + @Nonnull + protected final String alertName; + @Nonnull + protected final AdminAlertSeverityEnum alertSeverity; + @Nonnull + protected final AdminAlertCategoryEnum alertCategory; + @Nonnull + protected final String alertInstanceId; + @Nonnull + protected final AdminAlertGeneralStateEnum previousValue; + @Nonnull + protected final AdminAlertGeneralStateEnum newValue; + + /** + * Changed an alert state. + * + * @param alertName Alert name. Must not be {@code null}. + * @param alertSeverity Alert severity. Must not be {@code null}. + * @param alertCategory Alert category. Must not be {@code null}. + * @param alertInstanceId Alert ID. Must not be {@code null}. + * @param previousValue Alert state before the change. Must not be {@code + * null}. + * @param newValue Alert state after the change. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminAlertingAlertStateChangedDetails(@Nonnull String alertName, @Nonnull AdminAlertSeverityEnum alertSeverity, @Nonnull AdminAlertCategoryEnum alertCategory, @Nonnull String alertInstanceId, @Nonnull AdminAlertGeneralStateEnum previousValue, @Nonnull AdminAlertGeneralStateEnum newValue) { + if (alertName == null) { + throw new IllegalArgumentException("Required value for 'alertName' is null"); + } + this.alertName = alertName; + if (alertSeverity == null) { + throw new IllegalArgumentException("Required value for 'alertSeverity' is null"); + } + this.alertSeverity = alertSeverity; + if (alertCategory == null) { + throw new IllegalArgumentException("Required value for 'alertCategory' is null"); + } + this.alertCategory = alertCategory; + if (alertInstanceId == null) { + throw new IllegalArgumentException("Required value for 'alertInstanceId' is null"); + } + this.alertInstanceId = alertInstanceId; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Alert name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAlertName() { + return alertName; + } + + /** + * Alert severity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertSeverityEnum getAlertSeverity() { + return alertSeverity; + } + + /** + * Alert category. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertCategoryEnum getAlertCategory() { + return alertCategory; + } + + /** + * Alert ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAlertInstanceId() { + return alertInstanceId; + } + + /** + * Alert state before the change. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertGeneralStateEnum getPreviousValue() { + return previousValue; + } + + /** + * Alert state after the change. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertGeneralStateEnum getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.alertName, + this.alertSeverity, + this.alertCategory, + this.alertInstanceId, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminAlertingAlertStateChangedDetails other = (AdminAlertingAlertStateChangedDetails) obj; + return ((this.alertName == other.alertName) || (this.alertName.equals(other.alertName))) + && ((this.alertSeverity == other.alertSeverity) || (this.alertSeverity.equals(other.alertSeverity))) + && ((this.alertCategory == other.alertCategory) || (this.alertCategory.equals(other.alertCategory))) + && ((this.alertInstanceId == other.alertInstanceId) || (this.alertInstanceId.equals(other.alertInstanceId))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingAlertStateChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("alert_name"); + StoneSerializers.string().serialize(value.alertName, g); + g.writeFieldName("alert_severity"); + AdminAlertSeverityEnum.Serializer.INSTANCE.serialize(value.alertSeverity, g); + g.writeFieldName("alert_category"); + AdminAlertCategoryEnum.Serializer.INSTANCE.serialize(value.alertCategory, g); + g.writeFieldName("alert_instance_id"); + StoneSerializers.string().serialize(value.alertInstanceId, g); + g.writeFieldName("previous_value"); + AdminAlertGeneralStateEnum.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + AdminAlertGeneralStateEnum.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminAlertingAlertStateChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminAlertingAlertStateChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_alertName = null; + AdminAlertSeverityEnum f_alertSeverity = null; + AdminAlertCategoryEnum f_alertCategory = null; + String f_alertInstanceId = null; + AdminAlertGeneralStateEnum f_previousValue = null; + AdminAlertGeneralStateEnum f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("alert_name".equals(field)) { + f_alertName = StoneSerializers.string().deserialize(p); + } + else if ("alert_severity".equals(field)) { + f_alertSeverity = AdminAlertSeverityEnum.Serializer.INSTANCE.deserialize(p); + } + else if ("alert_category".equals(field)) { + f_alertCategory = AdminAlertCategoryEnum.Serializer.INSTANCE.deserialize(p); + } + else if ("alert_instance_id".equals(field)) { + f_alertInstanceId = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = AdminAlertGeneralStateEnum.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = AdminAlertGeneralStateEnum.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_alertName == null) { + throw new JsonParseException(p, "Required field \"alert_name\" missing."); + } + if (f_alertSeverity == null) { + throw new JsonParseException(p, "Required field \"alert_severity\" missing."); + } + if (f_alertCategory == null) { + throw new JsonParseException(p, "Required field \"alert_category\" missing."); + } + if (f_alertInstanceId == null) { + throw new JsonParseException(p, "Required field \"alert_instance_id\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new AdminAlertingAlertStateChangedDetails(f_alertName, f_alertSeverity, f_alertCategory, f_alertInstanceId, f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedType.java new file mode 100644 index 000000000..087435f01 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStateChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AdminAlertingAlertStateChangedType { + // struct team_log.AdminAlertingAlertStateChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminAlertingAlertStateChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminAlertingAlertStateChangedType other = (AdminAlertingAlertStateChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingAlertStateChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminAlertingAlertStateChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminAlertingAlertStateChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AdminAlertingAlertStateChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy.java new file mode 100644 index 000000000..fff0ad942 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingAlertStatePolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling whether an alert can be triggered or not + */ +public enum AdminAlertingAlertStatePolicy { + // union team_log.AdminAlertingAlertStatePolicy (team_log_generated.stone) + OFF, + ON, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingAlertStatePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case OFF: { + g.writeString("off"); + break; + } + case ON: { + g.writeString("on"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminAlertingAlertStatePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + AdminAlertingAlertStatePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("off".equals(tag)) { + value = AdminAlertingAlertStatePolicy.OFF; + } + else if ("on".equals(tag)) { + value = AdminAlertingAlertStatePolicy.ON; + } + else { + value = AdminAlertingAlertStatePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigDetails.java new file mode 100644 index 000000000..f369626bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed an alert setting. + */ +public class AdminAlertingChangedAlertConfigDetails { + // struct team_log.AdminAlertingChangedAlertConfigDetails (team_log_generated.stone) + + @Nonnull + protected final String alertName; + @Nonnull + protected final AdminAlertingAlertConfiguration previousAlertConfig; + @Nonnull + protected final AdminAlertingAlertConfiguration newAlertConfig; + + /** + * Changed an alert setting. + * + * @param alertName Alert Name. Must not be {@code null}. + * @param previousAlertConfig Previous alert configuration. Must not be + * {@code null}. + * @param newAlertConfig New alert configuration. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminAlertingChangedAlertConfigDetails(@Nonnull String alertName, @Nonnull AdminAlertingAlertConfiguration previousAlertConfig, @Nonnull AdminAlertingAlertConfiguration newAlertConfig) { + if (alertName == null) { + throw new IllegalArgumentException("Required value for 'alertName' is null"); + } + this.alertName = alertName; + if (previousAlertConfig == null) { + throw new IllegalArgumentException("Required value for 'previousAlertConfig' is null"); + } + this.previousAlertConfig = previousAlertConfig; + if (newAlertConfig == null) { + throw new IllegalArgumentException("Required value for 'newAlertConfig' is null"); + } + this.newAlertConfig = newAlertConfig; + } + + /** + * Alert Name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAlertName() { + return alertName; + } + + /** + * Previous alert configuration. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertingAlertConfiguration getPreviousAlertConfig() { + return previousAlertConfig; + } + + /** + * New alert configuration. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertingAlertConfiguration getNewAlertConfig() { + return newAlertConfig; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.alertName, + this.previousAlertConfig, + this.newAlertConfig + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminAlertingChangedAlertConfigDetails other = (AdminAlertingChangedAlertConfigDetails) obj; + return ((this.alertName == other.alertName) || (this.alertName.equals(other.alertName))) + && ((this.previousAlertConfig == other.previousAlertConfig) || (this.previousAlertConfig.equals(other.previousAlertConfig))) + && ((this.newAlertConfig == other.newAlertConfig) || (this.newAlertConfig.equals(other.newAlertConfig))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingChangedAlertConfigDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("alert_name"); + StoneSerializers.string().serialize(value.alertName, g); + g.writeFieldName("previous_alert_config"); + AdminAlertingAlertConfiguration.Serializer.INSTANCE.serialize(value.previousAlertConfig, g); + g.writeFieldName("new_alert_config"); + AdminAlertingAlertConfiguration.Serializer.INSTANCE.serialize(value.newAlertConfig, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminAlertingChangedAlertConfigDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminAlertingChangedAlertConfigDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_alertName = null; + AdminAlertingAlertConfiguration f_previousAlertConfig = null; + AdminAlertingAlertConfiguration f_newAlertConfig = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("alert_name".equals(field)) { + f_alertName = StoneSerializers.string().deserialize(p); + } + else if ("previous_alert_config".equals(field)) { + f_previousAlertConfig = AdminAlertingAlertConfiguration.Serializer.INSTANCE.deserialize(p); + } + else if ("new_alert_config".equals(field)) { + f_newAlertConfig = AdminAlertingAlertConfiguration.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_alertName == null) { + throw new JsonParseException(p, "Required field \"alert_name\" missing."); + } + if (f_previousAlertConfig == null) { + throw new JsonParseException(p, "Required field \"previous_alert_config\" missing."); + } + if (f_newAlertConfig == null) { + throw new JsonParseException(p, "Required field \"new_alert_config\" missing."); + } + value = new AdminAlertingChangedAlertConfigDetails(f_alertName, f_previousAlertConfig, f_newAlertConfig); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigType.java new file mode 100644 index 000000000..46886ec19 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingChangedAlertConfigType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AdminAlertingChangedAlertConfigType { + // struct team_log.AdminAlertingChangedAlertConfigType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminAlertingChangedAlertConfigType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminAlertingChangedAlertConfigType other = (AdminAlertingChangedAlertConfigType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingChangedAlertConfigType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminAlertingChangedAlertConfigType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminAlertingChangedAlertConfigType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AdminAlertingChangedAlertConfigType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertDetails.java new file mode 100644 index 000000000..62b95121e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertDetails.java @@ -0,0 +1,236 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Triggered security alert. + */ +public class AdminAlertingTriggeredAlertDetails { + // struct team_log.AdminAlertingTriggeredAlertDetails (team_log_generated.stone) + + @Nonnull + protected final String alertName; + @Nonnull + protected final AdminAlertSeverityEnum alertSeverity; + @Nonnull + protected final AdminAlertCategoryEnum alertCategory; + @Nonnull + protected final String alertInstanceId; + + /** + * Triggered security alert. + * + * @param alertName Alert name. Must not be {@code null}. + * @param alertSeverity Alert severity. Must not be {@code null}. + * @param alertCategory Alert category. Must not be {@code null}. + * @param alertInstanceId Alert ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminAlertingTriggeredAlertDetails(@Nonnull String alertName, @Nonnull AdminAlertSeverityEnum alertSeverity, @Nonnull AdminAlertCategoryEnum alertCategory, @Nonnull String alertInstanceId) { + if (alertName == null) { + throw new IllegalArgumentException("Required value for 'alertName' is null"); + } + this.alertName = alertName; + if (alertSeverity == null) { + throw new IllegalArgumentException("Required value for 'alertSeverity' is null"); + } + this.alertSeverity = alertSeverity; + if (alertCategory == null) { + throw new IllegalArgumentException("Required value for 'alertCategory' is null"); + } + this.alertCategory = alertCategory; + if (alertInstanceId == null) { + throw new IllegalArgumentException("Required value for 'alertInstanceId' is null"); + } + this.alertInstanceId = alertInstanceId; + } + + /** + * Alert name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAlertName() { + return alertName; + } + + /** + * Alert severity. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertSeverityEnum getAlertSeverity() { + return alertSeverity; + } + + /** + * Alert category. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminAlertCategoryEnum getAlertCategory() { + return alertCategory; + } + + /** + * Alert ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAlertInstanceId() { + return alertInstanceId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.alertName, + this.alertSeverity, + this.alertCategory, + this.alertInstanceId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminAlertingTriggeredAlertDetails other = (AdminAlertingTriggeredAlertDetails) obj; + return ((this.alertName == other.alertName) || (this.alertName.equals(other.alertName))) + && ((this.alertSeverity == other.alertSeverity) || (this.alertSeverity.equals(other.alertSeverity))) + && ((this.alertCategory == other.alertCategory) || (this.alertCategory.equals(other.alertCategory))) + && ((this.alertInstanceId == other.alertInstanceId) || (this.alertInstanceId.equals(other.alertInstanceId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingTriggeredAlertDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("alert_name"); + StoneSerializers.string().serialize(value.alertName, g); + g.writeFieldName("alert_severity"); + AdminAlertSeverityEnum.Serializer.INSTANCE.serialize(value.alertSeverity, g); + g.writeFieldName("alert_category"); + AdminAlertCategoryEnum.Serializer.INSTANCE.serialize(value.alertCategory, g); + g.writeFieldName("alert_instance_id"); + StoneSerializers.string().serialize(value.alertInstanceId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminAlertingTriggeredAlertDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminAlertingTriggeredAlertDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_alertName = null; + AdminAlertSeverityEnum f_alertSeverity = null; + AdminAlertCategoryEnum f_alertCategory = null; + String f_alertInstanceId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("alert_name".equals(field)) { + f_alertName = StoneSerializers.string().deserialize(p); + } + else if ("alert_severity".equals(field)) { + f_alertSeverity = AdminAlertSeverityEnum.Serializer.INSTANCE.deserialize(p); + } + else if ("alert_category".equals(field)) { + f_alertCategory = AdminAlertCategoryEnum.Serializer.INSTANCE.deserialize(p); + } + else if ("alert_instance_id".equals(field)) { + f_alertInstanceId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_alertName == null) { + throw new JsonParseException(p, "Required field \"alert_name\" missing."); + } + if (f_alertSeverity == null) { + throw new JsonParseException(p, "Required field \"alert_severity\" missing."); + } + if (f_alertCategory == null) { + throw new JsonParseException(p, "Required field \"alert_category\" missing."); + } + if (f_alertInstanceId == null) { + throw new JsonParseException(p, "Required field \"alert_instance_id\" missing."); + } + value = new AdminAlertingTriggeredAlertDetails(f_alertName, f_alertSeverity, f_alertCategory, f_alertInstanceId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertType.java new file mode 100644 index 000000000..de9f970f6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminAlertingTriggeredAlertType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AdminAlertingTriggeredAlertType { + // struct team_log.AdminAlertingTriggeredAlertType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminAlertingTriggeredAlertType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminAlertingTriggeredAlertType other = (AdminAlertingTriggeredAlertType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminAlertingTriggeredAlertType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminAlertingTriggeredAlertType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminAlertingTriggeredAlertType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AdminAlertingTriggeredAlertType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminConsoleAppPermission.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminConsoleAppPermission.java new file mode 100644 index 000000000..44ab0e34c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminConsoleAppPermission.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AdminConsoleAppPermission { + // union team_log.AdminConsoleAppPermission (team_log_generated.stone) + DEFAULT_FOR_LISTED_APPS, + DEFAULT_FOR_UNLISTED_APPS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminConsoleAppPermission value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT_FOR_LISTED_APPS: { + g.writeString("default_for_listed_apps"); + break; + } + case DEFAULT_FOR_UNLISTED_APPS: { + g.writeString("default_for_unlisted_apps"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminConsoleAppPermission deserialize(JsonParser p) throws IOException, JsonParseException { + AdminConsoleAppPermission value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default_for_listed_apps".equals(tag)) { + value = AdminConsoleAppPermission.DEFAULT_FOR_LISTED_APPS; + } + else if ("default_for_unlisted_apps".equals(tag)) { + value = AdminConsoleAppPermission.DEFAULT_FOR_UNLISTED_APPS; + } + else { + value = AdminConsoleAppPermission.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminConsoleAppPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminConsoleAppPolicy.java new file mode 100644 index 000000000..c54608adb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminConsoleAppPolicy.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AdminConsoleAppPolicy { + // union team_log.AdminConsoleAppPolicy (team_log_generated.stone) + ALLOW, + BLOCK, + DEFAULT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminConsoleAppPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALLOW: { + g.writeString("allow"); + break; + } + case BLOCK: { + g.writeString("block"); + break; + } + case DEFAULT: { + g.writeString("default"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminConsoleAppPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + AdminConsoleAppPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("allow".equals(tag)) { + value = AdminConsoleAppPolicy.ALLOW; + } + else if ("block".equals(tag)) { + value = AdminConsoleAppPolicy.BLOCK; + } + else if ("default".equals(tag)) { + value = AdminConsoleAppPolicy.DEFAULT; + } + else { + value = AdminConsoleAppPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedDetails.java new file mode 100644 index 000000000..e05c2378c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed admin reminder settings for requests to join the team. + */ +public class AdminEmailRemindersChangedDetails { + // struct team_log.AdminEmailRemindersChangedDetails (team_log_generated.stone) + + @Nonnull + protected final AdminEmailRemindersPolicy newValue; + @Nonnull + protected final AdminEmailRemindersPolicy previousValue; + + /** + * Changed admin reminder settings for requests to join the team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminEmailRemindersChangedDetails(@Nonnull AdminEmailRemindersPolicy newValue, @Nonnull AdminEmailRemindersPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminEmailRemindersPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminEmailRemindersPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminEmailRemindersChangedDetails other = (AdminEmailRemindersChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminEmailRemindersChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + AdminEmailRemindersPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + AdminEmailRemindersPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminEmailRemindersChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminEmailRemindersChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AdminEmailRemindersPolicy f_newValue = null; + AdminEmailRemindersPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = AdminEmailRemindersPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = AdminEmailRemindersPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new AdminEmailRemindersChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedType.java new file mode 100644 index 000000000..574f23202 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AdminEmailRemindersChangedType { + // struct team_log.AdminEmailRemindersChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AdminEmailRemindersChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AdminEmailRemindersChangedType other = (AdminEmailRemindersChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminEmailRemindersChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AdminEmailRemindersChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AdminEmailRemindersChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AdminEmailRemindersChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy.java new file mode 100644 index 000000000..28a13345a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminEmailRemindersPolicy.java @@ -0,0 +1,101 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether team admins receive reminder emails for requests + * to join the team + */ +public enum AdminEmailRemindersPolicy { + // union team_log.AdminEmailRemindersPolicy (team_log_generated.stone) + DEFAULT, + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminEmailRemindersPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminEmailRemindersPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + AdminEmailRemindersPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = AdminEmailRemindersPolicy.DEFAULT; + } + else if ("disabled".equals(tag)) { + value = AdminEmailRemindersPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = AdminEmailRemindersPolicy.ENABLED; + } + else { + value = AdminEmailRemindersPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminRole.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminRole.java new file mode 100644 index 000000000..a97e61cbb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AdminRole.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum AdminRole { + // union team_log.AdminRole (team_log_generated.stone) + BILLING_ADMIN, + COMPLIANCE_ADMIN, + CONTENT_ADMIN, + LIMITED_ADMIN, + MEMBER_ONLY, + REPORTING_ADMIN, + SECURITY_ADMIN, + SUPPORT_ADMIN, + TEAM_ADMIN, + USER_MANAGEMENT_ADMIN, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AdminRole value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case BILLING_ADMIN: { + g.writeString("billing_admin"); + break; + } + case COMPLIANCE_ADMIN: { + g.writeString("compliance_admin"); + break; + } + case CONTENT_ADMIN: { + g.writeString("content_admin"); + break; + } + case LIMITED_ADMIN: { + g.writeString("limited_admin"); + break; + } + case MEMBER_ONLY: { + g.writeString("member_only"); + break; + } + case REPORTING_ADMIN: { + g.writeString("reporting_admin"); + break; + } + case SECURITY_ADMIN: { + g.writeString("security_admin"); + break; + } + case SUPPORT_ADMIN: { + g.writeString("support_admin"); + break; + } + case TEAM_ADMIN: { + g.writeString("team_admin"); + break; + } + case USER_MANAGEMENT_ADMIN: { + g.writeString("user_management_admin"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AdminRole deserialize(JsonParser p) throws IOException, JsonParseException { + AdminRole value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("billing_admin".equals(tag)) { + value = AdminRole.BILLING_ADMIN; + } + else if ("compliance_admin".equals(tag)) { + value = AdminRole.COMPLIANCE_ADMIN; + } + else if ("content_admin".equals(tag)) { + value = AdminRole.CONTENT_ADMIN; + } + else if ("limited_admin".equals(tag)) { + value = AdminRole.LIMITED_ADMIN; + } + else if ("member_only".equals(tag)) { + value = AdminRole.MEMBER_ONLY; + } + else if ("reporting_admin".equals(tag)) { + value = AdminRole.REPORTING_ADMIN; + } + else if ("security_admin".equals(tag)) { + value = AdminRole.SECURITY_ADMIN; + } + else if ("support_admin".equals(tag)) { + value = AdminRole.SUPPORT_ADMIN; + } + else if ("team_admin".equals(tag)) { + value = AdminRole.TEAM_ADMIN; + } + else if ("user_management_admin".equals(tag)) { + value = AdminRole.USER_MANAGEMENT_ADMIN; + } + else { + value = AdminRole.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AlertRecipientsSettingType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AlertRecipientsSettingType.java new file mode 100644 index 000000000..197f3378c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AlertRecipientsSettingType.java @@ -0,0 +1,108 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Alert recipients setting type + */ +public enum AlertRecipientsSettingType { + // union team_log.AlertRecipientsSettingType (team_log_generated.stone) + CUSTOM_LIST, + INVALID, + NONE, + TEAM_ADMINS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AlertRecipientsSettingType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case CUSTOM_LIST: { + g.writeString("custom_list"); + break; + } + case INVALID: { + g.writeString("invalid"); + break; + } + case NONE: { + g.writeString("none"); + break; + } + case TEAM_ADMINS: { + g.writeString("team_admins"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AlertRecipientsSettingType deserialize(JsonParser p) throws IOException, JsonParseException { + AlertRecipientsSettingType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("custom_list".equals(tag)) { + value = AlertRecipientsSettingType.CUSTOM_LIST; + } + else if ("invalid".equals(tag)) { + value = AlertRecipientsSettingType.INVALID; + } + else if ("none".equals(tag)) { + value = AlertRecipientsSettingType.NONE; + } + else if ("team_admins".equals(tag)) { + value = AlertRecipientsSettingType.TEAM_ADMINS; + } + else { + value = AlertRecipientsSettingType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadDisabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadDisabledDetails.java new file mode 100644 index 000000000..60f835d91 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadDisabledDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Disabled downloads. + */ +public class AllowDownloadDisabledDetails { + // struct team_log.AllowDownloadDisabledDetails (team_log_generated.stone) + + + /** + * Disabled downloads. + */ + public AllowDownloadDisabledDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AllowDownloadDisabledDetails other = (AllowDownloadDisabledDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AllowDownloadDisabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AllowDownloadDisabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AllowDownloadDisabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new AllowDownloadDisabledDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadDisabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadDisabledType.java new file mode 100644 index 000000000..92052f01d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadDisabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AllowDownloadDisabledType { + // struct team_log.AllowDownloadDisabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AllowDownloadDisabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AllowDownloadDisabledType other = (AllowDownloadDisabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AllowDownloadDisabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AllowDownloadDisabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AllowDownloadDisabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AllowDownloadDisabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadEnabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadEnabledDetails.java new file mode 100644 index 000000000..e6734985c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadEnabledDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Enabled downloads. + */ +public class AllowDownloadEnabledDetails { + // struct team_log.AllowDownloadEnabledDetails (team_log_generated.stone) + + + /** + * Enabled downloads. + */ + public AllowDownloadEnabledDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AllowDownloadEnabledDetails other = (AllowDownloadEnabledDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AllowDownloadEnabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AllowDownloadEnabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AllowDownloadEnabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new AllowDownloadEnabledDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadEnabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadEnabledType.java new file mode 100644 index 000000000..d73880f7e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AllowDownloadEnabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AllowDownloadEnabledType { + // struct team_log.AllowDownloadEnabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AllowDownloadEnabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AllowDownloadEnabledType other = (AllowDownloadEnabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AllowDownloadEnabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AllowDownloadEnabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AllowDownloadEnabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AllowDownloadEnabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApiSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApiSessionLogInfo.java new file mode 100644 index 000000000..ef57f576e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApiSessionLogInfo.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Api session. + */ +public class ApiSessionLogInfo { + // struct team_log.ApiSessionLogInfo (team_log_generated.stone) + + @Nonnull + protected final String requestId; + + /** + * Api session. + * + * @param requestId Api request ID. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ApiSessionLogInfo(@Nonnull String requestId) { + if (requestId == null) { + throw new IllegalArgumentException("Required value for 'requestId' is null"); + } + this.requestId = requestId; + } + + /** + * Api request ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getRequestId() { + return requestId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.requestId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ApiSessionLogInfo other = (ApiSessionLogInfo) obj; + return (this.requestId == other.requestId) || (this.requestId.equals(other.requestId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ApiSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("request_id"); + StoneSerializers.string().serialize(value.requestId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ApiSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ApiSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_requestId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("request_id".equals(field)) { + f_requestId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_requestId == null) { + throw new JsonParseException(p, "Required field \"request_id\" missing."); + } + value = new ApiSessionLogInfo(f_requestId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppBlockedByPermissionsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppBlockedByPermissionsDetails.java new file mode 100644 index 000000000..e396ff33a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppBlockedByPermissionsDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Failed to connect app for member. + */ +public class AppBlockedByPermissionsDetails { + // struct team_log.AppBlockedByPermissionsDetails (team_log_generated.stone) + + @Nonnull + protected final AppLogInfo appInfo; + + /** + * Failed to connect app for member. + * + * @param appInfo Relevant application details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppBlockedByPermissionsDetails(@Nonnull AppLogInfo appInfo) { + if (appInfo == null) { + throw new IllegalArgumentException("Required value for 'appInfo' is null"); + } + this.appInfo = appInfo; + } + + /** + * Relevant application details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AppLogInfo getAppInfo() { + return appInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppBlockedByPermissionsDetails other = (AppBlockedByPermissionsDetails) obj; + return (this.appInfo == other.appInfo) || (this.appInfo.equals(other.appInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppBlockedByPermissionsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("app_info"); + AppLogInfo.Serializer.INSTANCE.serialize(value.appInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppBlockedByPermissionsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppBlockedByPermissionsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AppLogInfo f_appInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_info".equals(field)) { + f_appInfo = AppLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_appInfo == null) { + throw new JsonParseException(p, "Required field \"app_info\" missing."); + } + value = new AppBlockedByPermissionsDetails(f_appInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppBlockedByPermissionsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppBlockedByPermissionsType.java new file mode 100644 index 000000000..48c72e4e2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppBlockedByPermissionsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AppBlockedByPermissionsType { + // struct team_log.AppBlockedByPermissionsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppBlockedByPermissionsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppBlockedByPermissionsType other = (AppBlockedByPermissionsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppBlockedByPermissionsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppBlockedByPermissionsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppBlockedByPermissionsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AppBlockedByPermissionsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkTeamDetails.java new file mode 100644 index 000000000..7eca73b5b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkTeamDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Linked app for team. + */ +public class AppLinkTeamDetails { + // struct team_log.AppLinkTeamDetails (team_log_generated.stone) + + @Nonnull + protected final AppLogInfo appInfo; + + /** + * Linked app for team. + * + * @param appInfo Relevant application details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppLinkTeamDetails(@Nonnull AppLogInfo appInfo) { + if (appInfo == null) { + throw new IllegalArgumentException("Required value for 'appInfo' is null"); + } + this.appInfo = appInfo; + } + + /** + * Relevant application details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AppLogInfo getAppInfo() { + return appInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppLinkTeamDetails other = (AppLinkTeamDetails) obj; + return (this.appInfo == other.appInfo) || (this.appInfo.equals(other.appInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppLinkTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("app_info"); + AppLogInfo.Serializer.INSTANCE.serialize(value.appInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppLinkTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppLinkTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AppLogInfo f_appInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_info".equals(field)) { + f_appInfo = AppLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_appInfo == null) { + throw new JsonParseException(p, "Required field \"app_info\" missing."); + } + value = new AppLinkTeamDetails(f_appInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkTeamType.java new file mode 100644 index 000000000..5cb7281f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AppLinkTeamType { + // struct team_log.AppLinkTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppLinkTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppLinkTeamType other = (AppLinkTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppLinkTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppLinkTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppLinkTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AppLinkTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkUserDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkUserDetails.java new file mode 100644 index 000000000..586ef2ac5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkUserDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Linked app for member. + */ +public class AppLinkUserDetails { + // struct team_log.AppLinkUserDetails (team_log_generated.stone) + + @Nonnull + protected final AppLogInfo appInfo; + + /** + * Linked app for member. + * + * @param appInfo Relevant application details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppLinkUserDetails(@Nonnull AppLogInfo appInfo) { + if (appInfo == null) { + throw new IllegalArgumentException("Required value for 'appInfo' is null"); + } + this.appInfo = appInfo; + } + + /** + * Relevant application details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AppLogInfo getAppInfo() { + return appInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppLinkUserDetails other = (AppLinkUserDetails) obj; + return (this.appInfo == other.appInfo) || (this.appInfo.equals(other.appInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppLinkUserDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("app_info"); + AppLogInfo.Serializer.INSTANCE.serialize(value.appInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppLinkUserDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppLinkUserDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AppLogInfo f_appInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_info".equals(field)) { + f_appInfo = AppLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_appInfo == null) { + throw new JsonParseException(p, "Required field \"app_info\" missing."); + } + value = new AppLinkUserDetails(f_appInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkUserType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkUserType.java new file mode 100644 index 000000000..96f9822c8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLinkUserType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AppLinkUserType { + // struct team_log.AppLinkUserType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppLinkUserType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppLinkUserType other = (AppLinkUserType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppLinkUserType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppLinkUserType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppLinkUserType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AppLinkUserType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLogInfo.java new file mode 100644 index 000000000..398d422d0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppLogInfo.java @@ -0,0 +1,266 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * App's logged information. + */ +public class AppLogInfo { + // struct team_log.AppLogInfo (team_log_generated.stone) + + @Nullable + protected final String appId; + @Nullable + protected final String displayName; + + /** + * App's logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param appId App unique ID. + * @param displayName App display name. + */ + public AppLogInfo(@Nullable String appId, @Nullable String displayName) { + this.appId = appId; + this.displayName = displayName; + } + + /** + * App's logged information. + * + *

The default values for unset fields will be used.

+ */ + public AppLogInfo() { + this(null, null); + } + + /** + * App unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAppId() { + return appId; + } + + /** + * App display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link AppLogInfo}. + */ + public static class Builder { + + protected String appId; + protected String displayName; + + protected Builder() { + this.appId = null; + this.displayName = null; + } + + /** + * Set value for optional field. + * + * @param appId App unique ID. + * + * @return this builder + */ + public Builder withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * Set value for optional field. + * + * @param displayName App display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Builds an instance of {@link AppLogInfo} configured with this + * builder's values + * + * @return new instance of {@link AppLogInfo} + */ + public AppLogInfo build() { + return new AppLogInfo(appId, displayName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appId, + this.displayName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppLogInfo other = (AppLogInfo) obj; + return ((this.appId == other.appId) || (this.appId != null && this.appId.equals(other.appId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof UserOrTeamLinkedAppLogInfo) { + UserOrTeamLinkedAppLogInfo.Serializer.INSTANCE.serialize((UserOrTeamLinkedAppLogInfo) value, g, collapse); + return; + } + if (value instanceof UserLinkedAppLogInfo) { + UserLinkedAppLogInfo.Serializer.INSTANCE.serialize((UserLinkedAppLogInfo) value, g, collapse); + return; + } + if (value instanceof TeamLinkedAppLogInfo) { + TeamLinkedAppLogInfo.Serializer.INSTANCE.serialize((TeamLinkedAppLogInfo) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + if (value.appId != null) { + g.writeFieldName("app_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.appId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_appId = null; + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_id".equals(field)) { + f_appId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new AppLogInfo(f_appId, f_displayName); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("user_or_team_linked_app".equals(tag)) { + value = UserOrTeamLinkedAppLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("user_linked_app".equals(tag)) { + value = UserLinkedAppLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("team_linked_app".equals(tag)) { + value = TeamLinkedAppLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppPermissionsChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppPermissionsChangedDetails.java new file mode 100644 index 000000000..37e74f155 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppPermissionsChangedDetails.java @@ -0,0 +1,320 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed app permissions. + */ +public class AppPermissionsChangedDetails { + // struct team_log.AppPermissionsChangedDetails (team_log_generated.stone) + + @Nullable + protected final String appName; + @Nullable + protected final AdminConsoleAppPermission permission; + @Nonnull + protected final AdminConsoleAppPolicy previousValue; + @Nonnull + protected final AdminConsoleAppPolicy newValue; + + /** + * Changed app permissions. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param previousValue Previous policy. Must not be {@code null}. + * @param newValue New policy. Must not be {@code null}. + * @param appName Name of the app. + * @param permission Permission that was changed. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppPermissionsChangedDetails(@Nonnull AdminConsoleAppPolicy previousValue, @Nonnull AdminConsoleAppPolicy newValue, @Nullable String appName, @Nullable AdminConsoleAppPermission permission) { + this.appName = appName; + this.permission = permission; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Changed app permissions. + * + *

The default values for unset fields will be used.

+ * + * @param previousValue Previous policy. Must not be {@code null}. + * @param newValue New policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppPermissionsChangedDetails(@Nonnull AdminConsoleAppPolicy previousValue, @Nonnull AdminConsoleAppPolicy newValue) { + this(previousValue, newValue, null, null); + } + + /** + * Previous policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminConsoleAppPolicy getPreviousValue() { + return previousValue; + } + + /** + * New policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AdminConsoleAppPolicy getNewValue() { + return newValue; + } + + /** + * Name of the app. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAppName() { + return appName; + } + + /** + * Permission that was changed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AdminConsoleAppPermission getPermission() { + return permission; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param previousValue Previous policy. Must not be {@code null}. + * @param newValue New policy. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue) { + return new Builder(previousValue, newValue); + } + + /** + * Builder for {@link AppPermissionsChangedDetails}. + */ + public static class Builder { + protected final AdminConsoleAppPolicy previousValue; + protected final AdminConsoleAppPolicy newValue; + + protected String appName; + protected AdminConsoleAppPermission permission; + + protected Builder(AdminConsoleAppPolicy previousValue, AdminConsoleAppPolicy newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.appName = null; + this.permission = null; + } + + /** + * Set value for optional field. + * + * @param appName Name of the app. + * + * @return this builder + */ + public Builder withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * Set value for optional field. + * + * @param permission Permission that was changed. + * + * @return this builder + */ + public Builder withPermission(AdminConsoleAppPermission permission) { + this.permission = permission; + return this; + } + + /** + * Builds an instance of {@link AppPermissionsChangedDetails} configured + * with this builder's values + * + * @return new instance of {@link AppPermissionsChangedDetails} + */ + public AppPermissionsChangedDetails build() { + return new AppPermissionsChangedDetails(previousValue, newValue, appName, permission); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appName, + this.permission, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppPermissionsChangedDetails other = (AppPermissionsChangedDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.appName == other.appName) || (this.appName != null && this.appName.equals(other.appName))) + && ((this.permission == other.permission) || (this.permission != null && this.permission.equals(other.permission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppPermissionsChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + AdminConsoleAppPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + AdminConsoleAppPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.appName != null) { + g.writeFieldName("app_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.appName, g); + } + if (value.permission != null) { + g.writeFieldName("permission"); + StoneSerializers.nullable(AdminConsoleAppPermission.Serializer.INSTANCE).serialize(value.permission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppPermissionsChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppPermissionsChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AdminConsoleAppPolicy f_previousValue = null; + AdminConsoleAppPolicy f_newValue = null; + String f_appName = null; + AdminConsoleAppPermission f_permission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = AdminConsoleAppPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = AdminConsoleAppPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("app_name".equals(field)) { + f_appName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("permission".equals(field)) { + f_permission = StoneSerializers.nullable(AdminConsoleAppPermission.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new AppPermissionsChangedDetails(f_previousValue, f_newValue, f_appName, f_permission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppPermissionsChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppPermissionsChangedType.java new file mode 100644 index 000000000..55817939d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppPermissionsChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AppPermissionsChangedType { + // struct team_log.AppPermissionsChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppPermissionsChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppPermissionsChangedType other = (AppPermissionsChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppPermissionsChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppPermissionsChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppPermissionsChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AppPermissionsChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkTeamDetails.java new file mode 100644 index 000000000..8058b808c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkTeamDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Unlinked app for team. + */ +public class AppUnlinkTeamDetails { + // struct team_log.AppUnlinkTeamDetails (team_log_generated.stone) + + @Nonnull + protected final AppLogInfo appInfo; + + /** + * Unlinked app for team. + * + * @param appInfo Relevant application details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppUnlinkTeamDetails(@Nonnull AppLogInfo appInfo) { + if (appInfo == null) { + throw new IllegalArgumentException("Required value for 'appInfo' is null"); + } + this.appInfo = appInfo; + } + + /** + * Relevant application details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AppLogInfo getAppInfo() { + return appInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppUnlinkTeamDetails other = (AppUnlinkTeamDetails) obj; + return (this.appInfo == other.appInfo) || (this.appInfo.equals(other.appInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppUnlinkTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("app_info"); + AppLogInfo.Serializer.INSTANCE.serialize(value.appInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppUnlinkTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppUnlinkTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AppLogInfo f_appInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_info".equals(field)) { + f_appInfo = AppLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_appInfo == null) { + throw new JsonParseException(p, "Required field \"app_info\" missing."); + } + value = new AppUnlinkTeamDetails(f_appInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkTeamType.java new file mode 100644 index 000000000..b2f5f7fd6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AppUnlinkTeamType { + // struct team_log.AppUnlinkTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppUnlinkTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppUnlinkTeamType other = (AppUnlinkTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppUnlinkTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppUnlinkTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppUnlinkTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AppUnlinkTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkUserDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkUserDetails.java new file mode 100644 index 000000000..2a916f31a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkUserDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Unlinked app for member. + */ +public class AppUnlinkUserDetails { + // struct team_log.AppUnlinkUserDetails (team_log_generated.stone) + + @Nonnull + protected final AppLogInfo appInfo; + + /** + * Unlinked app for member. + * + * @param appInfo Relevant application details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppUnlinkUserDetails(@Nonnull AppLogInfo appInfo) { + if (appInfo == null) { + throw new IllegalArgumentException("Required value for 'appInfo' is null"); + } + this.appInfo = appInfo; + } + + /** + * Relevant application details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AppLogInfo getAppInfo() { + return appInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.appInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppUnlinkUserDetails other = (AppUnlinkUserDetails) obj; + return (this.appInfo == other.appInfo) || (this.appInfo.equals(other.appInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppUnlinkUserDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("app_info"); + AppLogInfo.Serializer.INSTANCE.serialize(value.appInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppUnlinkUserDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppUnlinkUserDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AppLogInfo f_appInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_info".equals(field)) { + f_appInfo = AppLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_appInfo == null) { + throw new JsonParseException(p, "Required field \"app_info\" missing."); + } + value = new AppUnlinkUserDetails(f_appInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkUserType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkUserType.java new file mode 100644 index 000000000..3bb31ab75 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AppUnlinkUserType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class AppUnlinkUserType { + // struct team_log.AppUnlinkUserType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public AppUnlinkUserType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + AppUnlinkUserType other = (AppUnlinkUserType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AppUnlinkUserType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public AppUnlinkUserType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + AppUnlinkUserType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new AppUnlinkUserType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApplyNamingConventionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApplyNamingConventionDetails.java new file mode 100644 index 000000000..b46a99b42 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApplyNamingConventionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Applied naming convention. + */ +public class ApplyNamingConventionDetails { + // struct team_log.ApplyNamingConventionDetails (team_log_generated.stone) + + + /** + * Applied naming convention. + */ + public ApplyNamingConventionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ApplyNamingConventionDetails other = (ApplyNamingConventionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ApplyNamingConventionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ApplyNamingConventionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ApplyNamingConventionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ApplyNamingConventionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApplyNamingConventionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApplyNamingConventionType.java new file mode 100644 index 000000000..d8d6f5353 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ApplyNamingConventionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ApplyNamingConventionType { + // struct team_log.ApplyNamingConventionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ApplyNamingConventionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ApplyNamingConventionType other = (ApplyNamingConventionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ApplyNamingConventionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ApplyNamingConventionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ApplyNamingConventionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ApplyNamingConventionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AssetLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AssetLogInfo.java new file mode 100644 index 000000000..5c7533614 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/AssetLogInfo.java @@ -0,0 +1,626 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Asset details. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class AssetLogInfo { + // union team_log.AssetLogInfo (team_log_generated.stone) + + /** + * Discriminating tag type for {@link AssetLogInfo}. + */ + public enum Tag { + /** + * File's details. + */ + FILE, // FileLogInfo + /** + * Folder's details. + */ + FOLDER, // FolderLogInfo + /** + * Paper document's details. + */ + PAPER_DOCUMENT, // PaperDocumentLogInfo + /** + * Paper folder's details. + */ + PAPER_FOLDER, // PaperFolderLogInfo + /** + * Showcase document's details. + */ + SHOWCASE_DOCUMENT, // ShowcaseDocumentLogInfo + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final AssetLogInfo OTHER = new AssetLogInfo().withTag(Tag.OTHER); + + private Tag _tag; + private FileLogInfo fileValue; + private FolderLogInfo folderValue; + private PaperDocumentLogInfo paperDocumentValue; + private PaperFolderLogInfo paperFolderValue; + private ShowcaseDocumentLogInfo showcaseDocumentValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private AssetLogInfo() { + } + + + /** + * Asset details. + * + * @param _tag Discriminating tag for this instance. + */ + private AssetLogInfo withTag(Tag _tag) { + AssetLogInfo result = new AssetLogInfo(); + result._tag = _tag; + return result; + } + + /** + * Asset details. + * + * @param fileValue File's details. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AssetLogInfo withTagAndFile(Tag _tag, FileLogInfo fileValue) { + AssetLogInfo result = new AssetLogInfo(); + result._tag = _tag; + result.fileValue = fileValue; + return result; + } + + /** + * Asset details. + * + * @param folderValue Folder's details. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AssetLogInfo withTagAndFolder(Tag _tag, FolderLogInfo folderValue) { + AssetLogInfo result = new AssetLogInfo(); + result._tag = _tag; + result.folderValue = folderValue; + return result; + } + + /** + * Asset details. + * + * @param paperDocumentValue Paper document's details. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AssetLogInfo withTagAndPaperDocument(Tag _tag, PaperDocumentLogInfo paperDocumentValue) { + AssetLogInfo result = new AssetLogInfo(); + result._tag = _tag; + result.paperDocumentValue = paperDocumentValue; + return result; + } + + /** + * Asset details. + * + * @param paperFolderValue Paper folder's details. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AssetLogInfo withTagAndPaperFolder(Tag _tag, PaperFolderLogInfo paperFolderValue) { + AssetLogInfo result = new AssetLogInfo(); + result._tag = _tag; + result.paperFolderValue = paperFolderValue; + return result; + } + + /** + * Asset details. + * + * @param showcaseDocumentValue Showcase document's details. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private AssetLogInfo withTagAndShowcaseDocument(Tag _tag, ShowcaseDocumentLogInfo showcaseDocumentValue) { + AssetLogInfo result = new AssetLogInfo(); + result._tag = _tag; + result.showcaseDocumentValue = showcaseDocumentValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code AssetLogInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FILE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FILE}, + * {@code false} otherwise. + */ + public boolean isFile() { + return this._tag == Tag.FILE; + } + + /** + * Returns an instance of {@code AssetLogInfo} that has its tag set to + * {@link Tag#FILE}. + * + *

File's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AssetLogInfo} with its tag set to {@link + * Tag#FILE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AssetLogInfo file(FileLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AssetLogInfo().withTagAndFile(Tag.FILE, value); + } + + /** + * File's details. + * + *

This instance must be tagged as {@link Tag#FILE}.

+ * + * @return The {@link FileLogInfo} value associated with this instance if + * {@link #isFile} is {@code true}. + * + * @throws IllegalStateException If {@link #isFile} is {@code false}. + */ + public FileLogInfo getFileValue() { + if (this._tag != Tag.FILE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE, but was Tag." + this._tag.name()); + } + return fileValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FOLDER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FOLDER}, + * {@code false} otherwise. + */ + public boolean isFolder() { + return this._tag == Tag.FOLDER; + } + + /** + * Returns an instance of {@code AssetLogInfo} that has its tag set to + * {@link Tag#FOLDER}. + * + *

Folder's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AssetLogInfo} with its tag set to {@link + * Tag#FOLDER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AssetLogInfo folder(FolderLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AssetLogInfo().withTagAndFolder(Tag.FOLDER, value); + } + + /** + * Folder's details. + * + *

This instance must be tagged as {@link Tag#FOLDER}.

+ * + * @return The {@link FolderLogInfo} value associated with this instance if + * {@link #isFolder} is {@code true}. + * + * @throws IllegalStateException If {@link #isFolder} is {@code false}. + */ + public FolderLogInfo getFolderValue() { + if (this._tag != Tag.FOLDER) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER, but was Tag." + this._tag.name()); + } + return folderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOCUMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOCUMENT}, {@code false} otherwise. + */ + public boolean isPaperDocument() { + return this._tag == Tag.PAPER_DOCUMENT; + } + + /** + * Returns an instance of {@code AssetLogInfo} that has its tag set to + * {@link Tag#PAPER_DOCUMENT}. + * + *

Paper document's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AssetLogInfo} with its tag set to {@link + * Tag#PAPER_DOCUMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AssetLogInfo paperDocument(PaperDocumentLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AssetLogInfo().withTagAndPaperDocument(Tag.PAPER_DOCUMENT, value); + } + + /** + * Paper document's details. + * + *

This instance must be tagged as {@link Tag#PAPER_DOCUMENT}.

+ * + * @return The {@link PaperDocumentLogInfo} value associated with this + * instance if {@link #isPaperDocument} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocument} is {@code + * false}. + */ + public PaperDocumentLogInfo getPaperDocumentValue() { + if (this._tag != Tag.PAPER_DOCUMENT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOCUMENT, but was Tag." + this._tag.name()); + } + return paperDocumentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER}, {@code false} otherwise. + */ + public boolean isPaperFolder() { + return this._tag == Tag.PAPER_FOLDER; + } + + /** + * Returns an instance of {@code AssetLogInfo} that has its tag set to + * {@link Tag#PAPER_FOLDER}. + * + *

Paper folder's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AssetLogInfo} with its tag set to {@link + * Tag#PAPER_FOLDER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AssetLogInfo paperFolder(PaperFolderLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AssetLogInfo().withTagAndPaperFolder(Tag.PAPER_FOLDER, value); + } + + /** + * Paper folder's details. + * + *

This instance must be tagged as {@link Tag#PAPER_FOLDER}.

+ * + * @return The {@link PaperFolderLogInfo} value associated with this + * instance if {@link #isPaperFolder} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperFolder} is {@code + * false}. + */ + public PaperFolderLogInfo getPaperFolderValue() { + if (this._tag != Tag.PAPER_FOLDER) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER, but was Tag." + this._tag.name()); + } + return paperFolderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_DOCUMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_DOCUMENT}, {@code false} otherwise. + */ + public boolean isShowcaseDocument() { + return this._tag == Tag.SHOWCASE_DOCUMENT; + } + + /** + * Returns an instance of {@code AssetLogInfo} that has its tag set to + * {@link Tag#SHOWCASE_DOCUMENT}. + * + *

Showcase document's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code AssetLogInfo} with its tag set to {@link + * Tag#SHOWCASE_DOCUMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static AssetLogInfo showcaseDocument(ShowcaseDocumentLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new AssetLogInfo().withTagAndShowcaseDocument(Tag.SHOWCASE_DOCUMENT, value); + } + + /** + * Showcase document's details. + * + *

This instance must be tagged as {@link Tag#SHOWCASE_DOCUMENT}.

+ * + * @return The {@link ShowcaseDocumentLogInfo} value associated with this + * instance if {@link #isShowcaseDocument} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseDocument} is {@code + * false}. + */ + public ShowcaseDocumentLogInfo getShowcaseDocumentValue() { + if (this._tag != Tag.SHOWCASE_DOCUMENT) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_DOCUMENT, but was Tag." + this._tag.name()); + } + return showcaseDocumentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.fileValue, + this.folderValue, + this.paperDocumentValue, + this.paperFolderValue, + this.showcaseDocumentValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof AssetLogInfo) { + AssetLogInfo other = (AssetLogInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case FILE: + return (this.fileValue == other.fileValue) || (this.fileValue.equals(other.fileValue)); + case FOLDER: + return (this.folderValue == other.folderValue) || (this.folderValue.equals(other.folderValue)); + case PAPER_DOCUMENT: + return (this.paperDocumentValue == other.paperDocumentValue) || (this.paperDocumentValue.equals(other.paperDocumentValue)); + case PAPER_FOLDER: + return (this.paperFolderValue == other.paperFolderValue) || (this.paperFolderValue.equals(other.paperFolderValue)); + case SHOWCASE_DOCUMENT: + return (this.showcaseDocumentValue == other.showcaseDocumentValue) || (this.showcaseDocumentValue.equals(other.showcaseDocumentValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AssetLogInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case FILE: { + g.writeStartObject(); + writeTag("file", g); + FileLogInfo.Serializer.INSTANCE.serialize(value.fileValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER: { + g.writeStartObject(); + writeTag("folder", g); + FolderLogInfo.Serializer.INSTANCE.serialize(value.folderValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOCUMENT: { + g.writeStartObject(); + writeTag("paper_document", g); + PaperDocumentLogInfo.Serializer.INSTANCE.serialize(value.paperDocumentValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER: { + g.writeStartObject(); + writeTag("paper_folder", g); + PaperFolderLogInfo.Serializer.INSTANCE.serialize(value.paperFolderValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_DOCUMENT: { + g.writeStartObject(); + writeTag("showcase_document", g); + ShowcaseDocumentLogInfo.Serializer.INSTANCE.serialize(value.showcaseDocumentValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public AssetLogInfo deserialize(JsonParser p) throws IOException, JsonParseException { + AssetLogInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("file".equals(tag)) { + FileLogInfo fieldValue = null; + fieldValue = FileLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AssetLogInfo.file(fieldValue); + } + else if ("folder".equals(tag)) { + FolderLogInfo fieldValue = null; + fieldValue = FolderLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AssetLogInfo.folder(fieldValue); + } + else if ("paper_document".equals(tag)) { + PaperDocumentLogInfo fieldValue = null; + fieldValue = PaperDocumentLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AssetLogInfo.paperDocument(fieldValue); + } + else if ("paper_folder".equals(tag)) { + PaperFolderLogInfo fieldValue = null; + fieldValue = PaperFolderLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AssetLogInfo.paperFolder(fieldValue); + } + else if ("showcase_document".equals(tag)) { + ShowcaseDocumentLogInfo fieldValue = null; + fieldValue = ShowcaseDocumentLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = AssetLogInfo.showcaseDocument(fieldValue); + } + else { + value = AssetLogInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupAdminInvitationSentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupAdminInvitationSentDetails.java new file mode 100644 index 000000000..3f3b241e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupAdminInvitationSentDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Invited members to activate Backup. + */ +public class BackupAdminInvitationSentDetails { + // struct team_log.BackupAdminInvitationSentDetails (team_log_generated.stone) + + + /** + * Invited members to activate Backup. + */ + public BackupAdminInvitationSentDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BackupAdminInvitationSentDetails other = (BackupAdminInvitationSentDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BackupAdminInvitationSentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BackupAdminInvitationSentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BackupAdminInvitationSentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new BackupAdminInvitationSentDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupAdminInvitationSentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupAdminInvitationSentType.java new file mode 100644 index 000000000..fbb4746d1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupAdminInvitationSentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BackupAdminInvitationSentType { + // struct team_log.BackupAdminInvitationSentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BackupAdminInvitationSentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BackupAdminInvitationSentType other = (BackupAdminInvitationSentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BackupAdminInvitationSentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BackupAdminInvitationSentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BackupAdminInvitationSentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BackupAdminInvitationSentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupInvitationOpenedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupInvitationOpenedDetails.java new file mode 100644 index 000000000..85bd3aa91 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupInvitationOpenedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Opened Backup invite. + */ +public class BackupInvitationOpenedDetails { + // struct team_log.BackupInvitationOpenedDetails (team_log_generated.stone) + + + /** + * Opened Backup invite. + */ + public BackupInvitationOpenedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BackupInvitationOpenedDetails other = (BackupInvitationOpenedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BackupInvitationOpenedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BackupInvitationOpenedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BackupInvitationOpenedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new BackupInvitationOpenedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupInvitationOpenedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupInvitationOpenedType.java new file mode 100644 index 000000000..9f81beb24 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupInvitationOpenedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BackupInvitationOpenedType { + // struct team_log.BackupInvitationOpenedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BackupInvitationOpenedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BackupInvitationOpenedType other = (BackupInvitationOpenedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BackupInvitationOpenedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BackupInvitationOpenedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BackupInvitationOpenedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BackupInvitationOpenedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupStatus.java new file mode 100644 index 000000000..cd8e63bc9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BackupStatus.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Backup status + */ +public enum BackupStatus { + // union team_log.BackupStatus (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BackupStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public BackupStatus deserialize(JsonParser p) throws IOException, JsonParseException { + BackupStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = BackupStatus.DISABLED; + } + else if ("enabled".equals(tag)) { + value = BackupStatus.ENABLED; + } + else { + value = BackupStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddPageDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddPageDetails.java new file mode 100644 index 000000000..6ac0eea6e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddPageDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added Binder page. + */ +public class BinderAddPageDetails { + // struct team_log.BinderAddPageDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + + /** + * Added Binder page. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderAddPageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderAddPageDetails other = (BinderAddPageDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderAddPageDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderAddPageDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderAddPageDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderAddPageDetails(f_eventUuid, f_docTitle, f_binderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddPageType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddPageType.java new file mode 100644 index 000000000..e1c1cdec0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddPageType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderAddPageType { + // struct team_log.BinderAddPageType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderAddPageType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderAddPageType other = (BinderAddPageType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderAddPageType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderAddPageType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderAddPageType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderAddPageType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddSectionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddSectionDetails.java new file mode 100644 index 000000000..1c6c30e4c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddSectionDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added Binder section. + */ +public class BinderAddSectionDetails { + // struct team_log.BinderAddSectionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + + /** + * Added Binder section. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderAddSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderAddSectionDetails other = (BinderAddSectionDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderAddSectionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderAddSectionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderAddSectionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderAddSectionDetails(f_eventUuid, f_docTitle, f_binderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddSectionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddSectionType.java new file mode 100644 index 000000000..7581ccd46 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderAddSectionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderAddSectionType { + // struct team_log.BinderAddSectionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderAddSectionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderAddSectionType other = (BinderAddSectionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderAddSectionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderAddSectionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderAddSectionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderAddSectionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemovePageDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemovePageDetails.java new file mode 100644 index 000000000..08e6947d1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemovePageDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed Binder page. + */ +public class BinderRemovePageDetails { + // struct team_log.BinderRemovePageDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + + /** + * Removed Binder page. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRemovePageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRemovePageDetails other = (BinderRemovePageDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRemovePageDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRemovePageDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRemovePageDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderRemovePageDetails(f_eventUuid, f_docTitle, f_binderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemovePageType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemovePageType.java new file mode 100644 index 000000000..141cf0ce8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemovePageType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderRemovePageType { + // struct team_log.BinderRemovePageType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRemovePageType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRemovePageType other = (BinderRemovePageType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRemovePageType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRemovePageType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRemovePageType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderRemovePageType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemoveSectionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemoveSectionDetails.java new file mode 100644 index 000000000..bccca676c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemoveSectionDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed Binder section. + */ +public class BinderRemoveSectionDetails { + // struct team_log.BinderRemoveSectionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + + /** + * Removed Binder section. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRemoveSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRemoveSectionDetails other = (BinderRemoveSectionDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRemoveSectionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRemoveSectionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRemoveSectionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderRemoveSectionDetails(f_eventUuid, f_docTitle, f_binderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemoveSectionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemoveSectionType.java new file mode 100644 index 000000000..69061aeec --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRemoveSectionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderRemoveSectionType { + // struct team_log.BinderRemoveSectionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRemoveSectionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRemoveSectionType other = (BinderRemoveSectionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRemoveSectionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRemoveSectionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRemoveSectionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderRemoveSectionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenamePageDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenamePageDetails.java new file mode 100644 index 000000000..55979fbe5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenamePageDetails.java @@ -0,0 +1,251 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Renamed Binder page. + */ +public class BinderRenamePageDetails { + // struct team_log.BinderRenamePageDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + @Nullable + protected final String previousBinderItemName; + + /** + * Renamed Binder page. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * @param previousBinderItemName Previous name of the Binder page/section. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRenamePageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName, @Nullable String previousBinderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + this.previousBinderItemName = previousBinderItemName; + } + + /** + * Renamed Binder page. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRenamePageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + this(eventUuid, docTitle, binderItemName, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + /** + * Previous name of the Binder page/section. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousBinderItemName() { + return previousBinderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName, + this.previousBinderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRenamePageDetails other = (BinderRenamePageDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + && ((this.previousBinderItemName == other.previousBinderItemName) || (this.previousBinderItemName != null && this.previousBinderItemName.equals(other.previousBinderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRenamePageDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (value.previousBinderItemName != null) { + g.writeFieldName("previous_binder_item_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousBinderItemName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRenamePageDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRenamePageDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + String f_previousBinderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else if ("previous_binder_item_name".equals(field)) { + f_previousBinderItemName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderRenamePageDetails(f_eventUuid, f_docTitle, f_binderItemName, f_previousBinderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenamePageType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenamePageType.java new file mode 100644 index 000000000..fa3ad24c3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenamePageType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderRenamePageType { + // struct team_log.BinderRenamePageType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRenamePageType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRenamePageType other = (BinderRenamePageType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRenamePageType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRenamePageType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRenamePageType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderRenamePageType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenameSectionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenameSectionDetails.java new file mode 100644 index 000000000..0af0add5a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenameSectionDetails.java @@ -0,0 +1,251 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Renamed Binder section. + */ +public class BinderRenameSectionDetails { + // struct team_log.BinderRenameSectionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + @Nullable + protected final String previousBinderItemName; + + /** + * Renamed Binder section. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * @param previousBinderItemName Previous name of the Binder page/section. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRenameSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName, @Nullable String previousBinderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + this.previousBinderItemName = previousBinderItemName; + } + + /** + * Renamed Binder section. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRenameSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + this(eventUuid, docTitle, binderItemName, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + /** + * Previous name of the Binder page/section. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousBinderItemName() { + return previousBinderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName, + this.previousBinderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRenameSectionDetails other = (BinderRenameSectionDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + && ((this.previousBinderItemName == other.previousBinderItemName) || (this.previousBinderItemName != null && this.previousBinderItemName.equals(other.previousBinderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRenameSectionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (value.previousBinderItemName != null) { + g.writeFieldName("previous_binder_item_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousBinderItemName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRenameSectionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRenameSectionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + String f_previousBinderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else if ("previous_binder_item_name".equals(field)) { + f_previousBinderItemName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderRenameSectionDetails(f_eventUuid, f_docTitle, f_binderItemName, f_previousBinderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenameSectionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenameSectionType.java new file mode 100644 index 000000000..b10184702 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderRenameSectionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderRenameSectionType { + // struct team_log.BinderRenameSectionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderRenameSectionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderRenameSectionType other = (BinderRenameSectionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderRenameSectionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderRenameSectionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderRenameSectionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderRenameSectionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderPageDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderPageDetails.java new file mode 100644 index 000000000..a7a3d4421 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderPageDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Reordered Binder page. + */ +public class BinderReorderPageDetails { + // struct team_log.BinderReorderPageDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + + /** + * Reordered Binder page. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderReorderPageDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderReorderPageDetails other = (BinderReorderPageDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderReorderPageDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderReorderPageDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderReorderPageDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderReorderPageDetails(f_eventUuid, f_docTitle, f_binderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderPageType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderPageType.java new file mode 100644 index 000000000..e7c04cf74 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderPageType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderReorderPageType { + // struct team_log.BinderReorderPageType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderReorderPageType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderReorderPageType other = (BinderReorderPageType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderReorderPageType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderReorderPageType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderReorderPageType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderReorderPageType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderSectionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderSectionDetails.java new file mode 100644 index 000000000..b08c09f1f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderSectionDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Reordered Binder section. + */ +public class BinderReorderSectionDetails { + // struct team_log.BinderReorderSectionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String docTitle; + @Nonnull + protected final String binderItemName; + + /** + * Reordered Binder section. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param docTitle Title of the Binder doc. Must not be {@code null}. + * @param binderItemName Name of the Binder page/section. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderReorderSectionDetails(@Nonnull String eventUuid, @Nonnull String docTitle, @Nonnull String binderItemName) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + if (binderItemName == null) { + throw new IllegalArgumentException("Required value for 'binderItemName' is null"); + } + this.binderItemName = binderItemName; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Title of the Binder doc. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + /** + * Name of the Binder page/section. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBinderItemName() { + return binderItemName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.docTitle, + this.binderItemName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderReorderSectionDetails other = (BinderReorderSectionDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + && ((this.binderItemName == other.binderItemName) || (this.binderItemName.equals(other.binderItemName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderReorderSectionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + g.writeFieldName("binder_item_name"); + StoneSerializers.string().serialize(value.binderItemName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderReorderSectionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderReorderSectionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_docTitle = null; + String f_binderItemName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else if ("binder_item_name".equals(field)) { + f_binderItemName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + if (f_binderItemName == null) { + throw new JsonParseException(p, "Required field \"binder_item_name\" missing."); + } + value = new BinderReorderSectionDetails(f_eventUuid, f_docTitle, f_binderItemName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderSectionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderSectionType.java new file mode 100644 index 000000000..45da425d1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/BinderReorderSectionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class BinderReorderSectionType { + // struct team_log.BinderReorderSectionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BinderReorderSectionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BinderReorderSectionType other = (BinderReorderSectionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BinderReorderSectionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BinderReorderSectionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BinderReorderSectionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new BinderReorderSectionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicy.java new file mode 100644 index 000000000..3b1919817 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if team members can activate camera uploads + */ +public enum CameraUploadsPolicy { + // union team_log.CameraUploadsPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CameraUploadsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CameraUploadsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + CameraUploadsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = CameraUploadsPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = CameraUploadsPolicy.ENABLED; + } + else { + value = CameraUploadsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedDetails.java new file mode 100644 index 000000000..7a72d1078 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed camera uploads setting for team. + */ +public class CameraUploadsPolicyChangedDetails { + // struct team_log.CameraUploadsPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final CameraUploadsPolicy newValue; + @Nonnull + protected final CameraUploadsPolicy previousValue; + + /** + * Changed camera uploads setting for team. + * + * @param newValue New camera uploads setting. Must not be {@code null}. + * @param previousValue Previous camera uploads setting. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CameraUploadsPolicyChangedDetails(@Nonnull CameraUploadsPolicy newValue, @Nonnull CameraUploadsPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New camera uploads setting. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public CameraUploadsPolicy getNewValue() { + return newValue; + } + + /** + * Previous camera uploads setting. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public CameraUploadsPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CameraUploadsPolicyChangedDetails other = (CameraUploadsPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CameraUploadsPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + CameraUploadsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + CameraUploadsPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CameraUploadsPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CameraUploadsPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + CameraUploadsPolicy f_newValue = null; + CameraUploadsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = CameraUploadsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = CameraUploadsPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new CameraUploadsPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedType.java new file mode 100644 index 000000000..f6f8776f0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CameraUploadsPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class CameraUploadsPolicyChangedType { + // struct team_log.CameraUploadsPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CameraUploadsPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CameraUploadsPolicyChangedType other = (CameraUploadsPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CameraUploadsPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CameraUploadsPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CameraUploadsPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new CameraUploadsPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicy.java new file mode 100644 index 000000000..55d18ef42 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether team users can transcription in Capture + */ +public enum CaptureTranscriptPolicy { + // union team_log.CaptureTranscriptPolicy (team_log_generated.stone) + DEFAULT, + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CaptureTranscriptPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CaptureTranscriptPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + CaptureTranscriptPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = CaptureTranscriptPolicy.DEFAULT; + } + else if ("disabled".equals(tag)) { + value = CaptureTranscriptPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = CaptureTranscriptPolicy.ENABLED; + } + else { + value = CaptureTranscriptPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedDetails.java new file mode 100644 index 000000000..194aad526 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed Capture transcription policy for team. + */ +public class CaptureTranscriptPolicyChangedDetails { + // struct team_log.CaptureTranscriptPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final CaptureTranscriptPolicy newValue; + @Nonnull + protected final CaptureTranscriptPolicy previousValue; + + /** + * Changed Capture transcription policy for team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CaptureTranscriptPolicyChangedDetails(@Nonnull CaptureTranscriptPolicy newValue, @Nonnull CaptureTranscriptPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public CaptureTranscriptPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public CaptureTranscriptPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CaptureTranscriptPolicyChangedDetails other = (CaptureTranscriptPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CaptureTranscriptPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + CaptureTranscriptPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + CaptureTranscriptPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CaptureTranscriptPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CaptureTranscriptPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + CaptureTranscriptPolicy f_newValue = null; + CaptureTranscriptPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = CaptureTranscriptPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = CaptureTranscriptPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new CaptureTranscriptPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedType.java new file mode 100644 index 000000000..4d0a01cb5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CaptureTranscriptPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class CaptureTranscriptPolicyChangedType { + // struct team_log.CaptureTranscriptPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CaptureTranscriptPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CaptureTranscriptPolicyChangedType other = (CaptureTranscriptPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CaptureTranscriptPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CaptureTranscriptPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CaptureTranscriptPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new CaptureTranscriptPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/Certificate.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/Certificate.java new file mode 100644 index 000000000..71ca58b01 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/Certificate.java @@ -0,0 +1,340 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Certificate details. + */ +public class Certificate { + // struct team_log.Certificate (team_log_generated.stone) + + @Nonnull + protected final String subject; + @Nonnull + protected final String issuer; + @Nonnull + protected final String issueDate; + @Nonnull + protected final String expirationDate; + @Nonnull + protected final String serialNumber; + @Nonnull + protected final String sha1Fingerprint; + @Nullable + protected final String commonName; + + /** + * Certificate details. + * + * @param subject Certificate subject. Must not be {@code null}. + * @param issuer Certificate issuer. Must not be {@code null}. + * @param issueDate Certificate issue date. Must not be {@code null}. + * @param expirationDate Certificate expiration date. Must not be {@code + * null}. + * @param serialNumber Certificate serial number. Must not be {@code null}. + * @param sha1Fingerprint Certificate sha1 fingerprint. Must not be {@code + * null}. + * @param commonName Certificate common name. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Certificate(@Nonnull String subject, @Nonnull String issuer, @Nonnull String issueDate, @Nonnull String expirationDate, @Nonnull String serialNumber, @Nonnull String sha1Fingerprint, @Nullable String commonName) { + if (subject == null) { + throw new IllegalArgumentException("Required value for 'subject' is null"); + } + this.subject = subject; + if (issuer == null) { + throw new IllegalArgumentException("Required value for 'issuer' is null"); + } + this.issuer = issuer; + if (issueDate == null) { + throw new IllegalArgumentException("Required value for 'issueDate' is null"); + } + this.issueDate = issueDate; + if (expirationDate == null) { + throw new IllegalArgumentException("Required value for 'expirationDate' is null"); + } + this.expirationDate = expirationDate; + if (serialNumber == null) { + throw new IllegalArgumentException("Required value for 'serialNumber' is null"); + } + this.serialNumber = serialNumber; + if (sha1Fingerprint == null) { + throw new IllegalArgumentException("Required value for 'sha1Fingerprint' is null"); + } + this.sha1Fingerprint = sha1Fingerprint; + this.commonName = commonName; + } + + /** + * Certificate details. + * + *

The default values for unset fields will be used.

+ * + * @param subject Certificate subject. Must not be {@code null}. + * @param issuer Certificate issuer. Must not be {@code null}. + * @param issueDate Certificate issue date. Must not be {@code null}. + * @param expirationDate Certificate expiration date. Must not be {@code + * null}. + * @param serialNumber Certificate serial number. Must not be {@code null}. + * @param sha1Fingerprint Certificate sha1 fingerprint. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Certificate(@Nonnull String subject, @Nonnull String issuer, @Nonnull String issueDate, @Nonnull String expirationDate, @Nonnull String serialNumber, @Nonnull String sha1Fingerprint) { + this(subject, issuer, issueDate, expirationDate, serialNumber, sha1Fingerprint, null); + } + + /** + * Certificate subject. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSubject() { + return subject; + } + + /** + * Certificate issuer. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getIssuer() { + return issuer; + } + + /** + * Certificate issue date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getIssueDate() { + return issueDate; + } + + /** + * Certificate expiration date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExpirationDate() { + return expirationDate; + } + + /** + * Certificate serial number. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSerialNumber() { + return serialNumber; + } + + /** + * Certificate sha1 fingerprint. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSha1Fingerprint() { + return sha1Fingerprint; + } + + /** + * Certificate common name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommonName() { + return commonName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.subject, + this.issuer, + this.issueDate, + this.expirationDate, + this.serialNumber, + this.sha1Fingerprint, + this.commonName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Certificate other = (Certificate) obj; + return ((this.subject == other.subject) || (this.subject.equals(other.subject))) + && ((this.issuer == other.issuer) || (this.issuer.equals(other.issuer))) + && ((this.issueDate == other.issueDate) || (this.issueDate.equals(other.issueDate))) + && ((this.expirationDate == other.expirationDate) || (this.expirationDate.equals(other.expirationDate))) + && ((this.serialNumber == other.serialNumber) || (this.serialNumber.equals(other.serialNumber))) + && ((this.sha1Fingerprint == other.sha1Fingerprint) || (this.sha1Fingerprint.equals(other.sha1Fingerprint))) + && ((this.commonName == other.commonName) || (this.commonName != null && this.commonName.equals(other.commonName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Certificate value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("subject"); + StoneSerializers.string().serialize(value.subject, g); + g.writeFieldName("issuer"); + StoneSerializers.string().serialize(value.issuer, g); + g.writeFieldName("issue_date"); + StoneSerializers.string().serialize(value.issueDate, g); + g.writeFieldName("expiration_date"); + StoneSerializers.string().serialize(value.expirationDate, g); + g.writeFieldName("serial_number"); + StoneSerializers.string().serialize(value.serialNumber, g); + g.writeFieldName("sha1_fingerprint"); + StoneSerializers.string().serialize(value.sha1Fingerprint, g); + if (value.commonName != null) { + g.writeFieldName("common_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commonName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Certificate deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Certificate value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_subject = null; + String f_issuer = null; + String f_issueDate = null; + String f_expirationDate = null; + String f_serialNumber = null; + String f_sha1Fingerprint = null; + String f_commonName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("subject".equals(field)) { + f_subject = StoneSerializers.string().deserialize(p); + } + else if ("issuer".equals(field)) { + f_issuer = StoneSerializers.string().deserialize(p); + } + else if ("issue_date".equals(field)) { + f_issueDate = StoneSerializers.string().deserialize(p); + } + else if ("expiration_date".equals(field)) { + f_expirationDate = StoneSerializers.string().deserialize(p); + } + else if ("serial_number".equals(field)) { + f_serialNumber = StoneSerializers.string().deserialize(p); + } + else if ("sha1_fingerprint".equals(field)) { + f_sha1Fingerprint = StoneSerializers.string().deserialize(p); + } + else if ("common_name".equals(field)) { + f_commonName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_subject == null) { + throw new JsonParseException(p, "Required field \"subject\" missing."); + } + if (f_issuer == null) { + throw new JsonParseException(p, "Required field \"issuer\" missing."); + } + if (f_issueDate == null) { + throw new JsonParseException(p, "Required field \"issue_date\" missing."); + } + if (f_expirationDate == null) { + throw new JsonParseException(p, "Required field \"expiration_date\" missing."); + } + if (f_serialNumber == null) { + throw new JsonParseException(p, "Required field \"serial_number\" missing."); + } + if (f_sha1Fingerprint == null) { + throw new JsonParseException(p, "Required field \"sha1_fingerprint\" missing."); + } + value = new Certificate(f_subject, f_issuer, f_issueDate, f_expirationDate, f_serialNumber, f_sha1Fingerprint, f_commonName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy.java new file mode 100644 index 000000000..94e511aba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangeLinkExpirationPolicy.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether the team's default expiration days policy must be + * enforced when an externally shared link is updated + */ +public enum ChangeLinkExpirationPolicy { + // union team_log.ChangeLinkExpirationPolicy (team_log_generated.stone) + ALLOWED, + NOT_ALLOWED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ChangeLinkExpirationPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALLOWED: { + g.writeString("allowed"); + break; + } + case NOT_ALLOWED: { + g.writeString("not_allowed"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ChangeLinkExpirationPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ChangeLinkExpirationPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("allowed".equals(tag)) { + value = ChangeLinkExpirationPolicy.ALLOWED; + } + else if ("not_allowed".equals(tag)) { + value = ChangeLinkExpirationPolicy.NOT_ALLOWED; + } + else { + value = ChangeLinkExpirationPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleDetails.java new file mode 100644 index 000000000..53238db82 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleDetails.java @@ -0,0 +1,211 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed enterprise admin role. + */ +public class ChangedEnterpriseAdminRoleDetails { + // struct team_log.ChangedEnterpriseAdminRoleDetails (team_log_generated.stone) + + @Nonnull + protected final FedAdminRole previousValue; + @Nonnull + protected final FedAdminRole newValue; + @Nonnull + protected final String teamName; + + /** + * Changed enterprise admin role. + * + * @param previousValue The member&#x2019s previous enterprise admin + * role. Must not be {@code null}. + * @param newValue The member&#x2019s new enterprise admin role. Must + * not be {@code null}. + * @param teamName The name of the member&#x2019s team. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ChangedEnterpriseAdminRoleDetails(@Nonnull FedAdminRole previousValue, @Nonnull FedAdminRole newValue, @Nonnull String teamName) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (teamName == null) { + throw new IllegalArgumentException("Required value for 'teamName' is null"); + } + this.teamName = teamName; + } + + /** + * The member&#x2019s previous enterprise admin role. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FedAdminRole getPreviousValue() { + return previousValue; + } + + /** + * The member&#x2019s new enterprise admin role. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FedAdminRole getNewValue() { + return newValue; + } + + /** + * The name of the member&#x2019s team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamName() { + return teamName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue, + this.teamName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ChangedEnterpriseAdminRoleDetails other = (ChangedEnterpriseAdminRoleDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.teamName == other.teamName) || (this.teamName.equals(other.teamName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ChangedEnterpriseAdminRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + FedAdminRole.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + FedAdminRole.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("team_name"); + StoneSerializers.string().serialize(value.teamName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ChangedEnterpriseAdminRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ChangedEnterpriseAdminRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FedAdminRole f_previousValue = null; + FedAdminRole f_newValue = null; + String f_teamName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = FedAdminRole.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = FedAdminRole.Serializer.INSTANCE.deserialize(p); + } + else if ("team_name".equals(field)) { + f_teamName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_teamName == null) { + throw new JsonParseException(p, "Required field \"team_name\" missing."); + } + value = new ChangedEnterpriseAdminRoleDetails(f_previousValue, f_newValue, f_teamName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleType.java new file mode 100644 index 000000000..307e103d9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseAdminRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ChangedEnterpriseAdminRoleType { + // struct team_log.ChangedEnterpriseAdminRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ChangedEnterpriseAdminRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ChangedEnterpriseAdminRoleType other = (ChangedEnterpriseAdminRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ChangedEnterpriseAdminRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ChangedEnterpriseAdminRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ChangedEnterpriseAdminRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ChangedEnterpriseAdminRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusDetails.java new file mode 100644 index 000000000..a345d883b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusDetails.java @@ -0,0 +1,238 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed enterprise-connected team status. + */ +public class ChangedEnterpriseConnectedTeamStatusDetails { + // struct team_log.ChangedEnterpriseConnectedTeamStatusDetails (team_log_generated.stone) + + @Nonnull + protected final FedHandshakeAction action; + @Nonnull + protected final FederationStatusChangeAdditionalInfo additionalInfo; + @Nonnull + protected final TrustedTeamsRequestState previousValue; + @Nonnull + protected final TrustedTeamsRequestState newValue; + + /** + * Changed enterprise-connected team status. + * + * @param action The preformed change in the team&#x2019s connection + * status. Must not be {@code null}. + * @param additionalInfo Additional information about the organization or + * team. Must not be {@code null}. + * @param previousValue Previous request state. Must not be {@code null}. + * @param newValue New request state. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ChangedEnterpriseConnectedTeamStatusDetails(@Nonnull FedHandshakeAction action, @Nonnull FederationStatusChangeAdditionalInfo additionalInfo, @Nonnull TrustedTeamsRequestState previousValue, @Nonnull TrustedTeamsRequestState newValue) { + if (action == null) { + throw new IllegalArgumentException("Required value for 'action' is null"); + } + this.action = action; + if (additionalInfo == null) { + throw new IllegalArgumentException("Required value for 'additionalInfo' is null"); + } + this.additionalInfo = additionalInfo; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * The preformed change in the team&#x2019s connection status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FedHandshakeAction getAction() { + return action; + } + + /** + * Additional information about the organization or team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FederationStatusChangeAdditionalInfo getAdditionalInfo() { + return additionalInfo; + } + + /** + * Previous request state. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TrustedTeamsRequestState getPreviousValue() { + return previousValue; + } + + /** + * New request state. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TrustedTeamsRequestState getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.action, + this.additionalInfo, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ChangedEnterpriseConnectedTeamStatusDetails other = (ChangedEnterpriseConnectedTeamStatusDetails) obj; + return ((this.action == other.action) || (this.action.equals(other.action))) + && ((this.additionalInfo == other.additionalInfo) || (this.additionalInfo.equals(other.additionalInfo))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ChangedEnterpriseConnectedTeamStatusDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("action"); + FedHandshakeAction.Serializer.INSTANCE.serialize(value.action, g); + g.writeFieldName("additional_info"); + FederationStatusChangeAdditionalInfo.Serializer.INSTANCE.serialize(value.additionalInfo, g); + g.writeFieldName("previous_value"); + TrustedTeamsRequestState.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + TrustedTeamsRequestState.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ChangedEnterpriseConnectedTeamStatusDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ChangedEnterpriseConnectedTeamStatusDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FedHandshakeAction f_action = null; + FederationStatusChangeAdditionalInfo f_additionalInfo = null; + TrustedTeamsRequestState f_previousValue = null; + TrustedTeamsRequestState f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("action".equals(field)) { + f_action = FedHandshakeAction.Serializer.INSTANCE.deserialize(p); + } + else if ("additional_info".equals(field)) { + f_additionalInfo = FederationStatusChangeAdditionalInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = TrustedTeamsRequestState.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = TrustedTeamsRequestState.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_action == null) { + throw new JsonParseException(p, "Required field \"action\" missing."); + } + if (f_additionalInfo == null) { + throw new JsonParseException(p, "Required field \"additional_info\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new ChangedEnterpriseConnectedTeamStatusDetails(f_action, f_additionalInfo, f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusType.java new file mode 100644 index 000000000..c09ea091e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ChangedEnterpriseConnectedTeamStatusType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ChangedEnterpriseConnectedTeamStatusType { + // struct team_log.ChangedEnterpriseConnectedTeamStatusType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ChangedEnterpriseConnectedTeamStatusType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ChangedEnterpriseConnectedTeamStatusType other = (ChangedEnterpriseConnectedTeamStatusType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ChangedEnterpriseConnectedTeamStatusType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ChangedEnterpriseConnectedTeamStatusType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ChangedEnterpriseConnectedTeamStatusType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ChangedEnterpriseConnectedTeamStatusType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationChangePolicyDetails.java new file mode 100644 index 000000000..4d9281611 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationChangePolicyDetails.java @@ -0,0 +1,209 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed classification policy for team. + */ +public class ClassificationChangePolicyDetails { + // struct team_log.ClassificationChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ClassificationPolicyEnumWrapper previousValue; + @Nonnull + protected final ClassificationPolicyEnumWrapper newValue; + @Nonnull + protected final ClassificationType classificationType; + + /** + * Changed classification policy for team. + * + * @param previousValue Previous classification policy. Must not be {@code + * null}. + * @param newValue New classification policy. Must not be {@code null}. + * @param classificationType Policy type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ClassificationChangePolicyDetails(@Nonnull ClassificationPolicyEnumWrapper previousValue, @Nonnull ClassificationPolicyEnumWrapper newValue, @Nonnull ClassificationType classificationType) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (classificationType == null) { + throw new IllegalArgumentException("Required value for 'classificationType' is null"); + } + this.classificationType = classificationType; + } + + /** + * Previous classification policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ClassificationPolicyEnumWrapper getPreviousValue() { + return previousValue; + } + + /** + * New classification policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ClassificationPolicyEnumWrapper getNewValue() { + return newValue; + } + + /** + * Policy type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ClassificationType getClassificationType() { + return classificationType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue, + this.classificationType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ClassificationChangePolicyDetails other = (ClassificationChangePolicyDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.classificationType == other.classificationType) || (this.classificationType.equals(other.classificationType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + ClassificationPolicyEnumWrapper.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + ClassificationPolicyEnumWrapper.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("classification_type"); + ClassificationType.Serializer.INSTANCE.serialize(value.classificationType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ClassificationChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ClassificationChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ClassificationPolicyEnumWrapper f_previousValue = null; + ClassificationPolicyEnumWrapper f_newValue = null; + ClassificationType f_classificationType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = ClassificationPolicyEnumWrapper.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = ClassificationPolicyEnumWrapper.Serializer.INSTANCE.deserialize(p); + } + else if ("classification_type".equals(field)) { + f_classificationType = ClassificationType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_classificationType == null) { + throw new JsonParseException(p, "Required field \"classification_type\" missing."); + } + value = new ClassificationChangePolicyDetails(f_previousValue, f_newValue, f_classificationType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationChangePolicyType.java new file mode 100644 index 000000000..239a12b40 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ClassificationChangePolicyType { + // struct team_log.ClassificationChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ClassificationChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ClassificationChangePolicyType other = (ClassificationChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ClassificationChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ClassificationChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ClassificationChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportDetails.java new file mode 100644 index 000000000..6dd23839c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created Classification report. + */ +public class ClassificationCreateReportDetails { + // struct team_log.ClassificationCreateReportDetails (team_log_generated.stone) + + + /** + * Created Classification report. + */ + public ClassificationCreateReportDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ClassificationCreateReportDetails other = (ClassificationCreateReportDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ClassificationCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ClassificationCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ClassificationCreateReportDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportFailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportFailDetails.java new file mode 100644 index 000000000..1040e8f5d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportFailDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't create Classification report. + */ +public class ClassificationCreateReportFailDetails { + // struct team_log.ClassificationCreateReportFailDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't create Classification report. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ClassificationCreateReportFailDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ClassificationCreateReportFailDetails other = (ClassificationCreateReportFailDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationCreateReportFailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ClassificationCreateReportFailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ClassificationCreateReportFailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new ClassificationCreateReportFailDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportFailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportFailType.java new file mode 100644 index 000000000..f49a412a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportFailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ClassificationCreateReportFailType { + // struct team_log.ClassificationCreateReportFailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ClassificationCreateReportFailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ClassificationCreateReportFailType other = (ClassificationCreateReportFailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationCreateReportFailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ClassificationCreateReportFailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ClassificationCreateReportFailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ClassificationCreateReportFailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportType.java new file mode 100644 index 000000000..66516546a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ClassificationCreateReportType { + // struct team_log.ClassificationCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ClassificationCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ClassificationCreateReportType other = (ClassificationCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ClassificationCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ClassificationCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ClassificationCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper.java new file mode 100644 index 000000000..064dad5af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationPolicyEnumWrapper.java @@ -0,0 +1,108 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling team access to the classification feature + */ +public enum ClassificationPolicyEnumWrapper { + // union team_log.ClassificationPolicyEnumWrapper (team_log_generated.stone) + DISABLED, + ENABLED, + MEMBER_AND_TEAM_FOLDERS, + TEAM_FOLDERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationPolicyEnumWrapper value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + case MEMBER_AND_TEAM_FOLDERS: { + g.writeString("member_and_team_folders"); + break; + } + case TEAM_FOLDERS: { + g.writeString("team_folders"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ClassificationPolicyEnumWrapper deserialize(JsonParser p) throws IOException, JsonParseException { + ClassificationPolicyEnumWrapper value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = ClassificationPolicyEnumWrapper.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ClassificationPolicyEnumWrapper.ENABLED; + } + else if ("member_and_team_folders".equals(tag)) { + value = ClassificationPolicyEnumWrapper.MEMBER_AND_TEAM_FOLDERS; + } + else if ("team_folders".equals(tag)) { + value = ClassificationPolicyEnumWrapper.TEAM_FOLDERS; + } + else { + value = ClassificationPolicyEnumWrapper.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationType.java new file mode 100644 index 000000000..8c1eefb95 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ClassificationType.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The type of classification (currently only personal information) + */ +public enum ClassificationType { + // union team_log.ClassificationType (team_log_generated.stone) + PERSONAL_INFORMATION, + PII, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ClassificationType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PERSONAL_INFORMATION: { + g.writeString("personal_information"); + break; + } + case PII: { + g.writeString("pii"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ClassificationType deserialize(JsonParser p) throws IOException, JsonParseException { + ClassificationType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("personal_information".equals(tag)) { + value = ClassificationType.PERSONAL_INFORMATION; + } + else if ("pii".equals(tag)) { + value = ClassificationType.PII; + } + else { + value = ClassificationType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CollectionShareDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CollectionShareDetails.java new file mode 100644 index 000000000..649c84654 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CollectionShareDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Shared album. + */ +public class CollectionShareDetails { + // struct team_log.CollectionShareDetails (team_log_generated.stone) + + @Nonnull + protected final String albumName; + + /** + * Shared album. + * + * @param albumName Album name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CollectionShareDetails(@Nonnull String albumName) { + if (albumName == null) { + throw new IllegalArgumentException("Required value for 'albumName' is null"); + } + this.albumName = albumName; + } + + /** + * Album name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAlbumName() { + return albumName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.albumName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CollectionShareDetails other = (CollectionShareDetails) obj; + return (this.albumName == other.albumName) || (this.albumName.equals(other.albumName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CollectionShareDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("album_name"); + StoneSerializers.string().serialize(value.albumName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CollectionShareDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CollectionShareDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_albumName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("album_name".equals(field)) { + f_albumName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_albumName == null) { + throw new JsonParseException(p, "Required field \"album_name\" missing."); + } + value = new CollectionShareDetails(f_albumName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CollectionShareType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CollectionShareType.java new file mode 100644 index 000000000..210525a68 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CollectionShareType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class CollectionShareType { + // struct team_log.CollectionShareType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CollectionShareType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CollectionShareType other = (CollectionShareType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CollectionShareType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CollectionShareType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CollectionShareType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new CollectionShareType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicy.java new file mode 100644 index 000000000..09c85abcf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling team access to computer backup feature + */ +public enum ComputerBackupPolicy { + // union team_log.ComputerBackupPolicy (team_log_generated.stone) + DEFAULT, + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ComputerBackupPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ComputerBackupPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ComputerBackupPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = ComputerBackupPolicy.DEFAULT; + } + else if ("disabled".equals(tag)) { + value = ComputerBackupPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ComputerBackupPolicy.ENABLED; + } + else { + value = ComputerBackupPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedDetails.java new file mode 100644 index 000000000..aaa5e4f02 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed computer backup policy for team. + */ +public class ComputerBackupPolicyChangedDetails { + // struct team_log.ComputerBackupPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final ComputerBackupPolicy newValue; + @Nonnull + protected final ComputerBackupPolicy previousValue; + + /** + * Changed computer backup policy for team. + * + * @param newValue New computer backup policy. Must not be {@code null}. + * @param previousValue Previous computer backup policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ComputerBackupPolicyChangedDetails(@Nonnull ComputerBackupPolicy newValue, @Nonnull ComputerBackupPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New computer backup policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ComputerBackupPolicy getNewValue() { + return newValue; + } + + /** + * Previous computer backup policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ComputerBackupPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ComputerBackupPolicyChangedDetails other = (ComputerBackupPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ComputerBackupPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ComputerBackupPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + ComputerBackupPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ComputerBackupPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ComputerBackupPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ComputerBackupPolicy f_newValue = null; + ComputerBackupPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ComputerBackupPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ComputerBackupPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new ComputerBackupPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedType.java new file mode 100644 index 000000000..81966293e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ComputerBackupPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ComputerBackupPolicyChangedType { + // struct team_log.ComputerBackupPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ComputerBackupPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ComputerBackupPolicyChangedType other = (ComputerBackupPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ComputerBackupPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ComputerBackupPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ComputerBackupPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ComputerBackupPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ConnectedTeamName.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ConnectedTeamName.java new file mode 100644 index 000000000..314bcfe3a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ConnectedTeamName.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * The name of the team + */ +public class ConnectedTeamName { + // struct team_log.ConnectedTeamName (team_log_generated.stone) + + @Nonnull + protected final String team; + + /** + * The name of the team + * + * @param team The name of the team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ConnectedTeamName(@Nonnull String team) { + if (team == null) { + throw new IllegalArgumentException("Required value for 'team' is null"); + } + this.team = team; + } + + /** + * The name of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeam() { + return team; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.team + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ConnectedTeamName other = (ConnectedTeamName) obj; + return (this.team == other.team) || (this.team.equals(other.team)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ConnectedTeamName value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team"); + StoneSerializers.string().serialize(value.team, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ConnectedTeamName deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ConnectedTeamName value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_team = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team".equals(field)) { + f_team = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_team == null) { + throw new JsonParseException(p, "Required field \"team\" missing."); + } + value = new ConnectedTeamName(f_team); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedDetails.java new file mode 100644 index 000000000..d2d13ebb2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed content management setting. + */ +public class ContentAdministrationPolicyChangedDetails { + // struct team_log.ContentAdministrationPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + @Nonnull + protected final String previousValue; + + /** + * Changed content management setting. + * + * @param newValue New content administration policy. Must not be {@code + * null}. + * @param previousValue Previous content administration policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ContentAdministrationPolicyChangedDetails(@Nonnull String newValue, @Nonnull String previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New content administration policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + /** + * Previous content administration policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ContentAdministrationPolicyChangedDetails other = (ContentAdministrationPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ContentAdministrationPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ContentAdministrationPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ContentAdministrationPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new ContentAdministrationPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedType.java new file mode 100644 index 000000000..b0987383f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentAdministrationPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ContentAdministrationPolicyChangedType { + // struct team_log.ContentAdministrationPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ContentAdministrationPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ContentAdministrationPolicyChangedType other = (ContentAdministrationPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ContentAdministrationPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ContentAdministrationPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ContentAdministrationPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ContentAdministrationPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy.java new file mode 100644 index 000000000..e1339b46a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContentPermanentDeletePolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for pemanent content deletion + */ +public enum ContentPermanentDeletePolicy { + // union team_log.ContentPermanentDeletePolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ContentPermanentDeletePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ContentPermanentDeletePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ContentPermanentDeletePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = ContentPermanentDeletePolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ContentPermanentDeletePolicy.ENABLED; + } + else { + value = ContentPermanentDeletePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContextLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContextLogInfo.java new file mode 100644 index 000000000..db03fadce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ContextLogInfo.java @@ -0,0 +1,601 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The primary entity on which the action was done. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ContextLogInfo { + // union team_log.ContextLogInfo (team_log_generated.stone) + + /** + * Discriminating tag type for {@link ContextLogInfo}. + */ + public enum Tag { + /** + * Anonymous context. + */ + ANONYMOUS, + /** + * Action was done on behalf of a non team member. + */ + NON_TEAM_MEMBER, // NonTeamMemberLogInfo + /** + * Action was done on behalf of a team that's part of an organization. + */ + ORGANIZATION_TEAM, // TeamLogInfo + /** + * Action was done on behalf of the team. + */ + TEAM, + /** + * Action was done on behalf of a team member. + */ + TEAM_MEMBER, // TeamMemberLogInfo + /** + * Action was done on behalf of a trusted non team member. + */ + TRUSTED_NON_TEAM_MEMBER, // TrustedNonTeamMemberLogInfo + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Anonymous context. + */ + public static final ContextLogInfo ANONYMOUS = new ContextLogInfo().withTag(Tag.ANONYMOUS); + /** + * Action was done on behalf of the team. + */ + public static final ContextLogInfo TEAM = new ContextLogInfo().withTag(Tag.TEAM); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ContextLogInfo OTHER = new ContextLogInfo().withTag(Tag.OTHER); + + private Tag _tag; + private NonTeamMemberLogInfo nonTeamMemberValue; + private TeamLogInfo organizationTeamValue; + private TeamMemberLogInfo teamMemberValue; + private TrustedNonTeamMemberLogInfo trustedNonTeamMemberValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ContextLogInfo() { + } + + + /** + * The primary entity on which the action was done. + * + * @param _tag Discriminating tag for this instance. + */ + private ContextLogInfo withTag(Tag _tag) { + ContextLogInfo result = new ContextLogInfo(); + result._tag = _tag; + return result; + } + + /** + * The primary entity on which the action was done. + * + * @param nonTeamMemberValue Action was done on behalf of a non team + * member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ContextLogInfo withTagAndNonTeamMember(Tag _tag, NonTeamMemberLogInfo nonTeamMemberValue) { + ContextLogInfo result = new ContextLogInfo(); + result._tag = _tag; + result.nonTeamMemberValue = nonTeamMemberValue; + return result; + } + + /** + * The primary entity on which the action was done. + * + * @param organizationTeamValue Action was done on behalf of a team that's + * part of an organization. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ContextLogInfo withTagAndOrganizationTeam(Tag _tag, TeamLogInfo organizationTeamValue) { + ContextLogInfo result = new ContextLogInfo(); + result._tag = _tag; + result.organizationTeamValue = organizationTeamValue; + return result; + } + + /** + * The primary entity on which the action was done. + * + * @param teamMemberValue Action was done on behalf of a team member. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ContextLogInfo withTagAndTeamMember(Tag _tag, TeamMemberLogInfo teamMemberValue) { + ContextLogInfo result = new ContextLogInfo(); + result._tag = _tag; + result.teamMemberValue = teamMemberValue; + return result; + } + + /** + * The primary entity on which the action was done. + * + * @param trustedNonTeamMemberValue Action was done on behalf of a trusted + * non team member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ContextLogInfo withTagAndTrustedNonTeamMember(Tag _tag, TrustedNonTeamMemberLogInfo trustedNonTeamMemberValue) { + ContextLogInfo result = new ContextLogInfo(); + result._tag = _tag; + result.trustedNonTeamMemberValue = trustedNonTeamMemberValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ContextLogInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ANONYMOUS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ANONYMOUS}, + * {@code false} otherwise. + */ + public boolean isAnonymous() { + return this._tag == Tag.ANONYMOUS; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NON_TEAM_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NON_TEAM_MEMBER}, {@code false} otherwise. + */ + public boolean isNonTeamMember() { + return this._tag == Tag.NON_TEAM_MEMBER; + } + + /** + * Returns an instance of {@code ContextLogInfo} that has its tag set to + * {@link Tag#NON_TEAM_MEMBER}. + * + *

Action was done on behalf of a non team member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ContextLogInfo} with its tag set to {@link + * Tag#NON_TEAM_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ContextLogInfo nonTeamMember(NonTeamMemberLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ContextLogInfo().withTagAndNonTeamMember(Tag.NON_TEAM_MEMBER, value); + } + + /** + * Action was done on behalf of a non team member. + * + *

This instance must be tagged as {@link Tag#NON_TEAM_MEMBER}.

+ * + * @return The {@link NonTeamMemberLogInfo} value associated with this + * instance if {@link #isNonTeamMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isNonTeamMember} is {@code + * false}. + */ + public NonTeamMemberLogInfo getNonTeamMemberValue() { + if (this._tag != Tag.NON_TEAM_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.NON_TEAM_MEMBER, but was Tag." + this._tag.name()); + } + return nonTeamMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ORGANIZATION_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ORGANIZATION_TEAM}, {@code false} otherwise. + */ + public boolean isOrganizationTeam() { + return this._tag == Tag.ORGANIZATION_TEAM; + } + + /** + * Returns an instance of {@code ContextLogInfo} that has its tag set to + * {@link Tag#ORGANIZATION_TEAM}. + * + *

Action was done on behalf of a team that's part of an organization. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ContextLogInfo} with its tag set to {@link + * Tag#ORGANIZATION_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ContextLogInfo organizationTeam(TeamLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ContextLogInfo().withTagAndOrganizationTeam(Tag.ORGANIZATION_TEAM, value); + } + + /** + * Action was done on behalf of a team that's part of an organization. + * + *

This instance must be tagged as {@link Tag#ORGANIZATION_TEAM}.

+ * + * @return The {@link TeamLogInfo} value associated with this instance if + * {@link #isOrganizationTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isOrganizationTeam} is {@code + * false}. + */ + public TeamLogInfo getOrganizationTeamValue() { + if (this._tag != Tag.ORGANIZATION_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.ORGANIZATION_TEAM, but was Tag." + this._tag.name()); + } + return organizationTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TEAM}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TEAM}, + * {@code false} otherwise. + */ + public boolean isTeam() { + return this._tag == Tag.TEAM; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MEMBER}, {@code false} otherwise. + */ + public boolean isTeamMember() { + return this._tag == Tag.TEAM_MEMBER; + } + + /** + * Returns an instance of {@code ContextLogInfo} that has its tag set to + * {@link Tag#TEAM_MEMBER}. + * + *

Action was done on behalf of a team member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ContextLogInfo} with its tag set to {@link + * Tag#TEAM_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ContextLogInfo teamMember(TeamMemberLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ContextLogInfo().withTagAndTeamMember(Tag.TEAM_MEMBER, value); + } + + /** + * Action was done on behalf of a team member. + * + *

This instance must be tagged as {@link Tag#TEAM_MEMBER}.

+ * + * @return The {@link TeamMemberLogInfo} value associated with this instance + * if {@link #isTeamMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMember} is {@code false}. + */ + public TeamMemberLogInfo getTeamMemberValue() { + if (this._tag != Tag.TEAM_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MEMBER, but was Tag." + this._tag.name()); + } + return teamMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TRUSTED_NON_TEAM_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TRUSTED_NON_TEAM_MEMBER}, {@code false} otherwise. + */ + public boolean isTrustedNonTeamMember() { + return this._tag == Tag.TRUSTED_NON_TEAM_MEMBER; + } + + /** + * Returns an instance of {@code ContextLogInfo} that has its tag set to + * {@link Tag#TRUSTED_NON_TEAM_MEMBER}. + * + *

Action was done on behalf of a trusted non team member.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ContextLogInfo} with its tag set to {@link + * Tag#TRUSTED_NON_TEAM_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ContextLogInfo trustedNonTeamMember(TrustedNonTeamMemberLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ContextLogInfo().withTagAndTrustedNonTeamMember(Tag.TRUSTED_NON_TEAM_MEMBER, value); + } + + /** + * Action was done on behalf of a trusted non team member. + * + *

This instance must be tagged as {@link Tag#TRUSTED_NON_TEAM_MEMBER}. + *

+ * + * @return The {@link TrustedNonTeamMemberLogInfo} value associated with + * this instance if {@link #isTrustedNonTeamMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isTrustedNonTeamMember} is + * {@code false}. + */ + public TrustedNonTeamMemberLogInfo getTrustedNonTeamMemberValue() { + if (this._tag != Tag.TRUSTED_NON_TEAM_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.TRUSTED_NON_TEAM_MEMBER, but was Tag." + this._tag.name()); + } + return trustedNonTeamMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.nonTeamMemberValue, + this.organizationTeamValue, + this.teamMemberValue, + this.trustedNonTeamMemberValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ContextLogInfo) { + ContextLogInfo other = (ContextLogInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ANONYMOUS: + return true; + case NON_TEAM_MEMBER: + return (this.nonTeamMemberValue == other.nonTeamMemberValue) || (this.nonTeamMemberValue.equals(other.nonTeamMemberValue)); + case ORGANIZATION_TEAM: + return (this.organizationTeamValue == other.organizationTeamValue) || (this.organizationTeamValue.equals(other.organizationTeamValue)); + case TEAM: + return true; + case TEAM_MEMBER: + return (this.teamMemberValue == other.teamMemberValue) || (this.teamMemberValue.equals(other.teamMemberValue)); + case TRUSTED_NON_TEAM_MEMBER: + return (this.trustedNonTeamMemberValue == other.trustedNonTeamMemberValue) || (this.trustedNonTeamMemberValue.equals(other.trustedNonTeamMemberValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ContextLogInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ANONYMOUS: { + g.writeString("anonymous"); + break; + } + case NON_TEAM_MEMBER: { + g.writeStartObject(); + writeTag("non_team_member", g); + NonTeamMemberLogInfo.Serializer.INSTANCE.serialize(value.nonTeamMemberValue, g, true); + g.writeEndObject(); + break; + } + case ORGANIZATION_TEAM: { + g.writeStartObject(); + writeTag("organization_team", g); + TeamLogInfo.Serializer.INSTANCE.serialize(value.organizationTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM: { + g.writeString("team"); + break; + } + case TEAM_MEMBER: { + g.writeStartObject(); + writeTag("team_member", g); + TeamMemberLogInfo.Serializer.INSTANCE.serialize(value.teamMemberValue, g, true); + g.writeEndObject(); + break; + } + case TRUSTED_NON_TEAM_MEMBER: { + g.writeStartObject(); + writeTag("trusted_non_team_member", g); + TrustedNonTeamMemberLogInfo.Serializer.INSTANCE.serialize(value.trustedNonTeamMemberValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ContextLogInfo deserialize(JsonParser p) throws IOException, JsonParseException { + ContextLogInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("anonymous".equals(tag)) { + value = ContextLogInfo.ANONYMOUS; + } + else if ("non_team_member".equals(tag)) { + NonTeamMemberLogInfo fieldValue = null; + fieldValue = NonTeamMemberLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = ContextLogInfo.nonTeamMember(fieldValue); + } + else if ("organization_team".equals(tag)) { + TeamLogInfo fieldValue = null; + fieldValue = TeamLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = ContextLogInfo.organizationTeam(fieldValue); + } + else if ("team".equals(tag)) { + value = ContextLogInfo.TEAM; + } + else if ("team_member".equals(tag)) { + TeamMemberLogInfo fieldValue = null; + fieldValue = TeamMemberLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = ContextLogInfo.teamMember(fieldValue); + } + else if ("trusted_non_team_member".equals(tag)) { + TrustedNonTeamMemberLogInfo fieldValue = null; + fieldValue = TrustedNonTeamMemberLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = ContextLogInfo.trustedNonTeamMember(fieldValue); + } + else { + value = ContextLogInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateFolderDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateFolderDetails.java new file mode 100644 index 000000000..f876142ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateFolderDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created folders. + */ +public class CreateFolderDetails { + // struct team_log.CreateFolderDetails (team_log_generated.stone) + + + /** + * Created folders. + */ + public CreateFolderDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFolderDetails other = (CreateFolderDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFolderDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFolderDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new CreateFolderDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateFolderType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateFolderType.java new file mode 100644 index 000000000..d9e00d280 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateFolderType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class CreateFolderType { + // struct team_log.CreateFolderType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateFolderType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateFolderType other = (CreateFolderType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateFolderType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateFolderType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateFolderType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new CreateFolderType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateTeamInviteLinkDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateTeamInviteLinkDetails.java new file mode 100644 index 000000000..3c2a5c816 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateTeamInviteLinkDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Created team invite link. + */ +public class CreateTeamInviteLinkDetails { + // struct team_log.CreateTeamInviteLinkDetails (team_log_generated.stone) + + @Nonnull + protected final String linkUrl; + @Nonnull + protected final String expiryDate; + + /** + * Created team invite link. + * + * @param linkUrl The invite link url that was created. Must not be {@code + * null}. + * @param expiryDate The expiration date of the invite link. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateTeamInviteLinkDetails(@Nonnull String linkUrl, @Nonnull String expiryDate) { + if (linkUrl == null) { + throw new IllegalArgumentException("Required value for 'linkUrl' is null"); + } + this.linkUrl = linkUrl; + if (expiryDate == null) { + throw new IllegalArgumentException("Required value for 'expiryDate' is null"); + } + this.expiryDate = expiryDate; + } + + /** + * The invite link url that was created. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLinkUrl() { + return linkUrl; + } + + /** + * The expiration date of the invite link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExpiryDate() { + return expiryDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.linkUrl, + this.expiryDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateTeamInviteLinkDetails other = (CreateTeamInviteLinkDetails) obj; + return ((this.linkUrl == other.linkUrl) || (this.linkUrl.equals(other.linkUrl))) + && ((this.expiryDate == other.expiryDate) || (this.expiryDate.equals(other.expiryDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateTeamInviteLinkDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("link_url"); + StoneSerializers.string().serialize(value.linkUrl, g); + g.writeFieldName("expiry_date"); + StoneSerializers.string().serialize(value.expiryDate, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateTeamInviteLinkDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateTeamInviteLinkDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_linkUrl = null; + String f_expiryDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("link_url".equals(field)) { + f_linkUrl = StoneSerializers.string().deserialize(p); + } + else if ("expiry_date".equals(field)) { + f_expiryDate = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_linkUrl == null) { + throw new JsonParseException(p, "Required field \"link_url\" missing."); + } + if (f_expiryDate == null) { + throw new JsonParseException(p, "Required field \"expiry_date\" missing."); + } + value = new CreateTeamInviteLinkDetails(f_linkUrl, f_expiryDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateTeamInviteLinkType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateTeamInviteLinkType.java new file mode 100644 index 000000000..77d67b3d4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/CreateTeamInviteLinkType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class CreateTeamInviteLinkType { + // struct team_log.CreateTeamInviteLinkType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public CreateTeamInviteLinkType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + CreateTeamInviteLinkType other = (CreateTeamInviteLinkType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CreateTeamInviteLinkType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public CreateTeamInviteLinkType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + CreateTeamInviteLinkType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new CreateTeamInviteLinkType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyDetails.java new file mode 100644 index 000000000..60c8313e2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Set restrictions on data center locations where team data resides. + */ +public class DataPlacementRestrictionChangePolicyDetails { + // struct team_log.DataPlacementRestrictionChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final PlacementRestriction previousValue; + @Nonnull + protected final PlacementRestriction newValue; + + /** + * Set restrictions on data center locations where team data resides. + * + * @param previousValue Previous placement restriction. Must not be {@code + * null}. + * @param newValue New placement restriction. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DataPlacementRestrictionChangePolicyDetails(@Nonnull PlacementRestriction previousValue, @Nonnull PlacementRestriction newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous placement restriction. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PlacementRestriction getPreviousValue() { + return previousValue; + } + + /** + * New placement restriction. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PlacementRestriction getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataPlacementRestrictionChangePolicyDetails other = (DataPlacementRestrictionChangePolicyDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataPlacementRestrictionChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + PlacementRestriction.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + PlacementRestriction.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataPlacementRestrictionChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataPlacementRestrictionChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PlacementRestriction f_previousValue = null; + PlacementRestriction f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = PlacementRestriction.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = PlacementRestriction.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new DataPlacementRestrictionChangePolicyDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyType.java new file mode 100644 index 000000000..cd28a20b8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DataPlacementRestrictionChangePolicyType { + // struct team_log.DataPlacementRestrictionChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DataPlacementRestrictionChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataPlacementRestrictionChangePolicyType other = (DataPlacementRestrictionChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataPlacementRestrictionChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataPlacementRestrictionChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataPlacementRestrictionChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DataPlacementRestrictionChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyDetails.java new file mode 100644 index 000000000..8000ecd66 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Completed restrictions on data center locations where team data resides. + */ +public class DataPlacementRestrictionSatisfyPolicyDetails { + // struct team_log.DataPlacementRestrictionSatisfyPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final PlacementRestriction placementRestriction; + + /** + * Completed restrictions on data center locations where team data resides. + * + * @param placementRestriction Placement restriction. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DataPlacementRestrictionSatisfyPolicyDetails(@Nonnull PlacementRestriction placementRestriction) { + if (placementRestriction == null) { + throw new IllegalArgumentException("Required value for 'placementRestriction' is null"); + } + this.placementRestriction = placementRestriction; + } + + /** + * Placement restriction. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PlacementRestriction getPlacementRestriction() { + return placementRestriction; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.placementRestriction + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataPlacementRestrictionSatisfyPolicyDetails other = (DataPlacementRestrictionSatisfyPolicyDetails) obj; + return (this.placementRestriction == other.placementRestriction) || (this.placementRestriction.equals(other.placementRestriction)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataPlacementRestrictionSatisfyPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("placement_restriction"); + PlacementRestriction.Serializer.INSTANCE.serialize(value.placementRestriction, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataPlacementRestrictionSatisfyPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataPlacementRestrictionSatisfyPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PlacementRestriction f_placementRestriction = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("placement_restriction".equals(field)) { + f_placementRestriction = PlacementRestriction.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_placementRestriction == null) { + throw new JsonParseException(p, "Required field \"placement_restriction\" missing."); + } + value = new DataPlacementRestrictionSatisfyPolicyDetails(f_placementRestriction); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyType.java new file mode 100644 index 000000000..ba05b5eea --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataPlacementRestrictionSatisfyPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DataPlacementRestrictionSatisfyPolicyType { + // struct team_log.DataPlacementRestrictionSatisfyPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DataPlacementRestrictionSatisfyPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataPlacementRestrictionSatisfyPolicyType other = (DataPlacementRestrictionSatisfyPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataPlacementRestrictionSatisfyPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataPlacementRestrictionSatisfyPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataPlacementRestrictionSatisfyPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DataPlacementRestrictionSatisfyPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulDetails.java new file mode 100644 index 000000000..93bb3ae40 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Requested data residency migration for team data. + */ +public class DataResidencyMigrationRequestSuccessfulDetails { + // struct team_log.DataResidencyMigrationRequestSuccessfulDetails (team_log_generated.stone) + + + /** + * Requested data residency migration for team data. + */ + public DataResidencyMigrationRequestSuccessfulDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataResidencyMigrationRequestSuccessfulDetails other = (DataResidencyMigrationRequestSuccessfulDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataResidencyMigrationRequestSuccessfulDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataResidencyMigrationRequestSuccessfulDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataResidencyMigrationRequestSuccessfulDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DataResidencyMigrationRequestSuccessfulDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulType.java new file mode 100644 index 000000000..65cf39b66 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestSuccessfulType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DataResidencyMigrationRequestSuccessfulType { + // struct team_log.DataResidencyMigrationRequestSuccessfulType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DataResidencyMigrationRequestSuccessfulType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataResidencyMigrationRequestSuccessfulType other = (DataResidencyMigrationRequestSuccessfulType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataResidencyMigrationRequestSuccessfulType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataResidencyMigrationRequestSuccessfulType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataResidencyMigrationRequestSuccessfulType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DataResidencyMigrationRequestSuccessfulType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulDetails.java new file mode 100644 index 000000000..5ebe66311 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Request for data residency migration for team data has failed. + */ +public class DataResidencyMigrationRequestUnsuccessfulDetails { + // struct team_log.DataResidencyMigrationRequestUnsuccessfulDetails (team_log_generated.stone) + + + /** + * Request for data residency migration for team data has failed. + */ + public DataResidencyMigrationRequestUnsuccessfulDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataResidencyMigrationRequestUnsuccessfulDetails other = (DataResidencyMigrationRequestUnsuccessfulDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataResidencyMigrationRequestUnsuccessfulDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataResidencyMigrationRequestUnsuccessfulDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataResidencyMigrationRequestUnsuccessfulDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DataResidencyMigrationRequestUnsuccessfulDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulType.java new file mode 100644 index 000000000..c0fd170ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DataResidencyMigrationRequestUnsuccessfulType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DataResidencyMigrationRequestUnsuccessfulType { + // struct team_log.DataResidencyMigrationRequestUnsuccessfulType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DataResidencyMigrationRequestUnsuccessfulType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DataResidencyMigrationRequestUnsuccessfulType other = (DataResidencyMigrationRequestUnsuccessfulType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DataResidencyMigrationRequestUnsuccessfulType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DataResidencyMigrationRequestUnsuccessfulType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DataResidencyMigrationRequestUnsuccessfulType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DataResidencyMigrationRequestUnsuccessfulType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DbxTeamTeamLogRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DbxTeamTeamLogRequests.java new file mode 100644 index 000000000..76b059c7a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DbxTeamTeamLogRequests.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone, team_log.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routes in namespace "team_log". + */ +public class DbxTeamTeamLogRequests { + // namespace team_log (team_log_generated.stone, team_log.stone) + + private final DbxRawClientV2 client; + + public DbxTeamTeamLogRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/team_log/get_events + // + + /** + * Retrieves team events. If the result's {@link + * GetTeamEventsResult#getHasMore} field is {@code true}, call {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} with the returned + * cursor to retrieve more entries. If end_time is not specified in your + * request, you may use the returned cursor to poll {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} for new events. Many + * attributes note 'may be missing due to historical data gap'. Note that + * the file_operations category and & analogous paper events are not + * available on all Dropbox Business plans. Use features/get_values + * to check for this feature. Permission : Team Auditing. + * + */ + GetTeamEventsResult getEvents(GetTeamEventsArg arg) throws GetTeamEventsErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team_log/get_events", + arg, + false, + GetTeamEventsArg.Serializer.INSTANCE, + GetTeamEventsResult.Serializer.INSTANCE, + GetTeamEventsError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetTeamEventsErrorException("2/team_log/get_events", ex.getRequestId(), ex.getUserMessage(), (GetTeamEventsError) ex.getErrorValue()); + } + } + + /** + * Retrieves team events. If the result's {@link + * GetTeamEventsResult#getHasMore} field is {@code true}, call {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} with the returned + * cursor to retrieve more entries. If end_time is not specified in your + * request, you may use the returned cursor to poll {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} for new events. + * + *

Many attributes note 'may be missing due to historical data gap'. + *

+ * + *

Note that the file_operations category and & analogous paper + * events are not available on all Dropbox Business plans. Use features/get_values + * to check for this feature.

+ * + *

Permission : Team Auditing.

+ * + *

The default values for the optional request parameters will be used. + * See {@link GetEventsBuilder} for more details.

+ */ + public GetTeamEventsResult getEvents() throws GetTeamEventsErrorException, DbxException { + GetTeamEventsArg _arg = new GetTeamEventsArg(); + return getEvents(_arg); + } + + /** + * Retrieves team events. If the result's {@link + * GetTeamEventsResult#getHasMore} field is {@code true}, call {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} with the returned + * cursor to retrieve more entries. If end_time is not specified in your + * request, you may use the returned cursor to poll {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} for new events. Many + * attributes note 'may be missing due to historical data gap'. Note that + * the file_operations category and & analogous paper events are not + * available on all Dropbox Business plans. Use features/get_values + * to check for this feature. Permission : Team Auditing. + * + * @return Request builder for configuring request parameters and completing + * the request. + */ + public GetEventsBuilder getEventsBuilder() { + GetTeamEventsArg.Builder argBuilder_ = GetTeamEventsArg.newBuilder(); + return new GetEventsBuilder(this, argBuilder_); + } + + // + // route 2/team_log/get_events/continue + // + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamLogRequests#getEvents}, use this to paginate through all + * events. Permission : Team Auditing. + * + */ + GetTeamEventsResult getEventsContinue(GetTeamEventsContinueArg arg) throws GetTeamEventsContinueErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/team_log/get_events/continue", + arg, + false, + GetTeamEventsContinueArg.Serializer.INSTANCE, + GetTeamEventsResult.Serializer.INSTANCE, + GetTeamEventsContinueError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetTeamEventsContinueErrorException("2/team_log/get_events/continue", ex.getRequestId(), ex.getUserMessage(), (GetTeamEventsContinueError) ex.getErrorValue()); + } + } + + /** + * Once a cursor has been retrieved from {@link + * DbxTeamTeamLogRequests#getEvents}, use this to paginate through all + * events. + * + *

Permission : Team Auditing.

+ * + * @param cursor Indicates from what point to get the next set of events. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTeamEventsResult getEventsContinue(String cursor) throws GetTeamEventsContinueErrorException, DbxException { + GetTeamEventsContinueArg _arg = new GetTeamEventsContinueArg(cursor); + return getEventsContinue(_arg); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy.java new file mode 100644 index 000000000..4ab03bf90 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DefaultLinkExpirationDaysPolicy.java @@ -0,0 +1,140 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for the default number of days until an externally shared link expires + */ +public enum DefaultLinkExpirationDaysPolicy { + // union team_log.DefaultLinkExpirationDaysPolicy (team_log_generated.stone) + DAY_1, + DAY_180, + DAY_3, + DAY_30, + DAY_7, + DAY_90, + NONE, + YEAR_1, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DefaultLinkExpirationDaysPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DAY_1: { + g.writeString("day_1"); + break; + } + case DAY_180: { + g.writeString("day_180"); + break; + } + case DAY_3: { + g.writeString("day_3"); + break; + } + case DAY_30: { + g.writeString("day_30"); + break; + } + case DAY_7: { + g.writeString("day_7"); + break; + } + case DAY_90: { + g.writeString("day_90"); + break; + } + case NONE: { + g.writeString("none"); + break; + } + case YEAR_1: { + g.writeString("year_1"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DefaultLinkExpirationDaysPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + DefaultLinkExpirationDaysPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("day_1".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.DAY_1; + } + else if ("day_180".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.DAY_180; + } + else if ("day_3".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.DAY_3; + } + else if ("day_30".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.DAY_30; + } + else if ("day_7".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.DAY_7; + } + else if ("day_90".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.DAY_90; + } + else if ("none".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.NONE; + } + else if ("year_1".equals(tag)) { + value = DefaultLinkExpirationDaysPolicy.YEAR_1; + } + else { + value = DefaultLinkExpirationDaysPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkDetails.java new file mode 100644 index 000000000..f9ae80349 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Deleted team invite link. + */ +public class DeleteTeamInviteLinkDetails { + // struct team_log.DeleteTeamInviteLinkDetails (team_log_generated.stone) + + @Nonnull + protected final String linkUrl; + + /** + * Deleted team invite link. + * + * @param linkUrl The invite link url that was deleted. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteTeamInviteLinkDetails(@Nonnull String linkUrl) { + if (linkUrl == null) { + throw new IllegalArgumentException("Required value for 'linkUrl' is null"); + } + this.linkUrl = linkUrl; + } + + /** + * The invite link url that was deleted. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLinkUrl() { + return linkUrl; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.linkUrl + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteTeamInviteLinkDetails other = (DeleteTeamInviteLinkDetails) obj; + return (this.linkUrl == other.linkUrl) || (this.linkUrl.equals(other.linkUrl)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteTeamInviteLinkDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("link_url"); + StoneSerializers.string().serialize(value.linkUrl, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteTeamInviteLinkDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteTeamInviteLinkDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_linkUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("link_url".equals(field)) { + f_linkUrl = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_linkUrl == null) { + throw new JsonParseException(p, "Required field \"link_url\" missing."); + } + value = new DeleteTeamInviteLinkDetails(f_linkUrl); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkType.java new file mode 100644 index 000000000..b9f62d5ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeleteTeamInviteLinkType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeleteTeamInviteLinkType { + // struct team_log.DeleteTeamInviteLinkType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeleteTeamInviteLinkType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeleteTeamInviteLinkType other = (DeleteTeamInviteLinkType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeleteTeamInviteLinkType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeleteTeamInviteLinkType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeleteTeamInviteLinkType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeleteTeamInviteLinkType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo.java new file mode 100644 index 000000000..fb109adaf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DesktopDeviceSessionLogInfo.java @@ -0,0 +1,498 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.team.DesktopPlatform; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about linked Dropbox desktop client sessions + */ +public class DesktopDeviceSessionLogInfo extends DeviceSessionLogInfo { + // struct team_log.DesktopDeviceSessionLogInfo (team_log_generated.stone) + + @Nullable + protected final DesktopSessionLogInfo sessionInfo; + @Nonnull + protected final String hostName; + @Nonnull + protected final DesktopPlatform clientType; + @Nullable + protected final String clientVersion; + @Nonnull + protected final String platform; + protected final boolean isDeleteOnUnlinkSupported; + + /** + * Information about linked Dropbox desktop client sessions + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param hostName Name of the hosting desktop. Must not be {@code null}. + * @param clientType The Dropbox desktop client type. Must not be {@code + * null}. + * @param platform Information on the hosting platform. Must not be {@code + * null}. + * @param isDeleteOnUnlinkSupported Whether itu2019s possible to delete all + * of the account files upon unlinking. + * @param ipAddress The IP address of the last activity from this session. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * @param sessionInfo Desktop session unique id. + * @param clientVersion The Dropbox client version. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DesktopDeviceSessionLogInfo(@Nonnull String hostName, @Nonnull DesktopPlatform clientType, @Nonnull String platform, boolean isDeleteOnUnlinkSupported, @Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable DesktopSessionLogInfo sessionInfo, @Nullable String clientVersion) { + super(ipAddress, created, updated); + this.sessionInfo = sessionInfo; + if (hostName == null) { + throw new IllegalArgumentException("Required value for 'hostName' is null"); + } + this.hostName = hostName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + this.clientVersion = clientVersion; + if (platform == null) { + throw new IllegalArgumentException("Required value for 'platform' is null"); + } + this.platform = platform; + this.isDeleteOnUnlinkSupported = isDeleteOnUnlinkSupported; + } + + /** + * Information about linked Dropbox desktop client sessions + * + *

The default values for unset fields will be used.

+ * + * @param hostName Name of the hosting desktop. Must not be {@code null}. + * @param clientType The Dropbox desktop client type. Must not be {@code + * null}. + * @param platform Information on the hosting platform. Must not be {@code + * null}. + * @param isDeleteOnUnlinkSupported Whether itu2019s possible to delete all + * of the account files upon unlinking. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DesktopDeviceSessionLogInfo(@Nonnull String hostName, @Nonnull DesktopPlatform clientType, @Nonnull String platform, boolean isDeleteOnUnlinkSupported) { + this(hostName, clientType, platform, isDeleteOnUnlinkSupported, null, null, null, null, null); + } + + /** + * Name of the hosting desktop. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getHostName() { + return hostName; + } + + /** + * The Dropbox desktop client type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DesktopPlatform getClientType() { + return clientType; + } + + /** + * Information on the hosting platform. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPlatform() { + return platform; + } + + /** + * Whether itu2019s possible to delete all of the account files upon + * unlinking. + * + * @return value for this field. + */ + public boolean getIsDeleteOnUnlinkSupported() { + return isDeleteOnUnlinkSupported; + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * Desktop session unique id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DesktopSessionLogInfo getSessionInfo() { + return sessionInfo; + } + + /** + * The Dropbox client version. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getClientVersion() { + return clientVersion; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param hostName Name of the hosting desktop. Must not be {@code null}. + * @param clientType The Dropbox desktop client type. Must not be {@code + * null}. + * @param platform Information on the hosting platform. Must not be {@code + * null}. + * @param isDeleteOnUnlinkSupported Whether itu2019s possible to delete all + * of the account files upon unlinking. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported) { + return new Builder(hostName, clientType, platform, isDeleteOnUnlinkSupported); + } + + /** + * Builder for {@link DesktopDeviceSessionLogInfo}. + */ + public static class Builder extends DeviceSessionLogInfo.Builder { + protected final String hostName; + protected final DesktopPlatform clientType; + protected final String platform; + protected final boolean isDeleteOnUnlinkSupported; + + protected DesktopSessionLogInfo sessionInfo; + protected String clientVersion; + + protected Builder(String hostName, DesktopPlatform clientType, String platform, boolean isDeleteOnUnlinkSupported) { + if (hostName == null) { + throw new IllegalArgumentException("Required value for 'hostName' is null"); + } + this.hostName = hostName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + if (platform == null) { + throw new IllegalArgumentException("Required value for 'platform' is null"); + } + this.platform = platform; + this.isDeleteOnUnlinkSupported = isDeleteOnUnlinkSupported; + this.sessionInfo = null; + this.clientVersion = null; + } + + /** + * Set value for optional field. + * + * @param sessionInfo Desktop session unique id. + * + * @return this builder + */ + public Builder withSessionInfo(DesktopSessionLogInfo sessionInfo) { + this.sessionInfo = sessionInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param clientVersion The Dropbox client version. + * + * @return this builder + */ + public Builder withClientVersion(String clientVersion) { + this.clientVersion = clientVersion; + return this; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + super.withIpAddress(ipAddress); + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + super.withCreated(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + super.withUpdated(updated); + return this; + } + + /** + * Builds an instance of {@link DesktopDeviceSessionLogInfo} configured + * with this builder's values + * + * @return new instance of {@link DesktopDeviceSessionLogInfo} + */ + public DesktopDeviceSessionLogInfo build() { + return new DesktopDeviceSessionLogInfo(hostName, clientType, platform, isDeleteOnUnlinkSupported, ipAddress, created, updated, sessionInfo, clientVersion); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionInfo, + this.hostName, + this.clientType, + this.clientVersion, + this.platform, + this.isDeleteOnUnlinkSupported + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DesktopDeviceSessionLogInfo other = (DesktopDeviceSessionLogInfo) obj; + return ((this.hostName == other.hostName) || (this.hostName.equals(other.hostName))) + && ((this.clientType == other.clientType) || (this.clientType.equals(other.clientType))) + && ((this.platform == other.platform) || (this.platform.equals(other.platform))) + && (this.isDeleteOnUnlinkSupported == other.isDeleteOnUnlinkSupported) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + && ((this.sessionInfo == other.sessionInfo) || (this.sessionInfo != null && this.sessionInfo.equals(other.sessionInfo))) + && ((this.clientVersion == other.clientVersion) || (this.clientVersion != null && this.clientVersion.equals(other.clientVersion))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DesktopDeviceSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("desktop_device_session", g); + g.writeFieldName("host_name"); + StoneSerializers.string().serialize(value.hostName, g); + g.writeFieldName("client_type"); + DesktopPlatform.Serializer.INSTANCE.serialize(value.clientType, g); + g.writeFieldName("platform"); + StoneSerializers.string().serialize(value.platform, g); + g.writeFieldName("is_delete_on_unlink_supported"); + StoneSerializers.boolean_().serialize(value.isDeleteOnUnlinkSupported, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (value.sessionInfo != null) { + g.writeFieldName("session_info"); + StoneSerializers.nullableStruct(DesktopSessionLogInfo.Serializer.INSTANCE).serialize(value.sessionInfo, g); + } + if (value.clientVersion != null) { + g.writeFieldName("client_version"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.clientVersion, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DesktopDeviceSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DesktopDeviceSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("desktop_device_session".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_hostName = null; + DesktopPlatform f_clientType = null; + String f_platform = null; + Boolean f_isDeleteOnUnlinkSupported = null; + String f_ipAddress = null; + Date f_created = null; + Date f_updated = null; + DesktopSessionLogInfo f_sessionInfo = null; + String f_clientVersion = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("host_name".equals(field)) { + f_hostName = StoneSerializers.string().deserialize(p); + } + else if ("client_type".equals(field)) { + f_clientType = DesktopPlatform.Serializer.INSTANCE.deserialize(p); + } + else if ("platform".equals(field)) { + f_platform = StoneSerializers.string().deserialize(p); + } + else if ("is_delete_on_unlink_supported".equals(field)) { + f_isDeleteOnUnlinkSupported = StoneSerializers.boolean_().deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("session_info".equals(field)) { + f_sessionInfo = StoneSerializers.nullableStruct(DesktopSessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("client_version".equals(field)) { + f_clientVersion = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_hostName == null) { + throw new JsonParseException(p, "Required field \"host_name\" missing."); + } + if (f_clientType == null) { + throw new JsonParseException(p, "Required field \"client_type\" missing."); + } + if (f_platform == null) { + throw new JsonParseException(p, "Required field \"platform\" missing."); + } + if (f_isDeleteOnUnlinkSupported == null) { + throw new JsonParseException(p, "Required field \"is_delete_on_unlink_supported\" missing."); + } + value = new DesktopDeviceSessionLogInfo(f_hostName, f_clientType, f_platform, f_isDeleteOnUnlinkSupported, f_ipAddress, f_created, f_updated, f_sessionInfo, f_clientVersion); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DesktopSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DesktopSessionLogInfo.java new file mode 100644 index 000000000..7451950c7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DesktopSessionLogInfo.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Desktop session. + */ +public class DesktopSessionLogInfo extends SessionLogInfo { + // struct team_log.DesktopSessionLogInfo (team_log_generated.stone) + + + /** + * Desktop session. + * + * @param sessionId Session ID. + */ + public DesktopSessionLogInfo(@Nullable String sessionId) { + super(sessionId); + } + + /** + * Desktop session. + * + *

The default values for unset fields will be used.

+ */ + public DesktopSessionLogInfo() { + this(null); + } + + /** + * Session ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSessionId() { + return sessionId; + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DesktopSessionLogInfo other = (DesktopSessionLogInfo) obj; + return (this.sessionId == other.sessionId) || (this.sessionId != null && this.sessionId.equals(other.sessionId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DesktopSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("desktop", g); + if (value.sessionId != null) { + g.writeFieldName("session_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sessionId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DesktopSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DesktopSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("desktop".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_sessionId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DesktopSessionLogInfo(f_sessionId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionDetails.java new file mode 100644 index 000000000..1adb73f08 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added members to device approvals exception list. + */ +public class DeviceApprovalsAddExceptionDetails { + // struct team_log.DeviceApprovalsAddExceptionDetails (team_log_generated.stone) + + + /** + * Added members to device approvals exception list. + */ + public DeviceApprovalsAddExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsAddExceptionDetails other = (DeviceApprovalsAddExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsAddExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsAddExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsAddExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DeviceApprovalsAddExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionType.java new file mode 100644 index 000000000..3eecde390 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsAddExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceApprovalsAddExceptionType { + // struct team_log.DeviceApprovalsAddExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceApprovalsAddExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsAddExceptionType other = (DeviceApprovalsAddExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsAddExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsAddExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsAddExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceApprovalsAddExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails.java new file mode 100644 index 000000000..607abd1a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyDetails.java @@ -0,0 +1,250 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Set/removed limit on number of computers member can link to team Dropbox + * account. + */ +public class DeviceApprovalsChangeDesktopPolicyDetails { + // struct team_log.DeviceApprovalsChangeDesktopPolicyDetails (team_log_generated.stone) + + @Nullable + protected final DeviceApprovalsPolicy newValue; + @Nullable + protected final DeviceApprovalsPolicy previousValue; + + /** + * Set/removed limit on number of computers member can link to team Dropbox + * account. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New desktop device approvals policy. Might be missing + * due to historical data gap. + * @param previousValue Previous desktop device approvals policy. Might be + * missing due to historical data gap. + */ + public DeviceApprovalsChangeDesktopPolicyDetails(@Nullable DeviceApprovalsPolicy newValue, @Nullable DeviceApprovalsPolicy previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Set/removed limit on number of computers member can link to team Dropbox + * account. + * + *

The default values for unset fields will be used.

+ */ + public DeviceApprovalsChangeDesktopPolicyDetails() { + this(null, null); + } + + /** + * New desktop device approvals policy. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceApprovalsPolicy getNewValue() { + return newValue; + } + + /** + * Previous desktop device approvals policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceApprovalsPolicy getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link DeviceApprovalsChangeDesktopPolicyDetails}. + */ + public static class Builder { + + protected DeviceApprovalsPolicy newValue; + protected DeviceApprovalsPolicy previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New desktop device approvals policy. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withNewValue(DeviceApprovalsPolicy newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous desktop device approvals policy. Might + * be missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(DeviceApprovalsPolicy previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link + * DeviceApprovalsChangeDesktopPolicyDetails} configured with this + * builder's values + * + * @return new instance of {@link + * DeviceApprovalsChangeDesktopPolicyDetails} + */ + public DeviceApprovalsChangeDesktopPolicyDetails build() { + return new DeviceApprovalsChangeDesktopPolicyDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeDesktopPolicyDetails other = (DeviceApprovalsChangeDesktopPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeDesktopPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeDesktopPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeDesktopPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DeviceApprovalsPolicy f_newValue = null; + DeviceApprovalsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceApprovalsChangeDesktopPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyType.java new file mode 100644 index 000000000..40705161c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeDesktopPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceApprovalsChangeDesktopPolicyType { + // struct team_log.DeviceApprovalsChangeDesktopPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceApprovalsChangeDesktopPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeDesktopPolicyType other = (DeviceApprovalsChangeDesktopPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeDesktopPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeDesktopPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeDesktopPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceApprovalsChangeDesktopPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails.java new file mode 100644 index 000000000..da9545445 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyDetails.java @@ -0,0 +1,250 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Set/removed limit on number of mobile devices member can link to team Dropbox + * account. + */ +public class DeviceApprovalsChangeMobilePolicyDetails { + // struct team_log.DeviceApprovalsChangeMobilePolicyDetails (team_log_generated.stone) + + @Nullable + protected final DeviceApprovalsPolicy newValue; + @Nullable + protected final DeviceApprovalsPolicy previousValue; + + /** + * Set/removed limit on number of mobile devices member can link to team + * Dropbox account. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New mobile device approvals policy. Might be missing due + * to historical data gap. + * @param previousValue Previous mobile device approvals policy. Might be + * missing due to historical data gap. + */ + public DeviceApprovalsChangeMobilePolicyDetails(@Nullable DeviceApprovalsPolicy newValue, @Nullable DeviceApprovalsPolicy previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Set/removed limit on number of mobile devices member can link to team + * Dropbox account. + * + *

The default values for unset fields will be used.

+ */ + public DeviceApprovalsChangeMobilePolicyDetails() { + this(null, null); + } + + /** + * New mobile device approvals policy. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceApprovalsPolicy getNewValue() { + return newValue; + } + + /** + * Previous mobile device approvals policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceApprovalsPolicy getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link DeviceApprovalsChangeMobilePolicyDetails}. + */ + public static class Builder { + + protected DeviceApprovalsPolicy newValue; + protected DeviceApprovalsPolicy previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New mobile device approvals policy. Might be missing + * due to historical data gap. + * + * @return this builder + */ + public Builder withNewValue(DeviceApprovalsPolicy newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous mobile device approvals policy. Might + * be missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(DeviceApprovalsPolicy previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link + * DeviceApprovalsChangeMobilePolicyDetails} configured with this + * builder's values + * + * @return new instance of {@link + * DeviceApprovalsChangeMobilePolicyDetails} + */ + public DeviceApprovalsChangeMobilePolicyDetails build() { + return new DeviceApprovalsChangeMobilePolicyDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeMobilePolicyDetails other = (DeviceApprovalsChangeMobilePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeMobilePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeMobilePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeMobilePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DeviceApprovalsPolicy f_newValue = null; + DeviceApprovalsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(DeviceApprovalsPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceApprovalsChangeMobilePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyType.java new file mode 100644 index 000000000..e460b9975 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeMobilePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceApprovalsChangeMobilePolicyType { + // struct team_log.DeviceApprovalsChangeMobilePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceApprovalsChangeMobilePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeMobilePolicyType other = (DeviceApprovalsChangeMobilePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeMobilePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeMobilePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeMobilePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceApprovalsChangeMobilePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails.java new file mode 100644 index 000000000..95d2b77de --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionDetails.java @@ -0,0 +1,247 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.RolloutMethod; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed device approvals setting when member is over limit. + */ +public class DeviceApprovalsChangeOverageActionDetails { + // struct team_log.DeviceApprovalsChangeOverageActionDetails (team_log_generated.stone) + + @Nullable + protected final RolloutMethod newValue; + @Nullable + protected final RolloutMethod previousValue; + + /** + * Changed device approvals setting when member is over limit. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New over the limits policy. Might be missing due to + * historical data gap. + * @param previousValue Previous over the limit policy. Might be missing + * due to historical data gap. + */ + public DeviceApprovalsChangeOverageActionDetails(@Nullable RolloutMethod newValue, @Nullable RolloutMethod previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed device approvals setting when member is over limit. + * + *

The default values for unset fields will be used.

+ */ + public DeviceApprovalsChangeOverageActionDetails() { + this(null, null); + } + + /** + * New over the limits policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RolloutMethod getNewValue() { + return newValue; + } + + /** + * Previous over the limit policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public RolloutMethod getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link DeviceApprovalsChangeOverageActionDetails}. + */ + public static class Builder { + + protected RolloutMethod newValue; + protected RolloutMethod previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New over the limits policy. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withNewValue(RolloutMethod newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous over the limit policy. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(RolloutMethod previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link + * DeviceApprovalsChangeOverageActionDetails} configured with this + * builder's values + * + * @return new instance of {@link + * DeviceApprovalsChangeOverageActionDetails} + */ + public DeviceApprovalsChangeOverageActionDetails build() { + return new DeviceApprovalsChangeOverageActionDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeOverageActionDetails other = (DeviceApprovalsChangeOverageActionDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeOverageActionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(RolloutMethod.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(RolloutMethod.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeOverageActionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeOverageActionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + RolloutMethod f_newValue = null; + RolloutMethod f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(RolloutMethod.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(RolloutMethod.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceApprovalsChangeOverageActionDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionType.java new file mode 100644 index 000000000..f971c1877 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeOverageActionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceApprovalsChangeOverageActionType { + // struct team_log.DeviceApprovalsChangeOverageActionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceApprovalsChangeOverageActionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeOverageActionType other = (DeviceApprovalsChangeOverageActionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeOverageActionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeOverageActionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeOverageActionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceApprovalsChangeOverageActionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails.java new file mode 100644 index 000000000..c77b18e0d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionDetails.java @@ -0,0 +1,246 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed device approvals setting when member unlinks approved device. + */ +public class DeviceApprovalsChangeUnlinkActionDetails { + // struct team_log.DeviceApprovalsChangeUnlinkActionDetails (team_log_generated.stone) + + @Nullable + protected final DeviceUnlinkPolicy newValue; + @Nullable + protected final DeviceUnlinkPolicy previousValue; + + /** + * Changed device approvals setting when member unlinks approved device. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New device unlink policy. Might be missing due to + * historical data gap. + * @param previousValue Previous device unlink policy. Might be missing due + * to historical data gap. + */ + public DeviceApprovalsChangeUnlinkActionDetails(@Nullable DeviceUnlinkPolicy newValue, @Nullable DeviceUnlinkPolicy previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed device approvals setting when member unlinks approved device. + * + *

The default values for unset fields will be used.

+ */ + public DeviceApprovalsChangeUnlinkActionDetails() { + this(null, null); + } + + /** + * New device unlink policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceUnlinkPolicy getNewValue() { + return newValue; + } + + /** + * Previous device unlink policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceUnlinkPolicy getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link DeviceApprovalsChangeUnlinkActionDetails}. + */ + public static class Builder { + + protected DeviceUnlinkPolicy newValue; + protected DeviceUnlinkPolicy previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New device unlink policy. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withNewValue(DeviceUnlinkPolicy newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous device unlink policy. Might be missing + * due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(DeviceUnlinkPolicy previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link + * DeviceApprovalsChangeUnlinkActionDetails} configured with this + * builder's values + * + * @return new instance of {@link + * DeviceApprovalsChangeUnlinkActionDetails} + */ + public DeviceApprovalsChangeUnlinkActionDetails build() { + return new DeviceApprovalsChangeUnlinkActionDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeUnlinkActionDetails other = (DeviceApprovalsChangeUnlinkActionDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeUnlinkActionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(DeviceUnlinkPolicy.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(DeviceUnlinkPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeUnlinkActionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeUnlinkActionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DeviceUnlinkPolicy f_newValue = null; + DeviceUnlinkPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(DeviceUnlinkPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(DeviceUnlinkPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceApprovalsChangeUnlinkActionDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionType.java new file mode 100644 index 000000000..c2e780382 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsChangeUnlinkActionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceApprovalsChangeUnlinkActionType { + // struct team_log.DeviceApprovalsChangeUnlinkActionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceApprovalsChangeUnlinkActionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsChangeUnlinkActionType other = (DeviceApprovalsChangeUnlinkActionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsChangeUnlinkActionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsChangeUnlinkActionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsChangeUnlinkActionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceApprovalsChangeUnlinkActionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsPolicy.java new file mode 100644 index 000000000..becbf1e98 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsPolicy.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DeviceApprovalsPolicy { + // union team_log.DeviceApprovalsPolicy (team_log_generated.stone) + LIMITED, + UNLIMITED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LIMITED: { + g.writeString("limited"); + break; + } + case UNLIMITED: { + g.writeString("unlimited"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeviceApprovalsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + DeviceApprovalsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("limited".equals(tag)) { + value = DeviceApprovalsPolicy.LIMITED; + } + else if ("unlimited".equals(tag)) { + value = DeviceApprovalsPolicy.UNLIMITED; + } + else { + value = DeviceApprovalsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionDetails.java new file mode 100644 index 000000000..30ce32db0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed members from device approvals exception list. + */ +public class DeviceApprovalsRemoveExceptionDetails { + // struct team_log.DeviceApprovalsRemoveExceptionDetails (team_log_generated.stone) + + + /** + * Removed members from device approvals exception list. + */ + public DeviceApprovalsRemoveExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsRemoveExceptionDetails other = (DeviceApprovalsRemoveExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsRemoveExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsRemoveExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsRemoveExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DeviceApprovalsRemoveExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionType.java new file mode 100644 index 000000000..f91780cf7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceApprovalsRemoveExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceApprovalsRemoveExceptionType { + // struct team_log.DeviceApprovalsRemoveExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceApprovalsRemoveExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceApprovalsRemoveExceptionType other = (DeviceApprovalsRemoveExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceApprovalsRemoveExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceApprovalsRemoveExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceApprovalsRemoveExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceApprovalsRemoveExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopDetails.java new file mode 100644 index 000000000..af56360f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed IP address associated with active desktop session. + */ +public class DeviceChangeIpDesktopDetails { + // struct team_log.DeviceChangeIpDesktopDetails (team_log_generated.stone) + + @Nonnull + protected final DeviceSessionLogInfo deviceSessionInfo; + + /** + * Changed IP address associated with active desktop session. + * + * @param deviceSessionInfo Device's session logged information. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceChangeIpDesktopDetails(@Nonnull DeviceSessionLogInfo deviceSessionInfo) { + if (deviceSessionInfo == null) { + throw new IllegalArgumentException("Required value for 'deviceSessionInfo' is null"); + } + this.deviceSessionInfo = deviceSessionInfo; + } + + /** + * Device's session logged information. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DeviceSessionLogInfo getDeviceSessionInfo() { + return deviceSessionInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.deviceSessionInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceChangeIpDesktopDetails other = (DeviceChangeIpDesktopDetails) obj; + return (this.deviceSessionInfo == other.deviceSessionInfo) || (this.deviceSessionInfo.equals(other.deviceSessionInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceChangeIpDesktopDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("device_session_info"); + DeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.deviceSessionInfo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceChangeIpDesktopDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceChangeIpDesktopDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DeviceSessionLogInfo f_deviceSessionInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("device_session_info".equals(field)) { + f_deviceSessionInfo = DeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_deviceSessionInfo == null) { + throw new JsonParseException(p, "Required field \"device_session_info\" missing."); + } + value = new DeviceChangeIpDesktopDetails(f_deviceSessionInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopType.java new file mode 100644 index 000000000..4584ecd19 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpDesktopType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceChangeIpDesktopType { + // struct team_log.DeviceChangeIpDesktopType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceChangeIpDesktopType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceChangeIpDesktopType other = (DeviceChangeIpDesktopType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceChangeIpDesktopType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceChangeIpDesktopType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceChangeIpDesktopType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceChangeIpDesktopType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpMobileDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpMobileDetails.java new file mode 100644 index 000000000..359ba36ca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpMobileDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed IP address associated with active mobile session. + */ +public class DeviceChangeIpMobileDetails { + // struct team_log.DeviceChangeIpMobileDetails (team_log_generated.stone) + + @Nullable + protected final DeviceSessionLogInfo deviceSessionInfo; + + /** + * Changed IP address associated with active mobile session. + * + * @param deviceSessionInfo Device's session logged information. + */ + public DeviceChangeIpMobileDetails(@Nullable DeviceSessionLogInfo deviceSessionInfo) { + this.deviceSessionInfo = deviceSessionInfo; + } + + /** + * Changed IP address associated with active mobile session. + * + *

The default values for unset fields will be used.

+ */ + public DeviceChangeIpMobileDetails() { + this(null); + } + + /** + * Device's session logged information. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceSessionLogInfo getDeviceSessionInfo() { + return deviceSessionInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.deviceSessionInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceChangeIpMobileDetails other = (DeviceChangeIpMobileDetails) obj; + return (this.deviceSessionInfo == other.deviceSessionInfo) || (this.deviceSessionInfo != null && this.deviceSessionInfo.equals(other.deviceSessionInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceChangeIpMobileDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.deviceSessionInfo != null) { + g.writeFieldName("device_session_info"); + StoneSerializers.nullableStruct(DeviceSessionLogInfo.Serializer.INSTANCE).serialize(value.deviceSessionInfo, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceChangeIpMobileDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceChangeIpMobileDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DeviceSessionLogInfo f_deviceSessionInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("device_session_info".equals(field)) { + f_deviceSessionInfo = StoneSerializers.nullableStruct(DeviceSessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceChangeIpMobileDetails(f_deviceSessionInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpMobileType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpMobileType.java new file mode 100644 index 000000000..1aaf12e2d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpMobileType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceChangeIpMobileType { + // struct team_log.DeviceChangeIpMobileType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceChangeIpMobileType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceChangeIpMobileType other = (DeviceChangeIpMobileType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceChangeIpMobileType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceChangeIpMobileType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceChangeIpMobileType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceChangeIpMobileType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpWebDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpWebDetails.java new file mode 100644 index 000000000..d95ae9852 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpWebDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed IP address associated with active web session. + */ +public class DeviceChangeIpWebDetails { + // struct team_log.DeviceChangeIpWebDetails (team_log_generated.stone) + + @Nonnull + protected final String userAgent; + + /** + * Changed IP address associated with active web session. + * + * @param userAgent Web browser name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceChangeIpWebDetails(@Nonnull String userAgent) { + if (userAgent == null) { + throw new IllegalArgumentException("Required value for 'userAgent' is null"); + } + this.userAgent = userAgent; + } + + /** + * Web browser name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUserAgent() { + return userAgent; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.userAgent + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceChangeIpWebDetails other = (DeviceChangeIpWebDetails) obj; + return (this.userAgent == other.userAgent) || (this.userAgent.equals(other.userAgent)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceChangeIpWebDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user_agent"); + StoneSerializers.string().serialize(value.userAgent, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceChangeIpWebDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceChangeIpWebDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_userAgent = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user_agent".equals(field)) { + f_userAgent = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_userAgent == null) { + throw new JsonParseException(p, "Required field \"user_agent\" missing."); + } + value = new DeviceChangeIpWebDetails(f_userAgent); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpWebType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpWebType.java new file mode 100644 index 000000000..afc8aae83 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceChangeIpWebType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceChangeIpWebType { + // struct team_log.DeviceChangeIpWebType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceChangeIpWebType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceChangeIpWebType other = (DeviceChangeIpWebType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceChangeIpWebType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceChangeIpWebType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceChangeIpWebType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceChangeIpWebType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails.java new file mode 100644 index 000000000..08f54356c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailDetails.java @@ -0,0 +1,270 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Failed to delete all files from unlinked device. + */ +public class DeviceDeleteOnUnlinkFailDetails { + // struct team_log.DeviceDeleteOnUnlinkFailDetails (team_log_generated.stone) + + @Nullable + protected final SessionLogInfo sessionInfo; + @Nullable + protected final String displayName; + protected final long numFailures; + + /** + * Failed to delete all files from unlinked device. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param numFailures The number of times that remote file deletion failed. + * @param sessionInfo Session unique id. + * @param displayName The device name. Might be missing due to historical + * data gap. + */ + public DeviceDeleteOnUnlinkFailDetails(long numFailures, @Nullable SessionLogInfo sessionInfo, @Nullable String displayName) { + this.sessionInfo = sessionInfo; + this.displayName = displayName; + this.numFailures = numFailures; + } + + /** + * Failed to delete all files from unlinked device. + * + *

The default values for unset fields will be used.

+ * + * @param numFailures The number of times that remote file deletion failed. + */ + public DeviceDeleteOnUnlinkFailDetails(long numFailures) { + this(numFailures, null, null); + } + + /** + * The number of times that remote file deletion failed. + * + * @return value for this field. + */ + public long getNumFailures() { + return numFailures; + } + + /** + * Session unique id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SessionLogInfo getSessionInfo() { + return sessionInfo; + } + + /** + * The device name. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param numFailures The number of times that remote file deletion failed. + * + * @return builder for this class. + */ + public static Builder newBuilder(long numFailures) { + return new Builder(numFailures); + } + + /** + * Builder for {@link DeviceDeleteOnUnlinkFailDetails}. + */ + public static class Builder { + protected final long numFailures; + + protected SessionLogInfo sessionInfo; + protected String displayName; + + protected Builder(long numFailures) { + this.numFailures = numFailures; + this.sessionInfo = null; + this.displayName = null; + } + + /** + * Set value for optional field. + * + * @param sessionInfo Session unique id. + * + * @return this builder + */ + public Builder withSessionInfo(SessionLogInfo sessionInfo) { + this.sessionInfo = sessionInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param displayName The device name. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Builds an instance of {@link DeviceDeleteOnUnlinkFailDetails} + * configured with this builder's values + * + * @return new instance of {@link DeviceDeleteOnUnlinkFailDetails} + */ + public DeviceDeleteOnUnlinkFailDetails build() { + return new DeviceDeleteOnUnlinkFailDetails(numFailures, sessionInfo, displayName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionInfo, + this.displayName, + this.numFailures + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceDeleteOnUnlinkFailDetails other = (DeviceDeleteOnUnlinkFailDetails) obj; + return (this.numFailures == other.numFailures) + && ((this.sessionInfo == other.sessionInfo) || (this.sessionInfo != null && this.sessionInfo.equals(other.sessionInfo))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceDeleteOnUnlinkFailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("num_failures"); + StoneSerializers.int64().serialize(value.numFailures, g); + if (value.sessionInfo != null) { + g.writeFieldName("session_info"); + StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).serialize(value.sessionInfo, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceDeleteOnUnlinkFailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceDeleteOnUnlinkFailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_numFailures = null; + SessionLogInfo f_sessionInfo = null; + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("num_failures".equals(field)) { + f_numFailures = StoneSerializers.int64().deserialize(p); + } + else if ("session_info".equals(field)) { + f_sessionInfo = StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_numFailures == null) { + throw new JsonParseException(p, "Required field \"num_failures\" missing."); + } + value = new DeviceDeleteOnUnlinkFailDetails(f_numFailures, f_sessionInfo, f_displayName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailType.java new file mode 100644 index 000000000..a8bbd90f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkFailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceDeleteOnUnlinkFailType { + // struct team_log.DeviceDeleteOnUnlinkFailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceDeleteOnUnlinkFailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceDeleteOnUnlinkFailType other = (DeviceDeleteOnUnlinkFailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceDeleteOnUnlinkFailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceDeleteOnUnlinkFailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceDeleteOnUnlinkFailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceDeleteOnUnlinkFailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails.java new file mode 100644 index 000000000..88c2f4330 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessDetails.java @@ -0,0 +1,241 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Deleted all files from unlinked device. + */ +public class DeviceDeleteOnUnlinkSuccessDetails { + // struct team_log.DeviceDeleteOnUnlinkSuccessDetails (team_log_generated.stone) + + @Nullable + protected final SessionLogInfo sessionInfo; + @Nullable + protected final String displayName; + + /** + * Deleted all files from unlinked device. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sessionInfo Session unique id. + * @param displayName The device name. Might be missing due to historical + * data gap. + */ + public DeviceDeleteOnUnlinkSuccessDetails(@Nullable SessionLogInfo sessionInfo, @Nullable String displayName) { + this.sessionInfo = sessionInfo; + this.displayName = displayName; + } + + /** + * Deleted all files from unlinked device. + * + *

The default values for unset fields will be used.

+ */ + public DeviceDeleteOnUnlinkSuccessDetails() { + this(null, null); + } + + /** + * Session unique id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SessionLogInfo getSessionInfo() { + return sessionInfo; + } + + /** + * The device name. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link DeviceDeleteOnUnlinkSuccessDetails}. + */ + public static class Builder { + + protected SessionLogInfo sessionInfo; + protected String displayName; + + protected Builder() { + this.sessionInfo = null; + this.displayName = null; + } + + /** + * Set value for optional field. + * + * @param sessionInfo Session unique id. + * + * @return this builder + */ + public Builder withSessionInfo(SessionLogInfo sessionInfo) { + this.sessionInfo = sessionInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param displayName The device name. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Builds an instance of {@link DeviceDeleteOnUnlinkSuccessDetails} + * configured with this builder's values + * + * @return new instance of {@link DeviceDeleteOnUnlinkSuccessDetails} + */ + public DeviceDeleteOnUnlinkSuccessDetails build() { + return new DeviceDeleteOnUnlinkSuccessDetails(sessionInfo, displayName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionInfo, + this.displayName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceDeleteOnUnlinkSuccessDetails other = (DeviceDeleteOnUnlinkSuccessDetails) obj; + return ((this.sessionInfo == other.sessionInfo) || (this.sessionInfo != null && this.sessionInfo.equals(other.sessionInfo))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceDeleteOnUnlinkSuccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sessionInfo != null) { + g.writeFieldName("session_info"); + StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).serialize(value.sessionInfo, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceDeleteOnUnlinkSuccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceDeleteOnUnlinkSuccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SessionLogInfo f_sessionInfo = null; + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_info".equals(field)) { + f_sessionInfo = StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceDeleteOnUnlinkSuccessDetails(f_sessionInfo, f_displayName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessType.java new file mode 100644 index 000000000..9af961152 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceDeleteOnUnlinkSuccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceDeleteOnUnlinkSuccessType { + // struct team_log.DeviceDeleteOnUnlinkSuccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceDeleteOnUnlinkSuccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceDeleteOnUnlinkSuccessType other = (DeviceDeleteOnUnlinkSuccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceDeleteOnUnlinkSuccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceDeleteOnUnlinkSuccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceDeleteOnUnlinkSuccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceDeleteOnUnlinkSuccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkFailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkFailDetails.java new file mode 100644 index 000000000..52045c075 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkFailDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Failed to link device. + */ +public class DeviceLinkFailDetails { + // struct team_log.DeviceLinkFailDetails (team_log_generated.stone) + + @Nullable + protected final String ipAddress; + @Nonnull + protected final DeviceType deviceType; + + /** + * Failed to link device. + * + * @param deviceType A description of the device used while user approval + * blocked. Must not be {@code null}. + * @param ipAddress IP address. Might be missing due to historical data + * gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceLinkFailDetails(@Nonnull DeviceType deviceType, @Nullable String ipAddress) { + this.ipAddress = ipAddress; + if (deviceType == null) { + throw new IllegalArgumentException("Required value for 'deviceType' is null"); + } + this.deviceType = deviceType; + } + + /** + * Failed to link device. + * + *

The default values for unset fields will be used.

+ * + * @param deviceType A description of the device used while user approval + * blocked. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceLinkFailDetails(@Nonnull DeviceType deviceType) { + this(deviceType, null); + } + + /** + * A description of the device used while user approval blocked. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DeviceType getDeviceType() { + return deviceType; + } + + /** + * IP address. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.ipAddress, + this.deviceType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceLinkFailDetails other = (DeviceLinkFailDetails) obj; + return ((this.deviceType == other.deviceType) || (this.deviceType.equals(other.deviceType))) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceLinkFailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("device_type"); + DeviceType.Serializer.INSTANCE.serialize(value.deviceType, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceLinkFailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceLinkFailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DeviceType f_deviceType = null; + String f_ipAddress = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("device_type".equals(field)) { + f_deviceType = DeviceType.Serializer.INSTANCE.deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_deviceType == null) { + throw new JsonParseException(p, "Required field \"device_type\" missing."); + } + value = new DeviceLinkFailDetails(f_deviceType, f_ipAddress); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkFailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkFailType.java new file mode 100644 index 000000000..3dce5c3b3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkFailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceLinkFailType { + // struct team_log.DeviceLinkFailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceLinkFailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceLinkFailType other = (DeviceLinkFailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceLinkFailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceLinkFailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceLinkFailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceLinkFailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkSuccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkSuccessDetails.java new file mode 100644 index 000000000..024c0f99b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkSuccessDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Linked device. + */ +public class DeviceLinkSuccessDetails { + // struct team_log.DeviceLinkSuccessDetails (team_log_generated.stone) + + @Nullable + protected final DeviceSessionLogInfo deviceSessionInfo; + + /** + * Linked device. + * + * @param deviceSessionInfo Device's session logged information. + */ + public DeviceLinkSuccessDetails(@Nullable DeviceSessionLogInfo deviceSessionInfo) { + this.deviceSessionInfo = deviceSessionInfo; + } + + /** + * Linked device. + * + *

The default values for unset fields will be used.

+ */ + public DeviceLinkSuccessDetails() { + this(null); + } + + /** + * Device's session logged information. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DeviceSessionLogInfo getDeviceSessionInfo() { + return deviceSessionInfo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.deviceSessionInfo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceLinkSuccessDetails other = (DeviceLinkSuccessDetails) obj; + return (this.deviceSessionInfo == other.deviceSessionInfo) || (this.deviceSessionInfo != null && this.deviceSessionInfo.equals(other.deviceSessionInfo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceLinkSuccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.deviceSessionInfo != null) { + g.writeFieldName("device_session_info"); + StoneSerializers.nullableStruct(DeviceSessionLogInfo.Serializer.INSTANCE).serialize(value.deviceSessionInfo, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceLinkSuccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceLinkSuccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DeviceSessionLogInfo f_deviceSessionInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("device_session_info".equals(field)) { + f_deviceSessionInfo = StoneSerializers.nullableStruct(DeviceSessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceLinkSuccessDetails(f_deviceSessionInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkSuccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkSuccessType.java new file mode 100644 index 000000000..3decb7768 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceLinkSuccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceLinkSuccessType { + // struct team_log.DeviceLinkSuccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceLinkSuccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceLinkSuccessType other = (DeviceLinkSuccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceLinkSuccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceLinkSuccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceLinkSuccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceLinkSuccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementDisabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementDisabledDetails.java new file mode 100644 index 000000000..2898d7bd3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementDisabledDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Disabled device management. + */ +public class DeviceManagementDisabledDetails { + // struct team_log.DeviceManagementDisabledDetails (team_log_generated.stone) + + + /** + * Disabled device management. + */ + public DeviceManagementDisabledDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceManagementDisabledDetails other = (DeviceManagementDisabledDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceManagementDisabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceManagementDisabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceManagementDisabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DeviceManagementDisabledDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementDisabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementDisabledType.java new file mode 100644 index 000000000..6f59f9957 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementDisabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceManagementDisabledType { + // struct team_log.DeviceManagementDisabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceManagementDisabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceManagementDisabledType other = (DeviceManagementDisabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceManagementDisabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceManagementDisabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceManagementDisabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceManagementDisabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementEnabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementEnabledDetails.java new file mode 100644 index 000000000..7408e48d3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementEnabledDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Enabled device management. + */ +public class DeviceManagementEnabledDetails { + // struct team_log.DeviceManagementEnabledDetails (team_log_generated.stone) + + + /** + * Enabled device management. + */ + public DeviceManagementEnabledDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceManagementEnabledDetails other = (DeviceManagementEnabledDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceManagementEnabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceManagementEnabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceManagementEnabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DeviceManagementEnabledDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementEnabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementEnabledType.java new file mode 100644 index 000000000..6a61a16fc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceManagementEnabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceManagementEnabledType { + // struct team_log.DeviceManagementEnabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceManagementEnabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceManagementEnabledType other = (DeviceManagementEnabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceManagementEnabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceManagementEnabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceManagementEnabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceManagementEnabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSessionLogInfo.java new file mode 100644 index 000000000..9f11e6f34 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSessionLogInfo.java @@ -0,0 +1,314 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Device's session logged information. + */ +public class DeviceSessionLogInfo { + // struct team_log.DeviceSessionLogInfo (team_log_generated.stone) + + @Nullable + protected final String ipAddress; + @Nullable + protected final Date created; + @Nullable + protected final Date updated; + + /** + * Device's session logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param ipAddress The IP address of the last activity from this session. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + */ + public DeviceSessionLogInfo(@Nullable String ipAddress, @Nullable Date created, @Nullable Date updated) { + this.ipAddress = ipAddress; + this.created = LangUtil.truncateMillis(created); + this.updated = LangUtil.truncateMillis(updated); + } + + /** + * Device's session logged information. + * + *

The default values for unset fields will be used.

+ */ + public DeviceSessionLogInfo() { + this(null, null, null); + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link DeviceSessionLogInfo}. + */ + public static class Builder { + + protected String ipAddress; + protected Date created; + protected Date updated; + + protected Builder() { + this.ipAddress = null; + this.created = null; + this.updated = null; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + this.created = LangUtil.truncateMillis(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + this.updated = LangUtil.truncateMillis(updated); + return this; + } + + /** + * Builds an instance of {@link DeviceSessionLogInfo} configured with + * this builder's values + * + * @return new instance of {@link DeviceSessionLogInfo} + */ + public DeviceSessionLogInfo build() { + return new DeviceSessionLogInfo(ipAddress, created, updated); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.ipAddress, + this.created, + this.updated + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceSessionLogInfo other = (DeviceSessionLogInfo) obj; + return ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof DesktopDeviceSessionLogInfo) { + DesktopDeviceSessionLogInfo.Serializer.INSTANCE.serialize((DesktopDeviceSessionLogInfo) value, g, collapse); + return; + } + if (value instanceof MobileDeviceSessionLogInfo) { + MobileDeviceSessionLogInfo.Serializer.INSTANCE.serialize((MobileDeviceSessionLogInfo) value, g, collapse); + return; + } + if (value instanceof WebDeviceSessionLogInfo) { + WebDeviceSessionLogInfo.Serializer.INSTANCE.serialize((WebDeviceSessionLogInfo) value, g, collapse); + return; + } + if (value instanceof LegacyDeviceSessionLogInfo) { + LegacyDeviceSessionLogInfo.Serializer.INSTANCE.serialize((LegacyDeviceSessionLogInfo) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_ipAddress = null; + Date f_created = null; + Date f_updated = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new DeviceSessionLogInfo(f_ipAddress, f_created, f_updated); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("desktop_device_session".equals(tag)) { + value = DesktopDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("mobile_device_session".equals(tag)) { + value = MobileDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("web_device_session".equals(tag)) { + value = WebDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("legacy_device_session".equals(tag)) { + value = LegacyDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedDetails.java new file mode 100644 index 000000000..deaa15ae0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedDetails.java @@ -0,0 +1,211 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enabled/disabled backup for computer. + */ +public class DeviceSyncBackupStatusChangedDetails { + // struct team_log.DeviceSyncBackupStatusChangedDetails (team_log_generated.stone) + + @Nonnull + protected final DesktopDeviceSessionLogInfo desktopDeviceSessionInfo; + @Nonnull + protected final BackupStatus previousValue; + @Nonnull + protected final BackupStatus newValue; + + /** + * Enabled/disabled backup for computer. + * + * @param desktopDeviceSessionInfo Device's session logged information. + * Must not be {@code null}. + * @param previousValue Previous status of computer backup on the device. + * Must not be {@code null}. + * @param newValue Next status of computer backup on the device. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceSyncBackupStatusChangedDetails(@Nonnull DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, @Nonnull BackupStatus previousValue, @Nonnull BackupStatus newValue) { + if (desktopDeviceSessionInfo == null) { + throw new IllegalArgumentException("Required value for 'desktopDeviceSessionInfo' is null"); + } + this.desktopDeviceSessionInfo = desktopDeviceSessionInfo; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Device's session logged information. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { + return desktopDeviceSessionInfo; + } + + /** + * Previous status of computer backup on the device. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public BackupStatus getPreviousValue() { + return previousValue; + } + + /** + * Next status of computer backup on the device. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public BackupStatus getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.desktopDeviceSessionInfo, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceSyncBackupStatusChangedDetails other = (DeviceSyncBackupStatusChangedDetails) obj; + return ((this.desktopDeviceSessionInfo == other.desktopDeviceSessionInfo) || (this.desktopDeviceSessionInfo.equals(other.desktopDeviceSessionInfo))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceSyncBackupStatusChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("desktop_device_session_info"); + DesktopDeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.desktopDeviceSessionInfo, g); + g.writeFieldName("previous_value"); + BackupStatus.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + BackupStatus.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceSyncBackupStatusChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceSyncBackupStatusChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DesktopDeviceSessionLogInfo f_desktopDeviceSessionInfo = null; + BackupStatus f_previousValue = null; + BackupStatus f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("desktop_device_session_info".equals(field)) { + f_desktopDeviceSessionInfo = DesktopDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = BackupStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = BackupStatus.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_desktopDeviceSessionInfo == null) { + throw new JsonParseException(p, "Required field \"desktop_device_session_info\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new DeviceSyncBackupStatusChangedDetails(f_desktopDeviceSessionInfo, f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedType.java new file mode 100644 index 000000000..992ccec6a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceSyncBackupStatusChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceSyncBackupStatusChangedType { + // struct team_log.DeviceSyncBackupStatusChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceSyncBackupStatusChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceSyncBackupStatusChangedType other = (DeviceSyncBackupStatusChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceSyncBackupStatusChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceSyncBackupStatusChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceSyncBackupStatusChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceSyncBackupStatusChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceType.java new file mode 100644 index 000000000..4de23871f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceType.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DeviceType { + // union team_log.DeviceType (team_log_generated.stone) + DESKTOP, + MOBILE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DESKTOP: { + g.writeString("desktop"); + break; + } + case MOBILE: { + g.writeString("mobile"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeviceType deserialize(JsonParser p) throws IOException, JsonParseException { + DeviceType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("desktop".equals(tag)) { + value = DeviceType.DESKTOP; + } + else if ("mobile".equals(tag)) { + value = DeviceType.MOBILE; + } + else { + value = DeviceType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkDetails.java new file mode 100644 index 000000000..e55f6b56d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkDetails.java @@ -0,0 +1,274 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Disconnected device. + */ +public class DeviceUnlinkDetails { + // struct team_log.DeviceUnlinkDetails (team_log_generated.stone) + + @Nullable + protected final SessionLogInfo sessionInfo; + @Nullable + protected final String displayName; + protected final boolean deleteData; + + /** + * Disconnected device. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param deleteData True if the user requested to delete data after device + * unlink, false otherwise. + * @param sessionInfo Session unique id. + * @param displayName The device name. Might be missing due to historical + * data gap. + */ + public DeviceUnlinkDetails(boolean deleteData, @Nullable SessionLogInfo sessionInfo, @Nullable String displayName) { + this.sessionInfo = sessionInfo; + this.displayName = displayName; + this.deleteData = deleteData; + } + + /** + * Disconnected device. + * + *

The default values for unset fields will be used.

+ * + * @param deleteData True if the user requested to delete data after device + * unlink, false otherwise. + */ + public DeviceUnlinkDetails(boolean deleteData) { + this(deleteData, null, null); + } + + /** + * True if the user requested to delete data after device unlink, false + * otherwise. + * + * @return value for this field. + */ + public boolean getDeleteData() { + return deleteData; + } + + /** + * Session unique id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SessionLogInfo getSessionInfo() { + return sessionInfo; + } + + /** + * The device name. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param deleteData True if the user requested to delete data after device + * unlink, false otherwise. + * + * @return builder for this class. + */ + public static Builder newBuilder(boolean deleteData) { + return new Builder(deleteData); + } + + /** + * Builder for {@link DeviceUnlinkDetails}. + */ + public static class Builder { + protected final boolean deleteData; + + protected SessionLogInfo sessionInfo; + protected String displayName; + + protected Builder(boolean deleteData) { + this.deleteData = deleteData; + this.sessionInfo = null; + this.displayName = null; + } + + /** + * Set value for optional field. + * + * @param sessionInfo Session unique id. + * + * @return this builder + */ + public Builder withSessionInfo(SessionLogInfo sessionInfo) { + this.sessionInfo = sessionInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param displayName The device name. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Builds an instance of {@link DeviceUnlinkDetails} configured with + * this builder's values + * + * @return new instance of {@link DeviceUnlinkDetails} + */ + public DeviceUnlinkDetails build() { + return new DeviceUnlinkDetails(deleteData, sessionInfo, displayName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionInfo, + this.displayName, + this.deleteData + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceUnlinkDetails other = (DeviceUnlinkDetails) obj; + return (this.deleteData == other.deleteData) + && ((this.sessionInfo == other.sessionInfo) || (this.sessionInfo != null && this.sessionInfo.equals(other.sessionInfo))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceUnlinkDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("delete_data"); + StoneSerializers.boolean_().serialize(value.deleteData, g); + if (value.sessionInfo != null) { + g.writeFieldName("session_info"); + StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).serialize(value.sessionInfo, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceUnlinkDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceUnlinkDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_deleteData = null; + SessionLogInfo f_sessionInfo = null; + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("delete_data".equals(field)) { + f_deleteData = StoneSerializers.boolean_().deserialize(p); + } + else if ("session_info".equals(field)) { + f_sessionInfo = StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_deleteData == null) { + throw new JsonParseException(p, "Required field \"delete_data\" missing."); + } + value = new DeviceUnlinkDetails(f_deleteData, f_sessionInfo, f_displayName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkPolicy.java new file mode 100644 index 000000000..8b7f862be --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkPolicy.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DeviceUnlinkPolicy { + // union team_log.DeviceUnlinkPolicy (team_log_generated.stone) + KEEP, + REMOVE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceUnlinkPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case KEEP: { + g.writeString("keep"); + break; + } + case REMOVE: { + g.writeString("remove"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DeviceUnlinkPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + DeviceUnlinkPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("keep".equals(tag)) { + value = DeviceUnlinkPolicy.KEEP; + } + else if ("remove".equals(tag)) { + value = DeviceUnlinkPolicy.REMOVE; + } + else { + value = DeviceUnlinkPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkType.java new file mode 100644 index 000000000..c92929f89 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DeviceUnlinkType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DeviceUnlinkType { + // struct team_log.DeviceUnlinkType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DeviceUnlinkType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DeviceUnlinkType other = (DeviceUnlinkType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DeviceUnlinkType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DeviceUnlinkType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DeviceUnlinkType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DeviceUnlinkType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersDetails.java new file mode 100644 index 000000000..b9daec909 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added members to directory restrictions list. + */ +public class DirectoryRestrictionsAddMembersDetails { + // struct team_log.DirectoryRestrictionsAddMembersDetails (team_log_generated.stone) + + + /** + * Added members to directory restrictions list. + */ + public DirectoryRestrictionsAddMembersDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DirectoryRestrictionsAddMembersDetails other = (DirectoryRestrictionsAddMembersDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DirectoryRestrictionsAddMembersDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DirectoryRestrictionsAddMembersDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DirectoryRestrictionsAddMembersDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DirectoryRestrictionsAddMembersDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersType.java new file mode 100644 index 000000000..2ee49b3d0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsAddMembersType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DirectoryRestrictionsAddMembersType { + // struct team_log.DirectoryRestrictionsAddMembersType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DirectoryRestrictionsAddMembersType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DirectoryRestrictionsAddMembersType other = (DirectoryRestrictionsAddMembersType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DirectoryRestrictionsAddMembersType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DirectoryRestrictionsAddMembersType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DirectoryRestrictionsAddMembersType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DirectoryRestrictionsAddMembersType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersDetails.java new file mode 100644 index 000000000..d7383246f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed members from directory restrictions list. + */ +public class DirectoryRestrictionsRemoveMembersDetails { + // struct team_log.DirectoryRestrictionsRemoveMembersDetails (team_log_generated.stone) + + + /** + * Removed members from directory restrictions list. + */ + public DirectoryRestrictionsRemoveMembersDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DirectoryRestrictionsRemoveMembersDetails other = (DirectoryRestrictionsRemoveMembersDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DirectoryRestrictionsRemoveMembersDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DirectoryRestrictionsRemoveMembersDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DirectoryRestrictionsRemoveMembersDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DirectoryRestrictionsRemoveMembersDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersType.java new file mode 100644 index 000000000..62bcc04e2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DirectoryRestrictionsRemoveMembersType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DirectoryRestrictionsRemoveMembersType { + // struct team_log.DirectoryRestrictionsRemoveMembersType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DirectoryRestrictionsRemoveMembersType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DirectoryRestrictionsRemoveMembersType other = (DirectoryRestrictionsRemoveMembersType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DirectoryRestrictionsRemoveMembersType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DirectoryRestrictionsRemoveMembersType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DirectoryRestrictionsRemoveMembersType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DirectoryRestrictionsRemoveMembersType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DisabledDomainInvitesDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DisabledDomainInvitesDetails.java new file mode 100644 index 000000000..ce52e8c5a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DisabledDomainInvitesDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Disabled domain invites. + */ +public class DisabledDomainInvitesDetails { + // struct team_log.DisabledDomainInvitesDetails (team_log_generated.stone) + + + /** + * Disabled domain invites. + */ + public DisabledDomainInvitesDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DisabledDomainInvitesDetails other = (DisabledDomainInvitesDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DisabledDomainInvitesDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DisabledDomainInvitesDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DisabledDomainInvitesDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DisabledDomainInvitesDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DisabledDomainInvitesType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DisabledDomainInvitesType.java new file mode 100644 index 000000000..fda3761e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DisabledDomainInvitesType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DisabledDomainInvitesType { + // struct team_log.DisabledDomainInvitesType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DisabledDomainInvitesType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DisabledDomainInvitesType other = (DisabledDomainInvitesType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DisabledDomainInvitesType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DisabledDomainInvitesType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DisabledDomainInvitesType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DisabledDomainInvitesType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DispositionActionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DispositionActionType.java new file mode 100644 index 000000000..2c91338f0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DispositionActionType.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DispositionActionType { + // union team_log.DispositionActionType (team_log_generated.stone) + AUTOMATIC_DELETE, + AUTOMATIC_PERMANENTLY_DELETE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DispositionActionType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case AUTOMATIC_DELETE: { + g.writeString("automatic_delete"); + break; + } + case AUTOMATIC_PERMANENTLY_DELETE: { + g.writeString("automatic_permanently_delete"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DispositionActionType deserialize(JsonParser p) throws IOException, JsonParseException { + DispositionActionType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("automatic_delete".equals(tag)) { + value = DispositionActionType.AUTOMATIC_DELETE; + } + else if ("automatic_permanently_delete".equals(tag)) { + value = DispositionActionType.AUTOMATIC_PERMANENTLY_DELETE; + } + else { + value = DispositionActionType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamDetails.java new file mode 100644 index 000000000..153909139 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Approved user's request to join team. + */ +public class DomainInvitesApproveRequestToJoinTeamDetails { + // struct team_log.DomainInvitesApproveRequestToJoinTeamDetails (team_log_generated.stone) + + + /** + * Approved user's request to join team. + */ + public DomainInvitesApproveRequestToJoinTeamDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesApproveRequestToJoinTeamDetails other = (DomainInvitesApproveRequestToJoinTeamDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesApproveRequestToJoinTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesApproveRequestToJoinTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesApproveRequestToJoinTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DomainInvitesApproveRequestToJoinTeamDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamType.java new file mode 100644 index 000000000..752e05e0c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesApproveRequestToJoinTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainInvitesApproveRequestToJoinTeamType { + // struct team_log.DomainInvitesApproveRequestToJoinTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainInvitesApproveRequestToJoinTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesApproveRequestToJoinTeamType other = (DomainInvitesApproveRequestToJoinTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesApproveRequestToJoinTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesApproveRequestToJoinTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesApproveRequestToJoinTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainInvitesApproveRequestToJoinTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamDetails.java new file mode 100644 index 000000000..6187949cb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Declined user's request to join team. + */ +public class DomainInvitesDeclineRequestToJoinTeamDetails { + // struct team_log.DomainInvitesDeclineRequestToJoinTeamDetails (team_log_generated.stone) + + + /** + * Declined user's request to join team. + */ + public DomainInvitesDeclineRequestToJoinTeamDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesDeclineRequestToJoinTeamDetails other = (DomainInvitesDeclineRequestToJoinTeamDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesDeclineRequestToJoinTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesDeclineRequestToJoinTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesDeclineRequestToJoinTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DomainInvitesDeclineRequestToJoinTeamDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamType.java new file mode 100644 index 000000000..50a04e173 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesDeclineRequestToJoinTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainInvitesDeclineRequestToJoinTeamType { + // struct team_log.DomainInvitesDeclineRequestToJoinTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainInvitesDeclineRequestToJoinTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesDeclineRequestToJoinTeamType other = (DomainInvitesDeclineRequestToJoinTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesDeclineRequestToJoinTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesDeclineRequestToJoinTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesDeclineRequestToJoinTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainInvitesDeclineRequestToJoinTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersDetails.java new file mode 100644 index 000000000..adac5b209 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersDetails.java @@ -0,0 +1,175 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Sent domain invites to existing domain accounts. + */ +public class DomainInvitesEmailExistingUsersDetails { + // struct team_log.DomainInvitesEmailExistingUsersDetails (team_log_generated.stone) + + @Nonnull + protected final String domainName; + protected final long numRecipients; + + /** + * Sent domain invites to existing domain accounts. + * + * @param domainName Domain names. Must not be {@code null}. + * @param numRecipients Number of recipients. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainInvitesEmailExistingUsersDetails(@Nonnull String domainName, long numRecipients) { + if (domainName == null) { + throw new IllegalArgumentException("Required value for 'domainName' is null"); + } + this.domainName = domainName; + this.numRecipients = numRecipients; + } + + /** + * Domain names. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDomainName() { + return domainName; + } + + /** + * Number of recipients. + * + * @return value for this field. + */ + public long getNumRecipients() { + return numRecipients; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domainName, + this.numRecipients + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesEmailExistingUsersDetails other = (DomainInvitesEmailExistingUsersDetails) obj; + return ((this.domainName == other.domainName) || (this.domainName.equals(other.domainName))) + && (this.numRecipients == other.numRecipients) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesEmailExistingUsersDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domain_name"); + StoneSerializers.string().serialize(value.domainName, g); + g.writeFieldName("num_recipients"); + StoneSerializers.uInt64().serialize(value.numRecipients, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesEmailExistingUsersDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesEmailExistingUsersDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_domainName = null; + Long f_numRecipients = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domain_name".equals(field)) { + f_domainName = StoneSerializers.string().deserialize(p); + } + else if ("num_recipients".equals(field)) { + f_numRecipients = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domainName == null) { + throw new JsonParseException(p, "Required field \"domain_name\" missing."); + } + if (f_numRecipients == null) { + throw new JsonParseException(p, "Required field \"num_recipients\" missing."); + } + value = new DomainInvitesEmailExistingUsersDetails(f_domainName, f_numRecipients); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersType.java new file mode 100644 index 000000000..1153b1d05 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesEmailExistingUsersType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainInvitesEmailExistingUsersType { + // struct team_log.DomainInvitesEmailExistingUsersType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainInvitesEmailExistingUsersType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesEmailExistingUsersType other = (DomainInvitesEmailExistingUsersType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesEmailExistingUsersType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesEmailExistingUsersType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesEmailExistingUsersType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainInvitesEmailExistingUsersType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamDetails.java new file mode 100644 index 000000000..2d46b4465 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Requested to join team. + */ +public class DomainInvitesRequestToJoinTeamDetails { + // struct team_log.DomainInvitesRequestToJoinTeamDetails (team_log_generated.stone) + + + /** + * Requested to join team. + */ + public DomainInvitesRequestToJoinTeamDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesRequestToJoinTeamDetails other = (DomainInvitesRequestToJoinTeamDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesRequestToJoinTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesRequestToJoinTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesRequestToJoinTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DomainInvitesRequestToJoinTeamDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamType.java new file mode 100644 index 000000000..89547f4f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesRequestToJoinTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainInvitesRequestToJoinTeamType { + // struct team_log.DomainInvitesRequestToJoinTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainInvitesRequestToJoinTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesRequestToJoinTeamType other = (DomainInvitesRequestToJoinTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesRequestToJoinTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesRequestToJoinTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesRequestToJoinTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainInvitesRequestToJoinTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoDetails.java new file mode 100644 index 000000000..f25c296ed --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Disabled "Automatically invite new users". + */ +public class DomainInvitesSetInviteNewUserPrefToNoDetails { + // struct team_log.DomainInvitesSetInviteNewUserPrefToNoDetails (team_log_generated.stone) + + + /** + * Disabled "Automatically invite new users". + */ + public DomainInvitesSetInviteNewUserPrefToNoDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesSetInviteNewUserPrefToNoDetails other = (DomainInvitesSetInviteNewUserPrefToNoDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesSetInviteNewUserPrefToNoDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesSetInviteNewUserPrefToNoDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesSetInviteNewUserPrefToNoDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DomainInvitesSetInviteNewUserPrefToNoDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoType.java new file mode 100644 index 000000000..80cfe61ee --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToNoType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainInvitesSetInviteNewUserPrefToNoType { + // struct team_log.DomainInvitesSetInviteNewUserPrefToNoType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainInvitesSetInviteNewUserPrefToNoType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesSetInviteNewUserPrefToNoType other = (DomainInvitesSetInviteNewUserPrefToNoType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesSetInviteNewUserPrefToNoType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesSetInviteNewUserPrefToNoType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesSetInviteNewUserPrefToNoType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainInvitesSetInviteNewUserPrefToNoType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesDetails.java new file mode 100644 index 000000000..12852a001 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Enabled "Automatically invite new users". + */ +public class DomainInvitesSetInviteNewUserPrefToYesDetails { + // struct team_log.DomainInvitesSetInviteNewUserPrefToYesDetails (team_log_generated.stone) + + + /** + * Enabled "Automatically invite new users". + */ + public DomainInvitesSetInviteNewUserPrefToYesDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesSetInviteNewUserPrefToYesDetails other = (DomainInvitesSetInviteNewUserPrefToYesDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesSetInviteNewUserPrefToYesDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesSetInviteNewUserPrefToYesDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesSetInviteNewUserPrefToYesDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new DomainInvitesSetInviteNewUserPrefToYesDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesType.java new file mode 100644 index 000000000..16815fe14 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainInvitesSetInviteNewUserPrefToYesType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainInvitesSetInviteNewUserPrefToYesType { + // struct team_log.DomainInvitesSetInviteNewUserPrefToYesType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainInvitesSetInviteNewUserPrefToYesType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainInvitesSetInviteNewUserPrefToYesType other = (DomainInvitesSetInviteNewUserPrefToYesType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainInvitesSetInviteNewUserPrefToYesType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainInvitesSetInviteNewUserPrefToYesType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainInvitesSetInviteNewUserPrefToYesType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainInvitesSetInviteNewUserPrefToYesType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailDetails.java new file mode 100644 index 000000000..645bd5b6a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Failed to verify team domain. + */ +public class DomainVerificationAddDomainFailDetails { + // struct team_log.DomainVerificationAddDomainFailDetails (team_log_generated.stone) + + @Nonnull + protected final String domainName; + @Nullable + protected final String verificationMethod; + + /** + * Failed to verify team domain. + * + * @param domainName Domain name. Must not be {@code null}. + * @param verificationMethod Domain name verification method. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationAddDomainFailDetails(@Nonnull String domainName, @Nullable String verificationMethod) { + if (domainName == null) { + throw new IllegalArgumentException("Required value for 'domainName' is null"); + } + this.domainName = domainName; + this.verificationMethod = verificationMethod; + } + + /** + * Failed to verify team domain. + * + *

The default values for unset fields will be used.

+ * + * @param domainName Domain name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationAddDomainFailDetails(@Nonnull String domainName) { + this(domainName, null); + } + + /** + * Domain name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDomainName() { + return domainName; + } + + /** + * Domain name verification method. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getVerificationMethod() { + return verificationMethod; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domainName, + this.verificationMethod + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainVerificationAddDomainFailDetails other = (DomainVerificationAddDomainFailDetails) obj; + return ((this.domainName == other.domainName) || (this.domainName.equals(other.domainName))) + && ((this.verificationMethod == other.verificationMethod) || (this.verificationMethod != null && this.verificationMethod.equals(other.verificationMethod))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainVerificationAddDomainFailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domain_name"); + StoneSerializers.string().serialize(value.domainName, g); + if (value.verificationMethod != null) { + g.writeFieldName("verification_method"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.verificationMethod, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainVerificationAddDomainFailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainVerificationAddDomainFailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_domainName = null; + String f_verificationMethod = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domain_name".equals(field)) { + f_domainName = StoneSerializers.string().deserialize(p); + } + else if ("verification_method".equals(field)) { + f_verificationMethod = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domainName == null) { + throw new JsonParseException(p, "Required field \"domain_name\" missing."); + } + value = new DomainVerificationAddDomainFailDetails(f_domainName, f_verificationMethod); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailType.java new file mode 100644 index 000000000..616b9efb2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainFailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainVerificationAddDomainFailType { + // struct team_log.DomainVerificationAddDomainFailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationAddDomainFailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainVerificationAddDomainFailType other = (DomainVerificationAddDomainFailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainVerificationAddDomainFailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainVerificationAddDomainFailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainVerificationAddDomainFailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainVerificationAddDomainFailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessDetails.java new file mode 100644 index 000000000..49be8be61 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessDetails.java @@ -0,0 +1,201 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Verified team domain. + */ +public class DomainVerificationAddDomainSuccessDetails { + // struct team_log.DomainVerificationAddDomainSuccessDetails (team_log_generated.stone) + + @Nonnull + protected final List domainNames; + @Nullable + protected final String verificationMethod; + + /** + * Verified team domain. + * + * @param domainNames Domain names. Must not contain a {@code null} item + * and not be {@code null}. + * @param verificationMethod Domain name verification method. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationAddDomainSuccessDetails(@Nonnull List domainNames, @Nullable String verificationMethod) { + if (domainNames == null) { + throw new IllegalArgumentException("Required value for 'domainNames' is null"); + } + for (String x : domainNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domainNames' is null"); + } + } + this.domainNames = domainNames; + this.verificationMethod = verificationMethod; + } + + /** + * Verified team domain. + * + *

The default values for unset fields will be used.

+ * + * @param domainNames Domain names. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationAddDomainSuccessDetails(@Nonnull List domainNames) { + this(domainNames, null); + } + + /** + * Domain names. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getDomainNames() { + return domainNames; + } + + /** + * Domain name verification method. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getVerificationMethod() { + return verificationMethod; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domainNames, + this.verificationMethod + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainVerificationAddDomainSuccessDetails other = (DomainVerificationAddDomainSuccessDetails) obj; + return ((this.domainNames == other.domainNames) || (this.domainNames.equals(other.domainNames))) + && ((this.verificationMethod == other.verificationMethod) || (this.verificationMethod != null && this.verificationMethod.equals(other.verificationMethod))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainVerificationAddDomainSuccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domain_names"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.domainNames, g); + if (value.verificationMethod != null) { + g.writeFieldName("verification_method"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.verificationMethod, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainVerificationAddDomainSuccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainVerificationAddDomainSuccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_domainNames = null; + String f_verificationMethod = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domain_names".equals(field)) { + f_domainNames = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("verification_method".equals(field)) { + f_verificationMethod = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domainNames == null) { + throw new JsonParseException(p, "Required field \"domain_names\" missing."); + } + value = new DomainVerificationAddDomainSuccessDetails(f_domainNames, f_verificationMethod); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessType.java new file mode 100644 index 000000000..602e5afe0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationAddDomainSuccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainVerificationAddDomainSuccessType { + // struct team_log.DomainVerificationAddDomainSuccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationAddDomainSuccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainVerificationAddDomainSuccessType other = (DomainVerificationAddDomainSuccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainVerificationAddDomainSuccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainVerificationAddDomainSuccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainVerificationAddDomainSuccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainVerificationAddDomainSuccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainDetails.java new file mode 100644 index 000000000..fcde74c51 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Removed domain from list of verified team domains. + */ +public class DomainVerificationRemoveDomainDetails { + // struct team_log.DomainVerificationRemoveDomainDetails (team_log_generated.stone) + + @Nonnull + protected final List domainNames; + + /** + * Removed domain from list of verified team domains. + * + * @param domainNames Domain names. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationRemoveDomainDetails(@Nonnull List domainNames) { + if (domainNames == null) { + throw new IllegalArgumentException("Required value for 'domainNames' is null"); + } + for (String x : domainNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'domainNames' is null"); + } + } + this.domainNames = domainNames; + } + + /** + * Domain names. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getDomainNames() { + return domainNames; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.domainNames + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainVerificationRemoveDomainDetails other = (DomainVerificationRemoveDomainDetails) obj; + return (this.domainNames == other.domainNames) || (this.domainNames.equals(other.domainNames)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainVerificationRemoveDomainDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("domain_names"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.domainNames, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainVerificationRemoveDomainDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainVerificationRemoveDomainDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_domainNames = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("domain_names".equals(field)) { + f_domainNames = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_domainNames == null) { + throw new JsonParseException(p, "Required field \"domain_names\" missing."); + } + value = new DomainVerificationRemoveDomainDetails(f_domainNames); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainType.java new file mode 100644 index 000000000..685500fb9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DomainVerificationRemoveDomainType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DomainVerificationRemoveDomainType { + // struct team_log.DomainVerificationRemoveDomainType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DomainVerificationRemoveDomainType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DomainVerificationRemoveDomainType other = (DomainVerificationRemoveDomainType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DomainVerificationRemoveDomainType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DomainVerificationRemoveDomainType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DomainVerificationRemoveDomainType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DomainVerificationRemoveDomainType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DownloadPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DownloadPolicyType.java new file mode 100644 index 000000000..e68b9bdfd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DownloadPolicyType.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Shared content downloads policy + */ +public enum DownloadPolicyType { + // union team_log.DownloadPolicyType (team_log_generated.stone) + ALLOW, + DISALLOW, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DownloadPolicyType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALLOW: { + g.writeString("allow"); + break; + } + case DISALLOW: { + g.writeString("disallow"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DownloadPolicyType deserialize(JsonParser p) throws IOException, JsonParseException { + DownloadPolicyType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("allow".equals(tag)) { + value = DownloadPolicyType.ALLOW; + } + else if ("disallow".equals(tag)) { + value = DownloadPolicyType.DISALLOW; + } + else { + value = DownloadPolicyType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsExportedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsExportedDetails.java new file mode 100644 index 000000000..4ca66e772 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsExportedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Exported passwords. + */ +public class DropboxPasswordsExportedDetails { + // struct team_log.DropboxPasswordsExportedDetails (team_log_generated.stone) + + @Nonnull + protected final String platform; + + /** + * Exported passwords. + * + * @param platform The platform the device runs export. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DropboxPasswordsExportedDetails(@Nonnull String platform) { + if (platform == null) { + throw new IllegalArgumentException("Required value for 'platform' is null"); + } + this.platform = platform; + } + + /** + * The platform the device runs export. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPlatform() { + return platform; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.platform + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DropboxPasswordsExportedDetails other = (DropboxPasswordsExportedDetails) obj; + return (this.platform == other.platform) || (this.platform.equals(other.platform)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DropboxPasswordsExportedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("platform"); + StoneSerializers.string().serialize(value.platform, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DropboxPasswordsExportedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DropboxPasswordsExportedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_platform = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("platform".equals(field)) { + f_platform = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_platform == null) { + throw new JsonParseException(p, "Required field \"platform\" missing."); + } + value = new DropboxPasswordsExportedDetails(f_platform); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsExportedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsExportedType.java new file mode 100644 index 000000000..740198c6c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsExportedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DropboxPasswordsExportedType { + // struct team_log.DropboxPasswordsExportedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DropboxPasswordsExportedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DropboxPasswordsExportedType other = (DropboxPasswordsExportedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DropboxPasswordsExportedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DropboxPasswordsExportedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DropboxPasswordsExportedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DropboxPasswordsExportedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledDetails.java new file mode 100644 index 000000000..690e61dde --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledDetails.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enrolled new Dropbox Passwords device. + */ +public class DropboxPasswordsNewDeviceEnrolledDetails { + // struct team_log.DropboxPasswordsNewDeviceEnrolledDetails (team_log_generated.stone) + + protected final boolean isFirstDevice; + @Nonnull + protected final String platform; + + /** + * Enrolled new Dropbox Passwords device. + * + * @param isFirstDevice Whether it's a first device enrolled. + * @param platform The platform the device is enrolled. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DropboxPasswordsNewDeviceEnrolledDetails(boolean isFirstDevice, @Nonnull String platform) { + this.isFirstDevice = isFirstDevice; + if (platform == null) { + throw new IllegalArgumentException("Required value for 'platform' is null"); + } + this.platform = platform; + } + + /** + * Whether it's a first device enrolled. + * + * @return value for this field. + */ + public boolean getIsFirstDevice() { + return isFirstDevice; + } + + /** + * The platform the device is enrolled. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPlatform() { + return platform; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isFirstDevice, + this.platform + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DropboxPasswordsNewDeviceEnrolledDetails other = (DropboxPasswordsNewDeviceEnrolledDetails) obj; + return (this.isFirstDevice == other.isFirstDevice) + && ((this.platform == other.platform) || (this.platform.equals(other.platform))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DropboxPasswordsNewDeviceEnrolledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("is_first_device"); + StoneSerializers.boolean_().serialize(value.isFirstDevice, g); + g.writeFieldName("platform"); + StoneSerializers.string().serialize(value.platform, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DropboxPasswordsNewDeviceEnrolledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DropboxPasswordsNewDeviceEnrolledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isFirstDevice = null; + String f_platform = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_first_device".equals(field)) { + f_isFirstDevice = StoneSerializers.boolean_().deserialize(p); + } + else if ("platform".equals(field)) { + f_platform = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_isFirstDevice == null) { + throw new JsonParseException(p, "Required field \"is_first_device\" missing."); + } + if (f_platform == null) { + throw new JsonParseException(p, "Required field \"platform\" missing."); + } + value = new DropboxPasswordsNewDeviceEnrolledDetails(f_isFirstDevice, f_platform); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledType.java new file mode 100644 index 000000000..63adcb91e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsNewDeviceEnrolledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DropboxPasswordsNewDeviceEnrolledType { + // struct team_log.DropboxPasswordsNewDeviceEnrolledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DropboxPasswordsNewDeviceEnrolledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DropboxPasswordsNewDeviceEnrolledType other = (DropboxPasswordsNewDeviceEnrolledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DropboxPasswordsNewDeviceEnrolledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DropboxPasswordsNewDeviceEnrolledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DropboxPasswordsNewDeviceEnrolledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DropboxPasswordsNewDeviceEnrolledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicy.java new file mode 100644 index 000000000..b22e18e90 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether team users can use Dropbox Passwords + */ +public enum DropboxPasswordsPolicy { + // union team_log.DropboxPasswordsPolicy (team_log_generated.stone) + DEFAULT, + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DropboxPasswordsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public DropboxPasswordsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + DropboxPasswordsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = DropboxPasswordsPolicy.DEFAULT; + } + else if ("disabled".equals(tag)) { + value = DropboxPasswordsPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = DropboxPasswordsPolicy.ENABLED; + } + else { + value = DropboxPasswordsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedDetails.java new file mode 100644 index 000000000..7036b7987 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed Dropbox Passwords policy for team. + */ +public class DropboxPasswordsPolicyChangedDetails { + // struct team_log.DropboxPasswordsPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final DropboxPasswordsPolicy newValue; + @Nonnull + protected final DropboxPasswordsPolicy previousValue; + + /** + * Changed Dropbox Passwords policy for team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DropboxPasswordsPolicyChangedDetails(@Nonnull DropboxPasswordsPolicy newValue, @Nonnull DropboxPasswordsPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DropboxPasswordsPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DropboxPasswordsPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DropboxPasswordsPolicyChangedDetails other = (DropboxPasswordsPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DropboxPasswordsPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + DropboxPasswordsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + DropboxPasswordsPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DropboxPasswordsPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DropboxPasswordsPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DropboxPasswordsPolicy f_newValue = null; + DropboxPasswordsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = DropboxPasswordsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = DropboxPasswordsPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new DropboxPasswordsPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedType.java new file mode 100644 index 000000000..c658bcf08 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DropboxPasswordsPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class DropboxPasswordsPolicyChangedType { + // struct team_log.DropboxPasswordsPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DropboxPasswordsPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DropboxPasswordsPolicyChangedType other = (DropboxPasswordsPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DropboxPasswordsPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DropboxPasswordsPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DropboxPasswordsPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new DropboxPasswordsPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DurationLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DurationLogInfo.java new file mode 100644 index 000000000..e4366bf9a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/DurationLogInfo.java @@ -0,0 +1,175 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Represents a time duration: unit and amount + */ +public class DurationLogInfo { + // struct team_log.DurationLogInfo (team_log_generated.stone) + + @Nonnull + protected final TimeUnit unit; + protected final long amount; + + /** + * Represents a time duration: unit and amount + * + * @param unit Time unit. Must not be {@code null}. + * @param amount Amount of time. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DurationLogInfo(@Nonnull TimeUnit unit, long amount) { + if (unit == null) { + throw new IllegalArgumentException("Required value for 'unit' is null"); + } + this.unit = unit; + this.amount = amount; + } + + /** + * Time unit. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TimeUnit getUnit() { + return unit; + } + + /** + * Amount of time. + * + * @return value for this field. + */ + public long getAmount() { + return amount; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.unit, + this.amount + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DurationLogInfo other = (DurationLogInfo) obj; + return ((this.unit == other.unit) || (this.unit.equals(other.unit))) + && (this.amount == other.amount) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DurationLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("unit"); + TimeUnit.Serializer.INSTANCE.serialize(value.unit, g); + g.writeFieldName("amount"); + StoneSerializers.uInt64().serialize(value.amount, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DurationLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DurationLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TimeUnit f_unit = null; + Long f_amount = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("unit".equals(field)) { + f_unit = TimeUnit.Serializer.INSTANCE.deserialize(p); + } + else if ("amount".equals(field)) { + f_amount = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_unit == null) { + throw new JsonParseException(p, "Required field \"unit\" missing."); + } + if (f_amount == null) { + throw new JsonParseException(p, "Required field \"amount\" missing."); + } + value = new DurationLogInfo(f_unit, f_amount); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicy.java new file mode 100644 index 000000000..d8e892f5b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether a team can use Email to Dropbox feature + */ +public enum EmailIngestPolicy { + // union team_log.EmailIngestPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmailIngestPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public EmailIngestPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + EmailIngestPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = EmailIngestPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = EmailIngestPolicy.ENABLED; + } + else { + value = EmailIngestPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedDetails.java new file mode 100644 index 000000000..bd16770c5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed email to Dropbox policy for team. + */ +public class EmailIngestPolicyChangedDetails { + // struct team_log.EmailIngestPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final EmailIngestPolicy newValue; + @Nonnull + protected final EmailIngestPolicy previousValue; + + /** + * Changed email to Dropbox policy for team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmailIngestPolicyChangedDetails(@Nonnull EmailIngestPolicy newValue, @Nonnull EmailIngestPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EmailIngestPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EmailIngestPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmailIngestPolicyChangedDetails other = (EmailIngestPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmailIngestPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + EmailIngestPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + EmailIngestPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmailIngestPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmailIngestPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + EmailIngestPolicy f_newValue = null; + EmailIngestPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = EmailIngestPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = EmailIngestPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new EmailIngestPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedType.java new file mode 100644 index 000000000..b6a4cb8f8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmailIngestPolicyChangedType { + // struct team_log.EmailIngestPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmailIngestPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmailIngestPolicyChangedType other = (EmailIngestPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmailIngestPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmailIngestPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmailIngestPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmailIngestPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails.java new file mode 100644 index 000000000..20268ba15 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestReceiveFileDetails.java @@ -0,0 +1,387 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Received files via Email to Dropbox. + */ +public class EmailIngestReceiveFileDetails { + // struct team_log.EmailIngestReceiveFileDetails (team_log_generated.stone) + + @Nonnull + protected final String inboxName; + @Nonnull + protected final List attachmentNames; + @Nullable + protected final String subject; + @Nullable + protected final String fromName; + @Nullable + protected final String fromEmail; + + /** + * Received files via Email to Dropbox. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param inboxName Inbox name. Must not be {@code null}. + * @param attachmentNames Submitted file names. Must not contain a {@code + * null} item and not be {@code null}. + * @param subject Subject of the email. + * @param fromName The name as provided by the submitter. + * @param fromEmail The email as provided by the submitter. Must have + * length of at most 255. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmailIngestReceiveFileDetails(@Nonnull String inboxName, @Nonnull List attachmentNames, @Nullable String subject, @Nullable String fromName, @Nullable String fromEmail) { + if (inboxName == null) { + throw new IllegalArgumentException("Required value for 'inboxName' is null"); + } + this.inboxName = inboxName; + if (attachmentNames == null) { + throw new IllegalArgumentException("Required value for 'attachmentNames' is null"); + } + for (String x : attachmentNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'attachmentNames' is null"); + } + } + this.attachmentNames = attachmentNames; + this.subject = subject; + this.fromName = fromName; + if (fromEmail != null) { + if (fromEmail.length() > 255) { + throw new IllegalArgumentException("String 'fromEmail' is longer than 255"); + } + } + this.fromEmail = fromEmail; + } + + /** + * Received files via Email to Dropbox. + * + *

The default values for unset fields will be used.

+ * + * @param inboxName Inbox name. Must not be {@code null}. + * @param attachmentNames Submitted file names. Must not contain a {@code + * null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmailIngestReceiveFileDetails(@Nonnull String inboxName, @Nonnull List attachmentNames) { + this(inboxName, attachmentNames, null, null, null); + } + + /** + * Inbox name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getInboxName() { + return inboxName; + } + + /** + * Submitted file names. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAttachmentNames() { + return attachmentNames; + } + + /** + * Subject of the email. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSubject() { + return subject; + } + + /** + * The name as provided by the submitter. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFromName() { + return fromName; + } + + /** + * The email as provided by the submitter. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFromEmail() { + return fromEmail; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param inboxName Inbox name. Must not be {@code null}. + * @param attachmentNames Submitted file names. Must not contain a {@code + * null} item and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String inboxName, List attachmentNames) { + return new Builder(inboxName, attachmentNames); + } + + /** + * Builder for {@link EmailIngestReceiveFileDetails}. + */ + public static class Builder { + protected final String inboxName; + protected final List attachmentNames; + + protected String subject; + protected String fromName; + protected String fromEmail; + + protected Builder(String inboxName, List attachmentNames) { + if (inboxName == null) { + throw new IllegalArgumentException("Required value for 'inboxName' is null"); + } + this.inboxName = inboxName; + if (attachmentNames == null) { + throw new IllegalArgumentException("Required value for 'attachmentNames' is null"); + } + for (String x : attachmentNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'attachmentNames' is null"); + } + } + this.attachmentNames = attachmentNames; + this.subject = null; + this.fromName = null; + this.fromEmail = null; + } + + /** + * Set value for optional field. + * + * @param subject Subject of the email. + * + * @return this builder + */ + public Builder withSubject(String subject) { + this.subject = subject; + return this; + } + + /** + * Set value for optional field. + * + * @param fromName The name as provided by the submitter. + * + * @return this builder + */ + public Builder withFromName(String fromName) { + this.fromName = fromName; + return this; + } + + /** + * Set value for optional field. + * + * @param fromEmail The email as provided by the submitter. Must have + * length of at most 255. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFromEmail(String fromEmail) { + if (fromEmail != null) { + if (fromEmail.length() > 255) { + throw new IllegalArgumentException("String 'fromEmail' is longer than 255"); + } + } + this.fromEmail = fromEmail; + return this; + } + + /** + * Builds an instance of {@link EmailIngestReceiveFileDetails} + * configured with this builder's values + * + * @return new instance of {@link EmailIngestReceiveFileDetails} + */ + public EmailIngestReceiveFileDetails build() { + return new EmailIngestReceiveFileDetails(inboxName, attachmentNames, subject, fromName, fromEmail); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.inboxName, + this.attachmentNames, + this.subject, + this.fromName, + this.fromEmail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmailIngestReceiveFileDetails other = (EmailIngestReceiveFileDetails) obj; + return ((this.inboxName == other.inboxName) || (this.inboxName.equals(other.inboxName))) + && ((this.attachmentNames == other.attachmentNames) || (this.attachmentNames.equals(other.attachmentNames))) + && ((this.subject == other.subject) || (this.subject != null && this.subject.equals(other.subject))) + && ((this.fromName == other.fromName) || (this.fromName != null && this.fromName.equals(other.fromName))) + && ((this.fromEmail == other.fromEmail) || (this.fromEmail != null && this.fromEmail.equals(other.fromEmail))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmailIngestReceiveFileDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("inbox_name"); + StoneSerializers.string().serialize(value.inboxName, g); + g.writeFieldName("attachment_names"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.attachmentNames, g); + if (value.subject != null) { + g.writeFieldName("subject"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.subject, g); + } + if (value.fromName != null) { + g.writeFieldName("from_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fromName, g); + } + if (value.fromEmail != null) { + g.writeFieldName("from_email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fromEmail, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmailIngestReceiveFileDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmailIngestReceiveFileDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_inboxName = null; + List f_attachmentNames = null; + String f_subject = null; + String f_fromName = null; + String f_fromEmail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("inbox_name".equals(field)) { + f_inboxName = StoneSerializers.string().deserialize(p); + } + else if ("attachment_names".equals(field)) { + f_attachmentNames = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("subject".equals(field)) { + f_subject = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("from_name".equals(field)) { + f_fromName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("from_email".equals(field)) { + f_fromEmail = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_inboxName == null) { + throw new JsonParseException(p, "Required field \"inbox_name\" missing."); + } + if (f_attachmentNames == null) { + throw new JsonParseException(p, "Required field \"attachment_names\" missing."); + } + value = new EmailIngestReceiveFileDetails(f_inboxName, f_attachmentNames, f_subject, f_fromName, f_fromEmail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestReceiveFileType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestReceiveFileType.java new file mode 100644 index 000000000..199be42dc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmailIngestReceiveFileType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmailIngestReceiveFileType { + // struct team_log.EmailIngestReceiveFileType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmailIngestReceiveFileType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmailIngestReceiveFileType other = (EmailIngestReceiveFileType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmailIngestReceiveFileType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmailIngestReceiveFileType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmailIngestReceiveFileType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmailIngestReceiveFileType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmAddExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmAddExceptionDetails.java new file mode 100644 index 000000000..c1b36a83e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmAddExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added members to EMM exception list. + */ +public class EmmAddExceptionDetails { + // struct team_log.EmmAddExceptionDetails (team_log_generated.stone) + + + /** + * Added members to EMM exception list. + */ + public EmmAddExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmAddExceptionDetails other = (EmmAddExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmAddExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmAddExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmAddExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new EmmAddExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmAddExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmAddExceptionType.java new file mode 100644 index 000000000..b1e0eecbf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmAddExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmmAddExceptionType { + // struct team_log.EmmAddExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmAddExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmAddExceptionType other = (EmmAddExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmAddExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmAddExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmAddExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmmAddExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmChangePolicyDetails.java new file mode 100644 index 000000000..9059c2906 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmChangePolicyDetails.java @@ -0,0 +1,196 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.EmmState; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled enterprise mobility management for members. + */ +public class EmmChangePolicyDetails { + // struct team_log.EmmChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final EmmState newValue; + @Nullable + protected final EmmState previousValue; + + /** + * Enabled/disabled enterprise mobility management for members. + * + * @param newValue New enterprise mobility management policy. Must not be + * {@code null}. + * @param previousValue Previous enterprise mobility management policy. + * Might be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmChangePolicyDetails(@Nonnull EmmState newValue, @Nullable EmmState previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled enterprise mobility management for members. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New enterprise mobility management policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmChangePolicyDetails(@Nonnull EmmState newValue) { + this(newValue, null); + } + + /** + * New enterprise mobility management policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EmmState getNewValue() { + return newValue; + } + + /** + * Previous enterprise mobility management policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public EmmState getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmChangePolicyDetails other = (EmmChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + EmmState.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(EmmState.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + EmmState f_newValue = null; + EmmState f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = EmmState.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(EmmState.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new EmmChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmChangePolicyType.java new file mode 100644 index 000000000..7e9a796f4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmmChangePolicyType { + // struct team_log.EmmChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmChangePolicyType other = (EmmChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmmChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportDetails.java new file mode 100644 index 000000000..8d8607c06 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created EMM-excluded users report. + */ +public class EmmCreateExceptionsReportDetails { + // struct team_log.EmmCreateExceptionsReportDetails (team_log_generated.stone) + + + /** + * Created EMM-excluded users report. + */ + public EmmCreateExceptionsReportDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmCreateExceptionsReportDetails other = (EmmCreateExceptionsReportDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmCreateExceptionsReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmCreateExceptionsReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmCreateExceptionsReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new EmmCreateExceptionsReportDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportType.java new file mode 100644 index 000000000..460c24a9f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateExceptionsReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmmCreateExceptionsReportType { + // struct team_log.EmmCreateExceptionsReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmCreateExceptionsReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmCreateExceptionsReportType other = (EmmCreateExceptionsReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmCreateExceptionsReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmCreateExceptionsReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmCreateExceptionsReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmmCreateExceptionsReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateUsageReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateUsageReportDetails.java new file mode 100644 index 000000000..c9f1895ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateUsageReportDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created EMM mobile app usage report. + */ +public class EmmCreateUsageReportDetails { + // struct team_log.EmmCreateUsageReportDetails (team_log_generated.stone) + + + /** + * Created EMM mobile app usage report. + */ + public EmmCreateUsageReportDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmCreateUsageReportDetails other = (EmmCreateUsageReportDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmCreateUsageReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmCreateUsageReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmCreateUsageReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new EmmCreateUsageReportDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateUsageReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateUsageReportType.java new file mode 100644 index 000000000..ce90c76cb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmCreateUsageReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmmCreateUsageReportType { + // struct team_log.EmmCreateUsageReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmCreateUsageReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmCreateUsageReportType other = (EmmCreateUsageReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmCreateUsageReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmCreateUsageReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmCreateUsageReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmmCreateUsageReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmErrorDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmErrorDetails.java new file mode 100644 index 000000000..5b15a0bb5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmErrorDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Failed to sign in via EMM. + */ +public class EmmErrorDetails { + // struct team_log.EmmErrorDetails (team_log_generated.stone) + + @Nonnull + protected final FailureDetailsLogInfo errorDetails; + + /** + * Failed to sign in via EMM. + * + * @param errorDetails Error details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmErrorDetails(@Nonnull FailureDetailsLogInfo errorDetails) { + if (errorDetails == null) { + throw new IllegalArgumentException("Required value for 'errorDetails' is null"); + } + this.errorDetails = errorDetails; + } + + /** + * Error details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FailureDetailsLogInfo getErrorDetails() { + return errorDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.errorDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmErrorDetails other = (EmmErrorDetails) obj; + return (this.errorDetails == other.errorDetails) || (this.errorDetails.equals(other.errorDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmErrorDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("error_details"); + FailureDetailsLogInfo.Serializer.INSTANCE.serialize(value.errorDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmErrorDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmErrorDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FailureDetailsLogInfo f_errorDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("error_details".equals(field)) { + f_errorDetails = FailureDetailsLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_errorDetails == null) { + throw new JsonParseException(p, "Required field \"error_details\" missing."); + } + value = new EmmErrorDetails(f_errorDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmErrorType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmErrorType.java new file mode 100644 index 000000000..91f037b25 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmErrorType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmmErrorType { + // struct team_log.EmmErrorType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmErrorType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmErrorType other = (EmmErrorType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmErrorType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmErrorType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmErrorType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmmErrorType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenDetails.java new file mode 100644 index 000000000..766e02665 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Refreshed auth token used for setting up EMM. + */ +public class EmmRefreshAuthTokenDetails { + // struct team_log.EmmRefreshAuthTokenDetails (team_log_generated.stone) + + + /** + * Refreshed auth token used for setting up EMM. + */ + public EmmRefreshAuthTokenDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmRefreshAuthTokenDetails other = (EmmRefreshAuthTokenDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmRefreshAuthTokenDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmRefreshAuthTokenDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmRefreshAuthTokenDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new EmmRefreshAuthTokenDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenType.java new file mode 100644 index 000000000..0e65b1d02 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRefreshAuthTokenType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmmRefreshAuthTokenType { + // struct team_log.EmmRefreshAuthTokenType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmRefreshAuthTokenType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmRefreshAuthTokenType other = (EmmRefreshAuthTokenType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmRefreshAuthTokenType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmRefreshAuthTokenType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmRefreshAuthTokenType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmmRefreshAuthTokenType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRemoveExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRemoveExceptionDetails.java new file mode 100644 index 000000000..df64842a5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRemoveExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed members from EMM exception list. + */ +public class EmmRemoveExceptionDetails { + // struct team_log.EmmRemoveExceptionDetails (team_log_generated.stone) + + + /** + * Removed members from EMM exception list. + */ + public EmmRemoveExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmRemoveExceptionDetails other = (EmmRemoveExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmRemoveExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmRemoveExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmRemoveExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new EmmRemoveExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRemoveExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRemoveExceptionType.java new file mode 100644 index 000000000..0d9af1e9a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EmmRemoveExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EmmRemoveExceptionType { + // struct team_log.EmmRemoveExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EmmRemoveExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EmmRemoveExceptionType other = (EmmRemoveExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmRemoveExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EmmRemoveExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EmmRemoveExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EmmRemoveExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnabledDomainInvitesDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnabledDomainInvitesDetails.java new file mode 100644 index 000000000..7482dd716 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnabledDomainInvitesDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Enabled domain invites. + */ +public class EnabledDomainInvitesDetails { + // struct team_log.EnabledDomainInvitesDetails (team_log_generated.stone) + + + /** + * Enabled domain invites. + */ + public EnabledDomainInvitesDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EnabledDomainInvitesDetails other = (EnabledDomainInvitesDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EnabledDomainInvitesDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EnabledDomainInvitesDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EnabledDomainInvitesDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new EnabledDomainInvitesDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnabledDomainInvitesType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnabledDomainInvitesType.java new file mode 100644 index 000000000..9a13c1985 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnabledDomainInvitesType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EnabledDomainInvitesType { + // struct team_log.EnabledDomainInvitesType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EnabledDomainInvitesType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EnabledDomainInvitesType other = (EnabledDomainInvitesType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EnabledDomainInvitesType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EnabledDomainInvitesType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EnabledDomainInvitesType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EnabledDomainInvitesType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedDetails.java new file mode 100644 index 000000000..2e2842918 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Ended enterprise admin session. + */ +public class EndedEnterpriseAdminSessionDeprecatedDetails { + // struct team_log.EndedEnterpriseAdminSessionDeprecatedDetails (team_log_generated.stone) + + @Nonnull + protected final FedExtraDetails federationExtraDetails; + + /** + * Ended enterprise admin session. + * + * @param federationExtraDetails More information about the organization or + * team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EndedEnterpriseAdminSessionDeprecatedDetails(@Nonnull FedExtraDetails federationExtraDetails) { + if (federationExtraDetails == null) { + throw new IllegalArgumentException("Required value for 'federationExtraDetails' is null"); + } + this.federationExtraDetails = federationExtraDetails; + } + + /** + * More information about the organization or team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FedExtraDetails getFederationExtraDetails() { + return federationExtraDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.federationExtraDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EndedEnterpriseAdminSessionDeprecatedDetails other = (EndedEnterpriseAdminSessionDeprecatedDetails) obj; + return (this.federationExtraDetails == other.federationExtraDetails) || (this.federationExtraDetails.equals(other.federationExtraDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EndedEnterpriseAdminSessionDeprecatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("federation_extra_details"); + FedExtraDetails.Serializer.INSTANCE.serialize(value.federationExtraDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EndedEnterpriseAdminSessionDeprecatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EndedEnterpriseAdminSessionDeprecatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FedExtraDetails f_federationExtraDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("federation_extra_details".equals(field)) { + f_federationExtraDetails = FedExtraDetails.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_federationExtraDetails == null) { + throw new JsonParseException(p, "Required field \"federation_extra_details\" missing."); + } + value = new EndedEnterpriseAdminSessionDeprecatedDetails(f_federationExtraDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedType.java new file mode 100644 index 000000000..627af055e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDeprecatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EndedEnterpriseAdminSessionDeprecatedType { + // struct team_log.EndedEnterpriseAdminSessionDeprecatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EndedEnterpriseAdminSessionDeprecatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EndedEnterpriseAdminSessionDeprecatedType other = (EndedEnterpriseAdminSessionDeprecatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EndedEnterpriseAdminSessionDeprecatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EndedEnterpriseAdminSessionDeprecatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EndedEnterpriseAdminSessionDeprecatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EndedEnterpriseAdminSessionDeprecatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDetails.java new file mode 100644 index 000000000..853656cff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Ended enterprise admin session. + */ +public class EndedEnterpriseAdminSessionDetails { + // struct team_log.EndedEnterpriseAdminSessionDetails (team_log_generated.stone) + + + /** + * Ended enterprise admin session. + */ + public EndedEnterpriseAdminSessionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EndedEnterpriseAdminSessionDetails other = (EndedEnterpriseAdminSessionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EndedEnterpriseAdminSessionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EndedEnterpriseAdminSessionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EndedEnterpriseAdminSessionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new EndedEnterpriseAdminSessionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionType.java new file mode 100644 index 000000000..cef321296 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EndedEnterpriseAdminSessionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EndedEnterpriseAdminSessionType { + // struct team_log.EndedEnterpriseAdminSessionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EndedEnterpriseAdminSessionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EndedEnterpriseAdminSessionType other = (EndedEnterpriseAdminSessionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EndedEnterpriseAdminSessionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EndedEnterpriseAdminSessionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EndedEnterpriseAdminSessionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EndedEnterpriseAdminSessionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy.java new file mode 100644 index 000000000..f73cf4257 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnforceLinkPasswordPolicy.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether password must be enforced when an externally + * shared link is updated + */ +public enum EnforceLinkPasswordPolicy { + // union team_log.EnforceLinkPasswordPolicy (team_log_generated.stone) + OPTIONAL, + REQUIRED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EnforceLinkPasswordPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case OPTIONAL: { + g.writeString("optional"); + break; + } + case REQUIRED: { + g.writeString("required"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public EnforceLinkPasswordPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + EnforceLinkPasswordPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("optional".equals(tag)) { + value = EnforceLinkPasswordPolicy.OPTIONAL; + } + else if ("required".equals(tag)) { + value = EnforceLinkPasswordPolicy.REQUIRED; + } + else { + value = EnforceLinkPasswordPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingDetails.java new file mode 100644 index 000000000..ffa40a4a6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingDetails.java @@ -0,0 +1,238 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed who can update a setting. + */ +public class EnterpriseSettingsLockingDetails { + // struct team_log.EnterpriseSettingsLockingDetails (team_log_generated.stone) + + @Nonnull + protected final String teamName; + @Nonnull + protected final String settingsPageName; + @Nonnull + protected final String previousSettingsPageLockingState; + @Nonnull + protected final String newSettingsPageLockingState; + + /** + * Changed who can update a setting. + * + * @param teamName The secondary team name. Must not be {@code null}. + * @param settingsPageName Settings page name. Must not be {@code null}. + * @param previousSettingsPageLockingState Previous locked settings page + * state. Must not be {@code null}. + * @param newSettingsPageLockingState New locked settings page state. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EnterpriseSettingsLockingDetails(@Nonnull String teamName, @Nonnull String settingsPageName, @Nonnull String previousSettingsPageLockingState, @Nonnull String newSettingsPageLockingState) { + if (teamName == null) { + throw new IllegalArgumentException("Required value for 'teamName' is null"); + } + this.teamName = teamName; + if (settingsPageName == null) { + throw new IllegalArgumentException("Required value for 'settingsPageName' is null"); + } + this.settingsPageName = settingsPageName; + if (previousSettingsPageLockingState == null) { + throw new IllegalArgumentException("Required value for 'previousSettingsPageLockingState' is null"); + } + this.previousSettingsPageLockingState = previousSettingsPageLockingState; + if (newSettingsPageLockingState == null) { + throw new IllegalArgumentException("Required value for 'newSettingsPageLockingState' is null"); + } + this.newSettingsPageLockingState = newSettingsPageLockingState; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamName() { + return teamName; + } + + /** + * Settings page name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSettingsPageName() { + return settingsPageName; + } + + /** + * Previous locked settings page state. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousSettingsPageLockingState() { + return previousSettingsPageLockingState; + } + + /** + * New locked settings page state. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewSettingsPageLockingState() { + return newSettingsPageLockingState; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamName, + this.settingsPageName, + this.previousSettingsPageLockingState, + this.newSettingsPageLockingState + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EnterpriseSettingsLockingDetails other = (EnterpriseSettingsLockingDetails) obj; + return ((this.teamName == other.teamName) || (this.teamName.equals(other.teamName))) + && ((this.settingsPageName == other.settingsPageName) || (this.settingsPageName.equals(other.settingsPageName))) + && ((this.previousSettingsPageLockingState == other.previousSettingsPageLockingState) || (this.previousSettingsPageLockingState.equals(other.previousSettingsPageLockingState))) + && ((this.newSettingsPageLockingState == other.newSettingsPageLockingState) || (this.newSettingsPageLockingState.equals(other.newSettingsPageLockingState))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EnterpriseSettingsLockingDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_name"); + StoneSerializers.string().serialize(value.teamName, g); + g.writeFieldName("settings_page_name"); + StoneSerializers.string().serialize(value.settingsPageName, g); + g.writeFieldName("previous_settings_page_locking_state"); + StoneSerializers.string().serialize(value.previousSettingsPageLockingState, g); + g.writeFieldName("new_settings_page_locking_state"); + StoneSerializers.string().serialize(value.newSettingsPageLockingState, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EnterpriseSettingsLockingDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EnterpriseSettingsLockingDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamName = null; + String f_settingsPageName = null; + String f_previousSettingsPageLockingState = null; + String f_newSettingsPageLockingState = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_name".equals(field)) { + f_teamName = StoneSerializers.string().deserialize(p); + } + else if ("settings_page_name".equals(field)) { + f_settingsPageName = StoneSerializers.string().deserialize(p); + } + else if ("previous_settings_page_locking_state".equals(field)) { + f_previousSettingsPageLockingState = StoneSerializers.string().deserialize(p); + } + else if ("new_settings_page_locking_state".equals(field)) { + f_newSettingsPageLockingState = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamName == null) { + throw new JsonParseException(p, "Required field \"team_name\" missing."); + } + if (f_settingsPageName == null) { + throw new JsonParseException(p, "Required field \"settings_page_name\" missing."); + } + if (f_previousSettingsPageLockingState == null) { + throw new JsonParseException(p, "Required field \"previous_settings_page_locking_state\" missing."); + } + if (f_newSettingsPageLockingState == null) { + throw new JsonParseException(p, "Required field \"new_settings_page_locking_state\" missing."); + } + value = new EnterpriseSettingsLockingDetails(f_teamName, f_settingsPageName, f_previousSettingsPageLockingState, f_newSettingsPageLockingState); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingType.java new file mode 100644 index 000000000..81fd7fdfa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EnterpriseSettingsLockingType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class EnterpriseSettingsLockingType { + // struct team_log.EnterpriseSettingsLockingType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public EnterpriseSettingsLockingType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + EnterpriseSettingsLockingType other = (EnterpriseSettingsLockingType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EnterpriseSettingsLockingType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public EnterpriseSettingsLockingType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + EnterpriseSettingsLockingType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new EnterpriseSettingsLockingType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventCategory.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventCategory.java new file mode 100644 index 000000000..6565ccee9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventCategory.java @@ -0,0 +1,334 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Category of events in event audit log. + */ +public enum EventCategory { + // union team_log.EventCategory (team_log_generated.stone) + /** + * Events that involve team related alerts. + */ + ADMIN_ALERTING, + /** + * Events that apply to management of linked apps. + */ + APPS, + /** + * Events that have to do with comments on files and Paper documents. + */ + COMMENTS, + /** + * Events that involve data governance actions + */ + DATA_GOVERNANCE, + /** + * Events that apply to linked devices on mobile, desktop and Web platforms. + */ + DEVICES, + /** + * Events that involve domain management feature: domain verification, + * invite enforcement and account capture. + */ + DOMAINS, + /** + * Events that involve encryption. + */ + ENCRYPTION, + /** + * Events that have to do with filesystem operations on files and folders: + * copy, move, delete, etc. + */ + FILE_OPERATIONS, + /** + * Events that apply to the file requests feature. + */ + FILE_REQUESTS, + /** + * Events that involve group management. + */ + GROUPS, + /** + * Events that involve users signing in to or out of Dropbox. + */ + LOGINS, + /** + * Events that involve team member management. + */ + MEMBERS, + /** + * Events that apply to Dropbox Paper. + */ + PAPER, + /** + * Events that involve using, changing or resetting passwords. + */ + PASSWORDS, + /** + * Events that concern generation of admin reports, including team activity + * and device usage. + */ + REPORTS, + /** + * Events that apply to all types of sharing and collaboration. + */ + SHARING, + /** + * Events that apply to Dropbox Showcase. + */ + SHOWCASE, + /** + * Events that involve using or configuring single sign-on as well as + * administrative policies concerning single sign-on. + */ + SSO, + /** + * Events that involve team folder management. + */ + TEAM_FOLDERS, + /** + * Events that involve a change in team-wide policies. + */ + TEAM_POLICIES, + /** + * Events that involve a change in the team profile. + */ + TEAM_PROFILE, + /** + * Events that involve using or configuring two factor authentication as + * well as administrative policies concerning two factor authentication. + */ + TFA, + /** + * Events that apply to cross-team trust establishment. + */ + TRUSTED_TEAMS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EventCategory value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ADMIN_ALERTING: { + g.writeString("admin_alerting"); + break; + } + case APPS: { + g.writeString("apps"); + break; + } + case COMMENTS: { + g.writeString("comments"); + break; + } + case DATA_GOVERNANCE: { + g.writeString("data_governance"); + break; + } + case DEVICES: { + g.writeString("devices"); + break; + } + case DOMAINS: { + g.writeString("domains"); + break; + } + case ENCRYPTION: { + g.writeString("encryption"); + break; + } + case FILE_OPERATIONS: { + g.writeString("file_operations"); + break; + } + case FILE_REQUESTS: { + g.writeString("file_requests"); + break; + } + case GROUPS: { + g.writeString("groups"); + break; + } + case LOGINS: { + g.writeString("logins"); + break; + } + case MEMBERS: { + g.writeString("members"); + break; + } + case PAPER: { + g.writeString("paper"); + break; + } + case PASSWORDS: { + g.writeString("passwords"); + break; + } + case REPORTS: { + g.writeString("reports"); + break; + } + case SHARING: { + g.writeString("sharing"); + break; + } + case SHOWCASE: { + g.writeString("showcase"); + break; + } + case SSO: { + g.writeString("sso"); + break; + } + case TEAM_FOLDERS: { + g.writeString("team_folders"); + break; + } + case TEAM_POLICIES: { + g.writeString("team_policies"); + break; + } + case TEAM_PROFILE: { + g.writeString("team_profile"); + break; + } + case TFA: { + g.writeString("tfa"); + break; + } + case TRUSTED_TEAMS: { + g.writeString("trusted_teams"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public EventCategory deserialize(JsonParser p) throws IOException, JsonParseException { + EventCategory value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admin_alerting".equals(tag)) { + value = EventCategory.ADMIN_ALERTING; + } + else if ("apps".equals(tag)) { + value = EventCategory.APPS; + } + else if ("comments".equals(tag)) { + value = EventCategory.COMMENTS; + } + else if ("data_governance".equals(tag)) { + value = EventCategory.DATA_GOVERNANCE; + } + else if ("devices".equals(tag)) { + value = EventCategory.DEVICES; + } + else if ("domains".equals(tag)) { + value = EventCategory.DOMAINS; + } + else if ("encryption".equals(tag)) { + value = EventCategory.ENCRYPTION; + } + else if ("file_operations".equals(tag)) { + value = EventCategory.FILE_OPERATIONS; + } + else if ("file_requests".equals(tag)) { + value = EventCategory.FILE_REQUESTS; + } + else if ("groups".equals(tag)) { + value = EventCategory.GROUPS; + } + else if ("logins".equals(tag)) { + value = EventCategory.LOGINS; + } + else if ("members".equals(tag)) { + value = EventCategory.MEMBERS; + } + else if ("paper".equals(tag)) { + value = EventCategory.PAPER; + } + else if ("passwords".equals(tag)) { + value = EventCategory.PASSWORDS; + } + else if ("reports".equals(tag)) { + value = EventCategory.REPORTS; + } + else if ("sharing".equals(tag)) { + value = EventCategory.SHARING; + } + else if ("showcase".equals(tag)) { + value = EventCategory.SHOWCASE; + } + else if ("sso".equals(tag)) { + value = EventCategory.SSO; + } + else if ("team_folders".equals(tag)) { + value = EventCategory.TEAM_FOLDERS; + } + else if ("team_policies".equals(tag)) { + value = EventCategory.TEAM_POLICIES; + } + else if ("team_profile".equals(tag)) { + value = EventCategory.TEAM_PROFILE; + } + else if ("tfa".equals(tag)) { + value = EventCategory.TFA; + } + else if ("trusted_teams".equals(tag)) { + value = EventCategory.TRUSTED_TEAMS; + } + else { + value = EventCategory.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventDetails.java new file mode 100644 index 000000000..f54090b7f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventDetails.java @@ -0,0 +1,41677 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Additional fields depending on the event type. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class EventDetails { + // union team_log.EventDetails (team_log_generated.stone) + + /** + * Discriminating tag type for {@link EventDetails}. + */ + public enum Tag { + ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS, // AdminAlertingAlertStateChangedDetails + ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS, // AdminAlertingChangedAlertConfigDetails + ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS, // AdminAlertingTriggeredAlertDetails + RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS, // RansomwareRestoreProcessCompletedDetails + RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS, // RansomwareRestoreProcessStartedDetails + APP_BLOCKED_BY_PERMISSIONS_DETAILS, // AppBlockedByPermissionsDetails + APP_LINK_TEAM_DETAILS, // AppLinkTeamDetails + APP_LINK_USER_DETAILS, // AppLinkUserDetails + APP_UNLINK_TEAM_DETAILS, // AppUnlinkTeamDetails + APP_UNLINK_USER_DETAILS, // AppUnlinkUserDetails + INTEGRATION_CONNECTED_DETAILS, // IntegrationConnectedDetails + INTEGRATION_DISCONNECTED_DETAILS, // IntegrationDisconnectedDetails + FILE_ADD_COMMENT_DETAILS, // FileAddCommentDetails + FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS, // FileChangeCommentSubscriptionDetails + FILE_DELETE_COMMENT_DETAILS, // FileDeleteCommentDetails + FILE_EDIT_COMMENT_DETAILS, // FileEditCommentDetails + FILE_LIKE_COMMENT_DETAILS, // FileLikeCommentDetails + FILE_RESOLVE_COMMENT_DETAILS, // FileResolveCommentDetails + FILE_UNLIKE_COMMENT_DETAILS, // FileUnlikeCommentDetails + FILE_UNRESOLVE_COMMENT_DETAILS, // FileUnresolveCommentDetails + GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS, // GovernancePolicyAddFoldersDetails + GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS, // GovernancePolicyAddFolderFailedDetails + GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS, // GovernancePolicyContentDisposedDetails + GOVERNANCE_POLICY_CREATE_DETAILS, // GovernancePolicyCreateDetails + GOVERNANCE_POLICY_DELETE_DETAILS, // GovernancePolicyDeleteDetails + GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS, // GovernancePolicyEditDetailsDetails + GOVERNANCE_POLICY_EDIT_DURATION_DETAILS, // GovernancePolicyEditDurationDetails + GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS, // GovernancePolicyExportCreatedDetails + GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS, // GovernancePolicyExportRemovedDetails + GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS, // GovernancePolicyRemoveFoldersDetails + GOVERNANCE_POLICY_REPORT_CREATED_DETAILS, // GovernancePolicyReportCreatedDetails + GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS, // GovernancePolicyZipPartDownloadedDetails + LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS, // LegalHoldsActivateAHoldDetails + LEGAL_HOLDS_ADD_MEMBERS_DETAILS, // LegalHoldsAddMembersDetails + LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS, // LegalHoldsChangeHoldDetailsDetails + LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS, // LegalHoldsChangeHoldNameDetails + LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS, // LegalHoldsExportAHoldDetails + LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS, // LegalHoldsExportCancelledDetails + LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS, // LegalHoldsExportDownloadedDetails + LEGAL_HOLDS_EXPORT_REMOVED_DETAILS, // LegalHoldsExportRemovedDetails + LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS, // LegalHoldsReleaseAHoldDetails + LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS, // LegalHoldsRemoveMembersDetails + LEGAL_HOLDS_REPORT_A_HOLD_DETAILS, // LegalHoldsReportAHoldDetails + DEVICE_CHANGE_IP_DESKTOP_DETAILS, // DeviceChangeIpDesktopDetails + DEVICE_CHANGE_IP_MOBILE_DETAILS, // DeviceChangeIpMobileDetails + DEVICE_CHANGE_IP_WEB_DETAILS, // DeviceChangeIpWebDetails + DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS, // DeviceDeleteOnUnlinkFailDetails + DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS, // DeviceDeleteOnUnlinkSuccessDetails + DEVICE_LINK_FAIL_DETAILS, // DeviceLinkFailDetails + DEVICE_LINK_SUCCESS_DETAILS, // DeviceLinkSuccessDetails + DEVICE_MANAGEMENT_DISABLED_DETAILS, // DeviceManagementDisabledDetails + DEVICE_MANAGEMENT_ENABLED_DETAILS, // DeviceManagementEnabledDetails + DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS, // DeviceSyncBackupStatusChangedDetails + DEVICE_UNLINK_DETAILS, // DeviceUnlinkDetails + DROPBOX_PASSWORDS_EXPORTED_DETAILS, // DropboxPasswordsExportedDetails + DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS, // DropboxPasswordsNewDeviceEnrolledDetails + EMM_REFRESH_AUTH_TOKEN_DETAILS, // EmmRefreshAuthTokenDetails + EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS, // ExternalDriveBackupEligibilityStatusCheckedDetails + EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS, // ExternalDriveBackupStatusChangedDetails + ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS, // AccountCaptureChangeAvailabilityDetails + ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS, // AccountCaptureMigrateAccountDetails + ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS, // AccountCaptureNotificationEmailsSentDetails + ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS, // AccountCaptureRelinquishAccountDetails + DISABLED_DOMAIN_INVITES_DETAILS, // DisabledDomainInvitesDetails + DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS, // DomainInvitesApproveRequestToJoinTeamDetails + DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS, // DomainInvitesDeclineRequestToJoinTeamDetails + DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS, // DomainInvitesEmailExistingUsersDetails + DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS, // DomainInvitesRequestToJoinTeamDetails + DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS, // DomainInvitesSetInviteNewUserPrefToNoDetails + DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS, // DomainInvitesSetInviteNewUserPrefToYesDetails + DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS, // DomainVerificationAddDomainFailDetails + DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS, // DomainVerificationAddDomainSuccessDetails + DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS, // DomainVerificationRemoveDomainDetails + ENABLED_DOMAIN_INVITES_DETAILS, // EnabledDomainInvitesDetails + TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS, // TeamEncryptionKeyCancelKeyDeletionDetails + TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS, // TeamEncryptionKeyCreateKeyDetails + TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS, // TeamEncryptionKeyDeleteKeyDetails + TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS, // TeamEncryptionKeyDisableKeyDetails + TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS, // TeamEncryptionKeyEnableKeyDetails + TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS, // TeamEncryptionKeyRotateKeyDetails + TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS, // TeamEncryptionKeyScheduleKeyDeletionDetails + APPLY_NAMING_CONVENTION_DETAILS, // ApplyNamingConventionDetails + CREATE_FOLDER_DETAILS, // CreateFolderDetails + FILE_ADD_DETAILS, // FileAddDetails + FILE_ADD_FROM_AUTOMATION_DETAILS, // FileAddFromAutomationDetails + FILE_COPY_DETAILS, // FileCopyDetails + FILE_DELETE_DETAILS, // FileDeleteDetails + FILE_DOWNLOAD_DETAILS, // FileDownloadDetails + FILE_EDIT_DETAILS, // FileEditDetails + FILE_GET_COPY_REFERENCE_DETAILS, // FileGetCopyReferenceDetails + FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS, // FileLockingLockStatusChangedDetails + FILE_MOVE_DETAILS, // FileMoveDetails + FILE_PERMANENTLY_DELETE_DETAILS, // FilePermanentlyDeleteDetails + FILE_PREVIEW_DETAILS, // FilePreviewDetails + FILE_RENAME_DETAILS, // FileRenameDetails + FILE_RESTORE_DETAILS, // FileRestoreDetails + FILE_REVERT_DETAILS, // FileRevertDetails + FILE_ROLLBACK_CHANGES_DETAILS, // FileRollbackChangesDetails + FILE_SAVE_COPY_REFERENCE_DETAILS, // FileSaveCopyReferenceDetails + FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS, // FolderOverviewDescriptionChangedDetails + FOLDER_OVERVIEW_ITEM_PINNED_DETAILS, // FolderOverviewItemPinnedDetails + FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS, // FolderOverviewItemUnpinnedDetails + OBJECT_LABEL_ADDED_DETAILS, // ObjectLabelAddedDetails + OBJECT_LABEL_REMOVED_DETAILS, // ObjectLabelRemovedDetails + OBJECT_LABEL_UPDATED_VALUE_DETAILS, // ObjectLabelUpdatedValueDetails + ORGANIZE_FOLDER_WITH_TIDY_DETAILS, // OrganizeFolderWithTidyDetails + REPLAY_FILE_DELETE_DETAILS, // ReplayFileDeleteDetails + REWIND_FOLDER_DETAILS, // RewindFolderDetails + UNDO_NAMING_CONVENTION_DETAILS, // UndoNamingConventionDetails + UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS, // UndoOrganizeFolderWithTidyDetails + USER_TAGS_ADDED_DETAILS, // UserTagsAddedDetails + USER_TAGS_REMOVED_DETAILS, // UserTagsRemovedDetails + EMAIL_INGEST_RECEIVE_FILE_DETAILS, // EmailIngestReceiveFileDetails + FILE_REQUEST_CHANGE_DETAILS, // FileRequestChangeDetails + FILE_REQUEST_CLOSE_DETAILS, // FileRequestCloseDetails + FILE_REQUEST_CREATE_DETAILS, // FileRequestCreateDetails + FILE_REQUEST_DELETE_DETAILS, // FileRequestDeleteDetails + FILE_REQUEST_RECEIVE_FILE_DETAILS, // FileRequestReceiveFileDetails + GROUP_ADD_EXTERNAL_ID_DETAILS, // GroupAddExternalIdDetails + GROUP_ADD_MEMBER_DETAILS, // GroupAddMemberDetails + GROUP_CHANGE_EXTERNAL_ID_DETAILS, // GroupChangeExternalIdDetails + GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS, // GroupChangeManagementTypeDetails + GROUP_CHANGE_MEMBER_ROLE_DETAILS, // GroupChangeMemberRoleDetails + GROUP_CREATE_DETAILS, // GroupCreateDetails + GROUP_DELETE_DETAILS, // GroupDeleteDetails + GROUP_DESCRIPTION_UPDATED_DETAILS, // GroupDescriptionUpdatedDetails + GROUP_JOIN_POLICY_UPDATED_DETAILS, // GroupJoinPolicyUpdatedDetails + GROUP_MOVED_DETAILS, // GroupMovedDetails + GROUP_REMOVE_EXTERNAL_ID_DETAILS, // GroupRemoveExternalIdDetails + GROUP_REMOVE_MEMBER_DETAILS, // GroupRemoveMemberDetails + GROUP_RENAME_DETAILS, // GroupRenameDetails + ACCOUNT_LOCK_OR_UNLOCKED_DETAILS, // AccountLockOrUnlockedDetails + EMM_ERROR_DETAILS, // EmmErrorDetails + GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS, // GuestAdminSignedInViaTrustedTeamsDetails + GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS, // GuestAdminSignedOutViaTrustedTeamsDetails + LOGIN_FAIL_DETAILS, // LoginFailDetails + LOGIN_SUCCESS_DETAILS, // LoginSuccessDetails + LOGOUT_DETAILS, // LogoutDetails + RESELLER_SUPPORT_SESSION_END_DETAILS, // ResellerSupportSessionEndDetails + RESELLER_SUPPORT_SESSION_START_DETAILS, // ResellerSupportSessionStartDetails + SIGN_IN_AS_SESSION_END_DETAILS, // SignInAsSessionEndDetails + SIGN_IN_AS_SESSION_START_DETAILS, // SignInAsSessionStartDetails + SSO_ERROR_DETAILS, // SsoErrorDetails + BACKUP_ADMIN_INVITATION_SENT_DETAILS, // BackupAdminInvitationSentDetails + BACKUP_INVITATION_OPENED_DETAILS, // BackupInvitationOpenedDetails + CREATE_TEAM_INVITE_LINK_DETAILS, // CreateTeamInviteLinkDetails + DELETE_TEAM_INVITE_LINK_DETAILS, // DeleteTeamInviteLinkDetails + MEMBER_ADD_EXTERNAL_ID_DETAILS, // MemberAddExternalIdDetails + MEMBER_ADD_NAME_DETAILS, // MemberAddNameDetails + MEMBER_CHANGE_ADMIN_ROLE_DETAILS, // MemberChangeAdminRoleDetails + MEMBER_CHANGE_EMAIL_DETAILS, // MemberChangeEmailDetails + MEMBER_CHANGE_EXTERNAL_ID_DETAILS, // MemberChangeExternalIdDetails + MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS, // MemberChangeMembershipTypeDetails + MEMBER_CHANGE_NAME_DETAILS, // MemberChangeNameDetails + MEMBER_CHANGE_RESELLER_ROLE_DETAILS, // MemberChangeResellerRoleDetails + MEMBER_CHANGE_STATUS_DETAILS, // MemberChangeStatusDetails + MEMBER_DELETE_MANUAL_CONTACTS_DETAILS, // MemberDeleteManualContactsDetails + MEMBER_DELETE_PROFILE_PHOTO_DETAILS, // MemberDeleteProfilePhotoDetails + MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS, // MemberPermanentlyDeleteAccountContentsDetails + MEMBER_REMOVE_EXTERNAL_ID_DETAILS, // MemberRemoveExternalIdDetails + MEMBER_SET_PROFILE_PHOTO_DETAILS, // MemberSetProfilePhotoDetails + MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS, // MemberSpaceLimitsAddCustomQuotaDetails + MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS, // MemberSpaceLimitsChangeCustomQuotaDetails + MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS, // MemberSpaceLimitsChangeStatusDetails + MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS, // MemberSpaceLimitsRemoveCustomQuotaDetails + MEMBER_SUGGEST_DETAILS, // MemberSuggestDetails + MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS, // MemberTransferAccountContentsDetails + PENDING_SECONDARY_EMAIL_ADDED_DETAILS, // PendingSecondaryEmailAddedDetails + SECONDARY_EMAIL_DELETED_DETAILS, // SecondaryEmailDeletedDetails + SECONDARY_EMAIL_VERIFIED_DETAILS, // SecondaryEmailVerifiedDetails + SECONDARY_MAILS_POLICY_CHANGED_DETAILS, // SecondaryMailsPolicyChangedDetails + BINDER_ADD_PAGE_DETAILS, // BinderAddPageDetails + BINDER_ADD_SECTION_DETAILS, // BinderAddSectionDetails + BINDER_REMOVE_PAGE_DETAILS, // BinderRemovePageDetails + BINDER_REMOVE_SECTION_DETAILS, // BinderRemoveSectionDetails + BINDER_RENAME_PAGE_DETAILS, // BinderRenamePageDetails + BINDER_RENAME_SECTION_DETAILS, // BinderRenameSectionDetails + BINDER_REORDER_PAGE_DETAILS, // BinderReorderPageDetails + BINDER_REORDER_SECTION_DETAILS, // BinderReorderSectionDetails + PAPER_CONTENT_ADD_MEMBER_DETAILS, // PaperContentAddMemberDetails + PAPER_CONTENT_ADD_TO_FOLDER_DETAILS, // PaperContentAddToFolderDetails + PAPER_CONTENT_ARCHIVE_DETAILS, // PaperContentArchiveDetails + PAPER_CONTENT_CREATE_DETAILS, // PaperContentCreateDetails + PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS, // PaperContentPermanentlyDeleteDetails + PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS, // PaperContentRemoveFromFolderDetails + PAPER_CONTENT_REMOVE_MEMBER_DETAILS, // PaperContentRemoveMemberDetails + PAPER_CONTENT_RENAME_DETAILS, // PaperContentRenameDetails + PAPER_CONTENT_RESTORE_DETAILS, // PaperContentRestoreDetails + PAPER_DOC_ADD_COMMENT_DETAILS, // PaperDocAddCommentDetails + PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS, // PaperDocChangeMemberRoleDetails + PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS, // PaperDocChangeSharingPolicyDetails + PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS, // PaperDocChangeSubscriptionDetails + PAPER_DOC_DELETED_DETAILS, // PaperDocDeletedDetails + PAPER_DOC_DELETE_COMMENT_DETAILS, // PaperDocDeleteCommentDetails + PAPER_DOC_DOWNLOAD_DETAILS, // PaperDocDownloadDetails + PAPER_DOC_EDIT_DETAILS, // PaperDocEditDetails + PAPER_DOC_EDIT_COMMENT_DETAILS, // PaperDocEditCommentDetails + PAPER_DOC_FOLLOWED_DETAILS, // PaperDocFollowedDetails + PAPER_DOC_MENTION_DETAILS, // PaperDocMentionDetails + PAPER_DOC_OWNERSHIP_CHANGED_DETAILS, // PaperDocOwnershipChangedDetails + PAPER_DOC_REQUEST_ACCESS_DETAILS, // PaperDocRequestAccessDetails + PAPER_DOC_RESOLVE_COMMENT_DETAILS, // PaperDocResolveCommentDetails + PAPER_DOC_REVERT_DETAILS, // PaperDocRevertDetails + PAPER_DOC_SLACK_SHARE_DETAILS, // PaperDocSlackShareDetails + PAPER_DOC_TEAM_INVITE_DETAILS, // PaperDocTeamInviteDetails + PAPER_DOC_TRASHED_DETAILS, // PaperDocTrashedDetails + PAPER_DOC_UNRESOLVE_COMMENT_DETAILS, // PaperDocUnresolveCommentDetails + PAPER_DOC_UNTRASHED_DETAILS, // PaperDocUntrashedDetails + PAPER_DOC_VIEW_DETAILS, // PaperDocViewDetails + PAPER_EXTERNAL_VIEW_ALLOW_DETAILS, // PaperExternalViewAllowDetails + PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS, // PaperExternalViewDefaultTeamDetails + PAPER_EXTERNAL_VIEW_FORBID_DETAILS, // PaperExternalViewForbidDetails + PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS, // PaperFolderChangeSubscriptionDetails + PAPER_FOLDER_DELETED_DETAILS, // PaperFolderDeletedDetails + PAPER_FOLDER_FOLLOWED_DETAILS, // PaperFolderFollowedDetails + PAPER_FOLDER_TEAM_INVITE_DETAILS, // PaperFolderTeamInviteDetails + PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS, // PaperPublishedLinkChangePermissionDetails + PAPER_PUBLISHED_LINK_CREATE_DETAILS, // PaperPublishedLinkCreateDetails + PAPER_PUBLISHED_LINK_DISABLED_DETAILS, // PaperPublishedLinkDisabledDetails + PAPER_PUBLISHED_LINK_VIEW_DETAILS, // PaperPublishedLinkViewDetails + PASSWORD_CHANGE_DETAILS, // PasswordChangeDetails + PASSWORD_RESET_DETAILS, // PasswordResetDetails + PASSWORD_RESET_ALL_DETAILS, // PasswordResetAllDetails + CLASSIFICATION_CREATE_REPORT_DETAILS, // ClassificationCreateReportDetails + CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS, // ClassificationCreateReportFailDetails + EMM_CREATE_EXCEPTIONS_REPORT_DETAILS, // EmmCreateExceptionsReportDetails + EMM_CREATE_USAGE_REPORT_DETAILS, // EmmCreateUsageReportDetails + EXPORT_MEMBERS_REPORT_DETAILS, // ExportMembersReportDetails + EXPORT_MEMBERS_REPORT_FAIL_DETAILS, // ExportMembersReportFailDetails + EXTERNAL_SHARING_CREATE_REPORT_DETAILS, // ExternalSharingCreateReportDetails + EXTERNAL_SHARING_REPORT_FAILED_DETAILS, // ExternalSharingReportFailedDetails + NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS, // NoExpirationLinkGenCreateReportDetails + NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS, // NoExpirationLinkGenReportFailedDetails + NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS, // NoPasswordLinkGenCreateReportDetails + NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS, // NoPasswordLinkGenReportFailedDetails + NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS, // NoPasswordLinkViewCreateReportDetails + NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS, // NoPasswordLinkViewReportFailedDetails + OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS, // OutdatedLinkViewCreateReportDetails + OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS, // OutdatedLinkViewReportFailedDetails + PAPER_ADMIN_EXPORT_START_DETAILS, // PaperAdminExportStartDetails + RANSOMWARE_ALERT_CREATE_REPORT_DETAILS, // RansomwareAlertCreateReportDetails + RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS, // RansomwareAlertCreateReportFailedDetails + SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS, // SmartSyncCreateAdminPrivilegeReportDetails + TEAM_ACTIVITY_CREATE_REPORT_DETAILS, // TeamActivityCreateReportDetails + TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS, // TeamActivityCreateReportFailDetails + COLLECTION_SHARE_DETAILS, // CollectionShareDetails + FILE_TRANSFERS_FILE_ADD_DETAILS, // FileTransfersFileAddDetails + FILE_TRANSFERS_TRANSFER_DELETE_DETAILS, // FileTransfersTransferDeleteDetails + FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS, // FileTransfersTransferDownloadDetails + FILE_TRANSFERS_TRANSFER_SEND_DETAILS, // FileTransfersTransferSendDetails + FILE_TRANSFERS_TRANSFER_VIEW_DETAILS, // FileTransfersTransferViewDetails + NOTE_ACL_INVITE_ONLY_DETAILS, // NoteAclInviteOnlyDetails + NOTE_ACL_LINK_DETAILS, // NoteAclLinkDetails + NOTE_ACL_TEAM_LINK_DETAILS, // NoteAclTeamLinkDetails + NOTE_SHARED_DETAILS, // NoteSharedDetails + NOTE_SHARE_RECEIVE_DETAILS, // NoteShareReceiveDetails + OPEN_NOTE_SHARED_DETAILS, // OpenNoteSharedDetails + REPLAY_FILE_SHARED_LINK_CREATED_DETAILS, // ReplayFileSharedLinkCreatedDetails + REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS, // ReplayFileSharedLinkModifiedDetails + REPLAY_PROJECT_TEAM_ADD_DETAILS, // ReplayProjectTeamAddDetails + REPLAY_PROJECT_TEAM_DELETE_DETAILS, // ReplayProjectTeamDeleteDetails + SF_ADD_GROUP_DETAILS, // SfAddGroupDetails + SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS, // SfAllowNonMembersToViewSharedLinksDetails + SF_EXTERNAL_INVITE_WARN_DETAILS, // SfExternalInviteWarnDetails + SF_FB_INVITE_DETAILS, // SfFbInviteDetails + SF_FB_INVITE_CHANGE_ROLE_DETAILS, // SfFbInviteChangeRoleDetails + SF_FB_UNINVITE_DETAILS, // SfFbUninviteDetails + SF_INVITE_GROUP_DETAILS, // SfInviteGroupDetails + SF_TEAM_GRANT_ACCESS_DETAILS, // SfTeamGrantAccessDetails + SF_TEAM_INVITE_DETAILS, // SfTeamInviteDetails + SF_TEAM_INVITE_CHANGE_ROLE_DETAILS, // SfTeamInviteChangeRoleDetails + SF_TEAM_JOIN_DETAILS, // SfTeamJoinDetails + SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS, // SfTeamJoinFromOobLinkDetails + SF_TEAM_UNINVITE_DETAILS, // SfTeamUninviteDetails + SHARED_CONTENT_ADD_INVITEES_DETAILS, // SharedContentAddInviteesDetails + SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS, // SharedContentAddLinkExpiryDetails + SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS, // SharedContentAddLinkPasswordDetails + SHARED_CONTENT_ADD_MEMBER_DETAILS, // SharedContentAddMemberDetails + SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS, // SharedContentChangeDownloadsPolicyDetails + SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS, // SharedContentChangeInviteeRoleDetails + SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS, // SharedContentChangeLinkAudienceDetails + SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS, // SharedContentChangeLinkExpiryDetails + SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS, // SharedContentChangeLinkPasswordDetails + SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS, // SharedContentChangeMemberRoleDetails + SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS, // SharedContentChangeViewerInfoPolicyDetails + SHARED_CONTENT_CLAIM_INVITATION_DETAILS, // SharedContentClaimInvitationDetails + SHARED_CONTENT_COPY_DETAILS, // SharedContentCopyDetails + SHARED_CONTENT_DOWNLOAD_DETAILS, // SharedContentDownloadDetails + SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS, // SharedContentRelinquishMembershipDetails + SHARED_CONTENT_REMOVE_INVITEES_DETAILS, // SharedContentRemoveInviteesDetails + SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS, // SharedContentRemoveLinkExpiryDetails + SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS, // SharedContentRemoveLinkPasswordDetails + SHARED_CONTENT_REMOVE_MEMBER_DETAILS, // SharedContentRemoveMemberDetails + SHARED_CONTENT_REQUEST_ACCESS_DETAILS, // SharedContentRequestAccessDetails + SHARED_CONTENT_RESTORE_INVITEES_DETAILS, // SharedContentRestoreInviteesDetails + SHARED_CONTENT_RESTORE_MEMBER_DETAILS, // SharedContentRestoreMemberDetails + SHARED_CONTENT_UNSHARE_DETAILS, // SharedContentUnshareDetails + SHARED_CONTENT_VIEW_DETAILS, // SharedContentViewDetails + SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS, // SharedFolderChangeLinkPolicyDetails + SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS, // SharedFolderChangeMembersInheritancePolicyDetails + SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS, // SharedFolderChangeMembersManagementPolicyDetails + SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS, // SharedFolderChangeMembersPolicyDetails + SHARED_FOLDER_CREATE_DETAILS, // SharedFolderCreateDetails + SHARED_FOLDER_DECLINE_INVITATION_DETAILS, // SharedFolderDeclineInvitationDetails + SHARED_FOLDER_MOUNT_DETAILS, // SharedFolderMountDetails + SHARED_FOLDER_NEST_DETAILS, // SharedFolderNestDetails + SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS, // SharedFolderTransferOwnershipDetails + SHARED_FOLDER_UNMOUNT_DETAILS, // SharedFolderUnmountDetails + SHARED_LINK_ADD_EXPIRY_DETAILS, // SharedLinkAddExpiryDetails + SHARED_LINK_CHANGE_EXPIRY_DETAILS, // SharedLinkChangeExpiryDetails + SHARED_LINK_CHANGE_VISIBILITY_DETAILS, // SharedLinkChangeVisibilityDetails + SHARED_LINK_COPY_DETAILS, // SharedLinkCopyDetails + SHARED_LINK_CREATE_DETAILS, // SharedLinkCreateDetails + SHARED_LINK_DISABLE_DETAILS, // SharedLinkDisableDetails + SHARED_LINK_DOWNLOAD_DETAILS, // SharedLinkDownloadDetails + SHARED_LINK_REMOVE_EXPIRY_DETAILS, // SharedLinkRemoveExpiryDetails + SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS, // SharedLinkSettingsAddExpirationDetails + SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS, // SharedLinkSettingsAddPasswordDetails + SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS, // SharedLinkSettingsAllowDownloadDisabledDetails + SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS, // SharedLinkSettingsAllowDownloadEnabledDetails + SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS, // SharedLinkSettingsChangeAudienceDetails + SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS, // SharedLinkSettingsChangeExpirationDetails + SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS, // SharedLinkSettingsChangePasswordDetails + SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS, // SharedLinkSettingsRemoveExpirationDetails + SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS, // SharedLinkSettingsRemovePasswordDetails + SHARED_LINK_SHARE_DETAILS, // SharedLinkShareDetails + SHARED_LINK_VIEW_DETAILS, // SharedLinkViewDetails + SHARED_NOTE_OPENED_DETAILS, // SharedNoteOpenedDetails + SHMODEL_DISABLE_DOWNLOADS_DETAILS, // ShmodelDisableDownloadsDetails + SHMODEL_ENABLE_DOWNLOADS_DETAILS, // ShmodelEnableDownloadsDetails + SHMODEL_GROUP_SHARE_DETAILS, // ShmodelGroupShareDetails + SHOWCASE_ACCESS_GRANTED_DETAILS, // ShowcaseAccessGrantedDetails + SHOWCASE_ADD_MEMBER_DETAILS, // ShowcaseAddMemberDetails + SHOWCASE_ARCHIVED_DETAILS, // ShowcaseArchivedDetails + SHOWCASE_CREATED_DETAILS, // ShowcaseCreatedDetails + SHOWCASE_DELETE_COMMENT_DETAILS, // ShowcaseDeleteCommentDetails + SHOWCASE_EDITED_DETAILS, // ShowcaseEditedDetails + SHOWCASE_EDIT_COMMENT_DETAILS, // ShowcaseEditCommentDetails + SHOWCASE_FILE_ADDED_DETAILS, // ShowcaseFileAddedDetails + SHOWCASE_FILE_DOWNLOAD_DETAILS, // ShowcaseFileDownloadDetails + SHOWCASE_FILE_REMOVED_DETAILS, // ShowcaseFileRemovedDetails + SHOWCASE_FILE_VIEW_DETAILS, // ShowcaseFileViewDetails + SHOWCASE_PERMANENTLY_DELETED_DETAILS, // ShowcasePermanentlyDeletedDetails + SHOWCASE_POST_COMMENT_DETAILS, // ShowcasePostCommentDetails + SHOWCASE_REMOVE_MEMBER_DETAILS, // ShowcaseRemoveMemberDetails + SHOWCASE_RENAMED_DETAILS, // ShowcaseRenamedDetails + SHOWCASE_REQUEST_ACCESS_DETAILS, // ShowcaseRequestAccessDetails + SHOWCASE_RESOLVE_COMMENT_DETAILS, // ShowcaseResolveCommentDetails + SHOWCASE_RESTORED_DETAILS, // ShowcaseRestoredDetails + SHOWCASE_TRASHED_DETAILS, // ShowcaseTrashedDetails + SHOWCASE_TRASHED_DEPRECATED_DETAILS, // ShowcaseTrashedDeprecatedDetails + SHOWCASE_UNRESOLVE_COMMENT_DETAILS, // ShowcaseUnresolveCommentDetails + SHOWCASE_UNTRASHED_DETAILS, // ShowcaseUntrashedDetails + SHOWCASE_UNTRASHED_DEPRECATED_DETAILS, // ShowcaseUntrashedDeprecatedDetails + SHOWCASE_VIEW_DETAILS, // ShowcaseViewDetails + SSO_ADD_CERT_DETAILS, // SsoAddCertDetails + SSO_ADD_LOGIN_URL_DETAILS, // SsoAddLoginUrlDetails + SSO_ADD_LOGOUT_URL_DETAILS, // SsoAddLogoutUrlDetails + SSO_CHANGE_CERT_DETAILS, // SsoChangeCertDetails + SSO_CHANGE_LOGIN_URL_DETAILS, // SsoChangeLoginUrlDetails + SSO_CHANGE_LOGOUT_URL_DETAILS, // SsoChangeLogoutUrlDetails + SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS, // SsoChangeSamlIdentityModeDetails + SSO_REMOVE_CERT_DETAILS, // SsoRemoveCertDetails + SSO_REMOVE_LOGIN_URL_DETAILS, // SsoRemoveLoginUrlDetails + SSO_REMOVE_LOGOUT_URL_DETAILS, // SsoRemoveLogoutUrlDetails + TEAM_FOLDER_CHANGE_STATUS_DETAILS, // TeamFolderChangeStatusDetails + TEAM_FOLDER_CREATE_DETAILS, // TeamFolderCreateDetails + TEAM_FOLDER_DOWNGRADE_DETAILS, // TeamFolderDowngradeDetails + TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS, // TeamFolderPermanentlyDeleteDetails + TEAM_FOLDER_RENAME_DETAILS, // TeamFolderRenameDetails + TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS, // TeamSelectiveSyncSettingsChangedDetails + ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS, // AccountCaptureChangePolicyDetails + ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS, // AdminEmailRemindersChangedDetails + ALLOW_DOWNLOAD_DISABLED_DETAILS, // AllowDownloadDisabledDetails + ALLOW_DOWNLOAD_ENABLED_DETAILS, // AllowDownloadEnabledDetails + APP_PERMISSIONS_CHANGED_DETAILS, // AppPermissionsChangedDetails + CAMERA_UPLOADS_POLICY_CHANGED_DETAILS, // CameraUploadsPolicyChangedDetails + CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS, // CaptureTranscriptPolicyChangedDetails + CLASSIFICATION_CHANGE_POLICY_DETAILS, // ClassificationChangePolicyDetails + COMPUTER_BACKUP_POLICY_CHANGED_DETAILS, // ComputerBackupPolicyChangedDetails + CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS, // ContentAdministrationPolicyChangedDetails + DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS, // DataPlacementRestrictionChangePolicyDetails + DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS, // DataPlacementRestrictionSatisfyPolicyDetails + DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS, // DeviceApprovalsAddExceptionDetails + DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS, // DeviceApprovalsChangeDesktopPolicyDetails + DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS, // DeviceApprovalsChangeMobilePolicyDetails + DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS, // DeviceApprovalsChangeOverageActionDetails + DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS, // DeviceApprovalsChangeUnlinkActionDetails + DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS, // DeviceApprovalsRemoveExceptionDetails + DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS, // DirectoryRestrictionsAddMembersDetails + DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS, // DirectoryRestrictionsRemoveMembersDetails + DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS, // DropboxPasswordsPolicyChangedDetails + EMAIL_INGEST_POLICY_CHANGED_DETAILS, // EmailIngestPolicyChangedDetails + EMM_ADD_EXCEPTION_DETAILS, // EmmAddExceptionDetails + EMM_CHANGE_POLICY_DETAILS, // EmmChangePolicyDetails + EMM_REMOVE_EXCEPTION_DETAILS, // EmmRemoveExceptionDetails + EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS, // ExtendedVersionHistoryChangePolicyDetails + EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS, // ExternalDriveBackupPolicyChangedDetails + FILE_COMMENTS_CHANGE_POLICY_DETAILS, // FileCommentsChangePolicyDetails + FILE_LOCKING_POLICY_CHANGED_DETAILS, // FileLockingPolicyChangedDetails + FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS, // FileProviderMigrationPolicyChangedDetails + FILE_REQUESTS_CHANGE_POLICY_DETAILS, // FileRequestsChangePolicyDetails + FILE_REQUESTS_EMAILS_ENABLED_DETAILS, // FileRequestsEmailsEnabledDetails + FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS, // FileRequestsEmailsRestrictedToTeamOnlyDetails + FILE_TRANSFERS_POLICY_CHANGED_DETAILS, // FileTransfersPolicyChangedDetails + FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS, // FolderLinkRestrictionPolicyChangedDetails + GOOGLE_SSO_CHANGE_POLICY_DETAILS, // GoogleSsoChangePolicyDetails + GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS, // GroupUserManagementChangePolicyDetails + INTEGRATION_POLICY_CHANGED_DETAILS, // IntegrationPolicyChangedDetails + INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS, // InviteAcceptanceEmailPolicyChangedDetails + MEMBER_REQUESTS_CHANGE_POLICY_DETAILS, // MemberRequestsChangePolicyDetails + MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS, // MemberSendInvitePolicyChangedDetails + MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS, // MemberSpaceLimitsAddExceptionDetails + MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS, // MemberSpaceLimitsChangeCapsTypePolicyDetails + MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS, // MemberSpaceLimitsChangePolicyDetails + MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS, // MemberSpaceLimitsRemoveExceptionDetails + MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS, // MemberSuggestionsChangePolicyDetails + MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS, // MicrosoftOfficeAddinChangePolicyDetails + NETWORK_CONTROL_CHANGE_POLICY_DETAILS, // NetworkControlChangePolicyDetails + PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS, // PaperChangeDeploymentPolicyDetails + PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS, // PaperChangeMemberLinkPolicyDetails + PAPER_CHANGE_MEMBER_POLICY_DETAILS, // PaperChangeMemberPolicyDetails + PAPER_CHANGE_POLICY_DETAILS, // PaperChangePolicyDetails + PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS, // PaperDefaultFolderPolicyChangedDetails + PAPER_DESKTOP_POLICY_CHANGED_DETAILS, // PaperDesktopPolicyChangedDetails + PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS, // PaperEnabledUsersGroupAdditionDetails + PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS, // PaperEnabledUsersGroupRemovalDetails + PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS, // PasswordStrengthRequirementsChangePolicyDetails + PERMANENT_DELETE_CHANGE_POLICY_DETAILS, // PermanentDeleteChangePolicyDetails + RESELLER_SUPPORT_CHANGE_POLICY_DETAILS, // ResellerSupportChangePolicyDetails + REWIND_POLICY_CHANGED_DETAILS, // RewindPolicyChangedDetails + SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS, // SendForSignaturePolicyChangedDetails + SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS, // SharingChangeFolderJoinPolicyDetails + SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS, // SharingChangeLinkAllowChangeExpirationPolicyDetails + SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS, // SharingChangeLinkDefaultExpirationPolicyDetails + SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS, // SharingChangeLinkEnforcePasswordPolicyDetails + SHARING_CHANGE_LINK_POLICY_DETAILS, // SharingChangeLinkPolicyDetails + SHARING_CHANGE_MEMBER_POLICY_DETAILS, // SharingChangeMemberPolicyDetails + SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS, // ShowcaseChangeDownloadPolicyDetails + SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS, // ShowcaseChangeEnabledPolicyDetails + SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS, // ShowcaseChangeExternalSharingPolicyDetails + SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS, // SmarterSmartSyncPolicyChangedDetails + SMART_SYNC_CHANGE_POLICY_DETAILS, // SmartSyncChangePolicyDetails + SMART_SYNC_NOT_OPT_OUT_DETAILS, // SmartSyncNotOptOutDetails + SMART_SYNC_OPT_OUT_DETAILS, // SmartSyncOptOutDetails + SSO_CHANGE_POLICY_DETAILS, // SsoChangePolicyDetails + TEAM_BRANDING_POLICY_CHANGED_DETAILS, // TeamBrandingPolicyChangedDetails + TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS, // TeamExtensionsPolicyChangedDetails + TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS, // TeamSelectiveSyncPolicyChangedDetails + TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS, // TeamSharingWhitelistSubjectsChangedDetails + TFA_ADD_EXCEPTION_DETAILS, // TfaAddExceptionDetails + TFA_CHANGE_POLICY_DETAILS, // TfaChangePolicyDetails + TFA_REMOVE_EXCEPTION_DETAILS, // TfaRemoveExceptionDetails + TWO_ACCOUNT_CHANGE_POLICY_DETAILS, // TwoAccountChangePolicyDetails + VIEWER_INFO_POLICY_CHANGED_DETAILS, // ViewerInfoPolicyChangedDetails + WATERMARKING_POLICY_CHANGED_DETAILS, // WatermarkingPolicyChangedDetails + WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS, // WebSessionsChangeActiveSessionLimitDetails + WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS, // WebSessionsChangeFixedLengthPolicyDetails + WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS, // WebSessionsChangeIdleLengthPolicyDetails + DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS, // DataResidencyMigrationRequestSuccessfulDetails + DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS, // DataResidencyMigrationRequestUnsuccessfulDetails + TEAM_MERGE_FROM_DETAILS, // TeamMergeFromDetails + TEAM_MERGE_TO_DETAILS, // TeamMergeToDetails + TEAM_PROFILE_ADD_BACKGROUND_DETAILS, // TeamProfileAddBackgroundDetails + TEAM_PROFILE_ADD_LOGO_DETAILS, // TeamProfileAddLogoDetails + TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS, // TeamProfileChangeBackgroundDetails + TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS, // TeamProfileChangeDefaultLanguageDetails + TEAM_PROFILE_CHANGE_LOGO_DETAILS, // TeamProfileChangeLogoDetails + TEAM_PROFILE_CHANGE_NAME_DETAILS, // TeamProfileChangeNameDetails + TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS, // TeamProfileRemoveBackgroundDetails + TEAM_PROFILE_REMOVE_LOGO_DETAILS, // TeamProfileRemoveLogoDetails + TFA_ADD_BACKUP_PHONE_DETAILS, // TfaAddBackupPhoneDetails + TFA_ADD_SECURITY_KEY_DETAILS, // TfaAddSecurityKeyDetails + TFA_CHANGE_BACKUP_PHONE_DETAILS, // TfaChangeBackupPhoneDetails + TFA_CHANGE_STATUS_DETAILS, // TfaChangeStatusDetails + TFA_REMOVE_BACKUP_PHONE_DETAILS, // TfaRemoveBackupPhoneDetails + TFA_REMOVE_SECURITY_KEY_DETAILS, // TfaRemoveSecurityKeyDetails + TFA_RESET_DETAILS, // TfaResetDetails + CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS, // ChangedEnterpriseAdminRoleDetails + CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS, // ChangedEnterpriseConnectedTeamStatusDetails + ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS, // EndedEnterpriseAdminSessionDetails + ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS, // EndedEnterpriseAdminSessionDeprecatedDetails + ENTERPRISE_SETTINGS_LOCKING_DETAILS, // EnterpriseSettingsLockingDetails + GUEST_ADMIN_CHANGE_STATUS_DETAILS, // GuestAdminChangeStatusDetails + STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS, // StartedEnterpriseAdminSessionDetails + TEAM_MERGE_REQUEST_ACCEPTED_DETAILS, // TeamMergeRequestAcceptedDetails + TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS, // TeamMergeRequestAcceptedShownToPrimaryTeamDetails + TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS, // TeamMergeRequestAcceptedShownToSecondaryTeamDetails + TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS, // TeamMergeRequestAutoCanceledDetails + TEAM_MERGE_REQUEST_CANCELED_DETAILS, // TeamMergeRequestCanceledDetails + TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS, // TeamMergeRequestCanceledShownToPrimaryTeamDetails + TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS, // TeamMergeRequestCanceledShownToSecondaryTeamDetails + TEAM_MERGE_REQUEST_EXPIRED_DETAILS, // TeamMergeRequestExpiredDetails + TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS, // TeamMergeRequestExpiredShownToPrimaryTeamDetails + TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS, // TeamMergeRequestExpiredShownToSecondaryTeamDetails + TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS, // TeamMergeRequestRejectedShownToPrimaryTeamDetails + TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS, // TeamMergeRequestRejectedShownToSecondaryTeamDetails + TEAM_MERGE_REQUEST_REMINDER_DETAILS, // TeamMergeRequestReminderDetails + TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS, // TeamMergeRequestReminderShownToPrimaryTeamDetails + TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS, // TeamMergeRequestReminderShownToSecondaryTeamDetails + TEAM_MERGE_REQUEST_REVOKED_DETAILS, // TeamMergeRequestRevokedDetails + TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS, // TeamMergeRequestSentShownToPrimaryTeamDetails + TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS, // TeamMergeRequestSentShownToSecondaryTeamDetails + /** + * Hints that this event was returned with missing details due to an + * internal error. + */ + MISSING_DETAILS, // MissingDetails + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final EventDetails OTHER = new EventDetails().withTag(Tag.OTHER); + + private Tag _tag; + private AdminAlertingAlertStateChangedDetails adminAlertingAlertStateChangedDetailsValue; + private AdminAlertingChangedAlertConfigDetails adminAlertingChangedAlertConfigDetailsValue; + private AdminAlertingTriggeredAlertDetails adminAlertingTriggeredAlertDetailsValue; + private RansomwareRestoreProcessCompletedDetails ransomwareRestoreProcessCompletedDetailsValue; + private RansomwareRestoreProcessStartedDetails ransomwareRestoreProcessStartedDetailsValue; + private AppBlockedByPermissionsDetails appBlockedByPermissionsDetailsValue; + private AppLinkTeamDetails appLinkTeamDetailsValue; + private AppLinkUserDetails appLinkUserDetailsValue; + private AppUnlinkTeamDetails appUnlinkTeamDetailsValue; + private AppUnlinkUserDetails appUnlinkUserDetailsValue; + private IntegrationConnectedDetails integrationConnectedDetailsValue; + private IntegrationDisconnectedDetails integrationDisconnectedDetailsValue; + private FileAddCommentDetails fileAddCommentDetailsValue; + private FileChangeCommentSubscriptionDetails fileChangeCommentSubscriptionDetailsValue; + private FileDeleteCommentDetails fileDeleteCommentDetailsValue; + private FileEditCommentDetails fileEditCommentDetailsValue; + private FileLikeCommentDetails fileLikeCommentDetailsValue; + private FileResolveCommentDetails fileResolveCommentDetailsValue; + private FileUnlikeCommentDetails fileUnlikeCommentDetailsValue; + private FileUnresolveCommentDetails fileUnresolveCommentDetailsValue; + private GovernancePolicyAddFoldersDetails governancePolicyAddFoldersDetailsValue; + private GovernancePolicyAddFolderFailedDetails governancePolicyAddFolderFailedDetailsValue; + private GovernancePolicyContentDisposedDetails governancePolicyContentDisposedDetailsValue; + private GovernancePolicyCreateDetails governancePolicyCreateDetailsValue; + private GovernancePolicyDeleteDetails governancePolicyDeleteDetailsValue; + private GovernancePolicyEditDetailsDetails governancePolicyEditDetailsDetailsValue; + private GovernancePolicyEditDurationDetails governancePolicyEditDurationDetailsValue; + private GovernancePolicyExportCreatedDetails governancePolicyExportCreatedDetailsValue; + private GovernancePolicyExportRemovedDetails governancePolicyExportRemovedDetailsValue; + private GovernancePolicyRemoveFoldersDetails governancePolicyRemoveFoldersDetailsValue; + private GovernancePolicyReportCreatedDetails governancePolicyReportCreatedDetailsValue; + private GovernancePolicyZipPartDownloadedDetails governancePolicyZipPartDownloadedDetailsValue; + private LegalHoldsActivateAHoldDetails legalHoldsActivateAHoldDetailsValue; + private LegalHoldsAddMembersDetails legalHoldsAddMembersDetailsValue; + private LegalHoldsChangeHoldDetailsDetails legalHoldsChangeHoldDetailsDetailsValue; + private LegalHoldsChangeHoldNameDetails legalHoldsChangeHoldNameDetailsValue; + private LegalHoldsExportAHoldDetails legalHoldsExportAHoldDetailsValue; + private LegalHoldsExportCancelledDetails legalHoldsExportCancelledDetailsValue; + private LegalHoldsExportDownloadedDetails legalHoldsExportDownloadedDetailsValue; + private LegalHoldsExportRemovedDetails legalHoldsExportRemovedDetailsValue; + private LegalHoldsReleaseAHoldDetails legalHoldsReleaseAHoldDetailsValue; + private LegalHoldsRemoveMembersDetails legalHoldsRemoveMembersDetailsValue; + private LegalHoldsReportAHoldDetails legalHoldsReportAHoldDetailsValue; + private DeviceChangeIpDesktopDetails deviceChangeIpDesktopDetailsValue; + private DeviceChangeIpMobileDetails deviceChangeIpMobileDetailsValue; + private DeviceChangeIpWebDetails deviceChangeIpWebDetailsValue; + private DeviceDeleteOnUnlinkFailDetails deviceDeleteOnUnlinkFailDetailsValue; + private DeviceDeleteOnUnlinkSuccessDetails deviceDeleteOnUnlinkSuccessDetailsValue; + private DeviceLinkFailDetails deviceLinkFailDetailsValue; + private DeviceLinkSuccessDetails deviceLinkSuccessDetailsValue; + private DeviceManagementDisabledDetails deviceManagementDisabledDetailsValue; + private DeviceManagementEnabledDetails deviceManagementEnabledDetailsValue; + private DeviceSyncBackupStatusChangedDetails deviceSyncBackupStatusChangedDetailsValue; + private DeviceUnlinkDetails deviceUnlinkDetailsValue; + private DropboxPasswordsExportedDetails dropboxPasswordsExportedDetailsValue; + private DropboxPasswordsNewDeviceEnrolledDetails dropboxPasswordsNewDeviceEnrolledDetailsValue; + private EmmRefreshAuthTokenDetails emmRefreshAuthTokenDetailsValue; + private ExternalDriveBackupEligibilityStatusCheckedDetails externalDriveBackupEligibilityStatusCheckedDetailsValue; + private ExternalDriveBackupStatusChangedDetails externalDriveBackupStatusChangedDetailsValue; + private AccountCaptureChangeAvailabilityDetails accountCaptureChangeAvailabilityDetailsValue; + private AccountCaptureMigrateAccountDetails accountCaptureMigrateAccountDetailsValue; + private AccountCaptureNotificationEmailsSentDetails accountCaptureNotificationEmailsSentDetailsValue; + private AccountCaptureRelinquishAccountDetails accountCaptureRelinquishAccountDetailsValue; + private DisabledDomainInvitesDetails disabledDomainInvitesDetailsValue; + private DomainInvitesApproveRequestToJoinTeamDetails domainInvitesApproveRequestToJoinTeamDetailsValue; + private DomainInvitesDeclineRequestToJoinTeamDetails domainInvitesDeclineRequestToJoinTeamDetailsValue; + private DomainInvitesEmailExistingUsersDetails domainInvitesEmailExistingUsersDetailsValue; + private DomainInvitesRequestToJoinTeamDetails domainInvitesRequestToJoinTeamDetailsValue; + private DomainInvitesSetInviteNewUserPrefToNoDetails domainInvitesSetInviteNewUserPrefToNoDetailsValue; + private DomainInvitesSetInviteNewUserPrefToYesDetails domainInvitesSetInviteNewUserPrefToYesDetailsValue; + private DomainVerificationAddDomainFailDetails domainVerificationAddDomainFailDetailsValue; + private DomainVerificationAddDomainSuccessDetails domainVerificationAddDomainSuccessDetailsValue; + private DomainVerificationRemoveDomainDetails domainVerificationRemoveDomainDetailsValue; + private EnabledDomainInvitesDetails enabledDomainInvitesDetailsValue; + private TeamEncryptionKeyCancelKeyDeletionDetails teamEncryptionKeyCancelKeyDeletionDetailsValue; + private TeamEncryptionKeyCreateKeyDetails teamEncryptionKeyCreateKeyDetailsValue; + private TeamEncryptionKeyDeleteKeyDetails teamEncryptionKeyDeleteKeyDetailsValue; + private TeamEncryptionKeyDisableKeyDetails teamEncryptionKeyDisableKeyDetailsValue; + private TeamEncryptionKeyEnableKeyDetails teamEncryptionKeyEnableKeyDetailsValue; + private TeamEncryptionKeyRotateKeyDetails teamEncryptionKeyRotateKeyDetailsValue; + private TeamEncryptionKeyScheduleKeyDeletionDetails teamEncryptionKeyScheduleKeyDeletionDetailsValue; + private ApplyNamingConventionDetails applyNamingConventionDetailsValue; + private CreateFolderDetails createFolderDetailsValue; + private FileAddDetails fileAddDetailsValue; + private FileAddFromAutomationDetails fileAddFromAutomationDetailsValue; + private FileCopyDetails fileCopyDetailsValue; + private FileDeleteDetails fileDeleteDetailsValue; + private FileDownloadDetails fileDownloadDetailsValue; + private FileEditDetails fileEditDetailsValue; + private FileGetCopyReferenceDetails fileGetCopyReferenceDetailsValue; + private FileLockingLockStatusChangedDetails fileLockingLockStatusChangedDetailsValue; + private FileMoveDetails fileMoveDetailsValue; + private FilePermanentlyDeleteDetails filePermanentlyDeleteDetailsValue; + private FilePreviewDetails filePreviewDetailsValue; + private FileRenameDetails fileRenameDetailsValue; + private FileRestoreDetails fileRestoreDetailsValue; + private FileRevertDetails fileRevertDetailsValue; + private FileRollbackChangesDetails fileRollbackChangesDetailsValue; + private FileSaveCopyReferenceDetails fileSaveCopyReferenceDetailsValue; + private FolderOverviewDescriptionChangedDetails folderOverviewDescriptionChangedDetailsValue; + private FolderOverviewItemPinnedDetails folderOverviewItemPinnedDetailsValue; + private FolderOverviewItemUnpinnedDetails folderOverviewItemUnpinnedDetailsValue; + private ObjectLabelAddedDetails objectLabelAddedDetailsValue; + private ObjectLabelRemovedDetails objectLabelRemovedDetailsValue; + private ObjectLabelUpdatedValueDetails objectLabelUpdatedValueDetailsValue; + private OrganizeFolderWithTidyDetails organizeFolderWithTidyDetailsValue; + private ReplayFileDeleteDetails replayFileDeleteDetailsValue; + private RewindFolderDetails rewindFolderDetailsValue; + private UndoNamingConventionDetails undoNamingConventionDetailsValue; + private UndoOrganizeFolderWithTidyDetails undoOrganizeFolderWithTidyDetailsValue; + private UserTagsAddedDetails userTagsAddedDetailsValue; + private UserTagsRemovedDetails userTagsRemovedDetailsValue; + private EmailIngestReceiveFileDetails emailIngestReceiveFileDetailsValue; + private FileRequestChangeDetails fileRequestChangeDetailsValue; + private FileRequestCloseDetails fileRequestCloseDetailsValue; + private FileRequestCreateDetails fileRequestCreateDetailsValue; + private FileRequestDeleteDetails fileRequestDeleteDetailsValue; + private FileRequestReceiveFileDetails fileRequestReceiveFileDetailsValue; + private GroupAddExternalIdDetails groupAddExternalIdDetailsValue; + private GroupAddMemberDetails groupAddMemberDetailsValue; + private GroupChangeExternalIdDetails groupChangeExternalIdDetailsValue; + private GroupChangeManagementTypeDetails groupChangeManagementTypeDetailsValue; + private GroupChangeMemberRoleDetails groupChangeMemberRoleDetailsValue; + private GroupCreateDetails groupCreateDetailsValue; + private GroupDeleteDetails groupDeleteDetailsValue; + private GroupDescriptionUpdatedDetails groupDescriptionUpdatedDetailsValue; + private GroupJoinPolicyUpdatedDetails groupJoinPolicyUpdatedDetailsValue; + private GroupMovedDetails groupMovedDetailsValue; + private GroupRemoveExternalIdDetails groupRemoveExternalIdDetailsValue; + private GroupRemoveMemberDetails groupRemoveMemberDetailsValue; + private GroupRenameDetails groupRenameDetailsValue; + private AccountLockOrUnlockedDetails accountLockOrUnlockedDetailsValue; + private EmmErrorDetails emmErrorDetailsValue; + private GuestAdminSignedInViaTrustedTeamsDetails guestAdminSignedInViaTrustedTeamsDetailsValue; + private GuestAdminSignedOutViaTrustedTeamsDetails guestAdminSignedOutViaTrustedTeamsDetailsValue; + private LoginFailDetails loginFailDetailsValue; + private LoginSuccessDetails loginSuccessDetailsValue; + private LogoutDetails logoutDetailsValue; + private ResellerSupportSessionEndDetails resellerSupportSessionEndDetailsValue; + private ResellerSupportSessionStartDetails resellerSupportSessionStartDetailsValue; + private SignInAsSessionEndDetails signInAsSessionEndDetailsValue; + private SignInAsSessionStartDetails signInAsSessionStartDetailsValue; + private SsoErrorDetails ssoErrorDetailsValue; + private BackupAdminInvitationSentDetails backupAdminInvitationSentDetailsValue; + private BackupInvitationOpenedDetails backupInvitationOpenedDetailsValue; + private CreateTeamInviteLinkDetails createTeamInviteLinkDetailsValue; + private DeleteTeamInviteLinkDetails deleteTeamInviteLinkDetailsValue; + private MemberAddExternalIdDetails memberAddExternalIdDetailsValue; + private MemberAddNameDetails memberAddNameDetailsValue; + private MemberChangeAdminRoleDetails memberChangeAdminRoleDetailsValue; + private MemberChangeEmailDetails memberChangeEmailDetailsValue; + private MemberChangeExternalIdDetails memberChangeExternalIdDetailsValue; + private MemberChangeMembershipTypeDetails memberChangeMembershipTypeDetailsValue; + private MemberChangeNameDetails memberChangeNameDetailsValue; + private MemberChangeResellerRoleDetails memberChangeResellerRoleDetailsValue; + private MemberChangeStatusDetails memberChangeStatusDetailsValue; + private MemberDeleteManualContactsDetails memberDeleteManualContactsDetailsValue; + private MemberDeleteProfilePhotoDetails memberDeleteProfilePhotoDetailsValue; + private MemberPermanentlyDeleteAccountContentsDetails memberPermanentlyDeleteAccountContentsDetailsValue; + private MemberRemoveExternalIdDetails memberRemoveExternalIdDetailsValue; + private MemberSetProfilePhotoDetails memberSetProfilePhotoDetailsValue; + private MemberSpaceLimitsAddCustomQuotaDetails memberSpaceLimitsAddCustomQuotaDetailsValue; + private MemberSpaceLimitsChangeCustomQuotaDetails memberSpaceLimitsChangeCustomQuotaDetailsValue; + private MemberSpaceLimitsChangeStatusDetails memberSpaceLimitsChangeStatusDetailsValue; + private MemberSpaceLimitsRemoveCustomQuotaDetails memberSpaceLimitsRemoveCustomQuotaDetailsValue; + private MemberSuggestDetails memberSuggestDetailsValue; + private MemberTransferAccountContentsDetails memberTransferAccountContentsDetailsValue; + private PendingSecondaryEmailAddedDetails pendingSecondaryEmailAddedDetailsValue; + private SecondaryEmailDeletedDetails secondaryEmailDeletedDetailsValue; + private SecondaryEmailVerifiedDetails secondaryEmailVerifiedDetailsValue; + private SecondaryMailsPolicyChangedDetails secondaryMailsPolicyChangedDetailsValue; + private BinderAddPageDetails binderAddPageDetailsValue; + private BinderAddSectionDetails binderAddSectionDetailsValue; + private BinderRemovePageDetails binderRemovePageDetailsValue; + private BinderRemoveSectionDetails binderRemoveSectionDetailsValue; + private BinderRenamePageDetails binderRenamePageDetailsValue; + private BinderRenameSectionDetails binderRenameSectionDetailsValue; + private BinderReorderPageDetails binderReorderPageDetailsValue; + private BinderReorderSectionDetails binderReorderSectionDetailsValue; + private PaperContentAddMemberDetails paperContentAddMemberDetailsValue; + private PaperContentAddToFolderDetails paperContentAddToFolderDetailsValue; + private PaperContentArchiveDetails paperContentArchiveDetailsValue; + private PaperContentCreateDetails paperContentCreateDetailsValue; + private PaperContentPermanentlyDeleteDetails paperContentPermanentlyDeleteDetailsValue; + private PaperContentRemoveFromFolderDetails paperContentRemoveFromFolderDetailsValue; + private PaperContentRemoveMemberDetails paperContentRemoveMemberDetailsValue; + private PaperContentRenameDetails paperContentRenameDetailsValue; + private PaperContentRestoreDetails paperContentRestoreDetailsValue; + private PaperDocAddCommentDetails paperDocAddCommentDetailsValue; + private PaperDocChangeMemberRoleDetails paperDocChangeMemberRoleDetailsValue; + private PaperDocChangeSharingPolicyDetails paperDocChangeSharingPolicyDetailsValue; + private PaperDocChangeSubscriptionDetails paperDocChangeSubscriptionDetailsValue; + private PaperDocDeletedDetails paperDocDeletedDetailsValue; + private PaperDocDeleteCommentDetails paperDocDeleteCommentDetailsValue; + private PaperDocDownloadDetails paperDocDownloadDetailsValue; + private PaperDocEditDetails paperDocEditDetailsValue; + private PaperDocEditCommentDetails paperDocEditCommentDetailsValue; + private PaperDocFollowedDetails paperDocFollowedDetailsValue; + private PaperDocMentionDetails paperDocMentionDetailsValue; + private PaperDocOwnershipChangedDetails paperDocOwnershipChangedDetailsValue; + private PaperDocRequestAccessDetails paperDocRequestAccessDetailsValue; + private PaperDocResolveCommentDetails paperDocResolveCommentDetailsValue; + private PaperDocRevertDetails paperDocRevertDetailsValue; + private PaperDocSlackShareDetails paperDocSlackShareDetailsValue; + private PaperDocTeamInviteDetails paperDocTeamInviteDetailsValue; + private PaperDocTrashedDetails paperDocTrashedDetailsValue; + private PaperDocUnresolveCommentDetails paperDocUnresolveCommentDetailsValue; + private PaperDocUntrashedDetails paperDocUntrashedDetailsValue; + private PaperDocViewDetails paperDocViewDetailsValue; + private PaperExternalViewAllowDetails paperExternalViewAllowDetailsValue; + private PaperExternalViewDefaultTeamDetails paperExternalViewDefaultTeamDetailsValue; + private PaperExternalViewForbidDetails paperExternalViewForbidDetailsValue; + private PaperFolderChangeSubscriptionDetails paperFolderChangeSubscriptionDetailsValue; + private PaperFolderDeletedDetails paperFolderDeletedDetailsValue; + private PaperFolderFollowedDetails paperFolderFollowedDetailsValue; + private PaperFolderTeamInviteDetails paperFolderTeamInviteDetailsValue; + private PaperPublishedLinkChangePermissionDetails paperPublishedLinkChangePermissionDetailsValue; + private PaperPublishedLinkCreateDetails paperPublishedLinkCreateDetailsValue; + private PaperPublishedLinkDisabledDetails paperPublishedLinkDisabledDetailsValue; + private PaperPublishedLinkViewDetails paperPublishedLinkViewDetailsValue; + private PasswordChangeDetails passwordChangeDetailsValue; + private PasswordResetDetails passwordResetDetailsValue; + private PasswordResetAllDetails passwordResetAllDetailsValue; + private ClassificationCreateReportDetails classificationCreateReportDetailsValue; + private ClassificationCreateReportFailDetails classificationCreateReportFailDetailsValue; + private EmmCreateExceptionsReportDetails emmCreateExceptionsReportDetailsValue; + private EmmCreateUsageReportDetails emmCreateUsageReportDetailsValue; + private ExportMembersReportDetails exportMembersReportDetailsValue; + private ExportMembersReportFailDetails exportMembersReportFailDetailsValue; + private ExternalSharingCreateReportDetails externalSharingCreateReportDetailsValue; + private ExternalSharingReportFailedDetails externalSharingReportFailedDetailsValue; + private NoExpirationLinkGenCreateReportDetails noExpirationLinkGenCreateReportDetailsValue; + private NoExpirationLinkGenReportFailedDetails noExpirationLinkGenReportFailedDetailsValue; + private NoPasswordLinkGenCreateReportDetails noPasswordLinkGenCreateReportDetailsValue; + private NoPasswordLinkGenReportFailedDetails noPasswordLinkGenReportFailedDetailsValue; + private NoPasswordLinkViewCreateReportDetails noPasswordLinkViewCreateReportDetailsValue; + private NoPasswordLinkViewReportFailedDetails noPasswordLinkViewReportFailedDetailsValue; + private OutdatedLinkViewCreateReportDetails outdatedLinkViewCreateReportDetailsValue; + private OutdatedLinkViewReportFailedDetails outdatedLinkViewReportFailedDetailsValue; + private PaperAdminExportStartDetails paperAdminExportStartDetailsValue; + private RansomwareAlertCreateReportDetails ransomwareAlertCreateReportDetailsValue; + private RansomwareAlertCreateReportFailedDetails ransomwareAlertCreateReportFailedDetailsValue; + private SmartSyncCreateAdminPrivilegeReportDetails smartSyncCreateAdminPrivilegeReportDetailsValue; + private TeamActivityCreateReportDetails teamActivityCreateReportDetailsValue; + private TeamActivityCreateReportFailDetails teamActivityCreateReportFailDetailsValue; + private CollectionShareDetails collectionShareDetailsValue; + private FileTransfersFileAddDetails fileTransfersFileAddDetailsValue; + private FileTransfersTransferDeleteDetails fileTransfersTransferDeleteDetailsValue; + private FileTransfersTransferDownloadDetails fileTransfersTransferDownloadDetailsValue; + private FileTransfersTransferSendDetails fileTransfersTransferSendDetailsValue; + private FileTransfersTransferViewDetails fileTransfersTransferViewDetailsValue; + private NoteAclInviteOnlyDetails noteAclInviteOnlyDetailsValue; + private NoteAclLinkDetails noteAclLinkDetailsValue; + private NoteAclTeamLinkDetails noteAclTeamLinkDetailsValue; + private NoteSharedDetails noteSharedDetailsValue; + private NoteShareReceiveDetails noteShareReceiveDetailsValue; + private OpenNoteSharedDetails openNoteSharedDetailsValue; + private ReplayFileSharedLinkCreatedDetails replayFileSharedLinkCreatedDetailsValue; + private ReplayFileSharedLinkModifiedDetails replayFileSharedLinkModifiedDetailsValue; + private ReplayProjectTeamAddDetails replayProjectTeamAddDetailsValue; + private ReplayProjectTeamDeleteDetails replayProjectTeamDeleteDetailsValue; + private SfAddGroupDetails sfAddGroupDetailsValue; + private SfAllowNonMembersToViewSharedLinksDetails sfAllowNonMembersToViewSharedLinksDetailsValue; + private SfExternalInviteWarnDetails sfExternalInviteWarnDetailsValue; + private SfFbInviteDetails sfFbInviteDetailsValue; + private SfFbInviteChangeRoleDetails sfFbInviteChangeRoleDetailsValue; + private SfFbUninviteDetails sfFbUninviteDetailsValue; + private SfInviteGroupDetails sfInviteGroupDetailsValue; + private SfTeamGrantAccessDetails sfTeamGrantAccessDetailsValue; + private SfTeamInviteDetails sfTeamInviteDetailsValue; + private SfTeamInviteChangeRoleDetails sfTeamInviteChangeRoleDetailsValue; + private SfTeamJoinDetails sfTeamJoinDetailsValue; + private SfTeamJoinFromOobLinkDetails sfTeamJoinFromOobLinkDetailsValue; + private SfTeamUninviteDetails sfTeamUninviteDetailsValue; + private SharedContentAddInviteesDetails sharedContentAddInviteesDetailsValue; + private SharedContentAddLinkExpiryDetails sharedContentAddLinkExpiryDetailsValue; + private SharedContentAddLinkPasswordDetails sharedContentAddLinkPasswordDetailsValue; + private SharedContentAddMemberDetails sharedContentAddMemberDetailsValue; + private SharedContentChangeDownloadsPolicyDetails sharedContentChangeDownloadsPolicyDetailsValue; + private SharedContentChangeInviteeRoleDetails sharedContentChangeInviteeRoleDetailsValue; + private SharedContentChangeLinkAudienceDetails sharedContentChangeLinkAudienceDetailsValue; + private SharedContentChangeLinkExpiryDetails sharedContentChangeLinkExpiryDetailsValue; + private SharedContentChangeLinkPasswordDetails sharedContentChangeLinkPasswordDetailsValue; + private SharedContentChangeMemberRoleDetails sharedContentChangeMemberRoleDetailsValue; + private SharedContentChangeViewerInfoPolicyDetails sharedContentChangeViewerInfoPolicyDetailsValue; + private SharedContentClaimInvitationDetails sharedContentClaimInvitationDetailsValue; + private SharedContentCopyDetails sharedContentCopyDetailsValue; + private SharedContentDownloadDetails sharedContentDownloadDetailsValue; + private SharedContentRelinquishMembershipDetails sharedContentRelinquishMembershipDetailsValue; + private SharedContentRemoveInviteesDetails sharedContentRemoveInviteesDetailsValue; + private SharedContentRemoveLinkExpiryDetails sharedContentRemoveLinkExpiryDetailsValue; + private SharedContentRemoveLinkPasswordDetails sharedContentRemoveLinkPasswordDetailsValue; + private SharedContentRemoveMemberDetails sharedContentRemoveMemberDetailsValue; + private SharedContentRequestAccessDetails sharedContentRequestAccessDetailsValue; + private SharedContentRestoreInviteesDetails sharedContentRestoreInviteesDetailsValue; + private SharedContentRestoreMemberDetails sharedContentRestoreMemberDetailsValue; + private SharedContentUnshareDetails sharedContentUnshareDetailsValue; + private SharedContentViewDetails sharedContentViewDetailsValue; + private SharedFolderChangeLinkPolicyDetails sharedFolderChangeLinkPolicyDetailsValue; + private SharedFolderChangeMembersInheritancePolicyDetails sharedFolderChangeMembersInheritancePolicyDetailsValue; + private SharedFolderChangeMembersManagementPolicyDetails sharedFolderChangeMembersManagementPolicyDetailsValue; + private SharedFolderChangeMembersPolicyDetails sharedFolderChangeMembersPolicyDetailsValue; + private SharedFolderCreateDetails sharedFolderCreateDetailsValue; + private SharedFolderDeclineInvitationDetails sharedFolderDeclineInvitationDetailsValue; + private SharedFolderMountDetails sharedFolderMountDetailsValue; + private SharedFolderNestDetails sharedFolderNestDetailsValue; + private SharedFolderTransferOwnershipDetails sharedFolderTransferOwnershipDetailsValue; + private SharedFolderUnmountDetails sharedFolderUnmountDetailsValue; + private SharedLinkAddExpiryDetails sharedLinkAddExpiryDetailsValue; + private SharedLinkChangeExpiryDetails sharedLinkChangeExpiryDetailsValue; + private SharedLinkChangeVisibilityDetails sharedLinkChangeVisibilityDetailsValue; + private SharedLinkCopyDetails sharedLinkCopyDetailsValue; + private SharedLinkCreateDetails sharedLinkCreateDetailsValue; + private SharedLinkDisableDetails sharedLinkDisableDetailsValue; + private SharedLinkDownloadDetails sharedLinkDownloadDetailsValue; + private SharedLinkRemoveExpiryDetails sharedLinkRemoveExpiryDetailsValue; + private SharedLinkSettingsAddExpirationDetails sharedLinkSettingsAddExpirationDetailsValue; + private SharedLinkSettingsAddPasswordDetails sharedLinkSettingsAddPasswordDetailsValue; + private SharedLinkSettingsAllowDownloadDisabledDetails sharedLinkSettingsAllowDownloadDisabledDetailsValue; + private SharedLinkSettingsAllowDownloadEnabledDetails sharedLinkSettingsAllowDownloadEnabledDetailsValue; + private SharedLinkSettingsChangeAudienceDetails sharedLinkSettingsChangeAudienceDetailsValue; + private SharedLinkSettingsChangeExpirationDetails sharedLinkSettingsChangeExpirationDetailsValue; + private SharedLinkSettingsChangePasswordDetails sharedLinkSettingsChangePasswordDetailsValue; + private SharedLinkSettingsRemoveExpirationDetails sharedLinkSettingsRemoveExpirationDetailsValue; + private SharedLinkSettingsRemovePasswordDetails sharedLinkSettingsRemovePasswordDetailsValue; + private SharedLinkShareDetails sharedLinkShareDetailsValue; + private SharedLinkViewDetails sharedLinkViewDetailsValue; + private SharedNoteOpenedDetails sharedNoteOpenedDetailsValue; + private ShmodelDisableDownloadsDetails shmodelDisableDownloadsDetailsValue; + private ShmodelEnableDownloadsDetails shmodelEnableDownloadsDetailsValue; + private ShmodelGroupShareDetails shmodelGroupShareDetailsValue; + private ShowcaseAccessGrantedDetails showcaseAccessGrantedDetailsValue; + private ShowcaseAddMemberDetails showcaseAddMemberDetailsValue; + private ShowcaseArchivedDetails showcaseArchivedDetailsValue; + private ShowcaseCreatedDetails showcaseCreatedDetailsValue; + private ShowcaseDeleteCommentDetails showcaseDeleteCommentDetailsValue; + private ShowcaseEditedDetails showcaseEditedDetailsValue; + private ShowcaseEditCommentDetails showcaseEditCommentDetailsValue; + private ShowcaseFileAddedDetails showcaseFileAddedDetailsValue; + private ShowcaseFileDownloadDetails showcaseFileDownloadDetailsValue; + private ShowcaseFileRemovedDetails showcaseFileRemovedDetailsValue; + private ShowcaseFileViewDetails showcaseFileViewDetailsValue; + private ShowcasePermanentlyDeletedDetails showcasePermanentlyDeletedDetailsValue; + private ShowcasePostCommentDetails showcasePostCommentDetailsValue; + private ShowcaseRemoveMemberDetails showcaseRemoveMemberDetailsValue; + private ShowcaseRenamedDetails showcaseRenamedDetailsValue; + private ShowcaseRequestAccessDetails showcaseRequestAccessDetailsValue; + private ShowcaseResolveCommentDetails showcaseResolveCommentDetailsValue; + private ShowcaseRestoredDetails showcaseRestoredDetailsValue; + private ShowcaseTrashedDetails showcaseTrashedDetailsValue; + private ShowcaseTrashedDeprecatedDetails showcaseTrashedDeprecatedDetailsValue; + private ShowcaseUnresolveCommentDetails showcaseUnresolveCommentDetailsValue; + private ShowcaseUntrashedDetails showcaseUntrashedDetailsValue; + private ShowcaseUntrashedDeprecatedDetails showcaseUntrashedDeprecatedDetailsValue; + private ShowcaseViewDetails showcaseViewDetailsValue; + private SsoAddCertDetails ssoAddCertDetailsValue; + private SsoAddLoginUrlDetails ssoAddLoginUrlDetailsValue; + private SsoAddLogoutUrlDetails ssoAddLogoutUrlDetailsValue; + private SsoChangeCertDetails ssoChangeCertDetailsValue; + private SsoChangeLoginUrlDetails ssoChangeLoginUrlDetailsValue; + private SsoChangeLogoutUrlDetails ssoChangeLogoutUrlDetailsValue; + private SsoChangeSamlIdentityModeDetails ssoChangeSamlIdentityModeDetailsValue; + private SsoRemoveCertDetails ssoRemoveCertDetailsValue; + private SsoRemoveLoginUrlDetails ssoRemoveLoginUrlDetailsValue; + private SsoRemoveLogoutUrlDetails ssoRemoveLogoutUrlDetailsValue; + private TeamFolderChangeStatusDetails teamFolderChangeStatusDetailsValue; + private TeamFolderCreateDetails teamFolderCreateDetailsValue; + private TeamFolderDowngradeDetails teamFolderDowngradeDetailsValue; + private TeamFolderPermanentlyDeleteDetails teamFolderPermanentlyDeleteDetailsValue; + private TeamFolderRenameDetails teamFolderRenameDetailsValue; + private TeamSelectiveSyncSettingsChangedDetails teamSelectiveSyncSettingsChangedDetailsValue; + private AccountCaptureChangePolicyDetails accountCaptureChangePolicyDetailsValue; + private AdminEmailRemindersChangedDetails adminEmailRemindersChangedDetailsValue; + private AllowDownloadDisabledDetails allowDownloadDisabledDetailsValue; + private AllowDownloadEnabledDetails allowDownloadEnabledDetailsValue; + private AppPermissionsChangedDetails appPermissionsChangedDetailsValue; + private CameraUploadsPolicyChangedDetails cameraUploadsPolicyChangedDetailsValue; + private CaptureTranscriptPolicyChangedDetails captureTranscriptPolicyChangedDetailsValue; + private ClassificationChangePolicyDetails classificationChangePolicyDetailsValue; + private ComputerBackupPolicyChangedDetails computerBackupPolicyChangedDetailsValue; + private ContentAdministrationPolicyChangedDetails contentAdministrationPolicyChangedDetailsValue; + private DataPlacementRestrictionChangePolicyDetails dataPlacementRestrictionChangePolicyDetailsValue; + private DataPlacementRestrictionSatisfyPolicyDetails dataPlacementRestrictionSatisfyPolicyDetailsValue; + private DeviceApprovalsAddExceptionDetails deviceApprovalsAddExceptionDetailsValue; + private DeviceApprovalsChangeDesktopPolicyDetails deviceApprovalsChangeDesktopPolicyDetailsValue; + private DeviceApprovalsChangeMobilePolicyDetails deviceApprovalsChangeMobilePolicyDetailsValue; + private DeviceApprovalsChangeOverageActionDetails deviceApprovalsChangeOverageActionDetailsValue; + private DeviceApprovalsChangeUnlinkActionDetails deviceApprovalsChangeUnlinkActionDetailsValue; + private DeviceApprovalsRemoveExceptionDetails deviceApprovalsRemoveExceptionDetailsValue; + private DirectoryRestrictionsAddMembersDetails directoryRestrictionsAddMembersDetailsValue; + private DirectoryRestrictionsRemoveMembersDetails directoryRestrictionsRemoveMembersDetailsValue; + private DropboxPasswordsPolicyChangedDetails dropboxPasswordsPolicyChangedDetailsValue; + private EmailIngestPolicyChangedDetails emailIngestPolicyChangedDetailsValue; + private EmmAddExceptionDetails emmAddExceptionDetailsValue; + private EmmChangePolicyDetails emmChangePolicyDetailsValue; + private EmmRemoveExceptionDetails emmRemoveExceptionDetailsValue; + private ExtendedVersionHistoryChangePolicyDetails extendedVersionHistoryChangePolicyDetailsValue; + private ExternalDriveBackupPolicyChangedDetails externalDriveBackupPolicyChangedDetailsValue; + private FileCommentsChangePolicyDetails fileCommentsChangePolicyDetailsValue; + private FileLockingPolicyChangedDetails fileLockingPolicyChangedDetailsValue; + private FileProviderMigrationPolicyChangedDetails fileProviderMigrationPolicyChangedDetailsValue; + private FileRequestsChangePolicyDetails fileRequestsChangePolicyDetailsValue; + private FileRequestsEmailsEnabledDetails fileRequestsEmailsEnabledDetailsValue; + private FileRequestsEmailsRestrictedToTeamOnlyDetails fileRequestsEmailsRestrictedToTeamOnlyDetailsValue; + private FileTransfersPolicyChangedDetails fileTransfersPolicyChangedDetailsValue; + private FolderLinkRestrictionPolicyChangedDetails folderLinkRestrictionPolicyChangedDetailsValue; + private GoogleSsoChangePolicyDetails googleSsoChangePolicyDetailsValue; + private GroupUserManagementChangePolicyDetails groupUserManagementChangePolicyDetailsValue; + private IntegrationPolicyChangedDetails integrationPolicyChangedDetailsValue; + private InviteAcceptanceEmailPolicyChangedDetails inviteAcceptanceEmailPolicyChangedDetailsValue; + private MemberRequestsChangePolicyDetails memberRequestsChangePolicyDetailsValue; + private MemberSendInvitePolicyChangedDetails memberSendInvitePolicyChangedDetailsValue; + private MemberSpaceLimitsAddExceptionDetails memberSpaceLimitsAddExceptionDetailsValue; + private MemberSpaceLimitsChangeCapsTypePolicyDetails memberSpaceLimitsChangeCapsTypePolicyDetailsValue; + private MemberSpaceLimitsChangePolicyDetails memberSpaceLimitsChangePolicyDetailsValue; + private MemberSpaceLimitsRemoveExceptionDetails memberSpaceLimitsRemoveExceptionDetailsValue; + private MemberSuggestionsChangePolicyDetails memberSuggestionsChangePolicyDetailsValue; + private MicrosoftOfficeAddinChangePolicyDetails microsoftOfficeAddinChangePolicyDetailsValue; + private NetworkControlChangePolicyDetails networkControlChangePolicyDetailsValue; + private PaperChangeDeploymentPolicyDetails paperChangeDeploymentPolicyDetailsValue; + private PaperChangeMemberLinkPolicyDetails paperChangeMemberLinkPolicyDetailsValue; + private PaperChangeMemberPolicyDetails paperChangeMemberPolicyDetailsValue; + private PaperChangePolicyDetails paperChangePolicyDetailsValue; + private PaperDefaultFolderPolicyChangedDetails paperDefaultFolderPolicyChangedDetailsValue; + private PaperDesktopPolicyChangedDetails paperDesktopPolicyChangedDetailsValue; + private PaperEnabledUsersGroupAdditionDetails paperEnabledUsersGroupAdditionDetailsValue; + private PaperEnabledUsersGroupRemovalDetails paperEnabledUsersGroupRemovalDetailsValue; + private PasswordStrengthRequirementsChangePolicyDetails passwordStrengthRequirementsChangePolicyDetailsValue; + private PermanentDeleteChangePolicyDetails permanentDeleteChangePolicyDetailsValue; + private ResellerSupportChangePolicyDetails resellerSupportChangePolicyDetailsValue; + private RewindPolicyChangedDetails rewindPolicyChangedDetailsValue; + private SendForSignaturePolicyChangedDetails sendForSignaturePolicyChangedDetailsValue; + private SharingChangeFolderJoinPolicyDetails sharingChangeFolderJoinPolicyDetailsValue; + private SharingChangeLinkAllowChangeExpirationPolicyDetails sharingChangeLinkAllowChangeExpirationPolicyDetailsValue; + private SharingChangeLinkDefaultExpirationPolicyDetails sharingChangeLinkDefaultExpirationPolicyDetailsValue; + private SharingChangeLinkEnforcePasswordPolicyDetails sharingChangeLinkEnforcePasswordPolicyDetailsValue; + private SharingChangeLinkPolicyDetails sharingChangeLinkPolicyDetailsValue; + private SharingChangeMemberPolicyDetails sharingChangeMemberPolicyDetailsValue; + private ShowcaseChangeDownloadPolicyDetails showcaseChangeDownloadPolicyDetailsValue; + private ShowcaseChangeEnabledPolicyDetails showcaseChangeEnabledPolicyDetailsValue; + private ShowcaseChangeExternalSharingPolicyDetails showcaseChangeExternalSharingPolicyDetailsValue; + private SmarterSmartSyncPolicyChangedDetails smarterSmartSyncPolicyChangedDetailsValue; + private SmartSyncChangePolicyDetails smartSyncChangePolicyDetailsValue; + private SmartSyncNotOptOutDetails smartSyncNotOptOutDetailsValue; + private SmartSyncOptOutDetails smartSyncOptOutDetailsValue; + private SsoChangePolicyDetails ssoChangePolicyDetailsValue; + private TeamBrandingPolicyChangedDetails teamBrandingPolicyChangedDetailsValue; + private TeamExtensionsPolicyChangedDetails teamExtensionsPolicyChangedDetailsValue; + private TeamSelectiveSyncPolicyChangedDetails teamSelectiveSyncPolicyChangedDetailsValue; + private TeamSharingWhitelistSubjectsChangedDetails teamSharingWhitelistSubjectsChangedDetailsValue; + private TfaAddExceptionDetails tfaAddExceptionDetailsValue; + private TfaChangePolicyDetails tfaChangePolicyDetailsValue; + private TfaRemoveExceptionDetails tfaRemoveExceptionDetailsValue; + private TwoAccountChangePolicyDetails twoAccountChangePolicyDetailsValue; + private ViewerInfoPolicyChangedDetails viewerInfoPolicyChangedDetailsValue; + private WatermarkingPolicyChangedDetails watermarkingPolicyChangedDetailsValue; + private WebSessionsChangeActiveSessionLimitDetails webSessionsChangeActiveSessionLimitDetailsValue; + private WebSessionsChangeFixedLengthPolicyDetails webSessionsChangeFixedLengthPolicyDetailsValue; + private WebSessionsChangeIdleLengthPolicyDetails webSessionsChangeIdleLengthPolicyDetailsValue; + private DataResidencyMigrationRequestSuccessfulDetails dataResidencyMigrationRequestSuccessfulDetailsValue; + private DataResidencyMigrationRequestUnsuccessfulDetails dataResidencyMigrationRequestUnsuccessfulDetailsValue; + private TeamMergeFromDetails teamMergeFromDetailsValue; + private TeamMergeToDetails teamMergeToDetailsValue; + private TeamProfileAddBackgroundDetails teamProfileAddBackgroundDetailsValue; + private TeamProfileAddLogoDetails teamProfileAddLogoDetailsValue; + private TeamProfileChangeBackgroundDetails teamProfileChangeBackgroundDetailsValue; + private TeamProfileChangeDefaultLanguageDetails teamProfileChangeDefaultLanguageDetailsValue; + private TeamProfileChangeLogoDetails teamProfileChangeLogoDetailsValue; + private TeamProfileChangeNameDetails teamProfileChangeNameDetailsValue; + private TeamProfileRemoveBackgroundDetails teamProfileRemoveBackgroundDetailsValue; + private TeamProfileRemoveLogoDetails teamProfileRemoveLogoDetailsValue; + private TfaAddBackupPhoneDetails tfaAddBackupPhoneDetailsValue; + private TfaAddSecurityKeyDetails tfaAddSecurityKeyDetailsValue; + private TfaChangeBackupPhoneDetails tfaChangeBackupPhoneDetailsValue; + private TfaChangeStatusDetails tfaChangeStatusDetailsValue; + private TfaRemoveBackupPhoneDetails tfaRemoveBackupPhoneDetailsValue; + private TfaRemoveSecurityKeyDetails tfaRemoveSecurityKeyDetailsValue; + private TfaResetDetails tfaResetDetailsValue; + private ChangedEnterpriseAdminRoleDetails changedEnterpriseAdminRoleDetailsValue; + private ChangedEnterpriseConnectedTeamStatusDetails changedEnterpriseConnectedTeamStatusDetailsValue; + private EndedEnterpriseAdminSessionDetails endedEnterpriseAdminSessionDetailsValue; + private EndedEnterpriseAdminSessionDeprecatedDetails endedEnterpriseAdminSessionDeprecatedDetailsValue; + private EnterpriseSettingsLockingDetails enterpriseSettingsLockingDetailsValue; + private GuestAdminChangeStatusDetails guestAdminChangeStatusDetailsValue; + private StartedEnterpriseAdminSessionDetails startedEnterpriseAdminSessionDetailsValue; + private TeamMergeRequestAcceptedDetails teamMergeRequestAcceptedDetailsValue; + private TeamMergeRequestAcceptedShownToPrimaryTeamDetails teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue; + private TeamMergeRequestAcceptedShownToSecondaryTeamDetails teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue; + private TeamMergeRequestAutoCanceledDetails teamMergeRequestAutoCanceledDetailsValue; + private TeamMergeRequestCanceledDetails teamMergeRequestCanceledDetailsValue; + private TeamMergeRequestCanceledShownToPrimaryTeamDetails teamMergeRequestCanceledShownToPrimaryTeamDetailsValue; + private TeamMergeRequestCanceledShownToSecondaryTeamDetails teamMergeRequestCanceledShownToSecondaryTeamDetailsValue; + private TeamMergeRequestExpiredDetails teamMergeRequestExpiredDetailsValue; + private TeamMergeRequestExpiredShownToPrimaryTeamDetails teamMergeRequestExpiredShownToPrimaryTeamDetailsValue; + private TeamMergeRequestExpiredShownToSecondaryTeamDetails teamMergeRequestExpiredShownToSecondaryTeamDetailsValue; + private TeamMergeRequestRejectedShownToPrimaryTeamDetails teamMergeRequestRejectedShownToPrimaryTeamDetailsValue; + private TeamMergeRequestRejectedShownToSecondaryTeamDetails teamMergeRequestRejectedShownToSecondaryTeamDetailsValue; + private TeamMergeRequestReminderDetails teamMergeRequestReminderDetailsValue; + private TeamMergeRequestReminderShownToPrimaryTeamDetails teamMergeRequestReminderShownToPrimaryTeamDetailsValue; + private TeamMergeRequestReminderShownToSecondaryTeamDetails teamMergeRequestReminderShownToSecondaryTeamDetailsValue; + private TeamMergeRequestRevokedDetails teamMergeRequestRevokedDetailsValue; + private TeamMergeRequestSentShownToPrimaryTeamDetails teamMergeRequestSentShownToPrimaryTeamDetailsValue; + private TeamMergeRequestSentShownToSecondaryTeamDetails teamMergeRequestSentShownToSecondaryTeamDetailsValue; + private MissingDetails missingDetailsValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private EventDetails() { + } + + + /** + * Additional fields depending on the event type. + * + * @param _tag Discriminating tag for this instance. + */ + private EventDetails withTag(Tag _tag) { + EventDetails result = new EventDetails(); + result._tag = _tag; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param adminAlertingAlertStateChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAdminAlertingAlertStateChangedDetails(Tag _tag, AdminAlertingAlertStateChangedDetails adminAlertingAlertStateChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.adminAlertingAlertStateChangedDetailsValue = adminAlertingAlertStateChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param adminAlertingChangedAlertConfigDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAdminAlertingChangedAlertConfigDetails(Tag _tag, AdminAlertingChangedAlertConfigDetails adminAlertingChangedAlertConfigDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.adminAlertingChangedAlertConfigDetailsValue = adminAlertingChangedAlertConfigDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param adminAlertingTriggeredAlertDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAdminAlertingTriggeredAlertDetails(Tag _tag, AdminAlertingTriggeredAlertDetails adminAlertingTriggeredAlertDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.adminAlertingTriggeredAlertDetailsValue = adminAlertingTriggeredAlertDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ransomwareRestoreProcessCompletedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndRansomwareRestoreProcessCompletedDetails(Tag _tag, RansomwareRestoreProcessCompletedDetails ransomwareRestoreProcessCompletedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ransomwareRestoreProcessCompletedDetailsValue = ransomwareRestoreProcessCompletedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ransomwareRestoreProcessStartedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndRansomwareRestoreProcessStartedDetails(Tag _tag, RansomwareRestoreProcessStartedDetails ransomwareRestoreProcessStartedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ransomwareRestoreProcessStartedDetailsValue = ransomwareRestoreProcessStartedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param appBlockedByPermissionsDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAppBlockedByPermissionsDetails(Tag _tag, AppBlockedByPermissionsDetails appBlockedByPermissionsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.appBlockedByPermissionsDetailsValue = appBlockedByPermissionsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param appLinkTeamDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAppLinkTeamDetails(Tag _tag, AppLinkTeamDetails appLinkTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.appLinkTeamDetailsValue = appLinkTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param appLinkUserDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAppLinkUserDetails(Tag _tag, AppLinkUserDetails appLinkUserDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.appLinkUserDetailsValue = appLinkUserDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param appUnlinkTeamDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAppUnlinkTeamDetails(Tag _tag, AppUnlinkTeamDetails appUnlinkTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.appUnlinkTeamDetailsValue = appUnlinkTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param appUnlinkUserDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAppUnlinkUserDetails(Tag _tag, AppUnlinkUserDetails appUnlinkUserDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.appUnlinkUserDetailsValue = appUnlinkUserDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param integrationConnectedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndIntegrationConnectedDetails(Tag _tag, IntegrationConnectedDetails integrationConnectedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.integrationConnectedDetailsValue = integrationConnectedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param integrationDisconnectedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndIntegrationDisconnectedDetails(Tag _tag, IntegrationDisconnectedDetails integrationDisconnectedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.integrationDisconnectedDetailsValue = integrationDisconnectedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileAddCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileAddCommentDetails(Tag _tag, FileAddCommentDetails fileAddCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileAddCommentDetailsValue = fileAddCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileChangeCommentSubscriptionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileChangeCommentSubscriptionDetails(Tag _tag, FileChangeCommentSubscriptionDetails fileChangeCommentSubscriptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileChangeCommentSubscriptionDetailsValue = fileChangeCommentSubscriptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileDeleteCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileDeleteCommentDetails(Tag _tag, FileDeleteCommentDetails fileDeleteCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileDeleteCommentDetailsValue = fileDeleteCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileEditCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileEditCommentDetails(Tag _tag, FileEditCommentDetails fileEditCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileEditCommentDetailsValue = fileEditCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileLikeCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileLikeCommentDetails(Tag _tag, FileLikeCommentDetails fileLikeCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileLikeCommentDetailsValue = fileLikeCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileResolveCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileResolveCommentDetails(Tag _tag, FileResolveCommentDetails fileResolveCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileResolveCommentDetailsValue = fileResolveCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileUnlikeCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileUnlikeCommentDetails(Tag _tag, FileUnlikeCommentDetails fileUnlikeCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileUnlikeCommentDetailsValue = fileUnlikeCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileUnresolveCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileUnresolveCommentDetails(Tag _tag, FileUnresolveCommentDetails fileUnresolveCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileUnresolveCommentDetailsValue = fileUnresolveCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyAddFoldersDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyAddFoldersDetails(Tag _tag, GovernancePolicyAddFoldersDetails governancePolicyAddFoldersDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyAddFoldersDetailsValue = governancePolicyAddFoldersDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyAddFolderFailedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyAddFolderFailedDetails(Tag _tag, GovernancePolicyAddFolderFailedDetails governancePolicyAddFolderFailedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyAddFolderFailedDetailsValue = governancePolicyAddFolderFailedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyContentDisposedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyContentDisposedDetails(Tag _tag, GovernancePolicyContentDisposedDetails governancePolicyContentDisposedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyContentDisposedDetailsValue = governancePolicyContentDisposedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyCreateDetails(Tag _tag, GovernancePolicyCreateDetails governancePolicyCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyCreateDetailsValue = governancePolicyCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyDeleteDetails(Tag _tag, GovernancePolicyDeleteDetails governancePolicyDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyDeleteDetailsValue = governancePolicyDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyEditDetailsDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyEditDetailsDetails(Tag _tag, GovernancePolicyEditDetailsDetails governancePolicyEditDetailsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyEditDetailsDetailsValue = governancePolicyEditDetailsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyEditDurationDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyEditDurationDetails(Tag _tag, GovernancePolicyEditDurationDetails governancePolicyEditDurationDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyEditDurationDetailsValue = governancePolicyEditDurationDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyExportCreatedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyExportCreatedDetails(Tag _tag, GovernancePolicyExportCreatedDetails governancePolicyExportCreatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyExportCreatedDetailsValue = governancePolicyExportCreatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyExportRemovedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyExportRemovedDetails(Tag _tag, GovernancePolicyExportRemovedDetails governancePolicyExportRemovedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyExportRemovedDetailsValue = governancePolicyExportRemovedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyRemoveFoldersDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyRemoveFoldersDetails(Tag _tag, GovernancePolicyRemoveFoldersDetails governancePolicyRemoveFoldersDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyRemoveFoldersDetailsValue = governancePolicyRemoveFoldersDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyReportCreatedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyReportCreatedDetails(Tag _tag, GovernancePolicyReportCreatedDetails governancePolicyReportCreatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyReportCreatedDetailsValue = governancePolicyReportCreatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param governancePolicyZipPartDownloadedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGovernancePolicyZipPartDownloadedDetails(Tag _tag, GovernancePolicyZipPartDownloadedDetails governancePolicyZipPartDownloadedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.governancePolicyZipPartDownloadedDetailsValue = governancePolicyZipPartDownloadedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsActivateAHoldDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsActivateAHoldDetails(Tag _tag, LegalHoldsActivateAHoldDetails legalHoldsActivateAHoldDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsActivateAHoldDetailsValue = legalHoldsActivateAHoldDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsAddMembersDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsAddMembersDetails(Tag _tag, LegalHoldsAddMembersDetails legalHoldsAddMembersDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsAddMembersDetailsValue = legalHoldsAddMembersDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsChangeHoldDetailsDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsChangeHoldDetailsDetails(Tag _tag, LegalHoldsChangeHoldDetailsDetails legalHoldsChangeHoldDetailsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsChangeHoldDetailsDetailsValue = legalHoldsChangeHoldDetailsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsChangeHoldNameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsChangeHoldNameDetails(Tag _tag, LegalHoldsChangeHoldNameDetails legalHoldsChangeHoldNameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsChangeHoldNameDetailsValue = legalHoldsChangeHoldNameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsExportAHoldDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsExportAHoldDetails(Tag _tag, LegalHoldsExportAHoldDetails legalHoldsExportAHoldDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsExportAHoldDetailsValue = legalHoldsExportAHoldDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsExportCancelledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsExportCancelledDetails(Tag _tag, LegalHoldsExportCancelledDetails legalHoldsExportCancelledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsExportCancelledDetailsValue = legalHoldsExportCancelledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsExportDownloadedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsExportDownloadedDetails(Tag _tag, LegalHoldsExportDownloadedDetails legalHoldsExportDownloadedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsExportDownloadedDetailsValue = legalHoldsExportDownloadedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsExportRemovedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsExportRemovedDetails(Tag _tag, LegalHoldsExportRemovedDetails legalHoldsExportRemovedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsExportRemovedDetailsValue = legalHoldsExportRemovedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsReleaseAHoldDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsReleaseAHoldDetails(Tag _tag, LegalHoldsReleaseAHoldDetails legalHoldsReleaseAHoldDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsReleaseAHoldDetailsValue = legalHoldsReleaseAHoldDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsRemoveMembersDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsRemoveMembersDetails(Tag _tag, LegalHoldsRemoveMembersDetails legalHoldsRemoveMembersDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsRemoveMembersDetailsValue = legalHoldsRemoveMembersDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param legalHoldsReportAHoldDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLegalHoldsReportAHoldDetails(Tag _tag, LegalHoldsReportAHoldDetails legalHoldsReportAHoldDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.legalHoldsReportAHoldDetailsValue = legalHoldsReportAHoldDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceChangeIpDesktopDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceChangeIpDesktopDetails(Tag _tag, DeviceChangeIpDesktopDetails deviceChangeIpDesktopDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceChangeIpDesktopDetailsValue = deviceChangeIpDesktopDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceChangeIpMobileDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceChangeIpMobileDetails(Tag _tag, DeviceChangeIpMobileDetails deviceChangeIpMobileDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceChangeIpMobileDetailsValue = deviceChangeIpMobileDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceChangeIpWebDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceChangeIpWebDetails(Tag _tag, DeviceChangeIpWebDetails deviceChangeIpWebDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceChangeIpWebDetailsValue = deviceChangeIpWebDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceDeleteOnUnlinkFailDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceDeleteOnUnlinkFailDetails(Tag _tag, DeviceDeleteOnUnlinkFailDetails deviceDeleteOnUnlinkFailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceDeleteOnUnlinkFailDetailsValue = deviceDeleteOnUnlinkFailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceDeleteOnUnlinkSuccessDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceDeleteOnUnlinkSuccessDetails(Tag _tag, DeviceDeleteOnUnlinkSuccessDetails deviceDeleteOnUnlinkSuccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceDeleteOnUnlinkSuccessDetailsValue = deviceDeleteOnUnlinkSuccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceLinkFailDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceLinkFailDetails(Tag _tag, DeviceLinkFailDetails deviceLinkFailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceLinkFailDetailsValue = deviceLinkFailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceLinkSuccessDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceLinkSuccessDetails(Tag _tag, DeviceLinkSuccessDetails deviceLinkSuccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceLinkSuccessDetailsValue = deviceLinkSuccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceManagementDisabledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceManagementDisabledDetails(Tag _tag, DeviceManagementDisabledDetails deviceManagementDisabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceManagementDisabledDetailsValue = deviceManagementDisabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceManagementEnabledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceManagementEnabledDetails(Tag _tag, DeviceManagementEnabledDetails deviceManagementEnabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceManagementEnabledDetailsValue = deviceManagementEnabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceSyncBackupStatusChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceSyncBackupStatusChangedDetails(Tag _tag, DeviceSyncBackupStatusChangedDetails deviceSyncBackupStatusChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceSyncBackupStatusChangedDetailsValue = deviceSyncBackupStatusChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceUnlinkDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceUnlinkDetails(Tag _tag, DeviceUnlinkDetails deviceUnlinkDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceUnlinkDetailsValue = deviceUnlinkDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param dropboxPasswordsExportedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDropboxPasswordsExportedDetails(Tag _tag, DropboxPasswordsExportedDetails dropboxPasswordsExportedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.dropboxPasswordsExportedDetailsValue = dropboxPasswordsExportedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param dropboxPasswordsNewDeviceEnrolledDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDropboxPasswordsNewDeviceEnrolledDetails(Tag _tag, DropboxPasswordsNewDeviceEnrolledDetails dropboxPasswordsNewDeviceEnrolledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.dropboxPasswordsNewDeviceEnrolledDetailsValue = dropboxPasswordsNewDeviceEnrolledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emmRefreshAuthTokenDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmmRefreshAuthTokenDetails(Tag _tag, EmmRefreshAuthTokenDetails emmRefreshAuthTokenDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emmRefreshAuthTokenDetailsValue = emmRefreshAuthTokenDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param externalDriveBackupEligibilityStatusCheckedDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExternalDriveBackupEligibilityStatusCheckedDetails(Tag _tag, ExternalDriveBackupEligibilityStatusCheckedDetails externalDriveBackupEligibilityStatusCheckedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.externalDriveBackupEligibilityStatusCheckedDetailsValue = externalDriveBackupEligibilityStatusCheckedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param externalDriveBackupStatusChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExternalDriveBackupStatusChangedDetails(Tag _tag, ExternalDriveBackupStatusChangedDetails externalDriveBackupStatusChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.externalDriveBackupStatusChangedDetailsValue = externalDriveBackupStatusChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param accountCaptureChangeAvailabilityDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAccountCaptureChangeAvailabilityDetails(Tag _tag, AccountCaptureChangeAvailabilityDetails accountCaptureChangeAvailabilityDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.accountCaptureChangeAvailabilityDetailsValue = accountCaptureChangeAvailabilityDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param accountCaptureMigrateAccountDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAccountCaptureMigrateAccountDetails(Tag _tag, AccountCaptureMigrateAccountDetails accountCaptureMigrateAccountDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.accountCaptureMigrateAccountDetailsValue = accountCaptureMigrateAccountDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param accountCaptureNotificationEmailsSentDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAccountCaptureNotificationEmailsSentDetails(Tag _tag, AccountCaptureNotificationEmailsSentDetails accountCaptureNotificationEmailsSentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.accountCaptureNotificationEmailsSentDetailsValue = accountCaptureNotificationEmailsSentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param accountCaptureRelinquishAccountDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAccountCaptureRelinquishAccountDetails(Tag _tag, AccountCaptureRelinquishAccountDetails accountCaptureRelinquishAccountDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.accountCaptureRelinquishAccountDetailsValue = accountCaptureRelinquishAccountDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param disabledDomainInvitesDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDisabledDomainInvitesDetails(Tag _tag, DisabledDomainInvitesDetails disabledDomainInvitesDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.disabledDomainInvitesDetailsValue = disabledDomainInvitesDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainInvitesApproveRequestToJoinTeamDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainInvitesApproveRequestToJoinTeamDetails(Tag _tag, DomainInvitesApproveRequestToJoinTeamDetails domainInvitesApproveRequestToJoinTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainInvitesApproveRequestToJoinTeamDetailsValue = domainInvitesApproveRequestToJoinTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainInvitesDeclineRequestToJoinTeamDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainInvitesDeclineRequestToJoinTeamDetails(Tag _tag, DomainInvitesDeclineRequestToJoinTeamDetails domainInvitesDeclineRequestToJoinTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainInvitesDeclineRequestToJoinTeamDetailsValue = domainInvitesDeclineRequestToJoinTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainInvitesEmailExistingUsersDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainInvitesEmailExistingUsersDetails(Tag _tag, DomainInvitesEmailExistingUsersDetails domainInvitesEmailExistingUsersDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainInvitesEmailExistingUsersDetailsValue = domainInvitesEmailExistingUsersDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainInvitesRequestToJoinTeamDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainInvitesRequestToJoinTeamDetails(Tag _tag, DomainInvitesRequestToJoinTeamDetails domainInvitesRequestToJoinTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainInvitesRequestToJoinTeamDetailsValue = domainInvitesRequestToJoinTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainInvitesSetInviteNewUserPrefToNoDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainInvitesSetInviteNewUserPrefToNoDetails(Tag _tag, DomainInvitesSetInviteNewUserPrefToNoDetails domainInvitesSetInviteNewUserPrefToNoDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainInvitesSetInviteNewUserPrefToNoDetailsValue = domainInvitesSetInviteNewUserPrefToNoDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainInvitesSetInviteNewUserPrefToYesDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainInvitesSetInviteNewUserPrefToYesDetails(Tag _tag, DomainInvitesSetInviteNewUserPrefToYesDetails domainInvitesSetInviteNewUserPrefToYesDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainInvitesSetInviteNewUserPrefToYesDetailsValue = domainInvitesSetInviteNewUserPrefToYesDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainVerificationAddDomainFailDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainVerificationAddDomainFailDetails(Tag _tag, DomainVerificationAddDomainFailDetails domainVerificationAddDomainFailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainVerificationAddDomainFailDetailsValue = domainVerificationAddDomainFailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainVerificationAddDomainSuccessDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainVerificationAddDomainSuccessDetails(Tag _tag, DomainVerificationAddDomainSuccessDetails domainVerificationAddDomainSuccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainVerificationAddDomainSuccessDetailsValue = domainVerificationAddDomainSuccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param domainVerificationRemoveDomainDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDomainVerificationRemoveDomainDetails(Tag _tag, DomainVerificationRemoveDomainDetails domainVerificationRemoveDomainDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.domainVerificationRemoveDomainDetailsValue = domainVerificationRemoveDomainDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param enabledDomainInvitesDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEnabledDomainInvitesDetails(Tag _tag, EnabledDomainInvitesDetails enabledDomainInvitesDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.enabledDomainInvitesDetailsValue = enabledDomainInvitesDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamEncryptionKeyCancelKeyDeletionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamEncryptionKeyCancelKeyDeletionDetails(Tag _tag, TeamEncryptionKeyCancelKeyDeletionDetails teamEncryptionKeyCancelKeyDeletionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamEncryptionKeyCancelKeyDeletionDetailsValue = teamEncryptionKeyCancelKeyDeletionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamEncryptionKeyCreateKeyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamEncryptionKeyCreateKeyDetails(Tag _tag, TeamEncryptionKeyCreateKeyDetails teamEncryptionKeyCreateKeyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamEncryptionKeyCreateKeyDetailsValue = teamEncryptionKeyCreateKeyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamEncryptionKeyDeleteKeyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamEncryptionKeyDeleteKeyDetails(Tag _tag, TeamEncryptionKeyDeleteKeyDetails teamEncryptionKeyDeleteKeyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamEncryptionKeyDeleteKeyDetailsValue = teamEncryptionKeyDeleteKeyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamEncryptionKeyDisableKeyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamEncryptionKeyDisableKeyDetails(Tag _tag, TeamEncryptionKeyDisableKeyDetails teamEncryptionKeyDisableKeyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamEncryptionKeyDisableKeyDetailsValue = teamEncryptionKeyDisableKeyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamEncryptionKeyEnableKeyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamEncryptionKeyEnableKeyDetails(Tag _tag, TeamEncryptionKeyEnableKeyDetails teamEncryptionKeyEnableKeyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamEncryptionKeyEnableKeyDetailsValue = teamEncryptionKeyEnableKeyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamEncryptionKeyRotateKeyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamEncryptionKeyRotateKeyDetails(Tag _tag, TeamEncryptionKeyRotateKeyDetails teamEncryptionKeyRotateKeyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamEncryptionKeyRotateKeyDetailsValue = teamEncryptionKeyRotateKeyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamEncryptionKeyScheduleKeyDeletionDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamEncryptionKeyScheduleKeyDeletionDetails(Tag _tag, TeamEncryptionKeyScheduleKeyDeletionDetails teamEncryptionKeyScheduleKeyDeletionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamEncryptionKeyScheduleKeyDeletionDetailsValue = teamEncryptionKeyScheduleKeyDeletionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param applyNamingConventionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndApplyNamingConventionDetails(Tag _tag, ApplyNamingConventionDetails applyNamingConventionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.applyNamingConventionDetailsValue = applyNamingConventionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param createFolderDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndCreateFolderDetails(Tag _tag, CreateFolderDetails createFolderDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.createFolderDetailsValue = createFolderDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileAddDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileAddDetails(Tag _tag, FileAddDetails fileAddDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileAddDetailsValue = fileAddDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileAddFromAutomationDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileAddFromAutomationDetails(Tag _tag, FileAddFromAutomationDetails fileAddFromAutomationDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileAddFromAutomationDetailsValue = fileAddFromAutomationDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileCopyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileCopyDetails(Tag _tag, FileCopyDetails fileCopyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileCopyDetailsValue = fileCopyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileDeleteDetails(Tag _tag, FileDeleteDetails fileDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileDeleteDetailsValue = fileDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileDownloadDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileDownloadDetails(Tag _tag, FileDownloadDetails fileDownloadDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileDownloadDetailsValue = fileDownloadDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileEditDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileEditDetails(Tag _tag, FileEditDetails fileEditDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileEditDetailsValue = fileEditDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileGetCopyReferenceDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileGetCopyReferenceDetails(Tag _tag, FileGetCopyReferenceDetails fileGetCopyReferenceDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileGetCopyReferenceDetailsValue = fileGetCopyReferenceDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileLockingLockStatusChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileLockingLockStatusChangedDetails(Tag _tag, FileLockingLockStatusChangedDetails fileLockingLockStatusChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileLockingLockStatusChangedDetailsValue = fileLockingLockStatusChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileMoveDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileMoveDetails(Tag _tag, FileMoveDetails fileMoveDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileMoveDetailsValue = fileMoveDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param filePermanentlyDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFilePermanentlyDeleteDetails(Tag _tag, FilePermanentlyDeleteDetails filePermanentlyDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.filePermanentlyDeleteDetailsValue = filePermanentlyDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param filePreviewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFilePreviewDetails(Tag _tag, FilePreviewDetails filePreviewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.filePreviewDetailsValue = filePreviewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRenameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRenameDetails(Tag _tag, FileRenameDetails fileRenameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRenameDetailsValue = fileRenameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRestoreDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRestoreDetails(Tag _tag, FileRestoreDetails fileRestoreDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRestoreDetailsValue = fileRestoreDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRevertDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRevertDetails(Tag _tag, FileRevertDetails fileRevertDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRevertDetailsValue = fileRevertDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRollbackChangesDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRollbackChangesDetails(Tag _tag, FileRollbackChangesDetails fileRollbackChangesDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRollbackChangesDetailsValue = fileRollbackChangesDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileSaveCopyReferenceDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileSaveCopyReferenceDetails(Tag _tag, FileSaveCopyReferenceDetails fileSaveCopyReferenceDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileSaveCopyReferenceDetailsValue = fileSaveCopyReferenceDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param folderOverviewDescriptionChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFolderOverviewDescriptionChangedDetails(Tag _tag, FolderOverviewDescriptionChangedDetails folderOverviewDescriptionChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.folderOverviewDescriptionChangedDetailsValue = folderOverviewDescriptionChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param folderOverviewItemPinnedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFolderOverviewItemPinnedDetails(Tag _tag, FolderOverviewItemPinnedDetails folderOverviewItemPinnedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.folderOverviewItemPinnedDetailsValue = folderOverviewItemPinnedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param folderOverviewItemUnpinnedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFolderOverviewItemUnpinnedDetails(Tag _tag, FolderOverviewItemUnpinnedDetails folderOverviewItemUnpinnedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.folderOverviewItemUnpinnedDetailsValue = folderOverviewItemUnpinnedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param objectLabelAddedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndObjectLabelAddedDetails(Tag _tag, ObjectLabelAddedDetails objectLabelAddedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.objectLabelAddedDetailsValue = objectLabelAddedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param objectLabelRemovedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndObjectLabelRemovedDetails(Tag _tag, ObjectLabelRemovedDetails objectLabelRemovedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.objectLabelRemovedDetailsValue = objectLabelRemovedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param objectLabelUpdatedValueDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndObjectLabelUpdatedValueDetails(Tag _tag, ObjectLabelUpdatedValueDetails objectLabelUpdatedValueDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.objectLabelUpdatedValueDetailsValue = objectLabelUpdatedValueDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param organizeFolderWithTidyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndOrganizeFolderWithTidyDetails(Tag _tag, OrganizeFolderWithTidyDetails organizeFolderWithTidyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.organizeFolderWithTidyDetailsValue = organizeFolderWithTidyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param replayFileDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndReplayFileDeleteDetails(Tag _tag, ReplayFileDeleteDetails replayFileDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.replayFileDeleteDetailsValue = replayFileDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param rewindFolderDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndRewindFolderDetails(Tag _tag, RewindFolderDetails rewindFolderDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.rewindFolderDetailsValue = rewindFolderDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param undoNamingConventionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndUndoNamingConventionDetails(Tag _tag, UndoNamingConventionDetails undoNamingConventionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.undoNamingConventionDetailsValue = undoNamingConventionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param undoOrganizeFolderWithTidyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndUndoOrganizeFolderWithTidyDetails(Tag _tag, UndoOrganizeFolderWithTidyDetails undoOrganizeFolderWithTidyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.undoOrganizeFolderWithTidyDetailsValue = undoOrganizeFolderWithTidyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param userTagsAddedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndUserTagsAddedDetails(Tag _tag, UserTagsAddedDetails userTagsAddedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.userTagsAddedDetailsValue = userTagsAddedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param userTagsRemovedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndUserTagsRemovedDetails(Tag _tag, UserTagsRemovedDetails userTagsRemovedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.userTagsRemovedDetailsValue = userTagsRemovedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emailIngestReceiveFileDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmailIngestReceiveFileDetails(Tag _tag, EmailIngestReceiveFileDetails emailIngestReceiveFileDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emailIngestReceiveFileDetailsValue = emailIngestReceiveFileDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestChangeDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestChangeDetails(Tag _tag, FileRequestChangeDetails fileRequestChangeDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestChangeDetailsValue = fileRequestChangeDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestCloseDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestCloseDetails(Tag _tag, FileRequestCloseDetails fileRequestCloseDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestCloseDetailsValue = fileRequestCloseDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestCreateDetails(Tag _tag, FileRequestCreateDetails fileRequestCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestCreateDetailsValue = fileRequestCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestDeleteDetails(Tag _tag, FileRequestDeleteDetails fileRequestDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestDeleteDetailsValue = fileRequestDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestReceiveFileDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestReceiveFileDetails(Tag _tag, FileRequestReceiveFileDetails fileRequestReceiveFileDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestReceiveFileDetailsValue = fileRequestReceiveFileDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupAddExternalIdDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupAddExternalIdDetails(Tag _tag, GroupAddExternalIdDetails groupAddExternalIdDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupAddExternalIdDetailsValue = groupAddExternalIdDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupAddMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupAddMemberDetails(Tag _tag, GroupAddMemberDetails groupAddMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupAddMemberDetailsValue = groupAddMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupChangeExternalIdDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupChangeExternalIdDetails(Tag _tag, GroupChangeExternalIdDetails groupChangeExternalIdDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupChangeExternalIdDetailsValue = groupChangeExternalIdDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupChangeManagementTypeDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupChangeManagementTypeDetails(Tag _tag, GroupChangeManagementTypeDetails groupChangeManagementTypeDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupChangeManagementTypeDetailsValue = groupChangeManagementTypeDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupChangeMemberRoleDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupChangeMemberRoleDetails(Tag _tag, GroupChangeMemberRoleDetails groupChangeMemberRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupChangeMemberRoleDetailsValue = groupChangeMemberRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupCreateDetails(Tag _tag, GroupCreateDetails groupCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupCreateDetailsValue = groupCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupDeleteDetails(Tag _tag, GroupDeleteDetails groupDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupDeleteDetailsValue = groupDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupDescriptionUpdatedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupDescriptionUpdatedDetails(Tag _tag, GroupDescriptionUpdatedDetails groupDescriptionUpdatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupDescriptionUpdatedDetailsValue = groupDescriptionUpdatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupJoinPolicyUpdatedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupJoinPolicyUpdatedDetails(Tag _tag, GroupJoinPolicyUpdatedDetails groupJoinPolicyUpdatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupJoinPolicyUpdatedDetailsValue = groupJoinPolicyUpdatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupMovedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupMovedDetails(Tag _tag, GroupMovedDetails groupMovedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupMovedDetailsValue = groupMovedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupRemoveExternalIdDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupRemoveExternalIdDetails(Tag _tag, GroupRemoveExternalIdDetails groupRemoveExternalIdDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupRemoveExternalIdDetailsValue = groupRemoveExternalIdDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupRemoveMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupRemoveMemberDetails(Tag _tag, GroupRemoveMemberDetails groupRemoveMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupRemoveMemberDetailsValue = groupRemoveMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupRenameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupRenameDetails(Tag _tag, GroupRenameDetails groupRenameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupRenameDetailsValue = groupRenameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param accountLockOrUnlockedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAccountLockOrUnlockedDetails(Tag _tag, AccountLockOrUnlockedDetails accountLockOrUnlockedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.accountLockOrUnlockedDetailsValue = accountLockOrUnlockedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emmErrorDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmmErrorDetails(Tag _tag, EmmErrorDetails emmErrorDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emmErrorDetailsValue = emmErrorDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param guestAdminSignedInViaTrustedTeamsDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGuestAdminSignedInViaTrustedTeamsDetails(Tag _tag, GuestAdminSignedInViaTrustedTeamsDetails guestAdminSignedInViaTrustedTeamsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.guestAdminSignedInViaTrustedTeamsDetailsValue = guestAdminSignedInViaTrustedTeamsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param guestAdminSignedOutViaTrustedTeamsDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGuestAdminSignedOutViaTrustedTeamsDetails(Tag _tag, GuestAdminSignedOutViaTrustedTeamsDetails guestAdminSignedOutViaTrustedTeamsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.guestAdminSignedOutViaTrustedTeamsDetailsValue = guestAdminSignedOutViaTrustedTeamsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param loginFailDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLoginFailDetails(Tag _tag, LoginFailDetails loginFailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.loginFailDetailsValue = loginFailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param loginSuccessDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLoginSuccessDetails(Tag _tag, LoginSuccessDetails loginSuccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.loginSuccessDetailsValue = loginSuccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param logoutDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndLogoutDetails(Tag _tag, LogoutDetails logoutDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.logoutDetailsValue = logoutDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param resellerSupportSessionEndDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndResellerSupportSessionEndDetails(Tag _tag, ResellerSupportSessionEndDetails resellerSupportSessionEndDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.resellerSupportSessionEndDetailsValue = resellerSupportSessionEndDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param resellerSupportSessionStartDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndResellerSupportSessionStartDetails(Tag _tag, ResellerSupportSessionStartDetails resellerSupportSessionStartDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.resellerSupportSessionStartDetailsValue = resellerSupportSessionStartDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param signInAsSessionEndDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSignInAsSessionEndDetails(Tag _tag, SignInAsSessionEndDetails signInAsSessionEndDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.signInAsSessionEndDetailsValue = signInAsSessionEndDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param signInAsSessionStartDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSignInAsSessionStartDetails(Tag _tag, SignInAsSessionStartDetails signInAsSessionStartDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.signInAsSessionStartDetailsValue = signInAsSessionStartDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoErrorDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoErrorDetails(Tag _tag, SsoErrorDetails ssoErrorDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoErrorDetailsValue = ssoErrorDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param backupAdminInvitationSentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBackupAdminInvitationSentDetails(Tag _tag, BackupAdminInvitationSentDetails backupAdminInvitationSentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.backupAdminInvitationSentDetailsValue = backupAdminInvitationSentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param backupInvitationOpenedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBackupInvitationOpenedDetails(Tag _tag, BackupInvitationOpenedDetails backupInvitationOpenedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.backupInvitationOpenedDetailsValue = backupInvitationOpenedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param createTeamInviteLinkDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndCreateTeamInviteLinkDetails(Tag _tag, CreateTeamInviteLinkDetails createTeamInviteLinkDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.createTeamInviteLinkDetailsValue = createTeamInviteLinkDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deleteTeamInviteLinkDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeleteTeamInviteLinkDetails(Tag _tag, DeleteTeamInviteLinkDetails deleteTeamInviteLinkDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deleteTeamInviteLinkDetailsValue = deleteTeamInviteLinkDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberAddExternalIdDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberAddExternalIdDetails(Tag _tag, MemberAddExternalIdDetails memberAddExternalIdDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberAddExternalIdDetailsValue = memberAddExternalIdDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberAddNameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberAddNameDetails(Tag _tag, MemberAddNameDetails memberAddNameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberAddNameDetailsValue = memberAddNameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberChangeAdminRoleDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberChangeAdminRoleDetails(Tag _tag, MemberChangeAdminRoleDetails memberChangeAdminRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberChangeAdminRoleDetailsValue = memberChangeAdminRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberChangeEmailDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberChangeEmailDetails(Tag _tag, MemberChangeEmailDetails memberChangeEmailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberChangeEmailDetailsValue = memberChangeEmailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberChangeExternalIdDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberChangeExternalIdDetails(Tag _tag, MemberChangeExternalIdDetails memberChangeExternalIdDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberChangeExternalIdDetailsValue = memberChangeExternalIdDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberChangeMembershipTypeDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberChangeMembershipTypeDetails(Tag _tag, MemberChangeMembershipTypeDetails memberChangeMembershipTypeDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberChangeMembershipTypeDetailsValue = memberChangeMembershipTypeDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberChangeNameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberChangeNameDetails(Tag _tag, MemberChangeNameDetails memberChangeNameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberChangeNameDetailsValue = memberChangeNameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberChangeResellerRoleDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberChangeResellerRoleDetails(Tag _tag, MemberChangeResellerRoleDetails memberChangeResellerRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberChangeResellerRoleDetailsValue = memberChangeResellerRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberChangeStatusDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberChangeStatusDetails(Tag _tag, MemberChangeStatusDetails memberChangeStatusDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberChangeStatusDetailsValue = memberChangeStatusDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberDeleteManualContactsDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberDeleteManualContactsDetails(Tag _tag, MemberDeleteManualContactsDetails memberDeleteManualContactsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberDeleteManualContactsDetailsValue = memberDeleteManualContactsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberDeleteProfilePhotoDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberDeleteProfilePhotoDetails(Tag _tag, MemberDeleteProfilePhotoDetails memberDeleteProfilePhotoDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberDeleteProfilePhotoDetailsValue = memberDeleteProfilePhotoDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberPermanentlyDeleteAccountContentsDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberPermanentlyDeleteAccountContentsDetails(Tag _tag, MemberPermanentlyDeleteAccountContentsDetails memberPermanentlyDeleteAccountContentsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberPermanentlyDeleteAccountContentsDetailsValue = memberPermanentlyDeleteAccountContentsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberRemoveExternalIdDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberRemoveExternalIdDetails(Tag _tag, MemberRemoveExternalIdDetails memberRemoveExternalIdDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberRemoveExternalIdDetailsValue = memberRemoveExternalIdDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSetProfilePhotoDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSetProfilePhotoDetails(Tag _tag, MemberSetProfilePhotoDetails memberSetProfilePhotoDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSetProfilePhotoDetailsValue = memberSetProfilePhotoDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsAddCustomQuotaDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsAddCustomQuotaDetails(Tag _tag, MemberSpaceLimitsAddCustomQuotaDetails memberSpaceLimitsAddCustomQuotaDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsAddCustomQuotaDetailsValue = memberSpaceLimitsAddCustomQuotaDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsChangeCustomQuotaDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsChangeCustomQuotaDetails(Tag _tag, MemberSpaceLimitsChangeCustomQuotaDetails memberSpaceLimitsChangeCustomQuotaDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsChangeCustomQuotaDetailsValue = memberSpaceLimitsChangeCustomQuotaDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsChangeStatusDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsChangeStatusDetails(Tag _tag, MemberSpaceLimitsChangeStatusDetails memberSpaceLimitsChangeStatusDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsChangeStatusDetailsValue = memberSpaceLimitsChangeStatusDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsRemoveCustomQuotaDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsRemoveCustomQuotaDetails(Tag _tag, MemberSpaceLimitsRemoveCustomQuotaDetails memberSpaceLimitsRemoveCustomQuotaDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsRemoveCustomQuotaDetailsValue = memberSpaceLimitsRemoveCustomQuotaDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSuggestDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSuggestDetails(Tag _tag, MemberSuggestDetails memberSuggestDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSuggestDetailsValue = memberSuggestDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberTransferAccountContentsDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberTransferAccountContentsDetails(Tag _tag, MemberTransferAccountContentsDetails memberTransferAccountContentsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberTransferAccountContentsDetailsValue = memberTransferAccountContentsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param pendingSecondaryEmailAddedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPendingSecondaryEmailAddedDetails(Tag _tag, PendingSecondaryEmailAddedDetails pendingSecondaryEmailAddedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.pendingSecondaryEmailAddedDetailsValue = pendingSecondaryEmailAddedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param secondaryEmailDeletedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSecondaryEmailDeletedDetails(Tag _tag, SecondaryEmailDeletedDetails secondaryEmailDeletedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.secondaryEmailDeletedDetailsValue = secondaryEmailDeletedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param secondaryEmailVerifiedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSecondaryEmailVerifiedDetails(Tag _tag, SecondaryEmailVerifiedDetails secondaryEmailVerifiedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.secondaryEmailVerifiedDetailsValue = secondaryEmailVerifiedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param secondaryMailsPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSecondaryMailsPolicyChangedDetails(Tag _tag, SecondaryMailsPolicyChangedDetails secondaryMailsPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.secondaryMailsPolicyChangedDetailsValue = secondaryMailsPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderAddPageDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderAddPageDetails(Tag _tag, BinderAddPageDetails binderAddPageDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderAddPageDetailsValue = binderAddPageDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderAddSectionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderAddSectionDetails(Tag _tag, BinderAddSectionDetails binderAddSectionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderAddSectionDetailsValue = binderAddSectionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderRemovePageDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderRemovePageDetails(Tag _tag, BinderRemovePageDetails binderRemovePageDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderRemovePageDetailsValue = binderRemovePageDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderRemoveSectionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderRemoveSectionDetails(Tag _tag, BinderRemoveSectionDetails binderRemoveSectionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderRemoveSectionDetailsValue = binderRemoveSectionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderRenamePageDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderRenamePageDetails(Tag _tag, BinderRenamePageDetails binderRenamePageDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderRenamePageDetailsValue = binderRenamePageDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderRenameSectionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderRenameSectionDetails(Tag _tag, BinderRenameSectionDetails binderRenameSectionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderRenameSectionDetailsValue = binderRenameSectionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderReorderPageDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderReorderPageDetails(Tag _tag, BinderReorderPageDetails binderReorderPageDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderReorderPageDetailsValue = binderReorderPageDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param binderReorderSectionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndBinderReorderSectionDetails(Tag _tag, BinderReorderSectionDetails binderReorderSectionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.binderReorderSectionDetailsValue = binderReorderSectionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentAddMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentAddMemberDetails(Tag _tag, PaperContentAddMemberDetails paperContentAddMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentAddMemberDetailsValue = paperContentAddMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentAddToFolderDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentAddToFolderDetails(Tag _tag, PaperContentAddToFolderDetails paperContentAddToFolderDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentAddToFolderDetailsValue = paperContentAddToFolderDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentArchiveDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentArchiveDetails(Tag _tag, PaperContentArchiveDetails paperContentArchiveDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentArchiveDetailsValue = paperContentArchiveDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentCreateDetails(Tag _tag, PaperContentCreateDetails paperContentCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentCreateDetailsValue = paperContentCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentPermanentlyDeleteDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentPermanentlyDeleteDetails(Tag _tag, PaperContentPermanentlyDeleteDetails paperContentPermanentlyDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentPermanentlyDeleteDetailsValue = paperContentPermanentlyDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentRemoveFromFolderDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentRemoveFromFolderDetails(Tag _tag, PaperContentRemoveFromFolderDetails paperContentRemoveFromFolderDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentRemoveFromFolderDetailsValue = paperContentRemoveFromFolderDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentRemoveMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentRemoveMemberDetails(Tag _tag, PaperContentRemoveMemberDetails paperContentRemoveMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentRemoveMemberDetailsValue = paperContentRemoveMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentRenameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentRenameDetails(Tag _tag, PaperContentRenameDetails paperContentRenameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentRenameDetailsValue = paperContentRenameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperContentRestoreDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperContentRestoreDetails(Tag _tag, PaperContentRestoreDetails paperContentRestoreDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperContentRestoreDetailsValue = paperContentRestoreDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocAddCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocAddCommentDetails(Tag _tag, PaperDocAddCommentDetails paperDocAddCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocAddCommentDetailsValue = paperDocAddCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocChangeMemberRoleDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocChangeMemberRoleDetails(Tag _tag, PaperDocChangeMemberRoleDetails paperDocChangeMemberRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocChangeMemberRoleDetailsValue = paperDocChangeMemberRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocChangeSharingPolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocChangeSharingPolicyDetails(Tag _tag, PaperDocChangeSharingPolicyDetails paperDocChangeSharingPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocChangeSharingPolicyDetailsValue = paperDocChangeSharingPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocChangeSubscriptionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocChangeSubscriptionDetails(Tag _tag, PaperDocChangeSubscriptionDetails paperDocChangeSubscriptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocChangeSubscriptionDetailsValue = paperDocChangeSubscriptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocDeletedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocDeletedDetails(Tag _tag, PaperDocDeletedDetails paperDocDeletedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocDeletedDetailsValue = paperDocDeletedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocDeleteCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocDeleteCommentDetails(Tag _tag, PaperDocDeleteCommentDetails paperDocDeleteCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocDeleteCommentDetailsValue = paperDocDeleteCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocDownloadDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocDownloadDetails(Tag _tag, PaperDocDownloadDetails paperDocDownloadDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocDownloadDetailsValue = paperDocDownloadDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocEditDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocEditDetails(Tag _tag, PaperDocEditDetails paperDocEditDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocEditDetailsValue = paperDocEditDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocEditCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocEditCommentDetails(Tag _tag, PaperDocEditCommentDetails paperDocEditCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocEditCommentDetailsValue = paperDocEditCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocFollowedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocFollowedDetails(Tag _tag, PaperDocFollowedDetails paperDocFollowedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocFollowedDetailsValue = paperDocFollowedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocMentionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocMentionDetails(Tag _tag, PaperDocMentionDetails paperDocMentionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocMentionDetailsValue = paperDocMentionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocOwnershipChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocOwnershipChangedDetails(Tag _tag, PaperDocOwnershipChangedDetails paperDocOwnershipChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocOwnershipChangedDetailsValue = paperDocOwnershipChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocRequestAccessDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocRequestAccessDetails(Tag _tag, PaperDocRequestAccessDetails paperDocRequestAccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocRequestAccessDetailsValue = paperDocRequestAccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocResolveCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocResolveCommentDetails(Tag _tag, PaperDocResolveCommentDetails paperDocResolveCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocResolveCommentDetailsValue = paperDocResolveCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocRevertDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocRevertDetails(Tag _tag, PaperDocRevertDetails paperDocRevertDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocRevertDetailsValue = paperDocRevertDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocSlackShareDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocSlackShareDetails(Tag _tag, PaperDocSlackShareDetails paperDocSlackShareDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocSlackShareDetailsValue = paperDocSlackShareDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocTeamInviteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocTeamInviteDetails(Tag _tag, PaperDocTeamInviteDetails paperDocTeamInviteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocTeamInviteDetailsValue = paperDocTeamInviteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocTrashedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocTrashedDetails(Tag _tag, PaperDocTrashedDetails paperDocTrashedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocTrashedDetailsValue = paperDocTrashedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocUnresolveCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocUnresolveCommentDetails(Tag _tag, PaperDocUnresolveCommentDetails paperDocUnresolveCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocUnresolveCommentDetailsValue = paperDocUnresolveCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocUntrashedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocUntrashedDetails(Tag _tag, PaperDocUntrashedDetails paperDocUntrashedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocUntrashedDetailsValue = paperDocUntrashedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDocViewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDocViewDetails(Tag _tag, PaperDocViewDetails paperDocViewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDocViewDetailsValue = paperDocViewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperExternalViewAllowDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperExternalViewAllowDetails(Tag _tag, PaperExternalViewAllowDetails paperExternalViewAllowDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperExternalViewAllowDetailsValue = paperExternalViewAllowDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperExternalViewDefaultTeamDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperExternalViewDefaultTeamDetails(Tag _tag, PaperExternalViewDefaultTeamDetails paperExternalViewDefaultTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperExternalViewDefaultTeamDetailsValue = paperExternalViewDefaultTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperExternalViewForbidDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperExternalViewForbidDetails(Tag _tag, PaperExternalViewForbidDetails paperExternalViewForbidDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperExternalViewForbidDetailsValue = paperExternalViewForbidDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperFolderChangeSubscriptionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperFolderChangeSubscriptionDetails(Tag _tag, PaperFolderChangeSubscriptionDetails paperFolderChangeSubscriptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperFolderChangeSubscriptionDetailsValue = paperFolderChangeSubscriptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperFolderDeletedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperFolderDeletedDetails(Tag _tag, PaperFolderDeletedDetails paperFolderDeletedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperFolderDeletedDetailsValue = paperFolderDeletedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperFolderFollowedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperFolderFollowedDetails(Tag _tag, PaperFolderFollowedDetails paperFolderFollowedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperFolderFollowedDetailsValue = paperFolderFollowedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperFolderTeamInviteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperFolderTeamInviteDetails(Tag _tag, PaperFolderTeamInviteDetails paperFolderTeamInviteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperFolderTeamInviteDetailsValue = paperFolderTeamInviteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperPublishedLinkChangePermissionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperPublishedLinkChangePermissionDetails(Tag _tag, PaperPublishedLinkChangePermissionDetails paperPublishedLinkChangePermissionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperPublishedLinkChangePermissionDetailsValue = paperPublishedLinkChangePermissionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperPublishedLinkCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperPublishedLinkCreateDetails(Tag _tag, PaperPublishedLinkCreateDetails paperPublishedLinkCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperPublishedLinkCreateDetailsValue = paperPublishedLinkCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperPublishedLinkDisabledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperPublishedLinkDisabledDetails(Tag _tag, PaperPublishedLinkDisabledDetails paperPublishedLinkDisabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperPublishedLinkDisabledDetailsValue = paperPublishedLinkDisabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperPublishedLinkViewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperPublishedLinkViewDetails(Tag _tag, PaperPublishedLinkViewDetails paperPublishedLinkViewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperPublishedLinkViewDetailsValue = paperPublishedLinkViewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param passwordChangeDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPasswordChangeDetails(Tag _tag, PasswordChangeDetails passwordChangeDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.passwordChangeDetailsValue = passwordChangeDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param passwordResetDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPasswordResetDetails(Tag _tag, PasswordResetDetails passwordResetDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.passwordResetDetailsValue = passwordResetDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param passwordResetAllDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPasswordResetAllDetails(Tag _tag, PasswordResetAllDetails passwordResetAllDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.passwordResetAllDetailsValue = passwordResetAllDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param classificationCreateReportDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndClassificationCreateReportDetails(Tag _tag, ClassificationCreateReportDetails classificationCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.classificationCreateReportDetailsValue = classificationCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param classificationCreateReportFailDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndClassificationCreateReportFailDetails(Tag _tag, ClassificationCreateReportFailDetails classificationCreateReportFailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.classificationCreateReportFailDetailsValue = classificationCreateReportFailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emmCreateExceptionsReportDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmmCreateExceptionsReportDetails(Tag _tag, EmmCreateExceptionsReportDetails emmCreateExceptionsReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emmCreateExceptionsReportDetailsValue = emmCreateExceptionsReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emmCreateUsageReportDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmmCreateUsageReportDetails(Tag _tag, EmmCreateUsageReportDetails emmCreateUsageReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emmCreateUsageReportDetailsValue = emmCreateUsageReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param exportMembersReportDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExportMembersReportDetails(Tag _tag, ExportMembersReportDetails exportMembersReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.exportMembersReportDetailsValue = exportMembersReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param exportMembersReportFailDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExportMembersReportFailDetails(Tag _tag, ExportMembersReportFailDetails exportMembersReportFailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.exportMembersReportFailDetailsValue = exportMembersReportFailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param externalSharingCreateReportDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExternalSharingCreateReportDetails(Tag _tag, ExternalSharingCreateReportDetails externalSharingCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.externalSharingCreateReportDetailsValue = externalSharingCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param externalSharingReportFailedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExternalSharingReportFailedDetails(Tag _tag, ExternalSharingReportFailedDetails externalSharingReportFailedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.externalSharingReportFailedDetailsValue = externalSharingReportFailedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noExpirationLinkGenCreateReportDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoExpirationLinkGenCreateReportDetails(Tag _tag, NoExpirationLinkGenCreateReportDetails noExpirationLinkGenCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noExpirationLinkGenCreateReportDetailsValue = noExpirationLinkGenCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noExpirationLinkGenReportFailedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoExpirationLinkGenReportFailedDetails(Tag _tag, NoExpirationLinkGenReportFailedDetails noExpirationLinkGenReportFailedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noExpirationLinkGenReportFailedDetailsValue = noExpirationLinkGenReportFailedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noPasswordLinkGenCreateReportDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoPasswordLinkGenCreateReportDetails(Tag _tag, NoPasswordLinkGenCreateReportDetails noPasswordLinkGenCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noPasswordLinkGenCreateReportDetailsValue = noPasswordLinkGenCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noPasswordLinkGenReportFailedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoPasswordLinkGenReportFailedDetails(Tag _tag, NoPasswordLinkGenReportFailedDetails noPasswordLinkGenReportFailedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noPasswordLinkGenReportFailedDetailsValue = noPasswordLinkGenReportFailedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noPasswordLinkViewCreateReportDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoPasswordLinkViewCreateReportDetails(Tag _tag, NoPasswordLinkViewCreateReportDetails noPasswordLinkViewCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noPasswordLinkViewCreateReportDetailsValue = noPasswordLinkViewCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noPasswordLinkViewReportFailedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoPasswordLinkViewReportFailedDetails(Tag _tag, NoPasswordLinkViewReportFailedDetails noPasswordLinkViewReportFailedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noPasswordLinkViewReportFailedDetailsValue = noPasswordLinkViewReportFailedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param outdatedLinkViewCreateReportDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndOutdatedLinkViewCreateReportDetails(Tag _tag, OutdatedLinkViewCreateReportDetails outdatedLinkViewCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.outdatedLinkViewCreateReportDetailsValue = outdatedLinkViewCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param outdatedLinkViewReportFailedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndOutdatedLinkViewReportFailedDetails(Tag _tag, OutdatedLinkViewReportFailedDetails outdatedLinkViewReportFailedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.outdatedLinkViewReportFailedDetailsValue = outdatedLinkViewReportFailedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperAdminExportStartDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperAdminExportStartDetails(Tag _tag, PaperAdminExportStartDetails paperAdminExportStartDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperAdminExportStartDetailsValue = paperAdminExportStartDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ransomwareAlertCreateReportDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndRansomwareAlertCreateReportDetails(Tag _tag, RansomwareAlertCreateReportDetails ransomwareAlertCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ransomwareAlertCreateReportDetailsValue = ransomwareAlertCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ransomwareAlertCreateReportFailedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndRansomwareAlertCreateReportFailedDetails(Tag _tag, RansomwareAlertCreateReportFailedDetails ransomwareAlertCreateReportFailedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ransomwareAlertCreateReportFailedDetailsValue = ransomwareAlertCreateReportFailedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param smartSyncCreateAdminPrivilegeReportDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSmartSyncCreateAdminPrivilegeReportDetails(Tag _tag, SmartSyncCreateAdminPrivilegeReportDetails smartSyncCreateAdminPrivilegeReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.smartSyncCreateAdminPrivilegeReportDetailsValue = smartSyncCreateAdminPrivilegeReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamActivityCreateReportDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamActivityCreateReportDetails(Tag _tag, TeamActivityCreateReportDetails teamActivityCreateReportDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamActivityCreateReportDetailsValue = teamActivityCreateReportDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamActivityCreateReportFailDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamActivityCreateReportFailDetails(Tag _tag, TeamActivityCreateReportFailDetails teamActivityCreateReportFailDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamActivityCreateReportFailDetailsValue = teamActivityCreateReportFailDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param collectionShareDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndCollectionShareDetails(Tag _tag, CollectionShareDetails collectionShareDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.collectionShareDetailsValue = collectionShareDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileTransfersFileAddDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileTransfersFileAddDetails(Tag _tag, FileTransfersFileAddDetails fileTransfersFileAddDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileTransfersFileAddDetailsValue = fileTransfersFileAddDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileTransfersTransferDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileTransfersTransferDeleteDetails(Tag _tag, FileTransfersTransferDeleteDetails fileTransfersTransferDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileTransfersTransferDeleteDetailsValue = fileTransfersTransferDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileTransfersTransferDownloadDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileTransfersTransferDownloadDetails(Tag _tag, FileTransfersTransferDownloadDetails fileTransfersTransferDownloadDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileTransfersTransferDownloadDetailsValue = fileTransfersTransferDownloadDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileTransfersTransferSendDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileTransfersTransferSendDetails(Tag _tag, FileTransfersTransferSendDetails fileTransfersTransferSendDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileTransfersTransferSendDetailsValue = fileTransfersTransferSendDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileTransfersTransferViewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileTransfersTransferViewDetails(Tag _tag, FileTransfersTransferViewDetails fileTransfersTransferViewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileTransfersTransferViewDetailsValue = fileTransfersTransferViewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noteAclInviteOnlyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoteAclInviteOnlyDetails(Tag _tag, NoteAclInviteOnlyDetails noteAclInviteOnlyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noteAclInviteOnlyDetailsValue = noteAclInviteOnlyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noteAclLinkDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoteAclLinkDetails(Tag _tag, NoteAclLinkDetails noteAclLinkDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noteAclLinkDetailsValue = noteAclLinkDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noteAclTeamLinkDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoteAclTeamLinkDetails(Tag _tag, NoteAclTeamLinkDetails noteAclTeamLinkDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noteAclTeamLinkDetailsValue = noteAclTeamLinkDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noteSharedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoteSharedDetails(Tag _tag, NoteSharedDetails noteSharedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noteSharedDetailsValue = noteSharedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param noteShareReceiveDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNoteShareReceiveDetails(Tag _tag, NoteShareReceiveDetails noteShareReceiveDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.noteShareReceiveDetailsValue = noteShareReceiveDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param openNoteSharedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndOpenNoteSharedDetails(Tag _tag, OpenNoteSharedDetails openNoteSharedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.openNoteSharedDetailsValue = openNoteSharedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param replayFileSharedLinkCreatedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndReplayFileSharedLinkCreatedDetails(Tag _tag, ReplayFileSharedLinkCreatedDetails replayFileSharedLinkCreatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.replayFileSharedLinkCreatedDetailsValue = replayFileSharedLinkCreatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param replayFileSharedLinkModifiedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndReplayFileSharedLinkModifiedDetails(Tag _tag, ReplayFileSharedLinkModifiedDetails replayFileSharedLinkModifiedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.replayFileSharedLinkModifiedDetailsValue = replayFileSharedLinkModifiedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param replayProjectTeamAddDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndReplayProjectTeamAddDetails(Tag _tag, ReplayProjectTeamAddDetails replayProjectTeamAddDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.replayProjectTeamAddDetailsValue = replayProjectTeamAddDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param replayProjectTeamDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndReplayProjectTeamDeleteDetails(Tag _tag, ReplayProjectTeamDeleteDetails replayProjectTeamDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.replayProjectTeamDeleteDetailsValue = replayProjectTeamDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfAddGroupDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfAddGroupDetails(Tag _tag, SfAddGroupDetails sfAddGroupDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfAddGroupDetailsValue = sfAddGroupDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfAllowNonMembersToViewSharedLinksDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfAllowNonMembersToViewSharedLinksDetails(Tag _tag, SfAllowNonMembersToViewSharedLinksDetails sfAllowNonMembersToViewSharedLinksDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfAllowNonMembersToViewSharedLinksDetailsValue = sfAllowNonMembersToViewSharedLinksDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfExternalInviteWarnDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfExternalInviteWarnDetails(Tag _tag, SfExternalInviteWarnDetails sfExternalInviteWarnDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfExternalInviteWarnDetailsValue = sfExternalInviteWarnDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfFbInviteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfFbInviteDetails(Tag _tag, SfFbInviteDetails sfFbInviteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfFbInviteDetailsValue = sfFbInviteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfFbInviteChangeRoleDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfFbInviteChangeRoleDetails(Tag _tag, SfFbInviteChangeRoleDetails sfFbInviteChangeRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfFbInviteChangeRoleDetailsValue = sfFbInviteChangeRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfFbUninviteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfFbUninviteDetails(Tag _tag, SfFbUninviteDetails sfFbUninviteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfFbUninviteDetailsValue = sfFbUninviteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfInviteGroupDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfInviteGroupDetails(Tag _tag, SfInviteGroupDetails sfInviteGroupDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfInviteGroupDetailsValue = sfInviteGroupDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfTeamGrantAccessDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfTeamGrantAccessDetails(Tag _tag, SfTeamGrantAccessDetails sfTeamGrantAccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfTeamGrantAccessDetailsValue = sfTeamGrantAccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfTeamInviteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfTeamInviteDetails(Tag _tag, SfTeamInviteDetails sfTeamInviteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfTeamInviteDetailsValue = sfTeamInviteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfTeamInviteChangeRoleDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfTeamInviteChangeRoleDetails(Tag _tag, SfTeamInviteChangeRoleDetails sfTeamInviteChangeRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfTeamInviteChangeRoleDetailsValue = sfTeamInviteChangeRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfTeamJoinDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfTeamJoinDetails(Tag _tag, SfTeamJoinDetails sfTeamJoinDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfTeamJoinDetailsValue = sfTeamJoinDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfTeamJoinFromOobLinkDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfTeamJoinFromOobLinkDetails(Tag _tag, SfTeamJoinFromOobLinkDetails sfTeamJoinFromOobLinkDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfTeamJoinFromOobLinkDetailsValue = sfTeamJoinFromOobLinkDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sfTeamUninviteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSfTeamUninviteDetails(Tag _tag, SfTeamUninviteDetails sfTeamUninviteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sfTeamUninviteDetailsValue = sfTeamUninviteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentAddInviteesDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentAddInviteesDetails(Tag _tag, SharedContentAddInviteesDetails sharedContentAddInviteesDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentAddInviteesDetailsValue = sharedContentAddInviteesDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentAddLinkExpiryDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentAddLinkExpiryDetails(Tag _tag, SharedContentAddLinkExpiryDetails sharedContentAddLinkExpiryDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentAddLinkExpiryDetailsValue = sharedContentAddLinkExpiryDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentAddLinkPasswordDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentAddLinkPasswordDetails(Tag _tag, SharedContentAddLinkPasswordDetails sharedContentAddLinkPasswordDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentAddLinkPasswordDetailsValue = sharedContentAddLinkPasswordDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentAddMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentAddMemberDetails(Tag _tag, SharedContentAddMemberDetails sharedContentAddMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentAddMemberDetailsValue = sharedContentAddMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentChangeDownloadsPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentChangeDownloadsPolicyDetails(Tag _tag, SharedContentChangeDownloadsPolicyDetails sharedContentChangeDownloadsPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentChangeDownloadsPolicyDetailsValue = sharedContentChangeDownloadsPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentChangeInviteeRoleDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentChangeInviteeRoleDetails(Tag _tag, SharedContentChangeInviteeRoleDetails sharedContentChangeInviteeRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentChangeInviteeRoleDetailsValue = sharedContentChangeInviteeRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentChangeLinkAudienceDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentChangeLinkAudienceDetails(Tag _tag, SharedContentChangeLinkAudienceDetails sharedContentChangeLinkAudienceDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentChangeLinkAudienceDetailsValue = sharedContentChangeLinkAudienceDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentChangeLinkExpiryDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentChangeLinkExpiryDetails(Tag _tag, SharedContentChangeLinkExpiryDetails sharedContentChangeLinkExpiryDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentChangeLinkExpiryDetailsValue = sharedContentChangeLinkExpiryDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentChangeLinkPasswordDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentChangeLinkPasswordDetails(Tag _tag, SharedContentChangeLinkPasswordDetails sharedContentChangeLinkPasswordDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentChangeLinkPasswordDetailsValue = sharedContentChangeLinkPasswordDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentChangeMemberRoleDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentChangeMemberRoleDetails(Tag _tag, SharedContentChangeMemberRoleDetails sharedContentChangeMemberRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentChangeMemberRoleDetailsValue = sharedContentChangeMemberRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentChangeViewerInfoPolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentChangeViewerInfoPolicyDetails(Tag _tag, SharedContentChangeViewerInfoPolicyDetails sharedContentChangeViewerInfoPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentChangeViewerInfoPolicyDetailsValue = sharedContentChangeViewerInfoPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentClaimInvitationDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentClaimInvitationDetails(Tag _tag, SharedContentClaimInvitationDetails sharedContentClaimInvitationDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentClaimInvitationDetailsValue = sharedContentClaimInvitationDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentCopyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentCopyDetails(Tag _tag, SharedContentCopyDetails sharedContentCopyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentCopyDetailsValue = sharedContentCopyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentDownloadDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentDownloadDetails(Tag _tag, SharedContentDownloadDetails sharedContentDownloadDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentDownloadDetailsValue = sharedContentDownloadDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRelinquishMembershipDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRelinquishMembershipDetails(Tag _tag, SharedContentRelinquishMembershipDetails sharedContentRelinquishMembershipDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRelinquishMembershipDetailsValue = sharedContentRelinquishMembershipDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRemoveInviteesDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRemoveInviteesDetails(Tag _tag, SharedContentRemoveInviteesDetails sharedContentRemoveInviteesDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRemoveInviteesDetailsValue = sharedContentRemoveInviteesDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRemoveLinkExpiryDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRemoveLinkExpiryDetails(Tag _tag, SharedContentRemoveLinkExpiryDetails sharedContentRemoveLinkExpiryDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRemoveLinkExpiryDetailsValue = sharedContentRemoveLinkExpiryDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRemoveLinkPasswordDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRemoveLinkPasswordDetails(Tag _tag, SharedContentRemoveLinkPasswordDetails sharedContentRemoveLinkPasswordDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRemoveLinkPasswordDetailsValue = sharedContentRemoveLinkPasswordDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRemoveMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRemoveMemberDetails(Tag _tag, SharedContentRemoveMemberDetails sharedContentRemoveMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRemoveMemberDetailsValue = sharedContentRemoveMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRequestAccessDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRequestAccessDetails(Tag _tag, SharedContentRequestAccessDetails sharedContentRequestAccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRequestAccessDetailsValue = sharedContentRequestAccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRestoreInviteesDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRestoreInviteesDetails(Tag _tag, SharedContentRestoreInviteesDetails sharedContentRestoreInviteesDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRestoreInviteesDetailsValue = sharedContentRestoreInviteesDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentRestoreMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentRestoreMemberDetails(Tag _tag, SharedContentRestoreMemberDetails sharedContentRestoreMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentRestoreMemberDetailsValue = sharedContentRestoreMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentUnshareDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentUnshareDetails(Tag _tag, SharedContentUnshareDetails sharedContentUnshareDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentUnshareDetailsValue = sharedContentUnshareDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedContentViewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedContentViewDetails(Tag _tag, SharedContentViewDetails sharedContentViewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedContentViewDetailsValue = sharedContentViewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderChangeLinkPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderChangeLinkPolicyDetails(Tag _tag, SharedFolderChangeLinkPolicyDetails sharedFolderChangeLinkPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderChangeLinkPolicyDetailsValue = sharedFolderChangeLinkPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderChangeMembersInheritancePolicyDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderChangeMembersInheritancePolicyDetails(Tag _tag, SharedFolderChangeMembersInheritancePolicyDetails sharedFolderChangeMembersInheritancePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderChangeMembersInheritancePolicyDetailsValue = sharedFolderChangeMembersInheritancePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderChangeMembersManagementPolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderChangeMembersManagementPolicyDetails(Tag _tag, SharedFolderChangeMembersManagementPolicyDetails sharedFolderChangeMembersManagementPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderChangeMembersManagementPolicyDetailsValue = sharedFolderChangeMembersManagementPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderChangeMembersPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderChangeMembersPolicyDetails(Tag _tag, SharedFolderChangeMembersPolicyDetails sharedFolderChangeMembersPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderChangeMembersPolicyDetailsValue = sharedFolderChangeMembersPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderCreateDetails(Tag _tag, SharedFolderCreateDetails sharedFolderCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderCreateDetailsValue = sharedFolderCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderDeclineInvitationDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderDeclineInvitationDetails(Tag _tag, SharedFolderDeclineInvitationDetails sharedFolderDeclineInvitationDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderDeclineInvitationDetailsValue = sharedFolderDeclineInvitationDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderMountDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderMountDetails(Tag _tag, SharedFolderMountDetails sharedFolderMountDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderMountDetailsValue = sharedFolderMountDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderNestDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderNestDetails(Tag _tag, SharedFolderNestDetails sharedFolderNestDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderNestDetailsValue = sharedFolderNestDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderTransferOwnershipDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderTransferOwnershipDetails(Tag _tag, SharedFolderTransferOwnershipDetails sharedFolderTransferOwnershipDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderTransferOwnershipDetailsValue = sharedFolderTransferOwnershipDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedFolderUnmountDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedFolderUnmountDetails(Tag _tag, SharedFolderUnmountDetails sharedFolderUnmountDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedFolderUnmountDetailsValue = sharedFolderUnmountDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkAddExpiryDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkAddExpiryDetails(Tag _tag, SharedLinkAddExpiryDetails sharedLinkAddExpiryDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkAddExpiryDetailsValue = sharedLinkAddExpiryDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkChangeExpiryDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkChangeExpiryDetails(Tag _tag, SharedLinkChangeExpiryDetails sharedLinkChangeExpiryDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkChangeExpiryDetailsValue = sharedLinkChangeExpiryDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkChangeVisibilityDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkChangeVisibilityDetails(Tag _tag, SharedLinkChangeVisibilityDetails sharedLinkChangeVisibilityDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkChangeVisibilityDetailsValue = sharedLinkChangeVisibilityDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkCopyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkCopyDetails(Tag _tag, SharedLinkCopyDetails sharedLinkCopyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkCopyDetailsValue = sharedLinkCopyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkCreateDetails(Tag _tag, SharedLinkCreateDetails sharedLinkCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkCreateDetailsValue = sharedLinkCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkDisableDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkDisableDetails(Tag _tag, SharedLinkDisableDetails sharedLinkDisableDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkDisableDetailsValue = sharedLinkDisableDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkDownloadDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkDownloadDetails(Tag _tag, SharedLinkDownloadDetails sharedLinkDownloadDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkDownloadDetailsValue = sharedLinkDownloadDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkRemoveExpiryDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkRemoveExpiryDetails(Tag _tag, SharedLinkRemoveExpiryDetails sharedLinkRemoveExpiryDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkRemoveExpiryDetailsValue = sharedLinkRemoveExpiryDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsAddExpirationDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsAddExpirationDetails(Tag _tag, SharedLinkSettingsAddExpirationDetails sharedLinkSettingsAddExpirationDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsAddExpirationDetailsValue = sharedLinkSettingsAddExpirationDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsAddPasswordDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsAddPasswordDetails(Tag _tag, SharedLinkSettingsAddPasswordDetails sharedLinkSettingsAddPasswordDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsAddPasswordDetailsValue = sharedLinkSettingsAddPasswordDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsAllowDownloadDisabledDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsAllowDownloadDisabledDetails(Tag _tag, SharedLinkSettingsAllowDownloadDisabledDetails sharedLinkSettingsAllowDownloadDisabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsAllowDownloadDisabledDetailsValue = sharedLinkSettingsAllowDownloadDisabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsAllowDownloadEnabledDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsAllowDownloadEnabledDetails(Tag _tag, SharedLinkSettingsAllowDownloadEnabledDetails sharedLinkSettingsAllowDownloadEnabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsAllowDownloadEnabledDetailsValue = sharedLinkSettingsAllowDownloadEnabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsChangeAudienceDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsChangeAudienceDetails(Tag _tag, SharedLinkSettingsChangeAudienceDetails sharedLinkSettingsChangeAudienceDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsChangeAudienceDetailsValue = sharedLinkSettingsChangeAudienceDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsChangeExpirationDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsChangeExpirationDetails(Tag _tag, SharedLinkSettingsChangeExpirationDetails sharedLinkSettingsChangeExpirationDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsChangeExpirationDetailsValue = sharedLinkSettingsChangeExpirationDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsChangePasswordDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsChangePasswordDetails(Tag _tag, SharedLinkSettingsChangePasswordDetails sharedLinkSettingsChangePasswordDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsChangePasswordDetailsValue = sharedLinkSettingsChangePasswordDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsRemoveExpirationDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsRemoveExpirationDetails(Tag _tag, SharedLinkSettingsRemoveExpirationDetails sharedLinkSettingsRemoveExpirationDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsRemoveExpirationDetailsValue = sharedLinkSettingsRemoveExpirationDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkSettingsRemovePasswordDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkSettingsRemovePasswordDetails(Tag _tag, SharedLinkSettingsRemovePasswordDetails sharedLinkSettingsRemovePasswordDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkSettingsRemovePasswordDetailsValue = sharedLinkSettingsRemovePasswordDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkShareDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkShareDetails(Tag _tag, SharedLinkShareDetails sharedLinkShareDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkShareDetailsValue = sharedLinkShareDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedLinkViewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedLinkViewDetails(Tag _tag, SharedLinkViewDetails sharedLinkViewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedLinkViewDetailsValue = sharedLinkViewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharedNoteOpenedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharedNoteOpenedDetails(Tag _tag, SharedNoteOpenedDetails sharedNoteOpenedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharedNoteOpenedDetailsValue = sharedNoteOpenedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param shmodelDisableDownloadsDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShmodelDisableDownloadsDetails(Tag _tag, ShmodelDisableDownloadsDetails shmodelDisableDownloadsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.shmodelDisableDownloadsDetailsValue = shmodelDisableDownloadsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param shmodelEnableDownloadsDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShmodelEnableDownloadsDetails(Tag _tag, ShmodelEnableDownloadsDetails shmodelEnableDownloadsDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.shmodelEnableDownloadsDetailsValue = shmodelEnableDownloadsDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param shmodelGroupShareDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShmodelGroupShareDetails(Tag _tag, ShmodelGroupShareDetails shmodelGroupShareDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.shmodelGroupShareDetailsValue = shmodelGroupShareDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseAccessGrantedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseAccessGrantedDetails(Tag _tag, ShowcaseAccessGrantedDetails showcaseAccessGrantedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseAccessGrantedDetailsValue = showcaseAccessGrantedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseAddMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseAddMemberDetails(Tag _tag, ShowcaseAddMemberDetails showcaseAddMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseAddMemberDetailsValue = showcaseAddMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseArchivedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseArchivedDetails(Tag _tag, ShowcaseArchivedDetails showcaseArchivedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseArchivedDetailsValue = showcaseArchivedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseCreatedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseCreatedDetails(Tag _tag, ShowcaseCreatedDetails showcaseCreatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseCreatedDetailsValue = showcaseCreatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseDeleteCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseDeleteCommentDetails(Tag _tag, ShowcaseDeleteCommentDetails showcaseDeleteCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseDeleteCommentDetailsValue = showcaseDeleteCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseEditedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseEditedDetails(Tag _tag, ShowcaseEditedDetails showcaseEditedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseEditedDetailsValue = showcaseEditedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseEditCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseEditCommentDetails(Tag _tag, ShowcaseEditCommentDetails showcaseEditCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseEditCommentDetailsValue = showcaseEditCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseFileAddedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseFileAddedDetails(Tag _tag, ShowcaseFileAddedDetails showcaseFileAddedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseFileAddedDetailsValue = showcaseFileAddedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseFileDownloadDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseFileDownloadDetails(Tag _tag, ShowcaseFileDownloadDetails showcaseFileDownloadDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseFileDownloadDetailsValue = showcaseFileDownloadDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseFileRemovedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseFileRemovedDetails(Tag _tag, ShowcaseFileRemovedDetails showcaseFileRemovedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseFileRemovedDetailsValue = showcaseFileRemovedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseFileViewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseFileViewDetails(Tag _tag, ShowcaseFileViewDetails showcaseFileViewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseFileViewDetailsValue = showcaseFileViewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcasePermanentlyDeletedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcasePermanentlyDeletedDetails(Tag _tag, ShowcasePermanentlyDeletedDetails showcasePermanentlyDeletedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcasePermanentlyDeletedDetailsValue = showcasePermanentlyDeletedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcasePostCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcasePostCommentDetails(Tag _tag, ShowcasePostCommentDetails showcasePostCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcasePostCommentDetailsValue = showcasePostCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseRemoveMemberDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseRemoveMemberDetails(Tag _tag, ShowcaseRemoveMemberDetails showcaseRemoveMemberDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseRemoveMemberDetailsValue = showcaseRemoveMemberDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseRenamedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseRenamedDetails(Tag _tag, ShowcaseRenamedDetails showcaseRenamedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseRenamedDetailsValue = showcaseRenamedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseRequestAccessDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseRequestAccessDetails(Tag _tag, ShowcaseRequestAccessDetails showcaseRequestAccessDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseRequestAccessDetailsValue = showcaseRequestAccessDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseResolveCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseResolveCommentDetails(Tag _tag, ShowcaseResolveCommentDetails showcaseResolveCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseResolveCommentDetailsValue = showcaseResolveCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseRestoredDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseRestoredDetails(Tag _tag, ShowcaseRestoredDetails showcaseRestoredDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseRestoredDetailsValue = showcaseRestoredDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseTrashedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseTrashedDetails(Tag _tag, ShowcaseTrashedDetails showcaseTrashedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseTrashedDetailsValue = showcaseTrashedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseTrashedDeprecatedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseTrashedDeprecatedDetails(Tag _tag, ShowcaseTrashedDeprecatedDetails showcaseTrashedDeprecatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseTrashedDeprecatedDetailsValue = showcaseTrashedDeprecatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseUnresolveCommentDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseUnresolveCommentDetails(Tag _tag, ShowcaseUnresolveCommentDetails showcaseUnresolveCommentDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseUnresolveCommentDetailsValue = showcaseUnresolveCommentDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseUntrashedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseUntrashedDetails(Tag _tag, ShowcaseUntrashedDetails showcaseUntrashedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseUntrashedDetailsValue = showcaseUntrashedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseUntrashedDeprecatedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseUntrashedDeprecatedDetails(Tag _tag, ShowcaseUntrashedDeprecatedDetails showcaseUntrashedDeprecatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseUntrashedDeprecatedDetailsValue = showcaseUntrashedDeprecatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseViewDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseViewDetails(Tag _tag, ShowcaseViewDetails showcaseViewDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseViewDetailsValue = showcaseViewDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoAddCertDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoAddCertDetails(Tag _tag, SsoAddCertDetails ssoAddCertDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoAddCertDetailsValue = ssoAddCertDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoAddLoginUrlDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoAddLoginUrlDetails(Tag _tag, SsoAddLoginUrlDetails ssoAddLoginUrlDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoAddLoginUrlDetailsValue = ssoAddLoginUrlDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoAddLogoutUrlDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoAddLogoutUrlDetails(Tag _tag, SsoAddLogoutUrlDetails ssoAddLogoutUrlDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoAddLogoutUrlDetailsValue = ssoAddLogoutUrlDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoChangeCertDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoChangeCertDetails(Tag _tag, SsoChangeCertDetails ssoChangeCertDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoChangeCertDetailsValue = ssoChangeCertDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoChangeLoginUrlDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoChangeLoginUrlDetails(Tag _tag, SsoChangeLoginUrlDetails ssoChangeLoginUrlDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoChangeLoginUrlDetailsValue = ssoChangeLoginUrlDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoChangeLogoutUrlDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoChangeLogoutUrlDetails(Tag _tag, SsoChangeLogoutUrlDetails ssoChangeLogoutUrlDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoChangeLogoutUrlDetailsValue = ssoChangeLogoutUrlDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoChangeSamlIdentityModeDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoChangeSamlIdentityModeDetails(Tag _tag, SsoChangeSamlIdentityModeDetails ssoChangeSamlIdentityModeDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoChangeSamlIdentityModeDetailsValue = ssoChangeSamlIdentityModeDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoRemoveCertDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoRemoveCertDetails(Tag _tag, SsoRemoveCertDetails ssoRemoveCertDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoRemoveCertDetailsValue = ssoRemoveCertDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoRemoveLoginUrlDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoRemoveLoginUrlDetails(Tag _tag, SsoRemoveLoginUrlDetails ssoRemoveLoginUrlDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoRemoveLoginUrlDetailsValue = ssoRemoveLoginUrlDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoRemoveLogoutUrlDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoRemoveLogoutUrlDetails(Tag _tag, SsoRemoveLogoutUrlDetails ssoRemoveLogoutUrlDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoRemoveLogoutUrlDetailsValue = ssoRemoveLogoutUrlDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamFolderChangeStatusDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamFolderChangeStatusDetails(Tag _tag, TeamFolderChangeStatusDetails teamFolderChangeStatusDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamFolderChangeStatusDetailsValue = teamFolderChangeStatusDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamFolderCreateDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamFolderCreateDetails(Tag _tag, TeamFolderCreateDetails teamFolderCreateDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamFolderCreateDetailsValue = teamFolderCreateDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamFolderDowngradeDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamFolderDowngradeDetails(Tag _tag, TeamFolderDowngradeDetails teamFolderDowngradeDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamFolderDowngradeDetailsValue = teamFolderDowngradeDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamFolderPermanentlyDeleteDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamFolderPermanentlyDeleteDetails(Tag _tag, TeamFolderPermanentlyDeleteDetails teamFolderPermanentlyDeleteDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamFolderPermanentlyDeleteDetailsValue = teamFolderPermanentlyDeleteDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamFolderRenameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamFolderRenameDetails(Tag _tag, TeamFolderRenameDetails teamFolderRenameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamFolderRenameDetailsValue = teamFolderRenameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamSelectiveSyncSettingsChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamSelectiveSyncSettingsChangedDetails(Tag _tag, TeamSelectiveSyncSettingsChangedDetails teamSelectiveSyncSettingsChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamSelectiveSyncSettingsChangedDetailsValue = teamSelectiveSyncSettingsChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param accountCaptureChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAccountCaptureChangePolicyDetails(Tag _tag, AccountCaptureChangePolicyDetails accountCaptureChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.accountCaptureChangePolicyDetailsValue = accountCaptureChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param adminEmailRemindersChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAdminEmailRemindersChangedDetails(Tag _tag, AdminEmailRemindersChangedDetails adminEmailRemindersChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.adminEmailRemindersChangedDetailsValue = adminEmailRemindersChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param allowDownloadDisabledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAllowDownloadDisabledDetails(Tag _tag, AllowDownloadDisabledDetails allowDownloadDisabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.allowDownloadDisabledDetailsValue = allowDownloadDisabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param allowDownloadEnabledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAllowDownloadEnabledDetails(Tag _tag, AllowDownloadEnabledDetails allowDownloadEnabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.allowDownloadEnabledDetailsValue = allowDownloadEnabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param appPermissionsChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndAppPermissionsChangedDetails(Tag _tag, AppPermissionsChangedDetails appPermissionsChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.appPermissionsChangedDetailsValue = appPermissionsChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param cameraUploadsPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndCameraUploadsPolicyChangedDetails(Tag _tag, CameraUploadsPolicyChangedDetails cameraUploadsPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.cameraUploadsPolicyChangedDetailsValue = cameraUploadsPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param captureTranscriptPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndCaptureTranscriptPolicyChangedDetails(Tag _tag, CaptureTranscriptPolicyChangedDetails captureTranscriptPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.captureTranscriptPolicyChangedDetailsValue = captureTranscriptPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param classificationChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndClassificationChangePolicyDetails(Tag _tag, ClassificationChangePolicyDetails classificationChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.classificationChangePolicyDetailsValue = classificationChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param computerBackupPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndComputerBackupPolicyChangedDetails(Tag _tag, ComputerBackupPolicyChangedDetails computerBackupPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.computerBackupPolicyChangedDetailsValue = computerBackupPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param contentAdministrationPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndContentAdministrationPolicyChangedDetails(Tag _tag, ContentAdministrationPolicyChangedDetails contentAdministrationPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.contentAdministrationPolicyChangedDetailsValue = contentAdministrationPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param dataPlacementRestrictionChangePolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDataPlacementRestrictionChangePolicyDetails(Tag _tag, DataPlacementRestrictionChangePolicyDetails dataPlacementRestrictionChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.dataPlacementRestrictionChangePolicyDetailsValue = dataPlacementRestrictionChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param dataPlacementRestrictionSatisfyPolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDataPlacementRestrictionSatisfyPolicyDetails(Tag _tag, DataPlacementRestrictionSatisfyPolicyDetails dataPlacementRestrictionSatisfyPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.dataPlacementRestrictionSatisfyPolicyDetailsValue = dataPlacementRestrictionSatisfyPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceApprovalsAddExceptionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceApprovalsAddExceptionDetails(Tag _tag, DeviceApprovalsAddExceptionDetails deviceApprovalsAddExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceApprovalsAddExceptionDetailsValue = deviceApprovalsAddExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceApprovalsChangeDesktopPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceApprovalsChangeDesktopPolicyDetails(Tag _tag, DeviceApprovalsChangeDesktopPolicyDetails deviceApprovalsChangeDesktopPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceApprovalsChangeDesktopPolicyDetailsValue = deviceApprovalsChangeDesktopPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceApprovalsChangeMobilePolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceApprovalsChangeMobilePolicyDetails(Tag _tag, DeviceApprovalsChangeMobilePolicyDetails deviceApprovalsChangeMobilePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceApprovalsChangeMobilePolicyDetailsValue = deviceApprovalsChangeMobilePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceApprovalsChangeOverageActionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceApprovalsChangeOverageActionDetails(Tag _tag, DeviceApprovalsChangeOverageActionDetails deviceApprovalsChangeOverageActionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceApprovalsChangeOverageActionDetailsValue = deviceApprovalsChangeOverageActionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceApprovalsChangeUnlinkActionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceApprovalsChangeUnlinkActionDetails(Tag _tag, DeviceApprovalsChangeUnlinkActionDetails deviceApprovalsChangeUnlinkActionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceApprovalsChangeUnlinkActionDetailsValue = deviceApprovalsChangeUnlinkActionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param deviceApprovalsRemoveExceptionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDeviceApprovalsRemoveExceptionDetails(Tag _tag, DeviceApprovalsRemoveExceptionDetails deviceApprovalsRemoveExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.deviceApprovalsRemoveExceptionDetailsValue = deviceApprovalsRemoveExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param directoryRestrictionsAddMembersDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDirectoryRestrictionsAddMembersDetails(Tag _tag, DirectoryRestrictionsAddMembersDetails directoryRestrictionsAddMembersDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.directoryRestrictionsAddMembersDetailsValue = directoryRestrictionsAddMembersDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param directoryRestrictionsRemoveMembersDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDirectoryRestrictionsRemoveMembersDetails(Tag _tag, DirectoryRestrictionsRemoveMembersDetails directoryRestrictionsRemoveMembersDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.directoryRestrictionsRemoveMembersDetailsValue = directoryRestrictionsRemoveMembersDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param dropboxPasswordsPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDropboxPasswordsPolicyChangedDetails(Tag _tag, DropboxPasswordsPolicyChangedDetails dropboxPasswordsPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.dropboxPasswordsPolicyChangedDetailsValue = dropboxPasswordsPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emailIngestPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmailIngestPolicyChangedDetails(Tag _tag, EmailIngestPolicyChangedDetails emailIngestPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emailIngestPolicyChangedDetailsValue = emailIngestPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emmAddExceptionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmmAddExceptionDetails(Tag _tag, EmmAddExceptionDetails emmAddExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emmAddExceptionDetailsValue = emmAddExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emmChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmmChangePolicyDetails(Tag _tag, EmmChangePolicyDetails emmChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emmChangePolicyDetailsValue = emmChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param emmRemoveExceptionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEmmRemoveExceptionDetails(Tag _tag, EmmRemoveExceptionDetails emmRemoveExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.emmRemoveExceptionDetailsValue = emmRemoveExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param extendedVersionHistoryChangePolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExtendedVersionHistoryChangePolicyDetails(Tag _tag, ExtendedVersionHistoryChangePolicyDetails extendedVersionHistoryChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.extendedVersionHistoryChangePolicyDetailsValue = extendedVersionHistoryChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param externalDriveBackupPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndExternalDriveBackupPolicyChangedDetails(Tag _tag, ExternalDriveBackupPolicyChangedDetails externalDriveBackupPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.externalDriveBackupPolicyChangedDetailsValue = externalDriveBackupPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileCommentsChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileCommentsChangePolicyDetails(Tag _tag, FileCommentsChangePolicyDetails fileCommentsChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileCommentsChangePolicyDetailsValue = fileCommentsChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileLockingPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileLockingPolicyChangedDetails(Tag _tag, FileLockingPolicyChangedDetails fileLockingPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileLockingPolicyChangedDetailsValue = fileLockingPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileProviderMigrationPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileProviderMigrationPolicyChangedDetails(Tag _tag, FileProviderMigrationPolicyChangedDetails fileProviderMigrationPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileProviderMigrationPolicyChangedDetailsValue = fileProviderMigrationPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestsChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestsChangePolicyDetails(Tag _tag, FileRequestsChangePolicyDetails fileRequestsChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestsChangePolicyDetailsValue = fileRequestsChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestsEmailsEnabledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestsEmailsEnabledDetails(Tag _tag, FileRequestsEmailsEnabledDetails fileRequestsEmailsEnabledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestsEmailsEnabledDetailsValue = fileRequestsEmailsEnabledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileRequestsEmailsRestrictedToTeamOnlyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileRequestsEmailsRestrictedToTeamOnlyDetails(Tag _tag, FileRequestsEmailsRestrictedToTeamOnlyDetails fileRequestsEmailsRestrictedToTeamOnlyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileRequestsEmailsRestrictedToTeamOnlyDetailsValue = fileRequestsEmailsRestrictedToTeamOnlyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param fileTransfersPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFileTransfersPolicyChangedDetails(Tag _tag, FileTransfersPolicyChangedDetails fileTransfersPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.fileTransfersPolicyChangedDetailsValue = fileTransfersPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param folderLinkRestrictionPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndFolderLinkRestrictionPolicyChangedDetails(Tag _tag, FolderLinkRestrictionPolicyChangedDetails folderLinkRestrictionPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.folderLinkRestrictionPolicyChangedDetailsValue = folderLinkRestrictionPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param googleSsoChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGoogleSsoChangePolicyDetails(Tag _tag, GoogleSsoChangePolicyDetails googleSsoChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.googleSsoChangePolicyDetailsValue = googleSsoChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param groupUserManagementChangePolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGroupUserManagementChangePolicyDetails(Tag _tag, GroupUserManagementChangePolicyDetails groupUserManagementChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.groupUserManagementChangePolicyDetailsValue = groupUserManagementChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param integrationPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndIntegrationPolicyChangedDetails(Tag _tag, IntegrationPolicyChangedDetails integrationPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.integrationPolicyChangedDetailsValue = integrationPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param inviteAcceptanceEmailPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndInviteAcceptanceEmailPolicyChangedDetails(Tag _tag, InviteAcceptanceEmailPolicyChangedDetails inviteAcceptanceEmailPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.inviteAcceptanceEmailPolicyChangedDetailsValue = inviteAcceptanceEmailPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberRequestsChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberRequestsChangePolicyDetails(Tag _tag, MemberRequestsChangePolicyDetails memberRequestsChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberRequestsChangePolicyDetailsValue = memberRequestsChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSendInvitePolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSendInvitePolicyChangedDetails(Tag _tag, MemberSendInvitePolicyChangedDetails memberSendInvitePolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSendInvitePolicyChangedDetailsValue = memberSendInvitePolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsAddExceptionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsAddExceptionDetails(Tag _tag, MemberSpaceLimitsAddExceptionDetails memberSpaceLimitsAddExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsAddExceptionDetailsValue = memberSpaceLimitsAddExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsChangeCapsTypePolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsChangeCapsTypePolicyDetails(Tag _tag, MemberSpaceLimitsChangeCapsTypePolicyDetails memberSpaceLimitsChangeCapsTypePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsChangeCapsTypePolicyDetailsValue = memberSpaceLimitsChangeCapsTypePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsChangePolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsChangePolicyDetails(Tag _tag, MemberSpaceLimitsChangePolicyDetails memberSpaceLimitsChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsChangePolicyDetailsValue = memberSpaceLimitsChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSpaceLimitsRemoveExceptionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSpaceLimitsRemoveExceptionDetails(Tag _tag, MemberSpaceLimitsRemoveExceptionDetails memberSpaceLimitsRemoveExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSpaceLimitsRemoveExceptionDetailsValue = memberSpaceLimitsRemoveExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param memberSuggestionsChangePolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMemberSuggestionsChangePolicyDetails(Tag _tag, MemberSuggestionsChangePolicyDetails memberSuggestionsChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.memberSuggestionsChangePolicyDetailsValue = memberSuggestionsChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param microsoftOfficeAddinChangePolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMicrosoftOfficeAddinChangePolicyDetails(Tag _tag, MicrosoftOfficeAddinChangePolicyDetails microsoftOfficeAddinChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.microsoftOfficeAddinChangePolicyDetailsValue = microsoftOfficeAddinChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param networkControlChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndNetworkControlChangePolicyDetails(Tag _tag, NetworkControlChangePolicyDetails networkControlChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.networkControlChangePolicyDetailsValue = networkControlChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperChangeDeploymentPolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperChangeDeploymentPolicyDetails(Tag _tag, PaperChangeDeploymentPolicyDetails paperChangeDeploymentPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperChangeDeploymentPolicyDetailsValue = paperChangeDeploymentPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperChangeMemberLinkPolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperChangeMemberLinkPolicyDetails(Tag _tag, PaperChangeMemberLinkPolicyDetails paperChangeMemberLinkPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperChangeMemberLinkPolicyDetailsValue = paperChangeMemberLinkPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperChangeMemberPolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperChangeMemberPolicyDetails(Tag _tag, PaperChangeMemberPolicyDetails paperChangeMemberPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperChangeMemberPolicyDetailsValue = paperChangeMemberPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperChangePolicyDetails(Tag _tag, PaperChangePolicyDetails paperChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperChangePolicyDetailsValue = paperChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDefaultFolderPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDefaultFolderPolicyChangedDetails(Tag _tag, PaperDefaultFolderPolicyChangedDetails paperDefaultFolderPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDefaultFolderPolicyChangedDetailsValue = paperDefaultFolderPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperDesktopPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperDesktopPolicyChangedDetails(Tag _tag, PaperDesktopPolicyChangedDetails paperDesktopPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperDesktopPolicyChangedDetailsValue = paperDesktopPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperEnabledUsersGroupAdditionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperEnabledUsersGroupAdditionDetails(Tag _tag, PaperEnabledUsersGroupAdditionDetails paperEnabledUsersGroupAdditionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperEnabledUsersGroupAdditionDetailsValue = paperEnabledUsersGroupAdditionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param paperEnabledUsersGroupRemovalDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPaperEnabledUsersGroupRemovalDetails(Tag _tag, PaperEnabledUsersGroupRemovalDetails paperEnabledUsersGroupRemovalDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.paperEnabledUsersGroupRemovalDetailsValue = paperEnabledUsersGroupRemovalDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param passwordStrengthRequirementsChangePolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPasswordStrengthRequirementsChangePolicyDetails(Tag _tag, PasswordStrengthRequirementsChangePolicyDetails passwordStrengthRequirementsChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.passwordStrengthRequirementsChangePolicyDetailsValue = passwordStrengthRequirementsChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param permanentDeleteChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndPermanentDeleteChangePolicyDetails(Tag _tag, PermanentDeleteChangePolicyDetails permanentDeleteChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.permanentDeleteChangePolicyDetailsValue = permanentDeleteChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param resellerSupportChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndResellerSupportChangePolicyDetails(Tag _tag, ResellerSupportChangePolicyDetails resellerSupportChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.resellerSupportChangePolicyDetailsValue = resellerSupportChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param rewindPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndRewindPolicyChangedDetails(Tag _tag, RewindPolicyChangedDetails rewindPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.rewindPolicyChangedDetailsValue = rewindPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sendForSignaturePolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSendForSignaturePolicyChangedDetails(Tag _tag, SendForSignaturePolicyChangedDetails sendForSignaturePolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sendForSignaturePolicyChangedDetailsValue = sendForSignaturePolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharingChangeFolderJoinPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharingChangeFolderJoinPolicyDetails(Tag _tag, SharingChangeFolderJoinPolicyDetails sharingChangeFolderJoinPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharingChangeFolderJoinPolicyDetailsValue = sharingChangeFolderJoinPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharingChangeLinkAllowChangeExpirationPolicyDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharingChangeLinkAllowChangeExpirationPolicyDetails(Tag _tag, SharingChangeLinkAllowChangeExpirationPolicyDetails sharingChangeLinkAllowChangeExpirationPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharingChangeLinkAllowChangeExpirationPolicyDetailsValue = sharingChangeLinkAllowChangeExpirationPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharingChangeLinkDefaultExpirationPolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharingChangeLinkDefaultExpirationPolicyDetails(Tag _tag, SharingChangeLinkDefaultExpirationPolicyDetails sharingChangeLinkDefaultExpirationPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharingChangeLinkDefaultExpirationPolicyDetailsValue = sharingChangeLinkDefaultExpirationPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharingChangeLinkEnforcePasswordPolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharingChangeLinkEnforcePasswordPolicyDetails(Tag _tag, SharingChangeLinkEnforcePasswordPolicyDetails sharingChangeLinkEnforcePasswordPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharingChangeLinkEnforcePasswordPolicyDetailsValue = sharingChangeLinkEnforcePasswordPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharingChangeLinkPolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharingChangeLinkPolicyDetails(Tag _tag, SharingChangeLinkPolicyDetails sharingChangeLinkPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharingChangeLinkPolicyDetailsValue = sharingChangeLinkPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param sharingChangeMemberPolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSharingChangeMemberPolicyDetails(Tag _tag, SharingChangeMemberPolicyDetails sharingChangeMemberPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.sharingChangeMemberPolicyDetailsValue = sharingChangeMemberPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseChangeDownloadPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseChangeDownloadPolicyDetails(Tag _tag, ShowcaseChangeDownloadPolicyDetails showcaseChangeDownloadPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseChangeDownloadPolicyDetailsValue = showcaseChangeDownloadPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseChangeEnabledPolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseChangeEnabledPolicyDetails(Tag _tag, ShowcaseChangeEnabledPolicyDetails showcaseChangeEnabledPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseChangeEnabledPolicyDetailsValue = showcaseChangeEnabledPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param showcaseChangeExternalSharingPolicyDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndShowcaseChangeExternalSharingPolicyDetails(Tag _tag, ShowcaseChangeExternalSharingPolicyDetails showcaseChangeExternalSharingPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.showcaseChangeExternalSharingPolicyDetailsValue = showcaseChangeExternalSharingPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param smarterSmartSyncPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSmarterSmartSyncPolicyChangedDetails(Tag _tag, SmarterSmartSyncPolicyChangedDetails smarterSmartSyncPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.smarterSmartSyncPolicyChangedDetailsValue = smarterSmartSyncPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param smartSyncChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSmartSyncChangePolicyDetails(Tag _tag, SmartSyncChangePolicyDetails smartSyncChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.smartSyncChangePolicyDetailsValue = smartSyncChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param smartSyncNotOptOutDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSmartSyncNotOptOutDetails(Tag _tag, SmartSyncNotOptOutDetails smartSyncNotOptOutDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.smartSyncNotOptOutDetailsValue = smartSyncNotOptOutDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param smartSyncOptOutDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSmartSyncOptOutDetails(Tag _tag, SmartSyncOptOutDetails smartSyncOptOutDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.smartSyncOptOutDetailsValue = smartSyncOptOutDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param ssoChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndSsoChangePolicyDetails(Tag _tag, SsoChangePolicyDetails ssoChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.ssoChangePolicyDetailsValue = ssoChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamBrandingPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamBrandingPolicyChangedDetails(Tag _tag, TeamBrandingPolicyChangedDetails teamBrandingPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamBrandingPolicyChangedDetailsValue = teamBrandingPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamExtensionsPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamExtensionsPolicyChangedDetails(Tag _tag, TeamExtensionsPolicyChangedDetails teamExtensionsPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamExtensionsPolicyChangedDetailsValue = teamExtensionsPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamSelectiveSyncPolicyChangedDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamSelectiveSyncPolicyChangedDetails(Tag _tag, TeamSelectiveSyncPolicyChangedDetails teamSelectiveSyncPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamSelectiveSyncPolicyChangedDetailsValue = teamSelectiveSyncPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamSharingWhitelistSubjectsChangedDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamSharingWhitelistSubjectsChangedDetails(Tag _tag, TeamSharingWhitelistSubjectsChangedDetails teamSharingWhitelistSubjectsChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamSharingWhitelistSubjectsChangedDetailsValue = teamSharingWhitelistSubjectsChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaAddExceptionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaAddExceptionDetails(Tag _tag, TfaAddExceptionDetails tfaAddExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaAddExceptionDetailsValue = tfaAddExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaChangePolicyDetails(Tag _tag, TfaChangePolicyDetails tfaChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaChangePolicyDetailsValue = tfaChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaRemoveExceptionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaRemoveExceptionDetails(Tag _tag, TfaRemoveExceptionDetails tfaRemoveExceptionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaRemoveExceptionDetailsValue = tfaRemoveExceptionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param twoAccountChangePolicyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTwoAccountChangePolicyDetails(Tag _tag, TwoAccountChangePolicyDetails twoAccountChangePolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.twoAccountChangePolicyDetailsValue = twoAccountChangePolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param viewerInfoPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndViewerInfoPolicyChangedDetails(Tag _tag, ViewerInfoPolicyChangedDetails viewerInfoPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.viewerInfoPolicyChangedDetailsValue = viewerInfoPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param watermarkingPolicyChangedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndWatermarkingPolicyChangedDetails(Tag _tag, WatermarkingPolicyChangedDetails watermarkingPolicyChangedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.watermarkingPolicyChangedDetailsValue = watermarkingPolicyChangedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param webSessionsChangeActiveSessionLimitDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndWebSessionsChangeActiveSessionLimitDetails(Tag _tag, WebSessionsChangeActiveSessionLimitDetails webSessionsChangeActiveSessionLimitDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.webSessionsChangeActiveSessionLimitDetailsValue = webSessionsChangeActiveSessionLimitDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param webSessionsChangeFixedLengthPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndWebSessionsChangeFixedLengthPolicyDetails(Tag _tag, WebSessionsChangeFixedLengthPolicyDetails webSessionsChangeFixedLengthPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.webSessionsChangeFixedLengthPolicyDetailsValue = webSessionsChangeFixedLengthPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param webSessionsChangeIdleLengthPolicyDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndWebSessionsChangeIdleLengthPolicyDetails(Tag _tag, WebSessionsChangeIdleLengthPolicyDetails webSessionsChangeIdleLengthPolicyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.webSessionsChangeIdleLengthPolicyDetailsValue = webSessionsChangeIdleLengthPolicyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param dataResidencyMigrationRequestSuccessfulDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDataResidencyMigrationRequestSuccessfulDetails(Tag _tag, DataResidencyMigrationRequestSuccessfulDetails dataResidencyMigrationRequestSuccessfulDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.dataResidencyMigrationRequestSuccessfulDetailsValue = dataResidencyMigrationRequestSuccessfulDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param dataResidencyMigrationRequestUnsuccessfulDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndDataResidencyMigrationRequestUnsuccessfulDetails(Tag _tag, DataResidencyMigrationRequestUnsuccessfulDetails dataResidencyMigrationRequestUnsuccessfulDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.dataResidencyMigrationRequestUnsuccessfulDetailsValue = dataResidencyMigrationRequestUnsuccessfulDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeFromDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeFromDetails(Tag _tag, TeamMergeFromDetails teamMergeFromDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeFromDetailsValue = teamMergeFromDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeToDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeToDetails(Tag _tag, TeamMergeToDetails teamMergeToDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeToDetailsValue = teamMergeToDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileAddBackgroundDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileAddBackgroundDetails(Tag _tag, TeamProfileAddBackgroundDetails teamProfileAddBackgroundDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileAddBackgroundDetailsValue = teamProfileAddBackgroundDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileAddLogoDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileAddLogoDetails(Tag _tag, TeamProfileAddLogoDetails teamProfileAddLogoDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileAddLogoDetailsValue = teamProfileAddLogoDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileChangeBackgroundDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileChangeBackgroundDetails(Tag _tag, TeamProfileChangeBackgroundDetails teamProfileChangeBackgroundDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileChangeBackgroundDetailsValue = teamProfileChangeBackgroundDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileChangeDefaultLanguageDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileChangeDefaultLanguageDetails(Tag _tag, TeamProfileChangeDefaultLanguageDetails teamProfileChangeDefaultLanguageDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileChangeDefaultLanguageDetailsValue = teamProfileChangeDefaultLanguageDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileChangeLogoDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileChangeLogoDetails(Tag _tag, TeamProfileChangeLogoDetails teamProfileChangeLogoDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileChangeLogoDetailsValue = teamProfileChangeLogoDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileChangeNameDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileChangeNameDetails(Tag _tag, TeamProfileChangeNameDetails teamProfileChangeNameDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileChangeNameDetailsValue = teamProfileChangeNameDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileRemoveBackgroundDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileRemoveBackgroundDetails(Tag _tag, TeamProfileRemoveBackgroundDetails teamProfileRemoveBackgroundDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileRemoveBackgroundDetailsValue = teamProfileRemoveBackgroundDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamProfileRemoveLogoDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamProfileRemoveLogoDetails(Tag _tag, TeamProfileRemoveLogoDetails teamProfileRemoveLogoDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamProfileRemoveLogoDetailsValue = teamProfileRemoveLogoDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaAddBackupPhoneDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaAddBackupPhoneDetails(Tag _tag, TfaAddBackupPhoneDetails tfaAddBackupPhoneDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaAddBackupPhoneDetailsValue = tfaAddBackupPhoneDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaAddSecurityKeyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaAddSecurityKeyDetails(Tag _tag, TfaAddSecurityKeyDetails tfaAddSecurityKeyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaAddSecurityKeyDetailsValue = tfaAddSecurityKeyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaChangeBackupPhoneDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaChangeBackupPhoneDetails(Tag _tag, TfaChangeBackupPhoneDetails tfaChangeBackupPhoneDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaChangeBackupPhoneDetailsValue = tfaChangeBackupPhoneDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaChangeStatusDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaChangeStatusDetails(Tag _tag, TfaChangeStatusDetails tfaChangeStatusDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaChangeStatusDetailsValue = tfaChangeStatusDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaRemoveBackupPhoneDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaRemoveBackupPhoneDetails(Tag _tag, TfaRemoveBackupPhoneDetails tfaRemoveBackupPhoneDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaRemoveBackupPhoneDetailsValue = tfaRemoveBackupPhoneDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaRemoveSecurityKeyDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaRemoveSecurityKeyDetails(Tag _tag, TfaRemoveSecurityKeyDetails tfaRemoveSecurityKeyDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaRemoveSecurityKeyDetailsValue = tfaRemoveSecurityKeyDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param tfaResetDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTfaResetDetails(Tag _tag, TfaResetDetails tfaResetDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.tfaResetDetailsValue = tfaResetDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param changedEnterpriseAdminRoleDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndChangedEnterpriseAdminRoleDetails(Tag _tag, ChangedEnterpriseAdminRoleDetails changedEnterpriseAdminRoleDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.changedEnterpriseAdminRoleDetailsValue = changedEnterpriseAdminRoleDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param changedEnterpriseConnectedTeamStatusDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndChangedEnterpriseConnectedTeamStatusDetails(Tag _tag, ChangedEnterpriseConnectedTeamStatusDetails changedEnterpriseConnectedTeamStatusDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.changedEnterpriseConnectedTeamStatusDetailsValue = changedEnterpriseConnectedTeamStatusDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param endedEnterpriseAdminSessionDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEndedEnterpriseAdminSessionDetails(Tag _tag, EndedEnterpriseAdminSessionDetails endedEnterpriseAdminSessionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.endedEnterpriseAdminSessionDetailsValue = endedEnterpriseAdminSessionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param endedEnterpriseAdminSessionDeprecatedDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEndedEnterpriseAdminSessionDeprecatedDetails(Tag _tag, EndedEnterpriseAdminSessionDeprecatedDetails endedEnterpriseAdminSessionDeprecatedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.endedEnterpriseAdminSessionDeprecatedDetailsValue = endedEnterpriseAdminSessionDeprecatedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param enterpriseSettingsLockingDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndEnterpriseSettingsLockingDetails(Tag _tag, EnterpriseSettingsLockingDetails enterpriseSettingsLockingDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.enterpriseSettingsLockingDetailsValue = enterpriseSettingsLockingDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param guestAdminChangeStatusDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndGuestAdminChangeStatusDetails(Tag _tag, GuestAdminChangeStatusDetails guestAdminChangeStatusDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.guestAdminChangeStatusDetailsValue = guestAdminChangeStatusDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param startedEnterpriseAdminSessionDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndStartedEnterpriseAdminSessionDetails(Tag _tag, StartedEnterpriseAdminSessionDetails startedEnterpriseAdminSessionDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.startedEnterpriseAdminSessionDetailsValue = startedEnterpriseAdminSessionDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestAcceptedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestAcceptedDetails(Tag _tag, TeamMergeRequestAcceptedDetails teamMergeRequestAcceptedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestAcceptedDetailsValue = teamMergeRequestAcceptedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestAcceptedShownToPrimaryTeamDetails(Tag _tag, TeamMergeRequestAcceptedShownToPrimaryTeamDetails teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue = teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestAcceptedShownToSecondaryTeamDetails(Tag _tag, TeamMergeRequestAcceptedShownToSecondaryTeamDetails teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue = teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestAutoCanceledDetailsValue Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestAutoCanceledDetails(Tag _tag, TeamMergeRequestAutoCanceledDetails teamMergeRequestAutoCanceledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestAutoCanceledDetailsValue = teamMergeRequestAutoCanceledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestCanceledDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestCanceledDetails(Tag _tag, TeamMergeRequestCanceledDetails teamMergeRequestCanceledDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestCanceledDetailsValue = teamMergeRequestCanceledDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestCanceledShownToPrimaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestCanceledShownToPrimaryTeamDetails(Tag _tag, TeamMergeRequestCanceledShownToPrimaryTeamDetails teamMergeRequestCanceledShownToPrimaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestCanceledShownToPrimaryTeamDetailsValue = teamMergeRequestCanceledShownToPrimaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestCanceledShownToSecondaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestCanceledShownToSecondaryTeamDetails(Tag _tag, TeamMergeRequestCanceledShownToSecondaryTeamDetails teamMergeRequestCanceledShownToSecondaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestCanceledShownToSecondaryTeamDetailsValue = teamMergeRequestCanceledShownToSecondaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestExpiredDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestExpiredDetails(Tag _tag, TeamMergeRequestExpiredDetails teamMergeRequestExpiredDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestExpiredDetailsValue = teamMergeRequestExpiredDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestExpiredShownToPrimaryTeamDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestExpiredShownToPrimaryTeamDetails(Tag _tag, TeamMergeRequestExpiredShownToPrimaryTeamDetails teamMergeRequestExpiredShownToPrimaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestExpiredShownToPrimaryTeamDetailsValue = teamMergeRequestExpiredShownToPrimaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestExpiredShownToSecondaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestExpiredShownToSecondaryTeamDetails(Tag _tag, TeamMergeRequestExpiredShownToSecondaryTeamDetails teamMergeRequestExpiredShownToSecondaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestExpiredShownToSecondaryTeamDetailsValue = teamMergeRequestExpiredShownToSecondaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestRejectedShownToPrimaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestRejectedShownToPrimaryTeamDetails(Tag _tag, TeamMergeRequestRejectedShownToPrimaryTeamDetails teamMergeRequestRejectedShownToPrimaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestRejectedShownToPrimaryTeamDetailsValue = teamMergeRequestRejectedShownToPrimaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestRejectedShownToSecondaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestRejectedShownToSecondaryTeamDetails(Tag _tag, TeamMergeRequestRejectedShownToSecondaryTeamDetails teamMergeRequestRejectedShownToSecondaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestRejectedShownToSecondaryTeamDetailsValue = teamMergeRequestRejectedShownToSecondaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestReminderDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestReminderDetails(Tag _tag, TeamMergeRequestReminderDetails teamMergeRequestReminderDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestReminderDetailsValue = teamMergeRequestReminderDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestReminderShownToPrimaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestReminderShownToPrimaryTeamDetails(Tag _tag, TeamMergeRequestReminderShownToPrimaryTeamDetails teamMergeRequestReminderShownToPrimaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestReminderShownToPrimaryTeamDetailsValue = teamMergeRequestReminderShownToPrimaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestReminderShownToSecondaryTeamDetailsValue Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestReminderShownToSecondaryTeamDetails(Tag _tag, TeamMergeRequestReminderShownToSecondaryTeamDetails teamMergeRequestReminderShownToSecondaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestReminderShownToSecondaryTeamDetailsValue = teamMergeRequestReminderShownToSecondaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestRevokedDetailsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestRevokedDetails(Tag _tag, TeamMergeRequestRevokedDetails teamMergeRequestRevokedDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestRevokedDetailsValue = teamMergeRequestRevokedDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestSentShownToPrimaryTeamDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestSentShownToPrimaryTeamDetails(Tag _tag, TeamMergeRequestSentShownToPrimaryTeamDetails teamMergeRequestSentShownToPrimaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestSentShownToPrimaryTeamDetailsValue = teamMergeRequestSentShownToPrimaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param teamMergeRequestSentShownToSecondaryTeamDetailsValue Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndTeamMergeRequestSentShownToSecondaryTeamDetails(Tag _tag, TeamMergeRequestSentShownToSecondaryTeamDetails teamMergeRequestSentShownToSecondaryTeamDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.teamMergeRequestSentShownToSecondaryTeamDetailsValue = teamMergeRequestSentShownToSecondaryTeamDetailsValue; + return result; + } + + /** + * Additional fields depending on the event type. + * + * @param missingDetailsValue Hints that this event was returned with + * missing details due to an internal error. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventDetails withTagAndMissingDetails(Tag _tag, MissingDetails missingDetailsValue) { + EventDetails result = new EventDetails(); + result._tag = _tag; + result.missingDetailsValue = missingDetailsValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code EventDetails}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isAdminAlertingAlertStateChangedDetails() { + return this._tag == Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails adminAlertingAlertStateChangedDetails(AdminAlertingAlertStateChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAdminAlertingAlertStateChangedDetails(Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS}. + * + * @return The {@link AdminAlertingAlertStateChangedDetails} value + * associated with this instance if {@link + * #isAdminAlertingAlertStateChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAdminAlertingAlertStateChangedDetails} is {@code false}. + */ + public AdminAlertingAlertStateChangedDetails getAdminAlertingAlertStateChangedDetailsValue() { + if (this._tag != Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return adminAlertingAlertStateChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS}, {@code false} + * otherwise. + */ + public boolean isAdminAlertingChangedAlertConfigDetails() { + return this._tag == Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails adminAlertingChangedAlertConfigDetails(AdminAlertingChangedAlertConfigDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAdminAlertingChangedAlertConfigDetails(Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS}. + * + * @return The {@link AdminAlertingChangedAlertConfigDetails} value + * associated with this instance if {@link + * #isAdminAlertingChangedAlertConfigDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAdminAlertingChangedAlertConfigDetails} is {@code false}. + */ + public AdminAlertingChangedAlertConfigDetails getAdminAlertingChangedAlertConfigDetailsValue() { + if (this._tag != Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS, but was Tag." + this._tag.name()); + } + return adminAlertingChangedAlertConfigDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS}, {@code false} otherwise. + */ + public boolean isAdminAlertingTriggeredAlertDetails() { + return this._tag == Tag.ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails adminAlertingTriggeredAlertDetails(AdminAlertingTriggeredAlertDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAdminAlertingTriggeredAlertDetails(Tag.ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS}. + * + * @return The {@link AdminAlertingTriggeredAlertDetails} value associated + * with this instance if {@link #isAdminAlertingTriggeredAlertDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAdminAlertingTriggeredAlertDetails} is {@code false}. + */ + public AdminAlertingTriggeredAlertDetails getAdminAlertingTriggeredAlertDetailsValue() { + if (this._tag != Tag.ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS, but was Tag." + this._tag.name()); + } + return adminAlertingTriggeredAlertDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isRansomwareRestoreProcessCompletedDetails() { + return this._tag == Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ransomwareRestoreProcessCompletedDetails(RansomwareRestoreProcessCompletedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndRansomwareRestoreProcessCompletedDetails(Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS}. + * + * @return The {@link RansomwareRestoreProcessCompletedDetails} value + * associated with this instance if {@link + * #isRansomwareRestoreProcessCompletedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isRansomwareRestoreProcessCompletedDetails} is {@code false}. + */ + public RansomwareRestoreProcessCompletedDetails getRansomwareRestoreProcessCompletedDetailsValue() { + if (this._tag != Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS, but was Tag." + this._tag.name()); + } + return ransomwareRestoreProcessCompletedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isRansomwareRestoreProcessStartedDetails() { + return this._tag == Tag.RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ransomwareRestoreProcessStartedDetails(RansomwareRestoreProcessStartedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndRansomwareRestoreProcessStartedDetails(Tag.RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS}. + * + * @return The {@link RansomwareRestoreProcessStartedDetails} value + * associated with this instance if {@link + * #isRansomwareRestoreProcessStartedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isRansomwareRestoreProcessStartedDetails} is {@code false}. + */ + public RansomwareRestoreProcessStartedDetails getRansomwareRestoreProcessStartedDetailsValue() { + if (this._tag != Tag.RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS, but was Tag." + this._tag.name()); + } + return ransomwareRestoreProcessStartedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS_DETAILS}, {@code false} otherwise. + */ + public boolean isAppBlockedByPermissionsDetails() { + return this._tag == Tag.APP_BLOCKED_BY_PERMISSIONS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#APP_BLOCKED_BY_PERMISSIONS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails appBlockedByPermissionsDetails(AppBlockedByPermissionsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAppBlockedByPermissionsDetails(Tag.APP_BLOCKED_BY_PERMISSIONS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS_DETAILS}. + * + * @return The {@link AppBlockedByPermissionsDetails} value associated with + * this instance if {@link #isAppBlockedByPermissionsDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isAppBlockedByPermissionsDetails} is {@code false}. + */ + public AppBlockedByPermissionsDetails getAppBlockedByPermissionsDetailsValue() { + if (this._tag != Tag.APP_BLOCKED_BY_PERMISSIONS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.APP_BLOCKED_BY_PERMISSIONS_DETAILS, but was Tag." + this._tag.name()); + } + return appBlockedByPermissionsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_LINK_TEAM_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_LINK_TEAM_DETAILS}, {@code false} otherwise. + */ + public boolean isAppLinkTeamDetails() { + return this._tag == Tag.APP_LINK_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#APP_LINK_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#APP_LINK_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails appLinkTeamDetails(AppLinkTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAppLinkTeamDetails(Tag.APP_LINK_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#APP_LINK_TEAM_DETAILS}. + * + * @return The {@link AppLinkTeamDetails} value associated with this + * instance if {@link #isAppLinkTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppLinkTeamDetails} is {@code + * false}. + */ + public AppLinkTeamDetails getAppLinkTeamDetailsValue() { + if (this._tag != Tag.APP_LINK_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.APP_LINK_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return appLinkTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_LINK_USER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_LINK_USER_DETAILS}, {@code false} otherwise. + */ + public boolean isAppLinkUserDetails() { + return this._tag == Tag.APP_LINK_USER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#APP_LINK_USER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#APP_LINK_USER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails appLinkUserDetails(AppLinkUserDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAppLinkUserDetails(Tag.APP_LINK_USER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#APP_LINK_USER_DETAILS}. + * + * @return The {@link AppLinkUserDetails} value associated with this + * instance if {@link #isAppLinkUserDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppLinkUserDetails} is {@code + * false}. + */ + public AppLinkUserDetails getAppLinkUserDetailsValue() { + if (this._tag != Tag.APP_LINK_USER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.APP_LINK_USER_DETAILS, but was Tag." + this._tag.name()); + } + return appLinkUserDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_UNLINK_TEAM_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_UNLINK_TEAM_DETAILS}, {@code false} otherwise. + */ + public boolean isAppUnlinkTeamDetails() { + return this._tag == Tag.APP_UNLINK_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#APP_UNLINK_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#APP_UNLINK_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails appUnlinkTeamDetails(AppUnlinkTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAppUnlinkTeamDetails(Tag.APP_UNLINK_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#APP_UNLINK_TEAM_DETAILS}. + * + * @return The {@link AppUnlinkTeamDetails} value associated with this + * instance if {@link #isAppUnlinkTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppUnlinkTeamDetails} is + * {@code false}. + */ + public AppUnlinkTeamDetails getAppUnlinkTeamDetailsValue() { + if (this._tag != Tag.APP_UNLINK_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.APP_UNLINK_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return appUnlinkTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_UNLINK_USER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_UNLINK_USER_DETAILS}, {@code false} otherwise. + */ + public boolean isAppUnlinkUserDetails() { + return this._tag == Tag.APP_UNLINK_USER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#APP_UNLINK_USER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#APP_UNLINK_USER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails appUnlinkUserDetails(AppUnlinkUserDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAppUnlinkUserDetails(Tag.APP_UNLINK_USER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#APP_UNLINK_USER_DETAILS}. + * + * @return The {@link AppUnlinkUserDetails} value associated with this + * instance if {@link #isAppUnlinkUserDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppUnlinkUserDetails} is + * {@code false}. + */ + public AppUnlinkUserDetails getAppUnlinkUserDetailsValue() { + if (this._tag != Tag.APP_UNLINK_USER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.APP_UNLINK_USER_DETAILS, but was Tag." + this._tag.name()); + } + return appUnlinkUserDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTEGRATION_CONNECTED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTEGRATION_CONNECTED_DETAILS}, {@code false} otherwise. + */ + public boolean isIntegrationConnectedDetails() { + return this._tag == Tag.INTEGRATION_CONNECTED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#INTEGRATION_CONNECTED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#INTEGRATION_CONNECTED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails integrationConnectedDetails(IntegrationConnectedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndIntegrationConnectedDetails(Tag.INTEGRATION_CONNECTED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#INTEGRATION_CONNECTED_DETAILS}. + * + * @return The {@link IntegrationConnectedDetails} value associated with + * this instance if {@link #isIntegrationConnectedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isIntegrationConnectedDetails} + * is {@code false}. + */ + public IntegrationConnectedDetails getIntegrationConnectedDetailsValue() { + if (this._tag != Tag.INTEGRATION_CONNECTED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.INTEGRATION_CONNECTED_DETAILS, but was Tag." + this._tag.name()); + } + return integrationConnectedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTEGRATION_DISCONNECTED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTEGRATION_DISCONNECTED_DETAILS}, {@code false} otherwise. + */ + public boolean isIntegrationDisconnectedDetails() { + return this._tag == Tag.INTEGRATION_DISCONNECTED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#INTEGRATION_DISCONNECTED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#INTEGRATION_DISCONNECTED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails integrationDisconnectedDetails(IntegrationDisconnectedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndIntegrationDisconnectedDetails(Tag.INTEGRATION_DISCONNECTED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#INTEGRATION_DISCONNECTED_DETAILS}. + * + * @return The {@link IntegrationDisconnectedDetails} value associated with + * this instance if {@link #isIntegrationDisconnectedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isIntegrationDisconnectedDetails} is {@code false}. + */ + public IntegrationDisconnectedDetails getIntegrationDisconnectedDetailsValue() { + if (this._tag != Tag.INTEGRATION_DISCONNECTED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.INTEGRATION_DISCONNECTED_DETAILS, but was Tag." + this._tag.name()); + } + return integrationDisconnectedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_ADD_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_ADD_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileAddCommentDetails() { + return this._tag == Tag.FILE_ADD_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_ADD_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_ADD_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileAddCommentDetails(FileAddCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileAddCommentDetails(Tag.FILE_ADD_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_ADD_COMMENT_DETAILS}. + * + * @return The {@link FileAddCommentDetails} value associated with this + * instance if {@link #isFileAddCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileAddCommentDetails} is + * {@code false}. + */ + public FileAddCommentDetails getFileAddCommentDetailsValue() { + if (this._tag != Tag.FILE_ADD_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ADD_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return fileAddCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isFileChangeCommentSubscriptionDetails() { + return this._tag == Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileChangeCommentSubscriptionDetails(FileChangeCommentSubscriptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileChangeCommentSubscriptionDetails(Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS}. + * + * @return The {@link FileChangeCommentSubscriptionDetails} value associated + * with this instance if {@link #isFileChangeCommentSubscriptionDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileChangeCommentSubscriptionDetails} is {@code false}. + */ + public FileChangeCommentSubscriptionDetails getFileChangeCommentSubscriptionDetailsValue() { + if (this._tag != Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS, but was Tag." + this._tag.name()); + } + return fileChangeCommentSubscriptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_DELETE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_DELETE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileDeleteCommentDetails() { + return this._tag == Tag.FILE_DELETE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_DELETE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_DELETE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileDeleteCommentDetails(FileDeleteCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileDeleteCommentDetails(Tag.FILE_DELETE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_DELETE_COMMENT_DETAILS}. + * + * @return The {@link FileDeleteCommentDetails} value associated with this + * instance if {@link #isFileDeleteCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileDeleteCommentDetails} is + * {@code false}. + */ + public FileDeleteCommentDetails getFileDeleteCommentDetailsValue() { + if (this._tag != Tag.FILE_DELETE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_DELETE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return fileDeleteCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_EDIT_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_EDIT_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileEditCommentDetails() { + return this._tag == Tag.FILE_EDIT_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_EDIT_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_EDIT_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileEditCommentDetails(FileEditCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileEditCommentDetails(Tag.FILE_EDIT_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_EDIT_COMMENT_DETAILS}. + * + * @return The {@link FileEditCommentDetails} value associated with this + * instance if {@link #isFileEditCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileEditCommentDetails} is + * {@code false}. + */ + public FileEditCommentDetails getFileEditCommentDetailsValue() { + if (this._tag != Tag.FILE_EDIT_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_EDIT_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return fileEditCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_LIKE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_LIKE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileLikeCommentDetails() { + return this._tag == Tag.FILE_LIKE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_LIKE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_LIKE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileLikeCommentDetails(FileLikeCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileLikeCommentDetails(Tag.FILE_LIKE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_LIKE_COMMENT_DETAILS}. + * + * @return The {@link FileLikeCommentDetails} value associated with this + * instance if {@link #isFileLikeCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileLikeCommentDetails} is + * {@code false}. + */ + public FileLikeCommentDetails getFileLikeCommentDetailsValue() { + if (this._tag != Tag.FILE_LIKE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_LIKE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return fileLikeCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_RESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_RESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileResolveCommentDetails() { + return this._tag == Tag.FILE_RESOLVE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_RESOLVE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_RESOLVE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileResolveCommentDetails(FileResolveCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileResolveCommentDetails(Tag.FILE_RESOLVE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_RESOLVE_COMMENT_DETAILS}. + * + * @return The {@link FileResolveCommentDetails} value associated with this + * instance if {@link #isFileResolveCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileResolveCommentDetails} is + * {@code false}. + */ + public FileResolveCommentDetails getFileResolveCommentDetailsValue() { + if (this._tag != Tag.FILE_RESOLVE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_RESOLVE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return fileResolveCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_UNLIKE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_UNLIKE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileUnlikeCommentDetails() { + return this._tag == Tag.FILE_UNLIKE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_UNLIKE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_UNLIKE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileUnlikeCommentDetails(FileUnlikeCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileUnlikeCommentDetails(Tag.FILE_UNLIKE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_UNLIKE_COMMENT_DETAILS}. + * + * @return The {@link FileUnlikeCommentDetails} value associated with this + * instance if {@link #isFileUnlikeCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileUnlikeCommentDetails} is + * {@code false}. + */ + public FileUnlikeCommentDetails getFileUnlikeCommentDetailsValue() { + if (this._tag != Tag.FILE_UNLIKE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_UNLIKE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return fileUnlikeCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_UNRESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_UNRESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileUnresolveCommentDetails() { + return this._tag == Tag.FILE_UNRESOLVE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_UNRESOLVE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_UNRESOLVE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileUnresolveCommentDetails(FileUnresolveCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileUnresolveCommentDetails(Tag.FILE_UNRESOLVE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_UNRESOLVE_COMMENT_DETAILS}. + * + * @return The {@link FileUnresolveCommentDetails} value associated with + * this instance if {@link #isFileUnresolveCommentDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileUnresolveCommentDetails} + * is {@code false}. + */ + public FileUnresolveCommentDetails getFileUnresolveCommentDetailsValue() { + if (this._tag != Tag.FILE_UNRESOLVE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_UNRESOLVE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return fileUnresolveCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS}, {@code false} otherwise. + */ + public boolean isGovernancePolicyAddFoldersDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyAddFoldersDetails(GovernancePolicyAddFoldersDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyAddFoldersDetails(Tag.GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS}. + * + * @return The {@link GovernancePolicyAddFoldersDetails} value associated + * with this instance if {@link #isGovernancePolicyAddFoldersDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyAddFoldersDetails} is {@code false}. + */ + public GovernancePolicyAddFoldersDetails getGovernancePolicyAddFoldersDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyAddFoldersDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyAddFolderFailedDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyAddFolderFailedDetails(GovernancePolicyAddFolderFailedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyAddFolderFailedDetails(Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS}. + * + * @return The {@link GovernancePolicyAddFolderFailedDetails} value + * associated with this instance if {@link + * #isGovernancePolicyAddFolderFailedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyAddFolderFailedDetails} is {@code false}. + */ + public GovernancePolicyAddFolderFailedDetails getGovernancePolicyAddFolderFailedDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyAddFolderFailedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyContentDisposedDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyContentDisposedDetails(GovernancePolicyContentDisposedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyContentDisposedDetails(Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS}. + * + * @return The {@link GovernancePolicyContentDisposedDetails} value + * associated with this instance if {@link + * #isGovernancePolicyContentDisposedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyContentDisposedDetails} is {@code false}. + */ + public GovernancePolicyContentDisposedDetails getGovernancePolicyContentDisposedDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyContentDisposedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isGovernancePolicyCreateDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyCreateDetails(GovernancePolicyCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyCreateDetails(Tag.GOVERNANCE_POLICY_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_CREATE_DETAILS}. + * + * @return The {@link GovernancePolicyCreateDetails} value associated with + * this instance if {@link #isGovernancePolicyCreateDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyCreateDetails} is {@code false}. + */ + public GovernancePolicyCreateDetails getGovernancePolicyCreateDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isGovernancePolicyDeleteDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyDeleteDetails(GovernancePolicyDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyDeleteDetails(Tag.GOVERNANCE_POLICY_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_DELETE_DETAILS}. + * + * @return The {@link GovernancePolicyDeleteDetails} value associated with + * this instance if {@link #isGovernancePolicyDeleteDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyDeleteDetails} is {@code false}. + */ + public GovernancePolicyDeleteDetails getGovernancePolicyDeleteDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS}, {@code false} otherwise. + */ + public boolean isGovernancePolicyEditDetailsDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyEditDetailsDetails(GovernancePolicyEditDetailsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyEditDetailsDetails(Tag.GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS}. + * + * @return The {@link GovernancePolicyEditDetailsDetails} value associated + * with this instance if {@link #isGovernancePolicyEditDetailsDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyEditDetailsDetails} is {@code false}. + */ + public GovernancePolicyEditDetailsDetails getGovernancePolicyEditDetailsDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyEditDetailsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyEditDurationDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_EDIT_DURATION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_EDIT_DURATION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyEditDurationDetails(GovernancePolicyEditDurationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyEditDurationDetails(Tag.GOVERNANCE_POLICY_EDIT_DURATION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION_DETAILS}. + * + * @return The {@link GovernancePolicyEditDurationDetails} value associated + * with this instance if {@link #isGovernancePolicyEditDurationDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyEditDurationDetails} is {@code false}. + */ + public GovernancePolicyEditDurationDetails getGovernancePolicyEditDurationDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EDIT_DURATION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EDIT_DURATION_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyEditDurationDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyExportCreatedDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyExportCreatedDetails(GovernancePolicyExportCreatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyExportCreatedDetails(Tag.GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS}. + * + * @return The {@link GovernancePolicyExportCreatedDetails} value associated + * with this instance if {@link #isGovernancePolicyExportCreatedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyExportCreatedDetails} is {@code false}. + */ + public GovernancePolicyExportCreatedDetails getGovernancePolicyExportCreatedDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyExportCreatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyExportRemovedDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyExportRemovedDetails(GovernancePolicyExportRemovedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyExportRemovedDetails(Tag.GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS}. + * + * @return The {@link GovernancePolicyExportRemovedDetails} value associated + * with this instance if {@link #isGovernancePolicyExportRemovedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyExportRemovedDetails} is {@code false}. + */ + public GovernancePolicyExportRemovedDetails getGovernancePolicyExportRemovedDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyExportRemovedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyRemoveFoldersDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyRemoveFoldersDetails(GovernancePolicyRemoveFoldersDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyRemoveFoldersDetails(Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS}. + * + * @return The {@link GovernancePolicyRemoveFoldersDetails} value associated + * with this instance if {@link #isGovernancePolicyRemoveFoldersDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyRemoveFoldersDetails} is {@code false}. + */ + public GovernancePolicyRemoveFoldersDetails getGovernancePolicyRemoveFoldersDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyRemoveFoldersDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyReportCreatedDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_REPORT_CREATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_REPORT_CREATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyReportCreatedDetails(GovernancePolicyReportCreatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyReportCreatedDetails(Tag.GOVERNANCE_POLICY_REPORT_CREATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED_DETAILS}. + * + * @return The {@link GovernancePolicyReportCreatedDetails} value associated + * with this instance if {@link #isGovernancePolicyReportCreatedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyReportCreatedDetails} is {@code false}. + */ + public GovernancePolicyReportCreatedDetails getGovernancePolicyReportCreatedDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_REPORT_CREATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_REPORT_CREATED_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyReportCreatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGovernancePolicyZipPartDownloadedDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails governancePolicyZipPartDownloadedDetails(GovernancePolicyZipPartDownloadedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGovernancePolicyZipPartDownloadedDetails(Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS}. + * + * @return The {@link GovernancePolicyZipPartDownloadedDetails} value + * associated with this instance if {@link + * #isGovernancePolicyZipPartDownloadedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyZipPartDownloadedDetails} is {@code false}. + */ + public GovernancePolicyZipPartDownloadedDetails getGovernancePolicyZipPartDownloadedDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyZipPartDownloadedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsActivateAHoldDetails() { + return this._tag == Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsActivateAHoldDetails(LegalHoldsActivateAHoldDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsActivateAHoldDetails(Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS}. + * + * @return The {@link LegalHoldsActivateAHoldDetails} value associated with + * this instance if {@link #isLegalHoldsActivateAHoldDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsActivateAHoldDetails} is {@code false}. + */ + public LegalHoldsActivateAHoldDetails getLegalHoldsActivateAHoldDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsActivateAHoldDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsAddMembersDetails() { + return this._tag == Tag.LEGAL_HOLDS_ADD_MEMBERS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_ADD_MEMBERS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsAddMembersDetails(LegalHoldsAddMembersDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsAddMembersDetails(Tag.LEGAL_HOLDS_ADD_MEMBERS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS_DETAILS}. + * + * @return The {@link LegalHoldsAddMembersDetails} value associated with + * this instance if {@link #isLegalHoldsAddMembersDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsAddMembersDetails} + * is {@code false}. + */ + public LegalHoldsAddMembersDetails getLegalHoldsAddMembersDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_ADD_MEMBERS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_ADD_MEMBERS_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsAddMembersDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isLegalHoldsChangeHoldDetailsDetails() { + return this._tag == Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsChangeHoldDetailsDetails(LegalHoldsChangeHoldDetailsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsChangeHoldDetailsDetails(Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS}. + * + * @return The {@link LegalHoldsChangeHoldDetailsDetails} value associated + * with this instance if {@link #isLegalHoldsChangeHoldDetailsDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsChangeHoldDetailsDetails} is {@code false}. + */ + public LegalHoldsChangeHoldDetailsDetails getLegalHoldsChangeHoldDetailsDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsChangeHoldDetailsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsChangeHoldNameDetails() { + return this._tag == Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsChangeHoldNameDetails(LegalHoldsChangeHoldNameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsChangeHoldNameDetails(Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS}. + * + * @return The {@link LegalHoldsChangeHoldNameDetails} value associated with + * this instance if {@link #isLegalHoldsChangeHoldNameDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsChangeHoldNameDetails} is {@code false}. + */ + public LegalHoldsChangeHoldNameDetails getLegalHoldsChangeHoldNameDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsChangeHoldNameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportAHoldDetails() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsExportAHoldDetails(LegalHoldsExportAHoldDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsExportAHoldDetails(Tag.LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS}. + * + * @return The {@link LegalHoldsExportAHoldDetails} value associated with + * this instance if {@link #isLegalHoldsExportAHoldDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsExportAHoldDetails} + * is {@code false}. + */ + public LegalHoldsExportAHoldDetails getLegalHoldsExportAHoldDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsExportAHoldDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportCancelledDetails() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsExportCancelledDetails(LegalHoldsExportCancelledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsExportCancelledDetails(Tag.LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS}. + * + * @return The {@link LegalHoldsExportCancelledDetails} value associated + * with this instance if {@link #isLegalHoldsExportCancelledDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsExportCancelledDetails} is {@code false}. + */ + public LegalHoldsExportCancelledDetails getLegalHoldsExportCancelledDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsExportCancelledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportDownloadedDetails() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsExportDownloadedDetails(LegalHoldsExportDownloadedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsExportDownloadedDetails(Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS}. + * + * @return The {@link LegalHoldsExportDownloadedDetails} value associated + * with this instance if {@link #isLegalHoldsExportDownloadedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsExportDownloadedDetails} is {@code false}. + */ + public LegalHoldsExportDownloadedDetails getLegalHoldsExportDownloadedDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsExportDownloadedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportRemovedDetails() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_REMOVED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_EXPORT_REMOVED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsExportRemovedDetails(LegalHoldsExportRemovedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsExportRemovedDetails(Tag.LEGAL_HOLDS_EXPORT_REMOVED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED_DETAILS}. + * + * @return The {@link LegalHoldsExportRemovedDetails} value associated with + * this instance if {@link #isLegalHoldsExportRemovedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsExportRemovedDetails} is {@code false}. + */ + public LegalHoldsExportRemovedDetails getLegalHoldsExportRemovedDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_REMOVED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_REMOVED_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsExportRemovedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsReleaseAHoldDetails() { + return this._tag == Tag.LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsReleaseAHoldDetails(LegalHoldsReleaseAHoldDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsReleaseAHoldDetails(Tag.LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS}. + * + * @return The {@link LegalHoldsReleaseAHoldDetails} value associated with + * this instance if {@link #isLegalHoldsReleaseAHoldDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsReleaseAHoldDetails} is {@code false}. + */ + public LegalHoldsReleaseAHoldDetails getLegalHoldsReleaseAHoldDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsReleaseAHoldDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsRemoveMembersDetails() { + return this._tag == Tag.LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsRemoveMembersDetails(LegalHoldsRemoveMembersDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsRemoveMembersDetails(Tag.LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS}. + * + * @return The {@link LegalHoldsRemoveMembersDetails} value associated with + * this instance if {@link #isLegalHoldsRemoveMembersDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isLegalHoldsRemoveMembersDetails} is {@code false}. + */ + public LegalHoldsRemoveMembersDetails getLegalHoldsRemoveMembersDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsRemoveMembersDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsReportAHoldDetails() { + return this._tag == Tag.LEGAL_HOLDS_REPORT_A_HOLD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LEGAL_HOLDS_REPORT_A_HOLD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails legalHoldsReportAHoldDetails(LegalHoldsReportAHoldDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLegalHoldsReportAHoldDetails(Tag.LEGAL_HOLDS_REPORT_A_HOLD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD_DETAILS}. + * + * @return The {@link LegalHoldsReportAHoldDetails} value associated with + * this instance if {@link #isLegalHoldsReportAHoldDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsReportAHoldDetails} + * is {@code false}. + */ + public LegalHoldsReportAHoldDetails getLegalHoldsReportAHoldDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_REPORT_A_HOLD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_REPORT_A_HOLD_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsReportAHoldDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceChangeIpDesktopDetails() { + return this._tag == Tag.DEVICE_CHANGE_IP_DESKTOP_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_CHANGE_IP_DESKTOP_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceChangeIpDesktopDetails(DeviceChangeIpDesktopDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceChangeIpDesktopDetails(Tag.DEVICE_CHANGE_IP_DESKTOP_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP_DETAILS}. + * + * @return The {@link DeviceChangeIpDesktopDetails} value associated with + * this instance if {@link #isDeviceChangeIpDesktopDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isDeviceChangeIpDesktopDetails} + * is {@code false}. + */ + public DeviceChangeIpDesktopDetails getDeviceChangeIpDesktopDetailsValue() { + if (this._tag != Tag.DEVICE_CHANGE_IP_DESKTOP_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_CHANGE_IP_DESKTOP_DETAILS, but was Tag." + this._tag.name()); + } + return deviceChangeIpDesktopDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_CHANGE_IP_MOBILE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_CHANGE_IP_MOBILE_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceChangeIpMobileDetails() { + return this._tag == Tag.DEVICE_CHANGE_IP_MOBILE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_CHANGE_IP_MOBILE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_CHANGE_IP_MOBILE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceChangeIpMobileDetails(DeviceChangeIpMobileDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceChangeIpMobileDetails(Tag.DEVICE_CHANGE_IP_MOBILE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_CHANGE_IP_MOBILE_DETAILS}. + * + * @return The {@link DeviceChangeIpMobileDetails} value associated with + * this instance if {@link #isDeviceChangeIpMobileDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isDeviceChangeIpMobileDetails} + * is {@code false}. + */ + public DeviceChangeIpMobileDetails getDeviceChangeIpMobileDetailsValue() { + if (this._tag != Tag.DEVICE_CHANGE_IP_MOBILE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_CHANGE_IP_MOBILE_DETAILS, but was Tag." + this._tag.name()); + } + return deviceChangeIpMobileDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_CHANGE_IP_WEB_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_CHANGE_IP_WEB_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceChangeIpWebDetails() { + return this._tag == Tag.DEVICE_CHANGE_IP_WEB_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_CHANGE_IP_WEB_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_CHANGE_IP_WEB_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceChangeIpWebDetails(DeviceChangeIpWebDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceChangeIpWebDetails(Tag.DEVICE_CHANGE_IP_WEB_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#DEVICE_CHANGE_IP_WEB_DETAILS}. + * + * @return The {@link DeviceChangeIpWebDetails} value associated with this + * instance if {@link #isDeviceChangeIpWebDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceChangeIpWebDetails} is + * {@code false}. + */ + public DeviceChangeIpWebDetails getDeviceChangeIpWebDetailsValue() { + if (this._tag != Tag.DEVICE_CHANGE_IP_WEB_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_CHANGE_IP_WEB_DETAILS, but was Tag." + this._tag.name()); + } + return deviceChangeIpWebDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceDeleteOnUnlinkFailDetails() { + return this._tag == Tag.DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceDeleteOnUnlinkFailDetails(DeviceDeleteOnUnlinkFailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceDeleteOnUnlinkFailDetails(Tag.DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS}. + * + * @return The {@link DeviceDeleteOnUnlinkFailDetails} value associated with + * this instance if {@link #isDeviceDeleteOnUnlinkFailDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isDeviceDeleteOnUnlinkFailDetails} is {@code false}. + */ + public DeviceDeleteOnUnlinkFailDetails getDeviceDeleteOnUnlinkFailDetailsValue() { + if (this._tag != Tag.DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS, but was Tag." + this._tag.name()); + } + return deviceDeleteOnUnlinkFailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDeviceDeleteOnUnlinkSuccessDetails() { + return this._tag == Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceDeleteOnUnlinkSuccessDetails(DeviceDeleteOnUnlinkSuccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceDeleteOnUnlinkSuccessDetails(Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS}. + * + * @return The {@link DeviceDeleteOnUnlinkSuccessDetails} value associated + * with this instance if {@link #isDeviceDeleteOnUnlinkSuccessDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceDeleteOnUnlinkSuccessDetails} is {@code false}. + */ + public DeviceDeleteOnUnlinkSuccessDetails getDeviceDeleteOnUnlinkSuccessDetailsValue() { + if (this._tag != Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS, but was Tag." + this._tag.name()); + } + return deviceDeleteOnUnlinkSuccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_LINK_FAIL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_LINK_FAIL_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceLinkFailDetails() { + return this._tag == Tag.DEVICE_LINK_FAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_LINK_FAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_LINK_FAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceLinkFailDetails(DeviceLinkFailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceLinkFailDetails(Tag.DEVICE_LINK_FAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#DEVICE_LINK_FAIL_DETAILS}. + * + * @return The {@link DeviceLinkFailDetails} value associated with this + * instance if {@link #isDeviceLinkFailDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceLinkFailDetails} is + * {@code false}. + */ + public DeviceLinkFailDetails getDeviceLinkFailDetailsValue() { + if (this._tag != Tag.DEVICE_LINK_FAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_LINK_FAIL_DETAILS, but was Tag." + this._tag.name()); + } + return deviceLinkFailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_LINK_SUCCESS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_LINK_SUCCESS_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceLinkSuccessDetails() { + return this._tag == Tag.DEVICE_LINK_SUCCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_LINK_SUCCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_LINK_SUCCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceLinkSuccessDetails(DeviceLinkSuccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceLinkSuccessDetails(Tag.DEVICE_LINK_SUCCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#DEVICE_LINK_SUCCESS_DETAILS}. + * + * @return The {@link DeviceLinkSuccessDetails} value associated with this + * instance if {@link #isDeviceLinkSuccessDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceLinkSuccessDetails} is + * {@code false}. + */ + public DeviceLinkSuccessDetails getDeviceLinkSuccessDetailsValue() { + if (this._tag != Tag.DEVICE_LINK_SUCCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_LINK_SUCCESS_DETAILS, but was Tag." + this._tag.name()); + } + return deviceLinkSuccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_MANAGEMENT_DISABLED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_MANAGEMENT_DISABLED_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceManagementDisabledDetails() { + return this._tag == Tag.DEVICE_MANAGEMENT_DISABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_MANAGEMENT_DISABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_MANAGEMENT_DISABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceManagementDisabledDetails(DeviceManagementDisabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceManagementDisabledDetails(Tag.DEVICE_MANAGEMENT_DISABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_MANAGEMENT_DISABLED_DETAILS}. + * + * @return The {@link DeviceManagementDisabledDetails} value associated with + * this instance if {@link #isDeviceManagementDisabledDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isDeviceManagementDisabledDetails} is {@code false}. + */ + public DeviceManagementDisabledDetails getDeviceManagementDisabledDetailsValue() { + if (this._tag != Tag.DEVICE_MANAGEMENT_DISABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_MANAGEMENT_DISABLED_DETAILS, but was Tag." + this._tag.name()); + } + return deviceManagementDisabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_MANAGEMENT_ENABLED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_MANAGEMENT_ENABLED_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceManagementEnabledDetails() { + return this._tag == Tag.DEVICE_MANAGEMENT_ENABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_MANAGEMENT_ENABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_MANAGEMENT_ENABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceManagementEnabledDetails(DeviceManagementEnabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceManagementEnabledDetails(Tag.DEVICE_MANAGEMENT_ENABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_MANAGEMENT_ENABLED_DETAILS}. + * + * @return The {@link DeviceManagementEnabledDetails} value associated with + * this instance if {@link #isDeviceManagementEnabledDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isDeviceManagementEnabledDetails} is {@code false}. + */ + public DeviceManagementEnabledDetails getDeviceManagementEnabledDetailsValue() { + if (this._tag != Tag.DEVICE_MANAGEMENT_ENABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_MANAGEMENT_ENABLED_DETAILS, but was Tag." + this._tag.name()); + } + return deviceManagementEnabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDeviceSyncBackupStatusChangedDetails() { + return this._tag == Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceSyncBackupStatusChangedDetails(DeviceSyncBackupStatusChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceSyncBackupStatusChangedDetails(Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS}. + * + * @return The {@link DeviceSyncBackupStatusChangedDetails} value associated + * with this instance if {@link #isDeviceSyncBackupStatusChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceSyncBackupStatusChangedDetails} is {@code false}. + */ + public DeviceSyncBackupStatusChangedDetails getDeviceSyncBackupStatusChangedDetailsValue() { + if (this._tag != Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return deviceSyncBackupStatusChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_UNLINK_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_UNLINK_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceUnlinkDetails() { + return this._tag == Tag.DEVICE_UNLINK_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_UNLINK_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_UNLINK_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceUnlinkDetails(DeviceUnlinkDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceUnlinkDetails(Tag.DEVICE_UNLINK_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#DEVICE_UNLINK_DETAILS}. + * + * @return The {@link DeviceUnlinkDetails} value associated with this + * instance if {@link #isDeviceUnlinkDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceUnlinkDetails} is + * {@code false}. + */ + public DeviceUnlinkDetails getDeviceUnlinkDetailsValue() { + if (this._tag != Tag.DEVICE_UNLINK_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_UNLINK_DETAILS, but was Tag." + this._tag.name()); + } + return deviceUnlinkDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED_DETAILS}, {@code false} otherwise. + */ + public boolean isDropboxPasswordsExportedDetails() { + return this._tag == Tag.DROPBOX_PASSWORDS_EXPORTED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DROPBOX_PASSWORDS_EXPORTED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails dropboxPasswordsExportedDetails(DropboxPasswordsExportedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDropboxPasswordsExportedDetails(Tag.DROPBOX_PASSWORDS_EXPORTED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED_DETAILS}. + * + * @return The {@link DropboxPasswordsExportedDetails} value associated with + * this instance if {@link #isDropboxPasswordsExportedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isDropboxPasswordsExportedDetails} is {@code false}. + */ + public DropboxPasswordsExportedDetails getDropboxPasswordsExportedDetailsValue() { + if (this._tag != Tag.DROPBOX_PASSWORDS_EXPORTED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DROPBOX_PASSWORDS_EXPORTED_DETAILS, but was Tag." + this._tag.name()); + } + return dropboxPasswordsExportedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDropboxPasswordsNewDeviceEnrolledDetails() { + return this._tag == Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails dropboxPasswordsNewDeviceEnrolledDetails(DropboxPasswordsNewDeviceEnrolledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDropboxPasswordsNewDeviceEnrolledDetails(Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS}. + * + * @return The {@link DropboxPasswordsNewDeviceEnrolledDetails} value + * associated with this instance if {@link + * #isDropboxPasswordsNewDeviceEnrolledDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDropboxPasswordsNewDeviceEnrolledDetails} is {@code false}. + */ + public DropboxPasswordsNewDeviceEnrolledDetails getDropboxPasswordsNewDeviceEnrolledDetailsValue() { + if (this._tag != Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS, but was Tag." + this._tag.name()); + } + return dropboxPasswordsNewDeviceEnrolledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_REFRESH_AUTH_TOKEN_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_REFRESH_AUTH_TOKEN_DETAILS}, {@code false} otherwise. + */ + public boolean isEmmRefreshAuthTokenDetails() { + return this._tag == Tag.EMM_REFRESH_AUTH_TOKEN_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMM_REFRESH_AUTH_TOKEN_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMM_REFRESH_AUTH_TOKEN_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emmRefreshAuthTokenDetails(EmmRefreshAuthTokenDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmmRefreshAuthTokenDetails(Tag.EMM_REFRESH_AUTH_TOKEN_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EMM_REFRESH_AUTH_TOKEN_DETAILS}. + * + * @return The {@link EmmRefreshAuthTokenDetails} value associated with this + * instance if {@link #isEmmRefreshAuthTokenDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmRefreshAuthTokenDetails} + * is {@code false}. + */ + public EmmRefreshAuthTokenDetails getEmmRefreshAuthTokenDetailsValue() { + if (this._tag != Tag.EMM_REFRESH_AUTH_TOKEN_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_REFRESH_AUTH_TOKEN_DETAILS, but was Tag." + this._tag.name()); + } + return emmRefreshAuthTokenDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS}, {@code + * false} otherwise. + */ + public boolean isExternalDriveBackupEligibilityStatusCheckedDetails() { + return this._tag == Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails externalDriveBackupEligibilityStatusCheckedDetails(ExternalDriveBackupEligibilityStatusCheckedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExternalDriveBackupEligibilityStatusCheckedDetails(Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS}. + * + * @return The {@link ExternalDriveBackupEligibilityStatusCheckedDetails} + * value associated with this instance if {@link + * #isExternalDriveBackupEligibilityStatusCheckedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isExternalDriveBackupEligibilityStatusCheckedDetails} is {@code + * false}. + */ + public ExternalDriveBackupEligibilityStatusCheckedDetails getExternalDriveBackupEligibilityStatusCheckedDetailsValue() { + if (this._tag != Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS, but was Tag." + this._tag.name()); + } + return externalDriveBackupEligibilityStatusCheckedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isExternalDriveBackupStatusChangedDetails() { + return this._tag == Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails externalDriveBackupStatusChangedDetails(ExternalDriveBackupStatusChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExternalDriveBackupStatusChangedDetails(Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS}. + * + * @return The {@link ExternalDriveBackupStatusChangedDetails} value + * associated with this instance if {@link + * #isExternalDriveBackupStatusChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isExternalDriveBackupStatusChangedDetails} is {@code false}. + */ + public ExternalDriveBackupStatusChangedDetails getExternalDriveBackupStatusChangedDetailsValue() { + if (this._tag != Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return externalDriveBackupStatusChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isAccountCaptureChangeAvailabilityDetails() { + return this._tag == Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails accountCaptureChangeAvailabilityDetails(AccountCaptureChangeAvailabilityDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAccountCaptureChangeAvailabilityDetails(Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS}. + * + * @return The {@link AccountCaptureChangeAvailabilityDetails} value + * associated with this instance if {@link + * #isAccountCaptureChangeAvailabilityDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureChangeAvailabilityDetails} is {@code false}. + */ + public AccountCaptureChangeAvailabilityDetails getAccountCaptureChangeAvailabilityDetailsValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS, but was Tag." + this._tag.name()); + } + return accountCaptureChangeAvailabilityDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isAccountCaptureMigrateAccountDetails() { + return this._tag == Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails accountCaptureMigrateAccountDetails(AccountCaptureMigrateAccountDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAccountCaptureMigrateAccountDetails(Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS}. + * + * @return The {@link AccountCaptureMigrateAccountDetails} value associated + * with this instance if {@link #isAccountCaptureMigrateAccountDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureMigrateAccountDetails} is {@code false}. + */ + public AccountCaptureMigrateAccountDetails getAccountCaptureMigrateAccountDetailsValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS, but was Tag." + this._tag.name()); + } + return accountCaptureMigrateAccountDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isAccountCaptureNotificationEmailsSentDetails() { + return this._tag == Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails accountCaptureNotificationEmailsSentDetails(AccountCaptureNotificationEmailsSentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAccountCaptureNotificationEmailsSentDetails(Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS}. + * + * @return The {@link AccountCaptureNotificationEmailsSentDetails} value + * associated with this instance if {@link + * #isAccountCaptureNotificationEmailsSentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureNotificationEmailsSentDetails} is {@code false}. + */ + public AccountCaptureNotificationEmailsSentDetails getAccountCaptureNotificationEmailsSentDetailsValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS, but was Tag." + this._tag.name()); + } + return accountCaptureNotificationEmailsSentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isAccountCaptureRelinquishAccountDetails() { + return this._tag == Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails accountCaptureRelinquishAccountDetails(AccountCaptureRelinquishAccountDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAccountCaptureRelinquishAccountDetails(Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS}. + * + * @return The {@link AccountCaptureRelinquishAccountDetails} value + * associated with this instance if {@link + * #isAccountCaptureRelinquishAccountDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureRelinquishAccountDetails} is {@code false}. + */ + public AccountCaptureRelinquishAccountDetails getAccountCaptureRelinquishAccountDetailsValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS, but was Tag." + this._tag.name()); + } + return accountCaptureRelinquishAccountDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DISABLED_DOMAIN_INVITES_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DISABLED_DOMAIN_INVITES_DETAILS}, {@code false} otherwise. + */ + public boolean isDisabledDomainInvitesDetails() { + return this._tag == Tag.DISABLED_DOMAIN_INVITES_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DISABLED_DOMAIN_INVITES_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DISABLED_DOMAIN_INVITES_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails disabledDomainInvitesDetails(DisabledDomainInvitesDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDisabledDomainInvitesDetails(Tag.DISABLED_DOMAIN_INVITES_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DISABLED_DOMAIN_INVITES_DETAILS}. + * + * @return The {@link DisabledDomainInvitesDetails} value associated with + * this instance if {@link #isDisabledDomainInvitesDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isDisabledDomainInvitesDetails} + * is {@code false}. + */ + public DisabledDomainInvitesDetails getDisabledDomainInvitesDetailsValue() { + if (this._tag != Tag.DISABLED_DOMAIN_INVITES_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DISABLED_DOMAIN_INVITES_DETAILS, but was Tag." + this._tag.name()); + } + return disabledDomainInvitesDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS}, {@code + * false} otherwise. + */ + public boolean isDomainInvitesApproveRequestToJoinTeamDetails() { + return this._tag == Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainInvitesApproveRequestToJoinTeamDetails(DomainInvitesApproveRequestToJoinTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainInvitesApproveRequestToJoinTeamDetails(Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + * @return The {@link DomainInvitesApproveRequestToJoinTeamDetails} value + * associated with this instance if {@link + * #isDomainInvitesApproveRequestToJoinTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesApproveRequestToJoinTeamDetails} is {@code false}. + */ + public DomainInvitesApproveRequestToJoinTeamDetails getDomainInvitesApproveRequestToJoinTeamDetailsValue() { + if (this._tag != Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return domainInvitesApproveRequestToJoinTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS}, {@code + * false} otherwise. + */ + public boolean isDomainInvitesDeclineRequestToJoinTeamDetails() { + return this._tag == Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainInvitesDeclineRequestToJoinTeamDetails(DomainInvitesDeclineRequestToJoinTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainInvitesDeclineRequestToJoinTeamDetails(Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + * @return The {@link DomainInvitesDeclineRequestToJoinTeamDetails} value + * associated with this instance if {@link + * #isDomainInvitesDeclineRequestToJoinTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesDeclineRequestToJoinTeamDetails} is {@code false}. + */ + public DomainInvitesDeclineRequestToJoinTeamDetails getDomainInvitesDeclineRequestToJoinTeamDetailsValue() { + if (this._tag != Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return domainInvitesDeclineRequestToJoinTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDomainInvitesEmailExistingUsersDetails() { + return this._tag == Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainInvitesEmailExistingUsersDetails(DomainInvitesEmailExistingUsersDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainInvitesEmailExistingUsersDetails(Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS}. + * + * @return The {@link DomainInvitesEmailExistingUsersDetails} value + * associated with this instance if {@link + * #isDomainInvitesEmailExistingUsersDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesEmailExistingUsersDetails} is {@code false}. + */ + public DomainInvitesEmailExistingUsersDetails getDomainInvitesEmailExistingUsersDetailsValue() { + if (this._tag != Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS, but was Tag." + this._tag.name()); + } + return domainInvitesEmailExistingUsersDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDomainInvitesRequestToJoinTeamDetails() { + return this._tag == Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainInvitesRequestToJoinTeamDetails(DomainInvitesRequestToJoinTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainInvitesRequestToJoinTeamDetails(Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS}. + * + * @return The {@link DomainInvitesRequestToJoinTeamDetails} value + * associated with this instance if {@link + * #isDomainInvitesRequestToJoinTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesRequestToJoinTeamDetails} is {@code false}. + */ + public DomainInvitesRequestToJoinTeamDetails getDomainInvitesRequestToJoinTeamDetailsValue() { + if (this._tag != Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return domainInvitesRequestToJoinTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS}, {@code + * false} otherwise. + */ + public boolean isDomainInvitesSetInviteNewUserPrefToNoDetails() { + return this._tag == Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainInvitesSetInviteNewUserPrefToNoDetails(DomainInvitesSetInviteNewUserPrefToNoDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainInvitesSetInviteNewUserPrefToNoDetails(Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS}. + * + * @return The {@link DomainInvitesSetInviteNewUserPrefToNoDetails} value + * associated with this instance if {@link + * #isDomainInvitesSetInviteNewUserPrefToNoDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesSetInviteNewUserPrefToNoDetails} is {@code false}. + */ + public DomainInvitesSetInviteNewUserPrefToNoDetails getDomainInvitesSetInviteNewUserPrefToNoDetailsValue() { + if (this._tag != Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS, but was Tag." + this._tag.name()); + } + return domainInvitesSetInviteNewUserPrefToNoDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS}, {@code + * false} otherwise. + */ + public boolean isDomainInvitesSetInviteNewUserPrefToYesDetails() { + return this._tag == Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainInvitesSetInviteNewUserPrefToYesDetails(DomainInvitesSetInviteNewUserPrefToYesDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainInvitesSetInviteNewUserPrefToYesDetails(Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS}. + * + * @return The {@link DomainInvitesSetInviteNewUserPrefToYesDetails} value + * associated with this instance if {@link + * #isDomainInvitesSetInviteNewUserPrefToYesDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesSetInviteNewUserPrefToYesDetails} is {@code false}. + */ + public DomainInvitesSetInviteNewUserPrefToYesDetails getDomainInvitesSetInviteNewUserPrefToYesDetailsValue() { + if (this._tag != Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS, but was Tag." + this._tag.name()); + } + return domainInvitesSetInviteNewUserPrefToYesDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDomainVerificationAddDomainFailDetails() { + return this._tag == Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainVerificationAddDomainFailDetails(DomainVerificationAddDomainFailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainVerificationAddDomainFailDetails(Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS}. + * + * @return The {@link DomainVerificationAddDomainFailDetails} value + * associated with this instance if {@link + * #isDomainVerificationAddDomainFailDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainVerificationAddDomainFailDetails} is {@code false}. + */ + public DomainVerificationAddDomainFailDetails getDomainVerificationAddDomainFailDetailsValue() { + if (this._tag != Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS, but was Tag." + this._tag.name()); + } + return domainVerificationAddDomainFailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDomainVerificationAddDomainSuccessDetails() { + return this._tag == Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainVerificationAddDomainSuccessDetails(DomainVerificationAddDomainSuccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainVerificationAddDomainSuccessDetails(Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS}. + * + * @return The {@link DomainVerificationAddDomainSuccessDetails} value + * associated with this instance if {@link + * #isDomainVerificationAddDomainSuccessDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainVerificationAddDomainSuccessDetails} is {@code false}. + */ + public DomainVerificationAddDomainSuccessDetails getDomainVerificationAddDomainSuccessDetailsValue() { + if (this._tag != Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS, but was Tag." + this._tag.name()); + } + return domainVerificationAddDomainSuccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDomainVerificationRemoveDomainDetails() { + return this._tag == Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails domainVerificationRemoveDomainDetails(DomainVerificationRemoveDomainDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDomainVerificationRemoveDomainDetails(Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS}. + * + * @return The {@link DomainVerificationRemoveDomainDetails} value + * associated with this instance if {@link + * #isDomainVerificationRemoveDomainDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainVerificationRemoveDomainDetails} is {@code false}. + */ + public DomainVerificationRemoveDomainDetails getDomainVerificationRemoveDomainDetailsValue() { + if (this._tag != Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS, but was Tag." + this._tag.name()); + } + return domainVerificationRemoveDomainDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENABLED_DOMAIN_INVITES_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENABLED_DOMAIN_INVITES_DETAILS}, {@code false} otherwise. + */ + public boolean isEnabledDomainInvitesDetails() { + return this._tag == Tag.ENABLED_DOMAIN_INVITES_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ENABLED_DOMAIN_INVITES_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ENABLED_DOMAIN_INVITES_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails enabledDomainInvitesDetails(EnabledDomainInvitesDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEnabledDomainInvitesDetails(Tag.ENABLED_DOMAIN_INVITES_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ENABLED_DOMAIN_INVITES_DETAILS}. + * + * @return The {@link EnabledDomainInvitesDetails} value associated with + * this instance if {@link #isEnabledDomainInvitesDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isEnabledDomainInvitesDetails} + * is {@code false}. + */ + public EnabledDomainInvitesDetails getEnabledDomainInvitesDetailsValue() { + if (this._tag != Tag.ENABLED_DOMAIN_INVITES_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ENABLED_DOMAIN_INVITES_DETAILS, but was Tag." + this._tag.name()); + } + return enabledDomainInvitesDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamEncryptionKeyCancelKeyDeletionDetails() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamEncryptionKeyCancelKeyDeletionDetails(TeamEncryptionKeyCancelKeyDeletionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamEncryptionKeyCancelKeyDeletionDetails(Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS}. + * + * @return The {@link TeamEncryptionKeyCancelKeyDeletionDetails} value + * associated with this instance if {@link + * #isTeamEncryptionKeyCancelKeyDeletionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyCancelKeyDeletionDetails} is {@code false}. + */ + public TeamEncryptionKeyCancelKeyDeletionDetails getTeamEncryptionKeyCancelKeyDeletionDetailsValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyCancelKeyDeletionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyCreateKeyDetails() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamEncryptionKeyCreateKeyDetails(TeamEncryptionKeyCreateKeyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamEncryptionKeyCreateKeyDetails(Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS}. + * + * @return The {@link TeamEncryptionKeyCreateKeyDetails} value associated + * with this instance if {@link #isTeamEncryptionKeyCreateKeyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyCreateKeyDetails} is {@code false}. + */ + public TeamEncryptionKeyCreateKeyDetails getTeamEncryptionKeyCreateKeyDetailsValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyCreateKeyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyDeleteKeyDetails() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamEncryptionKeyDeleteKeyDetails(TeamEncryptionKeyDeleteKeyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamEncryptionKeyDeleteKeyDetails(Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS}. + * + * @return The {@link TeamEncryptionKeyDeleteKeyDetails} value associated + * with this instance if {@link #isTeamEncryptionKeyDeleteKeyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyDeleteKeyDetails} is {@code false}. + */ + public TeamEncryptionKeyDeleteKeyDetails getTeamEncryptionKeyDeleteKeyDetailsValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyDeleteKeyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamEncryptionKeyDisableKeyDetails() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamEncryptionKeyDisableKeyDetails(TeamEncryptionKeyDisableKeyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamEncryptionKeyDisableKeyDetails(Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS}. + * + * @return The {@link TeamEncryptionKeyDisableKeyDetails} value associated + * with this instance if {@link #isTeamEncryptionKeyDisableKeyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyDisableKeyDetails} is {@code false}. + */ + public TeamEncryptionKeyDisableKeyDetails getTeamEncryptionKeyDisableKeyDetailsValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyDisableKeyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyEnableKeyDetails() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamEncryptionKeyEnableKeyDetails(TeamEncryptionKeyEnableKeyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamEncryptionKeyEnableKeyDetails(Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS}. + * + * @return The {@link TeamEncryptionKeyEnableKeyDetails} value associated + * with this instance if {@link #isTeamEncryptionKeyEnableKeyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyEnableKeyDetails} is {@code false}. + */ + public TeamEncryptionKeyEnableKeyDetails getTeamEncryptionKeyEnableKeyDetailsValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyEnableKeyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyRotateKeyDetails() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamEncryptionKeyRotateKeyDetails(TeamEncryptionKeyRotateKeyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamEncryptionKeyRotateKeyDetails(Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS}. + * + * @return The {@link TeamEncryptionKeyRotateKeyDetails} value associated + * with this instance if {@link #isTeamEncryptionKeyRotateKeyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyRotateKeyDetails} is {@code false}. + */ + public TeamEncryptionKeyRotateKeyDetails getTeamEncryptionKeyRotateKeyDetailsValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyRotateKeyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamEncryptionKeyScheduleKeyDeletionDetails() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamEncryptionKeyScheduleKeyDeletionDetails(TeamEncryptionKeyScheduleKeyDeletionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamEncryptionKeyScheduleKeyDeletionDetails(Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS}. + * + * @return The {@link TeamEncryptionKeyScheduleKeyDeletionDetails} value + * associated with this instance if {@link + * #isTeamEncryptionKeyScheduleKeyDeletionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyScheduleKeyDeletionDetails} is {@code false}. + */ + public TeamEncryptionKeyScheduleKeyDeletionDetails getTeamEncryptionKeyScheduleKeyDeletionDetailsValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyScheduleKeyDeletionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APPLY_NAMING_CONVENTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APPLY_NAMING_CONVENTION_DETAILS}, {@code false} otherwise. + */ + public boolean isApplyNamingConventionDetails() { + return this._tag == Tag.APPLY_NAMING_CONVENTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#APPLY_NAMING_CONVENTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#APPLY_NAMING_CONVENTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails applyNamingConventionDetails(ApplyNamingConventionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndApplyNamingConventionDetails(Tag.APPLY_NAMING_CONVENTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#APPLY_NAMING_CONVENTION_DETAILS}. + * + * @return The {@link ApplyNamingConventionDetails} value associated with + * this instance if {@link #isApplyNamingConventionDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isApplyNamingConventionDetails} + * is {@code false}. + */ + public ApplyNamingConventionDetails getApplyNamingConventionDetailsValue() { + if (this._tag != Tag.APPLY_NAMING_CONVENTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.APPLY_NAMING_CONVENTION_DETAILS, but was Tag." + this._tag.name()); + } + return applyNamingConventionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CREATE_FOLDER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CREATE_FOLDER_DETAILS}, {@code false} otherwise. + */ + public boolean isCreateFolderDetails() { + return this._tag == Tag.CREATE_FOLDER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CREATE_FOLDER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CREATE_FOLDER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails createFolderDetails(CreateFolderDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndCreateFolderDetails(Tag.CREATE_FOLDER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#CREATE_FOLDER_DETAILS}. + * + * @return The {@link CreateFolderDetails} value associated with this + * instance if {@link #isCreateFolderDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isCreateFolderDetails} is + * {@code false}. + */ + public CreateFolderDetails getCreateFolderDetailsValue() { + if (this._tag != Tag.CREATE_FOLDER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CREATE_FOLDER_DETAILS, but was Tag." + this._tag.name()); + } + return createFolderDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_ADD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_ADD_DETAILS}, {@code false} otherwise. + */ + public boolean isFileAddDetails() { + return this._tag == Tag.FILE_ADD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_ADD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_ADD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileAddDetails(FileAddDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileAddDetails(Tag.FILE_ADD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_ADD_DETAILS}. + * + * @return The {@link FileAddDetails} value associated with this instance if + * {@link #isFileAddDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileAddDetails} is {@code + * false}. + */ + public FileAddDetails getFileAddDetailsValue() { + if (this._tag != Tag.FILE_ADD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ADD_DETAILS, but was Tag." + this._tag.name()); + } + return fileAddDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_ADD_FROM_AUTOMATION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_ADD_FROM_AUTOMATION_DETAILS}, {@code false} otherwise. + */ + public boolean isFileAddFromAutomationDetails() { + return this._tag == Tag.FILE_ADD_FROM_AUTOMATION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_ADD_FROM_AUTOMATION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_ADD_FROM_AUTOMATION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileAddFromAutomationDetails(FileAddFromAutomationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileAddFromAutomationDetails(Tag.FILE_ADD_FROM_AUTOMATION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_ADD_FROM_AUTOMATION_DETAILS}. + * + * @return The {@link FileAddFromAutomationDetails} value associated with + * this instance if {@link #isFileAddFromAutomationDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileAddFromAutomationDetails} + * is {@code false}. + */ + public FileAddFromAutomationDetails getFileAddFromAutomationDetailsValue() { + if (this._tag != Tag.FILE_ADD_FROM_AUTOMATION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ADD_FROM_AUTOMATION_DETAILS, but was Tag." + this._tag.name()); + } + return fileAddFromAutomationDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_COPY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_COPY_DETAILS}, {@code false} otherwise. + */ + public boolean isFileCopyDetails() { + return this._tag == Tag.FILE_COPY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_COPY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_COPY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileCopyDetails(FileCopyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileCopyDetails(Tag.FILE_COPY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_COPY_DETAILS}. + * + * @return The {@link FileCopyDetails} value associated with this instance + * if {@link #isFileCopyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileCopyDetails} is {@code + * false}. + */ + public FileCopyDetails getFileCopyDetailsValue() { + if (this._tag != Tag.FILE_COPY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_COPY_DETAILS, but was Tag." + this._tag.name()); + } + return fileCopyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileDeleteDetails() { + return this._tag == Tag.FILE_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileDeleteDetails(FileDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileDeleteDetails(Tag.FILE_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_DELETE_DETAILS}. + * + * @return The {@link FileDeleteDetails} value associated with this instance + * if {@link #isFileDeleteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileDeleteDetails} is {@code + * false}. + */ + public FileDeleteDetails getFileDeleteDetailsValue() { + if (this._tag != Tag.FILE_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return fileDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_DOWNLOAD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_DOWNLOAD_DETAILS}, {@code false} otherwise. + */ + public boolean isFileDownloadDetails() { + return this._tag == Tag.FILE_DOWNLOAD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_DOWNLOAD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_DOWNLOAD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileDownloadDetails(FileDownloadDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileDownloadDetails(Tag.FILE_DOWNLOAD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_DOWNLOAD_DETAILS}. + * + * @return The {@link FileDownloadDetails} value associated with this + * instance if {@link #isFileDownloadDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileDownloadDetails} is + * {@code false}. + */ + public FileDownloadDetails getFileDownloadDetailsValue() { + if (this._tag != Tag.FILE_DOWNLOAD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_DOWNLOAD_DETAILS, but was Tag." + this._tag.name()); + } + return fileDownloadDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_EDIT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_EDIT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileEditDetails() { + return this._tag == Tag.FILE_EDIT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_EDIT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_EDIT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileEditDetails(FileEditDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileEditDetails(Tag.FILE_EDIT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_EDIT_DETAILS}. + * + * @return The {@link FileEditDetails} value associated with this instance + * if {@link #isFileEditDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileEditDetails} is {@code + * false}. + */ + public FileEditDetails getFileEditDetailsValue() { + if (this._tag != Tag.FILE_EDIT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_EDIT_DETAILS, but was Tag." + this._tag.name()); + } + return fileEditDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_GET_COPY_REFERENCE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_GET_COPY_REFERENCE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileGetCopyReferenceDetails() { + return this._tag == Tag.FILE_GET_COPY_REFERENCE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_GET_COPY_REFERENCE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_GET_COPY_REFERENCE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileGetCopyReferenceDetails(FileGetCopyReferenceDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileGetCopyReferenceDetails(Tag.FILE_GET_COPY_REFERENCE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_GET_COPY_REFERENCE_DETAILS}. + * + * @return The {@link FileGetCopyReferenceDetails} value associated with + * this instance if {@link #isFileGetCopyReferenceDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileGetCopyReferenceDetails} + * is {@code false}. + */ + public FileGetCopyReferenceDetails getFileGetCopyReferenceDetailsValue() { + if (this._tag != Tag.FILE_GET_COPY_REFERENCE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_GET_COPY_REFERENCE_DETAILS, but was Tag." + this._tag.name()); + } + return fileGetCopyReferenceDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isFileLockingLockStatusChangedDetails() { + return this._tag == Tag.FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileLockingLockStatusChangedDetails(FileLockingLockStatusChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileLockingLockStatusChangedDetails(Tag.FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS}. + * + * @return The {@link FileLockingLockStatusChangedDetails} value associated + * with this instance if {@link #isFileLockingLockStatusChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileLockingLockStatusChangedDetails} is {@code false}. + */ + public FileLockingLockStatusChangedDetails getFileLockingLockStatusChangedDetailsValue() { + if (this._tag != Tag.FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return fileLockingLockStatusChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_MOVE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_MOVE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileMoveDetails() { + return this._tag == Tag.FILE_MOVE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_MOVE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_MOVE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileMoveDetails(FileMoveDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileMoveDetails(Tag.FILE_MOVE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_MOVE_DETAILS}. + * + * @return The {@link FileMoveDetails} value associated with this instance + * if {@link #isFileMoveDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileMoveDetails} is {@code + * false}. + */ + public FileMoveDetails getFileMoveDetailsValue() { + if (this._tag != Tag.FILE_MOVE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_MOVE_DETAILS, but was Tag." + this._tag.name()); + } + return fileMoveDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_PERMANENTLY_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_PERMANENTLY_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isFilePermanentlyDeleteDetails() { + return this._tag == Tag.FILE_PERMANENTLY_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_PERMANENTLY_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_PERMANENTLY_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails filePermanentlyDeleteDetails(FilePermanentlyDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFilePermanentlyDeleteDetails(Tag.FILE_PERMANENTLY_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_PERMANENTLY_DELETE_DETAILS}. + * + * @return The {@link FilePermanentlyDeleteDetails} value associated with + * this instance if {@link #isFilePermanentlyDeleteDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFilePermanentlyDeleteDetails} + * is {@code false}. + */ + public FilePermanentlyDeleteDetails getFilePermanentlyDeleteDetailsValue() { + if (this._tag != Tag.FILE_PERMANENTLY_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_PERMANENTLY_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return filePermanentlyDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_PREVIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_PREVIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isFilePreviewDetails() { + return this._tag == Tag.FILE_PREVIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_PREVIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_PREVIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails filePreviewDetails(FilePreviewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFilePreviewDetails(Tag.FILE_PREVIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_PREVIEW_DETAILS}. + * + * @return The {@link FilePreviewDetails} value associated with this + * instance if {@link #isFilePreviewDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFilePreviewDetails} is {@code + * false}. + */ + public FilePreviewDetails getFilePreviewDetailsValue() { + if (this._tag != Tag.FILE_PREVIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_PREVIEW_DETAILS, but was Tag." + this._tag.name()); + } + return filePreviewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_RENAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_RENAME_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRenameDetails() { + return this._tag == Tag.FILE_RENAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_RENAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_RENAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRenameDetails(FileRenameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRenameDetails(Tag.FILE_RENAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_RENAME_DETAILS}. + * + * @return The {@link FileRenameDetails} value associated with this instance + * if {@link #isFileRenameDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRenameDetails} is {@code + * false}. + */ + public FileRenameDetails getFileRenameDetailsValue() { + if (this._tag != Tag.FILE_RENAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_RENAME_DETAILS, but was Tag." + this._tag.name()); + } + return fileRenameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_RESTORE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_RESTORE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRestoreDetails() { + return this._tag == Tag.FILE_RESTORE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_RESTORE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_RESTORE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRestoreDetails(FileRestoreDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRestoreDetails(Tag.FILE_RESTORE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_RESTORE_DETAILS}. + * + * @return The {@link FileRestoreDetails} value associated with this + * instance if {@link #isFileRestoreDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRestoreDetails} is {@code + * false}. + */ + public FileRestoreDetails getFileRestoreDetailsValue() { + if (this._tag != Tag.FILE_RESTORE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_RESTORE_DETAILS, but was Tag." + this._tag.name()); + } + return fileRestoreDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REVERT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REVERT_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRevertDetails() { + return this._tag == Tag.FILE_REVERT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REVERT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REVERT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRevertDetails(FileRevertDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRevertDetails(Tag.FILE_REVERT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_REVERT_DETAILS}. + * + * @return The {@link FileRevertDetails} value associated with this instance + * if {@link #isFileRevertDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRevertDetails} is {@code + * false}. + */ + public FileRevertDetails getFileRevertDetailsValue() { + if (this._tag != Tag.FILE_REVERT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REVERT_DETAILS, but was Tag." + this._tag.name()); + } + return fileRevertDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_ROLLBACK_CHANGES_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_ROLLBACK_CHANGES_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRollbackChangesDetails() { + return this._tag == Tag.FILE_ROLLBACK_CHANGES_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_ROLLBACK_CHANGES_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_ROLLBACK_CHANGES_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRollbackChangesDetails(FileRollbackChangesDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRollbackChangesDetails(Tag.FILE_ROLLBACK_CHANGES_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_ROLLBACK_CHANGES_DETAILS}. + * + * @return The {@link FileRollbackChangesDetails} value associated with this + * instance if {@link #isFileRollbackChangesDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRollbackChangesDetails} + * is {@code false}. + */ + public FileRollbackChangesDetails getFileRollbackChangesDetailsValue() { + if (this._tag != Tag.FILE_ROLLBACK_CHANGES_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ROLLBACK_CHANGES_DETAILS, but was Tag." + this._tag.name()); + } + return fileRollbackChangesDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_SAVE_COPY_REFERENCE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_SAVE_COPY_REFERENCE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileSaveCopyReferenceDetails() { + return this._tag == Tag.FILE_SAVE_COPY_REFERENCE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_SAVE_COPY_REFERENCE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_SAVE_COPY_REFERENCE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileSaveCopyReferenceDetails(FileSaveCopyReferenceDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileSaveCopyReferenceDetails(Tag.FILE_SAVE_COPY_REFERENCE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_SAVE_COPY_REFERENCE_DETAILS}. + * + * @return The {@link FileSaveCopyReferenceDetails} value associated with + * this instance if {@link #isFileSaveCopyReferenceDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileSaveCopyReferenceDetails} + * is {@code false}. + */ + public FileSaveCopyReferenceDetails getFileSaveCopyReferenceDetailsValue() { + if (this._tag != Tag.FILE_SAVE_COPY_REFERENCE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_SAVE_COPY_REFERENCE_DETAILS, but was Tag." + this._tag.name()); + } + return fileSaveCopyReferenceDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isFolderOverviewDescriptionChangedDetails() { + return this._tag == Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails folderOverviewDescriptionChangedDetails(FolderOverviewDescriptionChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFolderOverviewDescriptionChangedDetails(Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS}. + * + * @return The {@link FolderOverviewDescriptionChangedDetails} value + * associated with this instance if {@link + * #isFolderOverviewDescriptionChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFolderOverviewDescriptionChangedDetails} is {@code false}. + */ + public FolderOverviewDescriptionChangedDetails getFolderOverviewDescriptionChangedDetailsValue() { + if (this._tag != Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return folderOverviewDescriptionChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED_DETAILS}, {@code false} otherwise. + */ + public boolean isFolderOverviewItemPinnedDetails() { + return this._tag == Tag.FOLDER_OVERVIEW_ITEM_PINNED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FOLDER_OVERVIEW_ITEM_PINNED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails folderOverviewItemPinnedDetails(FolderOverviewItemPinnedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFolderOverviewItemPinnedDetails(Tag.FOLDER_OVERVIEW_ITEM_PINNED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED_DETAILS}. + * + * @return The {@link FolderOverviewItemPinnedDetails} value associated with + * this instance if {@link #isFolderOverviewItemPinnedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isFolderOverviewItemPinnedDetails} is {@code false}. + */ + public FolderOverviewItemPinnedDetails getFolderOverviewItemPinnedDetailsValue() { + if (this._tag != Tag.FOLDER_OVERVIEW_ITEM_PINNED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_OVERVIEW_ITEM_PINNED_DETAILS, but was Tag." + this._tag.name()); + } + return folderOverviewItemPinnedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS}, {@code false} otherwise. + */ + public boolean isFolderOverviewItemUnpinnedDetails() { + return this._tag == Tag.FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails folderOverviewItemUnpinnedDetails(FolderOverviewItemUnpinnedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFolderOverviewItemUnpinnedDetails(Tag.FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS}. + * + * @return The {@link FolderOverviewItemUnpinnedDetails} value associated + * with this instance if {@link #isFolderOverviewItemUnpinnedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFolderOverviewItemUnpinnedDetails} is {@code false}. + */ + public FolderOverviewItemUnpinnedDetails getFolderOverviewItemUnpinnedDetailsValue() { + if (this._tag != Tag.FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS, but was Tag." + this._tag.name()); + } + return folderOverviewItemUnpinnedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OBJECT_LABEL_ADDED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OBJECT_LABEL_ADDED_DETAILS}, {@code false} otherwise. + */ + public boolean isObjectLabelAddedDetails() { + return this._tag == Tag.OBJECT_LABEL_ADDED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#OBJECT_LABEL_ADDED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#OBJECT_LABEL_ADDED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails objectLabelAddedDetails(ObjectLabelAddedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndObjectLabelAddedDetails(Tag.OBJECT_LABEL_ADDED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#OBJECT_LABEL_ADDED_DETAILS}. + * + * @return The {@link ObjectLabelAddedDetails} value associated with this + * instance if {@link #isObjectLabelAddedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isObjectLabelAddedDetails} is + * {@code false}. + */ + public ObjectLabelAddedDetails getObjectLabelAddedDetailsValue() { + if (this._tag != Tag.OBJECT_LABEL_ADDED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.OBJECT_LABEL_ADDED_DETAILS, but was Tag." + this._tag.name()); + } + return objectLabelAddedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OBJECT_LABEL_REMOVED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OBJECT_LABEL_REMOVED_DETAILS}, {@code false} otherwise. + */ + public boolean isObjectLabelRemovedDetails() { + return this._tag == Tag.OBJECT_LABEL_REMOVED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#OBJECT_LABEL_REMOVED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#OBJECT_LABEL_REMOVED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails objectLabelRemovedDetails(ObjectLabelRemovedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndObjectLabelRemovedDetails(Tag.OBJECT_LABEL_REMOVED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#OBJECT_LABEL_REMOVED_DETAILS}. + * + * @return The {@link ObjectLabelRemovedDetails} value associated with this + * instance if {@link #isObjectLabelRemovedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isObjectLabelRemovedDetails} is + * {@code false}. + */ + public ObjectLabelRemovedDetails getObjectLabelRemovedDetailsValue() { + if (this._tag != Tag.OBJECT_LABEL_REMOVED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.OBJECT_LABEL_REMOVED_DETAILS, but was Tag." + this._tag.name()); + } + return objectLabelRemovedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE_DETAILS}, {@code false} otherwise. + */ + public boolean isObjectLabelUpdatedValueDetails() { + return this._tag == Tag.OBJECT_LABEL_UPDATED_VALUE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#OBJECT_LABEL_UPDATED_VALUE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails objectLabelUpdatedValueDetails(ObjectLabelUpdatedValueDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndObjectLabelUpdatedValueDetails(Tag.OBJECT_LABEL_UPDATED_VALUE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE_DETAILS}. + * + * @return The {@link ObjectLabelUpdatedValueDetails} value associated with + * this instance if {@link #isObjectLabelUpdatedValueDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isObjectLabelUpdatedValueDetails} is {@code false}. + */ + public ObjectLabelUpdatedValueDetails getObjectLabelUpdatedValueDetailsValue() { + if (this._tag != Tag.OBJECT_LABEL_UPDATED_VALUE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.OBJECT_LABEL_UPDATED_VALUE_DETAILS, but was Tag." + this._tag.name()); + } + return objectLabelUpdatedValueDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY_DETAILS}, {@code false} otherwise. + */ + public boolean isOrganizeFolderWithTidyDetails() { + return this._tag == Tag.ORGANIZE_FOLDER_WITH_TIDY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ORGANIZE_FOLDER_WITH_TIDY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails organizeFolderWithTidyDetails(OrganizeFolderWithTidyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndOrganizeFolderWithTidyDetails(Tag.ORGANIZE_FOLDER_WITH_TIDY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY_DETAILS}. + * + * @return The {@link OrganizeFolderWithTidyDetails} value associated with + * this instance if {@link #isOrganizeFolderWithTidyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isOrganizeFolderWithTidyDetails} is {@code false}. + */ + public OrganizeFolderWithTidyDetails getOrganizeFolderWithTidyDetailsValue() { + if (this._tag != Tag.ORGANIZE_FOLDER_WITH_TIDY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ORGANIZE_FOLDER_WITH_TIDY_DETAILS, but was Tag." + this._tag.name()); + } + return organizeFolderWithTidyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_FILE_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_FILE_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isReplayFileDeleteDetails() { + return this._tag == Tag.REPLAY_FILE_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#REPLAY_FILE_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#REPLAY_FILE_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails replayFileDeleteDetails(ReplayFileDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndReplayFileDeleteDetails(Tag.REPLAY_FILE_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#REPLAY_FILE_DELETE_DETAILS}. + * + * @return The {@link ReplayFileDeleteDetails} value associated with this + * instance if {@link #isReplayFileDeleteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isReplayFileDeleteDetails} is + * {@code false}. + */ + public ReplayFileDeleteDetails getReplayFileDeleteDetailsValue() { + if (this._tag != Tag.REPLAY_FILE_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_FILE_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return replayFileDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REWIND_FOLDER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REWIND_FOLDER_DETAILS}, {@code false} otherwise. + */ + public boolean isRewindFolderDetails() { + return this._tag == Tag.REWIND_FOLDER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#REWIND_FOLDER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#REWIND_FOLDER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails rewindFolderDetails(RewindFolderDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndRewindFolderDetails(Tag.REWIND_FOLDER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#REWIND_FOLDER_DETAILS}. + * + * @return The {@link RewindFolderDetails} value associated with this + * instance if {@link #isRewindFolderDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isRewindFolderDetails} is + * {@code false}. + */ + public RewindFolderDetails getRewindFolderDetailsValue() { + if (this._tag != Tag.REWIND_FOLDER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.REWIND_FOLDER_DETAILS, but was Tag." + this._tag.name()); + } + return rewindFolderDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNDO_NAMING_CONVENTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNDO_NAMING_CONVENTION_DETAILS}, {@code false} otherwise. + */ + public boolean isUndoNamingConventionDetails() { + return this._tag == Tag.UNDO_NAMING_CONVENTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#UNDO_NAMING_CONVENTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#UNDO_NAMING_CONVENTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails undoNamingConventionDetails(UndoNamingConventionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndUndoNamingConventionDetails(Tag.UNDO_NAMING_CONVENTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#UNDO_NAMING_CONVENTION_DETAILS}. + * + * @return The {@link UndoNamingConventionDetails} value associated with + * this instance if {@link #isUndoNamingConventionDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isUndoNamingConventionDetails} + * is {@code false}. + */ + public UndoNamingConventionDetails getUndoNamingConventionDetailsValue() { + if (this._tag != Tag.UNDO_NAMING_CONVENTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.UNDO_NAMING_CONVENTION_DETAILS, but was Tag." + this._tag.name()); + } + return undoNamingConventionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS}, {@code false} otherwise. + */ + public boolean isUndoOrganizeFolderWithTidyDetails() { + return this._tag == Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails undoOrganizeFolderWithTidyDetails(UndoOrganizeFolderWithTidyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndUndoOrganizeFolderWithTidyDetails(Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS}. + * + * @return The {@link UndoOrganizeFolderWithTidyDetails} value associated + * with this instance if {@link #isUndoOrganizeFolderWithTidyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isUndoOrganizeFolderWithTidyDetails} is {@code false}. + */ + public UndoOrganizeFolderWithTidyDetails getUndoOrganizeFolderWithTidyDetailsValue() { + if (this._tag != Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS, but was Tag." + this._tag.name()); + } + return undoOrganizeFolderWithTidyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_TAGS_ADDED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_TAGS_ADDED_DETAILS}, {@code false} otherwise. + */ + public boolean isUserTagsAddedDetails() { + return this._tag == Tag.USER_TAGS_ADDED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#USER_TAGS_ADDED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#USER_TAGS_ADDED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails userTagsAddedDetails(UserTagsAddedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndUserTagsAddedDetails(Tag.USER_TAGS_ADDED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_TAGS_ADDED_DETAILS}. + * + * @return The {@link UserTagsAddedDetails} value associated with this + * instance if {@link #isUserTagsAddedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserTagsAddedDetails} is + * {@code false}. + */ + public UserTagsAddedDetails getUserTagsAddedDetailsValue() { + if (this._tag != Tag.USER_TAGS_ADDED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.USER_TAGS_ADDED_DETAILS, but was Tag." + this._tag.name()); + } + return userTagsAddedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_TAGS_REMOVED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_TAGS_REMOVED_DETAILS}, {@code false} otherwise. + */ + public boolean isUserTagsRemovedDetails() { + return this._tag == Tag.USER_TAGS_REMOVED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#USER_TAGS_REMOVED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#USER_TAGS_REMOVED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails userTagsRemovedDetails(UserTagsRemovedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndUserTagsRemovedDetails(Tag.USER_TAGS_REMOVED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#USER_TAGS_REMOVED_DETAILS}. + * + * @return The {@link UserTagsRemovedDetails} value associated with this + * instance if {@link #isUserTagsRemovedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserTagsRemovedDetails} is + * {@code false}. + */ + public UserTagsRemovedDetails getUserTagsRemovedDetailsValue() { + if (this._tag != Tag.USER_TAGS_REMOVED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.USER_TAGS_REMOVED_DETAILS, but was Tag." + this._tag.name()); + } + return userTagsRemovedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE_DETAILS}, {@code false} otherwise. + */ + public boolean isEmailIngestReceiveFileDetails() { + return this._tag == Tag.EMAIL_INGEST_RECEIVE_FILE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMAIL_INGEST_RECEIVE_FILE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emailIngestReceiveFileDetails(EmailIngestReceiveFileDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmailIngestReceiveFileDetails(Tag.EMAIL_INGEST_RECEIVE_FILE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE_DETAILS}. + * + * @return The {@link EmailIngestReceiveFileDetails} value associated with + * this instance if {@link #isEmailIngestReceiveFileDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isEmailIngestReceiveFileDetails} is {@code false}. + */ + public EmailIngestReceiveFileDetails getEmailIngestReceiveFileDetailsValue() { + if (this._tag != Tag.EMAIL_INGEST_RECEIVE_FILE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMAIL_INGEST_RECEIVE_FILE_DETAILS, but was Tag." + this._tag.name()); + } + return emailIngestReceiveFileDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_CHANGE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_CHANGE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRequestChangeDetails() { + return this._tag == Tag.FILE_REQUEST_CHANGE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUEST_CHANGE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUEST_CHANGE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestChangeDetails(FileRequestChangeDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestChangeDetails(Tag.FILE_REQUEST_CHANGE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_REQUEST_CHANGE_DETAILS}. + * + * @return The {@link FileRequestChangeDetails} value associated with this + * instance if {@link #isFileRequestChangeDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestChangeDetails} is + * {@code false}. + */ + public FileRequestChangeDetails getFileRequestChangeDetailsValue() { + if (this._tag != Tag.FILE_REQUEST_CHANGE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_CHANGE_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestChangeDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_CLOSE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_CLOSE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRequestCloseDetails() { + return this._tag == Tag.FILE_REQUEST_CLOSE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUEST_CLOSE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUEST_CLOSE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestCloseDetails(FileRequestCloseDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestCloseDetails(Tag.FILE_REQUEST_CLOSE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_REQUEST_CLOSE_DETAILS}. + * + * @return The {@link FileRequestCloseDetails} value associated with this + * instance if {@link #isFileRequestCloseDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestCloseDetails} is + * {@code false}. + */ + public FileRequestCloseDetails getFileRequestCloseDetailsValue() { + if (this._tag != Tag.FILE_REQUEST_CLOSE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_CLOSE_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestCloseDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRequestCreateDetails() { + return this._tag == Tag.FILE_REQUEST_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUEST_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUEST_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestCreateDetails(FileRequestCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestCreateDetails(Tag.FILE_REQUEST_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_REQUEST_CREATE_DETAILS}. + * + * @return The {@link FileRequestCreateDetails} value associated with this + * instance if {@link #isFileRequestCreateDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestCreateDetails} is + * {@code false}. + */ + public FileRequestCreateDetails getFileRequestCreateDetailsValue() { + if (this._tag != Tag.FILE_REQUEST_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRequestDeleteDetails() { + return this._tag == Tag.FILE_REQUEST_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUEST_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUEST_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestDeleteDetails(FileRequestDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestDeleteDetails(Tag.FILE_REQUEST_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_REQUEST_DELETE_DETAILS}. + * + * @return The {@link FileRequestDeleteDetails} value associated with this + * instance if {@link #isFileRequestDeleteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestDeleteDetails} is + * {@code false}. + */ + public FileRequestDeleteDetails getFileRequestDeleteDetailsValue() { + if (this._tag != Tag.FILE_REQUEST_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_RECEIVE_FILE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_RECEIVE_FILE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRequestReceiveFileDetails() { + return this._tag == Tag.FILE_REQUEST_RECEIVE_FILE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUEST_RECEIVE_FILE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUEST_RECEIVE_FILE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestReceiveFileDetails(FileRequestReceiveFileDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestReceiveFileDetails(Tag.FILE_REQUEST_RECEIVE_FILE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_REQUEST_RECEIVE_FILE_DETAILS}. + * + * @return The {@link FileRequestReceiveFileDetails} value associated with + * this instance if {@link #isFileRequestReceiveFileDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isFileRequestReceiveFileDetails} is {@code false}. + */ + public FileRequestReceiveFileDetails getFileRequestReceiveFileDetailsValue() { + if (this._tag != Tag.FILE_REQUEST_RECEIVE_FILE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_RECEIVE_FILE_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestReceiveFileDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_ADD_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_ADD_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupAddExternalIdDetails() { + return this._tag == Tag.GROUP_ADD_EXTERNAL_ID_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_ADD_EXTERNAL_ID_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_ADD_EXTERNAL_ID_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupAddExternalIdDetails(GroupAddExternalIdDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupAddExternalIdDetails(Tag.GROUP_ADD_EXTERNAL_ID_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_ADD_EXTERNAL_ID_DETAILS}. + * + * @return The {@link GroupAddExternalIdDetails} value associated with this + * instance if {@link #isGroupAddExternalIdDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupAddExternalIdDetails} is + * {@code false}. + */ + public GroupAddExternalIdDetails getGroupAddExternalIdDetailsValue() { + if (this._tag != Tag.GROUP_ADD_EXTERNAL_ID_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_ADD_EXTERNAL_ID_DETAILS, but was Tag." + this._tag.name()); + } + return groupAddExternalIdDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_ADD_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_ADD_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupAddMemberDetails() { + return this._tag == Tag.GROUP_ADD_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_ADD_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_ADD_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupAddMemberDetails(GroupAddMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupAddMemberDetails(Tag.GROUP_ADD_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#GROUP_ADD_MEMBER_DETAILS}. + * + * @return The {@link GroupAddMemberDetails} value associated with this + * instance if {@link #isGroupAddMemberDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupAddMemberDetails} is + * {@code false}. + */ + public GroupAddMemberDetails getGroupAddMemberDetailsValue() { + if (this._tag != Tag.GROUP_ADD_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_ADD_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return groupAddMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupChangeExternalIdDetails() { + return this._tag == Tag.GROUP_CHANGE_EXTERNAL_ID_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_CHANGE_EXTERNAL_ID_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupChangeExternalIdDetails(GroupChangeExternalIdDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupChangeExternalIdDetails(Tag.GROUP_CHANGE_EXTERNAL_ID_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID_DETAILS}. + * + * @return The {@link GroupChangeExternalIdDetails} value associated with + * this instance if {@link #isGroupChangeExternalIdDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isGroupChangeExternalIdDetails} + * is {@code false}. + */ + public GroupChangeExternalIdDetails getGroupChangeExternalIdDetailsValue() { + if (this._tag != Tag.GROUP_CHANGE_EXTERNAL_ID_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CHANGE_EXTERNAL_ID_DETAILS, but was Tag." + this._tag.name()); + } + return groupChangeExternalIdDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupChangeManagementTypeDetails() { + return this._tag == Tag.GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupChangeManagementTypeDetails(GroupChangeManagementTypeDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupChangeManagementTypeDetails(Tag.GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS}. + * + * @return The {@link GroupChangeManagementTypeDetails} value associated + * with this instance if {@link #isGroupChangeManagementTypeDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGroupChangeManagementTypeDetails} is {@code false}. + */ + public GroupChangeManagementTypeDetails getGroupChangeManagementTypeDetailsValue() { + if (this._tag != Tag.GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS, but was Tag." + this._tag.name()); + } + return groupChangeManagementTypeDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupChangeMemberRoleDetails() { + return this._tag == Tag.GROUP_CHANGE_MEMBER_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_CHANGE_MEMBER_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupChangeMemberRoleDetails(GroupChangeMemberRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupChangeMemberRoleDetails(Tag.GROUP_CHANGE_MEMBER_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE_DETAILS}. + * + * @return The {@link GroupChangeMemberRoleDetails} value associated with + * this instance if {@link #isGroupChangeMemberRoleDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isGroupChangeMemberRoleDetails} + * is {@code false}. + */ + public GroupChangeMemberRoleDetails getGroupChangeMemberRoleDetailsValue() { + if (this._tag != Tag.GROUP_CHANGE_MEMBER_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CHANGE_MEMBER_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return groupChangeMemberRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupCreateDetails() { + return this._tag == Tag.GROUP_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupCreateDetails(GroupCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupCreateDetails(Tag.GROUP_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#GROUP_CREATE_DETAILS}. + * + * @return The {@link GroupCreateDetails} value associated with this + * instance if {@link #isGroupCreateDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupCreateDetails} is {@code + * false}. + */ + public GroupCreateDetails getGroupCreateDetailsValue() { + if (this._tag != Tag.GROUP_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return groupCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupDeleteDetails() { + return this._tag == Tag.GROUP_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupDeleteDetails(GroupDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupDeleteDetails(Tag.GROUP_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#GROUP_DELETE_DETAILS}. + * + * @return The {@link GroupDeleteDetails} value associated with this + * instance if {@link #isGroupDeleteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupDeleteDetails} is {@code + * false}. + */ + public GroupDeleteDetails getGroupDeleteDetailsValue() { + if (this._tag != Tag.GROUP_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return groupDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_DESCRIPTION_UPDATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_DESCRIPTION_UPDATED_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupDescriptionUpdatedDetails() { + return this._tag == Tag.GROUP_DESCRIPTION_UPDATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_DESCRIPTION_UPDATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_DESCRIPTION_UPDATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupDescriptionUpdatedDetails(GroupDescriptionUpdatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupDescriptionUpdatedDetails(Tag.GROUP_DESCRIPTION_UPDATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_DESCRIPTION_UPDATED_DETAILS}. + * + * @return The {@link GroupDescriptionUpdatedDetails} value associated with + * this instance if {@link #isGroupDescriptionUpdatedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isGroupDescriptionUpdatedDetails} is {@code false}. + */ + public GroupDescriptionUpdatedDetails getGroupDescriptionUpdatedDetailsValue() { + if (this._tag != Tag.GROUP_DESCRIPTION_UPDATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_DESCRIPTION_UPDATED_DETAILS, but was Tag." + this._tag.name()); + } + return groupDescriptionUpdatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_JOIN_POLICY_UPDATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_JOIN_POLICY_UPDATED_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupJoinPolicyUpdatedDetails() { + return this._tag == Tag.GROUP_JOIN_POLICY_UPDATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_JOIN_POLICY_UPDATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_JOIN_POLICY_UPDATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupJoinPolicyUpdatedDetails(GroupJoinPolicyUpdatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupJoinPolicyUpdatedDetails(Tag.GROUP_JOIN_POLICY_UPDATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_JOIN_POLICY_UPDATED_DETAILS}. + * + * @return The {@link GroupJoinPolicyUpdatedDetails} value associated with + * this instance if {@link #isGroupJoinPolicyUpdatedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isGroupJoinPolicyUpdatedDetails} is {@code false}. + */ + public GroupJoinPolicyUpdatedDetails getGroupJoinPolicyUpdatedDetailsValue() { + if (this._tag != Tag.GROUP_JOIN_POLICY_UPDATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_JOIN_POLICY_UPDATED_DETAILS, but was Tag." + this._tag.name()); + } + return groupJoinPolicyUpdatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_MOVED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_MOVED_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupMovedDetails() { + return this._tag == Tag.GROUP_MOVED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_MOVED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_MOVED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupMovedDetails(GroupMovedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupMovedDetails(Tag.GROUP_MOVED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#GROUP_MOVED_DETAILS}. + * + * @return The {@link GroupMovedDetails} value associated with this instance + * if {@link #isGroupMovedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupMovedDetails} is {@code + * false}. + */ + public GroupMovedDetails getGroupMovedDetailsValue() { + if (this._tag != Tag.GROUP_MOVED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_MOVED_DETAILS, but was Tag." + this._tag.name()); + } + return groupMovedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupRemoveExternalIdDetails() { + return this._tag == Tag.GROUP_REMOVE_EXTERNAL_ID_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_REMOVE_EXTERNAL_ID_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupRemoveExternalIdDetails(GroupRemoveExternalIdDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupRemoveExternalIdDetails(Tag.GROUP_REMOVE_EXTERNAL_ID_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID_DETAILS}. + * + * @return The {@link GroupRemoveExternalIdDetails} value associated with + * this instance if {@link #isGroupRemoveExternalIdDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isGroupRemoveExternalIdDetails} + * is {@code false}. + */ + public GroupRemoveExternalIdDetails getGroupRemoveExternalIdDetailsValue() { + if (this._tag != Tag.GROUP_REMOVE_EXTERNAL_ID_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_REMOVE_EXTERNAL_ID_DETAILS, but was Tag." + this._tag.name()); + } + return groupRemoveExternalIdDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupRemoveMemberDetails() { + return this._tag == Tag.GROUP_REMOVE_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_REMOVE_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_REMOVE_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupRemoveMemberDetails(GroupRemoveMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupRemoveMemberDetails(Tag.GROUP_REMOVE_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#GROUP_REMOVE_MEMBER_DETAILS}. + * + * @return The {@link GroupRemoveMemberDetails} value associated with this + * instance if {@link #isGroupRemoveMemberDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupRemoveMemberDetails} is + * {@code false}. + */ + public GroupRemoveMemberDetails getGroupRemoveMemberDetailsValue() { + if (this._tag != Tag.GROUP_REMOVE_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_REMOVE_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return groupRemoveMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_RENAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_RENAME_DETAILS}, {@code false} otherwise. + */ + public boolean isGroupRenameDetails() { + return this._tag == Tag.GROUP_RENAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_RENAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_RENAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupRenameDetails(GroupRenameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupRenameDetails(Tag.GROUP_RENAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#GROUP_RENAME_DETAILS}. + * + * @return The {@link GroupRenameDetails} value associated with this + * instance if {@link #isGroupRenameDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupRenameDetails} is {@code + * false}. + */ + public GroupRenameDetails getGroupRenameDetailsValue() { + if (this._tag != Tag.GROUP_RENAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_RENAME_DETAILS, but was Tag." + this._tag.name()); + } + return groupRenameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED_DETAILS}, {@code false} otherwise. + */ + public boolean isAccountLockOrUnlockedDetails() { + return this._tag == Tag.ACCOUNT_LOCK_OR_UNLOCKED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ACCOUNT_LOCK_OR_UNLOCKED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails accountLockOrUnlockedDetails(AccountLockOrUnlockedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAccountLockOrUnlockedDetails(Tag.ACCOUNT_LOCK_OR_UNLOCKED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED_DETAILS}. + * + * @return The {@link AccountLockOrUnlockedDetails} value associated with + * this instance if {@link #isAccountLockOrUnlockedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isAccountLockOrUnlockedDetails} + * is {@code false}. + */ + public AccountLockOrUnlockedDetails getAccountLockOrUnlockedDetailsValue() { + if (this._tag != Tag.ACCOUNT_LOCK_OR_UNLOCKED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_LOCK_OR_UNLOCKED_DETAILS, but was Tag." + this._tag.name()); + } + return accountLockOrUnlockedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_ERROR_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_ERROR_DETAILS}, {@code false} otherwise. + */ + public boolean isEmmErrorDetails() { + return this._tag == Tag.EMM_ERROR_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMM_ERROR_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMM_ERROR_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emmErrorDetails(EmmErrorDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmmErrorDetails(Tag.EMM_ERROR_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#EMM_ERROR_DETAILS}. + * + * @return The {@link EmmErrorDetails} value associated with this instance + * if {@link #isEmmErrorDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmErrorDetails} is {@code + * false}. + */ + public EmmErrorDetails getEmmErrorDetailsValue() { + if (this._tag != Tag.EMM_ERROR_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_ERROR_DETAILS, but was Tag." + this._tag.name()); + } + return emmErrorDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGuestAdminSignedInViaTrustedTeamsDetails() { + return this._tag == Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails guestAdminSignedInViaTrustedTeamsDetails(GuestAdminSignedInViaTrustedTeamsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGuestAdminSignedInViaTrustedTeamsDetails(Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS}. + * + * @return The {@link GuestAdminSignedInViaTrustedTeamsDetails} value + * associated with this instance if {@link + * #isGuestAdminSignedInViaTrustedTeamsDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGuestAdminSignedInViaTrustedTeamsDetails} is {@code false}. + */ + public GuestAdminSignedInViaTrustedTeamsDetails getGuestAdminSignedInViaTrustedTeamsDetailsValue() { + if (this._tag != Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS, but was Tag." + this._tag.name()); + } + return guestAdminSignedInViaTrustedTeamsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGuestAdminSignedOutViaTrustedTeamsDetails() { + return this._tag == Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails guestAdminSignedOutViaTrustedTeamsDetails(GuestAdminSignedOutViaTrustedTeamsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGuestAdminSignedOutViaTrustedTeamsDetails(Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS}. + * + * @return The {@link GuestAdminSignedOutViaTrustedTeamsDetails} value + * associated with this instance if {@link + * #isGuestAdminSignedOutViaTrustedTeamsDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGuestAdminSignedOutViaTrustedTeamsDetails} is {@code false}. + */ + public GuestAdminSignedOutViaTrustedTeamsDetails getGuestAdminSignedOutViaTrustedTeamsDetailsValue() { + if (this._tag != Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS, but was Tag." + this._tag.name()); + } + return guestAdminSignedOutViaTrustedTeamsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LOGIN_FAIL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LOGIN_FAIL_DETAILS}, {@code false} otherwise. + */ + public boolean isLoginFailDetails() { + return this._tag == Tag.LOGIN_FAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LOGIN_FAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LOGIN_FAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails loginFailDetails(LoginFailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLoginFailDetails(Tag.LOGIN_FAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#LOGIN_FAIL_DETAILS}. + * + * @return The {@link LoginFailDetails} value associated with this instance + * if {@link #isLoginFailDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isLoginFailDetails} is {@code + * false}. + */ + public LoginFailDetails getLoginFailDetailsValue() { + if (this._tag != Tag.LOGIN_FAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LOGIN_FAIL_DETAILS, but was Tag." + this._tag.name()); + } + return loginFailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LOGIN_SUCCESS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LOGIN_SUCCESS_DETAILS}, {@code false} otherwise. + */ + public boolean isLoginSuccessDetails() { + return this._tag == Tag.LOGIN_SUCCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LOGIN_SUCCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LOGIN_SUCCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails loginSuccessDetails(LoginSuccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLoginSuccessDetails(Tag.LOGIN_SUCCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#LOGIN_SUCCESS_DETAILS}. + * + * @return The {@link LoginSuccessDetails} value associated with this + * instance if {@link #isLoginSuccessDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isLoginSuccessDetails} is + * {@code false}. + */ + public LoginSuccessDetails getLoginSuccessDetailsValue() { + if (this._tag != Tag.LOGIN_SUCCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LOGIN_SUCCESS_DETAILS, but was Tag." + this._tag.name()); + } + return loginSuccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LOGOUT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LOGOUT_DETAILS}, {@code false} otherwise. + */ + public boolean isLogoutDetails() { + return this._tag == Tag.LOGOUT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#LOGOUT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#LOGOUT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails logoutDetails(LogoutDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndLogoutDetails(Tag.LOGOUT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#LOGOUT_DETAILS}. + * + * @return The {@link LogoutDetails} value associated with this instance if + * {@link #isLogoutDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isLogoutDetails} is {@code + * false}. + */ + public LogoutDetails getLogoutDetailsValue() { + if (this._tag != Tag.LOGOUT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LOGOUT_DETAILS, but was Tag." + this._tag.name()); + } + return logoutDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESELLER_SUPPORT_SESSION_END_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_END_DETAILS}, {@code false} otherwise. + */ + public boolean isResellerSupportSessionEndDetails() { + return this._tag == Tag.RESELLER_SUPPORT_SESSION_END_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#RESELLER_SUPPORT_SESSION_END_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#RESELLER_SUPPORT_SESSION_END_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails resellerSupportSessionEndDetails(ResellerSupportSessionEndDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndResellerSupportSessionEndDetails(Tag.RESELLER_SUPPORT_SESSION_END_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_END_DETAILS}. + * + * @return The {@link ResellerSupportSessionEndDetails} value associated + * with this instance if {@link #isResellerSupportSessionEndDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isResellerSupportSessionEndDetails} is {@code false}. + */ + public ResellerSupportSessionEndDetails getResellerSupportSessionEndDetailsValue() { + if (this._tag != Tag.RESELLER_SUPPORT_SESSION_END_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.RESELLER_SUPPORT_SESSION_END_DETAILS, but was Tag." + this._tag.name()); + } + return resellerSupportSessionEndDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESELLER_SUPPORT_SESSION_START_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_START_DETAILS}, {@code false} otherwise. + */ + public boolean isResellerSupportSessionStartDetails() { + return this._tag == Tag.RESELLER_SUPPORT_SESSION_START_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#RESELLER_SUPPORT_SESSION_START_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#RESELLER_SUPPORT_SESSION_START_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails resellerSupportSessionStartDetails(ResellerSupportSessionStartDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndResellerSupportSessionStartDetails(Tag.RESELLER_SUPPORT_SESSION_START_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_START_DETAILS}. + * + * @return The {@link ResellerSupportSessionStartDetails} value associated + * with this instance if {@link #isResellerSupportSessionStartDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isResellerSupportSessionStartDetails} is {@code false}. + */ + public ResellerSupportSessionStartDetails getResellerSupportSessionStartDetailsValue() { + if (this._tag != Tag.RESELLER_SUPPORT_SESSION_START_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.RESELLER_SUPPORT_SESSION_START_DETAILS, but was Tag." + this._tag.name()); + } + return resellerSupportSessionStartDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SIGN_IN_AS_SESSION_END_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SIGN_IN_AS_SESSION_END_DETAILS}, {@code false} otherwise. + */ + public boolean isSignInAsSessionEndDetails() { + return this._tag == Tag.SIGN_IN_AS_SESSION_END_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SIGN_IN_AS_SESSION_END_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SIGN_IN_AS_SESSION_END_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails signInAsSessionEndDetails(SignInAsSessionEndDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSignInAsSessionEndDetails(Tag.SIGN_IN_AS_SESSION_END_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SIGN_IN_AS_SESSION_END_DETAILS}. + * + * @return The {@link SignInAsSessionEndDetails} value associated with this + * instance if {@link #isSignInAsSessionEndDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSignInAsSessionEndDetails} is + * {@code false}. + */ + public SignInAsSessionEndDetails getSignInAsSessionEndDetailsValue() { + if (this._tag != Tag.SIGN_IN_AS_SESSION_END_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SIGN_IN_AS_SESSION_END_DETAILS, but was Tag." + this._tag.name()); + } + return signInAsSessionEndDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SIGN_IN_AS_SESSION_START_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SIGN_IN_AS_SESSION_START_DETAILS}, {@code false} otherwise. + */ + public boolean isSignInAsSessionStartDetails() { + return this._tag == Tag.SIGN_IN_AS_SESSION_START_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SIGN_IN_AS_SESSION_START_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SIGN_IN_AS_SESSION_START_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails signInAsSessionStartDetails(SignInAsSessionStartDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSignInAsSessionStartDetails(Tag.SIGN_IN_AS_SESSION_START_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SIGN_IN_AS_SESSION_START_DETAILS}. + * + * @return The {@link SignInAsSessionStartDetails} value associated with + * this instance if {@link #isSignInAsSessionStartDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSignInAsSessionStartDetails} + * is {@code false}. + */ + public SignInAsSessionStartDetails getSignInAsSessionStartDetailsValue() { + if (this._tag != Tag.SIGN_IN_AS_SESSION_START_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SIGN_IN_AS_SESSION_START_DETAILS, but was Tag." + this._tag.name()); + } + return signInAsSessionStartDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_ERROR_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_ERROR_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoErrorDetails() { + return this._tag == Tag.SSO_ERROR_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_ERROR_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_ERROR_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoErrorDetails(SsoErrorDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoErrorDetails(Tag.SSO_ERROR_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_ERROR_DETAILS}. + * + * @return The {@link SsoErrorDetails} value associated with this instance + * if {@link #isSsoErrorDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoErrorDetails} is {@code + * false}. + */ + public SsoErrorDetails getSsoErrorDetailsValue() { + if (this._tag != Tag.SSO_ERROR_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ERROR_DETAILS, but was Tag." + this._tag.name()); + } + return ssoErrorDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT_DETAILS}, {@code false} otherwise. + */ + public boolean isBackupAdminInvitationSentDetails() { + return this._tag == Tag.BACKUP_ADMIN_INVITATION_SENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BACKUP_ADMIN_INVITATION_SENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails backupAdminInvitationSentDetails(BackupAdminInvitationSentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBackupAdminInvitationSentDetails(Tag.BACKUP_ADMIN_INVITATION_SENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT_DETAILS}. + * + * @return The {@link BackupAdminInvitationSentDetails} value associated + * with this instance if {@link #isBackupAdminInvitationSentDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isBackupAdminInvitationSentDetails} is {@code false}. + */ + public BackupAdminInvitationSentDetails getBackupAdminInvitationSentDetailsValue() { + if (this._tag != Tag.BACKUP_ADMIN_INVITATION_SENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BACKUP_ADMIN_INVITATION_SENT_DETAILS, but was Tag." + this._tag.name()); + } + return backupAdminInvitationSentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BACKUP_INVITATION_OPENED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BACKUP_INVITATION_OPENED_DETAILS}, {@code false} otherwise. + */ + public boolean isBackupInvitationOpenedDetails() { + return this._tag == Tag.BACKUP_INVITATION_OPENED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BACKUP_INVITATION_OPENED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BACKUP_INVITATION_OPENED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails backupInvitationOpenedDetails(BackupInvitationOpenedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBackupInvitationOpenedDetails(Tag.BACKUP_INVITATION_OPENED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#BACKUP_INVITATION_OPENED_DETAILS}. + * + * @return The {@link BackupInvitationOpenedDetails} value associated with + * this instance if {@link #isBackupInvitationOpenedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isBackupInvitationOpenedDetails} is {@code false}. + */ + public BackupInvitationOpenedDetails getBackupInvitationOpenedDetailsValue() { + if (this._tag != Tag.BACKUP_INVITATION_OPENED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BACKUP_INVITATION_OPENED_DETAILS, but was Tag." + this._tag.name()); + } + return backupInvitationOpenedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CREATE_TEAM_INVITE_LINK_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CREATE_TEAM_INVITE_LINK_DETAILS}, {@code false} otherwise. + */ + public boolean isCreateTeamInviteLinkDetails() { + return this._tag == Tag.CREATE_TEAM_INVITE_LINK_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CREATE_TEAM_INVITE_LINK_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CREATE_TEAM_INVITE_LINK_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails createTeamInviteLinkDetails(CreateTeamInviteLinkDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndCreateTeamInviteLinkDetails(Tag.CREATE_TEAM_INVITE_LINK_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CREATE_TEAM_INVITE_LINK_DETAILS}. + * + * @return The {@link CreateTeamInviteLinkDetails} value associated with + * this instance if {@link #isCreateTeamInviteLinkDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isCreateTeamInviteLinkDetails} + * is {@code false}. + */ + public CreateTeamInviteLinkDetails getCreateTeamInviteLinkDetailsValue() { + if (this._tag != Tag.CREATE_TEAM_INVITE_LINK_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CREATE_TEAM_INVITE_LINK_DETAILS, but was Tag." + this._tag.name()); + } + return createTeamInviteLinkDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DELETE_TEAM_INVITE_LINK_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DELETE_TEAM_INVITE_LINK_DETAILS}, {@code false} otherwise. + */ + public boolean isDeleteTeamInviteLinkDetails() { + return this._tag == Tag.DELETE_TEAM_INVITE_LINK_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DELETE_TEAM_INVITE_LINK_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DELETE_TEAM_INVITE_LINK_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deleteTeamInviteLinkDetails(DeleteTeamInviteLinkDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeleteTeamInviteLinkDetails(Tag.DELETE_TEAM_INVITE_LINK_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DELETE_TEAM_INVITE_LINK_DETAILS}. + * + * @return The {@link DeleteTeamInviteLinkDetails} value associated with + * this instance if {@link #isDeleteTeamInviteLinkDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isDeleteTeamInviteLinkDetails} + * is {@code false}. + */ + public DeleteTeamInviteLinkDetails getDeleteTeamInviteLinkDetailsValue() { + if (this._tag != Tag.DELETE_TEAM_INVITE_LINK_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DELETE_TEAM_INVITE_LINK_DETAILS, but was Tag." + this._tag.name()); + } + return deleteTeamInviteLinkDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ADD_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ADD_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberAddExternalIdDetails() { + return this._tag == Tag.MEMBER_ADD_EXTERNAL_ID_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_ADD_EXTERNAL_ID_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_ADD_EXTERNAL_ID_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberAddExternalIdDetails(MemberAddExternalIdDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberAddExternalIdDetails(Tag.MEMBER_ADD_EXTERNAL_ID_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_ADD_EXTERNAL_ID_DETAILS}. + * + * @return The {@link MemberAddExternalIdDetails} value associated with this + * instance if {@link #isMemberAddExternalIdDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberAddExternalIdDetails} + * is {@code false}. + */ + public MemberAddExternalIdDetails getMemberAddExternalIdDetailsValue() { + if (this._tag != Tag.MEMBER_ADD_EXTERNAL_ID_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ADD_EXTERNAL_ID_DETAILS, but was Tag." + this._tag.name()); + } + return memberAddExternalIdDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ADD_NAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ADD_NAME_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberAddNameDetails() { + return this._tag == Tag.MEMBER_ADD_NAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_ADD_NAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_ADD_NAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberAddNameDetails(MemberAddNameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberAddNameDetails(Tag.MEMBER_ADD_NAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#MEMBER_ADD_NAME_DETAILS}. + * + * @return The {@link MemberAddNameDetails} value associated with this + * instance if {@link #isMemberAddNameDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberAddNameDetails} is + * {@code false}. + */ + public MemberAddNameDetails getMemberAddNameDetailsValue() { + if (this._tag != Tag.MEMBER_ADD_NAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ADD_NAME_DETAILS, but was Tag." + this._tag.name()); + } + return memberAddNameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberChangeAdminRoleDetails() { + return this._tag == Tag.MEMBER_CHANGE_ADMIN_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_CHANGE_ADMIN_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberChangeAdminRoleDetails(MemberChangeAdminRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberChangeAdminRoleDetails(Tag.MEMBER_CHANGE_ADMIN_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE_DETAILS}. + * + * @return The {@link MemberChangeAdminRoleDetails} value associated with + * this instance if {@link #isMemberChangeAdminRoleDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isMemberChangeAdminRoleDetails} + * is {@code false}. + */ + public MemberChangeAdminRoleDetails getMemberChangeAdminRoleDetailsValue() { + if (this._tag != Tag.MEMBER_CHANGE_ADMIN_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_ADMIN_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return memberChangeAdminRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_EMAIL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_EMAIL_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberChangeEmailDetails() { + return this._tag == Tag.MEMBER_CHANGE_EMAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_CHANGE_EMAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_CHANGE_EMAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberChangeEmailDetails(MemberChangeEmailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberChangeEmailDetails(Tag.MEMBER_CHANGE_EMAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#MEMBER_CHANGE_EMAIL_DETAILS}. + * + * @return The {@link MemberChangeEmailDetails} value associated with this + * instance if {@link #isMemberChangeEmailDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeEmailDetails} is + * {@code false}. + */ + public MemberChangeEmailDetails getMemberChangeEmailDetailsValue() { + if (this._tag != Tag.MEMBER_CHANGE_EMAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_EMAIL_DETAILS, but was Tag." + this._tag.name()); + } + return memberChangeEmailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberChangeExternalIdDetails() { + return this._tag == Tag.MEMBER_CHANGE_EXTERNAL_ID_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_CHANGE_EXTERNAL_ID_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberChangeExternalIdDetails(MemberChangeExternalIdDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberChangeExternalIdDetails(Tag.MEMBER_CHANGE_EXTERNAL_ID_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID_DETAILS}. + * + * @return The {@link MemberChangeExternalIdDetails} value associated with + * this instance if {@link #isMemberChangeExternalIdDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isMemberChangeExternalIdDetails} is {@code false}. + */ + public MemberChangeExternalIdDetails getMemberChangeExternalIdDetailsValue() { + if (this._tag != Tag.MEMBER_CHANGE_EXTERNAL_ID_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_EXTERNAL_ID_DETAILS, but was Tag." + this._tag.name()); + } + return memberChangeExternalIdDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberChangeMembershipTypeDetails() { + return this._tag == Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberChangeMembershipTypeDetails(MemberChangeMembershipTypeDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberChangeMembershipTypeDetails(Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS}. + * + * @return The {@link MemberChangeMembershipTypeDetails} value associated + * with this instance if {@link #isMemberChangeMembershipTypeDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberChangeMembershipTypeDetails} is {@code false}. + */ + public MemberChangeMembershipTypeDetails getMemberChangeMembershipTypeDetailsValue() { + if (this._tag != Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS, but was Tag." + this._tag.name()); + } + return memberChangeMembershipTypeDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_NAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_NAME_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberChangeNameDetails() { + return this._tag == Tag.MEMBER_CHANGE_NAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_CHANGE_NAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_CHANGE_NAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberChangeNameDetails(MemberChangeNameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberChangeNameDetails(Tag.MEMBER_CHANGE_NAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#MEMBER_CHANGE_NAME_DETAILS}. + * + * @return The {@link MemberChangeNameDetails} value associated with this + * instance if {@link #isMemberChangeNameDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeNameDetails} is + * {@code false}. + */ + public MemberChangeNameDetails getMemberChangeNameDetailsValue() { + if (this._tag != Tag.MEMBER_CHANGE_NAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_NAME_DETAILS, but was Tag." + this._tag.name()); + } + return memberChangeNameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberChangeResellerRoleDetails() { + return this._tag == Tag.MEMBER_CHANGE_RESELLER_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_CHANGE_RESELLER_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberChangeResellerRoleDetails(MemberChangeResellerRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberChangeResellerRoleDetails(Tag.MEMBER_CHANGE_RESELLER_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE_DETAILS}. + * + * @return The {@link MemberChangeResellerRoleDetails} value associated with + * this instance if {@link #isMemberChangeResellerRoleDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isMemberChangeResellerRoleDetails} is {@code false}. + */ + public MemberChangeResellerRoleDetails getMemberChangeResellerRoleDetailsValue() { + if (this._tag != Tag.MEMBER_CHANGE_RESELLER_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_RESELLER_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return memberChangeResellerRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberChangeStatusDetails() { + return this._tag == Tag.MEMBER_CHANGE_STATUS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_CHANGE_STATUS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_CHANGE_STATUS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberChangeStatusDetails(MemberChangeStatusDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberChangeStatusDetails(Tag.MEMBER_CHANGE_STATUS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#MEMBER_CHANGE_STATUS_DETAILS}. + * + * @return The {@link MemberChangeStatusDetails} value associated with this + * instance if {@link #isMemberChangeStatusDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeStatusDetails} is + * {@code false}. + */ + public MemberChangeStatusDetails getMemberChangeStatusDetailsValue() { + if (this._tag != Tag.MEMBER_CHANGE_STATUS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_STATUS_DETAILS, but was Tag." + this._tag.name()); + } + return memberChangeStatusDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberDeleteManualContactsDetails() { + return this._tag == Tag.MEMBER_DELETE_MANUAL_CONTACTS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_DELETE_MANUAL_CONTACTS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberDeleteManualContactsDetails(MemberDeleteManualContactsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberDeleteManualContactsDetails(Tag.MEMBER_DELETE_MANUAL_CONTACTS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS_DETAILS}. + * + * @return The {@link MemberDeleteManualContactsDetails} value associated + * with this instance if {@link #isMemberDeleteManualContactsDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberDeleteManualContactsDetails} is {@code false}. + */ + public MemberDeleteManualContactsDetails getMemberDeleteManualContactsDetailsValue() { + if (this._tag != Tag.MEMBER_DELETE_MANUAL_CONTACTS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_DELETE_MANUAL_CONTACTS_DETAILS, but was Tag." + this._tag.name()); + } + return memberDeleteManualContactsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberDeleteProfilePhotoDetails() { + return this._tag == Tag.MEMBER_DELETE_PROFILE_PHOTO_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_DELETE_PROFILE_PHOTO_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberDeleteProfilePhotoDetails(MemberDeleteProfilePhotoDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberDeleteProfilePhotoDetails(Tag.MEMBER_DELETE_PROFILE_PHOTO_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO_DETAILS}. + * + * @return The {@link MemberDeleteProfilePhotoDetails} value associated with + * this instance if {@link #isMemberDeleteProfilePhotoDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isMemberDeleteProfilePhotoDetails} is {@code false}. + */ + public MemberDeleteProfilePhotoDetails getMemberDeleteProfilePhotoDetailsValue() { + if (this._tag != Tag.MEMBER_DELETE_PROFILE_PHOTO_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_DELETE_PROFILE_PHOTO_DETAILS, but was Tag." + this._tag.name()); + } + return memberDeleteProfilePhotoDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS}, {@code + * false} otherwise. + */ + public boolean isMemberPermanentlyDeleteAccountContentsDetails() { + return this._tag == Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberPermanentlyDeleteAccountContentsDetails(MemberPermanentlyDeleteAccountContentsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberPermanentlyDeleteAccountContentsDetails(Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS}. + * + * @return The {@link MemberPermanentlyDeleteAccountContentsDetails} value + * associated with this instance if {@link + * #isMemberPermanentlyDeleteAccountContentsDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberPermanentlyDeleteAccountContentsDetails} is {@code false}. + */ + public MemberPermanentlyDeleteAccountContentsDetails getMemberPermanentlyDeleteAccountContentsDetailsValue() { + if (this._tag != Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS, but was Tag." + this._tag.name()); + } + return memberPermanentlyDeleteAccountContentsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberRemoveExternalIdDetails() { + return this._tag == Tag.MEMBER_REMOVE_EXTERNAL_ID_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_REMOVE_EXTERNAL_ID_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberRemoveExternalIdDetails(MemberRemoveExternalIdDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberRemoveExternalIdDetails(Tag.MEMBER_REMOVE_EXTERNAL_ID_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID_DETAILS}. + * + * @return The {@link MemberRemoveExternalIdDetails} value associated with + * this instance if {@link #isMemberRemoveExternalIdDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isMemberRemoveExternalIdDetails} is {@code false}. + */ + public MemberRemoveExternalIdDetails getMemberRemoveExternalIdDetailsValue() { + if (this._tag != Tag.MEMBER_REMOVE_EXTERNAL_ID_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_REMOVE_EXTERNAL_ID_DETAILS, but was Tag." + this._tag.name()); + } + return memberRemoveExternalIdDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SET_PROFILE_PHOTO_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SET_PROFILE_PHOTO_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberSetProfilePhotoDetails() { + return this._tag == Tag.MEMBER_SET_PROFILE_PHOTO_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SET_PROFILE_PHOTO_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SET_PROFILE_PHOTO_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSetProfilePhotoDetails(MemberSetProfilePhotoDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSetProfilePhotoDetails(Tag.MEMBER_SET_PROFILE_PHOTO_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SET_PROFILE_PHOTO_DETAILS}. + * + * @return The {@link MemberSetProfilePhotoDetails} value associated with + * this instance if {@link #isMemberSetProfilePhotoDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isMemberSetProfilePhotoDetails} + * is {@code false}. + */ + public MemberSetProfilePhotoDetails getMemberSetProfilePhotoDetailsValue() { + if (this._tag != Tag.MEMBER_SET_PROFILE_PHOTO_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SET_PROFILE_PHOTO_DETAILS, but was Tag." + this._tag.name()); + } + return memberSetProfilePhotoDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsAddCustomQuotaDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsAddCustomQuotaDetails(MemberSpaceLimitsAddCustomQuotaDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsAddCustomQuotaDetails(Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS}. + * + * @return The {@link MemberSpaceLimitsAddCustomQuotaDetails} value + * associated with this instance if {@link + * #isMemberSpaceLimitsAddCustomQuotaDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsAddCustomQuotaDetails} is {@code false}. + */ + public MemberSpaceLimitsAddCustomQuotaDetails getMemberSpaceLimitsAddCustomQuotaDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsAddCustomQuotaDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsChangeCustomQuotaDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsChangeCustomQuotaDetails(MemberSpaceLimitsChangeCustomQuotaDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsChangeCustomQuotaDetails(Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS}. + * + * @return The {@link MemberSpaceLimitsChangeCustomQuotaDetails} value + * associated with this instance if {@link + * #isMemberSpaceLimitsChangeCustomQuotaDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangeCustomQuotaDetails} is {@code false}. + */ + public MemberSpaceLimitsChangeCustomQuotaDetails getMemberSpaceLimitsChangeCustomQuotaDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangeCustomQuotaDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsChangeStatusDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsChangeStatusDetails(MemberSpaceLimitsChangeStatusDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsChangeStatusDetails(Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS}. + * + * @return The {@link MemberSpaceLimitsChangeStatusDetails} value associated + * with this instance if {@link #isMemberSpaceLimitsChangeStatusDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangeStatusDetails} is {@code false}. + */ + public MemberSpaceLimitsChangeStatusDetails getMemberSpaceLimitsChangeStatusDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangeStatusDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsRemoveCustomQuotaDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsRemoveCustomQuotaDetails(MemberSpaceLimitsRemoveCustomQuotaDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsRemoveCustomQuotaDetails(Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS}. + * + * @return The {@link MemberSpaceLimitsRemoveCustomQuotaDetails} value + * associated with this instance if {@link + * #isMemberSpaceLimitsRemoveCustomQuotaDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsRemoveCustomQuotaDetails} is {@code false}. + */ + public MemberSpaceLimitsRemoveCustomQuotaDetails getMemberSpaceLimitsRemoveCustomQuotaDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsRemoveCustomQuotaDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SUGGEST_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SUGGEST_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberSuggestDetails() { + return this._tag == Tag.MEMBER_SUGGEST_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SUGGEST_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SUGGEST_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSuggestDetails(MemberSuggestDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSuggestDetails(Tag.MEMBER_SUGGEST_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#MEMBER_SUGGEST_DETAILS}. + * + * @return The {@link MemberSuggestDetails} value associated with this + * instance if {@link #isMemberSuggestDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberSuggestDetails} is + * {@code false}. + */ + public MemberSuggestDetails getMemberSuggestDetailsValue() { + if (this._tag != Tag.MEMBER_SUGGEST_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SUGGEST_DETAILS, but was Tag." + this._tag.name()); + } + return memberSuggestDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberTransferAccountContentsDetails() { + return this._tag == Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberTransferAccountContentsDetails(MemberTransferAccountContentsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberTransferAccountContentsDetails(Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS}. + * + * @return The {@link MemberTransferAccountContentsDetails} value associated + * with this instance if {@link #isMemberTransferAccountContentsDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberTransferAccountContentsDetails} is {@code false}. + */ + public MemberTransferAccountContentsDetails getMemberTransferAccountContentsDetailsValue() { + if (this._tag != Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS, but was Tag." + this._tag.name()); + } + return memberTransferAccountContentsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED_DETAILS}, {@code false} otherwise. + */ + public boolean isPendingSecondaryEmailAddedDetails() { + return this._tag == Tag.PENDING_SECONDARY_EMAIL_ADDED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PENDING_SECONDARY_EMAIL_ADDED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails pendingSecondaryEmailAddedDetails(PendingSecondaryEmailAddedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPendingSecondaryEmailAddedDetails(Tag.PENDING_SECONDARY_EMAIL_ADDED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED_DETAILS}. + * + * @return The {@link PendingSecondaryEmailAddedDetails} value associated + * with this instance if {@link #isPendingSecondaryEmailAddedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPendingSecondaryEmailAddedDetails} is {@code false}. + */ + public PendingSecondaryEmailAddedDetails getPendingSecondaryEmailAddedDetailsValue() { + if (this._tag != Tag.PENDING_SECONDARY_EMAIL_ADDED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PENDING_SECONDARY_EMAIL_ADDED_DETAILS, but was Tag." + this._tag.name()); + } + return pendingSecondaryEmailAddedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_EMAIL_DELETED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_EMAIL_DELETED_DETAILS}, {@code false} otherwise. + */ + public boolean isSecondaryEmailDeletedDetails() { + return this._tag == Tag.SECONDARY_EMAIL_DELETED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SECONDARY_EMAIL_DELETED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SECONDARY_EMAIL_DELETED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails secondaryEmailDeletedDetails(SecondaryEmailDeletedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSecondaryEmailDeletedDetails(Tag.SECONDARY_EMAIL_DELETED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SECONDARY_EMAIL_DELETED_DETAILS}. + * + * @return The {@link SecondaryEmailDeletedDetails} value associated with + * this instance if {@link #isSecondaryEmailDeletedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSecondaryEmailDeletedDetails} + * is {@code false}. + */ + public SecondaryEmailDeletedDetails getSecondaryEmailDeletedDetailsValue() { + if (this._tag != Tag.SECONDARY_EMAIL_DELETED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_EMAIL_DELETED_DETAILS, but was Tag." + this._tag.name()); + } + return secondaryEmailDeletedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_EMAIL_VERIFIED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_EMAIL_VERIFIED_DETAILS}, {@code false} otherwise. + */ + public boolean isSecondaryEmailVerifiedDetails() { + return this._tag == Tag.SECONDARY_EMAIL_VERIFIED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SECONDARY_EMAIL_VERIFIED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SECONDARY_EMAIL_VERIFIED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails secondaryEmailVerifiedDetails(SecondaryEmailVerifiedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSecondaryEmailVerifiedDetails(Tag.SECONDARY_EMAIL_VERIFIED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SECONDARY_EMAIL_VERIFIED_DETAILS}. + * + * @return The {@link SecondaryEmailVerifiedDetails} value associated with + * this instance if {@link #isSecondaryEmailVerifiedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSecondaryEmailVerifiedDetails} is {@code false}. + */ + public SecondaryEmailVerifiedDetails getSecondaryEmailVerifiedDetailsValue() { + if (this._tag != Tag.SECONDARY_EMAIL_VERIFIED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_EMAIL_VERIFIED_DETAILS, but was Tag." + this._tag.name()); + } + return secondaryEmailVerifiedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isSecondaryMailsPolicyChangedDetails() { + return this._tag == Tag.SECONDARY_MAILS_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SECONDARY_MAILS_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails secondaryMailsPolicyChangedDetails(SecondaryMailsPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSecondaryMailsPolicyChangedDetails(Tag.SECONDARY_MAILS_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED_DETAILS}. + * + * @return The {@link SecondaryMailsPolicyChangedDetails} value associated + * with this instance if {@link #isSecondaryMailsPolicyChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSecondaryMailsPolicyChangedDetails} is {@code false}. + */ + public SecondaryMailsPolicyChangedDetails getSecondaryMailsPolicyChangedDetailsValue() { + if (this._tag != Tag.SECONDARY_MAILS_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_MAILS_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return secondaryMailsPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_ADD_PAGE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_ADD_PAGE_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderAddPageDetails() { + return this._tag == Tag.BINDER_ADD_PAGE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_ADD_PAGE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_ADD_PAGE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderAddPageDetails(BinderAddPageDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderAddPageDetails(Tag.BINDER_ADD_PAGE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#BINDER_ADD_PAGE_DETAILS}. + * + * @return The {@link BinderAddPageDetails} value associated with this + * instance if {@link #isBinderAddPageDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderAddPageDetails} is + * {@code false}. + */ + public BinderAddPageDetails getBinderAddPageDetailsValue() { + if (this._tag != Tag.BINDER_ADD_PAGE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_ADD_PAGE_DETAILS, but was Tag." + this._tag.name()); + } + return binderAddPageDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_ADD_SECTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_ADD_SECTION_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderAddSectionDetails() { + return this._tag == Tag.BINDER_ADD_SECTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_ADD_SECTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_ADD_SECTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderAddSectionDetails(BinderAddSectionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderAddSectionDetails(Tag.BINDER_ADD_SECTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#BINDER_ADD_SECTION_DETAILS}. + * + * @return The {@link BinderAddSectionDetails} value associated with this + * instance if {@link #isBinderAddSectionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderAddSectionDetails} is + * {@code false}. + */ + public BinderAddSectionDetails getBinderAddSectionDetailsValue() { + if (this._tag != Tag.BINDER_ADD_SECTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_ADD_SECTION_DETAILS, but was Tag." + this._tag.name()); + } + return binderAddSectionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REMOVE_PAGE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REMOVE_PAGE_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderRemovePageDetails() { + return this._tag == Tag.BINDER_REMOVE_PAGE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_REMOVE_PAGE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_REMOVE_PAGE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderRemovePageDetails(BinderRemovePageDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderRemovePageDetails(Tag.BINDER_REMOVE_PAGE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#BINDER_REMOVE_PAGE_DETAILS}. + * + * @return The {@link BinderRemovePageDetails} value associated with this + * instance if {@link #isBinderRemovePageDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRemovePageDetails} is + * {@code false}. + */ + public BinderRemovePageDetails getBinderRemovePageDetailsValue() { + if (this._tag != Tag.BINDER_REMOVE_PAGE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REMOVE_PAGE_DETAILS, but was Tag." + this._tag.name()); + } + return binderRemovePageDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REMOVE_SECTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REMOVE_SECTION_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderRemoveSectionDetails() { + return this._tag == Tag.BINDER_REMOVE_SECTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_REMOVE_SECTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_REMOVE_SECTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderRemoveSectionDetails(BinderRemoveSectionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderRemoveSectionDetails(Tag.BINDER_REMOVE_SECTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#BINDER_REMOVE_SECTION_DETAILS}. + * + * @return The {@link BinderRemoveSectionDetails} value associated with this + * instance if {@link #isBinderRemoveSectionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRemoveSectionDetails} + * is {@code false}. + */ + public BinderRemoveSectionDetails getBinderRemoveSectionDetailsValue() { + if (this._tag != Tag.BINDER_REMOVE_SECTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REMOVE_SECTION_DETAILS, but was Tag." + this._tag.name()); + } + return binderRemoveSectionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_RENAME_PAGE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_RENAME_PAGE_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderRenamePageDetails() { + return this._tag == Tag.BINDER_RENAME_PAGE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_RENAME_PAGE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_RENAME_PAGE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderRenamePageDetails(BinderRenamePageDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderRenamePageDetails(Tag.BINDER_RENAME_PAGE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#BINDER_RENAME_PAGE_DETAILS}. + * + * @return The {@link BinderRenamePageDetails} value associated with this + * instance if {@link #isBinderRenamePageDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRenamePageDetails} is + * {@code false}. + */ + public BinderRenamePageDetails getBinderRenamePageDetailsValue() { + if (this._tag != Tag.BINDER_RENAME_PAGE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_RENAME_PAGE_DETAILS, but was Tag." + this._tag.name()); + } + return binderRenamePageDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_RENAME_SECTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_RENAME_SECTION_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderRenameSectionDetails() { + return this._tag == Tag.BINDER_RENAME_SECTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_RENAME_SECTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_RENAME_SECTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderRenameSectionDetails(BinderRenameSectionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderRenameSectionDetails(Tag.BINDER_RENAME_SECTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#BINDER_RENAME_SECTION_DETAILS}. + * + * @return The {@link BinderRenameSectionDetails} value associated with this + * instance if {@link #isBinderRenameSectionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRenameSectionDetails} + * is {@code false}. + */ + public BinderRenameSectionDetails getBinderRenameSectionDetailsValue() { + if (this._tag != Tag.BINDER_RENAME_SECTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_RENAME_SECTION_DETAILS, but was Tag." + this._tag.name()); + } + return binderRenameSectionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REORDER_PAGE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REORDER_PAGE_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderReorderPageDetails() { + return this._tag == Tag.BINDER_REORDER_PAGE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_REORDER_PAGE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_REORDER_PAGE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderReorderPageDetails(BinderReorderPageDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderReorderPageDetails(Tag.BINDER_REORDER_PAGE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#BINDER_REORDER_PAGE_DETAILS}. + * + * @return The {@link BinderReorderPageDetails} value associated with this + * instance if {@link #isBinderReorderPageDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderReorderPageDetails} is + * {@code false}. + */ + public BinderReorderPageDetails getBinderReorderPageDetailsValue() { + if (this._tag != Tag.BINDER_REORDER_PAGE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REORDER_PAGE_DETAILS, but was Tag." + this._tag.name()); + } + return binderReorderPageDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REORDER_SECTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REORDER_SECTION_DETAILS}, {@code false} otherwise. + */ + public boolean isBinderReorderSectionDetails() { + return this._tag == Tag.BINDER_REORDER_SECTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#BINDER_REORDER_SECTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#BINDER_REORDER_SECTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails binderReorderSectionDetails(BinderReorderSectionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndBinderReorderSectionDetails(Tag.BINDER_REORDER_SECTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#BINDER_REORDER_SECTION_DETAILS}. + * + * @return The {@link BinderReorderSectionDetails} value associated with + * this instance if {@link #isBinderReorderSectionDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isBinderReorderSectionDetails} + * is {@code false}. + */ + public BinderReorderSectionDetails getBinderReorderSectionDetailsValue() { + if (this._tag != Tag.BINDER_REORDER_SECTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REORDER_SECTION_DETAILS, but was Tag." + this._tag.name()); + } + return binderReorderSectionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_ADD_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_ADD_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperContentAddMemberDetails() { + return this._tag == Tag.PAPER_CONTENT_ADD_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_ADD_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_ADD_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentAddMemberDetails(PaperContentAddMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentAddMemberDetails(Tag.PAPER_CONTENT_ADD_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CONTENT_ADD_MEMBER_DETAILS}. + * + * @return The {@link PaperContentAddMemberDetails} value associated with + * this instance if {@link #isPaperContentAddMemberDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperContentAddMemberDetails} + * is {@code false}. + */ + public PaperContentAddMemberDetails getPaperContentAddMemberDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_ADD_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_ADD_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentAddMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperContentAddToFolderDetails() { + return this._tag == Tag.PAPER_CONTENT_ADD_TO_FOLDER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_ADD_TO_FOLDER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentAddToFolderDetails(PaperContentAddToFolderDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentAddToFolderDetails(Tag.PAPER_CONTENT_ADD_TO_FOLDER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER_DETAILS}. + * + * @return The {@link PaperContentAddToFolderDetails} value associated with + * this instance if {@link #isPaperContentAddToFolderDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperContentAddToFolderDetails} is {@code false}. + */ + public PaperContentAddToFolderDetails getPaperContentAddToFolderDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_ADD_TO_FOLDER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_ADD_TO_FOLDER_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentAddToFolderDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_ARCHIVE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_ARCHIVE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperContentArchiveDetails() { + return this._tag == Tag.PAPER_CONTENT_ARCHIVE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_ARCHIVE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_ARCHIVE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentArchiveDetails(PaperContentArchiveDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentArchiveDetails(Tag.PAPER_CONTENT_ARCHIVE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CONTENT_ARCHIVE_DETAILS}. + * + * @return The {@link PaperContentArchiveDetails} value associated with this + * instance if {@link #isPaperContentArchiveDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentArchiveDetails} + * is {@code false}. + */ + public PaperContentArchiveDetails getPaperContentArchiveDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_ARCHIVE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_ARCHIVE_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentArchiveDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperContentCreateDetails() { + return this._tag == Tag.PAPER_CONTENT_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentCreateDetails(PaperContentCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentCreateDetails(Tag.PAPER_CONTENT_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_CONTENT_CREATE_DETAILS}. + * + * @return The {@link PaperContentCreateDetails} value associated with this + * instance if {@link #isPaperContentCreateDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentCreateDetails} is + * {@code false}. + */ + public PaperContentCreateDetails getPaperContentCreateDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperContentPermanentlyDeleteDetails() { + return this._tag == Tag.PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentPermanentlyDeleteDetails(PaperContentPermanentlyDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentPermanentlyDeleteDetails(Tag.PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS}. + * + * @return The {@link PaperContentPermanentlyDeleteDetails} value associated + * with this instance if {@link #isPaperContentPermanentlyDeleteDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperContentPermanentlyDeleteDetails} is {@code false}. + */ + public PaperContentPermanentlyDeleteDetails getPaperContentPermanentlyDeleteDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentPermanentlyDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperContentRemoveFromFolderDetails() { + return this._tag == Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentRemoveFromFolderDetails(PaperContentRemoveFromFolderDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentRemoveFromFolderDetails(Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS}. + * + * @return The {@link PaperContentRemoveFromFolderDetails} value associated + * with this instance if {@link #isPaperContentRemoveFromFolderDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperContentRemoveFromFolderDetails} is {@code false}. + */ + public PaperContentRemoveFromFolderDetails getPaperContentRemoveFromFolderDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentRemoveFromFolderDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperContentRemoveMemberDetails() { + return this._tag == Tag.PAPER_CONTENT_REMOVE_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_REMOVE_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentRemoveMemberDetails(PaperContentRemoveMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentRemoveMemberDetails(Tag.PAPER_CONTENT_REMOVE_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER_DETAILS}. + * + * @return The {@link PaperContentRemoveMemberDetails} value associated with + * this instance if {@link #isPaperContentRemoveMemberDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperContentRemoveMemberDetails} is {@code false}. + */ + public PaperContentRemoveMemberDetails getPaperContentRemoveMemberDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_REMOVE_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_REMOVE_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentRemoveMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_RENAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_RENAME_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperContentRenameDetails() { + return this._tag == Tag.PAPER_CONTENT_RENAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_RENAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_RENAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentRenameDetails(PaperContentRenameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentRenameDetails(Tag.PAPER_CONTENT_RENAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_CONTENT_RENAME_DETAILS}. + * + * @return The {@link PaperContentRenameDetails} value associated with this + * instance if {@link #isPaperContentRenameDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentRenameDetails} is + * {@code false}. + */ + public PaperContentRenameDetails getPaperContentRenameDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_RENAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_RENAME_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentRenameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_RESTORE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_RESTORE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperContentRestoreDetails() { + return this._tag == Tag.PAPER_CONTENT_RESTORE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CONTENT_RESTORE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CONTENT_RESTORE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperContentRestoreDetails(PaperContentRestoreDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperContentRestoreDetails(Tag.PAPER_CONTENT_RESTORE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CONTENT_RESTORE_DETAILS}. + * + * @return The {@link PaperContentRestoreDetails} value associated with this + * instance if {@link #isPaperContentRestoreDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentRestoreDetails} + * is {@code false}. + */ + public PaperContentRestoreDetails getPaperContentRestoreDetailsValue() { + if (this._tag != Tag.PAPER_CONTENT_RESTORE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_RESTORE_DETAILS, but was Tag." + this._tag.name()); + } + return paperContentRestoreDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_ADD_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_ADD_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocAddCommentDetails() { + return this._tag == Tag.PAPER_DOC_ADD_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_ADD_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_ADD_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocAddCommentDetails(PaperDocAddCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocAddCommentDetails(Tag.PAPER_DOC_ADD_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_ADD_COMMENT_DETAILS}. + * + * @return The {@link PaperDocAddCommentDetails} value associated with this + * instance if {@link #isPaperDocAddCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocAddCommentDetails} is + * {@code false}. + */ + public PaperDocAddCommentDetails getPaperDocAddCommentDetailsValue() { + if (this._tag != Tag.PAPER_DOC_ADD_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_ADD_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocAddCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocChangeMemberRoleDetails() { + return this._tag == Tag.PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocChangeMemberRoleDetails(PaperDocChangeMemberRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocChangeMemberRoleDetails(Tag.PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS}. + * + * @return The {@link PaperDocChangeMemberRoleDetails} value associated with + * this instance if {@link #isPaperDocChangeMemberRoleDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperDocChangeMemberRoleDetails} is {@code false}. + */ + public PaperDocChangeMemberRoleDetails getPaperDocChangeMemberRoleDetailsValue() { + if (this._tag != Tag.PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocChangeMemberRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperDocChangeSharingPolicyDetails() { + return this._tag == Tag.PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocChangeSharingPolicyDetails(PaperDocChangeSharingPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocChangeSharingPolicyDetails(Tag.PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS}. + * + * @return The {@link PaperDocChangeSharingPolicyDetails} value associated + * with this instance if {@link #isPaperDocChangeSharingPolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperDocChangeSharingPolicyDetails} is {@code false}. + */ + public PaperDocChangeSharingPolicyDetails getPaperDocChangeSharingPolicyDetailsValue() { + if (this._tag != Tag.PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocChangeSharingPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocChangeSubscriptionDetails() { + return this._tag == Tag.PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocChangeSubscriptionDetails(PaperDocChangeSubscriptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocChangeSubscriptionDetails(Tag.PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS}. + * + * @return The {@link PaperDocChangeSubscriptionDetails} value associated + * with this instance if {@link #isPaperDocChangeSubscriptionDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperDocChangeSubscriptionDetails} is {@code false}. + */ + public PaperDocChangeSubscriptionDetails getPaperDocChangeSubscriptionDetailsValue() { + if (this._tag != Tag.PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocChangeSubscriptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_DELETED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_DELETED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocDeletedDetails() { + return this._tag == Tag.PAPER_DOC_DELETED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_DELETED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_DELETED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocDeletedDetails(PaperDocDeletedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocDeletedDetails(Tag.PAPER_DOC_DELETED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_DELETED_DETAILS}. + * + * @return The {@link PaperDocDeletedDetails} value associated with this + * instance if {@link #isPaperDocDeletedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocDeletedDetails} is + * {@code false}. + */ + public PaperDocDeletedDetails getPaperDocDeletedDetailsValue() { + if (this._tag != Tag.PAPER_DOC_DELETED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_DELETED_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocDeletedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_DELETE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_DELETE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocDeleteCommentDetails() { + return this._tag == Tag.PAPER_DOC_DELETE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_DELETE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_DELETE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocDeleteCommentDetails(PaperDocDeleteCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocDeleteCommentDetails(Tag.PAPER_DOC_DELETE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_DELETE_COMMENT_DETAILS}. + * + * @return The {@link PaperDocDeleteCommentDetails} value associated with + * this instance if {@link #isPaperDocDeleteCommentDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperDocDeleteCommentDetails} + * is {@code false}. + */ + public PaperDocDeleteCommentDetails getPaperDocDeleteCommentDetailsValue() { + if (this._tag != Tag.PAPER_DOC_DELETE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_DELETE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocDeleteCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_DOWNLOAD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_DOWNLOAD_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocDownloadDetails() { + return this._tag == Tag.PAPER_DOC_DOWNLOAD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_DOWNLOAD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_DOWNLOAD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocDownloadDetails(PaperDocDownloadDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocDownloadDetails(Tag.PAPER_DOC_DOWNLOAD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_DOWNLOAD_DETAILS}. + * + * @return The {@link PaperDocDownloadDetails} value associated with this + * instance if {@link #isPaperDocDownloadDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocDownloadDetails} is + * {@code false}. + */ + public PaperDocDownloadDetails getPaperDocDownloadDetailsValue() { + if (this._tag != Tag.PAPER_DOC_DOWNLOAD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_DOWNLOAD_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocDownloadDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_EDIT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_EDIT_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocEditDetails() { + return this._tag == Tag.PAPER_DOC_EDIT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_EDIT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_EDIT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocEditDetails(PaperDocEditDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocEditDetails(Tag.PAPER_DOC_EDIT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_EDIT_DETAILS}. + * + * @return The {@link PaperDocEditDetails} value associated with this + * instance if {@link #isPaperDocEditDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocEditDetails} is + * {@code false}. + */ + public PaperDocEditDetails getPaperDocEditDetailsValue() { + if (this._tag != Tag.PAPER_DOC_EDIT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_EDIT_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocEditDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_EDIT_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_EDIT_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocEditCommentDetails() { + return this._tag == Tag.PAPER_DOC_EDIT_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_EDIT_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_EDIT_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocEditCommentDetails(PaperDocEditCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocEditCommentDetails(Tag.PAPER_DOC_EDIT_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_EDIT_COMMENT_DETAILS}. + * + * @return The {@link PaperDocEditCommentDetails} value associated with this + * instance if {@link #isPaperDocEditCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocEditCommentDetails} + * is {@code false}. + */ + public PaperDocEditCommentDetails getPaperDocEditCommentDetailsValue() { + if (this._tag != Tag.PAPER_DOC_EDIT_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_EDIT_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocEditCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_FOLLOWED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_FOLLOWED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocFollowedDetails() { + return this._tag == Tag.PAPER_DOC_FOLLOWED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_FOLLOWED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_FOLLOWED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocFollowedDetails(PaperDocFollowedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocFollowedDetails(Tag.PAPER_DOC_FOLLOWED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_FOLLOWED_DETAILS}. + * + * @return The {@link PaperDocFollowedDetails} value associated with this + * instance if {@link #isPaperDocFollowedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocFollowedDetails} is + * {@code false}. + */ + public PaperDocFollowedDetails getPaperDocFollowedDetailsValue() { + if (this._tag != Tag.PAPER_DOC_FOLLOWED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_FOLLOWED_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocFollowedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_MENTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_MENTION_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocMentionDetails() { + return this._tag == Tag.PAPER_DOC_MENTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_MENTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_MENTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocMentionDetails(PaperDocMentionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocMentionDetails(Tag.PAPER_DOC_MENTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_MENTION_DETAILS}. + * + * @return The {@link PaperDocMentionDetails} value associated with this + * instance if {@link #isPaperDocMentionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocMentionDetails} is + * {@code false}. + */ + public PaperDocMentionDetails getPaperDocMentionDetailsValue() { + if (this._tag != Tag.PAPER_DOC_MENTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_MENTION_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocMentionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocOwnershipChangedDetails() { + return this._tag == Tag.PAPER_DOC_OWNERSHIP_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_OWNERSHIP_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocOwnershipChangedDetails(PaperDocOwnershipChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocOwnershipChangedDetails(Tag.PAPER_DOC_OWNERSHIP_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED_DETAILS}. + * + * @return The {@link PaperDocOwnershipChangedDetails} value associated with + * this instance if {@link #isPaperDocOwnershipChangedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperDocOwnershipChangedDetails} is {@code false}. + */ + public PaperDocOwnershipChangedDetails getPaperDocOwnershipChangedDetailsValue() { + if (this._tag != Tag.PAPER_DOC_OWNERSHIP_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_OWNERSHIP_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocOwnershipChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_REQUEST_ACCESS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_REQUEST_ACCESS_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocRequestAccessDetails() { + return this._tag == Tag.PAPER_DOC_REQUEST_ACCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_REQUEST_ACCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_REQUEST_ACCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocRequestAccessDetails(PaperDocRequestAccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocRequestAccessDetails(Tag.PAPER_DOC_REQUEST_ACCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_REQUEST_ACCESS_DETAILS}. + * + * @return The {@link PaperDocRequestAccessDetails} value associated with + * this instance if {@link #isPaperDocRequestAccessDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperDocRequestAccessDetails} + * is {@code false}. + */ + public PaperDocRequestAccessDetails getPaperDocRequestAccessDetailsValue() { + if (this._tag != Tag.PAPER_DOC_REQUEST_ACCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_REQUEST_ACCESS_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocRequestAccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocResolveCommentDetails() { + return this._tag == Tag.PAPER_DOC_RESOLVE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_RESOLVE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocResolveCommentDetails(PaperDocResolveCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocResolveCommentDetails(Tag.PAPER_DOC_RESOLVE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT_DETAILS}. + * + * @return The {@link PaperDocResolveCommentDetails} value associated with + * this instance if {@link #isPaperDocResolveCommentDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperDocResolveCommentDetails} is {@code false}. + */ + public PaperDocResolveCommentDetails getPaperDocResolveCommentDetailsValue() { + if (this._tag != Tag.PAPER_DOC_RESOLVE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_RESOLVE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocResolveCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_REVERT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_REVERT_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocRevertDetails() { + return this._tag == Tag.PAPER_DOC_REVERT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_REVERT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_REVERT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocRevertDetails(PaperDocRevertDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocRevertDetails(Tag.PAPER_DOC_REVERT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_REVERT_DETAILS}. + * + * @return The {@link PaperDocRevertDetails} value associated with this + * instance if {@link #isPaperDocRevertDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocRevertDetails} is + * {@code false}. + */ + public PaperDocRevertDetails getPaperDocRevertDetailsValue() { + if (this._tag != Tag.PAPER_DOC_REVERT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_REVERT_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocRevertDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_SLACK_SHARE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_SLACK_SHARE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocSlackShareDetails() { + return this._tag == Tag.PAPER_DOC_SLACK_SHARE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_SLACK_SHARE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_SLACK_SHARE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocSlackShareDetails(PaperDocSlackShareDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocSlackShareDetails(Tag.PAPER_DOC_SLACK_SHARE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_SLACK_SHARE_DETAILS}. + * + * @return The {@link PaperDocSlackShareDetails} value associated with this + * instance if {@link #isPaperDocSlackShareDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocSlackShareDetails} is + * {@code false}. + */ + public PaperDocSlackShareDetails getPaperDocSlackShareDetailsValue() { + if (this._tag != Tag.PAPER_DOC_SLACK_SHARE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_SLACK_SHARE_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocSlackShareDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_TEAM_INVITE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_TEAM_INVITE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocTeamInviteDetails() { + return this._tag == Tag.PAPER_DOC_TEAM_INVITE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_TEAM_INVITE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_TEAM_INVITE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocTeamInviteDetails(PaperDocTeamInviteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocTeamInviteDetails(Tag.PAPER_DOC_TEAM_INVITE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_TEAM_INVITE_DETAILS}. + * + * @return The {@link PaperDocTeamInviteDetails} value associated with this + * instance if {@link #isPaperDocTeamInviteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocTeamInviteDetails} is + * {@code false}. + */ + public PaperDocTeamInviteDetails getPaperDocTeamInviteDetailsValue() { + if (this._tag != Tag.PAPER_DOC_TEAM_INVITE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_TEAM_INVITE_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocTeamInviteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_TRASHED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_TRASHED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocTrashedDetails() { + return this._tag == Tag.PAPER_DOC_TRASHED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_TRASHED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_TRASHED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocTrashedDetails(PaperDocTrashedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocTrashedDetails(Tag.PAPER_DOC_TRASHED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_TRASHED_DETAILS}. + * + * @return The {@link PaperDocTrashedDetails} value associated with this + * instance if {@link #isPaperDocTrashedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocTrashedDetails} is + * {@code false}. + */ + public PaperDocTrashedDetails getPaperDocTrashedDetailsValue() { + if (this._tag != Tag.PAPER_DOC_TRASHED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_TRASHED_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocTrashedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocUnresolveCommentDetails() { + return this._tag == Tag.PAPER_DOC_UNRESOLVE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_UNRESOLVE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocUnresolveCommentDetails(PaperDocUnresolveCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocUnresolveCommentDetails(Tag.PAPER_DOC_UNRESOLVE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT_DETAILS}. + * + * @return The {@link PaperDocUnresolveCommentDetails} value associated with + * this instance if {@link #isPaperDocUnresolveCommentDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperDocUnresolveCommentDetails} is {@code false}. + */ + public PaperDocUnresolveCommentDetails getPaperDocUnresolveCommentDetailsValue() { + if (this._tag != Tag.PAPER_DOC_UNRESOLVE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_UNRESOLVE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocUnresolveCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_UNTRASHED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_UNTRASHED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocUntrashedDetails() { + return this._tag == Tag.PAPER_DOC_UNTRASHED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_UNTRASHED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_UNTRASHED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocUntrashedDetails(PaperDocUntrashedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocUntrashedDetails(Tag.PAPER_DOC_UNTRASHED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_UNTRASHED_DETAILS}. + * + * @return The {@link PaperDocUntrashedDetails} value associated with this + * instance if {@link #isPaperDocUntrashedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocUntrashedDetails} is + * {@code false}. + */ + public PaperDocUntrashedDetails getPaperDocUntrashedDetailsValue() { + if (this._tag != Tag.PAPER_DOC_UNTRASHED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_UNTRASHED_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocUntrashedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_VIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_VIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDocViewDetails() { + return this._tag == Tag.PAPER_DOC_VIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DOC_VIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DOC_VIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDocViewDetails(PaperDocViewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDocViewDetails(Tag.PAPER_DOC_VIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_DOC_VIEW_DETAILS}. + * + * @return The {@link PaperDocViewDetails} value associated with this + * instance if {@link #isPaperDocViewDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocViewDetails} is + * {@code false}. + */ + public PaperDocViewDetails getPaperDocViewDetailsValue() { + if (this._tag != Tag.PAPER_DOC_VIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_VIEW_DETAILS, but was Tag." + this._tag.name()); + } + return paperDocViewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperExternalViewAllowDetails() { + return this._tag == Tag.PAPER_EXTERNAL_VIEW_ALLOW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_EXTERNAL_VIEW_ALLOW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperExternalViewAllowDetails(PaperExternalViewAllowDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperExternalViewAllowDetails(Tag.PAPER_EXTERNAL_VIEW_ALLOW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW_DETAILS}. + * + * @return The {@link PaperExternalViewAllowDetails} value associated with + * this instance if {@link #isPaperExternalViewAllowDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperExternalViewAllowDetails} is {@code false}. + */ + public PaperExternalViewAllowDetails getPaperExternalViewAllowDetailsValue() { + if (this._tag != Tag.PAPER_EXTERNAL_VIEW_ALLOW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_EXTERNAL_VIEW_ALLOW_DETAILS, but was Tag." + this._tag.name()); + } + return paperExternalViewAllowDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperExternalViewDefaultTeamDetails() { + return this._tag == Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperExternalViewDefaultTeamDetails(PaperExternalViewDefaultTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperExternalViewDefaultTeamDetails(Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS}. + * + * @return The {@link PaperExternalViewDefaultTeamDetails} value associated + * with this instance if {@link #isPaperExternalViewDefaultTeamDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperExternalViewDefaultTeamDetails} is {@code false}. + */ + public PaperExternalViewDefaultTeamDetails getPaperExternalViewDefaultTeamDetailsValue() { + if (this._tag != Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return paperExternalViewDefaultTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperExternalViewForbidDetails() { + return this._tag == Tag.PAPER_EXTERNAL_VIEW_FORBID_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_EXTERNAL_VIEW_FORBID_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperExternalViewForbidDetails(PaperExternalViewForbidDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperExternalViewForbidDetails(Tag.PAPER_EXTERNAL_VIEW_FORBID_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID_DETAILS}. + * + * @return The {@link PaperExternalViewForbidDetails} value associated with + * this instance if {@link #isPaperExternalViewForbidDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperExternalViewForbidDetails} is {@code false}. + */ + public PaperExternalViewForbidDetails getPaperExternalViewForbidDetailsValue() { + if (this._tag != Tag.PAPER_EXTERNAL_VIEW_FORBID_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_EXTERNAL_VIEW_FORBID_DETAILS, but was Tag." + this._tag.name()); + } + return paperExternalViewForbidDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperFolderChangeSubscriptionDetails() { + return this._tag == Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperFolderChangeSubscriptionDetails(PaperFolderChangeSubscriptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperFolderChangeSubscriptionDetails(Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS}. + * + * @return The {@link PaperFolderChangeSubscriptionDetails} value associated + * with this instance if {@link #isPaperFolderChangeSubscriptionDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperFolderChangeSubscriptionDetails} is {@code false}. + */ + public PaperFolderChangeSubscriptionDetails getPaperFolderChangeSubscriptionDetailsValue() { + if (this._tag != Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS, but was Tag." + this._tag.name()); + } + return paperFolderChangeSubscriptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_DELETED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_DELETED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperFolderDeletedDetails() { + return this._tag == Tag.PAPER_FOLDER_DELETED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_FOLDER_DELETED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_FOLDER_DELETED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperFolderDeletedDetails(PaperFolderDeletedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperFolderDeletedDetails(Tag.PAPER_FOLDER_DELETED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_FOLDER_DELETED_DETAILS}. + * + * @return The {@link PaperFolderDeletedDetails} value associated with this + * instance if {@link #isPaperFolderDeletedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperFolderDeletedDetails} is + * {@code false}. + */ + public PaperFolderDeletedDetails getPaperFolderDeletedDetailsValue() { + if (this._tag != Tag.PAPER_FOLDER_DELETED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_DELETED_DETAILS, but was Tag." + this._tag.name()); + } + return paperFolderDeletedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_FOLLOWED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_FOLLOWED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperFolderFollowedDetails() { + return this._tag == Tag.PAPER_FOLDER_FOLLOWED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_FOLDER_FOLLOWED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_FOLDER_FOLLOWED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperFolderFollowedDetails(PaperFolderFollowedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperFolderFollowedDetails(Tag.PAPER_FOLDER_FOLLOWED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_FOLDER_FOLLOWED_DETAILS}. + * + * @return The {@link PaperFolderFollowedDetails} value associated with this + * instance if {@link #isPaperFolderFollowedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperFolderFollowedDetails} + * is {@code false}. + */ + public PaperFolderFollowedDetails getPaperFolderFollowedDetailsValue() { + if (this._tag != Tag.PAPER_FOLDER_FOLLOWED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_FOLLOWED_DETAILS, but was Tag." + this._tag.name()); + } + return paperFolderFollowedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_TEAM_INVITE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_TEAM_INVITE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperFolderTeamInviteDetails() { + return this._tag == Tag.PAPER_FOLDER_TEAM_INVITE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_FOLDER_TEAM_INVITE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_FOLDER_TEAM_INVITE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperFolderTeamInviteDetails(PaperFolderTeamInviteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperFolderTeamInviteDetails(Tag.PAPER_FOLDER_TEAM_INVITE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_FOLDER_TEAM_INVITE_DETAILS}. + * + * @return The {@link PaperFolderTeamInviteDetails} value associated with + * this instance if {@link #isPaperFolderTeamInviteDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperFolderTeamInviteDetails} + * is {@code false}. + */ + public PaperFolderTeamInviteDetails getPaperFolderTeamInviteDetailsValue() { + if (this._tag != Tag.PAPER_FOLDER_TEAM_INVITE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_TEAM_INVITE_DETAILS, but was Tag." + this._tag.name()); + } + return paperFolderTeamInviteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperPublishedLinkChangePermissionDetails() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperPublishedLinkChangePermissionDetails(PaperPublishedLinkChangePermissionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperPublishedLinkChangePermissionDetails(Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS}. + * + * @return The {@link PaperPublishedLinkChangePermissionDetails} value + * associated with this instance if {@link + * #isPaperPublishedLinkChangePermissionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperPublishedLinkChangePermissionDetails} is {@code false}. + */ + public PaperPublishedLinkChangePermissionDetails getPaperPublishedLinkChangePermissionDetailsValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS, but was Tag." + this._tag.name()); + } + return paperPublishedLinkChangePermissionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperPublishedLinkCreateDetails() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_PUBLISHED_LINK_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperPublishedLinkCreateDetails(PaperPublishedLinkCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperPublishedLinkCreateDetails(Tag.PAPER_PUBLISHED_LINK_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE_DETAILS}. + * + * @return The {@link PaperPublishedLinkCreateDetails} value associated with + * this instance if {@link #isPaperPublishedLinkCreateDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperPublishedLinkCreateDetails} is {@code false}. + */ + public PaperPublishedLinkCreateDetails getPaperPublishedLinkCreateDetailsValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return paperPublishedLinkCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperPublishedLinkDisabledDetails() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_DISABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_PUBLISHED_LINK_DISABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperPublishedLinkDisabledDetails(PaperPublishedLinkDisabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperPublishedLinkDisabledDetails(Tag.PAPER_PUBLISHED_LINK_DISABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED_DETAILS}. + * + * @return The {@link PaperPublishedLinkDisabledDetails} value associated + * with this instance if {@link #isPaperPublishedLinkDisabledDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperPublishedLinkDisabledDetails} is {@code false}. + */ + public PaperPublishedLinkDisabledDetails getPaperPublishedLinkDisabledDetailsValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_DISABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_DISABLED_DETAILS, but was Tag." + this._tag.name()); + } + return paperPublishedLinkDisabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperPublishedLinkViewDetails() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_VIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_PUBLISHED_LINK_VIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperPublishedLinkViewDetails(PaperPublishedLinkViewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperPublishedLinkViewDetails(Tag.PAPER_PUBLISHED_LINK_VIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW_DETAILS}. + * + * @return The {@link PaperPublishedLinkViewDetails} value associated with + * this instance if {@link #isPaperPublishedLinkViewDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperPublishedLinkViewDetails} is {@code false}. + */ + public PaperPublishedLinkViewDetails getPaperPublishedLinkViewDetailsValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_VIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_VIEW_DETAILS, but was Tag." + this._tag.name()); + } + return paperPublishedLinkViewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_CHANGE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_CHANGE_DETAILS}, {@code false} otherwise. + */ + public boolean isPasswordChangeDetails() { + return this._tag == Tag.PASSWORD_CHANGE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PASSWORD_CHANGE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PASSWORD_CHANGE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails passwordChangeDetails(PasswordChangeDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPasswordChangeDetails(Tag.PASSWORD_CHANGE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PASSWORD_CHANGE_DETAILS}. + * + * @return The {@link PasswordChangeDetails} value associated with this + * instance if {@link #isPasswordChangeDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPasswordChangeDetails} is + * {@code false}. + */ + public PasswordChangeDetails getPasswordChangeDetailsValue() { + if (this._tag != Tag.PASSWORD_CHANGE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_CHANGE_DETAILS, but was Tag." + this._tag.name()); + } + return passwordChangeDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_RESET_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_RESET_DETAILS}, {@code false} otherwise. + */ + public boolean isPasswordResetDetails() { + return this._tag == Tag.PASSWORD_RESET_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PASSWORD_RESET_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PASSWORD_RESET_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails passwordResetDetails(PasswordResetDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPasswordResetDetails(Tag.PASSWORD_RESET_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PASSWORD_RESET_DETAILS}. + * + * @return The {@link PasswordResetDetails} value associated with this + * instance if {@link #isPasswordResetDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPasswordResetDetails} is + * {@code false}. + */ + public PasswordResetDetails getPasswordResetDetailsValue() { + if (this._tag != Tag.PASSWORD_RESET_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_RESET_DETAILS, but was Tag." + this._tag.name()); + } + return passwordResetDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_RESET_ALL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_RESET_ALL_DETAILS}, {@code false} otherwise. + */ + public boolean isPasswordResetAllDetails() { + return this._tag == Tag.PASSWORD_RESET_ALL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PASSWORD_RESET_ALL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PASSWORD_RESET_ALL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails passwordResetAllDetails(PasswordResetAllDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPasswordResetAllDetails(Tag.PASSWORD_RESET_ALL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PASSWORD_RESET_ALL_DETAILS}. + * + * @return The {@link PasswordResetAllDetails} value associated with this + * instance if {@link #isPasswordResetAllDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPasswordResetAllDetails} is + * {@code false}. + */ + public PasswordResetAllDetails getPasswordResetAllDetailsValue() { + if (this._tag != Tag.PASSWORD_RESET_ALL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_RESET_ALL_DETAILS, but was Tag." + this._tag.name()); + } + return passwordResetAllDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CLASSIFICATION_CREATE_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT_DETAILS}, {@code false} otherwise. + */ + public boolean isClassificationCreateReportDetails() { + return this._tag == Tag.CLASSIFICATION_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CLASSIFICATION_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CLASSIFICATION_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails classificationCreateReportDetails(ClassificationCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndClassificationCreateReportDetails(Tag.CLASSIFICATION_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT_DETAILS}. + * + * @return The {@link ClassificationCreateReportDetails} value associated + * with this instance if {@link #isClassificationCreateReportDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isClassificationCreateReportDetails} is {@code false}. + */ + public ClassificationCreateReportDetails getClassificationCreateReportDetailsValue() { + if (this._tag != Tag.CLASSIFICATION_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CLASSIFICATION_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return classificationCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS}, {@code false} + * otherwise. + */ + public boolean isClassificationCreateReportFailDetails() { + return this._tag == Tag.CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails classificationCreateReportFailDetails(ClassificationCreateReportFailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndClassificationCreateReportFailDetails(Tag.CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS}. + * + * @return The {@link ClassificationCreateReportFailDetails} value + * associated with this instance if {@link + * #isClassificationCreateReportFailDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isClassificationCreateReportFailDetails} is {@code false}. + */ + public ClassificationCreateReportFailDetails getClassificationCreateReportFailDetailsValue() { + if (this._tag != Tag.CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS, but was Tag." + this._tag.name()); + } + return classificationCreateReportFailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT_DETAILS}, {@code false} otherwise. + */ + public boolean isEmmCreateExceptionsReportDetails() { + return this._tag == Tag.EMM_CREATE_EXCEPTIONS_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMM_CREATE_EXCEPTIONS_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emmCreateExceptionsReportDetails(EmmCreateExceptionsReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmmCreateExceptionsReportDetails(Tag.EMM_CREATE_EXCEPTIONS_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT_DETAILS}. + * + * @return The {@link EmmCreateExceptionsReportDetails} value associated + * with this instance if {@link #isEmmCreateExceptionsReportDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isEmmCreateExceptionsReportDetails} is {@code false}. + */ + public EmmCreateExceptionsReportDetails getEmmCreateExceptionsReportDetailsValue() { + if (this._tag != Tag.EMM_CREATE_EXCEPTIONS_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_CREATE_EXCEPTIONS_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return emmCreateExceptionsReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_CREATE_USAGE_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_CREATE_USAGE_REPORT_DETAILS}, {@code false} otherwise. + */ + public boolean isEmmCreateUsageReportDetails() { + return this._tag == Tag.EMM_CREATE_USAGE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMM_CREATE_USAGE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMM_CREATE_USAGE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emmCreateUsageReportDetails(EmmCreateUsageReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmmCreateUsageReportDetails(Tag.EMM_CREATE_USAGE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EMM_CREATE_USAGE_REPORT_DETAILS}. + * + * @return The {@link EmmCreateUsageReportDetails} value associated with + * this instance if {@link #isEmmCreateUsageReportDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isEmmCreateUsageReportDetails} + * is {@code false}. + */ + public EmmCreateUsageReportDetails getEmmCreateUsageReportDetailsValue() { + if (this._tag != Tag.EMM_CREATE_USAGE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_CREATE_USAGE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return emmCreateUsageReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXPORT_MEMBERS_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXPORT_MEMBERS_REPORT_DETAILS}, {@code false} otherwise. + */ + public boolean isExportMembersReportDetails() { + return this._tag == Tag.EXPORT_MEMBERS_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXPORT_MEMBERS_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXPORT_MEMBERS_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails exportMembersReportDetails(ExportMembersReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExportMembersReportDetails(Tag.EXPORT_MEMBERS_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXPORT_MEMBERS_REPORT_DETAILS}. + * + * @return The {@link ExportMembersReportDetails} value associated with this + * instance if {@link #isExportMembersReportDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isExportMembersReportDetails} + * is {@code false}. + */ + public ExportMembersReportDetails getExportMembersReportDetailsValue() { + if (this._tag != Tag.EXPORT_MEMBERS_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXPORT_MEMBERS_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return exportMembersReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL_DETAILS}, {@code false} otherwise. + */ + public boolean isExportMembersReportFailDetails() { + return this._tag == Tag.EXPORT_MEMBERS_REPORT_FAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXPORT_MEMBERS_REPORT_FAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails exportMembersReportFailDetails(ExportMembersReportFailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExportMembersReportFailDetails(Tag.EXPORT_MEMBERS_REPORT_FAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL_DETAILS}. + * + * @return The {@link ExportMembersReportFailDetails} value associated with + * this instance if {@link #isExportMembersReportFailDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isExportMembersReportFailDetails} is {@code false}. + */ + public ExportMembersReportFailDetails getExportMembersReportFailDetailsValue() { + if (this._tag != Tag.EXPORT_MEMBERS_REPORT_FAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXPORT_MEMBERS_REPORT_FAIL_DETAILS, but was Tag." + this._tag.name()); + } + return exportMembersReportFailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT_DETAILS}, {@code false} otherwise. + */ + public boolean isExternalSharingCreateReportDetails() { + return this._tag == Tag.EXTERNAL_SHARING_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXTERNAL_SHARING_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails externalSharingCreateReportDetails(ExternalSharingCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExternalSharingCreateReportDetails(Tag.EXTERNAL_SHARING_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT_DETAILS}. + * + * @return The {@link ExternalSharingCreateReportDetails} value associated + * with this instance if {@link #isExternalSharingCreateReportDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isExternalSharingCreateReportDetails} is {@code false}. + */ + public ExternalSharingCreateReportDetails getExternalSharingCreateReportDetailsValue() { + if (this._tag != Tag.EXTERNAL_SHARING_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_SHARING_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return externalSharingCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED_DETAILS}, {@code false} otherwise. + */ + public boolean isExternalSharingReportFailedDetails() { + return this._tag == Tag.EXTERNAL_SHARING_REPORT_FAILED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXTERNAL_SHARING_REPORT_FAILED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails externalSharingReportFailedDetails(ExternalSharingReportFailedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExternalSharingReportFailedDetails(Tag.EXTERNAL_SHARING_REPORT_FAILED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED_DETAILS}. + * + * @return The {@link ExternalSharingReportFailedDetails} value associated + * with this instance if {@link #isExternalSharingReportFailedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isExternalSharingReportFailedDetails} is {@code false}. + */ + public ExternalSharingReportFailedDetails getExternalSharingReportFailedDetailsValue() { + if (this._tag != Tag.EXTERNAL_SHARING_REPORT_FAILED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_SHARING_REPORT_FAILED_DETAILS, but was Tag." + this._tag.name()); + } + return externalSharingReportFailedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isNoExpirationLinkGenCreateReportDetails() { + return this._tag == Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noExpirationLinkGenCreateReportDetails(NoExpirationLinkGenCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoExpirationLinkGenCreateReportDetails(Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS}. + * + * @return The {@link NoExpirationLinkGenCreateReportDetails} value + * associated with this instance if {@link + * #isNoExpirationLinkGenCreateReportDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoExpirationLinkGenCreateReportDetails} is {@code false}. + */ + public NoExpirationLinkGenCreateReportDetails getNoExpirationLinkGenCreateReportDetailsValue() { + if (this._tag != Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return noExpirationLinkGenCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isNoExpirationLinkGenReportFailedDetails() { + return this._tag == Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noExpirationLinkGenReportFailedDetails(NoExpirationLinkGenReportFailedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoExpirationLinkGenReportFailedDetails(Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS}. + * + * @return The {@link NoExpirationLinkGenReportFailedDetails} value + * associated with this instance if {@link + * #isNoExpirationLinkGenReportFailedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoExpirationLinkGenReportFailedDetails} is {@code false}. + */ + public NoExpirationLinkGenReportFailedDetails getNoExpirationLinkGenReportFailedDetailsValue() { + if (this._tag != Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS, but was Tag." + this._tag.name()); + } + return noExpirationLinkGenReportFailedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isNoPasswordLinkGenCreateReportDetails() { + return this._tag == Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noPasswordLinkGenCreateReportDetails(NoPasswordLinkGenCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoPasswordLinkGenCreateReportDetails(Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS}. + * + * @return The {@link NoPasswordLinkGenCreateReportDetails} value associated + * with this instance if {@link #isNoPasswordLinkGenCreateReportDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkGenCreateReportDetails} is {@code false}. + */ + public NoPasswordLinkGenCreateReportDetails getNoPasswordLinkGenCreateReportDetailsValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return noPasswordLinkGenCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isNoPasswordLinkGenReportFailedDetails() { + return this._tag == Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noPasswordLinkGenReportFailedDetails(NoPasswordLinkGenReportFailedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoPasswordLinkGenReportFailedDetails(Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS}. + * + * @return The {@link NoPasswordLinkGenReportFailedDetails} value associated + * with this instance if {@link #isNoPasswordLinkGenReportFailedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkGenReportFailedDetails} is {@code false}. + */ + public NoPasswordLinkGenReportFailedDetails getNoPasswordLinkGenReportFailedDetailsValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS, but was Tag." + this._tag.name()); + } + return noPasswordLinkGenReportFailedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isNoPasswordLinkViewCreateReportDetails() { + return this._tag == Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noPasswordLinkViewCreateReportDetails(NoPasswordLinkViewCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoPasswordLinkViewCreateReportDetails(Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS}. + * + * @return The {@link NoPasswordLinkViewCreateReportDetails} value + * associated with this instance if {@link + * #isNoPasswordLinkViewCreateReportDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkViewCreateReportDetails} is {@code false}. + */ + public NoPasswordLinkViewCreateReportDetails getNoPasswordLinkViewCreateReportDetailsValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return noPasswordLinkViewCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isNoPasswordLinkViewReportFailedDetails() { + return this._tag == Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noPasswordLinkViewReportFailedDetails(NoPasswordLinkViewReportFailedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoPasswordLinkViewReportFailedDetails(Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS}. + * + * @return The {@link NoPasswordLinkViewReportFailedDetails} value + * associated with this instance if {@link + * #isNoPasswordLinkViewReportFailedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkViewReportFailedDetails} is {@code false}. + */ + public NoPasswordLinkViewReportFailedDetails getNoPasswordLinkViewReportFailedDetailsValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS, but was Tag." + this._tag.name()); + } + return noPasswordLinkViewReportFailedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isOutdatedLinkViewCreateReportDetails() { + return this._tag == Tag.OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails outdatedLinkViewCreateReportDetails(OutdatedLinkViewCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndOutdatedLinkViewCreateReportDetails(Tag.OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS}. + * + * @return The {@link OutdatedLinkViewCreateReportDetails} value associated + * with this instance if {@link #isOutdatedLinkViewCreateReportDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isOutdatedLinkViewCreateReportDetails} is {@code false}. + */ + public OutdatedLinkViewCreateReportDetails getOutdatedLinkViewCreateReportDetailsValue() { + if (this._tag != Tag.OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return outdatedLinkViewCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isOutdatedLinkViewReportFailedDetails() { + return this._tag == Tag.OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails outdatedLinkViewReportFailedDetails(OutdatedLinkViewReportFailedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndOutdatedLinkViewReportFailedDetails(Tag.OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS}. + * + * @return The {@link OutdatedLinkViewReportFailedDetails} value associated + * with this instance if {@link #isOutdatedLinkViewReportFailedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isOutdatedLinkViewReportFailedDetails} is {@code false}. + */ + public OutdatedLinkViewReportFailedDetails getOutdatedLinkViewReportFailedDetailsValue() { + if (this._tag != Tag.OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS, but was Tag." + this._tag.name()); + } + return outdatedLinkViewReportFailedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_ADMIN_EXPORT_START_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_ADMIN_EXPORT_START_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperAdminExportStartDetails() { + return this._tag == Tag.PAPER_ADMIN_EXPORT_START_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_ADMIN_EXPORT_START_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_ADMIN_EXPORT_START_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperAdminExportStartDetails(PaperAdminExportStartDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperAdminExportStartDetails(Tag.PAPER_ADMIN_EXPORT_START_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_ADMIN_EXPORT_START_DETAILS}. + * + * @return The {@link PaperAdminExportStartDetails} value associated with + * this instance if {@link #isPaperAdminExportStartDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperAdminExportStartDetails} + * is {@code false}. + */ + public PaperAdminExportStartDetails getPaperAdminExportStartDetailsValue() { + if (this._tag != Tag.PAPER_ADMIN_EXPORT_START_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_ADMIN_EXPORT_START_DETAILS, but was Tag." + this._tag.name()); + } + return paperAdminExportStartDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_DETAILS}, {@code false} otherwise. + */ + public boolean isRansomwareAlertCreateReportDetails() { + return this._tag == Tag.RANSOMWARE_ALERT_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#RANSOMWARE_ALERT_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ransomwareAlertCreateReportDetails(RansomwareAlertCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndRansomwareAlertCreateReportDetails(Tag.RANSOMWARE_ALERT_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_DETAILS}. + * + * @return The {@link RansomwareAlertCreateReportDetails} value associated + * with this instance if {@link #isRansomwareAlertCreateReportDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isRansomwareAlertCreateReportDetails} is {@code false}. + */ + public RansomwareAlertCreateReportDetails getRansomwareAlertCreateReportDetailsValue() { + if (this._tag != Tag.RANSOMWARE_ALERT_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_ALERT_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return ransomwareAlertCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isRansomwareAlertCreateReportFailedDetails() { + return this._tag == Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ransomwareAlertCreateReportFailedDetails(RansomwareAlertCreateReportFailedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndRansomwareAlertCreateReportFailedDetails(Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS}. + * + * @return The {@link RansomwareAlertCreateReportFailedDetails} value + * associated with this instance if {@link + * #isRansomwareAlertCreateReportFailedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isRansomwareAlertCreateReportFailedDetails} is {@code false}. + */ + public RansomwareAlertCreateReportFailedDetails getRansomwareAlertCreateReportFailedDetailsValue() { + if (this._tag != Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS, but was Tag." + this._tag.name()); + } + return ransomwareAlertCreateReportFailedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSmartSyncCreateAdminPrivilegeReportDetails() { + return this._tag == Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails smartSyncCreateAdminPrivilegeReportDetails(SmartSyncCreateAdminPrivilegeReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSmartSyncCreateAdminPrivilegeReportDetails(Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS}. + * + * @return The {@link SmartSyncCreateAdminPrivilegeReportDetails} value + * associated with this instance if {@link + * #isSmartSyncCreateAdminPrivilegeReportDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSmartSyncCreateAdminPrivilegeReportDetails} is {@code false}. + */ + public SmartSyncCreateAdminPrivilegeReportDetails getSmartSyncCreateAdminPrivilegeReportDetailsValue() { + if (this._tag != Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return smartSyncCreateAdminPrivilegeReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamActivityCreateReportDetails() { + return this._tag == Tag.TEAM_ACTIVITY_CREATE_REPORT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ACTIVITY_CREATE_REPORT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamActivityCreateReportDetails(TeamActivityCreateReportDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamActivityCreateReportDetails(Tag.TEAM_ACTIVITY_CREATE_REPORT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_DETAILS}. + * + * @return The {@link TeamActivityCreateReportDetails} value associated with + * this instance if {@link #isTeamActivityCreateReportDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamActivityCreateReportDetails} is {@code false}. + */ + public TeamActivityCreateReportDetails getTeamActivityCreateReportDetailsValue() { + if (this._tag != Tag.TEAM_ACTIVITY_CREATE_REPORT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ACTIVITY_CREATE_REPORT_DETAILS, but was Tag." + this._tag.name()); + } + return teamActivityCreateReportDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamActivityCreateReportFailDetails() { + return this._tag == Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamActivityCreateReportFailDetails(TeamActivityCreateReportFailDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamActivityCreateReportFailDetails(Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS}. + * + * @return The {@link TeamActivityCreateReportFailDetails} value associated + * with this instance if {@link #isTeamActivityCreateReportFailDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamActivityCreateReportFailDetails} is {@code false}. + */ + public TeamActivityCreateReportFailDetails getTeamActivityCreateReportFailDetailsValue() { + if (this._tag != Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS, but was Tag." + this._tag.name()); + } + return teamActivityCreateReportFailDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#COLLECTION_SHARE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#COLLECTION_SHARE_DETAILS}, {@code false} otherwise. + */ + public boolean isCollectionShareDetails() { + return this._tag == Tag.COLLECTION_SHARE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#COLLECTION_SHARE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#COLLECTION_SHARE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails collectionShareDetails(CollectionShareDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndCollectionShareDetails(Tag.COLLECTION_SHARE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#COLLECTION_SHARE_DETAILS}. + * + * @return The {@link CollectionShareDetails} value associated with this + * instance if {@link #isCollectionShareDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isCollectionShareDetails} is + * {@code false}. + */ + public CollectionShareDetails getCollectionShareDetailsValue() { + if (this._tag != Tag.COLLECTION_SHARE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.COLLECTION_SHARE_DETAILS, but was Tag." + this._tag.name()); + } + return collectionShareDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_FILE_ADD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_FILE_ADD_DETAILS}, {@code false} otherwise. + */ + public boolean isFileTransfersFileAddDetails() { + return this._tag == Tag.FILE_TRANSFERS_FILE_ADD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_TRANSFERS_FILE_ADD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_TRANSFERS_FILE_ADD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileTransfersFileAddDetails(FileTransfersFileAddDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileTransfersFileAddDetails(Tag.FILE_TRANSFERS_FILE_ADD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_FILE_ADD_DETAILS}. + * + * @return The {@link FileTransfersFileAddDetails} value associated with + * this instance if {@link #isFileTransfersFileAddDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileTransfersFileAddDetails} + * is {@code false}. + */ + public FileTransfersFileAddDetails getFileTransfersFileAddDetailsValue() { + if (this._tag != Tag.FILE_TRANSFERS_FILE_ADD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_FILE_ADD_DETAILS, but was Tag." + this._tag.name()); + } + return fileTransfersFileAddDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isFileTransfersTransferDeleteDetails() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_TRANSFERS_TRANSFER_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileTransfersTransferDeleteDetails(FileTransfersTransferDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileTransfersTransferDeleteDetails(Tag.FILE_TRANSFERS_TRANSFER_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE_DETAILS}. + * + * @return The {@link FileTransfersTransferDeleteDetails} value associated + * with this instance if {@link #isFileTransfersTransferDeleteDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileTransfersTransferDeleteDetails} is {@code false}. + */ + public FileTransfersTransferDeleteDetails getFileTransfersTransferDeleteDetailsValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return fileTransfersTransferDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS}, {@code false} + * otherwise. + */ + public boolean isFileTransfersTransferDownloadDetails() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileTransfersTransferDownloadDetails(FileTransfersTransferDownloadDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileTransfersTransferDownloadDetails(Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS}. + * + * @return The {@link FileTransfersTransferDownloadDetails} value associated + * with this instance if {@link #isFileTransfersTransferDownloadDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileTransfersTransferDownloadDetails} is {@code false}. + */ + public FileTransfersTransferDownloadDetails getFileTransfersTransferDownloadDetailsValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS, but was Tag." + this._tag.name()); + } + return fileTransfersTransferDownloadDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND_DETAILS}, {@code false} otherwise. + */ + public boolean isFileTransfersTransferSendDetails() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_SEND_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_TRANSFERS_TRANSFER_SEND_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileTransfersTransferSendDetails(FileTransfersTransferSendDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileTransfersTransferSendDetails(Tag.FILE_TRANSFERS_TRANSFER_SEND_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND_DETAILS}. + * + * @return The {@link FileTransfersTransferSendDetails} value associated + * with this instance if {@link #isFileTransfersTransferSendDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileTransfersTransferSendDetails} is {@code false}. + */ + public FileTransfersTransferSendDetails getFileTransfersTransferSendDetailsValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_SEND_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_SEND_DETAILS, but was Tag." + this._tag.name()); + } + return fileTransfersTransferSendDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isFileTransfersTransferViewDetails() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_VIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_TRANSFERS_TRANSFER_VIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileTransfersTransferViewDetails(FileTransfersTransferViewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileTransfersTransferViewDetails(Tag.FILE_TRANSFERS_TRANSFER_VIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW_DETAILS}. + * + * @return The {@link FileTransfersTransferViewDetails} value associated + * with this instance if {@link #isFileTransfersTransferViewDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileTransfersTransferViewDetails} is {@code false}. + */ + public FileTransfersTransferViewDetails getFileTransfersTransferViewDetailsValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_VIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_VIEW_DETAILS, but was Tag." + this._tag.name()); + } + return fileTransfersTransferViewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_ACL_INVITE_ONLY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_ACL_INVITE_ONLY_DETAILS}, {@code false} otherwise. + */ + public boolean isNoteAclInviteOnlyDetails() { + return this._tag == Tag.NOTE_ACL_INVITE_ONLY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NOTE_ACL_INVITE_ONLY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NOTE_ACL_INVITE_ONLY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noteAclInviteOnlyDetails(NoteAclInviteOnlyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoteAclInviteOnlyDetails(Tag.NOTE_ACL_INVITE_ONLY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#NOTE_ACL_INVITE_ONLY_DETAILS}. + * + * @return The {@link NoteAclInviteOnlyDetails} value associated with this + * instance if {@link #isNoteAclInviteOnlyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteAclInviteOnlyDetails} is + * {@code false}. + */ + public NoteAclInviteOnlyDetails getNoteAclInviteOnlyDetailsValue() { + if (this._tag != Tag.NOTE_ACL_INVITE_ONLY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_ACL_INVITE_ONLY_DETAILS, but was Tag." + this._tag.name()); + } + return noteAclInviteOnlyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_ACL_LINK_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_ACL_LINK_DETAILS}, {@code false} otherwise. + */ + public boolean isNoteAclLinkDetails() { + return this._tag == Tag.NOTE_ACL_LINK_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NOTE_ACL_LINK_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NOTE_ACL_LINK_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noteAclLinkDetails(NoteAclLinkDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoteAclLinkDetails(Tag.NOTE_ACL_LINK_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#NOTE_ACL_LINK_DETAILS}. + * + * @return The {@link NoteAclLinkDetails} value associated with this + * instance if {@link #isNoteAclLinkDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteAclLinkDetails} is {@code + * false}. + */ + public NoteAclLinkDetails getNoteAclLinkDetailsValue() { + if (this._tag != Tag.NOTE_ACL_LINK_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_ACL_LINK_DETAILS, but was Tag." + this._tag.name()); + } + return noteAclLinkDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_ACL_TEAM_LINK_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_ACL_TEAM_LINK_DETAILS}, {@code false} otherwise. + */ + public boolean isNoteAclTeamLinkDetails() { + return this._tag == Tag.NOTE_ACL_TEAM_LINK_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NOTE_ACL_TEAM_LINK_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NOTE_ACL_TEAM_LINK_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noteAclTeamLinkDetails(NoteAclTeamLinkDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoteAclTeamLinkDetails(Tag.NOTE_ACL_TEAM_LINK_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#NOTE_ACL_TEAM_LINK_DETAILS}. + * + * @return The {@link NoteAclTeamLinkDetails} value associated with this + * instance if {@link #isNoteAclTeamLinkDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteAclTeamLinkDetails} is + * {@code false}. + */ + public NoteAclTeamLinkDetails getNoteAclTeamLinkDetailsValue() { + if (this._tag != Tag.NOTE_ACL_TEAM_LINK_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_ACL_TEAM_LINK_DETAILS, but was Tag." + this._tag.name()); + } + return noteAclTeamLinkDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_SHARED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_SHARED_DETAILS}, {@code false} otherwise. + */ + public boolean isNoteSharedDetails() { + return this._tag == Tag.NOTE_SHARED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NOTE_SHARED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NOTE_SHARED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noteSharedDetails(NoteSharedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoteSharedDetails(Tag.NOTE_SHARED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#NOTE_SHARED_DETAILS}. + * + * @return The {@link NoteSharedDetails} value associated with this instance + * if {@link #isNoteSharedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteSharedDetails} is {@code + * false}. + */ + public NoteSharedDetails getNoteSharedDetailsValue() { + if (this._tag != Tag.NOTE_SHARED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_SHARED_DETAILS, but was Tag." + this._tag.name()); + } + return noteSharedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_SHARE_RECEIVE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_SHARE_RECEIVE_DETAILS}, {@code false} otherwise. + */ + public boolean isNoteShareReceiveDetails() { + return this._tag == Tag.NOTE_SHARE_RECEIVE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NOTE_SHARE_RECEIVE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NOTE_SHARE_RECEIVE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails noteShareReceiveDetails(NoteShareReceiveDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNoteShareReceiveDetails(Tag.NOTE_SHARE_RECEIVE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#NOTE_SHARE_RECEIVE_DETAILS}. + * + * @return The {@link NoteShareReceiveDetails} value associated with this + * instance if {@link #isNoteShareReceiveDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteShareReceiveDetails} is + * {@code false}. + */ + public NoteShareReceiveDetails getNoteShareReceiveDetailsValue() { + if (this._tag != Tag.NOTE_SHARE_RECEIVE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_SHARE_RECEIVE_DETAILS, but was Tag." + this._tag.name()); + } + return noteShareReceiveDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OPEN_NOTE_SHARED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OPEN_NOTE_SHARED_DETAILS}, {@code false} otherwise. + */ + public boolean isOpenNoteSharedDetails() { + return this._tag == Tag.OPEN_NOTE_SHARED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#OPEN_NOTE_SHARED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#OPEN_NOTE_SHARED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails openNoteSharedDetails(OpenNoteSharedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndOpenNoteSharedDetails(Tag.OPEN_NOTE_SHARED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#OPEN_NOTE_SHARED_DETAILS}. + * + * @return The {@link OpenNoteSharedDetails} value associated with this + * instance if {@link #isOpenNoteSharedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isOpenNoteSharedDetails} is + * {@code false}. + */ + public OpenNoteSharedDetails getOpenNoteSharedDetailsValue() { + if (this._tag != Tag.OPEN_NOTE_SHARED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.OPEN_NOTE_SHARED_DETAILS, but was Tag." + this._tag.name()); + } + return openNoteSharedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isReplayFileSharedLinkCreatedDetails() { + return this._tag == Tag.REPLAY_FILE_SHARED_LINK_CREATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#REPLAY_FILE_SHARED_LINK_CREATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails replayFileSharedLinkCreatedDetails(ReplayFileSharedLinkCreatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndReplayFileSharedLinkCreatedDetails(Tag.REPLAY_FILE_SHARED_LINK_CREATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED_DETAILS}. + * + * @return The {@link ReplayFileSharedLinkCreatedDetails} value associated + * with this instance if {@link #isReplayFileSharedLinkCreatedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isReplayFileSharedLinkCreatedDetails} is {@code false}. + */ + public ReplayFileSharedLinkCreatedDetails getReplayFileSharedLinkCreatedDetailsValue() { + if (this._tag != Tag.REPLAY_FILE_SHARED_LINK_CREATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_FILE_SHARED_LINK_CREATED_DETAILS, but was Tag." + this._tag.name()); + } + return replayFileSharedLinkCreatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isReplayFileSharedLinkModifiedDetails() { + return this._tag == Tag.REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails replayFileSharedLinkModifiedDetails(ReplayFileSharedLinkModifiedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndReplayFileSharedLinkModifiedDetails(Tag.REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS}. + * + * @return The {@link ReplayFileSharedLinkModifiedDetails} value associated + * with this instance if {@link #isReplayFileSharedLinkModifiedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isReplayFileSharedLinkModifiedDetails} is {@code false}. + */ + public ReplayFileSharedLinkModifiedDetails getReplayFileSharedLinkModifiedDetailsValue() { + if (this._tag != Tag.REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS, but was Tag." + this._tag.name()); + } + return replayFileSharedLinkModifiedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_PROJECT_TEAM_ADD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_PROJECT_TEAM_ADD_DETAILS}, {@code false} otherwise. + */ + public boolean isReplayProjectTeamAddDetails() { + return this._tag == Tag.REPLAY_PROJECT_TEAM_ADD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#REPLAY_PROJECT_TEAM_ADD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#REPLAY_PROJECT_TEAM_ADD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails replayProjectTeamAddDetails(ReplayProjectTeamAddDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndReplayProjectTeamAddDetails(Tag.REPLAY_PROJECT_TEAM_ADD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#REPLAY_PROJECT_TEAM_ADD_DETAILS}. + * + * @return The {@link ReplayProjectTeamAddDetails} value associated with + * this instance if {@link #isReplayProjectTeamAddDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isReplayProjectTeamAddDetails} + * is {@code false}. + */ + public ReplayProjectTeamAddDetails getReplayProjectTeamAddDetailsValue() { + if (this._tag != Tag.REPLAY_PROJECT_TEAM_ADD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_PROJECT_TEAM_ADD_DETAILS, but was Tag." + this._tag.name()); + } + return replayProjectTeamAddDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isReplayProjectTeamDeleteDetails() { + return this._tag == Tag.REPLAY_PROJECT_TEAM_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#REPLAY_PROJECT_TEAM_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails replayProjectTeamDeleteDetails(ReplayProjectTeamDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndReplayProjectTeamDeleteDetails(Tag.REPLAY_PROJECT_TEAM_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE_DETAILS}. + * + * @return The {@link ReplayProjectTeamDeleteDetails} value associated with + * this instance if {@link #isReplayProjectTeamDeleteDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isReplayProjectTeamDeleteDetails} is {@code false}. + */ + public ReplayProjectTeamDeleteDetails getReplayProjectTeamDeleteDetailsValue() { + if (this._tag != Tag.REPLAY_PROJECT_TEAM_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_PROJECT_TEAM_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return replayProjectTeamDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_ADD_GROUP_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_ADD_GROUP_DETAILS}, {@code false} otherwise. + */ + public boolean isSfAddGroupDetails() { + return this._tag == Tag.SF_ADD_GROUP_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_ADD_GROUP_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_ADD_GROUP_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfAddGroupDetails(SfAddGroupDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfAddGroupDetails(Tag.SF_ADD_GROUP_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_ADD_GROUP_DETAILS}. + * + * @return The {@link SfAddGroupDetails} value associated with this instance + * if {@link #isSfAddGroupDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfAddGroupDetails} is {@code + * false}. + */ + public SfAddGroupDetails getSfAddGroupDetailsValue() { + if (this._tag != Tag.SF_ADD_GROUP_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_ADD_GROUP_DETAILS, but was Tag." + this._tag.name()); + } + return sfAddGroupDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSfAllowNonMembersToViewSharedLinksDetails() { + return this._tag == Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfAllowNonMembersToViewSharedLinksDetails(SfAllowNonMembersToViewSharedLinksDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfAllowNonMembersToViewSharedLinksDetails(Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS}. + * + * @return The {@link SfAllowNonMembersToViewSharedLinksDetails} value + * associated with this instance if {@link + * #isSfAllowNonMembersToViewSharedLinksDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSfAllowNonMembersToViewSharedLinksDetails} is {@code false}. + */ + public SfAllowNonMembersToViewSharedLinksDetails getSfAllowNonMembersToViewSharedLinksDetailsValue() { + if (this._tag != Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS, but was Tag." + this._tag.name()); + } + return sfAllowNonMembersToViewSharedLinksDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_EXTERNAL_INVITE_WARN_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_EXTERNAL_INVITE_WARN_DETAILS}, {@code false} otherwise. + */ + public boolean isSfExternalInviteWarnDetails() { + return this._tag == Tag.SF_EXTERNAL_INVITE_WARN_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_EXTERNAL_INVITE_WARN_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_EXTERNAL_INVITE_WARN_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfExternalInviteWarnDetails(SfExternalInviteWarnDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfExternalInviteWarnDetails(Tag.SF_EXTERNAL_INVITE_WARN_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SF_EXTERNAL_INVITE_WARN_DETAILS}. + * + * @return The {@link SfExternalInviteWarnDetails} value associated with + * this instance if {@link #isSfExternalInviteWarnDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSfExternalInviteWarnDetails} + * is {@code false}. + */ + public SfExternalInviteWarnDetails getSfExternalInviteWarnDetailsValue() { + if (this._tag != Tag.SF_EXTERNAL_INVITE_WARN_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_EXTERNAL_INVITE_WARN_DETAILS, but was Tag." + this._tag.name()); + } + return sfExternalInviteWarnDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_FB_INVITE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_FB_INVITE_DETAILS}, {@code false} otherwise. + */ + public boolean isSfFbInviteDetails() { + return this._tag == Tag.SF_FB_INVITE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_FB_INVITE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_FB_INVITE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfFbInviteDetails(SfFbInviteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfFbInviteDetails(Tag.SF_FB_INVITE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_FB_INVITE_DETAILS}. + * + * @return The {@link SfFbInviteDetails} value associated with this instance + * if {@link #isSfFbInviteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfFbInviteDetails} is {@code + * false}. + */ + public SfFbInviteDetails getSfFbInviteDetailsValue() { + if (this._tag != Tag.SF_FB_INVITE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_FB_INVITE_DETAILS, but was Tag." + this._tag.name()); + } + return sfFbInviteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE_DETAILS}, {@code false} otherwise. + */ + public boolean isSfFbInviteChangeRoleDetails() { + return this._tag == Tag.SF_FB_INVITE_CHANGE_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_FB_INVITE_CHANGE_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfFbInviteChangeRoleDetails(SfFbInviteChangeRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfFbInviteChangeRoleDetails(Tag.SF_FB_INVITE_CHANGE_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE_DETAILS}. + * + * @return The {@link SfFbInviteChangeRoleDetails} value associated with + * this instance if {@link #isSfFbInviteChangeRoleDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSfFbInviteChangeRoleDetails} + * is {@code false}. + */ + public SfFbInviteChangeRoleDetails getSfFbInviteChangeRoleDetailsValue() { + if (this._tag != Tag.SF_FB_INVITE_CHANGE_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_FB_INVITE_CHANGE_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return sfFbInviteChangeRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_FB_UNINVITE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_FB_UNINVITE_DETAILS}, {@code false} otherwise. + */ + public boolean isSfFbUninviteDetails() { + return this._tag == Tag.SF_FB_UNINVITE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_FB_UNINVITE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_FB_UNINVITE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfFbUninviteDetails(SfFbUninviteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfFbUninviteDetails(Tag.SF_FB_UNINVITE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_FB_UNINVITE_DETAILS}. + * + * @return The {@link SfFbUninviteDetails} value associated with this + * instance if {@link #isSfFbUninviteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfFbUninviteDetails} is + * {@code false}. + */ + public SfFbUninviteDetails getSfFbUninviteDetailsValue() { + if (this._tag != Tag.SF_FB_UNINVITE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_FB_UNINVITE_DETAILS, but was Tag." + this._tag.name()); + } + return sfFbUninviteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_INVITE_GROUP_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_INVITE_GROUP_DETAILS}, {@code false} otherwise. + */ + public boolean isSfInviteGroupDetails() { + return this._tag == Tag.SF_INVITE_GROUP_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_INVITE_GROUP_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_INVITE_GROUP_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfInviteGroupDetails(SfInviteGroupDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfInviteGroupDetails(Tag.SF_INVITE_GROUP_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_INVITE_GROUP_DETAILS}. + * + * @return The {@link SfInviteGroupDetails} value associated with this + * instance if {@link #isSfInviteGroupDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfInviteGroupDetails} is + * {@code false}. + */ + public SfInviteGroupDetails getSfInviteGroupDetailsValue() { + if (this._tag != Tag.SF_INVITE_GROUP_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_INVITE_GROUP_DETAILS, but was Tag." + this._tag.name()); + } + return sfInviteGroupDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_GRANT_ACCESS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_GRANT_ACCESS_DETAILS}, {@code false} otherwise. + */ + public boolean isSfTeamGrantAccessDetails() { + return this._tag == Tag.SF_TEAM_GRANT_ACCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_TEAM_GRANT_ACCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_TEAM_GRANT_ACCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfTeamGrantAccessDetails(SfTeamGrantAccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfTeamGrantAccessDetails(Tag.SF_TEAM_GRANT_ACCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_TEAM_GRANT_ACCESS_DETAILS}. + * + * @return The {@link SfTeamGrantAccessDetails} value associated with this + * instance if {@link #isSfTeamGrantAccessDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamGrantAccessDetails} is + * {@code false}. + */ + public SfTeamGrantAccessDetails getSfTeamGrantAccessDetailsValue() { + if (this._tag != Tag.SF_TEAM_GRANT_ACCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_GRANT_ACCESS_DETAILS, but was Tag." + this._tag.name()); + } + return sfTeamGrantAccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_INVITE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_INVITE_DETAILS}, {@code false} otherwise. + */ + public boolean isSfTeamInviteDetails() { + return this._tag == Tag.SF_TEAM_INVITE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_TEAM_INVITE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_TEAM_INVITE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfTeamInviteDetails(SfTeamInviteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfTeamInviteDetails(Tag.SF_TEAM_INVITE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_TEAM_INVITE_DETAILS}. + * + * @return The {@link SfTeamInviteDetails} value associated with this + * instance if {@link #isSfTeamInviteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamInviteDetails} is + * {@code false}. + */ + public SfTeamInviteDetails getSfTeamInviteDetailsValue() { + if (this._tag != Tag.SF_TEAM_INVITE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_INVITE_DETAILS, but was Tag." + this._tag.name()); + } + return sfTeamInviteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE_DETAILS}, {@code false} otherwise. + */ + public boolean isSfTeamInviteChangeRoleDetails() { + return this._tag == Tag.SF_TEAM_INVITE_CHANGE_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_TEAM_INVITE_CHANGE_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfTeamInviteChangeRoleDetails(SfTeamInviteChangeRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfTeamInviteChangeRoleDetails(Tag.SF_TEAM_INVITE_CHANGE_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE_DETAILS}. + * + * @return The {@link SfTeamInviteChangeRoleDetails} value associated with + * this instance if {@link #isSfTeamInviteChangeRoleDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSfTeamInviteChangeRoleDetails} is {@code false}. + */ + public SfTeamInviteChangeRoleDetails getSfTeamInviteChangeRoleDetailsValue() { + if (this._tag != Tag.SF_TEAM_INVITE_CHANGE_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_INVITE_CHANGE_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return sfTeamInviteChangeRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_JOIN_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_JOIN_DETAILS}, {@code false} otherwise. + */ + public boolean isSfTeamJoinDetails() { + return this._tag == Tag.SF_TEAM_JOIN_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_TEAM_JOIN_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_TEAM_JOIN_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfTeamJoinDetails(SfTeamJoinDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfTeamJoinDetails(Tag.SF_TEAM_JOIN_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_TEAM_JOIN_DETAILS}. + * + * @return The {@link SfTeamJoinDetails} value associated with this instance + * if {@link #isSfTeamJoinDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamJoinDetails} is {@code + * false}. + */ + public SfTeamJoinDetails getSfTeamJoinDetailsValue() { + if (this._tag != Tag.SF_TEAM_JOIN_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_JOIN_DETAILS, but was Tag." + this._tag.name()); + } + return sfTeamJoinDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS}, {@code false} otherwise. + */ + public boolean isSfTeamJoinFromOobLinkDetails() { + return this._tag == Tag.SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfTeamJoinFromOobLinkDetails(SfTeamJoinFromOobLinkDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfTeamJoinFromOobLinkDetails(Tag.SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS}. + * + * @return The {@link SfTeamJoinFromOobLinkDetails} value associated with + * this instance if {@link #isSfTeamJoinFromOobLinkDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSfTeamJoinFromOobLinkDetails} + * is {@code false}. + */ + public SfTeamJoinFromOobLinkDetails getSfTeamJoinFromOobLinkDetailsValue() { + if (this._tag != Tag.SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS, but was Tag." + this._tag.name()); + } + return sfTeamJoinFromOobLinkDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_UNINVITE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_UNINVITE_DETAILS}, {@code false} otherwise. + */ + public boolean isSfTeamUninviteDetails() { + return this._tag == Tag.SF_TEAM_UNINVITE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SF_TEAM_UNINVITE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SF_TEAM_UNINVITE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sfTeamUninviteDetails(SfTeamUninviteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSfTeamUninviteDetails(Tag.SF_TEAM_UNINVITE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SF_TEAM_UNINVITE_DETAILS}. + * + * @return The {@link SfTeamUninviteDetails} value associated with this + * instance if {@link #isSfTeamUninviteDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamUninviteDetails} is + * {@code false}. + */ + public SfTeamUninviteDetails getSfTeamUninviteDetailsValue() { + if (this._tag != Tag.SF_TEAM_UNINVITE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_UNINVITE_DETAILS, but was Tag." + this._tag.name()); + } + return sfTeamUninviteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_INVITEES_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_INVITEES_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentAddInviteesDetails() { + return this._tag == Tag.SHARED_CONTENT_ADD_INVITEES_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_ADD_INVITEES_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_INVITEES_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentAddInviteesDetails(SharedContentAddInviteesDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentAddInviteesDetails(Tag.SHARED_CONTENT_ADD_INVITEES_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_INVITEES_DETAILS}. + * + * @return The {@link SharedContentAddInviteesDetails} value associated with + * this instance if {@link #isSharedContentAddInviteesDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentAddInviteesDetails} is {@code false}. + */ + public SharedContentAddInviteesDetails getSharedContentAddInviteesDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_INVITEES_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_INVITEES_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentAddInviteesDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentAddLinkExpiryDetails() { + return this._tag == Tag.SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentAddLinkExpiryDetails(SharedContentAddLinkExpiryDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentAddLinkExpiryDetails(Tag.SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS}. + * + * @return The {@link SharedContentAddLinkExpiryDetails} value associated + * with this instance if {@link #isSharedContentAddLinkExpiryDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentAddLinkExpiryDetails} is {@code false}. + */ + public SharedContentAddLinkExpiryDetails getSharedContentAddLinkExpiryDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentAddLinkExpiryDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentAddLinkPasswordDetails() { + return this._tag == Tag.SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentAddLinkPasswordDetails(SharedContentAddLinkPasswordDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentAddLinkPasswordDetails(Tag.SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS}. + * + * @return The {@link SharedContentAddLinkPasswordDetails} value associated + * with this instance if {@link #isSharedContentAddLinkPasswordDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentAddLinkPasswordDetails} is {@code false}. + */ + public SharedContentAddLinkPasswordDetails getSharedContentAddLinkPasswordDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentAddLinkPasswordDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentAddMemberDetails() { + return this._tag == Tag.SHARED_CONTENT_ADD_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_ADD_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentAddMemberDetails(SharedContentAddMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentAddMemberDetails(Tag.SHARED_CONTENT_ADD_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_MEMBER_DETAILS}. + * + * @return The {@link SharedContentAddMemberDetails} value associated with + * this instance if {@link #isSharedContentAddMemberDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentAddMemberDetails} is {@code false}. + */ + public SharedContentAddMemberDetails getSharedContentAddMemberDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentAddMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeDownloadsPolicyDetails() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentChangeDownloadsPolicyDetails(SharedContentChangeDownloadsPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentChangeDownloadsPolicyDetails(Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS}. + * + * @return The {@link SharedContentChangeDownloadsPolicyDetails} value + * associated with this instance if {@link + * #isSharedContentChangeDownloadsPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeDownloadsPolicyDetails} is {@code false}. + */ + public SharedContentChangeDownloadsPolicyDetails getSharedContentChangeDownloadsPolicyDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentChangeDownloadsPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeInviteeRoleDetails() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentChangeInviteeRoleDetails(SharedContentChangeInviteeRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentChangeInviteeRoleDetails(Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS}. + * + * @return The {@link SharedContentChangeInviteeRoleDetails} value + * associated with this instance if {@link + * #isSharedContentChangeInviteeRoleDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeInviteeRoleDetails} is {@code false}. + */ + public SharedContentChangeInviteeRoleDetails getSharedContentChangeInviteeRoleDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentChangeInviteeRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeLinkAudienceDetails() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentChangeLinkAudienceDetails(SharedContentChangeLinkAudienceDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentChangeLinkAudienceDetails(Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS}. + * + * @return The {@link SharedContentChangeLinkAudienceDetails} value + * associated with this instance if {@link + * #isSharedContentChangeLinkAudienceDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeLinkAudienceDetails} is {@code false}. + */ + public SharedContentChangeLinkAudienceDetails getSharedContentChangeLinkAudienceDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentChangeLinkAudienceDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeLinkExpiryDetails() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentChangeLinkExpiryDetails(SharedContentChangeLinkExpiryDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentChangeLinkExpiryDetails(Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS}. + * + * @return The {@link SharedContentChangeLinkExpiryDetails} value associated + * with this instance if {@link #isSharedContentChangeLinkExpiryDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeLinkExpiryDetails} is {@code false}. + */ + public SharedContentChangeLinkExpiryDetails getSharedContentChangeLinkExpiryDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentChangeLinkExpiryDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeLinkPasswordDetails() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentChangeLinkPasswordDetails(SharedContentChangeLinkPasswordDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentChangeLinkPasswordDetails(Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS}. + * + * @return The {@link SharedContentChangeLinkPasswordDetails} value + * associated with this instance if {@link + * #isSharedContentChangeLinkPasswordDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeLinkPasswordDetails} is {@code false}. + */ + public SharedContentChangeLinkPasswordDetails getSharedContentChangeLinkPasswordDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentChangeLinkPasswordDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeMemberRoleDetails() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentChangeMemberRoleDetails(SharedContentChangeMemberRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentChangeMemberRoleDetails(Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS}. + * + * @return The {@link SharedContentChangeMemberRoleDetails} value associated + * with this instance if {@link #isSharedContentChangeMemberRoleDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeMemberRoleDetails} is {@code false}. + */ + public SharedContentChangeMemberRoleDetails getSharedContentChangeMemberRoleDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentChangeMemberRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeViewerInfoPolicyDetails() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentChangeViewerInfoPolicyDetails(SharedContentChangeViewerInfoPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentChangeViewerInfoPolicyDetails(Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS}. + * + * @return The {@link SharedContentChangeViewerInfoPolicyDetails} value + * associated with this instance if {@link + * #isSharedContentChangeViewerInfoPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeViewerInfoPolicyDetails} is {@code false}. + */ + public SharedContentChangeViewerInfoPolicyDetails getSharedContentChangeViewerInfoPolicyDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentChangeViewerInfoPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentClaimInvitationDetails() { + return this._tag == Tag.SHARED_CONTENT_CLAIM_INVITATION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_CLAIM_INVITATION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentClaimInvitationDetails(SharedContentClaimInvitationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentClaimInvitationDetails(Tag.SHARED_CONTENT_CLAIM_INVITATION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION_DETAILS}. + * + * @return The {@link SharedContentClaimInvitationDetails} value associated + * with this instance if {@link #isSharedContentClaimInvitationDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentClaimInvitationDetails} is {@code false}. + */ + public SharedContentClaimInvitationDetails getSharedContentClaimInvitationDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_CLAIM_INVITATION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CLAIM_INVITATION_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentClaimInvitationDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_COPY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_COPY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentCopyDetails() { + return this._tag == Tag.SHARED_CONTENT_COPY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_COPY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_COPY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentCopyDetails(SharedContentCopyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentCopyDetails(Tag.SHARED_CONTENT_COPY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_CONTENT_COPY_DETAILS}. + * + * @return The {@link SharedContentCopyDetails} value associated with this + * instance if {@link #isSharedContentCopyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentCopyDetails} is + * {@code false}. + */ + public SharedContentCopyDetails getSharedContentCopyDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_COPY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_COPY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentCopyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_DOWNLOAD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_DOWNLOAD_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentDownloadDetails() { + return this._tag == Tag.SHARED_CONTENT_DOWNLOAD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_DOWNLOAD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_DOWNLOAD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentDownloadDetails(SharedContentDownloadDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentDownloadDetails(Tag.SHARED_CONTENT_DOWNLOAD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_DOWNLOAD_DETAILS}. + * + * @return The {@link SharedContentDownloadDetails} value associated with + * this instance if {@link #isSharedContentDownloadDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedContentDownloadDetails} + * is {@code false}. + */ + public SharedContentDownloadDetails getSharedContentDownloadDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_DOWNLOAD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_DOWNLOAD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentDownloadDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentRelinquishMembershipDetails() { + return this._tag == Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRelinquishMembershipDetails(SharedContentRelinquishMembershipDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRelinquishMembershipDetails(Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS}. + * + * @return The {@link SharedContentRelinquishMembershipDetails} value + * associated with this instance if {@link + * #isSharedContentRelinquishMembershipDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRelinquishMembershipDetails} is {@code false}. + */ + public SharedContentRelinquishMembershipDetails getSharedContentRelinquishMembershipDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRelinquishMembershipDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentRemoveInviteesDetails() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_INVITEES_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_REMOVE_INVITEES_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRemoveInviteesDetails(SharedContentRemoveInviteesDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRemoveInviteesDetails(Tag.SHARED_CONTENT_REMOVE_INVITEES_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES_DETAILS}. + * + * @return The {@link SharedContentRemoveInviteesDetails} value associated + * with this instance if {@link #isSharedContentRemoveInviteesDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRemoveInviteesDetails} is {@code false}. + */ + public SharedContentRemoveInviteesDetails getSharedContentRemoveInviteesDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_INVITEES_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_INVITEES_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRemoveInviteesDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentRemoveLinkExpiryDetails() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRemoveLinkExpiryDetails(SharedContentRemoveLinkExpiryDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRemoveLinkExpiryDetails(Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS}. + * + * @return The {@link SharedContentRemoveLinkExpiryDetails} value associated + * with this instance if {@link #isSharedContentRemoveLinkExpiryDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRemoveLinkExpiryDetails} is {@code false}. + */ + public SharedContentRemoveLinkExpiryDetails getSharedContentRemoveLinkExpiryDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRemoveLinkExpiryDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentRemoveLinkPasswordDetails() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRemoveLinkPasswordDetails(SharedContentRemoveLinkPasswordDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRemoveLinkPasswordDetails(Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS}. + * + * @return The {@link SharedContentRemoveLinkPasswordDetails} value + * associated with this instance if {@link + * #isSharedContentRemoveLinkPasswordDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRemoveLinkPasswordDetails} is {@code false}. + */ + public SharedContentRemoveLinkPasswordDetails getSharedContentRemoveLinkPasswordDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRemoveLinkPasswordDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentRemoveMemberDetails() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_REMOVE_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRemoveMemberDetails(SharedContentRemoveMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRemoveMemberDetails(Tag.SHARED_CONTENT_REMOVE_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER_DETAILS}. + * + * @return The {@link SharedContentRemoveMemberDetails} value associated + * with this instance if {@link #isSharedContentRemoveMemberDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRemoveMemberDetails} is {@code false}. + */ + public SharedContentRemoveMemberDetails getSharedContentRemoveMemberDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRemoveMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentRequestAccessDetails() { + return this._tag == Tag.SHARED_CONTENT_REQUEST_ACCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_REQUEST_ACCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRequestAccessDetails(SharedContentRequestAccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRequestAccessDetails(Tag.SHARED_CONTENT_REQUEST_ACCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS_DETAILS}. + * + * @return The {@link SharedContentRequestAccessDetails} value associated + * with this instance if {@link #isSharedContentRequestAccessDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRequestAccessDetails} is {@code false}. + */ + public SharedContentRequestAccessDetails getSharedContentRequestAccessDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_REQUEST_ACCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REQUEST_ACCESS_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRequestAccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedContentRestoreInviteesDetails() { + return this._tag == Tag.SHARED_CONTENT_RESTORE_INVITEES_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_RESTORE_INVITEES_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRestoreInviteesDetails(SharedContentRestoreInviteesDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRestoreInviteesDetails(Tag.SHARED_CONTENT_RESTORE_INVITEES_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES_DETAILS}. + * + * @return The {@link SharedContentRestoreInviteesDetails} value associated + * with this instance if {@link #isSharedContentRestoreInviteesDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRestoreInviteesDetails} is {@code false}. + */ + public SharedContentRestoreInviteesDetails getSharedContentRestoreInviteesDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_RESTORE_INVITEES_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_RESTORE_INVITEES_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRestoreInviteesDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentRestoreMemberDetails() { + return this._tag == Tag.SHARED_CONTENT_RESTORE_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_RESTORE_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentRestoreMemberDetails(SharedContentRestoreMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentRestoreMemberDetails(Tag.SHARED_CONTENT_RESTORE_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER_DETAILS}. + * + * @return The {@link SharedContentRestoreMemberDetails} value associated + * with this instance if {@link #isSharedContentRestoreMemberDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRestoreMemberDetails} is {@code false}. + */ + public SharedContentRestoreMemberDetails getSharedContentRestoreMemberDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_RESTORE_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_RESTORE_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentRestoreMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_UNSHARE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_UNSHARE_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentUnshareDetails() { + return this._tag == Tag.SHARED_CONTENT_UNSHARE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_UNSHARE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_UNSHARE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentUnshareDetails(SharedContentUnshareDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentUnshareDetails(Tag.SHARED_CONTENT_UNSHARE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_CONTENT_UNSHARE_DETAILS}. + * + * @return The {@link SharedContentUnshareDetails} value associated with + * this instance if {@link #isSharedContentUnshareDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedContentUnshareDetails} + * is {@code false}. + */ + public SharedContentUnshareDetails getSharedContentUnshareDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_UNSHARE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_UNSHARE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentUnshareDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_VIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_VIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedContentViewDetails() { + return this._tag == Tag.SHARED_CONTENT_VIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_CONTENT_VIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_CONTENT_VIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedContentViewDetails(SharedContentViewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedContentViewDetails(Tag.SHARED_CONTENT_VIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_CONTENT_VIEW_DETAILS}. + * + * @return The {@link SharedContentViewDetails} value associated with this + * instance if {@link #isSharedContentViewDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentViewDetails} is + * {@code false}. + */ + public SharedContentViewDetails getSharedContentViewDetailsValue() { + if (this._tag != Tag.SHARED_CONTENT_VIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_VIEW_DETAILS, but was Tag." + this._tag.name()); + } + return sharedContentViewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedFolderChangeLinkPolicyDetails() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderChangeLinkPolicyDetails(SharedFolderChangeLinkPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderChangeLinkPolicyDetails(Tag.SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS}. + * + * @return The {@link SharedFolderChangeLinkPolicyDetails} value associated + * with this instance if {@link #isSharedFolderChangeLinkPolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderChangeLinkPolicyDetails} is {@code false}. + */ + public SharedFolderChangeLinkPolicyDetails getSharedFolderChangeLinkPolicyDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderChangeLinkPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS}, {@code + * false} otherwise. + */ + public boolean isSharedFolderChangeMembersInheritancePolicyDetails() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderChangeMembersInheritancePolicyDetails(SharedFolderChangeMembersInheritancePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderChangeMembersInheritancePolicyDetails(Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS}. + * + * @return The {@link SharedFolderChangeMembersInheritancePolicyDetails} + * value associated with this instance if {@link + * #isSharedFolderChangeMembersInheritancePolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderChangeMembersInheritancePolicyDetails} is {@code + * false}. + */ + public SharedFolderChangeMembersInheritancePolicyDetails getSharedFolderChangeMembersInheritancePolicyDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderChangeMembersInheritancePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS}, {@code + * false} otherwise. + */ + public boolean isSharedFolderChangeMembersManagementPolicyDetails() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderChangeMembersManagementPolicyDetails(SharedFolderChangeMembersManagementPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderChangeMembersManagementPolicyDetails(Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS}. + * + * @return The {@link SharedFolderChangeMembersManagementPolicyDetails} + * value associated with this instance if {@link + * #isSharedFolderChangeMembersManagementPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderChangeMembersManagementPolicyDetails} is {@code + * false}. + */ + public SharedFolderChangeMembersManagementPolicyDetails getSharedFolderChangeMembersManagementPolicyDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderChangeMembersManagementPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedFolderChangeMembersPolicyDetails() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderChangeMembersPolicyDetails(SharedFolderChangeMembersPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderChangeMembersPolicyDetails(Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS}. + * + * @return The {@link SharedFolderChangeMembersPolicyDetails} value + * associated with this instance if {@link + * #isSharedFolderChangeMembersPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderChangeMembersPolicyDetails} is {@code false}. + */ + public SharedFolderChangeMembersPolicyDetails getSharedFolderChangeMembersPolicyDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderChangeMembersPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedFolderCreateDetails() { + return this._tag == Tag.SHARED_FOLDER_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderCreateDetails(SharedFolderCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderCreateDetails(Tag.SHARED_FOLDER_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_FOLDER_CREATE_DETAILS}. + * + * @return The {@link SharedFolderCreateDetails} value associated with this + * instance if {@link #isSharedFolderCreateDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderCreateDetails} is + * {@code false}. + */ + public SharedFolderCreateDetails getSharedFolderCreateDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedFolderDeclineInvitationDetails() { + return this._tag == Tag.SHARED_FOLDER_DECLINE_INVITATION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_DECLINE_INVITATION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderDeclineInvitationDetails(SharedFolderDeclineInvitationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderDeclineInvitationDetails(Tag.SHARED_FOLDER_DECLINE_INVITATION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION_DETAILS}. + * + * @return The {@link SharedFolderDeclineInvitationDetails} value associated + * with this instance if {@link #isSharedFolderDeclineInvitationDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderDeclineInvitationDetails} is {@code false}. + */ + public SharedFolderDeclineInvitationDetails getSharedFolderDeclineInvitationDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_DECLINE_INVITATION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_DECLINE_INVITATION_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderDeclineInvitationDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_MOUNT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_MOUNT_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedFolderMountDetails() { + return this._tag == Tag.SHARED_FOLDER_MOUNT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_MOUNT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_MOUNT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderMountDetails(SharedFolderMountDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderMountDetails(Tag.SHARED_FOLDER_MOUNT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_FOLDER_MOUNT_DETAILS}. + * + * @return The {@link SharedFolderMountDetails} value associated with this + * instance if {@link #isSharedFolderMountDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderMountDetails} is + * {@code false}. + */ + public SharedFolderMountDetails getSharedFolderMountDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_MOUNT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_MOUNT_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderMountDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_NEST_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_NEST_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedFolderNestDetails() { + return this._tag == Tag.SHARED_FOLDER_NEST_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_NEST_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_NEST_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderNestDetails(SharedFolderNestDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderNestDetails(Tag.SHARED_FOLDER_NEST_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_FOLDER_NEST_DETAILS}. + * + * @return The {@link SharedFolderNestDetails} value associated with this + * instance if {@link #isSharedFolderNestDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderNestDetails} is + * {@code false}. + */ + public SharedFolderNestDetails getSharedFolderNestDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_NEST_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_NEST_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderNestDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedFolderTransferOwnershipDetails() { + return this._tag == Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderTransferOwnershipDetails(SharedFolderTransferOwnershipDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderTransferOwnershipDetails(Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS}. + * + * @return The {@link SharedFolderTransferOwnershipDetails} value associated + * with this instance if {@link #isSharedFolderTransferOwnershipDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderTransferOwnershipDetails} is {@code false}. + */ + public SharedFolderTransferOwnershipDetails getSharedFolderTransferOwnershipDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderTransferOwnershipDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_UNMOUNT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_UNMOUNT_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedFolderUnmountDetails() { + return this._tag == Tag.SHARED_FOLDER_UNMOUNT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_FOLDER_UNMOUNT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_FOLDER_UNMOUNT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedFolderUnmountDetails(SharedFolderUnmountDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedFolderUnmountDetails(Tag.SHARED_FOLDER_UNMOUNT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_FOLDER_UNMOUNT_DETAILS}. + * + * @return The {@link SharedFolderUnmountDetails} value associated with this + * instance if {@link #isSharedFolderUnmountDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderUnmountDetails} + * is {@code false}. + */ + public SharedFolderUnmountDetails getSharedFolderUnmountDetailsValue() { + if (this._tag != Tag.SHARED_FOLDER_UNMOUNT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_UNMOUNT_DETAILS, but was Tag." + this._tag.name()); + } + return sharedFolderUnmountDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_ADD_EXPIRY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_ADD_EXPIRY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkAddExpiryDetails() { + return this._tag == Tag.SHARED_LINK_ADD_EXPIRY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_ADD_EXPIRY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_ADD_EXPIRY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkAddExpiryDetails(SharedLinkAddExpiryDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkAddExpiryDetails(Tag.SHARED_LINK_ADD_EXPIRY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_ADD_EXPIRY_DETAILS}. + * + * @return The {@link SharedLinkAddExpiryDetails} value associated with this + * instance if {@link #isSharedLinkAddExpiryDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkAddExpiryDetails} + * is {@code false}. + */ + public SharedLinkAddExpiryDetails getSharedLinkAddExpiryDetailsValue() { + if (this._tag != Tag.SHARED_LINK_ADD_EXPIRY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_ADD_EXPIRY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkAddExpiryDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkChangeExpiryDetails() { + return this._tag == Tag.SHARED_LINK_CHANGE_EXPIRY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_CHANGE_EXPIRY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkChangeExpiryDetails(SharedLinkChangeExpiryDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkChangeExpiryDetails(Tag.SHARED_LINK_CHANGE_EXPIRY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY_DETAILS}. + * + * @return The {@link SharedLinkChangeExpiryDetails} value associated with + * this instance if {@link #isSharedLinkChangeExpiryDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkChangeExpiryDetails} is {@code false}. + */ + public SharedLinkChangeExpiryDetails getSharedLinkChangeExpiryDetailsValue() { + if (this._tag != Tag.SHARED_LINK_CHANGE_EXPIRY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_CHANGE_EXPIRY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkChangeExpiryDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkChangeVisibilityDetails() { + return this._tag == Tag.SHARED_LINK_CHANGE_VISIBILITY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_CHANGE_VISIBILITY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkChangeVisibilityDetails(SharedLinkChangeVisibilityDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkChangeVisibilityDetails(Tag.SHARED_LINK_CHANGE_VISIBILITY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY_DETAILS}. + * + * @return The {@link SharedLinkChangeVisibilityDetails} value associated + * with this instance if {@link #isSharedLinkChangeVisibilityDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkChangeVisibilityDetails} is {@code false}. + */ + public SharedLinkChangeVisibilityDetails getSharedLinkChangeVisibilityDetailsValue() { + if (this._tag != Tag.SHARED_LINK_CHANGE_VISIBILITY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_CHANGE_VISIBILITY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkChangeVisibilityDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_COPY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_COPY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkCopyDetails() { + return this._tag == Tag.SHARED_LINK_COPY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_COPY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_COPY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkCopyDetails(SharedLinkCopyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkCopyDetails(Tag.SHARED_LINK_COPY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_LINK_COPY_DETAILS}. + * + * @return The {@link SharedLinkCopyDetails} value associated with this + * instance if {@link #isSharedLinkCopyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkCopyDetails} is + * {@code false}. + */ + public SharedLinkCopyDetails getSharedLinkCopyDetailsValue() { + if (this._tag != Tag.SHARED_LINK_COPY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_COPY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkCopyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkCreateDetails() { + return this._tag == Tag.SHARED_LINK_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkCreateDetails(SharedLinkCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkCreateDetails(Tag.SHARED_LINK_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_LINK_CREATE_DETAILS}. + * + * @return The {@link SharedLinkCreateDetails} value associated with this + * instance if {@link #isSharedLinkCreateDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkCreateDetails} is + * {@code false}. + */ + public SharedLinkCreateDetails getSharedLinkCreateDetailsValue() { + if (this._tag != Tag.SHARED_LINK_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_DISABLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_DISABLE_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkDisableDetails() { + return this._tag == Tag.SHARED_LINK_DISABLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_DISABLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_DISABLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkDisableDetails(SharedLinkDisableDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkDisableDetails(Tag.SHARED_LINK_DISABLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_LINK_DISABLE_DETAILS}. + * + * @return The {@link SharedLinkDisableDetails} value associated with this + * instance if {@link #isSharedLinkDisableDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkDisableDetails} is + * {@code false}. + */ + public SharedLinkDisableDetails getSharedLinkDisableDetailsValue() { + if (this._tag != Tag.SHARED_LINK_DISABLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_DISABLE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkDisableDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_DOWNLOAD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_DOWNLOAD_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkDownloadDetails() { + return this._tag == Tag.SHARED_LINK_DOWNLOAD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_DOWNLOAD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_DOWNLOAD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkDownloadDetails(SharedLinkDownloadDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkDownloadDetails(Tag.SHARED_LINK_DOWNLOAD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_LINK_DOWNLOAD_DETAILS}. + * + * @return The {@link SharedLinkDownloadDetails} value associated with this + * instance if {@link #isSharedLinkDownloadDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkDownloadDetails} is + * {@code false}. + */ + public SharedLinkDownloadDetails getSharedLinkDownloadDetailsValue() { + if (this._tag != Tag.SHARED_LINK_DOWNLOAD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_DOWNLOAD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkDownloadDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkRemoveExpiryDetails() { + return this._tag == Tag.SHARED_LINK_REMOVE_EXPIRY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_REMOVE_EXPIRY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkRemoveExpiryDetails(SharedLinkRemoveExpiryDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkRemoveExpiryDetails(Tag.SHARED_LINK_REMOVE_EXPIRY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY_DETAILS}. + * + * @return The {@link SharedLinkRemoveExpiryDetails} value associated with + * this instance if {@link #isSharedLinkRemoveExpiryDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkRemoveExpiryDetails} is {@code false}. + */ + public SharedLinkRemoveExpiryDetails getSharedLinkRemoveExpiryDetailsValue() { + if (this._tag != Tag.SHARED_LINK_REMOVE_EXPIRY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_REMOVE_EXPIRY_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkRemoveExpiryDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsAddExpirationDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsAddExpirationDetails(SharedLinkSettingsAddExpirationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsAddExpirationDetails(Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS}. + * + * @return The {@link SharedLinkSettingsAddExpirationDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsAddExpirationDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAddExpirationDetails} is {@code false}. + */ + public SharedLinkSettingsAddExpirationDetails getSharedLinkSettingsAddExpirationDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAddExpirationDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsAddPasswordDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsAddPasswordDetails(SharedLinkSettingsAddPasswordDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsAddPasswordDetails(Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS}. + * + * @return The {@link SharedLinkSettingsAddPasswordDetails} value associated + * with this instance if {@link #isSharedLinkSettingsAddPasswordDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAddPasswordDetails} is {@code false}. + */ + public SharedLinkSettingsAddPasswordDetails getSharedLinkSettingsAddPasswordDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAddPasswordDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS}, {@code + * false} otherwise. + */ + public boolean isSharedLinkSettingsAllowDownloadDisabledDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsAllowDownloadDisabledDetails(SharedLinkSettingsAllowDownloadDisabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsAllowDownloadDisabledDetails(Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS}. + * + * @return The {@link SharedLinkSettingsAllowDownloadDisabledDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsAllowDownloadDisabledDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAllowDownloadDisabledDetails} is {@code false}. + */ + public SharedLinkSettingsAllowDownloadDisabledDetails getSharedLinkSettingsAllowDownloadDisabledDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAllowDownloadDisabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS}, {@code + * false} otherwise. + */ + public boolean isSharedLinkSettingsAllowDownloadEnabledDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsAllowDownloadEnabledDetails(SharedLinkSettingsAllowDownloadEnabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsAllowDownloadEnabledDetails(Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS}. + * + * @return The {@link SharedLinkSettingsAllowDownloadEnabledDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsAllowDownloadEnabledDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAllowDownloadEnabledDetails} is {@code false}. + */ + public SharedLinkSettingsAllowDownloadEnabledDetails getSharedLinkSettingsAllowDownloadEnabledDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAllowDownloadEnabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsChangeAudienceDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsChangeAudienceDetails(SharedLinkSettingsChangeAudienceDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsChangeAudienceDetails(Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS}. + * + * @return The {@link SharedLinkSettingsChangeAudienceDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsChangeAudienceDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsChangeAudienceDetails} is {@code false}. + */ + public SharedLinkSettingsChangeAudienceDetails getSharedLinkSettingsChangeAudienceDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsChangeAudienceDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsChangeExpirationDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsChangeExpirationDetails(SharedLinkSettingsChangeExpirationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsChangeExpirationDetails(Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS}. + * + * @return The {@link SharedLinkSettingsChangeExpirationDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsChangeExpirationDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsChangeExpirationDetails} is {@code false}. + */ + public SharedLinkSettingsChangeExpirationDetails getSharedLinkSettingsChangeExpirationDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsChangeExpirationDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsChangePasswordDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsChangePasswordDetails(SharedLinkSettingsChangePasswordDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsChangePasswordDetails(Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS}. + * + * @return The {@link SharedLinkSettingsChangePasswordDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsChangePasswordDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsChangePasswordDetails} is {@code false}. + */ + public SharedLinkSettingsChangePasswordDetails getSharedLinkSettingsChangePasswordDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsChangePasswordDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsRemoveExpirationDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsRemoveExpirationDetails(SharedLinkSettingsRemoveExpirationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsRemoveExpirationDetails(Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS}. + * + * @return The {@link SharedLinkSettingsRemoveExpirationDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsRemoveExpirationDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsRemoveExpirationDetails} is {@code false}. + */ + public SharedLinkSettingsRemoveExpirationDetails getSharedLinkSettingsRemoveExpirationDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsRemoveExpirationDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsRemovePasswordDetails() { + return this._tag == Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkSettingsRemovePasswordDetails(SharedLinkSettingsRemovePasswordDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkSettingsRemovePasswordDetails(Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS}. + * + * @return The {@link SharedLinkSettingsRemovePasswordDetails} value + * associated with this instance if {@link + * #isSharedLinkSettingsRemovePasswordDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsRemovePasswordDetails} is {@code false}. + */ + public SharedLinkSettingsRemovePasswordDetails getSharedLinkSettingsRemovePasswordDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsRemovePasswordDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SHARE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SHARE_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkShareDetails() { + return this._tag == Tag.SHARED_LINK_SHARE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_SHARE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_SHARE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkShareDetails(SharedLinkShareDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkShareDetails(Tag.SHARED_LINK_SHARE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_LINK_SHARE_DETAILS}. + * + * @return The {@link SharedLinkShareDetails} value associated with this + * instance if {@link #isSharedLinkShareDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkShareDetails} is + * {@code false}. + */ + public SharedLinkShareDetails getSharedLinkShareDetailsValue() { + if (this._tag != Tag.SHARED_LINK_SHARE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SHARE_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkShareDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_VIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_VIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedLinkViewDetails() { + return this._tag == Tag.SHARED_LINK_VIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_LINK_VIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_LINK_VIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedLinkViewDetails(SharedLinkViewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedLinkViewDetails(Tag.SHARED_LINK_VIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_LINK_VIEW_DETAILS}. + * + * @return The {@link SharedLinkViewDetails} value associated with this + * instance if {@link #isSharedLinkViewDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkViewDetails} is + * {@code false}. + */ + public SharedLinkViewDetails getSharedLinkViewDetailsValue() { + if (this._tag != Tag.SHARED_LINK_VIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_VIEW_DETAILS, but was Tag." + this._tag.name()); + } + return sharedLinkViewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_NOTE_OPENED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_NOTE_OPENED_DETAILS}, {@code false} otherwise. + */ + public boolean isSharedNoteOpenedDetails() { + return this._tag == Tag.SHARED_NOTE_OPENED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARED_NOTE_OPENED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARED_NOTE_OPENED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharedNoteOpenedDetails(SharedNoteOpenedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharedNoteOpenedDetails(Tag.SHARED_NOTE_OPENED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHARED_NOTE_OPENED_DETAILS}. + * + * @return The {@link SharedNoteOpenedDetails} value associated with this + * instance if {@link #isSharedNoteOpenedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedNoteOpenedDetails} is + * {@code false}. + */ + public SharedNoteOpenedDetails getSharedNoteOpenedDetailsValue() { + if (this._tag != Tag.SHARED_NOTE_OPENED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_NOTE_OPENED_DETAILS, but was Tag." + this._tag.name()); + } + return sharedNoteOpenedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS_DETAILS}, {@code false} otherwise. + */ + public boolean isShmodelDisableDownloadsDetails() { + return this._tag == Tag.SHMODEL_DISABLE_DOWNLOADS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHMODEL_DISABLE_DOWNLOADS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails shmodelDisableDownloadsDetails(ShmodelDisableDownloadsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShmodelDisableDownloadsDetails(Tag.SHMODEL_DISABLE_DOWNLOADS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS_DETAILS}. + * + * @return The {@link ShmodelDisableDownloadsDetails} value associated with + * this instance if {@link #isShmodelDisableDownloadsDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isShmodelDisableDownloadsDetails} is {@code false}. + */ + public ShmodelDisableDownloadsDetails getShmodelDisableDownloadsDetailsValue() { + if (this._tag != Tag.SHMODEL_DISABLE_DOWNLOADS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHMODEL_DISABLE_DOWNLOADS_DETAILS, but was Tag." + this._tag.name()); + } + return shmodelDisableDownloadsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS_DETAILS}, {@code false} otherwise. + */ + public boolean isShmodelEnableDownloadsDetails() { + return this._tag == Tag.SHMODEL_ENABLE_DOWNLOADS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHMODEL_ENABLE_DOWNLOADS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails shmodelEnableDownloadsDetails(ShmodelEnableDownloadsDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShmodelEnableDownloadsDetails(Tag.SHMODEL_ENABLE_DOWNLOADS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS_DETAILS}. + * + * @return The {@link ShmodelEnableDownloadsDetails} value associated with + * this instance if {@link #isShmodelEnableDownloadsDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isShmodelEnableDownloadsDetails} is {@code false}. + */ + public ShmodelEnableDownloadsDetails getShmodelEnableDownloadsDetailsValue() { + if (this._tag != Tag.SHMODEL_ENABLE_DOWNLOADS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHMODEL_ENABLE_DOWNLOADS_DETAILS, but was Tag." + this._tag.name()); + } + return shmodelEnableDownloadsDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHMODEL_GROUP_SHARE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHMODEL_GROUP_SHARE_DETAILS}, {@code false} otherwise. + */ + public boolean isShmodelGroupShareDetails() { + return this._tag == Tag.SHMODEL_GROUP_SHARE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHMODEL_GROUP_SHARE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHMODEL_GROUP_SHARE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails shmodelGroupShareDetails(ShmodelGroupShareDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShmodelGroupShareDetails(Tag.SHMODEL_GROUP_SHARE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHMODEL_GROUP_SHARE_DETAILS}. + * + * @return The {@link ShmodelGroupShareDetails} value associated with this + * instance if {@link #isShmodelGroupShareDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShmodelGroupShareDetails} is + * {@code false}. + */ + public ShmodelGroupShareDetails getShmodelGroupShareDetailsValue() { + if (this._tag != Tag.SHMODEL_GROUP_SHARE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHMODEL_GROUP_SHARE_DETAILS, but was Tag." + this._tag.name()); + } + return shmodelGroupShareDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_ACCESS_GRANTED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_ACCESS_GRANTED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseAccessGrantedDetails() { + return this._tag == Tag.SHOWCASE_ACCESS_GRANTED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_ACCESS_GRANTED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_ACCESS_GRANTED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseAccessGrantedDetails(ShowcaseAccessGrantedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseAccessGrantedDetails(Tag.SHOWCASE_ACCESS_GRANTED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_ACCESS_GRANTED_DETAILS}. + * + * @return The {@link ShowcaseAccessGrantedDetails} value associated with + * this instance if {@link #isShowcaseAccessGrantedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseAccessGrantedDetails} + * is {@code false}. + */ + public ShowcaseAccessGrantedDetails getShowcaseAccessGrantedDetailsValue() { + if (this._tag != Tag.SHOWCASE_ACCESS_GRANTED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_ACCESS_GRANTED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseAccessGrantedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_ADD_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_ADD_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseAddMemberDetails() { + return this._tag == Tag.SHOWCASE_ADD_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_ADD_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_ADD_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseAddMemberDetails(ShowcaseAddMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseAddMemberDetails(Tag.SHOWCASE_ADD_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_ADD_MEMBER_DETAILS}. + * + * @return The {@link ShowcaseAddMemberDetails} value associated with this + * instance if {@link #isShowcaseAddMemberDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseAddMemberDetails} is + * {@code false}. + */ + public ShowcaseAddMemberDetails getShowcaseAddMemberDetailsValue() { + if (this._tag != Tag.SHOWCASE_ADD_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_ADD_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseAddMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_ARCHIVED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_ARCHIVED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseArchivedDetails() { + return this._tag == Tag.SHOWCASE_ARCHIVED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_ARCHIVED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_ARCHIVED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseArchivedDetails(ShowcaseArchivedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseArchivedDetails(Tag.SHOWCASE_ARCHIVED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_ARCHIVED_DETAILS}. + * + * @return The {@link ShowcaseArchivedDetails} value associated with this + * instance if {@link #isShowcaseArchivedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseArchivedDetails} is + * {@code false}. + */ + public ShowcaseArchivedDetails getShowcaseArchivedDetailsValue() { + if (this._tag != Tag.SHOWCASE_ARCHIVED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_ARCHIVED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseArchivedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CREATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CREATED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseCreatedDetails() { + return this._tag == Tag.SHOWCASE_CREATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_CREATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_CREATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseCreatedDetails(ShowcaseCreatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseCreatedDetails(Tag.SHOWCASE_CREATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_CREATED_DETAILS}. + * + * @return The {@link ShowcaseCreatedDetails} value associated with this + * instance if {@link #isShowcaseCreatedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseCreatedDetails} is + * {@code false}. + */ + public ShowcaseCreatedDetails getShowcaseCreatedDetailsValue() { + if (this._tag != Tag.SHOWCASE_CREATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CREATED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseCreatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_DELETE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_DELETE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseDeleteCommentDetails() { + return this._tag == Tag.SHOWCASE_DELETE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_DELETE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_DELETE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseDeleteCommentDetails(ShowcaseDeleteCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseDeleteCommentDetails(Tag.SHOWCASE_DELETE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_DELETE_COMMENT_DETAILS}. + * + * @return The {@link ShowcaseDeleteCommentDetails} value associated with + * this instance if {@link #isShowcaseDeleteCommentDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseDeleteCommentDetails} + * is {@code false}. + */ + public ShowcaseDeleteCommentDetails getShowcaseDeleteCommentDetailsValue() { + if (this._tag != Tag.SHOWCASE_DELETE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_DELETE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseDeleteCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_EDITED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_EDITED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseEditedDetails() { + return this._tag == Tag.SHOWCASE_EDITED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_EDITED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_EDITED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseEditedDetails(ShowcaseEditedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseEditedDetails(Tag.SHOWCASE_EDITED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_EDITED_DETAILS}. + * + * @return The {@link ShowcaseEditedDetails} value associated with this + * instance if {@link #isShowcaseEditedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseEditedDetails} is + * {@code false}. + */ + public ShowcaseEditedDetails getShowcaseEditedDetailsValue() { + if (this._tag != Tag.SHOWCASE_EDITED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_EDITED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseEditedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_EDIT_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_EDIT_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseEditCommentDetails() { + return this._tag == Tag.SHOWCASE_EDIT_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_EDIT_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_EDIT_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseEditCommentDetails(ShowcaseEditCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseEditCommentDetails(Tag.SHOWCASE_EDIT_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_EDIT_COMMENT_DETAILS}. + * + * @return The {@link ShowcaseEditCommentDetails} value associated with this + * instance if {@link #isShowcaseEditCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseEditCommentDetails} + * is {@code false}. + */ + public ShowcaseEditCommentDetails getShowcaseEditCommentDetailsValue() { + if (this._tag != Tag.SHOWCASE_EDIT_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_EDIT_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseEditCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_ADDED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_ADDED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseFileAddedDetails() { + return this._tag == Tag.SHOWCASE_FILE_ADDED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_FILE_ADDED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_FILE_ADDED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseFileAddedDetails(ShowcaseFileAddedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseFileAddedDetails(Tag.SHOWCASE_FILE_ADDED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_FILE_ADDED_DETAILS}. + * + * @return The {@link ShowcaseFileAddedDetails} value associated with this + * instance if {@link #isShowcaseFileAddedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileAddedDetails} is + * {@code false}. + */ + public ShowcaseFileAddedDetails getShowcaseFileAddedDetailsValue() { + if (this._tag != Tag.SHOWCASE_FILE_ADDED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_ADDED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseFileAddedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_DOWNLOAD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_DOWNLOAD_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseFileDownloadDetails() { + return this._tag == Tag.SHOWCASE_FILE_DOWNLOAD_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_FILE_DOWNLOAD_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_FILE_DOWNLOAD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseFileDownloadDetails(ShowcaseFileDownloadDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseFileDownloadDetails(Tag.SHOWCASE_FILE_DOWNLOAD_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_FILE_DOWNLOAD_DETAILS}. + * + * @return The {@link ShowcaseFileDownloadDetails} value associated with + * this instance if {@link #isShowcaseFileDownloadDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileDownloadDetails} + * is {@code false}. + */ + public ShowcaseFileDownloadDetails getShowcaseFileDownloadDetailsValue() { + if (this._tag != Tag.SHOWCASE_FILE_DOWNLOAD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_DOWNLOAD_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseFileDownloadDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_REMOVED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_REMOVED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseFileRemovedDetails() { + return this._tag == Tag.SHOWCASE_FILE_REMOVED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_FILE_REMOVED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_FILE_REMOVED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseFileRemovedDetails(ShowcaseFileRemovedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseFileRemovedDetails(Tag.SHOWCASE_FILE_REMOVED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_FILE_REMOVED_DETAILS}. + * + * @return The {@link ShowcaseFileRemovedDetails} value associated with this + * instance if {@link #isShowcaseFileRemovedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileRemovedDetails} + * is {@code false}. + */ + public ShowcaseFileRemovedDetails getShowcaseFileRemovedDetailsValue() { + if (this._tag != Tag.SHOWCASE_FILE_REMOVED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_REMOVED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseFileRemovedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_VIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_VIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseFileViewDetails() { + return this._tag == Tag.SHOWCASE_FILE_VIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_FILE_VIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_FILE_VIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseFileViewDetails(ShowcaseFileViewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseFileViewDetails(Tag.SHOWCASE_FILE_VIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_FILE_VIEW_DETAILS}. + * + * @return The {@link ShowcaseFileViewDetails} value associated with this + * instance if {@link #isShowcaseFileViewDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileViewDetails} is + * {@code false}. + */ + public ShowcaseFileViewDetails getShowcaseFileViewDetailsValue() { + if (this._tag != Tag.SHOWCASE_FILE_VIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_VIEW_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseFileViewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcasePermanentlyDeletedDetails() { + return this._tag == Tag.SHOWCASE_PERMANENTLY_DELETED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_PERMANENTLY_DELETED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcasePermanentlyDeletedDetails(ShowcasePermanentlyDeletedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcasePermanentlyDeletedDetails(Tag.SHOWCASE_PERMANENTLY_DELETED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED_DETAILS}. + * + * @return The {@link ShowcasePermanentlyDeletedDetails} value associated + * with this instance if {@link #isShowcasePermanentlyDeletedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isShowcasePermanentlyDeletedDetails} is {@code false}. + */ + public ShowcasePermanentlyDeletedDetails getShowcasePermanentlyDeletedDetailsValue() { + if (this._tag != Tag.SHOWCASE_PERMANENTLY_DELETED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_PERMANENTLY_DELETED_DETAILS, but was Tag." + this._tag.name()); + } + return showcasePermanentlyDeletedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_POST_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_POST_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcasePostCommentDetails() { + return this._tag == Tag.SHOWCASE_POST_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_POST_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_POST_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcasePostCommentDetails(ShowcasePostCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcasePostCommentDetails(Tag.SHOWCASE_POST_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_POST_COMMENT_DETAILS}. + * + * @return The {@link ShowcasePostCommentDetails} value associated with this + * instance if {@link #isShowcasePostCommentDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcasePostCommentDetails} + * is {@code false}. + */ + public ShowcasePostCommentDetails getShowcasePostCommentDetailsValue() { + if (this._tag != Tag.SHOWCASE_POST_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_POST_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return showcasePostCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_REMOVE_MEMBER_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseRemoveMemberDetails() { + return this._tag == Tag.SHOWCASE_REMOVE_MEMBER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_REMOVE_MEMBER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_REMOVE_MEMBER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseRemoveMemberDetails(ShowcaseRemoveMemberDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseRemoveMemberDetails(Tag.SHOWCASE_REMOVE_MEMBER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_REMOVE_MEMBER_DETAILS}. + * + * @return The {@link ShowcaseRemoveMemberDetails} value associated with + * this instance if {@link #isShowcaseRemoveMemberDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseRemoveMemberDetails} + * is {@code false}. + */ + public ShowcaseRemoveMemberDetails getShowcaseRemoveMemberDetailsValue() { + if (this._tag != Tag.SHOWCASE_REMOVE_MEMBER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_REMOVE_MEMBER_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseRemoveMemberDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_RENAMED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_RENAMED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseRenamedDetails() { + return this._tag == Tag.SHOWCASE_RENAMED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_RENAMED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_RENAMED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseRenamedDetails(ShowcaseRenamedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseRenamedDetails(Tag.SHOWCASE_RENAMED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_RENAMED_DETAILS}. + * + * @return The {@link ShowcaseRenamedDetails} value associated with this + * instance if {@link #isShowcaseRenamedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseRenamedDetails} is + * {@code false}. + */ + public ShowcaseRenamedDetails getShowcaseRenamedDetailsValue() { + if (this._tag != Tag.SHOWCASE_RENAMED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_RENAMED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseRenamedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_REQUEST_ACCESS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_REQUEST_ACCESS_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseRequestAccessDetails() { + return this._tag == Tag.SHOWCASE_REQUEST_ACCESS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_REQUEST_ACCESS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_REQUEST_ACCESS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseRequestAccessDetails(ShowcaseRequestAccessDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseRequestAccessDetails(Tag.SHOWCASE_REQUEST_ACCESS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_REQUEST_ACCESS_DETAILS}. + * + * @return The {@link ShowcaseRequestAccessDetails} value associated with + * this instance if {@link #isShowcaseRequestAccessDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseRequestAccessDetails} + * is {@code false}. + */ + public ShowcaseRequestAccessDetails getShowcaseRequestAccessDetailsValue() { + if (this._tag != Tag.SHOWCASE_REQUEST_ACCESS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_REQUEST_ACCESS_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseRequestAccessDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_RESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_RESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseResolveCommentDetails() { + return this._tag == Tag.SHOWCASE_RESOLVE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_RESOLVE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_RESOLVE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseResolveCommentDetails(ShowcaseResolveCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseResolveCommentDetails(Tag.SHOWCASE_RESOLVE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_RESOLVE_COMMENT_DETAILS}. + * + * @return The {@link ShowcaseResolveCommentDetails} value associated with + * this instance if {@link #isShowcaseResolveCommentDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseResolveCommentDetails} is {@code false}. + */ + public ShowcaseResolveCommentDetails getShowcaseResolveCommentDetailsValue() { + if (this._tag != Tag.SHOWCASE_RESOLVE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_RESOLVE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseResolveCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_RESTORED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_RESTORED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseRestoredDetails() { + return this._tag == Tag.SHOWCASE_RESTORED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_RESTORED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_RESTORED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseRestoredDetails(ShowcaseRestoredDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseRestoredDetails(Tag.SHOWCASE_RESTORED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_RESTORED_DETAILS}. + * + * @return The {@link ShowcaseRestoredDetails} value associated with this + * instance if {@link #isShowcaseRestoredDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseRestoredDetails} is + * {@code false}. + */ + public ShowcaseRestoredDetails getShowcaseRestoredDetailsValue() { + if (this._tag != Tag.SHOWCASE_RESTORED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_RESTORED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseRestoredDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_TRASHED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_TRASHED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseTrashedDetails() { + return this._tag == Tag.SHOWCASE_TRASHED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_TRASHED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_TRASHED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseTrashedDetails(ShowcaseTrashedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseTrashedDetails(Tag.SHOWCASE_TRASHED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_TRASHED_DETAILS}. + * + * @return The {@link ShowcaseTrashedDetails} value associated with this + * instance if {@link #isShowcaseTrashedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseTrashedDetails} is + * {@code false}. + */ + public ShowcaseTrashedDetails getShowcaseTrashedDetailsValue() { + if (this._tag != Tag.SHOWCASE_TRASHED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_TRASHED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseTrashedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseTrashedDeprecatedDetails() { + return this._tag == Tag.SHOWCASE_TRASHED_DEPRECATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_TRASHED_DEPRECATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseTrashedDeprecatedDetails(ShowcaseTrashedDeprecatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseTrashedDeprecatedDetails(Tag.SHOWCASE_TRASHED_DEPRECATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED_DETAILS}. + * + * @return The {@link ShowcaseTrashedDeprecatedDetails} value associated + * with this instance if {@link #isShowcaseTrashedDeprecatedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseTrashedDeprecatedDetails} is {@code false}. + */ + public ShowcaseTrashedDeprecatedDetails getShowcaseTrashedDeprecatedDetailsValue() { + if (this._tag != Tag.SHOWCASE_TRASHED_DEPRECATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_TRASHED_DEPRECATED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseTrashedDeprecatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseUnresolveCommentDetails() { + return this._tag == Tag.SHOWCASE_UNRESOLVE_COMMENT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_UNRESOLVE_COMMENT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseUnresolveCommentDetails(ShowcaseUnresolveCommentDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseUnresolveCommentDetails(Tag.SHOWCASE_UNRESOLVE_COMMENT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT_DETAILS}. + * + * @return The {@link ShowcaseUnresolveCommentDetails} value associated with + * this instance if {@link #isShowcaseUnresolveCommentDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseUnresolveCommentDetails} is {@code false}. + */ + public ShowcaseUnresolveCommentDetails getShowcaseUnresolveCommentDetailsValue() { + if (this._tag != Tag.SHOWCASE_UNRESOLVE_COMMENT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_UNRESOLVE_COMMENT_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseUnresolveCommentDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_UNTRASHED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_UNTRASHED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseUntrashedDetails() { + return this._tag == Tag.SHOWCASE_UNTRASHED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_UNTRASHED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_UNTRASHED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseUntrashedDetails(ShowcaseUntrashedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseUntrashedDetails(Tag.SHOWCASE_UNTRASHED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_UNTRASHED_DETAILS}. + * + * @return The {@link ShowcaseUntrashedDetails} value associated with this + * instance if {@link #isShowcaseUntrashedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseUntrashedDetails} is + * {@code false}. + */ + public ShowcaseUntrashedDetails getShowcaseUntrashedDetailsValue() { + if (this._tag != Tag.SHOWCASE_UNTRASHED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_UNTRASHED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseUntrashedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseUntrashedDeprecatedDetails() { + return this._tag == Tag.SHOWCASE_UNTRASHED_DEPRECATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_UNTRASHED_DEPRECATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseUntrashedDeprecatedDetails(ShowcaseUntrashedDeprecatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseUntrashedDeprecatedDetails(Tag.SHOWCASE_UNTRASHED_DEPRECATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED_DETAILS}. + * + * @return The {@link ShowcaseUntrashedDeprecatedDetails} value associated + * with this instance if {@link #isShowcaseUntrashedDeprecatedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseUntrashedDeprecatedDetails} is {@code false}. + */ + public ShowcaseUntrashedDeprecatedDetails getShowcaseUntrashedDeprecatedDetailsValue() { + if (this._tag != Tag.SHOWCASE_UNTRASHED_DEPRECATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_UNTRASHED_DEPRECATED_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseUntrashedDeprecatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_VIEW_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_VIEW_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseViewDetails() { + return this._tag == Tag.SHOWCASE_VIEW_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_VIEW_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_VIEW_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseViewDetails(ShowcaseViewDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseViewDetails(Tag.SHOWCASE_VIEW_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SHOWCASE_VIEW_DETAILS}. + * + * @return The {@link ShowcaseViewDetails} value associated with this + * instance if {@link #isShowcaseViewDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseViewDetails} is + * {@code false}. + */ + public ShowcaseViewDetails getShowcaseViewDetailsValue() { + if (this._tag != Tag.SHOWCASE_VIEW_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_VIEW_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseViewDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_ADD_CERT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_ADD_CERT_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoAddCertDetails() { + return this._tag == Tag.SSO_ADD_CERT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_ADD_CERT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_ADD_CERT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoAddCertDetails(SsoAddCertDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoAddCertDetails(Tag.SSO_ADD_CERT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_ADD_CERT_DETAILS}. + * + * @return The {@link SsoAddCertDetails} value associated with this instance + * if {@link #isSsoAddCertDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoAddCertDetails} is {@code + * false}. + */ + public SsoAddCertDetails getSsoAddCertDetailsValue() { + if (this._tag != Tag.SSO_ADD_CERT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ADD_CERT_DETAILS, but was Tag." + this._tag.name()); + } + return ssoAddCertDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_ADD_LOGIN_URL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_ADD_LOGIN_URL_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoAddLoginUrlDetails() { + return this._tag == Tag.SSO_ADD_LOGIN_URL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_ADD_LOGIN_URL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_ADD_LOGIN_URL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoAddLoginUrlDetails(SsoAddLoginUrlDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoAddLoginUrlDetails(Tag.SSO_ADD_LOGIN_URL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_ADD_LOGIN_URL_DETAILS}. + * + * @return The {@link SsoAddLoginUrlDetails} value associated with this + * instance if {@link #isSsoAddLoginUrlDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoAddLoginUrlDetails} is + * {@code false}. + */ + public SsoAddLoginUrlDetails getSsoAddLoginUrlDetailsValue() { + if (this._tag != Tag.SSO_ADD_LOGIN_URL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ADD_LOGIN_URL_DETAILS, but was Tag." + this._tag.name()); + } + return ssoAddLoginUrlDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_ADD_LOGOUT_URL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_ADD_LOGOUT_URL_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoAddLogoutUrlDetails() { + return this._tag == Tag.SSO_ADD_LOGOUT_URL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_ADD_LOGOUT_URL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_ADD_LOGOUT_URL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoAddLogoutUrlDetails(SsoAddLogoutUrlDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoAddLogoutUrlDetails(Tag.SSO_ADD_LOGOUT_URL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_ADD_LOGOUT_URL_DETAILS}. + * + * @return The {@link SsoAddLogoutUrlDetails} value associated with this + * instance if {@link #isSsoAddLogoutUrlDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoAddLogoutUrlDetails} is + * {@code false}. + */ + public SsoAddLogoutUrlDetails getSsoAddLogoutUrlDetailsValue() { + if (this._tag != Tag.SSO_ADD_LOGOUT_URL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ADD_LOGOUT_URL_DETAILS, but was Tag." + this._tag.name()); + } + return ssoAddLogoutUrlDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_CERT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_CERT_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoChangeCertDetails() { + return this._tag == Tag.SSO_CHANGE_CERT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_CHANGE_CERT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_CHANGE_CERT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoChangeCertDetails(SsoChangeCertDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoChangeCertDetails(Tag.SSO_CHANGE_CERT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_CHANGE_CERT_DETAILS}. + * + * @return The {@link SsoChangeCertDetails} value associated with this + * instance if {@link #isSsoChangeCertDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangeCertDetails} is + * {@code false}. + */ + public SsoChangeCertDetails getSsoChangeCertDetailsValue() { + if (this._tag != Tag.SSO_CHANGE_CERT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_CERT_DETAILS, but was Tag." + this._tag.name()); + } + return ssoChangeCertDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_LOGIN_URL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_LOGIN_URL_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoChangeLoginUrlDetails() { + return this._tag == Tag.SSO_CHANGE_LOGIN_URL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_CHANGE_LOGIN_URL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_CHANGE_LOGIN_URL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoChangeLoginUrlDetails(SsoChangeLoginUrlDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoChangeLoginUrlDetails(Tag.SSO_CHANGE_LOGIN_URL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_CHANGE_LOGIN_URL_DETAILS}. + * + * @return The {@link SsoChangeLoginUrlDetails} value associated with this + * instance if {@link #isSsoChangeLoginUrlDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangeLoginUrlDetails} is + * {@code false}. + */ + public SsoChangeLoginUrlDetails getSsoChangeLoginUrlDetailsValue() { + if (this._tag != Tag.SSO_CHANGE_LOGIN_URL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_LOGIN_URL_DETAILS, but was Tag." + this._tag.name()); + } + return ssoChangeLoginUrlDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_LOGOUT_URL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_LOGOUT_URL_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoChangeLogoutUrlDetails() { + return this._tag == Tag.SSO_CHANGE_LOGOUT_URL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_CHANGE_LOGOUT_URL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_CHANGE_LOGOUT_URL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoChangeLogoutUrlDetails(SsoChangeLogoutUrlDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoChangeLogoutUrlDetails(Tag.SSO_CHANGE_LOGOUT_URL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SSO_CHANGE_LOGOUT_URL_DETAILS}. + * + * @return The {@link SsoChangeLogoutUrlDetails} value associated with this + * instance if {@link #isSsoChangeLogoutUrlDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangeLogoutUrlDetails} is + * {@code false}. + */ + public SsoChangeLogoutUrlDetails getSsoChangeLogoutUrlDetailsValue() { + if (this._tag != Tag.SSO_CHANGE_LOGOUT_URL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_LOGOUT_URL_DETAILS, but was Tag." + this._tag.name()); + } + return ssoChangeLogoutUrlDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoChangeSamlIdentityModeDetails() { + return this._tag == Tag.SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoChangeSamlIdentityModeDetails(SsoChangeSamlIdentityModeDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoChangeSamlIdentityModeDetails(Tag.SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS}. + * + * @return The {@link SsoChangeSamlIdentityModeDetails} value associated + * with this instance if {@link #isSsoChangeSamlIdentityModeDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSsoChangeSamlIdentityModeDetails} is {@code false}. + */ + public SsoChangeSamlIdentityModeDetails getSsoChangeSamlIdentityModeDetailsValue() { + if (this._tag != Tag.SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS, but was Tag." + this._tag.name()); + } + return ssoChangeSamlIdentityModeDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_REMOVE_CERT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_REMOVE_CERT_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoRemoveCertDetails() { + return this._tag == Tag.SSO_REMOVE_CERT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_REMOVE_CERT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_REMOVE_CERT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoRemoveCertDetails(SsoRemoveCertDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoRemoveCertDetails(Tag.SSO_REMOVE_CERT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_REMOVE_CERT_DETAILS}. + * + * @return The {@link SsoRemoveCertDetails} value associated with this + * instance if {@link #isSsoRemoveCertDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoRemoveCertDetails} is + * {@code false}. + */ + public SsoRemoveCertDetails getSsoRemoveCertDetailsValue() { + if (this._tag != Tag.SSO_REMOVE_CERT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_REMOVE_CERT_DETAILS, but was Tag." + this._tag.name()); + } + return ssoRemoveCertDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_REMOVE_LOGIN_URL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_REMOVE_LOGIN_URL_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoRemoveLoginUrlDetails() { + return this._tag == Tag.SSO_REMOVE_LOGIN_URL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_REMOVE_LOGIN_URL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_REMOVE_LOGIN_URL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoRemoveLoginUrlDetails(SsoRemoveLoginUrlDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoRemoveLoginUrlDetails(Tag.SSO_REMOVE_LOGIN_URL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_REMOVE_LOGIN_URL_DETAILS}. + * + * @return The {@link SsoRemoveLoginUrlDetails} value associated with this + * instance if {@link #isSsoRemoveLoginUrlDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoRemoveLoginUrlDetails} is + * {@code false}. + */ + public SsoRemoveLoginUrlDetails getSsoRemoveLoginUrlDetailsValue() { + if (this._tag != Tag.SSO_REMOVE_LOGIN_URL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_REMOVE_LOGIN_URL_DETAILS, but was Tag." + this._tag.name()); + } + return ssoRemoveLoginUrlDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_REMOVE_LOGOUT_URL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_REMOVE_LOGOUT_URL_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoRemoveLogoutUrlDetails() { + return this._tag == Tag.SSO_REMOVE_LOGOUT_URL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_REMOVE_LOGOUT_URL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_REMOVE_LOGOUT_URL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoRemoveLogoutUrlDetails(SsoRemoveLogoutUrlDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoRemoveLogoutUrlDetails(Tag.SSO_REMOVE_LOGOUT_URL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SSO_REMOVE_LOGOUT_URL_DETAILS}. + * + * @return The {@link SsoRemoveLogoutUrlDetails} value associated with this + * instance if {@link #isSsoRemoveLogoutUrlDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoRemoveLogoutUrlDetails} is + * {@code false}. + */ + public SsoRemoveLogoutUrlDetails getSsoRemoveLogoutUrlDetailsValue() { + if (this._tag != Tag.SSO_REMOVE_LOGOUT_URL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_REMOVE_LOGOUT_URL_DETAILS, but was Tag." + this._tag.name()); + } + return ssoRemoveLogoutUrlDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamFolderChangeStatusDetails() { + return this._tag == Tag.TEAM_FOLDER_CHANGE_STATUS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_FOLDER_CHANGE_STATUS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamFolderChangeStatusDetails(TeamFolderChangeStatusDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamFolderChangeStatusDetails(Tag.TEAM_FOLDER_CHANGE_STATUS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS_DETAILS}. + * + * @return The {@link TeamFolderChangeStatusDetails} value associated with + * this instance if {@link #isTeamFolderChangeStatusDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamFolderChangeStatusDetails} is {@code false}. + */ + public TeamFolderChangeStatusDetails getTeamFolderChangeStatusDetailsValue() { + if (this._tag != Tag.TEAM_FOLDER_CHANGE_STATUS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_CHANGE_STATUS_DETAILS, but was Tag." + this._tag.name()); + } + return teamFolderChangeStatusDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_CREATE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_CREATE_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamFolderCreateDetails() { + return this._tag == Tag.TEAM_FOLDER_CREATE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_FOLDER_CREATE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_FOLDER_CREATE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamFolderCreateDetails(TeamFolderCreateDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamFolderCreateDetails(Tag.TEAM_FOLDER_CREATE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_FOLDER_CREATE_DETAILS}. + * + * @return The {@link TeamFolderCreateDetails} value associated with this + * instance if {@link #isTeamFolderCreateDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderCreateDetails} is + * {@code false}. + */ + public TeamFolderCreateDetails getTeamFolderCreateDetailsValue() { + if (this._tag != Tag.TEAM_FOLDER_CREATE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_CREATE_DETAILS, but was Tag." + this._tag.name()); + } + return teamFolderCreateDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_DOWNGRADE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_DOWNGRADE_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamFolderDowngradeDetails() { + return this._tag == Tag.TEAM_FOLDER_DOWNGRADE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_FOLDER_DOWNGRADE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_FOLDER_DOWNGRADE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamFolderDowngradeDetails(TeamFolderDowngradeDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamFolderDowngradeDetails(Tag.TEAM_FOLDER_DOWNGRADE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_FOLDER_DOWNGRADE_DETAILS}. + * + * @return The {@link TeamFolderDowngradeDetails} value associated with this + * instance if {@link #isTeamFolderDowngradeDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderDowngradeDetails} + * is {@code false}. + */ + public TeamFolderDowngradeDetails getTeamFolderDowngradeDetailsValue() { + if (this._tag != Tag.TEAM_FOLDER_DOWNGRADE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_DOWNGRADE_DETAILS, but was Tag." + this._tag.name()); + } + return teamFolderDowngradeDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamFolderPermanentlyDeleteDetails() { + return this._tag == Tag.TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamFolderPermanentlyDeleteDetails(TeamFolderPermanentlyDeleteDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamFolderPermanentlyDeleteDetails(Tag.TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS}. + * + * @return The {@link TeamFolderPermanentlyDeleteDetails} value associated + * with this instance if {@link #isTeamFolderPermanentlyDeleteDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamFolderPermanentlyDeleteDetails} is {@code false}. + */ + public TeamFolderPermanentlyDeleteDetails getTeamFolderPermanentlyDeleteDetailsValue() { + if (this._tag != Tag.TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS, but was Tag." + this._tag.name()); + } + return teamFolderPermanentlyDeleteDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_RENAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_RENAME_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamFolderRenameDetails() { + return this._tag == Tag.TEAM_FOLDER_RENAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_FOLDER_RENAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_FOLDER_RENAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamFolderRenameDetails(TeamFolderRenameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamFolderRenameDetails(Tag.TEAM_FOLDER_RENAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_FOLDER_RENAME_DETAILS}. + * + * @return The {@link TeamFolderRenameDetails} value associated with this + * instance if {@link #isTeamFolderRenameDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderRenameDetails} is + * {@code false}. + */ + public TeamFolderRenameDetails getTeamFolderRenameDetailsValue() { + if (this._tag != Tag.TEAM_FOLDER_RENAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_RENAME_DETAILS, but was Tag." + this._tag.name()); + } + return teamFolderRenameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamSelectiveSyncSettingsChangedDetails() { + return this._tag == Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamSelectiveSyncSettingsChangedDetails(TeamSelectiveSyncSettingsChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamSelectiveSyncSettingsChangedDetails(Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS}. + * + * @return The {@link TeamSelectiveSyncSettingsChangedDetails} value + * associated with this instance if {@link + * #isTeamSelectiveSyncSettingsChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamSelectiveSyncSettingsChangedDetails} is {@code false}. + */ + public TeamSelectiveSyncSettingsChangedDetails getTeamSelectiveSyncSettingsChangedDetailsValue() { + if (this._tag != Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return teamSelectiveSyncSettingsChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isAccountCaptureChangePolicyDetails() { + return this._tag == Tag.ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails accountCaptureChangePolicyDetails(AccountCaptureChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAccountCaptureChangePolicyDetails(Tag.ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS}. + * + * @return The {@link AccountCaptureChangePolicyDetails} value associated + * with this instance if {@link #isAccountCaptureChangePolicyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureChangePolicyDetails} is {@code false}. + */ + public AccountCaptureChangePolicyDetails getAccountCaptureChangePolicyDetailsValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return accountCaptureChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isAdminEmailRemindersChangedDetails() { + return this._tag == Tag.ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails adminEmailRemindersChangedDetails(AdminEmailRemindersChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAdminEmailRemindersChangedDetails(Tag.ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS}. + * + * @return The {@link AdminEmailRemindersChangedDetails} value associated + * with this instance if {@link #isAdminEmailRemindersChangedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isAdminEmailRemindersChangedDetails} is {@code false}. + */ + public AdminEmailRemindersChangedDetails getAdminEmailRemindersChangedDetailsValue() { + if (this._tag != Tag.ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return adminEmailRemindersChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALLOW_DOWNLOAD_DISABLED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALLOW_DOWNLOAD_DISABLED_DETAILS}, {@code false} otherwise. + */ + public boolean isAllowDownloadDisabledDetails() { + return this._tag == Tag.ALLOW_DOWNLOAD_DISABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ALLOW_DOWNLOAD_DISABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ALLOW_DOWNLOAD_DISABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails allowDownloadDisabledDetails(AllowDownloadDisabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAllowDownloadDisabledDetails(Tag.ALLOW_DOWNLOAD_DISABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ALLOW_DOWNLOAD_DISABLED_DETAILS}. + * + * @return The {@link AllowDownloadDisabledDetails} value associated with + * this instance if {@link #isAllowDownloadDisabledDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isAllowDownloadDisabledDetails} + * is {@code false}. + */ + public AllowDownloadDisabledDetails getAllowDownloadDisabledDetailsValue() { + if (this._tag != Tag.ALLOW_DOWNLOAD_DISABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ALLOW_DOWNLOAD_DISABLED_DETAILS, but was Tag." + this._tag.name()); + } + return allowDownloadDisabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALLOW_DOWNLOAD_ENABLED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALLOW_DOWNLOAD_ENABLED_DETAILS}, {@code false} otherwise. + */ + public boolean isAllowDownloadEnabledDetails() { + return this._tag == Tag.ALLOW_DOWNLOAD_ENABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ALLOW_DOWNLOAD_ENABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ALLOW_DOWNLOAD_ENABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails allowDownloadEnabledDetails(AllowDownloadEnabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAllowDownloadEnabledDetails(Tag.ALLOW_DOWNLOAD_ENABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ALLOW_DOWNLOAD_ENABLED_DETAILS}. + * + * @return The {@link AllowDownloadEnabledDetails} value associated with + * this instance if {@link #isAllowDownloadEnabledDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isAllowDownloadEnabledDetails} + * is {@code false}. + */ + public AllowDownloadEnabledDetails getAllowDownloadEnabledDetailsValue() { + if (this._tag != Tag.ALLOW_DOWNLOAD_ENABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ALLOW_DOWNLOAD_ENABLED_DETAILS, but was Tag." + this._tag.name()); + } + return allowDownloadEnabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_PERMISSIONS_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_PERMISSIONS_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isAppPermissionsChangedDetails() { + return this._tag == Tag.APP_PERMISSIONS_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#APP_PERMISSIONS_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#APP_PERMISSIONS_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails appPermissionsChangedDetails(AppPermissionsChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndAppPermissionsChangedDetails(Tag.APP_PERMISSIONS_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#APP_PERMISSIONS_CHANGED_DETAILS}. + * + * @return The {@link AppPermissionsChangedDetails} value associated with + * this instance if {@link #isAppPermissionsChangedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isAppPermissionsChangedDetails} + * is {@code false}. + */ + public AppPermissionsChangedDetails getAppPermissionsChangedDetailsValue() { + if (this._tag != Tag.APP_PERMISSIONS_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.APP_PERMISSIONS_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return appPermissionsChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isCameraUploadsPolicyChangedDetails() { + return this._tag == Tag.CAMERA_UPLOADS_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CAMERA_UPLOADS_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails cameraUploadsPolicyChangedDetails(CameraUploadsPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndCameraUploadsPolicyChangedDetails(Tag.CAMERA_UPLOADS_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED_DETAILS}. + * + * @return The {@link CameraUploadsPolicyChangedDetails} value associated + * with this instance if {@link #isCameraUploadsPolicyChangedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isCameraUploadsPolicyChangedDetails} is {@code false}. + */ + public CameraUploadsPolicyChangedDetails getCameraUploadsPolicyChangedDetailsValue() { + if (this._tag != Tag.CAMERA_UPLOADS_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CAMERA_UPLOADS_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return cameraUploadsPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isCaptureTranscriptPolicyChangedDetails() { + return this._tag == Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails captureTranscriptPolicyChangedDetails(CaptureTranscriptPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndCaptureTranscriptPolicyChangedDetails(Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS}. + * + * @return The {@link CaptureTranscriptPolicyChangedDetails} value + * associated with this instance if {@link + * #isCaptureTranscriptPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isCaptureTranscriptPolicyChangedDetails} is {@code false}. + */ + public CaptureTranscriptPolicyChangedDetails getCaptureTranscriptPolicyChangedDetailsValue() { + if (this._tag != Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return captureTranscriptPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CLASSIFICATION_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CLASSIFICATION_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isClassificationChangePolicyDetails() { + return this._tag == Tag.CLASSIFICATION_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CLASSIFICATION_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CLASSIFICATION_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails classificationChangePolicyDetails(ClassificationChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndClassificationChangePolicyDetails(Tag.CLASSIFICATION_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CLASSIFICATION_CHANGE_POLICY_DETAILS}. + * + * @return The {@link ClassificationChangePolicyDetails} value associated + * with this instance if {@link #isClassificationChangePolicyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isClassificationChangePolicyDetails} is {@code false}. + */ + public ClassificationChangePolicyDetails getClassificationChangePolicyDetailsValue() { + if (this._tag != Tag.CLASSIFICATION_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CLASSIFICATION_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return classificationChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isComputerBackupPolicyChangedDetails() { + return this._tag == Tag.COMPUTER_BACKUP_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#COMPUTER_BACKUP_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails computerBackupPolicyChangedDetails(ComputerBackupPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndComputerBackupPolicyChangedDetails(Tag.COMPUTER_BACKUP_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED_DETAILS}. + * + * @return The {@link ComputerBackupPolicyChangedDetails} value associated + * with this instance if {@link #isComputerBackupPolicyChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isComputerBackupPolicyChangedDetails} is {@code false}. + */ + public ComputerBackupPolicyChangedDetails getComputerBackupPolicyChangedDetailsValue() { + if (this._tag != Tag.COMPUTER_BACKUP_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.COMPUTER_BACKUP_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return computerBackupPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isContentAdministrationPolicyChangedDetails() { + return this._tag == Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails contentAdministrationPolicyChangedDetails(ContentAdministrationPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndContentAdministrationPolicyChangedDetails(Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS}. + * + * @return The {@link ContentAdministrationPolicyChangedDetails} value + * associated with this instance if {@link + * #isContentAdministrationPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isContentAdministrationPolicyChangedDetails} is {@code false}. + */ + public ContentAdministrationPolicyChangedDetails getContentAdministrationPolicyChangedDetailsValue() { + if (this._tag != Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return contentAdministrationPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDataPlacementRestrictionChangePolicyDetails() { + return this._tag == Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails dataPlacementRestrictionChangePolicyDetails(DataPlacementRestrictionChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDataPlacementRestrictionChangePolicyDetails(Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS}. + * + * @return The {@link DataPlacementRestrictionChangePolicyDetails} value + * associated with this instance if {@link + * #isDataPlacementRestrictionChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataPlacementRestrictionChangePolicyDetails} is {@code false}. + */ + public DataPlacementRestrictionChangePolicyDetails getDataPlacementRestrictionChangePolicyDetailsValue() { + if (this._tag != Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return dataPlacementRestrictionChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDataPlacementRestrictionSatisfyPolicyDetails() { + return this._tag == Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails dataPlacementRestrictionSatisfyPolicyDetails(DataPlacementRestrictionSatisfyPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDataPlacementRestrictionSatisfyPolicyDetails(Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS}. + * + * @return The {@link DataPlacementRestrictionSatisfyPolicyDetails} value + * associated with this instance if {@link + * #isDataPlacementRestrictionSatisfyPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataPlacementRestrictionSatisfyPolicyDetails} is {@code false}. + */ + public DataPlacementRestrictionSatisfyPolicyDetails getDataPlacementRestrictionSatisfyPolicyDetailsValue() { + if (this._tag != Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return dataPlacementRestrictionSatisfyPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS}, {@code false} otherwise. + */ + public boolean isDeviceApprovalsAddExceptionDetails() { + return this._tag == Tag.DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceApprovalsAddExceptionDetails(DeviceApprovalsAddExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceApprovalsAddExceptionDetails(Tag.DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS}. + * + * @return The {@link DeviceApprovalsAddExceptionDetails} value associated + * with this instance if {@link #isDeviceApprovalsAddExceptionDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsAddExceptionDetails} is {@code false}. + */ + public DeviceApprovalsAddExceptionDetails getDeviceApprovalsAddExceptionDetailsValue() { + if (this._tag != Tag.DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return deviceApprovalsAddExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDeviceApprovalsChangeDesktopPolicyDetails() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceApprovalsChangeDesktopPolicyDetails(DeviceApprovalsChangeDesktopPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceApprovalsChangeDesktopPolicyDetails(Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS}. + * + * @return The {@link DeviceApprovalsChangeDesktopPolicyDetails} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeDesktopPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeDesktopPolicyDetails} is {@code false}. + */ + public DeviceApprovalsChangeDesktopPolicyDetails getDeviceApprovalsChangeDesktopPolicyDetailsValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeDesktopPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDeviceApprovalsChangeMobilePolicyDetails() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceApprovalsChangeMobilePolicyDetails(DeviceApprovalsChangeMobilePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceApprovalsChangeMobilePolicyDetails(Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS}. + * + * @return The {@link DeviceApprovalsChangeMobilePolicyDetails} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeMobilePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeMobilePolicyDetails} is {@code false}. + */ + public DeviceApprovalsChangeMobilePolicyDetails getDeviceApprovalsChangeMobilePolicyDetailsValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeMobilePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDeviceApprovalsChangeOverageActionDetails() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceApprovalsChangeOverageActionDetails(DeviceApprovalsChangeOverageActionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceApprovalsChangeOverageActionDetails(Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS}. + * + * @return The {@link DeviceApprovalsChangeOverageActionDetails} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeOverageActionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeOverageActionDetails} is {@code false}. + */ + public DeviceApprovalsChangeOverageActionDetails getDeviceApprovalsChangeOverageActionDetailsValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeOverageActionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDeviceApprovalsChangeUnlinkActionDetails() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceApprovalsChangeUnlinkActionDetails(DeviceApprovalsChangeUnlinkActionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceApprovalsChangeUnlinkActionDetails(Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS}. + * + * @return The {@link DeviceApprovalsChangeUnlinkActionDetails} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeUnlinkActionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeUnlinkActionDetails} is {@code false}. + */ + public DeviceApprovalsChangeUnlinkActionDetails getDeviceApprovalsChangeUnlinkActionDetailsValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeUnlinkActionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDeviceApprovalsRemoveExceptionDetails() { + return this._tag == Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails deviceApprovalsRemoveExceptionDetails(DeviceApprovalsRemoveExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDeviceApprovalsRemoveExceptionDetails(Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS}. + * + * @return The {@link DeviceApprovalsRemoveExceptionDetails} value + * associated with this instance if {@link + * #isDeviceApprovalsRemoveExceptionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsRemoveExceptionDetails} is {@code false}. + */ + public DeviceApprovalsRemoveExceptionDetails getDeviceApprovalsRemoveExceptionDetailsValue() { + if (this._tag != Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return deviceApprovalsRemoveExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDirectoryRestrictionsAddMembersDetails() { + return this._tag == Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails directoryRestrictionsAddMembersDetails(DirectoryRestrictionsAddMembersDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDirectoryRestrictionsAddMembersDetails(Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS}. + * + * @return The {@link DirectoryRestrictionsAddMembersDetails} value + * associated with this instance if {@link + * #isDirectoryRestrictionsAddMembersDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDirectoryRestrictionsAddMembersDetails} is {@code false}. + */ + public DirectoryRestrictionsAddMembersDetails getDirectoryRestrictionsAddMembersDetailsValue() { + if (this._tag != Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS, but was Tag." + this._tag.name()); + } + return directoryRestrictionsAddMembersDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDirectoryRestrictionsRemoveMembersDetails() { + return this._tag == Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails directoryRestrictionsRemoveMembersDetails(DirectoryRestrictionsRemoveMembersDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDirectoryRestrictionsRemoveMembersDetails(Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS}. + * + * @return The {@link DirectoryRestrictionsRemoveMembersDetails} value + * associated with this instance if {@link + * #isDirectoryRestrictionsRemoveMembersDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDirectoryRestrictionsRemoveMembersDetails} is {@code false}. + */ + public DirectoryRestrictionsRemoveMembersDetails getDirectoryRestrictionsRemoveMembersDetailsValue() { + if (this._tag != Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS, but was Tag." + this._tag.name()); + } + return directoryRestrictionsRemoveMembersDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isDropboxPasswordsPolicyChangedDetails() { + return this._tag == Tag.DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails dropboxPasswordsPolicyChangedDetails(DropboxPasswordsPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDropboxPasswordsPolicyChangedDetails(Tag.DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS}. + * + * @return The {@link DropboxPasswordsPolicyChangedDetails} value associated + * with this instance if {@link #isDropboxPasswordsPolicyChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDropboxPasswordsPolicyChangedDetails} is {@code false}. + */ + public DropboxPasswordsPolicyChangedDetails getDropboxPasswordsPolicyChangedDetailsValue() { + if (this._tag != Tag.DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return dropboxPasswordsPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isEmailIngestPolicyChangedDetails() { + return this._tag == Tag.EMAIL_INGEST_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMAIL_INGEST_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emailIngestPolicyChangedDetails(EmailIngestPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmailIngestPolicyChangedDetails(Tag.EMAIL_INGEST_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED_DETAILS}. + * + * @return The {@link EmailIngestPolicyChangedDetails} value associated with + * this instance if {@link #isEmailIngestPolicyChangedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isEmailIngestPolicyChangedDetails} is {@code false}. + */ + public EmailIngestPolicyChangedDetails getEmailIngestPolicyChangedDetailsValue() { + if (this._tag != Tag.EMAIL_INGEST_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMAIL_INGEST_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return emailIngestPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_ADD_EXCEPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_ADD_EXCEPTION_DETAILS}, {@code false} otherwise. + */ + public boolean isEmmAddExceptionDetails() { + return this._tag == Tag.EMM_ADD_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMM_ADD_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMM_ADD_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emmAddExceptionDetails(EmmAddExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmmAddExceptionDetails(Tag.EMM_ADD_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#EMM_ADD_EXCEPTION_DETAILS}. + * + * @return The {@link EmmAddExceptionDetails} value associated with this + * instance if {@link #isEmmAddExceptionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmAddExceptionDetails} is + * {@code false}. + */ + public EmmAddExceptionDetails getEmmAddExceptionDetailsValue() { + if (this._tag != Tag.EMM_ADD_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_ADD_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return emmAddExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isEmmChangePolicyDetails() { + return this._tag == Tag.EMM_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMM_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMM_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emmChangePolicyDetails(EmmChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmmChangePolicyDetails(Tag.EMM_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#EMM_CHANGE_POLICY_DETAILS}. + * + * @return The {@link EmmChangePolicyDetails} value associated with this + * instance if {@link #isEmmChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmChangePolicyDetails} is + * {@code false}. + */ + public EmmChangePolicyDetails getEmmChangePolicyDetailsValue() { + if (this._tag != Tag.EMM_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return emmChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_REMOVE_EXCEPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_REMOVE_EXCEPTION_DETAILS}, {@code false} otherwise. + */ + public boolean isEmmRemoveExceptionDetails() { + return this._tag == Tag.EMM_REMOVE_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EMM_REMOVE_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EMM_REMOVE_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails emmRemoveExceptionDetails(EmmRemoveExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEmmRemoveExceptionDetails(Tag.EMM_REMOVE_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#EMM_REMOVE_EXCEPTION_DETAILS}. + * + * @return The {@link EmmRemoveExceptionDetails} value associated with this + * instance if {@link #isEmmRemoveExceptionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmRemoveExceptionDetails} is + * {@code false}. + */ + public EmmRemoveExceptionDetails getEmmRemoveExceptionDetailsValue() { + if (this._tag != Tag.EMM_REMOVE_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_REMOVE_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return emmRemoveExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isExtendedVersionHistoryChangePolicyDetails() { + return this._tag == Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails extendedVersionHistoryChangePolicyDetails(ExtendedVersionHistoryChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExtendedVersionHistoryChangePolicyDetails(Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS}. + * + * @return The {@link ExtendedVersionHistoryChangePolicyDetails} value + * associated with this instance if {@link + * #isExtendedVersionHistoryChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isExtendedVersionHistoryChangePolicyDetails} is {@code false}. + */ + public ExtendedVersionHistoryChangePolicyDetails getExtendedVersionHistoryChangePolicyDetailsValue() { + if (this._tag != Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return extendedVersionHistoryChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isExternalDriveBackupPolicyChangedDetails() { + return this._tag == Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails externalDriveBackupPolicyChangedDetails(ExternalDriveBackupPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndExternalDriveBackupPolicyChangedDetails(Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS}. + * + * @return The {@link ExternalDriveBackupPolicyChangedDetails} value + * associated with this instance if {@link + * #isExternalDriveBackupPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isExternalDriveBackupPolicyChangedDetails} is {@code false}. + */ + public ExternalDriveBackupPolicyChangedDetails getExternalDriveBackupPolicyChangedDetailsValue() { + if (this._tag != Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return externalDriveBackupPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isFileCommentsChangePolicyDetails() { + return this._tag == Tag.FILE_COMMENTS_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_COMMENTS_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileCommentsChangePolicyDetails(FileCommentsChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileCommentsChangePolicyDetails(Tag.FILE_COMMENTS_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY_DETAILS}. + * + * @return The {@link FileCommentsChangePolicyDetails} value associated with + * this instance if {@link #isFileCommentsChangePolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isFileCommentsChangePolicyDetails} is {@code false}. + */ + public FileCommentsChangePolicyDetails getFileCommentsChangePolicyDetailsValue() { + if (this._tag != Tag.FILE_COMMENTS_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_COMMENTS_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return fileCommentsChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_LOCKING_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_LOCKING_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isFileLockingPolicyChangedDetails() { + return this._tag == Tag.FILE_LOCKING_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_LOCKING_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_LOCKING_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileLockingPolicyChangedDetails(FileLockingPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileLockingPolicyChangedDetails(Tag.FILE_LOCKING_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_LOCKING_POLICY_CHANGED_DETAILS}. + * + * @return The {@link FileLockingPolicyChangedDetails} value associated with + * this instance if {@link #isFileLockingPolicyChangedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isFileLockingPolicyChangedDetails} is {@code false}. + */ + public FileLockingPolicyChangedDetails getFileLockingPolicyChangedDetailsValue() { + if (this._tag != Tag.FILE_LOCKING_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_LOCKING_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return fileLockingPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isFileProviderMigrationPolicyChangedDetails() { + return this._tag == Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileProviderMigrationPolicyChangedDetails(FileProviderMigrationPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileProviderMigrationPolicyChangedDetails(Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS}. + * + * @return The {@link FileProviderMigrationPolicyChangedDetails} value + * associated with this instance if {@link + * #isFileProviderMigrationPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileProviderMigrationPolicyChangedDetails} is {@code false}. + */ + public FileProviderMigrationPolicyChangedDetails getFileProviderMigrationPolicyChangedDetailsValue() { + if (this._tag != Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return fileProviderMigrationPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRequestsChangePolicyDetails() { + return this._tag == Tag.FILE_REQUESTS_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUESTS_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestsChangePolicyDetails(FileRequestsChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestsChangePolicyDetails(Tag.FILE_REQUESTS_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY_DETAILS}. + * + * @return The {@link FileRequestsChangePolicyDetails} value associated with + * this instance if {@link #isFileRequestsChangePolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isFileRequestsChangePolicyDetails} is {@code false}. + */ + public FileRequestsChangePolicyDetails getFileRequestsChangePolicyDetailsValue() { + if (this._tag != Tag.FILE_REQUESTS_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUESTS_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestsChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED_DETAILS}, {@code false} otherwise. + */ + public boolean isFileRequestsEmailsEnabledDetails() { + return this._tag == Tag.FILE_REQUESTS_EMAILS_ENABLED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUESTS_EMAILS_ENABLED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestsEmailsEnabledDetails(FileRequestsEmailsEnabledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestsEmailsEnabledDetails(Tag.FILE_REQUESTS_EMAILS_ENABLED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED_DETAILS}. + * + * @return The {@link FileRequestsEmailsEnabledDetails} value associated + * with this instance if {@link #isFileRequestsEmailsEnabledDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileRequestsEmailsEnabledDetails} is {@code false}. + */ + public FileRequestsEmailsEnabledDetails getFileRequestsEmailsEnabledDetailsValue() { + if (this._tag != Tag.FILE_REQUESTS_EMAILS_ENABLED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUESTS_EMAILS_ENABLED_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestsEmailsEnabledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS}, {@code + * false} otherwise. + */ + public boolean isFileRequestsEmailsRestrictedToTeamOnlyDetails() { + return this._tag == Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileRequestsEmailsRestrictedToTeamOnlyDetails(FileRequestsEmailsRestrictedToTeamOnlyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileRequestsEmailsRestrictedToTeamOnlyDetails(Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS}. + * + * @return The {@link FileRequestsEmailsRestrictedToTeamOnlyDetails} value + * associated with this instance if {@link + * #isFileRequestsEmailsRestrictedToTeamOnlyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileRequestsEmailsRestrictedToTeamOnlyDetails} is {@code false}. + */ + public FileRequestsEmailsRestrictedToTeamOnlyDetails getFileRequestsEmailsRestrictedToTeamOnlyDetailsValue() { + if (this._tag != Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS, but was Tag." + this._tag.name()); + } + return fileRequestsEmailsRestrictedToTeamOnlyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isFileTransfersPolicyChangedDetails() { + return this._tag == Tag.FILE_TRANSFERS_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FILE_TRANSFERS_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails fileTransfersPolicyChangedDetails(FileTransfersPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFileTransfersPolicyChangedDetails(Tag.FILE_TRANSFERS_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED_DETAILS}. + * + * @return The {@link FileTransfersPolicyChangedDetails} value associated + * with this instance if {@link #isFileTransfersPolicyChangedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileTransfersPolicyChangedDetails} is {@code false}. + */ + public FileTransfersPolicyChangedDetails getFileTransfersPolicyChangedDetailsValue() { + if (this._tag != Tag.FILE_TRANSFERS_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return fileTransfersPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isFolderLinkRestrictionPolicyChangedDetails() { + return this._tag == Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails folderLinkRestrictionPolicyChangedDetails(FolderLinkRestrictionPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndFolderLinkRestrictionPolicyChangedDetails(Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS}. + * + * @return The {@link FolderLinkRestrictionPolicyChangedDetails} value + * associated with this instance if {@link + * #isFolderLinkRestrictionPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFolderLinkRestrictionPolicyChangedDetails} is {@code false}. + */ + public FolderLinkRestrictionPolicyChangedDetails getFolderLinkRestrictionPolicyChangedDetailsValue() { + if (this._tag != Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return folderLinkRestrictionPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isGoogleSsoChangePolicyDetails() { + return this._tag == Tag.GOOGLE_SSO_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GOOGLE_SSO_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails googleSsoChangePolicyDetails(GoogleSsoChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGoogleSsoChangePolicyDetails(Tag.GOOGLE_SSO_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY_DETAILS}. + * + * @return The {@link GoogleSsoChangePolicyDetails} value associated with + * this instance if {@link #isGoogleSsoChangePolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isGoogleSsoChangePolicyDetails} + * is {@code false}. + */ + public GoogleSsoChangePolicyDetails getGoogleSsoChangePolicyDetailsValue() { + if (this._tag != Tag.GOOGLE_SSO_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOOGLE_SSO_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return googleSsoChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isGroupUserManagementChangePolicyDetails() { + return this._tag == Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails groupUserManagementChangePolicyDetails(GroupUserManagementChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGroupUserManagementChangePolicyDetails(Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS}. + * + * @return The {@link GroupUserManagementChangePolicyDetails} value + * associated with this instance if {@link + * #isGroupUserManagementChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGroupUserManagementChangePolicyDetails} is {@code false}. + */ + public GroupUserManagementChangePolicyDetails getGroupUserManagementChangePolicyDetailsValue() { + if (this._tag != Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return groupUserManagementChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTEGRATION_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTEGRATION_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isIntegrationPolicyChangedDetails() { + return this._tag == Tag.INTEGRATION_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#INTEGRATION_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#INTEGRATION_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails integrationPolicyChangedDetails(IntegrationPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndIntegrationPolicyChangedDetails(Tag.INTEGRATION_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#INTEGRATION_POLICY_CHANGED_DETAILS}. + * + * @return The {@link IntegrationPolicyChangedDetails} value associated with + * this instance if {@link #isIntegrationPolicyChangedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isIntegrationPolicyChangedDetails} is {@code false}. + */ + public IntegrationPolicyChangedDetails getIntegrationPolicyChangedDetailsValue() { + if (this._tag != Tag.INTEGRATION_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.INTEGRATION_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return integrationPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isInviteAcceptanceEmailPolicyChangedDetails() { + return this._tag == Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails inviteAcceptanceEmailPolicyChangedDetails(InviteAcceptanceEmailPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndInviteAcceptanceEmailPolicyChangedDetails(Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS}. + * + * @return The {@link InviteAcceptanceEmailPolicyChangedDetails} value + * associated with this instance if {@link + * #isInviteAcceptanceEmailPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isInviteAcceptanceEmailPolicyChangedDetails} is {@code false}. + */ + public InviteAcceptanceEmailPolicyChangedDetails getInviteAcceptanceEmailPolicyChangedDetailsValue() { + if (this._tag != Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return inviteAcceptanceEmailPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isMemberRequestsChangePolicyDetails() { + return this._tag == Tag.MEMBER_REQUESTS_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_REQUESTS_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberRequestsChangePolicyDetails(MemberRequestsChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberRequestsChangePolicyDetails(Tag.MEMBER_REQUESTS_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY_DETAILS}. + * + * @return The {@link MemberRequestsChangePolicyDetails} value associated + * with this instance if {@link #isMemberRequestsChangePolicyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberRequestsChangePolicyDetails} is {@code false}. + */ + public MemberRequestsChangePolicyDetails getMemberRequestsChangePolicyDetailsValue() { + if (this._tag != Tag.MEMBER_REQUESTS_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_REQUESTS_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return memberRequestsChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSendInvitePolicyChangedDetails() { + return this._tag == Tag.MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSendInvitePolicyChangedDetails(MemberSendInvitePolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSendInvitePolicyChangedDetails(Tag.MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS}. + * + * @return The {@link MemberSendInvitePolicyChangedDetails} value associated + * with this instance if {@link #isMemberSendInvitePolicyChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSendInvitePolicyChangedDetails} is {@code false}. + */ + public MemberSendInvitePolicyChangedDetails getMemberSendInvitePolicyChangedDetailsValue() { + if (this._tag != Tag.MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return memberSendInvitePolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsAddExceptionDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsAddExceptionDetails(MemberSpaceLimitsAddExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsAddExceptionDetails(Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS}. + * + * @return The {@link MemberSpaceLimitsAddExceptionDetails} value associated + * with this instance if {@link #isMemberSpaceLimitsAddExceptionDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsAddExceptionDetails} is {@code false}. + */ + public MemberSpaceLimitsAddExceptionDetails getMemberSpaceLimitsAddExceptionDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsAddExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS}, {@code + * false} otherwise. + */ + public boolean isMemberSpaceLimitsChangeCapsTypePolicyDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsChangeCapsTypePolicyDetails(MemberSpaceLimitsChangeCapsTypePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsChangeCapsTypePolicyDetails(Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS}. + * + * @return The {@link MemberSpaceLimitsChangeCapsTypePolicyDetails} value + * associated with this instance if {@link + * #isMemberSpaceLimitsChangeCapsTypePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangeCapsTypePolicyDetails} is {@code false}. + */ + public MemberSpaceLimitsChangeCapsTypePolicyDetails getMemberSpaceLimitsChangeCapsTypePolicyDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangeCapsTypePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsChangePolicyDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsChangePolicyDetails(MemberSpaceLimitsChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsChangePolicyDetails(Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS}. + * + * @return The {@link MemberSpaceLimitsChangePolicyDetails} value associated + * with this instance if {@link #isMemberSpaceLimitsChangePolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangePolicyDetails} is {@code false}. + */ + public MemberSpaceLimitsChangePolicyDetails getMemberSpaceLimitsChangePolicyDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsRemoveExceptionDetails() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSpaceLimitsRemoveExceptionDetails(MemberSpaceLimitsRemoveExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSpaceLimitsRemoveExceptionDetails(Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS}. + * + * @return The {@link MemberSpaceLimitsRemoveExceptionDetails} value + * associated with this instance if {@link + * #isMemberSpaceLimitsRemoveExceptionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsRemoveExceptionDetails} is {@code false}. + */ + public MemberSpaceLimitsRemoveExceptionDetails getMemberSpaceLimitsRemoveExceptionDetailsValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsRemoveExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMemberSuggestionsChangePolicyDetails() { + return this._tag == Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails memberSuggestionsChangePolicyDetails(MemberSuggestionsChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMemberSuggestionsChangePolicyDetails(Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS}. + * + * @return The {@link MemberSuggestionsChangePolicyDetails} value associated + * with this instance if {@link #isMemberSuggestionsChangePolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSuggestionsChangePolicyDetails} is {@code false}. + */ + public MemberSuggestionsChangePolicyDetails getMemberSuggestionsChangePolicyDetailsValue() { + if (this._tag != Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return memberSuggestionsChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isMicrosoftOfficeAddinChangePolicyDetails() { + return this._tag == Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails microsoftOfficeAddinChangePolicyDetails(MicrosoftOfficeAddinChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMicrosoftOfficeAddinChangePolicyDetails(Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS}. + * + * @return The {@link MicrosoftOfficeAddinChangePolicyDetails} value + * associated with this instance if {@link + * #isMicrosoftOfficeAddinChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMicrosoftOfficeAddinChangePolicyDetails} is {@code false}. + */ + public MicrosoftOfficeAddinChangePolicyDetails getMicrosoftOfficeAddinChangePolicyDetailsValue() { + if (this._tag != Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return microsoftOfficeAddinChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isNetworkControlChangePolicyDetails() { + return this._tag == Tag.NETWORK_CONTROL_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#NETWORK_CONTROL_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails networkControlChangePolicyDetails(NetworkControlChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndNetworkControlChangePolicyDetails(Tag.NETWORK_CONTROL_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY_DETAILS}. + * + * @return The {@link NetworkControlChangePolicyDetails} value associated + * with this instance if {@link #isNetworkControlChangePolicyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isNetworkControlChangePolicyDetails} is {@code false}. + */ + public NetworkControlChangePolicyDetails getNetworkControlChangePolicyDetailsValue() { + if (this._tag != Tag.NETWORK_CONTROL_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NETWORK_CONTROL_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return networkControlChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperChangeDeploymentPolicyDetails() { + return this._tag == Tag.PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperChangeDeploymentPolicyDetails(PaperChangeDeploymentPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperChangeDeploymentPolicyDetails(Tag.PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS}. + * + * @return The {@link PaperChangeDeploymentPolicyDetails} value associated + * with this instance if {@link #isPaperChangeDeploymentPolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperChangeDeploymentPolicyDetails} is {@code false}. + */ + public PaperChangeDeploymentPolicyDetails getPaperChangeDeploymentPolicyDetailsValue() { + if (this._tag != Tag.PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return paperChangeDeploymentPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperChangeMemberLinkPolicyDetails() { + return this._tag == Tag.PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperChangeMemberLinkPolicyDetails(PaperChangeMemberLinkPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperChangeMemberLinkPolicyDetails(Tag.PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS}. + * + * @return The {@link PaperChangeMemberLinkPolicyDetails} value associated + * with this instance if {@link #isPaperChangeMemberLinkPolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperChangeMemberLinkPolicyDetails} is {@code false}. + */ + public PaperChangeMemberLinkPolicyDetails getPaperChangeMemberLinkPolicyDetailsValue() { + if (this._tag != Tag.PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return paperChangeMemberLinkPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperChangeMemberPolicyDetails() { + return this._tag == Tag.PAPER_CHANGE_MEMBER_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CHANGE_MEMBER_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperChangeMemberPolicyDetails(PaperChangeMemberPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperChangeMemberPolicyDetails(Tag.PAPER_CHANGE_MEMBER_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY_DETAILS}. + * + * @return The {@link PaperChangeMemberPolicyDetails} value associated with + * this instance if {@link #isPaperChangeMemberPolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isPaperChangeMemberPolicyDetails} is {@code false}. + */ + public PaperChangeMemberPolicyDetails getPaperChangeMemberPolicyDetailsValue() { + if (this._tag != Tag.PAPER_CHANGE_MEMBER_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_MEMBER_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return paperChangeMemberPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperChangePolicyDetails() { + return this._tag == Tag.PAPER_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperChangePolicyDetails(PaperChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperChangePolicyDetails(Tag.PAPER_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_CHANGE_POLICY_DETAILS}. + * + * @return The {@link PaperChangePolicyDetails} value associated with this + * instance if {@link #isPaperChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperChangePolicyDetails} is + * {@code false}. + */ + public PaperChangePolicyDetails getPaperChangePolicyDetailsValue() { + if (this._tag != Tag.PAPER_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return paperChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperDefaultFolderPolicyChangedDetails() { + return this._tag == Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDefaultFolderPolicyChangedDetails(PaperDefaultFolderPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDefaultFolderPolicyChangedDetails(Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS}. + * + * @return The {@link PaperDefaultFolderPolicyChangedDetails} value + * associated with this instance if {@link + * #isPaperDefaultFolderPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperDefaultFolderPolicyChangedDetails} is {@code false}. + */ + public PaperDefaultFolderPolicyChangedDetails getPaperDefaultFolderPolicyChangedDetailsValue() { + if (this._tag != Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return paperDefaultFolderPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isPaperDesktopPolicyChangedDetails() { + return this._tag == Tag.PAPER_DESKTOP_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_DESKTOP_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperDesktopPolicyChangedDetails(PaperDesktopPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperDesktopPolicyChangedDetails(Tag.PAPER_DESKTOP_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED_DETAILS}. + * + * @return The {@link PaperDesktopPolicyChangedDetails} value associated + * with this instance if {@link #isPaperDesktopPolicyChangedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperDesktopPolicyChangedDetails} is {@code false}. + */ + public PaperDesktopPolicyChangedDetails getPaperDesktopPolicyChangedDetailsValue() { + if (this._tag != Tag.PAPER_DESKTOP_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DESKTOP_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return paperDesktopPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperEnabledUsersGroupAdditionDetails() { + return this._tag == Tag.PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperEnabledUsersGroupAdditionDetails(PaperEnabledUsersGroupAdditionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperEnabledUsersGroupAdditionDetails(Tag.PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS}. + * + * @return The {@link PaperEnabledUsersGroupAdditionDetails} value + * associated with this instance if {@link + * #isPaperEnabledUsersGroupAdditionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperEnabledUsersGroupAdditionDetails} is {@code false}. + */ + public PaperEnabledUsersGroupAdditionDetails getPaperEnabledUsersGroupAdditionDetailsValue() { + if (this._tag != Tag.PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS, but was Tag." + this._tag.name()); + } + return paperEnabledUsersGroupAdditionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS}, {@code false} + * otherwise. + */ + public boolean isPaperEnabledUsersGroupRemovalDetails() { + return this._tag == Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails paperEnabledUsersGroupRemovalDetails(PaperEnabledUsersGroupRemovalDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPaperEnabledUsersGroupRemovalDetails(Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS}. + * + * @return The {@link PaperEnabledUsersGroupRemovalDetails} value associated + * with this instance if {@link #isPaperEnabledUsersGroupRemovalDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperEnabledUsersGroupRemovalDetails} is {@code false}. + */ + public PaperEnabledUsersGroupRemovalDetails getPaperEnabledUsersGroupRemovalDetailsValue() { + if (this._tag != Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS, but was Tag." + this._tag.name()); + } + return paperEnabledUsersGroupRemovalDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS}, {@code + * false} otherwise. + */ + public boolean isPasswordStrengthRequirementsChangePolicyDetails() { + return this._tag == Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails passwordStrengthRequirementsChangePolicyDetails(PasswordStrengthRequirementsChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPasswordStrengthRequirementsChangePolicyDetails(Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS}. + * + * @return The {@link PasswordStrengthRequirementsChangePolicyDetails} value + * associated with this instance if {@link + * #isPasswordStrengthRequirementsChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPasswordStrengthRequirementsChangePolicyDetails} is {@code false}. + */ + public PasswordStrengthRequirementsChangePolicyDetails getPasswordStrengthRequirementsChangePolicyDetailsValue() { + if (this._tag != Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return passwordStrengthRequirementsChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isPermanentDeleteChangePolicyDetails() { + return this._tag == Tag.PERMANENT_DELETE_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#PERMANENT_DELETE_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails permanentDeleteChangePolicyDetails(PermanentDeleteChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndPermanentDeleteChangePolicyDetails(Tag.PERMANENT_DELETE_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY_DETAILS}. + * + * @return The {@link PermanentDeleteChangePolicyDetails} value associated + * with this instance if {@link #isPermanentDeleteChangePolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPermanentDeleteChangePolicyDetails} is {@code false}. + */ + public PermanentDeleteChangePolicyDetails getPermanentDeleteChangePolicyDetailsValue() { + if (this._tag != Tag.PERMANENT_DELETE_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.PERMANENT_DELETE_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return permanentDeleteChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isResellerSupportChangePolicyDetails() { + return this._tag == Tag.RESELLER_SUPPORT_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#RESELLER_SUPPORT_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails resellerSupportChangePolicyDetails(ResellerSupportChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndResellerSupportChangePolicyDetails(Tag.RESELLER_SUPPORT_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY_DETAILS}. + * + * @return The {@link ResellerSupportChangePolicyDetails} value associated + * with this instance if {@link #isResellerSupportChangePolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isResellerSupportChangePolicyDetails} is {@code false}. + */ + public ResellerSupportChangePolicyDetails getResellerSupportChangePolicyDetailsValue() { + if (this._tag != Tag.RESELLER_SUPPORT_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.RESELLER_SUPPORT_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return resellerSupportChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REWIND_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REWIND_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isRewindPolicyChangedDetails() { + return this._tag == Tag.REWIND_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#REWIND_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#REWIND_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails rewindPolicyChangedDetails(RewindPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndRewindPolicyChangedDetails(Tag.REWIND_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#REWIND_POLICY_CHANGED_DETAILS}. + * + * @return The {@link RewindPolicyChangedDetails} value associated with this + * instance if {@link #isRewindPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isRewindPolicyChangedDetails} + * is {@code false}. + */ + public RewindPolicyChangedDetails getRewindPolicyChangedDetailsValue() { + if (this._tag != Tag.REWIND_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.REWIND_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return rewindPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSendForSignaturePolicyChangedDetails() { + return this._tag == Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sendForSignaturePolicyChangedDetails(SendForSignaturePolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSendForSignaturePolicyChangedDetails(Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS}. + * + * @return The {@link SendForSignaturePolicyChangedDetails} value associated + * with this instance if {@link #isSendForSignaturePolicyChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSendForSignaturePolicyChangedDetails} is {@code false}. + */ + public SendForSignaturePolicyChangedDetails getSendForSignaturePolicyChangedDetailsValue() { + if (this._tag != Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return sendForSignaturePolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSharingChangeFolderJoinPolicyDetails() { + return this._tag == Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharingChangeFolderJoinPolicyDetails(SharingChangeFolderJoinPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharingChangeFolderJoinPolicyDetails(Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS}. + * + * @return The {@link SharingChangeFolderJoinPolicyDetails} value associated + * with this instance if {@link #isSharingChangeFolderJoinPolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeFolderJoinPolicyDetails} is {@code false}. + */ + public SharingChangeFolderJoinPolicyDetails getSharingChangeFolderJoinPolicyDetailsValue() { + if (this._tag != Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharingChangeFolderJoinPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS}, + * {@code false} otherwise. + */ + public boolean isSharingChangeLinkAllowChangeExpirationPolicyDetails() { + return this._tag == Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharingChangeLinkAllowChangeExpirationPolicyDetails(SharingChangeLinkAllowChangeExpirationPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharingChangeLinkAllowChangeExpirationPolicyDetails(Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS}. + * + * @return The {@link SharingChangeLinkAllowChangeExpirationPolicyDetails} + * value associated with this instance if {@link + * #isSharingChangeLinkAllowChangeExpirationPolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeLinkAllowChangeExpirationPolicyDetails} is {@code + * false}. + */ + public SharingChangeLinkAllowChangeExpirationPolicyDetails getSharingChangeLinkAllowChangeExpirationPolicyDetailsValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharingChangeLinkAllowChangeExpirationPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS}, {@code + * false} otherwise. + */ + public boolean isSharingChangeLinkDefaultExpirationPolicyDetails() { + return this._tag == Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharingChangeLinkDefaultExpirationPolicyDetails(SharingChangeLinkDefaultExpirationPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharingChangeLinkDefaultExpirationPolicyDetails(Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS}. + * + * @return The {@link SharingChangeLinkDefaultExpirationPolicyDetails} value + * associated with this instance if {@link + * #isSharingChangeLinkDefaultExpirationPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeLinkDefaultExpirationPolicyDetails} is {@code false}. + */ + public SharingChangeLinkDefaultExpirationPolicyDetails getSharingChangeLinkDefaultExpirationPolicyDetailsValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharingChangeLinkDefaultExpirationPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS}, {@code + * false} otherwise. + */ + public boolean isSharingChangeLinkEnforcePasswordPolicyDetails() { + return this._tag == Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharingChangeLinkEnforcePasswordPolicyDetails(SharingChangeLinkEnforcePasswordPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharingChangeLinkEnforcePasswordPolicyDetails(Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS}. + * + * @return The {@link SharingChangeLinkEnforcePasswordPolicyDetails} value + * associated with this instance if {@link + * #isSharingChangeLinkEnforcePasswordPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeLinkEnforcePasswordPolicyDetails} is {@code false}. + */ + public SharingChangeLinkEnforcePasswordPolicyDetails getSharingChangeLinkEnforcePasswordPolicyDetailsValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharingChangeLinkEnforcePasswordPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharingChangeLinkPolicyDetails() { + return this._tag == Tag.SHARING_CHANGE_LINK_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARING_CHANGE_LINK_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharingChangeLinkPolicyDetails(SharingChangeLinkPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharingChangeLinkPolicyDetails(Tag.SHARING_CHANGE_LINK_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_POLICY_DETAILS}. + * + * @return The {@link SharingChangeLinkPolicyDetails} value associated with + * this instance if {@link #isSharingChangeLinkPolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeLinkPolicyDetails} is {@code false}. + */ + public SharingChangeLinkPolicyDetails getSharingChangeLinkPolicyDetailsValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharingChangeLinkPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isSharingChangeMemberPolicyDetails() { + return this._tag == Tag.SHARING_CHANGE_MEMBER_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHARING_CHANGE_MEMBER_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails sharingChangeMemberPolicyDetails(SharingChangeMemberPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSharingChangeMemberPolicyDetails(Tag.SHARING_CHANGE_MEMBER_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY_DETAILS}. + * + * @return The {@link SharingChangeMemberPolicyDetails} value associated + * with this instance if {@link #isSharingChangeMemberPolicyDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeMemberPolicyDetails} is {@code false}. + */ + public SharingChangeMemberPolicyDetails getSharingChangeMemberPolicyDetailsValue() { + if (this._tag != Tag.SHARING_CHANGE_MEMBER_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_MEMBER_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return sharingChangeMemberPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isShowcaseChangeDownloadPolicyDetails() { + return this._tag == Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseChangeDownloadPolicyDetails(ShowcaseChangeDownloadPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseChangeDownloadPolicyDetails(Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS}. + * + * @return The {@link ShowcaseChangeDownloadPolicyDetails} value associated + * with this instance if {@link #isShowcaseChangeDownloadPolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseChangeDownloadPolicyDetails} is {@code false}. + */ + public ShowcaseChangeDownloadPolicyDetails getShowcaseChangeDownloadPolicyDetailsValue() { + if (this._tag != Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseChangeDownloadPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isShowcaseChangeEnabledPolicyDetails() { + return this._tag == Tag.SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseChangeEnabledPolicyDetails(ShowcaseChangeEnabledPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseChangeEnabledPolicyDetails(Tag.SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS}. + * + * @return The {@link ShowcaseChangeEnabledPolicyDetails} value associated + * with this instance if {@link #isShowcaseChangeEnabledPolicyDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseChangeEnabledPolicyDetails} is {@code false}. + */ + public ShowcaseChangeEnabledPolicyDetails getShowcaseChangeEnabledPolicyDetailsValue() { + if (this._tag != Tag.SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseChangeEnabledPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isShowcaseChangeExternalSharingPolicyDetails() { + return this._tag == Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails showcaseChangeExternalSharingPolicyDetails(ShowcaseChangeExternalSharingPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndShowcaseChangeExternalSharingPolicyDetails(Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS}. + * + * @return The {@link ShowcaseChangeExternalSharingPolicyDetails} value + * associated with this instance if {@link + * #isShowcaseChangeExternalSharingPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseChangeExternalSharingPolicyDetails} is {@code false}. + */ + public ShowcaseChangeExternalSharingPolicyDetails getShowcaseChangeExternalSharingPolicyDetailsValue() { + if (this._tag != Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return showcaseChangeExternalSharingPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isSmarterSmartSyncPolicyChangedDetails() { + return this._tag == Tag.SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails smarterSmartSyncPolicyChangedDetails(SmarterSmartSyncPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSmarterSmartSyncPolicyChangedDetails(Tag.SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS}. + * + * @return The {@link SmarterSmartSyncPolicyChangedDetails} value associated + * with this instance if {@link #isSmarterSmartSyncPolicyChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSmarterSmartSyncPolicyChangedDetails} is {@code false}. + */ + public SmarterSmartSyncPolicyChangedDetails getSmarterSmartSyncPolicyChangedDetailsValue() { + if (this._tag != Tag.SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return smarterSmartSyncPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isSmartSyncChangePolicyDetails() { + return this._tag == Tag.SMART_SYNC_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SMART_SYNC_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SMART_SYNC_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails smartSyncChangePolicyDetails(SmartSyncChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSmartSyncChangePolicyDetails(Tag.SMART_SYNC_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SMART_SYNC_CHANGE_POLICY_DETAILS}. + * + * @return The {@link SmartSyncChangePolicyDetails} value associated with + * this instance if {@link #isSmartSyncChangePolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSmartSyncChangePolicyDetails} + * is {@code false}. + */ + public SmartSyncChangePolicyDetails getSmartSyncChangePolicyDetailsValue() { + if (this._tag != Tag.SMART_SYNC_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return smartSyncChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_NOT_OPT_OUT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_NOT_OPT_OUT_DETAILS}, {@code false} otherwise. + */ + public boolean isSmartSyncNotOptOutDetails() { + return this._tag == Tag.SMART_SYNC_NOT_OPT_OUT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SMART_SYNC_NOT_OPT_OUT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SMART_SYNC_NOT_OPT_OUT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails smartSyncNotOptOutDetails(SmartSyncNotOptOutDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSmartSyncNotOptOutDetails(Tag.SMART_SYNC_NOT_OPT_OUT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#SMART_SYNC_NOT_OPT_OUT_DETAILS}. + * + * @return The {@link SmartSyncNotOptOutDetails} value associated with this + * instance if {@link #isSmartSyncNotOptOutDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSmartSyncNotOptOutDetails} is + * {@code false}. + */ + public SmartSyncNotOptOutDetails getSmartSyncNotOptOutDetailsValue() { + if (this._tag != Tag.SMART_SYNC_NOT_OPT_OUT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_NOT_OPT_OUT_DETAILS, but was Tag." + this._tag.name()); + } + return smartSyncNotOptOutDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_OPT_OUT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_OPT_OUT_DETAILS}, {@code false} otherwise. + */ + public boolean isSmartSyncOptOutDetails() { + return this._tag == Tag.SMART_SYNC_OPT_OUT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SMART_SYNC_OPT_OUT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SMART_SYNC_OPT_OUT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails smartSyncOptOutDetails(SmartSyncOptOutDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSmartSyncOptOutDetails(Tag.SMART_SYNC_OPT_OUT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SMART_SYNC_OPT_OUT_DETAILS}. + * + * @return The {@link SmartSyncOptOutDetails} value associated with this + * instance if {@link #isSmartSyncOptOutDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSmartSyncOptOutDetails} is + * {@code false}. + */ + public SmartSyncOptOutDetails getSmartSyncOptOutDetailsValue() { + if (this._tag != Tag.SMART_SYNC_OPT_OUT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_OPT_OUT_DETAILS, but was Tag." + this._tag.name()); + } + return smartSyncOptOutDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isSsoChangePolicyDetails() { + return this._tag == Tag.SSO_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#SSO_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#SSO_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails ssoChangePolicyDetails(SsoChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndSsoChangePolicyDetails(Tag.SSO_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#SSO_CHANGE_POLICY_DETAILS}. + * + * @return The {@link SsoChangePolicyDetails} value associated with this + * instance if {@link #isSsoChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangePolicyDetails} is + * {@code false}. + */ + public SsoChangePolicyDetails getSsoChangePolicyDetailsValue() { + if (this._tag != Tag.SSO_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return ssoChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamBrandingPolicyChangedDetails() { + return this._tag == Tag.TEAM_BRANDING_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_BRANDING_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamBrandingPolicyChangedDetails(TeamBrandingPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamBrandingPolicyChangedDetails(Tag.TEAM_BRANDING_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED_DETAILS}. + * + * @return The {@link TeamBrandingPolicyChangedDetails} value associated + * with this instance if {@link #isTeamBrandingPolicyChangedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamBrandingPolicyChangedDetails} is {@code false}. + */ + public TeamBrandingPolicyChangedDetails getTeamBrandingPolicyChangedDetailsValue() { + if (this._tag != Tag.TEAM_BRANDING_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_BRANDING_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return teamBrandingPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamExtensionsPolicyChangedDetails() { + return this._tag == Tag.TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamExtensionsPolicyChangedDetails(TeamExtensionsPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamExtensionsPolicyChangedDetails(Tag.TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS}. + * + * @return The {@link TeamExtensionsPolicyChangedDetails} value associated + * with this instance if {@link #isTeamExtensionsPolicyChangedDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamExtensionsPolicyChangedDetails} is {@code false}. + */ + public TeamExtensionsPolicyChangedDetails getTeamExtensionsPolicyChangedDetailsValue() { + if (this._tag != Tag.TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return teamExtensionsPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamSelectiveSyncPolicyChangedDetails() { + return this._tag == Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamSelectiveSyncPolicyChangedDetails(TeamSelectiveSyncPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamSelectiveSyncPolicyChangedDetails(Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS}. + * + * @return The {@link TeamSelectiveSyncPolicyChangedDetails} value + * associated with this instance if {@link + * #isTeamSelectiveSyncPolicyChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamSelectiveSyncPolicyChangedDetails} is {@code false}. + */ + public TeamSelectiveSyncPolicyChangedDetails getTeamSelectiveSyncPolicyChangedDetailsValue() { + if (this._tag != Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return teamSelectiveSyncPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamSharingWhitelistSubjectsChangedDetails() { + return this._tag == Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamSharingWhitelistSubjectsChangedDetails(TeamSharingWhitelistSubjectsChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamSharingWhitelistSubjectsChangedDetails(Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS}. + * + * @return The {@link TeamSharingWhitelistSubjectsChangedDetails} value + * associated with this instance if {@link + * #isTeamSharingWhitelistSubjectsChangedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamSharingWhitelistSubjectsChangedDetails} is {@code false}. + */ + public TeamSharingWhitelistSubjectsChangedDetails getTeamSharingWhitelistSubjectsChangedDetailsValue() { + if (this._tag != Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return teamSharingWhitelistSubjectsChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_ADD_EXCEPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_ADD_EXCEPTION_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaAddExceptionDetails() { + return this._tag == Tag.TFA_ADD_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_ADD_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_ADD_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaAddExceptionDetails(TfaAddExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaAddExceptionDetails(Tag.TFA_ADD_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TFA_ADD_EXCEPTION_DETAILS}. + * + * @return The {@link TfaAddExceptionDetails} value associated with this + * instance if {@link #isTfaAddExceptionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaAddExceptionDetails} is + * {@code false}. + */ + public TfaAddExceptionDetails getTfaAddExceptionDetailsValue() { + if (this._tag != Tag.TFA_ADD_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_ADD_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return tfaAddExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaChangePolicyDetails() { + return this._tag == Tag.TFA_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaChangePolicyDetails(TfaChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaChangePolicyDetails(Tag.TFA_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TFA_CHANGE_POLICY_DETAILS}. + * + * @return The {@link TfaChangePolicyDetails} value associated with this + * instance if {@link #isTfaChangePolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaChangePolicyDetails} is + * {@code false}. + */ + public TfaChangePolicyDetails getTfaChangePolicyDetailsValue() { + if (this._tag != Tag.TFA_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return tfaChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_REMOVE_EXCEPTION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_REMOVE_EXCEPTION_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaRemoveExceptionDetails() { + return this._tag == Tag.TFA_REMOVE_EXCEPTION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_REMOVE_EXCEPTION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_REMOVE_EXCEPTION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaRemoveExceptionDetails(TfaRemoveExceptionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaRemoveExceptionDetails(Tag.TFA_REMOVE_EXCEPTION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TFA_REMOVE_EXCEPTION_DETAILS}. + * + * @return The {@link TfaRemoveExceptionDetails} value associated with this + * instance if {@link #isTfaRemoveExceptionDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaRemoveExceptionDetails} is + * {@code false}. + */ + public TfaRemoveExceptionDetails getTfaRemoveExceptionDetailsValue() { + if (this._tag != Tag.TFA_REMOVE_EXCEPTION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_REMOVE_EXCEPTION_DETAILS, but was Tag." + this._tag.name()); + } + return tfaRemoveExceptionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY_DETAILS}, {@code false} otherwise. + */ + public boolean isTwoAccountChangePolicyDetails() { + return this._tag == Tag.TWO_ACCOUNT_CHANGE_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TWO_ACCOUNT_CHANGE_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails twoAccountChangePolicyDetails(TwoAccountChangePolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTwoAccountChangePolicyDetails(Tag.TWO_ACCOUNT_CHANGE_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY_DETAILS}. + * + * @return The {@link TwoAccountChangePolicyDetails} value associated with + * this instance if {@link #isTwoAccountChangePolicyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTwoAccountChangePolicyDetails} is {@code false}. + */ + public TwoAccountChangePolicyDetails getTwoAccountChangePolicyDetailsValue() { + if (this._tag != Tag.TWO_ACCOUNT_CHANGE_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TWO_ACCOUNT_CHANGE_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return twoAccountChangePolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#VIEWER_INFO_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#VIEWER_INFO_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isViewerInfoPolicyChangedDetails() { + return this._tag == Tag.VIEWER_INFO_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#VIEWER_INFO_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#VIEWER_INFO_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails viewerInfoPolicyChangedDetails(ViewerInfoPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndViewerInfoPolicyChangedDetails(Tag.VIEWER_INFO_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#VIEWER_INFO_POLICY_CHANGED_DETAILS}. + * + * @return The {@link ViewerInfoPolicyChangedDetails} value associated with + * this instance if {@link #isViewerInfoPolicyChangedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isViewerInfoPolicyChangedDetails} is {@code false}. + */ + public ViewerInfoPolicyChangedDetails getViewerInfoPolicyChangedDetailsValue() { + if (this._tag != Tag.VIEWER_INFO_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.VIEWER_INFO_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return viewerInfoPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WATERMARKING_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WATERMARKING_POLICY_CHANGED_DETAILS}, {@code false} otherwise. + */ + public boolean isWatermarkingPolicyChangedDetails() { + return this._tag == Tag.WATERMARKING_POLICY_CHANGED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#WATERMARKING_POLICY_CHANGED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#WATERMARKING_POLICY_CHANGED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails watermarkingPolicyChangedDetails(WatermarkingPolicyChangedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndWatermarkingPolicyChangedDetails(Tag.WATERMARKING_POLICY_CHANGED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#WATERMARKING_POLICY_CHANGED_DETAILS}. + * + * @return The {@link WatermarkingPolicyChangedDetails} value associated + * with this instance if {@link #isWatermarkingPolicyChangedDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isWatermarkingPolicyChangedDetails} is {@code false}. + */ + public WatermarkingPolicyChangedDetails getWatermarkingPolicyChangedDetailsValue() { + if (this._tag != Tag.WATERMARKING_POLICY_CHANGED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.WATERMARKING_POLICY_CHANGED_DETAILS, but was Tag." + this._tag.name()); + } + return watermarkingPolicyChangedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS}, {@code false} + * otherwise. + */ + public boolean isWebSessionsChangeActiveSessionLimitDetails() { + return this._tag == Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails webSessionsChangeActiveSessionLimitDetails(WebSessionsChangeActiveSessionLimitDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndWebSessionsChangeActiveSessionLimitDetails(Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS}. + * + * @return The {@link WebSessionsChangeActiveSessionLimitDetails} value + * associated with this instance if {@link + * #isWebSessionsChangeActiveSessionLimitDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isWebSessionsChangeActiveSessionLimitDetails} is {@code false}. + */ + public WebSessionsChangeActiveSessionLimitDetails getWebSessionsChangeActiveSessionLimitDetailsValue() { + if (this._tag != Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS, but was Tag." + this._tag.name()); + } + return webSessionsChangeActiveSessionLimitDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isWebSessionsChangeFixedLengthPolicyDetails() { + return this._tag == Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails webSessionsChangeFixedLengthPolicyDetails(WebSessionsChangeFixedLengthPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndWebSessionsChangeFixedLengthPolicyDetails(Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS}. + * + * @return The {@link WebSessionsChangeFixedLengthPolicyDetails} value + * associated with this instance if {@link + * #isWebSessionsChangeFixedLengthPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isWebSessionsChangeFixedLengthPolicyDetails} is {@code false}. + */ + public WebSessionsChangeFixedLengthPolicyDetails getWebSessionsChangeFixedLengthPolicyDetailsValue() { + if (this._tag != Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return webSessionsChangeFixedLengthPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS}, {@code false} + * otherwise. + */ + public boolean isWebSessionsChangeIdleLengthPolicyDetails() { + return this._tag == Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails webSessionsChangeIdleLengthPolicyDetails(WebSessionsChangeIdleLengthPolicyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndWebSessionsChangeIdleLengthPolicyDetails(Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS}. + * + * @return The {@link WebSessionsChangeIdleLengthPolicyDetails} value + * associated with this instance if {@link + * #isWebSessionsChangeIdleLengthPolicyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isWebSessionsChangeIdleLengthPolicyDetails} is {@code false}. + */ + public WebSessionsChangeIdleLengthPolicyDetails getWebSessionsChangeIdleLengthPolicyDetailsValue() { + if (this._tag != Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS, but was Tag." + this._tag.name()); + } + return webSessionsChangeIdleLengthPolicyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS}, {@code + * false} otherwise. + */ + public boolean isDataResidencyMigrationRequestSuccessfulDetails() { + return this._tag == Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails dataResidencyMigrationRequestSuccessfulDetails(DataResidencyMigrationRequestSuccessfulDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDataResidencyMigrationRequestSuccessfulDetails(Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS}. + * + * @return The {@link DataResidencyMigrationRequestSuccessfulDetails} value + * associated with this instance if {@link + * #isDataResidencyMigrationRequestSuccessfulDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataResidencyMigrationRequestSuccessfulDetails} is {@code false}. + */ + public DataResidencyMigrationRequestSuccessfulDetails getDataResidencyMigrationRequestSuccessfulDetailsValue() { + if (this._tag != Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS, but was Tag." + this._tag.name()); + } + return dataResidencyMigrationRequestSuccessfulDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS}, {@code + * false} otherwise. + */ + public boolean isDataResidencyMigrationRequestUnsuccessfulDetails() { + return this._tag == Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails dataResidencyMigrationRequestUnsuccessfulDetails(DataResidencyMigrationRequestUnsuccessfulDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndDataResidencyMigrationRequestUnsuccessfulDetails(Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS}. + * + * @return The {@link DataResidencyMigrationRequestUnsuccessfulDetails} + * value associated with this instance if {@link + * #isDataResidencyMigrationRequestUnsuccessfulDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataResidencyMigrationRequestUnsuccessfulDetails} is {@code + * false}. + */ + public DataResidencyMigrationRequestUnsuccessfulDetails getDataResidencyMigrationRequestUnsuccessfulDetailsValue() { + if (this._tag != Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS, but was Tag." + this._tag.name()); + } + return dataResidencyMigrationRequestUnsuccessfulDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_FROM_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_FROM_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamMergeFromDetails() { + return this._tag == Tag.TEAM_MERGE_FROM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_FROM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_FROM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeFromDetails(TeamMergeFromDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeFromDetails(Tag.TEAM_MERGE_FROM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_MERGE_FROM_DETAILS}. + * + * @return The {@link TeamMergeFromDetails} value associated with this + * instance if {@link #isTeamMergeFromDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeFromDetails} is + * {@code false}. + */ + public TeamMergeFromDetails getTeamMergeFromDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_FROM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_FROM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeFromDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_TO_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_TO_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamMergeToDetails() { + return this._tag == Tag.TEAM_MERGE_TO_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_TO_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_TO_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeToDetails(TeamMergeToDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeToDetails(Tag.TEAM_MERGE_TO_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TEAM_MERGE_TO_DETAILS}. + * + * @return The {@link TeamMergeToDetails} value associated with this + * instance if {@link #isTeamMergeToDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeToDetails} is {@code + * false}. + */ + public TeamMergeToDetails getTeamMergeToDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_TO_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_TO_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeToDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamProfileAddBackgroundDetails() { + return this._tag == Tag.TEAM_PROFILE_ADD_BACKGROUND_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_ADD_BACKGROUND_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileAddBackgroundDetails(TeamProfileAddBackgroundDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileAddBackgroundDetails(Tag.TEAM_PROFILE_ADD_BACKGROUND_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND_DETAILS}. + * + * @return The {@link TeamProfileAddBackgroundDetails} value associated with + * this instance if {@link #isTeamProfileAddBackgroundDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamProfileAddBackgroundDetails} is {@code false}. + */ + public TeamProfileAddBackgroundDetails getTeamProfileAddBackgroundDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_ADD_BACKGROUND_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_ADD_BACKGROUND_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileAddBackgroundDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_ADD_LOGO_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_ADD_LOGO_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamProfileAddLogoDetails() { + return this._tag == Tag.TEAM_PROFILE_ADD_LOGO_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_ADD_LOGO_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_ADD_LOGO_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileAddLogoDetails(TeamProfileAddLogoDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileAddLogoDetails(Tag.TEAM_PROFILE_ADD_LOGO_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_ADD_LOGO_DETAILS}. + * + * @return The {@link TeamProfileAddLogoDetails} value associated with this + * instance if {@link #isTeamProfileAddLogoDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamProfileAddLogoDetails} is + * {@code false}. + */ + public TeamProfileAddLogoDetails getTeamProfileAddLogoDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_ADD_LOGO_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_ADD_LOGO_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileAddLogoDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamProfileChangeBackgroundDetails() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileChangeBackgroundDetails(TeamProfileChangeBackgroundDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileChangeBackgroundDetails(Tag.TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS}. + * + * @return The {@link TeamProfileChangeBackgroundDetails} value associated + * with this instance if {@link #isTeamProfileChangeBackgroundDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamProfileChangeBackgroundDetails} is {@code false}. + */ + public TeamProfileChangeBackgroundDetails getTeamProfileChangeBackgroundDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileChangeBackgroundDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamProfileChangeDefaultLanguageDetails() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileChangeDefaultLanguageDetails(TeamProfileChangeDefaultLanguageDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileChangeDefaultLanguageDetails(Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS}. + * + * @return The {@link TeamProfileChangeDefaultLanguageDetails} value + * associated with this instance if {@link + * #isTeamProfileChangeDefaultLanguageDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamProfileChangeDefaultLanguageDetails} is {@code false}. + */ + public TeamProfileChangeDefaultLanguageDetails getTeamProfileChangeDefaultLanguageDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileChangeDefaultLanguageDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamProfileChangeLogoDetails() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_LOGO_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_CHANGE_LOGO_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileChangeLogoDetails(TeamProfileChangeLogoDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileChangeLogoDetails(Tag.TEAM_PROFILE_CHANGE_LOGO_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO_DETAILS}. + * + * @return The {@link TeamProfileChangeLogoDetails} value associated with + * this instance if {@link #isTeamProfileChangeLogoDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamProfileChangeLogoDetails} + * is {@code false}. + */ + public TeamProfileChangeLogoDetails getTeamProfileChangeLogoDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_LOGO_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_LOGO_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileChangeLogoDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_NAME_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_NAME_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamProfileChangeNameDetails() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_NAME_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_CHANGE_NAME_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_NAME_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileChangeNameDetails(TeamProfileChangeNameDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileChangeNameDetails(Tag.TEAM_PROFILE_CHANGE_NAME_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_NAME_DETAILS}. + * + * @return The {@link TeamProfileChangeNameDetails} value associated with + * this instance if {@link #isTeamProfileChangeNameDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamProfileChangeNameDetails} + * is {@code false}. + */ + public TeamProfileChangeNameDetails getTeamProfileChangeNameDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_NAME_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_NAME_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileChangeNameDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamProfileRemoveBackgroundDetails() { + return this._tag == Tag.TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileRemoveBackgroundDetails(TeamProfileRemoveBackgroundDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileRemoveBackgroundDetails(Tag.TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS}. + * + * @return The {@link TeamProfileRemoveBackgroundDetails} value associated + * with this instance if {@link #isTeamProfileRemoveBackgroundDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamProfileRemoveBackgroundDetails} is {@code false}. + */ + public TeamProfileRemoveBackgroundDetails getTeamProfileRemoveBackgroundDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileRemoveBackgroundDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamProfileRemoveLogoDetails() { + return this._tag == Tag.TEAM_PROFILE_REMOVE_LOGO_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_PROFILE_REMOVE_LOGO_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamProfileRemoveLogoDetails(TeamProfileRemoveLogoDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamProfileRemoveLogoDetails(Tag.TEAM_PROFILE_REMOVE_LOGO_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO_DETAILS}. + * + * @return The {@link TeamProfileRemoveLogoDetails} value associated with + * this instance if {@link #isTeamProfileRemoveLogoDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamProfileRemoveLogoDetails} + * is {@code false}. + */ + public TeamProfileRemoveLogoDetails getTeamProfileRemoveLogoDetailsValue() { + if (this._tag != Tag.TEAM_PROFILE_REMOVE_LOGO_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_REMOVE_LOGO_DETAILS, but was Tag." + this._tag.name()); + } + return teamProfileRemoveLogoDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_ADD_BACKUP_PHONE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_ADD_BACKUP_PHONE_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaAddBackupPhoneDetails() { + return this._tag == Tag.TFA_ADD_BACKUP_PHONE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_ADD_BACKUP_PHONE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_ADD_BACKUP_PHONE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaAddBackupPhoneDetails(TfaAddBackupPhoneDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaAddBackupPhoneDetails(Tag.TFA_ADD_BACKUP_PHONE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TFA_ADD_BACKUP_PHONE_DETAILS}. + * + * @return The {@link TfaAddBackupPhoneDetails} value associated with this + * instance if {@link #isTfaAddBackupPhoneDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaAddBackupPhoneDetails} is + * {@code false}. + */ + public TfaAddBackupPhoneDetails getTfaAddBackupPhoneDetailsValue() { + if (this._tag != Tag.TFA_ADD_BACKUP_PHONE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_ADD_BACKUP_PHONE_DETAILS, but was Tag." + this._tag.name()); + } + return tfaAddBackupPhoneDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_ADD_SECURITY_KEY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_ADD_SECURITY_KEY_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaAddSecurityKeyDetails() { + return this._tag == Tag.TFA_ADD_SECURITY_KEY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_ADD_SECURITY_KEY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_ADD_SECURITY_KEY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaAddSecurityKeyDetails(TfaAddSecurityKeyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaAddSecurityKeyDetails(Tag.TFA_ADD_SECURITY_KEY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TFA_ADD_SECURITY_KEY_DETAILS}. + * + * @return The {@link TfaAddSecurityKeyDetails} value associated with this + * instance if {@link #isTfaAddSecurityKeyDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaAddSecurityKeyDetails} is + * {@code false}. + */ + public TfaAddSecurityKeyDetails getTfaAddSecurityKeyDetailsValue() { + if (this._tag != Tag.TFA_ADD_SECURITY_KEY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_ADD_SECURITY_KEY_DETAILS, but was Tag." + this._tag.name()); + } + return tfaAddSecurityKeyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_CHANGE_BACKUP_PHONE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_CHANGE_BACKUP_PHONE_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaChangeBackupPhoneDetails() { + return this._tag == Tag.TFA_CHANGE_BACKUP_PHONE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_CHANGE_BACKUP_PHONE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_CHANGE_BACKUP_PHONE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaChangeBackupPhoneDetails(TfaChangeBackupPhoneDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaChangeBackupPhoneDetails(Tag.TFA_CHANGE_BACKUP_PHONE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TFA_CHANGE_BACKUP_PHONE_DETAILS}. + * + * @return The {@link TfaChangeBackupPhoneDetails} value associated with + * this instance if {@link #isTfaChangeBackupPhoneDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTfaChangeBackupPhoneDetails} + * is {@code false}. + */ + public TfaChangeBackupPhoneDetails getTfaChangeBackupPhoneDetailsValue() { + if (this._tag != Tag.TFA_CHANGE_BACKUP_PHONE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_CHANGE_BACKUP_PHONE_DETAILS, but was Tag." + this._tag.name()); + } + return tfaChangeBackupPhoneDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaChangeStatusDetails() { + return this._tag == Tag.TFA_CHANGE_STATUS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_CHANGE_STATUS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_CHANGE_STATUS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaChangeStatusDetails(TfaChangeStatusDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaChangeStatusDetails(Tag.TFA_CHANGE_STATUS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TFA_CHANGE_STATUS_DETAILS}. + * + * @return The {@link TfaChangeStatusDetails} value associated with this + * instance if {@link #isTfaChangeStatusDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaChangeStatusDetails} is + * {@code false}. + */ + public TfaChangeStatusDetails getTfaChangeStatusDetailsValue() { + if (this._tag != Tag.TFA_CHANGE_STATUS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_CHANGE_STATUS_DETAILS, but was Tag." + this._tag.name()); + } + return tfaChangeStatusDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_REMOVE_BACKUP_PHONE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_REMOVE_BACKUP_PHONE_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaRemoveBackupPhoneDetails() { + return this._tag == Tag.TFA_REMOVE_BACKUP_PHONE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_REMOVE_BACKUP_PHONE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_REMOVE_BACKUP_PHONE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaRemoveBackupPhoneDetails(TfaRemoveBackupPhoneDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaRemoveBackupPhoneDetails(Tag.TFA_REMOVE_BACKUP_PHONE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TFA_REMOVE_BACKUP_PHONE_DETAILS}. + * + * @return The {@link TfaRemoveBackupPhoneDetails} value associated with + * this instance if {@link #isTfaRemoveBackupPhoneDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTfaRemoveBackupPhoneDetails} + * is {@code false}. + */ + public TfaRemoveBackupPhoneDetails getTfaRemoveBackupPhoneDetailsValue() { + if (this._tag != Tag.TFA_REMOVE_BACKUP_PHONE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_REMOVE_BACKUP_PHONE_DETAILS, but was Tag." + this._tag.name()); + } + return tfaRemoveBackupPhoneDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_REMOVE_SECURITY_KEY_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_REMOVE_SECURITY_KEY_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaRemoveSecurityKeyDetails() { + return this._tag == Tag.TFA_REMOVE_SECURITY_KEY_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_REMOVE_SECURITY_KEY_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_REMOVE_SECURITY_KEY_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaRemoveSecurityKeyDetails(TfaRemoveSecurityKeyDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaRemoveSecurityKeyDetails(Tag.TFA_REMOVE_SECURITY_KEY_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TFA_REMOVE_SECURITY_KEY_DETAILS}. + * + * @return The {@link TfaRemoveSecurityKeyDetails} value associated with + * this instance if {@link #isTfaRemoveSecurityKeyDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTfaRemoveSecurityKeyDetails} + * is {@code false}. + */ + public TfaRemoveSecurityKeyDetails getTfaRemoveSecurityKeyDetailsValue() { + if (this._tag != Tag.TFA_REMOVE_SECURITY_KEY_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_REMOVE_SECURITY_KEY_DETAILS, but was Tag." + this._tag.name()); + } + return tfaRemoveSecurityKeyDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_RESET_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_RESET_DETAILS}, {@code false} otherwise. + */ + public boolean isTfaResetDetails() { + return this._tag == Tag.TFA_RESET_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TFA_RESET_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TFA_RESET_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails tfaResetDetails(TfaResetDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTfaResetDetails(Tag.TFA_RESET_DETAILS, value); + } + + /** + * This instance must be tagged as {@link Tag#TFA_RESET_DETAILS}. + * + * @return The {@link TfaResetDetails} value associated with this instance + * if {@link #isTfaResetDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaResetDetails} is {@code + * false}. + */ + public TfaResetDetails getTfaResetDetailsValue() { + if (this._tag != Tag.TFA_RESET_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_RESET_DETAILS, but was Tag." + this._tag.name()); + } + return tfaResetDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS}, {@code false} otherwise. + */ + public boolean isChangedEnterpriseAdminRoleDetails() { + return this._tag == Tag.CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails changedEnterpriseAdminRoleDetails(ChangedEnterpriseAdminRoleDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndChangedEnterpriseAdminRoleDetails(Tag.CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS}. + * + * @return The {@link ChangedEnterpriseAdminRoleDetails} value associated + * with this instance if {@link #isChangedEnterpriseAdminRoleDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isChangedEnterpriseAdminRoleDetails} is {@code false}. + */ + public ChangedEnterpriseAdminRoleDetails getChangedEnterpriseAdminRoleDetailsValue() { + if (this._tag != Tag.CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS, but was Tag." + this._tag.name()); + } + return changedEnterpriseAdminRoleDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS}, {@code false} + * otherwise. + */ + public boolean isChangedEnterpriseConnectedTeamStatusDetails() { + return this._tag == Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails changedEnterpriseConnectedTeamStatusDetails(ChangedEnterpriseConnectedTeamStatusDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndChangedEnterpriseConnectedTeamStatusDetails(Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS}. + * + * @return The {@link ChangedEnterpriseConnectedTeamStatusDetails} value + * associated with this instance if {@link + * #isChangedEnterpriseConnectedTeamStatusDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isChangedEnterpriseConnectedTeamStatusDetails} is {@code false}. + */ + public ChangedEnterpriseConnectedTeamStatusDetails getChangedEnterpriseConnectedTeamStatusDetailsValue() { + if (this._tag != Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS, but was Tag." + this._tag.name()); + } + return changedEnterpriseConnectedTeamStatusDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS}, {@code false} otherwise. + */ + public boolean isEndedEnterpriseAdminSessionDetails() { + return this._tag == Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails endedEnterpriseAdminSessionDetails(EndedEnterpriseAdminSessionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEndedEnterpriseAdminSessionDetails(Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS}. + * + * @return The {@link EndedEnterpriseAdminSessionDetails} value associated + * with this instance if {@link #isEndedEnterpriseAdminSessionDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isEndedEnterpriseAdminSessionDetails} is {@code false}. + */ + public EndedEnterpriseAdminSessionDetails getEndedEnterpriseAdminSessionDetailsValue() { + if (this._tag != Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS, but was Tag." + this._tag.name()); + } + return endedEnterpriseAdminSessionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isEndedEnterpriseAdminSessionDeprecatedDetails() { + return this._tag == Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails endedEnterpriseAdminSessionDeprecatedDetails(EndedEnterpriseAdminSessionDeprecatedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEndedEnterpriseAdminSessionDeprecatedDetails(Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS}. + * + * @return The {@link EndedEnterpriseAdminSessionDeprecatedDetails} value + * associated with this instance if {@link + * #isEndedEnterpriseAdminSessionDeprecatedDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isEndedEnterpriseAdminSessionDeprecatedDetails} is {@code false}. + */ + public EndedEnterpriseAdminSessionDeprecatedDetails getEndedEnterpriseAdminSessionDeprecatedDetailsValue() { + if (this._tag != Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS, but was Tag." + this._tag.name()); + } + return endedEnterpriseAdminSessionDeprecatedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING_DETAILS}, {@code false} otherwise. + */ + public boolean isEnterpriseSettingsLockingDetails() { + return this._tag == Tag.ENTERPRISE_SETTINGS_LOCKING_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#ENTERPRISE_SETTINGS_LOCKING_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails enterpriseSettingsLockingDetails(EnterpriseSettingsLockingDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndEnterpriseSettingsLockingDetails(Tag.ENTERPRISE_SETTINGS_LOCKING_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING_DETAILS}. + * + * @return The {@link EnterpriseSettingsLockingDetails} value associated + * with this instance if {@link #isEnterpriseSettingsLockingDetails} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isEnterpriseSettingsLockingDetails} is {@code false}. + */ + public EnterpriseSettingsLockingDetails getEnterpriseSettingsLockingDetailsValue() { + if (this._tag != Tag.ENTERPRISE_SETTINGS_LOCKING_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.ENTERPRISE_SETTINGS_LOCKING_DETAILS, but was Tag." + this._tag.name()); + } + return enterpriseSettingsLockingDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS_DETAILS}, {@code false} otherwise. + */ + public boolean isGuestAdminChangeStatusDetails() { + return this._tag == Tag.GUEST_ADMIN_CHANGE_STATUS_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#GUEST_ADMIN_CHANGE_STATUS_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails guestAdminChangeStatusDetails(GuestAdminChangeStatusDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndGuestAdminChangeStatusDetails(Tag.GUEST_ADMIN_CHANGE_STATUS_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS_DETAILS}. + * + * @return The {@link GuestAdminChangeStatusDetails} value associated with + * this instance if {@link #isGuestAdminChangeStatusDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isGuestAdminChangeStatusDetails} is {@code false}. + */ + public GuestAdminChangeStatusDetails getGuestAdminChangeStatusDetailsValue() { + if (this._tag != Tag.GUEST_ADMIN_CHANGE_STATUS_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GUEST_ADMIN_CHANGE_STATUS_DETAILS, but was Tag." + this._tag.name()); + } + return guestAdminChangeStatusDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS}, {@code false} + * otherwise. + */ + public boolean isStartedEnterpriseAdminSessionDetails() { + return this._tag == Tag.STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails startedEnterpriseAdminSessionDetails(StartedEnterpriseAdminSessionDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndStartedEnterpriseAdminSessionDetails(Tag.STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS}. + * + * @return The {@link StartedEnterpriseAdminSessionDetails} value associated + * with this instance if {@link #isStartedEnterpriseAdminSessionDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isStartedEnterpriseAdminSessionDetails} is {@code false}. + */ + public StartedEnterpriseAdminSessionDetails getStartedEnterpriseAdminSessionDetailsValue() { + if (this._tag != Tag.STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS, but was Tag." + this._tag.name()); + } + return startedEnterpriseAdminSessionDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestAcceptedDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_ACCEPTED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_ACCEPTED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestAcceptedDetails(TeamMergeRequestAcceptedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestAcceptedDetails(Tag.TEAM_MERGE_REQUEST_ACCEPTED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_DETAILS}. + * + * @return The {@link TeamMergeRequestAcceptedDetails} value associated with + * this instance if {@link #isTeamMergeRequestAcceptedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestAcceptedDetails} is {@code false}. + */ + public TeamMergeRequestAcceptedDetails getTeamMergeRequestAcceptedDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_ACCEPTED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_ACCEPTED_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestAcceptedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestAcceptedShownToPrimaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestAcceptedShownToPrimaryTeamDetails(TeamMergeRequestAcceptedShownToPrimaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestAcceptedShownToPrimaryTeamDetails(Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestAcceptedShownToPrimaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestAcceptedShownToPrimaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestAcceptedShownToPrimaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestAcceptedShownToPrimaryTeamDetails getTeamMergeRequestAcceptedShownToPrimaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestAcceptedShownToSecondaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestAcceptedShownToSecondaryTeamDetails(TeamMergeRequestAcceptedShownToSecondaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestAcceptedShownToSecondaryTeamDetails(Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestAcceptedShownToSecondaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestAcceptedShownToSecondaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestAcceptedShownToSecondaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestAcceptedShownToSecondaryTeamDetails getTeamMergeRequestAcceptedShownToSecondaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestAutoCanceledDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestAutoCanceledDetails(TeamMergeRequestAutoCanceledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestAutoCanceledDetails(Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS}. + * + * @return The {@link TeamMergeRequestAutoCanceledDetails} value associated + * with this instance if {@link #isTeamMergeRequestAutoCanceledDetails} + * is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestAutoCanceledDetails} is {@code false}. + */ + public TeamMergeRequestAutoCanceledDetails getTeamMergeRequestAutoCanceledDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestAutoCanceledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestCanceledDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_CANCELED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_CANCELED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestCanceledDetails(TeamMergeRequestCanceledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestCanceledDetails(Tag.TEAM_MERGE_REQUEST_CANCELED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_DETAILS}. + * + * @return The {@link TeamMergeRequestCanceledDetails} value associated with + * this instance if {@link #isTeamMergeRequestCanceledDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestCanceledDetails} is {@code false}. + */ + public TeamMergeRequestCanceledDetails getTeamMergeRequestCanceledDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_CANCELED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_CANCELED_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestCanceledDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestCanceledShownToPrimaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestCanceledShownToPrimaryTeamDetails(TeamMergeRequestCanceledShownToPrimaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestCanceledShownToPrimaryTeamDetails(Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestCanceledShownToPrimaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestCanceledShownToPrimaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestCanceledShownToPrimaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestCanceledShownToPrimaryTeamDetails getTeamMergeRequestCanceledShownToPrimaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestCanceledShownToPrimaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestCanceledShownToSecondaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestCanceledShownToSecondaryTeamDetails(TeamMergeRequestCanceledShownToSecondaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestCanceledShownToSecondaryTeamDetails(Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestCanceledShownToSecondaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestCanceledShownToSecondaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestCanceledShownToSecondaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestCanceledShownToSecondaryTeamDetails getTeamMergeRequestCanceledShownToSecondaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestCanceledShownToSecondaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestExpiredDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_EXPIRED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_EXPIRED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestExpiredDetails(TeamMergeRequestExpiredDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestExpiredDetails(Tag.TEAM_MERGE_REQUEST_EXPIRED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_DETAILS}. + * + * @return The {@link TeamMergeRequestExpiredDetails} value associated with + * this instance if {@link #isTeamMergeRequestExpiredDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestExpiredDetails} is {@code false}. + */ + public TeamMergeRequestExpiredDetails getTeamMergeRequestExpiredDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_EXPIRED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_EXPIRED_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestExpiredDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestExpiredShownToPrimaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestExpiredShownToPrimaryTeamDetails(TeamMergeRequestExpiredShownToPrimaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestExpiredShownToPrimaryTeamDetails(Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestExpiredShownToPrimaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestExpiredShownToPrimaryTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestExpiredShownToPrimaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestExpiredShownToPrimaryTeamDetails getTeamMergeRequestExpiredShownToPrimaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestExpiredShownToPrimaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestExpiredShownToSecondaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestExpiredShownToSecondaryTeamDetails(TeamMergeRequestExpiredShownToSecondaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestExpiredShownToSecondaryTeamDetails(Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestExpiredShownToSecondaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestExpiredShownToSecondaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestExpiredShownToSecondaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestExpiredShownToSecondaryTeamDetails getTeamMergeRequestExpiredShownToSecondaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestExpiredShownToSecondaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestRejectedShownToPrimaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestRejectedShownToPrimaryTeamDetails(TeamMergeRequestRejectedShownToPrimaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestRejectedShownToPrimaryTeamDetails(Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestRejectedShownToPrimaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestRejectedShownToPrimaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestRejectedShownToPrimaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestRejectedShownToPrimaryTeamDetails getTeamMergeRequestRejectedShownToPrimaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestRejectedShownToPrimaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestRejectedShownToSecondaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestRejectedShownToSecondaryTeamDetails(TeamMergeRequestRejectedShownToSecondaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestRejectedShownToSecondaryTeamDetails(Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestRejectedShownToSecondaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestRejectedShownToSecondaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestRejectedShownToSecondaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestRejectedShownToSecondaryTeamDetails getTeamMergeRequestRejectedShownToSecondaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestRejectedShownToSecondaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestReminderDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REMINDER_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_REMINDER_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestReminderDetails(TeamMergeRequestReminderDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestReminderDetails(Tag.TEAM_MERGE_REQUEST_REMINDER_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_DETAILS}. + * + * @return The {@link TeamMergeRequestReminderDetails} value associated with + * this instance if {@link #isTeamMergeRequestReminderDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestReminderDetails} is {@code false}. + */ + public TeamMergeRequestReminderDetails getTeamMergeRequestReminderDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REMINDER_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REMINDER_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestReminderDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestReminderShownToPrimaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestReminderShownToPrimaryTeamDetails(TeamMergeRequestReminderShownToPrimaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestReminderShownToPrimaryTeamDetails(Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestReminderShownToPrimaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestReminderShownToPrimaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestReminderShownToPrimaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestReminderShownToPrimaryTeamDetails getTeamMergeRequestReminderShownToPrimaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestReminderShownToPrimaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS}, + * {@code false} otherwise. + */ + public boolean isTeamMergeRequestReminderShownToSecondaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestReminderShownToSecondaryTeamDetails(TeamMergeRequestReminderShownToSecondaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestReminderShownToSecondaryTeamDetails(Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestReminderShownToSecondaryTeamDetails} + * value associated with this instance if {@link + * #isTeamMergeRequestReminderShownToSecondaryTeamDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestReminderShownToSecondaryTeamDetails} is {@code + * false}. + */ + public TeamMergeRequestReminderShownToSecondaryTeamDetails getTeamMergeRequestReminderShownToSecondaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestReminderShownToSecondaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED_DETAILS}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestRevokedDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REVOKED_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_REVOKED_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestRevokedDetails(TeamMergeRequestRevokedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestRevokedDetails(Tag.TEAM_MERGE_REQUEST_REVOKED_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED_DETAILS}. + * + * @return The {@link TeamMergeRequestRevokedDetails} value associated with + * this instance if {@link #isTeamMergeRequestRevokedDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestRevokedDetails} is {@code false}. + */ + public TeamMergeRequestRevokedDetails getTeamMergeRequestRevokedDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REVOKED_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REVOKED_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestRevokedDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestSentShownToPrimaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestSentShownToPrimaryTeamDetails(TeamMergeRequestSentShownToPrimaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestSentShownToPrimaryTeamDetails(Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestSentShownToPrimaryTeamDetails} value + * associated with this instance if {@link + * #isTeamMergeRequestSentShownToPrimaryTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestSentShownToPrimaryTeamDetails} is {@code false}. + */ + public TeamMergeRequestSentShownToPrimaryTeamDetails getTeamMergeRequestSentShownToPrimaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestSentShownToPrimaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS}, {@code + * false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestSentShownToSecondaryTeamDetails() { + return this._tag == Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails teamMergeRequestSentShownToSecondaryTeamDetails(TeamMergeRequestSentShownToSecondaryTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndTeamMergeRequestSentShownToSecondaryTeamDetails(Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS, value); + } + + /** + * This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS}. + * + * @return The {@link TeamMergeRequestSentShownToSecondaryTeamDetails} value + * associated with this instance if {@link + * #isTeamMergeRequestSentShownToSecondaryTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestSentShownToSecondaryTeamDetails} is {@code false}. + */ + public TeamMergeRequestSentShownToSecondaryTeamDetails getTeamMergeRequestSentShownToSecondaryTeamDetailsValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return teamMergeRequestSentShownToSecondaryTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MISSING_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MISSING_DETAILS}, {@code false} otherwise. + */ + public boolean isMissingDetails() { + return this._tag == Tag.MISSING_DETAILS; + } + + /** + * Returns an instance of {@code EventDetails} that has its tag set to + * {@link Tag#MISSING_DETAILS}. + * + *

Hints that this event was returned with missing details due to an + * internal error.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventDetails} with its tag set to {@link + * Tag#MISSING_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventDetails missingDetails(MissingDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventDetails().withTagAndMissingDetails(Tag.MISSING_DETAILS, value); + } + + /** + * Hints that this event was returned with missing details due to an + * internal error. + * + *

This instance must be tagged as {@link Tag#MISSING_DETAILS}.

+ * + * @return The {@link MissingDetails} value associated with this instance if + * {@link #isMissingDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isMissingDetails} is {@code + * false}. + */ + public MissingDetails getMissingDetailsValue() { + if (this._tag != Tag.MISSING_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.MISSING_DETAILS, but was Tag." + this._tag.name()); + } + return missingDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.adminAlertingAlertStateChangedDetailsValue, + this.adminAlertingChangedAlertConfigDetailsValue, + this.adminAlertingTriggeredAlertDetailsValue, + this.ransomwareRestoreProcessCompletedDetailsValue, + this.ransomwareRestoreProcessStartedDetailsValue, + this.appBlockedByPermissionsDetailsValue, + this.appLinkTeamDetailsValue, + this.appLinkUserDetailsValue, + this.appUnlinkTeamDetailsValue, + this.appUnlinkUserDetailsValue, + this.integrationConnectedDetailsValue, + this.integrationDisconnectedDetailsValue, + this.fileAddCommentDetailsValue, + this.fileChangeCommentSubscriptionDetailsValue, + this.fileDeleteCommentDetailsValue, + this.fileEditCommentDetailsValue, + this.fileLikeCommentDetailsValue, + this.fileResolveCommentDetailsValue, + this.fileUnlikeCommentDetailsValue, + this.fileUnresolveCommentDetailsValue, + this.governancePolicyAddFoldersDetailsValue, + this.governancePolicyAddFolderFailedDetailsValue, + this.governancePolicyContentDisposedDetailsValue, + this.governancePolicyCreateDetailsValue, + this.governancePolicyDeleteDetailsValue, + this.governancePolicyEditDetailsDetailsValue, + this.governancePolicyEditDurationDetailsValue, + this.governancePolicyExportCreatedDetailsValue, + this.governancePolicyExportRemovedDetailsValue, + this.governancePolicyRemoveFoldersDetailsValue, + this.governancePolicyReportCreatedDetailsValue, + this.governancePolicyZipPartDownloadedDetailsValue, + this.legalHoldsActivateAHoldDetailsValue, + this.legalHoldsAddMembersDetailsValue, + this.legalHoldsChangeHoldDetailsDetailsValue, + this.legalHoldsChangeHoldNameDetailsValue, + this.legalHoldsExportAHoldDetailsValue, + this.legalHoldsExportCancelledDetailsValue, + this.legalHoldsExportDownloadedDetailsValue, + this.legalHoldsExportRemovedDetailsValue, + this.legalHoldsReleaseAHoldDetailsValue, + this.legalHoldsRemoveMembersDetailsValue, + this.legalHoldsReportAHoldDetailsValue, + this.deviceChangeIpDesktopDetailsValue, + this.deviceChangeIpMobileDetailsValue, + this.deviceChangeIpWebDetailsValue, + this.deviceDeleteOnUnlinkFailDetailsValue, + this.deviceDeleteOnUnlinkSuccessDetailsValue, + this.deviceLinkFailDetailsValue, + this.deviceLinkSuccessDetailsValue, + this.deviceManagementDisabledDetailsValue, + this.deviceManagementEnabledDetailsValue, + this.deviceSyncBackupStatusChangedDetailsValue, + this.deviceUnlinkDetailsValue, + this.dropboxPasswordsExportedDetailsValue, + this.dropboxPasswordsNewDeviceEnrolledDetailsValue, + this.emmRefreshAuthTokenDetailsValue, + this.externalDriveBackupEligibilityStatusCheckedDetailsValue, + this.externalDriveBackupStatusChangedDetailsValue, + this.accountCaptureChangeAvailabilityDetailsValue, + this.accountCaptureMigrateAccountDetailsValue, + this.accountCaptureNotificationEmailsSentDetailsValue, + this.accountCaptureRelinquishAccountDetailsValue, + this.disabledDomainInvitesDetailsValue, + this.domainInvitesApproveRequestToJoinTeamDetailsValue, + this.domainInvitesDeclineRequestToJoinTeamDetailsValue, + this.domainInvitesEmailExistingUsersDetailsValue, + this.domainInvitesRequestToJoinTeamDetailsValue, + this.domainInvitesSetInviteNewUserPrefToNoDetailsValue, + this.domainInvitesSetInviteNewUserPrefToYesDetailsValue, + this.domainVerificationAddDomainFailDetailsValue, + this.domainVerificationAddDomainSuccessDetailsValue, + this.domainVerificationRemoveDomainDetailsValue, + this.enabledDomainInvitesDetailsValue, + this.teamEncryptionKeyCancelKeyDeletionDetailsValue, + this.teamEncryptionKeyCreateKeyDetailsValue, + this.teamEncryptionKeyDeleteKeyDetailsValue, + this.teamEncryptionKeyDisableKeyDetailsValue, + this.teamEncryptionKeyEnableKeyDetailsValue, + this.teamEncryptionKeyRotateKeyDetailsValue, + this.teamEncryptionKeyScheduleKeyDeletionDetailsValue, + this.applyNamingConventionDetailsValue, + this.createFolderDetailsValue, + this.fileAddDetailsValue, + this.fileAddFromAutomationDetailsValue, + this.fileCopyDetailsValue, + this.fileDeleteDetailsValue, + this.fileDownloadDetailsValue, + this.fileEditDetailsValue, + this.fileGetCopyReferenceDetailsValue, + this.fileLockingLockStatusChangedDetailsValue, + this.fileMoveDetailsValue, + this.filePermanentlyDeleteDetailsValue, + this.filePreviewDetailsValue, + this.fileRenameDetailsValue, + this.fileRestoreDetailsValue, + this.fileRevertDetailsValue, + this.fileRollbackChangesDetailsValue, + this.fileSaveCopyReferenceDetailsValue, + this.folderOverviewDescriptionChangedDetailsValue, + this.folderOverviewItemPinnedDetailsValue, + this.folderOverviewItemUnpinnedDetailsValue, + this.objectLabelAddedDetailsValue, + this.objectLabelRemovedDetailsValue, + this.objectLabelUpdatedValueDetailsValue, + this.organizeFolderWithTidyDetailsValue, + this.replayFileDeleteDetailsValue, + this.rewindFolderDetailsValue, + this.undoNamingConventionDetailsValue, + this.undoOrganizeFolderWithTidyDetailsValue, + this.userTagsAddedDetailsValue, + this.userTagsRemovedDetailsValue, + this.emailIngestReceiveFileDetailsValue, + this.fileRequestChangeDetailsValue, + this.fileRequestCloseDetailsValue, + this.fileRequestCreateDetailsValue, + this.fileRequestDeleteDetailsValue, + this.fileRequestReceiveFileDetailsValue, + this.groupAddExternalIdDetailsValue, + this.groupAddMemberDetailsValue, + this.groupChangeExternalIdDetailsValue, + this.groupChangeManagementTypeDetailsValue, + this.groupChangeMemberRoleDetailsValue, + this.groupCreateDetailsValue, + this.groupDeleteDetailsValue, + this.groupDescriptionUpdatedDetailsValue, + this.groupJoinPolicyUpdatedDetailsValue, + this.groupMovedDetailsValue, + this.groupRemoveExternalIdDetailsValue, + this.groupRemoveMemberDetailsValue, + this.groupRenameDetailsValue, + this.accountLockOrUnlockedDetailsValue, + this.emmErrorDetailsValue, + this.guestAdminSignedInViaTrustedTeamsDetailsValue, + this.guestAdminSignedOutViaTrustedTeamsDetailsValue, + this.loginFailDetailsValue, + this.loginSuccessDetailsValue, + this.logoutDetailsValue, + this.resellerSupportSessionEndDetailsValue, + this.resellerSupportSessionStartDetailsValue, + this.signInAsSessionEndDetailsValue, + this.signInAsSessionStartDetailsValue, + this.ssoErrorDetailsValue, + this.backupAdminInvitationSentDetailsValue, + this.backupInvitationOpenedDetailsValue, + this.createTeamInviteLinkDetailsValue, + this.deleteTeamInviteLinkDetailsValue, + this.memberAddExternalIdDetailsValue, + this.memberAddNameDetailsValue, + this.memberChangeAdminRoleDetailsValue, + this.memberChangeEmailDetailsValue, + this.memberChangeExternalIdDetailsValue, + this.memberChangeMembershipTypeDetailsValue, + this.memberChangeNameDetailsValue, + this.memberChangeResellerRoleDetailsValue, + this.memberChangeStatusDetailsValue, + this.memberDeleteManualContactsDetailsValue, + this.memberDeleteProfilePhotoDetailsValue, + this.memberPermanentlyDeleteAccountContentsDetailsValue, + this.memberRemoveExternalIdDetailsValue, + this.memberSetProfilePhotoDetailsValue, + this.memberSpaceLimitsAddCustomQuotaDetailsValue, + this.memberSpaceLimitsChangeCustomQuotaDetailsValue, + this.memberSpaceLimitsChangeStatusDetailsValue, + this.memberSpaceLimitsRemoveCustomQuotaDetailsValue, + this.memberSuggestDetailsValue, + this.memberTransferAccountContentsDetailsValue, + this.pendingSecondaryEmailAddedDetailsValue, + this.secondaryEmailDeletedDetailsValue, + this.secondaryEmailVerifiedDetailsValue, + this.secondaryMailsPolicyChangedDetailsValue, + this.binderAddPageDetailsValue, + this.binderAddSectionDetailsValue, + this.binderRemovePageDetailsValue, + this.binderRemoveSectionDetailsValue, + this.binderRenamePageDetailsValue, + this.binderRenameSectionDetailsValue, + this.binderReorderPageDetailsValue, + this.binderReorderSectionDetailsValue, + this.paperContentAddMemberDetailsValue, + this.paperContentAddToFolderDetailsValue, + this.paperContentArchiveDetailsValue, + this.paperContentCreateDetailsValue, + this.paperContentPermanentlyDeleteDetailsValue, + this.paperContentRemoveFromFolderDetailsValue, + this.paperContentRemoveMemberDetailsValue, + this.paperContentRenameDetailsValue, + this.paperContentRestoreDetailsValue, + this.paperDocAddCommentDetailsValue, + this.paperDocChangeMemberRoleDetailsValue, + this.paperDocChangeSharingPolicyDetailsValue, + this.paperDocChangeSubscriptionDetailsValue, + this.paperDocDeletedDetailsValue, + this.paperDocDeleteCommentDetailsValue, + this.paperDocDownloadDetailsValue, + this.paperDocEditDetailsValue, + this.paperDocEditCommentDetailsValue, + this.paperDocFollowedDetailsValue, + this.paperDocMentionDetailsValue, + this.paperDocOwnershipChangedDetailsValue, + this.paperDocRequestAccessDetailsValue, + this.paperDocResolveCommentDetailsValue, + this.paperDocRevertDetailsValue, + this.paperDocSlackShareDetailsValue, + this.paperDocTeamInviteDetailsValue, + this.paperDocTrashedDetailsValue, + this.paperDocUnresolveCommentDetailsValue, + this.paperDocUntrashedDetailsValue, + this.paperDocViewDetailsValue, + this.paperExternalViewAllowDetailsValue, + this.paperExternalViewDefaultTeamDetailsValue, + this.paperExternalViewForbidDetailsValue, + this.paperFolderChangeSubscriptionDetailsValue, + this.paperFolderDeletedDetailsValue, + this.paperFolderFollowedDetailsValue, + this.paperFolderTeamInviteDetailsValue, + this.paperPublishedLinkChangePermissionDetailsValue, + this.paperPublishedLinkCreateDetailsValue, + this.paperPublishedLinkDisabledDetailsValue, + this.paperPublishedLinkViewDetailsValue, + this.passwordChangeDetailsValue, + this.passwordResetDetailsValue, + this.passwordResetAllDetailsValue, + this.classificationCreateReportDetailsValue, + this.classificationCreateReportFailDetailsValue, + this.emmCreateExceptionsReportDetailsValue, + this.emmCreateUsageReportDetailsValue, + this.exportMembersReportDetailsValue, + this.exportMembersReportFailDetailsValue, + this.externalSharingCreateReportDetailsValue, + this.externalSharingReportFailedDetailsValue, + this.noExpirationLinkGenCreateReportDetailsValue, + this.noExpirationLinkGenReportFailedDetailsValue, + this.noPasswordLinkGenCreateReportDetailsValue, + this.noPasswordLinkGenReportFailedDetailsValue, + this.noPasswordLinkViewCreateReportDetailsValue, + this.noPasswordLinkViewReportFailedDetailsValue, + this.outdatedLinkViewCreateReportDetailsValue, + this.outdatedLinkViewReportFailedDetailsValue, + this.paperAdminExportStartDetailsValue, + this.ransomwareAlertCreateReportDetailsValue, + this.ransomwareAlertCreateReportFailedDetailsValue, + this.smartSyncCreateAdminPrivilegeReportDetailsValue, + this.teamActivityCreateReportDetailsValue, + this.teamActivityCreateReportFailDetailsValue, + this.collectionShareDetailsValue, + this.fileTransfersFileAddDetailsValue, + this.fileTransfersTransferDeleteDetailsValue, + this.fileTransfersTransferDownloadDetailsValue, + this.fileTransfersTransferSendDetailsValue, + this.fileTransfersTransferViewDetailsValue, + this.noteAclInviteOnlyDetailsValue, + this.noteAclLinkDetailsValue, + this.noteAclTeamLinkDetailsValue, + this.noteSharedDetailsValue, + this.noteShareReceiveDetailsValue, + this.openNoteSharedDetailsValue, + this.replayFileSharedLinkCreatedDetailsValue, + this.replayFileSharedLinkModifiedDetailsValue, + this.replayProjectTeamAddDetailsValue, + this.replayProjectTeamDeleteDetailsValue, + this.sfAddGroupDetailsValue, + this.sfAllowNonMembersToViewSharedLinksDetailsValue, + this.sfExternalInviteWarnDetailsValue, + this.sfFbInviteDetailsValue, + this.sfFbInviteChangeRoleDetailsValue, + this.sfFbUninviteDetailsValue, + this.sfInviteGroupDetailsValue, + this.sfTeamGrantAccessDetailsValue, + this.sfTeamInviteDetailsValue, + this.sfTeamInviteChangeRoleDetailsValue, + this.sfTeamJoinDetailsValue, + this.sfTeamJoinFromOobLinkDetailsValue, + this.sfTeamUninviteDetailsValue, + this.sharedContentAddInviteesDetailsValue, + this.sharedContentAddLinkExpiryDetailsValue, + this.sharedContentAddLinkPasswordDetailsValue, + this.sharedContentAddMemberDetailsValue, + this.sharedContentChangeDownloadsPolicyDetailsValue, + this.sharedContentChangeInviteeRoleDetailsValue, + this.sharedContentChangeLinkAudienceDetailsValue, + this.sharedContentChangeLinkExpiryDetailsValue, + this.sharedContentChangeLinkPasswordDetailsValue, + this.sharedContentChangeMemberRoleDetailsValue, + this.sharedContentChangeViewerInfoPolicyDetailsValue, + this.sharedContentClaimInvitationDetailsValue, + this.sharedContentCopyDetailsValue, + this.sharedContentDownloadDetailsValue, + this.sharedContentRelinquishMembershipDetailsValue, + this.sharedContentRemoveInviteesDetailsValue, + this.sharedContentRemoveLinkExpiryDetailsValue, + this.sharedContentRemoveLinkPasswordDetailsValue, + this.sharedContentRemoveMemberDetailsValue, + this.sharedContentRequestAccessDetailsValue, + this.sharedContentRestoreInviteesDetailsValue, + this.sharedContentRestoreMemberDetailsValue, + this.sharedContentUnshareDetailsValue, + this.sharedContentViewDetailsValue, + this.sharedFolderChangeLinkPolicyDetailsValue, + this.sharedFolderChangeMembersInheritancePolicyDetailsValue, + this.sharedFolderChangeMembersManagementPolicyDetailsValue, + this.sharedFolderChangeMembersPolicyDetailsValue, + this.sharedFolderCreateDetailsValue, + this.sharedFolderDeclineInvitationDetailsValue, + this.sharedFolderMountDetailsValue, + this.sharedFolderNestDetailsValue, + this.sharedFolderTransferOwnershipDetailsValue, + this.sharedFolderUnmountDetailsValue, + this.sharedLinkAddExpiryDetailsValue, + this.sharedLinkChangeExpiryDetailsValue, + this.sharedLinkChangeVisibilityDetailsValue, + this.sharedLinkCopyDetailsValue, + this.sharedLinkCreateDetailsValue, + this.sharedLinkDisableDetailsValue, + this.sharedLinkDownloadDetailsValue, + this.sharedLinkRemoveExpiryDetailsValue, + this.sharedLinkSettingsAddExpirationDetailsValue, + this.sharedLinkSettingsAddPasswordDetailsValue, + this.sharedLinkSettingsAllowDownloadDisabledDetailsValue, + this.sharedLinkSettingsAllowDownloadEnabledDetailsValue, + this.sharedLinkSettingsChangeAudienceDetailsValue, + this.sharedLinkSettingsChangeExpirationDetailsValue, + this.sharedLinkSettingsChangePasswordDetailsValue, + this.sharedLinkSettingsRemoveExpirationDetailsValue, + this.sharedLinkSettingsRemovePasswordDetailsValue, + this.sharedLinkShareDetailsValue, + this.sharedLinkViewDetailsValue, + this.sharedNoteOpenedDetailsValue, + this.shmodelDisableDownloadsDetailsValue, + this.shmodelEnableDownloadsDetailsValue, + this.shmodelGroupShareDetailsValue, + this.showcaseAccessGrantedDetailsValue, + this.showcaseAddMemberDetailsValue, + this.showcaseArchivedDetailsValue, + this.showcaseCreatedDetailsValue, + this.showcaseDeleteCommentDetailsValue, + this.showcaseEditedDetailsValue, + this.showcaseEditCommentDetailsValue, + this.showcaseFileAddedDetailsValue, + this.showcaseFileDownloadDetailsValue, + this.showcaseFileRemovedDetailsValue, + this.showcaseFileViewDetailsValue, + this.showcasePermanentlyDeletedDetailsValue, + this.showcasePostCommentDetailsValue, + this.showcaseRemoveMemberDetailsValue, + this.showcaseRenamedDetailsValue, + this.showcaseRequestAccessDetailsValue, + this.showcaseResolveCommentDetailsValue, + this.showcaseRestoredDetailsValue, + this.showcaseTrashedDetailsValue, + this.showcaseTrashedDeprecatedDetailsValue, + this.showcaseUnresolveCommentDetailsValue, + this.showcaseUntrashedDetailsValue, + this.showcaseUntrashedDeprecatedDetailsValue, + this.showcaseViewDetailsValue, + this.ssoAddCertDetailsValue, + this.ssoAddLoginUrlDetailsValue, + this.ssoAddLogoutUrlDetailsValue, + this.ssoChangeCertDetailsValue, + this.ssoChangeLoginUrlDetailsValue, + this.ssoChangeLogoutUrlDetailsValue, + this.ssoChangeSamlIdentityModeDetailsValue, + this.ssoRemoveCertDetailsValue, + this.ssoRemoveLoginUrlDetailsValue, + this.ssoRemoveLogoutUrlDetailsValue, + this.teamFolderChangeStatusDetailsValue, + this.teamFolderCreateDetailsValue, + this.teamFolderDowngradeDetailsValue, + this.teamFolderPermanentlyDeleteDetailsValue, + this.teamFolderRenameDetailsValue, + this.teamSelectiveSyncSettingsChangedDetailsValue, + this.accountCaptureChangePolicyDetailsValue, + this.adminEmailRemindersChangedDetailsValue, + this.allowDownloadDisabledDetailsValue, + this.allowDownloadEnabledDetailsValue, + this.appPermissionsChangedDetailsValue, + this.cameraUploadsPolicyChangedDetailsValue, + this.captureTranscriptPolicyChangedDetailsValue, + this.classificationChangePolicyDetailsValue, + this.computerBackupPolicyChangedDetailsValue, + this.contentAdministrationPolicyChangedDetailsValue, + this.dataPlacementRestrictionChangePolicyDetailsValue, + this.dataPlacementRestrictionSatisfyPolicyDetailsValue, + this.deviceApprovalsAddExceptionDetailsValue, + this.deviceApprovalsChangeDesktopPolicyDetailsValue, + this.deviceApprovalsChangeMobilePolicyDetailsValue, + this.deviceApprovalsChangeOverageActionDetailsValue, + this.deviceApprovalsChangeUnlinkActionDetailsValue, + this.deviceApprovalsRemoveExceptionDetailsValue, + this.directoryRestrictionsAddMembersDetailsValue, + this.directoryRestrictionsRemoveMembersDetailsValue, + this.dropboxPasswordsPolicyChangedDetailsValue, + this.emailIngestPolicyChangedDetailsValue, + this.emmAddExceptionDetailsValue, + this.emmChangePolicyDetailsValue, + this.emmRemoveExceptionDetailsValue, + this.extendedVersionHistoryChangePolicyDetailsValue, + this.externalDriveBackupPolicyChangedDetailsValue, + this.fileCommentsChangePolicyDetailsValue, + this.fileLockingPolicyChangedDetailsValue, + this.fileProviderMigrationPolicyChangedDetailsValue, + this.fileRequestsChangePolicyDetailsValue, + this.fileRequestsEmailsEnabledDetailsValue, + this.fileRequestsEmailsRestrictedToTeamOnlyDetailsValue, + this.fileTransfersPolicyChangedDetailsValue, + this.folderLinkRestrictionPolicyChangedDetailsValue, + this.googleSsoChangePolicyDetailsValue, + this.groupUserManagementChangePolicyDetailsValue, + this.integrationPolicyChangedDetailsValue, + this.inviteAcceptanceEmailPolicyChangedDetailsValue, + this.memberRequestsChangePolicyDetailsValue, + this.memberSendInvitePolicyChangedDetailsValue, + this.memberSpaceLimitsAddExceptionDetailsValue, + this.memberSpaceLimitsChangeCapsTypePolicyDetailsValue, + this.memberSpaceLimitsChangePolicyDetailsValue, + this.memberSpaceLimitsRemoveExceptionDetailsValue, + this.memberSuggestionsChangePolicyDetailsValue, + this.microsoftOfficeAddinChangePolicyDetailsValue, + this.networkControlChangePolicyDetailsValue, + this.paperChangeDeploymentPolicyDetailsValue, + this.paperChangeMemberLinkPolicyDetailsValue, + this.paperChangeMemberPolicyDetailsValue, + this.paperChangePolicyDetailsValue, + this.paperDefaultFolderPolicyChangedDetailsValue, + this.paperDesktopPolicyChangedDetailsValue, + this.paperEnabledUsersGroupAdditionDetailsValue, + this.paperEnabledUsersGroupRemovalDetailsValue, + this.passwordStrengthRequirementsChangePolicyDetailsValue, + this.permanentDeleteChangePolicyDetailsValue, + this.resellerSupportChangePolicyDetailsValue, + this.rewindPolicyChangedDetailsValue, + this.sendForSignaturePolicyChangedDetailsValue, + this.sharingChangeFolderJoinPolicyDetailsValue, + this.sharingChangeLinkAllowChangeExpirationPolicyDetailsValue, + this.sharingChangeLinkDefaultExpirationPolicyDetailsValue, + this.sharingChangeLinkEnforcePasswordPolicyDetailsValue, + this.sharingChangeLinkPolicyDetailsValue, + this.sharingChangeMemberPolicyDetailsValue, + this.showcaseChangeDownloadPolicyDetailsValue, + this.showcaseChangeEnabledPolicyDetailsValue, + this.showcaseChangeExternalSharingPolicyDetailsValue, + this.smarterSmartSyncPolicyChangedDetailsValue, + this.smartSyncChangePolicyDetailsValue, + this.smartSyncNotOptOutDetailsValue, + this.smartSyncOptOutDetailsValue, + this.ssoChangePolicyDetailsValue, + this.teamBrandingPolicyChangedDetailsValue, + this.teamExtensionsPolicyChangedDetailsValue, + this.teamSelectiveSyncPolicyChangedDetailsValue, + this.teamSharingWhitelistSubjectsChangedDetailsValue, + this.tfaAddExceptionDetailsValue, + this.tfaChangePolicyDetailsValue, + this.tfaRemoveExceptionDetailsValue, + this.twoAccountChangePolicyDetailsValue, + this.viewerInfoPolicyChangedDetailsValue, + this.watermarkingPolicyChangedDetailsValue, + this.webSessionsChangeActiveSessionLimitDetailsValue, + this.webSessionsChangeFixedLengthPolicyDetailsValue, + this.webSessionsChangeIdleLengthPolicyDetailsValue, + this.dataResidencyMigrationRequestSuccessfulDetailsValue, + this.dataResidencyMigrationRequestUnsuccessfulDetailsValue, + this.teamMergeFromDetailsValue, + this.teamMergeToDetailsValue, + this.teamProfileAddBackgroundDetailsValue, + this.teamProfileAddLogoDetailsValue, + this.teamProfileChangeBackgroundDetailsValue, + this.teamProfileChangeDefaultLanguageDetailsValue, + this.teamProfileChangeLogoDetailsValue, + this.teamProfileChangeNameDetailsValue, + this.teamProfileRemoveBackgroundDetailsValue, + this.teamProfileRemoveLogoDetailsValue, + this.tfaAddBackupPhoneDetailsValue, + this.tfaAddSecurityKeyDetailsValue, + this.tfaChangeBackupPhoneDetailsValue, + this.tfaChangeStatusDetailsValue, + this.tfaRemoveBackupPhoneDetailsValue, + this.tfaRemoveSecurityKeyDetailsValue, + this.tfaResetDetailsValue, + this.changedEnterpriseAdminRoleDetailsValue, + this.changedEnterpriseConnectedTeamStatusDetailsValue, + this.endedEnterpriseAdminSessionDetailsValue, + this.endedEnterpriseAdminSessionDeprecatedDetailsValue, + this.enterpriseSettingsLockingDetailsValue, + this.guestAdminChangeStatusDetailsValue, + this.startedEnterpriseAdminSessionDetailsValue, + this.teamMergeRequestAcceptedDetailsValue, + this.teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue, + this.teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue, + this.teamMergeRequestAutoCanceledDetailsValue, + this.teamMergeRequestCanceledDetailsValue, + this.teamMergeRequestCanceledShownToPrimaryTeamDetailsValue, + this.teamMergeRequestCanceledShownToSecondaryTeamDetailsValue, + this.teamMergeRequestExpiredDetailsValue, + this.teamMergeRequestExpiredShownToPrimaryTeamDetailsValue, + this.teamMergeRequestExpiredShownToSecondaryTeamDetailsValue, + this.teamMergeRequestRejectedShownToPrimaryTeamDetailsValue, + this.teamMergeRequestRejectedShownToSecondaryTeamDetailsValue, + this.teamMergeRequestReminderDetailsValue, + this.teamMergeRequestReminderShownToPrimaryTeamDetailsValue, + this.teamMergeRequestReminderShownToSecondaryTeamDetailsValue, + this.teamMergeRequestRevokedDetailsValue, + this.teamMergeRequestSentShownToPrimaryTeamDetailsValue, + this.teamMergeRequestSentShownToSecondaryTeamDetailsValue, + this.missingDetailsValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof EventDetails) { + EventDetails other = (EventDetails) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS: + return (this.adminAlertingAlertStateChangedDetailsValue == other.adminAlertingAlertStateChangedDetailsValue) || (this.adminAlertingAlertStateChangedDetailsValue.equals(other.adminAlertingAlertStateChangedDetailsValue)); + case ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS: + return (this.adminAlertingChangedAlertConfigDetailsValue == other.adminAlertingChangedAlertConfigDetailsValue) || (this.adminAlertingChangedAlertConfigDetailsValue.equals(other.adminAlertingChangedAlertConfigDetailsValue)); + case ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS: + return (this.adminAlertingTriggeredAlertDetailsValue == other.adminAlertingTriggeredAlertDetailsValue) || (this.adminAlertingTriggeredAlertDetailsValue.equals(other.adminAlertingTriggeredAlertDetailsValue)); + case RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS: + return (this.ransomwareRestoreProcessCompletedDetailsValue == other.ransomwareRestoreProcessCompletedDetailsValue) || (this.ransomwareRestoreProcessCompletedDetailsValue.equals(other.ransomwareRestoreProcessCompletedDetailsValue)); + case RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS: + return (this.ransomwareRestoreProcessStartedDetailsValue == other.ransomwareRestoreProcessStartedDetailsValue) || (this.ransomwareRestoreProcessStartedDetailsValue.equals(other.ransomwareRestoreProcessStartedDetailsValue)); + case APP_BLOCKED_BY_PERMISSIONS_DETAILS: + return (this.appBlockedByPermissionsDetailsValue == other.appBlockedByPermissionsDetailsValue) || (this.appBlockedByPermissionsDetailsValue.equals(other.appBlockedByPermissionsDetailsValue)); + case APP_LINK_TEAM_DETAILS: + return (this.appLinkTeamDetailsValue == other.appLinkTeamDetailsValue) || (this.appLinkTeamDetailsValue.equals(other.appLinkTeamDetailsValue)); + case APP_LINK_USER_DETAILS: + return (this.appLinkUserDetailsValue == other.appLinkUserDetailsValue) || (this.appLinkUserDetailsValue.equals(other.appLinkUserDetailsValue)); + case APP_UNLINK_TEAM_DETAILS: + return (this.appUnlinkTeamDetailsValue == other.appUnlinkTeamDetailsValue) || (this.appUnlinkTeamDetailsValue.equals(other.appUnlinkTeamDetailsValue)); + case APP_UNLINK_USER_DETAILS: + return (this.appUnlinkUserDetailsValue == other.appUnlinkUserDetailsValue) || (this.appUnlinkUserDetailsValue.equals(other.appUnlinkUserDetailsValue)); + case INTEGRATION_CONNECTED_DETAILS: + return (this.integrationConnectedDetailsValue == other.integrationConnectedDetailsValue) || (this.integrationConnectedDetailsValue.equals(other.integrationConnectedDetailsValue)); + case INTEGRATION_DISCONNECTED_DETAILS: + return (this.integrationDisconnectedDetailsValue == other.integrationDisconnectedDetailsValue) || (this.integrationDisconnectedDetailsValue.equals(other.integrationDisconnectedDetailsValue)); + case FILE_ADD_COMMENT_DETAILS: + return (this.fileAddCommentDetailsValue == other.fileAddCommentDetailsValue) || (this.fileAddCommentDetailsValue.equals(other.fileAddCommentDetailsValue)); + case FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS: + return (this.fileChangeCommentSubscriptionDetailsValue == other.fileChangeCommentSubscriptionDetailsValue) || (this.fileChangeCommentSubscriptionDetailsValue.equals(other.fileChangeCommentSubscriptionDetailsValue)); + case FILE_DELETE_COMMENT_DETAILS: + return (this.fileDeleteCommentDetailsValue == other.fileDeleteCommentDetailsValue) || (this.fileDeleteCommentDetailsValue.equals(other.fileDeleteCommentDetailsValue)); + case FILE_EDIT_COMMENT_DETAILS: + return (this.fileEditCommentDetailsValue == other.fileEditCommentDetailsValue) || (this.fileEditCommentDetailsValue.equals(other.fileEditCommentDetailsValue)); + case FILE_LIKE_COMMENT_DETAILS: + return (this.fileLikeCommentDetailsValue == other.fileLikeCommentDetailsValue) || (this.fileLikeCommentDetailsValue.equals(other.fileLikeCommentDetailsValue)); + case FILE_RESOLVE_COMMENT_DETAILS: + return (this.fileResolveCommentDetailsValue == other.fileResolveCommentDetailsValue) || (this.fileResolveCommentDetailsValue.equals(other.fileResolveCommentDetailsValue)); + case FILE_UNLIKE_COMMENT_DETAILS: + return (this.fileUnlikeCommentDetailsValue == other.fileUnlikeCommentDetailsValue) || (this.fileUnlikeCommentDetailsValue.equals(other.fileUnlikeCommentDetailsValue)); + case FILE_UNRESOLVE_COMMENT_DETAILS: + return (this.fileUnresolveCommentDetailsValue == other.fileUnresolveCommentDetailsValue) || (this.fileUnresolveCommentDetailsValue.equals(other.fileUnresolveCommentDetailsValue)); + case GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS: + return (this.governancePolicyAddFoldersDetailsValue == other.governancePolicyAddFoldersDetailsValue) || (this.governancePolicyAddFoldersDetailsValue.equals(other.governancePolicyAddFoldersDetailsValue)); + case GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS: + return (this.governancePolicyAddFolderFailedDetailsValue == other.governancePolicyAddFolderFailedDetailsValue) || (this.governancePolicyAddFolderFailedDetailsValue.equals(other.governancePolicyAddFolderFailedDetailsValue)); + case GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS: + return (this.governancePolicyContentDisposedDetailsValue == other.governancePolicyContentDisposedDetailsValue) || (this.governancePolicyContentDisposedDetailsValue.equals(other.governancePolicyContentDisposedDetailsValue)); + case GOVERNANCE_POLICY_CREATE_DETAILS: + return (this.governancePolicyCreateDetailsValue == other.governancePolicyCreateDetailsValue) || (this.governancePolicyCreateDetailsValue.equals(other.governancePolicyCreateDetailsValue)); + case GOVERNANCE_POLICY_DELETE_DETAILS: + return (this.governancePolicyDeleteDetailsValue == other.governancePolicyDeleteDetailsValue) || (this.governancePolicyDeleteDetailsValue.equals(other.governancePolicyDeleteDetailsValue)); + case GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS: + return (this.governancePolicyEditDetailsDetailsValue == other.governancePolicyEditDetailsDetailsValue) || (this.governancePolicyEditDetailsDetailsValue.equals(other.governancePolicyEditDetailsDetailsValue)); + case GOVERNANCE_POLICY_EDIT_DURATION_DETAILS: + return (this.governancePolicyEditDurationDetailsValue == other.governancePolicyEditDurationDetailsValue) || (this.governancePolicyEditDurationDetailsValue.equals(other.governancePolicyEditDurationDetailsValue)); + case GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS: + return (this.governancePolicyExportCreatedDetailsValue == other.governancePolicyExportCreatedDetailsValue) || (this.governancePolicyExportCreatedDetailsValue.equals(other.governancePolicyExportCreatedDetailsValue)); + case GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS: + return (this.governancePolicyExportRemovedDetailsValue == other.governancePolicyExportRemovedDetailsValue) || (this.governancePolicyExportRemovedDetailsValue.equals(other.governancePolicyExportRemovedDetailsValue)); + case GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS: + return (this.governancePolicyRemoveFoldersDetailsValue == other.governancePolicyRemoveFoldersDetailsValue) || (this.governancePolicyRemoveFoldersDetailsValue.equals(other.governancePolicyRemoveFoldersDetailsValue)); + case GOVERNANCE_POLICY_REPORT_CREATED_DETAILS: + return (this.governancePolicyReportCreatedDetailsValue == other.governancePolicyReportCreatedDetailsValue) || (this.governancePolicyReportCreatedDetailsValue.equals(other.governancePolicyReportCreatedDetailsValue)); + case GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS: + return (this.governancePolicyZipPartDownloadedDetailsValue == other.governancePolicyZipPartDownloadedDetailsValue) || (this.governancePolicyZipPartDownloadedDetailsValue.equals(other.governancePolicyZipPartDownloadedDetailsValue)); + case LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS: + return (this.legalHoldsActivateAHoldDetailsValue == other.legalHoldsActivateAHoldDetailsValue) || (this.legalHoldsActivateAHoldDetailsValue.equals(other.legalHoldsActivateAHoldDetailsValue)); + case LEGAL_HOLDS_ADD_MEMBERS_DETAILS: + return (this.legalHoldsAddMembersDetailsValue == other.legalHoldsAddMembersDetailsValue) || (this.legalHoldsAddMembersDetailsValue.equals(other.legalHoldsAddMembersDetailsValue)); + case LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS: + return (this.legalHoldsChangeHoldDetailsDetailsValue == other.legalHoldsChangeHoldDetailsDetailsValue) || (this.legalHoldsChangeHoldDetailsDetailsValue.equals(other.legalHoldsChangeHoldDetailsDetailsValue)); + case LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS: + return (this.legalHoldsChangeHoldNameDetailsValue == other.legalHoldsChangeHoldNameDetailsValue) || (this.legalHoldsChangeHoldNameDetailsValue.equals(other.legalHoldsChangeHoldNameDetailsValue)); + case LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS: + return (this.legalHoldsExportAHoldDetailsValue == other.legalHoldsExportAHoldDetailsValue) || (this.legalHoldsExportAHoldDetailsValue.equals(other.legalHoldsExportAHoldDetailsValue)); + case LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS: + return (this.legalHoldsExportCancelledDetailsValue == other.legalHoldsExportCancelledDetailsValue) || (this.legalHoldsExportCancelledDetailsValue.equals(other.legalHoldsExportCancelledDetailsValue)); + case LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS: + return (this.legalHoldsExportDownloadedDetailsValue == other.legalHoldsExportDownloadedDetailsValue) || (this.legalHoldsExportDownloadedDetailsValue.equals(other.legalHoldsExportDownloadedDetailsValue)); + case LEGAL_HOLDS_EXPORT_REMOVED_DETAILS: + return (this.legalHoldsExportRemovedDetailsValue == other.legalHoldsExportRemovedDetailsValue) || (this.legalHoldsExportRemovedDetailsValue.equals(other.legalHoldsExportRemovedDetailsValue)); + case LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS: + return (this.legalHoldsReleaseAHoldDetailsValue == other.legalHoldsReleaseAHoldDetailsValue) || (this.legalHoldsReleaseAHoldDetailsValue.equals(other.legalHoldsReleaseAHoldDetailsValue)); + case LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS: + return (this.legalHoldsRemoveMembersDetailsValue == other.legalHoldsRemoveMembersDetailsValue) || (this.legalHoldsRemoveMembersDetailsValue.equals(other.legalHoldsRemoveMembersDetailsValue)); + case LEGAL_HOLDS_REPORT_A_HOLD_DETAILS: + return (this.legalHoldsReportAHoldDetailsValue == other.legalHoldsReportAHoldDetailsValue) || (this.legalHoldsReportAHoldDetailsValue.equals(other.legalHoldsReportAHoldDetailsValue)); + case DEVICE_CHANGE_IP_DESKTOP_DETAILS: + return (this.deviceChangeIpDesktopDetailsValue == other.deviceChangeIpDesktopDetailsValue) || (this.deviceChangeIpDesktopDetailsValue.equals(other.deviceChangeIpDesktopDetailsValue)); + case DEVICE_CHANGE_IP_MOBILE_DETAILS: + return (this.deviceChangeIpMobileDetailsValue == other.deviceChangeIpMobileDetailsValue) || (this.deviceChangeIpMobileDetailsValue.equals(other.deviceChangeIpMobileDetailsValue)); + case DEVICE_CHANGE_IP_WEB_DETAILS: + return (this.deviceChangeIpWebDetailsValue == other.deviceChangeIpWebDetailsValue) || (this.deviceChangeIpWebDetailsValue.equals(other.deviceChangeIpWebDetailsValue)); + case DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS: + return (this.deviceDeleteOnUnlinkFailDetailsValue == other.deviceDeleteOnUnlinkFailDetailsValue) || (this.deviceDeleteOnUnlinkFailDetailsValue.equals(other.deviceDeleteOnUnlinkFailDetailsValue)); + case DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS: + return (this.deviceDeleteOnUnlinkSuccessDetailsValue == other.deviceDeleteOnUnlinkSuccessDetailsValue) || (this.deviceDeleteOnUnlinkSuccessDetailsValue.equals(other.deviceDeleteOnUnlinkSuccessDetailsValue)); + case DEVICE_LINK_FAIL_DETAILS: + return (this.deviceLinkFailDetailsValue == other.deviceLinkFailDetailsValue) || (this.deviceLinkFailDetailsValue.equals(other.deviceLinkFailDetailsValue)); + case DEVICE_LINK_SUCCESS_DETAILS: + return (this.deviceLinkSuccessDetailsValue == other.deviceLinkSuccessDetailsValue) || (this.deviceLinkSuccessDetailsValue.equals(other.deviceLinkSuccessDetailsValue)); + case DEVICE_MANAGEMENT_DISABLED_DETAILS: + return (this.deviceManagementDisabledDetailsValue == other.deviceManagementDisabledDetailsValue) || (this.deviceManagementDisabledDetailsValue.equals(other.deviceManagementDisabledDetailsValue)); + case DEVICE_MANAGEMENT_ENABLED_DETAILS: + return (this.deviceManagementEnabledDetailsValue == other.deviceManagementEnabledDetailsValue) || (this.deviceManagementEnabledDetailsValue.equals(other.deviceManagementEnabledDetailsValue)); + case DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS: + return (this.deviceSyncBackupStatusChangedDetailsValue == other.deviceSyncBackupStatusChangedDetailsValue) || (this.deviceSyncBackupStatusChangedDetailsValue.equals(other.deviceSyncBackupStatusChangedDetailsValue)); + case DEVICE_UNLINK_DETAILS: + return (this.deviceUnlinkDetailsValue == other.deviceUnlinkDetailsValue) || (this.deviceUnlinkDetailsValue.equals(other.deviceUnlinkDetailsValue)); + case DROPBOX_PASSWORDS_EXPORTED_DETAILS: + return (this.dropboxPasswordsExportedDetailsValue == other.dropboxPasswordsExportedDetailsValue) || (this.dropboxPasswordsExportedDetailsValue.equals(other.dropboxPasswordsExportedDetailsValue)); + case DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS: + return (this.dropboxPasswordsNewDeviceEnrolledDetailsValue == other.dropboxPasswordsNewDeviceEnrolledDetailsValue) || (this.dropboxPasswordsNewDeviceEnrolledDetailsValue.equals(other.dropboxPasswordsNewDeviceEnrolledDetailsValue)); + case EMM_REFRESH_AUTH_TOKEN_DETAILS: + return (this.emmRefreshAuthTokenDetailsValue == other.emmRefreshAuthTokenDetailsValue) || (this.emmRefreshAuthTokenDetailsValue.equals(other.emmRefreshAuthTokenDetailsValue)); + case EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS: + return (this.externalDriveBackupEligibilityStatusCheckedDetailsValue == other.externalDriveBackupEligibilityStatusCheckedDetailsValue) || (this.externalDriveBackupEligibilityStatusCheckedDetailsValue.equals(other.externalDriveBackupEligibilityStatusCheckedDetailsValue)); + case EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS: + return (this.externalDriveBackupStatusChangedDetailsValue == other.externalDriveBackupStatusChangedDetailsValue) || (this.externalDriveBackupStatusChangedDetailsValue.equals(other.externalDriveBackupStatusChangedDetailsValue)); + case ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS: + return (this.accountCaptureChangeAvailabilityDetailsValue == other.accountCaptureChangeAvailabilityDetailsValue) || (this.accountCaptureChangeAvailabilityDetailsValue.equals(other.accountCaptureChangeAvailabilityDetailsValue)); + case ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS: + return (this.accountCaptureMigrateAccountDetailsValue == other.accountCaptureMigrateAccountDetailsValue) || (this.accountCaptureMigrateAccountDetailsValue.equals(other.accountCaptureMigrateAccountDetailsValue)); + case ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS: + return (this.accountCaptureNotificationEmailsSentDetailsValue == other.accountCaptureNotificationEmailsSentDetailsValue) || (this.accountCaptureNotificationEmailsSentDetailsValue.equals(other.accountCaptureNotificationEmailsSentDetailsValue)); + case ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS: + return (this.accountCaptureRelinquishAccountDetailsValue == other.accountCaptureRelinquishAccountDetailsValue) || (this.accountCaptureRelinquishAccountDetailsValue.equals(other.accountCaptureRelinquishAccountDetailsValue)); + case DISABLED_DOMAIN_INVITES_DETAILS: + return (this.disabledDomainInvitesDetailsValue == other.disabledDomainInvitesDetailsValue) || (this.disabledDomainInvitesDetailsValue.equals(other.disabledDomainInvitesDetailsValue)); + case DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS: + return (this.domainInvitesApproveRequestToJoinTeamDetailsValue == other.domainInvitesApproveRequestToJoinTeamDetailsValue) || (this.domainInvitesApproveRequestToJoinTeamDetailsValue.equals(other.domainInvitesApproveRequestToJoinTeamDetailsValue)); + case DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS: + return (this.domainInvitesDeclineRequestToJoinTeamDetailsValue == other.domainInvitesDeclineRequestToJoinTeamDetailsValue) || (this.domainInvitesDeclineRequestToJoinTeamDetailsValue.equals(other.domainInvitesDeclineRequestToJoinTeamDetailsValue)); + case DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS: + return (this.domainInvitesEmailExistingUsersDetailsValue == other.domainInvitesEmailExistingUsersDetailsValue) || (this.domainInvitesEmailExistingUsersDetailsValue.equals(other.domainInvitesEmailExistingUsersDetailsValue)); + case DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS: + return (this.domainInvitesRequestToJoinTeamDetailsValue == other.domainInvitesRequestToJoinTeamDetailsValue) || (this.domainInvitesRequestToJoinTeamDetailsValue.equals(other.domainInvitesRequestToJoinTeamDetailsValue)); + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS: + return (this.domainInvitesSetInviteNewUserPrefToNoDetailsValue == other.domainInvitesSetInviteNewUserPrefToNoDetailsValue) || (this.domainInvitesSetInviteNewUserPrefToNoDetailsValue.equals(other.domainInvitesSetInviteNewUserPrefToNoDetailsValue)); + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS: + return (this.domainInvitesSetInviteNewUserPrefToYesDetailsValue == other.domainInvitesSetInviteNewUserPrefToYesDetailsValue) || (this.domainInvitesSetInviteNewUserPrefToYesDetailsValue.equals(other.domainInvitesSetInviteNewUserPrefToYesDetailsValue)); + case DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS: + return (this.domainVerificationAddDomainFailDetailsValue == other.domainVerificationAddDomainFailDetailsValue) || (this.domainVerificationAddDomainFailDetailsValue.equals(other.domainVerificationAddDomainFailDetailsValue)); + case DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS: + return (this.domainVerificationAddDomainSuccessDetailsValue == other.domainVerificationAddDomainSuccessDetailsValue) || (this.domainVerificationAddDomainSuccessDetailsValue.equals(other.domainVerificationAddDomainSuccessDetailsValue)); + case DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS: + return (this.domainVerificationRemoveDomainDetailsValue == other.domainVerificationRemoveDomainDetailsValue) || (this.domainVerificationRemoveDomainDetailsValue.equals(other.domainVerificationRemoveDomainDetailsValue)); + case ENABLED_DOMAIN_INVITES_DETAILS: + return (this.enabledDomainInvitesDetailsValue == other.enabledDomainInvitesDetailsValue) || (this.enabledDomainInvitesDetailsValue.equals(other.enabledDomainInvitesDetailsValue)); + case TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS: + return (this.teamEncryptionKeyCancelKeyDeletionDetailsValue == other.teamEncryptionKeyCancelKeyDeletionDetailsValue) || (this.teamEncryptionKeyCancelKeyDeletionDetailsValue.equals(other.teamEncryptionKeyCancelKeyDeletionDetailsValue)); + case TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS: + return (this.teamEncryptionKeyCreateKeyDetailsValue == other.teamEncryptionKeyCreateKeyDetailsValue) || (this.teamEncryptionKeyCreateKeyDetailsValue.equals(other.teamEncryptionKeyCreateKeyDetailsValue)); + case TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS: + return (this.teamEncryptionKeyDeleteKeyDetailsValue == other.teamEncryptionKeyDeleteKeyDetailsValue) || (this.teamEncryptionKeyDeleteKeyDetailsValue.equals(other.teamEncryptionKeyDeleteKeyDetailsValue)); + case TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS: + return (this.teamEncryptionKeyDisableKeyDetailsValue == other.teamEncryptionKeyDisableKeyDetailsValue) || (this.teamEncryptionKeyDisableKeyDetailsValue.equals(other.teamEncryptionKeyDisableKeyDetailsValue)); + case TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS: + return (this.teamEncryptionKeyEnableKeyDetailsValue == other.teamEncryptionKeyEnableKeyDetailsValue) || (this.teamEncryptionKeyEnableKeyDetailsValue.equals(other.teamEncryptionKeyEnableKeyDetailsValue)); + case TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS: + return (this.teamEncryptionKeyRotateKeyDetailsValue == other.teamEncryptionKeyRotateKeyDetailsValue) || (this.teamEncryptionKeyRotateKeyDetailsValue.equals(other.teamEncryptionKeyRotateKeyDetailsValue)); + case TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS: + return (this.teamEncryptionKeyScheduleKeyDeletionDetailsValue == other.teamEncryptionKeyScheduleKeyDeletionDetailsValue) || (this.teamEncryptionKeyScheduleKeyDeletionDetailsValue.equals(other.teamEncryptionKeyScheduleKeyDeletionDetailsValue)); + case APPLY_NAMING_CONVENTION_DETAILS: + return (this.applyNamingConventionDetailsValue == other.applyNamingConventionDetailsValue) || (this.applyNamingConventionDetailsValue.equals(other.applyNamingConventionDetailsValue)); + case CREATE_FOLDER_DETAILS: + return (this.createFolderDetailsValue == other.createFolderDetailsValue) || (this.createFolderDetailsValue.equals(other.createFolderDetailsValue)); + case FILE_ADD_DETAILS: + return (this.fileAddDetailsValue == other.fileAddDetailsValue) || (this.fileAddDetailsValue.equals(other.fileAddDetailsValue)); + case FILE_ADD_FROM_AUTOMATION_DETAILS: + return (this.fileAddFromAutomationDetailsValue == other.fileAddFromAutomationDetailsValue) || (this.fileAddFromAutomationDetailsValue.equals(other.fileAddFromAutomationDetailsValue)); + case FILE_COPY_DETAILS: + return (this.fileCopyDetailsValue == other.fileCopyDetailsValue) || (this.fileCopyDetailsValue.equals(other.fileCopyDetailsValue)); + case FILE_DELETE_DETAILS: + return (this.fileDeleteDetailsValue == other.fileDeleteDetailsValue) || (this.fileDeleteDetailsValue.equals(other.fileDeleteDetailsValue)); + case FILE_DOWNLOAD_DETAILS: + return (this.fileDownloadDetailsValue == other.fileDownloadDetailsValue) || (this.fileDownloadDetailsValue.equals(other.fileDownloadDetailsValue)); + case FILE_EDIT_DETAILS: + return (this.fileEditDetailsValue == other.fileEditDetailsValue) || (this.fileEditDetailsValue.equals(other.fileEditDetailsValue)); + case FILE_GET_COPY_REFERENCE_DETAILS: + return (this.fileGetCopyReferenceDetailsValue == other.fileGetCopyReferenceDetailsValue) || (this.fileGetCopyReferenceDetailsValue.equals(other.fileGetCopyReferenceDetailsValue)); + case FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS: + return (this.fileLockingLockStatusChangedDetailsValue == other.fileLockingLockStatusChangedDetailsValue) || (this.fileLockingLockStatusChangedDetailsValue.equals(other.fileLockingLockStatusChangedDetailsValue)); + case FILE_MOVE_DETAILS: + return (this.fileMoveDetailsValue == other.fileMoveDetailsValue) || (this.fileMoveDetailsValue.equals(other.fileMoveDetailsValue)); + case FILE_PERMANENTLY_DELETE_DETAILS: + return (this.filePermanentlyDeleteDetailsValue == other.filePermanentlyDeleteDetailsValue) || (this.filePermanentlyDeleteDetailsValue.equals(other.filePermanentlyDeleteDetailsValue)); + case FILE_PREVIEW_DETAILS: + return (this.filePreviewDetailsValue == other.filePreviewDetailsValue) || (this.filePreviewDetailsValue.equals(other.filePreviewDetailsValue)); + case FILE_RENAME_DETAILS: + return (this.fileRenameDetailsValue == other.fileRenameDetailsValue) || (this.fileRenameDetailsValue.equals(other.fileRenameDetailsValue)); + case FILE_RESTORE_DETAILS: + return (this.fileRestoreDetailsValue == other.fileRestoreDetailsValue) || (this.fileRestoreDetailsValue.equals(other.fileRestoreDetailsValue)); + case FILE_REVERT_DETAILS: + return (this.fileRevertDetailsValue == other.fileRevertDetailsValue) || (this.fileRevertDetailsValue.equals(other.fileRevertDetailsValue)); + case FILE_ROLLBACK_CHANGES_DETAILS: + return (this.fileRollbackChangesDetailsValue == other.fileRollbackChangesDetailsValue) || (this.fileRollbackChangesDetailsValue.equals(other.fileRollbackChangesDetailsValue)); + case FILE_SAVE_COPY_REFERENCE_DETAILS: + return (this.fileSaveCopyReferenceDetailsValue == other.fileSaveCopyReferenceDetailsValue) || (this.fileSaveCopyReferenceDetailsValue.equals(other.fileSaveCopyReferenceDetailsValue)); + case FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS: + return (this.folderOverviewDescriptionChangedDetailsValue == other.folderOverviewDescriptionChangedDetailsValue) || (this.folderOverviewDescriptionChangedDetailsValue.equals(other.folderOverviewDescriptionChangedDetailsValue)); + case FOLDER_OVERVIEW_ITEM_PINNED_DETAILS: + return (this.folderOverviewItemPinnedDetailsValue == other.folderOverviewItemPinnedDetailsValue) || (this.folderOverviewItemPinnedDetailsValue.equals(other.folderOverviewItemPinnedDetailsValue)); + case FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS: + return (this.folderOverviewItemUnpinnedDetailsValue == other.folderOverviewItemUnpinnedDetailsValue) || (this.folderOverviewItemUnpinnedDetailsValue.equals(other.folderOverviewItemUnpinnedDetailsValue)); + case OBJECT_LABEL_ADDED_DETAILS: + return (this.objectLabelAddedDetailsValue == other.objectLabelAddedDetailsValue) || (this.objectLabelAddedDetailsValue.equals(other.objectLabelAddedDetailsValue)); + case OBJECT_LABEL_REMOVED_DETAILS: + return (this.objectLabelRemovedDetailsValue == other.objectLabelRemovedDetailsValue) || (this.objectLabelRemovedDetailsValue.equals(other.objectLabelRemovedDetailsValue)); + case OBJECT_LABEL_UPDATED_VALUE_DETAILS: + return (this.objectLabelUpdatedValueDetailsValue == other.objectLabelUpdatedValueDetailsValue) || (this.objectLabelUpdatedValueDetailsValue.equals(other.objectLabelUpdatedValueDetailsValue)); + case ORGANIZE_FOLDER_WITH_TIDY_DETAILS: + return (this.organizeFolderWithTidyDetailsValue == other.organizeFolderWithTidyDetailsValue) || (this.organizeFolderWithTidyDetailsValue.equals(other.organizeFolderWithTidyDetailsValue)); + case REPLAY_FILE_DELETE_DETAILS: + return (this.replayFileDeleteDetailsValue == other.replayFileDeleteDetailsValue) || (this.replayFileDeleteDetailsValue.equals(other.replayFileDeleteDetailsValue)); + case REWIND_FOLDER_DETAILS: + return (this.rewindFolderDetailsValue == other.rewindFolderDetailsValue) || (this.rewindFolderDetailsValue.equals(other.rewindFolderDetailsValue)); + case UNDO_NAMING_CONVENTION_DETAILS: + return (this.undoNamingConventionDetailsValue == other.undoNamingConventionDetailsValue) || (this.undoNamingConventionDetailsValue.equals(other.undoNamingConventionDetailsValue)); + case UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS: + return (this.undoOrganizeFolderWithTidyDetailsValue == other.undoOrganizeFolderWithTidyDetailsValue) || (this.undoOrganizeFolderWithTidyDetailsValue.equals(other.undoOrganizeFolderWithTidyDetailsValue)); + case USER_TAGS_ADDED_DETAILS: + return (this.userTagsAddedDetailsValue == other.userTagsAddedDetailsValue) || (this.userTagsAddedDetailsValue.equals(other.userTagsAddedDetailsValue)); + case USER_TAGS_REMOVED_DETAILS: + return (this.userTagsRemovedDetailsValue == other.userTagsRemovedDetailsValue) || (this.userTagsRemovedDetailsValue.equals(other.userTagsRemovedDetailsValue)); + case EMAIL_INGEST_RECEIVE_FILE_DETAILS: + return (this.emailIngestReceiveFileDetailsValue == other.emailIngestReceiveFileDetailsValue) || (this.emailIngestReceiveFileDetailsValue.equals(other.emailIngestReceiveFileDetailsValue)); + case FILE_REQUEST_CHANGE_DETAILS: + return (this.fileRequestChangeDetailsValue == other.fileRequestChangeDetailsValue) || (this.fileRequestChangeDetailsValue.equals(other.fileRequestChangeDetailsValue)); + case FILE_REQUEST_CLOSE_DETAILS: + return (this.fileRequestCloseDetailsValue == other.fileRequestCloseDetailsValue) || (this.fileRequestCloseDetailsValue.equals(other.fileRequestCloseDetailsValue)); + case FILE_REQUEST_CREATE_DETAILS: + return (this.fileRequestCreateDetailsValue == other.fileRequestCreateDetailsValue) || (this.fileRequestCreateDetailsValue.equals(other.fileRequestCreateDetailsValue)); + case FILE_REQUEST_DELETE_DETAILS: + return (this.fileRequestDeleteDetailsValue == other.fileRequestDeleteDetailsValue) || (this.fileRequestDeleteDetailsValue.equals(other.fileRequestDeleteDetailsValue)); + case FILE_REQUEST_RECEIVE_FILE_DETAILS: + return (this.fileRequestReceiveFileDetailsValue == other.fileRequestReceiveFileDetailsValue) || (this.fileRequestReceiveFileDetailsValue.equals(other.fileRequestReceiveFileDetailsValue)); + case GROUP_ADD_EXTERNAL_ID_DETAILS: + return (this.groupAddExternalIdDetailsValue == other.groupAddExternalIdDetailsValue) || (this.groupAddExternalIdDetailsValue.equals(other.groupAddExternalIdDetailsValue)); + case GROUP_ADD_MEMBER_DETAILS: + return (this.groupAddMemberDetailsValue == other.groupAddMemberDetailsValue) || (this.groupAddMemberDetailsValue.equals(other.groupAddMemberDetailsValue)); + case GROUP_CHANGE_EXTERNAL_ID_DETAILS: + return (this.groupChangeExternalIdDetailsValue == other.groupChangeExternalIdDetailsValue) || (this.groupChangeExternalIdDetailsValue.equals(other.groupChangeExternalIdDetailsValue)); + case GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS: + return (this.groupChangeManagementTypeDetailsValue == other.groupChangeManagementTypeDetailsValue) || (this.groupChangeManagementTypeDetailsValue.equals(other.groupChangeManagementTypeDetailsValue)); + case GROUP_CHANGE_MEMBER_ROLE_DETAILS: + return (this.groupChangeMemberRoleDetailsValue == other.groupChangeMemberRoleDetailsValue) || (this.groupChangeMemberRoleDetailsValue.equals(other.groupChangeMemberRoleDetailsValue)); + case GROUP_CREATE_DETAILS: + return (this.groupCreateDetailsValue == other.groupCreateDetailsValue) || (this.groupCreateDetailsValue.equals(other.groupCreateDetailsValue)); + case GROUP_DELETE_DETAILS: + return (this.groupDeleteDetailsValue == other.groupDeleteDetailsValue) || (this.groupDeleteDetailsValue.equals(other.groupDeleteDetailsValue)); + case GROUP_DESCRIPTION_UPDATED_DETAILS: + return (this.groupDescriptionUpdatedDetailsValue == other.groupDescriptionUpdatedDetailsValue) || (this.groupDescriptionUpdatedDetailsValue.equals(other.groupDescriptionUpdatedDetailsValue)); + case GROUP_JOIN_POLICY_UPDATED_DETAILS: + return (this.groupJoinPolicyUpdatedDetailsValue == other.groupJoinPolicyUpdatedDetailsValue) || (this.groupJoinPolicyUpdatedDetailsValue.equals(other.groupJoinPolicyUpdatedDetailsValue)); + case GROUP_MOVED_DETAILS: + return (this.groupMovedDetailsValue == other.groupMovedDetailsValue) || (this.groupMovedDetailsValue.equals(other.groupMovedDetailsValue)); + case GROUP_REMOVE_EXTERNAL_ID_DETAILS: + return (this.groupRemoveExternalIdDetailsValue == other.groupRemoveExternalIdDetailsValue) || (this.groupRemoveExternalIdDetailsValue.equals(other.groupRemoveExternalIdDetailsValue)); + case GROUP_REMOVE_MEMBER_DETAILS: + return (this.groupRemoveMemberDetailsValue == other.groupRemoveMemberDetailsValue) || (this.groupRemoveMemberDetailsValue.equals(other.groupRemoveMemberDetailsValue)); + case GROUP_RENAME_DETAILS: + return (this.groupRenameDetailsValue == other.groupRenameDetailsValue) || (this.groupRenameDetailsValue.equals(other.groupRenameDetailsValue)); + case ACCOUNT_LOCK_OR_UNLOCKED_DETAILS: + return (this.accountLockOrUnlockedDetailsValue == other.accountLockOrUnlockedDetailsValue) || (this.accountLockOrUnlockedDetailsValue.equals(other.accountLockOrUnlockedDetailsValue)); + case EMM_ERROR_DETAILS: + return (this.emmErrorDetailsValue == other.emmErrorDetailsValue) || (this.emmErrorDetailsValue.equals(other.emmErrorDetailsValue)); + case GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS: + return (this.guestAdminSignedInViaTrustedTeamsDetailsValue == other.guestAdminSignedInViaTrustedTeamsDetailsValue) || (this.guestAdminSignedInViaTrustedTeamsDetailsValue.equals(other.guestAdminSignedInViaTrustedTeamsDetailsValue)); + case GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS: + return (this.guestAdminSignedOutViaTrustedTeamsDetailsValue == other.guestAdminSignedOutViaTrustedTeamsDetailsValue) || (this.guestAdminSignedOutViaTrustedTeamsDetailsValue.equals(other.guestAdminSignedOutViaTrustedTeamsDetailsValue)); + case LOGIN_FAIL_DETAILS: + return (this.loginFailDetailsValue == other.loginFailDetailsValue) || (this.loginFailDetailsValue.equals(other.loginFailDetailsValue)); + case LOGIN_SUCCESS_DETAILS: + return (this.loginSuccessDetailsValue == other.loginSuccessDetailsValue) || (this.loginSuccessDetailsValue.equals(other.loginSuccessDetailsValue)); + case LOGOUT_DETAILS: + return (this.logoutDetailsValue == other.logoutDetailsValue) || (this.logoutDetailsValue.equals(other.logoutDetailsValue)); + case RESELLER_SUPPORT_SESSION_END_DETAILS: + return (this.resellerSupportSessionEndDetailsValue == other.resellerSupportSessionEndDetailsValue) || (this.resellerSupportSessionEndDetailsValue.equals(other.resellerSupportSessionEndDetailsValue)); + case RESELLER_SUPPORT_SESSION_START_DETAILS: + return (this.resellerSupportSessionStartDetailsValue == other.resellerSupportSessionStartDetailsValue) || (this.resellerSupportSessionStartDetailsValue.equals(other.resellerSupportSessionStartDetailsValue)); + case SIGN_IN_AS_SESSION_END_DETAILS: + return (this.signInAsSessionEndDetailsValue == other.signInAsSessionEndDetailsValue) || (this.signInAsSessionEndDetailsValue.equals(other.signInAsSessionEndDetailsValue)); + case SIGN_IN_AS_SESSION_START_DETAILS: + return (this.signInAsSessionStartDetailsValue == other.signInAsSessionStartDetailsValue) || (this.signInAsSessionStartDetailsValue.equals(other.signInAsSessionStartDetailsValue)); + case SSO_ERROR_DETAILS: + return (this.ssoErrorDetailsValue == other.ssoErrorDetailsValue) || (this.ssoErrorDetailsValue.equals(other.ssoErrorDetailsValue)); + case BACKUP_ADMIN_INVITATION_SENT_DETAILS: + return (this.backupAdminInvitationSentDetailsValue == other.backupAdminInvitationSentDetailsValue) || (this.backupAdminInvitationSentDetailsValue.equals(other.backupAdminInvitationSentDetailsValue)); + case BACKUP_INVITATION_OPENED_DETAILS: + return (this.backupInvitationOpenedDetailsValue == other.backupInvitationOpenedDetailsValue) || (this.backupInvitationOpenedDetailsValue.equals(other.backupInvitationOpenedDetailsValue)); + case CREATE_TEAM_INVITE_LINK_DETAILS: + return (this.createTeamInviteLinkDetailsValue == other.createTeamInviteLinkDetailsValue) || (this.createTeamInviteLinkDetailsValue.equals(other.createTeamInviteLinkDetailsValue)); + case DELETE_TEAM_INVITE_LINK_DETAILS: + return (this.deleteTeamInviteLinkDetailsValue == other.deleteTeamInviteLinkDetailsValue) || (this.deleteTeamInviteLinkDetailsValue.equals(other.deleteTeamInviteLinkDetailsValue)); + case MEMBER_ADD_EXTERNAL_ID_DETAILS: + return (this.memberAddExternalIdDetailsValue == other.memberAddExternalIdDetailsValue) || (this.memberAddExternalIdDetailsValue.equals(other.memberAddExternalIdDetailsValue)); + case MEMBER_ADD_NAME_DETAILS: + return (this.memberAddNameDetailsValue == other.memberAddNameDetailsValue) || (this.memberAddNameDetailsValue.equals(other.memberAddNameDetailsValue)); + case MEMBER_CHANGE_ADMIN_ROLE_DETAILS: + return (this.memberChangeAdminRoleDetailsValue == other.memberChangeAdminRoleDetailsValue) || (this.memberChangeAdminRoleDetailsValue.equals(other.memberChangeAdminRoleDetailsValue)); + case MEMBER_CHANGE_EMAIL_DETAILS: + return (this.memberChangeEmailDetailsValue == other.memberChangeEmailDetailsValue) || (this.memberChangeEmailDetailsValue.equals(other.memberChangeEmailDetailsValue)); + case MEMBER_CHANGE_EXTERNAL_ID_DETAILS: + return (this.memberChangeExternalIdDetailsValue == other.memberChangeExternalIdDetailsValue) || (this.memberChangeExternalIdDetailsValue.equals(other.memberChangeExternalIdDetailsValue)); + case MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS: + return (this.memberChangeMembershipTypeDetailsValue == other.memberChangeMembershipTypeDetailsValue) || (this.memberChangeMembershipTypeDetailsValue.equals(other.memberChangeMembershipTypeDetailsValue)); + case MEMBER_CHANGE_NAME_DETAILS: + return (this.memberChangeNameDetailsValue == other.memberChangeNameDetailsValue) || (this.memberChangeNameDetailsValue.equals(other.memberChangeNameDetailsValue)); + case MEMBER_CHANGE_RESELLER_ROLE_DETAILS: + return (this.memberChangeResellerRoleDetailsValue == other.memberChangeResellerRoleDetailsValue) || (this.memberChangeResellerRoleDetailsValue.equals(other.memberChangeResellerRoleDetailsValue)); + case MEMBER_CHANGE_STATUS_DETAILS: + return (this.memberChangeStatusDetailsValue == other.memberChangeStatusDetailsValue) || (this.memberChangeStatusDetailsValue.equals(other.memberChangeStatusDetailsValue)); + case MEMBER_DELETE_MANUAL_CONTACTS_DETAILS: + return (this.memberDeleteManualContactsDetailsValue == other.memberDeleteManualContactsDetailsValue) || (this.memberDeleteManualContactsDetailsValue.equals(other.memberDeleteManualContactsDetailsValue)); + case MEMBER_DELETE_PROFILE_PHOTO_DETAILS: + return (this.memberDeleteProfilePhotoDetailsValue == other.memberDeleteProfilePhotoDetailsValue) || (this.memberDeleteProfilePhotoDetailsValue.equals(other.memberDeleteProfilePhotoDetailsValue)); + case MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS: + return (this.memberPermanentlyDeleteAccountContentsDetailsValue == other.memberPermanentlyDeleteAccountContentsDetailsValue) || (this.memberPermanentlyDeleteAccountContentsDetailsValue.equals(other.memberPermanentlyDeleteAccountContentsDetailsValue)); + case MEMBER_REMOVE_EXTERNAL_ID_DETAILS: + return (this.memberRemoveExternalIdDetailsValue == other.memberRemoveExternalIdDetailsValue) || (this.memberRemoveExternalIdDetailsValue.equals(other.memberRemoveExternalIdDetailsValue)); + case MEMBER_SET_PROFILE_PHOTO_DETAILS: + return (this.memberSetProfilePhotoDetailsValue == other.memberSetProfilePhotoDetailsValue) || (this.memberSetProfilePhotoDetailsValue.equals(other.memberSetProfilePhotoDetailsValue)); + case MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS: + return (this.memberSpaceLimitsAddCustomQuotaDetailsValue == other.memberSpaceLimitsAddCustomQuotaDetailsValue) || (this.memberSpaceLimitsAddCustomQuotaDetailsValue.equals(other.memberSpaceLimitsAddCustomQuotaDetailsValue)); + case MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS: + return (this.memberSpaceLimitsChangeCustomQuotaDetailsValue == other.memberSpaceLimitsChangeCustomQuotaDetailsValue) || (this.memberSpaceLimitsChangeCustomQuotaDetailsValue.equals(other.memberSpaceLimitsChangeCustomQuotaDetailsValue)); + case MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS: + return (this.memberSpaceLimitsChangeStatusDetailsValue == other.memberSpaceLimitsChangeStatusDetailsValue) || (this.memberSpaceLimitsChangeStatusDetailsValue.equals(other.memberSpaceLimitsChangeStatusDetailsValue)); + case MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS: + return (this.memberSpaceLimitsRemoveCustomQuotaDetailsValue == other.memberSpaceLimitsRemoveCustomQuotaDetailsValue) || (this.memberSpaceLimitsRemoveCustomQuotaDetailsValue.equals(other.memberSpaceLimitsRemoveCustomQuotaDetailsValue)); + case MEMBER_SUGGEST_DETAILS: + return (this.memberSuggestDetailsValue == other.memberSuggestDetailsValue) || (this.memberSuggestDetailsValue.equals(other.memberSuggestDetailsValue)); + case MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS: + return (this.memberTransferAccountContentsDetailsValue == other.memberTransferAccountContentsDetailsValue) || (this.memberTransferAccountContentsDetailsValue.equals(other.memberTransferAccountContentsDetailsValue)); + case PENDING_SECONDARY_EMAIL_ADDED_DETAILS: + return (this.pendingSecondaryEmailAddedDetailsValue == other.pendingSecondaryEmailAddedDetailsValue) || (this.pendingSecondaryEmailAddedDetailsValue.equals(other.pendingSecondaryEmailAddedDetailsValue)); + case SECONDARY_EMAIL_DELETED_DETAILS: + return (this.secondaryEmailDeletedDetailsValue == other.secondaryEmailDeletedDetailsValue) || (this.secondaryEmailDeletedDetailsValue.equals(other.secondaryEmailDeletedDetailsValue)); + case SECONDARY_EMAIL_VERIFIED_DETAILS: + return (this.secondaryEmailVerifiedDetailsValue == other.secondaryEmailVerifiedDetailsValue) || (this.secondaryEmailVerifiedDetailsValue.equals(other.secondaryEmailVerifiedDetailsValue)); + case SECONDARY_MAILS_POLICY_CHANGED_DETAILS: + return (this.secondaryMailsPolicyChangedDetailsValue == other.secondaryMailsPolicyChangedDetailsValue) || (this.secondaryMailsPolicyChangedDetailsValue.equals(other.secondaryMailsPolicyChangedDetailsValue)); + case BINDER_ADD_PAGE_DETAILS: + return (this.binderAddPageDetailsValue == other.binderAddPageDetailsValue) || (this.binderAddPageDetailsValue.equals(other.binderAddPageDetailsValue)); + case BINDER_ADD_SECTION_DETAILS: + return (this.binderAddSectionDetailsValue == other.binderAddSectionDetailsValue) || (this.binderAddSectionDetailsValue.equals(other.binderAddSectionDetailsValue)); + case BINDER_REMOVE_PAGE_DETAILS: + return (this.binderRemovePageDetailsValue == other.binderRemovePageDetailsValue) || (this.binderRemovePageDetailsValue.equals(other.binderRemovePageDetailsValue)); + case BINDER_REMOVE_SECTION_DETAILS: + return (this.binderRemoveSectionDetailsValue == other.binderRemoveSectionDetailsValue) || (this.binderRemoveSectionDetailsValue.equals(other.binderRemoveSectionDetailsValue)); + case BINDER_RENAME_PAGE_DETAILS: + return (this.binderRenamePageDetailsValue == other.binderRenamePageDetailsValue) || (this.binderRenamePageDetailsValue.equals(other.binderRenamePageDetailsValue)); + case BINDER_RENAME_SECTION_DETAILS: + return (this.binderRenameSectionDetailsValue == other.binderRenameSectionDetailsValue) || (this.binderRenameSectionDetailsValue.equals(other.binderRenameSectionDetailsValue)); + case BINDER_REORDER_PAGE_DETAILS: + return (this.binderReorderPageDetailsValue == other.binderReorderPageDetailsValue) || (this.binderReorderPageDetailsValue.equals(other.binderReorderPageDetailsValue)); + case BINDER_REORDER_SECTION_DETAILS: + return (this.binderReorderSectionDetailsValue == other.binderReorderSectionDetailsValue) || (this.binderReorderSectionDetailsValue.equals(other.binderReorderSectionDetailsValue)); + case PAPER_CONTENT_ADD_MEMBER_DETAILS: + return (this.paperContentAddMemberDetailsValue == other.paperContentAddMemberDetailsValue) || (this.paperContentAddMemberDetailsValue.equals(other.paperContentAddMemberDetailsValue)); + case PAPER_CONTENT_ADD_TO_FOLDER_DETAILS: + return (this.paperContentAddToFolderDetailsValue == other.paperContentAddToFolderDetailsValue) || (this.paperContentAddToFolderDetailsValue.equals(other.paperContentAddToFolderDetailsValue)); + case PAPER_CONTENT_ARCHIVE_DETAILS: + return (this.paperContentArchiveDetailsValue == other.paperContentArchiveDetailsValue) || (this.paperContentArchiveDetailsValue.equals(other.paperContentArchiveDetailsValue)); + case PAPER_CONTENT_CREATE_DETAILS: + return (this.paperContentCreateDetailsValue == other.paperContentCreateDetailsValue) || (this.paperContentCreateDetailsValue.equals(other.paperContentCreateDetailsValue)); + case PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS: + return (this.paperContentPermanentlyDeleteDetailsValue == other.paperContentPermanentlyDeleteDetailsValue) || (this.paperContentPermanentlyDeleteDetailsValue.equals(other.paperContentPermanentlyDeleteDetailsValue)); + case PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS: + return (this.paperContentRemoveFromFolderDetailsValue == other.paperContentRemoveFromFolderDetailsValue) || (this.paperContentRemoveFromFolderDetailsValue.equals(other.paperContentRemoveFromFolderDetailsValue)); + case PAPER_CONTENT_REMOVE_MEMBER_DETAILS: + return (this.paperContentRemoveMemberDetailsValue == other.paperContentRemoveMemberDetailsValue) || (this.paperContentRemoveMemberDetailsValue.equals(other.paperContentRemoveMemberDetailsValue)); + case PAPER_CONTENT_RENAME_DETAILS: + return (this.paperContentRenameDetailsValue == other.paperContentRenameDetailsValue) || (this.paperContentRenameDetailsValue.equals(other.paperContentRenameDetailsValue)); + case PAPER_CONTENT_RESTORE_DETAILS: + return (this.paperContentRestoreDetailsValue == other.paperContentRestoreDetailsValue) || (this.paperContentRestoreDetailsValue.equals(other.paperContentRestoreDetailsValue)); + case PAPER_DOC_ADD_COMMENT_DETAILS: + return (this.paperDocAddCommentDetailsValue == other.paperDocAddCommentDetailsValue) || (this.paperDocAddCommentDetailsValue.equals(other.paperDocAddCommentDetailsValue)); + case PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS: + return (this.paperDocChangeMemberRoleDetailsValue == other.paperDocChangeMemberRoleDetailsValue) || (this.paperDocChangeMemberRoleDetailsValue.equals(other.paperDocChangeMemberRoleDetailsValue)); + case PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS: + return (this.paperDocChangeSharingPolicyDetailsValue == other.paperDocChangeSharingPolicyDetailsValue) || (this.paperDocChangeSharingPolicyDetailsValue.equals(other.paperDocChangeSharingPolicyDetailsValue)); + case PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS: + return (this.paperDocChangeSubscriptionDetailsValue == other.paperDocChangeSubscriptionDetailsValue) || (this.paperDocChangeSubscriptionDetailsValue.equals(other.paperDocChangeSubscriptionDetailsValue)); + case PAPER_DOC_DELETED_DETAILS: + return (this.paperDocDeletedDetailsValue == other.paperDocDeletedDetailsValue) || (this.paperDocDeletedDetailsValue.equals(other.paperDocDeletedDetailsValue)); + case PAPER_DOC_DELETE_COMMENT_DETAILS: + return (this.paperDocDeleteCommentDetailsValue == other.paperDocDeleteCommentDetailsValue) || (this.paperDocDeleteCommentDetailsValue.equals(other.paperDocDeleteCommentDetailsValue)); + case PAPER_DOC_DOWNLOAD_DETAILS: + return (this.paperDocDownloadDetailsValue == other.paperDocDownloadDetailsValue) || (this.paperDocDownloadDetailsValue.equals(other.paperDocDownloadDetailsValue)); + case PAPER_DOC_EDIT_DETAILS: + return (this.paperDocEditDetailsValue == other.paperDocEditDetailsValue) || (this.paperDocEditDetailsValue.equals(other.paperDocEditDetailsValue)); + case PAPER_DOC_EDIT_COMMENT_DETAILS: + return (this.paperDocEditCommentDetailsValue == other.paperDocEditCommentDetailsValue) || (this.paperDocEditCommentDetailsValue.equals(other.paperDocEditCommentDetailsValue)); + case PAPER_DOC_FOLLOWED_DETAILS: + return (this.paperDocFollowedDetailsValue == other.paperDocFollowedDetailsValue) || (this.paperDocFollowedDetailsValue.equals(other.paperDocFollowedDetailsValue)); + case PAPER_DOC_MENTION_DETAILS: + return (this.paperDocMentionDetailsValue == other.paperDocMentionDetailsValue) || (this.paperDocMentionDetailsValue.equals(other.paperDocMentionDetailsValue)); + case PAPER_DOC_OWNERSHIP_CHANGED_DETAILS: + return (this.paperDocOwnershipChangedDetailsValue == other.paperDocOwnershipChangedDetailsValue) || (this.paperDocOwnershipChangedDetailsValue.equals(other.paperDocOwnershipChangedDetailsValue)); + case PAPER_DOC_REQUEST_ACCESS_DETAILS: + return (this.paperDocRequestAccessDetailsValue == other.paperDocRequestAccessDetailsValue) || (this.paperDocRequestAccessDetailsValue.equals(other.paperDocRequestAccessDetailsValue)); + case PAPER_DOC_RESOLVE_COMMENT_DETAILS: + return (this.paperDocResolveCommentDetailsValue == other.paperDocResolveCommentDetailsValue) || (this.paperDocResolveCommentDetailsValue.equals(other.paperDocResolveCommentDetailsValue)); + case PAPER_DOC_REVERT_DETAILS: + return (this.paperDocRevertDetailsValue == other.paperDocRevertDetailsValue) || (this.paperDocRevertDetailsValue.equals(other.paperDocRevertDetailsValue)); + case PAPER_DOC_SLACK_SHARE_DETAILS: + return (this.paperDocSlackShareDetailsValue == other.paperDocSlackShareDetailsValue) || (this.paperDocSlackShareDetailsValue.equals(other.paperDocSlackShareDetailsValue)); + case PAPER_DOC_TEAM_INVITE_DETAILS: + return (this.paperDocTeamInviteDetailsValue == other.paperDocTeamInviteDetailsValue) || (this.paperDocTeamInviteDetailsValue.equals(other.paperDocTeamInviteDetailsValue)); + case PAPER_DOC_TRASHED_DETAILS: + return (this.paperDocTrashedDetailsValue == other.paperDocTrashedDetailsValue) || (this.paperDocTrashedDetailsValue.equals(other.paperDocTrashedDetailsValue)); + case PAPER_DOC_UNRESOLVE_COMMENT_DETAILS: + return (this.paperDocUnresolveCommentDetailsValue == other.paperDocUnresolveCommentDetailsValue) || (this.paperDocUnresolveCommentDetailsValue.equals(other.paperDocUnresolveCommentDetailsValue)); + case PAPER_DOC_UNTRASHED_DETAILS: + return (this.paperDocUntrashedDetailsValue == other.paperDocUntrashedDetailsValue) || (this.paperDocUntrashedDetailsValue.equals(other.paperDocUntrashedDetailsValue)); + case PAPER_DOC_VIEW_DETAILS: + return (this.paperDocViewDetailsValue == other.paperDocViewDetailsValue) || (this.paperDocViewDetailsValue.equals(other.paperDocViewDetailsValue)); + case PAPER_EXTERNAL_VIEW_ALLOW_DETAILS: + return (this.paperExternalViewAllowDetailsValue == other.paperExternalViewAllowDetailsValue) || (this.paperExternalViewAllowDetailsValue.equals(other.paperExternalViewAllowDetailsValue)); + case PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS: + return (this.paperExternalViewDefaultTeamDetailsValue == other.paperExternalViewDefaultTeamDetailsValue) || (this.paperExternalViewDefaultTeamDetailsValue.equals(other.paperExternalViewDefaultTeamDetailsValue)); + case PAPER_EXTERNAL_VIEW_FORBID_DETAILS: + return (this.paperExternalViewForbidDetailsValue == other.paperExternalViewForbidDetailsValue) || (this.paperExternalViewForbidDetailsValue.equals(other.paperExternalViewForbidDetailsValue)); + case PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS: + return (this.paperFolderChangeSubscriptionDetailsValue == other.paperFolderChangeSubscriptionDetailsValue) || (this.paperFolderChangeSubscriptionDetailsValue.equals(other.paperFolderChangeSubscriptionDetailsValue)); + case PAPER_FOLDER_DELETED_DETAILS: + return (this.paperFolderDeletedDetailsValue == other.paperFolderDeletedDetailsValue) || (this.paperFolderDeletedDetailsValue.equals(other.paperFolderDeletedDetailsValue)); + case PAPER_FOLDER_FOLLOWED_DETAILS: + return (this.paperFolderFollowedDetailsValue == other.paperFolderFollowedDetailsValue) || (this.paperFolderFollowedDetailsValue.equals(other.paperFolderFollowedDetailsValue)); + case PAPER_FOLDER_TEAM_INVITE_DETAILS: + return (this.paperFolderTeamInviteDetailsValue == other.paperFolderTeamInviteDetailsValue) || (this.paperFolderTeamInviteDetailsValue.equals(other.paperFolderTeamInviteDetailsValue)); + case PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS: + return (this.paperPublishedLinkChangePermissionDetailsValue == other.paperPublishedLinkChangePermissionDetailsValue) || (this.paperPublishedLinkChangePermissionDetailsValue.equals(other.paperPublishedLinkChangePermissionDetailsValue)); + case PAPER_PUBLISHED_LINK_CREATE_DETAILS: + return (this.paperPublishedLinkCreateDetailsValue == other.paperPublishedLinkCreateDetailsValue) || (this.paperPublishedLinkCreateDetailsValue.equals(other.paperPublishedLinkCreateDetailsValue)); + case PAPER_PUBLISHED_LINK_DISABLED_DETAILS: + return (this.paperPublishedLinkDisabledDetailsValue == other.paperPublishedLinkDisabledDetailsValue) || (this.paperPublishedLinkDisabledDetailsValue.equals(other.paperPublishedLinkDisabledDetailsValue)); + case PAPER_PUBLISHED_LINK_VIEW_DETAILS: + return (this.paperPublishedLinkViewDetailsValue == other.paperPublishedLinkViewDetailsValue) || (this.paperPublishedLinkViewDetailsValue.equals(other.paperPublishedLinkViewDetailsValue)); + case PASSWORD_CHANGE_DETAILS: + return (this.passwordChangeDetailsValue == other.passwordChangeDetailsValue) || (this.passwordChangeDetailsValue.equals(other.passwordChangeDetailsValue)); + case PASSWORD_RESET_DETAILS: + return (this.passwordResetDetailsValue == other.passwordResetDetailsValue) || (this.passwordResetDetailsValue.equals(other.passwordResetDetailsValue)); + case PASSWORD_RESET_ALL_DETAILS: + return (this.passwordResetAllDetailsValue == other.passwordResetAllDetailsValue) || (this.passwordResetAllDetailsValue.equals(other.passwordResetAllDetailsValue)); + case CLASSIFICATION_CREATE_REPORT_DETAILS: + return (this.classificationCreateReportDetailsValue == other.classificationCreateReportDetailsValue) || (this.classificationCreateReportDetailsValue.equals(other.classificationCreateReportDetailsValue)); + case CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS: + return (this.classificationCreateReportFailDetailsValue == other.classificationCreateReportFailDetailsValue) || (this.classificationCreateReportFailDetailsValue.equals(other.classificationCreateReportFailDetailsValue)); + case EMM_CREATE_EXCEPTIONS_REPORT_DETAILS: + return (this.emmCreateExceptionsReportDetailsValue == other.emmCreateExceptionsReportDetailsValue) || (this.emmCreateExceptionsReportDetailsValue.equals(other.emmCreateExceptionsReportDetailsValue)); + case EMM_CREATE_USAGE_REPORT_DETAILS: + return (this.emmCreateUsageReportDetailsValue == other.emmCreateUsageReportDetailsValue) || (this.emmCreateUsageReportDetailsValue.equals(other.emmCreateUsageReportDetailsValue)); + case EXPORT_MEMBERS_REPORT_DETAILS: + return (this.exportMembersReportDetailsValue == other.exportMembersReportDetailsValue) || (this.exportMembersReportDetailsValue.equals(other.exportMembersReportDetailsValue)); + case EXPORT_MEMBERS_REPORT_FAIL_DETAILS: + return (this.exportMembersReportFailDetailsValue == other.exportMembersReportFailDetailsValue) || (this.exportMembersReportFailDetailsValue.equals(other.exportMembersReportFailDetailsValue)); + case EXTERNAL_SHARING_CREATE_REPORT_DETAILS: + return (this.externalSharingCreateReportDetailsValue == other.externalSharingCreateReportDetailsValue) || (this.externalSharingCreateReportDetailsValue.equals(other.externalSharingCreateReportDetailsValue)); + case EXTERNAL_SHARING_REPORT_FAILED_DETAILS: + return (this.externalSharingReportFailedDetailsValue == other.externalSharingReportFailedDetailsValue) || (this.externalSharingReportFailedDetailsValue.equals(other.externalSharingReportFailedDetailsValue)); + case NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS: + return (this.noExpirationLinkGenCreateReportDetailsValue == other.noExpirationLinkGenCreateReportDetailsValue) || (this.noExpirationLinkGenCreateReportDetailsValue.equals(other.noExpirationLinkGenCreateReportDetailsValue)); + case NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS: + return (this.noExpirationLinkGenReportFailedDetailsValue == other.noExpirationLinkGenReportFailedDetailsValue) || (this.noExpirationLinkGenReportFailedDetailsValue.equals(other.noExpirationLinkGenReportFailedDetailsValue)); + case NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS: + return (this.noPasswordLinkGenCreateReportDetailsValue == other.noPasswordLinkGenCreateReportDetailsValue) || (this.noPasswordLinkGenCreateReportDetailsValue.equals(other.noPasswordLinkGenCreateReportDetailsValue)); + case NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS: + return (this.noPasswordLinkGenReportFailedDetailsValue == other.noPasswordLinkGenReportFailedDetailsValue) || (this.noPasswordLinkGenReportFailedDetailsValue.equals(other.noPasswordLinkGenReportFailedDetailsValue)); + case NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS: + return (this.noPasswordLinkViewCreateReportDetailsValue == other.noPasswordLinkViewCreateReportDetailsValue) || (this.noPasswordLinkViewCreateReportDetailsValue.equals(other.noPasswordLinkViewCreateReportDetailsValue)); + case NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS: + return (this.noPasswordLinkViewReportFailedDetailsValue == other.noPasswordLinkViewReportFailedDetailsValue) || (this.noPasswordLinkViewReportFailedDetailsValue.equals(other.noPasswordLinkViewReportFailedDetailsValue)); + case OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS: + return (this.outdatedLinkViewCreateReportDetailsValue == other.outdatedLinkViewCreateReportDetailsValue) || (this.outdatedLinkViewCreateReportDetailsValue.equals(other.outdatedLinkViewCreateReportDetailsValue)); + case OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS: + return (this.outdatedLinkViewReportFailedDetailsValue == other.outdatedLinkViewReportFailedDetailsValue) || (this.outdatedLinkViewReportFailedDetailsValue.equals(other.outdatedLinkViewReportFailedDetailsValue)); + case PAPER_ADMIN_EXPORT_START_DETAILS: + return (this.paperAdminExportStartDetailsValue == other.paperAdminExportStartDetailsValue) || (this.paperAdminExportStartDetailsValue.equals(other.paperAdminExportStartDetailsValue)); + case RANSOMWARE_ALERT_CREATE_REPORT_DETAILS: + return (this.ransomwareAlertCreateReportDetailsValue == other.ransomwareAlertCreateReportDetailsValue) || (this.ransomwareAlertCreateReportDetailsValue.equals(other.ransomwareAlertCreateReportDetailsValue)); + case RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS: + return (this.ransomwareAlertCreateReportFailedDetailsValue == other.ransomwareAlertCreateReportFailedDetailsValue) || (this.ransomwareAlertCreateReportFailedDetailsValue.equals(other.ransomwareAlertCreateReportFailedDetailsValue)); + case SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS: + return (this.smartSyncCreateAdminPrivilegeReportDetailsValue == other.smartSyncCreateAdminPrivilegeReportDetailsValue) || (this.smartSyncCreateAdminPrivilegeReportDetailsValue.equals(other.smartSyncCreateAdminPrivilegeReportDetailsValue)); + case TEAM_ACTIVITY_CREATE_REPORT_DETAILS: + return (this.teamActivityCreateReportDetailsValue == other.teamActivityCreateReportDetailsValue) || (this.teamActivityCreateReportDetailsValue.equals(other.teamActivityCreateReportDetailsValue)); + case TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS: + return (this.teamActivityCreateReportFailDetailsValue == other.teamActivityCreateReportFailDetailsValue) || (this.teamActivityCreateReportFailDetailsValue.equals(other.teamActivityCreateReportFailDetailsValue)); + case COLLECTION_SHARE_DETAILS: + return (this.collectionShareDetailsValue == other.collectionShareDetailsValue) || (this.collectionShareDetailsValue.equals(other.collectionShareDetailsValue)); + case FILE_TRANSFERS_FILE_ADD_DETAILS: + return (this.fileTransfersFileAddDetailsValue == other.fileTransfersFileAddDetailsValue) || (this.fileTransfersFileAddDetailsValue.equals(other.fileTransfersFileAddDetailsValue)); + case FILE_TRANSFERS_TRANSFER_DELETE_DETAILS: + return (this.fileTransfersTransferDeleteDetailsValue == other.fileTransfersTransferDeleteDetailsValue) || (this.fileTransfersTransferDeleteDetailsValue.equals(other.fileTransfersTransferDeleteDetailsValue)); + case FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS: + return (this.fileTransfersTransferDownloadDetailsValue == other.fileTransfersTransferDownloadDetailsValue) || (this.fileTransfersTransferDownloadDetailsValue.equals(other.fileTransfersTransferDownloadDetailsValue)); + case FILE_TRANSFERS_TRANSFER_SEND_DETAILS: + return (this.fileTransfersTransferSendDetailsValue == other.fileTransfersTransferSendDetailsValue) || (this.fileTransfersTransferSendDetailsValue.equals(other.fileTransfersTransferSendDetailsValue)); + case FILE_TRANSFERS_TRANSFER_VIEW_DETAILS: + return (this.fileTransfersTransferViewDetailsValue == other.fileTransfersTransferViewDetailsValue) || (this.fileTransfersTransferViewDetailsValue.equals(other.fileTransfersTransferViewDetailsValue)); + case NOTE_ACL_INVITE_ONLY_DETAILS: + return (this.noteAclInviteOnlyDetailsValue == other.noteAclInviteOnlyDetailsValue) || (this.noteAclInviteOnlyDetailsValue.equals(other.noteAclInviteOnlyDetailsValue)); + case NOTE_ACL_LINK_DETAILS: + return (this.noteAclLinkDetailsValue == other.noteAclLinkDetailsValue) || (this.noteAclLinkDetailsValue.equals(other.noteAclLinkDetailsValue)); + case NOTE_ACL_TEAM_LINK_DETAILS: + return (this.noteAclTeamLinkDetailsValue == other.noteAclTeamLinkDetailsValue) || (this.noteAclTeamLinkDetailsValue.equals(other.noteAclTeamLinkDetailsValue)); + case NOTE_SHARED_DETAILS: + return (this.noteSharedDetailsValue == other.noteSharedDetailsValue) || (this.noteSharedDetailsValue.equals(other.noteSharedDetailsValue)); + case NOTE_SHARE_RECEIVE_DETAILS: + return (this.noteShareReceiveDetailsValue == other.noteShareReceiveDetailsValue) || (this.noteShareReceiveDetailsValue.equals(other.noteShareReceiveDetailsValue)); + case OPEN_NOTE_SHARED_DETAILS: + return (this.openNoteSharedDetailsValue == other.openNoteSharedDetailsValue) || (this.openNoteSharedDetailsValue.equals(other.openNoteSharedDetailsValue)); + case REPLAY_FILE_SHARED_LINK_CREATED_DETAILS: + return (this.replayFileSharedLinkCreatedDetailsValue == other.replayFileSharedLinkCreatedDetailsValue) || (this.replayFileSharedLinkCreatedDetailsValue.equals(other.replayFileSharedLinkCreatedDetailsValue)); + case REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS: + return (this.replayFileSharedLinkModifiedDetailsValue == other.replayFileSharedLinkModifiedDetailsValue) || (this.replayFileSharedLinkModifiedDetailsValue.equals(other.replayFileSharedLinkModifiedDetailsValue)); + case REPLAY_PROJECT_TEAM_ADD_DETAILS: + return (this.replayProjectTeamAddDetailsValue == other.replayProjectTeamAddDetailsValue) || (this.replayProjectTeamAddDetailsValue.equals(other.replayProjectTeamAddDetailsValue)); + case REPLAY_PROJECT_TEAM_DELETE_DETAILS: + return (this.replayProjectTeamDeleteDetailsValue == other.replayProjectTeamDeleteDetailsValue) || (this.replayProjectTeamDeleteDetailsValue.equals(other.replayProjectTeamDeleteDetailsValue)); + case SF_ADD_GROUP_DETAILS: + return (this.sfAddGroupDetailsValue == other.sfAddGroupDetailsValue) || (this.sfAddGroupDetailsValue.equals(other.sfAddGroupDetailsValue)); + case SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS: + return (this.sfAllowNonMembersToViewSharedLinksDetailsValue == other.sfAllowNonMembersToViewSharedLinksDetailsValue) || (this.sfAllowNonMembersToViewSharedLinksDetailsValue.equals(other.sfAllowNonMembersToViewSharedLinksDetailsValue)); + case SF_EXTERNAL_INVITE_WARN_DETAILS: + return (this.sfExternalInviteWarnDetailsValue == other.sfExternalInviteWarnDetailsValue) || (this.sfExternalInviteWarnDetailsValue.equals(other.sfExternalInviteWarnDetailsValue)); + case SF_FB_INVITE_DETAILS: + return (this.sfFbInviteDetailsValue == other.sfFbInviteDetailsValue) || (this.sfFbInviteDetailsValue.equals(other.sfFbInviteDetailsValue)); + case SF_FB_INVITE_CHANGE_ROLE_DETAILS: + return (this.sfFbInviteChangeRoleDetailsValue == other.sfFbInviteChangeRoleDetailsValue) || (this.sfFbInviteChangeRoleDetailsValue.equals(other.sfFbInviteChangeRoleDetailsValue)); + case SF_FB_UNINVITE_DETAILS: + return (this.sfFbUninviteDetailsValue == other.sfFbUninviteDetailsValue) || (this.sfFbUninviteDetailsValue.equals(other.sfFbUninviteDetailsValue)); + case SF_INVITE_GROUP_DETAILS: + return (this.sfInviteGroupDetailsValue == other.sfInviteGroupDetailsValue) || (this.sfInviteGroupDetailsValue.equals(other.sfInviteGroupDetailsValue)); + case SF_TEAM_GRANT_ACCESS_DETAILS: + return (this.sfTeamGrantAccessDetailsValue == other.sfTeamGrantAccessDetailsValue) || (this.sfTeamGrantAccessDetailsValue.equals(other.sfTeamGrantAccessDetailsValue)); + case SF_TEAM_INVITE_DETAILS: + return (this.sfTeamInviteDetailsValue == other.sfTeamInviteDetailsValue) || (this.sfTeamInviteDetailsValue.equals(other.sfTeamInviteDetailsValue)); + case SF_TEAM_INVITE_CHANGE_ROLE_DETAILS: + return (this.sfTeamInviteChangeRoleDetailsValue == other.sfTeamInviteChangeRoleDetailsValue) || (this.sfTeamInviteChangeRoleDetailsValue.equals(other.sfTeamInviteChangeRoleDetailsValue)); + case SF_TEAM_JOIN_DETAILS: + return (this.sfTeamJoinDetailsValue == other.sfTeamJoinDetailsValue) || (this.sfTeamJoinDetailsValue.equals(other.sfTeamJoinDetailsValue)); + case SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS: + return (this.sfTeamJoinFromOobLinkDetailsValue == other.sfTeamJoinFromOobLinkDetailsValue) || (this.sfTeamJoinFromOobLinkDetailsValue.equals(other.sfTeamJoinFromOobLinkDetailsValue)); + case SF_TEAM_UNINVITE_DETAILS: + return (this.sfTeamUninviteDetailsValue == other.sfTeamUninviteDetailsValue) || (this.sfTeamUninviteDetailsValue.equals(other.sfTeamUninviteDetailsValue)); + case SHARED_CONTENT_ADD_INVITEES_DETAILS: + return (this.sharedContentAddInviteesDetailsValue == other.sharedContentAddInviteesDetailsValue) || (this.sharedContentAddInviteesDetailsValue.equals(other.sharedContentAddInviteesDetailsValue)); + case SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS: + return (this.sharedContentAddLinkExpiryDetailsValue == other.sharedContentAddLinkExpiryDetailsValue) || (this.sharedContentAddLinkExpiryDetailsValue.equals(other.sharedContentAddLinkExpiryDetailsValue)); + case SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS: + return (this.sharedContentAddLinkPasswordDetailsValue == other.sharedContentAddLinkPasswordDetailsValue) || (this.sharedContentAddLinkPasswordDetailsValue.equals(other.sharedContentAddLinkPasswordDetailsValue)); + case SHARED_CONTENT_ADD_MEMBER_DETAILS: + return (this.sharedContentAddMemberDetailsValue == other.sharedContentAddMemberDetailsValue) || (this.sharedContentAddMemberDetailsValue.equals(other.sharedContentAddMemberDetailsValue)); + case SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS: + return (this.sharedContentChangeDownloadsPolicyDetailsValue == other.sharedContentChangeDownloadsPolicyDetailsValue) || (this.sharedContentChangeDownloadsPolicyDetailsValue.equals(other.sharedContentChangeDownloadsPolicyDetailsValue)); + case SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS: + return (this.sharedContentChangeInviteeRoleDetailsValue == other.sharedContentChangeInviteeRoleDetailsValue) || (this.sharedContentChangeInviteeRoleDetailsValue.equals(other.sharedContentChangeInviteeRoleDetailsValue)); + case SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS: + return (this.sharedContentChangeLinkAudienceDetailsValue == other.sharedContentChangeLinkAudienceDetailsValue) || (this.sharedContentChangeLinkAudienceDetailsValue.equals(other.sharedContentChangeLinkAudienceDetailsValue)); + case SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS: + return (this.sharedContentChangeLinkExpiryDetailsValue == other.sharedContentChangeLinkExpiryDetailsValue) || (this.sharedContentChangeLinkExpiryDetailsValue.equals(other.sharedContentChangeLinkExpiryDetailsValue)); + case SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS: + return (this.sharedContentChangeLinkPasswordDetailsValue == other.sharedContentChangeLinkPasswordDetailsValue) || (this.sharedContentChangeLinkPasswordDetailsValue.equals(other.sharedContentChangeLinkPasswordDetailsValue)); + case SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS: + return (this.sharedContentChangeMemberRoleDetailsValue == other.sharedContentChangeMemberRoleDetailsValue) || (this.sharedContentChangeMemberRoleDetailsValue.equals(other.sharedContentChangeMemberRoleDetailsValue)); + case SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS: + return (this.sharedContentChangeViewerInfoPolicyDetailsValue == other.sharedContentChangeViewerInfoPolicyDetailsValue) || (this.sharedContentChangeViewerInfoPolicyDetailsValue.equals(other.sharedContentChangeViewerInfoPolicyDetailsValue)); + case SHARED_CONTENT_CLAIM_INVITATION_DETAILS: + return (this.sharedContentClaimInvitationDetailsValue == other.sharedContentClaimInvitationDetailsValue) || (this.sharedContentClaimInvitationDetailsValue.equals(other.sharedContentClaimInvitationDetailsValue)); + case SHARED_CONTENT_COPY_DETAILS: + return (this.sharedContentCopyDetailsValue == other.sharedContentCopyDetailsValue) || (this.sharedContentCopyDetailsValue.equals(other.sharedContentCopyDetailsValue)); + case SHARED_CONTENT_DOWNLOAD_DETAILS: + return (this.sharedContentDownloadDetailsValue == other.sharedContentDownloadDetailsValue) || (this.sharedContentDownloadDetailsValue.equals(other.sharedContentDownloadDetailsValue)); + case SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS: + return (this.sharedContentRelinquishMembershipDetailsValue == other.sharedContentRelinquishMembershipDetailsValue) || (this.sharedContentRelinquishMembershipDetailsValue.equals(other.sharedContentRelinquishMembershipDetailsValue)); + case SHARED_CONTENT_REMOVE_INVITEES_DETAILS: + return (this.sharedContentRemoveInviteesDetailsValue == other.sharedContentRemoveInviteesDetailsValue) || (this.sharedContentRemoveInviteesDetailsValue.equals(other.sharedContentRemoveInviteesDetailsValue)); + case SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS: + return (this.sharedContentRemoveLinkExpiryDetailsValue == other.sharedContentRemoveLinkExpiryDetailsValue) || (this.sharedContentRemoveLinkExpiryDetailsValue.equals(other.sharedContentRemoveLinkExpiryDetailsValue)); + case SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS: + return (this.sharedContentRemoveLinkPasswordDetailsValue == other.sharedContentRemoveLinkPasswordDetailsValue) || (this.sharedContentRemoveLinkPasswordDetailsValue.equals(other.sharedContentRemoveLinkPasswordDetailsValue)); + case SHARED_CONTENT_REMOVE_MEMBER_DETAILS: + return (this.sharedContentRemoveMemberDetailsValue == other.sharedContentRemoveMemberDetailsValue) || (this.sharedContentRemoveMemberDetailsValue.equals(other.sharedContentRemoveMemberDetailsValue)); + case SHARED_CONTENT_REQUEST_ACCESS_DETAILS: + return (this.sharedContentRequestAccessDetailsValue == other.sharedContentRequestAccessDetailsValue) || (this.sharedContentRequestAccessDetailsValue.equals(other.sharedContentRequestAccessDetailsValue)); + case SHARED_CONTENT_RESTORE_INVITEES_DETAILS: + return (this.sharedContentRestoreInviteesDetailsValue == other.sharedContentRestoreInviteesDetailsValue) || (this.sharedContentRestoreInviteesDetailsValue.equals(other.sharedContentRestoreInviteesDetailsValue)); + case SHARED_CONTENT_RESTORE_MEMBER_DETAILS: + return (this.sharedContentRestoreMemberDetailsValue == other.sharedContentRestoreMemberDetailsValue) || (this.sharedContentRestoreMemberDetailsValue.equals(other.sharedContentRestoreMemberDetailsValue)); + case SHARED_CONTENT_UNSHARE_DETAILS: + return (this.sharedContentUnshareDetailsValue == other.sharedContentUnshareDetailsValue) || (this.sharedContentUnshareDetailsValue.equals(other.sharedContentUnshareDetailsValue)); + case SHARED_CONTENT_VIEW_DETAILS: + return (this.sharedContentViewDetailsValue == other.sharedContentViewDetailsValue) || (this.sharedContentViewDetailsValue.equals(other.sharedContentViewDetailsValue)); + case SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS: + return (this.sharedFolderChangeLinkPolicyDetailsValue == other.sharedFolderChangeLinkPolicyDetailsValue) || (this.sharedFolderChangeLinkPolicyDetailsValue.equals(other.sharedFolderChangeLinkPolicyDetailsValue)); + case SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS: + return (this.sharedFolderChangeMembersInheritancePolicyDetailsValue == other.sharedFolderChangeMembersInheritancePolicyDetailsValue) || (this.sharedFolderChangeMembersInheritancePolicyDetailsValue.equals(other.sharedFolderChangeMembersInheritancePolicyDetailsValue)); + case SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS: + return (this.sharedFolderChangeMembersManagementPolicyDetailsValue == other.sharedFolderChangeMembersManagementPolicyDetailsValue) || (this.sharedFolderChangeMembersManagementPolicyDetailsValue.equals(other.sharedFolderChangeMembersManagementPolicyDetailsValue)); + case SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS: + return (this.sharedFolderChangeMembersPolicyDetailsValue == other.sharedFolderChangeMembersPolicyDetailsValue) || (this.sharedFolderChangeMembersPolicyDetailsValue.equals(other.sharedFolderChangeMembersPolicyDetailsValue)); + case SHARED_FOLDER_CREATE_DETAILS: + return (this.sharedFolderCreateDetailsValue == other.sharedFolderCreateDetailsValue) || (this.sharedFolderCreateDetailsValue.equals(other.sharedFolderCreateDetailsValue)); + case SHARED_FOLDER_DECLINE_INVITATION_DETAILS: + return (this.sharedFolderDeclineInvitationDetailsValue == other.sharedFolderDeclineInvitationDetailsValue) || (this.sharedFolderDeclineInvitationDetailsValue.equals(other.sharedFolderDeclineInvitationDetailsValue)); + case SHARED_FOLDER_MOUNT_DETAILS: + return (this.sharedFolderMountDetailsValue == other.sharedFolderMountDetailsValue) || (this.sharedFolderMountDetailsValue.equals(other.sharedFolderMountDetailsValue)); + case SHARED_FOLDER_NEST_DETAILS: + return (this.sharedFolderNestDetailsValue == other.sharedFolderNestDetailsValue) || (this.sharedFolderNestDetailsValue.equals(other.sharedFolderNestDetailsValue)); + case SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS: + return (this.sharedFolderTransferOwnershipDetailsValue == other.sharedFolderTransferOwnershipDetailsValue) || (this.sharedFolderTransferOwnershipDetailsValue.equals(other.sharedFolderTransferOwnershipDetailsValue)); + case SHARED_FOLDER_UNMOUNT_DETAILS: + return (this.sharedFolderUnmountDetailsValue == other.sharedFolderUnmountDetailsValue) || (this.sharedFolderUnmountDetailsValue.equals(other.sharedFolderUnmountDetailsValue)); + case SHARED_LINK_ADD_EXPIRY_DETAILS: + return (this.sharedLinkAddExpiryDetailsValue == other.sharedLinkAddExpiryDetailsValue) || (this.sharedLinkAddExpiryDetailsValue.equals(other.sharedLinkAddExpiryDetailsValue)); + case SHARED_LINK_CHANGE_EXPIRY_DETAILS: + return (this.sharedLinkChangeExpiryDetailsValue == other.sharedLinkChangeExpiryDetailsValue) || (this.sharedLinkChangeExpiryDetailsValue.equals(other.sharedLinkChangeExpiryDetailsValue)); + case SHARED_LINK_CHANGE_VISIBILITY_DETAILS: + return (this.sharedLinkChangeVisibilityDetailsValue == other.sharedLinkChangeVisibilityDetailsValue) || (this.sharedLinkChangeVisibilityDetailsValue.equals(other.sharedLinkChangeVisibilityDetailsValue)); + case SHARED_LINK_COPY_DETAILS: + return (this.sharedLinkCopyDetailsValue == other.sharedLinkCopyDetailsValue) || (this.sharedLinkCopyDetailsValue.equals(other.sharedLinkCopyDetailsValue)); + case SHARED_LINK_CREATE_DETAILS: + return (this.sharedLinkCreateDetailsValue == other.sharedLinkCreateDetailsValue) || (this.sharedLinkCreateDetailsValue.equals(other.sharedLinkCreateDetailsValue)); + case SHARED_LINK_DISABLE_DETAILS: + return (this.sharedLinkDisableDetailsValue == other.sharedLinkDisableDetailsValue) || (this.sharedLinkDisableDetailsValue.equals(other.sharedLinkDisableDetailsValue)); + case SHARED_LINK_DOWNLOAD_DETAILS: + return (this.sharedLinkDownloadDetailsValue == other.sharedLinkDownloadDetailsValue) || (this.sharedLinkDownloadDetailsValue.equals(other.sharedLinkDownloadDetailsValue)); + case SHARED_LINK_REMOVE_EXPIRY_DETAILS: + return (this.sharedLinkRemoveExpiryDetailsValue == other.sharedLinkRemoveExpiryDetailsValue) || (this.sharedLinkRemoveExpiryDetailsValue.equals(other.sharedLinkRemoveExpiryDetailsValue)); + case SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS: + return (this.sharedLinkSettingsAddExpirationDetailsValue == other.sharedLinkSettingsAddExpirationDetailsValue) || (this.sharedLinkSettingsAddExpirationDetailsValue.equals(other.sharedLinkSettingsAddExpirationDetailsValue)); + case SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS: + return (this.sharedLinkSettingsAddPasswordDetailsValue == other.sharedLinkSettingsAddPasswordDetailsValue) || (this.sharedLinkSettingsAddPasswordDetailsValue.equals(other.sharedLinkSettingsAddPasswordDetailsValue)); + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS: + return (this.sharedLinkSettingsAllowDownloadDisabledDetailsValue == other.sharedLinkSettingsAllowDownloadDisabledDetailsValue) || (this.sharedLinkSettingsAllowDownloadDisabledDetailsValue.equals(other.sharedLinkSettingsAllowDownloadDisabledDetailsValue)); + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS: + return (this.sharedLinkSettingsAllowDownloadEnabledDetailsValue == other.sharedLinkSettingsAllowDownloadEnabledDetailsValue) || (this.sharedLinkSettingsAllowDownloadEnabledDetailsValue.equals(other.sharedLinkSettingsAllowDownloadEnabledDetailsValue)); + case SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS: + return (this.sharedLinkSettingsChangeAudienceDetailsValue == other.sharedLinkSettingsChangeAudienceDetailsValue) || (this.sharedLinkSettingsChangeAudienceDetailsValue.equals(other.sharedLinkSettingsChangeAudienceDetailsValue)); + case SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS: + return (this.sharedLinkSettingsChangeExpirationDetailsValue == other.sharedLinkSettingsChangeExpirationDetailsValue) || (this.sharedLinkSettingsChangeExpirationDetailsValue.equals(other.sharedLinkSettingsChangeExpirationDetailsValue)); + case SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS: + return (this.sharedLinkSettingsChangePasswordDetailsValue == other.sharedLinkSettingsChangePasswordDetailsValue) || (this.sharedLinkSettingsChangePasswordDetailsValue.equals(other.sharedLinkSettingsChangePasswordDetailsValue)); + case SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS: + return (this.sharedLinkSettingsRemoveExpirationDetailsValue == other.sharedLinkSettingsRemoveExpirationDetailsValue) || (this.sharedLinkSettingsRemoveExpirationDetailsValue.equals(other.sharedLinkSettingsRemoveExpirationDetailsValue)); + case SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS: + return (this.sharedLinkSettingsRemovePasswordDetailsValue == other.sharedLinkSettingsRemovePasswordDetailsValue) || (this.sharedLinkSettingsRemovePasswordDetailsValue.equals(other.sharedLinkSettingsRemovePasswordDetailsValue)); + case SHARED_LINK_SHARE_DETAILS: + return (this.sharedLinkShareDetailsValue == other.sharedLinkShareDetailsValue) || (this.sharedLinkShareDetailsValue.equals(other.sharedLinkShareDetailsValue)); + case SHARED_LINK_VIEW_DETAILS: + return (this.sharedLinkViewDetailsValue == other.sharedLinkViewDetailsValue) || (this.sharedLinkViewDetailsValue.equals(other.sharedLinkViewDetailsValue)); + case SHARED_NOTE_OPENED_DETAILS: + return (this.sharedNoteOpenedDetailsValue == other.sharedNoteOpenedDetailsValue) || (this.sharedNoteOpenedDetailsValue.equals(other.sharedNoteOpenedDetailsValue)); + case SHMODEL_DISABLE_DOWNLOADS_DETAILS: + return (this.shmodelDisableDownloadsDetailsValue == other.shmodelDisableDownloadsDetailsValue) || (this.shmodelDisableDownloadsDetailsValue.equals(other.shmodelDisableDownloadsDetailsValue)); + case SHMODEL_ENABLE_DOWNLOADS_DETAILS: + return (this.shmodelEnableDownloadsDetailsValue == other.shmodelEnableDownloadsDetailsValue) || (this.shmodelEnableDownloadsDetailsValue.equals(other.shmodelEnableDownloadsDetailsValue)); + case SHMODEL_GROUP_SHARE_DETAILS: + return (this.shmodelGroupShareDetailsValue == other.shmodelGroupShareDetailsValue) || (this.shmodelGroupShareDetailsValue.equals(other.shmodelGroupShareDetailsValue)); + case SHOWCASE_ACCESS_GRANTED_DETAILS: + return (this.showcaseAccessGrantedDetailsValue == other.showcaseAccessGrantedDetailsValue) || (this.showcaseAccessGrantedDetailsValue.equals(other.showcaseAccessGrantedDetailsValue)); + case SHOWCASE_ADD_MEMBER_DETAILS: + return (this.showcaseAddMemberDetailsValue == other.showcaseAddMemberDetailsValue) || (this.showcaseAddMemberDetailsValue.equals(other.showcaseAddMemberDetailsValue)); + case SHOWCASE_ARCHIVED_DETAILS: + return (this.showcaseArchivedDetailsValue == other.showcaseArchivedDetailsValue) || (this.showcaseArchivedDetailsValue.equals(other.showcaseArchivedDetailsValue)); + case SHOWCASE_CREATED_DETAILS: + return (this.showcaseCreatedDetailsValue == other.showcaseCreatedDetailsValue) || (this.showcaseCreatedDetailsValue.equals(other.showcaseCreatedDetailsValue)); + case SHOWCASE_DELETE_COMMENT_DETAILS: + return (this.showcaseDeleteCommentDetailsValue == other.showcaseDeleteCommentDetailsValue) || (this.showcaseDeleteCommentDetailsValue.equals(other.showcaseDeleteCommentDetailsValue)); + case SHOWCASE_EDITED_DETAILS: + return (this.showcaseEditedDetailsValue == other.showcaseEditedDetailsValue) || (this.showcaseEditedDetailsValue.equals(other.showcaseEditedDetailsValue)); + case SHOWCASE_EDIT_COMMENT_DETAILS: + return (this.showcaseEditCommentDetailsValue == other.showcaseEditCommentDetailsValue) || (this.showcaseEditCommentDetailsValue.equals(other.showcaseEditCommentDetailsValue)); + case SHOWCASE_FILE_ADDED_DETAILS: + return (this.showcaseFileAddedDetailsValue == other.showcaseFileAddedDetailsValue) || (this.showcaseFileAddedDetailsValue.equals(other.showcaseFileAddedDetailsValue)); + case SHOWCASE_FILE_DOWNLOAD_DETAILS: + return (this.showcaseFileDownloadDetailsValue == other.showcaseFileDownloadDetailsValue) || (this.showcaseFileDownloadDetailsValue.equals(other.showcaseFileDownloadDetailsValue)); + case SHOWCASE_FILE_REMOVED_DETAILS: + return (this.showcaseFileRemovedDetailsValue == other.showcaseFileRemovedDetailsValue) || (this.showcaseFileRemovedDetailsValue.equals(other.showcaseFileRemovedDetailsValue)); + case SHOWCASE_FILE_VIEW_DETAILS: + return (this.showcaseFileViewDetailsValue == other.showcaseFileViewDetailsValue) || (this.showcaseFileViewDetailsValue.equals(other.showcaseFileViewDetailsValue)); + case SHOWCASE_PERMANENTLY_DELETED_DETAILS: + return (this.showcasePermanentlyDeletedDetailsValue == other.showcasePermanentlyDeletedDetailsValue) || (this.showcasePermanentlyDeletedDetailsValue.equals(other.showcasePermanentlyDeletedDetailsValue)); + case SHOWCASE_POST_COMMENT_DETAILS: + return (this.showcasePostCommentDetailsValue == other.showcasePostCommentDetailsValue) || (this.showcasePostCommentDetailsValue.equals(other.showcasePostCommentDetailsValue)); + case SHOWCASE_REMOVE_MEMBER_DETAILS: + return (this.showcaseRemoveMemberDetailsValue == other.showcaseRemoveMemberDetailsValue) || (this.showcaseRemoveMemberDetailsValue.equals(other.showcaseRemoveMemberDetailsValue)); + case SHOWCASE_RENAMED_DETAILS: + return (this.showcaseRenamedDetailsValue == other.showcaseRenamedDetailsValue) || (this.showcaseRenamedDetailsValue.equals(other.showcaseRenamedDetailsValue)); + case SHOWCASE_REQUEST_ACCESS_DETAILS: + return (this.showcaseRequestAccessDetailsValue == other.showcaseRequestAccessDetailsValue) || (this.showcaseRequestAccessDetailsValue.equals(other.showcaseRequestAccessDetailsValue)); + case SHOWCASE_RESOLVE_COMMENT_DETAILS: + return (this.showcaseResolveCommentDetailsValue == other.showcaseResolveCommentDetailsValue) || (this.showcaseResolveCommentDetailsValue.equals(other.showcaseResolveCommentDetailsValue)); + case SHOWCASE_RESTORED_DETAILS: + return (this.showcaseRestoredDetailsValue == other.showcaseRestoredDetailsValue) || (this.showcaseRestoredDetailsValue.equals(other.showcaseRestoredDetailsValue)); + case SHOWCASE_TRASHED_DETAILS: + return (this.showcaseTrashedDetailsValue == other.showcaseTrashedDetailsValue) || (this.showcaseTrashedDetailsValue.equals(other.showcaseTrashedDetailsValue)); + case SHOWCASE_TRASHED_DEPRECATED_DETAILS: + return (this.showcaseTrashedDeprecatedDetailsValue == other.showcaseTrashedDeprecatedDetailsValue) || (this.showcaseTrashedDeprecatedDetailsValue.equals(other.showcaseTrashedDeprecatedDetailsValue)); + case SHOWCASE_UNRESOLVE_COMMENT_DETAILS: + return (this.showcaseUnresolveCommentDetailsValue == other.showcaseUnresolveCommentDetailsValue) || (this.showcaseUnresolveCommentDetailsValue.equals(other.showcaseUnresolveCommentDetailsValue)); + case SHOWCASE_UNTRASHED_DETAILS: + return (this.showcaseUntrashedDetailsValue == other.showcaseUntrashedDetailsValue) || (this.showcaseUntrashedDetailsValue.equals(other.showcaseUntrashedDetailsValue)); + case SHOWCASE_UNTRASHED_DEPRECATED_DETAILS: + return (this.showcaseUntrashedDeprecatedDetailsValue == other.showcaseUntrashedDeprecatedDetailsValue) || (this.showcaseUntrashedDeprecatedDetailsValue.equals(other.showcaseUntrashedDeprecatedDetailsValue)); + case SHOWCASE_VIEW_DETAILS: + return (this.showcaseViewDetailsValue == other.showcaseViewDetailsValue) || (this.showcaseViewDetailsValue.equals(other.showcaseViewDetailsValue)); + case SSO_ADD_CERT_DETAILS: + return (this.ssoAddCertDetailsValue == other.ssoAddCertDetailsValue) || (this.ssoAddCertDetailsValue.equals(other.ssoAddCertDetailsValue)); + case SSO_ADD_LOGIN_URL_DETAILS: + return (this.ssoAddLoginUrlDetailsValue == other.ssoAddLoginUrlDetailsValue) || (this.ssoAddLoginUrlDetailsValue.equals(other.ssoAddLoginUrlDetailsValue)); + case SSO_ADD_LOGOUT_URL_DETAILS: + return (this.ssoAddLogoutUrlDetailsValue == other.ssoAddLogoutUrlDetailsValue) || (this.ssoAddLogoutUrlDetailsValue.equals(other.ssoAddLogoutUrlDetailsValue)); + case SSO_CHANGE_CERT_DETAILS: + return (this.ssoChangeCertDetailsValue == other.ssoChangeCertDetailsValue) || (this.ssoChangeCertDetailsValue.equals(other.ssoChangeCertDetailsValue)); + case SSO_CHANGE_LOGIN_URL_DETAILS: + return (this.ssoChangeLoginUrlDetailsValue == other.ssoChangeLoginUrlDetailsValue) || (this.ssoChangeLoginUrlDetailsValue.equals(other.ssoChangeLoginUrlDetailsValue)); + case SSO_CHANGE_LOGOUT_URL_DETAILS: + return (this.ssoChangeLogoutUrlDetailsValue == other.ssoChangeLogoutUrlDetailsValue) || (this.ssoChangeLogoutUrlDetailsValue.equals(other.ssoChangeLogoutUrlDetailsValue)); + case SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS: + return (this.ssoChangeSamlIdentityModeDetailsValue == other.ssoChangeSamlIdentityModeDetailsValue) || (this.ssoChangeSamlIdentityModeDetailsValue.equals(other.ssoChangeSamlIdentityModeDetailsValue)); + case SSO_REMOVE_CERT_DETAILS: + return (this.ssoRemoveCertDetailsValue == other.ssoRemoveCertDetailsValue) || (this.ssoRemoveCertDetailsValue.equals(other.ssoRemoveCertDetailsValue)); + case SSO_REMOVE_LOGIN_URL_DETAILS: + return (this.ssoRemoveLoginUrlDetailsValue == other.ssoRemoveLoginUrlDetailsValue) || (this.ssoRemoveLoginUrlDetailsValue.equals(other.ssoRemoveLoginUrlDetailsValue)); + case SSO_REMOVE_LOGOUT_URL_DETAILS: + return (this.ssoRemoveLogoutUrlDetailsValue == other.ssoRemoveLogoutUrlDetailsValue) || (this.ssoRemoveLogoutUrlDetailsValue.equals(other.ssoRemoveLogoutUrlDetailsValue)); + case TEAM_FOLDER_CHANGE_STATUS_DETAILS: + return (this.teamFolderChangeStatusDetailsValue == other.teamFolderChangeStatusDetailsValue) || (this.teamFolderChangeStatusDetailsValue.equals(other.teamFolderChangeStatusDetailsValue)); + case TEAM_FOLDER_CREATE_DETAILS: + return (this.teamFolderCreateDetailsValue == other.teamFolderCreateDetailsValue) || (this.teamFolderCreateDetailsValue.equals(other.teamFolderCreateDetailsValue)); + case TEAM_FOLDER_DOWNGRADE_DETAILS: + return (this.teamFolderDowngradeDetailsValue == other.teamFolderDowngradeDetailsValue) || (this.teamFolderDowngradeDetailsValue.equals(other.teamFolderDowngradeDetailsValue)); + case TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS: + return (this.teamFolderPermanentlyDeleteDetailsValue == other.teamFolderPermanentlyDeleteDetailsValue) || (this.teamFolderPermanentlyDeleteDetailsValue.equals(other.teamFolderPermanentlyDeleteDetailsValue)); + case TEAM_FOLDER_RENAME_DETAILS: + return (this.teamFolderRenameDetailsValue == other.teamFolderRenameDetailsValue) || (this.teamFolderRenameDetailsValue.equals(other.teamFolderRenameDetailsValue)); + case TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS: + return (this.teamSelectiveSyncSettingsChangedDetailsValue == other.teamSelectiveSyncSettingsChangedDetailsValue) || (this.teamSelectiveSyncSettingsChangedDetailsValue.equals(other.teamSelectiveSyncSettingsChangedDetailsValue)); + case ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS: + return (this.accountCaptureChangePolicyDetailsValue == other.accountCaptureChangePolicyDetailsValue) || (this.accountCaptureChangePolicyDetailsValue.equals(other.accountCaptureChangePolicyDetailsValue)); + case ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS: + return (this.adminEmailRemindersChangedDetailsValue == other.adminEmailRemindersChangedDetailsValue) || (this.adminEmailRemindersChangedDetailsValue.equals(other.adminEmailRemindersChangedDetailsValue)); + case ALLOW_DOWNLOAD_DISABLED_DETAILS: + return (this.allowDownloadDisabledDetailsValue == other.allowDownloadDisabledDetailsValue) || (this.allowDownloadDisabledDetailsValue.equals(other.allowDownloadDisabledDetailsValue)); + case ALLOW_DOWNLOAD_ENABLED_DETAILS: + return (this.allowDownloadEnabledDetailsValue == other.allowDownloadEnabledDetailsValue) || (this.allowDownloadEnabledDetailsValue.equals(other.allowDownloadEnabledDetailsValue)); + case APP_PERMISSIONS_CHANGED_DETAILS: + return (this.appPermissionsChangedDetailsValue == other.appPermissionsChangedDetailsValue) || (this.appPermissionsChangedDetailsValue.equals(other.appPermissionsChangedDetailsValue)); + case CAMERA_UPLOADS_POLICY_CHANGED_DETAILS: + return (this.cameraUploadsPolicyChangedDetailsValue == other.cameraUploadsPolicyChangedDetailsValue) || (this.cameraUploadsPolicyChangedDetailsValue.equals(other.cameraUploadsPolicyChangedDetailsValue)); + case CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS: + return (this.captureTranscriptPolicyChangedDetailsValue == other.captureTranscriptPolicyChangedDetailsValue) || (this.captureTranscriptPolicyChangedDetailsValue.equals(other.captureTranscriptPolicyChangedDetailsValue)); + case CLASSIFICATION_CHANGE_POLICY_DETAILS: + return (this.classificationChangePolicyDetailsValue == other.classificationChangePolicyDetailsValue) || (this.classificationChangePolicyDetailsValue.equals(other.classificationChangePolicyDetailsValue)); + case COMPUTER_BACKUP_POLICY_CHANGED_DETAILS: + return (this.computerBackupPolicyChangedDetailsValue == other.computerBackupPolicyChangedDetailsValue) || (this.computerBackupPolicyChangedDetailsValue.equals(other.computerBackupPolicyChangedDetailsValue)); + case CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS: + return (this.contentAdministrationPolicyChangedDetailsValue == other.contentAdministrationPolicyChangedDetailsValue) || (this.contentAdministrationPolicyChangedDetailsValue.equals(other.contentAdministrationPolicyChangedDetailsValue)); + case DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS: + return (this.dataPlacementRestrictionChangePolicyDetailsValue == other.dataPlacementRestrictionChangePolicyDetailsValue) || (this.dataPlacementRestrictionChangePolicyDetailsValue.equals(other.dataPlacementRestrictionChangePolicyDetailsValue)); + case DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS: + return (this.dataPlacementRestrictionSatisfyPolicyDetailsValue == other.dataPlacementRestrictionSatisfyPolicyDetailsValue) || (this.dataPlacementRestrictionSatisfyPolicyDetailsValue.equals(other.dataPlacementRestrictionSatisfyPolicyDetailsValue)); + case DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS: + return (this.deviceApprovalsAddExceptionDetailsValue == other.deviceApprovalsAddExceptionDetailsValue) || (this.deviceApprovalsAddExceptionDetailsValue.equals(other.deviceApprovalsAddExceptionDetailsValue)); + case DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS: + return (this.deviceApprovalsChangeDesktopPolicyDetailsValue == other.deviceApprovalsChangeDesktopPolicyDetailsValue) || (this.deviceApprovalsChangeDesktopPolicyDetailsValue.equals(other.deviceApprovalsChangeDesktopPolicyDetailsValue)); + case DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS: + return (this.deviceApprovalsChangeMobilePolicyDetailsValue == other.deviceApprovalsChangeMobilePolicyDetailsValue) || (this.deviceApprovalsChangeMobilePolicyDetailsValue.equals(other.deviceApprovalsChangeMobilePolicyDetailsValue)); + case DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS: + return (this.deviceApprovalsChangeOverageActionDetailsValue == other.deviceApprovalsChangeOverageActionDetailsValue) || (this.deviceApprovalsChangeOverageActionDetailsValue.equals(other.deviceApprovalsChangeOverageActionDetailsValue)); + case DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS: + return (this.deviceApprovalsChangeUnlinkActionDetailsValue == other.deviceApprovalsChangeUnlinkActionDetailsValue) || (this.deviceApprovalsChangeUnlinkActionDetailsValue.equals(other.deviceApprovalsChangeUnlinkActionDetailsValue)); + case DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS: + return (this.deviceApprovalsRemoveExceptionDetailsValue == other.deviceApprovalsRemoveExceptionDetailsValue) || (this.deviceApprovalsRemoveExceptionDetailsValue.equals(other.deviceApprovalsRemoveExceptionDetailsValue)); + case DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS: + return (this.directoryRestrictionsAddMembersDetailsValue == other.directoryRestrictionsAddMembersDetailsValue) || (this.directoryRestrictionsAddMembersDetailsValue.equals(other.directoryRestrictionsAddMembersDetailsValue)); + case DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS: + return (this.directoryRestrictionsRemoveMembersDetailsValue == other.directoryRestrictionsRemoveMembersDetailsValue) || (this.directoryRestrictionsRemoveMembersDetailsValue.equals(other.directoryRestrictionsRemoveMembersDetailsValue)); + case DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS: + return (this.dropboxPasswordsPolicyChangedDetailsValue == other.dropboxPasswordsPolicyChangedDetailsValue) || (this.dropboxPasswordsPolicyChangedDetailsValue.equals(other.dropboxPasswordsPolicyChangedDetailsValue)); + case EMAIL_INGEST_POLICY_CHANGED_DETAILS: + return (this.emailIngestPolicyChangedDetailsValue == other.emailIngestPolicyChangedDetailsValue) || (this.emailIngestPolicyChangedDetailsValue.equals(other.emailIngestPolicyChangedDetailsValue)); + case EMM_ADD_EXCEPTION_DETAILS: + return (this.emmAddExceptionDetailsValue == other.emmAddExceptionDetailsValue) || (this.emmAddExceptionDetailsValue.equals(other.emmAddExceptionDetailsValue)); + case EMM_CHANGE_POLICY_DETAILS: + return (this.emmChangePolicyDetailsValue == other.emmChangePolicyDetailsValue) || (this.emmChangePolicyDetailsValue.equals(other.emmChangePolicyDetailsValue)); + case EMM_REMOVE_EXCEPTION_DETAILS: + return (this.emmRemoveExceptionDetailsValue == other.emmRemoveExceptionDetailsValue) || (this.emmRemoveExceptionDetailsValue.equals(other.emmRemoveExceptionDetailsValue)); + case EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS: + return (this.extendedVersionHistoryChangePolicyDetailsValue == other.extendedVersionHistoryChangePolicyDetailsValue) || (this.extendedVersionHistoryChangePolicyDetailsValue.equals(other.extendedVersionHistoryChangePolicyDetailsValue)); + case EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS: + return (this.externalDriveBackupPolicyChangedDetailsValue == other.externalDriveBackupPolicyChangedDetailsValue) || (this.externalDriveBackupPolicyChangedDetailsValue.equals(other.externalDriveBackupPolicyChangedDetailsValue)); + case FILE_COMMENTS_CHANGE_POLICY_DETAILS: + return (this.fileCommentsChangePolicyDetailsValue == other.fileCommentsChangePolicyDetailsValue) || (this.fileCommentsChangePolicyDetailsValue.equals(other.fileCommentsChangePolicyDetailsValue)); + case FILE_LOCKING_POLICY_CHANGED_DETAILS: + return (this.fileLockingPolicyChangedDetailsValue == other.fileLockingPolicyChangedDetailsValue) || (this.fileLockingPolicyChangedDetailsValue.equals(other.fileLockingPolicyChangedDetailsValue)); + case FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS: + return (this.fileProviderMigrationPolicyChangedDetailsValue == other.fileProviderMigrationPolicyChangedDetailsValue) || (this.fileProviderMigrationPolicyChangedDetailsValue.equals(other.fileProviderMigrationPolicyChangedDetailsValue)); + case FILE_REQUESTS_CHANGE_POLICY_DETAILS: + return (this.fileRequestsChangePolicyDetailsValue == other.fileRequestsChangePolicyDetailsValue) || (this.fileRequestsChangePolicyDetailsValue.equals(other.fileRequestsChangePolicyDetailsValue)); + case FILE_REQUESTS_EMAILS_ENABLED_DETAILS: + return (this.fileRequestsEmailsEnabledDetailsValue == other.fileRequestsEmailsEnabledDetailsValue) || (this.fileRequestsEmailsEnabledDetailsValue.equals(other.fileRequestsEmailsEnabledDetailsValue)); + case FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS: + return (this.fileRequestsEmailsRestrictedToTeamOnlyDetailsValue == other.fileRequestsEmailsRestrictedToTeamOnlyDetailsValue) || (this.fileRequestsEmailsRestrictedToTeamOnlyDetailsValue.equals(other.fileRequestsEmailsRestrictedToTeamOnlyDetailsValue)); + case FILE_TRANSFERS_POLICY_CHANGED_DETAILS: + return (this.fileTransfersPolicyChangedDetailsValue == other.fileTransfersPolicyChangedDetailsValue) || (this.fileTransfersPolicyChangedDetailsValue.equals(other.fileTransfersPolicyChangedDetailsValue)); + case FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS: + return (this.folderLinkRestrictionPolicyChangedDetailsValue == other.folderLinkRestrictionPolicyChangedDetailsValue) || (this.folderLinkRestrictionPolicyChangedDetailsValue.equals(other.folderLinkRestrictionPolicyChangedDetailsValue)); + case GOOGLE_SSO_CHANGE_POLICY_DETAILS: + return (this.googleSsoChangePolicyDetailsValue == other.googleSsoChangePolicyDetailsValue) || (this.googleSsoChangePolicyDetailsValue.equals(other.googleSsoChangePolicyDetailsValue)); + case GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS: + return (this.groupUserManagementChangePolicyDetailsValue == other.groupUserManagementChangePolicyDetailsValue) || (this.groupUserManagementChangePolicyDetailsValue.equals(other.groupUserManagementChangePolicyDetailsValue)); + case INTEGRATION_POLICY_CHANGED_DETAILS: + return (this.integrationPolicyChangedDetailsValue == other.integrationPolicyChangedDetailsValue) || (this.integrationPolicyChangedDetailsValue.equals(other.integrationPolicyChangedDetailsValue)); + case INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS: + return (this.inviteAcceptanceEmailPolicyChangedDetailsValue == other.inviteAcceptanceEmailPolicyChangedDetailsValue) || (this.inviteAcceptanceEmailPolicyChangedDetailsValue.equals(other.inviteAcceptanceEmailPolicyChangedDetailsValue)); + case MEMBER_REQUESTS_CHANGE_POLICY_DETAILS: + return (this.memberRequestsChangePolicyDetailsValue == other.memberRequestsChangePolicyDetailsValue) || (this.memberRequestsChangePolicyDetailsValue.equals(other.memberRequestsChangePolicyDetailsValue)); + case MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS: + return (this.memberSendInvitePolicyChangedDetailsValue == other.memberSendInvitePolicyChangedDetailsValue) || (this.memberSendInvitePolicyChangedDetailsValue.equals(other.memberSendInvitePolicyChangedDetailsValue)); + case MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS: + return (this.memberSpaceLimitsAddExceptionDetailsValue == other.memberSpaceLimitsAddExceptionDetailsValue) || (this.memberSpaceLimitsAddExceptionDetailsValue.equals(other.memberSpaceLimitsAddExceptionDetailsValue)); + case MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS: + return (this.memberSpaceLimitsChangeCapsTypePolicyDetailsValue == other.memberSpaceLimitsChangeCapsTypePolicyDetailsValue) || (this.memberSpaceLimitsChangeCapsTypePolicyDetailsValue.equals(other.memberSpaceLimitsChangeCapsTypePolicyDetailsValue)); + case MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS: + return (this.memberSpaceLimitsChangePolicyDetailsValue == other.memberSpaceLimitsChangePolicyDetailsValue) || (this.memberSpaceLimitsChangePolicyDetailsValue.equals(other.memberSpaceLimitsChangePolicyDetailsValue)); + case MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS: + return (this.memberSpaceLimitsRemoveExceptionDetailsValue == other.memberSpaceLimitsRemoveExceptionDetailsValue) || (this.memberSpaceLimitsRemoveExceptionDetailsValue.equals(other.memberSpaceLimitsRemoveExceptionDetailsValue)); + case MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS: + return (this.memberSuggestionsChangePolicyDetailsValue == other.memberSuggestionsChangePolicyDetailsValue) || (this.memberSuggestionsChangePolicyDetailsValue.equals(other.memberSuggestionsChangePolicyDetailsValue)); + case MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS: + return (this.microsoftOfficeAddinChangePolicyDetailsValue == other.microsoftOfficeAddinChangePolicyDetailsValue) || (this.microsoftOfficeAddinChangePolicyDetailsValue.equals(other.microsoftOfficeAddinChangePolicyDetailsValue)); + case NETWORK_CONTROL_CHANGE_POLICY_DETAILS: + return (this.networkControlChangePolicyDetailsValue == other.networkControlChangePolicyDetailsValue) || (this.networkControlChangePolicyDetailsValue.equals(other.networkControlChangePolicyDetailsValue)); + case PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS: + return (this.paperChangeDeploymentPolicyDetailsValue == other.paperChangeDeploymentPolicyDetailsValue) || (this.paperChangeDeploymentPolicyDetailsValue.equals(other.paperChangeDeploymentPolicyDetailsValue)); + case PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS: + return (this.paperChangeMemberLinkPolicyDetailsValue == other.paperChangeMemberLinkPolicyDetailsValue) || (this.paperChangeMemberLinkPolicyDetailsValue.equals(other.paperChangeMemberLinkPolicyDetailsValue)); + case PAPER_CHANGE_MEMBER_POLICY_DETAILS: + return (this.paperChangeMemberPolicyDetailsValue == other.paperChangeMemberPolicyDetailsValue) || (this.paperChangeMemberPolicyDetailsValue.equals(other.paperChangeMemberPolicyDetailsValue)); + case PAPER_CHANGE_POLICY_DETAILS: + return (this.paperChangePolicyDetailsValue == other.paperChangePolicyDetailsValue) || (this.paperChangePolicyDetailsValue.equals(other.paperChangePolicyDetailsValue)); + case PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS: + return (this.paperDefaultFolderPolicyChangedDetailsValue == other.paperDefaultFolderPolicyChangedDetailsValue) || (this.paperDefaultFolderPolicyChangedDetailsValue.equals(other.paperDefaultFolderPolicyChangedDetailsValue)); + case PAPER_DESKTOP_POLICY_CHANGED_DETAILS: + return (this.paperDesktopPolicyChangedDetailsValue == other.paperDesktopPolicyChangedDetailsValue) || (this.paperDesktopPolicyChangedDetailsValue.equals(other.paperDesktopPolicyChangedDetailsValue)); + case PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS: + return (this.paperEnabledUsersGroupAdditionDetailsValue == other.paperEnabledUsersGroupAdditionDetailsValue) || (this.paperEnabledUsersGroupAdditionDetailsValue.equals(other.paperEnabledUsersGroupAdditionDetailsValue)); + case PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS: + return (this.paperEnabledUsersGroupRemovalDetailsValue == other.paperEnabledUsersGroupRemovalDetailsValue) || (this.paperEnabledUsersGroupRemovalDetailsValue.equals(other.paperEnabledUsersGroupRemovalDetailsValue)); + case PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS: + return (this.passwordStrengthRequirementsChangePolicyDetailsValue == other.passwordStrengthRequirementsChangePolicyDetailsValue) || (this.passwordStrengthRequirementsChangePolicyDetailsValue.equals(other.passwordStrengthRequirementsChangePolicyDetailsValue)); + case PERMANENT_DELETE_CHANGE_POLICY_DETAILS: + return (this.permanentDeleteChangePolicyDetailsValue == other.permanentDeleteChangePolicyDetailsValue) || (this.permanentDeleteChangePolicyDetailsValue.equals(other.permanentDeleteChangePolicyDetailsValue)); + case RESELLER_SUPPORT_CHANGE_POLICY_DETAILS: + return (this.resellerSupportChangePolicyDetailsValue == other.resellerSupportChangePolicyDetailsValue) || (this.resellerSupportChangePolicyDetailsValue.equals(other.resellerSupportChangePolicyDetailsValue)); + case REWIND_POLICY_CHANGED_DETAILS: + return (this.rewindPolicyChangedDetailsValue == other.rewindPolicyChangedDetailsValue) || (this.rewindPolicyChangedDetailsValue.equals(other.rewindPolicyChangedDetailsValue)); + case SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS: + return (this.sendForSignaturePolicyChangedDetailsValue == other.sendForSignaturePolicyChangedDetailsValue) || (this.sendForSignaturePolicyChangedDetailsValue.equals(other.sendForSignaturePolicyChangedDetailsValue)); + case SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS: + return (this.sharingChangeFolderJoinPolicyDetailsValue == other.sharingChangeFolderJoinPolicyDetailsValue) || (this.sharingChangeFolderJoinPolicyDetailsValue.equals(other.sharingChangeFolderJoinPolicyDetailsValue)); + case SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS: + return (this.sharingChangeLinkAllowChangeExpirationPolicyDetailsValue == other.sharingChangeLinkAllowChangeExpirationPolicyDetailsValue) || (this.sharingChangeLinkAllowChangeExpirationPolicyDetailsValue.equals(other.sharingChangeLinkAllowChangeExpirationPolicyDetailsValue)); + case SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS: + return (this.sharingChangeLinkDefaultExpirationPolicyDetailsValue == other.sharingChangeLinkDefaultExpirationPolicyDetailsValue) || (this.sharingChangeLinkDefaultExpirationPolicyDetailsValue.equals(other.sharingChangeLinkDefaultExpirationPolicyDetailsValue)); + case SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS: + return (this.sharingChangeLinkEnforcePasswordPolicyDetailsValue == other.sharingChangeLinkEnforcePasswordPolicyDetailsValue) || (this.sharingChangeLinkEnforcePasswordPolicyDetailsValue.equals(other.sharingChangeLinkEnforcePasswordPolicyDetailsValue)); + case SHARING_CHANGE_LINK_POLICY_DETAILS: + return (this.sharingChangeLinkPolicyDetailsValue == other.sharingChangeLinkPolicyDetailsValue) || (this.sharingChangeLinkPolicyDetailsValue.equals(other.sharingChangeLinkPolicyDetailsValue)); + case SHARING_CHANGE_MEMBER_POLICY_DETAILS: + return (this.sharingChangeMemberPolicyDetailsValue == other.sharingChangeMemberPolicyDetailsValue) || (this.sharingChangeMemberPolicyDetailsValue.equals(other.sharingChangeMemberPolicyDetailsValue)); + case SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS: + return (this.showcaseChangeDownloadPolicyDetailsValue == other.showcaseChangeDownloadPolicyDetailsValue) || (this.showcaseChangeDownloadPolicyDetailsValue.equals(other.showcaseChangeDownloadPolicyDetailsValue)); + case SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS: + return (this.showcaseChangeEnabledPolicyDetailsValue == other.showcaseChangeEnabledPolicyDetailsValue) || (this.showcaseChangeEnabledPolicyDetailsValue.equals(other.showcaseChangeEnabledPolicyDetailsValue)); + case SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS: + return (this.showcaseChangeExternalSharingPolicyDetailsValue == other.showcaseChangeExternalSharingPolicyDetailsValue) || (this.showcaseChangeExternalSharingPolicyDetailsValue.equals(other.showcaseChangeExternalSharingPolicyDetailsValue)); + case SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS: + return (this.smarterSmartSyncPolicyChangedDetailsValue == other.smarterSmartSyncPolicyChangedDetailsValue) || (this.smarterSmartSyncPolicyChangedDetailsValue.equals(other.smarterSmartSyncPolicyChangedDetailsValue)); + case SMART_SYNC_CHANGE_POLICY_DETAILS: + return (this.smartSyncChangePolicyDetailsValue == other.smartSyncChangePolicyDetailsValue) || (this.smartSyncChangePolicyDetailsValue.equals(other.smartSyncChangePolicyDetailsValue)); + case SMART_SYNC_NOT_OPT_OUT_DETAILS: + return (this.smartSyncNotOptOutDetailsValue == other.smartSyncNotOptOutDetailsValue) || (this.smartSyncNotOptOutDetailsValue.equals(other.smartSyncNotOptOutDetailsValue)); + case SMART_SYNC_OPT_OUT_DETAILS: + return (this.smartSyncOptOutDetailsValue == other.smartSyncOptOutDetailsValue) || (this.smartSyncOptOutDetailsValue.equals(other.smartSyncOptOutDetailsValue)); + case SSO_CHANGE_POLICY_DETAILS: + return (this.ssoChangePolicyDetailsValue == other.ssoChangePolicyDetailsValue) || (this.ssoChangePolicyDetailsValue.equals(other.ssoChangePolicyDetailsValue)); + case TEAM_BRANDING_POLICY_CHANGED_DETAILS: + return (this.teamBrandingPolicyChangedDetailsValue == other.teamBrandingPolicyChangedDetailsValue) || (this.teamBrandingPolicyChangedDetailsValue.equals(other.teamBrandingPolicyChangedDetailsValue)); + case TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS: + return (this.teamExtensionsPolicyChangedDetailsValue == other.teamExtensionsPolicyChangedDetailsValue) || (this.teamExtensionsPolicyChangedDetailsValue.equals(other.teamExtensionsPolicyChangedDetailsValue)); + case TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS: + return (this.teamSelectiveSyncPolicyChangedDetailsValue == other.teamSelectiveSyncPolicyChangedDetailsValue) || (this.teamSelectiveSyncPolicyChangedDetailsValue.equals(other.teamSelectiveSyncPolicyChangedDetailsValue)); + case TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS: + return (this.teamSharingWhitelistSubjectsChangedDetailsValue == other.teamSharingWhitelistSubjectsChangedDetailsValue) || (this.teamSharingWhitelistSubjectsChangedDetailsValue.equals(other.teamSharingWhitelistSubjectsChangedDetailsValue)); + case TFA_ADD_EXCEPTION_DETAILS: + return (this.tfaAddExceptionDetailsValue == other.tfaAddExceptionDetailsValue) || (this.tfaAddExceptionDetailsValue.equals(other.tfaAddExceptionDetailsValue)); + case TFA_CHANGE_POLICY_DETAILS: + return (this.tfaChangePolicyDetailsValue == other.tfaChangePolicyDetailsValue) || (this.tfaChangePolicyDetailsValue.equals(other.tfaChangePolicyDetailsValue)); + case TFA_REMOVE_EXCEPTION_DETAILS: + return (this.tfaRemoveExceptionDetailsValue == other.tfaRemoveExceptionDetailsValue) || (this.tfaRemoveExceptionDetailsValue.equals(other.tfaRemoveExceptionDetailsValue)); + case TWO_ACCOUNT_CHANGE_POLICY_DETAILS: + return (this.twoAccountChangePolicyDetailsValue == other.twoAccountChangePolicyDetailsValue) || (this.twoAccountChangePolicyDetailsValue.equals(other.twoAccountChangePolicyDetailsValue)); + case VIEWER_INFO_POLICY_CHANGED_DETAILS: + return (this.viewerInfoPolicyChangedDetailsValue == other.viewerInfoPolicyChangedDetailsValue) || (this.viewerInfoPolicyChangedDetailsValue.equals(other.viewerInfoPolicyChangedDetailsValue)); + case WATERMARKING_POLICY_CHANGED_DETAILS: + return (this.watermarkingPolicyChangedDetailsValue == other.watermarkingPolicyChangedDetailsValue) || (this.watermarkingPolicyChangedDetailsValue.equals(other.watermarkingPolicyChangedDetailsValue)); + case WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS: + return (this.webSessionsChangeActiveSessionLimitDetailsValue == other.webSessionsChangeActiveSessionLimitDetailsValue) || (this.webSessionsChangeActiveSessionLimitDetailsValue.equals(other.webSessionsChangeActiveSessionLimitDetailsValue)); + case WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS: + return (this.webSessionsChangeFixedLengthPolicyDetailsValue == other.webSessionsChangeFixedLengthPolicyDetailsValue) || (this.webSessionsChangeFixedLengthPolicyDetailsValue.equals(other.webSessionsChangeFixedLengthPolicyDetailsValue)); + case WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS: + return (this.webSessionsChangeIdleLengthPolicyDetailsValue == other.webSessionsChangeIdleLengthPolicyDetailsValue) || (this.webSessionsChangeIdleLengthPolicyDetailsValue.equals(other.webSessionsChangeIdleLengthPolicyDetailsValue)); + case DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS: + return (this.dataResidencyMigrationRequestSuccessfulDetailsValue == other.dataResidencyMigrationRequestSuccessfulDetailsValue) || (this.dataResidencyMigrationRequestSuccessfulDetailsValue.equals(other.dataResidencyMigrationRequestSuccessfulDetailsValue)); + case DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS: + return (this.dataResidencyMigrationRequestUnsuccessfulDetailsValue == other.dataResidencyMigrationRequestUnsuccessfulDetailsValue) || (this.dataResidencyMigrationRequestUnsuccessfulDetailsValue.equals(other.dataResidencyMigrationRequestUnsuccessfulDetailsValue)); + case TEAM_MERGE_FROM_DETAILS: + return (this.teamMergeFromDetailsValue == other.teamMergeFromDetailsValue) || (this.teamMergeFromDetailsValue.equals(other.teamMergeFromDetailsValue)); + case TEAM_MERGE_TO_DETAILS: + return (this.teamMergeToDetailsValue == other.teamMergeToDetailsValue) || (this.teamMergeToDetailsValue.equals(other.teamMergeToDetailsValue)); + case TEAM_PROFILE_ADD_BACKGROUND_DETAILS: + return (this.teamProfileAddBackgroundDetailsValue == other.teamProfileAddBackgroundDetailsValue) || (this.teamProfileAddBackgroundDetailsValue.equals(other.teamProfileAddBackgroundDetailsValue)); + case TEAM_PROFILE_ADD_LOGO_DETAILS: + return (this.teamProfileAddLogoDetailsValue == other.teamProfileAddLogoDetailsValue) || (this.teamProfileAddLogoDetailsValue.equals(other.teamProfileAddLogoDetailsValue)); + case TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS: + return (this.teamProfileChangeBackgroundDetailsValue == other.teamProfileChangeBackgroundDetailsValue) || (this.teamProfileChangeBackgroundDetailsValue.equals(other.teamProfileChangeBackgroundDetailsValue)); + case TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS: + return (this.teamProfileChangeDefaultLanguageDetailsValue == other.teamProfileChangeDefaultLanguageDetailsValue) || (this.teamProfileChangeDefaultLanguageDetailsValue.equals(other.teamProfileChangeDefaultLanguageDetailsValue)); + case TEAM_PROFILE_CHANGE_LOGO_DETAILS: + return (this.teamProfileChangeLogoDetailsValue == other.teamProfileChangeLogoDetailsValue) || (this.teamProfileChangeLogoDetailsValue.equals(other.teamProfileChangeLogoDetailsValue)); + case TEAM_PROFILE_CHANGE_NAME_DETAILS: + return (this.teamProfileChangeNameDetailsValue == other.teamProfileChangeNameDetailsValue) || (this.teamProfileChangeNameDetailsValue.equals(other.teamProfileChangeNameDetailsValue)); + case TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS: + return (this.teamProfileRemoveBackgroundDetailsValue == other.teamProfileRemoveBackgroundDetailsValue) || (this.teamProfileRemoveBackgroundDetailsValue.equals(other.teamProfileRemoveBackgroundDetailsValue)); + case TEAM_PROFILE_REMOVE_LOGO_DETAILS: + return (this.teamProfileRemoveLogoDetailsValue == other.teamProfileRemoveLogoDetailsValue) || (this.teamProfileRemoveLogoDetailsValue.equals(other.teamProfileRemoveLogoDetailsValue)); + case TFA_ADD_BACKUP_PHONE_DETAILS: + return (this.tfaAddBackupPhoneDetailsValue == other.tfaAddBackupPhoneDetailsValue) || (this.tfaAddBackupPhoneDetailsValue.equals(other.tfaAddBackupPhoneDetailsValue)); + case TFA_ADD_SECURITY_KEY_DETAILS: + return (this.tfaAddSecurityKeyDetailsValue == other.tfaAddSecurityKeyDetailsValue) || (this.tfaAddSecurityKeyDetailsValue.equals(other.tfaAddSecurityKeyDetailsValue)); + case TFA_CHANGE_BACKUP_PHONE_DETAILS: + return (this.tfaChangeBackupPhoneDetailsValue == other.tfaChangeBackupPhoneDetailsValue) || (this.tfaChangeBackupPhoneDetailsValue.equals(other.tfaChangeBackupPhoneDetailsValue)); + case TFA_CHANGE_STATUS_DETAILS: + return (this.tfaChangeStatusDetailsValue == other.tfaChangeStatusDetailsValue) || (this.tfaChangeStatusDetailsValue.equals(other.tfaChangeStatusDetailsValue)); + case TFA_REMOVE_BACKUP_PHONE_DETAILS: + return (this.tfaRemoveBackupPhoneDetailsValue == other.tfaRemoveBackupPhoneDetailsValue) || (this.tfaRemoveBackupPhoneDetailsValue.equals(other.tfaRemoveBackupPhoneDetailsValue)); + case TFA_REMOVE_SECURITY_KEY_DETAILS: + return (this.tfaRemoveSecurityKeyDetailsValue == other.tfaRemoveSecurityKeyDetailsValue) || (this.tfaRemoveSecurityKeyDetailsValue.equals(other.tfaRemoveSecurityKeyDetailsValue)); + case TFA_RESET_DETAILS: + return (this.tfaResetDetailsValue == other.tfaResetDetailsValue) || (this.tfaResetDetailsValue.equals(other.tfaResetDetailsValue)); + case CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS: + return (this.changedEnterpriseAdminRoleDetailsValue == other.changedEnterpriseAdminRoleDetailsValue) || (this.changedEnterpriseAdminRoleDetailsValue.equals(other.changedEnterpriseAdminRoleDetailsValue)); + case CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS: + return (this.changedEnterpriseConnectedTeamStatusDetailsValue == other.changedEnterpriseConnectedTeamStatusDetailsValue) || (this.changedEnterpriseConnectedTeamStatusDetailsValue.equals(other.changedEnterpriseConnectedTeamStatusDetailsValue)); + case ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS: + return (this.endedEnterpriseAdminSessionDetailsValue == other.endedEnterpriseAdminSessionDetailsValue) || (this.endedEnterpriseAdminSessionDetailsValue.equals(other.endedEnterpriseAdminSessionDetailsValue)); + case ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS: + return (this.endedEnterpriseAdminSessionDeprecatedDetailsValue == other.endedEnterpriseAdminSessionDeprecatedDetailsValue) || (this.endedEnterpriseAdminSessionDeprecatedDetailsValue.equals(other.endedEnterpriseAdminSessionDeprecatedDetailsValue)); + case ENTERPRISE_SETTINGS_LOCKING_DETAILS: + return (this.enterpriseSettingsLockingDetailsValue == other.enterpriseSettingsLockingDetailsValue) || (this.enterpriseSettingsLockingDetailsValue.equals(other.enterpriseSettingsLockingDetailsValue)); + case GUEST_ADMIN_CHANGE_STATUS_DETAILS: + return (this.guestAdminChangeStatusDetailsValue == other.guestAdminChangeStatusDetailsValue) || (this.guestAdminChangeStatusDetailsValue.equals(other.guestAdminChangeStatusDetailsValue)); + case STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS: + return (this.startedEnterpriseAdminSessionDetailsValue == other.startedEnterpriseAdminSessionDetailsValue) || (this.startedEnterpriseAdminSessionDetailsValue.equals(other.startedEnterpriseAdminSessionDetailsValue)); + case TEAM_MERGE_REQUEST_ACCEPTED_DETAILS: + return (this.teamMergeRequestAcceptedDetailsValue == other.teamMergeRequestAcceptedDetailsValue) || (this.teamMergeRequestAcceptedDetailsValue.equals(other.teamMergeRequestAcceptedDetailsValue)); + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS: + return (this.teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue == other.teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue) || (this.teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue.equals(other.teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS: + return (this.teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue == other.teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue) || (this.teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue.equals(other.teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS: + return (this.teamMergeRequestAutoCanceledDetailsValue == other.teamMergeRequestAutoCanceledDetailsValue) || (this.teamMergeRequestAutoCanceledDetailsValue.equals(other.teamMergeRequestAutoCanceledDetailsValue)); + case TEAM_MERGE_REQUEST_CANCELED_DETAILS: + return (this.teamMergeRequestCanceledDetailsValue == other.teamMergeRequestCanceledDetailsValue) || (this.teamMergeRequestCanceledDetailsValue.equals(other.teamMergeRequestCanceledDetailsValue)); + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS: + return (this.teamMergeRequestCanceledShownToPrimaryTeamDetailsValue == other.teamMergeRequestCanceledShownToPrimaryTeamDetailsValue) || (this.teamMergeRequestCanceledShownToPrimaryTeamDetailsValue.equals(other.teamMergeRequestCanceledShownToPrimaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS: + return (this.teamMergeRequestCanceledShownToSecondaryTeamDetailsValue == other.teamMergeRequestCanceledShownToSecondaryTeamDetailsValue) || (this.teamMergeRequestCanceledShownToSecondaryTeamDetailsValue.equals(other.teamMergeRequestCanceledShownToSecondaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_EXPIRED_DETAILS: + return (this.teamMergeRequestExpiredDetailsValue == other.teamMergeRequestExpiredDetailsValue) || (this.teamMergeRequestExpiredDetailsValue.equals(other.teamMergeRequestExpiredDetailsValue)); + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS: + return (this.teamMergeRequestExpiredShownToPrimaryTeamDetailsValue == other.teamMergeRequestExpiredShownToPrimaryTeamDetailsValue) || (this.teamMergeRequestExpiredShownToPrimaryTeamDetailsValue.equals(other.teamMergeRequestExpiredShownToPrimaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS: + return (this.teamMergeRequestExpiredShownToSecondaryTeamDetailsValue == other.teamMergeRequestExpiredShownToSecondaryTeamDetailsValue) || (this.teamMergeRequestExpiredShownToSecondaryTeamDetailsValue.equals(other.teamMergeRequestExpiredShownToSecondaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS: + return (this.teamMergeRequestRejectedShownToPrimaryTeamDetailsValue == other.teamMergeRequestRejectedShownToPrimaryTeamDetailsValue) || (this.teamMergeRequestRejectedShownToPrimaryTeamDetailsValue.equals(other.teamMergeRequestRejectedShownToPrimaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS: + return (this.teamMergeRequestRejectedShownToSecondaryTeamDetailsValue == other.teamMergeRequestRejectedShownToSecondaryTeamDetailsValue) || (this.teamMergeRequestRejectedShownToSecondaryTeamDetailsValue.equals(other.teamMergeRequestRejectedShownToSecondaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_REMINDER_DETAILS: + return (this.teamMergeRequestReminderDetailsValue == other.teamMergeRequestReminderDetailsValue) || (this.teamMergeRequestReminderDetailsValue.equals(other.teamMergeRequestReminderDetailsValue)); + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS: + return (this.teamMergeRequestReminderShownToPrimaryTeamDetailsValue == other.teamMergeRequestReminderShownToPrimaryTeamDetailsValue) || (this.teamMergeRequestReminderShownToPrimaryTeamDetailsValue.equals(other.teamMergeRequestReminderShownToPrimaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS: + return (this.teamMergeRequestReminderShownToSecondaryTeamDetailsValue == other.teamMergeRequestReminderShownToSecondaryTeamDetailsValue) || (this.teamMergeRequestReminderShownToSecondaryTeamDetailsValue.equals(other.teamMergeRequestReminderShownToSecondaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_REVOKED_DETAILS: + return (this.teamMergeRequestRevokedDetailsValue == other.teamMergeRequestRevokedDetailsValue) || (this.teamMergeRequestRevokedDetailsValue.equals(other.teamMergeRequestRevokedDetailsValue)); + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS: + return (this.teamMergeRequestSentShownToPrimaryTeamDetailsValue == other.teamMergeRequestSentShownToPrimaryTeamDetailsValue) || (this.teamMergeRequestSentShownToPrimaryTeamDetailsValue.equals(other.teamMergeRequestSentShownToPrimaryTeamDetailsValue)); + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS: + return (this.teamMergeRequestSentShownToSecondaryTeamDetailsValue == other.teamMergeRequestSentShownToSecondaryTeamDetailsValue) || (this.teamMergeRequestSentShownToSecondaryTeamDetailsValue.equals(other.teamMergeRequestSentShownToSecondaryTeamDetailsValue)); + case MISSING_DETAILS: + return (this.missingDetailsValue == other.missingDetailsValue) || (this.missingDetailsValue.equals(other.missingDetailsValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EventDetails value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ADMIN_ALERTING_ALERT_STATE_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("admin_alerting_alert_state_changed_details", g); + AdminAlertingAlertStateChangedDetails.Serializer.INSTANCE.serialize(value.adminAlertingAlertStateChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ADMIN_ALERTING_CHANGED_ALERT_CONFIG_DETAILS: { + g.writeStartObject(); + writeTag("admin_alerting_changed_alert_config_details", g); + AdminAlertingChangedAlertConfigDetails.Serializer.INSTANCE.serialize(value.adminAlertingChangedAlertConfigDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ADMIN_ALERTING_TRIGGERED_ALERT_DETAILS: { + g.writeStartObject(); + writeTag("admin_alerting_triggered_alert_details", g); + AdminAlertingTriggeredAlertDetails.Serializer.INSTANCE.serialize(value.adminAlertingTriggeredAlertDetailsValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_RESTORE_PROCESS_COMPLETED_DETAILS: { + g.writeStartObject(); + writeTag("ransomware_restore_process_completed_details", g); + RansomwareRestoreProcessCompletedDetails.Serializer.INSTANCE.serialize(value.ransomwareRestoreProcessCompletedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_RESTORE_PROCESS_STARTED_DETAILS: { + g.writeStartObject(); + writeTag("ransomware_restore_process_started_details", g); + RansomwareRestoreProcessStartedDetails.Serializer.INSTANCE.serialize(value.ransomwareRestoreProcessStartedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case APP_BLOCKED_BY_PERMISSIONS_DETAILS: { + g.writeStartObject(); + writeTag("app_blocked_by_permissions_details", g); + AppBlockedByPermissionsDetails.Serializer.INSTANCE.serialize(value.appBlockedByPermissionsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case APP_LINK_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("app_link_team_details", g); + AppLinkTeamDetails.Serializer.INSTANCE.serialize(value.appLinkTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case APP_LINK_USER_DETAILS: { + g.writeStartObject(); + writeTag("app_link_user_details", g); + AppLinkUserDetails.Serializer.INSTANCE.serialize(value.appLinkUserDetailsValue, g, true); + g.writeEndObject(); + break; + } + case APP_UNLINK_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("app_unlink_team_details", g); + AppUnlinkTeamDetails.Serializer.INSTANCE.serialize(value.appUnlinkTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case APP_UNLINK_USER_DETAILS: { + g.writeStartObject(); + writeTag("app_unlink_user_details", g); + AppUnlinkUserDetails.Serializer.INSTANCE.serialize(value.appUnlinkUserDetailsValue, g, true); + g.writeEndObject(); + break; + } + case INTEGRATION_CONNECTED_DETAILS: { + g.writeStartObject(); + writeTag("integration_connected_details", g); + IntegrationConnectedDetails.Serializer.INSTANCE.serialize(value.integrationConnectedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case INTEGRATION_DISCONNECTED_DETAILS: { + g.writeStartObject(); + writeTag("integration_disconnected_details", g); + IntegrationDisconnectedDetails.Serializer.INSTANCE.serialize(value.integrationDisconnectedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ADD_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("file_add_comment_details", g); + FileAddCommentDetails.Serializer.INSTANCE.serialize(value.fileAddCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_CHANGE_COMMENT_SUBSCRIPTION_DETAILS: { + g.writeStartObject(); + writeTag("file_change_comment_subscription_details", g); + FileChangeCommentSubscriptionDetails.Serializer.INSTANCE.serialize(value.fileChangeCommentSubscriptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_DELETE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("file_delete_comment_details", g); + FileDeleteCommentDetails.Serializer.INSTANCE.serialize(value.fileDeleteCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_EDIT_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("file_edit_comment_details", g); + FileEditCommentDetails.Serializer.INSTANCE.serialize(value.fileEditCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_LIKE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("file_like_comment_details", g); + FileLikeCommentDetails.Serializer.INSTANCE.serialize(value.fileLikeCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_RESOLVE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("file_resolve_comment_details", g); + FileResolveCommentDetails.Serializer.INSTANCE.serialize(value.fileResolveCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_UNLIKE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("file_unlike_comment_details", g); + FileUnlikeCommentDetails.Serializer.INSTANCE.serialize(value.fileUnlikeCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_UNRESOLVE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("file_unresolve_comment_details", g); + FileUnresolveCommentDetails.Serializer.INSTANCE.serialize(value.fileUnresolveCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_ADD_FOLDERS_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_add_folders_details", g); + GovernancePolicyAddFoldersDetails.Serializer.INSTANCE.serialize(value.governancePolicyAddFoldersDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_ADD_FOLDER_FAILED_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_add_folder_failed_details", g); + GovernancePolicyAddFolderFailedDetails.Serializer.INSTANCE.serialize(value.governancePolicyAddFolderFailedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_CONTENT_DISPOSED_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_content_disposed_details", g); + GovernancePolicyContentDisposedDetails.Serializer.INSTANCE.serialize(value.governancePolicyContentDisposedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_create_details", g); + GovernancePolicyCreateDetails.Serializer.INSTANCE.serialize(value.governancePolicyCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_delete_details", g); + GovernancePolicyDeleteDetails.Serializer.INSTANCE.serialize(value.governancePolicyDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EDIT_DETAILS_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_edit_details_details", g); + GovernancePolicyEditDetailsDetails.Serializer.INSTANCE.serialize(value.governancePolicyEditDetailsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EDIT_DURATION_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_edit_duration_details", g); + GovernancePolicyEditDurationDetails.Serializer.INSTANCE.serialize(value.governancePolicyEditDurationDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EXPORT_CREATED_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_export_created_details", g); + GovernancePolicyExportCreatedDetails.Serializer.INSTANCE.serialize(value.governancePolicyExportCreatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EXPORT_REMOVED_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_export_removed_details", g); + GovernancePolicyExportRemovedDetails.Serializer.INSTANCE.serialize(value.governancePolicyExportRemovedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_REMOVE_FOLDERS_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_remove_folders_details", g); + GovernancePolicyRemoveFoldersDetails.Serializer.INSTANCE.serialize(value.governancePolicyRemoveFoldersDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_REPORT_CREATED_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_report_created_details", g); + GovernancePolicyReportCreatedDetails.Serializer.INSTANCE.serialize(value.governancePolicyReportCreatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_zip_part_downloaded_details", g); + GovernancePolicyZipPartDownloadedDetails.Serializer.INSTANCE.serialize(value.governancePolicyZipPartDownloadedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_ACTIVATE_A_HOLD_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_activate_a_hold_details", g); + LegalHoldsActivateAHoldDetails.Serializer.INSTANCE.serialize(value.legalHoldsActivateAHoldDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_ADD_MEMBERS_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_add_members_details", g); + LegalHoldsAddMembersDetails.Serializer.INSTANCE.serialize(value.legalHoldsAddMembersDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_CHANGE_HOLD_DETAILS_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_change_hold_details_details", g); + LegalHoldsChangeHoldDetailsDetails.Serializer.INSTANCE.serialize(value.legalHoldsChangeHoldDetailsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_CHANGE_HOLD_NAME_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_change_hold_name_details", g); + LegalHoldsChangeHoldNameDetails.Serializer.INSTANCE.serialize(value.legalHoldsChangeHoldNameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_A_HOLD_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_export_a_hold_details", g); + LegalHoldsExportAHoldDetails.Serializer.INSTANCE.serialize(value.legalHoldsExportAHoldDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_CANCELLED_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_export_cancelled_details", g); + LegalHoldsExportCancelledDetails.Serializer.INSTANCE.serialize(value.legalHoldsExportCancelledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_DOWNLOADED_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_export_downloaded_details", g); + LegalHoldsExportDownloadedDetails.Serializer.INSTANCE.serialize(value.legalHoldsExportDownloadedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_REMOVED_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_export_removed_details", g); + LegalHoldsExportRemovedDetails.Serializer.INSTANCE.serialize(value.legalHoldsExportRemovedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_RELEASE_A_HOLD_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_release_a_hold_details", g); + LegalHoldsReleaseAHoldDetails.Serializer.INSTANCE.serialize(value.legalHoldsReleaseAHoldDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_REMOVE_MEMBERS_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_remove_members_details", g); + LegalHoldsRemoveMembersDetails.Serializer.INSTANCE.serialize(value.legalHoldsRemoveMembersDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_REPORT_A_HOLD_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_report_a_hold_details", g); + LegalHoldsReportAHoldDetails.Serializer.INSTANCE.serialize(value.legalHoldsReportAHoldDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_CHANGE_IP_DESKTOP_DETAILS: { + g.writeStartObject(); + writeTag("device_change_ip_desktop_details", g); + DeviceChangeIpDesktopDetails.Serializer.INSTANCE.serialize(value.deviceChangeIpDesktopDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_CHANGE_IP_MOBILE_DETAILS: { + g.writeStartObject(); + writeTag("device_change_ip_mobile_details", g); + DeviceChangeIpMobileDetails.Serializer.INSTANCE.serialize(value.deviceChangeIpMobileDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_CHANGE_IP_WEB_DETAILS: { + g.writeStartObject(); + writeTag("device_change_ip_web_details", g); + DeviceChangeIpWebDetails.Serializer.INSTANCE.serialize(value.deviceChangeIpWebDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_DELETE_ON_UNLINK_FAIL_DETAILS: { + g.writeStartObject(); + writeTag("device_delete_on_unlink_fail_details", g); + DeviceDeleteOnUnlinkFailDetails.Serializer.INSTANCE.serialize(value.deviceDeleteOnUnlinkFailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_DELETE_ON_UNLINK_SUCCESS_DETAILS: { + g.writeStartObject(); + writeTag("device_delete_on_unlink_success_details", g); + DeviceDeleteOnUnlinkSuccessDetails.Serializer.INSTANCE.serialize(value.deviceDeleteOnUnlinkSuccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_LINK_FAIL_DETAILS: { + g.writeStartObject(); + writeTag("device_link_fail_details", g); + DeviceLinkFailDetails.Serializer.INSTANCE.serialize(value.deviceLinkFailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_LINK_SUCCESS_DETAILS: { + g.writeStartObject(); + writeTag("device_link_success_details", g); + DeviceLinkSuccessDetails.Serializer.INSTANCE.serialize(value.deviceLinkSuccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_MANAGEMENT_DISABLED_DETAILS: { + g.writeStartObject(); + writeTag("device_management_disabled_details", g); + DeviceManagementDisabledDetails.Serializer.INSTANCE.serialize(value.deviceManagementDisabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_MANAGEMENT_ENABLED_DETAILS: { + g.writeStartObject(); + writeTag("device_management_enabled_details", g); + DeviceManagementEnabledDetails.Serializer.INSTANCE.serialize(value.deviceManagementEnabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_SYNC_BACKUP_STATUS_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("device_sync_backup_status_changed_details", g); + DeviceSyncBackupStatusChangedDetails.Serializer.INSTANCE.serialize(value.deviceSyncBackupStatusChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_UNLINK_DETAILS: { + g.writeStartObject(); + writeTag("device_unlink_details", g); + DeviceUnlinkDetails.Serializer.INSTANCE.serialize(value.deviceUnlinkDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DROPBOX_PASSWORDS_EXPORTED_DETAILS: { + g.writeStartObject(); + writeTag("dropbox_passwords_exported_details", g); + DropboxPasswordsExportedDetails.Serializer.INSTANCE.serialize(value.dropboxPasswordsExportedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED_DETAILS: { + g.writeStartObject(); + writeTag("dropbox_passwords_new_device_enrolled_details", g); + DropboxPasswordsNewDeviceEnrolledDetails.Serializer.INSTANCE.serialize(value.dropboxPasswordsNewDeviceEnrolledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMM_REFRESH_AUTH_TOKEN_DETAILS: { + g.writeStartObject(); + writeTag("emm_refresh_auth_token_details", g); + EmmRefreshAuthTokenDetails.Serializer.INSTANCE.serialize(value.emmRefreshAuthTokenDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED_DETAILS: { + g.writeStartObject(); + writeTag("external_drive_backup_eligibility_status_checked_details", g); + ExternalDriveBackupEligibilityStatusCheckedDetails.Serializer.INSTANCE.serialize(value.externalDriveBackupEligibilityStatusCheckedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("external_drive_backup_status_changed_details", g); + ExternalDriveBackupStatusChangedDetails.Serializer.INSTANCE.serialize(value.externalDriveBackupStatusChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_CHANGE_AVAILABILITY_DETAILS: { + g.writeStartObject(); + writeTag("account_capture_change_availability_details", g); + AccountCaptureChangeAvailabilityDetails.Serializer.INSTANCE.serialize(value.accountCaptureChangeAvailabilityDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_MIGRATE_ACCOUNT_DETAILS: { + g.writeStartObject(); + writeTag("account_capture_migrate_account_details", g); + AccountCaptureMigrateAccountDetails.Serializer.INSTANCE.serialize(value.accountCaptureMigrateAccountDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT_DETAILS: { + g.writeStartObject(); + writeTag("account_capture_notification_emails_sent_details", g); + AccountCaptureNotificationEmailsSentDetails.Serializer.INSTANCE.serialize(value.accountCaptureNotificationEmailsSentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT_DETAILS: { + g.writeStartObject(); + writeTag("account_capture_relinquish_account_details", g); + AccountCaptureRelinquishAccountDetails.Serializer.INSTANCE.serialize(value.accountCaptureRelinquishAccountDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DISABLED_DOMAIN_INVITES_DETAILS: { + g.writeStartObject(); + writeTag("disabled_domain_invites_details", g); + DisabledDomainInvitesDetails.Serializer.INSTANCE.serialize(value.disabledDomainInvitesDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("domain_invites_approve_request_to_join_team_details", g); + DomainInvitesApproveRequestToJoinTeamDetails.Serializer.INSTANCE.serialize(value.domainInvitesApproveRequestToJoinTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("domain_invites_decline_request_to_join_team_details", g); + DomainInvitesDeclineRequestToJoinTeamDetails.Serializer.INSTANCE.serialize(value.domainInvitesDeclineRequestToJoinTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_EMAIL_EXISTING_USERS_DETAILS: { + g.writeStartObject(); + writeTag("domain_invites_email_existing_users_details", g); + DomainInvitesEmailExistingUsersDetails.Serializer.INSTANCE.serialize(value.domainInvitesEmailExistingUsersDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("domain_invites_request_to_join_team_details", g); + DomainInvitesRequestToJoinTeamDetails.Serializer.INSTANCE.serialize(value.domainInvitesRequestToJoinTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO_DETAILS: { + g.writeStartObject(); + writeTag("domain_invites_set_invite_new_user_pref_to_no_details", g); + DomainInvitesSetInviteNewUserPrefToNoDetails.Serializer.INSTANCE.serialize(value.domainInvitesSetInviteNewUserPrefToNoDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES_DETAILS: { + g.writeStartObject(); + writeTag("domain_invites_set_invite_new_user_pref_to_yes_details", g); + DomainInvitesSetInviteNewUserPrefToYesDetails.Serializer.INSTANCE.serialize(value.domainInvitesSetInviteNewUserPrefToYesDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL_DETAILS: { + g.writeStartObject(); + writeTag("domain_verification_add_domain_fail_details", g); + DomainVerificationAddDomainFailDetails.Serializer.INSTANCE.serialize(value.domainVerificationAddDomainFailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS_DETAILS: { + g.writeStartObject(); + writeTag("domain_verification_add_domain_success_details", g); + DomainVerificationAddDomainSuccessDetails.Serializer.INSTANCE.serialize(value.domainVerificationAddDomainSuccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_VERIFICATION_REMOVE_DOMAIN_DETAILS: { + g.writeStartObject(); + writeTag("domain_verification_remove_domain_details", g); + DomainVerificationRemoveDomainDetails.Serializer.INSTANCE.serialize(value.domainVerificationRemoveDomainDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ENABLED_DOMAIN_INVITES_DETAILS: { + g.writeStartObject(); + writeTag("enabled_domain_invites_details", g); + EnabledDomainInvitesDetails.Serializer.INSTANCE.serialize(value.enabledDomainInvitesDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION_DETAILS: { + g.writeStartObject(); + writeTag("team_encryption_key_cancel_key_deletion_details", g); + TeamEncryptionKeyCancelKeyDeletionDetails.Serializer.INSTANCE.serialize(value.teamEncryptionKeyCancelKeyDeletionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_CREATE_KEY_DETAILS: { + g.writeStartObject(); + writeTag("team_encryption_key_create_key_details", g); + TeamEncryptionKeyCreateKeyDetails.Serializer.INSTANCE.serialize(value.teamEncryptionKeyCreateKeyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_DELETE_KEY_DETAILS: { + g.writeStartObject(); + writeTag("team_encryption_key_delete_key_details", g); + TeamEncryptionKeyDeleteKeyDetails.Serializer.INSTANCE.serialize(value.teamEncryptionKeyDeleteKeyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_DISABLE_KEY_DETAILS: { + g.writeStartObject(); + writeTag("team_encryption_key_disable_key_details", g); + TeamEncryptionKeyDisableKeyDetails.Serializer.INSTANCE.serialize(value.teamEncryptionKeyDisableKeyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_ENABLE_KEY_DETAILS: { + g.writeStartObject(); + writeTag("team_encryption_key_enable_key_details", g); + TeamEncryptionKeyEnableKeyDetails.Serializer.INSTANCE.serialize(value.teamEncryptionKeyEnableKeyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_ROTATE_KEY_DETAILS: { + g.writeStartObject(); + writeTag("team_encryption_key_rotate_key_details", g); + TeamEncryptionKeyRotateKeyDetails.Serializer.INSTANCE.serialize(value.teamEncryptionKeyRotateKeyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION_DETAILS: { + g.writeStartObject(); + writeTag("team_encryption_key_schedule_key_deletion_details", g); + TeamEncryptionKeyScheduleKeyDeletionDetails.Serializer.INSTANCE.serialize(value.teamEncryptionKeyScheduleKeyDeletionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case APPLY_NAMING_CONVENTION_DETAILS: { + g.writeStartObject(); + writeTag("apply_naming_convention_details", g); + ApplyNamingConventionDetails.Serializer.INSTANCE.serialize(value.applyNamingConventionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CREATE_FOLDER_DETAILS: { + g.writeStartObject(); + writeTag("create_folder_details", g); + CreateFolderDetails.Serializer.INSTANCE.serialize(value.createFolderDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ADD_DETAILS: { + g.writeStartObject(); + writeTag("file_add_details", g); + FileAddDetails.Serializer.INSTANCE.serialize(value.fileAddDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ADD_FROM_AUTOMATION_DETAILS: { + g.writeStartObject(); + writeTag("file_add_from_automation_details", g); + FileAddFromAutomationDetails.Serializer.INSTANCE.serialize(value.fileAddFromAutomationDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_COPY_DETAILS: { + g.writeStartObject(); + writeTag("file_copy_details", g); + FileCopyDetails.Serializer.INSTANCE.serialize(value.fileCopyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("file_delete_details", g); + FileDeleteDetails.Serializer.INSTANCE.serialize(value.fileDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_DOWNLOAD_DETAILS: { + g.writeStartObject(); + writeTag("file_download_details", g); + FileDownloadDetails.Serializer.INSTANCE.serialize(value.fileDownloadDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_EDIT_DETAILS: { + g.writeStartObject(); + writeTag("file_edit_details", g); + FileEditDetails.Serializer.INSTANCE.serialize(value.fileEditDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_GET_COPY_REFERENCE_DETAILS: { + g.writeStartObject(); + writeTag("file_get_copy_reference_details", g); + FileGetCopyReferenceDetails.Serializer.INSTANCE.serialize(value.fileGetCopyReferenceDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("file_locking_lock_status_changed_details", g); + FileLockingLockStatusChangedDetails.Serializer.INSTANCE.serialize(value.fileLockingLockStatusChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_MOVE_DETAILS: { + g.writeStartObject(); + writeTag("file_move_details", g); + FileMoveDetails.Serializer.INSTANCE.serialize(value.fileMoveDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_PERMANENTLY_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("file_permanently_delete_details", g); + FilePermanentlyDeleteDetails.Serializer.INSTANCE.serialize(value.filePermanentlyDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_PREVIEW_DETAILS: { + g.writeStartObject(); + writeTag("file_preview_details", g); + FilePreviewDetails.Serializer.INSTANCE.serialize(value.filePreviewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_RENAME_DETAILS: { + g.writeStartObject(); + writeTag("file_rename_details", g); + FileRenameDetails.Serializer.INSTANCE.serialize(value.fileRenameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_RESTORE_DETAILS: { + g.writeStartObject(); + writeTag("file_restore_details", g); + FileRestoreDetails.Serializer.INSTANCE.serialize(value.fileRestoreDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REVERT_DETAILS: { + g.writeStartObject(); + writeTag("file_revert_details", g); + FileRevertDetails.Serializer.INSTANCE.serialize(value.fileRevertDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ROLLBACK_CHANGES_DETAILS: { + g.writeStartObject(); + writeTag("file_rollback_changes_details", g); + FileRollbackChangesDetails.Serializer.INSTANCE.serialize(value.fileRollbackChangesDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_SAVE_COPY_REFERENCE_DETAILS: { + g.writeStartObject(); + writeTag("file_save_copy_reference_details", g); + FileSaveCopyReferenceDetails.Serializer.INSTANCE.serialize(value.fileSaveCopyReferenceDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_OVERVIEW_DESCRIPTION_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("folder_overview_description_changed_details", g); + FolderOverviewDescriptionChangedDetails.Serializer.INSTANCE.serialize(value.folderOverviewDescriptionChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_OVERVIEW_ITEM_PINNED_DETAILS: { + g.writeStartObject(); + writeTag("folder_overview_item_pinned_details", g); + FolderOverviewItemPinnedDetails.Serializer.INSTANCE.serialize(value.folderOverviewItemPinnedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_OVERVIEW_ITEM_UNPINNED_DETAILS: { + g.writeStartObject(); + writeTag("folder_overview_item_unpinned_details", g); + FolderOverviewItemUnpinnedDetails.Serializer.INSTANCE.serialize(value.folderOverviewItemUnpinnedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case OBJECT_LABEL_ADDED_DETAILS: { + g.writeStartObject(); + writeTag("object_label_added_details", g); + ObjectLabelAddedDetails.Serializer.INSTANCE.serialize(value.objectLabelAddedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case OBJECT_LABEL_REMOVED_DETAILS: { + g.writeStartObject(); + writeTag("object_label_removed_details", g); + ObjectLabelRemovedDetails.Serializer.INSTANCE.serialize(value.objectLabelRemovedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case OBJECT_LABEL_UPDATED_VALUE_DETAILS: { + g.writeStartObject(); + writeTag("object_label_updated_value_details", g); + ObjectLabelUpdatedValueDetails.Serializer.INSTANCE.serialize(value.objectLabelUpdatedValueDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ORGANIZE_FOLDER_WITH_TIDY_DETAILS: { + g.writeStartObject(); + writeTag("organize_folder_with_tidy_details", g); + OrganizeFolderWithTidyDetails.Serializer.INSTANCE.serialize(value.organizeFolderWithTidyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_FILE_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("replay_file_delete_details", g); + ReplayFileDeleteDetails.Serializer.INSTANCE.serialize(value.replayFileDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case REWIND_FOLDER_DETAILS: { + g.writeStartObject(); + writeTag("rewind_folder_details", g); + RewindFolderDetails.Serializer.INSTANCE.serialize(value.rewindFolderDetailsValue, g, true); + g.writeEndObject(); + break; + } + case UNDO_NAMING_CONVENTION_DETAILS: { + g.writeStartObject(); + writeTag("undo_naming_convention_details", g); + UndoNamingConventionDetails.Serializer.INSTANCE.serialize(value.undoNamingConventionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case UNDO_ORGANIZE_FOLDER_WITH_TIDY_DETAILS: { + g.writeStartObject(); + writeTag("undo_organize_folder_with_tidy_details", g); + UndoOrganizeFolderWithTidyDetails.Serializer.INSTANCE.serialize(value.undoOrganizeFolderWithTidyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case USER_TAGS_ADDED_DETAILS: { + g.writeStartObject(); + writeTag("user_tags_added_details", g); + UserTagsAddedDetails.Serializer.INSTANCE.serialize(value.userTagsAddedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case USER_TAGS_REMOVED_DETAILS: { + g.writeStartObject(); + writeTag("user_tags_removed_details", g); + UserTagsRemovedDetails.Serializer.INSTANCE.serialize(value.userTagsRemovedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMAIL_INGEST_RECEIVE_FILE_DETAILS: { + g.writeStartObject(); + writeTag("email_ingest_receive_file_details", g); + EmailIngestReceiveFileDetails.Serializer.INSTANCE.serialize(value.emailIngestReceiveFileDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_CHANGE_DETAILS: { + g.writeStartObject(); + writeTag("file_request_change_details", g); + FileRequestChangeDetails.Serializer.INSTANCE.serialize(value.fileRequestChangeDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_CLOSE_DETAILS: { + g.writeStartObject(); + writeTag("file_request_close_details", g); + FileRequestCloseDetails.Serializer.INSTANCE.serialize(value.fileRequestCloseDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("file_request_create_details", g); + FileRequestCreateDetails.Serializer.INSTANCE.serialize(value.fileRequestCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("file_request_delete_details", g); + FileRequestDeleteDetails.Serializer.INSTANCE.serialize(value.fileRequestDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_RECEIVE_FILE_DETAILS: { + g.writeStartObject(); + writeTag("file_request_receive_file_details", g); + FileRequestReceiveFileDetails.Serializer.INSTANCE.serialize(value.fileRequestReceiveFileDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_ADD_EXTERNAL_ID_DETAILS: { + g.writeStartObject(); + writeTag("group_add_external_id_details", g); + GroupAddExternalIdDetails.Serializer.INSTANCE.serialize(value.groupAddExternalIdDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_ADD_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("group_add_member_details", g); + GroupAddMemberDetails.Serializer.INSTANCE.serialize(value.groupAddMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CHANGE_EXTERNAL_ID_DETAILS: { + g.writeStartObject(); + writeTag("group_change_external_id_details", g); + GroupChangeExternalIdDetails.Serializer.INSTANCE.serialize(value.groupChangeExternalIdDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CHANGE_MANAGEMENT_TYPE_DETAILS: { + g.writeStartObject(); + writeTag("group_change_management_type_details", g); + GroupChangeManagementTypeDetails.Serializer.INSTANCE.serialize(value.groupChangeManagementTypeDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CHANGE_MEMBER_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("group_change_member_role_details", g); + GroupChangeMemberRoleDetails.Serializer.INSTANCE.serialize(value.groupChangeMemberRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("group_create_details", g); + GroupCreateDetails.Serializer.INSTANCE.serialize(value.groupCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("group_delete_details", g); + GroupDeleteDetails.Serializer.INSTANCE.serialize(value.groupDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_DESCRIPTION_UPDATED_DETAILS: { + g.writeStartObject(); + writeTag("group_description_updated_details", g); + GroupDescriptionUpdatedDetails.Serializer.INSTANCE.serialize(value.groupDescriptionUpdatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_JOIN_POLICY_UPDATED_DETAILS: { + g.writeStartObject(); + writeTag("group_join_policy_updated_details", g); + GroupJoinPolicyUpdatedDetails.Serializer.INSTANCE.serialize(value.groupJoinPolicyUpdatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_MOVED_DETAILS: { + g.writeStartObject(); + writeTag("group_moved_details", g); + GroupMovedDetails.Serializer.INSTANCE.serialize(value.groupMovedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_REMOVE_EXTERNAL_ID_DETAILS: { + g.writeStartObject(); + writeTag("group_remove_external_id_details", g); + GroupRemoveExternalIdDetails.Serializer.INSTANCE.serialize(value.groupRemoveExternalIdDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_REMOVE_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("group_remove_member_details", g); + GroupRemoveMemberDetails.Serializer.INSTANCE.serialize(value.groupRemoveMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_RENAME_DETAILS: { + g.writeStartObject(); + writeTag("group_rename_details", g); + GroupRenameDetails.Serializer.INSTANCE.serialize(value.groupRenameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_LOCK_OR_UNLOCKED_DETAILS: { + g.writeStartObject(); + writeTag("account_lock_or_unlocked_details", g); + AccountLockOrUnlockedDetails.Serializer.INSTANCE.serialize(value.accountLockOrUnlockedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMM_ERROR_DETAILS: { + g.writeStartObject(); + writeTag("emm_error_details", g); + EmmErrorDetails.Serializer.INSTANCE.serialize(value.emmErrorDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS_DETAILS: { + g.writeStartObject(); + writeTag("guest_admin_signed_in_via_trusted_teams_details", g); + GuestAdminSignedInViaTrustedTeamsDetails.Serializer.INSTANCE.serialize(value.guestAdminSignedInViaTrustedTeamsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS_DETAILS: { + g.writeStartObject(); + writeTag("guest_admin_signed_out_via_trusted_teams_details", g); + GuestAdminSignedOutViaTrustedTeamsDetails.Serializer.INSTANCE.serialize(value.guestAdminSignedOutViaTrustedTeamsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LOGIN_FAIL_DETAILS: { + g.writeStartObject(); + writeTag("login_fail_details", g); + LoginFailDetails.Serializer.INSTANCE.serialize(value.loginFailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LOGIN_SUCCESS_DETAILS: { + g.writeStartObject(); + writeTag("login_success_details", g); + LoginSuccessDetails.Serializer.INSTANCE.serialize(value.loginSuccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LOGOUT_DETAILS: { + g.writeStartObject(); + writeTag("logout_details", g); + LogoutDetails.Serializer.INSTANCE.serialize(value.logoutDetailsValue, g, true); + g.writeEndObject(); + break; + } + case RESELLER_SUPPORT_SESSION_END_DETAILS: { + g.writeStartObject(); + writeTag("reseller_support_session_end_details", g); + ResellerSupportSessionEndDetails.Serializer.INSTANCE.serialize(value.resellerSupportSessionEndDetailsValue, g, true); + g.writeEndObject(); + break; + } + case RESELLER_SUPPORT_SESSION_START_DETAILS: { + g.writeStartObject(); + writeTag("reseller_support_session_start_details", g); + ResellerSupportSessionStartDetails.Serializer.INSTANCE.serialize(value.resellerSupportSessionStartDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SIGN_IN_AS_SESSION_END_DETAILS: { + g.writeStartObject(); + writeTag("sign_in_as_session_end_details", g); + SignInAsSessionEndDetails.Serializer.INSTANCE.serialize(value.signInAsSessionEndDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SIGN_IN_AS_SESSION_START_DETAILS: { + g.writeStartObject(); + writeTag("sign_in_as_session_start_details", g); + SignInAsSessionStartDetails.Serializer.INSTANCE.serialize(value.signInAsSessionStartDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ERROR_DETAILS: { + g.writeStartObject(); + writeTag("sso_error_details", g); + SsoErrorDetails.Serializer.INSTANCE.serialize(value.ssoErrorDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BACKUP_ADMIN_INVITATION_SENT_DETAILS: { + g.writeStartObject(); + writeTag("backup_admin_invitation_sent_details", g); + BackupAdminInvitationSentDetails.Serializer.INSTANCE.serialize(value.backupAdminInvitationSentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BACKUP_INVITATION_OPENED_DETAILS: { + g.writeStartObject(); + writeTag("backup_invitation_opened_details", g); + BackupInvitationOpenedDetails.Serializer.INSTANCE.serialize(value.backupInvitationOpenedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CREATE_TEAM_INVITE_LINK_DETAILS: { + g.writeStartObject(); + writeTag("create_team_invite_link_details", g); + CreateTeamInviteLinkDetails.Serializer.INSTANCE.serialize(value.createTeamInviteLinkDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DELETE_TEAM_INVITE_LINK_DETAILS: { + g.writeStartObject(); + writeTag("delete_team_invite_link_details", g); + DeleteTeamInviteLinkDetails.Serializer.INSTANCE.serialize(value.deleteTeamInviteLinkDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_ADD_EXTERNAL_ID_DETAILS: { + g.writeStartObject(); + writeTag("member_add_external_id_details", g); + MemberAddExternalIdDetails.Serializer.INSTANCE.serialize(value.memberAddExternalIdDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_ADD_NAME_DETAILS: { + g.writeStartObject(); + writeTag("member_add_name_details", g); + MemberAddNameDetails.Serializer.INSTANCE.serialize(value.memberAddNameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_ADMIN_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("member_change_admin_role_details", g); + MemberChangeAdminRoleDetails.Serializer.INSTANCE.serialize(value.memberChangeAdminRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_EMAIL_DETAILS: { + g.writeStartObject(); + writeTag("member_change_email_details", g); + MemberChangeEmailDetails.Serializer.INSTANCE.serialize(value.memberChangeEmailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_EXTERNAL_ID_DETAILS: { + g.writeStartObject(); + writeTag("member_change_external_id_details", g); + MemberChangeExternalIdDetails.Serializer.INSTANCE.serialize(value.memberChangeExternalIdDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_MEMBERSHIP_TYPE_DETAILS: { + g.writeStartObject(); + writeTag("member_change_membership_type_details", g); + MemberChangeMembershipTypeDetails.Serializer.INSTANCE.serialize(value.memberChangeMembershipTypeDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_NAME_DETAILS: { + g.writeStartObject(); + writeTag("member_change_name_details", g); + MemberChangeNameDetails.Serializer.INSTANCE.serialize(value.memberChangeNameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_RESELLER_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("member_change_reseller_role_details", g); + MemberChangeResellerRoleDetails.Serializer.INSTANCE.serialize(value.memberChangeResellerRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_STATUS_DETAILS: { + g.writeStartObject(); + writeTag("member_change_status_details", g); + MemberChangeStatusDetails.Serializer.INSTANCE.serialize(value.memberChangeStatusDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_DELETE_MANUAL_CONTACTS_DETAILS: { + g.writeStartObject(); + writeTag("member_delete_manual_contacts_details", g); + MemberDeleteManualContactsDetails.Serializer.INSTANCE.serialize(value.memberDeleteManualContactsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_DELETE_PROFILE_PHOTO_DETAILS: { + g.writeStartObject(); + writeTag("member_delete_profile_photo_details", g); + MemberDeleteProfilePhotoDetails.Serializer.INSTANCE.serialize(value.memberDeleteProfilePhotoDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS_DETAILS: { + g.writeStartObject(); + writeTag("member_permanently_delete_account_contents_details", g); + MemberPermanentlyDeleteAccountContentsDetails.Serializer.INSTANCE.serialize(value.memberPermanentlyDeleteAccountContentsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_REMOVE_EXTERNAL_ID_DETAILS: { + g.writeStartObject(); + writeTag("member_remove_external_id_details", g); + MemberRemoveExternalIdDetails.Serializer.INSTANCE.serialize(value.memberRemoveExternalIdDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SET_PROFILE_PHOTO_DETAILS: { + g.writeStartObject(); + writeTag("member_set_profile_photo_details", g); + MemberSetProfilePhotoDetails.Serializer.INSTANCE.serialize(value.memberSetProfilePhotoDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_add_custom_quota_details", g); + MemberSpaceLimitsAddCustomQuotaDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsAddCustomQuotaDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_change_custom_quota_details", g); + MemberSpaceLimitsChangeCustomQuotaDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangeCustomQuotaDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_STATUS_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_change_status_details", g); + MemberSpaceLimitsChangeStatusDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangeStatusDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_remove_custom_quota_details", g); + MemberSpaceLimitsRemoveCustomQuotaDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsRemoveCustomQuotaDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SUGGEST_DETAILS: { + g.writeStartObject(); + writeTag("member_suggest_details", g); + MemberSuggestDetails.Serializer.INSTANCE.serialize(value.memberSuggestDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_TRANSFER_ACCOUNT_CONTENTS_DETAILS: { + g.writeStartObject(); + writeTag("member_transfer_account_contents_details", g); + MemberTransferAccountContentsDetails.Serializer.INSTANCE.serialize(value.memberTransferAccountContentsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PENDING_SECONDARY_EMAIL_ADDED_DETAILS: { + g.writeStartObject(); + writeTag("pending_secondary_email_added_details", g); + PendingSecondaryEmailAddedDetails.Serializer.INSTANCE.serialize(value.pendingSecondaryEmailAddedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_EMAIL_DELETED_DETAILS: { + g.writeStartObject(); + writeTag("secondary_email_deleted_details", g); + SecondaryEmailDeletedDetails.Serializer.INSTANCE.serialize(value.secondaryEmailDeletedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_EMAIL_VERIFIED_DETAILS: { + g.writeStartObject(); + writeTag("secondary_email_verified_details", g); + SecondaryEmailVerifiedDetails.Serializer.INSTANCE.serialize(value.secondaryEmailVerifiedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_MAILS_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("secondary_mails_policy_changed_details", g); + SecondaryMailsPolicyChangedDetails.Serializer.INSTANCE.serialize(value.secondaryMailsPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_ADD_PAGE_DETAILS: { + g.writeStartObject(); + writeTag("binder_add_page_details", g); + BinderAddPageDetails.Serializer.INSTANCE.serialize(value.binderAddPageDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_ADD_SECTION_DETAILS: { + g.writeStartObject(); + writeTag("binder_add_section_details", g); + BinderAddSectionDetails.Serializer.INSTANCE.serialize(value.binderAddSectionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REMOVE_PAGE_DETAILS: { + g.writeStartObject(); + writeTag("binder_remove_page_details", g); + BinderRemovePageDetails.Serializer.INSTANCE.serialize(value.binderRemovePageDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REMOVE_SECTION_DETAILS: { + g.writeStartObject(); + writeTag("binder_remove_section_details", g); + BinderRemoveSectionDetails.Serializer.INSTANCE.serialize(value.binderRemoveSectionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_RENAME_PAGE_DETAILS: { + g.writeStartObject(); + writeTag("binder_rename_page_details", g); + BinderRenamePageDetails.Serializer.INSTANCE.serialize(value.binderRenamePageDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_RENAME_SECTION_DETAILS: { + g.writeStartObject(); + writeTag("binder_rename_section_details", g); + BinderRenameSectionDetails.Serializer.INSTANCE.serialize(value.binderRenameSectionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REORDER_PAGE_DETAILS: { + g.writeStartObject(); + writeTag("binder_reorder_page_details", g); + BinderReorderPageDetails.Serializer.INSTANCE.serialize(value.binderReorderPageDetailsValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REORDER_SECTION_DETAILS: { + g.writeStartObject(); + writeTag("binder_reorder_section_details", g); + BinderReorderSectionDetails.Serializer.INSTANCE.serialize(value.binderReorderSectionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_ADD_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_add_member_details", g); + PaperContentAddMemberDetails.Serializer.INSTANCE.serialize(value.paperContentAddMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_ADD_TO_FOLDER_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_add_to_folder_details", g); + PaperContentAddToFolderDetails.Serializer.INSTANCE.serialize(value.paperContentAddToFolderDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_ARCHIVE_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_archive_details", g); + PaperContentArchiveDetails.Serializer.INSTANCE.serialize(value.paperContentArchiveDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_create_details", g); + PaperContentCreateDetails.Serializer.INSTANCE.serialize(value.paperContentCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_PERMANENTLY_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_permanently_delete_details", g); + PaperContentPermanentlyDeleteDetails.Serializer.INSTANCE.serialize(value.paperContentPermanentlyDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_REMOVE_FROM_FOLDER_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_remove_from_folder_details", g); + PaperContentRemoveFromFolderDetails.Serializer.INSTANCE.serialize(value.paperContentRemoveFromFolderDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_REMOVE_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_remove_member_details", g); + PaperContentRemoveMemberDetails.Serializer.INSTANCE.serialize(value.paperContentRemoveMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_RENAME_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_rename_details", g); + PaperContentRenameDetails.Serializer.INSTANCE.serialize(value.paperContentRenameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_RESTORE_DETAILS: { + g.writeStartObject(); + writeTag("paper_content_restore_details", g); + PaperContentRestoreDetails.Serializer.INSTANCE.serialize(value.paperContentRestoreDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_ADD_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_add_comment_details", g); + PaperDocAddCommentDetails.Serializer.INSTANCE.serialize(value.paperDocAddCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_CHANGE_MEMBER_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_change_member_role_details", g); + PaperDocChangeMemberRoleDetails.Serializer.INSTANCE.serialize(value.paperDocChangeMemberRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_CHANGE_SHARING_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_change_sharing_policy_details", g); + PaperDocChangeSharingPolicyDetails.Serializer.INSTANCE.serialize(value.paperDocChangeSharingPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_CHANGE_SUBSCRIPTION_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_change_subscription_details", g); + PaperDocChangeSubscriptionDetails.Serializer.INSTANCE.serialize(value.paperDocChangeSubscriptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_DELETED_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_deleted_details", g); + PaperDocDeletedDetails.Serializer.INSTANCE.serialize(value.paperDocDeletedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_DELETE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_delete_comment_details", g); + PaperDocDeleteCommentDetails.Serializer.INSTANCE.serialize(value.paperDocDeleteCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_DOWNLOAD_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_download_details", g); + PaperDocDownloadDetails.Serializer.INSTANCE.serialize(value.paperDocDownloadDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_EDIT_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_edit_details", g); + PaperDocEditDetails.Serializer.INSTANCE.serialize(value.paperDocEditDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_EDIT_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_edit_comment_details", g); + PaperDocEditCommentDetails.Serializer.INSTANCE.serialize(value.paperDocEditCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_FOLLOWED_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_followed_details", g); + PaperDocFollowedDetails.Serializer.INSTANCE.serialize(value.paperDocFollowedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_MENTION_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_mention_details", g); + PaperDocMentionDetails.Serializer.INSTANCE.serialize(value.paperDocMentionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_OWNERSHIP_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_ownership_changed_details", g); + PaperDocOwnershipChangedDetails.Serializer.INSTANCE.serialize(value.paperDocOwnershipChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_REQUEST_ACCESS_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_request_access_details", g); + PaperDocRequestAccessDetails.Serializer.INSTANCE.serialize(value.paperDocRequestAccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_RESOLVE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_resolve_comment_details", g); + PaperDocResolveCommentDetails.Serializer.INSTANCE.serialize(value.paperDocResolveCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_REVERT_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_revert_details", g); + PaperDocRevertDetails.Serializer.INSTANCE.serialize(value.paperDocRevertDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_SLACK_SHARE_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_slack_share_details", g); + PaperDocSlackShareDetails.Serializer.INSTANCE.serialize(value.paperDocSlackShareDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_TEAM_INVITE_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_team_invite_details", g); + PaperDocTeamInviteDetails.Serializer.INSTANCE.serialize(value.paperDocTeamInviteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_TRASHED_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_trashed_details", g); + PaperDocTrashedDetails.Serializer.INSTANCE.serialize(value.paperDocTrashedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_UNRESOLVE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_unresolve_comment_details", g); + PaperDocUnresolveCommentDetails.Serializer.INSTANCE.serialize(value.paperDocUnresolveCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_UNTRASHED_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_untrashed_details", g); + PaperDocUntrashedDetails.Serializer.INSTANCE.serialize(value.paperDocUntrashedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_VIEW_DETAILS: { + g.writeStartObject(); + writeTag("paper_doc_view_details", g); + PaperDocViewDetails.Serializer.INSTANCE.serialize(value.paperDocViewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_EXTERNAL_VIEW_ALLOW_DETAILS: { + g.writeStartObject(); + writeTag("paper_external_view_allow_details", g); + PaperExternalViewAllowDetails.Serializer.INSTANCE.serialize(value.paperExternalViewAllowDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_EXTERNAL_VIEW_DEFAULT_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("paper_external_view_default_team_details", g); + PaperExternalViewDefaultTeamDetails.Serializer.INSTANCE.serialize(value.paperExternalViewDefaultTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_EXTERNAL_VIEW_FORBID_DETAILS: { + g.writeStartObject(); + writeTag("paper_external_view_forbid_details", g); + PaperExternalViewForbidDetails.Serializer.INSTANCE.serialize(value.paperExternalViewForbidDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_CHANGE_SUBSCRIPTION_DETAILS: { + g.writeStartObject(); + writeTag("paper_folder_change_subscription_details", g); + PaperFolderChangeSubscriptionDetails.Serializer.INSTANCE.serialize(value.paperFolderChangeSubscriptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_DELETED_DETAILS: { + g.writeStartObject(); + writeTag("paper_folder_deleted_details", g); + PaperFolderDeletedDetails.Serializer.INSTANCE.serialize(value.paperFolderDeletedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_FOLLOWED_DETAILS: { + g.writeStartObject(); + writeTag("paper_folder_followed_details", g); + PaperFolderFollowedDetails.Serializer.INSTANCE.serialize(value.paperFolderFollowedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_TEAM_INVITE_DETAILS: { + g.writeStartObject(); + writeTag("paper_folder_team_invite_details", g); + PaperFolderTeamInviteDetails.Serializer.INSTANCE.serialize(value.paperFolderTeamInviteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_CHANGE_PERMISSION_DETAILS: { + g.writeStartObject(); + writeTag("paper_published_link_change_permission_details", g); + PaperPublishedLinkChangePermissionDetails.Serializer.INSTANCE.serialize(value.paperPublishedLinkChangePermissionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("paper_published_link_create_details", g); + PaperPublishedLinkCreateDetails.Serializer.INSTANCE.serialize(value.paperPublishedLinkCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_DISABLED_DETAILS: { + g.writeStartObject(); + writeTag("paper_published_link_disabled_details", g); + PaperPublishedLinkDisabledDetails.Serializer.INSTANCE.serialize(value.paperPublishedLinkDisabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_VIEW_DETAILS: { + g.writeStartObject(); + writeTag("paper_published_link_view_details", g); + PaperPublishedLinkViewDetails.Serializer.INSTANCE.serialize(value.paperPublishedLinkViewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_CHANGE_DETAILS: { + g.writeStartObject(); + writeTag("password_change_details", g); + PasswordChangeDetails.Serializer.INSTANCE.serialize(value.passwordChangeDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_RESET_DETAILS: { + g.writeStartObject(); + writeTag("password_reset_details", g); + PasswordResetDetails.Serializer.INSTANCE.serialize(value.passwordResetDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_RESET_ALL_DETAILS: { + g.writeStartObject(); + writeTag("password_reset_all_details", g); + PasswordResetAllDetails.Serializer.INSTANCE.serialize(value.passwordResetAllDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CLASSIFICATION_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("classification_create_report_details", g); + ClassificationCreateReportDetails.Serializer.INSTANCE.serialize(value.classificationCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS: { + g.writeStartObject(); + writeTag("classification_create_report_fail_details", g); + ClassificationCreateReportFailDetails.Serializer.INSTANCE.serialize(value.classificationCreateReportFailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMM_CREATE_EXCEPTIONS_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("emm_create_exceptions_report_details", g); + EmmCreateExceptionsReportDetails.Serializer.INSTANCE.serialize(value.emmCreateExceptionsReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMM_CREATE_USAGE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("emm_create_usage_report_details", g); + EmmCreateUsageReportDetails.Serializer.INSTANCE.serialize(value.emmCreateUsageReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXPORT_MEMBERS_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("export_members_report_details", g); + ExportMembersReportDetails.Serializer.INSTANCE.serialize(value.exportMembersReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXPORT_MEMBERS_REPORT_FAIL_DETAILS: { + g.writeStartObject(); + writeTag("export_members_report_fail_details", g); + ExportMembersReportFailDetails.Serializer.INSTANCE.serialize(value.exportMembersReportFailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_SHARING_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("external_sharing_create_report_details", g); + ExternalSharingCreateReportDetails.Serializer.INSTANCE.serialize(value.externalSharingCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_SHARING_REPORT_FAILED_DETAILS: { + g.writeStartObject(); + writeTag("external_sharing_report_failed_details", g); + ExternalSharingReportFailedDetails.Serializer.INSTANCE.serialize(value.externalSharingReportFailedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NO_EXPIRATION_LINK_GEN_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("no_expiration_link_gen_create_report_details", g); + NoExpirationLinkGenCreateReportDetails.Serializer.INSTANCE.serialize(value.noExpirationLinkGenCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NO_EXPIRATION_LINK_GEN_REPORT_FAILED_DETAILS: { + g.writeStartObject(); + writeTag("no_expiration_link_gen_report_failed_details", g); + NoExpirationLinkGenReportFailedDetails.Serializer.INSTANCE.serialize(value.noExpirationLinkGenReportFailedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_GEN_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("no_password_link_gen_create_report_details", g); + NoPasswordLinkGenCreateReportDetails.Serializer.INSTANCE.serialize(value.noPasswordLinkGenCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_GEN_REPORT_FAILED_DETAILS: { + g.writeStartObject(); + writeTag("no_password_link_gen_report_failed_details", g); + NoPasswordLinkGenReportFailedDetails.Serializer.INSTANCE.serialize(value.noPasswordLinkGenReportFailedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_VIEW_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("no_password_link_view_create_report_details", g); + NoPasswordLinkViewCreateReportDetails.Serializer.INSTANCE.serialize(value.noPasswordLinkViewCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_VIEW_REPORT_FAILED_DETAILS: { + g.writeStartObject(); + writeTag("no_password_link_view_report_failed_details", g); + NoPasswordLinkViewReportFailedDetails.Serializer.INSTANCE.serialize(value.noPasswordLinkViewReportFailedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case OUTDATED_LINK_VIEW_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("outdated_link_view_create_report_details", g); + OutdatedLinkViewCreateReportDetails.Serializer.INSTANCE.serialize(value.outdatedLinkViewCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case OUTDATED_LINK_VIEW_REPORT_FAILED_DETAILS: { + g.writeStartObject(); + writeTag("outdated_link_view_report_failed_details", g); + OutdatedLinkViewReportFailedDetails.Serializer.INSTANCE.serialize(value.outdatedLinkViewReportFailedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_ADMIN_EXPORT_START_DETAILS: { + g.writeStartObject(); + writeTag("paper_admin_export_start_details", g); + PaperAdminExportStartDetails.Serializer.INSTANCE.serialize(value.paperAdminExportStartDetailsValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_ALERT_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("ransomware_alert_create_report_details", g); + RansomwareAlertCreateReportDetails.Serializer.INSTANCE.serialize(value.ransomwareAlertCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS: { + g.writeStartObject(); + writeTag("ransomware_alert_create_report_failed_details", g); + RansomwareAlertCreateReportFailedDetails.Serializer.INSTANCE.serialize(value.ransomwareAlertCreateReportFailedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("smart_sync_create_admin_privilege_report_details", g); + SmartSyncCreateAdminPrivilegeReportDetails.Serializer.INSTANCE.serialize(value.smartSyncCreateAdminPrivilegeReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ACTIVITY_CREATE_REPORT_DETAILS: { + g.writeStartObject(); + writeTag("team_activity_create_report_details", g); + TeamActivityCreateReportDetails.Serializer.INSTANCE.serialize(value.teamActivityCreateReportDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ACTIVITY_CREATE_REPORT_FAIL_DETAILS: { + g.writeStartObject(); + writeTag("team_activity_create_report_fail_details", g); + TeamActivityCreateReportFailDetails.Serializer.INSTANCE.serialize(value.teamActivityCreateReportFailDetailsValue, g, true); + g.writeEndObject(); + break; + } + case COLLECTION_SHARE_DETAILS: { + g.writeStartObject(); + writeTag("collection_share_details", g); + CollectionShareDetails.Serializer.INSTANCE.serialize(value.collectionShareDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_FILE_ADD_DETAILS: { + g.writeStartObject(); + writeTag("file_transfers_file_add_details", g); + FileTransfersFileAddDetails.Serializer.INSTANCE.serialize(value.fileTransfersFileAddDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("file_transfers_transfer_delete_details", g); + FileTransfersTransferDeleteDetails.Serializer.INSTANCE.serialize(value.fileTransfersTransferDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_DOWNLOAD_DETAILS: { + g.writeStartObject(); + writeTag("file_transfers_transfer_download_details", g); + FileTransfersTransferDownloadDetails.Serializer.INSTANCE.serialize(value.fileTransfersTransferDownloadDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_SEND_DETAILS: { + g.writeStartObject(); + writeTag("file_transfers_transfer_send_details", g); + FileTransfersTransferSendDetails.Serializer.INSTANCE.serialize(value.fileTransfersTransferSendDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_VIEW_DETAILS: { + g.writeStartObject(); + writeTag("file_transfers_transfer_view_details", g); + FileTransfersTransferViewDetails.Serializer.INSTANCE.serialize(value.fileTransfersTransferViewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_ACL_INVITE_ONLY_DETAILS: { + g.writeStartObject(); + writeTag("note_acl_invite_only_details", g); + NoteAclInviteOnlyDetails.Serializer.INSTANCE.serialize(value.noteAclInviteOnlyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_ACL_LINK_DETAILS: { + g.writeStartObject(); + writeTag("note_acl_link_details", g); + NoteAclLinkDetails.Serializer.INSTANCE.serialize(value.noteAclLinkDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_ACL_TEAM_LINK_DETAILS: { + g.writeStartObject(); + writeTag("note_acl_team_link_details", g); + NoteAclTeamLinkDetails.Serializer.INSTANCE.serialize(value.noteAclTeamLinkDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_SHARED_DETAILS: { + g.writeStartObject(); + writeTag("note_shared_details", g); + NoteSharedDetails.Serializer.INSTANCE.serialize(value.noteSharedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_SHARE_RECEIVE_DETAILS: { + g.writeStartObject(); + writeTag("note_share_receive_details", g); + NoteShareReceiveDetails.Serializer.INSTANCE.serialize(value.noteShareReceiveDetailsValue, g, true); + g.writeEndObject(); + break; + } + case OPEN_NOTE_SHARED_DETAILS: { + g.writeStartObject(); + writeTag("open_note_shared_details", g); + OpenNoteSharedDetails.Serializer.INSTANCE.serialize(value.openNoteSharedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_FILE_SHARED_LINK_CREATED_DETAILS: { + g.writeStartObject(); + writeTag("replay_file_shared_link_created_details", g); + ReplayFileSharedLinkCreatedDetails.Serializer.INSTANCE.serialize(value.replayFileSharedLinkCreatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_FILE_SHARED_LINK_MODIFIED_DETAILS: { + g.writeStartObject(); + writeTag("replay_file_shared_link_modified_details", g); + ReplayFileSharedLinkModifiedDetails.Serializer.INSTANCE.serialize(value.replayFileSharedLinkModifiedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_PROJECT_TEAM_ADD_DETAILS: { + g.writeStartObject(); + writeTag("replay_project_team_add_details", g); + ReplayProjectTeamAddDetails.Serializer.INSTANCE.serialize(value.replayProjectTeamAddDetailsValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_PROJECT_TEAM_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("replay_project_team_delete_details", g); + ReplayProjectTeamDeleteDetails.Serializer.INSTANCE.serialize(value.replayProjectTeamDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_ADD_GROUP_DETAILS: { + g.writeStartObject(); + writeTag("sf_add_group_details", g); + SfAddGroupDetails.Serializer.INSTANCE.serialize(value.sfAddGroupDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS_DETAILS: { + g.writeStartObject(); + writeTag("sf_allow_non_members_to_view_shared_links_details", g); + SfAllowNonMembersToViewSharedLinksDetails.Serializer.INSTANCE.serialize(value.sfAllowNonMembersToViewSharedLinksDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_EXTERNAL_INVITE_WARN_DETAILS: { + g.writeStartObject(); + writeTag("sf_external_invite_warn_details", g); + SfExternalInviteWarnDetails.Serializer.INSTANCE.serialize(value.sfExternalInviteWarnDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_FB_INVITE_DETAILS: { + g.writeStartObject(); + writeTag("sf_fb_invite_details", g); + SfFbInviteDetails.Serializer.INSTANCE.serialize(value.sfFbInviteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_FB_INVITE_CHANGE_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("sf_fb_invite_change_role_details", g); + SfFbInviteChangeRoleDetails.Serializer.INSTANCE.serialize(value.sfFbInviteChangeRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_FB_UNINVITE_DETAILS: { + g.writeStartObject(); + writeTag("sf_fb_uninvite_details", g); + SfFbUninviteDetails.Serializer.INSTANCE.serialize(value.sfFbUninviteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_INVITE_GROUP_DETAILS: { + g.writeStartObject(); + writeTag("sf_invite_group_details", g); + SfInviteGroupDetails.Serializer.INSTANCE.serialize(value.sfInviteGroupDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_GRANT_ACCESS_DETAILS: { + g.writeStartObject(); + writeTag("sf_team_grant_access_details", g); + SfTeamGrantAccessDetails.Serializer.INSTANCE.serialize(value.sfTeamGrantAccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_INVITE_DETAILS: { + g.writeStartObject(); + writeTag("sf_team_invite_details", g); + SfTeamInviteDetails.Serializer.INSTANCE.serialize(value.sfTeamInviteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_INVITE_CHANGE_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("sf_team_invite_change_role_details", g); + SfTeamInviteChangeRoleDetails.Serializer.INSTANCE.serialize(value.sfTeamInviteChangeRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_JOIN_DETAILS: { + g.writeStartObject(); + writeTag("sf_team_join_details", g); + SfTeamJoinDetails.Serializer.INSTANCE.serialize(value.sfTeamJoinDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_JOIN_FROM_OOB_LINK_DETAILS: { + g.writeStartObject(); + writeTag("sf_team_join_from_oob_link_details", g); + SfTeamJoinFromOobLinkDetails.Serializer.INSTANCE.serialize(value.sfTeamJoinFromOobLinkDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_UNINVITE_DETAILS: { + g.writeStartObject(); + writeTag("sf_team_uninvite_details", g); + SfTeamUninviteDetails.Serializer.INSTANCE.serialize(value.sfTeamUninviteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_INVITEES_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_add_invitees_details", g); + SharedContentAddInviteesDetails.Serializer.INSTANCE.serialize(value.sharedContentAddInviteesDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_LINK_EXPIRY_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_add_link_expiry_details", g); + SharedContentAddLinkExpiryDetails.Serializer.INSTANCE.serialize(value.sharedContentAddLinkExpiryDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_LINK_PASSWORD_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_add_link_password_details", g); + SharedContentAddLinkPasswordDetails.Serializer.INSTANCE.serialize(value.sharedContentAddLinkPasswordDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_add_member_details", g); + SharedContentAddMemberDetails.Serializer.INSTANCE.serialize(value.sharedContentAddMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_change_downloads_policy_details", g); + SharedContentChangeDownloadsPolicyDetails.Serializer.INSTANCE.serialize(value.sharedContentChangeDownloadsPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_INVITEE_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_change_invitee_role_details", g); + SharedContentChangeInviteeRoleDetails.Serializer.INSTANCE.serialize(value.sharedContentChangeInviteeRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_LINK_AUDIENCE_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_change_link_audience_details", g); + SharedContentChangeLinkAudienceDetails.Serializer.INSTANCE.serialize(value.sharedContentChangeLinkAudienceDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_LINK_EXPIRY_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_change_link_expiry_details", g); + SharedContentChangeLinkExpiryDetails.Serializer.INSTANCE.serialize(value.sharedContentChangeLinkExpiryDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_LINK_PASSWORD_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_change_link_password_details", g); + SharedContentChangeLinkPasswordDetails.Serializer.INSTANCE.serialize(value.sharedContentChangeLinkPasswordDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_MEMBER_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_change_member_role_details", g); + SharedContentChangeMemberRoleDetails.Serializer.INSTANCE.serialize(value.sharedContentChangeMemberRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_change_viewer_info_policy_details", g); + SharedContentChangeViewerInfoPolicyDetails.Serializer.INSTANCE.serialize(value.sharedContentChangeViewerInfoPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CLAIM_INVITATION_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_claim_invitation_details", g); + SharedContentClaimInvitationDetails.Serializer.INSTANCE.serialize(value.sharedContentClaimInvitationDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_COPY_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_copy_details", g); + SharedContentCopyDetails.Serializer.INSTANCE.serialize(value.sharedContentCopyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_DOWNLOAD_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_download_details", g); + SharedContentDownloadDetails.Serializer.INSTANCE.serialize(value.sharedContentDownloadDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_RELINQUISH_MEMBERSHIP_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_relinquish_membership_details", g); + SharedContentRelinquishMembershipDetails.Serializer.INSTANCE.serialize(value.sharedContentRelinquishMembershipDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_INVITEES_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_remove_invitees_details", g); + SharedContentRemoveInviteesDetails.Serializer.INSTANCE.serialize(value.sharedContentRemoveInviteesDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_LINK_EXPIRY_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_remove_link_expiry_details", g); + SharedContentRemoveLinkExpiryDetails.Serializer.INSTANCE.serialize(value.sharedContentRemoveLinkExpiryDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_LINK_PASSWORD_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_remove_link_password_details", g); + SharedContentRemoveLinkPasswordDetails.Serializer.INSTANCE.serialize(value.sharedContentRemoveLinkPasswordDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_remove_member_details", g); + SharedContentRemoveMemberDetails.Serializer.INSTANCE.serialize(value.sharedContentRemoveMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REQUEST_ACCESS_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_request_access_details", g); + SharedContentRequestAccessDetails.Serializer.INSTANCE.serialize(value.sharedContentRequestAccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_RESTORE_INVITEES_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_restore_invitees_details", g); + SharedContentRestoreInviteesDetails.Serializer.INSTANCE.serialize(value.sharedContentRestoreInviteesDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_RESTORE_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_restore_member_details", g); + SharedContentRestoreMemberDetails.Serializer.INSTANCE.serialize(value.sharedContentRestoreMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_UNSHARE_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_unshare_details", g); + SharedContentUnshareDetails.Serializer.INSTANCE.serialize(value.sharedContentUnshareDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_VIEW_DETAILS: { + g.writeStartObject(); + writeTag("shared_content_view_details", g); + SharedContentViewDetails.Serializer.INSTANCE.serialize(value.sharedContentViewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_LINK_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_change_link_policy_details", g); + SharedFolderChangeLinkPolicyDetails.Serializer.INSTANCE.serialize(value.sharedFolderChangeLinkPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_change_members_inheritance_policy_details", g); + SharedFolderChangeMembersInheritancePolicyDetails.Serializer.INSTANCE.serialize(value.sharedFolderChangeMembersInheritancePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_change_members_management_policy_details", g); + SharedFolderChangeMembersManagementPolicyDetails.Serializer.INSTANCE.serialize(value.sharedFolderChangeMembersManagementPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_change_members_policy_details", g); + SharedFolderChangeMembersPolicyDetails.Serializer.INSTANCE.serialize(value.sharedFolderChangeMembersPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_create_details", g); + SharedFolderCreateDetails.Serializer.INSTANCE.serialize(value.sharedFolderCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_DECLINE_INVITATION_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_decline_invitation_details", g); + SharedFolderDeclineInvitationDetails.Serializer.INSTANCE.serialize(value.sharedFolderDeclineInvitationDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_MOUNT_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_mount_details", g); + SharedFolderMountDetails.Serializer.INSTANCE.serialize(value.sharedFolderMountDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_NEST_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_nest_details", g); + SharedFolderNestDetails.Serializer.INSTANCE.serialize(value.sharedFolderNestDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_transfer_ownership_details", g); + SharedFolderTransferOwnershipDetails.Serializer.INSTANCE.serialize(value.sharedFolderTransferOwnershipDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_UNMOUNT_DETAILS: { + g.writeStartObject(); + writeTag("shared_folder_unmount_details", g); + SharedFolderUnmountDetails.Serializer.INSTANCE.serialize(value.sharedFolderUnmountDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_ADD_EXPIRY_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_add_expiry_details", g); + SharedLinkAddExpiryDetails.Serializer.INSTANCE.serialize(value.sharedLinkAddExpiryDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_CHANGE_EXPIRY_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_change_expiry_details", g); + SharedLinkChangeExpiryDetails.Serializer.INSTANCE.serialize(value.sharedLinkChangeExpiryDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_CHANGE_VISIBILITY_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_change_visibility_details", g); + SharedLinkChangeVisibilityDetails.Serializer.INSTANCE.serialize(value.sharedLinkChangeVisibilityDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_COPY_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_copy_details", g); + SharedLinkCopyDetails.Serializer.INSTANCE.serialize(value.sharedLinkCopyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_create_details", g); + SharedLinkCreateDetails.Serializer.INSTANCE.serialize(value.sharedLinkCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_DISABLE_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_disable_details", g); + SharedLinkDisableDetails.Serializer.INSTANCE.serialize(value.sharedLinkDisableDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_DOWNLOAD_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_download_details", g); + SharedLinkDownloadDetails.Serializer.INSTANCE.serialize(value.sharedLinkDownloadDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_REMOVE_EXPIRY_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_remove_expiry_details", g); + SharedLinkRemoveExpiryDetails.Serializer.INSTANCE.serialize(value.sharedLinkRemoveExpiryDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ADD_EXPIRATION_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_add_expiration_details", g); + SharedLinkSettingsAddExpirationDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAddExpirationDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ADD_PASSWORD_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_add_password_details", g); + SharedLinkSettingsAddPasswordDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAddPasswordDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_allow_download_disabled_details", g); + SharedLinkSettingsAllowDownloadDisabledDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAllowDownloadDisabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_allow_download_enabled_details", g); + SharedLinkSettingsAllowDownloadEnabledDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAllowDownloadEnabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_AUDIENCE_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_change_audience_details", g); + SharedLinkSettingsChangeAudienceDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsChangeAudienceDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_EXPIRATION_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_change_expiration_details", g); + SharedLinkSettingsChangeExpirationDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsChangeExpirationDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_PASSWORD_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_change_password_details", g); + SharedLinkSettingsChangePasswordDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsChangePasswordDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_REMOVE_EXPIRATION_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_remove_expiration_details", g); + SharedLinkSettingsRemoveExpirationDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsRemoveExpirationDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_REMOVE_PASSWORD_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_settings_remove_password_details", g); + SharedLinkSettingsRemovePasswordDetails.Serializer.INSTANCE.serialize(value.sharedLinkSettingsRemovePasswordDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SHARE_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_share_details", g); + SharedLinkShareDetails.Serializer.INSTANCE.serialize(value.sharedLinkShareDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_VIEW_DETAILS: { + g.writeStartObject(); + writeTag("shared_link_view_details", g); + SharedLinkViewDetails.Serializer.INSTANCE.serialize(value.sharedLinkViewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_NOTE_OPENED_DETAILS: { + g.writeStartObject(); + writeTag("shared_note_opened_details", g); + SharedNoteOpenedDetails.Serializer.INSTANCE.serialize(value.sharedNoteOpenedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHMODEL_DISABLE_DOWNLOADS_DETAILS: { + g.writeStartObject(); + writeTag("shmodel_disable_downloads_details", g); + ShmodelDisableDownloadsDetails.Serializer.INSTANCE.serialize(value.shmodelDisableDownloadsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHMODEL_ENABLE_DOWNLOADS_DETAILS: { + g.writeStartObject(); + writeTag("shmodel_enable_downloads_details", g); + ShmodelEnableDownloadsDetails.Serializer.INSTANCE.serialize(value.shmodelEnableDownloadsDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHMODEL_GROUP_SHARE_DETAILS: { + g.writeStartObject(); + writeTag("shmodel_group_share_details", g); + ShmodelGroupShareDetails.Serializer.INSTANCE.serialize(value.shmodelGroupShareDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_ACCESS_GRANTED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_access_granted_details", g); + ShowcaseAccessGrantedDetails.Serializer.INSTANCE.serialize(value.showcaseAccessGrantedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_ADD_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("showcase_add_member_details", g); + ShowcaseAddMemberDetails.Serializer.INSTANCE.serialize(value.showcaseAddMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_ARCHIVED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_archived_details", g); + ShowcaseArchivedDetails.Serializer.INSTANCE.serialize(value.showcaseArchivedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CREATED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_created_details", g); + ShowcaseCreatedDetails.Serializer.INSTANCE.serialize(value.showcaseCreatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_DELETE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("showcase_delete_comment_details", g); + ShowcaseDeleteCommentDetails.Serializer.INSTANCE.serialize(value.showcaseDeleteCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_EDITED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_edited_details", g); + ShowcaseEditedDetails.Serializer.INSTANCE.serialize(value.showcaseEditedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_EDIT_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("showcase_edit_comment_details", g); + ShowcaseEditCommentDetails.Serializer.INSTANCE.serialize(value.showcaseEditCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_ADDED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_file_added_details", g); + ShowcaseFileAddedDetails.Serializer.INSTANCE.serialize(value.showcaseFileAddedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_DOWNLOAD_DETAILS: { + g.writeStartObject(); + writeTag("showcase_file_download_details", g); + ShowcaseFileDownloadDetails.Serializer.INSTANCE.serialize(value.showcaseFileDownloadDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_REMOVED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_file_removed_details", g); + ShowcaseFileRemovedDetails.Serializer.INSTANCE.serialize(value.showcaseFileRemovedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_VIEW_DETAILS: { + g.writeStartObject(); + writeTag("showcase_file_view_details", g); + ShowcaseFileViewDetails.Serializer.INSTANCE.serialize(value.showcaseFileViewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_PERMANENTLY_DELETED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_permanently_deleted_details", g); + ShowcasePermanentlyDeletedDetails.Serializer.INSTANCE.serialize(value.showcasePermanentlyDeletedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_POST_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("showcase_post_comment_details", g); + ShowcasePostCommentDetails.Serializer.INSTANCE.serialize(value.showcasePostCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_REMOVE_MEMBER_DETAILS: { + g.writeStartObject(); + writeTag("showcase_remove_member_details", g); + ShowcaseRemoveMemberDetails.Serializer.INSTANCE.serialize(value.showcaseRemoveMemberDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_RENAMED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_renamed_details", g); + ShowcaseRenamedDetails.Serializer.INSTANCE.serialize(value.showcaseRenamedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_REQUEST_ACCESS_DETAILS: { + g.writeStartObject(); + writeTag("showcase_request_access_details", g); + ShowcaseRequestAccessDetails.Serializer.INSTANCE.serialize(value.showcaseRequestAccessDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_RESOLVE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("showcase_resolve_comment_details", g); + ShowcaseResolveCommentDetails.Serializer.INSTANCE.serialize(value.showcaseResolveCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_RESTORED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_restored_details", g); + ShowcaseRestoredDetails.Serializer.INSTANCE.serialize(value.showcaseRestoredDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_TRASHED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_trashed_details", g); + ShowcaseTrashedDetails.Serializer.INSTANCE.serialize(value.showcaseTrashedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_TRASHED_DEPRECATED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_trashed_deprecated_details", g); + ShowcaseTrashedDeprecatedDetails.Serializer.INSTANCE.serialize(value.showcaseTrashedDeprecatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_UNRESOLVE_COMMENT_DETAILS: { + g.writeStartObject(); + writeTag("showcase_unresolve_comment_details", g); + ShowcaseUnresolveCommentDetails.Serializer.INSTANCE.serialize(value.showcaseUnresolveCommentDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_UNTRASHED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_untrashed_details", g); + ShowcaseUntrashedDetails.Serializer.INSTANCE.serialize(value.showcaseUntrashedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_UNTRASHED_DEPRECATED_DETAILS: { + g.writeStartObject(); + writeTag("showcase_untrashed_deprecated_details", g); + ShowcaseUntrashedDeprecatedDetails.Serializer.INSTANCE.serialize(value.showcaseUntrashedDeprecatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_VIEW_DETAILS: { + g.writeStartObject(); + writeTag("showcase_view_details", g); + ShowcaseViewDetails.Serializer.INSTANCE.serialize(value.showcaseViewDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ADD_CERT_DETAILS: { + g.writeStartObject(); + writeTag("sso_add_cert_details", g); + SsoAddCertDetails.Serializer.INSTANCE.serialize(value.ssoAddCertDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ADD_LOGIN_URL_DETAILS: { + g.writeStartObject(); + writeTag("sso_add_login_url_details", g); + SsoAddLoginUrlDetails.Serializer.INSTANCE.serialize(value.ssoAddLoginUrlDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ADD_LOGOUT_URL_DETAILS: { + g.writeStartObject(); + writeTag("sso_add_logout_url_details", g); + SsoAddLogoutUrlDetails.Serializer.INSTANCE.serialize(value.ssoAddLogoutUrlDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_CERT_DETAILS: { + g.writeStartObject(); + writeTag("sso_change_cert_details", g); + SsoChangeCertDetails.Serializer.INSTANCE.serialize(value.ssoChangeCertDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_LOGIN_URL_DETAILS: { + g.writeStartObject(); + writeTag("sso_change_login_url_details", g); + SsoChangeLoginUrlDetails.Serializer.INSTANCE.serialize(value.ssoChangeLoginUrlDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_LOGOUT_URL_DETAILS: { + g.writeStartObject(); + writeTag("sso_change_logout_url_details", g); + SsoChangeLogoutUrlDetails.Serializer.INSTANCE.serialize(value.ssoChangeLogoutUrlDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_SAML_IDENTITY_MODE_DETAILS: { + g.writeStartObject(); + writeTag("sso_change_saml_identity_mode_details", g); + SsoChangeSamlIdentityModeDetails.Serializer.INSTANCE.serialize(value.ssoChangeSamlIdentityModeDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_REMOVE_CERT_DETAILS: { + g.writeStartObject(); + writeTag("sso_remove_cert_details", g); + SsoRemoveCertDetails.Serializer.INSTANCE.serialize(value.ssoRemoveCertDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_REMOVE_LOGIN_URL_DETAILS: { + g.writeStartObject(); + writeTag("sso_remove_login_url_details", g); + SsoRemoveLoginUrlDetails.Serializer.INSTANCE.serialize(value.ssoRemoveLoginUrlDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_REMOVE_LOGOUT_URL_DETAILS: { + g.writeStartObject(); + writeTag("sso_remove_logout_url_details", g); + SsoRemoveLogoutUrlDetails.Serializer.INSTANCE.serialize(value.ssoRemoveLogoutUrlDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_CHANGE_STATUS_DETAILS: { + g.writeStartObject(); + writeTag("team_folder_change_status_details", g); + TeamFolderChangeStatusDetails.Serializer.INSTANCE.serialize(value.teamFolderChangeStatusDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_CREATE_DETAILS: { + g.writeStartObject(); + writeTag("team_folder_create_details", g); + TeamFolderCreateDetails.Serializer.INSTANCE.serialize(value.teamFolderCreateDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_DOWNGRADE_DETAILS: { + g.writeStartObject(); + writeTag("team_folder_downgrade_details", g); + TeamFolderDowngradeDetails.Serializer.INSTANCE.serialize(value.teamFolderDowngradeDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_PERMANENTLY_DELETE_DETAILS: { + g.writeStartObject(); + writeTag("team_folder_permanently_delete_details", g); + TeamFolderPermanentlyDeleteDetails.Serializer.INSTANCE.serialize(value.teamFolderPermanentlyDeleteDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_RENAME_DETAILS: { + g.writeStartObject(); + writeTag("team_folder_rename_details", g); + TeamFolderRenameDetails.Serializer.INSTANCE.serialize(value.teamFolderRenameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("team_selective_sync_settings_changed_details", g); + TeamSelectiveSyncSettingsChangedDetails.Serializer.INSTANCE.serialize(value.teamSelectiveSyncSettingsChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("account_capture_change_policy_details", g); + AccountCaptureChangePolicyDetails.Serializer.INSTANCE.serialize(value.accountCaptureChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ADMIN_EMAIL_REMINDERS_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("admin_email_reminders_changed_details", g); + AdminEmailRemindersChangedDetails.Serializer.INSTANCE.serialize(value.adminEmailRemindersChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ALLOW_DOWNLOAD_DISABLED_DETAILS: { + g.writeStartObject(); + writeTag("allow_download_disabled_details", g); + AllowDownloadDisabledDetails.Serializer.INSTANCE.serialize(value.allowDownloadDisabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ALLOW_DOWNLOAD_ENABLED_DETAILS: { + g.writeStartObject(); + writeTag("allow_download_enabled_details", g); + AllowDownloadEnabledDetails.Serializer.INSTANCE.serialize(value.allowDownloadEnabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case APP_PERMISSIONS_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("app_permissions_changed_details", g); + AppPermissionsChangedDetails.Serializer.INSTANCE.serialize(value.appPermissionsChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CAMERA_UPLOADS_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("camera_uploads_policy_changed_details", g); + CameraUploadsPolicyChangedDetails.Serializer.INSTANCE.serialize(value.cameraUploadsPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CAPTURE_TRANSCRIPT_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("capture_transcript_policy_changed_details", g); + CaptureTranscriptPolicyChangedDetails.Serializer.INSTANCE.serialize(value.captureTranscriptPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CLASSIFICATION_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("classification_change_policy_details", g); + ClassificationChangePolicyDetails.Serializer.INSTANCE.serialize(value.classificationChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case COMPUTER_BACKUP_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("computer_backup_policy_changed_details", g); + ComputerBackupPolicyChangedDetails.Serializer.INSTANCE.serialize(value.computerBackupPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CONTENT_ADMINISTRATION_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("content_administration_policy_changed_details", g); + ContentAdministrationPolicyChangedDetails.Serializer.INSTANCE.serialize(value.contentAdministrationPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("data_placement_restriction_change_policy_details", g); + DataPlacementRestrictionChangePolicyDetails.Serializer.INSTANCE.serialize(value.dataPlacementRestrictionChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("data_placement_restriction_satisfy_policy_details", g); + DataPlacementRestrictionSatisfyPolicyDetails.Serializer.INSTANCE.serialize(value.dataPlacementRestrictionSatisfyPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_ADD_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("device_approvals_add_exception_details", g); + DeviceApprovalsAddExceptionDetails.Serializer.INSTANCE.serialize(value.deviceApprovalsAddExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("device_approvals_change_desktop_policy_details", g); + DeviceApprovalsChangeDesktopPolicyDetails.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeDesktopPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_MOBILE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("device_approvals_change_mobile_policy_details", g); + DeviceApprovalsChangeMobilePolicyDetails.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeMobilePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION_DETAILS: { + g.writeStartObject(); + writeTag("device_approvals_change_overage_action_details", g); + DeviceApprovalsChangeOverageActionDetails.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeOverageActionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_UNLINK_ACTION_DETAILS: { + g.writeStartObject(); + writeTag("device_approvals_change_unlink_action_details", g); + DeviceApprovalsChangeUnlinkActionDetails.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeUnlinkActionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_REMOVE_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("device_approvals_remove_exception_details", g); + DeviceApprovalsRemoveExceptionDetails.Serializer.INSTANCE.serialize(value.deviceApprovalsRemoveExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DIRECTORY_RESTRICTIONS_ADD_MEMBERS_DETAILS: { + g.writeStartObject(); + writeTag("directory_restrictions_add_members_details", g); + DirectoryRestrictionsAddMembersDetails.Serializer.INSTANCE.serialize(value.directoryRestrictionsAddMembersDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS_DETAILS: { + g.writeStartObject(); + writeTag("directory_restrictions_remove_members_details", g); + DirectoryRestrictionsRemoveMembersDetails.Serializer.INSTANCE.serialize(value.directoryRestrictionsRemoveMembersDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DROPBOX_PASSWORDS_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("dropbox_passwords_policy_changed_details", g); + DropboxPasswordsPolicyChangedDetails.Serializer.INSTANCE.serialize(value.dropboxPasswordsPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMAIL_INGEST_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("email_ingest_policy_changed_details", g); + EmailIngestPolicyChangedDetails.Serializer.INSTANCE.serialize(value.emailIngestPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMM_ADD_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("emm_add_exception_details", g); + EmmAddExceptionDetails.Serializer.INSTANCE.serialize(value.emmAddExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMM_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("emm_change_policy_details", g); + EmmChangePolicyDetails.Serializer.INSTANCE.serialize(value.emmChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EMM_REMOVE_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("emm_remove_exception_details", g); + EmmRemoveExceptionDetails.Serializer.INSTANCE.serialize(value.emmRemoveExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXTENDED_VERSION_HISTORY_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("extended_version_history_change_policy_details", g); + ExtendedVersionHistoryChangePolicyDetails.Serializer.INSTANCE.serialize(value.extendedVersionHistoryChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("external_drive_backup_policy_changed_details", g); + ExternalDriveBackupPolicyChangedDetails.Serializer.INSTANCE.serialize(value.externalDriveBackupPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_COMMENTS_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("file_comments_change_policy_details", g); + FileCommentsChangePolicyDetails.Serializer.INSTANCE.serialize(value.fileCommentsChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_LOCKING_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("file_locking_policy_changed_details", g); + FileLockingPolicyChangedDetails.Serializer.INSTANCE.serialize(value.fileLockingPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_PROVIDER_MIGRATION_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("file_provider_migration_policy_changed_details", g); + FileProviderMigrationPolicyChangedDetails.Serializer.INSTANCE.serialize(value.fileProviderMigrationPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUESTS_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("file_requests_change_policy_details", g); + FileRequestsChangePolicyDetails.Serializer.INSTANCE.serialize(value.fileRequestsChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUESTS_EMAILS_ENABLED_DETAILS: { + g.writeStartObject(); + writeTag("file_requests_emails_enabled_details", g); + FileRequestsEmailsEnabledDetails.Serializer.INSTANCE.serialize(value.fileRequestsEmailsEnabledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY_DETAILS: { + g.writeStartObject(); + writeTag("file_requests_emails_restricted_to_team_only_details", g); + FileRequestsEmailsRestrictedToTeamOnlyDetails.Serializer.INSTANCE.serialize(value.fileRequestsEmailsRestrictedToTeamOnlyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("file_transfers_policy_changed_details", g); + FileTransfersPolicyChangedDetails.Serializer.INSTANCE.serialize(value.fileTransfersPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_LINK_RESTRICTION_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("folder_link_restriction_policy_changed_details", g); + FolderLinkRestrictionPolicyChangedDetails.Serializer.INSTANCE.serialize(value.folderLinkRestrictionPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOOGLE_SSO_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("google_sso_change_policy_details", g); + GoogleSsoChangePolicyDetails.Serializer.INSTANCE.serialize(value.googleSsoChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_USER_MANAGEMENT_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("group_user_management_change_policy_details", g); + GroupUserManagementChangePolicyDetails.Serializer.INSTANCE.serialize(value.groupUserManagementChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case INTEGRATION_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("integration_policy_changed_details", g); + IntegrationPolicyChangedDetails.Serializer.INSTANCE.serialize(value.integrationPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("invite_acceptance_email_policy_changed_details", g); + InviteAcceptanceEmailPolicyChangedDetails.Serializer.INSTANCE.serialize(value.inviteAcceptanceEmailPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_REQUESTS_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("member_requests_change_policy_details", g); + MemberRequestsChangePolicyDetails.Serializer.INSTANCE.serialize(value.memberRequestsChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SEND_INVITE_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("member_send_invite_policy_changed_details", g); + MemberSendInvitePolicyChangedDetails.Serializer.INSTANCE.serialize(value.memberSendInvitePolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_ADD_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_add_exception_details", g); + MemberSpaceLimitsAddExceptionDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsAddExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_change_caps_type_policy_details", g); + MemberSpaceLimitsChangeCapsTypePolicyDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangeCapsTypePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_change_policy_details", g); + MemberSpaceLimitsChangePolicyDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("member_space_limits_remove_exception_details", g); + MemberSpaceLimitsRemoveExceptionDetails.Serializer.INSTANCE.serialize(value.memberSpaceLimitsRemoveExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SUGGESTIONS_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("member_suggestions_change_policy_details", g); + MemberSuggestionsChangePolicyDetails.Serializer.INSTANCE.serialize(value.memberSuggestionsChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("microsoft_office_addin_change_policy_details", g); + MicrosoftOfficeAddinChangePolicyDetails.Serializer.INSTANCE.serialize(value.microsoftOfficeAddinChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case NETWORK_CONTROL_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("network_control_change_policy_details", g); + NetworkControlChangePolicyDetails.Serializer.INSTANCE.serialize(value.networkControlChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_DEPLOYMENT_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("paper_change_deployment_policy_details", g); + PaperChangeDeploymentPolicyDetails.Serializer.INSTANCE.serialize(value.paperChangeDeploymentPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_MEMBER_LINK_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("paper_change_member_link_policy_details", g); + PaperChangeMemberLinkPolicyDetails.Serializer.INSTANCE.serialize(value.paperChangeMemberLinkPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_MEMBER_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("paper_change_member_policy_details", g); + PaperChangeMemberPolicyDetails.Serializer.INSTANCE.serialize(value.paperChangeMemberPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("paper_change_policy_details", g); + PaperChangePolicyDetails.Serializer.INSTANCE.serialize(value.paperChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DEFAULT_FOLDER_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("paper_default_folder_policy_changed_details", g); + PaperDefaultFolderPolicyChangedDetails.Serializer.INSTANCE.serialize(value.paperDefaultFolderPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DESKTOP_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("paper_desktop_policy_changed_details", g); + PaperDesktopPolicyChangedDetails.Serializer.INSTANCE.serialize(value.paperDesktopPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_ENABLED_USERS_GROUP_ADDITION_DETAILS: { + g.writeStartObject(); + writeTag("paper_enabled_users_group_addition_details", g); + PaperEnabledUsersGroupAdditionDetails.Serializer.INSTANCE.serialize(value.paperEnabledUsersGroupAdditionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_ENABLED_USERS_GROUP_REMOVAL_DETAILS: { + g.writeStartObject(); + writeTag("paper_enabled_users_group_removal_details", g); + PaperEnabledUsersGroupRemovalDetails.Serializer.INSTANCE.serialize(value.paperEnabledUsersGroupRemovalDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("password_strength_requirements_change_policy_details", g); + PasswordStrengthRequirementsChangePolicyDetails.Serializer.INSTANCE.serialize(value.passwordStrengthRequirementsChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case PERMANENT_DELETE_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("permanent_delete_change_policy_details", g); + PermanentDeleteChangePolicyDetails.Serializer.INSTANCE.serialize(value.permanentDeleteChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case RESELLER_SUPPORT_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("reseller_support_change_policy_details", g); + ResellerSupportChangePolicyDetails.Serializer.INSTANCE.serialize(value.resellerSupportChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case REWIND_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("rewind_policy_changed_details", g); + RewindPolicyChangedDetails.Serializer.INSTANCE.serialize(value.rewindPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SEND_FOR_SIGNATURE_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("send_for_signature_policy_changed_details", g); + SendForSignaturePolicyChangedDetails.Serializer.INSTANCE.serialize(value.sendForSignaturePolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_FOLDER_JOIN_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("sharing_change_folder_join_policy_details", g); + SharingChangeFolderJoinPolicyDetails.Serializer.INSTANCE.serialize(value.sharingChangeFolderJoinPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("sharing_change_link_allow_change_expiration_policy_details", g); + SharingChangeLinkAllowChangeExpirationPolicyDetails.Serializer.INSTANCE.serialize(value.sharingChangeLinkAllowChangeExpirationPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("sharing_change_link_default_expiration_policy_details", g); + SharingChangeLinkDefaultExpirationPolicyDetails.Serializer.INSTANCE.serialize(value.sharingChangeLinkDefaultExpirationPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("sharing_change_link_enforce_password_policy_details", g); + SharingChangeLinkEnforcePasswordPolicyDetails.Serializer.INSTANCE.serialize(value.sharingChangeLinkEnforcePasswordPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("sharing_change_link_policy_details", g); + SharingChangeLinkPolicyDetails.Serializer.INSTANCE.serialize(value.sharingChangeLinkPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_MEMBER_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("sharing_change_member_policy_details", g); + SharingChangeMemberPolicyDetails.Serializer.INSTANCE.serialize(value.sharingChangeMemberPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CHANGE_DOWNLOAD_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("showcase_change_download_policy_details", g); + ShowcaseChangeDownloadPolicyDetails.Serializer.INSTANCE.serialize(value.showcaseChangeDownloadPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CHANGE_ENABLED_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("showcase_change_enabled_policy_details", g); + ShowcaseChangeEnabledPolicyDetails.Serializer.INSTANCE.serialize(value.showcaseChangeEnabledPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("showcase_change_external_sharing_policy_details", g); + ShowcaseChangeExternalSharingPolicyDetails.Serializer.INSTANCE.serialize(value.showcaseChangeExternalSharingPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SMARTER_SMART_SYNC_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("smarter_smart_sync_policy_changed_details", g); + SmarterSmartSyncPolicyChangedDetails.Serializer.INSTANCE.serialize(value.smarterSmartSyncPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("smart_sync_change_policy_details", g); + SmartSyncChangePolicyDetails.Serializer.INSTANCE.serialize(value.smartSyncChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_NOT_OPT_OUT_DETAILS: { + g.writeStartObject(); + writeTag("smart_sync_not_opt_out_details", g); + SmartSyncNotOptOutDetails.Serializer.INSTANCE.serialize(value.smartSyncNotOptOutDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_OPT_OUT_DETAILS: { + g.writeStartObject(); + writeTag("smart_sync_opt_out_details", g); + SmartSyncOptOutDetails.Serializer.INSTANCE.serialize(value.smartSyncOptOutDetailsValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("sso_change_policy_details", g); + SsoChangePolicyDetails.Serializer.INSTANCE.serialize(value.ssoChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_BRANDING_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("team_branding_policy_changed_details", g); + TeamBrandingPolicyChangedDetails.Serializer.INSTANCE.serialize(value.teamBrandingPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_EXTENSIONS_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("team_extensions_policy_changed_details", g); + TeamExtensionsPolicyChangedDetails.Serializer.INSTANCE.serialize(value.teamExtensionsPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_SELECTIVE_SYNC_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("team_selective_sync_policy_changed_details", g); + TeamSelectiveSyncPolicyChangedDetails.Serializer.INSTANCE.serialize(value.teamSelectiveSyncPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("team_sharing_whitelist_subjects_changed_details", g); + TeamSharingWhitelistSubjectsChangedDetails.Serializer.INSTANCE.serialize(value.teamSharingWhitelistSubjectsChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_ADD_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("tfa_add_exception_details", g); + TfaAddExceptionDetails.Serializer.INSTANCE.serialize(value.tfaAddExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("tfa_change_policy_details", g); + TfaChangePolicyDetails.Serializer.INSTANCE.serialize(value.tfaChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_REMOVE_EXCEPTION_DETAILS: { + g.writeStartObject(); + writeTag("tfa_remove_exception_details", g); + TfaRemoveExceptionDetails.Serializer.INSTANCE.serialize(value.tfaRemoveExceptionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TWO_ACCOUNT_CHANGE_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("two_account_change_policy_details", g); + TwoAccountChangePolicyDetails.Serializer.INSTANCE.serialize(value.twoAccountChangePolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case VIEWER_INFO_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("viewer_info_policy_changed_details", g); + ViewerInfoPolicyChangedDetails.Serializer.INSTANCE.serialize(value.viewerInfoPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case WATERMARKING_POLICY_CHANGED_DETAILS: { + g.writeStartObject(); + writeTag("watermarking_policy_changed_details", g); + WatermarkingPolicyChangedDetails.Serializer.INSTANCE.serialize(value.watermarkingPolicyChangedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT_DETAILS: { + g.writeStartObject(); + writeTag("web_sessions_change_active_session_limit_details", g); + WebSessionsChangeActiveSessionLimitDetails.Serializer.INSTANCE.serialize(value.webSessionsChangeActiveSessionLimitDetailsValue, g, true); + g.writeEndObject(); + break; + } + case WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("web_sessions_change_fixed_length_policy_details", g); + WebSessionsChangeFixedLengthPolicyDetails.Serializer.INSTANCE.serialize(value.webSessionsChangeFixedLengthPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY_DETAILS: { + g.writeStartObject(); + writeTag("web_sessions_change_idle_length_policy_details", g); + WebSessionsChangeIdleLengthPolicyDetails.Serializer.INSTANCE.serialize(value.webSessionsChangeIdleLengthPolicyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL_DETAILS: { + g.writeStartObject(); + writeTag("data_residency_migration_request_successful_details", g); + DataResidencyMigrationRequestSuccessfulDetails.Serializer.INSTANCE.serialize(value.dataResidencyMigrationRequestSuccessfulDetailsValue, g, true); + g.writeEndObject(); + break; + } + case DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL_DETAILS: { + g.writeStartObject(); + writeTag("data_residency_migration_request_unsuccessful_details", g); + DataResidencyMigrationRequestUnsuccessfulDetails.Serializer.INSTANCE.serialize(value.dataResidencyMigrationRequestUnsuccessfulDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_FROM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_from_details", g); + TeamMergeFromDetails.Serializer.INSTANCE.serialize(value.teamMergeFromDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_TO_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_to_details", g); + TeamMergeToDetails.Serializer.INSTANCE.serialize(value.teamMergeToDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_ADD_BACKGROUND_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_add_background_details", g); + TeamProfileAddBackgroundDetails.Serializer.INSTANCE.serialize(value.teamProfileAddBackgroundDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_ADD_LOGO_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_add_logo_details", g); + TeamProfileAddLogoDetails.Serializer.INSTANCE.serialize(value.teamProfileAddLogoDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_BACKGROUND_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_change_background_details", g); + TeamProfileChangeBackgroundDetails.Serializer.INSTANCE.serialize(value.teamProfileChangeBackgroundDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_change_default_language_details", g); + TeamProfileChangeDefaultLanguageDetails.Serializer.INSTANCE.serialize(value.teamProfileChangeDefaultLanguageDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_LOGO_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_change_logo_details", g); + TeamProfileChangeLogoDetails.Serializer.INSTANCE.serialize(value.teamProfileChangeLogoDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_NAME_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_change_name_details", g); + TeamProfileChangeNameDetails.Serializer.INSTANCE.serialize(value.teamProfileChangeNameDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_REMOVE_BACKGROUND_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_remove_background_details", g); + TeamProfileRemoveBackgroundDetails.Serializer.INSTANCE.serialize(value.teamProfileRemoveBackgroundDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_REMOVE_LOGO_DETAILS: { + g.writeStartObject(); + writeTag("team_profile_remove_logo_details", g); + TeamProfileRemoveLogoDetails.Serializer.INSTANCE.serialize(value.teamProfileRemoveLogoDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_ADD_BACKUP_PHONE_DETAILS: { + g.writeStartObject(); + writeTag("tfa_add_backup_phone_details", g); + TfaAddBackupPhoneDetails.Serializer.INSTANCE.serialize(value.tfaAddBackupPhoneDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_ADD_SECURITY_KEY_DETAILS: { + g.writeStartObject(); + writeTag("tfa_add_security_key_details", g); + TfaAddSecurityKeyDetails.Serializer.INSTANCE.serialize(value.tfaAddSecurityKeyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_CHANGE_BACKUP_PHONE_DETAILS: { + g.writeStartObject(); + writeTag("tfa_change_backup_phone_details", g); + TfaChangeBackupPhoneDetails.Serializer.INSTANCE.serialize(value.tfaChangeBackupPhoneDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_CHANGE_STATUS_DETAILS: { + g.writeStartObject(); + writeTag("tfa_change_status_details", g); + TfaChangeStatusDetails.Serializer.INSTANCE.serialize(value.tfaChangeStatusDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_REMOVE_BACKUP_PHONE_DETAILS: { + g.writeStartObject(); + writeTag("tfa_remove_backup_phone_details", g); + TfaRemoveBackupPhoneDetails.Serializer.INSTANCE.serialize(value.tfaRemoveBackupPhoneDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_REMOVE_SECURITY_KEY_DETAILS: { + g.writeStartObject(); + writeTag("tfa_remove_security_key_details", g); + TfaRemoveSecurityKeyDetails.Serializer.INSTANCE.serialize(value.tfaRemoveSecurityKeyDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TFA_RESET_DETAILS: { + g.writeStartObject(); + writeTag("tfa_reset_details", g); + TfaResetDetails.Serializer.INSTANCE.serialize(value.tfaResetDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CHANGED_ENTERPRISE_ADMIN_ROLE_DETAILS: { + g.writeStartObject(); + writeTag("changed_enterprise_admin_role_details", g); + ChangedEnterpriseAdminRoleDetails.Serializer.INSTANCE.serialize(value.changedEnterpriseAdminRoleDetailsValue, g, true); + g.writeEndObject(); + break; + } + case CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS_DETAILS: { + g.writeStartObject(); + writeTag("changed_enterprise_connected_team_status_details", g); + ChangedEnterpriseConnectedTeamStatusDetails.Serializer.INSTANCE.serialize(value.changedEnterpriseConnectedTeamStatusDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ENDED_ENTERPRISE_ADMIN_SESSION_DETAILS: { + g.writeStartObject(); + writeTag("ended_enterprise_admin_session_details", g); + EndedEnterpriseAdminSessionDetails.Serializer.INSTANCE.serialize(value.endedEnterpriseAdminSessionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED_DETAILS: { + g.writeStartObject(); + writeTag("ended_enterprise_admin_session_deprecated_details", g); + EndedEnterpriseAdminSessionDeprecatedDetails.Serializer.INSTANCE.serialize(value.endedEnterpriseAdminSessionDeprecatedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ENTERPRISE_SETTINGS_LOCKING_DETAILS: { + g.writeStartObject(); + writeTag("enterprise_settings_locking_details", g); + EnterpriseSettingsLockingDetails.Serializer.INSTANCE.serialize(value.enterpriseSettingsLockingDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GUEST_ADMIN_CHANGE_STATUS_DETAILS: { + g.writeStartObject(); + writeTag("guest_admin_change_status_details", g); + GuestAdminChangeStatusDetails.Serializer.INSTANCE.serialize(value.guestAdminChangeStatusDetailsValue, g, true); + g.writeEndObject(); + break; + } + case STARTED_ENTERPRISE_ADMIN_SESSION_DETAILS: { + g.writeStartObject(); + writeTag("started_enterprise_admin_session_details", g); + StartedEnterpriseAdminSessionDetails.Serializer.INSTANCE.serialize(value.startedEnterpriseAdminSessionDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_accepted_details", g); + TeamMergeRequestAcceptedDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestAcceptedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_accepted_shown_to_primary_team_details", g); + TeamMergeRequestAcceptedShownToPrimaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestAcceptedShownToPrimaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_accepted_shown_to_secondary_team_details", g); + TeamMergeRequestAcceptedShownToSecondaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestAcceptedShownToSecondaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_AUTO_CANCELED_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_auto_canceled_details", g); + TeamMergeRequestAutoCanceledDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestAutoCanceledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_CANCELED_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_canceled_details", g); + TeamMergeRequestCanceledDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestCanceledDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_canceled_shown_to_primary_team_details", g); + TeamMergeRequestCanceledShownToPrimaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestCanceledShownToPrimaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_canceled_shown_to_secondary_team_details", g); + TeamMergeRequestCanceledShownToSecondaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestCanceledShownToSecondaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_expired_details", g); + TeamMergeRequestExpiredDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestExpiredDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_expired_shown_to_primary_team_details", g); + TeamMergeRequestExpiredShownToPrimaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestExpiredShownToPrimaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_expired_shown_to_secondary_team_details", g); + TeamMergeRequestExpiredShownToSecondaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestExpiredShownToSecondaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_rejected_shown_to_primary_team_details", g); + TeamMergeRequestRejectedShownToPrimaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestRejectedShownToPrimaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_rejected_shown_to_secondary_team_details", g); + TeamMergeRequestRejectedShownToSecondaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestRejectedShownToSecondaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REMINDER_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_reminder_details", g); + TeamMergeRequestReminderDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestReminderDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_reminder_shown_to_primary_team_details", g); + TeamMergeRequestReminderShownToPrimaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestReminderShownToPrimaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_reminder_shown_to_secondary_team_details", g); + TeamMergeRequestReminderShownToSecondaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestReminderShownToSecondaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REVOKED_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_revoked_details", g); + TeamMergeRequestRevokedDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestRevokedDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_sent_shown_to_primary_team_details", g); + TeamMergeRequestSentShownToPrimaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestSentShownToPrimaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("team_merge_request_sent_shown_to_secondary_team_details", g); + TeamMergeRequestSentShownToSecondaryTeamDetails.Serializer.INSTANCE.serialize(value.teamMergeRequestSentShownToSecondaryTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case MISSING_DETAILS: { + g.writeStartObject(); + writeTag("missing_details", g); + MissingDetails.Serializer.INSTANCE.serialize(value.missingDetailsValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public EventDetails deserialize(JsonParser p) throws IOException, JsonParseException { + EventDetails value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admin_alerting_alert_state_changed_details".equals(tag)) { + AdminAlertingAlertStateChangedDetails fieldValue = null; + fieldValue = AdminAlertingAlertStateChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.adminAlertingAlertStateChangedDetails(fieldValue); + } + else if ("admin_alerting_changed_alert_config_details".equals(tag)) { + AdminAlertingChangedAlertConfigDetails fieldValue = null; + fieldValue = AdminAlertingChangedAlertConfigDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.adminAlertingChangedAlertConfigDetails(fieldValue); + } + else if ("admin_alerting_triggered_alert_details".equals(tag)) { + AdminAlertingTriggeredAlertDetails fieldValue = null; + fieldValue = AdminAlertingTriggeredAlertDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.adminAlertingTriggeredAlertDetails(fieldValue); + } + else if ("ransomware_restore_process_completed_details".equals(tag)) { + RansomwareRestoreProcessCompletedDetails fieldValue = null; + fieldValue = RansomwareRestoreProcessCompletedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ransomwareRestoreProcessCompletedDetails(fieldValue); + } + else if ("ransomware_restore_process_started_details".equals(tag)) { + RansomwareRestoreProcessStartedDetails fieldValue = null; + fieldValue = RansomwareRestoreProcessStartedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ransomwareRestoreProcessStartedDetails(fieldValue); + } + else if ("app_blocked_by_permissions_details".equals(tag)) { + AppBlockedByPermissionsDetails fieldValue = null; + fieldValue = AppBlockedByPermissionsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.appBlockedByPermissionsDetails(fieldValue); + } + else if ("app_link_team_details".equals(tag)) { + AppLinkTeamDetails fieldValue = null; + fieldValue = AppLinkTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.appLinkTeamDetails(fieldValue); + } + else if ("app_link_user_details".equals(tag)) { + AppLinkUserDetails fieldValue = null; + fieldValue = AppLinkUserDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.appLinkUserDetails(fieldValue); + } + else if ("app_unlink_team_details".equals(tag)) { + AppUnlinkTeamDetails fieldValue = null; + fieldValue = AppUnlinkTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.appUnlinkTeamDetails(fieldValue); + } + else if ("app_unlink_user_details".equals(tag)) { + AppUnlinkUserDetails fieldValue = null; + fieldValue = AppUnlinkUserDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.appUnlinkUserDetails(fieldValue); + } + else if ("integration_connected_details".equals(tag)) { + IntegrationConnectedDetails fieldValue = null; + fieldValue = IntegrationConnectedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.integrationConnectedDetails(fieldValue); + } + else if ("integration_disconnected_details".equals(tag)) { + IntegrationDisconnectedDetails fieldValue = null; + fieldValue = IntegrationDisconnectedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.integrationDisconnectedDetails(fieldValue); + } + else if ("file_add_comment_details".equals(tag)) { + FileAddCommentDetails fieldValue = null; + fieldValue = FileAddCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileAddCommentDetails(fieldValue); + } + else if ("file_change_comment_subscription_details".equals(tag)) { + FileChangeCommentSubscriptionDetails fieldValue = null; + fieldValue = FileChangeCommentSubscriptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileChangeCommentSubscriptionDetails(fieldValue); + } + else if ("file_delete_comment_details".equals(tag)) { + FileDeleteCommentDetails fieldValue = null; + fieldValue = FileDeleteCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileDeleteCommentDetails(fieldValue); + } + else if ("file_edit_comment_details".equals(tag)) { + FileEditCommentDetails fieldValue = null; + fieldValue = FileEditCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileEditCommentDetails(fieldValue); + } + else if ("file_like_comment_details".equals(tag)) { + FileLikeCommentDetails fieldValue = null; + fieldValue = FileLikeCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileLikeCommentDetails(fieldValue); + } + else if ("file_resolve_comment_details".equals(tag)) { + FileResolveCommentDetails fieldValue = null; + fieldValue = FileResolveCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileResolveCommentDetails(fieldValue); + } + else if ("file_unlike_comment_details".equals(tag)) { + FileUnlikeCommentDetails fieldValue = null; + fieldValue = FileUnlikeCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileUnlikeCommentDetails(fieldValue); + } + else if ("file_unresolve_comment_details".equals(tag)) { + FileUnresolveCommentDetails fieldValue = null; + fieldValue = FileUnresolveCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileUnresolveCommentDetails(fieldValue); + } + else if ("governance_policy_add_folders_details".equals(tag)) { + GovernancePolicyAddFoldersDetails fieldValue = null; + fieldValue = GovernancePolicyAddFoldersDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyAddFoldersDetails(fieldValue); + } + else if ("governance_policy_add_folder_failed_details".equals(tag)) { + GovernancePolicyAddFolderFailedDetails fieldValue = null; + fieldValue = GovernancePolicyAddFolderFailedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyAddFolderFailedDetails(fieldValue); + } + else if ("governance_policy_content_disposed_details".equals(tag)) { + GovernancePolicyContentDisposedDetails fieldValue = null; + fieldValue = GovernancePolicyContentDisposedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyContentDisposedDetails(fieldValue); + } + else if ("governance_policy_create_details".equals(tag)) { + GovernancePolicyCreateDetails fieldValue = null; + fieldValue = GovernancePolicyCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyCreateDetails(fieldValue); + } + else if ("governance_policy_delete_details".equals(tag)) { + GovernancePolicyDeleteDetails fieldValue = null; + fieldValue = GovernancePolicyDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyDeleteDetails(fieldValue); + } + else if ("governance_policy_edit_details_details".equals(tag)) { + GovernancePolicyEditDetailsDetails fieldValue = null; + fieldValue = GovernancePolicyEditDetailsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyEditDetailsDetails(fieldValue); + } + else if ("governance_policy_edit_duration_details".equals(tag)) { + GovernancePolicyEditDurationDetails fieldValue = null; + fieldValue = GovernancePolicyEditDurationDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyEditDurationDetails(fieldValue); + } + else if ("governance_policy_export_created_details".equals(tag)) { + GovernancePolicyExportCreatedDetails fieldValue = null; + fieldValue = GovernancePolicyExportCreatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyExportCreatedDetails(fieldValue); + } + else if ("governance_policy_export_removed_details".equals(tag)) { + GovernancePolicyExportRemovedDetails fieldValue = null; + fieldValue = GovernancePolicyExportRemovedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyExportRemovedDetails(fieldValue); + } + else if ("governance_policy_remove_folders_details".equals(tag)) { + GovernancePolicyRemoveFoldersDetails fieldValue = null; + fieldValue = GovernancePolicyRemoveFoldersDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyRemoveFoldersDetails(fieldValue); + } + else if ("governance_policy_report_created_details".equals(tag)) { + GovernancePolicyReportCreatedDetails fieldValue = null; + fieldValue = GovernancePolicyReportCreatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyReportCreatedDetails(fieldValue); + } + else if ("governance_policy_zip_part_downloaded_details".equals(tag)) { + GovernancePolicyZipPartDownloadedDetails fieldValue = null; + fieldValue = GovernancePolicyZipPartDownloadedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.governancePolicyZipPartDownloadedDetails(fieldValue); + } + else if ("legal_holds_activate_a_hold_details".equals(tag)) { + LegalHoldsActivateAHoldDetails fieldValue = null; + fieldValue = LegalHoldsActivateAHoldDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsActivateAHoldDetails(fieldValue); + } + else if ("legal_holds_add_members_details".equals(tag)) { + LegalHoldsAddMembersDetails fieldValue = null; + fieldValue = LegalHoldsAddMembersDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsAddMembersDetails(fieldValue); + } + else if ("legal_holds_change_hold_details_details".equals(tag)) { + LegalHoldsChangeHoldDetailsDetails fieldValue = null; + fieldValue = LegalHoldsChangeHoldDetailsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsChangeHoldDetailsDetails(fieldValue); + } + else if ("legal_holds_change_hold_name_details".equals(tag)) { + LegalHoldsChangeHoldNameDetails fieldValue = null; + fieldValue = LegalHoldsChangeHoldNameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsChangeHoldNameDetails(fieldValue); + } + else if ("legal_holds_export_a_hold_details".equals(tag)) { + LegalHoldsExportAHoldDetails fieldValue = null; + fieldValue = LegalHoldsExportAHoldDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsExportAHoldDetails(fieldValue); + } + else if ("legal_holds_export_cancelled_details".equals(tag)) { + LegalHoldsExportCancelledDetails fieldValue = null; + fieldValue = LegalHoldsExportCancelledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsExportCancelledDetails(fieldValue); + } + else if ("legal_holds_export_downloaded_details".equals(tag)) { + LegalHoldsExportDownloadedDetails fieldValue = null; + fieldValue = LegalHoldsExportDownloadedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsExportDownloadedDetails(fieldValue); + } + else if ("legal_holds_export_removed_details".equals(tag)) { + LegalHoldsExportRemovedDetails fieldValue = null; + fieldValue = LegalHoldsExportRemovedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsExportRemovedDetails(fieldValue); + } + else if ("legal_holds_release_a_hold_details".equals(tag)) { + LegalHoldsReleaseAHoldDetails fieldValue = null; + fieldValue = LegalHoldsReleaseAHoldDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsReleaseAHoldDetails(fieldValue); + } + else if ("legal_holds_remove_members_details".equals(tag)) { + LegalHoldsRemoveMembersDetails fieldValue = null; + fieldValue = LegalHoldsRemoveMembersDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsRemoveMembersDetails(fieldValue); + } + else if ("legal_holds_report_a_hold_details".equals(tag)) { + LegalHoldsReportAHoldDetails fieldValue = null; + fieldValue = LegalHoldsReportAHoldDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.legalHoldsReportAHoldDetails(fieldValue); + } + else if ("device_change_ip_desktop_details".equals(tag)) { + DeviceChangeIpDesktopDetails fieldValue = null; + fieldValue = DeviceChangeIpDesktopDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceChangeIpDesktopDetails(fieldValue); + } + else if ("device_change_ip_mobile_details".equals(tag)) { + DeviceChangeIpMobileDetails fieldValue = null; + fieldValue = DeviceChangeIpMobileDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceChangeIpMobileDetails(fieldValue); + } + else if ("device_change_ip_web_details".equals(tag)) { + DeviceChangeIpWebDetails fieldValue = null; + fieldValue = DeviceChangeIpWebDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceChangeIpWebDetails(fieldValue); + } + else if ("device_delete_on_unlink_fail_details".equals(tag)) { + DeviceDeleteOnUnlinkFailDetails fieldValue = null; + fieldValue = DeviceDeleteOnUnlinkFailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceDeleteOnUnlinkFailDetails(fieldValue); + } + else if ("device_delete_on_unlink_success_details".equals(tag)) { + DeviceDeleteOnUnlinkSuccessDetails fieldValue = null; + fieldValue = DeviceDeleteOnUnlinkSuccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceDeleteOnUnlinkSuccessDetails(fieldValue); + } + else if ("device_link_fail_details".equals(tag)) { + DeviceLinkFailDetails fieldValue = null; + fieldValue = DeviceLinkFailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceLinkFailDetails(fieldValue); + } + else if ("device_link_success_details".equals(tag)) { + DeviceLinkSuccessDetails fieldValue = null; + fieldValue = DeviceLinkSuccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceLinkSuccessDetails(fieldValue); + } + else if ("device_management_disabled_details".equals(tag)) { + DeviceManagementDisabledDetails fieldValue = null; + fieldValue = DeviceManagementDisabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceManagementDisabledDetails(fieldValue); + } + else if ("device_management_enabled_details".equals(tag)) { + DeviceManagementEnabledDetails fieldValue = null; + fieldValue = DeviceManagementEnabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceManagementEnabledDetails(fieldValue); + } + else if ("device_sync_backup_status_changed_details".equals(tag)) { + DeviceSyncBackupStatusChangedDetails fieldValue = null; + fieldValue = DeviceSyncBackupStatusChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceSyncBackupStatusChangedDetails(fieldValue); + } + else if ("device_unlink_details".equals(tag)) { + DeviceUnlinkDetails fieldValue = null; + fieldValue = DeviceUnlinkDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceUnlinkDetails(fieldValue); + } + else if ("dropbox_passwords_exported_details".equals(tag)) { + DropboxPasswordsExportedDetails fieldValue = null; + fieldValue = DropboxPasswordsExportedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.dropboxPasswordsExportedDetails(fieldValue); + } + else if ("dropbox_passwords_new_device_enrolled_details".equals(tag)) { + DropboxPasswordsNewDeviceEnrolledDetails fieldValue = null; + fieldValue = DropboxPasswordsNewDeviceEnrolledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.dropboxPasswordsNewDeviceEnrolledDetails(fieldValue); + } + else if ("emm_refresh_auth_token_details".equals(tag)) { + EmmRefreshAuthTokenDetails fieldValue = null; + fieldValue = EmmRefreshAuthTokenDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emmRefreshAuthTokenDetails(fieldValue); + } + else if ("external_drive_backup_eligibility_status_checked_details".equals(tag)) { + ExternalDriveBackupEligibilityStatusCheckedDetails fieldValue = null; + fieldValue = ExternalDriveBackupEligibilityStatusCheckedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.externalDriveBackupEligibilityStatusCheckedDetails(fieldValue); + } + else if ("external_drive_backup_status_changed_details".equals(tag)) { + ExternalDriveBackupStatusChangedDetails fieldValue = null; + fieldValue = ExternalDriveBackupStatusChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.externalDriveBackupStatusChangedDetails(fieldValue); + } + else if ("account_capture_change_availability_details".equals(tag)) { + AccountCaptureChangeAvailabilityDetails fieldValue = null; + fieldValue = AccountCaptureChangeAvailabilityDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.accountCaptureChangeAvailabilityDetails(fieldValue); + } + else if ("account_capture_migrate_account_details".equals(tag)) { + AccountCaptureMigrateAccountDetails fieldValue = null; + fieldValue = AccountCaptureMigrateAccountDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.accountCaptureMigrateAccountDetails(fieldValue); + } + else if ("account_capture_notification_emails_sent_details".equals(tag)) { + AccountCaptureNotificationEmailsSentDetails fieldValue = null; + fieldValue = AccountCaptureNotificationEmailsSentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.accountCaptureNotificationEmailsSentDetails(fieldValue); + } + else if ("account_capture_relinquish_account_details".equals(tag)) { + AccountCaptureRelinquishAccountDetails fieldValue = null; + fieldValue = AccountCaptureRelinquishAccountDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.accountCaptureRelinquishAccountDetails(fieldValue); + } + else if ("disabled_domain_invites_details".equals(tag)) { + DisabledDomainInvitesDetails fieldValue = null; + fieldValue = DisabledDomainInvitesDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.disabledDomainInvitesDetails(fieldValue); + } + else if ("domain_invites_approve_request_to_join_team_details".equals(tag)) { + DomainInvitesApproveRequestToJoinTeamDetails fieldValue = null; + fieldValue = DomainInvitesApproveRequestToJoinTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainInvitesApproveRequestToJoinTeamDetails(fieldValue); + } + else if ("domain_invites_decline_request_to_join_team_details".equals(tag)) { + DomainInvitesDeclineRequestToJoinTeamDetails fieldValue = null; + fieldValue = DomainInvitesDeclineRequestToJoinTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainInvitesDeclineRequestToJoinTeamDetails(fieldValue); + } + else if ("domain_invites_email_existing_users_details".equals(tag)) { + DomainInvitesEmailExistingUsersDetails fieldValue = null; + fieldValue = DomainInvitesEmailExistingUsersDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainInvitesEmailExistingUsersDetails(fieldValue); + } + else if ("domain_invites_request_to_join_team_details".equals(tag)) { + DomainInvitesRequestToJoinTeamDetails fieldValue = null; + fieldValue = DomainInvitesRequestToJoinTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainInvitesRequestToJoinTeamDetails(fieldValue); + } + else if ("domain_invites_set_invite_new_user_pref_to_no_details".equals(tag)) { + DomainInvitesSetInviteNewUserPrefToNoDetails fieldValue = null; + fieldValue = DomainInvitesSetInviteNewUserPrefToNoDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainInvitesSetInviteNewUserPrefToNoDetails(fieldValue); + } + else if ("domain_invites_set_invite_new_user_pref_to_yes_details".equals(tag)) { + DomainInvitesSetInviteNewUserPrefToYesDetails fieldValue = null; + fieldValue = DomainInvitesSetInviteNewUserPrefToYesDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainInvitesSetInviteNewUserPrefToYesDetails(fieldValue); + } + else if ("domain_verification_add_domain_fail_details".equals(tag)) { + DomainVerificationAddDomainFailDetails fieldValue = null; + fieldValue = DomainVerificationAddDomainFailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainVerificationAddDomainFailDetails(fieldValue); + } + else if ("domain_verification_add_domain_success_details".equals(tag)) { + DomainVerificationAddDomainSuccessDetails fieldValue = null; + fieldValue = DomainVerificationAddDomainSuccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainVerificationAddDomainSuccessDetails(fieldValue); + } + else if ("domain_verification_remove_domain_details".equals(tag)) { + DomainVerificationRemoveDomainDetails fieldValue = null; + fieldValue = DomainVerificationRemoveDomainDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.domainVerificationRemoveDomainDetails(fieldValue); + } + else if ("enabled_domain_invites_details".equals(tag)) { + EnabledDomainInvitesDetails fieldValue = null; + fieldValue = EnabledDomainInvitesDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.enabledDomainInvitesDetails(fieldValue); + } + else if ("team_encryption_key_cancel_key_deletion_details".equals(tag)) { + TeamEncryptionKeyCancelKeyDeletionDetails fieldValue = null; + fieldValue = TeamEncryptionKeyCancelKeyDeletionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamEncryptionKeyCancelKeyDeletionDetails(fieldValue); + } + else if ("team_encryption_key_create_key_details".equals(tag)) { + TeamEncryptionKeyCreateKeyDetails fieldValue = null; + fieldValue = TeamEncryptionKeyCreateKeyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamEncryptionKeyCreateKeyDetails(fieldValue); + } + else if ("team_encryption_key_delete_key_details".equals(tag)) { + TeamEncryptionKeyDeleteKeyDetails fieldValue = null; + fieldValue = TeamEncryptionKeyDeleteKeyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamEncryptionKeyDeleteKeyDetails(fieldValue); + } + else if ("team_encryption_key_disable_key_details".equals(tag)) { + TeamEncryptionKeyDisableKeyDetails fieldValue = null; + fieldValue = TeamEncryptionKeyDisableKeyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamEncryptionKeyDisableKeyDetails(fieldValue); + } + else if ("team_encryption_key_enable_key_details".equals(tag)) { + TeamEncryptionKeyEnableKeyDetails fieldValue = null; + fieldValue = TeamEncryptionKeyEnableKeyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamEncryptionKeyEnableKeyDetails(fieldValue); + } + else if ("team_encryption_key_rotate_key_details".equals(tag)) { + TeamEncryptionKeyRotateKeyDetails fieldValue = null; + fieldValue = TeamEncryptionKeyRotateKeyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamEncryptionKeyRotateKeyDetails(fieldValue); + } + else if ("team_encryption_key_schedule_key_deletion_details".equals(tag)) { + TeamEncryptionKeyScheduleKeyDeletionDetails fieldValue = null; + fieldValue = TeamEncryptionKeyScheduleKeyDeletionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamEncryptionKeyScheduleKeyDeletionDetails(fieldValue); + } + else if ("apply_naming_convention_details".equals(tag)) { + ApplyNamingConventionDetails fieldValue = null; + fieldValue = ApplyNamingConventionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.applyNamingConventionDetails(fieldValue); + } + else if ("create_folder_details".equals(tag)) { + CreateFolderDetails fieldValue = null; + fieldValue = CreateFolderDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.createFolderDetails(fieldValue); + } + else if ("file_add_details".equals(tag)) { + FileAddDetails fieldValue = null; + fieldValue = FileAddDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileAddDetails(fieldValue); + } + else if ("file_add_from_automation_details".equals(tag)) { + FileAddFromAutomationDetails fieldValue = null; + fieldValue = FileAddFromAutomationDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileAddFromAutomationDetails(fieldValue); + } + else if ("file_copy_details".equals(tag)) { + FileCopyDetails fieldValue = null; + fieldValue = FileCopyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileCopyDetails(fieldValue); + } + else if ("file_delete_details".equals(tag)) { + FileDeleteDetails fieldValue = null; + fieldValue = FileDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileDeleteDetails(fieldValue); + } + else if ("file_download_details".equals(tag)) { + FileDownloadDetails fieldValue = null; + fieldValue = FileDownloadDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileDownloadDetails(fieldValue); + } + else if ("file_edit_details".equals(tag)) { + FileEditDetails fieldValue = null; + fieldValue = FileEditDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileEditDetails(fieldValue); + } + else if ("file_get_copy_reference_details".equals(tag)) { + FileGetCopyReferenceDetails fieldValue = null; + fieldValue = FileGetCopyReferenceDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileGetCopyReferenceDetails(fieldValue); + } + else if ("file_locking_lock_status_changed_details".equals(tag)) { + FileLockingLockStatusChangedDetails fieldValue = null; + fieldValue = FileLockingLockStatusChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileLockingLockStatusChangedDetails(fieldValue); + } + else if ("file_move_details".equals(tag)) { + FileMoveDetails fieldValue = null; + fieldValue = FileMoveDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileMoveDetails(fieldValue); + } + else if ("file_permanently_delete_details".equals(tag)) { + FilePermanentlyDeleteDetails fieldValue = null; + fieldValue = FilePermanentlyDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.filePermanentlyDeleteDetails(fieldValue); + } + else if ("file_preview_details".equals(tag)) { + FilePreviewDetails fieldValue = null; + fieldValue = FilePreviewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.filePreviewDetails(fieldValue); + } + else if ("file_rename_details".equals(tag)) { + FileRenameDetails fieldValue = null; + fieldValue = FileRenameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRenameDetails(fieldValue); + } + else if ("file_restore_details".equals(tag)) { + FileRestoreDetails fieldValue = null; + fieldValue = FileRestoreDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRestoreDetails(fieldValue); + } + else if ("file_revert_details".equals(tag)) { + FileRevertDetails fieldValue = null; + fieldValue = FileRevertDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRevertDetails(fieldValue); + } + else if ("file_rollback_changes_details".equals(tag)) { + FileRollbackChangesDetails fieldValue = null; + fieldValue = FileRollbackChangesDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRollbackChangesDetails(fieldValue); + } + else if ("file_save_copy_reference_details".equals(tag)) { + FileSaveCopyReferenceDetails fieldValue = null; + fieldValue = FileSaveCopyReferenceDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileSaveCopyReferenceDetails(fieldValue); + } + else if ("folder_overview_description_changed_details".equals(tag)) { + FolderOverviewDescriptionChangedDetails fieldValue = null; + fieldValue = FolderOverviewDescriptionChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.folderOverviewDescriptionChangedDetails(fieldValue); + } + else if ("folder_overview_item_pinned_details".equals(tag)) { + FolderOverviewItemPinnedDetails fieldValue = null; + fieldValue = FolderOverviewItemPinnedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.folderOverviewItemPinnedDetails(fieldValue); + } + else if ("folder_overview_item_unpinned_details".equals(tag)) { + FolderOverviewItemUnpinnedDetails fieldValue = null; + fieldValue = FolderOverviewItemUnpinnedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.folderOverviewItemUnpinnedDetails(fieldValue); + } + else if ("object_label_added_details".equals(tag)) { + ObjectLabelAddedDetails fieldValue = null; + fieldValue = ObjectLabelAddedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.objectLabelAddedDetails(fieldValue); + } + else if ("object_label_removed_details".equals(tag)) { + ObjectLabelRemovedDetails fieldValue = null; + fieldValue = ObjectLabelRemovedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.objectLabelRemovedDetails(fieldValue); + } + else if ("object_label_updated_value_details".equals(tag)) { + ObjectLabelUpdatedValueDetails fieldValue = null; + fieldValue = ObjectLabelUpdatedValueDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.objectLabelUpdatedValueDetails(fieldValue); + } + else if ("organize_folder_with_tidy_details".equals(tag)) { + OrganizeFolderWithTidyDetails fieldValue = null; + fieldValue = OrganizeFolderWithTidyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.organizeFolderWithTidyDetails(fieldValue); + } + else if ("replay_file_delete_details".equals(tag)) { + ReplayFileDeleteDetails fieldValue = null; + fieldValue = ReplayFileDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.replayFileDeleteDetails(fieldValue); + } + else if ("rewind_folder_details".equals(tag)) { + RewindFolderDetails fieldValue = null; + fieldValue = RewindFolderDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.rewindFolderDetails(fieldValue); + } + else if ("undo_naming_convention_details".equals(tag)) { + UndoNamingConventionDetails fieldValue = null; + fieldValue = UndoNamingConventionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.undoNamingConventionDetails(fieldValue); + } + else if ("undo_organize_folder_with_tidy_details".equals(tag)) { + UndoOrganizeFolderWithTidyDetails fieldValue = null; + fieldValue = UndoOrganizeFolderWithTidyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.undoOrganizeFolderWithTidyDetails(fieldValue); + } + else if ("user_tags_added_details".equals(tag)) { + UserTagsAddedDetails fieldValue = null; + fieldValue = UserTagsAddedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.userTagsAddedDetails(fieldValue); + } + else if ("user_tags_removed_details".equals(tag)) { + UserTagsRemovedDetails fieldValue = null; + fieldValue = UserTagsRemovedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.userTagsRemovedDetails(fieldValue); + } + else if ("email_ingest_receive_file_details".equals(tag)) { + EmailIngestReceiveFileDetails fieldValue = null; + fieldValue = EmailIngestReceiveFileDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emailIngestReceiveFileDetails(fieldValue); + } + else if ("file_request_change_details".equals(tag)) { + FileRequestChangeDetails fieldValue = null; + fieldValue = FileRequestChangeDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestChangeDetails(fieldValue); + } + else if ("file_request_close_details".equals(tag)) { + FileRequestCloseDetails fieldValue = null; + fieldValue = FileRequestCloseDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestCloseDetails(fieldValue); + } + else if ("file_request_create_details".equals(tag)) { + FileRequestCreateDetails fieldValue = null; + fieldValue = FileRequestCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestCreateDetails(fieldValue); + } + else if ("file_request_delete_details".equals(tag)) { + FileRequestDeleteDetails fieldValue = null; + fieldValue = FileRequestDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestDeleteDetails(fieldValue); + } + else if ("file_request_receive_file_details".equals(tag)) { + FileRequestReceiveFileDetails fieldValue = null; + fieldValue = FileRequestReceiveFileDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestReceiveFileDetails(fieldValue); + } + else if ("group_add_external_id_details".equals(tag)) { + GroupAddExternalIdDetails fieldValue = null; + fieldValue = GroupAddExternalIdDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupAddExternalIdDetails(fieldValue); + } + else if ("group_add_member_details".equals(tag)) { + GroupAddMemberDetails fieldValue = null; + fieldValue = GroupAddMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupAddMemberDetails(fieldValue); + } + else if ("group_change_external_id_details".equals(tag)) { + GroupChangeExternalIdDetails fieldValue = null; + fieldValue = GroupChangeExternalIdDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupChangeExternalIdDetails(fieldValue); + } + else if ("group_change_management_type_details".equals(tag)) { + GroupChangeManagementTypeDetails fieldValue = null; + fieldValue = GroupChangeManagementTypeDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupChangeManagementTypeDetails(fieldValue); + } + else if ("group_change_member_role_details".equals(tag)) { + GroupChangeMemberRoleDetails fieldValue = null; + fieldValue = GroupChangeMemberRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupChangeMemberRoleDetails(fieldValue); + } + else if ("group_create_details".equals(tag)) { + GroupCreateDetails fieldValue = null; + fieldValue = GroupCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupCreateDetails(fieldValue); + } + else if ("group_delete_details".equals(tag)) { + GroupDeleteDetails fieldValue = null; + fieldValue = GroupDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupDeleteDetails(fieldValue); + } + else if ("group_description_updated_details".equals(tag)) { + GroupDescriptionUpdatedDetails fieldValue = null; + fieldValue = GroupDescriptionUpdatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupDescriptionUpdatedDetails(fieldValue); + } + else if ("group_join_policy_updated_details".equals(tag)) { + GroupJoinPolicyUpdatedDetails fieldValue = null; + fieldValue = GroupJoinPolicyUpdatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupJoinPolicyUpdatedDetails(fieldValue); + } + else if ("group_moved_details".equals(tag)) { + GroupMovedDetails fieldValue = null; + fieldValue = GroupMovedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupMovedDetails(fieldValue); + } + else if ("group_remove_external_id_details".equals(tag)) { + GroupRemoveExternalIdDetails fieldValue = null; + fieldValue = GroupRemoveExternalIdDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupRemoveExternalIdDetails(fieldValue); + } + else if ("group_remove_member_details".equals(tag)) { + GroupRemoveMemberDetails fieldValue = null; + fieldValue = GroupRemoveMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupRemoveMemberDetails(fieldValue); + } + else if ("group_rename_details".equals(tag)) { + GroupRenameDetails fieldValue = null; + fieldValue = GroupRenameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupRenameDetails(fieldValue); + } + else if ("account_lock_or_unlocked_details".equals(tag)) { + AccountLockOrUnlockedDetails fieldValue = null; + fieldValue = AccountLockOrUnlockedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.accountLockOrUnlockedDetails(fieldValue); + } + else if ("emm_error_details".equals(tag)) { + EmmErrorDetails fieldValue = null; + fieldValue = EmmErrorDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emmErrorDetails(fieldValue); + } + else if ("guest_admin_signed_in_via_trusted_teams_details".equals(tag)) { + GuestAdminSignedInViaTrustedTeamsDetails fieldValue = null; + fieldValue = GuestAdminSignedInViaTrustedTeamsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.guestAdminSignedInViaTrustedTeamsDetails(fieldValue); + } + else if ("guest_admin_signed_out_via_trusted_teams_details".equals(tag)) { + GuestAdminSignedOutViaTrustedTeamsDetails fieldValue = null; + fieldValue = GuestAdminSignedOutViaTrustedTeamsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.guestAdminSignedOutViaTrustedTeamsDetails(fieldValue); + } + else if ("login_fail_details".equals(tag)) { + LoginFailDetails fieldValue = null; + fieldValue = LoginFailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.loginFailDetails(fieldValue); + } + else if ("login_success_details".equals(tag)) { + LoginSuccessDetails fieldValue = null; + fieldValue = LoginSuccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.loginSuccessDetails(fieldValue); + } + else if ("logout_details".equals(tag)) { + LogoutDetails fieldValue = null; + fieldValue = LogoutDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.logoutDetails(fieldValue); + } + else if ("reseller_support_session_end_details".equals(tag)) { + ResellerSupportSessionEndDetails fieldValue = null; + fieldValue = ResellerSupportSessionEndDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.resellerSupportSessionEndDetails(fieldValue); + } + else if ("reseller_support_session_start_details".equals(tag)) { + ResellerSupportSessionStartDetails fieldValue = null; + fieldValue = ResellerSupportSessionStartDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.resellerSupportSessionStartDetails(fieldValue); + } + else if ("sign_in_as_session_end_details".equals(tag)) { + SignInAsSessionEndDetails fieldValue = null; + fieldValue = SignInAsSessionEndDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.signInAsSessionEndDetails(fieldValue); + } + else if ("sign_in_as_session_start_details".equals(tag)) { + SignInAsSessionStartDetails fieldValue = null; + fieldValue = SignInAsSessionStartDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.signInAsSessionStartDetails(fieldValue); + } + else if ("sso_error_details".equals(tag)) { + SsoErrorDetails fieldValue = null; + fieldValue = SsoErrorDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoErrorDetails(fieldValue); + } + else if ("backup_admin_invitation_sent_details".equals(tag)) { + BackupAdminInvitationSentDetails fieldValue = null; + fieldValue = BackupAdminInvitationSentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.backupAdminInvitationSentDetails(fieldValue); + } + else if ("backup_invitation_opened_details".equals(tag)) { + BackupInvitationOpenedDetails fieldValue = null; + fieldValue = BackupInvitationOpenedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.backupInvitationOpenedDetails(fieldValue); + } + else if ("create_team_invite_link_details".equals(tag)) { + CreateTeamInviteLinkDetails fieldValue = null; + fieldValue = CreateTeamInviteLinkDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.createTeamInviteLinkDetails(fieldValue); + } + else if ("delete_team_invite_link_details".equals(tag)) { + DeleteTeamInviteLinkDetails fieldValue = null; + fieldValue = DeleteTeamInviteLinkDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deleteTeamInviteLinkDetails(fieldValue); + } + else if ("member_add_external_id_details".equals(tag)) { + MemberAddExternalIdDetails fieldValue = null; + fieldValue = MemberAddExternalIdDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberAddExternalIdDetails(fieldValue); + } + else if ("member_add_name_details".equals(tag)) { + MemberAddNameDetails fieldValue = null; + fieldValue = MemberAddNameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberAddNameDetails(fieldValue); + } + else if ("member_change_admin_role_details".equals(tag)) { + MemberChangeAdminRoleDetails fieldValue = null; + fieldValue = MemberChangeAdminRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberChangeAdminRoleDetails(fieldValue); + } + else if ("member_change_email_details".equals(tag)) { + MemberChangeEmailDetails fieldValue = null; + fieldValue = MemberChangeEmailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberChangeEmailDetails(fieldValue); + } + else if ("member_change_external_id_details".equals(tag)) { + MemberChangeExternalIdDetails fieldValue = null; + fieldValue = MemberChangeExternalIdDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberChangeExternalIdDetails(fieldValue); + } + else if ("member_change_membership_type_details".equals(tag)) { + MemberChangeMembershipTypeDetails fieldValue = null; + fieldValue = MemberChangeMembershipTypeDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberChangeMembershipTypeDetails(fieldValue); + } + else if ("member_change_name_details".equals(tag)) { + MemberChangeNameDetails fieldValue = null; + fieldValue = MemberChangeNameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberChangeNameDetails(fieldValue); + } + else if ("member_change_reseller_role_details".equals(tag)) { + MemberChangeResellerRoleDetails fieldValue = null; + fieldValue = MemberChangeResellerRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberChangeResellerRoleDetails(fieldValue); + } + else if ("member_change_status_details".equals(tag)) { + MemberChangeStatusDetails fieldValue = null; + fieldValue = MemberChangeStatusDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberChangeStatusDetails(fieldValue); + } + else if ("member_delete_manual_contacts_details".equals(tag)) { + MemberDeleteManualContactsDetails fieldValue = null; + fieldValue = MemberDeleteManualContactsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberDeleteManualContactsDetails(fieldValue); + } + else if ("member_delete_profile_photo_details".equals(tag)) { + MemberDeleteProfilePhotoDetails fieldValue = null; + fieldValue = MemberDeleteProfilePhotoDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberDeleteProfilePhotoDetails(fieldValue); + } + else if ("member_permanently_delete_account_contents_details".equals(tag)) { + MemberPermanentlyDeleteAccountContentsDetails fieldValue = null; + fieldValue = MemberPermanentlyDeleteAccountContentsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberPermanentlyDeleteAccountContentsDetails(fieldValue); + } + else if ("member_remove_external_id_details".equals(tag)) { + MemberRemoveExternalIdDetails fieldValue = null; + fieldValue = MemberRemoveExternalIdDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberRemoveExternalIdDetails(fieldValue); + } + else if ("member_set_profile_photo_details".equals(tag)) { + MemberSetProfilePhotoDetails fieldValue = null; + fieldValue = MemberSetProfilePhotoDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSetProfilePhotoDetails(fieldValue); + } + else if ("member_space_limits_add_custom_quota_details".equals(tag)) { + MemberSpaceLimitsAddCustomQuotaDetails fieldValue = null; + fieldValue = MemberSpaceLimitsAddCustomQuotaDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsAddCustomQuotaDetails(fieldValue); + } + else if ("member_space_limits_change_custom_quota_details".equals(tag)) { + MemberSpaceLimitsChangeCustomQuotaDetails fieldValue = null; + fieldValue = MemberSpaceLimitsChangeCustomQuotaDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsChangeCustomQuotaDetails(fieldValue); + } + else if ("member_space_limits_change_status_details".equals(tag)) { + MemberSpaceLimitsChangeStatusDetails fieldValue = null; + fieldValue = MemberSpaceLimitsChangeStatusDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsChangeStatusDetails(fieldValue); + } + else if ("member_space_limits_remove_custom_quota_details".equals(tag)) { + MemberSpaceLimitsRemoveCustomQuotaDetails fieldValue = null; + fieldValue = MemberSpaceLimitsRemoveCustomQuotaDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsRemoveCustomQuotaDetails(fieldValue); + } + else if ("member_suggest_details".equals(tag)) { + MemberSuggestDetails fieldValue = null; + fieldValue = MemberSuggestDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSuggestDetails(fieldValue); + } + else if ("member_transfer_account_contents_details".equals(tag)) { + MemberTransferAccountContentsDetails fieldValue = null; + fieldValue = MemberTransferAccountContentsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberTransferAccountContentsDetails(fieldValue); + } + else if ("pending_secondary_email_added_details".equals(tag)) { + PendingSecondaryEmailAddedDetails fieldValue = null; + fieldValue = PendingSecondaryEmailAddedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.pendingSecondaryEmailAddedDetails(fieldValue); + } + else if ("secondary_email_deleted_details".equals(tag)) { + SecondaryEmailDeletedDetails fieldValue = null; + fieldValue = SecondaryEmailDeletedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.secondaryEmailDeletedDetails(fieldValue); + } + else if ("secondary_email_verified_details".equals(tag)) { + SecondaryEmailVerifiedDetails fieldValue = null; + fieldValue = SecondaryEmailVerifiedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.secondaryEmailVerifiedDetails(fieldValue); + } + else if ("secondary_mails_policy_changed_details".equals(tag)) { + SecondaryMailsPolicyChangedDetails fieldValue = null; + fieldValue = SecondaryMailsPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.secondaryMailsPolicyChangedDetails(fieldValue); + } + else if ("binder_add_page_details".equals(tag)) { + BinderAddPageDetails fieldValue = null; + fieldValue = BinderAddPageDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderAddPageDetails(fieldValue); + } + else if ("binder_add_section_details".equals(tag)) { + BinderAddSectionDetails fieldValue = null; + fieldValue = BinderAddSectionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderAddSectionDetails(fieldValue); + } + else if ("binder_remove_page_details".equals(tag)) { + BinderRemovePageDetails fieldValue = null; + fieldValue = BinderRemovePageDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderRemovePageDetails(fieldValue); + } + else if ("binder_remove_section_details".equals(tag)) { + BinderRemoveSectionDetails fieldValue = null; + fieldValue = BinderRemoveSectionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderRemoveSectionDetails(fieldValue); + } + else if ("binder_rename_page_details".equals(tag)) { + BinderRenamePageDetails fieldValue = null; + fieldValue = BinderRenamePageDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderRenamePageDetails(fieldValue); + } + else if ("binder_rename_section_details".equals(tag)) { + BinderRenameSectionDetails fieldValue = null; + fieldValue = BinderRenameSectionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderRenameSectionDetails(fieldValue); + } + else if ("binder_reorder_page_details".equals(tag)) { + BinderReorderPageDetails fieldValue = null; + fieldValue = BinderReorderPageDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderReorderPageDetails(fieldValue); + } + else if ("binder_reorder_section_details".equals(tag)) { + BinderReorderSectionDetails fieldValue = null; + fieldValue = BinderReorderSectionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.binderReorderSectionDetails(fieldValue); + } + else if ("paper_content_add_member_details".equals(tag)) { + PaperContentAddMemberDetails fieldValue = null; + fieldValue = PaperContentAddMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentAddMemberDetails(fieldValue); + } + else if ("paper_content_add_to_folder_details".equals(tag)) { + PaperContentAddToFolderDetails fieldValue = null; + fieldValue = PaperContentAddToFolderDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentAddToFolderDetails(fieldValue); + } + else if ("paper_content_archive_details".equals(tag)) { + PaperContentArchiveDetails fieldValue = null; + fieldValue = PaperContentArchiveDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentArchiveDetails(fieldValue); + } + else if ("paper_content_create_details".equals(tag)) { + PaperContentCreateDetails fieldValue = null; + fieldValue = PaperContentCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentCreateDetails(fieldValue); + } + else if ("paper_content_permanently_delete_details".equals(tag)) { + PaperContentPermanentlyDeleteDetails fieldValue = null; + fieldValue = PaperContentPermanentlyDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentPermanentlyDeleteDetails(fieldValue); + } + else if ("paper_content_remove_from_folder_details".equals(tag)) { + PaperContentRemoveFromFolderDetails fieldValue = null; + fieldValue = PaperContentRemoveFromFolderDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentRemoveFromFolderDetails(fieldValue); + } + else if ("paper_content_remove_member_details".equals(tag)) { + PaperContentRemoveMemberDetails fieldValue = null; + fieldValue = PaperContentRemoveMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentRemoveMemberDetails(fieldValue); + } + else if ("paper_content_rename_details".equals(tag)) { + PaperContentRenameDetails fieldValue = null; + fieldValue = PaperContentRenameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentRenameDetails(fieldValue); + } + else if ("paper_content_restore_details".equals(tag)) { + PaperContentRestoreDetails fieldValue = null; + fieldValue = PaperContentRestoreDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperContentRestoreDetails(fieldValue); + } + else if ("paper_doc_add_comment_details".equals(tag)) { + PaperDocAddCommentDetails fieldValue = null; + fieldValue = PaperDocAddCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocAddCommentDetails(fieldValue); + } + else if ("paper_doc_change_member_role_details".equals(tag)) { + PaperDocChangeMemberRoleDetails fieldValue = null; + fieldValue = PaperDocChangeMemberRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocChangeMemberRoleDetails(fieldValue); + } + else if ("paper_doc_change_sharing_policy_details".equals(tag)) { + PaperDocChangeSharingPolicyDetails fieldValue = null; + fieldValue = PaperDocChangeSharingPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocChangeSharingPolicyDetails(fieldValue); + } + else if ("paper_doc_change_subscription_details".equals(tag)) { + PaperDocChangeSubscriptionDetails fieldValue = null; + fieldValue = PaperDocChangeSubscriptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocChangeSubscriptionDetails(fieldValue); + } + else if ("paper_doc_deleted_details".equals(tag)) { + PaperDocDeletedDetails fieldValue = null; + fieldValue = PaperDocDeletedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocDeletedDetails(fieldValue); + } + else if ("paper_doc_delete_comment_details".equals(tag)) { + PaperDocDeleteCommentDetails fieldValue = null; + fieldValue = PaperDocDeleteCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocDeleteCommentDetails(fieldValue); + } + else if ("paper_doc_download_details".equals(tag)) { + PaperDocDownloadDetails fieldValue = null; + fieldValue = PaperDocDownloadDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocDownloadDetails(fieldValue); + } + else if ("paper_doc_edit_details".equals(tag)) { + PaperDocEditDetails fieldValue = null; + fieldValue = PaperDocEditDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocEditDetails(fieldValue); + } + else if ("paper_doc_edit_comment_details".equals(tag)) { + PaperDocEditCommentDetails fieldValue = null; + fieldValue = PaperDocEditCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocEditCommentDetails(fieldValue); + } + else if ("paper_doc_followed_details".equals(tag)) { + PaperDocFollowedDetails fieldValue = null; + fieldValue = PaperDocFollowedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocFollowedDetails(fieldValue); + } + else if ("paper_doc_mention_details".equals(tag)) { + PaperDocMentionDetails fieldValue = null; + fieldValue = PaperDocMentionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocMentionDetails(fieldValue); + } + else if ("paper_doc_ownership_changed_details".equals(tag)) { + PaperDocOwnershipChangedDetails fieldValue = null; + fieldValue = PaperDocOwnershipChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocOwnershipChangedDetails(fieldValue); + } + else if ("paper_doc_request_access_details".equals(tag)) { + PaperDocRequestAccessDetails fieldValue = null; + fieldValue = PaperDocRequestAccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocRequestAccessDetails(fieldValue); + } + else if ("paper_doc_resolve_comment_details".equals(tag)) { + PaperDocResolveCommentDetails fieldValue = null; + fieldValue = PaperDocResolveCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocResolveCommentDetails(fieldValue); + } + else if ("paper_doc_revert_details".equals(tag)) { + PaperDocRevertDetails fieldValue = null; + fieldValue = PaperDocRevertDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocRevertDetails(fieldValue); + } + else if ("paper_doc_slack_share_details".equals(tag)) { + PaperDocSlackShareDetails fieldValue = null; + fieldValue = PaperDocSlackShareDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocSlackShareDetails(fieldValue); + } + else if ("paper_doc_team_invite_details".equals(tag)) { + PaperDocTeamInviteDetails fieldValue = null; + fieldValue = PaperDocTeamInviteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocTeamInviteDetails(fieldValue); + } + else if ("paper_doc_trashed_details".equals(tag)) { + PaperDocTrashedDetails fieldValue = null; + fieldValue = PaperDocTrashedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocTrashedDetails(fieldValue); + } + else if ("paper_doc_unresolve_comment_details".equals(tag)) { + PaperDocUnresolveCommentDetails fieldValue = null; + fieldValue = PaperDocUnresolveCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocUnresolveCommentDetails(fieldValue); + } + else if ("paper_doc_untrashed_details".equals(tag)) { + PaperDocUntrashedDetails fieldValue = null; + fieldValue = PaperDocUntrashedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocUntrashedDetails(fieldValue); + } + else if ("paper_doc_view_details".equals(tag)) { + PaperDocViewDetails fieldValue = null; + fieldValue = PaperDocViewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDocViewDetails(fieldValue); + } + else if ("paper_external_view_allow_details".equals(tag)) { + PaperExternalViewAllowDetails fieldValue = null; + fieldValue = PaperExternalViewAllowDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperExternalViewAllowDetails(fieldValue); + } + else if ("paper_external_view_default_team_details".equals(tag)) { + PaperExternalViewDefaultTeamDetails fieldValue = null; + fieldValue = PaperExternalViewDefaultTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperExternalViewDefaultTeamDetails(fieldValue); + } + else if ("paper_external_view_forbid_details".equals(tag)) { + PaperExternalViewForbidDetails fieldValue = null; + fieldValue = PaperExternalViewForbidDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperExternalViewForbidDetails(fieldValue); + } + else if ("paper_folder_change_subscription_details".equals(tag)) { + PaperFolderChangeSubscriptionDetails fieldValue = null; + fieldValue = PaperFolderChangeSubscriptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperFolderChangeSubscriptionDetails(fieldValue); + } + else if ("paper_folder_deleted_details".equals(tag)) { + PaperFolderDeletedDetails fieldValue = null; + fieldValue = PaperFolderDeletedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperFolderDeletedDetails(fieldValue); + } + else if ("paper_folder_followed_details".equals(tag)) { + PaperFolderFollowedDetails fieldValue = null; + fieldValue = PaperFolderFollowedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperFolderFollowedDetails(fieldValue); + } + else if ("paper_folder_team_invite_details".equals(tag)) { + PaperFolderTeamInviteDetails fieldValue = null; + fieldValue = PaperFolderTeamInviteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperFolderTeamInviteDetails(fieldValue); + } + else if ("paper_published_link_change_permission_details".equals(tag)) { + PaperPublishedLinkChangePermissionDetails fieldValue = null; + fieldValue = PaperPublishedLinkChangePermissionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperPublishedLinkChangePermissionDetails(fieldValue); + } + else if ("paper_published_link_create_details".equals(tag)) { + PaperPublishedLinkCreateDetails fieldValue = null; + fieldValue = PaperPublishedLinkCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperPublishedLinkCreateDetails(fieldValue); + } + else if ("paper_published_link_disabled_details".equals(tag)) { + PaperPublishedLinkDisabledDetails fieldValue = null; + fieldValue = PaperPublishedLinkDisabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperPublishedLinkDisabledDetails(fieldValue); + } + else if ("paper_published_link_view_details".equals(tag)) { + PaperPublishedLinkViewDetails fieldValue = null; + fieldValue = PaperPublishedLinkViewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperPublishedLinkViewDetails(fieldValue); + } + else if ("password_change_details".equals(tag)) { + PasswordChangeDetails fieldValue = null; + fieldValue = PasswordChangeDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.passwordChangeDetails(fieldValue); + } + else if ("password_reset_details".equals(tag)) { + PasswordResetDetails fieldValue = null; + fieldValue = PasswordResetDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.passwordResetDetails(fieldValue); + } + else if ("password_reset_all_details".equals(tag)) { + PasswordResetAllDetails fieldValue = null; + fieldValue = PasswordResetAllDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.passwordResetAllDetails(fieldValue); + } + else if ("classification_create_report_details".equals(tag)) { + ClassificationCreateReportDetails fieldValue = null; + fieldValue = ClassificationCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.classificationCreateReportDetails(fieldValue); + } + else if ("classification_create_report_fail_details".equals(tag)) { + ClassificationCreateReportFailDetails fieldValue = null; + fieldValue = ClassificationCreateReportFailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.classificationCreateReportFailDetails(fieldValue); + } + else if ("emm_create_exceptions_report_details".equals(tag)) { + EmmCreateExceptionsReportDetails fieldValue = null; + fieldValue = EmmCreateExceptionsReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emmCreateExceptionsReportDetails(fieldValue); + } + else if ("emm_create_usage_report_details".equals(tag)) { + EmmCreateUsageReportDetails fieldValue = null; + fieldValue = EmmCreateUsageReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emmCreateUsageReportDetails(fieldValue); + } + else if ("export_members_report_details".equals(tag)) { + ExportMembersReportDetails fieldValue = null; + fieldValue = ExportMembersReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.exportMembersReportDetails(fieldValue); + } + else if ("export_members_report_fail_details".equals(tag)) { + ExportMembersReportFailDetails fieldValue = null; + fieldValue = ExportMembersReportFailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.exportMembersReportFailDetails(fieldValue); + } + else if ("external_sharing_create_report_details".equals(tag)) { + ExternalSharingCreateReportDetails fieldValue = null; + fieldValue = ExternalSharingCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.externalSharingCreateReportDetails(fieldValue); + } + else if ("external_sharing_report_failed_details".equals(tag)) { + ExternalSharingReportFailedDetails fieldValue = null; + fieldValue = ExternalSharingReportFailedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.externalSharingReportFailedDetails(fieldValue); + } + else if ("no_expiration_link_gen_create_report_details".equals(tag)) { + NoExpirationLinkGenCreateReportDetails fieldValue = null; + fieldValue = NoExpirationLinkGenCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noExpirationLinkGenCreateReportDetails(fieldValue); + } + else if ("no_expiration_link_gen_report_failed_details".equals(tag)) { + NoExpirationLinkGenReportFailedDetails fieldValue = null; + fieldValue = NoExpirationLinkGenReportFailedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noExpirationLinkGenReportFailedDetails(fieldValue); + } + else if ("no_password_link_gen_create_report_details".equals(tag)) { + NoPasswordLinkGenCreateReportDetails fieldValue = null; + fieldValue = NoPasswordLinkGenCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noPasswordLinkGenCreateReportDetails(fieldValue); + } + else if ("no_password_link_gen_report_failed_details".equals(tag)) { + NoPasswordLinkGenReportFailedDetails fieldValue = null; + fieldValue = NoPasswordLinkGenReportFailedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noPasswordLinkGenReportFailedDetails(fieldValue); + } + else if ("no_password_link_view_create_report_details".equals(tag)) { + NoPasswordLinkViewCreateReportDetails fieldValue = null; + fieldValue = NoPasswordLinkViewCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noPasswordLinkViewCreateReportDetails(fieldValue); + } + else if ("no_password_link_view_report_failed_details".equals(tag)) { + NoPasswordLinkViewReportFailedDetails fieldValue = null; + fieldValue = NoPasswordLinkViewReportFailedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noPasswordLinkViewReportFailedDetails(fieldValue); + } + else if ("outdated_link_view_create_report_details".equals(tag)) { + OutdatedLinkViewCreateReportDetails fieldValue = null; + fieldValue = OutdatedLinkViewCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.outdatedLinkViewCreateReportDetails(fieldValue); + } + else if ("outdated_link_view_report_failed_details".equals(tag)) { + OutdatedLinkViewReportFailedDetails fieldValue = null; + fieldValue = OutdatedLinkViewReportFailedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.outdatedLinkViewReportFailedDetails(fieldValue); + } + else if ("paper_admin_export_start_details".equals(tag)) { + PaperAdminExportStartDetails fieldValue = null; + fieldValue = PaperAdminExportStartDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperAdminExportStartDetails(fieldValue); + } + else if ("ransomware_alert_create_report_details".equals(tag)) { + RansomwareAlertCreateReportDetails fieldValue = null; + fieldValue = RansomwareAlertCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ransomwareAlertCreateReportDetails(fieldValue); + } + else if ("ransomware_alert_create_report_failed_details".equals(tag)) { + RansomwareAlertCreateReportFailedDetails fieldValue = null; + fieldValue = RansomwareAlertCreateReportFailedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ransomwareAlertCreateReportFailedDetails(fieldValue); + } + else if ("smart_sync_create_admin_privilege_report_details".equals(tag)) { + SmartSyncCreateAdminPrivilegeReportDetails fieldValue = null; + fieldValue = SmartSyncCreateAdminPrivilegeReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.smartSyncCreateAdminPrivilegeReportDetails(fieldValue); + } + else if ("team_activity_create_report_details".equals(tag)) { + TeamActivityCreateReportDetails fieldValue = null; + fieldValue = TeamActivityCreateReportDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamActivityCreateReportDetails(fieldValue); + } + else if ("team_activity_create_report_fail_details".equals(tag)) { + TeamActivityCreateReportFailDetails fieldValue = null; + fieldValue = TeamActivityCreateReportFailDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamActivityCreateReportFailDetails(fieldValue); + } + else if ("collection_share_details".equals(tag)) { + CollectionShareDetails fieldValue = null; + fieldValue = CollectionShareDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.collectionShareDetails(fieldValue); + } + else if ("file_transfers_file_add_details".equals(tag)) { + FileTransfersFileAddDetails fieldValue = null; + fieldValue = FileTransfersFileAddDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileTransfersFileAddDetails(fieldValue); + } + else if ("file_transfers_transfer_delete_details".equals(tag)) { + FileTransfersTransferDeleteDetails fieldValue = null; + fieldValue = FileTransfersTransferDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileTransfersTransferDeleteDetails(fieldValue); + } + else if ("file_transfers_transfer_download_details".equals(tag)) { + FileTransfersTransferDownloadDetails fieldValue = null; + fieldValue = FileTransfersTransferDownloadDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileTransfersTransferDownloadDetails(fieldValue); + } + else if ("file_transfers_transfer_send_details".equals(tag)) { + FileTransfersTransferSendDetails fieldValue = null; + fieldValue = FileTransfersTransferSendDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileTransfersTransferSendDetails(fieldValue); + } + else if ("file_transfers_transfer_view_details".equals(tag)) { + FileTransfersTransferViewDetails fieldValue = null; + fieldValue = FileTransfersTransferViewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileTransfersTransferViewDetails(fieldValue); + } + else if ("note_acl_invite_only_details".equals(tag)) { + NoteAclInviteOnlyDetails fieldValue = null; + fieldValue = NoteAclInviteOnlyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noteAclInviteOnlyDetails(fieldValue); + } + else if ("note_acl_link_details".equals(tag)) { + NoteAclLinkDetails fieldValue = null; + fieldValue = NoteAclLinkDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noteAclLinkDetails(fieldValue); + } + else if ("note_acl_team_link_details".equals(tag)) { + NoteAclTeamLinkDetails fieldValue = null; + fieldValue = NoteAclTeamLinkDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noteAclTeamLinkDetails(fieldValue); + } + else if ("note_shared_details".equals(tag)) { + NoteSharedDetails fieldValue = null; + fieldValue = NoteSharedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noteSharedDetails(fieldValue); + } + else if ("note_share_receive_details".equals(tag)) { + NoteShareReceiveDetails fieldValue = null; + fieldValue = NoteShareReceiveDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.noteShareReceiveDetails(fieldValue); + } + else if ("open_note_shared_details".equals(tag)) { + OpenNoteSharedDetails fieldValue = null; + fieldValue = OpenNoteSharedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.openNoteSharedDetails(fieldValue); + } + else if ("replay_file_shared_link_created_details".equals(tag)) { + ReplayFileSharedLinkCreatedDetails fieldValue = null; + fieldValue = ReplayFileSharedLinkCreatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.replayFileSharedLinkCreatedDetails(fieldValue); + } + else if ("replay_file_shared_link_modified_details".equals(tag)) { + ReplayFileSharedLinkModifiedDetails fieldValue = null; + fieldValue = ReplayFileSharedLinkModifiedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.replayFileSharedLinkModifiedDetails(fieldValue); + } + else if ("replay_project_team_add_details".equals(tag)) { + ReplayProjectTeamAddDetails fieldValue = null; + fieldValue = ReplayProjectTeamAddDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.replayProjectTeamAddDetails(fieldValue); + } + else if ("replay_project_team_delete_details".equals(tag)) { + ReplayProjectTeamDeleteDetails fieldValue = null; + fieldValue = ReplayProjectTeamDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.replayProjectTeamDeleteDetails(fieldValue); + } + else if ("sf_add_group_details".equals(tag)) { + SfAddGroupDetails fieldValue = null; + fieldValue = SfAddGroupDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfAddGroupDetails(fieldValue); + } + else if ("sf_allow_non_members_to_view_shared_links_details".equals(tag)) { + SfAllowNonMembersToViewSharedLinksDetails fieldValue = null; + fieldValue = SfAllowNonMembersToViewSharedLinksDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfAllowNonMembersToViewSharedLinksDetails(fieldValue); + } + else if ("sf_external_invite_warn_details".equals(tag)) { + SfExternalInviteWarnDetails fieldValue = null; + fieldValue = SfExternalInviteWarnDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfExternalInviteWarnDetails(fieldValue); + } + else if ("sf_fb_invite_details".equals(tag)) { + SfFbInviteDetails fieldValue = null; + fieldValue = SfFbInviteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfFbInviteDetails(fieldValue); + } + else if ("sf_fb_invite_change_role_details".equals(tag)) { + SfFbInviteChangeRoleDetails fieldValue = null; + fieldValue = SfFbInviteChangeRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfFbInviteChangeRoleDetails(fieldValue); + } + else if ("sf_fb_uninvite_details".equals(tag)) { + SfFbUninviteDetails fieldValue = null; + fieldValue = SfFbUninviteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfFbUninviteDetails(fieldValue); + } + else if ("sf_invite_group_details".equals(tag)) { + SfInviteGroupDetails fieldValue = null; + fieldValue = SfInviteGroupDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfInviteGroupDetails(fieldValue); + } + else if ("sf_team_grant_access_details".equals(tag)) { + SfTeamGrantAccessDetails fieldValue = null; + fieldValue = SfTeamGrantAccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfTeamGrantAccessDetails(fieldValue); + } + else if ("sf_team_invite_details".equals(tag)) { + SfTeamInviteDetails fieldValue = null; + fieldValue = SfTeamInviteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfTeamInviteDetails(fieldValue); + } + else if ("sf_team_invite_change_role_details".equals(tag)) { + SfTeamInviteChangeRoleDetails fieldValue = null; + fieldValue = SfTeamInviteChangeRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfTeamInviteChangeRoleDetails(fieldValue); + } + else if ("sf_team_join_details".equals(tag)) { + SfTeamJoinDetails fieldValue = null; + fieldValue = SfTeamJoinDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfTeamJoinDetails(fieldValue); + } + else if ("sf_team_join_from_oob_link_details".equals(tag)) { + SfTeamJoinFromOobLinkDetails fieldValue = null; + fieldValue = SfTeamJoinFromOobLinkDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfTeamJoinFromOobLinkDetails(fieldValue); + } + else if ("sf_team_uninvite_details".equals(tag)) { + SfTeamUninviteDetails fieldValue = null; + fieldValue = SfTeamUninviteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sfTeamUninviteDetails(fieldValue); + } + else if ("shared_content_add_invitees_details".equals(tag)) { + SharedContentAddInviteesDetails fieldValue = null; + fieldValue = SharedContentAddInviteesDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentAddInviteesDetails(fieldValue); + } + else if ("shared_content_add_link_expiry_details".equals(tag)) { + SharedContentAddLinkExpiryDetails fieldValue = null; + fieldValue = SharedContentAddLinkExpiryDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentAddLinkExpiryDetails(fieldValue); + } + else if ("shared_content_add_link_password_details".equals(tag)) { + SharedContentAddLinkPasswordDetails fieldValue = null; + fieldValue = SharedContentAddLinkPasswordDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentAddLinkPasswordDetails(fieldValue); + } + else if ("shared_content_add_member_details".equals(tag)) { + SharedContentAddMemberDetails fieldValue = null; + fieldValue = SharedContentAddMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentAddMemberDetails(fieldValue); + } + else if ("shared_content_change_downloads_policy_details".equals(tag)) { + SharedContentChangeDownloadsPolicyDetails fieldValue = null; + fieldValue = SharedContentChangeDownloadsPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentChangeDownloadsPolicyDetails(fieldValue); + } + else if ("shared_content_change_invitee_role_details".equals(tag)) { + SharedContentChangeInviteeRoleDetails fieldValue = null; + fieldValue = SharedContentChangeInviteeRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentChangeInviteeRoleDetails(fieldValue); + } + else if ("shared_content_change_link_audience_details".equals(tag)) { + SharedContentChangeLinkAudienceDetails fieldValue = null; + fieldValue = SharedContentChangeLinkAudienceDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentChangeLinkAudienceDetails(fieldValue); + } + else if ("shared_content_change_link_expiry_details".equals(tag)) { + SharedContentChangeLinkExpiryDetails fieldValue = null; + fieldValue = SharedContentChangeLinkExpiryDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentChangeLinkExpiryDetails(fieldValue); + } + else if ("shared_content_change_link_password_details".equals(tag)) { + SharedContentChangeLinkPasswordDetails fieldValue = null; + fieldValue = SharedContentChangeLinkPasswordDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentChangeLinkPasswordDetails(fieldValue); + } + else if ("shared_content_change_member_role_details".equals(tag)) { + SharedContentChangeMemberRoleDetails fieldValue = null; + fieldValue = SharedContentChangeMemberRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentChangeMemberRoleDetails(fieldValue); + } + else if ("shared_content_change_viewer_info_policy_details".equals(tag)) { + SharedContentChangeViewerInfoPolicyDetails fieldValue = null; + fieldValue = SharedContentChangeViewerInfoPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentChangeViewerInfoPolicyDetails(fieldValue); + } + else if ("shared_content_claim_invitation_details".equals(tag)) { + SharedContentClaimInvitationDetails fieldValue = null; + fieldValue = SharedContentClaimInvitationDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentClaimInvitationDetails(fieldValue); + } + else if ("shared_content_copy_details".equals(tag)) { + SharedContentCopyDetails fieldValue = null; + fieldValue = SharedContentCopyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentCopyDetails(fieldValue); + } + else if ("shared_content_download_details".equals(tag)) { + SharedContentDownloadDetails fieldValue = null; + fieldValue = SharedContentDownloadDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentDownloadDetails(fieldValue); + } + else if ("shared_content_relinquish_membership_details".equals(tag)) { + SharedContentRelinquishMembershipDetails fieldValue = null; + fieldValue = SharedContentRelinquishMembershipDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRelinquishMembershipDetails(fieldValue); + } + else if ("shared_content_remove_invitees_details".equals(tag)) { + SharedContentRemoveInviteesDetails fieldValue = null; + fieldValue = SharedContentRemoveInviteesDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRemoveInviteesDetails(fieldValue); + } + else if ("shared_content_remove_link_expiry_details".equals(tag)) { + SharedContentRemoveLinkExpiryDetails fieldValue = null; + fieldValue = SharedContentRemoveLinkExpiryDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRemoveLinkExpiryDetails(fieldValue); + } + else if ("shared_content_remove_link_password_details".equals(tag)) { + SharedContentRemoveLinkPasswordDetails fieldValue = null; + fieldValue = SharedContentRemoveLinkPasswordDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRemoveLinkPasswordDetails(fieldValue); + } + else if ("shared_content_remove_member_details".equals(tag)) { + SharedContentRemoveMemberDetails fieldValue = null; + fieldValue = SharedContentRemoveMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRemoveMemberDetails(fieldValue); + } + else if ("shared_content_request_access_details".equals(tag)) { + SharedContentRequestAccessDetails fieldValue = null; + fieldValue = SharedContentRequestAccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRequestAccessDetails(fieldValue); + } + else if ("shared_content_restore_invitees_details".equals(tag)) { + SharedContentRestoreInviteesDetails fieldValue = null; + fieldValue = SharedContentRestoreInviteesDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRestoreInviteesDetails(fieldValue); + } + else if ("shared_content_restore_member_details".equals(tag)) { + SharedContentRestoreMemberDetails fieldValue = null; + fieldValue = SharedContentRestoreMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentRestoreMemberDetails(fieldValue); + } + else if ("shared_content_unshare_details".equals(tag)) { + SharedContentUnshareDetails fieldValue = null; + fieldValue = SharedContentUnshareDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentUnshareDetails(fieldValue); + } + else if ("shared_content_view_details".equals(tag)) { + SharedContentViewDetails fieldValue = null; + fieldValue = SharedContentViewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedContentViewDetails(fieldValue); + } + else if ("shared_folder_change_link_policy_details".equals(tag)) { + SharedFolderChangeLinkPolicyDetails fieldValue = null; + fieldValue = SharedFolderChangeLinkPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderChangeLinkPolicyDetails(fieldValue); + } + else if ("shared_folder_change_members_inheritance_policy_details".equals(tag)) { + SharedFolderChangeMembersInheritancePolicyDetails fieldValue = null; + fieldValue = SharedFolderChangeMembersInheritancePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderChangeMembersInheritancePolicyDetails(fieldValue); + } + else if ("shared_folder_change_members_management_policy_details".equals(tag)) { + SharedFolderChangeMembersManagementPolicyDetails fieldValue = null; + fieldValue = SharedFolderChangeMembersManagementPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderChangeMembersManagementPolicyDetails(fieldValue); + } + else if ("shared_folder_change_members_policy_details".equals(tag)) { + SharedFolderChangeMembersPolicyDetails fieldValue = null; + fieldValue = SharedFolderChangeMembersPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderChangeMembersPolicyDetails(fieldValue); + } + else if ("shared_folder_create_details".equals(tag)) { + SharedFolderCreateDetails fieldValue = null; + fieldValue = SharedFolderCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderCreateDetails(fieldValue); + } + else if ("shared_folder_decline_invitation_details".equals(tag)) { + SharedFolderDeclineInvitationDetails fieldValue = null; + fieldValue = SharedFolderDeclineInvitationDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderDeclineInvitationDetails(fieldValue); + } + else if ("shared_folder_mount_details".equals(tag)) { + SharedFolderMountDetails fieldValue = null; + fieldValue = SharedFolderMountDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderMountDetails(fieldValue); + } + else if ("shared_folder_nest_details".equals(tag)) { + SharedFolderNestDetails fieldValue = null; + fieldValue = SharedFolderNestDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderNestDetails(fieldValue); + } + else if ("shared_folder_transfer_ownership_details".equals(tag)) { + SharedFolderTransferOwnershipDetails fieldValue = null; + fieldValue = SharedFolderTransferOwnershipDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderTransferOwnershipDetails(fieldValue); + } + else if ("shared_folder_unmount_details".equals(tag)) { + SharedFolderUnmountDetails fieldValue = null; + fieldValue = SharedFolderUnmountDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedFolderUnmountDetails(fieldValue); + } + else if ("shared_link_add_expiry_details".equals(tag)) { + SharedLinkAddExpiryDetails fieldValue = null; + fieldValue = SharedLinkAddExpiryDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkAddExpiryDetails(fieldValue); + } + else if ("shared_link_change_expiry_details".equals(tag)) { + SharedLinkChangeExpiryDetails fieldValue = null; + fieldValue = SharedLinkChangeExpiryDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkChangeExpiryDetails(fieldValue); + } + else if ("shared_link_change_visibility_details".equals(tag)) { + SharedLinkChangeVisibilityDetails fieldValue = null; + fieldValue = SharedLinkChangeVisibilityDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkChangeVisibilityDetails(fieldValue); + } + else if ("shared_link_copy_details".equals(tag)) { + SharedLinkCopyDetails fieldValue = null; + fieldValue = SharedLinkCopyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkCopyDetails(fieldValue); + } + else if ("shared_link_create_details".equals(tag)) { + SharedLinkCreateDetails fieldValue = null; + fieldValue = SharedLinkCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkCreateDetails(fieldValue); + } + else if ("shared_link_disable_details".equals(tag)) { + SharedLinkDisableDetails fieldValue = null; + fieldValue = SharedLinkDisableDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkDisableDetails(fieldValue); + } + else if ("shared_link_download_details".equals(tag)) { + SharedLinkDownloadDetails fieldValue = null; + fieldValue = SharedLinkDownloadDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkDownloadDetails(fieldValue); + } + else if ("shared_link_remove_expiry_details".equals(tag)) { + SharedLinkRemoveExpiryDetails fieldValue = null; + fieldValue = SharedLinkRemoveExpiryDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkRemoveExpiryDetails(fieldValue); + } + else if ("shared_link_settings_add_expiration_details".equals(tag)) { + SharedLinkSettingsAddExpirationDetails fieldValue = null; + fieldValue = SharedLinkSettingsAddExpirationDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsAddExpirationDetails(fieldValue); + } + else if ("shared_link_settings_add_password_details".equals(tag)) { + SharedLinkSettingsAddPasswordDetails fieldValue = null; + fieldValue = SharedLinkSettingsAddPasswordDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsAddPasswordDetails(fieldValue); + } + else if ("shared_link_settings_allow_download_disabled_details".equals(tag)) { + SharedLinkSettingsAllowDownloadDisabledDetails fieldValue = null; + fieldValue = SharedLinkSettingsAllowDownloadDisabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsAllowDownloadDisabledDetails(fieldValue); + } + else if ("shared_link_settings_allow_download_enabled_details".equals(tag)) { + SharedLinkSettingsAllowDownloadEnabledDetails fieldValue = null; + fieldValue = SharedLinkSettingsAllowDownloadEnabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsAllowDownloadEnabledDetails(fieldValue); + } + else if ("shared_link_settings_change_audience_details".equals(tag)) { + SharedLinkSettingsChangeAudienceDetails fieldValue = null; + fieldValue = SharedLinkSettingsChangeAudienceDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsChangeAudienceDetails(fieldValue); + } + else if ("shared_link_settings_change_expiration_details".equals(tag)) { + SharedLinkSettingsChangeExpirationDetails fieldValue = null; + fieldValue = SharedLinkSettingsChangeExpirationDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsChangeExpirationDetails(fieldValue); + } + else if ("shared_link_settings_change_password_details".equals(tag)) { + SharedLinkSettingsChangePasswordDetails fieldValue = null; + fieldValue = SharedLinkSettingsChangePasswordDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsChangePasswordDetails(fieldValue); + } + else if ("shared_link_settings_remove_expiration_details".equals(tag)) { + SharedLinkSettingsRemoveExpirationDetails fieldValue = null; + fieldValue = SharedLinkSettingsRemoveExpirationDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsRemoveExpirationDetails(fieldValue); + } + else if ("shared_link_settings_remove_password_details".equals(tag)) { + SharedLinkSettingsRemovePasswordDetails fieldValue = null; + fieldValue = SharedLinkSettingsRemovePasswordDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkSettingsRemovePasswordDetails(fieldValue); + } + else if ("shared_link_share_details".equals(tag)) { + SharedLinkShareDetails fieldValue = null; + fieldValue = SharedLinkShareDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkShareDetails(fieldValue); + } + else if ("shared_link_view_details".equals(tag)) { + SharedLinkViewDetails fieldValue = null; + fieldValue = SharedLinkViewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedLinkViewDetails(fieldValue); + } + else if ("shared_note_opened_details".equals(tag)) { + SharedNoteOpenedDetails fieldValue = null; + fieldValue = SharedNoteOpenedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharedNoteOpenedDetails(fieldValue); + } + else if ("shmodel_disable_downloads_details".equals(tag)) { + ShmodelDisableDownloadsDetails fieldValue = null; + fieldValue = ShmodelDisableDownloadsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.shmodelDisableDownloadsDetails(fieldValue); + } + else if ("shmodel_enable_downloads_details".equals(tag)) { + ShmodelEnableDownloadsDetails fieldValue = null; + fieldValue = ShmodelEnableDownloadsDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.shmodelEnableDownloadsDetails(fieldValue); + } + else if ("shmodel_group_share_details".equals(tag)) { + ShmodelGroupShareDetails fieldValue = null; + fieldValue = ShmodelGroupShareDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.shmodelGroupShareDetails(fieldValue); + } + else if ("showcase_access_granted_details".equals(tag)) { + ShowcaseAccessGrantedDetails fieldValue = null; + fieldValue = ShowcaseAccessGrantedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseAccessGrantedDetails(fieldValue); + } + else if ("showcase_add_member_details".equals(tag)) { + ShowcaseAddMemberDetails fieldValue = null; + fieldValue = ShowcaseAddMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseAddMemberDetails(fieldValue); + } + else if ("showcase_archived_details".equals(tag)) { + ShowcaseArchivedDetails fieldValue = null; + fieldValue = ShowcaseArchivedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseArchivedDetails(fieldValue); + } + else if ("showcase_created_details".equals(tag)) { + ShowcaseCreatedDetails fieldValue = null; + fieldValue = ShowcaseCreatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseCreatedDetails(fieldValue); + } + else if ("showcase_delete_comment_details".equals(tag)) { + ShowcaseDeleteCommentDetails fieldValue = null; + fieldValue = ShowcaseDeleteCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseDeleteCommentDetails(fieldValue); + } + else if ("showcase_edited_details".equals(tag)) { + ShowcaseEditedDetails fieldValue = null; + fieldValue = ShowcaseEditedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseEditedDetails(fieldValue); + } + else if ("showcase_edit_comment_details".equals(tag)) { + ShowcaseEditCommentDetails fieldValue = null; + fieldValue = ShowcaseEditCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseEditCommentDetails(fieldValue); + } + else if ("showcase_file_added_details".equals(tag)) { + ShowcaseFileAddedDetails fieldValue = null; + fieldValue = ShowcaseFileAddedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseFileAddedDetails(fieldValue); + } + else if ("showcase_file_download_details".equals(tag)) { + ShowcaseFileDownloadDetails fieldValue = null; + fieldValue = ShowcaseFileDownloadDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseFileDownloadDetails(fieldValue); + } + else if ("showcase_file_removed_details".equals(tag)) { + ShowcaseFileRemovedDetails fieldValue = null; + fieldValue = ShowcaseFileRemovedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseFileRemovedDetails(fieldValue); + } + else if ("showcase_file_view_details".equals(tag)) { + ShowcaseFileViewDetails fieldValue = null; + fieldValue = ShowcaseFileViewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseFileViewDetails(fieldValue); + } + else if ("showcase_permanently_deleted_details".equals(tag)) { + ShowcasePermanentlyDeletedDetails fieldValue = null; + fieldValue = ShowcasePermanentlyDeletedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcasePermanentlyDeletedDetails(fieldValue); + } + else if ("showcase_post_comment_details".equals(tag)) { + ShowcasePostCommentDetails fieldValue = null; + fieldValue = ShowcasePostCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcasePostCommentDetails(fieldValue); + } + else if ("showcase_remove_member_details".equals(tag)) { + ShowcaseRemoveMemberDetails fieldValue = null; + fieldValue = ShowcaseRemoveMemberDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseRemoveMemberDetails(fieldValue); + } + else if ("showcase_renamed_details".equals(tag)) { + ShowcaseRenamedDetails fieldValue = null; + fieldValue = ShowcaseRenamedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseRenamedDetails(fieldValue); + } + else if ("showcase_request_access_details".equals(tag)) { + ShowcaseRequestAccessDetails fieldValue = null; + fieldValue = ShowcaseRequestAccessDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseRequestAccessDetails(fieldValue); + } + else if ("showcase_resolve_comment_details".equals(tag)) { + ShowcaseResolveCommentDetails fieldValue = null; + fieldValue = ShowcaseResolveCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseResolveCommentDetails(fieldValue); + } + else if ("showcase_restored_details".equals(tag)) { + ShowcaseRestoredDetails fieldValue = null; + fieldValue = ShowcaseRestoredDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseRestoredDetails(fieldValue); + } + else if ("showcase_trashed_details".equals(tag)) { + ShowcaseTrashedDetails fieldValue = null; + fieldValue = ShowcaseTrashedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseTrashedDetails(fieldValue); + } + else if ("showcase_trashed_deprecated_details".equals(tag)) { + ShowcaseTrashedDeprecatedDetails fieldValue = null; + fieldValue = ShowcaseTrashedDeprecatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseTrashedDeprecatedDetails(fieldValue); + } + else if ("showcase_unresolve_comment_details".equals(tag)) { + ShowcaseUnresolveCommentDetails fieldValue = null; + fieldValue = ShowcaseUnresolveCommentDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseUnresolveCommentDetails(fieldValue); + } + else if ("showcase_untrashed_details".equals(tag)) { + ShowcaseUntrashedDetails fieldValue = null; + fieldValue = ShowcaseUntrashedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseUntrashedDetails(fieldValue); + } + else if ("showcase_untrashed_deprecated_details".equals(tag)) { + ShowcaseUntrashedDeprecatedDetails fieldValue = null; + fieldValue = ShowcaseUntrashedDeprecatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseUntrashedDeprecatedDetails(fieldValue); + } + else if ("showcase_view_details".equals(tag)) { + ShowcaseViewDetails fieldValue = null; + fieldValue = ShowcaseViewDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseViewDetails(fieldValue); + } + else if ("sso_add_cert_details".equals(tag)) { + SsoAddCertDetails fieldValue = null; + fieldValue = SsoAddCertDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoAddCertDetails(fieldValue); + } + else if ("sso_add_login_url_details".equals(tag)) { + SsoAddLoginUrlDetails fieldValue = null; + fieldValue = SsoAddLoginUrlDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoAddLoginUrlDetails(fieldValue); + } + else if ("sso_add_logout_url_details".equals(tag)) { + SsoAddLogoutUrlDetails fieldValue = null; + fieldValue = SsoAddLogoutUrlDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoAddLogoutUrlDetails(fieldValue); + } + else if ("sso_change_cert_details".equals(tag)) { + SsoChangeCertDetails fieldValue = null; + fieldValue = SsoChangeCertDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoChangeCertDetails(fieldValue); + } + else if ("sso_change_login_url_details".equals(tag)) { + SsoChangeLoginUrlDetails fieldValue = null; + fieldValue = SsoChangeLoginUrlDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoChangeLoginUrlDetails(fieldValue); + } + else if ("sso_change_logout_url_details".equals(tag)) { + SsoChangeLogoutUrlDetails fieldValue = null; + fieldValue = SsoChangeLogoutUrlDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoChangeLogoutUrlDetails(fieldValue); + } + else if ("sso_change_saml_identity_mode_details".equals(tag)) { + SsoChangeSamlIdentityModeDetails fieldValue = null; + fieldValue = SsoChangeSamlIdentityModeDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoChangeSamlIdentityModeDetails(fieldValue); + } + else if ("sso_remove_cert_details".equals(tag)) { + SsoRemoveCertDetails fieldValue = null; + fieldValue = SsoRemoveCertDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoRemoveCertDetails(fieldValue); + } + else if ("sso_remove_login_url_details".equals(tag)) { + SsoRemoveLoginUrlDetails fieldValue = null; + fieldValue = SsoRemoveLoginUrlDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoRemoveLoginUrlDetails(fieldValue); + } + else if ("sso_remove_logout_url_details".equals(tag)) { + SsoRemoveLogoutUrlDetails fieldValue = null; + fieldValue = SsoRemoveLogoutUrlDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoRemoveLogoutUrlDetails(fieldValue); + } + else if ("team_folder_change_status_details".equals(tag)) { + TeamFolderChangeStatusDetails fieldValue = null; + fieldValue = TeamFolderChangeStatusDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamFolderChangeStatusDetails(fieldValue); + } + else if ("team_folder_create_details".equals(tag)) { + TeamFolderCreateDetails fieldValue = null; + fieldValue = TeamFolderCreateDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamFolderCreateDetails(fieldValue); + } + else if ("team_folder_downgrade_details".equals(tag)) { + TeamFolderDowngradeDetails fieldValue = null; + fieldValue = TeamFolderDowngradeDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamFolderDowngradeDetails(fieldValue); + } + else if ("team_folder_permanently_delete_details".equals(tag)) { + TeamFolderPermanentlyDeleteDetails fieldValue = null; + fieldValue = TeamFolderPermanentlyDeleteDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamFolderPermanentlyDeleteDetails(fieldValue); + } + else if ("team_folder_rename_details".equals(tag)) { + TeamFolderRenameDetails fieldValue = null; + fieldValue = TeamFolderRenameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamFolderRenameDetails(fieldValue); + } + else if ("team_selective_sync_settings_changed_details".equals(tag)) { + TeamSelectiveSyncSettingsChangedDetails fieldValue = null; + fieldValue = TeamSelectiveSyncSettingsChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamSelectiveSyncSettingsChangedDetails(fieldValue); + } + else if ("account_capture_change_policy_details".equals(tag)) { + AccountCaptureChangePolicyDetails fieldValue = null; + fieldValue = AccountCaptureChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.accountCaptureChangePolicyDetails(fieldValue); + } + else if ("admin_email_reminders_changed_details".equals(tag)) { + AdminEmailRemindersChangedDetails fieldValue = null; + fieldValue = AdminEmailRemindersChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.adminEmailRemindersChangedDetails(fieldValue); + } + else if ("allow_download_disabled_details".equals(tag)) { + AllowDownloadDisabledDetails fieldValue = null; + fieldValue = AllowDownloadDisabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.allowDownloadDisabledDetails(fieldValue); + } + else if ("allow_download_enabled_details".equals(tag)) { + AllowDownloadEnabledDetails fieldValue = null; + fieldValue = AllowDownloadEnabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.allowDownloadEnabledDetails(fieldValue); + } + else if ("app_permissions_changed_details".equals(tag)) { + AppPermissionsChangedDetails fieldValue = null; + fieldValue = AppPermissionsChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.appPermissionsChangedDetails(fieldValue); + } + else if ("camera_uploads_policy_changed_details".equals(tag)) { + CameraUploadsPolicyChangedDetails fieldValue = null; + fieldValue = CameraUploadsPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.cameraUploadsPolicyChangedDetails(fieldValue); + } + else if ("capture_transcript_policy_changed_details".equals(tag)) { + CaptureTranscriptPolicyChangedDetails fieldValue = null; + fieldValue = CaptureTranscriptPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.captureTranscriptPolicyChangedDetails(fieldValue); + } + else if ("classification_change_policy_details".equals(tag)) { + ClassificationChangePolicyDetails fieldValue = null; + fieldValue = ClassificationChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.classificationChangePolicyDetails(fieldValue); + } + else if ("computer_backup_policy_changed_details".equals(tag)) { + ComputerBackupPolicyChangedDetails fieldValue = null; + fieldValue = ComputerBackupPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.computerBackupPolicyChangedDetails(fieldValue); + } + else if ("content_administration_policy_changed_details".equals(tag)) { + ContentAdministrationPolicyChangedDetails fieldValue = null; + fieldValue = ContentAdministrationPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.contentAdministrationPolicyChangedDetails(fieldValue); + } + else if ("data_placement_restriction_change_policy_details".equals(tag)) { + DataPlacementRestrictionChangePolicyDetails fieldValue = null; + fieldValue = DataPlacementRestrictionChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.dataPlacementRestrictionChangePolicyDetails(fieldValue); + } + else if ("data_placement_restriction_satisfy_policy_details".equals(tag)) { + DataPlacementRestrictionSatisfyPolicyDetails fieldValue = null; + fieldValue = DataPlacementRestrictionSatisfyPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.dataPlacementRestrictionSatisfyPolicyDetails(fieldValue); + } + else if ("device_approvals_add_exception_details".equals(tag)) { + DeviceApprovalsAddExceptionDetails fieldValue = null; + fieldValue = DeviceApprovalsAddExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceApprovalsAddExceptionDetails(fieldValue); + } + else if ("device_approvals_change_desktop_policy_details".equals(tag)) { + DeviceApprovalsChangeDesktopPolicyDetails fieldValue = null; + fieldValue = DeviceApprovalsChangeDesktopPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceApprovalsChangeDesktopPolicyDetails(fieldValue); + } + else if ("device_approvals_change_mobile_policy_details".equals(tag)) { + DeviceApprovalsChangeMobilePolicyDetails fieldValue = null; + fieldValue = DeviceApprovalsChangeMobilePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceApprovalsChangeMobilePolicyDetails(fieldValue); + } + else if ("device_approvals_change_overage_action_details".equals(tag)) { + DeviceApprovalsChangeOverageActionDetails fieldValue = null; + fieldValue = DeviceApprovalsChangeOverageActionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceApprovalsChangeOverageActionDetails(fieldValue); + } + else if ("device_approvals_change_unlink_action_details".equals(tag)) { + DeviceApprovalsChangeUnlinkActionDetails fieldValue = null; + fieldValue = DeviceApprovalsChangeUnlinkActionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceApprovalsChangeUnlinkActionDetails(fieldValue); + } + else if ("device_approvals_remove_exception_details".equals(tag)) { + DeviceApprovalsRemoveExceptionDetails fieldValue = null; + fieldValue = DeviceApprovalsRemoveExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.deviceApprovalsRemoveExceptionDetails(fieldValue); + } + else if ("directory_restrictions_add_members_details".equals(tag)) { + DirectoryRestrictionsAddMembersDetails fieldValue = null; + fieldValue = DirectoryRestrictionsAddMembersDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.directoryRestrictionsAddMembersDetails(fieldValue); + } + else if ("directory_restrictions_remove_members_details".equals(tag)) { + DirectoryRestrictionsRemoveMembersDetails fieldValue = null; + fieldValue = DirectoryRestrictionsRemoveMembersDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.directoryRestrictionsRemoveMembersDetails(fieldValue); + } + else if ("dropbox_passwords_policy_changed_details".equals(tag)) { + DropboxPasswordsPolicyChangedDetails fieldValue = null; + fieldValue = DropboxPasswordsPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.dropboxPasswordsPolicyChangedDetails(fieldValue); + } + else if ("email_ingest_policy_changed_details".equals(tag)) { + EmailIngestPolicyChangedDetails fieldValue = null; + fieldValue = EmailIngestPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emailIngestPolicyChangedDetails(fieldValue); + } + else if ("emm_add_exception_details".equals(tag)) { + EmmAddExceptionDetails fieldValue = null; + fieldValue = EmmAddExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emmAddExceptionDetails(fieldValue); + } + else if ("emm_change_policy_details".equals(tag)) { + EmmChangePolicyDetails fieldValue = null; + fieldValue = EmmChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emmChangePolicyDetails(fieldValue); + } + else if ("emm_remove_exception_details".equals(tag)) { + EmmRemoveExceptionDetails fieldValue = null; + fieldValue = EmmRemoveExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.emmRemoveExceptionDetails(fieldValue); + } + else if ("extended_version_history_change_policy_details".equals(tag)) { + ExtendedVersionHistoryChangePolicyDetails fieldValue = null; + fieldValue = ExtendedVersionHistoryChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.extendedVersionHistoryChangePolicyDetails(fieldValue); + } + else if ("external_drive_backup_policy_changed_details".equals(tag)) { + ExternalDriveBackupPolicyChangedDetails fieldValue = null; + fieldValue = ExternalDriveBackupPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.externalDriveBackupPolicyChangedDetails(fieldValue); + } + else if ("file_comments_change_policy_details".equals(tag)) { + FileCommentsChangePolicyDetails fieldValue = null; + fieldValue = FileCommentsChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileCommentsChangePolicyDetails(fieldValue); + } + else if ("file_locking_policy_changed_details".equals(tag)) { + FileLockingPolicyChangedDetails fieldValue = null; + fieldValue = FileLockingPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileLockingPolicyChangedDetails(fieldValue); + } + else if ("file_provider_migration_policy_changed_details".equals(tag)) { + FileProviderMigrationPolicyChangedDetails fieldValue = null; + fieldValue = FileProviderMigrationPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileProviderMigrationPolicyChangedDetails(fieldValue); + } + else if ("file_requests_change_policy_details".equals(tag)) { + FileRequestsChangePolicyDetails fieldValue = null; + fieldValue = FileRequestsChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestsChangePolicyDetails(fieldValue); + } + else if ("file_requests_emails_enabled_details".equals(tag)) { + FileRequestsEmailsEnabledDetails fieldValue = null; + fieldValue = FileRequestsEmailsEnabledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestsEmailsEnabledDetails(fieldValue); + } + else if ("file_requests_emails_restricted_to_team_only_details".equals(tag)) { + FileRequestsEmailsRestrictedToTeamOnlyDetails fieldValue = null; + fieldValue = FileRequestsEmailsRestrictedToTeamOnlyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileRequestsEmailsRestrictedToTeamOnlyDetails(fieldValue); + } + else if ("file_transfers_policy_changed_details".equals(tag)) { + FileTransfersPolicyChangedDetails fieldValue = null; + fieldValue = FileTransfersPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.fileTransfersPolicyChangedDetails(fieldValue); + } + else if ("folder_link_restriction_policy_changed_details".equals(tag)) { + FolderLinkRestrictionPolicyChangedDetails fieldValue = null; + fieldValue = FolderLinkRestrictionPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.folderLinkRestrictionPolicyChangedDetails(fieldValue); + } + else if ("google_sso_change_policy_details".equals(tag)) { + GoogleSsoChangePolicyDetails fieldValue = null; + fieldValue = GoogleSsoChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.googleSsoChangePolicyDetails(fieldValue); + } + else if ("group_user_management_change_policy_details".equals(tag)) { + GroupUserManagementChangePolicyDetails fieldValue = null; + fieldValue = GroupUserManagementChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.groupUserManagementChangePolicyDetails(fieldValue); + } + else if ("integration_policy_changed_details".equals(tag)) { + IntegrationPolicyChangedDetails fieldValue = null; + fieldValue = IntegrationPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.integrationPolicyChangedDetails(fieldValue); + } + else if ("invite_acceptance_email_policy_changed_details".equals(tag)) { + InviteAcceptanceEmailPolicyChangedDetails fieldValue = null; + fieldValue = InviteAcceptanceEmailPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.inviteAcceptanceEmailPolicyChangedDetails(fieldValue); + } + else if ("member_requests_change_policy_details".equals(tag)) { + MemberRequestsChangePolicyDetails fieldValue = null; + fieldValue = MemberRequestsChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberRequestsChangePolicyDetails(fieldValue); + } + else if ("member_send_invite_policy_changed_details".equals(tag)) { + MemberSendInvitePolicyChangedDetails fieldValue = null; + fieldValue = MemberSendInvitePolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSendInvitePolicyChangedDetails(fieldValue); + } + else if ("member_space_limits_add_exception_details".equals(tag)) { + MemberSpaceLimitsAddExceptionDetails fieldValue = null; + fieldValue = MemberSpaceLimitsAddExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsAddExceptionDetails(fieldValue); + } + else if ("member_space_limits_change_caps_type_policy_details".equals(tag)) { + MemberSpaceLimitsChangeCapsTypePolicyDetails fieldValue = null; + fieldValue = MemberSpaceLimitsChangeCapsTypePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsChangeCapsTypePolicyDetails(fieldValue); + } + else if ("member_space_limits_change_policy_details".equals(tag)) { + MemberSpaceLimitsChangePolicyDetails fieldValue = null; + fieldValue = MemberSpaceLimitsChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsChangePolicyDetails(fieldValue); + } + else if ("member_space_limits_remove_exception_details".equals(tag)) { + MemberSpaceLimitsRemoveExceptionDetails fieldValue = null; + fieldValue = MemberSpaceLimitsRemoveExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSpaceLimitsRemoveExceptionDetails(fieldValue); + } + else if ("member_suggestions_change_policy_details".equals(tag)) { + MemberSuggestionsChangePolicyDetails fieldValue = null; + fieldValue = MemberSuggestionsChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.memberSuggestionsChangePolicyDetails(fieldValue); + } + else if ("microsoft_office_addin_change_policy_details".equals(tag)) { + MicrosoftOfficeAddinChangePolicyDetails fieldValue = null; + fieldValue = MicrosoftOfficeAddinChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.microsoftOfficeAddinChangePolicyDetails(fieldValue); + } + else if ("network_control_change_policy_details".equals(tag)) { + NetworkControlChangePolicyDetails fieldValue = null; + fieldValue = NetworkControlChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.networkControlChangePolicyDetails(fieldValue); + } + else if ("paper_change_deployment_policy_details".equals(tag)) { + PaperChangeDeploymentPolicyDetails fieldValue = null; + fieldValue = PaperChangeDeploymentPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperChangeDeploymentPolicyDetails(fieldValue); + } + else if ("paper_change_member_link_policy_details".equals(tag)) { + PaperChangeMemberLinkPolicyDetails fieldValue = null; + fieldValue = PaperChangeMemberLinkPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperChangeMemberLinkPolicyDetails(fieldValue); + } + else if ("paper_change_member_policy_details".equals(tag)) { + PaperChangeMemberPolicyDetails fieldValue = null; + fieldValue = PaperChangeMemberPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperChangeMemberPolicyDetails(fieldValue); + } + else if ("paper_change_policy_details".equals(tag)) { + PaperChangePolicyDetails fieldValue = null; + fieldValue = PaperChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperChangePolicyDetails(fieldValue); + } + else if ("paper_default_folder_policy_changed_details".equals(tag)) { + PaperDefaultFolderPolicyChangedDetails fieldValue = null; + fieldValue = PaperDefaultFolderPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDefaultFolderPolicyChangedDetails(fieldValue); + } + else if ("paper_desktop_policy_changed_details".equals(tag)) { + PaperDesktopPolicyChangedDetails fieldValue = null; + fieldValue = PaperDesktopPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperDesktopPolicyChangedDetails(fieldValue); + } + else if ("paper_enabled_users_group_addition_details".equals(tag)) { + PaperEnabledUsersGroupAdditionDetails fieldValue = null; + fieldValue = PaperEnabledUsersGroupAdditionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperEnabledUsersGroupAdditionDetails(fieldValue); + } + else if ("paper_enabled_users_group_removal_details".equals(tag)) { + PaperEnabledUsersGroupRemovalDetails fieldValue = null; + fieldValue = PaperEnabledUsersGroupRemovalDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.paperEnabledUsersGroupRemovalDetails(fieldValue); + } + else if ("password_strength_requirements_change_policy_details".equals(tag)) { + PasswordStrengthRequirementsChangePolicyDetails fieldValue = null; + fieldValue = PasswordStrengthRequirementsChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.passwordStrengthRequirementsChangePolicyDetails(fieldValue); + } + else if ("permanent_delete_change_policy_details".equals(tag)) { + PermanentDeleteChangePolicyDetails fieldValue = null; + fieldValue = PermanentDeleteChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.permanentDeleteChangePolicyDetails(fieldValue); + } + else if ("reseller_support_change_policy_details".equals(tag)) { + ResellerSupportChangePolicyDetails fieldValue = null; + fieldValue = ResellerSupportChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.resellerSupportChangePolicyDetails(fieldValue); + } + else if ("rewind_policy_changed_details".equals(tag)) { + RewindPolicyChangedDetails fieldValue = null; + fieldValue = RewindPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.rewindPolicyChangedDetails(fieldValue); + } + else if ("send_for_signature_policy_changed_details".equals(tag)) { + SendForSignaturePolicyChangedDetails fieldValue = null; + fieldValue = SendForSignaturePolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sendForSignaturePolicyChangedDetails(fieldValue); + } + else if ("sharing_change_folder_join_policy_details".equals(tag)) { + SharingChangeFolderJoinPolicyDetails fieldValue = null; + fieldValue = SharingChangeFolderJoinPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharingChangeFolderJoinPolicyDetails(fieldValue); + } + else if ("sharing_change_link_allow_change_expiration_policy_details".equals(tag)) { + SharingChangeLinkAllowChangeExpirationPolicyDetails fieldValue = null; + fieldValue = SharingChangeLinkAllowChangeExpirationPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharingChangeLinkAllowChangeExpirationPolicyDetails(fieldValue); + } + else if ("sharing_change_link_default_expiration_policy_details".equals(tag)) { + SharingChangeLinkDefaultExpirationPolicyDetails fieldValue = null; + fieldValue = SharingChangeLinkDefaultExpirationPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharingChangeLinkDefaultExpirationPolicyDetails(fieldValue); + } + else if ("sharing_change_link_enforce_password_policy_details".equals(tag)) { + SharingChangeLinkEnforcePasswordPolicyDetails fieldValue = null; + fieldValue = SharingChangeLinkEnforcePasswordPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharingChangeLinkEnforcePasswordPolicyDetails(fieldValue); + } + else if ("sharing_change_link_policy_details".equals(tag)) { + SharingChangeLinkPolicyDetails fieldValue = null; + fieldValue = SharingChangeLinkPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharingChangeLinkPolicyDetails(fieldValue); + } + else if ("sharing_change_member_policy_details".equals(tag)) { + SharingChangeMemberPolicyDetails fieldValue = null; + fieldValue = SharingChangeMemberPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.sharingChangeMemberPolicyDetails(fieldValue); + } + else if ("showcase_change_download_policy_details".equals(tag)) { + ShowcaseChangeDownloadPolicyDetails fieldValue = null; + fieldValue = ShowcaseChangeDownloadPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseChangeDownloadPolicyDetails(fieldValue); + } + else if ("showcase_change_enabled_policy_details".equals(tag)) { + ShowcaseChangeEnabledPolicyDetails fieldValue = null; + fieldValue = ShowcaseChangeEnabledPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseChangeEnabledPolicyDetails(fieldValue); + } + else if ("showcase_change_external_sharing_policy_details".equals(tag)) { + ShowcaseChangeExternalSharingPolicyDetails fieldValue = null; + fieldValue = ShowcaseChangeExternalSharingPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.showcaseChangeExternalSharingPolicyDetails(fieldValue); + } + else if ("smarter_smart_sync_policy_changed_details".equals(tag)) { + SmarterSmartSyncPolicyChangedDetails fieldValue = null; + fieldValue = SmarterSmartSyncPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.smarterSmartSyncPolicyChangedDetails(fieldValue); + } + else if ("smart_sync_change_policy_details".equals(tag)) { + SmartSyncChangePolicyDetails fieldValue = null; + fieldValue = SmartSyncChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.smartSyncChangePolicyDetails(fieldValue); + } + else if ("smart_sync_not_opt_out_details".equals(tag)) { + SmartSyncNotOptOutDetails fieldValue = null; + fieldValue = SmartSyncNotOptOutDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.smartSyncNotOptOutDetails(fieldValue); + } + else if ("smart_sync_opt_out_details".equals(tag)) { + SmartSyncOptOutDetails fieldValue = null; + fieldValue = SmartSyncOptOutDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.smartSyncOptOutDetails(fieldValue); + } + else if ("sso_change_policy_details".equals(tag)) { + SsoChangePolicyDetails fieldValue = null; + fieldValue = SsoChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.ssoChangePolicyDetails(fieldValue); + } + else if ("team_branding_policy_changed_details".equals(tag)) { + TeamBrandingPolicyChangedDetails fieldValue = null; + fieldValue = TeamBrandingPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamBrandingPolicyChangedDetails(fieldValue); + } + else if ("team_extensions_policy_changed_details".equals(tag)) { + TeamExtensionsPolicyChangedDetails fieldValue = null; + fieldValue = TeamExtensionsPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamExtensionsPolicyChangedDetails(fieldValue); + } + else if ("team_selective_sync_policy_changed_details".equals(tag)) { + TeamSelectiveSyncPolicyChangedDetails fieldValue = null; + fieldValue = TeamSelectiveSyncPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamSelectiveSyncPolicyChangedDetails(fieldValue); + } + else if ("team_sharing_whitelist_subjects_changed_details".equals(tag)) { + TeamSharingWhitelistSubjectsChangedDetails fieldValue = null; + fieldValue = TeamSharingWhitelistSubjectsChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamSharingWhitelistSubjectsChangedDetails(fieldValue); + } + else if ("tfa_add_exception_details".equals(tag)) { + TfaAddExceptionDetails fieldValue = null; + fieldValue = TfaAddExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaAddExceptionDetails(fieldValue); + } + else if ("tfa_change_policy_details".equals(tag)) { + TfaChangePolicyDetails fieldValue = null; + fieldValue = TfaChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaChangePolicyDetails(fieldValue); + } + else if ("tfa_remove_exception_details".equals(tag)) { + TfaRemoveExceptionDetails fieldValue = null; + fieldValue = TfaRemoveExceptionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaRemoveExceptionDetails(fieldValue); + } + else if ("two_account_change_policy_details".equals(tag)) { + TwoAccountChangePolicyDetails fieldValue = null; + fieldValue = TwoAccountChangePolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.twoAccountChangePolicyDetails(fieldValue); + } + else if ("viewer_info_policy_changed_details".equals(tag)) { + ViewerInfoPolicyChangedDetails fieldValue = null; + fieldValue = ViewerInfoPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.viewerInfoPolicyChangedDetails(fieldValue); + } + else if ("watermarking_policy_changed_details".equals(tag)) { + WatermarkingPolicyChangedDetails fieldValue = null; + fieldValue = WatermarkingPolicyChangedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.watermarkingPolicyChangedDetails(fieldValue); + } + else if ("web_sessions_change_active_session_limit_details".equals(tag)) { + WebSessionsChangeActiveSessionLimitDetails fieldValue = null; + fieldValue = WebSessionsChangeActiveSessionLimitDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.webSessionsChangeActiveSessionLimitDetails(fieldValue); + } + else if ("web_sessions_change_fixed_length_policy_details".equals(tag)) { + WebSessionsChangeFixedLengthPolicyDetails fieldValue = null; + fieldValue = WebSessionsChangeFixedLengthPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.webSessionsChangeFixedLengthPolicyDetails(fieldValue); + } + else if ("web_sessions_change_idle_length_policy_details".equals(tag)) { + WebSessionsChangeIdleLengthPolicyDetails fieldValue = null; + fieldValue = WebSessionsChangeIdleLengthPolicyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.webSessionsChangeIdleLengthPolicyDetails(fieldValue); + } + else if ("data_residency_migration_request_successful_details".equals(tag)) { + DataResidencyMigrationRequestSuccessfulDetails fieldValue = null; + fieldValue = DataResidencyMigrationRequestSuccessfulDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.dataResidencyMigrationRequestSuccessfulDetails(fieldValue); + } + else if ("data_residency_migration_request_unsuccessful_details".equals(tag)) { + DataResidencyMigrationRequestUnsuccessfulDetails fieldValue = null; + fieldValue = DataResidencyMigrationRequestUnsuccessfulDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.dataResidencyMigrationRequestUnsuccessfulDetails(fieldValue); + } + else if ("team_merge_from_details".equals(tag)) { + TeamMergeFromDetails fieldValue = null; + fieldValue = TeamMergeFromDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeFromDetails(fieldValue); + } + else if ("team_merge_to_details".equals(tag)) { + TeamMergeToDetails fieldValue = null; + fieldValue = TeamMergeToDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeToDetails(fieldValue); + } + else if ("team_profile_add_background_details".equals(tag)) { + TeamProfileAddBackgroundDetails fieldValue = null; + fieldValue = TeamProfileAddBackgroundDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileAddBackgroundDetails(fieldValue); + } + else if ("team_profile_add_logo_details".equals(tag)) { + TeamProfileAddLogoDetails fieldValue = null; + fieldValue = TeamProfileAddLogoDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileAddLogoDetails(fieldValue); + } + else if ("team_profile_change_background_details".equals(tag)) { + TeamProfileChangeBackgroundDetails fieldValue = null; + fieldValue = TeamProfileChangeBackgroundDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileChangeBackgroundDetails(fieldValue); + } + else if ("team_profile_change_default_language_details".equals(tag)) { + TeamProfileChangeDefaultLanguageDetails fieldValue = null; + fieldValue = TeamProfileChangeDefaultLanguageDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileChangeDefaultLanguageDetails(fieldValue); + } + else if ("team_profile_change_logo_details".equals(tag)) { + TeamProfileChangeLogoDetails fieldValue = null; + fieldValue = TeamProfileChangeLogoDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileChangeLogoDetails(fieldValue); + } + else if ("team_profile_change_name_details".equals(tag)) { + TeamProfileChangeNameDetails fieldValue = null; + fieldValue = TeamProfileChangeNameDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileChangeNameDetails(fieldValue); + } + else if ("team_profile_remove_background_details".equals(tag)) { + TeamProfileRemoveBackgroundDetails fieldValue = null; + fieldValue = TeamProfileRemoveBackgroundDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileRemoveBackgroundDetails(fieldValue); + } + else if ("team_profile_remove_logo_details".equals(tag)) { + TeamProfileRemoveLogoDetails fieldValue = null; + fieldValue = TeamProfileRemoveLogoDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamProfileRemoveLogoDetails(fieldValue); + } + else if ("tfa_add_backup_phone_details".equals(tag)) { + TfaAddBackupPhoneDetails fieldValue = null; + fieldValue = TfaAddBackupPhoneDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaAddBackupPhoneDetails(fieldValue); + } + else if ("tfa_add_security_key_details".equals(tag)) { + TfaAddSecurityKeyDetails fieldValue = null; + fieldValue = TfaAddSecurityKeyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaAddSecurityKeyDetails(fieldValue); + } + else if ("tfa_change_backup_phone_details".equals(tag)) { + TfaChangeBackupPhoneDetails fieldValue = null; + fieldValue = TfaChangeBackupPhoneDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaChangeBackupPhoneDetails(fieldValue); + } + else if ("tfa_change_status_details".equals(tag)) { + TfaChangeStatusDetails fieldValue = null; + fieldValue = TfaChangeStatusDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaChangeStatusDetails(fieldValue); + } + else if ("tfa_remove_backup_phone_details".equals(tag)) { + TfaRemoveBackupPhoneDetails fieldValue = null; + fieldValue = TfaRemoveBackupPhoneDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaRemoveBackupPhoneDetails(fieldValue); + } + else if ("tfa_remove_security_key_details".equals(tag)) { + TfaRemoveSecurityKeyDetails fieldValue = null; + fieldValue = TfaRemoveSecurityKeyDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaRemoveSecurityKeyDetails(fieldValue); + } + else if ("tfa_reset_details".equals(tag)) { + TfaResetDetails fieldValue = null; + fieldValue = TfaResetDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.tfaResetDetails(fieldValue); + } + else if ("changed_enterprise_admin_role_details".equals(tag)) { + ChangedEnterpriseAdminRoleDetails fieldValue = null; + fieldValue = ChangedEnterpriseAdminRoleDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.changedEnterpriseAdminRoleDetails(fieldValue); + } + else if ("changed_enterprise_connected_team_status_details".equals(tag)) { + ChangedEnterpriseConnectedTeamStatusDetails fieldValue = null; + fieldValue = ChangedEnterpriseConnectedTeamStatusDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.changedEnterpriseConnectedTeamStatusDetails(fieldValue); + } + else if ("ended_enterprise_admin_session_details".equals(tag)) { + EndedEnterpriseAdminSessionDetails fieldValue = null; + fieldValue = EndedEnterpriseAdminSessionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.endedEnterpriseAdminSessionDetails(fieldValue); + } + else if ("ended_enterprise_admin_session_deprecated_details".equals(tag)) { + EndedEnterpriseAdminSessionDeprecatedDetails fieldValue = null; + fieldValue = EndedEnterpriseAdminSessionDeprecatedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.endedEnterpriseAdminSessionDeprecatedDetails(fieldValue); + } + else if ("enterprise_settings_locking_details".equals(tag)) { + EnterpriseSettingsLockingDetails fieldValue = null; + fieldValue = EnterpriseSettingsLockingDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.enterpriseSettingsLockingDetails(fieldValue); + } + else if ("guest_admin_change_status_details".equals(tag)) { + GuestAdminChangeStatusDetails fieldValue = null; + fieldValue = GuestAdminChangeStatusDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.guestAdminChangeStatusDetails(fieldValue); + } + else if ("started_enterprise_admin_session_details".equals(tag)) { + StartedEnterpriseAdminSessionDetails fieldValue = null; + fieldValue = StartedEnterpriseAdminSessionDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.startedEnterpriseAdminSessionDetails(fieldValue); + } + else if ("team_merge_request_accepted_details".equals(tag)) { + TeamMergeRequestAcceptedDetails fieldValue = null; + fieldValue = TeamMergeRequestAcceptedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestAcceptedDetails(fieldValue); + } + else if ("team_merge_request_accepted_shown_to_primary_team_details".equals(tag)) { + TeamMergeRequestAcceptedShownToPrimaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestAcceptedShownToPrimaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestAcceptedShownToPrimaryTeamDetails(fieldValue); + } + else if ("team_merge_request_accepted_shown_to_secondary_team_details".equals(tag)) { + TeamMergeRequestAcceptedShownToSecondaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestAcceptedShownToSecondaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestAcceptedShownToSecondaryTeamDetails(fieldValue); + } + else if ("team_merge_request_auto_canceled_details".equals(tag)) { + TeamMergeRequestAutoCanceledDetails fieldValue = null; + fieldValue = TeamMergeRequestAutoCanceledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestAutoCanceledDetails(fieldValue); + } + else if ("team_merge_request_canceled_details".equals(tag)) { + TeamMergeRequestCanceledDetails fieldValue = null; + fieldValue = TeamMergeRequestCanceledDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestCanceledDetails(fieldValue); + } + else if ("team_merge_request_canceled_shown_to_primary_team_details".equals(tag)) { + TeamMergeRequestCanceledShownToPrimaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestCanceledShownToPrimaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestCanceledShownToPrimaryTeamDetails(fieldValue); + } + else if ("team_merge_request_canceled_shown_to_secondary_team_details".equals(tag)) { + TeamMergeRequestCanceledShownToSecondaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestCanceledShownToSecondaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestCanceledShownToSecondaryTeamDetails(fieldValue); + } + else if ("team_merge_request_expired_details".equals(tag)) { + TeamMergeRequestExpiredDetails fieldValue = null; + fieldValue = TeamMergeRequestExpiredDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestExpiredDetails(fieldValue); + } + else if ("team_merge_request_expired_shown_to_primary_team_details".equals(tag)) { + TeamMergeRequestExpiredShownToPrimaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestExpiredShownToPrimaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestExpiredShownToPrimaryTeamDetails(fieldValue); + } + else if ("team_merge_request_expired_shown_to_secondary_team_details".equals(tag)) { + TeamMergeRequestExpiredShownToSecondaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestExpiredShownToSecondaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestExpiredShownToSecondaryTeamDetails(fieldValue); + } + else if ("team_merge_request_rejected_shown_to_primary_team_details".equals(tag)) { + TeamMergeRequestRejectedShownToPrimaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestRejectedShownToPrimaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestRejectedShownToPrimaryTeamDetails(fieldValue); + } + else if ("team_merge_request_rejected_shown_to_secondary_team_details".equals(tag)) { + TeamMergeRequestRejectedShownToSecondaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestRejectedShownToSecondaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestRejectedShownToSecondaryTeamDetails(fieldValue); + } + else if ("team_merge_request_reminder_details".equals(tag)) { + TeamMergeRequestReminderDetails fieldValue = null; + fieldValue = TeamMergeRequestReminderDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestReminderDetails(fieldValue); + } + else if ("team_merge_request_reminder_shown_to_primary_team_details".equals(tag)) { + TeamMergeRequestReminderShownToPrimaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestReminderShownToPrimaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestReminderShownToPrimaryTeamDetails(fieldValue); + } + else if ("team_merge_request_reminder_shown_to_secondary_team_details".equals(tag)) { + TeamMergeRequestReminderShownToSecondaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestReminderShownToSecondaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestReminderShownToSecondaryTeamDetails(fieldValue); + } + else if ("team_merge_request_revoked_details".equals(tag)) { + TeamMergeRequestRevokedDetails fieldValue = null; + fieldValue = TeamMergeRequestRevokedDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestRevokedDetails(fieldValue); + } + else if ("team_merge_request_sent_shown_to_primary_team_details".equals(tag)) { + TeamMergeRequestSentShownToPrimaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestSentShownToPrimaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestSentShownToPrimaryTeamDetails(fieldValue); + } + else if ("team_merge_request_sent_shown_to_secondary_team_details".equals(tag)) { + TeamMergeRequestSentShownToSecondaryTeamDetails fieldValue = null; + fieldValue = TeamMergeRequestSentShownToSecondaryTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.teamMergeRequestSentShownToSecondaryTeamDetails(fieldValue); + } + else if ("missing_details".equals(tag)) { + MissingDetails fieldValue = null; + fieldValue = MissingDetails.Serializer.INSTANCE.deserialize(p, true); + value = EventDetails.missingDetails(fieldValue); + } + else { + value = EventDetails.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventType.java new file mode 100644 index 000000000..0ecca38d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventType.java @@ -0,0 +1,44526 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The type of the event with description. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class EventType { + // union team_log.EventType (team_log_generated.stone) + + /** + * Discriminating tag type for {@link EventType}. + */ + public enum Tag { + /** + * (admin_alerting) Changed an alert state + */ + ADMIN_ALERTING_ALERT_STATE_CHANGED, // AdminAlertingAlertStateChangedType + /** + * (admin_alerting) Changed an alert setting + */ + ADMIN_ALERTING_CHANGED_ALERT_CONFIG, // AdminAlertingChangedAlertConfigType + /** + * (admin_alerting) Triggered security alert + */ + ADMIN_ALERTING_TRIGGERED_ALERT, // AdminAlertingTriggeredAlertType + /** + * (admin_alerting) Completed ransomware restore process + */ + RANSOMWARE_RESTORE_PROCESS_COMPLETED, // RansomwareRestoreProcessCompletedType + /** + * (admin_alerting) Started ransomware restore process + */ + RANSOMWARE_RESTORE_PROCESS_STARTED, // RansomwareRestoreProcessStartedType + /** + * (apps) Failed to connect app for member + */ + APP_BLOCKED_BY_PERMISSIONS, // AppBlockedByPermissionsType + /** + * (apps) Linked app for team + */ + APP_LINK_TEAM, // AppLinkTeamType + /** + * (apps) Linked app for member + */ + APP_LINK_USER, // AppLinkUserType + /** + * (apps) Unlinked app for team + */ + APP_UNLINK_TEAM, // AppUnlinkTeamType + /** + * (apps) Unlinked app for member + */ + APP_UNLINK_USER, // AppUnlinkUserType + /** + * (apps) Connected integration for member + */ + INTEGRATION_CONNECTED, // IntegrationConnectedType + /** + * (apps) Disconnected integration for member + */ + INTEGRATION_DISCONNECTED, // IntegrationDisconnectedType + /** + * (comments) Added file comment + */ + FILE_ADD_COMMENT, // FileAddCommentType + /** + * (comments) Subscribed to or unsubscribed from comment notifications + * for file + */ + FILE_CHANGE_COMMENT_SUBSCRIPTION, // FileChangeCommentSubscriptionType + /** + * (comments) Deleted file comment + */ + FILE_DELETE_COMMENT, // FileDeleteCommentType + /** + * (comments) Edited file comment + */ + FILE_EDIT_COMMENT, // FileEditCommentType + /** + * (comments) Liked file comment (deprecated, no longer logged) + */ + FILE_LIKE_COMMENT, // FileLikeCommentType + /** + * (comments) Resolved file comment + */ + FILE_RESOLVE_COMMENT, // FileResolveCommentType + /** + * (comments) Unliked file comment (deprecated, no longer logged) + */ + FILE_UNLIKE_COMMENT, // FileUnlikeCommentType + /** + * (comments) Unresolved file comment + */ + FILE_UNRESOLVE_COMMENT, // FileUnresolveCommentType + /** + * (data_governance) Added folders to policy + */ + GOVERNANCE_POLICY_ADD_FOLDERS, // GovernancePolicyAddFoldersType + /** + * (data_governance) Couldn't add a folder to a policy + */ + GOVERNANCE_POLICY_ADD_FOLDER_FAILED, // GovernancePolicyAddFolderFailedType + /** + * (data_governance) Content disposed + */ + GOVERNANCE_POLICY_CONTENT_DISPOSED, // GovernancePolicyContentDisposedType + /** + * (data_governance) Activated a new policy + */ + GOVERNANCE_POLICY_CREATE, // GovernancePolicyCreateType + /** + * (data_governance) Deleted a policy + */ + GOVERNANCE_POLICY_DELETE, // GovernancePolicyDeleteType + /** + * (data_governance) Edited policy + */ + GOVERNANCE_POLICY_EDIT_DETAILS, // GovernancePolicyEditDetailsType + /** + * (data_governance) Changed policy duration + */ + GOVERNANCE_POLICY_EDIT_DURATION, // GovernancePolicyEditDurationType + /** + * (data_governance) Created a policy download + */ + GOVERNANCE_POLICY_EXPORT_CREATED, // GovernancePolicyExportCreatedType + /** + * (data_governance) Removed a policy download + */ + GOVERNANCE_POLICY_EXPORT_REMOVED, // GovernancePolicyExportRemovedType + /** + * (data_governance) Removed folders from policy + */ + GOVERNANCE_POLICY_REMOVE_FOLDERS, // GovernancePolicyRemoveFoldersType + /** + * (data_governance) Created a summary report for a policy + */ + GOVERNANCE_POLICY_REPORT_CREATED, // GovernancePolicyReportCreatedType + /** + * (data_governance) Downloaded content from a policy + */ + GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED, // GovernancePolicyZipPartDownloadedType + /** + * (data_governance) Activated a hold + */ + LEGAL_HOLDS_ACTIVATE_A_HOLD, // LegalHoldsActivateAHoldType + /** + * (data_governance) Added members to a hold + */ + LEGAL_HOLDS_ADD_MEMBERS, // LegalHoldsAddMembersType + /** + * (data_governance) Edited details for a hold + */ + LEGAL_HOLDS_CHANGE_HOLD_DETAILS, // LegalHoldsChangeHoldDetailsType + /** + * (data_governance) Renamed a hold + */ + LEGAL_HOLDS_CHANGE_HOLD_NAME, // LegalHoldsChangeHoldNameType + /** + * (data_governance) Exported hold + */ + LEGAL_HOLDS_EXPORT_A_HOLD, // LegalHoldsExportAHoldType + /** + * (data_governance) Canceled export for a hold + */ + LEGAL_HOLDS_EXPORT_CANCELLED, // LegalHoldsExportCancelledType + /** + * (data_governance) Downloaded export for a hold + */ + LEGAL_HOLDS_EXPORT_DOWNLOADED, // LegalHoldsExportDownloadedType + /** + * (data_governance) Removed export for a hold + */ + LEGAL_HOLDS_EXPORT_REMOVED, // LegalHoldsExportRemovedType + /** + * (data_governance) Released a hold + */ + LEGAL_HOLDS_RELEASE_A_HOLD, // LegalHoldsReleaseAHoldType + /** + * (data_governance) Removed members from a hold + */ + LEGAL_HOLDS_REMOVE_MEMBERS, // LegalHoldsRemoveMembersType + /** + * (data_governance) Created a summary report for a hold + */ + LEGAL_HOLDS_REPORT_A_HOLD, // LegalHoldsReportAHoldType + /** + * (devices) Changed IP address associated with active desktop session + */ + DEVICE_CHANGE_IP_DESKTOP, // DeviceChangeIpDesktopType + /** + * (devices) Changed IP address associated with active mobile session + */ + DEVICE_CHANGE_IP_MOBILE, // DeviceChangeIpMobileType + /** + * (devices) Changed IP address associated with active web session + */ + DEVICE_CHANGE_IP_WEB, // DeviceChangeIpWebType + /** + * (devices) Failed to delete all files from unlinked device + */ + DEVICE_DELETE_ON_UNLINK_FAIL, // DeviceDeleteOnUnlinkFailType + /** + * (devices) Deleted all files from unlinked device + */ + DEVICE_DELETE_ON_UNLINK_SUCCESS, // DeviceDeleteOnUnlinkSuccessType + /** + * (devices) Failed to link device + */ + DEVICE_LINK_FAIL, // DeviceLinkFailType + /** + * (devices) Linked device + */ + DEVICE_LINK_SUCCESS, // DeviceLinkSuccessType + /** + * (devices) Disabled device management (deprecated, no longer logged) + */ + DEVICE_MANAGEMENT_DISABLED, // DeviceManagementDisabledType + /** + * (devices) Enabled device management (deprecated, no longer logged) + */ + DEVICE_MANAGEMENT_ENABLED, // DeviceManagementEnabledType + /** + * (devices) Enabled/disabled backup for computer + */ + DEVICE_SYNC_BACKUP_STATUS_CHANGED, // DeviceSyncBackupStatusChangedType + /** + * (devices) Disconnected device + */ + DEVICE_UNLINK, // DeviceUnlinkType + /** + * (devices) Exported passwords + */ + DROPBOX_PASSWORDS_EXPORTED, // DropboxPasswordsExportedType + /** + * (devices) Enrolled new Dropbox Passwords device + */ + DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED, // DropboxPasswordsNewDeviceEnrolledType + /** + * (devices) Refreshed auth token used for setting up EMM + */ + EMM_REFRESH_AUTH_TOKEN, // EmmRefreshAuthTokenType + /** + * (devices) Checked external drive backup eligibility status + */ + EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED, // ExternalDriveBackupEligibilityStatusCheckedType + /** + * (devices) Modified external drive backup + */ + EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED, // ExternalDriveBackupStatusChangedType + /** + * (domains) Granted/revoked option to enable account capture on team + * domains + */ + ACCOUNT_CAPTURE_CHANGE_AVAILABILITY, // AccountCaptureChangeAvailabilityType + /** + * (domains) Account-captured user migrated account to team + */ + ACCOUNT_CAPTURE_MIGRATE_ACCOUNT, // AccountCaptureMigrateAccountType + /** + * (domains) Sent account capture email to all unmanaged members + */ + ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT, // AccountCaptureNotificationEmailsSentType + /** + * (domains) Account-captured user changed account email to personal + * email + */ + ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT, // AccountCaptureRelinquishAccountType + /** + * (domains) Disabled domain invites (deprecated, no longer logged) + */ + DISABLED_DOMAIN_INVITES, // DisabledDomainInvitesType + /** + * (domains) Approved user's request to join team + */ + DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM, // DomainInvitesApproveRequestToJoinTeamType + /** + * (domains) Declined user's request to join team + */ + DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM, // DomainInvitesDeclineRequestToJoinTeamType + /** + * (domains) Sent domain invites to existing domain accounts + * (deprecated, no longer logged) + */ + DOMAIN_INVITES_EMAIL_EXISTING_USERS, // DomainInvitesEmailExistingUsersType + /** + * (domains) Requested to join team + */ + DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM, // DomainInvitesRequestToJoinTeamType + /** + * (domains) Disabled "Automatically invite new users" (deprecated, no + * longer logged) + */ + DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO, // DomainInvitesSetInviteNewUserPrefToNoType + /** + * (domains) Enabled "Automatically invite new users" (deprecated, no + * longer logged) + */ + DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES, // DomainInvitesSetInviteNewUserPrefToYesType + /** + * (domains) Failed to verify team domain + */ + DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL, // DomainVerificationAddDomainFailType + /** + * (domains) Verified team domain + */ + DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS, // DomainVerificationAddDomainSuccessType + /** + * (domains) Removed domain from list of verified team domains + */ + DOMAIN_VERIFICATION_REMOVE_DOMAIN, // DomainVerificationRemoveDomainType + /** + * (domains) Enabled domain invites (deprecated, no longer logged) + */ + ENABLED_DOMAIN_INVITES, // EnabledDomainInvitesType + /** + * (encryption) Canceled team encryption key deletion + */ + TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION, // TeamEncryptionKeyCancelKeyDeletionType + /** + * (encryption) Created team encryption key + */ + TEAM_ENCRYPTION_KEY_CREATE_KEY, // TeamEncryptionKeyCreateKeyType + /** + * (encryption) Deleted team encryption key + */ + TEAM_ENCRYPTION_KEY_DELETE_KEY, // TeamEncryptionKeyDeleteKeyType + /** + * (encryption) Disabled team encryption key + */ + TEAM_ENCRYPTION_KEY_DISABLE_KEY, // TeamEncryptionKeyDisableKeyType + /** + * (encryption) Enabled team encryption key + */ + TEAM_ENCRYPTION_KEY_ENABLE_KEY, // TeamEncryptionKeyEnableKeyType + /** + * (encryption) Rotated team encryption key (deprecated, no longer + * logged) + */ + TEAM_ENCRYPTION_KEY_ROTATE_KEY, // TeamEncryptionKeyRotateKeyType + /** + * (encryption) Scheduled encryption key deletion + */ + TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION, // TeamEncryptionKeyScheduleKeyDeletionType + /** + * (file_operations) Applied naming convention + */ + APPLY_NAMING_CONVENTION, // ApplyNamingConventionType + /** + * (file_operations) Created folders (deprecated, no longer logged) + */ + CREATE_FOLDER, // CreateFolderType + /** + * (file_operations) Added files and/or folders + */ + FILE_ADD, // FileAddType + /** + * (file_operations) Added files and/or folders from automation + */ + FILE_ADD_FROM_AUTOMATION, // FileAddFromAutomationType + /** + * (file_operations) Copied files and/or folders + */ + FILE_COPY, // FileCopyType + /** + * (file_operations) Deleted files and/or folders + */ + FILE_DELETE, // FileDeleteType + /** + * (file_operations) Downloaded files and/or folders + */ + FILE_DOWNLOAD, // FileDownloadType + /** + * (file_operations) Edited files + */ + FILE_EDIT, // FileEditType + /** + * (file_operations) Created copy reference to file/folder + */ + FILE_GET_COPY_REFERENCE, // FileGetCopyReferenceType + /** + * (file_operations) Locked/unlocked editing for a file + */ + FILE_LOCKING_LOCK_STATUS_CHANGED, // FileLockingLockStatusChangedType + /** + * (file_operations) Moved files and/or folders + */ + FILE_MOVE, // FileMoveType + /** + * (file_operations) Permanently deleted files and/or folders + */ + FILE_PERMANENTLY_DELETE, // FilePermanentlyDeleteType + /** + * (file_operations) Previewed files and/or folders + */ + FILE_PREVIEW, // FilePreviewType + /** + * (file_operations) Renamed files and/or folders + */ + FILE_RENAME, // FileRenameType + /** + * (file_operations) Restored deleted files and/or folders + */ + FILE_RESTORE, // FileRestoreType + /** + * (file_operations) Reverted files to previous version + */ + FILE_REVERT, // FileRevertType + /** + * (file_operations) Rolled back file actions + */ + FILE_ROLLBACK_CHANGES, // FileRollbackChangesType + /** + * (file_operations) Saved file/folder using copy reference + */ + FILE_SAVE_COPY_REFERENCE, // FileSaveCopyReferenceType + /** + * (file_operations) Updated folder overview + */ + FOLDER_OVERVIEW_DESCRIPTION_CHANGED, // FolderOverviewDescriptionChangedType + /** + * (file_operations) Pinned item to folder overview + */ + FOLDER_OVERVIEW_ITEM_PINNED, // FolderOverviewItemPinnedType + /** + * (file_operations) Unpinned item from folder overview + */ + FOLDER_OVERVIEW_ITEM_UNPINNED, // FolderOverviewItemUnpinnedType + /** + * (file_operations) Added a label + */ + OBJECT_LABEL_ADDED, // ObjectLabelAddedType + /** + * (file_operations) Removed a label + */ + OBJECT_LABEL_REMOVED, // ObjectLabelRemovedType + /** + * (file_operations) Updated a label's value + */ + OBJECT_LABEL_UPDATED_VALUE, // ObjectLabelUpdatedValueType + /** + * (file_operations) Organized a folder with multi-file organize + */ + ORGANIZE_FOLDER_WITH_TIDY, // OrganizeFolderWithTidyType + /** + * (file_operations) Deleted files in Replay + */ + REPLAY_FILE_DELETE, // ReplayFileDeleteType + /** + * (file_operations) Rewound a folder + */ + REWIND_FOLDER, // RewindFolderType + /** + * (file_operations) Reverted naming convention + */ + UNDO_NAMING_CONVENTION, // UndoNamingConventionType + /** + * (file_operations) Removed multi-file organize + */ + UNDO_ORGANIZE_FOLDER_WITH_TIDY, // UndoOrganizeFolderWithTidyType + /** + * (file_operations) Tagged a file + */ + USER_TAGS_ADDED, // UserTagsAddedType + /** + * (file_operations) Removed tags + */ + USER_TAGS_REMOVED, // UserTagsRemovedType + /** + * (file_requests) Received files via Email to Dropbox + */ + EMAIL_INGEST_RECEIVE_FILE, // EmailIngestReceiveFileType + /** + * (file_requests) Changed file request + */ + FILE_REQUEST_CHANGE, // FileRequestChangeType + /** + * (file_requests) Closed file request + */ + FILE_REQUEST_CLOSE, // FileRequestCloseType + /** + * (file_requests) Created file request + */ + FILE_REQUEST_CREATE, // FileRequestCreateType + /** + * (file_requests) Delete file request + */ + FILE_REQUEST_DELETE, // FileRequestDeleteType + /** + * (file_requests) Received files for file request + */ + FILE_REQUEST_RECEIVE_FILE, // FileRequestReceiveFileType + /** + * (groups) Added external ID for group + */ + GROUP_ADD_EXTERNAL_ID, // GroupAddExternalIdType + /** + * (groups) Added team members to group + */ + GROUP_ADD_MEMBER, // GroupAddMemberType + /** + * (groups) Changed external ID for group + */ + GROUP_CHANGE_EXTERNAL_ID, // GroupChangeExternalIdType + /** + * (groups) Changed group management type + */ + GROUP_CHANGE_MANAGEMENT_TYPE, // GroupChangeManagementTypeType + /** + * (groups) Changed manager permissions of group member + */ + GROUP_CHANGE_MEMBER_ROLE, // GroupChangeMemberRoleType + /** + * (groups) Created group + */ + GROUP_CREATE, // GroupCreateType + /** + * (groups) Deleted group + */ + GROUP_DELETE, // GroupDeleteType + /** + * (groups) Updated group (deprecated, no longer logged) + */ + GROUP_DESCRIPTION_UPDATED, // GroupDescriptionUpdatedType + /** + * (groups) Updated group join policy (deprecated, no longer logged) + */ + GROUP_JOIN_POLICY_UPDATED, // GroupJoinPolicyUpdatedType + /** + * (groups) Moved group (deprecated, no longer logged) + */ + GROUP_MOVED, // GroupMovedType + /** + * (groups) Removed external ID for group + */ + GROUP_REMOVE_EXTERNAL_ID, // GroupRemoveExternalIdType + /** + * (groups) Removed team members from group + */ + GROUP_REMOVE_MEMBER, // GroupRemoveMemberType + /** + * (groups) Renamed group + */ + GROUP_RENAME, // GroupRenameType + /** + * (logins) Unlocked/locked account after failed sign in attempts + */ + ACCOUNT_LOCK_OR_UNLOCKED, // AccountLockOrUnlockedType + /** + * (logins) Failed to sign in via EMM (deprecated, replaced by 'Failed + * to sign in') + */ + EMM_ERROR, // EmmErrorType + /** + * (logins) Started trusted team admin session + */ + GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS, // GuestAdminSignedInViaTrustedTeamsType + /** + * (logins) Ended trusted team admin session + */ + GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS, // GuestAdminSignedOutViaTrustedTeamsType + /** + * (logins) Failed to sign in + */ + LOGIN_FAIL, // LoginFailType + /** + * (logins) Signed in + */ + LOGIN_SUCCESS, // LoginSuccessType + /** + * (logins) Signed out + */ + LOGOUT, // LogoutType + /** + * (logins) Ended reseller support session + */ + RESELLER_SUPPORT_SESSION_END, // ResellerSupportSessionEndType + /** + * (logins) Started reseller support session + */ + RESELLER_SUPPORT_SESSION_START, // ResellerSupportSessionStartType + /** + * (logins) Ended admin sign-in-as session + */ + SIGN_IN_AS_SESSION_END, // SignInAsSessionEndType + /** + * (logins) Started admin sign-in-as session + */ + SIGN_IN_AS_SESSION_START, // SignInAsSessionStartType + /** + * (logins) Failed to sign in via SSO (deprecated, replaced by 'Failed + * to sign in') + */ + SSO_ERROR, // SsoErrorType + /** + * (members) Invited members to activate Backup + */ + BACKUP_ADMIN_INVITATION_SENT, // BackupAdminInvitationSentType + /** + * (members) Opened Backup invite + */ + BACKUP_INVITATION_OPENED, // BackupInvitationOpenedType + /** + * (members) Created team invite link + */ + CREATE_TEAM_INVITE_LINK, // CreateTeamInviteLinkType + /** + * (members) Deleted team invite link + */ + DELETE_TEAM_INVITE_LINK, // DeleteTeamInviteLinkType + /** + * (members) Added an external ID for team member + */ + MEMBER_ADD_EXTERNAL_ID, // MemberAddExternalIdType + /** + * (members) Added team member name + */ + MEMBER_ADD_NAME, // MemberAddNameType + /** + * (members) Changed team member admin role + */ + MEMBER_CHANGE_ADMIN_ROLE, // MemberChangeAdminRoleType + /** + * (members) Changed team member email + */ + MEMBER_CHANGE_EMAIL, // MemberChangeEmailType + /** + * (members) Changed the external ID for team member + */ + MEMBER_CHANGE_EXTERNAL_ID, // MemberChangeExternalIdType + /** + * (members) Changed membership type (limited/full) of member + * (deprecated, no longer logged) + */ + MEMBER_CHANGE_MEMBERSHIP_TYPE, // MemberChangeMembershipTypeType + /** + * (members) Changed team member name + */ + MEMBER_CHANGE_NAME, // MemberChangeNameType + /** + * (members) Changed team member reseller role + */ + MEMBER_CHANGE_RESELLER_ROLE, // MemberChangeResellerRoleType + /** + * (members) Changed member status (invited, joined, suspended, etc.) + */ + MEMBER_CHANGE_STATUS, // MemberChangeStatusType + /** + * (members) Cleared manually added contacts + */ + MEMBER_DELETE_MANUAL_CONTACTS, // MemberDeleteManualContactsType + /** + * (members) Deleted team member profile photo + */ + MEMBER_DELETE_PROFILE_PHOTO, // MemberDeleteProfilePhotoType + /** + * (members) Permanently deleted contents of deleted team member account + */ + MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS, // MemberPermanentlyDeleteAccountContentsType + /** + * (members) Removed the external ID for team member + */ + MEMBER_REMOVE_EXTERNAL_ID, // MemberRemoveExternalIdType + /** + * (members) Set team member profile photo + */ + MEMBER_SET_PROFILE_PHOTO, // MemberSetProfilePhotoType + /** + * (members) Set custom member space limit + */ + MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA, // MemberSpaceLimitsAddCustomQuotaType + /** + * (members) Changed custom member space limit + */ + MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA, // MemberSpaceLimitsChangeCustomQuotaType + /** + * (members) Changed space limit status + */ + MEMBER_SPACE_LIMITS_CHANGE_STATUS, // MemberSpaceLimitsChangeStatusType + /** + * (members) Removed custom member space limit + */ + MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA, // MemberSpaceLimitsRemoveCustomQuotaType + /** + * (members) Suggested person to add to team + */ + MEMBER_SUGGEST, // MemberSuggestType + /** + * (members) Transferred contents of deleted member account to another + * member + */ + MEMBER_TRANSFER_ACCOUNT_CONTENTS, // MemberTransferAccountContentsType + /** + * (members) Added pending secondary email + */ + PENDING_SECONDARY_EMAIL_ADDED, // PendingSecondaryEmailAddedType + /** + * (members) Deleted secondary email + */ + SECONDARY_EMAIL_DELETED, // SecondaryEmailDeletedType + /** + * (members) Verified secondary email + */ + SECONDARY_EMAIL_VERIFIED, // SecondaryEmailVerifiedType + /** + * (members) Secondary mails policy changed + */ + SECONDARY_MAILS_POLICY_CHANGED, // SecondaryMailsPolicyChangedType + /** + * (paper) Added Binder page (deprecated, replaced by 'Edited files') + */ + BINDER_ADD_PAGE, // BinderAddPageType + /** + * (paper) Added Binder section (deprecated, replaced by 'Edited files') + */ + BINDER_ADD_SECTION, // BinderAddSectionType + /** + * (paper) Removed Binder page (deprecated, replaced by 'Edited files') + */ + BINDER_REMOVE_PAGE, // BinderRemovePageType + /** + * (paper) Removed Binder section (deprecated, replaced by 'Edited + * files') + */ + BINDER_REMOVE_SECTION, // BinderRemoveSectionType + /** + * (paper) Renamed Binder page (deprecated, replaced by 'Edited files') + */ + BINDER_RENAME_PAGE, // BinderRenamePageType + /** + * (paper) Renamed Binder section (deprecated, replaced by 'Edited + * files') + */ + BINDER_RENAME_SECTION, // BinderRenameSectionType + /** + * (paper) Reordered Binder page (deprecated, replaced by 'Edited + * files') + */ + BINDER_REORDER_PAGE, // BinderReorderPageType + /** + * (paper) Reordered Binder section (deprecated, replaced by 'Edited + * files') + */ + BINDER_REORDER_SECTION, // BinderReorderSectionType + /** + * (paper) Added users and/or groups to Paper doc/folder + */ + PAPER_CONTENT_ADD_MEMBER, // PaperContentAddMemberType + /** + * (paper) Added Paper doc/folder to folder + */ + PAPER_CONTENT_ADD_TO_FOLDER, // PaperContentAddToFolderType + /** + * (paper) Archived Paper doc/folder + */ + PAPER_CONTENT_ARCHIVE, // PaperContentArchiveType + /** + * (paper) Created Paper doc/folder + */ + PAPER_CONTENT_CREATE, // PaperContentCreateType + /** + * (paper) Permanently deleted Paper doc/folder + */ + PAPER_CONTENT_PERMANENTLY_DELETE, // PaperContentPermanentlyDeleteType + /** + * (paper) Removed Paper doc/folder from folder + */ + PAPER_CONTENT_REMOVE_FROM_FOLDER, // PaperContentRemoveFromFolderType + /** + * (paper) Removed users and/or groups from Paper doc/folder + */ + PAPER_CONTENT_REMOVE_MEMBER, // PaperContentRemoveMemberType + /** + * (paper) Renamed Paper doc/folder + */ + PAPER_CONTENT_RENAME, // PaperContentRenameType + /** + * (paper) Restored archived Paper doc/folder + */ + PAPER_CONTENT_RESTORE, // PaperContentRestoreType + /** + * (paper) Added Paper doc comment + */ + PAPER_DOC_ADD_COMMENT, // PaperDocAddCommentType + /** + * (paper) Changed member permissions for Paper doc + */ + PAPER_DOC_CHANGE_MEMBER_ROLE, // PaperDocChangeMemberRoleType + /** + * (paper) Changed sharing setting for Paper doc + */ + PAPER_DOC_CHANGE_SHARING_POLICY, // PaperDocChangeSharingPolicyType + /** + * (paper) Followed/unfollowed Paper doc + */ + PAPER_DOC_CHANGE_SUBSCRIPTION, // PaperDocChangeSubscriptionType + /** + * (paper) Archived Paper doc (deprecated, no longer logged) + */ + PAPER_DOC_DELETED, // PaperDocDeletedType + /** + * (paper) Deleted Paper doc comment + */ + PAPER_DOC_DELETE_COMMENT, // PaperDocDeleteCommentType + /** + * (paper) Downloaded Paper doc in specific format + */ + PAPER_DOC_DOWNLOAD, // PaperDocDownloadType + /** + * (paper) Edited Paper doc + */ + PAPER_DOC_EDIT, // PaperDocEditType + /** + * (paper) Edited Paper doc comment + */ + PAPER_DOC_EDIT_COMMENT, // PaperDocEditCommentType + /** + * (paper) Followed Paper doc (deprecated, replaced by + * 'Followed/unfollowed Paper doc') + */ + PAPER_DOC_FOLLOWED, // PaperDocFollowedType + /** + * (paper) Mentioned user in Paper doc + */ + PAPER_DOC_MENTION, // PaperDocMentionType + /** + * (paper) Transferred ownership of Paper doc + */ + PAPER_DOC_OWNERSHIP_CHANGED, // PaperDocOwnershipChangedType + /** + * (paper) Requested access to Paper doc + */ + PAPER_DOC_REQUEST_ACCESS, // PaperDocRequestAccessType + /** + * (paper) Resolved Paper doc comment + */ + PAPER_DOC_RESOLVE_COMMENT, // PaperDocResolveCommentType + /** + * (paper) Restored Paper doc to previous version + */ + PAPER_DOC_REVERT, // PaperDocRevertType + /** + * (paper) Shared Paper doc via Slack + */ + PAPER_DOC_SLACK_SHARE, // PaperDocSlackShareType + /** + * (paper) Shared Paper doc with users and/or groups (deprecated, no + * longer logged) + */ + PAPER_DOC_TEAM_INVITE, // PaperDocTeamInviteType + /** + * (paper) Deleted Paper doc + */ + PAPER_DOC_TRASHED, // PaperDocTrashedType + /** + * (paper) Unresolved Paper doc comment + */ + PAPER_DOC_UNRESOLVE_COMMENT, // PaperDocUnresolveCommentType + /** + * (paper) Restored Paper doc + */ + PAPER_DOC_UNTRASHED, // PaperDocUntrashedType + /** + * (paper) Viewed Paper doc + */ + PAPER_DOC_VIEW, // PaperDocViewType + /** + * (paper) Changed Paper external sharing setting to anyone (deprecated, + * no longer logged) + */ + PAPER_EXTERNAL_VIEW_ALLOW, // PaperExternalViewAllowType + /** + * (paper) Changed Paper external sharing setting to default team + * (deprecated, no longer logged) + */ + PAPER_EXTERNAL_VIEW_DEFAULT_TEAM, // PaperExternalViewDefaultTeamType + /** + * (paper) Changed Paper external sharing setting to team-only + * (deprecated, no longer logged) + */ + PAPER_EXTERNAL_VIEW_FORBID, // PaperExternalViewForbidType + /** + * (paper) Followed/unfollowed Paper folder + */ + PAPER_FOLDER_CHANGE_SUBSCRIPTION, // PaperFolderChangeSubscriptionType + /** + * (paper) Archived Paper folder (deprecated, no longer logged) + */ + PAPER_FOLDER_DELETED, // PaperFolderDeletedType + /** + * (paper) Followed Paper folder (deprecated, replaced by + * 'Followed/unfollowed Paper folder') + */ + PAPER_FOLDER_FOLLOWED, // PaperFolderFollowedType + /** + * (paper) Shared Paper folder with users and/or groups (deprecated, no + * longer logged) + */ + PAPER_FOLDER_TEAM_INVITE, // PaperFolderTeamInviteType + /** + * (paper) Changed permissions for published doc + */ + PAPER_PUBLISHED_LINK_CHANGE_PERMISSION, // PaperPublishedLinkChangePermissionType + /** + * (paper) Published doc + */ + PAPER_PUBLISHED_LINK_CREATE, // PaperPublishedLinkCreateType + /** + * (paper) Unpublished doc + */ + PAPER_PUBLISHED_LINK_DISABLED, // PaperPublishedLinkDisabledType + /** + * (paper) Viewed published doc + */ + PAPER_PUBLISHED_LINK_VIEW, // PaperPublishedLinkViewType + /** + * (passwords) Changed password + */ + PASSWORD_CHANGE, // PasswordChangeType + /** + * (passwords) Reset password + */ + PASSWORD_RESET, // PasswordResetType + /** + * (passwords) Reset all team member passwords + */ + PASSWORD_RESET_ALL, // PasswordResetAllType + /** + * (reports) Created Classification report + */ + CLASSIFICATION_CREATE_REPORT, // ClassificationCreateReportType + /** + * (reports) Couldn't create Classification report + */ + CLASSIFICATION_CREATE_REPORT_FAIL, // ClassificationCreateReportFailType + /** + * (reports) Created EMM-excluded users report + */ + EMM_CREATE_EXCEPTIONS_REPORT, // EmmCreateExceptionsReportType + /** + * (reports) Created EMM mobile app usage report + */ + EMM_CREATE_USAGE_REPORT, // EmmCreateUsageReportType + /** + * (reports) Created member data report + */ + EXPORT_MEMBERS_REPORT, // ExportMembersReportType + /** + * (reports) Failed to create members data report + */ + EXPORT_MEMBERS_REPORT_FAIL, // ExportMembersReportFailType + /** + * (reports) Created External sharing report + */ + EXTERNAL_SHARING_CREATE_REPORT, // ExternalSharingCreateReportType + /** + * (reports) Couldn't create External sharing report + */ + EXTERNAL_SHARING_REPORT_FAILED, // ExternalSharingReportFailedType + /** + * (reports) Report created: Links created with no expiration + */ + NO_EXPIRATION_LINK_GEN_CREATE_REPORT, // NoExpirationLinkGenCreateReportType + /** + * (reports) Couldn't create report: Links created with no expiration + */ + NO_EXPIRATION_LINK_GEN_REPORT_FAILED, // NoExpirationLinkGenReportFailedType + /** + * (reports) Report created: Links created without passwords + */ + NO_PASSWORD_LINK_GEN_CREATE_REPORT, // NoPasswordLinkGenCreateReportType + /** + * (reports) Couldn't create report: Links created without passwords + */ + NO_PASSWORD_LINK_GEN_REPORT_FAILED, // NoPasswordLinkGenReportFailedType + /** + * (reports) Report created: Views of links without passwords + */ + NO_PASSWORD_LINK_VIEW_CREATE_REPORT, // NoPasswordLinkViewCreateReportType + /** + * (reports) Couldn't create report: Views of links without passwords + */ + NO_PASSWORD_LINK_VIEW_REPORT_FAILED, // NoPasswordLinkViewReportFailedType + /** + * (reports) Report created: Views of old links + */ + OUTDATED_LINK_VIEW_CREATE_REPORT, // OutdatedLinkViewCreateReportType + /** + * (reports) Couldn't create report: Views of old links + */ + OUTDATED_LINK_VIEW_REPORT_FAILED, // OutdatedLinkViewReportFailedType + /** + * (reports) Exported all team Paper docs + */ + PAPER_ADMIN_EXPORT_START, // PaperAdminExportStartType + /** + * (reports) Created ransomware report + */ + RANSOMWARE_ALERT_CREATE_REPORT, // RansomwareAlertCreateReportType + /** + * (reports) Couldn't generate ransomware report + */ + RANSOMWARE_ALERT_CREATE_REPORT_FAILED, // RansomwareAlertCreateReportFailedType + /** + * (reports) Created Smart Sync non-admin devices report + */ + SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT, // SmartSyncCreateAdminPrivilegeReportType + /** + * (reports) Created team activity report + */ + TEAM_ACTIVITY_CREATE_REPORT, // TeamActivityCreateReportType + /** + * (reports) Couldn't generate team activity report + */ + TEAM_ACTIVITY_CREATE_REPORT_FAIL, // TeamActivityCreateReportFailType + /** + * (sharing) Shared album + */ + COLLECTION_SHARE, // CollectionShareType + /** + * (sharing) Transfer files added + */ + FILE_TRANSFERS_FILE_ADD, // FileTransfersFileAddType + /** + * (sharing) Deleted transfer + */ + FILE_TRANSFERS_TRANSFER_DELETE, // FileTransfersTransferDeleteType + /** + * (sharing) Transfer downloaded + */ + FILE_TRANSFERS_TRANSFER_DOWNLOAD, // FileTransfersTransferDownloadType + /** + * (sharing) Sent transfer + */ + FILE_TRANSFERS_TRANSFER_SEND, // FileTransfersTransferSendType + /** + * (sharing) Viewed transfer + */ + FILE_TRANSFERS_TRANSFER_VIEW, // FileTransfersTransferViewType + /** + * (sharing) Changed Paper doc to invite-only (deprecated, no longer + * logged) + */ + NOTE_ACL_INVITE_ONLY, // NoteAclInviteOnlyType + /** + * (sharing) Changed Paper doc to link-accessible (deprecated, no longer + * logged) + */ + NOTE_ACL_LINK, // NoteAclLinkType + /** + * (sharing) Changed Paper doc to link-accessible for team (deprecated, + * no longer logged) + */ + NOTE_ACL_TEAM_LINK, // NoteAclTeamLinkType + /** + * (sharing) Shared Paper doc (deprecated, no longer logged) + */ + NOTE_SHARED, // NoteSharedType + /** + * (sharing) Shared received Paper doc (deprecated, no longer logged) + */ + NOTE_SHARE_RECEIVE, // NoteShareReceiveType + /** + * (sharing) Opened shared Paper doc (deprecated, no longer logged) + */ + OPEN_NOTE_SHARED, // OpenNoteSharedType + /** + * (sharing) Created shared link in Replay + */ + REPLAY_FILE_SHARED_LINK_CREATED, // ReplayFileSharedLinkCreatedType + /** + * (sharing) Modified shared link in Replay + */ + REPLAY_FILE_SHARED_LINK_MODIFIED, // ReplayFileSharedLinkModifiedType + /** + * (sharing) Added member to Replay Project + */ + REPLAY_PROJECT_TEAM_ADD, // ReplayProjectTeamAddType + /** + * (sharing) Removed member from Replay Project + */ + REPLAY_PROJECT_TEAM_DELETE, // ReplayProjectTeamDeleteType + /** + * (sharing) Added team to shared folder (deprecated, no longer logged) + */ + SF_ADD_GROUP, // SfAddGroupType + /** + * (sharing) Allowed non-collaborators to view links to files in shared + * folder (deprecated, no longer logged) + */ + SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS, // SfAllowNonMembersToViewSharedLinksType + /** + * (sharing) Set team members to see warning before sharing folders + * outside team (deprecated, no longer logged) + */ + SF_EXTERNAL_INVITE_WARN, // SfExternalInviteWarnType + /** + * (sharing) Invited Facebook users to shared folder (deprecated, no + * longer logged) + */ + SF_FB_INVITE, // SfFbInviteType + /** + * (sharing) Changed Facebook user's role in shared folder (deprecated, + * no longer logged) + */ + SF_FB_INVITE_CHANGE_ROLE, // SfFbInviteChangeRoleType + /** + * (sharing) Uninvited Facebook user from shared folder (deprecated, no + * longer logged) + */ + SF_FB_UNINVITE, // SfFbUninviteType + /** + * (sharing) Invited group to shared folder (deprecated, no longer + * logged) + */ + SF_INVITE_GROUP, // SfInviteGroupType + /** + * (sharing) Granted access to shared folder (deprecated, no longer + * logged) + */ + SF_TEAM_GRANT_ACCESS, // SfTeamGrantAccessType + /** + * (sharing) Invited team members to shared folder (deprecated, replaced + * by 'Invited user to Dropbox and added them to shared file/folder') + */ + SF_TEAM_INVITE, // SfTeamInviteType + /** + * (sharing) Changed team member's role in shared folder (deprecated, no + * longer logged) + */ + SF_TEAM_INVITE_CHANGE_ROLE, // SfTeamInviteChangeRoleType + /** + * (sharing) Joined team member's shared folder (deprecated, no longer + * logged) + */ + SF_TEAM_JOIN, // SfTeamJoinType + /** + * (sharing) Joined team member's shared folder from link (deprecated, + * no longer logged) + */ + SF_TEAM_JOIN_FROM_OOB_LINK, // SfTeamJoinFromOobLinkType + /** + * (sharing) Unshared folder with team member (deprecated, replaced by + * 'Removed invitee from shared file/folder before invite was accepted') + */ + SF_TEAM_UNINVITE, // SfTeamUninviteType + /** + * (sharing) Invited user to Dropbox and added them to shared + * file/folder + */ + SHARED_CONTENT_ADD_INVITEES, // SharedContentAddInviteesType + /** + * (sharing) Added expiration date to link for shared file/folder + * (deprecated, no longer logged) + */ + SHARED_CONTENT_ADD_LINK_EXPIRY, // SharedContentAddLinkExpiryType + /** + * (sharing) Added password to link for shared file/folder (deprecated, + * no longer logged) + */ + SHARED_CONTENT_ADD_LINK_PASSWORD, // SharedContentAddLinkPasswordType + /** + * (sharing) Added users and/or groups to shared file/folder + */ + SHARED_CONTENT_ADD_MEMBER, // SharedContentAddMemberType + /** + * (sharing) Changed whether members can download shared file/folder + * (deprecated, no longer logged) + */ + SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY, // SharedContentChangeDownloadsPolicyType + /** + * (sharing) Changed access type of invitee to shared file/folder before + * invite was accepted + */ + SHARED_CONTENT_CHANGE_INVITEE_ROLE, // SharedContentChangeInviteeRoleType + /** + * (sharing) Changed link audience of shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_CHANGE_LINK_AUDIENCE, // SharedContentChangeLinkAudienceType + /** + * (sharing) Changed link expiration of shared file/folder (deprecated, + * no longer logged) + */ + SHARED_CONTENT_CHANGE_LINK_EXPIRY, // SharedContentChangeLinkExpiryType + /** + * (sharing) Changed link password of shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_CHANGE_LINK_PASSWORD, // SharedContentChangeLinkPasswordType + /** + * (sharing) Changed access type of shared file/folder member + */ + SHARED_CONTENT_CHANGE_MEMBER_ROLE, // SharedContentChangeMemberRoleType + /** + * (sharing) Changed whether members can see who viewed shared + * file/folder + */ + SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY, // SharedContentChangeViewerInfoPolicyType + /** + * (sharing) Acquired membership of shared file/folder by accepting + * invite + */ + SHARED_CONTENT_CLAIM_INVITATION, // SharedContentClaimInvitationType + /** + * (sharing) Copied shared file/folder to own Dropbox + */ + SHARED_CONTENT_COPY, // SharedContentCopyType + /** + * (sharing) Downloaded shared file/folder + */ + SHARED_CONTENT_DOWNLOAD, // SharedContentDownloadType + /** + * (sharing) Left shared file/folder + */ + SHARED_CONTENT_RELINQUISH_MEMBERSHIP, // SharedContentRelinquishMembershipType + /** + * (sharing) Removed invitee from shared file/folder before invite was + * accepted + */ + SHARED_CONTENT_REMOVE_INVITEES, // SharedContentRemoveInviteesType + /** + * (sharing) Removed link expiration date of shared file/folder + * (deprecated, no longer logged) + */ + SHARED_CONTENT_REMOVE_LINK_EXPIRY, // SharedContentRemoveLinkExpiryType + /** + * (sharing) Removed link password of shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_REMOVE_LINK_PASSWORD, // SharedContentRemoveLinkPasswordType + /** + * (sharing) Removed user/group from shared file/folder + */ + SHARED_CONTENT_REMOVE_MEMBER, // SharedContentRemoveMemberType + /** + * (sharing) Requested access to shared file/folder + */ + SHARED_CONTENT_REQUEST_ACCESS, // SharedContentRequestAccessType + /** + * (sharing) Restored shared file/folder invitees + */ + SHARED_CONTENT_RESTORE_INVITEES, // SharedContentRestoreInviteesType + /** + * (sharing) Restored users and/or groups to membership of shared + * file/folder + */ + SHARED_CONTENT_RESTORE_MEMBER, // SharedContentRestoreMemberType + /** + * (sharing) Unshared file/folder by clearing membership + */ + SHARED_CONTENT_UNSHARE, // SharedContentUnshareType + /** + * (sharing) Previewed shared file/folder + */ + SHARED_CONTENT_VIEW, // SharedContentViewType + /** + * (sharing) Changed who can access shared folder via link + */ + SHARED_FOLDER_CHANGE_LINK_POLICY, // SharedFolderChangeLinkPolicyType + /** + * (sharing) Changed whether shared folder inherits members from parent + * folder + */ + SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY, // SharedFolderChangeMembersInheritancePolicyType + /** + * (sharing) Changed who can add/remove members of shared folder + */ + SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY, // SharedFolderChangeMembersManagementPolicyType + /** + * (sharing) Changed who can become member of shared folder + */ + SHARED_FOLDER_CHANGE_MEMBERS_POLICY, // SharedFolderChangeMembersPolicyType + /** + * (sharing) Created shared folder + */ + SHARED_FOLDER_CREATE, // SharedFolderCreateType + /** + * (sharing) Declined team member's invite to shared folder + */ + SHARED_FOLDER_DECLINE_INVITATION, // SharedFolderDeclineInvitationType + /** + * (sharing) Added shared folder to own Dropbox + */ + SHARED_FOLDER_MOUNT, // SharedFolderMountType + /** + * (sharing) Changed parent of shared folder + */ + SHARED_FOLDER_NEST, // SharedFolderNestType + /** + * (sharing) Transferred ownership of shared folder to another member + */ + SHARED_FOLDER_TRANSFER_OWNERSHIP, // SharedFolderTransferOwnershipType + /** + * (sharing) Deleted shared folder from Dropbox + */ + SHARED_FOLDER_UNMOUNT, // SharedFolderUnmountType + /** + * (sharing) Added shared link expiration date + */ + SHARED_LINK_ADD_EXPIRY, // SharedLinkAddExpiryType + /** + * (sharing) Changed shared link expiration date + */ + SHARED_LINK_CHANGE_EXPIRY, // SharedLinkChangeExpiryType + /** + * (sharing) Changed visibility of shared link + */ + SHARED_LINK_CHANGE_VISIBILITY, // SharedLinkChangeVisibilityType + /** + * (sharing) Added file/folder to Dropbox from shared link + */ + SHARED_LINK_COPY, // SharedLinkCopyType + /** + * (sharing) Created shared link + */ + SHARED_LINK_CREATE, // SharedLinkCreateType + /** + * (sharing) Removed shared link + */ + SHARED_LINK_DISABLE, // SharedLinkDisableType + /** + * (sharing) Downloaded file/folder from shared link + */ + SHARED_LINK_DOWNLOAD, // SharedLinkDownloadType + /** + * (sharing) Removed shared link expiration date + */ + SHARED_LINK_REMOVE_EXPIRY, // SharedLinkRemoveExpiryType + /** + * (sharing) Added an expiration date to the shared link + */ + SHARED_LINK_SETTINGS_ADD_EXPIRATION, // SharedLinkSettingsAddExpirationType + /** + * (sharing) Added a password to the shared link + */ + SHARED_LINK_SETTINGS_ADD_PASSWORD, // SharedLinkSettingsAddPasswordType + /** + * (sharing) Disabled downloads + */ + SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED, // SharedLinkSettingsAllowDownloadDisabledType + /** + * (sharing) Enabled downloads + */ + SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED, // SharedLinkSettingsAllowDownloadEnabledType + /** + * (sharing) Changed the audience of the shared link + */ + SHARED_LINK_SETTINGS_CHANGE_AUDIENCE, // SharedLinkSettingsChangeAudienceType + /** + * (sharing) Changed the expiration date of the shared link + */ + SHARED_LINK_SETTINGS_CHANGE_EXPIRATION, // SharedLinkSettingsChangeExpirationType + /** + * (sharing) Changed the password of the shared link + */ + SHARED_LINK_SETTINGS_CHANGE_PASSWORD, // SharedLinkSettingsChangePasswordType + /** + * (sharing) Removed the expiration date from the shared link + */ + SHARED_LINK_SETTINGS_REMOVE_EXPIRATION, // SharedLinkSettingsRemoveExpirationType + /** + * (sharing) Removed the password from the shared link + */ + SHARED_LINK_SETTINGS_REMOVE_PASSWORD, // SharedLinkSettingsRemovePasswordType + /** + * (sharing) Added members as audience of shared link + */ + SHARED_LINK_SHARE, // SharedLinkShareType + /** + * (sharing) Opened shared link + */ + SHARED_LINK_VIEW, // SharedLinkViewType + /** + * (sharing) Opened shared Paper doc (deprecated, no longer logged) + */ + SHARED_NOTE_OPENED, // SharedNoteOpenedType + /** + * (sharing) Disabled downloads for link (deprecated, no longer logged) + */ + SHMODEL_DISABLE_DOWNLOADS, // ShmodelDisableDownloadsType + /** + * (sharing) Enabled downloads for link (deprecated, no longer logged) + */ + SHMODEL_ENABLE_DOWNLOADS, // ShmodelEnableDownloadsType + /** + * (sharing) Shared link with group (deprecated, no longer logged) + */ + SHMODEL_GROUP_SHARE, // ShmodelGroupShareType + /** + * (showcase) Granted access to showcase + */ + SHOWCASE_ACCESS_GRANTED, // ShowcaseAccessGrantedType + /** + * (showcase) Added member to showcase + */ + SHOWCASE_ADD_MEMBER, // ShowcaseAddMemberType + /** + * (showcase) Archived showcase + */ + SHOWCASE_ARCHIVED, // ShowcaseArchivedType + /** + * (showcase) Created showcase + */ + SHOWCASE_CREATED, // ShowcaseCreatedType + /** + * (showcase) Deleted showcase comment + */ + SHOWCASE_DELETE_COMMENT, // ShowcaseDeleteCommentType + /** + * (showcase) Edited showcase + */ + SHOWCASE_EDITED, // ShowcaseEditedType + /** + * (showcase) Edited showcase comment + */ + SHOWCASE_EDIT_COMMENT, // ShowcaseEditCommentType + /** + * (showcase) Added file to showcase + */ + SHOWCASE_FILE_ADDED, // ShowcaseFileAddedType + /** + * (showcase) Downloaded file from showcase + */ + SHOWCASE_FILE_DOWNLOAD, // ShowcaseFileDownloadType + /** + * (showcase) Removed file from showcase + */ + SHOWCASE_FILE_REMOVED, // ShowcaseFileRemovedType + /** + * (showcase) Viewed file in showcase + */ + SHOWCASE_FILE_VIEW, // ShowcaseFileViewType + /** + * (showcase) Permanently deleted showcase + */ + SHOWCASE_PERMANENTLY_DELETED, // ShowcasePermanentlyDeletedType + /** + * (showcase) Added showcase comment + */ + SHOWCASE_POST_COMMENT, // ShowcasePostCommentType + /** + * (showcase) Removed member from showcase + */ + SHOWCASE_REMOVE_MEMBER, // ShowcaseRemoveMemberType + /** + * (showcase) Renamed showcase + */ + SHOWCASE_RENAMED, // ShowcaseRenamedType + /** + * (showcase) Requested access to showcase + */ + SHOWCASE_REQUEST_ACCESS, // ShowcaseRequestAccessType + /** + * (showcase) Resolved showcase comment + */ + SHOWCASE_RESOLVE_COMMENT, // ShowcaseResolveCommentType + /** + * (showcase) Unarchived showcase + */ + SHOWCASE_RESTORED, // ShowcaseRestoredType + /** + * (showcase) Deleted showcase + */ + SHOWCASE_TRASHED, // ShowcaseTrashedType + /** + * (showcase) Deleted showcase (old version) (deprecated, replaced by + * 'Deleted showcase') + */ + SHOWCASE_TRASHED_DEPRECATED, // ShowcaseTrashedDeprecatedType + /** + * (showcase) Unresolved showcase comment + */ + SHOWCASE_UNRESOLVE_COMMENT, // ShowcaseUnresolveCommentType + /** + * (showcase) Restored showcase + */ + SHOWCASE_UNTRASHED, // ShowcaseUntrashedType + /** + * (showcase) Restored showcase (old version) (deprecated, replaced by + * 'Restored showcase') + */ + SHOWCASE_UNTRASHED_DEPRECATED, // ShowcaseUntrashedDeprecatedType + /** + * (showcase) Viewed showcase + */ + SHOWCASE_VIEW, // ShowcaseViewType + /** + * (sso) Added X.509 certificate for SSO + */ + SSO_ADD_CERT, // SsoAddCertType + /** + * (sso) Added sign-in URL for SSO + */ + SSO_ADD_LOGIN_URL, // SsoAddLoginUrlType + /** + * (sso) Added sign-out URL for SSO + */ + SSO_ADD_LOGOUT_URL, // SsoAddLogoutUrlType + /** + * (sso) Changed X.509 certificate for SSO + */ + SSO_CHANGE_CERT, // SsoChangeCertType + /** + * (sso) Changed sign-in URL for SSO + */ + SSO_CHANGE_LOGIN_URL, // SsoChangeLoginUrlType + /** + * (sso) Changed sign-out URL for SSO + */ + SSO_CHANGE_LOGOUT_URL, // SsoChangeLogoutUrlType + /** + * (sso) Changed SAML identity mode for SSO + */ + SSO_CHANGE_SAML_IDENTITY_MODE, // SsoChangeSamlIdentityModeType + /** + * (sso) Removed X.509 certificate for SSO + */ + SSO_REMOVE_CERT, // SsoRemoveCertType + /** + * (sso) Removed sign-in URL for SSO + */ + SSO_REMOVE_LOGIN_URL, // SsoRemoveLoginUrlType + /** + * (sso) Removed sign-out URL for SSO + */ + SSO_REMOVE_LOGOUT_URL, // SsoRemoveLogoutUrlType + /** + * (team_folders) Changed archival status of team folder + */ + TEAM_FOLDER_CHANGE_STATUS, // TeamFolderChangeStatusType + /** + * (team_folders) Created team folder in active status + */ + TEAM_FOLDER_CREATE, // TeamFolderCreateType + /** + * (team_folders) Downgraded team folder to regular shared folder + */ + TEAM_FOLDER_DOWNGRADE, // TeamFolderDowngradeType + /** + * (team_folders) Permanently deleted archived team folder + */ + TEAM_FOLDER_PERMANENTLY_DELETE, // TeamFolderPermanentlyDeleteType + /** + * (team_folders) Renamed active/archived team folder + */ + TEAM_FOLDER_RENAME, // TeamFolderRenameType + /** + * (team_folders) Changed sync default + */ + TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED, // TeamSelectiveSyncSettingsChangedType + /** + * (team_policies) Changed account capture setting on team domain + */ + ACCOUNT_CAPTURE_CHANGE_POLICY, // AccountCaptureChangePolicyType + /** + * (team_policies) Changed admin reminder settings for requests to join + * the team + */ + ADMIN_EMAIL_REMINDERS_CHANGED, // AdminEmailRemindersChangedType + /** + * (team_policies) Disabled downloads (deprecated, no longer logged) + */ + ALLOW_DOWNLOAD_DISABLED, // AllowDownloadDisabledType + /** + * (team_policies) Enabled downloads (deprecated, no longer logged) + */ + ALLOW_DOWNLOAD_ENABLED, // AllowDownloadEnabledType + /** + * (team_policies) Changed app permissions + */ + APP_PERMISSIONS_CHANGED, // AppPermissionsChangedType + /** + * (team_policies) Changed camera uploads setting for team + */ + CAMERA_UPLOADS_POLICY_CHANGED, // CameraUploadsPolicyChangedType + /** + * (team_policies) Changed Capture transcription policy for team + */ + CAPTURE_TRANSCRIPT_POLICY_CHANGED, // CaptureTranscriptPolicyChangedType + /** + * (team_policies) Changed classification policy for team + */ + CLASSIFICATION_CHANGE_POLICY, // ClassificationChangePolicyType + /** + * (team_policies) Changed computer backup policy for team + */ + COMPUTER_BACKUP_POLICY_CHANGED, // ComputerBackupPolicyChangedType + /** + * (team_policies) Changed content management setting + */ + CONTENT_ADMINISTRATION_POLICY_CHANGED, // ContentAdministrationPolicyChangedType + /** + * (team_policies) Set restrictions on data center locations where team + * data resides + */ + DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY, // DataPlacementRestrictionChangePolicyType + /** + * (team_policies) Completed restrictions on data center locations where + * team data resides + */ + DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY, // DataPlacementRestrictionSatisfyPolicyType + /** + * (team_policies) Added members to device approvals exception list + */ + DEVICE_APPROVALS_ADD_EXCEPTION, // DeviceApprovalsAddExceptionType + /** + * (team_policies) Set/removed limit on number of computers member can + * link to team Dropbox account + */ + DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY, // DeviceApprovalsChangeDesktopPolicyType + /** + * (team_policies) Set/removed limit on number of mobile devices member + * can link to team Dropbox account + */ + DEVICE_APPROVALS_CHANGE_MOBILE_POLICY, // DeviceApprovalsChangeMobilePolicyType + /** + * (team_policies) Changed device approvals setting when member is over + * limit + */ + DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION, // DeviceApprovalsChangeOverageActionType + /** + * (team_policies) Changed device approvals setting when member unlinks + * approved device + */ + DEVICE_APPROVALS_CHANGE_UNLINK_ACTION, // DeviceApprovalsChangeUnlinkActionType + /** + * (team_policies) Removed members from device approvals exception list + */ + DEVICE_APPROVALS_REMOVE_EXCEPTION, // DeviceApprovalsRemoveExceptionType + /** + * (team_policies) Added members to directory restrictions list + */ + DIRECTORY_RESTRICTIONS_ADD_MEMBERS, // DirectoryRestrictionsAddMembersType + /** + * (team_policies) Removed members from directory restrictions list + */ + DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS, // DirectoryRestrictionsRemoveMembersType + /** + * (team_policies) Changed Dropbox Passwords policy for team + */ + DROPBOX_PASSWORDS_POLICY_CHANGED, // DropboxPasswordsPolicyChangedType + /** + * (team_policies) Changed email to Dropbox policy for team + */ + EMAIL_INGEST_POLICY_CHANGED, // EmailIngestPolicyChangedType + /** + * (team_policies) Added members to EMM exception list + */ + EMM_ADD_EXCEPTION, // EmmAddExceptionType + /** + * (team_policies) Enabled/disabled enterprise mobility management for + * members + */ + EMM_CHANGE_POLICY, // EmmChangePolicyType + /** + * (team_policies) Removed members from EMM exception list + */ + EMM_REMOVE_EXCEPTION, // EmmRemoveExceptionType + /** + * (team_policies) Accepted/opted out of extended version history + */ + EXTENDED_VERSION_HISTORY_CHANGE_POLICY, // ExtendedVersionHistoryChangePolicyType + /** + * (team_policies) Changed external drive backup policy for team + */ + EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED, // ExternalDriveBackupPolicyChangedType + /** + * (team_policies) Enabled/disabled commenting on team files + */ + FILE_COMMENTS_CHANGE_POLICY, // FileCommentsChangePolicyType + /** + * (team_policies) Changed file locking policy for team + */ + FILE_LOCKING_POLICY_CHANGED, // FileLockingPolicyChangedType + /** + * (team_policies) Changed File Provider Migration policy for team + */ + FILE_PROVIDER_MIGRATION_POLICY_CHANGED, // FileProviderMigrationPolicyChangedType + /** + * (team_policies) Enabled/disabled file requests + */ + FILE_REQUESTS_CHANGE_POLICY, // FileRequestsChangePolicyType + /** + * (team_policies) Enabled file request emails for everyone (deprecated, + * no longer logged) + */ + FILE_REQUESTS_EMAILS_ENABLED, // FileRequestsEmailsEnabledType + /** + * (team_policies) Enabled file request emails for team (deprecated, no + * longer logged) + */ + FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY, // FileRequestsEmailsRestrictedToTeamOnlyType + /** + * (team_policies) Changed file transfers policy for team + */ + FILE_TRANSFERS_POLICY_CHANGED, // FileTransfersPolicyChangedType + /** + * (team_policies) Changed folder link restrictions policy for team + */ + FOLDER_LINK_RESTRICTION_POLICY_CHANGED, // FolderLinkRestrictionPolicyChangedType + /** + * (team_policies) Enabled/disabled Google single sign-on for team + */ + GOOGLE_SSO_CHANGE_POLICY, // GoogleSsoChangePolicyType + /** + * (team_policies) Changed who can create groups + */ + GROUP_USER_MANAGEMENT_CHANGE_POLICY, // GroupUserManagementChangePolicyType + /** + * (team_policies) Changed integration policy for team + */ + INTEGRATION_POLICY_CHANGED, // IntegrationPolicyChangedType + /** + * (team_policies) Changed invite accept email policy for team + */ + INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED, // InviteAcceptanceEmailPolicyChangedType + /** + * (team_policies) Changed whether users can find team when not invited + */ + MEMBER_REQUESTS_CHANGE_POLICY, // MemberRequestsChangePolicyType + /** + * (team_policies) Changed member send invite policy for team + */ + MEMBER_SEND_INVITE_POLICY_CHANGED, // MemberSendInvitePolicyChangedType + /** + * (team_policies) Added members to member space limit exception list + */ + MEMBER_SPACE_LIMITS_ADD_EXCEPTION, // MemberSpaceLimitsAddExceptionType + /** + * (team_policies) Changed member space limit type for team + */ + MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY, // MemberSpaceLimitsChangeCapsTypePolicyType + /** + * (team_policies) Changed team default member space limit + */ + MEMBER_SPACE_LIMITS_CHANGE_POLICY, // MemberSpaceLimitsChangePolicyType + /** + * (team_policies) Removed members from member space limit exception + * list + */ + MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION, // MemberSpaceLimitsRemoveExceptionType + /** + * (team_policies) Enabled/disabled option for team members to suggest + * people to add to team + */ + MEMBER_SUGGESTIONS_CHANGE_POLICY, // MemberSuggestionsChangePolicyType + /** + * (team_policies) Enabled/disabled Microsoft Office add-in + */ + MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY, // MicrosoftOfficeAddinChangePolicyType + /** + * (team_policies) Enabled/disabled network control + */ + NETWORK_CONTROL_CHANGE_POLICY, // NetworkControlChangePolicyType + /** + * (team_policies) Changed whether Dropbox Paper, when enabled, is + * deployed to all members or to specific members + */ + PAPER_CHANGE_DEPLOYMENT_POLICY, // PaperChangeDeploymentPolicyType + /** + * (team_policies) Changed whether non-members can view Paper docs with + * link (deprecated, no longer logged) + */ + PAPER_CHANGE_MEMBER_LINK_POLICY, // PaperChangeMemberLinkPolicyType + /** + * (team_policies) Changed whether members can share Paper docs outside + * team, and if docs are accessible only by team members or anyone by + * default + */ + PAPER_CHANGE_MEMBER_POLICY, // PaperChangeMemberPolicyType + /** + * (team_policies) Enabled/disabled Dropbox Paper for team + */ + PAPER_CHANGE_POLICY, // PaperChangePolicyType + /** + * (team_policies) Changed Paper Default Folder Policy setting for team + */ + PAPER_DEFAULT_FOLDER_POLICY_CHANGED, // PaperDefaultFolderPolicyChangedType + /** + * (team_policies) Enabled/disabled Paper Desktop for team + */ + PAPER_DESKTOP_POLICY_CHANGED, // PaperDesktopPolicyChangedType + /** + * (team_policies) Added users to Paper-enabled users list + */ + PAPER_ENABLED_USERS_GROUP_ADDITION, // PaperEnabledUsersGroupAdditionType + /** + * (team_policies) Removed users from Paper-enabled users list + */ + PAPER_ENABLED_USERS_GROUP_REMOVAL, // PaperEnabledUsersGroupRemovalType + /** + * (team_policies) Changed team password strength requirements + */ + PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY, // PasswordStrengthRequirementsChangePolicyType + /** + * (team_policies) Enabled/disabled ability of team members to + * permanently delete content + */ + PERMANENT_DELETE_CHANGE_POLICY, // PermanentDeleteChangePolicyType + /** + * (team_policies) Enabled/disabled reseller support + */ + RESELLER_SUPPORT_CHANGE_POLICY, // ResellerSupportChangePolicyType + /** + * (team_policies) Changed Rewind policy for team + */ + REWIND_POLICY_CHANGED, // RewindPolicyChangedType + /** + * (team_policies) Changed send for signature policy for team + */ + SEND_FOR_SIGNATURE_POLICY_CHANGED, // SendForSignaturePolicyChangedType + /** + * (team_policies) Changed whether team members can join shared folders + * owned outside team + */ + SHARING_CHANGE_FOLDER_JOIN_POLICY, // SharingChangeFolderJoinPolicyType + /** + * (team_policies) Changed the allow remove or change expiration policy + * for the links shared outside of the team + */ + SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY, // SharingChangeLinkAllowChangeExpirationPolicyType + /** + * (team_policies) Changed the default expiration for the links shared + * outside of the team + */ + SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY, // SharingChangeLinkDefaultExpirationPolicyType + /** + * (team_policies) Changed the password requirement for the links shared + * outside of the team + */ + SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY, // SharingChangeLinkEnforcePasswordPolicyType + /** + * (team_policies) Changed whether members can share links outside team, + * and if links are accessible only by team members or anyone by default + */ + SHARING_CHANGE_LINK_POLICY, // SharingChangeLinkPolicyType + /** + * (team_policies) Changed whether members can share files/folders + * outside team + */ + SHARING_CHANGE_MEMBER_POLICY, // SharingChangeMemberPolicyType + /** + * (team_policies) Enabled/disabled downloading files from Dropbox + * Showcase for team + */ + SHOWCASE_CHANGE_DOWNLOAD_POLICY, // ShowcaseChangeDownloadPolicyType + /** + * (team_policies) Enabled/disabled Dropbox Showcase for team + */ + SHOWCASE_CHANGE_ENABLED_POLICY, // ShowcaseChangeEnabledPolicyType + /** + * (team_policies) Enabled/disabled sharing Dropbox Showcase externally + * for team + */ + SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY, // ShowcaseChangeExternalSharingPolicyType + /** + * (team_policies) Changed automatic Smart Sync setting for team + */ + SMARTER_SMART_SYNC_POLICY_CHANGED, // SmarterSmartSyncPolicyChangedType + /** + * (team_policies) Changed default Smart Sync setting for team members + */ + SMART_SYNC_CHANGE_POLICY, // SmartSyncChangePolicyType + /** + * (team_policies) Opted team into Smart Sync + */ + SMART_SYNC_NOT_OPT_OUT, // SmartSyncNotOptOutType + /** + * (team_policies) Opted team out of Smart Sync + */ + SMART_SYNC_OPT_OUT, // SmartSyncOptOutType + /** + * (team_policies) Changed single sign-on setting for team + */ + SSO_CHANGE_POLICY, // SsoChangePolicyType + /** + * (team_policies) Changed team branding policy for team + */ + TEAM_BRANDING_POLICY_CHANGED, // TeamBrandingPolicyChangedType + /** + * (team_policies) Changed App Integrations setting for team + */ + TEAM_EXTENSIONS_POLICY_CHANGED, // TeamExtensionsPolicyChangedType + /** + * (team_policies) Enabled/disabled Team Selective Sync for team + */ + TEAM_SELECTIVE_SYNC_POLICY_CHANGED, // TeamSelectiveSyncPolicyChangedType + /** + * (team_policies) Edited the approved list for sharing externally + */ + TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED, // TeamSharingWhitelistSubjectsChangedType + /** + * (team_policies) Added members to two factor authentication exception + * list + */ + TFA_ADD_EXCEPTION, // TfaAddExceptionType + /** + * (team_policies) Changed two-step verification setting for team + */ + TFA_CHANGE_POLICY, // TfaChangePolicyType + /** + * (team_policies) Removed members from two factor authentication + * exception list + */ + TFA_REMOVE_EXCEPTION, // TfaRemoveExceptionType + /** + * (team_policies) Enabled/disabled option for members to link personal + * Dropbox account and team account to same computer + */ + TWO_ACCOUNT_CHANGE_POLICY, // TwoAccountChangePolicyType + /** + * (team_policies) Changed team policy for viewer info + */ + VIEWER_INFO_POLICY_CHANGED, // ViewerInfoPolicyChangedType + /** + * (team_policies) Changed watermarking policy for team + */ + WATERMARKING_POLICY_CHANGED, // WatermarkingPolicyChangedType + /** + * (team_policies) Changed limit on active sessions per member + */ + WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT, // WebSessionsChangeActiveSessionLimitType + /** + * (team_policies) Changed how long members can stay signed in to + * Dropbox.com + */ + WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY, // WebSessionsChangeFixedLengthPolicyType + /** + * (team_policies) Changed how long team members can be idle while + * signed in to Dropbox.com + */ + WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY, // WebSessionsChangeIdleLengthPolicyType + /** + * (team_profile) Requested data residency migration for team data + */ + DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL, // DataResidencyMigrationRequestSuccessfulType + /** + * (team_profile) Request for data residency migration for team data has + * failed + */ + DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL, // DataResidencyMigrationRequestUnsuccessfulType + /** + * (team_profile) Merged another team into this team + */ + TEAM_MERGE_FROM, // TeamMergeFromType + /** + * (team_profile) Merged this team into another team + */ + TEAM_MERGE_TO, // TeamMergeToType + /** + * (team_profile) Added team background to display on shared link + * headers + */ + TEAM_PROFILE_ADD_BACKGROUND, // TeamProfileAddBackgroundType + /** + * (team_profile) Added team logo to display on shared link headers + */ + TEAM_PROFILE_ADD_LOGO, // TeamProfileAddLogoType + /** + * (team_profile) Changed team background displayed on shared link + * headers + */ + TEAM_PROFILE_CHANGE_BACKGROUND, // TeamProfileChangeBackgroundType + /** + * (team_profile) Changed default language for team + */ + TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE, // TeamProfileChangeDefaultLanguageType + /** + * (team_profile) Changed team logo displayed on shared link headers + */ + TEAM_PROFILE_CHANGE_LOGO, // TeamProfileChangeLogoType + /** + * (team_profile) Changed team name + */ + TEAM_PROFILE_CHANGE_NAME, // TeamProfileChangeNameType + /** + * (team_profile) Removed team background displayed on shared link + * headers + */ + TEAM_PROFILE_REMOVE_BACKGROUND, // TeamProfileRemoveBackgroundType + /** + * (team_profile) Removed team logo displayed on shared link headers + */ + TEAM_PROFILE_REMOVE_LOGO, // TeamProfileRemoveLogoType + /** + * (tfa) Added backup phone for two-step verification + */ + TFA_ADD_BACKUP_PHONE, // TfaAddBackupPhoneType + /** + * (tfa) Added security key for two-step verification + */ + TFA_ADD_SECURITY_KEY, // TfaAddSecurityKeyType + /** + * (tfa) Changed backup phone for two-step verification + */ + TFA_CHANGE_BACKUP_PHONE, // TfaChangeBackupPhoneType + /** + * (tfa) Enabled/disabled/changed two-step verification setting + */ + TFA_CHANGE_STATUS, // TfaChangeStatusType + /** + * (tfa) Removed backup phone for two-step verification + */ + TFA_REMOVE_BACKUP_PHONE, // TfaRemoveBackupPhoneType + /** + * (tfa) Removed security key for two-step verification + */ + TFA_REMOVE_SECURITY_KEY, // TfaRemoveSecurityKeyType + /** + * (tfa) Reset two-step verification for team member + */ + TFA_RESET, // TfaResetType + /** + * (trusted_teams) Changed enterprise admin role + */ + CHANGED_ENTERPRISE_ADMIN_ROLE, // ChangedEnterpriseAdminRoleType + /** + * (trusted_teams) Changed enterprise-connected team status + */ + CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS, // ChangedEnterpriseConnectedTeamStatusType + /** + * (trusted_teams) Ended enterprise admin session + */ + ENDED_ENTERPRISE_ADMIN_SESSION, // EndedEnterpriseAdminSessionType + /** + * (trusted_teams) Ended enterprise admin session (deprecated, replaced + * by 'Ended enterprise admin session') + */ + ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED, // EndedEnterpriseAdminSessionDeprecatedType + /** + * (trusted_teams) Changed who can update a setting + */ + ENTERPRISE_SETTINGS_LOCKING, // EnterpriseSettingsLockingType + /** + * (trusted_teams) Changed guest team admin status + */ + GUEST_ADMIN_CHANGE_STATUS, // GuestAdminChangeStatusType + /** + * (trusted_teams) Started enterprise admin session + */ + STARTED_ENTERPRISE_ADMIN_SESSION, // StartedEnterpriseAdminSessionType + /** + * (trusted_teams) Accepted a team merge request + */ + TEAM_MERGE_REQUEST_ACCEPTED, // TeamMergeRequestAcceptedType + /** + * (trusted_teams) Accepted a team merge request (deprecated, replaced + * by 'Accepted a team merge request') + */ + TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM, // TeamMergeRequestAcceptedShownToPrimaryTeamType + /** + * (trusted_teams) Accepted a team merge request (deprecated, replaced + * by 'Accepted a team merge request') + */ + TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM, // TeamMergeRequestAcceptedShownToSecondaryTeamType + /** + * (trusted_teams) Automatically canceled team merge request + */ + TEAM_MERGE_REQUEST_AUTO_CANCELED, // TeamMergeRequestAutoCanceledType + /** + * (trusted_teams) Canceled a team merge request + */ + TEAM_MERGE_REQUEST_CANCELED, // TeamMergeRequestCanceledType + /** + * (trusted_teams) Canceled a team merge request (deprecated, replaced + * by 'Canceled a team merge request') + */ + TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM, // TeamMergeRequestCanceledShownToPrimaryTeamType + /** + * (trusted_teams) Canceled a team merge request (deprecated, replaced + * by 'Canceled a team merge request') + */ + TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM, // TeamMergeRequestCanceledShownToSecondaryTeamType + /** + * (trusted_teams) Team merge request expired + */ + TEAM_MERGE_REQUEST_EXPIRED, // TeamMergeRequestExpiredType + /** + * (trusted_teams) Team merge request expired (deprecated, replaced by + * 'Team merge request expired') + */ + TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM, // TeamMergeRequestExpiredShownToPrimaryTeamType + /** + * (trusted_teams) Team merge request expired (deprecated, replaced by + * 'Team merge request expired') + */ + TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM, // TeamMergeRequestExpiredShownToSecondaryTeamType + /** + * (trusted_teams) Rejected a team merge request (deprecated, no longer + * logged) + */ + TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM, // TeamMergeRequestRejectedShownToPrimaryTeamType + /** + * (trusted_teams) Rejected a team merge request (deprecated, no longer + * logged) + */ + TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM, // TeamMergeRequestRejectedShownToSecondaryTeamType + /** + * (trusted_teams) Sent a team merge request reminder + */ + TEAM_MERGE_REQUEST_REMINDER, // TeamMergeRequestReminderType + /** + * (trusted_teams) Sent a team merge request reminder (deprecated, + * replaced by 'Sent a team merge request reminder') + */ + TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM, // TeamMergeRequestReminderShownToPrimaryTeamType + /** + * (trusted_teams) Sent a team merge request reminder (deprecated, + * replaced by 'Sent a team merge request reminder') + */ + TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM, // TeamMergeRequestReminderShownToSecondaryTeamType + /** + * (trusted_teams) Canceled the team merge + */ + TEAM_MERGE_REQUEST_REVOKED, // TeamMergeRequestRevokedType + /** + * (trusted_teams) Requested to merge their Dropbox team into yours + */ + TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM, // TeamMergeRequestSentShownToPrimaryTeamType + /** + * (trusted_teams) Requested to merge your team into another Dropbox + * team + */ + TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM, // TeamMergeRequestSentShownToSecondaryTeamType + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final EventType OTHER = new EventType().withTag(Tag.OTHER); + + private Tag _tag; + private AdminAlertingAlertStateChangedType adminAlertingAlertStateChangedValue; + private AdminAlertingChangedAlertConfigType adminAlertingChangedAlertConfigValue; + private AdminAlertingTriggeredAlertType adminAlertingTriggeredAlertValue; + private RansomwareRestoreProcessCompletedType ransomwareRestoreProcessCompletedValue; + private RansomwareRestoreProcessStartedType ransomwareRestoreProcessStartedValue; + private AppBlockedByPermissionsType appBlockedByPermissionsValue; + private AppLinkTeamType appLinkTeamValue; + private AppLinkUserType appLinkUserValue; + private AppUnlinkTeamType appUnlinkTeamValue; + private AppUnlinkUserType appUnlinkUserValue; + private IntegrationConnectedType integrationConnectedValue; + private IntegrationDisconnectedType integrationDisconnectedValue; + private FileAddCommentType fileAddCommentValue; + private FileChangeCommentSubscriptionType fileChangeCommentSubscriptionValue; + private FileDeleteCommentType fileDeleteCommentValue; + private FileEditCommentType fileEditCommentValue; + private FileLikeCommentType fileLikeCommentValue; + private FileResolveCommentType fileResolveCommentValue; + private FileUnlikeCommentType fileUnlikeCommentValue; + private FileUnresolveCommentType fileUnresolveCommentValue; + private GovernancePolicyAddFoldersType governancePolicyAddFoldersValue; + private GovernancePolicyAddFolderFailedType governancePolicyAddFolderFailedValue; + private GovernancePolicyContentDisposedType governancePolicyContentDisposedValue; + private GovernancePolicyCreateType governancePolicyCreateValue; + private GovernancePolicyDeleteType governancePolicyDeleteValue; + private GovernancePolicyEditDetailsType governancePolicyEditDetailsValue; + private GovernancePolicyEditDurationType governancePolicyEditDurationValue; + private GovernancePolicyExportCreatedType governancePolicyExportCreatedValue; + private GovernancePolicyExportRemovedType governancePolicyExportRemovedValue; + private GovernancePolicyRemoveFoldersType governancePolicyRemoveFoldersValue; + private GovernancePolicyReportCreatedType governancePolicyReportCreatedValue; + private GovernancePolicyZipPartDownloadedType governancePolicyZipPartDownloadedValue; + private LegalHoldsActivateAHoldType legalHoldsActivateAHoldValue; + private LegalHoldsAddMembersType legalHoldsAddMembersValue; + private LegalHoldsChangeHoldDetailsType legalHoldsChangeHoldDetailsValue; + private LegalHoldsChangeHoldNameType legalHoldsChangeHoldNameValue; + private LegalHoldsExportAHoldType legalHoldsExportAHoldValue; + private LegalHoldsExportCancelledType legalHoldsExportCancelledValue; + private LegalHoldsExportDownloadedType legalHoldsExportDownloadedValue; + private LegalHoldsExportRemovedType legalHoldsExportRemovedValue; + private LegalHoldsReleaseAHoldType legalHoldsReleaseAHoldValue; + private LegalHoldsRemoveMembersType legalHoldsRemoveMembersValue; + private LegalHoldsReportAHoldType legalHoldsReportAHoldValue; + private DeviceChangeIpDesktopType deviceChangeIpDesktopValue; + private DeviceChangeIpMobileType deviceChangeIpMobileValue; + private DeviceChangeIpWebType deviceChangeIpWebValue; + private DeviceDeleteOnUnlinkFailType deviceDeleteOnUnlinkFailValue; + private DeviceDeleteOnUnlinkSuccessType deviceDeleteOnUnlinkSuccessValue; + private DeviceLinkFailType deviceLinkFailValue; + private DeviceLinkSuccessType deviceLinkSuccessValue; + private DeviceManagementDisabledType deviceManagementDisabledValue; + private DeviceManagementEnabledType deviceManagementEnabledValue; + private DeviceSyncBackupStatusChangedType deviceSyncBackupStatusChangedValue; + private DeviceUnlinkType deviceUnlinkValue; + private DropboxPasswordsExportedType dropboxPasswordsExportedValue; + private DropboxPasswordsNewDeviceEnrolledType dropboxPasswordsNewDeviceEnrolledValue; + private EmmRefreshAuthTokenType emmRefreshAuthTokenValue; + private ExternalDriveBackupEligibilityStatusCheckedType externalDriveBackupEligibilityStatusCheckedValue; + private ExternalDriveBackupStatusChangedType externalDriveBackupStatusChangedValue; + private AccountCaptureChangeAvailabilityType accountCaptureChangeAvailabilityValue; + private AccountCaptureMigrateAccountType accountCaptureMigrateAccountValue; + private AccountCaptureNotificationEmailsSentType accountCaptureNotificationEmailsSentValue; + private AccountCaptureRelinquishAccountType accountCaptureRelinquishAccountValue; + private DisabledDomainInvitesType disabledDomainInvitesValue; + private DomainInvitesApproveRequestToJoinTeamType domainInvitesApproveRequestToJoinTeamValue; + private DomainInvitesDeclineRequestToJoinTeamType domainInvitesDeclineRequestToJoinTeamValue; + private DomainInvitesEmailExistingUsersType domainInvitesEmailExistingUsersValue; + private DomainInvitesRequestToJoinTeamType domainInvitesRequestToJoinTeamValue; + private DomainInvitesSetInviteNewUserPrefToNoType domainInvitesSetInviteNewUserPrefToNoValue; + private DomainInvitesSetInviteNewUserPrefToYesType domainInvitesSetInviteNewUserPrefToYesValue; + private DomainVerificationAddDomainFailType domainVerificationAddDomainFailValue; + private DomainVerificationAddDomainSuccessType domainVerificationAddDomainSuccessValue; + private DomainVerificationRemoveDomainType domainVerificationRemoveDomainValue; + private EnabledDomainInvitesType enabledDomainInvitesValue; + private TeamEncryptionKeyCancelKeyDeletionType teamEncryptionKeyCancelKeyDeletionValue; + private TeamEncryptionKeyCreateKeyType teamEncryptionKeyCreateKeyValue; + private TeamEncryptionKeyDeleteKeyType teamEncryptionKeyDeleteKeyValue; + private TeamEncryptionKeyDisableKeyType teamEncryptionKeyDisableKeyValue; + private TeamEncryptionKeyEnableKeyType teamEncryptionKeyEnableKeyValue; + private TeamEncryptionKeyRotateKeyType teamEncryptionKeyRotateKeyValue; + private TeamEncryptionKeyScheduleKeyDeletionType teamEncryptionKeyScheduleKeyDeletionValue; + private ApplyNamingConventionType applyNamingConventionValue; + private CreateFolderType createFolderValue; + private FileAddType fileAddValue; + private FileAddFromAutomationType fileAddFromAutomationValue; + private FileCopyType fileCopyValue; + private FileDeleteType fileDeleteValue; + private FileDownloadType fileDownloadValue; + private FileEditType fileEditValue; + private FileGetCopyReferenceType fileGetCopyReferenceValue; + private FileLockingLockStatusChangedType fileLockingLockStatusChangedValue; + private FileMoveType fileMoveValue; + private FilePermanentlyDeleteType filePermanentlyDeleteValue; + private FilePreviewType filePreviewValue; + private FileRenameType fileRenameValue; + private FileRestoreType fileRestoreValue; + private FileRevertType fileRevertValue; + private FileRollbackChangesType fileRollbackChangesValue; + private FileSaveCopyReferenceType fileSaveCopyReferenceValue; + private FolderOverviewDescriptionChangedType folderOverviewDescriptionChangedValue; + private FolderOverviewItemPinnedType folderOverviewItemPinnedValue; + private FolderOverviewItemUnpinnedType folderOverviewItemUnpinnedValue; + private ObjectLabelAddedType objectLabelAddedValue; + private ObjectLabelRemovedType objectLabelRemovedValue; + private ObjectLabelUpdatedValueType objectLabelUpdatedValueValue; + private OrganizeFolderWithTidyType organizeFolderWithTidyValue; + private ReplayFileDeleteType replayFileDeleteValue; + private RewindFolderType rewindFolderValue; + private UndoNamingConventionType undoNamingConventionValue; + private UndoOrganizeFolderWithTidyType undoOrganizeFolderWithTidyValue; + private UserTagsAddedType userTagsAddedValue; + private UserTagsRemovedType userTagsRemovedValue; + private EmailIngestReceiveFileType emailIngestReceiveFileValue; + private FileRequestChangeType fileRequestChangeValue; + private FileRequestCloseType fileRequestCloseValue; + private FileRequestCreateType fileRequestCreateValue; + private FileRequestDeleteType fileRequestDeleteValue; + private FileRequestReceiveFileType fileRequestReceiveFileValue; + private GroupAddExternalIdType groupAddExternalIdValue; + private GroupAddMemberType groupAddMemberValue; + private GroupChangeExternalIdType groupChangeExternalIdValue; + private GroupChangeManagementTypeType groupChangeManagementTypeValue; + private GroupChangeMemberRoleType groupChangeMemberRoleValue; + private GroupCreateType groupCreateValue; + private GroupDeleteType groupDeleteValue; + private GroupDescriptionUpdatedType groupDescriptionUpdatedValue; + private GroupJoinPolicyUpdatedType groupJoinPolicyUpdatedValue; + private GroupMovedType groupMovedValue; + private GroupRemoveExternalIdType groupRemoveExternalIdValue; + private GroupRemoveMemberType groupRemoveMemberValue; + private GroupRenameType groupRenameValue; + private AccountLockOrUnlockedType accountLockOrUnlockedValue; + private EmmErrorType emmErrorValue; + private GuestAdminSignedInViaTrustedTeamsType guestAdminSignedInViaTrustedTeamsValue; + private GuestAdminSignedOutViaTrustedTeamsType guestAdminSignedOutViaTrustedTeamsValue; + private LoginFailType loginFailValue; + private LoginSuccessType loginSuccessValue; + private LogoutType logoutValue; + private ResellerSupportSessionEndType resellerSupportSessionEndValue; + private ResellerSupportSessionStartType resellerSupportSessionStartValue; + private SignInAsSessionEndType signInAsSessionEndValue; + private SignInAsSessionStartType signInAsSessionStartValue; + private SsoErrorType ssoErrorValue; + private BackupAdminInvitationSentType backupAdminInvitationSentValue; + private BackupInvitationOpenedType backupInvitationOpenedValue; + private CreateTeamInviteLinkType createTeamInviteLinkValue; + private DeleteTeamInviteLinkType deleteTeamInviteLinkValue; + private MemberAddExternalIdType memberAddExternalIdValue; + private MemberAddNameType memberAddNameValue; + private MemberChangeAdminRoleType memberChangeAdminRoleValue; + private MemberChangeEmailType memberChangeEmailValue; + private MemberChangeExternalIdType memberChangeExternalIdValue; + private MemberChangeMembershipTypeType memberChangeMembershipTypeValue; + private MemberChangeNameType memberChangeNameValue; + private MemberChangeResellerRoleType memberChangeResellerRoleValue; + private MemberChangeStatusType memberChangeStatusValue; + private MemberDeleteManualContactsType memberDeleteManualContactsValue; + private MemberDeleteProfilePhotoType memberDeleteProfilePhotoValue; + private MemberPermanentlyDeleteAccountContentsType memberPermanentlyDeleteAccountContentsValue; + private MemberRemoveExternalIdType memberRemoveExternalIdValue; + private MemberSetProfilePhotoType memberSetProfilePhotoValue; + private MemberSpaceLimitsAddCustomQuotaType memberSpaceLimitsAddCustomQuotaValue; + private MemberSpaceLimitsChangeCustomQuotaType memberSpaceLimitsChangeCustomQuotaValue; + private MemberSpaceLimitsChangeStatusType memberSpaceLimitsChangeStatusValue; + private MemberSpaceLimitsRemoveCustomQuotaType memberSpaceLimitsRemoveCustomQuotaValue; + private MemberSuggestType memberSuggestValue; + private MemberTransferAccountContentsType memberTransferAccountContentsValue; + private PendingSecondaryEmailAddedType pendingSecondaryEmailAddedValue; + private SecondaryEmailDeletedType secondaryEmailDeletedValue; + private SecondaryEmailVerifiedType secondaryEmailVerifiedValue; + private SecondaryMailsPolicyChangedType secondaryMailsPolicyChangedValue; + private BinderAddPageType binderAddPageValue; + private BinderAddSectionType binderAddSectionValue; + private BinderRemovePageType binderRemovePageValue; + private BinderRemoveSectionType binderRemoveSectionValue; + private BinderRenamePageType binderRenamePageValue; + private BinderRenameSectionType binderRenameSectionValue; + private BinderReorderPageType binderReorderPageValue; + private BinderReorderSectionType binderReorderSectionValue; + private PaperContentAddMemberType paperContentAddMemberValue; + private PaperContentAddToFolderType paperContentAddToFolderValue; + private PaperContentArchiveType paperContentArchiveValue; + private PaperContentCreateType paperContentCreateValue; + private PaperContentPermanentlyDeleteType paperContentPermanentlyDeleteValue; + private PaperContentRemoveFromFolderType paperContentRemoveFromFolderValue; + private PaperContentRemoveMemberType paperContentRemoveMemberValue; + private PaperContentRenameType paperContentRenameValue; + private PaperContentRestoreType paperContentRestoreValue; + private PaperDocAddCommentType paperDocAddCommentValue; + private PaperDocChangeMemberRoleType paperDocChangeMemberRoleValue; + private PaperDocChangeSharingPolicyType paperDocChangeSharingPolicyValue; + private PaperDocChangeSubscriptionType paperDocChangeSubscriptionValue; + private PaperDocDeletedType paperDocDeletedValue; + private PaperDocDeleteCommentType paperDocDeleteCommentValue; + private PaperDocDownloadType paperDocDownloadValue; + private PaperDocEditType paperDocEditValue; + private PaperDocEditCommentType paperDocEditCommentValue; + private PaperDocFollowedType paperDocFollowedValue; + private PaperDocMentionType paperDocMentionValue; + private PaperDocOwnershipChangedType paperDocOwnershipChangedValue; + private PaperDocRequestAccessType paperDocRequestAccessValue; + private PaperDocResolveCommentType paperDocResolveCommentValue; + private PaperDocRevertType paperDocRevertValue; + private PaperDocSlackShareType paperDocSlackShareValue; + private PaperDocTeamInviteType paperDocTeamInviteValue; + private PaperDocTrashedType paperDocTrashedValue; + private PaperDocUnresolveCommentType paperDocUnresolveCommentValue; + private PaperDocUntrashedType paperDocUntrashedValue; + private PaperDocViewType paperDocViewValue; + private PaperExternalViewAllowType paperExternalViewAllowValue; + private PaperExternalViewDefaultTeamType paperExternalViewDefaultTeamValue; + private PaperExternalViewForbidType paperExternalViewForbidValue; + private PaperFolderChangeSubscriptionType paperFolderChangeSubscriptionValue; + private PaperFolderDeletedType paperFolderDeletedValue; + private PaperFolderFollowedType paperFolderFollowedValue; + private PaperFolderTeamInviteType paperFolderTeamInviteValue; + private PaperPublishedLinkChangePermissionType paperPublishedLinkChangePermissionValue; + private PaperPublishedLinkCreateType paperPublishedLinkCreateValue; + private PaperPublishedLinkDisabledType paperPublishedLinkDisabledValue; + private PaperPublishedLinkViewType paperPublishedLinkViewValue; + private PasswordChangeType passwordChangeValue; + private PasswordResetType passwordResetValue; + private PasswordResetAllType passwordResetAllValue; + private ClassificationCreateReportType classificationCreateReportValue; + private ClassificationCreateReportFailType classificationCreateReportFailValue; + private EmmCreateExceptionsReportType emmCreateExceptionsReportValue; + private EmmCreateUsageReportType emmCreateUsageReportValue; + private ExportMembersReportType exportMembersReportValue; + private ExportMembersReportFailType exportMembersReportFailValue; + private ExternalSharingCreateReportType externalSharingCreateReportValue; + private ExternalSharingReportFailedType externalSharingReportFailedValue; + private NoExpirationLinkGenCreateReportType noExpirationLinkGenCreateReportValue; + private NoExpirationLinkGenReportFailedType noExpirationLinkGenReportFailedValue; + private NoPasswordLinkGenCreateReportType noPasswordLinkGenCreateReportValue; + private NoPasswordLinkGenReportFailedType noPasswordLinkGenReportFailedValue; + private NoPasswordLinkViewCreateReportType noPasswordLinkViewCreateReportValue; + private NoPasswordLinkViewReportFailedType noPasswordLinkViewReportFailedValue; + private OutdatedLinkViewCreateReportType outdatedLinkViewCreateReportValue; + private OutdatedLinkViewReportFailedType outdatedLinkViewReportFailedValue; + private PaperAdminExportStartType paperAdminExportStartValue; + private RansomwareAlertCreateReportType ransomwareAlertCreateReportValue; + private RansomwareAlertCreateReportFailedType ransomwareAlertCreateReportFailedValue; + private SmartSyncCreateAdminPrivilegeReportType smartSyncCreateAdminPrivilegeReportValue; + private TeamActivityCreateReportType teamActivityCreateReportValue; + private TeamActivityCreateReportFailType teamActivityCreateReportFailValue; + private CollectionShareType collectionShareValue; + private FileTransfersFileAddType fileTransfersFileAddValue; + private FileTransfersTransferDeleteType fileTransfersTransferDeleteValue; + private FileTransfersTransferDownloadType fileTransfersTransferDownloadValue; + private FileTransfersTransferSendType fileTransfersTransferSendValue; + private FileTransfersTransferViewType fileTransfersTransferViewValue; + private NoteAclInviteOnlyType noteAclInviteOnlyValue; + private NoteAclLinkType noteAclLinkValue; + private NoteAclTeamLinkType noteAclTeamLinkValue; + private NoteSharedType noteSharedValue; + private NoteShareReceiveType noteShareReceiveValue; + private OpenNoteSharedType openNoteSharedValue; + private ReplayFileSharedLinkCreatedType replayFileSharedLinkCreatedValue; + private ReplayFileSharedLinkModifiedType replayFileSharedLinkModifiedValue; + private ReplayProjectTeamAddType replayProjectTeamAddValue; + private ReplayProjectTeamDeleteType replayProjectTeamDeleteValue; + private SfAddGroupType sfAddGroupValue; + private SfAllowNonMembersToViewSharedLinksType sfAllowNonMembersToViewSharedLinksValue; + private SfExternalInviteWarnType sfExternalInviteWarnValue; + private SfFbInviteType sfFbInviteValue; + private SfFbInviteChangeRoleType sfFbInviteChangeRoleValue; + private SfFbUninviteType sfFbUninviteValue; + private SfInviteGroupType sfInviteGroupValue; + private SfTeamGrantAccessType sfTeamGrantAccessValue; + private SfTeamInviteType sfTeamInviteValue; + private SfTeamInviteChangeRoleType sfTeamInviteChangeRoleValue; + private SfTeamJoinType sfTeamJoinValue; + private SfTeamJoinFromOobLinkType sfTeamJoinFromOobLinkValue; + private SfTeamUninviteType sfTeamUninviteValue; + private SharedContentAddInviteesType sharedContentAddInviteesValue; + private SharedContentAddLinkExpiryType sharedContentAddLinkExpiryValue; + private SharedContentAddLinkPasswordType sharedContentAddLinkPasswordValue; + private SharedContentAddMemberType sharedContentAddMemberValue; + private SharedContentChangeDownloadsPolicyType sharedContentChangeDownloadsPolicyValue; + private SharedContentChangeInviteeRoleType sharedContentChangeInviteeRoleValue; + private SharedContentChangeLinkAudienceType sharedContentChangeLinkAudienceValue; + private SharedContentChangeLinkExpiryType sharedContentChangeLinkExpiryValue; + private SharedContentChangeLinkPasswordType sharedContentChangeLinkPasswordValue; + private SharedContentChangeMemberRoleType sharedContentChangeMemberRoleValue; + private SharedContentChangeViewerInfoPolicyType sharedContentChangeViewerInfoPolicyValue; + private SharedContentClaimInvitationType sharedContentClaimInvitationValue; + private SharedContentCopyType sharedContentCopyValue; + private SharedContentDownloadType sharedContentDownloadValue; + private SharedContentRelinquishMembershipType sharedContentRelinquishMembershipValue; + private SharedContentRemoveInviteesType sharedContentRemoveInviteesValue; + private SharedContentRemoveLinkExpiryType sharedContentRemoveLinkExpiryValue; + private SharedContentRemoveLinkPasswordType sharedContentRemoveLinkPasswordValue; + private SharedContentRemoveMemberType sharedContentRemoveMemberValue; + private SharedContentRequestAccessType sharedContentRequestAccessValue; + private SharedContentRestoreInviteesType sharedContentRestoreInviteesValue; + private SharedContentRestoreMemberType sharedContentRestoreMemberValue; + private SharedContentUnshareType sharedContentUnshareValue; + private SharedContentViewType sharedContentViewValue; + private SharedFolderChangeLinkPolicyType sharedFolderChangeLinkPolicyValue; + private SharedFolderChangeMembersInheritancePolicyType sharedFolderChangeMembersInheritancePolicyValue; + private SharedFolderChangeMembersManagementPolicyType sharedFolderChangeMembersManagementPolicyValue; + private SharedFolderChangeMembersPolicyType sharedFolderChangeMembersPolicyValue; + private SharedFolderCreateType sharedFolderCreateValue; + private SharedFolderDeclineInvitationType sharedFolderDeclineInvitationValue; + private SharedFolderMountType sharedFolderMountValue; + private SharedFolderNestType sharedFolderNestValue; + private SharedFolderTransferOwnershipType sharedFolderTransferOwnershipValue; + private SharedFolderUnmountType sharedFolderUnmountValue; + private SharedLinkAddExpiryType sharedLinkAddExpiryValue; + private SharedLinkChangeExpiryType sharedLinkChangeExpiryValue; + private SharedLinkChangeVisibilityType sharedLinkChangeVisibilityValue; + private SharedLinkCopyType sharedLinkCopyValue; + private SharedLinkCreateType sharedLinkCreateValue; + private SharedLinkDisableType sharedLinkDisableValue; + private SharedLinkDownloadType sharedLinkDownloadValue; + private SharedLinkRemoveExpiryType sharedLinkRemoveExpiryValue; + private SharedLinkSettingsAddExpirationType sharedLinkSettingsAddExpirationValue; + private SharedLinkSettingsAddPasswordType sharedLinkSettingsAddPasswordValue; + private SharedLinkSettingsAllowDownloadDisabledType sharedLinkSettingsAllowDownloadDisabledValue; + private SharedLinkSettingsAllowDownloadEnabledType sharedLinkSettingsAllowDownloadEnabledValue; + private SharedLinkSettingsChangeAudienceType sharedLinkSettingsChangeAudienceValue; + private SharedLinkSettingsChangeExpirationType sharedLinkSettingsChangeExpirationValue; + private SharedLinkSettingsChangePasswordType sharedLinkSettingsChangePasswordValue; + private SharedLinkSettingsRemoveExpirationType sharedLinkSettingsRemoveExpirationValue; + private SharedLinkSettingsRemovePasswordType sharedLinkSettingsRemovePasswordValue; + private SharedLinkShareType sharedLinkShareValue; + private SharedLinkViewType sharedLinkViewValue; + private SharedNoteOpenedType sharedNoteOpenedValue; + private ShmodelDisableDownloadsType shmodelDisableDownloadsValue; + private ShmodelEnableDownloadsType shmodelEnableDownloadsValue; + private ShmodelGroupShareType shmodelGroupShareValue; + private ShowcaseAccessGrantedType showcaseAccessGrantedValue; + private ShowcaseAddMemberType showcaseAddMemberValue; + private ShowcaseArchivedType showcaseArchivedValue; + private ShowcaseCreatedType showcaseCreatedValue; + private ShowcaseDeleteCommentType showcaseDeleteCommentValue; + private ShowcaseEditedType showcaseEditedValue; + private ShowcaseEditCommentType showcaseEditCommentValue; + private ShowcaseFileAddedType showcaseFileAddedValue; + private ShowcaseFileDownloadType showcaseFileDownloadValue; + private ShowcaseFileRemovedType showcaseFileRemovedValue; + private ShowcaseFileViewType showcaseFileViewValue; + private ShowcasePermanentlyDeletedType showcasePermanentlyDeletedValue; + private ShowcasePostCommentType showcasePostCommentValue; + private ShowcaseRemoveMemberType showcaseRemoveMemberValue; + private ShowcaseRenamedType showcaseRenamedValue; + private ShowcaseRequestAccessType showcaseRequestAccessValue; + private ShowcaseResolveCommentType showcaseResolveCommentValue; + private ShowcaseRestoredType showcaseRestoredValue; + private ShowcaseTrashedType showcaseTrashedValue; + private ShowcaseTrashedDeprecatedType showcaseTrashedDeprecatedValue; + private ShowcaseUnresolveCommentType showcaseUnresolveCommentValue; + private ShowcaseUntrashedType showcaseUntrashedValue; + private ShowcaseUntrashedDeprecatedType showcaseUntrashedDeprecatedValue; + private ShowcaseViewType showcaseViewValue; + private SsoAddCertType ssoAddCertValue; + private SsoAddLoginUrlType ssoAddLoginUrlValue; + private SsoAddLogoutUrlType ssoAddLogoutUrlValue; + private SsoChangeCertType ssoChangeCertValue; + private SsoChangeLoginUrlType ssoChangeLoginUrlValue; + private SsoChangeLogoutUrlType ssoChangeLogoutUrlValue; + private SsoChangeSamlIdentityModeType ssoChangeSamlIdentityModeValue; + private SsoRemoveCertType ssoRemoveCertValue; + private SsoRemoveLoginUrlType ssoRemoveLoginUrlValue; + private SsoRemoveLogoutUrlType ssoRemoveLogoutUrlValue; + private TeamFolderChangeStatusType teamFolderChangeStatusValue; + private TeamFolderCreateType teamFolderCreateValue; + private TeamFolderDowngradeType teamFolderDowngradeValue; + private TeamFolderPermanentlyDeleteType teamFolderPermanentlyDeleteValue; + private TeamFolderRenameType teamFolderRenameValue; + private TeamSelectiveSyncSettingsChangedType teamSelectiveSyncSettingsChangedValue; + private AccountCaptureChangePolicyType accountCaptureChangePolicyValue; + private AdminEmailRemindersChangedType adminEmailRemindersChangedValue; + private AllowDownloadDisabledType allowDownloadDisabledValue; + private AllowDownloadEnabledType allowDownloadEnabledValue; + private AppPermissionsChangedType appPermissionsChangedValue; + private CameraUploadsPolicyChangedType cameraUploadsPolicyChangedValue; + private CaptureTranscriptPolicyChangedType captureTranscriptPolicyChangedValue; + private ClassificationChangePolicyType classificationChangePolicyValue; + private ComputerBackupPolicyChangedType computerBackupPolicyChangedValue; + private ContentAdministrationPolicyChangedType contentAdministrationPolicyChangedValue; + private DataPlacementRestrictionChangePolicyType dataPlacementRestrictionChangePolicyValue; + private DataPlacementRestrictionSatisfyPolicyType dataPlacementRestrictionSatisfyPolicyValue; + private DeviceApprovalsAddExceptionType deviceApprovalsAddExceptionValue; + private DeviceApprovalsChangeDesktopPolicyType deviceApprovalsChangeDesktopPolicyValue; + private DeviceApprovalsChangeMobilePolicyType deviceApprovalsChangeMobilePolicyValue; + private DeviceApprovalsChangeOverageActionType deviceApprovalsChangeOverageActionValue; + private DeviceApprovalsChangeUnlinkActionType deviceApprovalsChangeUnlinkActionValue; + private DeviceApprovalsRemoveExceptionType deviceApprovalsRemoveExceptionValue; + private DirectoryRestrictionsAddMembersType directoryRestrictionsAddMembersValue; + private DirectoryRestrictionsRemoveMembersType directoryRestrictionsRemoveMembersValue; + private DropboxPasswordsPolicyChangedType dropboxPasswordsPolicyChangedValue; + private EmailIngestPolicyChangedType emailIngestPolicyChangedValue; + private EmmAddExceptionType emmAddExceptionValue; + private EmmChangePolicyType emmChangePolicyValue; + private EmmRemoveExceptionType emmRemoveExceptionValue; + private ExtendedVersionHistoryChangePolicyType extendedVersionHistoryChangePolicyValue; + private ExternalDriveBackupPolicyChangedType externalDriveBackupPolicyChangedValue; + private FileCommentsChangePolicyType fileCommentsChangePolicyValue; + private FileLockingPolicyChangedType fileLockingPolicyChangedValue; + private FileProviderMigrationPolicyChangedType fileProviderMigrationPolicyChangedValue; + private FileRequestsChangePolicyType fileRequestsChangePolicyValue; + private FileRequestsEmailsEnabledType fileRequestsEmailsEnabledValue; + private FileRequestsEmailsRestrictedToTeamOnlyType fileRequestsEmailsRestrictedToTeamOnlyValue; + private FileTransfersPolicyChangedType fileTransfersPolicyChangedValue; + private FolderLinkRestrictionPolicyChangedType folderLinkRestrictionPolicyChangedValue; + private GoogleSsoChangePolicyType googleSsoChangePolicyValue; + private GroupUserManagementChangePolicyType groupUserManagementChangePolicyValue; + private IntegrationPolicyChangedType integrationPolicyChangedValue; + private InviteAcceptanceEmailPolicyChangedType inviteAcceptanceEmailPolicyChangedValue; + private MemberRequestsChangePolicyType memberRequestsChangePolicyValue; + private MemberSendInvitePolicyChangedType memberSendInvitePolicyChangedValue; + private MemberSpaceLimitsAddExceptionType memberSpaceLimitsAddExceptionValue; + private MemberSpaceLimitsChangeCapsTypePolicyType memberSpaceLimitsChangeCapsTypePolicyValue; + private MemberSpaceLimitsChangePolicyType memberSpaceLimitsChangePolicyValue; + private MemberSpaceLimitsRemoveExceptionType memberSpaceLimitsRemoveExceptionValue; + private MemberSuggestionsChangePolicyType memberSuggestionsChangePolicyValue; + private MicrosoftOfficeAddinChangePolicyType microsoftOfficeAddinChangePolicyValue; + private NetworkControlChangePolicyType networkControlChangePolicyValue; + private PaperChangeDeploymentPolicyType paperChangeDeploymentPolicyValue; + private PaperChangeMemberLinkPolicyType paperChangeMemberLinkPolicyValue; + private PaperChangeMemberPolicyType paperChangeMemberPolicyValue; + private PaperChangePolicyType paperChangePolicyValue; + private PaperDefaultFolderPolicyChangedType paperDefaultFolderPolicyChangedValue; + private PaperDesktopPolicyChangedType paperDesktopPolicyChangedValue; + private PaperEnabledUsersGroupAdditionType paperEnabledUsersGroupAdditionValue; + private PaperEnabledUsersGroupRemovalType paperEnabledUsersGroupRemovalValue; + private PasswordStrengthRequirementsChangePolicyType passwordStrengthRequirementsChangePolicyValue; + private PermanentDeleteChangePolicyType permanentDeleteChangePolicyValue; + private ResellerSupportChangePolicyType resellerSupportChangePolicyValue; + private RewindPolicyChangedType rewindPolicyChangedValue; + private SendForSignaturePolicyChangedType sendForSignaturePolicyChangedValue; + private SharingChangeFolderJoinPolicyType sharingChangeFolderJoinPolicyValue; + private SharingChangeLinkAllowChangeExpirationPolicyType sharingChangeLinkAllowChangeExpirationPolicyValue; + private SharingChangeLinkDefaultExpirationPolicyType sharingChangeLinkDefaultExpirationPolicyValue; + private SharingChangeLinkEnforcePasswordPolicyType sharingChangeLinkEnforcePasswordPolicyValue; + private SharingChangeLinkPolicyType sharingChangeLinkPolicyValue; + private SharingChangeMemberPolicyType sharingChangeMemberPolicyValue; + private ShowcaseChangeDownloadPolicyType showcaseChangeDownloadPolicyValue; + private ShowcaseChangeEnabledPolicyType showcaseChangeEnabledPolicyValue; + private ShowcaseChangeExternalSharingPolicyType showcaseChangeExternalSharingPolicyValue; + private SmarterSmartSyncPolicyChangedType smarterSmartSyncPolicyChangedValue; + private SmartSyncChangePolicyType smartSyncChangePolicyValue; + private SmartSyncNotOptOutType smartSyncNotOptOutValue; + private SmartSyncOptOutType smartSyncOptOutValue; + private SsoChangePolicyType ssoChangePolicyValue; + private TeamBrandingPolicyChangedType teamBrandingPolicyChangedValue; + private TeamExtensionsPolicyChangedType teamExtensionsPolicyChangedValue; + private TeamSelectiveSyncPolicyChangedType teamSelectiveSyncPolicyChangedValue; + private TeamSharingWhitelistSubjectsChangedType teamSharingWhitelistSubjectsChangedValue; + private TfaAddExceptionType tfaAddExceptionValue; + private TfaChangePolicyType tfaChangePolicyValue; + private TfaRemoveExceptionType tfaRemoveExceptionValue; + private TwoAccountChangePolicyType twoAccountChangePolicyValue; + private ViewerInfoPolicyChangedType viewerInfoPolicyChangedValue; + private WatermarkingPolicyChangedType watermarkingPolicyChangedValue; + private WebSessionsChangeActiveSessionLimitType webSessionsChangeActiveSessionLimitValue; + private WebSessionsChangeFixedLengthPolicyType webSessionsChangeFixedLengthPolicyValue; + private WebSessionsChangeIdleLengthPolicyType webSessionsChangeIdleLengthPolicyValue; + private DataResidencyMigrationRequestSuccessfulType dataResidencyMigrationRequestSuccessfulValue; + private DataResidencyMigrationRequestUnsuccessfulType dataResidencyMigrationRequestUnsuccessfulValue; + private TeamMergeFromType teamMergeFromValue; + private TeamMergeToType teamMergeToValue; + private TeamProfileAddBackgroundType teamProfileAddBackgroundValue; + private TeamProfileAddLogoType teamProfileAddLogoValue; + private TeamProfileChangeBackgroundType teamProfileChangeBackgroundValue; + private TeamProfileChangeDefaultLanguageType teamProfileChangeDefaultLanguageValue; + private TeamProfileChangeLogoType teamProfileChangeLogoValue; + private TeamProfileChangeNameType teamProfileChangeNameValue; + private TeamProfileRemoveBackgroundType teamProfileRemoveBackgroundValue; + private TeamProfileRemoveLogoType teamProfileRemoveLogoValue; + private TfaAddBackupPhoneType tfaAddBackupPhoneValue; + private TfaAddSecurityKeyType tfaAddSecurityKeyValue; + private TfaChangeBackupPhoneType tfaChangeBackupPhoneValue; + private TfaChangeStatusType tfaChangeStatusValue; + private TfaRemoveBackupPhoneType tfaRemoveBackupPhoneValue; + private TfaRemoveSecurityKeyType tfaRemoveSecurityKeyValue; + private TfaResetType tfaResetValue; + private ChangedEnterpriseAdminRoleType changedEnterpriseAdminRoleValue; + private ChangedEnterpriseConnectedTeamStatusType changedEnterpriseConnectedTeamStatusValue; + private EndedEnterpriseAdminSessionType endedEnterpriseAdminSessionValue; + private EndedEnterpriseAdminSessionDeprecatedType endedEnterpriseAdminSessionDeprecatedValue; + private EnterpriseSettingsLockingType enterpriseSettingsLockingValue; + private GuestAdminChangeStatusType guestAdminChangeStatusValue; + private StartedEnterpriseAdminSessionType startedEnterpriseAdminSessionValue; + private TeamMergeRequestAcceptedType teamMergeRequestAcceptedValue; + private TeamMergeRequestAcceptedShownToPrimaryTeamType teamMergeRequestAcceptedShownToPrimaryTeamValue; + private TeamMergeRequestAcceptedShownToSecondaryTeamType teamMergeRequestAcceptedShownToSecondaryTeamValue; + private TeamMergeRequestAutoCanceledType teamMergeRequestAutoCanceledValue; + private TeamMergeRequestCanceledType teamMergeRequestCanceledValue; + private TeamMergeRequestCanceledShownToPrimaryTeamType teamMergeRequestCanceledShownToPrimaryTeamValue; + private TeamMergeRequestCanceledShownToSecondaryTeamType teamMergeRequestCanceledShownToSecondaryTeamValue; + private TeamMergeRequestExpiredType teamMergeRequestExpiredValue; + private TeamMergeRequestExpiredShownToPrimaryTeamType teamMergeRequestExpiredShownToPrimaryTeamValue; + private TeamMergeRequestExpiredShownToSecondaryTeamType teamMergeRequestExpiredShownToSecondaryTeamValue; + private TeamMergeRequestRejectedShownToPrimaryTeamType teamMergeRequestRejectedShownToPrimaryTeamValue; + private TeamMergeRequestRejectedShownToSecondaryTeamType teamMergeRequestRejectedShownToSecondaryTeamValue; + private TeamMergeRequestReminderType teamMergeRequestReminderValue; + private TeamMergeRequestReminderShownToPrimaryTeamType teamMergeRequestReminderShownToPrimaryTeamValue; + private TeamMergeRequestReminderShownToSecondaryTeamType teamMergeRequestReminderShownToSecondaryTeamValue; + private TeamMergeRequestRevokedType teamMergeRequestRevokedValue; + private TeamMergeRequestSentShownToPrimaryTeamType teamMergeRequestSentShownToPrimaryTeamValue; + private TeamMergeRequestSentShownToSecondaryTeamType teamMergeRequestSentShownToSecondaryTeamValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private EventType() { + } + + + /** + * The type of the event with description. + * + * @param _tag Discriminating tag for this instance. + */ + private EventType withTag(Tag _tag) { + EventType result = new EventType(); + result._tag = _tag; + return result; + } + + /** + * The type of the event with description. + * + * @param adminAlertingAlertStateChangedValue (admin_alerting) Changed an + * alert state. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAdminAlertingAlertStateChanged(Tag _tag, AdminAlertingAlertStateChangedType adminAlertingAlertStateChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.adminAlertingAlertStateChangedValue = adminAlertingAlertStateChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param adminAlertingChangedAlertConfigValue (admin_alerting) Changed an + * alert setting. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAdminAlertingChangedAlertConfig(Tag _tag, AdminAlertingChangedAlertConfigType adminAlertingChangedAlertConfigValue) { + EventType result = new EventType(); + result._tag = _tag; + result.adminAlertingChangedAlertConfigValue = adminAlertingChangedAlertConfigValue; + return result; + } + + /** + * The type of the event with description. + * + * @param adminAlertingTriggeredAlertValue (admin_alerting) Triggered + * security alert. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAdminAlertingTriggeredAlert(Tag _tag, AdminAlertingTriggeredAlertType adminAlertingTriggeredAlertValue) { + EventType result = new EventType(); + result._tag = _tag; + result.adminAlertingTriggeredAlertValue = adminAlertingTriggeredAlertValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ransomwareRestoreProcessCompletedValue (admin_alerting) Completed + * ransomware restore process. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndRansomwareRestoreProcessCompleted(Tag _tag, RansomwareRestoreProcessCompletedType ransomwareRestoreProcessCompletedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ransomwareRestoreProcessCompletedValue = ransomwareRestoreProcessCompletedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ransomwareRestoreProcessStartedValue (admin_alerting) Started + * ransomware restore process. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndRansomwareRestoreProcessStarted(Tag _tag, RansomwareRestoreProcessStartedType ransomwareRestoreProcessStartedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ransomwareRestoreProcessStartedValue = ransomwareRestoreProcessStartedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param appBlockedByPermissionsValue (apps) Failed to connect app for + * member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAppBlockedByPermissions(Tag _tag, AppBlockedByPermissionsType appBlockedByPermissionsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.appBlockedByPermissionsValue = appBlockedByPermissionsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param appLinkTeamValue (apps) Linked app for team. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAppLinkTeam(Tag _tag, AppLinkTeamType appLinkTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.appLinkTeamValue = appLinkTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param appLinkUserValue (apps) Linked app for member. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAppLinkUser(Tag _tag, AppLinkUserType appLinkUserValue) { + EventType result = new EventType(); + result._tag = _tag; + result.appLinkUserValue = appLinkUserValue; + return result; + } + + /** + * The type of the event with description. + * + * @param appUnlinkTeamValue (apps) Unlinked app for team. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAppUnlinkTeam(Tag _tag, AppUnlinkTeamType appUnlinkTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.appUnlinkTeamValue = appUnlinkTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param appUnlinkUserValue (apps) Unlinked app for member. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAppUnlinkUser(Tag _tag, AppUnlinkUserType appUnlinkUserValue) { + EventType result = new EventType(); + result._tag = _tag; + result.appUnlinkUserValue = appUnlinkUserValue; + return result; + } + + /** + * The type of the event with description. + * + * @param integrationConnectedValue (apps) Connected integration for + * member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndIntegrationConnected(Tag _tag, IntegrationConnectedType integrationConnectedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.integrationConnectedValue = integrationConnectedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param integrationDisconnectedValue (apps) Disconnected integration for + * member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndIntegrationDisconnected(Tag _tag, IntegrationDisconnectedType integrationDisconnectedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.integrationDisconnectedValue = integrationDisconnectedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileAddCommentValue (comments) Added file comment. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileAddComment(Tag _tag, FileAddCommentType fileAddCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileAddCommentValue = fileAddCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileChangeCommentSubscriptionValue (comments) Subscribed to or + * unsubscribed from comment notifications for file. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileChangeCommentSubscription(Tag _tag, FileChangeCommentSubscriptionType fileChangeCommentSubscriptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileChangeCommentSubscriptionValue = fileChangeCommentSubscriptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileDeleteCommentValue (comments) Deleted file comment. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileDeleteComment(Tag _tag, FileDeleteCommentType fileDeleteCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileDeleteCommentValue = fileDeleteCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileEditCommentValue (comments) Edited file comment. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileEditComment(Tag _tag, FileEditCommentType fileEditCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileEditCommentValue = fileEditCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileLikeCommentValue (comments) Liked file comment (deprecated, + * no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileLikeComment(Tag _tag, FileLikeCommentType fileLikeCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileLikeCommentValue = fileLikeCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileResolveCommentValue (comments) Resolved file comment. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileResolveComment(Tag _tag, FileResolveCommentType fileResolveCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileResolveCommentValue = fileResolveCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileUnlikeCommentValue (comments) Unliked file comment + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileUnlikeComment(Tag _tag, FileUnlikeCommentType fileUnlikeCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileUnlikeCommentValue = fileUnlikeCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileUnresolveCommentValue (comments) Unresolved file comment. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileUnresolveComment(Tag _tag, FileUnresolveCommentType fileUnresolveCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileUnresolveCommentValue = fileUnresolveCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyAddFoldersValue (data_governance) Added folders + * to policy. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyAddFolders(Tag _tag, GovernancePolicyAddFoldersType governancePolicyAddFoldersValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyAddFoldersValue = governancePolicyAddFoldersValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyAddFolderFailedValue (data_governance) Couldn't + * add a folder to a policy. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyAddFolderFailed(Tag _tag, GovernancePolicyAddFolderFailedType governancePolicyAddFolderFailedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyAddFolderFailedValue = governancePolicyAddFolderFailedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyContentDisposedValue (data_governance) Content + * disposed. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyContentDisposed(Tag _tag, GovernancePolicyContentDisposedType governancePolicyContentDisposedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyContentDisposedValue = governancePolicyContentDisposedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyCreateValue (data_governance) Activated a new + * policy. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyCreate(Tag _tag, GovernancePolicyCreateType governancePolicyCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyCreateValue = governancePolicyCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyDeleteValue (data_governance) Deleted a policy. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyDelete(Tag _tag, GovernancePolicyDeleteType governancePolicyDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyDeleteValue = governancePolicyDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyEditDetailsValue (data_governance) Edited policy. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyEditDetails(Tag _tag, GovernancePolicyEditDetailsType governancePolicyEditDetailsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyEditDetailsValue = governancePolicyEditDetailsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyEditDurationValue (data_governance) Changed + * policy duration. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyEditDuration(Tag _tag, GovernancePolicyEditDurationType governancePolicyEditDurationValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyEditDurationValue = governancePolicyEditDurationValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyExportCreatedValue (data_governance) Created a + * policy download. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyExportCreated(Tag _tag, GovernancePolicyExportCreatedType governancePolicyExportCreatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyExportCreatedValue = governancePolicyExportCreatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyExportRemovedValue (data_governance) Removed a + * policy download. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyExportRemoved(Tag _tag, GovernancePolicyExportRemovedType governancePolicyExportRemovedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyExportRemovedValue = governancePolicyExportRemovedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyRemoveFoldersValue (data_governance) Removed + * folders from policy. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyRemoveFolders(Tag _tag, GovernancePolicyRemoveFoldersType governancePolicyRemoveFoldersValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyRemoveFoldersValue = governancePolicyRemoveFoldersValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyReportCreatedValue (data_governance) Created a + * summary report for a policy. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyReportCreated(Tag _tag, GovernancePolicyReportCreatedType governancePolicyReportCreatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyReportCreatedValue = governancePolicyReportCreatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param governancePolicyZipPartDownloadedValue (data_governance) + * Downloaded content from a policy. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGovernancePolicyZipPartDownloaded(Tag _tag, GovernancePolicyZipPartDownloadedType governancePolicyZipPartDownloadedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.governancePolicyZipPartDownloadedValue = governancePolicyZipPartDownloadedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsActivateAHoldValue (data_governance) Activated a hold. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsActivateAHold(Tag _tag, LegalHoldsActivateAHoldType legalHoldsActivateAHoldValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsActivateAHoldValue = legalHoldsActivateAHoldValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsAddMembersValue (data_governance) Added members to a + * hold. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsAddMembers(Tag _tag, LegalHoldsAddMembersType legalHoldsAddMembersValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsAddMembersValue = legalHoldsAddMembersValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsChangeHoldDetailsValue (data_governance) Edited details + * for a hold. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsChangeHoldDetails(Tag _tag, LegalHoldsChangeHoldDetailsType legalHoldsChangeHoldDetailsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsChangeHoldDetailsValue = legalHoldsChangeHoldDetailsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsChangeHoldNameValue (data_governance) Renamed a hold. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsChangeHoldName(Tag _tag, LegalHoldsChangeHoldNameType legalHoldsChangeHoldNameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsChangeHoldNameValue = legalHoldsChangeHoldNameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsExportAHoldValue (data_governance) Exported hold. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsExportAHold(Tag _tag, LegalHoldsExportAHoldType legalHoldsExportAHoldValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsExportAHoldValue = legalHoldsExportAHoldValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsExportCancelledValue (data_governance) Canceled export + * for a hold. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsExportCancelled(Tag _tag, LegalHoldsExportCancelledType legalHoldsExportCancelledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsExportCancelledValue = legalHoldsExportCancelledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsExportDownloadedValue (data_governance) Downloaded + * export for a hold. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsExportDownloaded(Tag _tag, LegalHoldsExportDownloadedType legalHoldsExportDownloadedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsExportDownloadedValue = legalHoldsExportDownloadedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsExportRemovedValue (data_governance) Removed export for + * a hold. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsExportRemoved(Tag _tag, LegalHoldsExportRemovedType legalHoldsExportRemovedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsExportRemovedValue = legalHoldsExportRemovedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsReleaseAHoldValue (data_governance) Released a hold. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsReleaseAHold(Tag _tag, LegalHoldsReleaseAHoldType legalHoldsReleaseAHoldValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsReleaseAHoldValue = legalHoldsReleaseAHoldValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsRemoveMembersValue (data_governance) Removed members + * from a hold. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsRemoveMembers(Tag _tag, LegalHoldsRemoveMembersType legalHoldsRemoveMembersValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsRemoveMembersValue = legalHoldsRemoveMembersValue; + return result; + } + + /** + * The type of the event with description. + * + * @param legalHoldsReportAHoldValue (data_governance) Created a summary + * report for a hold. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLegalHoldsReportAHold(Tag _tag, LegalHoldsReportAHoldType legalHoldsReportAHoldValue) { + EventType result = new EventType(); + result._tag = _tag; + result.legalHoldsReportAHoldValue = legalHoldsReportAHoldValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceChangeIpDesktopValue (devices) Changed IP address + * associated with active desktop session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceChangeIpDesktop(Tag _tag, DeviceChangeIpDesktopType deviceChangeIpDesktopValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceChangeIpDesktopValue = deviceChangeIpDesktopValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceChangeIpMobileValue (devices) Changed IP address associated + * with active mobile session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceChangeIpMobile(Tag _tag, DeviceChangeIpMobileType deviceChangeIpMobileValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceChangeIpMobileValue = deviceChangeIpMobileValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceChangeIpWebValue (devices) Changed IP address associated + * with active web session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceChangeIpWeb(Tag _tag, DeviceChangeIpWebType deviceChangeIpWebValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceChangeIpWebValue = deviceChangeIpWebValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceDeleteOnUnlinkFailValue (devices) Failed to delete all + * files from unlinked device. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceDeleteOnUnlinkFail(Tag _tag, DeviceDeleteOnUnlinkFailType deviceDeleteOnUnlinkFailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceDeleteOnUnlinkFailValue = deviceDeleteOnUnlinkFailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceDeleteOnUnlinkSuccessValue (devices) Deleted all files from + * unlinked device. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceDeleteOnUnlinkSuccess(Tag _tag, DeviceDeleteOnUnlinkSuccessType deviceDeleteOnUnlinkSuccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceDeleteOnUnlinkSuccessValue = deviceDeleteOnUnlinkSuccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceLinkFailValue (devices) Failed to link device. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceLinkFail(Tag _tag, DeviceLinkFailType deviceLinkFailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceLinkFailValue = deviceLinkFailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceLinkSuccessValue (devices) Linked device. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceLinkSuccess(Tag _tag, DeviceLinkSuccessType deviceLinkSuccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceLinkSuccessValue = deviceLinkSuccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceManagementDisabledValue (devices) Disabled device + * management (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceManagementDisabled(Tag _tag, DeviceManagementDisabledType deviceManagementDisabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceManagementDisabledValue = deviceManagementDisabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceManagementEnabledValue (devices) Enabled device management + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceManagementEnabled(Tag _tag, DeviceManagementEnabledType deviceManagementEnabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceManagementEnabledValue = deviceManagementEnabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceSyncBackupStatusChangedValue (devices) Enabled/disabled + * backup for computer. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceSyncBackupStatusChanged(Tag _tag, DeviceSyncBackupStatusChangedType deviceSyncBackupStatusChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceSyncBackupStatusChangedValue = deviceSyncBackupStatusChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceUnlinkValue (devices) Disconnected device. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceUnlink(Tag _tag, DeviceUnlinkType deviceUnlinkValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceUnlinkValue = deviceUnlinkValue; + return result; + } + + /** + * The type of the event with description. + * + * @param dropboxPasswordsExportedValue (devices) Exported passwords. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDropboxPasswordsExported(Tag _tag, DropboxPasswordsExportedType dropboxPasswordsExportedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.dropboxPasswordsExportedValue = dropboxPasswordsExportedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param dropboxPasswordsNewDeviceEnrolledValue (devices) Enrolled new + * Dropbox Passwords device. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDropboxPasswordsNewDeviceEnrolled(Tag _tag, DropboxPasswordsNewDeviceEnrolledType dropboxPasswordsNewDeviceEnrolledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.dropboxPasswordsNewDeviceEnrolledValue = dropboxPasswordsNewDeviceEnrolledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emmRefreshAuthTokenValue (devices) Refreshed auth token used for + * setting up EMM. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmmRefreshAuthToken(Tag _tag, EmmRefreshAuthTokenType emmRefreshAuthTokenValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emmRefreshAuthTokenValue = emmRefreshAuthTokenValue; + return result; + } + + /** + * The type of the event with description. + * + * @param externalDriveBackupEligibilityStatusCheckedValue (devices) + * Checked external drive backup eligibility status. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExternalDriveBackupEligibilityStatusChecked(Tag _tag, ExternalDriveBackupEligibilityStatusCheckedType externalDriveBackupEligibilityStatusCheckedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.externalDriveBackupEligibilityStatusCheckedValue = externalDriveBackupEligibilityStatusCheckedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param externalDriveBackupStatusChangedValue (devices) Modified external + * drive backup. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExternalDriveBackupStatusChanged(Tag _tag, ExternalDriveBackupStatusChangedType externalDriveBackupStatusChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.externalDriveBackupStatusChangedValue = externalDriveBackupStatusChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param accountCaptureChangeAvailabilityValue (domains) Granted/revoked + * option to enable account capture on team domains. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAccountCaptureChangeAvailability(Tag _tag, AccountCaptureChangeAvailabilityType accountCaptureChangeAvailabilityValue) { + EventType result = new EventType(); + result._tag = _tag; + result.accountCaptureChangeAvailabilityValue = accountCaptureChangeAvailabilityValue; + return result; + } + + /** + * The type of the event with description. + * + * @param accountCaptureMigrateAccountValue (domains) Account-captured user + * migrated account to team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAccountCaptureMigrateAccount(Tag _tag, AccountCaptureMigrateAccountType accountCaptureMigrateAccountValue) { + EventType result = new EventType(); + result._tag = _tag; + result.accountCaptureMigrateAccountValue = accountCaptureMigrateAccountValue; + return result; + } + + /** + * The type of the event with description. + * + * @param accountCaptureNotificationEmailsSentValue (domains) Sent account + * capture email to all unmanaged members. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAccountCaptureNotificationEmailsSent(Tag _tag, AccountCaptureNotificationEmailsSentType accountCaptureNotificationEmailsSentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.accountCaptureNotificationEmailsSentValue = accountCaptureNotificationEmailsSentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param accountCaptureRelinquishAccountValue (domains) Account-captured + * user changed account email to personal email. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAccountCaptureRelinquishAccount(Tag _tag, AccountCaptureRelinquishAccountType accountCaptureRelinquishAccountValue) { + EventType result = new EventType(); + result._tag = _tag; + result.accountCaptureRelinquishAccountValue = accountCaptureRelinquishAccountValue; + return result; + } + + /** + * The type of the event with description. + * + * @param disabledDomainInvitesValue (domains) Disabled domain invites + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDisabledDomainInvites(Tag _tag, DisabledDomainInvitesType disabledDomainInvitesValue) { + EventType result = new EventType(); + result._tag = _tag; + result.disabledDomainInvitesValue = disabledDomainInvitesValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainInvitesApproveRequestToJoinTeamValue (domains) Approved + * user's request to join team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainInvitesApproveRequestToJoinTeam(Tag _tag, DomainInvitesApproveRequestToJoinTeamType domainInvitesApproveRequestToJoinTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainInvitesApproveRequestToJoinTeamValue = domainInvitesApproveRequestToJoinTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainInvitesDeclineRequestToJoinTeamValue (domains) Declined + * user's request to join team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainInvitesDeclineRequestToJoinTeam(Tag _tag, DomainInvitesDeclineRequestToJoinTeamType domainInvitesDeclineRequestToJoinTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainInvitesDeclineRequestToJoinTeamValue = domainInvitesDeclineRequestToJoinTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainInvitesEmailExistingUsersValue (domains) Sent domain + * invites to existing domain accounts (deprecated, no longer logged). + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainInvitesEmailExistingUsers(Tag _tag, DomainInvitesEmailExistingUsersType domainInvitesEmailExistingUsersValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainInvitesEmailExistingUsersValue = domainInvitesEmailExistingUsersValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainInvitesRequestToJoinTeamValue (domains) Requested to join + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainInvitesRequestToJoinTeam(Tag _tag, DomainInvitesRequestToJoinTeamType domainInvitesRequestToJoinTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainInvitesRequestToJoinTeamValue = domainInvitesRequestToJoinTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainInvitesSetInviteNewUserPrefToNoValue (domains) Disabled + * "Automatically invite new users" (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainInvitesSetInviteNewUserPrefToNo(Tag _tag, DomainInvitesSetInviteNewUserPrefToNoType domainInvitesSetInviteNewUserPrefToNoValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainInvitesSetInviteNewUserPrefToNoValue = domainInvitesSetInviteNewUserPrefToNoValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainInvitesSetInviteNewUserPrefToYesValue (domains) Enabled + * "Automatically invite new users" (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainInvitesSetInviteNewUserPrefToYes(Tag _tag, DomainInvitesSetInviteNewUserPrefToYesType domainInvitesSetInviteNewUserPrefToYesValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainInvitesSetInviteNewUserPrefToYesValue = domainInvitesSetInviteNewUserPrefToYesValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainVerificationAddDomainFailValue (domains) Failed to verify + * team domain. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainVerificationAddDomainFail(Tag _tag, DomainVerificationAddDomainFailType domainVerificationAddDomainFailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainVerificationAddDomainFailValue = domainVerificationAddDomainFailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainVerificationAddDomainSuccessValue (domains) Verified team + * domain. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainVerificationAddDomainSuccess(Tag _tag, DomainVerificationAddDomainSuccessType domainVerificationAddDomainSuccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainVerificationAddDomainSuccessValue = domainVerificationAddDomainSuccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param domainVerificationRemoveDomainValue (domains) Removed domain from + * list of verified team domains. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDomainVerificationRemoveDomain(Tag _tag, DomainVerificationRemoveDomainType domainVerificationRemoveDomainValue) { + EventType result = new EventType(); + result._tag = _tag; + result.domainVerificationRemoveDomainValue = domainVerificationRemoveDomainValue; + return result; + } + + /** + * The type of the event with description. + * + * @param enabledDomainInvitesValue (domains) Enabled domain invites + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEnabledDomainInvites(Tag _tag, EnabledDomainInvitesType enabledDomainInvitesValue) { + EventType result = new EventType(); + result._tag = _tag; + result.enabledDomainInvitesValue = enabledDomainInvitesValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamEncryptionKeyCancelKeyDeletionValue (encryption) Canceled + * team encryption key deletion. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamEncryptionKeyCancelKeyDeletion(Tag _tag, TeamEncryptionKeyCancelKeyDeletionType teamEncryptionKeyCancelKeyDeletionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamEncryptionKeyCancelKeyDeletionValue = teamEncryptionKeyCancelKeyDeletionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamEncryptionKeyCreateKeyValue (encryption) Created team + * encryption key. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamEncryptionKeyCreateKey(Tag _tag, TeamEncryptionKeyCreateKeyType teamEncryptionKeyCreateKeyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamEncryptionKeyCreateKeyValue = teamEncryptionKeyCreateKeyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamEncryptionKeyDeleteKeyValue (encryption) Deleted team + * encryption key. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamEncryptionKeyDeleteKey(Tag _tag, TeamEncryptionKeyDeleteKeyType teamEncryptionKeyDeleteKeyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamEncryptionKeyDeleteKeyValue = teamEncryptionKeyDeleteKeyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamEncryptionKeyDisableKeyValue (encryption) Disabled team + * encryption key. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamEncryptionKeyDisableKey(Tag _tag, TeamEncryptionKeyDisableKeyType teamEncryptionKeyDisableKeyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamEncryptionKeyDisableKeyValue = teamEncryptionKeyDisableKeyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamEncryptionKeyEnableKeyValue (encryption) Enabled team + * encryption key. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamEncryptionKeyEnableKey(Tag _tag, TeamEncryptionKeyEnableKeyType teamEncryptionKeyEnableKeyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamEncryptionKeyEnableKeyValue = teamEncryptionKeyEnableKeyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamEncryptionKeyRotateKeyValue (encryption) Rotated team + * encryption key (deprecated, no longer logged). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamEncryptionKeyRotateKey(Tag _tag, TeamEncryptionKeyRotateKeyType teamEncryptionKeyRotateKeyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamEncryptionKeyRotateKeyValue = teamEncryptionKeyRotateKeyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamEncryptionKeyScheduleKeyDeletionValue (encryption) Scheduled + * encryption key deletion. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamEncryptionKeyScheduleKeyDeletion(Tag _tag, TeamEncryptionKeyScheduleKeyDeletionType teamEncryptionKeyScheduleKeyDeletionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamEncryptionKeyScheduleKeyDeletionValue = teamEncryptionKeyScheduleKeyDeletionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param applyNamingConventionValue (file_operations) Applied naming + * convention. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndApplyNamingConvention(Tag _tag, ApplyNamingConventionType applyNamingConventionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.applyNamingConventionValue = applyNamingConventionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param createFolderValue (file_operations) Created folders (deprecated, + * no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndCreateFolder(Tag _tag, CreateFolderType createFolderValue) { + EventType result = new EventType(); + result._tag = _tag; + result.createFolderValue = createFolderValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileAddValue (file_operations) Added files and/or folders. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileAdd(Tag _tag, FileAddType fileAddValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileAddValue = fileAddValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileAddFromAutomationValue (file_operations) Added files and/or + * folders from automation. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileAddFromAutomation(Tag _tag, FileAddFromAutomationType fileAddFromAutomationValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileAddFromAutomationValue = fileAddFromAutomationValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileCopyValue (file_operations) Copied files and/or folders. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileCopy(Tag _tag, FileCopyType fileCopyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileCopyValue = fileCopyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileDeleteValue (file_operations) Deleted files and/or folders. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileDelete(Tag _tag, FileDeleteType fileDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileDeleteValue = fileDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileDownloadValue (file_operations) Downloaded files and/or + * folders. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileDownload(Tag _tag, FileDownloadType fileDownloadValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileDownloadValue = fileDownloadValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileEditValue (file_operations) Edited files. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileEdit(Tag _tag, FileEditType fileEditValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileEditValue = fileEditValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileGetCopyReferenceValue (file_operations) Created copy + * reference to file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileGetCopyReference(Tag _tag, FileGetCopyReferenceType fileGetCopyReferenceValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileGetCopyReferenceValue = fileGetCopyReferenceValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileLockingLockStatusChangedValue (file_operations) + * Locked/unlocked editing for a file. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileLockingLockStatusChanged(Tag _tag, FileLockingLockStatusChangedType fileLockingLockStatusChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileLockingLockStatusChangedValue = fileLockingLockStatusChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileMoveValue (file_operations) Moved files and/or folders. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileMove(Tag _tag, FileMoveType fileMoveValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileMoveValue = fileMoveValue; + return result; + } + + /** + * The type of the event with description. + * + * @param filePermanentlyDeleteValue (file_operations) Permanently deleted + * files and/or folders. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFilePermanentlyDelete(Tag _tag, FilePermanentlyDeleteType filePermanentlyDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.filePermanentlyDeleteValue = filePermanentlyDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param filePreviewValue (file_operations) Previewed files and/or + * folders. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFilePreview(Tag _tag, FilePreviewType filePreviewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.filePreviewValue = filePreviewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRenameValue (file_operations) Renamed files and/or folders. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRename(Tag _tag, FileRenameType fileRenameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRenameValue = fileRenameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRestoreValue (file_operations) Restored deleted files and/or + * folders. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRestore(Tag _tag, FileRestoreType fileRestoreValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRestoreValue = fileRestoreValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRevertValue (file_operations) Reverted files to previous + * version. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRevert(Tag _tag, FileRevertType fileRevertValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRevertValue = fileRevertValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRollbackChangesValue (file_operations) Rolled back file + * actions. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRollbackChanges(Tag _tag, FileRollbackChangesType fileRollbackChangesValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRollbackChangesValue = fileRollbackChangesValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileSaveCopyReferenceValue (file_operations) Saved file/folder + * using copy reference. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileSaveCopyReference(Tag _tag, FileSaveCopyReferenceType fileSaveCopyReferenceValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileSaveCopyReferenceValue = fileSaveCopyReferenceValue; + return result; + } + + /** + * The type of the event with description. + * + * @param folderOverviewDescriptionChangedValue (file_operations) Updated + * folder overview. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFolderOverviewDescriptionChanged(Tag _tag, FolderOverviewDescriptionChangedType folderOverviewDescriptionChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.folderOverviewDescriptionChangedValue = folderOverviewDescriptionChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param folderOverviewItemPinnedValue (file_operations) Pinned item to + * folder overview. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFolderOverviewItemPinned(Tag _tag, FolderOverviewItemPinnedType folderOverviewItemPinnedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.folderOverviewItemPinnedValue = folderOverviewItemPinnedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param folderOverviewItemUnpinnedValue (file_operations) Unpinned item + * from folder overview. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFolderOverviewItemUnpinned(Tag _tag, FolderOverviewItemUnpinnedType folderOverviewItemUnpinnedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.folderOverviewItemUnpinnedValue = folderOverviewItemUnpinnedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param objectLabelAddedValue (file_operations) Added a label. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndObjectLabelAdded(Tag _tag, ObjectLabelAddedType objectLabelAddedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.objectLabelAddedValue = objectLabelAddedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param objectLabelRemovedValue (file_operations) Removed a label. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndObjectLabelRemoved(Tag _tag, ObjectLabelRemovedType objectLabelRemovedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.objectLabelRemovedValue = objectLabelRemovedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param objectLabelUpdatedValueValue (file_operations) Updated a label's + * value. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndObjectLabelUpdatedValue(Tag _tag, ObjectLabelUpdatedValueType objectLabelUpdatedValueValue) { + EventType result = new EventType(); + result._tag = _tag; + result.objectLabelUpdatedValueValue = objectLabelUpdatedValueValue; + return result; + } + + /** + * The type of the event with description. + * + * @param organizeFolderWithTidyValue (file_operations) Organized a folder + * with multi-file organize. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndOrganizeFolderWithTidy(Tag _tag, OrganizeFolderWithTidyType organizeFolderWithTidyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.organizeFolderWithTidyValue = organizeFolderWithTidyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param replayFileDeleteValue (file_operations) Deleted files in Replay. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndReplayFileDelete(Tag _tag, ReplayFileDeleteType replayFileDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.replayFileDeleteValue = replayFileDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param rewindFolderValue (file_operations) Rewound a folder. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndRewindFolder(Tag _tag, RewindFolderType rewindFolderValue) { + EventType result = new EventType(); + result._tag = _tag; + result.rewindFolderValue = rewindFolderValue; + return result; + } + + /** + * The type of the event with description. + * + * @param undoNamingConventionValue (file_operations) Reverted naming + * convention. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndUndoNamingConvention(Tag _tag, UndoNamingConventionType undoNamingConventionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.undoNamingConventionValue = undoNamingConventionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param undoOrganizeFolderWithTidyValue (file_operations) Removed + * multi-file organize. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndUndoOrganizeFolderWithTidy(Tag _tag, UndoOrganizeFolderWithTidyType undoOrganizeFolderWithTidyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.undoOrganizeFolderWithTidyValue = undoOrganizeFolderWithTidyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param userTagsAddedValue (file_operations) Tagged a file. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndUserTagsAdded(Tag _tag, UserTagsAddedType userTagsAddedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.userTagsAddedValue = userTagsAddedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param userTagsRemovedValue (file_operations) Removed tags. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndUserTagsRemoved(Tag _tag, UserTagsRemovedType userTagsRemovedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.userTagsRemovedValue = userTagsRemovedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emailIngestReceiveFileValue (file_requests) Received files via + * Email to Dropbox. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmailIngestReceiveFile(Tag _tag, EmailIngestReceiveFileType emailIngestReceiveFileValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emailIngestReceiveFileValue = emailIngestReceiveFileValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestChangeValue (file_requests) Changed file request. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestChange(Tag _tag, FileRequestChangeType fileRequestChangeValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestChangeValue = fileRequestChangeValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestCloseValue (file_requests) Closed file request. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestClose(Tag _tag, FileRequestCloseType fileRequestCloseValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestCloseValue = fileRequestCloseValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestCreateValue (file_requests) Created file request. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestCreate(Tag _tag, FileRequestCreateType fileRequestCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestCreateValue = fileRequestCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestDeleteValue (file_requests) Delete file request. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestDelete(Tag _tag, FileRequestDeleteType fileRequestDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestDeleteValue = fileRequestDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestReceiveFileValue (file_requests) Received files for + * file request. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestReceiveFile(Tag _tag, FileRequestReceiveFileType fileRequestReceiveFileValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestReceiveFileValue = fileRequestReceiveFileValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupAddExternalIdValue (groups) Added external ID for group. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupAddExternalId(Tag _tag, GroupAddExternalIdType groupAddExternalIdValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupAddExternalIdValue = groupAddExternalIdValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupAddMemberValue (groups) Added team members to group. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupAddMember(Tag _tag, GroupAddMemberType groupAddMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupAddMemberValue = groupAddMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupChangeExternalIdValue (groups) Changed external ID for + * group. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupChangeExternalId(Tag _tag, GroupChangeExternalIdType groupChangeExternalIdValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupChangeExternalIdValue = groupChangeExternalIdValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupChangeManagementTypeValue (groups) Changed group management + * type. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupChangeManagementType(Tag _tag, GroupChangeManagementTypeType groupChangeManagementTypeValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupChangeManagementTypeValue = groupChangeManagementTypeValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupChangeMemberRoleValue (groups) Changed manager permissions + * of group member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupChangeMemberRole(Tag _tag, GroupChangeMemberRoleType groupChangeMemberRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupChangeMemberRoleValue = groupChangeMemberRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupCreateValue (groups) Created group. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupCreate(Tag _tag, GroupCreateType groupCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupCreateValue = groupCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupDeleteValue (groups) Deleted group. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupDelete(Tag _tag, GroupDeleteType groupDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupDeleteValue = groupDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupDescriptionUpdatedValue (groups) Updated group (deprecated, + * no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupDescriptionUpdated(Tag _tag, GroupDescriptionUpdatedType groupDescriptionUpdatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupDescriptionUpdatedValue = groupDescriptionUpdatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupJoinPolicyUpdatedValue (groups) Updated group join policy + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupJoinPolicyUpdated(Tag _tag, GroupJoinPolicyUpdatedType groupJoinPolicyUpdatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupJoinPolicyUpdatedValue = groupJoinPolicyUpdatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupMovedValue (groups) Moved group (deprecated, no longer + * logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupMoved(Tag _tag, GroupMovedType groupMovedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupMovedValue = groupMovedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupRemoveExternalIdValue (groups) Removed external ID for + * group. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupRemoveExternalId(Tag _tag, GroupRemoveExternalIdType groupRemoveExternalIdValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupRemoveExternalIdValue = groupRemoveExternalIdValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupRemoveMemberValue (groups) Removed team members from group. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupRemoveMember(Tag _tag, GroupRemoveMemberType groupRemoveMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupRemoveMemberValue = groupRemoveMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupRenameValue (groups) Renamed group. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupRename(Tag _tag, GroupRenameType groupRenameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupRenameValue = groupRenameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param accountLockOrUnlockedValue (logins) Unlocked/locked account after + * failed sign in attempts. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAccountLockOrUnlocked(Tag _tag, AccountLockOrUnlockedType accountLockOrUnlockedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.accountLockOrUnlockedValue = accountLockOrUnlockedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emmErrorValue (logins) Failed to sign in via EMM (deprecated, + * replaced by 'Failed to sign in'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmmError(Tag _tag, EmmErrorType emmErrorValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emmErrorValue = emmErrorValue; + return result; + } + + /** + * The type of the event with description. + * + * @param guestAdminSignedInViaTrustedTeamsValue (logins) Started trusted + * team admin session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGuestAdminSignedInViaTrustedTeams(Tag _tag, GuestAdminSignedInViaTrustedTeamsType guestAdminSignedInViaTrustedTeamsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.guestAdminSignedInViaTrustedTeamsValue = guestAdminSignedInViaTrustedTeamsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param guestAdminSignedOutViaTrustedTeamsValue (logins) Ended trusted + * team admin session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGuestAdminSignedOutViaTrustedTeams(Tag _tag, GuestAdminSignedOutViaTrustedTeamsType guestAdminSignedOutViaTrustedTeamsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.guestAdminSignedOutViaTrustedTeamsValue = guestAdminSignedOutViaTrustedTeamsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param loginFailValue (logins) Failed to sign in. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLoginFail(Tag _tag, LoginFailType loginFailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.loginFailValue = loginFailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param loginSuccessValue (logins) Signed in. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLoginSuccess(Tag _tag, LoginSuccessType loginSuccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.loginSuccessValue = loginSuccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param logoutValue (logins) Signed out. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndLogout(Tag _tag, LogoutType logoutValue) { + EventType result = new EventType(); + result._tag = _tag; + result.logoutValue = logoutValue; + return result; + } + + /** + * The type of the event with description. + * + * @param resellerSupportSessionEndValue (logins) Ended reseller support + * session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndResellerSupportSessionEnd(Tag _tag, ResellerSupportSessionEndType resellerSupportSessionEndValue) { + EventType result = new EventType(); + result._tag = _tag; + result.resellerSupportSessionEndValue = resellerSupportSessionEndValue; + return result; + } + + /** + * The type of the event with description. + * + * @param resellerSupportSessionStartValue (logins) Started reseller + * support session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndResellerSupportSessionStart(Tag _tag, ResellerSupportSessionStartType resellerSupportSessionStartValue) { + EventType result = new EventType(); + result._tag = _tag; + result.resellerSupportSessionStartValue = resellerSupportSessionStartValue; + return result; + } + + /** + * The type of the event with description. + * + * @param signInAsSessionEndValue (logins) Ended admin sign-in-as session. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSignInAsSessionEnd(Tag _tag, SignInAsSessionEndType signInAsSessionEndValue) { + EventType result = new EventType(); + result._tag = _tag; + result.signInAsSessionEndValue = signInAsSessionEndValue; + return result; + } + + /** + * The type of the event with description. + * + * @param signInAsSessionStartValue (logins) Started admin sign-in-as + * session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSignInAsSessionStart(Tag _tag, SignInAsSessionStartType signInAsSessionStartValue) { + EventType result = new EventType(); + result._tag = _tag; + result.signInAsSessionStartValue = signInAsSessionStartValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoErrorValue (logins) Failed to sign in via SSO (deprecated, + * replaced by 'Failed to sign in'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoError(Tag _tag, SsoErrorType ssoErrorValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoErrorValue = ssoErrorValue; + return result; + } + + /** + * The type of the event with description. + * + * @param backupAdminInvitationSentValue (members) Invited members to + * activate Backup. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBackupAdminInvitationSent(Tag _tag, BackupAdminInvitationSentType backupAdminInvitationSentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.backupAdminInvitationSentValue = backupAdminInvitationSentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param backupInvitationOpenedValue (members) Opened Backup invite. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBackupInvitationOpened(Tag _tag, BackupInvitationOpenedType backupInvitationOpenedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.backupInvitationOpenedValue = backupInvitationOpenedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param createTeamInviteLinkValue (members) Created team invite link. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndCreateTeamInviteLink(Tag _tag, CreateTeamInviteLinkType createTeamInviteLinkValue) { + EventType result = new EventType(); + result._tag = _tag; + result.createTeamInviteLinkValue = createTeamInviteLinkValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deleteTeamInviteLinkValue (members) Deleted team invite link. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeleteTeamInviteLink(Tag _tag, DeleteTeamInviteLinkType deleteTeamInviteLinkValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deleteTeamInviteLinkValue = deleteTeamInviteLinkValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberAddExternalIdValue (members) Added an external ID for team + * member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberAddExternalId(Tag _tag, MemberAddExternalIdType memberAddExternalIdValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberAddExternalIdValue = memberAddExternalIdValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberAddNameValue (members) Added team member name. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberAddName(Tag _tag, MemberAddNameType memberAddNameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberAddNameValue = memberAddNameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberChangeAdminRoleValue (members) Changed team member admin + * role. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberChangeAdminRole(Tag _tag, MemberChangeAdminRoleType memberChangeAdminRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberChangeAdminRoleValue = memberChangeAdminRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberChangeEmailValue (members) Changed team member email. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberChangeEmail(Tag _tag, MemberChangeEmailType memberChangeEmailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberChangeEmailValue = memberChangeEmailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberChangeExternalIdValue (members) Changed the external ID for + * team member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberChangeExternalId(Tag _tag, MemberChangeExternalIdType memberChangeExternalIdValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberChangeExternalIdValue = memberChangeExternalIdValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberChangeMembershipTypeValue (members) Changed membership type + * (limited/full) of member (deprecated, no longer logged). Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberChangeMembershipType(Tag _tag, MemberChangeMembershipTypeType memberChangeMembershipTypeValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberChangeMembershipTypeValue = memberChangeMembershipTypeValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberChangeNameValue (members) Changed team member name. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberChangeName(Tag _tag, MemberChangeNameType memberChangeNameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberChangeNameValue = memberChangeNameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberChangeResellerRoleValue (members) Changed team member + * reseller role. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberChangeResellerRole(Tag _tag, MemberChangeResellerRoleType memberChangeResellerRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberChangeResellerRoleValue = memberChangeResellerRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberChangeStatusValue (members) Changed member status (invited, + * joined, suspended, etc.). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberChangeStatus(Tag _tag, MemberChangeStatusType memberChangeStatusValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberChangeStatusValue = memberChangeStatusValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberDeleteManualContactsValue (members) Cleared manually added + * contacts. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberDeleteManualContacts(Tag _tag, MemberDeleteManualContactsType memberDeleteManualContactsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberDeleteManualContactsValue = memberDeleteManualContactsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberDeleteProfilePhotoValue (members) Deleted team member + * profile photo. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberDeleteProfilePhoto(Tag _tag, MemberDeleteProfilePhotoType memberDeleteProfilePhotoValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberDeleteProfilePhotoValue = memberDeleteProfilePhotoValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberPermanentlyDeleteAccountContentsValue (members) Permanently + * deleted contents of deleted team member account. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberPermanentlyDeleteAccountContents(Tag _tag, MemberPermanentlyDeleteAccountContentsType memberPermanentlyDeleteAccountContentsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberPermanentlyDeleteAccountContentsValue = memberPermanentlyDeleteAccountContentsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberRemoveExternalIdValue (members) Removed the external ID for + * team member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberRemoveExternalId(Tag _tag, MemberRemoveExternalIdType memberRemoveExternalIdValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberRemoveExternalIdValue = memberRemoveExternalIdValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSetProfilePhotoValue (members) Set team member profile + * photo. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSetProfilePhoto(Tag _tag, MemberSetProfilePhotoType memberSetProfilePhotoValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSetProfilePhotoValue = memberSetProfilePhotoValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsAddCustomQuotaValue (members) Set custom member + * space limit. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsAddCustomQuota(Tag _tag, MemberSpaceLimitsAddCustomQuotaType memberSpaceLimitsAddCustomQuotaValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsAddCustomQuotaValue = memberSpaceLimitsAddCustomQuotaValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsChangeCustomQuotaValue (members) Changed custom + * member space limit. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsChangeCustomQuota(Tag _tag, MemberSpaceLimitsChangeCustomQuotaType memberSpaceLimitsChangeCustomQuotaValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsChangeCustomQuotaValue = memberSpaceLimitsChangeCustomQuotaValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsChangeStatusValue (members) Changed space limit + * status. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsChangeStatus(Tag _tag, MemberSpaceLimitsChangeStatusType memberSpaceLimitsChangeStatusValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsChangeStatusValue = memberSpaceLimitsChangeStatusValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsRemoveCustomQuotaValue (members) Removed custom + * member space limit. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsRemoveCustomQuota(Tag _tag, MemberSpaceLimitsRemoveCustomQuotaType memberSpaceLimitsRemoveCustomQuotaValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsRemoveCustomQuotaValue = memberSpaceLimitsRemoveCustomQuotaValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSuggestValue (members) Suggested person to add to team. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSuggest(Tag _tag, MemberSuggestType memberSuggestValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSuggestValue = memberSuggestValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberTransferAccountContentsValue (members) Transferred contents + * of deleted member account to another member. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberTransferAccountContents(Tag _tag, MemberTransferAccountContentsType memberTransferAccountContentsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberTransferAccountContentsValue = memberTransferAccountContentsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param pendingSecondaryEmailAddedValue (members) Added pending secondary + * email. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPendingSecondaryEmailAdded(Tag _tag, PendingSecondaryEmailAddedType pendingSecondaryEmailAddedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.pendingSecondaryEmailAddedValue = pendingSecondaryEmailAddedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param secondaryEmailDeletedValue (members) Deleted secondary email. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSecondaryEmailDeleted(Tag _tag, SecondaryEmailDeletedType secondaryEmailDeletedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.secondaryEmailDeletedValue = secondaryEmailDeletedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param secondaryEmailVerifiedValue (members) Verified secondary email. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSecondaryEmailVerified(Tag _tag, SecondaryEmailVerifiedType secondaryEmailVerifiedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.secondaryEmailVerifiedValue = secondaryEmailVerifiedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param secondaryMailsPolicyChangedValue (members) Secondary mails policy + * changed. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSecondaryMailsPolicyChanged(Tag _tag, SecondaryMailsPolicyChangedType secondaryMailsPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.secondaryMailsPolicyChangedValue = secondaryMailsPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderAddPageValue (paper) Added Binder page (deprecated, + * replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderAddPage(Tag _tag, BinderAddPageType binderAddPageValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderAddPageValue = binderAddPageValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderAddSectionValue (paper) Added Binder section (deprecated, + * replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderAddSection(Tag _tag, BinderAddSectionType binderAddSectionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderAddSectionValue = binderAddSectionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderRemovePageValue (paper) Removed Binder page (deprecated, + * replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderRemovePage(Tag _tag, BinderRemovePageType binderRemovePageValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderRemovePageValue = binderRemovePageValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderRemoveSectionValue (paper) Removed Binder section + * (deprecated, replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderRemoveSection(Tag _tag, BinderRemoveSectionType binderRemoveSectionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderRemoveSectionValue = binderRemoveSectionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderRenamePageValue (paper) Renamed Binder page (deprecated, + * replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderRenamePage(Tag _tag, BinderRenamePageType binderRenamePageValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderRenamePageValue = binderRenamePageValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderRenameSectionValue (paper) Renamed Binder section + * (deprecated, replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderRenameSection(Tag _tag, BinderRenameSectionType binderRenameSectionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderRenameSectionValue = binderRenameSectionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderReorderPageValue (paper) Reordered Binder page (deprecated, + * replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderReorderPage(Tag _tag, BinderReorderPageType binderReorderPageValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderReorderPageValue = binderReorderPageValue; + return result; + } + + /** + * The type of the event with description. + * + * @param binderReorderSectionValue (paper) Reordered Binder section + * (deprecated, replaced by 'Edited files'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndBinderReorderSection(Tag _tag, BinderReorderSectionType binderReorderSectionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.binderReorderSectionValue = binderReorderSectionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentAddMemberValue (paper) Added users and/or groups to + * Paper doc/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentAddMember(Tag _tag, PaperContentAddMemberType paperContentAddMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentAddMemberValue = paperContentAddMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentAddToFolderValue (paper) Added Paper doc/folder to + * folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentAddToFolder(Tag _tag, PaperContentAddToFolderType paperContentAddToFolderValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentAddToFolderValue = paperContentAddToFolderValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentArchiveValue (paper) Archived Paper doc/folder. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentArchive(Tag _tag, PaperContentArchiveType paperContentArchiveValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentArchiveValue = paperContentArchiveValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentCreateValue (paper) Created Paper doc/folder. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentCreate(Tag _tag, PaperContentCreateType paperContentCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentCreateValue = paperContentCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentPermanentlyDeleteValue (paper) Permanently deleted + * Paper doc/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentPermanentlyDelete(Tag _tag, PaperContentPermanentlyDeleteType paperContentPermanentlyDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentPermanentlyDeleteValue = paperContentPermanentlyDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentRemoveFromFolderValue (paper) Removed Paper + * doc/folder from folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentRemoveFromFolder(Tag _tag, PaperContentRemoveFromFolderType paperContentRemoveFromFolderValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentRemoveFromFolderValue = paperContentRemoveFromFolderValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentRemoveMemberValue (paper) Removed users and/or groups + * from Paper doc/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentRemoveMember(Tag _tag, PaperContentRemoveMemberType paperContentRemoveMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentRemoveMemberValue = paperContentRemoveMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentRenameValue (paper) Renamed Paper doc/folder. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentRename(Tag _tag, PaperContentRenameType paperContentRenameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentRenameValue = paperContentRenameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperContentRestoreValue (paper) Restored archived Paper + * doc/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperContentRestore(Tag _tag, PaperContentRestoreType paperContentRestoreValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperContentRestoreValue = paperContentRestoreValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocAddCommentValue (paper) Added Paper doc comment. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocAddComment(Tag _tag, PaperDocAddCommentType paperDocAddCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocAddCommentValue = paperDocAddCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocChangeMemberRoleValue (paper) Changed member permissions + * for Paper doc. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocChangeMemberRole(Tag _tag, PaperDocChangeMemberRoleType paperDocChangeMemberRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocChangeMemberRoleValue = paperDocChangeMemberRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocChangeSharingPolicyValue (paper) Changed sharing setting + * for Paper doc. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocChangeSharingPolicy(Tag _tag, PaperDocChangeSharingPolicyType paperDocChangeSharingPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocChangeSharingPolicyValue = paperDocChangeSharingPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocChangeSubscriptionValue (paper) Followed/unfollowed Paper + * doc. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocChangeSubscription(Tag _tag, PaperDocChangeSubscriptionType paperDocChangeSubscriptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocChangeSubscriptionValue = paperDocChangeSubscriptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocDeletedValue (paper) Archived Paper doc (deprecated, no + * longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocDeleted(Tag _tag, PaperDocDeletedType paperDocDeletedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocDeletedValue = paperDocDeletedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocDeleteCommentValue (paper) Deleted Paper doc comment. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocDeleteComment(Tag _tag, PaperDocDeleteCommentType paperDocDeleteCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocDeleteCommentValue = paperDocDeleteCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocDownloadValue (paper) Downloaded Paper doc in specific + * format. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocDownload(Tag _tag, PaperDocDownloadType paperDocDownloadValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocDownloadValue = paperDocDownloadValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocEditValue (paper) Edited Paper doc. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocEdit(Tag _tag, PaperDocEditType paperDocEditValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocEditValue = paperDocEditValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocEditCommentValue (paper) Edited Paper doc comment. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocEditComment(Tag _tag, PaperDocEditCommentType paperDocEditCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocEditCommentValue = paperDocEditCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocFollowedValue (paper) Followed Paper doc (deprecated, + * replaced by 'Followed/unfollowed Paper doc'). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocFollowed(Tag _tag, PaperDocFollowedType paperDocFollowedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocFollowedValue = paperDocFollowedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocMentionValue (paper) Mentioned user in Paper doc. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocMention(Tag _tag, PaperDocMentionType paperDocMentionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocMentionValue = paperDocMentionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocOwnershipChangedValue (paper) Transferred ownership of + * Paper doc. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocOwnershipChanged(Tag _tag, PaperDocOwnershipChangedType paperDocOwnershipChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocOwnershipChangedValue = paperDocOwnershipChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocRequestAccessValue (paper) Requested access to Paper doc. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocRequestAccess(Tag _tag, PaperDocRequestAccessType paperDocRequestAccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocRequestAccessValue = paperDocRequestAccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocResolveCommentValue (paper) Resolved Paper doc comment. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocResolveComment(Tag _tag, PaperDocResolveCommentType paperDocResolveCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocResolveCommentValue = paperDocResolveCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocRevertValue (paper) Restored Paper doc to previous + * version. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocRevert(Tag _tag, PaperDocRevertType paperDocRevertValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocRevertValue = paperDocRevertValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocSlackShareValue (paper) Shared Paper doc via Slack. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocSlackShare(Tag _tag, PaperDocSlackShareType paperDocSlackShareValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocSlackShareValue = paperDocSlackShareValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocTeamInviteValue (paper) Shared Paper doc with users + * and/or groups (deprecated, no longer logged). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocTeamInvite(Tag _tag, PaperDocTeamInviteType paperDocTeamInviteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocTeamInviteValue = paperDocTeamInviteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocTrashedValue (paper) Deleted Paper doc. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocTrashed(Tag _tag, PaperDocTrashedType paperDocTrashedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocTrashedValue = paperDocTrashedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocUnresolveCommentValue (paper) Unresolved Paper doc + * comment. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocUnresolveComment(Tag _tag, PaperDocUnresolveCommentType paperDocUnresolveCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocUnresolveCommentValue = paperDocUnresolveCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocUntrashedValue (paper) Restored Paper doc. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocUntrashed(Tag _tag, PaperDocUntrashedType paperDocUntrashedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocUntrashedValue = paperDocUntrashedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDocViewValue (paper) Viewed Paper doc. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDocView(Tag _tag, PaperDocViewType paperDocViewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDocViewValue = paperDocViewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperExternalViewAllowValue (paper) Changed Paper external + * sharing setting to anyone (deprecated, no longer logged). Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperExternalViewAllow(Tag _tag, PaperExternalViewAllowType paperExternalViewAllowValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperExternalViewAllowValue = paperExternalViewAllowValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperExternalViewDefaultTeamValue (paper) Changed Paper external + * sharing setting to default team (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperExternalViewDefaultTeam(Tag _tag, PaperExternalViewDefaultTeamType paperExternalViewDefaultTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperExternalViewDefaultTeamValue = paperExternalViewDefaultTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperExternalViewForbidValue (paper) Changed Paper external + * sharing setting to team-only (deprecated, no longer logged). Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperExternalViewForbid(Tag _tag, PaperExternalViewForbidType paperExternalViewForbidValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperExternalViewForbidValue = paperExternalViewForbidValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperFolderChangeSubscriptionValue (paper) Followed/unfollowed + * Paper folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperFolderChangeSubscription(Tag _tag, PaperFolderChangeSubscriptionType paperFolderChangeSubscriptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperFolderChangeSubscriptionValue = paperFolderChangeSubscriptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperFolderDeletedValue (paper) Archived Paper folder + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperFolderDeleted(Tag _tag, PaperFolderDeletedType paperFolderDeletedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperFolderDeletedValue = paperFolderDeletedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperFolderFollowedValue (paper) Followed Paper folder + * (deprecated, replaced by 'Followed/unfollowed Paper folder'). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperFolderFollowed(Tag _tag, PaperFolderFollowedType paperFolderFollowedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperFolderFollowedValue = paperFolderFollowedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperFolderTeamInviteValue (paper) Shared Paper folder with users + * and/or groups (deprecated, no longer logged). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperFolderTeamInvite(Tag _tag, PaperFolderTeamInviteType paperFolderTeamInviteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperFolderTeamInviteValue = paperFolderTeamInviteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperPublishedLinkChangePermissionValue (paper) Changed + * permissions for published doc. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperPublishedLinkChangePermission(Tag _tag, PaperPublishedLinkChangePermissionType paperPublishedLinkChangePermissionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperPublishedLinkChangePermissionValue = paperPublishedLinkChangePermissionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperPublishedLinkCreateValue (paper) Published doc. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperPublishedLinkCreate(Tag _tag, PaperPublishedLinkCreateType paperPublishedLinkCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperPublishedLinkCreateValue = paperPublishedLinkCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperPublishedLinkDisabledValue (paper) Unpublished doc. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperPublishedLinkDisabled(Tag _tag, PaperPublishedLinkDisabledType paperPublishedLinkDisabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperPublishedLinkDisabledValue = paperPublishedLinkDisabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperPublishedLinkViewValue (paper) Viewed published doc. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperPublishedLinkView(Tag _tag, PaperPublishedLinkViewType paperPublishedLinkViewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperPublishedLinkViewValue = paperPublishedLinkViewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param passwordChangeValue (passwords) Changed password. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPasswordChange(Tag _tag, PasswordChangeType passwordChangeValue) { + EventType result = new EventType(); + result._tag = _tag; + result.passwordChangeValue = passwordChangeValue; + return result; + } + + /** + * The type of the event with description. + * + * @param passwordResetValue (passwords) Reset password. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPasswordReset(Tag _tag, PasswordResetType passwordResetValue) { + EventType result = new EventType(); + result._tag = _tag; + result.passwordResetValue = passwordResetValue; + return result; + } + + /** + * The type of the event with description. + * + * @param passwordResetAllValue (passwords) Reset all team member + * passwords. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPasswordResetAll(Tag _tag, PasswordResetAllType passwordResetAllValue) { + EventType result = new EventType(); + result._tag = _tag; + result.passwordResetAllValue = passwordResetAllValue; + return result; + } + + /** + * The type of the event with description. + * + * @param classificationCreateReportValue (reports) Created Classification + * report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndClassificationCreateReport(Tag _tag, ClassificationCreateReportType classificationCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.classificationCreateReportValue = classificationCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param classificationCreateReportFailValue (reports) Couldn't create + * Classification report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndClassificationCreateReportFail(Tag _tag, ClassificationCreateReportFailType classificationCreateReportFailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.classificationCreateReportFailValue = classificationCreateReportFailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emmCreateExceptionsReportValue (reports) Created EMM-excluded + * users report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmmCreateExceptionsReport(Tag _tag, EmmCreateExceptionsReportType emmCreateExceptionsReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emmCreateExceptionsReportValue = emmCreateExceptionsReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emmCreateUsageReportValue (reports) Created EMM mobile app usage + * report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmmCreateUsageReport(Tag _tag, EmmCreateUsageReportType emmCreateUsageReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emmCreateUsageReportValue = emmCreateUsageReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param exportMembersReportValue (reports) Created member data report. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExportMembersReport(Tag _tag, ExportMembersReportType exportMembersReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.exportMembersReportValue = exportMembersReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param exportMembersReportFailValue (reports) Failed to create members + * data report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExportMembersReportFail(Tag _tag, ExportMembersReportFailType exportMembersReportFailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.exportMembersReportFailValue = exportMembersReportFailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param externalSharingCreateReportValue (reports) Created External + * sharing report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExternalSharingCreateReport(Tag _tag, ExternalSharingCreateReportType externalSharingCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.externalSharingCreateReportValue = externalSharingCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param externalSharingReportFailedValue (reports) Couldn't create + * External sharing report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExternalSharingReportFailed(Tag _tag, ExternalSharingReportFailedType externalSharingReportFailedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.externalSharingReportFailedValue = externalSharingReportFailedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noExpirationLinkGenCreateReportValue (reports) Report created: + * Links created with no expiration. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoExpirationLinkGenCreateReport(Tag _tag, NoExpirationLinkGenCreateReportType noExpirationLinkGenCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noExpirationLinkGenCreateReportValue = noExpirationLinkGenCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noExpirationLinkGenReportFailedValue (reports) Couldn't create + * report: Links created with no expiration. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoExpirationLinkGenReportFailed(Tag _tag, NoExpirationLinkGenReportFailedType noExpirationLinkGenReportFailedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noExpirationLinkGenReportFailedValue = noExpirationLinkGenReportFailedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noPasswordLinkGenCreateReportValue (reports) Report created: + * Links created without passwords. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoPasswordLinkGenCreateReport(Tag _tag, NoPasswordLinkGenCreateReportType noPasswordLinkGenCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noPasswordLinkGenCreateReportValue = noPasswordLinkGenCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noPasswordLinkGenReportFailedValue (reports) Couldn't create + * report: Links created without passwords. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoPasswordLinkGenReportFailed(Tag _tag, NoPasswordLinkGenReportFailedType noPasswordLinkGenReportFailedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noPasswordLinkGenReportFailedValue = noPasswordLinkGenReportFailedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noPasswordLinkViewCreateReportValue (reports) Report created: + * Views of links without passwords. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoPasswordLinkViewCreateReport(Tag _tag, NoPasswordLinkViewCreateReportType noPasswordLinkViewCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noPasswordLinkViewCreateReportValue = noPasswordLinkViewCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noPasswordLinkViewReportFailedValue (reports) Couldn't create + * report: Views of links without passwords. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoPasswordLinkViewReportFailed(Tag _tag, NoPasswordLinkViewReportFailedType noPasswordLinkViewReportFailedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noPasswordLinkViewReportFailedValue = noPasswordLinkViewReportFailedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param outdatedLinkViewCreateReportValue (reports) Report created: Views + * of old links. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndOutdatedLinkViewCreateReport(Tag _tag, OutdatedLinkViewCreateReportType outdatedLinkViewCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.outdatedLinkViewCreateReportValue = outdatedLinkViewCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param outdatedLinkViewReportFailedValue (reports) Couldn't create + * report: Views of old links. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndOutdatedLinkViewReportFailed(Tag _tag, OutdatedLinkViewReportFailedType outdatedLinkViewReportFailedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.outdatedLinkViewReportFailedValue = outdatedLinkViewReportFailedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperAdminExportStartValue (reports) Exported all team Paper + * docs. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperAdminExportStart(Tag _tag, PaperAdminExportStartType paperAdminExportStartValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperAdminExportStartValue = paperAdminExportStartValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ransomwareAlertCreateReportValue (reports) Created ransomware + * report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndRansomwareAlertCreateReport(Tag _tag, RansomwareAlertCreateReportType ransomwareAlertCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ransomwareAlertCreateReportValue = ransomwareAlertCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ransomwareAlertCreateReportFailedValue (reports) Couldn't + * generate ransomware report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndRansomwareAlertCreateReportFailed(Tag _tag, RansomwareAlertCreateReportFailedType ransomwareAlertCreateReportFailedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ransomwareAlertCreateReportFailedValue = ransomwareAlertCreateReportFailedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param smartSyncCreateAdminPrivilegeReportValue (reports) Created Smart + * Sync non-admin devices report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSmartSyncCreateAdminPrivilegeReport(Tag _tag, SmartSyncCreateAdminPrivilegeReportType smartSyncCreateAdminPrivilegeReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.smartSyncCreateAdminPrivilegeReportValue = smartSyncCreateAdminPrivilegeReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamActivityCreateReportValue (reports) Created team activity + * report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamActivityCreateReport(Tag _tag, TeamActivityCreateReportType teamActivityCreateReportValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamActivityCreateReportValue = teamActivityCreateReportValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamActivityCreateReportFailValue (reports) Couldn't generate + * team activity report. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamActivityCreateReportFail(Tag _tag, TeamActivityCreateReportFailType teamActivityCreateReportFailValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamActivityCreateReportFailValue = teamActivityCreateReportFailValue; + return result; + } + + /** + * The type of the event with description. + * + * @param collectionShareValue (sharing) Shared album. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndCollectionShare(Tag _tag, CollectionShareType collectionShareValue) { + EventType result = new EventType(); + result._tag = _tag; + result.collectionShareValue = collectionShareValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileTransfersFileAddValue (sharing) Transfer files added. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileTransfersFileAdd(Tag _tag, FileTransfersFileAddType fileTransfersFileAddValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileTransfersFileAddValue = fileTransfersFileAddValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileTransfersTransferDeleteValue (sharing) Deleted transfer. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileTransfersTransferDelete(Tag _tag, FileTransfersTransferDeleteType fileTransfersTransferDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileTransfersTransferDeleteValue = fileTransfersTransferDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileTransfersTransferDownloadValue (sharing) Transfer downloaded. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileTransfersTransferDownload(Tag _tag, FileTransfersTransferDownloadType fileTransfersTransferDownloadValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileTransfersTransferDownloadValue = fileTransfersTransferDownloadValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileTransfersTransferSendValue (sharing) Sent transfer. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileTransfersTransferSend(Tag _tag, FileTransfersTransferSendType fileTransfersTransferSendValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileTransfersTransferSendValue = fileTransfersTransferSendValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileTransfersTransferViewValue (sharing) Viewed transfer. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileTransfersTransferView(Tag _tag, FileTransfersTransferViewType fileTransfersTransferViewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileTransfersTransferViewValue = fileTransfersTransferViewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noteAclInviteOnlyValue (sharing) Changed Paper doc to invite-only + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoteAclInviteOnly(Tag _tag, NoteAclInviteOnlyType noteAclInviteOnlyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noteAclInviteOnlyValue = noteAclInviteOnlyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noteAclLinkValue (sharing) Changed Paper doc to link-accessible + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoteAclLink(Tag _tag, NoteAclLinkType noteAclLinkValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noteAclLinkValue = noteAclLinkValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noteAclTeamLinkValue (sharing) Changed Paper doc to + * link-accessible for team (deprecated, no longer logged). Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoteAclTeamLink(Tag _tag, NoteAclTeamLinkType noteAclTeamLinkValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noteAclTeamLinkValue = noteAclTeamLinkValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noteSharedValue (sharing) Shared Paper doc (deprecated, no longer + * logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoteShared(Tag _tag, NoteSharedType noteSharedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noteSharedValue = noteSharedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param noteShareReceiveValue (sharing) Shared received Paper doc + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNoteShareReceive(Tag _tag, NoteShareReceiveType noteShareReceiveValue) { + EventType result = new EventType(); + result._tag = _tag; + result.noteShareReceiveValue = noteShareReceiveValue; + return result; + } + + /** + * The type of the event with description. + * + * @param openNoteSharedValue (sharing) Opened shared Paper doc + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndOpenNoteShared(Tag _tag, OpenNoteSharedType openNoteSharedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.openNoteSharedValue = openNoteSharedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param replayFileSharedLinkCreatedValue (sharing) Created shared link in + * Replay. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndReplayFileSharedLinkCreated(Tag _tag, ReplayFileSharedLinkCreatedType replayFileSharedLinkCreatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.replayFileSharedLinkCreatedValue = replayFileSharedLinkCreatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param replayFileSharedLinkModifiedValue (sharing) Modified shared link + * in Replay. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndReplayFileSharedLinkModified(Tag _tag, ReplayFileSharedLinkModifiedType replayFileSharedLinkModifiedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.replayFileSharedLinkModifiedValue = replayFileSharedLinkModifiedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param replayProjectTeamAddValue (sharing) Added member to Replay + * Project. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndReplayProjectTeamAdd(Tag _tag, ReplayProjectTeamAddType replayProjectTeamAddValue) { + EventType result = new EventType(); + result._tag = _tag; + result.replayProjectTeamAddValue = replayProjectTeamAddValue; + return result; + } + + /** + * The type of the event with description. + * + * @param replayProjectTeamDeleteValue (sharing) Removed member from Replay + * Project. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndReplayProjectTeamDelete(Tag _tag, ReplayProjectTeamDeleteType replayProjectTeamDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.replayProjectTeamDeleteValue = replayProjectTeamDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfAddGroupValue (sharing) Added team to shared folder + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfAddGroup(Tag _tag, SfAddGroupType sfAddGroupValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfAddGroupValue = sfAddGroupValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfAllowNonMembersToViewSharedLinksValue (sharing) Allowed + * non-collaborators to view links to files in shared folder + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfAllowNonMembersToViewSharedLinks(Tag _tag, SfAllowNonMembersToViewSharedLinksType sfAllowNonMembersToViewSharedLinksValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfAllowNonMembersToViewSharedLinksValue = sfAllowNonMembersToViewSharedLinksValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfExternalInviteWarnValue (sharing) Set team members to see + * warning before sharing folders outside team (deprecated, no longer + * logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfExternalInviteWarn(Tag _tag, SfExternalInviteWarnType sfExternalInviteWarnValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfExternalInviteWarnValue = sfExternalInviteWarnValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfFbInviteValue (sharing) Invited Facebook users to shared folder + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfFbInvite(Tag _tag, SfFbInviteType sfFbInviteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfFbInviteValue = sfFbInviteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfFbInviteChangeRoleValue (sharing) Changed Facebook user's role + * in shared folder (deprecated, no longer logged). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfFbInviteChangeRole(Tag _tag, SfFbInviteChangeRoleType sfFbInviteChangeRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfFbInviteChangeRoleValue = sfFbInviteChangeRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfFbUninviteValue (sharing) Uninvited Facebook user from shared + * folder (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfFbUninvite(Tag _tag, SfFbUninviteType sfFbUninviteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfFbUninviteValue = sfFbUninviteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfInviteGroupValue (sharing) Invited group to shared folder + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfInviteGroup(Tag _tag, SfInviteGroupType sfInviteGroupValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfInviteGroupValue = sfInviteGroupValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfTeamGrantAccessValue (sharing) Granted access to shared folder + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfTeamGrantAccess(Tag _tag, SfTeamGrantAccessType sfTeamGrantAccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfTeamGrantAccessValue = sfTeamGrantAccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfTeamInviteValue (sharing) Invited team members to shared folder + * (deprecated, replaced by 'Invited user to Dropbox and added them to + * shared file/folder'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfTeamInvite(Tag _tag, SfTeamInviteType sfTeamInviteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfTeamInviteValue = sfTeamInviteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfTeamInviteChangeRoleValue (sharing) Changed team member's role + * in shared folder (deprecated, no longer logged). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfTeamInviteChangeRole(Tag _tag, SfTeamInviteChangeRoleType sfTeamInviteChangeRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfTeamInviteChangeRoleValue = sfTeamInviteChangeRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfTeamJoinValue (sharing) Joined team member's shared folder + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfTeamJoin(Tag _tag, SfTeamJoinType sfTeamJoinValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfTeamJoinValue = sfTeamJoinValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfTeamJoinFromOobLinkValue (sharing) Joined team member's shared + * folder from link (deprecated, no longer logged). Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfTeamJoinFromOobLink(Tag _tag, SfTeamJoinFromOobLinkType sfTeamJoinFromOobLinkValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfTeamJoinFromOobLinkValue = sfTeamJoinFromOobLinkValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sfTeamUninviteValue (sharing) Unshared folder with team member + * (deprecated, replaced by 'Removed invitee from shared file/folder + * before invite was accepted'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSfTeamUninvite(Tag _tag, SfTeamUninviteType sfTeamUninviteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sfTeamUninviteValue = sfTeamUninviteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentAddInviteesValue (sharing) Invited user to Dropbox + * and added them to shared file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentAddInvitees(Tag _tag, SharedContentAddInviteesType sharedContentAddInviteesValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentAddInviteesValue = sharedContentAddInviteesValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentAddLinkExpiryValue (sharing) Added expiration date + * to link for shared file/folder (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentAddLinkExpiry(Tag _tag, SharedContentAddLinkExpiryType sharedContentAddLinkExpiryValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentAddLinkExpiryValue = sharedContentAddLinkExpiryValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentAddLinkPasswordValue (sharing) Added password to + * link for shared file/folder (deprecated, no longer logged). Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentAddLinkPassword(Tag _tag, SharedContentAddLinkPasswordType sharedContentAddLinkPasswordValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentAddLinkPasswordValue = sharedContentAddLinkPasswordValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentAddMemberValue (sharing) Added users and/or groups + * to shared file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentAddMember(Tag _tag, SharedContentAddMemberType sharedContentAddMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentAddMemberValue = sharedContentAddMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentChangeDownloadsPolicyValue (sharing) Changed whether + * members can download shared file/folder (deprecated, no longer + * logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentChangeDownloadsPolicy(Tag _tag, SharedContentChangeDownloadsPolicyType sharedContentChangeDownloadsPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentChangeDownloadsPolicyValue = sharedContentChangeDownloadsPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentChangeInviteeRoleValue (sharing) Changed access type + * of invitee to shared file/folder before invite was accepted. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentChangeInviteeRole(Tag _tag, SharedContentChangeInviteeRoleType sharedContentChangeInviteeRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentChangeInviteeRoleValue = sharedContentChangeInviteeRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentChangeLinkAudienceValue (sharing) Changed link + * audience of shared file/folder (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentChangeLinkAudience(Tag _tag, SharedContentChangeLinkAudienceType sharedContentChangeLinkAudienceValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentChangeLinkAudienceValue = sharedContentChangeLinkAudienceValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentChangeLinkExpiryValue (sharing) Changed link + * expiration of shared file/folder (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentChangeLinkExpiry(Tag _tag, SharedContentChangeLinkExpiryType sharedContentChangeLinkExpiryValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentChangeLinkExpiryValue = sharedContentChangeLinkExpiryValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentChangeLinkPasswordValue (sharing) Changed link + * password of shared file/folder (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentChangeLinkPassword(Tag _tag, SharedContentChangeLinkPasswordType sharedContentChangeLinkPasswordValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentChangeLinkPasswordValue = sharedContentChangeLinkPasswordValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentChangeMemberRoleValue (sharing) Changed access type + * of shared file/folder member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentChangeMemberRole(Tag _tag, SharedContentChangeMemberRoleType sharedContentChangeMemberRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentChangeMemberRoleValue = sharedContentChangeMemberRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentChangeViewerInfoPolicyValue (sharing) Changed + * whether members can see who viewed shared file/folder. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentChangeViewerInfoPolicy(Tag _tag, SharedContentChangeViewerInfoPolicyType sharedContentChangeViewerInfoPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentChangeViewerInfoPolicyValue = sharedContentChangeViewerInfoPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentClaimInvitationValue (sharing) Acquired membership + * of shared file/folder by accepting invite. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentClaimInvitation(Tag _tag, SharedContentClaimInvitationType sharedContentClaimInvitationValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentClaimInvitationValue = sharedContentClaimInvitationValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentCopyValue (sharing) Copied shared file/folder to own + * Dropbox. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentCopy(Tag _tag, SharedContentCopyType sharedContentCopyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentCopyValue = sharedContentCopyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentDownloadValue (sharing) Downloaded shared + * file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentDownload(Tag _tag, SharedContentDownloadType sharedContentDownloadValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentDownloadValue = sharedContentDownloadValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRelinquishMembershipValue (sharing) Left shared + * file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRelinquishMembership(Tag _tag, SharedContentRelinquishMembershipType sharedContentRelinquishMembershipValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRelinquishMembershipValue = sharedContentRelinquishMembershipValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRemoveInviteesValue (sharing) Removed invitee from + * shared file/folder before invite was accepted. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRemoveInvitees(Tag _tag, SharedContentRemoveInviteesType sharedContentRemoveInviteesValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRemoveInviteesValue = sharedContentRemoveInviteesValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRemoveLinkExpiryValue (sharing) Removed link + * expiration date of shared file/folder (deprecated, no longer logged). + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRemoveLinkExpiry(Tag _tag, SharedContentRemoveLinkExpiryType sharedContentRemoveLinkExpiryValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRemoveLinkExpiryValue = sharedContentRemoveLinkExpiryValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRemoveLinkPasswordValue (sharing) Removed link + * password of shared file/folder (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRemoveLinkPassword(Tag _tag, SharedContentRemoveLinkPasswordType sharedContentRemoveLinkPasswordValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRemoveLinkPasswordValue = sharedContentRemoveLinkPasswordValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRemoveMemberValue (sharing) Removed user/group from + * shared file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRemoveMember(Tag _tag, SharedContentRemoveMemberType sharedContentRemoveMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRemoveMemberValue = sharedContentRemoveMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRequestAccessValue (sharing) Requested access to + * shared file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRequestAccess(Tag _tag, SharedContentRequestAccessType sharedContentRequestAccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRequestAccessValue = sharedContentRequestAccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRestoreInviteesValue (sharing) Restored shared + * file/folder invitees. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRestoreInvitees(Tag _tag, SharedContentRestoreInviteesType sharedContentRestoreInviteesValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRestoreInviteesValue = sharedContentRestoreInviteesValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentRestoreMemberValue (sharing) Restored users and/or + * groups to membership of shared file/folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentRestoreMember(Tag _tag, SharedContentRestoreMemberType sharedContentRestoreMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentRestoreMemberValue = sharedContentRestoreMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentUnshareValue (sharing) Unshared file/folder by + * clearing membership. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentUnshare(Tag _tag, SharedContentUnshareType sharedContentUnshareValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentUnshareValue = sharedContentUnshareValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedContentViewValue (sharing) Previewed shared file/folder. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedContentView(Tag _tag, SharedContentViewType sharedContentViewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedContentViewValue = sharedContentViewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderChangeLinkPolicyValue (sharing) Changed who can + * access shared folder via link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderChangeLinkPolicy(Tag _tag, SharedFolderChangeLinkPolicyType sharedFolderChangeLinkPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderChangeLinkPolicyValue = sharedFolderChangeLinkPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderChangeMembersInheritancePolicyValue (sharing) Changed + * whether shared folder inherits members from parent folder. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderChangeMembersInheritancePolicy(Tag _tag, SharedFolderChangeMembersInheritancePolicyType sharedFolderChangeMembersInheritancePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderChangeMembersInheritancePolicyValue = sharedFolderChangeMembersInheritancePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderChangeMembersManagementPolicyValue (sharing) Changed + * who can add/remove members of shared folder. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderChangeMembersManagementPolicy(Tag _tag, SharedFolderChangeMembersManagementPolicyType sharedFolderChangeMembersManagementPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderChangeMembersManagementPolicyValue = sharedFolderChangeMembersManagementPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderChangeMembersPolicyValue (sharing) Changed who can + * become member of shared folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderChangeMembersPolicy(Tag _tag, SharedFolderChangeMembersPolicyType sharedFolderChangeMembersPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderChangeMembersPolicyValue = sharedFolderChangeMembersPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderCreateValue (sharing) Created shared folder. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderCreate(Tag _tag, SharedFolderCreateType sharedFolderCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderCreateValue = sharedFolderCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderDeclineInvitationValue (sharing) Declined team + * member's invite to shared folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderDeclineInvitation(Tag _tag, SharedFolderDeclineInvitationType sharedFolderDeclineInvitationValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderDeclineInvitationValue = sharedFolderDeclineInvitationValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderMountValue (sharing) Added shared folder to own + * Dropbox. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderMount(Tag _tag, SharedFolderMountType sharedFolderMountValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderMountValue = sharedFolderMountValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderNestValue (sharing) Changed parent of shared folder. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderNest(Tag _tag, SharedFolderNestType sharedFolderNestValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderNestValue = sharedFolderNestValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderTransferOwnershipValue (sharing) Transferred + * ownership of shared folder to another member. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderTransferOwnership(Tag _tag, SharedFolderTransferOwnershipType sharedFolderTransferOwnershipValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderTransferOwnershipValue = sharedFolderTransferOwnershipValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedFolderUnmountValue (sharing) Deleted shared folder from + * Dropbox. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedFolderUnmount(Tag _tag, SharedFolderUnmountType sharedFolderUnmountValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedFolderUnmountValue = sharedFolderUnmountValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkAddExpiryValue (sharing) Added shared link expiration + * date. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkAddExpiry(Tag _tag, SharedLinkAddExpiryType sharedLinkAddExpiryValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkAddExpiryValue = sharedLinkAddExpiryValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkChangeExpiryValue (sharing) Changed shared link + * expiration date. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkChangeExpiry(Tag _tag, SharedLinkChangeExpiryType sharedLinkChangeExpiryValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkChangeExpiryValue = sharedLinkChangeExpiryValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkChangeVisibilityValue (sharing) Changed visibility of + * shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkChangeVisibility(Tag _tag, SharedLinkChangeVisibilityType sharedLinkChangeVisibilityValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkChangeVisibilityValue = sharedLinkChangeVisibilityValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkCopyValue (sharing) Added file/folder to Dropbox from + * shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkCopy(Tag _tag, SharedLinkCopyType sharedLinkCopyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkCopyValue = sharedLinkCopyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkCreateValue (sharing) Created shared link. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkCreate(Tag _tag, SharedLinkCreateType sharedLinkCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkCreateValue = sharedLinkCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkDisableValue (sharing) Removed shared link. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkDisable(Tag _tag, SharedLinkDisableType sharedLinkDisableValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkDisableValue = sharedLinkDisableValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkDownloadValue (sharing) Downloaded file/folder from + * shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkDownload(Tag _tag, SharedLinkDownloadType sharedLinkDownloadValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkDownloadValue = sharedLinkDownloadValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkRemoveExpiryValue (sharing) Removed shared link + * expiration date. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkRemoveExpiry(Tag _tag, SharedLinkRemoveExpiryType sharedLinkRemoveExpiryValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkRemoveExpiryValue = sharedLinkRemoveExpiryValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsAddExpirationValue (sharing) Added an + * expiration date to the shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsAddExpiration(Tag _tag, SharedLinkSettingsAddExpirationType sharedLinkSettingsAddExpirationValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsAddExpirationValue = sharedLinkSettingsAddExpirationValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsAddPasswordValue (sharing) Added a password to + * the shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsAddPassword(Tag _tag, SharedLinkSettingsAddPasswordType sharedLinkSettingsAddPasswordValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsAddPasswordValue = sharedLinkSettingsAddPasswordValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsAllowDownloadDisabledValue (sharing) Disabled + * downloads. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsAllowDownloadDisabled(Tag _tag, SharedLinkSettingsAllowDownloadDisabledType sharedLinkSettingsAllowDownloadDisabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsAllowDownloadDisabledValue = sharedLinkSettingsAllowDownloadDisabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsAllowDownloadEnabledValue (sharing) Enabled + * downloads. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsAllowDownloadEnabled(Tag _tag, SharedLinkSettingsAllowDownloadEnabledType sharedLinkSettingsAllowDownloadEnabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsAllowDownloadEnabledValue = sharedLinkSettingsAllowDownloadEnabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsChangeAudienceValue (sharing) Changed the + * audience of the shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsChangeAudience(Tag _tag, SharedLinkSettingsChangeAudienceType sharedLinkSettingsChangeAudienceValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsChangeAudienceValue = sharedLinkSettingsChangeAudienceValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsChangeExpirationValue (sharing) Changed the + * expiration date of the shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsChangeExpiration(Tag _tag, SharedLinkSettingsChangeExpirationType sharedLinkSettingsChangeExpirationValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsChangeExpirationValue = sharedLinkSettingsChangeExpirationValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsChangePasswordValue (sharing) Changed the + * password of the shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsChangePassword(Tag _tag, SharedLinkSettingsChangePasswordType sharedLinkSettingsChangePasswordValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsChangePasswordValue = sharedLinkSettingsChangePasswordValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsRemoveExpirationValue (sharing) Removed the + * expiration date from the shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsRemoveExpiration(Tag _tag, SharedLinkSettingsRemoveExpirationType sharedLinkSettingsRemoveExpirationValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsRemoveExpirationValue = sharedLinkSettingsRemoveExpirationValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkSettingsRemovePasswordValue (sharing) Removed the + * password from the shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkSettingsRemovePassword(Tag _tag, SharedLinkSettingsRemovePasswordType sharedLinkSettingsRemovePasswordValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkSettingsRemovePasswordValue = sharedLinkSettingsRemovePasswordValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkShareValue (sharing) Added members as audience of + * shared link. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkShare(Tag _tag, SharedLinkShareType sharedLinkShareValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkShareValue = sharedLinkShareValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedLinkViewValue (sharing) Opened shared link. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedLinkView(Tag _tag, SharedLinkViewType sharedLinkViewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedLinkViewValue = sharedLinkViewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharedNoteOpenedValue (sharing) Opened shared Paper doc + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharedNoteOpened(Tag _tag, SharedNoteOpenedType sharedNoteOpenedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharedNoteOpenedValue = sharedNoteOpenedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param shmodelDisableDownloadsValue (sharing) Disabled downloads for + * link (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShmodelDisableDownloads(Tag _tag, ShmodelDisableDownloadsType shmodelDisableDownloadsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.shmodelDisableDownloadsValue = shmodelDisableDownloadsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param shmodelEnableDownloadsValue (sharing) Enabled downloads for link + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShmodelEnableDownloads(Tag _tag, ShmodelEnableDownloadsType shmodelEnableDownloadsValue) { + EventType result = new EventType(); + result._tag = _tag; + result.shmodelEnableDownloadsValue = shmodelEnableDownloadsValue; + return result; + } + + /** + * The type of the event with description. + * + * @param shmodelGroupShareValue (sharing) Shared link with group + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShmodelGroupShare(Tag _tag, ShmodelGroupShareType shmodelGroupShareValue) { + EventType result = new EventType(); + result._tag = _tag; + result.shmodelGroupShareValue = shmodelGroupShareValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseAccessGrantedValue (showcase) Granted access to showcase. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseAccessGranted(Tag _tag, ShowcaseAccessGrantedType showcaseAccessGrantedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseAccessGrantedValue = showcaseAccessGrantedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseAddMemberValue (showcase) Added member to showcase. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseAddMember(Tag _tag, ShowcaseAddMemberType showcaseAddMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseAddMemberValue = showcaseAddMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseArchivedValue (showcase) Archived showcase. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseArchived(Tag _tag, ShowcaseArchivedType showcaseArchivedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseArchivedValue = showcaseArchivedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseCreatedValue (showcase) Created showcase. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseCreated(Tag _tag, ShowcaseCreatedType showcaseCreatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseCreatedValue = showcaseCreatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseDeleteCommentValue (showcase) Deleted showcase comment. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseDeleteComment(Tag _tag, ShowcaseDeleteCommentType showcaseDeleteCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseDeleteCommentValue = showcaseDeleteCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseEditedValue (showcase) Edited showcase. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseEdited(Tag _tag, ShowcaseEditedType showcaseEditedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseEditedValue = showcaseEditedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseEditCommentValue (showcase) Edited showcase comment. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseEditComment(Tag _tag, ShowcaseEditCommentType showcaseEditCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseEditCommentValue = showcaseEditCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseFileAddedValue (showcase) Added file to showcase. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseFileAdded(Tag _tag, ShowcaseFileAddedType showcaseFileAddedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseFileAddedValue = showcaseFileAddedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseFileDownloadValue (showcase) Downloaded file from + * showcase. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseFileDownload(Tag _tag, ShowcaseFileDownloadType showcaseFileDownloadValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseFileDownloadValue = showcaseFileDownloadValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseFileRemovedValue (showcase) Removed file from showcase. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseFileRemoved(Tag _tag, ShowcaseFileRemovedType showcaseFileRemovedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseFileRemovedValue = showcaseFileRemovedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseFileViewValue (showcase) Viewed file in showcase. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseFileView(Tag _tag, ShowcaseFileViewType showcaseFileViewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseFileViewValue = showcaseFileViewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcasePermanentlyDeletedValue (showcase) Permanently deleted + * showcase. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcasePermanentlyDeleted(Tag _tag, ShowcasePermanentlyDeletedType showcasePermanentlyDeletedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcasePermanentlyDeletedValue = showcasePermanentlyDeletedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcasePostCommentValue (showcase) Added showcase comment. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcasePostComment(Tag _tag, ShowcasePostCommentType showcasePostCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcasePostCommentValue = showcasePostCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseRemoveMemberValue (showcase) Removed member from + * showcase. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseRemoveMember(Tag _tag, ShowcaseRemoveMemberType showcaseRemoveMemberValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseRemoveMemberValue = showcaseRemoveMemberValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseRenamedValue (showcase) Renamed showcase. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseRenamed(Tag _tag, ShowcaseRenamedType showcaseRenamedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseRenamedValue = showcaseRenamedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseRequestAccessValue (showcase) Requested access to + * showcase. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseRequestAccess(Tag _tag, ShowcaseRequestAccessType showcaseRequestAccessValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseRequestAccessValue = showcaseRequestAccessValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseResolveCommentValue (showcase) Resolved showcase comment. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseResolveComment(Tag _tag, ShowcaseResolveCommentType showcaseResolveCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseResolveCommentValue = showcaseResolveCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseRestoredValue (showcase) Unarchived showcase. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseRestored(Tag _tag, ShowcaseRestoredType showcaseRestoredValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseRestoredValue = showcaseRestoredValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseTrashedValue (showcase) Deleted showcase. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseTrashed(Tag _tag, ShowcaseTrashedType showcaseTrashedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseTrashedValue = showcaseTrashedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseTrashedDeprecatedValue (showcase) Deleted showcase (old + * version) (deprecated, replaced by 'Deleted showcase'). Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseTrashedDeprecated(Tag _tag, ShowcaseTrashedDeprecatedType showcaseTrashedDeprecatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseTrashedDeprecatedValue = showcaseTrashedDeprecatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseUnresolveCommentValue (showcase) Unresolved showcase + * comment. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseUnresolveComment(Tag _tag, ShowcaseUnresolveCommentType showcaseUnresolveCommentValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseUnresolveCommentValue = showcaseUnresolveCommentValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseUntrashedValue (showcase) Restored showcase. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseUntrashed(Tag _tag, ShowcaseUntrashedType showcaseUntrashedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseUntrashedValue = showcaseUntrashedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseUntrashedDeprecatedValue (showcase) Restored showcase + * (old version) (deprecated, replaced by 'Restored showcase'). Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseUntrashedDeprecated(Tag _tag, ShowcaseUntrashedDeprecatedType showcaseUntrashedDeprecatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseUntrashedDeprecatedValue = showcaseUntrashedDeprecatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseViewValue (showcase) Viewed showcase. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseView(Tag _tag, ShowcaseViewType showcaseViewValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseViewValue = showcaseViewValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoAddCertValue (sso) Added X.509 certificate for SSO. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoAddCert(Tag _tag, SsoAddCertType ssoAddCertValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoAddCertValue = ssoAddCertValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoAddLoginUrlValue (sso) Added sign-in URL for SSO. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoAddLoginUrl(Tag _tag, SsoAddLoginUrlType ssoAddLoginUrlValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoAddLoginUrlValue = ssoAddLoginUrlValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoAddLogoutUrlValue (sso) Added sign-out URL for SSO. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoAddLogoutUrl(Tag _tag, SsoAddLogoutUrlType ssoAddLogoutUrlValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoAddLogoutUrlValue = ssoAddLogoutUrlValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoChangeCertValue (sso) Changed X.509 certificate for SSO. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoChangeCert(Tag _tag, SsoChangeCertType ssoChangeCertValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoChangeCertValue = ssoChangeCertValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoChangeLoginUrlValue (sso) Changed sign-in URL for SSO. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoChangeLoginUrl(Tag _tag, SsoChangeLoginUrlType ssoChangeLoginUrlValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoChangeLoginUrlValue = ssoChangeLoginUrlValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoChangeLogoutUrlValue (sso) Changed sign-out URL for SSO. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoChangeLogoutUrl(Tag _tag, SsoChangeLogoutUrlType ssoChangeLogoutUrlValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoChangeLogoutUrlValue = ssoChangeLogoutUrlValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoChangeSamlIdentityModeValue (sso) Changed SAML identity mode + * for SSO. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoChangeSamlIdentityMode(Tag _tag, SsoChangeSamlIdentityModeType ssoChangeSamlIdentityModeValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoChangeSamlIdentityModeValue = ssoChangeSamlIdentityModeValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoRemoveCertValue (sso) Removed X.509 certificate for SSO. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoRemoveCert(Tag _tag, SsoRemoveCertType ssoRemoveCertValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoRemoveCertValue = ssoRemoveCertValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoRemoveLoginUrlValue (sso) Removed sign-in URL for SSO. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoRemoveLoginUrl(Tag _tag, SsoRemoveLoginUrlType ssoRemoveLoginUrlValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoRemoveLoginUrlValue = ssoRemoveLoginUrlValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoRemoveLogoutUrlValue (sso) Removed sign-out URL for SSO. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoRemoveLogoutUrl(Tag _tag, SsoRemoveLogoutUrlType ssoRemoveLogoutUrlValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoRemoveLogoutUrlValue = ssoRemoveLogoutUrlValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamFolderChangeStatusValue (team_folders) Changed archival + * status of team folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamFolderChangeStatus(Tag _tag, TeamFolderChangeStatusType teamFolderChangeStatusValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamFolderChangeStatusValue = teamFolderChangeStatusValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamFolderCreateValue (team_folders) Created team folder in + * active status. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamFolderCreate(Tag _tag, TeamFolderCreateType teamFolderCreateValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamFolderCreateValue = teamFolderCreateValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamFolderDowngradeValue (team_folders) Downgraded team folder to + * regular shared folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamFolderDowngrade(Tag _tag, TeamFolderDowngradeType teamFolderDowngradeValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamFolderDowngradeValue = teamFolderDowngradeValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamFolderPermanentlyDeleteValue (team_folders) Permanently + * deleted archived team folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamFolderPermanentlyDelete(Tag _tag, TeamFolderPermanentlyDeleteType teamFolderPermanentlyDeleteValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamFolderPermanentlyDeleteValue = teamFolderPermanentlyDeleteValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamFolderRenameValue (team_folders) Renamed active/archived team + * folder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamFolderRename(Tag _tag, TeamFolderRenameType teamFolderRenameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamFolderRenameValue = teamFolderRenameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamSelectiveSyncSettingsChangedValue (team_folders) Changed sync + * default. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamSelectiveSyncSettingsChanged(Tag _tag, TeamSelectiveSyncSettingsChangedType teamSelectiveSyncSettingsChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamSelectiveSyncSettingsChangedValue = teamSelectiveSyncSettingsChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param accountCaptureChangePolicyValue (team_policies) Changed account + * capture setting on team domain. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAccountCaptureChangePolicy(Tag _tag, AccountCaptureChangePolicyType accountCaptureChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.accountCaptureChangePolicyValue = accountCaptureChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param adminEmailRemindersChangedValue (team_policies) Changed admin + * reminder settings for requests to join the team. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAdminEmailRemindersChanged(Tag _tag, AdminEmailRemindersChangedType adminEmailRemindersChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.adminEmailRemindersChangedValue = adminEmailRemindersChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param allowDownloadDisabledValue (team_policies) Disabled downloads + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAllowDownloadDisabled(Tag _tag, AllowDownloadDisabledType allowDownloadDisabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.allowDownloadDisabledValue = allowDownloadDisabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param allowDownloadEnabledValue (team_policies) Enabled downloads + * (deprecated, no longer logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAllowDownloadEnabled(Tag _tag, AllowDownloadEnabledType allowDownloadEnabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.allowDownloadEnabledValue = allowDownloadEnabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param appPermissionsChangedValue (team_policies) Changed app + * permissions. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndAppPermissionsChanged(Tag _tag, AppPermissionsChangedType appPermissionsChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.appPermissionsChangedValue = appPermissionsChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param cameraUploadsPolicyChangedValue (team_policies) Changed camera + * uploads setting for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndCameraUploadsPolicyChanged(Tag _tag, CameraUploadsPolicyChangedType cameraUploadsPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.cameraUploadsPolicyChangedValue = cameraUploadsPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param captureTranscriptPolicyChangedValue (team_policies) Changed + * Capture transcription policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndCaptureTranscriptPolicyChanged(Tag _tag, CaptureTranscriptPolicyChangedType captureTranscriptPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.captureTranscriptPolicyChangedValue = captureTranscriptPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param classificationChangePolicyValue (team_policies) Changed + * classification policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndClassificationChangePolicy(Tag _tag, ClassificationChangePolicyType classificationChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.classificationChangePolicyValue = classificationChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param computerBackupPolicyChangedValue (team_policies) Changed computer + * backup policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndComputerBackupPolicyChanged(Tag _tag, ComputerBackupPolicyChangedType computerBackupPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.computerBackupPolicyChangedValue = computerBackupPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param contentAdministrationPolicyChangedValue (team_policies) Changed + * content management setting. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndContentAdministrationPolicyChanged(Tag _tag, ContentAdministrationPolicyChangedType contentAdministrationPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.contentAdministrationPolicyChangedValue = contentAdministrationPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param dataPlacementRestrictionChangePolicyValue (team_policies) Set + * restrictions on data center locations where team data resides. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDataPlacementRestrictionChangePolicy(Tag _tag, DataPlacementRestrictionChangePolicyType dataPlacementRestrictionChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.dataPlacementRestrictionChangePolicyValue = dataPlacementRestrictionChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param dataPlacementRestrictionSatisfyPolicyValue (team_policies) + * Completed restrictions on data center locations where team data + * resides. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDataPlacementRestrictionSatisfyPolicy(Tag _tag, DataPlacementRestrictionSatisfyPolicyType dataPlacementRestrictionSatisfyPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.dataPlacementRestrictionSatisfyPolicyValue = dataPlacementRestrictionSatisfyPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceApprovalsAddExceptionValue (team_policies) Added members to + * device approvals exception list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceApprovalsAddException(Tag _tag, DeviceApprovalsAddExceptionType deviceApprovalsAddExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceApprovalsAddExceptionValue = deviceApprovalsAddExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceApprovalsChangeDesktopPolicyValue (team_policies) + * Set/removed limit on number of computers member can link to team + * Dropbox account. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceApprovalsChangeDesktopPolicy(Tag _tag, DeviceApprovalsChangeDesktopPolicyType deviceApprovalsChangeDesktopPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceApprovalsChangeDesktopPolicyValue = deviceApprovalsChangeDesktopPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceApprovalsChangeMobilePolicyValue (team_policies) + * Set/removed limit on number of mobile devices member can link to team + * Dropbox account. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceApprovalsChangeMobilePolicy(Tag _tag, DeviceApprovalsChangeMobilePolicyType deviceApprovalsChangeMobilePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceApprovalsChangeMobilePolicyValue = deviceApprovalsChangeMobilePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceApprovalsChangeOverageActionValue (team_policies) Changed + * device approvals setting when member is over limit. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceApprovalsChangeOverageAction(Tag _tag, DeviceApprovalsChangeOverageActionType deviceApprovalsChangeOverageActionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceApprovalsChangeOverageActionValue = deviceApprovalsChangeOverageActionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceApprovalsChangeUnlinkActionValue (team_policies) Changed + * device approvals setting when member unlinks approved device. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceApprovalsChangeUnlinkAction(Tag _tag, DeviceApprovalsChangeUnlinkActionType deviceApprovalsChangeUnlinkActionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceApprovalsChangeUnlinkActionValue = deviceApprovalsChangeUnlinkActionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param deviceApprovalsRemoveExceptionValue (team_policies) Removed + * members from device approvals exception list. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDeviceApprovalsRemoveException(Tag _tag, DeviceApprovalsRemoveExceptionType deviceApprovalsRemoveExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.deviceApprovalsRemoveExceptionValue = deviceApprovalsRemoveExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param directoryRestrictionsAddMembersValue (team_policies) Added + * members to directory restrictions list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDirectoryRestrictionsAddMembers(Tag _tag, DirectoryRestrictionsAddMembersType directoryRestrictionsAddMembersValue) { + EventType result = new EventType(); + result._tag = _tag; + result.directoryRestrictionsAddMembersValue = directoryRestrictionsAddMembersValue; + return result; + } + + /** + * The type of the event with description. + * + * @param directoryRestrictionsRemoveMembersValue (team_policies) Removed + * members from directory restrictions list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDirectoryRestrictionsRemoveMembers(Tag _tag, DirectoryRestrictionsRemoveMembersType directoryRestrictionsRemoveMembersValue) { + EventType result = new EventType(); + result._tag = _tag; + result.directoryRestrictionsRemoveMembersValue = directoryRestrictionsRemoveMembersValue; + return result; + } + + /** + * The type of the event with description. + * + * @param dropboxPasswordsPolicyChangedValue (team_policies) Changed + * Dropbox Passwords policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDropboxPasswordsPolicyChanged(Tag _tag, DropboxPasswordsPolicyChangedType dropboxPasswordsPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.dropboxPasswordsPolicyChangedValue = dropboxPasswordsPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emailIngestPolicyChangedValue (team_policies) Changed email to + * Dropbox policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmailIngestPolicyChanged(Tag _tag, EmailIngestPolicyChangedType emailIngestPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emailIngestPolicyChangedValue = emailIngestPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emmAddExceptionValue (team_policies) Added members to EMM + * exception list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmmAddException(Tag _tag, EmmAddExceptionType emmAddExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emmAddExceptionValue = emmAddExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emmChangePolicyValue (team_policies) Enabled/disabled enterprise + * mobility management for members. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmmChangePolicy(Tag _tag, EmmChangePolicyType emmChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emmChangePolicyValue = emmChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param emmRemoveExceptionValue (team_policies) Removed members from EMM + * exception list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEmmRemoveException(Tag _tag, EmmRemoveExceptionType emmRemoveExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.emmRemoveExceptionValue = emmRemoveExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param extendedVersionHistoryChangePolicyValue (team_policies) + * Accepted/opted out of extended version history. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExtendedVersionHistoryChangePolicy(Tag _tag, ExtendedVersionHistoryChangePolicyType extendedVersionHistoryChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.extendedVersionHistoryChangePolicyValue = extendedVersionHistoryChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param externalDriveBackupPolicyChangedValue (team_policies) Changed + * external drive backup policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndExternalDriveBackupPolicyChanged(Tag _tag, ExternalDriveBackupPolicyChangedType externalDriveBackupPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.externalDriveBackupPolicyChangedValue = externalDriveBackupPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileCommentsChangePolicyValue (team_policies) Enabled/disabled + * commenting on team files. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileCommentsChangePolicy(Tag _tag, FileCommentsChangePolicyType fileCommentsChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileCommentsChangePolicyValue = fileCommentsChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileLockingPolicyChangedValue (team_policies) Changed file + * locking policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileLockingPolicyChanged(Tag _tag, FileLockingPolicyChangedType fileLockingPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileLockingPolicyChangedValue = fileLockingPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileProviderMigrationPolicyChangedValue (team_policies) Changed + * File Provider Migration policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileProviderMigrationPolicyChanged(Tag _tag, FileProviderMigrationPolicyChangedType fileProviderMigrationPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileProviderMigrationPolicyChangedValue = fileProviderMigrationPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestsChangePolicyValue (team_policies) Enabled/disabled + * file requests. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestsChangePolicy(Tag _tag, FileRequestsChangePolicyType fileRequestsChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestsChangePolicyValue = fileRequestsChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestsEmailsEnabledValue (team_policies) Enabled file + * request emails for everyone (deprecated, no longer logged). Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestsEmailsEnabled(Tag _tag, FileRequestsEmailsEnabledType fileRequestsEmailsEnabledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestsEmailsEnabledValue = fileRequestsEmailsEnabledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileRequestsEmailsRestrictedToTeamOnlyValue (team_policies) + * Enabled file request emails for team (deprecated, no longer logged). + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileRequestsEmailsRestrictedToTeamOnly(Tag _tag, FileRequestsEmailsRestrictedToTeamOnlyType fileRequestsEmailsRestrictedToTeamOnlyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileRequestsEmailsRestrictedToTeamOnlyValue = fileRequestsEmailsRestrictedToTeamOnlyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param fileTransfersPolicyChangedValue (team_policies) Changed file + * transfers policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFileTransfersPolicyChanged(Tag _tag, FileTransfersPolicyChangedType fileTransfersPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.fileTransfersPolicyChangedValue = fileTransfersPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param folderLinkRestrictionPolicyChangedValue (team_policies) Changed + * folder link restrictions policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndFolderLinkRestrictionPolicyChanged(Tag _tag, FolderLinkRestrictionPolicyChangedType folderLinkRestrictionPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.folderLinkRestrictionPolicyChangedValue = folderLinkRestrictionPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param googleSsoChangePolicyValue (team_policies) Enabled/disabled + * Google single sign-on for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGoogleSsoChangePolicy(Tag _tag, GoogleSsoChangePolicyType googleSsoChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.googleSsoChangePolicyValue = googleSsoChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param groupUserManagementChangePolicyValue (team_policies) Changed who + * can create groups. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGroupUserManagementChangePolicy(Tag _tag, GroupUserManagementChangePolicyType groupUserManagementChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.groupUserManagementChangePolicyValue = groupUserManagementChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param integrationPolicyChangedValue (team_policies) Changed integration + * policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndIntegrationPolicyChanged(Tag _tag, IntegrationPolicyChangedType integrationPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.integrationPolicyChangedValue = integrationPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param inviteAcceptanceEmailPolicyChangedValue (team_policies) Changed + * invite accept email policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndInviteAcceptanceEmailPolicyChanged(Tag _tag, InviteAcceptanceEmailPolicyChangedType inviteAcceptanceEmailPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.inviteAcceptanceEmailPolicyChangedValue = inviteAcceptanceEmailPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberRequestsChangePolicyValue (team_policies) Changed whether + * users can find team when not invited. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberRequestsChangePolicy(Tag _tag, MemberRequestsChangePolicyType memberRequestsChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberRequestsChangePolicyValue = memberRequestsChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSendInvitePolicyChangedValue (team_policies) Changed member + * send invite policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSendInvitePolicyChanged(Tag _tag, MemberSendInvitePolicyChangedType memberSendInvitePolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSendInvitePolicyChangedValue = memberSendInvitePolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsAddExceptionValue (team_policies) Added members + * to member space limit exception list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsAddException(Tag _tag, MemberSpaceLimitsAddExceptionType memberSpaceLimitsAddExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsAddExceptionValue = memberSpaceLimitsAddExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsChangeCapsTypePolicyValue (team_policies) + * Changed member space limit type for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsChangeCapsTypePolicy(Tag _tag, MemberSpaceLimitsChangeCapsTypePolicyType memberSpaceLimitsChangeCapsTypePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsChangeCapsTypePolicyValue = memberSpaceLimitsChangeCapsTypePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsChangePolicyValue (team_policies) Changed team + * default member space limit. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsChangePolicy(Tag _tag, MemberSpaceLimitsChangePolicyType memberSpaceLimitsChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsChangePolicyValue = memberSpaceLimitsChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSpaceLimitsRemoveExceptionValue (team_policies) Removed + * members from member space limit exception list. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSpaceLimitsRemoveException(Tag _tag, MemberSpaceLimitsRemoveExceptionType memberSpaceLimitsRemoveExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSpaceLimitsRemoveExceptionValue = memberSpaceLimitsRemoveExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param memberSuggestionsChangePolicyValue (team_policies) + * Enabled/disabled option for team members to suggest people to add to + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMemberSuggestionsChangePolicy(Tag _tag, MemberSuggestionsChangePolicyType memberSuggestionsChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.memberSuggestionsChangePolicyValue = memberSuggestionsChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param microsoftOfficeAddinChangePolicyValue (team_policies) + * Enabled/disabled Microsoft Office add-in. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndMicrosoftOfficeAddinChangePolicy(Tag _tag, MicrosoftOfficeAddinChangePolicyType microsoftOfficeAddinChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.microsoftOfficeAddinChangePolicyValue = microsoftOfficeAddinChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param networkControlChangePolicyValue (team_policies) Enabled/disabled + * network control. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndNetworkControlChangePolicy(Tag _tag, NetworkControlChangePolicyType networkControlChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.networkControlChangePolicyValue = networkControlChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperChangeDeploymentPolicyValue (team_policies) Changed whether + * Dropbox Paper, when enabled, is deployed to all members or to + * specific members. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperChangeDeploymentPolicy(Tag _tag, PaperChangeDeploymentPolicyType paperChangeDeploymentPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperChangeDeploymentPolicyValue = paperChangeDeploymentPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperChangeMemberLinkPolicyValue (team_policies) Changed whether + * non-members can view Paper docs with link (deprecated, no longer + * logged). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperChangeMemberLinkPolicy(Tag _tag, PaperChangeMemberLinkPolicyType paperChangeMemberLinkPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperChangeMemberLinkPolicyValue = paperChangeMemberLinkPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperChangeMemberPolicyValue (team_policies) Changed whether + * members can share Paper docs outside team, and if docs are accessible + * only by team members or anyone by default. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperChangeMemberPolicy(Tag _tag, PaperChangeMemberPolicyType paperChangeMemberPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperChangeMemberPolicyValue = paperChangeMemberPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperChangePolicyValue (team_policies) Enabled/disabled Dropbox + * Paper for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperChangePolicy(Tag _tag, PaperChangePolicyType paperChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperChangePolicyValue = paperChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDefaultFolderPolicyChangedValue (team_policies) Changed + * Paper Default Folder Policy setting for team. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDefaultFolderPolicyChanged(Tag _tag, PaperDefaultFolderPolicyChangedType paperDefaultFolderPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDefaultFolderPolicyChangedValue = paperDefaultFolderPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperDesktopPolicyChangedValue (team_policies) Enabled/disabled + * Paper Desktop for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperDesktopPolicyChanged(Tag _tag, PaperDesktopPolicyChangedType paperDesktopPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperDesktopPolicyChangedValue = paperDesktopPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperEnabledUsersGroupAdditionValue (team_policies) Added users + * to Paper-enabled users list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperEnabledUsersGroupAddition(Tag _tag, PaperEnabledUsersGroupAdditionType paperEnabledUsersGroupAdditionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperEnabledUsersGroupAdditionValue = paperEnabledUsersGroupAdditionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param paperEnabledUsersGroupRemovalValue (team_policies) Removed users + * from Paper-enabled users list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPaperEnabledUsersGroupRemoval(Tag _tag, PaperEnabledUsersGroupRemovalType paperEnabledUsersGroupRemovalValue) { + EventType result = new EventType(); + result._tag = _tag; + result.paperEnabledUsersGroupRemovalValue = paperEnabledUsersGroupRemovalValue; + return result; + } + + /** + * The type of the event with description. + * + * @param passwordStrengthRequirementsChangePolicyValue (team_policies) + * Changed team password strength requirements. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPasswordStrengthRequirementsChangePolicy(Tag _tag, PasswordStrengthRequirementsChangePolicyType passwordStrengthRequirementsChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.passwordStrengthRequirementsChangePolicyValue = passwordStrengthRequirementsChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param permanentDeleteChangePolicyValue (team_policies) Enabled/disabled + * ability of team members to permanently delete content. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndPermanentDeleteChangePolicy(Tag _tag, PermanentDeleteChangePolicyType permanentDeleteChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.permanentDeleteChangePolicyValue = permanentDeleteChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param resellerSupportChangePolicyValue (team_policies) Enabled/disabled + * reseller support. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndResellerSupportChangePolicy(Tag _tag, ResellerSupportChangePolicyType resellerSupportChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.resellerSupportChangePolicyValue = resellerSupportChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param rewindPolicyChangedValue (team_policies) Changed Rewind policy + * for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndRewindPolicyChanged(Tag _tag, RewindPolicyChangedType rewindPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.rewindPolicyChangedValue = rewindPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sendForSignaturePolicyChangedValue (team_policies) Changed send + * for signature policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSendForSignaturePolicyChanged(Tag _tag, SendForSignaturePolicyChangedType sendForSignaturePolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sendForSignaturePolicyChangedValue = sendForSignaturePolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharingChangeFolderJoinPolicyValue (team_policies) Changed + * whether team members can join shared folders owned outside team. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharingChangeFolderJoinPolicy(Tag _tag, SharingChangeFolderJoinPolicyType sharingChangeFolderJoinPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharingChangeFolderJoinPolicyValue = sharingChangeFolderJoinPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharingChangeLinkAllowChangeExpirationPolicyValue (team_policies) + * Changed the allow remove or change expiration policy for the links + * shared outside of the team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharingChangeLinkAllowChangeExpirationPolicy(Tag _tag, SharingChangeLinkAllowChangeExpirationPolicyType sharingChangeLinkAllowChangeExpirationPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharingChangeLinkAllowChangeExpirationPolicyValue = sharingChangeLinkAllowChangeExpirationPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharingChangeLinkDefaultExpirationPolicyValue (team_policies) + * Changed the default expiration for the links shared outside of the + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharingChangeLinkDefaultExpirationPolicy(Tag _tag, SharingChangeLinkDefaultExpirationPolicyType sharingChangeLinkDefaultExpirationPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharingChangeLinkDefaultExpirationPolicyValue = sharingChangeLinkDefaultExpirationPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharingChangeLinkEnforcePasswordPolicyValue (team_policies) + * Changed the password requirement for the links shared outside of the + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharingChangeLinkEnforcePasswordPolicy(Tag _tag, SharingChangeLinkEnforcePasswordPolicyType sharingChangeLinkEnforcePasswordPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharingChangeLinkEnforcePasswordPolicyValue = sharingChangeLinkEnforcePasswordPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharingChangeLinkPolicyValue (team_policies) Changed whether + * members can share links outside team, and if links are accessible + * only by team members or anyone by default. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharingChangeLinkPolicy(Tag _tag, SharingChangeLinkPolicyType sharingChangeLinkPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharingChangeLinkPolicyValue = sharingChangeLinkPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param sharingChangeMemberPolicyValue (team_policies) Changed whether + * members can share files/folders outside team. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSharingChangeMemberPolicy(Tag _tag, SharingChangeMemberPolicyType sharingChangeMemberPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.sharingChangeMemberPolicyValue = sharingChangeMemberPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseChangeDownloadPolicyValue (team_policies) + * Enabled/disabled downloading files from Dropbox Showcase for team. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseChangeDownloadPolicy(Tag _tag, ShowcaseChangeDownloadPolicyType showcaseChangeDownloadPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseChangeDownloadPolicyValue = showcaseChangeDownloadPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseChangeEnabledPolicyValue (team_policies) Enabled/disabled + * Dropbox Showcase for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseChangeEnabledPolicy(Tag _tag, ShowcaseChangeEnabledPolicyType showcaseChangeEnabledPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseChangeEnabledPolicyValue = showcaseChangeEnabledPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param showcaseChangeExternalSharingPolicyValue (team_policies) + * Enabled/disabled sharing Dropbox Showcase externally for team. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndShowcaseChangeExternalSharingPolicy(Tag _tag, ShowcaseChangeExternalSharingPolicyType showcaseChangeExternalSharingPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.showcaseChangeExternalSharingPolicyValue = showcaseChangeExternalSharingPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param smarterSmartSyncPolicyChangedValue (team_policies) Changed + * automatic Smart Sync setting for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSmarterSmartSyncPolicyChanged(Tag _tag, SmarterSmartSyncPolicyChangedType smarterSmartSyncPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.smarterSmartSyncPolicyChangedValue = smarterSmartSyncPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param smartSyncChangePolicyValue (team_policies) Changed default Smart + * Sync setting for team members. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSmartSyncChangePolicy(Tag _tag, SmartSyncChangePolicyType smartSyncChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.smartSyncChangePolicyValue = smartSyncChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param smartSyncNotOptOutValue (team_policies) Opted team into Smart + * Sync. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSmartSyncNotOptOut(Tag _tag, SmartSyncNotOptOutType smartSyncNotOptOutValue) { + EventType result = new EventType(); + result._tag = _tag; + result.smartSyncNotOptOutValue = smartSyncNotOptOutValue; + return result; + } + + /** + * The type of the event with description. + * + * @param smartSyncOptOutValue (team_policies) Opted team out of Smart + * Sync. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSmartSyncOptOut(Tag _tag, SmartSyncOptOutType smartSyncOptOutValue) { + EventType result = new EventType(); + result._tag = _tag; + result.smartSyncOptOutValue = smartSyncOptOutValue; + return result; + } + + /** + * The type of the event with description. + * + * @param ssoChangePolicyValue (team_policies) Changed single sign-on + * setting for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndSsoChangePolicy(Tag _tag, SsoChangePolicyType ssoChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.ssoChangePolicyValue = ssoChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamBrandingPolicyChangedValue (team_policies) Changed team + * branding policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamBrandingPolicyChanged(Tag _tag, TeamBrandingPolicyChangedType teamBrandingPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamBrandingPolicyChangedValue = teamBrandingPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamExtensionsPolicyChangedValue (team_policies) Changed App + * Integrations setting for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamExtensionsPolicyChanged(Tag _tag, TeamExtensionsPolicyChangedType teamExtensionsPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamExtensionsPolicyChangedValue = teamExtensionsPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamSelectiveSyncPolicyChangedValue (team_policies) + * Enabled/disabled Team Selective Sync for team. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamSelectiveSyncPolicyChanged(Tag _tag, TeamSelectiveSyncPolicyChangedType teamSelectiveSyncPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamSelectiveSyncPolicyChangedValue = teamSelectiveSyncPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamSharingWhitelistSubjectsChangedValue (team_policies) Edited + * the approved list for sharing externally. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamSharingWhitelistSubjectsChanged(Tag _tag, TeamSharingWhitelistSubjectsChangedType teamSharingWhitelistSubjectsChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamSharingWhitelistSubjectsChangedValue = teamSharingWhitelistSubjectsChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaAddExceptionValue (team_policies) Added members to two factor + * authentication exception list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaAddException(Tag _tag, TfaAddExceptionType tfaAddExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaAddExceptionValue = tfaAddExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaChangePolicyValue (team_policies) Changed two-step + * verification setting for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaChangePolicy(Tag _tag, TfaChangePolicyType tfaChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaChangePolicyValue = tfaChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaRemoveExceptionValue (team_policies) Removed members from two + * factor authentication exception list. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaRemoveException(Tag _tag, TfaRemoveExceptionType tfaRemoveExceptionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaRemoveExceptionValue = tfaRemoveExceptionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param twoAccountChangePolicyValue (team_policies) Enabled/disabled + * option for members to link personal Dropbox account and team account + * to same computer. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTwoAccountChangePolicy(Tag _tag, TwoAccountChangePolicyType twoAccountChangePolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.twoAccountChangePolicyValue = twoAccountChangePolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param viewerInfoPolicyChangedValue (team_policies) Changed team policy + * for viewer info. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndViewerInfoPolicyChanged(Tag _tag, ViewerInfoPolicyChangedType viewerInfoPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.viewerInfoPolicyChangedValue = viewerInfoPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param watermarkingPolicyChangedValue (team_policies) Changed + * watermarking policy for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndWatermarkingPolicyChanged(Tag _tag, WatermarkingPolicyChangedType watermarkingPolicyChangedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.watermarkingPolicyChangedValue = watermarkingPolicyChangedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param webSessionsChangeActiveSessionLimitValue (team_policies) Changed + * limit on active sessions per member. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndWebSessionsChangeActiveSessionLimit(Tag _tag, WebSessionsChangeActiveSessionLimitType webSessionsChangeActiveSessionLimitValue) { + EventType result = new EventType(); + result._tag = _tag; + result.webSessionsChangeActiveSessionLimitValue = webSessionsChangeActiveSessionLimitValue; + return result; + } + + /** + * The type of the event with description. + * + * @param webSessionsChangeFixedLengthPolicyValue (team_policies) Changed + * how long members can stay signed in to Dropbox.com. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndWebSessionsChangeFixedLengthPolicy(Tag _tag, WebSessionsChangeFixedLengthPolicyType webSessionsChangeFixedLengthPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.webSessionsChangeFixedLengthPolicyValue = webSessionsChangeFixedLengthPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param webSessionsChangeIdleLengthPolicyValue (team_policies) Changed + * how long team members can be idle while signed in to Dropbox.com. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndWebSessionsChangeIdleLengthPolicy(Tag _tag, WebSessionsChangeIdleLengthPolicyType webSessionsChangeIdleLengthPolicyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.webSessionsChangeIdleLengthPolicyValue = webSessionsChangeIdleLengthPolicyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param dataResidencyMigrationRequestSuccessfulValue (team_profile) + * Requested data residency migration for team data. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDataResidencyMigrationRequestSuccessful(Tag _tag, DataResidencyMigrationRequestSuccessfulType dataResidencyMigrationRequestSuccessfulValue) { + EventType result = new EventType(); + result._tag = _tag; + result.dataResidencyMigrationRequestSuccessfulValue = dataResidencyMigrationRequestSuccessfulValue; + return result; + } + + /** + * The type of the event with description. + * + * @param dataResidencyMigrationRequestUnsuccessfulValue (team_profile) + * Request for data residency migration for team data has failed. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndDataResidencyMigrationRequestUnsuccessful(Tag _tag, DataResidencyMigrationRequestUnsuccessfulType dataResidencyMigrationRequestUnsuccessfulValue) { + EventType result = new EventType(); + result._tag = _tag; + result.dataResidencyMigrationRequestUnsuccessfulValue = dataResidencyMigrationRequestUnsuccessfulValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeFromValue (team_profile) Merged another team into this + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeFrom(Tag _tag, TeamMergeFromType teamMergeFromValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeFromValue = teamMergeFromValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeToValue (team_profile) Merged this team into another + * team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeTo(Tag _tag, TeamMergeToType teamMergeToValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeToValue = teamMergeToValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileAddBackgroundValue (team_profile) Added team + * background to display on shared link headers. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileAddBackground(Tag _tag, TeamProfileAddBackgroundType teamProfileAddBackgroundValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileAddBackgroundValue = teamProfileAddBackgroundValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileAddLogoValue (team_profile) Added team logo to display + * on shared link headers. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileAddLogo(Tag _tag, TeamProfileAddLogoType teamProfileAddLogoValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileAddLogoValue = teamProfileAddLogoValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileChangeBackgroundValue (team_profile) Changed team + * background displayed on shared link headers. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileChangeBackground(Tag _tag, TeamProfileChangeBackgroundType teamProfileChangeBackgroundValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileChangeBackgroundValue = teamProfileChangeBackgroundValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileChangeDefaultLanguageValue (team_profile) Changed + * default language for team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileChangeDefaultLanguage(Tag _tag, TeamProfileChangeDefaultLanguageType teamProfileChangeDefaultLanguageValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileChangeDefaultLanguageValue = teamProfileChangeDefaultLanguageValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileChangeLogoValue (team_profile) Changed team logo + * displayed on shared link headers. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileChangeLogo(Tag _tag, TeamProfileChangeLogoType teamProfileChangeLogoValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileChangeLogoValue = teamProfileChangeLogoValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileChangeNameValue (team_profile) Changed team name. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileChangeName(Tag _tag, TeamProfileChangeNameType teamProfileChangeNameValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileChangeNameValue = teamProfileChangeNameValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileRemoveBackgroundValue (team_profile) Removed team + * background displayed on shared link headers. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileRemoveBackground(Tag _tag, TeamProfileRemoveBackgroundType teamProfileRemoveBackgroundValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileRemoveBackgroundValue = teamProfileRemoveBackgroundValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamProfileRemoveLogoValue (team_profile) Removed team logo + * displayed on shared link headers. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamProfileRemoveLogo(Tag _tag, TeamProfileRemoveLogoType teamProfileRemoveLogoValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamProfileRemoveLogoValue = teamProfileRemoveLogoValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaAddBackupPhoneValue (tfa) Added backup phone for two-step + * verification. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaAddBackupPhone(Tag _tag, TfaAddBackupPhoneType tfaAddBackupPhoneValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaAddBackupPhoneValue = tfaAddBackupPhoneValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaAddSecurityKeyValue (tfa) Added security key for two-step + * verification. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaAddSecurityKey(Tag _tag, TfaAddSecurityKeyType tfaAddSecurityKeyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaAddSecurityKeyValue = tfaAddSecurityKeyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaChangeBackupPhoneValue (tfa) Changed backup phone for two-step + * verification. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaChangeBackupPhone(Tag _tag, TfaChangeBackupPhoneType tfaChangeBackupPhoneValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaChangeBackupPhoneValue = tfaChangeBackupPhoneValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaChangeStatusValue (tfa) Enabled/disabled/changed two-step + * verification setting. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaChangeStatus(Tag _tag, TfaChangeStatusType tfaChangeStatusValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaChangeStatusValue = tfaChangeStatusValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaRemoveBackupPhoneValue (tfa) Removed backup phone for two-step + * verification. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaRemoveBackupPhone(Tag _tag, TfaRemoveBackupPhoneType tfaRemoveBackupPhoneValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaRemoveBackupPhoneValue = tfaRemoveBackupPhoneValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaRemoveSecurityKeyValue (tfa) Removed security key for two-step + * verification. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaRemoveSecurityKey(Tag _tag, TfaRemoveSecurityKeyType tfaRemoveSecurityKeyValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaRemoveSecurityKeyValue = tfaRemoveSecurityKeyValue; + return result; + } + + /** + * The type of the event with description. + * + * @param tfaResetValue (tfa) Reset two-step verification for team member. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTfaReset(Tag _tag, TfaResetType tfaResetValue) { + EventType result = new EventType(); + result._tag = _tag; + result.tfaResetValue = tfaResetValue; + return result; + } + + /** + * The type of the event with description. + * + * @param changedEnterpriseAdminRoleValue (trusted_teams) Changed + * enterprise admin role. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndChangedEnterpriseAdminRole(Tag _tag, ChangedEnterpriseAdminRoleType changedEnterpriseAdminRoleValue) { + EventType result = new EventType(); + result._tag = _tag; + result.changedEnterpriseAdminRoleValue = changedEnterpriseAdminRoleValue; + return result; + } + + /** + * The type of the event with description. + * + * @param changedEnterpriseConnectedTeamStatusValue (trusted_teams) Changed + * enterprise-connected team status. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndChangedEnterpriseConnectedTeamStatus(Tag _tag, ChangedEnterpriseConnectedTeamStatusType changedEnterpriseConnectedTeamStatusValue) { + EventType result = new EventType(); + result._tag = _tag; + result.changedEnterpriseConnectedTeamStatusValue = changedEnterpriseConnectedTeamStatusValue; + return result; + } + + /** + * The type of the event with description. + * + * @param endedEnterpriseAdminSessionValue (trusted_teams) Ended enterprise + * admin session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEndedEnterpriseAdminSession(Tag _tag, EndedEnterpriseAdminSessionType endedEnterpriseAdminSessionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.endedEnterpriseAdminSessionValue = endedEnterpriseAdminSessionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param endedEnterpriseAdminSessionDeprecatedValue (trusted_teams) Ended + * enterprise admin session (deprecated, replaced by 'Ended enterprise + * admin session'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEndedEnterpriseAdminSessionDeprecated(Tag _tag, EndedEnterpriseAdminSessionDeprecatedType endedEnterpriseAdminSessionDeprecatedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.endedEnterpriseAdminSessionDeprecatedValue = endedEnterpriseAdminSessionDeprecatedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param enterpriseSettingsLockingValue (trusted_teams) Changed who can + * update a setting. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndEnterpriseSettingsLocking(Tag _tag, EnterpriseSettingsLockingType enterpriseSettingsLockingValue) { + EventType result = new EventType(); + result._tag = _tag; + result.enterpriseSettingsLockingValue = enterpriseSettingsLockingValue; + return result; + } + + /** + * The type of the event with description. + * + * @param guestAdminChangeStatusValue (trusted_teams) Changed guest team + * admin status. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndGuestAdminChangeStatus(Tag _tag, GuestAdminChangeStatusType guestAdminChangeStatusValue) { + EventType result = new EventType(); + result._tag = _tag; + result.guestAdminChangeStatusValue = guestAdminChangeStatusValue; + return result; + } + + /** + * The type of the event with description. + * + * @param startedEnterpriseAdminSessionValue (trusted_teams) Started + * enterprise admin session. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndStartedEnterpriseAdminSession(Tag _tag, StartedEnterpriseAdminSessionType startedEnterpriseAdminSessionValue) { + EventType result = new EventType(); + result._tag = _tag; + result.startedEnterpriseAdminSessionValue = startedEnterpriseAdminSessionValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestAcceptedValue (trusted_teams) Accepted a team + * merge request. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestAccepted(Tag _tag, TeamMergeRequestAcceptedType teamMergeRequestAcceptedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestAcceptedValue = teamMergeRequestAcceptedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestAcceptedShownToPrimaryTeamValue (trusted_teams) + * Accepted a team merge request (deprecated, replaced by 'Accepted a + * team merge request'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestAcceptedShownToPrimaryTeam(Tag _tag, TeamMergeRequestAcceptedShownToPrimaryTeamType teamMergeRequestAcceptedShownToPrimaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestAcceptedShownToPrimaryTeamValue = teamMergeRequestAcceptedShownToPrimaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestAcceptedShownToSecondaryTeamValue (trusted_teams) + * Accepted a team merge request (deprecated, replaced by 'Accepted a + * team merge request'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestAcceptedShownToSecondaryTeam(Tag _tag, TeamMergeRequestAcceptedShownToSecondaryTeamType teamMergeRequestAcceptedShownToSecondaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestAcceptedShownToSecondaryTeamValue = teamMergeRequestAcceptedShownToSecondaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestAutoCanceledValue (trusted_teams) Automatically + * canceled team merge request. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestAutoCanceled(Tag _tag, TeamMergeRequestAutoCanceledType teamMergeRequestAutoCanceledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestAutoCanceledValue = teamMergeRequestAutoCanceledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestCanceledValue (trusted_teams) Canceled a team + * merge request. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestCanceled(Tag _tag, TeamMergeRequestCanceledType teamMergeRequestCanceledValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestCanceledValue = teamMergeRequestCanceledValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestCanceledShownToPrimaryTeamValue (trusted_teams) + * Canceled a team merge request (deprecated, replaced by 'Canceled a + * team merge request'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestCanceledShownToPrimaryTeam(Tag _tag, TeamMergeRequestCanceledShownToPrimaryTeamType teamMergeRequestCanceledShownToPrimaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestCanceledShownToPrimaryTeamValue = teamMergeRequestCanceledShownToPrimaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestCanceledShownToSecondaryTeamValue (trusted_teams) + * Canceled a team merge request (deprecated, replaced by 'Canceled a + * team merge request'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestCanceledShownToSecondaryTeam(Tag _tag, TeamMergeRequestCanceledShownToSecondaryTeamType teamMergeRequestCanceledShownToSecondaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestCanceledShownToSecondaryTeamValue = teamMergeRequestCanceledShownToSecondaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestExpiredValue (trusted_teams) Team merge request + * expired. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestExpired(Tag _tag, TeamMergeRequestExpiredType teamMergeRequestExpiredValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestExpiredValue = teamMergeRequestExpiredValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestExpiredShownToPrimaryTeamValue (trusted_teams) + * Team merge request expired (deprecated, replaced by 'Team merge + * request expired'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestExpiredShownToPrimaryTeam(Tag _tag, TeamMergeRequestExpiredShownToPrimaryTeamType teamMergeRequestExpiredShownToPrimaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestExpiredShownToPrimaryTeamValue = teamMergeRequestExpiredShownToPrimaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestExpiredShownToSecondaryTeamValue (trusted_teams) + * Team merge request expired (deprecated, replaced by 'Team merge + * request expired'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestExpiredShownToSecondaryTeam(Tag _tag, TeamMergeRequestExpiredShownToSecondaryTeamType teamMergeRequestExpiredShownToSecondaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestExpiredShownToSecondaryTeamValue = teamMergeRequestExpiredShownToSecondaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestRejectedShownToPrimaryTeamValue (trusted_teams) + * Rejected a team merge request (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestRejectedShownToPrimaryTeam(Tag _tag, TeamMergeRequestRejectedShownToPrimaryTeamType teamMergeRequestRejectedShownToPrimaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestRejectedShownToPrimaryTeamValue = teamMergeRequestRejectedShownToPrimaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestRejectedShownToSecondaryTeamValue (trusted_teams) + * Rejected a team merge request (deprecated, no longer logged). Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestRejectedShownToSecondaryTeam(Tag _tag, TeamMergeRequestRejectedShownToSecondaryTeamType teamMergeRequestRejectedShownToSecondaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestRejectedShownToSecondaryTeamValue = teamMergeRequestRejectedShownToSecondaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestReminderValue (trusted_teams) Sent a team merge + * request reminder. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestReminder(Tag _tag, TeamMergeRequestReminderType teamMergeRequestReminderValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestReminderValue = teamMergeRequestReminderValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestReminderShownToPrimaryTeamValue (trusted_teams) + * Sent a team merge request reminder (deprecated, replaced by 'Sent a + * team merge request reminder'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestReminderShownToPrimaryTeam(Tag _tag, TeamMergeRequestReminderShownToPrimaryTeamType teamMergeRequestReminderShownToPrimaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestReminderShownToPrimaryTeamValue = teamMergeRequestReminderShownToPrimaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestReminderShownToSecondaryTeamValue (trusted_teams) + * Sent a team merge request reminder (deprecated, replaced by 'Sent a + * team merge request reminder'). Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestReminderShownToSecondaryTeam(Tag _tag, TeamMergeRequestReminderShownToSecondaryTeamType teamMergeRequestReminderShownToSecondaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestReminderShownToSecondaryTeamValue = teamMergeRequestReminderShownToSecondaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestRevokedValue (trusted_teams) Canceled the team + * merge. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestRevoked(Tag _tag, TeamMergeRequestRevokedType teamMergeRequestRevokedValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestRevokedValue = teamMergeRequestRevokedValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestSentShownToPrimaryTeamValue (trusted_teams) + * Requested to merge their Dropbox team into yours. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestSentShownToPrimaryTeam(Tag _tag, TeamMergeRequestSentShownToPrimaryTeamType teamMergeRequestSentShownToPrimaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestSentShownToPrimaryTeamValue = teamMergeRequestSentShownToPrimaryTeamValue; + return result; + } + + /** + * The type of the event with description. + * + * @param teamMergeRequestSentShownToSecondaryTeamValue (trusted_teams) + * Requested to merge your team into another Dropbox team. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private EventType withTagAndTeamMergeRequestSentShownToSecondaryTeam(Tag _tag, TeamMergeRequestSentShownToSecondaryTeamType teamMergeRequestSentShownToSecondaryTeamValue) { + EventType result = new EventType(); + result._tag = _tag; + result.teamMergeRequestSentShownToSecondaryTeamValue = teamMergeRequestSentShownToSecondaryTeamValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code EventType}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED}, {@code false} otherwise. + */ + public boolean isAdminAlertingAlertStateChanged() { + return this._tag == Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED}. + * + *

(admin_alerting) Changed an alert state

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType adminAlertingAlertStateChanged(AdminAlertingAlertStateChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAdminAlertingAlertStateChanged(Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED, value); + } + + /** + * (admin_alerting) Changed an alert state + * + *

This instance must be tagged as {@link + * Tag#ADMIN_ALERTING_ALERT_STATE_CHANGED}.

+ * + * @return The {@link AdminAlertingAlertStateChangedType} value associated + * with this instance if {@link #isAdminAlertingAlertStateChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isAdminAlertingAlertStateChanged} is {@code false}. + */ + public AdminAlertingAlertStateChangedType getAdminAlertingAlertStateChangedValue() { + if (this._tag != Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_ALERTING_ALERT_STATE_CHANGED, but was Tag." + this._tag.name()); + } + return adminAlertingAlertStateChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG}, {@code false} otherwise. + */ + public boolean isAdminAlertingChangedAlertConfig() { + return this._tag == Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG}. + * + *

(admin_alerting) Changed an alert setting

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType adminAlertingChangedAlertConfig(AdminAlertingChangedAlertConfigType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAdminAlertingChangedAlertConfig(Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG, value); + } + + /** + * (admin_alerting) Changed an alert setting + * + *

This instance must be tagged as {@link + * Tag#ADMIN_ALERTING_CHANGED_ALERT_CONFIG}.

+ * + * @return The {@link AdminAlertingChangedAlertConfigType} value associated + * with this instance if {@link #isAdminAlertingChangedAlertConfig} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isAdminAlertingChangedAlertConfig} is {@code false}. + */ + public AdminAlertingChangedAlertConfigType getAdminAlertingChangedAlertConfigValue() { + if (this._tag != Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_ALERTING_CHANGED_ALERT_CONFIG, but was Tag." + this._tag.name()); + } + return adminAlertingChangedAlertConfigValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT}, {@code false} otherwise. + */ + public boolean isAdminAlertingTriggeredAlert() { + return this._tag == Tag.ADMIN_ALERTING_TRIGGERED_ALERT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT}. + * + *

(admin_alerting) Triggered security alert

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType adminAlertingTriggeredAlert(AdminAlertingTriggeredAlertType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAdminAlertingTriggeredAlert(Tag.ADMIN_ALERTING_TRIGGERED_ALERT, value); + } + + /** + * (admin_alerting) Triggered security alert + * + *

This instance must be tagged as {@link + * Tag#ADMIN_ALERTING_TRIGGERED_ALERT}.

+ * + * @return The {@link AdminAlertingTriggeredAlertType} value associated with + * this instance if {@link #isAdminAlertingTriggeredAlert} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isAdminAlertingTriggeredAlert} + * is {@code false}. + */ + public AdminAlertingTriggeredAlertType getAdminAlertingTriggeredAlertValue() { + if (this._tag != Tag.ADMIN_ALERTING_TRIGGERED_ALERT) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_ALERTING_TRIGGERED_ALERT, but was Tag." + this._tag.name()); + } + return adminAlertingTriggeredAlertValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED}, {@code false} otherwise. + */ + public boolean isRansomwareRestoreProcessCompleted() { + return this._tag == Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED}. + * + *

(admin_alerting) Completed ransomware restore process

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ransomwareRestoreProcessCompleted(RansomwareRestoreProcessCompletedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndRansomwareRestoreProcessCompleted(Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED, value); + } + + /** + * (admin_alerting) Completed ransomware restore process + * + *

This instance must be tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_COMPLETED}.

+ * + * @return The {@link RansomwareRestoreProcessCompletedType} value + * associated with this instance if {@link + * #isRansomwareRestoreProcessCompleted} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isRansomwareRestoreProcessCompleted} is {@code false}. + */ + public RansomwareRestoreProcessCompletedType getRansomwareRestoreProcessCompletedValue() { + if (this._tag != Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_RESTORE_PROCESS_COMPLETED, but was Tag." + this._tag.name()); + } + return ransomwareRestoreProcessCompletedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED}, {@code false} otherwise. + */ + public boolean isRansomwareRestoreProcessStarted() { + return this._tag == Tag.RANSOMWARE_RESTORE_PROCESS_STARTED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED}. + * + *

(admin_alerting) Started ransomware restore process

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ransomwareRestoreProcessStarted(RansomwareRestoreProcessStartedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndRansomwareRestoreProcessStarted(Tag.RANSOMWARE_RESTORE_PROCESS_STARTED, value); + } + + /** + * (admin_alerting) Started ransomware restore process + * + *

This instance must be tagged as {@link + * Tag#RANSOMWARE_RESTORE_PROCESS_STARTED}.

+ * + * @return The {@link RansomwareRestoreProcessStartedType} value associated + * with this instance if {@link #isRansomwareRestoreProcessStarted} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isRansomwareRestoreProcessStarted} is {@code false}. + */ + public RansomwareRestoreProcessStartedType getRansomwareRestoreProcessStartedValue() { + if (this._tag != Tag.RANSOMWARE_RESTORE_PROCESS_STARTED) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_RESTORE_PROCESS_STARTED, but was Tag." + this._tag.name()); + } + return ransomwareRestoreProcessStartedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS}, {@code false} otherwise. + */ + public boolean isAppBlockedByPermissions() { + return this._tag == Tag.APP_BLOCKED_BY_PERMISSIONS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS}. + * + *

(apps) Failed to connect app for member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType appBlockedByPermissions(AppBlockedByPermissionsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAppBlockedByPermissions(Tag.APP_BLOCKED_BY_PERMISSIONS, value); + } + + /** + * (apps) Failed to connect app for member + * + *

This instance must be tagged as {@link + * Tag#APP_BLOCKED_BY_PERMISSIONS}.

+ * + * @return The {@link AppBlockedByPermissionsType} value associated with + * this instance if {@link #isAppBlockedByPermissions} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppBlockedByPermissions} is + * {@code false}. + */ + public AppBlockedByPermissionsType getAppBlockedByPermissionsValue() { + if (this._tag != Tag.APP_BLOCKED_BY_PERMISSIONS) { + throw new IllegalStateException("Invalid tag: required Tag.APP_BLOCKED_BY_PERMISSIONS, but was Tag." + this._tag.name()); + } + return appBlockedByPermissionsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_LINK_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_LINK_TEAM}, {@code false} otherwise. + */ + public boolean isAppLinkTeam() { + return this._tag == Tag.APP_LINK_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#APP_LINK_TEAM}. + * + *

(apps) Linked app for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#APP_LINK_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType appLinkTeam(AppLinkTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAppLinkTeam(Tag.APP_LINK_TEAM, value); + } + + /** + * (apps) Linked app for team + * + *

This instance must be tagged as {@link Tag#APP_LINK_TEAM}.

+ * + * @return The {@link AppLinkTeamType} value associated with this instance + * if {@link #isAppLinkTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppLinkTeam} is {@code + * false}. + */ + public AppLinkTeamType getAppLinkTeamValue() { + if (this._tag != Tag.APP_LINK_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.APP_LINK_TEAM, but was Tag." + this._tag.name()); + } + return appLinkTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_LINK_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_LINK_USER}, {@code false} otherwise. + */ + public boolean isAppLinkUser() { + return this._tag == Tag.APP_LINK_USER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#APP_LINK_USER}. + * + *

(apps) Linked app for member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#APP_LINK_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType appLinkUser(AppLinkUserType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAppLinkUser(Tag.APP_LINK_USER, value); + } + + /** + * (apps) Linked app for member + * + *

This instance must be tagged as {@link Tag#APP_LINK_USER}.

+ * + * @return The {@link AppLinkUserType} value associated with this instance + * if {@link #isAppLinkUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppLinkUser} is {@code + * false}. + */ + public AppLinkUserType getAppLinkUserValue() { + if (this._tag != Tag.APP_LINK_USER) { + throw new IllegalStateException("Invalid tag: required Tag.APP_LINK_USER, but was Tag." + this._tag.name()); + } + return appLinkUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_UNLINK_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_UNLINK_TEAM}, {@code false} otherwise. + */ + public boolean isAppUnlinkTeam() { + return this._tag == Tag.APP_UNLINK_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#APP_UNLINK_TEAM}. + * + *

(apps) Unlinked app for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#APP_UNLINK_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType appUnlinkTeam(AppUnlinkTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAppUnlinkTeam(Tag.APP_UNLINK_TEAM, value); + } + + /** + * (apps) Unlinked app for team + * + *

This instance must be tagged as {@link Tag#APP_UNLINK_TEAM}.

+ * + * @return The {@link AppUnlinkTeamType} value associated with this instance + * if {@link #isAppUnlinkTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppUnlinkTeam} is {@code + * false}. + */ + public AppUnlinkTeamType getAppUnlinkTeamValue() { + if (this._tag != Tag.APP_UNLINK_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.APP_UNLINK_TEAM, but was Tag." + this._tag.name()); + } + return appUnlinkTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_UNLINK_USER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_UNLINK_USER}, {@code false} otherwise. + */ + public boolean isAppUnlinkUser() { + return this._tag == Tag.APP_UNLINK_USER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#APP_UNLINK_USER}. + * + *

(apps) Unlinked app for member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#APP_UNLINK_USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType appUnlinkUser(AppUnlinkUserType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAppUnlinkUser(Tag.APP_UNLINK_USER, value); + } + + /** + * (apps) Unlinked app for member + * + *

This instance must be tagged as {@link Tag#APP_UNLINK_USER}.

+ * + * @return The {@link AppUnlinkUserType} value associated with this instance + * if {@link #isAppUnlinkUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppUnlinkUser} is {@code + * false}. + */ + public AppUnlinkUserType getAppUnlinkUserValue() { + if (this._tag != Tag.APP_UNLINK_USER) { + throw new IllegalStateException("Invalid tag: required Tag.APP_UNLINK_USER, but was Tag." + this._tag.name()); + } + return appUnlinkUserValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTEGRATION_CONNECTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTEGRATION_CONNECTED}, {@code false} otherwise. + */ + public boolean isIntegrationConnected() { + return this._tag == Tag.INTEGRATION_CONNECTED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#INTEGRATION_CONNECTED}. + * + *

(apps) Connected integration for member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#INTEGRATION_CONNECTED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType integrationConnected(IntegrationConnectedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndIntegrationConnected(Tag.INTEGRATION_CONNECTED, value); + } + + /** + * (apps) Connected integration for member + * + *

This instance must be tagged as {@link Tag#INTEGRATION_CONNECTED}. + *

+ * + * @return The {@link IntegrationConnectedType} value associated with this + * instance if {@link #isIntegrationConnected} is {@code true}. + * + * @throws IllegalStateException If {@link #isIntegrationConnected} is + * {@code false}. + */ + public IntegrationConnectedType getIntegrationConnectedValue() { + if (this._tag != Tag.INTEGRATION_CONNECTED) { + throw new IllegalStateException("Invalid tag: required Tag.INTEGRATION_CONNECTED, but was Tag." + this._tag.name()); + } + return integrationConnectedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTEGRATION_DISCONNECTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTEGRATION_DISCONNECTED}, {@code false} otherwise. + */ + public boolean isIntegrationDisconnected() { + return this._tag == Tag.INTEGRATION_DISCONNECTED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#INTEGRATION_DISCONNECTED}. + * + *

(apps) Disconnected integration for member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#INTEGRATION_DISCONNECTED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType integrationDisconnected(IntegrationDisconnectedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndIntegrationDisconnected(Tag.INTEGRATION_DISCONNECTED, value); + } + + /** + * (apps) Disconnected integration for member + * + *

This instance must be tagged as {@link Tag#INTEGRATION_DISCONNECTED}. + *

+ * + * @return The {@link IntegrationDisconnectedType} value associated with + * this instance if {@link #isIntegrationDisconnected} is {@code true}. + * + * @throws IllegalStateException If {@link #isIntegrationDisconnected} is + * {@code false}. + */ + public IntegrationDisconnectedType getIntegrationDisconnectedValue() { + if (this._tag != Tag.INTEGRATION_DISCONNECTED) { + throw new IllegalStateException("Invalid tag: required Tag.INTEGRATION_DISCONNECTED, but was Tag." + this._tag.name()); + } + return integrationDisconnectedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_ADD_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_ADD_COMMENT}, {@code false} otherwise. + */ + public boolean isFileAddComment() { + return this._tag == Tag.FILE_ADD_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_ADD_COMMENT}. + * + *

(comments) Added file comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_ADD_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileAddComment(FileAddCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileAddComment(Tag.FILE_ADD_COMMENT, value); + } + + /** + * (comments) Added file comment + * + *

This instance must be tagged as {@link Tag#FILE_ADD_COMMENT}.

+ * + * @return The {@link FileAddCommentType} value associated with this + * instance if {@link #isFileAddComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileAddComment} is {@code + * false}. + */ + public FileAddCommentType getFileAddCommentValue() { + if (this._tag != Tag.FILE_ADD_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ADD_COMMENT, but was Tag." + this._tag.name()); + } + return fileAddCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION}, {@code false} otherwise. + */ + public boolean isFileChangeCommentSubscription() { + return this._tag == Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION}. + * + *

(comments) Subscribed to or unsubscribed from comment notifications + * for file

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileChangeCommentSubscription(FileChangeCommentSubscriptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileChangeCommentSubscription(Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION, value); + } + + /** + * (comments) Subscribed to or unsubscribed from comment notifications for + * file + * + *

This instance must be tagged as {@link + * Tag#FILE_CHANGE_COMMENT_SUBSCRIPTION}.

+ * + * @return The {@link FileChangeCommentSubscriptionType} value associated + * with this instance if {@link #isFileChangeCommentSubscription} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileChangeCommentSubscription} is {@code false}. + */ + public FileChangeCommentSubscriptionType getFileChangeCommentSubscriptionValue() { + if (this._tag != Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_CHANGE_COMMENT_SUBSCRIPTION, but was Tag." + this._tag.name()); + } + return fileChangeCommentSubscriptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_DELETE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_DELETE_COMMENT}, {@code false} otherwise. + */ + public boolean isFileDeleteComment() { + return this._tag == Tag.FILE_DELETE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_DELETE_COMMENT}. + * + *

(comments) Deleted file comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_DELETE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileDeleteComment(FileDeleteCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileDeleteComment(Tag.FILE_DELETE_COMMENT, value); + } + + /** + * (comments) Deleted file comment + * + *

This instance must be tagged as {@link Tag#FILE_DELETE_COMMENT}.

+ * + * @return The {@link FileDeleteCommentType} value associated with this + * instance if {@link #isFileDeleteComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileDeleteComment} is {@code + * false}. + */ + public FileDeleteCommentType getFileDeleteCommentValue() { + if (this._tag != Tag.FILE_DELETE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_DELETE_COMMENT, but was Tag." + this._tag.name()); + } + return fileDeleteCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_EDIT_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_EDIT_COMMENT}, {@code false} otherwise. + */ + public boolean isFileEditComment() { + return this._tag == Tag.FILE_EDIT_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_EDIT_COMMENT}. + * + *

(comments) Edited file comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_EDIT_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileEditComment(FileEditCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileEditComment(Tag.FILE_EDIT_COMMENT, value); + } + + /** + * (comments) Edited file comment + * + *

This instance must be tagged as {@link Tag#FILE_EDIT_COMMENT}.

+ * + * @return The {@link FileEditCommentType} value associated with this + * instance if {@link #isFileEditComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileEditComment} is {@code + * false}. + */ + public FileEditCommentType getFileEditCommentValue() { + if (this._tag != Tag.FILE_EDIT_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_EDIT_COMMENT, but was Tag." + this._tag.name()); + } + return fileEditCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_LIKE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_LIKE_COMMENT}, {@code false} otherwise. + */ + public boolean isFileLikeComment() { + return this._tag == Tag.FILE_LIKE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_LIKE_COMMENT}. + * + *

(comments) Liked file comment (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_LIKE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileLikeComment(FileLikeCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileLikeComment(Tag.FILE_LIKE_COMMENT, value); + } + + /** + * (comments) Liked file comment (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#FILE_LIKE_COMMENT}.

+ * + * @return The {@link FileLikeCommentType} value associated with this + * instance if {@link #isFileLikeComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileLikeComment} is {@code + * false}. + */ + public FileLikeCommentType getFileLikeCommentValue() { + if (this._tag != Tag.FILE_LIKE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_LIKE_COMMENT, but was Tag." + this._tag.name()); + } + return fileLikeCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_RESOLVE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_RESOLVE_COMMENT}, {@code false} otherwise. + */ + public boolean isFileResolveComment() { + return this._tag == Tag.FILE_RESOLVE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_RESOLVE_COMMENT}. + * + *

(comments) Resolved file comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_RESOLVE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileResolveComment(FileResolveCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileResolveComment(Tag.FILE_RESOLVE_COMMENT, value); + } + + /** + * (comments) Resolved file comment + * + *

This instance must be tagged as {@link Tag#FILE_RESOLVE_COMMENT}. + *

+ * + * @return The {@link FileResolveCommentType} value associated with this + * instance if {@link #isFileResolveComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileResolveComment} is {@code + * false}. + */ + public FileResolveCommentType getFileResolveCommentValue() { + if (this._tag != Tag.FILE_RESOLVE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_RESOLVE_COMMENT, but was Tag." + this._tag.name()); + } + return fileResolveCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_UNLIKE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_UNLIKE_COMMENT}, {@code false} otherwise. + */ + public boolean isFileUnlikeComment() { + return this._tag == Tag.FILE_UNLIKE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_UNLIKE_COMMENT}. + * + *

(comments) Unliked file comment (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_UNLIKE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileUnlikeComment(FileUnlikeCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileUnlikeComment(Tag.FILE_UNLIKE_COMMENT, value); + } + + /** + * (comments) Unliked file comment (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#FILE_UNLIKE_COMMENT}.

+ * + * @return The {@link FileUnlikeCommentType} value associated with this + * instance if {@link #isFileUnlikeComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileUnlikeComment} is {@code + * false}. + */ + public FileUnlikeCommentType getFileUnlikeCommentValue() { + if (this._tag != Tag.FILE_UNLIKE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_UNLIKE_COMMENT, but was Tag." + this._tag.name()); + } + return fileUnlikeCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_UNRESOLVE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_UNRESOLVE_COMMENT}, {@code false} otherwise. + */ + public boolean isFileUnresolveComment() { + return this._tag == Tag.FILE_UNRESOLVE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_UNRESOLVE_COMMENT}. + * + *

(comments) Unresolved file comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_UNRESOLVE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileUnresolveComment(FileUnresolveCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileUnresolveComment(Tag.FILE_UNRESOLVE_COMMENT, value); + } + + /** + * (comments) Unresolved file comment + * + *

This instance must be tagged as {@link Tag#FILE_UNRESOLVE_COMMENT}. + *

+ * + * @return The {@link FileUnresolveCommentType} value associated with this + * instance if {@link #isFileUnresolveComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileUnresolveComment} is + * {@code false}. + */ + public FileUnresolveCommentType getFileUnresolveCommentValue() { + if (this._tag != Tag.FILE_UNRESOLVE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_UNRESOLVE_COMMENT, but was Tag." + this._tag.name()); + } + return fileUnresolveCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS}, {@code false} otherwise. + */ + public boolean isGovernancePolicyAddFolders() { + return this._tag == Tag.GOVERNANCE_POLICY_ADD_FOLDERS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS}. + * + *

(data_governance) Added folders to policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyAddFolders(GovernancePolicyAddFoldersType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyAddFolders(Tag.GOVERNANCE_POLICY_ADD_FOLDERS, value); + } + + /** + * (data_governance) Added folders to policy + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDERS}.

+ * + * @return The {@link GovernancePolicyAddFoldersType} value associated with + * this instance if {@link #isGovernancePolicyAddFolders} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isGovernancePolicyAddFolders} + * is {@code false}. + */ + public GovernancePolicyAddFoldersType getGovernancePolicyAddFoldersValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_ADD_FOLDERS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_ADD_FOLDERS, but was Tag." + this._tag.name()); + } + return governancePolicyAddFoldersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED}, {@code false} otherwise. + */ + public boolean isGovernancePolicyAddFolderFailed() { + return this._tag == Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED}. + * + *

(data_governance) Couldn't add a folder to a policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyAddFolderFailed(GovernancePolicyAddFolderFailedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyAddFolderFailed(Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED, value); + } + + /** + * (data_governance) Couldn't add a folder to a policy + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_ADD_FOLDER_FAILED}.

+ * + * @return The {@link GovernancePolicyAddFolderFailedType} value associated + * with this instance if {@link #isGovernancePolicyAddFolderFailed} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyAddFolderFailed} is {@code false}. + */ + public GovernancePolicyAddFolderFailedType getGovernancePolicyAddFolderFailedValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_ADD_FOLDER_FAILED, but was Tag." + this._tag.name()); + } + return governancePolicyAddFolderFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED}, {@code false} otherwise. + */ + public boolean isGovernancePolicyContentDisposed() { + return this._tag == Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED}. + * + *

(data_governance) Content disposed

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyContentDisposed(GovernancePolicyContentDisposedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyContentDisposed(Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED, value); + } + + /** + * (data_governance) Content disposed + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_CONTENT_DISPOSED}.

+ * + * @return The {@link GovernancePolicyContentDisposedType} value associated + * with this instance if {@link #isGovernancePolicyContentDisposed} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyContentDisposed} is {@code false}. + */ + public GovernancePolicyContentDisposedType getGovernancePolicyContentDisposedValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_CONTENT_DISPOSED, but was Tag." + this._tag.name()); + } + return governancePolicyContentDisposedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_CREATE}, {@code false} otherwise. + */ + public boolean isGovernancePolicyCreate() { + return this._tag == Tag.GOVERNANCE_POLICY_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_CREATE}. + * + *

(data_governance) Activated a new policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyCreate(GovernancePolicyCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyCreate(Tag.GOVERNANCE_POLICY_CREATE, value); + } + + /** + * (data_governance) Activated a new policy + * + *

This instance must be tagged as {@link Tag#GOVERNANCE_POLICY_CREATE}. + *

+ * + * @return The {@link GovernancePolicyCreateType} value associated with this + * instance if {@link #isGovernancePolicyCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isGovernancePolicyCreate} is + * {@code false}. + */ + public GovernancePolicyCreateType getGovernancePolicyCreateValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_CREATE, but was Tag." + this._tag.name()); + } + return governancePolicyCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_DELETE}, {@code false} otherwise. + */ + public boolean isGovernancePolicyDelete() { + return this._tag == Tag.GOVERNANCE_POLICY_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_DELETE}. + * + *

(data_governance) Deleted a policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyDelete(GovernancePolicyDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyDelete(Tag.GOVERNANCE_POLICY_DELETE, value); + } + + /** + * (data_governance) Deleted a policy + * + *

This instance must be tagged as {@link Tag#GOVERNANCE_POLICY_DELETE}. + *

+ * + * @return The {@link GovernancePolicyDeleteType} value associated with this + * instance if {@link #isGovernancePolicyDelete} is {@code true}. + * + * @throws IllegalStateException If {@link #isGovernancePolicyDelete} is + * {@code false}. + */ + public GovernancePolicyDeleteType getGovernancePolicyDeleteValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_DELETE, but was Tag." + this._tag.name()); + } + return governancePolicyDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS}, {@code false} otherwise. + */ + public boolean isGovernancePolicyEditDetails() { + return this._tag == Tag.GOVERNANCE_POLICY_EDIT_DETAILS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS}. + * + *

(data_governance) Edited policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyEditDetails(GovernancePolicyEditDetailsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyEditDetails(Tag.GOVERNANCE_POLICY_EDIT_DETAILS, value); + } + + /** + * (data_governance) Edited policy + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DETAILS}.

+ * + * @return The {@link GovernancePolicyEditDetailsType} value associated with + * this instance if {@link #isGovernancePolicyEditDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isGovernancePolicyEditDetails} + * is {@code false}. + */ + public GovernancePolicyEditDetailsType getGovernancePolicyEditDetailsValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EDIT_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EDIT_DETAILS, but was Tag." + this._tag.name()); + } + return governancePolicyEditDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION}, {@code false} otherwise. + */ + public boolean isGovernancePolicyEditDuration() { + return this._tag == Tag.GOVERNANCE_POLICY_EDIT_DURATION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION}. + * + *

(data_governance) Changed policy duration

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyEditDuration(GovernancePolicyEditDurationType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyEditDuration(Tag.GOVERNANCE_POLICY_EDIT_DURATION, value); + } + + /** + * (data_governance) Changed policy duration + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EDIT_DURATION}.

+ * + * @return The {@link GovernancePolicyEditDurationType} value associated + * with this instance if {@link #isGovernancePolicyEditDuration} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isGovernancePolicyEditDuration} + * is {@code false}. + */ + public GovernancePolicyEditDurationType getGovernancePolicyEditDurationValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EDIT_DURATION) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EDIT_DURATION, but was Tag." + this._tag.name()); + } + return governancePolicyEditDurationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED}, {@code false} otherwise. + */ + public boolean isGovernancePolicyExportCreated() { + return this._tag == Tag.GOVERNANCE_POLICY_EXPORT_CREATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED}. + * + *

(data_governance) Created a policy download

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyExportCreated(GovernancePolicyExportCreatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyExportCreated(Tag.GOVERNANCE_POLICY_EXPORT_CREATED, value); + } + + /** + * (data_governance) Created a policy download + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_CREATED}.

+ * + * @return The {@link GovernancePolicyExportCreatedType} value associated + * with this instance if {@link #isGovernancePolicyExportCreated} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyExportCreated} is {@code false}. + */ + public GovernancePolicyExportCreatedType getGovernancePolicyExportCreatedValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EXPORT_CREATED) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EXPORT_CREATED, but was Tag." + this._tag.name()); + } + return governancePolicyExportCreatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED}, {@code false} otherwise. + */ + public boolean isGovernancePolicyExportRemoved() { + return this._tag == Tag.GOVERNANCE_POLICY_EXPORT_REMOVED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED}. + * + *

(data_governance) Removed a policy download

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyExportRemoved(GovernancePolicyExportRemovedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyExportRemoved(Tag.GOVERNANCE_POLICY_EXPORT_REMOVED, value); + } + + /** + * (data_governance) Removed a policy download + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_EXPORT_REMOVED}.

+ * + * @return The {@link GovernancePolicyExportRemovedType} value associated + * with this instance if {@link #isGovernancePolicyExportRemoved} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyExportRemoved} is {@code false}. + */ + public GovernancePolicyExportRemovedType getGovernancePolicyExportRemovedValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_EXPORT_REMOVED) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_EXPORT_REMOVED, but was Tag." + this._tag.name()); + } + return governancePolicyExportRemovedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS}, {@code false} otherwise. + */ + public boolean isGovernancePolicyRemoveFolders() { + return this._tag == Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS}. + * + *

(data_governance) Removed folders from policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyRemoveFolders(GovernancePolicyRemoveFoldersType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyRemoveFolders(Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS, value); + } + + /** + * (data_governance) Removed folders from policy + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_REMOVE_FOLDERS}.

+ * + * @return The {@link GovernancePolicyRemoveFoldersType} value associated + * with this instance if {@link #isGovernancePolicyRemoveFolders} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyRemoveFolders} is {@code false}. + */ + public GovernancePolicyRemoveFoldersType getGovernancePolicyRemoveFoldersValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_REMOVE_FOLDERS, but was Tag." + this._tag.name()); + } + return governancePolicyRemoveFoldersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED}, {@code false} otherwise. + */ + public boolean isGovernancePolicyReportCreated() { + return this._tag == Tag.GOVERNANCE_POLICY_REPORT_CREATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED}. + * + *

(data_governance) Created a summary report for a policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyReportCreated(GovernancePolicyReportCreatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyReportCreated(Tag.GOVERNANCE_POLICY_REPORT_CREATED, value); + } + + /** + * (data_governance) Created a summary report for a policy + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_REPORT_CREATED}.

+ * + * @return The {@link GovernancePolicyReportCreatedType} value associated + * with this instance if {@link #isGovernancePolicyReportCreated} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyReportCreated} is {@code false}. + */ + public GovernancePolicyReportCreatedType getGovernancePolicyReportCreatedValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_REPORT_CREATED) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_REPORT_CREATED, but was Tag." + this._tag.name()); + } + return governancePolicyReportCreatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED}, {@code false} otherwise. + */ + public boolean isGovernancePolicyZipPartDownloaded() { + return this._tag == Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED}. + * + *

(data_governance) Downloaded content from a policy

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType governancePolicyZipPartDownloaded(GovernancePolicyZipPartDownloadedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGovernancePolicyZipPartDownloaded(Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED, value); + } + + /** + * (data_governance) Downloaded content from a policy + * + *

This instance must be tagged as {@link + * Tag#GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED}.

+ * + * @return The {@link GovernancePolicyZipPartDownloadedType} value + * associated with this instance if {@link + * #isGovernancePolicyZipPartDownloaded} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGovernancePolicyZipPartDownloaded} is {@code false}. + */ + public GovernancePolicyZipPartDownloadedType getGovernancePolicyZipPartDownloadedValue() { + if (this._tag != Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED) { + throw new IllegalStateException("Invalid tag: required Tag.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED, but was Tag." + this._tag.name()); + } + return governancePolicyZipPartDownloadedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD}, {@code false} otherwise. + */ + public boolean isLegalHoldsActivateAHold() { + return this._tag == Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD}. + * + *

(data_governance) Activated a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsActivateAHold(LegalHoldsActivateAHoldType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsActivateAHold(Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD, value); + } + + /** + * (data_governance) Activated a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_ACTIVATE_A_HOLD}.

+ * + * @return The {@link LegalHoldsActivateAHoldType} value associated with + * this instance if {@link #isLegalHoldsActivateAHold} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsActivateAHold} is + * {@code false}. + */ + public LegalHoldsActivateAHoldType getLegalHoldsActivateAHoldValue() { + if (this._tag != Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_ACTIVATE_A_HOLD, but was Tag." + this._tag.name()); + } + return legalHoldsActivateAHoldValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS}, {@code false} otherwise. + */ + public boolean isLegalHoldsAddMembers() { + return this._tag == Tag.LEGAL_HOLDS_ADD_MEMBERS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS}. + * + *

(data_governance) Added members to a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_ADD_MEMBERS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsAddMembers(LegalHoldsAddMembersType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsAddMembers(Tag.LEGAL_HOLDS_ADD_MEMBERS, value); + } + + /** + * (data_governance) Added members to a hold + * + *

This instance must be tagged as {@link Tag#LEGAL_HOLDS_ADD_MEMBERS}. + *

+ * + * @return The {@link LegalHoldsAddMembersType} value associated with this + * instance if {@link #isLegalHoldsAddMembers} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsAddMembers} is + * {@code false}. + */ + public LegalHoldsAddMembersType getLegalHoldsAddMembersValue() { + if (this._tag != Tag.LEGAL_HOLDS_ADD_MEMBERS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_ADD_MEMBERS, but was Tag." + this._tag.name()); + } + return legalHoldsAddMembersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS}, {@code false} otherwise. + */ + public boolean isLegalHoldsChangeHoldDetails() { + return this._tag == Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS}. + * + *

(data_governance) Edited details for a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsChangeHoldDetails(LegalHoldsChangeHoldDetailsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsChangeHoldDetails(Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS, value); + } + + /** + * (data_governance) Edited details for a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_DETAILS}.

+ * + * @return The {@link LegalHoldsChangeHoldDetailsType} value associated with + * this instance if {@link #isLegalHoldsChangeHoldDetails} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsChangeHoldDetails} + * is {@code false}. + */ + public LegalHoldsChangeHoldDetailsType getLegalHoldsChangeHoldDetailsValue() { + if (this._tag != Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_CHANGE_HOLD_DETAILS, but was Tag." + this._tag.name()); + } + return legalHoldsChangeHoldDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME}, {@code false} otherwise. + */ + public boolean isLegalHoldsChangeHoldName() { + return this._tag == Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME}. + * + *

(data_governance) Renamed a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsChangeHoldName(LegalHoldsChangeHoldNameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsChangeHoldName(Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME, value); + } + + /** + * (data_governance) Renamed a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_CHANGE_HOLD_NAME}.

+ * + * @return The {@link LegalHoldsChangeHoldNameType} value associated with + * this instance if {@link #isLegalHoldsChangeHoldName} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsChangeHoldName} is + * {@code false}. + */ + public LegalHoldsChangeHoldNameType getLegalHoldsChangeHoldNameValue() { + if (this._tag != Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_CHANGE_HOLD_NAME, but was Tag." + this._tag.name()); + } + return legalHoldsChangeHoldNameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportAHold() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_A_HOLD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD}. + * + *

(data_governance) Exported hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsExportAHold(LegalHoldsExportAHoldType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsExportAHold(Tag.LEGAL_HOLDS_EXPORT_A_HOLD, value); + } + + /** + * (data_governance) Exported hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_A_HOLD}.

+ * + * @return The {@link LegalHoldsExportAHoldType} value associated with this + * instance if {@link #isLegalHoldsExportAHold} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsExportAHold} is + * {@code false}. + */ + public LegalHoldsExportAHoldType getLegalHoldsExportAHoldValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_A_HOLD) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_A_HOLD, but was Tag." + this._tag.name()); + } + return legalHoldsExportAHoldValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportCancelled() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_CANCELLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED}. + * + *

(data_governance) Canceled export for a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsExportCancelled(LegalHoldsExportCancelledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsExportCancelled(Tag.LEGAL_HOLDS_EXPORT_CANCELLED, value); + } + + /** + * (data_governance) Canceled export for a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_CANCELLED}.

+ * + * @return The {@link LegalHoldsExportCancelledType} value associated with + * this instance if {@link #isLegalHoldsExportCancelled} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsExportCancelled} is + * {@code false}. + */ + public LegalHoldsExportCancelledType getLegalHoldsExportCancelledValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_CANCELLED) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_CANCELLED, but was Tag." + this._tag.name()); + } + return legalHoldsExportCancelledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportDownloaded() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED}. + * + *

(data_governance) Downloaded export for a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsExportDownloaded(LegalHoldsExportDownloadedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsExportDownloaded(Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED, value); + } + + /** + * (data_governance) Downloaded export for a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_DOWNLOADED}.

+ * + * @return The {@link LegalHoldsExportDownloadedType} value associated with + * this instance if {@link #isLegalHoldsExportDownloaded} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsExportDownloaded} + * is {@code false}. + */ + public LegalHoldsExportDownloadedType getLegalHoldsExportDownloadedValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_DOWNLOADED, but was Tag." + this._tag.name()); + } + return legalHoldsExportDownloadedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED}, {@code false} otherwise. + */ + public boolean isLegalHoldsExportRemoved() { + return this._tag == Tag.LEGAL_HOLDS_EXPORT_REMOVED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED}. + * + *

(data_governance) Removed export for a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsExportRemoved(LegalHoldsExportRemovedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsExportRemoved(Tag.LEGAL_HOLDS_EXPORT_REMOVED, value); + } + + /** + * (data_governance) Removed export for a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_EXPORT_REMOVED}.

+ * + * @return The {@link LegalHoldsExportRemovedType} value associated with + * this instance if {@link #isLegalHoldsExportRemoved} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsExportRemoved} is + * {@code false}. + */ + public LegalHoldsExportRemovedType getLegalHoldsExportRemovedValue() { + if (this._tag != Tag.LEGAL_HOLDS_EXPORT_REMOVED) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_EXPORT_REMOVED, but was Tag." + this._tag.name()); + } + return legalHoldsExportRemovedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD}, {@code false} otherwise. + */ + public boolean isLegalHoldsReleaseAHold() { + return this._tag == Tag.LEGAL_HOLDS_RELEASE_A_HOLD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD}. + * + *

(data_governance) Released a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsReleaseAHold(LegalHoldsReleaseAHoldType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsReleaseAHold(Tag.LEGAL_HOLDS_RELEASE_A_HOLD, value); + } + + /** + * (data_governance) Released a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_RELEASE_A_HOLD}.

+ * + * @return The {@link LegalHoldsReleaseAHoldType} value associated with this + * instance if {@link #isLegalHoldsReleaseAHold} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsReleaseAHold} is + * {@code false}. + */ + public LegalHoldsReleaseAHoldType getLegalHoldsReleaseAHoldValue() { + if (this._tag != Tag.LEGAL_HOLDS_RELEASE_A_HOLD) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_RELEASE_A_HOLD, but was Tag." + this._tag.name()); + } + return legalHoldsReleaseAHoldValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS}, {@code false} otherwise. + */ + public boolean isLegalHoldsRemoveMembers() { + return this._tag == Tag.LEGAL_HOLDS_REMOVE_MEMBERS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS}. + * + *

(data_governance) Removed members from a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsRemoveMembers(LegalHoldsRemoveMembersType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsRemoveMembers(Tag.LEGAL_HOLDS_REMOVE_MEMBERS, value); + } + + /** + * (data_governance) Removed members from a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_REMOVE_MEMBERS}.

+ * + * @return The {@link LegalHoldsRemoveMembersType} value associated with + * this instance if {@link #isLegalHoldsRemoveMembers} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsRemoveMembers} is + * {@code false}. + */ + public LegalHoldsRemoveMembersType getLegalHoldsRemoveMembersValue() { + if (this._tag != Tag.LEGAL_HOLDS_REMOVE_MEMBERS) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_REMOVE_MEMBERS, but was Tag." + this._tag.name()); + } + return legalHoldsRemoveMembersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD}, {@code false} otherwise. + */ + public boolean isLegalHoldsReportAHold() { + return this._tag == Tag.LEGAL_HOLDS_REPORT_A_HOLD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD}. + * + *

(data_governance) Created a summary report for a hold

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType legalHoldsReportAHold(LegalHoldsReportAHoldType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLegalHoldsReportAHold(Tag.LEGAL_HOLDS_REPORT_A_HOLD, value); + } + + /** + * (data_governance) Created a summary report for a hold + * + *

This instance must be tagged as {@link + * Tag#LEGAL_HOLDS_REPORT_A_HOLD}.

+ * + * @return The {@link LegalHoldsReportAHoldType} value associated with this + * instance if {@link #isLegalHoldsReportAHold} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegalHoldsReportAHold} is + * {@code false}. + */ + public LegalHoldsReportAHoldType getLegalHoldsReportAHoldValue() { + if (this._tag != Tag.LEGAL_HOLDS_REPORT_A_HOLD) { + throw new IllegalStateException("Invalid tag: required Tag.LEGAL_HOLDS_REPORT_A_HOLD, but was Tag." + this._tag.name()); + } + return legalHoldsReportAHoldValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP}, {@code false} otherwise. + */ + public boolean isDeviceChangeIpDesktop() { + return this._tag == Tag.DEVICE_CHANGE_IP_DESKTOP; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP}. + * + *

(devices) Changed IP address associated with active desktop session + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_CHANGE_IP_DESKTOP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceChangeIpDesktop(DeviceChangeIpDesktopType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceChangeIpDesktop(Tag.DEVICE_CHANGE_IP_DESKTOP, value); + } + + /** + * (devices) Changed IP address associated with active desktop session + * + *

This instance must be tagged as {@link Tag#DEVICE_CHANGE_IP_DESKTOP}. + *

+ * + * @return The {@link DeviceChangeIpDesktopType} value associated with this + * instance if {@link #isDeviceChangeIpDesktop} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceChangeIpDesktop} is + * {@code false}. + */ + public DeviceChangeIpDesktopType getDeviceChangeIpDesktopValue() { + if (this._tag != Tag.DEVICE_CHANGE_IP_DESKTOP) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_CHANGE_IP_DESKTOP, but was Tag." + this._tag.name()); + } + return deviceChangeIpDesktopValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_CHANGE_IP_MOBILE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_CHANGE_IP_MOBILE}, {@code false} otherwise. + */ + public boolean isDeviceChangeIpMobile() { + return this._tag == Tag.DEVICE_CHANGE_IP_MOBILE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_CHANGE_IP_MOBILE}. + * + *

(devices) Changed IP address associated with active mobile session + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_CHANGE_IP_MOBILE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceChangeIpMobile(DeviceChangeIpMobileType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceChangeIpMobile(Tag.DEVICE_CHANGE_IP_MOBILE, value); + } + + /** + * (devices) Changed IP address associated with active mobile session + * + *

This instance must be tagged as {@link Tag#DEVICE_CHANGE_IP_MOBILE}. + *

+ * + * @return The {@link DeviceChangeIpMobileType} value associated with this + * instance if {@link #isDeviceChangeIpMobile} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceChangeIpMobile} is + * {@code false}. + */ + public DeviceChangeIpMobileType getDeviceChangeIpMobileValue() { + if (this._tag != Tag.DEVICE_CHANGE_IP_MOBILE) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_CHANGE_IP_MOBILE, but was Tag." + this._tag.name()); + } + return deviceChangeIpMobileValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_CHANGE_IP_WEB}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_CHANGE_IP_WEB}, {@code false} otherwise. + */ + public boolean isDeviceChangeIpWeb() { + return this._tag == Tag.DEVICE_CHANGE_IP_WEB; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_CHANGE_IP_WEB}. + * + *

(devices) Changed IP address associated with active web session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_CHANGE_IP_WEB}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceChangeIpWeb(DeviceChangeIpWebType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceChangeIpWeb(Tag.DEVICE_CHANGE_IP_WEB, value); + } + + /** + * (devices) Changed IP address associated with active web session + * + *

This instance must be tagged as {@link Tag#DEVICE_CHANGE_IP_WEB}. + *

+ * + * @return The {@link DeviceChangeIpWebType} value associated with this + * instance if {@link #isDeviceChangeIpWeb} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceChangeIpWeb} is {@code + * false}. + */ + public DeviceChangeIpWebType getDeviceChangeIpWebValue() { + if (this._tag != Tag.DEVICE_CHANGE_IP_WEB) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_CHANGE_IP_WEB, but was Tag." + this._tag.name()); + } + return deviceChangeIpWebValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL}, {@code false} otherwise. + */ + public boolean isDeviceDeleteOnUnlinkFail() { + return this._tag == Tag.DEVICE_DELETE_ON_UNLINK_FAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL}. + * + *

(devices) Failed to delete all files from unlinked device

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceDeleteOnUnlinkFail(DeviceDeleteOnUnlinkFailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceDeleteOnUnlinkFail(Tag.DEVICE_DELETE_ON_UNLINK_FAIL, value); + } + + /** + * (devices) Failed to delete all files from unlinked device + * + *

This instance must be tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_FAIL}.

+ * + * @return The {@link DeviceDeleteOnUnlinkFailType} value associated with + * this instance if {@link #isDeviceDeleteOnUnlinkFail} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceDeleteOnUnlinkFail} is + * {@code false}. + */ + public DeviceDeleteOnUnlinkFailType getDeviceDeleteOnUnlinkFailValue() { + if (this._tag != Tag.DEVICE_DELETE_ON_UNLINK_FAIL) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_DELETE_ON_UNLINK_FAIL, but was Tag." + this._tag.name()); + } + return deviceDeleteOnUnlinkFailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS}, {@code false} otherwise. + */ + public boolean isDeviceDeleteOnUnlinkSuccess() { + return this._tag == Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS}. + * + *

(devices) Deleted all files from unlinked device

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceDeleteOnUnlinkSuccess(DeviceDeleteOnUnlinkSuccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceDeleteOnUnlinkSuccess(Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS, value); + } + + /** + * (devices) Deleted all files from unlinked device + * + *

This instance must be tagged as {@link + * Tag#DEVICE_DELETE_ON_UNLINK_SUCCESS}.

+ * + * @return The {@link DeviceDeleteOnUnlinkSuccessType} value associated with + * this instance if {@link #isDeviceDeleteOnUnlinkSuccess} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isDeviceDeleteOnUnlinkSuccess} + * is {@code false}. + */ + public DeviceDeleteOnUnlinkSuccessType getDeviceDeleteOnUnlinkSuccessValue() { + if (this._tag != Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_DELETE_ON_UNLINK_SUCCESS, but was Tag." + this._tag.name()); + } + return deviceDeleteOnUnlinkSuccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_LINK_FAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_LINK_FAIL}, {@code false} otherwise. + */ + public boolean isDeviceLinkFail() { + return this._tag == Tag.DEVICE_LINK_FAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_LINK_FAIL}. + * + *

(devices) Failed to link device

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_LINK_FAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceLinkFail(DeviceLinkFailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceLinkFail(Tag.DEVICE_LINK_FAIL, value); + } + + /** + * (devices) Failed to link device + * + *

This instance must be tagged as {@link Tag#DEVICE_LINK_FAIL}.

+ * + * @return The {@link DeviceLinkFailType} value associated with this + * instance if {@link #isDeviceLinkFail} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceLinkFail} is {@code + * false}. + */ + public DeviceLinkFailType getDeviceLinkFailValue() { + if (this._tag != Tag.DEVICE_LINK_FAIL) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_LINK_FAIL, but was Tag." + this._tag.name()); + } + return deviceLinkFailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_LINK_SUCCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_LINK_SUCCESS}, {@code false} otherwise. + */ + public boolean isDeviceLinkSuccess() { + return this._tag == Tag.DEVICE_LINK_SUCCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_LINK_SUCCESS}. + * + *

(devices) Linked device

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_LINK_SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceLinkSuccess(DeviceLinkSuccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceLinkSuccess(Tag.DEVICE_LINK_SUCCESS, value); + } + + /** + * (devices) Linked device + * + *

This instance must be tagged as {@link Tag#DEVICE_LINK_SUCCESS}.

+ * + * @return The {@link DeviceLinkSuccessType} value associated with this + * instance if {@link #isDeviceLinkSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceLinkSuccess} is {@code + * false}. + */ + public DeviceLinkSuccessType getDeviceLinkSuccessValue() { + if (this._tag != Tag.DEVICE_LINK_SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_LINK_SUCCESS, but was Tag." + this._tag.name()); + } + return deviceLinkSuccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_MANAGEMENT_DISABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_MANAGEMENT_DISABLED}, {@code false} otherwise. + */ + public boolean isDeviceManagementDisabled() { + return this._tag == Tag.DEVICE_MANAGEMENT_DISABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_MANAGEMENT_DISABLED}. + * + *

(devices) Disabled device management (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_MANAGEMENT_DISABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceManagementDisabled(DeviceManagementDisabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceManagementDisabled(Tag.DEVICE_MANAGEMENT_DISABLED, value); + } + + /** + * (devices) Disabled device management (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#DEVICE_MANAGEMENT_DISABLED}.

+ * + * @return The {@link DeviceManagementDisabledType} value associated with + * this instance if {@link #isDeviceManagementDisabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceManagementDisabled} is + * {@code false}. + */ + public DeviceManagementDisabledType getDeviceManagementDisabledValue() { + if (this._tag != Tag.DEVICE_MANAGEMENT_DISABLED) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_MANAGEMENT_DISABLED, but was Tag." + this._tag.name()); + } + return deviceManagementDisabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_MANAGEMENT_ENABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_MANAGEMENT_ENABLED}, {@code false} otherwise. + */ + public boolean isDeviceManagementEnabled() { + return this._tag == Tag.DEVICE_MANAGEMENT_ENABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_MANAGEMENT_ENABLED}. + * + *

(devices) Enabled device management (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_MANAGEMENT_ENABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceManagementEnabled(DeviceManagementEnabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceManagementEnabled(Tag.DEVICE_MANAGEMENT_ENABLED, value); + } + + /** + * (devices) Enabled device management (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#DEVICE_MANAGEMENT_ENABLED}.

+ * + * @return The {@link DeviceManagementEnabledType} value associated with + * this instance if {@link #isDeviceManagementEnabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceManagementEnabled} is + * {@code false}. + */ + public DeviceManagementEnabledType getDeviceManagementEnabledValue() { + if (this._tag != Tag.DEVICE_MANAGEMENT_ENABLED) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_MANAGEMENT_ENABLED, but was Tag." + this._tag.name()); + } + return deviceManagementEnabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED}, {@code false} otherwise. + */ + public boolean isDeviceSyncBackupStatusChanged() { + return this._tag == Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED}. + * + *

(devices) Enabled/disabled backup for computer

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceSyncBackupStatusChanged(DeviceSyncBackupStatusChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceSyncBackupStatusChanged(Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED, value); + } + + /** + * (devices) Enabled/disabled backup for computer + * + *

This instance must be tagged as {@link + * Tag#DEVICE_SYNC_BACKUP_STATUS_CHANGED}.

+ * + * @return The {@link DeviceSyncBackupStatusChangedType} value associated + * with this instance if {@link #isDeviceSyncBackupStatusChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceSyncBackupStatusChanged} is {@code false}. + */ + public DeviceSyncBackupStatusChangedType getDeviceSyncBackupStatusChangedValue() { + if (this._tag != Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_SYNC_BACKUP_STATUS_CHANGED, but was Tag." + this._tag.name()); + } + return deviceSyncBackupStatusChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_UNLINK}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_UNLINK}, {@code false} otherwise. + */ + public boolean isDeviceUnlink() { + return this._tag == Tag.DEVICE_UNLINK; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_UNLINK}. + * + *

(devices) Disconnected device

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_UNLINK}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceUnlink(DeviceUnlinkType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceUnlink(Tag.DEVICE_UNLINK, value); + } + + /** + * (devices) Disconnected device + * + *

This instance must be tagged as {@link Tag#DEVICE_UNLINK}.

+ * + * @return The {@link DeviceUnlinkType} value associated with this instance + * if {@link #isDeviceUnlink} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeviceUnlink} is {@code + * false}. + */ + public DeviceUnlinkType getDeviceUnlinkValue() { + if (this._tag != Tag.DEVICE_UNLINK) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_UNLINK, but was Tag." + this._tag.name()); + } + return deviceUnlinkValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED}, {@code false} otherwise. + */ + public boolean isDropboxPasswordsExported() { + return this._tag == Tag.DROPBOX_PASSWORDS_EXPORTED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED}. + * + *

(devices) Exported passwords

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType dropboxPasswordsExported(DropboxPasswordsExportedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDropboxPasswordsExported(Tag.DROPBOX_PASSWORDS_EXPORTED, value); + } + + /** + * (devices) Exported passwords + * + *

This instance must be tagged as {@link + * Tag#DROPBOX_PASSWORDS_EXPORTED}.

+ * + * @return The {@link DropboxPasswordsExportedType} value associated with + * this instance if {@link #isDropboxPasswordsExported} is {@code true}. + * + * @throws IllegalStateException If {@link #isDropboxPasswordsExported} is + * {@code false}. + */ + public DropboxPasswordsExportedType getDropboxPasswordsExportedValue() { + if (this._tag != Tag.DROPBOX_PASSWORDS_EXPORTED) { + throw new IllegalStateException("Invalid tag: required Tag.DROPBOX_PASSWORDS_EXPORTED, but was Tag." + this._tag.name()); + } + return dropboxPasswordsExportedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED}, {@code false} otherwise. + */ + public boolean isDropboxPasswordsNewDeviceEnrolled() { + return this._tag == Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED}. + * + *

(devices) Enrolled new Dropbox Passwords device

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType dropboxPasswordsNewDeviceEnrolled(DropboxPasswordsNewDeviceEnrolledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDropboxPasswordsNewDeviceEnrolled(Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED, value); + } + + /** + * (devices) Enrolled new Dropbox Passwords device + * + *

This instance must be tagged as {@link + * Tag#DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED}.

+ * + * @return The {@link DropboxPasswordsNewDeviceEnrolledType} value + * associated with this instance if {@link + * #isDropboxPasswordsNewDeviceEnrolled} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDropboxPasswordsNewDeviceEnrolled} is {@code false}. + */ + public DropboxPasswordsNewDeviceEnrolledType getDropboxPasswordsNewDeviceEnrolledValue() { + if (this._tag != Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED) { + throw new IllegalStateException("Invalid tag: required Tag.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED, but was Tag." + this._tag.name()); + } + return dropboxPasswordsNewDeviceEnrolledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_REFRESH_AUTH_TOKEN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_REFRESH_AUTH_TOKEN}, {@code false} otherwise. + */ + public boolean isEmmRefreshAuthToken() { + return this._tag == Tag.EMM_REFRESH_AUTH_TOKEN; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMM_REFRESH_AUTH_TOKEN}. + * + *

(devices) Refreshed auth token used for setting up EMM

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMM_REFRESH_AUTH_TOKEN}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emmRefreshAuthToken(EmmRefreshAuthTokenType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmmRefreshAuthToken(Tag.EMM_REFRESH_AUTH_TOKEN, value); + } + + /** + * (devices) Refreshed auth token used for setting up EMM + * + *

This instance must be tagged as {@link Tag#EMM_REFRESH_AUTH_TOKEN}. + *

+ * + * @return The {@link EmmRefreshAuthTokenType} value associated with this + * instance if {@link #isEmmRefreshAuthToken} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmRefreshAuthToken} is + * {@code false}. + */ + public EmmRefreshAuthTokenType getEmmRefreshAuthTokenValue() { + if (this._tag != Tag.EMM_REFRESH_AUTH_TOKEN) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_REFRESH_AUTH_TOKEN, but was Tag." + this._tag.name()); + } + return emmRefreshAuthTokenValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED}, {@code false} + * otherwise. + */ + public boolean isExternalDriveBackupEligibilityStatusChecked() { + return this._tag == Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED}. + * + *

(devices) Checked external drive backup eligibility status

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType externalDriveBackupEligibilityStatusChecked(ExternalDriveBackupEligibilityStatusCheckedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExternalDriveBackupEligibilityStatusChecked(Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED, value); + } + + /** + * (devices) Checked external drive backup eligibility status + * + *

This instance must be tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED}.

+ * + * @return The {@link ExternalDriveBackupEligibilityStatusCheckedType} value + * associated with this instance if {@link + * #isExternalDriveBackupEligibilityStatusChecked} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isExternalDriveBackupEligibilityStatusChecked} is {@code false}. + */ + public ExternalDriveBackupEligibilityStatusCheckedType getExternalDriveBackupEligibilityStatusCheckedValue() { + if (this._tag != Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED, but was Tag." + this._tag.name()); + } + return externalDriveBackupEligibilityStatusCheckedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED}, {@code false} otherwise. + */ + public boolean isExternalDriveBackupStatusChanged() { + return this._tag == Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED}. + * + *

(devices) Modified external drive backup

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType externalDriveBackupStatusChanged(ExternalDriveBackupStatusChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExternalDriveBackupStatusChanged(Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED, value); + } + + /** + * (devices) Modified external drive backup + * + *

This instance must be tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED}.

+ * + * @return The {@link ExternalDriveBackupStatusChangedType} value associated + * with this instance if {@link #isExternalDriveBackupStatusChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isExternalDriveBackupStatusChanged} is {@code false}. + */ + public ExternalDriveBackupStatusChangedType getExternalDriveBackupStatusChangedValue() { + if (this._tag != Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED, but was Tag." + this._tag.name()); + } + return externalDriveBackupStatusChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY}, {@code false} otherwise. + */ + public boolean isAccountCaptureChangeAvailability() { + return this._tag == Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY}. + * + *

(domains) Granted/revoked option to enable account capture on team + * domains

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType accountCaptureChangeAvailability(AccountCaptureChangeAvailabilityType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAccountCaptureChangeAvailability(Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY, value); + } + + /** + * (domains) Granted/revoked option to enable account capture on team + * domains + * + *

This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_AVAILABILITY}.

+ * + * @return The {@link AccountCaptureChangeAvailabilityType} value associated + * with this instance if {@link #isAccountCaptureChangeAvailability} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureChangeAvailability} is {@code false}. + */ + public AccountCaptureChangeAvailabilityType getAccountCaptureChangeAvailabilityValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY, but was Tag." + this._tag.name()); + } + return accountCaptureChangeAvailabilityValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT}, {@code false} otherwise. + */ + public boolean isAccountCaptureMigrateAccount() { + return this._tag == Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT}. + * + *

(domains) Account-captured user migrated account to team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType accountCaptureMigrateAccount(AccountCaptureMigrateAccountType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAccountCaptureMigrateAccount(Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT, value); + } + + /** + * (domains) Account-captured user migrated account to team + * + *

This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_MIGRATE_ACCOUNT}.

+ * + * @return The {@link AccountCaptureMigrateAccountType} value associated + * with this instance if {@link #isAccountCaptureMigrateAccount} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isAccountCaptureMigrateAccount} + * is {@code false}. + */ + public AccountCaptureMigrateAccountType getAccountCaptureMigrateAccountValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT, but was Tag." + this._tag.name()); + } + return accountCaptureMigrateAccountValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT}, {@code false} + * otherwise. + */ + public boolean isAccountCaptureNotificationEmailsSent() { + return this._tag == Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT}. + * + *

(domains) Sent account capture email to all unmanaged members

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType accountCaptureNotificationEmailsSent(AccountCaptureNotificationEmailsSentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAccountCaptureNotificationEmailsSent(Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT, value); + } + + /** + * (domains) Sent account capture email to all unmanaged members + * + *

This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT}.

+ * + * @return The {@link AccountCaptureNotificationEmailsSentType} value + * associated with this instance if {@link + * #isAccountCaptureNotificationEmailsSent} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureNotificationEmailsSent} is {@code false}. + */ + public AccountCaptureNotificationEmailsSentType getAccountCaptureNotificationEmailsSentValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT, but was Tag." + this._tag.name()); + } + return accountCaptureNotificationEmailsSentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT}, {@code false} otherwise. + */ + public boolean isAccountCaptureRelinquishAccount() { + return this._tag == Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT}. + * + *

(domains) Account-captured user changed account email to personal + * email

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType accountCaptureRelinquishAccount(AccountCaptureRelinquishAccountType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAccountCaptureRelinquishAccount(Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT, value); + } + + /** + * (domains) Account-captured user changed account email to personal email + * + *

This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT}.

+ * + * @return The {@link AccountCaptureRelinquishAccountType} value associated + * with this instance if {@link #isAccountCaptureRelinquishAccount} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isAccountCaptureRelinquishAccount} is {@code false}. + */ + public AccountCaptureRelinquishAccountType getAccountCaptureRelinquishAccountValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT, but was Tag." + this._tag.name()); + } + return accountCaptureRelinquishAccountValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DISABLED_DOMAIN_INVITES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DISABLED_DOMAIN_INVITES}, {@code false} otherwise. + */ + public boolean isDisabledDomainInvites() { + return this._tag == Tag.DISABLED_DOMAIN_INVITES; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DISABLED_DOMAIN_INVITES}. + * + *

(domains) Disabled domain invites (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DISABLED_DOMAIN_INVITES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType disabledDomainInvites(DisabledDomainInvitesType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDisabledDomainInvites(Tag.DISABLED_DOMAIN_INVITES, value); + } + + /** + * (domains) Disabled domain invites (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#DISABLED_DOMAIN_INVITES}. + *

+ * + * @return The {@link DisabledDomainInvitesType} value associated with this + * instance if {@link #isDisabledDomainInvites} is {@code true}. + * + * @throws IllegalStateException If {@link #isDisabledDomainInvites} is + * {@code false}. + */ + public DisabledDomainInvitesType getDisabledDomainInvitesValue() { + if (this._tag != Tag.DISABLED_DOMAIN_INVITES) { + throw new IllegalStateException("Invalid tag: required Tag.DISABLED_DOMAIN_INVITES, but was Tag." + this._tag.name()); + } + return disabledDomainInvitesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM}, {@code false} + * otherwise. + */ + public boolean isDomainInvitesApproveRequestToJoinTeam() { + return this._tag == Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM}. + * + *

(domains) Approved user's request to join team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainInvitesApproveRequestToJoinTeam(DomainInvitesApproveRequestToJoinTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainInvitesApproveRequestToJoinTeam(Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM, value); + } + + /** + * (domains) Approved user's request to join team + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM}.

+ * + * @return The {@link DomainInvitesApproveRequestToJoinTeamType} value + * associated with this instance if {@link + * #isDomainInvitesApproveRequestToJoinTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesApproveRequestToJoinTeam} is {@code false}. + */ + public DomainInvitesApproveRequestToJoinTeamType getDomainInvitesApproveRequestToJoinTeamValue() { + if (this._tag != Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM, but was Tag." + this._tag.name()); + } + return domainInvitesApproveRequestToJoinTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM}, {@code false} + * otherwise. + */ + public boolean isDomainInvitesDeclineRequestToJoinTeam() { + return this._tag == Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM}. + * + *

(domains) Declined user's request to join team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainInvitesDeclineRequestToJoinTeam(DomainInvitesDeclineRequestToJoinTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainInvitesDeclineRequestToJoinTeam(Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM, value); + } + + /** + * (domains) Declined user's request to join team + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM}.

+ * + * @return The {@link DomainInvitesDeclineRequestToJoinTeamType} value + * associated with this instance if {@link + * #isDomainInvitesDeclineRequestToJoinTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesDeclineRequestToJoinTeam} is {@code false}. + */ + public DomainInvitesDeclineRequestToJoinTeamType getDomainInvitesDeclineRequestToJoinTeamValue() { + if (this._tag != Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM, but was Tag." + this._tag.name()); + } + return domainInvitesDeclineRequestToJoinTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS}, {@code false} otherwise. + */ + public boolean isDomainInvitesEmailExistingUsers() { + return this._tag == Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS}. + * + *

(domains) Sent domain invites to existing domain accounts + * (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainInvitesEmailExistingUsers(DomainInvitesEmailExistingUsersType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainInvitesEmailExistingUsers(Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS, value); + } + + /** + * (domains) Sent domain invites to existing domain accounts (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_EMAIL_EXISTING_USERS}.

+ * + * @return The {@link DomainInvitesEmailExistingUsersType} value associated + * with this instance if {@link #isDomainInvitesEmailExistingUsers} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesEmailExistingUsers} is {@code false}. + */ + public DomainInvitesEmailExistingUsersType getDomainInvitesEmailExistingUsersValue() { + if (this._tag != Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_EMAIL_EXISTING_USERS, but was Tag." + this._tag.name()); + } + return domainInvitesEmailExistingUsersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM}, {@code false} otherwise. + */ + public boolean isDomainInvitesRequestToJoinTeam() { + return this._tag == Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM}. + * + *

(domains) Requested to join team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainInvitesRequestToJoinTeam(DomainInvitesRequestToJoinTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainInvitesRequestToJoinTeam(Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM, value); + } + + /** + * (domains) Requested to join team + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM}.

+ * + * @return The {@link DomainInvitesRequestToJoinTeamType} value associated + * with this instance if {@link #isDomainInvitesRequestToJoinTeam} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesRequestToJoinTeam} is {@code false}. + */ + public DomainInvitesRequestToJoinTeamType getDomainInvitesRequestToJoinTeamValue() { + if (this._tag != Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM, but was Tag." + this._tag.name()); + } + return domainInvitesRequestToJoinTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO}, {@code false} + * otherwise. + */ + public boolean isDomainInvitesSetInviteNewUserPrefToNo() { + return this._tag == Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO}. + * + *

(domains) Disabled "Automatically invite new users" (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainInvitesSetInviteNewUserPrefToNo(DomainInvitesSetInviteNewUserPrefToNoType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainInvitesSetInviteNewUserPrefToNo(Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO, value); + } + + /** + * (domains) Disabled "Automatically invite new users" (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO}.

+ * + * @return The {@link DomainInvitesSetInviteNewUserPrefToNoType} value + * associated with this instance if {@link + * #isDomainInvitesSetInviteNewUserPrefToNo} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesSetInviteNewUserPrefToNo} is {@code false}. + */ + public DomainInvitesSetInviteNewUserPrefToNoType getDomainInvitesSetInviteNewUserPrefToNoValue() { + if (this._tag != Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO, but was Tag." + this._tag.name()); + } + return domainInvitesSetInviteNewUserPrefToNoValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES}, {@code false} + * otherwise. + */ + public boolean isDomainInvitesSetInviteNewUserPrefToYes() { + return this._tag == Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES}. + * + *

(domains) Enabled "Automatically invite new users" (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainInvitesSetInviteNewUserPrefToYes(DomainInvitesSetInviteNewUserPrefToYesType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainInvitesSetInviteNewUserPrefToYes(Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES, value); + } + + /** + * (domains) Enabled "Automatically invite new users" (deprecated, no longer + * logged) + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES}.

+ * + * @return The {@link DomainInvitesSetInviteNewUserPrefToYesType} value + * associated with this instance if {@link + * #isDomainInvitesSetInviteNewUserPrefToYes} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainInvitesSetInviteNewUserPrefToYes} is {@code false}. + */ + public DomainInvitesSetInviteNewUserPrefToYesType getDomainInvitesSetInviteNewUserPrefToYesValue() { + if (this._tag != Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES, but was Tag." + this._tag.name()); + } + return domainInvitesSetInviteNewUserPrefToYesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL}, {@code false} otherwise. + */ + public boolean isDomainVerificationAddDomainFail() { + return this._tag == Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL}. + * + *

(domains) Failed to verify team domain

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainVerificationAddDomainFail(DomainVerificationAddDomainFailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainVerificationAddDomainFail(Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL, value); + } + + /** + * (domains) Failed to verify team domain + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL}.

+ * + * @return The {@link DomainVerificationAddDomainFailType} value associated + * with this instance if {@link #isDomainVerificationAddDomainFail} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainVerificationAddDomainFail} is {@code false}. + */ + public DomainVerificationAddDomainFailType getDomainVerificationAddDomainFailValue() { + if (this._tag != Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL, but was Tag." + this._tag.name()); + } + return domainVerificationAddDomainFailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS}, {@code false} otherwise. + */ + public boolean isDomainVerificationAddDomainSuccess() { + return this._tag == Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS}. + * + *

(domains) Verified team domain

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainVerificationAddDomainSuccess(DomainVerificationAddDomainSuccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainVerificationAddDomainSuccess(Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS, value); + } + + /** + * (domains) Verified team domain + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS}.

+ * + * @return The {@link DomainVerificationAddDomainSuccessType} value + * associated with this instance if {@link + * #isDomainVerificationAddDomainSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainVerificationAddDomainSuccess} is {@code false}. + */ + public DomainVerificationAddDomainSuccessType getDomainVerificationAddDomainSuccessValue() { + if (this._tag != Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS, but was Tag." + this._tag.name()); + } + return domainVerificationAddDomainSuccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN}, {@code false} otherwise. + */ + public boolean isDomainVerificationRemoveDomain() { + return this._tag == Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN}. + * + *

(domains) Removed domain from list of verified team domains

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType domainVerificationRemoveDomain(DomainVerificationRemoveDomainType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDomainVerificationRemoveDomain(Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN, value); + } + + /** + * (domains) Removed domain from list of verified team domains + * + *

This instance must be tagged as {@link + * Tag#DOMAIN_VERIFICATION_REMOVE_DOMAIN}.

+ * + * @return The {@link DomainVerificationRemoveDomainType} value associated + * with this instance if {@link #isDomainVerificationRemoveDomain} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDomainVerificationRemoveDomain} is {@code false}. + */ + public DomainVerificationRemoveDomainType getDomainVerificationRemoveDomainValue() { + if (this._tag != Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN) { + throw new IllegalStateException("Invalid tag: required Tag.DOMAIN_VERIFICATION_REMOVE_DOMAIN, but was Tag." + this._tag.name()); + } + return domainVerificationRemoveDomainValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENABLED_DOMAIN_INVITES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENABLED_DOMAIN_INVITES}, {@code false} otherwise. + */ + public boolean isEnabledDomainInvites() { + return this._tag == Tag.ENABLED_DOMAIN_INVITES; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ENABLED_DOMAIN_INVITES}. + * + *

(domains) Enabled domain invites (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ENABLED_DOMAIN_INVITES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType enabledDomainInvites(EnabledDomainInvitesType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEnabledDomainInvites(Tag.ENABLED_DOMAIN_INVITES, value); + } + + /** + * (domains) Enabled domain invites (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#ENABLED_DOMAIN_INVITES}. + *

+ * + * @return The {@link EnabledDomainInvitesType} value associated with this + * instance if {@link #isEnabledDomainInvites} is {@code true}. + * + * @throws IllegalStateException If {@link #isEnabledDomainInvites} is + * {@code false}. + */ + public EnabledDomainInvitesType getEnabledDomainInvitesValue() { + if (this._tag != Tag.ENABLED_DOMAIN_INVITES) { + throw new IllegalStateException("Invalid tag: required Tag.ENABLED_DOMAIN_INVITES, but was Tag." + this._tag.name()); + } + return enabledDomainInvitesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION}, {@code false} + * otherwise. + */ + public boolean isTeamEncryptionKeyCancelKeyDeletion() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION}. + * + *

(encryption) Canceled team encryption key deletion

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamEncryptionKeyCancelKeyDeletion(TeamEncryptionKeyCancelKeyDeletionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamEncryptionKeyCancelKeyDeletion(Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION, value); + } + + /** + * (encryption) Canceled team encryption key deletion + * + *

This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION}.

+ * + * @return The {@link TeamEncryptionKeyCancelKeyDeletionType} value + * associated with this instance if {@link + * #isTeamEncryptionKeyCancelKeyDeletion} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyCancelKeyDeletion} is {@code false}. + */ + public TeamEncryptionKeyCancelKeyDeletionType getTeamEncryptionKeyCancelKeyDeletionValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyCancelKeyDeletionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyCreateKey() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY}. + * + *

(encryption) Created team encryption key

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamEncryptionKeyCreateKey(TeamEncryptionKeyCreateKeyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamEncryptionKeyCreateKey(Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY, value); + } + + /** + * (encryption) Created team encryption key + * + *

This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_CREATE_KEY}.

+ * + * @return The {@link TeamEncryptionKeyCreateKeyType} value associated with + * this instance if {@link #isTeamEncryptionKeyCreateKey} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamEncryptionKeyCreateKey} + * is {@code false}. + */ + public TeamEncryptionKeyCreateKeyType getTeamEncryptionKeyCreateKeyValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_CREATE_KEY, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyCreateKeyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyDeleteKey() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY}. + * + *

(encryption) Deleted team encryption key

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamEncryptionKeyDeleteKey(TeamEncryptionKeyDeleteKeyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamEncryptionKeyDeleteKey(Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY, value); + } + + /** + * (encryption) Deleted team encryption key + * + *

This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DELETE_KEY}.

+ * + * @return The {@link TeamEncryptionKeyDeleteKeyType} value associated with + * this instance if {@link #isTeamEncryptionKeyDeleteKey} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamEncryptionKeyDeleteKey} + * is {@code false}. + */ + public TeamEncryptionKeyDeleteKeyType getTeamEncryptionKeyDeleteKeyValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_DELETE_KEY, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyDeleteKeyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyDisableKey() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY}. + * + *

(encryption) Disabled team encryption key

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamEncryptionKeyDisableKey(TeamEncryptionKeyDisableKeyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamEncryptionKeyDisableKey(Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY, value); + } + + /** + * (encryption) Disabled team encryption key + * + *

This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_DISABLE_KEY}.

+ * + * @return The {@link TeamEncryptionKeyDisableKeyType} value associated with + * this instance if {@link #isTeamEncryptionKeyDisableKey} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamEncryptionKeyDisableKey} + * is {@code false}. + */ + public TeamEncryptionKeyDisableKeyType getTeamEncryptionKeyDisableKeyValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_DISABLE_KEY, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyDisableKeyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyEnableKey() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY}. + * + *

(encryption) Enabled team encryption key

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamEncryptionKeyEnableKey(TeamEncryptionKeyEnableKeyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamEncryptionKeyEnableKey(Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY, value); + } + + /** + * (encryption) Enabled team encryption key + * + *

This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ENABLE_KEY}.

+ * + * @return The {@link TeamEncryptionKeyEnableKeyType} value associated with + * this instance if {@link #isTeamEncryptionKeyEnableKey} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamEncryptionKeyEnableKey} + * is {@code false}. + */ + public TeamEncryptionKeyEnableKeyType getTeamEncryptionKeyEnableKeyValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_ENABLE_KEY, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyEnableKeyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY}, {@code false} otherwise. + */ + public boolean isTeamEncryptionKeyRotateKey() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY}. + * + *

(encryption) Rotated team encryption key (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamEncryptionKeyRotateKey(TeamEncryptionKeyRotateKeyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamEncryptionKeyRotateKey(Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY, value); + } + + /** + * (encryption) Rotated team encryption key (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_ROTATE_KEY}.

+ * + * @return The {@link TeamEncryptionKeyRotateKeyType} value associated with + * this instance if {@link #isTeamEncryptionKeyRotateKey} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamEncryptionKeyRotateKey} + * is {@code false}. + */ + public TeamEncryptionKeyRotateKeyType getTeamEncryptionKeyRotateKeyValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_ROTATE_KEY, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyRotateKeyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION}, {@code false} + * otherwise. + */ + public boolean isTeamEncryptionKeyScheduleKeyDeletion() { + return this._tag == Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION}. + * + *

(encryption) Scheduled encryption key deletion

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamEncryptionKeyScheduleKeyDeletion(TeamEncryptionKeyScheduleKeyDeletionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamEncryptionKeyScheduleKeyDeletion(Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION, value); + } + + /** + * (encryption) Scheduled encryption key deletion + * + *

This instance must be tagged as {@link + * Tag#TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION}.

+ * + * @return The {@link TeamEncryptionKeyScheduleKeyDeletionType} value + * associated with this instance if {@link + * #isTeamEncryptionKeyScheduleKeyDeletion} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamEncryptionKeyScheduleKeyDeletion} is {@code false}. + */ + public TeamEncryptionKeyScheduleKeyDeletionType getTeamEncryptionKeyScheduleKeyDeletionValue() { + if (this._tag != Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION, but was Tag." + this._tag.name()); + } + return teamEncryptionKeyScheduleKeyDeletionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APPLY_NAMING_CONVENTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APPLY_NAMING_CONVENTION}, {@code false} otherwise. + */ + public boolean isApplyNamingConvention() { + return this._tag == Tag.APPLY_NAMING_CONVENTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#APPLY_NAMING_CONVENTION}. + * + *

(file_operations) Applied naming convention

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#APPLY_NAMING_CONVENTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType applyNamingConvention(ApplyNamingConventionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndApplyNamingConvention(Tag.APPLY_NAMING_CONVENTION, value); + } + + /** + * (file_operations) Applied naming convention + * + *

This instance must be tagged as {@link Tag#APPLY_NAMING_CONVENTION}. + *

+ * + * @return The {@link ApplyNamingConventionType} value associated with this + * instance if {@link #isApplyNamingConvention} is {@code true}. + * + * @throws IllegalStateException If {@link #isApplyNamingConvention} is + * {@code false}. + */ + public ApplyNamingConventionType getApplyNamingConventionValue() { + if (this._tag != Tag.APPLY_NAMING_CONVENTION) { + throw new IllegalStateException("Invalid tag: required Tag.APPLY_NAMING_CONVENTION, but was Tag." + this._tag.name()); + } + return applyNamingConventionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CREATE_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CREATE_FOLDER}, {@code false} otherwise. + */ + public boolean isCreateFolder() { + return this._tag == Tag.CREATE_FOLDER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CREATE_FOLDER}. + * + *

(file_operations) Created folders (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CREATE_FOLDER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType createFolder(CreateFolderType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndCreateFolder(Tag.CREATE_FOLDER, value); + } + + /** + * (file_operations) Created folders (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#CREATE_FOLDER}.

+ * + * @return The {@link CreateFolderType} value associated with this instance + * if {@link #isCreateFolder} is {@code true}. + * + * @throws IllegalStateException If {@link #isCreateFolder} is {@code + * false}. + */ + public CreateFolderType getCreateFolderValue() { + if (this._tag != Tag.CREATE_FOLDER) { + throw new IllegalStateException("Invalid tag: required Tag.CREATE_FOLDER, but was Tag." + this._tag.name()); + } + return createFolderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FILE_ADD}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FILE_ADD}, + * {@code false} otherwise. + */ + public boolean isFileAdd() { + return this._tag == Tag.FILE_ADD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_ADD}. + * + *

(file_operations) Added files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_ADD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileAdd(FileAddType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileAdd(Tag.FILE_ADD, value); + } + + /** + * (file_operations) Added files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_ADD}.

+ * + * @return The {@link FileAddType} value associated with this instance if + * {@link #isFileAdd} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileAdd} is {@code false}. + */ + public FileAddType getFileAddValue() { + if (this._tag != Tag.FILE_ADD) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ADD, but was Tag." + this._tag.name()); + } + return fileAddValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_ADD_FROM_AUTOMATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_ADD_FROM_AUTOMATION}, {@code false} otherwise. + */ + public boolean isFileAddFromAutomation() { + return this._tag == Tag.FILE_ADD_FROM_AUTOMATION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_ADD_FROM_AUTOMATION}. + * + *

(file_operations) Added files and/or folders from automation

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_ADD_FROM_AUTOMATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileAddFromAutomation(FileAddFromAutomationType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileAddFromAutomation(Tag.FILE_ADD_FROM_AUTOMATION, value); + } + + /** + * (file_operations) Added files and/or folders from automation + * + *

This instance must be tagged as {@link Tag#FILE_ADD_FROM_AUTOMATION}. + *

+ * + * @return The {@link FileAddFromAutomationType} value associated with this + * instance if {@link #isFileAddFromAutomation} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileAddFromAutomation} is + * {@code false}. + */ + public FileAddFromAutomationType getFileAddFromAutomationValue() { + if (this._tag != Tag.FILE_ADD_FROM_AUTOMATION) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ADD_FROM_AUTOMATION, but was Tag." + this._tag.name()); + } + return fileAddFromAutomationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FILE_COPY}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FILE_COPY}, + * {@code false} otherwise. + */ + public boolean isFileCopy() { + return this._tag == Tag.FILE_COPY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_COPY}. + * + *

(file_operations) Copied files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_COPY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileCopy(FileCopyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileCopy(Tag.FILE_COPY, value); + } + + /** + * (file_operations) Copied files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_COPY}.

+ * + * @return The {@link FileCopyType} value associated with this instance if + * {@link #isFileCopy} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileCopy} is {@code false}. + */ + public FileCopyType getFileCopyValue() { + if (this._tag != Tag.FILE_COPY) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_COPY, but was Tag." + this._tag.name()); + } + return fileCopyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_DELETE}, {@code false} otherwise. + */ + public boolean isFileDelete() { + return this._tag == Tag.FILE_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_DELETE}. + * + *

(file_operations) Deleted files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileDelete(FileDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileDelete(Tag.FILE_DELETE, value); + } + + /** + * (file_operations) Deleted files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_DELETE}.

+ * + * @return The {@link FileDeleteType} value associated with this instance if + * {@link #isFileDelete} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileDelete} is {@code false}. + */ + public FileDeleteType getFileDeleteValue() { + if (this._tag != Tag.FILE_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_DELETE, but was Tag." + this._tag.name()); + } + return fileDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_DOWNLOAD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_DOWNLOAD}, {@code false} otherwise. + */ + public boolean isFileDownload() { + return this._tag == Tag.FILE_DOWNLOAD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_DOWNLOAD}. + * + *

(file_operations) Downloaded files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_DOWNLOAD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileDownload(FileDownloadType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileDownload(Tag.FILE_DOWNLOAD, value); + } + + /** + * (file_operations) Downloaded files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_DOWNLOAD}.

+ * + * @return The {@link FileDownloadType} value associated with this instance + * if {@link #isFileDownload} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileDownload} is {@code + * false}. + */ + public FileDownloadType getFileDownloadValue() { + if (this._tag != Tag.FILE_DOWNLOAD) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_DOWNLOAD, but was Tag." + this._tag.name()); + } + return fileDownloadValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FILE_EDIT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FILE_EDIT}, + * {@code false} otherwise. + */ + public boolean isFileEdit() { + return this._tag == Tag.FILE_EDIT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_EDIT}. + * + *

(file_operations) Edited files

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_EDIT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileEdit(FileEditType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileEdit(Tag.FILE_EDIT, value); + } + + /** + * (file_operations) Edited files + * + *

This instance must be tagged as {@link Tag#FILE_EDIT}.

+ * + * @return The {@link FileEditType} value associated with this instance if + * {@link #isFileEdit} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileEdit} is {@code false}. + */ + public FileEditType getFileEditValue() { + if (this._tag != Tag.FILE_EDIT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_EDIT, but was Tag." + this._tag.name()); + } + return fileEditValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_GET_COPY_REFERENCE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_GET_COPY_REFERENCE}, {@code false} otherwise. + */ + public boolean isFileGetCopyReference() { + return this._tag == Tag.FILE_GET_COPY_REFERENCE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_GET_COPY_REFERENCE}. + * + *

(file_operations) Created copy reference to file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_GET_COPY_REFERENCE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileGetCopyReference(FileGetCopyReferenceType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileGetCopyReference(Tag.FILE_GET_COPY_REFERENCE, value); + } + + /** + * (file_operations) Created copy reference to file/folder + * + *

This instance must be tagged as {@link Tag#FILE_GET_COPY_REFERENCE}. + *

+ * + * @return The {@link FileGetCopyReferenceType} value associated with this + * instance if {@link #isFileGetCopyReference} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileGetCopyReference} is + * {@code false}. + */ + public FileGetCopyReferenceType getFileGetCopyReferenceValue() { + if (this._tag != Tag.FILE_GET_COPY_REFERENCE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_GET_COPY_REFERENCE, but was Tag." + this._tag.name()); + } + return fileGetCopyReferenceValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED}, {@code false} otherwise. + */ + public boolean isFileLockingLockStatusChanged() { + return this._tag == Tag.FILE_LOCKING_LOCK_STATUS_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED}. + * + *

(file_operations) Locked/unlocked editing for a file

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileLockingLockStatusChanged(FileLockingLockStatusChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileLockingLockStatusChanged(Tag.FILE_LOCKING_LOCK_STATUS_CHANGED, value); + } + + /** + * (file_operations) Locked/unlocked editing for a file + * + *

This instance must be tagged as {@link + * Tag#FILE_LOCKING_LOCK_STATUS_CHANGED}.

+ * + * @return The {@link FileLockingLockStatusChangedType} value associated + * with this instance if {@link #isFileLockingLockStatusChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isFileLockingLockStatusChanged} + * is {@code false}. + */ + public FileLockingLockStatusChangedType getFileLockingLockStatusChangedValue() { + if (this._tag != Tag.FILE_LOCKING_LOCK_STATUS_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_LOCKING_LOCK_STATUS_CHANGED, but was Tag." + this._tag.name()); + } + return fileLockingLockStatusChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#FILE_MOVE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#FILE_MOVE}, + * {@code false} otherwise. + */ + public boolean isFileMove() { + return this._tag == Tag.FILE_MOVE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_MOVE}. + * + *

(file_operations) Moved files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_MOVE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileMove(FileMoveType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileMove(Tag.FILE_MOVE, value); + } + + /** + * (file_operations) Moved files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_MOVE}.

+ * + * @return The {@link FileMoveType} value associated with this instance if + * {@link #isFileMove} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileMove} is {@code false}. + */ + public FileMoveType getFileMoveValue() { + if (this._tag != Tag.FILE_MOVE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_MOVE, but was Tag." + this._tag.name()); + } + return fileMoveValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_PERMANENTLY_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_PERMANENTLY_DELETE}, {@code false} otherwise. + */ + public boolean isFilePermanentlyDelete() { + return this._tag == Tag.FILE_PERMANENTLY_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_PERMANENTLY_DELETE}. + * + *

(file_operations) Permanently deleted files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_PERMANENTLY_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType filePermanentlyDelete(FilePermanentlyDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFilePermanentlyDelete(Tag.FILE_PERMANENTLY_DELETE, value); + } + + /** + * (file_operations) Permanently deleted files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_PERMANENTLY_DELETE}. + *

+ * + * @return The {@link FilePermanentlyDeleteType} value associated with this + * instance if {@link #isFilePermanentlyDelete} is {@code true}. + * + * @throws IllegalStateException If {@link #isFilePermanentlyDelete} is + * {@code false}. + */ + public FilePermanentlyDeleteType getFilePermanentlyDeleteValue() { + if (this._tag != Tag.FILE_PERMANENTLY_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_PERMANENTLY_DELETE, but was Tag." + this._tag.name()); + } + return filePermanentlyDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_PREVIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_PREVIEW}, {@code false} otherwise. + */ + public boolean isFilePreview() { + return this._tag == Tag.FILE_PREVIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_PREVIEW}. + * + *

(file_operations) Previewed files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_PREVIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType filePreview(FilePreviewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFilePreview(Tag.FILE_PREVIEW, value); + } + + /** + * (file_operations) Previewed files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_PREVIEW}.

+ * + * @return The {@link FilePreviewType} value associated with this instance + * if {@link #isFilePreview} is {@code true}. + * + * @throws IllegalStateException If {@link #isFilePreview} is {@code + * false}. + */ + public FilePreviewType getFilePreviewValue() { + if (this._tag != Tag.FILE_PREVIEW) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_PREVIEW, but was Tag." + this._tag.name()); + } + return filePreviewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_RENAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_RENAME}, {@code false} otherwise. + */ + public boolean isFileRename() { + return this._tag == Tag.FILE_RENAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_RENAME}. + * + *

(file_operations) Renamed files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_RENAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRename(FileRenameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRename(Tag.FILE_RENAME, value); + } + + /** + * (file_operations) Renamed files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_RENAME}.

+ * + * @return The {@link FileRenameType} value associated with this instance if + * {@link #isFileRename} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRename} is {@code false}. + */ + public FileRenameType getFileRenameValue() { + if (this._tag != Tag.FILE_RENAME) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_RENAME, but was Tag." + this._tag.name()); + } + return fileRenameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_RESTORE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_RESTORE}, {@code false} otherwise. + */ + public boolean isFileRestore() { + return this._tag == Tag.FILE_RESTORE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_RESTORE}. + * + *

(file_operations) Restored deleted files and/or folders

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_RESTORE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRestore(FileRestoreType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRestore(Tag.FILE_RESTORE, value); + } + + /** + * (file_operations) Restored deleted files and/or folders + * + *

This instance must be tagged as {@link Tag#FILE_RESTORE}.

+ * + * @return The {@link FileRestoreType} value associated with this instance + * if {@link #isFileRestore} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRestore} is {@code + * false}. + */ + public FileRestoreType getFileRestoreValue() { + if (this._tag != Tag.FILE_RESTORE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_RESTORE, but was Tag." + this._tag.name()); + } + return fileRestoreValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REVERT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REVERT}, {@code false} otherwise. + */ + public boolean isFileRevert() { + return this._tag == Tag.FILE_REVERT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REVERT}. + * + *

(file_operations) Reverted files to previous version

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REVERT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRevert(FileRevertType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRevert(Tag.FILE_REVERT, value); + } + + /** + * (file_operations) Reverted files to previous version + * + *

This instance must be tagged as {@link Tag#FILE_REVERT}.

+ * + * @return The {@link FileRevertType} value associated with this instance if + * {@link #isFileRevert} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRevert} is {@code false}. + */ + public FileRevertType getFileRevertValue() { + if (this._tag != Tag.FILE_REVERT) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REVERT, but was Tag." + this._tag.name()); + } + return fileRevertValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_ROLLBACK_CHANGES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_ROLLBACK_CHANGES}, {@code false} otherwise. + */ + public boolean isFileRollbackChanges() { + return this._tag == Tag.FILE_ROLLBACK_CHANGES; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_ROLLBACK_CHANGES}. + * + *

(file_operations) Rolled back file actions

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_ROLLBACK_CHANGES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRollbackChanges(FileRollbackChangesType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRollbackChanges(Tag.FILE_ROLLBACK_CHANGES, value); + } + + /** + * (file_operations) Rolled back file actions + * + *

This instance must be tagged as {@link Tag#FILE_ROLLBACK_CHANGES}. + *

+ * + * @return The {@link FileRollbackChangesType} value associated with this + * instance if {@link #isFileRollbackChanges} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRollbackChanges} is + * {@code false}. + */ + public FileRollbackChangesType getFileRollbackChangesValue() { + if (this._tag != Tag.FILE_ROLLBACK_CHANGES) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_ROLLBACK_CHANGES, but was Tag." + this._tag.name()); + } + return fileRollbackChangesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_SAVE_COPY_REFERENCE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_SAVE_COPY_REFERENCE}, {@code false} otherwise. + */ + public boolean isFileSaveCopyReference() { + return this._tag == Tag.FILE_SAVE_COPY_REFERENCE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_SAVE_COPY_REFERENCE}. + * + *

(file_operations) Saved file/folder using copy reference

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_SAVE_COPY_REFERENCE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileSaveCopyReference(FileSaveCopyReferenceType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileSaveCopyReference(Tag.FILE_SAVE_COPY_REFERENCE, value); + } + + /** + * (file_operations) Saved file/folder using copy reference + * + *

This instance must be tagged as {@link Tag#FILE_SAVE_COPY_REFERENCE}. + *

+ * + * @return The {@link FileSaveCopyReferenceType} value associated with this + * instance if {@link #isFileSaveCopyReference} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileSaveCopyReference} is + * {@code false}. + */ + public FileSaveCopyReferenceType getFileSaveCopyReferenceValue() { + if (this._tag != Tag.FILE_SAVE_COPY_REFERENCE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_SAVE_COPY_REFERENCE, but was Tag." + this._tag.name()); + } + return fileSaveCopyReferenceValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED}, {@code false} otherwise. + */ + public boolean isFolderOverviewDescriptionChanged() { + return this._tag == Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED}. + * + *

(file_operations) Updated folder overview

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType folderOverviewDescriptionChanged(FolderOverviewDescriptionChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFolderOverviewDescriptionChanged(Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED, value); + } + + /** + * (file_operations) Updated folder overview + * + *

This instance must be tagged as {@link + * Tag#FOLDER_OVERVIEW_DESCRIPTION_CHANGED}.

+ * + * @return The {@link FolderOverviewDescriptionChangedType} value associated + * with this instance if {@link #isFolderOverviewDescriptionChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFolderOverviewDescriptionChanged} is {@code false}. + */ + public FolderOverviewDescriptionChangedType getFolderOverviewDescriptionChangedValue() { + if (this._tag != Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_OVERVIEW_DESCRIPTION_CHANGED, but was Tag." + this._tag.name()); + } + return folderOverviewDescriptionChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED}, {@code false} otherwise. + */ + public boolean isFolderOverviewItemPinned() { + return this._tag == Tag.FOLDER_OVERVIEW_ITEM_PINNED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED}. + * + *

(file_operations) Pinned item to folder overview

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType folderOverviewItemPinned(FolderOverviewItemPinnedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFolderOverviewItemPinned(Tag.FOLDER_OVERVIEW_ITEM_PINNED, value); + } + + /** + * (file_operations) Pinned item to folder overview + * + *

This instance must be tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_PINNED}.

+ * + * @return The {@link FolderOverviewItemPinnedType} value associated with + * this instance if {@link #isFolderOverviewItemPinned} is {@code true}. + * + * @throws IllegalStateException If {@link #isFolderOverviewItemPinned} is + * {@code false}. + */ + public FolderOverviewItemPinnedType getFolderOverviewItemPinnedValue() { + if (this._tag != Tag.FOLDER_OVERVIEW_ITEM_PINNED) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_OVERVIEW_ITEM_PINNED, but was Tag." + this._tag.name()); + } + return folderOverviewItemPinnedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED}, {@code false} otherwise. + */ + public boolean isFolderOverviewItemUnpinned() { + return this._tag == Tag.FOLDER_OVERVIEW_ITEM_UNPINNED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED}. + * + *

(file_operations) Unpinned item from folder overview

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType folderOverviewItemUnpinned(FolderOverviewItemUnpinnedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFolderOverviewItemUnpinned(Tag.FOLDER_OVERVIEW_ITEM_UNPINNED, value); + } + + /** + * (file_operations) Unpinned item from folder overview + * + *

This instance must be tagged as {@link + * Tag#FOLDER_OVERVIEW_ITEM_UNPINNED}.

+ * + * @return The {@link FolderOverviewItemUnpinnedType} value associated with + * this instance if {@link #isFolderOverviewItemUnpinned} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFolderOverviewItemUnpinned} + * is {@code false}. + */ + public FolderOverviewItemUnpinnedType getFolderOverviewItemUnpinnedValue() { + if (this._tag != Tag.FOLDER_OVERVIEW_ITEM_UNPINNED) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_OVERVIEW_ITEM_UNPINNED, but was Tag." + this._tag.name()); + } + return folderOverviewItemUnpinnedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OBJECT_LABEL_ADDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OBJECT_LABEL_ADDED}, {@code false} otherwise. + */ + public boolean isObjectLabelAdded() { + return this._tag == Tag.OBJECT_LABEL_ADDED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#OBJECT_LABEL_ADDED}. + * + *

(file_operations) Added a label

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#OBJECT_LABEL_ADDED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType objectLabelAdded(ObjectLabelAddedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndObjectLabelAdded(Tag.OBJECT_LABEL_ADDED, value); + } + + /** + * (file_operations) Added a label + * + *

This instance must be tagged as {@link Tag#OBJECT_LABEL_ADDED}.

+ * + * @return The {@link ObjectLabelAddedType} value associated with this + * instance if {@link #isObjectLabelAdded} is {@code true}. + * + * @throws IllegalStateException If {@link #isObjectLabelAdded} is {@code + * false}. + */ + public ObjectLabelAddedType getObjectLabelAddedValue() { + if (this._tag != Tag.OBJECT_LABEL_ADDED) { + throw new IllegalStateException("Invalid tag: required Tag.OBJECT_LABEL_ADDED, but was Tag." + this._tag.name()); + } + return objectLabelAddedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OBJECT_LABEL_REMOVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OBJECT_LABEL_REMOVED}, {@code false} otherwise. + */ + public boolean isObjectLabelRemoved() { + return this._tag == Tag.OBJECT_LABEL_REMOVED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#OBJECT_LABEL_REMOVED}. + * + *

(file_operations) Removed a label

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#OBJECT_LABEL_REMOVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType objectLabelRemoved(ObjectLabelRemovedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndObjectLabelRemoved(Tag.OBJECT_LABEL_REMOVED, value); + } + + /** + * (file_operations) Removed a label + * + *

This instance must be tagged as {@link Tag#OBJECT_LABEL_REMOVED}. + *

+ * + * @return The {@link ObjectLabelRemovedType} value associated with this + * instance if {@link #isObjectLabelRemoved} is {@code true}. + * + * @throws IllegalStateException If {@link #isObjectLabelRemoved} is {@code + * false}. + */ + public ObjectLabelRemovedType getObjectLabelRemovedValue() { + if (this._tag != Tag.OBJECT_LABEL_REMOVED) { + throw new IllegalStateException("Invalid tag: required Tag.OBJECT_LABEL_REMOVED, but was Tag." + this._tag.name()); + } + return objectLabelRemovedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE}, {@code false} otherwise. + */ + public boolean isObjectLabelUpdatedValue() { + return this._tag == Tag.OBJECT_LABEL_UPDATED_VALUE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE}. + * + *

(file_operations) Updated a label's value

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType objectLabelUpdatedValue(ObjectLabelUpdatedValueType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndObjectLabelUpdatedValue(Tag.OBJECT_LABEL_UPDATED_VALUE, value); + } + + /** + * (file_operations) Updated a label's value + * + *

This instance must be tagged as {@link + * Tag#OBJECT_LABEL_UPDATED_VALUE}.

+ * + * @return The {@link ObjectLabelUpdatedValueType} value associated with + * this instance if {@link #isObjectLabelUpdatedValue} is {@code true}. + * + * @throws IllegalStateException If {@link #isObjectLabelUpdatedValue} is + * {@code false}. + */ + public ObjectLabelUpdatedValueType getObjectLabelUpdatedValueValue() { + if (this._tag != Tag.OBJECT_LABEL_UPDATED_VALUE) { + throw new IllegalStateException("Invalid tag: required Tag.OBJECT_LABEL_UPDATED_VALUE, but was Tag." + this._tag.name()); + } + return objectLabelUpdatedValueValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY}, {@code false} otherwise. + */ + public boolean isOrganizeFolderWithTidy() { + return this._tag == Tag.ORGANIZE_FOLDER_WITH_TIDY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY}. + * + *

(file_operations) Organized a folder with multi-file organize

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType organizeFolderWithTidy(OrganizeFolderWithTidyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndOrganizeFolderWithTidy(Tag.ORGANIZE_FOLDER_WITH_TIDY, value); + } + + /** + * (file_operations) Organized a folder with multi-file organize + * + *

This instance must be tagged as {@link + * Tag#ORGANIZE_FOLDER_WITH_TIDY}.

+ * + * @return The {@link OrganizeFolderWithTidyType} value associated with this + * instance if {@link #isOrganizeFolderWithTidy} is {@code true}. + * + * @throws IllegalStateException If {@link #isOrganizeFolderWithTidy} is + * {@code false}. + */ + public OrganizeFolderWithTidyType getOrganizeFolderWithTidyValue() { + if (this._tag != Tag.ORGANIZE_FOLDER_WITH_TIDY) { + throw new IllegalStateException("Invalid tag: required Tag.ORGANIZE_FOLDER_WITH_TIDY, but was Tag." + this._tag.name()); + } + return organizeFolderWithTidyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_FILE_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_FILE_DELETE}, {@code false} otherwise. + */ + public boolean isReplayFileDelete() { + return this._tag == Tag.REPLAY_FILE_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#REPLAY_FILE_DELETE}. + * + *

(file_operations) Deleted files in Replay

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#REPLAY_FILE_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType replayFileDelete(ReplayFileDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndReplayFileDelete(Tag.REPLAY_FILE_DELETE, value); + } + + /** + * (file_operations) Deleted files in Replay + * + *

This instance must be tagged as {@link Tag#REPLAY_FILE_DELETE}.

+ * + * @return The {@link ReplayFileDeleteType} value associated with this + * instance if {@link #isReplayFileDelete} is {@code true}. + * + * @throws IllegalStateException If {@link #isReplayFileDelete} is {@code + * false}. + */ + public ReplayFileDeleteType getReplayFileDeleteValue() { + if (this._tag != Tag.REPLAY_FILE_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_FILE_DELETE, but was Tag." + this._tag.name()); + } + return replayFileDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REWIND_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REWIND_FOLDER}, {@code false} otherwise. + */ + public boolean isRewindFolder() { + return this._tag == Tag.REWIND_FOLDER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#REWIND_FOLDER}. + * + *

(file_operations) Rewound a folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#REWIND_FOLDER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType rewindFolder(RewindFolderType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndRewindFolder(Tag.REWIND_FOLDER, value); + } + + /** + * (file_operations) Rewound a folder + * + *

This instance must be tagged as {@link Tag#REWIND_FOLDER}.

+ * + * @return The {@link RewindFolderType} value associated with this instance + * if {@link #isRewindFolder} is {@code true}. + * + * @throws IllegalStateException If {@link #isRewindFolder} is {@code + * false}. + */ + public RewindFolderType getRewindFolderValue() { + if (this._tag != Tag.REWIND_FOLDER) { + throw new IllegalStateException("Invalid tag: required Tag.REWIND_FOLDER, but was Tag." + this._tag.name()); + } + return rewindFolderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNDO_NAMING_CONVENTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNDO_NAMING_CONVENTION}, {@code false} otherwise. + */ + public boolean isUndoNamingConvention() { + return this._tag == Tag.UNDO_NAMING_CONVENTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#UNDO_NAMING_CONVENTION}. + * + *

(file_operations) Reverted naming convention

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#UNDO_NAMING_CONVENTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType undoNamingConvention(UndoNamingConventionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndUndoNamingConvention(Tag.UNDO_NAMING_CONVENTION, value); + } + + /** + * (file_operations) Reverted naming convention + * + *

This instance must be tagged as {@link Tag#UNDO_NAMING_CONVENTION}. + *

+ * + * @return The {@link UndoNamingConventionType} value associated with this + * instance if {@link #isUndoNamingConvention} is {@code true}. + * + * @throws IllegalStateException If {@link #isUndoNamingConvention} is + * {@code false}. + */ + public UndoNamingConventionType getUndoNamingConventionValue() { + if (this._tag != Tag.UNDO_NAMING_CONVENTION) { + throw new IllegalStateException("Invalid tag: required Tag.UNDO_NAMING_CONVENTION, but was Tag." + this._tag.name()); + } + return undoNamingConventionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY}, {@code false} otherwise. + */ + public boolean isUndoOrganizeFolderWithTidy() { + return this._tag == Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY}. + * + *

(file_operations) Removed multi-file organize

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType undoOrganizeFolderWithTidy(UndoOrganizeFolderWithTidyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndUndoOrganizeFolderWithTidy(Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY, value); + } + + /** + * (file_operations) Removed multi-file organize + * + *

This instance must be tagged as {@link + * Tag#UNDO_ORGANIZE_FOLDER_WITH_TIDY}.

+ * + * @return The {@link UndoOrganizeFolderWithTidyType} value associated with + * this instance if {@link #isUndoOrganizeFolderWithTidy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isUndoOrganizeFolderWithTidy} + * is {@code false}. + */ + public UndoOrganizeFolderWithTidyType getUndoOrganizeFolderWithTidyValue() { + if (this._tag != Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY) { + throw new IllegalStateException("Invalid tag: required Tag.UNDO_ORGANIZE_FOLDER_WITH_TIDY, but was Tag." + this._tag.name()); + } + return undoOrganizeFolderWithTidyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_TAGS_ADDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_TAGS_ADDED}, {@code false} otherwise. + */ + public boolean isUserTagsAdded() { + return this._tag == Tag.USER_TAGS_ADDED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#USER_TAGS_ADDED}. + * + *

(file_operations) Tagged a file

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#USER_TAGS_ADDED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType userTagsAdded(UserTagsAddedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndUserTagsAdded(Tag.USER_TAGS_ADDED, value); + } + + /** + * (file_operations) Tagged a file + * + *

This instance must be tagged as {@link Tag#USER_TAGS_ADDED}.

+ * + * @return The {@link UserTagsAddedType} value associated with this instance + * if {@link #isUserTagsAdded} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserTagsAdded} is {@code + * false}. + */ + public UserTagsAddedType getUserTagsAddedValue() { + if (this._tag != Tag.USER_TAGS_ADDED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_TAGS_ADDED, but was Tag." + this._tag.name()); + } + return userTagsAddedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#USER_TAGS_REMOVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#USER_TAGS_REMOVED}, {@code false} otherwise. + */ + public boolean isUserTagsRemoved() { + return this._tag == Tag.USER_TAGS_REMOVED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#USER_TAGS_REMOVED}. + * + *

(file_operations) Removed tags

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#USER_TAGS_REMOVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType userTagsRemoved(UserTagsRemovedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndUserTagsRemoved(Tag.USER_TAGS_REMOVED, value); + } + + /** + * (file_operations) Removed tags + * + *

This instance must be tagged as {@link Tag#USER_TAGS_REMOVED}.

+ * + * @return The {@link UserTagsRemovedType} value associated with this + * instance if {@link #isUserTagsRemoved} is {@code true}. + * + * @throws IllegalStateException If {@link #isUserTagsRemoved} is {@code + * false}. + */ + public UserTagsRemovedType getUserTagsRemovedValue() { + if (this._tag != Tag.USER_TAGS_REMOVED) { + throw new IllegalStateException("Invalid tag: required Tag.USER_TAGS_REMOVED, but was Tag." + this._tag.name()); + } + return userTagsRemovedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE}, {@code false} otherwise. + */ + public boolean isEmailIngestReceiveFile() { + return this._tag == Tag.EMAIL_INGEST_RECEIVE_FILE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE}. + * + *

(file_requests) Received files via Email to Dropbox

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emailIngestReceiveFile(EmailIngestReceiveFileType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmailIngestReceiveFile(Tag.EMAIL_INGEST_RECEIVE_FILE, value); + } + + /** + * (file_requests) Received files via Email to Dropbox + * + *

This instance must be tagged as {@link + * Tag#EMAIL_INGEST_RECEIVE_FILE}.

+ * + * @return The {@link EmailIngestReceiveFileType} value associated with this + * instance if {@link #isEmailIngestReceiveFile} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmailIngestReceiveFile} is + * {@code false}. + */ + public EmailIngestReceiveFileType getEmailIngestReceiveFileValue() { + if (this._tag != Tag.EMAIL_INGEST_RECEIVE_FILE) { + throw new IllegalStateException("Invalid tag: required Tag.EMAIL_INGEST_RECEIVE_FILE, but was Tag." + this._tag.name()); + } + return emailIngestReceiveFileValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_CHANGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_CHANGE}, {@code false} otherwise. + */ + public boolean isFileRequestChange() { + return this._tag == Tag.FILE_REQUEST_CHANGE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUEST_CHANGE}. + * + *

(file_requests) Changed file request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUEST_CHANGE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestChange(FileRequestChangeType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestChange(Tag.FILE_REQUEST_CHANGE, value); + } + + /** + * (file_requests) Changed file request + * + *

This instance must be tagged as {@link Tag#FILE_REQUEST_CHANGE}.

+ * + * @return The {@link FileRequestChangeType} value associated with this + * instance if {@link #isFileRequestChange} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestChange} is {@code + * false}. + */ + public FileRequestChangeType getFileRequestChangeValue() { + if (this._tag != Tag.FILE_REQUEST_CHANGE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_CHANGE, but was Tag." + this._tag.name()); + } + return fileRequestChangeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_CLOSE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_CLOSE}, {@code false} otherwise. + */ + public boolean isFileRequestClose() { + return this._tag == Tag.FILE_REQUEST_CLOSE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUEST_CLOSE}. + * + *

(file_requests) Closed file request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUEST_CLOSE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestClose(FileRequestCloseType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestClose(Tag.FILE_REQUEST_CLOSE, value); + } + + /** + * (file_requests) Closed file request + * + *

This instance must be tagged as {@link Tag#FILE_REQUEST_CLOSE}.

+ * + * @return The {@link FileRequestCloseType} value associated with this + * instance if {@link #isFileRequestClose} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestClose} is {@code + * false}. + */ + public FileRequestCloseType getFileRequestCloseValue() { + if (this._tag != Tag.FILE_REQUEST_CLOSE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_CLOSE, but was Tag." + this._tag.name()); + } + return fileRequestCloseValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_CREATE}, {@code false} otherwise. + */ + public boolean isFileRequestCreate() { + return this._tag == Tag.FILE_REQUEST_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUEST_CREATE}. + * + *

(file_requests) Created file request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUEST_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestCreate(FileRequestCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestCreate(Tag.FILE_REQUEST_CREATE, value); + } + + /** + * (file_requests) Created file request + * + *

This instance must be tagged as {@link Tag#FILE_REQUEST_CREATE}.

+ * + * @return The {@link FileRequestCreateType} value associated with this + * instance if {@link #isFileRequestCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestCreate} is {@code + * false}. + */ + public FileRequestCreateType getFileRequestCreateValue() { + if (this._tag != Tag.FILE_REQUEST_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_CREATE, but was Tag." + this._tag.name()); + } + return fileRequestCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_DELETE}, {@code false} otherwise. + */ + public boolean isFileRequestDelete() { + return this._tag == Tag.FILE_REQUEST_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUEST_DELETE}. + * + *

(file_requests) Delete file request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUEST_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestDelete(FileRequestDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestDelete(Tag.FILE_REQUEST_DELETE, value); + } + + /** + * (file_requests) Delete file request + * + *

This instance must be tagged as {@link Tag#FILE_REQUEST_DELETE}.

+ * + * @return The {@link FileRequestDeleteType} value associated with this + * instance if {@link #isFileRequestDelete} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestDelete} is {@code + * false}. + */ + public FileRequestDeleteType getFileRequestDeleteValue() { + if (this._tag != Tag.FILE_REQUEST_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_DELETE, but was Tag." + this._tag.name()); + } + return fileRequestDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUEST_RECEIVE_FILE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUEST_RECEIVE_FILE}, {@code false} otherwise. + */ + public boolean isFileRequestReceiveFile() { + return this._tag == Tag.FILE_REQUEST_RECEIVE_FILE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUEST_RECEIVE_FILE}. + * + *

(file_requests) Received files for file request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUEST_RECEIVE_FILE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestReceiveFile(FileRequestReceiveFileType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestReceiveFile(Tag.FILE_REQUEST_RECEIVE_FILE, value); + } + + /** + * (file_requests) Received files for file request + * + *

This instance must be tagged as {@link + * Tag#FILE_REQUEST_RECEIVE_FILE}.

+ * + * @return The {@link FileRequestReceiveFileType} value associated with this + * instance if {@link #isFileRequestReceiveFile} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestReceiveFile} is + * {@code false}. + */ + public FileRequestReceiveFileType getFileRequestReceiveFileValue() { + if (this._tag != Tag.FILE_REQUEST_RECEIVE_FILE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUEST_RECEIVE_FILE, but was Tag." + this._tag.name()); + } + return fileRequestReceiveFileValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_ADD_EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_ADD_EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isGroupAddExternalId() { + return this._tag == Tag.GROUP_ADD_EXTERNAL_ID; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_ADD_EXTERNAL_ID}. + * + *

(groups) Added external ID for group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_ADD_EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupAddExternalId(GroupAddExternalIdType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupAddExternalId(Tag.GROUP_ADD_EXTERNAL_ID, value); + } + + /** + * (groups) Added external ID for group + * + *

This instance must be tagged as {@link Tag#GROUP_ADD_EXTERNAL_ID}. + *

+ * + * @return The {@link GroupAddExternalIdType} value associated with this + * instance if {@link #isGroupAddExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupAddExternalId} is {@code + * false}. + */ + public GroupAddExternalIdType getGroupAddExternalIdValue() { + if (this._tag != Tag.GROUP_ADD_EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_ADD_EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return groupAddExternalIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_ADD_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_ADD_MEMBER}, {@code false} otherwise. + */ + public boolean isGroupAddMember() { + return this._tag == Tag.GROUP_ADD_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_ADD_MEMBER}. + * + *

(groups) Added team members to group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_ADD_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupAddMember(GroupAddMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupAddMember(Tag.GROUP_ADD_MEMBER, value); + } + + /** + * (groups) Added team members to group + * + *

This instance must be tagged as {@link Tag#GROUP_ADD_MEMBER}.

+ * + * @return The {@link GroupAddMemberType} value associated with this + * instance if {@link #isGroupAddMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupAddMember} is {@code + * false}. + */ + public GroupAddMemberType getGroupAddMemberValue() { + if (this._tag != Tag.GROUP_ADD_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_ADD_MEMBER, but was Tag." + this._tag.name()); + } + return groupAddMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isGroupChangeExternalId() { + return this._tag == Tag.GROUP_CHANGE_EXTERNAL_ID; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID}. + * + *

(groups) Changed external ID for group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_CHANGE_EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupChangeExternalId(GroupChangeExternalIdType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupChangeExternalId(Tag.GROUP_CHANGE_EXTERNAL_ID, value); + } + + /** + * (groups) Changed external ID for group + * + *

This instance must be tagged as {@link Tag#GROUP_CHANGE_EXTERNAL_ID}. + *

+ * + * @return The {@link GroupChangeExternalIdType} value associated with this + * instance if {@link #isGroupChangeExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupChangeExternalId} is + * {@code false}. + */ + public GroupChangeExternalIdType getGroupChangeExternalIdValue() { + if (this._tag != Tag.GROUP_CHANGE_EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CHANGE_EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return groupChangeExternalIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE}, {@code false} otherwise. + */ + public boolean isGroupChangeManagementType() { + return this._tag == Tag.GROUP_CHANGE_MANAGEMENT_TYPE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE}. + * + *

(groups) Changed group management type

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupChangeManagementType(GroupChangeManagementTypeType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupChangeManagementType(Tag.GROUP_CHANGE_MANAGEMENT_TYPE, value); + } + + /** + * (groups) Changed group management type + * + *

This instance must be tagged as {@link + * Tag#GROUP_CHANGE_MANAGEMENT_TYPE}.

+ * + * @return The {@link GroupChangeManagementTypeType} value associated with + * this instance if {@link #isGroupChangeManagementType} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isGroupChangeManagementType} is + * {@code false}. + */ + public GroupChangeManagementTypeType getGroupChangeManagementTypeValue() { + if (this._tag != Tag.GROUP_CHANGE_MANAGEMENT_TYPE) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CHANGE_MANAGEMENT_TYPE, but was Tag." + this._tag.name()); + } + return groupChangeManagementTypeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE}, {@code false} otherwise. + */ + public boolean isGroupChangeMemberRole() { + return this._tag == Tag.GROUP_CHANGE_MEMBER_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE}. + * + *

(groups) Changed manager permissions of group member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_CHANGE_MEMBER_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupChangeMemberRole(GroupChangeMemberRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupChangeMemberRole(Tag.GROUP_CHANGE_MEMBER_ROLE, value); + } + + /** + * (groups) Changed manager permissions of group member + * + *

This instance must be tagged as {@link Tag#GROUP_CHANGE_MEMBER_ROLE}. + *

+ * + * @return The {@link GroupChangeMemberRoleType} value associated with this + * instance if {@link #isGroupChangeMemberRole} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupChangeMemberRole} is + * {@code false}. + */ + public GroupChangeMemberRoleType getGroupChangeMemberRoleValue() { + if (this._tag != Tag.GROUP_CHANGE_MEMBER_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CHANGE_MEMBER_ROLE, but was Tag." + this._tag.name()); + } + return groupChangeMemberRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_CREATE}, {@code false} otherwise. + */ + public boolean isGroupCreate() { + return this._tag == Tag.GROUP_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_CREATE}. + * + *

(groups) Created group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupCreate(GroupCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupCreate(Tag.GROUP_CREATE, value); + } + + /** + * (groups) Created group + * + *

This instance must be tagged as {@link Tag#GROUP_CREATE}.

+ * + * @return The {@link GroupCreateType} value associated with this instance + * if {@link #isGroupCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupCreate} is {@code + * false}. + */ + public GroupCreateType getGroupCreateValue() { + if (this._tag != Tag.GROUP_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_CREATE, but was Tag." + this._tag.name()); + } + return groupCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_DELETE}, {@code false} otherwise. + */ + public boolean isGroupDelete() { + return this._tag == Tag.GROUP_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_DELETE}. + * + *

(groups) Deleted group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupDelete(GroupDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupDelete(Tag.GROUP_DELETE, value); + } + + /** + * (groups) Deleted group + * + *

This instance must be tagged as {@link Tag#GROUP_DELETE}.

+ * + * @return The {@link GroupDeleteType} value associated with this instance + * if {@link #isGroupDelete} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupDelete} is {@code + * false}. + */ + public GroupDeleteType getGroupDeleteValue() { + if (this._tag != Tag.GROUP_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_DELETE, but was Tag." + this._tag.name()); + } + return groupDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_DESCRIPTION_UPDATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_DESCRIPTION_UPDATED}, {@code false} otherwise. + */ + public boolean isGroupDescriptionUpdated() { + return this._tag == Tag.GROUP_DESCRIPTION_UPDATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_DESCRIPTION_UPDATED}. + * + *

(groups) Updated group (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_DESCRIPTION_UPDATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupDescriptionUpdated(GroupDescriptionUpdatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupDescriptionUpdated(Tag.GROUP_DESCRIPTION_UPDATED, value); + } + + /** + * (groups) Updated group (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#GROUP_DESCRIPTION_UPDATED}.

+ * + * @return The {@link GroupDescriptionUpdatedType} value associated with + * this instance if {@link #isGroupDescriptionUpdated} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupDescriptionUpdated} is + * {@code false}. + */ + public GroupDescriptionUpdatedType getGroupDescriptionUpdatedValue() { + if (this._tag != Tag.GROUP_DESCRIPTION_UPDATED) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_DESCRIPTION_UPDATED, but was Tag." + this._tag.name()); + } + return groupDescriptionUpdatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_JOIN_POLICY_UPDATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_JOIN_POLICY_UPDATED}, {@code false} otherwise. + */ + public boolean isGroupJoinPolicyUpdated() { + return this._tag == Tag.GROUP_JOIN_POLICY_UPDATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_JOIN_POLICY_UPDATED}. + * + *

(groups) Updated group join policy (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_JOIN_POLICY_UPDATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupJoinPolicyUpdated(GroupJoinPolicyUpdatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupJoinPolicyUpdated(Tag.GROUP_JOIN_POLICY_UPDATED, value); + } + + /** + * (groups) Updated group join policy (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#GROUP_JOIN_POLICY_UPDATED}.

+ * + * @return The {@link GroupJoinPolicyUpdatedType} value associated with this + * instance if {@link #isGroupJoinPolicyUpdated} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupJoinPolicyUpdated} is + * {@code false}. + */ + public GroupJoinPolicyUpdatedType getGroupJoinPolicyUpdatedValue() { + if (this._tag != Tag.GROUP_JOIN_POLICY_UPDATED) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_JOIN_POLICY_UPDATED, but was Tag." + this._tag.name()); + } + return groupJoinPolicyUpdatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_MOVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_MOVED}, {@code false} otherwise. + */ + public boolean isGroupMoved() { + return this._tag == Tag.GROUP_MOVED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_MOVED}. + * + *

(groups) Moved group (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_MOVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupMoved(GroupMovedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupMoved(Tag.GROUP_MOVED, value); + } + + /** + * (groups) Moved group (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#GROUP_MOVED}.

+ * + * @return The {@link GroupMovedType} value associated with this instance if + * {@link #isGroupMoved} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupMoved} is {@code false}. + */ + public GroupMovedType getGroupMovedValue() { + if (this._tag != Tag.GROUP_MOVED) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_MOVED, but was Tag." + this._tag.name()); + } + return groupMovedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isGroupRemoveExternalId() { + return this._tag == Tag.GROUP_REMOVE_EXTERNAL_ID; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID}. + * + *

(groups) Removed external ID for group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_REMOVE_EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupRemoveExternalId(GroupRemoveExternalIdType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupRemoveExternalId(Tag.GROUP_REMOVE_EXTERNAL_ID, value); + } + + /** + * (groups) Removed external ID for group + * + *

This instance must be tagged as {@link Tag#GROUP_REMOVE_EXTERNAL_ID}. + *

+ * + * @return The {@link GroupRemoveExternalIdType} value associated with this + * instance if {@link #isGroupRemoveExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupRemoveExternalId} is + * {@code false}. + */ + public GroupRemoveExternalIdType getGroupRemoveExternalIdValue() { + if (this._tag != Tag.GROUP_REMOVE_EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_REMOVE_EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return groupRemoveExternalIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_REMOVE_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_REMOVE_MEMBER}, {@code false} otherwise. + */ + public boolean isGroupRemoveMember() { + return this._tag == Tag.GROUP_REMOVE_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_REMOVE_MEMBER}. + * + *

(groups) Removed team members from group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_REMOVE_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupRemoveMember(GroupRemoveMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupRemoveMember(Tag.GROUP_REMOVE_MEMBER, value); + } + + /** + * (groups) Removed team members from group + * + *

This instance must be tagged as {@link Tag#GROUP_REMOVE_MEMBER}.

+ * + * @return The {@link GroupRemoveMemberType} value associated with this + * instance if {@link #isGroupRemoveMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupRemoveMember} is {@code + * false}. + */ + public GroupRemoveMemberType getGroupRemoveMemberValue() { + if (this._tag != Tag.GROUP_REMOVE_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_REMOVE_MEMBER, but was Tag." + this._tag.name()); + } + return groupRemoveMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_RENAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_RENAME}, {@code false} otherwise. + */ + public boolean isGroupRename() { + return this._tag == Tag.GROUP_RENAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_RENAME}. + * + *

(groups) Renamed group

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_RENAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupRename(GroupRenameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupRename(Tag.GROUP_RENAME, value); + } + + /** + * (groups) Renamed group + * + *

This instance must be tagged as {@link Tag#GROUP_RENAME}.

+ * + * @return The {@link GroupRenameType} value associated with this instance + * if {@link #isGroupRename} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroupRename} is {@code + * false}. + */ + public GroupRenameType getGroupRenameValue() { + if (this._tag != Tag.GROUP_RENAME) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_RENAME, but was Tag." + this._tag.name()); + } + return groupRenameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED}, {@code false} otherwise. + */ + public boolean isAccountLockOrUnlocked() { + return this._tag == Tag.ACCOUNT_LOCK_OR_UNLOCKED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED}. + * + *

(logins) Unlocked/locked account after failed sign in attempts

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ACCOUNT_LOCK_OR_UNLOCKED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType accountLockOrUnlocked(AccountLockOrUnlockedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAccountLockOrUnlocked(Tag.ACCOUNT_LOCK_OR_UNLOCKED, value); + } + + /** + * (logins) Unlocked/locked account after failed sign in attempts + * + *

This instance must be tagged as {@link Tag#ACCOUNT_LOCK_OR_UNLOCKED}. + *

+ * + * @return The {@link AccountLockOrUnlockedType} value associated with this + * instance if {@link #isAccountLockOrUnlocked} is {@code true}. + * + * @throws IllegalStateException If {@link #isAccountLockOrUnlocked} is + * {@code false}. + */ + public AccountLockOrUnlockedType getAccountLockOrUnlockedValue() { + if (this._tag != Tag.ACCOUNT_LOCK_OR_UNLOCKED) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_LOCK_OR_UNLOCKED, but was Tag." + this._tag.name()); + } + return accountLockOrUnlockedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#EMM_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#EMM_ERROR}, + * {@code false} otherwise. + */ + public boolean isEmmError() { + return this._tag == Tag.EMM_ERROR; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMM_ERROR}. + * + *

(logins) Failed to sign in via EMM (deprecated, replaced by 'Failed + * to sign in')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMM_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emmError(EmmErrorType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmmError(Tag.EMM_ERROR, value); + } + + /** + * (logins) Failed to sign in via EMM (deprecated, replaced by 'Failed to + * sign in') + * + *

This instance must be tagged as {@link Tag#EMM_ERROR}.

+ * + * @return The {@link EmmErrorType} value associated with this instance if + * {@link #isEmmError} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmError} is {@code false}. + */ + public EmmErrorType getEmmErrorValue() { + if (this._tag != Tag.EMM_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_ERROR, but was Tag." + this._tag.name()); + } + return emmErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS}, {@code false} + * otherwise. + */ + public boolean isGuestAdminSignedInViaTrustedTeams() { + return this._tag == Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS}. + * + *

(logins) Started trusted team admin session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType guestAdminSignedInViaTrustedTeams(GuestAdminSignedInViaTrustedTeamsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGuestAdminSignedInViaTrustedTeams(Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS, value); + } + + /** + * (logins) Started trusted team admin session + * + *

This instance must be tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS}.

+ * + * @return The {@link GuestAdminSignedInViaTrustedTeamsType} value + * associated with this instance if {@link + * #isGuestAdminSignedInViaTrustedTeams} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGuestAdminSignedInViaTrustedTeams} is {@code false}. + */ + public GuestAdminSignedInViaTrustedTeamsType getGuestAdminSignedInViaTrustedTeamsValue() { + if (this._tag != Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS) { + throw new IllegalStateException("Invalid tag: required Tag.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS, but was Tag." + this._tag.name()); + } + return guestAdminSignedInViaTrustedTeamsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS}, {@code false} + * otherwise. + */ + public boolean isGuestAdminSignedOutViaTrustedTeams() { + return this._tag == Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS}. + * + *

(logins) Ended trusted team admin session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType guestAdminSignedOutViaTrustedTeams(GuestAdminSignedOutViaTrustedTeamsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGuestAdminSignedOutViaTrustedTeams(Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS, value); + } + + /** + * (logins) Ended trusted team admin session + * + *

This instance must be tagged as {@link + * Tag#GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS}.

+ * + * @return The {@link GuestAdminSignedOutViaTrustedTeamsType} value + * associated with this instance if {@link + * #isGuestAdminSignedOutViaTrustedTeams} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isGuestAdminSignedOutViaTrustedTeams} is {@code false}. + */ + public GuestAdminSignedOutViaTrustedTeamsType getGuestAdminSignedOutViaTrustedTeamsValue() { + if (this._tag != Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS) { + throw new IllegalStateException("Invalid tag: required Tag.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS, but was Tag." + this._tag.name()); + } + return guestAdminSignedOutViaTrustedTeamsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#LOGIN_FAIL}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LOGIN_FAIL}, {@code false} otherwise. + */ + public boolean isLoginFail() { + return this._tag == Tag.LOGIN_FAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LOGIN_FAIL}. + * + *

(logins) Failed to sign in

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LOGIN_FAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType loginFail(LoginFailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLoginFail(Tag.LOGIN_FAIL, value); + } + + /** + * (logins) Failed to sign in + * + *

This instance must be tagged as {@link Tag#LOGIN_FAIL}.

+ * + * @return The {@link LoginFailType} value associated with this instance if + * {@link #isLoginFail} is {@code true}. + * + * @throws IllegalStateException If {@link #isLoginFail} is {@code false}. + */ + public LoginFailType getLoginFailValue() { + if (this._tag != Tag.LOGIN_FAIL) { + throw new IllegalStateException("Invalid tag: required Tag.LOGIN_FAIL, but was Tag." + this._tag.name()); + } + return loginFailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LOGIN_SUCCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LOGIN_SUCCESS}, {@code false} otherwise. + */ + public boolean isLoginSuccess() { + return this._tag == Tag.LOGIN_SUCCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LOGIN_SUCCESS}. + * + *

(logins) Signed in

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LOGIN_SUCCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType loginSuccess(LoginSuccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLoginSuccess(Tag.LOGIN_SUCCESS, value); + } + + /** + * (logins) Signed in + * + *

This instance must be tagged as {@link Tag#LOGIN_SUCCESS}.

+ * + * @return The {@link LoginSuccessType} value associated with this instance + * if {@link #isLoginSuccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isLoginSuccess} is {@code + * false}. + */ + public LoginSuccessType getLoginSuccessValue() { + if (this._tag != Tag.LOGIN_SUCCESS) { + throw new IllegalStateException("Invalid tag: required Tag.LOGIN_SUCCESS, but was Tag." + this._tag.name()); + } + return loginSuccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#LOGOUT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#LOGOUT}, + * {@code false} otherwise. + */ + public boolean isLogout() { + return this._tag == Tag.LOGOUT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#LOGOUT}. + * + *

(logins) Signed out

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#LOGOUT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType logout(LogoutType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndLogout(Tag.LOGOUT, value); + } + + /** + * (logins) Signed out + * + *

This instance must be tagged as {@link Tag#LOGOUT}.

+ * + * @return The {@link LogoutType} value associated with this instance if + * {@link #isLogout} is {@code true}. + * + * @throws IllegalStateException If {@link #isLogout} is {@code false}. + */ + public LogoutType getLogoutValue() { + if (this._tag != Tag.LOGOUT) { + throw new IllegalStateException("Invalid tag: required Tag.LOGOUT, but was Tag." + this._tag.name()); + } + return logoutValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESELLER_SUPPORT_SESSION_END}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_END}, {@code false} otherwise. + */ + public boolean isResellerSupportSessionEnd() { + return this._tag == Tag.RESELLER_SUPPORT_SESSION_END; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#RESELLER_SUPPORT_SESSION_END}. + * + *

(logins) Ended reseller support session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#RESELLER_SUPPORT_SESSION_END}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType resellerSupportSessionEnd(ResellerSupportSessionEndType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndResellerSupportSessionEnd(Tag.RESELLER_SUPPORT_SESSION_END, value); + } + + /** + * (logins) Ended reseller support session + * + *

This instance must be tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_END}.

+ * + * @return The {@link ResellerSupportSessionEndType} value associated with + * this instance if {@link #isResellerSupportSessionEnd} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isResellerSupportSessionEnd} is + * {@code false}. + */ + public ResellerSupportSessionEndType getResellerSupportSessionEndValue() { + if (this._tag != Tag.RESELLER_SUPPORT_SESSION_END) { + throw new IllegalStateException("Invalid tag: required Tag.RESELLER_SUPPORT_SESSION_END, but was Tag." + this._tag.name()); + } + return resellerSupportSessionEndValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESELLER_SUPPORT_SESSION_START}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_START}, {@code false} otherwise. + */ + public boolean isResellerSupportSessionStart() { + return this._tag == Tag.RESELLER_SUPPORT_SESSION_START; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#RESELLER_SUPPORT_SESSION_START}. + * + *

(logins) Started reseller support session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#RESELLER_SUPPORT_SESSION_START}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType resellerSupportSessionStart(ResellerSupportSessionStartType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndResellerSupportSessionStart(Tag.RESELLER_SUPPORT_SESSION_START, value); + } + + /** + * (logins) Started reseller support session + * + *

This instance must be tagged as {@link + * Tag#RESELLER_SUPPORT_SESSION_START}.

+ * + * @return The {@link ResellerSupportSessionStartType} value associated with + * this instance if {@link #isResellerSupportSessionStart} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isResellerSupportSessionStart} + * is {@code false}. + */ + public ResellerSupportSessionStartType getResellerSupportSessionStartValue() { + if (this._tag != Tag.RESELLER_SUPPORT_SESSION_START) { + throw new IllegalStateException("Invalid tag: required Tag.RESELLER_SUPPORT_SESSION_START, but was Tag." + this._tag.name()); + } + return resellerSupportSessionStartValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SIGN_IN_AS_SESSION_END}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SIGN_IN_AS_SESSION_END}, {@code false} otherwise. + */ + public boolean isSignInAsSessionEnd() { + return this._tag == Tag.SIGN_IN_AS_SESSION_END; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SIGN_IN_AS_SESSION_END}. + * + *

(logins) Ended admin sign-in-as session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SIGN_IN_AS_SESSION_END}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType signInAsSessionEnd(SignInAsSessionEndType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSignInAsSessionEnd(Tag.SIGN_IN_AS_SESSION_END, value); + } + + /** + * (logins) Ended admin sign-in-as session + * + *

This instance must be tagged as {@link Tag#SIGN_IN_AS_SESSION_END}. + *

+ * + * @return The {@link SignInAsSessionEndType} value associated with this + * instance if {@link #isSignInAsSessionEnd} is {@code true}. + * + * @throws IllegalStateException If {@link #isSignInAsSessionEnd} is {@code + * false}. + */ + public SignInAsSessionEndType getSignInAsSessionEndValue() { + if (this._tag != Tag.SIGN_IN_AS_SESSION_END) { + throw new IllegalStateException("Invalid tag: required Tag.SIGN_IN_AS_SESSION_END, but was Tag." + this._tag.name()); + } + return signInAsSessionEndValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SIGN_IN_AS_SESSION_START}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SIGN_IN_AS_SESSION_START}, {@code false} otherwise. + */ + public boolean isSignInAsSessionStart() { + return this._tag == Tag.SIGN_IN_AS_SESSION_START; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SIGN_IN_AS_SESSION_START}. + * + *

(logins) Started admin sign-in-as session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SIGN_IN_AS_SESSION_START}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType signInAsSessionStart(SignInAsSessionStartType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSignInAsSessionStart(Tag.SIGN_IN_AS_SESSION_START, value); + } + + /** + * (logins) Started admin sign-in-as session + * + *

This instance must be tagged as {@link Tag#SIGN_IN_AS_SESSION_START}. + *

+ * + * @return The {@link SignInAsSessionStartType} value associated with this + * instance if {@link #isSignInAsSessionStart} is {@code true}. + * + * @throws IllegalStateException If {@link #isSignInAsSessionStart} is + * {@code false}. + */ + public SignInAsSessionStartType getSignInAsSessionStartValue() { + if (this._tag != Tag.SIGN_IN_AS_SESSION_START) { + throw new IllegalStateException("Invalid tag: required Tag.SIGN_IN_AS_SESSION_START, but was Tag." + this._tag.name()); + } + return signInAsSessionStartValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SSO_ERROR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SSO_ERROR}, + * {@code false} otherwise. + */ + public boolean isSsoError() { + return this._tag == Tag.SSO_ERROR; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_ERROR}. + * + *

(logins) Failed to sign in via SSO (deprecated, replaced by 'Failed + * to sign in')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_ERROR}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoError(SsoErrorType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoError(Tag.SSO_ERROR, value); + } + + /** + * (logins) Failed to sign in via SSO (deprecated, replaced by 'Failed to + * sign in') + * + *

This instance must be tagged as {@link Tag#SSO_ERROR}.

+ * + * @return The {@link SsoErrorType} value associated with this instance if + * {@link #isSsoError} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoError} is {@code false}. + */ + public SsoErrorType getSsoErrorValue() { + if (this._tag != Tag.SSO_ERROR) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ERROR, but was Tag." + this._tag.name()); + } + return ssoErrorValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT}, {@code false} otherwise. + */ + public boolean isBackupAdminInvitationSent() { + return this._tag == Tag.BACKUP_ADMIN_INVITATION_SENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT}. + * + *

(members) Invited members to activate Backup

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType backupAdminInvitationSent(BackupAdminInvitationSentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBackupAdminInvitationSent(Tag.BACKUP_ADMIN_INVITATION_SENT, value); + } + + /** + * (members) Invited members to activate Backup + * + *

This instance must be tagged as {@link + * Tag#BACKUP_ADMIN_INVITATION_SENT}.

+ * + * @return The {@link BackupAdminInvitationSentType} value associated with + * this instance if {@link #isBackupAdminInvitationSent} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isBackupAdminInvitationSent} is + * {@code false}. + */ + public BackupAdminInvitationSentType getBackupAdminInvitationSentValue() { + if (this._tag != Tag.BACKUP_ADMIN_INVITATION_SENT) { + throw new IllegalStateException("Invalid tag: required Tag.BACKUP_ADMIN_INVITATION_SENT, but was Tag." + this._tag.name()); + } + return backupAdminInvitationSentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BACKUP_INVITATION_OPENED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BACKUP_INVITATION_OPENED}, {@code false} otherwise. + */ + public boolean isBackupInvitationOpened() { + return this._tag == Tag.BACKUP_INVITATION_OPENED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BACKUP_INVITATION_OPENED}. + * + *

(members) Opened Backup invite

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BACKUP_INVITATION_OPENED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType backupInvitationOpened(BackupInvitationOpenedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBackupInvitationOpened(Tag.BACKUP_INVITATION_OPENED, value); + } + + /** + * (members) Opened Backup invite + * + *

This instance must be tagged as {@link Tag#BACKUP_INVITATION_OPENED}. + *

+ * + * @return The {@link BackupInvitationOpenedType} value associated with this + * instance if {@link #isBackupInvitationOpened} is {@code true}. + * + * @throws IllegalStateException If {@link #isBackupInvitationOpened} is + * {@code false}. + */ + public BackupInvitationOpenedType getBackupInvitationOpenedValue() { + if (this._tag != Tag.BACKUP_INVITATION_OPENED) { + throw new IllegalStateException("Invalid tag: required Tag.BACKUP_INVITATION_OPENED, but was Tag." + this._tag.name()); + } + return backupInvitationOpenedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CREATE_TEAM_INVITE_LINK}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CREATE_TEAM_INVITE_LINK}, {@code false} otherwise. + */ + public boolean isCreateTeamInviteLink() { + return this._tag == Tag.CREATE_TEAM_INVITE_LINK; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CREATE_TEAM_INVITE_LINK}. + * + *

(members) Created team invite link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CREATE_TEAM_INVITE_LINK}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType createTeamInviteLink(CreateTeamInviteLinkType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndCreateTeamInviteLink(Tag.CREATE_TEAM_INVITE_LINK, value); + } + + /** + * (members) Created team invite link + * + *

This instance must be tagged as {@link Tag#CREATE_TEAM_INVITE_LINK}. + *

+ * + * @return The {@link CreateTeamInviteLinkType} value associated with this + * instance if {@link #isCreateTeamInviteLink} is {@code true}. + * + * @throws IllegalStateException If {@link #isCreateTeamInviteLink} is + * {@code false}. + */ + public CreateTeamInviteLinkType getCreateTeamInviteLinkValue() { + if (this._tag != Tag.CREATE_TEAM_INVITE_LINK) { + throw new IllegalStateException("Invalid tag: required Tag.CREATE_TEAM_INVITE_LINK, but was Tag." + this._tag.name()); + } + return createTeamInviteLinkValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DELETE_TEAM_INVITE_LINK}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DELETE_TEAM_INVITE_LINK}, {@code false} otherwise. + */ + public boolean isDeleteTeamInviteLink() { + return this._tag == Tag.DELETE_TEAM_INVITE_LINK; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DELETE_TEAM_INVITE_LINK}. + * + *

(members) Deleted team invite link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DELETE_TEAM_INVITE_LINK}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deleteTeamInviteLink(DeleteTeamInviteLinkType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeleteTeamInviteLink(Tag.DELETE_TEAM_INVITE_LINK, value); + } + + /** + * (members) Deleted team invite link + * + *

This instance must be tagged as {@link Tag#DELETE_TEAM_INVITE_LINK}. + *

+ * + * @return The {@link DeleteTeamInviteLinkType} value associated with this + * instance if {@link #isDeleteTeamInviteLink} is {@code true}. + * + * @throws IllegalStateException If {@link #isDeleteTeamInviteLink} is + * {@code false}. + */ + public DeleteTeamInviteLinkType getDeleteTeamInviteLinkValue() { + if (this._tag != Tag.DELETE_TEAM_INVITE_LINK) { + throw new IllegalStateException("Invalid tag: required Tag.DELETE_TEAM_INVITE_LINK, but was Tag." + this._tag.name()); + } + return deleteTeamInviteLinkValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ADD_EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ADD_EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isMemberAddExternalId() { + return this._tag == Tag.MEMBER_ADD_EXTERNAL_ID; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_ADD_EXTERNAL_ID}. + * + *

(members) Added an external ID for team member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_ADD_EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberAddExternalId(MemberAddExternalIdType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberAddExternalId(Tag.MEMBER_ADD_EXTERNAL_ID, value); + } + + /** + * (members) Added an external ID for team member + * + *

This instance must be tagged as {@link Tag#MEMBER_ADD_EXTERNAL_ID}. + *

+ * + * @return The {@link MemberAddExternalIdType} value associated with this + * instance if {@link #isMemberAddExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberAddExternalId} is + * {@code false}. + */ + public MemberAddExternalIdType getMemberAddExternalIdValue() { + if (this._tag != Tag.MEMBER_ADD_EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ADD_EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return memberAddExternalIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_ADD_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_ADD_NAME}, {@code false} otherwise. + */ + public boolean isMemberAddName() { + return this._tag == Tag.MEMBER_ADD_NAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_ADD_NAME}. + * + *

(members) Added team member name

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_ADD_NAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberAddName(MemberAddNameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberAddName(Tag.MEMBER_ADD_NAME, value); + } + + /** + * (members) Added team member name + * + *

This instance must be tagged as {@link Tag#MEMBER_ADD_NAME}.

+ * + * @return The {@link MemberAddNameType} value associated with this instance + * if {@link #isMemberAddName} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberAddName} is {@code + * false}. + */ + public MemberAddNameType getMemberAddNameValue() { + if (this._tag != Tag.MEMBER_ADD_NAME) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_ADD_NAME, but was Tag." + this._tag.name()); + } + return memberAddNameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE}, {@code false} otherwise. + */ + public boolean isMemberChangeAdminRole() { + return this._tag == Tag.MEMBER_CHANGE_ADMIN_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE}. + * + *

(members) Changed team member admin role

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_CHANGE_ADMIN_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberChangeAdminRole(MemberChangeAdminRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberChangeAdminRole(Tag.MEMBER_CHANGE_ADMIN_ROLE, value); + } + + /** + * (members) Changed team member admin role + * + *

This instance must be tagged as {@link Tag#MEMBER_CHANGE_ADMIN_ROLE}. + *

+ * + * @return The {@link MemberChangeAdminRoleType} value associated with this + * instance if {@link #isMemberChangeAdminRole} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeAdminRole} is + * {@code false}. + */ + public MemberChangeAdminRoleType getMemberChangeAdminRoleValue() { + if (this._tag != Tag.MEMBER_CHANGE_ADMIN_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_ADMIN_ROLE, but was Tag." + this._tag.name()); + } + return memberChangeAdminRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_EMAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_EMAIL}, {@code false} otherwise. + */ + public boolean isMemberChangeEmail() { + return this._tag == Tag.MEMBER_CHANGE_EMAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_CHANGE_EMAIL}. + * + *

(members) Changed team member email

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_CHANGE_EMAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberChangeEmail(MemberChangeEmailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberChangeEmail(Tag.MEMBER_CHANGE_EMAIL, value); + } + + /** + * (members) Changed team member email + * + *

This instance must be tagged as {@link Tag#MEMBER_CHANGE_EMAIL}.

+ * + * @return The {@link MemberChangeEmailType} value associated with this + * instance if {@link #isMemberChangeEmail} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeEmail} is {@code + * false}. + */ + public MemberChangeEmailType getMemberChangeEmailValue() { + if (this._tag != Tag.MEMBER_CHANGE_EMAIL) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_EMAIL, but was Tag." + this._tag.name()); + } + return memberChangeEmailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isMemberChangeExternalId() { + return this._tag == Tag.MEMBER_CHANGE_EXTERNAL_ID; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID}. + * + *

(members) Changed the external ID for team member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberChangeExternalId(MemberChangeExternalIdType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberChangeExternalId(Tag.MEMBER_CHANGE_EXTERNAL_ID, value); + } + + /** + * (members) Changed the external ID for team member + * + *

This instance must be tagged as {@link + * Tag#MEMBER_CHANGE_EXTERNAL_ID}.

+ * + * @return The {@link MemberChangeExternalIdType} value associated with this + * instance if {@link #isMemberChangeExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeExternalId} is + * {@code false}. + */ + public MemberChangeExternalIdType getMemberChangeExternalIdValue() { + if (this._tag != Tag.MEMBER_CHANGE_EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return memberChangeExternalIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE}, {@code false} otherwise. + */ + public boolean isMemberChangeMembershipType() { + return this._tag == Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE}. + * + *

(members) Changed membership type (limited/full) of member + * (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberChangeMembershipType(MemberChangeMembershipTypeType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberChangeMembershipType(Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE, value); + } + + /** + * (members) Changed membership type (limited/full) of member (deprecated, + * no longer logged) + * + *

This instance must be tagged as {@link + * Tag#MEMBER_CHANGE_MEMBERSHIP_TYPE}.

+ * + * @return The {@link MemberChangeMembershipTypeType} value associated with + * this instance if {@link #isMemberChangeMembershipType} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isMemberChangeMembershipType} + * is {@code false}. + */ + public MemberChangeMembershipTypeType getMemberChangeMembershipTypeValue() { + if (this._tag != Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_MEMBERSHIP_TYPE, but was Tag." + this._tag.name()); + } + return memberChangeMembershipTypeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_NAME}, {@code false} otherwise. + */ + public boolean isMemberChangeName() { + return this._tag == Tag.MEMBER_CHANGE_NAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_CHANGE_NAME}. + * + *

(members) Changed team member name

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_CHANGE_NAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberChangeName(MemberChangeNameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberChangeName(Tag.MEMBER_CHANGE_NAME, value); + } + + /** + * (members) Changed team member name + * + *

This instance must be tagged as {@link Tag#MEMBER_CHANGE_NAME}.

+ * + * @return The {@link MemberChangeNameType} value associated with this + * instance if {@link #isMemberChangeName} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeName} is {@code + * false}. + */ + public MemberChangeNameType getMemberChangeNameValue() { + if (this._tag != Tag.MEMBER_CHANGE_NAME) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_NAME, but was Tag." + this._tag.name()); + } + return memberChangeNameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE}, {@code false} otherwise. + */ + public boolean isMemberChangeResellerRole() { + return this._tag == Tag.MEMBER_CHANGE_RESELLER_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE}. + * + *

(members) Changed team member reseller role

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberChangeResellerRole(MemberChangeResellerRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberChangeResellerRole(Tag.MEMBER_CHANGE_RESELLER_ROLE, value); + } + + /** + * (members) Changed team member reseller role + * + *

This instance must be tagged as {@link + * Tag#MEMBER_CHANGE_RESELLER_ROLE}.

+ * + * @return The {@link MemberChangeResellerRoleType} value associated with + * this instance if {@link #isMemberChangeResellerRole} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeResellerRole} is + * {@code false}. + */ + public MemberChangeResellerRoleType getMemberChangeResellerRoleValue() { + if (this._tag != Tag.MEMBER_CHANGE_RESELLER_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_RESELLER_ROLE, but was Tag." + this._tag.name()); + } + return memberChangeResellerRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_CHANGE_STATUS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_CHANGE_STATUS}, {@code false} otherwise. + */ + public boolean isMemberChangeStatus() { + return this._tag == Tag.MEMBER_CHANGE_STATUS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_CHANGE_STATUS}. + * + *

(members) Changed member status (invited, joined, suspended, etc.) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_CHANGE_STATUS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberChangeStatus(MemberChangeStatusType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberChangeStatus(Tag.MEMBER_CHANGE_STATUS, value); + } + + /** + * (members) Changed member status (invited, joined, suspended, etc.) + * + *

This instance must be tagged as {@link Tag#MEMBER_CHANGE_STATUS}. + *

+ * + * @return The {@link MemberChangeStatusType} value associated with this + * instance if {@link #isMemberChangeStatus} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberChangeStatus} is {@code + * false}. + */ + public MemberChangeStatusType getMemberChangeStatusValue() { + if (this._tag != Tag.MEMBER_CHANGE_STATUS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_CHANGE_STATUS, but was Tag." + this._tag.name()); + } + return memberChangeStatusValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS}, {@code false} otherwise. + */ + public boolean isMemberDeleteManualContacts() { + return this._tag == Tag.MEMBER_DELETE_MANUAL_CONTACTS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS}. + * + *

(members) Cleared manually added contacts

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberDeleteManualContacts(MemberDeleteManualContactsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberDeleteManualContacts(Tag.MEMBER_DELETE_MANUAL_CONTACTS, value); + } + + /** + * (members) Cleared manually added contacts + * + *

This instance must be tagged as {@link + * Tag#MEMBER_DELETE_MANUAL_CONTACTS}.

+ * + * @return The {@link MemberDeleteManualContactsType} value associated with + * this instance if {@link #isMemberDeleteManualContacts} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isMemberDeleteManualContacts} + * is {@code false}. + */ + public MemberDeleteManualContactsType getMemberDeleteManualContactsValue() { + if (this._tag != Tag.MEMBER_DELETE_MANUAL_CONTACTS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_DELETE_MANUAL_CONTACTS, but was Tag." + this._tag.name()); + } + return memberDeleteManualContactsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO}, {@code false} otherwise. + */ + public boolean isMemberDeleteProfilePhoto() { + return this._tag == Tag.MEMBER_DELETE_PROFILE_PHOTO; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO}. + * + *

(members) Deleted team member profile photo

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberDeleteProfilePhoto(MemberDeleteProfilePhotoType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberDeleteProfilePhoto(Tag.MEMBER_DELETE_PROFILE_PHOTO, value); + } + + /** + * (members) Deleted team member profile photo + * + *

This instance must be tagged as {@link + * Tag#MEMBER_DELETE_PROFILE_PHOTO}.

+ * + * @return The {@link MemberDeleteProfilePhotoType} value associated with + * this instance if {@link #isMemberDeleteProfilePhoto} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberDeleteProfilePhoto} is + * {@code false}. + */ + public MemberDeleteProfilePhotoType getMemberDeleteProfilePhotoValue() { + if (this._tag != Tag.MEMBER_DELETE_PROFILE_PHOTO) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_DELETE_PROFILE_PHOTO, but was Tag." + this._tag.name()); + } + return memberDeleteProfilePhotoValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS}, {@code false} + * otherwise. + */ + public boolean isMemberPermanentlyDeleteAccountContents() { + return this._tag == Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS}. + * + *

(members) Permanently deleted contents of deleted team member account + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberPermanentlyDeleteAccountContents(MemberPermanentlyDeleteAccountContentsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberPermanentlyDeleteAccountContents(Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS, value); + } + + /** + * (members) Permanently deleted contents of deleted team member account + * + *

This instance must be tagged as {@link + * Tag#MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS}.

+ * + * @return The {@link MemberPermanentlyDeleteAccountContentsType} value + * associated with this instance if {@link + * #isMemberPermanentlyDeleteAccountContents} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberPermanentlyDeleteAccountContents} is {@code false}. + */ + public MemberPermanentlyDeleteAccountContentsType getMemberPermanentlyDeleteAccountContentsValue() { + if (this._tag != Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS, but was Tag." + this._tag.name()); + } + return memberPermanentlyDeleteAccountContentsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID}, {@code false} otherwise. + */ + public boolean isMemberRemoveExternalId() { + return this._tag == Tag.MEMBER_REMOVE_EXTERNAL_ID; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID}. + * + *

(members) Removed the external ID for team member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberRemoveExternalId(MemberRemoveExternalIdType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberRemoveExternalId(Tag.MEMBER_REMOVE_EXTERNAL_ID, value); + } + + /** + * (members) Removed the external ID for team member + * + *

This instance must be tagged as {@link + * Tag#MEMBER_REMOVE_EXTERNAL_ID}.

+ * + * @return The {@link MemberRemoveExternalIdType} value associated with this + * instance if {@link #isMemberRemoveExternalId} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberRemoveExternalId} is + * {@code false}. + */ + public MemberRemoveExternalIdType getMemberRemoveExternalIdValue() { + if (this._tag != Tag.MEMBER_REMOVE_EXTERNAL_ID) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_REMOVE_EXTERNAL_ID, but was Tag." + this._tag.name()); + } + return memberRemoveExternalIdValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SET_PROFILE_PHOTO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SET_PROFILE_PHOTO}, {@code false} otherwise. + */ + public boolean isMemberSetProfilePhoto() { + return this._tag == Tag.MEMBER_SET_PROFILE_PHOTO; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SET_PROFILE_PHOTO}. + * + *

(members) Set team member profile photo

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SET_PROFILE_PHOTO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSetProfilePhoto(MemberSetProfilePhotoType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSetProfilePhoto(Tag.MEMBER_SET_PROFILE_PHOTO, value); + } + + /** + * (members) Set team member profile photo + * + *

This instance must be tagged as {@link Tag#MEMBER_SET_PROFILE_PHOTO}. + *

+ * + * @return The {@link MemberSetProfilePhotoType} value associated with this + * instance if {@link #isMemberSetProfilePhoto} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberSetProfilePhoto} is + * {@code false}. + */ + public MemberSetProfilePhotoType getMemberSetProfilePhotoValue() { + if (this._tag != Tag.MEMBER_SET_PROFILE_PHOTO) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SET_PROFILE_PHOTO, but was Tag." + this._tag.name()); + } + return memberSetProfilePhotoValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA}, {@code false} otherwise. + */ + public boolean isMemberSpaceLimitsAddCustomQuota() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA}. + * + *

(members) Set custom member space limit

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsAddCustomQuota(MemberSpaceLimitsAddCustomQuotaType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsAddCustomQuota(Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA, value); + } + + /** + * (members) Set custom member space limit + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA}.

+ * + * @return The {@link MemberSpaceLimitsAddCustomQuotaType} value associated + * with this instance if {@link #isMemberSpaceLimitsAddCustomQuota} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsAddCustomQuota} is {@code false}. + */ + public MemberSpaceLimitsAddCustomQuotaType getMemberSpaceLimitsAddCustomQuotaValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsAddCustomQuotaValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsChangeCustomQuota() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA}. + * + *

(members) Changed custom member space limit

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsChangeCustomQuota(MemberSpaceLimitsChangeCustomQuotaType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsChangeCustomQuota(Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA, value); + } + + /** + * (members) Changed custom member space limit + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA}.

+ * + * @return The {@link MemberSpaceLimitsChangeCustomQuotaType} value + * associated with this instance if {@link + * #isMemberSpaceLimitsChangeCustomQuota} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangeCustomQuota} is {@code false}. + */ + public MemberSpaceLimitsChangeCustomQuotaType getMemberSpaceLimitsChangeCustomQuotaValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangeCustomQuotaValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS}, {@code false} otherwise. + */ + public boolean isMemberSpaceLimitsChangeStatus() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS}. + * + *

(members) Changed space limit status

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsChangeStatus(MemberSpaceLimitsChangeStatusType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsChangeStatus(Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS, value); + } + + /** + * (members) Changed space limit status + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_STATUS}.

+ * + * @return The {@link MemberSpaceLimitsChangeStatusType} value associated + * with this instance if {@link #isMemberSpaceLimitsChangeStatus} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangeStatus} is {@code false}. + */ + public MemberSpaceLimitsChangeStatusType getMemberSpaceLimitsChangeStatusValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_STATUS, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangeStatusValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsRemoveCustomQuota() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA}. + * + *

(members) Removed custom member space limit

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsRemoveCustomQuota(MemberSpaceLimitsRemoveCustomQuotaType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsRemoveCustomQuota(Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA, value); + } + + /** + * (members) Removed custom member space limit + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA}.

+ * + * @return The {@link MemberSpaceLimitsRemoveCustomQuotaType} value + * associated with this instance if {@link + * #isMemberSpaceLimitsRemoveCustomQuota} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsRemoveCustomQuota} is {@code false}. + */ + public MemberSpaceLimitsRemoveCustomQuotaType getMemberSpaceLimitsRemoveCustomQuotaValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsRemoveCustomQuotaValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SUGGEST}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SUGGEST}, {@code false} otherwise. + */ + public boolean isMemberSuggest() { + return this._tag == Tag.MEMBER_SUGGEST; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SUGGEST}. + * + *

(members) Suggested person to add to team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SUGGEST}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSuggest(MemberSuggestType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSuggest(Tag.MEMBER_SUGGEST, value); + } + + /** + * (members) Suggested person to add to team + * + *

This instance must be tagged as {@link Tag#MEMBER_SUGGEST}.

+ * + * @return The {@link MemberSuggestType} value associated with this instance + * if {@link #isMemberSuggest} is {@code true}. + * + * @throws IllegalStateException If {@link #isMemberSuggest} is {@code + * false}. + */ + public MemberSuggestType getMemberSuggestValue() { + if (this._tag != Tag.MEMBER_SUGGEST) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SUGGEST, but was Tag." + this._tag.name()); + } + return memberSuggestValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS}, {@code false} otherwise. + */ + public boolean isMemberTransferAccountContents() { + return this._tag == Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS}. + * + *

(members) Transferred contents of deleted member account to another + * member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberTransferAccountContents(MemberTransferAccountContentsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberTransferAccountContents(Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS, value); + } + + /** + * (members) Transferred contents of deleted member account to another + * member + * + *

This instance must be tagged as {@link + * Tag#MEMBER_TRANSFER_ACCOUNT_CONTENTS}.

+ * + * @return The {@link MemberTransferAccountContentsType} value associated + * with this instance if {@link #isMemberTransferAccountContents} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberTransferAccountContents} is {@code false}. + */ + public MemberTransferAccountContentsType getMemberTransferAccountContentsValue() { + if (this._tag != Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_TRANSFER_ACCOUNT_CONTENTS, but was Tag." + this._tag.name()); + } + return memberTransferAccountContentsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED}, {@code false} otherwise. + */ + public boolean isPendingSecondaryEmailAdded() { + return this._tag == Tag.PENDING_SECONDARY_EMAIL_ADDED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED}. + * + *

(members) Added pending secondary email

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType pendingSecondaryEmailAdded(PendingSecondaryEmailAddedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPendingSecondaryEmailAdded(Tag.PENDING_SECONDARY_EMAIL_ADDED, value); + } + + /** + * (members) Added pending secondary email + * + *

This instance must be tagged as {@link + * Tag#PENDING_SECONDARY_EMAIL_ADDED}.

+ * + * @return The {@link PendingSecondaryEmailAddedType} value associated with + * this instance if {@link #isPendingSecondaryEmailAdded} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPendingSecondaryEmailAdded} + * is {@code false}. + */ + public PendingSecondaryEmailAddedType getPendingSecondaryEmailAddedValue() { + if (this._tag != Tag.PENDING_SECONDARY_EMAIL_ADDED) { + throw new IllegalStateException("Invalid tag: required Tag.PENDING_SECONDARY_EMAIL_ADDED, but was Tag." + this._tag.name()); + } + return pendingSecondaryEmailAddedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_EMAIL_DELETED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_EMAIL_DELETED}, {@code false} otherwise. + */ + public boolean isSecondaryEmailDeleted() { + return this._tag == Tag.SECONDARY_EMAIL_DELETED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SECONDARY_EMAIL_DELETED}. + * + *

(members) Deleted secondary email

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SECONDARY_EMAIL_DELETED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType secondaryEmailDeleted(SecondaryEmailDeletedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSecondaryEmailDeleted(Tag.SECONDARY_EMAIL_DELETED, value); + } + + /** + * (members) Deleted secondary email + * + *

This instance must be tagged as {@link Tag#SECONDARY_EMAIL_DELETED}. + *

+ * + * @return The {@link SecondaryEmailDeletedType} value associated with this + * instance if {@link #isSecondaryEmailDeleted} is {@code true}. + * + * @throws IllegalStateException If {@link #isSecondaryEmailDeleted} is + * {@code false}. + */ + public SecondaryEmailDeletedType getSecondaryEmailDeletedValue() { + if (this._tag != Tag.SECONDARY_EMAIL_DELETED) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_EMAIL_DELETED, but was Tag." + this._tag.name()); + } + return secondaryEmailDeletedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_EMAIL_VERIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_EMAIL_VERIFIED}, {@code false} otherwise. + */ + public boolean isSecondaryEmailVerified() { + return this._tag == Tag.SECONDARY_EMAIL_VERIFIED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SECONDARY_EMAIL_VERIFIED}. + * + *

(members) Verified secondary email

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SECONDARY_EMAIL_VERIFIED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType secondaryEmailVerified(SecondaryEmailVerifiedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSecondaryEmailVerified(Tag.SECONDARY_EMAIL_VERIFIED, value); + } + + /** + * (members) Verified secondary email + * + *

This instance must be tagged as {@link Tag#SECONDARY_EMAIL_VERIFIED}. + *

+ * + * @return The {@link SecondaryEmailVerifiedType} value associated with this + * instance if {@link #isSecondaryEmailVerified} is {@code true}. + * + * @throws IllegalStateException If {@link #isSecondaryEmailVerified} is + * {@code false}. + */ + public SecondaryEmailVerifiedType getSecondaryEmailVerifiedValue() { + if (this._tag != Tag.SECONDARY_EMAIL_VERIFIED) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_EMAIL_VERIFIED, but was Tag." + this._tag.name()); + } + return secondaryEmailVerifiedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isSecondaryMailsPolicyChanged() { + return this._tag == Tag.SECONDARY_MAILS_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED}. + * + *

(members) Secondary mails policy changed

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType secondaryMailsPolicyChanged(SecondaryMailsPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSecondaryMailsPolicyChanged(Tag.SECONDARY_MAILS_POLICY_CHANGED, value); + } + + /** + * (members) Secondary mails policy changed + * + *

This instance must be tagged as {@link + * Tag#SECONDARY_MAILS_POLICY_CHANGED}.

+ * + * @return The {@link SecondaryMailsPolicyChangedType} value associated with + * this instance if {@link #isSecondaryMailsPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSecondaryMailsPolicyChanged} + * is {@code false}. + */ + public SecondaryMailsPolicyChangedType getSecondaryMailsPolicyChangedValue() { + if (this._tag != Tag.SECONDARY_MAILS_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_MAILS_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return secondaryMailsPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_ADD_PAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_ADD_PAGE}, {@code false} otherwise. + */ + public boolean isBinderAddPage() { + return this._tag == Tag.BINDER_ADD_PAGE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_ADD_PAGE}. + * + *

(paper) Added Binder page (deprecated, replaced by 'Edited files') + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_ADD_PAGE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderAddPage(BinderAddPageType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderAddPage(Tag.BINDER_ADD_PAGE, value); + } + + /** + * (paper) Added Binder page (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_ADD_PAGE}.

+ * + * @return The {@link BinderAddPageType} value associated with this instance + * if {@link #isBinderAddPage} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderAddPage} is {@code + * false}. + */ + public BinderAddPageType getBinderAddPageValue() { + if (this._tag != Tag.BINDER_ADD_PAGE) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_ADD_PAGE, but was Tag." + this._tag.name()); + } + return binderAddPageValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_ADD_SECTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_ADD_SECTION}, {@code false} otherwise. + */ + public boolean isBinderAddSection() { + return this._tag == Tag.BINDER_ADD_SECTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_ADD_SECTION}. + * + *

(paper) Added Binder section (deprecated, replaced by 'Edited files') + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_ADD_SECTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderAddSection(BinderAddSectionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderAddSection(Tag.BINDER_ADD_SECTION, value); + } + + /** + * (paper) Added Binder section (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_ADD_SECTION}.

+ * + * @return The {@link BinderAddSectionType} value associated with this + * instance if {@link #isBinderAddSection} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderAddSection} is {@code + * false}. + */ + public BinderAddSectionType getBinderAddSectionValue() { + if (this._tag != Tag.BINDER_ADD_SECTION) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_ADD_SECTION, but was Tag." + this._tag.name()); + } + return binderAddSectionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REMOVE_PAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REMOVE_PAGE}, {@code false} otherwise. + */ + public boolean isBinderRemovePage() { + return this._tag == Tag.BINDER_REMOVE_PAGE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_REMOVE_PAGE}. + * + *

(paper) Removed Binder page (deprecated, replaced by 'Edited files') + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_REMOVE_PAGE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderRemovePage(BinderRemovePageType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderRemovePage(Tag.BINDER_REMOVE_PAGE, value); + } + + /** + * (paper) Removed Binder page (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_REMOVE_PAGE}.

+ * + * @return The {@link BinderRemovePageType} value associated with this + * instance if {@link #isBinderRemovePage} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRemovePage} is {@code + * false}. + */ + public BinderRemovePageType getBinderRemovePageValue() { + if (this._tag != Tag.BINDER_REMOVE_PAGE) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REMOVE_PAGE, but was Tag." + this._tag.name()); + } + return binderRemovePageValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REMOVE_SECTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REMOVE_SECTION}, {@code false} otherwise. + */ + public boolean isBinderRemoveSection() { + return this._tag == Tag.BINDER_REMOVE_SECTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_REMOVE_SECTION}. + * + *

(paper) Removed Binder section (deprecated, replaced by 'Edited + * files')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_REMOVE_SECTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderRemoveSection(BinderRemoveSectionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderRemoveSection(Tag.BINDER_REMOVE_SECTION, value); + } + + /** + * (paper) Removed Binder section (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_REMOVE_SECTION}. + *

+ * + * @return The {@link BinderRemoveSectionType} value associated with this + * instance if {@link #isBinderRemoveSection} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRemoveSection} is + * {@code false}. + */ + public BinderRemoveSectionType getBinderRemoveSectionValue() { + if (this._tag != Tag.BINDER_REMOVE_SECTION) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REMOVE_SECTION, but was Tag." + this._tag.name()); + } + return binderRemoveSectionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_RENAME_PAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_RENAME_PAGE}, {@code false} otherwise. + */ + public boolean isBinderRenamePage() { + return this._tag == Tag.BINDER_RENAME_PAGE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_RENAME_PAGE}. + * + *

(paper) Renamed Binder page (deprecated, replaced by 'Edited files') + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_RENAME_PAGE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderRenamePage(BinderRenamePageType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderRenamePage(Tag.BINDER_RENAME_PAGE, value); + } + + /** + * (paper) Renamed Binder page (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_RENAME_PAGE}.

+ * + * @return The {@link BinderRenamePageType} value associated with this + * instance if {@link #isBinderRenamePage} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRenamePage} is {@code + * false}. + */ + public BinderRenamePageType getBinderRenamePageValue() { + if (this._tag != Tag.BINDER_RENAME_PAGE) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_RENAME_PAGE, but was Tag." + this._tag.name()); + } + return binderRenamePageValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_RENAME_SECTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_RENAME_SECTION}, {@code false} otherwise. + */ + public boolean isBinderRenameSection() { + return this._tag == Tag.BINDER_RENAME_SECTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_RENAME_SECTION}. + * + *

(paper) Renamed Binder section (deprecated, replaced by 'Edited + * files')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_RENAME_SECTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderRenameSection(BinderRenameSectionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderRenameSection(Tag.BINDER_RENAME_SECTION, value); + } + + /** + * (paper) Renamed Binder section (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_RENAME_SECTION}. + *

+ * + * @return The {@link BinderRenameSectionType} value associated with this + * instance if {@link #isBinderRenameSection} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderRenameSection} is + * {@code false}. + */ + public BinderRenameSectionType getBinderRenameSectionValue() { + if (this._tag != Tag.BINDER_RENAME_SECTION) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_RENAME_SECTION, but was Tag." + this._tag.name()); + } + return binderRenameSectionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REORDER_PAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REORDER_PAGE}, {@code false} otherwise. + */ + public boolean isBinderReorderPage() { + return this._tag == Tag.BINDER_REORDER_PAGE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_REORDER_PAGE}. + * + *

(paper) Reordered Binder page (deprecated, replaced by 'Edited + * files')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_REORDER_PAGE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderReorderPage(BinderReorderPageType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderReorderPage(Tag.BINDER_REORDER_PAGE, value); + } + + /** + * (paper) Reordered Binder page (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_REORDER_PAGE}.

+ * + * @return The {@link BinderReorderPageType} value associated with this + * instance if {@link #isBinderReorderPage} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderReorderPage} is {@code + * false}. + */ + public BinderReorderPageType getBinderReorderPageValue() { + if (this._tag != Tag.BINDER_REORDER_PAGE) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REORDER_PAGE, but was Tag." + this._tag.name()); + } + return binderReorderPageValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BINDER_REORDER_SECTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BINDER_REORDER_SECTION}, {@code false} otherwise. + */ + public boolean isBinderReorderSection() { + return this._tag == Tag.BINDER_REORDER_SECTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#BINDER_REORDER_SECTION}. + * + *

(paper) Reordered Binder section (deprecated, replaced by 'Edited + * files')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#BINDER_REORDER_SECTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType binderReorderSection(BinderReorderSectionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndBinderReorderSection(Tag.BINDER_REORDER_SECTION, value); + } + + /** + * (paper) Reordered Binder section (deprecated, replaced by 'Edited files') + * + *

This instance must be tagged as {@link Tag#BINDER_REORDER_SECTION}. + *

+ * + * @return The {@link BinderReorderSectionType} value associated with this + * instance if {@link #isBinderReorderSection} is {@code true}. + * + * @throws IllegalStateException If {@link #isBinderReorderSection} is + * {@code false}. + */ + public BinderReorderSectionType getBinderReorderSectionValue() { + if (this._tag != Tag.BINDER_REORDER_SECTION) { + throw new IllegalStateException("Invalid tag: required Tag.BINDER_REORDER_SECTION, but was Tag." + this._tag.name()); + } + return binderReorderSectionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_ADD_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_ADD_MEMBER}, {@code false} otherwise. + */ + public boolean isPaperContentAddMember() { + return this._tag == Tag.PAPER_CONTENT_ADD_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_ADD_MEMBER}. + * + *

(paper) Added users and/or groups to Paper doc/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_ADD_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentAddMember(PaperContentAddMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentAddMember(Tag.PAPER_CONTENT_ADD_MEMBER, value); + } + + /** + * (paper) Added users and/or groups to Paper doc/folder + * + *

This instance must be tagged as {@link Tag#PAPER_CONTENT_ADD_MEMBER}. + *

+ * + * @return The {@link PaperContentAddMemberType} value associated with this + * instance if {@link #isPaperContentAddMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentAddMember} is + * {@code false}. + */ + public PaperContentAddMemberType getPaperContentAddMemberValue() { + if (this._tag != Tag.PAPER_CONTENT_ADD_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_ADD_MEMBER, but was Tag." + this._tag.name()); + } + return paperContentAddMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER}, {@code false} otherwise. + */ + public boolean isPaperContentAddToFolder() { + return this._tag == Tag.PAPER_CONTENT_ADD_TO_FOLDER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER}. + * + *

(paper) Added Paper doc/folder to folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentAddToFolder(PaperContentAddToFolderType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentAddToFolder(Tag.PAPER_CONTENT_ADD_TO_FOLDER, value); + } + + /** + * (paper) Added Paper doc/folder to folder + * + *

This instance must be tagged as {@link + * Tag#PAPER_CONTENT_ADD_TO_FOLDER}.

+ * + * @return The {@link PaperContentAddToFolderType} value associated with + * this instance if {@link #isPaperContentAddToFolder} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentAddToFolder} is + * {@code false}. + */ + public PaperContentAddToFolderType getPaperContentAddToFolderValue() { + if (this._tag != Tag.PAPER_CONTENT_ADD_TO_FOLDER) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_ADD_TO_FOLDER, but was Tag." + this._tag.name()); + } + return paperContentAddToFolderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_ARCHIVE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_ARCHIVE}, {@code false} otherwise. + */ + public boolean isPaperContentArchive() { + return this._tag == Tag.PAPER_CONTENT_ARCHIVE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_ARCHIVE}. + * + *

(paper) Archived Paper doc/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_ARCHIVE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentArchive(PaperContentArchiveType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentArchive(Tag.PAPER_CONTENT_ARCHIVE, value); + } + + /** + * (paper) Archived Paper doc/folder + * + *

This instance must be tagged as {@link Tag#PAPER_CONTENT_ARCHIVE}. + *

+ * + * @return The {@link PaperContentArchiveType} value associated with this + * instance if {@link #isPaperContentArchive} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentArchive} is + * {@code false}. + */ + public PaperContentArchiveType getPaperContentArchiveValue() { + if (this._tag != Tag.PAPER_CONTENT_ARCHIVE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_ARCHIVE, but was Tag." + this._tag.name()); + } + return paperContentArchiveValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_CREATE}, {@code false} otherwise. + */ + public boolean isPaperContentCreate() { + return this._tag == Tag.PAPER_CONTENT_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_CREATE}. + * + *

(paper) Created Paper doc/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentCreate(PaperContentCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentCreate(Tag.PAPER_CONTENT_CREATE, value); + } + + /** + * (paper) Created Paper doc/folder + * + *

This instance must be tagged as {@link Tag#PAPER_CONTENT_CREATE}. + *

+ * + * @return The {@link PaperContentCreateType} value associated with this + * instance if {@link #isPaperContentCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentCreate} is {@code + * false}. + */ + public PaperContentCreateType getPaperContentCreateValue() { + if (this._tag != Tag.PAPER_CONTENT_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_CREATE, but was Tag." + this._tag.name()); + } + return paperContentCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE}, {@code false} otherwise. + */ + public boolean isPaperContentPermanentlyDelete() { + return this._tag == Tag.PAPER_CONTENT_PERMANENTLY_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE}. + * + *

(paper) Permanently deleted Paper doc/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentPermanentlyDelete(PaperContentPermanentlyDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentPermanentlyDelete(Tag.PAPER_CONTENT_PERMANENTLY_DELETE, value); + } + + /** + * (paper) Permanently deleted Paper doc/folder + * + *

This instance must be tagged as {@link + * Tag#PAPER_CONTENT_PERMANENTLY_DELETE}.

+ * + * @return The {@link PaperContentPermanentlyDeleteType} value associated + * with this instance if {@link #isPaperContentPermanentlyDelete} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperContentPermanentlyDelete} is {@code false}. + */ + public PaperContentPermanentlyDeleteType getPaperContentPermanentlyDeleteValue() { + if (this._tag != Tag.PAPER_CONTENT_PERMANENTLY_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_PERMANENTLY_DELETE, but was Tag." + this._tag.name()); + } + return paperContentPermanentlyDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER}, {@code false} otherwise. + */ + public boolean isPaperContentRemoveFromFolder() { + return this._tag == Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER}. + * + *

(paper) Removed Paper doc/folder from folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentRemoveFromFolder(PaperContentRemoveFromFolderType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentRemoveFromFolder(Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER, value); + } + + /** + * (paper) Removed Paper doc/folder from folder + * + *

This instance must be tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_FROM_FOLDER}.

+ * + * @return The {@link PaperContentRemoveFromFolderType} value associated + * with this instance if {@link #isPaperContentRemoveFromFolder} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentRemoveFromFolder} + * is {@code false}. + */ + public PaperContentRemoveFromFolderType getPaperContentRemoveFromFolderValue() { + if (this._tag != Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_REMOVE_FROM_FOLDER, but was Tag." + this._tag.name()); + } + return paperContentRemoveFromFolderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER}, {@code false} otherwise. + */ + public boolean isPaperContentRemoveMember() { + return this._tag == Tag.PAPER_CONTENT_REMOVE_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER}. + * + *

(paper) Removed users and/or groups from Paper doc/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentRemoveMember(PaperContentRemoveMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentRemoveMember(Tag.PAPER_CONTENT_REMOVE_MEMBER, value); + } + + /** + * (paper) Removed users and/or groups from Paper doc/folder + * + *

This instance must be tagged as {@link + * Tag#PAPER_CONTENT_REMOVE_MEMBER}.

+ * + * @return The {@link PaperContentRemoveMemberType} value associated with + * this instance if {@link #isPaperContentRemoveMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentRemoveMember} is + * {@code false}. + */ + public PaperContentRemoveMemberType getPaperContentRemoveMemberValue() { + if (this._tag != Tag.PAPER_CONTENT_REMOVE_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_REMOVE_MEMBER, but was Tag." + this._tag.name()); + } + return paperContentRemoveMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_RENAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_RENAME}, {@code false} otherwise. + */ + public boolean isPaperContentRename() { + return this._tag == Tag.PAPER_CONTENT_RENAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_RENAME}. + * + *

(paper) Renamed Paper doc/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_RENAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentRename(PaperContentRenameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentRename(Tag.PAPER_CONTENT_RENAME, value); + } + + /** + * (paper) Renamed Paper doc/folder + * + *

This instance must be tagged as {@link Tag#PAPER_CONTENT_RENAME}. + *

+ * + * @return The {@link PaperContentRenameType} value associated with this + * instance if {@link #isPaperContentRename} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentRename} is {@code + * false}. + */ + public PaperContentRenameType getPaperContentRenameValue() { + if (this._tag != Tag.PAPER_CONTENT_RENAME) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_RENAME, but was Tag." + this._tag.name()); + } + return paperContentRenameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CONTENT_RESTORE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CONTENT_RESTORE}, {@code false} otherwise. + */ + public boolean isPaperContentRestore() { + return this._tag == Tag.PAPER_CONTENT_RESTORE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CONTENT_RESTORE}. + * + *

(paper) Restored archived Paper doc/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CONTENT_RESTORE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperContentRestore(PaperContentRestoreType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperContentRestore(Tag.PAPER_CONTENT_RESTORE, value); + } + + /** + * (paper) Restored archived Paper doc/folder + * + *

This instance must be tagged as {@link Tag#PAPER_CONTENT_RESTORE}. + *

+ * + * @return The {@link PaperContentRestoreType} value associated with this + * instance if {@link #isPaperContentRestore} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperContentRestore} is + * {@code false}. + */ + public PaperContentRestoreType getPaperContentRestoreValue() { + if (this._tag != Tag.PAPER_CONTENT_RESTORE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CONTENT_RESTORE, but was Tag." + this._tag.name()); + } + return paperContentRestoreValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_ADD_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_ADD_COMMENT}, {@code false} otherwise. + */ + public boolean isPaperDocAddComment() { + return this._tag == Tag.PAPER_DOC_ADD_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_ADD_COMMENT}. + * + *

(paper) Added Paper doc comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_ADD_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocAddComment(PaperDocAddCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocAddComment(Tag.PAPER_DOC_ADD_COMMENT, value); + } + + /** + * (paper) Added Paper doc comment + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_ADD_COMMENT}. + *

+ * + * @return The {@link PaperDocAddCommentType} value associated with this + * instance if {@link #isPaperDocAddComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocAddComment} is {@code + * false}. + */ + public PaperDocAddCommentType getPaperDocAddCommentValue() { + if (this._tag != Tag.PAPER_DOC_ADD_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_ADD_COMMENT, but was Tag." + this._tag.name()); + } + return paperDocAddCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE}, {@code false} otherwise. + */ + public boolean isPaperDocChangeMemberRole() { + return this._tag == Tag.PAPER_DOC_CHANGE_MEMBER_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE}. + * + *

(paper) Changed member permissions for Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocChangeMemberRole(PaperDocChangeMemberRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocChangeMemberRole(Tag.PAPER_DOC_CHANGE_MEMBER_ROLE, value); + } + + /** + * (paper) Changed member permissions for Paper doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_DOC_CHANGE_MEMBER_ROLE}.

+ * + * @return The {@link PaperDocChangeMemberRoleType} value associated with + * this instance if {@link #isPaperDocChangeMemberRole} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocChangeMemberRole} is + * {@code false}. + */ + public PaperDocChangeMemberRoleType getPaperDocChangeMemberRoleValue() { + if (this._tag != Tag.PAPER_DOC_CHANGE_MEMBER_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_CHANGE_MEMBER_ROLE, but was Tag." + this._tag.name()); + } + return paperDocChangeMemberRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY}, {@code false} otherwise. + */ + public boolean isPaperDocChangeSharingPolicy() { + return this._tag == Tag.PAPER_DOC_CHANGE_SHARING_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY}. + * + *

(paper) Changed sharing setting for Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocChangeSharingPolicy(PaperDocChangeSharingPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocChangeSharingPolicy(Tag.PAPER_DOC_CHANGE_SHARING_POLICY, value); + } + + /** + * (paper) Changed sharing setting for Paper doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_DOC_CHANGE_SHARING_POLICY}.

+ * + * @return The {@link PaperDocChangeSharingPolicyType} value associated with + * this instance if {@link #isPaperDocChangeSharingPolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperDocChangeSharingPolicy} + * is {@code false}. + */ + public PaperDocChangeSharingPolicyType getPaperDocChangeSharingPolicyValue() { + if (this._tag != Tag.PAPER_DOC_CHANGE_SHARING_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_CHANGE_SHARING_POLICY, but was Tag." + this._tag.name()); + } + return paperDocChangeSharingPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION}, {@code false} otherwise. + */ + public boolean isPaperDocChangeSubscription() { + return this._tag == Tag.PAPER_DOC_CHANGE_SUBSCRIPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION}. + * + *

(paper) Followed/unfollowed Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocChangeSubscription(PaperDocChangeSubscriptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocChangeSubscription(Tag.PAPER_DOC_CHANGE_SUBSCRIPTION, value); + } + + /** + * (paper) Followed/unfollowed Paper doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_DOC_CHANGE_SUBSCRIPTION}.

+ * + * @return The {@link PaperDocChangeSubscriptionType} value associated with + * this instance if {@link #isPaperDocChangeSubscription} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperDocChangeSubscription} + * is {@code false}. + */ + public PaperDocChangeSubscriptionType getPaperDocChangeSubscriptionValue() { + if (this._tag != Tag.PAPER_DOC_CHANGE_SUBSCRIPTION) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_CHANGE_SUBSCRIPTION, but was Tag." + this._tag.name()); + } + return paperDocChangeSubscriptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_DELETED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_DELETED}, {@code false} otherwise. + */ + public boolean isPaperDocDeleted() { + return this._tag == Tag.PAPER_DOC_DELETED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_DELETED}. + * + *

(paper) Archived Paper doc (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_DELETED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocDeleted(PaperDocDeletedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocDeleted(Tag.PAPER_DOC_DELETED, value); + } + + /** + * (paper) Archived Paper doc (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_DELETED}.

+ * + * @return The {@link PaperDocDeletedType} value associated with this + * instance if {@link #isPaperDocDeleted} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocDeleted} is {@code + * false}. + */ + public PaperDocDeletedType getPaperDocDeletedValue() { + if (this._tag != Tag.PAPER_DOC_DELETED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_DELETED, but was Tag." + this._tag.name()); + } + return paperDocDeletedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_DELETE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_DELETE_COMMENT}, {@code false} otherwise. + */ + public boolean isPaperDocDeleteComment() { + return this._tag == Tag.PAPER_DOC_DELETE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_DELETE_COMMENT}. + * + *

(paper) Deleted Paper doc comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_DELETE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocDeleteComment(PaperDocDeleteCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocDeleteComment(Tag.PAPER_DOC_DELETE_COMMENT, value); + } + + /** + * (paper) Deleted Paper doc comment + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_DELETE_COMMENT}. + *

+ * + * @return The {@link PaperDocDeleteCommentType} value associated with this + * instance if {@link #isPaperDocDeleteComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocDeleteComment} is + * {@code false}. + */ + public PaperDocDeleteCommentType getPaperDocDeleteCommentValue() { + if (this._tag != Tag.PAPER_DOC_DELETE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_DELETE_COMMENT, but was Tag." + this._tag.name()); + } + return paperDocDeleteCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_DOWNLOAD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_DOWNLOAD}, {@code false} otherwise. + */ + public boolean isPaperDocDownload() { + return this._tag == Tag.PAPER_DOC_DOWNLOAD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_DOWNLOAD}. + * + *

(paper) Downloaded Paper doc in specific format

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_DOWNLOAD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocDownload(PaperDocDownloadType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocDownload(Tag.PAPER_DOC_DOWNLOAD, value); + } + + /** + * (paper) Downloaded Paper doc in specific format + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_DOWNLOAD}.

+ * + * @return The {@link PaperDocDownloadType} value associated with this + * instance if {@link #isPaperDocDownload} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocDownload} is {@code + * false}. + */ + public PaperDocDownloadType getPaperDocDownloadValue() { + if (this._tag != Tag.PAPER_DOC_DOWNLOAD) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_DOWNLOAD, but was Tag." + this._tag.name()); + } + return paperDocDownloadValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_EDIT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_EDIT}, {@code false} otherwise. + */ + public boolean isPaperDocEdit() { + return this._tag == Tag.PAPER_DOC_EDIT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_EDIT}. + * + *

(paper) Edited Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_EDIT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocEdit(PaperDocEditType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocEdit(Tag.PAPER_DOC_EDIT, value); + } + + /** + * (paper) Edited Paper doc + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_EDIT}.

+ * + * @return The {@link PaperDocEditType} value associated with this instance + * if {@link #isPaperDocEdit} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocEdit} is {@code + * false}. + */ + public PaperDocEditType getPaperDocEditValue() { + if (this._tag != Tag.PAPER_DOC_EDIT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_EDIT, but was Tag." + this._tag.name()); + } + return paperDocEditValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_EDIT_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_EDIT_COMMENT}, {@code false} otherwise. + */ + public boolean isPaperDocEditComment() { + return this._tag == Tag.PAPER_DOC_EDIT_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_EDIT_COMMENT}. + * + *

(paper) Edited Paper doc comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_EDIT_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocEditComment(PaperDocEditCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocEditComment(Tag.PAPER_DOC_EDIT_COMMENT, value); + } + + /** + * (paper) Edited Paper doc comment + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_EDIT_COMMENT}. + *

+ * + * @return The {@link PaperDocEditCommentType} value associated with this + * instance if {@link #isPaperDocEditComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocEditComment} is + * {@code false}. + */ + public PaperDocEditCommentType getPaperDocEditCommentValue() { + if (this._tag != Tag.PAPER_DOC_EDIT_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_EDIT_COMMENT, but was Tag." + this._tag.name()); + } + return paperDocEditCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_FOLLOWED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_FOLLOWED}, {@code false} otherwise. + */ + public boolean isPaperDocFollowed() { + return this._tag == Tag.PAPER_DOC_FOLLOWED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_FOLLOWED}. + * + *

(paper) Followed Paper doc (deprecated, replaced by + * 'Followed/unfollowed Paper doc')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_FOLLOWED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocFollowed(PaperDocFollowedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocFollowed(Tag.PAPER_DOC_FOLLOWED, value); + } + + /** + * (paper) Followed Paper doc (deprecated, replaced by 'Followed/unfollowed + * Paper doc') + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_FOLLOWED}.

+ * + * @return The {@link PaperDocFollowedType} value associated with this + * instance if {@link #isPaperDocFollowed} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocFollowed} is {@code + * false}. + */ + public PaperDocFollowedType getPaperDocFollowedValue() { + if (this._tag != Tag.PAPER_DOC_FOLLOWED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_FOLLOWED, but was Tag." + this._tag.name()); + } + return paperDocFollowedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_MENTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_MENTION}, {@code false} otherwise. + */ + public boolean isPaperDocMention() { + return this._tag == Tag.PAPER_DOC_MENTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_MENTION}. + * + *

(paper) Mentioned user in Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_MENTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocMention(PaperDocMentionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocMention(Tag.PAPER_DOC_MENTION, value); + } + + /** + * (paper) Mentioned user in Paper doc + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_MENTION}.

+ * + * @return The {@link PaperDocMentionType} value associated with this + * instance if {@link #isPaperDocMention} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocMention} is {@code + * false}. + */ + public PaperDocMentionType getPaperDocMentionValue() { + if (this._tag != Tag.PAPER_DOC_MENTION) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_MENTION, but was Tag." + this._tag.name()); + } + return paperDocMentionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED}, {@code false} otherwise. + */ + public boolean isPaperDocOwnershipChanged() { + return this._tag == Tag.PAPER_DOC_OWNERSHIP_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED}. + * + *

(paper) Transferred ownership of Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocOwnershipChanged(PaperDocOwnershipChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocOwnershipChanged(Tag.PAPER_DOC_OWNERSHIP_CHANGED, value); + } + + /** + * (paper) Transferred ownership of Paper doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_DOC_OWNERSHIP_CHANGED}.

+ * + * @return The {@link PaperDocOwnershipChangedType} value associated with + * this instance if {@link #isPaperDocOwnershipChanged} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocOwnershipChanged} is + * {@code false}. + */ + public PaperDocOwnershipChangedType getPaperDocOwnershipChangedValue() { + if (this._tag != Tag.PAPER_DOC_OWNERSHIP_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_OWNERSHIP_CHANGED, but was Tag." + this._tag.name()); + } + return paperDocOwnershipChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_REQUEST_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_REQUEST_ACCESS}, {@code false} otherwise. + */ + public boolean isPaperDocRequestAccess() { + return this._tag == Tag.PAPER_DOC_REQUEST_ACCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_REQUEST_ACCESS}. + * + *

(paper) Requested access to Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_REQUEST_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocRequestAccess(PaperDocRequestAccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocRequestAccess(Tag.PAPER_DOC_REQUEST_ACCESS, value); + } + + /** + * (paper) Requested access to Paper doc + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_REQUEST_ACCESS}. + *

+ * + * @return The {@link PaperDocRequestAccessType} value associated with this + * instance if {@link #isPaperDocRequestAccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocRequestAccess} is + * {@code false}. + */ + public PaperDocRequestAccessType getPaperDocRequestAccessValue() { + if (this._tag != Tag.PAPER_DOC_REQUEST_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_REQUEST_ACCESS, but was Tag." + this._tag.name()); + } + return paperDocRequestAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT}, {@code false} otherwise. + */ + public boolean isPaperDocResolveComment() { + return this._tag == Tag.PAPER_DOC_RESOLVE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT}. + * + *

(paper) Resolved Paper doc comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocResolveComment(PaperDocResolveCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocResolveComment(Tag.PAPER_DOC_RESOLVE_COMMENT, value); + } + + /** + * (paper) Resolved Paper doc comment + * + *

This instance must be tagged as {@link + * Tag#PAPER_DOC_RESOLVE_COMMENT}.

+ * + * @return The {@link PaperDocResolveCommentType} value associated with this + * instance if {@link #isPaperDocResolveComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocResolveComment} is + * {@code false}. + */ + public PaperDocResolveCommentType getPaperDocResolveCommentValue() { + if (this._tag != Tag.PAPER_DOC_RESOLVE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_RESOLVE_COMMENT, but was Tag." + this._tag.name()); + } + return paperDocResolveCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_REVERT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_REVERT}, {@code false} otherwise. + */ + public boolean isPaperDocRevert() { + return this._tag == Tag.PAPER_DOC_REVERT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_REVERT}. + * + *

(paper) Restored Paper doc to previous version

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_REVERT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocRevert(PaperDocRevertType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocRevert(Tag.PAPER_DOC_REVERT, value); + } + + /** + * (paper) Restored Paper doc to previous version + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_REVERT}.

+ * + * @return The {@link PaperDocRevertType} value associated with this + * instance if {@link #isPaperDocRevert} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocRevert} is {@code + * false}. + */ + public PaperDocRevertType getPaperDocRevertValue() { + if (this._tag != Tag.PAPER_DOC_REVERT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_REVERT, but was Tag." + this._tag.name()); + } + return paperDocRevertValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_SLACK_SHARE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_SLACK_SHARE}, {@code false} otherwise. + */ + public boolean isPaperDocSlackShare() { + return this._tag == Tag.PAPER_DOC_SLACK_SHARE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_SLACK_SHARE}. + * + *

(paper) Shared Paper doc via Slack

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_SLACK_SHARE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocSlackShare(PaperDocSlackShareType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocSlackShare(Tag.PAPER_DOC_SLACK_SHARE, value); + } + + /** + * (paper) Shared Paper doc via Slack + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_SLACK_SHARE}. + *

+ * + * @return The {@link PaperDocSlackShareType} value associated with this + * instance if {@link #isPaperDocSlackShare} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocSlackShare} is {@code + * false}. + */ + public PaperDocSlackShareType getPaperDocSlackShareValue() { + if (this._tag != Tag.PAPER_DOC_SLACK_SHARE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_SLACK_SHARE, but was Tag." + this._tag.name()); + } + return paperDocSlackShareValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_TEAM_INVITE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_TEAM_INVITE}, {@code false} otherwise. + */ + public boolean isPaperDocTeamInvite() { + return this._tag == Tag.PAPER_DOC_TEAM_INVITE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_TEAM_INVITE}. + * + *

(paper) Shared Paper doc with users and/or groups (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_TEAM_INVITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocTeamInvite(PaperDocTeamInviteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocTeamInvite(Tag.PAPER_DOC_TEAM_INVITE, value); + } + + /** + * (paper) Shared Paper doc with users and/or groups (deprecated, no longer + * logged) + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_TEAM_INVITE}. + *

+ * + * @return The {@link PaperDocTeamInviteType} value associated with this + * instance if {@link #isPaperDocTeamInvite} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocTeamInvite} is {@code + * false}. + */ + public PaperDocTeamInviteType getPaperDocTeamInviteValue() { + if (this._tag != Tag.PAPER_DOC_TEAM_INVITE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_TEAM_INVITE, but was Tag." + this._tag.name()); + } + return paperDocTeamInviteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_TRASHED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_TRASHED}, {@code false} otherwise. + */ + public boolean isPaperDocTrashed() { + return this._tag == Tag.PAPER_DOC_TRASHED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_TRASHED}. + * + *

(paper) Deleted Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_TRASHED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocTrashed(PaperDocTrashedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocTrashed(Tag.PAPER_DOC_TRASHED, value); + } + + /** + * (paper) Deleted Paper doc + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_TRASHED}.

+ * + * @return The {@link PaperDocTrashedType} value associated with this + * instance if {@link #isPaperDocTrashed} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocTrashed} is {@code + * false}. + */ + public PaperDocTrashedType getPaperDocTrashedValue() { + if (this._tag != Tag.PAPER_DOC_TRASHED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_TRASHED, but was Tag." + this._tag.name()); + } + return paperDocTrashedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT}, {@code false} otherwise. + */ + public boolean isPaperDocUnresolveComment() { + return this._tag == Tag.PAPER_DOC_UNRESOLVE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT}. + * + *

(paper) Unresolved Paper doc comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocUnresolveComment(PaperDocUnresolveCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocUnresolveComment(Tag.PAPER_DOC_UNRESOLVE_COMMENT, value); + } + + /** + * (paper) Unresolved Paper doc comment + * + *

This instance must be tagged as {@link + * Tag#PAPER_DOC_UNRESOLVE_COMMENT}.

+ * + * @return The {@link PaperDocUnresolveCommentType} value associated with + * this instance if {@link #isPaperDocUnresolveComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocUnresolveComment} is + * {@code false}. + */ + public PaperDocUnresolveCommentType getPaperDocUnresolveCommentValue() { + if (this._tag != Tag.PAPER_DOC_UNRESOLVE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_UNRESOLVE_COMMENT, but was Tag." + this._tag.name()); + } + return paperDocUnresolveCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_UNTRASHED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_UNTRASHED}, {@code false} otherwise. + */ + public boolean isPaperDocUntrashed() { + return this._tag == Tag.PAPER_DOC_UNTRASHED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_UNTRASHED}. + * + *

(paper) Restored Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_UNTRASHED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocUntrashed(PaperDocUntrashedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocUntrashed(Tag.PAPER_DOC_UNTRASHED, value); + } + + /** + * (paper) Restored Paper doc + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_UNTRASHED}.

+ * + * @return The {@link PaperDocUntrashedType} value associated with this + * instance if {@link #isPaperDocUntrashed} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocUntrashed} is {@code + * false}. + */ + public PaperDocUntrashedType getPaperDocUntrashedValue() { + if (this._tag != Tag.PAPER_DOC_UNTRASHED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_UNTRASHED, but was Tag." + this._tag.name()); + } + return paperDocUntrashedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DOC_VIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DOC_VIEW}, {@code false} otherwise. + */ + public boolean isPaperDocView() { + return this._tag == Tag.PAPER_DOC_VIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DOC_VIEW}. + * + *

(paper) Viewed Paper doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DOC_VIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDocView(PaperDocViewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDocView(Tag.PAPER_DOC_VIEW, value); + } + + /** + * (paper) Viewed Paper doc + * + *

This instance must be tagged as {@link Tag#PAPER_DOC_VIEW}.

+ * + * @return The {@link PaperDocViewType} value associated with this instance + * if {@link #isPaperDocView} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperDocView} is {@code + * false}. + */ + public PaperDocViewType getPaperDocViewValue() { + if (this._tag != Tag.PAPER_DOC_VIEW) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DOC_VIEW, but was Tag." + this._tag.name()); + } + return paperDocViewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW}, {@code false} otherwise. + */ + public boolean isPaperExternalViewAllow() { + return this._tag == Tag.PAPER_EXTERNAL_VIEW_ALLOW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW}. + * + *

(paper) Changed Paper external sharing setting to anyone (deprecated, + * no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperExternalViewAllow(PaperExternalViewAllowType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperExternalViewAllow(Tag.PAPER_EXTERNAL_VIEW_ALLOW, value); + } + + /** + * (paper) Changed Paper external sharing setting to anyone (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_ALLOW}.

+ * + * @return The {@link PaperExternalViewAllowType} value associated with this + * instance if {@link #isPaperExternalViewAllow} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperExternalViewAllow} is + * {@code false}. + */ + public PaperExternalViewAllowType getPaperExternalViewAllowValue() { + if (this._tag != Tag.PAPER_EXTERNAL_VIEW_ALLOW) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_EXTERNAL_VIEW_ALLOW, but was Tag." + this._tag.name()); + } + return paperExternalViewAllowValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM}, {@code false} otherwise. + */ + public boolean isPaperExternalViewDefaultTeam() { + return this._tag == Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM}. + * + *

(paper) Changed Paper external sharing setting to default team + * (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperExternalViewDefaultTeam(PaperExternalViewDefaultTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperExternalViewDefaultTeam(Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM, value); + } + + /** + * (paper) Changed Paper external sharing setting to default team + * (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_DEFAULT_TEAM}.

+ * + * @return The {@link PaperExternalViewDefaultTeamType} value associated + * with this instance if {@link #isPaperExternalViewDefaultTeam} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isPaperExternalViewDefaultTeam} + * is {@code false}. + */ + public PaperExternalViewDefaultTeamType getPaperExternalViewDefaultTeamValue() { + if (this._tag != Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM, but was Tag." + this._tag.name()); + } + return paperExternalViewDefaultTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID}, {@code false} otherwise. + */ + public boolean isPaperExternalViewForbid() { + return this._tag == Tag.PAPER_EXTERNAL_VIEW_FORBID; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID}. + * + *

(paper) Changed Paper external sharing setting to team-only + * (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperExternalViewForbid(PaperExternalViewForbidType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperExternalViewForbid(Tag.PAPER_EXTERNAL_VIEW_FORBID, value); + } + + /** + * (paper) Changed Paper external sharing setting to team-only (deprecated, + * no longer logged) + * + *

This instance must be tagged as {@link + * Tag#PAPER_EXTERNAL_VIEW_FORBID}.

+ * + * @return The {@link PaperExternalViewForbidType} value associated with + * this instance if {@link #isPaperExternalViewForbid} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperExternalViewForbid} is + * {@code false}. + */ + public PaperExternalViewForbidType getPaperExternalViewForbidValue() { + if (this._tag != Tag.PAPER_EXTERNAL_VIEW_FORBID) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_EXTERNAL_VIEW_FORBID, but was Tag." + this._tag.name()); + } + return paperExternalViewForbidValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION}, {@code false} otherwise. + */ + public boolean isPaperFolderChangeSubscription() { + return this._tag == Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION}. + * + *

(paper) Followed/unfollowed Paper folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperFolderChangeSubscription(PaperFolderChangeSubscriptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperFolderChangeSubscription(Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION, value); + } + + /** + * (paper) Followed/unfollowed Paper folder + * + *

This instance must be tagged as {@link + * Tag#PAPER_FOLDER_CHANGE_SUBSCRIPTION}.

+ * + * @return The {@link PaperFolderChangeSubscriptionType} value associated + * with this instance if {@link #isPaperFolderChangeSubscription} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperFolderChangeSubscription} is {@code false}. + */ + public PaperFolderChangeSubscriptionType getPaperFolderChangeSubscriptionValue() { + if (this._tag != Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_CHANGE_SUBSCRIPTION, but was Tag." + this._tag.name()); + } + return paperFolderChangeSubscriptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_DELETED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_DELETED}, {@code false} otherwise. + */ + public boolean isPaperFolderDeleted() { + return this._tag == Tag.PAPER_FOLDER_DELETED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_FOLDER_DELETED}. + * + *

(paper) Archived Paper folder (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_FOLDER_DELETED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperFolderDeleted(PaperFolderDeletedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperFolderDeleted(Tag.PAPER_FOLDER_DELETED, value); + } + + /** + * (paper) Archived Paper folder (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#PAPER_FOLDER_DELETED}. + *

+ * + * @return The {@link PaperFolderDeletedType} value associated with this + * instance if {@link #isPaperFolderDeleted} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperFolderDeleted} is {@code + * false}. + */ + public PaperFolderDeletedType getPaperFolderDeletedValue() { + if (this._tag != Tag.PAPER_FOLDER_DELETED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_DELETED, but was Tag." + this._tag.name()); + } + return paperFolderDeletedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_FOLLOWED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_FOLLOWED}, {@code false} otherwise. + */ + public boolean isPaperFolderFollowed() { + return this._tag == Tag.PAPER_FOLDER_FOLLOWED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_FOLDER_FOLLOWED}. + * + *

(paper) Followed Paper folder (deprecated, replaced by + * 'Followed/unfollowed Paper folder')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_FOLDER_FOLLOWED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperFolderFollowed(PaperFolderFollowedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperFolderFollowed(Tag.PAPER_FOLDER_FOLLOWED, value); + } + + /** + * (paper) Followed Paper folder (deprecated, replaced by + * 'Followed/unfollowed Paper folder') + * + *

This instance must be tagged as {@link Tag#PAPER_FOLDER_FOLLOWED}. + *

+ * + * @return The {@link PaperFolderFollowedType} value associated with this + * instance if {@link #isPaperFolderFollowed} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperFolderFollowed} is + * {@code false}. + */ + public PaperFolderFollowedType getPaperFolderFollowedValue() { + if (this._tag != Tag.PAPER_FOLDER_FOLLOWED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_FOLLOWED, but was Tag." + this._tag.name()); + } + return paperFolderFollowedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_FOLDER_TEAM_INVITE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_FOLDER_TEAM_INVITE}, {@code false} otherwise. + */ + public boolean isPaperFolderTeamInvite() { + return this._tag == Tag.PAPER_FOLDER_TEAM_INVITE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_FOLDER_TEAM_INVITE}. + * + *

(paper) Shared Paper folder with users and/or groups (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_FOLDER_TEAM_INVITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperFolderTeamInvite(PaperFolderTeamInviteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperFolderTeamInvite(Tag.PAPER_FOLDER_TEAM_INVITE, value); + } + + /** + * (paper) Shared Paper folder with users and/or groups (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link Tag#PAPER_FOLDER_TEAM_INVITE}. + *

+ * + * @return The {@link PaperFolderTeamInviteType} value associated with this + * instance if {@link #isPaperFolderTeamInvite} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperFolderTeamInvite} is + * {@code false}. + */ + public PaperFolderTeamInviteType getPaperFolderTeamInviteValue() { + if (this._tag != Tag.PAPER_FOLDER_TEAM_INVITE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_FOLDER_TEAM_INVITE, but was Tag." + this._tag.name()); + } + return paperFolderTeamInviteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION}, {@code false} otherwise. + */ + public boolean isPaperPublishedLinkChangePermission() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION}. + * + *

(paper) Changed permissions for published doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperPublishedLinkChangePermission(PaperPublishedLinkChangePermissionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperPublishedLinkChangePermission(Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION, value); + } + + /** + * (paper) Changed permissions for published doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CHANGE_PERMISSION}.

+ * + * @return The {@link PaperPublishedLinkChangePermissionType} value + * associated with this instance if {@link + * #isPaperPublishedLinkChangePermission} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperPublishedLinkChangePermission} is {@code false}. + */ + public PaperPublishedLinkChangePermissionType getPaperPublishedLinkChangePermissionValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION, but was Tag." + this._tag.name()); + } + return paperPublishedLinkChangePermissionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE}, {@code false} otherwise. + */ + public boolean isPaperPublishedLinkCreate() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE}. + * + *

(paper) Published doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperPublishedLinkCreate(PaperPublishedLinkCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperPublishedLinkCreate(Tag.PAPER_PUBLISHED_LINK_CREATE, value); + } + + /** + * (paper) Published doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_CREATE}.

+ * + * @return The {@link PaperPublishedLinkCreateType} value associated with + * this instance if {@link #isPaperPublishedLinkCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperPublishedLinkCreate} is + * {@code false}. + */ + public PaperPublishedLinkCreateType getPaperPublishedLinkCreateValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_CREATE, but was Tag." + this._tag.name()); + } + return paperPublishedLinkCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED}, {@code false} otherwise. + */ + public boolean isPaperPublishedLinkDisabled() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_DISABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED}. + * + *

(paper) Unpublished doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperPublishedLinkDisabled(PaperPublishedLinkDisabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperPublishedLinkDisabled(Tag.PAPER_PUBLISHED_LINK_DISABLED, value); + } + + /** + * (paper) Unpublished doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_DISABLED}.

+ * + * @return The {@link PaperPublishedLinkDisabledType} value associated with + * this instance if {@link #isPaperPublishedLinkDisabled} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperPublishedLinkDisabled} + * is {@code false}. + */ + public PaperPublishedLinkDisabledType getPaperPublishedLinkDisabledValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_DISABLED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_DISABLED, but was Tag." + this._tag.name()); + } + return paperPublishedLinkDisabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW}, {@code false} otherwise. + */ + public boolean isPaperPublishedLinkView() { + return this._tag == Tag.PAPER_PUBLISHED_LINK_VIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW}. + * + *

(paper) Viewed published doc

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperPublishedLinkView(PaperPublishedLinkViewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperPublishedLinkView(Tag.PAPER_PUBLISHED_LINK_VIEW, value); + } + + /** + * (paper) Viewed published doc + * + *

This instance must be tagged as {@link + * Tag#PAPER_PUBLISHED_LINK_VIEW}.

+ * + * @return The {@link PaperPublishedLinkViewType} value associated with this + * instance if {@link #isPaperPublishedLinkView} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperPublishedLinkView} is + * {@code false}. + */ + public PaperPublishedLinkViewType getPaperPublishedLinkViewValue() { + if (this._tag != Tag.PAPER_PUBLISHED_LINK_VIEW) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_PUBLISHED_LINK_VIEW, but was Tag." + this._tag.name()); + } + return paperPublishedLinkViewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_CHANGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_CHANGE}, {@code false} otherwise. + */ + public boolean isPasswordChange() { + return this._tag == Tag.PASSWORD_CHANGE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PASSWORD_CHANGE}. + * + *

(passwords) Changed password

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PASSWORD_CHANGE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType passwordChange(PasswordChangeType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPasswordChange(Tag.PASSWORD_CHANGE, value); + } + + /** + * (passwords) Changed password + * + *

This instance must be tagged as {@link Tag#PASSWORD_CHANGE}.

+ * + * @return The {@link PasswordChangeType} value associated with this + * instance if {@link #isPasswordChange} is {@code true}. + * + * @throws IllegalStateException If {@link #isPasswordChange} is {@code + * false}. + */ + public PasswordChangeType getPasswordChangeValue() { + if (this._tag != Tag.PASSWORD_CHANGE) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_CHANGE, but was Tag." + this._tag.name()); + } + return passwordChangeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_RESET}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_RESET}, {@code false} otherwise. + */ + public boolean isPasswordReset() { + return this._tag == Tag.PASSWORD_RESET; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PASSWORD_RESET}. + * + *

(passwords) Reset password

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PASSWORD_RESET}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType passwordReset(PasswordResetType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPasswordReset(Tag.PASSWORD_RESET, value); + } + + /** + * (passwords) Reset password + * + *

This instance must be tagged as {@link Tag#PASSWORD_RESET}.

+ * + * @return The {@link PasswordResetType} value associated with this instance + * if {@link #isPasswordReset} is {@code true}. + * + * @throws IllegalStateException If {@link #isPasswordReset} is {@code + * false}. + */ + public PasswordResetType getPasswordResetValue() { + if (this._tag != Tag.PASSWORD_RESET) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_RESET, but was Tag." + this._tag.name()); + } + return passwordResetValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_RESET_ALL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_RESET_ALL}, {@code false} otherwise. + */ + public boolean isPasswordResetAll() { + return this._tag == Tag.PASSWORD_RESET_ALL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PASSWORD_RESET_ALL}. + * + *

(passwords) Reset all team member passwords

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PASSWORD_RESET_ALL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType passwordResetAll(PasswordResetAllType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPasswordResetAll(Tag.PASSWORD_RESET_ALL, value); + } + + /** + * (passwords) Reset all team member passwords + * + *

This instance must be tagged as {@link Tag#PASSWORD_RESET_ALL}.

+ * + * @return The {@link PasswordResetAllType} value associated with this + * instance if {@link #isPasswordResetAll} is {@code true}. + * + * @throws IllegalStateException If {@link #isPasswordResetAll} is {@code + * false}. + */ + public PasswordResetAllType getPasswordResetAllValue() { + if (this._tag != Tag.PASSWORD_RESET_ALL) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_RESET_ALL, but was Tag." + this._tag.name()); + } + return passwordResetAllValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CLASSIFICATION_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isClassificationCreateReport() { + return this._tag == Tag.CLASSIFICATION_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CLASSIFICATION_CREATE_REPORT}. + * + *

(reports) Created Classification report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CLASSIFICATION_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType classificationCreateReport(ClassificationCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndClassificationCreateReport(Tag.CLASSIFICATION_CREATE_REPORT, value); + } + + /** + * (reports) Created Classification report + * + *

This instance must be tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT}.

+ * + * @return The {@link ClassificationCreateReportType} value associated with + * this instance if {@link #isClassificationCreateReport} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isClassificationCreateReport} + * is {@code false}. + */ + public ClassificationCreateReportType getClassificationCreateReportValue() { + if (this._tag != Tag.CLASSIFICATION_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.CLASSIFICATION_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return classificationCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL}, {@code false} otherwise. + */ + public boolean isClassificationCreateReportFail() { + return this._tag == Tag.CLASSIFICATION_CREATE_REPORT_FAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL}. + * + *

(reports) Couldn't create Classification report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType classificationCreateReportFail(ClassificationCreateReportFailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndClassificationCreateReportFail(Tag.CLASSIFICATION_CREATE_REPORT_FAIL, value); + } + + /** + * (reports) Couldn't create Classification report + * + *

This instance must be tagged as {@link + * Tag#CLASSIFICATION_CREATE_REPORT_FAIL}.

+ * + * @return The {@link ClassificationCreateReportFailType} value associated + * with this instance if {@link #isClassificationCreateReportFail} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isClassificationCreateReportFail} is {@code false}. + */ + public ClassificationCreateReportFailType getClassificationCreateReportFailValue() { + if (this._tag != Tag.CLASSIFICATION_CREATE_REPORT_FAIL) { + throw new IllegalStateException("Invalid tag: required Tag.CLASSIFICATION_CREATE_REPORT_FAIL, but was Tag." + this._tag.name()); + } + return classificationCreateReportFailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT}, {@code false} otherwise. + */ + public boolean isEmmCreateExceptionsReport() { + return this._tag == Tag.EMM_CREATE_EXCEPTIONS_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT}. + * + *

(reports) Created EMM-excluded users report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emmCreateExceptionsReport(EmmCreateExceptionsReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmmCreateExceptionsReport(Tag.EMM_CREATE_EXCEPTIONS_REPORT, value); + } + + /** + * (reports) Created EMM-excluded users report + * + *

This instance must be tagged as {@link + * Tag#EMM_CREATE_EXCEPTIONS_REPORT}.

+ * + * @return The {@link EmmCreateExceptionsReportType} value associated with + * this instance if {@link #isEmmCreateExceptionsReport} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isEmmCreateExceptionsReport} is + * {@code false}. + */ + public EmmCreateExceptionsReportType getEmmCreateExceptionsReportValue() { + if (this._tag != Tag.EMM_CREATE_EXCEPTIONS_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_CREATE_EXCEPTIONS_REPORT, but was Tag." + this._tag.name()); + } + return emmCreateExceptionsReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_CREATE_USAGE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_CREATE_USAGE_REPORT}, {@code false} otherwise. + */ + public boolean isEmmCreateUsageReport() { + return this._tag == Tag.EMM_CREATE_USAGE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMM_CREATE_USAGE_REPORT}. + * + *

(reports) Created EMM mobile app usage report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMM_CREATE_USAGE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emmCreateUsageReport(EmmCreateUsageReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmmCreateUsageReport(Tag.EMM_CREATE_USAGE_REPORT, value); + } + + /** + * (reports) Created EMM mobile app usage report + * + *

This instance must be tagged as {@link Tag#EMM_CREATE_USAGE_REPORT}. + *

+ * + * @return The {@link EmmCreateUsageReportType} value associated with this + * instance if {@link #isEmmCreateUsageReport} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmCreateUsageReport} is + * {@code false}. + */ + public EmmCreateUsageReportType getEmmCreateUsageReportValue() { + if (this._tag != Tag.EMM_CREATE_USAGE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_CREATE_USAGE_REPORT, but was Tag." + this._tag.name()); + } + return emmCreateUsageReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXPORT_MEMBERS_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXPORT_MEMBERS_REPORT}, {@code false} otherwise. + */ + public boolean isExportMembersReport() { + return this._tag == Tag.EXPORT_MEMBERS_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXPORT_MEMBERS_REPORT}. + * + *

(reports) Created member data report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXPORT_MEMBERS_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType exportMembersReport(ExportMembersReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExportMembersReport(Tag.EXPORT_MEMBERS_REPORT, value); + } + + /** + * (reports) Created member data report + * + *

This instance must be tagged as {@link Tag#EXPORT_MEMBERS_REPORT}. + *

+ * + * @return The {@link ExportMembersReportType} value associated with this + * instance if {@link #isExportMembersReport} is {@code true}. + * + * @throws IllegalStateException If {@link #isExportMembersReport} is + * {@code false}. + */ + public ExportMembersReportType getExportMembersReportValue() { + if (this._tag != Tag.EXPORT_MEMBERS_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.EXPORT_MEMBERS_REPORT, but was Tag." + this._tag.name()); + } + return exportMembersReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL}, {@code false} otherwise. + */ + public boolean isExportMembersReportFail() { + return this._tag == Tag.EXPORT_MEMBERS_REPORT_FAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL}. + * + *

(reports) Failed to create members data report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType exportMembersReportFail(ExportMembersReportFailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExportMembersReportFail(Tag.EXPORT_MEMBERS_REPORT_FAIL, value); + } + + /** + * (reports) Failed to create members data report + * + *

This instance must be tagged as {@link + * Tag#EXPORT_MEMBERS_REPORT_FAIL}.

+ * + * @return The {@link ExportMembersReportFailType} value associated with + * this instance if {@link #isExportMembersReportFail} is {@code true}. + * + * @throws IllegalStateException If {@link #isExportMembersReportFail} is + * {@code false}. + */ + public ExportMembersReportFailType getExportMembersReportFailValue() { + if (this._tag != Tag.EXPORT_MEMBERS_REPORT_FAIL) { + throw new IllegalStateException("Invalid tag: required Tag.EXPORT_MEMBERS_REPORT_FAIL, but was Tag." + this._tag.name()); + } + return exportMembersReportFailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isExternalSharingCreateReport() { + return this._tag == Tag.EXTERNAL_SHARING_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT}. + * + *

(reports) Created External sharing report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType externalSharingCreateReport(ExternalSharingCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExternalSharingCreateReport(Tag.EXTERNAL_SHARING_CREATE_REPORT, value); + } + + /** + * (reports) Created External sharing report + * + *

This instance must be tagged as {@link + * Tag#EXTERNAL_SHARING_CREATE_REPORT}.

+ * + * @return The {@link ExternalSharingCreateReportType} value associated with + * this instance if {@link #isExternalSharingCreateReport} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isExternalSharingCreateReport} + * is {@code false}. + */ + public ExternalSharingCreateReportType getExternalSharingCreateReportValue() { + if (this._tag != Tag.EXTERNAL_SHARING_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_SHARING_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return externalSharingCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED}, {@code false} otherwise. + */ + public boolean isExternalSharingReportFailed() { + return this._tag == Tag.EXTERNAL_SHARING_REPORT_FAILED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED}. + * + *

(reports) Couldn't create External sharing report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType externalSharingReportFailed(ExternalSharingReportFailedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExternalSharingReportFailed(Tag.EXTERNAL_SHARING_REPORT_FAILED, value); + } + + /** + * (reports) Couldn't create External sharing report + * + *

This instance must be tagged as {@link + * Tag#EXTERNAL_SHARING_REPORT_FAILED}.

+ * + * @return The {@link ExternalSharingReportFailedType} value associated with + * this instance if {@link #isExternalSharingReportFailed} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isExternalSharingReportFailed} + * is {@code false}. + */ + public ExternalSharingReportFailedType getExternalSharingReportFailedValue() { + if (this._tag != Tag.EXTERNAL_SHARING_REPORT_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_SHARING_REPORT_FAILED, but was Tag." + this._tag.name()); + } + return externalSharingReportFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isNoExpirationLinkGenCreateReport() { + return this._tag == Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT}. + * + *

(reports) Report created: Links created with no expiration

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noExpirationLinkGenCreateReport(NoExpirationLinkGenCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoExpirationLinkGenCreateReport(Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT, value); + } + + /** + * (reports) Report created: Links created with no expiration + * + *

This instance must be tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_CREATE_REPORT}.

+ * + * @return The {@link NoExpirationLinkGenCreateReportType} value associated + * with this instance if {@link #isNoExpirationLinkGenCreateReport} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoExpirationLinkGenCreateReport} is {@code false}. + */ + public NoExpirationLinkGenCreateReportType getNoExpirationLinkGenCreateReportValue() { + if (this._tag != Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPIRATION_LINK_GEN_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return noExpirationLinkGenCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED}, {@code false} otherwise. + */ + public boolean isNoExpirationLinkGenReportFailed() { + return this._tag == Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED}. + * + *

(reports) Couldn't create report: Links created with no expiration + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noExpirationLinkGenReportFailed(NoExpirationLinkGenReportFailedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoExpirationLinkGenReportFailed(Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED, value); + } + + /** + * (reports) Couldn't create report: Links created with no expiration + * + *

This instance must be tagged as {@link + * Tag#NO_EXPIRATION_LINK_GEN_REPORT_FAILED}.

+ * + * @return The {@link NoExpirationLinkGenReportFailedType} value associated + * with this instance if {@link #isNoExpirationLinkGenReportFailed} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoExpirationLinkGenReportFailed} is {@code false}. + */ + public NoExpirationLinkGenReportFailedType getNoExpirationLinkGenReportFailedValue() { + if (this._tag != Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.NO_EXPIRATION_LINK_GEN_REPORT_FAILED, but was Tag." + this._tag.name()); + } + return noExpirationLinkGenReportFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isNoPasswordLinkGenCreateReport() { + return this._tag == Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT}. + * + *

(reports) Report created: Links created without passwords

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noPasswordLinkGenCreateReport(NoPasswordLinkGenCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoPasswordLinkGenCreateReport(Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT, value); + } + + /** + * (reports) Report created: Links created without passwords + * + *

This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_CREATE_REPORT}.

+ * + * @return The {@link NoPasswordLinkGenCreateReportType} value associated + * with this instance if {@link #isNoPasswordLinkGenCreateReport} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkGenCreateReport} is {@code false}. + */ + public NoPasswordLinkGenCreateReportType getNoPasswordLinkGenCreateReportValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_GEN_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return noPasswordLinkGenCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED}, {@code false} otherwise. + */ + public boolean isNoPasswordLinkGenReportFailed() { + return this._tag == Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED}. + * + *

(reports) Couldn't create report: Links created without passwords + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noPasswordLinkGenReportFailed(NoPasswordLinkGenReportFailedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoPasswordLinkGenReportFailed(Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED, value); + } + + /** + * (reports) Couldn't create report: Links created without passwords + * + *

This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_GEN_REPORT_FAILED}.

+ * + * @return The {@link NoPasswordLinkGenReportFailedType} value associated + * with this instance if {@link #isNoPasswordLinkGenReportFailed} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkGenReportFailed} is {@code false}. + */ + public NoPasswordLinkGenReportFailedType getNoPasswordLinkGenReportFailedValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_GEN_REPORT_FAILED, but was Tag." + this._tag.name()); + } + return noPasswordLinkGenReportFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isNoPasswordLinkViewCreateReport() { + return this._tag == Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT}. + * + *

(reports) Report created: Views of links without passwords

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noPasswordLinkViewCreateReport(NoPasswordLinkViewCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoPasswordLinkViewCreateReport(Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT, value); + } + + /** + * (reports) Report created: Views of links without passwords + * + *

This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_CREATE_REPORT}.

+ * + * @return The {@link NoPasswordLinkViewCreateReportType} value associated + * with this instance if {@link #isNoPasswordLinkViewCreateReport} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkViewCreateReport} is {@code false}. + */ + public NoPasswordLinkViewCreateReportType getNoPasswordLinkViewCreateReportValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_VIEW_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return noPasswordLinkViewCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED}, {@code false} otherwise. + */ + public boolean isNoPasswordLinkViewReportFailed() { + return this._tag == Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED}. + * + *

(reports) Couldn't create report: Views of links without passwords + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noPasswordLinkViewReportFailed(NoPasswordLinkViewReportFailedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoPasswordLinkViewReportFailed(Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED, value); + } + + /** + * (reports) Couldn't create report: Views of links without passwords + * + *

This instance must be tagged as {@link + * Tag#NO_PASSWORD_LINK_VIEW_REPORT_FAILED}.

+ * + * @return The {@link NoPasswordLinkViewReportFailedType} value associated + * with this instance if {@link #isNoPasswordLinkViewReportFailed} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isNoPasswordLinkViewReportFailed} is {@code false}. + */ + public NoPasswordLinkViewReportFailedType getNoPasswordLinkViewReportFailedValue() { + if (this._tag != Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.NO_PASSWORD_LINK_VIEW_REPORT_FAILED, but was Tag." + this._tag.name()); + } + return noPasswordLinkViewReportFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isOutdatedLinkViewCreateReport() { + return this._tag == Tag.OUTDATED_LINK_VIEW_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT}. + * + *

(reports) Report created: Views of old links

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType outdatedLinkViewCreateReport(OutdatedLinkViewCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndOutdatedLinkViewCreateReport(Tag.OUTDATED_LINK_VIEW_CREATE_REPORT, value); + } + + /** + * (reports) Report created: Views of old links + * + *

This instance must be tagged as {@link + * Tag#OUTDATED_LINK_VIEW_CREATE_REPORT}.

+ * + * @return The {@link OutdatedLinkViewCreateReportType} value associated + * with this instance if {@link #isOutdatedLinkViewCreateReport} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isOutdatedLinkViewCreateReport} + * is {@code false}. + */ + public OutdatedLinkViewCreateReportType getOutdatedLinkViewCreateReportValue() { + if (this._tag != Tag.OUTDATED_LINK_VIEW_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.OUTDATED_LINK_VIEW_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return outdatedLinkViewCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED}, {@code false} otherwise. + */ + public boolean isOutdatedLinkViewReportFailed() { + return this._tag == Tag.OUTDATED_LINK_VIEW_REPORT_FAILED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED}. + * + *

(reports) Couldn't create report: Views of old links

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType outdatedLinkViewReportFailed(OutdatedLinkViewReportFailedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndOutdatedLinkViewReportFailed(Tag.OUTDATED_LINK_VIEW_REPORT_FAILED, value); + } + + /** + * (reports) Couldn't create report: Views of old links + * + *

This instance must be tagged as {@link + * Tag#OUTDATED_LINK_VIEW_REPORT_FAILED}.

+ * + * @return The {@link OutdatedLinkViewReportFailedType} value associated + * with this instance if {@link #isOutdatedLinkViewReportFailed} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isOutdatedLinkViewReportFailed} + * is {@code false}. + */ + public OutdatedLinkViewReportFailedType getOutdatedLinkViewReportFailedValue() { + if (this._tag != Tag.OUTDATED_LINK_VIEW_REPORT_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.OUTDATED_LINK_VIEW_REPORT_FAILED, but was Tag." + this._tag.name()); + } + return outdatedLinkViewReportFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_ADMIN_EXPORT_START}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_ADMIN_EXPORT_START}, {@code false} otherwise. + */ + public boolean isPaperAdminExportStart() { + return this._tag == Tag.PAPER_ADMIN_EXPORT_START; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_ADMIN_EXPORT_START}. + * + *

(reports) Exported all team Paper docs

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_ADMIN_EXPORT_START}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperAdminExportStart(PaperAdminExportStartType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperAdminExportStart(Tag.PAPER_ADMIN_EXPORT_START, value); + } + + /** + * (reports) Exported all team Paper docs + * + *

This instance must be tagged as {@link Tag#PAPER_ADMIN_EXPORT_START}. + *

+ * + * @return The {@link PaperAdminExportStartType} value associated with this + * instance if {@link #isPaperAdminExportStart} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperAdminExportStart} is + * {@code false}. + */ + public PaperAdminExportStartType getPaperAdminExportStartValue() { + if (this._tag != Tag.PAPER_ADMIN_EXPORT_START) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_ADMIN_EXPORT_START, but was Tag." + this._tag.name()); + } + return paperAdminExportStartValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isRansomwareAlertCreateReport() { + return this._tag == Tag.RANSOMWARE_ALERT_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT}. + * + *

(reports) Created ransomware report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ransomwareAlertCreateReport(RansomwareAlertCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndRansomwareAlertCreateReport(Tag.RANSOMWARE_ALERT_CREATE_REPORT, value); + } + + /** + * (reports) Created ransomware report + * + *

This instance must be tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT}.

+ * + * @return The {@link RansomwareAlertCreateReportType} value associated with + * this instance if {@link #isRansomwareAlertCreateReport} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isRansomwareAlertCreateReport} + * is {@code false}. + */ + public RansomwareAlertCreateReportType getRansomwareAlertCreateReportValue() { + if (this._tag != Tag.RANSOMWARE_ALERT_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_ALERT_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return ransomwareAlertCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED}, {@code false} otherwise. + */ + public boolean isRansomwareAlertCreateReportFailed() { + return this._tag == Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED}. + * + *

(reports) Couldn't generate ransomware report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ransomwareAlertCreateReportFailed(RansomwareAlertCreateReportFailedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndRansomwareAlertCreateReportFailed(Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED, value); + } + + /** + * (reports) Couldn't generate ransomware report + * + *

This instance must be tagged as {@link + * Tag#RANSOMWARE_ALERT_CREATE_REPORT_FAILED}.

+ * + * @return The {@link RansomwareAlertCreateReportFailedType} value + * associated with this instance if {@link + * #isRansomwareAlertCreateReportFailed} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isRansomwareAlertCreateReportFailed} is {@code false}. + */ + public RansomwareAlertCreateReportFailedType getRansomwareAlertCreateReportFailedValue() { + if (this._tag != Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED) { + throw new IllegalStateException("Invalid tag: required Tag.RANSOMWARE_ALERT_CREATE_REPORT_FAILED, but was Tag." + this._tag.name()); + } + return ransomwareAlertCreateReportFailedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT}, {@code false} + * otherwise. + */ + public boolean isSmartSyncCreateAdminPrivilegeReport() { + return this._tag == Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT}. + * + *

(reports) Created Smart Sync non-admin devices report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType smartSyncCreateAdminPrivilegeReport(SmartSyncCreateAdminPrivilegeReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSmartSyncCreateAdminPrivilegeReport(Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT, value); + } + + /** + * (reports) Created Smart Sync non-admin devices report + * + *

This instance must be tagged as {@link + * Tag#SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT}.

+ * + * @return The {@link SmartSyncCreateAdminPrivilegeReportType} value + * associated with this instance if {@link + * #isSmartSyncCreateAdminPrivilegeReport} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSmartSyncCreateAdminPrivilegeReport} is {@code false}. + */ + public SmartSyncCreateAdminPrivilegeReportType getSmartSyncCreateAdminPrivilegeReportValue() { + if (this._tag != Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT, but was Tag." + this._tag.name()); + } + return smartSyncCreateAdminPrivilegeReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT}, {@code false} otherwise. + */ + public boolean isTeamActivityCreateReport() { + return this._tag == Tag.TEAM_ACTIVITY_CREATE_REPORT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT}. + * + *

(reports) Created team activity report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamActivityCreateReport(TeamActivityCreateReportType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamActivityCreateReport(Tag.TEAM_ACTIVITY_CREATE_REPORT, value); + } + + /** + * (reports) Created team activity report + * + *

This instance must be tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT}.

+ * + * @return The {@link TeamActivityCreateReportType} value associated with + * this instance if {@link #isTeamActivityCreateReport} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamActivityCreateReport} is + * {@code false}. + */ + public TeamActivityCreateReportType getTeamActivityCreateReportValue() { + if (this._tag != Tag.TEAM_ACTIVITY_CREATE_REPORT) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ACTIVITY_CREATE_REPORT, but was Tag." + this._tag.name()); + } + return teamActivityCreateReportValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL}, {@code false} otherwise. + */ + public boolean isTeamActivityCreateReportFail() { + return this._tag == Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL}. + * + *

(reports) Couldn't generate team activity report

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamActivityCreateReportFail(TeamActivityCreateReportFailType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamActivityCreateReportFail(Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL, value); + } + + /** + * (reports) Couldn't generate team activity report + * + *

This instance must be tagged as {@link + * Tag#TEAM_ACTIVITY_CREATE_REPORT_FAIL}.

+ * + * @return The {@link TeamActivityCreateReportFailType} value associated + * with this instance if {@link #isTeamActivityCreateReportFail} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isTeamActivityCreateReportFail} + * is {@code false}. + */ + public TeamActivityCreateReportFailType getTeamActivityCreateReportFailValue() { + if (this._tag != Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_ACTIVITY_CREATE_REPORT_FAIL, but was Tag." + this._tag.name()); + } + return teamActivityCreateReportFailValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#COLLECTION_SHARE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#COLLECTION_SHARE}, {@code false} otherwise. + */ + public boolean isCollectionShare() { + return this._tag == Tag.COLLECTION_SHARE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#COLLECTION_SHARE}. + * + *

(sharing) Shared album

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#COLLECTION_SHARE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType collectionShare(CollectionShareType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndCollectionShare(Tag.COLLECTION_SHARE, value); + } + + /** + * (sharing) Shared album + * + *

This instance must be tagged as {@link Tag#COLLECTION_SHARE}.

+ * + * @return The {@link CollectionShareType} value associated with this + * instance if {@link #isCollectionShare} is {@code true}. + * + * @throws IllegalStateException If {@link #isCollectionShare} is {@code + * false}. + */ + public CollectionShareType getCollectionShareValue() { + if (this._tag != Tag.COLLECTION_SHARE) { + throw new IllegalStateException("Invalid tag: required Tag.COLLECTION_SHARE, but was Tag." + this._tag.name()); + } + return collectionShareValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_FILE_ADD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_FILE_ADD}, {@code false} otherwise. + */ + public boolean isFileTransfersFileAdd() { + return this._tag == Tag.FILE_TRANSFERS_FILE_ADD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_TRANSFERS_FILE_ADD}. + * + *

(sharing) Transfer files added

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_TRANSFERS_FILE_ADD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileTransfersFileAdd(FileTransfersFileAddType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileTransfersFileAdd(Tag.FILE_TRANSFERS_FILE_ADD, value); + } + + /** + * (sharing) Transfer files added + * + *

This instance must be tagged as {@link Tag#FILE_TRANSFERS_FILE_ADD}. + *

+ * + * @return The {@link FileTransfersFileAddType} value associated with this + * instance if {@link #isFileTransfersFileAdd} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileTransfersFileAdd} is + * {@code false}. + */ + public FileTransfersFileAddType getFileTransfersFileAddValue() { + if (this._tag != Tag.FILE_TRANSFERS_FILE_ADD) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_FILE_ADD, but was Tag." + this._tag.name()); + } + return fileTransfersFileAddValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE}, {@code false} otherwise. + */ + public boolean isFileTransfersTransferDelete() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE}. + * + *

(sharing) Deleted transfer

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileTransfersTransferDelete(FileTransfersTransferDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileTransfersTransferDelete(Tag.FILE_TRANSFERS_TRANSFER_DELETE, value); + } + + /** + * (sharing) Deleted transfer + * + *

This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DELETE}.

+ * + * @return The {@link FileTransfersTransferDeleteType} value associated with + * this instance if {@link #isFileTransfersTransferDelete} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileTransfersTransferDelete} + * is {@code false}. + */ + public FileTransfersTransferDeleteType getFileTransfersTransferDeleteValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_DELETE, but was Tag." + this._tag.name()); + } + return fileTransfersTransferDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD}, {@code false} otherwise. + */ + public boolean isFileTransfersTransferDownload() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD}. + * + *

(sharing) Transfer downloaded

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileTransfersTransferDownload(FileTransfersTransferDownloadType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileTransfersTransferDownload(Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD, value); + } + + /** + * (sharing) Transfer downloaded + * + *

This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_DOWNLOAD}.

+ * + * @return The {@link FileTransfersTransferDownloadType} value associated + * with this instance if {@link #isFileTransfersTransferDownload} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileTransfersTransferDownload} is {@code false}. + */ + public FileTransfersTransferDownloadType getFileTransfersTransferDownloadValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_DOWNLOAD, but was Tag." + this._tag.name()); + } + return fileTransfersTransferDownloadValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND}, {@code false} otherwise. + */ + public boolean isFileTransfersTransferSend() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_SEND; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND}. + * + *

(sharing) Sent transfer

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileTransfersTransferSend(FileTransfersTransferSendType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileTransfersTransferSend(Tag.FILE_TRANSFERS_TRANSFER_SEND, value); + } + + /** + * (sharing) Sent transfer + * + *

This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_SEND}.

+ * + * @return The {@link FileTransfersTransferSendType} value associated with + * this instance if {@link #isFileTransfersTransferSend} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileTransfersTransferSend} is + * {@code false}. + */ + public FileTransfersTransferSendType getFileTransfersTransferSendValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_SEND) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_SEND, but was Tag." + this._tag.name()); + } + return fileTransfersTransferSendValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW}, {@code false} otherwise. + */ + public boolean isFileTransfersTransferView() { + return this._tag == Tag.FILE_TRANSFERS_TRANSFER_VIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW}. + * + *

(sharing) Viewed transfer

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileTransfersTransferView(FileTransfersTransferViewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileTransfersTransferView(Tag.FILE_TRANSFERS_TRANSFER_VIEW, value); + } + + /** + * (sharing) Viewed transfer + * + *

This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_TRANSFER_VIEW}.

+ * + * @return The {@link FileTransfersTransferViewType} value associated with + * this instance if {@link #isFileTransfersTransferView} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileTransfersTransferView} is + * {@code false}. + */ + public FileTransfersTransferViewType getFileTransfersTransferViewValue() { + if (this._tag != Tag.FILE_TRANSFERS_TRANSFER_VIEW) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_TRANSFER_VIEW, but was Tag." + this._tag.name()); + } + return fileTransfersTransferViewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_ACL_INVITE_ONLY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_ACL_INVITE_ONLY}, {@code false} otherwise. + */ + public boolean isNoteAclInviteOnly() { + return this._tag == Tag.NOTE_ACL_INVITE_ONLY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NOTE_ACL_INVITE_ONLY}. + * + *

(sharing) Changed Paper doc to invite-only (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NOTE_ACL_INVITE_ONLY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noteAclInviteOnly(NoteAclInviteOnlyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoteAclInviteOnly(Tag.NOTE_ACL_INVITE_ONLY, value); + } + + /** + * (sharing) Changed Paper doc to invite-only (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#NOTE_ACL_INVITE_ONLY}. + *

+ * + * @return The {@link NoteAclInviteOnlyType} value associated with this + * instance if {@link #isNoteAclInviteOnly} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteAclInviteOnly} is {@code + * false}. + */ + public NoteAclInviteOnlyType getNoteAclInviteOnlyValue() { + if (this._tag != Tag.NOTE_ACL_INVITE_ONLY) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_ACL_INVITE_ONLY, but was Tag." + this._tag.name()); + } + return noteAclInviteOnlyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_ACL_LINK}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_ACL_LINK}, {@code false} otherwise. + */ + public boolean isNoteAclLink() { + return this._tag == Tag.NOTE_ACL_LINK; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NOTE_ACL_LINK}. + * + *

(sharing) Changed Paper doc to link-accessible (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NOTE_ACL_LINK}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noteAclLink(NoteAclLinkType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoteAclLink(Tag.NOTE_ACL_LINK, value); + } + + /** + * (sharing) Changed Paper doc to link-accessible (deprecated, no longer + * logged) + * + *

This instance must be tagged as {@link Tag#NOTE_ACL_LINK}.

+ * + * @return The {@link NoteAclLinkType} value associated with this instance + * if {@link #isNoteAclLink} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteAclLink} is {@code + * false}. + */ + public NoteAclLinkType getNoteAclLinkValue() { + if (this._tag != Tag.NOTE_ACL_LINK) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_ACL_LINK, but was Tag." + this._tag.name()); + } + return noteAclLinkValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_ACL_TEAM_LINK}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_ACL_TEAM_LINK}, {@code false} otherwise. + */ + public boolean isNoteAclTeamLink() { + return this._tag == Tag.NOTE_ACL_TEAM_LINK; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NOTE_ACL_TEAM_LINK}. + * + *

(sharing) Changed Paper doc to link-accessible for team (deprecated, + * no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NOTE_ACL_TEAM_LINK}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noteAclTeamLink(NoteAclTeamLinkType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoteAclTeamLink(Tag.NOTE_ACL_TEAM_LINK, value); + } + + /** + * (sharing) Changed Paper doc to link-accessible for team (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link Tag#NOTE_ACL_TEAM_LINK}.

+ * + * @return The {@link NoteAclTeamLinkType} value associated with this + * instance if {@link #isNoteAclTeamLink} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteAclTeamLink} is {@code + * false}. + */ + public NoteAclTeamLinkType getNoteAclTeamLinkValue() { + if (this._tag != Tag.NOTE_ACL_TEAM_LINK) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_ACL_TEAM_LINK, but was Tag." + this._tag.name()); + } + return noteAclTeamLinkValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_SHARED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_SHARED}, {@code false} otherwise. + */ + public boolean isNoteShared() { + return this._tag == Tag.NOTE_SHARED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NOTE_SHARED}. + * + *

(sharing) Shared Paper doc (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NOTE_SHARED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noteShared(NoteSharedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoteShared(Tag.NOTE_SHARED, value); + } + + /** + * (sharing) Shared Paper doc (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#NOTE_SHARED}.

+ * + * @return The {@link NoteSharedType} value associated with this instance if + * {@link #isNoteShared} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteShared} is {@code false}. + */ + public NoteSharedType getNoteSharedValue() { + if (this._tag != Tag.NOTE_SHARED) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_SHARED, but was Tag." + this._tag.name()); + } + return noteSharedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NOTE_SHARE_RECEIVE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NOTE_SHARE_RECEIVE}, {@code false} otherwise. + */ + public boolean isNoteShareReceive() { + return this._tag == Tag.NOTE_SHARE_RECEIVE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NOTE_SHARE_RECEIVE}. + * + *

(sharing) Shared received Paper doc (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NOTE_SHARE_RECEIVE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType noteShareReceive(NoteShareReceiveType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNoteShareReceive(Tag.NOTE_SHARE_RECEIVE, value); + } + + /** + * (sharing) Shared received Paper doc (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#NOTE_SHARE_RECEIVE}.

+ * + * @return The {@link NoteShareReceiveType} value associated with this + * instance if {@link #isNoteShareReceive} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoteShareReceive} is {@code + * false}. + */ + public NoteShareReceiveType getNoteShareReceiveValue() { + if (this._tag != Tag.NOTE_SHARE_RECEIVE) { + throw new IllegalStateException("Invalid tag: required Tag.NOTE_SHARE_RECEIVE, but was Tag." + this._tag.name()); + } + return noteShareReceiveValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#OPEN_NOTE_SHARED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#OPEN_NOTE_SHARED}, {@code false} otherwise. + */ + public boolean isOpenNoteShared() { + return this._tag == Tag.OPEN_NOTE_SHARED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#OPEN_NOTE_SHARED}. + * + *

(sharing) Opened shared Paper doc (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#OPEN_NOTE_SHARED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType openNoteShared(OpenNoteSharedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndOpenNoteShared(Tag.OPEN_NOTE_SHARED, value); + } + + /** + * (sharing) Opened shared Paper doc (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#OPEN_NOTE_SHARED}.

+ * + * @return The {@link OpenNoteSharedType} value associated with this + * instance if {@link #isOpenNoteShared} is {@code true}. + * + * @throws IllegalStateException If {@link #isOpenNoteShared} is {@code + * false}. + */ + public OpenNoteSharedType getOpenNoteSharedValue() { + if (this._tag != Tag.OPEN_NOTE_SHARED) { + throw new IllegalStateException("Invalid tag: required Tag.OPEN_NOTE_SHARED, but was Tag." + this._tag.name()); + } + return openNoteSharedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED}, {@code false} otherwise. + */ + public boolean isReplayFileSharedLinkCreated() { + return this._tag == Tag.REPLAY_FILE_SHARED_LINK_CREATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED}. + * + *

(sharing) Created shared link in Replay

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType replayFileSharedLinkCreated(ReplayFileSharedLinkCreatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndReplayFileSharedLinkCreated(Tag.REPLAY_FILE_SHARED_LINK_CREATED, value); + } + + /** + * (sharing) Created shared link in Replay + * + *

This instance must be tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_CREATED}.

+ * + * @return The {@link ReplayFileSharedLinkCreatedType} value associated with + * this instance if {@link #isReplayFileSharedLinkCreated} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isReplayFileSharedLinkCreated} + * is {@code false}. + */ + public ReplayFileSharedLinkCreatedType getReplayFileSharedLinkCreatedValue() { + if (this._tag != Tag.REPLAY_FILE_SHARED_LINK_CREATED) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_FILE_SHARED_LINK_CREATED, but was Tag." + this._tag.name()); + } + return replayFileSharedLinkCreatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED}, {@code false} otherwise. + */ + public boolean isReplayFileSharedLinkModified() { + return this._tag == Tag.REPLAY_FILE_SHARED_LINK_MODIFIED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED}. + * + *

(sharing) Modified shared link in Replay

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType replayFileSharedLinkModified(ReplayFileSharedLinkModifiedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndReplayFileSharedLinkModified(Tag.REPLAY_FILE_SHARED_LINK_MODIFIED, value); + } + + /** + * (sharing) Modified shared link in Replay + * + *

This instance must be tagged as {@link + * Tag#REPLAY_FILE_SHARED_LINK_MODIFIED}.

+ * + * @return The {@link ReplayFileSharedLinkModifiedType} value associated + * with this instance if {@link #isReplayFileSharedLinkModified} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isReplayFileSharedLinkModified} + * is {@code false}. + */ + public ReplayFileSharedLinkModifiedType getReplayFileSharedLinkModifiedValue() { + if (this._tag != Tag.REPLAY_FILE_SHARED_LINK_MODIFIED) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_FILE_SHARED_LINK_MODIFIED, but was Tag." + this._tag.name()); + } + return replayFileSharedLinkModifiedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_PROJECT_TEAM_ADD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_PROJECT_TEAM_ADD}, {@code false} otherwise. + */ + public boolean isReplayProjectTeamAdd() { + return this._tag == Tag.REPLAY_PROJECT_TEAM_ADD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#REPLAY_PROJECT_TEAM_ADD}. + * + *

(sharing) Added member to Replay Project

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#REPLAY_PROJECT_TEAM_ADD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType replayProjectTeamAdd(ReplayProjectTeamAddType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndReplayProjectTeamAdd(Tag.REPLAY_PROJECT_TEAM_ADD, value); + } + + /** + * (sharing) Added member to Replay Project + * + *

This instance must be tagged as {@link Tag#REPLAY_PROJECT_TEAM_ADD}. + *

+ * + * @return The {@link ReplayProjectTeamAddType} value associated with this + * instance if {@link #isReplayProjectTeamAdd} is {@code true}. + * + * @throws IllegalStateException If {@link #isReplayProjectTeamAdd} is + * {@code false}. + */ + public ReplayProjectTeamAddType getReplayProjectTeamAddValue() { + if (this._tag != Tag.REPLAY_PROJECT_TEAM_ADD) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_PROJECT_TEAM_ADD, but was Tag." + this._tag.name()); + } + return replayProjectTeamAddValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE}, {@code false} otherwise. + */ + public boolean isReplayProjectTeamDelete() { + return this._tag == Tag.REPLAY_PROJECT_TEAM_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE}. + * + *

(sharing) Removed member from Replay Project

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType replayProjectTeamDelete(ReplayProjectTeamDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndReplayProjectTeamDelete(Tag.REPLAY_PROJECT_TEAM_DELETE, value); + } + + /** + * (sharing) Removed member from Replay Project + * + *

This instance must be tagged as {@link + * Tag#REPLAY_PROJECT_TEAM_DELETE}.

+ * + * @return The {@link ReplayProjectTeamDeleteType} value associated with + * this instance if {@link #isReplayProjectTeamDelete} is {@code true}. + * + * @throws IllegalStateException If {@link #isReplayProjectTeamDelete} is + * {@code false}. + */ + public ReplayProjectTeamDeleteType getReplayProjectTeamDeleteValue() { + if (this._tag != Tag.REPLAY_PROJECT_TEAM_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.REPLAY_PROJECT_TEAM_DELETE, but was Tag." + this._tag.name()); + } + return replayProjectTeamDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_ADD_GROUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_ADD_GROUP}, {@code false} otherwise. + */ + public boolean isSfAddGroup() { + return this._tag == Tag.SF_ADD_GROUP; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_ADD_GROUP}. + * + *

(sharing) Added team to shared folder (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_ADD_GROUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfAddGroup(SfAddGroupType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfAddGroup(Tag.SF_ADD_GROUP, value); + } + + /** + * (sharing) Added team to shared folder (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#SF_ADD_GROUP}.

+ * + * @return The {@link SfAddGroupType} value associated with this instance if + * {@link #isSfAddGroup} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfAddGroup} is {@code false}. + */ + public SfAddGroupType getSfAddGroupValue() { + if (this._tag != Tag.SF_ADD_GROUP) { + throw new IllegalStateException("Invalid tag: required Tag.SF_ADD_GROUP, but was Tag." + this._tag.name()); + } + return sfAddGroupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS}, {@code false} + * otherwise. + */ + public boolean isSfAllowNonMembersToViewSharedLinks() { + return this._tag == Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS}. + * + *

(sharing) Allowed non-collaborators to view links to files in shared + * folder (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfAllowNonMembersToViewSharedLinks(SfAllowNonMembersToViewSharedLinksType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfAllowNonMembersToViewSharedLinks(Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS, value); + } + + /** + * (sharing) Allowed non-collaborators to view links to files in shared + * folder (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS}.

+ * + * @return The {@link SfAllowNonMembersToViewSharedLinksType} value + * associated with this instance if {@link + * #isSfAllowNonMembersToViewSharedLinks} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSfAllowNonMembersToViewSharedLinks} is {@code false}. + */ + public SfAllowNonMembersToViewSharedLinksType getSfAllowNonMembersToViewSharedLinksValue() { + if (this._tag != Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS, but was Tag." + this._tag.name()); + } + return sfAllowNonMembersToViewSharedLinksValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_EXTERNAL_INVITE_WARN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_EXTERNAL_INVITE_WARN}, {@code false} otherwise. + */ + public boolean isSfExternalInviteWarn() { + return this._tag == Tag.SF_EXTERNAL_INVITE_WARN; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_EXTERNAL_INVITE_WARN}. + * + *

(sharing) Set team members to see warning before sharing folders + * outside team (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_EXTERNAL_INVITE_WARN}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfExternalInviteWarn(SfExternalInviteWarnType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfExternalInviteWarn(Tag.SF_EXTERNAL_INVITE_WARN, value); + } + + /** + * (sharing) Set team members to see warning before sharing folders outside + * team (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#SF_EXTERNAL_INVITE_WARN}. + *

+ * + * @return The {@link SfExternalInviteWarnType} value associated with this + * instance if {@link #isSfExternalInviteWarn} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfExternalInviteWarn} is + * {@code false}. + */ + public SfExternalInviteWarnType getSfExternalInviteWarnValue() { + if (this._tag != Tag.SF_EXTERNAL_INVITE_WARN) { + throw new IllegalStateException("Invalid tag: required Tag.SF_EXTERNAL_INVITE_WARN, but was Tag." + this._tag.name()); + } + return sfExternalInviteWarnValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_FB_INVITE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_FB_INVITE}, {@code false} otherwise. + */ + public boolean isSfFbInvite() { + return this._tag == Tag.SF_FB_INVITE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_FB_INVITE}. + * + *

(sharing) Invited Facebook users to shared folder (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_FB_INVITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfFbInvite(SfFbInviteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfFbInvite(Tag.SF_FB_INVITE, value); + } + + /** + * (sharing) Invited Facebook users to shared folder (deprecated, no longer + * logged) + * + *

This instance must be tagged as {@link Tag#SF_FB_INVITE}.

+ * + * @return The {@link SfFbInviteType} value associated with this instance if + * {@link #isSfFbInvite} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfFbInvite} is {@code false}. + */ + public SfFbInviteType getSfFbInviteValue() { + if (this._tag != Tag.SF_FB_INVITE) { + throw new IllegalStateException("Invalid tag: required Tag.SF_FB_INVITE, but was Tag." + this._tag.name()); + } + return sfFbInviteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE}, {@code false} otherwise. + */ + public boolean isSfFbInviteChangeRole() { + return this._tag == Tag.SF_FB_INVITE_CHANGE_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE}. + * + *

(sharing) Changed Facebook user's role in shared folder (deprecated, + * no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_FB_INVITE_CHANGE_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfFbInviteChangeRole(SfFbInviteChangeRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfFbInviteChangeRole(Tag.SF_FB_INVITE_CHANGE_ROLE, value); + } + + /** + * (sharing) Changed Facebook user's role in shared folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link Tag#SF_FB_INVITE_CHANGE_ROLE}. + *

+ * + * @return The {@link SfFbInviteChangeRoleType} value associated with this + * instance if {@link #isSfFbInviteChangeRole} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfFbInviteChangeRole} is + * {@code false}. + */ + public SfFbInviteChangeRoleType getSfFbInviteChangeRoleValue() { + if (this._tag != Tag.SF_FB_INVITE_CHANGE_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.SF_FB_INVITE_CHANGE_ROLE, but was Tag." + this._tag.name()); + } + return sfFbInviteChangeRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_FB_UNINVITE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_FB_UNINVITE}, {@code false} otherwise. + */ + public boolean isSfFbUninvite() { + return this._tag == Tag.SF_FB_UNINVITE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_FB_UNINVITE}. + * + *

(sharing) Uninvited Facebook user from shared folder (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_FB_UNINVITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfFbUninvite(SfFbUninviteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfFbUninvite(Tag.SF_FB_UNINVITE, value); + } + + /** + * (sharing) Uninvited Facebook user from shared folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link Tag#SF_FB_UNINVITE}.

+ * + * @return The {@link SfFbUninviteType} value associated with this instance + * if {@link #isSfFbUninvite} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfFbUninvite} is {@code + * false}. + */ + public SfFbUninviteType getSfFbUninviteValue() { + if (this._tag != Tag.SF_FB_UNINVITE) { + throw new IllegalStateException("Invalid tag: required Tag.SF_FB_UNINVITE, but was Tag." + this._tag.name()); + } + return sfFbUninviteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_INVITE_GROUP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_INVITE_GROUP}, {@code false} otherwise. + */ + public boolean isSfInviteGroup() { + return this._tag == Tag.SF_INVITE_GROUP; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_INVITE_GROUP}. + * + *

(sharing) Invited group to shared folder (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_INVITE_GROUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfInviteGroup(SfInviteGroupType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfInviteGroup(Tag.SF_INVITE_GROUP, value); + } + + /** + * (sharing) Invited group to shared folder (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#SF_INVITE_GROUP}.

+ * + * @return The {@link SfInviteGroupType} value associated with this instance + * if {@link #isSfInviteGroup} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfInviteGroup} is {@code + * false}. + */ + public SfInviteGroupType getSfInviteGroupValue() { + if (this._tag != Tag.SF_INVITE_GROUP) { + throw new IllegalStateException("Invalid tag: required Tag.SF_INVITE_GROUP, but was Tag." + this._tag.name()); + } + return sfInviteGroupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_GRANT_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_GRANT_ACCESS}, {@code false} otherwise. + */ + public boolean isSfTeamGrantAccess() { + return this._tag == Tag.SF_TEAM_GRANT_ACCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_TEAM_GRANT_ACCESS}. + * + *

(sharing) Granted access to shared folder (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_TEAM_GRANT_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfTeamGrantAccess(SfTeamGrantAccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfTeamGrantAccess(Tag.SF_TEAM_GRANT_ACCESS, value); + } + + /** + * (sharing) Granted access to shared folder (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#SF_TEAM_GRANT_ACCESS}. + *

+ * + * @return The {@link SfTeamGrantAccessType} value associated with this + * instance if {@link #isSfTeamGrantAccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamGrantAccess} is {@code + * false}. + */ + public SfTeamGrantAccessType getSfTeamGrantAccessValue() { + if (this._tag != Tag.SF_TEAM_GRANT_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_GRANT_ACCESS, but was Tag." + this._tag.name()); + } + return sfTeamGrantAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_INVITE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_INVITE}, {@code false} otherwise. + */ + public boolean isSfTeamInvite() { + return this._tag == Tag.SF_TEAM_INVITE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_TEAM_INVITE}. + * + *

(sharing) Invited team members to shared folder (deprecated, replaced + * by 'Invited user to Dropbox and added them to shared file/folder')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_TEAM_INVITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfTeamInvite(SfTeamInviteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfTeamInvite(Tag.SF_TEAM_INVITE, value); + } + + /** + * (sharing) Invited team members to shared folder (deprecated, replaced by + * 'Invited user to Dropbox and added them to shared file/folder') + * + *

This instance must be tagged as {@link Tag#SF_TEAM_INVITE}.

+ * + * @return The {@link SfTeamInviteType} value associated with this instance + * if {@link #isSfTeamInvite} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamInvite} is {@code + * false}. + */ + public SfTeamInviteType getSfTeamInviteValue() { + if (this._tag != Tag.SF_TEAM_INVITE) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_INVITE, but was Tag." + this._tag.name()); + } + return sfTeamInviteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE}, {@code false} otherwise. + */ + public boolean isSfTeamInviteChangeRole() { + return this._tag == Tag.SF_TEAM_INVITE_CHANGE_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE}. + * + *

(sharing) Changed team member's role in shared folder (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfTeamInviteChangeRole(SfTeamInviteChangeRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfTeamInviteChangeRole(Tag.SF_TEAM_INVITE_CHANGE_ROLE, value); + } + + /** + * (sharing) Changed team member's role in shared folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#SF_TEAM_INVITE_CHANGE_ROLE}.

+ * + * @return The {@link SfTeamInviteChangeRoleType} value associated with this + * instance if {@link #isSfTeamInviteChangeRole} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamInviteChangeRole} is + * {@code false}. + */ + public SfTeamInviteChangeRoleType getSfTeamInviteChangeRoleValue() { + if (this._tag != Tag.SF_TEAM_INVITE_CHANGE_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_INVITE_CHANGE_ROLE, but was Tag." + this._tag.name()); + } + return sfTeamInviteChangeRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_JOIN}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_JOIN}, {@code false} otherwise. + */ + public boolean isSfTeamJoin() { + return this._tag == Tag.SF_TEAM_JOIN; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_TEAM_JOIN}. + * + *

(sharing) Joined team member's shared folder (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_TEAM_JOIN}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfTeamJoin(SfTeamJoinType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfTeamJoin(Tag.SF_TEAM_JOIN, value); + } + + /** + * (sharing) Joined team member's shared folder (deprecated, no longer + * logged) + * + *

This instance must be tagged as {@link Tag#SF_TEAM_JOIN}.

+ * + * @return The {@link SfTeamJoinType} value associated with this instance if + * {@link #isSfTeamJoin} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamJoin} is {@code false}. + */ + public SfTeamJoinType getSfTeamJoinValue() { + if (this._tag != Tag.SF_TEAM_JOIN) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_JOIN, but was Tag." + this._tag.name()); + } + return sfTeamJoinValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK}, {@code false} otherwise. + */ + public boolean isSfTeamJoinFromOobLink() { + return this._tag == Tag.SF_TEAM_JOIN_FROM_OOB_LINK; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK}. + * + *

(sharing) Joined team member's shared folder from link (deprecated, + * no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfTeamJoinFromOobLink(SfTeamJoinFromOobLinkType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfTeamJoinFromOobLink(Tag.SF_TEAM_JOIN_FROM_OOB_LINK, value); + } + + /** + * (sharing) Joined team member's shared folder from link (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#SF_TEAM_JOIN_FROM_OOB_LINK}.

+ * + * @return The {@link SfTeamJoinFromOobLinkType} value associated with this + * instance if {@link #isSfTeamJoinFromOobLink} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamJoinFromOobLink} is + * {@code false}. + */ + public SfTeamJoinFromOobLinkType getSfTeamJoinFromOobLinkValue() { + if (this._tag != Tag.SF_TEAM_JOIN_FROM_OOB_LINK) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_JOIN_FROM_OOB_LINK, but was Tag." + this._tag.name()); + } + return sfTeamJoinFromOobLinkValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SF_TEAM_UNINVITE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SF_TEAM_UNINVITE}, {@code false} otherwise. + */ + public boolean isSfTeamUninvite() { + return this._tag == Tag.SF_TEAM_UNINVITE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SF_TEAM_UNINVITE}. + * + *

(sharing) Unshared folder with team member (deprecated, replaced by + * 'Removed invitee from shared file/folder before invite was accepted') + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SF_TEAM_UNINVITE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sfTeamUninvite(SfTeamUninviteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSfTeamUninvite(Tag.SF_TEAM_UNINVITE, value); + } + + /** + * (sharing) Unshared folder with team member (deprecated, replaced by + * 'Removed invitee from shared file/folder before invite was accepted') + * + *

This instance must be tagged as {@link Tag#SF_TEAM_UNINVITE}.

+ * + * @return The {@link SfTeamUninviteType} value associated with this + * instance if {@link #isSfTeamUninvite} is {@code true}. + * + * @throws IllegalStateException If {@link #isSfTeamUninvite} is {@code + * false}. + */ + public SfTeamUninviteType getSfTeamUninviteValue() { + if (this._tag != Tag.SF_TEAM_UNINVITE) { + throw new IllegalStateException("Invalid tag: required Tag.SF_TEAM_UNINVITE, but was Tag." + this._tag.name()); + } + return sfTeamUninviteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_INVITEES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_INVITEES}, {@code false} otherwise. + */ + public boolean isSharedContentAddInvitees() { + return this._tag == Tag.SHARED_CONTENT_ADD_INVITEES; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_ADD_INVITEES}. + * + *

(sharing) Invited user to Dropbox and added them to shared + * file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_INVITEES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentAddInvitees(SharedContentAddInviteesType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentAddInvitees(Tag.SHARED_CONTENT_ADD_INVITEES, value); + } + + /** + * (sharing) Invited user to Dropbox and added them to shared file/folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_INVITEES}.

+ * + * @return The {@link SharedContentAddInviteesType} value associated with + * this instance if {@link #isSharedContentAddInvitees} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentAddInvitees} is + * {@code false}. + */ + public SharedContentAddInviteesType getSharedContentAddInviteesValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_INVITEES) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_INVITEES, but was Tag." + this._tag.name()); + } + return sharedContentAddInviteesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY}, {@code false} otherwise. + */ + public boolean isSharedContentAddLinkExpiry() { + return this._tag == Tag.SHARED_CONTENT_ADD_LINK_EXPIRY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY}. + * + *

(sharing) Added expiration date to link for shared file/folder + * (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentAddLinkExpiry(SharedContentAddLinkExpiryType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentAddLinkExpiry(Tag.SHARED_CONTENT_ADD_LINK_EXPIRY, value); + } + + /** + * (sharing) Added expiration date to link for shared file/folder + * (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_EXPIRY}.

+ * + * @return The {@link SharedContentAddLinkExpiryType} value associated with + * this instance if {@link #isSharedContentAddLinkExpiry} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedContentAddLinkExpiry} + * is {@code false}. + */ + public SharedContentAddLinkExpiryType getSharedContentAddLinkExpiryValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_LINK_EXPIRY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_LINK_EXPIRY, but was Tag." + this._tag.name()); + } + return sharedContentAddLinkExpiryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD}, {@code false} otherwise. + */ + public boolean isSharedContentAddLinkPassword() { + return this._tag == Tag.SHARED_CONTENT_ADD_LINK_PASSWORD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD}. + * + *

(sharing) Added password to link for shared file/folder (deprecated, + * no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentAddLinkPassword(SharedContentAddLinkPasswordType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentAddLinkPassword(Tag.SHARED_CONTENT_ADD_LINK_PASSWORD, value); + } + + /** + * (sharing) Added password to link for shared file/folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_LINK_PASSWORD}.

+ * + * @return The {@link SharedContentAddLinkPasswordType} value associated + * with this instance if {@link #isSharedContentAddLinkPassword} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentAddLinkPassword} + * is {@code false}. + */ + public SharedContentAddLinkPasswordType getSharedContentAddLinkPasswordValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_LINK_PASSWORD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_LINK_PASSWORD, but was Tag." + this._tag.name()); + } + return sharedContentAddLinkPasswordValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_ADD_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_ADD_MEMBER}, {@code false} otherwise. + */ + public boolean isSharedContentAddMember() { + return this._tag == Tag.SHARED_CONTENT_ADD_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_ADD_MEMBER}. + * + *

(sharing) Added users and/or groups to shared file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_ADD_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentAddMember(SharedContentAddMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentAddMember(Tag.SHARED_CONTENT_ADD_MEMBER, value); + } + + /** + * (sharing) Added users and/or groups to shared file/folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_ADD_MEMBER}.

+ * + * @return The {@link SharedContentAddMemberType} value associated with this + * instance if {@link #isSharedContentAddMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentAddMember} is + * {@code false}. + */ + public SharedContentAddMemberType getSharedContentAddMemberValue() { + if (this._tag != Tag.SHARED_CONTENT_ADD_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_ADD_MEMBER, but was Tag." + this._tag.name()); + } + return sharedContentAddMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY}, {@code false} otherwise. + */ + public boolean isSharedContentChangeDownloadsPolicy() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY}. + * + *

(sharing) Changed whether members can download shared file/folder + * (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentChangeDownloadsPolicy(SharedContentChangeDownloadsPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentChangeDownloadsPolicy(Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY, value); + } + + /** + * (sharing) Changed whether members can download shared file/folder + * (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY}.

+ * + * @return The {@link SharedContentChangeDownloadsPolicyType} value + * associated with this instance if {@link + * #isSharedContentChangeDownloadsPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeDownloadsPolicy} is {@code false}. + */ + public SharedContentChangeDownloadsPolicyType getSharedContentChangeDownloadsPolicyValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY, but was Tag." + this._tag.name()); + } + return sharedContentChangeDownloadsPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE}, {@code false} otherwise. + */ + public boolean isSharedContentChangeInviteeRole() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE}. + * + *

(sharing) Changed access type of invitee to shared file/folder before + * invite was accepted

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentChangeInviteeRole(SharedContentChangeInviteeRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentChangeInviteeRole(Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE, value); + } + + /** + * (sharing) Changed access type of invitee to shared file/folder before + * invite was accepted + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_INVITEE_ROLE}.

+ * + * @return The {@link SharedContentChangeInviteeRoleType} value associated + * with this instance if {@link #isSharedContentChangeInviteeRole} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeInviteeRole} is {@code false}. + */ + public SharedContentChangeInviteeRoleType getSharedContentChangeInviteeRoleValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_INVITEE_ROLE, but was Tag." + this._tag.name()); + } + return sharedContentChangeInviteeRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE}, {@code false} otherwise. + */ + public boolean isSharedContentChangeLinkAudience() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE}. + * + *

(sharing) Changed link audience of shared file/folder (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentChangeLinkAudience(SharedContentChangeLinkAudienceType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentChangeLinkAudience(Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE, value); + } + + /** + * (sharing) Changed link audience of shared file/folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_AUDIENCE}.

+ * + * @return The {@link SharedContentChangeLinkAudienceType} value associated + * with this instance if {@link #isSharedContentChangeLinkAudience} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeLinkAudience} is {@code false}. + */ + public SharedContentChangeLinkAudienceType getSharedContentChangeLinkAudienceValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_LINK_AUDIENCE, but was Tag." + this._tag.name()); + } + return sharedContentChangeLinkAudienceValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY}, {@code false} otherwise. + */ + public boolean isSharedContentChangeLinkExpiry() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY}. + * + *

(sharing) Changed link expiration of shared file/folder (deprecated, + * no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentChangeLinkExpiry(SharedContentChangeLinkExpiryType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentChangeLinkExpiry(Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY, value); + } + + /** + * (sharing) Changed link expiration of shared file/folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_EXPIRY}.

+ * + * @return The {@link SharedContentChangeLinkExpiryType} value associated + * with this instance if {@link #isSharedContentChangeLinkExpiry} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeLinkExpiry} is {@code false}. + */ + public SharedContentChangeLinkExpiryType getSharedContentChangeLinkExpiryValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_LINK_EXPIRY, but was Tag." + this._tag.name()); + } + return sharedContentChangeLinkExpiryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD}, {@code false} otherwise. + */ + public boolean isSharedContentChangeLinkPassword() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD}. + * + *

(sharing) Changed link password of shared file/folder (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentChangeLinkPassword(SharedContentChangeLinkPasswordType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentChangeLinkPassword(Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD, value); + } + + /** + * (sharing) Changed link password of shared file/folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_LINK_PASSWORD}.

+ * + * @return The {@link SharedContentChangeLinkPasswordType} value associated + * with this instance if {@link #isSharedContentChangeLinkPassword} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeLinkPassword} is {@code false}. + */ + public SharedContentChangeLinkPasswordType getSharedContentChangeLinkPasswordValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_LINK_PASSWORD, but was Tag." + this._tag.name()); + } + return sharedContentChangeLinkPasswordValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE}, {@code false} otherwise. + */ + public boolean isSharedContentChangeMemberRole() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE}. + * + *

(sharing) Changed access type of shared file/folder member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentChangeMemberRole(SharedContentChangeMemberRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentChangeMemberRole(Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE, value); + } + + /** + * (sharing) Changed access type of shared file/folder member + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_MEMBER_ROLE}.

+ * + * @return The {@link SharedContentChangeMemberRoleType} value associated + * with this instance if {@link #isSharedContentChangeMemberRole} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeMemberRole} is {@code false}. + */ + public SharedContentChangeMemberRoleType getSharedContentChangeMemberRoleValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_MEMBER_ROLE, but was Tag." + this._tag.name()); + } + return sharedContentChangeMemberRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY}, {@code false} + * otherwise. + */ + public boolean isSharedContentChangeViewerInfoPolicy() { + return this._tag == Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY}. + * + *

(sharing) Changed whether members can see who viewed shared + * file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentChangeViewerInfoPolicy(SharedContentChangeViewerInfoPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentChangeViewerInfoPolicy(Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY, value); + } + + /** + * (sharing) Changed whether members can see who viewed shared file/folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY}.

+ * + * @return The {@link SharedContentChangeViewerInfoPolicyType} value + * associated with this instance if {@link + * #isSharedContentChangeViewerInfoPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentChangeViewerInfoPolicy} is {@code false}. + */ + public SharedContentChangeViewerInfoPolicyType getSharedContentChangeViewerInfoPolicyValue() { + if (this._tag != Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY, but was Tag." + this._tag.name()); + } + return sharedContentChangeViewerInfoPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION}, {@code false} otherwise. + */ + public boolean isSharedContentClaimInvitation() { + return this._tag == Tag.SHARED_CONTENT_CLAIM_INVITATION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION}. + * + *

(sharing) Acquired membership of shared file/folder by accepting + * invite

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentClaimInvitation(SharedContentClaimInvitationType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentClaimInvitation(Tag.SHARED_CONTENT_CLAIM_INVITATION, value); + } + + /** + * (sharing) Acquired membership of shared file/folder by accepting invite + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_CLAIM_INVITATION}.

+ * + * @return The {@link SharedContentClaimInvitationType} value associated + * with this instance if {@link #isSharedContentClaimInvitation} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentClaimInvitation} + * is {@code false}. + */ + public SharedContentClaimInvitationType getSharedContentClaimInvitationValue() { + if (this._tag != Tag.SHARED_CONTENT_CLAIM_INVITATION) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_CLAIM_INVITATION, but was Tag." + this._tag.name()); + } + return sharedContentClaimInvitationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_COPY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_COPY}, {@code false} otherwise. + */ + public boolean isSharedContentCopy() { + return this._tag == Tag.SHARED_CONTENT_COPY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_COPY}. + * + *

(sharing) Copied shared file/folder to own Dropbox

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_COPY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentCopy(SharedContentCopyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentCopy(Tag.SHARED_CONTENT_COPY, value); + } + + /** + * (sharing) Copied shared file/folder to own Dropbox + * + *

This instance must be tagged as {@link Tag#SHARED_CONTENT_COPY}.

+ * + * @return The {@link SharedContentCopyType} value associated with this + * instance if {@link #isSharedContentCopy} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentCopy} is {@code + * false}. + */ + public SharedContentCopyType getSharedContentCopyValue() { + if (this._tag != Tag.SHARED_CONTENT_COPY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_COPY, but was Tag." + this._tag.name()); + } + return sharedContentCopyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_DOWNLOAD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_DOWNLOAD}, {@code false} otherwise. + */ + public boolean isSharedContentDownload() { + return this._tag == Tag.SHARED_CONTENT_DOWNLOAD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_DOWNLOAD}. + * + *

(sharing) Downloaded shared file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_DOWNLOAD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentDownload(SharedContentDownloadType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentDownload(Tag.SHARED_CONTENT_DOWNLOAD, value); + } + + /** + * (sharing) Downloaded shared file/folder + * + *

This instance must be tagged as {@link Tag#SHARED_CONTENT_DOWNLOAD}. + *

+ * + * @return The {@link SharedContentDownloadType} value associated with this + * instance if {@link #isSharedContentDownload} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentDownload} is + * {@code false}. + */ + public SharedContentDownloadType getSharedContentDownloadValue() { + if (this._tag != Tag.SHARED_CONTENT_DOWNLOAD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_DOWNLOAD, but was Tag." + this._tag.name()); + } + return sharedContentDownloadValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP}, {@code false} otherwise. + */ + public boolean isSharedContentRelinquishMembership() { + return this._tag == Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP}. + * + *

(sharing) Left shared file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRelinquishMembership(SharedContentRelinquishMembershipType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRelinquishMembership(Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP, value); + } + + /** + * (sharing) Left shared file/folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_RELINQUISH_MEMBERSHIP}.

+ * + * @return The {@link SharedContentRelinquishMembershipType} value + * associated with this instance if {@link + * #isSharedContentRelinquishMembership} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRelinquishMembership} is {@code false}. + */ + public SharedContentRelinquishMembershipType getSharedContentRelinquishMembershipValue() { + if (this._tag != Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_RELINQUISH_MEMBERSHIP, but was Tag." + this._tag.name()); + } + return sharedContentRelinquishMembershipValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES}, {@code false} otherwise. + */ + public boolean isSharedContentRemoveInvitees() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_INVITEES; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES}. + * + *

(sharing) Removed invitee from shared file/folder before invite was + * accepted

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRemoveInvitees(SharedContentRemoveInviteesType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRemoveInvitees(Tag.SHARED_CONTENT_REMOVE_INVITEES, value); + } + + /** + * (sharing) Removed invitee from shared file/folder before invite was + * accepted + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_INVITEES}.

+ * + * @return The {@link SharedContentRemoveInviteesType} value associated with + * this instance if {@link #isSharedContentRemoveInvitees} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedContentRemoveInvitees} + * is {@code false}. + */ + public SharedContentRemoveInviteesType getSharedContentRemoveInviteesValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_INVITEES) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_INVITEES, but was Tag." + this._tag.name()); + } + return sharedContentRemoveInviteesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY}, {@code false} otherwise. + */ + public boolean isSharedContentRemoveLinkExpiry() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY}. + * + *

(sharing) Removed link expiration date of shared file/folder + * (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRemoveLinkExpiry(SharedContentRemoveLinkExpiryType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRemoveLinkExpiry(Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY, value); + } + + /** + * (sharing) Removed link expiration date of shared file/folder (deprecated, + * no longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_EXPIRY}.

+ * + * @return The {@link SharedContentRemoveLinkExpiryType} value associated + * with this instance if {@link #isSharedContentRemoveLinkExpiry} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRemoveLinkExpiry} is {@code false}. + */ + public SharedContentRemoveLinkExpiryType getSharedContentRemoveLinkExpiryValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_LINK_EXPIRY, but was Tag." + this._tag.name()); + } + return sharedContentRemoveLinkExpiryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD}, {@code false} otherwise. + */ + public boolean isSharedContentRemoveLinkPassword() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD}. + * + *

(sharing) Removed link password of shared file/folder (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRemoveLinkPassword(SharedContentRemoveLinkPasswordType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRemoveLinkPassword(Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD, value); + } + + /** + * (sharing) Removed link password of shared file/folder (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_LINK_PASSWORD}.

+ * + * @return The {@link SharedContentRemoveLinkPasswordType} value associated + * with this instance if {@link #isSharedContentRemoveLinkPassword} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedContentRemoveLinkPassword} is {@code false}. + */ + public SharedContentRemoveLinkPasswordType getSharedContentRemoveLinkPasswordValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_LINK_PASSWORD, but was Tag." + this._tag.name()); + } + return sharedContentRemoveLinkPasswordValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER}, {@code false} otherwise. + */ + public boolean isSharedContentRemoveMember() { + return this._tag == Tag.SHARED_CONTENT_REMOVE_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER}. + * + *

(sharing) Removed user/group from shared file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRemoveMember(SharedContentRemoveMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRemoveMember(Tag.SHARED_CONTENT_REMOVE_MEMBER, value); + } + + /** + * (sharing) Removed user/group from shared file/folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REMOVE_MEMBER}.

+ * + * @return The {@link SharedContentRemoveMemberType} value associated with + * this instance if {@link #isSharedContentRemoveMember} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedContentRemoveMember} is + * {@code false}. + */ + public SharedContentRemoveMemberType getSharedContentRemoveMemberValue() { + if (this._tag != Tag.SHARED_CONTENT_REMOVE_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REMOVE_MEMBER, but was Tag." + this._tag.name()); + } + return sharedContentRemoveMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS}, {@code false} otherwise. + */ + public boolean isSharedContentRequestAccess() { + return this._tag == Tag.SHARED_CONTENT_REQUEST_ACCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS}. + * + *

(sharing) Requested access to shared file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRequestAccess(SharedContentRequestAccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRequestAccess(Tag.SHARED_CONTENT_REQUEST_ACCESS, value); + } + + /** + * (sharing) Requested access to shared file/folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_REQUEST_ACCESS}.

+ * + * @return The {@link SharedContentRequestAccessType} value associated with + * this instance if {@link #isSharedContentRequestAccess} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedContentRequestAccess} + * is {@code false}. + */ + public SharedContentRequestAccessType getSharedContentRequestAccessValue() { + if (this._tag != Tag.SHARED_CONTENT_REQUEST_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_REQUEST_ACCESS, but was Tag." + this._tag.name()); + } + return sharedContentRequestAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES}, {@code false} otherwise. + */ + public boolean isSharedContentRestoreInvitees() { + return this._tag == Tag.SHARED_CONTENT_RESTORE_INVITEES; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES}. + * + *

(sharing) Restored shared file/folder invitees

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRestoreInvitees(SharedContentRestoreInviteesType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRestoreInvitees(Tag.SHARED_CONTENT_RESTORE_INVITEES, value); + } + + /** + * (sharing) Restored shared file/folder invitees + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_INVITEES}.

+ * + * @return The {@link SharedContentRestoreInviteesType} value associated + * with this instance if {@link #isSharedContentRestoreInvitees} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentRestoreInvitees} + * is {@code false}. + */ + public SharedContentRestoreInviteesType getSharedContentRestoreInviteesValue() { + if (this._tag != Tag.SHARED_CONTENT_RESTORE_INVITEES) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_RESTORE_INVITEES, but was Tag." + this._tag.name()); + } + return sharedContentRestoreInviteesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER}, {@code false} otherwise. + */ + public boolean isSharedContentRestoreMember() { + return this._tag == Tag.SHARED_CONTENT_RESTORE_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER}. + * + *

(sharing) Restored users and/or groups to membership of shared + * file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentRestoreMember(SharedContentRestoreMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentRestoreMember(Tag.SHARED_CONTENT_RESTORE_MEMBER, value); + } + + /** + * (sharing) Restored users and/or groups to membership of shared + * file/folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_CONTENT_RESTORE_MEMBER}.

+ * + * @return The {@link SharedContentRestoreMemberType} value associated with + * this instance if {@link #isSharedContentRestoreMember} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedContentRestoreMember} + * is {@code false}. + */ + public SharedContentRestoreMemberType getSharedContentRestoreMemberValue() { + if (this._tag != Tag.SHARED_CONTENT_RESTORE_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_RESTORE_MEMBER, but was Tag." + this._tag.name()); + } + return sharedContentRestoreMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_UNSHARE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_UNSHARE}, {@code false} otherwise. + */ + public boolean isSharedContentUnshare() { + return this._tag == Tag.SHARED_CONTENT_UNSHARE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_UNSHARE}. + * + *

(sharing) Unshared file/folder by clearing membership

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_UNSHARE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentUnshare(SharedContentUnshareType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentUnshare(Tag.SHARED_CONTENT_UNSHARE, value); + } + + /** + * (sharing) Unshared file/folder by clearing membership + * + *

This instance must be tagged as {@link Tag#SHARED_CONTENT_UNSHARE}. + *

+ * + * @return The {@link SharedContentUnshareType} value associated with this + * instance if {@link #isSharedContentUnshare} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentUnshare} is + * {@code false}. + */ + public SharedContentUnshareType getSharedContentUnshareValue() { + if (this._tag != Tag.SHARED_CONTENT_UNSHARE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_UNSHARE, but was Tag." + this._tag.name()); + } + return sharedContentUnshareValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_CONTENT_VIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_CONTENT_VIEW}, {@code false} otherwise. + */ + public boolean isSharedContentView() { + return this._tag == Tag.SHARED_CONTENT_VIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_CONTENT_VIEW}. + * + *

(sharing) Previewed shared file/folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_CONTENT_VIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedContentView(SharedContentViewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedContentView(Tag.SHARED_CONTENT_VIEW, value); + } + + /** + * (sharing) Previewed shared file/folder + * + *

This instance must be tagged as {@link Tag#SHARED_CONTENT_VIEW}.

+ * + * @return The {@link SharedContentViewType} value associated with this + * instance if {@link #isSharedContentView} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedContentView} is {@code + * false}. + */ + public SharedContentViewType getSharedContentViewValue() { + if (this._tag != Tag.SHARED_CONTENT_VIEW) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_CONTENT_VIEW, but was Tag." + this._tag.name()); + } + return sharedContentViewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY}, {@code false} otherwise. + */ + public boolean isSharedFolderChangeLinkPolicy() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_LINK_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY}. + * + *

(sharing) Changed who can access shared folder via link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderChangeLinkPolicy(SharedFolderChangeLinkPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderChangeLinkPolicy(Tag.SHARED_FOLDER_CHANGE_LINK_POLICY, value); + } + + /** + * (sharing) Changed who can access shared folder via link + * + *

This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_LINK_POLICY}.

+ * + * @return The {@link SharedFolderChangeLinkPolicyType} value associated + * with this instance if {@link #isSharedFolderChangeLinkPolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderChangeLinkPolicy} + * is {@code false}. + */ + public SharedFolderChangeLinkPolicyType getSharedFolderChangeLinkPolicyValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_LINK_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_LINK_POLICY, but was Tag." + this._tag.name()); + } + return sharedFolderChangeLinkPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY}, {@code false} + * otherwise. + */ + public boolean isSharedFolderChangeMembersInheritancePolicy() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY}. + * + *

(sharing) Changed whether shared folder inherits members from parent + * folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderChangeMembersInheritancePolicy(SharedFolderChangeMembersInheritancePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderChangeMembersInheritancePolicy(Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY, value); + } + + /** + * (sharing) Changed whether shared folder inherits members from parent + * folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY}.

+ * + * @return The {@link SharedFolderChangeMembersInheritancePolicyType} value + * associated with this instance if {@link + * #isSharedFolderChangeMembersInheritancePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderChangeMembersInheritancePolicy} is {@code false}. + */ + public SharedFolderChangeMembersInheritancePolicyType getSharedFolderChangeMembersInheritancePolicyValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY, but was Tag." + this._tag.name()); + } + return sharedFolderChangeMembersInheritancePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY}, {@code false} + * otherwise. + */ + public boolean isSharedFolderChangeMembersManagementPolicy() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY}. + * + *

(sharing) Changed who can add/remove members of shared folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderChangeMembersManagementPolicy(SharedFolderChangeMembersManagementPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderChangeMembersManagementPolicy(Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY, value); + } + + /** + * (sharing) Changed who can add/remove members of shared folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY}.

+ * + * @return The {@link SharedFolderChangeMembersManagementPolicyType} value + * associated with this instance if {@link + * #isSharedFolderChangeMembersManagementPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderChangeMembersManagementPolicy} is {@code false}. + */ + public SharedFolderChangeMembersManagementPolicyType getSharedFolderChangeMembersManagementPolicyValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY, but was Tag." + this._tag.name()); + } + return sharedFolderChangeMembersManagementPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY}, {@code false} otherwise. + */ + public boolean isSharedFolderChangeMembersPolicy() { + return this._tag == Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY}. + * + *

(sharing) Changed who can become member of shared folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderChangeMembersPolicy(SharedFolderChangeMembersPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderChangeMembersPolicy(Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY, value); + } + + /** + * (sharing) Changed who can become member of shared folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_FOLDER_CHANGE_MEMBERS_POLICY}.

+ * + * @return The {@link SharedFolderChangeMembersPolicyType} value associated + * with this instance if {@link #isSharedFolderChangeMembersPolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderChangeMembersPolicy} is {@code false}. + */ + public SharedFolderChangeMembersPolicyType getSharedFolderChangeMembersPolicyValue() { + if (this._tag != Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CHANGE_MEMBERS_POLICY, but was Tag." + this._tag.name()); + } + return sharedFolderChangeMembersPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_CREATE}, {@code false} otherwise. + */ + public boolean isSharedFolderCreate() { + return this._tag == Tag.SHARED_FOLDER_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_CREATE}. + * + *

(sharing) Created shared folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderCreate(SharedFolderCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderCreate(Tag.SHARED_FOLDER_CREATE, value); + } + + /** + * (sharing) Created shared folder + * + *

This instance must be tagged as {@link Tag#SHARED_FOLDER_CREATE}. + *

+ * + * @return The {@link SharedFolderCreateType} value associated with this + * instance if {@link #isSharedFolderCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderCreate} is {@code + * false}. + */ + public SharedFolderCreateType getSharedFolderCreateValue() { + if (this._tag != Tag.SHARED_FOLDER_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_CREATE, but was Tag." + this._tag.name()); + } + return sharedFolderCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION}, {@code false} otherwise. + */ + public boolean isSharedFolderDeclineInvitation() { + return this._tag == Tag.SHARED_FOLDER_DECLINE_INVITATION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION}. + * + *

(sharing) Declined team member's invite to shared folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderDeclineInvitation(SharedFolderDeclineInvitationType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderDeclineInvitation(Tag.SHARED_FOLDER_DECLINE_INVITATION, value); + } + + /** + * (sharing) Declined team member's invite to shared folder + * + *

This instance must be tagged as {@link + * Tag#SHARED_FOLDER_DECLINE_INVITATION}.

+ * + * @return The {@link SharedFolderDeclineInvitationType} value associated + * with this instance if {@link #isSharedFolderDeclineInvitation} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderDeclineInvitation} is {@code false}. + */ + public SharedFolderDeclineInvitationType getSharedFolderDeclineInvitationValue() { + if (this._tag != Tag.SHARED_FOLDER_DECLINE_INVITATION) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_DECLINE_INVITATION, but was Tag." + this._tag.name()); + } + return sharedFolderDeclineInvitationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_MOUNT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_MOUNT}, {@code false} otherwise. + */ + public boolean isSharedFolderMount() { + return this._tag == Tag.SHARED_FOLDER_MOUNT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_MOUNT}. + * + *

(sharing) Added shared folder to own Dropbox

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_MOUNT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderMount(SharedFolderMountType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderMount(Tag.SHARED_FOLDER_MOUNT, value); + } + + /** + * (sharing) Added shared folder to own Dropbox + * + *

This instance must be tagged as {@link Tag#SHARED_FOLDER_MOUNT}.

+ * + * @return The {@link SharedFolderMountType} value associated with this + * instance if {@link #isSharedFolderMount} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderMount} is {@code + * false}. + */ + public SharedFolderMountType getSharedFolderMountValue() { + if (this._tag != Tag.SHARED_FOLDER_MOUNT) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_MOUNT, but was Tag." + this._tag.name()); + } + return sharedFolderMountValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_NEST}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_NEST}, {@code false} otherwise. + */ + public boolean isSharedFolderNest() { + return this._tag == Tag.SHARED_FOLDER_NEST; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_NEST}. + * + *

(sharing) Changed parent of shared folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_NEST}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderNest(SharedFolderNestType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderNest(Tag.SHARED_FOLDER_NEST, value); + } + + /** + * (sharing) Changed parent of shared folder + * + *

This instance must be tagged as {@link Tag#SHARED_FOLDER_NEST}.

+ * + * @return The {@link SharedFolderNestType} value associated with this + * instance if {@link #isSharedFolderNest} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderNest} is {@code + * false}. + */ + public SharedFolderNestType getSharedFolderNestValue() { + if (this._tag != Tag.SHARED_FOLDER_NEST) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_NEST, but was Tag." + this._tag.name()); + } + return sharedFolderNestValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP}, {@code false} otherwise. + */ + public boolean isSharedFolderTransferOwnership() { + return this._tag == Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP}. + * + *

(sharing) Transferred ownership of shared folder to another member + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderTransferOwnership(SharedFolderTransferOwnershipType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderTransferOwnership(Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP, value); + } + + /** + * (sharing) Transferred ownership of shared folder to another member + * + *

This instance must be tagged as {@link + * Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP}.

+ * + * @return The {@link SharedFolderTransferOwnershipType} value associated + * with this instance if {@link #isSharedFolderTransferOwnership} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedFolderTransferOwnership} is {@code false}. + */ + public SharedFolderTransferOwnershipType getSharedFolderTransferOwnershipValue() { + if (this._tag != Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_TRANSFER_OWNERSHIP, but was Tag." + this._tag.name()); + } + return sharedFolderTransferOwnershipValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_FOLDER_UNMOUNT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_FOLDER_UNMOUNT}, {@code false} otherwise. + */ + public boolean isSharedFolderUnmount() { + return this._tag == Tag.SHARED_FOLDER_UNMOUNT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_FOLDER_UNMOUNT}. + * + *

(sharing) Deleted shared folder from Dropbox

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_FOLDER_UNMOUNT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedFolderUnmount(SharedFolderUnmountType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedFolderUnmount(Tag.SHARED_FOLDER_UNMOUNT, value); + } + + /** + * (sharing) Deleted shared folder from Dropbox + * + *

This instance must be tagged as {@link Tag#SHARED_FOLDER_UNMOUNT}. + *

+ * + * @return The {@link SharedFolderUnmountType} value associated with this + * instance if {@link #isSharedFolderUnmount} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedFolderUnmount} is + * {@code false}. + */ + public SharedFolderUnmountType getSharedFolderUnmountValue() { + if (this._tag != Tag.SHARED_FOLDER_UNMOUNT) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_UNMOUNT, but was Tag." + this._tag.name()); + } + return sharedFolderUnmountValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_ADD_EXPIRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_ADD_EXPIRY}, {@code false} otherwise. + */ + public boolean isSharedLinkAddExpiry() { + return this._tag == Tag.SHARED_LINK_ADD_EXPIRY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_ADD_EXPIRY}. + * + *

(sharing) Added shared link expiration date

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_ADD_EXPIRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkAddExpiry(SharedLinkAddExpiryType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkAddExpiry(Tag.SHARED_LINK_ADD_EXPIRY, value); + } + + /** + * (sharing) Added shared link expiration date + * + *

This instance must be tagged as {@link Tag#SHARED_LINK_ADD_EXPIRY}. + *

+ * + * @return The {@link SharedLinkAddExpiryType} value associated with this + * instance if {@link #isSharedLinkAddExpiry} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkAddExpiry} is + * {@code false}. + */ + public SharedLinkAddExpiryType getSharedLinkAddExpiryValue() { + if (this._tag != Tag.SHARED_LINK_ADD_EXPIRY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_ADD_EXPIRY, but was Tag." + this._tag.name()); + } + return sharedLinkAddExpiryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY}, {@code false} otherwise. + */ + public boolean isSharedLinkChangeExpiry() { + return this._tag == Tag.SHARED_LINK_CHANGE_EXPIRY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY}. + * + *

(sharing) Changed shared link expiration date

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkChangeExpiry(SharedLinkChangeExpiryType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkChangeExpiry(Tag.SHARED_LINK_CHANGE_EXPIRY, value); + } + + /** + * (sharing) Changed shared link expiration date + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_CHANGE_EXPIRY}.

+ * + * @return The {@link SharedLinkChangeExpiryType} value associated with this + * instance if {@link #isSharedLinkChangeExpiry} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkChangeExpiry} is + * {@code false}. + */ + public SharedLinkChangeExpiryType getSharedLinkChangeExpiryValue() { + if (this._tag != Tag.SHARED_LINK_CHANGE_EXPIRY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_CHANGE_EXPIRY, but was Tag." + this._tag.name()); + } + return sharedLinkChangeExpiryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY}, {@code false} otherwise. + */ + public boolean isSharedLinkChangeVisibility() { + return this._tag == Tag.SHARED_LINK_CHANGE_VISIBILITY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY}. + * + *

(sharing) Changed visibility of shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkChangeVisibility(SharedLinkChangeVisibilityType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkChangeVisibility(Tag.SHARED_LINK_CHANGE_VISIBILITY, value); + } + + /** + * (sharing) Changed visibility of shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_CHANGE_VISIBILITY}.

+ * + * @return The {@link SharedLinkChangeVisibilityType} value associated with + * this instance if {@link #isSharedLinkChangeVisibility} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharedLinkChangeVisibility} + * is {@code false}. + */ + public SharedLinkChangeVisibilityType getSharedLinkChangeVisibilityValue() { + if (this._tag != Tag.SHARED_LINK_CHANGE_VISIBILITY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_CHANGE_VISIBILITY, but was Tag." + this._tag.name()); + } + return sharedLinkChangeVisibilityValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_COPY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_COPY}, {@code false} otherwise. + */ + public boolean isSharedLinkCopy() { + return this._tag == Tag.SHARED_LINK_COPY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_COPY}. + * + *

(sharing) Added file/folder to Dropbox from shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_COPY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkCopy(SharedLinkCopyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkCopy(Tag.SHARED_LINK_COPY, value); + } + + /** + * (sharing) Added file/folder to Dropbox from shared link + * + *

This instance must be tagged as {@link Tag#SHARED_LINK_COPY}.

+ * + * @return The {@link SharedLinkCopyType} value associated with this + * instance if {@link #isSharedLinkCopy} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkCopy} is {@code + * false}. + */ + public SharedLinkCopyType getSharedLinkCopyValue() { + if (this._tag != Tag.SHARED_LINK_COPY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_COPY, but was Tag." + this._tag.name()); + } + return sharedLinkCopyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_CREATE}, {@code false} otherwise. + */ + public boolean isSharedLinkCreate() { + return this._tag == Tag.SHARED_LINK_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_CREATE}. + * + *

(sharing) Created shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkCreate(SharedLinkCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkCreate(Tag.SHARED_LINK_CREATE, value); + } + + /** + * (sharing) Created shared link + * + *

This instance must be tagged as {@link Tag#SHARED_LINK_CREATE}.

+ * + * @return The {@link SharedLinkCreateType} value associated with this + * instance if {@link #isSharedLinkCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkCreate} is {@code + * false}. + */ + public SharedLinkCreateType getSharedLinkCreateValue() { + if (this._tag != Tag.SHARED_LINK_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_CREATE, but was Tag." + this._tag.name()); + } + return sharedLinkCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_DISABLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_DISABLE}, {@code false} otherwise. + */ + public boolean isSharedLinkDisable() { + return this._tag == Tag.SHARED_LINK_DISABLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_DISABLE}. + * + *

(sharing) Removed shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_DISABLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkDisable(SharedLinkDisableType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkDisable(Tag.SHARED_LINK_DISABLE, value); + } + + /** + * (sharing) Removed shared link + * + *

This instance must be tagged as {@link Tag#SHARED_LINK_DISABLE}.

+ * + * @return The {@link SharedLinkDisableType} value associated with this + * instance if {@link #isSharedLinkDisable} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkDisable} is {@code + * false}. + */ + public SharedLinkDisableType getSharedLinkDisableValue() { + if (this._tag != Tag.SHARED_LINK_DISABLE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_DISABLE, but was Tag." + this._tag.name()); + } + return sharedLinkDisableValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_DOWNLOAD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_DOWNLOAD}, {@code false} otherwise. + */ + public boolean isSharedLinkDownload() { + return this._tag == Tag.SHARED_LINK_DOWNLOAD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_DOWNLOAD}. + * + *

(sharing) Downloaded file/folder from shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_DOWNLOAD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkDownload(SharedLinkDownloadType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkDownload(Tag.SHARED_LINK_DOWNLOAD, value); + } + + /** + * (sharing) Downloaded file/folder from shared link + * + *

This instance must be tagged as {@link Tag#SHARED_LINK_DOWNLOAD}. + *

+ * + * @return The {@link SharedLinkDownloadType} value associated with this + * instance if {@link #isSharedLinkDownload} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkDownload} is {@code + * false}. + */ + public SharedLinkDownloadType getSharedLinkDownloadValue() { + if (this._tag != Tag.SHARED_LINK_DOWNLOAD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_DOWNLOAD, but was Tag." + this._tag.name()); + } + return sharedLinkDownloadValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY}, {@code false} otherwise. + */ + public boolean isSharedLinkRemoveExpiry() { + return this._tag == Tag.SHARED_LINK_REMOVE_EXPIRY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY}. + * + *

(sharing) Removed shared link expiration date

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkRemoveExpiry(SharedLinkRemoveExpiryType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkRemoveExpiry(Tag.SHARED_LINK_REMOVE_EXPIRY, value); + } + + /** + * (sharing) Removed shared link expiration date + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_REMOVE_EXPIRY}.

+ * + * @return The {@link SharedLinkRemoveExpiryType} value associated with this + * instance if {@link #isSharedLinkRemoveExpiry} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkRemoveExpiry} is + * {@code false}. + */ + public SharedLinkRemoveExpiryType getSharedLinkRemoveExpiryValue() { + if (this._tag != Tag.SHARED_LINK_REMOVE_EXPIRY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_REMOVE_EXPIRY, but was Tag." + this._tag.name()); + } + return sharedLinkRemoveExpiryValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION}, {@code false} otherwise. + */ + public boolean isSharedLinkSettingsAddExpiration() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION}. + * + *

(sharing) Added an expiration date to the shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsAddExpiration(SharedLinkSettingsAddExpirationType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsAddExpiration(Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION, value); + } + + /** + * (sharing) Added an expiration date to the shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_EXPIRATION}.

+ * + * @return The {@link SharedLinkSettingsAddExpirationType} value associated + * with this instance if {@link #isSharedLinkSettingsAddExpiration} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAddExpiration} is {@code false}. + */ + public SharedLinkSettingsAddExpirationType getSharedLinkSettingsAddExpirationValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ADD_EXPIRATION, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAddExpirationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD}, {@code false} otherwise. + */ + public boolean isSharedLinkSettingsAddPassword() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD}. + * + *

(sharing) Added a password to the shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsAddPassword(SharedLinkSettingsAddPasswordType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsAddPassword(Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD, value); + } + + /** + * (sharing) Added a password to the shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ADD_PASSWORD}.

+ * + * @return The {@link SharedLinkSettingsAddPasswordType} value associated + * with this instance if {@link #isSharedLinkSettingsAddPassword} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAddPassword} is {@code false}. + */ + public SharedLinkSettingsAddPasswordType getSharedLinkSettingsAddPasswordValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ADD_PASSWORD, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAddPasswordValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsAllowDownloadDisabled() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED}. + * + *

(sharing) Disabled downloads

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsAllowDownloadDisabled(SharedLinkSettingsAllowDownloadDisabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsAllowDownloadDisabled(Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED, value); + } + + /** + * (sharing) Disabled downloads + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED}.

+ * + * @return The {@link SharedLinkSettingsAllowDownloadDisabledType} value + * associated with this instance if {@link + * #isSharedLinkSettingsAllowDownloadDisabled} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAllowDownloadDisabled} is {@code false}. + */ + public SharedLinkSettingsAllowDownloadDisabledType getSharedLinkSettingsAllowDownloadDisabledValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAllowDownloadDisabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED}, {@code false} + * otherwise. + */ + public boolean isSharedLinkSettingsAllowDownloadEnabled() { + return this._tag == Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED}. + * + *

(sharing) Enabled downloads

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsAllowDownloadEnabled(SharedLinkSettingsAllowDownloadEnabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsAllowDownloadEnabled(Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED, value); + } + + /** + * (sharing) Enabled downloads + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED}.

+ * + * @return The {@link SharedLinkSettingsAllowDownloadEnabledType} value + * associated with this instance if {@link + * #isSharedLinkSettingsAllowDownloadEnabled} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsAllowDownloadEnabled} is {@code false}. + */ + public SharedLinkSettingsAllowDownloadEnabledType getSharedLinkSettingsAllowDownloadEnabledValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsAllowDownloadEnabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE}, {@code false} otherwise. + */ + public boolean isSharedLinkSettingsChangeAudience() { + return this._tag == Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE}. + * + *

(sharing) Changed the audience of the shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsChangeAudience(SharedLinkSettingsChangeAudienceType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsChangeAudience(Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE, value); + } + + /** + * (sharing) Changed the audience of the shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_AUDIENCE}.

+ * + * @return The {@link SharedLinkSettingsChangeAudienceType} value associated + * with this instance if {@link #isSharedLinkSettingsChangeAudience} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsChangeAudience} is {@code false}. + */ + public SharedLinkSettingsChangeAudienceType getSharedLinkSettingsChangeAudienceValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsChangeAudienceValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION}, {@code false} otherwise. + */ + public boolean isSharedLinkSettingsChangeExpiration() { + return this._tag == Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION}. + * + *

(sharing) Changed the expiration date of the shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsChangeExpiration(SharedLinkSettingsChangeExpirationType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsChangeExpiration(Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION, value); + } + + /** + * (sharing) Changed the expiration date of the shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_EXPIRATION}.

+ * + * @return The {@link SharedLinkSettingsChangeExpirationType} value + * associated with this instance if {@link + * #isSharedLinkSettingsChangeExpiration} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsChangeExpiration} is {@code false}. + */ + public SharedLinkSettingsChangeExpirationType getSharedLinkSettingsChangeExpirationValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsChangeExpirationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD}, {@code false} otherwise. + */ + public boolean isSharedLinkSettingsChangePassword() { + return this._tag == Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD}. + * + *

(sharing) Changed the password of the shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsChangePassword(SharedLinkSettingsChangePasswordType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsChangePassword(Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD, value); + } + + /** + * (sharing) Changed the password of the shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_CHANGE_PASSWORD}.

+ * + * @return The {@link SharedLinkSettingsChangePasswordType} value associated + * with this instance if {@link #isSharedLinkSettingsChangePassword} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsChangePassword} is {@code false}. + */ + public SharedLinkSettingsChangePasswordType getSharedLinkSettingsChangePasswordValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_CHANGE_PASSWORD, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsChangePasswordValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION}, {@code false} otherwise. + */ + public boolean isSharedLinkSettingsRemoveExpiration() { + return this._tag == Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION}. + * + *

(sharing) Removed the expiration date from the shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsRemoveExpiration(SharedLinkSettingsRemoveExpirationType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsRemoveExpiration(Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION, value); + } + + /** + * (sharing) Removed the expiration date from the shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_EXPIRATION}.

+ * + * @return The {@link SharedLinkSettingsRemoveExpirationType} value + * associated with this instance if {@link + * #isSharedLinkSettingsRemoveExpiration} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsRemoveExpiration} is {@code false}. + */ + public SharedLinkSettingsRemoveExpirationType getSharedLinkSettingsRemoveExpirationValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsRemoveExpirationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD}, {@code false} otherwise. + */ + public boolean isSharedLinkSettingsRemovePassword() { + return this._tag == Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD}. + * + *

(sharing) Removed the password from the shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkSettingsRemovePassword(SharedLinkSettingsRemovePasswordType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkSettingsRemovePassword(Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD, value); + } + + /** + * (sharing) Removed the password from the shared link + * + *

This instance must be tagged as {@link + * Tag#SHARED_LINK_SETTINGS_REMOVE_PASSWORD}.

+ * + * @return The {@link SharedLinkSettingsRemovePasswordType} value associated + * with this instance if {@link #isSharedLinkSettingsRemovePassword} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharedLinkSettingsRemovePassword} is {@code false}. + */ + public SharedLinkSettingsRemovePasswordType getSharedLinkSettingsRemovePasswordValue() { + if (this._tag != Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SETTINGS_REMOVE_PASSWORD, but was Tag." + this._tag.name()); + } + return sharedLinkSettingsRemovePasswordValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_SHARE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_SHARE}, {@code false} otherwise. + */ + public boolean isSharedLinkShare() { + return this._tag == Tag.SHARED_LINK_SHARE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_SHARE}. + * + *

(sharing) Added members as audience of shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_SHARE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkShare(SharedLinkShareType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkShare(Tag.SHARED_LINK_SHARE, value); + } + + /** + * (sharing) Added members as audience of shared link + * + *

This instance must be tagged as {@link Tag#SHARED_LINK_SHARE}.

+ * + * @return The {@link SharedLinkShareType} value associated with this + * instance if {@link #isSharedLinkShare} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkShare} is {@code + * false}. + */ + public SharedLinkShareType getSharedLinkShareValue() { + if (this._tag != Tag.SHARED_LINK_SHARE) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_SHARE, but was Tag." + this._tag.name()); + } + return sharedLinkShareValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_LINK_VIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_LINK_VIEW}, {@code false} otherwise. + */ + public boolean isSharedLinkView() { + return this._tag == Tag.SHARED_LINK_VIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_LINK_VIEW}. + * + *

(sharing) Opened shared link

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_LINK_VIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedLinkView(SharedLinkViewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedLinkView(Tag.SHARED_LINK_VIEW, value); + } + + /** + * (sharing) Opened shared link + * + *

This instance must be tagged as {@link Tag#SHARED_LINK_VIEW}.

+ * + * @return The {@link SharedLinkViewType} value associated with this + * instance if {@link #isSharedLinkView} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedLinkView} is {@code + * false}. + */ + public SharedLinkViewType getSharedLinkViewValue() { + if (this._tag != Tag.SHARED_LINK_VIEW) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_LINK_VIEW, but was Tag." + this._tag.name()); + } + return sharedLinkViewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARED_NOTE_OPENED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARED_NOTE_OPENED}, {@code false} otherwise. + */ + public boolean isSharedNoteOpened() { + return this._tag == Tag.SHARED_NOTE_OPENED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARED_NOTE_OPENED}. + * + *

(sharing) Opened shared Paper doc (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARED_NOTE_OPENED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharedNoteOpened(SharedNoteOpenedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharedNoteOpened(Tag.SHARED_NOTE_OPENED, value); + } + + /** + * (sharing) Opened shared Paper doc (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#SHARED_NOTE_OPENED}.

+ * + * @return The {@link SharedNoteOpenedType} value associated with this + * instance if {@link #isSharedNoteOpened} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharedNoteOpened} is {@code + * false}. + */ + public SharedNoteOpenedType getSharedNoteOpenedValue() { + if (this._tag != Tag.SHARED_NOTE_OPENED) { + throw new IllegalStateException("Invalid tag: required Tag.SHARED_NOTE_OPENED, but was Tag." + this._tag.name()); + } + return sharedNoteOpenedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS}, {@code false} otherwise. + */ + public boolean isShmodelDisableDownloads() { + return this._tag == Tag.SHMODEL_DISABLE_DOWNLOADS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS}. + * + *

(sharing) Disabled downloads for link (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType shmodelDisableDownloads(ShmodelDisableDownloadsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShmodelDisableDownloads(Tag.SHMODEL_DISABLE_DOWNLOADS, value); + } + + /** + * (sharing) Disabled downloads for link (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#SHMODEL_DISABLE_DOWNLOADS}.

+ * + * @return The {@link ShmodelDisableDownloadsType} value associated with + * this instance if {@link #isShmodelDisableDownloads} is {@code true}. + * + * @throws IllegalStateException If {@link #isShmodelDisableDownloads} is + * {@code false}. + */ + public ShmodelDisableDownloadsType getShmodelDisableDownloadsValue() { + if (this._tag != Tag.SHMODEL_DISABLE_DOWNLOADS) { + throw new IllegalStateException("Invalid tag: required Tag.SHMODEL_DISABLE_DOWNLOADS, but was Tag." + this._tag.name()); + } + return shmodelDisableDownloadsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS}, {@code false} otherwise. + */ + public boolean isShmodelEnableDownloads() { + return this._tag == Tag.SHMODEL_ENABLE_DOWNLOADS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS}. + * + *

(sharing) Enabled downloads for link (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHMODEL_ENABLE_DOWNLOADS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType shmodelEnableDownloads(ShmodelEnableDownloadsType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShmodelEnableDownloads(Tag.SHMODEL_ENABLE_DOWNLOADS, value); + } + + /** + * (sharing) Enabled downloads for link (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#SHMODEL_ENABLE_DOWNLOADS}. + *

+ * + * @return The {@link ShmodelEnableDownloadsType} value associated with this + * instance if {@link #isShmodelEnableDownloads} is {@code true}. + * + * @throws IllegalStateException If {@link #isShmodelEnableDownloads} is + * {@code false}. + */ + public ShmodelEnableDownloadsType getShmodelEnableDownloadsValue() { + if (this._tag != Tag.SHMODEL_ENABLE_DOWNLOADS) { + throw new IllegalStateException("Invalid tag: required Tag.SHMODEL_ENABLE_DOWNLOADS, but was Tag." + this._tag.name()); + } + return shmodelEnableDownloadsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHMODEL_GROUP_SHARE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHMODEL_GROUP_SHARE}, {@code false} otherwise. + */ + public boolean isShmodelGroupShare() { + return this._tag == Tag.SHMODEL_GROUP_SHARE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHMODEL_GROUP_SHARE}. + * + *

(sharing) Shared link with group (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHMODEL_GROUP_SHARE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType shmodelGroupShare(ShmodelGroupShareType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShmodelGroupShare(Tag.SHMODEL_GROUP_SHARE, value); + } + + /** + * (sharing) Shared link with group (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#SHMODEL_GROUP_SHARE}.

+ * + * @return The {@link ShmodelGroupShareType} value associated with this + * instance if {@link #isShmodelGroupShare} is {@code true}. + * + * @throws IllegalStateException If {@link #isShmodelGroupShare} is {@code + * false}. + */ + public ShmodelGroupShareType getShmodelGroupShareValue() { + if (this._tag != Tag.SHMODEL_GROUP_SHARE) { + throw new IllegalStateException("Invalid tag: required Tag.SHMODEL_GROUP_SHARE, but was Tag." + this._tag.name()); + } + return shmodelGroupShareValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_ACCESS_GRANTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_ACCESS_GRANTED}, {@code false} otherwise. + */ + public boolean isShowcaseAccessGranted() { + return this._tag == Tag.SHOWCASE_ACCESS_GRANTED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_ACCESS_GRANTED}. + * + *

(showcase) Granted access to showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_ACCESS_GRANTED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseAccessGranted(ShowcaseAccessGrantedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseAccessGranted(Tag.SHOWCASE_ACCESS_GRANTED, value); + } + + /** + * (showcase) Granted access to showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_ACCESS_GRANTED}. + *

+ * + * @return The {@link ShowcaseAccessGrantedType} value associated with this + * instance if {@link #isShowcaseAccessGranted} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseAccessGranted} is + * {@code false}. + */ + public ShowcaseAccessGrantedType getShowcaseAccessGrantedValue() { + if (this._tag != Tag.SHOWCASE_ACCESS_GRANTED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_ACCESS_GRANTED, but was Tag." + this._tag.name()); + } + return showcaseAccessGrantedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_ADD_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_ADD_MEMBER}, {@code false} otherwise. + */ + public boolean isShowcaseAddMember() { + return this._tag == Tag.SHOWCASE_ADD_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_ADD_MEMBER}. + * + *

(showcase) Added member to showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_ADD_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseAddMember(ShowcaseAddMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseAddMember(Tag.SHOWCASE_ADD_MEMBER, value); + } + + /** + * (showcase) Added member to showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_ADD_MEMBER}.

+ * + * @return The {@link ShowcaseAddMemberType} value associated with this + * instance if {@link #isShowcaseAddMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseAddMember} is {@code + * false}. + */ + public ShowcaseAddMemberType getShowcaseAddMemberValue() { + if (this._tag != Tag.SHOWCASE_ADD_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_ADD_MEMBER, but was Tag." + this._tag.name()); + } + return showcaseAddMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_ARCHIVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_ARCHIVED}, {@code false} otherwise. + */ + public boolean isShowcaseArchived() { + return this._tag == Tag.SHOWCASE_ARCHIVED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_ARCHIVED}. + * + *

(showcase) Archived showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_ARCHIVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseArchived(ShowcaseArchivedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseArchived(Tag.SHOWCASE_ARCHIVED, value); + } + + /** + * (showcase) Archived showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_ARCHIVED}.

+ * + * @return The {@link ShowcaseArchivedType} value associated with this + * instance if {@link #isShowcaseArchived} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseArchived} is {@code + * false}. + */ + public ShowcaseArchivedType getShowcaseArchivedValue() { + if (this._tag != Tag.SHOWCASE_ARCHIVED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_ARCHIVED, but was Tag." + this._tag.name()); + } + return showcaseArchivedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CREATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CREATED}, {@code false} otherwise. + */ + public boolean isShowcaseCreated() { + return this._tag == Tag.SHOWCASE_CREATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_CREATED}. + * + *

(showcase) Created showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_CREATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseCreated(ShowcaseCreatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseCreated(Tag.SHOWCASE_CREATED, value); + } + + /** + * (showcase) Created showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_CREATED}.

+ * + * @return The {@link ShowcaseCreatedType} value associated with this + * instance if {@link #isShowcaseCreated} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseCreated} is {@code + * false}. + */ + public ShowcaseCreatedType getShowcaseCreatedValue() { + if (this._tag != Tag.SHOWCASE_CREATED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CREATED, but was Tag." + this._tag.name()); + } + return showcaseCreatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_DELETE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_DELETE_COMMENT}, {@code false} otherwise. + */ + public boolean isShowcaseDeleteComment() { + return this._tag == Tag.SHOWCASE_DELETE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_DELETE_COMMENT}. + * + *

(showcase) Deleted showcase comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_DELETE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseDeleteComment(ShowcaseDeleteCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseDeleteComment(Tag.SHOWCASE_DELETE_COMMENT, value); + } + + /** + * (showcase) Deleted showcase comment + * + *

This instance must be tagged as {@link Tag#SHOWCASE_DELETE_COMMENT}. + *

+ * + * @return The {@link ShowcaseDeleteCommentType} value associated with this + * instance if {@link #isShowcaseDeleteComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseDeleteComment} is + * {@code false}. + */ + public ShowcaseDeleteCommentType getShowcaseDeleteCommentValue() { + if (this._tag != Tag.SHOWCASE_DELETE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_DELETE_COMMENT, but was Tag." + this._tag.name()); + } + return showcaseDeleteCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_EDITED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_EDITED}, {@code false} otherwise. + */ + public boolean isShowcaseEdited() { + return this._tag == Tag.SHOWCASE_EDITED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_EDITED}. + * + *

(showcase) Edited showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_EDITED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseEdited(ShowcaseEditedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseEdited(Tag.SHOWCASE_EDITED, value); + } + + /** + * (showcase) Edited showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_EDITED}.

+ * + * @return The {@link ShowcaseEditedType} value associated with this + * instance if {@link #isShowcaseEdited} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseEdited} is {@code + * false}. + */ + public ShowcaseEditedType getShowcaseEditedValue() { + if (this._tag != Tag.SHOWCASE_EDITED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_EDITED, but was Tag." + this._tag.name()); + } + return showcaseEditedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_EDIT_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_EDIT_COMMENT}, {@code false} otherwise. + */ + public boolean isShowcaseEditComment() { + return this._tag == Tag.SHOWCASE_EDIT_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_EDIT_COMMENT}. + * + *

(showcase) Edited showcase comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_EDIT_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseEditComment(ShowcaseEditCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseEditComment(Tag.SHOWCASE_EDIT_COMMENT, value); + } + + /** + * (showcase) Edited showcase comment + * + *

This instance must be tagged as {@link Tag#SHOWCASE_EDIT_COMMENT}. + *

+ * + * @return The {@link ShowcaseEditCommentType} value associated with this + * instance if {@link #isShowcaseEditComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseEditComment} is + * {@code false}. + */ + public ShowcaseEditCommentType getShowcaseEditCommentValue() { + if (this._tag != Tag.SHOWCASE_EDIT_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_EDIT_COMMENT, but was Tag." + this._tag.name()); + } + return showcaseEditCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_ADDED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_ADDED}, {@code false} otherwise. + */ + public boolean isShowcaseFileAdded() { + return this._tag == Tag.SHOWCASE_FILE_ADDED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_FILE_ADDED}. + * + *

(showcase) Added file to showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_FILE_ADDED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseFileAdded(ShowcaseFileAddedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseFileAdded(Tag.SHOWCASE_FILE_ADDED, value); + } + + /** + * (showcase) Added file to showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_FILE_ADDED}.

+ * + * @return The {@link ShowcaseFileAddedType} value associated with this + * instance if {@link #isShowcaseFileAdded} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileAdded} is {@code + * false}. + */ + public ShowcaseFileAddedType getShowcaseFileAddedValue() { + if (this._tag != Tag.SHOWCASE_FILE_ADDED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_ADDED, but was Tag." + this._tag.name()); + } + return showcaseFileAddedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_DOWNLOAD}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_DOWNLOAD}, {@code false} otherwise. + */ + public boolean isShowcaseFileDownload() { + return this._tag == Tag.SHOWCASE_FILE_DOWNLOAD; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_FILE_DOWNLOAD}. + * + *

(showcase) Downloaded file from showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_FILE_DOWNLOAD}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseFileDownload(ShowcaseFileDownloadType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseFileDownload(Tag.SHOWCASE_FILE_DOWNLOAD, value); + } + + /** + * (showcase) Downloaded file from showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_FILE_DOWNLOAD}. + *

+ * + * @return The {@link ShowcaseFileDownloadType} value associated with this + * instance if {@link #isShowcaseFileDownload} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileDownload} is + * {@code false}. + */ + public ShowcaseFileDownloadType getShowcaseFileDownloadValue() { + if (this._tag != Tag.SHOWCASE_FILE_DOWNLOAD) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_DOWNLOAD, but was Tag." + this._tag.name()); + } + return showcaseFileDownloadValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_REMOVED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_REMOVED}, {@code false} otherwise. + */ + public boolean isShowcaseFileRemoved() { + return this._tag == Tag.SHOWCASE_FILE_REMOVED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_FILE_REMOVED}. + * + *

(showcase) Removed file from showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_FILE_REMOVED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseFileRemoved(ShowcaseFileRemovedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseFileRemoved(Tag.SHOWCASE_FILE_REMOVED, value); + } + + /** + * (showcase) Removed file from showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_FILE_REMOVED}. + *

+ * + * @return The {@link ShowcaseFileRemovedType} value associated with this + * instance if {@link #isShowcaseFileRemoved} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileRemoved} is + * {@code false}. + */ + public ShowcaseFileRemovedType getShowcaseFileRemovedValue() { + if (this._tag != Tag.SHOWCASE_FILE_REMOVED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_REMOVED, but was Tag." + this._tag.name()); + } + return showcaseFileRemovedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_FILE_VIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_FILE_VIEW}, {@code false} otherwise. + */ + public boolean isShowcaseFileView() { + return this._tag == Tag.SHOWCASE_FILE_VIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_FILE_VIEW}. + * + *

(showcase) Viewed file in showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_FILE_VIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseFileView(ShowcaseFileViewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseFileView(Tag.SHOWCASE_FILE_VIEW, value); + } + + /** + * (showcase) Viewed file in showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_FILE_VIEW}.

+ * + * @return The {@link ShowcaseFileViewType} value associated with this + * instance if {@link #isShowcaseFileView} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseFileView} is {@code + * false}. + */ + public ShowcaseFileViewType getShowcaseFileViewValue() { + if (this._tag != Tag.SHOWCASE_FILE_VIEW) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_FILE_VIEW, but was Tag." + this._tag.name()); + } + return showcaseFileViewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED}, {@code false} otherwise. + */ + public boolean isShowcasePermanentlyDeleted() { + return this._tag == Tag.SHOWCASE_PERMANENTLY_DELETED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED}. + * + *

(showcase) Permanently deleted showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcasePermanentlyDeleted(ShowcasePermanentlyDeletedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcasePermanentlyDeleted(Tag.SHOWCASE_PERMANENTLY_DELETED, value); + } + + /** + * (showcase) Permanently deleted showcase + * + *

This instance must be tagged as {@link + * Tag#SHOWCASE_PERMANENTLY_DELETED}.

+ * + * @return The {@link ShowcasePermanentlyDeletedType} value associated with + * this instance if {@link #isShowcasePermanentlyDeleted} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcasePermanentlyDeleted} + * is {@code false}. + */ + public ShowcasePermanentlyDeletedType getShowcasePermanentlyDeletedValue() { + if (this._tag != Tag.SHOWCASE_PERMANENTLY_DELETED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_PERMANENTLY_DELETED, but was Tag." + this._tag.name()); + } + return showcasePermanentlyDeletedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_POST_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_POST_COMMENT}, {@code false} otherwise. + */ + public boolean isShowcasePostComment() { + return this._tag == Tag.SHOWCASE_POST_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_POST_COMMENT}. + * + *

(showcase) Added showcase comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_POST_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcasePostComment(ShowcasePostCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcasePostComment(Tag.SHOWCASE_POST_COMMENT, value); + } + + /** + * (showcase) Added showcase comment + * + *

This instance must be tagged as {@link Tag#SHOWCASE_POST_COMMENT}. + *

+ * + * @return The {@link ShowcasePostCommentType} value associated with this + * instance if {@link #isShowcasePostComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcasePostComment} is + * {@code false}. + */ + public ShowcasePostCommentType getShowcasePostCommentValue() { + if (this._tag != Tag.SHOWCASE_POST_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_POST_COMMENT, but was Tag." + this._tag.name()); + } + return showcasePostCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_REMOVE_MEMBER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_REMOVE_MEMBER}, {@code false} otherwise. + */ + public boolean isShowcaseRemoveMember() { + return this._tag == Tag.SHOWCASE_REMOVE_MEMBER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_REMOVE_MEMBER}. + * + *

(showcase) Removed member from showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_REMOVE_MEMBER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseRemoveMember(ShowcaseRemoveMemberType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseRemoveMember(Tag.SHOWCASE_REMOVE_MEMBER, value); + } + + /** + * (showcase) Removed member from showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_REMOVE_MEMBER}. + *

+ * + * @return The {@link ShowcaseRemoveMemberType} value associated with this + * instance if {@link #isShowcaseRemoveMember} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseRemoveMember} is + * {@code false}. + */ + public ShowcaseRemoveMemberType getShowcaseRemoveMemberValue() { + if (this._tag != Tag.SHOWCASE_REMOVE_MEMBER) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_REMOVE_MEMBER, but was Tag." + this._tag.name()); + } + return showcaseRemoveMemberValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_RENAMED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_RENAMED}, {@code false} otherwise. + */ + public boolean isShowcaseRenamed() { + return this._tag == Tag.SHOWCASE_RENAMED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_RENAMED}. + * + *

(showcase) Renamed showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_RENAMED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseRenamed(ShowcaseRenamedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseRenamed(Tag.SHOWCASE_RENAMED, value); + } + + /** + * (showcase) Renamed showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_RENAMED}.

+ * + * @return The {@link ShowcaseRenamedType} value associated with this + * instance if {@link #isShowcaseRenamed} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseRenamed} is {@code + * false}. + */ + public ShowcaseRenamedType getShowcaseRenamedValue() { + if (this._tag != Tag.SHOWCASE_RENAMED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_RENAMED, but was Tag." + this._tag.name()); + } + return showcaseRenamedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_REQUEST_ACCESS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_REQUEST_ACCESS}, {@code false} otherwise. + */ + public boolean isShowcaseRequestAccess() { + return this._tag == Tag.SHOWCASE_REQUEST_ACCESS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_REQUEST_ACCESS}. + * + *

(showcase) Requested access to showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_REQUEST_ACCESS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseRequestAccess(ShowcaseRequestAccessType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseRequestAccess(Tag.SHOWCASE_REQUEST_ACCESS, value); + } + + /** + * (showcase) Requested access to showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_REQUEST_ACCESS}. + *

+ * + * @return The {@link ShowcaseRequestAccessType} value associated with this + * instance if {@link #isShowcaseRequestAccess} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseRequestAccess} is + * {@code false}. + */ + public ShowcaseRequestAccessType getShowcaseRequestAccessValue() { + if (this._tag != Tag.SHOWCASE_REQUEST_ACCESS) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_REQUEST_ACCESS, but was Tag." + this._tag.name()); + } + return showcaseRequestAccessValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_RESOLVE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_RESOLVE_COMMENT}, {@code false} otherwise. + */ + public boolean isShowcaseResolveComment() { + return this._tag == Tag.SHOWCASE_RESOLVE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_RESOLVE_COMMENT}. + * + *

(showcase) Resolved showcase comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_RESOLVE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseResolveComment(ShowcaseResolveCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseResolveComment(Tag.SHOWCASE_RESOLVE_COMMENT, value); + } + + /** + * (showcase) Resolved showcase comment + * + *

This instance must be tagged as {@link Tag#SHOWCASE_RESOLVE_COMMENT}. + *

+ * + * @return The {@link ShowcaseResolveCommentType} value associated with this + * instance if {@link #isShowcaseResolveComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseResolveComment} is + * {@code false}. + */ + public ShowcaseResolveCommentType getShowcaseResolveCommentValue() { + if (this._tag != Tag.SHOWCASE_RESOLVE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_RESOLVE_COMMENT, but was Tag." + this._tag.name()); + } + return showcaseResolveCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_RESTORED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_RESTORED}, {@code false} otherwise. + */ + public boolean isShowcaseRestored() { + return this._tag == Tag.SHOWCASE_RESTORED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_RESTORED}. + * + *

(showcase) Unarchived showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_RESTORED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseRestored(ShowcaseRestoredType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseRestored(Tag.SHOWCASE_RESTORED, value); + } + + /** + * (showcase) Unarchived showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_RESTORED}.

+ * + * @return The {@link ShowcaseRestoredType} value associated with this + * instance if {@link #isShowcaseRestored} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseRestored} is {@code + * false}. + */ + public ShowcaseRestoredType getShowcaseRestoredValue() { + if (this._tag != Tag.SHOWCASE_RESTORED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_RESTORED, but was Tag." + this._tag.name()); + } + return showcaseRestoredValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_TRASHED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_TRASHED}, {@code false} otherwise. + */ + public boolean isShowcaseTrashed() { + return this._tag == Tag.SHOWCASE_TRASHED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_TRASHED}. + * + *

(showcase) Deleted showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_TRASHED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseTrashed(ShowcaseTrashedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseTrashed(Tag.SHOWCASE_TRASHED, value); + } + + /** + * (showcase) Deleted showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_TRASHED}.

+ * + * @return The {@link ShowcaseTrashedType} value associated with this + * instance if {@link #isShowcaseTrashed} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseTrashed} is {@code + * false}. + */ + public ShowcaseTrashedType getShowcaseTrashedValue() { + if (this._tag != Tag.SHOWCASE_TRASHED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_TRASHED, but was Tag." + this._tag.name()); + } + return showcaseTrashedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED}, {@code false} otherwise. + */ + public boolean isShowcaseTrashedDeprecated() { + return this._tag == Tag.SHOWCASE_TRASHED_DEPRECATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED}. + * + *

(showcase) Deleted showcase (old version) (deprecated, replaced by + * 'Deleted showcase')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseTrashedDeprecated(ShowcaseTrashedDeprecatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseTrashedDeprecated(Tag.SHOWCASE_TRASHED_DEPRECATED, value); + } + + /** + * (showcase) Deleted showcase (old version) (deprecated, replaced by + * 'Deleted showcase') + * + *

This instance must be tagged as {@link + * Tag#SHOWCASE_TRASHED_DEPRECATED}.

+ * + * @return The {@link ShowcaseTrashedDeprecatedType} value associated with + * this instance if {@link #isShowcaseTrashedDeprecated} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseTrashedDeprecated} is + * {@code false}. + */ + public ShowcaseTrashedDeprecatedType getShowcaseTrashedDeprecatedValue() { + if (this._tag != Tag.SHOWCASE_TRASHED_DEPRECATED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_TRASHED_DEPRECATED, but was Tag." + this._tag.name()); + } + return showcaseTrashedDeprecatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT}, {@code false} otherwise. + */ + public boolean isShowcaseUnresolveComment() { + return this._tag == Tag.SHOWCASE_UNRESOLVE_COMMENT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT}. + * + *

(showcase) Unresolved showcase comment

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseUnresolveComment(ShowcaseUnresolveCommentType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseUnresolveComment(Tag.SHOWCASE_UNRESOLVE_COMMENT, value); + } + + /** + * (showcase) Unresolved showcase comment + * + *

This instance must be tagged as {@link + * Tag#SHOWCASE_UNRESOLVE_COMMENT}.

+ * + * @return The {@link ShowcaseUnresolveCommentType} value associated with + * this instance if {@link #isShowcaseUnresolveComment} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseUnresolveComment} is + * {@code false}. + */ + public ShowcaseUnresolveCommentType getShowcaseUnresolveCommentValue() { + if (this._tag != Tag.SHOWCASE_UNRESOLVE_COMMENT) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_UNRESOLVE_COMMENT, but was Tag." + this._tag.name()); + } + return showcaseUnresolveCommentValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_UNTRASHED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_UNTRASHED}, {@code false} otherwise. + */ + public boolean isShowcaseUntrashed() { + return this._tag == Tag.SHOWCASE_UNTRASHED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_UNTRASHED}. + * + *

(showcase) Restored showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_UNTRASHED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseUntrashed(ShowcaseUntrashedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseUntrashed(Tag.SHOWCASE_UNTRASHED, value); + } + + /** + * (showcase) Restored showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_UNTRASHED}.

+ * + * @return The {@link ShowcaseUntrashedType} value associated with this + * instance if {@link #isShowcaseUntrashed} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseUntrashed} is {@code + * false}. + */ + public ShowcaseUntrashedType getShowcaseUntrashedValue() { + if (this._tag != Tag.SHOWCASE_UNTRASHED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_UNTRASHED, but was Tag." + this._tag.name()); + } + return showcaseUntrashedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED}, {@code false} otherwise. + */ + public boolean isShowcaseUntrashedDeprecated() { + return this._tag == Tag.SHOWCASE_UNTRASHED_DEPRECATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED}. + * + *

(showcase) Restored showcase (old version) (deprecated, replaced by + * 'Restored showcase')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseUntrashedDeprecated(ShowcaseUntrashedDeprecatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseUntrashedDeprecated(Tag.SHOWCASE_UNTRASHED_DEPRECATED, value); + } + + /** + * (showcase) Restored showcase (old version) (deprecated, replaced by + * 'Restored showcase') + * + *

This instance must be tagged as {@link + * Tag#SHOWCASE_UNTRASHED_DEPRECATED}.

+ * + * @return The {@link ShowcaseUntrashedDeprecatedType} value associated with + * this instance if {@link #isShowcaseUntrashedDeprecated} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseUntrashedDeprecated} + * is {@code false}. + */ + public ShowcaseUntrashedDeprecatedType getShowcaseUntrashedDeprecatedValue() { + if (this._tag != Tag.SHOWCASE_UNTRASHED_DEPRECATED) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_UNTRASHED_DEPRECATED, but was Tag." + this._tag.name()); + } + return showcaseUntrashedDeprecatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_VIEW}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_VIEW}, {@code false} otherwise. + */ + public boolean isShowcaseView() { + return this._tag == Tag.SHOWCASE_VIEW; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_VIEW}. + * + *

(showcase) Viewed showcase

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_VIEW}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseView(ShowcaseViewType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseView(Tag.SHOWCASE_VIEW, value); + } + + /** + * (showcase) Viewed showcase + * + *

This instance must be tagged as {@link Tag#SHOWCASE_VIEW}.

+ * + * @return The {@link ShowcaseViewType} value associated with this instance + * if {@link #isShowcaseView} is {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseView} is {@code + * false}. + */ + public ShowcaseViewType getShowcaseViewValue() { + if (this._tag != Tag.SHOWCASE_VIEW) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_VIEW, but was Tag." + this._tag.name()); + } + return showcaseViewValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_ADD_CERT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_ADD_CERT}, {@code false} otherwise. + */ + public boolean isSsoAddCert() { + return this._tag == Tag.SSO_ADD_CERT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_ADD_CERT}. + * + *

(sso) Added X.509 certificate for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_ADD_CERT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoAddCert(SsoAddCertType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoAddCert(Tag.SSO_ADD_CERT, value); + } + + /** + * (sso) Added X.509 certificate for SSO + * + *

This instance must be tagged as {@link Tag#SSO_ADD_CERT}.

+ * + * @return The {@link SsoAddCertType} value associated with this instance if + * {@link #isSsoAddCert} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoAddCert} is {@code false}. + */ + public SsoAddCertType getSsoAddCertValue() { + if (this._tag != Tag.SSO_ADD_CERT) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ADD_CERT, but was Tag." + this._tag.name()); + } + return ssoAddCertValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_ADD_LOGIN_URL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_ADD_LOGIN_URL}, {@code false} otherwise. + */ + public boolean isSsoAddLoginUrl() { + return this._tag == Tag.SSO_ADD_LOGIN_URL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_ADD_LOGIN_URL}. + * + *

(sso) Added sign-in URL for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_ADD_LOGIN_URL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoAddLoginUrl(SsoAddLoginUrlType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoAddLoginUrl(Tag.SSO_ADD_LOGIN_URL, value); + } + + /** + * (sso) Added sign-in URL for SSO + * + *

This instance must be tagged as {@link Tag#SSO_ADD_LOGIN_URL}.

+ * + * @return The {@link SsoAddLoginUrlType} value associated with this + * instance if {@link #isSsoAddLoginUrl} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoAddLoginUrl} is {@code + * false}. + */ + public SsoAddLoginUrlType getSsoAddLoginUrlValue() { + if (this._tag != Tag.SSO_ADD_LOGIN_URL) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ADD_LOGIN_URL, but was Tag." + this._tag.name()); + } + return ssoAddLoginUrlValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_ADD_LOGOUT_URL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_ADD_LOGOUT_URL}, {@code false} otherwise. + */ + public boolean isSsoAddLogoutUrl() { + return this._tag == Tag.SSO_ADD_LOGOUT_URL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_ADD_LOGOUT_URL}. + * + *

(sso) Added sign-out URL for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_ADD_LOGOUT_URL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoAddLogoutUrl(SsoAddLogoutUrlType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoAddLogoutUrl(Tag.SSO_ADD_LOGOUT_URL, value); + } + + /** + * (sso) Added sign-out URL for SSO + * + *

This instance must be tagged as {@link Tag#SSO_ADD_LOGOUT_URL}.

+ * + * @return The {@link SsoAddLogoutUrlType} value associated with this + * instance if {@link #isSsoAddLogoutUrl} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoAddLogoutUrl} is {@code + * false}. + */ + public SsoAddLogoutUrlType getSsoAddLogoutUrlValue() { + if (this._tag != Tag.SSO_ADD_LOGOUT_URL) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_ADD_LOGOUT_URL, but was Tag." + this._tag.name()); + } + return ssoAddLogoutUrlValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_CERT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_CERT}, {@code false} otherwise. + */ + public boolean isSsoChangeCert() { + return this._tag == Tag.SSO_CHANGE_CERT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_CHANGE_CERT}. + * + *

(sso) Changed X.509 certificate for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_CHANGE_CERT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoChangeCert(SsoChangeCertType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoChangeCert(Tag.SSO_CHANGE_CERT, value); + } + + /** + * (sso) Changed X.509 certificate for SSO + * + *

This instance must be tagged as {@link Tag#SSO_CHANGE_CERT}.

+ * + * @return The {@link SsoChangeCertType} value associated with this instance + * if {@link #isSsoChangeCert} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangeCert} is {@code + * false}. + */ + public SsoChangeCertType getSsoChangeCertValue() { + if (this._tag != Tag.SSO_CHANGE_CERT) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_CERT, but was Tag." + this._tag.name()); + } + return ssoChangeCertValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_LOGIN_URL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_LOGIN_URL}, {@code false} otherwise. + */ + public boolean isSsoChangeLoginUrl() { + return this._tag == Tag.SSO_CHANGE_LOGIN_URL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_CHANGE_LOGIN_URL}. + * + *

(sso) Changed sign-in URL for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_CHANGE_LOGIN_URL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoChangeLoginUrl(SsoChangeLoginUrlType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoChangeLoginUrl(Tag.SSO_CHANGE_LOGIN_URL, value); + } + + /** + * (sso) Changed sign-in URL for SSO + * + *

This instance must be tagged as {@link Tag#SSO_CHANGE_LOGIN_URL}. + *

+ * + * @return The {@link SsoChangeLoginUrlType} value associated with this + * instance if {@link #isSsoChangeLoginUrl} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangeLoginUrl} is {@code + * false}. + */ + public SsoChangeLoginUrlType getSsoChangeLoginUrlValue() { + if (this._tag != Tag.SSO_CHANGE_LOGIN_URL) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_LOGIN_URL, but was Tag." + this._tag.name()); + } + return ssoChangeLoginUrlValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_LOGOUT_URL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_LOGOUT_URL}, {@code false} otherwise. + */ + public boolean isSsoChangeLogoutUrl() { + return this._tag == Tag.SSO_CHANGE_LOGOUT_URL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_CHANGE_LOGOUT_URL}. + * + *

(sso) Changed sign-out URL for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_CHANGE_LOGOUT_URL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoChangeLogoutUrl(SsoChangeLogoutUrlType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoChangeLogoutUrl(Tag.SSO_CHANGE_LOGOUT_URL, value); + } + + /** + * (sso) Changed sign-out URL for SSO + * + *

This instance must be tagged as {@link Tag#SSO_CHANGE_LOGOUT_URL}. + *

+ * + * @return The {@link SsoChangeLogoutUrlType} value associated with this + * instance if {@link #isSsoChangeLogoutUrl} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangeLogoutUrl} is {@code + * false}. + */ + public SsoChangeLogoutUrlType getSsoChangeLogoutUrlValue() { + if (this._tag != Tag.SSO_CHANGE_LOGOUT_URL) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_LOGOUT_URL, but was Tag." + this._tag.name()); + } + return ssoChangeLogoutUrlValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE}, {@code false} otherwise. + */ + public boolean isSsoChangeSamlIdentityMode() { + return this._tag == Tag.SSO_CHANGE_SAML_IDENTITY_MODE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE}. + * + *

(sso) Changed SAML identity mode for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoChangeSamlIdentityMode(SsoChangeSamlIdentityModeType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoChangeSamlIdentityMode(Tag.SSO_CHANGE_SAML_IDENTITY_MODE, value); + } + + /** + * (sso) Changed SAML identity mode for SSO + * + *

This instance must be tagged as {@link + * Tag#SSO_CHANGE_SAML_IDENTITY_MODE}.

+ * + * @return The {@link SsoChangeSamlIdentityModeType} value associated with + * this instance if {@link #isSsoChangeSamlIdentityMode} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSsoChangeSamlIdentityMode} is + * {@code false}. + */ + public SsoChangeSamlIdentityModeType getSsoChangeSamlIdentityModeValue() { + if (this._tag != Tag.SSO_CHANGE_SAML_IDENTITY_MODE) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_SAML_IDENTITY_MODE, but was Tag." + this._tag.name()); + } + return ssoChangeSamlIdentityModeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_REMOVE_CERT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_REMOVE_CERT}, {@code false} otherwise. + */ + public boolean isSsoRemoveCert() { + return this._tag == Tag.SSO_REMOVE_CERT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_REMOVE_CERT}. + * + *

(sso) Removed X.509 certificate for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_REMOVE_CERT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoRemoveCert(SsoRemoveCertType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoRemoveCert(Tag.SSO_REMOVE_CERT, value); + } + + /** + * (sso) Removed X.509 certificate for SSO + * + *

This instance must be tagged as {@link Tag#SSO_REMOVE_CERT}.

+ * + * @return The {@link SsoRemoveCertType} value associated with this instance + * if {@link #isSsoRemoveCert} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoRemoveCert} is {@code + * false}. + */ + public SsoRemoveCertType getSsoRemoveCertValue() { + if (this._tag != Tag.SSO_REMOVE_CERT) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_REMOVE_CERT, but was Tag." + this._tag.name()); + } + return ssoRemoveCertValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_REMOVE_LOGIN_URL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_REMOVE_LOGIN_URL}, {@code false} otherwise. + */ + public boolean isSsoRemoveLoginUrl() { + return this._tag == Tag.SSO_REMOVE_LOGIN_URL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_REMOVE_LOGIN_URL}. + * + *

(sso) Removed sign-in URL for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_REMOVE_LOGIN_URL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoRemoveLoginUrl(SsoRemoveLoginUrlType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoRemoveLoginUrl(Tag.SSO_REMOVE_LOGIN_URL, value); + } + + /** + * (sso) Removed sign-in URL for SSO + * + *

This instance must be tagged as {@link Tag#SSO_REMOVE_LOGIN_URL}. + *

+ * + * @return The {@link SsoRemoveLoginUrlType} value associated with this + * instance if {@link #isSsoRemoveLoginUrl} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoRemoveLoginUrl} is {@code + * false}. + */ + public SsoRemoveLoginUrlType getSsoRemoveLoginUrlValue() { + if (this._tag != Tag.SSO_REMOVE_LOGIN_URL) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_REMOVE_LOGIN_URL, but was Tag." + this._tag.name()); + } + return ssoRemoveLoginUrlValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_REMOVE_LOGOUT_URL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_REMOVE_LOGOUT_URL}, {@code false} otherwise. + */ + public boolean isSsoRemoveLogoutUrl() { + return this._tag == Tag.SSO_REMOVE_LOGOUT_URL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_REMOVE_LOGOUT_URL}. + * + *

(sso) Removed sign-out URL for SSO

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_REMOVE_LOGOUT_URL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoRemoveLogoutUrl(SsoRemoveLogoutUrlType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoRemoveLogoutUrl(Tag.SSO_REMOVE_LOGOUT_URL, value); + } + + /** + * (sso) Removed sign-out URL for SSO + * + *

This instance must be tagged as {@link Tag#SSO_REMOVE_LOGOUT_URL}. + *

+ * + * @return The {@link SsoRemoveLogoutUrlType} value associated with this + * instance if {@link #isSsoRemoveLogoutUrl} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoRemoveLogoutUrl} is {@code + * false}. + */ + public SsoRemoveLogoutUrlType getSsoRemoveLogoutUrlValue() { + if (this._tag != Tag.SSO_REMOVE_LOGOUT_URL) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_REMOVE_LOGOUT_URL, but was Tag." + this._tag.name()); + } + return ssoRemoveLogoutUrlValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS}, {@code false} otherwise. + */ + public boolean isTeamFolderChangeStatus() { + return this._tag == Tag.TEAM_FOLDER_CHANGE_STATUS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS}. + * + *

(team_folders) Changed archival status of team folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamFolderChangeStatus(TeamFolderChangeStatusType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamFolderChangeStatus(Tag.TEAM_FOLDER_CHANGE_STATUS, value); + } + + /** + * (team_folders) Changed archival status of team folder + * + *

This instance must be tagged as {@link + * Tag#TEAM_FOLDER_CHANGE_STATUS}.

+ * + * @return The {@link TeamFolderChangeStatusType} value associated with this + * instance if {@link #isTeamFolderChangeStatus} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderChangeStatus} is + * {@code false}. + */ + public TeamFolderChangeStatusType getTeamFolderChangeStatusValue() { + if (this._tag != Tag.TEAM_FOLDER_CHANGE_STATUS) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_CHANGE_STATUS, but was Tag." + this._tag.name()); + } + return teamFolderChangeStatusValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_CREATE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_CREATE}, {@code false} otherwise. + */ + public boolean isTeamFolderCreate() { + return this._tag == Tag.TEAM_FOLDER_CREATE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_FOLDER_CREATE}. + * + *

(team_folders) Created team folder in active status

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_FOLDER_CREATE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamFolderCreate(TeamFolderCreateType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamFolderCreate(Tag.TEAM_FOLDER_CREATE, value); + } + + /** + * (team_folders) Created team folder in active status + * + *

This instance must be tagged as {@link Tag#TEAM_FOLDER_CREATE}.

+ * + * @return The {@link TeamFolderCreateType} value associated with this + * instance if {@link #isTeamFolderCreate} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderCreate} is {@code + * false}. + */ + public TeamFolderCreateType getTeamFolderCreateValue() { + if (this._tag != Tag.TEAM_FOLDER_CREATE) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_CREATE, but was Tag." + this._tag.name()); + } + return teamFolderCreateValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_DOWNGRADE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_DOWNGRADE}, {@code false} otherwise. + */ + public boolean isTeamFolderDowngrade() { + return this._tag == Tag.TEAM_FOLDER_DOWNGRADE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_FOLDER_DOWNGRADE}. + * + *

(team_folders) Downgraded team folder to regular shared folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_FOLDER_DOWNGRADE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamFolderDowngrade(TeamFolderDowngradeType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamFolderDowngrade(Tag.TEAM_FOLDER_DOWNGRADE, value); + } + + /** + * (team_folders) Downgraded team folder to regular shared folder + * + *

This instance must be tagged as {@link Tag#TEAM_FOLDER_DOWNGRADE}. + *

+ * + * @return The {@link TeamFolderDowngradeType} value associated with this + * instance if {@link #isTeamFolderDowngrade} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderDowngrade} is + * {@code false}. + */ + public TeamFolderDowngradeType getTeamFolderDowngradeValue() { + if (this._tag != Tag.TEAM_FOLDER_DOWNGRADE) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_DOWNGRADE, but was Tag." + this._tag.name()); + } + return teamFolderDowngradeValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE}, {@code false} otherwise. + */ + public boolean isTeamFolderPermanentlyDelete() { + return this._tag == Tag.TEAM_FOLDER_PERMANENTLY_DELETE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE}. + * + *

(team_folders) Permanently deleted archived team folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamFolderPermanentlyDelete(TeamFolderPermanentlyDeleteType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamFolderPermanentlyDelete(Tag.TEAM_FOLDER_PERMANENTLY_DELETE, value); + } + + /** + * (team_folders) Permanently deleted archived team folder + * + *

This instance must be tagged as {@link + * Tag#TEAM_FOLDER_PERMANENTLY_DELETE}.

+ * + * @return The {@link TeamFolderPermanentlyDeleteType} value associated with + * this instance if {@link #isTeamFolderPermanentlyDelete} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamFolderPermanentlyDelete} + * is {@code false}. + */ + public TeamFolderPermanentlyDeleteType getTeamFolderPermanentlyDeleteValue() { + if (this._tag != Tag.TEAM_FOLDER_PERMANENTLY_DELETE) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_PERMANENTLY_DELETE, but was Tag." + this._tag.name()); + } + return teamFolderPermanentlyDeleteValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_FOLDER_RENAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_FOLDER_RENAME}, {@code false} otherwise. + */ + public boolean isTeamFolderRename() { + return this._tag == Tag.TEAM_FOLDER_RENAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_FOLDER_RENAME}. + * + *

(team_folders) Renamed active/archived team folder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_FOLDER_RENAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamFolderRename(TeamFolderRenameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamFolderRename(Tag.TEAM_FOLDER_RENAME, value); + } + + /** + * (team_folders) Renamed active/archived team folder + * + *

This instance must be tagged as {@link Tag#TEAM_FOLDER_RENAME}.

+ * + * @return The {@link TeamFolderRenameType} value associated with this + * instance if {@link #isTeamFolderRename} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamFolderRename} is {@code + * false}. + */ + public TeamFolderRenameType getTeamFolderRenameValue() { + if (this._tag != Tag.TEAM_FOLDER_RENAME) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_FOLDER_RENAME, but was Tag." + this._tag.name()); + } + return teamFolderRenameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED}, {@code false} otherwise. + */ + public boolean isTeamSelectiveSyncSettingsChanged() { + return this._tag == Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED}. + * + *

(team_folders) Changed sync default

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamSelectiveSyncSettingsChanged(TeamSelectiveSyncSettingsChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamSelectiveSyncSettingsChanged(Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED, value); + } + + /** + * (team_folders) Changed sync default + * + *

This instance must be tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED}.

+ * + * @return The {@link TeamSelectiveSyncSettingsChangedType} value associated + * with this instance if {@link #isTeamSelectiveSyncSettingsChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamSelectiveSyncSettingsChanged} is {@code false}. + */ + public TeamSelectiveSyncSettingsChangedType getTeamSelectiveSyncSettingsChangedValue() { + if (this._tag != Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED, but was Tag." + this._tag.name()); + } + return teamSelectiveSyncSettingsChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isAccountCaptureChangePolicy() { + return this._tag == Tag.ACCOUNT_CAPTURE_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY}. + * + *

(team_policies) Changed account capture setting on team domain

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType accountCaptureChangePolicy(AccountCaptureChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAccountCaptureChangePolicy(Tag.ACCOUNT_CAPTURE_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed account capture setting on team domain + * + *

This instance must be tagged as {@link + * Tag#ACCOUNT_CAPTURE_CHANGE_POLICY}.

+ * + * @return The {@link AccountCaptureChangePolicyType} value associated with + * this instance if {@link #isAccountCaptureChangePolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isAccountCaptureChangePolicy} + * is {@code false}. + */ + public AccountCaptureChangePolicyType getAccountCaptureChangePolicyValue() { + if (this._tag != Tag.ACCOUNT_CAPTURE_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.ACCOUNT_CAPTURE_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return accountCaptureChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED}, {@code false} otherwise. + */ + public boolean isAdminEmailRemindersChanged() { + return this._tag == Tag.ADMIN_EMAIL_REMINDERS_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED}. + * + *

(team_policies) Changed admin reminder settings for requests to join + * the team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType adminEmailRemindersChanged(AdminEmailRemindersChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAdminEmailRemindersChanged(Tag.ADMIN_EMAIL_REMINDERS_CHANGED, value); + } + + /** + * (team_policies) Changed admin reminder settings for requests to join the + * team + * + *

This instance must be tagged as {@link + * Tag#ADMIN_EMAIL_REMINDERS_CHANGED}.

+ * + * @return The {@link AdminEmailRemindersChangedType} value associated with + * this instance if {@link #isAdminEmailRemindersChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isAdminEmailRemindersChanged} + * is {@code false}. + */ + public AdminEmailRemindersChangedType getAdminEmailRemindersChangedValue() { + if (this._tag != Tag.ADMIN_EMAIL_REMINDERS_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.ADMIN_EMAIL_REMINDERS_CHANGED, but was Tag." + this._tag.name()); + } + return adminEmailRemindersChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALLOW_DOWNLOAD_DISABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALLOW_DOWNLOAD_DISABLED}, {@code false} otherwise. + */ + public boolean isAllowDownloadDisabled() { + return this._tag == Tag.ALLOW_DOWNLOAD_DISABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ALLOW_DOWNLOAD_DISABLED}. + * + *

(team_policies) Disabled downloads (deprecated, no longer logged) + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ALLOW_DOWNLOAD_DISABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType allowDownloadDisabled(AllowDownloadDisabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAllowDownloadDisabled(Tag.ALLOW_DOWNLOAD_DISABLED, value); + } + + /** + * (team_policies) Disabled downloads (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#ALLOW_DOWNLOAD_DISABLED}. + *

+ * + * @return The {@link AllowDownloadDisabledType} value associated with this + * instance if {@link #isAllowDownloadDisabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isAllowDownloadDisabled} is + * {@code false}. + */ + public AllowDownloadDisabledType getAllowDownloadDisabledValue() { + if (this._tag != Tag.ALLOW_DOWNLOAD_DISABLED) { + throw new IllegalStateException("Invalid tag: required Tag.ALLOW_DOWNLOAD_DISABLED, but was Tag." + this._tag.name()); + } + return allowDownloadDisabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ALLOW_DOWNLOAD_ENABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ALLOW_DOWNLOAD_ENABLED}, {@code false} otherwise. + */ + public boolean isAllowDownloadEnabled() { + return this._tag == Tag.ALLOW_DOWNLOAD_ENABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ALLOW_DOWNLOAD_ENABLED}. + * + *

(team_policies) Enabled downloads (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ALLOW_DOWNLOAD_ENABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType allowDownloadEnabled(AllowDownloadEnabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAllowDownloadEnabled(Tag.ALLOW_DOWNLOAD_ENABLED, value); + } + + /** + * (team_policies) Enabled downloads (deprecated, no longer logged) + * + *

This instance must be tagged as {@link Tag#ALLOW_DOWNLOAD_ENABLED}. + *

+ * + * @return The {@link AllowDownloadEnabledType} value associated with this + * instance if {@link #isAllowDownloadEnabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isAllowDownloadEnabled} is + * {@code false}. + */ + public AllowDownloadEnabledType getAllowDownloadEnabledValue() { + if (this._tag != Tag.ALLOW_DOWNLOAD_ENABLED) { + throw new IllegalStateException("Invalid tag: required Tag.ALLOW_DOWNLOAD_ENABLED, but was Tag." + this._tag.name()); + } + return allowDownloadEnabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#APP_PERMISSIONS_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#APP_PERMISSIONS_CHANGED}, {@code false} otherwise. + */ + public boolean isAppPermissionsChanged() { + return this._tag == Tag.APP_PERMISSIONS_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#APP_PERMISSIONS_CHANGED}. + * + *

(team_policies) Changed app permissions

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#APP_PERMISSIONS_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType appPermissionsChanged(AppPermissionsChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndAppPermissionsChanged(Tag.APP_PERMISSIONS_CHANGED, value); + } + + /** + * (team_policies) Changed app permissions + * + *

This instance must be tagged as {@link Tag#APP_PERMISSIONS_CHANGED}. + *

+ * + * @return The {@link AppPermissionsChangedType} value associated with this + * instance if {@link #isAppPermissionsChanged} is {@code true}. + * + * @throws IllegalStateException If {@link #isAppPermissionsChanged} is + * {@code false}. + */ + public AppPermissionsChangedType getAppPermissionsChangedValue() { + if (this._tag != Tag.APP_PERMISSIONS_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.APP_PERMISSIONS_CHANGED, but was Tag." + this._tag.name()); + } + return appPermissionsChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isCameraUploadsPolicyChanged() { + return this._tag == Tag.CAMERA_UPLOADS_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED}. + * + *

(team_policies) Changed camera uploads setting for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType cameraUploadsPolicyChanged(CameraUploadsPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndCameraUploadsPolicyChanged(Tag.CAMERA_UPLOADS_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed camera uploads setting for team + * + *

This instance must be tagged as {@link + * Tag#CAMERA_UPLOADS_POLICY_CHANGED}.

+ * + * @return The {@link CameraUploadsPolicyChangedType} value associated with + * this instance if {@link #isCameraUploadsPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isCameraUploadsPolicyChanged} + * is {@code false}. + */ + public CameraUploadsPolicyChangedType getCameraUploadsPolicyChangedValue() { + if (this._tag != Tag.CAMERA_UPLOADS_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.CAMERA_UPLOADS_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return cameraUploadsPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isCaptureTranscriptPolicyChanged() { + return this._tag == Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED}. + * + *

(team_policies) Changed Capture transcription policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType captureTranscriptPolicyChanged(CaptureTranscriptPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndCaptureTranscriptPolicyChanged(Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed Capture transcription policy for team + * + *

This instance must be tagged as {@link + * Tag#CAPTURE_TRANSCRIPT_POLICY_CHANGED}.

+ * + * @return The {@link CaptureTranscriptPolicyChangedType} value associated + * with this instance if {@link #isCaptureTranscriptPolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isCaptureTranscriptPolicyChanged} is {@code false}. + */ + public CaptureTranscriptPolicyChangedType getCaptureTranscriptPolicyChangedValue() { + if (this._tag != Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.CAPTURE_TRANSCRIPT_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return captureTranscriptPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CLASSIFICATION_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CLASSIFICATION_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isClassificationChangePolicy() { + return this._tag == Tag.CLASSIFICATION_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CLASSIFICATION_CHANGE_POLICY}. + * + *

(team_policies) Changed classification policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CLASSIFICATION_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType classificationChangePolicy(ClassificationChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndClassificationChangePolicy(Tag.CLASSIFICATION_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed classification policy for team + * + *

This instance must be tagged as {@link + * Tag#CLASSIFICATION_CHANGE_POLICY}.

+ * + * @return The {@link ClassificationChangePolicyType} value associated with + * this instance if {@link #isClassificationChangePolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isClassificationChangePolicy} + * is {@code false}. + */ + public ClassificationChangePolicyType getClassificationChangePolicyValue() { + if (this._tag != Tag.CLASSIFICATION_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.CLASSIFICATION_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return classificationChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isComputerBackupPolicyChanged() { + return this._tag == Tag.COMPUTER_BACKUP_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED}. + * + *

(team_policies) Changed computer backup policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType computerBackupPolicyChanged(ComputerBackupPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndComputerBackupPolicyChanged(Tag.COMPUTER_BACKUP_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed computer backup policy for team + * + *

This instance must be tagged as {@link + * Tag#COMPUTER_BACKUP_POLICY_CHANGED}.

+ * + * @return The {@link ComputerBackupPolicyChangedType} value associated with + * this instance if {@link #isComputerBackupPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isComputerBackupPolicyChanged} + * is {@code false}. + */ + public ComputerBackupPolicyChangedType getComputerBackupPolicyChangedValue() { + if (this._tag != Tag.COMPUTER_BACKUP_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.COMPUTER_BACKUP_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return computerBackupPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isContentAdministrationPolicyChanged() { + return this._tag == Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED}. + * + *

(team_policies) Changed content management setting

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType contentAdministrationPolicyChanged(ContentAdministrationPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndContentAdministrationPolicyChanged(Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed content management setting + * + *

This instance must be tagged as {@link + * Tag#CONTENT_ADMINISTRATION_POLICY_CHANGED}.

+ * + * @return The {@link ContentAdministrationPolicyChangedType} value + * associated with this instance if {@link + * #isContentAdministrationPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isContentAdministrationPolicyChanged} is {@code false}. + */ + public ContentAdministrationPolicyChangedType getContentAdministrationPolicyChangedValue() { + if (this._tag != Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.CONTENT_ADMINISTRATION_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return contentAdministrationPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY}, {@code false} + * otherwise. + */ + public boolean isDataPlacementRestrictionChangePolicy() { + return this._tag == Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY}. + * + *

(team_policies) Set restrictions on data center locations where team + * data resides

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType dataPlacementRestrictionChangePolicy(DataPlacementRestrictionChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDataPlacementRestrictionChangePolicy(Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY, value); + } + + /** + * (team_policies) Set restrictions on data center locations where team data + * resides + * + *

This instance must be tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY}.

+ * + * @return The {@link DataPlacementRestrictionChangePolicyType} value + * associated with this instance if {@link + * #isDataPlacementRestrictionChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataPlacementRestrictionChangePolicy} is {@code false}. + */ + public DataPlacementRestrictionChangePolicyType getDataPlacementRestrictionChangePolicyValue() { + if (this._tag != Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return dataPlacementRestrictionChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY}, {@code false} + * otherwise. + */ + public boolean isDataPlacementRestrictionSatisfyPolicy() { + return this._tag == Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY}. + * + *

(team_policies) Completed restrictions on data center locations where + * team data resides

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType dataPlacementRestrictionSatisfyPolicy(DataPlacementRestrictionSatisfyPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDataPlacementRestrictionSatisfyPolicy(Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY, value); + } + + /** + * (team_policies) Completed restrictions on data center locations where + * team data resides + * + *

This instance must be tagged as {@link + * Tag#DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY}.

+ * + * @return The {@link DataPlacementRestrictionSatisfyPolicyType} value + * associated with this instance if {@link + * #isDataPlacementRestrictionSatisfyPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataPlacementRestrictionSatisfyPolicy} is {@code false}. + */ + public DataPlacementRestrictionSatisfyPolicyType getDataPlacementRestrictionSatisfyPolicyValue() { + if (this._tag != Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY, but was Tag." + this._tag.name()); + } + return dataPlacementRestrictionSatisfyPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION}, {@code false} otherwise. + */ + public boolean isDeviceApprovalsAddException() { + return this._tag == Tag.DEVICE_APPROVALS_ADD_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION}. + * + *

(team_policies) Added members to device approvals exception list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceApprovalsAddException(DeviceApprovalsAddExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceApprovalsAddException(Tag.DEVICE_APPROVALS_ADD_EXCEPTION, value); + } + + /** + * (team_policies) Added members to device approvals exception list + * + *

This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_ADD_EXCEPTION}.

+ * + * @return The {@link DeviceApprovalsAddExceptionType} value associated with + * this instance if {@link #isDeviceApprovalsAddException} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isDeviceApprovalsAddException} + * is {@code false}. + */ + public DeviceApprovalsAddExceptionType getDeviceApprovalsAddExceptionValue() { + if (this._tag != Tag.DEVICE_APPROVALS_ADD_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_ADD_EXCEPTION, but was Tag." + this._tag.name()); + } + return deviceApprovalsAddExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY}, {@code false} otherwise. + */ + public boolean isDeviceApprovalsChangeDesktopPolicy() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY}. + * + *

(team_policies) Set/removed limit on number of computers member can + * link to team Dropbox account

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceApprovalsChangeDesktopPolicy(DeviceApprovalsChangeDesktopPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceApprovalsChangeDesktopPolicy(Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY, value); + } + + /** + * (team_policies) Set/removed limit on number of computers member can link + * to team Dropbox account + * + *

This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY}.

+ * + * @return The {@link DeviceApprovalsChangeDesktopPolicyType} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeDesktopPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeDesktopPolicy} is {@code false}. + */ + public DeviceApprovalsChangeDesktopPolicyType getDeviceApprovalsChangeDesktopPolicyValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeDesktopPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY}, {@code false} otherwise. + */ + public boolean isDeviceApprovalsChangeMobilePolicy() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY}. + * + *

(team_policies) Set/removed limit on number of mobile devices member + * can link to team Dropbox account

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceApprovalsChangeMobilePolicy(DeviceApprovalsChangeMobilePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceApprovalsChangeMobilePolicy(Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY, value); + } + + /** + * (team_policies) Set/removed limit on number of mobile devices member can + * link to team Dropbox account + * + *

This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_MOBILE_POLICY}.

+ * + * @return The {@link DeviceApprovalsChangeMobilePolicyType} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeMobilePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeMobilePolicy} is {@code false}. + */ + public DeviceApprovalsChangeMobilePolicyType getDeviceApprovalsChangeMobilePolicyValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeMobilePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION}, {@code false} otherwise. + */ + public boolean isDeviceApprovalsChangeOverageAction() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION}. + * + *

(team_policies) Changed device approvals setting when member is over + * limit

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceApprovalsChangeOverageAction(DeviceApprovalsChangeOverageActionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceApprovalsChangeOverageAction(Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION, value); + } + + /** + * (team_policies) Changed device approvals setting when member is over + * limit + * + *

This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION}.

+ * + * @return The {@link DeviceApprovalsChangeOverageActionType} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeOverageAction} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeOverageAction} is {@code false}. + */ + public DeviceApprovalsChangeOverageActionType getDeviceApprovalsChangeOverageActionValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeOverageActionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION}, {@code false} otherwise. + */ + public boolean isDeviceApprovalsChangeUnlinkAction() { + return this._tag == Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION}. + * + *

(team_policies) Changed device approvals setting when member unlinks + * approved device

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceApprovalsChangeUnlinkAction(DeviceApprovalsChangeUnlinkActionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceApprovalsChangeUnlinkAction(Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION, value); + } + + /** + * (team_policies) Changed device approvals setting when member unlinks + * approved device + * + *

This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_CHANGE_UNLINK_ACTION}.

+ * + * @return The {@link DeviceApprovalsChangeUnlinkActionType} value + * associated with this instance if {@link + * #isDeviceApprovalsChangeUnlinkAction} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsChangeUnlinkAction} is {@code false}. + */ + public DeviceApprovalsChangeUnlinkActionType getDeviceApprovalsChangeUnlinkActionValue() { + if (this._tag != Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION, but was Tag." + this._tag.name()); + } + return deviceApprovalsChangeUnlinkActionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION}, {@code false} otherwise. + */ + public boolean isDeviceApprovalsRemoveException() { + return this._tag == Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION}. + * + *

(team_policies) Removed members from device approvals exception list + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType deviceApprovalsRemoveException(DeviceApprovalsRemoveExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDeviceApprovalsRemoveException(Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION, value); + } + + /** + * (team_policies) Removed members from device approvals exception list + * + *

This instance must be tagged as {@link + * Tag#DEVICE_APPROVALS_REMOVE_EXCEPTION}.

+ * + * @return The {@link DeviceApprovalsRemoveExceptionType} value associated + * with this instance if {@link #isDeviceApprovalsRemoveException} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDeviceApprovalsRemoveException} is {@code false}. + */ + public DeviceApprovalsRemoveExceptionType getDeviceApprovalsRemoveExceptionValue() { + if (this._tag != Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.DEVICE_APPROVALS_REMOVE_EXCEPTION, but was Tag." + this._tag.name()); + } + return deviceApprovalsRemoveExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS}, {@code false} otherwise. + */ + public boolean isDirectoryRestrictionsAddMembers() { + return this._tag == Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS}. + * + *

(team_policies) Added members to directory restrictions list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType directoryRestrictionsAddMembers(DirectoryRestrictionsAddMembersType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDirectoryRestrictionsAddMembers(Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS, value); + } + + /** + * (team_policies) Added members to directory restrictions list + * + *

This instance must be tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_ADD_MEMBERS}.

+ * + * @return The {@link DirectoryRestrictionsAddMembersType} value associated + * with this instance if {@link #isDirectoryRestrictionsAddMembers} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDirectoryRestrictionsAddMembers} is {@code false}. + */ + public DirectoryRestrictionsAddMembersType getDirectoryRestrictionsAddMembersValue() { + if (this._tag != Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS) { + throw new IllegalStateException("Invalid tag: required Tag.DIRECTORY_RESTRICTIONS_ADD_MEMBERS, but was Tag." + this._tag.name()); + } + return directoryRestrictionsAddMembersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS}, {@code false} otherwise. + */ + public boolean isDirectoryRestrictionsRemoveMembers() { + return this._tag == Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS}. + * + *

(team_policies) Removed members from directory restrictions list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType directoryRestrictionsRemoveMembers(DirectoryRestrictionsRemoveMembersType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDirectoryRestrictionsRemoveMembers(Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS, value); + } + + /** + * (team_policies) Removed members from directory restrictions list + * + *

This instance must be tagged as {@link + * Tag#DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS}.

+ * + * @return The {@link DirectoryRestrictionsRemoveMembersType} value + * associated with this instance if {@link + * #isDirectoryRestrictionsRemoveMembers} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDirectoryRestrictionsRemoveMembers} is {@code false}. + */ + public DirectoryRestrictionsRemoveMembersType getDirectoryRestrictionsRemoveMembersValue() { + if (this._tag != Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS) { + throw new IllegalStateException("Invalid tag: required Tag.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS, but was Tag." + this._tag.name()); + } + return directoryRestrictionsRemoveMembersValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isDropboxPasswordsPolicyChanged() { + return this._tag == Tag.DROPBOX_PASSWORDS_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED}. + * + *

(team_policies) Changed Dropbox Passwords policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType dropboxPasswordsPolicyChanged(DropboxPasswordsPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDropboxPasswordsPolicyChanged(Tag.DROPBOX_PASSWORDS_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed Dropbox Passwords policy for team + * + *

This instance must be tagged as {@link + * Tag#DROPBOX_PASSWORDS_POLICY_CHANGED}.

+ * + * @return The {@link DropboxPasswordsPolicyChangedType} value associated + * with this instance if {@link #isDropboxPasswordsPolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isDropboxPasswordsPolicyChanged} is {@code false}. + */ + public DropboxPasswordsPolicyChangedType getDropboxPasswordsPolicyChangedValue() { + if (this._tag != Tag.DROPBOX_PASSWORDS_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.DROPBOX_PASSWORDS_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return dropboxPasswordsPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isEmailIngestPolicyChanged() { + return this._tag == Tag.EMAIL_INGEST_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED}. + * + *

(team_policies) Changed email to Dropbox policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emailIngestPolicyChanged(EmailIngestPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmailIngestPolicyChanged(Tag.EMAIL_INGEST_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed email to Dropbox policy for team + * + *

This instance must be tagged as {@link + * Tag#EMAIL_INGEST_POLICY_CHANGED}.

+ * + * @return The {@link EmailIngestPolicyChangedType} value associated with + * this instance if {@link #isEmailIngestPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmailIngestPolicyChanged} is + * {@code false}. + */ + public EmailIngestPolicyChangedType getEmailIngestPolicyChangedValue() { + if (this._tag != Tag.EMAIL_INGEST_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.EMAIL_INGEST_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return emailIngestPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_ADD_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_ADD_EXCEPTION}, {@code false} otherwise. + */ + public boolean isEmmAddException() { + return this._tag == Tag.EMM_ADD_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMM_ADD_EXCEPTION}. + * + *

(team_policies) Added members to EMM exception list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMM_ADD_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emmAddException(EmmAddExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmmAddException(Tag.EMM_ADD_EXCEPTION, value); + } + + /** + * (team_policies) Added members to EMM exception list + * + *

This instance must be tagged as {@link Tag#EMM_ADD_EXCEPTION}.

+ * + * @return The {@link EmmAddExceptionType} value associated with this + * instance if {@link #isEmmAddException} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmAddException} is {@code + * false}. + */ + public EmmAddExceptionType getEmmAddExceptionValue() { + if (this._tag != Tag.EMM_ADD_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_ADD_EXCEPTION, but was Tag." + this._tag.name()); + } + return emmAddExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isEmmChangePolicy() { + return this._tag == Tag.EMM_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMM_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled enterprise mobility management for + * members

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMM_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emmChangePolicy(EmmChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmmChangePolicy(Tag.EMM_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled enterprise mobility management for + * members + * + *

This instance must be tagged as {@link Tag#EMM_CHANGE_POLICY}.

+ * + * @return The {@link EmmChangePolicyType} value associated with this + * instance if {@link #isEmmChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmChangePolicy} is {@code + * false}. + */ + public EmmChangePolicyType getEmmChangePolicyValue() { + if (this._tag != Tag.EMM_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return emmChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EMM_REMOVE_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EMM_REMOVE_EXCEPTION}, {@code false} otherwise. + */ + public boolean isEmmRemoveException() { + return this._tag == Tag.EMM_REMOVE_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EMM_REMOVE_EXCEPTION}. + * + *

(team_policies) Removed members from EMM exception list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EMM_REMOVE_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType emmRemoveException(EmmRemoveExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEmmRemoveException(Tag.EMM_REMOVE_EXCEPTION, value); + } + + /** + * (team_policies) Removed members from EMM exception list + * + *

This instance must be tagged as {@link Tag#EMM_REMOVE_EXCEPTION}. + *

+ * + * @return The {@link EmmRemoveExceptionType} value associated with this + * instance if {@link #isEmmRemoveException} is {@code true}. + * + * @throws IllegalStateException If {@link #isEmmRemoveException} is {@code + * false}. + */ + public EmmRemoveExceptionType getEmmRemoveExceptionValue() { + if (this._tag != Tag.EMM_REMOVE_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.EMM_REMOVE_EXCEPTION, but was Tag." + this._tag.name()); + } + return emmRemoveExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isExtendedVersionHistoryChangePolicy() { + return this._tag == Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY}. + * + *

(team_policies) Accepted/opted out of extended version history

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType extendedVersionHistoryChangePolicy(ExtendedVersionHistoryChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExtendedVersionHistoryChangePolicy(Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY, value); + } + + /** + * (team_policies) Accepted/opted out of extended version history + * + *

This instance must be tagged as {@link + * Tag#EXTENDED_VERSION_HISTORY_CHANGE_POLICY}.

+ * + * @return The {@link ExtendedVersionHistoryChangePolicyType} value + * associated with this instance if {@link + * #isExtendedVersionHistoryChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isExtendedVersionHistoryChangePolicy} is {@code false}. + */ + public ExtendedVersionHistoryChangePolicyType getExtendedVersionHistoryChangePolicyValue() { + if (this._tag != Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.EXTENDED_VERSION_HISTORY_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return extendedVersionHistoryChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isExternalDriveBackupPolicyChanged() { + return this._tag == Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED}. + * + *

(team_policies) Changed external drive backup policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType externalDriveBackupPolicyChanged(ExternalDriveBackupPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndExternalDriveBackupPolicyChanged(Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed external drive backup policy for team + * + *

This instance must be tagged as {@link + * Tag#EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED}.

+ * + * @return The {@link ExternalDriveBackupPolicyChangedType} value associated + * with this instance if {@link #isExternalDriveBackupPolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isExternalDriveBackupPolicyChanged} is {@code false}. + */ + public ExternalDriveBackupPolicyChangedType getExternalDriveBackupPolicyChangedValue() { + if (this._tag != Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return externalDriveBackupPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isFileCommentsChangePolicy() { + return this._tag == Tag.FILE_COMMENTS_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled commenting on team files

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileCommentsChangePolicy(FileCommentsChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileCommentsChangePolicy(Tag.FILE_COMMENTS_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled commenting on team files + * + *

This instance must be tagged as {@link + * Tag#FILE_COMMENTS_CHANGE_POLICY}.

+ * + * @return The {@link FileCommentsChangePolicyType} value associated with + * this instance if {@link #isFileCommentsChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileCommentsChangePolicy} is + * {@code false}. + */ + public FileCommentsChangePolicyType getFileCommentsChangePolicyValue() { + if (this._tag != Tag.FILE_COMMENTS_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_COMMENTS_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return fileCommentsChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_LOCKING_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_LOCKING_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isFileLockingPolicyChanged() { + return this._tag == Tag.FILE_LOCKING_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_LOCKING_POLICY_CHANGED}. + * + *

(team_policies) Changed file locking policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_LOCKING_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileLockingPolicyChanged(FileLockingPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileLockingPolicyChanged(Tag.FILE_LOCKING_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed file locking policy for team + * + *

This instance must be tagged as {@link + * Tag#FILE_LOCKING_POLICY_CHANGED}.

+ * + * @return The {@link FileLockingPolicyChangedType} value associated with + * this instance if {@link #isFileLockingPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileLockingPolicyChanged} is + * {@code false}. + */ + public FileLockingPolicyChangedType getFileLockingPolicyChangedValue() { + if (this._tag != Tag.FILE_LOCKING_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_LOCKING_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return fileLockingPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isFileProviderMigrationPolicyChanged() { + return this._tag == Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED}. + * + *

(team_policies) Changed File Provider Migration policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileProviderMigrationPolicyChanged(FileProviderMigrationPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileProviderMigrationPolicyChanged(Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed File Provider Migration policy for team + * + *

This instance must be tagged as {@link + * Tag#FILE_PROVIDER_MIGRATION_POLICY_CHANGED}.

+ * + * @return The {@link FileProviderMigrationPolicyChangedType} value + * associated with this instance if {@link + * #isFileProviderMigrationPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileProviderMigrationPolicyChanged} is {@code false}. + */ + public FileProviderMigrationPolicyChangedType getFileProviderMigrationPolicyChangedValue() { + if (this._tag != Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_PROVIDER_MIGRATION_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return fileProviderMigrationPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isFileRequestsChangePolicy() { + return this._tag == Tag.FILE_REQUESTS_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled file requests

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestsChangePolicy(FileRequestsChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestsChangePolicy(Tag.FILE_REQUESTS_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled file requests + * + *

This instance must be tagged as {@link + * Tag#FILE_REQUESTS_CHANGE_POLICY}.

+ * + * @return The {@link FileRequestsChangePolicyType} value associated with + * this instance if {@link #isFileRequestsChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileRequestsChangePolicy} is + * {@code false}. + */ + public FileRequestsChangePolicyType getFileRequestsChangePolicyValue() { + if (this._tag != Tag.FILE_REQUESTS_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUESTS_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return fileRequestsChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED}, {@code false} otherwise. + */ + public boolean isFileRequestsEmailsEnabled() { + return this._tag == Tag.FILE_REQUESTS_EMAILS_ENABLED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED}. + * + *

(team_policies) Enabled file request emails for everyone (deprecated, + * no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestsEmailsEnabled(FileRequestsEmailsEnabledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestsEmailsEnabled(Tag.FILE_REQUESTS_EMAILS_ENABLED, value); + } + + /** + * (team_policies) Enabled file request emails for everyone (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_ENABLED}.

+ * + * @return The {@link FileRequestsEmailsEnabledType} value associated with + * this instance if {@link #isFileRequestsEmailsEnabled} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileRequestsEmailsEnabled} is + * {@code false}. + */ + public FileRequestsEmailsEnabledType getFileRequestsEmailsEnabledValue() { + if (this._tag != Tag.FILE_REQUESTS_EMAILS_ENABLED) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUESTS_EMAILS_ENABLED, but was Tag." + this._tag.name()); + } + return fileRequestsEmailsEnabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY}, {@code false} + * otherwise. + */ + public boolean isFileRequestsEmailsRestrictedToTeamOnly() { + return this._tag == Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY}. + * + *

(team_policies) Enabled file request emails for team (deprecated, no + * longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileRequestsEmailsRestrictedToTeamOnly(FileRequestsEmailsRestrictedToTeamOnlyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileRequestsEmailsRestrictedToTeamOnly(Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY, value); + } + + /** + * (team_policies) Enabled file request emails for team (deprecated, no + * longer logged) + * + *

This instance must be tagged as {@link + * Tag#FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY}.

+ * + * @return The {@link FileRequestsEmailsRestrictedToTeamOnlyType} value + * associated with this instance if {@link + * #isFileRequestsEmailsRestrictedToTeamOnly} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFileRequestsEmailsRestrictedToTeamOnly} is {@code false}. + */ + public FileRequestsEmailsRestrictedToTeamOnlyType getFileRequestsEmailsRestrictedToTeamOnlyValue() { + if (this._tag != Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY, but was Tag." + this._tag.name()); + } + return fileRequestsEmailsRestrictedToTeamOnlyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isFileTransfersPolicyChanged() { + return this._tag == Tag.FILE_TRANSFERS_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED}. + * + *

(team_policies) Changed file transfers policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType fileTransfersPolicyChanged(FileTransfersPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFileTransfersPolicyChanged(Tag.FILE_TRANSFERS_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed file transfers policy for team + * + *

This instance must be tagged as {@link + * Tag#FILE_TRANSFERS_POLICY_CHANGED}.

+ * + * @return The {@link FileTransfersPolicyChangedType} value associated with + * this instance if {@link #isFileTransfersPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isFileTransfersPolicyChanged} + * is {@code false}. + */ + public FileTransfersPolicyChangedType getFileTransfersPolicyChangedValue() { + if (this._tag != Tag.FILE_TRANSFERS_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_TRANSFERS_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return fileTransfersPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isFolderLinkRestrictionPolicyChanged() { + return this._tag == Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED}. + * + *

(team_policies) Changed folder link restrictions policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType folderLinkRestrictionPolicyChanged(FolderLinkRestrictionPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndFolderLinkRestrictionPolicyChanged(Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed folder link restrictions policy for team + * + *

This instance must be tagged as {@link + * Tag#FOLDER_LINK_RESTRICTION_POLICY_CHANGED}.

+ * + * @return The {@link FolderLinkRestrictionPolicyChangedType} value + * associated with this instance if {@link + * #isFolderLinkRestrictionPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isFolderLinkRestrictionPolicyChanged} is {@code false}. + */ + public FolderLinkRestrictionPolicyChangedType getFolderLinkRestrictionPolicyChangedValue() { + if (this._tag != Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.FOLDER_LINK_RESTRICTION_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return folderLinkRestrictionPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isGoogleSsoChangePolicy() { + return this._tag == Tag.GOOGLE_SSO_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled Google single sign-on for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GOOGLE_SSO_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType googleSsoChangePolicy(GoogleSsoChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGoogleSsoChangePolicy(Tag.GOOGLE_SSO_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled Google single sign-on for team + * + *

This instance must be tagged as {@link Tag#GOOGLE_SSO_CHANGE_POLICY}. + *

+ * + * @return The {@link GoogleSsoChangePolicyType} value associated with this + * instance if {@link #isGoogleSsoChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isGoogleSsoChangePolicy} is + * {@code false}. + */ + public GoogleSsoChangePolicyType getGoogleSsoChangePolicyValue() { + if (this._tag != Tag.GOOGLE_SSO_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.GOOGLE_SSO_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return googleSsoChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isGroupUserManagementChangePolicy() { + return this._tag == Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY}. + * + *

(team_policies) Changed who can create groups

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType groupUserManagementChangePolicy(GroupUserManagementChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGroupUserManagementChangePolicy(Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed who can create groups + * + *

This instance must be tagged as {@link + * Tag#GROUP_USER_MANAGEMENT_CHANGE_POLICY}.

+ * + * @return The {@link GroupUserManagementChangePolicyType} value associated + * with this instance if {@link #isGroupUserManagementChangePolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isGroupUserManagementChangePolicy} is {@code false}. + */ + public GroupUserManagementChangePolicyType getGroupUserManagementChangePolicyValue() { + if (this._tag != Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP_USER_MANAGEMENT_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return groupUserManagementChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INTEGRATION_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INTEGRATION_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isIntegrationPolicyChanged() { + return this._tag == Tag.INTEGRATION_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#INTEGRATION_POLICY_CHANGED}. + * + *

(team_policies) Changed integration policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#INTEGRATION_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType integrationPolicyChanged(IntegrationPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndIntegrationPolicyChanged(Tag.INTEGRATION_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed integration policy for team + * + *

This instance must be tagged as {@link + * Tag#INTEGRATION_POLICY_CHANGED}.

+ * + * @return The {@link IntegrationPolicyChangedType} value associated with + * this instance if {@link #isIntegrationPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link #isIntegrationPolicyChanged} is + * {@code false}. + */ + public IntegrationPolicyChangedType getIntegrationPolicyChangedValue() { + if (this._tag != Tag.INTEGRATION_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.INTEGRATION_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return integrationPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isInviteAcceptanceEmailPolicyChanged() { + return this._tag == Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED}. + * + *

(team_policies) Changed invite accept email policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType inviteAcceptanceEmailPolicyChanged(InviteAcceptanceEmailPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndInviteAcceptanceEmailPolicyChanged(Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed invite accept email policy for team + * + *

This instance must be tagged as {@link + * Tag#INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED}.

+ * + * @return The {@link InviteAcceptanceEmailPolicyChangedType} value + * associated with this instance if {@link + * #isInviteAcceptanceEmailPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isInviteAcceptanceEmailPolicyChanged} is {@code false}. + */ + public InviteAcceptanceEmailPolicyChangedType getInviteAcceptanceEmailPolicyChangedValue() { + if (this._tag != Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return inviteAcceptanceEmailPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isMemberRequestsChangePolicy() { + return this._tag == Tag.MEMBER_REQUESTS_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY}. + * + *

(team_policies) Changed whether users can find team when not invited + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberRequestsChangePolicy(MemberRequestsChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberRequestsChangePolicy(Tag.MEMBER_REQUESTS_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed whether users can find team when not invited + * + *

This instance must be tagged as {@link + * Tag#MEMBER_REQUESTS_CHANGE_POLICY}.

+ * + * @return The {@link MemberRequestsChangePolicyType} value associated with + * this instance if {@link #isMemberRequestsChangePolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isMemberRequestsChangePolicy} + * is {@code false}. + */ + public MemberRequestsChangePolicyType getMemberRequestsChangePolicyValue() { + if (this._tag != Tag.MEMBER_REQUESTS_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_REQUESTS_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return memberRequestsChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isMemberSendInvitePolicyChanged() { + return this._tag == Tag.MEMBER_SEND_INVITE_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED}. + * + *

(team_policies) Changed member send invite policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSendInvitePolicyChanged(MemberSendInvitePolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSendInvitePolicyChanged(Tag.MEMBER_SEND_INVITE_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed member send invite policy for team + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SEND_INVITE_POLICY_CHANGED}.

+ * + * @return The {@link MemberSendInvitePolicyChangedType} value associated + * with this instance if {@link #isMemberSendInvitePolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSendInvitePolicyChanged} is {@code false}. + */ + public MemberSendInvitePolicyChangedType getMemberSendInvitePolicyChangedValue() { + if (this._tag != Tag.MEMBER_SEND_INVITE_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SEND_INVITE_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return memberSendInvitePolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION}, {@code false} otherwise. + */ + public boolean isMemberSpaceLimitsAddException() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION}. + * + *

(team_policies) Added members to member space limit exception list + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsAddException(MemberSpaceLimitsAddExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsAddException(Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION, value); + } + + /** + * (team_policies) Added members to member space limit exception list + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_ADD_EXCEPTION}.

+ * + * @return The {@link MemberSpaceLimitsAddExceptionType} value associated + * with this instance if {@link #isMemberSpaceLimitsAddException} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsAddException} is {@code false}. + */ + public MemberSpaceLimitsAddExceptionType getMemberSpaceLimitsAddExceptionValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_ADD_EXCEPTION, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsAddExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY}, {@code false} + * otherwise. + */ + public boolean isMemberSpaceLimitsChangeCapsTypePolicy() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY}. + * + *

(team_policies) Changed member space limit type for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsChangeCapsTypePolicy(MemberSpaceLimitsChangeCapsTypePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsChangeCapsTypePolicy(Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY, value); + } + + /** + * (team_policies) Changed member space limit type for team + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY}.

+ * + * @return The {@link MemberSpaceLimitsChangeCapsTypePolicyType} value + * associated with this instance if {@link + * #isMemberSpaceLimitsChangeCapsTypePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangeCapsTypePolicy} is {@code false}. + */ + public MemberSpaceLimitsChangeCapsTypePolicyType getMemberSpaceLimitsChangeCapsTypePolicyValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangeCapsTypePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isMemberSpaceLimitsChangePolicy() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY}. + * + *

(team_policies) Changed team default member space limit

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsChangePolicy(MemberSpaceLimitsChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsChangePolicy(Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed team default member space limit + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_CHANGE_POLICY}.

+ * + * @return The {@link MemberSpaceLimitsChangePolicyType} value associated + * with this instance if {@link #isMemberSpaceLimitsChangePolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsChangePolicy} is {@code false}. + */ + public MemberSpaceLimitsChangePolicyType getMemberSpaceLimitsChangePolicyValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION}, {@code false} otherwise. + */ + public boolean isMemberSpaceLimitsRemoveException() { + return this._tag == Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION}. + * + *

(team_policies) Removed members from member space limit exception + * list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSpaceLimitsRemoveException(MemberSpaceLimitsRemoveExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSpaceLimitsRemoveException(Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION, value); + } + + /** + * (team_policies) Removed members from member space limit exception list + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION}.

+ * + * @return The {@link MemberSpaceLimitsRemoveExceptionType} value associated + * with this instance if {@link #isMemberSpaceLimitsRemoveException} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSpaceLimitsRemoveException} is {@code false}. + */ + public MemberSpaceLimitsRemoveExceptionType getMemberSpaceLimitsRemoveExceptionValue() { + if (this._tag != Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION, but was Tag." + this._tag.name()); + } + return memberSpaceLimitsRemoveExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isMemberSuggestionsChangePolicy() { + return this._tag == Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled option for team members to suggest + * people to add to team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType memberSuggestionsChangePolicy(MemberSuggestionsChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMemberSuggestionsChangePolicy(Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled option for team members to suggest + * people to add to team + * + *

This instance must be tagged as {@link + * Tag#MEMBER_SUGGESTIONS_CHANGE_POLICY}.

+ * + * @return The {@link MemberSuggestionsChangePolicyType} value associated + * with this instance if {@link #isMemberSuggestionsChangePolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMemberSuggestionsChangePolicy} is {@code false}. + */ + public MemberSuggestionsChangePolicyType getMemberSuggestionsChangePolicyValue() { + if (this._tag != Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.MEMBER_SUGGESTIONS_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return memberSuggestionsChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isMicrosoftOfficeAddinChangePolicy() { + return this._tag == Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled Microsoft Office add-in

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType microsoftOfficeAddinChangePolicy(MicrosoftOfficeAddinChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndMicrosoftOfficeAddinChangePolicy(Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled Microsoft Office add-in + * + *

This instance must be tagged as {@link + * Tag#MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY}.

+ * + * @return The {@link MicrosoftOfficeAddinChangePolicyType} value associated + * with this instance if {@link #isMicrosoftOfficeAddinChangePolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isMicrosoftOfficeAddinChangePolicy} is {@code false}. + */ + public MicrosoftOfficeAddinChangePolicyType getMicrosoftOfficeAddinChangePolicyValue() { + if (this._tag != Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return microsoftOfficeAddinChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isNetworkControlChangePolicy() { + return this._tag == Tag.NETWORK_CONTROL_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled network control

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType networkControlChangePolicy(NetworkControlChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndNetworkControlChangePolicy(Tag.NETWORK_CONTROL_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled network control + * + *

This instance must be tagged as {@link + * Tag#NETWORK_CONTROL_CHANGE_POLICY}.

+ * + * @return The {@link NetworkControlChangePolicyType} value associated with + * this instance if {@link #isNetworkControlChangePolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isNetworkControlChangePolicy} + * is {@code false}. + */ + public NetworkControlChangePolicyType getNetworkControlChangePolicyValue() { + if (this._tag != Tag.NETWORK_CONTROL_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.NETWORK_CONTROL_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return networkControlChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY}, {@code false} otherwise. + */ + public boolean isPaperChangeDeploymentPolicy() { + return this._tag == Tag.PAPER_CHANGE_DEPLOYMENT_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY}. + * + *

(team_policies) Changed whether Dropbox Paper, when enabled, is + * deployed to all members or to specific members

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperChangeDeploymentPolicy(PaperChangeDeploymentPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperChangeDeploymentPolicy(Tag.PAPER_CHANGE_DEPLOYMENT_POLICY, value); + } + + /** + * (team_policies) Changed whether Dropbox Paper, when enabled, is deployed + * to all members or to specific members + * + *

This instance must be tagged as {@link + * Tag#PAPER_CHANGE_DEPLOYMENT_POLICY}.

+ * + * @return The {@link PaperChangeDeploymentPolicyType} value associated with + * this instance if {@link #isPaperChangeDeploymentPolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperChangeDeploymentPolicy} + * is {@code false}. + */ + public PaperChangeDeploymentPolicyType getPaperChangeDeploymentPolicyValue() { + if (this._tag != Tag.PAPER_CHANGE_DEPLOYMENT_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_DEPLOYMENT_POLICY, but was Tag." + this._tag.name()); + } + return paperChangeDeploymentPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY}, {@code false} otherwise. + */ + public boolean isPaperChangeMemberLinkPolicy() { + return this._tag == Tag.PAPER_CHANGE_MEMBER_LINK_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY}. + * + *

(team_policies) Changed whether non-members can view Paper docs with + * link (deprecated, no longer logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperChangeMemberLinkPolicy(PaperChangeMemberLinkPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperChangeMemberLinkPolicy(Tag.PAPER_CHANGE_MEMBER_LINK_POLICY, value); + } + + /** + * (team_policies) Changed whether non-members can view Paper docs with link + * (deprecated, no longer logged) + * + *

This instance must be tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_LINK_POLICY}.

+ * + * @return The {@link PaperChangeMemberLinkPolicyType} value associated with + * this instance if {@link #isPaperChangeMemberLinkPolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperChangeMemberLinkPolicy} + * is {@code false}. + */ + public PaperChangeMemberLinkPolicyType getPaperChangeMemberLinkPolicyValue() { + if (this._tag != Tag.PAPER_CHANGE_MEMBER_LINK_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_MEMBER_LINK_POLICY, but was Tag." + this._tag.name()); + } + return paperChangeMemberLinkPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY}, {@code false} otherwise. + */ + public boolean isPaperChangeMemberPolicy() { + return this._tag == Tag.PAPER_CHANGE_MEMBER_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY}. + * + *

(team_policies) Changed whether members can share Paper docs outside + * team, and if docs are accessible only by team members or anyone by + * default

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperChangeMemberPolicy(PaperChangeMemberPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperChangeMemberPolicy(Tag.PAPER_CHANGE_MEMBER_POLICY, value); + } + + /** + * (team_policies) Changed whether members can share Paper docs outside + * team, and if docs are accessible only by team members or anyone by + * default + * + *

This instance must be tagged as {@link + * Tag#PAPER_CHANGE_MEMBER_POLICY}.

+ * + * @return The {@link PaperChangeMemberPolicyType} value associated with + * this instance if {@link #isPaperChangeMemberPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperChangeMemberPolicy} is + * {@code false}. + */ + public PaperChangeMemberPolicyType getPaperChangeMemberPolicyValue() { + if (this._tag != Tag.PAPER_CHANGE_MEMBER_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_MEMBER_POLICY, but was Tag." + this._tag.name()); + } + return paperChangeMemberPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isPaperChangePolicy() { + return this._tag == Tag.PAPER_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled Dropbox Paper for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperChangePolicy(PaperChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperChangePolicy(Tag.PAPER_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled Dropbox Paper for team + * + *

This instance must be tagged as {@link Tag#PAPER_CHANGE_POLICY}.

+ * + * @return The {@link PaperChangePolicyType} value associated with this + * instance if {@link #isPaperChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperChangePolicy} is {@code + * false}. + */ + public PaperChangePolicyType getPaperChangePolicyValue() { + if (this._tag != Tag.PAPER_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return paperChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isPaperDefaultFolderPolicyChanged() { + return this._tag == Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED}. + * + *

(team_policies) Changed Paper Default Folder Policy setting for team + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDefaultFolderPolicyChanged(PaperDefaultFolderPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDefaultFolderPolicyChanged(Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed Paper Default Folder Policy setting for team + * + *

This instance must be tagged as {@link + * Tag#PAPER_DEFAULT_FOLDER_POLICY_CHANGED}.

+ * + * @return The {@link PaperDefaultFolderPolicyChangedType} value associated + * with this instance if {@link #isPaperDefaultFolderPolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperDefaultFolderPolicyChanged} is {@code false}. + */ + public PaperDefaultFolderPolicyChangedType getPaperDefaultFolderPolicyChangedValue() { + if (this._tag != Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DEFAULT_FOLDER_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return paperDefaultFolderPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isPaperDesktopPolicyChanged() { + return this._tag == Tag.PAPER_DESKTOP_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED}. + * + *

(team_policies) Enabled/disabled Paper Desktop for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperDesktopPolicyChanged(PaperDesktopPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperDesktopPolicyChanged(Tag.PAPER_DESKTOP_POLICY_CHANGED, value); + } + + /** + * (team_policies) Enabled/disabled Paper Desktop for team + * + *

This instance must be tagged as {@link + * Tag#PAPER_DESKTOP_POLICY_CHANGED}.

+ * + * @return The {@link PaperDesktopPolicyChangedType} value associated with + * this instance if {@link #isPaperDesktopPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPaperDesktopPolicyChanged} is + * {@code false}. + */ + public PaperDesktopPolicyChangedType getPaperDesktopPolicyChangedValue() { + if (this._tag != Tag.PAPER_DESKTOP_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_DESKTOP_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return paperDesktopPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION}, {@code false} otherwise. + */ + public boolean isPaperEnabledUsersGroupAddition() { + return this._tag == Tag.PAPER_ENABLED_USERS_GROUP_ADDITION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION}. + * + *

(team_policies) Added users to Paper-enabled users list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperEnabledUsersGroupAddition(PaperEnabledUsersGroupAdditionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperEnabledUsersGroupAddition(Tag.PAPER_ENABLED_USERS_GROUP_ADDITION, value); + } + + /** + * (team_policies) Added users to Paper-enabled users list + * + *

This instance must be tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_ADDITION}.

+ * + * @return The {@link PaperEnabledUsersGroupAdditionType} value associated + * with this instance if {@link #isPaperEnabledUsersGroupAddition} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperEnabledUsersGroupAddition} is {@code false}. + */ + public PaperEnabledUsersGroupAdditionType getPaperEnabledUsersGroupAdditionValue() { + if (this._tag != Tag.PAPER_ENABLED_USERS_GROUP_ADDITION) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_ENABLED_USERS_GROUP_ADDITION, but was Tag." + this._tag.name()); + } + return paperEnabledUsersGroupAdditionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL}, {@code false} otherwise. + */ + public boolean isPaperEnabledUsersGroupRemoval() { + return this._tag == Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL}. + * + *

(team_policies) Removed users from Paper-enabled users list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType paperEnabledUsersGroupRemoval(PaperEnabledUsersGroupRemovalType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPaperEnabledUsersGroupRemoval(Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL, value); + } + + /** + * (team_policies) Removed users from Paper-enabled users list + * + *

This instance must be tagged as {@link + * Tag#PAPER_ENABLED_USERS_GROUP_REMOVAL}.

+ * + * @return The {@link PaperEnabledUsersGroupRemovalType} value associated + * with this instance if {@link #isPaperEnabledUsersGroupRemoval} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isPaperEnabledUsersGroupRemoval} is {@code false}. + */ + public PaperEnabledUsersGroupRemovalType getPaperEnabledUsersGroupRemovalValue() { + if (this._tag != Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_ENABLED_USERS_GROUP_REMOVAL, but was Tag." + this._tag.name()); + } + return paperEnabledUsersGroupRemovalValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY}, {@code false} + * otherwise. + */ + public boolean isPasswordStrengthRequirementsChangePolicy() { + return this._tag == Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY}. + * + *

(team_policies) Changed team password strength requirements

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType passwordStrengthRequirementsChangePolicy(PasswordStrengthRequirementsChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPasswordStrengthRequirementsChangePolicy(Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed team password strength requirements + * + *

This instance must be tagged as {@link + * Tag#PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY}.

+ * + * @return The {@link PasswordStrengthRequirementsChangePolicyType} value + * associated with this instance if {@link + * #isPasswordStrengthRequirementsChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isPasswordStrengthRequirementsChangePolicy} is {@code false}. + */ + public PasswordStrengthRequirementsChangePolicyType getPasswordStrengthRequirementsChangePolicyValue() { + if (this._tag != Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return passwordStrengthRequirementsChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isPermanentDeleteChangePolicy() { + return this._tag == Tag.PERMANENT_DELETE_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled ability of team members to + * permanently delete content

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType permanentDeleteChangePolicy(PermanentDeleteChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndPermanentDeleteChangePolicy(Tag.PERMANENT_DELETE_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled ability of team members to permanently + * delete content + * + *

This instance must be tagged as {@link + * Tag#PERMANENT_DELETE_CHANGE_POLICY}.

+ * + * @return The {@link PermanentDeleteChangePolicyType} value associated with + * this instance if {@link #isPermanentDeleteChangePolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isPermanentDeleteChangePolicy} + * is {@code false}. + */ + public PermanentDeleteChangePolicyType getPermanentDeleteChangePolicyValue() { + if (this._tag != Tag.PERMANENT_DELETE_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.PERMANENT_DELETE_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return permanentDeleteChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isResellerSupportChangePolicy() { + return this._tag == Tag.RESELLER_SUPPORT_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled reseller support

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType resellerSupportChangePolicy(ResellerSupportChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndResellerSupportChangePolicy(Tag.RESELLER_SUPPORT_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled reseller support + * + *

This instance must be tagged as {@link + * Tag#RESELLER_SUPPORT_CHANGE_POLICY}.

+ * + * @return The {@link ResellerSupportChangePolicyType} value associated with + * this instance if {@link #isResellerSupportChangePolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isResellerSupportChangePolicy} + * is {@code false}. + */ + public ResellerSupportChangePolicyType getResellerSupportChangePolicyValue() { + if (this._tag != Tag.RESELLER_SUPPORT_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.RESELLER_SUPPORT_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return resellerSupportChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#REWIND_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#REWIND_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isRewindPolicyChanged() { + return this._tag == Tag.REWIND_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#REWIND_POLICY_CHANGED}. + * + *

(team_policies) Changed Rewind policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#REWIND_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType rewindPolicyChanged(RewindPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndRewindPolicyChanged(Tag.REWIND_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed Rewind policy for team + * + *

This instance must be tagged as {@link Tag#REWIND_POLICY_CHANGED}. + *

+ * + * @return The {@link RewindPolicyChangedType} value associated with this + * instance if {@link #isRewindPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link #isRewindPolicyChanged} is + * {@code false}. + */ + public RewindPolicyChangedType getRewindPolicyChangedValue() { + if (this._tag != Tag.REWIND_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.REWIND_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return rewindPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isSendForSignaturePolicyChanged() { + return this._tag == Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED}. + * + *

(team_policies) Changed send for signature policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sendForSignaturePolicyChanged(SendForSignaturePolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSendForSignaturePolicyChanged(Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed send for signature policy for team + * + *

This instance must be tagged as {@link + * Tag#SEND_FOR_SIGNATURE_POLICY_CHANGED}.

+ * + * @return The {@link SendForSignaturePolicyChangedType} value associated + * with this instance if {@link #isSendForSignaturePolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSendForSignaturePolicyChanged} is {@code false}. + */ + public SendForSignaturePolicyChangedType getSendForSignaturePolicyChangedValue() { + if (this._tag != Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.SEND_FOR_SIGNATURE_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return sendForSignaturePolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY}, {@code false} otherwise. + */ + public boolean isSharingChangeFolderJoinPolicy() { + return this._tag == Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY}. + * + *

(team_policies) Changed whether team members can join shared folders + * owned outside team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharingChangeFolderJoinPolicy(SharingChangeFolderJoinPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharingChangeFolderJoinPolicy(Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY, value); + } + + /** + * (team_policies) Changed whether team members can join shared folders + * owned outside team + * + *

This instance must be tagged as {@link + * Tag#SHARING_CHANGE_FOLDER_JOIN_POLICY}.

+ * + * @return The {@link SharingChangeFolderJoinPolicyType} value associated + * with this instance if {@link #isSharingChangeFolderJoinPolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeFolderJoinPolicy} is {@code false}. + */ + public SharingChangeFolderJoinPolicyType getSharingChangeFolderJoinPolicyValue() { + if (this._tag != Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_FOLDER_JOIN_POLICY, but was Tag." + this._tag.name()); + } + return sharingChangeFolderJoinPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY}, {@code + * false} otherwise. + */ + public boolean isSharingChangeLinkAllowChangeExpirationPolicy() { + return this._tag == Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY}. + * + *

(team_policies) Changed the allow remove or change expiration policy + * for the links shared outside of the team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharingChangeLinkAllowChangeExpirationPolicy(SharingChangeLinkAllowChangeExpirationPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharingChangeLinkAllowChangeExpirationPolicy(Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY, value); + } + + /** + * (team_policies) Changed the allow remove or change expiration policy for + * the links shared outside of the team + * + *

This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY}.

+ * + * @return The {@link SharingChangeLinkAllowChangeExpirationPolicyType} + * value associated with this instance if {@link + * #isSharingChangeLinkAllowChangeExpirationPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeLinkAllowChangeExpirationPolicy} is {@code false}. + */ + public SharingChangeLinkAllowChangeExpirationPolicyType getSharingChangeLinkAllowChangeExpirationPolicyValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY, but was Tag." + this._tag.name()); + } + return sharingChangeLinkAllowChangeExpirationPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY}, {@code false} + * otherwise. + */ + public boolean isSharingChangeLinkDefaultExpirationPolicy() { + return this._tag == Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY}. + * + *

(team_policies) Changed the default expiration for the links shared + * outside of the team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharingChangeLinkDefaultExpirationPolicy(SharingChangeLinkDefaultExpirationPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharingChangeLinkDefaultExpirationPolicy(Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY, value); + } + + /** + * (team_policies) Changed the default expiration for the links shared + * outside of the team + * + *

This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY}.

+ * + * @return The {@link SharingChangeLinkDefaultExpirationPolicyType} value + * associated with this instance if {@link + * #isSharingChangeLinkDefaultExpirationPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeLinkDefaultExpirationPolicy} is {@code false}. + */ + public SharingChangeLinkDefaultExpirationPolicyType getSharingChangeLinkDefaultExpirationPolicyValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY, but was Tag." + this._tag.name()); + } + return sharingChangeLinkDefaultExpirationPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY}, {@code false} + * otherwise. + */ + public boolean isSharingChangeLinkEnforcePasswordPolicy() { + return this._tag == Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY}. + * + *

(team_policies) Changed the password requirement for the links shared + * outside of the team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharingChangeLinkEnforcePasswordPolicy(SharingChangeLinkEnforcePasswordPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharingChangeLinkEnforcePasswordPolicy(Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY, value); + } + + /** + * (team_policies) Changed the password requirement for the links shared + * outside of the team + * + *

This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY}.

+ * + * @return The {@link SharingChangeLinkEnforcePasswordPolicyType} value + * associated with this instance if {@link + * #isSharingChangeLinkEnforcePasswordPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isSharingChangeLinkEnforcePasswordPolicy} is {@code false}. + */ + public SharingChangeLinkEnforcePasswordPolicyType getSharingChangeLinkEnforcePasswordPolicyValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY, but was Tag." + this._tag.name()); + } + return sharingChangeLinkEnforcePasswordPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_LINK_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_LINK_POLICY}, {@code false} otherwise. + */ + public boolean isSharingChangeLinkPolicy() { + return this._tag == Tag.SHARING_CHANGE_LINK_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARING_CHANGE_LINK_POLICY}. + * + *

(team_policies) Changed whether members can share links outside team, + * and if links are accessible only by team members or anyone by default + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARING_CHANGE_LINK_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharingChangeLinkPolicy(SharingChangeLinkPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharingChangeLinkPolicy(Tag.SHARING_CHANGE_LINK_POLICY, value); + } + + /** + * (team_policies) Changed whether members can share links outside team, and + * if links are accessible only by team members or anyone by default + * + *

This instance must be tagged as {@link + * Tag#SHARING_CHANGE_LINK_POLICY}.

+ * + * @return The {@link SharingChangeLinkPolicyType} value associated with + * this instance if {@link #isSharingChangeLinkPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isSharingChangeLinkPolicy} is + * {@code false}. + */ + public SharingChangeLinkPolicyType getSharingChangeLinkPolicyValue() { + if (this._tag != Tag.SHARING_CHANGE_LINK_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_LINK_POLICY, but was Tag." + this._tag.name()); + } + return sharingChangeLinkPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY}, {@code false} otherwise. + */ + public boolean isSharingChangeMemberPolicy() { + return this._tag == Tag.SHARING_CHANGE_MEMBER_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY}. + * + *

(team_policies) Changed whether members can share files/folders + * outside team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType sharingChangeMemberPolicy(SharingChangeMemberPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSharingChangeMemberPolicy(Tag.SHARING_CHANGE_MEMBER_POLICY, value); + } + + /** + * (team_policies) Changed whether members can share files/folders outside + * team + * + *

This instance must be tagged as {@link + * Tag#SHARING_CHANGE_MEMBER_POLICY}.

+ * + * @return The {@link SharingChangeMemberPolicyType} value associated with + * this instance if {@link #isSharingChangeMemberPolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isSharingChangeMemberPolicy} is + * {@code false}. + */ + public SharingChangeMemberPolicyType getSharingChangeMemberPolicyValue() { + if (this._tag != Tag.SHARING_CHANGE_MEMBER_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHARING_CHANGE_MEMBER_POLICY, but was Tag." + this._tag.name()); + } + return sharingChangeMemberPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY}, {@code false} otherwise. + */ + public boolean isShowcaseChangeDownloadPolicy() { + return this._tag == Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY}. + * + *

(team_policies) Enabled/disabled downloading files from Dropbox + * Showcase for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseChangeDownloadPolicy(ShowcaseChangeDownloadPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseChangeDownloadPolicy(Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled downloading files from Dropbox Showcase + * for team + * + *

This instance must be tagged as {@link + * Tag#SHOWCASE_CHANGE_DOWNLOAD_POLICY}.

+ * + * @return The {@link ShowcaseChangeDownloadPolicyType} value associated + * with this instance if {@link #isShowcaseChangeDownloadPolicy} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isShowcaseChangeDownloadPolicy} + * is {@code false}. + */ + public ShowcaseChangeDownloadPolicyType getShowcaseChangeDownloadPolicyValue() { + if (this._tag != Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CHANGE_DOWNLOAD_POLICY, but was Tag." + this._tag.name()); + } + return showcaseChangeDownloadPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY}, {@code false} otherwise. + */ + public boolean isShowcaseChangeEnabledPolicy() { + return this._tag == Tag.SHOWCASE_CHANGE_ENABLED_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY}. + * + *

(team_policies) Enabled/disabled Dropbox Showcase for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseChangeEnabledPolicy(ShowcaseChangeEnabledPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseChangeEnabledPolicy(Tag.SHOWCASE_CHANGE_ENABLED_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled Dropbox Showcase for team + * + *

This instance must be tagged as {@link + * Tag#SHOWCASE_CHANGE_ENABLED_POLICY}.

+ * + * @return The {@link ShowcaseChangeEnabledPolicyType} value associated with + * this instance if {@link #isShowcaseChangeEnabledPolicy} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isShowcaseChangeEnabledPolicy} + * is {@code false}. + */ + public ShowcaseChangeEnabledPolicyType getShowcaseChangeEnabledPolicyValue() { + if (this._tag != Tag.SHOWCASE_CHANGE_ENABLED_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CHANGE_ENABLED_POLICY, but was Tag." + this._tag.name()); + } + return showcaseChangeEnabledPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY}, {@code false} + * otherwise. + */ + public boolean isShowcaseChangeExternalSharingPolicy() { + return this._tag == Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY}. + * + *

(team_policies) Enabled/disabled sharing Dropbox Showcase externally + * for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType showcaseChangeExternalSharingPolicy(ShowcaseChangeExternalSharingPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndShowcaseChangeExternalSharingPolicy(Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled sharing Dropbox Showcase externally for + * team + * + *

This instance must be tagged as {@link + * Tag#SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY}.

+ * + * @return The {@link ShowcaseChangeExternalSharingPolicyType} value + * associated with this instance if {@link + * #isShowcaseChangeExternalSharingPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isShowcaseChangeExternalSharingPolicy} is {@code false}. + */ + public ShowcaseChangeExternalSharingPolicyType getShowcaseChangeExternalSharingPolicyValue() { + if (this._tag != Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY, but was Tag." + this._tag.name()); + } + return showcaseChangeExternalSharingPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isSmarterSmartSyncPolicyChanged() { + return this._tag == Tag.SMARTER_SMART_SYNC_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED}. + * + *

(team_policies) Changed automatic Smart Sync setting for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType smarterSmartSyncPolicyChanged(SmarterSmartSyncPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSmarterSmartSyncPolicyChanged(Tag.SMARTER_SMART_SYNC_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed automatic Smart Sync setting for team + * + *

This instance must be tagged as {@link + * Tag#SMARTER_SMART_SYNC_POLICY_CHANGED}.

+ * + * @return The {@link SmarterSmartSyncPolicyChangedType} value associated + * with this instance if {@link #isSmarterSmartSyncPolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isSmarterSmartSyncPolicyChanged} is {@code false}. + */ + public SmarterSmartSyncPolicyChangedType getSmarterSmartSyncPolicyChangedValue() { + if (this._tag != Tag.SMARTER_SMART_SYNC_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.SMARTER_SMART_SYNC_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return smarterSmartSyncPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isSmartSyncChangePolicy() { + return this._tag == Tag.SMART_SYNC_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SMART_SYNC_CHANGE_POLICY}. + * + *

(team_policies) Changed default Smart Sync setting for team members + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SMART_SYNC_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType smartSyncChangePolicy(SmartSyncChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSmartSyncChangePolicy(Tag.SMART_SYNC_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed default Smart Sync setting for team members + * + *

This instance must be tagged as {@link Tag#SMART_SYNC_CHANGE_POLICY}. + *

+ * + * @return The {@link SmartSyncChangePolicyType} value associated with this + * instance if {@link #isSmartSyncChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isSmartSyncChangePolicy} is + * {@code false}. + */ + public SmartSyncChangePolicyType getSmartSyncChangePolicyValue() { + if (this._tag != Tag.SMART_SYNC_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return smartSyncChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_NOT_OPT_OUT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_NOT_OPT_OUT}, {@code false} otherwise. + */ + public boolean isSmartSyncNotOptOut() { + return this._tag == Tag.SMART_SYNC_NOT_OPT_OUT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SMART_SYNC_NOT_OPT_OUT}. + * + *

(team_policies) Opted team into Smart Sync

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SMART_SYNC_NOT_OPT_OUT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType smartSyncNotOptOut(SmartSyncNotOptOutType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSmartSyncNotOptOut(Tag.SMART_SYNC_NOT_OPT_OUT, value); + } + + /** + * (team_policies) Opted team into Smart Sync + * + *

This instance must be tagged as {@link Tag#SMART_SYNC_NOT_OPT_OUT}. + *

+ * + * @return The {@link SmartSyncNotOptOutType} value associated with this + * instance if {@link #isSmartSyncNotOptOut} is {@code true}. + * + * @throws IllegalStateException If {@link #isSmartSyncNotOptOut} is {@code + * false}. + */ + public SmartSyncNotOptOutType getSmartSyncNotOptOutValue() { + if (this._tag != Tag.SMART_SYNC_NOT_OPT_OUT) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_NOT_OPT_OUT, but was Tag." + this._tag.name()); + } + return smartSyncNotOptOutValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SMART_SYNC_OPT_OUT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SMART_SYNC_OPT_OUT}, {@code false} otherwise. + */ + public boolean isSmartSyncOptOut() { + return this._tag == Tag.SMART_SYNC_OPT_OUT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SMART_SYNC_OPT_OUT}. + * + *

(team_policies) Opted team out of Smart Sync

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SMART_SYNC_OPT_OUT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType smartSyncOptOut(SmartSyncOptOutType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSmartSyncOptOut(Tag.SMART_SYNC_OPT_OUT, value); + } + + /** + * (team_policies) Opted team out of Smart Sync + * + *

This instance must be tagged as {@link Tag#SMART_SYNC_OPT_OUT}.

+ * + * @return The {@link SmartSyncOptOutType} value associated with this + * instance if {@link #isSmartSyncOptOut} is {@code true}. + * + * @throws IllegalStateException If {@link #isSmartSyncOptOut} is {@code + * false}. + */ + public SmartSyncOptOutType getSmartSyncOptOutValue() { + if (this._tag != Tag.SMART_SYNC_OPT_OUT) { + throw new IllegalStateException("Invalid tag: required Tag.SMART_SYNC_OPT_OUT, but was Tag." + this._tag.name()); + } + return smartSyncOptOutValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SSO_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SSO_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isSsoChangePolicy() { + return this._tag == Tag.SSO_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#SSO_CHANGE_POLICY}. + * + *

(team_policies) Changed single sign-on setting for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#SSO_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType ssoChangePolicy(SsoChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndSsoChangePolicy(Tag.SSO_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed single sign-on setting for team + * + *

This instance must be tagged as {@link Tag#SSO_CHANGE_POLICY}.

+ * + * @return The {@link SsoChangePolicyType} value associated with this + * instance if {@link #isSsoChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isSsoChangePolicy} is {@code + * false}. + */ + public SsoChangePolicyType getSsoChangePolicyValue() { + if (this._tag != Tag.SSO_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.SSO_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return ssoChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isTeamBrandingPolicyChanged() { + return this._tag == Tag.TEAM_BRANDING_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED}. + * + *

(team_policies) Changed team branding policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamBrandingPolicyChanged(TeamBrandingPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamBrandingPolicyChanged(Tag.TEAM_BRANDING_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed team branding policy for team + * + *

This instance must be tagged as {@link + * Tag#TEAM_BRANDING_POLICY_CHANGED}.

+ * + * @return The {@link TeamBrandingPolicyChangedType} value associated with + * this instance if {@link #isTeamBrandingPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamBrandingPolicyChanged} is + * {@code false}. + */ + public TeamBrandingPolicyChangedType getTeamBrandingPolicyChangedValue() { + if (this._tag != Tag.TEAM_BRANDING_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_BRANDING_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return teamBrandingPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isTeamExtensionsPolicyChanged() { + return this._tag == Tag.TEAM_EXTENSIONS_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED}. + * + *

(team_policies) Changed App Integrations setting for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamExtensionsPolicyChanged(TeamExtensionsPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamExtensionsPolicyChanged(Tag.TEAM_EXTENSIONS_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed App Integrations setting for team + * + *

This instance must be tagged as {@link + * Tag#TEAM_EXTENSIONS_POLICY_CHANGED}.

+ * + * @return The {@link TeamExtensionsPolicyChangedType} value associated with + * this instance if {@link #isTeamExtensionsPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamExtensionsPolicyChanged} + * is {@code false}. + */ + public TeamExtensionsPolicyChangedType getTeamExtensionsPolicyChangedValue() { + if (this._tag != Tag.TEAM_EXTENSIONS_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_EXTENSIONS_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return teamExtensionsPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isTeamSelectiveSyncPolicyChanged() { + return this._tag == Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED}. + * + *

(team_policies) Enabled/disabled Team Selective Sync for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamSelectiveSyncPolicyChanged(TeamSelectiveSyncPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamSelectiveSyncPolicyChanged(Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED, value); + } + + /** + * (team_policies) Enabled/disabled Team Selective Sync for team + * + *

This instance must be tagged as {@link + * Tag#TEAM_SELECTIVE_SYNC_POLICY_CHANGED}.

+ * + * @return The {@link TeamSelectiveSyncPolicyChangedType} value associated + * with this instance if {@link #isTeamSelectiveSyncPolicyChanged} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamSelectiveSyncPolicyChanged} is {@code false}. + */ + public TeamSelectiveSyncPolicyChangedType getTeamSelectiveSyncPolicyChangedValue() { + if (this._tag != Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SELECTIVE_SYNC_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return teamSelectiveSyncPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED}, {@code false} + * otherwise. + */ + public boolean isTeamSharingWhitelistSubjectsChanged() { + return this._tag == Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED}. + * + *

(team_policies) Edited the approved list for sharing externally

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamSharingWhitelistSubjectsChanged(TeamSharingWhitelistSubjectsChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamSharingWhitelistSubjectsChanged(Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED, value); + } + + /** + * (team_policies) Edited the approved list for sharing externally + * + *

This instance must be tagged as {@link + * Tag#TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED}.

+ * + * @return The {@link TeamSharingWhitelistSubjectsChangedType} value + * associated with this instance if {@link + * #isTeamSharingWhitelistSubjectsChanged} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamSharingWhitelistSubjectsChanged} is {@code false}. + */ + public TeamSharingWhitelistSubjectsChangedType getTeamSharingWhitelistSubjectsChangedValue() { + if (this._tag != Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED, but was Tag." + this._tag.name()); + } + return teamSharingWhitelistSubjectsChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_ADD_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_ADD_EXCEPTION}, {@code false} otherwise. + */ + public boolean isTfaAddException() { + return this._tag == Tag.TFA_ADD_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_ADD_EXCEPTION}. + * + *

(team_policies) Added members to two factor authentication exception + * list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_ADD_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaAddException(TfaAddExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaAddException(Tag.TFA_ADD_EXCEPTION, value); + } + + /** + * (team_policies) Added members to two factor authentication exception list + * + *

This instance must be tagged as {@link Tag#TFA_ADD_EXCEPTION}.

+ * + * @return The {@link TfaAddExceptionType} value associated with this + * instance if {@link #isTfaAddException} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaAddException} is {@code + * false}. + */ + public TfaAddExceptionType getTfaAddExceptionValue() { + if (this._tag != Tag.TFA_ADD_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_ADD_EXCEPTION, but was Tag." + this._tag.name()); + } + return tfaAddExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isTfaChangePolicy() { + return this._tag == Tag.TFA_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_CHANGE_POLICY}. + * + *

(team_policies) Changed two-step verification setting for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaChangePolicy(TfaChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaChangePolicy(Tag.TFA_CHANGE_POLICY, value); + } + + /** + * (team_policies) Changed two-step verification setting for team + * + *

This instance must be tagged as {@link Tag#TFA_CHANGE_POLICY}.

+ * + * @return The {@link TfaChangePolicyType} value associated with this + * instance if {@link #isTfaChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaChangePolicy} is {@code + * false}. + */ + public TfaChangePolicyType getTfaChangePolicyValue() { + if (this._tag != Tag.TFA_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return tfaChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_REMOVE_EXCEPTION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_REMOVE_EXCEPTION}, {@code false} otherwise. + */ + public boolean isTfaRemoveException() { + return this._tag == Tag.TFA_REMOVE_EXCEPTION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_REMOVE_EXCEPTION}. + * + *

(team_policies) Removed members from two factor authentication + * exception list

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_REMOVE_EXCEPTION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaRemoveException(TfaRemoveExceptionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaRemoveException(Tag.TFA_REMOVE_EXCEPTION, value); + } + + /** + * (team_policies) Removed members from two factor authentication exception + * list + * + *

This instance must be tagged as {@link Tag#TFA_REMOVE_EXCEPTION}. + *

+ * + * @return The {@link TfaRemoveExceptionType} value associated with this + * instance if {@link #isTfaRemoveException} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaRemoveException} is {@code + * false}. + */ + public TfaRemoveExceptionType getTfaRemoveExceptionValue() { + if (this._tag != Tag.TFA_REMOVE_EXCEPTION) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_REMOVE_EXCEPTION, but was Tag." + this._tag.name()); + } + return tfaRemoveExceptionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY}, {@code false} otherwise. + */ + public boolean isTwoAccountChangePolicy() { + return this._tag == Tag.TWO_ACCOUNT_CHANGE_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY}. + * + *

(team_policies) Enabled/disabled option for members to link personal + * Dropbox account and team account to same computer

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType twoAccountChangePolicy(TwoAccountChangePolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTwoAccountChangePolicy(Tag.TWO_ACCOUNT_CHANGE_POLICY, value); + } + + /** + * (team_policies) Enabled/disabled option for members to link personal + * Dropbox account and team account to same computer + * + *

This instance must be tagged as {@link + * Tag#TWO_ACCOUNT_CHANGE_POLICY}.

+ * + * @return The {@link TwoAccountChangePolicyType} value associated with this + * instance if {@link #isTwoAccountChangePolicy} is {@code true}. + * + * @throws IllegalStateException If {@link #isTwoAccountChangePolicy} is + * {@code false}. + */ + public TwoAccountChangePolicyType getTwoAccountChangePolicyValue() { + if (this._tag != Tag.TWO_ACCOUNT_CHANGE_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.TWO_ACCOUNT_CHANGE_POLICY, but was Tag." + this._tag.name()); + } + return twoAccountChangePolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#VIEWER_INFO_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#VIEWER_INFO_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isViewerInfoPolicyChanged() { + return this._tag == Tag.VIEWER_INFO_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#VIEWER_INFO_POLICY_CHANGED}. + * + *

(team_policies) Changed team policy for viewer info

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#VIEWER_INFO_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType viewerInfoPolicyChanged(ViewerInfoPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndViewerInfoPolicyChanged(Tag.VIEWER_INFO_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed team policy for viewer info + * + *

This instance must be tagged as {@link + * Tag#VIEWER_INFO_POLICY_CHANGED}.

+ * + * @return The {@link ViewerInfoPolicyChangedType} value associated with + * this instance if {@link #isViewerInfoPolicyChanged} is {@code true}. + * + * @throws IllegalStateException If {@link #isViewerInfoPolicyChanged} is + * {@code false}. + */ + public ViewerInfoPolicyChangedType getViewerInfoPolicyChangedValue() { + if (this._tag != Tag.VIEWER_INFO_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.VIEWER_INFO_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return viewerInfoPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WATERMARKING_POLICY_CHANGED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WATERMARKING_POLICY_CHANGED}, {@code false} otherwise. + */ + public boolean isWatermarkingPolicyChanged() { + return this._tag == Tag.WATERMARKING_POLICY_CHANGED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#WATERMARKING_POLICY_CHANGED}. + * + *

(team_policies) Changed watermarking policy for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#WATERMARKING_POLICY_CHANGED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType watermarkingPolicyChanged(WatermarkingPolicyChangedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndWatermarkingPolicyChanged(Tag.WATERMARKING_POLICY_CHANGED, value); + } + + /** + * (team_policies) Changed watermarking policy for team + * + *

This instance must be tagged as {@link + * Tag#WATERMARKING_POLICY_CHANGED}.

+ * + * @return The {@link WatermarkingPolicyChangedType} value associated with + * this instance if {@link #isWatermarkingPolicyChanged} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isWatermarkingPolicyChanged} is + * {@code false}. + */ + public WatermarkingPolicyChangedType getWatermarkingPolicyChangedValue() { + if (this._tag != Tag.WATERMARKING_POLICY_CHANGED) { + throw new IllegalStateException("Invalid tag: required Tag.WATERMARKING_POLICY_CHANGED, but was Tag." + this._tag.name()); + } + return watermarkingPolicyChangedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT}, {@code false} + * otherwise. + */ + public boolean isWebSessionsChangeActiveSessionLimit() { + return this._tag == Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT}. + * + *

(team_policies) Changed limit on active sessions per member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType webSessionsChangeActiveSessionLimit(WebSessionsChangeActiveSessionLimitType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndWebSessionsChangeActiveSessionLimit(Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT, value); + } + + /** + * (team_policies) Changed limit on active sessions per member + * + *

This instance must be tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT}.

+ * + * @return The {@link WebSessionsChangeActiveSessionLimitType} value + * associated with this instance if {@link + * #isWebSessionsChangeActiveSessionLimit} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isWebSessionsChangeActiveSessionLimit} is {@code false}. + */ + public WebSessionsChangeActiveSessionLimitType getWebSessionsChangeActiveSessionLimitValue() { + if (this._tag != Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT, but was Tag." + this._tag.name()); + } + return webSessionsChangeActiveSessionLimitValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY}, {@code false} + * otherwise. + */ + public boolean isWebSessionsChangeFixedLengthPolicy() { + return this._tag == Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY}. + * + *

(team_policies) Changed how long members can stay signed in to + * Dropbox.com

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType webSessionsChangeFixedLengthPolicy(WebSessionsChangeFixedLengthPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndWebSessionsChangeFixedLengthPolicy(Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY, value); + } + + /** + * (team_policies) Changed how long members can stay signed in to + * Dropbox.com + * + *

This instance must be tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY}.

+ * + * @return The {@link WebSessionsChangeFixedLengthPolicyType} value + * associated with this instance if {@link + * #isWebSessionsChangeFixedLengthPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isWebSessionsChangeFixedLengthPolicy} is {@code false}. + */ + public WebSessionsChangeFixedLengthPolicyType getWebSessionsChangeFixedLengthPolicyValue() { + if (this._tag != Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY, but was Tag." + this._tag.name()); + } + return webSessionsChangeFixedLengthPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY}, {@code false} otherwise. + */ + public boolean isWebSessionsChangeIdleLengthPolicy() { + return this._tag == Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY}. + * + *

(team_policies) Changed how long team members can be idle while + * signed in to Dropbox.com

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType webSessionsChangeIdleLengthPolicy(WebSessionsChangeIdleLengthPolicyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndWebSessionsChangeIdleLengthPolicy(Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY, value); + } + + /** + * (team_policies) Changed how long team members can be idle while signed in + * to Dropbox.com + * + *

This instance must be tagged as {@link + * Tag#WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY}.

+ * + * @return The {@link WebSessionsChangeIdleLengthPolicyType} value + * associated with this instance if {@link + * #isWebSessionsChangeIdleLengthPolicy} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isWebSessionsChangeIdleLengthPolicy} is {@code false}. + */ + public WebSessionsChangeIdleLengthPolicyType getWebSessionsChangeIdleLengthPolicyValue() { + if (this._tag != Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY, but was Tag." + this._tag.name()); + } + return webSessionsChangeIdleLengthPolicyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL}, {@code false} + * otherwise. + */ + public boolean isDataResidencyMigrationRequestSuccessful() { + return this._tag == Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL}. + * + *

(team_profile) Requested data residency migration for team data

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType dataResidencyMigrationRequestSuccessful(DataResidencyMigrationRequestSuccessfulType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDataResidencyMigrationRequestSuccessful(Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL, value); + } + + /** + * (team_profile) Requested data residency migration for team data + * + *

This instance must be tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL}.

+ * + * @return The {@link DataResidencyMigrationRequestSuccessfulType} value + * associated with this instance if {@link + * #isDataResidencyMigrationRequestSuccessful} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataResidencyMigrationRequestSuccessful} is {@code false}. + */ + public DataResidencyMigrationRequestSuccessfulType getDataResidencyMigrationRequestSuccessfulValue() { + if (this._tag != Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL, but was Tag." + this._tag.name()); + } + return dataResidencyMigrationRequestSuccessfulValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL}, {@code false} + * otherwise. + */ + public boolean isDataResidencyMigrationRequestUnsuccessful() { + return this._tag == Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL}. + * + *

(team_profile) Request for data residency migration for team data has + * failed

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType dataResidencyMigrationRequestUnsuccessful(DataResidencyMigrationRequestUnsuccessfulType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndDataResidencyMigrationRequestUnsuccessful(Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL, value); + } + + /** + * (team_profile) Request for data residency migration for team data has + * failed + * + *

This instance must be tagged as {@link + * Tag#DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL}.

+ * + * @return The {@link DataResidencyMigrationRequestUnsuccessfulType} value + * associated with this instance if {@link + * #isDataResidencyMigrationRequestUnsuccessful} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isDataResidencyMigrationRequestUnsuccessful} is {@code false}. + */ + public DataResidencyMigrationRequestUnsuccessfulType getDataResidencyMigrationRequestUnsuccessfulValue() { + if (this._tag != Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL) { + throw new IllegalStateException("Invalid tag: required Tag.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL, but was Tag." + this._tag.name()); + } + return dataResidencyMigrationRequestUnsuccessfulValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_FROM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_FROM}, {@code false} otherwise. + */ + public boolean isTeamMergeFrom() { + return this._tag == Tag.TEAM_MERGE_FROM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_FROM}. + * + *

(team_profile) Merged another team into this team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_FROM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeFrom(TeamMergeFromType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeFrom(Tag.TEAM_MERGE_FROM, value); + } + + /** + * (team_profile) Merged another team into this team + * + *

This instance must be tagged as {@link Tag#TEAM_MERGE_FROM}.

+ * + * @return The {@link TeamMergeFromType} value associated with this instance + * if {@link #isTeamMergeFrom} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeFrom} is {@code + * false}. + */ + public TeamMergeFromType getTeamMergeFromValue() { + if (this._tag != Tag.TEAM_MERGE_FROM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_FROM, but was Tag." + this._tag.name()); + } + return teamMergeFromValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_TO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_TO}, {@code false} otherwise. + */ + public boolean isTeamMergeTo() { + return this._tag == Tag.TEAM_MERGE_TO; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_TO}. + * + *

(team_profile) Merged this team into another team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_TO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeTo(TeamMergeToType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeTo(Tag.TEAM_MERGE_TO, value); + } + + /** + * (team_profile) Merged this team into another team + * + *

This instance must be tagged as {@link Tag#TEAM_MERGE_TO}.

+ * + * @return The {@link TeamMergeToType} value associated with this instance + * if {@link #isTeamMergeTo} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeTo} is {@code + * false}. + */ + public TeamMergeToType getTeamMergeToValue() { + if (this._tag != Tag.TEAM_MERGE_TO) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_TO, but was Tag." + this._tag.name()); + } + return teamMergeToValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND}, {@code false} otherwise. + */ + public boolean isTeamProfileAddBackground() { + return this._tag == Tag.TEAM_PROFILE_ADD_BACKGROUND; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND}. + * + *

(team_profile) Added team background to display on shared link + * headers

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileAddBackground(TeamProfileAddBackgroundType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileAddBackground(Tag.TEAM_PROFILE_ADD_BACKGROUND, value); + } + + /** + * (team_profile) Added team background to display on shared link headers + * + *

This instance must be tagged as {@link + * Tag#TEAM_PROFILE_ADD_BACKGROUND}.

+ * + * @return The {@link TeamProfileAddBackgroundType} value associated with + * this instance if {@link #isTeamProfileAddBackground} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamProfileAddBackground} is + * {@code false}. + */ + public TeamProfileAddBackgroundType getTeamProfileAddBackgroundValue() { + if (this._tag != Tag.TEAM_PROFILE_ADD_BACKGROUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_ADD_BACKGROUND, but was Tag." + this._tag.name()); + } + return teamProfileAddBackgroundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_ADD_LOGO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_ADD_LOGO}, {@code false} otherwise. + */ + public boolean isTeamProfileAddLogo() { + return this._tag == Tag.TEAM_PROFILE_ADD_LOGO; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_ADD_LOGO}. + * + *

(team_profile) Added team logo to display on shared link headers

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_ADD_LOGO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileAddLogo(TeamProfileAddLogoType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileAddLogo(Tag.TEAM_PROFILE_ADD_LOGO, value); + } + + /** + * (team_profile) Added team logo to display on shared link headers + * + *

This instance must be tagged as {@link Tag#TEAM_PROFILE_ADD_LOGO}. + *

+ * + * @return The {@link TeamProfileAddLogoType} value associated with this + * instance if {@link #isTeamProfileAddLogo} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamProfileAddLogo} is {@code + * false}. + */ + public TeamProfileAddLogoType getTeamProfileAddLogoValue() { + if (this._tag != Tag.TEAM_PROFILE_ADD_LOGO) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_ADD_LOGO, but was Tag." + this._tag.name()); + } + return teamProfileAddLogoValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND}, {@code false} otherwise. + */ + public boolean isTeamProfileChangeBackground() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_BACKGROUND; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND}. + * + *

(team_profile) Changed team background displayed on shared link + * headers

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileChangeBackground(TeamProfileChangeBackgroundType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileChangeBackground(Tag.TEAM_PROFILE_CHANGE_BACKGROUND, value); + } + + /** + * (team_profile) Changed team background displayed on shared link headers + * + *

This instance must be tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_BACKGROUND}.

+ * + * @return The {@link TeamProfileChangeBackgroundType} value associated with + * this instance if {@link #isTeamProfileChangeBackground} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamProfileChangeBackground} + * is {@code false}. + */ + public TeamProfileChangeBackgroundType getTeamProfileChangeBackgroundValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_BACKGROUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_BACKGROUND, but was Tag." + this._tag.name()); + } + return teamProfileChangeBackgroundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE}, {@code false} otherwise. + */ + public boolean isTeamProfileChangeDefaultLanguage() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE}. + * + *

(team_profile) Changed default language for team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileChangeDefaultLanguage(TeamProfileChangeDefaultLanguageType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileChangeDefaultLanguage(Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE, value); + } + + /** + * (team_profile) Changed default language for team + * + *

This instance must be tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE}.

+ * + * @return The {@link TeamProfileChangeDefaultLanguageType} value associated + * with this instance if {@link #isTeamProfileChangeDefaultLanguage} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamProfileChangeDefaultLanguage} is {@code false}. + */ + public TeamProfileChangeDefaultLanguageType getTeamProfileChangeDefaultLanguageValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE, but was Tag." + this._tag.name()); + } + return teamProfileChangeDefaultLanguageValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO}, {@code false} otherwise. + */ + public boolean isTeamProfileChangeLogo() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_LOGO; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO}. + * + *

(team_profile) Changed team logo displayed on shared link headers + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_LOGO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileChangeLogo(TeamProfileChangeLogoType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileChangeLogo(Tag.TEAM_PROFILE_CHANGE_LOGO, value); + } + + /** + * (team_profile) Changed team logo displayed on shared link headers + * + *

This instance must be tagged as {@link Tag#TEAM_PROFILE_CHANGE_LOGO}. + *

+ * + * @return The {@link TeamProfileChangeLogoType} value associated with this + * instance if {@link #isTeamProfileChangeLogo} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamProfileChangeLogo} is + * {@code false}. + */ + public TeamProfileChangeLogoType getTeamProfileChangeLogoValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_LOGO) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_LOGO, but was Tag." + this._tag.name()); + } + return teamProfileChangeLogoValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_CHANGE_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_CHANGE_NAME}, {@code false} otherwise. + */ + public boolean isTeamProfileChangeName() { + return this._tag == Tag.TEAM_PROFILE_CHANGE_NAME; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_NAME}. + * + *

(team_profile) Changed team name

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_CHANGE_NAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileChangeName(TeamProfileChangeNameType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileChangeName(Tag.TEAM_PROFILE_CHANGE_NAME, value); + } + + /** + * (team_profile) Changed team name + * + *

This instance must be tagged as {@link Tag#TEAM_PROFILE_CHANGE_NAME}. + *

+ * + * @return The {@link TeamProfileChangeNameType} value associated with this + * instance if {@link #isTeamProfileChangeName} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamProfileChangeName} is + * {@code false}. + */ + public TeamProfileChangeNameType getTeamProfileChangeNameValue() { + if (this._tag != Tag.TEAM_PROFILE_CHANGE_NAME) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_CHANGE_NAME, but was Tag." + this._tag.name()); + } + return teamProfileChangeNameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND}, {@code false} otherwise. + */ + public boolean isTeamProfileRemoveBackground() { + return this._tag == Tag.TEAM_PROFILE_REMOVE_BACKGROUND; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND}. + * + *

(team_profile) Removed team background displayed on shared link + * headers

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileRemoveBackground(TeamProfileRemoveBackgroundType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileRemoveBackground(Tag.TEAM_PROFILE_REMOVE_BACKGROUND, value); + } + + /** + * (team_profile) Removed team background displayed on shared link headers + * + *

This instance must be tagged as {@link + * Tag#TEAM_PROFILE_REMOVE_BACKGROUND}.

+ * + * @return The {@link TeamProfileRemoveBackgroundType} value associated with + * this instance if {@link #isTeamProfileRemoveBackground} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isTeamProfileRemoveBackground} + * is {@code false}. + */ + public TeamProfileRemoveBackgroundType getTeamProfileRemoveBackgroundValue() { + if (this._tag != Tag.TEAM_PROFILE_REMOVE_BACKGROUND) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_REMOVE_BACKGROUND, but was Tag." + this._tag.name()); + } + return teamProfileRemoveBackgroundValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO}, {@code false} otherwise. + */ + public boolean isTeamProfileRemoveLogo() { + return this._tag == Tag.TEAM_PROFILE_REMOVE_LOGO; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO}. + * + *

(team_profile) Removed team logo displayed on shared link headers + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_PROFILE_REMOVE_LOGO}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamProfileRemoveLogo(TeamProfileRemoveLogoType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamProfileRemoveLogo(Tag.TEAM_PROFILE_REMOVE_LOGO, value); + } + + /** + * (team_profile) Removed team logo displayed on shared link headers + * + *

This instance must be tagged as {@link Tag#TEAM_PROFILE_REMOVE_LOGO}. + *

+ * + * @return The {@link TeamProfileRemoveLogoType} value associated with this + * instance if {@link #isTeamProfileRemoveLogo} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamProfileRemoveLogo} is + * {@code false}. + */ + public TeamProfileRemoveLogoType getTeamProfileRemoveLogoValue() { + if (this._tag != Tag.TEAM_PROFILE_REMOVE_LOGO) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_PROFILE_REMOVE_LOGO, but was Tag." + this._tag.name()); + } + return teamProfileRemoveLogoValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_ADD_BACKUP_PHONE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_ADD_BACKUP_PHONE}, {@code false} otherwise. + */ + public boolean isTfaAddBackupPhone() { + return this._tag == Tag.TFA_ADD_BACKUP_PHONE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_ADD_BACKUP_PHONE}. + * + *

(tfa) Added backup phone for two-step verification

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_ADD_BACKUP_PHONE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaAddBackupPhone(TfaAddBackupPhoneType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaAddBackupPhone(Tag.TFA_ADD_BACKUP_PHONE, value); + } + + /** + * (tfa) Added backup phone for two-step verification + * + *

This instance must be tagged as {@link Tag#TFA_ADD_BACKUP_PHONE}. + *

+ * + * @return The {@link TfaAddBackupPhoneType} value associated with this + * instance if {@link #isTfaAddBackupPhone} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaAddBackupPhone} is {@code + * false}. + */ + public TfaAddBackupPhoneType getTfaAddBackupPhoneValue() { + if (this._tag != Tag.TFA_ADD_BACKUP_PHONE) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_ADD_BACKUP_PHONE, but was Tag." + this._tag.name()); + } + return tfaAddBackupPhoneValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_ADD_SECURITY_KEY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_ADD_SECURITY_KEY}, {@code false} otherwise. + */ + public boolean isTfaAddSecurityKey() { + return this._tag == Tag.TFA_ADD_SECURITY_KEY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_ADD_SECURITY_KEY}. + * + *

(tfa) Added security key for two-step verification

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_ADD_SECURITY_KEY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaAddSecurityKey(TfaAddSecurityKeyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaAddSecurityKey(Tag.TFA_ADD_SECURITY_KEY, value); + } + + /** + * (tfa) Added security key for two-step verification + * + *

This instance must be tagged as {@link Tag#TFA_ADD_SECURITY_KEY}. + *

+ * + * @return The {@link TfaAddSecurityKeyType} value associated with this + * instance if {@link #isTfaAddSecurityKey} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaAddSecurityKey} is {@code + * false}. + */ + public TfaAddSecurityKeyType getTfaAddSecurityKeyValue() { + if (this._tag != Tag.TFA_ADD_SECURITY_KEY) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_ADD_SECURITY_KEY, but was Tag." + this._tag.name()); + } + return tfaAddSecurityKeyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_CHANGE_BACKUP_PHONE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_CHANGE_BACKUP_PHONE}, {@code false} otherwise. + */ + public boolean isTfaChangeBackupPhone() { + return this._tag == Tag.TFA_CHANGE_BACKUP_PHONE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_CHANGE_BACKUP_PHONE}. + * + *

(tfa) Changed backup phone for two-step verification

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_CHANGE_BACKUP_PHONE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaChangeBackupPhone(TfaChangeBackupPhoneType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaChangeBackupPhone(Tag.TFA_CHANGE_BACKUP_PHONE, value); + } + + /** + * (tfa) Changed backup phone for two-step verification + * + *

This instance must be tagged as {@link Tag#TFA_CHANGE_BACKUP_PHONE}. + *

+ * + * @return The {@link TfaChangeBackupPhoneType} value associated with this + * instance if {@link #isTfaChangeBackupPhone} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaChangeBackupPhone} is + * {@code false}. + */ + public TfaChangeBackupPhoneType getTfaChangeBackupPhoneValue() { + if (this._tag != Tag.TFA_CHANGE_BACKUP_PHONE) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_CHANGE_BACKUP_PHONE, but was Tag." + this._tag.name()); + } + return tfaChangeBackupPhoneValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_CHANGE_STATUS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_CHANGE_STATUS}, {@code false} otherwise. + */ + public boolean isTfaChangeStatus() { + return this._tag == Tag.TFA_CHANGE_STATUS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_CHANGE_STATUS}. + * + *

(tfa) Enabled/disabled/changed two-step verification setting

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_CHANGE_STATUS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaChangeStatus(TfaChangeStatusType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaChangeStatus(Tag.TFA_CHANGE_STATUS, value); + } + + /** + * (tfa) Enabled/disabled/changed two-step verification setting + * + *

This instance must be tagged as {@link Tag#TFA_CHANGE_STATUS}.

+ * + * @return The {@link TfaChangeStatusType} value associated with this + * instance if {@link #isTfaChangeStatus} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaChangeStatus} is {@code + * false}. + */ + public TfaChangeStatusType getTfaChangeStatusValue() { + if (this._tag != Tag.TFA_CHANGE_STATUS) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_CHANGE_STATUS, but was Tag." + this._tag.name()); + } + return tfaChangeStatusValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_REMOVE_BACKUP_PHONE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_REMOVE_BACKUP_PHONE}, {@code false} otherwise. + */ + public boolean isTfaRemoveBackupPhone() { + return this._tag == Tag.TFA_REMOVE_BACKUP_PHONE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_REMOVE_BACKUP_PHONE}. + * + *

(tfa) Removed backup phone for two-step verification

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_REMOVE_BACKUP_PHONE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaRemoveBackupPhone(TfaRemoveBackupPhoneType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaRemoveBackupPhone(Tag.TFA_REMOVE_BACKUP_PHONE, value); + } + + /** + * (tfa) Removed backup phone for two-step verification + * + *

This instance must be tagged as {@link Tag#TFA_REMOVE_BACKUP_PHONE}. + *

+ * + * @return The {@link TfaRemoveBackupPhoneType} value associated with this + * instance if {@link #isTfaRemoveBackupPhone} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaRemoveBackupPhone} is + * {@code false}. + */ + public TfaRemoveBackupPhoneType getTfaRemoveBackupPhoneValue() { + if (this._tag != Tag.TFA_REMOVE_BACKUP_PHONE) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_REMOVE_BACKUP_PHONE, but was Tag." + this._tag.name()); + } + return tfaRemoveBackupPhoneValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TFA_REMOVE_SECURITY_KEY}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TFA_REMOVE_SECURITY_KEY}, {@code false} otherwise. + */ + public boolean isTfaRemoveSecurityKey() { + return this._tag == Tag.TFA_REMOVE_SECURITY_KEY; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_REMOVE_SECURITY_KEY}. + * + *

(tfa) Removed security key for two-step verification

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_REMOVE_SECURITY_KEY}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaRemoveSecurityKey(TfaRemoveSecurityKeyType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaRemoveSecurityKey(Tag.TFA_REMOVE_SECURITY_KEY, value); + } + + /** + * (tfa) Removed security key for two-step verification + * + *

This instance must be tagged as {@link Tag#TFA_REMOVE_SECURITY_KEY}. + *

+ * + * @return The {@link TfaRemoveSecurityKeyType} value associated with this + * instance if {@link #isTfaRemoveSecurityKey} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaRemoveSecurityKey} is + * {@code false}. + */ + public TfaRemoveSecurityKeyType getTfaRemoveSecurityKeyValue() { + if (this._tag != Tag.TFA_REMOVE_SECURITY_KEY) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_REMOVE_SECURITY_KEY, but was Tag." + this._tag.name()); + } + return tfaRemoveSecurityKeyValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TFA_RESET}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TFA_RESET}, + * {@code false} otherwise. + */ + public boolean isTfaReset() { + return this._tag == Tag.TFA_RESET; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TFA_RESET}. + * + *

(tfa) Reset two-step verification for team member

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TFA_RESET}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType tfaReset(TfaResetType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTfaReset(Tag.TFA_RESET, value); + } + + /** + * (tfa) Reset two-step verification for team member + * + *

This instance must be tagged as {@link Tag#TFA_RESET}.

+ * + * @return The {@link TfaResetType} value associated with this instance if + * {@link #isTfaReset} is {@code true}. + * + * @throws IllegalStateException If {@link #isTfaReset} is {@code false}. + */ + public TfaResetType getTfaResetValue() { + if (this._tag != Tag.TFA_RESET) { + throw new IllegalStateException("Invalid tag: required Tag.TFA_RESET, but was Tag." + this._tag.name()); + } + return tfaResetValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE}, {@code false} otherwise. + */ + public boolean isChangedEnterpriseAdminRole() { + return this._tag == Tag.CHANGED_ENTERPRISE_ADMIN_ROLE; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE}. + * + *

(trusted_teams) Changed enterprise admin role

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType changedEnterpriseAdminRole(ChangedEnterpriseAdminRoleType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndChangedEnterpriseAdminRole(Tag.CHANGED_ENTERPRISE_ADMIN_ROLE, value); + } + + /** + * (trusted_teams) Changed enterprise admin role + * + *

This instance must be tagged as {@link + * Tag#CHANGED_ENTERPRISE_ADMIN_ROLE}.

+ * + * @return The {@link ChangedEnterpriseAdminRoleType} value associated with + * this instance if {@link #isChangedEnterpriseAdminRole} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isChangedEnterpriseAdminRole} + * is {@code false}. + */ + public ChangedEnterpriseAdminRoleType getChangedEnterpriseAdminRoleValue() { + if (this._tag != Tag.CHANGED_ENTERPRISE_ADMIN_ROLE) { + throw new IllegalStateException("Invalid tag: required Tag.CHANGED_ENTERPRISE_ADMIN_ROLE, but was Tag." + this._tag.name()); + } + return changedEnterpriseAdminRoleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS}, {@code false} + * otherwise. + */ + public boolean isChangedEnterpriseConnectedTeamStatus() { + return this._tag == Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS}. + * + *

(trusted_teams) Changed enterprise-connected team status

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType changedEnterpriseConnectedTeamStatus(ChangedEnterpriseConnectedTeamStatusType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndChangedEnterpriseConnectedTeamStatus(Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS, value); + } + + /** + * (trusted_teams) Changed enterprise-connected team status + * + *

This instance must be tagged as {@link + * Tag#CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS}.

+ * + * @return The {@link ChangedEnterpriseConnectedTeamStatusType} value + * associated with this instance if {@link + * #isChangedEnterpriseConnectedTeamStatus} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isChangedEnterpriseConnectedTeamStatus} is {@code false}. + */ + public ChangedEnterpriseConnectedTeamStatusType getChangedEnterpriseConnectedTeamStatusValue() { + if (this._tag != Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS) { + throw new IllegalStateException("Invalid tag: required Tag.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS, but was Tag." + this._tag.name()); + } + return changedEnterpriseConnectedTeamStatusValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION}, {@code false} otherwise. + */ + public boolean isEndedEnterpriseAdminSession() { + return this._tag == Tag.ENDED_ENTERPRISE_ADMIN_SESSION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION}. + * + *

(trusted_teams) Ended enterprise admin session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType endedEnterpriseAdminSession(EndedEnterpriseAdminSessionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEndedEnterpriseAdminSession(Tag.ENDED_ENTERPRISE_ADMIN_SESSION, value); + } + + /** + * (trusted_teams) Ended enterprise admin session + * + *

This instance must be tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION}.

+ * + * @return The {@link EndedEnterpriseAdminSessionType} value associated with + * this instance if {@link #isEndedEnterpriseAdminSession} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isEndedEnterpriseAdminSession} + * is {@code false}. + */ + public EndedEnterpriseAdminSessionType getEndedEnterpriseAdminSessionValue() { + if (this._tag != Tag.ENDED_ENTERPRISE_ADMIN_SESSION) { + throw new IllegalStateException("Invalid tag: required Tag.ENDED_ENTERPRISE_ADMIN_SESSION, but was Tag." + this._tag.name()); + } + return endedEnterpriseAdminSessionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED}, {@code false} + * otherwise. + */ + public boolean isEndedEnterpriseAdminSessionDeprecated() { + return this._tag == Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED}. + * + *

(trusted_teams) Ended enterprise admin session (deprecated, replaced + * by 'Ended enterprise admin session')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType endedEnterpriseAdminSessionDeprecated(EndedEnterpriseAdminSessionDeprecatedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEndedEnterpriseAdminSessionDeprecated(Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED, value); + } + + /** + * (trusted_teams) Ended enterprise admin session (deprecated, replaced by + * 'Ended enterprise admin session') + * + *

This instance must be tagged as {@link + * Tag#ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED}.

+ * + * @return The {@link EndedEnterpriseAdminSessionDeprecatedType} value + * associated with this instance if {@link + * #isEndedEnterpriseAdminSessionDeprecated} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isEndedEnterpriseAdminSessionDeprecated} is {@code false}. + */ + public EndedEnterpriseAdminSessionDeprecatedType getEndedEnterpriseAdminSessionDeprecatedValue() { + if (this._tag != Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED) { + throw new IllegalStateException("Invalid tag: required Tag.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED, but was Tag." + this._tag.name()); + } + return endedEnterpriseAdminSessionDeprecatedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING}, {@code false} otherwise. + */ + public boolean isEnterpriseSettingsLocking() { + return this._tag == Tag.ENTERPRISE_SETTINGS_LOCKING; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING}. + * + *

(trusted_teams) Changed who can update a setting

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType enterpriseSettingsLocking(EnterpriseSettingsLockingType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndEnterpriseSettingsLocking(Tag.ENTERPRISE_SETTINGS_LOCKING, value); + } + + /** + * (trusted_teams) Changed who can update a setting + * + *

This instance must be tagged as {@link + * Tag#ENTERPRISE_SETTINGS_LOCKING}.

+ * + * @return The {@link EnterpriseSettingsLockingType} value associated with + * this instance if {@link #isEnterpriseSettingsLocking} is {@code + * true}. + * + * @throws IllegalStateException If {@link #isEnterpriseSettingsLocking} is + * {@code false}. + */ + public EnterpriseSettingsLockingType getEnterpriseSettingsLockingValue() { + if (this._tag != Tag.ENTERPRISE_SETTINGS_LOCKING) { + throw new IllegalStateException("Invalid tag: required Tag.ENTERPRISE_SETTINGS_LOCKING, but was Tag." + this._tag.name()); + } + return enterpriseSettingsLockingValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS}, {@code false} otherwise. + */ + public boolean isGuestAdminChangeStatus() { + return this._tag == Tag.GUEST_ADMIN_CHANGE_STATUS; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS}. + * + *

(trusted_teams) Changed guest team admin status

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType guestAdminChangeStatus(GuestAdminChangeStatusType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndGuestAdminChangeStatus(Tag.GUEST_ADMIN_CHANGE_STATUS, value); + } + + /** + * (trusted_teams) Changed guest team admin status + * + *

This instance must be tagged as {@link + * Tag#GUEST_ADMIN_CHANGE_STATUS}.

+ * + * @return The {@link GuestAdminChangeStatusType} value associated with this + * instance if {@link #isGuestAdminChangeStatus} is {@code true}. + * + * @throws IllegalStateException If {@link #isGuestAdminChangeStatus} is + * {@code false}. + */ + public GuestAdminChangeStatusType getGuestAdminChangeStatusValue() { + if (this._tag != Tag.GUEST_ADMIN_CHANGE_STATUS) { + throw new IllegalStateException("Invalid tag: required Tag.GUEST_ADMIN_CHANGE_STATUS, but was Tag." + this._tag.name()); + } + return guestAdminChangeStatusValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION}, {@code false} otherwise. + */ + public boolean isStartedEnterpriseAdminSession() { + return this._tag == Tag.STARTED_ENTERPRISE_ADMIN_SESSION; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION}. + * + *

(trusted_teams) Started enterprise admin session

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType startedEnterpriseAdminSession(StartedEnterpriseAdminSessionType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndStartedEnterpriseAdminSession(Tag.STARTED_ENTERPRISE_ADMIN_SESSION, value); + } + + /** + * (trusted_teams) Started enterprise admin session + * + *

This instance must be tagged as {@link + * Tag#STARTED_ENTERPRISE_ADMIN_SESSION}.

+ * + * @return The {@link StartedEnterpriseAdminSessionType} value associated + * with this instance if {@link #isStartedEnterpriseAdminSession} is + * {@code true}. + * + * @throws IllegalStateException If {@link + * #isStartedEnterpriseAdminSession} is {@code false}. + */ + public StartedEnterpriseAdminSessionType getStartedEnterpriseAdminSessionValue() { + if (this._tag != Tag.STARTED_ENTERPRISE_ADMIN_SESSION) { + throw new IllegalStateException("Invalid tag: required Tag.STARTED_ENTERPRISE_ADMIN_SESSION, but was Tag." + this._tag.name()); + } + return startedEnterpriseAdminSessionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestAccepted() { + return this._tag == Tag.TEAM_MERGE_REQUEST_ACCEPTED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED}. + * + *

(trusted_teams) Accepted a team merge request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestAccepted(TeamMergeRequestAcceptedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestAccepted(Tag.TEAM_MERGE_REQUEST_ACCEPTED, value); + } + + /** + * (trusted_teams) Accepted a team merge request + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED}.

+ * + * @return The {@link TeamMergeRequestAcceptedType} value associated with + * this instance if {@link #isTeamMergeRequestAccepted} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeRequestAccepted} is + * {@code false}. + */ + public TeamMergeRequestAcceptedType getTeamMergeRequestAcceptedValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_ACCEPTED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_ACCEPTED, but was Tag." + this._tag.name()); + } + return teamMergeRequestAcceptedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestAcceptedShownToPrimaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM}. + * + *

(trusted_teams) Accepted a team merge request (deprecated, replaced + * by 'Accepted a team merge request')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestAcceptedShownToPrimaryTeam(TeamMergeRequestAcceptedShownToPrimaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestAcceptedShownToPrimaryTeam(Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM, value); + } + + /** + * (trusted_teams) Accepted a team merge request (deprecated, replaced by + * 'Accepted a team merge request') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestAcceptedShownToPrimaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestAcceptedShownToPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestAcceptedShownToPrimaryTeam} is {@code false}. + */ + public TeamMergeRequestAcceptedShownToPrimaryTeamType getTeamMergeRequestAcceptedShownToPrimaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestAcceptedShownToPrimaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestAcceptedShownToSecondaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM}. + * + *

(trusted_teams) Accepted a team merge request (deprecated, replaced + * by 'Accepted a team merge request')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestAcceptedShownToSecondaryTeam(TeamMergeRequestAcceptedShownToSecondaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestAcceptedShownToSecondaryTeam(Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM, value); + } + + /** + * (trusted_teams) Accepted a team merge request (deprecated, replaced by + * 'Accepted a team merge request') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestAcceptedShownToSecondaryTeamType} + * value associated with this instance if {@link + * #isTeamMergeRequestAcceptedShownToSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestAcceptedShownToSecondaryTeam} is {@code false}. + */ + public TeamMergeRequestAcceptedShownToSecondaryTeamType getTeamMergeRequestAcceptedShownToSecondaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestAcceptedShownToSecondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestAutoCanceled() { + return this._tag == Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED}. + * + *

(trusted_teams) Automatically canceled team merge request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestAutoCanceled(TeamMergeRequestAutoCanceledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestAutoCanceled(Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED, value); + } + + /** + * (trusted_teams) Automatically canceled team merge request + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_AUTO_CANCELED}.

+ * + * @return The {@link TeamMergeRequestAutoCanceledType} value associated + * with this instance if {@link #isTeamMergeRequestAutoCanceled} is + * {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeRequestAutoCanceled} + * is {@code false}. + */ + public TeamMergeRequestAutoCanceledType getTeamMergeRequestAutoCanceledValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_AUTO_CANCELED, but was Tag." + this._tag.name()); + } + return teamMergeRequestAutoCanceledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestCanceled() { + return this._tag == Tag.TEAM_MERGE_REQUEST_CANCELED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED}. + * + *

(trusted_teams) Canceled a team merge request

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestCanceled(TeamMergeRequestCanceledType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestCanceled(Tag.TEAM_MERGE_REQUEST_CANCELED, value); + } + + /** + * (trusted_teams) Canceled a team merge request + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED}.

+ * + * @return The {@link TeamMergeRequestCanceledType} value associated with + * this instance if {@link #isTeamMergeRequestCanceled} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeRequestCanceled} is + * {@code false}. + */ + public TeamMergeRequestCanceledType getTeamMergeRequestCanceledValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_CANCELED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_CANCELED, but was Tag." + this._tag.name()); + } + return teamMergeRequestCanceledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestCanceledShownToPrimaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM}. + * + *

(trusted_teams) Canceled a team merge request (deprecated, replaced + * by 'Canceled a team merge request')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestCanceledShownToPrimaryTeam(TeamMergeRequestCanceledShownToPrimaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestCanceledShownToPrimaryTeam(Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM, value); + } + + /** + * (trusted_teams) Canceled a team merge request (deprecated, replaced by + * 'Canceled a team merge request') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestCanceledShownToPrimaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestCanceledShownToPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestCanceledShownToPrimaryTeam} is {@code false}. + */ + public TeamMergeRequestCanceledShownToPrimaryTeamType getTeamMergeRequestCanceledShownToPrimaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestCanceledShownToPrimaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestCanceledShownToSecondaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM}. + * + *

(trusted_teams) Canceled a team merge request (deprecated, replaced + * by 'Canceled a team merge request')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestCanceledShownToSecondaryTeam(TeamMergeRequestCanceledShownToSecondaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestCanceledShownToSecondaryTeam(Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM, value); + } + + /** + * (trusted_teams) Canceled a team merge request (deprecated, replaced by + * 'Canceled a team merge request') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestCanceledShownToSecondaryTeamType} + * value associated with this instance if {@link + * #isTeamMergeRequestCanceledShownToSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestCanceledShownToSecondaryTeam} is {@code false}. + */ + public TeamMergeRequestCanceledShownToSecondaryTeamType getTeamMergeRequestCanceledShownToSecondaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestCanceledShownToSecondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestExpired() { + return this._tag == Tag.TEAM_MERGE_REQUEST_EXPIRED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED}. + * + *

(trusted_teams) Team merge request expired

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestExpired(TeamMergeRequestExpiredType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestExpired(Tag.TEAM_MERGE_REQUEST_EXPIRED, value); + } + + /** + * (trusted_teams) Team merge request expired + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED}.

+ * + * @return The {@link TeamMergeRequestExpiredType} value associated with + * this instance if {@link #isTeamMergeRequestExpired} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeRequestExpired} is + * {@code false}. + */ + public TeamMergeRequestExpiredType getTeamMergeRequestExpiredValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_EXPIRED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_EXPIRED, but was Tag." + this._tag.name()); + } + return teamMergeRequestExpiredValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestExpiredShownToPrimaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM}. + * + *

(trusted_teams) Team merge request expired (deprecated, replaced by + * 'Team merge request expired')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestExpiredShownToPrimaryTeam(TeamMergeRequestExpiredShownToPrimaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestExpiredShownToPrimaryTeam(Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM, value); + } + + /** + * (trusted_teams) Team merge request expired (deprecated, replaced by 'Team + * merge request expired') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestExpiredShownToPrimaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestExpiredShownToPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestExpiredShownToPrimaryTeam} is {@code false}. + */ + public TeamMergeRequestExpiredShownToPrimaryTeamType getTeamMergeRequestExpiredShownToPrimaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestExpiredShownToPrimaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestExpiredShownToSecondaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM}. + * + *

(trusted_teams) Team merge request expired (deprecated, replaced by + * 'Team merge request expired')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestExpiredShownToSecondaryTeam(TeamMergeRequestExpiredShownToSecondaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestExpiredShownToSecondaryTeam(Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM, value); + } + + /** + * (trusted_teams) Team merge request expired (deprecated, replaced by 'Team + * merge request expired') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestExpiredShownToSecondaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestExpiredShownToSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestExpiredShownToSecondaryTeam} is {@code false}. + */ + public TeamMergeRequestExpiredShownToSecondaryTeamType getTeamMergeRequestExpiredShownToSecondaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestExpiredShownToSecondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestRejectedShownToPrimaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM}. + * + *

(trusted_teams) Rejected a team merge request (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestRejectedShownToPrimaryTeam(TeamMergeRequestRejectedShownToPrimaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestRejectedShownToPrimaryTeam(Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM, value); + } + + /** + * (trusted_teams) Rejected a team merge request (deprecated, no longer + * logged) + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestRejectedShownToPrimaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestRejectedShownToPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestRejectedShownToPrimaryTeam} is {@code false}. + */ + public TeamMergeRequestRejectedShownToPrimaryTeamType getTeamMergeRequestRejectedShownToPrimaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestRejectedShownToPrimaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestRejectedShownToSecondaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM}. + * + *

(trusted_teams) Rejected a team merge request (deprecated, no longer + * logged)

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestRejectedShownToSecondaryTeam(TeamMergeRequestRejectedShownToSecondaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestRejectedShownToSecondaryTeam(Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM, value); + } + + /** + * (trusted_teams) Rejected a team merge request (deprecated, no longer + * logged) + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestRejectedShownToSecondaryTeamType} + * value associated with this instance if {@link + * #isTeamMergeRequestRejectedShownToSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestRejectedShownToSecondaryTeam} is {@code false}. + */ + public TeamMergeRequestRejectedShownToSecondaryTeamType getTeamMergeRequestRejectedShownToSecondaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestRejectedShownToSecondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestReminder() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REMINDER; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER}. + * + *

(trusted_teams) Sent a team merge request reminder

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestReminder(TeamMergeRequestReminderType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestReminder(Tag.TEAM_MERGE_REQUEST_REMINDER, value); + } + + /** + * (trusted_teams) Sent a team merge request reminder + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER}.

+ * + * @return The {@link TeamMergeRequestReminderType} value associated with + * this instance if {@link #isTeamMergeRequestReminder} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeRequestReminder} is + * {@code false}. + */ + public TeamMergeRequestReminderType getTeamMergeRequestReminderValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REMINDER) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REMINDER, but was Tag." + this._tag.name()); + } + return teamMergeRequestReminderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestReminderShownToPrimaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM}. + * + *

(trusted_teams) Sent a team merge request reminder (deprecated, + * replaced by 'Sent a team merge request reminder')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestReminderShownToPrimaryTeam(TeamMergeRequestReminderShownToPrimaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestReminderShownToPrimaryTeam(Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM, value); + } + + /** + * (trusted_teams) Sent a team merge request reminder (deprecated, replaced + * by 'Sent a team merge request reminder') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestReminderShownToPrimaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestReminderShownToPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestReminderShownToPrimaryTeam} is {@code false}. + */ + public TeamMergeRequestReminderShownToPrimaryTeamType getTeamMergeRequestReminderShownToPrimaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestReminderShownToPrimaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM}, {@code + * false} otherwise. + */ + public boolean isTeamMergeRequestReminderShownToSecondaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM}. + * + *

(trusted_teams) Sent a team merge request reminder (deprecated, + * replaced by 'Sent a team merge request reminder')

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestReminderShownToSecondaryTeam(TeamMergeRequestReminderShownToSecondaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestReminderShownToSecondaryTeam(Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM, value); + } + + /** + * (trusted_teams) Sent a team merge request reminder (deprecated, replaced + * by 'Sent a team merge request reminder') + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestReminderShownToSecondaryTeamType} + * value associated with this instance if {@link + * #isTeamMergeRequestReminderShownToSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestReminderShownToSecondaryTeam} is {@code false}. + */ + public TeamMergeRequestReminderShownToSecondaryTeamType getTeamMergeRequestReminderShownToSecondaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestReminderShownToSecondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED}, {@code false} otherwise. + */ + public boolean isTeamMergeRequestRevoked() { + return this._tag == Tag.TEAM_MERGE_REQUEST_REVOKED; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED}. + * + *

(trusted_teams) Canceled the team merge

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestRevoked(TeamMergeRequestRevokedType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestRevoked(Tag.TEAM_MERGE_REQUEST_REVOKED, value); + } + + /** + * (trusted_teams) Canceled the team merge + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_REVOKED}.

+ * + * @return The {@link TeamMergeRequestRevokedType} value associated with + * this instance if {@link #isTeamMergeRequestRevoked} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeamMergeRequestRevoked} is + * {@code false}. + */ + public TeamMergeRequestRevokedType getTeamMergeRequestRevokedValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_REVOKED) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_REVOKED, but was Tag." + this._tag.name()); + } + return teamMergeRequestRevokedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestSentShownToPrimaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM}. + * + *

(trusted_teams) Requested to merge their Dropbox team into yours

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestSentShownToPrimaryTeam(TeamMergeRequestSentShownToPrimaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestSentShownToPrimaryTeam(Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM, value); + } + + /** + * (trusted_teams) Requested to merge their Dropbox team into yours + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestSentShownToPrimaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestSentShownToPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestSentShownToPrimaryTeam} is {@code false}. + */ + public TeamMergeRequestSentShownToPrimaryTeamType getTeamMergeRequestSentShownToPrimaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestSentShownToPrimaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM}, {@code false} + * otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM}, {@code false} + * otherwise. + */ + public boolean isTeamMergeRequestSentShownToSecondaryTeam() { + return this._tag == Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code EventType} that has its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM}. + * + *

(trusted_teams) Requested to merge your team into another Dropbox + * team

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code EventType} with its tag set to {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static EventType teamMergeRequestSentShownToSecondaryTeam(TeamMergeRequestSentShownToSecondaryTeamType value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new EventType().withTagAndTeamMergeRequestSentShownToSecondaryTeam(Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM, value); + } + + /** + * (trusted_teams) Requested to merge your team into another Dropbox team + * + *

This instance must be tagged as {@link + * Tag#TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM}.

+ * + * @return The {@link TeamMergeRequestSentShownToSecondaryTeamType} value + * associated with this instance if {@link + * #isTeamMergeRequestSentShownToSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link + * #isTeamMergeRequestSentShownToSecondaryTeam} is {@code false}. + */ + public TeamMergeRequestSentShownToSecondaryTeamType getTeamMergeRequestSentShownToSecondaryTeamValue() { + if (this._tag != Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return teamMergeRequestSentShownToSecondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.adminAlertingAlertStateChangedValue, + this.adminAlertingChangedAlertConfigValue, + this.adminAlertingTriggeredAlertValue, + this.ransomwareRestoreProcessCompletedValue, + this.ransomwareRestoreProcessStartedValue, + this.appBlockedByPermissionsValue, + this.appLinkTeamValue, + this.appLinkUserValue, + this.appUnlinkTeamValue, + this.appUnlinkUserValue, + this.integrationConnectedValue, + this.integrationDisconnectedValue, + this.fileAddCommentValue, + this.fileChangeCommentSubscriptionValue, + this.fileDeleteCommentValue, + this.fileEditCommentValue, + this.fileLikeCommentValue, + this.fileResolveCommentValue, + this.fileUnlikeCommentValue, + this.fileUnresolveCommentValue, + this.governancePolicyAddFoldersValue, + this.governancePolicyAddFolderFailedValue, + this.governancePolicyContentDisposedValue, + this.governancePolicyCreateValue, + this.governancePolicyDeleteValue, + this.governancePolicyEditDetailsValue, + this.governancePolicyEditDurationValue, + this.governancePolicyExportCreatedValue, + this.governancePolicyExportRemovedValue, + this.governancePolicyRemoveFoldersValue, + this.governancePolicyReportCreatedValue, + this.governancePolicyZipPartDownloadedValue, + this.legalHoldsActivateAHoldValue, + this.legalHoldsAddMembersValue, + this.legalHoldsChangeHoldDetailsValue, + this.legalHoldsChangeHoldNameValue, + this.legalHoldsExportAHoldValue, + this.legalHoldsExportCancelledValue, + this.legalHoldsExportDownloadedValue, + this.legalHoldsExportRemovedValue, + this.legalHoldsReleaseAHoldValue, + this.legalHoldsRemoveMembersValue, + this.legalHoldsReportAHoldValue, + this.deviceChangeIpDesktopValue, + this.deviceChangeIpMobileValue, + this.deviceChangeIpWebValue, + this.deviceDeleteOnUnlinkFailValue, + this.deviceDeleteOnUnlinkSuccessValue, + this.deviceLinkFailValue, + this.deviceLinkSuccessValue, + this.deviceManagementDisabledValue, + this.deviceManagementEnabledValue, + this.deviceSyncBackupStatusChangedValue, + this.deviceUnlinkValue, + this.dropboxPasswordsExportedValue, + this.dropboxPasswordsNewDeviceEnrolledValue, + this.emmRefreshAuthTokenValue, + this.externalDriveBackupEligibilityStatusCheckedValue, + this.externalDriveBackupStatusChangedValue, + this.accountCaptureChangeAvailabilityValue, + this.accountCaptureMigrateAccountValue, + this.accountCaptureNotificationEmailsSentValue, + this.accountCaptureRelinquishAccountValue, + this.disabledDomainInvitesValue, + this.domainInvitesApproveRequestToJoinTeamValue, + this.domainInvitesDeclineRequestToJoinTeamValue, + this.domainInvitesEmailExistingUsersValue, + this.domainInvitesRequestToJoinTeamValue, + this.domainInvitesSetInviteNewUserPrefToNoValue, + this.domainInvitesSetInviteNewUserPrefToYesValue, + this.domainVerificationAddDomainFailValue, + this.domainVerificationAddDomainSuccessValue, + this.domainVerificationRemoveDomainValue, + this.enabledDomainInvitesValue, + this.teamEncryptionKeyCancelKeyDeletionValue, + this.teamEncryptionKeyCreateKeyValue, + this.teamEncryptionKeyDeleteKeyValue, + this.teamEncryptionKeyDisableKeyValue, + this.teamEncryptionKeyEnableKeyValue, + this.teamEncryptionKeyRotateKeyValue, + this.teamEncryptionKeyScheduleKeyDeletionValue, + this.applyNamingConventionValue, + this.createFolderValue, + this.fileAddValue, + this.fileAddFromAutomationValue, + this.fileCopyValue, + this.fileDeleteValue, + this.fileDownloadValue, + this.fileEditValue, + this.fileGetCopyReferenceValue, + this.fileLockingLockStatusChangedValue, + this.fileMoveValue, + this.filePermanentlyDeleteValue, + this.filePreviewValue, + this.fileRenameValue, + this.fileRestoreValue, + this.fileRevertValue, + this.fileRollbackChangesValue, + this.fileSaveCopyReferenceValue, + this.folderOverviewDescriptionChangedValue, + this.folderOverviewItemPinnedValue, + this.folderOverviewItemUnpinnedValue, + this.objectLabelAddedValue, + this.objectLabelRemovedValue, + this.objectLabelUpdatedValueValue, + this.organizeFolderWithTidyValue, + this.replayFileDeleteValue, + this.rewindFolderValue, + this.undoNamingConventionValue, + this.undoOrganizeFolderWithTidyValue, + this.userTagsAddedValue, + this.userTagsRemovedValue, + this.emailIngestReceiveFileValue, + this.fileRequestChangeValue, + this.fileRequestCloseValue, + this.fileRequestCreateValue, + this.fileRequestDeleteValue, + this.fileRequestReceiveFileValue, + this.groupAddExternalIdValue, + this.groupAddMemberValue, + this.groupChangeExternalIdValue, + this.groupChangeManagementTypeValue, + this.groupChangeMemberRoleValue, + this.groupCreateValue, + this.groupDeleteValue, + this.groupDescriptionUpdatedValue, + this.groupJoinPolicyUpdatedValue, + this.groupMovedValue, + this.groupRemoveExternalIdValue, + this.groupRemoveMemberValue, + this.groupRenameValue, + this.accountLockOrUnlockedValue, + this.emmErrorValue, + this.guestAdminSignedInViaTrustedTeamsValue, + this.guestAdminSignedOutViaTrustedTeamsValue, + this.loginFailValue, + this.loginSuccessValue, + this.logoutValue, + this.resellerSupportSessionEndValue, + this.resellerSupportSessionStartValue, + this.signInAsSessionEndValue, + this.signInAsSessionStartValue, + this.ssoErrorValue, + this.backupAdminInvitationSentValue, + this.backupInvitationOpenedValue, + this.createTeamInviteLinkValue, + this.deleteTeamInviteLinkValue, + this.memberAddExternalIdValue, + this.memberAddNameValue, + this.memberChangeAdminRoleValue, + this.memberChangeEmailValue, + this.memberChangeExternalIdValue, + this.memberChangeMembershipTypeValue, + this.memberChangeNameValue, + this.memberChangeResellerRoleValue, + this.memberChangeStatusValue, + this.memberDeleteManualContactsValue, + this.memberDeleteProfilePhotoValue, + this.memberPermanentlyDeleteAccountContentsValue, + this.memberRemoveExternalIdValue, + this.memberSetProfilePhotoValue, + this.memberSpaceLimitsAddCustomQuotaValue, + this.memberSpaceLimitsChangeCustomQuotaValue, + this.memberSpaceLimitsChangeStatusValue, + this.memberSpaceLimitsRemoveCustomQuotaValue, + this.memberSuggestValue, + this.memberTransferAccountContentsValue, + this.pendingSecondaryEmailAddedValue, + this.secondaryEmailDeletedValue, + this.secondaryEmailVerifiedValue, + this.secondaryMailsPolicyChangedValue, + this.binderAddPageValue, + this.binderAddSectionValue, + this.binderRemovePageValue, + this.binderRemoveSectionValue, + this.binderRenamePageValue, + this.binderRenameSectionValue, + this.binderReorderPageValue, + this.binderReorderSectionValue, + this.paperContentAddMemberValue, + this.paperContentAddToFolderValue, + this.paperContentArchiveValue, + this.paperContentCreateValue, + this.paperContentPermanentlyDeleteValue, + this.paperContentRemoveFromFolderValue, + this.paperContentRemoveMemberValue, + this.paperContentRenameValue, + this.paperContentRestoreValue, + this.paperDocAddCommentValue, + this.paperDocChangeMemberRoleValue, + this.paperDocChangeSharingPolicyValue, + this.paperDocChangeSubscriptionValue, + this.paperDocDeletedValue, + this.paperDocDeleteCommentValue, + this.paperDocDownloadValue, + this.paperDocEditValue, + this.paperDocEditCommentValue, + this.paperDocFollowedValue, + this.paperDocMentionValue, + this.paperDocOwnershipChangedValue, + this.paperDocRequestAccessValue, + this.paperDocResolveCommentValue, + this.paperDocRevertValue, + this.paperDocSlackShareValue, + this.paperDocTeamInviteValue, + this.paperDocTrashedValue, + this.paperDocUnresolveCommentValue, + this.paperDocUntrashedValue, + this.paperDocViewValue, + this.paperExternalViewAllowValue, + this.paperExternalViewDefaultTeamValue, + this.paperExternalViewForbidValue, + this.paperFolderChangeSubscriptionValue, + this.paperFolderDeletedValue, + this.paperFolderFollowedValue, + this.paperFolderTeamInviteValue, + this.paperPublishedLinkChangePermissionValue, + this.paperPublishedLinkCreateValue, + this.paperPublishedLinkDisabledValue, + this.paperPublishedLinkViewValue, + this.passwordChangeValue, + this.passwordResetValue, + this.passwordResetAllValue, + this.classificationCreateReportValue, + this.classificationCreateReportFailValue, + this.emmCreateExceptionsReportValue, + this.emmCreateUsageReportValue, + this.exportMembersReportValue, + this.exportMembersReportFailValue, + this.externalSharingCreateReportValue, + this.externalSharingReportFailedValue, + this.noExpirationLinkGenCreateReportValue, + this.noExpirationLinkGenReportFailedValue, + this.noPasswordLinkGenCreateReportValue, + this.noPasswordLinkGenReportFailedValue, + this.noPasswordLinkViewCreateReportValue, + this.noPasswordLinkViewReportFailedValue, + this.outdatedLinkViewCreateReportValue, + this.outdatedLinkViewReportFailedValue, + this.paperAdminExportStartValue, + this.ransomwareAlertCreateReportValue, + this.ransomwareAlertCreateReportFailedValue, + this.smartSyncCreateAdminPrivilegeReportValue, + this.teamActivityCreateReportValue, + this.teamActivityCreateReportFailValue, + this.collectionShareValue, + this.fileTransfersFileAddValue, + this.fileTransfersTransferDeleteValue, + this.fileTransfersTransferDownloadValue, + this.fileTransfersTransferSendValue, + this.fileTransfersTransferViewValue, + this.noteAclInviteOnlyValue, + this.noteAclLinkValue, + this.noteAclTeamLinkValue, + this.noteSharedValue, + this.noteShareReceiveValue, + this.openNoteSharedValue, + this.replayFileSharedLinkCreatedValue, + this.replayFileSharedLinkModifiedValue, + this.replayProjectTeamAddValue, + this.replayProjectTeamDeleteValue, + this.sfAddGroupValue, + this.sfAllowNonMembersToViewSharedLinksValue, + this.sfExternalInviteWarnValue, + this.sfFbInviteValue, + this.sfFbInviteChangeRoleValue, + this.sfFbUninviteValue, + this.sfInviteGroupValue, + this.sfTeamGrantAccessValue, + this.sfTeamInviteValue, + this.sfTeamInviteChangeRoleValue, + this.sfTeamJoinValue, + this.sfTeamJoinFromOobLinkValue, + this.sfTeamUninviteValue, + this.sharedContentAddInviteesValue, + this.sharedContentAddLinkExpiryValue, + this.sharedContentAddLinkPasswordValue, + this.sharedContentAddMemberValue, + this.sharedContentChangeDownloadsPolicyValue, + this.sharedContentChangeInviteeRoleValue, + this.sharedContentChangeLinkAudienceValue, + this.sharedContentChangeLinkExpiryValue, + this.sharedContentChangeLinkPasswordValue, + this.sharedContentChangeMemberRoleValue, + this.sharedContentChangeViewerInfoPolicyValue, + this.sharedContentClaimInvitationValue, + this.sharedContentCopyValue, + this.sharedContentDownloadValue, + this.sharedContentRelinquishMembershipValue, + this.sharedContentRemoveInviteesValue, + this.sharedContentRemoveLinkExpiryValue, + this.sharedContentRemoveLinkPasswordValue, + this.sharedContentRemoveMemberValue, + this.sharedContentRequestAccessValue, + this.sharedContentRestoreInviteesValue, + this.sharedContentRestoreMemberValue, + this.sharedContentUnshareValue, + this.sharedContentViewValue, + this.sharedFolderChangeLinkPolicyValue, + this.sharedFolderChangeMembersInheritancePolicyValue, + this.sharedFolderChangeMembersManagementPolicyValue, + this.sharedFolderChangeMembersPolicyValue, + this.sharedFolderCreateValue, + this.sharedFolderDeclineInvitationValue, + this.sharedFolderMountValue, + this.sharedFolderNestValue, + this.sharedFolderTransferOwnershipValue, + this.sharedFolderUnmountValue, + this.sharedLinkAddExpiryValue, + this.sharedLinkChangeExpiryValue, + this.sharedLinkChangeVisibilityValue, + this.sharedLinkCopyValue, + this.sharedLinkCreateValue, + this.sharedLinkDisableValue, + this.sharedLinkDownloadValue, + this.sharedLinkRemoveExpiryValue, + this.sharedLinkSettingsAddExpirationValue, + this.sharedLinkSettingsAddPasswordValue, + this.sharedLinkSettingsAllowDownloadDisabledValue, + this.sharedLinkSettingsAllowDownloadEnabledValue, + this.sharedLinkSettingsChangeAudienceValue, + this.sharedLinkSettingsChangeExpirationValue, + this.sharedLinkSettingsChangePasswordValue, + this.sharedLinkSettingsRemoveExpirationValue, + this.sharedLinkSettingsRemovePasswordValue, + this.sharedLinkShareValue, + this.sharedLinkViewValue, + this.sharedNoteOpenedValue, + this.shmodelDisableDownloadsValue, + this.shmodelEnableDownloadsValue, + this.shmodelGroupShareValue, + this.showcaseAccessGrantedValue, + this.showcaseAddMemberValue, + this.showcaseArchivedValue, + this.showcaseCreatedValue, + this.showcaseDeleteCommentValue, + this.showcaseEditedValue, + this.showcaseEditCommentValue, + this.showcaseFileAddedValue, + this.showcaseFileDownloadValue, + this.showcaseFileRemovedValue, + this.showcaseFileViewValue, + this.showcasePermanentlyDeletedValue, + this.showcasePostCommentValue, + this.showcaseRemoveMemberValue, + this.showcaseRenamedValue, + this.showcaseRequestAccessValue, + this.showcaseResolveCommentValue, + this.showcaseRestoredValue, + this.showcaseTrashedValue, + this.showcaseTrashedDeprecatedValue, + this.showcaseUnresolveCommentValue, + this.showcaseUntrashedValue, + this.showcaseUntrashedDeprecatedValue, + this.showcaseViewValue, + this.ssoAddCertValue, + this.ssoAddLoginUrlValue, + this.ssoAddLogoutUrlValue, + this.ssoChangeCertValue, + this.ssoChangeLoginUrlValue, + this.ssoChangeLogoutUrlValue, + this.ssoChangeSamlIdentityModeValue, + this.ssoRemoveCertValue, + this.ssoRemoveLoginUrlValue, + this.ssoRemoveLogoutUrlValue, + this.teamFolderChangeStatusValue, + this.teamFolderCreateValue, + this.teamFolderDowngradeValue, + this.teamFolderPermanentlyDeleteValue, + this.teamFolderRenameValue, + this.teamSelectiveSyncSettingsChangedValue, + this.accountCaptureChangePolicyValue, + this.adminEmailRemindersChangedValue, + this.allowDownloadDisabledValue, + this.allowDownloadEnabledValue, + this.appPermissionsChangedValue, + this.cameraUploadsPolicyChangedValue, + this.captureTranscriptPolicyChangedValue, + this.classificationChangePolicyValue, + this.computerBackupPolicyChangedValue, + this.contentAdministrationPolicyChangedValue, + this.dataPlacementRestrictionChangePolicyValue, + this.dataPlacementRestrictionSatisfyPolicyValue, + this.deviceApprovalsAddExceptionValue, + this.deviceApprovalsChangeDesktopPolicyValue, + this.deviceApprovalsChangeMobilePolicyValue, + this.deviceApprovalsChangeOverageActionValue, + this.deviceApprovalsChangeUnlinkActionValue, + this.deviceApprovalsRemoveExceptionValue, + this.directoryRestrictionsAddMembersValue, + this.directoryRestrictionsRemoveMembersValue, + this.dropboxPasswordsPolicyChangedValue, + this.emailIngestPolicyChangedValue, + this.emmAddExceptionValue, + this.emmChangePolicyValue, + this.emmRemoveExceptionValue, + this.extendedVersionHistoryChangePolicyValue, + this.externalDriveBackupPolicyChangedValue, + this.fileCommentsChangePolicyValue, + this.fileLockingPolicyChangedValue, + this.fileProviderMigrationPolicyChangedValue, + this.fileRequestsChangePolicyValue, + this.fileRequestsEmailsEnabledValue, + this.fileRequestsEmailsRestrictedToTeamOnlyValue, + this.fileTransfersPolicyChangedValue, + this.folderLinkRestrictionPolicyChangedValue, + this.googleSsoChangePolicyValue, + this.groupUserManagementChangePolicyValue, + this.integrationPolicyChangedValue, + this.inviteAcceptanceEmailPolicyChangedValue, + this.memberRequestsChangePolicyValue, + this.memberSendInvitePolicyChangedValue, + this.memberSpaceLimitsAddExceptionValue, + this.memberSpaceLimitsChangeCapsTypePolicyValue, + this.memberSpaceLimitsChangePolicyValue, + this.memberSpaceLimitsRemoveExceptionValue, + this.memberSuggestionsChangePolicyValue, + this.microsoftOfficeAddinChangePolicyValue, + this.networkControlChangePolicyValue, + this.paperChangeDeploymentPolicyValue, + this.paperChangeMemberLinkPolicyValue, + this.paperChangeMemberPolicyValue, + this.paperChangePolicyValue, + this.paperDefaultFolderPolicyChangedValue, + this.paperDesktopPolicyChangedValue, + this.paperEnabledUsersGroupAdditionValue, + this.paperEnabledUsersGroupRemovalValue, + this.passwordStrengthRequirementsChangePolicyValue, + this.permanentDeleteChangePolicyValue, + this.resellerSupportChangePolicyValue, + this.rewindPolicyChangedValue, + this.sendForSignaturePolicyChangedValue, + this.sharingChangeFolderJoinPolicyValue, + this.sharingChangeLinkAllowChangeExpirationPolicyValue, + this.sharingChangeLinkDefaultExpirationPolicyValue, + this.sharingChangeLinkEnforcePasswordPolicyValue, + this.sharingChangeLinkPolicyValue, + this.sharingChangeMemberPolicyValue, + this.showcaseChangeDownloadPolicyValue, + this.showcaseChangeEnabledPolicyValue, + this.showcaseChangeExternalSharingPolicyValue, + this.smarterSmartSyncPolicyChangedValue, + this.smartSyncChangePolicyValue, + this.smartSyncNotOptOutValue, + this.smartSyncOptOutValue, + this.ssoChangePolicyValue, + this.teamBrandingPolicyChangedValue, + this.teamExtensionsPolicyChangedValue, + this.teamSelectiveSyncPolicyChangedValue, + this.teamSharingWhitelistSubjectsChangedValue, + this.tfaAddExceptionValue, + this.tfaChangePolicyValue, + this.tfaRemoveExceptionValue, + this.twoAccountChangePolicyValue, + this.viewerInfoPolicyChangedValue, + this.watermarkingPolicyChangedValue, + this.webSessionsChangeActiveSessionLimitValue, + this.webSessionsChangeFixedLengthPolicyValue, + this.webSessionsChangeIdleLengthPolicyValue, + this.dataResidencyMigrationRequestSuccessfulValue, + this.dataResidencyMigrationRequestUnsuccessfulValue, + this.teamMergeFromValue, + this.teamMergeToValue, + this.teamProfileAddBackgroundValue, + this.teamProfileAddLogoValue, + this.teamProfileChangeBackgroundValue, + this.teamProfileChangeDefaultLanguageValue, + this.teamProfileChangeLogoValue, + this.teamProfileChangeNameValue, + this.teamProfileRemoveBackgroundValue, + this.teamProfileRemoveLogoValue, + this.tfaAddBackupPhoneValue, + this.tfaAddSecurityKeyValue, + this.tfaChangeBackupPhoneValue, + this.tfaChangeStatusValue, + this.tfaRemoveBackupPhoneValue, + this.tfaRemoveSecurityKeyValue, + this.tfaResetValue, + this.changedEnterpriseAdminRoleValue, + this.changedEnterpriseConnectedTeamStatusValue, + this.endedEnterpriseAdminSessionValue, + this.endedEnterpriseAdminSessionDeprecatedValue, + this.enterpriseSettingsLockingValue, + this.guestAdminChangeStatusValue, + this.startedEnterpriseAdminSessionValue, + this.teamMergeRequestAcceptedValue, + this.teamMergeRequestAcceptedShownToPrimaryTeamValue, + this.teamMergeRequestAcceptedShownToSecondaryTeamValue, + this.teamMergeRequestAutoCanceledValue, + this.teamMergeRequestCanceledValue, + this.teamMergeRequestCanceledShownToPrimaryTeamValue, + this.teamMergeRequestCanceledShownToSecondaryTeamValue, + this.teamMergeRequestExpiredValue, + this.teamMergeRequestExpiredShownToPrimaryTeamValue, + this.teamMergeRequestExpiredShownToSecondaryTeamValue, + this.teamMergeRequestRejectedShownToPrimaryTeamValue, + this.teamMergeRequestRejectedShownToSecondaryTeamValue, + this.teamMergeRequestReminderValue, + this.teamMergeRequestReminderShownToPrimaryTeamValue, + this.teamMergeRequestReminderShownToSecondaryTeamValue, + this.teamMergeRequestRevokedValue, + this.teamMergeRequestSentShownToPrimaryTeamValue, + this.teamMergeRequestSentShownToSecondaryTeamValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof EventType) { + EventType other = (EventType) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ADMIN_ALERTING_ALERT_STATE_CHANGED: + return (this.adminAlertingAlertStateChangedValue == other.adminAlertingAlertStateChangedValue) || (this.adminAlertingAlertStateChangedValue.equals(other.adminAlertingAlertStateChangedValue)); + case ADMIN_ALERTING_CHANGED_ALERT_CONFIG: + return (this.adminAlertingChangedAlertConfigValue == other.adminAlertingChangedAlertConfigValue) || (this.adminAlertingChangedAlertConfigValue.equals(other.adminAlertingChangedAlertConfigValue)); + case ADMIN_ALERTING_TRIGGERED_ALERT: + return (this.adminAlertingTriggeredAlertValue == other.adminAlertingTriggeredAlertValue) || (this.adminAlertingTriggeredAlertValue.equals(other.adminAlertingTriggeredAlertValue)); + case RANSOMWARE_RESTORE_PROCESS_COMPLETED: + return (this.ransomwareRestoreProcessCompletedValue == other.ransomwareRestoreProcessCompletedValue) || (this.ransomwareRestoreProcessCompletedValue.equals(other.ransomwareRestoreProcessCompletedValue)); + case RANSOMWARE_RESTORE_PROCESS_STARTED: + return (this.ransomwareRestoreProcessStartedValue == other.ransomwareRestoreProcessStartedValue) || (this.ransomwareRestoreProcessStartedValue.equals(other.ransomwareRestoreProcessStartedValue)); + case APP_BLOCKED_BY_PERMISSIONS: + return (this.appBlockedByPermissionsValue == other.appBlockedByPermissionsValue) || (this.appBlockedByPermissionsValue.equals(other.appBlockedByPermissionsValue)); + case APP_LINK_TEAM: + return (this.appLinkTeamValue == other.appLinkTeamValue) || (this.appLinkTeamValue.equals(other.appLinkTeamValue)); + case APP_LINK_USER: + return (this.appLinkUserValue == other.appLinkUserValue) || (this.appLinkUserValue.equals(other.appLinkUserValue)); + case APP_UNLINK_TEAM: + return (this.appUnlinkTeamValue == other.appUnlinkTeamValue) || (this.appUnlinkTeamValue.equals(other.appUnlinkTeamValue)); + case APP_UNLINK_USER: + return (this.appUnlinkUserValue == other.appUnlinkUserValue) || (this.appUnlinkUserValue.equals(other.appUnlinkUserValue)); + case INTEGRATION_CONNECTED: + return (this.integrationConnectedValue == other.integrationConnectedValue) || (this.integrationConnectedValue.equals(other.integrationConnectedValue)); + case INTEGRATION_DISCONNECTED: + return (this.integrationDisconnectedValue == other.integrationDisconnectedValue) || (this.integrationDisconnectedValue.equals(other.integrationDisconnectedValue)); + case FILE_ADD_COMMENT: + return (this.fileAddCommentValue == other.fileAddCommentValue) || (this.fileAddCommentValue.equals(other.fileAddCommentValue)); + case FILE_CHANGE_COMMENT_SUBSCRIPTION: + return (this.fileChangeCommentSubscriptionValue == other.fileChangeCommentSubscriptionValue) || (this.fileChangeCommentSubscriptionValue.equals(other.fileChangeCommentSubscriptionValue)); + case FILE_DELETE_COMMENT: + return (this.fileDeleteCommentValue == other.fileDeleteCommentValue) || (this.fileDeleteCommentValue.equals(other.fileDeleteCommentValue)); + case FILE_EDIT_COMMENT: + return (this.fileEditCommentValue == other.fileEditCommentValue) || (this.fileEditCommentValue.equals(other.fileEditCommentValue)); + case FILE_LIKE_COMMENT: + return (this.fileLikeCommentValue == other.fileLikeCommentValue) || (this.fileLikeCommentValue.equals(other.fileLikeCommentValue)); + case FILE_RESOLVE_COMMENT: + return (this.fileResolveCommentValue == other.fileResolveCommentValue) || (this.fileResolveCommentValue.equals(other.fileResolveCommentValue)); + case FILE_UNLIKE_COMMENT: + return (this.fileUnlikeCommentValue == other.fileUnlikeCommentValue) || (this.fileUnlikeCommentValue.equals(other.fileUnlikeCommentValue)); + case FILE_UNRESOLVE_COMMENT: + return (this.fileUnresolveCommentValue == other.fileUnresolveCommentValue) || (this.fileUnresolveCommentValue.equals(other.fileUnresolveCommentValue)); + case GOVERNANCE_POLICY_ADD_FOLDERS: + return (this.governancePolicyAddFoldersValue == other.governancePolicyAddFoldersValue) || (this.governancePolicyAddFoldersValue.equals(other.governancePolicyAddFoldersValue)); + case GOVERNANCE_POLICY_ADD_FOLDER_FAILED: + return (this.governancePolicyAddFolderFailedValue == other.governancePolicyAddFolderFailedValue) || (this.governancePolicyAddFolderFailedValue.equals(other.governancePolicyAddFolderFailedValue)); + case GOVERNANCE_POLICY_CONTENT_DISPOSED: + return (this.governancePolicyContentDisposedValue == other.governancePolicyContentDisposedValue) || (this.governancePolicyContentDisposedValue.equals(other.governancePolicyContentDisposedValue)); + case GOVERNANCE_POLICY_CREATE: + return (this.governancePolicyCreateValue == other.governancePolicyCreateValue) || (this.governancePolicyCreateValue.equals(other.governancePolicyCreateValue)); + case GOVERNANCE_POLICY_DELETE: + return (this.governancePolicyDeleteValue == other.governancePolicyDeleteValue) || (this.governancePolicyDeleteValue.equals(other.governancePolicyDeleteValue)); + case GOVERNANCE_POLICY_EDIT_DETAILS: + return (this.governancePolicyEditDetailsValue == other.governancePolicyEditDetailsValue) || (this.governancePolicyEditDetailsValue.equals(other.governancePolicyEditDetailsValue)); + case GOVERNANCE_POLICY_EDIT_DURATION: + return (this.governancePolicyEditDurationValue == other.governancePolicyEditDurationValue) || (this.governancePolicyEditDurationValue.equals(other.governancePolicyEditDurationValue)); + case GOVERNANCE_POLICY_EXPORT_CREATED: + return (this.governancePolicyExportCreatedValue == other.governancePolicyExportCreatedValue) || (this.governancePolicyExportCreatedValue.equals(other.governancePolicyExportCreatedValue)); + case GOVERNANCE_POLICY_EXPORT_REMOVED: + return (this.governancePolicyExportRemovedValue == other.governancePolicyExportRemovedValue) || (this.governancePolicyExportRemovedValue.equals(other.governancePolicyExportRemovedValue)); + case GOVERNANCE_POLICY_REMOVE_FOLDERS: + return (this.governancePolicyRemoveFoldersValue == other.governancePolicyRemoveFoldersValue) || (this.governancePolicyRemoveFoldersValue.equals(other.governancePolicyRemoveFoldersValue)); + case GOVERNANCE_POLICY_REPORT_CREATED: + return (this.governancePolicyReportCreatedValue == other.governancePolicyReportCreatedValue) || (this.governancePolicyReportCreatedValue.equals(other.governancePolicyReportCreatedValue)); + case GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED: + return (this.governancePolicyZipPartDownloadedValue == other.governancePolicyZipPartDownloadedValue) || (this.governancePolicyZipPartDownloadedValue.equals(other.governancePolicyZipPartDownloadedValue)); + case LEGAL_HOLDS_ACTIVATE_A_HOLD: + return (this.legalHoldsActivateAHoldValue == other.legalHoldsActivateAHoldValue) || (this.legalHoldsActivateAHoldValue.equals(other.legalHoldsActivateAHoldValue)); + case LEGAL_HOLDS_ADD_MEMBERS: + return (this.legalHoldsAddMembersValue == other.legalHoldsAddMembersValue) || (this.legalHoldsAddMembersValue.equals(other.legalHoldsAddMembersValue)); + case LEGAL_HOLDS_CHANGE_HOLD_DETAILS: + return (this.legalHoldsChangeHoldDetailsValue == other.legalHoldsChangeHoldDetailsValue) || (this.legalHoldsChangeHoldDetailsValue.equals(other.legalHoldsChangeHoldDetailsValue)); + case LEGAL_HOLDS_CHANGE_HOLD_NAME: + return (this.legalHoldsChangeHoldNameValue == other.legalHoldsChangeHoldNameValue) || (this.legalHoldsChangeHoldNameValue.equals(other.legalHoldsChangeHoldNameValue)); + case LEGAL_HOLDS_EXPORT_A_HOLD: + return (this.legalHoldsExportAHoldValue == other.legalHoldsExportAHoldValue) || (this.legalHoldsExportAHoldValue.equals(other.legalHoldsExportAHoldValue)); + case LEGAL_HOLDS_EXPORT_CANCELLED: + return (this.legalHoldsExportCancelledValue == other.legalHoldsExportCancelledValue) || (this.legalHoldsExportCancelledValue.equals(other.legalHoldsExportCancelledValue)); + case LEGAL_HOLDS_EXPORT_DOWNLOADED: + return (this.legalHoldsExportDownloadedValue == other.legalHoldsExportDownloadedValue) || (this.legalHoldsExportDownloadedValue.equals(other.legalHoldsExportDownloadedValue)); + case LEGAL_HOLDS_EXPORT_REMOVED: + return (this.legalHoldsExportRemovedValue == other.legalHoldsExportRemovedValue) || (this.legalHoldsExportRemovedValue.equals(other.legalHoldsExportRemovedValue)); + case LEGAL_HOLDS_RELEASE_A_HOLD: + return (this.legalHoldsReleaseAHoldValue == other.legalHoldsReleaseAHoldValue) || (this.legalHoldsReleaseAHoldValue.equals(other.legalHoldsReleaseAHoldValue)); + case LEGAL_HOLDS_REMOVE_MEMBERS: + return (this.legalHoldsRemoveMembersValue == other.legalHoldsRemoveMembersValue) || (this.legalHoldsRemoveMembersValue.equals(other.legalHoldsRemoveMembersValue)); + case LEGAL_HOLDS_REPORT_A_HOLD: + return (this.legalHoldsReportAHoldValue == other.legalHoldsReportAHoldValue) || (this.legalHoldsReportAHoldValue.equals(other.legalHoldsReportAHoldValue)); + case DEVICE_CHANGE_IP_DESKTOP: + return (this.deviceChangeIpDesktopValue == other.deviceChangeIpDesktopValue) || (this.deviceChangeIpDesktopValue.equals(other.deviceChangeIpDesktopValue)); + case DEVICE_CHANGE_IP_MOBILE: + return (this.deviceChangeIpMobileValue == other.deviceChangeIpMobileValue) || (this.deviceChangeIpMobileValue.equals(other.deviceChangeIpMobileValue)); + case DEVICE_CHANGE_IP_WEB: + return (this.deviceChangeIpWebValue == other.deviceChangeIpWebValue) || (this.deviceChangeIpWebValue.equals(other.deviceChangeIpWebValue)); + case DEVICE_DELETE_ON_UNLINK_FAIL: + return (this.deviceDeleteOnUnlinkFailValue == other.deviceDeleteOnUnlinkFailValue) || (this.deviceDeleteOnUnlinkFailValue.equals(other.deviceDeleteOnUnlinkFailValue)); + case DEVICE_DELETE_ON_UNLINK_SUCCESS: + return (this.deviceDeleteOnUnlinkSuccessValue == other.deviceDeleteOnUnlinkSuccessValue) || (this.deviceDeleteOnUnlinkSuccessValue.equals(other.deviceDeleteOnUnlinkSuccessValue)); + case DEVICE_LINK_FAIL: + return (this.deviceLinkFailValue == other.deviceLinkFailValue) || (this.deviceLinkFailValue.equals(other.deviceLinkFailValue)); + case DEVICE_LINK_SUCCESS: + return (this.deviceLinkSuccessValue == other.deviceLinkSuccessValue) || (this.deviceLinkSuccessValue.equals(other.deviceLinkSuccessValue)); + case DEVICE_MANAGEMENT_DISABLED: + return (this.deviceManagementDisabledValue == other.deviceManagementDisabledValue) || (this.deviceManagementDisabledValue.equals(other.deviceManagementDisabledValue)); + case DEVICE_MANAGEMENT_ENABLED: + return (this.deviceManagementEnabledValue == other.deviceManagementEnabledValue) || (this.deviceManagementEnabledValue.equals(other.deviceManagementEnabledValue)); + case DEVICE_SYNC_BACKUP_STATUS_CHANGED: + return (this.deviceSyncBackupStatusChangedValue == other.deviceSyncBackupStatusChangedValue) || (this.deviceSyncBackupStatusChangedValue.equals(other.deviceSyncBackupStatusChangedValue)); + case DEVICE_UNLINK: + return (this.deviceUnlinkValue == other.deviceUnlinkValue) || (this.deviceUnlinkValue.equals(other.deviceUnlinkValue)); + case DROPBOX_PASSWORDS_EXPORTED: + return (this.dropboxPasswordsExportedValue == other.dropboxPasswordsExportedValue) || (this.dropboxPasswordsExportedValue.equals(other.dropboxPasswordsExportedValue)); + case DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED: + return (this.dropboxPasswordsNewDeviceEnrolledValue == other.dropboxPasswordsNewDeviceEnrolledValue) || (this.dropboxPasswordsNewDeviceEnrolledValue.equals(other.dropboxPasswordsNewDeviceEnrolledValue)); + case EMM_REFRESH_AUTH_TOKEN: + return (this.emmRefreshAuthTokenValue == other.emmRefreshAuthTokenValue) || (this.emmRefreshAuthTokenValue.equals(other.emmRefreshAuthTokenValue)); + case EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED: + return (this.externalDriveBackupEligibilityStatusCheckedValue == other.externalDriveBackupEligibilityStatusCheckedValue) || (this.externalDriveBackupEligibilityStatusCheckedValue.equals(other.externalDriveBackupEligibilityStatusCheckedValue)); + case EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED: + return (this.externalDriveBackupStatusChangedValue == other.externalDriveBackupStatusChangedValue) || (this.externalDriveBackupStatusChangedValue.equals(other.externalDriveBackupStatusChangedValue)); + case ACCOUNT_CAPTURE_CHANGE_AVAILABILITY: + return (this.accountCaptureChangeAvailabilityValue == other.accountCaptureChangeAvailabilityValue) || (this.accountCaptureChangeAvailabilityValue.equals(other.accountCaptureChangeAvailabilityValue)); + case ACCOUNT_CAPTURE_MIGRATE_ACCOUNT: + return (this.accountCaptureMigrateAccountValue == other.accountCaptureMigrateAccountValue) || (this.accountCaptureMigrateAccountValue.equals(other.accountCaptureMigrateAccountValue)); + case ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT: + return (this.accountCaptureNotificationEmailsSentValue == other.accountCaptureNotificationEmailsSentValue) || (this.accountCaptureNotificationEmailsSentValue.equals(other.accountCaptureNotificationEmailsSentValue)); + case ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT: + return (this.accountCaptureRelinquishAccountValue == other.accountCaptureRelinquishAccountValue) || (this.accountCaptureRelinquishAccountValue.equals(other.accountCaptureRelinquishAccountValue)); + case DISABLED_DOMAIN_INVITES: + return (this.disabledDomainInvitesValue == other.disabledDomainInvitesValue) || (this.disabledDomainInvitesValue.equals(other.disabledDomainInvitesValue)); + case DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM: + return (this.domainInvitesApproveRequestToJoinTeamValue == other.domainInvitesApproveRequestToJoinTeamValue) || (this.domainInvitesApproveRequestToJoinTeamValue.equals(other.domainInvitesApproveRequestToJoinTeamValue)); + case DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM: + return (this.domainInvitesDeclineRequestToJoinTeamValue == other.domainInvitesDeclineRequestToJoinTeamValue) || (this.domainInvitesDeclineRequestToJoinTeamValue.equals(other.domainInvitesDeclineRequestToJoinTeamValue)); + case DOMAIN_INVITES_EMAIL_EXISTING_USERS: + return (this.domainInvitesEmailExistingUsersValue == other.domainInvitesEmailExistingUsersValue) || (this.domainInvitesEmailExistingUsersValue.equals(other.domainInvitesEmailExistingUsersValue)); + case DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM: + return (this.domainInvitesRequestToJoinTeamValue == other.domainInvitesRequestToJoinTeamValue) || (this.domainInvitesRequestToJoinTeamValue.equals(other.domainInvitesRequestToJoinTeamValue)); + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO: + return (this.domainInvitesSetInviteNewUserPrefToNoValue == other.domainInvitesSetInviteNewUserPrefToNoValue) || (this.domainInvitesSetInviteNewUserPrefToNoValue.equals(other.domainInvitesSetInviteNewUserPrefToNoValue)); + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES: + return (this.domainInvitesSetInviteNewUserPrefToYesValue == other.domainInvitesSetInviteNewUserPrefToYesValue) || (this.domainInvitesSetInviteNewUserPrefToYesValue.equals(other.domainInvitesSetInviteNewUserPrefToYesValue)); + case DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL: + return (this.domainVerificationAddDomainFailValue == other.domainVerificationAddDomainFailValue) || (this.domainVerificationAddDomainFailValue.equals(other.domainVerificationAddDomainFailValue)); + case DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS: + return (this.domainVerificationAddDomainSuccessValue == other.domainVerificationAddDomainSuccessValue) || (this.domainVerificationAddDomainSuccessValue.equals(other.domainVerificationAddDomainSuccessValue)); + case DOMAIN_VERIFICATION_REMOVE_DOMAIN: + return (this.domainVerificationRemoveDomainValue == other.domainVerificationRemoveDomainValue) || (this.domainVerificationRemoveDomainValue.equals(other.domainVerificationRemoveDomainValue)); + case ENABLED_DOMAIN_INVITES: + return (this.enabledDomainInvitesValue == other.enabledDomainInvitesValue) || (this.enabledDomainInvitesValue.equals(other.enabledDomainInvitesValue)); + case TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION: + return (this.teamEncryptionKeyCancelKeyDeletionValue == other.teamEncryptionKeyCancelKeyDeletionValue) || (this.teamEncryptionKeyCancelKeyDeletionValue.equals(other.teamEncryptionKeyCancelKeyDeletionValue)); + case TEAM_ENCRYPTION_KEY_CREATE_KEY: + return (this.teamEncryptionKeyCreateKeyValue == other.teamEncryptionKeyCreateKeyValue) || (this.teamEncryptionKeyCreateKeyValue.equals(other.teamEncryptionKeyCreateKeyValue)); + case TEAM_ENCRYPTION_KEY_DELETE_KEY: + return (this.teamEncryptionKeyDeleteKeyValue == other.teamEncryptionKeyDeleteKeyValue) || (this.teamEncryptionKeyDeleteKeyValue.equals(other.teamEncryptionKeyDeleteKeyValue)); + case TEAM_ENCRYPTION_KEY_DISABLE_KEY: + return (this.teamEncryptionKeyDisableKeyValue == other.teamEncryptionKeyDisableKeyValue) || (this.teamEncryptionKeyDisableKeyValue.equals(other.teamEncryptionKeyDisableKeyValue)); + case TEAM_ENCRYPTION_KEY_ENABLE_KEY: + return (this.teamEncryptionKeyEnableKeyValue == other.teamEncryptionKeyEnableKeyValue) || (this.teamEncryptionKeyEnableKeyValue.equals(other.teamEncryptionKeyEnableKeyValue)); + case TEAM_ENCRYPTION_KEY_ROTATE_KEY: + return (this.teamEncryptionKeyRotateKeyValue == other.teamEncryptionKeyRotateKeyValue) || (this.teamEncryptionKeyRotateKeyValue.equals(other.teamEncryptionKeyRotateKeyValue)); + case TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION: + return (this.teamEncryptionKeyScheduleKeyDeletionValue == other.teamEncryptionKeyScheduleKeyDeletionValue) || (this.teamEncryptionKeyScheduleKeyDeletionValue.equals(other.teamEncryptionKeyScheduleKeyDeletionValue)); + case APPLY_NAMING_CONVENTION: + return (this.applyNamingConventionValue == other.applyNamingConventionValue) || (this.applyNamingConventionValue.equals(other.applyNamingConventionValue)); + case CREATE_FOLDER: + return (this.createFolderValue == other.createFolderValue) || (this.createFolderValue.equals(other.createFolderValue)); + case FILE_ADD: + return (this.fileAddValue == other.fileAddValue) || (this.fileAddValue.equals(other.fileAddValue)); + case FILE_ADD_FROM_AUTOMATION: + return (this.fileAddFromAutomationValue == other.fileAddFromAutomationValue) || (this.fileAddFromAutomationValue.equals(other.fileAddFromAutomationValue)); + case FILE_COPY: + return (this.fileCopyValue == other.fileCopyValue) || (this.fileCopyValue.equals(other.fileCopyValue)); + case FILE_DELETE: + return (this.fileDeleteValue == other.fileDeleteValue) || (this.fileDeleteValue.equals(other.fileDeleteValue)); + case FILE_DOWNLOAD: + return (this.fileDownloadValue == other.fileDownloadValue) || (this.fileDownloadValue.equals(other.fileDownloadValue)); + case FILE_EDIT: + return (this.fileEditValue == other.fileEditValue) || (this.fileEditValue.equals(other.fileEditValue)); + case FILE_GET_COPY_REFERENCE: + return (this.fileGetCopyReferenceValue == other.fileGetCopyReferenceValue) || (this.fileGetCopyReferenceValue.equals(other.fileGetCopyReferenceValue)); + case FILE_LOCKING_LOCK_STATUS_CHANGED: + return (this.fileLockingLockStatusChangedValue == other.fileLockingLockStatusChangedValue) || (this.fileLockingLockStatusChangedValue.equals(other.fileLockingLockStatusChangedValue)); + case FILE_MOVE: + return (this.fileMoveValue == other.fileMoveValue) || (this.fileMoveValue.equals(other.fileMoveValue)); + case FILE_PERMANENTLY_DELETE: + return (this.filePermanentlyDeleteValue == other.filePermanentlyDeleteValue) || (this.filePermanentlyDeleteValue.equals(other.filePermanentlyDeleteValue)); + case FILE_PREVIEW: + return (this.filePreviewValue == other.filePreviewValue) || (this.filePreviewValue.equals(other.filePreviewValue)); + case FILE_RENAME: + return (this.fileRenameValue == other.fileRenameValue) || (this.fileRenameValue.equals(other.fileRenameValue)); + case FILE_RESTORE: + return (this.fileRestoreValue == other.fileRestoreValue) || (this.fileRestoreValue.equals(other.fileRestoreValue)); + case FILE_REVERT: + return (this.fileRevertValue == other.fileRevertValue) || (this.fileRevertValue.equals(other.fileRevertValue)); + case FILE_ROLLBACK_CHANGES: + return (this.fileRollbackChangesValue == other.fileRollbackChangesValue) || (this.fileRollbackChangesValue.equals(other.fileRollbackChangesValue)); + case FILE_SAVE_COPY_REFERENCE: + return (this.fileSaveCopyReferenceValue == other.fileSaveCopyReferenceValue) || (this.fileSaveCopyReferenceValue.equals(other.fileSaveCopyReferenceValue)); + case FOLDER_OVERVIEW_DESCRIPTION_CHANGED: + return (this.folderOverviewDescriptionChangedValue == other.folderOverviewDescriptionChangedValue) || (this.folderOverviewDescriptionChangedValue.equals(other.folderOverviewDescriptionChangedValue)); + case FOLDER_OVERVIEW_ITEM_PINNED: + return (this.folderOverviewItemPinnedValue == other.folderOverviewItemPinnedValue) || (this.folderOverviewItemPinnedValue.equals(other.folderOverviewItemPinnedValue)); + case FOLDER_OVERVIEW_ITEM_UNPINNED: + return (this.folderOverviewItemUnpinnedValue == other.folderOverviewItemUnpinnedValue) || (this.folderOverviewItemUnpinnedValue.equals(other.folderOverviewItemUnpinnedValue)); + case OBJECT_LABEL_ADDED: + return (this.objectLabelAddedValue == other.objectLabelAddedValue) || (this.objectLabelAddedValue.equals(other.objectLabelAddedValue)); + case OBJECT_LABEL_REMOVED: + return (this.objectLabelRemovedValue == other.objectLabelRemovedValue) || (this.objectLabelRemovedValue.equals(other.objectLabelRemovedValue)); + case OBJECT_LABEL_UPDATED_VALUE: + return (this.objectLabelUpdatedValueValue == other.objectLabelUpdatedValueValue) || (this.objectLabelUpdatedValueValue.equals(other.objectLabelUpdatedValueValue)); + case ORGANIZE_FOLDER_WITH_TIDY: + return (this.organizeFolderWithTidyValue == other.organizeFolderWithTidyValue) || (this.organizeFolderWithTidyValue.equals(other.organizeFolderWithTidyValue)); + case REPLAY_FILE_DELETE: + return (this.replayFileDeleteValue == other.replayFileDeleteValue) || (this.replayFileDeleteValue.equals(other.replayFileDeleteValue)); + case REWIND_FOLDER: + return (this.rewindFolderValue == other.rewindFolderValue) || (this.rewindFolderValue.equals(other.rewindFolderValue)); + case UNDO_NAMING_CONVENTION: + return (this.undoNamingConventionValue == other.undoNamingConventionValue) || (this.undoNamingConventionValue.equals(other.undoNamingConventionValue)); + case UNDO_ORGANIZE_FOLDER_WITH_TIDY: + return (this.undoOrganizeFolderWithTidyValue == other.undoOrganizeFolderWithTidyValue) || (this.undoOrganizeFolderWithTidyValue.equals(other.undoOrganizeFolderWithTidyValue)); + case USER_TAGS_ADDED: + return (this.userTagsAddedValue == other.userTagsAddedValue) || (this.userTagsAddedValue.equals(other.userTagsAddedValue)); + case USER_TAGS_REMOVED: + return (this.userTagsRemovedValue == other.userTagsRemovedValue) || (this.userTagsRemovedValue.equals(other.userTagsRemovedValue)); + case EMAIL_INGEST_RECEIVE_FILE: + return (this.emailIngestReceiveFileValue == other.emailIngestReceiveFileValue) || (this.emailIngestReceiveFileValue.equals(other.emailIngestReceiveFileValue)); + case FILE_REQUEST_CHANGE: + return (this.fileRequestChangeValue == other.fileRequestChangeValue) || (this.fileRequestChangeValue.equals(other.fileRequestChangeValue)); + case FILE_REQUEST_CLOSE: + return (this.fileRequestCloseValue == other.fileRequestCloseValue) || (this.fileRequestCloseValue.equals(other.fileRequestCloseValue)); + case FILE_REQUEST_CREATE: + return (this.fileRequestCreateValue == other.fileRequestCreateValue) || (this.fileRequestCreateValue.equals(other.fileRequestCreateValue)); + case FILE_REQUEST_DELETE: + return (this.fileRequestDeleteValue == other.fileRequestDeleteValue) || (this.fileRequestDeleteValue.equals(other.fileRequestDeleteValue)); + case FILE_REQUEST_RECEIVE_FILE: + return (this.fileRequestReceiveFileValue == other.fileRequestReceiveFileValue) || (this.fileRequestReceiveFileValue.equals(other.fileRequestReceiveFileValue)); + case GROUP_ADD_EXTERNAL_ID: + return (this.groupAddExternalIdValue == other.groupAddExternalIdValue) || (this.groupAddExternalIdValue.equals(other.groupAddExternalIdValue)); + case GROUP_ADD_MEMBER: + return (this.groupAddMemberValue == other.groupAddMemberValue) || (this.groupAddMemberValue.equals(other.groupAddMemberValue)); + case GROUP_CHANGE_EXTERNAL_ID: + return (this.groupChangeExternalIdValue == other.groupChangeExternalIdValue) || (this.groupChangeExternalIdValue.equals(other.groupChangeExternalIdValue)); + case GROUP_CHANGE_MANAGEMENT_TYPE: + return (this.groupChangeManagementTypeValue == other.groupChangeManagementTypeValue) || (this.groupChangeManagementTypeValue.equals(other.groupChangeManagementTypeValue)); + case GROUP_CHANGE_MEMBER_ROLE: + return (this.groupChangeMemberRoleValue == other.groupChangeMemberRoleValue) || (this.groupChangeMemberRoleValue.equals(other.groupChangeMemberRoleValue)); + case GROUP_CREATE: + return (this.groupCreateValue == other.groupCreateValue) || (this.groupCreateValue.equals(other.groupCreateValue)); + case GROUP_DELETE: + return (this.groupDeleteValue == other.groupDeleteValue) || (this.groupDeleteValue.equals(other.groupDeleteValue)); + case GROUP_DESCRIPTION_UPDATED: + return (this.groupDescriptionUpdatedValue == other.groupDescriptionUpdatedValue) || (this.groupDescriptionUpdatedValue.equals(other.groupDescriptionUpdatedValue)); + case GROUP_JOIN_POLICY_UPDATED: + return (this.groupJoinPolicyUpdatedValue == other.groupJoinPolicyUpdatedValue) || (this.groupJoinPolicyUpdatedValue.equals(other.groupJoinPolicyUpdatedValue)); + case GROUP_MOVED: + return (this.groupMovedValue == other.groupMovedValue) || (this.groupMovedValue.equals(other.groupMovedValue)); + case GROUP_REMOVE_EXTERNAL_ID: + return (this.groupRemoveExternalIdValue == other.groupRemoveExternalIdValue) || (this.groupRemoveExternalIdValue.equals(other.groupRemoveExternalIdValue)); + case GROUP_REMOVE_MEMBER: + return (this.groupRemoveMemberValue == other.groupRemoveMemberValue) || (this.groupRemoveMemberValue.equals(other.groupRemoveMemberValue)); + case GROUP_RENAME: + return (this.groupRenameValue == other.groupRenameValue) || (this.groupRenameValue.equals(other.groupRenameValue)); + case ACCOUNT_LOCK_OR_UNLOCKED: + return (this.accountLockOrUnlockedValue == other.accountLockOrUnlockedValue) || (this.accountLockOrUnlockedValue.equals(other.accountLockOrUnlockedValue)); + case EMM_ERROR: + return (this.emmErrorValue == other.emmErrorValue) || (this.emmErrorValue.equals(other.emmErrorValue)); + case GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS: + return (this.guestAdminSignedInViaTrustedTeamsValue == other.guestAdminSignedInViaTrustedTeamsValue) || (this.guestAdminSignedInViaTrustedTeamsValue.equals(other.guestAdminSignedInViaTrustedTeamsValue)); + case GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS: + return (this.guestAdminSignedOutViaTrustedTeamsValue == other.guestAdminSignedOutViaTrustedTeamsValue) || (this.guestAdminSignedOutViaTrustedTeamsValue.equals(other.guestAdminSignedOutViaTrustedTeamsValue)); + case LOGIN_FAIL: + return (this.loginFailValue == other.loginFailValue) || (this.loginFailValue.equals(other.loginFailValue)); + case LOGIN_SUCCESS: + return (this.loginSuccessValue == other.loginSuccessValue) || (this.loginSuccessValue.equals(other.loginSuccessValue)); + case LOGOUT: + return (this.logoutValue == other.logoutValue) || (this.logoutValue.equals(other.logoutValue)); + case RESELLER_SUPPORT_SESSION_END: + return (this.resellerSupportSessionEndValue == other.resellerSupportSessionEndValue) || (this.resellerSupportSessionEndValue.equals(other.resellerSupportSessionEndValue)); + case RESELLER_SUPPORT_SESSION_START: + return (this.resellerSupportSessionStartValue == other.resellerSupportSessionStartValue) || (this.resellerSupportSessionStartValue.equals(other.resellerSupportSessionStartValue)); + case SIGN_IN_AS_SESSION_END: + return (this.signInAsSessionEndValue == other.signInAsSessionEndValue) || (this.signInAsSessionEndValue.equals(other.signInAsSessionEndValue)); + case SIGN_IN_AS_SESSION_START: + return (this.signInAsSessionStartValue == other.signInAsSessionStartValue) || (this.signInAsSessionStartValue.equals(other.signInAsSessionStartValue)); + case SSO_ERROR: + return (this.ssoErrorValue == other.ssoErrorValue) || (this.ssoErrorValue.equals(other.ssoErrorValue)); + case BACKUP_ADMIN_INVITATION_SENT: + return (this.backupAdminInvitationSentValue == other.backupAdminInvitationSentValue) || (this.backupAdminInvitationSentValue.equals(other.backupAdminInvitationSentValue)); + case BACKUP_INVITATION_OPENED: + return (this.backupInvitationOpenedValue == other.backupInvitationOpenedValue) || (this.backupInvitationOpenedValue.equals(other.backupInvitationOpenedValue)); + case CREATE_TEAM_INVITE_LINK: + return (this.createTeamInviteLinkValue == other.createTeamInviteLinkValue) || (this.createTeamInviteLinkValue.equals(other.createTeamInviteLinkValue)); + case DELETE_TEAM_INVITE_LINK: + return (this.deleteTeamInviteLinkValue == other.deleteTeamInviteLinkValue) || (this.deleteTeamInviteLinkValue.equals(other.deleteTeamInviteLinkValue)); + case MEMBER_ADD_EXTERNAL_ID: + return (this.memberAddExternalIdValue == other.memberAddExternalIdValue) || (this.memberAddExternalIdValue.equals(other.memberAddExternalIdValue)); + case MEMBER_ADD_NAME: + return (this.memberAddNameValue == other.memberAddNameValue) || (this.memberAddNameValue.equals(other.memberAddNameValue)); + case MEMBER_CHANGE_ADMIN_ROLE: + return (this.memberChangeAdminRoleValue == other.memberChangeAdminRoleValue) || (this.memberChangeAdminRoleValue.equals(other.memberChangeAdminRoleValue)); + case MEMBER_CHANGE_EMAIL: + return (this.memberChangeEmailValue == other.memberChangeEmailValue) || (this.memberChangeEmailValue.equals(other.memberChangeEmailValue)); + case MEMBER_CHANGE_EXTERNAL_ID: + return (this.memberChangeExternalIdValue == other.memberChangeExternalIdValue) || (this.memberChangeExternalIdValue.equals(other.memberChangeExternalIdValue)); + case MEMBER_CHANGE_MEMBERSHIP_TYPE: + return (this.memberChangeMembershipTypeValue == other.memberChangeMembershipTypeValue) || (this.memberChangeMembershipTypeValue.equals(other.memberChangeMembershipTypeValue)); + case MEMBER_CHANGE_NAME: + return (this.memberChangeNameValue == other.memberChangeNameValue) || (this.memberChangeNameValue.equals(other.memberChangeNameValue)); + case MEMBER_CHANGE_RESELLER_ROLE: + return (this.memberChangeResellerRoleValue == other.memberChangeResellerRoleValue) || (this.memberChangeResellerRoleValue.equals(other.memberChangeResellerRoleValue)); + case MEMBER_CHANGE_STATUS: + return (this.memberChangeStatusValue == other.memberChangeStatusValue) || (this.memberChangeStatusValue.equals(other.memberChangeStatusValue)); + case MEMBER_DELETE_MANUAL_CONTACTS: + return (this.memberDeleteManualContactsValue == other.memberDeleteManualContactsValue) || (this.memberDeleteManualContactsValue.equals(other.memberDeleteManualContactsValue)); + case MEMBER_DELETE_PROFILE_PHOTO: + return (this.memberDeleteProfilePhotoValue == other.memberDeleteProfilePhotoValue) || (this.memberDeleteProfilePhotoValue.equals(other.memberDeleteProfilePhotoValue)); + case MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS: + return (this.memberPermanentlyDeleteAccountContentsValue == other.memberPermanentlyDeleteAccountContentsValue) || (this.memberPermanentlyDeleteAccountContentsValue.equals(other.memberPermanentlyDeleteAccountContentsValue)); + case MEMBER_REMOVE_EXTERNAL_ID: + return (this.memberRemoveExternalIdValue == other.memberRemoveExternalIdValue) || (this.memberRemoveExternalIdValue.equals(other.memberRemoveExternalIdValue)); + case MEMBER_SET_PROFILE_PHOTO: + return (this.memberSetProfilePhotoValue == other.memberSetProfilePhotoValue) || (this.memberSetProfilePhotoValue.equals(other.memberSetProfilePhotoValue)); + case MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA: + return (this.memberSpaceLimitsAddCustomQuotaValue == other.memberSpaceLimitsAddCustomQuotaValue) || (this.memberSpaceLimitsAddCustomQuotaValue.equals(other.memberSpaceLimitsAddCustomQuotaValue)); + case MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA: + return (this.memberSpaceLimitsChangeCustomQuotaValue == other.memberSpaceLimitsChangeCustomQuotaValue) || (this.memberSpaceLimitsChangeCustomQuotaValue.equals(other.memberSpaceLimitsChangeCustomQuotaValue)); + case MEMBER_SPACE_LIMITS_CHANGE_STATUS: + return (this.memberSpaceLimitsChangeStatusValue == other.memberSpaceLimitsChangeStatusValue) || (this.memberSpaceLimitsChangeStatusValue.equals(other.memberSpaceLimitsChangeStatusValue)); + case MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA: + return (this.memberSpaceLimitsRemoveCustomQuotaValue == other.memberSpaceLimitsRemoveCustomQuotaValue) || (this.memberSpaceLimitsRemoveCustomQuotaValue.equals(other.memberSpaceLimitsRemoveCustomQuotaValue)); + case MEMBER_SUGGEST: + return (this.memberSuggestValue == other.memberSuggestValue) || (this.memberSuggestValue.equals(other.memberSuggestValue)); + case MEMBER_TRANSFER_ACCOUNT_CONTENTS: + return (this.memberTransferAccountContentsValue == other.memberTransferAccountContentsValue) || (this.memberTransferAccountContentsValue.equals(other.memberTransferAccountContentsValue)); + case PENDING_SECONDARY_EMAIL_ADDED: + return (this.pendingSecondaryEmailAddedValue == other.pendingSecondaryEmailAddedValue) || (this.pendingSecondaryEmailAddedValue.equals(other.pendingSecondaryEmailAddedValue)); + case SECONDARY_EMAIL_DELETED: + return (this.secondaryEmailDeletedValue == other.secondaryEmailDeletedValue) || (this.secondaryEmailDeletedValue.equals(other.secondaryEmailDeletedValue)); + case SECONDARY_EMAIL_VERIFIED: + return (this.secondaryEmailVerifiedValue == other.secondaryEmailVerifiedValue) || (this.secondaryEmailVerifiedValue.equals(other.secondaryEmailVerifiedValue)); + case SECONDARY_MAILS_POLICY_CHANGED: + return (this.secondaryMailsPolicyChangedValue == other.secondaryMailsPolicyChangedValue) || (this.secondaryMailsPolicyChangedValue.equals(other.secondaryMailsPolicyChangedValue)); + case BINDER_ADD_PAGE: + return (this.binderAddPageValue == other.binderAddPageValue) || (this.binderAddPageValue.equals(other.binderAddPageValue)); + case BINDER_ADD_SECTION: + return (this.binderAddSectionValue == other.binderAddSectionValue) || (this.binderAddSectionValue.equals(other.binderAddSectionValue)); + case BINDER_REMOVE_PAGE: + return (this.binderRemovePageValue == other.binderRemovePageValue) || (this.binderRemovePageValue.equals(other.binderRemovePageValue)); + case BINDER_REMOVE_SECTION: + return (this.binderRemoveSectionValue == other.binderRemoveSectionValue) || (this.binderRemoveSectionValue.equals(other.binderRemoveSectionValue)); + case BINDER_RENAME_PAGE: + return (this.binderRenamePageValue == other.binderRenamePageValue) || (this.binderRenamePageValue.equals(other.binderRenamePageValue)); + case BINDER_RENAME_SECTION: + return (this.binderRenameSectionValue == other.binderRenameSectionValue) || (this.binderRenameSectionValue.equals(other.binderRenameSectionValue)); + case BINDER_REORDER_PAGE: + return (this.binderReorderPageValue == other.binderReorderPageValue) || (this.binderReorderPageValue.equals(other.binderReorderPageValue)); + case BINDER_REORDER_SECTION: + return (this.binderReorderSectionValue == other.binderReorderSectionValue) || (this.binderReorderSectionValue.equals(other.binderReorderSectionValue)); + case PAPER_CONTENT_ADD_MEMBER: + return (this.paperContentAddMemberValue == other.paperContentAddMemberValue) || (this.paperContentAddMemberValue.equals(other.paperContentAddMemberValue)); + case PAPER_CONTENT_ADD_TO_FOLDER: + return (this.paperContentAddToFolderValue == other.paperContentAddToFolderValue) || (this.paperContentAddToFolderValue.equals(other.paperContentAddToFolderValue)); + case PAPER_CONTENT_ARCHIVE: + return (this.paperContentArchiveValue == other.paperContentArchiveValue) || (this.paperContentArchiveValue.equals(other.paperContentArchiveValue)); + case PAPER_CONTENT_CREATE: + return (this.paperContentCreateValue == other.paperContentCreateValue) || (this.paperContentCreateValue.equals(other.paperContentCreateValue)); + case PAPER_CONTENT_PERMANENTLY_DELETE: + return (this.paperContentPermanentlyDeleteValue == other.paperContentPermanentlyDeleteValue) || (this.paperContentPermanentlyDeleteValue.equals(other.paperContentPermanentlyDeleteValue)); + case PAPER_CONTENT_REMOVE_FROM_FOLDER: + return (this.paperContentRemoveFromFolderValue == other.paperContentRemoveFromFolderValue) || (this.paperContentRemoveFromFolderValue.equals(other.paperContentRemoveFromFolderValue)); + case PAPER_CONTENT_REMOVE_MEMBER: + return (this.paperContentRemoveMemberValue == other.paperContentRemoveMemberValue) || (this.paperContentRemoveMemberValue.equals(other.paperContentRemoveMemberValue)); + case PAPER_CONTENT_RENAME: + return (this.paperContentRenameValue == other.paperContentRenameValue) || (this.paperContentRenameValue.equals(other.paperContentRenameValue)); + case PAPER_CONTENT_RESTORE: + return (this.paperContentRestoreValue == other.paperContentRestoreValue) || (this.paperContentRestoreValue.equals(other.paperContentRestoreValue)); + case PAPER_DOC_ADD_COMMENT: + return (this.paperDocAddCommentValue == other.paperDocAddCommentValue) || (this.paperDocAddCommentValue.equals(other.paperDocAddCommentValue)); + case PAPER_DOC_CHANGE_MEMBER_ROLE: + return (this.paperDocChangeMemberRoleValue == other.paperDocChangeMemberRoleValue) || (this.paperDocChangeMemberRoleValue.equals(other.paperDocChangeMemberRoleValue)); + case PAPER_DOC_CHANGE_SHARING_POLICY: + return (this.paperDocChangeSharingPolicyValue == other.paperDocChangeSharingPolicyValue) || (this.paperDocChangeSharingPolicyValue.equals(other.paperDocChangeSharingPolicyValue)); + case PAPER_DOC_CHANGE_SUBSCRIPTION: + return (this.paperDocChangeSubscriptionValue == other.paperDocChangeSubscriptionValue) || (this.paperDocChangeSubscriptionValue.equals(other.paperDocChangeSubscriptionValue)); + case PAPER_DOC_DELETED: + return (this.paperDocDeletedValue == other.paperDocDeletedValue) || (this.paperDocDeletedValue.equals(other.paperDocDeletedValue)); + case PAPER_DOC_DELETE_COMMENT: + return (this.paperDocDeleteCommentValue == other.paperDocDeleteCommentValue) || (this.paperDocDeleteCommentValue.equals(other.paperDocDeleteCommentValue)); + case PAPER_DOC_DOWNLOAD: + return (this.paperDocDownloadValue == other.paperDocDownloadValue) || (this.paperDocDownloadValue.equals(other.paperDocDownloadValue)); + case PAPER_DOC_EDIT: + return (this.paperDocEditValue == other.paperDocEditValue) || (this.paperDocEditValue.equals(other.paperDocEditValue)); + case PAPER_DOC_EDIT_COMMENT: + return (this.paperDocEditCommentValue == other.paperDocEditCommentValue) || (this.paperDocEditCommentValue.equals(other.paperDocEditCommentValue)); + case PAPER_DOC_FOLLOWED: + return (this.paperDocFollowedValue == other.paperDocFollowedValue) || (this.paperDocFollowedValue.equals(other.paperDocFollowedValue)); + case PAPER_DOC_MENTION: + return (this.paperDocMentionValue == other.paperDocMentionValue) || (this.paperDocMentionValue.equals(other.paperDocMentionValue)); + case PAPER_DOC_OWNERSHIP_CHANGED: + return (this.paperDocOwnershipChangedValue == other.paperDocOwnershipChangedValue) || (this.paperDocOwnershipChangedValue.equals(other.paperDocOwnershipChangedValue)); + case PAPER_DOC_REQUEST_ACCESS: + return (this.paperDocRequestAccessValue == other.paperDocRequestAccessValue) || (this.paperDocRequestAccessValue.equals(other.paperDocRequestAccessValue)); + case PAPER_DOC_RESOLVE_COMMENT: + return (this.paperDocResolveCommentValue == other.paperDocResolveCommentValue) || (this.paperDocResolveCommentValue.equals(other.paperDocResolveCommentValue)); + case PAPER_DOC_REVERT: + return (this.paperDocRevertValue == other.paperDocRevertValue) || (this.paperDocRevertValue.equals(other.paperDocRevertValue)); + case PAPER_DOC_SLACK_SHARE: + return (this.paperDocSlackShareValue == other.paperDocSlackShareValue) || (this.paperDocSlackShareValue.equals(other.paperDocSlackShareValue)); + case PAPER_DOC_TEAM_INVITE: + return (this.paperDocTeamInviteValue == other.paperDocTeamInviteValue) || (this.paperDocTeamInviteValue.equals(other.paperDocTeamInviteValue)); + case PAPER_DOC_TRASHED: + return (this.paperDocTrashedValue == other.paperDocTrashedValue) || (this.paperDocTrashedValue.equals(other.paperDocTrashedValue)); + case PAPER_DOC_UNRESOLVE_COMMENT: + return (this.paperDocUnresolveCommentValue == other.paperDocUnresolveCommentValue) || (this.paperDocUnresolveCommentValue.equals(other.paperDocUnresolveCommentValue)); + case PAPER_DOC_UNTRASHED: + return (this.paperDocUntrashedValue == other.paperDocUntrashedValue) || (this.paperDocUntrashedValue.equals(other.paperDocUntrashedValue)); + case PAPER_DOC_VIEW: + return (this.paperDocViewValue == other.paperDocViewValue) || (this.paperDocViewValue.equals(other.paperDocViewValue)); + case PAPER_EXTERNAL_VIEW_ALLOW: + return (this.paperExternalViewAllowValue == other.paperExternalViewAllowValue) || (this.paperExternalViewAllowValue.equals(other.paperExternalViewAllowValue)); + case PAPER_EXTERNAL_VIEW_DEFAULT_TEAM: + return (this.paperExternalViewDefaultTeamValue == other.paperExternalViewDefaultTeamValue) || (this.paperExternalViewDefaultTeamValue.equals(other.paperExternalViewDefaultTeamValue)); + case PAPER_EXTERNAL_VIEW_FORBID: + return (this.paperExternalViewForbidValue == other.paperExternalViewForbidValue) || (this.paperExternalViewForbidValue.equals(other.paperExternalViewForbidValue)); + case PAPER_FOLDER_CHANGE_SUBSCRIPTION: + return (this.paperFolderChangeSubscriptionValue == other.paperFolderChangeSubscriptionValue) || (this.paperFolderChangeSubscriptionValue.equals(other.paperFolderChangeSubscriptionValue)); + case PAPER_FOLDER_DELETED: + return (this.paperFolderDeletedValue == other.paperFolderDeletedValue) || (this.paperFolderDeletedValue.equals(other.paperFolderDeletedValue)); + case PAPER_FOLDER_FOLLOWED: + return (this.paperFolderFollowedValue == other.paperFolderFollowedValue) || (this.paperFolderFollowedValue.equals(other.paperFolderFollowedValue)); + case PAPER_FOLDER_TEAM_INVITE: + return (this.paperFolderTeamInviteValue == other.paperFolderTeamInviteValue) || (this.paperFolderTeamInviteValue.equals(other.paperFolderTeamInviteValue)); + case PAPER_PUBLISHED_LINK_CHANGE_PERMISSION: + return (this.paperPublishedLinkChangePermissionValue == other.paperPublishedLinkChangePermissionValue) || (this.paperPublishedLinkChangePermissionValue.equals(other.paperPublishedLinkChangePermissionValue)); + case PAPER_PUBLISHED_LINK_CREATE: + return (this.paperPublishedLinkCreateValue == other.paperPublishedLinkCreateValue) || (this.paperPublishedLinkCreateValue.equals(other.paperPublishedLinkCreateValue)); + case PAPER_PUBLISHED_LINK_DISABLED: + return (this.paperPublishedLinkDisabledValue == other.paperPublishedLinkDisabledValue) || (this.paperPublishedLinkDisabledValue.equals(other.paperPublishedLinkDisabledValue)); + case PAPER_PUBLISHED_LINK_VIEW: + return (this.paperPublishedLinkViewValue == other.paperPublishedLinkViewValue) || (this.paperPublishedLinkViewValue.equals(other.paperPublishedLinkViewValue)); + case PASSWORD_CHANGE: + return (this.passwordChangeValue == other.passwordChangeValue) || (this.passwordChangeValue.equals(other.passwordChangeValue)); + case PASSWORD_RESET: + return (this.passwordResetValue == other.passwordResetValue) || (this.passwordResetValue.equals(other.passwordResetValue)); + case PASSWORD_RESET_ALL: + return (this.passwordResetAllValue == other.passwordResetAllValue) || (this.passwordResetAllValue.equals(other.passwordResetAllValue)); + case CLASSIFICATION_CREATE_REPORT: + return (this.classificationCreateReportValue == other.classificationCreateReportValue) || (this.classificationCreateReportValue.equals(other.classificationCreateReportValue)); + case CLASSIFICATION_CREATE_REPORT_FAIL: + return (this.classificationCreateReportFailValue == other.classificationCreateReportFailValue) || (this.classificationCreateReportFailValue.equals(other.classificationCreateReportFailValue)); + case EMM_CREATE_EXCEPTIONS_REPORT: + return (this.emmCreateExceptionsReportValue == other.emmCreateExceptionsReportValue) || (this.emmCreateExceptionsReportValue.equals(other.emmCreateExceptionsReportValue)); + case EMM_CREATE_USAGE_REPORT: + return (this.emmCreateUsageReportValue == other.emmCreateUsageReportValue) || (this.emmCreateUsageReportValue.equals(other.emmCreateUsageReportValue)); + case EXPORT_MEMBERS_REPORT: + return (this.exportMembersReportValue == other.exportMembersReportValue) || (this.exportMembersReportValue.equals(other.exportMembersReportValue)); + case EXPORT_MEMBERS_REPORT_FAIL: + return (this.exportMembersReportFailValue == other.exportMembersReportFailValue) || (this.exportMembersReportFailValue.equals(other.exportMembersReportFailValue)); + case EXTERNAL_SHARING_CREATE_REPORT: + return (this.externalSharingCreateReportValue == other.externalSharingCreateReportValue) || (this.externalSharingCreateReportValue.equals(other.externalSharingCreateReportValue)); + case EXTERNAL_SHARING_REPORT_FAILED: + return (this.externalSharingReportFailedValue == other.externalSharingReportFailedValue) || (this.externalSharingReportFailedValue.equals(other.externalSharingReportFailedValue)); + case NO_EXPIRATION_LINK_GEN_CREATE_REPORT: + return (this.noExpirationLinkGenCreateReportValue == other.noExpirationLinkGenCreateReportValue) || (this.noExpirationLinkGenCreateReportValue.equals(other.noExpirationLinkGenCreateReportValue)); + case NO_EXPIRATION_LINK_GEN_REPORT_FAILED: + return (this.noExpirationLinkGenReportFailedValue == other.noExpirationLinkGenReportFailedValue) || (this.noExpirationLinkGenReportFailedValue.equals(other.noExpirationLinkGenReportFailedValue)); + case NO_PASSWORD_LINK_GEN_CREATE_REPORT: + return (this.noPasswordLinkGenCreateReportValue == other.noPasswordLinkGenCreateReportValue) || (this.noPasswordLinkGenCreateReportValue.equals(other.noPasswordLinkGenCreateReportValue)); + case NO_PASSWORD_LINK_GEN_REPORT_FAILED: + return (this.noPasswordLinkGenReportFailedValue == other.noPasswordLinkGenReportFailedValue) || (this.noPasswordLinkGenReportFailedValue.equals(other.noPasswordLinkGenReportFailedValue)); + case NO_PASSWORD_LINK_VIEW_CREATE_REPORT: + return (this.noPasswordLinkViewCreateReportValue == other.noPasswordLinkViewCreateReportValue) || (this.noPasswordLinkViewCreateReportValue.equals(other.noPasswordLinkViewCreateReportValue)); + case NO_PASSWORD_LINK_VIEW_REPORT_FAILED: + return (this.noPasswordLinkViewReportFailedValue == other.noPasswordLinkViewReportFailedValue) || (this.noPasswordLinkViewReportFailedValue.equals(other.noPasswordLinkViewReportFailedValue)); + case OUTDATED_LINK_VIEW_CREATE_REPORT: + return (this.outdatedLinkViewCreateReportValue == other.outdatedLinkViewCreateReportValue) || (this.outdatedLinkViewCreateReportValue.equals(other.outdatedLinkViewCreateReportValue)); + case OUTDATED_LINK_VIEW_REPORT_FAILED: + return (this.outdatedLinkViewReportFailedValue == other.outdatedLinkViewReportFailedValue) || (this.outdatedLinkViewReportFailedValue.equals(other.outdatedLinkViewReportFailedValue)); + case PAPER_ADMIN_EXPORT_START: + return (this.paperAdminExportStartValue == other.paperAdminExportStartValue) || (this.paperAdminExportStartValue.equals(other.paperAdminExportStartValue)); + case RANSOMWARE_ALERT_CREATE_REPORT: + return (this.ransomwareAlertCreateReportValue == other.ransomwareAlertCreateReportValue) || (this.ransomwareAlertCreateReportValue.equals(other.ransomwareAlertCreateReportValue)); + case RANSOMWARE_ALERT_CREATE_REPORT_FAILED: + return (this.ransomwareAlertCreateReportFailedValue == other.ransomwareAlertCreateReportFailedValue) || (this.ransomwareAlertCreateReportFailedValue.equals(other.ransomwareAlertCreateReportFailedValue)); + case SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT: + return (this.smartSyncCreateAdminPrivilegeReportValue == other.smartSyncCreateAdminPrivilegeReportValue) || (this.smartSyncCreateAdminPrivilegeReportValue.equals(other.smartSyncCreateAdminPrivilegeReportValue)); + case TEAM_ACTIVITY_CREATE_REPORT: + return (this.teamActivityCreateReportValue == other.teamActivityCreateReportValue) || (this.teamActivityCreateReportValue.equals(other.teamActivityCreateReportValue)); + case TEAM_ACTIVITY_CREATE_REPORT_FAIL: + return (this.teamActivityCreateReportFailValue == other.teamActivityCreateReportFailValue) || (this.teamActivityCreateReportFailValue.equals(other.teamActivityCreateReportFailValue)); + case COLLECTION_SHARE: + return (this.collectionShareValue == other.collectionShareValue) || (this.collectionShareValue.equals(other.collectionShareValue)); + case FILE_TRANSFERS_FILE_ADD: + return (this.fileTransfersFileAddValue == other.fileTransfersFileAddValue) || (this.fileTransfersFileAddValue.equals(other.fileTransfersFileAddValue)); + case FILE_TRANSFERS_TRANSFER_DELETE: + return (this.fileTransfersTransferDeleteValue == other.fileTransfersTransferDeleteValue) || (this.fileTransfersTransferDeleteValue.equals(other.fileTransfersTransferDeleteValue)); + case FILE_TRANSFERS_TRANSFER_DOWNLOAD: + return (this.fileTransfersTransferDownloadValue == other.fileTransfersTransferDownloadValue) || (this.fileTransfersTransferDownloadValue.equals(other.fileTransfersTransferDownloadValue)); + case FILE_TRANSFERS_TRANSFER_SEND: + return (this.fileTransfersTransferSendValue == other.fileTransfersTransferSendValue) || (this.fileTransfersTransferSendValue.equals(other.fileTransfersTransferSendValue)); + case FILE_TRANSFERS_TRANSFER_VIEW: + return (this.fileTransfersTransferViewValue == other.fileTransfersTransferViewValue) || (this.fileTransfersTransferViewValue.equals(other.fileTransfersTransferViewValue)); + case NOTE_ACL_INVITE_ONLY: + return (this.noteAclInviteOnlyValue == other.noteAclInviteOnlyValue) || (this.noteAclInviteOnlyValue.equals(other.noteAclInviteOnlyValue)); + case NOTE_ACL_LINK: + return (this.noteAclLinkValue == other.noteAclLinkValue) || (this.noteAclLinkValue.equals(other.noteAclLinkValue)); + case NOTE_ACL_TEAM_LINK: + return (this.noteAclTeamLinkValue == other.noteAclTeamLinkValue) || (this.noteAclTeamLinkValue.equals(other.noteAclTeamLinkValue)); + case NOTE_SHARED: + return (this.noteSharedValue == other.noteSharedValue) || (this.noteSharedValue.equals(other.noteSharedValue)); + case NOTE_SHARE_RECEIVE: + return (this.noteShareReceiveValue == other.noteShareReceiveValue) || (this.noteShareReceiveValue.equals(other.noteShareReceiveValue)); + case OPEN_NOTE_SHARED: + return (this.openNoteSharedValue == other.openNoteSharedValue) || (this.openNoteSharedValue.equals(other.openNoteSharedValue)); + case REPLAY_FILE_SHARED_LINK_CREATED: + return (this.replayFileSharedLinkCreatedValue == other.replayFileSharedLinkCreatedValue) || (this.replayFileSharedLinkCreatedValue.equals(other.replayFileSharedLinkCreatedValue)); + case REPLAY_FILE_SHARED_LINK_MODIFIED: + return (this.replayFileSharedLinkModifiedValue == other.replayFileSharedLinkModifiedValue) || (this.replayFileSharedLinkModifiedValue.equals(other.replayFileSharedLinkModifiedValue)); + case REPLAY_PROJECT_TEAM_ADD: + return (this.replayProjectTeamAddValue == other.replayProjectTeamAddValue) || (this.replayProjectTeamAddValue.equals(other.replayProjectTeamAddValue)); + case REPLAY_PROJECT_TEAM_DELETE: + return (this.replayProjectTeamDeleteValue == other.replayProjectTeamDeleteValue) || (this.replayProjectTeamDeleteValue.equals(other.replayProjectTeamDeleteValue)); + case SF_ADD_GROUP: + return (this.sfAddGroupValue == other.sfAddGroupValue) || (this.sfAddGroupValue.equals(other.sfAddGroupValue)); + case SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS: + return (this.sfAllowNonMembersToViewSharedLinksValue == other.sfAllowNonMembersToViewSharedLinksValue) || (this.sfAllowNonMembersToViewSharedLinksValue.equals(other.sfAllowNonMembersToViewSharedLinksValue)); + case SF_EXTERNAL_INVITE_WARN: + return (this.sfExternalInviteWarnValue == other.sfExternalInviteWarnValue) || (this.sfExternalInviteWarnValue.equals(other.sfExternalInviteWarnValue)); + case SF_FB_INVITE: + return (this.sfFbInviteValue == other.sfFbInviteValue) || (this.sfFbInviteValue.equals(other.sfFbInviteValue)); + case SF_FB_INVITE_CHANGE_ROLE: + return (this.sfFbInviteChangeRoleValue == other.sfFbInviteChangeRoleValue) || (this.sfFbInviteChangeRoleValue.equals(other.sfFbInviteChangeRoleValue)); + case SF_FB_UNINVITE: + return (this.sfFbUninviteValue == other.sfFbUninviteValue) || (this.sfFbUninviteValue.equals(other.sfFbUninviteValue)); + case SF_INVITE_GROUP: + return (this.sfInviteGroupValue == other.sfInviteGroupValue) || (this.sfInviteGroupValue.equals(other.sfInviteGroupValue)); + case SF_TEAM_GRANT_ACCESS: + return (this.sfTeamGrantAccessValue == other.sfTeamGrantAccessValue) || (this.sfTeamGrantAccessValue.equals(other.sfTeamGrantAccessValue)); + case SF_TEAM_INVITE: + return (this.sfTeamInviteValue == other.sfTeamInviteValue) || (this.sfTeamInviteValue.equals(other.sfTeamInviteValue)); + case SF_TEAM_INVITE_CHANGE_ROLE: + return (this.sfTeamInviteChangeRoleValue == other.sfTeamInviteChangeRoleValue) || (this.sfTeamInviteChangeRoleValue.equals(other.sfTeamInviteChangeRoleValue)); + case SF_TEAM_JOIN: + return (this.sfTeamJoinValue == other.sfTeamJoinValue) || (this.sfTeamJoinValue.equals(other.sfTeamJoinValue)); + case SF_TEAM_JOIN_FROM_OOB_LINK: + return (this.sfTeamJoinFromOobLinkValue == other.sfTeamJoinFromOobLinkValue) || (this.sfTeamJoinFromOobLinkValue.equals(other.sfTeamJoinFromOobLinkValue)); + case SF_TEAM_UNINVITE: + return (this.sfTeamUninviteValue == other.sfTeamUninviteValue) || (this.sfTeamUninviteValue.equals(other.sfTeamUninviteValue)); + case SHARED_CONTENT_ADD_INVITEES: + return (this.sharedContentAddInviteesValue == other.sharedContentAddInviteesValue) || (this.sharedContentAddInviteesValue.equals(other.sharedContentAddInviteesValue)); + case SHARED_CONTENT_ADD_LINK_EXPIRY: + return (this.sharedContentAddLinkExpiryValue == other.sharedContentAddLinkExpiryValue) || (this.sharedContentAddLinkExpiryValue.equals(other.sharedContentAddLinkExpiryValue)); + case SHARED_CONTENT_ADD_LINK_PASSWORD: + return (this.sharedContentAddLinkPasswordValue == other.sharedContentAddLinkPasswordValue) || (this.sharedContentAddLinkPasswordValue.equals(other.sharedContentAddLinkPasswordValue)); + case SHARED_CONTENT_ADD_MEMBER: + return (this.sharedContentAddMemberValue == other.sharedContentAddMemberValue) || (this.sharedContentAddMemberValue.equals(other.sharedContentAddMemberValue)); + case SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY: + return (this.sharedContentChangeDownloadsPolicyValue == other.sharedContentChangeDownloadsPolicyValue) || (this.sharedContentChangeDownloadsPolicyValue.equals(other.sharedContentChangeDownloadsPolicyValue)); + case SHARED_CONTENT_CHANGE_INVITEE_ROLE: + return (this.sharedContentChangeInviteeRoleValue == other.sharedContentChangeInviteeRoleValue) || (this.sharedContentChangeInviteeRoleValue.equals(other.sharedContentChangeInviteeRoleValue)); + case SHARED_CONTENT_CHANGE_LINK_AUDIENCE: + return (this.sharedContentChangeLinkAudienceValue == other.sharedContentChangeLinkAudienceValue) || (this.sharedContentChangeLinkAudienceValue.equals(other.sharedContentChangeLinkAudienceValue)); + case SHARED_CONTENT_CHANGE_LINK_EXPIRY: + return (this.sharedContentChangeLinkExpiryValue == other.sharedContentChangeLinkExpiryValue) || (this.sharedContentChangeLinkExpiryValue.equals(other.sharedContentChangeLinkExpiryValue)); + case SHARED_CONTENT_CHANGE_LINK_PASSWORD: + return (this.sharedContentChangeLinkPasswordValue == other.sharedContentChangeLinkPasswordValue) || (this.sharedContentChangeLinkPasswordValue.equals(other.sharedContentChangeLinkPasswordValue)); + case SHARED_CONTENT_CHANGE_MEMBER_ROLE: + return (this.sharedContentChangeMemberRoleValue == other.sharedContentChangeMemberRoleValue) || (this.sharedContentChangeMemberRoleValue.equals(other.sharedContentChangeMemberRoleValue)); + case SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY: + return (this.sharedContentChangeViewerInfoPolicyValue == other.sharedContentChangeViewerInfoPolicyValue) || (this.sharedContentChangeViewerInfoPolicyValue.equals(other.sharedContentChangeViewerInfoPolicyValue)); + case SHARED_CONTENT_CLAIM_INVITATION: + return (this.sharedContentClaimInvitationValue == other.sharedContentClaimInvitationValue) || (this.sharedContentClaimInvitationValue.equals(other.sharedContentClaimInvitationValue)); + case SHARED_CONTENT_COPY: + return (this.sharedContentCopyValue == other.sharedContentCopyValue) || (this.sharedContentCopyValue.equals(other.sharedContentCopyValue)); + case SHARED_CONTENT_DOWNLOAD: + return (this.sharedContentDownloadValue == other.sharedContentDownloadValue) || (this.sharedContentDownloadValue.equals(other.sharedContentDownloadValue)); + case SHARED_CONTENT_RELINQUISH_MEMBERSHIP: + return (this.sharedContentRelinquishMembershipValue == other.sharedContentRelinquishMembershipValue) || (this.sharedContentRelinquishMembershipValue.equals(other.sharedContentRelinquishMembershipValue)); + case SHARED_CONTENT_REMOVE_INVITEES: + return (this.sharedContentRemoveInviteesValue == other.sharedContentRemoveInviteesValue) || (this.sharedContentRemoveInviteesValue.equals(other.sharedContentRemoveInviteesValue)); + case SHARED_CONTENT_REMOVE_LINK_EXPIRY: + return (this.sharedContentRemoveLinkExpiryValue == other.sharedContentRemoveLinkExpiryValue) || (this.sharedContentRemoveLinkExpiryValue.equals(other.sharedContentRemoveLinkExpiryValue)); + case SHARED_CONTENT_REMOVE_LINK_PASSWORD: + return (this.sharedContentRemoveLinkPasswordValue == other.sharedContentRemoveLinkPasswordValue) || (this.sharedContentRemoveLinkPasswordValue.equals(other.sharedContentRemoveLinkPasswordValue)); + case SHARED_CONTENT_REMOVE_MEMBER: + return (this.sharedContentRemoveMemberValue == other.sharedContentRemoveMemberValue) || (this.sharedContentRemoveMemberValue.equals(other.sharedContentRemoveMemberValue)); + case SHARED_CONTENT_REQUEST_ACCESS: + return (this.sharedContentRequestAccessValue == other.sharedContentRequestAccessValue) || (this.sharedContentRequestAccessValue.equals(other.sharedContentRequestAccessValue)); + case SHARED_CONTENT_RESTORE_INVITEES: + return (this.sharedContentRestoreInviteesValue == other.sharedContentRestoreInviteesValue) || (this.sharedContentRestoreInviteesValue.equals(other.sharedContentRestoreInviteesValue)); + case SHARED_CONTENT_RESTORE_MEMBER: + return (this.sharedContentRestoreMemberValue == other.sharedContentRestoreMemberValue) || (this.sharedContentRestoreMemberValue.equals(other.sharedContentRestoreMemberValue)); + case SHARED_CONTENT_UNSHARE: + return (this.sharedContentUnshareValue == other.sharedContentUnshareValue) || (this.sharedContentUnshareValue.equals(other.sharedContentUnshareValue)); + case SHARED_CONTENT_VIEW: + return (this.sharedContentViewValue == other.sharedContentViewValue) || (this.sharedContentViewValue.equals(other.sharedContentViewValue)); + case SHARED_FOLDER_CHANGE_LINK_POLICY: + return (this.sharedFolderChangeLinkPolicyValue == other.sharedFolderChangeLinkPolicyValue) || (this.sharedFolderChangeLinkPolicyValue.equals(other.sharedFolderChangeLinkPolicyValue)); + case SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY: + return (this.sharedFolderChangeMembersInheritancePolicyValue == other.sharedFolderChangeMembersInheritancePolicyValue) || (this.sharedFolderChangeMembersInheritancePolicyValue.equals(other.sharedFolderChangeMembersInheritancePolicyValue)); + case SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY: + return (this.sharedFolderChangeMembersManagementPolicyValue == other.sharedFolderChangeMembersManagementPolicyValue) || (this.sharedFolderChangeMembersManagementPolicyValue.equals(other.sharedFolderChangeMembersManagementPolicyValue)); + case SHARED_FOLDER_CHANGE_MEMBERS_POLICY: + return (this.sharedFolderChangeMembersPolicyValue == other.sharedFolderChangeMembersPolicyValue) || (this.sharedFolderChangeMembersPolicyValue.equals(other.sharedFolderChangeMembersPolicyValue)); + case SHARED_FOLDER_CREATE: + return (this.sharedFolderCreateValue == other.sharedFolderCreateValue) || (this.sharedFolderCreateValue.equals(other.sharedFolderCreateValue)); + case SHARED_FOLDER_DECLINE_INVITATION: + return (this.sharedFolderDeclineInvitationValue == other.sharedFolderDeclineInvitationValue) || (this.sharedFolderDeclineInvitationValue.equals(other.sharedFolderDeclineInvitationValue)); + case SHARED_FOLDER_MOUNT: + return (this.sharedFolderMountValue == other.sharedFolderMountValue) || (this.sharedFolderMountValue.equals(other.sharedFolderMountValue)); + case SHARED_FOLDER_NEST: + return (this.sharedFolderNestValue == other.sharedFolderNestValue) || (this.sharedFolderNestValue.equals(other.sharedFolderNestValue)); + case SHARED_FOLDER_TRANSFER_OWNERSHIP: + return (this.sharedFolderTransferOwnershipValue == other.sharedFolderTransferOwnershipValue) || (this.sharedFolderTransferOwnershipValue.equals(other.sharedFolderTransferOwnershipValue)); + case SHARED_FOLDER_UNMOUNT: + return (this.sharedFolderUnmountValue == other.sharedFolderUnmountValue) || (this.sharedFolderUnmountValue.equals(other.sharedFolderUnmountValue)); + case SHARED_LINK_ADD_EXPIRY: + return (this.sharedLinkAddExpiryValue == other.sharedLinkAddExpiryValue) || (this.sharedLinkAddExpiryValue.equals(other.sharedLinkAddExpiryValue)); + case SHARED_LINK_CHANGE_EXPIRY: + return (this.sharedLinkChangeExpiryValue == other.sharedLinkChangeExpiryValue) || (this.sharedLinkChangeExpiryValue.equals(other.sharedLinkChangeExpiryValue)); + case SHARED_LINK_CHANGE_VISIBILITY: + return (this.sharedLinkChangeVisibilityValue == other.sharedLinkChangeVisibilityValue) || (this.sharedLinkChangeVisibilityValue.equals(other.sharedLinkChangeVisibilityValue)); + case SHARED_LINK_COPY: + return (this.sharedLinkCopyValue == other.sharedLinkCopyValue) || (this.sharedLinkCopyValue.equals(other.sharedLinkCopyValue)); + case SHARED_LINK_CREATE: + return (this.sharedLinkCreateValue == other.sharedLinkCreateValue) || (this.sharedLinkCreateValue.equals(other.sharedLinkCreateValue)); + case SHARED_LINK_DISABLE: + return (this.sharedLinkDisableValue == other.sharedLinkDisableValue) || (this.sharedLinkDisableValue.equals(other.sharedLinkDisableValue)); + case SHARED_LINK_DOWNLOAD: + return (this.sharedLinkDownloadValue == other.sharedLinkDownloadValue) || (this.sharedLinkDownloadValue.equals(other.sharedLinkDownloadValue)); + case SHARED_LINK_REMOVE_EXPIRY: + return (this.sharedLinkRemoveExpiryValue == other.sharedLinkRemoveExpiryValue) || (this.sharedLinkRemoveExpiryValue.equals(other.sharedLinkRemoveExpiryValue)); + case SHARED_LINK_SETTINGS_ADD_EXPIRATION: + return (this.sharedLinkSettingsAddExpirationValue == other.sharedLinkSettingsAddExpirationValue) || (this.sharedLinkSettingsAddExpirationValue.equals(other.sharedLinkSettingsAddExpirationValue)); + case SHARED_LINK_SETTINGS_ADD_PASSWORD: + return (this.sharedLinkSettingsAddPasswordValue == other.sharedLinkSettingsAddPasswordValue) || (this.sharedLinkSettingsAddPasswordValue.equals(other.sharedLinkSettingsAddPasswordValue)); + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED: + return (this.sharedLinkSettingsAllowDownloadDisabledValue == other.sharedLinkSettingsAllowDownloadDisabledValue) || (this.sharedLinkSettingsAllowDownloadDisabledValue.equals(other.sharedLinkSettingsAllowDownloadDisabledValue)); + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED: + return (this.sharedLinkSettingsAllowDownloadEnabledValue == other.sharedLinkSettingsAllowDownloadEnabledValue) || (this.sharedLinkSettingsAllowDownloadEnabledValue.equals(other.sharedLinkSettingsAllowDownloadEnabledValue)); + case SHARED_LINK_SETTINGS_CHANGE_AUDIENCE: + return (this.sharedLinkSettingsChangeAudienceValue == other.sharedLinkSettingsChangeAudienceValue) || (this.sharedLinkSettingsChangeAudienceValue.equals(other.sharedLinkSettingsChangeAudienceValue)); + case SHARED_LINK_SETTINGS_CHANGE_EXPIRATION: + return (this.sharedLinkSettingsChangeExpirationValue == other.sharedLinkSettingsChangeExpirationValue) || (this.sharedLinkSettingsChangeExpirationValue.equals(other.sharedLinkSettingsChangeExpirationValue)); + case SHARED_LINK_SETTINGS_CHANGE_PASSWORD: + return (this.sharedLinkSettingsChangePasswordValue == other.sharedLinkSettingsChangePasswordValue) || (this.sharedLinkSettingsChangePasswordValue.equals(other.sharedLinkSettingsChangePasswordValue)); + case SHARED_LINK_SETTINGS_REMOVE_EXPIRATION: + return (this.sharedLinkSettingsRemoveExpirationValue == other.sharedLinkSettingsRemoveExpirationValue) || (this.sharedLinkSettingsRemoveExpirationValue.equals(other.sharedLinkSettingsRemoveExpirationValue)); + case SHARED_LINK_SETTINGS_REMOVE_PASSWORD: + return (this.sharedLinkSettingsRemovePasswordValue == other.sharedLinkSettingsRemovePasswordValue) || (this.sharedLinkSettingsRemovePasswordValue.equals(other.sharedLinkSettingsRemovePasswordValue)); + case SHARED_LINK_SHARE: + return (this.sharedLinkShareValue == other.sharedLinkShareValue) || (this.sharedLinkShareValue.equals(other.sharedLinkShareValue)); + case SHARED_LINK_VIEW: + return (this.sharedLinkViewValue == other.sharedLinkViewValue) || (this.sharedLinkViewValue.equals(other.sharedLinkViewValue)); + case SHARED_NOTE_OPENED: + return (this.sharedNoteOpenedValue == other.sharedNoteOpenedValue) || (this.sharedNoteOpenedValue.equals(other.sharedNoteOpenedValue)); + case SHMODEL_DISABLE_DOWNLOADS: + return (this.shmodelDisableDownloadsValue == other.shmodelDisableDownloadsValue) || (this.shmodelDisableDownloadsValue.equals(other.shmodelDisableDownloadsValue)); + case SHMODEL_ENABLE_DOWNLOADS: + return (this.shmodelEnableDownloadsValue == other.shmodelEnableDownloadsValue) || (this.shmodelEnableDownloadsValue.equals(other.shmodelEnableDownloadsValue)); + case SHMODEL_GROUP_SHARE: + return (this.shmodelGroupShareValue == other.shmodelGroupShareValue) || (this.shmodelGroupShareValue.equals(other.shmodelGroupShareValue)); + case SHOWCASE_ACCESS_GRANTED: + return (this.showcaseAccessGrantedValue == other.showcaseAccessGrantedValue) || (this.showcaseAccessGrantedValue.equals(other.showcaseAccessGrantedValue)); + case SHOWCASE_ADD_MEMBER: + return (this.showcaseAddMemberValue == other.showcaseAddMemberValue) || (this.showcaseAddMemberValue.equals(other.showcaseAddMemberValue)); + case SHOWCASE_ARCHIVED: + return (this.showcaseArchivedValue == other.showcaseArchivedValue) || (this.showcaseArchivedValue.equals(other.showcaseArchivedValue)); + case SHOWCASE_CREATED: + return (this.showcaseCreatedValue == other.showcaseCreatedValue) || (this.showcaseCreatedValue.equals(other.showcaseCreatedValue)); + case SHOWCASE_DELETE_COMMENT: + return (this.showcaseDeleteCommentValue == other.showcaseDeleteCommentValue) || (this.showcaseDeleteCommentValue.equals(other.showcaseDeleteCommentValue)); + case SHOWCASE_EDITED: + return (this.showcaseEditedValue == other.showcaseEditedValue) || (this.showcaseEditedValue.equals(other.showcaseEditedValue)); + case SHOWCASE_EDIT_COMMENT: + return (this.showcaseEditCommentValue == other.showcaseEditCommentValue) || (this.showcaseEditCommentValue.equals(other.showcaseEditCommentValue)); + case SHOWCASE_FILE_ADDED: + return (this.showcaseFileAddedValue == other.showcaseFileAddedValue) || (this.showcaseFileAddedValue.equals(other.showcaseFileAddedValue)); + case SHOWCASE_FILE_DOWNLOAD: + return (this.showcaseFileDownloadValue == other.showcaseFileDownloadValue) || (this.showcaseFileDownloadValue.equals(other.showcaseFileDownloadValue)); + case SHOWCASE_FILE_REMOVED: + return (this.showcaseFileRemovedValue == other.showcaseFileRemovedValue) || (this.showcaseFileRemovedValue.equals(other.showcaseFileRemovedValue)); + case SHOWCASE_FILE_VIEW: + return (this.showcaseFileViewValue == other.showcaseFileViewValue) || (this.showcaseFileViewValue.equals(other.showcaseFileViewValue)); + case SHOWCASE_PERMANENTLY_DELETED: + return (this.showcasePermanentlyDeletedValue == other.showcasePermanentlyDeletedValue) || (this.showcasePermanentlyDeletedValue.equals(other.showcasePermanentlyDeletedValue)); + case SHOWCASE_POST_COMMENT: + return (this.showcasePostCommentValue == other.showcasePostCommentValue) || (this.showcasePostCommentValue.equals(other.showcasePostCommentValue)); + case SHOWCASE_REMOVE_MEMBER: + return (this.showcaseRemoveMemberValue == other.showcaseRemoveMemberValue) || (this.showcaseRemoveMemberValue.equals(other.showcaseRemoveMemberValue)); + case SHOWCASE_RENAMED: + return (this.showcaseRenamedValue == other.showcaseRenamedValue) || (this.showcaseRenamedValue.equals(other.showcaseRenamedValue)); + case SHOWCASE_REQUEST_ACCESS: + return (this.showcaseRequestAccessValue == other.showcaseRequestAccessValue) || (this.showcaseRequestAccessValue.equals(other.showcaseRequestAccessValue)); + case SHOWCASE_RESOLVE_COMMENT: + return (this.showcaseResolveCommentValue == other.showcaseResolveCommentValue) || (this.showcaseResolveCommentValue.equals(other.showcaseResolveCommentValue)); + case SHOWCASE_RESTORED: + return (this.showcaseRestoredValue == other.showcaseRestoredValue) || (this.showcaseRestoredValue.equals(other.showcaseRestoredValue)); + case SHOWCASE_TRASHED: + return (this.showcaseTrashedValue == other.showcaseTrashedValue) || (this.showcaseTrashedValue.equals(other.showcaseTrashedValue)); + case SHOWCASE_TRASHED_DEPRECATED: + return (this.showcaseTrashedDeprecatedValue == other.showcaseTrashedDeprecatedValue) || (this.showcaseTrashedDeprecatedValue.equals(other.showcaseTrashedDeprecatedValue)); + case SHOWCASE_UNRESOLVE_COMMENT: + return (this.showcaseUnresolveCommentValue == other.showcaseUnresolveCommentValue) || (this.showcaseUnresolveCommentValue.equals(other.showcaseUnresolveCommentValue)); + case SHOWCASE_UNTRASHED: + return (this.showcaseUntrashedValue == other.showcaseUntrashedValue) || (this.showcaseUntrashedValue.equals(other.showcaseUntrashedValue)); + case SHOWCASE_UNTRASHED_DEPRECATED: + return (this.showcaseUntrashedDeprecatedValue == other.showcaseUntrashedDeprecatedValue) || (this.showcaseUntrashedDeprecatedValue.equals(other.showcaseUntrashedDeprecatedValue)); + case SHOWCASE_VIEW: + return (this.showcaseViewValue == other.showcaseViewValue) || (this.showcaseViewValue.equals(other.showcaseViewValue)); + case SSO_ADD_CERT: + return (this.ssoAddCertValue == other.ssoAddCertValue) || (this.ssoAddCertValue.equals(other.ssoAddCertValue)); + case SSO_ADD_LOGIN_URL: + return (this.ssoAddLoginUrlValue == other.ssoAddLoginUrlValue) || (this.ssoAddLoginUrlValue.equals(other.ssoAddLoginUrlValue)); + case SSO_ADD_LOGOUT_URL: + return (this.ssoAddLogoutUrlValue == other.ssoAddLogoutUrlValue) || (this.ssoAddLogoutUrlValue.equals(other.ssoAddLogoutUrlValue)); + case SSO_CHANGE_CERT: + return (this.ssoChangeCertValue == other.ssoChangeCertValue) || (this.ssoChangeCertValue.equals(other.ssoChangeCertValue)); + case SSO_CHANGE_LOGIN_URL: + return (this.ssoChangeLoginUrlValue == other.ssoChangeLoginUrlValue) || (this.ssoChangeLoginUrlValue.equals(other.ssoChangeLoginUrlValue)); + case SSO_CHANGE_LOGOUT_URL: + return (this.ssoChangeLogoutUrlValue == other.ssoChangeLogoutUrlValue) || (this.ssoChangeLogoutUrlValue.equals(other.ssoChangeLogoutUrlValue)); + case SSO_CHANGE_SAML_IDENTITY_MODE: + return (this.ssoChangeSamlIdentityModeValue == other.ssoChangeSamlIdentityModeValue) || (this.ssoChangeSamlIdentityModeValue.equals(other.ssoChangeSamlIdentityModeValue)); + case SSO_REMOVE_CERT: + return (this.ssoRemoveCertValue == other.ssoRemoveCertValue) || (this.ssoRemoveCertValue.equals(other.ssoRemoveCertValue)); + case SSO_REMOVE_LOGIN_URL: + return (this.ssoRemoveLoginUrlValue == other.ssoRemoveLoginUrlValue) || (this.ssoRemoveLoginUrlValue.equals(other.ssoRemoveLoginUrlValue)); + case SSO_REMOVE_LOGOUT_URL: + return (this.ssoRemoveLogoutUrlValue == other.ssoRemoveLogoutUrlValue) || (this.ssoRemoveLogoutUrlValue.equals(other.ssoRemoveLogoutUrlValue)); + case TEAM_FOLDER_CHANGE_STATUS: + return (this.teamFolderChangeStatusValue == other.teamFolderChangeStatusValue) || (this.teamFolderChangeStatusValue.equals(other.teamFolderChangeStatusValue)); + case TEAM_FOLDER_CREATE: + return (this.teamFolderCreateValue == other.teamFolderCreateValue) || (this.teamFolderCreateValue.equals(other.teamFolderCreateValue)); + case TEAM_FOLDER_DOWNGRADE: + return (this.teamFolderDowngradeValue == other.teamFolderDowngradeValue) || (this.teamFolderDowngradeValue.equals(other.teamFolderDowngradeValue)); + case TEAM_FOLDER_PERMANENTLY_DELETE: + return (this.teamFolderPermanentlyDeleteValue == other.teamFolderPermanentlyDeleteValue) || (this.teamFolderPermanentlyDeleteValue.equals(other.teamFolderPermanentlyDeleteValue)); + case TEAM_FOLDER_RENAME: + return (this.teamFolderRenameValue == other.teamFolderRenameValue) || (this.teamFolderRenameValue.equals(other.teamFolderRenameValue)); + case TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED: + return (this.teamSelectiveSyncSettingsChangedValue == other.teamSelectiveSyncSettingsChangedValue) || (this.teamSelectiveSyncSettingsChangedValue.equals(other.teamSelectiveSyncSettingsChangedValue)); + case ACCOUNT_CAPTURE_CHANGE_POLICY: + return (this.accountCaptureChangePolicyValue == other.accountCaptureChangePolicyValue) || (this.accountCaptureChangePolicyValue.equals(other.accountCaptureChangePolicyValue)); + case ADMIN_EMAIL_REMINDERS_CHANGED: + return (this.adminEmailRemindersChangedValue == other.adminEmailRemindersChangedValue) || (this.adminEmailRemindersChangedValue.equals(other.adminEmailRemindersChangedValue)); + case ALLOW_DOWNLOAD_DISABLED: + return (this.allowDownloadDisabledValue == other.allowDownloadDisabledValue) || (this.allowDownloadDisabledValue.equals(other.allowDownloadDisabledValue)); + case ALLOW_DOWNLOAD_ENABLED: + return (this.allowDownloadEnabledValue == other.allowDownloadEnabledValue) || (this.allowDownloadEnabledValue.equals(other.allowDownloadEnabledValue)); + case APP_PERMISSIONS_CHANGED: + return (this.appPermissionsChangedValue == other.appPermissionsChangedValue) || (this.appPermissionsChangedValue.equals(other.appPermissionsChangedValue)); + case CAMERA_UPLOADS_POLICY_CHANGED: + return (this.cameraUploadsPolicyChangedValue == other.cameraUploadsPolicyChangedValue) || (this.cameraUploadsPolicyChangedValue.equals(other.cameraUploadsPolicyChangedValue)); + case CAPTURE_TRANSCRIPT_POLICY_CHANGED: + return (this.captureTranscriptPolicyChangedValue == other.captureTranscriptPolicyChangedValue) || (this.captureTranscriptPolicyChangedValue.equals(other.captureTranscriptPolicyChangedValue)); + case CLASSIFICATION_CHANGE_POLICY: + return (this.classificationChangePolicyValue == other.classificationChangePolicyValue) || (this.classificationChangePolicyValue.equals(other.classificationChangePolicyValue)); + case COMPUTER_BACKUP_POLICY_CHANGED: + return (this.computerBackupPolicyChangedValue == other.computerBackupPolicyChangedValue) || (this.computerBackupPolicyChangedValue.equals(other.computerBackupPolicyChangedValue)); + case CONTENT_ADMINISTRATION_POLICY_CHANGED: + return (this.contentAdministrationPolicyChangedValue == other.contentAdministrationPolicyChangedValue) || (this.contentAdministrationPolicyChangedValue.equals(other.contentAdministrationPolicyChangedValue)); + case DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY: + return (this.dataPlacementRestrictionChangePolicyValue == other.dataPlacementRestrictionChangePolicyValue) || (this.dataPlacementRestrictionChangePolicyValue.equals(other.dataPlacementRestrictionChangePolicyValue)); + case DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY: + return (this.dataPlacementRestrictionSatisfyPolicyValue == other.dataPlacementRestrictionSatisfyPolicyValue) || (this.dataPlacementRestrictionSatisfyPolicyValue.equals(other.dataPlacementRestrictionSatisfyPolicyValue)); + case DEVICE_APPROVALS_ADD_EXCEPTION: + return (this.deviceApprovalsAddExceptionValue == other.deviceApprovalsAddExceptionValue) || (this.deviceApprovalsAddExceptionValue.equals(other.deviceApprovalsAddExceptionValue)); + case DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY: + return (this.deviceApprovalsChangeDesktopPolicyValue == other.deviceApprovalsChangeDesktopPolicyValue) || (this.deviceApprovalsChangeDesktopPolicyValue.equals(other.deviceApprovalsChangeDesktopPolicyValue)); + case DEVICE_APPROVALS_CHANGE_MOBILE_POLICY: + return (this.deviceApprovalsChangeMobilePolicyValue == other.deviceApprovalsChangeMobilePolicyValue) || (this.deviceApprovalsChangeMobilePolicyValue.equals(other.deviceApprovalsChangeMobilePolicyValue)); + case DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION: + return (this.deviceApprovalsChangeOverageActionValue == other.deviceApprovalsChangeOverageActionValue) || (this.deviceApprovalsChangeOverageActionValue.equals(other.deviceApprovalsChangeOverageActionValue)); + case DEVICE_APPROVALS_CHANGE_UNLINK_ACTION: + return (this.deviceApprovalsChangeUnlinkActionValue == other.deviceApprovalsChangeUnlinkActionValue) || (this.deviceApprovalsChangeUnlinkActionValue.equals(other.deviceApprovalsChangeUnlinkActionValue)); + case DEVICE_APPROVALS_REMOVE_EXCEPTION: + return (this.deviceApprovalsRemoveExceptionValue == other.deviceApprovalsRemoveExceptionValue) || (this.deviceApprovalsRemoveExceptionValue.equals(other.deviceApprovalsRemoveExceptionValue)); + case DIRECTORY_RESTRICTIONS_ADD_MEMBERS: + return (this.directoryRestrictionsAddMembersValue == other.directoryRestrictionsAddMembersValue) || (this.directoryRestrictionsAddMembersValue.equals(other.directoryRestrictionsAddMembersValue)); + case DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS: + return (this.directoryRestrictionsRemoveMembersValue == other.directoryRestrictionsRemoveMembersValue) || (this.directoryRestrictionsRemoveMembersValue.equals(other.directoryRestrictionsRemoveMembersValue)); + case DROPBOX_PASSWORDS_POLICY_CHANGED: + return (this.dropboxPasswordsPolicyChangedValue == other.dropboxPasswordsPolicyChangedValue) || (this.dropboxPasswordsPolicyChangedValue.equals(other.dropboxPasswordsPolicyChangedValue)); + case EMAIL_INGEST_POLICY_CHANGED: + return (this.emailIngestPolicyChangedValue == other.emailIngestPolicyChangedValue) || (this.emailIngestPolicyChangedValue.equals(other.emailIngestPolicyChangedValue)); + case EMM_ADD_EXCEPTION: + return (this.emmAddExceptionValue == other.emmAddExceptionValue) || (this.emmAddExceptionValue.equals(other.emmAddExceptionValue)); + case EMM_CHANGE_POLICY: + return (this.emmChangePolicyValue == other.emmChangePolicyValue) || (this.emmChangePolicyValue.equals(other.emmChangePolicyValue)); + case EMM_REMOVE_EXCEPTION: + return (this.emmRemoveExceptionValue == other.emmRemoveExceptionValue) || (this.emmRemoveExceptionValue.equals(other.emmRemoveExceptionValue)); + case EXTENDED_VERSION_HISTORY_CHANGE_POLICY: + return (this.extendedVersionHistoryChangePolicyValue == other.extendedVersionHistoryChangePolicyValue) || (this.extendedVersionHistoryChangePolicyValue.equals(other.extendedVersionHistoryChangePolicyValue)); + case EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED: + return (this.externalDriveBackupPolicyChangedValue == other.externalDriveBackupPolicyChangedValue) || (this.externalDriveBackupPolicyChangedValue.equals(other.externalDriveBackupPolicyChangedValue)); + case FILE_COMMENTS_CHANGE_POLICY: + return (this.fileCommentsChangePolicyValue == other.fileCommentsChangePolicyValue) || (this.fileCommentsChangePolicyValue.equals(other.fileCommentsChangePolicyValue)); + case FILE_LOCKING_POLICY_CHANGED: + return (this.fileLockingPolicyChangedValue == other.fileLockingPolicyChangedValue) || (this.fileLockingPolicyChangedValue.equals(other.fileLockingPolicyChangedValue)); + case FILE_PROVIDER_MIGRATION_POLICY_CHANGED: + return (this.fileProviderMigrationPolicyChangedValue == other.fileProviderMigrationPolicyChangedValue) || (this.fileProviderMigrationPolicyChangedValue.equals(other.fileProviderMigrationPolicyChangedValue)); + case FILE_REQUESTS_CHANGE_POLICY: + return (this.fileRequestsChangePolicyValue == other.fileRequestsChangePolicyValue) || (this.fileRequestsChangePolicyValue.equals(other.fileRequestsChangePolicyValue)); + case FILE_REQUESTS_EMAILS_ENABLED: + return (this.fileRequestsEmailsEnabledValue == other.fileRequestsEmailsEnabledValue) || (this.fileRequestsEmailsEnabledValue.equals(other.fileRequestsEmailsEnabledValue)); + case FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY: + return (this.fileRequestsEmailsRestrictedToTeamOnlyValue == other.fileRequestsEmailsRestrictedToTeamOnlyValue) || (this.fileRequestsEmailsRestrictedToTeamOnlyValue.equals(other.fileRequestsEmailsRestrictedToTeamOnlyValue)); + case FILE_TRANSFERS_POLICY_CHANGED: + return (this.fileTransfersPolicyChangedValue == other.fileTransfersPolicyChangedValue) || (this.fileTransfersPolicyChangedValue.equals(other.fileTransfersPolicyChangedValue)); + case FOLDER_LINK_RESTRICTION_POLICY_CHANGED: + return (this.folderLinkRestrictionPolicyChangedValue == other.folderLinkRestrictionPolicyChangedValue) || (this.folderLinkRestrictionPolicyChangedValue.equals(other.folderLinkRestrictionPolicyChangedValue)); + case GOOGLE_SSO_CHANGE_POLICY: + return (this.googleSsoChangePolicyValue == other.googleSsoChangePolicyValue) || (this.googleSsoChangePolicyValue.equals(other.googleSsoChangePolicyValue)); + case GROUP_USER_MANAGEMENT_CHANGE_POLICY: + return (this.groupUserManagementChangePolicyValue == other.groupUserManagementChangePolicyValue) || (this.groupUserManagementChangePolicyValue.equals(other.groupUserManagementChangePolicyValue)); + case INTEGRATION_POLICY_CHANGED: + return (this.integrationPolicyChangedValue == other.integrationPolicyChangedValue) || (this.integrationPolicyChangedValue.equals(other.integrationPolicyChangedValue)); + case INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED: + return (this.inviteAcceptanceEmailPolicyChangedValue == other.inviteAcceptanceEmailPolicyChangedValue) || (this.inviteAcceptanceEmailPolicyChangedValue.equals(other.inviteAcceptanceEmailPolicyChangedValue)); + case MEMBER_REQUESTS_CHANGE_POLICY: + return (this.memberRequestsChangePolicyValue == other.memberRequestsChangePolicyValue) || (this.memberRequestsChangePolicyValue.equals(other.memberRequestsChangePolicyValue)); + case MEMBER_SEND_INVITE_POLICY_CHANGED: + return (this.memberSendInvitePolicyChangedValue == other.memberSendInvitePolicyChangedValue) || (this.memberSendInvitePolicyChangedValue.equals(other.memberSendInvitePolicyChangedValue)); + case MEMBER_SPACE_LIMITS_ADD_EXCEPTION: + return (this.memberSpaceLimitsAddExceptionValue == other.memberSpaceLimitsAddExceptionValue) || (this.memberSpaceLimitsAddExceptionValue.equals(other.memberSpaceLimitsAddExceptionValue)); + case MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY: + return (this.memberSpaceLimitsChangeCapsTypePolicyValue == other.memberSpaceLimitsChangeCapsTypePolicyValue) || (this.memberSpaceLimitsChangeCapsTypePolicyValue.equals(other.memberSpaceLimitsChangeCapsTypePolicyValue)); + case MEMBER_SPACE_LIMITS_CHANGE_POLICY: + return (this.memberSpaceLimitsChangePolicyValue == other.memberSpaceLimitsChangePolicyValue) || (this.memberSpaceLimitsChangePolicyValue.equals(other.memberSpaceLimitsChangePolicyValue)); + case MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION: + return (this.memberSpaceLimitsRemoveExceptionValue == other.memberSpaceLimitsRemoveExceptionValue) || (this.memberSpaceLimitsRemoveExceptionValue.equals(other.memberSpaceLimitsRemoveExceptionValue)); + case MEMBER_SUGGESTIONS_CHANGE_POLICY: + return (this.memberSuggestionsChangePolicyValue == other.memberSuggestionsChangePolicyValue) || (this.memberSuggestionsChangePolicyValue.equals(other.memberSuggestionsChangePolicyValue)); + case MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY: + return (this.microsoftOfficeAddinChangePolicyValue == other.microsoftOfficeAddinChangePolicyValue) || (this.microsoftOfficeAddinChangePolicyValue.equals(other.microsoftOfficeAddinChangePolicyValue)); + case NETWORK_CONTROL_CHANGE_POLICY: + return (this.networkControlChangePolicyValue == other.networkControlChangePolicyValue) || (this.networkControlChangePolicyValue.equals(other.networkControlChangePolicyValue)); + case PAPER_CHANGE_DEPLOYMENT_POLICY: + return (this.paperChangeDeploymentPolicyValue == other.paperChangeDeploymentPolicyValue) || (this.paperChangeDeploymentPolicyValue.equals(other.paperChangeDeploymentPolicyValue)); + case PAPER_CHANGE_MEMBER_LINK_POLICY: + return (this.paperChangeMemberLinkPolicyValue == other.paperChangeMemberLinkPolicyValue) || (this.paperChangeMemberLinkPolicyValue.equals(other.paperChangeMemberLinkPolicyValue)); + case PAPER_CHANGE_MEMBER_POLICY: + return (this.paperChangeMemberPolicyValue == other.paperChangeMemberPolicyValue) || (this.paperChangeMemberPolicyValue.equals(other.paperChangeMemberPolicyValue)); + case PAPER_CHANGE_POLICY: + return (this.paperChangePolicyValue == other.paperChangePolicyValue) || (this.paperChangePolicyValue.equals(other.paperChangePolicyValue)); + case PAPER_DEFAULT_FOLDER_POLICY_CHANGED: + return (this.paperDefaultFolderPolicyChangedValue == other.paperDefaultFolderPolicyChangedValue) || (this.paperDefaultFolderPolicyChangedValue.equals(other.paperDefaultFolderPolicyChangedValue)); + case PAPER_DESKTOP_POLICY_CHANGED: + return (this.paperDesktopPolicyChangedValue == other.paperDesktopPolicyChangedValue) || (this.paperDesktopPolicyChangedValue.equals(other.paperDesktopPolicyChangedValue)); + case PAPER_ENABLED_USERS_GROUP_ADDITION: + return (this.paperEnabledUsersGroupAdditionValue == other.paperEnabledUsersGroupAdditionValue) || (this.paperEnabledUsersGroupAdditionValue.equals(other.paperEnabledUsersGroupAdditionValue)); + case PAPER_ENABLED_USERS_GROUP_REMOVAL: + return (this.paperEnabledUsersGroupRemovalValue == other.paperEnabledUsersGroupRemovalValue) || (this.paperEnabledUsersGroupRemovalValue.equals(other.paperEnabledUsersGroupRemovalValue)); + case PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY: + return (this.passwordStrengthRequirementsChangePolicyValue == other.passwordStrengthRequirementsChangePolicyValue) || (this.passwordStrengthRequirementsChangePolicyValue.equals(other.passwordStrengthRequirementsChangePolicyValue)); + case PERMANENT_DELETE_CHANGE_POLICY: + return (this.permanentDeleteChangePolicyValue == other.permanentDeleteChangePolicyValue) || (this.permanentDeleteChangePolicyValue.equals(other.permanentDeleteChangePolicyValue)); + case RESELLER_SUPPORT_CHANGE_POLICY: + return (this.resellerSupportChangePolicyValue == other.resellerSupportChangePolicyValue) || (this.resellerSupportChangePolicyValue.equals(other.resellerSupportChangePolicyValue)); + case REWIND_POLICY_CHANGED: + return (this.rewindPolicyChangedValue == other.rewindPolicyChangedValue) || (this.rewindPolicyChangedValue.equals(other.rewindPolicyChangedValue)); + case SEND_FOR_SIGNATURE_POLICY_CHANGED: + return (this.sendForSignaturePolicyChangedValue == other.sendForSignaturePolicyChangedValue) || (this.sendForSignaturePolicyChangedValue.equals(other.sendForSignaturePolicyChangedValue)); + case SHARING_CHANGE_FOLDER_JOIN_POLICY: + return (this.sharingChangeFolderJoinPolicyValue == other.sharingChangeFolderJoinPolicyValue) || (this.sharingChangeFolderJoinPolicyValue.equals(other.sharingChangeFolderJoinPolicyValue)); + case SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY: + return (this.sharingChangeLinkAllowChangeExpirationPolicyValue == other.sharingChangeLinkAllowChangeExpirationPolicyValue) || (this.sharingChangeLinkAllowChangeExpirationPolicyValue.equals(other.sharingChangeLinkAllowChangeExpirationPolicyValue)); + case SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY: + return (this.sharingChangeLinkDefaultExpirationPolicyValue == other.sharingChangeLinkDefaultExpirationPolicyValue) || (this.sharingChangeLinkDefaultExpirationPolicyValue.equals(other.sharingChangeLinkDefaultExpirationPolicyValue)); + case SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY: + return (this.sharingChangeLinkEnforcePasswordPolicyValue == other.sharingChangeLinkEnforcePasswordPolicyValue) || (this.sharingChangeLinkEnforcePasswordPolicyValue.equals(other.sharingChangeLinkEnforcePasswordPolicyValue)); + case SHARING_CHANGE_LINK_POLICY: + return (this.sharingChangeLinkPolicyValue == other.sharingChangeLinkPolicyValue) || (this.sharingChangeLinkPolicyValue.equals(other.sharingChangeLinkPolicyValue)); + case SHARING_CHANGE_MEMBER_POLICY: + return (this.sharingChangeMemberPolicyValue == other.sharingChangeMemberPolicyValue) || (this.sharingChangeMemberPolicyValue.equals(other.sharingChangeMemberPolicyValue)); + case SHOWCASE_CHANGE_DOWNLOAD_POLICY: + return (this.showcaseChangeDownloadPolicyValue == other.showcaseChangeDownloadPolicyValue) || (this.showcaseChangeDownloadPolicyValue.equals(other.showcaseChangeDownloadPolicyValue)); + case SHOWCASE_CHANGE_ENABLED_POLICY: + return (this.showcaseChangeEnabledPolicyValue == other.showcaseChangeEnabledPolicyValue) || (this.showcaseChangeEnabledPolicyValue.equals(other.showcaseChangeEnabledPolicyValue)); + case SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY: + return (this.showcaseChangeExternalSharingPolicyValue == other.showcaseChangeExternalSharingPolicyValue) || (this.showcaseChangeExternalSharingPolicyValue.equals(other.showcaseChangeExternalSharingPolicyValue)); + case SMARTER_SMART_SYNC_POLICY_CHANGED: + return (this.smarterSmartSyncPolicyChangedValue == other.smarterSmartSyncPolicyChangedValue) || (this.smarterSmartSyncPolicyChangedValue.equals(other.smarterSmartSyncPolicyChangedValue)); + case SMART_SYNC_CHANGE_POLICY: + return (this.smartSyncChangePolicyValue == other.smartSyncChangePolicyValue) || (this.smartSyncChangePolicyValue.equals(other.smartSyncChangePolicyValue)); + case SMART_SYNC_NOT_OPT_OUT: + return (this.smartSyncNotOptOutValue == other.smartSyncNotOptOutValue) || (this.smartSyncNotOptOutValue.equals(other.smartSyncNotOptOutValue)); + case SMART_SYNC_OPT_OUT: + return (this.smartSyncOptOutValue == other.smartSyncOptOutValue) || (this.smartSyncOptOutValue.equals(other.smartSyncOptOutValue)); + case SSO_CHANGE_POLICY: + return (this.ssoChangePolicyValue == other.ssoChangePolicyValue) || (this.ssoChangePolicyValue.equals(other.ssoChangePolicyValue)); + case TEAM_BRANDING_POLICY_CHANGED: + return (this.teamBrandingPolicyChangedValue == other.teamBrandingPolicyChangedValue) || (this.teamBrandingPolicyChangedValue.equals(other.teamBrandingPolicyChangedValue)); + case TEAM_EXTENSIONS_POLICY_CHANGED: + return (this.teamExtensionsPolicyChangedValue == other.teamExtensionsPolicyChangedValue) || (this.teamExtensionsPolicyChangedValue.equals(other.teamExtensionsPolicyChangedValue)); + case TEAM_SELECTIVE_SYNC_POLICY_CHANGED: + return (this.teamSelectiveSyncPolicyChangedValue == other.teamSelectiveSyncPolicyChangedValue) || (this.teamSelectiveSyncPolicyChangedValue.equals(other.teamSelectiveSyncPolicyChangedValue)); + case TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED: + return (this.teamSharingWhitelistSubjectsChangedValue == other.teamSharingWhitelistSubjectsChangedValue) || (this.teamSharingWhitelistSubjectsChangedValue.equals(other.teamSharingWhitelistSubjectsChangedValue)); + case TFA_ADD_EXCEPTION: + return (this.tfaAddExceptionValue == other.tfaAddExceptionValue) || (this.tfaAddExceptionValue.equals(other.tfaAddExceptionValue)); + case TFA_CHANGE_POLICY: + return (this.tfaChangePolicyValue == other.tfaChangePolicyValue) || (this.tfaChangePolicyValue.equals(other.tfaChangePolicyValue)); + case TFA_REMOVE_EXCEPTION: + return (this.tfaRemoveExceptionValue == other.tfaRemoveExceptionValue) || (this.tfaRemoveExceptionValue.equals(other.tfaRemoveExceptionValue)); + case TWO_ACCOUNT_CHANGE_POLICY: + return (this.twoAccountChangePolicyValue == other.twoAccountChangePolicyValue) || (this.twoAccountChangePolicyValue.equals(other.twoAccountChangePolicyValue)); + case VIEWER_INFO_POLICY_CHANGED: + return (this.viewerInfoPolicyChangedValue == other.viewerInfoPolicyChangedValue) || (this.viewerInfoPolicyChangedValue.equals(other.viewerInfoPolicyChangedValue)); + case WATERMARKING_POLICY_CHANGED: + return (this.watermarkingPolicyChangedValue == other.watermarkingPolicyChangedValue) || (this.watermarkingPolicyChangedValue.equals(other.watermarkingPolicyChangedValue)); + case WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT: + return (this.webSessionsChangeActiveSessionLimitValue == other.webSessionsChangeActiveSessionLimitValue) || (this.webSessionsChangeActiveSessionLimitValue.equals(other.webSessionsChangeActiveSessionLimitValue)); + case WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY: + return (this.webSessionsChangeFixedLengthPolicyValue == other.webSessionsChangeFixedLengthPolicyValue) || (this.webSessionsChangeFixedLengthPolicyValue.equals(other.webSessionsChangeFixedLengthPolicyValue)); + case WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY: + return (this.webSessionsChangeIdleLengthPolicyValue == other.webSessionsChangeIdleLengthPolicyValue) || (this.webSessionsChangeIdleLengthPolicyValue.equals(other.webSessionsChangeIdleLengthPolicyValue)); + case DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL: + return (this.dataResidencyMigrationRequestSuccessfulValue == other.dataResidencyMigrationRequestSuccessfulValue) || (this.dataResidencyMigrationRequestSuccessfulValue.equals(other.dataResidencyMigrationRequestSuccessfulValue)); + case DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL: + return (this.dataResidencyMigrationRequestUnsuccessfulValue == other.dataResidencyMigrationRequestUnsuccessfulValue) || (this.dataResidencyMigrationRequestUnsuccessfulValue.equals(other.dataResidencyMigrationRequestUnsuccessfulValue)); + case TEAM_MERGE_FROM: + return (this.teamMergeFromValue == other.teamMergeFromValue) || (this.teamMergeFromValue.equals(other.teamMergeFromValue)); + case TEAM_MERGE_TO: + return (this.teamMergeToValue == other.teamMergeToValue) || (this.teamMergeToValue.equals(other.teamMergeToValue)); + case TEAM_PROFILE_ADD_BACKGROUND: + return (this.teamProfileAddBackgroundValue == other.teamProfileAddBackgroundValue) || (this.teamProfileAddBackgroundValue.equals(other.teamProfileAddBackgroundValue)); + case TEAM_PROFILE_ADD_LOGO: + return (this.teamProfileAddLogoValue == other.teamProfileAddLogoValue) || (this.teamProfileAddLogoValue.equals(other.teamProfileAddLogoValue)); + case TEAM_PROFILE_CHANGE_BACKGROUND: + return (this.teamProfileChangeBackgroundValue == other.teamProfileChangeBackgroundValue) || (this.teamProfileChangeBackgroundValue.equals(other.teamProfileChangeBackgroundValue)); + case TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE: + return (this.teamProfileChangeDefaultLanguageValue == other.teamProfileChangeDefaultLanguageValue) || (this.teamProfileChangeDefaultLanguageValue.equals(other.teamProfileChangeDefaultLanguageValue)); + case TEAM_PROFILE_CHANGE_LOGO: + return (this.teamProfileChangeLogoValue == other.teamProfileChangeLogoValue) || (this.teamProfileChangeLogoValue.equals(other.teamProfileChangeLogoValue)); + case TEAM_PROFILE_CHANGE_NAME: + return (this.teamProfileChangeNameValue == other.teamProfileChangeNameValue) || (this.teamProfileChangeNameValue.equals(other.teamProfileChangeNameValue)); + case TEAM_PROFILE_REMOVE_BACKGROUND: + return (this.teamProfileRemoveBackgroundValue == other.teamProfileRemoveBackgroundValue) || (this.teamProfileRemoveBackgroundValue.equals(other.teamProfileRemoveBackgroundValue)); + case TEAM_PROFILE_REMOVE_LOGO: + return (this.teamProfileRemoveLogoValue == other.teamProfileRemoveLogoValue) || (this.teamProfileRemoveLogoValue.equals(other.teamProfileRemoveLogoValue)); + case TFA_ADD_BACKUP_PHONE: + return (this.tfaAddBackupPhoneValue == other.tfaAddBackupPhoneValue) || (this.tfaAddBackupPhoneValue.equals(other.tfaAddBackupPhoneValue)); + case TFA_ADD_SECURITY_KEY: + return (this.tfaAddSecurityKeyValue == other.tfaAddSecurityKeyValue) || (this.tfaAddSecurityKeyValue.equals(other.tfaAddSecurityKeyValue)); + case TFA_CHANGE_BACKUP_PHONE: + return (this.tfaChangeBackupPhoneValue == other.tfaChangeBackupPhoneValue) || (this.tfaChangeBackupPhoneValue.equals(other.tfaChangeBackupPhoneValue)); + case TFA_CHANGE_STATUS: + return (this.tfaChangeStatusValue == other.tfaChangeStatusValue) || (this.tfaChangeStatusValue.equals(other.tfaChangeStatusValue)); + case TFA_REMOVE_BACKUP_PHONE: + return (this.tfaRemoveBackupPhoneValue == other.tfaRemoveBackupPhoneValue) || (this.tfaRemoveBackupPhoneValue.equals(other.tfaRemoveBackupPhoneValue)); + case TFA_REMOVE_SECURITY_KEY: + return (this.tfaRemoveSecurityKeyValue == other.tfaRemoveSecurityKeyValue) || (this.tfaRemoveSecurityKeyValue.equals(other.tfaRemoveSecurityKeyValue)); + case TFA_RESET: + return (this.tfaResetValue == other.tfaResetValue) || (this.tfaResetValue.equals(other.tfaResetValue)); + case CHANGED_ENTERPRISE_ADMIN_ROLE: + return (this.changedEnterpriseAdminRoleValue == other.changedEnterpriseAdminRoleValue) || (this.changedEnterpriseAdminRoleValue.equals(other.changedEnterpriseAdminRoleValue)); + case CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS: + return (this.changedEnterpriseConnectedTeamStatusValue == other.changedEnterpriseConnectedTeamStatusValue) || (this.changedEnterpriseConnectedTeamStatusValue.equals(other.changedEnterpriseConnectedTeamStatusValue)); + case ENDED_ENTERPRISE_ADMIN_SESSION: + return (this.endedEnterpriseAdminSessionValue == other.endedEnterpriseAdminSessionValue) || (this.endedEnterpriseAdminSessionValue.equals(other.endedEnterpriseAdminSessionValue)); + case ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED: + return (this.endedEnterpriseAdminSessionDeprecatedValue == other.endedEnterpriseAdminSessionDeprecatedValue) || (this.endedEnterpriseAdminSessionDeprecatedValue.equals(other.endedEnterpriseAdminSessionDeprecatedValue)); + case ENTERPRISE_SETTINGS_LOCKING: + return (this.enterpriseSettingsLockingValue == other.enterpriseSettingsLockingValue) || (this.enterpriseSettingsLockingValue.equals(other.enterpriseSettingsLockingValue)); + case GUEST_ADMIN_CHANGE_STATUS: + return (this.guestAdminChangeStatusValue == other.guestAdminChangeStatusValue) || (this.guestAdminChangeStatusValue.equals(other.guestAdminChangeStatusValue)); + case STARTED_ENTERPRISE_ADMIN_SESSION: + return (this.startedEnterpriseAdminSessionValue == other.startedEnterpriseAdminSessionValue) || (this.startedEnterpriseAdminSessionValue.equals(other.startedEnterpriseAdminSessionValue)); + case TEAM_MERGE_REQUEST_ACCEPTED: + return (this.teamMergeRequestAcceptedValue == other.teamMergeRequestAcceptedValue) || (this.teamMergeRequestAcceptedValue.equals(other.teamMergeRequestAcceptedValue)); + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM: + return (this.teamMergeRequestAcceptedShownToPrimaryTeamValue == other.teamMergeRequestAcceptedShownToPrimaryTeamValue) || (this.teamMergeRequestAcceptedShownToPrimaryTeamValue.equals(other.teamMergeRequestAcceptedShownToPrimaryTeamValue)); + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM: + return (this.teamMergeRequestAcceptedShownToSecondaryTeamValue == other.teamMergeRequestAcceptedShownToSecondaryTeamValue) || (this.teamMergeRequestAcceptedShownToSecondaryTeamValue.equals(other.teamMergeRequestAcceptedShownToSecondaryTeamValue)); + case TEAM_MERGE_REQUEST_AUTO_CANCELED: + return (this.teamMergeRequestAutoCanceledValue == other.teamMergeRequestAutoCanceledValue) || (this.teamMergeRequestAutoCanceledValue.equals(other.teamMergeRequestAutoCanceledValue)); + case TEAM_MERGE_REQUEST_CANCELED: + return (this.teamMergeRequestCanceledValue == other.teamMergeRequestCanceledValue) || (this.teamMergeRequestCanceledValue.equals(other.teamMergeRequestCanceledValue)); + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM: + return (this.teamMergeRequestCanceledShownToPrimaryTeamValue == other.teamMergeRequestCanceledShownToPrimaryTeamValue) || (this.teamMergeRequestCanceledShownToPrimaryTeamValue.equals(other.teamMergeRequestCanceledShownToPrimaryTeamValue)); + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM: + return (this.teamMergeRequestCanceledShownToSecondaryTeamValue == other.teamMergeRequestCanceledShownToSecondaryTeamValue) || (this.teamMergeRequestCanceledShownToSecondaryTeamValue.equals(other.teamMergeRequestCanceledShownToSecondaryTeamValue)); + case TEAM_MERGE_REQUEST_EXPIRED: + return (this.teamMergeRequestExpiredValue == other.teamMergeRequestExpiredValue) || (this.teamMergeRequestExpiredValue.equals(other.teamMergeRequestExpiredValue)); + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM: + return (this.teamMergeRequestExpiredShownToPrimaryTeamValue == other.teamMergeRequestExpiredShownToPrimaryTeamValue) || (this.teamMergeRequestExpiredShownToPrimaryTeamValue.equals(other.teamMergeRequestExpiredShownToPrimaryTeamValue)); + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM: + return (this.teamMergeRequestExpiredShownToSecondaryTeamValue == other.teamMergeRequestExpiredShownToSecondaryTeamValue) || (this.teamMergeRequestExpiredShownToSecondaryTeamValue.equals(other.teamMergeRequestExpiredShownToSecondaryTeamValue)); + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM: + return (this.teamMergeRequestRejectedShownToPrimaryTeamValue == other.teamMergeRequestRejectedShownToPrimaryTeamValue) || (this.teamMergeRequestRejectedShownToPrimaryTeamValue.equals(other.teamMergeRequestRejectedShownToPrimaryTeamValue)); + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM: + return (this.teamMergeRequestRejectedShownToSecondaryTeamValue == other.teamMergeRequestRejectedShownToSecondaryTeamValue) || (this.teamMergeRequestRejectedShownToSecondaryTeamValue.equals(other.teamMergeRequestRejectedShownToSecondaryTeamValue)); + case TEAM_MERGE_REQUEST_REMINDER: + return (this.teamMergeRequestReminderValue == other.teamMergeRequestReminderValue) || (this.teamMergeRequestReminderValue.equals(other.teamMergeRequestReminderValue)); + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM: + return (this.teamMergeRequestReminderShownToPrimaryTeamValue == other.teamMergeRequestReminderShownToPrimaryTeamValue) || (this.teamMergeRequestReminderShownToPrimaryTeamValue.equals(other.teamMergeRequestReminderShownToPrimaryTeamValue)); + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM: + return (this.teamMergeRequestReminderShownToSecondaryTeamValue == other.teamMergeRequestReminderShownToSecondaryTeamValue) || (this.teamMergeRequestReminderShownToSecondaryTeamValue.equals(other.teamMergeRequestReminderShownToSecondaryTeamValue)); + case TEAM_MERGE_REQUEST_REVOKED: + return (this.teamMergeRequestRevokedValue == other.teamMergeRequestRevokedValue) || (this.teamMergeRequestRevokedValue.equals(other.teamMergeRequestRevokedValue)); + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM: + return (this.teamMergeRequestSentShownToPrimaryTeamValue == other.teamMergeRequestSentShownToPrimaryTeamValue) || (this.teamMergeRequestSentShownToPrimaryTeamValue.equals(other.teamMergeRequestSentShownToPrimaryTeamValue)); + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM: + return (this.teamMergeRequestSentShownToSecondaryTeamValue == other.teamMergeRequestSentShownToSecondaryTeamValue) || (this.teamMergeRequestSentShownToSecondaryTeamValue.equals(other.teamMergeRequestSentShownToSecondaryTeamValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EventType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ADMIN_ALERTING_ALERT_STATE_CHANGED: { + g.writeStartObject(); + writeTag("admin_alerting_alert_state_changed", g); + AdminAlertingAlertStateChangedType.Serializer.INSTANCE.serialize(value.adminAlertingAlertStateChangedValue, g, true); + g.writeEndObject(); + break; + } + case ADMIN_ALERTING_CHANGED_ALERT_CONFIG: { + g.writeStartObject(); + writeTag("admin_alerting_changed_alert_config", g); + AdminAlertingChangedAlertConfigType.Serializer.INSTANCE.serialize(value.adminAlertingChangedAlertConfigValue, g, true); + g.writeEndObject(); + break; + } + case ADMIN_ALERTING_TRIGGERED_ALERT: { + g.writeStartObject(); + writeTag("admin_alerting_triggered_alert", g); + AdminAlertingTriggeredAlertType.Serializer.INSTANCE.serialize(value.adminAlertingTriggeredAlertValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_RESTORE_PROCESS_COMPLETED: { + g.writeStartObject(); + writeTag("ransomware_restore_process_completed", g); + RansomwareRestoreProcessCompletedType.Serializer.INSTANCE.serialize(value.ransomwareRestoreProcessCompletedValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_RESTORE_PROCESS_STARTED: { + g.writeStartObject(); + writeTag("ransomware_restore_process_started", g); + RansomwareRestoreProcessStartedType.Serializer.INSTANCE.serialize(value.ransomwareRestoreProcessStartedValue, g, true); + g.writeEndObject(); + break; + } + case APP_BLOCKED_BY_PERMISSIONS: { + g.writeStartObject(); + writeTag("app_blocked_by_permissions", g); + AppBlockedByPermissionsType.Serializer.INSTANCE.serialize(value.appBlockedByPermissionsValue, g, true); + g.writeEndObject(); + break; + } + case APP_LINK_TEAM: { + g.writeStartObject(); + writeTag("app_link_team", g); + AppLinkTeamType.Serializer.INSTANCE.serialize(value.appLinkTeamValue, g, true); + g.writeEndObject(); + break; + } + case APP_LINK_USER: { + g.writeStartObject(); + writeTag("app_link_user", g); + AppLinkUserType.Serializer.INSTANCE.serialize(value.appLinkUserValue, g, true); + g.writeEndObject(); + break; + } + case APP_UNLINK_TEAM: { + g.writeStartObject(); + writeTag("app_unlink_team", g); + AppUnlinkTeamType.Serializer.INSTANCE.serialize(value.appUnlinkTeamValue, g, true); + g.writeEndObject(); + break; + } + case APP_UNLINK_USER: { + g.writeStartObject(); + writeTag("app_unlink_user", g); + AppUnlinkUserType.Serializer.INSTANCE.serialize(value.appUnlinkUserValue, g, true); + g.writeEndObject(); + break; + } + case INTEGRATION_CONNECTED: { + g.writeStartObject(); + writeTag("integration_connected", g); + IntegrationConnectedType.Serializer.INSTANCE.serialize(value.integrationConnectedValue, g, true); + g.writeEndObject(); + break; + } + case INTEGRATION_DISCONNECTED: { + g.writeStartObject(); + writeTag("integration_disconnected", g); + IntegrationDisconnectedType.Serializer.INSTANCE.serialize(value.integrationDisconnectedValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ADD_COMMENT: { + g.writeStartObject(); + writeTag("file_add_comment", g); + FileAddCommentType.Serializer.INSTANCE.serialize(value.fileAddCommentValue, g, true); + g.writeEndObject(); + break; + } + case FILE_CHANGE_COMMENT_SUBSCRIPTION: { + g.writeStartObject(); + writeTag("file_change_comment_subscription", g); + FileChangeCommentSubscriptionType.Serializer.INSTANCE.serialize(value.fileChangeCommentSubscriptionValue, g, true); + g.writeEndObject(); + break; + } + case FILE_DELETE_COMMENT: { + g.writeStartObject(); + writeTag("file_delete_comment", g); + FileDeleteCommentType.Serializer.INSTANCE.serialize(value.fileDeleteCommentValue, g, true); + g.writeEndObject(); + break; + } + case FILE_EDIT_COMMENT: { + g.writeStartObject(); + writeTag("file_edit_comment", g); + FileEditCommentType.Serializer.INSTANCE.serialize(value.fileEditCommentValue, g, true); + g.writeEndObject(); + break; + } + case FILE_LIKE_COMMENT: { + g.writeStartObject(); + writeTag("file_like_comment", g); + FileLikeCommentType.Serializer.INSTANCE.serialize(value.fileLikeCommentValue, g, true); + g.writeEndObject(); + break; + } + case FILE_RESOLVE_COMMENT: { + g.writeStartObject(); + writeTag("file_resolve_comment", g); + FileResolveCommentType.Serializer.INSTANCE.serialize(value.fileResolveCommentValue, g, true); + g.writeEndObject(); + break; + } + case FILE_UNLIKE_COMMENT: { + g.writeStartObject(); + writeTag("file_unlike_comment", g); + FileUnlikeCommentType.Serializer.INSTANCE.serialize(value.fileUnlikeCommentValue, g, true); + g.writeEndObject(); + break; + } + case FILE_UNRESOLVE_COMMENT: { + g.writeStartObject(); + writeTag("file_unresolve_comment", g); + FileUnresolveCommentType.Serializer.INSTANCE.serialize(value.fileUnresolveCommentValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_ADD_FOLDERS: { + g.writeStartObject(); + writeTag("governance_policy_add_folders", g); + GovernancePolicyAddFoldersType.Serializer.INSTANCE.serialize(value.governancePolicyAddFoldersValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_ADD_FOLDER_FAILED: { + g.writeStartObject(); + writeTag("governance_policy_add_folder_failed", g); + GovernancePolicyAddFolderFailedType.Serializer.INSTANCE.serialize(value.governancePolicyAddFolderFailedValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_CONTENT_DISPOSED: { + g.writeStartObject(); + writeTag("governance_policy_content_disposed", g); + GovernancePolicyContentDisposedType.Serializer.INSTANCE.serialize(value.governancePolicyContentDisposedValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_CREATE: { + g.writeStartObject(); + writeTag("governance_policy_create", g); + GovernancePolicyCreateType.Serializer.INSTANCE.serialize(value.governancePolicyCreateValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_DELETE: { + g.writeStartObject(); + writeTag("governance_policy_delete", g); + GovernancePolicyDeleteType.Serializer.INSTANCE.serialize(value.governancePolicyDeleteValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EDIT_DETAILS: { + g.writeStartObject(); + writeTag("governance_policy_edit_details", g); + GovernancePolicyEditDetailsType.Serializer.INSTANCE.serialize(value.governancePolicyEditDetailsValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EDIT_DURATION: { + g.writeStartObject(); + writeTag("governance_policy_edit_duration", g); + GovernancePolicyEditDurationType.Serializer.INSTANCE.serialize(value.governancePolicyEditDurationValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EXPORT_CREATED: { + g.writeStartObject(); + writeTag("governance_policy_export_created", g); + GovernancePolicyExportCreatedType.Serializer.INSTANCE.serialize(value.governancePolicyExportCreatedValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_EXPORT_REMOVED: { + g.writeStartObject(); + writeTag("governance_policy_export_removed", g); + GovernancePolicyExportRemovedType.Serializer.INSTANCE.serialize(value.governancePolicyExportRemovedValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_REMOVE_FOLDERS: { + g.writeStartObject(); + writeTag("governance_policy_remove_folders", g); + GovernancePolicyRemoveFoldersType.Serializer.INSTANCE.serialize(value.governancePolicyRemoveFoldersValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_REPORT_CREATED: { + g.writeStartObject(); + writeTag("governance_policy_report_created", g); + GovernancePolicyReportCreatedType.Serializer.INSTANCE.serialize(value.governancePolicyReportCreatedValue, g, true); + g.writeEndObject(); + break; + } + case GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED: { + g.writeStartObject(); + writeTag("governance_policy_zip_part_downloaded", g); + GovernancePolicyZipPartDownloadedType.Serializer.INSTANCE.serialize(value.governancePolicyZipPartDownloadedValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_ACTIVATE_A_HOLD: { + g.writeStartObject(); + writeTag("legal_holds_activate_a_hold", g); + LegalHoldsActivateAHoldType.Serializer.INSTANCE.serialize(value.legalHoldsActivateAHoldValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_ADD_MEMBERS: { + g.writeStartObject(); + writeTag("legal_holds_add_members", g); + LegalHoldsAddMembersType.Serializer.INSTANCE.serialize(value.legalHoldsAddMembersValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_CHANGE_HOLD_DETAILS: { + g.writeStartObject(); + writeTag("legal_holds_change_hold_details", g); + LegalHoldsChangeHoldDetailsType.Serializer.INSTANCE.serialize(value.legalHoldsChangeHoldDetailsValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_CHANGE_HOLD_NAME: { + g.writeStartObject(); + writeTag("legal_holds_change_hold_name", g); + LegalHoldsChangeHoldNameType.Serializer.INSTANCE.serialize(value.legalHoldsChangeHoldNameValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_A_HOLD: { + g.writeStartObject(); + writeTag("legal_holds_export_a_hold", g); + LegalHoldsExportAHoldType.Serializer.INSTANCE.serialize(value.legalHoldsExportAHoldValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_CANCELLED: { + g.writeStartObject(); + writeTag("legal_holds_export_cancelled", g); + LegalHoldsExportCancelledType.Serializer.INSTANCE.serialize(value.legalHoldsExportCancelledValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_DOWNLOADED: { + g.writeStartObject(); + writeTag("legal_holds_export_downloaded", g); + LegalHoldsExportDownloadedType.Serializer.INSTANCE.serialize(value.legalHoldsExportDownloadedValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_EXPORT_REMOVED: { + g.writeStartObject(); + writeTag("legal_holds_export_removed", g); + LegalHoldsExportRemovedType.Serializer.INSTANCE.serialize(value.legalHoldsExportRemovedValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_RELEASE_A_HOLD: { + g.writeStartObject(); + writeTag("legal_holds_release_a_hold", g); + LegalHoldsReleaseAHoldType.Serializer.INSTANCE.serialize(value.legalHoldsReleaseAHoldValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_REMOVE_MEMBERS: { + g.writeStartObject(); + writeTag("legal_holds_remove_members", g); + LegalHoldsRemoveMembersType.Serializer.INSTANCE.serialize(value.legalHoldsRemoveMembersValue, g, true); + g.writeEndObject(); + break; + } + case LEGAL_HOLDS_REPORT_A_HOLD: { + g.writeStartObject(); + writeTag("legal_holds_report_a_hold", g); + LegalHoldsReportAHoldType.Serializer.INSTANCE.serialize(value.legalHoldsReportAHoldValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_CHANGE_IP_DESKTOP: { + g.writeStartObject(); + writeTag("device_change_ip_desktop", g); + DeviceChangeIpDesktopType.Serializer.INSTANCE.serialize(value.deviceChangeIpDesktopValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_CHANGE_IP_MOBILE: { + g.writeStartObject(); + writeTag("device_change_ip_mobile", g); + DeviceChangeIpMobileType.Serializer.INSTANCE.serialize(value.deviceChangeIpMobileValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_CHANGE_IP_WEB: { + g.writeStartObject(); + writeTag("device_change_ip_web", g); + DeviceChangeIpWebType.Serializer.INSTANCE.serialize(value.deviceChangeIpWebValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_DELETE_ON_UNLINK_FAIL: { + g.writeStartObject(); + writeTag("device_delete_on_unlink_fail", g); + DeviceDeleteOnUnlinkFailType.Serializer.INSTANCE.serialize(value.deviceDeleteOnUnlinkFailValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_DELETE_ON_UNLINK_SUCCESS: { + g.writeStartObject(); + writeTag("device_delete_on_unlink_success", g); + DeviceDeleteOnUnlinkSuccessType.Serializer.INSTANCE.serialize(value.deviceDeleteOnUnlinkSuccessValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_LINK_FAIL: { + g.writeStartObject(); + writeTag("device_link_fail", g); + DeviceLinkFailType.Serializer.INSTANCE.serialize(value.deviceLinkFailValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_LINK_SUCCESS: { + g.writeStartObject(); + writeTag("device_link_success", g); + DeviceLinkSuccessType.Serializer.INSTANCE.serialize(value.deviceLinkSuccessValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_MANAGEMENT_DISABLED: { + g.writeStartObject(); + writeTag("device_management_disabled", g); + DeviceManagementDisabledType.Serializer.INSTANCE.serialize(value.deviceManagementDisabledValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_MANAGEMENT_ENABLED: { + g.writeStartObject(); + writeTag("device_management_enabled", g); + DeviceManagementEnabledType.Serializer.INSTANCE.serialize(value.deviceManagementEnabledValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_SYNC_BACKUP_STATUS_CHANGED: { + g.writeStartObject(); + writeTag("device_sync_backup_status_changed", g); + DeviceSyncBackupStatusChangedType.Serializer.INSTANCE.serialize(value.deviceSyncBackupStatusChangedValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_UNLINK: { + g.writeStartObject(); + writeTag("device_unlink", g); + DeviceUnlinkType.Serializer.INSTANCE.serialize(value.deviceUnlinkValue, g, true); + g.writeEndObject(); + break; + } + case DROPBOX_PASSWORDS_EXPORTED: { + g.writeStartObject(); + writeTag("dropbox_passwords_exported", g); + DropboxPasswordsExportedType.Serializer.INSTANCE.serialize(value.dropboxPasswordsExportedValue, g, true); + g.writeEndObject(); + break; + } + case DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED: { + g.writeStartObject(); + writeTag("dropbox_passwords_new_device_enrolled", g); + DropboxPasswordsNewDeviceEnrolledType.Serializer.INSTANCE.serialize(value.dropboxPasswordsNewDeviceEnrolledValue, g, true); + g.writeEndObject(); + break; + } + case EMM_REFRESH_AUTH_TOKEN: { + g.writeStartObject(); + writeTag("emm_refresh_auth_token", g); + EmmRefreshAuthTokenType.Serializer.INSTANCE.serialize(value.emmRefreshAuthTokenValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED: { + g.writeStartObject(); + writeTag("external_drive_backup_eligibility_status_checked", g); + ExternalDriveBackupEligibilityStatusCheckedType.Serializer.INSTANCE.serialize(value.externalDriveBackupEligibilityStatusCheckedValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED: { + g.writeStartObject(); + writeTag("external_drive_backup_status_changed", g); + ExternalDriveBackupStatusChangedType.Serializer.INSTANCE.serialize(value.externalDriveBackupStatusChangedValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_CHANGE_AVAILABILITY: { + g.writeStartObject(); + writeTag("account_capture_change_availability", g); + AccountCaptureChangeAvailabilityType.Serializer.INSTANCE.serialize(value.accountCaptureChangeAvailabilityValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_MIGRATE_ACCOUNT: { + g.writeStartObject(); + writeTag("account_capture_migrate_account", g); + AccountCaptureMigrateAccountType.Serializer.INSTANCE.serialize(value.accountCaptureMigrateAccountValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT: { + g.writeStartObject(); + writeTag("account_capture_notification_emails_sent", g); + AccountCaptureNotificationEmailsSentType.Serializer.INSTANCE.serialize(value.accountCaptureNotificationEmailsSentValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT: { + g.writeStartObject(); + writeTag("account_capture_relinquish_account", g); + AccountCaptureRelinquishAccountType.Serializer.INSTANCE.serialize(value.accountCaptureRelinquishAccountValue, g, true); + g.writeEndObject(); + break; + } + case DISABLED_DOMAIN_INVITES: { + g.writeStartObject(); + writeTag("disabled_domain_invites", g); + DisabledDomainInvitesType.Serializer.INSTANCE.serialize(value.disabledDomainInvitesValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM: { + g.writeStartObject(); + writeTag("domain_invites_approve_request_to_join_team", g); + DomainInvitesApproveRequestToJoinTeamType.Serializer.INSTANCE.serialize(value.domainInvitesApproveRequestToJoinTeamValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM: { + g.writeStartObject(); + writeTag("domain_invites_decline_request_to_join_team", g); + DomainInvitesDeclineRequestToJoinTeamType.Serializer.INSTANCE.serialize(value.domainInvitesDeclineRequestToJoinTeamValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_EMAIL_EXISTING_USERS: { + g.writeStartObject(); + writeTag("domain_invites_email_existing_users", g); + DomainInvitesEmailExistingUsersType.Serializer.INSTANCE.serialize(value.domainInvitesEmailExistingUsersValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM: { + g.writeStartObject(); + writeTag("domain_invites_request_to_join_team", g); + DomainInvitesRequestToJoinTeamType.Serializer.INSTANCE.serialize(value.domainInvitesRequestToJoinTeamValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO: { + g.writeStartObject(); + writeTag("domain_invites_set_invite_new_user_pref_to_no", g); + DomainInvitesSetInviteNewUserPrefToNoType.Serializer.INSTANCE.serialize(value.domainInvitesSetInviteNewUserPrefToNoValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES: { + g.writeStartObject(); + writeTag("domain_invites_set_invite_new_user_pref_to_yes", g); + DomainInvitesSetInviteNewUserPrefToYesType.Serializer.INSTANCE.serialize(value.domainInvitesSetInviteNewUserPrefToYesValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL: { + g.writeStartObject(); + writeTag("domain_verification_add_domain_fail", g); + DomainVerificationAddDomainFailType.Serializer.INSTANCE.serialize(value.domainVerificationAddDomainFailValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS: { + g.writeStartObject(); + writeTag("domain_verification_add_domain_success", g); + DomainVerificationAddDomainSuccessType.Serializer.INSTANCE.serialize(value.domainVerificationAddDomainSuccessValue, g, true); + g.writeEndObject(); + break; + } + case DOMAIN_VERIFICATION_REMOVE_DOMAIN: { + g.writeStartObject(); + writeTag("domain_verification_remove_domain", g); + DomainVerificationRemoveDomainType.Serializer.INSTANCE.serialize(value.domainVerificationRemoveDomainValue, g, true); + g.writeEndObject(); + break; + } + case ENABLED_DOMAIN_INVITES: { + g.writeStartObject(); + writeTag("enabled_domain_invites", g); + EnabledDomainInvitesType.Serializer.INSTANCE.serialize(value.enabledDomainInvitesValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION: { + g.writeStartObject(); + writeTag("team_encryption_key_cancel_key_deletion", g); + TeamEncryptionKeyCancelKeyDeletionType.Serializer.INSTANCE.serialize(value.teamEncryptionKeyCancelKeyDeletionValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_CREATE_KEY: { + g.writeStartObject(); + writeTag("team_encryption_key_create_key", g); + TeamEncryptionKeyCreateKeyType.Serializer.INSTANCE.serialize(value.teamEncryptionKeyCreateKeyValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_DELETE_KEY: { + g.writeStartObject(); + writeTag("team_encryption_key_delete_key", g); + TeamEncryptionKeyDeleteKeyType.Serializer.INSTANCE.serialize(value.teamEncryptionKeyDeleteKeyValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_DISABLE_KEY: { + g.writeStartObject(); + writeTag("team_encryption_key_disable_key", g); + TeamEncryptionKeyDisableKeyType.Serializer.INSTANCE.serialize(value.teamEncryptionKeyDisableKeyValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_ENABLE_KEY: { + g.writeStartObject(); + writeTag("team_encryption_key_enable_key", g); + TeamEncryptionKeyEnableKeyType.Serializer.INSTANCE.serialize(value.teamEncryptionKeyEnableKeyValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_ROTATE_KEY: { + g.writeStartObject(); + writeTag("team_encryption_key_rotate_key", g); + TeamEncryptionKeyRotateKeyType.Serializer.INSTANCE.serialize(value.teamEncryptionKeyRotateKeyValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION: { + g.writeStartObject(); + writeTag("team_encryption_key_schedule_key_deletion", g); + TeamEncryptionKeyScheduleKeyDeletionType.Serializer.INSTANCE.serialize(value.teamEncryptionKeyScheduleKeyDeletionValue, g, true); + g.writeEndObject(); + break; + } + case APPLY_NAMING_CONVENTION: { + g.writeStartObject(); + writeTag("apply_naming_convention", g); + ApplyNamingConventionType.Serializer.INSTANCE.serialize(value.applyNamingConventionValue, g, true); + g.writeEndObject(); + break; + } + case CREATE_FOLDER: { + g.writeStartObject(); + writeTag("create_folder", g); + CreateFolderType.Serializer.INSTANCE.serialize(value.createFolderValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ADD: { + g.writeStartObject(); + writeTag("file_add", g); + FileAddType.Serializer.INSTANCE.serialize(value.fileAddValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ADD_FROM_AUTOMATION: { + g.writeStartObject(); + writeTag("file_add_from_automation", g); + FileAddFromAutomationType.Serializer.INSTANCE.serialize(value.fileAddFromAutomationValue, g, true); + g.writeEndObject(); + break; + } + case FILE_COPY: { + g.writeStartObject(); + writeTag("file_copy", g); + FileCopyType.Serializer.INSTANCE.serialize(value.fileCopyValue, g, true); + g.writeEndObject(); + break; + } + case FILE_DELETE: { + g.writeStartObject(); + writeTag("file_delete", g); + FileDeleteType.Serializer.INSTANCE.serialize(value.fileDeleteValue, g, true); + g.writeEndObject(); + break; + } + case FILE_DOWNLOAD: { + g.writeStartObject(); + writeTag("file_download", g); + FileDownloadType.Serializer.INSTANCE.serialize(value.fileDownloadValue, g, true); + g.writeEndObject(); + break; + } + case FILE_EDIT: { + g.writeStartObject(); + writeTag("file_edit", g); + FileEditType.Serializer.INSTANCE.serialize(value.fileEditValue, g, true); + g.writeEndObject(); + break; + } + case FILE_GET_COPY_REFERENCE: { + g.writeStartObject(); + writeTag("file_get_copy_reference", g); + FileGetCopyReferenceType.Serializer.INSTANCE.serialize(value.fileGetCopyReferenceValue, g, true); + g.writeEndObject(); + break; + } + case FILE_LOCKING_LOCK_STATUS_CHANGED: { + g.writeStartObject(); + writeTag("file_locking_lock_status_changed", g); + FileLockingLockStatusChangedType.Serializer.INSTANCE.serialize(value.fileLockingLockStatusChangedValue, g, true); + g.writeEndObject(); + break; + } + case FILE_MOVE: { + g.writeStartObject(); + writeTag("file_move", g); + FileMoveType.Serializer.INSTANCE.serialize(value.fileMoveValue, g, true); + g.writeEndObject(); + break; + } + case FILE_PERMANENTLY_DELETE: { + g.writeStartObject(); + writeTag("file_permanently_delete", g); + FilePermanentlyDeleteType.Serializer.INSTANCE.serialize(value.filePermanentlyDeleteValue, g, true); + g.writeEndObject(); + break; + } + case FILE_PREVIEW: { + g.writeStartObject(); + writeTag("file_preview", g); + FilePreviewType.Serializer.INSTANCE.serialize(value.filePreviewValue, g, true); + g.writeEndObject(); + break; + } + case FILE_RENAME: { + g.writeStartObject(); + writeTag("file_rename", g); + FileRenameType.Serializer.INSTANCE.serialize(value.fileRenameValue, g, true); + g.writeEndObject(); + break; + } + case FILE_RESTORE: { + g.writeStartObject(); + writeTag("file_restore", g); + FileRestoreType.Serializer.INSTANCE.serialize(value.fileRestoreValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REVERT: { + g.writeStartObject(); + writeTag("file_revert", g); + FileRevertType.Serializer.INSTANCE.serialize(value.fileRevertValue, g, true); + g.writeEndObject(); + break; + } + case FILE_ROLLBACK_CHANGES: { + g.writeStartObject(); + writeTag("file_rollback_changes", g); + FileRollbackChangesType.Serializer.INSTANCE.serialize(value.fileRollbackChangesValue, g, true); + g.writeEndObject(); + break; + } + case FILE_SAVE_COPY_REFERENCE: { + g.writeStartObject(); + writeTag("file_save_copy_reference", g); + FileSaveCopyReferenceType.Serializer.INSTANCE.serialize(value.fileSaveCopyReferenceValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_OVERVIEW_DESCRIPTION_CHANGED: { + g.writeStartObject(); + writeTag("folder_overview_description_changed", g); + FolderOverviewDescriptionChangedType.Serializer.INSTANCE.serialize(value.folderOverviewDescriptionChangedValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_OVERVIEW_ITEM_PINNED: { + g.writeStartObject(); + writeTag("folder_overview_item_pinned", g); + FolderOverviewItemPinnedType.Serializer.INSTANCE.serialize(value.folderOverviewItemPinnedValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_OVERVIEW_ITEM_UNPINNED: { + g.writeStartObject(); + writeTag("folder_overview_item_unpinned", g); + FolderOverviewItemUnpinnedType.Serializer.INSTANCE.serialize(value.folderOverviewItemUnpinnedValue, g, true); + g.writeEndObject(); + break; + } + case OBJECT_LABEL_ADDED: { + g.writeStartObject(); + writeTag("object_label_added", g); + ObjectLabelAddedType.Serializer.INSTANCE.serialize(value.objectLabelAddedValue, g, true); + g.writeEndObject(); + break; + } + case OBJECT_LABEL_REMOVED: { + g.writeStartObject(); + writeTag("object_label_removed", g); + ObjectLabelRemovedType.Serializer.INSTANCE.serialize(value.objectLabelRemovedValue, g, true); + g.writeEndObject(); + break; + } + case OBJECT_LABEL_UPDATED_VALUE: { + g.writeStartObject(); + writeTag("object_label_updated_value", g); + ObjectLabelUpdatedValueType.Serializer.INSTANCE.serialize(value.objectLabelUpdatedValueValue, g, true); + g.writeEndObject(); + break; + } + case ORGANIZE_FOLDER_WITH_TIDY: { + g.writeStartObject(); + writeTag("organize_folder_with_tidy", g); + OrganizeFolderWithTidyType.Serializer.INSTANCE.serialize(value.organizeFolderWithTidyValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_FILE_DELETE: { + g.writeStartObject(); + writeTag("replay_file_delete", g); + ReplayFileDeleteType.Serializer.INSTANCE.serialize(value.replayFileDeleteValue, g, true); + g.writeEndObject(); + break; + } + case REWIND_FOLDER: { + g.writeStartObject(); + writeTag("rewind_folder", g); + RewindFolderType.Serializer.INSTANCE.serialize(value.rewindFolderValue, g, true); + g.writeEndObject(); + break; + } + case UNDO_NAMING_CONVENTION: { + g.writeStartObject(); + writeTag("undo_naming_convention", g); + UndoNamingConventionType.Serializer.INSTANCE.serialize(value.undoNamingConventionValue, g, true); + g.writeEndObject(); + break; + } + case UNDO_ORGANIZE_FOLDER_WITH_TIDY: { + g.writeStartObject(); + writeTag("undo_organize_folder_with_tidy", g); + UndoOrganizeFolderWithTidyType.Serializer.INSTANCE.serialize(value.undoOrganizeFolderWithTidyValue, g, true); + g.writeEndObject(); + break; + } + case USER_TAGS_ADDED: { + g.writeStartObject(); + writeTag("user_tags_added", g); + UserTagsAddedType.Serializer.INSTANCE.serialize(value.userTagsAddedValue, g, true); + g.writeEndObject(); + break; + } + case USER_TAGS_REMOVED: { + g.writeStartObject(); + writeTag("user_tags_removed", g); + UserTagsRemovedType.Serializer.INSTANCE.serialize(value.userTagsRemovedValue, g, true); + g.writeEndObject(); + break; + } + case EMAIL_INGEST_RECEIVE_FILE: { + g.writeStartObject(); + writeTag("email_ingest_receive_file", g); + EmailIngestReceiveFileType.Serializer.INSTANCE.serialize(value.emailIngestReceiveFileValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_CHANGE: { + g.writeStartObject(); + writeTag("file_request_change", g); + FileRequestChangeType.Serializer.INSTANCE.serialize(value.fileRequestChangeValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_CLOSE: { + g.writeStartObject(); + writeTag("file_request_close", g); + FileRequestCloseType.Serializer.INSTANCE.serialize(value.fileRequestCloseValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_CREATE: { + g.writeStartObject(); + writeTag("file_request_create", g); + FileRequestCreateType.Serializer.INSTANCE.serialize(value.fileRequestCreateValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_DELETE: { + g.writeStartObject(); + writeTag("file_request_delete", g); + FileRequestDeleteType.Serializer.INSTANCE.serialize(value.fileRequestDeleteValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUEST_RECEIVE_FILE: { + g.writeStartObject(); + writeTag("file_request_receive_file", g); + FileRequestReceiveFileType.Serializer.INSTANCE.serialize(value.fileRequestReceiveFileValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_ADD_EXTERNAL_ID: { + g.writeStartObject(); + writeTag("group_add_external_id", g); + GroupAddExternalIdType.Serializer.INSTANCE.serialize(value.groupAddExternalIdValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_ADD_MEMBER: { + g.writeStartObject(); + writeTag("group_add_member", g); + GroupAddMemberType.Serializer.INSTANCE.serialize(value.groupAddMemberValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CHANGE_EXTERNAL_ID: { + g.writeStartObject(); + writeTag("group_change_external_id", g); + GroupChangeExternalIdType.Serializer.INSTANCE.serialize(value.groupChangeExternalIdValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CHANGE_MANAGEMENT_TYPE: { + g.writeStartObject(); + writeTag("group_change_management_type", g); + GroupChangeManagementTypeType.Serializer.INSTANCE.serialize(value.groupChangeManagementTypeValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CHANGE_MEMBER_ROLE: { + g.writeStartObject(); + writeTag("group_change_member_role", g); + GroupChangeMemberRoleType.Serializer.INSTANCE.serialize(value.groupChangeMemberRoleValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_CREATE: { + g.writeStartObject(); + writeTag("group_create", g); + GroupCreateType.Serializer.INSTANCE.serialize(value.groupCreateValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_DELETE: { + g.writeStartObject(); + writeTag("group_delete", g); + GroupDeleteType.Serializer.INSTANCE.serialize(value.groupDeleteValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_DESCRIPTION_UPDATED: { + g.writeStartObject(); + writeTag("group_description_updated", g); + GroupDescriptionUpdatedType.Serializer.INSTANCE.serialize(value.groupDescriptionUpdatedValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_JOIN_POLICY_UPDATED: { + g.writeStartObject(); + writeTag("group_join_policy_updated", g); + GroupJoinPolicyUpdatedType.Serializer.INSTANCE.serialize(value.groupJoinPolicyUpdatedValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_MOVED: { + g.writeStartObject(); + writeTag("group_moved", g); + GroupMovedType.Serializer.INSTANCE.serialize(value.groupMovedValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_REMOVE_EXTERNAL_ID: { + g.writeStartObject(); + writeTag("group_remove_external_id", g); + GroupRemoveExternalIdType.Serializer.INSTANCE.serialize(value.groupRemoveExternalIdValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_REMOVE_MEMBER: { + g.writeStartObject(); + writeTag("group_remove_member", g); + GroupRemoveMemberType.Serializer.INSTANCE.serialize(value.groupRemoveMemberValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_RENAME: { + g.writeStartObject(); + writeTag("group_rename", g); + GroupRenameType.Serializer.INSTANCE.serialize(value.groupRenameValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_LOCK_OR_UNLOCKED: { + g.writeStartObject(); + writeTag("account_lock_or_unlocked", g); + AccountLockOrUnlockedType.Serializer.INSTANCE.serialize(value.accountLockOrUnlockedValue, g, true); + g.writeEndObject(); + break; + } + case EMM_ERROR: { + g.writeStartObject(); + writeTag("emm_error", g); + EmmErrorType.Serializer.INSTANCE.serialize(value.emmErrorValue, g, true); + g.writeEndObject(); + break; + } + case GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS: { + g.writeStartObject(); + writeTag("guest_admin_signed_in_via_trusted_teams", g); + GuestAdminSignedInViaTrustedTeamsType.Serializer.INSTANCE.serialize(value.guestAdminSignedInViaTrustedTeamsValue, g, true); + g.writeEndObject(); + break; + } + case GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS: { + g.writeStartObject(); + writeTag("guest_admin_signed_out_via_trusted_teams", g); + GuestAdminSignedOutViaTrustedTeamsType.Serializer.INSTANCE.serialize(value.guestAdminSignedOutViaTrustedTeamsValue, g, true); + g.writeEndObject(); + break; + } + case LOGIN_FAIL: { + g.writeStartObject(); + writeTag("login_fail", g); + LoginFailType.Serializer.INSTANCE.serialize(value.loginFailValue, g, true); + g.writeEndObject(); + break; + } + case LOGIN_SUCCESS: { + g.writeStartObject(); + writeTag("login_success", g); + LoginSuccessType.Serializer.INSTANCE.serialize(value.loginSuccessValue, g, true); + g.writeEndObject(); + break; + } + case LOGOUT: { + g.writeStartObject(); + writeTag("logout", g); + LogoutType.Serializer.INSTANCE.serialize(value.logoutValue, g, true); + g.writeEndObject(); + break; + } + case RESELLER_SUPPORT_SESSION_END: { + g.writeStartObject(); + writeTag("reseller_support_session_end", g); + ResellerSupportSessionEndType.Serializer.INSTANCE.serialize(value.resellerSupportSessionEndValue, g, true); + g.writeEndObject(); + break; + } + case RESELLER_SUPPORT_SESSION_START: { + g.writeStartObject(); + writeTag("reseller_support_session_start", g); + ResellerSupportSessionStartType.Serializer.INSTANCE.serialize(value.resellerSupportSessionStartValue, g, true); + g.writeEndObject(); + break; + } + case SIGN_IN_AS_SESSION_END: { + g.writeStartObject(); + writeTag("sign_in_as_session_end", g); + SignInAsSessionEndType.Serializer.INSTANCE.serialize(value.signInAsSessionEndValue, g, true); + g.writeEndObject(); + break; + } + case SIGN_IN_AS_SESSION_START: { + g.writeStartObject(); + writeTag("sign_in_as_session_start", g); + SignInAsSessionStartType.Serializer.INSTANCE.serialize(value.signInAsSessionStartValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ERROR: { + g.writeStartObject(); + writeTag("sso_error", g); + SsoErrorType.Serializer.INSTANCE.serialize(value.ssoErrorValue, g, true); + g.writeEndObject(); + break; + } + case BACKUP_ADMIN_INVITATION_SENT: { + g.writeStartObject(); + writeTag("backup_admin_invitation_sent", g); + BackupAdminInvitationSentType.Serializer.INSTANCE.serialize(value.backupAdminInvitationSentValue, g, true); + g.writeEndObject(); + break; + } + case BACKUP_INVITATION_OPENED: { + g.writeStartObject(); + writeTag("backup_invitation_opened", g); + BackupInvitationOpenedType.Serializer.INSTANCE.serialize(value.backupInvitationOpenedValue, g, true); + g.writeEndObject(); + break; + } + case CREATE_TEAM_INVITE_LINK: { + g.writeStartObject(); + writeTag("create_team_invite_link", g); + CreateTeamInviteLinkType.Serializer.INSTANCE.serialize(value.createTeamInviteLinkValue, g, true); + g.writeEndObject(); + break; + } + case DELETE_TEAM_INVITE_LINK: { + g.writeStartObject(); + writeTag("delete_team_invite_link", g); + DeleteTeamInviteLinkType.Serializer.INSTANCE.serialize(value.deleteTeamInviteLinkValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_ADD_EXTERNAL_ID: { + g.writeStartObject(); + writeTag("member_add_external_id", g); + MemberAddExternalIdType.Serializer.INSTANCE.serialize(value.memberAddExternalIdValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_ADD_NAME: { + g.writeStartObject(); + writeTag("member_add_name", g); + MemberAddNameType.Serializer.INSTANCE.serialize(value.memberAddNameValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_ADMIN_ROLE: { + g.writeStartObject(); + writeTag("member_change_admin_role", g); + MemberChangeAdminRoleType.Serializer.INSTANCE.serialize(value.memberChangeAdminRoleValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_EMAIL: { + g.writeStartObject(); + writeTag("member_change_email", g); + MemberChangeEmailType.Serializer.INSTANCE.serialize(value.memberChangeEmailValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_EXTERNAL_ID: { + g.writeStartObject(); + writeTag("member_change_external_id", g); + MemberChangeExternalIdType.Serializer.INSTANCE.serialize(value.memberChangeExternalIdValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_MEMBERSHIP_TYPE: { + g.writeStartObject(); + writeTag("member_change_membership_type", g); + MemberChangeMembershipTypeType.Serializer.INSTANCE.serialize(value.memberChangeMembershipTypeValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_NAME: { + g.writeStartObject(); + writeTag("member_change_name", g); + MemberChangeNameType.Serializer.INSTANCE.serialize(value.memberChangeNameValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_RESELLER_ROLE: { + g.writeStartObject(); + writeTag("member_change_reseller_role", g); + MemberChangeResellerRoleType.Serializer.INSTANCE.serialize(value.memberChangeResellerRoleValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_CHANGE_STATUS: { + g.writeStartObject(); + writeTag("member_change_status", g); + MemberChangeStatusType.Serializer.INSTANCE.serialize(value.memberChangeStatusValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_DELETE_MANUAL_CONTACTS: { + g.writeStartObject(); + writeTag("member_delete_manual_contacts", g); + MemberDeleteManualContactsType.Serializer.INSTANCE.serialize(value.memberDeleteManualContactsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_DELETE_PROFILE_PHOTO: { + g.writeStartObject(); + writeTag("member_delete_profile_photo", g); + MemberDeleteProfilePhotoType.Serializer.INSTANCE.serialize(value.memberDeleteProfilePhotoValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS: { + g.writeStartObject(); + writeTag("member_permanently_delete_account_contents", g); + MemberPermanentlyDeleteAccountContentsType.Serializer.INSTANCE.serialize(value.memberPermanentlyDeleteAccountContentsValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_REMOVE_EXTERNAL_ID: { + g.writeStartObject(); + writeTag("member_remove_external_id", g); + MemberRemoveExternalIdType.Serializer.INSTANCE.serialize(value.memberRemoveExternalIdValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SET_PROFILE_PHOTO: { + g.writeStartObject(); + writeTag("member_set_profile_photo", g); + MemberSetProfilePhotoType.Serializer.INSTANCE.serialize(value.memberSetProfilePhotoValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA: { + g.writeStartObject(); + writeTag("member_space_limits_add_custom_quota", g); + MemberSpaceLimitsAddCustomQuotaType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsAddCustomQuotaValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA: { + g.writeStartObject(); + writeTag("member_space_limits_change_custom_quota", g); + MemberSpaceLimitsChangeCustomQuotaType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangeCustomQuotaValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_STATUS: { + g.writeStartObject(); + writeTag("member_space_limits_change_status", g); + MemberSpaceLimitsChangeStatusType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangeStatusValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA: { + g.writeStartObject(); + writeTag("member_space_limits_remove_custom_quota", g); + MemberSpaceLimitsRemoveCustomQuotaType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsRemoveCustomQuotaValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SUGGEST: { + g.writeStartObject(); + writeTag("member_suggest", g); + MemberSuggestType.Serializer.INSTANCE.serialize(value.memberSuggestValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_TRANSFER_ACCOUNT_CONTENTS: { + g.writeStartObject(); + writeTag("member_transfer_account_contents", g); + MemberTransferAccountContentsType.Serializer.INSTANCE.serialize(value.memberTransferAccountContentsValue, g, true); + g.writeEndObject(); + break; + } + case PENDING_SECONDARY_EMAIL_ADDED: { + g.writeStartObject(); + writeTag("pending_secondary_email_added", g); + PendingSecondaryEmailAddedType.Serializer.INSTANCE.serialize(value.pendingSecondaryEmailAddedValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_EMAIL_DELETED: { + g.writeStartObject(); + writeTag("secondary_email_deleted", g); + SecondaryEmailDeletedType.Serializer.INSTANCE.serialize(value.secondaryEmailDeletedValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_EMAIL_VERIFIED: { + g.writeStartObject(); + writeTag("secondary_email_verified", g); + SecondaryEmailVerifiedType.Serializer.INSTANCE.serialize(value.secondaryEmailVerifiedValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_MAILS_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("secondary_mails_policy_changed", g); + SecondaryMailsPolicyChangedType.Serializer.INSTANCE.serialize(value.secondaryMailsPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_ADD_PAGE: { + g.writeStartObject(); + writeTag("binder_add_page", g); + BinderAddPageType.Serializer.INSTANCE.serialize(value.binderAddPageValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_ADD_SECTION: { + g.writeStartObject(); + writeTag("binder_add_section", g); + BinderAddSectionType.Serializer.INSTANCE.serialize(value.binderAddSectionValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REMOVE_PAGE: { + g.writeStartObject(); + writeTag("binder_remove_page", g); + BinderRemovePageType.Serializer.INSTANCE.serialize(value.binderRemovePageValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REMOVE_SECTION: { + g.writeStartObject(); + writeTag("binder_remove_section", g); + BinderRemoveSectionType.Serializer.INSTANCE.serialize(value.binderRemoveSectionValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_RENAME_PAGE: { + g.writeStartObject(); + writeTag("binder_rename_page", g); + BinderRenamePageType.Serializer.INSTANCE.serialize(value.binderRenamePageValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_RENAME_SECTION: { + g.writeStartObject(); + writeTag("binder_rename_section", g); + BinderRenameSectionType.Serializer.INSTANCE.serialize(value.binderRenameSectionValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REORDER_PAGE: { + g.writeStartObject(); + writeTag("binder_reorder_page", g); + BinderReorderPageType.Serializer.INSTANCE.serialize(value.binderReorderPageValue, g, true); + g.writeEndObject(); + break; + } + case BINDER_REORDER_SECTION: { + g.writeStartObject(); + writeTag("binder_reorder_section", g); + BinderReorderSectionType.Serializer.INSTANCE.serialize(value.binderReorderSectionValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_ADD_MEMBER: { + g.writeStartObject(); + writeTag("paper_content_add_member", g); + PaperContentAddMemberType.Serializer.INSTANCE.serialize(value.paperContentAddMemberValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_ADD_TO_FOLDER: { + g.writeStartObject(); + writeTag("paper_content_add_to_folder", g); + PaperContentAddToFolderType.Serializer.INSTANCE.serialize(value.paperContentAddToFolderValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_ARCHIVE: { + g.writeStartObject(); + writeTag("paper_content_archive", g); + PaperContentArchiveType.Serializer.INSTANCE.serialize(value.paperContentArchiveValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_CREATE: { + g.writeStartObject(); + writeTag("paper_content_create", g); + PaperContentCreateType.Serializer.INSTANCE.serialize(value.paperContentCreateValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_PERMANENTLY_DELETE: { + g.writeStartObject(); + writeTag("paper_content_permanently_delete", g); + PaperContentPermanentlyDeleteType.Serializer.INSTANCE.serialize(value.paperContentPermanentlyDeleteValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_REMOVE_FROM_FOLDER: { + g.writeStartObject(); + writeTag("paper_content_remove_from_folder", g); + PaperContentRemoveFromFolderType.Serializer.INSTANCE.serialize(value.paperContentRemoveFromFolderValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_REMOVE_MEMBER: { + g.writeStartObject(); + writeTag("paper_content_remove_member", g); + PaperContentRemoveMemberType.Serializer.INSTANCE.serialize(value.paperContentRemoveMemberValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_RENAME: { + g.writeStartObject(); + writeTag("paper_content_rename", g); + PaperContentRenameType.Serializer.INSTANCE.serialize(value.paperContentRenameValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CONTENT_RESTORE: { + g.writeStartObject(); + writeTag("paper_content_restore", g); + PaperContentRestoreType.Serializer.INSTANCE.serialize(value.paperContentRestoreValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_ADD_COMMENT: { + g.writeStartObject(); + writeTag("paper_doc_add_comment", g); + PaperDocAddCommentType.Serializer.INSTANCE.serialize(value.paperDocAddCommentValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_CHANGE_MEMBER_ROLE: { + g.writeStartObject(); + writeTag("paper_doc_change_member_role", g); + PaperDocChangeMemberRoleType.Serializer.INSTANCE.serialize(value.paperDocChangeMemberRoleValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_CHANGE_SHARING_POLICY: { + g.writeStartObject(); + writeTag("paper_doc_change_sharing_policy", g); + PaperDocChangeSharingPolicyType.Serializer.INSTANCE.serialize(value.paperDocChangeSharingPolicyValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_CHANGE_SUBSCRIPTION: { + g.writeStartObject(); + writeTag("paper_doc_change_subscription", g); + PaperDocChangeSubscriptionType.Serializer.INSTANCE.serialize(value.paperDocChangeSubscriptionValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_DELETED: { + g.writeStartObject(); + writeTag("paper_doc_deleted", g); + PaperDocDeletedType.Serializer.INSTANCE.serialize(value.paperDocDeletedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_DELETE_COMMENT: { + g.writeStartObject(); + writeTag("paper_doc_delete_comment", g); + PaperDocDeleteCommentType.Serializer.INSTANCE.serialize(value.paperDocDeleteCommentValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_DOWNLOAD: { + g.writeStartObject(); + writeTag("paper_doc_download", g); + PaperDocDownloadType.Serializer.INSTANCE.serialize(value.paperDocDownloadValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_EDIT: { + g.writeStartObject(); + writeTag("paper_doc_edit", g); + PaperDocEditType.Serializer.INSTANCE.serialize(value.paperDocEditValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_EDIT_COMMENT: { + g.writeStartObject(); + writeTag("paper_doc_edit_comment", g); + PaperDocEditCommentType.Serializer.INSTANCE.serialize(value.paperDocEditCommentValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_FOLLOWED: { + g.writeStartObject(); + writeTag("paper_doc_followed", g); + PaperDocFollowedType.Serializer.INSTANCE.serialize(value.paperDocFollowedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_MENTION: { + g.writeStartObject(); + writeTag("paper_doc_mention", g); + PaperDocMentionType.Serializer.INSTANCE.serialize(value.paperDocMentionValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_OWNERSHIP_CHANGED: { + g.writeStartObject(); + writeTag("paper_doc_ownership_changed", g); + PaperDocOwnershipChangedType.Serializer.INSTANCE.serialize(value.paperDocOwnershipChangedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_REQUEST_ACCESS: { + g.writeStartObject(); + writeTag("paper_doc_request_access", g); + PaperDocRequestAccessType.Serializer.INSTANCE.serialize(value.paperDocRequestAccessValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_RESOLVE_COMMENT: { + g.writeStartObject(); + writeTag("paper_doc_resolve_comment", g); + PaperDocResolveCommentType.Serializer.INSTANCE.serialize(value.paperDocResolveCommentValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_REVERT: { + g.writeStartObject(); + writeTag("paper_doc_revert", g); + PaperDocRevertType.Serializer.INSTANCE.serialize(value.paperDocRevertValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_SLACK_SHARE: { + g.writeStartObject(); + writeTag("paper_doc_slack_share", g); + PaperDocSlackShareType.Serializer.INSTANCE.serialize(value.paperDocSlackShareValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_TEAM_INVITE: { + g.writeStartObject(); + writeTag("paper_doc_team_invite", g); + PaperDocTeamInviteType.Serializer.INSTANCE.serialize(value.paperDocTeamInviteValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_TRASHED: { + g.writeStartObject(); + writeTag("paper_doc_trashed", g); + PaperDocTrashedType.Serializer.INSTANCE.serialize(value.paperDocTrashedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_UNRESOLVE_COMMENT: { + g.writeStartObject(); + writeTag("paper_doc_unresolve_comment", g); + PaperDocUnresolveCommentType.Serializer.INSTANCE.serialize(value.paperDocUnresolveCommentValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_UNTRASHED: { + g.writeStartObject(); + writeTag("paper_doc_untrashed", g); + PaperDocUntrashedType.Serializer.INSTANCE.serialize(value.paperDocUntrashedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DOC_VIEW: { + g.writeStartObject(); + writeTag("paper_doc_view", g); + PaperDocViewType.Serializer.INSTANCE.serialize(value.paperDocViewValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_EXTERNAL_VIEW_ALLOW: { + g.writeStartObject(); + writeTag("paper_external_view_allow", g); + PaperExternalViewAllowType.Serializer.INSTANCE.serialize(value.paperExternalViewAllowValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_EXTERNAL_VIEW_DEFAULT_TEAM: { + g.writeStartObject(); + writeTag("paper_external_view_default_team", g); + PaperExternalViewDefaultTeamType.Serializer.INSTANCE.serialize(value.paperExternalViewDefaultTeamValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_EXTERNAL_VIEW_FORBID: { + g.writeStartObject(); + writeTag("paper_external_view_forbid", g); + PaperExternalViewForbidType.Serializer.INSTANCE.serialize(value.paperExternalViewForbidValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_CHANGE_SUBSCRIPTION: { + g.writeStartObject(); + writeTag("paper_folder_change_subscription", g); + PaperFolderChangeSubscriptionType.Serializer.INSTANCE.serialize(value.paperFolderChangeSubscriptionValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_DELETED: { + g.writeStartObject(); + writeTag("paper_folder_deleted", g); + PaperFolderDeletedType.Serializer.INSTANCE.serialize(value.paperFolderDeletedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_FOLLOWED: { + g.writeStartObject(); + writeTag("paper_folder_followed", g); + PaperFolderFollowedType.Serializer.INSTANCE.serialize(value.paperFolderFollowedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_FOLDER_TEAM_INVITE: { + g.writeStartObject(); + writeTag("paper_folder_team_invite", g); + PaperFolderTeamInviteType.Serializer.INSTANCE.serialize(value.paperFolderTeamInviteValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_CHANGE_PERMISSION: { + g.writeStartObject(); + writeTag("paper_published_link_change_permission", g); + PaperPublishedLinkChangePermissionType.Serializer.INSTANCE.serialize(value.paperPublishedLinkChangePermissionValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_CREATE: { + g.writeStartObject(); + writeTag("paper_published_link_create", g); + PaperPublishedLinkCreateType.Serializer.INSTANCE.serialize(value.paperPublishedLinkCreateValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_DISABLED: { + g.writeStartObject(); + writeTag("paper_published_link_disabled", g); + PaperPublishedLinkDisabledType.Serializer.INSTANCE.serialize(value.paperPublishedLinkDisabledValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_PUBLISHED_LINK_VIEW: { + g.writeStartObject(); + writeTag("paper_published_link_view", g); + PaperPublishedLinkViewType.Serializer.INSTANCE.serialize(value.paperPublishedLinkViewValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_CHANGE: { + g.writeStartObject(); + writeTag("password_change", g); + PasswordChangeType.Serializer.INSTANCE.serialize(value.passwordChangeValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_RESET: { + g.writeStartObject(); + writeTag("password_reset", g); + PasswordResetType.Serializer.INSTANCE.serialize(value.passwordResetValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_RESET_ALL: { + g.writeStartObject(); + writeTag("password_reset_all", g); + PasswordResetAllType.Serializer.INSTANCE.serialize(value.passwordResetAllValue, g, true); + g.writeEndObject(); + break; + } + case CLASSIFICATION_CREATE_REPORT: { + g.writeStartObject(); + writeTag("classification_create_report", g); + ClassificationCreateReportType.Serializer.INSTANCE.serialize(value.classificationCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case CLASSIFICATION_CREATE_REPORT_FAIL: { + g.writeStartObject(); + writeTag("classification_create_report_fail", g); + ClassificationCreateReportFailType.Serializer.INSTANCE.serialize(value.classificationCreateReportFailValue, g, true); + g.writeEndObject(); + break; + } + case EMM_CREATE_EXCEPTIONS_REPORT: { + g.writeStartObject(); + writeTag("emm_create_exceptions_report", g); + EmmCreateExceptionsReportType.Serializer.INSTANCE.serialize(value.emmCreateExceptionsReportValue, g, true); + g.writeEndObject(); + break; + } + case EMM_CREATE_USAGE_REPORT: { + g.writeStartObject(); + writeTag("emm_create_usage_report", g); + EmmCreateUsageReportType.Serializer.INSTANCE.serialize(value.emmCreateUsageReportValue, g, true); + g.writeEndObject(); + break; + } + case EXPORT_MEMBERS_REPORT: { + g.writeStartObject(); + writeTag("export_members_report", g); + ExportMembersReportType.Serializer.INSTANCE.serialize(value.exportMembersReportValue, g, true); + g.writeEndObject(); + break; + } + case EXPORT_MEMBERS_REPORT_FAIL: { + g.writeStartObject(); + writeTag("export_members_report_fail", g); + ExportMembersReportFailType.Serializer.INSTANCE.serialize(value.exportMembersReportFailValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_SHARING_CREATE_REPORT: { + g.writeStartObject(); + writeTag("external_sharing_create_report", g); + ExternalSharingCreateReportType.Serializer.INSTANCE.serialize(value.externalSharingCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_SHARING_REPORT_FAILED: { + g.writeStartObject(); + writeTag("external_sharing_report_failed", g); + ExternalSharingReportFailedType.Serializer.INSTANCE.serialize(value.externalSharingReportFailedValue, g, true); + g.writeEndObject(); + break; + } + case NO_EXPIRATION_LINK_GEN_CREATE_REPORT: { + g.writeStartObject(); + writeTag("no_expiration_link_gen_create_report", g); + NoExpirationLinkGenCreateReportType.Serializer.INSTANCE.serialize(value.noExpirationLinkGenCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case NO_EXPIRATION_LINK_GEN_REPORT_FAILED: { + g.writeStartObject(); + writeTag("no_expiration_link_gen_report_failed", g); + NoExpirationLinkGenReportFailedType.Serializer.INSTANCE.serialize(value.noExpirationLinkGenReportFailedValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_GEN_CREATE_REPORT: { + g.writeStartObject(); + writeTag("no_password_link_gen_create_report", g); + NoPasswordLinkGenCreateReportType.Serializer.INSTANCE.serialize(value.noPasswordLinkGenCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_GEN_REPORT_FAILED: { + g.writeStartObject(); + writeTag("no_password_link_gen_report_failed", g); + NoPasswordLinkGenReportFailedType.Serializer.INSTANCE.serialize(value.noPasswordLinkGenReportFailedValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_VIEW_CREATE_REPORT: { + g.writeStartObject(); + writeTag("no_password_link_view_create_report", g); + NoPasswordLinkViewCreateReportType.Serializer.INSTANCE.serialize(value.noPasswordLinkViewCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case NO_PASSWORD_LINK_VIEW_REPORT_FAILED: { + g.writeStartObject(); + writeTag("no_password_link_view_report_failed", g); + NoPasswordLinkViewReportFailedType.Serializer.INSTANCE.serialize(value.noPasswordLinkViewReportFailedValue, g, true); + g.writeEndObject(); + break; + } + case OUTDATED_LINK_VIEW_CREATE_REPORT: { + g.writeStartObject(); + writeTag("outdated_link_view_create_report", g); + OutdatedLinkViewCreateReportType.Serializer.INSTANCE.serialize(value.outdatedLinkViewCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case OUTDATED_LINK_VIEW_REPORT_FAILED: { + g.writeStartObject(); + writeTag("outdated_link_view_report_failed", g); + OutdatedLinkViewReportFailedType.Serializer.INSTANCE.serialize(value.outdatedLinkViewReportFailedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_ADMIN_EXPORT_START: { + g.writeStartObject(); + writeTag("paper_admin_export_start", g); + PaperAdminExportStartType.Serializer.INSTANCE.serialize(value.paperAdminExportStartValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_ALERT_CREATE_REPORT: { + g.writeStartObject(); + writeTag("ransomware_alert_create_report", g); + RansomwareAlertCreateReportType.Serializer.INSTANCE.serialize(value.ransomwareAlertCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case RANSOMWARE_ALERT_CREATE_REPORT_FAILED: { + g.writeStartObject(); + writeTag("ransomware_alert_create_report_failed", g); + RansomwareAlertCreateReportFailedType.Serializer.INSTANCE.serialize(value.ransomwareAlertCreateReportFailedValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT: { + g.writeStartObject(); + writeTag("smart_sync_create_admin_privilege_report", g); + SmartSyncCreateAdminPrivilegeReportType.Serializer.INSTANCE.serialize(value.smartSyncCreateAdminPrivilegeReportValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ACTIVITY_CREATE_REPORT: { + g.writeStartObject(); + writeTag("team_activity_create_report", g); + TeamActivityCreateReportType.Serializer.INSTANCE.serialize(value.teamActivityCreateReportValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_ACTIVITY_CREATE_REPORT_FAIL: { + g.writeStartObject(); + writeTag("team_activity_create_report_fail", g); + TeamActivityCreateReportFailType.Serializer.INSTANCE.serialize(value.teamActivityCreateReportFailValue, g, true); + g.writeEndObject(); + break; + } + case COLLECTION_SHARE: { + g.writeStartObject(); + writeTag("collection_share", g); + CollectionShareType.Serializer.INSTANCE.serialize(value.collectionShareValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_FILE_ADD: { + g.writeStartObject(); + writeTag("file_transfers_file_add", g); + FileTransfersFileAddType.Serializer.INSTANCE.serialize(value.fileTransfersFileAddValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_DELETE: { + g.writeStartObject(); + writeTag("file_transfers_transfer_delete", g); + FileTransfersTransferDeleteType.Serializer.INSTANCE.serialize(value.fileTransfersTransferDeleteValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_DOWNLOAD: { + g.writeStartObject(); + writeTag("file_transfers_transfer_download", g); + FileTransfersTransferDownloadType.Serializer.INSTANCE.serialize(value.fileTransfersTransferDownloadValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_SEND: { + g.writeStartObject(); + writeTag("file_transfers_transfer_send", g); + FileTransfersTransferSendType.Serializer.INSTANCE.serialize(value.fileTransfersTransferSendValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_TRANSFER_VIEW: { + g.writeStartObject(); + writeTag("file_transfers_transfer_view", g); + FileTransfersTransferViewType.Serializer.INSTANCE.serialize(value.fileTransfersTransferViewValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_ACL_INVITE_ONLY: { + g.writeStartObject(); + writeTag("note_acl_invite_only", g); + NoteAclInviteOnlyType.Serializer.INSTANCE.serialize(value.noteAclInviteOnlyValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_ACL_LINK: { + g.writeStartObject(); + writeTag("note_acl_link", g); + NoteAclLinkType.Serializer.INSTANCE.serialize(value.noteAclLinkValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_ACL_TEAM_LINK: { + g.writeStartObject(); + writeTag("note_acl_team_link", g); + NoteAclTeamLinkType.Serializer.INSTANCE.serialize(value.noteAclTeamLinkValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_SHARED: { + g.writeStartObject(); + writeTag("note_shared", g); + NoteSharedType.Serializer.INSTANCE.serialize(value.noteSharedValue, g, true); + g.writeEndObject(); + break; + } + case NOTE_SHARE_RECEIVE: { + g.writeStartObject(); + writeTag("note_share_receive", g); + NoteShareReceiveType.Serializer.INSTANCE.serialize(value.noteShareReceiveValue, g, true); + g.writeEndObject(); + break; + } + case OPEN_NOTE_SHARED: { + g.writeStartObject(); + writeTag("open_note_shared", g); + OpenNoteSharedType.Serializer.INSTANCE.serialize(value.openNoteSharedValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_FILE_SHARED_LINK_CREATED: { + g.writeStartObject(); + writeTag("replay_file_shared_link_created", g); + ReplayFileSharedLinkCreatedType.Serializer.INSTANCE.serialize(value.replayFileSharedLinkCreatedValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_FILE_SHARED_LINK_MODIFIED: { + g.writeStartObject(); + writeTag("replay_file_shared_link_modified", g); + ReplayFileSharedLinkModifiedType.Serializer.INSTANCE.serialize(value.replayFileSharedLinkModifiedValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_PROJECT_TEAM_ADD: { + g.writeStartObject(); + writeTag("replay_project_team_add", g); + ReplayProjectTeamAddType.Serializer.INSTANCE.serialize(value.replayProjectTeamAddValue, g, true); + g.writeEndObject(); + break; + } + case REPLAY_PROJECT_TEAM_DELETE: { + g.writeStartObject(); + writeTag("replay_project_team_delete", g); + ReplayProjectTeamDeleteType.Serializer.INSTANCE.serialize(value.replayProjectTeamDeleteValue, g, true); + g.writeEndObject(); + break; + } + case SF_ADD_GROUP: { + g.writeStartObject(); + writeTag("sf_add_group", g); + SfAddGroupType.Serializer.INSTANCE.serialize(value.sfAddGroupValue, g, true); + g.writeEndObject(); + break; + } + case SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS: { + g.writeStartObject(); + writeTag("sf_allow_non_members_to_view_shared_links", g); + SfAllowNonMembersToViewSharedLinksType.Serializer.INSTANCE.serialize(value.sfAllowNonMembersToViewSharedLinksValue, g, true); + g.writeEndObject(); + break; + } + case SF_EXTERNAL_INVITE_WARN: { + g.writeStartObject(); + writeTag("sf_external_invite_warn", g); + SfExternalInviteWarnType.Serializer.INSTANCE.serialize(value.sfExternalInviteWarnValue, g, true); + g.writeEndObject(); + break; + } + case SF_FB_INVITE: { + g.writeStartObject(); + writeTag("sf_fb_invite", g); + SfFbInviteType.Serializer.INSTANCE.serialize(value.sfFbInviteValue, g, true); + g.writeEndObject(); + break; + } + case SF_FB_INVITE_CHANGE_ROLE: { + g.writeStartObject(); + writeTag("sf_fb_invite_change_role", g); + SfFbInviteChangeRoleType.Serializer.INSTANCE.serialize(value.sfFbInviteChangeRoleValue, g, true); + g.writeEndObject(); + break; + } + case SF_FB_UNINVITE: { + g.writeStartObject(); + writeTag("sf_fb_uninvite", g); + SfFbUninviteType.Serializer.INSTANCE.serialize(value.sfFbUninviteValue, g, true); + g.writeEndObject(); + break; + } + case SF_INVITE_GROUP: { + g.writeStartObject(); + writeTag("sf_invite_group", g); + SfInviteGroupType.Serializer.INSTANCE.serialize(value.sfInviteGroupValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_GRANT_ACCESS: { + g.writeStartObject(); + writeTag("sf_team_grant_access", g); + SfTeamGrantAccessType.Serializer.INSTANCE.serialize(value.sfTeamGrantAccessValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_INVITE: { + g.writeStartObject(); + writeTag("sf_team_invite", g); + SfTeamInviteType.Serializer.INSTANCE.serialize(value.sfTeamInviteValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_INVITE_CHANGE_ROLE: { + g.writeStartObject(); + writeTag("sf_team_invite_change_role", g); + SfTeamInviteChangeRoleType.Serializer.INSTANCE.serialize(value.sfTeamInviteChangeRoleValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_JOIN: { + g.writeStartObject(); + writeTag("sf_team_join", g); + SfTeamJoinType.Serializer.INSTANCE.serialize(value.sfTeamJoinValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_JOIN_FROM_OOB_LINK: { + g.writeStartObject(); + writeTag("sf_team_join_from_oob_link", g); + SfTeamJoinFromOobLinkType.Serializer.INSTANCE.serialize(value.sfTeamJoinFromOobLinkValue, g, true); + g.writeEndObject(); + break; + } + case SF_TEAM_UNINVITE: { + g.writeStartObject(); + writeTag("sf_team_uninvite", g); + SfTeamUninviteType.Serializer.INSTANCE.serialize(value.sfTeamUninviteValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_INVITEES: { + g.writeStartObject(); + writeTag("shared_content_add_invitees", g); + SharedContentAddInviteesType.Serializer.INSTANCE.serialize(value.sharedContentAddInviteesValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_LINK_EXPIRY: { + g.writeStartObject(); + writeTag("shared_content_add_link_expiry", g); + SharedContentAddLinkExpiryType.Serializer.INSTANCE.serialize(value.sharedContentAddLinkExpiryValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_LINK_PASSWORD: { + g.writeStartObject(); + writeTag("shared_content_add_link_password", g); + SharedContentAddLinkPasswordType.Serializer.INSTANCE.serialize(value.sharedContentAddLinkPasswordValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_ADD_MEMBER: { + g.writeStartObject(); + writeTag("shared_content_add_member", g); + SharedContentAddMemberType.Serializer.INSTANCE.serialize(value.sharedContentAddMemberValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY: { + g.writeStartObject(); + writeTag("shared_content_change_downloads_policy", g); + SharedContentChangeDownloadsPolicyType.Serializer.INSTANCE.serialize(value.sharedContentChangeDownloadsPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_INVITEE_ROLE: { + g.writeStartObject(); + writeTag("shared_content_change_invitee_role", g); + SharedContentChangeInviteeRoleType.Serializer.INSTANCE.serialize(value.sharedContentChangeInviteeRoleValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_LINK_AUDIENCE: { + g.writeStartObject(); + writeTag("shared_content_change_link_audience", g); + SharedContentChangeLinkAudienceType.Serializer.INSTANCE.serialize(value.sharedContentChangeLinkAudienceValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_LINK_EXPIRY: { + g.writeStartObject(); + writeTag("shared_content_change_link_expiry", g); + SharedContentChangeLinkExpiryType.Serializer.INSTANCE.serialize(value.sharedContentChangeLinkExpiryValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_LINK_PASSWORD: { + g.writeStartObject(); + writeTag("shared_content_change_link_password", g); + SharedContentChangeLinkPasswordType.Serializer.INSTANCE.serialize(value.sharedContentChangeLinkPasswordValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_MEMBER_ROLE: { + g.writeStartObject(); + writeTag("shared_content_change_member_role", g); + SharedContentChangeMemberRoleType.Serializer.INSTANCE.serialize(value.sharedContentChangeMemberRoleValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY: { + g.writeStartObject(); + writeTag("shared_content_change_viewer_info_policy", g); + SharedContentChangeViewerInfoPolicyType.Serializer.INSTANCE.serialize(value.sharedContentChangeViewerInfoPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_CLAIM_INVITATION: { + g.writeStartObject(); + writeTag("shared_content_claim_invitation", g); + SharedContentClaimInvitationType.Serializer.INSTANCE.serialize(value.sharedContentClaimInvitationValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_COPY: { + g.writeStartObject(); + writeTag("shared_content_copy", g); + SharedContentCopyType.Serializer.INSTANCE.serialize(value.sharedContentCopyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_DOWNLOAD: { + g.writeStartObject(); + writeTag("shared_content_download", g); + SharedContentDownloadType.Serializer.INSTANCE.serialize(value.sharedContentDownloadValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_RELINQUISH_MEMBERSHIP: { + g.writeStartObject(); + writeTag("shared_content_relinquish_membership", g); + SharedContentRelinquishMembershipType.Serializer.INSTANCE.serialize(value.sharedContentRelinquishMembershipValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_INVITEES: { + g.writeStartObject(); + writeTag("shared_content_remove_invitees", g); + SharedContentRemoveInviteesType.Serializer.INSTANCE.serialize(value.sharedContentRemoveInviteesValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_LINK_EXPIRY: { + g.writeStartObject(); + writeTag("shared_content_remove_link_expiry", g); + SharedContentRemoveLinkExpiryType.Serializer.INSTANCE.serialize(value.sharedContentRemoveLinkExpiryValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_LINK_PASSWORD: { + g.writeStartObject(); + writeTag("shared_content_remove_link_password", g); + SharedContentRemoveLinkPasswordType.Serializer.INSTANCE.serialize(value.sharedContentRemoveLinkPasswordValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REMOVE_MEMBER: { + g.writeStartObject(); + writeTag("shared_content_remove_member", g); + SharedContentRemoveMemberType.Serializer.INSTANCE.serialize(value.sharedContentRemoveMemberValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_REQUEST_ACCESS: { + g.writeStartObject(); + writeTag("shared_content_request_access", g); + SharedContentRequestAccessType.Serializer.INSTANCE.serialize(value.sharedContentRequestAccessValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_RESTORE_INVITEES: { + g.writeStartObject(); + writeTag("shared_content_restore_invitees", g); + SharedContentRestoreInviteesType.Serializer.INSTANCE.serialize(value.sharedContentRestoreInviteesValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_RESTORE_MEMBER: { + g.writeStartObject(); + writeTag("shared_content_restore_member", g); + SharedContentRestoreMemberType.Serializer.INSTANCE.serialize(value.sharedContentRestoreMemberValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_UNSHARE: { + g.writeStartObject(); + writeTag("shared_content_unshare", g); + SharedContentUnshareType.Serializer.INSTANCE.serialize(value.sharedContentUnshareValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_CONTENT_VIEW: { + g.writeStartObject(); + writeTag("shared_content_view", g); + SharedContentViewType.Serializer.INSTANCE.serialize(value.sharedContentViewValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_LINK_POLICY: { + g.writeStartObject(); + writeTag("shared_folder_change_link_policy", g); + SharedFolderChangeLinkPolicyType.Serializer.INSTANCE.serialize(value.sharedFolderChangeLinkPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY: { + g.writeStartObject(); + writeTag("shared_folder_change_members_inheritance_policy", g); + SharedFolderChangeMembersInheritancePolicyType.Serializer.INSTANCE.serialize(value.sharedFolderChangeMembersInheritancePolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY: { + g.writeStartObject(); + writeTag("shared_folder_change_members_management_policy", g); + SharedFolderChangeMembersManagementPolicyType.Serializer.INSTANCE.serialize(value.sharedFolderChangeMembersManagementPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_POLICY: { + g.writeStartObject(); + writeTag("shared_folder_change_members_policy", g); + SharedFolderChangeMembersPolicyType.Serializer.INSTANCE.serialize(value.sharedFolderChangeMembersPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_CREATE: { + g.writeStartObject(); + writeTag("shared_folder_create", g); + SharedFolderCreateType.Serializer.INSTANCE.serialize(value.sharedFolderCreateValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_DECLINE_INVITATION: { + g.writeStartObject(); + writeTag("shared_folder_decline_invitation", g); + SharedFolderDeclineInvitationType.Serializer.INSTANCE.serialize(value.sharedFolderDeclineInvitationValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_MOUNT: { + g.writeStartObject(); + writeTag("shared_folder_mount", g); + SharedFolderMountType.Serializer.INSTANCE.serialize(value.sharedFolderMountValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_NEST: { + g.writeStartObject(); + writeTag("shared_folder_nest", g); + SharedFolderNestType.Serializer.INSTANCE.serialize(value.sharedFolderNestValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_TRANSFER_OWNERSHIP: { + g.writeStartObject(); + writeTag("shared_folder_transfer_ownership", g); + SharedFolderTransferOwnershipType.Serializer.INSTANCE.serialize(value.sharedFolderTransferOwnershipValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_FOLDER_UNMOUNT: { + g.writeStartObject(); + writeTag("shared_folder_unmount", g); + SharedFolderUnmountType.Serializer.INSTANCE.serialize(value.sharedFolderUnmountValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_ADD_EXPIRY: { + g.writeStartObject(); + writeTag("shared_link_add_expiry", g); + SharedLinkAddExpiryType.Serializer.INSTANCE.serialize(value.sharedLinkAddExpiryValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_CHANGE_EXPIRY: { + g.writeStartObject(); + writeTag("shared_link_change_expiry", g); + SharedLinkChangeExpiryType.Serializer.INSTANCE.serialize(value.sharedLinkChangeExpiryValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_CHANGE_VISIBILITY: { + g.writeStartObject(); + writeTag("shared_link_change_visibility", g); + SharedLinkChangeVisibilityType.Serializer.INSTANCE.serialize(value.sharedLinkChangeVisibilityValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_COPY: { + g.writeStartObject(); + writeTag("shared_link_copy", g); + SharedLinkCopyType.Serializer.INSTANCE.serialize(value.sharedLinkCopyValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_CREATE: { + g.writeStartObject(); + writeTag("shared_link_create", g); + SharedLinkCreateType.Serializer.INSTANCE.serialize(value.sharedLinkCreateValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_DISABLE: { + g.writeStartObject(); + writeTag("shared_link_disable", g); + SharedLinkDisableType.Serializer.INSTANCE.serialize(value.sharedLinkDisableValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_DOWNLOAD: { + g.writeStartObject(); + writeTag("shared_link_download", g); + SharedLinkDownloadType.Serializer.INSTANCE.serialize(value.sharedLinkDownloadValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_REMOVE_EXPIRY: { + g.writeStartObject(); + writeTag("shared_link_remove_expiry", g); + SharedLinkRemoveExpiryType.Serializer.INSTANCE.serialize(value.sharedLinkRemoveExpiryValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ADD_EXPIRATION: { + g.writeStartObject(); + writeTag("shared_link_settings_add_expiration", g); + SharedLinkSettingsAddExpirationType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAddExpirationValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ADD_PASSWORD: { + g.writeStartObject(); + writeTag("shared_link_settings_add_password", g); + SharedLinkSettingsAddPasswordType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAddPasswordValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED: { + g.writeStartObject(); + writeTag("shared_link_settings_allow_download_disabled", g); + SharedLinkSettingsAllowDownloadDisabledType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAllowDownloadDisabledValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED: { + g.writeStartObject(); + writeTag("shared_link_settings_allow_download_enabled", g); + SharedLinkSettingsAllowDownloadEnabledType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsAllowDownloadEnabledValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_AUDIENCE: { + g.writeStartObject(); + writeTag("shared_link_settings_change_audience", g); + SharedLinkSettingsChangeAudienceType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsChangeAudienceValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_EXPIRATION: { + g.writeStartObject(); + writeTag("shared_link_settings_change_expiration", g); + SharedLinkSettingsChangeExpirationType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsChangeExpirationValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_PASSWORD: { + g.writeStartObject(); + writeTag("shared_link_settings_change_password", g); + SharedLinkSettingsChangePasswordType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsChangePasswordValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_REMOVE_EXPIRATION: { + g.writeStartObject(); + writeTag("shared_link_settings_remove_expiration", g); + SharedLinkSettingsRemoveExpirationType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsRemoveExpirationValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SETTINGS_REMOVE_PASSWORD: { + g.writeStartObject(); + writeTag("shared_link_settings_remove_password", g); + SharedLinkSettingsRemovePasswordType.Serializer.INSTANCE.serialize(value.sharedLinkSettingsRemovePasswordValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_SHARE: { + g.writeStartObject(); + writeTag("shared_link_share", g); + SharedLinkShareType.Serializer.INSTANCE.serialize(value.sharedLinkShareValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_LINK_VIEW: { + g.writeStartObject(); + writeTag("shared_link_view", g); + SharedLinkViewType.Serializer.INSTANCE.serialize(value.sharedLinkViewValue, g, true); + g.writeEndObject(); + break; + } + case SHARED_NOTE_OPENED: { + g.writeStartObject(); + writeTag("shared_note_opened", g); + SharedNoteOpenedType.Serializer.INSTANCE.serialize(value.sharedNoteOpenedValue, g, true); + g.writeEndObject(); + break; + } + case SHMODEL_DISABLE_DOWNLOADS: { + g.writeStartObject(); + writeTag("shmodel_disable_downloads", g); + ShmodelDisableDownloadsType.Serializer.INSTANCE.serialize(value.shmodelDisableDownloadsValue, g, true); + g.writeEndObject(); + break; + } + case SHMODEL_ENABLE_DOWNLOADS: { + g.writeStartObject(); + writeTag("shmodel_enable_downloads", g); + ShmodelEnableDownloadsType.Serializer.INSTANCE.serialize(value.shmodelEnableDownloadsValue, g, true); + g.writeEndObject(); + break; + } + case SHMODEL_GROUP_SHARE: { + g.writeStartObject(); + writeTag("shmodel_group_share", g); + ShmodelGroupShareType.Serializer.INSTANCE.serialize(value.shmodelGroupShareValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_ACCESS_GRANTED: { + g.writeStartObject(); + writeTag("showcase_access_granted", g); + ShowcaseAccessGrantedType.Serializer.INSTANCE.serialize(value.showcaseAccessGrantedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_ADD_MEMBER: { + g.writeStartObject(); + writeTag("showcase_add_member", g); + ShowcaseAddMemberType.Serializer.INSTANCE.serialize(value.showcaseAddMemberValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_ARCHIVED: { + g.writeStartObject(); + writeTag("showcase_archived", g); + ShowcaseArchivedType.Serializer.INSTANCE.serialize(value.showcaseArchivedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CREATED: { + g.writeStartObject(); + writeTag("showcase_created", g); + ShowcaseCreatedType.Serializer.INSTANCE.serialize(value.showcaseCreatedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_DELETE_COMMENT: { + g.writeStartObject(); + writeTag("showcase_delete_comment", g); + ShowcaseDeleteCommentType.Serializer.INSTANCE.serialize(value.showcaseDeleteCommentValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_EDITED: { + g.writeStartObject(); + writeTag("showcase_edited", g); + ShowcaseEditedType.Serializer.INSTANCE.serialize(value.showcaseEditedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_EDIT_COMMENT: { + g.writeStartObject(); + writeTag("showcase_edit_comment", g); + ShowcaseEditCommentType.Serializer.INSTANCE.serialize(value.showcaseEditCommentValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_ADDED: { + g.writeStartObject(); + writeTag("showcase_file_added", g); + ShowcaseFileAddedType.Serializer.INSTANCE.serialize(value.showcaseFileAddedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_DOWNLOAD: { + g.writeStartObject(); + writeTag("showcase_file_download", g); + ShowcaseFileDownloadType.Serializer.INSTANCE.serialize(value.showcaseFileDownloadValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_REMOVED: { + g.writeStartObject(); + writeTag("showcase_file_removed", g); + ShowcaseFileRemovedType.Serializer.INSTANCE.serialize(value.showcaseFileRemovedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_FILE_VIEW: { + g.writeStartObject(); + writeTag("showcase_file_view", g); + ShowcaseFileViewType.Serializer.INSTANCE.serialize(value.showcaseFileViewValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_PERMANENTLY_DELETED: { + g.writeStartObject(); + writeTag("showcase_permanently_deleted", g); + ShowcasePermanentlyDeletedType.Serializer.INSTANCE.serialize(value.showcasePermanentlyDeletedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_POST_COMMENT: { + g.writeStartObject(); + writeTag("showcase_post_comment", g); + ShowcasePostCommentType.Serializer.INSTANCE.serialize(value.showcasePostCommentValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_REMOVE_MEMBER: { + g.writeStartObject(); + writeTag("showcase_remove_member", g); + ShowcaseRemoveMemberType.Serializer.INSTANCE.serialize(value.showcaseRemoveMemberValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_RENAMED: { + g.writeStartObject(); + writeTag("showcase_renamed", g); + ShowcaseRenamedType.Serializer.INSTANCE.serialize(value.showcaseRenamedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_REQUEST_ACCESS: { + g.writeStartObject(); + writeTag("showcase_request_access", g); + ShowcaseRequestAccessType.Serializer.INSTANCE.serialize(value.showcaseRequestAccessValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_RESOLVE_COMMENT: { + g.writeStartObject(); + writeTag("showcase_resolve_comment", g); + ShowcaseResolveCommentType.Serializer.INSTANCE.serialize(value.showcaseResolveCommentValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_RESTORED: { + g.writeStartObject(); + writeTag("showcase_restored", g); + ShowcaseRestoredType.Serializer.INSTANCE.serialize(value.showcaseRestoredValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_TRASHED: { + g.writeStartObject(); + writeTag("showcase_trashed", g); + ShowcaseTrashedType.Serializer.INSTANCE.serialize(value.showcaseTrashedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_TRASHED_DEPRECATED: { + g.writeStartObject(); + writeTag("showcase_trashed_deprecated", g); + ShowcaseTrashedDeprecatedType.Serializer.INSTANCE.serialize(value.showcaseTrashedDeprecatedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_UNRESOLVE_COMMENT: { + g.writeStartObject(); + writeTag("showcase_unresolve_comment", g); + ShowcaseUnresolveCommentType.Serializer.INSTANCE.serialize(value.showcaseUnresolveCommentValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_UNTRASHED: { + g.writeStartObject(); + writeTag("showcase_untrashed", g); + ShowcaseUntrashedType.Serializer.INSTANCE.serialize(value.showcaseUntrashedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_UNTRASHED_DEPRECATED: { + g.writeStartObject(); + writeTag("showcase_untrashed_deprecated", g); + ShowcaseUntrashedDeprecatedType.Serializer.INSTANCE.serialize(value.showcaseUntrashedDeprecatedValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_VIEW: { + g.writeStartObject(); + writeTag("showcase_view", g); + ShowcaseViewType.Serializer.INSTANCE.serialize(value.showcaseViewValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ADD_CERT: { + g.writeStartObject(); + writeTag("sso_add_cert", g); + SsoAddCertType.Serializer.INSTANCE.serialize(value.ssoAddCertValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ADD_LOGIN_URL: { + g.writeStartObject(); + writeTag("sso_add_login_url", g); + SsoAddLoginUrlType.Serializer.INSTANCE.serialize(value.ssoAddLoginUrlValue, g, true); + g.writeEndObject(); + break; + } + case SSO_ADD_LOGOUT_URL: { + g.writeStartObject(); + writeTag("sso_add_logout_url", g); + SsoAddLogoutUrlType.Serializer.INSTANCE.serialize(value.ssoAddLogoutUrlValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_CERT: { + g.writeStartObject(); + writeTag("sso_change_cert", g); + SsoChangeCertType.Serializer.INSTANCE.serialize(value.ssoChangeCertValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_LOGIN_URL: { + g.writeStartObject(); + writeTag("sso_change_login_url", g); + SsoChangeLoginUrlType.Serializer.INSTANCE.serialize(value.ssoChangeLoginUrlValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_LOGOUT_URL: { + g.writeStartObject(); + writeTag("sso_change_logout_url", g); + SsoChangeLogoutUrlType.Serializer.INSTANCE.serialize(value.ssoChangeLogoutUrlValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_SAML_IDENTITY_MODE: { + g.writeStartObject(); + writeTag("sso_change_saml_identity_mode", g); + SsoChangeSamlIdentityModeType.Serializer.INSTANCE.serialize(value.ssoChangeSamlIdentityModeValue, g, true); + g.writeEndObject(); + break; + } + case SSO_REMOVE_CERT: { + g.writeStartObject(); + writeTag("sso_remove_cert", g); + SsoRemoveCertType.Serializer.INSTANCE.serialize(value.ssoRemoveCertValue, g, true); + g.writeEndObject(); + break; + } + case SSO_REMOVE_LOGIN_URL: { + g.writeStartObject(); + writeTag("sso_remove_login_url", g); + SsoRemoveLoginUrlType.Serializer.INSTANCE.serialize(value.ssoRemoveLoginUrlValue, g, true); + g.writeEndObject(); + break; + } + case SSO_REMOVE_LOGOUT_URL: { + g.writeStartObject(); + writeTag("sso_remove_logout_url", g); + SsoRemoveLogoutUrlType.Serializer.INSTANCE.serialize(value.ssoRemoveLogoutUrlValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_CHANGE_STATUS: { + g.writeStartObject(); + writeTag("team_folder_change_status", g); + TeamFolderChangeStatusType.Serializer.INSTANCE.serialize(value.teamFolderChangeStatusValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_CREATE: { + g.writeStartObject(); + writeTag("team_folder_create", g); + TeamFolderCreateType.Serializer.INSTANCE.serialize(value.teamFolderCreateValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_DOWNGRADE: { + g.writeStartObject(); + writeTag("team_folder_downgrade", g); + TeamFolderDowngradeType.Serializer.INSTANCE.serialize(value.teamFolderDowngradeValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_PERMANENTLY_DELETE: { + g.writeStartObject(); + writeTag("team_folder_permanently_delete", g); + TeamFolderPermanentlyDeleteType.Serializer.INSTANCE.serialize(value.teamFolderPermanentlyDeleteValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_FOLDER_RENAME: { + g.writeStartObject(); + writeTag("team_folder_rename", g); + TeamFolderRenameType.Serializer.INSTANCE.serialize(value.teamFolderRenameValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED: { + g.writeStartObject(); + writeTag("team_selective_sync_settings_changed", g); + TeamSelectiveSyncSettingsChangedType.Serializer.INSTANCE.serialize(value.teamSelectiveSyncSettingsChangedValue, g, true); + g.writeEndObject(); + break; + } + case ACCOUNT_CAPTURE_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("account_capture_change_policy", g); + AccountCaptureChangePolicyType.Serializer.INSTANCE.serialize(value.accountCaptureChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case ADMIN_EMAIL_REMINDERS_CHANGED: { + g.writeStartObject(); + writeTag("admin_email_reminders_changed", g); + AdminEmailRemindersChangedType.Serializer.INSTANCE.serialize(value.adminEmailRemindersChangedValue, g, true); + g.writeEndObject(); + break; + } + case ALLOW_DOWNLOAD_DISABLED: { + g.writeStartObject(); + writeTag("allow_download_disabled", g); + AllowDownloadDisabledType.Serializer.INSTANCE.serialize(value.allowDownloadDisabledValue, g, true); + g.writeEndObject(); + break; + } + case ALLOW_DOWNLOAD_ENABLED: { + g.writeStartObject(); + writeTag("allow_download_enabled", g); + AllowDownloadEnabledType.Serializer.INSTANCE.serialize(value.allowDownloadEnabledValue, g, true); + g.writeEndObject(); + break; + } + case APP_PERMISSIONS_CHANGED: { + g.writeStartObject(); + writeTag("app_permissions_changed", g); + AppPermissionsChangedType.Serializer.INSTANCE.serialize(value.appPermissionsChangedValue, g, true); + g.writeEndObject(); + break; + } + case CAMERA_UPLOADS_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("camera_uploads_policy_changed", g); + CameraUploadsPolicyChangedType.Serializer.INSTANCE.serialize(value.cameraUploadsPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case CAPTURE_TRANSCRIPT_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("capture_transcript_policy_changed", g); + CaptureTranscriptPolicyChangedType.Serializer.INSTANCE.serialize(value.captureTranscriptPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case CLASSIFICATION_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("classification_change_policy", g); + ClassificationChangePolicyType.Serializer.INSTANCE.serialize(value.classificationChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case COMPUTER_BACKUP_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("computer_backup_policy_changed", g); + ComputerBackupPolicyChangedType.Serializer.INSTANCE.serialize(value.computerBackupPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case CONTENT_ADMINISTRATION_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("content_administration_policy_changed", g); + ContentAdministrationPolicyChangedType.Serializer.INSTANCE.serialize(value.contentAdministrationPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("data_placement_restriction_change_policy", g); + DataPlacementRestrictionChangePolicyType.Serializer.INSTANCE.serialize(value.dataPlacementRestrictionChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY: { + g.writeStartObject(); + writeTag("data_placement_restriction_satisfy_policy", g); + DataPlacementRestrictionSatisfyPolicyType.Serializer.INSTANCE.serialize(value.dataPlacementRestrictionSatisfyPolicyValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_ADD_EXCEPTION: { + g.writeStartObject(); + writeTag("device_approvals_add_exception", g); + DeviceApprovalsAddExceptionType.Serializer.INSTANCE.serialize(value.deviceApprovalsAddExceptionValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY: { + g.writeStartObject(); + writeTag("device_approvals_change_desktop_policy", g); + DeviceApprovalsChangeDesktopPolicyType.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeDesktopPolicyValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_MOBILE_POLICY: { + g.writeStartObject(); + writeTag("device_approvals_change_mobile_policy", g); + DeviceApprovalsChangeMobilePolicyType.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeMobilePolicyValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION: { + g.writeStartObject(); + writeTag("device_approvals_change_overage_action", g); + DeviceApprovalsChangeOverageActionType.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeOverageActionValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_CHANGE_UNLINK_ACTION: { + g.writeStartObject(); + writeTag("device_approvals_change_unlink_action", g); + DeviceApprovalsChangeUnlinkActionType.Serializer.INSTANCE.serialize(value.deviceApprovalsChangeUnlinkActionValue, g, true); + g.writeEndObject(); + break; + } + case DEVICE_APPROVALS_REMOVE_EXCEPTION: { + g.writeStartObject(); + writeTag("device_approvals_remove_exception", g); + DeviceApprovalsRemoveExceptionType.Serializer.INSTANCE.serialize(value.deviceApprovalsRemoveExceptionValue, g, true); + g.writeEndObject(); + break; + } + case DIRECTORY_RESTRICTIONS_ADD_MEMBERS: { + g.writeStartObject(); + writeTag("directory_restrictions_add_members", g); + DirectoryRestrictionsAddMembersType.Serializer.INSTANCE.serialize(value.directoryRestrictionsAddMembersValue, g, true); + g.writeEndObject(); + break; + } + case DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS: { + g.writeStartObject(); + writeTag("directory_restrictions_remove_members", g); + DirectoryRestrictionsRemoveMembersType.Serializer.INSTANCE.serialize(value.directoryRestrictionsRemoveMembersValue, g, true); + g.writeEndObject(); + break; + } + case DROPBOX_PASSWORDS_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("dropbox_passwords_policy_changed", g); + DropboxPasswordsPolicyChangedType.Serializer.INSTANCE.serialize(value.dropboxPasswordsPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case EMAIL_INGEST_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("email_ingest_policy_changed", g); + EmailIngestPolicyChangedType.Serializer.INSTANCE.serialize(value.emailIngestPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case EMM_ADD_EXCEPTION: { + g.writeStartObject(); + writeTag("emm_add_exception", g); + EmmAddExceptionType.Serializer.INSTANCE.serialize(value.emmAddExceptionValue, g, true); + g.writeEndObject(); + break; + } + case EMM_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("emm_change_policy", g); + EmmChangePolicyType.Serializer.INSTANCE.serialize(value.emmChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case EMM_REMOVE_EXCEPTION: { + g.writeStartObject(); + writeTag("emm_remove_exception", g); + EmmRemoveExceptionType.Serializer.INSTANCE.serialize(value.emmRemoveExceptionValue, g, true); + g.writeEndObject(); + break; + } + case EXTENDED_VERSION_HISTORY_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("extended_version_history_change_policy", g); + ExtendedVersionHistoryChangePolicyType.Serializer.INSTANCE.serialize(value.extendedVersionHistoryChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("external_drive_backup_policy_changed", g); + ExternalDriveBackupPolicyChangedType.Serializer.INSTANCE.serialize(value.externalDriveBackupPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case FILE_COMMENTS_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("file_comments_change_policy", g); + FileCommentsChangePolicyType.Serializer.INSTANCE.serialize(value.fileCommentsChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case FILE_LOCKING_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("file_locking_policy_changed", g); + FileLockingPolicyChangedType.Serializer.INSTANCE.serialize(value.fileLockingPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case FILE_PROVIDER_MIGRATION_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("file_provider_migration_policy_changed", g); + FileProviderMigrationPolicyChangedType.Serializer.INSTANCE.serialize(value.fileProviderMigrationPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUESTS_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("file_requests_change_policy", g); + FileRequestsChangePolicyType.Serializer.INSTANCE.serialize(value.fileRequestsChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUESTS_EMAILS_ENABLED: { + g.writeStartObject(); + writeTag("file_requests_emails_enabled", g); + FileRequestsEmailsEnabledType.Serializer.INSTANCE.serialize(value.fileRequestsEmailsEnabledValue, g, true); + g.writeEndObject(); + break; + } + case FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY: { + g.writeStartObject(); + writeTag("file_requests_emails_restricted_to_team_only", g); + FileRequestsEmailsRestrictedToTeamOnlyType.Serializer.INSTANCE.serialize(value.fileRequestsEmailsRestrictedToTeamOnlyValue, g, true); + g.writeEndObject(); + break; + } + case FILE_TRANSFERS_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("file_transfers_policy_changed", g); + FileTransfersPolicyChangedType.Serializer.INSTANCE.serialize(value.fileTransfersPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case FOLDER_LINK_RESTRICTION_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("folder_link_restriction_policy_changed", g); + FolderLinkRestrictionPolicyChangedType.Serializer.INSTANCE.serialize(value.folderLinkRestrictionPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case GOOGLE_SSO_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("google_sso_change_policy", g); + GoogleSsoChangePolicyType.Serializer.INSTANCE.serialize(value.googleSsoChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case GROUP_USER_MANAGEMENT_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("group_user_management_change_policy", g); + GroupUserManagementChangePolicyType.Serializer.INSTANCE.serialize(value.groupUserManagementChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case INTEGRATION_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("integration_policy_changed", g); + IntegrationPolicyChangedType.Serializer.INSTANCE.serialize(value.integrationPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("invite_acceptance_email_policy_changed", g); + InviteAcceptanceEmailPolicyChangedType.Serializer.INSTANCE.serialize(value.inviteAcceptanceEmailPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_REQUESTS_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("member_requests_change_policy", g); + MemberRequestsChangePolicyType.Serializer.INSTANCE.serialize(value.memberRequestsChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SEND_INVITE_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("member_send_invite_policy_changed", g); + MemberSendInvitePolicyChangedType.Serializer.INSTANCE.serialize(value.memberSendInvitePolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_ADD_EXCEPTION: { + g.writeStartObject(); + writeTag("member_space_limits_add_exception", g); + MemberSpaceLimitsAddExceptionType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsAddExceptionValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY: { + g.writeStartObject(); + writeTag("member_space_limits_change_caps_type_policy", g); + MemberSpaceLimitsChangeCapsTypePolicyType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangeCapsTypePolicyValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("member_space_limits_change_policy", g); + MemberSpaceLimitsChangePolicyType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION: { + g.writeStartObject(); + writeTag("member_space_limits_remove_exception", g); + MemberSpaceLimitsRemoveExceptionType.Serializer.INSTANCE.serialize(value.memberSpaceLimitsRemoveExceptionValue, g, true); + g.writeEndObject(); + break; + } + case MEMBER_SUGGESTIONS_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("member_suggestions_change_policy", g); + MemberSuggestionsChangePolicyType.Serializer.INSTANCE.serialize(value.memberSuggestionsChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("microsoft_office_addin_change_policy", g); + MicrosoftOfficeAddinChangePolicyType.Serializer.INSTANCE.serialize(value.microsoftOfficeAddinChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case NETWORK_CONTROL_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("network_control_change_policy", g); + NetworkControlChangePolicyType.Serializer.INSTANCE.serialize(value.networkControlChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_DEPLOYMENT_POLICY: { + g.writeStartObject(); + writeTag("paper_change_deployment_policy", g); + PaperChangeDeploymentPolicyType.Serializer.INSTANCE.serialize(value.paperChangeDeploymentPolicyValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_MEMBER_LINK_POLICY: { + g.writeStartObject(); + writeTag("paper_change_member_link_policy", g); + PaperChangeMemberLinkPolicyType.Serializer.INSTANCE.serialize(value.paperChangeMemberLinkPolicyValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_MEMBER_POLICY: { + g.writeStartObject(); + writeTag("paper_change_member_policy", g); + PaperChangeMemberPolicyType.Serializer.INSTANCE.serialize(value.paperChangeMemberPolicyValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("paper_change_policy", g); + PaperChangePolicyType.Serializer.INSTANCE.serialize(value.paperChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DEFAULT_FOLDER_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("paper_default_folder_policy_changed", g); + PaperDefaultFolderPolicyChangedType.Serializer.INSTANCE.serialize(value.paperDefaultFolderPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_DESKTOP_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("paper_desktop_policy_changed", g); + PaperDesktopPolicyChangedType.Serializer.INSTANCE.serialize(value.paperDesktopPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_ENABLED_USERS_GROUP_ADDITION: { + g.writeStartObject(); + writeTag("paper_enabled_users_group_addition", g); + PaperEnabledUsersGroupAdditionType.Serializer.INSTANCE.serialize(value.paperEnabledUsersGroupAdditionValue, g, true); + g.writeEndObject(); + break; + } + case PAPER_ENABLED_USERS_GROUP_REMOVAL: { + g.writeStartObject(); + writeTag("paper_enabled_users_group_removal", g); + PaperEnabledUsersGroupRemovalType.Serializer.INSTANCE.serialize(value.paperEnabledUsersGroupRemovalValue, g, true); + g.writeEndObject(); + break; + } + case PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("password_strength_requirements_change_policy", g); + PasswordStrengthRequirementsChangePolicyType.Serializer.INSTANCE.serialize(value.passwordStrengthRequirementsChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case PERMANENT_DELETE_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("permanent_delete_change_policy", g); + PermanentDeleteChangePolicyType.Serializer.INSTANCE.serialize(value.permanentDeleteChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case RESELLER_SUPPORT_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("reseller_support_change_policy", g); + ResellerSupportChangePolicyType.Serializer.INSTANCE.serialize(value.resellerSupportChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case REWIND_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("rewind_policy_changed", g); + RewindPolicyChangedType.Serializer.INSTANCE.serialize(value.rewindPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case SEND_FOR_SIGNATURE_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("send_for_signature_policy_changed", g); + SendForSignaturePolicyChangedType.Serializer.INSTANCE.serialize(value.sendForSignaturePolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_FOLDER_JOIN_POLICY: { + g.writeStartObject(); + writeTag("sharing_change_folder_join_policy", g); + SharingChangeFolderJoinPolicyType.Serializer.INSTANCE.serialize(value.sharingChangeFolderJoinPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY: { + g.writeStartObject(); + writeTag("sharing_change_link_allow_change_expiration_policy", g); + SharingChangeLinkAllowChangeExpirationPolicyType.Serializer.INSTANCE.serialize(value.sharingChangeLinkAllowChangeExpirationPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY: { + g.writeStartObject(); + writeTag("sharing_change_link_default_expiration_policy", g); + SharingChangeLinkDefaultExpirationPolicyType.Serializer.INSTANCE.serialize(value.sharingChangeLinkDefaultExpirationPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY: { + g.writeStartObject(); + writeTag("sharing_change_link_enforce_password_policy", g); + SharingChangeLinkEnforcePasswordPolicyType.Serializer.INSTANCE.serialize(value.sharingChangeLinkEnforcePasswordPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_LINK_POLICY: { + g.writeStartObject(); + writeTag("sharing_change_link_policy", g); + SharingChangeLinkPolicyType.Serializer.INSTANCE.serialize(value.sharingChangeLinkPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHARING_CHANGE_MEMBER_POLICY: { + g.writeStartObject(); + writeTag("sharing_change_member_policy", g); + SharingChangeMemberPolicyType.Serializer.INSTANCE.serialize(value.sharingChangeMemberPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CHANGE_DOWNLOAD_POLICY: { + g.writeStartObject(); + writeTag("showcase_change_download_policy", g); + ShowcaseChangeDownloadPolicyType.Serializer.INSTANCE.serialize(value.showcaseChangeDownloadPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CHANGE_ENABLED_POLICY: { + g.writeStartObject(); + writeTag("showcase_change_enabled_policy", g); + ShowcaseChangeEnabledPolicyType.Serializer.INSTANCE.serialize(value.showcaseChangeEnabledPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY: { + g.writeStartObject(); + writeTag("showcase_change_external_sharing_policy", g); + ShowcaseChangeExternalSharingPolicyType.Serializer.INSTANCE.serialize(value.showcaseChangeExternalSharingPolicyValue, g, true); + g.writeEndObject(); + break; + } + case SMARTER_SMART_SYNC_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("smarter_smart_sync_policy_changed", g); + SmarterSmartSyncPolicyChangedType.Serializer.INSTANCE.serialize(value.smarterSmartSyncPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("smart_sync_change_policy", g); + SmartSyncChangePolicyType.Serializer.INSTANCE.serialize(value.smartSyncChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_NOT_OPT_OUT: { + g.writeStartObject(); + writeTag("smart_sync_not_opt_out", g); + SmartSyncNotOptOutType.Serializer.INSTANCE.serialize(value.smartSyncNotOptOutValue, g, true); + g.writeEndObject(); + break; + } + case SMART_SYNC_OPT_OUT: { + g.writeStartObject(); + writeTag("smart_sync_opt_out", g); + SmartSyncOptOutType.Serializer.INSTANCE.serialize(value.smartSyncOptOutValue, g, true); + g.writeEndObject(); + break; + } + case SSO_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("sso_change_policy", g); + SsoChangePolicyType.Serializer.INSTANCE.serialize(value.ssoChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_BRANDING_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("team_branding_policy_changed", g); + TeamBrandingPolicyChangedType.Serializer.INSTANCE.serialize(value.teamBrandingPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_EXTENSIONS_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("team_extensions_policy_changed", g); + TeamExtensionsPolicyChangedType.Serializer.INSTANCE.serialize(value.teamExtensionsPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_SELECTIVE_SYNC_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("team_selective_sync_policy_changed", g); + TeamSelectiveSyncPolicyChangedType.Serializer.INSTANCE.serialize(value.teamSelectiveSyncPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED: { + g.writeStartObject(); + writeTag("team_sharing_whitelist_subjects_changed", g); + TeamSharingWhitelistSubjectsChangedType.Serializer.INSTANCE.serialize(value.teamSharingWhitelistSubjectsChangedValue, g, true); + g.writeEndObject(); + break; + } + case TFA_ADD_EXCEPTION: { + g.writeStartObject(); + writeTag("tfa_add_exception", g); + TfaAddExceptionType.Serializer.INSTANCE.serialize(value.tfaAddExceptionValue, g, true); + g.writeEndObject(); + break; + } + case TFA_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("tfa_change_policy", g); + TfaChangePolicyType.Serializer.INSTANCE.serialize(value.tfaChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case TFA_REMOVE_EXCEPTION: { + g.writeStartObject(); + writeTag("tfa_remove_exception", g); + TfaRemoveExceptionType.Serializer.INSTANCE.serialize(value.tfaRemoveExceptionValue, g, true); + g.writeEndObject(); + break; + } + case TWO_ACCOUNT_CHANGE_POLICY: { + g.writeStartObject(); + writeTag("two_account_change_policy", g); + TwoAccountChangePolicyType.Serializer.INSTANCE.serialize(value.twoAccountChangePolicyValue, g, true); + g.writeEndObject(); + break; + } + case VIEWER_INFO_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("viewer_info_policy_changed", g); + ViewerInfoPolicyChangedType.Serializer.INSTANCE.serialize(value.viewerInfoPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case WATERMARKING_POLICY_CHANGED: { + g.writeStartObject(); + writeTag("watermarking_policy_changed", g); + WatermarkingPolicyChangedType.Serializer.INSTANCE.serialize(value.watermarkingPolicyChangedValue, g, true); + g.writeEndObject(); + break; + } + case WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT: { + g.writeStartObject(); + writeTag("web_sessions_change_active_session_limit", g); + WebSessionsChangeActiveSessionLimitType.Serializer.INSTANCE.serialize(value.webSessionsChangeActiveSessionLimitValue, g, true); + g.writeEndObject(); + break; + } + case WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY: { + g.writeStartObject(); + writeTag("web_sessions_change_fixed_length_policy", g); + WebSessionsChangeFixedLengthPolicyType.Serializer.INSTANCE.serialize(value.webSessionsChangeFixedLengthPolicyValue, g, true); + g.writeEndObject(); + break; + } + case WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY: { + g.writeStartObject(); + writeTag("web_sessions_change_idle_length_policy", g); + WebSessionsChangeIdleLengthPolicyType.Serializer.INSTANCE.serialize(value.webSessionsChangeIdleLengthPolicyValue, g, true); + g.writeEndObject(); + break; + } + case DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL: { + g.writeStartObject(); + writeTag("data_residency_migration_request_successful", g); + DataResidencyMigrationRequestSuccessfulType.Serializer.INSTANCE.serialize(value.dataResidencyMigrationRequestSuccessfulValue, g, true); + g.writeEndObject(); + break; + } + case DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL: { + g.writeStartObject(); + writeTag("data_residency_migration_request_unsuccessful", g); + DataResidencyMigrationRequestUnsuccessfulType.Serializer.INSTANCE.serialize(value.dataResidencyMigrationRequestUnsuccessfulValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_FROM: { + g.writeStartObject(); + writeTag("team_merge_from", g); + TeamMergeFromType.Serializer.INSTANCE.serialize(value.teamMergeFromValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_TO: { + g.writeStartObject(); + writeTag("team_merge_to", g); + TeamMergeToType.Serializer.INSTANCE.serialize(value.teamMergeToValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_ADD_BACKGROUND: { + g.writeStartObject(); + writeTag("team_profile_add_background", g); + TeamProfileAddBackgroundType.Serializer.INSTANCE.serialize(value.teamProfileAddBackgroundValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_ADD_LOGO: { + g.writeStartObject(); + writeTag("team_profile_add_logo", g); + TeamProfileAddLogoType.Serializer.INSTANCE.serialize(value.teamProfileAddLogoValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_BACKGROUND: { + g.writeStartObject(); + writeTag("team_profile_change_background", g); + TeamProfileChangeBackgroundType.Serializer.INSTANCE.serialize(value.teamProfileChangeBackgroundValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE: { + g.writeStartObject(); + writeTag("team_profile_change_default_language", g); + TeamProfileChangeDefaultLanguageType.Serializer.INSTANCE.serialize(value.teamProfileChangeDefaultLanguageValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_LOGO: { + g.writeStartObject(); + writeTag("team_profile_change_logo", g); + TeamProfileChangeLogoType.Serializer.INSTANCE.serialize(value.teamProfileChangeLogoValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_CHANGE_NAME: { + g.writeStartObject(); + writeTag("team_profile_change_name", g); + TeamProfileChangeNameType.Serializer.INSTANCE.serialize(value.teamProfileChangeNameValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_REMOVE_BACKGROUND: { + g.writeStartObject(); + writeTag("team_profile_remove_background", g); + TeamProfileRemoveBackgroundType.Serializer.INSTANCE.serialize(value.teamProfileRemoveBackgroundValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_PROFILE_REMOVE_LOGO: { + g.writeStartObject(); + writeTag("team_profile_remove_logo", g); + TeamProfileRemoveLogoType.Serializer.INSTANCE.serialize(value.teamProfileRemoveLogoValue, g, true); + g.writeEndObject(); + break; + } + case TFA_ADD_BACKUP_PHONE: { + g.writeStartObject(); + writeTag("tfa_add_backup_phone", g); + TfaAddBackupPhoneType.Serializer.INSTANCE.serialize(value.tfaAddBackupPhoneValue, g, true); + g.writeEndObject(); + break; + } + case TFA_ADD_SECURITY_KEY: { + g.writeStartObject(); + writeTag("tfa_add_security_key", g); + TfaAddSecurityKeyType.Serializer.INSTANCE.serialize(value.tfaAddSecurityKeyValue, g, true); + g.writeEndObject(); + break; + } + case TFA_CHANGE_BACKUP_PHONE: { + g.writeStartObject(); + writeTag("tfa_change_backup_phone", g); + TfaChangeBackupPhoneType.Serializer.INSTANCE.serialize(value.tfaChangeBackupPhoneValue, g, true); + g.writeEndObject(); + break; + } + case TFA_CHANGE_STATUS: { + g.writeStartObject(); + writeTag("tfa_change_status", g); + TfaChangeStatusType.Serializer.INSTANCE.serialize(value.tfaChangeStatusValue, g, true); + g.writeEndObject(); + break; + } + case TFA_REMOVE_BACKUP_PHONE: { + g.writeStartObject(); + writeTag("tfa_remove_backup_phone", g); + TfaRemoveBackupPhoneType.Serializer.INSTANCE.serialize(value.tfaRemoveBackupPhoneValue, g, true); + g.writeEndObject(); + break; + } + case TFA_REMOVE_SECURITY_KEY: { + g.writeStartObject(); + writeTag("tfa_remove_security_key", g); + TfaRemoveSecurityKeyType.Serializer.INSTANCE.serialize(value.tfaRemoveSecurityKeyValue, g, true); + g.writeEndObject(); + break; + } + case TFA_RESET: { + g.writeStartObject(); + writeTag("tfa_reset", g); + TfaResetType.Serializer.INSTANCE.serialize(value.tfaResetValue, g, true); + g.writeEndObject(); + break; + } + case CHANGED_ENTERPRISE_ADMIN_ROLE: { + g.writeStartObject(); + writeTag("changed_enterprise_admin_role", g); + ChangedEnterpriseAdminRoleType.Serializer.INSTANCE.serialize(value.changedEnterpriseAdminRoleValue, g, true); + g.writeEndObject(); + break; + } + case CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS: { + g.writeStartObject(); + writeTag("changed_enterprise_connected_team_status", g); + ChangedEnterpriseConnectedTeamStatusType.Serializer.INSTANCE.serialize(value.changedEnterpriseConnectedTeamStatusValue, g, true); + g.writeEndObject(); + break; + } + case ENDED_ENTERPRISE_ADMIN_SESSION: { + g.writeStartObject(); + writeTag("ended_enterprise_admin_session", g); + EndedEnterpriseAdminSessionType.Serializer.INSTANCE.serialize(value.endedEnterpriseAdminSessionValue, g, true); + g.writeEndObject(); + break; + } + case ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED: { + g.writeStartObject(); + writeTag("ended_enterprise_admin_session_deprecated", g); + EndedEnterpriseAdminSessionDeprecatedType.Serializer.INSTANCE.serialize(value.endedEnterpriseAdminSessionDeprecatedValue, g, true); + g.writeEndObject(); + break; + } + case ENTERPRISE_SETTINGS_LOCKING: { + g.writeStartObject(); + writeTag("enterprise_settings_locking", g); + EnterpriseSettingsLockingType.Serializer.INSTANCE.serialize(value.enterpriseSettingsLockingValue, g, true); + g.writeEndObject(); + break; + } + case GUEST_ADMIN_CHANGE_STATUS: { + g.writeStartObject(); + writeTag("guest_admin_change_status", g); + GuestAdminChangeStatusType.Serializer.INSTANCE.serialize(value.guestAdminChangeStatusValue, g, true); + g.writeEndObject(); + break; + } + case STARTED_ENTERPRISE_ADMIN_SESSION: { + g.writeStartObject(); + writeTag("started_enterprise_admin_session", g); + StartedEnterpriseAdminSessionType.Serializer.INSTANCE.serialize(value.startedEnterpriseAdminSessionValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED: { + g.writeStartObject(); + writeTag("team_merge_request_accepted", g); + TeamMergeRequestAcceptedType.Serializer.INSTANCE.serialize(value.teamMergeRequestAcceptedValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_accepted_shown_to_primary_team", g); + TeamMergeRequestAcceptedShownToPrimaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestAcceptedShownToPrimaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_accepted_shown_to_secondary_team", g); + TeamMergeRequestAcceptedShownToSecondaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestAcceptedShownToSecondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_AUTO_CANCELED: { + g.writeStartObject(); + writeTag("team_merge_request_auto_canceled", g); + TeamMergeRequestAutoCanceledType.Serializer.INSTANCE.serialize(value.teamMergeRequestAutoCanceledValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_CANCELED: { + g.writeStartObject(); + writeTag("team_merge_request_canceled", g); + TeamMergeRequestCanceledType.Serializer.INSTANCE.serialize(value.teamMergeRequestCanceledValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_canceled_shown_to_primary_team", g); + TeamMergeRequestCanceledShownToPrimaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestCanceledShownToPrimaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_canceled_shown_to_secondary_team", g); + TeamMergeRequestCanceledShownToSecondaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestCanceledShownToSecondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED: { + g.writeStartObject(); + writeTag("team_merge_request_expired", g); + TeamMergeRequestExpiredType.Serializer.INSTANCE.serialize(value.teamMergeRequestExpiredValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_expired_shown_to_primary_team", g); + TeamMergeRequestExpiredShownToPrimaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestExpiredShownToPrimaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_expired_shown_to_secondary_team", g); + TeamMergeRequestExpiredShownToSecondaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestExpiredShownToSecondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_rejected_shown_to_primary_team", g); + TeamMergeRequestRejectedShownToPrimaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestRejectedShownToPrimaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_rejected_shown_to_secondary_team", g); + TeamMergeRequestRejectedShownToSecondaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestRejectedShownToSecondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REMINDER: { + g.writeStartObject(); + writeTag("team_merge_request_reminder", g); + TeamMergeRequestReminderType.Serializer.INSTANCE.serialize(value.teamMergeRequestReminderValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_reminder_shown_to_primary_team", g); + TeamMergeRequestReminderShownToPrimaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestReminderShownToPrimaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_reminder_shown_to_secondary_team", g); + TeamMergeRequestReminderShownToSecondaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestReminderShownToSecondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_REVOKED: { + g.writeStartObject(); + writeTag("team_merge_request_revoked", g); + TeamMergeRequestRevokedType.Serializer.INSTANCE.serialize(value.teamMergeRequestRevokedValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_sent_shown_to_primary_team", g); + TeamMergeRequestSentShownToPrimaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestSentShownToPrimaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("team_merge_request_sent_shown_to_secondary_team", g); + TeamMergeRequestSentShownToSecondaryTeamType.Serializer.INSTANCE.serialize(value.teamMergeRequestSentShownToSecondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public EventType deserialize(JsonParser p) throws IOException, JsonParseException { + EventType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admin_alerting_alert_state_changed".equals(tag)) { + AdminAlertingAlertStateChangedType fieldValue = null; + fieldValue = AdminAlertingAlertStateChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.adminAlertingAlertStateChanged(fieldValue); + } + else if ("admin_alerting_changed_alert_config".equals(tag)) { + AdminAlertingChangedAlertConfigType fieldValue = null; + fieldValue = AdminAlertingChangedAlertConfigType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.adminAlertingChangedAlertConfig(fieldValue); + } + else if ("admin_alerting_triggered_alert".equals(tag)) { + AdminAlertingTriggeredAlertType fieldValue = null; + fieldValue = AdminAlertingTriggeredAlertType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.adminAlertingTriggeredAlert(fieldValue); + } + else if ("ransomware_restore_process_completed".equals(tag)) { + RansomwareRestoreProcessCompletedType fieldValue = null; + fieldValue = RansomwareRestoreProcessCompletedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ransomwareRestoreProcessCompleted(fieldValue); + } + else if ("ransomware_restore_process_started".equals(tag)) { + RansomwareRestoreProcessStartedType fieldValue = null; + fieldValue = RansomwareRestoreProcessStartedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ransomwareRestoreProcessStarted(fieldValue); + } + else if ("app_blocked_by_permissions".equals(tag)) { + AppBlockedByPermissionsType fieldValue = null; + fieldValue = AppBlockedByPermissionsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.appBlockedByPermissions(fieldValue); + } + else if ("app_link_team".equals(tag)) { + AppLinkTeamType fieldValue = null; + fieldValue = AppLinkTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.appLinkTeam(fieldValue); + } + else if ("app_link_user".equals(tag)) { + AppLinkUserType fieldValue = null; + fieldValue = AppLinkUserType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.appLinkUser(fieldValue); + } + else if ("app_unlink_team".equals(tag)) { + AppUnlinkTeamType fieldValue = null; + fieldValue = AppUnlinkTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.appUnlinkTeam(fieldValue); + } + else if ("app_unlink_user".equals(tag)) { + AppUnlinkUserType fieldValue = null; + fieldValue = AppUnlinkUserType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.appUnlinkUser(fieldValue); + } + else if ("integration_connected".equals(tag)) { + IntegrationConnectedType fieldValue = null; + fieldValue = IntegrationConnectedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.integrationConnected(fieldValue); + } + else if ("integration_disconnected".equals(tag)) { + IntegrationDisconnectedType fieldValue = null; + fieldValue = IntegrationDisconnectedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.integrationDisconnected(fieldValue); + } + else if ("file_add_comment".equals(tag)) { + FileAddCommentType fieldValue = null; + fieldValue = FileAddCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileAddComment(fieldValue); + } + else if ("file_change_comment_subscription".equals(tag)) { + FileChangeCommentSubscriptionType fieldValue = null; + fieldValue = FileChangeCommentSubscriptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileChangeCommentSubscription(fieldValue); + } + else if ("file_delete_comment".equals(tag)) { + FileDeleteCommentType fieldValue = null; + fieldValue = FileDeleteCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileDeleteComment(fieldValue); + } + else if ("file_edit_comment".equals(tag)) { + FileEditCommentType fieldValue = null; + fieldValue = FileEditCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileEditComment(fieldValue); + } + else if ("file_like_comment".equals(tag)) { + FileLikeCommentType fieldValue = null; + fieldValue = FileLikeCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileLikeComment(fieldValue); + } + else if ("file_resolve_comment".equals(tag)) { + FileResolveCommentType fieldValue = null; + fieldValue = FileResolveCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileResolveComment(fieldValue); + } + else if ("file_unlike_comment".equals(tag)) { + FileUnlikeCommentType fieldValue = null; + fieldValue = FileUnlikeCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileUnlikeComment(fieldValue); + } + else if ("file_unresolve_comment".equals(tag)) { + FileUnresolveCommentType fieldValue = null; + fieldValue = FileUnresolveCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileUnresolveComment(fieldValue); + } + else if ("governance_policy_add_folders".equals(tag)) { + GovernancePolicyAddFoldersType fieldValue = null; + fieldValue = GovernancePolicyAddFoldersType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyAddFolders(fieldValue); + } + else if ("governance_policy_add_folder_failed".equals(tag)) { + GovernancePolicyAddFolderFailedType fieldValue = null; + fieldValue = GovernancePolicyAddFolderFailedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyAddFolderFailed(fieldValue); + } + else if ("governance_policy_content_disposed".equals(tag)) { + GovernancePolicyContentDisposedType fieldValue = null; + fieldValue = GovernancePolicyContentDisposedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyContentDisposed(fieldValue); + } + else if ("governance_policy_create".equals(tag)) { + GovernancePolicyCreateType fieldValue = null; + fieldValue = GovernancePolicyCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyCreate(fieldValue); + } + else if ("governance_policy_delete".equals(tag)) { + GovernancePolicyDeleteType fieldValue = null; + fieldValue = GovernancePolicyDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyDelete(fieldValue); + } + else if ("governance_policy_edit_details".equals(tag)) { + GovernancePolicyEditDetailsType fieldValue = null; + fieldValue = GovernancePolicyEditDetailsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyEditDetails(fieldValue); + } + else if ("governance_policy_edit_duration".equals(tag)) { + GovernancePolicyEditDurationType fieldValue = null; + fieldValue = GovernancePolicyEditDurationType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyEditDuration(fieldValue); + } + else if ("governance_policy_export_created".equals(tag)) { + GovernancePolicyExportCreatedType fieldValue = null; + fieldValue = GovernancePolicyExportCreatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyExportCreated(fieldValue); + } + else if ("governance_policy_export_removed".equals(tag)) { + GovernancePolicyExportRemovedType fieldValue = null; + fieldValue = GovernancePolicyExportRemovedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyExportRemoved(fieldValue); + } + else if ("governance_policy_remove_folders".equals(tag)) { + GovernancePolicyRemoveFoldersType fieldValue = null; + fieldValue = GovernancePolicyRemoveFoldersType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyRemoveFolders(fieldValue); + } + else if ("governance_policy_report_created".equals(tag)) { + GovernancePolicyReportCreatedType fieldValue = null; + fieldValue = GovernancePolicyReportCreatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyReportCreated(fieldValue); + } + else if ("governance_policy_zip_part_downloaded".equals(tag)) { + GovernancePolicyZipPartDownloadedType fieldValue = null; + fieldValue = GovernancePolicyZipPartDownloadedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.governancePolicyZipPartDownloaded(fieldValue); + } + else if ("legal_holds_activate_a_hold".equals(tag)) { + LegalHoldsActivateAHoldType fieldValue = null; + fieldValue = LegalHoldsActivateAHoldType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsActivateAHold(fieldValue); + } + else if ("legal_holds_add_members".equals(tag)) { + LegalHoldsAddMembersType fieldValue = null; + fieldValue = LegalHoldsAddMembersType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsAddMembers(fieldValue); + } + else if ("legal_holds_change_hold_details".equals(tag)) { + LegalHoldsChangeHoldDetailsType fieldValue = null; + fieldValue = LegalHoldsChangeHoldDetailsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsChangeHoldDetails(fieldValue); + } + else if ("legal_holds_change_hold_name".equals(tag)) { + LegalHoldsChangeHoldNameType fieldValue = null; + fieldValue = LegalHoldsChangeHoldNameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsChangeHoldName(fieldValue); + } + else if ("legal_holds_export_a_hold".equals(tag)) { + LegalHoldsExportAHoldType fieldValue = null; + fieldValue = LegalHoldsExportAHoldType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsExportAHold(fieldValue); + } + else if ("legal_holds_export_cancelled".equals(tag)) { + LegalHoldsExportCancelledType fieldValue = null; + fieldValue = LegalHoldsExportCancelledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsExportCancelled(fieldValue); + } + else if ("legal_holds_export_downloaded".equals(tag)) { + LegalHoldsExportDownloadedType fieldValue = null; + fieldValue = LegalHoldsExportDownloadedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsExportDownloaded(fieldValue); + } + else if ("legal_holds_export_removed".equals(tag)) { + LegalHoldsExportRemovedType fieldValue = null; + fieldValue = LegalHoldsExportRemovedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsExportRemoved(fieldValue); + } + else if ("legal_holds_release_a_hold".equals(tag)) { + LegalHoldsReleaseAHoldType fieldValue = null; + fieldValue = LegalHoldsReleaseAHoldType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsReleaseAHold(fieldValue); + } + else if ("legal_holds_remove_members".equals(tag)) { + LegalHoldsRemoveMembersType fieldValue = null; + fieldValue = LegalHoldsRemoveMembersType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsRemoveMembers(fieldValue); + } + else if ("legal_holds_report_a_hold".equals(tag)) { + LegalHoldsReportAHoldType fieldValue = null; + fieldValue = LegalHoldsReportAHoldType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.legalHoldsReportAHold(fieldValue); + } + else if ("device_change_ip_desktop".equals(tag)) { + DeviceChangeIpDesktopType fieldValue = null; + fieldValue = DeviceChangeIpDesktopType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceChangeIpDesktop(fieldValue); + } + else if ("device_change_ip_mobile".equals(tag)) { + DeviceChangeIpMobileType fieldValue = null; + fieldValue = DeviceChangeIpMobileType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceChangeIpMobile(fieldValue); + } + else if ("device_change_ip_web".equals(tag)) { + DeviceChangeIpWebType fieldValue = null; + fieldValue = DeviceChangeIpWebType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceChangeIpWeb(fieldValue); + } + else if ("device_delete_on_unlink_fail".equals(tag)) { + DeviceDeleteOnUnlinkFailType fieldValue = null; + fieldValue = DeviceDeleteOnUnlinkFailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceDeleteOnUnlinkFail(fieldValue); + } + else if ("device_delete_on_unlink_success".equals(tag)) { + DeviceDeleteOnUnlinkSuccessType fieldValue = null; + fieldValue = DeviceDeleteOnUnlinkSuccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceDeleteOnUnlinkSuccess(fieldValue); + } + else if ("device_link_fail".equals(tag)) { + DeviceLinkFailType fieldValue = null; + fieldValue = DeviceLinkFailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceLinkFail(fieldValue); + } + else if ("device_link_success".equals(tag)) { + DeviceLinkSuccessType fieldValue = null; + fieldValue = DeviceLinkSuccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceLinkSuccess(fieldValue); + } + else if ("device_management_disabled".equals(tag)) { + DeviceManagementDisabledType fieldValue = null; + fieldValue = DeviceManagementDisabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceManagementDisabled(fieldValue); + } + else if ("device_management_enabled".equals(tag)) { + DeviceManagementEnabledType fieldValue = null; + fieldValue = DeviceManagementEnabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceManagementEnabled(fieldValue); + } + else if ("device_sync_backup_status_changed".equals(tag)) { + DeviceSyncBackupStatusChangedType fieldValue = null; + fieldValue = DeviceSyncBackupStatusChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceSyncBackupStatusChanged(fieldValue); + } + else if ("device_unlink".equals(tag)) { + DeviceUnlinkType fieldValue = null; + fieldValue = DeviceUnlinkType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceUnlink(fieldValue); + } + else if ("dropbox_passwords_exported".equals(tag)) { + DropboxPasswordsExportedType fieldValue = null; + fieldValue = DropboxPasswordsExportedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.dropboxPasswordsExported(fieldValue); + } + else if ("dropbox_passwords_new_device_enrolled".equals(tag)) { + DropboxPasswordsNewDeviceEnrolledType fieldValue = null; + fieldValue = DropboxPasswordsNewDeviceEnrolledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.dropboxPasswordsNewDeviceEnrolled(fieldValue); + } + else if ("emm_refresh_auth_token".equals(tag)) { + EmmRefreshAuthTokenType fieldValue = null; + fieldValue = EmmRefreshAuthTokenType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emmRefreshAuthToken(fieldValue); + } + else if ("external_drive_backup_eligibility_status_checked".equals(tag)) { + ExternalDriveBackupEligibilityStatusCheckedType fieldValue = null; + fieldValue = ExternalDriveBackupEligibilityStatusCheckedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.externalDriveBackupEligibilityStatusChecked(fieldValue); + } + else if ("external_drive_backup_status_changed".equals(tag)) { + ExternalDriveBackupStatusChangedType fieldValue = null; + fieldValue = ExternalDriveBackupStatusChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.externalDriveBackupStatusChanged(fieldValue); + } + else if ("account_capture_change_availability".equals(tag)) { + AccountCaptureChangeAvailabilityType fieldValue = null; + fieldValue = AccountCaptureChangeAvailabilityType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.accountCaptureChangeAvailability(fieldValue); + } + else if ("account_capture_migrate_account".equals(tag)) { + AccountCaptureMigrateAccountType fieldValue = null; + fieldValue = AccountCaptureMigrateAccountType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.accountCaptureMigrateAccount(fieldValue); + } + else if ("account_capture_notification_emails_sent".equals(tag)) { + AccountCaptureNotificationEmailsSentType fieldValue = null; + fieldValue = AccountCaptureNotificationEmailsSentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.accountCaptureNotificationEmailsSent(fieldValue); + } + else if ("account_capture_relinquish_account".equals(tag)) { + AccountCaptureRelinquishAccountType fieldValue = null; + fieldValue = AccountCaptureRelinquishAccountType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.accountCaptureRelinquishAccount(fieldValue); + } + else if ("disabled_domain_invites".equals(tag)) { + DisabledDomainInvitesType fieldValue = null; + fieldValue = DisabledDomainInvitesType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.disabledDomainInvites(fieldValue); + } + else if ("domain_invites_approve_request_to_join_team".equals(tag)) { + DomainInvitesApproveRequestToJoinTeamType fieldValue = null; + fieldValue = DomainInvitesApproveRequestToJoinTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainInvitesApproveRequestToJoinTeam(fieldValue); + } + else if ("domain_invites_decline_request_to_join_team".equals(tag)) { + DomainInvitesDeclineRequestToJoinTeamType fieldValue = null; + fieldValue = DomainInvitesDeclineRequestToJoinTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainInvitesDeclineRequestToJoinTeam(fieldValue); + } + else if ("domain_invites_email_existing_users".equals(tag)) { + DomainInvitesEmailExistingUsersType fieldValue = null; + fieldValue = DomainInvitesEmailExistingUsersType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainInvitesEmailExistingUsers(fieldValue); + } + else if ("domain_invites_request_to_join_team".equals(tag)) { + DomainInvitesRequestToJoinTeamType fieldValue = null; + fieldValue = DomainInvitesRequestToJoinTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainInvitesRequestToJoinTeam(fieldValue); + } + else if ("domain_invites_set_invite_new_user_pref_to_no".equals(tag)) { + DomainInvitesSetInviteNewUserPrefToNoType fieldValue = null; + fieldValue = DomainInvitesSetInviteNewUserPrefToNoType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainInvitesSetInviteNewUserPrefToNo(fieldValue); + } + else if ("domain_invites_set_invite_new_user_pref_to_yes".equals(tag)) { + DomainInvitesSetInviteNewUserPrefToYesType fieldValue = null; + fieldValue = DomainInvitesSetInviteNewUserPrefToYesType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainInvitesSetInviteNewUserPrefToYes(fieldValue); + } + else if ("domain_verification_add_domain_fail".equals(tag)) { + DomainVerificationAddDomainFailType fieldValue = null; + fieldValue = DomainVerificationAddDomainFailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainVerificationAddDomainFail(fieldValue); + } + else if ("domain_verification_add_domain_success".equals(tag)) { + DomainVerificationAddDomainSuccessType fieldValue = null; + fieldValue = DomainVerificationAddDomainSuccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainVerificationAddDomainSuccess(fieldValue); + } + else if ("domain_verification_remove_domain".equals(tag)) { + DomainVerificationRemoveDomainType fieldValue = null; + fieldValue = DomainVerificationRemoveDomainType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.domainVerificationRemoveDomain(fieldValue); + } + else if ("enabled_domain_invites".equals(tag)) { + EnabledDomainInvitesType fieldValue = null; + fieldValue = EnabledDomainInvitesType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.enabledDomainInvites(fieldValue); + } + else if ("team_encryption_key_cancel_key_deletion".equals(tag)) { + TeamEncryptionKeyCancelKeyDeletionType fieldValue = null; + fieldValue = TeamEncryptionKeyCancelKeyDeletionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamEncryptionKeyCancelKeyDeletion(fieldValue); + } + else if ("team_encryption_key_create_key".equals(tag)) { + TeamEncryptionKeyCreateKeyType fieldValue = null; + fieldValue = TeamEncryptionKeyCreateKeyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamEncryptionKeyCreateKey(fieldValue); + } + else if ("team_encryption_key_delete_key".equals(tag)) { + TeamEncryptionKeyDeleteKeyType fieldValue = null; + fieldValue = TeamEncryptionKeyDeleteKeyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamEncryptionKeyDeleteKey(fieldValue); + } + else if ("team_encryption_key_disable_key".equals(tag)) { + TeamEncryptionKeyDisableKeyType fieldValue = null; + fieldValue = TeamEncryptionKeyDisableKeyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamEncryptionKeyDisableKey(fieldValue); + } + else if ("team_encryption_key_enable_key".equals(tag)) { + TeamEncryptionKeyEnableKeyType fieldValue = null; + fieldValue = TeamEncryptionKeyEnableKeyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamEncryptionKeyEnableKey(fieldValue); + } + else if ("team_encryption_key_rotate_key".equals(tag)) { + TeamEncryptionKeyRotateKeyType fieldValue = null; + fieldValue = TeamEncryptionKeyRotateKeyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamEncryptionKeyRotateKey(fieldValue); + } + else if ("team_encryption_key_schedule_key_deletion".equals(tag)) { + TeamEncryptionKeyScheduleKeyDeletionType fieldValue = null; + fieldValue = TeamEncryptionKeyScheduleKeyDeletionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamEncryptionKeyScheduleKeyDeletion(fieldValue); + } + else if ("apply_naming_convention".equals(tag)) { + ApplyNamingConventionType fieldValue = null; + fieldValue = ApplyNamingConventionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.applyNamingConvention(fieldValue); + } + else if ("create_folder".equals(tag)) { + CreateFolderType fieldValue = null; + fieldValue = CreateFolderType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.createFolder(fieldValue); + } + else if ("file_add".equals(tag)) { + FileAddType fieldValue = null; + fieldValue = FileAddType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileAdd(fieldValue); + } + else if ("file_add_from_automation".equals(tag)) { + FileAddFromAutomationType fieldValue = null; + fieldValue = FileAddFromAutomationType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileAddFromAutomation(fieldValue); + } + else if ("file_copy".equals(tag)) { + FileCopyType fieldValue = null; + fieldValue = FileCopyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileCopy(fieldValue); + } + else if ("file_delete".equals(tag)) { + FileDeleteType fieldValue = null; + fieldValue = FileDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileDelete(fieldValue); + } + else if ("file_download".equals(tag)) { + FileDownloadType fieldValue = null; + fieldValue = FileDownloadType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileDownload(fieldValue); + } + else if ("file_edit".equals(tag)) { + FileEditType fieldValue = null; + fieldValue = FileEditType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileEdit(fieldValue); + } + else if ("file_get_copy_reference".equals(tag)) { + FileGetCopyReferenceType fieldValue = null; + fieldValue = FileGetCopyReferenceType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileGetCopyReference(fieldValue); + } + else if ("file_locking_lock_status_changed".equals(tag)) { + FileLockingLockStatusChangedType fieldValue = null; + fieldValue = FileLockingLockStatusChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileLockingLockStatusChanged(fieldValue); + } + else if ("file_move".equals(tag)) { + FileMoveType fieldValue = null; + fieldValue = FileMoveType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileMove(fieldValue); + } + else if ("file_permanently_delete".equals(tag)) { + FilePermanentlyDeleteType fieldValue = null; + fieldValue = FilePermanentlyDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.filePermanentlyDelete(fieldValue); + } + else if ("file_preview".equals(tag)) { + FilePreviewType fieldValue = null; + fieldValue = FilePreviewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.filePreview(fieldValue); + } + else if ("file_rename".equals(tag)) { + FileRenameType fieldValue = null; + fieldValue = FileRenameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRename(fieldValue); + } + else if ("file_restore".equals(tag)) { + FileRestoreType fieldValue = null; + fieldValue = FileRestoreType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRestore(fieldValue); + } + else if ("file_revert".equals(tag)) { + FileRevertType fieldValue = null; + fieldValue = FileRevertType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRevert(fieldValue); + } + else if ("file_rollback_changes".equals(tag)) { + FileRollbackChangesType fieldValue = null; + fieldValue = FileRollbackChangesType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRollbackChanges(fieldValue); + } + else if ("file_save_copy_reference".equals(tag)) { + FileSaveCopyReferenceType fieldValue = null; + fieldValue = FileSaveCopyReferenceType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileSaveCopyReference(fieldValue); + } + else if ("folder_overview_description_changed".equals(tag)) { + FolderOverviewDescriptionChangedType fieldValue = null; + fieldValue = FolderOverviewDescriptionChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.folderOverviewDescriptionChanged(fieldValue); + } + else if ("folder_overview_item_pinned".equals(tag)) { + FolderOverviewItemPinnedType fieldValue = null; + fieldValue = FolderOverviewItemPinnedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.folderOverviewItemPinned(fieldValue); + } + else if ("folder_overview_item_unpinned".equals(tag)) { + FolderOverviewItemUnpinnedType fieldValue = null; + fieldValue = FolderOverviewItemUnpinnedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.folderOverviewItemUnpinned(fieldValue); + } + else if ("object_label_added".equals(tag)) { + ObjectLabelAddedType fieldValue = null; + fieldValue = ObjectLabelAddedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.objectLabelAdded(fieldValue); + } + else if ("object_label_removed".equals(tag)) { + ObjectLabelRemovedType fieldValue = null; + fieldValue = ObjectLabelRemovedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.objectLabelRemoved(fieldValue); + } + else if ("object_label_updated_value".equals(tag)) { + ObjectLabelUpdatedValueType fieldValue = null; + fieldValue = ObjectLabelUpdatedValueType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.objectLabelUpdatedValue(fieldValue); + } + else if ("organize_folder_with_tidy".equals(tag)) { + OrganizeFolderWithTidyType fieldValue = null; + fieldValue = OrganizeFolderWithTidyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.organizeFolderWithTidy(fieldValue); + } + else if ("replay_file_delete".equals(tag)) { + ReplayFileDeleteType fieldValue = null; + fieldValue = ReplayFileDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.replayFileDelete(fieldValue); + } + else if ("rewind_folder".equals(tag)) { + RewindFolderType fieldValue = null; + fieldValue = RewindFolderType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.rewindFolder(fieldValue); + } + else if ("undo_naming_convention".equals(tag)) { + UndoNamingConventionType fieldValue = null; + fieldValue = UndoNamingConventionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.undoNamingConvention(fieldValue); + } + else if ("undo_organize_folder_with_tidy".equals(tag)) { + UndoOrganizeFolderWithTidyType fieldValue = null; + fieldValue = UndoOrganizeFolderWithTidyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.undoOrganizeFolderWithTidy(fieldValue); + } + else if ("user_tags_added".equals(tag)) { + UserTagsAddedType fieldValue = null; + fieldValue = UserTagsAddedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.userTagsAdded(fieldValue); + } + else if ("user_tags_removed".equals(tag)) { + UserTagsRemovedType fieldValue = null; + fieldValue = UserTagsRemovedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.userTagsRemoved(fieldValue); + } + else if ("email_ingest_receive_file".equals(tag)) { + EmailIngestReceiveFileType fieldValue = null; + fieldValue = EmailIngestReceiveFileType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emailIngestReceiveFile(fieldValue); + } + else if ("file_request_change".equals(tag)) { + FileRequestChangeType fieldValue = null; + fieldValue = FileRequestChangeType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestChange(fieldValue); + } + else if ("file_request_close".equals(tag)) { + FileRequestCloseType fieldValue = null; + fieldValue = FileRequestCloseType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestClose(fieldValue); + } + else if ("file_request_create".equals(tag)) { + FileRequestCreateType fieldValue = null; + fieldValue = FileRequestCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestCreate(fieldValue); + } + else if ("file_request_delete".equals(tag)) { + FileRequestDeleteType fieldValue = null; + fieldValue = FileRequestDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestDelete(fieldValue); + } + else if ("file_request_receive_file".equals(tag)) { + FileRequestReceiveFileType fieldValue = null; + fieldValue = FileRequestReceiveFileType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestReceiveFile(fieldValue); + } + else if ("group_add_external_id".equals(tag)) { + GroupAddExternalIdType fieldValue = null; + fieldValue = GroupAddExternalIdType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupAddExternalId(fieldValue); + } + else if ("group_add_member".equals(tag)) { + GroupAddMemberType fieldValue = null; + fieldValue = GroupAddMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupAddMember(fieldValue); + } + else if ("group_change_external_id".equals(tag)) { + GroupChangeExternalIdType fieldValue = null; + fieldValue = GroupChangeExternalIdType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupChangeExternalId(fieldValue); + } + else if ("group_change_management_type".equals(tag)) { + GroupChangeManagementTypeType fieldValue = null; + fieldValue = GroupChangeManagementTypeType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupChangeManagementType(fieldValue); + } + else if ("group_change_member_role".equals(tag)) { + GroupChangeMemberRoleType fieldValue = null; + fieldValue = GroupChangeMemberRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupChangeMemberRole(fieldValue); + } + else if ("group_create".equals(tag)) { + GroupCreateType fieldValue = null; + fieldValue = GroupCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupCreate(fieldValue); + } + else if ("group_delete".equals(tag)) { + GroupDeleteType fieldValue = null; + fieldValue = GroupDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupDelete(fieldValue); + } + else if ("group_description_updated".equals(tag)) { + GroupDescriptionUpdatedType fieldValue = null; + fieldValue = GroupDescriptionUpdatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupDescriptionUpdated(fieldValue); + } + else if ("group_join_policy_updated".equals(tag)) { + GroupJoinPolicyUpdatedType fieldValue = null; + fieldValue = GroupJoinPolicyUpdatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupJoinPolicyUpdated(fieldValue); + } + else if ("group_moved".equals(tag)) { + GroupMovedType fieldValue = null; + fieldValue = GroupMovedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupMoved(fieldValue); + } + else if ("group_remove_external_id".equals(tag)) { + GroupRemoveExternalIdType fieldValue = null; + fieldValue = GroupRemoveExternalIdType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupRemoveExternalId(fieldValue); + } + else if ("group_remove_member".equals(tag)) { + GroupRemoveMemberType fieldValue = null; + fieldValue = GroupRemoveMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupRemoveMember(fieldValue); + } + else if ("group_rename".equals(tag)) { + GroupRenameType fieldValue = null; + fieldValue = GroupRenameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupRename(fieldValue); + } + else if ("account_lock_or_unlocked".equals(tag)) { + AccountLockOrUnlockedType fieldValue = null; + fieldValue = AccountLockOrUnlockedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.accountLockOrUnlocked(fieldValue); + } + else if ("emm_error".equals(tag)) { + EmmErrorType fieldValue = null; + fieldValue = EmmErrorType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emmError(fieldValue); + } + else if ("guest_admin_signed_in_via_trusted_teams".equals(tag)) { + GuestAdminSignedInViaTrustedTeamsType fieldValue = null; + fieldValue = GuestAdminSignedInViaTrustedTeamsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.guestAdminSignedInViaTrustedTeams(fieldValue); + } + else if ("guest_admin_signed_out_via_trusted_teams".equals(tag)) { + GuestAdminSignedOutViaTrustedTeamsType fieldValue = null; + fieldValue = GuestAdminSignedOutViaTrustedTeamsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.guestAdminSignedOutViaTrustedTeams(fieldValue); + } + else if ("login_fail".equals(tag)) { + LoginFailType fieldValue = null; + fieldValue = LoginFailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.loginFail(fieldValue); + } + else if ("login_success".equals(tag)) { + LoginSuccessType fieldValue = null; + fieldValue = LoginSuccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.loginSuccess(fieldValue); + } + else if ("logout".equals(tag)) { + LogoutType fieldValue = null; + fieldValue = LogoutType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.logout(fieldValue); + } + else if ("reseller_support_session_end".equals(tag)) { + ResellerSupportSessionEndType fieldValue = null; + fieldValue = ResellerSupportSessionEndType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.resellerSupportSessionEnd(fieldValue); + } + else if ("reseller_support_session_start".equals(tag)) { + ResellerSupportSessionStartType fieldValue = null; + fieldValue = ResellerSupportSessionStartType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.resellerSupportSessionStart(fieldValue); + } + else if ("sign_in_as_session_end".equals(tag)) { + SignInAsSessionEndType fieldValue = null; + fieldValue = SignInAsSessionEndType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.signInAsSessionEnd(fieldValue); + } + else if ("sign_in_as_session_start".equals(tag)) { + SignInAsSessionStartType fieldValue = null; + fieldValue = SignInAsSessionStartType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.signInAsSessionStart(fieldValue); + } + else if ("sso_error".equals(tag)) { + SsoErrorType fieldValue = null; + fieldValue = SsoErrorType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoError(fieldValue); + } + else if ("backup_admin_invitation_sent".equals(tag)) { + BackupAdminInvitationSentType fieldValue = null; + fieldValue = BackupAdminInvitationSentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.backupAdminInvitationSent(fieldValue); + } + else if ("backup_invitation_opened".equals(tag)) { + BackupInvitationOpenedType fieldValue = null; + fieldValue = BackupInvitationOpenedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.backupInvitationOpened(fieldValue); + } + else if ("create_team_invite_link".equals(tag)) { + CreateTeamInviteLinkType fieldValue = null; + fieldValue = CreateTeamInviteLinkType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.createTeamInviteLink(fieldValue); + } + else if ("delete_team_invite_link".equals(tag)) { + DeleteTeamInviteLinkType fieldValue = null; + fieldValue = DeleteTeamInviteLinkType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deleteTeamInviteLink(fieldValue); + } + else if ("member_add_external_id".equals(tag)) { + MemberAddExternalIdType fieldValue = null; + fieldValue = MemberAddExternalIdType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberAddExternalId(fieldValue); + } + else if ("member_add_name".equals(tag)) { + MemberAddNameType fieldValue = null; + fieldValue = MemberAddNameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberAddName(fieldValue); + } + else if ("member_change_admin_role".equals(tag)) { + MemberChangeAdminRoleType fieldValue = null; + fieldValue = MemberChangeAdminRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberChangeAdminRole(fieldValue); + } + else if ("member_change_email".equals(tag)) { + MemberChangeEmailType fieldValue = null; + fieldValue = MemberChangeEmailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberChangeEmail(fieldValue); + } + else if ("member_change_external_id".equals(tag)) { + MemberChangeExternalIdType fieldValue = null; + fieldValue = MemberChangeExternalIdType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberChangeExternalId(fieldValue); + } + else if ("member_change_membership_type".equals(tag)) { + MemberChangeMembershipTypeType fieldValue = null; + fieldValue = MemberChangeMembershipTypeType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberChangeMembershipType(fieldValue); + } + else if ("member_change_name".equals(tag)) { + MemberChangeNameType fieldValue = null; + fieldValue = MemberChangeNameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberChangeName(fieldValue); + } + else if ("member_change_reseller_role".equals(tag)) { + MemberChangeResellerRoleType fieldValue = null; + fieldValue = MemberChangeResellerRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberChangeResellerRole(fieldValue); + } + else if ("member_change_status".equals(tag)) { + MemberChangeStatusType fieldValue = null; + fieldValue = MemberChangeStatusType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberChangeStatus(fieldValue); + } + else if ("member_delete_manual_contacts".equals(tag)) { + MemberDeleteManualContactsType fieldValue = null; + fieldValue = MemberDeleteManualContactsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberDeleteManualContacts(fieldValue); + } + else if ("member_delete_profile_photo".equals(tag)) { + MemberDeleteProfilePhotoType fieldValue = null; + fieldValue = MemberDeleteProfilePhotoType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberDeleteProfilePhoto(fieldValue); + } + else if ("member_permanently_delete_account_contents".equals(tag)) { + MemberPermanentlyDeleteAccountContentsType fieldValue = null; + fieldValue = MemberPermanentlyDeleteAccountContentsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberPermanentlyDeleteAccountContents(fieldValue); + } + else if ("member_remove_external_id".equals(tag)) { + MemberRemoveExternalIdType fieldValue = null; + fieldValue = MemberRemoveExternalIdType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberRemoveExternalId(fieldValue); + } + else if ("member_set_profile_photo".equals(tag)) { + MemberSetProfilePhotoType fieldValue = null; + fieldValue = MemberSetProfilePhotoType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSetProfilePhoto(fieldValue); + } + else if ("member_space_limits_add_custom_quota".equals(tag)) { + MemberSpaceLimitsAddCustomQuotaType fieldValue = null; + fieldValue = MemberSpaceLimitsAddCustomQuotaType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsAddCustomQuota(fieldValue); + } + else if ("member_space_limits_change_custom_quota".equals(tag)) { + MemberSpaceLimitsChangeCustomQuotaType fieldValue = null; + fieldValue = MemberSpaceLimitsChangeCustomQuotaType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsChangeCustomQuota(fieldValue); + } + else if ("member_space_limits_change_status".equals(tag)) { + MemberSpaceLimitsChangeStatusType fieldValue = null; + fieldValue = MemberSpaceLimitsChangeStatusType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsChangeStatus(fieldValue); + } + else if ("member_space_limits_remove_custom_quota".equals(tag)) { + MemberSpaceLimitsRemoveCustomQuotaType fieldValue = null; + fieldValue = MemberSpaceLimitsRemoveCustomQuotaType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsRemoveCustomQuota(fieldValue); + } + else if ("member_suggest".equals(tag)) { + MemberSuggestType fieldValue = null; + fieldValue = MemberSuggestType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSuggest(fieldValue); + } + else if ("member_transfer_account_contents".equals(tag)) { + MemberTransferAccountContentsType fieldValue = null; + fieldValue = MemberTransferAccountContentsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberTransferAccountContents(fieldValue); + } + else if ("pending_secondary_email_added".equals(tag)) { + PendingSecondaryEmailAddedType fieldValue = null; + fieldValue = PendingSecondaryEmailAddedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.pendingSecondaryEmailAdded(fieldValue); + } + else if ("secondary_email_deleted".equals(tag)) { + SecondaryEmailDeletedType fieldValue = null; + fieldValue = SecondaryEmailDeletedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.secondaryEmailDeleted(fieldValue); + } + else if ("secondary_email_verified".equals(tag)) { + SecondaryEmailVerifiedType fieldValue = null; + fieldValue = SecondaryEmailVerifiedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.secondaryEmailVerified(fieldValue); + } + else if ("secondary_mails_policy_changed".equals(tag)) { + SecondaryMailsPolicyChangedType fieldValue = null; + fieldValue = SecondaryMailsPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.secondaryMailsPolicyChanged(fieldValue); + } + else if ("binder_add_page".equals(tag)) { + BinderAddPageType fieldValue = null; + fieldValue = BinderAddPageType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderAddPage(fieldValue); + } + else if ("binder_add_section".equals(tag)) { + BinderAddSectionType fieldValue = null; + fieldValue = BinderAddSectionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderAddSection(fieldValue); + } + else if ("binder_remove_page".equals(tag)) { + BinderRemovePageType fieldValue = null; + fieldValue = BinderRemovePageType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderRemovePage(fieldValue); + } + else if ("binder_remove_section".equals(tag)) { + BinderRemoveSectionType fieldValue = null; + fieldValue = BinderRemoveSectionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderRemoveSection(fieldValue); + } + else if ("binder_rename_page".equals(tag)) { + BinderRenamePageType fieldValue = null; + fieldValue = BinderRenamePageType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderRenamePage(fieldValue); + } + else if ("binder_rename_section".equals(tag)) { + BinderRenameSectionType fieldValue = null; + fieldValue = BinderRenameSectionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderRenameSection(fieldValue); + } + else if ("binder_reorder_page".equals(tag)) { + BinderReorderPageType fieldValue = null; + fieldValue = BinderReorderPageType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderReorderPage(fieldValue); + } + else if ("binder_reorder_section".equals(tag)) { + BinderReorderSectionType fieldValue = null; + fieldValue = BinderReorderSectionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.binderReorderSection(fieldValue); + } + else if ("paper_content_add_member".equals(tag)) { + PaperContentAddMemberType fieldValue = null; + fieldValue = PaperContentAddMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentAddMember(fieldValue); + } + else if ("paper_content_add_to_folder".equals(tag)) { + PaperContentAddToFolderType fieldValue = null; + fieldValue = PaperContentAddToFolderType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentAddToFolder(fieldValue); + } + else if ("paper_content_archive".equals(tag)) { + PaperContentArchiveType fieldValue = null; + fieldValue = PaperContentArchiveType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentArchive(fieldValue); + } + else if ("paper_content_create".equals(tag)) { + PaperContentCreateType fieldValue = null; + fieldValue = PaperContentCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentCreate(fieldValue); + } + else if ("paper_content_permanently_delete".equals(tag)) { + PaperContentPermanentlyDeleteType fieldValue = null; + fieldValue = PaperContentPermanentlyDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentPermanentlyDelete(fieldValue); + } + else if ("paper_content_remove_from_folder".equals(tag)) { + PaperContentRemoveFromFolderType fieldValue = null; + fieldValue = PaperContentRemoveFromFolderType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentRemoveFromFolder(fieldValue); + } + else if ("paper_content_remove_member".equals(tag)) { + PaperContentRemoveMemberType fieldValue = null; + fieldValue = PaperContentRemoveMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentRemoveMember(fieldValue); + } + else if ("paper_content_rename".equals(tag)) { + PaperContentRenameType fieldValue = null; + fieldValue = PaperContentRenameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentRename(fieldValue); + } + else if ("paper_content_restore".equals(tag)) { + PaperContentRestoreType fieldValue = null; + fieldValue = PaperContentRestoreType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperContentRestore(fieldValue); + } + else if ("paper_doc_add_comment".equals(tag)) { + PaperDocAddCommentType fieldValue = null; + fieldValue = PaperDocAddCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocAddComment(fieldValue); + } + else if ("paper_doc_change_member_role".equals(tag)) { + PaperDocChangeMemberRoleType fieldValue = null; + fieldValue = PaperDocChangeMemberRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocChangeMemberRole(fieldValue); + } + else if ("paper_doc_change_sharing_policy".equals(tag)) { + PaperDocChangeSharingPolicyType fieldValue = null; + fieldValue = PaperDocChangeSharingPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocChangeSharingPolicy(fieldValue); + } + else if ("paper_doc_change_subscription".equals(tag)) { + PaperDocChangeSubscriptionType fieldValue = null; + fieldValue = PaperDocChangeSubscriptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocChangeSubscription(fieldValue); + } + else if ("paper_doc_deleted".equals(tag)) { + PaperDocDeletedType fieldValue = null; + fieldValue = PaperDocDeletedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocDeleted(fieldValue); + } + else if ("paper_doc_delete_comment".equals(tag)) { + PaperDocDeleteCommentType fieldValue = null; + fieldValue = PaperDocDeleteCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocDeleteComment(fieldValue); + } + else if ("paper_doc_download".equals(tag)) { + PaperDocDownloadType fieldValue = null; + fieldValue = PaperDocDownloadType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocDownload(fieldValue); + } + else if ("paper_doc_edit".equals(tag)) { + PaperDocEditType fieldValue = null; + fieldValue = PaperDocEditType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocEdit(fieldValue); + } + else if ("paper_doc_edit_comment".equals(tag)) { + PaperDocEditCommentType fieldValue = null; + fieldValue = PaperDocEditCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocEditComment(fieldValue); + } + else if ("paper_doc_followed".equals(tag)) { + PaperDocFollowedType fieldValue = null; + fieldValue = PaperDocFollowedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocFollowed(fieldValue); + } + else if ("paper_doc_mention".equals(tag)) { + PaperDocMentionType fieldValue = null; + fieldValue = PaperDocMentionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocMention(fieldValue); + } + else if ("paper_doc_ownership_changed".equals(tag)) { + PaperDocOwnershipChangedType fieldValue = null; + fieldValue = PaperDocOwnershipChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocOwnershipChanged(fieldValue); + } + else if ("paper_doc_request_access".equals(tag)) { + PaperDocRequestAccessType fieldValue = null; + fieldValue = PaperDocRequestAccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocRequestAccess(fieldValue); + } + else if ("paper_doc_resolve_comment".equals(tag)) { + PaperDocResolveCommentType fieldValue = null; + fieldValue = PaperDocResolveCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocResolveComment(fieldValue); + } + else if ("paper_doc_revert".equals(tag)) { + PaperDocRevertType fieldValue = null; + fieldValue = PaperDocRevertType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocRevert(fieldValue); + } + else if ("paper_doc_slack_share".equals(tag)) { + PaperDocSlackShareType fieldValue = null; + fieldValue = PaperDocSlackShareType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocSlackShare(fieldValue); + } + else if ("paper_doc_team_invite".equals(tag)) { + PaperDocTeamInviteType fieldValue = null; + fieldValue = PaperDocTeamInviteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocTeamInvite(fieldValue); + } + else if ("paper_doc_trashed".equals(tag)) { + PaperDocTrashedType fieldValue = null; + fieldValue = PaperDocTrashedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocTrashed(fieldValue); + } + else if ("paper_doc_unresolve_comment".equals(tag)) { + PaperDocUnresolveCommentType fieldValue = null; + fieldValue = PaperDocUnresolveCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocUnresolveComment(fieldValue); + } + else if ("paper_doc_untrashed".equals(tag)) { + PaperDocUntrashedType fieldValue = null; + fieldValue = PaperDocUntrashedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocUntrashed(fieldValue); + } + else if ("paper_doc_view".equals(tag)) { + PaperDocViewType fieldValue = null; + fieldValue = PaperDocViewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDocView(fieldValue); + } + else if ("paper_external_view_allow".equals(tag)) { + PaperExternalViewAllowType fieldValue = null; + fieldValue = PaperExternalViewAllowType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperExternalViewAllow(fieldValue); + } + else if ("paper_external_view_default_team".equals(tag)) { + PaperExternalViewDefaultTeamType fieldValue = null; + fieldValue = PaperExternalViewDefaultTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperExternalViewDefaultTeam(fieldValue); + } + else if ("paper_external_view_forbid".equals(tag)) { + PaperExternalViewForbidType fieldValue = null; + fieldValue = PaperExternalViewForbidType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperExternalViewForbid(fieldValue); + } + else if ("paper_folder_change_subscription".equals(tag)) { + PaperFolderChangeSubscriptionType fieldValue = null; + fieldValue = PaperFolderChangeSubscriptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperFolderChangeSubscription(fieldValue); + } + else if ("paper_folder_deleted".equals(tag)) { + PaperFolderDeletedType fieldValue = null; + fieldValue = PaperFolderDeletedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperFolderDeleted(fieldValue); + } + else if ("paper_folder_followed".equals(tag)) { + PaperFolderFollowedType fieldValue = null; + fieldValue = PaperFolderFollowedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperFolderFollowed(fieldValue); + } + else if ("paper_folder_team_invite".equals(tag)) { + PaperFolderTeamInviteType fieldValue = null; + fieldValue = PaperFolderTeamInviteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperFolderTeamInvite(fieldValue); + } + else if ("paper_published_link_change_permission".equals(tag)) { + PaperPublishedLinkChangePermissionType fieldValue = null; + fieldValue = PaperPublishedLinkChangePermissionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperPublishedLinkChangePermission(fieldValue); + } + else if ("paper_published_link_create".equals(tag)) { + PaperPublishedLinkCreateType fieldValue = null; + fieldValue = PaperPublishedLinkCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperPublishedLinkCreate(fieldValue); + } + else if ("paper_published_link_disabled".equals(tag)) { + PaperPublishedLinkDisabledType fieldValue = null; + fieldValue = PaperPublishedLinkDisabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperPublishedLinkDisabled(fieldValue); + } + else if ("paper_published_link_view".equals(tag)) { + PaperPublishedLinkViewType fieldValue = null; + fieldValue = PaperPublishedLinkViewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperPublishedLinkView(fieldValue); + } + else if ("password_change".equals(tag)) { + PasswordChangeType fieldValue = null; + fieldValue = PasswordChangeType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.passwordChange(fieldValue); + } + else if ("password_reset".equals(tag)) { + PasswordResetType fieldValue = null; + fieldValue = PasswordResetType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.passwordReset(fieldValue); + } + else if ("password_reset_all".equals(tag)) { + PasswordResetAllType fieldValue = null; + fieldValue = PasswordResetAllType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.passwordResetAll(fieldValue); + } + else if ("classification_create_report".equals(tag)) { + ClassificationCreateReportType fieldValue = null; + fieldValue = ClassificationCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.classificationCreateReport(fieldValue); + } + else if ("classification_create_report_fail".equals(tag)) { + ClassificationCreateReportFailType fieldValue = null; + fieldValue = ClassificationCreateReportFailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.classificationCreateReportFail(fieldValue); + } + else if ("emm_create_exceptions_report".equals(tag)) { + EmmCreateExceptionsReportType fieldValue = null; + fieldValue = EmmCreateExceptionsReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emmCreateExceptionsReport(fieldValue); + } + else if ("emm_create_usage_report".equals(tag)) { + EmmCreateUsageReportType fieldValue = null; + fieldValue = EmmCreateUsageReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emmCreateUsageReport(fieldValue); + } + else if ("export_members_report".equals(tag)) { + ExportMembersReportType fieldValue = null; + fieldValue = ExportMembersReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.exportMembersReport(fieldValue); + } + else if ("export_members_report_fail".equals(tag)) { + ExportMembersReportFailType fieldValue = null; + fieldValue = ExportMembersReportFailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.exportMembersReportFail(fieldValue); + } + else if ("external_sharing_create_report".equals(tag)) { + ExternalSharingCreateReportType fieldValue = null; + fieldValue = ExternalSharingCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.externalSharingCreateReport(fieldValue); + } + else if ("external_sharing_report_failed".equals(tag)) { + ExternalSharingReportFailedType fieldValue = null; + fieldValue = ExternalSharingReportFailedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.externalSharingReportFailed(fieldValue); + } + else if ("no_expiration_link_gen_create_report".equals(tag)) { + NoExpirationLinkGenCreateReportType fieldValue = null; + fieldValue = NoExpirationLinkGenCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noExpirationLinkGenCreateReport(fieldValue); + } + else if ("no_expiration_link_gen_report_failed".equals(tag)) { + NoExpirationLinkGenReportFailedType fieldValue = null; + fieldValue = NoExpirationLinkGenReportFailedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noExpirationLinkGenReportFailed(fieldValue); + } + else if ("no_password_link_gen_create_report".equals(tag)) { + NoPasswordLinkGenCreateReportType fieldValue = null; + fieldValue = NoPasswordLinkGenCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noPasswordLinkGenCreateReport(fieldValue); + } + else if ("no_password_link_gen_report_failed".equals(tag)) { + NoPasswordLinkGenReportFailedType fieldValue = null; + fieldValue = NoPasswordLinkGenReportFailedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noPasswordLinkGenReportFailed(fieldValue); + } + else if ("no_password_link_view_create_report".equals(tag)) { + NoPasswordLinkViewCreateReportType fieldValue = null; + fieldValue = NoPasswordLinkViewCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noPasswordLinkViewCreateReport(fieldValue); + } + else if ("no_password_link_view_report_failed".equals(tag)) { + NoPasswordLinkViewReportFailedType fieldValue = null; + fieldValue = NoPasswordLinkViewReportFailedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noPasswordLinkViewReportFailed(fieldValue); + } + else if ("outdated_link_view_create_report".equals(tag)) { + OutdatedLinkViewCreateReportType fieldValue = null; + fieldValue = OutdatedLinkViewCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.outdatedLinkViewCreateReport(fieldValue); + } + else if ("outdated_link_view_report_failed".equals(tag)) { + OutdatedLinkViewReportFailedType fieldValue = null; + fieldValue = OutdatedLinkViewReportFailedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.outdatedLinkViewReportFailed(fieldValue); + } + else if ("paper_admin_export_start".equals(tag)) { + PaperAdminExportStartType fieldValue = null; + fieldValue = PaperAdminExportStartType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperAdminExportStart(fieldValue); + } + else if ("ransomware_alert_create_report".equals(tag)) { + RansomwareAlertCreateReportType fieldValue = null; + fieldValue = RansomwareAlertCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ransomwareAlertCreateReport(fieldValue); + } + else if ("ransomware_alert_create_report_failed".equals(tag)) { + RansomwareAlertCreateReportFailedType fieldValue = null; + fieldValue = RansomwareAlertCreateReportFailedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ransomwareAlertCreateReportFailed(fieldValue); + } + else if ("smart_sync_create_admin_privilege_report".equals(tag)) { + SmartSyncCreateAdminPrivilegeReportType fieldValue = null; + fieldValue = SmartSyncCreateAdminPrivilegeReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.smartSyncCreateAdminPrivilegeReport(fieldValue); + } + else if ("team_activity_create_report".equals(tag)) { + TeamActivityCreateReportType fieldValue = null; + fieldValue = TeamActivityCreateReportType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamActivityCreateReport(fieldValue); + } + else if ("team_activity_create_report_fail".equals(tag)) { + TeamActivityCreateReportFailType fieldValue = null; + fieldValue = TeamActivityCreateReportFailType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamActivityCreateReportFail(fieldValue); + } + else if ("collection_share".equals(tag)) { + CollectionShareType fieldValue = null; + fieldValue = CollectionShareType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.collectionShare(fieldValue); + } + else if ("file_transfers_file_add".equals(tag)) { + FileTransfersFileAddType fieldValue = null; + fieldValue = FileTransfersFileAddType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileTransfersFileAdd(fieldValue); + } + else if ("file_transfers_transfer_delete".equals(tag)) { + FileTransfersTransferDeleteType fieldValue = null; + fieldValue = FileTransfersTransferDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileTransfersTransferDelete(fieldValue); + } + else if ("file_transfers_transfer_download".equals(tag)) { + FileTransfersTransferDownloadType fieldValue = null; + fieldValue = FileTransfersTransferDownloadType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileTransfersTransferDownload(fieldValue); + } + else if ("file_transfers_transfer_send".equals(tag)) { + FileTransfersTransferSendType fieldValue = null; + fieldValue = FileTransfersTransferSendType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileTransfersTransferSend(fieldValue); + } + else if ("file_transfers_transfer_view".equals(tag)) { + FileTransfersTransferViewType fieldValue = null; + fieldValue = FileTransfersTransferViewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileTransfersTransferView(fieldValue); + } + else if ("note_acl_invite_only".equals(tag)) { + NoteAclInviteOnlyType fieldValue = null; + fieldValue = NoteAclInviteOnlyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noteAclInviteOnly(fieldValue); + } + else if ("note_acl_link".equals(tag)) { + NoteAclLinkType fieldValue = null; + fieldValue = NoteAclLinkType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noteAclLink(fieldValue); + } + else if ("note_acl_team_link".equals(tag)) { + NoteAclTeamLinkType fieldValue = null; + fieldValue = NoteAclTeamLinkType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noteAclTeamLink(fieldValue); + } + else if ("note_shared".equals(tag)) { + NoteSharedType fieldValue = null; + fieldValue = NoteSharedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noteShared(fieldValue); + } + else if ("note_share_receive".equals(tag)) { + NoteShareReceiveType fieldValue = null; + fieldValue = NoteShareReceiveType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.noteShareReceive(fieldValue); + } + else if ("open_note_shared".equals(tag)) { + OpenNoteSharedType fieldValue = null; + fieldValue = OpenNoteSharedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.openNoteShared(fieldValue); + } + else if ("replay_file_shared_link_created".equals(tag)) { + ReplayFileSharedLinkCreatedType fieldValue = null; + fieldValue = ReplayFileSharedLinkCreatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.replayFileSharedLinkCreated(fieldValue); + } + else if ("replay_file_shared_link_modified".equals(tag)) { + ReplayFileSharedLinkModifiedType fieldValue = null; + fieldValue = ReplayFileSharedLinkModifiedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.replayFileSharedLinkModified(fieldValue); + } + else if ("replay_project_team_add".equals(tag)) { + ReplayProjectTeamAddType fieldValue = null; + fieldValue = ReplayProjectTeamAddType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.replayProjectTeamAdd(fieldValue); + } + else if ("replay_project_team_delete".equals(tag)) { + ReplayProjectTeamDeleteType fieldValue = null; + fieldValue = ReplayProjectTeamDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.replayProjectTeamDelete(fieldValue); + } + else if ("sf_add_group".equals(tag)) { + SfAddGroupType fieldValue = null; + fieldValue = SfAddGroupType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfAddGroup(fieldValue); + } + else if ("sf_allow_non_members_to_view_shared_links".equals(tag)) { + SfAllowNonMembersToViewSharedLinksType fieldValue = null; + fieldValue = SfAllowNonMembersToViewSharedLinksType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfAllowNonMembersToViewSharedLinks(fieldValue); + } + else if ("sf_external_invite_warn".equals(tag)) { + SfExternalInviteWarnType fieldValue = null; + fieldValue = SfExternalInviteWarnType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfExternalInviteWarn(fieldValue); + } + else if ("sf_fb_invite".equals(tag)) { + SfFbInviteType fieldValue = null; + fieldValue = SfFbInviteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfFbInvite(fieldValue); + } + else if ("sf_fb_invite_change_role".equals(tag)) { + SfFbInviteChangeRoleType fieldValue = null; + fieldValue = SfFbInviteChangeRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfFbInviteChangeRole(fieldValue); + } + else if ("sf_fb_uninvite".equals(tag)) { + SfFbUninviteType fieldValue = null; + fieldValue = SfFbUninviteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfFbUninvite(fieldValue); + } + else if ("sf_invite_group".equals(tag)) { + SfInviteGroupType fieldValue = null; + fieldValue = SfInviteGroupType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfInviteGroup(fieldValue); + } + else if ("sf_team_grant_access".equals(tag)) { + SfTeamGrantAccessType fieldValue = null; + fieldValue = SfTeamGrantAccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfTeamGrantAccess(fieldValue); + } + else if ("sf_team_invite".equals(tag)) { + SfTeamInviteType fieldValue = null; + fieldValue = SfTeamInviteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfTeamInvite(fieldValue); + } + else if ("sf_team_invite_change_role".equals(tag)) { + SfTeamInviteChangeRoleType fieldValue = null; + fieldValue = SfTeamInviteChangeRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfTeamInviteChangeRole(fieldValue); + } + else if ("sf_team_join".equals(tag)) { + SfTeamJoinType fieldValue = null; + fieldValue = SfTeamJoinType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfTeamJoin(fieldValue); + } + else if ("sf_team_join_from_oob_link".equals(tag)) { + SfTeamJoinFromOobLinkType fieldValue = null; + fieldValue = SfTeamJoinFromOobLinkType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfTeamJoinFromOobLink(fieldValue); + } + else if ("sf_team_uninvite".equals(tag)) { + SfTeamUninviteType fieldValue = null; + fieldValue = SfTeamUninviteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sfTeamUninvite(fieldValue); + } + else if ("shared_content_add_invitees".equals(tag)) { + SharedContentAddInviteesType fieldValue = null; + fieldValue = SharedContentAddInviteesType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentAddInvitees(fieldValue); + } + else if ("shared_content_add_link_expiry".equals(tag)) { + SharedContentAddLinkExpiryType fieldValue = null; + fieldValue = SharedContentAddLinkExpiryType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentAddLinkExpiry(fieldValue); + } + else if ("shared_content_add_link_password".equals(tag)) { + SharedContentAddLinkPasswordType fieldValue = null; + fieldValue = SharedContentAddLinkPasswordType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentAddLinkPassword(fieldValue); + } + else if ("shared_content_add_member".equals(tag)) { + SharedContentAddMemberType fieldValue = null; + fieldValue = SharedContentAddMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentAddMember(fieldValue); + } + else if ("shared_content_change_downloads_policy".equals(tag)) { + SharedContentChangeDownloadsPolicyType fieldValue = null; + fieldValue = SharedContentChangeDownloadsPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentChangeDownloadsPolicy(fieldValue); + } + else if ("shared_content_change_invitee_role".equals(tag)) { + SharedContentChangeInviteeRoleType fieldValue = null; + fieldValue = SharedContentChangeInviteeRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentChangeInviteeRole(fieldValue); + } + else if ("shared_content_change_link_audience".equals(tag)) { + SharedContentChangeLinkAudienceType fieldValue = null; + fieldValue = SharedContentChangeLinkAudienceType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentChangeLinkAudience(fieldValue); + } + else if ("shared_content_change_link_expiry".equals(tag)) { + SharedContentChangeLinkExpiryType fieldValue = null; + fieldValue = SharedContentChangeLinkExpiryType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentChangeLinkExpiry(fieldValue); + } + else if ("shared_content_change_link_password".equals(tag)) { + SharedContentChangeLinkPasswordType fieldValue = null; + fieldValue = SharedContentChangeLinkPasswordType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentChangeLinkPassword(fieldValue); + } + else if ("shared_content_change_member_role".equals(tag)) { + SharedContentChangeMemberRoleType fieldValue = null; + fieldValue = SharedContentChangeMemberRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentChangeMemberRole(fieldValue); + } + else if ("shared_content_change_viewer_info_policy".equals(tag)) { + SharedContentChangeViewerInfoPolicyType fieldValue = null; + fieldValue = SharedContentChangeViewerInfoPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentChangeViewerInfoPolicy(fieldValue); + } + else if ("shared_content_claim_invitation".equals(tag)) { + SharedContentClaimInvitationType fieldValue = null; + fieldValue = SharedContentClaimInvitationType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentClaimInvitation(fieldValue); + } + else if ("shared_content_copy".equals(tag)) { + SharedContentCopyType fieldValue = null; + fieldValue = SharedContentCopyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentCopy(fieldValue); + } + else if ("shared_content_download".equals(tag)) { + SharedContentDownloadType fieldValue = null; + fieldValue = SharedContentDownloadType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentDownload(fieldValue); + } + else if ("shared_content_relinquish_membership".equals(tag)) { + SharedContentRelinquishMembershipType fieldValue = null; + fieldValue = SharedContentRelinquishMembershipType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRelinquishMembership(fieldValue); + } + else if ("shared_content_remove_invitees".equals(tag)) { + SharedContentRemoveInviteesType fieldValue = null; + fieldValue = SharedContentRemoveInviteesType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRemoveInvitees(fieldValue); + } + else if ("shared_content_remove_link_expiry".equals(tag)) { + SharedContentRemoveLinkExpiryType fieldValue = null; + fieldValue = SharedContentRemoveLinkExpiryType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRemoveLinkExpiry(fieldValue); + } + else if ("shared_content_remove_link_password".equals(tag)) { + SharedContentRemoveLinkPasswordType fieldValue = null; + fieldValue = SharedContentRemoveLinkPasswordType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRemoveLinkPassword(fieldValue); + } + else if ("shared_content_remove_member".equals(tag)) { + SharedContentRemoveMemberType fieldValue = null; + fieldValue = SharedContentRemoveMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRemoveMember(fieldValue); + } + else if ("shared_content_request_access".equals(tag)) { + SharedContentRequestAccessType fieldValue = null; + fieldValue = SharedContentRequestAccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRequestAccess(fieldValue); + } + else if ("shared_content_restore_invitees".equals(tag)) { + SharedContentRestoreInviteesType fieldValue = null; + fieldValue = SharedContentRestoreInviteesType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRestoreInvitees(fieldValue); + } + else if ("shared_content_restore_member".equals(tag)) { + SharedContentRestoreMemberType fieldValue = null; + fieldValue = SharedContentRestoreMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentRestoreMember(fieldValue); + } + else if ("shared_content_unshare".equals(tag)) { + SharedContentUnshareType fieldValue = null; + fieldValue = SharedContentUnshareType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentUnshare(fieldValue); + } + else if ("shared_content_view".equals(tag)) { + SharedContentViewType fieldValue = null; + fieldValue = SharedContentViewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedContentView(fieldValue); + } + else if ("shared_folder_change_link_policy".equals(tag)) { + SharedFolderChangeLinkPolicyType fieldValue = null; + fieldValue = SharedFolderChangeLinkPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderChangeLinkPolicy(fieldValue); + } + else if ("shared_folder_change_members_inheritance_policy".equals(tag)) { + SharedFolderChangeMembersInheritancePolicyType fieldValue = null; + fieldValue = SharedFolderChangeMembersInheritancePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderChangeMembersInheritancePolicy(fieldValue); + } + else if ("shared_folder_change_members_management_policy".equals(tag)) { + SharedFolderChangeMembersManagementPolicyType fieldValue = null; + fieldValue = SharedFolderChangeMembersManagementPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderChangeMembersManagementPolicy(fieldValue); + } + else if ("shared_folder_change_members_policy".equals(tag)) { + SharedFolderChangeMembersPolicyType fieldValue = null; + fieldValue = SharedFolderChangeMembersPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderChangeMembersPolicy(fieldValue); + } + else if ("shared_folder_create".equals(tag)) { + SharedFolderCreateType fieldValue = null; + fieldValue = SharedFolderCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderCreate(fieldValue); + } + else if ("shared_folder_decline_invitation".equals(tag)) { + SharedFolderDeclineInvitationType fieldValue = null; + fieldValue = SharedFolderDeclineInvitationType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderDeclineInvitation(fieldValue); + } + else if ("shared_folder_mount".equals(tag)) { + SharedFolderMountType fieldValue = null; + fieldValue = SharedFolderMountType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderMount(fieldValue); + } + else if ("shared_folder_nest".equals(tag)) { + SharedFolderNestType fieldValue = null; + fieldValue = SharedFolderNestType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderNest(fieldValue); + } + else if ("shared_folder_transfer_ownership".equals(tag)) { + SharedFolderTransferOwnershipType fieldValue = null; + fieldValue = SharedFolderTransferOwnershipType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderTransferOwnership(fieldValue); + } + else if ("shared_folder_unmount".equals(tag)) { + SharedFolderUnmountType fieldValue = null; + fieldValue = SharedFolderUnmountType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedFolderUnmount(fieldValue); + } + else if ("shared_link_add_expiry".equals(tag)) { + SharedLinkAddExpiryType fieldValue = null; + fieldValue = SharedLinkAddExpiryType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkAddExpiry(fieldValue); + } + else if ("shared_link_change_expiry".equals(tag)) { + SharedLinkChangeExpiryType fieldValue = null; + fieldValue = SharedLinkChangeExpiryType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkChangeExpiry(fieldValue); + } + else if ("shared_link_change_visibility".equals(tag)) { + SharedLinkChangeVisibilityType fieldValue = null; + fieldValue = SharedLinkChangeVisibilityType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkChangeVisibility(fieldValue); + } + else if ("shared_link_copy".equals(tag)) { + SharedLinkCopyType fieldValue = null; + fieldValue = SharedLinkCopyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkCopy(fieldValue); + } + else if ("shared_link_create".equals(tag)) { + SharedLinkCreateType fieldValue = null; + fieldValue = SharedLinkCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkCreate(fieldValue); + } + else if ("shared_link_disable".equals(tag)) { + SharedLinkDisableType fieldValue = null; + fieldValue = SharedLinkDisableType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkDisable(fieldValue); + } + else if ("shared_link_download".equals(tag)) { + SharedLinkDownloadType fieldValue = null; + fieldValue = SharedLinkDownloadType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkDownload(fieldValue); + } + else if ("shared_link_remove_expiry".equals(tag)) { + SharedLinkRemoveExpiryType fieldValue = null; + fieldValue = SharedLinkRemoveExpiryType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkRemoveExpiry(fieldValue); + } + else if ("shared_link_settings_add_expiration".equals(tag)) { + SharedLinkSettingsAddExpirationType fieldValue = null; + fieldValue = SharedLinkSettingsAddExpirationType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsAddExpiration(fieldValue); + } + else if ("shared_link_settings_add_password".equals(tag)) { + SharedLinkSettingsAddPasswordType fieldValue = null; + fieldValue = SharedLinkSettingsAddPasswordType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsAddPassword(fieldValue); + } + else if ("shared_link_settings_allow_download_disabled".equals(tag)) { + SharedLinkSettingsAllowDownloadDisabledType fieldValue = null; + fieldValue = SharedLinkSettingsAllowDownloadDisabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsAllowDownloadDisabled(fieldValue); + } + else if ("shared_link_settings_allow_download_enabled".equals(tag)) { + SharedLinkSettingsAllowDownloadEnabledType fieldValue = null; + fieldValue = SharedLinkSettingsAllowDownloadEnabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsAllowDownloadEnabled(fieldValue); + } + else if ("shared_link_settings_change_audience".equals(tag)) { + SharedLinkSettingsChangeAudienceType fieldValue = null; + fieldValue = SharedLinkSettingsChangeAudienceType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsChangeAudience(fieldValue); + } + else if ("shared_link_settings_change_expiration".equals(tag)) { + SharedLinkSettingsChangeExpirationType fieldValue = null; + fieldValue = SharedLinkSettingsChangeExpirationType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsChangeExpiration(fieldValue); + } + else if ("shared_link_settings_change_password".equals(tag)) { + SharedLinkSettingsChangePasswordType fieldValue = null; + fieldValue = SharedLinkSettingsChangePasswordType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsChangePassword(fieldValue); + } + else if ("shared_link_settings_remove_expiration".equals(tag)) { + SharedLinkSettingsRemoveExpirationType fieldValue = null; + fieldValue = SharedLinkSettingsRemoveExpirationType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsRemoveExpiration(fieldValue); + } + else if ("shared_link_settings_remove_password".equals(tag)) { + SharedLinkSettingsRemovePasswordType fieldValue = null; + fieldValue = SharedLinkSettingsRemovePasswordType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkSettingsRemovePassword(fieldValue); + } + else if ("shared_link_share".equals(tag)) { + SharedLinkShareType fieldValue = null; + fieldValue = SharedLinkShareType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkShare(fieldValue); + } + else if ("shared_link_view".equals(tag)) { + SharedLinkViewType fieldValue = null; + fieldValue = SharedLinkViewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedLinkView(fieldValue); + } + else if ("shared_note_opened".equals(tag)) { + SharedNoteOpenedType fieldValue = null; + fieldValue = SharedNoteOpenedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharedNoteOpened(fieldValue); + } + else if ("shmodel_disable_downloads".equals(tag)) { + ShmodelDisableDownloadsType fieldValue = null; + fieldValue = ShmodelDisableDownloadsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.shmodelDisableDownloads(fieldValue); + } + else if ("shmodel_enable_downloads".equals(tag)) { + ShmodelEnableDownloadsType fieldValue = null; + fieldValue = ShmodelEnableDownloadsType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.shmodelEnableDownloads(fieldValue); + } + else if ("shmodel_group_share".equals(tag)) { + ShmodelGroupShareType fieldValue = null; + fieldValue = ShmodelGroupShareType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.shmodelGroupShare(fieldValue); + } + else if ("showcase_access_granted".equals(tag)) { + ShowcaseAccessGrantedType fieldValue = null; + fieldValue = ShowcaseAccessGrantedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseAccessGranted(fieldValue); + } + else if ("showcase_add_member".equals(tag)) { + ShowcaseAddMemberType fieldValue = null; + fieldValue = ShowcaseAddMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseAddMember(fieldValue); + } + else if ("showcase_archived".equals(tag)) { + ShowcaseArchivedType fieldValue = null; + fieldValue = ShowcaseArchivedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseArchived(fieldValue); + } + else if ("showcase_created".equals(tag)) { + ShowcaseCreatedType fieldValue = null; + fieldValue = ShowcaseCreatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseCreated(fieldValue); + } + else if ("showcase_delete_comment".equals(tag)) { + ShowcaseDeleteCommentType fieldValue = null; + fieldValue = ShowcaseDeleteCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseDeleteComment(fieldValue); + } + else if ("showcase_edited".equals(tag)) { + ShowcaseEditedType fieldValue = null; + fieldValue = ShowcaseEditedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseEdited(fieldValue); + } + else if ("showcase_edit_comment".equals(tag)) { + ShowcaseEditCommentType fieldValue = null; + fieldValue = ShowcaseEditCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseEditComment(fieldValue); + } + else if ("showcase_file_added".equals(tag)) { + ShowcaseFileAddedType fieldValue = null; + fieldValue = ShowcaseFileAddedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseFileAdded(fieldValue); + } + else if ("showcase_file_download".equals(tag)) { + ShowcaseFileDownloadType fieldValue = null; + fieldValue = ShowcaseFileDownloadType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseFileDownload(fieldValue); + } + else if ("showcase_file_removed".equals(tag)) { + ShowcaseFileRemovedType fieldValue = null; + fieldValue = ShowcaseFileRemovedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseFileRemoved(fieldValue); + } + else if ("showcase_file_view".equals(tag)) { + ShowcaseFileViewType fieldValue = null; + fieldValue = ShowcaseFileViewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseFileView(fieldValue); + } + else if ("showcase_permanently_deleted".equals(tag)) { + ShowcasePermanentlyDeletedType fieldValue = null; + fieldValue = ShowcasePermanentlyDeletedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcasePermanentlyDeleted(fieldValue); + } + else if ("showcase_post_comment".equals(tag)) { + ShowcasePostCommentType fieldValue = null; + fieldValue = ShowcasePostCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcasePostComment(fieldValue); + } + else if ("showcase_remove_member".equals(tag)) { + ShowcaseRemoveMemberType fieldValue = null; + fieldValue = ShowcaseRemoveMemberType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseRemoveMember(fieldValue); + } + else if ("showcase_renamed".equals(tag)) { + ShowcaseRenamedType fieldValue = null; + fieldValue = ShowcaseRenamedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseRenamed(fieldValue); + } + else if ("showcase_request_access".equals(tag)) { + ShowcaseRequestAccessType fieldValue = null; + fieldValue = ShowcaseRequestAccessType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseRequestAccess(fieldValue); + } + else if ("showcase_resolve_comment".equals(tag)) { + ShowcaseResolveCommentType fieldValue = null; + fieldValue = ShowcaseResolveCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseResolveComment(fieldValue); + } + else if ("showcase_restored".equals(tag)) { + ShowcaseRestoredType fieldValue = null; + fieldValue = ShowcaseRestoredType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseRestored(fieldValue); + } + else if ("showcase_trashed".equals(tag)) { + ShowcaseTrashedType fieldValue = null; + fieldValue = ShowcaseTrashedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseTrashed(fieldValue); + } + else if ("showcase_trashed_deprecated".equals(tag)) { + ShowcaseTrashedDeprecatedType fieldValue = null; + fieldValue = ShowcaseTrashedDeprecatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseTrashedDeprecated(fieldValue); + } + else if ("showcase_unresolve_comment".equals(tag)) { + ShowcaseUnresolveCommentType fieldValue = null; + fieldValue = ShowcaseUnresolveCommentType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseUnresolveComment(fieldValue); + } + else if ("showcase_untrashed".equals(tag)) { + ShowcaseUntrashedType fieldValue = null; + fieldValue = ShowcaseUntrashedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseUntrashed(fieldValue); + } + else if ("showcase_untrashed_deprecated".equals(tag)) { + ShowcaseUntrashedDeprecatedType fieldValue = null; + fieldValue = ShowcaseUntrashedDeprecatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseUntrashedDeprecated(fieldValue); + } + else if ("showcase_view".equals(tag)) { + ShowcaseViewType fieldValue = null; + fieldValue = ShowcaseViewType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseView(fieldValue); + } + else if ("sso_add_cert".equals(tag)) { + SsoAddCertType fieldValue = null; + fieldValue = SsoAddCertType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoAddCert(fieldValue); + } + else if ("sso_add_login_url".equals(tag)) { + SsoAddLoginUrlType fieldValue = null; + fieldValue = SsoAddLoginUrlType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoAddLoginUrl(fieldValue); + } + else if ("sso_add_logout_url".equals(tag)) { + SsoAddLogoutUrlType fieldValue = null; + fieldValue = SsoAddLogoutUrlType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoAddLogoutUrl(fieldValue); + } + else if ("sso_change_cert".equals(tag)) { + SsoChangeCertType fieldValue = null; + fieldValue = SsoChangeCertType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoChangeCert(fieldValue); + } + else if ("sso_change_login_url".equals(tag)) { + SsoChangeLoginUrlType fieldValue = null; + fieldValue = SsoChangeLoginUrlType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoChangeLoginUrl(fieldValue); + } + else if ("sso_change_logout_url".equals(tag)) { + SsoChangeLogoutUrlType fieldValue = null; + fieldValue = SsoChangeLogoutUrlType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoChangeLogoutUrl(fieldValue); + } + else if ("sso_change_saml_identity_mode".equals(tag)) { + SsoChangeSamlIdentityModeType fieldValue = null; + fieldValue = SsoChangeSamlIdentityModeType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoChangeSamlIdentityMode(fieldValue); + } + else if ("sso_remove_cert".equals(tag)) { + SsoRemoveCertType fieldValue = null; + fieldValue = SsoRemoveCertType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoRemoveCert(fieldValue); + } + else if ("sso_remove_login_url".equals(tag)) { + SsoRemoveLoginUrlType fieldValue = null; + fieldValue = SsoRemoveLoginUrlType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoRemoveLoginUrl(fieldValue); + } + else if ("sso_remove_logout_url".equals(tag)) { + SsoRemoveLogoutUrlType fieldValue = null; + fieldValue = SsoRemoveLogoutUrlType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoRemoveLogoutUrl(fieldValue); + } + else if ("team_folder_change_status".equals(tag)) { + TeamFolderChangeStatusType fieldValue = null; + fieldValue = TeamFolderChangeStatusType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamFolderChangeStatus(fieldValue); + } + else if ("team_folder_create".equals(tag)) { + TeamFolderCreateType fieldValue = null; + fieldValue = TeamFolderCreateType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamFolderCreate(fieldValue); + } + else if ("team_folder_downgrade".equals(tag)) { + TeamFolderDowngradeType fieldValue = null; + fieldValue = TeamFolderDowngradeType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamFolderDowngrade(fieldValue); + } + else if ("team_folder_permanently_delete".equals(tag)) { + TeamFolderPermanentlyDeleteType fieldValue = null; + fieldValue = TeamFolderPermanentlyDeleteType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamFolderPermanentlyDelete(fieldValue); + } + else if ("team_folder_rename".equals(tag)) { + TeamFolderRenameType fieldValue = null; + fieldValue = TeamFolderRenameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamFolderRename(fieldValue); + } + else if ("team_selective_sync_settings_changed".equals(tag)) { + TeamSelectiveSyncSettingsChangedType fieldValue = null; + fieldValue = TeamSelectiveSyncSettingsChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamSelectiveSyncSettingsChanged(fieldValue); + } + else if ("account_capture_change_policy".equals(tag)) { + AccountCaptureChangePolicyType fieldValue = null; + fieldValue = AccountCaptureChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.accountCaptureChangePolicy(fieldValue); + } + else if ("admin_email_reminders_changed".equals(tag)) { + AdminEmailRemindersChangedType fieldValue = null; + fieldValue = AdminEmailRemindersChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.adminEmailRemindersChanged(fieldValue); + } + else if ("allow_download_disabled".equals(tag)) { + AllowDownloadDisabledType fieldValue = null; + fieldValue = AllowDownloadDisabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.allowDownloadDisabled(fieldValue); + } + else if ("allow_download_enabled".equals(tag)) { + AllowDownloadEnabledType fieldValue = null; + fieldValue = AllowDownloadEnabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.allowDownloadEnabled(fieldValue); + } + else if ("app_permissions_changed".equals(tag)) { + AppPermissionsChangedType fieldValue = null; + fieldValue = AppPermissionsChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.appPermissionsChanged(fieldValue); + } + else if ("camera_uploads_policy_changed".equals(tag)) { + CameraUploadsPolicyChangedType fieldValue = null; + fieldValue = CameraUploadsPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.cameraUploadsPolicyChanged(fieldValue); + } + else if ("capture_transcript_policy_changed".equals(tag)) { + CaptureTranscriptPolicyChangedType fieldValue = null; + fieldValue = CaptureTranscriptPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.captureTranscriptPolicyChanged(fieldValue); + } + else if ("classification_change_policy".equals(tag)) { + ClassificationChangePolicyType fieldValue = null; + fieldValue = ClassificationChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.classificationChangePolicy(fieldValue); + } + else if ("computer_backup_policy_changed".equals(tag)) { + ComputerBackupPolicyChangedType fieldValue = null; + fieldValue = ComputerBackupPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.computerBackupPolicyChanged(fieldValue); + } + else if ("content_administration_policy_changed".equals(tag)) { + ContentAdministrationPolicyChangedType fieldValue = null; + fieldValue = ContentAdministrationPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.contentAdministrationPolicyChanged(fieldValue); + } + else if ("data_placement_restriction_change_policy".equals(tag)) { + DataPlacementRestrictionChangePolicyType fieldValue = null; + fieldValue = DataPlacementRestrictionChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.dataPlacementRestrictionChangePolicy(fieldValue); + } + else if ("data_placement_restriction_satisfy_policy".equals(tag)) { + DataPlacementRestrictionSatisfyPolicyType fieldValue = null; + fieldValue = DataPlacementRestrictionSatisfyPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.dataPlacementRestrictionSatisfyPolicy(fieldValue); + } + else if ("device_approvals_add_exception".equals(tag)) { + DeviceApprovalsAddExceptionType fieldValue = null; + fieldValue = DeviceApprovalsAddExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceApprovalsAddException(fieldValue); + } + else if ("device_approvals_change_desktop_policy".equals(tag)) { + DeviceApprovalsChangeDesktopPolicyType fieldValue = null; + fieldValue = DeviceApprovalsChangeDesktopPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceApprovalsChangeDesktopPolicy(fieldValue); + } + else if ("device_approvals_change_mobile_policy".equals(tag)) { + DeviceApprovalsChangeMobilePolicyType fieldValue = null; + fieldValue = DeviceApprovalsChangeMobilePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceApprovalsChangeMobilePolicy(fieldValue); + } + else if ("device_approvals_change_overage_action".equals(tag)) { + DeviceApprovalsChangeOverageActionType fieldValue = null; + fieldValue = DeviceApprovalsChangeOverageActionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceApprovalsChangeOverageAction(fieldValue); + } + else if ("device_approvals_change_unlink_action".equals(tag)) { + DeviceApprovalsChangeUnlinkActionType fieldValue = null; + fieldValue = DeviceApprovalsChangeUnlinkActionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceApprovalsChangeUnlinkAction(fieldValue); + } + else if ("device_approvals_remove_exception".equals(tag)) { + DeviceApprovalsRemoveExceptionType fieldValue = null; + fieldValue = DeviceApprovalsRemoveExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.deviceApprovalsRemoveException(fieldValue); + } + else if ("directory_restrictions_add_members".equals(tag)) { + DirectoryRestrictionsAddMembersType fieldValue = null; + fieldValue = DirectoryRestrictionsAddMembersType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.directoryRestrictionsAddMembers(fieldValue); + } + else if ("directory_restrictions_remove_members".equals(tag)) { + DirectoryRestrictionsRemoveMembersType fieldValue = null; + fieldValue = DirectoryRestrictionsRemoveMembersType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.directoryRestrictionsRemoveMembers(fieldValue); + } + else if ("dropbox_passwords_policy_changed".equals(tag)) { + DropboxPasswordsPolicyChangedType fieldValue = null; + fieldValue = DropboxPasswordsPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.dropboxPasswordsPolicyChanged(fieldValue); + } + else if ("email_ingest_policy_changed".equals(tag)) { + EmailIngestPolicyChangedType fieldValue = null; + fieldValue = EmailIngestPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emailIngestPolicyChanged(fieldValue); + } + else if ("emm_add_exception".equals(tag)) { + EmmAddExceptionType fieldValue = null; + fieldValue = EmmAddExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emmAddException(fieldValue); + } + else if ("emm_change_policy".equals(tag)) { + EmmChangePolicyType fieldValue = null; + fieldValue = EmmChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emmChangePolicy(fieldValue); + } + else if ("emm_remove_exception".equals(tag)) { + EmmRemoveExceptionType fieldValue = null; + fieldValue = EmmRemoveExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.emmRemoveException(fieldValue); + } + else if ("extended_version_history_change_policy".equals(tag)) { + ExtendedVersionHistoryChangePolicyType fieldValue = null; + fieldValue = ExtendedVersionHistoryChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.extendedVersionHistoryChangePolicy(fieldValue); + } + else if ("external_drive_backup_policy_changed".equals(tag)) { + ExternalDriveBackupPolicyChangedType fieldValue = null; + fieldValue = ExternalDriveBackupPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.externalDriveBackupPolicyChanged(fieldValue); + } + else if ("file_comments_change_policy".equals(tag)) { + FileCommentsChangePolicyType fieldValue = null; + fieldValue = FileCommentsChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileCommentsChangePolicy(fieldValue); + } + else if ("file_locking_policy_changed".equals(tag)) { + FileLockingPolicyChangedType fieldValue = null; + fieldValue = FileLockingPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileLockingPolicyChanged(fieldValue); + } + else if ("file_provider_migration_policy_changed".equals(tag)) { + FileProviderMigrationPolicyChangedType fieldValue = null; + fieldValue = FileProviderMigrationPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileProviderMigrationPolicyChanged(fieldValue); + } + else if ("file_requests_change_policy".equals(tag)) { + FileRequestsChangePolicyType fieldValue = null; + fieldValue = FileRequestsChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestsChangePolicy(fieldValue); + } + else if ("file_requests_emails_enabled".equals(tag)) { + FileRequestsEmailsEnabledType fieldValue = null; + fieldValue = FileRequestsEmailsEnabledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestsEmailsEnabled(fieldValue); + } + else if ("file_requests_emails_restricted_to_team_only".equals(tag)) { + FileRequestsEmailsRestrictedToTeamOnlyType fieldValue = null; + fieldValue = FileRequestsEmailsRestrictedToTeamOnlyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileRequestsEmailsRestrictedToTeamOnly(fieldValue); + } + else if ("file_transfers_policy_changed".equals(tag)) { + FileTransfersPolicyChangedType fieldValue = null; + fieldValue = FileTransfersPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.fileTransfersPolicyChanged(fieldValue); + } + else if ("folder_link_restriction_policy_changed".equals(tag)) { + FolderLinkRestrictionPolicyChangedType fieldValue = null; + fieldValue = FolderLinkRestrictionPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.folderLinkRestrictionPolicyChanged(fieldValue); + } + else if ("google_sso_change_policy".equals(tag)) { + GoogleSsoChangePolicyType fieldValue = null; + fieldValue = GoogleSsoChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.googleSsoChangePolicy(fieldValue); + } + else if ("group_user_management_change_policy".equals(tag)) { + GroupUserManagementChangePolicyType fieldValue = null; + fieldValue = GroupUserManagementChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.groupUserManagementChangePolicy(fieldValue); + } + else if ("integration_policy_changed".equals(tag)) { + IntegrationPolicyChangedType fieldValue = null; + fieldValue = IntegrationPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.integrationPolicyChanged(fieldValue); + } + else if ("invite_acceptance_email_policy_changed".equals(tag)) { + InviteAcceptanceEmailPolicyChangedType fieldValue = null; + fieldValue = InviteAcceptanceEmailPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.inviteAcceptanceEmailPolicyChanged(fieldValue); + } + else if ("member_requests_change_policy".equals(tag)) { + MemberRequestsChangePolicyType fieldValue = null; + fieldValue = MemberRequestsChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberRequestsChangePolicy(fieldValue); + } + else if ("member_send_invite_policy_changed".equals(tag)) { + MemberSendInvitePolicyChangedType fieldValue = null; + fieldValue = MemberSendInvitePolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSendInvitePolicyChanged(fieldValue); + } + else if ("member_space_limits_add_exception".equals(tag)) { + MemberSpaceLimitsAddExceptionType fieldValue = null; + fieldValue = MemberSpaceLimitsAddExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsAddException(fieldValue); + } + else if ("member_space_limits_change_caps_type_policy".equals(tag)) { + MemberSpaceLimitsChangeCapsTypePolicyType fieldValue = null; + fieldValue = MemberSpaceLimitsChangeCapsTypePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsChangeCapsTypePolicy(fieldValue); + } + else if ("member_space_limits_change_policy".equals(tag)) { + MemberSpaceLimitsChangePolicyType fieldValue = null; + fieldValue = MemberSpaceLimitsChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsChangePolicy(fieldValue); + } + else if ("member_space_limits_remove_exception".equals(tag)) { + MemberSpaceLimitsRemoveExceptionType fieldValue = null; + fieldValue = MemberSpaceLimitsRemoveExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSpaceLimitsRemoveException(fieldValue); + } + else if ("member_suggestions_change_policy".equals(tag)) { + MemberSuggestionsChangePolicyType fieldValue = null; + fieldValue = MemberSuggestionsChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.memberSuggestionsChangePolicy(fieldValue); + } + else if ("microsoft_office_addin_change_policy".equals(tag)) { + MicrosoftOfficeAddinChangePolicyType fieldValue = null; + fieldValue = MicrosoftOfficeAddinChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.microsoftOfficeAddinChangePolicy(fieldValue); + } + else if ("network_control_change_policy".equals(tag)) { + NetworkControlChangePolicyType fieldValue = null; + fieldValue = NetworkControlChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.networkControlChangePolicy(fieldValue); + } + else if ("paper_change_deployment_policy".equals(tag)) { + PaperChangeDeploymentPolicyType fieldValue = null; + fieldValue = PaperChangeDeploymentPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperChangeDeploymentPolicy(fieldValue); + } + else if ("paper_change_member_link_policy".equals(tag)) { + PaperChangeMemberLinkPolicyType fieldValue = null; + fieldValue = PaperChangeMemberLinkPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperChangeMemberLinkPolicy(fieldValue); + } + else if ("paper_change_member_policy".equals(tag)) { + PaperChangeMemberPolicyType fieldValue = null; + fieldValue = PaperChangeMemberPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperChangeMemberPolicy(fieldValue); + } + else if ("paper_change_policy".equals(tag)) { + PaperChangePolicyType fieldValue = null; + fieldValue = PaperChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperChangePolicy(fieldValue); + } + else if ("paper_default_folder_policy_changed".equals(tag)) { + PaperDefaultFolderPolicyChangedType fieldValue = null; + fieldValue = PaperDefaultFolderPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDefaultFolderPolicyChanged(fieldValue); + } + else if ("paper_desktop_policy_changed".equals(tag)) { + PaperDesktopPolicyChangedType fieldValue = null; + fieldValue = PaperDesktopPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperDesktopPolicyChanged(fieldValue); + } + else if ("paper_enabled_users_group_addition".equals(tag)) { + PaperEnabledUsersGroupAdditionType fieldValue = null; + fieldValue = PaperEnabledUsersGroupAdditionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperEnabledUsersGroupAddition(fieldValue); + } + else if ("paper_enabled_users_group_removal".equals(tag)) { + PaperEnabledUsersGroupRemovalType fieldValue = null; + fieldValue = PaperEnabledUsersGroupRemovalType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.paperEnabledUsersGroupRemoval(fieldValue); + } + else if ("password_strength_requirements_change_policy".equals(tag)) { + PasswordStrengthRequirementsChangePolicyType fieldValue = null; + fieldValue = PasswordStrengthRequirementsChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.passwordStrengthRequirementsChangePolicy(fieldValue); + } + else if ("permanent_delete_change_policy".equals(tag)) { + PermanentDeleteChangePolicyType fieldValue = null; + fieldValue = PermanentDeleteChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.permanentDeleteChangePolicy(fieldValue); + } + else if ("reseller_support_change_policy".equals(tag)) { + ResellerSupportChangePolicyType fieldValue = null; + fieldValue = ResellerSupportChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.resellerSupportChangePolicy(fieldValue); + } + else if ("rewind_policy_changed".equals(tag)) { + RewindPolicyChangedType fieldValue = null; + fieldValue = RewindPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.rewindPolicyChanged(fieldValue); + } + else if ("send_for_signature_policy_changed".equals(tag)) { + SendForSignaturePolicyChangedType fieldValue = null; + fieldValue = SendForSignaturePolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sendForSignaturePolicyChanged(fieldValue); + } + else if ("sharing_change_folder_join_policy".equals(tag)) { + SharingChangeFolderJoinPolicyType fieldValue = null; + fieldValue = SharingChangeFolderJoinPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharingChangeFolderJoinPolicy(fieldValue); + } + else if ("sharing_change_link_allow_change_expiration_policy".equals(tag)) { + SharingChangeLinkAllowChangeExpirationPolicyType fieldValue = null; + fieldValue = SharingChangeLinkAllowChangeExpirationPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharingChangeLinkAllowChangeExpirationPolicy(fieldValue); + } + else if ("sharing_change_link_default_expiration_policy".equals(tag)) { + SharingChangeLinkDefaultExpirationPolicyType fieldValue = null; + fieldValue = SharingChangeLinkDefaultExpirationPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharingChangeLinkDefaultExpirationPolicy(fieldValue); + } + else if ("sharing_change_link_enforce_password_policy".equals(tag)) { + SharingChangeLinkEnforcePasswordPolicyType fieldValue = null; + fieldValue = SharingChangeLinkEnforcePasswordPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharingChangeLinkEnforcePasswordPolicy(fieldValue); + } + else if ("sharing_change_link_policy".equals(tag)) { + SharingChangeLinkPolicyType fieldValue = null; + fieldValue = SharingChangeLinkPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharingChangeLinkPolicy(fieldValue); + } + else if ("sharing_change_member_policy".equals(tag)) { + SharingChangeMemberPolicyType fieldValue = null; + fieldValue = SharingChangeMemberPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.sharingChangeMemberPolicy(fieldValue); + } + else if ("showcase_change_download_policy".equals(tag)) { + ShowcaseChangeDownloadPolicyType fieldValue = null; + fieldValue = ShowcaseChangeDownloadPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseChangeDownloadPolicy(fieldValue); + } + else if ("showcase_change_enabled_policy".equals(tag)) { + ShowcaseChangeEnabledPolicyType fieldValue = null; + fieldValue = ShowcaseChangeEnabledPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseChangeEnabledPolicy(fieldValue); + } + else if ("showcase_change_external_sharing_policy".equals(tag)) { + ShowcaseChangeExternalSharingPolicyType fieldValue = null; + fieldValue = ShowcaseChangeExternalSharingPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.showcaseChangeExternalSharingPolicy(fieldValue); + } + else if ("smarter_smart_sync_policy_changed".equals(tag)) { + SmarterSmartSyncPolicyChangedType fieldValue = null; + fieldValue = SmarterSmartSyncPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.smarterSmartSyncPolicyChanged(fieldValue); + } + else if ("smart_sync_change_policy".equals(tag)) { + SmartSyncChangePolicyType fieldValue = null; + fieldValue = SmartSyncChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.smartSyncChangePolicy(fieldValue); + } + else if ("smart_sync_not_opt_out".equals(tag)) { + SmartSyncNotOptOutType fieldValue = null; + fieldValue = SmartSyncNotOptOutType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.smartSyncNotOptOut(fieldValue); + } + else if ("smart_sync_opt_out".equals(tag)) { + SmartSyncOptOutType fieldValue = null; + fieldValue = SmartSyncOptOutType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.smartSyncOptOut(fieldValue); + } + else if ("sso_change_policy".equals(tag)) { + SsoChangePolicyType fieldValue = null; + fieldValue = SsoChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.ssoChangePolicy(fieldValue); + } + else if ("team_branding_policy_changed".equals(tag)) { + TeamBrandingPolicyChangedType fieldValue = null; + fieldValue = TeamBrandingPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamBrandingPolicyChanged(fieldValue); + } + else if ("team_extensions_policy_changed".equals(tag)) { + TeamExtensionsPolicyChangedType fieldValue = null; + fieldValue = TeamExtensionsPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamExtensionsPolicyChanged(fieldValue); + } + else if ("team_selective_sync_policy_changed".equals(tag)) { + TeamSelectiveSyncPolicyChangedType fieldValue = null; + fieldValue = TeamSelectiveSyncPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamSelectiveSyncPolicyChanged(fieldValue); + } + else if ("team_sharing_whitelist_subjects_changed".equals(tag)) { + TeamSharingWhitelistSubjectsChangedType fieldValue = null; + fieldValue = TeamSharingWhitelistSubjectsChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamSharingWhitelistSubjectsChanged(fieldValue); + } + else if ("tfa_add_exception".equals(tag)) { + TfaAddExceptionType fieldValue = null; + fieldValue = TfaAddExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaAddException(fieldValue); + } + else if ("tfa_change_policy".equals(tag)) { + TfaChangePolicyType fieldValue = null; + fieldValue = TfaChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaChangePolicy(fieldValue); + } + else if ("tfa_remove_exception".equals(tag)) { + TfaRemoveExceptionType fieldValue = null; + fieldValue = TfaRemoveExceptionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaRemoveException(fieldValue); + } + else if ("two_account_change_policy".equals(tag)) { + TwoAccountChangePolicyType fieldValue = null; + fieldValue = TwoAccountChangePolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.twoAccountChangePolicy(fieldValue); + } + else if ("viewer_info_policy_changed".equals(tag)) { + ViewerInfoPolicyChangedType fieldValue = null; + fieldValue = ViewerInfoPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.viewerInfoPolicyChanged(fieldValue); + } + else if ("watermarking_policy_changed".equals(tag)) { + WatermarkingPolicyChangedType fieldValue = null; + fieldValue = WatermarkingPolicyChangedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.watermarkingPolicyChanged(fieldValue); + } + else if ("web_sessions_change_active_session_limit".equals(tag)) { + WebSessionsChangeActiveSessionLimitType fieldValue = null; + fieldValue = WebSessionsChangeActiveSessionLimitType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.webSessionsChangeActiveSessionLimit(fieldValue); + } + else if ("web_sessions_change_fixed_length_policy".equals(tag)) { + WebSessionsChangeFixedLengthPolicyType fieldValue = null; + fieldValue = WebSessionsChangeFixedLengthPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.webSessionsChangeFixedLengthPolicy(fieldValue); + } + else if ("web_sessions_change_idle_length_policy".equals(tag)) { + WebSessionsChangeIdleLengthPolicyType fieldValue = null; + fieldValue = WebSessionsChangeIdleLengthPolicyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.webSessionsChangeIdleLengthPolicy(fieldValue); + } + else if ("data_residency_migration_request_successful".equals(tag)) { + DataResidencyMigrationRequestSuccessfulType fieldValue = null; + fieldValue = DataResidencyMigrationRequestSuccessfulType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.dataResidencyMigrationRequestSuccessful(fieldValue); + } + else if ("data_residency_migration_request_unsuccessful".equals(tag)) { + DataResidencyMigrationRequestUnsuccessfulType fieldValue = null; + fieldValue = DataResidencyMigrationRequestUnsuccessfulType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.dataResidencyMigrationRequestUnsuccessful(fieldValue); + } + else if ("team_merge_from".equals(tag)) { + TeamMergeFromType fieldValue = null; + fieldValue = TeamMergeFromType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeFrom(fieldValue); + } + else if ("team_merge_to".equals(tag)) { + TeamMergeToType fieldValue = null; + fieldValue = TeamMergeToType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeTo(fieldValue); + } + else if ("team_profile_add_background".equals(tag)) { + TeamProfileAddBackgroundType fieldValue = null; + fieldValue = TeamProfileAddBackgroundType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileAddBackground(fieldValue); + } + else if ("team_profile_add_logo".equals(tag)) { + TeamProfileAddLogoType fieldValue = null; + fieldValue = TeamProfileAddLogoType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileAddLogo(fieldValue); + } + else if ("team_profile_change_background".equals(tag)) { + TeamProfileChangeBackgroundType fieldValue = null; + fieldValue = TeamProfileChangeBackgroundType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileChangeBackground(fieldValue); + } + else if ("team_profile_change_default_language".equals(tag)) { + TeamProfileChangeDefaultLanguageType fieldValue = null; + fieldValue = TeamProfileChangeDefaultLanguageType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileChangeDefaultLanguage(fieldValue); + } + else if ("team_profile_change_logo".equals(tag)) { + TeamProfileChangeLogoType fieldValue = null; + fieldValue = TeamProfileChangeLogoType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileChangeLogo(fieldValue); + } + else if ("team_profile_change_name".equals(tag)) { + TeamProfileChangeNameType fieldValue = null; + fieldValue = TeamProfileChangeNameType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileChangeName(fieldValue); + } + else if ("team_profile_remove_background".equals(tag)) { + TeamProfileRemoveBackgroundType fieldValue = null; + fieldValue = TeamProfileRemoveBackgroundType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileRemoveBackground(fieldValue); + } + else if ("team_profile_remove_logo".equals(tag)) { + TeamProfileRemoveLogoType fieldValue = null; + fieldValue = TeamProfileRemoveLogoType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamProfileRemoveLogo(fieldValue); + } + else if ("tfa_add_backup_phone".equals(tag)) { + TfaAddBackupPhoneType fieldValue = null; + fieldValue = TfaAddBackupPhoneType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaAddBackupPhone(fieldValue); + } + else if ("tfa_add_security_key".equals(tag)) { + TfaAddSecurityKeyType fieldValue = null; + fieldValue = TfaAddSecurityKeyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaAddSecurityKey(fieldValue); + } + else if ("tfa_change_backup_phone".equals(tag)) { + TfaChangeBackupPhoneType fieldValue = null; + fieldValue = TfaChangeBackupPhoneType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaChangeBackupPhone(fieldValue); + } + else if ("tfa_change_status".equals(tag)) { + TfaChangeStatusType fieldValue = null; + fieldValue = TfaChangeStatusType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaChangeStatus(fieldValue); + } + else if ("tfa_remove_backup_phone".equals(tag)) { + TfaRemoveBackupPhoneType fieldValue = null; + fieldValue = TfaRemoveBackupPhoneType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaRemoveBackupPhone(fieldValue); + } + else if ("tfa_remove_security_key".equals(tag)) { + TfaRemoveSecurityKeyType fieldValue = null; + fieldValue = TfaRemoveSecurityKeyType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaRemoveSecurityKey(fieldValue); + } + else if ("tfa_reset".equals(tag)) { + TfaResetType fieldValue = null; + fieldValue = TfaResetType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.tfaReset(fieldValue); + } + else if ("changed_enterprise_admin_role".equals(tag)) { + ChangedEnterpriseAdminRoleType fieldValue = null; + fieldValue = ChangedEnterpriseAdminRoleType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.changedEnterpriseAdminRole(fieldValue); + } + else if ("changed_enterprise_connected_team_status".equals(tag)) { + ChangedEnterpriseConnectedTeamStatusType fieldValue = null; + fieldValue = ChangedEnterpriseConnectedTeamStatusType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.changedEnterpriseConnectedTeamStatus(fieldValue); + } + else if ("ended_enterprise_admin_session".equals(tag)) { + EndedEnterpriseAdminSessionType fieldValue = null; + fieldValue = EndedEnterpriseAdminSessionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.endedEnterpriseAdminSession(fieldValue); + } + else if ("ended_enterprise_admin_session_deprecated".equals(tag)) { + EndedEnterpriseAdminSessionDeprecatedType fieldValue = null; + fieldValue = EndedEnterpriseAdminSessionDeprecatedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.endedEnterpriseAdminSessionDeprecated(fieldValue); + } + else if ("enterprise_settings_locking".equals(tag)) { + EnterpriseSettingsLockingType fieldValue = null; + fieldValue = EnterpriseSettingsLockingType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.enterpriseSettingsLocking(fieldValue); + } + else if ("guest_admin_change_status".equals(tag)) { + GuestAdminChangeStatusType fieldValue = null; + fieldValue = GuestAdminChangeStatusType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.guestAdminChangeStatus(fieldValue); + } + else if ("started_enterprise_admin_session".equals(tag)) { + StartedEnterpriseAdminSessionType fieldValue = null; + fieldValue = StartedEnterpriseAdminSessionType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.startedEnterpriseAdminSession(fieldValue); + } + else if ("team_merge_request_accepted".equals(tag)) { + TeamMergeRequestAcceptedType fieldValue = null; + fieldValue = TeamMergeRequestAcceptedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestAccepted(fieldValue); + } + else if ("team_merge_request_accepted_shown_to_primary_team".equals(tag)) { + TeamMergeRequestAcceptedShownToPrimaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestAcceptedShownToPrimaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestAcceptedShownToPrimaryTeam(fieldValue); + } + else if ("team_merge_request_accepted_shown_to_secondary_team".equals(tag)) { + TeamMergeRequestAcceptedShownToSecondaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestAcceptedShownToSecondaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestAcceptedShownToSecondaryTeam(fieldValue); + } + else if ("team_merge_request_auto_canceled".equals(tag)) { + TeamMergeRequestAutoCanceledType fieldValue = null; + fieldValue = TeamMergeRequestAutoCanceledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestAutoCanceled(fieldValue); + } + else if ("team_merge_request_canceled".equals(tag)) { + TeamMergeRequestCanceledType fieldValue = null; + fieldValue = TeamMergeRequestCanceledType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestCanceled(fieldValue); + } + else if ("team_merge_request_canceled_shown_to_primary_team".equals(tag)) { + TeamMergeRequestCanceledShownToPrimaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestCanceledShownToPrimaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestCanceledShownToPrimaryTeam(fieldValue); + } + else if ("team_merge_request_canceled_shown_to_secondary_team".equals(tag)) { + TeamMergeRequestCanceledShownToSecondaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestCanceledShownToSecondaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestCanceledShownToSecondaryTeam(fieldValue); + } + else if ("team_merge_request_expired".equals(tag)) { + TeamMergeRequestExpiredType fieldValue = null; + fieldValue = TeamMergeRequestExpiredType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestExpired(fieldValue); + } + else if ("team_merge_request_expired_shown_to_primary_team".equals(tag)) { + TeamMergeRequestExpiredShownToPrimaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestExpiredShownToPrimaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestExpiredShownToPrimaryTeam(fieldValue); + } + else if ("team_merge_request_expired_shown_to_secondary_team".equals(tag)) { + TeamMergeRequestExpiredShownToSecondaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestExpiredShownToSecondaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestExpiredShownToSecondaryTeam(fieldValue); + } + else if ("team_merge_request_rejected_shown_to_primary_team".equals(tag)) { + TeamMergeRequestRejectedShownToPrimaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestRejectedShownToPrimaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestRejectedShownToPrimaryTeam(fieldValue); + } + else if ("team_merge_request_rejected_shown_to_secondary_team".equals(tag)) { + TeamMergeRequestRejectedShownToSecondaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestRejectedShownToSecondaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestRejectedShownToSecondaryTeam(fieldValue); + } + else if ("team_merge_request_reminder".equals(tag)) { + TeamMergeRequestReminderType fieldValue = null; + fieldValue = TeamMergeRequestReminderType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestReminder(fieldValue); + } + else if ("team_merge_request_reminder_shown_to_primary_team".equals(tag)) { + TeamMergeRequestReminderShownToPrimaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestReminderShownToPrimaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestReminderShownToPrimaryTeam(fieldValue); + } + else if ("team_merge_request_reminder_shown_to_secondary_team".equals(tag)) { + TeamMergeRequestReminderShownToSecondaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestReminderShownToSecondaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestReminderShownToSecondaryTeam(fieldValue); + } + else if ("team_merge_request_revoked".equals(tag)) { + TeamMergeRequestRevokedType fieldValue = null; + fieldValue = TeamMergeRequestRevokedType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestRevoked(fieldValue); + } + else if ("team_merge_request_sent_shown_to_primary_team".equals(tag)) { + TeamMergeRequestSentShownToPrimaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestSentShownToPrimaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestSentShownToPrimaryTeam(fieldValue); + } + else if ("team_merge_request_sent_shown_to_secondary_team".equals(tag)) { + TeamMergeRequestSentShownToSecondaryTeamType fieldValue = null; + fieldValue = TeamMergeRequestSentShownToSecondaryTeamType.Serializer.INSTANCE.deserialize(p, true); + value = EventType.teamMergeRequestSentShownToSecondaryTeam(fieldValue); + } + else { + value = EventType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventTypeArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventTypeArg.java new file mode 100644 index 000000000..2d22e037f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/EventTypeArg.java @@ -0,0 +1,5691 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The type of the event. + */ +public enum EventTypeArg { + // union team_log.EventTypeArg (team_log_generated.stone) + /** + * (admin_alerting) Changed an alert state + */ + ADMIN_ALERTING_ALERT_STATE_CHANGED, + /** + * (admin_alerting) Changed an alert setting + */ + ADMIN_ALERTING_CHANGED_ALERT_CONFIG, + /** + * (admin_alerting) Triggered security alert + */ + ADMIN_ALERTING_TRIGGERED_ALERT, + /** + * (admin_alerting) Completed ransomware restore process + */ + RANSOMWARE_RESTORE_PROCESS_COMPLETED, + /** + * (admin_alerting) Started ransomware restore process + */ + RANSOMWARE_RESTORE_PROCESS_STARTED, + /** + * (apps) Failed to connect app for member + */ + APP_BLOCKED_BY_PERMISSIONS, + /** + * (apps) Linked app for team + */ + APP_LINK_TEAM, + /** + * (apps) Linked app for member + */ + APP_LINK_USER, + /** + * (apps) Unlinked app for team + */ + APP_UNLINK_TEAM, + /** + * (apps) Unlinked app for member + */ + APP_UNLINK_USER, + /** + * (apps) Connected integration for member + */ + INTEGRATION_CONNECTED, + /** + * (apps) Disconnected integration for member + */ + INTEGRATION_DISCONNECTED, + /** + * (comments) Added file comment + */ + FILE_ADD_COMMENT, + /** + * (comments) Subscribed to or unsubscribed from comment notifications for + * file + */ + FILE_CHANGE_COMMENT_SUBSCRIPTION, + /** + * (comments) Deleted file comment + */ + FILE_DELETE_COMMENT, + /** + * (comments) Edited file comment + */ + FILE_EDIT_COMMENT, + /** + * (comments) Liked file comment (deprecated, no longer logged) + */ + FILE_LIKE_COMMENT, + /** + * (comments) Resolved file comment + */ + FILE_RESOLVE_COMMENT, + /** + * (comments) Unliked file comment (deprecated, no longer logged) + */ + FILE_UNLIKE_COMMENT, + /** + * (comments) Unresolved file comment + */ + FILE_UNRESOLVE_COMMENT, + /** + * (data_governance) Added folders to policy + */ + GOVERNANCE_POLICY_ADD_FOLDERS, + /** + * (data_governance) Couldn't add a folder to a policy + */ + GOVERNANCE_POLICY_ADD_FOLDER_FAILED, + /** + * (data_governance) Content disposed + */ + GOVERNANCE_POLICY_CONTENT_DISPOSED, + /** + * (data_governance) Activated a new policy + */ + GOVERNANCE_POLICY_CREATE, + /** + * (data_governance) Deleted a policy + */ + GOVERNANCE_POLICY_DELETE, + /** + * (data_governance) Edited policy + */ + GOVERNANCE_POLICY_EDIT_DETAILS, + /** + * (data_governance) Changed policy duration + */ + GOVERNANCE_POLICY_EDIT_DURATION, + /** + * (data_governance) Created a policy download + */ + GOVERNANCE_POLICY_EXPORT_CREATED, + /** + * (data_governance) Removed a policy download + */ + GOVERNANCE_POLICY_EXPORT_REMOVED, + /** + * (data_governance) Removed folders from policy + */ + GOVERNANCE_POLICY_REMOVE_FOLDERS, + /** + * (data_governance) Created a summary report for a policy + */ + GOVERNANCE_POLICY_REPORT_CREATED, + /** + * (data_governance) Downloaded content from a policy + */ + GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED, + /** + * (data_governance) Activated a hold + */ + LEGAL_HOLDS_ACTIVATE_A_HOLD, + /** + * (data_governance) Added members to a hold + */ + LEGAL_HOLDS_ADD_MEMBERS, + /** + * (data_governance) Edited details for a hold + */ + LEGAL_HOLDS_CHANGE_HOLD_DETAILS, + /** + * (data_governance) Renamed a hold + */ + LEGAL_HOLDS_CHANGE_HOLD_NAME, + /** + * (data_governance) Exported hold + */ + LEGAL_HOLDS_EXPORT_A_HOLD, + /** + * (data_governance) Canceled export for a hold + */ + LEGAL_HOLDS_EXPORT_CANCELLED, + /** + * (data_governance) Downloaded export for a hold + */ + LEGAL_HOLDS_EXPORT_DOWNLOADED, + /** + * (data_governance) Removed export for a hold + */ + LEGAL_HOLDS_EXPORT_REMOVED, + /** + * (data_governance) Released a hold + */ + LEGAL_HOLDS_RELEASE_A_HOLD, + /** + * (data_governance) Removed members from a hold + */ + LEGAL_HOLDS_REMOVE_MEMBERS, + /** + * (data_governance) Created a summary report for a hold + */ + LEGAL_HOLDS_REPORT_A_HOLD, + /** + * (devices) Changed IP address associated with active desktop session + */ + DEVICE_CHANGE_IP_DESKTOP, + /** + * (devices) Changed IP address associated with active mobile session + */ + DEVICE_CHANGE_IP_MOBILE, + /** + * (devices) Changed IP address associated with active web session + */ + DEVICE_CHANGE_IP_WEB, + /** + * (devices) Failed to delete all files from unlinked device + */ + DEVICE_DELETE_ON_UNLINK_FAIL, + /** + * (devices) Deleted all files from unlinked device + */ + DEVICE_DELETE_ON_UNLINK_SUCCESS, + /** + * (devices) Failed to link device + */ + DEVICE_LINK_FAIL, + /** + * (devices) Linked device + */ + DEVICE_LINK_SUCCESS, + /** + * (devices) Disabled device management (deprecated, no longer logged) + */ + DEVICE_MANAGEMENT_DISABLED, + /** + * (devices) Enabled device management (deprecated, no longer logged) + */ + DEVICE_MANAGEMENT_ENABLED, + /** + * (devices) Enabled/disabled backup for computer + */ + DEVICE_SYNC_BACKUP_STATUS_CHANGED, + /** + * (devices) Disconnected device + */ + DEVICE_UNLINK, + /** + * (devices) Exported passwords + */ + DROPBOX_PASSWORDS_EXPORTED, + /** + * (devices) Enrolled new Dropbox Passwords device + */ + DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED, + /** + * (devices) Refreshed auth token used for setting up EMM + */ + EMM_REFRESH_AUTH_TOKEN, + /** + * (devices) Checked external drive backup eligibility status + */ + EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED, + /** + * (devices) Modified external drive backup + */ + EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED, + /** + * (domains) Granted/revoked option to enable account capture on team + * domains + */ + ACCOUNT_CAPTURE_CHANGE_AVAILABILITY, + /** + * (domains) Account-captured user migrated account to team + */ + ACCOUNT_CAPTURE_MIGRATE_ACCOUNT, + /** + * (domains) Sent account capture email to all unmanaged members + */ + ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT, + /** + * (domains) Account-captured user changed account email to personal email + */ + ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT, + /** + * (domains) Disabled domain invites (deprecated, no longer logged) + */ + DISABLED_DOMAIN_INVITES, + /** + * (domains) Approved user's request to join team + */ + DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM, + /** + * (domains) Declined user's request to join team + */ + DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM, + /** + * (domains) Sent domain invites to existing domain accounts (deprecated, no + * longer logged) + */ + DOMAIN_INVITES_EMAIL_EXISTING_USERS, + /** + * (domains) Requested to join team + */ + DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM, + /** + * (domains) Disabled "Automatically invite new users" (deprecated, no + * longer logged) + */ + DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO, + /** + * (domains) Enabled "Automatically invite new users" (deprecated, no longer + * logged) + */ + DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES, + /** + * (domains) Failed to verify team domain + */ + DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL, + /** + * (domains) Verified team domain + */ + DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS, + /** + * (domains) Removed domain from list of verified team domains + */ + DOMAIN_VERIFICATION_REMOVE_DOMAIN, + /** + * (domains) Enabled domain invites (deprecated, no longer logged) + */ + ENABLED_DOMAIN_INVITES, + /** + * (encryption) Canceled team encryption key deletion + */ + TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION, + /** + * (encryption) Created team encryption key + */ + TEAM_ENCRYPTION_KEY_CREATE_KEY, + /** + * (encryption) Deleted team encryption key + */ + TEAM_ENCRYPTION_KEY_DELETE_KEY, + /** + * (encryption) Disabled team encryption key + */ + TEAM_ENCRYPTION_KEY_DISABLE_KEY, + /** + * (encryption) Enabled team encryption key + */ + TEAM_ENCRYPTION_KEY_ENABLE_KEY, + /** + * (encryption) Rotated team encryption key (deprecated, no longer logged) + */ + TEAM_ENCRYPTION_KEY_ROTATE_KEY, + /** + * (encryption) Scheduled encryption key deletion + */ + TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION, + /** + * (file_operations) Applied naming convention + */ + APPLY_NAMING_CONVENTION, + /** + * (file_operations) Created folders (deprecated, no longer logged) + */ + CREATE_FOLDER, + /** + * (file_operations) Added files and/or folders + */ + FILE_ADD, + /** + * (file_operations) Added files and/or folders from automation + */ + FILE_ADD_FROM_AUTOMATION, + /** + * (file_operations) Copied files and/or folders + */ + FILE_COPY, + /** + * (file_operations) Deleted files and/or folders + */ + FILE_DELETE, + /** + * (file_operations) Downloaded files and/or folders + */ + FILE_DOWNLOAD, + /** + * (file_operations) Edited files + */ + FILE_EDIT, + /** + * (file_operations) Created copy reference to file/folder + */ + FILE_GET_COPY_REFERENCE, + /** + * (file_operations) Locked/unlocked editing for a file + */ + FILE_LOCKING_LOCK_STATUS_CHANGED, + /** + * (file_operations) Moved files and/or folders + */ + FILE_MOVE, + /** + * (file_operations) Permanently deleted files and/or folders + */ + FILE_PERMANENTLY_DELETE, + /** + * (file_operations) Previewed files and/or folders + */ + FILE_PREVIEW, + /** + * (file_operations) Renamed files and/or folders + */ + FILE_RENAME, + /** + * (file_operations) Restored deleted files and/or folders + */ + FILE_RESTORE, + /** + * (file_operations) Reverted files to previous version + */ + FILE_REVERT, + /** + * (file_operations) Rolled back file actions + */ + FILE_ROLLBACK_CHANGES, + /** + * (file_operations) Saved file/folder using copy reference + */ + FILE_SAVE_COPY_REFERENCE, + /** + * (file_operations) Updated folder overview + */ + FOLDER_OVERVIEW_DESCRIPTION_CHANGED, + /** + * (file_operations) Pinned item to folder overview + */ + FOLDER_OVERVIEW_ITEM_PINNED, + /** + * (file_operations) Unpinned item from folder overview + */ + FOLDER_OVERVIEW_ITEM_UNPINNED, + /** + * (file_operations) Added a label + */ + OBJECT_LABEL_ADDED, + /** + * (file_operations) Removed a label + */ + OBJECT_LABEL_REMOVED, + /** + * (file_operations) Updated a label's value + */ + OBJECT_LABEL_UPDATED_VALUE, + /** + * (file_operations) Organized a folder with multi-file organize + */ + ORGANIZE_FOLDER_WITH_TIDY, + /** + * (file_operations) Deleted files in Replay + */ + REPLAY_FILE_DELETE, + /** + * (file_operations) Rewound a folder + */ + REWIND_FOLDER, + /** + * (file_operations) Reverted naming convention + */ + UNDO_NAMING_CONVENTION, + /** + * (file_operations) Removed multi-file organize + */ + UNDO_ORGANIZE_FOLDER_WITH_TIDY, + /** + * (file_operations) Tagged a file + */ + USER_TAGS_ADDED, + /** + * (file_operations) Removed tags + */ + USER_TAGS_REMOVED, + /** + * (file_requests) Received files via Email to Dropbox + */ + EMAIL_INGEST_RECEIVE_FILE, + /** + * (file_requests) Changed file request + */ + FILE_REQUEST_CHANGE, + /** + * (file_requests) Closed file request + */ + FILE_REQUEST_CLOSE, + /** + * (file_requests) Created file request + */ + FILE_REQUEST_CREATE, + /** + * (file_requests) Delete file request + */ + FILE_REQUEST_DELETE, + /** + * (file_requests) Received files for file request + */ + FILE_REQUEST_RECEIVE_FILE, + /** + * (groups) Added external ID for group + */ + GROUP_ADD_EXTERNAL_ID, + /** + * (groups) Added team members to group + */ + GROUP_ADD_MEMBER, + /** + * (groups) Changed external ID for group + */ + GROUP_CHANGE_EXTERNAL_ID, + /** + * (groups) Changed group management type + */ + GROUP_CHANGE_MANAGEMENT_TYPE, + /** + * (groups) Changed manager permissions of group member + */ + GROUP_CHANGE_MEMBER_ROLE, + /** + * (groups) Created group + */ + GROUP_CREATE, + /** + * (groups) Deleted group + */ + GROUP_DELETE, + /** + * (groups) Updated group (deprecated, no longer logged) + */ + GROUP_DESCRIPTION_UPDATED, + /** + * (groups) Updated group join policy (deprecated, no longer logged) + */ + GROUP_JOIN_POLICY_UPDATED, + /** + * (groups) Moved group (deprecated, no longer logged) + */ + GROUP_MOVED, + /** + * (groups) Removed external ID for group + */ + GROUP_REMOVE_EXTERNAL_ID, + /** + * (groups) Removed team members from group + */ + GROUP_REMOVE_MEMBER, + /** + * (groups) Renamed group + */ + GROUP_RENAME, + /** + * (logins) Unlocked/locked account after failed sign in attempts + */ + ACCOUNT_LOCK_OR_UNLOCKED, + /** + * (logins) Failed to sign in via EMM (deprecated, replaced by 'Failed to + * sign in') + */ + EMM_ERROR, + /** + * (logins) Started trusted team admin session + */ + GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS, + /** + * (logins) Ended trusted team admin session + */ + GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS, + /** + * (logins) Failed to sign in + */ + LOGIN_FAIL, + /** + * (logins) Signed in + */ + LOGIN_SUCCESS, + /** + * (logins) Signed out + */ + LOGOUT, + /** + * (logins) Ended reseller support session + */ + RESELLER_SUPPORT_SESSION_END, + /** + * (logins) Started reseller support session + */ + RESELLER_SUPPORT_SESSION_START, + /** + * (logins) Ended admin sign-in-as session + */ + SIGN_IN_AS_SESSION_END, + /** + * (logins) Started admin sign-in-as session + */ + SIGN_IN_AS_SESSION_START, + /** + * (logins) Failed to sign in via SSO (deprecated, replaced by 'Failed to + * sign in') + */ + SSO_ERROR, + /** + * (members) Invited members to activate Backup + */ + BACKUP_ADMIN_INVITATION_SENT, + /** + * (members) Opened Backup invite + */ + BACKUP_INVITATION_OPENED, + /** + * (members) Created team invite link + */ + CREATE_TEAM_INVITE_LINK, + /** + * (members) Deleted team invite link + */ + DELETE_TEAM_INVITE_LINK, + /** + * (members) Added an external ID for team member + */ + MEMBER_ADD_EXTERNAL_ID, + /** + * (members) Added team member name + */ + MEMBER_ADD_NAME, + /** + * (members) Changed team member admin role + */ + MEMBER_CHANGE_ADMIN_ROLE, + /** + * (members) Changed team member email + */ + MEMBER_CHANGE_EMAIL, + /** + * (members) Changed the external ID for team member + */ + MEMBER_CHANGE_EXTERNAL_ID, + /** + * (members) Changed membership type (limited/full) of member (deprecated, + * no longer logged) + */ + MEMBER_CHANGE_MEMBERSHIP_TYPE, + /** + * (members) Changed team member name + */ + MEMBER_CHANGE_NAME, + /** + * (members) Changed team member reseller role + */ + MEMBER_CHANGE_RESELLER_ROLE, + /** + * (members) Changed member status (invited, joined, suspended, etc.) + */ + MEMBER_CHANGE_STATUS, + /** + * (members) Cleared manually added contacts + */ + MEMBER_DELETE_MANUAL_CONTACTS, + /** + * (members) Deleted team member profile photo + */ + MEMBER_DELETE_PROFILE_PHOTO, + /** + * (members) Permanently deleted contents of deleted team member account + */ + MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS, + /** + * (members) Removed the external ID for team member + */ + MEMBER_REMOVE_EXTERNAL_ID, + /** + * (members) Set team member profile photo + */ + MEMBER_SET_PROFILE_PHOTO, + /** + * (members) Set custom member space limit + */ + MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA, + /** + * (members) Changed custom member space limit + */ + MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA, + /** + * (members) Changed space limit status + */ + MEMBER_SPACE_LIMITS_CHANGE_STATUS, + /** + * (members) Removed custom member space limit + */ + MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA, + /** + * (members) Suggested person to add to team + */ + MEMBER_SUGGEST, + /** + * (members) Transferred contents of deleted member account to another + * member + */ + MEMBER_TRANSFER_ACCOUNT_CONTENTS, + /** + * (members) Added pending secondary email + */ + PENDING_SECONDARY_EMAIL_ADDED, + /** + * (members) Deleted secondary email + */ + SECONDARY_EMAIL_DELETED, + /** + * (members) Verified secondary email + */ + SECONDARY_EMAIL_VERIFIED, + /** + * (members) Secondary mails policy changed + */ + SECONDARY_MAILS_POLICY_CHANGED, + /** + * (paper) Added Binder page (deprecated, replaced by 'Edited files') + */ + BINDER_ADD_PAGE, + /** + * (paper) Added Binder section (deprecated, replaced by 'Edited files') + */ + BINDER_ADD_SECTION, + /** + * (paper) Removed Binder page (deprecated, replaced by 'Edited files') + */ + BINDER_REMOVE_PAGE, + /** + * (paper) Removed Binder section (deprecated, replaced by 'Edited files') + */ + BINDER_REMOVE_SECTION, + /** + * (paper) Renamed Binder page (deprecated, replaced by 'Edited files') + */ + BINDER_RENAME_PAGE, + /** + * (paper) Renamed Binder section (deprecated, replaced by 'Edited files') + */ + BINDER_RENAME_SECTION, + /** + * (paper) Reordered Binder page (deprecated, replaced by 'Edited files') + */ + BINDER_REORDER_PAGE, + /** + * (paper) Reordered Binder section (deprecated, replaced by 'Edited files') + */ + BINDER_REORDER_SECTION, + /** + * (paper) Added users and/or groups to Paper doc/folder + */ + PAPER_CONTENT_ADD_MEMBER, + /** + * (paper) Added Paper doc/folder to folder + */ + PAPER_CONTENT_ADD_TO_FOLDER, + /** + * (paper) Archived Paper doc/folder + */ + PAPER_CONTENT_ARCHIVE, + /** + * (paper) Created Paper doc/folder + */ + PAPER_CONTENT_CREATE, + /** + * (paper) Permanently deleted Paper doc/folder + */ + PAPER_CONTENT_PERMANENTLY_DELETE, + /** + * (paper) Removed Paper doc/folder from folder + */ + PAPER_CONTENT_REMOVE_FROM_FOLDER, + /** + * (paper) Removed users and/or groups from Paper doc/folder + */ + PAPER_CONTENT_REMOVE_MEMBER, + /** + * (paper) Renamed Paper doc/folder + */ + PAPER_CONTENT_RENAME, + /** + * (paper) Restored archived Paper doc/folder + */ + PAPER_CONTENT_RESTORE, + /** + * (paper) Added Paper doc comment + */ + PAPER_DOC_ADD_COMMENT, + /** + * (paper) Changed member permissions for Paper doc + */ + PAPER_DOC_CHANGE_MEMBER_ROLE, + /** + * (paper) Changed sharing setting for Paper doc + */ + PAPER_DOC_CHANGE_SHARING_POLICY, + /** + * (paper) Followed/unfollowed Paper doc + */ + PAPER_DOC_CHANGE_SUBSCRIPTION, + /** + * (paper) Archived Paper doc (deprecated, no longer logged) + */ + PAPER_DOC_DELETED, + /** + * (paper) Deleted Paper doc comment + */ + PAPER_DOC_DELETE_COMMENT, + /** + * (paper) Downloaded Paper doc in specific format + */ + PAPER_DOC_DOWNLOAD, + /** + * (paper) Edited Paper doc + */ + PAPER_DOC_EDIT, + /** + * (paper) Edited Paper doc comment + */ + PAPER_DOC_EDIT_COMMENT, + /** + * (paper) Followed Paper doc (deprecated, replaced by 'Followed/unfollowed + * Paper doc') + */ + PAPER_DOC_FOLLOWED, + /** + * (paper) Mentioned user in Paper doc + */ + PAPER_DOC_MENTION, + /** + * (paper) Transferred ownership of Paper doc + */ + PAPER_DOC_OWNERSHIP_CHANGED, + /** + * (paper) Requested access to Paper doc + */ + PAPER_DOC_REQUEST_ACCESS, + /** + * (paper) Resolved Paper doc comment + */ + PAPER_DOC_RESOLVE_COMMENT, + /** + * (paper) Restored Paper doc to previous version + */ + PAPER_DOC_REVERT, + /** + * (paper) Shared Paper doc via Slack + */ + PAPER_DOC_SLACK_SHARE, + /** + * (paper) Shared Paper doc with users and/or groups (deprecated, no longer + * logged) + */ + PAPER_DOC_TEAM_INVITE, + /** + * (paper) Deleted Paper doc + */ + PAPER_DOC_TRASHED, + /** + * (paper) Unresolved Paper doc comment + */ + PAPER_DOC_UNRESOLVE_COMMENT, + /** + * (paper) Restored Paper doc + */ + PAPER_DOC_UNTRASHED, + /** + * (paper) Viewed Paper doc + */ + PAPER_DOC_VIEW, + /** + * (paper) Changed Paper external sharing setting to anyone (deprecated, no + * longer logged) + */ + PAPER_EXTERNAL_VIEW_ALLOW, + /** + * (paper) Changed Paper external sharing setting to default team + * (deprecated, no longer logged) + */ + PAPER_EXTERNAL_VIEW_DEFAULT_TEAM, + /** + * (paper) Changed Paper external sharing setting to team-only (deprecated, + * no longer logged) + */ + PAPER_EXTERNAL_VIEW_FORBID, + /** + * (paper) Followed/unfollowed Paper folder + */ + PAPER_FOLDER_CHANGE_SUBSCRIPTION, + /** + * (paper) Archived Paper folder (deprecated, no longer logged) + */ + PAPER_FOLDER_DELETED, + /** + * (paper) Followed Paper folder (deprecated, replaced by + * 'Followed/unfollowed Paper folder') + */ + PAPER_FOLDER_FOLLOWED, + /** + * (paper) Shared Paper folder with users and/or groups (deprecated, no + * longer logged) + */ + PAPER_FOLDER_TEAM_INVITE, + /** + * (paper) Changed permissions for published doc + */ + PAPER_PUBLISHED_LINK_CHANGE_PERMISSION, + /** + * (paper) Published doc + */ + PAPER_PUBLISHED_LINK_CREATE, + /** + * (paper) Unpublished doc + */ + PAPER_PUBLISHED_LINK_DISABLED, + /** + * (paper) Viewed published doc + */ + PAPER_PUBLISHED_LINK_VIEW, + /** + * (passwords) Changed password + */ + PASSWORD_CHANGE, + /** + * (passwords) Reset password + */ + PASSWORD_RESET, + /** + * (passwords) Reset all team member passwords + */ + PASSWORD_RESET_ALL, + /** + * (reports) Created Classification report + */ + CLASSIFICATION_CREATE_REPORT, + /** + * (reports) Couldn't create Classification report + */ + CLASSIFICATION_CREATE_REPORT_FAIL, + /** + * (reports) Created EMM-excluded users report + */ + EMM_CREATE_EXCEPTIONS_REPORT, + /** + * (reports) Created EMM mobile app usage report + */ + EMM_CREATE_USAGE_REPORT, + /** + * (reports) Created member data report + */ + EXPORT_MEMBERS_REPORT, + /** + * (reports) Failed to create members data report + */ + EXPORT_MEMBERS_REPORT_FAIL, + /** + * (reports) Created External sharing report + */ + EXTERNAL_SHARING_CREATE_REPORT, + /** + * (reports) Couldn't create External sharing report + */ + EXTERNAL_SHARING_REPORT_FAILED, + /** + * (reports) Report created: Links created with no expiration + */ + NO_EXPIRATION_LINK_GEN_CREATE_REPORT, + /** + * (reports) Couldn't create report: Links created with no expiration + */ + NO_EXPIRATION_LINK_GEN_REPORT_FAILED, + /** + * (reports) Report created: Links created without passwords + */ + NO_PASSWORD_LINK_GEN_CREATE_REPORT, + /** + * (reports) Couldn't create report: Links created without passwords + */ + NO_PASSWORD_LINK_GEN_REPORT_FAILED, + /** + * (reports) Report created: Views of links without passwords + */ + NO_PASSWORD_LINK_VIEW_CREATE_REPORT, + /** + * (reports) Couldn't create report: Views of links without passwords + */ + NO_PASSWORD_LINK_VIEW_REPORT_FAILED, + /** + * (reports) Report created: Views of old links + */ + OUTDATED_LINK_VIEW_CREATE_REPORT, + /** + * (reports) Couldn't create report: Views of old links + */ + OUTDATED_LINK_VIEW_REPORT_FAILED, + /** + * (reports) Exported all team Paper docs + */ + PAPER_ADMIN_EXPORT_START, + /** + * (reports) Created ransomware report + */ + RANSOMWARE_ALERT_CREATE_REPORT, + /** + * (reports) Couldn't generate ransomware report + */ + RANSOMWARE_ALERT_CREATE_REPORT_FAILED, + /** + * (reports) Created Smart Sync non-admin devices report + */ + SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT, + /** + * (reports) Created team activity report + */ + TEAM_ACTIVITY_CREATE_REPORT, + /** + * (reports) Couldn't generate team activity report + */ + TEAM_ACTIVITY_CREATE_REPORT_FAIL, + /** + * (sharing) Shared album + */ + COLLECTION_SHARE, + /** + * (sharing) Transfer files added + */ + FILE_TRANSFERS_FILE_ADD, + /** + * (sharing) Deleted transfer + */ + FILE_TRANSFERS_TRANSFER_DELETE, + /** + * (sharing) Transfer downloaded + */ + FILE_TRANSFERS_TRANSFER_DOWNLOAD, + /** + * (sharing) Sent transfer + */ + FILE_TRANSFERS_TRANSFER_SEND, + /** + * (sharing) Viewed transfer + */ + FILE_TRANSFERS_TRANSFER_VIEW, + /** + * (sharing) Changed Paper doc to invite-only (deprecated, no longer logged) + */ + NOTE_ACL_INVITE_ONLY, + /** + * (sharing) Changed Paper doc to link-accessible (deprecated, no longer + * logged) + */ + NOTE_ACL_LINK, + /** + * (sharing) Changed Paper doc to link-accessible for team (deprecated, no + * longer logged) + */ + NOTE_ACL_TEAM_LINK, + /** + * (sharing) Shared Paper doc (deprecated, no longer logged) + */ + NOTE_SHARED, + /** + * (sharing) Shared received Paper doc (deprecated, no longer logged) + */ + NOTE_SHARE_RECEIVE, + /** + * (sharing) Opened shared Paper doc (deprecated, no longer logged) + */ + OPEN_NOTE_SHARED, + /** + * (sharing) Created shared link in Replay + */ + REPLAY_FILE_SHARED_LINK_CREATED, + /** + * (sharing) Modified shared link in Replay + */ + REPLAY_FILE_SHARED_LINK_MODIFIED, + /** + * (sharing) Added member to Replay Project + */ + REPLAY_PROJECT_TEAM_ADD, + /** + * (sharing) Removed member from Replay Project + */ + REPLAY_PROJECT_TEAM_DELETE, + /** + * (sharing) Added team to shared folder (deprecated, no longer logged) + */ + SF_ADD_GROUP, + /** + * (sharing) Allowed non-collaborators to view links to files in shared + * folder (deprecated, no longer logged) + */ + SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS, + /** + * (sharing) Set team members to see warning before sharing folders outside + * team (deprecated, no longer logged) + */ + SF_EXTERNAL_INVITE_WARN, + /** + * (sharing) Invited Facebook users to shared folder (deprecated, no longer + * logged) + */ + SF_FB_INVITE, + /** + * (sharing) Changed Facebook user's role in shared folder (deprecated, no + * longer logged) + */ + SF_FB_INVITE_CHANGE_ROLE, + /** + * (sharing) Uninvited Facebook user from shared folder (deprecated, no + * longer logged) + */ + SF_FB_UNINVITE, + /** + * (sharing) Invited group to shared folder (deprecated, no longer logged) + */ + SF_INVITE_GROUP, + /** + * (sharing) Granted access to shared folder (deprecated, no longer logged) + */ + SF_TEAM_GRANT_ACCESS, + /** + * (sharing) Invited team members to shared folder (deprecated, replaced by + * 'Invited user to Dropbox and added them to shared file/folder') + */ + SF_TEAM_INVITE, + /** + * (sharing) Changed team member's role in shared folder (deprecated, no + * longer logged) + */ + SF_TEAM_INVITE_CHANGE_ROLE, + /** + * (sharing) Joined team member's shared folder (deprecated, no longer + * logged) + */ + SF_TEAM_JOIN, + /** + * (sharing) Joined team member's shared folder from link (deprecated, no + * longer logged) + */ + SF_TEAM_JOIN_FROM_OOB_LINK, + /** + * (sharing) Unshared folder with team member (deprecated, replaced by + * 'Removed invitee from shared file/folder before invite was accepted') + */ + SF_TEAM_UNINVITE, + /** + * (sharing) Invited user to Dropbox and added them to shared file/folder + */ + SHARED_CONTENT_ADD_INVITEES, + /** + * (sharing) Added expiration date to link for shared file/folder + * (deprecated, no longer logged) + */ + SHARED_CONTENT_ADD_LINK_EXPIRY, + /** + * (sharing) Added password to link for shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_ADD_LINK_PASSWORD, + /** + * (sharing) Added users and/or groups to shared file/folder + */ + SHARED_CONTENT_ADD_MEMBER, + /** + * (sharing) Changed whether members can download shared file/folder + * (deprecated, no longer logged) + */ + SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY, + /** + * (sharing) Changed access type of invitee to shared file/folder before + * invite was accepted + */ + SHARED_CONTENT_CHANGE_INVITEE_ROLE, + /** + * (sharing) Changed link audience of shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_CHANGE_LINK_AUDIENCE, + /** + * (sharing) Changed link expiration of shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_CHANGE_LINK_EXPIRY, + /** + * (sharing) Changed link password of shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_CHANGE_LINK_PASSWORD, + /** + * (sharing) Changed access type of shared file/folder member + */ + SHARED_CONTENT_CHANGE_MEMBER_ROLE, + /** + * (sharing) Changed whether members can see who viewed shared file/folder + */ + SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY, + /** + * (sharing) Acquired membership of shared file/folder by accepting invite + */ + SHARED_CONTENT_CLAIM_INVITATION, + /** + * (sharing) Copied shared file/folder to own Dropbox + */ + SHARED_CONTENT_COPY, + /** + * (sharing) Downloaded shared file/folder + */ + SHARED_CONTENT_DOWNLOAD, + /** + * (sharing) Left shared file/folder + */ + SHARED_CONTENT_RELINQUISH_MEMBERSHIP, + /** + * (sharing) Removed invitee from shared file/folder before invite was + * accepted + */ + SHARED_CONTENT_REMOVE_INVITEES, + /** + * (sharing) Removed link expiration date of shared file/folder (deprecated, + * no longer logged) + */ + SHARED_CONTENT_REMOVE_LINK_EXPIRY, + /** + * (sharing) Removed link password of shared file/folder (deprecated, no + * longer logged) + */ + SHARED_CONTENT_REMOVE_LINK_PASSWORD, + /** + * (sharing) Removed user/group from shared file/folder + */ + SHARED_CONTENT_REMOVE_MEMBER, + /** + * (sharing) Requested access to shared file/folder + */ + SHARED_CONTENT_REQUEST_ACCESS, + /** + * (sharing) Restored shared file/folder invitees + */ + SHARED_CONTENT_RESTORE_INVITEES, + /** + * (sharing) Restored users and/or groups to membership of shared + * file/folder + */ + SHARED_CONTENT_RESTORE_MEMBER, + /** + * (sharing) Unshared file/folder by clearing membership + */ + SHARED_CONTENT_UNSHARE, + /** + * (sharing) Previewed shared file/folder + */ + SHARED_CONTENT_VIEW, + /** + * (sharing) Changed who can access shared folder via link + */ + SHARED_FOLDER_CHANGE_LINK_POLICY, + /** + * (sharing) Changed whether shared folder inherits members from parent + * folder + */ + SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY, + /** + * (sharing) Changed who can add/remove members of shared folder + */ + SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY, + /** + * (sharing) Changed who can become member of shared folder + */ + SHARED_FOLDER_CHANGE_MEMBERS_POLICY, + /** + * (sharing) Created shared folder + */ + SHARED_FOLDER_CREATE, + /** + * (sharing) Declined team member's invite to shared folder + */ + SHARED_FOLDER_DECLINE_INVITATION, + /** + * (sharing) Added shared folder to own Dropbox + */ + SHARED_FOLDER_MOUNT, + /** + * (sharing) Changed parent of shared folder + */ + SHARED_FOLDER_NEST, + /** + * (sharing) Transferred ownership of shared folder to another member + */ + SHARED_FOLDER_TRANSFER_OWNERSHIP, + /** + * (sharing) Deleted shared folder from Dropbox + */ + SHARED_FOLDER_UNMOUNT, + /** + * (sharing) Added shared link expiration date + */ + SHARED_LINK_ADD_EXPIRY, + /** + * (sharing) Changed shared link expiration date + */ + SHARED_LINK_CHANGE_EXPIRY, + /** + * (sharing) Changed visibility of shared link + */ + SHARED_LINK_CHANGE_VISIBILITY, + /** + * (sharing) Added file/folder to Dropbox from shared link + */ + SHARED_LINK_COPY, + /** + * (sharing) Created shared link + */ + SHARED_LINK_CREATE, + /** + * (sharing) Removed shared link + */ + SHARED_LINK_DISABLE, + /** + * (sharing) Downloaded file/folder from shared link + */ + SHARED_LINK_DOWNLOAD, + /** + * (sharing) Removed shared link expiration date + */ + SHARED_LINK_REMOVE_EXPIRY, + /** + * (sharing) Added an expiration date to the shared link + */ + SHARED_LINK_SETTINGS_ADD_EXPIRATION, + /** + * (sharing) Added a password to the shared link + */ + SHARED_LINK_SETTINGS_ADD_PASSWORD, + /** + * (sharing) Disabled downloads + */ + SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED, + /** + * (sharing) Enabled downloads + */ + SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED, + /** + * (sharing) Changed the audience of the shared link + */ + SHARED_LINK_SETTINGS_CHANGE_AUDIENCE, + /** + * (sharing) Changed the expiration date of the shared link + */ + SHARED_LINK_SETTINGS_CHANGE_EXPIRATION, + /** + * (sharing) Changed the password of the shared link + */ + SHARED_LINK_SETTINGS_CHANGE_PASSWORD, + /** + * (sharing) Removed the expiration date from the shared link + */ + SHARED_LINK_SETTINGS_REMOVE_EXPIRATION, + /** + * (sharing) Removed the password from the shared link + */ + SHARED_LINK_SETTINGS_REMOVE_PASSWORD, + /** + * (sharing) Added members as audience of shared link + */ + SHARED_LINK_SHARE, + /** + * (sharing) Opened shared link + */ + SHARED_LINK_VIEW, + /** + * (sharing) Opened shared Paper doc (deprecated, no longer logged) + */ + SHARED_NOTE_OPENED, + /** + * (sharing) Disabled downloads for link (deprecated, no longer logged) + */ + SHMODEL_DISABLE_DOWNLOADS, + /** + * (sharing) Enabled downloads for link (deprecated, no longer logged) + */ + SHMODEL_ENABLE_DOWNLOADS, + /** + * (sharing) Shared link with group (deprecated, no longer logged) + */ + SHMODEL_GROUP_SHARE, + /** + * (showcase) Granted access to showcase + */ + SHOWCASE_ACCESS_GRANTED, + /** + * (showcase) Added member to showcase + */ + SHOWCASE_ADD_MEMBER, + /** + * (showcase) Archived showcase + */ + SHOWCASE_ARCHIVED, + /** + * (showcase) Created showcase + */ + SHOWCASE_CREATED, + /** + * (showcase) Deleted showcase comment + */ + SHOWCASE_DELETE_COMMENT, + /** + * (showcase) Edited showcase + */ + SHOWCASE_EDITED, + /** + * (showcase) Edited showcase comment + */ + SHOWCASE_EDIT_COMMENT, + /** + * (showcase) Added file to showcase + */ + SHOWCASE_FILE_ADDED, + /** + * (showcase) Downloaded file from showcase + */ + SHOWCASE_FILE_DOWNLOAD, + /** + * (showcase) Removed file from showcase + */ + SHOWCASE_FILE_REMOVED, + /** + * (showcase) Viewed file in showcase + */ + SHOWCASE_FILE_VIEW, + /** + * (showcase) Permanently deleted showcase + */ + SHOWCASE_PERMANENTLY_DELETED, + /** + * (showcase) Added showcase comment + */ + SHOWCASE_POST_COMMENT, + /** + * (showcase) Removed member from showcase + */ + SHOWCASE_REMOVE_MEMBER, + /** + * (showcase) Renamed showcase + */ + SHOWCASE_RENAMED, + /** + * (showcase) Requested access to showcase + */ + SHOWCASE_REQUEST_ACCESS, + /** + * (showcase) Resolved showcase comment + */ + SHOWCASE_RESOLVE_COMMENT, + /** + * (showcase) Unarchived showcase + */ + SHOWCASE_RESTORED, + /** + * (showcase) Deleted showcase + */ + SHOWCASE_TRASHED, + /** + * (showcase) Deleted showcase (old version) (deprecated, replaced by + * 'Deleted showcase') + */ + SHOWCASE_TRASHED_DEPRECATED, + /** + * (showcase) Unresolved showcase comment + */ + SHOWCASE_UNRESOLVE_COMMENT, + /** + * (showcase) Restored showcase + */ + SHOWCASE_UNTRASHED, + /** + * (showcase) Restored showcase (old version) (deprecated, replaced by + * 'Restored showcase') + */ + SHOWCASE_UNTRASHED_DEPRECATED, + /** + * (showcase) Viewed showcase + */ + SHOWCASE_VIEW, + /** + * (sso) Added X.509 certificate for SSO + */ + SSO_ADD_CERT, + /** + * (sso) Added sign-in URL for SSO + */ + SSO_ADD_LOGIN_URL, + /** + * (sso) Added sign-out URL for SSO + */ + SSO_ADD_LOGOUT_URL, + /** + * (sso) Changed X.509 certificate for SSO + */ + SSO_CHANGE_CERT, + /** + * (sso) Changed sign-in URL for SSO + */ + SSO_CHANGE_LOGIN_URL, + /** + * (sso) Changed sign-out URL for SSO + */ + SSO_CHANGE_LOGOUT_URL, + /** + * (sso) Changed SAML identity mode for SSO + */ + SSO_CHANGE_SAML_IDENTITY_MODE, + /** + * (sso) Removed X.509 certificate for SSO + */ + SSO_REMOVE_CERT, + /** + * (sso) Removed sign-in URL for SSO + */ + SSO_REMOVE_LOGIN_URL, + /** + * (sso) Removed sign-out URL for SSO + */ + SSO_REMOVE_LOGOUT_URL, + /** + * (team_folders) Changed archival status of team folder + */ + TEAM_FOLDER_CHANGE_STATUS, + /** + * (team_folders) Created team folder in active status + */ + TEAM_FOLDER_CREATE, + /** + * (team_folders) Downgraded team folder to regular shared folder + */ + TEAM_FOLDER_DOWNGRADE, + /** + * (team_folders) Permanently deleted archived team folder + */ + TEAM_FOLDER_PERMANENTLY_DELETE, + /** + * (team_folders) Renamed active/archived team folder + */ + TEAM_FOLDER_RENAME, + /** + * (team_folders) Changed sync default + */ + TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED, + /** + * (team_policies) Changed account capture setting on team domain + */ + ACCOUNT_CAPTURE_CHANGE_POLICY, + /** + * (team_policies) Changed admin reminder settings for requests to join the + * team + */ + ADMIN_EMAIL_REMINDERS_CHANGED, + /** + * (team_policies) Disabled downloads (deprecated, no longer logged) + */ + ALLOW_DOWNLOAD_DISABLED, + /** + * (team_policies) Enabled downloads (deprecated, no longer logged) + */ + ALLOW_DOWNLOAD_ENABLED, + /** + * (team_policies) Changed app permissions + */ + APP_PERMISSIONS_CHANGED, + /** + * (team_policies) Changed camera uploads setting for team + */ + CAMERA_UPLOADS_POLICY_CHANGED, + /** + * (team_policies) Changed Capture transcription policy for team + */ + CAPTURE_TRANSCRIPT_POLICY_CHANGED, + /** + * (team_policies) Changed classification policy for team + */ + CLASSIFICATION_CHANGE_POLICY, + /** + * (team_policies) Changed computer backup policy for team + */ + COMPUTER_BACKUP_POLICY_CHANGED, + /** + * (team_policies) Changed content management setting + */ + CONTENT_ADMINISTRATION_POLICY_CHANGED, + /** + * (team_policies) Set restrictions on data center locations where team data + * resides + */ + DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY, + /** + * (team_policies) Completed restrictions on data center locations where + * team data resides + */ + DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY, + /** + * (team_policies) Added members to device approvals exception list + */ + DEVICE_APPROVALS_ADD_EXCEPTION, + /** + * (team_policies) Set/removed limit on number of computers member can link + * to team Dropbox account + */ + DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY, + /** + * (team_policies) Set/removed limit on number of mobile devices member can + * link to team Dropbox account + */ + DEVICE_APPROVALS_CHANGE_MOBILE_POLICY, + /** + * (team_policies) Changed device approvals setting when member is over + * limit + */ + DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION, + /** + * (team_policies) Changed device approvals setting when member unlinks + * approved device + */ + DEVICE_APPROVALS_CHANGE_UNLINK_ACTION, + /** + * (team_policies) Removed members from device approvals exception list + */ + DEVICE_APPROVALS_REMOVE_EXCEPTION, + /** + * (team_policies) Added members to directory restrictions list + */ + DIRECTORY_RESTRICTIONS_ADD_MEMBERS, + /** + * (team_policies) Removed members from directory restrictions list + */ + DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS, + /** + * (team_policies) Changed Dropbox Passwords policy for team + */ + DROPBOX_PASSWORDS_POLICY_CHANGED, + /** + * (team_policies) Changed email to Dropbox policy for team + */ + EMAIL_INGEST_POLICY_CHANGED, + /** + * (team_policies) Added members to EMM exception list + */ + EMM_ADD_EXCEPTION, + /** + * (team_policies) Enabled/disabled enterprise mobility management for + * members + */ + EMM_CHANGE_POLICY, + /** + * (team_policies) Removed members from EMM exception list + */ + EMM_REMOVE_EXCEPTION, + /** + * (team_policies) Accepted/opted out of extended version history + */ + EXTENDED_VERSION_HISTORY_CHANGE_POLICY, + /** + * (team_policies) Changed external drive backup policy for team + */ + EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED, + /** + * (team_policies) Enabled/disabled commenting on team files + */ + FILE_COMMENTS_CHANGE_POLICY, + /** + * (team_policies) Changed file locking policy for team + */ + FILE_LOCKING_POLICY_CHANGED, + /** + * (team_policies) Changed File Provider Migration policy for team + */ + FILE_PROVIDER_MIGRATION_POLICY_CHANGED, + /** + * (team_policies) Enabled/disabled file requests + */ + FILE_REQUESTS_CHANGE_POLICY, + /** + * (team_policies) Enabled file request emails for everyone (deprecated, no + * longer logged) + */ + FILE_REQUESTS_EMAILS_ENABLED, + /** + * (team_policies) Enabled file request emails for team (deprecated, no + * longer logged) + */ + FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY, + /** + * (team_policies) Changed file transfers policy for team + */ + FILE_TRANSFERS_POLICY_CHANGED, + /** + * (team_policies) Changed folder link restrictions policy for team + */ + FOLDER_LINK_RESTRICTION_POLICY_CHANGED, + /** + * (team_policies) Enabled/disabled Google single sign-on for team + */ + GOOGLE_SSO_CHANGE_POLICY, + /** + * (team_policies) Changed who can create groups + */ + GROUP_USER_MANAGEMENT_CHANGE_POLICY, + /** + * (team_policies) Changed integration policy for team + */ + INTEGRATION_POLICY_CHANGED, + /** + * (team_policies) Changed invite accept email policy for team + */ + INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED, + /** + * (team_policies) Changed whether users can find team when not invited + */ + MEMBER_REQUESTS_CHANGE_POLICY, + /** + * (team_policies) Changed member send invite policy for team + */ + MEMBER_SEND_INVITE_POLICY_CHANGED, + /** + * (team_policies) Added members to member space limit exception list + */ + MEMBER_SPACE_LIMITS_ADD_EXCEPTION, + /** + * (team_policies) Changed member space limit type for team + */ + MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY, + /** + * (team_policies) Changed team default member space limit + */ + MEMBER_SPACE_LIMITS_CHANGE_POLICY, + /** + * (team_policies) Removed members from member space limit exception list + */ + MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION, + /** + * (team_policies) Enabled/disabled option for team members to suggest + * people to add to team + */ + MEMBER_SUGGESTIONS_CHANGE_POLICY, + /** + * (team_policies) Enabled/disabled Microsoft Office add-in + */ + MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY, + /** + * (team_policies) Enabled/disabled network control + */ + NETWORK_CONTROL_CHANGE_POLICY, + /** + * (team_policies) Changed whether Dropbox Paper, when enabled, is deployed + * to all members or to specific members + */ + PAPER_CHANGE_DEPLOYMENT_POLICY, + /** + * (team_policies) Changed whether non-members can view Paper docs with link + * (deprecated, no longer logged) + */ + PAPER_CHANGE_MEMBER_LINK_POLICY, + /** + * (team_policies) Changed whether members can share Paper docs outside + * team, and if docs are accessible only by team members or anyone by + * default + */ + PAPER_CHANGE_MEMBER_POLICY, + /** + * (team_policies) Enabled/disabled Dropbox Paper for team + */ + PAPER_CHANGE_POLICY, + /** + * (team_policies) Changed Paper Default Folder Policy setting for team + */ + PAPER_DEFAULT_FOLDER_POLICY_CHANGED, + /** + * (team_policies) Enabled/disabled Paper Desktop for team + */ + PAPER_DESKTOP_POLICY_CHANGED, + /** + * (team_policies) Added users to Paper-enabled users list + */ + PAPER_ENABLED_USERS_GROUP_ADDITION, + /** + * (team_policies) Removed users from Paper-enabled users list + */ + PAPER_ENABLED_USERS_GROUP_REMOVAL, + /** + * (team_policies) Changed team password strength requirements + */ + PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY, + /** + * (team_policies) Enabled/disabled ability of team members to permanently + * delete content + */ + PERMANENT_DELETE_CHANGE_POLICY, + /** + * (team_policies) Enabled/disabled reseller support + */ + RESELLER_SUPPORT_CHANGE_POLICY, + /** + * (team_policies) Changed Rewind policy for team + */ + REWIND_POLICY_CHANGED, + /** + * (team_policies) Changed send for signature policy for team + */ + SEND_FOR_SIGNATURE_POLICY_CHANGED, + /** + * (team_policies) Changed whether team members can join shared folders + * owned outside team + */ + SHARING_CHANGE_FOLDER_JOIN_POLICY, + /** + * (team_policies) Changed the allow remove or change expiration policy for + * the links shared outside of the team + */ + SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY, + /** + * (team_policies) Changed the default expiration for the links shared + * outside of the team + */ + SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY, + /** + * (team_policies) Changed the password requirement for the links shared + * outside of the team + */ + SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY, + /** + * (team_policies) Changed whether members can share links outside team, and + * if links are accessible only by team members or anyone by default + */ + SHARING_CHANGE_LINK_POLICY, + /** + * (team_policies) Changed whether members can share files/folders outside + * team + */ + SHARING_CHANGE_MEMBER_POLICY, + /** + * (team_policies) Enabled/disabled downloading files from Dropbox Showcase + * for team + */ + SHOWCASE_CHANGE_DOWNLOAD_POLICY, + /** + * (team_policies) Enabled/disabled Dropbox Showcase for team + */ + SHOWCASE_CHANGE_ENABLED_POLICY, + /** + * (team_policies) Enabled/disabled sharing Dropbox Showcase externally for + * team + */ + SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY, + /** + * (team_policies) Changed automatic Smart Sync setting for team + */ + SMARTER_SMART_SYNC_POLICY_CHANGED, + /** + * (team_policies) Changed default Smart Sync setting for team members + */ + SMART_SYNC_CHANGE_POLICY, + /** + * (team_policies) Opted team into Smart Sync + */ + SMART_SYNC_NOT_OPT_OUT, + /** + * (team_policies) Opted team out of Smart Sync + */ + SMART_SYNC_OPT_OUT, + /** + * (team_policies) Changed single sign-on setting for team + */ + SSO_CHANGE_POLICY, + /** + * (team_policies) Changed team branding policy for team + */ + TEAM_BRANDING_POLICY_CHANGED, + /** + * (team_policies) Changed App Integrations setting for team + */ + TEAM_EXTENSIONS_POLICY_CHANGED, + /** + * (team_policies) Enabled/disabled Team Selective Sync for team + */ + TEAM_SELECTIVE_SYNC_POLICY_CHANGED, + /** + * (team_policies) Edited the approved list for sharing externally + */ + TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED, + /** + * (team_policies) Added members to two factor authentication exception list + */ + TFA_ADD_EXCEPTION, + /** + * (team_policies) Changed two-step verification setting for team + */ + TFA_CHANGE_POLICY, + /** + * (team_policies) Removed members from two factor authentication exception + * list + */ + TFA_REMOVE_EXCEPTION, + /** + * (team_policies) Enabled/disabled option for members to link personal + * Dropbox account and team account to same computer + */ + TWO_ACCOUNT_CHANGE_POLICY, + /** + * (team_policies) Changed team policy for viewer info + */ + VIEWER_INFO_POLICY_CHANGED, + /** + * (team_policies) Changed watermarking policy for team + */ + WATERMARKING_POLICY_CHANGED, + /** + * (team_policies) Changed limit on active sessions per member + */ + WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT, + /** + * (team_policies) Changed how long members can stay signed in to + * Dropbox.com + */ + WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY, + /** + * (team_policies) Changed how long team members can be idle while signed in + * to Dropbox.com + */ + WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY, + /** + * (team_profile) Requested data residency migration for team data + */ + DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL, + /** + * (team_profile) Request for data residency migration for team data has + * failed + */ + DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL, + /** + * (team_profile) Merged another team into this team + */ + TEAM_MERGE_FROM, + /** + * (team_profile) Merged this team into another team + */ + TEAM_MERGE_TO, + /** + * (team_profile) Added team background to display on shared link headers + */ + TEAM_PROFILE_ADD_BACKGROUND, + /** + * (team_profile) Added team logo to display on shared link headers + */ + TEAM_PROFILE_ADD_LOGO, + /** + * (team_profile) Changed team background displayed on shared link headers + */ + TEAM_PROFILE_CHANGE_BACKGROUND, + /** + * (team_profile) Changed default language for team + */ + TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE, + /** + * (team_profile) Changed team logo displayed on shared link headers + */ + TEAM_PROFILE_CHANGE_LOGO, + /** + * (team_profile) Changed team name + */ + TEAM_PROFILE_CHANGE_NAME, + /** + * (team_profile) Removed team background displayed on shared link headers + */ + TEAM_PROFILE_REMOVE_BACKGROUND, + /** + * (team_profile) Removed team logo displayed on shared link headers + */ + TEAM_PROFILE_REMOVE_LOGO, + /** + * (tfa) Added backup phone for two-step verification + */ + TFA_ADD_BACKUP_PHONE, + /** + * (tfa) Added security key for two-step verification + */ + TFA_ADD_SECURITY_KEY, + /** + * (tfa) Changed backup phone for two-step verification + */ + TFA_CHANGE_BACKUP_PHONE, + /** + * (tfa) Enabled/disabled/changed two-step verification setting + */ + TFA_CHANGE_STATUS, + /** + * (tfa) Removed backup phone for two-step verification + */ + TFA_REMOVE_BACKUP_PHONE, + /** + * (tfa) Removed security key for two-step verification + */ + TFA_REMOVE_SECURITY_KEY, + /** + * (tfa) Reset two-step verification for team member + */ + TFA_RESET, + /** + * (trusted_teams) Changed enterprise admin role + */ + CHANGED_ENTERPRISE_ADMIN_ROLE, + /** + * (trusted_teams) Changed enterprise-connected team status + */ + CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS, + /** + * (trusted_teams) Ended enterprise admin session + */ + ENDED_ENTERPRISE_ADMIN_SESSION, + /** + * (trusted_teams) Ended enterprise admin session (deprecated, replaced by + * 'Ended enterprise admin session') + */ + ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED, + /** + * (trusted_teams) Changed who can update a setting + */ + ENTERPRISE_SETTINGS_LOCKING, + /** + * (trusted_teams) Changed guest team admin status + */ + GUEST_ADMIN_CHANGE_STATUS, + /** + * (trusted_teams) Started enterprise admin session + */ + STARTED_ENTERPRISE_ADMIN_SESSION, + /** + * (trusted_teams) Accepted a team merge request + */ + TEAM_MERGE_REQUEST_ACCEPTED, + /** + * (trusted_teams) Accepted a team merge request (deprecated, replaced by + * 'Accepted a team merge request') + */ + TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM, + /** + * (trusted_teams) Accepted a team merge request (deprecated, replaced by + * 'Accepted a team merge request') + */ + TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM, + /** + * (trusted_teams) Automatically canceled team merge request + */ + TEAM_MERGE_REQUEST_AUTO_CANCELED, + /** + * (trusted_teams) Canceled a team merge request + */ + TEAM_MERGE_REQUEST_CANCELED, + /** + * (trusted_teams) Canceled a team merge request (deprecated, replaced by + * 'Canceled a team merge request') + */ + TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM, + /** + * (trusted_teams) Canceled a team merge request (deprecated, replaced by + * 'Canceled a team merge request') + */ + TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM, + /** + * (trusted_teams) Team merge request expired + */ + TEAM_MERGE_REQUEST_EXPIRED, + /** + * (trusted_teams) Team merge request expired (deprecated, replaced by 'Team + * merge request expired') + */ + TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM, + /** + * (trusted_teams) Team merge request expired (deprecated, replaced by 'Team + * merge request expired') + */ + TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM, + /** + * (trusted_teams) Rejected a team merge request (deprecated, no longer + * logged) + */ + TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM, + /** + * (trusted_teams) Rejected a team merge request (deprecated, no longer + * logged) + */ + TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM, + /** + * (trusted_teams) Sent a team merge request reminder + */ + TEAM_MERGE_REQUEST_REMINDER, + /** + * (trusted_teams) Sent a team merge request reminder (deprecated, replaced + * by 'Sent a team merge request reminder') + */ + TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM, + /** + * (trusted_teams) Sent a team merge request reminder (deprecated, replaced + * by 'Sent a team merge request reminder') + */ + TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM, + /** + * (trusted_teams) Canceled the team merge + */ + TEAM_MERGE_REQUEST_REVOKED, + /** + * (trusted_teams) Requested to merge their Dropbox team into yours + */ + TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM, + /** + * (trusted_teams) Requested to merge your team into another Dropbox team + */ + TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EventTypeArg value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ADMIN_ALERTING_ALERT_STATE_CHANGED: { + g.writeString("admin_alerting_alert_state_changed"); + break; + } + case ADMIN_ALERTING_CHANGED_ALERT_CONFIG: { + g.writeString("admin_alerting_changed_alert_config"); + break; + } + case ADMIN_ALERTING_TRIGGERED_ALERT: { + g.writeString("admin_alerting_triggered_alert"); + break; + } + case RANSOMWARE_RESTORE_PROCESS_COMPLETED: { + g.writeString("ransomware_restore_process_completed"); + break; + } + case RANSOMWARE_RESTORE_PROCESS_STARTED: { + g.writeString("ransomware_restore_process_started"); + break; + } + case APP_BLOCKED_BY_PERMISSIONS: { + g.writeString("app_blocked_by_permissions"); + break; + } + case APP_LINK_TEAM: { + g.writeString("app_link_team"); + break; + } + case APP_LINK_USER: { + g.writeString("app_link_user"); + break; + } + case APP_UNLINK_TEAM: { + g.writeString("app_unlink_team"); + break; + } + case APP_UNLINK_USER: { + g.writeString("app_unlink_user"); + break; + } + case INTEGRATION_CONNECTED: { + g.writeString("integration_connected"); + break; + } + case INTEGRATION_DISCONNECTED: { + g.writeString("integration_disconnected"); + break; + } + case FILE_ADD_COMMENT: { + g.writeString("file_add_comment"); + break; + } + case FILE_CHANGE_COMMENT_SUBSCRIPTION: { + g.writeString("file_change_comment_subscription"); + break; + } + case FILE_DELETE_COMMENT: { + g.writeString("file_delete_comment"); + break; + } + case FILE_EDIT_COMMENT: { + g.writeString("file_edit_comment"); + break; + } + case FILE_LIKE_COMMENT: { + g.writeString("file_like_comment"); + break; + } + case FILE_RESOLVE_COMMENT: { + g.writeString("file_resolve_comment"); + break; + } + case FILE_UNLIKE_COMMENT: { + g.writeString("file_unlike_comment"); + break; + } + case FILE_UNRESOLVE_COMMENT: { + g.writeString("file_unresolve_comment"); + break; + } + case GOVERNANCE_POLICY_ADD_FOLDERS: { + g.writeString("governance_policy_add_folders"); + break; + } + case GOVERNANCE_POLICY_ADD_FOLDER_FAILED: { + g.writeString("governance_policy_add_folder_failed"); + break; + } + case GOVERNANCE_POLICY_CONTENT_DISPOSED: { + g.writeString("governance_policy_content_disposed"); + break; + } + case GOVERNANCE_POLICY_CREATE: { + g.writeString("governance_policy_create"); + break; + } + case GOVERNANCE_POLICY_DELETE: { + g.writeString("governance_policy_delete"); + break; + } + case GOVERNANCE_POLICY_EDIT_DETAILS: { + g.writeString("governance_policy_edit_details"); + break; + } + case GOVERNANCE_POLICY_EDIT_DURATION: { + g.writeString("governance_policy_edit_duration"); + break; + } + case GOVERNANCE_POLICY_EXPORT_CREATED: { + g.writeString("governance_policy_export_created"); + break; + } + case GOVERNANCE_POLICY_EXPORT_REMOVED: { + g.writeString("governance_policy_export_removed"); + break; + } + case GOVERNANCE_POLICY_REMOVE_FOLDERS: { + g.writeString("governance_policy_remove_folders"); + break; + } + case GOVERNANCE_POLICY_REPORT_CREATED: { + g.writeString("governance_policy_report_created"); + break; + } + case GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED: { + g.writeString("governance_policy_zip_part_downloaded"); + break; + } + case LEGAL_HOLDS_ACTIVATE_A_HOLD: { + g.writeString("legal_holds_activate_a_hold"); + break; + } + case LEGAL_HOLDS_ADD_MEMBERS: { + g.writeString("legal_holds_add_members"); + break; + } + case LEGAL_HOLDS_CHANGE_HOLD_DETAILS: { + g.writeString("legal_holds_change_hold_details"); + break; + } + case LEGAL_HOLDS_CHANGE_HOLD_NAME: { + g.writeString("legal_holds_change_hold_name"); + break; + } + case LEGAL_HOLDS_EXPORT_A_HOLD: { + g.writeString("legal_holds_export_a_hold"); + break; + } + case LEGAL_HOLDS_EXPORT_CANCELLED: { + g.writeString("legal_holds_export_cancelled"); + break; + } + case LEGAL_HOLDS_EXPORT_DOWNLOADED: { + g.writeString("legal_holds_export_downloaded"); + break; + } + case LEGAL_HOLDS_EXPORT_REMOVED: { + g.writeString("legal_holds_export_removed"); + break; + } + case LEGAL_HOLDS_RELEASE_A_HOLD: { + g.writeString("legal_holds_release_a_hold"); + break; + } + case LEGAL_HOLDS_REMOVE_MEMBERS: { + g.writeString("legal_holds_remove_members"); + break; + } + case LEGAL_HOLDS_REPORT_A_HOLD: { + g.writeString("legal_holds_report_a_hold"); + break; + } + case DEVICE_CHANGE_IP_DESKTOP: { + g.writeString("device_change_ip_desktop"); + break; + } + case DEVICE_CHANGE_IP_MOBILE: { + g.writeString("device_change_ip_mobile"); + break; + } + case DEVICE_CHANGE_IP_WEB: { + g.writeString("device_change_ip_web"); + break; + } + case DEVICE_DELETE_ON_UNLINK_FAIL: { + g.writeString("device_delete_on_unlink_fail"); + break; + } + case DEVICE_DELETE_ON_UNLINK_SUCCESS: { + g.writeString("device_delete_on_unlink_success"); + break; + } + case DEVICE_LINK_FAIL: { + g.writeString("device_link_fail"); + break; + } + case DEVICE_LINK_SUCCESS: { + g.writeString("device_link_success"); + break; + } + case DEVICE_MANAGEMENT_DISABLED: { + g.writeString("device_management_disabled"); + break; + } + case DEVICE_MANAGEMENT_ENABLED: { + g.writeString("device_management_enabled"); + break; + } + case DEVICE_SYNC_BACKUP_STATUS_CHANGED: { + g.writeString("device_sync_backup_status_changed"); + break; + } + case DEVICE_UNLINK: { + g.writeString("device_unlink"); + break; + } + case DROPBOX_PASSWORDS_EXPORTED: { + g.writeString("dropbox_passwords_exported"); + break; + } + case DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED: { + g.writeString("dropbox_passwords_new_device_enrolled"); + break; + } + case EMM_REFRESH_AUTH_TOKEN: { + g.writeString("emm_refresh_auth_token"); + break; + } + case EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED: { + g.writeString("external_drive_backup_eligibility_status_checked"); + break; + } + case EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED: { + g.writeString("external_drive_backup_status_changed"); + break; + } + case ACCOUNT_CAPTURE_CHANGE_AVAILABILITY: { + g.writeString("account_capture_change_availability"); + break; + } + case ACCOUNT_CAPTURE_MIGRATE_ACCOUNT: { + g.writeString("account_capture_migrate_account"); + break; + } + case ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT: { + g.writeString("account_capture_notification_emails_sent"); + break; + } + case ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT: { + g.writeString("account_capture_relinquish_account"); + break; + } + case DISABLED_DOMAIN_INVITES: { + g.writeString("disabled_domain_invites"); + break; + } + case DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM: { + g.writeString("domain_invites_approve_request_to_join_team"); + break; + } + case DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM: { + g.writeString("domain_invites_decline_request_to_join_team"); + break; + } + case DOMAIN_INVITES_EMAIL_EXISTING_USERS: { + g.writeString("domain_invites_email_existing_users"); + break; + } + case DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM: { + g.writeString("domain_invites_request_to_join_team"); + break; + } + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO: { + g.writeString("domain_invites_set_invite_new_user_pref_to_no"); + break; + } + case DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES: { + g.writeString("domain_invites_set_invite_new_user_pref_to_yes"); + break; + } + case DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL: { + g.writeString("domain_verification_add_domain_fail"); + break; + } + case DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS: { + g.writeString("domain_verification_add_domain_success"); + break; + } + case DOMAIN_VERIFICATION_REMOVE_DOMAIN: { + g.writeString("domain_verification_remove_domain"); + break; + } + case ENABLED_DOMAIN_INVITES: { + g.writeString("enabled_domain_invites"); + break; + } + case TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION: { + g.writeString("team_encryption_key_cancel_key_deletion"); + break; + } + case TEAM_ENCRYPTION_KEY_CREATE_KEY: { + g.writeString("team_encryption_key_create_key"); + break; + } + case TEAM_ENCRYPTION_KEY_DELETE_KEY: { + g.writeString("team_encryption_key_delete_key"); + break; + } + case TEAM_ENCRYPTION_KEY_DISABLE_KEY: { + g.writeString("team_encryption_key_disable_key"); + break; + } + case TEAM_ENCRYPTION_KEY_ENABLE_KEY: { + g.writeString("team_encryption_key_enable_key"); + break; + } + case TEAM_ENCRYPTION_KEY_ROTATE_KEY: { + g.writeString("team_encryption_key_rotate_key"); + break; + } + case TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION: { + g.writeString("team_encryption_key_schedule_key_deletion"); + break; + } + case APPLY_NAMING_CONVENTION: { + g.writeString("apply_naming_convention"); + break; + } + case CREATE_FOLDER: { + g.writeString("create_folder"); + break; + } + case FILE_ADD: { + g.writeString("file_add"); + break; + } + case FILE_ADD_FROM_AUTOMATION: { + g.writeString("file_add_from_automation"); + break; + } + case FILE_COPY: { + g.writeString("file_copy"); + break; + } + case FILE_DELETE: { + g.writeString("file_delete"); + break; + } + case FILE_DOWNLOAD: { + g.writeString("file_download"); + break; + } + case FILE_EDIT: { + g.writeString("file_edit"); + break; + } + case FILE_GET_COPY_REFERENCE: { + g.writeString("file_get_copy_reference"); + break; + } + case FILE_LOCKING_LOCK_STATUS_CHANGED: { + g.writeString("file_locking_lock_status_changed"); + break; + } + case FILE_MOVE: { + g.writeString("file_move"); + break; + } + case FILE_PERMANENTLY_DELETE: { + g.writeString("file_permanently_delete"); + break; + } + case FILE_PREVIEW: { + g.writeString("file_preview"); + break; + } + case FILE_RENAME: { + g.writeString("file_rename"); + break; + } + case FILE_RESTORE: { + g.writeString("file_restore"); + break; + } + case FILE_REVERT: { + g.writeString("file_revert"); + break; + } + case FILE_ROLLBACK_CHANGES: { + g.writeString("file_rollback_changes"); + break; + } + case FILE_SAVE_COPY_REFERENCE: { + g.writeString("file_save_copy_reference"); + break; + } + case FOLDER_OVERVIEW_DESCRIPTION_CHANGED: { + g.writeString("folder_overview_description_changed"); + break; + } + case FOLDER_OVERVIEW_ITEM_PINNED: { + g.writeString("folder_overview_item_pinned"); + break; + } + case FOLDER_OVERVIEW_ITEM_UNPINNED: { + g.writeString("folder_overview_item_unpinned"); + break; + } + case OBJECT_LABEL_ADDED: { + g.writeString("object_label_added"); + break; + } + case OBJECT_LABEL_REMOVED: { + g.writeString("object_label_removed"); + break; + } + case OBJECT_LABEL_UPDATED_VALUE: { + g.writeString("object_label_updated_value"); + break; + } + case ORGANIZE_FOLDER_WITH_TIDY: { + g.writeString("organize_folder_with_tidy"); + break; + } + case REPLAY_FILE_DELETE: { + g.writeString("replay_file_delete"); + break; + } + case REWIND_FOLDER: { + g.writeString("rewind_folder"); + break; + } + case UNDO_NAMING_CONVENTION: { + g.writeString("undo_naming_convention"); + break; + } + case UNDO_ORGANIZE_FOLDER_WITH_TIDY: { + g.writeString("undo_organize_folder_with_tidy"); + break; + } + case USER_TAGS_ADDED: { + g.writeString("user_tags_added"); + break; + } + case USER_TAGS_REMOVED: { + g.writeString("user_tags_removed"); + break; + } + case EMAIL_INGEST_RECEIVE_FILE: { + g.writeString("email_ingest_receive_file"); + break; + } + case FILE_REQUEST_CHANGE: { + g.writeString("file_request_change"); + break; + } + case FILE_REQUEST_CLOSE: { + g.writeString("file_request_close"); + break; + } + case FILE_REQUEST_CREATE: { + g.writeString("file_request_create"); + break; + } + case FILE_REQUEST_DELETE: { + g.writeString("file_request_delete"); + break; + } + case FILE_REQUEST_RECEIVE_FILE: { + g.writeString("file_request_receive_file"); + break; + } + case GROUP_ADD_EXTERNAL_ID: { + g.writeString("group_add_external_id"); + break; + } + case GROUP_ADD_MEMBER: { + g.writeString("group_add_member"); + break; + } + case GROUP_CHANGE_EXTERNAL_ID: { + g.writeString("group_change_external_id"); + break; + } + case GROUP_CHANGE_MANAGEMENT_TYPE: { + g.writeString("group_change_management_type"); + break; + } + case GROUP_CHANGE_MEMBER_ROLE: { + g.writeString("group_change_member_role"); + break; + } + case GROUP_CREATE: { + g.writeString("group_create"); + break; + } + case GROUP_DELETE: { + g.writeString("group_delete"); + break; + } + case GROUP_DESCRIPTION_UPDATED: { + g.writeString("group_description_updated"); + break; + } + case GROUP_JOIN_POLICY_UPDATED: { + g.writeString("group_join_policy_updated"); + break; + } + case GROUP_MOVED: { + g.writeString("group_moved"); + break; + } + case GROUP_REMOVE_EXTERNAL_ID: { + g.writeString("group_remove_external_id"); + break; + } + case GROUP_REMOVE_MEMBER: { + g.writeString("group_remove_member"); + break; + } + case GROUP_RENAME: { + g.writeString("group_rename"); + break; + } + case ACCOUNT_LOCK_OR_UNLOCKED: { + g.writeString("account_lock_or_unlocked"); + break; + } + case EMM_ERROR: { + g.writeString("emm_error"); + break; + } + case GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS: { + g.writeString("guest_admin_signed_in_via_trusted_teams"); + break; + } + case GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS: { + g.writeString("guest_admin_signed_out_via_trusted_teams"); + break; + } + case LOGIN_FAIL: { + g.writeString("login_fail"); + break; + } + case LOGIN_SUCCESS: { + g.writeString("login_success"); + break; + } + case LOGOUT: { + g.writeString("logout"); + break; + } + case RESELLER_SUPPORT_SESSION_END: { + g.writeString("reseller_support_session_end"); + break; + } + case RESELLER_SUPPORT_SESSION_START: { + g.writeString("reseller_support_session_start"); + break; + } + case SIGN_IN_AS_SESSION_END: { + g.writeString("sign_in_as_session_end"); + break; + } + case SIGN_IN_AS_SESSION_START: { + g.writeString("sign_in_as_session_start"); + break; + } + case SSO_ERROR: { + g.writeString("sso_error"); + break; + } + case BACKUP_ADMIN_INVITATION_SENT: { + g.writeString("backup_admin_invitation_sent"); + break; + } + case BACKUP_INVITATION_OPENED: { + g.writeString("backup_invitation_opened"); + break; + } + case CREATE_TEAM_INVITE_LINK: { + g.writeString("create_team_invite_link"); + break; + } + case DELETE_TEAM_INVITE_LINK: { + g.writeString("delete_team_invite_link"); + break; + } + case MEMBER_ADD_EXTERNAL_ID: { + g.writeString("member_add_external_id"); + break; + } + case MEMBER_ADD_NAME: { + g.writeString("member_add_name"); + break; + } + case MEMBER_CHANGE_ADMIN_ROLE: { + g.writeString("member_change_admin_role"); + break; + } + case MEMBER_CHANGE_EMAIL: { + g.writeString("member_change_email"); + break; + } + case MEMBER_CHANGE_EXTERNAL_ID: { + g.writeString("member_change_external_id"); + break; + } + case MEMBER_CHANGE_MEMBERSHIP_TYPE: { + g.writeString("member_change_membership_type"); + break; + } + case MEMBER_CHANGE_NAME: { + g.writeString("member_change_name"); + break; + } + case MEMBER_CHANGE_RESELLER_ROLE: { + g.writeString("member_change_reseller_role"); + break; + } + case MEMBER_CHANGE_STATUS: { + g.writeString("member_change_status"); + break; + } + case MEMBER_DELETE_MANUAL_CONTACTS: { + g.writeString("member_delete_manual_contacts"); + break; + } + case MEMBER_DELETE_PROFILE_PHOTO: { + g.writeString("member_delete_profile_photo"); + break; + } + case MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS: { + g.writeString("member_permanently_delete_account_contents"); + break; + } + case MEMBER_REMOVE_EXTERNAL_ID: { + g.writeString("member_remove_external_id"); + break; + } + case MEMBER_SET_PROFILE_PHOTO: { + g.writeString("member_set_profile_photo"); + break; + } + case MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA: { + g.writeString("member_space_limits_add_custom_quota"); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA: { + g.writeString("member_space_limits_change_custom_quota"); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_STATUS: { + g.writeString("member_space_limits_change_status"); + break; + } + case MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA: { + g.writeString("member_space_limits_remove_custom_quota"); + break; + } + case MEMBER_SUGGEST: { + g.writeString("member_suggest"); + break; + } + case MEMBER_TRANSFER_ACCOUNT_CONTENTS: { + g.writeString("member_transfer_account_contents"); + break; + } + case PENDING_SECONDARY_EMAIL_ADDED: { + g.writeString("pending_secondary_email_added"); + break; + } + case SECONDARY_EMAIL_DELETED: { + g.writeString("secondary_email_deleted"); + break; + } + case SECONDARY_EMAIL_VERIFIED: { + g.writeString("secondary_email_verified"); + break; + } + case SECONDARY_MAILS_POLICY_CHANGED: { + g.writeString("secondary_mails_policy_changed"); + break; + } + case BINDER_ADD_PAGE: { + g.writeString("binder_add_page"); + break; + } + case BINDER_ADD_SECTION: { + g.writeString("binder_add_section"); + break; + } + case BINDER_REMOVE_PAGE: { + g.writeString("binder_remove_page"); + break; + } + case BINDER_REMOVE_SECTION: { + g.writeString("binder_remove_section"); + break; + } + case BINDER_RENAME_PAGE: { + g.writeString("binder_rename_page"); + break; + } + case BINDER_RENAME_SECTION: { + g.writeString("binder_rename_section"); + break; + } + case BINDER_REORDER_PAGE: { + g.writeString("binder_reorder_page"); + break; + } + case BINDER_REORDER_SECTION: { + g.writeString("binder_reorder_section"); + break; + } + case PAPER_CONTENT_ADD_MEMBER: { + g.writeString("paper_content_add_member"); + break; + } + case PAPER_CONTENT_ADD_TO_FOLDER: { + g.writeString("paper_content_add_to_folder"); + break; + } + case PAPER_CONTENT_ARCHIVE: { + g.writeString("paper_content_archive"); + break; + } + case PAPER_CONTENT_CREATE: { + g.writeString("paper_content_create"); + break; + } + case PAPER_CONTENT_PERMANENTLY_DELETE: { + g.writeString("paper_content_permanently_delete"); + break; + } + case PAPER_CONTENT_REMOVE_FROM_FOLDER: { + g.writeString("paper_content_remove_from_folder"); + break; + } + case PAPER_CONTENT_REMOVE_MEMBER: { + g.writeString("paper_content_remove_member"); + break; + } + case PAPER_CONTENT_RENAME: { + g.writeString("paper_content_rename"); + break; + } + case PAPER_CONTENT_RESTORE: { + g.writeString("paper_content_restore"); + break; + } + case PAPER_DOC_ADD_COMMENT: { + g.writeString("paper_doc_add_comment"); + break; + } + case PAPER_DOC_CHANGE_MEMBER_ROLE: { + g.writeString("paper_doc_change_member_role"); + break; + } + case PAPER_DOC_CHANGE_SHARING_POLICY: { + g.writeString("paper_doc_change_sharing_policy"); + break; + } + case PAPER_DOC_CHANGE_SUBSCRIPTION: { + g.writeString("paper_doc_change_subscription"); + break; + } + case PAPER_DOC_DELETED: { + g.writeString("paper_doc_deleted"); + break; + } + case PAPER_DOC_DELETE_COMMENT: { + g.writeString("paper_doc_delete_comment"); + break; + } + case PAPER_DOC_DOWNLOAD: { + g.writeString("paper_doc_download"); + break; + } + case PAPER_DOC_EDIT: { + g.writeString("paper_doc_edit"); + break; + } + case PAPER_DOC_EDIT_COMMENT: { + g.writeString("paper_doc_edit_comment"); + break; + } + case PAPER_DOC_FOLLOWED: { + g.writeString("paper_doc_followed"); + break; + } + case PAPER_DOC_MENTION: { + g.writeString("paper_doc_mention"); + break; + } + case PAPER_DOC_OWNERSHIP_CHANGED: { + g.writeString("paper_doc_ownership_changed"); + break; + } + case PAPER_DOC_REQUEST_ACCESS: { + g.writeString("paper_doc_request_access"); + break; + } + case PAPER_DOC_RESOLVE_COMMENT: { + g.writeString("paper_doc_resolve_comment"); + break; + } + case PAPER_DOC_REVERT: { + g.writeString("paper_doc_revert"); + break; + } + case PAPER_DOC_SLACK_SHARE: { + g.writeString("paper_doc_slack_share"); + break; + } + case PAPER_DOC_TEAM_INVITE: { + g.writeString("paper_doc_team_invite"); + break; + } + case PAPER_DOC_TRASHED: { + g.writeString("paper_doc_trashed"); + break; + } + case PAPER_DOC_UNRESOLVE_COMMENT: { + g.writeString("paper_doc_unresolve_comment"); + break; + } + case PAPER_DOC_UNTRASHED: { + g.writeString("paper_doc_untrashed"); + break; + } + case PAPER_DOC_VIEW: { + g.writeString("paper_doc_view"); + break; + } + case PAPER_EXTERNAL_VIEW_ALLOW: { + g.writeString("paper_external_view_allow"); + break; + } + case PAPER_EXTERNAL_VIEW_DEFAULT_TEAM: { + g.writeString("paper_external_view_default_team"); + break; + } + case PAPER_EXTERNAL_VIEW_FORBID: { + g.writeString("paper_external_view_forbid"); + break; + } + case PAPER_FOLDER_CHANGE_SUBSCRIPTION: { + g.writeString("paper_folder_change_subscription"); + break; + } + case PAPER_FOLDER_DELETED: { + g.writeString("paper_folder_deleted"); + break; + } + case PAPER_FOLDER_FOLLOWED: { + g.writeString("paper_folder_followed"); + break; + } + case PAPER_FOLDER_TEAM_INVITE: { + g.writeString("paper_folder_team_invite"); + break; + } + case PAPER_PUBLISHED_LINK_CHANGE_PERMISSION: { + g.writeString("paper_published_link_change_permission"); + break; + } + case PAPER_PUBLISHED_LINK_CREATE: { + g.writeString("paper_published_link_create"); + break; + } + case PAPER_PUBLISHED_LINK_DISABLED: { + g.writeString("paper_published_link_disabled"); + break; + } + case PAPER_PUBLISHED_LINK_VIEW: { + g.writeString("paper_published_link_view"); + break; + } + case PASSWORD_CHANGE: { + g.writeString("password_change"); + break; + } + case PASSWORD_RESET: { + g.writeString("password_reset"); + break; + } + case PASSWORD_RESET_ALL: { + g.writeString("password_reset_all"); + break; + } + case CLASSIFICATION_CREATE_REPORT: { + g.writeString("classification_create_report"); + break; + } + case CLASSIFICATION_CREATE_REPORT_FAIL: { + g.writeString("classification_create_report_fail"); + break; + } + case EMM_CREATE_EXCEPTIONS_REPORT: { + g.writeString("emm_create_exceptions_report"); + break; + } + case EMM_CREATE_USAGE_REPORT: { + g.writeString("emm_create_usage_report"); + break; + } + case EXPORT_MEMBERS_REPORT: { + g.writeString("export_members_report"); + break; + } + case EXPORT_MEMBERS_REPORT_FAIL: { + g.writeString("export_members_report_fail"); + break; + } + case EXTERNAL_SHARING_CREATE_REPORT: { + g.writeString("external_sharing_create_report"); + break; + } + case EXTERNAL_SHARING_REPORT_FAILED: { + g.writeString("external_sharing_report_failed"); + break; + } + case NO_EXPIRATION_LINK_GEN_CREATE_REPORT: { + g.writeString("no_expiration_link_gen_create_report"); + break; + } + case NO_EXPIRATION_LINK_GEN_REPORT_FAILED: { + g.writeString("no_expiration_link_gen_report_failed"); + break; + } + case NO_PASSWORD_LINK_GEN_CREATE_REPORT: { + g.writeString("no_password_link_gen_create_report"); + break; + } + case NO_PASSWORD_LINK_GEN_REPORT_FAILED: { + g.writeString("no_password_link_gen_report_failed"); + break; + } + case NO_PASSWORD_LINK_VIEW_CREATE_REPORT: { + g.writeString("no_password_link_view_create_report"); + break; + } + case NO_PASSWORD_LINK_VIEW_REPORT_FAILED: { + g.writeString("no_password_link_view_report_failed"); + break; + } + case OUTDATED_LINK_VIEW_CREATE_REPORT: { + g.writeString("outdated_link_view_create_report"); + break; + } + case OUTDATED_LINK_VIEW_REPORT_FAILED: { + g.writeString("outdated_link_view_report_failed"); + break; + } + case PAPER_ADMIN_EXPORT_START: { + g.writeString("paper_admin_export_start"); + break; + } + case RANSOMWARE_ALERT_CREATE_REPORT: { + g.writeString("ransomware_alert_create_report"); + break; + } + case RANSOMWARE_ALERT_CREATE_REPORT_FAILED: { + g.writeString("ransomware_alert_create_report_failed"); + break; + } + case SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT: { + g.writeString("smart_sync_create_admin_privilege_report"); + break; + } + case TEAM_ACTIVITY_CREATE_REPORT: { + g.writeString("team_activity_create_report"); + break; + } + case TEAM_ACTIVITY_CREATE_REPORT_FAIL: { + g.writeString("team_activity_create_report_fail"); + break; + } + case COLLECTION_SHARE: { + g.writeString("collection_share"); + break; + } + case FILE_TRANSFERS_FILE_ADD: { + g.writeString("file_transfers_file_add"); + break; + } + case FILE_TRANSFERS_TRANSFER_DELETE: { + g.writeString("file_transfers_transfer_delete"); + break; + } + case FILE_TRANSFERS_TRANSFER_DOWNLOAD: { + g.writeString("file_transfers_transfer_download"); + break; + } + case FILE_TRANSFERS_TRANSFER_SEND: { + g.writeString("file_transfers_transfer_send"); + break; + } + case FILE_TRANSFERS_TRANSFER_VIEW: { + g.writeString("file_transfers_transfer_view"); + break; + } + case NOTE_ACL_INVITE_ONLY: { + g.writeString("note_acl_invite_only"); + break; + } + case NOTE_ACL_LINK: { + g.writeString("note_acl_link"); + break; + } + case NOTE_ACL_TEAM_LINK: { + g.writeString("note_acl_team_link"); + break; + } + case NOTE_SHARED: { + g.writeString("note_shared"); + break; + } + case NOTE_SHARE_RECEIVE: { + g.writeString("note_share_receive"); + break; + } + case OPEN_NOTE_SHARED: { + g.writeString("open_note_shared"); + break; + } + case REPLAY_FILE_SHARED_LINK_CREATED: { + g.writeString("replay_file_shared_link_created"); + break; + } + case REPLAY_FILE_SHARED_LINK_MODIFIED: { + g.writeString("replay_file_shared_link_modified"); + break; + } + case REPLAY_PROJECT_TEAM_ADD: { + g.writeString("replay_project_team_add"); + break; + } + case REPLAY_PROJECT_TEAM_DELETE: { + g.writeString("replay_project_team_delete"); + break; + } + case SF_ADD_GROUP: { + g.writeString("sf_add_group"); + break; + } + case SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS: { + g.writeString("sf_allow_non_members_to_view_shared_links"); + break; + } + case SF_EXTERNAL_INVITE_WARN: { + g.writeString("sf_external_invite_warn"); + break; + } + case SF_FB_INVITE: { + g.writeString("sf_fb_invite"); + break; + } + case SF_FB_INVITE_CHANGE_ROLE: { + g.writeString("sf_fb_invite_change_role"); + break; + } + case SF_FB_UNINVITE: { + g.writeString("sf_fb_uninvite"); + break; + } + case SF_INVITE_GROUP: { + g.writeString("sf_invite_group"); + break; + } + case SF_TEAM_GRANT_ACCESS: { + g.writeString("sf_team_grant_access"); + break; + } + case SF_TEAM_INVITE: { + g.writeString("sf_team_invite"); + break; + } + case SF_TEAM_INVITE_CHANGE_ROLE: { + g.writeString("sf_team_invite_change_role"); + break; + } + case SF_TEAM_JOIN: { + g.writeString("sf_team_join"); + break; + } + case SF_TEAM_JOIN_FROM_OOB_LINK: { + g.writeString("sf_team_join_from_oob_link"); + break; + } + case SF_TEAM_UNINVITE: { + g.writeString("sf_team_uninvite"); + break; + } + case SHARED_CONTENT_ADD_INVITEES: { + g.writeString("shared_content_add_invitees"); + break; + } + case SHARED_CONTENT_ADD_LINK_EXPIRY: { + g.writeString("shared_content_add_link_expiry"); + break; + } + case SHARED_CONTENT_ADD_LINK_PASSWORD: { + g.writeString("shared_content_add_link_password"); + break; + } + case SHARED_CONTENT_ADD_MEMBER: { + g.writeString("shared_content_add_member"); + break; + } + case SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY: { + g.writeString("shared_content_change_downloads_policy"); + break; + } + case SHARED_CONTENT_CHANGE_INVITEE_ROLE: { + g.writeString("shared_content_change_invitee_role"); + break; + } + case SHARED_CONTENT_CHANGE_LINK_AUDIENCE: { + g.writeString("shared_content_change_link_audience"); + break; + } + case SHARED_CONTENT_CHANGE_LINK_EXPIRY: { + g.writeString("shared_content_change_link_expiry"); + break; + } + case SHARED_CONTENT_CHANGE_LINK_PASSWORD: { + g.writeString("shared_content_change_link_password"); + break; + } + case SHARED_CONTENT_CHANGE_MEMBER_ROLE: { + g.writeString("shared_content_change_member_role"); + break; + } + case SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY: { + g.writeString("shared_content_change_viewer_info_policy"); + break; + } + case SHARED_CONTENT_CLAIM_INVITATION: { + g.writeString("shared_content_claim_invitation"); + break; + } + case SHARED_CONTENT_COPY: { + g.writeString("shared_content_copy"); + break; + } + case SHARED_CONTENT_DOWNLOAD: { + g.writeString("shared_content_download"); + break; + } + case SHARED_CONTENT_RELINQUISH_MEMBERSHIP: { + g.writeString("shared_content_relinquish_membership"); + break; + } + case SHARED_CONTENT_REMOVE_INVITEES: { + g.writeString("shared_content_remove_invitees"); + break; + } + case SHARED_CONTENT_REMOVE_LINK_EXPIRY: { + g.writeString("shared_content_remove_link_expiry"); + break; + } + case SHARED_CONTENT_REMOVE_LINK_PASSWORD: { + g.writeString("shared_content_remove_link_password"); + break; + } + case SHARED_CONTENT_REMOVE_MEMBER: { + g.writeString("shared_content_remove_member"); + break; + } + case SHARED_CONTENT_REQUEST_ACCESS: { + g.writeString("shared_content_request_access"); + break; + } + case SHARED_CONTENT_RESTORE_INVITEES: { + g.writeString("shared_content_restore_invitees"); + break; + } + case SHARED_CONTENT_RESTORE_MEMBER: { + g.writeString("shared_content_restore_member"); + break; + } + case SHARED_CONTENT_UNSHARE: { + g.writeString("shared_content_unshare"); + break; + } + case SHARED_CONTENT_VIEW: { + g.writeString("shared_content_view"); + break; + } + case SHARED_FOLDER_CHANGE_LINK_POLICY: { + g.writeString("shared_folder_change_link_policy"); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY: { + g.writeString("shared_folder_change_members_inheritance_policy"); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY: { + g.writeString("shared_folder_change_members_management_policy"); + break; + } + case SHARED_FOLDER_CHANGE_MEMBERS_POLICY: { + g.writeString("shared_folder_change_members_policy"); + break; + } + case SHARED_FOLDER_CREATE: { + g.writeString("shared_folder_create"); + break; + } + case SHARED_FOLDER_DECLINE_INVITATION: { + g.writeString("shared_folder_decline_invitation"); + break; + } + case SHARED_FOLDER_MOUNT: { + g.writeString("shared_folder_mount"); + break; + } + case SHARED_FOLDER_NEST: { + g.writeString("shared_folder_nest"); + break; + } + case SHARED_FOLDER_TRANSFER_OWNERSHIP: { + g.writeString("shared_folder_transfer_ownership"); + break; + } + case SHARED_FOLDER_UNMOUNT: { + g.writeString("shared_folder_unmount"); + break; + } + case SHARED_LINK_ADD_EXPIRY: { + g.writeString("shared_link_add_expiry"); + break; + } + case SHARED_LINK_CHANGE_EXPIRY: { + g.writeString("shared_link_change_expiry"); + break; + } + case SHARED_LINK_CHANGE_VISIBILITY: { + g.writeString("shared_link_change_visibility"); + break; + } + case SHARED_LINK_COPY: { + g.writeString("shared_link_copy"); + break; + } + case SHARED_LINK_CREATE: { + g.writeString("shared_link_create"); + break; + } + case SHARED_LINK_DISABLE: { + g.writeString("shared_link_disable"); + break; + } + case SHARED_LINK_DOWNLOAD: { + g.writeString("shared_link_download"); + break; + } + case SHARED_LINK_REMOVE_EXPIRY: { + g.writeString("shared_link_remove_expiry"); + break; + } + case SHARED_LINK_SETTINGS_ADD_EXPIRATION: { + g.writeString("shared_link_settings_add_expiration"); + break; + } + case SHARED_LINK_SETTINGS_ADD_PASSWORD: { + g.writeString("shared_link_settings_add_password"); + break; + } + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED: { + g.writeString("shared_link_settings_allow_download_disabled"); + break; + } + case SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED: { + g.writeString("shared_link_settings_allow_download_enabled"); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_AUDIENCE: { + g.writeString("shared_link_settings_change_audience"); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_EXPIRATION: { + g.writeString("shared_link_settings_change_expiration"); + break; + } + case SHARED_LINK_SETTINGS_CHANGE_PASSWORD: { + g.writeString("shared_link_settings_change_password"); + break; + } + case SHARED_LINK_SETTINGS_REMOVE_EXPIRATION: { + g.writeString("shared_link_settings_remove_expiration"); + break; + } + case SHARED_LINK_SETTINGS_REMOVE_PASSWORD: { + g.writeString("shared_link_settings_remove_password"); + break; + } + case SHARED_LINK_SHARE: { + g.writeString("shared_link_share"); + break; + } + case SHARED_LINK_VIEW: { + g.writeString("shared_link_view"); + break; + } + case SHARED_NOTE_OPENED: { + g.writeString("shared_note_opened"); + break; + } + case SHMODEL_DISABLE_DOWNLOADS: { + g.writeString("shmodel_disable_downloads"); + break; + } + case SHMODEL_ENABLE_DOWNLOADS: { + g.writeString("shmodel_enable_downloads"); + break; + } + case SHMODEL_GROUP_SHARE: { + g.writeString("shmodel_group_share"); + break; + } + case SHOWCASE_ACCESS_GRANTED: { + g.writeString("showcase_access_granted"); + break; + } + case SHOWCASE_ADD_MEMBER: { + g.writeString("showcase_add_member"); + break; + } + case SHOWCASE_ARCHIVED: { + g.writeString("showcase_archived"); + break; + } + case SHOWCASE_CREATED: { + g.writeString("showcase_created"); + break; + } + case SHOWCASE_DELETE_COMMENT: { + g.writeString("showcase_delete_comment"); + break; + } + case SHOWCASE_EDITED: { + g.writeString("showcase_edited"); + break; + } + case SHOWCASE_EDIT_COMMENT: { + g.writeString("showcase_edit_comment"); + break; + } + case SHOWCASE_FILE_ADDED: { + g.writeString("showcase_file_added"); + break; + } + case SHOWCASE_FILE_DOWNLOAD: { + g.writeString("showcase_file_download"); + break; + } + case SHOWCASE_FILE_REMOVED: { + g.writeString("showcase_file_removed"); + break; + } + case SHOWCASE_FILE_VIEW: { + g.writeString("showcase_file_view"); + break; + } + case SHOWCASE_PERMANENTLY_DELETED: { + g.writeString("showcase_permanently_deleted"); + break; + } + case SHOWCASE_POST_COMMENT: { + g.writeString("showcase_post_comment"); + break; + } + case SHOWCASE_REMOVE_MEMBER: { + g.writeString("showcase_remove_member"); + break; + } + case SHOWCASE_RENAMED: { + g.writeString("showcase_renamed"); + break; + } + case SHOWCASE_REQUEST_ACCESS: { + g.writeString("showcase_request_access"); + break; + } + case SHOWCASE_RESOLVE_COMMENT: { + g.writeString("showcase_resolve_comment"); + break; + } + case SHOWCASE_RESTORED: { + g.writeString("showcase_restored"); + break; + } + case SHOWCASE_TRASHED: { + g.writeString("showcase_trashed"); + break; + } + case SHOWCASE_TRASHED_DEPRECATED: { + g.writeString("showcase_trashed_deprecated"); + break; + } + case SHOWCASE_UNRESOLVE_COMMENT: { + g.writeString("showcase_unresolve_comment"); + break; + } + case SHOWCASE_UNTRASHED: { + g.writeString("showcase_untrashed"); + break; + } + case SHOWCASE_UNTRASHED_DEPRECATED: { + g.writeString("showcase_untrashed_deprecated"); + break; + } + case SHOWCASE_VIEW: { + g.writeString("showcase_view"); + break; + } + case SSO_ADD_CERT: { + g.writeString("sso_add_cert"); + break; + } + case SSO_ADD_LOGIN_URL: { + g.writeString("sso_add_login_url"); + break; + } + case SSO_ADD_LOGOUT_URL: { + g.writeString("sso_add_logout_url"); + break; + } + case SSO_CHANGE_CERT: { + g.writeString("sso_change_cert"); + break; + } + case SSO_CHANGE_LOGIN_URL: { + g.writeString("sso_change_login_url"); + break; + } + case SSO_CHANGE_LOGOUT_URL: { + g.writeString("sso_change_logout_url"); + break; + } + case SSO_CHANGE_SAML_IDENTITY_MODE: { + g.writeString("sso_change_saml_identity_mode"); + break; + } + case SSO_REMOVE_CERT: { + g.writeString("sso_remove_cert"); + break; + } + case SSO_REMOVE_LOGIN_URL: { + g.writeString("sso_remove_login_url"); + break; + } + case SSO_REMOVE_LOGOUT_URL: { + g.writeString("sso_remove_logout_url"); + break; + } + case TEAM_FOLDER_CHANGE_STATUS: { + g.writeString("team_folder_change_status"); + break; + } + case TEAM_FOLDER_CREATE: { + g.writeString("team_folder_create"); + break; + } + case TEAM_FOLDER_DOWNGRADE: { + g.writeString("team_folder_downgrade"); + break; + } + case TEAM_FOLDER_PERMANENTLY_DELETE: { + g.writeString("team_folder_permanently_delete"); + break; + } + case TEAM_FOLDER_RENAME: { + g.writeString("team_folder_rename"); + break; + } + case TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED: { + g.writeString("team_selective_sync_settings_changed"); + break; + } + case ACCOUNT_CAPTURE_CHANGE_POLICY: { + g.writeString("account_capture_change_policy"); + break; + } + case ADMIN_EMAIL_REMINDERS_CHANGED: { + g.writeString("admin_email_reminders_changed"); + break; + } + case ALLOW_DOWNLOAD_DISABLED: { + g.writeString("allow_download_disabled"); + break; + } + case ALLOW_DOWNLOAD_ENABLED: { + g.writeString("allow_download_enabled"); + break; + } + case APP_PERMISSIONS_CHANGED: { + g.writeString("app_permissions_changed"); + break; + } + case CAMERA_UPLOADS_POLICY_CHANGED: { + g.writeString("camera_uploads_policy_changed"); + break; + } + case CAPTURE_TRANSCRIPT_POLICY_CHANGED: { + g.writeString("capture_transcript_policy_changed"); + break; + } + case CLASSIFICATION_CHANGE_POLICY: { + g.writeString("classification_change_policy"); + break; + } + case COMPUTER_BACKUP_POLICY_CHANGED: { + g.writeString("computer_backup_policy_changed"); + break; + } + case CONTENT_ADMINISTRATION_POLICY_CHANGED: { + g.writeString("content_administration_policy_changed"); + break; + } + case DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY: { + g.writeString("data_placement_restriction_change_policy"); + break; + } + case DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY: { + g.writeString("data_placement_restriction_satisfy_policy"); + break; + } + case DEVICE_APPROVALS_ADD_EXCEPTION: { + g.writeString("device_approvals_add_exception"); + break; + } + case DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY: { + g.writeString("device_approvals_change_desktop_policy"); + break; + } + case DEVICE_APPROVALS_CHANGE_MOBILE_POLICY: { + g.writeString("device_approvals_change_mobile_policy"); + break; + } + case DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION: { + g.writeString("device_approvals_change_overage_action"); + break; + } + case DEVICE_APPROVALS_CHANGE_UNLINK_ACTION: { + g.writeString("device_approvals_change_unlink_action"); + break; + } + case DEVICE_APPROVALS_REMOVE_EXCEPTION: { + g.writeString("device_approvals_remove_exception"); + break; + } + case DIRECTORY_RESTRICTIONS_ADD_MEMBERS: { + g.writeString("directory_restrictions_add_members"); + break; + } + case DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS: { + g.writeString("directory_restrictions_remove_members"); + break; + } + case DROPBOX_PASSWORDS_POLICY_CHANGED: { + g.writeString("dropbox_passwords_policy_changed"); + break; + } + case EMAIL_INGEST_POLICY_CHANGED: { + g.writeString("email_ingest_policy_changed"); + break; + } + case EMM_ADD_EXCEPTION: { + g.writeString("emm_add_exception"); + break; + } + case EMM_CHANGE_POLICY: { + g.writeString("emm_change_policy"); + break; + } + case EMM_REMOVE_EXCEPTION: { + g.writeString("emm_remove_exception"); + break; + } + case EXTENDED_VERSION_HISTORY_CHANGE_POLICY: { + g.writeString("extended_version_history_change_policy"); + break; + } + case EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED: { + g.writeString("external_drive_backup_policy_changed"); + break; + } + case FILE_COMMENTS_CHANGE_POLICY: { + g.writeString("file_comments_change_policy"); + break; + } + case FILE_LOCKING_POLICY_CHANGED: { + g.writeString("file_locking_policy_changed"); + break; + } + case FILE_PROVIDER_MIGRATION_POLICY_CHANGED: { + g.writeString("file_provider_migration_policy_changed"); + break; + } + case FILE_REQUESTS_CHANGE_POLICY: { + g.writeString("file_requests_change_policy"); + break; + } + case FILE_REQUESTS_EMAILS_ENABLED: { + g.writeString("file_requests_emails_enabled"); + break; + } + case FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY: { + g.writeString("file_requests_emails_restricted_to_team_only"); + break; + } + case FILE_TRANSFERS_POLICY_CHANGED: { + g.writeString("file_transfers_policy_changed"); + break; + } + case FOLDER_LINK_RESTRICTION_POLICY_CHANGED: { + g.writeString("folder_link_restriction_policy_changed"); + break; + } + case GOOGLE_SSO_CHANGE_POLICY: { + g.writeString("google_sso_change_policy"); + break; + } + case GROUP_USER_MANAGEMENT_CHANGE_POLICY: { + g.writeString("group_user_management_change_policy"); + break; + } + case INTEGRATION_POLICY_CHANGED: { + g.writeString("integration_policy_changed"); + break; + } + case INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED: { + g.writeString("invite_acceptance_email_policy_changed"); + break; + } + case MEMBER_REQUESTS_CHANGE_POLICY: { + g.writeString("member_requests_change_policy"); + break; + } + case MEMBER_SEND_INVITE_POLICY_CHANGED: { + g.writeString("member_send_invite_policy_changed"); + break; + } + case MEMBER_SPACE_LIMITS_ADD_EXCEPTION: { + g.writeString("member_space_limits_add_exception"); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY: { + g.writeString("member_space_limits_change_caps_type_policy"); + break; + } + case MEMBER_SPACE_LIMITS_CHANGE_POLICY: { + g.writeString("member_space_limits_change_policy"); + break; + } + case MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION: { + g.writeString("member_space_limits_remove_exception"); + break; + } + case MEMBER_SUGGESTIONS_CHANGE_POLICY: { + g.writeString("member_suggestions_change_policy"); + break; + } + case MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY: { + g.writeString("microsoft_office_addin_change_policy"); + break; + } + case NETWORK_CONTROL_CHANGE_POLICY: { + g.writeString("network_control_change_policy"); + break; + } + case PAPER_CHANGE_DEPLOYMENT_POLICY: { + g.writeString("paper_change_deployment_policy"); + break; + } + case PAPER_CHANGE_MEMBER_LINK_POLICY: { + g.writeString("paper_change_member_link_policy"); + break; + } + case PAPER_CHANGE_MEMBER_POLICY: { + g.writeString("paper_change_member_policy"); + break; + } + case PAPER_CHANGE_POLICY: { + g.writeString("paper_change_policy"); + break; + } + case PAPER_DEFAULT_FOLDER_POLICY_CHANGED: { + g.writeString("paper_default_folder_policy_changed"); + break; + } + case PAPER_DESKTOP_POLICY_CHANGED: { + g.writeString("paper_desktop_policy_changed"); + break; + } + case PAPER_ENABLED_USERS_GROUP_ADDITION: { + g.writeString("paper_enabled_users_group_addition"); + break; + } + case PAPER_ENABLED_USERS_GROUP_REMOVAL: { + g.writeString("paper_enabled_users_group_removal"); + break; + } + case PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY: { + g.writeString("password_strength_requirements_change_policy"); + break; + } + case PERMANENT_DELETE_CHANGE_POLICY: { + g.writeString("permanent_delete_change_policy"); + break; + } + case RESELLER_SUPPORT_CHANGE_POLICY: { + g.writeString("reseller_support_change_policy"); + break; + } + case REWIND_POLICY_CHANGED: { + g.writeString("rewind_policy_changed"); + break; + } + case SEND_FOR_SIGNATURE_POLICY_CHANGED: { + g.writeString("send_for_signature_policy_changed"); + break; + } + case SHARING_CHANGE_FOLDER_JOIN_POLICY: { + g.writeString("sharing_change_folder_join_policy"); + break; + } + case SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY: { + g.writeString("sharing_change_link_allow_change_expiration_policy"); + break; + } + case SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY: { + g.writeString("sharing_change_link_default_expiration_policy"); + break; + } + case SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY: { + g.writeString("sharing_change_link_enforce_password_policy"); + break; + } + case SHARING_CHANGE_LINK_POLICY: { + g.writeString("sharing_change_link_policy"); + break; + } + case SHARING_CHANGE_MEMBER_POLICY: { + g.writeString("sharing_change_member_policy"); + break; + } + case SHOWCASE_CHANGE_DOWNLOAD_POLICY: { + g.writeString("showcase_change_download_policy"); + break; + } + case SHOWCASE_CHANGE_ENABLED_POLICY: { + g.writeString("showcase_change_enabled_policy"); + break; + } + case SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY: { + g.writeString("showcase_change_external_sharing_policy"); + break; + } + case SMARTER_SMART_SYNC_POLICY_CHANGED: { + g.writeString("smarter_smart_sync_policy_changed"); + break; + } + case SMART_SYNC_CHANGE_POLICY: { + g.writeString("smart_sync_change_policy"); + break; + } + case SMART_SYNC_NOT_OPT_OUT: { + g.writeString("smart_sync_not_opt_out"); + break; + } + case SMART_SYNC_OPT_OUT: { + g.writeString("smart_sync_opt_out"); + break; + } + case SSO_CHANGE_POLICY: { + g.writeString("sso_change_policy"); + break; + } + case TEAM_BRANDING_POLICY_CHANGED: { + g.writeString("team_branding_policy_changed"); + break; + } + case TEAM_EXTENSIONS_POLICY_CHANGED: { + g.writeString("team_extensions_policy_changed"); + break; + } + case TEAM_SELECTIVE_SYNC_POLICY_CHANGED: { + g.writeString("team_selective_sync_policy_changed"); + break; + } + case TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED: { + g.writeString("team_sharing_whitelist_subjects_changed"); + break; + } + case TFA_ADD_EXCEPTION: { + g.writeString("tfa_add_exception"); + break; + } + case TFA_CHANGE_POLICY: { + g.writeString("tfa_change_policy"); + break; + } + case TFA_REMOVE_EXCEPTION: { + g.writeString("tfa_remove_exception"); + break; + } + case TWO_ACCOUNT_CHANGE_POLICY: { + g.writeString("two_account_change_policy"); + break; + } + case VIEWER_INFO_POLICY_CHANGED: { + g.writeString("viewer_info_policy_changed"); + break; + } + case WATERMARKING_POLICY_CHANGED: { + g.writeString("watermarking_policy_changed"); + break; + } + case WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT: { + g.writeString("web_sessions_change_active_session_limit"); + break; + } + case WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY: { + g.writeString("web_sessions_change_fixed_length_policy"); + break; + } + case WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY: { + g.writeString("web_sessions_change_idle_length_policy"); + break; + } + case DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL: { + g.writeString("data_residency_migration_request_successful"); + break; + } + case DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL: { + g.writeString("data_residency_migration_request_unsuccessful"); + break; + } + case TEAM_MERGE_FROM: { + g.writeString("team_merge_from"); + break; + } + case TEAM_MERGE_TO: { + g.writeString("team_merge_to"); + break; + } + case TEAM_PROFILE_ADD_BACKGROUND: { + g.writeString("team_profile_add_background"); + break; + } + case TEAM_PROFILE_ADD_LOGO: { + g.writeString("team_profile_add_logo"); + break; + } + case TEAM_PROFILE_CHANGE_BACKGROUND: { + g.writeString("team_profile_change_background"); + break; + } + case TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE: { + g.writeString("team_profile_change_default_language"); + break; + } + case TEAM_PROFILE_CHANGE_LOGO: { + g.writeString("team_profile_change_logo"); + break; + } + case TEAM_PROFILE_CHANGE_NAME: { + g.writeString("team_profile_change_name"); + break; + } + case TEAM_PROFILE_REMOVE_BACKGROUND: { + g.writeString("team_profile_remove_background"); + break; + } + case TEAM_PROFILE_REMOVE_LOGO: { + g.writeString("team_profile_remove_logo"); + break; + } + case TFA_ADD_BACKUP_PHONE: { + g.writeString("tfa_add_backup_phone"); + break; + } + case TFA_ADD_SECURITY_KEY: { + g.writeString("tfa_add_security_key"); + break; + } + case TFA_CHANGE_BACKUP_PHONE: { + g.writeString("tfa_change_backup_phone"); + break; + } + case TFA_CHANGE_STATUS: { + g.writeString("tfa_change_status"); + break; + } + case TFA_REMOVE_BACKUP_PHONE: { + g.writeString("tfa_remove_backup_phone"); + break; + } + case TFA_REMOVE_SECURITY_KEY: { + g.writeString("tfa_remove_security_key"); + break; + } + case TFA_RESET: { + g.writeString("tfa_reset"); + break; + } + case CHANGED_ENTERPRISE_ADMIN_ROLE: { + g.writeString("changed_enterprise_admin_role"); + break; + } + case CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS: { + g.writeString("changed_enterprise_connected_team_status"); + break; + } + case ENDED_ENTERPRISE_ADMIN_SESSION: { + g.writeString("ended_enterprise_admin_session"); + break; + } + case ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED: { + g.writeString("ended_enterprise_admin_session_deprecated"); + break; + } + case ENTERPRISE_SETTINGS_LOCKING: { + g.writeString("enterprise_settings_locking"); + break; + } + case GUEST_ADMIN_CHANGE_STATUS: { + g.writeString("guest_admin_change_status"); + break; + } + case STARTED_ENTERPRISE_ADMIN_SESSION: { + g.writeString("started_enterprise_admin_session"); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED: { + g.writeString("team_merge_request_accepted"); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM: { + g.writeString("team_merge_request_accepted_shown_to_primary_team"); + break; + } + case TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM: { + g.writeString("team_merge_request_accepted_shown_to_secondary_team"); + break; + } + case TEAM_MERGE_REQUEST_AUTO_CANCELED: { + g.writeString("team_merge_request_auto_canceled"); + break; + } + case TEAM_MERGE_REQUEST_CANCELED: { + g.writeString("team_merge_request_canceled"); + break; + } + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM: { + g.writeString("team_merge_request_canceled_shown_to_primary_team"); + break; + } + case TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM: { + g.writeString("team_merge_request_canceled_shown_to_secondary_team"); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED: { + g.writeString("team_merge_request_expired"); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM: { + g.writeString("team_merge_request_expired_shown_to_primary_team"); + break; + } + case TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM: { + g.writeString("team_merge_request_expired_shown_to_secondary_team"); + break; + } + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM: { + g.writeString("team_merge_request_rejected_shown_to_primary_team"); + break; + } + case TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM: { + g.writeString("team_merge_request_rejected_shown_to_secondary_team"); + break; + } + case TEAM_MERGE_REQUEST_REMINDER: { + g.writeString("team_merge_request_reminder"); + break; + } + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM: { + g.writeString("team_merge_request_reminder_shown_to_primary_team"); + break; + } + case TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM: { + g.writeString("team_merge_request_reminder_shown_to_secondary_team"); + break; + } + case TEAM_MERGE_REQUEST_REVOKED: { + g.writeString("team_merge_request_revoked"); + break; + } + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM: { + g.writeString("team_merge_request_sent_shown_to_primary_team"); + break; + } + case TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM: { + g.writeString("team_merge_request_sent_shown_to_secondary_team"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public EventTypeArg deserialize(JsonParser p) throws IOException, JsonParseException { + EventTypeArg value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admin_alerting_alert_state_changed".equals(tag)) { + value = EventTypeArg.ADMIN_ALERTING_ALERT_STATE_CHANGED; + } + else if ("admin_alerting_changed_alert_config".equals(tag)) { + value = EventTypeArg.ADMIN_ALERTING_CHANGED_ALERT_CONFIG; + } + else if ("admin_alerting_triggered_alert".equals(tag)) { + value = EventTypeArg.ADMIN_ALERTING_TRIGGERED_ALERT; + } + else if ("ransomware_restore_process_completed".equals(tag)) { + value = EventTypeArg.RANSOMWARE_RESTORE_PROCESS_COMPLETED; + } + else if ("ransomware_restore_process_started".equals(tag)) { + value = EventTypeArg.RANSOMWARE_RESTORE_PROCESS_STARTED; + } + else if ("app_blocked_by_permissions".equals(tag)) { + value = EventTypeArg.APP_BLOCKED_BY_PERMISSIONS; + } + else if ("app_link_team".equals(tag)) { + value = EventTypeArg.APP_LINK_TEAM; + } + else if ("app_link_user".equals(tag)) { + value = EventTypeArg.APP_LINK_USER; + } + else if ("app_unlink_team".equals(tag)) { + value = EventTypeArg.APP_UNLINK_TEAM; + } + else if ("app_unlink_user".equals(tag)) { + value = EventTypeArg.APP_UNLINK_USER; + } + else if ("integration_connected".equals(tag)) { + value = EventTypeArg.INTEGRATION_CONNECTED; + } + else if ("integration_disconnected".equals(tag)) { + value = EventTypeArg.INTEGRATION_DISCONNECTED; + } + else if ("file_add_comment".equals(tag)) { + value = EventTypeArg.FILE_ADD_COMMENT; + } + else if ("file_change_comment_subscription".equals(tag)) { + value = EventTypeArg.FILE_CHANGE_COMMENT_SUBSCRIPTION; + } + else if ("file_delete_comment".equals(tag)) { + value = EventTypeArg.FILE_DELETE_COMMENT; + } + else if ("file_edit_comment".equals(tag)) { + value = EventTypeArg.FILE_EDIT_COMMENT; + } + else if ("file_like_comment".equals(tag)) { + value = EventTypeArg.FILE_LIKE_COMMENT; + } + else if ("file_resolve_comment".equals(tag)) { + value = EventTypeArg.FILE_RESOLVE_COMMENT; + } + else if ("file_unlike_comment".equals(tag)) { + value = EventTypeArg.FILE_UNLIKE_COMMENT; + } + else if ("file_unresolve_comment".equals(tag)) { + value = EventTypeArg.FILE_UNRESOLVE_COMMENT; + } + else if ("governance_policy_add_folders".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_ADD_FOLDERS; + } + else if ("governance_policy_add_folder_failed".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_ADD_FOLDER_FAILED; + } + else if ("governance_policy_content_disposed".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_CONTENT_DISPOSED; + } + else if ("governance_policy_create".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_CREATE; + } + else if ("governance_policy_delete".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_DELETE; + } + else if ("governance_policy_edit_details".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_EDIT_DETAILS; + } + else if ("governance_policy_edit_duration".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_EDIT_DURATION; + } + else if ("governance_policy_export_created".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_EXPORT_CREATED; + } + else if ("governance_policy_export_removed".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_EXPORT_REMOVED; + } + else if ("governance_policy_remove_folders".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_REMOVE_FOLDERS; + } + else if ("governance_policy_report_created".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_REPORT_CREATED; + } + else if ("governance_policy_zip_part_downloaded".equals(tag)) { + value = EventTypeArg.GOVERNANCE_POLICY_ZIP_PART_DOWNLOADED; + } + else if ("legal_holds_activate_a_hold".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_ACTIVATE_A_HOLD; + } + else if ("legal_holds_add_members".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_ADD_MEMBERS; + } + else if ("legal_holds_change_hold_details".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_CHANGE_HOLD_DETAILS; + } + else if ("legal_holds_change_hold_name".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_CHANGE_HOLD_NAME; + } + else if ("legal_holds_export_a_hold".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_EXPORT_A_HOLD; + } + else if ("legal_holds_export_cancelled".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_EXPORT_CANCELLED; + } + else if ("legal_holds_export_downloaded".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_EXPORT_DOWNLOADED; + } + else if ("legal_holds_export_removed".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_EXPORT_REMOVED; + } + else if ("legal_holds_release_a_hold".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_RELEASE_A_HOLD; + } + else if ("legal_holds_remove_members".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_REMOVE_MEMBERS; + } + else if ("legal_holds_report_a_hold".equals(tag)) { + value = EventTypeArg.LEGAL_HOLDS_REPORT_A_HOLD; + } + else if ("device_change_ip_desktop".equals(tag)) { + value = EventTypeArg.DEVICE_CHANGE_IP_DESKTOP; + } + else if ("device_change_ip_mobile".equals(tag)) { + value = EventTypeArg.DEVICE_CHANGE_IP_MOBILE; + } + else if ("device_change_ip_web".equals(tag)) { + value = EventTypeArg.DEVICE_CHANGE_IP_WEB; + } + else if ("device_delete_on_unlink_fail".equals(tag)) { + value = EventTypeArg.DEVICE_DELETE_ON_UNLINK_FAIL; + } + else if ("device_delete_on_unlink_success".equals(tag)) { + value = EventTypeArg.DEVICE_DELETE_ON_UNLINK_SUCCESS; + } + else if ("device_link_fail".equals(tag)) { + value = EventTypeArg.DEVICE_LINK_FAIL; + } + else if ("device_link_success".equals(tag)) { + value = EventTypeArg.DEVICE_LINK_SUCCESS; + } + else if ("device_management_disabled".equals(tag)) { + value = EventTypeArg.DEVICE_MANAGEMENT_DISABLED; + } + else if ("device_management_enabled".equals(tag)) { + value = EventTypeArg.DEVICE_MANAGEMENT_ENABLED; + } + else if ("device_sync_backup_status_changed".equals(tag)) { + value = EventTypeArg.DEVICE_SYNC_BACKUP_STATUS_CHANGED; + } + else if ("device_unlink".equals(tag)) { + value = EventTypeArg.DEVICE_UNLINK; + } + else if ("dropbox_passwords_exported".equals(tag)) { + value = EventTypeArg.DROPBOX_PASSWORDS_EXPORTED; + } + else if ("dropbox_passwords_new_device_enrolled".equals(tag)) { + value = EventTypeArg.DROPBOX_PASSWORDS_NEW_DEVICE_ENROLLED; + } + else if ("emm_refresh_auth_token".equals(tag)) { + value = EventTypeArg.EMM_REFRESH_AUTH_TOKEN; + } + else if ("external_drive_backup_eligibility_status_checked".equals(tag)) { + value = EventTypeArg.EXTERNAL_DRIVE_BACKUP_ELIGIBILITY_STATUS_CHECKED; + } + else if ("external_drive_backup_status_changed".equals(tag)) { + value = EventTypeArg.EXTERNAL_DRIVE_BACKUP_STATUS_CHANGED; + } + else if ("account_capture_change_availability".equals(tag)) { + value = EventTypeArg.ACCOUNT_CAPTURE_CHANGE_AVAILABILITY; + } + else if ("account_capture_migrate_account".equals(tag)) { + value = EventTypeArg.ACCOUNT_CAPTURE_MIGRATE_ACCOUNT; + } + else if ("account_capture_notification_emails_sent".equals(tag)) { + value = EventTypeArg.ACCOUNT_CAPTURE_NOTIFICATION_EMAILS_SENT; + } + else if ("account_capture_relinquish_account".equals(tag)) { + value = EventTypeArg.ACCOUNT_CAPTURE_RELINQUISH_ACCOUNT; + } + else if ("disabled_domain_invites".equals(tag)) { + value = EventTypeArg.DISABLED_DOMAIN_INVITES; + } + else if ("domain_invites_approve_request_to_join_team".equals(tag)) { + value = EventTypeArg.DOMAIN_INVITES_APPROVE_REQUEST_TO_JOIN_TEAM; + } + else if ("domain_invites_decline_request_to_join_team".equals(tag)) { + value = EventTypeArg.DOMAIN_INVITES_DECLINE_REQUEST_TO_JOIN_TEAM; + } + else if ("domain_invites_email_existing_users".equals(tag)) { + value = EventTypeArg.DOMAIN_INVITES_EMAIL_EXISTING_USERS; + } + else if ("domain_invites_request_to_join_team".equals(tag)) { + value = EventTypeArg.DOMAIN_INVITES_REQUEST_TO_JOIN_TEAM; + } + else if ("domain_invites_set_invite_new_user_pref_to_no".equals(tag)) { + value = EventTypeArg.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_NO; + } + else if ("domain_invites_set_invite_new_user_pref_to_yes".equals(tag)) { + value = EventTypeArg.DOMAIN_INVITES_SET_INVITE_NEW_USER_PREF_TO_YES; + } + else if ("domain_verification_add_domain_fail".equals(tag)) { + value = EventTypeArg.DOMAIN_VERIFICATION_ADD_DOMAIN_FAIL; + } + else if ("domain_verification_add_domain_success".equals(tag)) { + value = EventTypeArg.DOMAIN_VERIFICATION_ADD_DOMAIN_SUCCESS; + } + else if ("domain_verification_remove_domain".equals(tag)) { + value = EventTypeArg.DOMAIN_VERIFICATION_REMOVE_DOMAIN; + } + else if ("enabled_domain_invites".equals(tag)) { + value = EventTypeArg.ENABLED_DOMAIN_INVITES; + } + else if ("team_encryption_key_cancel_key_deletion".equals(tag)) { + value = EventTypeArg.TEAM_ENCRYPTION_KEY_CANCEL_KEY_DELETION; + } + else if ("team_encryption_key_create_key".equals(tag)) { + value = EventTypeArg.TEAM_ENCRYPTION_KEY_CREATE_KEY; + } + else if ("team_encryption_key_delete_key".equals(tag)) { + value = EventTypeArg.TEAM_ENCRYPTION_KEY_DELETE_KEY; + } + else if ("team_encryption_key_disable_key".equals(tag)) { + value = EventTypeArg.TEAM_ENCRYPTION_KEY_DISABLE_KEY; + } + else if ("team_encryption_key_enable_key".equals(tag)) { + value = EventTypeArg.TEAM_ENCRYPTION_KEY_ENABLE_KEY; + } + else if ("team_encryption_key_rotate_key".equals(tag)) { + value = EventTypeArg.TEAM_ENCRYPTION_KEY_ROTATE_KEY; + } + else if ("team_encryption_key_schedule_key_deletion".equals(tag)) { + value = EventTypeArg.TEAM_ENCRYPTION_KEY_SCHEDULE_KEY_DELETION; + } + else if ("apply_naming_convention".equals(tag)) { + value = EventTypeArg.APPLY_NAMING_CONVENTION; + } + else if ("create_folder".equals(tag)) { + value = EventTypeArg.CREATE_FOLDER; + } + else if ("file_add".equals(tag)) { + value = EventTypeArg.FILE_ADD; + } + else if ("file_add_from_automation".equals(tag)) { + value = EventTypeArg.FILE_ADD_FROM_AUTOMATION; + } + else if ("file_copy".equals(tag)) { + value = EventTypeArg.FILE_COPY; + } + else if ("file_delete".equals(tag)) { + value = EventTypeArg.FILE_DELETE; + } + else if ("file_download".equals(tag)) { + value = EventTypeArg.FILE_DOWNLOAD; + } + else if ("file_edit".equals(tag)) { + value = EventTypeArg.FILE_EDIT; + } + else if ("file_get_copy_reference".equals(tag)) { + value = EventTypeArg.FILE_GET_COPY_REFERENCE; + } + else if ("file_locking_lock_status_changed".equals(tag)) { + value = EventTypeArg.FILE_LOCKING_LOCK_STATUS_CHANGED; + } + else if ("file_move".equals(tag)) { + value = EventTypeArg.FILE_MOVE; + } + else if ("file_permanently_delete".equals(tag)) { + value = EventTypeArg.FILE_PERMANENTLY_DELETE; + } + else if ("file_preview".equals(tag)) { + value = EventTypeArg.FILE_PREVIEW; + } + else if ("file_rename".equals(tag)) { + value = EventTypeArg.FILE_RENAME; + } + else if ("file_restore".equals(tag)) { + value = EventTypeArg.FILE_RESTORE; + } + else if ("file_revert".equals(tag)) { + value = EventTypeArg.FILE_REVERT; + } + else if ("file_rollback_changes".equals(tag)) { + value = EventTypeArg.FILE_ROLLBACK_CHANGES; + } + else if ("file_save_copy_reference".equals(tag)) { + value = EventTypeArg.FILE_SAVE_COPY_REFERENCE; + } + else if ("folder_overview_description_changed".equals(tag)) { + value = EventTypeArg.FOLDER_OVERVIEW_DESCRIPTION_CHANGED; + } + else if ("folder_overview_item_pinned".equals(tag)) { + value = EventTypeArg.FOLDER_OVERVIEW_ITEM_PINNED; + } + else if ("folder_overview_item_unpinned".equals(tag)) { + value = EventTypeArg.FOLDER_OVERVIEW_ITEM_UNPINNED; + } + else if ("object_label_added".equals(tag)) { + value = EventTypeArg.OBJECT_LABEL_ADDED; + } + else if ("object_label_removed".equals(tag)) { + value = EventTypeArg.OBJECT_LABEL_REMOVED; + } + else if ("object_label_updated_value".equals(tag)) { + value = EventTypeArg.OBJECT_LABEL_UPDATED_VALUE; + } + else if ("organize_folder_with_tidy".equals(tag)) { + value = EventTypeArg.ORGANIZE_FOLDER_WITH_TIDY; + } + else if ("replay_file_delete".equals(tag)) { + value = EventTypeArg.REPLAY_FILE_DELETE; + } + else if ("rewind_folder".equals(tag)) { + value = EventTypeArg.REWIND_FOLDER; + } + else if ("undo_naming_convention".equals(tag)) { + value = EventTypeArg.UNDO_NAMING_CONVENTION; + } + else if ("undo_organize_folder_with_tidy".equals(tag)) { + value = EventTypeArg.UNDO_ORGANIZE_FOLDER_WITH_TIDY; + } + else if ("user_tags_added".equals(tag)) { + value = EventTypeArg.USER_TAGS_ADDED; + } + else if ("user_tags_removed".equals(tag)) { + value = EventTypeArg.USER_TAGS_REMOVED; + } + else if ("email_ingest_receive_file".equals(tag)) { + value = EventTypeArg.EMAIL_INGEST_RECEIVE_FILE; + } + else if ("file_request_change".equals(tag)) { + value = EventTypeArg.FILE_REQUEST_CHANGE; + } + else if ("file_request_close".equals(tag)) { + value = EventTypeArg.FILE_REQUEST_CLOSE; + } + else if ("file_request_create".equals(tag)) { + value = EventTypeArg.FILE_REQUEST_CREATE; + } + else if ("file_request_delete".equals(tag)) { + value = EventTypeArg.FILE_REQUEST_DELETE; + } + else if ("file_request_receive_file".equals(tag)) { + value = EventTypeArg.FILE_REQUEST_RECEIVE_FILE; + } + else if ("group_add_external_id".equals(tag)) { + value = EventTypeArg.GROUP_ADD_EXTERNAL_ID; + } + else if ("group_add_member".equals(tag)) { + value = EventTypeArg.GROUP_ADD_MEMBER; + } + else if ("group_change_external_id".equals(tag)) { + value = EventTypeArg.GROUP_CHANGE_EXTERNAL_ID; + } + else if ("group_change_management_type".equals(tag)) { + value = EventTypeArg.GROUP_CHANGE_MANAGEMENT_TYPE; + } + else if ("group_change_member_role".equals(tag)) { + value = EventTypeArg.GROUP_CHANGE_MEMBER_ROLE; + } + else if ("group_create".equals(tag)) { + value = EventTypeArg.GROUP_CREATE; + } + else if ("group_delete".equals(tag)) { + value = EventTypeArg.GROUP_DELETE; + } + else if ("group_description_updated".equals(tag)) { + value = EventTypeArg.GROUP_DESCRIPTION_UPDATED; + } + else if ("group_join_policy_updated".equals(tag)) { + value = EventTypeArg.GROUP_JOIN_POLICY_UPDATED; + } + else if ("group_moved".equals(tag)) { + value = EventTypeArg.GROUP_MOVED; + } + else if ("group_remove_external_id".equals(tag)) { + value = EventTypeArg.GROUP_REMOVE_EXTERNAL_ID; + } + else if ("group_remove_member".equals(tag)) { + value = EventTypeArg.GROUP_REMOVE_MEMBER; + } + else if ("group_rename".equals(tag)) { + value = EventTypeArg.GROUP_RENAME; + } + else if ("account_lock_or_unlocked".equals(tag)) { + value = EventTypeArg.ACCOUNT_LOCK_OR_UNLOCKED; + } + else if ("emm_error".equals(tag)) { + value = EventTypeArg.EMM_ERROR; + } + else if ("guest_admin_signed_in_via_trusted_teams".equals(tag)) { + value = EventTypeArg.GUEST_ADMIN_SIGNED_IN_VIA_TRUSTED_TEAMS; + } + else if ("guest_admin_signed_out_via_trusted_teams".equals(tag)) { + value = EventTypeArg.GUEST_ADMIN_SIGNED_OUT_VIA_TRUSTED_TEAMS; + } + else if ("login_fail".equals(tag)) { + value = EventTypeArg.LOGIN_FAIL; + } + else if ("login_success".equals(tag)) { + value = EventTypeArg.LOGIN_SUCCESS; + } + else if ("logout".equals(tag)) { + value = EventTypeArg.LOGOUT; + } + else if ("reseller_support_session_end".equals(tag)) { + value = EventTypeArg.RESELLER_SUPPORT_SESSION_END; + } + else if ("reseller_support_session_start".equals(tag)) { + value = EventTypeArg.RESELLER_SUPPORT_SESSION_START; + } + else if ("sign_in_as_session_end".equals(tag)) { + value = EventTypeArg.SIGN_IN_AS_SESSION_END; + } + else if ("sign_in_as_session_start".equals(tag)) { + value = EventTypeArg.SIGN_IN_AS_SESSION_START; + } + else if ("sso_error".equals(tag)) { + value = EventTypeArg.SSO_ERROR; + } + else if ("backup_admin_invitation_sent".equals(tag)) { + value = EventTypeArg.BACKUP_ADMIN_INVITATION_SENT; + } + else if ("backup_invitation_opened".equals(tag)) { + value = EventTypeArg.BACKUP_INVITATION_OPENED; + } + else if ("create_team_invite_link".equals(tag)) { + value = EventTypeArg.CREATE_TEAM_INVITE_LINK; + } + else if ("delete_team_invite_link".equals(tag)) { + value = EventTypeArg.DELETE_TEAM_INVITE_LINK; + } + else if ("member_add_external_id".equals(tag)) { + value = EventTypeArg.MEMBER_ADD_EXTERNAL_ID; + } + else if ("member_add_name".equals(tag)) { + value = EventTypeArg.MEMBER_ADD_NAME; + } + else if ("member_change_admin_role".equals(tag)) { + value = EventTypeArg.MEMBER_CHANGE_ADMIN_ROLE; + } + else if ("member_change_email".equals(tag)) { + value = EventTypeArg.MEMBER_CHANGE_EMAIL; + } + else if ("member_change_external_id".equals(tag)) { + value = EventTypeArg.MEMBER_CHANGE_EXTERNAL_ID; + } + else if ("member_change_membership_type".equals(tag)) { + value = EventTypeArg.MEMBER_CHANGE_MEMBERSHIP_TYPE; + } + else if ("member_change_name".equals(tag)) { + value = EventTypeArg.MEMBER_CHANGE_NAME; + } + else if ("member_change_reseller_role".equals(tag)) { + value = EventTypeArg.MEMBER_CHANGE_RESELLER_ROLE; + } + else if ("member_change_status".equals(tag)) { + value = EventTypeArg.MEMBER_CHANGE_STATUS; + } + else if ("member_delete_manual_contacts".equals(tag)) { + value = EventTypeArg.MEMBER_DELETE_MANUAL_CONTACTS; + } + else if ("member_delete_profile_photo".equals(tag)) { + value = EventTypeArg.MEMBER_DELETE_PROFILE_PHOTO; + } + else if ("member_permanently_delete_account_contents".equals(tag)) { + value = EventTypeArg.MEMBER_PERMANENTLY_DELETE_ACCOUNT_CONTENTS; + } + else if ("member_remove_external_id".equals(tag)) { + value = EventTypeArg.MEMBER_REMOVE_EXTERNAL_ID; + } + else if ("member_set_profile_photo".equals(tag)) { + value = EventTypeArg.MEMBER_SET_PROFILE_PHOTO; + } + else if ("member_space_limits_add_custom_quota".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_ADD_CUSTOM_QUOTA; + } + else if ("member_space_limits_change_custom_quota".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_CHANGE_CUSTOM_QUOTA; + } + else if ("member_space_limits_change_status".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_CHANGE_STATUS; + } + else if ("member_space_limits_remove_custom_quota".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_REMOVE_CUSTOM_QUOTA; + } + else if ("member_suggest".equals(tag)) { + value = EventTypeArg.MEMBER_SUGGEST; + } + else if ("member_transfer_account_contents".equals(tag)) { + value = EventTypeArg.MEMBER_TRANSFER_ACCOUNT_CONTENTS; + } + else if ("pending_secondary_email_added".equals(tag)) { + value = EventTypeArg.PENDING_SECONDARY_EMAIL_ADDED; + } + else if ("secondary_email_deleted".equals(tag)) { + value = EventTypeArg.SECONDARY_EMAIL_DELETED; + } + else if ("secondary_email_verified".equals(tag)) { + value = EventTypeArg.SECONDARY_EMAIL_VERIFIED; + } + else if ("secondary_mails_policy_changed".equals(tag)) { + value = EventTypeArg.SECONDARY_MAILS_POLICY_CHANGED; + } + else if ("binder_add_page".equals(tag)) { + value = EventTypeArg.BINDER_ADD_PAGE; + } + else if ("binder_add_section".equals(tag)) { + value = EventTypeArg.BINDER_ADD_SECTION; + } + else if ("binder_remove_page".equals(tag)) { + value = EventTypeArg.BINDER_REMOVE_PAGE; + } + else if ("binder_remove_section".equals(tag)) { + value = EventTypeArg.BINDER_REMOVE_SECTION; + } + else if ("binder_rename_page".equals(tag)) { + value = EventTypeArg.BINDER_RENAME_PAGE; + } + else if ("binder_rename_section".equals(tag)) { + value = EventTypeArg.BINDER_RENAME_SECTION; + } + else if ("binder_reorder_page".equals(tag)) { + value = EventTypeArg.BINDER_REORDER_PAGE; + } + else if ("binder_reorder_section".equals(tag)) { + value = EventTypeArg.BINDER_REORDER_SECTION; + } + else if ("paper_content_add_member".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_ADD_MEMBER; + } + else if ("paper_content_add_to_folder".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_ADD_TO_FOLDER; + } + else if ("paper_content_archive".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_ARCHIVE; + } + else if ("paper_content_create".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_CREATE; + } + else if ("paper_content_permanently_delete".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_PERMANENTLY_DELETE; + } + else if ("paper_content_remove_from_folder".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_REMOVE_FROM_FOLDER; + } + else if ("paper_content_remove_member".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_REMOVE_MEMBER; + } + else if ("paper_content_rename".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_RENAME; + } + else if ("paper_content_restore".equals(tag)) { + value = EventTypeArg.PAPER_CONTENT_RESTORE; + } + else if ("paper_doc_add_comment".equals(tag)) { + value = EventTypeArg.PAPER_DOC_ADD_COMMENT; + } + else if ("paper_doc_change_member_role".equals(tag)) { + value = EventTypeArg.PAPER_DOC_CHANGE_MEMBER_ROLE; + } + else if ("paper_doc_change_sharing_policy".equals(tag)) { + value = EventTypeArg.PAPER_DOC_CHANGE_SHARING_POLICY; + } + else if ("paper_doc_change_subscription".equals(tag)) { + value = EventTypeArg.PAPER_DOC_CHANGE_SUBSCRIPTION; + } + else if ("paper_doc_deleted".equals(tag)) { + value = EventTypeArg.PAPER_DOC_DELETED; + } + else if ("paper_doc_delete_comment".equals(tag)) { + value = EventTypeArg.PAPER_DOC_DELETE_COMMENT; + } + else if ("paper_doc_download".equals(tag)) { + value = EventTypeArg.PAPER_DOC_DOWNLOAD; + } + else if ("paper_doc_edit".equals(tag)) { + value = EventTypeArg.PAPER_DOC_EDIT; + } + else if ("paper_doc_edit_comment".equals(tag)) { + value = EventTypeArg.PAPER_DOC_EDIT_COMMENT; + } + else if ("paper_doc_followed".equals(tag)) { + value = EventTypeArg.PAPER_DOC_FOLLOWED; + } + else if ("paper_doc_mention".equals(tag)) { + value = EventTypeArg.PAPER_DOC_MENTION; + } + else if ("paper_doc_ownership_changed".equals(tag)) { + value = EventTypeArg.PAPER_DOC_OWNERSHIP_CHANGED; + } + else if ("paper_doc_request_access".equals(tag)) { + value = EventTypeArg.PAPER_DOC_REQUEST_ACCESS; + } + else if ("paper_doc_resolve_comment".equals(tag)) { + value = EventTypeArg.PAPER_DOC_RESOLVE_COMMENT; + } + else if ("paper_doc_revert".equals(tag)) { + value = EventTypeArg.PAPER_DOC_REVERT; + } + else if ("paper_doc_slack_share".equals(tag)) { + value = EventTypeArg.PAPER_DOC_SLACK_SHARE; + } + else if ("paper_doc_team_invite".equals(tag)) { + value = EventTypeArg.PAPER_DOC_TEAM_INVITE; + } + else if ("paper_doc_trashed".equals(tag)) { + value = EventTypeArg.PAPER_DOC_TRASHED; + } + else if ("paper_doc_unresolve_comment".equals(tag)) { + value = EventTypeArg.PAPER_DOC_UNRESOLVE_COMMENT; + } + else if ("paper_doc_untrashed".equals(tag)) { + value = EventTypeArg.PAPER_DOC_UNTRASHED; + } + else if ("paper_doc_view".equals(tag)) { + value = EventTypeArg.PAPER_DOC_VIEW; + } + else if ("paper_external_view_allow".equals(tag)) { + value = EventTypeArg.PAPER_EXTERNAL_VIEW_ALLOW; + } + else if ("paper_external_view_default_team".equals(tag)) { + value = EventTypeArg.PAPER_EXTERNAL_VIEW_DEFAULT_TEAM; + } + else if ("paper_external_view_forbid".equals(tag)) { + value = EventTypeArg.PAPER_EXTERNAL_VIEW_FORBID; + } + else if ("paper_folder_change_subscription".equals(tag)) { + value = EventTypeArg.PAPER_FOLDER_CHANGE_SUBSCRIPTION; + } + else if ("paper_folder_deleted".equals(tag)) { + value = EventTypeArg.PAPER_FOLDER_DELETED; + } + else if ("paper_folder_followed".equals(tag)) { + value = EventTypeArg.PAPER_FOLDER_FOLLOWED; + } + else if ("paper_folder_team_invite".equals(tag)) { + value = EventTypeArg.PAPER_FOLDER_TEAM_INVITE; + } + else if ("paper_published_link_change_permission".equals(tag)) { + value = EventTypeArg.PAPER_PUBLISHED_LINK_CHANGE_PERMISSION; + } + else if ("paper_published_link_create".equals(tag)) { + value = EventTypeArg.PAPER_PUBLISHED_LINK_CREATE; + } + else if ("paper_published_link_disabled".equals(tag)) { + value = EventTypeArg.PAPER_PUBLISHED_LINK_DISABLED; + } + else if ("paper_published_link_view".equals(tag)) { + value = EventTypeArg.PAPER_PUBLISHED_LINK_VIEW; + } + else if ("password_change".equals(tag)) { + value = EventTypeArg.PASSWORD_CHANGE; + } + else if ("password_reset".equals(tag)) { + value = EventTypeArg.PASSWORD_RESET; + } + else if ("password_reset_all".equals(tag)) { + value = EventTypeArg.PASSWORD_RESET_ALL; + } + else if ("classification_create_report".equals(tag)) { + value = EventTypeArg.CLASSIFICATION_CREATE_REPORT; + } + else if ("classification_create_report_fail".equals(tag)) { + value = EventTypeArg.CLASSIFICATION_CREATE_REPORT_FAIL; + } + else if ("emm_create_exceptions_report".equals(tag)) { + value = EventTypeArg.EMM_CREATE_EXCEPTIONS_REPORT; + } + else if ("emm_create_usage_report".equals(tag)) { + value = EventTypeArg.EMM_CREATE_USAGE_REPORT; + } + else if ("export_members_report".equals(tag)) { + value = EventTypeArg.EXPORT_MEMBERS_REPORT; + } + else if ("export_members_report_fail".equals(tag)) { + value = EventTypeArg.EXPORT_MEMBERS_REPORT_FAIL; + } + else if ("external_sharing_create_report".equals(tag)) { + value = EventTypeArg.EXTERNAL_SHARING_CREATE_REPORT; + } + else if ("external_sharing_report_failed".equals(tag)) { + value = EventTypeArg.EXTERNAL_SHARING_REPORT_FAILED; + } + else if ("no_expiration_link_gen_create_report".equals(tag)) { + value = EventTypeArg.NO_EXPIRATION_LINK_GEN_CREATE_REPORT; + } + else if ("no_expiration_link_gen_report_failed".equals(tag)) { + value = EventTypeArg.NO_EXPIRATION_LINK_GEN_REPORT_FAILED; + } + else if ("no_password_link_gen_create_report".equals(tag)) { + value = EventTypeArg.NO_PASSWORD_LINK_GEN_CREATE_REPORT; + } + else if ("no_password_link_gen_report_failed".equals(tag)) { + value = EventTypeArg.NO_PASSWORD_LINK_GEN_REPORT_FAILED; + } + else if ("no_password_link_view_create_report".equals(tag)) { + value = EventTypeArg.NO_PASSWORD_LINK_VIEW_CREATE_REPORT; + } + else if ("no_password_link_view_report_failed".equals(tag)) { + value = EventTypeArg.NO_PASSWORD_LINK_VIEW_REPORT_FAILED; + } + else if ("outdated_link_view_create_report".equals(tag)) { + value = EventTypeArg.OUTDATED_LINK_VIEW_CREATE_REPORT; + } + else if ("outdated_link_view_report_failed".equals(tag)) { + value = EventTypeArg.OUTDATED_LINK_VIEW_REPORT_FAILED; + } + else if ("paper_admin_export_start".equals(tag)) { + value = EventTypeArg.PAPER_ADMIN_EXPORT_START; + } + else if ("ransomware_alert_create_report".equals(tag)) { + value = EventTypeArg.RANSOMWARE_ALERT_CREATE_REPORT; + } + else if ("ransomware_alert_create_report_failed".equals(tag)) { + value = EventTypeArg.RANSOMWARE_ALERT_CREATE_REPORT_FAILED; + } + else if ("smart_sync_create_admin_privilege_report".equals(tag)) { + value = EventTypeArg.SMART_SYNC_CREATE_ADMIN_PRIVILEGE_REPORT; + } + else if ("team_activity_create_report".equals(tag)) { + value = EventTypeArg.TEAM_ACTIVITY_CREATE_REPORT; + } + else if ("team_activity_create_report_fail".equals(tag)) { + value = EventTypeArg.TEAM_ACTIVITY_CREATE_REPORT_FAIL; + } + else if ("collection_share".equals(tag)) { + value = EventTypeArg.COLLECTION_SHARE; + } + else if ("file_transfers_file_add".equals(tag)) { + value = EventTypeArg.FILE_TRANSFERS_FILE_ADD; + } + else if ("file_transfers_transfer_delete".equals(tag)) { + value = EventTypeArg.FILE_TRANSFERS_TRANSFER_DELETE; + } + else if ("file_transfers_transfer_download".equals(tag)) { + value = EventTypeArg.FILE_TRANSFERS_TRANSFER_DOWNLOAD; + } + else if ("file_transfers_transfer_send".equals(tag)) { + value = EventTypeArg.FILE_TRANSFERS_TRANSFER_SEND; + } + else if ("file_transfers_transfer_view".equals(tag)) { + value = EventTypeArg.FILE_TRANSFERS_TRANSFER_VIEW; + } + else if ("note_acl_invite_only".equals(tag)) { + value = EventTypeArg.NOTE_ACL_INVITE_ONLY; + } + else if ("note_acl_link".equals(tag)) { + value = EventTypeArg.NOTE_ACL_LINK; + } + else if ("note_acl_team_link".equals(tag)) { + value = EventTypeArg.NOTE_ACL_TEAM_LINK; + } + else if ("note_shared".equals(tag)) { + value = EventTypeArg.NOTE_SHARED; + } + else if ("note_share_receive".equals(tag)) { + value = EventTypeArg.NOTE_SHARE_RECEIVE; + } + else if ("open_note_shared".equals(tag)) { + value = EventTypeArg.OPEN_NOTE_SHARED; + } + else if ("replay_file_shared_link_created".equals(tag)) { + value = EventTypeArg.REPLAY_FILE_SHARED_LINK_CREATED; + } + else if ("replay_file_shared_link_modified".equals(tag)) { + value = EventTypeArg.REPLAY_FILE_SHARED_LINK_MODIFIED; + } + else if ("replay_project_team_add".equals(tag)) { + value = EventTypeArg.REPLAY_PROJECT_TEAM_ADD; + } + else if ("replay_project_team_delete".equals(tag)) { + value = EventTypeArg.REPLAY_PROJECT_TEAM_DELETE; + } + else if ("sf_add_group".equals(tag)) { + value = EventTypeArg.SF_ADD_GROUP; + } + else if ("sf_allow_non_members_to_view_shared_links".equals(tag)) { + value = EventTypeArg.SF_ALLOW_NON_MEMBERS_TO_VIEW_SHARED_LINKS; + } + else if ("sf_external_invite_warn".equals(tag)) { + value = EventTypeArg.SF_EXTERNAL_INVITE_WARN; + } + else if ("sf_fb_invite".equals(tag)) { + value = EventTypeArg.SF_FB_INVITE; + } + else if ("sf_fb_invite_change_role".equals(tag)) { + value = EventTypeArg.SF_FB_INVITE_CHANGE_ROLE; + } + else if ("sf_fb_uninvite".equals(tag)) { + value = EventTypeArg.SF_FB_UNINVITE; + } + else if ("sf_invite_group".equals(tag)) { + value = EventTypeArg.SF_INVITE_GROUP; + } + else if ("sf_team_grant_access".equals(tag)) { + value = EventTypeArg.SF_TEAM_GRANT_ACCESS; + } + else if ("sf_team_invite".equals(tag)) { + value = EventTypeArg.SF_TEAM_INVITE; + } + else if ("sf_team_invite_change_role".equals(tag)) { + value = EventTypeArg.SF_TEAM_INVITE_CHANGE_ROLE; + } + else if ("sf_team_join".equals(tag)) { + value = EventTypeArg.SF_TEAM_JOIN; + } + else if ("sf_team_join_from_oob_link".equals(tag)) { + value = EventTypeArg.SF_TEAM_JOIN_FROM_OOB_LINK; + } + else if ("sf_team_uninvite".equals(tag)) { + value = EventTypeArg.SF_TEAM_UNINVITE; + } + else if ("shared_content_add_invitees".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_ADD_INVITEES; + } + else if ("shared_content_add_link_expiry".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_ADD_LINK_EXPIRY; + } + else if ("shared_content_add_link_password".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_ADD_LINK_PASSWORD; + } + else if ("shared_content_add_member".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_ADD_MEMBER; + } + else if ("shared_content_change_downloads_policy".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CHANGE_DOWNLOADS_POLICY; + } + else if ("shared_content_change_invitee_role".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CHANGE_INVITEE_ROLE; + } + else if ("shared_content_change_link_audience".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CHANGE_LINK_AUDIENCE; + } + else if ("shared_content_change_link_expiry".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CHANGE_LINK_EXPIRY; + } + else if ("shared_content_change_link_password".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CHANGE_LINK_PASSWORD; + } + else if ("shared_content_change_member_role".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CHANGE_MEMBER_ROLE; + } + else if ("shared_content_change_viewer_info_policy".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CHANGE_VIEWER_INFO_POLICY; + } + else if ("shared_content_claim_invitation".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_CLAIM_INVITATION; + } + else if ("shared_content_copy".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_COPY; + } + else if ("shared_content_download".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_DOWNLOAD; + } + else if ("shared_content_relinquish_membership".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_RELINQUISH_MEMBERSHIP; + } + else if ("shared_content_remove_invitees".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_REMOVE_INVITEES; + } + else if ("shared_content_remove_link_expiry".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_REMOVE_LINK_EXPIRY; + } + else if ("shared_content_remove_link_password".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_REMOVE_LINK_PASSWORD; + } + else if ("shared_content_remove_member".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_REMOVE_MEMBER; + } + else if ("shared_content_request_access".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_REQUEST_ACCESS; + } + else if ("shared_content_restore_invitees".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_RESTORE_INVITEES; + } + else if ("shared_content_restore_member".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_RESTORE_MEMBER; + } + else if ("shared_content_unshare".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_UNSHARE; + } + else if ("shared_content_view".equals(tag)) { + value = EventTypeArg.SHARED_CONTENT_VIEW; + } + else if ("shared_folder_change_link_policy".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_CHANGE_LINK_POLICY; + } + else if ("shared_folder_change_members_inheritance_policy".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_CHANGE_MEMBERS_INHERITANCE_POLICY; + } + else if ("shared_folder_change_members_management_policy".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_CHANGE_MEMBERS_MANAGEMENT_POLICY; + } + else if ("shared_folder_change_members_policy".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_CHANGE_MEMBERS_POLICY; + } + else if ("shared_folder_create".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_CREATE; + } + else if ("shared_folder_decline_invitation".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_DECLINE_INVITATION; + } + else if ("shared_folder_mount".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_MOUNT; + } + else if ("shared_folder_nest".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_NEST; + } + else if ("shared_folder_transfer_ownership".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_TRANSFER_OWNERSHIP; + } + else if ("shared_folder_unmount".equals(tag)) { + value = EventTypeArg.SHARED_FOLDER_UNMOUNT; + } + else if ("shared_link_add_expiry".equals(tag)) { + value = EventTypeArg.SHARED_LINK_ADD_EXPIRY; + } + else if ("shared_link_change_expiry".equals(tag)) { + value = EventTypeArg.SHARED_LINK_CHANGE_EXPIRY; + } + else if ("shared_link_change_visibility".equals(tag)) { + value = EventTypeArg.SHARED_LINK_CHANGE_VISIBILITY; + } + else if ("shared_link_copy".equals(tag)) { + value = EventTypeArg.SHARED_LINK_COPY; + } + else if ("shared_link_create".equals(tag)) { + value = EventTypeArg.SHARED_LINK_CREATE; + } + else if ("shared_link_disable".equals(tag)) { + value = EventTypeArg.SHARED_LINK_DISABLE; + } + else if ("shared_link_download".equals(tag)) { + value = EventTypeArg.SHARED_LINK_DOWNLOAD; + } + else if ("shared_link_remove_expiry".equals(tag)) { + value = EventTypeArg.SHARED_LINK_REMOVE_EXPIRY; + } + else if ("shared_link_settings_add_expiration".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_ADD_EXPIRATION; + } + else if ("shared_link_settings_add_password".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_ADD_PASSWORD; + } + else if ("shared_link_settings_allow_download_disabled".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_DISABLED; + } + else if ("shared_link_settings_allow_download_enabled".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_ALLOW_DOWNLOAD_ENABLED; + } + else if ("shared_link_settings_change_audience".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_CHANGE_AUDIENCE; + } + else if ("shared_link_settings_change_expiration".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_CHANGE_EXPIRATION; + } + else if ("shared_link_settings_change_password".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_CHANGE_PASSWORD; + } + else if ("shared_link_settings_remove_expiration".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_REMOVE_EXPIRATION; + } + else if ("shared_link_settings_remove_password".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SETTINGS_REMOVE_PASSWORD; + } + else if ("shared_link_share".equals(tag)) { + value = EventTypeArg.SHARED_LINK_SHARE; + } + else if ("shared_link_view".equals(tag)) { + value = EventTypeArg.SHARED_LINK_VIEW; + } + else if ("shared_note_opened".equals(tag)) { + value = EventTypeArg.SHARED_NOTE_OPENED; + } + else if ("shmodel_disable_downloads".equals(tag)) { + value = EventTypeArg.SHMODEL_DISABLE_DOWNLOADS; + } + else if ("shmodel_enable_downloads".equals(tag)) { + value = EventTypeArg.SHMODEL_ENABLE_DOWNLOADS; + } + else if ("shmodel_group_share".equals(tag)) { + value = EventTypeArg.SHMODEL_GROUP_SHARE; + } + else if ("showcase_access_granted".equals(tag)) { + value = EventTypeArg.SHOWCASE_ACCESS_GRANTED; + } + else if ("showcase_add_member".equals(tag)) { + value = EventTypeArg.SHOWCASE_ADD_MEMBER; + } + else if ("showcase_archived".equals(tag)) { + value = EventTypeArg.SHOWCASE_ARCHIVED; + } + else if ("showcase_created".equals(tag)) { + value = EventTypeArg.SHOWCASE_CREATED; + } + else if ("showcase_delete_comment".equals(tag)) { + value = EventTypeArg.SHOWCASE_DELETE_COMMENT; + } + else if ("showcase_edited".equals(tag)) { + value = EventTypeArg.SHOWCASE_EDITED; + } + else if ("showcase_edit_comment".equals(tag)) { + value = EventTypeArg.SHOWCASE_EDIT_COMMENT; + } + else if ("showcase_file_added".equals(tag)) { + value = EventTypeArg.SHOWCASE_FILE_ADDED; + } + else if ("showcase_file_download".equals(tag)) { + value = EventTypeArg.SHOWCASE_FILE_DOWNLOAD; + } + else if ("showcase_file_removed".equals(tag)) { + value = EventTypeArg.SHOWCASE_FILE_REMOVED; + } + else if ("showcase_file_view".equals(tag)) { + value = EventTypeArg.SHOWCASE_FILE_VIEW; + } + else if ("showcase_permanently_deleted".equals(tag)) { + value = EventTypeArg.SHOWCASE_PERMANENTLY_DELETED; + } + else if ("showcase_post_comment".equals(tag)) { + value = EventTypeArg.SHOWCASE_POST_COMMENT; + } + else if ("showcase_remove_member".equals(tag)) { + value = EventTypeArg.SHOWCASE_REMOVE_MEMBER; + } + else if ("showcase_renamed".equals(tag)) { + value = EventTypeArg.SHOWCASE_RENAMED; + } + else if ("showcase_request_access".equals(tag)) { + value = EventTypeArg.SHOWCASE_REQUEST_ACCESS; + } + else if ("showcase_resolve_comment".equals(tag)) { + value = EventTypeArg.SHOWCASE_RESOLVE_COMMENT; + } + else if ("showcase_restored".equals(tag)) { + value = EventTypeArg.SHOWCASE_RESTORED; + } + else if ("showcase_trashed".equals(tag)) { + value = EventTypeArg.SHOWCASE_TRASHED; + } + else if ("showcase_trashed_deprecated".equals(tag)) { + value = EventTypeArg.SHOWCASE_TRASHED_DEPRECATED; + } + else if ("showcase_unresolve_comment".equals(tag)) { + value = EventTypeArg.SHOWCASE_UNRESOLVE_COMMENT; + } + else if ("showcase_untrashed".equals(tag)) { + value = EventTypeArg.SHOWCASE_UNTRASHED; + } + else if ("showcase_untrashed_deprecated".equals(tag)) { + value = EventTypeArg.SHOWCASE_UNTRASHED_DEPRECATED; + } + else if ("showcase_view".equals(tag)) { + value = EventTypeArg.SHOWCASE_VIEW; + } + else if ("sso_add_cert".equals(tag)) { + value = EventTypeArg.SSO_ADD_CERT; + } + else if ("sso_add_login_url".equals(tag)) { + value = EventTypeArg.SSO_ADD_LOGIN_URL; + } + else if ("sso_add_logout_url".equals(tag)) { + value = EventTypeArg.SSO_ADD_LOGOUT_URL; + } + else if ("sso_change_cert".equals(tag)) { + value = EventTypeArg.SSO_CHANGE_CERT; + } + else if ("sso_change_login_url".equals(tag)) { + value = EventTypeArg.SSO_CHANGE_LOGIN_URL; + } + else if ("sso_change_logout_url".equals(tag)) { + value = EventTypeArg.SSO_CHANGE_LOGOUT_URL; + } + else if ("sso_change_saml_identity_mode".equals(tag)) { + value = EventTypeArg.SSO_CHANGE_SAML_IDENTITY_MODE; + } + else if ("sso_remove_cert".equals(tag)) { + value = EventTypeArg.SSO_REMOVE_CERT; + } + else if ("sso_remove_login_url".equals(tag)) { + value = EventTypeArg.SSO_REMOVE_LOGIN_URL; + } + else if ("sso_remove_logout_url".equals(tag)) { + value = EventTypeArg.SSO_REMOVE_LOGOUT_URL; + } + else if ("team_folder_change_status".equals(tag)) { + value = EventTypeArg.TEAM_FOLDER_CHANGE_STATUS; + } + else if ("team_folder_create".equals(tag)) { + value = EventTypeArg.TEAM_FOLDER_CREATE; + } + else if ("team_folder_downgrade".equals(tag)) { + value = EventTypeArg.TEAM_FOLDER_DOWNGRADE; + } + else if ("team_folder_permanently_delete".equals(tag)) { + value = EventTypeArg.TEAM_FOLDER_PERMANENTLY_DELETE; + } + else if ("team_folder_rename".equals(tag)) { + value = EventTypeArg.TEAM_FOLDER_RENAME; + } + else if ("team_selective_sync_settings_changed".equals(tag)) { + value = EventTypeArg.TEAM_SELECTIVE_SYNC_SETTINGS_CHANGED; + } + else if ("account_capture_change_policy".equals(tag)) { + value = EventTypeArg.ACCOUNT_CAPTURE_CHANGE_POLICY; + } + else if ("admin_email_reminders_changed".equals(tag)) { + value = EventTypeArg.ADMIN_EMAIL_REMINDERS_CHANGED; + } + else if ("allow_download_disabled".equals(tag)) { + value = EventTypeArg.ALLOW_DOWNLOAD_DISABLED; + } + else if ("allow_download_enabled".equals(tag)) { + value = EventTypeArg.ALLOW_DOWNLOAD_ENABLED; + } + else if ("app_permissions_changed".equals(tag)) { + value = EventTypeArg.APP_PERMISSIONS_CHANGED; + } + else if ("camera_uploads_policy_changed".equals(tag)) { + value = EventTypeArg.CAMERA_UPLOADS_POLICY_CHANGED; + } + else if ("capture_transcript_policy_changed".equals(tag)) { + value = EventTypeArg.CAPTURE_TRANSCRIPT_POLICY_CHANGED; + } + else if ("classification_change_policy".equals(tag)) { + value = EventTypeArg.CLASSIFICATION_CHANGE_POLICY; + } + else if ("computer_backup_policy_changed".equals(tag)) { + value = EventTypeArg.COMPUTER_BACKUP_POLICY_CHANGED; + } + else if ("content_administration_policy_changed".equals(tag)) { + value = EventTypeArg.CONTENT_ADMINISTRATION_POLICY_CHANGED; + } + else if ("data_placement_restriction_change_policy".equals(tag)) { + value = EventTypeArg.DATA_PLACEMENT_RESTRICTION_CHANGE_POLICY; + } + else if ("data_placement_restriction_satisfy_policy".equals(tag)) { + value = EventTypeArg.DATA_PLACEMENT_RESTRICTION_SATISFY_POLICY; + } + else if ("device_approvals_add_exception".equals(tag)) { + value = EventTypeArg.DEVICE_APPROVALS_ADD_EXCEPTION; + } + else if ("device_approvals_change_desktop_policy".equals(tag)) { + value = EventTypeArg.DEVICE_APPROVALS_CHANGE_DESKTOP_POLICY; + } + else if ("device_approvals_change_mobile_policy".equals(tag)) { + value = EventTypeArg.DEVICE_APPROVALS_CHANGE_MOBILE_POLICY; + } + else if ("device_approvals_change_overage_action".equals(tag)) { + value = EventTypeArg.DEVICE_APPROVALS_CHANGE_OVERAGE_ACTION; + } + else if ("device_approvals_change_unlink_action".equals(tag)) { + value = EventTypeArg.DEVICE_APPROVALS_CHANGE_UNLINK_ACTION; + } + else if ("device_approvals_remove_exception".equals(tag)) { + value = EventTypeArg.DEVICE_APPROVALS_REMOVE_EXCEPTION; + } + else if ("directory_restrictions_add_members".equals(tag)) { + value = EventTypeArg.DIRECTORY_RESTRICTIONS_ADD_MEMBERS; + } + else if ("directory_restrictions_remove_members".equals(tag)) { + value = EventTypeArg.DIRECTORY_RESTRICTIONS_REMOVE_MEMBERS; + } + else if ("dropbox_passwords_policy_changed".equals(tag)) { + value = EventTypeArg.DROPBOX_PASSWORDS_POLICY_CHANGED; + } + else if ("email_ingest_policy_changed".equals(tag)) { + value = EventTypeArg.EMAIL_INGEST_POLICY_CHANGED; + } + else if ("emm_add_exception".equals(tag)) { + value = EventTypeArg.EMM_ADD_EXCEPTION; + } + else if ("emm_change_policy".equals(tag)) { + value = EventTypeArg.EMM_CHANGE_POLICY; + } + else if ("emm_remove_exception".equals(tag)) { + value = EventTypeArg.EMM_REMOVE_EXCEPTION; + } + else if ("extended_version_history_change_policy".equals(tag)) { + value = EventTypeArg.EXTENDED_VERSION_HISTORY_CHANGE_POLICY; + } + else if ("external_drive_backup_policy_changed".equals(tag)) { + value = EventTypeArg.EXTERNAL_DRIVE_BACKUP_POLICY_CHANGED; + } + else if ("file_comments_change_policy".equals(tag)) { + value = EventTypeArg.FILE_COMMENTS_CHANGE_POLICY; + } + else if ("file_locking_policy_changed".equals(tag)) { + value = EventTypeArg.FILE_LOCKING_POLICY_CHANGED; + } + else if ("file_provider_migration_policy_changed".equals(tag)) { + value = EventTypeArg.FILE_PROVIDER_MIGRATION_POLICY_CHANGED; + } + else if ("file_requests_change_policy".equals(tag)) { + value = EventTypeArg.FILE_REQUESTS_CHANGE_POLICY; + } + else if ("file_requests_emails_enabled".equals(tag)) { + value = EventTypeArg.FILE_REQUESTS_EMAILS_ENABLED; + } + else if ("file_requests_emails_restricted_to_team_only".equals(tag)) { + value = EventTypeArg.FILE_REQUESTS_EMAILS_RESTRICTED_TO_TEAM_ONLY; + } + else if ("file_transfers_policy_changed".equals(tag)) { + value = EventTypeArg.FILE_TRANSFERS_POLICY_CHANGED; + } + else if ("folder_link_restriction_policy_changed".equals(tag)) { + value = EventTypeArg.FOLDER_LINK_RESTRICTION_POLICY_CHANGED; + } + else if ("google_sso_change_policy".equals(tag)) { + value = EventTypeArg.GOOGLE_SSO_CHANGE_POLICY; + } + else if ("group_user_management_change_policy".equals(tag)) { + value = EventTypeArg.GROUP_USER_MANAGEMENT_CHANGE_POLICY; + } + else if ("integration_policy_changed".equals(tag)) { + value = EventTypeArg.INTEGRATION_POLICY_CHANGED; + } + else if ("invite_acceptance_email_policy_changed".equals(tag)) { + value = EventTypeArg.INVITE_ACCEPTANCE_EMAIL_POLICY_CHANGED; + } + else if ("member_requests_change_policy".equals(tag)) { + value = EventTypeArg.MEMBER_REQUESTS_CHANGE_POLICY; + } + else if ("member_send_invite_policy_changed".equals(tag)) { + value = EventTypeArg.MEMBER_SEND_INVITE_POLICY_CHANGED; + } + else if ("member_space_limits_add_exception".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_ADD_EXCEPTION; + } + else if ("member_space_limits_change_caps_type_policy".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_CHANGE_CAPS_TYPE_POLICY; + } + else if ("member_space_limits_change_policy".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_CHANGE_POLICY; + } + else if ("member_space_limits_remove_exception".equals(tag)) { + value = EventTypeArg.MEMBER_SPACE_LIMITS_REMOVE_EXCEPTION; + } + else if ("member_suggestions_change_policy".equals(tag)) { + value = EventTypeArg.MEMBER_SUGGESTIONS_CHANGE_POLICY; + } + else if ("microsoft_office_addin_change_policy".equals(tag)) { + value = EventTypeArg.MICROSOFT_OFFICE_ADDIN_CHANGE_POLICY; + } + else if ("network_control_change_policy".equals(tag)) { + value = EventTypeArg.NETWORK_CONTROL_CHANGE_POLICY; + } + else if ("paper_change_deployment_policy".equals(tag)) { + value = EventTypeArg.PAPER_CHANGE_DEPLOYMENT_POLICY; + } + else if ("paper_change_member_link_policy".equals(tag)) { + value = EventTypeArg.PAPER_CHANGE_MEMBER_LINK_POLICY; + } + else if ("paper_change_member_policy".equals(tag)) { + value = EventTypeArg.PAPER_CHANGE_MEMBER_POLICY; + } + else if ("paper_change_policy".equals(tag)) { + value = EventTypeArg.PAPER_CHANGE_POLICY; + } + else if ("paper_default_folder_policy_changed".equals(tag)) { + value = EventTypeArg.PAPER_DEFAULT_FOLDER_POLICY_CHANGED; + } + else if ("paper_desktop_policy_changed".equals(tag)) { + value = EventTypeArg.PAPER_DESKTOP_POLICY_CHANGED; + } + else if ("paper_enabled_users_group_addition".equals(tag)) { + value = EventTypeArg.PAPER_ENABLED_USERS_GROUP_ADDITION; + } + else if ("paper_enabled_users_group_removal".equals(tag)) { + value = EventTypeArg.PAPER_ENABLED_USERS_GROUP_REMOVAL; + } + else if ("password_strength_requirements_change_policy".equals(tag)) { + value = EventTypeArg.PASSWORD_STRENGTH_REQUIREMENTS_CHANGE_POLICY; + } + else if ("permanent_delete_change_policy".equals(tag)) { + value = EventTypeArg.PERMANENT_DELETE_CHANGE_POLICY; + } + else if ("reseller_support_change_policy".equals(tag)) { + value = EventTypeArg.RESELLER_SUPPORT_CHANGE_POLICY; + } + else if ("rewind_policy_changed".equals(tag)) { + value = EventTypeArg.REWIND_POLICY_CHANGED; + } + else if ("send_for_signature_policy_changed".equals(tag)) { + value = EventTypeArg.SEND_FOR_SIGNATURE_POLICY_CHANGED; + } + else if ("sharing_change_folder_join_policy".equals(tag)) { + value = EventTypeArg.SHARING_CHANGE_FOLDER_JOIN_POLICY; + } + else if ("sharing_change_link_allow_change_expiration_policy".equals(tag)) { + value = EventTypeArg.SHARING_CHANGE_LINK_ALLOW_CHANGE_EXPIRATION_POLICY; + } + else if ("sharing_change_link_default_expiration_policy".equals(tag)) { + value = EventTypeArg.SHARING_CHANGE_LINK_DEFAULT_EXPIRATION_POLICY; + } + else if ("sharing_change_link_enforce_password_policy".equals(tag)) { + value = EventTypeArg.SHARING_CHANGE_LINK_ENFORCE_PASSWORD_POLICY; + } + else if ("sharing_change_link_policy".equals(tag)) { + value = EventTypeArg.SHARING_CHANGE_LINK_POLICY; + } + else if ("sharing_change_member_policy".equals(tag)) { + value = EventTypeArg.SHARING_CHANGE_MEMBER_POLICY; + } + else if ("showcase_change_download_policy".equals(tag)) { + value = EventTypeArg.SHOWCASE_CHANGE_DOWNLOAD_POLICY; + } + else if ("showcase_change_enabled_policy".equals(tag)) { + value = EventTypeArg.SHOWCASE_CHANGE_ENABLED_POLICY; + } + else if ("showcase_change_external_sharing_policy".equals(tag)) { + value = EventTypeArg.SHOWCASE_CHANGE_EXTERNAL_SHARING_POLICY; + } + else if ("smarter_smart_sync_policy_changed".equals(tag)) { + value = EventTypeArg.SMARTER_SMART_SYNC_POLICY_CHANGED; + } + else if ("smart_sync_change_policy".equals(tag)) { + value = EventTypeArg.SMART_SYNC_CHANGE_POLICY; + } + else if ("smart_sync_not_opt_out".equals(tag)) { + value = EventTypeArg.SMART_SYNC_NOT_OPT_OUT; + } + else if ("smart_sync_opt_out".equals(tag)) { + value = EventTypeArg.SMART_SYNC_OPT_OUT; + } + else if ("sso_change_policy".equals(tag)) { + value = EventTypeArg.SSO_CHANGE_POLICY; + } + else if ("team_branding_policy_changed".equals(tag)) { + value = EventTypeArg.TEAM_BRANDING_POLICY_CHANGED; + } + else if ("team_extensions_policy_changed".equals(tag)) { + value = EventTypeArg.TEAM_EXTENSIONS_POLICY_CHANGED; + } + else if ("team_selective_sync_policy_changed".equals(tag)) { + value = EventTypeArg.TEAM_SELECTIVE_SYNC_POLICY_CHANGED; + } + else if ("team_sharing_whitelist_subjects_changed".equals(tag)) { + value = EventTypeArg.TEAM_SHARING_WHITELIST_SUBJECTS_CHANGED; + } + else if ("tfa_add_exception".equals(tag)) { + value = EventTypeArg.TFA_ADD_EXCEPTION; + } + else if ("tfa_change_policy".equals(tag)) { + value = EventTypeArg.TFA_CHANGE_POLICY; + } + else if ("tfa_remove_exception".equals(tag)) { + value = EventTypeArg.TFA_REMOVE_EXCEPTION; + } + else if ("two_account_change_policy".equals(tag)) { + value = EventTypeArg.TWO_ACCOUNT_CHANGE_POLICY; + } + else if ("viewer_info_policy_changed".equals(tag)) { + value = EventTypeArg.VIEWER_INFO_POLICY_CHANGED; + } + else if ("watermarking_policy_changed".equals(tag)) { + value = EventTypeArg.WATERMARKING_POLICY_CHANGED; + } + else if ("web_sessions_change_active_session_limit".equals(tag)) { + value = EventTypeArg.WEB_SESSIONS_CHANGE_ACTIVE_SESSION_LIMIT; + } + else if ("web_sessions_change_fixed_length_policy".equals(tag)) { + value = EventTypeArg.WEB_SESSIONS_CHANGE_FIXED_LENGTH_POLICY; + } + else if ("web_sessions_change_idle_length_policy".equals(tag)) { + value = EventTypeArg.WEB_SESSIONS_CHANGE_IDLE_LENGTH_POLICY; + } + else if ("data_residency_migration_request_successful".equals(tag)) { + value = EventTypeArg.DATA_RESIDENCY_MIGRATION_REQUEST_SUCCESSFUL; + } + else if ("data_residency_migration_request_unsuccessful".equals(tag)) { + value = EventTypeArg.DATA_RESIDENCY_MIGRATION_REQUEST_UNSUCCESSFUL; + } + else if ("team_merge_from".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_FROM; + } + else if ("team_merge_to".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_TO; + } + else if ("team_profile_add_background".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_ADD_BACKGROUND; + } + else if ("team_profile_add_logo".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_ADD_LOGO; + } + else if ("team_profile_change_background".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_CHANGE_BACKGROUND; + } + else if ("team_profile_change_default_language".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_CHANGE_DEFAULT_LANGUAGE; + } + else if ("team_profile_change_logo".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_CHANGE_LOGO; + } + else if ("team_profile_change_name".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_CHANGE_NAME; + } + else if ("team_profile_remove_background".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_REMOVE_BACKGROUND; + } + else if ("team_profile_remove_logo".equals(tag)) { + value = EventTypeArg.TEAM_PROFILE_REMOVE_LOGO; + } + else if ("tfa_add_backup_phone".equals(tag)) { + value = EventTypeArg.TFA_ADD_BACKUP_PHONE; + } + else if ("tfa_add_security_key".equals(tag)) { + value = EventTypeArg.TFA_ADD_SECURITY_KEY; + } + else if ("tfa_change_backup_phone".equals(tag)) { + value = EventTypeArg.TFA_CHANGE_BACKUP_PHONE; + } + else if ("tfa_change_status".equals(tag)) { + value = EventTypeArg.TFA_CHANGE_STATUS; + } + else if ("tfa_remove_backup_phone".equals(tag)) { + value = EventTypeArg.TFA_REMOVE_BACKUP_PHONE; + } + else if ("tfa_remove_security_key".equals(tag)) { + value = EventTypeArg.TFA_REMOVE_SECURITY_KEY; + } + else if ("tfa_reset".equals(tag)) { + value = EventTypeArg.TFA_RESET; + } + else if ("changed_enterprise_admin_role".equals(tag)) { + value = EventTypeArg.CHANGED_ENTERPRISE_ADMIN_ROLE; + } + else if ("changed_enterprise_connected_team_status".equals(tag)) { + value = EventTypeArg.CHANGED_ENTERPRISE_CONNECTED_TEAM_STATUS; + } + else if ("ended_enterprise_admin_session".equals(tag)) { + value = EventTypeArg.ENDED_ENTERPRISE_ADMIN_SESSION; + } + else if ("ended_enterprise_admin_session_deprecated".equals(tag)) { + value = EventTypeArg.ENDED_ENTERPRISE_ADMIN_SESSION_DEPRECATED; + } + else if ("enterprise_settings_locking".equals(tag)) { + value = EventTypeArg.ENTERPRISE_SETTINGS_LOCKING; + } + else if ("guest_admin_change_status".equals(tag)) { + value = EventTypeArg.GUEST_ADMIN_CHANGE_STATUS; + } + else if ("started_enterprise_admin_session".equals(tag)) { + value = EventTypeArg.STARTED_ENTERPRISE_ADMIN_SESSION; + } + else if ("team_merge_request_accepted".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_ACCEPTED; + } + else if ("team_merge_request_accepted_shown_to_primary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_PRIMARY_TEAM; + } + else if ("team_merge_request_accepted_shown_to_secondary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_ACCEPTED_SHOWN_TO_SECONDARY_TEAM; + } + else if ("team_merge_request_auto_canceled".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_AUTO_CANCELED; + } + else if ("team_merge_request_canceled".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_CANCELED; + } + else if ("team_merge_request_canceled_shown_to_primary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_PRIMARY_TEAM; + } + else if ("team_merge_request_canceled_shown_to_secondary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_CANCELED_SHOWN_TO_SECONDARY_TEAM; + } + else if ("team_merge_request_expired".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_EXPIRED; + } + else if ("team_merge_request_expired_shown_to_primary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_PRIMARY_TEAM; + } + else if ("team_merge_request_expired_shown_to_secondary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_EXPIRED_SHOWN_TO_SECONDARY_TEAM; + } + else if ("team_merge_request_rejected_shown_to_primary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_PRIMARY_TEAM; + } + else if ("team_merge_request_rejected_shown_to_secondary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_REJECTED_SHOWN_TO_SECONDARY_TEAM; + } + else if ("team_merge_request_reminder".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_REMINDER; + } + else if ("team_merge_request_reminder_shown_to_primary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_PRIMARY_TEAM; + } + else if ("team_merge_request_reminder_shown_to_secondary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_REMINDER_SHOWN_TO_SECONDARY_TEAM; + } + else if ("team_merge_request_revoked".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_REVOKED; + } + else if ("team_merge_request_sent_shown_to_primary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_PRIMARY_TEAM; + } + else if ("team_merge_request_sent_shown_to_secondary_team".equals(tag)) { + value = EventTypeArg.TEAM_MERGE_REQUEST_SENT_SHOWN_TO_SECONDARY_TEAM; + } + else { + value = EventTypeArg.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportDetails.java new file mode 100644 index 000000000..84cb7237b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created member data report. + */ +public class ExportMembersReportDetails { + // struct team_log.ExportMembersReportDetails (team_log_generated.stone) + + + /** + * Created member data report. + */ + public ExportMembersReportDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportMembersReportDetails other = (ExportMembersReportDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportMembersReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportMembersReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportMembersReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ExportMembersReportDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportFailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportFailDetails.java new file mode 100644 index 000000000..3a16082da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportFailDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Failed to create members data report. + */ +public class ExportMembersReportFailDetails { + // struct team_log.ExportMembersReportFailDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Failed to create members data report. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportMembersReportFailDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportMembersReportFailDetails other = (ExportMembersReportFailDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportMembersReportFailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportMembersReportFailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportMembersReportFailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new ExportMembersReportFailDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportFailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportFailType.java new file mode 100644 index 000000000..afd032f80 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportFailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExportMembersReportFailType { + // struct team_log.ExportMembersReportFailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportMembersReportFailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportMembersReportFailType other = (ExportMembersReportFailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportMembersReportFailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportMembersReportFailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportMembersReportFailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExportMembersReportFailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportType.java new file mode 100644 index 000000000..3c65c56ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExportMembersReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExportMembersReportType { + // struct team_log.ExportMembersReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExportMembersReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExportMembersReportType other = (ExportMembersReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExportMembersReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExportMembersReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExportMembersReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExportMembersReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyDetails.java new file mode 100644 index 000000000..024f65d64 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Accepted/opted out of extended version history. + */ +public class ExtendedVersionHistoryChangePolicyDetails { + // struct team_log.ExtendedVersionHistoryChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ExtendedVersionHistoryPolicy newValue; + @Nullable + protected final ExtendedVersionHistoryPolicy previousValue; + + /** + * Accepted/opted out of extended version history. + * + * @param newValue New extended version history policy. Must not be {@code + * null}. + * @param previousValue Previous extended version history policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExtendedVersionHistoryChangePolicyDetails(@Nonnull ExtendedVersionHistoryPolicy newValue, @Nullable ExtendedVersionHistoryPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Accepted/opted out of extended version history. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New extended version history policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExtendedVersionHistoryChangePolicyDetails(@Nonnull ExtendedVersionHistoryPolicy newValue) { + this(newValue, null); + } + + /** + * New extended version history policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExtendedVersionHistoryPolicy getNewValue() { + return newValue; + } + + /** + * Previous extended version history policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ExtendedVersionHistoryPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExtendedVersionHistoryChangePolicyDetails other = (ExtendedVersionHistoryChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExtendedVersionHistoryChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ExtendedVersionHistoryPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(ExtendedVersionHistoryPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExtendedVersionHistoryChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExtendedVersionHistoryChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ExtendedVersionHistoryPolicy f_newValue = null; + ExtendedVersionHistoryPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ExtendedVersionHistoryPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(ExtendedVersionHistoryPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new ExtendedVersionHistoryChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyType.java new file mode 100644 index 000000000..a30a01eae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExtendedVersionHistoryChangePolicyType { + // struct team_log.ExtendedVersionHistoryChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExtendedVersionHistoryChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExtendedVersionHistoryChangePolicyType other = (ExtendedVersionHistoryChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExtendedVersionHistoryChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExtendedVersionHistoryChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExtendedVersionHistoryChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExtendedVersionHistoryChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy.java new file mode 100644 index 000000000..6201b180f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExtendedVersionHistoryPolicy.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ExtendedVersionHistoryPolicy { + // union team_log.ExtendedVersionHistoryPolicy (team_log_generated.stone) + EXPLICITLY_LIMITED, + EXPLICITLY_UNLIMITED, + IMPLICITLY_LIMITED, + IMPLICITLY_UNLIMITED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExtendedVersionHistoryPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EXPLICITLY_LIMITED: { + g.writeString("explicitly_limited"); + break; + } + case EXPLICITLY_UNLIMITED: { + g.writeString("explicitly_unlimited"); + break; + } + case IMPLICITLY_LIMITED: { + g.writeString("implicitly_limited"); + break; + } + case IMPLICITLY_UNLIMITED: { + g.writeString("implicitly_unlimited"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExtendedVersionHistoryPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ExtendedVersionHistoryPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("explicitly_limited".equals(tag)) { + value = ExtendedVersionHistoryPolicy.EXPLICITLY_LIMITED; + } + else if ("explicitly_unlimited".equals(tag)) { + value = ExtendedVersionHistoryPolicy.EXPLICITLY_UNLIMITED; + } + else if ("implicitly_limited".equals(tag)) { + value = ExtendedVersionHistoryPolicy.IMPLICITLY_LIMITED; + } + else if ("implicitly_unlimited".equals(tag)) { + value = ExtendedVersionHistoryPolicy.IMPLICITLY_UNLIMITED; + } + else { + value = ExtendedVersionHistoryPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus.java new file mode 100644 index 000000000..239000c19 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatus.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * External Drive Backup eligibility status + */ +public enum ExternalDriveBackupEligibilityStatus { + // union team_log.ExternalDriveBackupEligibilityStatus (team_log_generated.stone) + EXCEED_LICENSE_CAP, + SUCCESS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupEligibilityStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EXCEED_LICENSE_CAP: { + g.writeString("exceed_license_cap"); + break; + } + case SUCCESS: { + g.writeString("success"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExternalDriveBackupEligibilityStatus deserialize(JsonParser p) throws IOException, JsonParseException { + ExternalDriveBackupEligibilityStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("exceed_license_cap".equals(tag)) { + value = ExternalDriveBackupEligibilityStatus.EXCEED_LICENSE_CAP; + } + else if ("success".equals(tag)) { + value = ExternalDriveBackupEligibilityStatus.SUCCESS; + } + else { + value = ExternalDriveBackupEligibilityStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedDetails.java new file mode 100644 index 000000000..a3028452d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedDetails.java @@ -0,0 +1,206 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Checked external drive backup eligibility status. + */ +public class ExternalDriveBackupEligibilityStatusCheckedDetails { + // struct team_log.ExternalDriveBackupEligibilityStatusCheckedDetails (team_log_generated.stone) + + @Nonnull + protected final DesktopDeviceSessionLogInfo desktopDeviceSessionInfo; + @Nonnull + protected final ExternalDriveBackupEligibilityStatus status; + protected final long numberOfExternalDriveBackup; + + /** + * Checked external drive backup eligibility status. + * + * @param desktopDeviceSessionInfo Device's session logged information. + * Must not be {@code null}. + * @param status Current eligibility status of external drive backup. Must + * not be {@code null}. + * @param numberOfExternalDriveBackup Total number of valid external drive + * backup for all the team members. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalDriveBackupEligibilityStatusCheckedDetails(@Nonnull DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, @Nonnull ExternalDriveBackupEligibilityStatus status, long numberOfExternalDriveBackup) { + if (desktopDeviceSessionInfo == null) { + throw new IllegalArgumentException("Required value for 'desktopDeviceSessionInfo' is null"); + } + this.desktopDeviceSessionInfo = desktopDeviceSessionInfo; + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + this.numberOfExternalDriveBackup = numberOfExternalDriveBackup; + } + + /** + * Device's session logged information. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { + return desktopDeviceSessionInfo; + } + + /** + * Current eligibility status of external drive backup. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExternalDriveBackupEligibilityStatus getStatus() { + return status; + } + + /** + * Total number of valid external drive backup for all the team members. + * + * @return value for this field. + */ + public long getNumberOfExternalDriveBackup() { + return numberOfExternalDriveBackup; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.desktopDeviceSessionInfo, + this.status, + this.numberOfExternalDriveBackup + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalDriveBackupEligibilityStatusCheckedDetails other = (ExternalDriveBackupEligibilityStatusCheckedDetails) obj; + return ((this.desktopDeviceSessionInfo == other.desktopDeviceSessionInfo) || (this.desktopDeviceSessionInfo.equals(other.desktopDeviceSessionInfo))) + && ((this.status == other.status) || (this.status.equals(other.status))) + && (this.numberOfExternalDriveBackup == other.numberOfExternalDriveBackup) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupEligibilityStatusCheckedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("desktop_device_session_info"); + DesktopDeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.desktopDeviceSessionInfo, g); + g.writeFieldName("status"); + ExternalDriveBackupEligibilityStatus.Serializer.INSTANCE.serialize(value.status, g); + g.writeFieldName("number_of_external_drive_backup"); + StoneSerializers.uInt64().serialize(value.numberOfExternalDriveBackup, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalDriveBackupEligibilityStatusCheckedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalDriveBackupEligibilityStatusCheckedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DesktopDeviceSessionLogInfo f_desktopDeviceSessionInfo = null; + ExternalDriveBackupEligibilityStatus f_status = null; + Long f_numberOfExternalDriveBackup = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("desktop_device_session_info".equals(field)) { + f_desktopDeviceSessionInfo = DesktopDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("status".equals(field)) { + f_status = ExternalDriveBackupEligibilityStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("number_of_external_drive_backup".equals(field)) { + f_numberOfExternalDriveBackup = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_desktopDeviceSessionInfo == null) { + throw new JsonParseException(p, "Required field \"desktop_device_session_info\" missing."); + } + if (f_status == null) { + throw new JsonParseException(p, "Required field \"status\" missing."); + } + if (f_numberOfExternalDriveBackup == null) { + throw new JsonParseException(p, "Required field \"number_of_external_drive_backup\" missing."); + } + value = new ExternalDriveBackupEligibilityStatusCheckedDetails(f_desktopDeviceSessionInfo, f_status, f_numberOfExternalDriveBackup); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedType.java new file mode 100644 index 000000000..cec9c629e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupEligibilityStatusCheckedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExternalDriveBackupEligibilityStatusCheckedType { + // struct team_log.ExternalDriveBackupEligibilityStatusCheckedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalDriveBackupEligibilityStatusCheckedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalDriveBackupEligibilityStatusCheckedType other = (ExternalDriveBackupEligibilityStatusCheckedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupEligibilityStatusCheckedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalDriveBackupEligibilityStatusCheckedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalDriveBackupEligibilityStatusCheckedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExternalDriveBackupEligibilityStatusCheckedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy.java new file mode 100644 index 000000000..0c3996c0a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling team access to external drive backup feature + */ +public enum ExternalDriveBackupPolicy { + // union team_log.ExternalDriveBackupPolicy (team_log_generated.stone) + DEFAULT, + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExternalDriveBackupPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ExternalDriveBackupPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = ExternalDriveBackupPolicy.DEFAULT; + } + else if ("disabled".equals(tag)) { + value = ExternalDriveBackupPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ExternalDriveBackupPolicy.ENABLED; + } + else { + value = ExternalDriveBackupPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedDetails.java new file mode 100644 index 000000000..0717764bc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed external drive backup policy for team. + */ +public class ExternalDriveBackupPolicyChangedDetails { + // struct team_log.ExternalDriveBackupPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final ExternalDriveBackupPolicy newValue; + @Nonnull + protected final ExternalDriveBackupPolicy previousValue; + + /** + * Changed external drive backup policy for team. + * + * @param newValue New external drive backup policy. Must not be {@code + * null}. + * @param previousValue Previous external drive backup policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalDriveBackupPolicyChangedDetails(@Nonnull ExternalDriveBackupPolicy newValue, @Nonnull ExternalDriveBackupPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New external drive backup policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExternalDriveBackupPolicy getNewValue() { + return newValue; + } + + /** + * Previous external drive backup policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExternalDriveBackupPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalDriveBackupPolicyChangedDetails other = (ExternalDriveBackupPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ExternalDriveBackupPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + ExternalDriveBackupPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalDriveBackupPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalDriveBackupPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ExternalDriveBackupPolicy f_newValue = null; + ExternalDriveBackupPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ExternalDriveBackupPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ExternalDriveBackupPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new ExternalDriveBackupPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedType.java new file mode 100644 index 000000000..a2b2dac2c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExternalDriveBackupPolicyChangedType { + // struct team_log.ExternalDriveBackupPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalDriveBackupPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalDriveBackupPolicyChangedType other = (ExternalDriveBackupPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalDriveBackupPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalDriveBackupPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExternalDriveBackupPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatus.java new file mode 100644 index 000000000..16128a5ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatus.java @@ -0,0 +1,124 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * External Drive Backup status + */ +public enum ExternalDriveBackupStatus { + // union team_log.ExternalDriveBackupStatus (team_log_generated.stone) + BROKEN, + CREATED, + CREATED_OR_BROKEN, + DELETED, + EMPTY, + UNKNOWN, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case BROKEN: { + g.writeString("broken"); + break; + } + case CREATED: { + g.writeString("created"); + break; + } + case CREATED_OR_BROKEN: { + g.writeString("created_or_broken"); + break; + } + case DELETED: { + g.writeString("deleted"); + break; + } + case EMPTY: { + g.writeString("empty"); + break; + } + case UNKNOWN: { + g.writeString("unknown"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ExternalDriveBackupStatus deserialize(JsonParser p) throws IOException, JsonParseException { + ExternalDriveBackupStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("broken".equals(tag)) { + value = ExternalDriveBackupStatus.BROKEN; + } + else if ("created".equals(tag)) { + value = ExternalDriveBackupStatus.CREATED; + } + else if ("created_or_broken".equals(tag)) { + value = ExternalDriveBackupStatus.CREATED_OR_BROKEN; + } + else if ("deleted".equals(tag)) { + value = ExternalDriveBackupStatus.DELETED; + } + else if ("empty".equals(tag)) { + value = ExternalDriveBackupStatus.EMPTY; + } + else if ("unknown".equals(tag)) { + value = ExternalDriveBackupStatus.UNKNOWN; + } + else { + value = ExternalDriveBackupStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedDetails.java new file mode 100644 index 000000000..6b9f8be31 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedDetails.java @@ -0,0 +1,211 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Modified external drive backup. + */ +public class ExternalDriveBackupStatusChangedDetails { + // struct team_log.ExternalDriveBackupStatusChangedDetails (team_log_generated.stone) + + @Nonnull + protected final DesktopDeviceSessionLogInfo desktopDeviceSessionInfo; + @Nonnull + protected final ExternalDriveBackupStatus previousValue; + @Nonnull + protected final ExternalDriveBackupStatus newValue; + + /** + * Modified external drive backup. + * + * @param desktopDeviceSessionInfo Device's session logged information. + * Must not be {@code null}. + * @param previousValue Previous status of this external drive backup. Must + * not be {@code null}. + * @param newValue Next status of this external drive backup. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalDriveBackupStatusChangedDetails(@Nonnull DesktopDeviceSessionLogInfo desktopDeviceSessionInfo, @Nonnull ExternalDriveBackupStatus previousValue, @Nonnull ExternalDriveBackupStatus newValue) { + if (desktopDeviceSessionInfo == null) { + throw new IllegalArgumentException("Required value for 'desktopDeviceSessionInfo' is null"); + } + this.desktopDeviceSessionInfo = desktopDeviceSessionInfo; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Device's session logged information. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DesktopDeviceSessionLogInfo getDesktopDeviceSessionInfo() { + return desktopDeviceSessionInfo; + } + + /** + * Previous status of this external drive backup. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExternalDriveBackupStatus getPreviousValue() { + return previousValue; + } + + /** + * Next status of this external drive backup. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ExternalDriveBackupStatus getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.desktopDeviceSessionInfo, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalDriveBackupStatusChangedDetails other = (ExternalDriveBackupStatusChangedDetails) obj; + return ((this.desktopDeviceSessionInfo == other.desktopDeviceSessionInfo) || (this.desktopDeviceSessionInfo.equals(other.desktopDeviceSessionInfo))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupStatusChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("desktop_device_session_info"); + DesktopDeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.desktopDeviceSessionInfo, g); + g.writeFieldName("previous_value"); + ExternalDriveBackupStatus.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + ExternalDriveBackupStatus.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalDriveBackupStatusChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalDriveBackupStatusChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DesktopDeviceSessionLogInfo f_desktopDeviceSessionInfo = null; + ExternalDriveBackupStatus f_previousValue = null; + ExternalDriveBackupStatus f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("desktop_device_session_info".equals(field)) { + f_desktopDeviceSessionInfo = DesktopDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ExternalDriveBackupStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = ExternalDriveBackupStatus.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_desktopDeviceSessionInfo == null) { + throw new JsonParseException(p, "Required field \"desktop_device_session_info\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new ExternalDriveBackupStatusChangedDetails(f_desktopDeviceSessionInfo, f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedType.java new file mode 100644 index 000000000..7b9ab0c3f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalDriveBackupStatusChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExternalDriveBackupStatusChangedType { + // struct team_log.ExternalDriveBackupStatusChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalDriveBackupStatusChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalDriveBackupStatusChangedType other = (ExternalDriveBackupStatusChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalDriveBackupStatusChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalDriveBackupStatusChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalDriveBackupStatusChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExternalDriveBackupStatusChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingCreateReportDetails.java new file mode 100644 index 000000000..f93c7fede --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingCreateReportDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created External sharing report. + */ +public class ExternalSharingCreateReportDetails { + // struct team_log.ExternalSharingCreateReportDetails (team_log_generated.stone) + + + /** + * Created External sharing report. + */ + public ExternalSharingCreateReportDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalSharingCreateReportDetails other = (ExternalSharingCreateReportDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalSharingCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalSharingCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalSharingCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ExternalSharingCreateReportDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingCreateReportType.java new file mode 100644 index 000000000..e120183b0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExternalSharingCreateReportType { + // struct team_log.ExternalSharingCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalSharingCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalSharingCreateReportType other = (ExternalSharingCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalSharingCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalSharingCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalSharingCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExternalSharingCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingReportFailedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingReportFailedDetails.java new file mode 100644 index 000000000..b861fac29 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingReportFailedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't create External sharing report. + */ +public class ExternalSharingReportFailedDetails { + // struct team_log.ExternalSharingReportFailedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't create External sharing report. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalSharingReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalSharingReportFailedDetails other = (ExternalSharingReportFailedDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalSharingReportFailedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalSharingReportFailedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalSharingReportFailedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new ExternalSharingReportFailedDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingReportFailedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingReportFailedType.java new file mode 100644 index 000000000..e85bd93fd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalSharingReportFailedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ExternalSharingReportFailedType { + // struct team_log.ExternalSharingReportFailedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalSharingReportFailedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalSharingReportFailedType other = (ExternalSharingReportFailedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalSharingReportFailedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalSharingReportFailedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalSharingReportFailedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ExternalSharingReportFailedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalUserLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalUserLogInfo.java new file mode 100644 index 000000000..899e3d3ca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ExternalUserLogInfo.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * A user without a Dropbox account. + */ +public class ExternalUserLogInfo { + // struct team_log.ExternalUserLogInfo (team_log_generated.stone) + + @Nonnull + protected final String userIdentifier; + @Nonnull + protected final IdentifierType identifierType; + + /** + * A user without a Dropbox account. + * + * @param userIdentifier An external user identifier. Must not be {@code + * null}. + * @param identifierType Identifier type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ExternalUserLogInfo(@Nonnull String userIdentifier, @Nonnull IdentifierType identifierType) { + if (userIdentifier == null) { + throw new IllegalArgumentException("Required value for 'userIdentifier' is null"); + } + this.userIdentifier = userIdentifier; + if (identifierType == null) { + throw new IllegalArgumentException("Required value for 'identifierType' is null"); + } + this.identifierType = identifierType; + } + + /** + * An external user identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUserIdentifier() { + return userIdentifier; + } + + /** + * Identifier type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public IdentifierType getIdentifierType() { + return identifierType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.userIdentifier, + this.identifierType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ExternalUserLogInfo other = (ExternalUserLogInfo) obj; + return ((this.userIdentifier == other.userIdentifier) || (this.userIdentifier.equals(other.userIdentifier))) + && ((this.identifierType == other.identifierType) || (this.identifierType.equals(other.identifierType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ExternalUserLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("user_identifier"); + StoneSerializers.string().serialize(value.userIdentifier, g); + g.writeFieldName("identifier_type"); + IdentifierType.Serializer.INSTANCE.serialize(value.identifierType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ExternalUserLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ExternalUserLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_userIdentifier = null; + IdentifierType f_identifierType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user_identifier".equals(field)) { + f_userIdentifier = StoneSerializers.string().deserialize(p); + } + else if ("identifier_type".equals(field)) { + f_identifierType = IdentifierType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_userIdentifier == null) { + throw new JsonParseException(p, "Required field \"user_identifier\" missing."); + } + if (f_identifierType == null) { + throw new JsonParseException(p, "Required field \"identifier_type\" missing."); + } + value = new ExternalUserLogInfo(f_userIdentifier, f_identifierType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FailureDetailsLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FailureDetailsLogInfo.java new file mode 100644 index 000000000..2c8ffa5fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FailureDetailsLogInfo.java @@ -0,0 +1,241 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Provides details about a failure + */ +public class FailureDetailsLogInfo { + // struct team_log.FailureDetailsLogInfo (team_log_generated.stone) + + @Nullable + protected final String userFriendlyMessage; + @Nullable + protected final String technicalErrorMessage; + + /** + * Provides details about a failure + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param userFriendlyMessage A user friendly explanation of the error. + * @param technicalErrorMessage A technical explanation of the error. This + * is relevant for some errors. + */ + public FailureDetailsLogInfo(@Nullable String userFriendlyMessage, @Nullable String technicalErrorMessage) { + this.userFriendlyMessage = userFriendlyMessage; + this.technicalErrorMessage = technicalErrorMessage; + } + + /** + * Provides details about a failure + * + *

The default values for unset fields will be used.

+ */ + public FailureDetailsLogInfo() { + this(null, null); + } + + /** + * A user friendly explanation of the error. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getUserFriendlyMessage() { + return userFriendlyMessage; + } + + /** + * A technical explanation of the error. This is relevant for some errors. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTechnicalErrorMessage() { + return technicalErrorMessage; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link FailureDetailsLogInfo}. + */ + public static class Builder { + + protected String userFriendlyMessage; + protected String technicalErrorMessage; + + protected Builder() { + this.userFriendlyMessage = null; + this.technicalErrorMessage = null; + } + + /** + * Set value for optional field. + * + * @param userFriendlyMessage A user friendly explanation of the error. + * + * @return this builder + */ + public Builder withUserFriendlyMessage(String userFriendlyMessage) { + this.userFriendlyMessage = userFriendlyMessage; + return this; + } + + /** + * Set value for optional field. + * + * @param technicalErrorMessage A technical explanation of the error. + * This is relevant for some errors. + * + * @return this builder + */ + public Builder withTechnicalErrorMessage(String technicalErrorMessage) { + this.technicalErrorMessage = technicalErrorMessage; + return this; + } + + /** + * Builds an instance of {@link FailureDetailsLogInfo} configured with + * this builder's values + * + * @return new instance of {@link FailureDetailsLogInfo} + */ + public FailureDetailsLogInfo build() { + return new FailureDetailsLogInfo(userFriendlyMessage, technicalErrorMessage); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.userFriendlyMessage, + this.technicalErrorMessage + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FailureDetailsLogInfo other = (FailureDetailsLogInfo) obj; + return ((this.userFriendlyMessage == other.userFriendlyMessage) || (this.userFriendlyMessage != null && this.userFriendlyMessage.equals(other.userFriendlyMessage))) + && ((this.technicalErrorMessage == other.technicalErrorMessage) || (this.technicalErrorMessage != null && this.technicalErrorMessage.equals(other.technicalErrorMessage))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FailureDetailsLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.userFriendlyMessage != null) { + g.writeFieldName("user_friendly_message"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.userFriendlyMessage, g); + } + if (value.technicalErrorMessage != null) { + g.writeFieldName("technical_error_message"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.technicalErrorMessage, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FailureDetailsLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FailureDetailsLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_userFriendlyMessage = null; + String f_technicalErrorMessage = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user_friendly_message".equals(field)) { + f_userFriendlyMessage = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("technical_error_message".equals(field)) { + f_technicalErrorMessage = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FailureDetailsLogInfo(f_userFriendlyMessage, f_technicalErrorMessage); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedAdminRole.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedAdminRole.java new file mode 100644 index 000000000..bc13a7856 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedAdminRole.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum FedAdminRole { + // union team_log.FedAdminRole (team_log_generated.stone) + ENTERPRISE_ADMIN, + NOT_ENTERPRISE_ADMIN, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FedAdminRole value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ENTERPRISE_ADMIN: { + g.writeString("enterprise_admin"); + break; + } + case NOT_ENTERPRISE_ADMIN: { + g.writeString("not_enterprise_admin"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FedAdminRole deserialize(JsonParser p) throws IOException, JsonParseException { + FedAdminRole value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("enterprise_admin".equals(tag)) { + value = FedAdminRole.ENTERPRISE_ADMIN; + } + else if ("not_enterprise_admin".equals(tag)) { + value = FedAdminRole.NOT_ENTERPRISE_ADMIN; + } + else { + value = FedAdminRole.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedExtraDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedExtraDetails.java new file mode 100644 index 000000000..42ff6dfa1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedExtraDetails.java @@ -0,0 +1,370 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * More details about the organization or team. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class FedExtraDetails { + // union team_log.FedExtraDetails (team_log_generated.stone) + + /** + * Discriminating tag type for {@link FedExtraDetails}. + */ + public enum Tag { + /** + * More details about the organization. + */ + ORGANIZATION, // OrganizationDetails + /** + * More details about the team. + */ + TEAM, // TeamDetails + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final FedExtraDetails OTHER = new FedExtraDetails().withTag(Tag.OTHER); + + private Tag _tag; + private OrganizationDetails organizationValue; + private TeamDetails teamValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FedExtraDetails() { + } + + + /** + * More details about the organization or team. + * + * @param _tag Discriminating tag for this instance. + */ + private FedExtraDetails withTag(Tag _tag) { + FedExtraDetails result = new FedExtraDetails(); + result._tag = _tag; + return result; + } + + /** + * More details about the organization or team. + * + * @param organizationValue More details about the organization. Must not + * be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FedExtraDetails withTagAndOrganization(Tag _tag, OrganizationDetails organizationValue) { + FedExtraDetails result = new FedExtraDetails(); + result._tag = _tag; + result.organizationValue = organizationValue; + return result; + } + + /** + * More details about the organization or team. + * + * @param teamValue More details about the team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FedExtraDetails withTagAndTeam(Tag _tag, TeamDetails teamValue) { + FedExtraDetails result = new FedExtraDetails(); + result._tag = _tag; + result.teamValue = teamValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FedExtraDetails}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ORGANIZATION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ORGANIZATION}, {@code false} otherwise. + */ + public boolean isOrganization() { + return this._tag == Tag.ORGANIZATION; + } + + /** + * Returns an instance of {@code FedExtraDetails} that has its tag set to + * {@link Tag#ORGANIZATION}. + * + *

More details about the organization.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FedExtraDetails} with its tag set to {@link + * Tag#ORGANIZATION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FedExtraDetails organization(OrganizationDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FedExtraDetails().withTagAndOrganization(Tag.ORGANIZATION, value); + } + + /** + * More details about the organization. + * + *

This instance must be tagged as {@link Tag#ORGANIZATION}.

+ * + * @return The {@link OrganizationDetails} value associated with this + * instance if {@link #isOrganization} is {@code true}. + * + * @throws IllegalStateException If {@link #isOrganization} is {@code + * false}. + */ + public OrganizationDetails getOrganizationValue() { + if (this._tag != Tag.ORGANIZATION) { + throw new IllegalStateException("Invalid tag: required Tag.ORGANIZATION, but was Tag." + this._tag.name()); + } + return organizationValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TEAM}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TEAM}, + * {@code false} otherwise. + */ + public boolean isTeam() { + return this._tag == Tag.TEAM; + } + + /** + * Returns an instance of {@code FedExtraDetails} that has its tag set to + * {@link Tag#TEAM}. + * + *

More details about the team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FedExtraDetails} with its tag set to {@link + * Tag#TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FedExtraDetails team(TeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FedExtraDetails().withTagAndTeam(Tag.TEAM, value); + } + + /** + * More details about the team. + * + *

This instance must be tagged as {@link Tag#TEAM}.

+ * + * @return The {@link TeamDetails} value associated with this instance if + * {@link #isTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeam} is {@code false}. + */ + public TeamDetails getTeamValue() { + if (this._tag != Tag.TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM, but was Tag." + this._tag.name()); + } + return teamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.organizationValue, + this.teamValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FedExtraDetails) { + FedExtraDetails other = (FedExtraDetails) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ORGANIZATION: + return (this.organizationValue == other.organizationValue) || (this.organizationValue.equals(other.organizationValue)); + case TEAM: + return (this.teamValue == other.teamValue) || (this.teamValue.equals(other.teamValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FedExtraDetails value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ORGANIZATION: { + g.writeStartObject(); + writeTag("organization", g); + OrganizationDetails.Serializer.INSTANCE.serialize(value.organizationValue, g, true); + g.writeEndObject(); + break; + } + case TEAM: { + g.writeStartObject(); + writeTag("team", g); + TeamDetails.Serializer.INSTANCE.serialize(value.teamValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FedExtraDetails deserialize(JsonParser p) throws IOException, JsonParseException { + FedExtraDetails value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("organization".equals(tag)) { + OrganizationDetails fieldValue = null; + fieldValue = OrganizationDetails.Serializer.INSTANCE.deserialize(p, true); + value = FedExtraDetails.organization(fieldValue); + } + else if ("team".equals(tag)) { + TeamDetails fieldValue = null; + fieldValue = TeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = FedExtraDetails.team(fieldValue); + } + else { + value = FedExtraDetails.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedHandshakeAction.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedHandshakeAction.java new file mode 100644 index 000000000..5b4f320e1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FedHandshakeAction.java @@ -0,0 +1,121 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum FedHandshakeAction { + // union team_log.FedHandshakeAction (team_log_generated.stone) + ACCEPTED_INVITE, + CANCELED_INVITE, + INVITE_EXPIRED, + INVITED, + REJECTED_INVITE, + REMOVED_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FedHandshakeAction value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACCEPTED_INVITE: { + g.writeString("accepted_invite"); + break; + } + case CANCELED_INVITE: { + g.writeString("canceled_invite"); + break; + } + case INVITE_EXPIRED: { + g.writeString("invite_expired"); + break; + } + case INVITED: { + g.writeString("invited"); + break; + } + case REJECTED_INVITE: { + g.writeString("rejected_invite"); + break; + } + case REMOVED_TEAM: { + g.writeString("removed_team"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FedHandshakeAction deserialize(JsonParser p) throws IOException, JsonParseException { + FedHandshakeAction value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("accepted_invite".equals(tag)) { + value = FedHandshakeAction.ACCEPTED_INVITE; + } + else if ("canceled_invite".equals(tag)) { + value = FedHandshakeAction.CANCELED_INVITE; + } + else if ("invite_expired".equals(tag)) { + value = FedHandshakeAction.INVITE_EXPIRED; + } + else if ("invited".equals(tag)) { + value = FedHandshakeAction.INVITED; + } + else if ("rejected_invite".equals(tag)) { + value = FedHandshakeAction.REJECTED_INVITE; + } + else if ("removed_team".equals(tag)) { + value = FedHandshakeAction.REMOVED_TEAM; + } + else { + value = FedHandshakeAction.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo.java new file mode 100644 index 000000000..887f116b8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FederationStatusChangeAdditionalInfo.java @@ -0,0 +1,459 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Additional information about the organization or connected team + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class FederationStatusChangeAdditionalInfo { + // union team_log.FederationStatusChangeAdditionalInfo (team_log_generated.stone) + + /** + * Discriminating tag type for {@link FederationStatusChangeAdditionalInfo}. + */ + public enum Tag { + /** + * The name of the team. + */ + CONNECTED_TEAM_NAME, // ConnectedTeamName + /** + * The email to which the request was sent. + */ + NON_TRUSTED_TEAM_DETAILS, // NonTrustedTeamDetails + /** + * The name of the organization. + */ + ORGANIZATION_NAME, // OrganizationName + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final FederationStatusChangeAdditionalInfo OTHER = new FederationStatusChangeAdditionalInfo().withTag(Tag.OTHER); + + private Tag _tag; + private ConnectedTeamName connectedTeamNameValue; + private NonTrustedTeamDetails nonTrustedTeamDetailsValue; + private OrganizationName organizationNameValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FederationStatusChangeAdditionalInfo() { + } + + + /** + * Additional information about the organization or connected team + * + * @param _tag Discriminating tag for this instance. + */ + private FederationStatusChangeAdditionalInfo withTag(Tag _tag) { + FederationStatusChangeAdditionalInfo result = new FederationStatusChangeAdditionalInfo(); + result._tag = _tag; + return result; + } + + /** + * Additional information about the organization or connected team + * + * @param connectedTeamNameValue The name of the team. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FederationStatusChangeAdditionalInfo withTagAndConnectedTeamName(Tag _tag, ConnectedTeamName connectedTeamNameValue) { + FederationStatusChangeAdditionalInfo result = new FederationStatusChangeAdditionalInfo(); + result._tag = _tag; + result.connectedTeamNameValue = connectedTeamNameValue; + return result; + } + + /** + * Additional information about the organization or connected team + * + * @param nonTrustedTeamDetailsValue The email to which the request was + * sent. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FederationStatusChangeAdditionalInfo withTagAndNonTrustedTeamDetails(Tag _tag, NonTrustedTeamDetails nonTrustedTeamDetailsValue) { + FederationStatusChangeAdditionalInfo result = new FederationStatusChangeAdditionalInfo(); + result._tag = _tag; + result.nonTrustedTeamDetailsValue = nonTrustedTeamDetailsValue; + return result; + } + + /** + * Additional information about the organization or connected team + * + * @param organizationNameValue The name of the organization. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private FederationStatusChangeAdditionalInfo withTagAndOrganizationName(Tag _tag, OrganizationName organizationNameValue) { + FederationStatusChangeAdditionalInfo result = new FederationStatusChangeAdditionalInfo(); + result._tag = _tag; + result.organizationNameValue = organizationNameValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FederationStatusChangeAdditionalInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#CONNECTED_TEAM_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#CONNECTED_TEAM_NAME}, {@code false} otherwise. + */ + public boolean isConnectedTeamName() { + return this._tag == Tag.CONNECTED_TEAM_NAME; + } + + /** + * Returns an instance of {@code FederationStatusChangeAdditionalInfo} that + * has its tag set to {@link Tag#CONNECTED_TEAM_NAME}. + * + *

The name of the team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FederationStatusChangeAdditionalInfo} with its + * tag set to {@link Tag#CONNECTED_TEAM_NAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FederationStatusChangeAdditionalInfo connectedTeamName(ConnectedTeamName value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FederationStatusChangeAdditionalInfo().withTagAndConnectedTeamName(Tag.CONNECTED_TEAM_NAME, value); + } + + /** + * The name of the team. + * + *

This instance must be tagged as {@link Tag#CONNECTED_TEAM_NAME}.

+ * + * @return The {@link ConnectedTeamName} value associated with this instance + * if {@link #isConnectedTeamName} is {@code true}. + * + * @throws IllegalStateException If {@link #isConnectedTeamName} is {@code + * false}. + */ + public ConnectedTeamName getConnectedTeamNameValue() { + if (this._tag != Tag.CONNECTED_TEAM_NAME) { + throw new IllegalStateException("Invalid tag: required Tag.CONNECTED_TEAM_NAME, but was Tag." + this._tag.name()); + } + return connectedTeamNameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#NON_TRUSTED_TEAM_DETAILS}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NON_TRUSTED_TEAM_DETAILS}, {@code false} otherwise. + */ + public boolean isNonTrustedTeamDetails() { + return this._tag == Tag.NON_TRUSTED_TEAM_DETAILS; + } + + /** + * Returns an instance of {@code FederationStatusChangeAdditionalInfo} that + * has its tag set to {@link Tag#NON_TRUSTED_TEAM_DETAILS}. + * + *

The email to which the request was sent.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FederationStatusChangeAdditionalInfo} with its + * tag set to {@link Tag#NON_TRUSTED_TEAM_DETAILS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FederationStatusChangeAdditionalInfo nonTrustedTeamDetails(NonTrustedTeamDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FederationStatusChangeAdditionalInfo().withTagAndNonTrustedTeamDetails(Tag.NON_TRUSTED_TEAM_DETAILS, value); + } + + /** + * The email to which the request was sent. + * + *

This instance must be tagged as {@link Tag#NON_TRUSTED_TEAM_DETAILS}. + *

+ * + * @return The {@link NonTrustedTeamDetails} value associated with this + * instance if {@link #isNonTrustedTeamDetails} is {@code true}. + * + * @throws IllegalStateException If {@link #isNonTrustedTeamDetails} is + * {@code false}. + */ + public NonTrustedTeamDetails getNonTrustedTeamDetailsValue() { + if (this._tag != Tag.NON_TRUSTED_TEAM_DETAILS) { + throw new IllegalStateException("Invalid tag: required Tag.NON_TRUSTED_TEAM_DETAILS, but was Tag." + this._tag.name()); + } + return nonTrustedTeamDetailsValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#ORGANIZATION_NAME}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#ORGANIZATION_NAME}, {@code false} otherwise. + */ + public boolean isOrganizationName() { + return this._tag == Tag.ORGANIZATION_NAME; + } + + /** + * Returns an instance of {@code FederationStatusChangeAdditionalInfo} that + * has its tag set to {@link Tag#ORGANIZATION_NAME}. + * + *

The name of the organization.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FederationStatusChangeAdditionalInfo} with its + * tag set to {@link Tag#ORGANIZATION_NAME}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static FederationStatusChangeAdditionalInfo organizationName(OrganizationName value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new FederationStatusChangeAdditionalInfo().withTagAndOrganizationName(Tag.ORGANIZATION_NAME, value); + } + + /** + * The name of the organization. + * + *

This instance must be tagged as {@link Tag#ORGANIZATION_NAME}.

+ * + * @return The {@link OrganizationName} value associated with this instance + * if {@link #isOrganizationName} is {@code true}. + * + * @throws IllegalStateException If {@link #isOrganizationName} is {@code + * false}. + */ + public OrganizationName getOrganizationNameValue() { + if (this._tag != Tag.ORGANIZATION_NAME) { + throw new IllegalStateException("Invalid tag: required Tag.ORGANIZATION_NAME, but was Tag." + this._tag.name()); + } + return organizationNameValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.connectedTeamNameValue, + this.nonTrustedTeamDetailsValue, + this.organizationNameValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FederationStatusChangeAdditionalInfo) { + FederationStatusChangeAdditionalInfo other = (FederationStatusChangeAdditionalInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case CONNECTED_TEAM_NAME: + return (this.connectedTeamNameValue == other.connectedTeamNameValue) || (this.connectedTeamNameValue.equals(other.connectedTeamNameValue)); + case NON_TRUSTED_TEAM_DETAILS: + return (this.nonTrustedTeamDetailsValue == other.nonTrustedTeamDetailsValue) || (this.nonTrustedTeamDetailsValue.equals(other.nonTrustedTeamDetailsValue)); + case ORGANIZATION_NAME: + return (this.organizationNameValue == other.organizationNameValue) || (this.organizationNameValue.equals(other.organizationNameValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FederationStatusChangeAdditionalInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case CONNECTED_TEAM_NAME: { + g.writeStartObject(); + writeTag("connected_team_name", g); + ConnectedTeamName.Serializer.INSTANCE.serialize(value.connectedTeamNameValue, g, true); + g.writeEndObject(); + break; + } + case NON_TRUSTED_TEAM_DETAILS: { + g.writeStartObject(); + writeTag("non_trusted_team_details", g); + NonTrustedTeamDetails.Serializer.INSTANCE.serialize(value.nonTrustedTeamDetailsValue, g, true); + g.writeEndObject(); + break; + } + case ORGANIZATION_NAME: { + g.writeStartObject(); + writeTag("organization_name", g); + OrganizationName.Serializer.INSTANCE.serialize(value.organizationNameValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FederationStatusChangeAdditionalInfo deserialize(JsonParser p) throws IOException, JsonParseException { + FederationStatusChangeAdditionalInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("connected_team_name".equals(tag)) { + ConnectedTeamName fieldValue = null; + fieldValue = ConnectedTeamName.Serializer.INSTANCE.deserialize(p, true); + value = FederationStatusChangeAdditionalInfo.connectedTeamName(fieldValue); + } + else if ("non_trusted_team_details".equals(tag)) { + NonTrustedTeamDetails fieldValue = null; + fieldValue = NonTrustedTeamDetails.Serializer.INSTANCE.deserialize(p, true); + value = FederationStatusChangeAdditionalInfo.nonTrustedTeamDetails(fieldValue); + } + else if ("organization_name".equals(tag)) { + OrganizationName fieldValue = null; + fieldValue = OrganizationName.Serializer.INSTANCE.deserialize(p, true); + value = FederationStatusChangeAdditionalInfo.organizationName(fieldValue); + } + else { + value = FederationStatusChangeAdditionalInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddCommentDetails.java new file mode 100644 index 000000000..132eccd7a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddCommentDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added file comment. + */ +public class FileAddCommentDetails { + // struct team_log.FileAddCommentDetails (team_log_generated.stone) + + @Nullable + protected final String commentText; + + /** + * Added file comment. + * + * @param commentText Comment text. + */ + public FileAddCommentDetails(@Nullable String commentText) { + this.commentText = commentText; + } + + /** + * Added file comment. + * + *

The default values for unset fields will be used.

+ */ + public FileAddCommentDetails() { + this(null); + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileAddCommentDetails other = (FileAddCommentDetails) obj; + return (this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileAddCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileAddCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileAddCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileAddCommentDetails(f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddCommentType.java new file mode 100644 index 000000000..5ed1a87a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileAddCommentType { + // struct team_log.FileAddCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileAddCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileAddCommentType other = (FileAddCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileAddCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileAddCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileAddCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileAddCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddDetails.java new file mode 100644 index 000000000..cc2f46119 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added files and/or folders. + */ +public class FileAddDetails { + // struct team_log.FileAddDetails (team_log_generated.stone) + + + /** + * Added files and/or folders. + */ + public FileAddDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileAddDetails other = (FileAddDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileAddDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileAddDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileAddDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileAddDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddFromAutomationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddFromAutomationDetails.java new file mode 100644 index 000000000..a935a9e3f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddFromAutomationDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added files and/or folders from automation. + */ +public class FileAddFromAutomationDetails { + // struct team_log.FileAddFromAutomationDetails (team_log_generated.stone) + + + /** + * Added files and/or folders from automation. + */ + public FileAddFromAutomationDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileAddFromAutomationDetails other = (FileAddFromAutomationDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileAddFromAutomationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileAddFromAutomationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileAddFromAutomationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileAddFromAutomationDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddFromAutomationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddFromAutomationType.java new file mode 100644 index 000000000..225e546bb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddFromAutomationType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileAddFromAutomationType { + // struct team_log.FileAddFromAutomationType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileAddFromAutomationType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileAddFromAutomationType other = (FileAddFromAutomationType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileAddFromAutomationType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileAddFromAutomationType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileAddFromAutomationType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileAddFromAutomationType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddType.java new file mode 100644 index 000000000..4e76bca7e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileAddType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileAddType { + // struct team_log.FileAddType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileAddType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileAddType other = (FileAddType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileAddType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileAddType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileAddType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileAddType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionDetails.java new file mode 100644 index 000000000..e2fefa5d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Subscribed to or unsubscribed from comment notifications for file. + */ +public class FileChangeCommentSubscriptionDetails { + // struct team_log.FileChangeCommentSubscriptionDetails (team_log_generated.stone) + + @Nonnull + protected final FileCommentNotificationPolicy newValue; + @Nullable + protected final FileCommentNotificationPolicy previousValue; + + /** + * Subscribed to or unsubscribed from comment notifications for file. + * + * @param newValue New file comment subscription. Must not be {@code null}. + * @param previousValue Previous file comment subscription. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileChangeCommentSubscriptionDetails(@Nonnull FileCommentNotificationPolicy newValue, @Nullable FileCommentNotificationPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Subscribed to or unsubscribed from comment notifications for file. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New file comment subscription. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileChangeCommentSubscriptionDetails(@Nonnull FileCommentNotificationPolicy newValue) { + this(newValue, null); + } + + /** + * New file comment subscription. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileCommentNotificationPolicy getNewValue() { + return newValue; + } + + /** + * Previous file comment subscription. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileCommentNotificationPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileChangeCommentSubscriptionDetails other = (FileChangeCommentSubscriptionDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileChangeCommentSubscriptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + FileCommentNotificationPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(FileCommentNotificationPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileChangeCommentSubscriptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileChangeCommentSubscriptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileCommentNotificationPolicy f_newValue = null; + FileCommentNotificationPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = FileCommentNotificationPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(FileCommentNotificationPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new FileChangeCommentSubscriptionDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionType.java new file mode 100644 index 000000000..3f643f6bf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileChangeCommentSubscriptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileChangeCommentSubscriptionType { + // struct team_log.FileChangeCommentSubscriptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileChangeCommentSubscriptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileChangeCommentSubscriptionType other = (FileChangeCommentSubscriptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileChangeCommentSubscriptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileChangeCommentSubscriptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileChangeCommentSubscriptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileChangeCommentSubscriptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentNotificationPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentNotificationPolicy.java new file mode 100644 index 000000000..b8cccd0b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentNotificationPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Enable or disable file comments notifications + */ +public enum FileCommentNotificationPolicy { + // union team_log.FileCommentNotificationPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileCommentNotificationPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileCommentNotificationPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + FileCommentNotificationPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = FileCommentNotificationPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = FileCommentNotificationPolicy.ENABLED; + } + else { + value = FileCommentNotificationPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsChangePolicyDetails.java new file mode 100644 index 000000000..9e463adf6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsChangePolicyDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled commenting on team files. + */ +public class FileCommentsChangePolicyDetails { + // struct team_log.FileCommentsChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final FileCommentsPolicy newValue; + @Nullable + protected final FileCommentsPolicy previousValue; + + /** + * Enabled/disabled commenting on team files. + * + * @param newValue New commenting on team files policy. Must not be {@code + * null}. + * @param previousValue Previous commenting on team files policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileCommentsChangePolicyDetails(@Nonnull FileCommentsPolicy newValue, @Nullable FileCommentsPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled commenting on team files. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New commenting on team files policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileCommentsChangePolicyDetails(@Nonnull FileCommentsPolicy newValue) { + this(newValue, null); + } + + /** + * New commenting on team files policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileCommentsPolicy getNewValue() { + return newValue; + } + + /** + * Previous commenting on team files policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileCommentsPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileCommentsChangePolicyDetails other = (FileCommentsChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileCommentsChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + FileCommentsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(FileCommentsPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileCommentsChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileCommentsChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileCommentsPolicy f_newValue = null; + FileCommentsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = FileCommentsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(FileCommentsPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new FileCommentsChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsChangePolicyType.java new file mode 100644 index 000000000..5777adb8c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileCommentsChangePolicyType { + // struct team_log.FileCommentsChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileCommentsChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileCommentsChangePolicyType other = (FileCommentsChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileCommentsChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileCommentsChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileCommentsChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileCommentsChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsPolicy.java new file mode 100644 index 000000000..7ba4b50da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCommentsPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * File comments policy + */ +public enum FileCommentsPolicy { + // union team_log.FileCommentsPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileCommentsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileCommentsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + FileCommentsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = FileCommentsPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = FileCommentsPolicy.ENABLED; + } + else { + value = FileCommentsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCopyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCopyDetails.java new file mode 100644 index 000000000..75a15551c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCopyDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Copied files and/or folders. + */ +public class FileCopyDetails { + // struct team_log.FileCopyDetails (team_log_generated.stone) + + @Nonnull + protected final List relocateActionDetails; + + /** + * Copied files and/or folders. + * + * @param relocateActionDetails Relocate action details. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileCopyDetails(@Nonnull List relocateActionDetails) { + if (relocateActionDetails == null) { + throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); + } + for (RelocateAssetReferencesLogInfo x : relocateActionDetails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'relocateActionDetails' is null"); + } + } + this.relocateActionDetails = relocateActionDetails; + } + + /** + * Relocate action details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRelocateActionDetails() { + return relocateActionDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.relocateActionDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileCopyDetails other = (FileCopyDetails) obj; + return (this.relocateActionDetails == other.relocateActionDetails) || (this.relocateActionDetails.equals(other.relocateActionDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileCopyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("relocate_action_details"); + StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).serialize(value.relocateActionDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileCopyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileCopyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_relocateActionDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("relocate_action_details".equals(field)) { + f_relocateActionDetails = StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_relocateActionDetails == null) { + throw new JsonParseException(p, "Required field \"relocate_action_details\" missing."); + } + value = new FileCopyDetails(f_relocateActionDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCopyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCopyType.java new file mode 100644 index 000000000..1898f72c3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileCopyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileCopyType { + // struct team_log.FileCopyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileCopyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileCopyType other = (FileCopyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileCopyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileCopyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileCopyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileCopyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteCommentDetails.java new file mode 100644 index 000000000..73bab5045 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteCommentDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Deleted file comment. + */ +public class FileDeleteCommentDetails { + // struct team_log.FileDeleteCommentDetails (team_log_generated.stone) + + @Nullable + protected final String commentText; + + /** + * Deleted file comment. + * + * @param commentText Comment text. + */ + public FileDeleteCommentDetails(@Nullable String commentText) { + this.commentText = commentText; + } + + /** + * Deleted file comment. + * + *

The default values for unset fields will be used.

+ */ + public FileDeleteCommentDetails() { + this(null); + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileDeleteCommentDetails other = (FileDeleteCommentDetails) obj; + return (this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileDeleteCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileDeleteCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileDeleteCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileDeleteCommentDetails(f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteCommentType.java new file mode 100644 index 000000000..9b4f4b4fb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileDeleteCommentType { + // struct team_log.FileDeleteCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileDeleteCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileDeleteCommentType other = (FileDeleteCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileDeleteCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileDeleteCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileDeleteCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileDeleteCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteDetails.java new file mode 100644 index 000000000..78364e0e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Deleted files and/or folders. + */ +public class FileDeleteDetails { + // struct team_log.FileDeleteDetails (team_log_generated.stone) + + + /** + * Deleted files and/or folders. + */ + public FileDeleteDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileDeleteDetails other = (FileDeleteDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileDeleteDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteType.java new file mode 100644 index 000000000..14b507e5d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileDeleteType { + // struct team_log.FileDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileDeleteType other = (FileDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDownloadDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDownloadDetails.java new file mode 100644 index 000000000..d4f1b737a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDownloadDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Downloaded files and/or folders. + */ +public class FileDownloadDetails { + // struct team_log.FileDownloadDetails (team_log_generated.stone) + + + /** + * Downloaded files and/or folders. + */ + public FileDownloadDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileDownloadDetails other = (FileDownloadDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileDownloadDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileDownloadDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileDownloadDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileDownloadDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDownloadType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDownloadType.java new file mode 100644 index 000000000..2207777f8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileDownloadType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileDownloadType { + // struct team_log.FileDownloadType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileDownloadType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileDownloadType other = (FileDownloadType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileDownloadType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileDownloadType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileDownloadType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileDownloadType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditCommentDetails.java new file mode 100644 index 000000000..b75042cfe --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditCommentDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Edited file comment. + */ +public class FileEditCommentDetails { + // struct team_log.FileEditCommentDetails (team_log_generated.stone) + + @Nullable + protected final String commentText; + @Nonnull + protected final String previousCommentText; + + /** + * Edited file comment. + * + * @param previousCommentText Previous comment text. Must not be {@code + * null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileEditCommentDetails(@Nonnull String previousCommentText, @Nullable String commentText) { + this.commentText = commentText; + if (previousCommentText == null) { + throw new IllegalArgumentException("Required value for 'previousCommentText' is null"); + } + this.previousCommentText = previousCommentText; + } + + /** + * Edited file comment. + * + *

The default values for unset fields will be used.

+ * + * @param previousCommentText Previous comment text. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileEditCommentDetails(@Nonnull String previousCommentText) { + this(previousCommentText, null); + } + + /** + * Previous comment text. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousCommentText() { + return previousCommentText; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commentText, + this.previousCommentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileEditCommentDetails other = (FileEditCommentDetails) obj; + return ((this.previousCommentText == other.previousCommentText) || (this.previousCommentText.equals(other.previousCommentText))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileEditCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_comment_text"); + StoneSerializers.string().serialize(value.previousCommentText, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileEditCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileEditCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousCommentText = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_comment_text".equals(field)) { + f_previousCommentText = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousCommentText == null) { + throw new JsonParseException(p, "Required field \"previous_comment_text\" missing."); + } + value = new FileEditCommentDetails(f_previousCommentText, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditCommentType.java new file mode 100644 index 000000000..fa9a8039a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileEditCommentType { + // struct team_log.FileEditCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileEditCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileEditCommentType other = (FileEditCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileEditCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileEditCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileEditCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileEditCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditDetails.java new file mode 100644 index 000000000..33a535d61 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Edited files. + */ +public class FileEditDetails { + // struct team_log.FileEditDetails (team_log_generated.stone) + + + /** + * Edited files. + */ + public FileEditDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileEditDetails other = (FileEditDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileEditDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileEditDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileEditDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileEditDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditType.java new file mode 100644 index 000000000..1a7327c28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileEditType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileEditType { + // struct team_log.FileEditType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileEditType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileEditType other = (FileEditType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileEditType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileEditType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileEditType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileEditType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileGetCopyReferenceDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileGetCopyReferenceDetails.java new file mode 100644 index 000000000..b296869bd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileGetCopyReferenceDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created copy reference to file/folder. + */ +public class FileGetCopyReferenceDetails { + // struct team_log.FileGetCopyReferenceDetails (team_log_generated.stone) + + + /** + * Created copy reference to file/folder. + */ + public FileGetCopyReferenceDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileGetCopyReferenceDetails other = (FileGetCopyReferenceDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileGetCopyReferenceDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileGetCopyReferenceDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileGetCopyReferenceDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileGetCopyReferenceDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileGetCopyReferenceType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileGetCopyReferenceType.java new file mode 100644 index 000000000..3b686d4c9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileGetCopyReferenceType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileGetCopyReferenceType { + // struct team_log.FileGetCopyReferenceType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileGetCopyReferenceType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileGetCopyReferenceType other = (FileGetCopyReferenceType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileGetCopyReferenceType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileGetCopyReferenceType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileGetCopyReferenceType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileGetCopyReferenceType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLikeCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLikeCommentDetails.java new file mode 100644 index 000000000..22fbe66fd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLikeCommentDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Liked file comment. + */ +public class FileLikeCommentDetails { + // struct team_log.FileLikeCommentDetails (team_log_generated.stone) + + @Nullable + protected final String commentText; + + /** + * Liked file comment. + * + * @param commentText Comment text. + */ + public FileLikeCommentDetails(@Nullable String commentText) { + this.commentText = commentText; + } + + /** + * Liked file comment. + * + *

The default values for unset fields will be used.

+ */ + public FileLikeCommentDetails() { + this(null); + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLikeCommentDetails other = (FileLikeCommentDetails) obj; + return (this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLikeCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLikeCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLikeCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileLikeCommentDetails(f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLikeCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLikeCommentType.java new file mode 100644 index 000000000..e36e40d7b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLikeCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileLikeCommentType { + // struct team_log.FileLikeCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLikeCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLikeCommentType other = (FileLikeCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLikeCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLikeCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLikeCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileLikeCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedDetails.java new file mode 100644 index 000000000..1657e800f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Locked/unlocked editing for a file. + */ +public class FileLockingLockStatusChangedDetails { + // struct team_log.FileLockingLockStatusChangedDetails (team_log_generated.stone) + + @Nonnull + protected final LockStatus previousValue; + @Nonnull + protected final LockStatus newValue; + + /** + * Locked/unlocked editing for a file. + * + * @param previousValue Previous lock status of the file. Must not be + * {@code null}. + * @param newValue New lock status of the file. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLockingLockStatusChangedDetails(@Nonnull LockStatus previousValue, @Nonnull LockStatus newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous lock status of the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LockStatus getPreviousValue() { + return previousValue; + } + + /** + * New lock status of the file. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LockStatus getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLockingLockStatusChangedDetails other = (FileLockingLockStatusChangedDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockingLockStatusChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + LockStatus.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + LockStatus.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLockingLockStatusChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLockingLockStatusChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LockStatus f_previousValue = null; + LockStatus f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = LockStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = LockStatus.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new FileLockingLockStatusChangedDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedType.java new file mode 100644 index 000000000..dfd5cde58 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingLockStatusChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileLockingLockStatusChangedType { + // struct team_log.FileLockingLockStatusChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLockingLockStatusChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLockingLockStatusChangedType other = (FileLockingLockStatusChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockingLockStatusChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLockingLockStatusChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLockingLockStatusChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileLockingLockStatusChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingPolicyChangedDetails.java new file mode 100644 index 000000000..b45bd6852 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingPolicyChangedDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.FileLockingPolicyState; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed file locking policy for team. + */ +public class FileLockingPolicyChangedDetails { + // struct team_log.FileLockingPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final FileLockingPolicyState newValue; + @Nonnull + protected final FileLockingPolicyState previousValue; + + /** + * Changed file locking policy for team. + * + * @param newValue New file locking policy. Must not be {@code null}. + * @param previousValue Previous file locking policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLockingPolicyChangedDetails(@Nonnull FileLockingPolicyState newValue, @Nonnull FileLockingPolicyState previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New file locking policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileLockingPolicyState getNewValue() { + return newValue; + } + + /** + * Previous file locking policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileLockingPolicyState getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLockingPolicyChangedDetails other = (FileLockingPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockingPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + FileLockingPolicyState.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + FileLockingPolicyState.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLockingPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLockingPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileLockingPolicyState f_newValue = null; + FileLockingPolicyState f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = FileLockingPolicyState.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = FileLockingPolicyState.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new FileLockingPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingPolicyChangedType.java new file mode 100644 index 000000000..7b2c27b9e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLockingPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileLockingPolicyChangedType { + // struct team_log.FileLockingPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLockingPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLockingPolicyChangedType other = (FileLockingPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockingPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLockingPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLockingPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileLockingPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLogInfo.java new file mode 100644 index 000000000..49db20ec4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileLogInfo.java @@ -0,0 +1,292 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * File's logged information. + */ +public class FileLogInfo extends FileOrFolderLogInfo { + // struct team_log.FileLogInfo (team_log_generated.stone) + + + /** + * File's logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param path Path relative to event context. Must not be {@code null}. + * @param displayName Display name. + * @param fileId Unique ID. + * @param fileSize File or folder size in bytes. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLogInfo(@Nonnull PathLogInfo path, @Nullable String displayName, @Nullable String fileId, @Nullable Long fileSize) { + super(path, displayName, fileId, fileSize); + } + + /** + * File's logged information. + * + *

The default values for unset fields will be used.

+ * + * @param path Path relative to event context. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileLogInfo(@Nonnull PathLogInfo path) { + this(path, null, null, null); + } + + /** + * Path relative to event context. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PathLogInfo getPath() { + return path; + } + + /** + * Display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileId() { + return fileId; + } + + /** + * File or folder size in bytes. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getFileSize() { + return fileSize; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path Path relative to event context. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(PathLogInfo path) { + return new Builder(path); + } + + /** + * Builder for {@link FileLogInfo}. + */ + public static class Builder extends FileOrFolderLogInfo.Builder { + + protected Builder(PathLogInfo path) { + super(path); + } + + /** + * Set value for optional field. + * + * @param displayName Display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Set value for optional field. + * + * @param fileId Unique ID. + * + * @return this builder + */ + public Builder withFileId(String fileId) { + super.withFileId(fileId); + return this; + } + + /** + * Set value for optional field. + * + * @param fileSize File or folder size in bytes. + * + * @return this builder + */ + public Builder withFileSize(Long fileSize) { + super.withFileSize(fileSize); + return this; + } + + /** + * Builds an instance of {@link FileLogInfo} configured with this + * builder's values + * + * @return new instance of {@link FileLogInfo} + */ + public FileLogInfo build() { + return new FileLogInfo(path, displayName, fileId, fileSize); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileLogInfo other = (FileLogInfo) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.fileId == other.fileId) || (this.fileId != null && this.fileId.equals(other.fileId))) + && ((this.fileSize == other.fileSize) || (this.fileSize != null && this.fileSize.equals(other.fileSize))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + PathLogInfo.Serializer.INSTANCE.serialize(value.path, g); + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.fileId != null) { + g.writeFieldName("file_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileId, g); + } + if (value.fileSize != null) { + g.writeFieldName("file_size"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.fileSize, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PathLogInfo f_path = null; + String f_displayName = null; + String f_fileId = null; + Long f_fileSize = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = PathLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_id".equals(field)) { + f_fileId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_size".equals(field)) { + f_fileSize = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new FileLogInfo(f_path, f_displayName, f_fileId, f_fileSize); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileMoveDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileMoveDetails.java new file mode 100644 index 000000000..57c69e145 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileMoveDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Moved files and/or folders. + */ +public class FileMoveDetails { + // struct team_log.FileMoveDetails (team_log_generated.stone) + + @Nonnull + protected final List relocateActionDetails; + + /** + * Moved files and/or folders. + * + * @param relocateActionDetails Relocate action details. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMoveDetails(@Nonnull List relocateActionDetails) { + if (relocateActionDetails == null) { + throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); + } + for (RelocateAssetReferencesLogInfo x : relocateActionDetails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'relocateActionDetails' is null"); + } + } + this.relocateActionDetails = relocateActionDetails; + } + + /** + * Relocate action details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRelocateActionDetails() { + return relocateActionDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.relocateActionDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileMoveDetails other = (FileMoveDetails) obj; + return (this.relocateActionDetails == other.relocateActionDetails) || (this.relocateActionDetails.equals(other.relocateActionDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileMoveDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("relocate_action_details"); + StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).serialize(value.relocateActionDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileMoveDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileMoveDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_relocateActionDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("relocate_action_details".equals(field)) { + f_relocateActionDetails = StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_relocateActionDetails == null) { + throw new JsonParseException(p, "Required field \"relocate_action_details\" missing."); + } + value = new FileMoveDetails(f_relocateActionDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileMoveType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileMoveType.java new file mode 100644 index 000000000..81c93784b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileMoveType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileMoveType { + // struct team_log.FileMoveType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileMoveType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileMoveType other = (FileMoveType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileMoveType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileMoveType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileMoveType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileMoveType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileOrFolderLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileOrFolderLogInfo.java new file mode 100644 index 000000000..67f80eb81 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileOrFolderLogInfo.java @@ -0,0 +1,323 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Generic information relevant both for files and folders + */ +public class FileOrFolderLogInfo { + // struct team_log.FileOrFolderLogInfo (team_log_generated.stone) + + @Nonnull + protected final PathLogInfo path; + @Nullable + protected final String displayName; + @Nullable + protected final String fileId; + @Nullable + protected final Long fileSize; + + /** + * Generic information relevant both for files and folders + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param path Path relative to event context. Must not be {@code null}. + * @param displayName Display name. + * @param fileId Unique ID. + * @param fileSize File or folder size in bytes. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileOrFolderLogInfo(@Nonnull PathLogInfo path, @Nullable String displayName, @Nullable String fileId, @Nullable Long fileSize) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + this.path = path; + this.displayName = displayName; + this.fileId = fileId; + this.fileSize = fileSize; + } + + /** + * Generic information relevant both for files and folders + * + *

The default values for unset fields will be used.

+ * + * @param path Path relative to event context. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileOrFolderLogInfo(@Nonnull PathLogInfo path) { + this(path, null, null, null); + } + + /** + * Path relative to event context. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PathLogInfo getPath() { + return path; + } + + /** + * Display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileId() { + return fileId; + } + + /** + * File or folder size in bytes. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getFileSize() { + return fileSize; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path Path relative to event context. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(PathLogInfo path) { + return new Builder(path); + } + + /** + * Builder for {@link FileOrFolderLogInfo}. + */ + public static class Builder { + protected final PathLogInfo path; + + protected String displayName; + protected String fileId; + protected Long fileSize; + + protected Builder(PathLogInfo path) { + if (path == null) { + throw new IllegalArgumentException("Required value for 'path' is null"); + } + this.path = path; + this.displayName = null; + this.fileId = null; + this.fileSize = null; + } + + /** + * Set value for optional field. + * + * @param displayName Display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Set value for optional field. + * + * @param fileId Unique ID. + * + * @return this builder + */ + public Builder withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * Set value for optional field. + * + * @param fileSize File or folder size in bytes. + * + * @return this builder + */ + public Builder withFileSize(Long fileSize) { + this.fileSize = fileSize; + return this; + } + + /** + * Builds an instance of {@link FileOrFolderLogInfo} configured with + * this builder's values + * + * @return new instance of {@link FileOrFolderLogInfo} + */ + public FileOrFolderLogInfo build() { + return new FileOrFolderLogInfo(path, displayName, fileId, fileSize); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.path, + this.displayName, + this.fileId, + this.fileSize + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileOrFolderLogInfo other = (FileOrFolderLogInfo) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.fileId == other.fileId) || (this.fileId != null && this.fileId.equals(other.fileId))) + && ((this.fileSize == other.fileSize) || (this.fileSize != null && this.fileSize.equals(other.fileSize))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileOrFolderLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + PathLogInfo.Serializer.INSTANCE.serialize(value.path, g); + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.fileId != null) { + g.writeFieldName("file_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileId, g); + } + if (value.fileSize != null) { + g.writeFieldName("file_size"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.fileSize, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileOrFolderLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileOrFolderLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PathLogInfo f_path = null; + String f_displayName = null; + String f_fileId = null; + Long f_fileSize = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = PathLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_id".equals(field)) { + f_fileId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_size".equals(field)) { + f_fileSize = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new FileOrFolderLogInfo(f_path, f_displayName, f_fileId, f_fileSize); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePermanentlyDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePermanentlyDeleteDetails.java new file mode 100644 index 000000000..f3e50f402 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePermanentlyDeleteDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Permanently deleted files and/or folders. + */ +public class FilePermanentlyDeleteDetails { + // struct team_log.FilePermanentlyDeleteDetails (team_log_generated.stone) + + + /** + * Permanently deleted files and/or folders. + */ + public FilePermanentlyDeleteDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FilePermanentlyDeleteDetails other = (FilePermanentlyDeleteDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FilePermanentlyDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FilePermanentlyDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FilePermanentlyDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FilePermanentlyDeleteDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePermanentlyDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePermanentlyDeleteType.java new file mode 100644 index 000000000..9e7955a59 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePermanentlyDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FilePermanentlyDeleteType { + // struct team_log.FilePermanentlyDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FilePermanentlyDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FilePermanentlyDeleteType other = (FilePermanentlyDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FilePermanentlyDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FilePermanentlyDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FilePermanentlyDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FilePermanentlyDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePreviewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePreviewDetails.java new file mode 100644 index 000000000..4f16b824f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePreviewDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Previewed files and/or folders. + */ +public class FilePreviewDetails { + // struct team_log.FilePreviewDetails (team_log_generated.stone) + + + /** + * Previewed files and/or folders. + */ + public FilePreviewDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FilePreviewDetails other = (FilePreviewDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FilePreviewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FilePreviewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FilePreviewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FilePreviewDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePreviewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePreviewType.java new file mode 100644 index 000000000..69dc7a36a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FilePreviewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FilePreviewType { + // struct team_log.FilePreviewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FilePreviewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FilePreviewType other = (FilePreviewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FilePreviewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FilePreviewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FilePreviewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FilePreviewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedDetails.java new file mode 100644 index 000000000..0ef51808d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.FileProviderMigrationPolicyState; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed File Provider Migration policy for team. + */ +public class FileProviderMigrationPolicyChangedDetails { + // struct team_log.FileProviderMigrationPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final FileProviderMigrationPolicyState newValue; + @Nonnull + protected final FileProviderMigrationPolicyState previousValue; + + /** + * Changed File Provider Migration policy for team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileProviderMigrationPolicyChangedDetails(@Nonnull FileProviderMigrationPolicyState newValue, @Nonnull FileProviderMigrationPolicyState previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileProviderMigrationPolicyState getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileProviderMigrationPolicyState getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileProviderMigrationPolicyChangedDetails other = (FileProviderMigrationPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileProviderMigrationPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + FileProviderMigrationPolicyState.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + FileProviderMigrationPolicyState.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileProviderMigrationPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileProviderMigrationPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileProviderMigrationPolicyState f_newValue = null; + FileProviderMigrationPolicyState f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = FileProviderMigrationPolicyState.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = FileProviderMigrationPolicyState.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new FileProviderMigrationPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedType.java new file mode 100644 index 000000000..235a55d6d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileProviderMigrationPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileProviderMigrationPolicyChangedType { + // struct team_log.FileProviderMigrationPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileProviderMigrationPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileProviderMigrationPolicyChangedType other = (FileProviderMigrationPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileProviderMigrationPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileProviderMigrationPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileProviderMigrationPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileProviderMigrationPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRenameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRenameDetails.java new file mode 100644 index 000000000..643d5427d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRenameDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Renamed files and/or folders. + */ +public class FileRenameDetails { + // struct team_log.FileRenameDetails (team_log_generated.stone) + + @Nonnull + protected final List relocateActionDetails; + + /** + * Renamed files and/or folders. + * + * @param relocateActionDetails Relocate action details. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRenameDetails(@Nonnull List relocateActionDetails) { + if (relocateActionDetails == null) { + throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); + } + for (RelocateAssetReferencesLogInfo x : relocateActionDetails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'relocateActionDetails' is null"); + } + } + this.relocateActionDetails = relocateActionDetails; + } + + /** + * Relocate action details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRelocateActionDetails() { + return relocateActionDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.relocateActionDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRenameDetails other = (FileRenameDetails) obj; + return (this.relocateActionDetails == other.relocateActionDetails) || (this.relocateActionDetails.equals(other.relocateActionDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRenameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("relocate_action_details"); + StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).serialize(value.relocateActionDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRenameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRenameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_relocateActionDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("relocate_action_details".equals(field)) { + f_relocateActionDetails = StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_relocateActionDetails == null) { + throw new JsonParseException(p, "Required field \"relocate_action_details\" missing."); + } + value = new FileRenameDetails(f_relocateActionDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRenameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRenameType.java new file mode 100644 index 000000000..d64210e38 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRenameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRenameType { + // struct team_log.FileRenameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRenameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRenameType other = (FileRenameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRenameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRenameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRenameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRenameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestChangeDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestChangeDetails.java new file mode 100644 index 000000000..9687c6cb9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestChangeDetails.java @@ -0,0 +1,311 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed file request. + */ +public class FileRequestChangeDetails { + // struct team_log.FileRequestChangeDetails (team_log_generated.stone) + + @Nullable + protected final String fileRequestId; + @Nullable + protected final FileRequestDetails previousDetails; + @Nonnull + protected final FileRequestDetails newDetails; + + /** + * Changed file request. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newDetails New file request details. Must not be {@code null}. + * @param fileRequestId File request id. Might be missing due to historical + * data gap. Must have length of at least 1 and match pattern "{@code + * [-_0-9a-zA-Z]+}". + * @param previousDetails Previous file request details. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestChangeDetails(@Nonnull FileRequestDetails newDetails, @Nullable String fileRequestId, @Nullable FileRequestDetails previousDetails) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + this.previousDetails = previousDetails; + if (newDetails == null) { + throw new IllegalArgumentException("Required value for 'newDetails' is null"); + } + this.newDetails = newDetails; + } + + /** + * Changed file request. + * + *

The default values for unset fields will be used.

+ * + * @param newDetails New file request details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestChangeDetails(@Nonnull FileRequestDetails newDetails) { + this(newDetails, null, null); + } + + /** + * New file request details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileRequestDetails getNewDetails() { + return newDetails; + } + + /** + * File request id. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileRequestId() { + return fileRequestId; + } + + /** + * Previous file request details. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDetails getPreviousDetails() { + return previousDetails; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param newDetails New file request details. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(FileRequestDetails newDetails) { + return new Builder(newDetails); + } + + /** + * Builder for {@link FileRequestChangeDetails}. + */ + public static class Builder { + protected final FileRequestDetails newDetails; + + protected String fileRequestId; + protected FileRequestDetails previousDetails; + + protected Builder(FileRequestDetails newDetails) { + if (newDetails == null) { + throw new IllegalArgumentException("Required value for 'newDetails' is null"); + } + this.newDetails = newDetails; + this.fileRequestId = null; + this.previousDetails = null; + } + + /** + * Set value for optional field. + * + * @param fileRequestId File request id. Might be missing due to + * historical data gap. Must have length of at least 1 and match + * pattern "{@code [-_0-9a-zA-Z]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileRequestId(String fileRequestId) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + return this; + } + + /** + * Set value for optional field. + * + * @param previousDetails Previous file request details. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousDetails(FileRequestDetails previousDetails) { + this.previousDetails = previousDetails; + return this; + } + + /** + * Builds an instance of {@link FileRequestChangeDetails} configured + * with this builder's values + * + * @return new instance of {@link FileRequestChangeDetails} + */ + public FileRequestChangeDetails build() { + return new FileRequestChangeDetails(newDetails, fileRequestId, previousDetails); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequestId, + this.previousDetails, + this.newDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestChangeDetails other = (FileRequestChangeDetails) obj; + return ((this.newDetails == other.newDetails) || (this.newDetails.equals(other.newDetails))) + && ((this.fileRequestId == other.fileRequestId) || (this.fileRequestId != null && this.fileRequestId.equals(other.fileRequestId))) + && ((this.previousDetails == other.previousDetails) || (this.previousDetails != null && this.previousDetails.equals(other.previousDetails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestChangeDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_details"); + FileRequestDetails.Serializer.INSTANCE.serialize(value.newDetails, g); + if (value.fileRequestId != null) { + g.writeFieldName("file_request_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileRequestId, g); + } + if (value.previousDetails != null) { + g.writeFieldName("previous_details"); + StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).serialize(value.previousDetails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestChangeDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestChangeDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileRequestDetails f_newDetails = null; + String f_fileRequestId = null; + FileRequestDetails f_previousDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_details".equals(field)) { + f_newDetails = FileRequestDetails.Serializer.INSTANCE.deserialize(p); + } + else if ("file_request_id".equals(field)) { + f_fileRequestId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_details".equals(field)) { + f_previousDetails = StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newDetails == null) { + throw new JsonParseException(p, "Required field \"new_details\" missing."); + } + value = new FileRequestChangeDetails(f_newDetails, f_fileRequestId, f_previousDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestChangeType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestChangeType.java new file mode 100644 index 000000000..baa3a3376 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestChangeType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestChangeType { + // struct team_log.FileRequestChangeType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestChangeType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestChangeType other = (FileRequestChangeType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestChangeType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestChangeType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestChangeType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestChangeType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCloseDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCloseDetails.java new file mode 100644 index 000000000..6469eee4a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCloseDetails.java @@ -0,0 +1,268 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Closed file request. + */ +public class FileRequestCloseDetails { + // struct team_log.FileRequestCloseDetails (team_log_generated.stone) + + @Nullable + protected final String fileRequestId; + @Nullable + protected final FileRequestDetails previousDetails; + + /** + * Closed file request. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param fileRequestId File request id. Might be missing due to historical + * data gap. Must have length of at least 1 and match pattern "{@code + * [-_0-9a-zA-Z]+}". + * @param previousDetails Previous file request details. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestCloseDetails(@Nullable String fileRequestId, @Nullable FileRequestDetails previousDetails) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + this.previousDetails = previousDetails; + } + + /** + * Closed file request. + * + *

The default values for unset fields will be used.

+ */ + public FileRequestCloseDetails() { + this(null, null); + } + + /** + * File request id. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileRequestId() { + return fileRequestId; + } + + /** + * Previous file request details. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDetails getPreviousDetails() { + return previousDetails; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link FileRequestCloseDetails}. + */ + public static class Builder { + + protected String fileRequestId; + protected FileRequestDetails previousDetails; + + protected Builder() { + this.fileRequestId = null; + this.previousDetails = null; + } + + /** + * Set value for optional field. + * + * @param fileRequestId File request id. Might be missing due to + * historical data gap. Must have length of at least 1 and match + * pattern "{@code [-_0-9a-zA-Z]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileRequestId(String fileRequestId) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + return this; + } + + /** + * Set value for optional field. + * + * @param previousDetails Previous file request details. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousDetails(FileRequestDetails previousDetails) { + this.previousDetails = previousDetails; + return this; + } + + /** + * Builds an instance of {@link FileRequestCloseDetails} configured with + * this builder's values + * + * @return new instance of {@link FileRequestCloseDetails} + */ + public FileRequestCloseDetails build() { + return new FileRequestCloseDetails(fileRequestId, previousDetails); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequestId, + this.previousDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestCloseDetails other = (FileRequestCloseDetails) obj; + return ((this.fileRequestId == other.fileRequestId) || (this.fileRequestId != null && this.fileRequestId.equals(other.fileRequestId))) + && ((this.previousDetails == other.previousDetails) || (this.previousDetails != null && this.previousDetails.equals(other.previousDetails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestCloseDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.fileRequestId != null) { + g.writeFieldName("file_request_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileRequestId, g); + } + if (value.previousDetails != null) { + g.writeFieldName("previous_details"); + StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).serialize(value.previousDetails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestCloseDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestCloseDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileRequestId = null; + FileRequestDetails f_previousDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_request_id".equals(field)) { + f_fileRequestId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_details".equals(field)) { + f_previousDetails = StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileRequestCloseDetails(f_fileRequestId, f_previousDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCloseType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCloseType.java new file mode 100644 index 000000000..674dbd5cd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCloseType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestCloseType { + // struct team_log.FileRequestCloseType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestCloseType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestCloseType other = (FileRequestCloseType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestCloseType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestCloseType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestCloseType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestCloseType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCreateDetails.java new file mode 100644 index 000000000..cb233ceb7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCreateDetails.java @@ -0,0 +1,267 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Created file request. + */ +public class FileRequestCreateDetails { + // struct team_log.FileRequestCreateDetails (team_log_generated.stone) + + @Nullable + protected final String fileRequestId; + @Nullable + protected final FileRequestDetails requestDetails; + + /** + * Created file request. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param fileRequestId File request id. Might be missing due to historical + * data gap. Must have length of at least 1 and match pattern "{@code + * [-_0-9a-zA-Z]+}". + * @param requestDetails File request details. Might be missing due to + * historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestCreateDetails(@Nullable String fileRequestId, @Nullable FileRequestDetails requestDetails) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + this.requestDetails = requestDetails; + } + + /** + * Created file request. + * + *

The default values for unset fields will be used.

+ */ + public FileRequestCreateDetails() { + this(null, null); + } + + /** + * File request id. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileRequestId() { + return fileRequestId; + } + + /** + * File request details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDetails getRequestDetails() { + return requestDetails; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link FileRequestCreateDetails}. + */ + public static class Builder { + + protected String fileRequestId; + protected FileRequestDetails requestDetails; + + protected Builder() { + this.fileRequestId = null; + this.requestDetails = null; + } + + /** + * Set value for optional field. + * + * @param fileRequestId File request id. Might be missing due to + * historical data gap. Must have length of at least 1 and match + * pattern "{@code [-_0-9a-zA-Z]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileRequestId(String fileRequestId) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + return this; + } + + /** + * Set value for optional field. + * + * @param requestDetails File request details. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withRequestDetails(FileRequestDetails requestDetails) { + this.requestDetails = requestDetails; + return this; + } + + /** + * Builds an instance of {@link FileRequestCreateDetails} configured + * with this builder's values + * + * @return new instance of {@link FileRequestCreateDetails} + */ + public FileRequestCreateDetails build() { + return new FileRequestCreateDetails(fileRequestId, requestDetails); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequestId, + this.requestDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestCreateDetails other = (FileRequestCreateDetails) obj; + return ((this.fileRequestId == other.fileRequestId) || (this.fileRequestId != null && this.fileRequestId.equals(other.fileRequestId))) + && ((this.requestDetails == other.requestDetails) || (this.requestDetails != null && this.requestDetails.equals(other.requestDetails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.fileRequestId != null) { + g.writeFieldName("file_request_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileRequestId, g); + } + if (value.requestDetails != null) { + g.writeFieldName("request_details"); + StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).serialize(value.requestDetails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileRequestId = null; + FileRequestDetails f_requestDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_request_id".equals(field)) { + f_fileRequestId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("request_details".equals(field)) { + f_requestDetails = StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileRequestCreateDetails(f_fileRequestId, f_requestDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCreateType.java new file mode 100644 index 000000000..44a1be12a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestCreateType { + // struct team_log.FileRequestCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestCreateType other = (FileRequestCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeadline.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeadline.java new file mode 100644 index 000000000..0112abfc3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeadline.java @@ -0,0 +1,246 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * File request deadline + */ +public class FileRequestDeadline { + // struct team_log.FileRequestDeadline (team_log_generated.stone) + + @Nullable + protected final Date deadline; + @Nullable + protected final String allowLateUploads; + + /** + * File request deadline + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param deadline The deadline for this file request. Might be missing due + * to historical data gap. + * @param allowLateUploads If set, allow uploads after the deadline has + * passed. + */ + public FileRequestDeadline(@Nullable Date deadline, @Nullable String allowLateUploads) { + this.deadline = LangUtil.truncateMillis(deadline); + this.allowLateUploads = allowLateUploads; + } + + /** + * File request deadline + * + *

The default values for unset fields will be used.

+ */ + public FileRequestDeadline() { + this(null, null); + } + + /** + * The deadline for this file request. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getDeadline() { + return deadline; + } + + /** + * If set, allow uploads after the deadline has passed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAllowLateUploads() { + return allowLateUploads; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link FileRequestDeadline}. + */ + public static class Builder { + + protected Date deadline; + protected String allowLateUploads; + + protected Builder() { + this.deadline = null; + this.allowLateUploads = null; + } + + /** + * Set value for optional field. + * + * @param deadline The deadline for this file request. Might be missing + * due to historical data gap. + * + * @return this builder + */ + public Builder withDeadline(Date deadline) { + this.deadline = LangUtil.truncateMillis(deadline); + return this; + } + + /** + * Set value for optional field. + * + * @param allowLateUploads If set, allow uploads after the deadline has + * passed. + * + * @return this builder + */ + public Builder withAllowLateUploads(String allowLateUploads) { + this.allowLateUploads = allowLateUploads; + return this; + } + + /** + * Builds an instance of {@link FileRequestDeadline} configured with + * this builder's values + * + * @return new instance of {@link FileRequestDeadline} + */ + public FileRequestDeadline build() { + return new FileRequestDeadline(deadline, allowLateUploads); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.deadline, + this.allowLateUploads + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestDeadline other = (FileRequestDeadline) obj; + return ((this.deadline == other.deadline) || (this.deadline != null && this.deadline.equals(other.deadline))) + && ((this.allowLateUploads == other.allowLateUploads) || (this.allowLateUploads != null && this.allowLateUploads.equals(other.allowLateUploads))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestDeadline value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.deadline != null) { + g.writeFieldName("deadline"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.deadline, g); + } + if (value.allowLateUploads != null) { + g.writeFieldName("allow_late_uploads"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.allowLateUploads, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestDeadline deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestDeadline value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_deadline = null; + String f_allowLateUploads = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("deadline".equals(field)) { + f_deadline = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("allow_late_uploads".equals(field)) { + f_allowLateUploads = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileRequestDeadline(f_deadline, f_allowLateUploads); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeleteDetails.java new file mode 100644 index 000000000..81d556b73 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeleteDetails.java @@ -0,0 +1,268 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Delete file request. + */ +public class FileRequestDeleteDetails { + // struct team_log.FileRequestDeleteDetails (team_log_generated.stone) + + @Nullable + protected final String fileRequestId; + @Nullable + protected final FileRequestDetails previousDetails; + + /** + * Delete file request. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param fileRequestId File request id. Might be missing due to historical + * data gap. Must have length of at least 1 and match pattern "{@code + * [-_0-9a-zA-Z]+}". + * @param previousDetails Previous file request details. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestDeleteDetails(@Nullable String fileRequestId, @Nullable FileRequestDetails previousDetails) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + this.previousDetails = previousDetails; + } + + /** + * Delete file request. + * + *

The default values for unset fields will be used.

+ */ + public FileRequestDeleteDetails() { + this(null, null); + } + + /** + * File request id. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileRequestId() { + return fileRequestId; + } + + /** + * Previous file request details. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDetails getPreviousDetails() { + return previousDetails; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link FileRequestDeleteDetails}. + */ + public static class Builder { + + protected String fileRequestId; + protected FileRequestDetails previousDetails; + + protected Builder() { + this.fileRequestId = null; + this.previousDetails = null; + } + + /** + * Set value for optional field. + * + * @param fileRequestId File request id. Might be missing due to + * historical data gap. Must have length of at least 1 and match + * pattern "{@code [-_0-9a-zA-Z]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileRequestId(String fileRequestId) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + return this; + } + + /** + * Set value for optional field. + * + * @param previousDetails Previous file request details. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousDetails(FileRequestDetails previousDetails) { + this.previousDetails = previousDetails; + return this; + } + + /** + * Builds an instance of {@link FileRequestDeleteDetails} configured + * with this builder's values + * + * @return new instance of {@link FileRequestDeleteDetails} + */ + public FileRequestDeleteDetails build() { + return new FileRequestDeleteDetails(fileRequestId, previousDetails); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequestId, + this.previousDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestDeleteDetails other = (FileRequestDeleteDetails) obj; + return ((this.fileRequestId == other.fileRequestId) || (this.fileRequestId != null && this.fileRequestId.equals(other.fileRequestId))) + && ((this.previousDetails == other.previousDetails) || (this.previousDetails != null && this.previousDetails.equals(other.previousDetails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.fileRequestId != null) { + g.writeFieldName("file_request_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileRequestId, g); + } + if (value.previousDetails != null) { + g.writeFieldName("previous_details"); + StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).serialize(value.previousDetails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileRequestId = null; + FileRequestDetails f_previousDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_request_id".equals(field)) { + f_fileRequestId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_details".equals(field)) { + f_previousDetails = StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileRequestDeleteDetails(f_fileRequestId, f_previousDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeleteType.java new file mode 100644 index 000000000..9f031379f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestDeleteType { + // struct team_log.FileRequestDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestDeleteType other = (FileRequestDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDetails.java new file mode 100644 index 000000000..ab26f0afc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * File request details + */ +public class FileRequestDetails { + // struct team_log.FileRequestDetails (team_log_generated.stone) + + protected final long assetIndex; + @Nullable + protected final FileRequestDeadline deadline; + + /** + * File request details + * + * @param assetIndex Asset position in the Assets list. + * @param deadline File request deadline. + */ + public FileRequestDetails(long assetIndex, @Nullable FileRequestDeadline deadline) { + this.assetIndex = assetIndex; + this.deadline = deadline; + } + + /** + * File request details + * + *

The default values for unset fields will be used.

+ * + * @param assetIndex Asset position in the Assets list. + */ + public FileRequestDetails(long assetIndex) { + this(assetIndex, null); + } + + /** + * Asset position in the Assets list. + * + * @return value for this field. + */ + public long getAssetIndex() { + return assetIndex; + } + + /** + * File request deadline. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDeadline getDeadline() { + return deadline; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.assetIndex, + this.deadline + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestDetails other = (FileRequestDetails) obj; + return (this.assetIndex == other.assetIndex) + && ((this.deadline == other.deadline) || (this.deadline != null && this.deadline.equals(other.deadline))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("asset_index"); + StoneSerializers.uInt64().serialize(value.assetIndex, g); + if (value.deadline != null) { + g.writeFieldName("deadline"); + StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).serialize(value.deadline, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_assetIndex = null; + FileRequestDeadline f_deadline = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("asset_index".equals(field)) { + f_assetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("deadline".equals(field)) { + f_deadline = StoneSerializers.nullableStruct(FileRequestDeadline.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_assetIndex == null) { + throw new JsonParseException(p, "Required field \"asset_index\" missing."); + } + value = new FileRequestDetails(f_assetIndex, f_deadline); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails.java new file mode 100644 index 000000000..ce765f14f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestReceiveFileDetails.java @@ -0,0 +1,415 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Received files for file request. + */ +public class FileRequestReceiveFileDetails { + // struct team_log.FileRequestReceiveFileDetails (team_log_generated.stone) + + @Nullable + protected final String fileRequestId; + @Nullable + protected final FileRequestDetails fileRequestDetails; + @Nonnull + protected final List submittedFileNames; + @Nullable + protected final String submitterName; + @Nullable + protected final String submitterEmail; + + /** + * Received files for file request. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param submittedFileNames Submitted file names. Must not contain a + * {@code null} item and not be {@code null}. + * @param fileRequestId File request id. Might be missing due to historical + * data gap. Must have length of at least 1 and match pattern "{@code + * [-_0-9a-zA-Z]+}". + * @param fileRequestDetails File request details. Might be missing due to + * historical data gap. + * @param submitterName The name as provided by the submitter. + * @param submitterEmail The email as provided by the submitter. Must have + * length of at most 255. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestReceiveFileDetails(@Nonnull List submittedFileNames, @Nullable String fileRequestId, @Nullable FileRequestDetails fileRequestDetails, @Nullable String submitterName, @Nullable String submitterEmail) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + this.fileRequestDetails = fileRequestDetails; + if (submittedFileNames == null) { + throw new IllegalArgumentException("Required value for 'submittedFileNames' is null"); + } + for (String x : submittedFileNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'submittedFileNames' is null"); + } + } + this.submittedFileNames = submittedFileNames; + this.submitterName = submitterName; + if (submitterEmail != null) { + if (submitterEmail.length() > 255) { + throw new IllegalArgumentException("String 'submitterEmail' is longer than 255"); + } + } + this.submitterEmail = submitterEmail; + } + + /** + * Received files for file request. + * + *

The default values for unset fields will be used.

+ * + * @param submittedFileNames Submitted file names. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestReceiveFileDetails(@Nonnull List submittedFileNames) { + this(submittedFileNames, null, null, null, null); + } + + /** + * Submitted file names. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSubmittedFileNames() { + return submittedFileNames; + } + + /** + * File request id. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileRequestId() { + return fileRequestId; + } + + /** + * File request details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestDetails getFileRequestDetails() { + return fileRequestDetails; + } + + /** + * The name as provided by the submitter. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSubmitterName() { + return submitterName; + } + + /** + * The email as provided by the submitter. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSubmitterEmail() { + return submitterEmail; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param submittedFileNames Submitted file names. Must not contain a + * {@code null} item and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List submittedFileNames) { + return new Builder(submittedFileNames); + } + + /** + * Builder for {@link FileRequestReceiveFileDetails}. + */ + public static class Builder { + protected final List submittedFileNames; + + protected String fileRequestId; + protected FileRequestDetails fileRequestDetails; + protected String submitterName; + protected String submitterEmail; + + protected Builder(List submittedFileNames) { + if (submittedFileNames == null) { + throw new IllegalArgumentException("Required value for 'submittedFileNames' is null"); + } + for (String x : submittedFileNames) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'submittedFileNames' is null"); + } + } + this.submittedFileNames = submittedFileNames; + this.fileRequestId = null; + this.fileRequestDetails = null; + this.submitterName = null; + this.submitterEmail = null; + } + + /** + * Set value for optional field. + * + * @param fileRequestId File request id. Might be missing due to + * historical data gap. Must have length of at least 1 and match + * pattern "{@code [-_0-9a-zA-Z]+}". + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFileRequestId(String fileRequestId) { + if (fileRequestId != null) { + if (fileRequestId.length() < 1) { + throw new IllegalArgumentException("String 'fileRequestId' is shorter than 1"); + } + if (!java.util.regex.Pattern.matches("[-_0-9a-zA-Z]+", fileRequestId)) { + throw new IllegalArgumentException("String 'fileRequestId' does not match pattern"); + } + } + this.fileRequestId = fileRequestId; + return this; + } + + /** + * Set value for optional field. + * + * @param fileRequestDetails File request details. Might be missing due + * to historical data gap. + * + * @return this builder + */ + public Builder withFileRequestDetails(FileRequestDetails fileRequestDetails) { + this.fileRequestDetails = fileRequestDetails; + return this; + } + + /** + * Set value for optional field. + * + * @param submitterName The name as provided by the submitter. + * + * @return this builder + */ + public Builder withSubmitterName(String submitterName) { + this.submitterName = submitterName; + return this; + } + + /** + * Set value for optional field. + * + * @param submitterEmail The email as provided by the submitter. Must + * have length of at most 255. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withSubmitterEmail(String submitterEmail) { + if (submitterEmail != null) { + if (submitterEmail.length() > 255) { + throw new IllegalArgumentException("String 'submitterEmail' is longer than 255"); + } + } + this.submitterEmail = submitterEmail; + return this; + } + + /** + * Builds an instance of {@link FileRequestReceiveFileDetails} + * configured with this builder's values + * + * @return new instance of {@link FileRequestReceiveFileDetails} + */ + public FileRequestReceiveFileDetails build() { + return new FileRequestReceiveFileDetails(submittedFileNames, fileRequestId, fileRequestDetails, submitterName, submitterEmail); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileRequestId, + this.fileRequestDetails, + this.submittedFileNames, + this.submitterName, + this.submitterEmail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestReceiveFileDetails other = (FileRequestReceiveFileDetails) obj; + return ((this.submittedFileNames == other.submittedFileNames) || (this.submittedFileNames.equals(other.submittedFileNames))) + && ((this.fileRequestId == other.fileRequestId) || (this.fileRequestId != null && this.fileRequestId.equals(other.fileRequestId))) + && ((this.fileRequestDetails == other.fileRequestDetails) || (this.fileRequestDetails != null && this.fileRequestDetails.equals(other.fileRequestDetails))) + && ((this.submitterName == other.submitterName) || (this.submitterName != null && this.submitterName.equals(other.submitterName))) + && ((this.submitterEmail == other.submitterEmail) || (this.submitterEmail != null && this.submitterEmail.equals(other.submitterEmail))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestReceiveFileDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("submitted_file_names"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.submittedFileNames, g); + if (value.fileRequestId != null) { + g.writeFieldName("file_request_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileRequestId, g); + } + if (value.fileRequestDetails != null) { + g.writeFieldName("file_request_details"); + StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).serialize(value.fileRequestDetails, g); + } + if (value.submitterName != null) { + g.writeFieldName("submitter_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.submitterName, g); + } + if (value.submitterEmail != null) { + g.writeFieldName("submitter_email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.submitterEmail, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestReceiveFileDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestReceiveFileDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_submittedFileNames = null; + String f_fileRequestId = null; + FileRequestDetails f_fileRequestDetails = null; + String f_submitterName = null; + String f_submitterEmail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("submitted_file_names".equals(field)) { + f_submittedFileNames = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("file_request_id".equals(field)) { + f_fileRequestId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_request_details".equals(field)) { + f_fileRequestDetails = StoneSerializers.nullableStruct(FileRequestDetails.Serializer.INSTANCE).deserialize(p); + } + else if ("submitter_name".equals(field)) { + f_submitterName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("submitter_email".equals(field)) { + f_submitterEmail = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_submittedFileNames == null) { + throw new JsonParseException(p, "Required field \"submitted_file_names\" missing."); + } + value = new FileRequestReceiveFileDetails(f_submittedFileNames, f_fileRequestId, f_fileRequestDetails, f_submitterName, f_submitterEmail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestReceiveFileType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestReceiveFileType.java new file mode 100644 index 000000000..345692669 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestReceiveFileType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestReceiveFileType { + // struct team_log.FileRequestReceiveFileType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestReceiveFileType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestReceiveFileType other = (FileRequestReceiveFileType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestReceiveFileType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestReceiveFileType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestReceiveFileType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestReceiveFileType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsChangePolicyDetails.java new file mode 100644 index 000000000..956edaba9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsChangePolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled file requests. + */ +public class FileRequestsChangePolicyDetails { + // struct team_log.FileRequestsChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final FileRequestsPolicy newValue; + @Nullable + protected final FileRequestsPolicy previousValue; + + /** + * Enabled/disabled file requests. + * + * @param newValue New file requests policy. Must not be {@code null}. + * @param previousValue Previous file requests policy. Might be missing due + * to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestsChangePolicyDetails(@Nonnull FileRequestsPolicy newValue, @Nullable FileRequestsPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled file requests. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New file requests policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestsChangePolicyDetails(@Nonnull FileRequestsPolicy newValue) { + this(newValue, null); + } + + /** + * New file requests policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileRequestsPolicy getNewValue() { + return newValue; + } + + /** + * Previous file requests policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FileRequestsPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestsChangePolicyDetails other = (FileRequestsChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestsChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + FileRequestsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(FileRequestsPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestsChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestsChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileRequestsPolicy f_newValue = null; + FileRequestsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = FileRequestsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(FileRequestsPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new FileRequestsChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsChangePolicyType.java new file mode 100644 index 000000000..0d0fb0fb4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestsChangePolicyType { + // struct team_log.FileRequestsChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestsChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestsChangePolicyType other = (FileRequestsChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestsChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestsChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestsChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestsChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledDetails.java new file mode 100644 index 000000000..f98da4e2a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Enabled file request emails for everyone. + */ +public class FileRequestsEmailsEnabledDetails { + // struct team_log.FileRequestsEmailsEnabledDetails (team_log_generated.stone) + + + /** + * Enabled file request emails for everyone. + */ + public FileRequestsEmailsEnabledDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestsEmailsEnabledDetails other = (FileRequestsEmailsEnabledDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestsEmailsEnabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestsEmailsEnabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestsEmailsEnabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileRequestsEmailsEnabledDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledType.java new file mode 100644 index 000000000..0f8fc961e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsEnabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestsEmailsEnabledType { + // struct team_log.FileRequestsEmailsEnabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestsEmailsEnabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestsEmailsEnabledType other = (FileRequestsEmailsEnabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestsEmailsEnabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestsEmailsEnabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestsEmailsEnabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestsEmailsEnabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyDetails.java new file mode 100644 index 000000000..489007f55 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Enabled file request emails for team. + */ +public class FileRequestsEmailsRestrictedToTeamOnlyDetails { + // struct team_log.FileRequestsEmailsRestrictedToTeamOnlyDetails (team_log_generated.stone) + + + /** + * Enabled file request emails for team. + */ + public FileRequestsEmailsRestrictedToTeamOnlyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestsEmailsRestrictedToTeamOnlyDetails other = (FileRequestsEmailsRestrictedToTeamOnlyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestsEmailsRestrictedToTeamOnlyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestsEmailsRestrictedToTeamOnlyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestsEmailsRestrictedToTeamOnlyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileRequestsEmailsRestrictedToTeamOnlyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyType.java new file mode 100644 index 000000000..adcc368ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsEmailsRestrictedToTeamOnlyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRequestsEmailsRestrictedToTeamOnlyType { + // struct team_log.FileRequestsEmailsRestrictedToTeamOnlyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRequestsEmailsRestrictedToTeamOnlyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRequestsEmailsRestrictedToTeamOnlyType other = (FileRequestsEmailsRestrictedToTeamOnlyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestsEmailsRestrictedToTeamOnlyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRequestsEmailsRestrictedToTeamOnlyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRequestsEmailsRestrictedToTeamOnlyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRequestsEmailsRestrictedToTeamOnlyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsPolicy.java new file mode 100644 index 000000000..02933d3d9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRequestsPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * File requests policy + */ +public enum FileRequestsPolicy { + // union team_log.FileRequestsPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRequestsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileRequestsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + FileRequestsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = FileRequestsPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = FileRequestsPolicy.ENABLED; + } + else { + value = FileRequestsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileResolveCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileResolveCommentDetails.java new file mode 100644 index 000000000..2d03412a1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileResolveCommentDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Resolved file comment. + */ +public class FileResolveCommentDetails { + // struct team_log.FileResolveCommentDetails (team_log_generated.stone) + + @Nullable + protected final String commentText; + + /** + * Resolved file comment. + * + * @param commentText Comment text. + */ + public FileResolveCommentDetails(@Nullable String commentText) { + this.commentText = commentText; + } + + /** + * Resolved file comment. + * + *

The default values for unset fields will be used.

+ */ + public FileResolveCommentDetails() { + this(null); + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileResolveCommentDetails other = (FileResolveCommentDetails) obj; + return (this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileResolveCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileResolveCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileResolveCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileResolveCommentDetails(f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileResolveCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileResolveCommentType.java new file mode 100644 index 000000000..cc0df5835 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileResolveCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileResolveCommentType { + // struct team_log.FileResolveCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileResolveCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileResolveCommentType other = (FileResolveCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileResolveCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileResolveCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileResolveCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileResolveCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRestoreDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRestoreDetails.java new file mode 100644 index 000000000..2bae520f8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRestoreDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Restored deleted files and/or folders. + */ +public class FileRestoreDetails { + // struct team_log.FileRestoreDetails (team_log_generated.stone) + + + /** + * Restored deleted files and/or folders. + */ + public FileRestoreDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRestoreDetails other = (FileRestoreDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRestoreDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRestoreDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRestoreDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileRestoreDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRestoreType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRestoreType.java new file mode 100644 index 000000000..06470de59 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRestoreType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRestoreType { + // struct team_log.FileRestoreType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRestoreType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRestoreType other = (FileRestoreType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRestoreType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRestoreType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRestoreType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRestoreType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRevertDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRevertDetails.java new file mode 100644 index 000000000..28b85c3fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRevertDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Reverted files to previous version. + */ +public class FileRevertDetails { + // struct team_log.FileRevertDetails (team_log_generated.stone) + + + /** + * Reverted files to previous version. + */ + public FileRevertDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRevertDetails other = (FileRevertDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRevertDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRevertDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRevertDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileRevertDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRevertType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRevertType.java new file mode 100644 index 000000000..7135b51ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRevertType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRevertType { + // struct team_log.FileRevertType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRevertType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRevertType other = (FileRevertType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRevertType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRevertType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRevertType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRevertType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRollbackChangesDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRollbackChangesDetails.java new file mode 100644 index 000000000..c8c6e4a14 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRollbackChangesDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Rolled back file actions. + */ +public class FileRollbackChangesDetails { + // struct team_log.FileRollbackChangesDetails (team_log_generated.stone) + + + /** + * Rolled back file actions. + */ + public FileRollbackChangesDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRollbackChangesDetails other = (FileRollbackChangesDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRollbackChangesDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRollbackChangesDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRollbackChangesDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new FileRollbackChangesDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRollbackChangesType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRollbackChangesType.java new file mode 100644 index 000000000..668eecb11 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileRollbackChangesType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileRollbackChangesType { + // struct team_log.FileRollbackChangesType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileRollbackChangesType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileRollbackChangesType other = (FileRollbackChangesType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileRollbackChangesType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileRollbackChangesType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileRollbackChangesType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileRollbackChangesType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileSaveCopyReferenceDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileSaveCopyReferenceDetails.java new file mode 100644 index 000000000..873fedba4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileSaveCopyReferenceDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Saved file/folder using copy reference. + */ +public class FileSaveCopyReferenceDetails { + // struct team_log.FileSaveCopyReferenceDetails (team_log_generated.stone) + + @Nonnull + protected final List relocateActionDetails; + + /** + * Saved file/folder using copy reference. + * + * @param relocateActionDetails Relocate action details. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileSaveCopyReferenceDetails(@Nonnull List relocateActionDetails) { + if (relocateActionDetails == null) { + throw new IllegalArgumentException("Required value for 'relocateActionDetails' is null"); + } + for (RelocateAssetReferencesLogInfo x : relocateActionDetails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'relocateActionDetails' is null"); + } + } + this.relocateActionDetails = relocateActionDetails; + } + + /** + * Relocate action details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRelocateActionDetails() { + return relocateActionDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.relocateActionDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileSaveCopyReferenceDetails other = (FileSaveCopyReferenceDetails) obj; + return (this.relocateActionDetails == other.relocateActionDetails) || (this.relocateActionDetails.equals(other.relocateActionDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileSaveCopyReferenceDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("relocate_action_details"); + StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).serialize(value.relocateActionDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileSaveCopyReferenceDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileSaveCopyReferenceDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_relocateActionDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("relocate_action_details".equals(field)) { + f_relocateActionDetails = StoneSerializers.list(RelocateAssetReferencesLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_relocateActionDetails == null) { + throw new JsonParseException(p, "Required field \"relocate_action_details\" missing."); + } + value = new FileSaveCopyReferenceDetails(f_relocateActionDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileSaveCopyReferenceType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileSaveCopyReferenceType.java new file mode 100644 index 000000000..bd0be5646 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileSaveCopyReferenceType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileSaveCopyReferenceType { + // struct team_log.FileSaveCopyReferenceType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileSaveCopyReferenceType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileSaveCopyReferenceType other = (FileSaveCopyReferenceType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileSaveCopyReferenceType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileSaveCopyReferenceType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileSaveCopyReferenceType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileSaveCopyReferenceType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersFileAddDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersFileAddDetails.java new file mode 100644 index 000000000..98aa52c3f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersFileAddDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Transfer files added. + */ +public class FileTransfersFileAddDetails { + // struct team_log.FileTransfersFileAddDetails (team_log_generated.stone) + + @Nonnull + protected final String fileTransferId; + + /** + * Transfer files added. + * + * @param fileTransferId Transfer id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersFileAddDetails(@Nonnull String fileTransferId) { + if (fileTransferId == null) { + throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); + } + this.fileTransferId = fileTransferId; + } + + /** + * Transfer id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFileTransferId() { + return fileTransferId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileTransferId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersFileAddDetails other = (FileTransfersFileAddDetails) obj; + return (this.fileTransferId == other.fileTransferId) || (this.fileTransferId.equals(other.fileTransferId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersFileAddDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_transfer_id"); + StoneSerializers.string().serialize(value.fileTransferId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersFileAddDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersFileAddDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileTransferId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_transfer_id".equals(field)) { + f_fileTransferId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileTransferId == null) { + throw new JsonParseException(p, "Required field \"file_transfer_id\" missing."); + } + value = new FileTransfersFileAddDetails(f_fileTransferId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersFileAddType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersFileAddType.java new file mode 100644 index 000000000..0a229d642 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersFileAddType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileTransfersFileAddType { + // struct team_log.FileTransfersFileAddType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersFileAddType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersFileAddType other = (FileTransfersFileAddType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersFileAddType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersFileAddType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersFileAddType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileTransfersFileAddType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicy.java new file mode 100644 index 000000000..65a5d91c5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * File transfers policy + */ +public enum FileTransfersPolicy { + // union team_log.FileTransfersPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileTransfersPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + FileTransfersPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = FileTransfersPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = FileTransfersPolicy.ENABLED; + } + else { + value = FileTransfersPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedDetails.java new file mode 100644 index 000000000..9633b6d63 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed file transfers policy for team. + */ +public class FileTransfersPolicyChangedDetails { + // struct team_log.FileTransfersPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final FileTransfersPolicy newValue; + @Nonnull + protected final FileTransfersPolicy previousValue; + + /** + * Changed file transfers policy for team. + * + * @param newValue New file transfers policy. Must not be {@code null}. + * @param previousValue Previous file transfers policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersPolicyChangedDetails(@Nonnull FileTransfersPolicy newValue, @Nonnull FileTransfersPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New file transfers policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileTransfersPolicy getNewValue() { + return newValue; + } + + /** + * Previous file transfers policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FileTransfersPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersPolicyChangedDetails other = (FileTransfersPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + FileTransfersPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + FileTransfersPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FileTransfersPolicy f_newValue = null; + FileTransfersPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = FileTransfersPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = FileTransfersPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new FileTransfersPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedType.java new file mode 100644 index 000000000..a5beb1bd2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileTransfersPolicyChangedType { + // struct team_log.FileTransfersPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersPolicyChangedType other = (FileTransfersPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileTransfersPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteDetails.java new file mode 100644 index 000000000..7dfff2473 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Deleted transfer. + */ +public class FileTransfersTransferDeleteDetails { + // struct team_log.FileTransfersTransferDeleteDetails (team_log_generated.stone) + + @Nonnull + protected final String fileTransferId; + + /** + * Deleted transfer. + * + * @param fileTransferId Transfer id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferDeleteDetails(@Nonnull String fileTransferId) { + if (fileTransferId == null) { + throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); + } + this.fileTransferId = fileTransferId; + } + + /** + * Transfer id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFileTransferId() { + return fileTransferId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileTransferId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferDeleteDetails other = (FileTransfersTransferDeleteDetails) obj; + return (this.fileTransferId == other.fileTransferId) || (this.fileTransferId.equals(other.fileTransferId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_transfer_id"); + StoneSerializers.string().serialize(value.fileTransferId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileTransferId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_transfer_id".equals(field)) { + f_fileTransferId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileTransferId == null) { + throw new JsonParseException(p, "Required field \"file_transfer_id\" missing."); + } + value = new FileTransfersTransferDeleteDetails(f_fileTransferId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteType.java new file mode 100644 index 000000000..2c9be7ef2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileTransfersTransferDeleteType { + // struct team_log.FileTransfersTransferDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferDeleteType other = (FileTransfersTransferDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileTransfersTransferDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadDetails.java new file mode 100644 index 000000000..92746b12c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Transfer downloaded. + */ +public class FileTransfersTransferDownloadDetails { + // struct team_log.FileTransfersTransferDownloadDetails (team_log_generated.stone) + + @Nonnull + protected final String fileTransferId; + + /** + * Transfer downloaded. + * + * @param fileTransferId Transfer id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferDownloadDetails(@Nonnull String fileTransferId) { + if (fileTransferId == null) { + throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); + } + this.fileTransferId = fileTransferId; + } + + /** + * Transfer id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFileTransferId() { + return fileTransferId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileTransferId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferDownloadDetails other = (FileTransfersTransferDownloadDetails) obj; + return (this.fileTransferId == other.fileTransferId) || (this.fileTransferId.equals(other.fileTransferId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferDownloadDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_transfer_id"); + StoneSerializers.string().serialize(value.fileTransferId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferDownloadDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferDownloadDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileTransferId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_transfer_id".equals(field)) { + f_fileTransferId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileTransferId == null) { + throw new JsonParseException(p, "Required field \"file_transfer_id\" missing."); + } + value = new FileTransfersTransferDownloadDetails(f_fileTransferId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadType.java new file mode 100644 index 000000000..9a6bce31a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferDownloadType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileTransfersTransferDownloadType { + // struct team_log.FileTransfersTransferDownloadType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferDownloadType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferDownloadType other = (FileTransfersTransferDownloadType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferDownloadType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferDownloadType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferDownloadType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileTransfersTransferDownloadType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferSendDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferSendDetails.java new file mode 100644 index 000000000..1e2c99581 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferSendDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Sent transfer. + */ +public class FileTransfersTransferSendDetails { + // struct team_log.FileTransfersTransferSendDetails (team_log_generated.stone) + + @Nonnull + protected final String fileTransferId; + + /** + * Sent transfer. + * + * @param fileTransferId Transfer id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferSendDetails(@Nonnull String fileTransferId) { + if (fileTransferId == null) { + throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); + } + this.fileTransferId = fileTransferId; + } + + /** + * Transfer id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFileTransferId() { + return fileTransferId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileTransferId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferSendDetails other = (FileTransfersTransferSendDetails) obj; + return (this.fileTransferId == other.fileTransferId) || (this.fileTransferId.equals(other.fileTransferId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferSendDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_transfer_id"); + StoneSerializers.string().serialize(value.fileTransferId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferSendDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferSendDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileTransferId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_transfer_id".equals(field)) { + f_fileTransferId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileTransferId == null) { + throw new JsonParseException(p, "Required field \"file_transfer_id\" missing."); + } + value = new FileTransfersTransferSendDetails(f_fileTransferId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferSendType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferSendType.java new file mode 100644 index 000000000..2b9b80e55 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferSendType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileTransfersTransferSendType { + // struct team_log.FileTransfersTransferSendType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferSendType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferSendType other = (FileTransfersTransferSendType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferSendType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferSendType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferSendType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileTransfersTransferSendType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferViewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferViewDetails.java new file mode 100644 index 000000000..311ddcdae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferViewDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Viewed transfer. + */ +public class FileTransfersTransferViewDetails { + // struct team_log.FileTransfersTransferViewDetails (team_log_generated.stone) + + @Nonnull + protected final String fileTransferId; + + /** + * Viewed transfer. + * + * @param fileTransferId Transfer id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferViewDetails(@Nonnull String fileTransferId) { + if (fileTransferId == null) { + throw new IllegalArgumentException("Required value for 'fileTransferId' is null"); + } + this.fileTransferId = fileTransferId; + } + + /** + * Transfer id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFileTransferId() { + return fileTransferId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileTransferId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferViewDetails other = (FileTransfersTransferViewDetails) obj; + return (this.fileTransferId == other.fileTransferId) || (this.fileTransferId.equals(other.fileTransferId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferViewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("file_transfer_id"); + StoneSerializers.string().serialize(value.fileTransferId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferViewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferViewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_fileTransferId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("file_transfer_id".equals(field)) { + f_fileTransferId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_fileTransferId == null) { + throw new JsonParseException(p, "Required field \"file_transfer_id\" missing."); + } + value = new FileTransfersTransferViewDetails(f_fileTransferId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferViewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferViewType.java new file mode 100644 index 000000000..9b34a146a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileTransfersTransferViewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileTransfersTransferViewType { + // struct team_log.FileTransfersTransferViewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileTransfersTransferViewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileTransfersTransferViewType other = (FileTransfersTransferViewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileTransfersTransferViewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileTransfersTransferViewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileTransfersTransferViewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileTransfersTransferViewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnlikeCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnlikeCommentDetails.java new file mode 100644 index 000000000..d44bae1db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnlikeCommentDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Unliked file comment. + */ +public class FileUnlikeCommentDetails { + // struct team_log.FileUnlikeCommentDetails (team_log_generated.stone) + + @Nullable + protected final String commentText; + + /** + * Unliked file comment. + * + * @param commentText Comment text. + */ + public FileUnlikeCommentDetails(@Nullable String commentText) { + this.commentText = commentText; + } + + /** + * Unliked file comment. + * + *

The default values for unset fields will be used.

+ */ + public FileUnlikeCommentDetails() { + this(null); + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileUnlikeCommentDetails other = (FileUnlikeCommentDetails) obj; + return (this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileUnlikeCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileUnlikeCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileUnlikeCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileUnlikeCommentDetails(f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnlikeCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnlikeCommentType.java new file mode 100644 index 000000000..b276d418f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnlikeCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileUnlikeCommentType { + // struct team_log.FileUnlikeCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileUnlikeCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileUnlikeCommentType other = (FileUnlikeCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileUnlikeCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileUnlikeCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileUnlikeCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileUnlikeCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnresolveCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnresolveCommentDetails.java new file mode 100644 index 000000000..7552bf9e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnresolveCommentDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Unresolved file comment. + */ +public class FileUnresolveCommentDetails { + // struct team_log.FileUnresolveCommentDetails (team_log_generated.stone) + + @Nullable + protected final String commentText; + + /** + * Unresolved file comment. + * + * @param commentText Comment text. + */ + public FileUnresolveCommentDetails(@Nullable String commentText) { + this.commentText = commentText; + } + + /** + * Unresolved file comment. + * + *

The default values for unset fields will be used.

+ */ + public FileUnresolveCommentDetails() { + this(null); + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileUnresolveCommentDetails other = (FileUnresolveCommentDetails) obj; + return (this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileUnresolveCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileUnresolveCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileUnresolveCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new FileUnresolveCommentDetails(f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnresolveCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnresolveCommentType.java new file mode 100644 index 000000000..24541ce0d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FileUnresolveCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FileUnresolveCommentType { + // struct team_log.FileUnresolveCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FileUnresolveCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FileUnresolveCommentType other = (FileUnresolveCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileUnresolveCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FileUnresolveCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FileUnresolveCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FileUnresolveCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy.java new file mode 100644 index 000000000..76abee64a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicy.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether applying link restrictions on all team owned + * folders + */ +public enum FolderLinkRestrictionPolicy { + // union team_log.FolderLinkRestrictionPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderLinkRestrictionPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FolderLinkRestrictionPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + FolderLinkRestrictionPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = FolderLinkRestrictionPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = FolderLinkRestrictionPolicy.ENABLED; + } + else { + value = FolderLinkRestrictionPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedDetails.java new file mode 100644 index 000000000..61b90167c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed folder link restrictions policy for team. + */ +public class FolderLinkRestrictionPolicyChangedDetails { + // struct team_log.FolderLinkRestrictionPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final FolderLinkRestrictionPolicy newValue; + @Nonnull + protected final FolderLinkRestrictionPolicy previousValue; + + /** + * Changed folder link restrictions policy for team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderLinkRestrictionPolicyChangedDetails(@Nonnull FolderLinkRestrictionPolicy newValue, @Nonnull FolderLinkRestrictionPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderLinkRestrictionPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FolderLinkRestrictionPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderLinkRestrictionPolicyChangedDetails other = (FolderLinkRestrictionPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderLinkRestrictionPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + FolderLinkRestrictionPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + FolderLinkRestrictionPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderLinkRestrictionPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderLinkRestrictionPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FolderLinkRestrictionPolicy f_newValue = null; + FolderLinkRestrictionPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = FolderLinkRestrictionPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = FolderLinkRestrictionPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new FolderLinkRestrictionPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedType.java new file mode 100644 index 000000000..92aa83aae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLinkRestrictionPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FolderLinkRestrictionPolicyChangedType { + // struct team_log.FolderLinkRestrictionPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderLinkRestrictionPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderLinkRestrictionPolicyChangedType other = (FolderLinkRestrictionPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderLinkRestrictionPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderLinkRestrictionPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderLinkRestrictionPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FolderLinkRestrictionPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLogInfo.java new file mode 100644 index 000000000..3eaea34e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderLogInfo.java @@ -0,0 +1,334 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Folder's logged information. + */ +public class FolderLogInfo extends FileOrFolderLogInfo { + // struct team_log.FolderLogInfo (team_log_generated.stone) + + @Nullable + protected final Long fileCount; + + /** + * Folder's logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param path Path relative to event context. Must not be {@code null}. + * @param displayName Display name. + * @param fileId Unique ID. + * @param fileSize File or folder size in bytes. + * @param fileCount Number of files within the folder. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderLogInfo(@Nonnull PathLogInfo path, @Nullable String displayName, @Nullable String fileId, @Nullable Long fileSize, @Nullable Long fileCount) { + super(path, displayName, fileId, fileSize); + this.fileCount = fileCount; + } + + /** + * Folder's logged information. + * + *

The default values for unset fields will be used.

+ * + * @param path Path relative to event context. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderLogInfo(@Nonnull PathLogInfo path) { + this(path, null, null, null, null); + } + + /** + * Path relative to event context. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PathLogInfo getPath() { + return path; + } + + /** + * Display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileId() { + return fileId; + } + + /** + * File or folder size in bytes. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getFileSize() { + return fileSize; + } + + /** + * Number of files within the folder. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getFileCount() { + return fileCount; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param path Path relative to event context. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(PathLogInfo path) { + return new Builder(path); + } + + /** + * Builder for {@link FolderLogInfo}. + */ + public static class Builder extends FileOrFolderLogInfo.Builder { + + protected Long fileCount; + + protected Builder(PathLogInfo path) { + super(path); + this.fileCount = null; + } + + /** + * Set value for optional field. + * + * @param fileCount Number of files within the folder. + * + * @return this builder + */ + public Builder withFileCount(Long fileCount) { + this.fileCount = fileCount; + return this; + } + + /** + * Set value for optional field. + * + * @param displayName Display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Set value for optional field. + * + * @param fileId Unique ID. + * + * @return this builder + */ + public Builder withFileId(String fileId) { + super.withFileId(fileId); + return this; + } + + /** + * Set value for optional field. + * + * @param fileSize File or folder size in bytes. + * + * @return this builder + */ + public Builder withFileSize(Long fileSize) { + super.withFileSize(fileSize); + return this; + } + + /** + * Builds an instance of {@link FolderLogInfo} configured with this + * builder's values + * + * @return new instance of {@link FolderLogInfo} + */ + public FolderLogInfo build() { + return new FolderLogInfo(path, displayName, fileId, fileSize, fileCount); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.fileCount + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderLogInfo other = (FolderLogInfo) obj; + return ((this.path == other.path) || (this.path.equals(other.path))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.fileId == other.fileId) || (this.fileId != null && this.fileId.equals(other.fileId))) + && ((this.fileSize == other.fileSize) || (this.fileSize != null && this.fileSize.equals(other.fileSize))) + && ((this.fileCount == other.fileCount) || (this.fileCount != null && this.fileCount.equals(other.fileCount))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("path"); + PathLogInfo.Serializer.INSTANCE.serialize(value.path, g); + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.fileId != null) { + g.writeFieldName("file_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileId, g); + } + if (value.fileSize != null) { + g.writeFieldName("file_size"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.fileSize, g); + } + if (value.fileCount != null) { + g.writeFieldName("file_count"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.fileCount, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PathLogInfo f_path = null; + String f_displayName = null; + String f_fileId = null; + Long f_fileSize = null; + Long f_fileCount = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("path".equals(field)) { + f_path = PathLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_id".equals(field)) { + f_fileId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_size".equals(field)) { + f_fileSize = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else if ("file_count".equals(field)) { + f_fileCount = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_path == null) { + throw new JsonParseException(p, "Required field \"path\" missing."); + } + value = new FolderLogInfo(f_path, f_displayName, f_fileId, f_fileSize, f_fileCount); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedDetails.java new file mode 100644 index 000000000..11be040a5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedDetails.java @@ -0,0 +1,142 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Updated folder overview. + */ +public class FolderOverviewDescriptionChangedDetails { + // struct team_log.FolderOverviewDescriptionChangedDetails (team_log_generated.stone) + + protected final long folderOverviewLocationAsset; + + /** + * Updated folder overview. + * + * @param folderOverviewLocationAsset Folder Overview location position in + * the Assets list. + */ + public FolderOverviewDescriptionChangedDetails(long folderOverviewLocationAsset) { + this.folderOverviewLocationAsset = folderOverviewLocationAsset; + } + + /** + * Folder Overview location position in the Assets list. + * + * @return value for this field. + */ + public long getFolderOverviewLocationAsset() { + return folderOverviewLocationAsset; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.folderOverviewLocationAsset + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderOverviewDescriptionChangedDetails other = (FolderOverviewDescriptionChangedDetails) obj; + return this.folderOverviewLocationAsset == other.folderOverviewLocationAsset; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderOverviewDescriptionChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("folder_overview_location_asset"); + StoneSerializers.uInt64().serialize(value.folderOverviewLocationAsset, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderOverviewDescriptionChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderOverviewDescriptionChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_folderOverviewLocationAsset = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("folder_overview_location_asset".equals(field)) { + f_folderOverviewLocationAsset = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_folderOverviewLocationAsset == null) { + throw new JsonParseException(p, "Required field \"folder_overview_location_asset\" missing."); + } + value = new FolderOverviewDescriptionChangedDetails(f_folderOverviewLocationAsset); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedType.java new file mode 100644 index 000000000..439134138 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewDescriptionChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FolderOverviewDescriptionChangedType { + // struct team_log.FolderOverviewDescriptionChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderOverviewDescriptionChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderOverviewDescriptionChangedType other = (FolderOverviewDescriptionChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderOverviewDescriptionChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderOverviewDescriptionChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderOverviewDescriptionChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FolderOverviewDescriptionChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedDetails.java new file mode 100644 index 000000000..ebcbca35c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedDetails.java @@ -0,0 +1,183 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Pinned item to folder overview. + */ +public class FolderOverviewItemPinnedDetails { + // struct team_log.FolderOverviewItemPinnedDetails (team_log_generated.stone) + + protected final long folderOverviewLocationAsset; + @Nonnull + protected final List pinnedItemsAssetIndices; + + /** + * Pinned item to folder overview. + * + * @param folderOverviewLocationAsset Folder Overview location position in + * the Assets list. + * @param pinnedItemsAssetIndices Pinned items positions in the Assets + * list. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderOverviewItemPinnedDetails(long folderOverviewLocationAsset, @Nonnull List pinnedItemsAssetIndices) { + this.folderOverviewLocationAsset = folderOverviewLocationAsset; + if (pinnedItemsAssetIndices == null) { + throw new IllegalArgumentException("Required value for 'pinnedItemsAssetIndices' is null"); + } + for (Long x : pinnedItemsAssetIndices) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'pinnedItemsAssetIndices' is null"); + } + } + this.pinnedItemsAssetIndices = pinnedItemsAssetIndices; + } + + /** + * Folder Overview location position in the Assets list. + * + * @return value for this field. + */ + public long getFolderOverviewLocationAsset() { + return folderOverviewLocationAsset; + } + + /** + * Pinned items positions in the Assets list. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPinnedItemsAssetIndices() { + return pinnedItemsAssetIndices; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.folderOverviewLocationAsset, + this.pinnedItemsAssetIndices + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderOverviewItemPinnedDetails other = (FolderOverviewItemPinnedDetails) obj; + return (this.folderOverviewLocationAsset == other.folderOverviewLocationAsset) + && ((this.pinnedItemsAssetIndices == other.pinnedItemsAssetIndices) || (this.pinnedItemsAssetIndices.equals(other.pinnedItemsAssetIndices))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderOverviewItemPinnedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("folder_overview_location_asset"); + StoneSerializers.uInt64().serialize(value.folderOverviewLocationAsset, g); + g.writeFieldName("pinned_items_asset_indices"); + StoneSerializers.list(StoneSerializers.uInt64()).serialize(value.pinnedItemsAssetIndices, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderOverviewItemPinnedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderOverviewItemPinnedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_folderOverviewLocationAsset = null; + List f_pinnedItemsAssetIndices = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("folder_overview_location_asset".equals(field)) { + f_folderOverviewLocationAsset = StoneSerializers.uInt64().deserialize(p); + } + else if ("pinned_items_asset_indices".equals(field)) { + f_pinnedItemsAssetIndices = StoneSerializers.list(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_folderOverviewLocationAsset == null) { + throw new JsonParseException(p, "Required field \"folder_overview_location_asset\" missing."); + } + if (f_pinnedItemsAssetIndices == null) { + throw new JsonParseException(p, "Required field \"pinned_items_asset_indices\" missing."); + } + value = new FolderOverviewItemPinnedDetails(f_folderOverviewLocationAsset, f_pinnedItemsAssetIndices); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedType.java new file mode 100644 index 000000000..a8f14ac5a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemPinnedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FolderOverviewItemPinnedType { + // struct team_log.FolderOverviewItemPinnedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderOverviewItemPinnedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderOverviewItemPinnedType other = (FolderOverviewItemPinnedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderOverviewItemPinnedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderOverviewItemPinnedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderOverviewItemPinnedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FolderOverviewItemPinnedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedDetails.java new file mode 100644 index 000000000..6697dd1fb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedDetails.java @@ -0,0 +1,183 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Unpinned item from folder overview. + */ +public class FolderOverviewItemUnpinnedDetails { + // struct team_log.FolderOverviewItemUnpinnedDetails (team_log_generated.stone) + + protected final long folderOverviewLocationAsset; + @Nonnull + protected final List pinnedItemsAssetIndices; + + /** + * Unpinned item from folder overview. + * + * @param folderOverviewLocationAsset Folder Overview location position in + * the Assets list. + * @param pinnedItemsAssetIndices Pinned items positions in the Assets + * list. Must not contain a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderOverviewItemUnpinnedDetails(long folderOverviewLocationAsset, @Nonnull List pinnedItemsAssetIndices) { + this.folderOverviewLocationAsset = folderOverviewLocationAsset; + if (pinnedItemsAssetIndices == null) { + throw new IllegalArgumentException("Required value for 'pinnedItemsAssetIndices' is null"); + } + for (Long x : pinnedItemsAssetIndices) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'pinnedItemsAssetIndices' is null"); + } + } + this.pinnedItemsAssetIndices = pinnedItemsAssetIndices; + } + + /** + * Folder Overview location position in the Assets list. + * + * @return value for this field. + */ + public long getFolderOverviewLocationAsset() { + return folderOverviewLocationAsset; + } + + /** + * Pinned items positions in the Assets list. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getPinnedItemsAssetIndices() { + return pinnedItemsAssetIndices; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.folderOverviewLocationAsset, + this.pinnedItemsAssetIndices + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderOverviewItemUnpinnedDetails other = (FolderOverviewItemUnpinnedDetails) obj; + return (this.folderOverviewLocationAsset == other.folderOverviewLocationAsset) + && ((this.pinnedItemsAssetIndices == other.pinnedItemsAssetIndices) || (this.pinnedItemsAssetIndices.equals(other.pinnedItemsAssetIndices))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderOverviewItemUnpinnedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("folder_overview_location_asset"); + StoneSerializers.uInt64().serialize(value.folderOverviewLocationAsset, g); + g.writeFieldName("pinned_items_asset_indices"); + StoneSerializers.list(StoneSerializers.uInt64()).serialize(value.pinnedItemsAssetIndices, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderOverviewItemUnpinnedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderOverviewItemUnpinnedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_folderOverviewLocationAsset = null; + List f_pinnedItemsAssetIndices = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("folder_overview_location_asset".equals(field)) { + f_folderOverviewLocationAsset = StoneSerializers.uInt64().deserialize(p); + } + else if ("pinned_items_asset_indices".equals(field)) { + f_pinnedItemsAssetIndices = StoneSerializers.list(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_folderOverviewLocationAsset == null) { + throw new JsonParseException(p, "Required field \"folder_overview_location_asset\" missing."); + } + if (f_pinnedItemsAssetIndices == null) { + throw new JsonParseException(p, "Required field \"pinned_items_asset_indices\" missing."); + } + value = new FolderOverviewItemUnpinnedDetails(f_folderOverviewLocationAsset, f_pinnedItemsAssetIndices); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedType.java new file mode 100644 index 000000000..49dd99016 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/FolderOverviewItemUnpinnedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class FolderOverviewItemUnpinnedType { + // struct team_log.FolderOverviewItemUnpinnedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FolderOverviewItemUnpinnedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FolderOverviewItemUnpinnedType other = (FolderOverviewItemUnpinnedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FolderOverviewItemUnpinnedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FolderOverviewItemUnpinnedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FolderOverviewItemUnpinnedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new FolderOverviewItemUnpinnedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GeoLocationLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GeoLocationLogInfo.java new file mode 100644 index 000000000..7b53af588 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GeoLocationLogInfo.java @@ -0,0 +1,323 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Geographic location details. + */ +public class GeoLocationLogInfo { + // struct team_log.GeoLocationLogInfo (team_log_generated.stone) + + @Nullable + protected final String city; + @Nullable + protected final String region; + @Nullable + protected final String country; + @Nonnull + protected final String ipAddress; + + /** + * Geographic location details. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param ipAddress IP address. Must not be {@code null}. + * @param city City name. + * @param region Region name. + * @param country Country code. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GeoLocationLogInfo(@Nonnull String ipAddress, @Nullable String city, @Nullable String region, @Nullable String country) { + this.city = city; + this.region = region; + this.country = country; + if (ipAddress == null) { + throw new IllegalArgumentException("Required value for 'ipAddress' is null"); + } + this.ipAddress = ipAddress; + } + + /** + * Geographic location details. + * + *

The default values for unset fields will be used.

+ * + * @param ipAddress IP address. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GeoLocationLogInfo(@Nonnull String ipAddress) { + this(ipAddress, null, null, null); + } + + /** + * IP address. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getIpAddress() { + return ipAddress; + } + + /** + * City name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCity() { + return city; + } + + /** + * Region name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getRegion() { + return region; + } + + /** + * Country code. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCountry() { + return country; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param ipAddress IP address. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String ipAddress) { + return new Builder(ipAddress); + } + + /** + * Builder for {@link GeoLocationLogInfo}. + */ + public static class Builder { + protected final String ipAddress; + + protected String city; + protected String region; + protected String country; + + protected Builder(String ipAddress) { + if (ipAddress == null) { + throw new IllegalArgumentException("Required value for 'ipAddress' is null"); + } + this.ipAddress = ipAddress; + this.city = null; + this.region = null; + this.country = null; + } + + /** + * Set value for optional field. + * + * @param city City name. + * + * @return this builder + */ + public Builder withCity(String city) { + this.city = city; + return this; + } + + /** + * Set value for optional field. + * + * @param region Region name. + * + * @return this builder + */ + public Builder withRegion(String region) { + this.region = region; + return this; + } + + /** + * Set value for optional field. + * + * @param country Country code. + * + * @return this builder + */ + public Builder withCountry(String country) { + this.country = country; + return this; + } + + /** + * Builds an instance of {@link GeoLocationLogInfo} configured with this + * builder's values + * + * @return new instance of {@link GeoLocationLogInfo} + */ + public GeoLocationLogInfo build() { + return new GeoLocationLogInfo(ipAddress, city, region, country); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.city, + this.region, + this.country, + this.ipAddress + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GeoLocationLogInfo other = (GeoLocationLogInfo) obj; + return ((this.ipAddress == other.ipAddress) || (this.ipAddress.equals(other.ipAddress))) + && ((this.city == other.city) || (this.city != null && this.city.equals(other.city))) + && ((this.region == other.region) || (this.region != null && this.region.equals(other.region))) + && ((this.country == other.country) || (this.country != null && this.country.equals(other.country))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GeoLocationLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("ip_address"); + StoneSerializers.string().serialize(value.ipAddress, g); + if (value.city != null) { + g.writeFieldName("city"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.city, g); + } + if (value.region != null) { + g.writeFieldName("region"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.region, g); + } + if (value.country != null) { + g.writeFieldName("country"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.country, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GeoLocationLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GeoLocationLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_ipAddress = null; + String f_city = null; + String f_region = null; + String f_country = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.string().deserialize(p); + } + else if ("city".equals(field)) { + f_city = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("region".equals(field)) { + f_region = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("country".equals(field)) { + f_country = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_ipAddress == null) { + throw new JsonParseException(p, "Required field \"ip_address\" missing."); + } + value = new GeoLocationLogInfo(f_ipAddress, f_city, f_region, f_country); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetEventsBuilder.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetEventsBuilder.java new file mode 100644 index 000000000..d225e9666 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetEventsBuilder.java @@ -0,0 +1,125 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.teamcommon.TimeRange; + +/** + * The request builder returned by {@link + * DbxTeamTeamLogRequests#getEventsBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class GetEventsBuilder { + private final DbxTeamTeamLogRequests _client; + private final GetTeamEventsArg.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue team_log + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + GetEventsBuilder(DbxTeamTeamLogRequests _client, GetTeamEventsArg.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}.

+ * + * @param limit The maximal number of results to return per call. Note that + * some calls may not return {@link GetTeamEventsArg#getLimit} number of + * events, and may even return no events, even with `has_more` set to + * true. In this case, callers should fetch again using {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}. Must be greater + * than or equal to 1 and be less than or equal to 1000. Defaults to + * {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetEventsBuilder withLimit(Long limit) { + this._builder.withLimit(limit); + return this; + } + + /** + * Set value for optional field. + * + * @param accountId Filter the events by account ID. Return only events + * with this account_id as either Actor, Context, or Participants. Must + * have length of at least 40 and have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetEventsBuilder withAccountId(String accountId) { + this._builder.withAccountId(accountId); + return this; + } + + /** + * Set value for optional field. + * + * @param time Filter by time range. + * + * @return this builder + */ + public GetEventsBuilder withTime(TimeRange time) { + this._builder.withTime(time); + return this; + } + + /** + * Set value for optional field. + * + * @param category Filter the returned events to a single category. Note + * that category shouldn't be provided together with event_type. + * + * @return this builder + */ + public GetEventsBuilder withCategory(EventCategory category) { + this._builder.withCategory(category); + return this; + } + + /** + * Set value for optional field. + * + * @param eventType Filter the returned events to a single event type. Note + * that event_type shouldn't be provided together with category. + * + * @return this builder + */ + public GetEventsBuilder withEventType(EventTypeArg eventType) { + this._builder.withEventType(eventType); + return this; + } + + /** + * Issues the request. + */ + public GetTeamEventsResult start() throws GetTeamEventsErrorException, DbxException { + GetTeamEventsArg arg_ = this._builder.build(); + return _client.getEvents(arg_); + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsArg.java new file mode 100644 index 000000000..9642fb32a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsArg.java @@ -0,0 +1,419 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.TimeRange; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +class GetTeamEventsArg { + // struct team_log.GetTeamEventsArg (team_log.stone) + + protected final long limit; + @Nullable + protected final String accountId; + @Nullable + protected final TimeRange time; + @Nullable + protected final EventCategory category; + @Nullable + protected final EventTypeArg eventType; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param limit The maximal number of results to return per call. Note that + * some calls may not return {@link GetTeamEventsArg#getLimit} number of + * events, and may even return no events, even with `has_more` set to + * true. In this case, callers should fetch again using {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}. Must be greater + * than or equal to 1 and be less than or equal to 1000. + * @param accountId Filter the events by account ID. Return only events + * with this account_id as either Actor, Context, or Participants. Must + * have length of at least 40 and have length of at most 40. + * @param time Filter by time range. + * @param category Filter the returned events to a single category. Note + * that category shouldn't be provided together with event_type. + * @param eventType Filter the returned events to a single event type. Note + * that event_type shouldn't be provided together with category. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTeamEventsArg(long limit, @Nullable String accountId, @Nullable TimeRange time, @Nullable EventCategory category, @Nullable EventTypeArg eventType) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + this.limit = limit; + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + this.time = time; + this.category = category; + this.eventType = eventType; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public GetTeamEventsArg() { + this(1000L, null, null, null, null); + } + + /** + * The maximal number of results to return per call. Note that some calls + * may not return {@link GetTeamEventsArg#getLimit} number of events, and + * may even return no events, even with `has_more` set to true. In this + * case, callers should fetch again using {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}. + * + * @return value for this field, or {@code null} if not present. Defaults to + * 1000L. + */ + public long getLimit() { + return limit; + } + + /** + * Filter the events by account ID. Return only events with this account_id + * as either Actor, Context, or Participants. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * Filter by time range. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TimeRange getTime() { + return time; + } + + /** + * Filter the returned events to a single category. Note that category + * shouldn't be provided together with event_type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public EventCategory getCategory() { + return category; + } + + /** + * Filter the returned events to a single event type. Note that event_type + * shouldn't be provided together with category. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public EventTypeArg getEventType() { + return eventType; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link GetTeamEventsArg}. + */ + public static class Builder { + + protected long limit; + protected String accountId; + protected TimeRange time; + protected EventCategory category; + protected EventTypeArg eventType; + + protected Builder() { + this.limit = 1000L; + this.accountId = null; + this.time = null; + this.category = null; + this.eventType = null; + } + + /** + * Set value for optional field. + * + *

If left unset or set to {@code null}, defaults to {@code 1000L}. + *

+ * + * @param limit The maximal number of results to return per call. Note + * that some calls may not return {@link GetTeamEventsArg#getLimit} + * number of events, and may even return no events, even with + * `has_more` set to true. In this case, callers should fetch again + * using {@link DbxTeamTeamLogRequests#getEventsContinue(String)}. + * Must be greater than or equal to 1 and be less than or equal to + * 1000. Defaults to {@code 1000L} when set to {@code null}. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withLimit(Long limit) { + if (limit < 1L) { + throw new IllegalArgumentException("Number 'limit' is smaller than 1L"); + } + if (limit > 1000L) { + throw new IllegalArgumentException("Number 'limit' is larger than 1000L"); + } + if (limit != null) { + this.limit = limit; + } + else { + this.limit = 1000L; + } + return this; + } + + /** + * Set value for optional field. + * + * @param accountId Filter the events by account ID. Return only events + * with this account_id as either Actor, Context, or Participants. + * Must have length of at least 40 and have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + return this; + } + + /** + * Set value for optional field. + * + * @param time Filter by time range. + * + * @return this builder + */ + public Builder withTime(TimeRange time) { + this.time = time; + return this; + } + + /** + * Set value for optional field. + * + * @param category Filter the returned events to a single category. + * Note that category shouldn't be provided together with + * event_type. + * + * @return this builder + */ + public Builder withCategory(EventCategory category) { + this.category = category; + return this; + } + + /** + * Set value for optional field. + * + * @param eventType Filter the returned events to a single event type. + * Note that event_type shouldn't be provided together with + * category. + * + * @return this builder + */ + public Builder withEventType(EventTypeArg eventType) { + this.eventType = eventType; + return this; + } + + /** + * Builds an instance of {@link GetTeamEventsArg} configured with this + * builder's values + * + * @return new instance of {@link GetTeamEventsArg} + */ + public GetTeamEventsArg build() { + return new GetTeamEventsArg(limit, accountId, time, category, eventType); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.limit, + this.accountId, + this.time, + this.category, + this.eventType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTeamEventsArg other = (GetTeamEventsArg) obj; + return (this.limit == other.limit) + && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + && ((this.time == other.time) || (this.time != null && this.time.equals(other.time))) + && ((this.category == other.category) || (this.category != null && this.category.equals(other.category))) + && ((this.eventType == other.eventType) || (this.eventType != null && this.eventType.equals(other.eventType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTeamEventsArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("limit"); + StoneSerializers.uInt32().serialize(value.limit, g); + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (value.time != null) { + g.writeFieldName("time"); + StoneSerializers.nullableStruct(TimeRange.Serializer.INSTANCE).serialize(value.time, g); + } + if (value.category != null) { + g.writeFieldName("category"); + StoneSerializers.nullable(EventCategory.Serializer.INSTANCE).serialize(value.category, g); + } + if (value.eventType != null) { + g.writeFieldName("event_type"); + StoneSerializers.nullable(EventTypeArg.Serializer.INSTANCE).serialize(value.eventType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTeamEventsArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTeamEventsArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_limit = 1000L; + String f_accountId = null; + TimeRange f_time = null; + EventCategory f_category = null; + EventTypeArg f_eventType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("limit".equals(field)) { + f_limit = StoneSerializers.uInt32().deserialize(p); + } + else if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("time".equals(field)) { + f_time = StoneSerializers.nullableStruct(TimeRange.Serializer.INSTANCE).deserialize(p); + } + else if ("category".equals(field)) { + f_category = StoneSerializers.nullable(EventCategory.Serializer.INSTANCE).deserialize(p); + } + else if ("event_type".equals(field)) { + f_eventType = StoneSerializers.nullable(EventTypeArg.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new GetTeamEventsArg(f_limit, f_accountId, f_time, f_category, f_eventType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueArg.java new file mode 100644 index 000000000..cebed3659 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueArg.java @@ -0,0 +1,148 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class GetTeamEventsContinueArg { + // struct team_log.GetTeamEventsContinueArg (team_log.stone) + + @Nonnull + protected final String cursor; + + /** + * + * @param cursor Indicates from what point to get the next set of events. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTeamEventsContinueArg(@Nonnull String cursor) { + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + } + + /** + * Indicates from what point to get the next set of events. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.cursor + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTeamEventsContinueArg other = (GetTeamEventsContinueArg) obj; + return (this.cursor == other.cursor) || (this.cursor.equals(other.cursor)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTeamEventsContinueArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTeamEventsContinueArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTeamEventsContinueArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_cursor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + value = new GetTeamEventsContinueArg(f_cursor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueError.java new file mode 100644 index 000000000..7a7173c79 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueError.java @@ -0,0 +1,344 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +/** + * Errors that can be raised when calling {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetTeamEventsContinueError { + // union team_log.GetTeamEventsContinueError (team_log.stone) + + /** + * Discriminating tag type for {@link GetTeamEventsContinueError}. + */ + public enum Tag { + /** + * Bad cursor. + */ + BAD_CURSOR, + /** + * Cursors are intended to be used quickly. Individual cursor values are + * normally valid for days, but in rare cases may be reset sooner. + * Cursor reset errors should be handled by fetching a new cursor from + * {@link DbxTeamTeamLogRequests#getEvents}. The associated value is the + * approximate timestamp of the most recent event returned by the + * cursor. This should be used as a resumption point when calling {@link + * DbxTeamTeamLogRequests#getEvents} to obtain a new cursor. + */ + RESET, // Date + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Bad cursor. + */ + public static final GetTeamEventsContinueError BAD_CURSOR = new GetTeamEventsContinueError().withTag(Tag.BAD_CURSOR); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetTeamEventsContinueError OTHER = new GetTeamEventsContinueError().withTag(Tag.OTHER); + + private Tag _tag; + private Date resetValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetTeamEventsContinueError() { + } + + + /** + * Errors that can be raised when calling {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}. + * + * @param _tag Discriminating tag for this instance. + */ + private GetTeamEventsContinueError withTag(Tag _tag) { + GetTeamEventsContinueError result = new GetTeamEventsContinueError(); + result._tag = _tag; + return result; + } + + /** + * Errors that can be raised when calling {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}. + * + * @param resetValue Cursors are intended to be used quickly. Individual + * cursor values are normally valid for days, but in rare cases may be + * reset sooner. Cursor reset errors should be handled by fetching a new + * cursor from {@link DbxTeamTeamLogRequests#getEvents}. The associated + * value is the approximate timestamp of the most recent event returned + * by the cursor. This should be used as a resumption point when calling + * {@link DbxTeamTeamLogRequests#getEvents} to obtain a new cursor. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetTeamEventsContinueError withTagAndReset(Tag _tag, Date resetValue) { + GetTeamEventsContinueError result = new GetTeamEventsContinueError(); + result._tag = _tag; + result.resetValue = resetValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetTeamEventsContinueError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#BAD_CURSOR}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BAD_CURSOR}, {@code false} otherwise. + */ + public boolean isBadCursor() { + return this._tag == Tag.BAD_CURSOR; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#RESET}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#RESET}, + * {@code false} otherwise. + */ + public boolean isReset() { + return this._tag == Tag.RESET; + } + + /** + * Returns an instance of {@code GetTeamEventsContinueError} that has its + * tag set to {@link Tag#RESET}. + * + *

Cursors are intended to be used quickly. Individual cursor values are + * normally valid for days, but in rare cases may be reset sooner. Cursor + * reset errors should be handled by fetching a new cursor from {@link + * DbxTeamTeamLogRequests#getEvents}. The associated value is the + * approximate timestamp of the most recent event returned by the cursor. + * This should be used as a resumption point when calling {@link + * DbxTeamTeamLogRequests#getEvents} to obtain a new cursor.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetTeamEventsContinueError} with its tag set + * to {@link Tag#RESET}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static GetTeamEventsContinueError reset(Date value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new GetTeamEventsContinueError().withTagAndReset(Tag.RESET, value); + } + + /** + * Cursors are intended to be used quickly. Individual cursor values are + * normally valid for days, but in rare cases may be reset sooner. Cursor + * reset errors should be handled by fetching a new cursor from {@link + * DbxTeamTeamLogRequests#getEvents}. The associated value is the + * approximate timestamp of the most recent event returned by the cursor. + * This should be used as a resumption point when calling {@link + * DbxTeamTeamLogRequests#getEvents} to obtain a new cursor. + * + *

This instance must be tagged as {@link Tag#RESET}.

+ * + * @return The {@link Date} value associated with this instance if {@link + * #isReset} is {@code true}. + * + * @throws IllegalStateException If {@link #isReset} is {@code false}. + */ + public Date getResetValue() { + if (this._tag != Tag.RESET) { + throw new IllegalStateException("Invalid tag: required Tag.RESET, but was Tag." + this._tag.name()); + } + return resetValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.resetValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetTeamEventsContinueError) { + GetTeamEventsContinueError other = (GetTeamEventsContinueError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case BAD_CURSOR: + return true; + case RESET: + return (this.resetValue == other.resetValue) || (this.resetValue.equals(other.resetValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTeamEventsContinueError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case BAD_CURSOR: { + g.writeString("bad_cursor"); + break; + } + case RESET: { + g.writeStartObject(); + writeTag("reset", g); + g.writeFieldName("reset"); + StoneSerializers.timestamp().serialize(value.resetValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetTeamEventsContinueError deserialize(JsonParser p) throws IOException, JsonParseException { + GetTeamEventsContinueError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("bad_cursor".equals(tag)) { + value = GetTeamEventsContinueError.BAD_CURSOR; + } + else if ("reset".equals(tag)) { + Date fieldValue = null; + expectField("reset", p); + fieldValue = StoneSerializers.timestamp().deserialize(p); + value = GetTeamEventsContinueError.reset(fieldValue); + } + else { + value = GetTeamEventsContinueError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueErrorException.java new file mode 100644 index 000000000..a64ca2d3c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * GetTeamEventsContinueError} error. + * + *

This exception is raised by {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}.

+ */ +public class GetTeamEventsContinueErrorException extends DbxApiException { + // exception for routes: + // 2/team_log/get_events/continue + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}. + */ + public final GetTeamEventsContinueError errorValue; + + public GetTeamEventsContinueErrorException(String routeName, String requestId, LocalizedText userMessage, GetTeamEventsContinueError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsError.java new file mode 100644 index 000000000..56162e1fd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsError.java @@ -0,0 +1,111 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Errors that can be raised when calling {@link + * DbxTeamTeamLogRequests#getEvents}. + */ +public enum GetTeamEventsError { + // union team_log.GetTeamEventsError (team_log.stone) + /** + * No user found matching the provided account_id. + */ + ACCOUNT_ID_NOT_FOUND, + /** + * Invalid time range. + */ + INVALID_TIME_RANGE, + /** + * Invalid filters. Do not specify both event_type and category parameters + * for the same call. + */ + INVALID_FILTERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTeamEventsError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACCOUNT_ID_NOT_FOUND: { + g.writeString("account_id_not_found"); + break; + } + case INVALID_TIME_RANGE: { + g.writeString("invalid_time_range"); + break; + } + case INVALID_FILTERS: { + g.writeString("invalid_filters"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetTeamEventsError deserialize(JsonParser p) throws IOException, JsonParseException { + GetTeamEventsError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("account_id_not_found".equals(tag)) { + value = GetTeamEventsError.ACCOUNT_ID_NOT_FOUND; + } + else if ("invalid_time_range".equals(tag)) { + value = GetTeamEventsError.INVALID_TIME_RANGE; + } + else if ("invalid_filters".equals(tag)) { + value = GetTeamEventsError.INVALID_FILTERS; + } + else { + value = GetTeamEventsError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsErrorException.java new file mode 100644 index 000000000..abdd5fce4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GetTeamEventsError} + * error. + * + *

This exception is raised by {@link DbxTeamTeamLogRequests#getEvents}. + *

+ */ +public class GetTeamEventsErrorException extends DbxApiException { + // exception for routes: + // 2/team_log/get_events + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxTeamTeamLogRequests#getEvents}. + */ + public final GetTeamEventsError errorValue; + + public GetTeamEventsErrorException(String routeName, String requestId, LocalizedText userMessage, GetTeamEventsError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsResult.java new file mode 100644 index 000000000..0969494bc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsResult.java @@ -0,0 +1,235 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GetTeamEventsResult { + // struct team_log.GetTeamEventsResult (team_log.stone) + + @Nonnull + protected final List events; + @Nonnull + protected final String cursor; + protected final boolean hasMore; + + /** + * + * @param events List of events. Note that events are not guaranteed to be + * sorted by their timestamp value. Must not contain a {@code null} item + * and not be {@code null}. + * @param cursor Pass the cursor into {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} to obtain + * additional events. The value of {@link GetTeamEventsResult#getCursor} + * may change for each response from {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}, regardless of the + * value of {@link GetTeamEventsResult#getHasMore}; older cursor strings + * may expire. Thus, callers should ensure that they update their cursor + * based on the latest value of {@link GetTeamEventsResult#getCursor} + * after each call, and poll regularly if they wish to poll for new + * events. Callers should handle reset exceptions for expired cursors. + * Must not be {@code null}. + * @param hasMore Is true if there may be additional events that have not + * been returned yet. An additional call to {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} can retrieve them. + * Note that {@link GetTeamEventsResult#getHasMore} may be {@code true}, + * even if {@link GetTeamEventsResult#getEvents} is empty. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetTeamEventsResult(@Nonnull List events, @Nonnull String cursor, boolean hasMore) { + if (events == null) { + throw new IllegalArgumentException("Required value for 'events' is null"); + } + for (TeamEvent x : events) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'events' is null"); + } + } + this.events = events; + if (cursor == null) { + throw new IllegalArgumentException("Required value for 'cursor' is null"); + } + this.cursor = cursor; + this.hasMore = hasMore; + } + + /** + * List of events. Note that events are not guaranteed to be sorted by their + * timestamp value. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getEvents() { + return events; + } + + /** + * Pass the cursor into {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} to obtain additional + * events. The value of {@link GetTeamEventsResult#getCursor} may change for + * each response from {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)}, regardless of the + * value of {@link GetTeamEventsResult#getHasMore}; older cursor strings may + * expire. Thus, callers should ensure that they update their cursor based + * on the latest value of {@link GetTeamEventsResult#getCursor} after each + * call, and poll regularly if they wish to poll for new events. Callers + * should handle reset exceptions for expired cursors. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getCursor() { + return cursor; + } + + /** + * Is true if there may be additional events that have not been returned + * yet. An additional call to {@link + * DbxTeamTeamLogRequests#getEventsContinue(String)} can retrieve them. Note + * that {@link GetTeamEventsResult#getHasMore} may be {@code true}, even if + * {@link GetTeamEventsResult#getEvents} is empty. + * + * @return value for this field. + */ + public boolean getHasMore() { + return hasMore; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.events, + this.cursor, + this.hasMore + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetTeamEventsResult other = (GetTeamEventsResult) obj; + return ((this.events == other.events) || (this.events.equals(other.events))) + && ((this.cursor == other.cursor) || (this.cursor.equals(other.cursor))) + && (this.hasMore == other.hasMore) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetTeamEventsResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("events"); + StoneSerializers.list(TeamEvent.Serializer.INSTANCE).serialize(value.events, g); + g.writeFieldName("cursor"); + StoneSerializers.string().serialize(value.cursor, g); + g.writeFieldName("has_more"); + StoneSerializers.boolean_().serialize(value.hasMore, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetTeamEventsResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetTeamEventsResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_events = null; + String f_cursor = null; + Boolean f_hasMore = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("events".equals(field)) { + f_events = StoneSerializers.list(TeamEvent.Serializer.INSTANCE).deserialize(p); + } + else if ("cursor".equals(field)) { + f_cursor = StoneSerializers.string().deserialize(p); + } + else if ("has_more".equals(field)) { + f_hasMore = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_events == null) { + throw new JsonParseException(p, "Required field \"events\" missing."); + } + if (f_cursor == null) { + throw new JsonParseException(p, "Required field \"cursor\" missing."); + } + if (f_hasMore == null) { + throw new JsonParseException(p, "Required field \"has_more\" missing."); + } + value = new GetTeamEventsResult(f_events, f_cursor, f_hasMore); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyDetails.java new file mode 100644 index 000000000..cafe4d1e4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled Google single sign-on for team. + */ +public class GoogleSsoChangePolicyDetails { + // struct team_log.GoogleSsoChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final GoogleSsoPolicy newValue; + @Nullable + protected final GoogleSsoPolicy previousValue; + + /** + * Enabled/disabled Google single sign-on for team. + * + * @param newValue New Google single sign-on policy. Must not be {@code + * null}. + * @param previousValue Previous Google single sign-on policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GoogleSsoChangePolicyDetails(@Nonnull GoogleSsoPolicy newValue, @Nullable GoogleSsoPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled Google single sign-on for team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New Google single sign-on policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GoogleSsoChangePolicyDetails(@Nonnull GoogleSsoPolicy newValue) { + this(newValue, null); + } + + /** + * New Google single sign-on policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GoogleSsoPolicy getNewValue() { + return newValue; + } + + /** + * Previous Google single sign-on policy. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GoogleSsoPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GoogleSsoChangePolicyDetails other = (GoogleSsoChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GoogleSsoChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + GoogleSsoPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(GoogleSsoPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GoogleSsoChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GoogleSsoChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GoogleSsoPolicy f_newValue = null; + GoogleSsoPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = GoogleSsoPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(GoogleSsoPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new GoogleSsoChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyType.java new file mode 100644 index 000000000..586e9e7c3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GoogleSsoChangePolicyType { + // struct team_log.GoogleSsoChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GoogleSsoChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GoogleSsoChangePolicyType other = (GoogleSsoChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GoogleSsoChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GoogleSsoChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GoogleSsoChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GoogleSsoChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoPolicy.java new file mode 100644 index 000000000..4ce3aa8ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GoogleSsoPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Google SSO policy + */ +public enum GoogleSsoPolicy { + // union team_log.GoogleSsoPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GoogleSsoPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GoogleSsoPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + GoogleSsoPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = GoogleSsoPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = GoogleSsoPolicy.ENABLED; + } + else { + value = GoogleSsoPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails.java new file mode 100644 index 000000000..9a624787a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedDetails.java @@ -0,0 +1,356 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Couldn't add a folder to a policy. + */ +public class GovernancePolicyAddFolderFailedDetails { + // struct team_log.GovernancePolicyAddFolderFailedDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final String folder; + @Nullable + protected final String reason; + + /** + * Couldn't add a folder to a policy. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param folder Folder. Must not be {@code null}. + * @param policyType Policy type. + * @param reason Reason. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyAddFolderFailedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String folder, @Nullable PolicyType policyType, @Nullable String reason) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (folder == null) { + throw new IllegalArgumentException("Required value for 'folder' is null"); + } + this.folder = folder; + this.reason = reason; + } + + /** + * Couldn't add a folder to a policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param folder Folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyAddFolderFailedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String folder) { + this(governancePolicyId, name, folder, null, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFolder() { + return folder; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + /** + * Reason. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getReason() { + return reason; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param folder Folder. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String governancePolicyId, String name, String folder) { + return new Builder(governancePolicyId, name, folder); + } + + /** + * Builder for {@link GovernancePolicyAddFolderFailedDetails}. + */ + public static class Builder { + protected final String governancePolicyId; + protected final String name; + protected final String folder; + + protected PolicyType policyType; + protected String reason; + + protected Builder(String governancePolicyId, String name, String folder) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (folder == null) { + throw new IllegalArgumentException("Required value for 'folder' is null"); + } + this.folder = folder; + this.policyType = null; + this.reason = null; + } + + /** + * Set value for optional field. + * + * @param policyType Policy type. + * + * @return this builder + */ + public Builder withPolicyType(PolicyType policyType) { + this.policyType = policyType; + return this; + } + + /** + * Set value for optional field. + * + * @param reason Reason. + * + * @return this builder + */ + public Builder withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * Builds an instance of {@link GovernancePolicyAddFolderFailedDetails} + * configured with this builder's values + * + * @return new instance of {@link + * GovernancePolicyAddFolderFailedDetails} + */ + public GovernancePolicyAddFolderFailedDetails build() { + return new GovernancePolicyAddFolderFailedDetails(governancePolicyId, name, folder, policyType, reason); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.folder, + this.reason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyAddFolderFailedDetails other = (GovernancePolicyAddFolderFailedDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.folder == other.folder) || (this.folder.equals(other.folder))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + && ((this.reason == other.reason) || (this.reason != null && this.reason.equals(other.reason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyAddFolderFailedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("folder"); + StoneSerializers.string().serialize(value.folder, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (value.reason != null) { + g.writeFieldName("reason"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.reason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyAddFolderFailedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyAddFolderFailedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + String f_folder = null; + PolicyType f_policyType = null; + String f_reason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("folder".equals(field)) { + f_folder = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else if ("reason".equals(field)) { + f_reason = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_folder == null) { + throw new JsonParseException(p, "Required field \"folder\" missing."); + } + value = new GovernancePolicyAddFolderFailedDetails(f_governancePolicyId, f_name, f_folder, f_policyType, f_reason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedType.java new file mode 100644 index 000000000..f357d7860 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFolderFailedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyAddFolderFailedType { + // struct team_log.GovernancePolicyAddFolderFailedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyAddFolderFailedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyAddFolderFailedType other = (GovernancePolicyAddFolderFailedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyAddFolderFailedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyAddFolderFailedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyAddFolderFailedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyAddFolderFailedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails.java new file mode 100644 index 000000000..0474b65d6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersDetails.java @@ -0,0 +1,338 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added folders to policy. + */ +public class GovernancePolicyAddFoldersDetails { + // struct team_log.GovernancePolicyAddFoldersDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nullable + protected final List folders; + + /** + * Added folders to policy. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param policyType Policy type. + * @param folders Folders. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyAddFoldersDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nullable PolicyType policyType, @Nullable List folders) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (folders != null) { + for (String x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + } + + /** + * Added folders to policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyAddFoldersDetails(@Nonnull String governancePolicyId, @Nonnull String name) { + this(governancePolicyId, name, null, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + /** + * Folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getFolders() { + return folders; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String governancePolicyId, String name) { + return new Builder(governancePolicyId, name); + } + + /** + * Builder for {@link GovernancePolicyAddFoldersDetails}. + */ + public static class Builder { + protected final String governancePolicyId; + protected final String name; + + protected PolicyType policyType; + protected List folders; + + protected Builder(String governancePolicyId, String name) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = null; + this.folders = null; + } + + /** + * Set value for optional field. + * + * @param policyType Policy type. + * + * @return this builder + */ + public Builder withPolicyType(PolicyType policyType) { + this.policyType = policyType; + return this; + } + + /** + * Set value for optional field. + * + * @param folders Folders. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFolders(List folders) { + if (folders != null) { + for (String x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + return this; + } + + /** + * Builds an instance of {@link GovernancePolicyAddFoldersDetails} + * configured with this builder's values + * + * @return new instance of {@link GovernancePolicyAddFoldersDetails} + */ + public GovernancePolicyAddFoldersDetails build() { + return new GovernancePolicyAddFoldersDetails(governancePolicyId, name, policyType, folders); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.folders + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyAddFoldersDetails other = (GovernancePolicyAddFoldersDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + && ((this.folders == other.folders) || (this.folders != null && this.folders.equals(other.folders))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyAddFoldersDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (value.folders != null) { + g.writeFieldName("folders"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.folders, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyAddFoldersDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyAddFoldersDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + PolicyType f_policyType = null; + List f_folders = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else if ("folders".equals(field)) { + f_folders = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new GovernancePolicyAddFoldersDetails(f_governancePolicyId, f_name, f_policyType, f_folders); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersType.java new file mode 100644 index 000000000..8445d74df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyAddFoldersType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyAddFoldersType { + // struct team_log.GovernancePolicyAddFoldersType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyAddFoldersType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyAddFoldersType other = (GovernancePolicyAddFoldersType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyAddFoldersType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyAddFoldersType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyAddFoldersType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyAddFoldersType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedDetails.java new file mode 100644 index 000000000..198b500ec --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedDetails.java @@ -0,0 +1,249 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Content disposed. + */ +public class GovernancePolicyContentDisposedDetails { + // struct team_log.GovernancePolicyContentDisposedDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final DispositionActionType dispositionType; + + /** + * Content disposed. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param dispositionType Disposition type. Must not be {@code null}. + * @param policyType Policy type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyContentDisposedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DispositionActionType dispositionType, @Nullable PolicyType policyType) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (dispositionType == null) { + throw new IllegalArgumentException("Required value for 'dispositionType' is null"); + } + this.dispositionType = dispositionType; + } + + /** + * Content disposed. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param dispositionType Disposition type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyContentDisposedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DispositionActionType dispositionType) { + this(governancePolicyId, name, dispositionType, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Disposition type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DispositionActionType getDispositionType() { + return dispositionType; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.dispositionType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyContentDisposedDetails other = (GovernancePolicyContentDisposedDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.dispositionType == other.dispositionType) || (this.dispositionType.equals(other.dispositionType))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyContentDisposedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("disposition_type"); + DispositionActionType.Serializer.INSTANCE.serialize(value.dispositionType, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyContentDisposedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyContentDisposedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + DispositionActionType f_dispositionType = null; + PolicyType f_policyType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("disposition_type".equals(field)) { + f_dispositionType = DispositionActionType.Serializer.INSTANCE.deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_dispositionType == null) { + throw new JsonParseException(p, "Required field \"disposition_type\" missing."); + } + value = new GovernancePolicyContentDisposedDetails(f_governancePolicyId, f_name, f_dispositionType, f_policyType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedType.java new file mode 100644 index 000000000..5af156bb3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyContentDisposedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyContentDisposedType { + // struct team_log.GovernancePolicyContentDisposedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyContentDisposedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyContentDisposedType other = (GovernancePolicyContentDisposedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyContentDisposedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyContentDisposedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyContentDisposedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyContentDisposedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails.java new file mode 100644 index 000000000..6486e3c48 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyCreateDetails.java @@ -0,0 +1,373 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Activated a new policy. + */ +public class GovernancePolicyCreateDetails { + // struct team_log.GovernancePolicyCreateDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final DurationLogInfo duration; + @Nullable + protected final List folders; + + /** + * Activated a new policy. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param duration Duration in days. Must not be {@code null}. + * @param policyType Policy type. + * @param folders Folders. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyCreateDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo duration, @Nullable PolicyType policyType, @Nullable List folders) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (duration == null) { + throw new IllegalArgumentException("Required value for 'duration' is null"); + } + this.duration = duration; + if (folders != null) { + for (String x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + } + + /** + * Activated a new policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param duration Duration in days. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyCreateDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo duration) { + this(governancePolicyId, name, duration, null, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Duration in days. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DurationLogInfo getDuration() { + return duration; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + /** + * Folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getFolders() { + return folders; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param duration Duration in days. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String governancePolicyId, String name, DurationLogInfo duration) { + return new Builder(governancePolicyId, name, duration); + } + + /** + * Builder for {@link GovernancePolicyCreateDetails}. + */ + public static class Builder { + protected final String governancePolicyId; + protected final String name; + protected final DurationLogInfo duration; + + protected PolicyType policyType; + protected List folders; + + protected Builder(String governancePolicyId, String name, DurationLogInfo duration) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (duration == null) { + throw new IllegalArgumentException("Required value for 'duration' is null"); + } + this.duration = duration; + this.policyType = null; + this.folders = null; + } + + /** + * Set value for optional field. + * + * @param policyType Policy type. + * + * @return this builder + */ + public Builder withPolicyType(PolicyType policyType) { + this.policyType = policyType; + return this; + } + + /** + * Set value for optional field. + * + * @param folders Folders. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFolders(List folders) { + if (folders != null) { + for (String x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + return this; + } + + /** + * Builds an instance of {@link GovernancePolicyCreateDetails} + * configured with this builder's values + * + * @return new instance of {@link GovernancePolicyCreateDetails} + */ + public GovernancePolicyCreateDetails build() { + return new GovernancePolicyCreateDetails(governancePolicyId, name, duration, policyType, folders); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.duration, + this.folders + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyCreateDetails other = (GovernancePolicyCreateDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.duration == other.duration) || (this.duration.equals(other.duration))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + && ((this.folders == other.folders) || (this.folders != null && this.folders.equals(other.folders))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("duration"); + DurationLogInfo.Serializer.INSTANCE.serialize(value.duration, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (value.folders != null) { + g.writeFieldName("folders"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.folders, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + DurationLogInfo f_duration = null; + PolicyType f_policyType = null; + List f_folders = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("duration".equals(field)) { + f_duration = DurationLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else if ("folders".equals(field)) { + f_folders = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_duration == null) { + throw new JsonParseException(p, "Required field \"duration\" missing."); + } + value = new GovernancePolicyCreateDetails(f_governancePolicyId, f_name, f_duration, f_policyType, f_folders); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyCreateType.java new file mode 100644 index 000000000..3729bdd7c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyCreateType { + // struct team_log.GovernancePolicyCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyCreateType other = (GovernancePolicyCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyDeleteDetails.java new file mode 100644 index 000000000..5fd475c7c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyDeleteDetails.java @@ -0,0 +1,220 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Deleted a policy. + */ +public class GovernancePolicyDeleteDetails { + // struct team_log.GovernancePolicyDeleteDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + + /** + * Deleted a policy. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param policyType Policy type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyDeleteDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nullable PolicyType policyType) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + } + + /** + * Deleted a policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyDeleteDetails(@Nonnull String governancePolicyId, @Nonnull String name) { + this(governancePolicyId, name, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyDeleteDetails other = (GovernancePolicyDeleteDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + PolicyType f_policyType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new GovernancePolicyDeleteDetails(f_governancePolicyId, f_name, f_policyType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyDeleteType.java new file mode 100644 index 000000000..5b3843a10 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyDeleteType { + // struct team_log.GovernancePolicyDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyDeleteType other = (GovernancePolicyDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsDetails.java new file mode 100644 index 000000000..7770c129c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsDetails.java @@ -0,0 +1,307 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Edited policy. + */ +public class GovernancePolicyEditDetailsDetails { + // struct team_log.GovernancePolicyEditDetailsDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final String attribute; + @Nonnull + protected final String previousValue; + @Nonnull + protected final String newValue; + + /** + * Edited policy. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param attribute Attribute. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * @param newValue To. Must not be {@code null}. + * @param policyType Policy type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyEditDetailsDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String attribute, @Nonnull String previousValue, @Nonnull String newValue, @Nullable PolicyType policyType) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (attribute == null) { + throw new IllegalArgumentException("Required value for 'attribute' is null"); + } + this.attribute = attribute; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Edited policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param attribute Attribute. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * @param newValue To. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyEditDetailsDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String attribute, @Nonnull String previousValue, @Nonnull String newValue) { + this(governancePolicyId, name, attribute, previousValue, newValue, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Attribute. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAttribute() { + return attribute; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.attribute, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyEditDetailsDetails other = (GovernancePolicyEditDetailsDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.attribute == other.attribute) || (this.attribute.equals(other.attribute))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyEditDetailsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("attribute"); + StoneSerializers.string().serialize(value.attribute, g); + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyEditDetailsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyEditDetailsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + String f_attribute = null; + String f_previousValue = null; + String f_newValue = null; + PolicyType f_policyType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("attribute".equals(field)) { + f_attribute = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_attribute == null) { + throw new JsonParseException(p, "Required field \"attribute\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new GovernancePolicyEditDetailsDetails(f_governancePolicyId, f_name, f_attribute, f_previousValue, f_newValue, f_policyType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsType.java new file mode 100644 index 000000000..6eb9a746b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDetailsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyEditDetailsType { + // struct team_log.GovernancePolicyEditDetailsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyEditDetailsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyEditDetailsType other = (GovernancePolicyEditDetailsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyEditDetailsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyEditDetailsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyEditDetailsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyEditDetailsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationDetails.java new file mode 100644 index 000000000..653a6c88b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationDetails.java @@ -0,0 +1,278 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed policy duration. + */ +public class GovernancePolicyEditDurationDetails { + // struct team_log.GovernancePolicyEditDurationDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final DurationLogInfo previousValue; + @Nonnull + protected final DurationLogInfo newValue; + + /** + * Changed policy duration. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * @param newValue To. Must not be {@code null}. + * @param policyType Policy type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyEditDurationDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo previousValue, @Nonnull DurationLogInfo newValue, @Nullable PolicyType policyType) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Changed policy duration. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * @param newValue To. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyEditDurationDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull DurationLogInfo previousValue, @Nonnull DurationLogInfo newValue) { + this(governancePolicyId, name, previousValue, newValue, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DurationLogInfo getPreviousValue() { + return previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DurationLogInfo getNewValue() { + return newValue; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyEditDurationDetails other = (GovernancePolicyEditDurationDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyEditDurationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("previous_value"); + DurationLogInfo.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + DurationLogInfo.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyEditDurationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyEditDurationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + DurationLogInfo f_previousValue = null; + DurationLogInfo f_newValue = null; + PolicyType f_policyType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = DurationLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = DurationLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new GovernancePolicyEditDurationDetails(f_governancePolicyId, f_name, f_previousValue, f_newValue, f_policyType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationType.java new file mode 100644 index 000000000..d3c86c170 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyEditDurationType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyEditDurationType { + // struct team_log.GovernancePolicyEditDurationType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyEditDurationType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyEditDurationType other = (GovernancePolicyEditDurationType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyEditDurationType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyEditDurationType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyEditDurationType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyEditDurationType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedDetails.java new file mode 100644 index 000000000..f9e3ddb64 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedDetails.java @@ -0,0 +1,249 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Created a policy download. + */ +public class GovernancePolicyExportCreatedDetails { + // struct team_log.GovernancePolicyExportCreatedDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final String exportName; + + /** + * Created a policy download. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * @param policyType Policy type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyExportCreatedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName, @Nullable PolicyType policyType) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + } + + /** + * Created a policy download. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyExportCreatedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName) { + this(governancePolicyId, name, exportName, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Export name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExportName() { + return exportName; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.exportName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyExportCreatedDetails other = (GovernancePolicyExportCreatedDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.exportName == other.exportName) || (this.exportName.equals(other.exportName))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyExportCreatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("export_name"); + StoneSerializers.string().serialize(value.exportName, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyExportCreatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyExportCreatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + String f_exportName = null; + PolicyType f_policyType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("export_name".equals(field)) { + f_exportName = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_exportName == null) { + throw new JsonParseException(p, "Required field \"export_name\" missing."); + } + value = new GovernancePolicyExportCreatedDetails(f_governancePolicyId, f_name, f_exportName, f_policyType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedType.java new file mode 100644 index 000000000..077f57fb3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportCreatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyExportCreatedType { + // struct team_log.GovernancePolicyExportCreatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyExportCreatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyExportCreatedType other = (GovernancePolicyExportCreatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyExportCreatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyExportCreatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyExportCreatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyExportCreatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedDetails.java new file mode 100644 index 000000000..e60514a93 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedDetails.java @@ -0,0 +1,249 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed a policy download. + */ +public class GovernancePolicyExportRemovedDetails { + // struct team_log.GovernancePolicyExportRemovedDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final String exportName; + + /** + * Removed a policy download. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * @param policyType Policy type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyExportRemovedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName, @Nullable PolicyType policyType) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + } + + /** + * Removed a policy download. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyExportRemovedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName) { + this(governancePolicyId, name, exportName, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Export name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExportName() { + return exportName; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.exportName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyExportRemovedDetails other = (GovernancePolicyExportRemovedDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.exportName == other.exportName) || (this.exportName.equals(other.exportName))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyExportRemovedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("export_name"); + StoneSerializers.string().serialize(value.exportName, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyExportRemovedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyExportRemovedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + String f_exportName = null; + PolicyType f_policyType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("export_name".equals(field)) { + f_exportName = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_exportName == null) { + throw new JsonParseException(p, "Required field \"export_name\" missing."); + } + value = new GovernancePolicyExportRemovedDetails(f_governancePolicyId, f_name, f_exportName, f_policyType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedType.java new file mode 100644 index 000000000..968185a5b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyExportRemovedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyExportRemovedType { + // struct team_log.GovernancePolicyExportRemovedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyExportRemovedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyExportRemovedType other = (GovernancePolicyExportRemovedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyExportRemovedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyExportRemovedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyExportRemovedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyExportRemovedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails.java new file mode 100644 index 000000000..ae47a0e58 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersDetails.java @@ -0,0 +1,376 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed folders from policy. + */ +public class GovernancePolicyRemoveFoldersDetails { + // struct team_log.GovernancePolicyRemoveFoldersDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nullable + protected final List folders; + @Nullable + protected final String reason; + + /** + * Removed folders from policy. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param policyType Policy type. + * @param folders Folders. Must not contain a {@code null} item. + * @param reason Reason. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyRemoveFoldersDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nullable PolicyType policyType, @Nullable List folders, @Nullable String reason) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (folders != null) { + for (String x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + this.reason = reason; + } + + /** + * Removed folders from policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyRemoveFoldersDetails(@Nonnull String governancePolicyId, @Nonnull String name) { + this(governancePolicyId, name, null, null, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + /** + * Folders. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getFolders() { + return folders; + } + + /** + * Reason. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getReason() { + return reason; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String governancePolicyId, String name) { + return new Builder(governancePolicyId, name); + } + + /** + * Builder for {@link GovernancePolicyRemoveFoldersDetails}. + */ + public static class Builder { + protected final String governancePolicyId; + protected final String name; + + protected PolicyType policyType; + protected List folders; + protected String reason; + + protected Builder(String governancePolicyId, String name) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = null; + this.folders = null; + this.reason = null; + } + + /** + * Set value for optional field. + * + * @param policyType Policy type. + * + * @return this builder + */ + public Builder withPolicyType(PolicyType policyType) { + this.policyType = policyType; + return this; + } + + /** + * Set value for optional field. + * + * @param folders Folders. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withFolders(List folders) { + if (folders != null) { + for (String x : folders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'folders' is null"); + } + } + } + this.folders = folders; + return this; + } + + /** + * Set value for optional field. + * + * @param reason Reason. + * + * @return this builder + */ + public Builder withReason(String reason) { + this.reason = reason; + return this; + } + + /** + * Builds an instance of {@link GovernancePolicyRemoveFoldersDetails} + * configured with this builder's values + * + * @return new instance of {@link GovernancePolicyRemoveFoldersDetails} + */ + public GovernancePolicyRemoveFoldersDetails build() { + return new GovernancePolicyRemoveFoldersDetails(governancePolicyId, name, policyType, folders, reason); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.folders, + this.reason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyRemoveFoldersDetails other = (GovernancePolicyRemoveFoldersDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + && ((this.folders == other.folders) || (this.folders != null && this.folders.equals(other.folders))) + && ((this.reason == other.reason) || (this.reason != null && this.reason.equals(other.reason))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyRemoveFoldersDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (value.folders != null) { + g.writeFieldName("folders"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.folders, g); + } + if (value.reason != null) { + g.writeFieldName("reason"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.reason, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyRemoveFoldersDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyRemoveFoldersDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + PolicyType f_policyType = null; + List f_folders = null; + String f_reason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else if ("folders".equals(field)) { + f_folders = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("reason".equals(field)) { + f_reason = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new GovernancePolicyRemoveFoldersDetails(f_governancePolicyId, f_name, f_policyType, f_folders, f_reason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersType.java new file mode 100644 index 000000000..27c0bea24 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyRemoveFoldersType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyRemoveFoldersType { + // struct team_log.GovernancePolicyRemoveFoldersType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyRemoveFoldersType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyRemoveFoldersType other = (GovernancePolicyRemoveFoldersType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyRemoveFoldersType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyRemoveFoldersType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyRemoveFoldersType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyRemoveFoldersType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedDetails.java new file mode 100644 index 000000000..33cb36d14 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedDetails.java @@ -0,0 +1,220 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Created a summary report for a policy. + */ +public class GovernancePolicyReportCreatedDetails { + // struct team_log.GovernancePolicyReportCreatedDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + + /** + * Created a summary report for a policy. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param policyType Policy type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyReportCreatedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nullable PolicyType policyType) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + } + + /** + * Created a summary report for a policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyReportCreatedDetails(@Nonnull String governancePolicyId, @Nonnull String name) { + this(governancePolicyId, name, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyReportCreatedDetails other = (GovernancePolicyReportCreatedDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyReportCreatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyReportCreatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyReportCreatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + PolicyType f_policyType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new GovernancePolicyReportCreatedDetails(f_governancePolicyId, f_name, f_policyType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedType.java new file mode 100644 index 000000000..0b0836f09 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyReportCreatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyReportCreatedType { + // struct team_log.GovernancePolicyReportCreatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyReportCreatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyReportCreatedType other = (GovernancePolicyReportCreatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyReportCreatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyReportCreatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyReportCreatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyReportCreatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails.java new file mode 100644 index 000000000..2df2263a5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedDetails.java @@ -0,0 +1,357 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Downloaded content from a policy. + */ +public class GovernancePolicyZipPartDownloadedDetails { + // struct team_log.GovernancePolicyZipPartDownloadedDetails (team_log_generated.stone) + + @Nonnull + protected final String governancePolicyId; + @Nonnull + protected final String name; + @Nullable + protected final PolicyType policyType; + @Nonnull + protected final String exportName; + @Nullable + protected final String part; + + /** + * Downloaded content from a policy. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * @param policyType Policy type. + * @param part Part. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyZipPartDownloadedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName, @Nullable PolicyType policyType, @Nullable String part) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.policyType = policyType; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + this.part = part; + } + + /** + * Downloaded content from a policy. + * + *

The default values for unset fields will be used.

+ * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyZipPartDownloadedDetails(@Nonnull String governancePolicyId, @Nonnull String name, @Nonnull String exportName) { + this(governancePolicyId, name, exportName, null, null); + } + + /** + * Policy ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGovernancePolicyId() { + return governancePolicyId; + } + + /** + * Policy name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Export name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExportName() { + return exportName; + } + + /** + * Policy type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PolicyType getPolicyType() { + return policyType; + } + + /** + * Part. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPart() { + return part; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param governancePolicyId Policy ID. Must not be {@code null}. + * @param name Policy name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String governancePolicyId, String name, String exportName) { + return new Builder(governancePolicyId, name, exportName); + } + + /** + * Builder for {@link GovernancePolicyZipPartDownloadedDetails}. + */ + public static class Builder { + protected final String governancePolicyId; + protected final String name; + protected final String exportName; + + protected PolicyType policyType; + protected String part; + + protected Builder(String governancePolicyId, String name, String exportName) { + if (governancePolicyId == null) { + throw new IllegalArgumentException("Required value for 'governancePolicyId' is null"); + } + this.governancePolicyId = governancePolicyId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + this.policyType = null; + this.part = null; + } + + /** + * Set value for optional field. + * + * @param policyType Policy type. + * + * @return this builder + */ + public Builder withPolicyType(PolicyType policyType) { + this.policyType = policyType; + return this; + } + + /** + * Set value for optional field. + * + * @param part Part. + * + * @return this builder + */ + public Builder withPart(String part) { + this.part = part; + return this; + } + + /** + * Builds an instance of {@link + * GovernancePolicyZipPartDownloadedDetails} configured with this + * builder's values + * + * @return new instance of {@link + * GovernancePolicyZipPartDownloadedDetails} + */ + public GovernancePolicyZipPartDownloadedDetails build() { + return new GovernancePolicyZipPartDownloadedDetails(governancePolicyId, name, exportName, policyType, part); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.governancePolicyId, + this.name, + this.policyType, + this.exportName, + this.part + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyZipPartDownloadedDetails other = (GovernancePolicyZipPartDownloadedDetails) obj; + return ((this.governancePolicyId == other.governancePolicyId) || (this.governancePolicyId.equals(other.governancePolicyId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.exportName == other.exportName) || (this.exportName.equals(other.exportName))) + && ((this.policyType == other.policyType) || (this.policyType != null && this.policyType.equals(other.policyType))) + && ((this.part == other.part) || (this.part != null && this.part.equals(other.part))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyZipPartDownloadedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("governance_policy_id"); + StoneSerializers.string().serialize(value.governancePolicyId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("export_name"); + StoneSerializers.string().serialize(value.exportName, g); + if (value.policyType != null) { + g.writeFieldName("policy_type"); + StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).serialize(value.policyType, g); + } + if (value.part != null) { + g.writeFieldName("part"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.part, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyZipPartDownloadedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyZipPartDownloadedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_governancePolicyId = null; + String f_name = null; + String f_exportName = null; + PolicyType f_policyType = null; + String f_part = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("governance_policy_id".equals(field)) { + f_governancePolicyId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("export_name".equals(field)) { + f_exportName = StoneSerializers.string().deserialize(p); + } + else if ("policy_type".equals(field)) { + f_policyType = StoneSerializers.nullable(PolicyType.Serializer.INSTANCE).deserialize(p); + } + else if ("part".equals(field)) { + f_part = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_governancePolicyId == null) { + throw new JsonParseException(p, "Required field \"governance_policy_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_exportName == null) { + throw new JsonParseException(p, "Required field \"export_name\" missing."); + } + value = new GovernancePolicyZipPartDownloadedDetails(f_governancePolicyId, f_name, f_exportName, f_policyType, f_part); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedType.java new file mode 100644 index 000000000..4999207b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GovernancePolicyZipPartDownloadedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GovernancePolicyZipPartDownloadedType { + // struct team_log.GovernancePolicyZipPartDownloadedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GovernancePolicyZipPartDownloadedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GovernancePolicyZipPartDownloadedType other = (GovernancePolicyZipPartDownloadedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GovernancePolicyZipPartDownloadedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GovernancePolicyZipPartDownloadedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GovernancePolicyZipPartDownloadedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GovernancePolicyZipPartDownloadedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddExternalIdDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddExternalIdDetails.java new file mode 100644 index 000000000..faf764f66 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddExternalIdDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added external ID for group. + */ +public class GroupAddExternalIdDetails { + // struct team_log.GroupAddExternalIdDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + + /** + * Added external ID for group. + * + * @param newValue Current external id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupAddExternalIdDetails(@Nonnull String newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Current external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupAddExternalIdDetails other = (GroupAddExternalIdDetails) obj; + return (this.newValue == other.newValue) || (this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupAddExternalIdDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupAddExternalIdDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupAddExternalIdDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new GroupAddExternalIdDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddExternalIdType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddExternalIdType.java new file mode 100644 index 000000000..84d6bcb5d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddExternalIdType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupAddExternalIdType { + // struct team_log.GroupAddExternalIdType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupAddExternalIdType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupAddExternalIdType other = (GroupAddExternalIdType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupAddExternalIdType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupAddExternalIdType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupAddExternalIdType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupAddExternalIdType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddMemberDetails.java new file mode 100644 index 000000000..3a135fd34 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddMemberDetails.java @@ -0,0 +1,141 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Added team members to group. + */ +public class GroupAddMemberDetails { + // struct team_log.GroupAddMemberDetails (team_log_generated.stone) + + protected final boolean isGroupOwner; + + /** + * Added team members to group. + * + * @param isGroupOwner Is group owner. + */ + public GroupAddMemberDetails(boolean isGroupOwner) { + this.isGroupOwner = isGroupOwner; + } + + /** + * Is group owner. + * + * @return value for this field. + */ + public boolean getIsGroupOwner() { + return isGroupOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isGroupOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupAddMemberDetails other = (GroupAddMemberDetails) obj; + return this.isGroupOwner == other.isGroupOwner; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupAddMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("is_group_owner"); + StoneSerializers.boolean_().serialize(value.isGroupOwner, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupAddMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupAddMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isGroupOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_group_owner".equals(field)) { + f_isGroupOwner = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_isGroupOwner == null) { + throw new JsonParseException(p, "Required field \"is_group_owner\" missing."); + } + value = new GroupAddMemberDetails(f_isGroupOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddMemberType.java new file mode 100644 index 000000000..1b5a3a19d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupAddMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupAddMemberType { + // struct team_log.GroupAddMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupAddMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupAddMemberType other = (GroupAddMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupAddMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupAddMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupAddMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupAddMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeExternalIdDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeExternalIdDetails.java new file mode 100644 index 000000000..6cb4cdbcc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeExternalIdDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed external ID for group. + */ +public class GroupChangeExternalIdDetails { + // struct team_log.GroupChangeExternalIdDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + @Nonnull + protected final String previousValue; + + /** + * Changed external ID for group. + * + * @param newValue Current external id. Must not be {@code null}. + * @param previousValue Old external id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupChangeExternalIdDetails(@Nonnull String newValue, @Nonnull String previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * Current external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + /** + * Old external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupChangeExternalIdDetails other = (GroupChangeExternalIdDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupChangeExternalIdDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupChangeExternalIdDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupChangeExternalIdDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new GroupChangeExternalIdDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeExternalIdType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeExternalIdType.java new file mode 100644 index 000000000..a42231524 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeExternalIdType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupChangeExternalIdType { + // struct team_log.GroupChangeExternalIdType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupChangeExternalIdType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupChangeExternalIdType other = (GroupChangeExternalIdType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupChangeExternalIdType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupChangeExternalIdType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupChangeExternalIdType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupChangeExternalIdType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeManagementTypeDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeManagementTypeDetails.java new file mode 100644 index 000000000..31b72d83a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeManagementTypeDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.GroupManagementType; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed group management type. + */ +public class GroupChangeManagementTypeDetails { + // struct team_log.GroupChangeManagementTypeDetails (team_log_generated.stone) + + @Nonnull + protected final GroupManagementType newValue; + @Nullable + protected final GroupManagementType previousValue; + + /** + * Changed group management type. + * + * @param newValue New group management type. Must not be {@code null}. + * @param previousValue Previous group management type. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupChangeManagementTypeDetails(@Nonnull GroupManagementType newValue, @Nullable GroupManagementType previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed group management type. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New group management type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupChangeManagementTypeDetails(@Nonnull GroupManagementType newValue) { + this(newValue, null); + } + + /** + * New group management type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupManagementType getNewValue() { + return newValue; + } + + /** + * Previous group management type. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GroupManagementType getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupChangeManagementTypeDetails other = (GroupChangeManagementTypeDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupChangeManagementTypeDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + GroupManagementType.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(GroupManagementType.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupChangeManagementTypeDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupChangeManagementTypeDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupManagementType f_newValue = null; + GroupManagementType f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = GroupManagementType.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(GroupManagementType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new GroupChangeManagementTypeDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeManagementTypeType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeManagementTypeType.java new file mode 100644 index 000000000..5de53782f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeManagementTypeType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupChangeManagementTypeType { + // struct team_log.GroupChangeManagementTypeType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupChangeManagementTypeType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupChangeManagementTypeType other = (GroupChangeManagementTypeType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupChangeManagementTypeType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupChangeManagementTypeType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupChangeManagementTypeType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupChangeManagementTypeType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeMemberRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeMemberRoleDetails.java new file mode 100644 index 000000000..a7e7da19a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeMemberRoleDetails.java @@ -0,0 +1,141 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Changed manager permissions of group member. + */ +public class GroupChangeMemberRoleDetails { + // struct team_log.GroupChangeMemberRoleDetails (team_log_generated.stone) + + protected final boolean isGroupOwner; + + /** + * Changed manager permissions of group member. + * + * @param isGroupOwner Is group owner. + */ + public GroupChangeMemberRoleDetails(boolean isGroupOwner) { + this.isGroupOwner = isGroupOwner; + } + + /** + * Is group owner. + * + * @return value for this field. + */ + public boolean getIsGroupOwner() { + return isGroupOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isGroupOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupChangeMemberRoleDetails other = (GroupChangeMemberRoleDetails) obj; + return this.isGroupOwner == other.isGroupOwner; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupChangeMemberRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("is_group_owner"); + StoneSerializers.boolean_().serialize(value.isGroupOwner, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupChangeMemberRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupChangeMemberRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isGroupOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_group_owner".equals(field)) { + f_isGroupOwner = StoneSerializers.boolean_().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_isGroupOwner == null) { + throw new JsonParseException(p, "Required field \"is_group_owner\" missing."); + } + value = new GroupChangeMemberRoleDetails(f_isGroupOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeMemberRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeMemberRoleType.java new file mode 100644 index 000000000..354f7912b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupChangeMemberRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupChangeMemberRoleType { + // struct team_log.GroupChangeMemberRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupChangeMemberRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupChangeMemberRoleType other = (GroupChangeMemberRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupChangeMemberRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupChangeMemberRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupChangeMemberRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupChangeMemberRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupCreateDetails.java new file mode 100644 index 000000000..f087a4591 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupCreateDetails.java @@ -0,0 +1,239 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Created group. + */ +public class GroupCreateDetails { + // struct team_log.GroupCreateDetails (team_log_generated.stone) + + @Nullable + protected final Boolean isCompanyManaged; + @Nullable + protected final GroupJoinPolicy joinPolicy; + + /** + * Created group. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param isCompanyManaged Is company managed group. + * @param joinPolicy Group join policy. + */ + public GroupCreateDetails(@Nullable Boolean isCompanyManaged, @Nullable GroupJoinPolicy joinPolicy) { + this.isCompanyManaged = isCompanyManaged; + this.joinPolicy = joinPolicy; + } + + /** + * Created group. + * + *

The default values for unset fields will be used.

+ */ + public GroupCreateDetails() { + this(null, null); + } + + /** + * Is company managed group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsCompanyManaged() { + return isCompanyManaged; + } + + /** + * Group join policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GroupJoinPolicy getJoinPolicy() { + return joinPolicy; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link GroupCreateDetails}. + */ + public static class Builder { + + protected Boolean isCompanyManaged; + protected GroupJoinPolicy joinPolicy; + + protected Builder() { + this.isCompanyManaged = null; + this.joinPolicy = null; + } + + /** + * Set value for optional field. + * + * @param isCompanyManaged Is company managed group. + * + * @return this builder + */ + public Builder withIsCompanyManaged(Boolean isCompanyManaged) { + this.isCompanyManaged = isCompanyManaged; + return this; + } + + /** + * Set value for optional field. + * + * @param joinPolicy Group join policy. + * + * @return this builder + */ + public Builder withJoinPolicy(GroupJoinPolicy joinPolicy) { + this.joinPolicy = joinPolicy; + return this; + } + + /** + * Builds an instance of {@link GroupCreateDetails} configured with this + * builder's values + * + * @return new instance of {@link GroupCreateDetails} + */ + public GroupCreateDetails build() { + return new GroupCreateDetails(isCompanyManaged, joinPolicy); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isCompanyManaged, + this.joinPolicy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupCreateDetails other = (GroupCreateDetails) obj; + return ((this.isCompanyManaged == other.isCompanyManaged) || (this.isCompanyManaged != null && this.isCompanyManaged.equals(other.isCompanyManaged))) + && ((this.joinPolicy == other.joinPolicy) || (this.joinPolicy != null && this.joinPolicy.equals(other.joinPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.isCompanyManaged != null) { + g.writeFieldName("is_company_managed"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isCompanyManaged, g); + } + if (value.joinPolicy != null) { + g.writeFieldName("join_policy"); + StoneSerializers.nullable(GroupJoinPolicy.Serializer.INSTANCE).serialize(value.joinPolicy, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isCompanyManaged = null; + GroupJoinPolicy f_joinPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_company_managed".equals(field)) { + f_isCompanyManaged = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("join_policy".equals(field)) { + f_joinPolicy = StoneSerializers.nullable(GroupJoinPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new GroupCreateDetails(f_isCompanyManaged, f_joinPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupCreateType.java new file mode 100644 index 000000000..8b57d8523 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupCreateType { + // struct team_log.GroupCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupCreateType other = (GroupCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDeleteDetails.java new file mode 100644 index 000000000..826c3202b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDeleteDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Deleted group. + */ +public class GroupDeleteDetails { + // struct team_log.GroupDeleteDetails (team_log_generated.stone) + + @Nullable + protected final Boolean isCompanyManaged; + + /** + * Deleted group. + * + * @param isCompanyManaged Is company managed group. + */ + public GroupDeleteDetails(@Nullable Boolean isCompanyManaged) { + this.isCompanyManaged = isCompanyManaged; + } + + /** + * Deleted group. + * + *

The default values for unset fields will be used.

+ */ + public GroupDeleteDetails() { + this(null); + } + + /** + * Is company managed group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsCompanyManaged() { + return isCompanyManaged; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isCompanyManaged + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupDeleteDetails other = (GroupDeleteDetails) obj; + return (this.isCompanyManaged == other.isCompanyManaged) || (this.isCompanyManaged != null && this.isCompanyManaged.equals(other.isCompanyManaged)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.isCompanyManaged != null) { + g.writeFieldName("is_company_managed"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isCompanyManaged, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isCompanyManaged = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_company_managed".equals(field)) { + f_isCompanyManaged = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new GroupDeleteDetails(f_isCompanyManaged); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDeleteType.java new file mode 100644 index 000000000..490a63589 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupDeleteType { + // struct team_log.GroupDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupDeleteType other = (GroupDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedDetails.java new file mode 100644 index 000000000..93f7d54a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Updated group. + */ +public class GroupDescriptionUpdatedDetails { + // struct team_log.GroupDescriptionUpdatedDetails (team_log_generated.stone) + + + /** + * Updated group. + */ + public GroupDescriptionUpdatedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupDescriptionUpdatedDetails other = (GroupDescriptionUpdatedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupDescriptionUpdatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupDescriptionUpdatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupDescriptionUpdatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new GroupDescriptionUpdatedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedType.java new file mode 100644 index 000000000..43b2f0feb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupDescriptionUpdatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupDescriptionUpdatedType { + // struct team_log.GroupDescriptionUpdatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupDescriptionUpdatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupDescriptionUpdatedType other = (GroupDescriptionUpdatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupDescriptionUpdatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupDescriptionUpdatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupDescriptionUpdatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupDescriptionUpdatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicy.java new file mode 100644 index 000000000..8944c7492 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicy.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupJoinPolicy { + // union team_log.GroupJoinPolicy (team_log_generated.stone) + OPEN, + REQUEST_TO_JOIN, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupJoinPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case OPEN: { + g.writeString("open"); + break; + } + case REQUEST_TO_JOIN: { + g.writeString("request_to_join"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GroupJoinPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + GroupJoinPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("open".equals(tag)) { + value = GroupJoinPolicy.OPEN; + } + else if ("request_to_join".equals(tag)) { + value = GroupJoinPolicy.REQUEST_TO_JOIN; + } + else { + value = GroupJoinPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails.java new file mode 100644 index 000000000..500af694a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedDetails.java @@ -0,0 +1,239 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Updated group join policy. + */ +public class GroupJoinPolicyUpdatedDetails { + // struct team_log.GroupJoinPolicyUpdatedDetails (team_log_generated.stone) + + @Nullable + protected final Boolean isCompanyManaged; + @Nullable + protected final GroupJoinPolicy joinPolicy; + + /** + * Updated group join policy. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param isCompanyManaged Is company managed group. + * @param joinPolicy Group join policy. + */ + public GroupJoinPolicyUpdatedDetails(@Nullable Boolean isCompanyManaged, @Nullable GroupJoinPolicy joinPolicy) { + this.isCompanyManaged = isCompanyManaged; + this.joinPolicy = joinPolicy; + } + + /** + * Updated group join policy. + * + *

The default values for unset fields will be used.

+ */ + public GroupJoinPolicyUpdatedDetails() { + this(null, null); + } + + /** + * Is company managed group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsCompanyManaged() { + return isCompanyManaged; + } + + /** + * Group join policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GroupJoinPolicy getJoinPolicy() { + return joinPolicy; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link GroupJoinPolicyUpdatedDetails}. + */ + public static class Builder { + + protected Boolean isCompanyManaged; + protected GroupJoinPolicy joinPolicy; + + protected Builder() { + this.isCompanyManaged = null; + this.joinPolicy = null; + } + + /** + * Set value for optional field. + * + * @param isCompanyManaged Is company managed group. + * + * @return this builder + */ + public Builder withIsCompanyManaged(Boolean isCompanyManaged) { + this.isCompanyManaged = isCompanyManaged; + return this; + } + + /** + * Set value for optional field. + * + * @param joinPolicy Group join policy. + * + * @return this builder + */ + public Builder withJoinPolicy(GroupJoinPolicy joinPolicy) { + this.joinPolicy = joinPolicy; + return this; + } + + /** + * Builds an instance of {@link GroupJoinPolicyUpdatedDetails} + * configured with this builder's values + * + * @return new instance of {@link GroupJoinPolicyUpdatedDetails} + */ + public GroupJoinPolicyUpdatedDetails build() { + return new GroupJoinPolicyUpdatedDetails(isCompanyManaged, joinPolicy); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isCompanyManaged, + this.joinPolicy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupJoinPolicyUpdatedDetails other = (GroupJoinPolicyUpdatedDetails) obj; + return ((this.isCompanyManaged == other.isCompanyManaged) || (this.isCompanyManaged != null && this.isCompanyManaged.equals(other.isCompanyManaged))) + && ((this.joinPolicy == other.joinPolicy) || (this.joinPolicy != null && this.joinPolicy.equals(other.joinPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupJoinPolicyUpdatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.isCompanyManaged != null) { + g.writeFieldName("is_company_managed"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isCompanyManaged, g); + } + if (value.joinPolicy != null) { + g.writeFieldName("join_policy"); + StoneSerializers.nullable(GroupJoinPolicy.Serializer.INSTANCE).serialize(value.joinPolicy, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupJoinPolicyUpdatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupJoinPolicyUpdatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isCompanyManaged = null; + GroupJoinPolicy f_joinPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_company_managed".equals(field)) { + f_isCompanyManaged = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("join_policy".equals(field)) { + f_joinPolicy = StoneSerializers.nullable(GroupJoinPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new GroupJoinPolicyUpdatedDetails(f_isCompanyManaged, f_joinPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedType.java new file mode 100644 index 000000000..13b8953b1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupJoinPolicyUpdatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupJoinPolicyUpdatedType { + // struct team_log.GroupJoinPolicyUpdatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupJoinPolicyUpdatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupJoinPolicyUpdatedType other = (GroupJoinPolicyUpdatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupJoinPolicyUpdatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupJoinPolicyUpdatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupJoinPolicyUpdatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupJoinPolicyUpdatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupLogInfo.java new file mode 100644 index 000000000..12e67cc87 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupLogInfo.java @@ -0,0 +1,285 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Group's logged information. + */ +public class GroupLogInfo { + // struct team_log.GroupLogInfo (team_log_generated.stone) + + @Nullable + protected final String groupId; + @Nonnull + protected final String displayName; + @Nullable + protected final String externalId; + + /** + * Group's logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param displayName The name of this group. Must not be {@code null}. + * @param groupId The unique id of this group. + * @param externalId External group ID. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupLogInfo(@Nonnull String displayName, @Nullable String groupId, @Nullable String externalId) { + this.groupId = groupId; + if (displayName == null) { + throw new IllegalArgumentException("Required value for 'displayName' is null"); + } + this.displayName = displayName; + this.externalId = externalId; + } + + /** + * Group's logged information. + * + *

The default values for unset fields will be used.

+ * + * @param displayName The name of this group. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupLogInfo(@Nonnull String displayName) { + this(displayName, null, null); + } + + /** + * The name of this group. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDisplayName() { + return displayName; + } + + /** + * The unique id of this group. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getGroupId() { + return groupId; + } + + /** + * External group ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExternalId() { + return externalId; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param displayName The name of this group. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String displayName) { + return new Builder(displayName); + } + + /** + * Builder for {@link GroupLogInfo}. + */ + public static class Builder { + protected final String displayName; + + protected String groupId; + protected String externalId; + + protected Builder(String displayName) { + if (displayName == null) { + throw new IllegalArgumentException("Required value for 'displayName' is null"); + } + this.displayName = displayName; + this.groupId = null; + this.externalId = null; + } + + /** + * Set value for optional field. + * + * @param groupId The unique id of this group. + * + * @return this builder + */ + public Builder withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Set value for optional field. + * + * @param externalId External group ID. + * + * @return this builder + */ + public Builder withExternalId(String externalId) { + this.externalId = externalId; + return this; + } + + /** + * Builds an instance of {@link GroupLogInfo} configured with this + * builder's values + * + * @return new instance of {@link GroupLogInfo} + */ + public GroupLogInfo build() { + return new GroupLogInfo(displayName, groupId, externalId); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.groupId, + this.displayName, + this.externalId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupLogInfo other = (GroupLogInfo) obj; + return ((this.displayName == other.displayName) || (this.displayName.equals(other.displayName))) + && ((this.groupId == other.groupId) || (this.groupId != null && this.groupId.equals(other.groupId))) + && ((this.externalId == other.externalId) || (this.externalId != null && this.externalId.equals(other.externalId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("display_name"); + StoneSerializers.string().serialize(value.displayName, g); + if (value.groupId != null) { + g.writeFieldName("group_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.groupId, g); + } + if (value.externalId != null) { + g.writeFieldName("external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.externalId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_displayName = null; + String f_groupId = null; + String f_externalId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("display_name".equals(field)) { + f_displayName = StoneSerializers.string().deserialize(p); + } + else if ("group_id".equals(field)) { + f_groupId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("external_id".equals(field)) { + f_externalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_displayName == null) { + throw new JsonParseException(p, "Required field \"display_name\" missing."); + } + value = new GroupLogInfo(f_displayName, f_groupId, f_externalId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupMovedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupMovedDetails.java new file mode 100644 index 000000000..78e888288 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupMovedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Moved group. + */ +public class GroupMovedDetails { + // struct team_log.GroupMovedDetails (team_log_generated.stone) + + + /** + * Moved group. + */ + public GroupMovedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMovedDetails other = (GroupMovedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMovedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMovedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMovedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new GroupMovedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupMovedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupMovedType.java new file mode 100644 index 000000000..941d0b177 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupMovedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupMovedType { + // struct team_log.GroupMovedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupMovedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupMovedType other = (GroupMovedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupMovedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupMovedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupMovedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupMovedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveExternalIdDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveExternalIdDetails.java new file mode 100644 index 000000000..025918ad9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveExternalIdDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed external ID for group. + */ +public class GroupRemoveExternalIdDetails { + // struct team_log.GroupRemoveExternalIdDetails (team_log_generated.stone) + + @Nonnull + protected final String previousValue; + + /** + * Removed external ID for group. + * + * @param previousValue Old external id. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupRemoveExternalIdDetails(@Nonnull String previousValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * Old external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupRemoveExternalIdDetails other = (GroupRemoveExternalIdDetails) obj; + return (this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupRemoveExternalIdDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupRemoveExternalIdDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupRemoveExternalIdDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new GroupRemoveExternalIdDetails(f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveExternalIdType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveExternalIdType.java new file mode 100644 index 000000000..d071f6a9f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveExternalIdType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupRemoveExternalIdType { + // struct team_log.GroupRemoveExternalIdType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupRemoveExternalIdType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupRemoveExternalIdType other = (GroupRemoveExternalIdType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupRemoveExternalIdType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupRemoveExternalIdType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupRemoveExternalIdType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupRemoveExternalIdType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveMemberDetails.java new file mode 100644 index 000000000..bea30cde2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveMemberDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed team members from group. + */ +public class GroupRemoveMemberDetails { + // struct team_log.GroupRemoveMemberDetails (team_log_generated.stone) + + + /** + * Removed team members from group. + */ + public GroupRemoveMemberDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupRemoveMemberDetails other = (GroupRemoveMemberDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupRemoveMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupRemoveMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupRemoveMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new GroupRemoveMemberDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveMemberType.java new file mode 100644 index 000000000..e1217d714 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRemoveMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupRemoveMemberType { + // struct team_log.GroupRemoveMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupRemoveMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupRemoveMemberType other = (GroupRemoveMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupRemoveMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupRemoveMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupRemoveMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupRemoveMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRenameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRenameDetails.java new file mode 100644 index 000000000..98636d656 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRenameDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Renamed group. + */ +public class GroupRenameDetails { + // struct team_log.GroupRenameDetails (team_log_generated.stone) + + @Nonnull + protected final String previousValue; + @Nonnull + protected final String newValue; + + /** + * Renamed group. + * + * @param previousValue Previous display name. Must not be {@code null}. + * @param newValue New display name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupRenameDetails(@Nonnull String previousValue, @Nonnull String newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous display name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + /** + * New display name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupRenameDetails other = (GroupRenameDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupRenameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupRenameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupRenameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new GroupRenameDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRenameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRenameType.java new file mode 100644 index 000000000..cb933fb9b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupRenameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupRenameType { + // struct team_log.GroupRenameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupRenameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupRenameType other = (GroupRenameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupRenameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupRenameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupRenameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupRenameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyDetails.java new file mode 100644 index 000000000..e7adabb93 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyDetails.java @@ -0,0 +1,196 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.GroupCreation; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed who can create groups. + */ +public class GroupUserManagementChangePolicyDetails { + // struct team_log.GroupUserManagementChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final GroupCreation newValue; + @Nullable + protected final GroupCreation previousValue; + + /** + * Changed who can create groups. + * + * @param newValue New group users management policy. Must not be {@code + * null}. + * @param previousValue Previous group users management policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupUserManagementChangePolicyDetails(@Nonnull GroupCreation newValue, @Nullable GroupCreation previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed who can create groups. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New group users management policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupUserManagementChangePolicyDetails(@Nonnull GroupCreation newValue) { + this(newValue, null); + } + + /** + * New group users management policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupCreation getNewValue() { + return newValue; + } + + /** + * Previous group users management policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GroupCreation getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupUserManagementChangePolicyDetails other = (GroupUserManagementChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupUserManagementChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + GroupCreation.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(GroupCreation.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupUserManagementChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupUserManagementChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + GroupCreation f_newValue = null; + GroupCreation f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = GroupCreation.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(GroupCreation.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new GroupUserManagementChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyType.java new file mode 100644 index 000000000..ba8487257 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GroupUserManagementChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GroupUserManagementChangePolicyType { + // struct team_log.GroupUserManagementChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GroupUserManagementChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GroupUserManagementChangePolicyType other = (GroupUserManagementChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupUserManagementChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GroupUserManagementChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GroupUserManagementChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GroupUserManagementChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails.java new file mode 100644 index 000000000..3bda45b11 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminChangeStatusDetails.java @@ -0,0 +1,382 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed guest team admin status. + */ +public class GuestAdminChangeStatusDetails { + // struct team_log.GuestAdminChangeStatusDetails (team_log_generated.stone) + + protected final boolean isGuest; + @Nullable + protected final String guestTeamName; + @Nullable + protected final String hostTeamName; + @Nonnull + protected final TrustedTeamsRequestState previousValue; + @Nonnull + protected final TrustedTeamsRequestState newValue; + @Nonnull + protected final TrustedTeamsRequestAction actionDetails; + + /** + * Changed guest team admin status. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param isGuest True for guest, false for host. + * @param previousValue Previous request state. Must not be {@code null}. + * @param newValue New request state. Must not be {@code null}. + * @param actionDetails Action details. Must not be {@code null}. + * @param guestTeamName The name of the guest team. + * @param hostTeamName The name of the host team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GuestAdminChangeStatusDetails(boolean isGuest, @Nonnull TrustedTeamsRequestState previousValue, @Nonnull TrustedTeamsRequestState newValue, @Nonnull TrustedTeamsRequestAction actionDetails, @Nullable String guestTeamName, @Nullable String hostTeamName) { + this.isGuest = isGuest; + this.guestTeamName = guestTeamName; + this.hostTeamName = hostTeamName; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (actionDetails == null) { + throw new IllegalArgumentException("Required value for 'actionDetails' is null"); + } + this.actionDetails = actionDetails; + } + + /** + * Changed guest team admin status. + * + *

The default values for unset fields will be used.

+ * + * @param isGuest True for guest, false for host. + * @param previousValue Previous request state. Must not be {@code null}. + * @param newValue New request state. Must not be {@code null}. + * @param actionDetails Action details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GuestAdminChangeStatusDetails(boolean isGuest, @Nonnull TrustedTeamsRequestState previousValue, @Nonnull TrustedTeamsRequestState newValue, @Nonnull TrustedTeamsRequestAction actionDetails) { + this(isGuest, previousValue, newValue, actionDetails, null, null); + } + + /** + * True for guest, false for host. + * + * @return value for this field. + */ + public boolean getIsGuest() { + return isGuest; + } + + /** + * Previous request state. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TrustedTeamsRequestState getPreviousValue() { + return previousValue; + } + + /** + * New request state. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TrustedTeamsRequestState getNewValue() { + return newValue; + } + + /** + * Action details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TrustedTeamsRequestAction getActionDetails() { + return actionDetails; + } + + /** + * The name of the guest team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getGuestTeamName() { + return guestTeamName; + } + + /** + * The name of the host team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getHostTeamName() { + return hostTeamName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param isGuest True for guest, false for host. + * @param previousValue Previous request state. Must not be {@code null}. + * @param newValue New request state. Must not be {@code null}. + * @param actionDetails Action details. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails) { + return new Builder(isGuest, previousValue, newValue, actionDetails); + } + + /** + * Builder for {@link GuestAdminChangeStatusDetails}. + */ + public static class Builder { + protected final boolean isGuest; + protected final TrustedTeamsRequestState previousValue; + protected final TrustedTeamsRequestState newValue; + protected final TrustedTeamsRequestAction actionDetails; + + protected String guestTeamName; + protected String hostTeamName; + + protected Builder(boolean isGuest, TrustedTeamsRequestState previousValue, TrustedTeamsRequestState newValue, TrustedTeamsRequestAction actionDetails) { + this.isGuest = isGuest; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (actionDetails == null) { + throw new IllegalArgumentException("Required value for 'actionDetails' is null"); + } + this.actionDetails = actionDetails; + this.guestTeamName = null; + this.hostTeamName = null; + } + + /** + * Set value for optional field. + * + * @param guestTeamName The name of the guest team. + * + * @return this builder + */ + public Builder withGuestTeamName(String guestTeamName) { + this.guestTeamName = guestTeamName; + return this; + } + + /** + * Set value for optional field. + * + * @param hostTeamName The name of the host team. + * + * @return this builder + */ + public Builder withHostTeamName(String hostTeamName) { + this.hostTeamName = hostTeamName; + return this; + } + + /** + * Builds an instance of {@link GuestAdminChangeStatusDetails} + * configured with this builder's values + * + * @return new instance of {@link GuestAdminChangeStatusDetails} + */ + public GuestAdminChangeStatusDetails build() { + return new GuestAdminChangeStatusDetails(isGuest, previousValue, newValue, actionDetails, guestTeamName, hostTeamName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isGuest, + this.guestTeamName, + this.hostTeamName, + this.previousValue, + this.newValue, + this.actionDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GuestAdminChangeStatusDetails other = (GuestAdminChangeStatusDetails) obj; + return (this.isGuest == other.isGuest) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.actionDetails == other.actionDetails) || (this.actionDetails.equals(other.actionDetails))) + && ((this.guestTeamName == other.guestTeamName) || (this.guestTeamName != null && this.guestTeamName.equals(other.guestTeamName))) + && ((this.hostTeamName == other.hostTeamName) || (this.hostTeamName != null && this.hostTeamName.equals(other.hostTeamName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GuestAdminChangeStatusDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("is_guest"); + StoneSerializers.boolean_().serialize(value.isGuest, g); + g.writeFieldName("previous_value"); + TrustedTeamsRequestState.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + TrustedTeamsRequestState.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("action_details"); + TrustedTeamsRequestAction.Serializer.INSTANCE.serialize(value.actionDetails, g); + if (value.guestTeamName != null) { + g.writeFieldName("guest_team_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.guestTeamName, g); + } + if (value.hostTeamName != null) { + g.writeFieldName("host_team_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.hostTeamName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GuestAdminChangeStatusDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GuestAdminChangeStatusDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Boolean f_isGuest = null; + TrustedTeamsRequestState f_previousValue = null; + TrustedTeamsRequestState f_newValue = null; + TrustedTeamsRequestAction f_actionDetails = null; + String f_guestTeamName = null; + String f_hostTeamName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("is_guest".equals(field)) { + f_isGuest = StoneSerializers.boolean_().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = TrustedTeamsRequestState.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = TrustedTeamsRequestState.Serializer.INSTANCE.deserialize(p); + } + else if ("action_details".equals(field)) { + f_actionDetails = TrustedTeamsRequestAction.Serializer.INSTANCE.deserialize(p); + } + else if ("guest_team_name".equals(field)) { + f_guestTeamName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("host_team_name".equals(field)) { + f_hostTeamName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_isGuest == null) { + throw new JsonParseException(p, "Required field \"is_guest\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_actionDetails == null) { + throw new JsonParseException(p, "Required field \"action_details\" missing."); + } + value = new GuestAdminChangeStatusDetails(f_isGuest, f_previousValue, f_newValue, f_actionDetails, f_guestTeamName, f_hostTeamName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminChangeStatusType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminChangeStatusType.java new file mode 100644 index 000000000..eee3acdf5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminChangeStatusType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GuestAdminChangeStatusType { + // struct team_log.GuestAdminChangeStatusType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GuestAdminChangeStatusType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GuestAdminChangeStatusType other = (GuestAdminChangeStatusType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GuestAdminChangeStatusType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GuestAdminChangeStatusType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GuestAdminChangeStatusType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GuestAdminChangeStatusType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails.java new file mode 100644 index 000000000..226ed2399 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsDetails.java @@ -0,0 +1,241 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Started trusted team admin session. + */ +public class GuestAdminSignedInViaTrustedTeamsDetails { + // struct team_log.GuestAdminSignedInViaTrustedTeamsDetails (team_log_generated.stone) + + @Nullable + protected final String teamName; + @Nullable + protected final String trustedTeamName; + + /** + * Started trusted team admin session. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param teamName Host team name. + * @param trustedTeamName Trusted team name. + */ + public GuestAdminSignedInViaTrustedTeamsDetails(@Nullable String teamName, @Nullable String trustedTeamName) { + this.teamName = teamName; + this.trustedTeamName = trustedTeamName; + } + + /** + * Started trusted team admin session. + * + *

The default values for unset fields will be used.

+ */ + public GuestAdminSignedInViaTrustedTeamsDetails() { + this(null, null); + } + + /** + * Host team name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamName() { + return teamName; + } + + /** + * Trusted team name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTrustedTeamName() { + return trustedTeamName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link GuestAdminSignedInViaTrustedTeamsDetails}. + */ + public static class Builder { + + protected String teamName; + protected String trustedTeamName; + + protected Builder() { + this.teamName = null; + this.trustedTeamName = null; + } + + /** + * Set value for optional field. + * + * @param teamName Host team name. + * + * @return this builder + */ + public Builder withTeamName(String teamName) { + this.teamName = teamName; + return this; + } + + /** + * Set value for optional field. + * + * @param trustedTeamName Trusted team name. + * + * @return this builder + */ + public Builder withTrustedTeamName(String trustedTeamName) { + this.trustedTeamName = trustedTeamName; + return this; + } + + /** + * Builds an instance of {@link + * GuestAdminSignedInViaTrustedTeamsDetails} configured with this + * builder's values + * + * @return new instance of {@link + * GuestAdminSignedInViaTrustedTeamsDetails} + */ + public GuestAdminSignedInViaTrustedTeamsDetails build() { + return new GuestAdminSignedInViaTrustedTeamsDetails(teamName, trustedTeamName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamName, + this.trustedTeamName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GuestAdminSignedInViaTrustedTeamsDetails other = (GuestAdminSignedInViaTrustedTeamsDetails) obj; + return ((this.teamName == other.teamName) || (this.teamName != null && this.teamName.equals(other.teamName))) + && ((this.trustedTeamName == other.trustedTeamName) || (this.trustedTeamName != null && this.trustedTeamName.equals(other.trustedTeamName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GuestAdminSignedInViaTrustedTeamsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.teamName != null) { + g.writeFieldName("team_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamName, g); + } + if (value.trustedTeamName != null) { + g.writeFieldName("trusted_team_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.trustedTeamName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GuestAdminSignedInViaTrustedTeamsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GuestAdminSignedInViaTrustedTeamsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamName = null; + String f_trustedTeamName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_name".equals(field)) { + f_teamName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("trusted_team_name".equals(field)) { + f_trustedTeamName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new GuestAdminSignedInViaTrustedTeamsDetails(f_teamName, f_trustedTeamName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsType.java new file mode 100644 index 000000000..e4d077d81 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedInViaTrustedTeamsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GuestAdminSignedInViaTrustedTeamsType { + // struct team_log.GuestAdminSignedInViaTrustedTeamsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GuestAdminSignedInViaTrustedTeamsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GuestAdminSignedInViaTrustedTeamsType other = (GuestAdminSignedInViaTrustedTeamsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GuestAdminSignedInViaTrustedTeamsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GuestAdminSignedInViaTrustedTeamsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GuestAdminSignedInViaTrustedTeamsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GuestAdminSignedInViaTrustedTeamsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails.java new file mode 100644 index 000000000..4f5114742 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsDetails.java @@ -0,0 +1,241 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Ended trusted team admin session. + */ +public class GuestAdminSignedOutViaTrustedTeamsDetails { + // struct team_log.GuestAdminSignedOutViaTrustedTeamsDetails (team_log_generated.stone) + + @Nullable + protected final String teamName; + @Nullable + protected final String trustedTeamName; + + /** + * Ended trusted team admin session. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param teamName Host team name. + * @param trustedTeamName Trusted team name. + */ + public GuestAdminSignedOutViaTrustedTeamsDetails(@Nullable String teamName, @Nullable String trustedTeamName) { + this.teamName = teamName; + this.trustedTeamName = trustedTeamName; + } + + /** + * Ended trusted team admin session. + * + *

The default values for unset fields will be used.

+ */ + public GuestAdminSignedOutViaTrustedTeamsDetails() { + this(null, null); + } + + /** + * Host team name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamName() { + return teamName; + } + + /** + * Trusted team name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTrustedTeamName() { + return trustedTeamName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link GuestAdminSignedOutViaTrustedTeamsDetails}. + */ + public static class Builder { + + protected String teamName; + protected String trustedTeamName; + + protected Builder() { + this.teamName = null; + this.trustedTeamName = null; + } + + /** + * Set value for optional field. + * + * @param teamName Host team name. + * + * @return this builder + */ + public Builder withTeamName(String teamName) { + this.teamName = teamName; + return this; + } + + /** + * Set value for optional field. + * + * @param trustedTeamName Trusted team name. + * + * @return this builder + */ + public Builder withTrustedTeamName(String trustedTeamName) { + this.trustedTeamName = trustedTeamName; + return this; + } + + /** + * Builds an instance of {@link + * GuestAdminSignedOutViaTrustedTeamsDetails} configured with this + * builder's values + * + * @return new instance of {@link + * GuestAdminSignedOutViaTrustedTeamsDetails} + */ + public GuestAdminSignedOutViaTrustedTeamsDetails build() { + return new GuestAdminSignedOutViaTrustedTeamsDetails(teamName, trustedTeamName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamName, + this.trustedTeamName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GuestAdminSignedOutViaTrustedTeamsDetails other = (GuestAdminSignedOutViaTrustedTeamsDetails) obj; + return ((this.teamName == other.teamName) || (this.teamName != null && this.teamName.equals(other.teamName))) + && ((this.trustedTeamName == other.trustedTeamName) || (this.trustedTeamName != null && this.trustedTeamName.equals(other.trustedTeamName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GuestAdminSignedOutViaTrustedTeamsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.teamName != null) { + g.writeFieldName("team_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamName, g); + } + if (value.trustedTeamName != null) { + g.writeFieldName("trusted_team_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.trustedTeamName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GuestAdminSignedOutViaTrustedTeamsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GuestAdminSignedOutViaTrustedTeamsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamName = null; + String f_trustedTeamName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_name".equals(field)) { + f_teamName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("trusted_team_name".equals(field)) { + f_trustedTeamName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new GuestAdminSignedOutViaTrustedTeamsDetails(f_teamName, f_trustedTeamName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsType.java new file mode 100644 index 000000000..66263a2eb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GuestAdminSignedOutViaTrustedTeamsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GuestAdminSignedOutViaTrustedTeamsType { + // struct team_log.GuestAdminSignedOutViaTrustedTeamsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GuestAdminSignedOutViaTrustedTeamsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GuestAdminSignedOutViaTrustedTeamsType other = (GuestAdminSignedOutViaTrustedTeamsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GuestAdminSignedOutViaTrustedTeamsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GuestAdminSignedOutViaTrustedTeamsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GuestAdminSignedOutViaTrustedTeamsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new GuestAdminSignedOutViaTrustedTeamsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IdentifierType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IdentifierType.java new file mode 100644 index 000000000..66fe7c1e1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IdentifierType.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum IdentifierType { + // union team_log.IdentifierType (team_log_generated.stone) + EMAIL, + FACEBOOK_PROFILE_NAME, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IdentifierType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EMAIL: { + g.writeString("email"); + break; + } + case FACEBOOK_PROFILE_NAME: { + g.writeString("facebook_profile_name"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public IdentifierType deserialize(JsonParser p) throws IOException, JsonParseException { + IdentifierType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("email".equals(tag)) { + value = IdentifierType.EMAIL; + } + else if ("facebook_profile_name".equals(tag)) { + value = IdentifierType.FACEBOOK_PROFILE_NAME; + } + else { + value = IdentifierType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationConnectedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationConnectedDetails.java new file mode 100644 index 000000000..4962b7a81 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationConnectedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Connected integration for member. + */ +public class IntegrationConnectedDetails { + // struct team_log.IntegrationConnectedDetails (team_log_generated.stone) + + @Nonnull + protected final String integrationName; + + /** + * Connected integration for member. + * + * @param integrationName Name of the third-party integration. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public IntegrationConnectedDetails(@Nonnull String integrationName) { + if (integrationName == null) { + throw new IllegalArgumentException("Required value for 'integrationName' is null"); + } + this.integrationName = integrationName; + } + + /** + * Name of the third-party integration. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getIntegrationName() { + return integrationName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.integrationName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IntegrationConnectedDetails other = (IntegrationConnectedDetails) obj; + return (this.integrationName == other.integrationName) || (this.integrationName.equals(other.integrationName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IntegrationConnectedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("integration_name"); + StoneSerializers.string().serialize(value.integrationName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IntegrationConnectedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IntegrationConnectedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_integrationName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("integration_name".equals(field)) { + f_integrationName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_integrationName == null) { + throw new JsonParseException(p, "Required field \"integration_name\" missing."); + } + value = new IntegrationConnectedDetails(f_integrationName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationConnectedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationConnectedType.java new file mode 100644 index 000000000..765948e11 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationConnectedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class IntegrationConnectedType { + // struct team_log.IntegrationConnectedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public IntegrationConnectedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IntegrationConnectedType other = (IntegrationConnectedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IntegrationConnectedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IntegrationConnectedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IntegrationConnectedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new IntegrationConnectedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationDisconnectedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationDisconnectedDetails.java new file mode 100644 index 000000000..ba03d985a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationDisconnectedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Disconnected integration for member. + */ +public class IntegrationDisconnectedDetails { + // struct team_log.IntegrationDisconnectedDetails (team_log_generated.stone) + + @Nonnull + protected final String integrationName; + + /** + * Disconnected integration for member. + * + * @param integrationName Name of the third-party integration. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public IntegrationDisconnectedDetails(@Nonnull String integrationName) { + if (integrationName == null) { + throw new IllegalArgumentException("Required value for 'integrationName' is null"); + } + this.integrationName = integrationName; + } + + /** + * Name of the third-party integration. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getIntegrationName() { + return integrationName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.integrationName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IntegrationDisconnectedDetails other = (IntegrationDisconnectedDetails) obj; + return (this.integrationName == other.integrationName) || (this.integrationName.equals(other.integrationName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IntegrationDisconnectedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("integration_name"); + StoneSerializers.string().serialize(value.integrationName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IntegrationDisconnectedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IntegrationDisconnectedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_integrationName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("integration_name".equals(field)) { + f_integrationName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_integrationName == null) { + throw new JsonParseException(p, "Required field \"integration_name\" missing."); + } + value = new IntegrationDisconnectedDetails(f_integrationName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationDisconnectedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationDisconnectedType.java new file mode 100644 index 000000000..9ee556e49 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationDisconnectedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class IntegrationDisconnectedType { + // struct team_log.IntegrationDisconnectedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public IntegrationDisconnectedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IntegrationDisconnectedType other = (IntegrationDisconnectedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IntegrationDisconnectedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IntegrationDisconnectedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IntegrationDisconnectedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new IntegrationDisconnectedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicy.java new file mode 100644 index 000000000..a025407f4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling whether a service integration is enabled for the team. + */ +public enum IntegrationPolicy { + // union team_log.IntegrationPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IntegrationPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public IntegrationPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + IntegrationPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = IntegrationPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = IntegrationPolicy.ENABLED; + } + else { + value = IntegrationPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicyChangedDetails.java new file mode 100644 index 000000000..27e3b6690 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicyChangedDetails.java @@ -0,0 +1,210 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed integration policy for team. + */ +public class IntegrationPolicyChangedDetails { + // struct team_log.IntegrationPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final String integrationName; + @Nonnull + protected final IntegrationPolicy newValue; + @Nonnull + protected final IntegrationPolicy previousValue; + + /** + * Changed integration policy for team. + * + * @param integrationName Name of the third-party integration. Must not be + * {@code null}. + * @param newValue New integration policy. Must not be {@code null}. + * @param previousValue Previous integration policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public IntegrationPolicyChangedDetails(@Nonnull String integrationName, @Nonnull IntegrationPolicy newValue, @Nonnull IntegrationPolicy previousValue) { + if (integrationName == null) { + throw new IllegalArgumentException("Required value for 'integrationName' is null"); + } + this.integrationName = integrationName; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * Name of the third-party integration. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getIntegrationName() { + return integrationName; + } + + /** + * New integration policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public IntegrationPolicy getNewValue() { + return newValue; + } + + /** + * Previous integration policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public IntegrationPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.integrationName, + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IntegrationPolicyChangedDetails other = (IntegrationPolicyChangedDetails) obj; + return ((this.integrationName == other.integrationName) || (this.integrationName.equals(other.integrationName))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IntegrationPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("integration_name"); + StoneSerializers.string().serialize(value.integrationName, g); + g.writeFieldName("new_value"); + IntegrationPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + IntegrationPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IntegrationPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IntegrationPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_integrationName = null; + IntegrationPolicy f_newValue = null; + IntegrationPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("integration_name".equals(field)) { + f_integrationName = StoneSerializers.string().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = IntegrationPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = IntegrationPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_integrationName == null) { + throw new JsonParseException(p, "Required field \"integration_name\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new IntegrationPolicyChangedDetails(f_integrationName, f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicyChangedType.java new file mode 100644 index 000000000..028014e28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/IntegrationPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class IntegrationPolicyChangedType { + // struct team_log.IntegrationPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public IntegrationPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IntegrationPolicyChangedType other = (IntegrationPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IntegrationPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IntegrationPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IntegrationPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new IntegrationPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy.java new file mode 100644 index 000000000..dc5f59078 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicy.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for deciding whether team admins receive email when an invitation to + * join the team is accepted + */ +public enum InviteAcceptanceEmailPolicy { + // union team_log.InviteAcceptanceEmailPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InviteAcceptanceEmailPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public InviteAcceptanceEmailPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + InviteAcceptanceEmailPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = InviteAcceptanceEmailPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = InviteAcceptanceEmailPolicy.ENABLED; + } + else { + value = InviteAcceptanceEmailPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedDetails.java new file mode 100644 index 000000000..13b3daaeb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed invite accept email policy for team. + */ +public class InviteAcceptanceEmailPolicyChangedDetails { + // struct team_log.InviteAcceptanceEmailPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final InviteAcceptanceEmailPolicy newValue; + @Nonnull + protected final InviteAcceptanceEmailPolicy previousValue; + + /** + * Changed invite accept email policy for team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public InviteAcceptanceEmailPolicyChangedDetails(@Nonnull InviteAcceptanceEmailPolicy newValue, @Nonnull InviteAcceptanceEmailPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public InviteAcceptanceEmailPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public InviteAcceptanceEmailPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + InviteAcceptanceEmailPolicyChangedDetails other = (InviteAcceptanceEmailPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InviteAcceptanceEmailPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + InviteAcceptanceEmailPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + InviteAcceptanceEmailPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public InviteAcceptanceEmailPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + InviteAcceptanceEmailPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + InviteAcceptanceEmailPolicy f_newValue = null; + InviteAcceptanceEmailPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = InviteAcceptanceEmailPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = InviteAcceptanceEmailPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new InviteAcceptanceEmailPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedType.java new file mode 100644 index 000000000..b0468c809 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteAcceptanceEmailPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class InviteAcceptanceEmailPolicyChangedType { + // struct team_log.InviteAcceptanceEmailPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public InviteAcceptanceEmailPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + InviteAcceptanceEmailPolicyChangedType other = (InviteAcceptanceEmailPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InviteAcceptanceEmailPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public InviteAcceptanceEmailPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + InviteAcceptanceEmailPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new InviteAcceptanceEmailPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteMethod.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteMethod.java new file mode 100644 index 000000000..144677265 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/InviteMethod.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum InviteMethod { + // union team_log.InviteMethod (team_log_generated.stone) + AUTO_APPROVE, + INVITE_LINK, + MEMBER_INVITE, + MOVED_FROM_ANOTHER_TEAM, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(InviteMethod value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case AUTO_APPROVE: { + g.writeString("auto_approve"); + break; + } + case INVITE_LINK: { + g.writeString("invite_link"); + break; + } + case MEMBER_INVITE: { + g.writeString("member_invite"); + break; + } + case MOVED_FROM_ANOTHER_TEAM: { + g.writeString("moved_from_another_team"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public InviteMethod deserialize(JsonParser p) throws IOException, JsonParseException { + InviteMethod value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("auto_approve".equals(tag)) { + value = InviteMethod.AUTO_APPROVE; + } + else if ("invite_link".equals(tag)) { + value = InviteMethod.INVITE_LINK; + } + else if ("member_invite".equals(tag)) { + value = InviteMethod.MEMBER_INVITE; + } + else if ("moved_from_another_team".equals(tag)) { + value = InviteMethod.MOVED_FROM_ANOTHER_TEAM; + } + else { + value = InviteMethod.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/JoinTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/JoinTeamDetails.java new file mode 100644 index 000000000..4b5c00ebe --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/JoinTeamDetails.java @@ -0,0 +1,574 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Additional information relevant when a new member joins the team. + */ +public class JoinTeamDetails { + // struct team_log.JoinTeamDetails (team_log_generated.stone) + + @Nonnull + protected final List linkedApps; + @Nonnull + protected final List linkedDevices; + @Nonnull + protected final List linkedSharedFolders; + @Nullable + protected final Boolean wasLinkedAppsTruncated; + @Nullable + protected final Boolean wasLinkedDevicesTruncated; + @Nullable + protected final Boolean wasLinkedSharedFoldersTruncated; + @Nullable + protected final Boolean hasLinkedApps; + @Nullable + protected final Boolean hasLinkedDevices; + @Nullable + protected final Boolean hasLinkedSharedFolders; + + /** + * Additional information relevant when a new member joins the team. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param linkedApps Linked applications. (Deprecated) Please use + * has_linked_apps boolean field instead. Must not contain a {@code + * null} item and not be {@code null}. + * @param linkedDevices Linked devices. (Deprecated) Please use + * has_linked_devices boolean field instead. Must not contain a {@code + * null} item and not be {@code null}. + * @param linkedSharedFolders Linked shared folders. (Deprecated) Please + * use has_linked_shared_folders boolean field instead. Must not contain + * a {@code null} item and not be {@code null}. + * @param wasLinkedAppsTruncated (Deprecated) True if the linked_apps list + * was truncated to the maximum supported length (50). + * @param wasLinkedDevicesTruncated (Deprecated) True if the linked_devices + * list was truncated to the maximum supported length (50). + * @param wasLinkedSharedFoldersTruncated (Deprecated) True if the + * linked_shared_folders list was truncated to the maximum supported + * length (50). + * @param hasLinkedApps True if the user had linked apps at event time. + * @param hasLinkedDevices True if the user had linked apps at event time. + * @param hasLinkedSharedFolders True if the user had linked shared folders + * at event time. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public JoinTeamDetails(@Nonnull List linkedApps, @Nonnull List linkedDevices, @Nonnull List linkedSharedFolders, @Nullable Boolean wasLinkedAppsTruncated, @Nullable Boolean wasLinkedDevicesTruncated, @Nullable Boolean wasLinkedSharedFoldersTruncated, @Nullable Boolean hasLinkedApps, @Nullable Boolean hasLinkedDevices, @Nullable Boolean hasLinkedSharedFolders) { + if (linkedApps == null) { + throw new IllegalArgumentException("Required value for 'linkedApps' is null"); + } + for (UserLinkedAppLogInfo x : linkedApps) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedApps' is null"); + } + } + this.linkedApps = linkedApps; + if (linkedDevices == null) { + throw new IllegalArgumentException("Required value for 'linkedDevices' is null"); + } + for (LinkedDeviceLogInfo x : linkedDevices) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedDevices' is null"); + } + } + this.linkedDevices = linkedDevices; + if (linkedSharedFolders == null) { + throw new IllegalArgumentException("Required value for 'linkedSharedFolders' is null"); + } + for (FolderLogInfo x : linkedSharedFolders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedSharedFolders' is null"); + } + } + this.linkedSharedFolders = linkedSharedFolders; + this.wasLinkedAppsTruncated = wasLinkedAppsTruncated; + this.wasLinkedDevicesTruncated = wasLinkedDevicesTruncated; + this.wasLinkedSharedFoldersTruncated = wasLinkedSharedFoldersTruncated; + this.hasLinkedApps = hasLinkedApps; + this.hasLinkedDevices = hasLinkedDevices; + this.hasLinkedSharedFolders = hasLinkedSharedFolders; + } + + /** + * Additional information relevant when a new member joins the team. + * + *

The default values for unset fields will be used.

+ * + * @param linkedApps Linked applications. (Deprecated) Please use + * has_linked_apps boolean field instead. Must not contain a {@code + * null} item and not be {@code null}. + * @param linkedDevices Linked devices. (Deprecated) Please use + * has_linked_devices boolean field instead. Must not contain a {@code + * null} item and not be {@code null}. + * @param linkedSharedFolders Linked shared folders. (Deprecated) Please + * use has_linked_shared_folders boolean field instead. Must not contain + * a {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public JoinTeamDetails(@Nonnull List linkedApps, @Nonnull List linkedDevices, @Nonnull List linkedSharedFolders) { + this(linkedApps, linkedDevices, linkedSharedFolders, null, null, null, null, null, null); + } + + /** + * Linked applications. (Deprecated) Please use has_linked_apps boolean + * field instead. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkedApps() { + return linkedApps; + } + + /** + * Linked devices. (Deprecated) Please use has_linked_devices boolean field + * instead. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkedDevices() { + return linkedDevices; + } + + /** + * Linked shared folders. (Deprecated) Please use has_linked_shared_folders + * boolean field instead. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getLinkedSharedFolders() { + return linkedSharedFolders; + } + + /** + * (Deprecated) True if the linked_apps list was truncated to the maximum + * supported length (50). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getWasLinkedAppsTruncated() { + return wasLinkedAppsTruncated; + } + + /** + * (Deprecated) True if the linked_devices list was truncated to the maximum + * supported length (50). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getWasLinkedDevicesTruncated() { + return wasLinkedDevicesTruncated; + } + + /** + * (Deprecated) True if the linked_shared_folders list was truncated to the + * maximum supported length (50). + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getWasLinkedSharedFoldersTruncated() { + return wasLinkedSharedFoldersTruncated; + } + + /** + * True if the user had linked apps at event time. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getHasLinkedApps() { + return hasLinkedApps; + } + + /** + * True if the user had linked apps at event time. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getHasLinkedDevices() { + return hasLinkedDevices; + } + + /** + * True if the user had linked shared folders at event time. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getHasLinkedSharedFolders() { + return hasLinkedSharedFolders; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param linkedApps Linked applications. (Deprecated) Please use + * has_linked_apps boolean field instead. Must not contain a {@code + * null} item and not be {@code null}. + * @param linkedDevices Linked devices. (Deprecated) Please use + * has_linked_devices boolean field instead. Must not contain a {@code + * null} item and not be {@code null}. + * @param linkedSharedFolders Linked shared folders. (Deprecated) Please + * use has_linked_shared_folders boolean field instead. Must not contain + * a {@code null} item and not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(List linkedApps, List linkedDevices, List linkedSharedFolders) { + return new Builder(linkedApps, linkedDevices, linkedSharedFolders); + } + + /** + * Builder for {@link JoinTeamDetails}. + */ + public static class Builder { + protected final List linkedApps; + protected final List linkedDevices; + protected final List linkedSharedFolders; + + protected Boolean wasLinkedAppsTruncated; + protected Boolean wasLinkedDevicesTruncated; + protected Boolean wasLinkedSharedFoldersTruncated; + protected Boolean hasLinkedApps; + protected Boolean hasLinkedDevices; + protected Boolean hasLinkedSharedFolders; + + protected Builder(List linkedApps, List linkedDevices, List linkedSharedFolders) { + if (linkedApps == null) { + throw new IllegalArgumentException("Required value for 'linkedApps' is null"); + } + for (UserLinkedAppLogInfo x : linkedApps) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedApps' is null"); + } + } + this.linkedApps = linkedApps; + if (linkedDevices == null) { + throw new IllegalArgumentException("Required value for 'linkedDevices' is null"); + } + for (LinkedDeviceLogInfo x : linkedDevices) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedDevices' is null"); + } + } + this.linkedDevices = linkedDevices; + if (linkedSharedFolders == null) { + throw new IllegalArgumentException("Required value for 'linkedSharedFolders' is null"); + } + for (FolderLogInfo x : linkedSharedFolders) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'linkedSharedFolders' is null"); + } + } + this.linkedSharedFolders = linkedSharedFolders; + this.wasLinkedAppsTruncated = null; + this.wasLinkedDevicesTruncated = null; + this.wasLinkedSharedFoldersTruncated = null; + this.hasLinkedApps = null; + this.hasLinkedDevices = null; + this.hasLinkedSharedFolders = null; + } + + /** + * Set value for optional field. + * + * @param wasLinkedAppsTruncated (Deprecated) True if the linked_apps + * list was truncated to the maximum supported length (50). + * + * @return this builder + */ + public Builder withWasLinkedAppsTruncated(Boolean wasLinkedAppsTruncated) { + this.wasLinkedAppsTruncated = wasLinkedAppsTruncated; + return this; + } + + /** + * Set value for optional field. + * + * @param wasLinkedDevicesTruncated (Deprecated) True if the + * linked_devices list was truncated to the maximum supported length + * (50). + * + * @return this builder + */ + public Builder withWasLinkedDevicesTruncated(Boolean wasLinkedDevicesTruncated) { + this.wasLinkedDevicesTruncated = wasLinkedDevicesTruncated; + return this; + } + + /** + * Set value for optional field. + * + * @param wasLinkedSharedFoldersTruncated (Deprecated) True if the + * linked_shared_folders list was truncated to the maximum supported + * length (50). + * + * @return this builder + */ + public Builder withWasLinkedSharedFoldersTruncated(Boolean wasLinkedSharedFoldersTruncated) { + this.wasLinkedSharedFoldersTruncated = wasLinkedSharedFoldersTruncated; + return this; + } + + /** + * Set value for optional field. + * + * @param hasLinkedApps True if the user had linked apps at event time. + * + * @return this builder + */ + public Builder withHasLinkedApps(Boolean hasLinkedApps) { + this.hasLinkedApps = hasLinkedApps; + return this; + } + + /** + * Set value for optional field. + * + * @param hasLinkedDevices True if the user had linked apps at event + * time. + * + * @return this builder + */ + public Builder withHasLinkedDevices(Boolean hasLinkedDevices) { + this.hasLinkedDevices = hasLinkedDevices; + return this; + } + + /** + * Set value for optional field. + * + * @param hasLinkedSharedFolders True if the user had linked shared + * folders at event time. + * + * @return this builder + */ + public Builder withHasLinkedSharedFolders(Boolean hasLinkedSharedFolders) { + this.hasLinkedSharedFolders = hasLinkedSharedFolders; + return this; + } + + /** + * Builds an instance of {@link JoinTeamDetails} configured with this + * builder's values + * + * @return new instance of {@link JoinTeamDetails} + */ + public JoinTeamDetails build() { + return new JoinTeamDetails(linkedApps, linkedDevices, linkedSharedFolders, wasLinkedAppsTruncated, wasLinkedDevicesTruncated, wasLinkedSharedFoldersTruncated, hasLinkedApps, hasLinkedDevices, hasLinkedSharedFolders); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.linkedApps, + this.linkedDevices, + this.linkedSharedFolders, + this.wasLinkedAppsTruncated, + this.wasLinkedDevicesTruncated, + this.wasLinkedSharedFoldersTruncated, + this.hasLinkedApps, + this.hasLinkedDevices, + this.hasLinkedSharedFolders + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + JoinTeamDetails other = (JoinTeamDetails) obj; + return ((this.linkedApps == other.linkedApps) || (this.linkedApps.equals(other.linkedApps))) + && ((this.linkedDevices == other.linkedDevices) || (this.linkedDevices.equals(other.linkedDevices))) + && ((this.linkedSharedFolders == other.linkedSharedFolders) || (this.linkedSharedFolders.equals(other.linkedSharedFolders))) + && ((this.wasLinkedAppsTruncated == other.wasLinkedAppsTruncated) || (this.wasLinkedAppsTruncated != null && this.wasLinkedAppsTruncated.equals(other.wasLinkedAppsTruncated))) + && ((this.wasLinkedDevicesTruncated == other.wasLinkedDevicesTruncated) || (this.wasLinkedDevicesTruncated != null && this.wasLinkedDevicesTruncated.equals(other.wasLinkedDevicesTruncated))) + && ((this.wasLinkedSharedFoldersTruncated == other.wasLinkedSharedFoldersTruncated) || (this.wasLinkedSharedFoldersTruncated != null && this.wasLinkedSharedFoldersTruncated.equals(other.wasLinkedSharedFoldersTruncated))) + && ((this.hasLinkedApps == other.hasLinkedApps) || (this.hasLinkedApps != null && this.hasLinkedApps.equals(other.hasLinkedApps))) + && ((this.hasLinkedDevices == other.hasLinkedDevices) || (this.hasLinkedDevices != null && this.hasLinkedDevices.equals(other.hasLinkedDevices))) + && ((this.hasLinkedSharedFolders == other.hasLinkedSharedFolders) || (this.hasLinkedSharedFolders != null && this.hasLinkedSharedFolders.equals(other.hasLinkedSharedFolders))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(JoinTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("linked_apps"); + StoneSerializers.list(UserLinkedAppLogInfo.Serializer.INSTANCE).serialize(value.linkedApps, g); + g.writeFieldName("linked_devices"); + StoneSerializers.list(LinkedDeviceLogInfo.Serializer.INSTANCE).serialize(value.linkedDevices, g); + g.writeFieldName("linked_shared_folders"); + StoneSerializers.list(FolderLogInfo.Serializer.INSTANCE).serialize(value.linkedSharedFolders, g); + if (value.wasLinkedAppsTruncated != null) { + g.writeFieldName("was_linked_apps_truncated"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.wasLinkedAppsTruncated, g); + } + if (value.wasLinkedDevicesTruncated != null) { + g.writeFieldName("was_linked_devices_truncated"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.wasLinkedDevicesTruncated, g); + } + if (value.wasLinkedSharedFoldersTruncated != null) { + g.writeFieldName("was_linked_shared_folders_truncated"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.wasLinkedSharedFoldersTruncated, g); + } + if (value.hasLinkedApps != null) { + g.writeFieldName("has_linked_apps"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.hasLinkedApps, g); + } + if (value.hasLinkedDevices != null) { + g.writeFieldName("has_linked_devices"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.hasLinkedDevices, g); + } + if (value.hasLinkedSharedFolders != null) { + g.writeFieldName("has_linked_shared_folders"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.hasLinkedSharedFolders, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public JoinTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + JoinTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_linkedApps = null; + List f_linkedDevices = null; + List f_linkedSharedFolders = null; + Boolean f_wasLinkedAppsTruncated = null; + Boolean f_wasLinkedDevicesTruncated = null; + Boolean f_wasLinkedSharedFoldersTruncated = null; + Boolean f_hasLinkedApps = null; + Boolean f_hasLinkedDevices = null; + Boolean f_hasLinkedSharedFolders = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("linked_apps".equals(field)) { + f_linkedApps = StoneSerializers.list(UserLinkedAppLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("linked_devices".equals(field)) { + f_linkedDevices = StoneSerializers.list(LinkedDeviceLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("linked_shared_folders".equals(field)) { + f_linkedSharedFolders = StoneSerializers.list(FolderLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("was_linked_apps_truncated".equals(field)) { + f_wasLinkedAppsTruncated = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("was_linked_devices_truncated".equals(field)) { + f_wasLinkedDevicesTruncated = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("was_linked_shared_folders_truncated".equals(field)) { + f_wasLinkedSharedFoldersTruncated = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("has_linked_apps".equals(field)) { + f_hasLinkedApps = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("has_linked_devices".equals(field)) { + f_hasLinkedDevices = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("has_linked_shared_folders".equals(field)) { + f_hasLinkedSharedFolders = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_linkedApps == null) { + throw new JsonParseException(p, "Required field \"linked_apps\" missing."); + } + if (f_linkedDevices == null) { + throw new JsonParseException(p, "Required field \"linked_devices\" missing."); + } + if (f_linkedSharedFolders == null) { + throw new JsonParseException(p, "Required field \"linked_shared_folders\" missing."); + } + value = new JoinTeamDetails(f_linkedApps, f_linkedDevices, f_linkedSharedFolders, f_wasLinkedAppsTruncated, f_wasLinkedDevicesTruncated, f_wasLinkedSharedFoldersTruncated, f_hasLinkedApps, f_hasLinkedDevices, f_hasLinkedSharedFolders); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LabelType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LabelType.java new file mode 100644 index 000000000..8f00e1512 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LabelType.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Label type + */ +public enum LabelType { + // union team_log.LabelType (team_log_generated.stone) + PERSONAL_INFORMATION, + TEST_ONLY, + USER_DEFINED_TAG, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LabelType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PERSONAL_INFORMATION: { + g.writeString("personal_information"); + break; + } + case TEST_ONLY: { + g.writeString("test_only"); + break; + } + case USER_DEFINED_TAG: { + g.writeString("user_defined_tag"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LabelType deserialize(JsonParser p) throws IOException, JsonParseException { + LabelType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("personal_information".equals(tag)) { + value = LabelType.PERSONAL_INFORMATION; + } + else if ("test_only".equals(tag)) { + value = LabelType.TEST_ONLY; + } + else if ("user_defined_tag".equals(tag)) { + value = LabelType.USER_DEFINED_TAG; + } + else { + value = LabelType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo.java new file mode 100644 index 000000000..c01014386 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegacyDeviceSessionLogInfo.java @@ -0,0 +1,630 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information on sessions, in legacy format + */ +public class LegacyDeviceSessionLogInfo extends DeviceSessionLogInfo { + // struct team_log.LegacyDeviceSessionLogInfo (team_log_generated.stone) + + @Nullable + protected final SessionLogInfo sessionInfo; + @Nullable + protected final String displayName; + @Nullable + protected final Boolean isEmmManaged; + @Nullable + protected final String platform; + @Nullable + protected final String macAddress; + @Nullable + protected final String osVersion; + @Nullable + protected final String deviceType; + @Nullable + protected final String clientVersion; + @Nullable + protected final String legacyUniqId; + + /** + * Information on sessions, in legacy format + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param ipAddress The IP address of the last activity from this session. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * @param sessionInfo Session unique id. + * @param displayName The device name. Might be missing due to historical + * data gap. + * @param isEmmManaged Is device managed by emm. Might be missing due to + * historical data gap. + * @param platform Information on the hosting platform. Might be missing + * due to historical data gap. + * @param macAddress The mac address of the last activity from this + * session. Might be missing due to historical data gap. + * @param osVersion The hosting OS version. Might be missing due to + * historical data gap. + * @param deviceType Information on the hosting device type. Might be + * missing due to historical data gap. + * @param clientVersion The Dropbox client version. Might be missing due to + * historical data gap. + * @param legacyUniqId Alternative unique device session id, instead of + * session id field. Might be missing due to historical data gap. + */ + public LegacyDeviceSessionLogInfo(@Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable SessionLogInfo sessionInfo, @Nullable String displayName, @Nullable Boolean isEmmManaged, @Nullable String platform, @Nullable String macAddress, @Nullable String osVersion, @Nullable String deviceType, @Nullable String clientVersion, @Nullable String legacyUniqId) { + super(ipAddress, created, updated); + this.sessionInfo = sessionInfo; + this.displayName = displayName; + this.isEmmManaged = isEmmManaged; + this.platform = platform; + this.macAddress = macAddress; + this.osVersion = osVersion; + this.deviceType = deviceType; + this.clientVersion = clientVersion; + this.legacyUniqId = legacyUniqId; + } + + /** + * Information on sessions, in legacy format + * + *

The default values for unset fields will be used.

+ */ + public LegacyDeviceSessionLogInfo() { + this(null, null, null, null, null, null, null, null, null, null, null, null); + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * Session unique id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SessionLogInfo getSessionInfo() { + return sessionInfo; + } + + /** + * The device name. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Is device managed by emm. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsEmmManaged() { + return isEmmManaged; + } + + /** + * Information on the hosting platform. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPlatform() { + return platform; + } + + /** + * The mac address of the last activity from this session. Might be missing + * due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMacAddress() { + return macAddress; + } + + /** + * The hosting OS version. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getOsVersion() { + return osVersion; + } + + /** + * Information on the hosting device type. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDeviceType() { + return deviceType; + } + + /** + * The Dropbox client version. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getClientVersion() { + return clientVersion; + } + + /** + * Alternative unique device session id, instead of session id field. Might + * be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLegacyUniqId() { + return legacyUniqId; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link LegacyDeviceSessionLogInfo}. + */ + public static class Builder extends DeviceSessionLogInfo.Builder { + + protected SessionLogInfo sessionInfo; + protected String displayName; + protected Boolean isEmmManaged; + protected String platform; + protected String macAddress; + protected String osVersion; + protected String deviceType; + protected String clientVersion; + protected String legacyUniqId; + + protected Builder() { + this.sessionInfo = null; + this.displayName = null; + this.isEmmManaged = null; + this.platform = null; + this.macAddress = null; + this.osVersion = null; + this.deviceType = null; + this.clientVersion = null; + this.legacyUniqId = null; + } + + /** + * Set value for optional field. + * + * @param sessionInfo Session unique id. + * + * @return this builder + */ + public Builder withSessionInfo(SessionLogInfo sessionInfo) { + this.sessionInfo = sessionInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param displayName The device name. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Set value for optional field. + * + * @param isEmmManaged Is device managed by emm. Might be missing due + * to historical data gap. + * + * @return this builder + */ + public Builder withIsEmmManaged(Boolean isEmmManaged) { + this.isEmmManaged = isEmmManaged; + return this; + } + + /** + * Set value for optional field. + * + * @param platform Information on the hosting platform. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPlatform(String platform) { + this.platform = platform; + return this; + } + + /** + * Set value for optional field. + * + * @param macAddress The mac address of the last activity from this + * session. Might be missing due to historical data gap. + * + * @return this builder + */ + public Builder withMacAddress(String macAddress) { + this.macAddress = macAddress; + return this; + } + + /** + * Set value for optional field. + * + * @param osVersion The hosting OS version. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withOsVersion(String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Set value for optional field. + * + * @param deviceType Information on the hosting device type. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withDeviceType(String deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * Set value for optional field. + * + * @param clientVersion The Dropbox client version. Might be missing + * due to historical data gap. + * + * @return this builder + */ + public Builder withClientVersion(String clientVersion) { + this.clientVersion = clientVersion; + return this; + } + + /** + * Set value for optional field. + * + * @param legacyUniqId Alternative unique device session id, instead of + * session id field. Might be missing due to historical data gap. + * + * @return this builder + */ + public Builder withLegacyUniqId(String legacyUniqId) { + this.legacyUniqId = legacyUniqId; + return this; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + super.withIpAddress(ipAddress); + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + super.withCreated(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + super.withUpdated(updated); + return this; + } + + /** + * Builds an instance of {@link LegacyDeviceSessionLogInfo} configured + * with this builder's values + * + * @return new instance of {@link LegacyDeviceSessionLogInfo} + */ + public LegacyDeviceSessionLogInfo build() { + return new LegacyDeviceSessionLogInfo(ipAddress, created, updated, sessionInfo, displayName, isEmmManaged, platform, macAddress, osVersion, deviceType, clientVersion, legacyUniqId); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionInfo, + this.displayName, + this.isEmmManaged, + this.platform, + this.macAddress, + this.osVersion, + this.deviceType, + this.clientVersion, + this.legacyUniqId + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegacyDeviceSessionLogInfo other = (LegacyDeviceSessionLogInfo) obj; + return ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + && ((this.sessionInfo == other.sessionInfo) || (this.sessionInfo != null && this.sessionInfo.equals(other.sessionInfo))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.isEmmManaged == other.isEmmManaged) || (this.isEmmManaged != null && this.isEmmManaged.equals(other.isEmmManaged))) + && ((this.platform == other.platform) || (this.platform != null && this.platform.equals(other.platform))) + && ((this.macAddress == other.macAddress) || (this.macAddress != null && this.macAddress.equals(other.macAddress))) + && ((this.osVersion == other.osVersion) || (this.osVersion != null && this.osVersion.equals(other.osVersion))) + && ((this.deviceType == other.deviceType) || (this.deviceType != null && this.deviceType.equals(other.deviceType))) + && ((this.clientVersion == other.clientVersion) || (this.clientVersion != null && this.clientVersion.equals(other.clientVersion))) + && ((this.legacyUniqId == other.legacyUniqId) || (this.legacyUniqId != null && this.legacyUniqId.equals(other.legacyUniqId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegacyDeviceSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("legacy_device_session", g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (value.sessionInfo != null) { + g.writeFieldName("session_info"); + StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).serialize(value.sessionInfo, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.isEmmManaged != null) { + g.writeFieldName("is_emm_managed"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isEmmManaged, g); + } + if (value.platform != null) { + g.writeFieldName("platform"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.platform, g); + } + if (value.macAddress != null) { + g.writeFieldName("mac_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.macAddress, g); + } + if (value.osVersion != null) { + g.writeFieldName("os_version"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.osVersion, g); + } + if (value.deviceType != null) { + g.writeFieldName("device_type"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.deviceType, g); + } + if (value.clientVersion != null) { + g.writeFieldName("client_version"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.clientVersion, g); + } + if (value.legacyUniqId != null) { + g.writeFieldName("legacy_uniq_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.legacyUniqId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegacyDeviceSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegacyDeviceSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("legacy_device_session".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_ipAddress = null; + Date f_created = null; + Date f_updated = null; + SessionLogInfo f_sessionInfo = null; + String f_displayName = null; + Boolean f_isEmmManaged = null; + String f_platform = null; + String f_macAddress = null; + String f_osVersion = null; + String f_deviceType = null; + String f_clientVersion = null; + String f_legacyUniqId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("session_info".equals(field)) { + f_sessionInfo = StoneSerializers.nullableStruct(SessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_emm_managed".equals(field)) { + f_isEmmManaged = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("platform".equals(field)) { + f_platform = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("mac_address".equals(field)) { + f_macAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("os_version".equals(field)) { + f_osVersion = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("device_type".equals(field)) { + f_deviceType = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("client_version".equals(field)) { + f_clientVersion = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("legacy_uniq_id".equals(field)) { + f_legacyUniqId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new LegacyDeviceSessionLogInfo(f_ipAddress, f_created, f_updated, f_sessionInfo, f_displayName, f_isEmmManaged, f_platform, f_macAddress, f_osVersion, f_deviceType, f_clientVersion, f_legacyUniqId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldDetails.java new file mode 100644 index 000000000..9e0c08755 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldDetails.java @@ -0,0 +1,251 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Activated a hold. + */ +public class LegalHoldsActivateAHoldDetails { + // struct team_log.LegalHoldsActivateAHoldDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + @Nonnull + protected final Date startDate; + @Nullable + protected final Date endDate; + + /** + * Activated a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param startDate Hold start date. Must not be {@code null}. + * @param endDate Hold end date. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsActivateAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull Date startDate, @Nullable Date endDate) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * Activated a hold. + * + *

The default values for unset fields will be used.

+ * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param startDate Hold start date. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsActivateAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull Date startDate) { + this(legalHoldId, name, startDate, null); + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Hold start date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getStartDate() { + return startDate; + } + + /** + * Hold end date. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getEndDate() { + return endDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name, + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsActivateAHoldDetails other = (LegalHoldsActivateAHoldDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate != null && this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsActivateAHoldDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("start_date"); + StoneSerializers.timestamp().serialize(value.startDate, g); + if (value.endDate != null) { + g.writeFieldName("end_date"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.endDate, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsActivateAHoldDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsActivateAHoldDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("start_date".equals(field)) { + f_startDate = StoneSerializers.timestamp().deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + value = new LegalHoldsActivateAHoldDetails(f_legalHoldId, f_name, f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldType.java new file mode 100644 index 000000000..86c3a1f3f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsActivateAHoldType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsActivateAHoldType { + // struct team_log.LegalHoldsActivateAHoldType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsActivateAHoldType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsActivateAHoldType other = (LegalHoldsActivateAHoldType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsActivateAHoldType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsActivateAHoldType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsActivateAHoldType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsActivateAHoldType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsAddMembersDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsAddMembersDetails.java new file mode 100644 index 000000000..1a5c6ddb4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsAddMembersDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added members to a hold. + */ +public class LegalHoldsAddMembersDetails { + // struct team_log.LegalHoldsAddMembersDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + + /** + * Added members to a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsAddMembersDetails(@Nonnull String legalHoldId, @Nonnull String name) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsAddMembersDetails other = (LegalHoldsAddMembersDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsAddMembersDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsAddMembersDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsAddMembersDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new LegalHoldsAddMembersDetails(f_legalHoldId, f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsAddMembersType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsAddMembersType.java new file mode 100644 index 000000000..043c1f277 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsAddMembersType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsAddMembersType { + // struct team_log.LegalHoldsAddMembersType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsAddMembersType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsAddMembersType other = (LegalHoldsAddMembersType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsAddMembersType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsAddMembersType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsAddMembersType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsAddMembersType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsDetails.java new file mode 100644 index 000000000..9557271bc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsDetails.java @@ -0,0 +1,236 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Edited details for a hold. + */ +public class LegalHoldsChangeHoldDetailsDetails { + // struct team_log.LegalHoldsChangeHoldDetailsDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + @Nonnull + protected final String previousValue; + @Nonnull + protected final String newValue; + + /** + * Edited details for a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param previousValue Previous details. Must not be {@code null}. + * @param newValue New details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsChangeHoldDetailsDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String previousValue, @Nonnull String newValue) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Previous details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + /** + * New details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsChangeHoldDetailsDetails other = (LegalHoldsChangeHoldDetailsDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsChangeHoldDetailsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsChangeHoldDetailsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsChangeHoldDetailsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + String f_previousValue = null; + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new LegalHoldsChangeHoldDetailsDetails(f_legalHoldId, f_name, f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsType.java new file mode 100644 index 000000000..4bf476d0c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldDetailsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsChangeHoldDetailsType { + // struct team_log.LegalHoldsChangeHoldDetailsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsChangeHoldDetailsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsChangeHoldDetailsType other = (LegalHoldsChangeHoldDetailsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsChangeHoldDetailsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsChangeHoldDetailsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsChangeHoldDetailsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsChangeHoldDetailsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameDetails.java new file mode 100644 index 000000000..c1fcac142 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameDetails.java @@ -0,0 +1,208 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Renamed a hold. + */ +public class LegalHoldsChangeHoldNameDetails { + // struct team_log.LegalHoldsChangeHoldNameDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String previousValue; + @Nonnull + protected final String newValue; + + /** + * Renamed a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param previousValue Previous Name. Must not be {@code null}. + * @param newValue New Name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsChangeHoldNameDetails(@Nonnull String legalHoldId, @Nonnull String previousValue, @Nonnull String newValue) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Previous Name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + /** + * New Name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsChangeHoldNameDetails other = (LegalHoldsChangeHoldNameDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsChangeHoldNameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsChangeHoldNameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsChangeHoldNameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_previousValue = null; + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new LegalHoldsChangeHoldNameDetails(f_legalHoldId, f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameType.java new file mode 100644 index 000000000..250bcb427 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsChangeHoldNameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsChangeHoldNameType { + // struct team_log.LegalHoldsChangeHoldNameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsChangeHoldNameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsChangeHoldNameType other = (LegalHoldsChangeHoldNameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsChangeHoldNameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsChangeHoldNameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsChangeHoldNameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsChangeHoldNameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldDetails.java new file mode 100644 index 000000000..209695335 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldDetails.java @@ -0,0 +1,220 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Exported hold. + */ +public class LegalHoldsExportAHoldDetails { + // struct team_log.LegalHoldsExportAHoldDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + @Nullable + protected final String exportName; + + /** + * Exported hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param exportName Export name. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nullable String exportName) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.exportName = exportName; + } + + /** + * Exported hold. + * + *

The default values for unset fields will be used.

+ * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name) { + this(legalHoldId, name, null); + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Export name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getExportName() { + return exportName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name, + this.exportName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportAHoldDetails other = (LegalHoldsExportAHoldDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.exportName == other.exportName) || (this.exportName != null && this.exportName.equals(other.exportName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportAHoldDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.exportName != null) { + g.writeFieldName("export_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.exportName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportAHoldDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportAHoldDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + String f_exportName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("export_name".equals(field)) { + f_exportName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new LegalHoldsExportAHoldDetails(f_legalHoldId, f_name, f_exportName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldType.java new file mode 100644 index 000000000..6d3fe2556 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportAHoldType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsExportAHoldType { + // struct team_log.LegalHoldsExportAHoldType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportAHoldType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportAHoldType other = (LegalHoldsExportAHoldType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportAHoldType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportAHoldType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportAHoldType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsExportAHoldType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledDetails.java new file mode 100644 index 000000000..55ec6f67c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledDetails.java @@ -0,0 +1,208 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Canceled export for a hold. + */ +public class LegalHoldsExportCancelledDetails { + // struct team_log.LegalHoldsExportCancelledDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + @Nonnull + protected final String exportName; + + /** + * Canceled export for a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportCancelledDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String exportName) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Export name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExportName() { + return exportName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name, + this.exportName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportCancelledDetails other = (LegalHoldsExportCancelledDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.exportName == other.exportName) || (this.exportName.equals(other.exportName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportCancelledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("export_name"); + StoneSerializers.string().serialize(value.exportName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportCancelledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportCancelledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + String f_exportName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("export_name".equals(field)) { + f_exportName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_exportName == null) { + throw new JsonParseException(p, "Required field \"export_name\" missing."); + } + value = new LegalHoldsExportCancelledDetails(f_legalHoldId, f_name, f_exportName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledType.java new file mode 100644 index 000000000..129ebc954 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportCancelledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsExportCancelledType { + // struct team_log.LegalHoldsExportCancelledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportCancelledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportCancelledType other = (LegalHoldsExportCancelledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportCancelledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportCancelledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportCancelledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsExportCancelledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails.java new file mode 100644 index 000000000..213719408 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedDetails.java @@ -0,0 +1,355 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Downloaded export for a hold. + */ +public class LegalHoldsExportDownloadedDetails { + // struct team_log.LegalHoldsExportDownloadedDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + @Nonnull + protected final String exportName; + @Nullable + protected final String part; + @Nullable + protected final String fileName; + + /** + * Downloaded export for a hold. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * @param part Part. + * @param fileName Filename. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportDownloadedDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String exportName, @Nullable String part, @Nullable String fileName) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + this.part = part; + this.fileName = fileName; + } + + /** + * Downloaded export for a hold. + * + *

The default values for unset fields will be used.

+ * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportDownloadedDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String exportName) { + this(legalHoldId, name, exportName, null, null); + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Export name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExportName() { + return exportName; + } + + /** + * Part. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPart() { + return part; + } + + /** + * Filename. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getFileName() { + return fileName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String legalHoldId, String name, String exportName) { + return new Builder(legalHoldId, name, exportName); + } + + /** + * Builder for {@link LegalHoldsExportDownloadedDetails}. + */ + public static class Builder { + protected final String legalHoldId; + protected final String name; + protected final String exportName; + + protected String part; + protected String fileName; + + protected Builder(String legalHoldId, String name, String exportName) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + this.part = null; + this.fileName = null; + } + + /** + * Set value for optional field. + * + * @param part Part. + * + * @return this builder + */ + public Builder withPart(String part) { + this.part = part; + return this; + } + + /** + * Set value for optional field. + * + * @param fileName Filename. + * + * @return this builder + */ + public Builder withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Builds an instance of {@link LegalHoldsExportDownloadedDetails} + * configured with this builder's values + * + * @return new instance of {@link LegalHoldsExportDownloadedDetails} + */ + public LegalHoldsExportDownloadedDetails build() { + return new LegalHoldsExportDownloadedDetails(legalHoldId, name, exportName, part, fileName); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name, + this.exportName, + this.part, + this.fileName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportDownloadedDetails other = (LegalHoldsExportDownloadedDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.exportName == other.exportName) || (this.exportName.equals(other.exportName))) + && ((this.part == other.part) || (this.part != null && this.part.equals(other.part))) + && ((this.fileName == other.fileName) || (this.fileName != null && this.fileName.equals(other.fileName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportDownloadedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("export_name"); + StoneSerializers.string().serialize(value.exportName, g); + if (value.part != null) { + g.writeFieldName("part"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.part, g); + } + if (value.fileName != null) { + g.writeFieldName("file_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.fileName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportDownloadedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportDownloadedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + String f_exportName = null; + String f_part = null; + String f_fileName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("export_name".equals(field)) { + f_exportName = StoneSerializers.string().deserialize(p); + } + else if ("part".equals(field)) { + f_part = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("file_name".equals(field)) { + f_fileName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_exportName == null) { + throw new JsonParseException(p, "Required field \"export_name\" missing."); + } + value = new LegalHoldsExportDownloadedDetails(f_legalHoldId, f_name, f_exportName, f_part, f_fileName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedType.java new file mode 100644 index 000000000..33f1ea227 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportDownloadedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsExportDownloadedType { + // struct team_log.LegalHoldsExportDownloadedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportDownloadedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportDownloadedType other = (LegalHoldsExportDownloadedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportDownloadedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportDownloadedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportDownloadedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsExportDownloadedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedDetails.java new file mode 100644 index 000000000..e0fde3e35 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedDetails.java @@ -0,0 +1,208 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed export for a hold. + */ +public class LegalHoldsExportRemovedDetails { + // struct team_log.LegalHoldsExportRemovedDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + @Nonnull + protected final String exportName; + + /** + * Removed export for a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * @param exportName Export name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportRemovedDetails(@Nonnull String legalHoldId, @Nonnull String name, @Nonnull String exportName) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (exportName == null) { + throw new IllegalArgumentException("Required value for 'exportName' is null"); + } + this.exportName = exportName; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Export name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExportName() { + return exportName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name, + this.exportName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportRemovedDetails other = (LegalHoldsExportRemovedDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.exportName == other.exportName) || (this.exportName.equals(other.exportName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportRemovedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("export_name"); + StoneSerializers.string().serialize(value.exportName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportRemovedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportRemovedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + String f_exportName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("export_name".equals(field)) { + f_exportName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_exportName == null) { + throw new JsonParseException(p, "Required field \"export_name\" missing."); + } + value = new LegalHoldsExportRemovedDetails(f_legalHoldId, f_name, f_exportName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedType.java new file mode 100644 index 000000000..c178f9823 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsExportRemovedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsExportRemovedType { + // struct team_log.LegalHoldsExportRemovedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsExportRemovedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsExportRemovedType other = (LegalHoldsExportRemovedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsExportRemovedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsExportRemovedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsExportRemovedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsExportRemovedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldDetails.java new file mode 100644 index 000000000..60f24ef74 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Released a hold. + */ +public class LegalHoldsReleaseAHoldDetails { + // struct team_log.LegalHoldsReleaseAHoldDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + + /** + * Released a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsReleaseAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsReleaseAHoldDetails other = (LegalHoldsReleaseAHoldDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsReleaseAHoldDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsReleaseAHoldDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsReleaseAHoldDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new LegalHoldsReleaseAHoldDetails(f_legalHoldId, f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldType.java new file mode 100644 index 000000000..081e13214 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReleaseAHoldType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsReleaseAHoldType { + // struct team_log.LegalHoldsReleaseAHoldType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsReleaseAHoldType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsReleaseAHoldType other = (LegalHoldsReleaseAHoldType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsReleaseAHoldType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsReleaseAHoldType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsReleaseAHoldType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsReleaseAHoldType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersDetails.java new file mode 100644 index 000000000..10ee546a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed members from a hold. + */ +public class LegalHoldsRemoveMembersDetails { + // struct team_log.LegalHoldsRemoveMembersDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + + /** + * Removed members from a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsRemoveMembersDetails(@Nonnull String legalHoldId, @Nonnull String name) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsRemoveMembersDetails other = (LegalHoldsRemoveMembersDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsRemoveMembersDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsRemoveMembersDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsRemoveMembersDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new LegalHoldsRemoveMembersDetails(f_legalHoldId, f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersType.java new file mode 100644 index 000000000..54ccccd27 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsRemoveMembersType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsRemoveMembersType { + // struct team_log.LegalHoldsRemoveMembersType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsRemoveMembersType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsRemoveMembersType other = (LegalHoldsRemoveMembersType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsRemoveMembersType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsRemoveMembersType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsRemoveMembersType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsRemoveMembersType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldDetails.java new file mode 100644 index 000000000..6d295cb7e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Created a summary report for a hold. + */ +public class LegalHoldsReportAHoldDetails { + // struct team_log.LegalHoldsReportAHoldDetails (team_log_generated.stone) + + @Nonnull + protected final String legalHoldId; + @Nonnull + protected final String name; + + /** + * Created a summary report for a hold. + * + * @param legalHoldId Hold ID. Must not be {@code null}. + * @param name Hold name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsReportAHoldDetails(@Nonnull String legalHoldId, @Nonnull String name) { + if (legalHoldId == null) { + throw new IllegalArgumentException("Required value for 'legalHoldId' is null"); + } + this.legalHoldId = legalHoldId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * Hold ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLegalHoldId() { + return legalHoldId; + } + + /** + * Hold name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.legalHoldId, + this.name + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsReportAHoldDetails other = (LegalHoldsReportAHoldDetails) obj; + return ((this.legalHoldId == other.legalHoldId) || (this.legalHoldId.equals(other.legalHoldId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsReportAHoldDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("legal_hold_id"); + StoneSerializers.string().serialize(value.legalHoldId, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsReportAHoldDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsReportAHoldDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_legalHoldId = null; + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("legal_hold_id".equals(field)) { + f_legalHoldId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_legalHoldId == null) { + throw new JsonParseException(p, "Required field \"legal_hold_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new LegalHoldsReportAHoldDetails(f_legalHoldId, f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldType.java new file mode 100644 index 000000000..ce8219921 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LegalHoldsReportAHoldType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LegalHoldsReportAHoldType { + // struct team_log.LegalHoldsReportAHoldType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LegalHoldsReportAHoldType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LegalHoldsReportAHoldType other = (LegalHoldsReportAHoldType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LegalHoldsReportAHoldType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LegalHoldsReportAHoldType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LegalHoldsReportAHoldType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LegalHoldsReportAHoldType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LinkedDeviceLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LinkedDeviceLogInfo.java new file mode 100644 index 000000000..74032791a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LinkedDeviceLogInfo.java @@ -0,0 +1,547 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The device sessions that user is linked to. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class LinkedDeviceLogInfo { + // union team_log.LinkedDeviceLogInfo (team_log_generated.stone) + + /** + * Discriminating tag type for {@link LinkedDeviceLogInfo}. + */ + public enum Tag { + /** + * desktop device session's details. + */ + DESKTOP_DEVICE_SESSION, // DesktopDeviceSessionLogInfo + /** + * legacy device session's details. + */ + LEGACY_DEVICE_SESSION, // LegacyDeviceSessionLogInfo + /** + * mobile device session's details. + */ + MOBILE_DEVICE_SESSION, // MobileDeviceSessionLogInfo + /** + * web device session's details. + */ + WEB_DEVICE_SESSION, // WebDeviceSessionLogInfo + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final LinkedDeviceLogInfo OTHER = new LinkedDeviceLogInfo().withTag(Tag.OTHER); + + private Tag _tag; + private DesktopDeviceSessionLogInfo desktopDeviceSessionValue; + private LegacyDeviceSessionLogInfo legacyDeviceSessionValue; + private MobileDeviceSessionLogInfo mobileDeviceSessionValue; + private WebDeviceSessionLogInfo webDeviceSessionValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private LinkedDeviceLogInfo() { + } + + + /** + * The device sessions that user is linked to. + * + * @param _tag Discriminating tag for this instance. + */ + private LinkedDeviceLogInfo withTag(Tag _tag) { + LinkedDeviceLogInfo result = new LinkedDeviceLogInfo(); + result._tag = _tag; + return result; + } + + /** + * The device sessions that user is linked to. + * + * @param desktopDeviceSessionValue desktop device session's details. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LinkedDeviceLogInfo withTagAndDesktopDeviceSession(Tag _tag, DesktopDeviceSessionLogInfo desktopDeviceSessionValue) { + LinkedDeviceLogInfo result = new LinkedDeviceLogInfo(); + result._tag = _tag; + result.desktopDeviceSessionValue = desktopDeviceSessionValue; + return result; + } + + /** + * The device sessions that user is linked to. + * + * @param legacyDeviceSessionValue legacy device session's details. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LinkedDeviceLogInfo withTagAndLegacyDeviceSession(Tag _tag, LegacyDeviceSessionLogInfo legacyDeviceSessionValue) { + LinkedDeviceLogInfo result = new LinkedDeviceLogInfo(); + result._tag = _tag; + result.legacyDeviceSessionValue = legacyDeviceSessionValue; + return result; + } + + /** + * The device sessions that user is linked to. + * + * @param mobileDeviceSessionValue mobile device session's details. Must + * not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LinkedDeviceLogInfo withTagAndMobileDeviceSession(Tag _tag, MobileDeviceSessionLogInfo mobileDeviceSessionValue) { + LinkedDeviceLogInfo result = new LinkedDeviceLogInfo(); + result._tag = _tag; + result.mobileDeviceSessionValue = mobileDeviceSessionValue; + return result; + } + + /** + * The device sessions that user is linked to. + * + * @param webDeviceSessionValue web device session's details. Must not be + * {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private LinkedDeviceLogInfo withTagAndWebDeviceSession(Tag _tag, WebDeviceSessionLogInfo webDeviceSessionValue) { + LinkedDeviceLogInfo result = new LinkedDeviceLogInfo(); + result._tag = _tag; + result.webDeviceSessionValue = webDeviceSessionValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code LinkedDeviceLogInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#DESKTOP_DEVICE_SESSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#DESKTOP_DEVICE_SESSION}, {@code false} otherwise. + */ + public boolean isDesktopDeviceSession() { + return this._tag == Tag.DESKTOP_DEVICE_SESSION; + } + + /** + * Returns an instance of {@code LinkedDeviceLogInfo} that has its tag set + * to {@link Tag#DESKTOP_DEVICE_SESSION}. + * + *

desktop device session's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LinkedDeviceLogInfo} with its tag set to + * {@link Tag#DESKTOP_DEVICE_SESSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LinkedDeviceLogInfo desktopDeviceSession(DesktopDeviceSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LinkedDeviceLogInfo().withTagAndDesktopDeviceSession(Tag.DESKTOP_DEVICE_SESSION, value); + } + + /** + * desktop device session's details. + * + *

This instance must be tagged as {@link Tag#DESKTOP_DEVICE_SESSION}. + *

+ * + * @return The {@link DesktopDeviceSessionLogInfo} value associated with + * this instance if {@link #isDesktopDeviceSession} is {@code true}. + * + * @throws IllegalStateException If {@link #isDesktopDeviceSession} is + * {@code false}. + */ + public DesktopDeviceSessionLogInfo getDesktopDeviceSessionValue() { + if (this._tag != Tag.DESKTOP_DEVICE_SESSION) { + throw new IllegalStateException("Invalid tag: required Tag.DESKTOP_DEVICE_SESSION, but was Tag." + this._tag.name()); + } + return desktopDeviceSessionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#LEGACY_DEVICE_SESSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#LEGACY_DEVICE_SESSION}, {@code false} otherwise. + */ + public boolean isLegacyDeviceSession() { + return this._tag == Tag.LEGACY_DEVICE_SESSION; + } + + /** + * Returns an instance of {@code LinkedDeviceLogInfo} that has its tag set + * to {@link Tag#LEGACY_DEVICE_SESSION}. + * + *

legacy device session's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LinkedDeviceLogInfo} with its tag set to + * {@link Tag#LEGACY_DEVICE_SESSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LinkedDeviceLogInfo legacyDeviceSession(LegacyDeviceSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LinkedDeviceLogInfo().withTagAndLegacyDeviceSession(Tag.LEGACY_DEVICE_SESSION, value); + } + + /** + * legacy device session's details. + * + *

This instance must be tagged as {@link Tag#LEGACY_DEVICE_SESSION}. + *

+ * + * @return The {@link LegacyDeviceSessionLogInfo} value associated with this + * instance if {@link #isLegacyDeviceSession} is {@code true}. + * + * @throws IllegalStateException If {@link #isLegacyDeviceSession} is + * {@code false}. + */ + public LegacyDeviceSessionLogInfo getLegacyDeviceSessionValue() { + if (this._tag != Tag.LEGACY_DEVICE_SESSION) { + throw new IllegalStateException("Invalid tag: required Tag.LEGACY_DEVICE_SESSION, but was Tag." + this._tag.name()); + } + return legacyDeviceSessionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#MOBILE_DEVICE_SESSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#MOBILE_DEVICE_SESSION}, {@code false} otherwise. + */ + public boolean isMobileDeviceSession() { + return this._tag == Tag.MOBILE_DEVICE_SESSION; + } + + /** + * Returns an instance of {@code LinkedDeviceLogInfo} that has its tag set + * to {@link Tag#MOBILE_DEVICE_SESSION}. + * + *

mobile device session's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LinkedDeviceLogInfo} with its tag set to + * {@link Tag#MOBILE_DEVICE_SESSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LinkedDeviceLogInfo mobileDeviceSession(MobileDeviceSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LinkedDeviceLogInfo().withTagAndMobileDeviceSession(Tag.MOBILE_DEVICE_SESSION, value); + } + + /** + * mobile device session's details. + * + *

This instance must be tagged as {@link Tag#MOBILE_DEVICE_SESSION}. + *

+ * + * @return The {@link MobileDeviceSessionLogInfo} value associated with this + * instance if {@link #isMobileDeviceSession} is {@code true}. + * + * @throws IllegalStateException If {@link #isMobileDeviceSession} is + * {@code false}. + */ + public MobileDeviceSessionLogInfo getMobileDeviceSessionValue() { + if (this._tag != Tag.MOBILE_DEVICE_SESSION) { + throw new IllegalStateException("Invalid tag: required Tag.MOBILE_DEVICE_SESSION, but was Tag." + this._tag.name()); + } + return mobileDeviceSessionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#WEB_DEVICE_SESSION}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#WEB_DEVICE_SESSION}, {@code false} otherwise. + */ + public boolean isWebDeviceSession() { + return this._tag == Tag.WEB_DEVICE_SESSION; + } + + /** + * Returns an instance of {@code LinkedDeviceLogInfo} that has its tag set + * to {@link Tag#WEB_DEVICE_SESSION}. + * + *

web device session's details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code LinkedDeviceLogInfo} with its tag set to + * {@link Tag#WEB_DEVICE_SESSION}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static LinkedDeviceLogInfo webDeviceSession(WebDeviceSessionLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new LinkedDeviceLogInfo().withTagAndWebDeviceSession(Tag.WEB_DEVICE_SESSION, value); + } + + /** + * web device session's details. + * + *

This instance must be tagged as {@link Tag#WEB_DEVICE_SESSION}.

+ * + * @return The {@link WebDeviceSessionLogInfo} value associated with this + * instance if {@link #isWebDeviceSession} is {@code true}. + * + * @throws IllegalStateException If {@link #isWebDeviceSession} is {@code + * false}. + */ + public WebDeviceSessionLogInfo getWebDeviceSessionValue() { + if (this._tag != Tag.WEB_DEVICE_SESSION) { + throw new IllegalStateException("Invalid tag: required Tag.WEB_DEVICE_SESSION, but was Tag." + this._tag.name()); + } + return webDeviceSessionValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.desktopDeviceSessionValue, + this.legacyDeviceSessionValue, + this.mobileDeviceSessionValue, + this.webDeviceSessionValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof LinkedDeviceLogInfo) { + LinkedDeviceLogInfo other = (LinkedDeviceLogInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case DESKTOP_DEVICE_SESSION: + return (this.desktopDeviceSessionValue == other.desktopDeviceSessionValue) || (this.desktopDeviceSessionValue.equals(other.desktopDeviceSessionValue)); + case LEGACY_DEVICE_SESSION: + return (this.legacyDeviceSessionValue == other.legacyDeviceSessionValue) || (this.legacyDeviceSessionValue.equals(other.legacyDeviceSessionValue)); + case MOBILE_DEVICE_SESSION: + return (this.mobileDeviceSessionValue == other.mobileDeviceSessionValue) || (this.mobileDeviceSessionValue.equals(other.mobileDeviceSessionValue)); + case WEB_DEVICE_SESSION: + return (this.webDeviceSessionValue == other.webDeviceSessionValue) || (this.webDeviceSessionValue.equals(other.webDeviceSessionValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LinkedDeviceLogInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case DESKTOP_DEVICE_SESSION: { + g.writeStartObject(); + writeTag("desktop_device_session", g); + DesktopDeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.desktopDeviceSessionValue, g, true); + g.writeEndObject(); + break; + } + case LEGACY_DEVICE_SESSION: { + g.writeStartObject(); + writeTag("legacy_device_session", g); + LegacyDeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.legacyDeviceSessionValue, g, true); + g.writeEndObject(); + break; + } + case MOBILE_DEVICE_SESSION: { + g.writeStartObject(); + writeTag("mobile_device_session", g); + MobileDeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.mobileDeviceSessionValue, g, true); + g.writeEndObject(); + break; + } + case WEB_DEVICE_SESSION: { + g.writeStartObject(); + writeTag("web_device_session", g); + WebDeviceSessionLogInfo.Serializer.INSTANCE.serialize(value.webDeviceSessionValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LinkedDeviceLogInfo deserialize(JsonParser p) throws IOException, JsonParseException { + LinkedDeviceLogInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("desktop_device_session".equals(tag)) { + DesktopDeviceSessionLogInfo fieldValue = null; + fieldValue = DesktopDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = LinkedDeviceLogInfo.desktopDeviceSession(fieldValue); + } + else if ("legacy_device_session".equals(tag)) { + LegacyDeviceSessionLogInfo fieldValue = null; + fieldValue = LegacyDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = LinkedDeviceLogInfo.legacyDeviceSession(fieldValue); + } + else if ("mobile_device_session".equals(tag)) { + MobileDeviceSessionLogInfo fieldValue = null; + fieldValue = MobileDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = LinkedDeviceLogInfo.mobileDeviceSession(fieldValue); + } + else if ("web_device_session".equals(tag)) { + WebDeviceSessionLogInfo fieldValue = null; + fieldValue = WebDeviceSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = LinkedDeviceLogInfo.webDeviceSession(fieldValue); + } + else { + value = LinkedDeviceLogInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LockStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LockStatus.java new file mode 100644 index 000000000..cfea833a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LockStatus.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * File lock status + */ +public enum LockStatus { + // union team_log.LockStatus (team_log_generated.stone) + LOCKED, + UNLOCKED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LockStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LOCKED: { + g.writeString("locked"); + break; + } + case UNLOCKED: { + g.writeString("unlocked"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LockStatus deserialize(JsonParser p) throws IOException, JsonParseException { + LockStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("locked".equals(tag)) { + value = LockStatus.LOCKED; + } + else if ("unlocked".equals(tag)) { + value = LockStatus.UNLOCKED; + } + else { + value = LockStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginFailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginFailDetails.java new file mode 100644 index 000000000..653879bcd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginFailDetails.java @@ -0,0 +1,222 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Failed to sign in. + */ +public class LoginFailDetails { + // struct team_log.LoginFailDetails (team_log_generated.stone) + + @Nullable + protected final Boolean isEmmManaged; + @Nonnull + protected final LoginMethod loginMethod; + @Nonnull + protected final FailureDetailsLogInfo errorDetails; + + /** + * Failed to sign in. + * + * @param loginMethod Login method. Must not be {@code null}. + * @param errorDetails Error details. Must not be {@code null}. + * @param isEmmManaged Tells if the login device is EMM managed. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LoginFailDetails(@Nonnull LoginMethod loginMethod, @Nonnull FailureDetailsLogInfo errorDetails, @Nullable Boolean isEmmManaged) { + this.isEmmManaged = isEmmManaged; + if (loginMethod == null) { + throw new IllegalArgumentException("Required value for 'loginMethod' is null"); + } + this.loginMethod = loginMethod; + if (errorDetails == null) { + throw new IllegalArgumentException("Required value for 'errorDetails' is null"); + } + this.errorDetails = errorDetails; + } + + /** + * Failed to sign in. + * + *

The default values for unset fields will be used.

+ * + * @param loginMethod Login method. Must not be {@code null}. + * @param errorDetails Error details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LoginFailDetails(@Nonnull LoginMethod loginMethod, @Nonnull FailureDetailsLogInfo errorDetails) { + this(loginMethod, errorDetails, null); + } + + /** + * Login method. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LoginMethod getLoginMethod() { + return loginMethod; + } + + /** + * Error details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FailureDetailsLogInfo getErrorDetails() { + return errorDetails; + } + + /** + * Tells if the login device is EMM managed. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsEmmManaged() { + return isEmmManaged; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isEmmManaged, + this.loginMethod, + this.errorDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LoginFailDetails other = (LoginFailDetails) obj; + return ((this.loginMethod == other.loginMethod) || (this.loginMethod.equals(other.loginMethod))) + && ((this.errorDetails == other.errorDetails) || (this.errorDetails.equals(other.errorDetails))) + && ((this.isEmmManaged == other.isEmmManaged) || (this.isEmmManaged != null && this.isEmmManaged.equals(other.isEmmManaged))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LoginFailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("login_method"); + LoginMethod.Serializer.INSTANCE.serialize(value.loginMethod, g); + g.writeFieldName("error_details"); + FailureDetailsLogInfo.Serializer.INSTANCE.serialize(value.errorDetails, g); + if (value.isEmmManaged != null) { + g.writeFieldName("is_emm_managed"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isEmmManaged, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LoginFailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LoginFailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LoginMethod f_loginMethod = null; + FailureDetailsLogInfo f_errorDetails = null; + Boolean f_isEmmManaged = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("login_method".equals(field)) { + f_loginMethod = LoginMethod.Serializer.INSTANCE.deserialize(p); + } + else if ("error_details".equals(field)) { + f_errorDetails = FailureDetailsLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("is_emm_managed".equals(field)) { + f_isEmmManaged = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_loginMethod == null) { + throw new JsonParseException(p, "Required field \"login_method\" missing."); + } + if (f_errorDetails == null) { + throw new JsonParseException(p, "Required field \"error_details\" missing."); + } + value = new LoginFailDetails(f_loginMethod, f_errorDetails, f_isEmmManaged); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginFailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginFailType.java new file mode 100644 index 000000000..66b3ed7ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginFailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LoginFailType { + // struct team_log.LoginFailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LoginFailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LoginFailType other = (LoginFailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LoginFailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LoginFailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LoginFailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LoginFailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginMethod.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginMethod.java new file mode 100644 index 000000000..cdc93d24c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginMethod.java @@ -0,0 +1,145 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum LoginMethod { + // union team_log.LoginMethod (team_log_generated.stone) + APPLE_OAUTH, + FIRST_PARTY_TOKEN_EXCHANGE, + GOOGLE_OAUTH, + LENOVO_OAUTH, + PASSWORD, + QR_CODE, + SAML, + TWO_FACTOR_AUTHENTICATION, + WEB_SESSION, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LoginMethod value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case APPLE_OAUTH: { + g.writeString("apple_oauth"); + break; + } + case FIRST_PARTY_TOKEN_EXCHANGE: { + g.writeString("first_party_token_exchange"); + break; + } + case GOOGLE_OAUTH: { + g.writeString("google_oauth"); + break; + } + case LENOVO_OAUTH: { + g.writeString("lenovo_oauth"); + break; + } + case PASSWORD: { + g.writeString("password"); + break; + } + case QR_CODE: { + g.writeString("qr_code"); + break; + } + case SAML: { + g.writeString("saml"); + break; + } + case TWO_FACTOR_AUTHENTICATION: { + g.writeString("two_factor_authentication"); + break; + } + case WEB_SESSION: { + g.writeString("web_session"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public LoginMethod deserialize(JsonParser p) throws IOException, JsonParseException { + LoginMethod value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("apple_oauth".equals(tag)) { + value = LoginMethod.APPLE_OAUTH; + } + else if ("first_party_token_exchange".equals(tag)) { + value = LoginMethod.FIRST_PARTY_TOKEN_EXCHANGE; + } + else if ("google_oauth".equals(tag)) { + value = LoginMethod.GOOGLE_OAUTH; + } + else if ("lenovo_oauth".equals(tag)) { + value = LoginMethod.LENOVO_OAUTH; + } + else if ("password".equals(tag)) { + value = LoginMethod.PASSWORD; + } + else if ("qr_code".equals(tag)) { + value = LoginMethod.QR_CODE; + } + else if ("saml".equals(tag)) { + value = LoginMethod.SAML; + } + else if ("two_factor_authentication".equals(tag)) { + value = LoginMethod.TWO_FACTOR_AUTHENTICATION; + } + else if ("web_session".equals(tag)) { + value = LoginMethod.WEB_SESSION; + } + else { + value = LoginMethod.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginSuccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginSuccessDetails.java new file mode 100644 index 000000000..88a524ce0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginSuccessDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Signed in. + */ +public class LoginSuccessDetails { + // struct team_log.LoginSuccessDetails (team_log_generated.stone) + + @Nullable + protected final Boolean isEmmManaged; + @Nonnull + protected final LoginMethod loginMethod; + + /** + * Signed in. + * + * @param loginMethod Login method. Must not be {@code null}. + * @param isEmmManaged Tells if the login device is EMM managed. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LoginSuccessDetails(@Nonnull LoginMethod loginMethod, @Nullable Boolean isEmmManaged) { + this.isEmmManaged = isEmmManaged; + if (loginMethod == null) { + throw new IllegalArgumentException("Required value for 'loginMethod' is null"); + } + this.loginMethod = loginMethod; + } + + /** + * Signed in. + * + *

The default values for unset fields will be used.

+ * + * @param loginMethod Login method. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LoginSuccessDetails(@Nonnull LoginMethod loginMethod) { + this(loginMethod, null); + } + + /** + * Login method. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LoginMethod getLoginMethod() { + return loginMethod; + } + + /** + * Tells if the login device is EMM managed. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsEmmManaged() { + return isEmmManaged; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isEmmManaged, + this.loginMethod + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LoginSuccessDetails other = (LoginSuccessDetails) obj; + return ((this.loginMethod == other.loginMethod) || (this.loginMethod.equals(other.loginMethod))) + && ((this.isEmmManaged == other.isEmmManaged) || (this.isEmmManaged != null && this.isEmmManaged.equals(other.isEmmManaged))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LoginSuccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("login_method"); + LoginMethod.Serializer.INSTANCE.serialize(value.loginMethod, g); + if (value.isEmmManaged != null) { + g.writeFieldName("is_emm_managed"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isEmmManaged, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LoginSuccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LoginSuccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LoginMethod f_loginMethod = null; + Boolean f_isEmmManaged = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("login_method".equals(field)) { + f_loginMethod = LoginMethod.Serializer.INSTANCE.deserialize(p); + } + else if ("is_emm_managed".equals(field)) { + f_isEmmManaged = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_loginMethod == null) { + throw new JsonParseException(p, "Required field \"login_method\" missing."); + } + value = new LoginSuccessDetails(f_loginMethod, f_isEmmManaged); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginSuccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginSuccessType.java new file mode 100644 index 000000000..baa2d86ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LoginSuccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LoginSuccessType { + // struct team_log.LoginSuccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LoginSuccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LoginSuccessType other = (LoginSuccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LoginSuccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LoginSuccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LoginSuccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LoginSuccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LogoutDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LogoutDetails.java new file mode 100644 index 000000000..dd46dd7c0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LogoutDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Signed out. + */ +public class LogoutDetails { + // struct team_log.LogoutDetails (team_log_generated.stone) + + @Nullable + protected final String loginId; + + /** + * Signed out. + * + * @param loginId Login session id. + */ + public LogoutDetails(@Nullable String loginId) { + this.loginId = loginId; + } + + /** + * Signed out. + * + *

The default values for unset fields will be used.

+ */ + public LogoutDetails() { + this(null); + } + + /** + * Login session id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLoginId() { + return loginId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.loginId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LogoutDetails other = (LogoutDetails) obj; + return (this.loginId == other.loginId) || (this.loginId != null && this.loginId.equals(other.loginId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LogoutDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.loginId != null) { + g.writeFieldName("login_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.loginId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LogoutDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LogoutDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_loginId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("login_id".equals(field)) { + f_loginId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new LogoutDetails(f_loginId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LogoutType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LogoutType.java new file mode 100644 index 000000000..16b7a7661 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/LogoutType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class LogoutType { + // struct team_log.LogoutType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public LogoutType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + LogoutType other = (LogoutType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(LogoutType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public LogoutType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + LogoutType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new LogoutType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddExternalIdDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddExternalIdDetails.java new file mode 100644 index 000000000..d6e6897ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddExternalIdDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added an external ID for team member. + */ +public class MemberAddExternalIdDetails { + // struct team_log.MemberAddExternalIdDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + + /** + * Added an external ID for team member. + * + * @param newValue Current external id. Must have length of at most 64 and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddExternalIdDetails(@Nonnull String newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + if (newValue.length() > 64) { + throw new IllegalArgumentException("String 'newValue' is longer than 64"); + } + this.newValue = newValue; + } + + /** + * Current external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAddExternalIdDetails other = (MemberAddExternalIdDetails) obj; + return (this.newValue == other.newValue) || (this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddExternalIdDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAddExternalIdDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAddExternalIdDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberAddExternalIdDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddExternalIdType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddExternalIdType.java new file mode 100644 index 000000000..52097811b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddExternalIdType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberAddExternalIdType { + // struct team_log.MemberAddExternalIdType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddExternalIdType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAddExternalIdType other = (MemberAddExternalIdType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddExternalIdType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAddExternalIdType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAddExternalIdType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberAddExternalIdType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddNameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddNameDetails.java new file mode 100644 index 000000000..61da4965c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddNameDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added team member name. + */ +public class MemberAddNameDetails { + // struct team_log.MemberAddNameDetails (team_log_generated.stone) + + @Nonnull + protected final UserNameLogInfo newValue; + + /** + * Added team member name. + * + * @param newValue New user's name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddNameDetails(@Nonnull UserNameLogInfo newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * New user's name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserNameLogInfo getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAddNameDetails other = (MemberAddNameDetails) obj; + return (this.newValue == other.newValue) || (this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddNameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + UserNameLogInfo.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAddNameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAddNameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserNameLogInfo f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = UserNameLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberAddNameDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddNameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddNameType.java new file mode 100644 index 000000000..98dc96956 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberAddNameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberAddNameType { + // struct team_log.MemberAddNameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberAddNameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberAddNameType other = (MemberAddNameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberAddNameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberAddNameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberAddNameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberAddNameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails.java new file mode 100644 index 000000000..1ce442ddf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeAdminRoleDetails.java @@ -0,0 +1,247 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed team member admin role. + */ +public class MemberChangeAdminRoleDetails { + // struct team_log.MemberChangeAdminRoleDetails (team_log_generated.stone) + + @Nullable + protected final AdminRole newValue; + @Nullable + protected final AdminRole previousValue; + + /** + * Changed team member admin role. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New admin role. This field is relevant when the admin + * role is changed or whenthe user role changes from no admin rights to + * with admin rights. + * @param previousValue Previous admin role. This field is relevant when + * the admin role is changed or when the admin role is removed. + */ + public MemberChangeAdminRoleDetails(@Nullable AdminRole newValue, @Nullable AdminRole previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed team member admin role. + * + *

The default values for unset fields will be used.

+ */ + public MemberChangeAdminRoleDetails() { + this(null, null); + } + + /** + * New admin role. This field is relevant when the admin role is changed or + * whenthe user role changes from no admin rights to with admin rights. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AdminRole getNewValue() { + return newValue; + } + + /** + * Previous admin role. This field is relevant when the admin role is + * changed or when the admin role is removed. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AdminRole getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link MemberChangeAdminRoleDetails}. + */ + public static class Builder { + + protected AdminRole newValue; + protected AdminRole previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New admin role. This field is relevant when the + * admin role is changed or whenthe user role changes from no admin + * rights to with admin rights. + * + * @return this builder + */ + public Builder withNewValue(AdminRole newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous admin role. This field is relevant + * when the admin role is changed or when the admin role is removed. + * + * @return this builder + */ + public Builder withPreviousValue(AdminRole previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link MemberChangeAdminRoleDetails} configured + * with this builder's values + * + * @return new instance of {@link MemberChangeAdminRoleDetails} + */ + public MemberChangeAdminRoleDetails build() { + return new MemberChangeAdminRoleDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeAdminRoleDetails other = (MemberChangeAdminRoleDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeAdminRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(AdminRole.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(AdminRole.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeAdminRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeAdminRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AdminRole f_newValue = null; + AdminRole f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(AdminRole.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(AdminRole.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new MemberChangeAdminRoleDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeAdminRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeAdminRoleType.java new file mode 100644 index 000000000..59ac5a5af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeAdminRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberChangeAdminRoleType { + // struct team_log.MemberChangeAdminRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeAdminRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeAdminRoleType other = (MemberChangeAdminRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeAdminRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeAdminRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeAdminRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberChangeAdminRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeEmailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeEmailDetails.java new file mode 100644 index 000000000..87acabb40 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeEmailDetails.java @@ -0,0 +1,202 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed team member email. + */ +public class MemberChangeEmailDetails { + // struct team_log.MemberChangeEmailDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + @Nullable + protected final String previousValue; + + /** + * Changed team member email. + * + * @param newValue New email. Must have length of at most 255 and not be + * {@code null}. + * @param previousValue Previous email. Might be missing due to historical + * data gap. Must have length of at most 255. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeEmailDetails(@Nonnull String newValue, @Nullable String previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + if (newValue.length() > 255) { + throw new IllegalArgumentException("String 'newValue' is longer than 255"); + } + this.newValue = newValue; + if (previousValue != null) { + if (previousValue.length() > 255) { + throw new IllegalArgumentException("String 'previousValue' is longer than 255"); + } + } + this.previousValue = previousValue; + } + + /** + * Changed team member email. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New email. Must have length of at most 255 and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeEmailDetails(@Nonnull String newValue) { + this(newValue, null); + } + + /** + * New email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + /** + * Previous email. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeEmailDetails other = (MemberChangeEmailDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeEmailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeEmailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeEmailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberChangeEmailDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeEmailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeEmailType.java new file mode 100644 index 000000000..b12626ac5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeEmailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberChangeEmailType { + // struct team_log.MemberChangeEmailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeEmailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeEmailType other = (MemberChangeEmailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeEmailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeEmailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeEmailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberChangeEmailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeExternalIdDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeExternalIdDetails.java new file mode 100644 index 000000000..064a6aab0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeExternalIdDetails.java @@ -0,0 +1,188 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed the external ID for team member. + */ +public class MemberChangeExternalIdDetails { + // struct team_log.MemberChangeExternalIdDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + @Nonnull + protected final String previousValue; + + /** + * Changed the external ID for team member. + * + * @param newValue Current external id. Must have length of at most 64 and + * not be {@code null}. + * @param previousValue Old external id. Must have length of at most 64 and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeExternalIdDetails(@Nonnull String newValue, @Nonnull String previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + if (newValue.length() > 64) { + throw new IllegalArgumentException("String 'newValue' is longer than 64"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + if (previousValue.length() > 64) { + throw new IllegalArgumentException("String 'previousValue' is longer than 64"); + } + this.previousValue = previousValue; + } + + /** + * Current external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + /** + * Old external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeExternalIdDetails other = (MemberChangeExternalIdDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeExternalIdDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeExternalIdDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeExternalIdDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new MemberChangeExternalIdDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeExternalIdType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeExternalIdType.java new file mode 100644 index 000000000..fd2b3ab5e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeExternalIdType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberChangeExternalIdType { + // struct team_log.MemberChangeExternalIdType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeExternalIdType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeExternalIdType other = (MemberChangeExternalIdType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeExternalIdType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeExternalIdType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeExternalIdType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberChangeExternalIdType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeDetails.java new file mode 100644 index 000000000..235b5833b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed membership type (limited/full) of member. + */ +public class MemberChangeMembershipTypeDetails { + // struct team_log.MemberChangeMembershipTypeDetails (team_log_generated.stone) + + @Nonnull + protected final TeamMembershipType prevValue; + @Nonnull + protected final TeamMembershipType newValue; + + /** + * Changed membership type (limited/full) of member. + * + * @param prevValue Previous membership type. Must not be {@code null}. + * @param newValue New membership type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeMembershipTypeDetails(@Nonnull TeamMembershipType prevValue, @Nonnull TeamMembershipType newValue) { + if (prevValue == null) { + throw new IllegalArgumentException("Required value for 'prevValue' is null"); + } + this.prevValue = prevValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous membership type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMembershipType getPrevValue() { + return prevValue; + } + + /** + * New membership type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMembershipType getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.prevValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeMembershipTypeDetails other = (MemberChangeMembershipTypeDetails) obj; + return ((this.prevValue == other.prevValue) || (this.prevValue.equals(other.prevValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeMembershipTypeDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("prev_value"); + TeamMembershipType.Serializer.INSTANCE.serialize(value.prevValue, g); + g.writeFieldName("new_value"); + TeamMembershipType.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeMembershipTypeDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeMembershipTypeDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMembershipType f_prevValue = null; + TeamMembershipType f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("prev_value".equals(field)) { + f_prevValue = TeamMembershipType.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = TeamMembershipType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_prevValue == null) { + throw new JsonParseException(p, "Required field \"prev_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberChangeMembershipTypeDetails(f_prevValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeType.java new file mode 100644 index 000000000..3c567a3dd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeMembershipTypeType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberChangeMembershipTypeType { + // struct team_log.MemberChangeMembershipTypeType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeMembershipTypeType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeMembershipTypeType other = (MemberChangeMembershipTypeType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeMembershipTypeType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeMembershipTypeType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeMembershipTypeType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberChangeMembershipTypeType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeNameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeNameDetails.java new file mode 100644 index 000000000..c282596f9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeNameDetails.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed team member name. + */ +public class MemberChangeNameDetails { + // struct team_log.MemberChangeNameDetails (team_log_generated.stone) + + @Nonnull + protected final UserNameLogInfo newValue; + @Nullable + protected final UserNameLogInfo previousValue; + + /** + * Changed team member name. + * + * @param newValue New user's name. Must not be {@code null}. + * @param previousValue Previous user's name. Might be missing due to + * historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeNameDetails(@Nonnull UserNameLogInfo newValue, @Nullable UserNameLogInfo previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed team member name. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New user's name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeNameDetails(@Nonnull UserNameLogInfo newValue) { + this(newValue, null); + } + + /** + * New user's name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UserNameLogInfo getNewValue() { + return newValue; + } + + /** + * Previous user's name. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserNameLogInfo getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeNameDetails other = (MemberChangeNameDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeNameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + UserNameLogInfo.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullableStruct(UserNameLogInfo.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeNameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeNameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserNameLogInfo f_newValue = null; + UserNameLogInfo f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = UserNameLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullableStruct(UserNameLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberChangeNameDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeNameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeNameType.java new file mode 100644 index 000000000..8bc715c99 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeNameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberChangeNameType { + // struct team_log.MemberChangeNameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeNameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeNameType other = (MemberChangeNameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeNameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeNameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeNameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberChangeNameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeResellerRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeResellerRoleDetails.java new file mode 100644 index 000000000..f7e6a2d69 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeResellerRoleDetails.java @@ -0,0 +1,185 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed team member reseller role. + */ +public class MemberChangeResellerRoleDetails { + // struct team_log.MemberChangeResellerRoleDetails (team_log_generated.stone) + + @Nonnull + protected final ResellerRole newValue; + @Nonnull + protected final ResellerRole previousValue; + + /** + * Changed team member reseller role. + * + * @param newValue New reseller role. This field is relevant when the + * reseller role is changed. Must not be {@code null}. + * @param previousValue Previous reseller role. This field is relevant when + * the reseller role is changed or when the reseller role is removed. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeResellerRoleDetails(@Nonnull ResellerRole newValue, @Nonnull ResellerRole previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New reseller role. This field is relevant when the reseller role is + * changed. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ResellerRole getNewValue() { + return newValue; + } + + /** + * Previous reseller role. This field is relevant when the reseller role is + * changed or when the reseller role is removed. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ResellerRole getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeResellerRoleDetails other = (MemberChangeResellerRoleDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeResellerRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ResellerRole.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + ResellerRole.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeResellerRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeResellerRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ResellerRole f_newValue = null; + ResellerRole f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ResellerRole.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ResellerRole.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new MemberChangeResellerRoleDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeResellerRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeResellerRoleType.java new file mode 100644 index 000000000..eb4dcdd50 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeResellerRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberChangeResellerRoleType { + // struct team_log.MemberChangeResellerRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeResellerRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeResellerRoleType other = (MemberChangeResellerRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeResellerRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeResellerRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeResellerRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberChangeResellerRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeStatusDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeStatusDetails.java new file mode 100644 index 000000000..eb159ac02 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeStatusDetails.java @@ -0,0 +1,372 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed member status (invited, joined, suspended, etc.). + */ +public class MemberChangeStatusDetails { + // struct team_log.MemberChangeStatusDetails (team_log_generated.stone) + + @Nullable + protected final MemberStatus previousValue; + @Nonnull + protected final MemberStatus newValue; + @Nullable + protected final ActionDetails action; + @Nullable + protected final String newTeam; + @Nullable + protected final String previousTeam; + + /** + * Changed member status (invited, joined, suspended, etc.). + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New member status. Must not be {@code null}. + * @param previousValue Previous member status. Might be missing due to + * historical data gap. + * @param action Additional information indicating the action taken that + * caused status change. + * @param newTeam The user's new team name. This field is relevant when the + * user is transferred off the team. + * @param previousTeam The user's previous team name. This field is + * relevant when the user is transferred onto the team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeStatusDetails(@Nonnull MemberStatus newValue, @Nullable MemberStatus previousValue, @Nullable ActionDetails action, @Nullable String newTeam, @Nullable String previousTeam) { + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.action = action; + this.newTeam = newTeam; + this.previousTeam = previousTeam; + } + + /** + * Changed member status (invited, joined, suspended, etc.). + * + *

The default values for unset fields will be used.

+ * + * @param newValue New member status. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeStatusDetails(@Nonnull MemberStatus newValue) { + this(newValue, null, null, null, null); + } + + /** + * New member status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberStatus getNewValue() { + return newValue; + } + + /** + * Previous member status. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberStatus getPreviousValue() { + return previousValue; + } + + /** + * Additional information indicating the action taken that caused status + * change. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ActionDetails getAction() { + return action; + } + + /** + * The user's new team name. This field is relevant when the user is + * transferred off the team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewTeam() { + return newTeam; + } + + /** + * The user's previous team name. This field is relevant when the user is + * transferred onto the team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousTeam() { + return previousTeam; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param newValue New member status. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(MemberStatus newValue) { + return new Builder(newValue); + } + + /** + * Builder for {@link MemberChangeStatusDetails}. + */ + public static class Builder { + protected final MemberStatus newValue; + + protected MemberStatus previousValue; + protected ActionDetails action; + protected String newTeam; + protected String previousTeam; + + protected Builder(MemberStatus newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = null; + this.action = null; + this.newTeam = null; + this.previousTeam = null; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous member status. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(MemberStatus previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Set value for optional field. + * + * @param action Additional information indicating the action taken + * that caused status change. + * + * @return this builder + */ + public Builder withAction(ActionDetails action) { + this.action = action; + return this; + } + + /** + * Set value for optional field. + * + * @param newTeam The user's new team name. This field is relevant when + * the user is transferred off the team. + * + * @return this builder + */ + public Builder withNewTeam(String newTeam) { + this.newTeam = newTeam; + return this; + } + + /** + * Set value for optional field. + * + * @param previousTeam The user's previous team name. This field is + * relevant when the user is transferred onto the team. + * + * @return this builder + */ + public Builder withPreviousTeam(String previousTeam) { + this.previousTeam = previousTeam; + return this; + } + + /** + * Builds an instance of {@link MemberChangeStatusDetails} configured + * with this builder's values + * + * @return new instance of {@link MemberChangeStatusDetails} + */ + public MemberChangeStatusDetails build() { + return new MemberChangeStatusDetails(newValue, previousValue, action, newTeam, previousTeam); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue, + this.action, + this.newTeam, + this.previousTeam + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeStatusDetails other = (MemberChangeStatusDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + && ((this.action == other.action) || (this.action != null && this.action.equals(other.action))) + && ((this.newTeam == other.newTeam) || (this.newTeam != null && this.newTeam.equals(other.newTeam))) + && ((this.previousTeam == other.previousTeam) || (this.previousTeam != null && this.previousTeam.equals(other.previousTeam))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeStatusDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + MemberStatus.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(MemberStatus.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (value.action != null) { + g.writeFieldName("action"); + StoneSerializers.nullable(ActionDetails.Serializer.INSTANCE).serialize(value.action, g); + } + if (value.newTeam != null) { + g.writeFieldName("new_team"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newTeam, g); + } + if (value.previousTeam != null) { + g.writeFieldName("previous_team"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousTeam, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeStatusDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeStatusDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberStatus f_newValue = null; + MemberStatus f_previousValue = null; + ActionDetails f_action = null; + String f_newTeam = null; + String f_previousTeam = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = MemberStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(MemberStatus.Serializer.INSTANCE).deserialize(p); + } + else if ("action".equals(field)) { + f_action = StoneSerializers.nullable(ActionDetails.Serializer.INSTANCE).deserialize(p); + } + else if ("new_team".equals(field)) { + f_newTeam = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_team".equals(field)) { + f_previousTeam = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberChangeStatusDetails(f_newValue, f_previousValue, f_action, f_newTeam, f_previousTeam); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeStatusType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeStatusType.java new file mode 100644 index 000000000..42422bbe8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberChangeStatusType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberChangeStatusType { + // struct team_log.MemberChangeStatusType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberChangeStatusType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberChangeStatusType other = (MemberChangeStatusType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberChangeStatusType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberChangeStatusType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberChangeStatusType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberChangeStatusType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteManualContactsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteManualContactsDetails.java new file mode 100644 index 000000000..9f1b0e6ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteManualContactsDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Cleared manually added contacts. + */ +public class MemberDeleteManualContactsDetails { + // struct team_log.MemberDeleteManualContactsDetails (team_log_generated.stone) + + + /** + * Cleared manually added contacts. + */ + public MemberDeleteManualContactsDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberDeleteManualContactsDetails other = (MemberDeleteManualContactsDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberDeleteManualContactsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberDeleteManualContactsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberDeleteManualContactsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberDeleteManualContactsDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteManualContactsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteManualContactsType.java new file mode 100644 index 000000000..dedd116b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteManualContactsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberDeleteManualContactsType { + // struct team_log.MemberDeleteManualContactsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberDeleteManualContactsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberDeleteManualContactsType other = (MemberDeleteManualContactsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberDeleteManualContactsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberDeleteManualContactsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberDeleteManualContactsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberDeleteManualContactsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoDetails.java new file mode 100644 index 000000000..6e4612f04 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Deleted team member profile photo. + */ +public class MemberDeleteProfilePhotoDetails { + // struct team_log.MemberDeleteProfilePhotoDetails (team_log_generated.stone) + + + /** + * Deleted team member profile photo. + */ + public MemberDeleteProfilePhotoDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberDeleteProfilePhotoDetails other = (MemberDeleteProfilePhotoDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberDeleteProfilePhotoDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberDeleteProfilePhotoDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberDeleteProfilePhotoDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberDeleteProfilePhotoDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoType.java new file mode 100644 index 000000000..6246f5557 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberDeleteProfilePhotoType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberDeleteProfilePhotoType { + // struct team_log.MemberDeleteProfilePhotoType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberDeleteProfilePhotoType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberDeleteProfilePhotoType other = (MemberDeleteProfilePhotoType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberDeleteProfilePhotoType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberDeleteProfilePhotoType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberDeleteProfilePhotoType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberDeleteProfilePhotoType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsDetails.java new file mode 100644 index 000000000..46fff99cd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Permanently deleted contents of deleted team member account. + */ +public class MemberPermanentlyDeleteAccountContentsDetails { + // struct team_log.MemberPermanentlyDeleteAccountContentsDetails (team_log_generated.stone) + + + /** + * Permanently deleted contents of deleted team member account. + */ + public MemberPermanentlyDeleteAccountContentsDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberPermanentlyDeleteAccountContentsDetails other = (MemberPermanentlyDeleteAccountContentsDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberPermanentlyDeleteAccountContentsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberPermanentlyDeleteAccountContentsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberPermanentlyDeleteAccountContentsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberPermanentlyDeleteAccountContentsDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsType.java new file mode 100644 index 000000000..9f35e85f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberPermanentlyDeleteAccountContentsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberPermanentlyDeleteAccountContentsType { + // struct team_log.MemberPermanentlyDeleteAccountContentsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberPermanentlyDeleteAccountContentsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberPermanentlyDeleteAccountContentsType other = (MemberPermanentlyDeleteAccountContentsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberPermanentlyDeleteAccountContentsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberPermanentlyDeleteAccountContentsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberPermanentlyDeleteAccountContentsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberPermanentlyDeleteAccountContentsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveActionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveActionType.java new file mode 100644 index 000000000..1d48302ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveActionType.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MemberRemoveActionType { + // union team_log.MemberRemoveActionType (team_log_generated.stone) + DELETE, + LEAVE, + OFFBOARD, + OFFBOARD_AND_RETAIN_TEAM_FOLDERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberRemoveActionType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DELETE: { + g.writeString("delete"); + break; + } + case LEAVE: { + g.writeString("leave"); + break; + } + case OFFBOARD: { + g.writeString("offboard"); + break; + } + case OFFBOARD_AND_RETAIN_TEAM_FOLDERS: { + g.writeString("offboard_and_retain_team_folders"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberRemoveActionType deserialize(JsonParser p) throws IOException, JsonParseException { + MemberRemoveActionType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("delete".equals(tag)) { + value = MemberRemoveActionType.DELETE; + } + else if ("leave".equals(tag)) { + value = MemberRemoveActionType.LEAVE; + } + else if ("offboard".equals(tag)) { + value = MemberRemoveActionType.OFFBOARD; + } + else if ("offboard_and_retain_team_folders".equals(tag)) { + value = MemberRemoveActionType.OFFBOARD_AND_RETAIN_TEAM_FOLDERS; + } + else { + value = MemberRemoveActionType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveExternalIdDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveExternalIdDetails.java new file mode 100644 index 000000000..da28a448c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveExternalIdDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed the external ID for team member. + */ +public class MemberRemoveExternalIdDetails { + // struct team_log.MemberRemoveExternalIdDetails (team_log_generated.stone) + + @Nonnull + protected final String previousValue; + + /** + * Removed the external ID for team member. + * + * @param previousValue Old external id. Must have length of at most 64 and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberRemoveExternalIdDetails(@Nonnull String previousValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + if (previousValue.length() > 64) { + throw new IllegalArgumentException("String 'previousValue' is longer than 64"); + } + this.previousValue = previousValue; + } + + /** + * Old external id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberRemoveExternalIdDetails other = (MemberRemoveExternalIdDetails) obj; + return (this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberRemoveExternalIdDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberRemoveExternalIdDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberRemoveExternalIdDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new MemberRemoveExternalIdDetails(f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveExternalIdType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveExternalIdType.java new file mode 100644 index 000000000..299b6e948 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRemoveExternalIdType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberRemoveExternalIdType { + // struct team_log.MemberRemoveExternalIdType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberRemoveExternalIdType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberRemoveExternalIdType other = (MemberRemoveExternalIdType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberRemoveExternalIdType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberRemoveExternalIdType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberRemoveExternalIdType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberRemoveExternalIdType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyDetails.java new file mode 100644 index 000000000..95655722d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether users can find team when not invited. + */ +public class MemberRequestsChangePolicyDetails { + // struct team_log.MemberRequestsChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final MemberRequestsPolicy newValue; + @Nullable + protected final MemberRequestsPolicy previousValue; + + /** + * Changed whether users can find team when not invited. + * + * @param newValue New member change requests policy. Must not be {@code + * null}. + * @param previousValue Previous member change requests policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberRequestsChangePolicyDetails(@Nonnull MemberRequestsPolicy newValue, @Nullable MemberRequestsPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether users can find team when not invited. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New member change requests policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberRequestsChangePolicyDetails(@Nonnull MemberRequestsPolicy newValue) { + this(newValue, null); + } + + /** + * New member change requests policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberRequestsPolicy getNewValue() { + return newValue; + } + + /** + * Previous member change requests policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberRequestsPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberRequestsChangePolicyDetails other = (MemberRequestsChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberRequestsChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + MemberRequestsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(MemberRequestsPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberRequestsChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberRequestsChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberRequestsPolicy f_newValue = null; + MemberRequestsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = MemberRequestsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(MemberRequestsPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberRequestsChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyType.java new file mode 100644 index 000000000..c2be6526f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberRequestsChangePolicyType { + // struct team_log.MemberRequestsChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberRequestsChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberRequestsChangePolicyType other = (MemberRequestsChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberRequestsChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberRequestsChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberRequestsChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberRequestsChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsPolicy.java new file mode 100644 index 000000000..f1c531ef6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberRequestsPolicy.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MemberRequestsPolicy { + // union team_log.MemberRequestsPolicy (team_log_generated.stone) + AUTO_ACCEPT, + DISABLED, + REQUIRE_APPROVAL, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberRequestsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case AUTO_ACCEPT: { + g.writeString("auto_accept"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case REQUIRE_APPROVAL: { + g.writeString("require_approval"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberRequestsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + MemberRequestsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("auto_accept".equals(tag)) { + value = MemberRequestsPolicy.AUTO_ACCEPT; + } + else if ("disabled".equals(tag)) { + value = MemberRequestsPolicy.DISABLED; + } + else if ("require_approval".equals(tag)) { + value = MemberRequestsPolicy.REQUIRE_APPROVAL; + } + else { + value = MemberRequestsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicy.java new file mode 100644 index 000000000..551e64d70 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling whether team members can send team invites + */ +public enum MemberSendInvitePolicy { + // union team_log.MemberSendInvitePolicy (team_log_generated.stone) + DISABLED, + EVERYONE, + SPECIFIC_MEMBERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSendInvitePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case EVERYONE: { + g.writeString("everyone"); + break; + } + case SPECIFIC_MEMBERS: { + g.writeString("specific_members"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberSendInvitePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + MemberSendInvitePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = MemberSendInvitePolicy.DISABLED; + } + else if ("everyone".equals(tag)) { + value = MemberSendInvitePolicy.EVERYONE; + } + else if ("specific_members".equals(tag)) { + value = MemberSendInvitePolicy.SPECIFIC_MEMBERS; + } + else { + value = MemberSendInvitePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedDetails.java new file mode 100644 index 000000000..0d672e6b5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed member send invite policy for team. + */ +public class MemberSendInvitePolicyChangedDetails { + // struct team_log.MemberSendInvitePolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final MemberSendInvitePolicy newValue; + @Nonnull + protected final MemberSendInvitePolicy previousValue; + + /** + * Changed member send invite policy for team. + * + * @param newValue New team member send invite policy. Must not be {@code + * null}. + * @param previousValue Previous team member send invite policy. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSendInvitePolicyChangedDetails(@Nonnull MemberSendInvitePolicy newValue, @Nonnull MemberSendInvitePolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New team member send invite policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSendInvitePolicy getNewValue() { + return newValue; + } + + /** + * Previous team member send invite policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSendInvitePolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSendInvitePolicyChangedDetails other = (MemberSendInvitePolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSendInvitePolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + MemberSendInvitePolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + MemberSendInvitePolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSendInvitePolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSendInvitePolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberSendInvitePolicy f_newValue = null; + MemberSendInvitePolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = MemberSendInvitePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = MemberSendInvitePolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new MemberSendInvitePolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedType.java new file mode 100644 index 000000000..5f81e73cb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSendInvitePolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSendInvitePolicyChangedType { + // struct team_log.MemberSendInvitePolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSendInvitePolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSendInvitePolicyChangedType other = (MemberSendInvitePolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSendInvitePolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSendInvitePolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSendInvitePolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSendInvitePolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSetProfilePhotoDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSetProfilePhotoDetails.java new file mode 100644 index 000000000..5cc39c201 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSetProfilePhotoDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Set team member profile photo. + */ +public class MemberSetProfilePhotoDetails { + // struct team_log.MemberSetProfilePhotoDetails (team_log_generated.stone) + + + /** + * Set team member profile photo. + */ + public MemberSetProfilePhotoDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSetProfilePhotoDetails other = (MemberSetProfilePhotoDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSetProfilePhotoDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSetProfilePhotoDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSetProfilePhotoDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberSetProfilePhotoDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSetProfilePhotoType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSetProfilePhotoType.java new file mode 100644 index 000000000..eef1fbafa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSetProfilePhotoType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSetProfilePhotoType { + // struct team_log.MemberSetProfilePhotoType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSetProfilePhotoType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSetProfilePhotoType other = (MemberSetProfilePhotoType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSetProfilePhotoType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSetProfilePhotoType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSetProfilePhotoType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSetProfilePhotoType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaDetails.java new file mode 100644 index 000000000..a5dec303f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaDetails.java @@ -0,0 +1,141 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Set custom member space limit. + */ +public class MemberSpaceLimitsAddCustomQuotaDetails { + // struct team_log.MemberSpaceLimitsAddCustomQuotaDetails (team_log_generated.stone) + + protected final long newValue; + + /** + * Set custom member space limit. + * + * @param newValue New custom quota value in bytes. + */ + public MemberSpaceLimitsAddCustomQuotaDetails(long newValue) { + this.newValue = newValue; + } + + /** + * New custom quota value in bytes. + * + * @return value for this field. + */ + public long getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsAddCustomQuotaDetails other = (MemberSpaceLimitsAddCustomQuotaDetails) obj; + return this.newValue == other.newValue; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsAddCustomQuotaDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.uInt64().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsAddCustomQuotaDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsAddCustomQuotaDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberSpaceLimitsAddCustomQuotaDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaType.java new file mode 100644 index 000000000..ddc1a833e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddCustomQuotaType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsAddCustomQuotaType { + // struct team_log.MemberSpaceLimitsAddCustomQuotaType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsAddCustomQuotaType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsAddCustomQuotaType other = (MemberSpaceLimitsAddCustomQuotaType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsAddCustomQuotaType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsAddCustomQuotaType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsAddCustomQuotaType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsAddCustomQuotaType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionDetails.java new file mode 100644 index 000000000..0f9df393d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added members to member space limit exception list. + */ +public class MemberSpaceLimitsAddExceptionDetails { + // struct team_log.MemberSpaceLimitsAddExceptionDetails (team_log_generated.stone) + + + /** + * Added members to member space limit exception list. + */ + public MemberSpaceLimitsAddExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsAddExceptionDetails other = (MemberSpaceLimitsAddExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsAddExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsAddExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsAddExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberSpaceLimitsAddExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionType.java new file mode 100644 index 000000000..52eedf531 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsAddExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsAddExceptionType { + // struct team_log.MemberSpaceLimitsAddExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsAddExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsAddExceptionType other = (MemberSpaceLimitsAddExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsAddExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsAddExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsAddExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsAddExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyDetails.java new file mode 100644 index 000000000..884569ac5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed member space limit type for team. + */ +public class MemberSpaceLimitsChangeCapsTypePolicyDetails { + // struct team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final SpaceCapsType previousValue; + @Nonnull + protected final SpaceCapsType newValue; + + /** + * Changed member space limit type for team. + * + * @param previousValue Previous space limit type. Must not be {@code + * null}. + * @param newValue New space limit type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsChangeCapsTypePolicyDetails(@Nonnull SpaceCapsType previousValue, @Nonnull SpaceCapsType newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous space limit type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SpaceCapsType getPreviousValue() { + return previousValue; + } + + /** + * New space limit type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SpaceCapsType getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangeCapsTypePolicyDetails other = (MemberSpaceLimitsChangeCapsTypePolicyDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangeCapsTypePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + SpaceCapsType.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + SpaceCapsType.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangeCapsTypePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangeCapsTypePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SpaceCapsType f_previousValue = null; + SpaceCapsType f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = SpaceCapsType.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = SpaceCapsType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberSpaceLimitsChangeCapsTypePolicyDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyType.java new file mode 100644 index 000000000..b5e582f85 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCapsTypePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsChangeCapsTypePolicyType { + // struct team_log.MemberSpaceLimitsChangeCapsTypePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsChangeCapsTypePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangeCapsTypePolicyType other = (MemberSpaceLimitsChangeCapsTypePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangeCapsTypePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangeCapsTypePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangeCapsTypePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsChangeCapsTypePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaDetails.java new file mode 100644 index 000000000..4b5976f32 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaDetails.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Changed custom member space limit. + */ +public class MemberSpaceLimitsChangeCustomQuotaDetails { + // struct team_log.MemberSpaceLimitsChangeCustomQuotaDetails (team_log_generated.stone) + + protected final long previousValue; + protected final long newValue; + + /** + * Changed custom member space limit. + * + * @param previousValue Previous custom quota value in bytes. + * @param newValue New custom quota value in bytes. + */ + public MemberSpaceLimitsChangeCustomQuotaDetails(long previousValue, long newValue) { + this.previousValue = previousValue; + this.newValue = newValue; + } + + /** + * Previous custom quota value in bytes. + * + * @return value for this field. + */ + public long getPreviousValue() { + return previousValue; + } + + /** + * New custom quota value in bytes. + * + * @return value for this field. + */ + public long getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangeCustomQuotaDetails other = (MemberSpaceLimitsChangeCustomQuotaDetails) obj; + return (this.previousValue == other.previousValue) + && (this.newValue == other.newValue) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangeCustomQuotaDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.uInt64().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.uInt64().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangeCustomQuotaDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangeCustomQuotaDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_previousValue = null; + Long f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.uInt64().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberSpaceLimitsChangeCustomQuotaDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaType.java new file mode 100644 index 000000000..8e4c0e5a0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeCustomQuotaType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsChangeCustomQuotaType { + // struct team_log.MemberSpaceLimitsChangeCustomQuotaType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsChangeCustomQuotaType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangeCustomQuotaType other = (MemberSpaceLimitsChangeCustomQuotaType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangeCustomQuotaType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangeCustomQuotaType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangeCustomQuotaType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsChangeCustomQuotaType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails.java new file mode 100644 index 000000000..b3972dd86 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyDetails.java @@ -0,0 +1,245 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed team default member space limit. + */ +public class MemberSpaceLimitsChangePolicyDetails { + // struct team_log.MemberSpaceLimitsChangePolicyDetails (team_log_generated.stone) + + @Nullable + protected final Long previousValue; + @Nullable + protected final Long newValue; + + /** + * Changed team default member space limit. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param previousValue Previous team default limit value in bytes. Might + * be missing due to historical data gap. + * @param newValue New team default limit value in bytes. Might be missing + * due to historical data gap. + */ + public MemberSpaceLimitsChangePolicyDetails(@Nullable Long previousValue, @Nullable Long newValue) { + this.previousValue = previousValue; + this.newValue = newValue; + } + + /** + * Changed team default member space limit. + * + *

The default values for unset fields will be used.

+ */ + public MemberSpaceLimitsChangePolicyDetails() { + this(null, null); + } + + /** + * Previous team default limit value in bytes. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getPreviousValue() { + return previousValue; + } + + /** + * New team default limit value in bytes. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getNewValue() { + return newValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link MemberSpaceLimitsChangePolicyDetails}. + */ + public static class Builder { + + protected Long previousValue; + protected Long newValue; + + protected Builder() { + this.previousValue = null; + this.newValue = null; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous team default limit value in bytes. + * Might be missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(Long previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Set value for optional field. + * + * @param newValue New team default limit value in bytes. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withNewValue(Long newValue) { + this.newValue = newValue; + return this; + } + + /** + * Builds an instance of {@link MemberSpaceLimitsChangePolicyDetails} + * configured with this builder's values + * + * @return new instance of {@link MemberSpaceLimitsChangePolicyDetails} + */ + public MemberSpaceLimitsChangePolicyDetails build() { + return new MemberSpaceLimitsChangePolicyDetails(previousValue, newValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangePolicyDetails other = (MemberSpaceLimitsChangePolicyDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.previousValue, g); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.newValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_previousValue = null; + Long f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new MemberSpaceLimitsChangePolicyDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyType.java new file mode 100644 index 000000000..d4dd0aa3c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsChangePolicyType { + // struct team_log.MemberSpaceLimitsChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangePolicyType other = (MemberSpaceLimitsChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusDetails.java new file mode 100644 index 000000000..c97c8830b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed space limit status. + */ +public class MemberSpaceLimitsChangeStatusDetails { + // struct team_log.MemberSpaceLimitsChangeStatusDetails (team_log_generated.stone) + + @Nonnull + protected final SpaceLimitsStatus previousValue; + @Nonnull + protected final SpaceLimitsStatus newValue; + + /** + * Changed space limit status. + * + * @param previousValue Previous storage quota status. Must not be {@code + * null}. + * @param newValue New storage quota status. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsChangeStatusDetails(@Nonnull SpaceLimitsStatus previousValue, @Nonnull SpaceLimitsStatus newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous storage quota status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SpaceLimitsStatus getPreviousValue() { + return previousValue; + } + + /** + * New storage quota status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SpaceLimitsStatus getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangeStatusDetails other = (MemberSpaceLimitsChangeStatusDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangeStatusDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + SpaceLimitsStatus.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + SpaceLimitsStatus.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangeStatusDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangeStatusDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SpaceLimitsStatus f_previousValue = null; + SpaceLimitsStatus f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = SpaceLimitsStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = SpaceLimitsStatus.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberSpaceLimitsChangeStatusDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusType.java new file mode 100644 index 000000000..ef6ec2eb4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsChangeStatusType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsChangeStatusType { + // struct team_log.MemberSpaceLimitsChangeStatusType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsChangeStatusType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsChangeStatusType other = (MemberSpaceLimitsChangeStatusType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsChangeStatusType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsChangeStatusType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsChangeStatusType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsChangeStatusType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaDetails.java new file mode 100644 index 000000000..ffe36f016 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed custom member space limit. + */ +public class MemberSpaceLimitsRemoveCustomQuotaDetails { + // struct team_log.MemberSpaceLimitsRemoveCustomQuotaDetails (team_log_generated.stone) + + + /** + * Removed custom member space limit. + */ + public MemberSpaceLimitsRemoveCustomQuotaDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsRemoveCustomQuotaDetails other = (MemberSpaceLimitsRemoveCustomQuotaDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsRemoveCustomQuotaDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsRemoveCustomQuotaDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsRemoveCustomQuotaDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberSpaceLimitsRemoveCustomQuotaDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaType.java new file mode 100644 index 000000000..044fd47d2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveCustomQuotaType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsRemoveCustomQuotaType { + // struct team_log.MemberSpaceLimitsRemoveCustomQuotaType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsRemoveCustomQuotaType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsRemoveCustomQuotaType other = (MemberSpaceLimitsRemoveCustomQuotaType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsRemoveCustomQuotaType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsRemoveCustomQuotaType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsRemoveCustomQuotaType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsRemoveCustomQuotaType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionDetails.java new file mode 100644 index 000000000..93c6890c6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed members from member space limit exception list. + */ +public class MemberSpaceLimitsRemoveExceptionDetails { + // struct team_log.MemberSpaceLimitsRemoveExceptionDetails (team_log_generated.stone) + + + /** + * Removed members from member space limit exception list. + */ + public MemberSpaceLimitsRemoveExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsRemoveExceptionDetails other = (MemberSpaceLimitsRemoveExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsRemoveExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsRemoveExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsRemoveExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberSpaceLimitsRemoveExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionType.java new file mode 100644 index 000000000..1beb24e7d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSpaceLimitsRemoveExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSpaceLimitsRemoveExceptionType { + // struct team_log.MemberSpaceLimitsRemoveExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSpaceLimitsRemoveExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSpaceLimitsRemoveExceptionType other = (MemberSpaceLimitsRemoveExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSpaceLimitsRemoveExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSpaceLimitsRemoveExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSpaceLimitsRemoveExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSpaceLimitsRemoveExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberStatus.java new file mode 100644 index 000000000..537d8eeab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberStatus.java @@ -0,0 +1,121 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum MemberStatus { + // union team_log.MemberStatus (team_log_generated.stone) + ACTIVE, + INVITED, + MOVED_TO_ANOTHER_TEAM, + NOT_JOINED, + REMOVED, + SUSPENDED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACTIVE: { + g.writeString("active"); + break; + } + case INVITED: { + g.writeString("invited"); + break; + } + case MOVED_TO_ANOTHER_TEAM: { + g.writeString("moved_to_another_team"); + break; + } + case NOT_JOINED: { + g.writeString("not_joined"); + break; + } + case REMOVED: { + g.writeString("removed"); + break; + } + case SUSPENDED: { + g.writeString("suspended"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberStatus deserialize(JsonParser p) throws IOException, JsonParseException { + MemberStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("active".equals(tag)) { + value = MemberStatus.ACTIVE; + } + else if ("invited".equals(tag)) { + value = MemberStatus.INVITED; + } + else if ("moved_to_another_team".equals(tag)) { + value = MemberStatus.MOVED_TO_ANOTHER_TEAM; + } + else if ("not_joined".equals(tag)) { + value = MemberStatus.NOT_JOINED; + } + else if ("removed".equals(tag)) { + value = MemberStatus.REMOVED; + } + else if ("suspended".equals(tag)) { + value = MemberStatus.SUSPENDED; + } + else { + value = MemberStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestDetails.java new file mode 100644 index 000000000..0a80ace36 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestDetails.java @@ -0,0 +1,161 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Suggested person to add to team. + */ +public class MemberSuggestDetails { + // struct team_log.MemberSuggestDetails (team_log_generated.stone) + + @Nonnull + protected final List suggestedMembers; + + /** + * Suggested person to add to team. + * + * @param suggestedMembers suggested users emails. Must not contain a + * {@code null} item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSuggestDetails(@Nonnull List suggestedMembers) { + if (suggestedMembers == null) { + throw new IllegalArgumentException("Required value for 'suggestedMembers' is null"); + } + for (String x : suggestedMembers) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'suggestedMembers' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'suggestedMembers' is longer than 255"); + } + } + this.suggestedMembers = suggestedMembers; + } + + /** + * suggested users emails. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getSuggestedMembers() { + return suggestedMembers; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.suggestedMembers + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSuggestDetails other = (MemberSuggestDetails) obj; + return (this.suggestedMembers == other.suggestedMembers) || (this.suggestedMembers.equals(other.suggestedMembers)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSuggestDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("suggested_members"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.suggestedMembers, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSuggestDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSuggestDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_suggestedMembers = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("suggested_members".equals(field)) { + f_suggestedMembers = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_suggestedMembers == null) { + throw new JsonParseException(p, "Required field \"suggested_members\" missing."); + } + value = new MemberSuggestDetails(f_suggestedMembers); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestType.java new file mode 100644 index 000000000..7bd1775a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSuggestType { + // struct team_log.MemberSuggestType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSuggestType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSuggestType other = (MemberSuggestType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSuggestType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSuggestType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSuggestType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSuggestType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyDetails.java new file mode 100644 index 000000000..ac47f1154 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyDetails.java @@ -0,0 +1,197 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled option for team members to suggest people to add to team. + */ +public class MemberSuggestionsChangePolicyDetails { + // struct team_log.MemberSuggestionsChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final MemberSuggestionsPolicy newValue; + @Nullable + protected final MemberSuggestionsPolicy previousValue; + + /** + * Enabled/disabled option for team members to suggest people to add to + * team. + * + * @param newValue New team member suggestions policy. Must not be {@code + * null}. + * @param previousValue Previous team member suggestions policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSuggestionsChangePolicyDetails(@Nonnull MemberSuggestionsPolicy newValue, @Nullable MemberSuggestionsPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled option for team members to suggest people to add to + * team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New team member suggestions policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSuggestionsChangePolicyDetails(@Nonnull MemberSuggestionsPolicy newValue) { + this(newValue, null); + } + + /** + * New team member suggestions policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSuggestionsPolicy getNewValue() { + return newValue; + } + + /** + * Previous team member suggestions policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberSuggestionsPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSuggestionsChangePolicyDetails other = (MemberSuggestionsChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSuggestionsChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + MemberSuggestionsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(MemberSuggestionsPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSuggestionsChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSuggestionsChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberSuggestionsPolicy f_newValue = null; + MemberSuggestionsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = MemberSuggestionsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(MemberSuggestionsPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MemberSuggestionsChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyType.java new file mode 100644 index 000000000..561732686 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberSuggestionsChangePolicyType { + // struct team_log.MemberSuggestionsChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberSuggestionsChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberSuggestionsChangePolicyType other = (MemberSuggestionsChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSuggestionsChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberSuggestionsChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberSuggestionsChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberSuggestionsChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsPolicy.java new file mode 100644 index 000000000..480be1fb8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberSuggestionsPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Member suggestions policy + */ +public enum MemberSuggestionsPolicy { + // union team_log.MemberSuggestionsPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberSuggestionsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MemberSuggestionsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + MemberSuggestionsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = MemberSuggestionsPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = MemberSuggestionsPolicy.ENABLED; + } + else { + value = MemberSuggestionsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberTransferAccountContentsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberTransferAccountContentsDetails.java new file mode 100644 index 000000000..b3c18efe0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberTransferAccountContentsDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Transferred contents of deleted member account to another member. + */ +public class MemberTransferAccountContentsDetails { + // struct team_log.MemberTransferAccountContentsDetails (team_log_generated.stone) + + + /** + * Transferred contents of deleted member account to another member. + */ + public MemberTransferAccountContentsDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberTransferAccountContentsDetails other = (MemberTransferAccountContentsDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberTransferAccountContentsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberTransferAccountContentsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberTransferAccountContentsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new MemberTransferAccountContentsDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberTransferAccountContentsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberTransferAccountContentsType.java new file mode 100644 index 000000000..a7aa151a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MemberTransferAccountContentsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MemberTransferAccountContentsType { + // struct team_log.MemberTransferAccountContentsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MemberTransferAccountContentsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MemberTransferAccountContentsType other = (MemberTransferAccountContentsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MemberTransferAccountContentsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MemberTransferAccountContentsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MemberTransferAccountContentsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MemberTransferAccountContentsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyDetails.java new file mode 100644 index 000000000..995b05ba8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled Microsoft Office add-in. + */ +public class MicrosoftOfficeAddinChangePolicyDetails { + // struct team_log.MicrosoftOfficeAddinChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final MicrosoftOfficeAddinPolicy newValue; + @Nullable + protected final MicrosoftOfficeAddinPolicy previousValue; + + /** + * Enabled/disabled Microsoft Office add-in. + * + * @param newValue New Microsoft Office addin policy. Must not be {@code + * null}. + * @param previousValue Previous Microsoft Office addin policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MicrosoftOfficeAddinChangePolicyDetails(@Nonnull MicrosoftOfficeAddinPolicy newValue, @Nullable MicrosoftOfficeAddinPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled Microsoft Office add-in. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New Microsoft Office addin policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MicrosoftOfficeAddinChangePolicyDetails(@Nonnull MicrosoftOfficeAddinPolicy newValue) { + this(newValue, null); + } + + /** + * New Microsoft Office addin policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MicrosoftOfficeAddinPolicy getNewValue() { + return newValue; + } + + /** + * Previous Microsoft Office addin policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MicrosoftOfficeAddinPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MicrosoftOfficeAddinChangePolicyDetails other = (MicrosoftOfficeAddinChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MicrosoftOfficeAddinChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + MicrosoftOfficeAddinPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(MicrosoftOfficeAddinPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MicrosoftOfficeAddinChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MicrosoftOfficeAddinChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MicrosoftOfficeAddinPolicy f_newValue = null; + MicrosoftOfficeAddinPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = MicrosoftOfficeAddinPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(MicrosoftOfficeAddinPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new MicrosoftOfficeAddinChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyType.java new file mode 100644 index 000000000..0240d2623 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class MicrosoftOfficeAddinChangePolicyType { + // struct team_log.MicrosoftOfficeAddinChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MicrosoftOfficeAddinChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MicrosoftOfficeAddinChangePolicyType other = (MicrosoftOfficeAddinChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MicrosoftOfficeAddinChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MicrosoftOfficeAddinChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MicrosoftOfficeAddinChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new MicrosoftOfficeAddinChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy.java new file mode 100644 index 000000000..a79a2587e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MicrosoftOfficeAddinPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Microsoft Office addin policy + */ +public enum MicrosoftOfficeAddinPolicy { + // union team_log.MicrosoftOfficeAddinPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MicrosoftOfficeAddinPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public MicrosoftOfficeAddinPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + MicrosoftOfficeAddinPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = MicrosoftOfficeAddinPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = MicrosoftOfficeAddinPolicy.ENABLED; + } + else { + value = MicrosoftOfficeAddinPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MissingDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MissingDetails.java new file mode 100644 index 000000000..1ff691d09 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MissingDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * An indication that an error occurred while retrieving the event. Some + * attributes of the event may be omitted as a result. + */ +public class MissingDetails { + // struct team_log.MissingDetails (team_log_generated.stone) + + @Nullable + protected final String sourceEventFields; + + /** + * An indication that an error occurred while retrieving the event. Some + * attributes of the event may be omitted as a result. + * + * @param sourceEventFields All the data that could be retrieved and + * converted from the source event. + */ + public MissingDetails(@Nullable String sourceEventFields) { + this.sourceEventFields = sourceEventFields; + } + + /** + * An indication that an error occurred while retrieving the event. Some + * attributes of the event may be omitted as a result. + * + *

The default values for unset fields will be used.

+ */ + public MissingDetails() { + this(null); + } + + /** + * All the data that could be retrieved and converted from the source event. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSourceEventFields() { + return sourceEventFields; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sourceEventFields + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MissingDetails other = (MissingDetails) obj; + return (this.sourceEventFields == other.sourceEventFields) || (this.sourceEventFields != null && this.sourceEventFields.equals(other.sourceEventFields)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MissingDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sourceEventFields != null) { + g.writeFieldName("source_event_fields"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sourceEventFields, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MissingDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MissingDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sourceEventFields = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("source_event_fields".equals(field)) { + f_sourceEventFields = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new MissingDetails(f_sourceEventFields); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo.java new file mode 100644 index 000000000..e414a4dba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MobileDeviceSessionLogInfo.java @@ -0,0 +1,502 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.team.MobileClientPlatform; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information about linked Dropbox mobile client sessions + */ +public class MobileDeviceSessionLogInfo extends DeviceSessionLogInfo { + // struct team_log.MobileDeviceSessionLogInfo (team_log_generated.stone) + + @Nullable + protected final MobileSessionLogInfo sessionInfo; + @Nonnull + protected final String deviceName; + @Nonnull + protected final MobileClientPlatform clientType; + @Nullable + protected final String clientVersion; + @Nullable + protected final String osVersion; + @Nullable + protected final String lastCarrier; + + /** + * Information about linked Dropbox mobile client sessions + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param deviceName The device name. Must not be {@code null}. + * @param clientType The mobile application type. Must not be {@code null}. + * @param ipAddress The IP address of the last activity from this session. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * @param sessionInfo Mobile session unique id. + * @param clientVersion The Dropbox client version. + * @param osVersion The hosting OS version. + * @param lastCarrier last carrier used by the device. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MobileDeviceSessionLogInfo(@Nonnull String deviceName, @Nonnull MobileClientPlatform clientType, @Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable MobileSessionLogInfo sessionInfo, @Nullable String clientVersion, @Nullable String osVersion, @Nullable String lastCarrier) { + super(ipAddress, created, updated); + this.sessionInfo = sessionInfo; + if (deviceName == null) { + throw new IllegalArgumentException("Required value for 'deviceName' is null"); + } + this.deviceName = deviceName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + this.clientVersion = clientVersion; + this.osVersion = osVersion; + this.lastCarrier = lastCarrier; + } + + /** + * Information about linked Dropbox mobile client sessions + * + *

The default values for unset fields will be used.

+ * + * @param deviceName The device name. Must not be {@code null}. + * @param clientType The mobile application type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public MobileDeviceSessionLogInfo(@Nonnull String deviceName, @Nonnull MobileClientPlatform clientType) { + this(deviceName, clientType, null, null, null, null, null, null, null); + } + + /** + * The device name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDeviceName() { + return deviceName; + } + + /** + * The mobile application type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MobileClientPlatform getClientType() { + return clientType; + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * Mobile session unique id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MobileSessionLogInfo getSessionInfo() { + return sessionInfo; + } + + /** + * The Dropbox client version. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getClientVersion() { + return clientVersion; + } + + /** + * The hosting OS version. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getOsVersion() { + return osVersion; + } + + /** + * last carrier used by the device. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLastCarrier() { + return lastCarrier; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param deviceName The device name. Must not be {@code null}. + * @param clientType The mobile application type. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String deviceName, MobileClientPlatform clientType) { + return new Builder(deviceName, clientType); + } + + /** + * Builder for {@link MobileDeviceSessionLogInfo}. + */ + public static class Builder extends DeviceSessionLogInfo.Builder { + protected final String deviceName; + protected final MobileClientPlatform clientType; + + protected MobileSessionLogInfo sessionInfo; + protected String clientVersion; + protected String osVersion; + protected String lastCarrier; + + protected Builder(String deviceName, MobileClientPlatform clientType) { + if (deviceName == null) { + throw new IllegalArgumentException("Required value for 'deviceName' is null"); + } + this.deviceName = deviceName; + if (clientType == null) { + throw new IllegalArgumentException("Required value for 'clientType' is null"); + } + this.clientType = clientType; + this.sessionInfo = null; + this.clientVersion = null; + this.osVersion = null; + this.lastCarrier = null; + } + + /** + * Set value for optional field. + * + * @param sessionInfo Mobile session unique id. + * + * @return this builder + */ + public Builder withSessionInfo(MobileSessionLogInfo sessionInfo) { + this.sessionInfo = sessionInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param clientVersion The Dropbox client version. + * + * @return this builder + */ + public Builder withClientVersion(String clientVersion) { + this.clientVersion = clientVersion; + return this; + } + + /** + * Set value for optional field. + * + * @param osVersion The hosting OS version. + * + * @return this builder + */ + public Builder withOsVersion(String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Set value for optional field. + * + * @param lastCarrier last carrier used by the device. + * + * @return this builder + */ + public Builder withLastCarrier(String lastCarrier) { + this.lastCarrier = lastCarrier; + return this; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + super.withIpAddress(ipAddress); + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + super.withCreated(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + super.withUpdated(updated); + return this; + } + + /** + * Builds an instance of {@link MobileDeviceSessionLogInfo} configured + * with this builder's values + * + * @return new instance of {@link MobileDeviceSessionLogInfo} + */ + public MobileDeviceSessionLogInfo build() { + return new MobileDeviceSessionLogInfo(deviceName, clientType, ipAddress, created, updated, sessionInfo, clientVersion, osVersion, lastCarrier); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionInfo, + this.deviceName, + this.clientType, + this.clientVersion, + this.osVersion, + this.lastCarrier + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MobileDeviceSessionLogInfo other = (MobileDeviceSessionLogInfo) obj; + return ((this.deviceName == other.deviceName) || (this.deviceName.equals(other.deviceName))) + && ((this.clientType == other.clientType) || (this.clientType.equals(other.clientType))) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + && ((this.sessionInfo == other.sessionInfo) || (this.sessionInfo != null && this.sessionInfo.equals(other.sessionInfo))) + && ((this.clientVersion == other.clientVersion) || (this.clientVersion != null && this.clientVersion.equals(other.clientVersion))) + && ((this.osVersion == other.osVersion) || (this.osVersion != null && this.osVersion.equals(other.osVersion))) + && ((this.lastCarrier == other.lastCarrier) || (this.lastCarrier != null && this.lastCarrier.equals(other.lastCarrier))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MobileDeviceSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("mobile_device_session", g); + g.writeFieldName("device_name"); + StoneSerializers.string().serialize(value.deviceName, g); + g.writeFieldName("client_type"); + MobileClientPlatform.Serializer.INSTANCE.serialize(value.clientType, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (value.sessionInfo != null) { + g.writeFieldName("session_info"); + StoneSerializers.nullableStruct(MobileSessionLogInfo.Serializer.INSTANCE).serialize(value.sessionInfo, g); + } + if (value.clientVersion != null) { + g.writeFieldName("client_version"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.clientVersion, g); + } + if (value.osVersion != null) { + g.writeFieldName("os_version"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.osVersion, g); + } + if (value.lastCarrier != null) { + g.writeFieldName("last_carrier"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.lastCarrier, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MobileDeviceSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MobileDeviceSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("mobile_device_session".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_deviceName = null; + MobileClientPlatform f_clientType = null; + String f_ipAddress = null; + Date f_created = null; + Date f_updated = null; + MobileSessionLogInfo f_sessionInfo = null; + String f_clientVersion = null; + String f_osVersion = null; + String f_lastCarrier = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("device_name".equals(field)) { + f_deviceName = StoneSerializers.string().deserialize(p); + } + else if ("client_type".equals(field)) { + f_clientType = MobileClientPlatform.Serializer.INSTANCE.deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("session_info".equals(field)) { + f_sessionInfo = StoneSerializers.nullableStruct(MobileSessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("client_version".equals(field)) { + f_clientVersion = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("os_version".equals(field)) { + f_osVersion = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("last_carrier".equals(field)) { + f_lastCarrier = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_deviceName == null) { + throw new JsonParseException(p, "Required field \"device_name\" missing."); + } + if (f_clientType == null) { + throw new JsonParseException(p, "Required field \"client_type\" missing."); + } + value = new MobileDeviceSessionLogInfo(f_deviceName, f_clientType, f_ipAddress, f_created, f_updated, f_sessionInfo, f_clientVersion, f_osVersion, f_lastCarrier); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MobileSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MobileSessionLogInfo.java new file mode 100644 index 000000000..e5a96b94f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/MobileSessionLogInfo.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Mobile session. + */ +public class MobileSessionLogInfo extends SessionLogInfo { + // struct team_log.MobileSessionLogInfo (team_log_generated.stone) + + + /** + * Mobile session. + * + * @param sessionId Session ID. + */ + public MobileSessionLogInfo(@Nullable String sessionId) { + super(sessionId); + } + + /** + * Mobile session. + * + *

The default values for unset fields will be used.

+ */ + public MobileSessionLogInfo() { + this(null); + } + + /** + * Session ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSessionId() { + return sessionId; + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + MobileSessionLogInfo other = (MobileSessionLogInfo) obj; + return (this.sessionId == other.sessionId) || (this.sessionId != null && this.sessionId.equals(other.sessionId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(MobileSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("mobile", g); + if (value.sessionId != null) { + g.writeFieldName("session_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sessionId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public MobileSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + MobileSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("mobile".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_sessionId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new MobileSessionLogInfo(f_sessionId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo.java new file mode 100644 index 000000000..9075f1314 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NamespaceRelativePathLogInfo.java @@ -0,0 +1,277 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Namespace relative path details. + */ +public class NamespaceRelativePathLogInfo { + // struct team_log.NamespaceRelativePathLogInfo (team_log_generated.stone) + + @Nullable + protected final String nsId; + @Nullable + protected final String relativePath; + @Nullable + protected final Boolean isSharedNamespace; + + /** + * Namespace relative path details. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param nsId Namespace ID. + * @param relativePath A path relative to the specified namespace ID. + * @param isSharedNamespace True if the namespace is shared. + */ + public NamespaceRelativePathLogInfo(@Nullable String nsId, @Nullable String relativePath, @Nullable Boolean isSharedNamespace) { + this.nsId = nsId; + this.relativePath = relativePath; + this.isSharedNamespace = isSharedNamespace; + } + + /** + * Namespace relative path details. + * + *

The default values for unset fields will be used.

+ */ + public NamespaceRelativePathLogInfo() { + this(null, null, null); + } + + /** + * Namespace ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNsId() { + return nsId; + } + + /** + * A path relative to the specified namespace ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getRelativePath() { + return relativePath; + } + + /** + * True if the namespace is shared. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIsSharedNamespace() { + return isSharedNamespace; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link NamespaceRelativePathLogInfo}. + */ + public static class Builder { + + protected String nsId; + protected String relativePath; + protected Boolean isSharedNamespace; + + protected Builder() { + this.nsId = null; + this.relativePath = null; + this.isSharedNamespace = null; + } + + /** + * Set value for optional field. + * + * @param nsId Namespace ID. + * + * @return this builder + */ + public Builder withNsId(String nsId) { + this.nsId = nsId; + return this; + } + + /** + * Set value for optional field. + * + * @param relativePath A path relative to the specified namespace ID. + * + * @return this builder + */ + public Builder withRelativePath(String relativePath) { + this.relativePath = relativePath; + return this; + } + + /** + * Set value for optional field. + * + * @param isSharedNamespace True if the namespace is shared. + * + * @return this builder + */ + public Builder withIsSharedNamespace(Boolean isSharedNamespace) { + this.isSharedNamespace = isSharedNamespace; + return this; + } + + /** + * Builds an instance of {@link NamespaceRelativePathLogInfo} configured + * with this builder's values + * + * @return new instance of {@link NamespaceRelativePathLogInfo} + */ + public NamespaceRelativePathLogInfo build() { + return new NamespaceRelativePathLogInfo(nsId, relativePath, isSharedNamespace); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.nsId, + this.relativePath, + this.isSharedNamespace + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NamespaceRelativePathLogInfo other = (NamespaceRelativePathLogInfo) obj; + return ((this.nsId == other.nsId) || (this.nsId != null && this.nsId.equals(other.nsId))) + && ((this.relativePath == other.relativePath) || (this.relativePath != null && this.relativePath.equals(other.relativePath))) + && ((this.isSharedNamespace == other.isSharedNamespace) || (this.isSharedNamespace != null && this.isSharedNamespace.equals(other.isSharedNamespace))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NamespaceRelativePathLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.nsId != null) { + g.writeFieldName("ns_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.nsId, g); + } + if (value.relativePath != null) { + g.writeFieldName("relative_path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.relativePath, g); + } + if (value.isSharedNamespace != null) { + g.writeFieldName("is_shared_namespace"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.isSharedNamespace, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NamespaceRelativePathLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NamespaceRelativePathLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_nsId = null; + String f_relativePath = null; + Boolean f_isSharedNamespace = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("ns_id".equals(field)) { + f_nsId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("relative_path".equals(field)) { + f_relativePath = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("is_shared_namespace".equals(field)) { + f_isSharedNamespace = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new NamespaceRelativePathLogInfo(f_nsId, f_relativePath, f_isSharedNamespace); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlChangePolicyDetails.java new file mode 100644 index 000000000..c9de5a3e6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlChangePolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled network control. + */ +public class NetworkControlChangePolicyDetails { + // struct team_log.NetworkControlChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final NetworkControlPolicy newValue; + @Nullable + protected final NetworkControlPolicy previousValue; + + /** + * Enabled/disabled network control. + * + * @param newValue New network control policy. Must not be {@code null}. + * @param previousValue Previous network control policy. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NetworkControlChangePolicyDetails(@Nonnull NetworkControlPolicy newValue, @Nullable NetworkControlPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled network control. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New network control policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NetworkControlChangePolicyDetails(@Nonnull NetworkControlPolicy newValue) { + this(newValue, null); + } + + /** + * New network control policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public NetworkControlPolicy getNewValue() { + return newValue; + } + + /** + * Previous network control policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public NetworkControlPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NetworkControlChangePolicyDetails other = (NetworkControlChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NetworkControlChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + NetworkControlPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(NetworkControlPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NetworkControlChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NetworkControlChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + NetworkControlPolicy f_newValue = null; + NetworkControlPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = NetworkControlPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(NetworkControlPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new NetworkControlChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlChangePolicyType.java new file mode 100644 index 000000000..c33f2f2d3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NetworkControlChangePolicyType { + // struct team_log.NetworkControlChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NetworkControlChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NetworkControlChangePolicyType other = (NetworkControlChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NetworkControlChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NetworkControlChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NetworkControlChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NetworkControlChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlPolicy.java new file mode 100644 index 000000000..cff8afba1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NetworkControlPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Network control policy + */ +public enum NetworkControlPolicy { + // union team_log.NetworkControlPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NetworkControlPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public NetworkControlPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + NetworkControlPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = NetworkControlPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = NetworkControlPolicy.ENABLED; + } + else { + value = NetworkControlPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportDetails.java new file mode 100644 index 000000000..f127a3045 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +/** + * Report created: Links created with no expiration. + */ +public class NoExpirationLinkGenCreateReportDetails { + // struct team_log.NoExpirationLinkGenCreateReportDetails (team_log_generated.stone) + + @Nonnull + protected final Date startDate; + @Nonnull + protected final Date endDate; + + /** + * Report created: Links created with no expiration. + * + * @param startDate Report start date. Must not be {@code null}. + * @param endDate Report end date. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoExpirationLinkGenCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + if (endDate == null) { + throw new IllegalArgumentException("Required value for 'endDate' is null"); + } + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * Report start date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getStartDate() { + return startDate; + } + + /** + * Report end date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getEndDate() { + return endDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoExpirationLinkGenCreateReportDetails other = (NoExpirationLinkGenCreateReportDetails) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoExpirationLinkGenCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.timestamp().serialize(value.startDate, g); + g.writeFieldName("end_date"); + StoneSerializers.timestamp().serialize(value.endDate, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoExpirationLinkGenCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoExpirationLinkGenCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.timestamp().deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_endDate == null) { + throw new JsonParseException(p, "Required field \"end_date\" missing."); + } + value = new NoExpirationLinkGenCreateReportDetails(f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportType.java new file mode 100644 index 000000000..8d44fd13d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoExpirationLinkGenCreateReportType { + // struct team_log.NoExpirationLinkGenCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoExpirationLinkGenCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoExpirationLinkGenCreateReportType other = (NoExpirationLinkGenCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoExpirationLinkGenCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoExpirationLinkGenCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoExpirationLinkGenCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoExpirationLinkGenCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedDetails.java new file mode 100644 index 000000000..feda7b6d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't create report: Links created with no expiration. + */ +public class NoExpirationLinkGenReportFailedDetails { + // struct team_log.NoExpirationLinkGenReportFailedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't create report: Links created with no expiration. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoExpirationLinkGenReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoExpirationLinkGenReportFailedDetails other = (NoExpirationLinkGenReportFailedDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoExpirationLinkGenReportFailedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoExpirationLinkGenReportFailedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoExpirationLinkGenReportFailedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new NoExpirationLinkGenReportFailedDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedType.java new file mode 100644 index 000000000..dd5d3bf24 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoExpirationLinkGenReportFailedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoExpirationLinkGenReportFailedType { + // struct team_log.NoExpirationLinkGenReportFailedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoExpirationLinkGenReportFailedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoExpirationLinkGenReportFailedType other = (NoExpirationLinkGenReportFailedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoExpirationLinkGenReportFailedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoExpirationLinkGenReportFailedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoExpirationLinkGenReportFailedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoExpirationLinkGenReportFailedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportDetails.java new file mode 100644 index 000000000..58c335911 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +/** + * Report created: Links created without passwords. + */ +public class NoPasswordLinkGenCreateReportDetails { + // struct team_log.NoPasswordLinkGenCreateReportDetails (team_log_generated.stone) + + @Nonnull + protected final Date startDate; + @Nonnull + protected final Date endDate; + + /** + * Report created: Links created without passwords. + * + * @param startDate Report start date. Must not be {@code null}. + * @param endDate Report end date. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkGenCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + if (endDate == null) { + throw new IllegalArgumentException("Required value for 'endDate' is null"); + } + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * Report start date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getStartDate() { + return startDate; + } + + /** + * Report end date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getEndDate() { + return endDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkGenCreateReportDetails other = (NoPasswordLinkGenCreateReportDetails) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkGenCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.timestamp().serialize(value.startDate, g); + g.writeFieldName("end_date"); + StoneSerializers.timestamp().serialize(value.endDate, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkGenCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkGenCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.timestamp().deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_endDate == null) { + throw new JsonParseException(p, "Required field \"end_date\" missing."); + } + value = new NoPasswordLinkGenCreateReportDetails(f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportType.java new file mode 100644 index 000000000..3a566eecb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoPasswordLinkGenCreateReportType { + // struct team_log.NoPasswordLinkGenCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkGenCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkGenCreateReportType other = (NoPasswordLinkGenCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkGenCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkGenCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkGenCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoPasswordLinkGenCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedDetails.java new file mode 100644 index 000000000..3b93a8151 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't create report: Links created without passwords. + */ +public class NoPasswordLinkGenReportFailedDetails { + // struct team_log.NoPasswordLinkGenReportFailedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't create report: Links created without passwords. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkGenReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkGenReportFailedDetails other = (NoPasswordLinkGenReportFailedDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkGenReportFailedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkGenReportFailedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkGenReportFailedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new NoPasswordLinkGenReportFailedDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedType.java new file mode 100644 index 000000000..40c04f063 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkGenReportFailedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoPasswordLinkGenReportFailedType { + // struct team_log.NoPasswordLinkGenReportFailedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkGenReportFailedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkGenReportFailedType other = (NoPasswordLinkGenReportFailedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkGenReportFailedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkGenReportFailedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkGenReportFailedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoPasswordLinkGenReportFailedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportDetails.java new file mode 100644 index 000000000..286e5273c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +/** + * Report created: Views of links without passwords. + */ +public class NoPasswordLinkViewCreateReportDetails { + // struct team_log.NoPasswordLinkViewCreateReportDetails (team_log_generated.stone) + + @Nonnull + protected final Date startDate; + @Nonnull + protected final Date endDate; + + /** + * Report created: Views of links without passwords. + * + * @param startDate Report start date. Must not be {@code null}. + * @param endDate Report end date. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkViewCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + if (endDate == null) { + throw new IllegalArgumentException("Required value for 'endDate' is null"); + } + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * Report start date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getStartDate() { + return startDate; + } + + /** + * Report end date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getEndDate() { + return endDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkViewCreateReportDetails other = (NoPasswordLinkViewCreateReportDetails) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkViewCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.timestamp().serialize(value.startDate, g); + g.writeFieldName("end_date"); + StoneSerializers.timestamp().serialize(value.endDate, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkViewCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkViewCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.timestamp().deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_endDate == null) { + throw new JsonParseException(p, "Required field \"end_date\" missing."); + } + value = new NoPasswordLinkViewCreateReportDetails(f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportType.java new file mode 100644 index 000000000..b83a534bc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoPasswordLinkViewCreateReportType { + // struct team_log.NoPasswordLinkViewCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkViewCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkViewCreateReportType other = (NoPasswordLinkViewCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkViewCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkViewCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkViewCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoPasswordLinkViewCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedDetails.java new file mode 100644 index 000000000..29b4af96e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't create report: Views of links without passwords. + */ +public class NoPasswordLinkViewReportFailedDetails { + // struct team_log.NoPasswordLinkViewReportFailedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't create report: Views of links without passwords. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkViewReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkViewReportFailedDetails other = (NoPasswordLinkViewReportFailedDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkViewReportFailedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkViewReportFailedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkViewReportFailedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new NoPasswordLinkViewReportFailedDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedType.java new file mode 100644 index 000000000..5701b877b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoPasswordLinkViewReportFailedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoPasswordLinkViewReportFailedType { + // struct team_log.NoPasswordLinkViewReportFailedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoPasswordLinkViewReportFailedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoPasswordLinkViewReportFailedType other = (NoPasswordLinkViewReportFailedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoPasswordLinkViewReportFailedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoPasswordLinkViewReportFailedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoPasswordLinkViewReportFailedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoPasswordLinkViewReportFailedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NonTeamMemberLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NonTeamMemberLogInfo.java new file mode 100644 index 000000000..94eb44e0f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NonTeamMemberLogInfo.java @@ -0,0 +1,272 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Non team member's logged information. + */ +public class NonTeamMemberLogInfo extends UserLogInfo { + // struct team_log.NonTeamMemberLogInfo (team_log_generated.stone) + + + /** + * Non team member's logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * @param displayName User display name. + * @param email User email address. Must have length of at most 255. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NonTeamMemberLogInfo(@Nullable String accountId, @Nullable String displayName, @Nullable String email) { + super(accountId, displayName, email); + } + + /** + * Non team member's logged information. + * + *

The default values for unset fields will be used.

+ */ + public NonTeamMemberLogInfo() { + this(null, null, null); + } + + /** + * User unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * User display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * User email address. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getEmail() { + return email; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link NonTeamMemberLogInfo}. + */ + public static class Builder extends UserLogInfo.Builder { + + protected Builder() { + } + + /** + * Set value for optional field. + * + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + super.withAccountId(accountId); + return this; + } + + /** + * Set value for optional field. + * + * @param displayName User display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Set value for optional field. + * + * @param email User email address. Must have length of at most 255. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withEmail(String email) { + super.withEmail(email); + return this; + } + + /** + * Builds an instance of {@link NonTeamMemberLogInfo} configured with + * this builder's values + * + * @return new instance of {@link NonTeamMemberLogInfo} + */ + public NonTeamMemberLogInfo build() { + return new NonTeamMemberLogInfo(accountId, displayName, email); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NonTeamMemberLogInfo other = (NonTeamMemberLogInfo) obj; + return ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.email == other.email) || (this.email != null && this.email.equals(other.email))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NonTeamMemberLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("non_team_member", g); + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.email != null) { + g.writeFieldName("email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.email, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NonTeamMemberLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NonTeamMemberLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("non_team_member".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_accountId = null; + String f_displayName = null; + String f_email = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new NonTeamMemberLogInfo(f_accountId, f_displayName, f_email); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NonTrustedTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NonTrustedTeamDetails.java new file mode 100644 index 000000000..97b34a67f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NonTrustedTeamDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * The email to which the request was sent + */ +public class NonTrustedTeamDetails { + // struct team_log.NonTrustedTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String team; + + /** + * The email to which the request was sent + * + * @param team The email to which the request was sent. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NonTrustedTeamDetails(@Nonnull String team) { + if (team == null) { + throw new IllegalArgumentException("Required value for 'team' is null"); + } + this.team = team; + } + + /** + * The email to which the request was sent. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeam() { + return team; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.team + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NonTrustedTeamDetails other = (NonTrustedTeamDetails) obj; + return (this.team == other.team) || (this.team.equals(other.team)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NonTrustedTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team"); + StoneSerializers.string().serialize(value.team, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NonTrustedTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NonTrustedTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_team = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team".equals(field)) { + f_team = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_team == null) { + throw new JsonParseException(p, "Required field \"team\" missing."); + } + value = new NonTrustedTeamDetails(f_team); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclInviteOnlyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclInviteOnlyDetails.java new file mode 100644 index 000000000..45af11ddb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclInviteOnlyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed Paper doc to invite-only. + */ +public class NoteAclInviteOnlyDetails { + // struct team_log.NoteAclInviteOnlyDetails (team_log_generated.stone) + + + /** + * Changed Paper doc to invite-only. + */ + public NoteAclInviteOnlyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteAclInviteOnlyDetails other = (NoteAclInviteOnlyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteAclInviteOnlyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteAclInviteOnlyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteAclInviteOnlyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new NoteAclInviteOnlyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclInviteOnlyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclInviteOnlyType.java new file mode 100644 index 000000000..2359a624b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclInviteOnlyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoteAclInviteOnlyType { + // struct team_log.NoteAclInviteOnlyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoteAclInviteOnlyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteAclInviteOnlyType other = (NoteAclInviteOnlyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteAclInviteOnlyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteAclInviteOnlyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteAclInviteOnlyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoteAclInviteOnlyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclLinkDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclLinkDetails.java new file mode 100644 index 000000000..b53d942b7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclLinkDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed Paper doc to link-accessible. + */ +public class NoteAclLinkDetails { + // struct team_log.NoteAclLinkDetails (team_log_generated.stone) + + + /** + * Changed Paper doc to link-accessible. + */ + public NoteAclLinkDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteAclLinkDetails other = (NoteAclLinkDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteAclLinkDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteAclLinkDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteAclLinkDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new NoteAclLinkDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclLinkType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclLinkType.java new file mode 100644 index 000000000..85ab20b6f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclLinkType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoteAclLinkType { + // struct team_log.NoteAclLinkType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoteAclLinkType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteAclLinkType other = (NoteAclLinkType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteAclLinkType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteAclLinkType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteAclLinkType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoteAclLinkType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclTeamLinkDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclTeamLinkDetails.java new file mode 100644 index 000000000..3a87b19da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclTeamLinkDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed Paper doc to link-accessible for team. + */ +public class NoteAclTeamLinkDetails { + // struct team_log.NoteAclTeamLinkDetails (team_log_generated.stone) + + + /** + * Changed Paper doc to link-accessible for team. + */ + public NoteAclTeamLinkDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteAclTeamLinkDetails other = (NoteAclTeamLinkDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteAclTeamLinkDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteAclTeamLinkDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteAclTeamLinkDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new NoteAclTeamLinkDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclTeamLinkType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclTeamLinkType.java new file mode 100644 index 000000000..5b01a2b6c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteAclTeamLinkType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoteAclTeamLinkType { + // struct team_log.NoteAclTeamLinkType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoteAclTeamLinkType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteAclTeamLinkType other = (NoteAclTeamLinkType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteAclTeamLinkType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteAclTeamLinkType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteAclTeamLinkType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoteAclTeamLinkType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteShareReceiveDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteShareReceiveDetails.java new file mode 100644 index 000000000..66b6bde95 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteShareReceiveDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Shared received Paper doc. + */ +public class NoteShareReceiveDetails { + // struct team_log.NoteShareReceiveDetails (team_log_generated.stone) + + + /** + * Shared received Paper doc. + */ + public NoteShareReceiveDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteShareReceiveDetails other = (NoteShareReceiveDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteShareReceiveDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteShareReceiveDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteShareReceiveDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new NoteShareReceiveDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteShareReceiveType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteShareReceiveType.java new file mode 100644 index 000000000..16087042b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteShareReceiveType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoteShareReceiveType { + // struct team_log.NoteShareReceiveType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoteShareReceiveType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteShareReceiveType other = (NoteShareReceiveType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteShareReceiveType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteShareReceiveType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteShareReceiveType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoteShareReceiveType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteSharedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteSharedDetails.java new file mode 100644 index 000000000..433577080 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteSharedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Shared Paper doc. + */ +public class NoteSharedDetails { + // struct team_log.NoteSharedDetails (team_log_generated.stone) + + + /** + * Shared Paper doc. + */ + public NoteSharedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteSharedDetails other = (NoteSharedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteSharedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteSharedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteSharedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new NoteSharedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteSharedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteSharedType.java new file mode 100644 index 000000000..12da78c6e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/NoteSharedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class NoteSharedType { + // struct team_log.NoteSharedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public NoteSharedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + NoteSharedType other = (NoteSharedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NoteSharedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public NoteSharedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + NoteSharedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new NoteSharedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelAddedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelAddedDetails.java new file mode 100644 index 000000000..5183549ab --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelAddedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added a label. + */ +public class ObjectLabelAddedDetails { + // struct team_log.ObjectLabelAddedDetails (team_log_generated.stone) + + @Nonnull + protected final LabelType labelType; + + /** + * Added a label. + * + * @param labelType Labels mark a file or folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ObjectLabelAddedDetails(@Nonnull LabelType labelType) { + if (labelType == null) { + throw new IllegalArgumentException("Required value for 'labelType' is null"); + } + this.labelType = labelType; + } + + /** + * Labels mark a file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LabelType getLabelType() { + return labelType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.labelType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ObjectLabelAddedDetails other = (ObjectLabelAddedDetails) obj; + return (this.labelType == other.labelType) || (this.labelType.equals(other.labelType)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ObjectLabelAddedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("label_type"); + LabelType.Serializer.INSTANCE.serialize(value.labelType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ObjectLabelAddedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ObjectLabelAddedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LabelType f_labelType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("label_type".equals(field)) { + f_labelType = LabelType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_labelType == null) { + throw new JsonParseException(p, "Required field \"label_type\" missing."); + } + value = new ObjectLabelAddedDetails(f_labelType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelAddedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelAddedType.java new file mode 100644 index 000000000..9ecbaf7a5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelAddedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ObjectLabelAddedType { + // struct team_log.ObjectLabelAddedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ObjectLabelAddedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ObjectLabelAddedType other = (ObjectLabelAddedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ObjectLabelAddedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ObjectLabelAddedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ObjectLabelAddedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ObjectLabelAddedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelRemovedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelRemovedDetails.java new file mode 100644 index 000000000..51304678e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelRemovedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed a label. + */ +public class ObjectLabelRemovedDetails { + // struct team_log.ObjectLabelRemovedDetails (team_log_generated.stone) + + @Nonnull + protected final LabelType labelType; + + /** + * Removed a label. + * + * @param labelType Labels mark a file or folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ObjectLabelRemovedDetails(@Nonnull LabelType labelType) { + if (labelType == null) { + throw new IllegalArgumentException("Required value for 'labelType' is null"); + } + this.labelType = labelType; + } + + /** + * Labels mark a file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LabelType getLabelType() { + return labelType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.labelType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ObjectLabelRemovedDetails other = (ObjectLabelRemovedDetails) obj; + return (this.labelType == other.labelType) || (this.labelType.equals(other.labelType)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ObjectLabelRemovedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("label_type"); + LabelType.Serializer.INSTANCE.serialize(value.labelType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ObjectLabelRemovedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ObjectLabelRemovedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LabelType f_labelType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("label_type".equals(field)) { + f_labelType = LabelType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_labelType == null) { + throw new JsonParseException(p, "Required field \"label_type\" missing."); + } + value = new ObjectLabelRemovedDetails(f_labelType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelRemovedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelRemovedType.java new file mode 100644 index 000000000..da76011f6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelRemovedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ObjectLabelRemovedType { + // struct team_log.ObjectLabelRemovedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ObjectLabelRemovedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ObjectLabelRemovedType other = (ObjectLabelRemovedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ObjectLabelRemovedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ObjectLabelRemovedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ObjectLabelRemovedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ObjectLabelRemovedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueDetails.java new file mode 100644 index 000000000..5c9b96e5f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Updated a label's value. + */ +public class ObjectLabelUpdatedValueDetails { + // struct team_log.ObjectLabelUpdatedValueDetails (team_log_generated.stone) + + @Nonnull + protected final LabelType labelType; + + /** + * Updated a label's value. + * + * @param labelType Labels mark a file or folder. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ObjectLabelUpdatedValueDetails(@Nonnull LabelType labelType) { + if (labelType == null) { + throw new IllegalArgumentException("Required value for 'labelType' is null"); + } + this.labelType = labelType; + } + + /** + * Labels mark a file or folder. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LabelType getLabelType() { + return labelType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.labelType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ObjectLabelUpdatedValueDetails other = (ObjectLabelUpdatedValueDetails) obj; + return (this.labelType == other.labelType) || (this.labelType.equals(other.labelType)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ObjectLabelUpdatedValueDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("label_type"); + LabelType.Serializer.INSTANCE.serialize(value.labelType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ObjectLabelUpdatedValueDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ObjectLabelUpdatedValueDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LabelType f_labelType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("label_type".equals(field)) { + f_labelType = LabelType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_labelType == null) { + throw new JsonParseException(p, "Required field \"label_type\" missing."); + } + value = new ObjectLabelUpdatedValueDetails(f_labelType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueType.java new file mode 100644 index 000000000..3a9290456 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ObjectLabelUpdatedValueType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ObjectLabelUpdatedValueType { + // struct team_log.ObjectLabelUpdatedValueType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ObjectLabelUpdatedValueType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ObjectLabelUpdatedValueType other = (ObjectLabelUpdatedValueType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ObjectLabelUpdatedValueType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ObjectLabelUpdatedValueType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ObjectLabelUpdatedValueType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ObjectLabelUpdatedValueType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OpenNoteSharedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OpenNoteSharedDetails.java new file mode 100644 index 000000000..e7400dfe2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OpenNoteSharedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Opened shared Paper doc. + */ +public class OpenNoteSharedDetails { + // struct team_log.OpenNoteSharedDetails (team_log_generated.stone) + + + /** + * Opened shared Paper doc. + */ + public OpenNoteSharedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OpenNoteSharedDetails other = (OpenNoteSharedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OpenNoteSharedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OpenNoteSharedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OpenNoteSharedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new OpenNoteSharedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OpenNoteSharedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OpenNoteSharedType.java new file mode 100644 index 000000000..b1c20c368 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OpenNoteSharedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class OpenNoteSharedType { + // struct team_log.OpenNoteSharedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OpenNoteSharedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OpenNoteSharedType other = (OpenNoteSharedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OpenNoteSharedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OpenNoteSharedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OpenNoteSharedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new OpenNoteSharedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizationDetails.java new file mode 100644 index 000000000..854d0bfbe --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizationDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * More details about the organization. + */ +public class OrganizationDetails { + // struct team_log.OrganizationDetails (team_log_generated.stone) + + @Nonnull + protected final String organization; + + /** + * More details about the organization. + * + * @param organization The name of the organization. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OrganizationDetails(@Nonnull String organization) { + if (organization == null) { + throw new IllegalArgumentException("Required value for 'organization' is null"); + } + this.organization = organization; + } + + /** + * The name of the organization. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOrganization() { + return organization; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.organization + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OrganizationDetails other = (OrganizationDetails) obj; + return (this.organization == other.organization) || (this.organization.equals(other.organization)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OrganizationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("organization"); + StoneSerializers.string().serialize(value.organization, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OrganizationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OrganizationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_organization = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("organization".equals(field)) { + f_organization = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_organization == null) { + throw new JsonParseException(p, "Required field \"organization\" missing."); + } + value = new OrganizationDetails(f_organization); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizationName.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizationName.java new file mode 100644 index 000000000..1a549a88c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizationName.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * The name of the organization + */ +public class OrganizationName { + // struct team_log.OrganizationName (team_log_generated.stone) + + @Nonnull + protected final String organization; + + /** + * The name of the organization + * + * @param organization The name of the organization. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OrganizationName(@Nonnull String organization) { + if (organization == null) { + throw new IllegalArgumentException("Required value for 'organization' is null"); + } + this.organization = organization; + } + + /** + * The name of the organization. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOrganization() { + return organization; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.organization + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OrganizationName other = (OrganizationName) obj; + return (this.organization == other.organization) || (this.organization.equals(other.organization)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OrganizationName value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("organization"); + StoneSerializers.string().serialize(value.organization, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OrganizationName deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OrganizationName value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_organization = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("organization".equals(field)) { + f_organization = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_organization == null) { + throw new JsonParseException(p, "Required field \"organization\" missing."); + } + value = new OrganizationName(f_organization); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyDetails.java new file mode 100644 index 000000000..e67fcd137 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Organized a folder with multi-file organize. + */ +public class OrganizeFolderWithTidyDetails { + // struct team_log.OrganizeFolderWithTidyDetails (team_log_generated.stone) + + + /** + * Organized a folder with multi-file organize. + */ + public OrganizeFolderWithTidyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OrganizeFolderWithTidyDetails other = (OrganizeFolderWithTidyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OrganizeFolderWithTidyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OrganizeFolderWithTidyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OrganizeFolderWithTidyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new OrganizeFolderWithTidyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyType.java new file mode 100644 index 000000000..6d7d0a7e2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OrganizeFolderWithTidyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class OrganizeFolderWithTidyType { + // struct team_log.OrganizeFolderWithTidyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OrganizeFolderWithTidyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OrganizeFolderWithTidyType other = (OrganizeFolderWithTidyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OrganizeFolderWithTidyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OrganizeFolderWithTidyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OrganizeFolderWithTidyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new OrganizeFolderWithTidyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OriginLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OriginLogInfo.java new file mode 100644 index 000000000..1dca37e68 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OriginLogInfo.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The origin from which the actor performed the action. + */ +public class OriginLogInfo { + // struct team_log.OriginLogInfo (team_log_generated.stone) + + @Nullable + protected final GeoLocationLogInfo geoLocation; + @Nonnull + protected final AccessMethodLogInfo accessMethod; + + /** + * The origin from which the actor performed the action. + * + * @param accessMethod The method that was used to perform the action. Must + * not be {@code null}. + * @param geoLocation Geographic location details. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OriginLogInfo(@Nonnull AccessMethodLogInfo accessMethod, @Nullable GeoLocationLogInfo geoLocation) { + this.geoLocation = geoLocation; + if (accessMethod == null) { + throw new IllegalArgumentException("Required value for 'accessMethod' is null"); + } + this.accessMethod = accessMethod; + } + + /** + * The origin from which the actor performed the action. + * + *

The default values for unset fields will be used.

+ * + * @param accessMethod The method that was used to perform the action. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OriginLogInfo(@Nonnull AccessMethodLogInfo accessMethod) { + this(accessMethod, null); + } + + /** + * The method that was used to perform the action. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessMethodLogInfo getAccessMethod() { + return accessMethod; + } + + /** + * Geographic location details. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public GeoLocationLogInfo getGeoLocation() { + return geoLocation; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.geoLocation, + this.accessMethod + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OriginLogInfo other = (OriginLogInfo) obj; + return ((this.accessMethod == other.accessMethod) || (this.accessMethod.equals(other.accessMethod))) + && ((this.geoLocation == other.geoLocation) || (this.geoLocation != null && this.geoLocation.equals(other.geoLocation))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OriginLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("access_method"); + AccessMethodLogInfo.Serializer.INSTANCE.serialize(value.accessMethod, g); + if (value.geoLocation != null) { + g.writeFieldName("geo_location"); + StoneSerializers.nullableStruct(GeoLocationLogInfo.Serializer.INSTANCE).serialize(value.geoLocation, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OriginLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OriginLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessMethodLogInfo f_accessMethod = null; + GeoLocationLogInfo f_geoLocation = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("access_method".equals(field)) { + f_accessMethod = AccessMethodLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("geo_location".equals(field)) { + f_geoLocation = StoneSerializers.nullableStruct(GeoLocationLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accessMethod == null) { + throw new JsonParseException(p, "Required field \"access_method\" missing."); + } + value = new OriginLogInfo(f_accessMethod, f_geoLocation); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportDetails.java new file mode 100644 index 000000000..1d3982e5e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +/** + * Report created: Views of old links. + */ +public class OutdatedLinkViewCreateReportDetails { + // struct team_log.OutdatedLinkViewCreateReportDetails (team_log_generated.stone) + + @Nonnull + protected final Date startDate; + @Nonnull + protected final Date endDate; + + /** + * Report created: Views of old links. + * + * @param startDate Report start date. Must not be {@code null}. + * @param endDate Report end date. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OutdatedLinkViewCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + if (endDate == null) { + throw new IllegalArgumentException("Required value for 'endDate' is null"); + } + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * Report start date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getStartDate() { + return startDate; + } + + /** + * Report end date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getEndDate() { + return endDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OutdatedLinkViewCreateReportDetails other = (OutdatedLinkViewCreateReportDetails) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OutdatedLinkViewCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.timestamp().serialize(value.startDate, g); + g.writeFieldName("end_date"); + StoneSerializers.timestamp().serialize(value.endDate, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OutdatedLinkViewCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OutdatedLinkViewCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.timestamp().deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_endDate == null) { + throw new JsonParseException(p, "Required field \"end_date\" missing."); + } + value = new OutdatedLinkViewCreateReportDetails(f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportType.java new file mode 100644 index 000000000..6d88cf70a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class OutdatedLinkViewCreateReportType { + // struct team_log.OutdatedLinkViewCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OutdatedLinkViewCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OutdatedLinkViewCreateReportType other = (OutdatedLinkViewCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OutdatedLinkViewCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OutdatedLinkViewCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OutdatedLinkViewCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new OutdatedLinkViewCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedDetails.java new file mode 100644 index 000000000..d80f2a6be --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't create report: Views of old links. + */ +public class OutdatedLinkViewReportFailedDetails { + // struct team_log.OutdatedLinkViewReportFailedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't create report: Views of old links. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OutdatedLinkViewReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OutdatedLinkViewReportFailedDetails other = (OutdatedLinkViewReportFailedDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OutdatedLinkViewReportFailedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OutdatedLinkViewReportFailedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OutdatedLinkViewReportFailedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new OutdatedLinkViewReportFailedDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedType.java new file mode 100644 index 000000000..8a8deec94 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/OutdatedLinkViewReportFailedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class OutdatedLinkViewReportFailedType { + // struct team_log.OutdatedLinkViewReportFailedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public OutdatedLinkViewReportFailedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + OutdatedLinkViewReportFailedType other = (OutdatedLinkViewReportFailedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OutdatedLinkViewReportFailedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public OutdatedLinkViewReportFailedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + OutdatedLinkViewReportFailedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new OutdatedLinkViewReportFailedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAccessType.java new file mode 100644 index 000000000..40bfa467e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAccessType.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperAccessType { + // union team_log.PaperAccessType (team_log_generated.stone) + COMMENTER, + EDITOR, + VIEWER, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperAccessType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case COMMENTER: { + g.writeString("commenter"); + break; + } + case EDITOR: { + g.writeString("editor"); + break; + } + case VIEWER: { + g.writeString("viewer"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperAccessType deserialize(JsonParser p) throws IOException, JsonParseException { + PaperAccessType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("commenter".equals(tag)) { + value = PaperAccessType.COMMENTER; + } + else if ("editor".equals(tag)) { + value = PaperAccessType.EDITOR; + } + else if ("viewer".equals(tag)) { + value = PaperAccessType.VIEWER; + } + else { + value = PaperAccessType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAdminExportStartDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAdminExportStartDetails.java new file mode 100644 index 000000000..e5e680a95 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAdminExportStartDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Exported all team Paper docs. + */ +public class PaperAdminExportStartDetails { + // struct team_log.PaperAdminExportStartDetails (team_log_generated.stone) + + + /** + * Exported all team Paper docs. + */ + public PaperAdminExportStartDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperAdminExportStartDetails other = (PaperAdminExportStartDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperAdminExportStartDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperAdminExportStartDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperAdminExportStartDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new PaperAdminExportStartDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAdminExportStartType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAdminExportStartType.java new file mode 100644 index 000000000..37bb0c193 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperAdminExportStartType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperAdminExportStartType { + // struct team_log.PaperAdminExportStartType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperAdminExportStartType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperAdminExportStartType other = (PaperAdminExportStartType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperAdminExportStartType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperAdminExportStartType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperAdminExportStartType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperAdminExportStartType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyDetails.java new file mode 100644 index 000000000..ec5d9094a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyDetails.java @@ -0,0 +1,199 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.PaperDeploymentPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether Dropbox Paper, when enabled, is deployed to all members or to + * specific members. + */ +public class PaperChangeDeploymentPolicyDetails { + // struct team_log.PaperChangeDeploymentPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final PaperDeploymentPolicy newValue; + @Nullable + protected final PaperDeploymentPolicy previousValue; + + /** + * Changed whether Dropbox Paper, when enabled, is deployed to all members + * or to specific members. + * + * @param newValue New Dropbox Paper deployment policy. Must not be {@code + * null}. + * @param previousValue Previous Dropbox Paper deployment policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeDeploymentPolicyDetails(@Nonnull PaperDeploymentPolicy newValue, @Nullable PaperDeploymentPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether Dropbox Paper, when enabled, is deployed to all members + * or to specific members. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New Dropbox Paper deployment policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeDeploymentPolicyDetails(@Nonnull PaperDeploymentPolicy newValue) { + this(newValue, null); + } + + /** + * New Dropbox Paper deployment policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDeploymentPolicy getNewValue() { + return newValue; + } + + /** + * Previous Dropbox Paper deployment policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PaperDeploymentPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangeDeploymentPolicyDetails other = (PaperChangeDeploymentPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangeDeploymentPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + PaperDeploymentPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(PaperDeploymentPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangeDeploymentPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangeDeploymentPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PaperDeploymentPolicy f_newValue = null; + PaperDeploymentPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = PaperDeploymentPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(PaperDeploymentPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new PaperChangeDeploymentPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyType.java new file mode 100644 index 000000000..740ae52b3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeDeploymentPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperChangeDeploymentPolicyType { + // struct team_log.PaperChangeDeploymentPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeDeploymentPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangeDeploymentPolicyType other = (PaperChangeDeploymentPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangeDeploymentPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangeDeploymentPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangeDeploymentPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperChangeDeploymentPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyDetails.java new file mode 100644 index 000000000..b5e4399ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed whether non-members can view Paper docs with link. + */ +public class PaperChangeMemberLinkPolicyDetails { + // struct team_log.PaperChangeMemberLinkPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final PaperMemberPolicy newValue; + + /** + * Changed whether non-members can view Paper docs with link. + * + * @param newValue New paper external link accessibility policy. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeMemberLinkPolicyDetails(@Nonnull PaperMemberPolicy newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * New paper external link accessibility policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperMemberPolicy getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangeMemberLinkPolicyDetails other = (PaperChangeMemberLinkPolicyDetails) obj; + return (this.newValue == other.newValue) || (this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangeMemberLinkPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + PaperMemberPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangeMemberLinkPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangeMemberLinkPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PaperMemberPolicy f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = PaperMemberPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new PaperChangeMemberLinkPolicyDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyType.java new file mode 100644 index 000000000..54a7895c4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberLinkPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperChangeMemberLinkPolicyType { + // struct team_log.PaperChangeMemberLinkPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeMemberLinkPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangeMemberLinkPolicyType other = (PaperChangeMemberLinkPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangeMemberLinkPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangeMemberLinkPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangeMemberLinkPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperChangeMemberLinkPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyDetails.java new file mode 100644 index 000000000..1af3c06a8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyDetails.java @@ -0,0 +1,198 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether members can share Paper docs outside team, and if docs are + * accessible only by team members or anyone by default. + */ +public class PaperChangeMemberPolicyDetails { + // struct team_log.PaperChangeMemberPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final PaperMemberPolicy newValue; + @Nullable + protected final PaperMemberPolicy previousValue; + + /** + * Changed whether members can share Paper docs outside team, and if docs + * are accessible only by team members or anyone by default. + * + * @param newValue New paper external accessibility policy. Must not be + * {@code null}. + * @param previousValue Previous paper external accessibility policy. Might + * be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeMemberPolicyDetails(@Nonnull PaperMemberPolicy newValue, @Nullable PaperMemberPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether members can share Paper docs outside team, and if docs + * are accessible only by team members or anyone by default. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New paper external accessibility policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeMemberPolicyDetails(@Nonnull PaperMemberPolicy newValue) { + this(newValue, null); + } + + /** + * New paper external accessibility policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperMemberPolicy getNewValue() { + return newValue; + } + + /** + * Previous paper external accessibility policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PaperMemberPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangeMemberPolicyDetails other = (PaperChangeMemberPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangeMemberPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + PaperMemberPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(PaperMemberPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangeMemberPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangeMemberPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PaperMemberPolicy f_newValue = null; + PaperMemberPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = PaperMemberPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(PaperMemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new PaperChangeMemberPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyType.java new file mode 100644 index 000000000..f4ed19db2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangeMemberPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperChangeMemberPolicyType { + // struct team_log.PaperChangeMemberPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangeMemberPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangeMemberPolicyType other = (PaperChangeMemberPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangeMemberPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangeMemberPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangeMemberPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperChangeMemberPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangePolicyDetails.java new file mode 100644 index 000000000..78e596fc2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangePolicyDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.PaperEnabledPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled Dropbox Paper for team. + */ +public class PaperChangePolicyDetails { + // struct team_log.PaperChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final PaperEnabledPolicy newValue; + @Nullable + protected final PaperEnabledPolicy previousValue; + + /** + * Enabled/disabled Dropbox Paper for team. + * + * @param newValue New Dropbox Paper policy. Must not be {@code null}. + * @param previousValue Previous Dropbox Paper policy. Might be missing due + * to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangePolicyDetails(@Nonnull PaperEnabledPolicy newValue, @Nullable PaperEnabledPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled Dropbox Paper for team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New Dropbox Paper policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangePolicyDetails(@Nonnull PaperEnabledPolicy newValue) { + this(newValue, null); + } + + /** + * New Dropbox Paper policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperEnabledPolicy getNewValue() { + return newValue; + } + + /** + * Previous Dropbox Paper policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public PaperEnabledPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangePolicyDetails other = (PaperChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + PaperEnabledPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(PaperEnabledPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PaperEnabledPolicy f_newValue = null; + PaperEnabledPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = PaperEnabledPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(PaperEnabledPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new PaperChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangePolicyType.java new file mode 100644 index 000000000..7bb0431ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperChangePolicyType { + // struct team_log.PaperChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperChangePolicyType other = (PaperChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddMemberDetails.java new file mode 100644 index 000000000..bd0469f67 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddMemberDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added users and/or groups to Paper doc/folder. + */ +public class PaperContentAddMemberDetails { + // struct team_log.PaperContentAddMemberDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Added users and/or groups to Paper doc/folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentAddMemberDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentAddMemberDetails other = (PaperContentAddMemberDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentAddMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentAddMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentAddMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentAddMemberDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddMemberType.java new file mode 100644 index 000000000..45faa8497 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentAddMemberType { + // struct team_log.PaperContentAddMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentAddMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentAddMemberType other = (PaperContentAddMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentAddMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentAddMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentAddMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentAddMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddToFolderDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddToFolderDetails.java new file mode 100644 index 000000000..2b1ff2292 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddToFolderDetails.java @@ -0,0 +1,198 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added Paper doc/folder to folder. + */ +public class PaperContentAddToFolderDetails { + // struct team_log.PaperContentAddToFolderDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + protected final long targetAssetIndex; + protected final long parentAssetIndex; + + /** + * Added Paper doc/folder to folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param targetAssetIndex Target asset position in the Assets list. + * @param parentAssetIndex Parent asset position in the Assets list. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentAddToFolderDetails(@Nonnull String eventUuid, long targetAssetIndex, long parentAssetIndex) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.targetAssetIndex = targetAssetIndex; + this.parentAssetIndex = parentAssetIndex; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Parent asset position in the Assets list. + * + * @return value for this field. + */ + public long getParentAssetIndex() { + return parentAssetIndex; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.targetAssetIndex, + this.parentAssetIndex + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentAddToFolderDetails other = (PaperContentAddToFolderDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && (this.targetAssetIndex == other.targetAssetIndex) + && (this.parentAssetIndex == other.parentAssetIndex) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentAddToFolderDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("parent_asset_index"); + StoneSerializers.uInt64().serialize(value.parentAssetIndex, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentAddToFolderDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentAddToFolderDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + Long f_targetAssetIndex = null; + Long f_parentAssetIndex = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("parent_asset_index".equals(field)) { + f_parentAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_parentAssetIndex == null) { + throw new JsonParseException(p, "Required field \"parent_asset_index\" missing."); + } + value = new PaperContentAddToFolderDetails(f_eventUuid, f_targetAssetIndex, f_parentAssetIndex); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddToFolderType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddToFolderType.java new file mode 100644 index 000000000..48bf444e3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentAddToFolderType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentAddToFolderType { + // struct team_log.PaperContentAddToFolderType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentAddToFolderType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentAddToFolderType other = (PaperContentAddToFolderType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentAddToFolderType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentAddToFolderType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentAddToFolderType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentAddToFolderType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentArchiveDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentArchiveDetails.java new file mode 100644 index 000000000..094883485 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentArchiveDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Archived Paper doc/folder. + */ +public class PaperContentArchiveDetails { + // struct team_log.PaperContentArchiveDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Archived Paper doc/folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentArchiveDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentArchiveDetails other = (PaperContentArchiveDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentArchiveDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentArchiveDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentArchiveDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentArchiveDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentArchiveType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentArchiveType.java new file mode 100644 index 000000000..c016e4843 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentArchiveType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentArchiveType { + // struct team_log.PaperContentArchiveType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentArchiveType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentArchiveType other = (PaperContentArchiveType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentArchiveType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentArchiveType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentArchiveType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentArchiveType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentCreateDetails.java new file mode 100644 index 000000000..6529fb333 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentCreateDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Created Paper doc/folder. + */ +public class PaperContentCreateDetails { + // struct team_log.PaperContentCreateDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Created Paper doc/folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentCreateDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentCreateDetails other = (PaperContentCreateDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentCreateDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentCreateType.java new file mode 100644 index 000000000..cb95bbfb2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentCreateType { + // struct team_log.PaperContentCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentCreateType other = (PaperContentCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteDetails.java new file mode 100644 index 000000000..0a21aef04 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Permanently deleted Paper doc/folder. + */ +public class PaperContentPermanentlyDeleteDetails { + // struct team_log.PaperContentPermanentlyDeleteDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Permanently deleted Paper doc/folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentPermanentlyDeleteDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentPermanentlyDeleteDetails other = (PaperContentPermanentlyDeleteDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentPermanentlyDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentPermanentlyDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentPermanentlyDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentPermanentlyDeleteDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteType.java new file mode 100644 index 000000000..71919e07c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentPermanentlyDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentPermanentlyDeleteType { + // struct team_log.PaperContentPermanentlyDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentPermanentlyDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentPermanentlyDeleteType other = (PaperContentPermanentlyDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentPermanentlyDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentPermanentlyDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentPermanentlyDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentPermanentlyDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails.java new file mode 100644 index 000000000..be07c8372 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderDetails.java @@ -0,0 +1,285 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed Paper doc/folder from folder. + */ +public class PaperContentRemoveFromFolderDetails { + // struct team_log.PaperContentRemoveFromFolderDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final Long targetAssetIndex; + @Nullable + protected final Long parentAssetIndex; + + /** + * Removed Paper doc/folder from folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param targetAssetIndex Target asset position in the Assets list. + * @param parentAssetIndex Parent asset position in the Assets list. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRemoveFromFolderDetails(@Nonnull String eventUuid, @Nullable Long targetAssetIndex, @Nullable Long parentAssetIndex) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.targetAssetIndex = targetAssetIndex; + this.parentAssetIndex = parentAssetIndex; + } + + /** + * Removed Paper doc/folder from folder. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRemoveFromFolderDetails(@Nonnull String eventUuid) { + this(eventUuid, null, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Parent asset position in the Assets list. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Long getParentAssetIndex() { + return parentAssetIndex; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String eventUuid) { + return new Builder(eventUuid); + } + + /** + * Builder for {@link PaperContentRemoveFromFolderDetails}. + */ + public static class Builder { + protected final String eventUuid; + + protected Long targetAssetIndex; + protected Long parentAssetIndex; + + protected Builder(String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.targetAssetIndex = null; + this.parentAssetIndex = null; + } + + /** + * Set value for optional field. + * + * @param targetAssetIndex Target asset position in the Assets list. + * + * @return this builder + */ + public Builder withTargetAssetIndex(Long targetAssetIndex) { + this.targetAssetIndex = targetAssetIndex; + return this; + } + + /** + * Set value for optional field. + * + * @param parentAssetIndex Parent asset position in the Assets list. + * + * @return this builder + */ + public Builder withParentAssetIndex(Long parentAssetIndex) { + this.parentAssetIndex = parentAssetIndex; + return this; + } + + /** + * Builds an instance of {@link PaperContentRemoveFromFolderDetails} + * configured with this builder's values + * + * @return new instance of {@link PaperContentRemoveFromFolderDetails} + */ + public PaperContentRemoveFromFolderDetails build() { + return new PaperContentRemoveFromFolderDetails(eventUuid, targetAssetIndex, parentAssetIndex); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.targetAssetIndex, + this.parentAssetIndex + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRemoveFromFolderDetails other = (PaperContentRemoveFromFolderDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.targetAssetIndex == other.targetAssetIndex) || (this.targetAssetIndex != null && this.targetAssetIndex.equals(other.targetAssetIndex))) + && ((this.parentAssetIndex == other.parentAssetIndex) || (this.parentAssetIndex != null && this.parentAssetIndex.equals(other.parentAssetIndex))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRemoveFromFolderDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.targetAssetIndex != null) { + g.writeFieldName("target_asset_index"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.targetAssetIndex, g); + } + if (value.parentAssetIndex != null) { + g.writeFieldName("parent_asset_index"); + StoneSerializers.nullable(StoneSerializers.uInt64()).serialize(value.parentAssetIndex, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRemoveFromFolderDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRemoveFromFolderDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + Long f_targetAssetIndex = null; + Long f_parentAssetIndex = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else if ("parent_asset_index".equals(field)) { + f_parentAssetIndex = StoneSerializers.nullable(StoneSerializers.uInt64()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentRemoveFromFolderDetails(f_eventUuid, f_targetAssetIndex, f_parentAssetIndex); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderType.java new file mode 100644 index 000000000..1aff76352 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveFromFolderType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentRemoveFromFolderType { + // struct team_log.PaperContentRemoveFromFolderType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRemoveFromFolderType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRemoveFromFolderType other = (PaperContentRemoveFromFolderType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRemoveFromFolderType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRemoveFromFolderType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRemoveFromFolderType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentRemoveFromFolderType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveMemberDetails.java new file mode 100644 index 000000000..3937be2f9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveMemberDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed users and/or groups from Paper doc/folder. + */ +public class PaperContentRemoveMemberDetails { + // struct team_log.PaperContentRemoveMemberDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Removed users and/or groups from Paper doc/folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRemoveMemberDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRemoveMemberDetails other = (PaperContentRemoveMemberDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRemoveMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRemoveMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRemoveMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentRemoveMemberDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveMemberType.java new file mode 100644 index 000000000..2c3122633 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRemoveMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentRemoveMemberType { + // struct team_log.PaperContentRemoveMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRemoveMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRemoveMemberType other = (PaperContentRemoveMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRemoveMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRemoveMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRemoveMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentRemoveMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRenameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRenameDetails.java new file mode 100644 index 000000000..41665adb1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRenameDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Renamed Paper doc/folder. + */ +public class PaperContentRenameDetails { + // struct team_log.PaperContentRenameDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Renamed Paper doc/folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRenameDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRenameDetails other = (PaperContentRenameDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRenameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRenameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRenameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentRenameDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRenameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRenameType.java new file mode 100644 index 000000000..86cd2b92e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRenameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentRenameType { + // struct team_log.PaperContentRenameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRenameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRenameType other = (PaperContentRenameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRenameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRenameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRenameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentRenameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRestoreDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRestoreDetails.java new file mode 100644 index 000000000..b2c026954 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRestoreDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Restored archived Paper doc/folder. + */ +public class PaperContentRestoreDetails { + // struct team_log.PaperContentRestoreDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Restored archived Paper doc/folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRestoreDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRestoreDetails other = (PaperContentRestoreDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRestoreDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRestoreDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRestoreDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperContentRestoreDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRestoreType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRestoreType.java new file mode 100644 index 000000000..c3b5e6716 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperContentRestoreType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperContentRestoreType { + // struct team_log.PaperContentRestoreType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperContentRestoreType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperContentRestoreType other = (PaperContentRestoreType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperContentRestoreType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperContentRestoreType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperContentRestoreType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperContentRestoreType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy.java new file mode 100644 index 000000000..9e1ad37da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy to set default access for newly created Paper folders. + */ +public enum PaperDefaultFolderPolicy { + // union team_log.PaperDefaultFolderPolicy (team_log_generated.stone) + EVERYONE_IN_TEAM, + INVITE_ONLY, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDefaultFolderPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EVERYONE_IN_TEAM: { + g.writeString("everyone_in_team"); + break; + } + case INVITE_ONLY: { + g.writeString("invite_only"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperDefaultFolderPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDefaultFolderPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("everyone_in_team".equals(tag)) { + value = PaperDefaultFolderPolicy.EVERYONE_IN_TEAM; + } + else if ("invite_only".equals(tag)) { + value = PaperDefaultFolderPolicy.INVITE_ONLY; + } + else { + value = PaperDefaultFolderPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedDetails.java new file mode 100644 index 000000000..a0fb093ef --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed Paper Default Folder Policy setting for team. + */ +public class PaperDefaultFolderPolicyChangedDetails { + // struct team_log.PaperDefaultFolderPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final PaperDefaultFolderPolicy newValue; + @Nonnull + protected final PaperDefaultFolderPolicy previousValue; + + /** + * Changed Paper Default Folder Policy setting for team. + * + * @param newValue New Paper Default Folder Policy. Must not be {@code + * null}. + * @param previousValue Previous Paper Default Folder Policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDefaultFolderPolicyChangedDetails(@Nonnull PaperDefaultFolderPolicy newValue, @Nonnull PaperDefaultFolderPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Paper Default Folder Policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDefaultFolderPolicy getNewValue() { + return newValue; + } + + /** + * Previous Paper Default Folder Policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDefaultFolderPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDefaultFolderPolicyChangedDetails other = (PaperDefaultFolderPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDefaultFolderPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + PaperDefaultFolderPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + PaperDefaultFolderPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDefaultFolderPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDefaultFolderPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PaperDefaultFolderPolicy f_newValue = null; + PaperDefaultFolderPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = PaperDefaultFolderPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = PaperDefaultFolderPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new PaperDefaultFolderPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedType.java new file mode 100644 index 000000000..06d8f7a01 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDefaultFolderPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDefaultFolderPolicyChangedType { + // struct team_log.PaperDefaultFolderPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDefaultFolderPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDefaultFolderPolicyChangedType other = (PaperDefaultFolderPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDefaultFolderPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDefaultFolderPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDefaultFolderPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDefaultFolderPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicy.java new file mode 100644 index 000000000..882eb8dd9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if team members can use Paper Desktop + */ +public enum PaperDesktopPolicy { + // union team_log.PaperDesktopPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDesktopPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperDesktopPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDesktopPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = PaperDesktopPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = PaperDesktopPolicy.ENABLED; + } + else { + value = PaperDesktopPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedDetails.java new file mode 100644 index 000000000..d82ba0630 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enabled/disabled Paper Desktop for team. + */ +public class PaperDesktopPolicyChangedDetails { + // struct team_log.PaperDesktopPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final PaperDesktopPolicy newValue; + @Nonnull + protected final PaperDesktopPolicy previousValue; + + /** + * Enabled/disabled Paper Desktop for team. + * + * @param newValue New Paper Desktop policy. Must not be {@code null}. + * @param previousValue Previous Paper Desktop policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDesktopPolicyChangedDetails(@Nonnull PaperDesktopPolicy newValue, @Nonnull PaperDesktopPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Paper Desktop policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDesktopPolicy getNewValue() { + return newValue; + } + + /** + * Previous Paper Desktop policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDesktopPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDesktopPolicyChangedDetails other = (PaperDesktopPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDesktopPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + PaperDesktopPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + PaperDesktopPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDesktopPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDesktopPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PaperDesktopPolicy f_newValue = null; + PaperDesktopPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = PaperDesktopPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = PaperDesktopPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new PaperDesktopPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedType.java new file mode 100644 index 000000000..58285a0a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDesktopPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDesktopPolicyChangedType { + // struct team_log.PaperDesktopPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDesktopPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDesktopPolicyChangedType other = (PaperDesktopPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDesktopPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDesktopPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDesktopPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDesktopPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocAddCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocAddCommentDetails.java new file mode 100644 index 000000000..3e20d3a5e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocAddCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added Paper doc comment. + */ +public class PaperDocAddCommentDetails { + // struct team_log.PaperDocAddCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Added Paper doc comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocAddCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Added Paper doc comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocAddCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocAddCommentDetails other = (PaperDocAddCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocAddCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocAddCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocAddCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocAddCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocAddCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocAddCommentType.java new file mode 100644 index 000000000..1c90f172d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocAddCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocAddCommentType { + // struct team_log.PaperDocAddCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocAddCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocAddCommentType other = (PaperDocAddCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocAddCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocAddCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocAddCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocAddCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleDetails.java new file mode 100644 index 000000000..8e566e0e7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed member permissions for Paper doc. + */ +public class PaperDocChangeMemberRoleDetails { + // struct team_log.PaperDocChangeMemberRoleDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final PaperAccessType accessType; + + /** + * Changed member permissions for Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param accessType Paper doc access type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeMemberRoleDetails(@Nonnull String eventUuid, @Nonnull PaperAccessType accessType) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (accessType == null) { + throw new IllegalArgumentException("Required value for 'accessType' is null"); + } + this.accessType = accessType; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Paper doc access type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperAccessType getAccessType() { + return accessType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.accessType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocChangeMemberRoleDetails other = (PaperDocChangeMemberRoleDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.accessType == other.accessType) || (this.accessType.equals(other.accessType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocChangeMemberRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("access_type"); + PaperAccessType.Serializer.INSTANCE.serialize(value.accessType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocChangeMemberRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocChangeMemberRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + PaperAccessType f_accessType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("access_type".equals(field)) { + f_accessType = PaperAccessType.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_accessType == null) { + throw new JsonParseException(p, "Required field \"access_type\" missing."); + } + value = new PaperDocChangeMemberRoleDetails(f_eventUuid, f_accessType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleType.java new file mode 100644 index 000000000..56d2da4a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeMemberRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocChangeMemberRoleType { + // struct team_log.PaperDocChangeMemberRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeMemberRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocChangeMemberRoleType other = (PaperDocChangeMemberRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocChangeMemberRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocChangeMemberRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocChangeMemberRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocChangeMemberRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails.java new file mode 100644 index 000000000..6673a772e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyDetails.java @@ -0,0 +1,285 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed sharing setting for Paper doc. + */ +public class PaperDocChangeSharingPolicyDetails { + // struct team_log.PaperDocChangeSharingPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String publicSharingPolicy; + @Nullable + protected final String teamSharingPolicy; + + /** + * Changed sharing setting for Paper doc. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param publicSharingPolicy Sharing policy with external users. + * @param teamSharingPolicy Sharing policy with team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeSharingPolicyDetails(@Nonnull String eventUuid, @Nullable String publicSharingPolicy, @Nullable String teamSharingPolicy) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.publicSharingPolicy = publicSharingPolicy; + this.teamSharingPolicy = teamSharingPolicy; + } + + /** + * Changed sharing setting for Paper doc. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeSharingPolicyDetails(@Nonnull String eventUuid) { + this(eventUuid, null, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Sharing policy with external users. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPublicSharingPolicy() { + return publicSharingPolicy; + } + + /** + * Sharing policy with team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamSharingPolicy() { + return teamSharingPolicy; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String eventUuid) { + return new Builder(eventUuid); + } + + /** + * Builder for {@link PaperDocChangeSharingPolicyDetails}. + */ + public static class Builder { + protected final String eventUuid; + + protected String publicSharingPolicy; + protected String teamSharingPolicy; + + protected Builder(String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.publicSharingPolicy = null; + this.teamSharingPolicy = null; + } + + /** + * Set value for optional field. + * + * @param publicSharingPolicy Sharing policy with external users. + * + * @return this builder + */ + public Builder withPublicSharingPolicy(String publicSharingPolicy) { + this.publicSharingPolicy = publicSharingPolicy; + return this; + } + + /** + * Set value for optional field. + * + * @param teamSharingPolicy Sharing policy with team. + * + * @return this builder + */ + public Builder withTeamSharingPolicy(String teamSharingPolicy) { + this.teamSharingPolicy = teamSharingPolicy; + return this; + } + + /** + * Builds an instance of {@link PaperDocChangeSharingPolicyDetails} + * configured with this builder's values + * + * @return new instance of {@link PaperDocChangeSharingPolicyDetails} + */ + public PaperDocChangeSharingPolicyDetails build() { + return new PaperDocChangeSharingPolicyDetails(eventUuid, publicSharingPolicy, teamSharingPolicy); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.publicSharingPolicy, + this.teamSharingPolicy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocChangeSharingPolicyDetails other = (PaperDocChangeSharingPolicyDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.publicSharingPolicy == other.publicSharingPolicy) || (this.publicSharingPolicy != null && this.publicSharingPolicy.equals(other.publicSharingPolicy))) + && ((this.teamSharingPolicy == other.teamSharingPolicy) || (this.teamSharingPolicy != null && this.teamSharingPolicy.equals(other.teamSharingPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocChangeSharingPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.publicSharingPolicy != null) { + g.writeFieldName("public_sharing_policy"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.publicSharingPolicy, g); + } + if (value.teamSharingPolicy != null) { + g.writeFieldName("team_sharing_policy"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamSharingPolicy, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocChangeSharingPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocChangeSharingPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_publicSharingPolicy = null; + String f_teamSharingPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("public_sharing_policy".equals(field)) { + f_publicSharingPolicy = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team_sharing_policy".equals(field)) { + f_teamSharingPolicy = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocChangeSharingPolicyDetails(f_eventUuid, f_publicSharingPolicy, f_teamSharingPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyType.java new file mode 100644 index 000000000..93c5ad64b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSharingPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocChangeSharingPolicyType { + // struct team_log.PaperDocChangeSharingPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeSharingPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocChangeSharingPolicyType other = (PaperDocChangeSharingPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocChangeSharingPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocChangeSharingPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocChangeSharingPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocChangeSharingPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionDetails.java new file mode 100644 index 000000000..96e622c68 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionDetails.java @@ -0,0 +1,224 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Followed/unfollowed Paper doc. + */ +public class PaperDocChangeSubscriptionDetails { + // struct team_log.PaperDocChangeSubscriptionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String newSubscriptionLevel; + @Nullable + protected final String previousSubscriptionLevel; + + /** + * Followed/unfollowed Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param newSubscriptionLevel New doc subscription level. Must not be + * {@code null}. + * @param previousSubscriptionLevel Previous doc subscription level. Might + * be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel, @Nullable String previousSubscriptionLevel) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (newSubscriptionLevel == null) { + throw new IllegalArgumentException("Required value for 'newSubscriptionLevel' is null"); + } + this.newSubscriptionLevel = newSubscriptionLevel; + this.previousSubscriptionLevel = previousSubscriptionLevel; + } + + /** + * Followed/unfollowed Paper doc. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param newSubscriptionLevel New doc subscription level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel) { + this(eventUuid, newSubscriptionLevel, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * New doc subscription level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewSubscriptionLevel() { + return newSubscriptionLevel; + } + + /** + * Previous doc subscription level. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousSubscriptionLevel() { + return previousSubscriptionLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.newSubscriptionLevel, + this.previousSubscriptionLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocChangeSubscriptionDetails other = (PaperDocChangeSubscriptionDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.newSubscriptionLevel == other.newSubscriptionLevel) || (this.newSubscriptionLevel.equals(other.newSubscriptionLevel))) + && ((this.previousSubscriptionLevel == other.previousSubscriptionLevel) || (this.previousSubscriptionLevel != null && this.previousSubscriptionLevel.equals(other.previousSubscriptionLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocChangeSubscriptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("new_subscription_level"); + StoneSerializers.string().serialize(value.newSubscriptionLevel, g); + if (value.previousSubscriptionLevel != null) { + g.writeFieldName("previous_subscription_level"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousSubscriptionLevel, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocChangeSubscriptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocChangeSubscriptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_newSubscriptionLevel = null; + String f_previousSubscriptionLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("new_subscription_level".equals(field)) { + f_newSubscriptionLevel = StoneSerializers.string().deserialize(p); + } + else if ("previous_subscription_level".equals(field)) { + f_previousSubscriptionLevel = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_newSubscriptionLevel == null) { + throw new JsonParseException(p, "Required field \"new_subscription_level\" missing."); + } + value = new PaperDocChangeSubscriptionDetails(f_eventUuid, f_newSubscriptionLevel, f_previousSubscriptionLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionType.java new file mode 100644 index 000000000..074f920df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocChangeSubscriptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocChangeSubscriptionType { + // struct team_log.PaperDocChangeSubscriptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocChangeSubscriptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocChangeSubscriptionType other = (PaperDocChangeSubscriptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocChangeSubscriptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocChangeSubscriptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocChangeSubscriptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocChangeSubscriptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeleteCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeleteCommentDetails.java new file mode 100644 index 000000000..944bc2645 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeleteCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Deleted Paper doc comment. + */ +public class PaperDocDeleteCommentDetails { + // struct team_log.PaperDocDeleteCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Deleted Paper doc comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocDeleteCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Deleted Paper doc comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocDeleteCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocDeleteCommentDetails other = (PaperDocDeleteCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocDeleteCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocDeleteCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocDeleteCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocDeleteCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeleteCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeleteCommentType.java new file mode 100644 index 000000000..2121fff0a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeleteCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocDeleteCommentType { + // struct team_log.PaperDocDeleteCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocDeleteCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocDeleteCommentType other = (PaperDocDeleteCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocDeleteCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocDeleteCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocDeleteCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocDeleteCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeletedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeletedDetails.java new file mode 100644 index 000000000..e5cec692f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeletedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Archived Paper doc. + */ +public class PaperDocDeletedDetails { + // struct team_log.PaperDocDeletedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Archived Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocDeletedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocDeletedDetails other = (PaperDocDeletedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocDeletedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocDeletedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocDeletedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocDeletedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeletedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeletedType.java new file mode 100644 index 000000000..e44f61788 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDeletedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocDeletedType { + // struct team_log.PaperDocDeletedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocDeletedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocDeletedType other = (PaperDocDeletedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocDeletedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocDeletedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocDeletedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocDeletedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDownloadDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDownloadDetails.java new file mode 100644 index 000000000..7f7723641 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDownloadDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Downloaded Paper doc in specific format. + */ +public class PaperDocDownloadDetails { + // struct team_log.PaperDocDownloadDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final PaperDownloadFormat exportFileFormat; + + /** + * Downloaded Paper doc in specific format. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param exportFileFormat Export file format. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocDownloadDetails(@Nonnull String eventUuid, @Nonnull PaperDownloadFormat exportFileFormat) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (exportFileFormat == null) { + throw new IllegalArgumentException("Required value for 'exportFileFormat' is null"); + } + this.exportFileFormat = exportFileFormat; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Export file format. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PaperDownloadFormat getExportFileFormat() { + return exportFileFormat; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.exportFileFormat + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocDownloadDetails other = (PaperDocDownloadDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.exportFileFormat == other.exportFileFormat) || (this.exportFileFormat.equals(other.exportFileFormat))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocDownloadDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("export_file_format"); + PaperDownloadFormat.Serializer.INSTANCE.serialize(value.exportFileFormat, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocDownloadDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocDownloadDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + PaperDownloadFormat f_exportFileFormat = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("export_file_format".equals(field)) { + f_exportFileFormat = PaperDownloadFormat.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_exportFileFormat == null) { + throw new JsonParseException(p, "Required field \"export_file_format\" missing."); + } + value = new PaperDocDownloadDetails(f_eventUuid, f_exportFileFormat); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDownloadType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDownloadType.java new file mode 100644 index 000000000..6c4acc73f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocDownloadType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocDownloadType { + // struct team_log.PaperDocDownloadType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocDownloadType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocDownloadType other = (PaperDocDownloadType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocDownloadType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocDownloadType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocDownloadType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocDownloadType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditCommentDetails.java new file mode 100644 index 000000000..fd1652b7a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Edited Paper doc comment. + */ +public class PaperDocEditCommentDetails { + // struct team_log.PaperDocEditCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Edited Paper doc comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocEditCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Edited Paper doc comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocEditCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocEditCommentDetails other = (PaperDocEditCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocEditCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocEditCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocEditCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocEditCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditCommentType.java new file mode 100644 index 000000000..0a15017ca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocEditCommentType { + // struct team_log.PaperDocEditCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocEditCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocEditCommentType other = (PaperDocEditCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocEditCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocEditCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocEditCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocEditCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditDetails.java new file mode 100644 index 000000000..48597ffce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Edited Paper doc. + */ +public class PaperDocEditDetails { + // struct team_log.PaperDocEditDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Edited Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocEditDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocEditDetails other = (PaperDocEditDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocEditDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocEditDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocEditDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocEditDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditType.java new file mode 100644 index 000000000..05af6434b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocEditType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocEditType { + // struct team_log.PaperDocEditType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocEditType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocEditType other = (PaperDocEditType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocEditType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocEditType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocEditType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocEditType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocFollowedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocFollowedDetails.java new file mode 100644 index 000000000..455825f28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocFollowedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Followed Paper doc. + */ +public class PaperDocFollowedDetails { + // struct team_log.PaperDocFollowedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Followed Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocFollowedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocFollowedDetails other = (PaperDocFollowedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocFollowedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocFollowedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocFollowedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocFollowedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocFollowedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocFollowedType.java new file mode 100644 index 000000000..1d0164bc5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocFollowedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocFollowedType { + // struct team_log.PaperDocFollowedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocFollowedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocFollowedType other = (PaperDocFollowedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocFollowedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocFollowedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocFollowedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocFollowedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocMentionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocMentionDetails.java new file mode 100644 index 000000000..f9019d69e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocMentionDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Mentioned user in Paper doc. + */ +public class PaperDocMentionDetails { + // struct team_log.PaperDocMentionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Mentioned user in Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocMentionDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocMentionDetails other = (PaperDocMentionDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocMentionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocMentionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocMentionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocMentionDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocMentionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocMentionType.java new file mode 100644 index 000000000..e45683c48 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocMentionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocMentionType { + // struct team_log.PaperDocMentionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocMentionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocMentionType other = (PaperDocMentionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocMentionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocMentionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocMentionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocMentionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedDetails.java new file mode 100644 index 000000000..19049e911 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedDetails.java @@ -0,0 +1,237 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Transferred ownership of Paper doc. + */ +public class PaperDocOwnershipChangedDetails { + // struct team_log.PaperDocOwnershipChangedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String oldOwnerUserId; + @Nonnull + protected final String newOwnerUserId; + + /** + * Transferred ownership of Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param newOwnerUserId New owner. Must have length of at least 40, have + * length of at most 40, and not be {@code null}. + * @param oldOwnerUserId Previous owner. Must have length of at least 40 + * and have length of at most 40. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocOwnershipChangedDetails(@Nonnull String eventUuid, @Nonnull String newOwnerUserId, @Nullable String oldOwnerUserId) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (oldOwnerUserId != null) { + if (oldOwnerUserId.length() < 40) { + throw new IllegalArgumentException("String 'oldOwnerUserId' is shorter than 40"); + } + if (oldOwnerUserId.length() > 40) { + throw new IllegalArgumentException("String 'oldOwnerUserId' is longer than 40"); + } + } + this.oldOwnerUserId = oldOwnerUserId; + if (newOwnerUserId == null) { + throw new IllegalArgumentException("Required value for 'newOwnerUserId' is null"); + } + if (newOwnerUserId.length() < 40) { + throw new IllegalArgumentException("String 'newOwnerUserId' is shorter than 40"); + } + if (newOwnerUserId.length() > 40) { + throw new IllegalArgumentException("String 'newOwnerUserId' is longer than 40"); + } + this.newOwnerUserId = newOwnerUserId; + } + + /** + * Transferred ownership of Paper doc. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param newOwnerUserId New owner. Must have length of at least 40, have + * length of at most 40, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocOwnershipChangedDetails(@Nonnull String eventUuid, @Nonnull String newOwnerUserId) { + this(eventUuid, newOwnerUserId, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * New owner. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewOwnerUserId() { + return newOwnerUserId; + } + + /** + * Previous owner. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getOldOwnerUserId() { + return oldOwnerUserId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.oldOwnerUserId, + this.newOwnerUserId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocOwnershipChangedDetails other = (PaperDocOwnershipChangedDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.newOwnerUserId == other.newOwnerUserId) || (this.newOwnerUserId.equals(other.newOwnerUserId))) + && ((this.oldOwnerUserId == other.oldOwnerUserId) || (this.oldOwnerUserId != null && this.oldOwnerUserId.equals(other.oldOwnerUserId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocOwnershipChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("new_owner_user_id"); + StoneSerializers.string().serialize(value.newOwnerUserId, g); + if (value.oldOwnerUserId != null) { + g.writeFieldName("old_owner_user_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.oldOwnerUserId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocOwnershipChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocOwnershipChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_newOwnerUserId = null; + String f_oldOwnerUserId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("new_owner_user_id".equals(field)) { + f_newOwnerUserId = StoneSerializers.string().deserialize(p); + } + else if ("old_owner_user_id".equals(field)) { + f_oldOwnerUserId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_newOwnerUserId == null) { + throw new JsonParseException(p, "Required field \"new_owner_user_id\" missing."); + } + value = new PaperDocOwnershipChangedDetails(f_eventUuid, f_newOwnerUserId, f_oldOwnerUserId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedType.java new file mode 100644 index 000000000..fca834f41 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocOwnershipChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocOwnershipChangedType { + // struct team_log.PaperDocOwnershipChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocOwnershipChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocOwnershipChangedType other = (PaperDocOwnershipChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocOwnershipChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocOwnershipChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocOwnershipChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocOwnershipChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRequestAccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRequestAccessDetails.java new file mode 100644 index 000000000..b64c69f8d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRequestAccessDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Requested access to Paper doc. + */ +public class PaperDocRequestAccessDetails { + // struct team_log.PaperDocRequestAccessDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Requested access to Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocRequestAccessDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocRequestAccessDetails other = (PaperDocRequestAccessDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocRequestAccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocRequestAccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocRequestAccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocRequestAccessDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRequestAccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRequestAccessType.java new file mode 100644 index 000000000..5567e4ed4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRequestAccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocRequestAccessType { + // struct team_log.PaperDocRequestAccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocRequestAccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocRequestAccessType other = (PaperDocRequestAccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocRequestAccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocRequestAccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocRequestAccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocRequestAccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocResolveCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocResolveCommentDetails.java new file mode 100644 index 000000000..b080e6c49 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocResolveCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Resolved Paper doc comment. + */ +public class PaperDocResolveCommentDetails { + // struct team_log.PaperDocResolveCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Resolved Paper doc comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocResolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Resolved Paper doc comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocResolveCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocResolveCommentDetails other = (PaperDocResolveCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocResolveCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocResolveCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocResolveCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocResolveCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocResolveCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocResolveCommentType.java new file mode 100644 index 000000000..fe920b6f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocResolveCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocResolveCommentType { + // struct team_log.PaperDocResolveCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocResolveCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocResolveCommentType other = (PaperDocResolveCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocResolveCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocResolveCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocResolveCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocResolveCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRevertDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRevertDetails.java new file mode 100644 index 000000000..4f98a9ffd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRevertDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Restored Paper doc to previous version. + */ +public class PaperDocRevertDetails { + // struct team_log.PaperDocRevertDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Restored Paper doc to previous version. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocRevertDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocRevertDetails other = (PaperDocRevertDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocRevertDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocRevertDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocRevertDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocRevertDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRevertType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRevertType.java new file mode 100644 index 000000000..1f70d3e2e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocRevertType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocRevertType { + // struct team_log.PaperDocRevertType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocRevertType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocRevertType other = (PaperDocRevertType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocRevertType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocRevertType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocRevertType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocRevertType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocSlackShareDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocSlackShareDetails.java new file mode 100644 index 000000000..caa5174b2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocSlackShareDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Shared Paper doc via Slack. + */ +public class PaperDocSlackShareDetails { + // struct team_log.PaperDocSlackShareDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Shared Paper doc via Slack. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocSlackShareDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocSlackShareDetails other = (PaperDocSlackShareDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocSlackShareDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocSlackShareDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocSlackShareDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocSlackShareDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocSlackShareType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocSlackShareType.java new file mode 100644 index 000000000..b98312227 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocSlackShareType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocSlackShareType { + // struct team_log.PaperDocSlackShareType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocSlackShareType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocSlackShareType other = (PaperDocSlackShareType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocSlackShareType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocSlackShareType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocSlackShareType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocSlackShareType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTeamInviteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTeamInviteDetails.java new file mode 100644 index 000000000..9f24eb8e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTeamInviteDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Shared Paper doc with users and/or groups. + */ +public class PaperDocTeamInviteDetails { + // struct team_log.PaperDocTeamInviteDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Shared Paper doc with users and/or groups. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocTeamInviteDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocTeamInviteDetails other = (PaperDocTeamInviteDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocTeamInviteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocTeamInviteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocTeamInviteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocTeamInviteDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTeamInviteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTeamInviteType.java new file mode 100644 index 000000000..04b680cb3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTeamInviteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocTeamInviteType { + // struct team_log.PaperDocTeamInviteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocTeamInviteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocTeamInviteType other = (PaperDocTeamInviteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocTeamInviteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocTeamInviteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocTeamInviteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocTeamInviteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTrashedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTrashedDetails.java new file mode 100644 index 000000000..4c92bb97c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTrashedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Deleted Paper doc. + */ +public class PaperDocTrashedDetails { + // struct team_log.PaperDocTrashedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Deleted Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocTrashedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocTrashedDetails other = (PaperDocTrashedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocTrashedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocTrashedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocTrashedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocTrashedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTrashedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTrashedType.java new file mode 100644 index 000000000..106b62ca1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocTrashedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocTrashedType { + // struct team_log.PaperDocTrashedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocTrashedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocTrashedType other = (PaperDocTrashedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocTrashedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocTrashedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocTrashedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocTrashedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentDetails.java new file mode 100644 index 000000000..53b3c2d1d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Unresolved Paper doc comment. + */ +public class PaperDocUnresolveCommentDetails { + // struct team_log.PaperDocUnresolveCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Unresolved Paper doc comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocUnresolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Unresolved Paper doc comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocUnresolveCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocUnresolveCommentDetails other = (PaperDocUnresolveCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUnresolveCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocUnresolveCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocUnresolveCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocUnresolveCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentType.java new file mode 100644 index 000000000..d99f0093e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUnresolveCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocUnresolveCommentType { + // struct team_log.PaperDocUnresolveCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocUnresolveCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocUnresolveCommentType other = (PaperDocUnresolveCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUnresolveCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocUnresolveCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocUnresolveCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocUnresolveCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUntrashedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUntrashedDetails.java new file mode 100644 index 000000000..887e346bf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUntrashedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Restored Paper doc. + */ +public class PaperDocUntrashedDetails { + // struct team_log.PaperDocUntrashedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Restored Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocUntrashedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocUntrashedDetails other = (PaperDocUntrashedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUntrashedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocUntrashedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocUntrashedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocUntrashedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUntrashedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUntrashedType.java new file mode 100644 index 000000000..0e097c837 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocUntrashedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocUntrashedType { + // struct team_log.PaperDocUntrashedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocUntrashedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocUntrashedType other = (PaperDocUntrashedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocUntrashedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocUntrashedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocUntrashedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocUntrashedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocViewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocViewDetails.java new file mode 100644 index 000000000..bd5e63eec --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocViewDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Viewed Paper doc. + */ +public class PaperDocViewDetails { + // struct team_log.PaperDocViewDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Viewed Paper doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocViewDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocViewDetails other = (PaperDocViewDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocViewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocViewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocViewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperDocViewDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocViewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocViewType.java new file mode 100644 index 000000000..50585f1e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocViewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperDocViewType { + // struct team_log.PaperDocViewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocViewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocViewType other = (PaperDocViewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocViewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocViewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocViewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperDocViewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocumentLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocumentLogInfo.java new file mode 100644 index 000000000..321ff50d6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDocumentLogInfo.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Paper document's logged information. + */ +public class PaperDocumentLogInfo { + // struct team_log.PaperDocumentLogInfo (team_log_generated.stone) + + @Nonnull + protected final String docId; + @Nonnull + protected final String docTitle; + + /** + * Paper document's logged information. + * + * @param docId Papers document Id. Must not be {@code null}. + * @param docTitle Paper document title. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperDocumentLogInfo(@Nonnull String docId, @Nonnull String docTitle) { + if (docId == null) { + throw new IllegalArgumentException("Required value for 'docId' is null"); + } + this.docId = docId; + if (docTitle == null) { + throw new IllegalArgumentException("Required value for 'docTitle' is null"); + } + this.docTitle = docTitle; + } + + /** + * Papers document Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocId() { + return docId; + } + + /** + * Paper document title. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDocTitle() { + return docTitle; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.docId, + this.docTitle + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperDocumentLogInfo other = (PaperDocumentLogInfo) obj; + return ((this.docId == other.docId) || (this.docId.equals(other.docId))) + && ((this.docTitle == other.docTitle) || (this.docTitle.equals(other.docTitle))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDocumentLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("doc_id"); + StoneSerializers.string().serialize(value.docId, g); + g.writeFieldName("doc_title"); + StoneSerializers.string().serialize(value.docTitle, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperDocumentLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperDocumentLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_docId = null; + String f_docTitle = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("doc_id".equals(field)) { + f_docId = StoneSerializers.string().deserialize(p); + } + else if ("doc_title".equals(field)) { + f_docTitle = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_docId == null) { + throw new JsonParseException(p, "Required field \"doc_id\" missing."); + } + if (f_docTitle == null) { + throw new JsonParseException(p, "Required field \"doc_title\" missing."); + } + value = new PaperDocumentLogInfo(f_docId, f_docTitle); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDownloadFormat.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDownloadFormat.java new file mode 100644 index 000000000..4c6ed2403 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperDownloadFormat.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperDownloadFormat { + // union team_log.PaperDownloadFormat (team_log_generated.stone) + DOCX, + HTML, + MARKDOWN, + PDF, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDownloadFormat value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DOCX: { + g.writeString("docx"); + break; + } + case HTML: { + g.writeString("html"); + break; + } + case MARKDOWN: { + g.writeString("markdown"); + break; + } + case PDF: { + g.writeString("pdf"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperDownloadFormat deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDownloadFormat value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("docx".equals(tag)) { + value = PaperDownloadFormat.DOCX; + } + else if ("html".equals(tag)) { + value = PaperDownloadFormat.HTML; + } + else if ("markdown".equals(tag)) { + value = PaperDownloadFormat.MARKDOWN; + } + else if ("pdf".equals(tag)) { + value = PaperDownloadFormat.PDF; + } + else { + value = PaperDownloadFormat.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionDetails.java new file mode 100644 index 000000000..efdcd8560 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added users to Paper-enabled users list. + */ +public class PaperEnabledUsersGroupAdditionDetails { + // struct team_log.PaperEnabledUsersGroupAdditionDetails (team_log_generated.stone) + + + /** + * Added users to Paper-enabled users list. + */ + public PaperEnabledUsersGroupAdditionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperEnabledUsersGroupAdditionDetails other = (PaperEnabledUsersGroupAdditionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperEnabledUsersGroupAdditionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperEnabledUsersGroupAdditionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperEnabledUsersGroupAdditionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new PaperEnabledUsersGroupAdditionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionType.java new file mode 100644 index 000000000..db6da7a37 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupAdditionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperEnabledUsersGroupAdditionType { + // struct team_log.PaperEnabledUsersGroupAdditionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperEnabledUsersGroupAdditionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperEnabledUsersGroupAdditionType other = (PaperEnabledUsersGroupAdditionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperEnabledUsersGroupAdditionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperEnabledUsersGroupAdditionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperEnabledUsersGroupAdditionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperEnabledUsersGroupAdditionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalDetails.java new file mode 100644 index 000000000..76af11646 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed users from Paper-enabled users list. + */ +public class PaperEnabledUsersGroupRemovalDetails { + // struct team_log.PaperEnabledUsersGroupRemovalDetails (team_log_generated.stone) + + + /** + * Removed users from Paper-enabled users list. + */ + public PaperEnabledUsersGroupRemovalDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperEnabledUsersGroupRemovalDetails other = (PaperEnabledUsersGroupRemovalDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperEnabledUsersGroupRemovalDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperEnabledUsersGroupRemovalDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperEnabledUsersGroupRemovalDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new PaperEnabledUsersGroupRemovalDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalType.java new file mode 100644 index 000000000..1c4c7db58 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperEnabledUsersGroupRemovalType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperEnabledUsersGroupRemovalType { + // struct team_log.PaperEnabledUsersGroupRemovalType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperEnabledUsersGroupRemovalType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperEnabledUsersGroupRemovalType other = (PaperEnabledUsersGroupRemovalType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperEnabledUsersGroupRemovalType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperEnabledUsersGroupRemovalType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperEnabledUsersGroupRemovalType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperEnabledUsersGroupRemovalType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewAllowDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewAllowDetails.java new file mode 100644 index 000000000..635369fee --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewAllowDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed Paper external sharing setting to anyone. + */ +public class PaperExternalViewAllowDetails { + // struct team_log.PaperExternalViewAllowDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Changed Paper external sharing setting to anyone. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperExternalViewAllowDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperExternalViewAllowDetails other = (PaperExternalViewAllowDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperExternalViewAllowDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperExternalViewAllowDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperExternalViewAllowDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperExternalViewAllowDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewAllowType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewAllowType.java new file mode 100644 index 000000000..8de2d11c2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewAllowType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperExternalViewAllowType { + // struct team_log.PaperExternalViewAllowType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperExternalViewAllowType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperExternalViewAllowType other = (PaperExternalViewAllowType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperExternalViewAllowType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperExternalViewAllowType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperExternalViewAllowType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperExternalViewAllowType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamDetails.java new file mode 100644 index 000000000..e6a7c5025 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed Paper external sharing setting to default team. + */ +public class PaperExternalViewDefaultTeamDetails { + // struct team_log.PaperExternalViewDefaultTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Changed Paper external sharing setting to default team. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperExternalViewDefaultTeamDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperExternalViewDefaultTeamDetails other = (PaperExternalViewDefaultTeamDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperExternalViewDefaultTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperExternalViewDefaultTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperExternalViewDefaultTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperExternalViewDefaultTeamDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamType.java new file mode 100644 index 000000000..297f697e7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewDefaultTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperExternalViewDefaultTeamType { + // struct team_log.PaperExternalViewDefaultTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperExternalViewDefaultTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperExternalViewDefaultTeamType other = (PaperExternalViewDefaultTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperExternalViewDefaultTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperExternalViewDefaultTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperExternalViewDefaultTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperExternalViewDefaultTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewForbidDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewForbidDetails.java new file mode 100644 index 000000000..ba9c57997 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewForbidDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed Paper external sharing setting to team-only. + */ +public class PaperExternalViewForbidDetails { + // struct team_log.PaperExternalViewForbidDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Changed Paper external sharing setting to team-only. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperExternalViewForbidDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperExternalViewForbidDetails other = (PaperExternalViewForbidDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperExternalViewForbidDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperExternalViewForbidDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperExternalViewForbidDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperExternalViewForbidDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewForbidType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewForbidType.java new file mode 100644 index 000000000..1cbaa0241 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperExternalViewForbidType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperExternalViewForbidType { + // struct team_log.PaperExternalViewForbidType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperExternalViewForbidType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperExternalViewForbidType other = (PaperExternalViewForbidType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperExternalViewForbidType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperExternalViewForbidType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperExternalViewForbidType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperExternalViewForbidType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionDetails.java new file mode 100644 index 000000000..33daabeed --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionDetails.java @@ -0,0 +1,224 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Followed/unfollowed Paper folder. + */ +public class PaperFolderChangeSubscriptionDetails { + // struct team_log.PaperFolderChangeSubscriptionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String newSubscriptionLevel; + @Nullable + protected final String previousSubscriptionLevel; + + /** + * Followed/unfollowed Paper folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param newSubscriptionLevel New folder subscription level. Must not be + * {@code null}. + * @param previousSubscriptionLevel Previous folder subscription level. + * Might be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel, @Nullable String previousSubscriptionLevel) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (newSubscriptionLevel == null) { + throw new IllegalArgumentException("Required value for 'newSubscriptionLevel' is null"); + } + this.newSubscriptionLevel = newSubscriptionLevel; + this.previousSubscriptionLevel = previousSubscriptionLevel; + } + + /** + * Followed/unfollowed Paper folder. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param newSubscriptionLevel New folder subscription level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderChangeSubscriptionDetails(@Nonnull String eventUuid, @Nonnull String newSubscriptionLevel) { + this(eventUuid, newSubscriptionLevel, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * New folder subscription level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewSubscriptionLevel() { + return newSubscriptionLevel; + } + + /** + * Previous folder subscription level. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousSubscriptionLevel() { + return previousSubscriptionLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.newSubscriptionLevel, + this.previousSubscriptionLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderChangeSubscriptionDetails other = (PaperFolderChangeSubscriptionDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.newSubscriptionLevel == other.newSubscriptionLevel) || (this.newSubscriptionLevel.equals(other.newSubscriptionLevel))) + && ((this.previousSubscriptionLevel == other.previousSubscriptionLevel) || (this.previousSubscriptionLevel != null && this.previousSubscriptionLevel.equals(other.previousSubscriptionLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderChangeSubscriptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("new_subscription_level"); + StoneSerializers.string().serialize(value.newSubscriptionLevel, g); + if (value.previousSubscriptionLevel != null) { + g.writeFieldName("previous_subscription_level"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousSubscriptionLevel, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderChangeSubscriptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderChangeSubscriptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_newSubscriptionLevel = null; + String f_previousSubscriptionLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("new_subscription_level".equals(field)) { + f_newSubscriptionLevel = StoneSerializers.string().deserialize(p); + } + else if ("previous_subscription_level".equals(field)) { + f_previousSubscriptionLevel = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_newSubscriptionLevel == null) { + throw new JsonParseException(p, "Required field \"new_subscription_level\" missing."); + } + value = new PaperFolderChangeSubscriptionDetails(f_eventUuid, f_newSubscriptionLevel, f_previousSubscriptionLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionType.java new file mode 100644 index 000000000..9e48bd60f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderChangeSubscriptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperFolderChangeSubscriptionType { + // struct team_log.PaperFolderChangeSubscriptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderChangeSubscriptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderChangeSubscriptionType other = (PaperFolderChangeSubscriptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderChangeSubscriptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderChangeSubscriptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderChangeSubscriptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperFolderChangeSubscriptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderDeletedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderDeletedDetails.java new file mode 100644 index 000000000..fa5342a9e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderDeletedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Archived Paper folder. + */ +public class PaperFolderDeletedDetails { + // struct team_log.PaperFolderDeletedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Archived Paper folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderDeletedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderDeletedDetails other = (PaperFolderDeletedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderDeletedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderDeletedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderDeletedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperFolderDeletedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderDeletedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderDeletedType.java new file mode 100644 index 000000000..b6e14b7a3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderDeletedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperFolderDeletedType { + // struct team_log.PaperFolderDeletedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderDeletedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderDeletedType other = (PaperFolderDeletedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderDeletedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderDeletedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderDeletedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperFolderDeletedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderFollowedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderFollowedDetails.java new file mode 100644 index 000000000..4e521a9a1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderFollowedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Followed Paper folder. + */ +public class PaperFolderFollowedDetails { + // struct team_log.PaperFolderFollowedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Followed Paper folder. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderFollowedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderFollowedDetails other = (PaperFolderFollowedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderFollowedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderFollowedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderFollowedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperFolderFollowedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderFollowedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderFollowedType.java new file mode 100644 index 000000000..77dd93637 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderFollowedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperFolderFollowedType { + // struct team_log.PaperFolderFollowedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderFollowedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderFollowedType other = (PaperFolderFollowedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderFollowedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderFollowedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderFollowedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperFolderFollowedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderLogInfo.java new file mode 100644 index 000000000..4365f0343 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderLogInfo.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Paper folder's logged information. + */ +public class PaperFolderLogInfo { + // struct team_log.PaperFolderLogInfo (team_log_generated.stone) + + @Nonnull + protected final String folderId; + @Nonnull + protected final String folderName; + + /** + * Paper folder's logged information. + * + * @param folderId Papers folder Id. Must not be {@code null}. + * @param folderName Paper folder name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderLogInfo(@Nonnull String folderId, @Nonnull String folderName) { + if (folderId == null) { + throw new IllegalArgumentException("Required value for 'folderId' is null"); + } + this.folderId = folderId; + if (folderName == null) { + throw new IllegalArgumentException("Required value for 'folderName' is null"); + } + this.folderName = folderName; + } + + /** + * Papers folder Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFolderId() { + return folderId; + } + + /** + * Paper folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFolderName() { + return folderName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.folderId, + this.folderName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderLogInfo other = (PaperFolderLogInfo) obj; + return ((this.folderId == other.folderId) || (this.folderId.equals(other.folderId))) + && ((this.folderName == other.folderName) || (this.folderName.equals(other.folderName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("folder_id"); + StoneSerializers.string().serialize(value.folderId, g); + g.writeFieldName("folder_name"); + StoneSerializers.string().serialize(value.folderName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_folderId = null; + String f_folderName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("folder_id".equals(field)) { + f_folderId = StoneSerializers.string().deserialize(p); + } + else if ("folder_name".equals(field)) { + f_folderName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_folderId == null) { + throw new JsonParseException(p, "Required field \"folder_id\" missing."); + } + if (f_folderName == null) { + throw new JsonParseException(p, "Required field \"folder_name\" missing."); + } + value = new PaperFolderLogInfo(f_folderId, f_folderName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderTeamInviteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderTeamInviteDetails.java new file mode 100644 index 000000000..53dee6f25 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderTeamInviteDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Shared Paper folder with users and/or groups. + */ +public class PaperFolderTeamInviteDetails { + // struct team_log.PaperFolderTeamInviteDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Shared Paper folder with users and/or groups. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderTeamInviteDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderTeamInviteDetails other = (PaperFolderTeamInviteDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderTeamInviteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderTeamInviteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderTeamInviteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperFolderTeamInviteDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderTeamInviteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderTeamInviteType.java new file mode 100644 index 000000000..7c8f3b30e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperFolderTeamInviteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperFolderTeamInviteType { + // struct team_log.PaperFolderTeamInviteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperFolderTeamInviteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperFolderTeamInviteType other = (PaperFolderTeamInviteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperFolderTeamInviteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperFolderTeamInviteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperFolderTeamInviteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperFolderTeamInviteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperMemberPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperMemberPolicy.java new file mode 100644 index 000000000..91e91741c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperMemberPolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if team members can share Paper documents externally. + */ +public enum PaperMemberPolicy { + // union team_log.PaperMemberPolicy (team_log_generated.stone) + ANYONE_WITH_LINK, + ONLY_TEAM, + TEAM_AND_EXPLICITLY_SHARED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperMemberPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ANYONE_WITH_LINK: { + g.writeString("anyone_with_link"); + break; + } + case ONLY_TEAM: { + g.writeString("only_team"); + break; + } + case TEAM_AND_EXPLICITLY_SHARED: { + g.writeString("team_and_explicitly_shared"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperMemberPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PaperMemberPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("anyone_with_link".equals(tag)) { + value = PaperMemberPolicy.ANYONE_WITH_LINK; + } + else if ("only_team".equals(tag)) { + value = PaperMemberPolicy.ONLY_TEAM; + } + else if ("team_and_explicitly_shared".equals(tag)) { + value = PaperMemberPolicy.TEAM_AND_EXPLICITLY_SHARED; + } + else { + value = PaperMemberPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionDetails.java new file mode 100644 index 000000000..414536df3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionDetails.java @@ -0,0 +1,210 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed permissions for published doc. + */ +public class PaperPublishedLinkChangePermissionDetails { + // struct team_log.PaperPublishedLinkChangePermissionDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String newPermissionLevel; + @Nonnull + protected final String previousPermissionLevel; + + /** + * Changed permissions for published doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param newPermissionLevel New permission level. Must not be {@code + * null}. + * @param previousPermissionLevel Previous permission level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkChangePermissionDetails(@Nonnull String eventUuid, @Nonnull String newPermissionLevel, @Nonnull String previousPermissionLevel) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (newPermissionLevel == null) { + throw new IllegalArgumentException("Required value for 'newPermissionLevel' is null"); + } + this.newPermissionLevel = newPermissionLevel; + if (previousPermissionLevel == null) { + throw new IllegalArgumentException("Required value for 'previousPermissionLevel' is null"); + } + this.previousPermissionLevel = previousPermissionLevel; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * New permission level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewPermissionLevel() { + return newPermissionLevel; + } + + /** + * Previous permission level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousPermissionLevel() { + return previousPermissionLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.newPermissionLevel, + this.previousPermissionLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkChangePermissionDetails other = (PaperPublishedLinkChangePermissionDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.newPermissionLevel == other.newPermissionLevel) || (this.newPermissionLevel.equals(other.newPermissionLevel))) + && ((this.previousPermissionLevel == other.previousPermissionLevel) || (this.previousPermissionLevel.equals(other.previousPermissionLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkChangePermissionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("new_permission_level"); + StoneSerializers.string().serialize(value.newPermissionLevel, g); + g.writeFieldName("previous_permission_level"); + StoneSerializers.string().serialize(value.previousPermissionLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkChangePermissionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkChangePermissionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_newPermissionLevel = null; + String f_previousPermissionLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("new_permission_level".equals(field)) { + f_newPermissionLevel = StoneSerializers.string().deserialize(p); + } + else if ("previous_permission_level".equals(field)) { + f_previousPermissionLevel = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_newPermissionLevel == null) { + throw new JsonParseException(p, "Required field \"new_permission_level\" missing."); + } + if (f_previousPermissionLevel == null) { + throw new JsonParseException(p, "Required field \"previous_permission_level\" missing."); + } + value = new PaperPublishedLinkChangePermissionDetails(f_eventUuid, f_newPermissionLevel, f_previousPermissionLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionType.java new file mode 100644 index 000000000..adc2caee6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkChangePermissionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperPublishedLinkChangePermissionType { + // struct team_log.PaperPublishedLinkChangePermissionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkChangePermissionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkChangePermissionType other = (PaperPublishedLinkChangePermissionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkChangePermissionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkChangePermissionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkChangePermissionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperPublishedLinkChangePermissionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateDetails.java new file mode 100644 index 000000000..1636de10e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Published doc. + */ +public class PaperPublishedLinkCreateDetails { + // struct team_log.PaperPublishedLinkCreateDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Published doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkCreateDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkCreateDetails other = (PaperPublishedLinkCreateDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperPublishedLinkCreateDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateType.java new file mode 100644 index 000000000..251cb2939 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperPublishedLinkCreateType { + // struct team_log.PaperPublishedLinkCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkCreateType other = (PaperPublishedLinkCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperPublishedLinkCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledDetails.java new file mode 100644 index 000000000..3d23be912 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Unpublished doc. + */ +public class PaperPublishedLinkDisabledDetails { + // struct team_log.PaperPublishedLinkDisabledDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Unpublished doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkDisabledDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkDisabledDetails other = (PaperPublishedLinkDisabledDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkDisabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkDisabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkDisabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperPublishedLinkDisabledDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledType.java new file mode 100644 index 000000000..4a9521afa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkDisabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperPublishedLinkDisabledType { + // struct team_log.PaperPublishedLinkDisabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkDisabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkDisabledType other = (PaperPublishedLinkDisabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkDisabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkDisabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkDisabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperPublishedLinkDisabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkViewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkViewDetails.java new file mode 100644 index 000000000..d57b98481 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkViewDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Viewed published doc. + */ +public class PaperPublishedLinkViewDetails { + // struct team_log.PaperPublishedLinkViewDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Viewed published doc. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkViewDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkViewDetails other = (PaperPublishedLinkViewDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkViewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkViewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkViewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new PaperPublishedLinkViewDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkViewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkViewType.java new file mode 100644 index 000000000..c29780835 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PaperPublishedLinkViewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PaperPublishedLinkViewType { + // struct team_log.PaperPublishedLinkViewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PaperPublishedLinkViewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PaperPublishedLinkViewType other = (PaperPublishedLinkViewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperPublishedLinkViewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PaperPublishedLinkViewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PaperPublishedLinkViewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PaperPublishedLinkViewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ParticipantLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ParticipantLogInfo.java new file mode 100644 index 000000000..e95de6165 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ParticipantLogInfo.java @@ -0,0 +1,371 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * A user or group + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class ParticipantLogInfo { + // union team_log.ParticipantLogInfo (team_log_generated.stone) + + /** + * Discriminating tag type for {@link ParticipantLogInfo}. + */ + public enum Tag { + /** + * Group details. + */ + GROUP, // GroupLogInfo + /** + * A user with a Dropbox account. + */ + USER, // UserLogInfo + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final ParticipantLogInfo OTHER = new ParticipantLogInfo().withTag(Tag.OTHER); + + private Tag _tag; + private GroupLogInfo groupValue; + private UserLogInfo userValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ParticipantLogInfo() { + } + + + /** + * A user or group + * + * @param _tag Discriminating tag for this instance. + */ + private ParticipantLogInfo withTag(Tag _tag) { + ParticipantLogInfo result = new ParticipantLogInfo(); + result._tag = _tag; + return result; + } + + /** + * A user or group + * + * @param groupValue Group details. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ParticipantLogInfo withTagAndGroup(Tag _tag, GroupLogInfo groupValue) { + ParticipantLogInfo result = new ParticipantLogInfo(); + result._tag = _tag; + result.groupValue = groupValue; + return result; + } + + /** + * A user or group + * + * @param userValue A user with a Dropbox account. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private ParticipantLogInfo withTagAndUser(Tag _tag, UserLogInfo userValue) { + ParticipantLogInfo result = new ParticipantLogInfo(); + result._tag = _tag; + result.userValue = userValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ParticipantLogInfo}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#GROUP}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#GROUP}, + * {@code false} otherwise. + */ + public boolean isGroup() { + return this._tag == Tag.GROUP; + } + + /** + * Returns an instance of {@code ParticipantLogInfo} that has its tag set to + * {@link Tag#GROUP}. + * + *

Group details.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ParticipantLogInfo} with its tag set to {@link + * Tag#GROUP}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ParticipantLogInfo group(GroupLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ParticipantLogInfo().withTagAndGroup(Tag.GROUP, value); + } + + /** + * Group details. + * + *

This instance must be tagged as {@link Tag#GROUP}.

+ * + * @return The {@link GroupLogInfo} value associated with this instance if + * {@link #isGroup} is {@code true}. + * + * @throws IllegalStateException If {@link #isGroup} is {@code false}. + */ + public GroupLogInfo getGroupValue() { + if (this._tag != Tag.GROUP) { + throw new IllegalStateException("Invalid tag: required Tag.GROUP, but was Tag." + this._tag.name()); + } + return groupValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#USER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#USER}, + * {@code false} otherwise. + */ + public boolean isUser() { + return this._tag == Tag.USER; + } + + /** + * Returns an instance of {@code ParticipantLogInfo} that has its tag set to + * {@link Tag#USER}. + * + *

A user with a Dropbox account.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ParticipantLogInfo} with its tag set to {@link + * Tag#USER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static ParticipantLogInfo user(UserLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new ParticipantLogInfo().withTagAndUser(Tag.USER, value); + } + + /** + * A user with a Dropbox account. + * + *

This instance must be tagged as {@link Tag#USER}.

+ * + * @return The {@link UserLogInfo} value associated with this instance if + * {@link #isUser} is {@code true}. + * + * @throws IllegalStateException If {@link #isUser} is {@code false}. + */ + public UserLogInfo getUserValue() { + if (this._tag != Tag.USER) { + throw new IllegalStateException("Invalid tag: required Tag.USER, but was Tag." + this._tag.name()); + } + return userValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.groupValue, + this.userValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ParticipantLogInfo) { + ParticipantLogInfo other = (ParticipantLogInfo) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case GROUP: + return (this.groupValue == other.groupValue) || (this.groupValue.equals(other.groupValue)); + case USER: + return (this.userValue == other.userValue) || (this.userValue.equals(other.userValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ParticipantLogInfo value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case GROUP: { + g.writeStartObject(); + writeTag("group", g); + GroupLogInfo.Serializer.INSTANCE.serialize(value.groupValue, g, true); + g.writeEndObject(); + break; + } + case USER: { + g.writeStartObject(); + writeTag("user", g); + g.writeFieldName("user"); + UserLogInfo.Serializer.INSTANCE.serialize(value.userValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ParticipantLogInfo deserialize(JsonParser p) throws IOException, JsonParseException { + ParticipantLogInfo value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("group".equals(tag)) { + GroupLogInfo fieldValue = null; + fieldValue = GroupLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = ParticipantLogInfo.group(fieldValue); + } + else if ("user".equals(tag)) { + UserLogInfo fieldValue = null; + expectField("user", p); + fieldValue = UserLogInfo.Serializer.INSTANCE.deserialize(p); + value = ParticipantLogInfo.user(fieldValue); + } + else { + value = ParticipantLogInfo.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PassPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PassPolicy.java new file mode 100644 index 000000000..e7e0746d4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PassPolicy.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PassPolicy { + // union team_log.PassPolicy (team_log_generated.stone) + ALLOW, + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PassPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALLOW: { + g.writeString("allow"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PassPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PassPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("allow".equals(tag)) { + value = PassPolicy.ALLOW; + } + else if ("disabled".equals(tag)) { + value = PassPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = PassPolicy.ENABLED; + } + else { + value = PassPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordChangeDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordChangeDetails.java new file mode 100644 index 000000000..bea6219f8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordChangeDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed password. + */ +public class PasswordChangeDetails { + // struct team_log.PasswordChangeDetails (team_log_generated.stone) + + + /** + * Changed password. + */ + public PasswordChangeDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordChangeDetails other = (PasswordChangeDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordChangeDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordChangeDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordChangeDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new PasswordChangeDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordChangeType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordChangeType.java new file mode 100644 index 000000000..33ed14739 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordChangeType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PasswordChangeType { + // struct team_log.PasswordChangeType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PasswordChangeType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordChangeType other = (PasswordChangeType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordChangeType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordChangeType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordChangeType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PasswordChangeType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetAllDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetAllDetails.java new file mode 100644 index 000000000..dbb77d604 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetAllDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Reset all team member passwords. + */ +public class PasswordResetAllDetails { + // struct team_log.PasswordResetAllDetails (team_log_generated.stone) + + + /** + * Reset all team member passwords. + */ + public PasswordResetAllDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordResetAllDetails other = (PasswordResetAllDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordResetAllDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordResetAllDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordResetAllDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new PasswordResetAllDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetAllType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetAllType.java new file mode 100644 index 000000000..8d3c2423c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetAllType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PasswordResetAllType { + // struct team_log.PasswordResetAllType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PasswordResetAllType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordResetAllType other = (PasswordResetAllType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordResetAllType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordResetAllType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordResetAllType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PasswordResetAllType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetDetails.java new file mode 100644 index 000000000..8eaec1860 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Reset password. + */ +public class PasswordResetDetails { + // struct team_log.PasswordResetDetails (team_log_generated.stone) + + + /** + * Reset password. + */ + public PasswordResetDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordResetDetails other = (PasswordResetDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordResetDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordResetDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordResetDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new PasswordResetDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetType.java new file mode 100644 index 000000000..6b8b411ac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordResetType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PasswordResetType { + // struct team_log.PasswordResetType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PasswordResetType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordResetType other = (PasswordResetType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordResetType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordResetType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordResetType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PasswordResetType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyDetails.java new file mode 100644 index 000000000..acea4a90c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.PasswordStrengthPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed team password strength requirements. + */ +public class PasswordStrengthRequirementsChangePolicyDetails { + // struct team_log.PasswordStrengthRequirementsChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final PasswordStrengthPolicy previousValue; + @Nonnull + protected final PasswordStrengthPolicy newValue; + + /** + * Changed team password strength requirements. + * + * @param previousValue Old password strength policy. Must not be {@code + * null}. + * @param newValue New password strength policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PasswordStrengthRequirementsChangePolicyDetails(@Nonnull PasswordStrengthPolicy previousValue, @Nonnull PasswordStrengthPolicy newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Old password strength policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PasswordStrengthPolicy getPreviousValue() { + return previousValue; + } + + /** + * New password strength policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PasswordStrengthPolicy getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordStrengthRequirementsChangePolicyDetails other = (PasswordStrengthRequirementsChangePolicyDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordStrengthRequirementsChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + PasswordStrengthPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + PasswordStrengthPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordStrengthRequirementsChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordStrengthRequirementsChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PasswordStrengthPolicy f_previousValue = null; + PasswordStrengthPolicy f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = PasswordStrengthPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = PasswordStrengthPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new PasswordStrengthRequirementsChangePolicyDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyType.java new file mode 100644 index 000000000..1689c1133 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PasswordStrengthRequirementsChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PasswordStrengthRequirementsChangePolicyType { + // struct team_log.PasswordStrengthRequirementsChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PasswordStrengthRequirementsChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PasswordStrengthRequirementsChangePolicyType other = (PasswordStrengthRequirementsChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordStrengthRequirementsChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PasswordStrengthRequirementsChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PasswordStrengthRequirementsChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PasswordStrengthRequirementsChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PathLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PathLogInfo.java new file mode 100644 index 000000000..3a688f25b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PathLogInfo.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Path's details. + */ +public class PathLogInfo { + // struct team_log.PathLogInfo (team_log_generated.stone) + + @Nullable + protected final String contextual; + @Nonnull + protected final NamespaceRelativePathLogInfo namespaceRelative; + + /** + * Path's details. + * + * @param namespaceRelative Path relative to the namespace containing the + * content. Must not be {@code null}. + * @param contextual Fully qualified path relative to event's context. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PathLogInfo(@Nonnull NamespaceRelativePathLogInfo namespaceRelative, @Nullable String contextual) { + this.contextual = contextual; + if (namespaceRelative == null) { + throw new IllegalArgumentException("Required value for 'namespaceRelative' is null"); + } + this.namespaceRelative = namespaceRelative; + } + + /** + * Path's details. + * + *

The default values for unset fields will be used.

+ * + * @param namespaceRelative Path relative to the namespace containing the + * content. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PathLogInfo(@Nonnull NamespaceRelativePathLogInfo namespaceRelative) { + this(namespaceRelative, null); + } + + /** + * Path relative to the namespace containing the content. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public NamespaceRelativePathLogInfo getNamespaceRelative() { + return namespaceRelative; + } + + /** + * Fully qualified path relative to event's context. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getContextual() { + return contextual; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.contextual, + this.namespaceRelative + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PathLogInfo other = (PathLogInfo) obj; + return ((this.namespaceRelative == other.namespaceRelative) || (this.namespaceRelative.equals(other.namespaceRelative))) + && ((this.contextual == other.contextual) || (this.contextual != null && this.contextual.equals(other.contextual))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PathLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("namespace_relative"); + NamespaceRelativePathLogInfo.Serializer.INSTANCE.serialize(value.namespaceRelative, g); + if (value.contextual != null) { + g.writeFieldName("contextual"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.contextual, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PathLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PathLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + NamespaceRelativePathLogInfo f_namespaceRelative = null; + String f_contextual = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("namespace_relative".equals(field)) { + f_namespaceRelative = NamespaceRelativePathLogInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("contextual".equals(field)) { + f_contextual = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_namespaceRelative == null) { + throw new JsonParseException(p, "Required field \"namespace_relative\" missing."); + } + value = new PathLogInfo(f_namespaceRelative, f_contextual); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedDetails.java new file mode 100644 index 000000000..8ab520167 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added pending secondary email. + */ +public class PendingSecondaryEmailAddedDetails { + // struct team_log.PendingSecondaryEmailAddedDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryEmail; + + /** + * Added pending secondary email. + * + * @param secondaryEmail New pending secondary email. Must have length of + * at most 255 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PendingSecondaryEmailAddedDetails(@Nonnull String secondaryEmail) { + if (secondaryEmail == null) { + throw new IllegalArgumentException("Required value for 'secondaryEmail' is null"); + } + if (secondaryEmail.length() > 255) { + throw new IllegalArgumentException("String 'secondaryEmail' is longer than 255"); + } + this.secondaryEmail = secondaryEmail; + } + + /** + * New pending secondary email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryEmail() { + return secondaryEmail; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryEmail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PendingSecondaryEmailAddedDetails other = (PendingSecondaryEmailAddedDetails) obj; + return (this.secondaryEmail == other.secondaryEmail) || (this.secondaryEmail.equals(other.secondaryEmail)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PendingSecondaryEmailAddedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_email"); + StoneSerializers.string().serialize(value.secondaryEmail, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PendingSecondaryEmailAddedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PendingSecondaryEmailAddedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryEmail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_email".equals(field)) { + f_secondaryEmail = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryEmail == null) { + throw new JsonParseException(p, "Required field \"secondary_email\" missing."); + } + value = new PendingSecondaryEmailAddedDetails(f_secondaryEmail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedType.java new file mode 100644 index 000000000..dd5d4c5c7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PendingSecondaryEmailAddedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PendingSecondaryEmailAddedType { + // struct team_log.PendingSecondaryEmailAddedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PendingSecondaryEmailAddedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PendingSecondaryEmailAddedType other = (PendingSecondaryEmailAddedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PendingSecondaryEmailAddedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PendingSecondaryEmailAddedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PendingSecondaryEmailAddedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PendingSecondaryEmailAddedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyDetails.java new file mode 100644 index 000000000..3445f715e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled ability of team members to permanently delete content. + */ +public class PermanentDeleteChangePolicyDetails { + // struct team_log.PermanentDeleteChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ContentPermanentDeletePolicy newValue; + @Nullable + protected final ContentPermanentDeletePolicy previousValue; + + /** + * Enabled/disabled ability of team members to permanently delete content. + * + * @param newValue New permanent delete content policy. Must not be {@code + * null}. + * @param previousValue Previous permanent delete content policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PermanentDeleteChangePolicyDetails(@Nonnull ContentPermanentDeletePolicy newValue, @Nullable ContentPermanentDeletePolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled ability of team members to permanently delete content. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New permanent delete content policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PermanentDeleteChangePolicyDetails(@Nonnull ContentPermanentDeletePolicy newValue) { + this(newValue, null); + } + + /** + * New permanent delete content policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ContentPermanentDeletePolicy getNewValue() { + return newValue; + } + + /** + * Previous permanent delete content policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ContentPermanentDeletePolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PermanentDeleteChangePolicyDetails other = (PermanentDeleteChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PermanentDeleteChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ContentPermanentDeletePolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(ContentPermanentDeletePolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PermanentDeleteChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PermanentDeleteChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ContentPermanentDeletePolicy f_newValue = null; + ContentPermanentDeletePolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ContentPermanentDeletePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(ContentPermanentDeletePolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new PermanentDeleteChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyType.java new file mode 100644 index 000000000..aa3b63538 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PermanentDeleteChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class PermanentDeleteChangePolicyType { + // struct team_log.PermanentDeleteChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PermanentDeleteChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PermanentDeleteChangePolicyType other = (PermanentDeleteChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PermanentDeleteChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PermanentDeleteChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PermanentDeleteChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new PermanentDeleteChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PlacementRestriction.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PlacementRestriction.java new file mode 100644 index 000000000..f3c5dc4d1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PlacementRestriction.java @@ -0,0 +1,121 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PlacementRestriction { + // union team_log.PlacementRestriction (team_log_generated.stone) + AUSTRALIA_ONLY, + EUROPE_ONLY, + JAPAN_ONLY, + NONE, + UK_ONLY, + US_S3_ONLY, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PlacementRestriction value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case AUSTRALIA_ONLY: { + g.writeString("australia_only"); + break; + } + case EUROPE_ONLY: { + g.writeString("europe_only"); + break; + } + case JAPAN_ONLY: { + g.writeString("japan_only"); + break; + } + case NONE: { + g.writeString("none"); + break; + } + case UK_ONLY: { + g.writeString("uk_only"); + break; + } + case US_S3_ONLY: { + g.writeString("us_s3_only"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PlacementRestriction deserialize(JsonParser p) throws IOException, JsonParseException { + PlacementRestriction value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("australia_only".equals(tag)) { + value = PlacementRestriction.AUSTRALIA_ONLY; + } + else if ("europe_only".equals(tag)) { + value = PlacementRestriction.EUROPE_ONLY; + } + else if ("japan_only".equals(tag)) { + value = PlacementRestriction.JAPAN_ONLY; + } + else if ("none".equals(tag)) { + value = PlacementRestriction.NONE; + } + else if ("uk_only".equals(tag)) { + value = PlacementRestriction.UK_ONLY; + } + else if ("us_s3_only".equals(tag)) { + value = PlacementRestriction.US_S3_ONLY; + } + else { + value = PlacementRestriction.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PolicyType.java new file mode 100644 index 000000000..c28e106e6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PolicyType.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PolicyType { + // union team_log.PolicyType (team_log_generated.stone) + DISPOSITION, + RETENTION, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PolicyType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISPOSITION: { + g.writeString("disposition"); + break; + } + case RETENTION: { + g.writeString("retention"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PolicyType deserialize(JsonParser p) throws IOException, JsonParseException { + PolicyType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disposition".equals(tag)) { + value = PolicyType.DISPOSITION; + } + else if ("retention".equals(tag)) { + value = PolicyType.RETENTION; + } + else { + value = PolicyType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestAcceptedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestAcceptedDetails.java new file mode 100644 index 000000000..8334f7460 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestAcceptedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request acceptance details shown to the primary team + */ +public class PrimaryTeamRequestAcceptedDetails { + // struct team_log.PrimaryTeamRequestAcceptedDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Team merge request acceptance details shown to the primary team + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PrimaryTeamRequestAcceptedDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PrimaryTeamRequestAcceptedDetails other = (PrimaryTeamRequestAcceptedDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PrimaryTeamRequestAcceptedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PrimaryTeamRequestAcceptedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PrimaryTeamRequestAcceptedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new PrimaryTeamRequestAcceptedDetails(f_secondaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestCanceledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestCanceledDetails.java new file mode 100644 index 000000000..acbc4c1f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestCanceledDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request cancellation details shown to the primary team + */ +public class PrimaryTeamRequestCanceledDetails { + // struct team_log.PrimaryTeamRequestCanceledDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Team merge request cancellation details shown to the primary team + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PrimaryTeamRequestCanceledDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PrimaryTeamRequestCanceledDetails other = (PrimaryTeamRequestCanceledDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PrimaryTeamRequestCanceledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PrimaryTeamRequestCanceledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PrimaryTeamRequestCanceledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new PrimaryTeamRequestCanceledDetails(f_secondaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestExpiredDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestExpiredDetails.java new file mode 100644 index 000000000..953033137 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestExpiredDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request expiration details shown to the primary team + */ +public class PrimaryTeamRequestExpiredDetails { + // struct team_log.PrimaryTeamRequestExpiredDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Team merge request expiration details shown to the primary team + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PrimaryTeamRequestExpiredDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PrimaryTeamRequestExpiredDetails other = (PrimaryTeamRequestExpiredDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PrimaryTeamRequestExpiredDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PrimaryTeamRequestExpiredDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PrimaryTeamRequestExpiredDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new PrimaryTeamRequestExpiredDetails(f_secondaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestReminderDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestReminderDetails.java new file mode 100644 index 000000000..2dcda9764 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/PrimaryTeamRequestReminderDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request reminder details shown to the primary team + */ +public class PrimaryTeamRequestReminderDetails { + // struct team_log.PrimaryTeamRequestReminderDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentTo; + + /** + * Team merge request reminder details shown to the primary team + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentTo The name of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public PrimaryTeamRequestReminderDetails(@Nonnull String secondaryTeam, @Nonnull String sentTo) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + PrimaryTeamRequestReminderDetails other = (PrimaryTeamRequestReminderDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PrimaryTeamRequestReminderDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public PrimaryTeamRequestReminderDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + PrimaryTeamRequestReminderDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new PrimaryTeamRequestReminderDetails(f_secondaryTeam, f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails.java new file mode 100644 index 000000000..dfd112db0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created ransomware report. + */ +public class RansomwareAlertCreateReportDetails { + // struct team_log.RansomwareAlertCreateReportDetails (team_log_generated.stone) + + + /** + * Created ransomware report. + */ + public RansomwareAlertCreateReportDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareAlertCreateReportDetails other = (RansomwareAlertCreateReportDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareAlertCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareAlertCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareAlertCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new RansomwareAlertCreateReportDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails.java new file mode 100644 index 000000000..9efd60e38 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't generate ransomware report. + */ +public class RansomwareAlertCreateReportFailedDetails { + // struct team_log.RansomwareAlertCreateReportFailedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't generate ransomware report. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RansomwareAlertCreateReportFailedDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareAlertCreateReportFailedDetails other = (RansomwareAlertCreateReportFailedDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareAlertCreateReportFailedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareAlertCreateReportFailedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareAlertCreateReportFailedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new RansomwareAlertCreateReportFailedDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType.java new file mode 100644 index 000000000..08f268258 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RansomwareAlertCreateReportFailedType { + // struct team_log.RansomwareAlertCreateReportFailedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RansomwareAlertCreateReportFailedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareAlertCreateReportFailedType other = (RansomwareAlertCreateReportFailedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareAlertCreateReportFailedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareAlertCreateReportFailedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareAlertCreateReportFailedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new RansomwareAlertCreateReportFailedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType.java new file mode 100644 index 000000000..bf4685294 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RansomwareAlertCreateReportType { + // struct team_log.RansomwareAlertCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RansomwareAlertCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareAlertCreateReportType other = (RansomwareAlertCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareAlertCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareAlertCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareAlertCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new RansomwareAlertCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedDetails.java new file mode 100644 index 000000000..b6982e88d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedDetails.java @@ -0,0 +1,199 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Completed ransomware restore process. + */ +public class RansomwareRestoreProcessCompletedDetails { + // struct team_log.RansomwareRestoreProcessCompletedDetails (team_log_generated.stone) + + @Nonnull + protected final String status; + protected final long restoredFilesCount; + protected final long restoredFilesFailedCount; + + /** + * Completed ransomware restore process. + * + * @param status The status of the restore process. Must not be {@code + * null}. + * @param restoredFilesCount Restored files count. + * @param restoredFilesFailedCount Restored files failed count. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RansomwareRestoreProcessCompletedDetails(@Nonnull String status, long restoredFilesCount, long restoredFilesFailedCount) { + if (status == null) { + throw new IllegalArgumentException("Required value for 'status' is null"); + } + this.status = status; + this.restoredFilesCount = restoredFilesCount; + this.restoredFilesFailedCount = restoredFilesFailedCount; + } + + /** + * The status of the restore process. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getStatus() { + return status; + } + + /** + * Restored files count. + * + * @return value for this field. + */ + public long getRestoredFilesCount() { + return restoredFilesCount; + } + + /** + * Restored files failed count. + * + * @return value for this field. + */ + public long getRestoredFilesFailedCount() { + return restoredFilesFailedCount; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.status, + this.restoredFilesCount, + this.restoredFilesFailedCount + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareRestoreProcessCompletedDetails other = (RansomwareRestoreProcessCompletedDetails) obj; + return ((this.status == other.status) || (this.status.equals(other.status))) + && (this.restoredFilesCount == other.restoredFilesCount) + && (this.restoredFilesFailedCount == other.restoredFilesFailedCount) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareRestoreProcessCompletedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("status"); + StoneSerializers.string().serialize(value.status, g); + g.writeFieldName("restored_files_count"); + StoneSerializers.int64().serialize(value.restoredFilesCount, g); + g.writeFieldName("restored_files_failed_count"); + StoneSerializers.int64().serialize(value.restoredFilesFailedCount, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareRestoreProcessCompletedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareRestoreProcessCompletedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_status = null; + Long f_restoredFilesCount = null; + Long f_restoredFilesFailedCount = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("status".equals(field)) { + f_status = StoneSerializers.string().deserialize(p); + } + else if ("restored_files_count".equals(field)) { + f_restoredFilesCount = StoneSerializers.int64().deserialize(p); + } + else if ("restored_files_failed_count".equals(field)) { + f_restoredFilesFailedCount = StoneSerializers.int64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_status == null) { + throw new JsonParseException(p, "Required field \"status\" missing."); + } + if (f_restoredFilesCount == null) { + throw new JsonParseException(p, "Required field \"restored_files_count\" missing."); + } + if (f_restoredFilesFailedCount == null) { + throw new JsonParseException(p, "Required field \"restored_files_failed_count\" missing."); + } + value = new RansomwareRestoreProcessCompletedDetails(f_status, f_restoredFilesCount, f_restoredFilesFailedCount); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedType.java new file mode 100644 index 000000000..b31528d8a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessCompletedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RansomwareRestoreProcessCompletedType { + // struct team_log.RansomwareRestoreProcessCompletedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RansomwareRestoreProcessCompletedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareRestoreProcessCompletedType other = (RansomwareRestoreProcessCompletedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareRestoreProcessCompletedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareRestoreProcessCompletedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareRestoreProcessCompletedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new RansomwareRestoreProcessCompletedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedDetails.java new file mode 100644 index 000000000..97b053615 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Started ransomware restore process. + */ +public class RansomwareRestoreProcessStartedDetails { + // struct team_log.RansomwareRestoreProcessStartedDetails (team_log_generated.stone) + + @Nonnull + protected final String extension; + + /** + * Started ransomware restore process. + * + * @param extension Ransomware filename extension. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RansomwareRestoreProcessStartedDetails(@Nonnull String extension) { + if (extension == null) { + throw new IllegalArgumentException("Required value for 'extension' is null"); + } + this.extension = extension; + } + + /** + * Ransomware filename extension. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getExtension() { + return extension; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.extension + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareRestoreProcessStartedDetails other = (RansomwareRestoreProcessStartedDetails) obj; + return (this.extension == other.extension) || (this.extension.equals(other.extension)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareRestoreProcessStartedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("extension"); + StoneSerializers.string().serialize(value.extension, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareRestoreProcessStartedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareRestoreProcessStartedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_extension = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("extension".equals(field)) { + f_extension = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_extension == null) { + throw new JsonParseException(p, "Required field \"extension\" missing."); + } + value = new RansomwareRestoreProcessStartedDetails(f_extension); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedType.java new file mode 100644 index 000000000..94a003f74 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RansomwareRestoreProcessStartedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RansomwareRestoreProcessStartedType { + // struct team_log.RansomwareRestoreProcessStartedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RansomwareRestoreProcessStartedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RansomwareRestoreProcessStartedType other = (RansomwareRestoreProcessStartedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RansomwareRestoreProcessStartedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RansomwareRestoreProcessStartedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RansomwareRestoreProcessStartedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new RansomwareRestoreProcessStartedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RecipientsConfiguration.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RecipientsConfiguration.java new file mode 100644 index 000000000..0af48af4e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RecipientsConfiguration.java @@ -0,0 +1,325 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Recipients Configuration + */ +public class RecipientsConfiguration { + // struct team_log.RecipientsConfiguration (team_log_generated.stone) + + @Nullable + protected final AlertRecipientsSettingType recipientSettingType; + @Nullable + protected final List emails; + @Nullable + protected final List groups; + + /** + * Recipients Configuration + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param recipientSettingType Recipients setting type. + * @param emails A list of user emails to notify. Must not contain a {@code + * null} item. + * @param groups A list of groups to notify. Must not contain a {@code + * null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RecipientsConfiguration(@Nullable AlertRecipientsSettingType recipientSettingType, @Nullable List emails, @Nullable List groups) { + this.recipientSettingType = recipientSettingType; + if (emails != null) { + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'emails' is longer than 255"); + } + } + } + this.emails = emails; + if (groups != null) { + for (String x : groups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'groups' is null"); + } + } + } + this.groups = groups; + } + + /** + * Recipients Configuration + * + *

The default values for unset fields will be used.

+ */ + public RecipientsConfiguration() { + this(null, null, null); + } + + /** + * Recipients setting type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AlertRecipientsSettingType getRecipientSettingType() { + return recipientSettingType; + } + + /** + * A list of user emails to notify. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getEmails() { + return emails; + } + + /** + * A list of groups to notify. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getGroups() { + return groups; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link RecipientsConfiguration}. + */ + public static class Builder { + + protected AlertRecipientsSettingType recipientSettingType; + protected List emails; + protected List groups; + + protected Builder() { + this.recipientSettingType = null; + this.emails = null; + this.groups = null; + } + + /** + * Set value for optional field. + * + * @param recipientSettingType Recipients setting type. + * + * @return this builder + */ + public Builder withRecipientSettingType(AlertRecipientsSettingType recipientSettingType) { + this.recipientSettingType = recipientSettingType; + return this; + } + + /** + * Set value for optional field. + * + * @param emails A list of user emails to notify. Must not contain a + * {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withEmails(List emails) { + if (emails != null) { + for (String x : emails) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'emails' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'emails' is longer than 255"); + } + } + } + this.emails = emails; + return this; + } + + /** + * Set value for optional field. + * + * @param groups A list of groups to notify. Must not contain a {@code + * null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withGroups(List groups) { + if (groups != null) { + for (String x : groups) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'groups' is null"); + } + } + } + this.groups = groups; + return this; + } + + /** + * Builds an instance of {@link RecipientsConfiguration} configured with + * this builder's values + * + * @return new instance of {@link RecipientsConfiguration} + */ + public RecipientsConfiguration build() { + return new RecipientsConfiguration(recipientSettingType, emails, groups); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.recipientSettingType, + this.emails, + this.groups + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RecipientsConfiguration other = (RecipientsConfiguration) obj; + return ((this.recipientSettingType == other.recipientSettingType) || (this.recipientSettingType != null && this.recipientSettingType.equals(other.recipientSettingType))) + && ((this.emails == other.emails) || (this.emails != null && this.emails.equals(other.emails))) + && ((this.groups == other.groups) || (this.groups != null && this.groups.equals(other.groups))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RecipientsConfiguration value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.recipientSettingType != null) { + g.writeFieldName("recipient_setting_type"); + StoneSerializers.nullable(AlertRecipientsSettingType.Serializer.INSTANCE).serialize(value.recipientSettingType, g); + } + if (value.emails != null) { + g.writeFieldName("emails"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.emails, g); + } + if (value.groups != null) { + g.writeFieldName("groups"); + StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).serialize(value.groups, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RecipientsConfiguration deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RecipientsConfiguration value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AlertRecipientsSettingType f_recipientSettingType = null; + List f_emails = null; + List f_groups = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("recipient_setting_type".equals(field)) { + f_recipientSettingType = StoneSerializers.nullable(AlertRecipientsSettingType.Serializer.INSTANCE).deserialize(p); + } + else if ("emails".equals(field)) { + f_emails = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else if ("groups".equals(field)) { + f_groups = StoneSerializers.nullable(StoneSerializers.list(StoneSerializers.string())).deserialize(p); + } + else { + skipValue(p); + } + } + value = new RecipientsConfiguration(f_recipientSettingType, f_emails, f_groups); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RelocateAssetReferencesLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RelocateAssetReferencesLogInfo.java new file mode 100644 index 000000000..66a2c0d31 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RelocateAssetReferencesLogInfo.java @@ -0,0 +1,167 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Provides the indices of the source asset and the destination asset for a + * relocate action. + */ +public class RelocateAssetReferencesLogInfo { + // struct team_log.RelocateAssetReferencesLogInfo (team_log_generated.stone) + + protected final long srcAssetIndex; + protected final long destAssetIndex; + + /** + * Provides the indices of the source asset and the destination asset for a + * relocate action. + * + * @param srcAssetIndex Source asset position in the Assets list. + * @param destAssetIndex Destination asset position in the Assets list. + */ + public RelocateAssetReferencesLogInfo(long srcAssetIndex, long destAssetIndex) { + this.srcAssetIndex = srcAssetIndex; + this.destAssetIndex = destAssetIndex; + } + + /** + * Source asset position in the Assets list. + * + * @return value for this field. + */ + public long getSrcAssetIndex() { + return srcAssetIndex; + } + + /** + * Destination asset position in the Assets list. + * + * @return value for this field. + */ + public long getDestAssetIndex() { + return destAssetIndex; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.srcAssetIndex, + this.destAssetIndex + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RelocateAssetReferencesLogInfo other = (RelocateAssetReferencesLogInfo) obj; + return (this.srcAssetIndex == other.srcAssetIndex) + && (this.destAssetIndex == other.destAssetIndex) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RelocateAssetReferencesLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("src_asset_index"); + StoneSerializers.uInt64().serialize(value.srcAssetIndex, g); + g.writeFieldName("dest_asset_index"); + StoneSerializers.uInt64().serialize(value.destAssetIndex, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RelocateAssetReferencesLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RelocateAssetReferencesLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_srcAssetIndex = null; + Long f_destAssetIndex = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("src_asset_index".equals(field)) { + f_srcAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("dest_asset_index".equals(field)) { + f_destAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_srcAssetIndex == null) { + throw new JsonParseException(p, "Required field \"src_asset_index\" missing."); + } + if (f_destAssetIndex == null) { + throw new JsonParseException(p, "Required field \"dest_asset_index\" missing."); + } + value = new RelocateAssetReferencesLogInfo(f_srcAssetIndex, f_destAssetIndex); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileDeleteDetails.java new file mode 100644 index 000000000..b904a4d77 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileDeleteDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Deleted files in Replay. + */ +public class ReplayFileDeleteDetails { + // struct team_log.ReplayFileDeleteDetails (team_log_generated.stone) + + + /** + * Deleted files in Replay. + */ + public ReplayFileDeleteDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayFileDeleteDetails other = (ReplayFileDeleteDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayFileDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayFileDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayFileDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ReplayFileDeleteDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileDeleteType.java new file mode 100644 index 000000000..237d9b213 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ReplayFileDeleteType { + // struct team_log.ReplayFileDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ReplayFileDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayFileDeleteType other = (ReplayFileDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayFileDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayFileDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayFileDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ReplayFileDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedDetails.java new file mode 100644 index 000000000..2d130546a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created shared link in Replay. + */ +public class ReplayFileSharedLinkCreatedDetails { + // struct team_log.ReplayFileSharedLinkCreatedDetails (team_log_generated.stone) + + + /** + * Created shared link in Replay. + */ + public ReplayFileSharedLinkCreatedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayFileSharedLinkCreatedDetails other = (ReplayFileSharedLinkCreatedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayFileSharedLinkCreatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayFileSharedLinkCreatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayFileSharedLinkCreatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ReplayFileSharedLinkCreatedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedType.java new file mode 100644 index 000000000..22deca6a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkCreatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ReplayFileSharedLinkCreatedType { + // struct team_log.ReplayFileSharedLinkCreatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ReplayFileSharedLinkCreatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayFileSharedLinkCreatedType other = (ReplayFileSharedLinkCreatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayFileSharedLinkCreatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayFileSharedLinkCreatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayFileSharedLinkCreatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ReplayFileSharedLinkCreatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedDetails.java new file mode 100644 index 000000000..c9ed02551 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Modified shared link in Replay. + */ +public class ReplayFileSharedLinkModifiedDetails { + // struct team_log.ReplayFileSharedLinkModifiedDetails (team_log_generated.stone) + + + /** + * Modified shared link in Replay. + */ + public ReplayFileSharedLinkModifiedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayFileSharedLinkModifiedDetails other = (ReplayFileSharedLinkModifiedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayFileSharedLinkModifiedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayFileSharedLinkModifiedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayFileSharedLinkModifiedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ReplayFileSharedLinkModifiedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedType.java new file mode 100644 index 000000000..fed1f16b5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayFileSharedLinkModifiedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ReplayFileSharedLinkModifiedType { + // struct team_log.ReplayFileSharedLinkModifiedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ReplayFileSharedLinkModifiedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayFileSharedLinkModifiedType other = (ReplayFileSharedLinkModifiedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayFileSharedLinkModifiedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayFileSharedLinkModifiedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayFileSharedLinkModifiedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ReplayFileSharedLinkModifiedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamAddDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamAddDetails.java new file mode 100644 index 000000000..e49922605 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamAddDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added member to Replay Project. + */ +public class ReplayProjectTeamAddDetails { + // struct team_log.ReplayProjectTeamAddDetails (team_log_generated.stone) + + + /** + * Added member to Replay Project. + */ + public ReplayProjectTeamAddDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayProjectTeamAddDetails other = (ReplayProjectTeamAddDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayProjectTeamAddDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayProjectTeamAddDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayProjectTeamAddDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ReplayProjectTeamAddDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamAddType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamAddType.java new file mode 100644 index 000000000..d45c35f72 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamAddType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ReplayProjectTeamAddType { + // struct team_log.ReplayProjectTeamAddType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ReplayProjectTeamAddType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayProjectTeamAddType other = (ReplayProjectTeamAddType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayProjectTeamAddType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayProjectTeamAddType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayProjectTeamAddType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ReplayProjectTeamAddType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteDetails.java new file mode 100644 index 000000000..94f0a2e7f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed member from Replay Project. + */ +public class ReplayProjectTeamDeleteDetails { + // struct team_log.ReplayProjectTeamDeleteDetails (team_log_generated.stone) + + + /** + * Removed member from Replay Project. + */ + public ReplayProjectTeamDeleteDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayProjectTeamDeleteDetails other = (ReplayProjectTeamDeleteDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayProjectTeamDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayProjectTeamDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayProjectTeamDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ReplayProjectTeamDeleteDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteType.java new file mode 100644 index 000000000..7b52f4bb3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ReplayProjectTeamDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ReplayProjectTeamDeleteType { + // struct team_log.ReplayProjectTeamDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ReplayProjectTeamDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ReplayProjectTeamDeleteType other = (ReplayProjectTeamDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ReplayProjectTeamDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ReplayProjectTeamDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ReplayProjectTeamDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ReplayProjectTeamDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerLogInfo.java new file mode 100644 index 000000000..1069ba617 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerLogInfo.java @@ -0,0 +1,184 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Reseller information. + */ +public class ResellerLogInfo { + // struct team_log.ResellerLogInfo (team_log_generated.stone) + + @Nonnull + protected final String resellerName; + @Nonnull + protected final String resellerEmail; + + /** + * Reseller information. + * + * @param resellerName Reseller name. Must not be {@code null}. + * @param resellerEmail Reseller email. Must have length of at most 255 and + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResellerLogInfo(@Nonnull String resellerName, @Nonnull String resellerEmail) { + if (resellerName == null) { + throw new IllegalArgumentException("Required value for 'resellerName' is null"); + } + this.resellerName = resellerName; + if (resellerEmail == null) { + throw new IllegalArgumentException("Required value for 'resellerEmail' is null"); + } + if (resellerEmail.length() > 255) { + throw new IllegalArgumentException("String 'resellerEmail' is longer than 255"); + } + this.resellerEmail = resellerEmail; + } + + /** + * Reseller name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getResellerName() { + return resellerName; + } + + /** + * Reseller email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getResellerEmail() { + return resellerEmail; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.resellerName, + this.resellerEmail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResellerLogInfo other = (ResellerLogInfo) obj; + return ((this.resellerName == other.resellerName) || (this.resellerName.equals(other.resellerName))) + && ((this.resellerEmail == other.resellerEmail) || (this.resellerEmail.equals(other.resellerEmail))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("reseller_name"); + StoneSerializers.string().serialize(value.resellerName, g); + g.writeFieldName("reseller_email"); + StoneSerializers.string().serialize(value.resellerEmail, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResellerLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResellerLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_resellerName = null; + String f_resellerEmail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("reseller_name".equals(field)) { + f_resellerName = StoneSerializers.string().deserialize(p); + } + else if ("reseller_email".equals(field)) { + f_resellerEmail = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_resellerName == null) { + throw new JsonParseException(p, "Required field \"reseller_name\" missing."); + } + if (f_resellerEmail == null) { + throw new JsonParseException(p, "Required field \"reseller_email\" missing."); + } + value = new ResellerLogInfo(f_resellerName, f_resellerEmail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerRole.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerRole.java new file mode 100644 index 000000000..cf5d103ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerRole.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ResellerRole { + // union team_log.ResellerRole (team_log_generated.stone) + NOT_RESELLER, + RESELLER_ADMIN, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerRole value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case NOT_RESELLER: { + g.writeString("not_reseller"); + break; + } + case RESELLER_ADMIN: { + g.writeString("reseller_admin"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ResellerRole deserialize(JsonParser p) throws IOException, JsonParseException { + ResellerRole value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("not_reseller".equals(tag)) { + value = ResellerRole.NOT_RESELLER; + } + else if ("reseller_admin".equals(tag)) { + value = ResellerRole.RESELLER_ADMIN; + } + else { + value = ResellerRole.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyDetails.java new file mode 100644 index 000000000..1f478ff55 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enabled/disabled reseller support. + */ +public class ResellerSupportChangePolicyDetails { + // struct team_log.ResellerSupportChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ResellerSupportPolicy newValue; + @Nonnull + protected final ResellerSupportPolicy previousValue; + + /** + * Enabled/disabled reseller support. + * + * @param newValue New Reseller support policy. Must not be {@code null}. + * @param previousValue Previous Reseller support policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResellerSupportChangePolicyDetails(@Nonnull ResellerSupportPolicy newValue, @Nonnull ResellerSupportPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Reseller support policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ResellerSupportPolicy getNewValue() { + return newValue; + } + + /** + * Previous Reseller support policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ResellerSupportPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResellerSupportChangePolicyDetails other = (ResellerSupportChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerSupportChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ResellerSupportPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + ResellerSupportPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResellerSupportChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResellerSupportChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ResellerSupportPolicy f_newValue = null; + ResellerSupportPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ResellerSupportPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ResellerSupportPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new ResellerSupportChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyType.java new file mode 100644 index 000000000..6a558929a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ResellerSupportChangePolicyType { + // struct team_log.ResellerSupportChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResellerSupportChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResellerSupportChangePolicyType other = (ResellerSupportChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerSupportChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResellerSupportChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResellerSupportChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ResellerSupportChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportPolicy.java new file mode 100644 index 000000000..17bef3597 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportPolicy.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if reseller can access the admin console as + * administrator + */ +public enum ResellerSupportPolicy { + // union team_log.ResellerSupportPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerSupportPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ResellerSupportPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ResellerSupportPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = ResellerSupportPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ResellerSupportPolicy.ENABLED; + } + else { + value = ResellerSupportPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionEndDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionEndDetails.java new file mode 100644 index 000000000..0f5738b37 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionEndDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Ended reseller support session. + */ +public class ResellerSupportSessionEndDetails { + // struct team_log.ResellerSupportSessionEndDetails (team_log_generated.stone) + + + /** + * Ended reseller support session. + */ + public ResellerSupportSessionEndDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResellerSupportSessionEndDetails other = (ResellerSupportSessionEndDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerSupportSessionEndDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResellerSupportSessionEndDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResellerSupportSessionEndDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ResellerSupportSessionEndDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionEndType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionEndType.java new file mode 100644 index 000000000..e2c6b9386 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionEndType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ResellerSupportSessionEndType { + // struct team_log.ResellerSupportSessionEndType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResellerSupportSessionEndType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResellerSupportSessionEndType other = (ResellerSupportSessionEndType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerSupportSessionEndType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResellerSupportSessionEndType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResellerSupportSessionEndType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ResellerSupportSessionEndType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionStartDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionStartDetails.java new file mode 100644 index 000000000..861d8de2e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionStartDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Started reseller support session. + */ +public class ResellerSupportSessionStartDetails { + // struct team_log.ResellerSupportSessionStartDetails (team_log_generated.stone) + + + /** + * Started reseller support session. + */ + public ResellerSupportSessionStartDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResellerSupportSessionStartDetails other = (ResellerSupportSessionStartDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerSupportSessionStartDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResellerSupportSessionStartDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResellerSupportSessionStartDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ResellerSupportSessionStartDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionStartType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionStartType.java new file mode 100644 index 000000000..e4e3d28c4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ResellerSupportSessionStartType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ResellerSupportSessionStartType { + // struct team_log.ResellerSupportSessionStartType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ResellerSupportSessionStartType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ResellerSupportSessionStartType other = (ResellerSupportSessionStartType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ResellerSupportSessionStartType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ResellerSupportSessionStartType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ResellerSupportSessionStartType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ResellerSupportSessionStartType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindFolderDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindFolderDetails.java new file mode 100644 index 000000000..71ad4afaf --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindFolderDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +/** + * Rewound a folder. + */ +public class RewindFolderDetails { + // struct team_log.RewindFolderDetails (team_log_generated.stone) + + @Nonnull + protected final Date rewindFolderTargetTsMs; + + /** + * Rewound a folder. + * + * @param rewindFolderTargetTsMs Folder was Rewound to this date. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RewindFolderDetails(@Nonnull Date rewindFolderTargetTsMs) { + if (rewindFolderTargetTsMs == null) { + throw new IllegalArgumentException("Required value for 'rewindFolderTargetTsMs' is null"); + } + this.rewindFolderTargetTsMs = LangUtil.truncateMillis(rewindFolderTargetTsMs); + } + + /** + * Folder was Rewound to this date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getRewindFolderTargetTsMs() { + return rewindFolderTargetTsMs; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.rewindFolderTargetTsMs + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RewindFolderDetails other = (RewindFolderDetails) obj; + return (this.rewindFolderTargetTsMs == other.rewindFolderTargetTsMs) || (this.rewindFolderTargetTsMs.equals(other.rewindFolderTargetTsMs)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RewindFolderDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("rewind_folder_target_ts_ms"); + StoneSerializers.timestamp().serialize(value.rewindFolderTargetTsMs, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RewindFolderDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RewindFolderDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_rewindFolderTargetTsMs = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("rewind_folder_target_ts_ms".equals(field)) { + f_rewindFolderTargetTsMs = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_rewindFolderTargetTsMs == null) { + throw new JsonParseException(p, "Required field \"rewind_folder_target_ts_ms\" missing."); + } + value = new RewindFolderDetails(f_rewindFolderTargetTsMs); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindFolderType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindFolderType.java new file mode 100644 index 000000000..36ba048f0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindFolderType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RewindFolderType { + // struct team_log.RewindFolderType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RewindFolderType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RewindFolderType other = (RewindFolderType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RewindFolderType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RewindFolderType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RewindFolderType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new RewindFolderType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicy.java new file mode 100644 index 000000000..09e04ce65 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling whether team members can rewind + */ +public enum RewindPolicy { + // union team_log.RewindPolicy (team_log_generated.stone) + ADMINS_ONLY, + EVERYONE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RewindPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ADMINS_ONLY: { + g.writeString("admins_only"); + break; + } + case EVERYONE: { + g.writeString("everyone"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public RewindPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + RewindPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admins_only".equals(tag)) { + value = RewindPolicy.ADMINS_ONLY; + } + else if ("everyone".equals(tag)) { + value = RewindPolicy.EVERYONE; + } + else { + value = RewindPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicyChangedDetails.java new file mode 100644 index 000000000..9a1385188 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed Rewind policy for team. + */ +public class RewindPolicyChangedDetails { + // struct team_log.RewindPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final RewindPolicy newValue; + @Nonnull + protected final RewindPolicy previousValue; + + /** + * Changed Rewind policy for team. + * + * @param newValue New Dropbox Rewind policy. Must not be {@code null}. + * @param previousValue Previous Dropbox Rewind policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RewindPolicyChangedDetails(@Nonnull RewindPolicy newValue, @Nonnull RewindPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Dropbox Rewind policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public RewindPolicy getNewValue() { + return newValue; + } + + /** + * Previous Dropbox Rewind policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public RewindPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RewindPolicyChangedDetails other = (RewindPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RewindPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + RewindPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + RewindPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RewindPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RewindPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + RewindPolicy f_newValue = null; + RewindPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = RewindPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = RewindPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new RewindPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicyChangedType.java new file mode 100644 index 000000000..ddd35c48f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/RewindPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class RewindPolicyChangedType { + // struct team_log.RewindPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public RewindPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + RewindPolicyChangedType other = (RewindPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RewindPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public RewindPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + RewindPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new RewindPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailDeletedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailDeletedDetails.java new file mode 100644 index 000000000..8973b3960 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailDeletedDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Deleted secondary email. + */ +public class SecondaryEmailDeletedDetails { + // struct team_log.SecondaryEmailDeletedDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryEmail; + + /** + * Deleted secondary email. + * + * @param secondaryEmail Deleted secondary email. Must have length of at + * most 255 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryEmailDeletedDetails(@Nonnull String secondaryEmail) { + if (secondaryEmail == null) { + throw new IllegalArgumentException("Required value for 'secondaryEmail' is null"); + } + if (secondaryEmail.length() > 255) { + throw new IllegalArgumentException("String 'secondaryEmail' is longer than 255"); + } + this.secondaryEmail = secondaryEmail; + } + + /** + * Deleted secondary email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryEmail() { + return secondaryEmail; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryEmail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryEmailDeletedDetails other = (SecondaryEmailDeletedDetails) obj; + return (this.secondaryEmail == other.secondaryEmail) || (this.secondaryEmail.equals(other.secondaryEmail)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryEmailDeletedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_email"); + StoneSerializers.string().serialize(value.secondaryEmail, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryEmailDeletedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryEmailDeletedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryEmail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_email".equals(field)) { + f_secondaryEmail = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryEmail == null) { + throw new JsonParseException(p, "Required field \"secondary_email\" missing."); + } + value = new SecondaryEmailDeletedDetails(f_secondaryEmail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailDeletedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailDeletedType.java new file mode 100644 index 000000000..c25623ab0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailDeletedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SecondaryEmailDeletedType { + // struct team_log.SecondaryEmailDeletedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryEmailDeletedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryEmailDeletedType other = (SecondaryEmailDeletedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryEmailDeletedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryEmailDeletedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryEmailDeletedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SecondaryEmailDeletedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedDetails.java new file mode 100644 index 000000000..fd2a7a16e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Verified secondary email. + */ +public class SecondaryEmailVerifiedDetails { + // struct team_log.SecondaryEmailVerifiedDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryEmail; + + /** + * Verified secondary email. + * + * @param secondaryEmail Verified secondary email. Must have length of at + * most 255 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryEmailVerifiedDetails(@Nonnull String secondaryEmail) { + if (secondaryEmail == null) { + throw new IllegalArgumentException("Required value for 'secondaryEmail' is null"); + } + if (secondaryEmail.length() > 255) { + throw new IllegalArgumentException("String 'secondaryEmail' is longer than 255"); + } + this.secondaryEmail = secondaryEmail; + } + + /** + * Verified secondary email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryEmail() { + return secondaryEmail; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryEmail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryEmailVerifiedDetails other = (SecondaryEmailVerifiedDetails) obj; + return (this.secondaryEmail == other.secondaryEmail) || (this.secondaryEmail.equals(other.secondaryEmail)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryEmailVerifiedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_email"); + StoneSerializers.string().serialize(value.secondaryEmail, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryEmailVerifiedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryEmailVerifiedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryEmail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_email".equals(field)) { + f_secondaryEmail = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryEmail == null) { + throw new JsonParseException(p, "Required field \"secondary_email\" missing."); + } + value = new SecondaryEmailVerifiedDetails(f_secondaryEmail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedType.java new file mode 100644 index 000000000..0d8f2a411 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryEmailVerifiedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SecondaryEmailVerifiedType { + // struct team_log.SecondaryEmailVerifiedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryEmailVerifiedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryEmailVerifiedType other = (SecondaryEmailVerifiedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryEmailVerifiedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryEmailVerifiedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryEmailVerifiedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SecondaryEmailVerifiedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicy.java new file mode 100644 index 000000000..40bd328c9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicy.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SecondaryMailsPolicy { + // union team_log.SecondaryMailsPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryMailsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SecondaryMailsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SecondaryMailsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = SecondaryMailsPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = SecondaryMailsPolicy.ENABLED; + } + else { + value = SecondaryMailsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedDetails.java new file mode 100644 index 000000000..b242aed7a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Secondary mails policy changed. + */ +public class SecondaryMailsPolicyChangedDetails { + // struct team_log.SecondaryMailsPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final SecondaryMailsPolicy previousValue; + @Nonnull + protected final SecondaryMailsPolicy newValue; + + /** + * Secondary mails policy changed. + * + * @param previousValue Previous secondary mails policy. Must not be {@code + * null}. + * @param newValue New secondary mails policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryMailsPolicyChangedDetails(@Nonnull SecondaryMailsPolicy previousValue, @Nonnull SecondaryMailsPolicy newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous secondary mails policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SecondaryMailsPolicy getPreviousValue() { + return previousValue; + } + + /** + * New secondary mails policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SecondaryMailsPolicy getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryMailsPolicyChangedDetails other = (SecondaryMailsPolicyChangedDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryMailsPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + SecondaryMailsPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + SecondaryMailsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryMailsPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryMailsPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SecondaryMailsPolicy f_previousValue = null; + SecondaryMailsPolicy f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = SecondaryMailsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = SecondaryMailsPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SecondaryMailsPolicyChangedDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedType.java new file mode 100644 index 000000000..5249c0c44 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryMailsPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SecondaryMailsPolicyChangedType { + // struct team_log.SecondaryMailsPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryMailsPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryMailsPolicyChangedType other = (SecondaryMailsPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryMailsPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryMailsPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryMailsPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SecondaryMailsPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestAcceptedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestAcceptedDetails.java new file mode 100644 index 000000000..8f83fafca --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestAcceptedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request acceptance details shown to the secondary team + */ +public class SecondaryTeamRequestAcceptedDetails { + // struct team_log.SecondaryTeamRequestAcceptedDetails (team_log_generated.stone) + + @Nonnull + protected final String primaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Team merge request acceptance details shown to the secondary team + * + * @param primaryTeam The primary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryTeamRequestAcceptedDetails(@Nonnull String primaryTeam, @Nonnull String sentBy) { + if (primaryTeam == null) { + throw new IllegalArgumentException("Required value for 'primaryTeam' is null"); + } + this.primaryTeam = primaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The primary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPrimaryTeam() { + return primaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.primaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryTeamRequestAcceptedDetails other = (SecondaryTeamRequestAcceptedDetails) obj; + return ((this.primaryTeam == other.primaryTeam) || (this.primaryTeam.equals(other.primaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryTeamRequestAcceptedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("primary_team"); + StoneSerializers.string().serialize(value.primaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryTeamRequestAcceptedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryTeamRequestAcceptedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_primaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("primary_team".equals(field)) { + f_primaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_primaryTeam == null) { + throw new JsonParseException(p, "Required field \"primary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new SecondaryTeamRequestAcceptedDetails(f_primaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestCanceledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestCanceledDetails.java new file mode 100644 index 000000000..43df3c52c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestCanceledDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request cancellation details shown to the secondary team + */ +public class SecondaryTeamRequestCanceledDetails { + // struct team_log.SecondaryTeamRequestCanceledDetails (team_log_generated.stone) + + @Nonnull + protected final String sentTo; + @Nonnull + protected final String sentBy; + + /** + * Team merge request cancellation details shown to the secondary team + * + * @param sentTo The email of the primary team admin that the request was + * sent to. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryTeamRequestCanceledDetails(@Nonnull String sentTo, @Nonnull String sentBy) { + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The email of the primary team admin that the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentTo, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryTeamRequestCanceledDetails other = (SecondaryTeamRequestCanceledDetails) obj; + return ((this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryTeamRequestCanceledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryTeamRequestCanceledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryTeamRequestCanceledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentTo = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new SecondaryTeamRequestCanceledDetails(f_sentTo, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestExpiredDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestExpiredDetails.java new file mode 100644 index 000000000..1bf9ffb05 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestExpiredDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request expiration details shown to the secondary team + */ +public class SecondaryTeamRequestExpiredDetails { + // struct team_log.SecondaryTeamRequestExpiredDetails (team_log_generated.stone) + + @Nonnull + protected final String sentTo; + + /** + * Team merge request expiration details shown to the secondary team + * + * @param sentTo The email of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryTeamRequestExpiredDetails(@Nonnull String sentTo) { + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The email of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryTeamRequestExpiredDetails other = (SecondaryTeamRequestExpiredDetails) obj; + return (this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryTeamRequestExpiredDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryTeamRequestExpiredDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryTeamRequestExpiredDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new SecondaryTeamRequestExpiredDetails(f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestReminderDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestReminderDetails.java new file mode 100644 index 000000000..a8ca51b22 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SecondaryTeamRequestReminderDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request reminder details shown to the secondary team + */ +public class SecondaryTeamRequestReminderDetails { + // struct team_log.SecondaryTeamRequestReminderDetails (team_log_generated.stone) + + @Nonnull + protected final String sentTo; + + /** + * Team merge request reminder details shown to the secondary team + * + * @param sentTo The email of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SecondaryTeamRequestReminderDetails(@Nonnull String sentTo) { + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The email of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SecondaryTeamRequestReminderDetails other = (SecondaryTeamRequestReminderDetails) obj; + return (this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SecondaryTeamRequestReminderDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SecondaryTeamRequestReminderDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SecondaryTeamRequestReminderDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new SecondaryTeamRequestReminderDetails(f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicy.java new file mode 100644 index 000000000..46364b933 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling team access to send for signature feature + */ +public enum SendForSignaturePolicy { + // union team_log.SendForSignaturePolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SendForSignaturePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SendForSignaturePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SendForSignaturePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = SendForSignaturePolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = SendForSignaturePolicy.ENABLED; + } + else { + value = SendForSignaturePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedDetails.java new file mode 100644 index 000000000..42d646b9e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed send for signature policy for team. + */ +public class SendForSignaturePolicyChangedDetails { + // struct team_log.SendForSignaturePolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final SendForSignaturePolicy newValue; + @Nonnull + protected final SendForSignaturePolicy previousValue; + + /** + * Changed send for signature policy for team. + * + * @param newValue New send for signature policy. Must not be {@code null}. + * @param previousValue Previous send for signature policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SendForSignaturePolicyChangedDetails(@Nonnull SendForSignaturePolicy newValue, @Nonnull SendForSignaturePolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New send for signature policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SendForSignaturePolicy getNewValue() { + return newValue; + } + + /** + * Previous send for signature policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SendForSignaturePolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SendForSignaturePolicyChangedDetails other = (SendForSignaturePolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SendForSignaturePolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SendForSignaturePolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + SendForSignaturePolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SendForSignaturePolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SendForSignaturePolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SendForSignaturePolicy f_newValue = null; + SendForSignaturePolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SendForSignaturePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = SendForSignaturePolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new SendForSignaturePolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedType.java new file mode 100644 index 000000000..6f19be530 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SendForSignaturePolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SendForSignaturePolicyChangedType { + // struct team_log.SendForSignaturePolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SendForSignaturePolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SendForSignaturePolicyChangedType other = (SendForSignaturePolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SendForSignaturePolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SendForSignaturePolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SendForSignaturePolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SendForSignaturePolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SessionLogInfo.java new file mode 100644 index 000000000..9acff7d5e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SessionLogInfo.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Session's logged information. + */ +public class SessionLogInfo { + // struct team_log.SessionLogInfo (team_log_generated.stone) + + @Nullable + protected final String sessionId; + + /** + * Session's logged information. + * + * @param sessionId Session ID. + */ + public SessionLogInfo(@Nullable String sessionId) { + this.sessionId = sessionId; + } + + /** + * Session's logged information. + * + *

The default values for unset fields will be used.

+ */ + public SessionLogInfo() { + this(null); + } + + /** + * Session ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSessionId() { + return sessionId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SessionLogInfo other = (SessionLogInfo) obj; + return (this.sessionId == other.sessionId) || (this.sessionId != null && this.sessionId.equals(other.sessionId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof WebSessionLogInfo) { + WebSessionLogInfo.Serializer.INSTANCE.serialize((WebSessionLogInfo) value, g, collapse); + return; + } + if (value instanceof DesktopSessionLogInfo) { + DesktopSessionLogInfo.Serializer.INSTANCE.serialize((DesktopSessionLogInfo) value, g, collapse); + return; + } + if (value instanceof MobileSessionLogInfo) { + MobileSessionLogInfo.Serializer.INSTANCE.serialize((MobileSessionLogInfo) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + if (value.sessionId != null) { + g.writeFieldName("session_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sessionId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_sessionId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SessionLogInfo(f_sessionId); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("web".equals(tag)) { + value = WebSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("desktop".equals(tag)) { + value = DesktopSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("mobile".equals(tag)) { + value = MobileSessionLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAddGroupDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAddGroupDetails.java new file mode 100644 index 000000000..de90c5fb2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAddGroupDetails.java @@ -0,0 +1,246 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added team to shared folder. + */ +public class SfAddGroupDetails { + // struct team_log.SfAddGroupDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String sharingPermission; + @Nonnull + protected final String teamName; + + /** + * Added team to shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param teamName Team name. Must not be {@code null}. + * @param sharingPermission Sharing permission. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfAddGroupDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nonnull String teamName, @Nullable String sharingPermission) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.sharingPermission = sharingPermission; + if (teamName == null) { + throw new IllegalArgumentException("Required value for 'teamName' is null"); + } + this.teamName = teamName; + } + + /** + * Added team to shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param teamName Team name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfAddGroupDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nonnull String teamName) { + this(targetAssetIndex, originalFolderName, teamName, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * Team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamName() { + return teamName; + } + + /** + * Sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharingPermission() { + return sharingPermission; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.sharingPermission, + this.teamName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfAddGroupDetails other = (SfAddGroupDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.teamName == other.teamName) || (this.teamName.equals(other.teamName))) + && ((this.sharingPermission == other.sharingPermission) || (this.sharingPermission != null && this.sharingPermission.equals(other.sharingPermission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfAddGroupDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + g.writeFieldName("team_name"); + StoneSerializers.string().serialize(value.teamName, g); + if (value.sharingPermission != null) { + g.writeFieldName("sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharingPermission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfAddGroupDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfAddGroupDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_teamName = null; + String f_sharingPermission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("team_name".equals(field)) { + f_teamName = StoneSerializers.string().deserialize(p); + } + else if ("sharing_permission".equals(field)) { + f_sharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + if (f_teamName == null) { + throw new JsonParseException(p, "Required field \"team_name\" missing."); + } + value = new SfAddGroupDetails(f_targetAssetIndex, f_originalFolderName, f_teamName, f_sharingPermission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAddGroupType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAddGroupType.java new file mode 100644 index 000000000..7ad0cc440 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAddGroupType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfAddGroupType { + // struct team_log.SfAddGroupType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfAddGroupType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfAddGroupType other = (SfAddGroupType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfAddGroupType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfAddGroupType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfAddGroupType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfAddGroupType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksDetails.java new file mode 100644 index 000000000..7e114435f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksDetails.java @@ -0,0 +1,217 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Allowed non-collaborators to view links to files in shared folder. + */ +public class SfAllowNonMembersToViewSharedLinksDetails { + // struct team_log.SfAllowNonMembersToViewSharedLinksDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String sharedFolderType; + + /** + * Allowed non-collaborators to view links to files in shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param sharedFolderType Shared folder type. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfAllowNonMembersToViewSharedLinksDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nullable String sharedFolderType) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.sharedFolderType = sharedFolderType; + } + + /** + * Allowed non-collaborators to view links to files in shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfAllowNonMembersToViewSharedLinksDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this(targetAssetIndex, originalFolderName, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * Shared folder type. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedFolderType() { + return sharedFolderType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.sharedFolderType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfAllowNonMembersToViewSharedLinksDetails other = (SfAllowNonMembersToViewSharedLinksDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.sharedFolderType == other.sharedFolderType) || (this.sharedFolderType != null && this.sharedFolderType.equals(other.sharedFolderType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfAllowNonMembersToViewSharedLinksDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (value.sharedFolderType != null) { + g.writeFieldName("shared_folder_type"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedFolderType, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfAllowNonMembersToViewSharedLinksDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfAllowNonMembersToViewSharedLinksDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_sharedFolderType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("shared_folder_type".equals(field)) { + f_sharedFolderType = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfAllowNonMembersToViewSharedLinksDetails(f_targetAssetIndex, f_originalFolderName, f_sharedFolderType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksType.java new file mode 100644 index 000000000..c5e8a87a6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfAllowNonMembersToViewSharedLinksType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfAllowNonMembersToViewSharedLinksType { + // struct team_log.SfAllowNonMembersToViewSharedLinksType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfAllowNonMembersToViewSharedLinksType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfAllowNonMembersToViewSharedLinksType other = (SfAllowNonMembersToViewSharedLinksType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfAllowNonMembersToViewSharedLinksType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfAllowNonMembersToViewSharedLinksType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfAllowNonMembersToViewSharedLinksType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfAllowNonMembersToViewSharedLinksType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails.java new file mode 100644 index 000000000..bd4bb50be --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfExternalInviteWarnDetails.java @@ -0,0 +1,315 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Set team members to see warning before sharing folders outside team. + */ +public class SfExternalInviteWarnDetails { + // struct team_log.SfExternalInviteWarnDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String newSharingPermission; + @Nullable + protected final String previousSharingPermission; + + /** + * Set team members to see warning before sharing folders outside team. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param newSharingPermission New sharing permission. + * @param previousSharingPermission Previous sharing permission. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfExternalInviteWarnDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nullable String newSharingPermission, @Nullable String previousSharingPermission) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.newSharingPermission = newSharingPermission; + this.previousSharingPermission = previousSharingPermission; + } + + /** + * Set team members to see warning before sharing folders outside team. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfExternalInviteWarnDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this(targetAssetIndex, originalFolderName, null, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * New sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewSharingPermission() { + return newSharingPermission; + } + + /** + * Previous sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousSharingPermission() { + return previousSharingPermission; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(long targetAssetIndex, String originalFolderName) { + return new Builder(targetAssetIndex, originalFolderName); + } + + /** + * Builder for {@link SfExternalInviteWarnDetails}. + */ + public static class Builder { + protected final long targetAssetIndex; + protected final String originalFolderName; + + protected String newSharingPermission; + protected String previousSharingPermission; + + protected Builder(long targetAssetIndex, String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.newSharingPermission = null; + this.previousSharingPermission = null; + } + + /** + * Set value for optional field. + * + * @param newSharingPermission New sharing permission. + * + * @return this builder + */ + public Builder withNewSharingPermission(String newSharingPermission) { + this.newSharingPermission = newSharingPermission; + return this; + } + + /** + * Set value for optional field. + * + * @param previousSharingPermission Previous sharing permission. + * + * @return this builder + */ + public Builder withPreviousSharingPermission(String previousSharingPermission) { + this.previousSharingPermission = previousSharingPermission; + return this; + } + + /** + * Builds an instance of {@link SfExternalInviteWarnDetails} configured + * with this builder's values + * + * @return new instance of {@link SfExternalInviteWarnDetails} + */ + public SfExternalInviteWarnDetails build() { + return new SfExternalInviteWarnDetails(targetAssetIndex, originalFolderName, newSharingPermission, previousSharingPermission); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.newSharingPermission, + this.previousSharingPermission + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfExternalInviteWarnDetails other = (SfExternalInviteWarnDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.newSharingPermission == other.newSharingPermission) || (this.newSharingPermission != null && this.newSharingPermission.equals(other.newSharingPermission))) + && ((this.previousSharingPermission == other.previousSharingPermission) || (this.previousSharingPermission != null && this.previousSharingPermission.equals(other.previousSharingPermission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfExternalInviteWarnDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (value.newSharingPermission != null) { + g.writeFieldName("new_sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newSharingPermission, g); + } + if (value.previousSharingPermission != null) { + g.writeFieldName("previous_sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousSharingPermission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfExternalInviteWarnDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfExternalInviteWarnDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_newSharingPermission = null; + String f_previousSharingPermission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("new_sharing_permission".equals(field)) { + f_newSharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_sharing_permission".equals(field)) { + f_previousSharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfExternalInviteWarnDetails(f_targetAssetIndex, f_originalFolderName, f_newSharingPermission, f_previousSharingPermission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfExternalInviteWarnType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfExternalInviteWarnType.java new file mode 100644 index 000000000..b31c18b97 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfExternalInviteWarnType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfExternalInviteWarnType { + // struct team_log.SfExternalInviteWarnType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfExternalInviteWarnType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfExternalInviteWarnType other = (SfExternalInviteWarnType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfExternalInviteWarnType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfExternalInviteWarnType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfExternalInviteWarnType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfExternalInviteWarnType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails.java new file mode 100644 index 000000000..9e49f4803 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleDetails.java @@ -0,0 +1,315 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed Facebook user's role in shared folder. + */ +public class SfFbInviteChangeRoleDetails { + // struct team_log.SfFbInviteChangeRoleDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String previousSharingPermission; + @Nullable + protected final String newSharingPermission; + + /** + * Changed Facebook user's role in shared folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param previousSharingPermission Previous sharing permission. + * @param newSharingPermission New sharing permission. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbInviteChangeRoleDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nullable String previousSharingPermission, @Nullable String newSharingPermission) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.previousSharingPermission = previousSharingPermission; + this.newSharingPermission = newSharingPermission; + } + + /** + * Changed Facebook user's role in shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbInviteChangeRoleDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this(targetAssetIndex, originalFolderName, null, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * Previous sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousSharingPermission() { + return previousSharingPermission; + } + + /** + * New sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewSharingPermission() { + return newSharingPermission; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(long targetAssetIndex, String originalFolderName) { + return new Builder(targetAssetIndex, originalFolderName); + } + + /** + * Builder for {@link SfFbInviteChangeRoleDetails}. + */ + public static class Builder { + protected final long targetAssetIndex; + protected final String originalFolderName; + + protected String previousSharingPermission; + protected String newSharingPermission; + + protected Builder(long targetAssetIndex, String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.previousSharingPermission = null; + this.newSharingPermission = null; + } + + /** + * Set value for optional field. + * + * @param previousSharingPermission Previous sharing permission. + * + * @return this builder + */ + public Builder withPreviousSharingPermission(String previousSharingPermission) { + this.previousSharingPermission = previousSharingPermission; + return this; + } + + /** + * Set value for optional field. + * + * @param newSharingPermission New sharing permission. + * + * @return this builder + */ + public Builder withNewSharingPermission(String newSharingPermission) { + this.newSharingPermission = newSharingPermission; + return this; + } + + /** + * Builds an instance of {@link SfFbInviteChangeRoleDetails} configured + * with this builder's values + * + * @return new instance of {@link SfFbInviteChangeRoleDetails} + */ + public SfFbInviteChangeRoleDetails build() { + return new SfFbInviteChangeRoleDetails(targetAssetIndex, originalFolderName, previousSharingPermission, newSharingPermission); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.previousSharingPermission, + this.newSharingPermission + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfFbInviteChangeRoleDetails other = (SfFbInviteChangeRoleDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.previousSharingPermission == other.previousSharingPermission) || (this.previousSharingPermission != null && this.previousSharingPermission.equals(other.previousSharingPermission))) + && ((this.newSharingPermission == other.newSharingPermission) || (this.newSharingPermission != null && this.newSharingPermission.equals(other.newSharingPermission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfFbInviteChangeRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (value.previousSharingPermission != null) { + g.writeFieldName("previous_sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousSharingPermission, g); + } + if (value.newSharingPermission != null) { + g.writeFieldName("new_sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newSharingPermission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfFbInviteChangeRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfFbInviteChangeRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_previousSharingPermission = null; + String f_newSharingPermission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("previous_sharing_permission".equals(field)) { + f_previousSharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_sharing_permission".equals(field)) { + f_newSharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfFbInviteChangeRoleDetails(f_targetAssetIndex, f_originalFolderName, f_previousSharingPermission, f_newSharingPermission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleType.java new file mode 100644 index 000000000..11e81cbb6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteChangeRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfFbInviteChangeRoleType { + // struct team_log.SfFbInviteChangeRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbInviteChangeRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfFbInviteChangeRoleType other = (SfFbInviteChangeRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfFbInviteChangeRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfFbInviteChangeRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfFbInviteChangeRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfFbInviteChangeRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteDetails.java new file mode 100644 index 000000000..10a868f8a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteDetails.java @@ -0,0 +1,217 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Invited Facebook users to shared folder. + */ +public class SfFbInviteDetails { + // struct team_log.SfFbInviteDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String sharingPermission; + + /** + * Invited Facebook users to shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param sharingPermission Sharing permission. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbInviteDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nullable String sharingPermission) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.sharingPermission = sharingPermission; + } + + /** + * Invited Facebook users to shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbInviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this(targetAssetIndex, originalFolderName, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * Sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharingPermission() { + return sharingPermission; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.sharingPermission + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfFbInviteDetails other = (SfFbInviteDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.sharingPermission == other.sharingPermission) || (this.sharingPermission != null && this.sharingPermission.equals(other.sharingPermission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfFbInviteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (value.sharingPermission != null) { + g.writeFieldName("sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharingPermission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfFbInviteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfFbInviteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_sharingPermission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("sharing_permission".equals(field)) { + f_sharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfFbInviteDetails(f_targetAssetIndex, f_originalFolderName, f_sharingPermission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteType.java new file mode 100644 index 000000000..f312a0dd6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbInviteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfFbInviteType { + // struct team_log.SfFbInviteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbInviteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfFbInviteType other = (SfFbInviteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfFbInviteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfFbInviteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfFbInviteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfFbInviteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbUninviteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbUninviteDetails.java new file mode 100644 index 000000000..cab0cf3b1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbUninviteDetails.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Uninvited Facebook user from shared folder. + */ +public class SfFbUninviteDetails { + // struct team_log.SfFbUninviteDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + + /** + * Uninvited Facebook user from shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbUninviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfFbUninviteDetails other = (SfFbUninviteDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfFbUninviteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfFbUninviteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfFbUninviteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfFbUninviteDetails(f_targetAssetIndex, f_originalFolderName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbUninviteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbUninviteType.java new file mode 100644 index 000000000..9095a9f4f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfFbUninviteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfFbUninviteType { + // struct team_log.SfFbUninviteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfFbUninviteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfFbUninviteType other = (SfFbUninviteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfFbUninviteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfFbUninviteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfFbUninviteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfFbUninviteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfInviteGroupDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfInviteGroupDetails.java new file mode 100644 index 000000000..668f297b9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfInviteGroupDetails.java @@ -0,0 +1,141 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Invited group to shared folder. + */ +public class SfInviteGroupDetails { + // struct team_log.SfInviteGroupDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + + /** + * Invited group to shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + */ + public SfInviteGroupDetails(long targetAssetIndex) { + this.targetAssetIndex = targetAssetIndex; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfInviteGroupDetails other = (SfInviteGroupDetails) obj; + return this.targetAssetIndex == other.targetAssetIndex; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfInviteGroupDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfInviteGroupDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfInviteGroupDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + value = new SfInviteGroupDetails(f_targetAssetIndex); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfInviteGroupType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfInviteGroupType.java new file mode 100644 index 000000000..ffae4af98 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfInviteGroupType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfInviteGroupType { + // struct team_log.SfInviteGroupType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfInviteGroupType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfInviteGroupType other = (SfInviteGroupType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfInviteGroupType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfInviteGroupType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfInviteGroupType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfInviteGroupType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamGrantAccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamGrantAccessDetails.java new file mode 100644 index 000000000..463aac74d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamGrantAccessDetails.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Granted access to shared folder. + */ +public class SfTeamGrantAccessDetails { + // struct team_log.SfTeamGrantAccessDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + + /** + * Granted access to shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamGrantAccessDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamGrantAccessDetails other = (SfTeamGrantAccessDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamGrantAccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamGrantAccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamGrantAccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfTeamGrantAccessDetails(f_targetAssetIndex, f_originalFolderName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamGrantAccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamGrantAccessType.java new file mode 100644 index 000000000..2f59dcd8a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamGrantAccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfTeamGrantAccessType { + // struct team_log.SfTeamGrantAccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamGrantAccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamGrantAccessType other = (SfTeamGrantAccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamGrantAccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamGrantAccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamGrantAccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfTeamGrantAccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails.java new file mode 100644 index 000000000..fb173a23f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleDetails.java @@ -0,0 +1,315 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed team member's role in shared folder. + */ +public class SfTeamInviteChangeRoleDetails { + // struct team_log.SfTeamInviteChangeRoleDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String newSharingPermission; + @Nullable + protected final String previousSharingPermission; + + /** + * Changed team member's role in shared folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param newSharingPermission New sharing permission. + * @param previousSharingPermission Previous sharing permission. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamInviteChangeRoleDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nullable String newSharingPermission, @Nullable String previousSharingPermission) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.newSharingPermission = newSharingPermission; + this.previousSharingPermission = previousSharingPermission; + } + + /** + * Changed team member's role in shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamInviteChangeRoleDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this(targetAssetIndex, originalFolderName, null, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * New sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewSharingPermission() { + return newSharingPermission; + } + + /** + * Previous sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousSharingPermission() { + return previousSharingPermission; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(long targetAssetIndex, String originalFolderName) { + return new Builder(targetAssetIndex, originalFolderName); + } + + /** + * Builder for {@link SfTeamInviteChangeRoleDetails}. + */ + public static class Builder { + protected final long targetAssetIndex; + protected final String originalFolderName; + + protected String newSharingPermission; + protected String previousSharingPermission; + + protected Builder(long targetAssetIndex, String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.newSharingPermission = null; + this.previousSharingPermission = null; + } + + /** + * Set value for optional field. + * + * @param newSharingPermission New sharing permission. + * + * @return this builder + */ + public Builder withNewSharingPermission(String newSharingPermission) { + this.newSharingPermission = newSharingPermission; + return this; + } + + /** + * Set value for optional field. + * + * @param previousSharingPermission Previous sharing permission. + * + * @return this builder + */ + public Builder withPreviousSharingPermission(String previousSharingPermission) { + this.previousSharingPermission = previousSharingPermission; + return this; + } + + /** + * Builds an instance of {@link SfTeamInviteChangeRoleDetails} + * configured with this builder's values + * + * @return new instance of {@link SfTeamInviteChangeRoleDetails} + */ + public SfTeamInviteChangeRoleDetails build() { + return new SfTeamInviteChangeRoleDetails(targetAssetIndex, originalFolderName, newSharingPermission, previousSharingPermission); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.newSharingPermission, + this.previousSharingPermission + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamInviteChangeRoleDetails other = (SfTeamInviteChangeRoleDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.newSharingPermission == other.newSharingPermission) || (this.newSharingPermission != null && this.newSharingPermission.equals(other.newSharingPermission))) + && ((this.previousSharingPermission == other.previousSharingPermission) || (this.previousSharingPermission != null && this.previousSharingPermission.equals(other.previousSharingPermission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamInviteChangeRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (value.newSharingPermission != null) { + g.writeFieldName("new_sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newSharingPermission, g); + } + if (value.previousSharingPermission != null) { + g.writeFieldName("previous_sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousSharingPermission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamInviteChangeRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamInviteChangeRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_newSharingPermission = null; + String f_previousSharingPermission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("new_sharing_permission".equals(field)) { + f_newSharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_sharing_permission".equals(field)) { + f_previousSharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfTeamInviteChangeRoleDetails(f_targetAssetIndex, f_originalFolderName, f_newSharingPermission, f_previousSharingPermission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleType.java new file mode 100644 index 000000000..c27a759d3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteChangeRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfTeamInviteChangeRoleType { + // struct team_log.SfTeamInviteChangeRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamInviteChangeRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamInviteChangeRoleType other = (SfTeamInviteChangeRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamInviteChangeRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamInviteChangeRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamInviteChangeRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfTeamInviteChangeRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteDetails.java new file mode 100644 index 000000000..cd1e7560a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteDetails.java @@ -0,0 +1,217 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Invited team members to shared folder. + */ +public class SfTeamInviteDetails { + // struct team_log.SfTeamInviteDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String sharingPermission; + + /** + * Invited team members to shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param sharingPermission Sharing permission. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamInviteDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nullable String sharingPermission) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.sharingPermission = sharingPermission; + } + + /** + * Invited team members to shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamInviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this(targetAssetIndex, originalFolderName, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * Sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharingPermission() { + return sharingPermission; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.sharingPermission + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamInviteDetails other = (SfTeamInviteDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.sharingPermission == other.sharingPermission) || (this.sharingPermission != null && this.sharingPermission.equals(other.sharingPermission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamInviteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (value.sharingPermission != null) { + g.writeFieldName("sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharingPermission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamInviteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamInviteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_sharingPermission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("sharing_permission".equals(field)) { + f_sharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfTeamInviteDetails(f_targetAssetIndex, f_originalFolderName, f_sharingPermission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteType.java new file mode 100644 index 000000000..1a4d8d052 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamInviteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfTeamInviteType { + // struct team_log.SfTeamInviteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamInviteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamInviteType other = (SfTeamInviteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamInviteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamInviteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamInviteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfTeamInviteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinDetails.java new file mode 100644 index 000000000..8e20dca81 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinDetails.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Joined team member's shared folder. + */ +public class SfTeamJoinDetails { + // struct team_log.SfTeamJoinDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + + /** + * Joined team member's shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamJoinDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamJoinDetails other = (SfTeamJoinDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamJoinDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamJoinDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamJoinDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfTeamJoinDetails(f_targetAssetIndex, f_originalFolderName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails.java new file mode 100644 index 000000000..310441ad9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkDetails.java @@ -0,0 +1,315 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Joined team member's shared folder from link. + */ +public class SfTeamJoinFromOobLinkDetails { + // struct team_log.SfTeamJoinFromOobLinkDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + @Nullable + protected final String tokenKey; + @Nullable + protected final String sharingPermission; + + /** + * Joined team member's shared folder from link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * @param tokenKey Shared link token key. + * @param sharingPermission Sharing permission. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamJoinFromOobLinkDetails(long targetAssetIndex, @Nonnull String originalFolderName, @Nullable String tokenKey, @Nullable String sharingPermission) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.tokenKey = tokenKey; + this.sharingPermission = sharingPermission; + } + + /** + * Joined team member's shared folder from link. + * + *

The default values for unset fields will be used.

+ * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamJoinFromOobLinkDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this(targetAssetIndex, originalFolderName, null, null); + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + /** + * Shared link token key. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTokenKey() { + return tokenKey; + } + + /** + * Sharing permission. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharingPermission() { + return sharingPermission; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(long targetAssetIndex, String originalFolderName) { + return new Builder(targetAssetIndex, originalFolderName); + } + + /** + * Builder for {@link SfTeamJoinFromOobLinkDetails}. + */ + public static class Builder { + protected final long targetAssetIndex; + protected final String originalFolderName; + + protected String tokenKey; + protected String sharingPermission; + + protected Builder(long targetAssetIndex, String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + this.tokenKey = null; + this.sharingPermission = null; + } + + /** + * Set value for optional field. + * + * @param tokenKey Shared link token key. + * + * @return this builder + */ + public Builder withTokenKey(String tokenKey) { + this.tokenKey = tokenKey; + return this; + } + + /** + * Set value for optional field. + * + * @param sharingPermission Sharing permission. + * + * @return this builder + */ + public Builder withSharingPermission(String sharingPermission) { + this.sharingPermission = sharingPermission; + return this; + } + + /** + * Builds an instance of {@link SfTeamJoinFromOobLinkDetails} configured + * with this builder's values + * + * @return new instance of {@link SfTeamJoinFromOobLinkDetails} + */ + public SfTeamJoinFromOobLinkDetails build() { + return new SfTeamJoinFromOobLinkDetails(targetAssetIndex, originalFolderName, tokenKey, sharingPermission); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName, + this.tokenKey, + this.sharingPermission + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamJoinFromOobLinkDetails other = (SfTeamJoinFromOobLinkDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + && ((this.tokenKey == other.tokenKey) || (this.tokenKey != null && this.tokenKey.equals(other.tokenKey))) + && ((this.sharingPermission == other.sharingPermission) || (this.sharingPermission != null && this.sharingPermission.equals(other.sharingPermission))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamJoinFromOobLinkDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (value.tokenKey != null) { + g.writeFieldName("token_key"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.tokenKey, g); + } + if (value.sharingPermission != null) { + g.writeFieldName("sharing_permission"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharingPermission, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamJoinFromOobLinkDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamJoinFromOobLinkDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + String f_tokenKey = null; + String f_sharingPermission = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else if ("token_key".equals(field)) { + f_tokenKey = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("sharing_permission".equals(field)) { + f_sharingPermission = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfTeamJoinFromOobLinkDetails(f_targetAssetIndex, f_originalFolderName, f_tokenKey, f_sharingPermission); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkType.java new file mode 100644 index 000000000..bd70e8495 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinFromOobLinkType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfTeamJoinFromOobLinkType { + // struct team_log.SfTeamJoinFromOobLinkType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamJoinFromOobLinkType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamJoinFromOobLinkType other = (SfTeamJoinFromOobLinkType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamJoinFromOobLinkType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamJoinFromOobLinkType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamJoinFromOobLinkType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfTeamJoinFromOobLinkType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinType.java new file mode 100644 index 000000000..bdbb3bf0b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamJoinType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfTeamJoinType { + // struct team_log.SfTeamJoinType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamJoinType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamJoinType other = (SfTeamJoinType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamJoinType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamJoinType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamJoinType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfTeamJoinType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamUninviteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamUninviteDetails.java new file mode 100644 index 000000000..317a8f5b8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamUninviteDetails.java @@ -0,0 +1,176 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Unshared folder with team member. + */ +public class SfTeamUninviteDetails { + // struct team_log.SfTeamUninviteDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + @Nonnull + protected final String originalFolderName; + + /** + * Unshared folder with team member. + * + * @param targetAssetIndex Target asset position in the Assets list. + * @param originalFolderName Original shared folder name. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamUninviteDetails(long targetAssetIndex, @Nonnull String originalFolderName) { + this.targetAssetIndex = targetAssetIndex; + if (originalFolderName == null) { + throw new IllegalArgumentException("Required value for 'originalFolderName' is null"); + } + this.originalFolderName = originalFolderName; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + /** + * Original shared folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOriginalFolderName() { + return originalFolderName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex, + this.originalFolderName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamUninviteDetails other = (SfTeamUninviteDetails) obj; + return (this.targetAssetIndex == other.targetAssetIndex) + && ((this.originalFolderName == other.originalFolderName) || (this.originalFolderName.equals(other.originalFolderName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamUninviteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + g.writeFieldName("original_folder_name"); + StoneSerializers.string().serialize(value.originalFolderName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamUninviteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamUninviteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + String f_originalFolderName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else if ("original_folder_name".equals(field)) { + f_originalFolderName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + if (f_originalFolderName == null) { + throw new JsonParseException(p, "Required field \"original_folder_name\" missing."); + } + value = new SfTeamUninviteDetails(f_targetAssetIndex, f_originalFolderName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamUninviteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamUninviteType.java new file mode 100644 index 000000000..e73c6c8b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SfTeamUninviteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SfTeamUninviteType { + // struct team_log.SfTeamUninviteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SfTeamUninviteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SfTeamUninviteType other = (SfTeamUninviteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SfTeamUninviteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SfTeamUninviteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SfTeamUninviteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SfTeamUninviteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddInviteesDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddInviteesDetails.java new file mode 100644 index 000000000..e9c0fcc5a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddInviteesDetails.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Invited user to Dropbox and added them to shared file/folder. + */ +public class SharedContentAddInviteesDetails { + // struct team_log.SharedContentAddInviteesDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nonnull + protected final List invitees; + + /** + * Invited user to Dropbox and added them to shared file/folder. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param invitees A list of invitees. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentAddInviteesDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nonnull List invitees) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + if (invitees == null) { + throw new IllegalArgumentException("Required value for 'invitees' is null"); + } + for (String x : invitees) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitees' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'invitees' is longer than 255"); + } + } + this.invitees = invitees; + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * A list of invitees. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getInvitees() { + return invitees; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.invitees + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddInviteesDetails other = (SharedContentAddInviteesDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.invitees == other.invitees) || (this.invitees.equals(other.invitees))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddInviteesDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + g.writeFieldName("invitees"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.invitees, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddInviteesDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddInviteesDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + List f_invitees = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("invitees".equals(field)) { + f_invitees = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + if (f_invitees == null) { + throw new JsonParseException(p, "Required field \"invitees\" missing."); + } + value = new SharedContentAddInviteesDetails(f_sharedContentAccessLevel, f_invitees); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddInviteesType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddInviteesType.java new file mode 100644 index 000000000..7f7e4d8eb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddInviteesType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentAddInviteesType { + // struct team_log.SharedContentAddInviteesType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentAddInviteesType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddInviteesType other = (SharedContentAddInviteesType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddInviteesType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddInviteesType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddInviteesType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentAddInviteesType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryDetails.java new file mode 100644 index 000000000..a8ce7c378 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added expiration date to link for shared file/folder. + */ +public class SharedContentAddLinkExpiryDetails { + // struct team_log.SharedContentAddLinkExpiryDetails (team_log_generated.stone) + + @Nullable + protected final Date newValue; + + /** + * Added expiration date to link for shared file/folder. + * + * @param newValue New shared content link expiration date. Might be + * missing due to historical data gap. + */ + public SharedContentAddLinkExpiryDetails(@Nullable Date newValue) { + this.newValue = LangUtil.truncateMillis(newValue); + } + + /** + * Added expiration date to link for shared file/folder. + * + *

The default values for unset fields will be used.

+ */ + public SharedContentAddLinkExpiryDetails() { + this(null); + } + + /** + * New shared content link expiration date. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddLinkExpiryDetails other = (SharedContentAddLinkExpiryDetails) obj; + return (this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddLinkExpiryDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.newValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddLinkExpiryDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddLinkExpiryDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedContentAddLinkExpiryDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryType.java new file mode 100644 index 000000000..1498d0ed7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkExpiryType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentAddLinkExpiryType { + // struct team_log.SharedContentAddLinkExpiryType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentAddLinkExpiryType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddLinkExpiryType other = (SharedContentAddLinkExpiryType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddLinkExpiryType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddLinkExpiryType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddLinkExpiryType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentAddLinkExpiryType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordDetails.java new file mode 100644 index 000000000..a179d36bc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added password to link for shared file/folder. + */ +public class SharedContentAddLinkPasswordDetails { + // struct team_log.SharedContentAddLinkPasswordDetails (team_log_generated.stone) + + + /** + * Added password to link for shared file/folder. + */ + public SharedContentAddLinkPasswordDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddLinkPasswordDetails other = (SharedContentAddLinkPasswordDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddLinkPasswordDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddLinkPasswordDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddLinkPasswordDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedContentAddLinkPasswordDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordType.java new file mode 100644 index 000000000..543475115 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddLinkPasswordType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentAddLinkPasswordType { + // struct team_log.SharedContentAddLinkPasswordType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentAddLinkPasswordType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddLinkPasswordType other = (SharedContentAddLinkPasswordType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddLinkPasswordType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddLinkPasswordType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddLinkPasswordType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentAddLinkPasswordType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddMemberDetails.java new file mode 100644 index 000000000..bb480f42c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddMemberDetails.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added users and/or groups to shared file/folder. + */ +public class SharedContentAddMemberDetails { + // struct team_log.SharedContentAddMemberDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + + /** + * Added users and/or groups to shared file/folder. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentAddMemberDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddMemberDetails other = (SharedContentAddMemberDetails) obj; + return (this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedContentAddMemberDetails(f_sharedContentAccessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddMemberType.java new file mode 100644 index 000000000..d4ff424db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentAddMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentAddMemberType { + // struct team_log.SharedContentAddMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentAddMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentAddMemberType other = (SharedContentAddMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentAddMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentAddMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentAddMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentAddMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyDetails.java new file mode 100644 index 000000000..3de980ae9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyDetails.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether members can download shared file/folder. + */ +public class SharedContentChangeDownloadsPolicyDetails { + // struct team_log.SharedContentChangeDownloadsPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final DownloadPolicyType newValue; + @Nullable + protected final DownloadPolicyType previousValue; + + /** + * Changed whether members can download shared file/folder. + * + * @param newValue New downloads policy. Must not be {@code null}. + * @param previousValue Previous downloads policy. Might be missing due to + * historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeDownloadsPolicyDetails(@Nonnull DownloadPolicyType newValue, @Nullable DownloadPolicyType previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether members can download shared file/folder. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New downloads policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeDownloadsPolicyDetails(@Nonnull DownloadPolicyType newValue) { + this(newValue, null); + } + + /** + * New downloads policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DownloadPolicyType getNewValue() { + return newValue; + } + + /** + * Previous downloads policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DownloadPolicyType getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeDownloadsPolicyDetails other = (SharedContentChangeDownloadsPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeDownloadsPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + DownloadPolicyType.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(DownloadPolicyType.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeDownloadsPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeDownloadsPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DownloadPolicyType f_newValue = null; + DownloadPolicyType f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = DownloadPolicyType.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(DownloadPolicyType.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedContentChangeDownloadsPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyType.java new file mode 100644 index 000000000..5dc0376f2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeDownloadsPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentChangeDownloadsPolicyType { + // struct team_log.SharedContentChangeDownloadsPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeDownloadsPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeDownloadsPolicyType other = (SharedContentChangeDownloadsPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeDownloadsPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeDownloadsPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeDownloadsPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentChangeDownloadsPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleDetails.java new file mode 100644 index 000000000..0132630da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleDetails.java @@ -0,0 +1,230 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed access type of invitee to shared file/folder before invite was + * accepted. + */ +public class SharedContentChangeInviteeRoleDetails { + // struct team_log.SharedContentChangeInviteeRoleDetails (team_log_generated.stone) + + @Nullable + protected final AccessLevel previousAccessLevel; + @Nonnull + protected final AccessLevel newAccessLevel; + @Nonnull + protected final String invitee; + + /** + * Changed access type of invitee to shared file/folder before invite was + * accepted. + * + * @param newAccessLevel New access level. Must not be {@code null}. + * @param invitee The invitee whose role was changed. Must have length of + * at most 255 and not be {@code null}. + * @param previousAccessLevel Previous access level. Might be missing due + * to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeInviteeRoleDetails(@Nonnull AccessLevel newAccessLevel, @Nonnull String invitee, @Nullable AccessLevel previousAccessLevel) { + this.previousAccessLevel = previousAccessLevel; + if (newAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'newAccessLevel' is null"); + } + this.newAccessLevel = newAccessLevel; + if (invitee == null) { + throw new IllegalArgumentException("Required value for 'invitee' is null"); + } + if (invitee.length() > 255) { + throw new IllegalArgumentException("String 'invitee' is longer than 255"); + } + this.invitee = invitee; + } + + /** + * Changed access type of invitee to shared file/folder before invite was + * accepted. + * + *

The default values for unset fields will be used.

+ * + * @param newAccessLevel New access level. Must not be {@code null}. + * @param invitee The invitee whose role was changed. Must have length of + * at most 255 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeInviteeRoleDetails(@Nonnull AccessLevel newAccessLevel, @Nonnull String invitee) { + this(newAccessLevel, invitee, null); + } + + /** + * New access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getNewAccessLevel() { + return newAccessLevel; + } + + /** + * The invitee whose role was changed. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getInvitee() { + return invitee; + } + + /** + * Previous access level. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getPreviousAccessLevel() { + return previousAccessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousAccessLevel, + this.newAccessLevel, + this.invitee + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeInviteeRoleDetails other = (SharedContentChangeInviteeRoleDetails) obj; + return ((this.newAccessLevel == other.newAccessLevel) || (this.newAccessLevel.equals(other.newAccessLevel))) + && ((this.invitee == other.invitee) || (this.invitee.equals(other.invitee))) + && ((this.previousAccessLevel == other.previousAccessLevel) || (this.previousAccessLevel != null && this.previousAccessLevel.equals(other.previousAccessLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeInviteeRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.newAccessLevel, g); + g.writeFieldName("invitee"); + StoneSerializers.string().serialize(value.invitee, g); + if (value.previousAccessLevel != null) { + g.writeFieldName("previous_access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.previousAccessLevel, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeInviteeRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeInviteeRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_newAccessLevel = null; + String f_invitee = null; + AccessLevel f_previousAccessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_access_level".equals(field)) { + f_newAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("invitee".equals(field)) { + f_invitee = StoneSerializers.string().deserialize(p); + } + else if ("previous_access_level".equals(field)) { + f_previousAccessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newAccessLevel == null) { + throw new JsonParseException(p, "Required field \"new_access_level\" missing."); + } + if (f_invitee == null) { + throw new JsonParseException(p, "Required field \"invitee\" missing."); + } + value = new SharedContentChangeInviteeRoleDetails(f_newAccessLevel, f_invitee, f_previousAccessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleType.java new file mode 100644 index 000000000..ce2895aea --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeInviteeRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentChangeInviteeRoleType { + // struct team_log.SharedContentChangeInviteeRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeInviteeRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeInviteeRoleType other = (SharedContentChangeInviteeRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeInviteeRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeInviteeRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeInviteeRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentChangeInviteeRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceDetails.java new file mode 100644 index 000000000..e8796e1ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceDetails.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.LinkAudience; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed link audience of shared file/folder. + */ +public class SharedContentChangeLinkAudienceDetails { + // struct team_log.SharedContentChangeLinkAudienceDetails (team_log_generated.stone) + + @Nonnull + protected final LinkAudience newValue; + @Nullable + protected final LinkAudience previousValue; + + /** + * Changed link audience of shared file/folder. + * + * @param newValue New link audience value. Must not be {@code null}. + * @param previousValue Previous link audience value. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeLinkAudienceDetails(@Nonnull LinkAudience newValue, @Nullable LinkAudience previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed link audience of shared file/folder. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New link audience value. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeLinkAudienceDetails(@Nonnull LinkAudience newValue) { + this(newValue, null); + } + + /** + * New link audience value. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAudience getNewValue() { + return newValue; + } + + /** + * Previous link audience value. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkAudience getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeLinkAudienceDetails other = (SharedContentChangeLinkAudienceDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeLinkAudienceDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + LinkAudience.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeLinkAudienceDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeLinkAudienceDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + LinkAudience f_newValue = null; + LinkAudience f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = LinkAudience.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedContentChangeLinkAudienceDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceType.java new file mode 100644 index 000000000..8607ddb50 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkAudienceType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentChangeLinkAudienceType { + // struct team_log.SharedContentChangeLinkAudienceType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeLinkAudienceType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeLinkAudienceType other = (SharedContentChangeLinkAudienceType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeLinkAudienceType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeLinkAudienceType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeLinkAudienceType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentChangeLinkAudienceType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails.java new file mode 100644 index 000000000..573dec2d4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryDetails.java @@ -0,0 +1,247 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed link expiration of shared file/folder. + */ +public class SharedContentChangeLinkExpiryDetails { + // struct team_log.SharedContentChangeLinkExpiryDetails (team_log_generated.stone) + + @Nullable + protected final Date newValue; + @Nullable + protected final Date previousValue; + + /** + * Changed link expiration of shared file/folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New shared content link expiration date. Might be + * missing due to historical data gap. + * @param previousValue Previous shared content link expiration date. Might + * be missing due to historical data gap. + */ + public SharedContentChangeLinkExpiryDetails(@Nullable Date newValue, @Nullable Date previousValue) { + this.newValue = LangUtil.truncateMillis(newValue); + this.previousValue = LangUtil.truncateMillis(previousValue); + } + + /** + * Changed link expiration of shared file/folder. + * + *

The default values for unset fields will be used.

+ */ + public SharedContentChangeLinkExpiryDetails() { + this(null, null); + } + + /** + * New shared content link expiration date. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getNewValue() { + return newValue; + } + + /** + * Previous shared content link expiration date. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharedContentChangeLinkExpiryDetails}. + */ + public static class Builder { + + protected Date newValue; + protected Date previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New shared content link expiration date. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withNewValue(Date newValue) { + this.newValue = LangUtil.truncateMillis(newValue); + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous shared content link expiration date. + * Might be missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(Date previousValue) { + this.previousValue = LangUtil.truncateMillis(previousValue); + return this; + } + + /** + * Builds an instance of {@link SharedContentChangeLinkExpiryDetails} + * configured with this builder's values + * + * @return new instance of {@link SharedContentChangeLinkExpiryDetails} + */ + public SharedContentChangeLinkExpiryDetails build() { + return new SharedContentChangeLinkExpiryDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeLinkExpiryDetails other = (SharedContentChangeLinkExpiryDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeLinkExpiryDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeLinkExpiryDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeLinkExpiryDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_newValue = null; + Date f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedContentChangeLinkExpiryDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryType.java new file mode 100644 index 000000000..d3e368f82 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkExpiryType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentChangeLinkExpiryType { + // struct team_log.SharedContentChangeLinkExpiryType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeLinkExpiryType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeLinkExpiryType other = (SharedContentChangeLinkExpiryType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeLinkExpiryType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeLinkExpiryType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeLinkExpiryType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentChangeLinkExpiryType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordDetails.java new file mode 100644 index 000000000..ec88ab97c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed link password of shared file/folder. + */ +public class SharedContentChangeLinkPasswordDetails { + // struct team_log.SharedContentChangeLinkPasswordDetails (team_log_generated.stone) + + + /** + * Changed link password of shared file/folder. + */ + public SharedContentChangeLinkPasswordDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeLinkPasswordDetails other = (SharedContentChangeLinkPasswordDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeLinkPasswordDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeLinkPasswordDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeLinkPasswordDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedContentChangeLinkPasswordDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordType.java new file mode 100644 index 000000000..8021827a3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeLinkPasswordType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentChangeLinkPasswordType { + // struct team_log.SharedContentChangeLinkPasswordType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeLinkPasswordType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeLinkPasswordType other = (SharedContentChangeLinkPasswordType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeLinkPasswordType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeLinkPasswordType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeLinkPasswordType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentChangeLinkPasswordType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleDetails.java new file mode 100644 index 000000000..5429cae4c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed access type of shared file/folder member. + */ +public class SharedContentChangeMemberRoleDetails { + // struct team_log.SharedContentChangeMemberRoleDetails (team_log_generated.stone) + + @Nullable + protected final AccessLevel previousAccessLevel; + @Nonnull + protected final AccessLevel newAccessLevel; + + /** + * Changed access type of shared file/folder member. + * + * @param newAccessLevel New access level. Must not be {@code null}. + * @param previousAccessLevel Previous access level. Might be missing due + * to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeMemberRoleDetails(@Nonnull AccessLevel newAccessLevel, @Nullable AccessLevel previousAccessLevel) { + this.previousAccessLevel = previousAccessLevel; + if (newAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'newAccessLevel' is null"); + } + this.newAccessLevel = newAccessLevel; + } + + /** + * Changed access type of shared file/folder member. + * + *

The default values for unset fields will be used.

+ * + * @param newAccessLevel New access level. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeMemberRoleDetails(@Nonnull AccessLevel newAccessLevel) { + this(newAccessLevel, null); + } + + /** + * New access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getNewAccessLevel() { + return newAccessLevel; + } + + /** + * Previous access level. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getPreviousAccessLevel() { + return previousAccessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousAccessLevel, + this.newAccessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeMemberRoleDetails other = (SharedContentChangeMemberRoleDetails) obj; + return ((this.newAccessLevel == other.newAccessLevel) || (this.newAccessLevel.equals(other.newAccessLevel))) + && ((this.previousAccessLevel == other.previousAccessLevel) || (this.previousAccessLevel != null && this.previousAccessLevel.equals(other.previousAccessLevel))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeMemberRoleDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.newAccessLevel, g); + if (value.previousAccessLevel != null) { + g.writeFieldName("previous_access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.previousAccessLevel, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeMemberRoleDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeMemberRoleDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_newAccessLevel = null; + AccessLevel f_previousAccessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_access_level".equals(field)) { + f_newAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_access_level".equals(field)) { + f_previousAccessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newAccessLevel == null) { + throw new JsonParseException(p, "Required field \"new_access_level\" missing."); + } + value = new SharedContentChangeMemberRoleDetails(f_newAccessLevel, f_previousAccessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleType.java new file mode 100644 index 000000000..e9eacadd8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeMemberRoleType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentChangeMemberRoleType { + // struct team_log.SharedContentChangeMemberRoleType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeMemberRoleType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeMemberRoleType other = (SharedContentChangeMemberRoleType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeMemberRoleType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeMemberRoleType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeMemberRoleType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentChangeMemberRoleType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyDetails.java new file mode 100644 index 000000000..eb97813d9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyDetails.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.ViewerInfoPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether members can see who viewed shared file/folder. + */ +public class SharedContentChangeViewerInfoPolicyDetails { + // struct team_log.SharedContentChangeViewerInfoPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ViewerInfoPolicy newValue; + @Nullable + protected final ViewerInfoPolicy previousValue; + + /** + * Changed whether members can see who viewed shared file/folder. + * + * @param newValue New viewer info policy. Must not be {@code null}. + * @param previousValue Previous view info policy. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeViewerInfoPolicyDetails(@Nonnull ViewerInfoPolicy newValue, @Nullable ViewerInfoPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether members can see who viewed shared file/folder. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New viewer info policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeViewerInfoPolicyDetails(@Nonnull ViewerInfoPolicy newValue) { + this(newValue, null); + } + + /** + * New viewer info policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ViewerInfoPolicy getNewValue() { + return newValue; + } + + /** + * Previous view info policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ViewerInfoPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeViewerInfoPolicyDetails other = (SharedContentChangeViewerInfoPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeViewerInfoPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ViewerInfoPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeViewerInfoPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeViewerInfoPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ViewerInfoPolicy f_newValue = null; + ViewerInfoPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ViewerInfoPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(ViewerInfoPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedContentChangeViewerInfoPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyType.java new file mode 100644 index 000000000..439f64bf7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentChangeViewerInfoPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentChangeViewerInfoPolicyType { + // struct team_log.SharedContentChangeViewerInfoPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentChangeViewerInfoPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentChangeViewerInfoPolicyType other = (SharedContentChangeViewerInfoPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentChangeViewerInfoPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentChangeViewerInfoPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentChangeViewerInfoPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentChangeViewerInfoPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentClaimInvitationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentClaimInvitationDetails.java new file mode 100644 index 000000000..033abbd72 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentClaimInvitationDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Acquired membership of shared file/folder by accepting invite. + */ +public class SharedContentClaimInvitationDetails { + // struct team_log.SharedContentClaimInvitationDetails (team_log_generated.stone) + + @Nullable + protected final String sharedContentLink; + + /** + * Acquired membership of shared file/folder by accepting invite. + * + * @param sharedContentLink Shared content link. + */ + public SharedContentClaimInvitationDetails(@Nullable String sharedContentLink) { + this.sharedContentLink = sharedContentLink; + } + + /** + * Acquired membership of shared file/folder by accepting invite. + * + *

The default values for unset fields will be used.

+ */ + public SharedContentClaimInvitationDetails() { + this(null); + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentLink + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentClaimInvitationDetails other = (SharedContentClaimInvitationDetails) obj; + return (this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentClaimInvitationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentClaimInvitationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentClaimInvitationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedContentLink = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedContentClaimInvitationDetails(f_sharedContentLink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentClaimInvitationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentClaimInvitationType.java new file mode 100644 index 000000000..5695ae387 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentClaimInvitationType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentClaimInvitationType { + // struct team_log.SharedContentClaimInvitationType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentClaimInvitationType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentClaimInvitationType other = (SharedContentClaimInvitationType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentClaimInvitationType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentClaimInvitationType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentClaimInvitationType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentClaimInvitationType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentCopyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentCopyDetails.java new file mode 100644 index 000000000..369faa8fb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentCopyDetails.java @@ -0,0 +1,254 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Copied shared file/folder to own Dropbox. + */ +public class SharedContentCopyDetails { + // struct team_log.SharedContentCopyDetails (team_log_generated.stone) + + @Nonnull + protected final String sharedContentLink; + @Nullable + protected final UserLogInfo sharedContentOwner; + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nonnull + protected final String destinationPath; + + /** + * Copied shared file/folder to own Dropbox. + * + * @param sharedContentLink Shared content link. Must not be {@code null}. + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param destinationPath The path where the member saved the content. Must + * not be {@code null}. + * @param sharedContentOwner The shared content owner. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentCopyDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel, @Nonnull String destinationPath, @Nullable UserLogInfo sharedContentOwner) { + if (sharedContentLink == null) { + throw new IllegalArgumentException("Required value for 'sharedContentLink' is null"); + } + this.sharedContentLink = sharedContentLink; + this.sharedContentOwner = sharedContentOwner; + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + if (destinationPath == null) { + throw new IllegalArgumentException("Required value for 'destinationPath' is null"); + } + this.destinationPath = destinationPath; + } + + /** + * Copied shared file/folder to own Dropbox. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentLink Shared content link. Must not be {@code null}. + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param destinationPath The path where the member saved the content. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentCopyDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel, @Nonnull String destinationPath) { + this(sharedContentLink, sharedContentAccessLevel, destinationPath, null); + } + + /** + * Shared content link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedContentLink() { + return sharedContentLink; + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * The path where the member saved the content. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDestinationPath() { + return destinationPath; + } + + /** + * The shared content owner. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedContentOwner() { + return sharedContentOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentLink, + this.sharedContentOwner, + this.sharedContentAccessLevel, + this.destinationPath + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentCopyDetails other = (SharedContentCopyDetails) obj; + return ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink.equals(other.sharedContentLink))) + && ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.destinationPath == other.destinationPath) || (this.destinationPath.equals(other.destinationPath))) + && ((this.sharedContentOwner == other.sharedContentOwner) || (this.sharedContentOwner != null && this.sharedContentOwner.equals(other.sharedContentOwner))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentCopyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_link"); + StoneSerializers.string().serialize(value.sharedContentLink, g); + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + g.writeFieldName("destination_path"); + StoneSerializers.string().serialize(value.destinationPath, g); + if (value.sharedContentOwner != null) { + g.writeFieldName("shared_content_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedContentOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentCopyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentCopyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedContentLink = null; + AccessLevel f_sharedContentAccessLevel = null; + String f_destinationPath = null; + UserLogInfo f_sharedContentOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.string().deserialize(p); + } + else if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("destination_path".equals(field)) { + f_destinationPath = StoneSerializers.string().deserialize(p); + } + else if ("shared_content_owner".equals(field)) { + f_sharedContentOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentLink == null) { + throw new JsonParseException(p, "Required field \"shared_content_link\" missing."); + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + if (f_destinationPath == null) { + throw new JsonParseException(p, "Required field \"destination_path\" missing."); + } + value = new SharedContentCopyDetails(f_sharedContentLink, f_sharedContentAccessLevel, f_destinationPath, f_sharedContentOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentCopyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentCopyType.java new file mode 100644 index 000000000..6dfa7793c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentCopyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentCopyType { + // struct team_log.SharedContentCopyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentCopyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentCopyType other = (SharedContentCopyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentCopyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentCopyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentCopyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentCopyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentDownloadDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentDownloadDetails.java new file mode 100644 index 000000000..a30754cf9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentDownloadDetails.java @@ -0,0 +1,223 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Downloaded shared file/folder. + */ +public class SharedContentDownloadDetails { + // struct team_log.SharedContentDownloadDetails (team_log_generated.stone) + + @Nonnull + protected final String sharedContentLink; + @Nullable + protected final UserLogInfo sharedContentOwner; + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + + /** + * Downloaded shared file/folder. + * + * @param sharedContentLink Shared content link. Must not be {@code null}. + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentOwner The shared content owner. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentDownloadDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel, @Nullable UserLogInfo sharedContentOwner) { + if (sharedContentLink == null) { + throw new IllegalArgumentException("Required value for 'sharedContentLink' is null"); + } + this.sharedContentLink = sharedContentLink; + this.sharedContentOwner = sharedContentOwner; + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + } + + /** + * Downloaded shared file/folder. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentLink Shared content link. Must not be {@code null}. + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentDownloadDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentLink, sharedContentAccessLevel, null); + } + + /** + * Shared content link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedContentLink() { + return sharedContentLink; + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * The shared content owner. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedContentOwner() { + return sharedContentOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentLink, + this.sharedContentOwner, + this.sharedContentAccessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentDownloadDetails other = (SharedContentDownloadDetails) obj; + return ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink.equals(other.sharedContentLink))) + && ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentOwner == other.sharedContentOwner) || (this.sharedContentOwner != null && this.sharedContentOwner.equals(other.sharedContentOwner))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentDownloadDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_link"); + StoneSerializers.string().serialize(value.sharedContentLink, g); + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentOwner != null) { + g.writeFieldName("shared_content_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedContentOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentDownloadDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentDownloadDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedContentLink = null; + AccessLevel f_sharedContentAccessLevel = null; + UserLogInfo f_sharedContentOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.string().deserialize(p); + } + else if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_owner".equals(field)) { + f_sharedContentOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentLink == null) { + throw new JsonParseException(p, "Required field \"shared_content_link\" missing."); + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedContentDownloadDetails(f_sharedContentLink, f_sharedContentAccessLevel, f_sharedContentOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentDownloadType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentDownloadType.java new file mode 100644 index 000000000..40e16d804 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentDownloadType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentDownloadType { + // struct team_log.SharedContentDownloadType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentDownloadType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentDownloadType other = (SharedContentDownloadType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentDownloadType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentDownloadType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentDownloadType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentDownloadType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipDetails.java new file mode 100644 index 000000000..9be3ca03f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Left shared file/folder. + */ +public class SharedContentRelinquishMembershipDetails { + // struct team_log.SharedContentRelinquishMembershipDetails (team_log_generated.stone) + + + /** + * Left shared file/folder. + */ + public SharedContentRelinquishMembershipDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRelinquishMembershipDetails other = (SharedContentRelinquishMembershipDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRelinquishMembershipDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRelinquishMembershipDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRelinquishMembershipDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedContentRelinquishMembershipDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipType.java new file mode 100644 index 000000000..bdbe5fc2d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRelinquishMembershipType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRelinquishMembershipType { + // struct team_log.SharedContentRelinquishMembershipType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRelinquishMembershipType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRelinquishMembershipType other = (SharedContentRelinquishMembershipType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRelinquishMembershipType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRelinquishMembershipType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRelinquishMembershipType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRelinquishMembershipType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesDetails.java new file mode 100644 index 000000000..5d756785a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesDetails.java @@ -0,0 +1,161 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Removed invitee from shared file/folder before invite was accepted. + */ +public class SharedContentRemoveInviteesDetails { + // struct team_log.SharedContentRemoveInviteesDetails (team_log_generated.stone) + + @Nonnull + protected final List invitees; + + /** + * Removed invitee from shared file/folder before invite was accepted. + * + * @param invitees A list of invitees. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRemoveInviteesDetails(@Nonnull List invitees) { + if (invitees == null) { + throw new IllegalArgumentException("Required value for 'invitees' is null"); + } + for (String x : invitees) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitees' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'invitees' is longer than 255"); + } + } + this.invitees = invitees; + } + + /** + * A list of invitees. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getInvitees() { + return invitees; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.invitees + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveInviteesDetails other = (SharedContentRemoveInviteesDetails) obj; + return (this.invitees == other.invitees) || (this.invitees.equals(other.invitees)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveInviteesDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("invitees"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.invitees, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveInviteesDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveInviteesDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_invitees = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("invitees".equals(field)) { + f_invitees = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_invitees == null) { + throw new JsonParseException(p, "Required field \"invitees\" missing."); + } + value = new SharedContentRemoveInviteesDetails(f_invitees); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesType.java new file mode 100644 index 000000000..9759b2af2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveInviteesType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRemoveInviteesType { + // struct team_log.SharedContentRemoveInviteesType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRemoveInviteesType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveInviteesType other = (SharedContentRemoveInviteesType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveInviteesType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveInviteesType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveInviteesType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRemoveInviteesType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryDetails.java new file mode 100644 index 000000000..bff8858c9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed link expiration date of shared file/folder. + */ +public class SharedContentRemoveLinkExpiryDetails { + // struct team_log.SharedContentRemoveLinkExpiryDetails (team_log_generated.stone) + + @Nullable + protected final Date previousValue; + + /** + * Removed link expiration date of shared file/folder. + * + * @param previousValue Previous shared content link expiration date. Might + * be missing due to historical data gap. + */ + public SharedContentRemoveLinkExpiryDetails(@Nullable Date previousValue) { + this.previousValue = LangUtil.truncateMillis(previousValue); + } + + /** + * Removed link expiration date of shared file/folder. + * + *

The default values for unset fields will be used.

+ */ + public SharedContentRemoveLinkExpiryDetails() { + this(null); + } + + /** + * Previous shared content link expiration date. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveLinkExpiryDetails other = (SharedContentRemoveLinkExpiryDetails) obj; + return (this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveLinkExpiryDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveLinkExpiryDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveLinkExpiryDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedContentRemoveLinkExpiryDetails(f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryType.java new file mode 100644 index 000000000..42ebaeff5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkExpiryType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRemoveLinkExpiryType { + // struct team_log.SharedContentRemoveLinkExpiryType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRemoveLinkExpiryType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveLinkExpiryType other = (SharedContentRemoveLinkExpiryType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveLinkExpiryType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveLinkExpiryType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveLinkExpiryType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRemoveLinkExpiryType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordDetails.java new file mode 100644 index 000000000..5e5617f0f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed link password of shared file/folder. + */ +public class SharedContentRemoveLinkPasswordDetails { + // struct team_log.SharedContentRemoveLinkPasswordDetails (team_log_generated.stone) + + + /** + * Removed link password of shared file/folder. + */ + public SharedContentRemoveLinkPasswordDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveLinkPasswordDetails other = (SharedContentRemoveLinkPasswordDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveLinkPasswordDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveLinkPasswordDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveLinkPasswordDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedContentRemoveLinkPasswordDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordType.java new file mode 100644 index 000000000..81ee69acc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveLinkPasswordType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRemoveLinkPasswordType { + // struct team_log.SharedContentRemoveLinkPasswordType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRemoveLinkPasswordType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveLinkPasswordType other = (SharedContentRemoveLinkPasswordType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveLinkPasswordType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveLinkPasswordType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveLinkPasswordType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRemoveLinkPasswordType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveMemberDetails.java new file mode 100644 index 000000000..ad3e638e7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveMemberDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed user/group from shared file/folder. + */ +public class SharedContentRemoveMemberDetails { + // struct team_log.SharedContentRemoveMemberDetails (team_log_generated.stone) + + @Nullable + protected final AccessLevel sharedContentAccessLevel; + + /** + * Removed user/group from shared file/folder. + * + * @param sharedContentAccessLevel Shared content access level. + */ + public SharedContentRemoveMemberDetails(@Nullable AccessLevel sharedContentAccessLevel) { + this.sharedContentAccessLevel = sharedContentAccessLevel; + } + + /** + * Removed user/group from shared file/folder. + * + *

The default values for unset fields will be used.

+ */ + public SharedContentRemoveMemberDetails() { + this(null); + } + + /** + * Shared content access level. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveMemberDetails other = (SharedContentRemoveMemberDetails) obj; + return (this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel != null && this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedContentAccessLevel != null) { + g.writeFieldName("shared_content_access_level"); + StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).serialize(value.sharedContentAccessLevel, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = StoneSerializers.nullable(AccessLevel.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedContentRemoveMemberDetails(f_sharedContentAccessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveMemberType.java new file mode 100644 index 000000000..3edee0051 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRemoveMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRemoveMemberType { + // struct team_log.SharedContentRemoveMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRemoveMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRemoveMemberType other = (SharedContentRemoveMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRemoveMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRemoveMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRemoveMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRemoveMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRequestAccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRequestAccessDetails.java new file mode 100644 index 000000000..789ef4d5d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRequestAccessDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Requested access to shared file/folder. + */ +public class SharedContentRequestAccessDetails { + // struct team_log.SharedContentRequestAccessDetails (team_log_generated.stone) + + @Nullable + protected final String sharedContentLink; + + /** + * Requested access to shared file/folder. + * + * @param sharedContentLink Shared content link. + */ + public SharedContentRequestAccessDetails(@Nullable String sharedContentLink) { + this.sharedContentLink = sharedContentLink; + } + + /** + * Requested access to shared file/folder. + * + *

The default values for unset fields will be used.

+ */ + public SharedContentRequestAccessDetails() { + this(null); + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentLink + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRequestAccessDetails other = (SharedContentRequestAccessDetails) obj; + return (this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRequestAccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRequestAccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRequestAccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedContentLink = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedContentRequestAccessDetails(f_sharedContentLink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRequestAccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRequestAccessType.java new file mode 100644 index 000000000..c8d5a3a50 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRequestAccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRequestAccessType { + // struct team_log.SharedContentRequestAccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRequestAccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRequestAccessType other = (SharedContentRequestAccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRequestAccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRequestAccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRequestAccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRequestAccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesDetails.java new file mode 100644 index 000000000..52d349393 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesDetails.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Restored shared file/folder invitees. + */ +public class SharedContentRestoreInviteesDetails { + // struct team_log.SharedContentRestoreInviteesDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nonnull + protected final List invitees; + + /** + * Restored shared file/folder invitees. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param invitees A list of invitees. Must not contain a {@code null} item + * and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRestoreInviteesDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nonnull List invitees) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + if (invitees == null) { + throw new IllegalArgumentException("Required value for 'invitees' is null"); + } + for (String x : invitees) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'invitees' is null"); + } + if (x.length() > 255) { + throw new IllegalArgumentException("Stringan item in list 'invitees' is longer than 255"); + } + } + this.invitees = invitees; + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * A list of invitees. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getInvitees() { + return invitees; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.invitees + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRestoreInviteesDetails other = (SharedContentRestoreInviteesDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.invitees == other.invitees) || (this.invitees.equals(other.invitees))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRestoreInviteesDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + g.writeFieldName("invitees"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.invitees, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRestoreInviteesDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRestoreInviteesDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + List f_invitees = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("invitees".equals(field)) { + f_invitees = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + if (f_invitees == null) { + throw new JsonParseException(p, "Required field \"invitees\" missing."); + } + value = new SharedContentRestoreInviteesDetails(f_sharedContentAccessLevel, f_invitees); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesType.java new file mode 100644 index 000000000..0b78cf539 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreInviteesType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRestoreInviteesType { + // struct team_log.SharedContentRestoreInviteesType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRestoreInviteesType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRestoreInviteesType other = (SharedContentRestoreInviteesType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRestoreInviteesType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRestoreInviteesType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRestoreInviteesType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRestoreInviteesType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreMemberDetails.java new file mode 100644 index 000000000..fd7d67f06 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreMemberDetails.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Restored users and/or groups to membership of shared file/folder. + */ +public class SharedContentRestoreMemberDetails { + // struct team_log.SharedContentRestoreMemberDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + + /** + * Restored users and/or groups to membership of shared file/folder. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRestoreMemberDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRestoreMemberDetails other = (SharedContentRestoreMemberDetails) obj; + return (this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRestoreMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRestoreMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRestoreMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedContentRestoreMemberDetails(f_sharedContentAccessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreMemberType.java new file mode 100644 index 000000000..fe67585a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentRestoreMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentRestoreMemberType { + // struct team_log.SharedContentRestoreMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentRestoreMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentRestoreMemberType other = (SharedContentRestoreMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentRestoreMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentRestoreMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentRestoreMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentRestoreMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentUnshareDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentUnshareDetails.java new file mode 100644 index 000000000..aa9b22825 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentUnshareDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Unshared file/folder by clearing membership. + */ +public class SharedContentUnshareDetails { + // struct team_log.SharedContentUnshareDetails (team_log_generated.stone) + + + /** + * Unshared file/folder by clearing membership. + */ + public SharedContentUnshareDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentUnshareDetails other = (SharedContentUnshareDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentUnshareDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentUnshareDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentUnshareDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedContentUnshareDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentUnshareType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentUnshareType.java new file mode 100644 index 000000000..2b4a54bac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentUnshareType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentUnshareType { + // struct team_log.SharedContentUnshareType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentUnshareType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentUnshareType other = (SharedContentUnshareType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentUnshareType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentUnshareType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentUnshareType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentUnshareType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentViewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentViewDetails.java new file mode 100644 index 000000000..80be89e6c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentViewDetails.java @@ -0,0 +1,223 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Previewed shared file/folder. + */ +public class SharedContentViewDetails { + // struct team_log.SharedContentViewDetails (team_log_generated.stone) + + @Nonnull + protected final String sharedContentLink; + @Nullable + protected final UserLogInfo sharedContentOwner; + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + + /** + * Previewed shared file/folder. + * + * @param sharedContentLink Shared content link. Must not be {@code null}. + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentOwner The shared content owner. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentViewDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel, @Nullable UserLogInfo sharedContentOwner) { + if (sharedContentLink == null) { + throw new IllegalArgumentException("Required value for 'sharedContentLink' is null"); + } + this.sharedContentLink = sharedContentLink; + this.sharedContentOwner = sharedContentOwner; + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + } + + /** + * Previewed shared file/folder. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentLink Shared content link. Must not be {@code null}. + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentViewDetails(@Nonnull String sharedContentLink, @Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentLink, sharedContentAccessLevel, null); + } + + /** + * Shared content link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSharedContentLink() { + return sharedContentLink; + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * The shared content owner. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedContentOwner() { + return sharedContentOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentLink, + this.sharedContentOwner, + this.sharedContentAccessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentViewDetails other = (SharedContentViewDetails) obj; + return ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink.equals(other.sharedContentLink))) + && ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentOwner == other.sharedContentOwner) || (this.sharedContentOwner != null && this.sharedContentOwner.equals(other.sharedContentOwner))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentViewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_link"); + StoneSerializers.string().serialize(value.sharedContentLink, g); + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentOwner != null) { + g.writeFieldName("shared_content_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedContentOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentViewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentViewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sharedContentLink = null; + AccessLevel f_sharedContentAccessLevel = null; + UserLogInfo f_sharedContentOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.string().deserialize(p); + } + else if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_owner".equals(field)) { + f_sharedContentOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentLink == null) { + throw new JsonParseException(p, "Required field \"shared_content_link\" missing."); + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedContentViewDetails(f_sharedContentLink, f_sharedContentAccessLevel, f_sharedContentOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentViewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentViewType.java new file mode 100644 index 000000000..7f14d6de8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedContentViewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedContentViewType { + // struct team_log.SharedContentViewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedContentViewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedContentViewType other = (SharedContentViewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedContentViewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedContentViewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedContentViewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedContentViewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyDetails.java new file mode 100644 index 000000000..f46541e05 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.SharedLinkPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed who can access shared folder via link. + */ +public class SharedFolderChangeLinkPolicyDetails { + // struct team_log.SharedFolderChangeLinkPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final SharedLinkPolicy newValue; + @Nullable + protected final SharedLinkPolicy previousValue; + + /** + * Changed who can access shared folder via link. + * + * @param newValue New shared folder link policy. Must not be {@code null}. + * @param previousValue Previous shared folder link policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeLinkPolicyDetails(@Nonnull SharedLinkPolicy newValue, @Nullable SharedLinkPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed who can access shared folder via link. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New shared folder link policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeLinkPolicyDetails(@Nonnull SharedLinkPolicy newValue) { + this(newValue, null); + } + + /** + * New shared folder link policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedLinkPolicy getNewValue() { + return newValue; + } + + /** + * Previous shared folder link policy. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeLinkPolicyDetails other = (SharedFolderChangeLinkPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeLinkPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SharedLinkPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeLinkPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeLinkPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharedLinkPolicy f_newValue = null; + SharedLinkPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SharedLinkPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SharedLinkPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedFolderChangeLinkPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyType.java new file mode 100644 index 000000000..bb9000c5c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeLinkPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderChangeLinkPolicyType { + // struct team_log.SharedFolderChangeLinkPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeLinkPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeLinkPolicyType other = (SharedFolderChangeLinkPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeLinkPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeLinkPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeLinkPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderChangeLinkPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyDetails.java new file mode 100644 index 000000000..0b4b8e6b1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether shared folder inherits members from parent folder. + */ +public class SharedFolderChangeMembersInheritancePolicyDetails { + // struct team_log.SharedFolderChangeMembersInheritancePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final SharedFolderMembersInheritancePolicy newValue; + @Nullable + protected final SharedFolderMembersInheritancePolicy previousValue; + + /** + * Changed whether shared folder inherits members from parent folder. + * + * @param newValue New member inheritance policy. Must not be {@code null}. + * @param previousValue Previous member inheritance policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersInheritancePolicyDetails(@Nonnull SharedFolderMembersInheritancePolicy newValue, @Nullable SharedFolderMembersInheritancePolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether shared folder inherits members from parent folder. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New member inheritance policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersInheritancePolicyDetails(@Nonnull SharedFolderMembersInheritancePolicy newValue) { + this(newValue, null); + } + + /** + * New member inheritance policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedFolderMembersInheritancePolicy getNewValue() { + return newValue; + } + + /** + * Previous member inheritance policy. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedFolderMembersInheritancePolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeMembersInheritancePolicyDetails other = (SharedFolderChangeMembersInheritancePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeMembersInheritancePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SharedFolderMembersInheritancePolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SharedFolderMembersInheritancePolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeMembersInheritancePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeMembersInheritancePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharedFolderMembersInheritancePolicy f_newValue = null; + SharedFolderMembersInheritancePolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SharedFolderMembersInheritancePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SharedFolderMembersInheritancePolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedFolderChangeMembersInheritancePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyType.java new file mode 100644 index 000000000..f2f1d7f52 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersInheritancePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderChangeMembersInheritancePolicyType { + // struct team_log.SharedFolderChangeMembersInheritancePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersInheritancePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeMembersInheritancePolicyType other = (SharedFolderChangeMembersInheritancePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeMembersInheritancePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeMembersInheritancePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeMembersInheritancePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderChangeMembersInheritancePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyDetails.java new file mode 100644 index 000000000..a55ad7464 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AclUpdatePolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed who can add/remove members of shared folder. + */ +public class SharedFolderChangeMembersManagementPolicyDetails { + // struct team_log.SharedFolderChangeMembersManagementPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final AclUpdatePolicy newValue; + @Nullable + protected final AclUpdatePolicy previousValue; + + /** + * Changed who can add/remove members of shared folder. + * + * @param newValue New members management policy. Must not be {@code null}. + * @param previousValue Previous members management policy. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersManagementPolicyDetails(@Nonnull AclUpdatePolicy newValue, @Nullable AclUpdatePolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed who can add/remove members of shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New members management policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersManagementPolicyDetails(@Nonnull AclUpdatePolicy newValue) { + this(newValue, null); + } + + /** + * New members management policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AclUpdatePolicy getNewValue() { + return newValue; + } + + /** + * Previous members management policy. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public AclUpdatePolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeMembersManagementPolicyDetails other = (SharedFolderChangeMembersManagementPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeMembersManagementPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + AclUpdatePolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeMembersManagementPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeMembersManagementPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AclUpdatePolicy f_newValue = null; + AclUpdatePolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = AclUpdatePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(AclUpdatePolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedFolderChangeMembersManagementPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyType.java new file mode 100644 index 000000000..45e3f735d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersManagementPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderChangeMembersManagementPolicyType { + // struct team_log.SharedFolderChangeMembersManagementPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersManagementPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeMembersManagementPolicyType other = (SharedFolderChangeMembersManagementPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeMembersManagementPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeMembersManagementPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeMembersManagementPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderChangeMembersManagementPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyDetails.java new file mode 100644 index 000000000..4af135d31 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.MemberPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed who can become member of shared folder. + */ +public class SharedFolderChangeMembersPolicyDetails { + // struct team_log.SharedFolderChangeMembersPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final MemberPolicy newValue; + @Nullable + protected final MemberPolicy previousValue; + + /** + * Changed who can become member of shared folder. + * + * @param newValue New external invite policy. Must not be {@code null}. + * @param previousValue Previous external invite policy. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersPolicyDetails(@Nonnull MemberPolicy newValue, @Nullable MemberPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed who can become member of shared folder. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New external invite policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersPolicyDetails(@Nonnull MemberPolicy newValue) { + this(newValue, null); + } + + /** + * New external invite policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberPolicy getNewValue() { + return newValue; + } + + /** + * Previous external invite policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public MemberPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeMembersPolicyDetails other = (SharedFolderChangeMembersPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeMembersPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + MemberPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeMembersPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeMembersPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + MemberPolicy f_newValue = null; + MemberPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = MemberPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(MemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedFolderChangeMembersPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyType.java new file mode 100644 index 000000000..60d677288 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderChangeMembersPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderChangeMembersPolicyType { + // struct team_log.SharedFolderChangeMembersPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderChangeMembersPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderChangeMembersPolicyType other = (SharedFolderChangeMembersPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderChangeMembersPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderChangeMembersPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderChangeMembersPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderChangeMembersPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderCreateDetails.java new file mode 100644 index 000000000..5c7becaeb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderCreateDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Created shared folder. + */ +public class SharedFolderCreateDetails { + // struct team_log.SharedFolderCreateDetails (team_log_generated.stone) + + @Nullable + protected final String targetNsId; + + /** + * Created shared folder. + * + * @param targetNsId Target namespace ID. + */ + public SharedFolderCreateDetails(@Nullable String targetNsId) { + this.targetNsId = targetNsId; + } + + /** + * Created shared folder. + * + *

The default values for unset fields will be used.

+ */ + public SharedFolderCreateDetails() { + this(null); + } + + /** + * Target namespace ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTargetNsId() { + return targetNsId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetNsId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderCreateDetails other = (SharedFolderCreateDetails) obj; + return (this.targetNsId == other.targetNsId) || (this.targetNsId != null && this.targetNsId.equals(other.targetNsId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.targetNsId != null) { + g.writeFieldName("target_ns_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.targetNsId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_targetNsId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_ns_id".equals(field)) { + f_targetNsId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedFolderCreateDetails(f_targetNsId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderCreateType.java new file mode 100644 index 000000000..5fe5588bd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderCreateType { + // struct team_log.SharedFolderCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderCreateType other = (SharedFolderCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails.java new file mode 100644 index 000000000..b6ce8eaf6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Declined team member's invite to shared folder. + */ +public class SharedFolderDeclineInvitationDetails { + // struct team_log.SharedFolderDeclineInvitationDetails (team_log_generated.stone) + + + /** + * Declined team member's invite to shared folder. + */ + public SharedFolderDeclineInvitationDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderDeclineInvitationDetails other = (SharedFolderDeclineInvitationDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderDeclineInvitationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderDeclineInvitationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderDeclineInvitationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedFolderDeclineInvitationDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType.java new file mode 100644 index 000000000..a599222f8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderDeclineInvitationType { + // struct team_log.SharedFolderDeclineInvitationType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderDeclineInvitationType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderDeclineInvitationType other = (SharedFolderDeclineInvitationType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderDeclineInvitationType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderDeclineInvitationType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderDeclineInvitationType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderDeclineInvitationType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy.java new file mode 100644 index 000000000..2e9b289e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMembersInheritancePolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Specifies if a shared folder inherits its members from the parent folder. + */ +public enum SharedFolderMembersInheritancePolicy { + // union team_log.SharedFolderMembersInheritancePolicy (team_log_generated.stone) + DONT_INHERIT_MEMBERS, + INHERIT_MEMBERS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMembersInheritancePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DONT_INHERIT_MEMBERS: { + g.writeString("dont_inherit_members"); + break; + } + case INHERIT_MEMBERS: { + g.writeString("inherit_members"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedFolderMembersInheritancePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharedFolderMembersInheritancePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("dont_inherit_members".equals(tag)) { + value = SharedFolderMembersInheritancePolicy.DONT_INHERIT_MEMBERS; + } + else if ("inherit_members".equals(tag)) { + value = SharedFolderMembersInheritancePolicy.INHERIT_MEMBERS; + } + else { + value = SharedFolderMembersInheritancePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMountDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMountDetails.java new file mode 100644 index 000000000..52947a76a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMountDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added shared folder to own Dropbox. + */ +public class SharedFolderMountDetails { + // struct team_log.SharedFolderMountDetails (team_log_generated.stone) + + + /** + * Added shared folder to own Dropbox. + */ + public SharedFolderMountDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderMountDetails other = (SharedFolderMountDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMountDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderMountDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderMountDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedFolderMountDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMountType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMountType.java new file mode 100644 index 000000000..8dceb8adb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderMountType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderMountType { + // struct team_log.SharedFolderMountType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderMountType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderMountType other = (SharedFolderMountType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMountType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderMountType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderMountType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderMountType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderNestDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderNestDetails.java new file mode 100644 index 000000000..653397399 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderNestDetails.java @@ -0,0 +1,315 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed parent of shared folder. + */ +public class SharedFolderNestDetails { + // struct team_log.SharedFolderNestDetails (team_log_generated.stone) + + @Nullable + protected final String previousParentNsId; + @Nullable + protected final String newParentNsId; + @Nullable + protected final String previousNsPath; + @Nullable + protected final String newNsPath; + + /** + * Changed parent of shared folder. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param previousParentNsId Previous parent namespace ID. + * @param newParentNsId New parent namespace ID. + * @param previousNsPath Previous namespace path. + * @param newNsPath New namespace path. + */ + public SharedFolderNestDetails(@Nullable String previousParentNsId, @Nullable String newParentNsId, @Nullable String previousNsPath, @Nullable String newNsPath) { + this.previousParentNsId = previousParentNsId; + this.newParentNsId = newParentNsId; + this.previousNsPath = previousNsPath; + this.newNsPath = newNsPath; + } + + /** + * Changed parent of shared folder. + * + *

The default values for unset fields will be used.

+ */ + public SharedFolderNestDetails() { + this(null, null, null, null); + } + + /** + * Previous parent namespace ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousParentNsId() { + return previousParentNsId; + } + + /** + * New parent namespace ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewParentNsId() { + return newParentNsId; + } + + /** + * Previous namespace path. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousNsPath() { + return previousNsPath; + } + + /** + * New namespace path. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewNsPath() { + return newNsPath; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharedFolderNestDetails}. + */ + public static class Builder { + + protected String previousParentNsId; + protected String newParentNsId; + protected String previousNsPath; + protected String newNsPath; + + protected Builder() { + this.previousParentNsId = null; + this.newParentNsId = null; + this.previousNsPath = null; + this.newNsPath = null; + } + + /** + * Set value for optional field. + * + * @param previousParentNsId Previous parent namespace ID. + * + * @return this builder + */ + public Builder withPreviousParentNsId(String previousParentNsId) { + this.previousParentNsId = previousParentNsId; + return this; + } + + /** + * Set value for optional field. + * + * @param newParentNsId New parent namespace ID. + * + * @return this builder + */ + public Builder withNewParentNsId(String newParentNsId) { + this.newParentNsId = newParentNsId; + return this; + } + + /** + * Set value for optional field. + * + * @param previousNsPath Previous namespace path. + * + * @return this builder + */ + public Builder withPreviousNsPath(String previousNsPath) { + this.previousNsPath = previousNsPath; + return this; + } + + /** + * Set value for optional field. + * + * @param newNsPath New namespace path. + * + * @return this builder + */ + public Builder withNewNsPath(String newNsPath) { + this.newNsPath = newNsPath; + return this; + } + + /** + * Builds an instance of {@link SharedFolderNestDetails} configured with + * this builder's values + * + * @return new instance of {@link SharedFolderNestDetails} + */ + public SharedFolderNestDetails build() { + return new SharedFolderNestDetails(previousParentNsId, newParentNsId, previousNsPath, newNsPath); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousParentNsId, + this.newParentNsId, + this.previousNsPath, + this.newNsPath + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderNestDetails other = (SharedFolderNestDetails) obj; + return ((this.previousParentNsId == other.previousParentNsId) || (this.previousParentNsId != null && this.previousParentNsId.equals(other.previousParentNsId))) + && ((this.newParentNsId == other.newParentNsId) || (this.newParentNsId != null && this.newParentNsId.equals(other.newParentNsId))) + && ((this.previousNsPath == other.previousNsPath) || (this.previousNsPath != null && this.previousNsPath.equals(other.previousNsPath))) + && ((this.newNsPath == other.newNsPath) || (this.newNsPath != null && this.newNsPath.equals(other.newNsPath))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderNestDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.previousParentNsId != null) { + g.writeFieldName("previous_parent_ns_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousParentNsId, g); + } + if (value.newParentNsId != null) { + g.writeFieldName("new_parent_ns_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newParentNsId, g); + } + if (value.previousNsPath != null) { + g.writeFieldName("previous_ns_path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousNsPath, g); + } + if (value.newNsPath != null) { + g.writeFieldName("new_ns_path"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newNsPath, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderNestDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderNestDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousParentNsId = null; + String f_newParentNsId = null; + String f_previousNsPath = null; + String f_newNsPath = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_parent_ns_id".equals(field)) { + f_previousParentNsId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_parent_ns_id".equals(field)) { + f_newParentNsId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_ns_path".equals(field)) { + f_previousNsPath = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_ns_path".equals(field)) { + f_newNsPath = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedFolderNestDetails(f_previousParentNsId, f_newParentNsId, f_previousNsPath, f_newNsPath); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderNestType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderNestType.java new file mode 100644 index 000000000..458c207a3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderNestType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderNestType { + // struct team_log.SharedFolderNestType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderNestType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderNestType other = (SharedFolderNestType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderNestType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderNestType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderNestType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderNestType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails.java new file mode 100644 index 000000000..8f8ed02f1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails.java @@ -0,0 +1,202 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Transferred ownership of shared folder to another member. + */ +public class SharedFolderTransferOwnershipDetails { + // struct team_log.SharedFolderTransferOwnershipDetails (team_log_generated.stone) + + @Nullable + protected final String previousOwnerEmail; + @Nonnull + protected final String newOwnerEmail; + + /** + * Transferred ownership of shared folder to another member. + * + * @param newOwnerEmail The email address of the new shared folder owner. + * Must have length of at most 255 and not be {@code null}. + * @param previousOwnerEmail The email address of the previous shared + * folder owner. Must have length of at most 255. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderTransferOwnershipDetails(@Nonnull String newOwnerEmail, @Nullable String previousOwnerEmail) { + if (previousOwnerEmail != null) { + if (previousOwnerEmail.length() > 255) { + throw new IllegalArgumentException("String 'previousOwnerEmail' is longer than 255"); + } + } + this.previousOwnerEmail = previousOwnerEmail; + if (newOwnerEmail == null) { + throw new IllegalArgumentException("Required value for 'newOwnerEmail' is null"); + } + if (newOwnerEmail.length() > 255) { + throw new IllegalArgumentException("String 'newOwnerEmail' is longer than 255"); + } + this.newOwnerEmail = newOwnerEmail; + } + + /** + * Transferred ownership of shared folder to another member. + * + *

The default values for unset fields will be used.

+ * + * @param newOwnerEmail The email address of the new shared folder owner. + * Must have length of at most 255 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderTransferOwnershipDetails(@Nonnull String newOwnerEmail) { + this(newOwnerEmail, null); + } + + /** + * The email address of the new shared folder owner. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewOwnerEmail() { + return newOwnerEmail; + } + + /** + * The email address of the previous shared folder owner. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousOwnerEmail() { + return previousOwnerEmail; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousOwnerEmail, + this.newOwnerEmail + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderTransferOwnershipDetails other = (SharedFolderTransferOwnershipDetails) obj; + return ((this.newOwnerEmail == other.newOwnerEmail) || (this.newOwnerEmail.equals(other.newOwnerEmail))) + && ((this.previousOwnerEmail == other.previousOwnerEmail) || (this.previousOwnerEmail != null && this.previousOwnerEmail.equals(other.previousOwnerEmail))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderTransferOwnershipDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_owner_email"); + StoneSerializers.string().serialize(value.newOwnerEmail, g); + if (value.previousOwnerEmail != null) { + g.writeFieldName("previous_owner_email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousOwnerEmail, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderTransferOwnershipDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderTransferOwnershipDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newOwnerEmail = null; + String f_previousOwnerEmail = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_owner_email".equals(field)) { + f_newOwnerEmail = StoneSerializers.string().deserialize(p); + } + else if ("previous_owner_email".equals(field)) { + f_previousOwnerEmail = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newOwnerEmail == null) { + throw new JsonParseException(p, "Required field \"new_owner_email\" missing."); + } + value = new SharedFolderTransferOwnershipDetails(f_newOwnerEmail, f_previousOwnerEmail); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType.java new file mode 100644 index 000000000..845797e98 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderTransferOwnershipType { + // struct team_log.SharedFolderTransferOwnershipType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderTransferOwnershipType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderTransferOwnershipType other = (SharedFolderTransferOwnershipType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderTransferOwnershipType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderTransferOwnershipType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderTransferOwnershipType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderTransferOwnershipType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderUnmountDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderUnmountDetails.java new file mode 100644 index 000000000..8c7449a85 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderUnmountDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Deleted shared folder from Dropbox. + */ +public class SharedFolderUnmountDetails { + // struct team_log.SharedFolderUnmountDetails (team_log_generated.stone) + + + /** + * Deleted shared folder from Dropbox. + */ + public SharedFolderUnmountDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderUnmountDetails other = (SharedFolderUnmountDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderUnmountDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderUnmountDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderUnmountDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedFolderUnmountDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderUnmountType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderUnmountType.java new file mode 100644 index 000000000..e3e123fbe --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedFolderUnmountType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedFolderUnmountType { + // struct team_log.SharedFolderUnmountType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedFolderUnmountType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedFolderUnmountType other = (SharedFolderUnmountType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderUnmountType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedFolderUnmountType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedFolderUnmountType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedFolderUnmountType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAccessLevel.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAccessLevel.java new file mode 100644 index 000000000..5d1689256 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAccessLevel.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Shared link access level. + */ +public enum SharedLinkAccessLevel { + // union team_log.SharedLinkAccessLevel (team_log_generated.stone) + NONE, + READER, + WRITER, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkAccessLevel value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case NONE: { + g.writeString("none"); + break; + } + case READER: { + g.writeString("reader"); + break; + } + case WRITER: { + g.writeString("writer"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedLinkAccessLevel deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkAccessLevel value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("none".equals(tag)) { + value = SharedLinkAccessLevel.NONE; + } + else if ("reader".equals(tag)) { + value = SharedLinkAccessLevel.READER; + } + else if ("writer".equals(tag)) { + value = SharedLinkAccessLevel.WRITER; + } + else { + value = SharedLinkAccessLevel.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAddExpiryDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAddExpiryDetails.java new file mode 100644 index 000000000..e2ceda52b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAddExpiryDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +/** + * Added shared link expiration date. + */ +public class SharedLinkAddExpiryDetails { + // struct team_log.SharedLinkAddExpiryDetails (team_log_generated.stone) + + @Nonnull + protected final Date newValue; + + /** + * Added shared link expiration date. + * + * @param newValue New shared link expiration date. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkAddExpiryDetails(@Nonnull Date newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = LangUtil.truncateMillis(newValue); + } + + /** + * New shared link expiration date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkAddExpiryDetails other = (SharedLinkAddExpiryDetails) obj; + return (this.newValue == other.newValue) || (this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkAddExpiryDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.timestamp().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkAddExpiryDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkAddExpiryDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedLinkAddExpiryDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAddExpiryType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAddExpiryType.java new file mode 100644 index 000000000..0261ab19a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkAddExpiryType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkAddExpiryType { + // struct team_log.SharedLinkAddExpiryType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkAddExpiryType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkAddExpiryType other = (SharedLinkAddExpiryType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkAddExpiryType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkAddExpiryType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkAddExpiryType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkAddExpiryType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails.java new file mode 100644 index 000000000..2e329696a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryDetails.java @@ -0,0 +1,247 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed shared link expiration date. + */ +public class SharedLinkChangeExpiryDetails { + // struct team_log.SharedLinkChangeExpiryDetails (team_log_generated.stone) + + @Nullable + protected final Date newValue; + @Nullable + protected final Date previousValue; + + /** + * Changed shared link expiration date. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New shared link expiration date. Might be missing due to + * historical data gap. + * @param previousValue Previous shared link expiration date. Might be + * missing due to historical data gap. + */ + public SharedLinkChangeExpiryDetails(@Nullable Date newValue, @Nullable Date previousValue) { + this.newValue = LangUtil.truncateMillis(newValue); + this.previousValue = LangUtil.truncateMillis(previousValue); + } + + /** + * Changed shared link expiration date. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkChangeExpiryDetails() { + this(null, null); + } + + /** + * New shared link expiration date. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getNewValue() { + return newValue; + } + + /** + * Previous shared link expiration date. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharedLinkChangeExpiryDetails}. + */ + public static class Builder { + + protected Date newValue; + protected Date previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New shared link expiration date. Might be missing + * due to historical data gap. + * + * @return this builder + */ + public Builder withNewValue(Date newValue) { + this.newValue = LangUtil.truncateMillis(newValue); + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous shared link expiration date. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(Date previousValue) { + this.previousValue = LangUtil.truncateMillis(previousValue); + return this; + } + + /** + * Builds an instance of {@link SharedLinkChangeExpiryDetails} + * configured with this builder's values + * + * @return new instance of {@link SharedLinkChangeExpiryDetails} + */ + public SharedLinkChangeExpiryDetails build() { + return new SharedLinkChangeExpiryDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkChangeExpiryDetails other = (SharedLinkChangeExpiryDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkChangeExpiryDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkChangeExpiryDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkChangeExpiryDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_newValue = null; + Date f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkChangeExpiryDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryType.java new file mode 100644 index 000000000..4ebe2aa75 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeExpiryType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkChangeExpiryType { + // struct team_log.SharedLinkChangeExpiryType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkChangeExpiryType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkChangeExpiryType other = (SharedLinkChangeExpiryType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkChangeExpiryType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkChangeExpiryType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkChangeExpiryType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkChangeExpiryType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityDetails.java new file mode 100644 index 000000000..1de5c8083 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed visibility of shared link. + */ +public class SharedLinkChangeVisibilityDetails { + // struct team_log.SharedLinkChangeVisibilityDetails (team_log_generated.stone) + + @Nonnull + protected final SharedLinkVisibility newValue; + @Nullable + protected final SharedLinkVisibility previousValue; + + /** + * Changed visibility of shared link. + * + * @param newValue New shared link visibility. Must not be {@code null}. + * @param previousValue Previous shared link visibility. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkChangeVisibilityDetails(@Nonnull SharedLinkVisibility newValue, @Nullable SharedLinkVisibility previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed visibility of shared link. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New shared link visibility. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkChangeVisibilityDetails(@Nonnull SharedLinkVisibility newValue) { + this(newValue, null); + } + + /** + * New shared link visibility. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedLinkVisibility getNewValue() { + return newValue; + } + + /** + * Previous shared link visibility. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkVisibility getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkChangeVisibilityDetails other = (SharedLinkChangeVisibilityDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkChangeVisibilityDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SharedLinkVisibility.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SharedLinkVisibility.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkChangeVisibilityDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkChangeVisibilityDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharedLinkVisibility f_newValue = null; + SharedLinkVisibility f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SharedLinkVisibility.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SharedLinkVisibility.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedLinkChangeVisibilityDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityType.java new file mode 100644 index 000000000..9f88bf808 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkChangeVisibilityType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkChangeVisibilityType { + // struct team_log.SharedLinkChangeVisibilityType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkChangeVisibilityType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkChangeVisibilityType other = (SharedLinkChangeVisibilityType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkChangeVisibilityType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkChangeVisibilityType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkChangeVisibilityType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkChangeVisibilityType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCopyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCopyDetails.java new file mode 100644 index 000000000..f44a4aa49 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCopyDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added file/folder to Dropbox from shared link. + */ +public class SharedLinkCopyDetails { + // struct team_log.SharedLinkCopyDetails (team_log_generated.stone) + + @Nullable + protected final UserLogInfo sharedLinkOwner; + + /** + * Added file/folder to Dropbox from shared link. + * + * @param sharedLinkOwner Shared link owner details. Might be missing due + * to historical data gap. + */ + public SharedLinkCopyDetails(@Nullable UserLogInfo sharedLinkOwner) { + this.sharedLinkOwner = sharedLinkOwner; + } + + /** + * Added file/folder to Dropbox from shared link. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkCopyDetails() { + this(null); + } + + /** + * Shared link owner details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedLinkOwner() { + return sharedLinkOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkCopyDetails other = (SharedLinkCopyDetails) obj; + return (this.sharedLinkOwner == other.sharedLinkOwner) || (this.sharedLinkOwner != null && this.sharedLinkOwner.equals(other.sharedLinkOwner)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkCopyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkOwner != null) { + g.writeFieldName("shared_link_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedLinkOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkCopyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkCopyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserLogInfo f_sharedLinkOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_owner".equals(field)) { + f_sharedLinkOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkCopyDetails(f_sharedLinkOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCopyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCopyType.java new file mode 100644 index 000000000..e6f75ac7f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCopyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkCopyType { + // struct team_log.SharedLinkCopyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkCopyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkCopyType other = (SharedLinkCopyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkCopyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkCopyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkCopyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkCopyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCreateDetails.java new file mode 100644 index 000000000..81013dae1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCreateDetails.java @@ -0,0 +1,156 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Created shared link. + */ +public class SharedLinkCreateDetails { + // struct team_log.SharedLinkCreateDetails (team_log_generated.stone) + + @Nullable + protected final SharedLinkAccessLevel sharedLinkAccessLevel; + + /** + * Created shared link. + * + * @param sharedLinkAccessLevel Defines who can access the shared link. + * Might be missing due to historical data gap. + */ + public SharedLinkCreateDetails(@Nullable SharedLinkAccessLevel sharedLinkAccessLevel) { + this.sharedLinkAccessLevel = sharedLinkAccessLevel; + } + + /** + * Created shared link. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkCreateDetails() { + this(null); + } + + /** + * Defines who can access the shared link. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharedLinkAccessLevel getSharedLinkAccessLevel() { + return sharedLinkAccessLevel; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkAccessLevel + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkCreateDetails other = (SharedLinkCreateDetails) obj; + return (this.sharedLinkAccessLevel == other.sharedLinkAccessLevel) || (this.sharedLinkAccessLevel != null && this.sharedLinkAccessLevel.equals(other.sharedLinkAccessLevel)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkAccessLevel != null) { + g.writeFieldName("shared_link_access_level"); + StoneSerializers.nullable(SharedLinkAccessLevel.Serializer.INSTANCE).serialize(value.sharedLinkAccessLevel, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharedLinkAccessLevel f_sharedLinkAccessLevel = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_access_level".equals(field)) { + f_sharedLinkAccessLevel = StoneSerializers.nullable(SharedLinkAccessLevel.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkCreateDetails(f_sharedLinkAccessLevel); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCreateType.java new file mode 100644 index 000000000..7e3146096 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkCreateType { + // struct team_log.SharedLinkCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkCreateType other = (SharedLinkCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDisableDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDisableDetails.java new file mode 100644 index 000000000..38e1c1feb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDisableDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed shared link. + */ +public class SharedLinkDisableDetails { + // struct team_log.SharedLinkDisableDetails (team_log_generated.stone) + + @Nullable + protected final UserLogInfo sharedLinkOwner; + + /** + * Removed shared link. + * + * @param sharedLinkOwner Shared link owner details. Might be missing due + * to historical data gap. + */ + public SharedLinkDisableDetails(@Nullable UserLogInfo sharedLinkOwner) { + this.sharedLinkOwner = sharedLinkOwner; + } + + /** + * Removed shared link. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkDisableDetails() { + this(null); + } + + /** + * Shared link owner details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedLinkOwner() { + return sharedLinkOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkDisableDetails other = (SharedLinkDisableDetails) obj; + return (this.sharedLinkOwner == other.sharedLinkOwner) || (this.sharedLinkOwner != null && this.sharedLinkOwner.equals(other.sharedLinkOwner)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkDisableDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkOwner != null) { + g.writeFieldName("shared_link_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedLinkOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkDisableDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkDisableDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserLogInfo f_sharedLinkOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_owner".equals(field)) { + f_sharedLinkOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkDisableDetails(f_sharedLinkOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDisableType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDisableType.java new file mode 100644 index 000000000..f6fe9e632 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDisableType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkDisableType { + // struct team_log.SharedLinkDisableType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkDisableType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkDisableType other = (SharedLinkDisableType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkDisableType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkDisableType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkDisableType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkDisableType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDownloadDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDownloadDetails.java new file mode 100644 index 000000000..de409bc4d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDownloadDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Downloaded file/folder from shared link. + */ +public class SharedLinkDownloadDetails { + // struct team_log.SharedLinkDownloadDetails (team_log_generated.stone) + + @Nullable + protected final UserLogInfo sharedLinkOwner; + + /** + * Downloaded file/folder from shared link. + * + * @param sharedLinkOwner Shared link owner details. Might be missing due + * to historical data gap. + */ + public SharedLinkDownloadDetails(@Nullable UserLogInfo sharedLinkOwner) { + this.sharedLinkOwner = sharedLinkOwner; + } + + /** + * Downloaded file/folder from shared link. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkDownloadDetails() { + this(null); + } + + /** + * Shared link owner details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedLinkOwner() { + return sharedLinkOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkDownloadDetails other = (SharedLinkDownloadDetails) obj; + return (this.sharedLinkOwner == other.sharedLinkOwner) || (this.sharedLinkOwner != null && this.sharedLinkOwner.equals(other.sharedLinkOwner)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkDownloadDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkOwner != null) { + g.writeFieldName("shared_link_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedLinkOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkDownloadDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkDownloadDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserLogInfo f_sharedLinkOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_owner".equals(field)) { + f_sharedLinkOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkDownloadDetails(f_sharedLinkOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDownloadType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDownloadType.java new file mode 100644 index 000000000..2972d7e9b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkDownloadType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkDownloadType { + // struct team_log.SharedLinkDownloadType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkDownloadType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkDownloadType other = (SharedLinkDownloadType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkDownloadType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkDownloadType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkDownloadType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkDownloadType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryDetails.java new file mode 100644 index 000000000..fc32d4467 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed shared link expiration date. + */ +public class SharedLinkRemoveExpiryDetails { + // struct team_log.SharedLinkRemoveExpiryDetails (team_log_generated.stone) + + @Nullable + protected final Date previousValue; + + /** + * Removed shared link expiration date. + * + * @param previousValue Previous shared link expiration date. Might be + * missing due to historical data gap. + */ + public SharedLinkRemoveExpiryDetails(@Nullable Date previousValue) { + this.previousValue = LangUtil.truncateMillis(previousValue); + } + + /** + * Removed shared link expiration date. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkRemoveExpiryDetails() { + this(null); + } + + /** + * Previous shared link expiration date. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkRemoveExpiryDetails other = (SharedLinkRemoveExpiryDetails) obj; + return (this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkRemoveExpiryDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkRemoveExpiryDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkRemoveExpiryDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkRemoveExpiryDetails(f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryType.java new file mode 100644 index 000000000..8d711a5c8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkRemoveExpiryType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkRemoveExpiryType { + // struct team_log.SharedLinkRemoveExpiryType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkRemoveExpiryType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkRemoveExpiryType other = (SharedLinkRemoveExpiryType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkRemoveExpiryType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkRemoveExpiryType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkRemoveExpiryType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkRemoveExpiryType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails.java new file mode 100644 index 000000000..55f4c7166 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationDetails.java @@ -0,0 +1,295 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added an expiration date to the shared link. + */ +public class SharedLinkSettingsAddExpirationDetails { + // struct team_log.SharedLinkSettingsAddExpirationDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + @Nullable + protected final Date newValue; + + /** + * Added an expiration date to the shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * @param newValue New shared content link expiration date. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAddExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink, @Nullable Date newValue) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + this.newValue = LangUtil.truncateMillis(newValue); + } + + /** + * Added an expiration date to the shared link. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAddExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + /** + * New shared content link expiration date. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getNewValue() { + return newValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel sharedContentAccessLevel) { + return new Builder(sharedContentAccessLevel); + } + + /** + * Builder for {@link SharedLinkSettingsAddExpirationDetails}. + */ + public static class Builder { + protected final AccessLevel sharedContentAccessLevel; + + protected String sharedContentLink; + protected Date newValue; + + protected Builder(AccessLevel sharedContentAccessLevel) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = null; + this.newValue = null; + } + + /** + * Set value for optional field. + * + * @param sharedContentLink Shared content link. + * + * @return this builder + */ + public Builder withSharedContentLink(String sharedContentLink) { + this.sharedContentLink = sharedContentLink; + return this; + } + + /** + * Set value for optional field. + * + * @param newValue New shared content link expiration date. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withNewValue(Date newValue) { + this.newValue = LangUtil.truncateMillis(newValue); + return this; + } + + /** + * Builds an instance of {@link SharedLinkSettingsAddExpirationDetails} + * configured with this builder's values + * + * @return new instance of {@link + * SharedLinkSettingsAddExpirationDetails} + */ + public SharedLinkSettingsAddExpirationDetails build() { + return new SharedLinkSettingsAddExpirationDetails(sharedContentAccessLevel, sharedContentLink, newValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAddExpirationDetails other = (SharedLinkSettingsAddExpirationDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + && ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAddExpirationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.newValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAddExpirationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAddExpirationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + Date f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsAddExpirationDetails(f_sharedContentAccessLevel, f_sharedContentLink, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationType.java new file mode 100644 index 000000000..39ebcdb51 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddExpirationType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsAddExpirationType { + // struct team_log.SharedLinkSettingsAddExpirationType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAddExpirationType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAddExpirationType other = (SharedLinkSettingsAddExpirationType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAddExpirationType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAddExpirationType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAddExpirationType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsAddExpirationType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordDetails.java new file mode 100644 index 000000000..7ce0df99b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added a password to the shared link. + */ +public class SharedLinkSettingsAddPasswordDetails { + // struct team_log.SharedLinkSettingsAddPasswordDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + + /** + * Added a password to the shared link. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAddPasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + } + + /** + * Added a password to the shared link. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAddPasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAddPasswordDetails other = (SharedLinkSettingsAddPasswordDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAddPasswordDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAddPasswordDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAddPasswordDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsAddPasswordDetails(f_sharedContentAccessLevel, f_sharedContentLink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordType.java new file mode 100644 index 000000000..752bf2b03 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAddPasswordType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsAddPasswordType { + // struct team_log.SharedLinkSettingsAddPasswordType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAddPasswordType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAddPasswordType other = (SharedLinkSettingsAddPasswordType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAddPasswordType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAddPasswordType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAddPasswordType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsAddPasswordType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledDetails.java new file mode 100644 index 000000000..dc4587a16 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Disabled downloads. + */ +public class SharedLinkSettingsAllowDownloadDisabledDetails { + // struct team_log.SharedLinkSettingsAllowDownloadDisabledDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + + /** + * Disabled downloads. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAllowDownloadDisabledDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + } + + /** + * Disabled downloads. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAllowDownloadDisabledDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAllowDownloadDisabledDetails other = (SharedLinkSettingsAllowDownloadDisabledDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAllowDownloadDisabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAllowDownloadDisabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAllowDownloadDisabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsAllowDownloadDisabledDetails(f_sharedContentAccessLevel, f_sharedContentLink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledType.java new file mode 100644 index 000000000..e38cbc317 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadDisabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsAllowDownloadDisabledType { + // struct team_log.SharedLinkSettingsAllowDownloadDisabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAllowDownloadDisabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAllowDownloadDisabledType other = (SharedLinkSettingsAllowDownloadDisabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAllowDownloadDisabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAllowDownloadDisabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAllowDownloadDisabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsAllowDownloadDisabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledDetails.java new file mode 100644 index 000000000..dd1758684 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled downloads. + */ +public class SharedLinkSettingsAllowDownloadEnabledDetails { + // struct team_log.SharedLinkSettingsAllowDownloadEnabledDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + + /** + * Enabled downloads. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAllowDownloadEnabledDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + } + + /** + * Enabled downloads. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAllowDownloadEnabledDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAllowDownloadEnabledDetails other = (SharedLinkSettingsAllowDownloadEnabledDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAllowDownloadEnabledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAllowDownloadEnabledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAllowDownloadEnabledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsAllowDownloadEnabledDetails(f_sharedContentAccessLevel, f_sharedContentLink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledType.java new file mode 100644 index 000000000..c54f58811 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsAllowDownloadEnabledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsAllowDownloadEnabledType { + // struct team_log.SharedLinkSettingsAllowDownloadEnabledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsAllowDownloadEnabledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsAllowDownloadEnabledType other = (SharedLinkSettingsAllowDownloadEnabledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsAllowDownloadEnabledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsAllowDownloadEnabledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsAllowDownloadEnabledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsAllowDownloadEnabledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails.java new file mode 100644 index 000000000..8c1c43b83 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceDetails.java @@ -0,0 +1,326 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; +import com.dropbox.core.v2.sharing.LinkAudience; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed the audience of the shared link. + */ +public class SharedLinkSettingsChangeAudienceDetails { + // struct team_log.SharedLinkSettingsChangeAudienceDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + @Nonnull + protected final LinkAudience newValue; + @Nullable + protected final LinkAudience previousValue; + + /** + * Changed the audience of the shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param newValue New link audience value. Must not be {@code null}. + * @param sharedContentLink Shared content link. + * @param previousValue Previous link audience value. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangeAudienceDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nonnull LinkAudience newValue, @Nullable String sharedContentLink, @Nullable LinkAudience previousValue) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed the audience of the shared link. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param newValue New link audience value. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangeAudienceDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nonnull LinkAudience newValue) { + this(sharedContentAccessLevel, newValue, null, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * New link audience value. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public LinkAudience getNewValue() { + return newValue; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + /** + * Previous link audience value. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public LinkAudience getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param newValue New link audience value. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel sharedContentAccessLevel, LinkAudience newValue) { + return new Builder(sharedContentAccessLevel, newValue); + } + + /** + * Builder for {@link SharedLinkSettingsChangeAudienceDetails}. + */ + public static class Builder { + protected final AccessLevel sharedContentAccessLevel; + protected final LinkAudience newValue; + + protected String sharedContentLink; + protected LinkAudience previousValue; + + protected Builder(AccessLevel sharedContentAccessLevel, LinkAudience newValue) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.sharedContentLink = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param sharedContentLink Shared content link. + * + * @return this builder + */ + public Builder withSharedContentLink(String sharedContentLink) { + this.sharedContentLink = sharedContentLink; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous link audience value. + * + * @return this builder + */ + public Builder withPreviousValue(LinkAudience previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link SharedLinkSettingsChangeAudienceDetails} + * configured with this builder's values + * + * @return new instance of {@link + * SharedLinkSettingsChangeAudienceDetails} + */ + public SharedLinkSettingsChangeAudienceDetails build() { + return new SharedLinkSettingsChangeAudienceDetails(sharedContentAccessLevel, newValue, sharedContentLink, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink, + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsChangeAudienceDetails other = (SharedLinkSettingsChangeAudienceDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsChangeAudienceDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + g.writeFieldName("new_value"); + LinkAudience.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsChangeAudienceDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsChangeAudienceDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + LinkAudience f_newValue = null; + String f_sharedContentLink = null; + LinkAudience f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = LinkAudience.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(LinkAudience.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharedLinkSettingsChangeAudienceDetails(f_sharedContentAccessLevel, f_newValue, f_sharedContentLink, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceType.java new file mode 100644 index 000000000..998f324b6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeAudienceType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsChangeAudienceType { + // struct team_log.SharedLinkSettingsChangeAudienceType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangeAudienceType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsChangeAudienceType other = (SharedLinkSettingsChangeAudienceType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsChangeAudienceType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsChangeAudienceType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsChangeAudienceType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsChangeAudienceType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails.java new file mode 100644 index 000000000..fb6cc2154 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationDetails.java @@ -0,0 +1,337 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed the expiration date of the shared link. + */ +public class SharedLinkSettingsChangeExpirationDetails { + // struct team_log.SharedLinkSettingsChangeExpirationDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + @Nullable + protected final Date newValue; + @Nullable + protected final Date previousValue; + + /** + * Changed the expiration date of the shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * @param newValue New shared content link expiration date. Might be + * missing due to historical data gap. + * @param previousValue Previous shared content link expiration date. Might + * be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangeExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink, @Nullable Date newValue, @Nullable Date previousValue) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + this.newValue = LangUtil.truncateMillis(newValue); + this.previousValue = LangUtil.truncateMillis(previousValue); + } + + /** + * Changed the expiration date of the shared link. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangeExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null, null, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + /** + * New shared content link expiration date. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getNewValue() { + return newValue; + } + + /** + * Previous shared content link expiration date. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel sharedContentAccessLevel) { + return new Builder(sharedContentAccessLevel); + } + + /** + * Builder for {@link SharedLinkSettingsChangeExpirationDetails}. + */ + public static class Builder { + protected final AccessLevel sharedContentAccessLevel; + + protected String sharedContentLink; + protected Date newValue; + protected Date previousValue; + + protected Builder(AccessLevel sharedContentAccessLevel) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = null; + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param sharedContentLink Shared content link. + * + * @return this builder + */ + public Builder withSharedContentLink(String sharedContentLink) { + this.sharedContentLink = sharedContentLink; + return this; + } + + /** + * Set value for optional field. + * + * @param newValue New shared content link expiration date. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withNewValue(Date newValue) { + this.newValue = LangUtil.truncateMillis(newValue); + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous shared content link expiration date. + * Might be missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(Date previousValue) { + this.previousValue = LangUtil.truncateMillis(previousValue); + return this; + } + + /** + * Builds an instance of {@link + * SharedLinkSettingsChangeExpirationDetails} configured with this + * builder's values + * + * @return new instance of {@link + * SharedLinkSettingsChangeExpirationDetails} + */ + public SharedLinkSettingsChangeExpirationDetails build() { + return new SharedLinkSettingsChangeExpirationDetails(sharedContentAccessLevel, sharedContentLink, newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink, + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsChangeExpirationDetails other = (SharedLinkSettingsChangeExpirationDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + && ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsChangeExpirationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsChangeExpirationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsChangeExpirationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + Date f_newValue = null; + Date f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsChangeExpirationDetails(f_sharedContentAccessLevel, f_sharedContentLink, f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationType.java new file mode 100644 index 000000000..cb8efb0ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangeExpirationType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsChangeExpirationType { + // struct team_log.SharedLinkSettingsChangeExpirationType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangeExpirationType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsChangeExpirationType other = (SharedLinkSettingsChangeExpirationType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsChangeExpirationType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsChangeExpirationType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsChangeExpirationType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsChangeExpirationType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordDetails.java new file mode 100644 index 000000000..38ac34cf1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed the password of the shared link. + */ +public class SharedLinkSettingsChangePasswordDetails { + // struct team_log.SharedLinkSettingsChangePasswordDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + + /** + * Changed the password of the shared link. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + } + + /** + * Changed the password of the shared link. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsChangePasswordDetails other = (SharedLinkSettingsChangePasswordDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsChangePasswordDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsChangePasswordDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsChangePasswordDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsChangePasswordDetails(f_sharedContentAccessLevel, f_sharedContentLink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordType.java new file mode 100644 index 000000000..f6541f7cc --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsChangePasswordType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsChangePasswordType { + // struct team_log.SharedLinkSettingsChangePasswordType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsChangePasswordType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsChangePasswordType other = (SharedLinkSettingsChangePasswordType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsChangePasswordType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsChangePasswordType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsChangePasswordType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsChangePasswordType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails.java new file mode 100644 index 000000000..ca2d0c412 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationDetails.java @@ -0,0 +1,296 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed the expiration date from the shared link. + */ +public class SharedLinkSettingsRemoveExpirationDetails { + // struct team_log.SharedLinkSettingsRemoveExpirationDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + @Nullable + protected final Date previousValue; + + /** + * Removed the expiration date from the shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * @param previousValue Previous shared link expiration date. Might be + * missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsRemoveExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink, @Nullable Date previousValue) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + this.previousValue = LangUtil.truncateMillis(previousValue); + } + + /** + * Removed the expiration date from the shared link. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsRemoveExpirationDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + /** + * Previous shared link expiration date. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(AccessLevel sharedContentAccessLevel) { + return new Builder(sharedContentAccessLevel); + } + + /** + * Builder for {@link SharedLinkSettingsRemoveExpirationDetails}. + */ + public static class Builder { + protected final AccessLevel sharedContentAccessLevel; + + protected String sharedContentLink; + protected Date previousValue; + + protected Builder(AccessLevel sharedContentAccessLevel) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param sharedContentLink Shared content link. + * + * @return this builder + */ + public Builder withSharedContentLink(String sharedContentLink) { + this.sharedContentLink = sharedContentLink; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous shared link expiration date. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(Date previousValue) { + this.previousValue = LangUtil.truncateMillis(previousValue); + return this; + } + + /** + * Builds an instance of {@link + * SharedLinkSettingsRemoveExpirationDetails} configured with this + * builder's values + * + * @return new instance of {@link + * SharedLinkSettingsRemoveExpirationDetails} + */ + public SharedLinkSettingsRemoveExpirationDetails build() { + return new SharedLinkSettingsRemoveExpirationDetails(sharedContentAccessLevel, sharedContentLink, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsRemoveExpirationDetails other = (SharedLinkSettingsRemoveExpirationDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsRemoveExpirationDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsRemoveExpirationDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsRemoveExpirationDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + Date f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsRemoveExpirationDetails(f_sharedContentAccessLevel, f_sharedContentLink, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationType.java new file mode 100644 index 000000000..891e4aeb9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemoveExpirationType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsRemoveExpirationType { + // struct team_log.SharedLinkSettingsRemoveExpirationType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsRemoveExpirationType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsRemoveExpirationType other = (SharedLinkSettingsRemoveExpirationType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsRemoveExpirationType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsRemoveExpirationType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsRemoveExpirationType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsRemoveExpirationType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordDetails.java new file mode 100644 index 000000000..81e1a9e9d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.sharing.AccessLevel; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Removed the password from the shared link. + */ +public class SharedLinkSettingsRemovePasswordDetails { + // struct team_log.SharedLinkSettingsRemovePasswordDetails (team_log_generated.stone) + + @Nonnull + protected final AccessLevel sharedContentAccessLevel; + @Nullable + protected final String sharedContentLink; + + /** + * Removed the password from the shared link. + * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * @param sharedContentLink Shared content link. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsRemovePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel, @Nullable String sharedContentLink) { + if (sharedContentAccessLevel == null) { + throw new IllegalArgumentException("Required value for 'sharedContentAccessLevel' is null"); + } + this.sharedContentAccessLevel = sharedContentAccessLevel; + this.sharedContentLink = sharedContentLink; + } + + /** + * Removed the password from the shared link. + * + *

The default values for unset fields will be used.

+ * + * @param sharedContentAccessLevel Shared content access level. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsRemovePasswordDetails(@Nonnull AccessLevel sharedContentAccessLevel) { + this(sharedContentAccessLevel, null); + } + + /** + * Shared content access level. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccessLevel getSharedContentAccessLevel() { + return sharedContentAccessLevel; + } + + /** + * Shared content link. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSharedContentLink() { + return sharedContentLink; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedContentAccessLevel, + this.sharedContentLink + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsRemovePasswordDetails other = (SharedLinkSettingsRemovePasswordDetails) obj; + return ((this.sharedContentAccessLevel == other.sharedContentAccessLevel) || (this.sharedContentAccessLevel.equals(other.sharedContentAccessLevel))) + && ((this.sharedContentLink == other.sharedContentLink) || (this.sharedContentLink != null && this.sharedContentLink.equals(other.sharedContentLink))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsRemovePasswordDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_content_access_level"); + AccessLevel.Serializer.INSTANCE.serialize(value.sharedContentAccessLevel, g); + if (value.sharedContentLink != null) { + g.writeFieldName("shared_content_link"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sharedContentLink, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsRemovePasswordDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsRemovePasswordDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + AccessLevel f_sharedContentAccessLevel = null; + String f_sharedContentLink = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_content_access_level".equals(field)) { + f_sharedContentAccessLevel = AccessLevel.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_content_link".equals(field)) { + f_sharedContentLink = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedContentAccessLevel == null) { + throw new JsonParseException(p, "Required field \"shared_content_access_level\" missing."); + } + value = new SharedLinkSettingsRemovePasswordDetails(f_sharedContentAccessLevel, f_sharedContentLink); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordType.java new file mode 100644 index 000000000..5bd629f4b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkSettingsRemovePasswordType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkSettingsRemovePasswordType { + // struct team_log.SharedLinkSettingsRemovePasswordType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkSettingsRemovePasswordType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkSettingsRemovePasswordType other = (SharedLinkSettingsRemovePasswordType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkSettingsRemovePasswordType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkSettingsRemovePasswordType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkSettingsRemovePasswordType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkSettingsRemovePasswordType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkShareDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkShareDetails.java new file mode 100644 index 000000000..f4f3bc4f4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkShareDetails.java @@ -0,0 +1,264 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added members as audience of shared link. + */ +public class SharedLinkShareDetails { + // struct team_log.SharedLinkShareDetails (team_log_generated.stone) + + @Nullable + protected final UserLogInfo sharedLinkOwner; + @Nullable + protected final List externalUsers; + + /** + * Added members as audience of shared link. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param sharedLinkOwner Shared link owner details. Might be missing due + * to historical data gap. + * @param externalUsers Users without a Dropbox account that were added as + * shared link audience. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkShareDetails(@Nullable UserLogInfo sharedLinkOwner, @Nullable List externalUsers) { + this.sharedLinkOwner = sharedLinkOwner; + if (externalUsers != null) { + for (ExternalUserLogInfo x : externalUsers) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'externalUsers' is null"); + } + } + } + this.externalUsers = externalUsers; + } + + /** + * Added members as audience of shared link. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkShareDetails() { + this(null, null); + } + + /** + * Shared link owner details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedLinkOwner() { + return sharedLinkOwner; + } + + /** + * Users without a Dropbox account that were added as shared link audience. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getExternalUsers() { + return externalUsers; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SharedLinkShareDetails}. + */ + public static class Builder { + + protected UserLogInfo sharedLinkOwner; + protected List externalUsers; + + protected Builder() { + this.sharedLinkOwner = null; + this.externalUsers = null; + } + + /** + * Set value for optional field. + * + * @param sharedLinkOwner Shared link owner details. Might be missing + * due to historical data gap. + * + * @return this builder + */ + public Builder withSharedLinkOwner(UserLogInfo sharedLinkOwner) { + this.sharedLinkOwner = sharedLinkOwner; + return this; + } + + /** + * Set value for optional field. + * + * @param externalUsers Users without a Dropbox account that were added + * as shared link audience. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withExternalUsers(List externalUsers) { + if (externalUsers != null) { + for (ExternalUserLogInfo x : externalUsers) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'externalUsers' is null"); + } + } + } + this.externalUsers = externalUsers; + return this; + } + + /** + * Builds an instance of {@link SharedLinkShareDetails} configured with + * this builder's values + * + * @return new instance of {@link SharedLinkShareDetails} + */ + public SharedLinkShareDetails build() { + return new SharedLinkShareDetails(sharedLinkOwner, externalUsers); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkOwner, + this.externalUsers + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkShareDetails other = (SharedLinkShareDetails) obj; + return ((this.sharedLinkOwner == other.sharedLinkOwner) || (this.sharedLinkOwner != null && this.sharedLinkOwner.equals(other.sharedLinkOwner))) + && ((this.externalUsers == other.externalUsers) || (this.externalUsers != null && this.externalUsers.equals(other.externalUsers))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkShareDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkOwner != null) { + g.writeFieldName("shared_link_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedLinkOwner, g); + } + if (value.externalUsers != null) { + g.writeFieldName("external_users"); + StoneSerializers.nullable(StoneSerializers.list(ExternalUserLogInfo.Serializer.INSTANCE)).serialize(value.externalUsers, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkShareDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkShareDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserLogInfo f_sharedLinkOwner = null; + List f_externalUsers = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_owner".equals(field)) { + f_sharedLinkOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("external_users".equals(field)) { + f_externalUsers = StoneSerializers.nullable(StoneSerializers.list(ExternalUserLogInfo.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkShareDetails(f_sharedLinkOwner, f_externalUsers); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkShareType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkShareType.java new file mode 100644 index 000000000..0b6dc795b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkShareType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkShareType { + // struct team_log.SharedLinkShareType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkShareType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkShareType other = (SharedLinkShareType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkShareType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkShareType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkShareType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkShareType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkViewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkViewDetails.java new file mode 100644 index 000000000..592b9d41c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkViewDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Opened shared link. + */ +public class SharedLinkViewDetails { + // struct team_log.SharedLinkViewDetails (team_log_generated.stone) + + @Nullable + protected final UserLogInfo sharedLinkOwner; + + /** + * Opened shared link. + * + * @param sharedLinkOwner Shared link owner details. Might be missing due + * to historical data gap. + */ + public SharedLinkViewDetails(@Nullable UserLogInfo sharedLinkOwner) { + this.sharedLinkOwner = sharedLinkOwner; + } + + /** + * Opened shared link. + * + *

The default values for unset fields will be used.

+ */ + public SharedLinkViewDetails() { + this(null); + } + + /** + * Shared link owner details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedLinkOwner() { + return sharedLinkOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkViewDetails other = (SharedLinkViewDetails) obj; + return (this.sharedLinkOwner == other.sharedLinkOwner) || (this.sharedLinkOwner != null && this.sharedLinkOwner.equals(other.sharedLinkOwner)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkViewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkOwner != null) { + g.writeFieldName("shared_link_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedLinkOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkViewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkViewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserLogInfo f_sharedLinkOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_owner".equals(field)) { + f_sharedLinkOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SharedLinkViewDetails(f_sharedLinkOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkViewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkViewType.java new file mode 100644 index 000000000..6ffb5c277 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkViewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedLinkViewType { + // struct team_log.SharedLinkViewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedLinkViewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedLinkViewType other = (SharedLinkViewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkViewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedLinkViewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedLinkViewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedLinkViewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkVisibility.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkVisibility.java new file mode 100644 index 000000000..21d39e16b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedLinkVisibility.java @@ -0,0 +1,108 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Defines who has access to a shared link. + */ +public enum SharedLinkVisibility { + // union team_log.SharedLinkVisibility (team_log_generated.stone) + NO_ONE, + PASSWORD, + PUBLIC, + TEAM_ONLY, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkVisibility value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case NO_ONE: { + g.writeString("no_one"); + break; + } + case PASSWORD: { + g.writeString("password"); + break; + } + case PUBLIC: { + g.writeString("public"); + break; + } + case TEAM_ONLY: { + g.writeString("team_only"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedLinkVisibility deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkVisibility value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("no_one".equals(tag)) { + value = SharedLinkVisibility.NO_ONE; + } + else if ("password".equals(tag)) { + value = SharedLinkVisibility.PASSWORD; + } + else if ("public".equals(tag)) { + value = SharedLinkVisibility.PUBLIC; + } + else if ("team_only".equals(tag)) { + value = SharedLinkVisibility.TEAM_ONLY; + } + else { + value = SharedLinkVisibility.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedNoteOpenedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedNoteOpenedDetails.java new file mode 100644 index 000000000..d128515d5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedNoteOpenedDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Opened shared Paper doc. + */ +public class SharedNoteOpenedDetails { + // struct team_log.SharedNoteOpenedDetails (team_log_generated.stone) + + + /** + * Opened shared Paper doc. + */ + public SharedNoteOpenedDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedNoteOpenedDetails other = (SharedNoteOpenedDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedNoteOpenedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedNoteOpenedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedNoteOpenedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SharedNoteOpenedDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedNoteOpenedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedNoteOpenedType.java new file mode 100644 index 000000000..baf309d46 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharedNoteOpenedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharedNoteOpenedType { + // struct team_log.SharedNoteOpenedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharedNoteOpenedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharedNoteOpenedType other = (SharedNoteOpenedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedNoteOpenedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharedNoteOpenedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharedNoteOpenedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharedNoteOpenedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyDetails.java new file mode 100644 index 000000000..95d148177 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether team members can join shared folders owned outside team. + */ +public class SharingChangeFolderJoinPolicyDetails { + // struct team_log.SharingChangeFolderJoinPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final SharingFolderJoinPolicy newValue; + @Nullable + protected final SharingFolderJoinPolicy previousValue; + + /** + * Changed whether team members can join shared folders owned outside team. + * + * @param newValue New external join policy. Must not be {@code null}. + * @param previousValue Previous external join policy. Might be missing due + * to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeFolderJoinPolicyDetails(@Nonnull SharingFolderJoinPolicy newValue, @Nullable SharingFolderJoinPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether team members can join shared folders owned outside team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New external join policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeFolderJoinPolicyDetails(@Nonnull SharingFolderJoinPolicy newValue) { + this(newValue, null); + } + + /** + * New external join policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharingFolderJoinPolicy getNewValue() { + return newValue; + } + + /** + * Previous external join policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharingFolderJoinPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeFolderJoinPolicyDetails other = (SharingChangeFolderJoinPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeFolderJoinPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SharingFolderJoinPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SharingFolderJoinPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeFolderJoinPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeFolderJoinPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharingFolderJoinPolicy f_newValue = null; + SharingFolderJoinPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SharingFolderJoinPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SharingFolderJoinPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharingChangeFolderJoinPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyType.java new file mode 100644 index 000000000..73954d89d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeFolderJoinPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharingChangeFolderJoinPolicyType { + // struct team_log.SharingChangeFolderJoinPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeFolderJoinPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeFolderJoinPolicyType other = (SharingChangeFolderJoinPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeFolderJoinPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeFolderJoinPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeFolderJoinPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharingChangeFolderJoinPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyDetails.java new file mode 100644 index 000000000..9721cd19e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed the allow remove or change expiration policy for the links shared + * outside of the team. + */ +public class SharingChangeLinkAllowChangeExpirationPolicyDetails { + // struct team_log.SharingChangeLinkAllowChangeExpirationPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final EnforceLinkPasswordPolicy newValue; + @Nullable + protected final EnforceLinkPasswordPolicy previousValue; + + /** + * Changed the allow remove or change expiration policy for the links shared + * outside of the team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkAllowChangeExpirationPolicyDetails(@Nonnull EnforceLinkPasswordPolicy newValue, @Nullable EnforceLinkPasswordPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed the allow remove or change expiration policy for the links shared + * outside of the team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue To. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkAllowChangeExpirationPolicyDetails(@Nonnull EnforceLinkPasswordPolicy newValue) { + this(newValue, null); + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EnforceLinkPasswordPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public EnforceLinkPasswordPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkAllowChangeExpirationPolicyDetails other = (SharingChangeLinkAllowChangeExpirationPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkAllowChangeExpirationPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + EnforceLinkPasswordPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(EnforceLinkPasswordPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkAllowChangeExpirationPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkAllowChangeExpirationPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + EnforceLinkPasswordPolicy f_newValue = null; + EnforceLinkPasswordPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = EnforceLinkPasswordPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(EnforceLinkPasswordPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharingChangeLinkAllowChangeExpirationPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyType.java new file mode 100644 index 000000000..4f3f105f6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkAllowChangeExpirationPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharingChangeLinkAllowChangeExpirationPolicyType { + // struct team_log.SharingChangeLinkAllowChangeExpirationPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkAllowChangeExpirationPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkAllowChangeExpirationPolicyType other = (SharingChangeLinkAllowChangeExpirationPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkAllowChangeExpirationPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkAllowChangeExpirationPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkAllowChangeExpirationPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharingChangeLinkAllowChangeExpirationPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyDetails.java new file mode 100644 index 000000000..e25fb98ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed the default expiration for the links shared outside of the team. + */ +public class SharingChangeLinkDefaultExpirationPolicyDetails { + // struct team_log.SharingChangeLinkDefaultExpirationPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final DefaultLinkExpirationDaysPolicy newValue; + @Nullable + protected final DefaultLinkExpirationDaysPolicy previousValue; + + /** + * Changed the default expiration for the links shared outside of the team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkDefaultExpirationPolicyDetails(@Nonnull DefaultLinkExpirationDaysPolicy newValue, @Nullable DefaultLinkExpirationDaysPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed the default expiration for the links shared outside of the team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue To. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkDefaultExpirationPolicyDetails(@Nonnull DefaultLinkExpirationDaysPolicy newValue) { + this(newValue, null); + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public DefaultLinkExpirationDaysPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DefaultLinkExpirationDaysPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkDefaultExpirationPolicyDetails other = (SharingChangeLinkDefaultExpirationPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkDefaultExpirationPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + DefaultLinkExpirationDaysPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(DefaultLinkExpirationDaysPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkDefaultExpirationPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkDefaultExpirationPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + DefaultLinkExpirationDaysPolicy f_newValue = null; + DefaultLinkExpirationDaysPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = DefaultLinkExpirationDaysPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(DefaultLinkExpirationDaysPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharingChangeLinkDefaultExpirationPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyType.java new file mode 100644 index 000000000..23201157b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkDefaultExpirationPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharingChangeLinkDefaultExpirationPolicyType { + // struct team_log.SharingChangeLinkDefaultExpirationPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkDefaultExpirationPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkDefaultExpirationPolicyType other = (SharingChangeLinkDefaultExpirationPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkDefaultExpirationPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkDefaultExpirationPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkDefaultExpirationPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharingChangeLinkDefaultExpirationPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyDetails.java new file mode 100644 index 000000000..be43d60a1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed the password requirement for the links shared outside of the team. + */ +public class SharingChangeLinkEnforcePasswordPolicyDetails { + // struct team_log.SharingChangeLinkEnforcePasswordPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ChangeLinkExpirationPolicy newValue; + @Nullable + protected final ChangeLinkExpirationPolicy previousValue; + + /** + * Changed the password requirement for the links shared outside of the + * team. + * + * @param newValue To. Must not be {@code null}. + * @param previousValue From. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkEnforcePasswordPolicyDetails(@Nonnull ChangeLinkExpirationPolicy newValue, @Nullable ChangeLinkExpirationPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed the password requirement for the links shared outside of the + * team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue To. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkEnforcePasswordPolicyDetails(@Nonnull ChangeLinkExpirationPolicy newValue) { + this(newValue, null); + } + + /** + * To. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ChangeLinkExpirationPolicy getNewValue() { + return newValue; + } + + /** + * From. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ChangeLinkExpirationPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkEnforcePasswordPolicyDetails other = (SharingChangeLinkEnforcePasswordPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkEnforcePasswordPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ChangeLinkExpirationPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(ChangeLinkExpirationPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkEnforcePasswordPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkEnforcePasswordPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ChangeLinkExpirationPolicy f_newValue = null; + ChangeLinkExpirationPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ChangeLinkExpirationPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(ChangeLinkExpirationPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharingChangeLinkEnforcePasswordPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyType.java new file mode 100644 index 000000000..63c933d99 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkEnforcePasswordPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharingChangeLinkEnforcePasswordPolicyType { + // struct team_log.SharingChangeLinkEnforcePasswordPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkEnforcePasswordPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkEnforcePasswordPolicyType other = (SharingChangeLinkEnforcePasswordPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkEnforcePasswordPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkEnforcePasswordPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkEnforcePasswordPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharingChangeLinkEnforcePasswordPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyDetails.java new file mode 100644 index 000000000..71cf72be1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyDetails.java @@ -0,0 +1,198 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether members can share links outside team, and if links are + * accessible only by team members or anyone by default. + */ +public class SharingChangeLinkPolicyDetails { + // struct team_log.SharingChangeLinkPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final SharingLinkPolicy newValue; + @Nullable + protected final SharingLinkPolicy previousValue; + + /** + * Changed whether members can share links outside team, and if links are + * accessible only by team members or anyone by default. + * + * @param newValue New external link accessibility policy. Must not be + * {@code null}. + * @param previousValue Previous external link accessibility policy. Might + * be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkPolicyDetails(@Nonnull SharingLinkPolicy newValue, @Nullable SharingLinkPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether members can share links outside team, and if links are + * accessible only by team members or anyone by default. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New external link accessibility policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkPolicyDetails(@Nonnull SharingLinkPolicy newValue) { + this(newValue, null); + } + + /** + * New external link accessibility policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharingLinkPolicy getNewValue() { + return newValue; + } + + /** + * Previous external link accessibility policy. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharingLinkPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkPolicyDetails other = (SharingChangeLinkPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SharingLinkPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SharingLinkPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharingLinkPolicy f_newValue = null; + SharingLinkPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SharingLinkPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SharingLinkPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharingChangeLinkPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyType.java new file mode 100644 index 000000000..d40e3aa32 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeLinkPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharingChangeLinkPolicyType { + // struct team_log.SharingChangeLinkPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeLinkPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeLinkPolicyType other = (SharingChangeLinkPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeLinkPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeLinkPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeLinkPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharingChangeLinkPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyDetails.java new file mode 100644 index 000000000..850412861 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed whether members can share files/folders outside team. + */ +public class SharingChangeMemberPolicyDetails { + // struct team_log.SharingChangeMemberPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final SharingMemberPolicy newValue; + @Nullable + protected final SharingMemberPolicy previousValue; + + /** + * Changed whether members can share files/folders outside team. + * + * @param newValue New external invite policy. Must not be {@code null}. + * @param previousValue Previous external invite policy. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeMemberPolicyDetails(@Nonnull SharingMemberPolicy newValue, @Nullable SharingMemberPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed whether members can share files/folders outside team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New external invite policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeMemberPolicyDetails(@Nonnull SharingMemberPolicy newValue) { + this(newValue, null); + } + + /** + * New external invite policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharingMemberPolicy getNewValue() { + return newValue; + } + + /** + * Previous external invite policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SharingMemberPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeMemberPolicyDetails other = (SharingChangeMemberPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeMemberPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SharingMemberPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SharingMemberPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeMemberPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeMemberPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharingMemberPolicy f_newValue = null; + SharingMemberPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SharingMemberPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SharingMemberPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SharingChangeMemberPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyType.java new file mode 100644 index 000000000..4a3a13e49 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingChangeMemberPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SharingChangeMemberPolicyType { + // struct team_log.SharingChangeMemberPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SharingChangeMemberPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SharingChangeMemberPolicyType other = (SharingChangeMemberPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingChangeMemberPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SharingChangeMemberPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SharingChangeMemberPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SharingChangeMemberPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingFolderJoinPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingFolderJoinPolicy.java new file mode 100644 index 000000000..1954c9703 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingFolderJoinPolicy.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if team members can join shared folders owned by non + * team members. + */ +public enum SharingFolderJoinPolicy { + // union team_log.SharingFolderJoinPolicy (team_log_generated.stone) + FROM_ANYONE, + FROM_TEAM_ONLY, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingFolderJoinPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FROM_ANYONE: { + g.writeString("from_anyone"); + break; + } + case FROM_TEAM_ONLY: { + g.writeString("from_team_only"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingFolderJoinPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharingFolderJoinPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("from_anyone".equals(tag)) { + value = SharingFolderJoinPolicy.FROM_ANYONE; + } + else if ("from_team_only".equals(tag)) { + value = SharingFolderJoinPolicy.FROM_TEAM_ONLY; + } + else { + value = SharingFolderJoinPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingLinkPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingLinkPolicy.java new file mode 100644 index 000000000..46f51e7e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingLinkPolicy.java @@ -0,0 +1,108 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if team members can share links externally + */ +public enum SharingLinkPolicy { + // union team_log.SharingLinkPolicy (team_log_generated.stone) + DEFAULT_NO_ONE, + DEFAULT_PRIVATE, + DEFAULT_PUBLIC, + ONLY_PRIVATE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingLinkPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT_NO_ONE: { + g.writeString("default_no_one"); + break; + } + case DEFAULT_PRIVATE: { + g.writeString("default_private"); + break; + } + case DEFAULT_PUBLIC: { + g.writeString("default_public"); + break; + } + case ONLY_PRIVATE: { + g.writeString("only_private"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingLinkPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharingLinkPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default_no_one".equals(tag)) { + value = SharingLinkPolicy.DEFAULT_NO_ONE; + } + else if ("default_private".equals(tag)) { + value = SharingLinkPolicy.DEFAULT_PRIVATE; + } + else if ("default_public".equals(tag)) { + value = SharingLinkPolicy.DEFAULT_PUBLIC; + } + else if ("only_private".equals(tag)) { + value = SharingLinkPolicy.ONLY_PRIVATE; + } + else { + value = SharingLinkPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingMemberPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingMemberPolicy.java new file mode 100644 index 000000000..42d0f301a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SharingMemberPolicy.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * External sharing policy + */ +public enum SharingMemberPolicy { + // union team_log.SharingMemberPolicy (team_log_generated.stone) + ALLOW, + FORBID, + FORBID_WITH_EXCLUSIONS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharingMemberPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALLOW: { + g.writeString("allow"); + break; + } + case FORBID: { + g.writeString("forbid"); + break; + } + case FORBID_WITH_EXCLUSIONS: { + g.writeString("forbid_with_exclusions"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharingMemberPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharingMemberPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("allow".equals(tag)) { + value = SharingMemberPolicy.ALLOW; + } + else if ("forbid".equals(tag)) { + value = SharingMemberPolicy.FORBID; + } + else if ("forbid_with_exclusions".equals(tag)) { + value = SharingMemberPolicy.FORBID_WITH_EXCLUSIONS; + } + else { + value = SharingMemberPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsDetails.java new file mode 100644 index 000000000..b31ceea61 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Disabled downloads for link. + */ +public class ShmodelDisableDownloadsDetails { + // struct team_log.ShmodelDisableDownloadsDetails (team_log_generated.stone) + + @Nullable + protected final UserLogInfo sharedLinkOwner; + + /** + * Disabled downloads for link. + * + * @param sharedLinkOwner Shared link owner details. Might be missing due + * to historical data gap. + */ + public ShmodelDisableDownloadsDetails(@Nullable UserLogInfo sharedLinkOwner) { + this.sharedLinkOwner = sharedLinkOwner; + } + + /** + * Disabled downloads for link. + * + *

The default values for unset fields will be used.

+ */ + public ShmodelDisableDownloadsDetails() { + this(null); + } + + /** + * Shared link owner details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedLinkOwner() { + return sharedLinkOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShmodelDisableDownloadsDetails other = (ShmodelDisableDownloadsDetails) obj; + return (this.sharedLinkOwner == other.sharedLinkOwner) || (this.sharedLinkOwner != null && this.sharedLinkOwner.equals(other.sharedLinkOwner)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShmodelDisableDownloadsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkOwner != null) { + g.writeFieldName("shared_link_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedLinkOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShmodelDisableDownloadsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShmodelDisableDownloadsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserLogInfo f_sharedLinkOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_owner".equals(field)) { + f_sharedLinkOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ShmodelDisableDownloadsDetails(f_sharedLinkOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsType.java new file mode 100644 index 000000000..2133a54a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelDisableDownloadsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShmodelDisableDownloadsType { + // struct team_log.ShmodelDisableDownloadsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShmodelDisableDownloadsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShmodelDisableDownloadsType other = (ShmodelDisableDownloadsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShmodelDisableDownloadsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShmodelDisableDownloadsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShmodelDisableDownloadsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShmodelDisableDownloadsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsDetails.java new file mode 100644 index 000000000..0ff9072db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsDetails.java @@ -0,0 +1,155 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled downloads for link. + */ +public class ShmodelEnableDownloadsDetails { + // struct team_log.ShmodelEnableDownloadsDetails (team_log_generated.stone) + + @Nullable + protected final UserLogInfo sharedLinkOwner; + + /** + * Enabled downloads for link. + * + * @param sharedLinkOwner Shared link owner details. Might be missing due + * to historical data gap. + */ + public ShmodelEnableDownloadsDetails(@Nullable UserLogInfo sharedLinkOwner) { + this.sharedLinkOwner = sharedLinkOwner; + } + + /** + * Enabled downloads for link. + * + *

The default values for unset fields will be used.

+ */ + public ShmodelEnableDownloadsDetails() { + this(null); + } + + /** + * Shared link owner details. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public UserLogInfo getSharedLinkOwner() { + return sharedLinkOwner; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedLinkOwner + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShmodelEnableDownloadsDetails other = (ShmodelEnableDownloadsDetails) obj; + return (this.sharedLinkOwner == other.sharedLinkOwner) || (this.sharedLinkOwner != null && this.sharedLinkOwner.equals(other.sharedLinkOwner)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShmodelEnableDownloadsDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.sharedLinkOwner != null) { + g.writeFieldName("shared_link_owner"); + StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).serialize(value.sharedLinkOwner, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShmodelEnableDownloadsDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShmodelEnableDownloadsDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UserLogInfo f_sharedLinkOwner = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_link_owner".equals(field)) { + f_sharedLinkOwner = StoneSerializers.nullableStruct(UserLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new ShmodelEnableDownloadsDetails(f_sharedLinkOwner); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsType.java new file mode 100644 index 000000000..56c94e64f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelEnableDownloadsType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShmodelEnableDownloadsType { + // struct team_log.ShmodelEnableDownloadsType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShmodelEnableDownloadsType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShmodelEnableDownloadsType other = (ShmodelEnableDownloadsType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShmodelEnableDownloadsType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShmodelEnableDownloadsType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShmodelEnableDownloadsType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShmodelEnableDownloadsType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelGroupShareDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelGroupShareDetails.java new file mode 100644 index 000000000..cd3e42f56 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelGroupShareDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Shared link with group. + */ +public class ShmodelGroupShareDetails { + // struct team_log.ShmodelGroupShareDetails (team_log_generated.stone) + + + /** + * Shared link with group. + */ + public ShmodelGroupShareDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShmodelGroupShareDetails other = (ShmodelGroupShareDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShmodelGroupShareDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShmodelGroupShareDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShmodelGroupShareDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new ShmodelGroupShareDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelGroupShareType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelGroupShareType.java new file mode 100644 index 000000000..338428a63 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShmodelGroupShareType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShmodelGroupShareType { + // struct team_log.ShmodelGroupShareType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShmodelGroupShareType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShmodelGroupShareType other = (ShmodelGroupShareType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShmodelGroupShareType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShmodelGroupShareType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShmodelGroupShareType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShmodelGroupShareType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedDetails.java new file mode 100644 index 000000000..27036ff4b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Granted access to showcase. + */ +public class ShowcaseAccessGrantedDetails { + // struct team_log.ShowcaseAccessGrantedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Granted access to showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseAccessGrantedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseAccessGrantedDetails other = (ShowcaseAccessGrantedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseAccessGrantedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseAccessGrantedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseAccessGrantedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseAccessGrantedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedType.java new file mode 100644 index 000000000..8646cc4e3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAccessGrantedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseAccessGrantedType { + // struct team_log.ShowcaseAccessGrantedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseAccessGrantedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseAccessGrantedType other = (ShowcaseAccessGrantedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseAccessGrantedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseAccessGrantedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseAccessGrantedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseAccessGrantedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAddMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAddMemberDetails.java new file mode 100644 index 000000000..2e7a49c28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAddMemberDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added member to showcase. + */ +public class ShowcaseAddMemberDetails { + // struct team_log.ShowcaseAddMemberDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Added member to showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseAddMemberDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseAddMemberDetails other = (ShowcaseAddMemberDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseAddMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseAddMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseAddMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseAddMemberDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAddMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAddMemberType.java new file mode 100644 index 000000000..123444a00 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseAddMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseAddMemberType { + // struct team_log.ShowcaseAddMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseAddMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseAddMemberType other = (ShowcaseAddMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseAddMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseAddMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseAddMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseAddMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseArchivedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseArchivedDetails.java new file mode 100644 index 000000000..b6ea9b319 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseArchivedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Archived showcase. + */ +public class ShowcaseArchivedDetails { + // struct team_log.ShowcaseArchivedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Archived showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseArchivedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseArchivedDetails other = (ShowcaseArchivedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseArchivedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseArchivedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseArchivedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseArchivedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseArchivedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseArchivedType.java new file mode 100644 index 000000000..ddb9261d2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseArchivedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseArchivedType { + // struct team_log.ShowcaseArchivedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseArchivedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseArchivedType other = (ShowcaseArchivedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseArchivedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseArchivedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseArchivedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseArchivedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyDetails.java new file mode 100644 index 000000000..118b9f8d1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enabled/disabled downloading files from Dropbox Showcase for team. + */ +public class ShowcaseChangeDownloadPolicyDetails { + // struct team_log.ShowcaseChangeDownloadPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ShowcaseDownloadPolicy newValue; + @Nonnull + protected final ShowcaseDownloadPolicy previousValue; + + /** + * Enabled/disabled downloading files from Dropbox Showcase for team. + * + * @param newValue New Dropbox Showcase download policy. Must not be {@code + * null}. + * @param previousValue Previous Dropbox Showcase download policy. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseChangeDownloadPolicyDetails(@Nonnull ShowcaseDownloadPolicy newValue, @Nonnull ShowcaseDownloadPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Dropbox Showcase download policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ShowcaseDownloadPolicy getNewValue() { + return newValue; + } + + /** + * Previous Dropbox Showcase download policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ShowcaseDownloadPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseChangeDownloadPolicyDetails other = (ShowcaseChangeDownloadPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseChangeDownloadPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ShowcaseDownloadPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + ShowcaseDownloadPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseChangeDownloadPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseChangeDownloadPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ShowcaseDownloadPolicy f_newValue = null; + ShowcaseDownloadPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ShowcaseDownloadPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ShowcaseDownloadPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new ShowcaseChangeDownloadPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyType.java new file mode 100644 index 000000000..758720798 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeDownloadPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseChangeDownloadPolicyType { + // struct team_log.ShowcaseChangeDownloadPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseChangeDownloadPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseChangeDownloadPolicyType other = (ShowcaseChangeDownloadPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseChangeDownloadPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseChangeDownloadPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseChangeDownloadPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseChangeDownloadPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyDetails.java new file mode 100644 index 000000000..ac1551ebb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enabled/disabled Dropbox Showcase for team. + */ +public class ShowcaseChangeEnabledPolicyDetails { + // struct team_log.ShowcaseChangeEnabledPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ShowcaseEnabledPolicy newValue; + @Nonnull + protected final ShowcaseEnabledPolicy previousValue; + + /** + * Enabled/disabled Dropbox Showcase for team. + * + * @param newValue New Dropbox Showcase policy. Must not be {@code null}. + * @param previousValue Previous Dropbox Showcase policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseChangeEnabledPolicyDetails(@Nonnull ShowcaseEnabledPolicy newValue, @Nonnull ShowcaseEnabledPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Dropbox Showcase policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ShowcaseEnabledPolicy getNewValue() { + return newValue; + } + + /** + * Previous Dropbox Showcase policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ShowcaseEnabledPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseChangeEnabledPolicyDetails other = (ShowcaseChangeEnabledPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseChangeEnabledPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ShowcaseEnabledPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + ShowcaseEnabledPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseChangeEnabledPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseChangeEnabledPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ShowcaseEnabledPolicy f_newValue = null; + ShowcaseEnabledPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ShowcaseEnabledPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ShowcaseEnabledPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new ShowcaseChangeEnabledPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyType.java new file mode 100644 index 000000000..b851464ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeEnabledPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseChangeEnabledPolicyType { + // struct team_log.ShowcaseChangeEnabledPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseChangeEnabledPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseChangeEnabledPolicyType other = (ShowcaseChangeEnabledPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseChangeEnabledPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseChangeEnabledPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseChangeEnabledPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseChangeEnabledPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyDetails.java new file mode 100644 index 000000000..0f2afbbd5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enabled/disabled sharing Dropbox Showcase externally for team. + */ +public class ShowcaseChangeExternalSharingPolicyDetails { + // struct team_log.ShowcaseChangeExternalSharingPolicyDetails (team_log_generated.stone) + + @Nonnull + protected final ShowcaseExternalSharingPolicy newValue; + @Nonnull + protected final ShowcaseExternalSharingPolicy previousValue; + + /** + * Enabled/disabled sharing Dropbox Showcase externally for team. + * + * @param newValue New Dropbox Showcase external sharing policy. Must not + * be {@code null}. + * @param previousValue Previous Dropbox Showcase external sharing policy. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseChangeExternalSharingPolicyDetails(@Nonnull ShowcaseExternalSharingPolicy newValue, @Nonnull ShowcaseExternalSharingPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Dropbox Showcase external sharing policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ShowcaseExternalSharingPolicy getNewValue() { + return newValue; + } + + /** + * Previous Dropbox Showcase external sharing policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public ShowcaseExternalSharingPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseChangeExternalSharingPolicyDetails other = (ShowcaseChangeExternalSharingPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseChangeExternalSharingPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + ShowcaseExternalSharingPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + ShowcaseExternalSharingPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseChangeExternalSharingPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseChangeExternalSharingPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + ShowcaseExternalSharingPolicy f_newValue = null; + ShowcaseExternalSharingPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = ShowcaseExternalSharingPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = ShowcaseExternalSharingPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new ShowcaseChangeExternalSharingPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyType.java new file mode 100644 index 000000000..c292ea081 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseChangeExternalSharingPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseChangeExternalSharingPolicyType { + // struct team_log.ShowcaseChangeExternalSharingPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseChangeExternalSharingPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseChangeExternalSharingPolicyType other = (ShowcaseChangeExternalSharingPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseChangeExternalSharingPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseChangeExternalSharingPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseChangeExternalSharingPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseChangeExternalSharingPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseCreatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseCreatedDetails.java new file mode 100644 index 000000000..f298a0e62 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseCreatedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Created showcase. + */ +public class ShowcaseCreatedDetails { + // struct team_log.ShowcaseCreatedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Created showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseCreatedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseCreatedDetails other = (ShowcaseCreatedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseCreatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseCreatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseCreatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseCreatedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseCreatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseCreatedType.java new file mode 100644 index 000000000..136ef1676 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseCreatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseCreatedType { + // struct team_log.ShowcaseCreatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseCreatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseCreatedType other = (ShowcaseCreatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseCreatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseCreatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseCreatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseCreatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentDetails.java new file mode 100644 index 000000000..08a217139 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Deleted showcase comment. + */ +public class ShowcaseDeleteCommentDetails { + // struct team_log.ShowcaseDeleteCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Deleted showcase comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseDeleteCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Deleted showcase comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseDeleteCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseDeleteCommentDetails other = (ShowcaseDeleteCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseDeleteCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseDeleteCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseDeleteCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseDeleteCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentType.java new file mode 100644 index 000000000..114d1545b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDeleteCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseDeleteCommentType { + // struct team_log.ShowcaseDeleteCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseDeleteCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseDeleteCommentType other = (ShowcaseDeleteCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseDeleteCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseDeleteCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseDeleteCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseDeleteCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDocumentLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDocumentLogInfo.java new file mode 100644 index 000000000..9b161a9af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDocumentLogInfo.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Showcase document's logged information. + */ +public class ShowcaseDocumentLogInfo { + // struct team_log.ShowcaseDocumentLogInfo (team_log_generated.stone) + + @Nonnull + protected final String showcaseId; + @Nonnull + protected final String showcaseTitle; + + /** + * Showcase document's logged information. + * + * @param showcaseId Showcase document Id. Must not be {@code null}. + * @param showcaseTitle Showcase document title. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseDocumentLogInfo(@Nonnull String showcaseId, @Nonnull String showcaseTitle) { + if (showcaseId == null) { + throw new IllegalArgumentException("Required value for 'showcaseId' is null"); + } + this.showcaseId = showcaseId; + if (showcaseTitle == null) { + throw new IllegalArgumentException("Required value for 'showcaseTitle' is null"); + } + this.showcaseTitle = showcaseTitle; + } + + /** + * Showcase document Id. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getShowcaseId() { + return showcaseId; + } + + /** + * Showcase document title. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getShowcaseTitle() { + return showcaseTitle; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.showcaseId, + this.showcaseTitle + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseDocumentLogInfo other = (ShowcaseDocumentLogInfo) obj; + return ((this.showcaseId == other.showcaseId) || (this.showcaseId.equals(other.showcaseId))) + && ((this.showcaseTitle == other.showcaseTitle) || (this.showcaseTitle.equals(other.showcaseTitle))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseDocumentLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("showcase_id"); + StoneSerializers.string().serialize(value.showcaseId, g); + g.writeFieldName("showcase_title"); + StoneSerializers.string().serialize(value.showcaseTitle, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseDocumentLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseDocumentLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_showcaseId = null; + String f_showcaseTitle = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("showcase_id".equals(field)) { + f_showcaseId = StoneSerializers.string().deserialize(p); + } + else if ("showcase_title".equals(field)) { + f_showcaseTitle = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_showcaseId == null) { + throw new JsonParseException(p, "Required field \"showcase_id\" missing."); + } + if (f_showcaseTitle == null) { + throw new JsonParseException(p, "Required field \"showcase_title\" missing."); + } + value = new ShowcaseDocumentLogInfo(f_showcaseId, f_showcaseTitle); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy.java new file mode 100644 index 000000000..702e8665b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseDownloadPolicy.java @@ -0,0 +1,93 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if files can be downloaded from Showcases by team + * members + */ +public enum ShowcaseDownloadPolicy { + // union team_log.ShowcaseDownloadPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseDownloadPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ShowcaseDownloadPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ShowcaseDownloadPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = ShowcaseDownloadPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ShowcaseDownloadPolicy.ENABLED; + } + else { + value = ShowcaseDownloadPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditCommentDetails.java new file mode 100644 index 000000000..c175cab80 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Edited showcase comment. + */ +public class ShowcaseEditCommentDetails { + // struct team_log.ShowcaseEditCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Edited showcase comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseEditCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Edited showcase comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseEditCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseEditCommentDetails other = (ShowcaseEditCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseEditCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseEditCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseEditCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseEditCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditCommentType.java new file mode 100644 index 000000000..33ffea9e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseEditCommentType { + // struct team_log.ShowcaseEditCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseEditCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseEditCommentType other = (ShowcaseEditCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseEditCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseEditCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseEditCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseEditCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditedDetails.java new file mode 100644 index 000000000..defb00671 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Edited showcase. + */ +public class ShowcaseEditedDetails { + // struct team_log.ShowcaseEditedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Edited showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseEditedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseEditedDetails other = (ShowcaseEditedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseEditedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseEditedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseEditedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseEditedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditedType.java new file mode 100644 index 000000000..e5044d9ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEditedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseEditedType { + // struct team_log.ShowcaseEditedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseEditedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseEditedType other = (ShowcaseEditedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseEditedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseEditedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseEditedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseEditedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy.java new file mode 100644 index 000000000..c7e5b567d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseEnabledPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling whether Showcase is enabled. + */ +public enum ShowcaseEnabledPolicy { + // union team_log.ShowcaseEnabledPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseEnabledPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ShowcaseEnabledPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ShowcaseEnabledPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = ShowcaseEnabledPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ShowcaseEnabledPolicy.ENABLED; + } + else { + value = ShowcaseEnabledPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy.java new file mode 100644 index 000000000..5dee194a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseExternalSharingPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling if team members can share Showcases externally. + */ +public enum ShowcaseExternalSharingPolicy { + // union team_log.ShowcaseExternalSharingPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseExternalSharingPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public ShowcaseExternalSharingPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + ShowcaseExternalSharingPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = ShowcaseExternalSharingPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = ShowcaseExternalSharingPolicy.ENABLED; + } + else { + value = ShowcaseExternalSharingPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileAddedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileAddedDetails.java new file mode 100644 index 000000000..96b5c719b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileAddedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added file to showcase. + */ +public class ShowcaseFileAddedDetails { + // struct team_log.ShowcaseFileAddedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Added file to showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileAddedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileAddedDetails other = (ShowcaseFileAddedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileAddedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileAddedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileAddedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseFileAddedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileAddedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileAddedType.java new file mode 100644 index 000000000..e45bb019c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileAddedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseFileAddedType { + // struct team_log.ShowcaseFileAddedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileAddedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileAddedType other = (ShowcaseFileAddedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileAddedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileAddedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileAddedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseFileAddedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileDownloadDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileDownloadDetails.java new file mode 100644 index 000000000..f5380cc7d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileDownloadDetails.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Downloaded file from showcase. + */ +public class ShowcaseFileDownloadDetails { + // struct team_log.ShowcaseFileDownloadDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nonnull + protected final String downloadType; + + /** + * Downloaded file from showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param downloadType Showcase download type. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileDownloadDetails(@Nonnull String eventUuid, @Nonnull String downloadType) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + if (downloadType == null) { + throw new IllegalArgumentException("Required value for 'downloadType' is null"); + } + this.downloadType = downloadType; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Showcase download type. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDownloadType() { + return downloadType; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.downloadType + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileDownloadDetails other = (ShowcaseFileDownloadDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.downloadType == other.downloadType) || (this.downloadType.equals(other.downloadType))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileDownloadDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + g.writeFieldName("download_type"); + StoneSerializers.string().serialize(value.downloadType, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileDownloadDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileDownloadDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_downloadType = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("download_type".equals(field)) { + f_downloadType = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + if (f_downloadType == null) { + throw new JsonParseException(p, "Required field \"download_type\" missing."); + } + value = new ShowcaseFileDownloadDetails(f_eventUuid, f_downloadType); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileDownloadType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileDownloadType.java new file mode 100644 index 000000000..3b165bdf8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileDownloadType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseFileDownloadType { + // struct team_log.ShowcaseFileDownloadType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileDownloadType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileDownloadType other = (ShowcaseFileDownloadType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileDownloadType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileDownloadType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileDownloadType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseFileDownloadType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileRemovedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileRemovedDetails.java new file mode 100644 index 000000000..cbc4fc861 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileRemovedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed file from showcase. + */ +public class ShowcaseFileRemovedDetails { + // struct team_log.ShowcaseFileRemovedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Removed file from showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileRemovedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileRemovedDetails other = (ShowcaseFileRemovedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileRemovedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileRemovedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileRemovedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseFileRemovedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileRemovedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileRemovedType.java new file mode 100644 index 000000000..fee2e2170 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileRemovedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseFileRemovedType { + // struct team_log.ShowcaseFileRemovedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileRemovedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileRemovedType other = (ShowcaseFileRemovedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileRemovedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileRemovedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileRemovedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseFileRemovedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileViewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileViewDetails.java new file mode 100644 index 000000000..92f120e03 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileViewDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Viewed file in showcase. + */ +public class ShowcaseFileViewDetails { + // struct team_log.ShowcaseFileViewDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Viewed file in showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileViewDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileViewDetails other = (ShowcaseFileViewDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileViewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileViewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileViewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseFileViewDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileViewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileViewType.java new file mode 100644 index 000000000..f0a053eb7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseFileViewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseFileViewType { + // struct team_log.ShowcaseFileViewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseFileViewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseFileViewType other = (ShowcaseFileViewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseFileViewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseFileViewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseFileViewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseFileViewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedDetails.java new file mode 100644 index 000000000..445303682 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Permanently deleted showcase. + */ +public class ShowcasePermanentlyDeletedDetails { + // struct team_log.ShowcasePermanentlyDeletedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Permanently deleted showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcasePermanentlyDeletedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcasePermanentlyDeletedDetails other = (ShowcasePermanentlyDeletedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcasePermanentlyDeletedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcasePermanentlyDeletedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcasePermanentlyDeletedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcasePermanentlyDeletedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedType.java new file mode 100644 index 000000000..7b82fada3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePermanentlyDeletedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcasePermanentlyDeletedType { + // struct team_log.ShowcasePermanentlyDeletedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcasePermanentlyDeletedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcasePermanentlyDeletedType other = (ShowcasePermanentlyDeletedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcasePermanentlyDeletedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcasePermanentlyDeletedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcasePermanentlyDeletedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcasePermanentlyDeletedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePostCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePostCommentDetails.java new file mode 100644 index 000000000..0a7caad3d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePostCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added showcase comment. + */ +public class ShowcasePostCommentDetails { + // struct team_log.ShowcasePostCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Added showcase comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcasePostCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Added showcase comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcasePostCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcasePostCommentDetails other = (ShowcasePostCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcasePostCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcasePostCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcasePostCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcasePostCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePostCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePostCommentType.java new file mode 100644 index 000000000..63fbd4d9a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcasePostCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcasePostCommentType { + // struct team_log.ShowcasePostCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcasePostCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcasePostCommentType other = (ShowcasePostCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcasePostCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcasePostCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcasePostCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcasePostCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberDetails.java new file mode 100644 index 000000000..0736fd984 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed member from showcase. + */ +public class ShowcaseRemoveMemberDetails { + // struct team_log.ShowcaseRemoveMemberDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Removed member from showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRemoveMemberDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRemoveMemberDetails other = (ShowcaseRemoveMemberDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRemoveMemberDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRemoveMemberDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRemoveMemberDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseRemoveMemberDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberType.java new file mode 100644 index 000000000..ffe451b7c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRemoveMemberType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseRemoveMemberType { + // struct team_log.ShowcaseRemoveMemberType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRemoveMemberType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRemoveMemberType other = (ShowcaseRemoveMemberType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRemoveMemberType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRemoveMemberType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRemoveMemberType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseRemoveMemberType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRenamedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRenamedDetails.java new file mode 100644 index 000000000..a904787ae --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRenamedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Renamed showcase. + */ +public class ShowcaseRenamedDetails { + // struct team_log.ShowcaseRenamedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Renamed showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRenamedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRenamedDetails other = (ShowcaseRenamedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRenamedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRenamedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRenamedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseRenamedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRenamedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRenamedType.java new file mode 100644 index 000000000..f7b383920 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRenamedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseRenamedType { + // struct team_log.ShowcaseRenamedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRenamedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRenamedType other = (ShowcaseRenamedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRenamedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRenamedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRenamedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseRenamedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRequestAccessDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRequestAccessDetails.java new file mode 100644 index 000000000..ffd4a185c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRequestAccessDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Requested access to showcase. + */ +public class ShowcaseRequestAccessDetails { + // struct team_log.ShowcaseRequestAccessDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Requested access to showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRequestAccessDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRequestAccessDetails other = (ShowcaseRequestAccessDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRequestAccessDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRequestAccessDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRequestAccessDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseRequestAccessDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRequestAccessType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRequestAccessType.java new file mode 100644 index 000000000..42a60968c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRequestAccessType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseRequestAccessType { + // struct team_log.ShowcaseRequestAccessType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRequestAccessType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRequestAccessType other = (ShowcaseRequestAccessType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRequestAccessType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRequestAccessType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRequestAccessType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseRequestAccessType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseResolveCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseResolveCommentDetails.java new file mode 100644 index 000000000..8af352395 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseResolveCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Resolved showcase comment. + */ +public class ShowcaseResolveCommentDetails { + // struct team_log.ShowcaseResolveCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Resolved showcase comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseResolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Resolved showcase comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseResolveCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseResolveCommentDetails other = (ShowcaseResolveCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseResolveCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseResolveCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseResolveCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseResolveCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseResolveCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseResolveCommentType.java new file mode 100644 index 000000000..486c8fd2e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseResolveCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseResolveCommentType { + // struct team_log.ShowcaseResolveCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseResolveCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseResolveCommentType other = (ShowcaseResolveCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseResolveCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseResolveCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseResolveCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseResolveCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRestoredDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRestoredDetails.java new file mode 100644 index 000000000..d9bd2498f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRestoredDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Unarchived showcase. + */ +public class ShowcaseRestoredDetails { + // struct team_log.ShowcaseRestoredDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Unarchived showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRestoredDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRestoredDetails other = (ShowcaseRestoredDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRestoredDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRestoredDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRestoredDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseRestoredDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRestoredType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRestoredType.java new file mode 100644 index 000000000..a21110d9f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseRestoredType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseRestoredType { + // struct team_log.ShowcaseRestoredType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseRestoredType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseRestoredType other = (ShowcaseRestoredType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseRestoredType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseRestoredType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseRestoredType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseRestoredType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedDetails.java new file mode 100644 index 000000000..67ca5a2a0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Deleted showcase (old version). + */ +public class ShowcaseTrashedDeprecatedDetails { + // struct team_log.ShowcaseTrashedDeprecatedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Deleted showcase (old version). + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseTrashedDeprecatedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseTrashedDeprecatedDetails other = (ShowcaseTrashedDeprecatedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseTrashedDeprecatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseTrashedDeprecatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseTrashedDeprecatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseTrashedDeprecatedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedType.java new file mode 100644 index 000000000..c5867af53 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDeprecatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseTrashedDeprecatedType { + // struct team_log.ShowcaseTrashedDeprecatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseTrashedDeprecatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseTrashedDeprecatedType other = (ShowcaseTrashedDeprecatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseTrashedDeprecatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseTrashedDeprecatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseTrashedDeprecatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseTrashedDeprecatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDetails.java new file mode 100644 index 000000000..2b7e43ded --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Deleted showcase. + */ +public class ShowcaseTrashedDetails { + // struct team_log.ShowcaseTrashedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Deleted showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseTrashedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseTrashedDetails other = (ShowcaseTrashedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseTrashedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseTrashedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseTrashedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseTrashedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedType.java new file mode 100644 index 000000000..a0661d0af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseTrashedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseTrashedType { + // struct team_log.ShowcaseTrashedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseTrashedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseTrashedType other = (ShowcaseTrashedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseTrashedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseTrashedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseTrashedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseTrashedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentDetails.java new file mode 100644 index 000000000..5bafcda32 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentDetails.java @@ -0,0 +1,191 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Unresolved showcase comment. + */ +public class ShowcaseUnresolveCommentDetails { + // struct team_log.ShowcaseUnresolveCommentDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + @Nullable + protected final String commentText; + + /** + * Unresolved showcase comment. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * @param commentText Comment text. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseUnresolveCommentDetails(@Nonnull String eventUuid, @Nullable String commentText) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + this.commentText = commentText; + } + + /** + * Unresolved showcase comment. + * + *

The default values for unset fields will be used.

+ * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseUnresolveCommentDetails(@Nonnull String eventUuid) { + this(eventUuid, null); + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + /** + * Comment text. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCommentText() { + return commentText; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid, + this.commentText + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseUnresolveCommentDetails other = (ShowcaseUnresolveCommentDetails) obj; + return ((this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid))) + && ((this.commentText == other.commentText) || (this.commentText != null && this.commentText.equals(other.commentText))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseUnresolveCommentDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (value.commentText != null) { + g.writeFieldName("comment_text"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.commentText, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseUnresolveCommentDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseUnresolveCommentDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + String f_commentText = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else if ("comment_text".equals(field)) { + f_commentText = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseUnresolveCommentDetails(f_eventUuid, f_commentText); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentType.java new file mode 100644 index 000000000..69896cf3f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUnresolveCommentType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseUnresolveCommentType { + // struct team_log.ShowcaseUnresolveCommentType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseUnresolveCommentType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseUnresolveCommentType other = (ShowcaseUnresolveCommentType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseUnresolveCommentType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseUnresolveCommentType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseUnresolveCommentType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseUnresolveCommentType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedDetails.java new file mode 100644 index 000000000..de0437ac7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Restored showcase (old version). + */ +public class ShowcaseUntrashedDeprecatedDetails { + // struct team_log.ShowcaseUntrashedDeprecatedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Restored showcase (old version). + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseUntrashedDeprecatedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseUntrashedDeprecatedDetails other = (ShowcaseUntrashedDeprecatedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseUntrashedDeprecatedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseUntrashedDeprecatedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseUntrashedDeprecatedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseUntrashedDeprecatedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedType.java new file mode 100644 index 000000000..88e5a31f3 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDeprecatedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseUntrashedDeprecatedType { + // struct team_log.ShowcaseUntrashedDeprecatedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseUntrashedDeprecatedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseUntrashedDeprecatedType other = (ShowcaseUntrashedDeprecatedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseUntrashedDeprecatedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseUntrashedDeprecatedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseUntrashedDeprecatedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseUntrashedDeprecatedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDetails.java new file mode 100644 index 000000000..5600ba3c8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Restored showcase. + */ +public class ShowcaseUntrashedDetails { + // struct team_log.ShowcaseUntrashedDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Restored showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseUntrashedDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseUntrashedDetails other = (ShowcaseUntrashedDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseUntrashedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseUntrashedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseUntrashedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseUntrashedDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedType.java new file mode 100644 index 000000000..b4177bf2e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseUntrashedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseUntrashedType { + // struct team_log.ShowcaseUntrashedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseUntrashedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseUntrashedType other = (ShowcaseUntrashedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseUntrashedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseUntrashedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseUntrashedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseUntrashedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseViewDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseViewDetails.java new file mode 100644 index 000000000..0f7fa3d32 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseViewDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Viewed showcase. + */ +public class ShowcaseViewDetails { + // struct team_log.ShowcaseViewDetails (team_log_generated.stone) + + @Nonnull + protected final String eventUuid; + + /** + * Viewed showcase. + * + * @param eventUuid Event unique identifier. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseViewDetails(@Nonnull String eventUuid) { + if (eventUuid == null) { + throw new IllegalArgumentException("Required value for 'eventUuid' is null"); + } + this.eventUuid = eventUuid; + } + + /** + * Event unique identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEventUuid() { + return eventUuid; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.eventUuid + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseViewDetails other = (ShowcaseViewDetails) obj; + return (this.eventUuid == other.eventUuid) || (this.eventUuid.equals(other.eventUuid)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseViewDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("event_uuid"); + StoneSerializers.string().serialize(value.eventUuid, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseViewDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseViewDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_eventUuid = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("event_uuid".equals(field)) { + f_eventUuid = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_eventUuid == null) { + throw new JsonParseException(p, "Required field \"event_uuid\" missing."); + } + value = new ShowcaseViewDetails(f_eventUuid); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseViewType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseViewType.java new file mode 100644 index 000000000..879d3d47f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ShowcaseViewType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ShowcaseViewType { + // struct team_log.ShowcaseViewType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ShowcaseViewType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ShowcaseViewType other = (ShowcaseViewType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ShowcaseViewType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ShowcaseViewType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ShowcaseViewType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ShowcaseViewType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionEndDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionEndDetails.java new file mode 100644 index 000000000..9e7fe60eb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionEndDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Ended admin sign-in-as session. + */ +public class SignInAsSessionEndDetails { + // struct team_log.SignInAsSessionEndDetails (team_log_generated.stone) + + + /** + * Ended admin sign-in-as session. + */ + public SignInAsSessionEndDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SignInAsSessionEndDetails other = (SignInAsSessionEndDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SignInAsSessionEndDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SignInAsSessionEndDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SignInAsSessionEndDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SignInAsSessionEndDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionEndType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionEndType.java new file mode 100644 index 000000000..ba0ed24e2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionEndType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SignInAsSessionEndType { + // struct team_log.SignInAsSessionEndType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SignInAsSessionEndType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SignInAsSessionEndType other = (SignInAsSessionEndType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SignInAsSessionEndType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SignInAsSessionEndType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SignInAsSessionEndType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SignInAsSessionEndType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionStartDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionStartDetails.java new file mode 100644 index 000000000..8859e6313 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionStartDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Started admin sign-in-as session. + */ +public class SignInAsSessionStartDetails { + // struct team_log.SignInAsSessionStartDetails (team_log_generated.stone) + + + /** + * Started admin sign-in-as session. + */ + public SignInAsSessionStartDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SignInAsSessionStartDetails other = (SignInAsSessionStartDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SignInAsSessionStartDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SignInAsSessionStartDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SignInAsSessionStartDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SignInAsSessionStartDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionStartType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionStartType.java new file mode 100644 index 000000000..b2e36ad39 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SignInAsSessionStartType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SignInAsSessionStartType { + // struct team_log.SignInAsSessionStartType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SignInAsSessionStartType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SignInAsSessionStartType other = (SignInAsSessionStartType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SignInAsSessionStartType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SignInAsSessionStartType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SignInAsSessionStartType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SignInAsSessionStartType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails.java new file mode 100644 index 000000000..8e142f9e1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncChangePolicyDetails.java @@ -0,0 +1,240 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.SmartSyncPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed default Smart Sync setting for team members. + */ +public class SmartSyncChangePolicyDetails { + // struct team_log.SmartSyncChangePolicyDetails (team_log_generated.stone) + + @Nullable + protected final SmartSyncPolicy newValue; + @Nullable + protected final SmartSyncPolicy previousValue; + + /** + * Changed default Smart Sync setting for team members. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New smart sync policy. + * @param previousValue Previous smart sync policy. + */ + public SmartSyncChangePolicyDetails(@Nullable SmartSyncPolicy newValue, @Nullable SmartSyncPolicy previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed default Smart Sync setting for team members. + * + *

The default values for unset fields will be used.

+ */ + public SmartSyncChangePolicyDetails() { + this(null, null); + } + + /** + * New smart sync policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SmartSyncPolicy getNewValue() { + return newValue; + } + + /** + * Previous smart sync policy. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SmartSyncPolicy getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SmartSyncChangePolicyDetails}. + */ + public static class Builder { + + protected SmartSyncPolicy newValue; + protected SmartSyncPolicy previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New smart sync policy. + * + * @return this builder + */ + public Builder withNewValue(SmartSyncPolicy newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous smart sync policy. + * + * @return this builder + */ + public Builder withPreviousValue(SmartSyncPolicy previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link SmartSyncChangePolicyDetails} configured + * with this builder's values + * + * @return new instance of {@link SmartSyncChangePolicyDetails} + */ + public SmartSyncChangePolicyDetails build() { + return new SmartSyncChangePolicyDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncChangePolicyDetails other = (SmartSyncChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(SmartSyncPolicy.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SmartSyncPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SmartSyncPolicy f_newValue = null; + SmartSyncPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(SmartSyncPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SmartSyncPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SmartSyncChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncChangePolicyType.java new file mode 100644 index 000000000..4cd14fc51 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SmartSyncChangePolicyType { + // struct team_log.SmartSyncChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmartSyncChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncChangePolicyType other = (SmartSyncChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SmartSyncChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportDetails.java new file mode 100644 index 000000000..368182050 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created Smart Sync non-admin devices report. + */ +public class SmartSyncCreateAdminPrivilegeReportDetails { + // struct team_log.SmartSyncCreateAdminPrivilegeReportDetails (team_log_generated.stone) + + + /** + * Created Smart Sync non-admin devices report. + */ + public SmartSyncCreateAdminPrivilegeReportDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncCreateAdminPrivilegeReportDetails other = (SmartSyncCreateAdminPrivilegeReportDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncCreateAdminPrivilegeReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncCreateAdminPrivilegeReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncCreateAdminPrivilegeReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SmartSyncCreateAdminPrivilegeReportDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportType.java new file mode 100644 index 000000000..46e19ba59 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncCreateAdminPrivilegeReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SmartSyncCreateAdminPrivilegeReportType { + // struct team_log.SmartSyncCreateAdminPrivilegeReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmartSyncCreateAdminPrivilegeReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncCreateAdminPrivilegeReportType other = (SmartSyncCreateAdminPrivilegeReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncCreateAdminPrivilegeReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncCreateAdminPrivilegeReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncCreateAdminPrivilegeReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SmartSyncCreateAdminPrivilegeReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncNotOptOutDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncNotOptOutDetails.java new file mode 100644 index 000000000..1cb5c8751 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncNotOptOutDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Opted team into Smart Sync. + */ +public class SmartSyncNotOptOutDetails { + // struct team_log.SmartSyncNotOptOutDetails (team_log_generated.stone) + + @Nonnull + protected final SmartSyncOptOutPolicy previousValue; + @Nonnull + protected final SmartSyncOptOutPolicy newValue; + + /** + * Opted team into Smart Sync. + * + * @param previousValue Previous Smart Sync opt out policy. Must not be + * {@code null}. + * @param newValue New Smart Sync opt out policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmartSyncNotOptOutDetails(@Nonnull SmartSyncOptOutPolicy previousValue, @Nonnull SmartSyncOptOutPolicy newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous Smart Sync opt out policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SmartSyncOptOutPolicy getPreviousValue() { + return previousValue; + } + + /** + * New Smart Sync opt out policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SmartSyncOptOutPolicy getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncNotOptOutDetails other = (SmartSyncNotOptOutDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncNotOptOutDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + SmartSyncOptOutPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + SmartSyncOptOutPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncNotOptOutDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncNotOptOutDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SmartSyncOptOutPolicy f_previousValue = null; + SmartSyncOptOutPolicy f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = SmartSyncOptOutPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = SmartSyncOptOutPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SmartSyncNotOptOutDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncNotOptOutType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncNotOptOutType.java new file mode 100644 index 000000000..342279ea0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncNotOptOutType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SmartSyncNotOptOutType { + // struct team_log.SmartSyncNotOptOutType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmartSyncNotOptOutType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncNotOptOutType other = (SmartSyncNotOptOutType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncNotOptOutType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncNotOptOutType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncNotOptOutType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SmartSyncNotOptOutType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutDetails.java new file mode 100644 index 000000000..b549b2688 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Opted team out of Smart Sync. + */ +public class SmartSyncOptOutDetails { + // struct team_log.SmartSyncOptOutDetails (team_log_generated.stone) + + @Nonnull + protected final SmartSyncOptOutPolicy previousValue; + @Nonnull + protected final SmartSyncOptOutPolicy newValue; + + /** + * Opted team out of Smart Sync. + * + * @param previousValue Previous Smart Sync opt out policy. Must not be + * {@code null}. + * @param newValue New Smart Sync opt out policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmartSyncOptOutDetails(@Nonnull SmartSyncOptOutPolicy previousValue, @Nonnull SmartSyncOptOutPolicy newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous Smart Sync opt out policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SmartSyncOptOutPolicy getPreviousValue() { + return previousValue; + } + + /** + * New Smart Sync opt out policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SmartSyncOptOutPolicy getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncOptOutDetails other = (SmartSyncOptOutDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncOptOutDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + SmartSyncOptOutPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + SmartSyncOptOutPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncOptOutDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncOptOutDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SmartSyncOptOutPolicy f_previousValue = null; + SmartSyncOptOutPolicy f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = SmartSyncOptOutPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = SmartSyncOptOutPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SmartSyncOptOutDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy.java new file mode 100644 index 000000000..afafb422f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutPolicy.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SmartSyncOptOutPolicy { + // union team_log.SmartSyncOptOutPolicy (team_log_generated.stone) + DEFAULT, + OPTED_OUT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncOptOutPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT: { + g.writeString("default"); + break; + } + case OPTED_OUT: { + g.writeString("opted_out"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SmartSyncOptOutPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SmartSyncOptOutPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default".equals(tag)) { + value = SmartSyncOptOutPolicy.DEFAULT; + } + else if ("opted_out".equals(tag)) { + value = SmartSyncOptOutPolicy.OPTED_OUT; + } + else { + value = SmartSyncOptOutPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutType.java new file mode 100644 index 000000000..d5f8df676 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmartSyncOptOutType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SmartSyncOptOutType { + // struct team_log.SmartSyncOptOutType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmartSyncOptOutType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmartSyncOptOutType other = (SmartSyncOptOutType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncOptOutType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmartSyncOptOutType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmartSyncOptOutType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SmartSyncOptOutType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedDetails.java new file mode 100644 index 000000000..4bec8f118 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedDetails.java @@ -0,0 +1,183 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.SmarterSmartSyncPolicyState; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed automatic Smart Sync setting for team. + */ +public class SmarterSmartSyncPolicyChangedDetails { + // struct team_log.SmarterSmartSyncPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final SmarterSmartSyncPolicyState previousValue; + @Nonnull + protected final SmarterSmartSyncPolicyState newValue; + + /** + * Changed automatic Smart Sync setting for team. + * + * @param previousValue Previous automatic Smart Sync setting. Must not be + * {@code null}. + * @param newValue New automatic Smart Sync setting. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmarterSmartSyncPolicyChangedDetails(@Nonnull SmarterSmartSyncPolicyState previousValue, @Nonnull SmarterSmartSyncPolicyState newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous automatic Smart Sync setting. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SmarterSmartSyncPolicyState getPreviousValue() { + return previousValue; + } + + /** + * New automatic Smart Sync setting. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SmarterSmartSyncPolicyState getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmarterSmartSyncPolicyChangedDetails other = (SmarterSmartSyncPolicyChangedDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmarterSmartSyncPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + SmarterSmartSyncPolicyState.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + SmarterSmartSyncPolicyState.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmarterSmartSyncPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmarterSmartSyncPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SmarterSmartSyncPolicyState f_previousValue = null; + SmarterSmartSyncPolicyState f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = SmarterSmartSyncPolicyState.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = SmarterSmartSyncPolicyState.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SmarterSmartSyncPolicyChangedDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedType.java new file mode 100644 index 000000000..7c9abd122 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SmarterSmartSyncPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SmarterSmartSyncPolicyChangedType { + // struct team_log.SmarterSmartSyncPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SmarterSmartSyncPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SmarterSmartSyncPolicyChangedType other = (SmarterSmartSyncPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmarterSmartSyncPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SmarterSmartSyncPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SmarterSmartSyncPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SmarterSmartSyncPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SpaceCapsType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SpaceCapsType.java new file mode 100644 index 000000000..14eb2e008 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SpaceCapsType.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Space limit alert policy + */ +public enum SpaceCapsType { + // union team_log.SpaceCapsType (team_log_generated.stone) + HARD, + OFF, + SOFT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SpaceCapsType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case HARD: { + g.writeString("hard"); + break; + } + case OFF: { + g.writeString("off"); + break; + } + case SOFT: { + g.writeString("soft"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SpaceCapsType deserialize(JsonParser p) throws IOException, JsonParseException { + SpaceCapsType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("hard".equals(tag)) { + value = SpaceCapsType.HARD; + } + else if ("off".equals(tag)) { + value = SpaceCapsType.OFF; + } + else if ("soft".equals(tag)) { + value = SpaceCapsType.SOFT; + } + else { + value = SpaceCapsType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SpaceLimitsStatus.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SpaceLimitsStatus.java new file mode 100644 index 000000000..35e22e60d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SpaceLimitsStatus.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SpaceLimitsStatus { + // union team_log.SpaceLimitsStatus (team_log_generated.stone) + NEAR_QUOTA, + OVER_QUOTA, + WITHIN_QUOTA, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SpaceLimitsStatus value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case NEAR_QUOTA: { + g.writeString("near_quota"); + break; + } + case OVER_QUOTA: { + g.writeString("over_quota"); + break; + } + case WITHIN_QUOTA: { + g.writeString("within_quota"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SpaceLimitsStatus deserialize(JsonParser p) throws IOException, JsonParseException { + SpaceLimitsStatus value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("near_quota".equals(tag)) { + value = SpaceLimitsStatus.NEAR_QUOTA; + } + else if ("over_quota".equals(tag)) { + value = SpaceLimitsStatus.OVER_QUOTA; + } + else if ("within_quota".equals(tag)) { + value = SpaceLimitsStatus.WITHIN_QUOTA; + } + else { + value = SpaceLimitsStatus.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddCertDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddCertDetails.java new file mode 100644 index 000000000..dc8f83236 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddCertDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added X.509 certificate for SSO. + */ +public class SsoAddCertDetails { + // struct team_log.SsoAddCertDetails (team_log_generated.stone) + + @Nonnull + protected final Certificate certificateDetails; + + /** + * Added X.509 certificate for SSO. + * + * @param certificateDetails SSO certificate details. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoAddCertDetails(@Nonnull Certificate certificateDetails) { + if (certificateDetails == null) { + throw new IllegalArgumentException("Required value for 'certificateDetails' is null"); + } + this.certificateDetails = certificateDetails; + } + + /** + * SSO certificate details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Certificate getCertificateDetails() { + return certificateDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.certificateDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoAddCertDetails other = (SsoAddCertDetails) obj; + return (this.certificateDetails == other.certificateDetails) || (this.certificateDetails.equals(other.certificateDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoAddCertDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("certificate_details"); + Certificate.Serializer.INSTANCE.serialize(value.certificateDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoAddCertDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoAddCertDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Certificate f_certificateDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("certificate_details".equals(field)) { + f_certificateDetails = Certificate.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_certificateDetails == null) { + throw new JsonParseException(p, "Required field \"certificate_details\" missing."); + } + value = new SsoAddCertDetails(f_certificateDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddCertType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddCertType.java new file mode 100644 index 000000000..abf048a44 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddCertType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoAddCertType { + // struct team_log.SsoAddCertType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoAddCertType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoAddCertType other = (SsoAddCertType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoAddCertType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoAddCertType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoAddCertType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoAddCertType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLoginUrlDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLoginUrlDetails.java new file mode 100644 index 000000000..b0a141f8e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLoginUrlDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Added sign-in URL for SSO. + */ +public class SsoAddLoginUrlDetails { + // struct team_log.SsoAddLoginUrlDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + + /** + * Added sign-in URL for SSO. + * + * @param newValue New single sign-on login URL. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoAddLoginUrlDetails(@Nonnull String newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * New single sign-on login URL. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoAddLoginUrlDetails other = (SsoAddLoginUrlDetails) obj; + return (this.newValue == other.newValue) || (this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoAddLoginUrlDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoAddLoginUrlDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoAddLoginUrlDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SsoAddLoginUrlDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLoginUrlType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLoginUrlType.java new file mode 100644 index 000000000..462cbdc6d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLoginUrlType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoAddLoginUrlType { + // struct team_log.SsoAddLoginUrlType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoAddLoginUrlType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoAddLoginUrlType other = (SsoAddLoginUrlType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoAddLoginUrlType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoAddLoginUrlType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoAddLoginUrlType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoAddLoginUrlType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLogoutUrlDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLogoutUrlDetails.java new file mode 100644 index 000000000..a8eb62752 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLogoutUrlDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Added sign-out URL for SSO. + */ +public class SsoAddLogoutUrlDetails { + // struct team_log.SsoAddLogoutUrlDetails (team_log_generated.stone) + + @Nullable + protected final String newValue; + + /** + * Added sign-out URL for SSO. + * + * @param newValue New single sign-on logout URL. + */ + public SsoAddLogoutUrlDetails(@Nullable String newValue) { + this.newValue = newValue; + } + + /** + * Added sign-out URL for SSO. + * + *

The default values for unset fields will be used.

+ */ + public SsoAddLogoutUrlDetails() { + this(null); + } + + /** + * New single sign-on logout URL. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoAddLogoutUrlDetails other = (SsoAddLogoutUrlDetails) obj; + return (this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoAddLogoutUrlDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoAddLogoutUrlDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoAddLogoutUrlDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SsoAddLogoutUrlDetails(f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLogoutUrlType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLogoutUrlType.java new file mode 100644 index 000000000..83e301b32 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoAddLogoutUrlType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoAddLogoutUrlType { + // struct team_log.SsoAddLogoutUrlType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoAddLogoutUrlType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoAddLogoutUrlType other = (SsoAddLogoutUrlType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoAddLogoutUrlType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoAddLogoutUrlType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoAddLogoutUrlType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoAddLogoutUrlType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeCertDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeCertDetails.java new file mode 100644 index 000000000..0275c6fac --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeCertDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed X.509 certificate for SSO. + */ +public class SsoChangeCertDetails { + // struct team_log.SsoChangeCertDetails (team_log_generated.stone) + + @Nullable + protected final Certificate previousCertificateDetails; + @Nonnull + protected final Certificate newCertificateDetails; + + /** + * Changed X.509 certificate for SSO. + * + * @param newCertificateDetails New SSO certificate details. Must not be + * {@code null}. + * @param previousCertificateDetails Previous SSO certificate details. + * Might be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangeCertDetails(@Nonnull Certificate newCertificateDetails, @Nullable Certificate previousCertificateDetails) { + this.previousCertificateDetails = previousCertificateDetails; + if (newCertificateDetails == null) { + throw new IllegalArgumentException("Required value for 'newCertificateDetails' is null"); + } + this.newCertificateDetails = newCertificateDetails; + } + + /** + * Changed X.509 certificate for SSO. + * + *

The default values for unset fields will be used.

+ * + * @param newCertificateDetails New SSO certificate details. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangeCertDetails(@Nonnull Certificate newCertificateDetails) { + this(newCertificateDetails, null); + } + + /** + * New SSO certificate details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Certificate getNewCertificateDetails() { + return newCertificateDetails; + } + + /** + * Previous SSO certificate details. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Certificate getPreviousCertificateDetails() { + return previousCertificateDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousCertificateDetails, + this.newCertificateDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeCertDetails other = (SsoChangeCertDetails) obj; + return ((this.newCertificateDetails == other.newCertificateDetails) || (this.newCertificateDetails.equals(other.newCertificateDetails))) + && ((this.previousCertificateDetails == other.previousCertificateDetails) || (this.previousCertificateDetails != null && this.previousCertificateDetails.equals(other.previousCertificateDetails))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeCertDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_certificate_details"); + Certificate.Serializer.INSTANCE.serialize(value.newCertificateDetails, g); + if (value.previousCertificateDetails != null) { + g.writeFieldName("previous_certificate_details"); + StoneSerializers.nullableStruct(Certificate.Serializer.INSTANCE).serialize(value.previousCertificateDetails, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeCertDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeCertDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Certificate f_newCertificateDetails = null; + Certificate f_previousCertificateDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_certificate_details".equals(field)) { + f_newCertificateDetails = Certificate.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_certificate_details".equals(field)) { + f_previousCertificateDetails = StoneSerializers.nullableStruct(Certificate.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newCertificateDetails == null) { + throw new JsonParseException(p, "Required field \"new_certificate_details\" missing."); + } + value = new SsoChangeCertDetails(f_newCertificateDetails, f_previousCertificateDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeCertType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeCertType.java new file mode 100644 index 000000000..5d837c836 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeCertType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoChangeCertType { + // struct team_log.SsoChangeCertType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangeCertType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeCertType other = (SsoChangeCertType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeCertType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeCertType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeCertType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoChangeCertType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLoginUrlDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLoginUrlDetails.java new file mode 100644 index 000000000..97114a057 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLoginUrlDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed sign-in URL for SSO. + */ +public class SsoChangeLoginUrlDetails { + // struct team_log.SsoChangeLoginUrlDetails (team_log_generated.stone) + + @Nonnull + protected final String previousValue; + @Nonnull + protected final String newValue; + + /** + * Changed sign-in URL for SSO. + * + * @param previousValue Previous single sign-on login URL. Must not be + * {@code null}. + * @param newValue New single sign-on login URL. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangeLoginUrlDetails(@Nonnull String previousValue, @Nonnull String newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous single sign-on login URL. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + /** + * New single sign-on login URL. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeLoginUrlDetails other = (SsoChangeLoginUrlDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeLoginUrlDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeLoginUrlDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeLoginUrlDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SsoChangeLoginUrlDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLoginUrlType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLoginUrlType.java new file mode 100644 index 000000000..fe978861e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLoginUrlType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoChangeLoginUrlType { + // struct team_log.SsoChangeLoginUrlType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangeLoginUrlType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeLoginUrlType other = (SsoChangeLoginUrlType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeLoginUrlType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeLoginUrlType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeLoginUrlType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoChangeLoginUrlType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails.java new file mode 100644 index 000000000..742ebef83 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlDetails.java @@ -0,0 +1,242 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed sign-out URL for SSO. + */ +public class SsoChangeLogoutUrlDetails { + // struct team_log.SsoChangeLogoutUrlDetails (team_log_generated.stone) + + @Nullable + protected final String previousValue; + @Nullable + protected final String newValue; + + /** + * Changed sign-out URL for SSO. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param previousValue Previous single sign-on logout URL. Might be + * missing due to historical data gap. + * @param newValue New single sign-on logout URL. + */ + public SsoChangeLogoutUrlDetails(@Nullable String previousValue, @Nullable String newValue) { + this.previousValue = previousValue; + this.newValue = newValue; + } + + /** + * Changed sign-out URL for SSO. + * + *

The default values for unset fields will be used.

+ */ + public SsoChangeLogoutUrlDetails() { + this(null, null); + } + + /** + * Previous single sign-on logout URL. Might be missing due to historical + * data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getPreviousValue() { + return previousValue; + } + + /** + * New single sign-on logout URL. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getNewValue() { + return newValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link SsoChangeLogoutUrlDetails}. + */ + public static class Builder { + + protected String previousValue; + protected String newValue; + + protected Builder() { + this.previousValue = null; + this.newValue = null; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous single sign-on logout URL. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Set value for optional field. + * + * @param newValue New single sign-on logout URL. + * + * @return this builder + */ + public Builder withNewValue(String newValue) { + this.newValue = newValue; + return this; + } + + /** + * Builds an instance of {@link SsoChangeLogoutUrlDetails} configured + * with this builder's values + * + * @return new instance of {@link SsoChangeLogoutUrlDetails} + */ + public SsoChangeLogoutUrlDetails build() { + return new SsoChangeLogoutUrlDetails(previousValue, newValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeLogoutUrlDetails other = (SsoChangeLogoutUrlDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeLogoutUrlDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.previousValue, g); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.newValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeLogoutUrlDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeLogoutUrlDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new SsoChangeLogoutUrlDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlType.java new file mode 100644 index 000000000..87a18f84e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeLogoutUrlType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoChangeLogoutUrlType { + // struct team_log.SsoChangeLogoutUrlType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangeLogoutUrlType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeLogoutUrlType other = (SsoChangeLogoutUrlType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeLogoutUrlType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeLogoutUrlType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeLogoutUrlType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoChangeLogoutUrlType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangePolicyDetails.java new file mode 100644 index 000000000..e83fde174 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangePolicyDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.SsoPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed single sign-on setting for team. + */ +public class SsoChangePolicyDetails { + // struct team_log.SsoChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final SsoPolicy newValue; + @Nullable + protected final SsoPolicy previousValue; + + /** + * Changed single sign-on setting for team. + * + * @param newValue New single sign-on policy. Must not be {@code null}. + * @param previousValue Previous single sign-on policy. Might be missing + * due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangePolicyDetails(@Nonnull SsoPolicy newValue, @Nullable SsoPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed single sign-on setting for team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New single sign-on policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangePolicyDetails(@Nonnull SsoPolicy newValue) { + this(newValue, null); + } + + /** + * New single sign-on policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SsoPolicy getNewValue() { + return newValue; + } + + /** + * Previous single sign-on policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public SsoPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangePolicyDetails other = (SsoChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + SsoPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(SsoPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SsoPolicy f_newValue = null; + SsoPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = SsoPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(SsoPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SsoChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangePolicyType.java new file mode 100644 index 000000000..559e5cc63 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoChangePolicyType { + // struct team_log.SsoChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangePolicyType other = (SsoChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeDetails.java new file mode 100644 index 000000000..4baf015dd --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeDetails.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Changed SAML identity mode for SSO. + */ +public class SsoChangeSamlIdentityModeDetails { + // struct team_log.SsoChangeSamlIdentityModeDetails (team_log_generated.stone) + + protected final long previousValue; + protected final long newValue; + + /** + * Changed SAML identity mode for SSO. + * + * @param previousValue Previous single sign-on identity mode. + * @param newValue New single sign-on identity mode. + */ + public SsoChangeSamlIdentityModeDetails(long previousValue, long newValue) { + this.previousValue = previousValue; + this.newValue = newValue; + } + + /** + * Previous single sign-on identity mode. + * + * @return value for this field. + */ + public long getPreviousValue() { + return previousValue; + } + + /** + * New single sign-on identity mode. + * + * @return value for this field. + */ + public long getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeSamlIdentityModeDetails other = (SsoChangeSamlIdentityModeDetails) obj; + return (this.previousValue == other.previousValue) + && (this.newValue == other.newValue) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeSamlIdentityModeDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.int64().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.int64().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeSamlIdentityModeDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeSamlIdentityModeDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_previousValue = null; + Long f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.int64().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.int64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new SsoChangeSamlIdentityModeDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeType.java new file mode 100644 index 000000000..e09a7503b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoChangeSamlIdentityModeType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoChangeSamlIdentityModeType { + // struct team_log.SsoChangeSamlIdentityModeType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoChangeSamlIdentityModeType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoChangeSamlIdentityModeType other = (SsoChangeSamlIdentityModeType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoChangeSamlIdentityModeType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoChangeSamlIdentityModeType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoChangeSamlIdentityModeType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoChangeSamlIdentityModeType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoErrorDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoErrorDetails.java new file mode 100644 index 000000000..8d0e53429 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoErrorDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Failed to sign in via SSO. + */ +public class SsoErrorDetails { + // struct team_log.SsoErrorDetails (team_log_generated.stone) + + @Nonnull + protected final FailureDetailsLogInfo errorDetails; + + /** + * Failed to sign in via SSO. + * + * @param errorDetails Error details. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoErrorDetails(@Nonnull FailureDetailsLogInfo errorDetails) { + if (errorDetails == null) { + throw new IllegalArgumentException("Required value for 'errorDetails' is null"); + } + this.errorDetails = errorDetails; + } + + /** + * Error details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FailureDetailsLogInfo getErrorDetails() { + return errorDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.errorDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoErrorDetails other = (SsoErrorDetails) obj; + return (this.errorDetails == other.errorDetails) || (this.errorDetails.equals(other.errorDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoErrorDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("error_details"); + FailureDetailsLogInfo.Serializer.INSTANCE.serialize(value.errorDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoErrorDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoErrorDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FailureDetailsLogInfo f_errorDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("error_details".equals(field)) { + f_errorDetails = FailureDetailsLogInfo.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_errorDetails == null) { + throw new JsonParseException(p, "Required field \"error_details\" missing."); + } + value = new SsoErrorDetails(f_errorDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoErrorType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoErrorType.java new file mode 100644 index 000000000..a94fab9b1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoErrorType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoErrorType { + // struct team_log.SsoErrorType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoErrorType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoErrorType other = (SsoErrorType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoErrorType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoErrorType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoErrorType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoErrorType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveCertDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveCertDetails.java new file mode 100644 index 000000000..764ce65b1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveCertDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed X.509 certificate for SSO. + */ +public class SsoRemoveCertDetails { + // struct team_log.SsoRemoveCertDetails (team_log_generated.stone) + + + /** + * Removed X.509 certificate for SSO. + */ + public SsoRemoveCertDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoRemoveCertDetails other = (SsoRemoveCertDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoRemoveCertDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoRemoveCertDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoRemoveCertDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new SsoRemoveCertDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveCertType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveCertType.java new file mode 100644 index 000000000..d17e5cd72 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveCertType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoRemoveCertType { + // struct team_log.SsoRemoveCertType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoRemoveCertType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoRemoveCertType other = (SsoRemoveCertType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoRemoveCertType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoRemoveCertType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoRemoveCertType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoRemoveCertType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlDetails.java new file mode 100644 index 000000000..2d9f8bc7e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed sign-in URL for SSO. + */ +public class SsoRemoveLoginUrlDetails { + // struct team_log.SsoRemoveLoginUrlDetails (team_log_generated.stone) + + @Nonnull + protected final String previousValue; + + /** + * Removed sign-in URL for SSO. + * + * @param previousValue Previous single sign-on login URL. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoRemoveLoginUrlDetails(@Nonnull String previousValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * Previous single sign-on login URL. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoRemoveLoginUrlDetails other = (SsoRemoveLoginUrlDetails) obj; + return (this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoRemoveLoginUrlDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoRemoveLoginUrlDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoRemoveLoginUrlDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new SsoRemoveLoginUrlDetails(f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlType.java new file mode 100644 index 000000000..605f402d6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLoginUrlType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoRemoveLoginUrlType { + // struct team_log.SsoRemoveLoginUrlType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoRemoveLoginUrlType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoRemoveLoginUrlType other = (SsoRemoveLoginUrlType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoRemoveLoginUrlType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoRemoveLoginUrlType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoRemoveLoginUrlType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoRemoveLoginUrlType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlDetails.java new file mode 100644 index 000000000..c89ff7659 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Removed sign-out URL for SSO. + */ +public class SsoRemoveLogoutUrlDetails { + // struct team_log.SsoRemoveLogoutUrlDetails (team_log_generated.stone) + + @Nonnull + protected final String previousValue; + + /** + * Removed sign-out URL for SSO. + * + * @param previousValue Previous single sign-on logout URL. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoRemoveLogoutUrlDetails(@Nonnull String previousValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * Previous single sign-on logout URL. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoRemoveLogoutUrlDetails other = (SsoRemoveLogoutUrlDetails) obj; + return (this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoRemoveLogoutUrlDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoRemoveLogoutUrlDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoRemoveLogoutUrlDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new SsoRemoveLogoutUrlDetails(f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlType.java new file mode 100644 index 000000000..d898863af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/SsoRemoveLogoutUrlType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class SsoRemoveLogoutUrlType { + // struct team_log.SsoRemoveLogoutUrlType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SsoRemoveLogoutUrlType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SsoRemoveLogoutUrlType other = (SsoRemoveLogoutUrlType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoRemoveLogoutUrlType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SsoRemoveLogoutUrlType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SsoRemoveLogoutUrlType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new SsoRemoveLogoutUrlType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionDetails.java new file mode 100644 index 000000000..bec7f57af --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Started enterprise admin session. + */ +public class StartedEnterpriseAdminSessionDetails { + // struct team_log.StartedEnterpriseAdminSessionDetails (team_log_generated.stone) + + @Nonnull + protected final FedExtraDetails federationExtraDetails; + + /** + * Started enterprise admin session. + * + * @param federationExtraDetails More information about the organization or + * team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public StartedEnterpriseAdminSessionDetails(@Nonnull FedExtraDetails federationExtraDetails) { + if (federationExtraDetails == null) { + throw new IllegalArgumentException("Required value for 'federationExtraDetails' is null"); + } + this.federationExtraDetails = federationExtraDetails; + } + + /** + * More information about the organization or team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public FedExtraDetails getFederationExtraDetails() { + return federationExtraDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.federationExtraDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + StartedEnterpriseAdminSessionDetails other = (StartedEnterpriseAdminSessionDetails) obj; + return (this.federationExtraDetails == other.federationExtraDetails) || (this.federationExtraDetails.equals(other.federationExtraDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(StartedEnterpriseAdminSessionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("federation_extra_details"); + FedExtraDetails.Serializer.INSTANCE.serialize(value.federationExtraDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public StartedEnterpriseAdminSessionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + StartedEnterpriseAdminSessionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + FedExtraDetails f_federationExtraDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("federation_extra_details".equals(field)) { + f_federationExtraDetails = FedExtraDetails.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_federationExtraDetails == null) { + throw new JsonParseException(p, "Required field \"federation_extra_details\" missing."); + } + value = new StartedEnterpriseAdminSessionDetails(f_federationExtraDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionType.java new file mode 100644 index 000000000..fbad1f3ee --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/StartedEnterpriseAdminSessionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class StartedEnterpriseAdminSessionType { + // struct team_log.StartedEnterpriseAdminSessionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public StartedEnterpriseAdminSessionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + StartedEnterpriseAdminSessionType other = (StartedEnterpriseAdminSessionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(StartedEnterpriseAdminSessionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public StartedEnterpriseAdminSessionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + StartedEnterpriseAdminSessionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new StartedEnterpriseAdminSessionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportDetails.java new file mode 100644 index 000000000..efb380124 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; + +/** + * Created team activity report. + */ +public class TeamActivityCreateReportDetails { + // struct team_log.TeamActivityCreateReportDetails (team_log_generated.stone) + + @Nonnull + protected final Date startDate; + @Nonnull + protected final Date endDate; + + /** + * Created team activity report. + * + * @param startDate Report start date. Must not be {@code null}. + * @param endDate Report end date. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamActivityCreateReportDetails(@Nonnull Date startDate, @Nonnull Date endDate) { + if (startDate == null) { + throw new IllegalArgumentException("Required value for 'startDate' is null"); + } + this.startDate = LangUtil.truncateMillis(startDate); + if (endDate == null) { + throw new IllegalArgumentException("Required value for 'endDate' is null"); + } + this.endDate = LangUtil.truncateMillis(endDate); + } + + /** + * Report start date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getStartDate() { + return startDate; + } + + /** + * Report end date. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getEndDate() { + return endDate; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.startDate, + this.endDate + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamActivityCreateReportDetails other = (TeamActivityCreateReportDetails) obj; + return ((this.startDate == other.startDate) || (this.startDate.equals(other.startDate))) + && ((this.endDate == other.endDate) || (this.endDate.equals(other.endDate))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamActivityCreateReportDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("start_date"); + StoneSerializers.timestamp().serialize(value.startDate, g); + g.writeFieldName("end_date"); + StoneSerializers.timestamp().serialize(value.endDate, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamActivityCreateReportDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamActivityCreateReportDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_startDate = null; + Date f_endDate = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("start_date".equals(field)) { + f_startDate = StoneSerializers.timestamp().deserialize(p); + } + else if ("end_date".equals(field)) { + f_endDate = StoneSerializers.timestamp().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_startDate == null) { + throw new JsonParseException(p, "Required field \"start_date\" missing."); + } + if (f_endDate == null) { + throw new JsonParseException(p, "Required field \"end_date\" missing."); + } + value = new TeamActivityCreateReportDetails(f_startDate, f_endDate); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailDetails.java new file mode 100644 index 000000000..29d632d64 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamReportFailureReason; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Couldn't generate team activity report. + */ +public class TeamActivityCreateReportFailDetails { + // struct team_log.TeamActivityCreateReportFailDetails (team_log_generated.stone) + + @Nonnull + protected final TeamReportFailureReason failureReason; + + /** + * Couldn't generate team activity report. + * + * @param failureReason Failure reason. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamActivityCreateReportFailDetails(@Nonnull TeamReportFailureReason failureReason) { + if (failureReason == null) { + throw new IllegalArgumentException("Required value for 'failureReason' is null"); + } + this.failureReason = failureReason; + } + + /** + * Failure reason. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamReportFailureReason getFailureReason() { + return failureReason; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.failureReason + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamActivityCreateReportFailDetails other = (TeamActivityCreateReportFailDetails) obj; + return (this.failureReason == other.failureReason) || (this.failureReason.equals(other.failureReason)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamActivityCreateReportFailDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("failure_reason"); + TeamReportFailureReason.Serializer.INSTANCE.serialize(value.failureReason, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamActivityCreateReportFailDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamActivityCreateReportFailDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamReportFailureReason f_failureReason = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("failure_reason".equals(field)) { + f_failureReason = TeamReportFailureReason.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_failureReason == null) { + throw new JsonParseException(p, "Required field \"failure_reason\" missing."); + } + value = new TeamActivityCreateReportFailDetails(f_failureReason); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailType.java new file mode 100644 index 000000000..c9345e59f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportFailType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamActivityCreateReportFailType { + // struct team_log.TeamActivityCreateReportFailType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamActivityCreateReportFailType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamActivityCreateReportFailType other = (TeamActivityCreateReportFailType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamActivityCreateReportFailType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamActivityCreateReportFailType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamActivityCreateReportFailType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamActivityCreateReportFailType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportType.java new file mode 100644 index 000000000..5ca7e60ad --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamActivityCreateReportType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamActivityCreateReportType { + // struct team_log.TeamActivityCreateReportType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamActivityCreateReportType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamActivityCreateReportType other = (TeamActivityCreateReportType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamActivityCreateReportType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamActivityCreateReportType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamActivityCreateReportType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamActivityCreateReportType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicy.java new file mode 100644 index 000000000..b67814c54 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling team access to setting up branding feature + */ +public enum TeamBrandingPolicy { + // union team_log.TeamBrandingPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamBrandingPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamBrandingPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + TeamBrandingPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = TeamBrandingPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = TeamBrandingPolicy.ENABLED; + } + else { + value = TeamBrandingPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedDetails.java new file mode 100644 index 000000000..1d1d0c28a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed team branding policy for team. + */ +public class TeamBrandingPolicyChangedDetails { + // struct team_log.TeamBrandingPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamBrandingPolicy newValue; + @Nonnull + protected final TeamBrandingPolicy previousValue; + + /** + * Changed team branding policy for team. + * + * @param newValue New team branding policy. Must not be {@code null}. + * @param previousValue Previous team branding policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamBrandingPolicyChangedDetails(@Nonnull TeamBrandingPolicy newValue, @Nonnull TeamBrandingPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New team branding policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamBrandingPolicy getNewValue() { + return newValue; + } + + /** + * Previous team branding policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamBrandingPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamBrandingPolicyChangedDetails other = (TeamBrandingPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamBrandingPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TeamBrandingPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + TeamBrandingPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamBrandingPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamBrandingPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamBrandingPolicy f_newValue = null; + TeamBrandingPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TeamBrandingPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = TeamBrandingPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new TeamBrandingPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedType.java new file mode 100644 index 000000000..8b705a23c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamBrandingPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamBrandingPolicyChangedType { + // struct team_log.TeamBrandingPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamBrandingPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamBrandingPolicyChangedType other = (TeamBrandingPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamBrandingPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamBrandingPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamBrandingPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamBrandingPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamDetails.java new file mode 100644 index 000000000..7b7c6ae22 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * More details about the team. + */ +public class TeamDetails { + // struct team_log.TeamDetails (team_log_generated.stone) + + @Nonnull + protected final String team; + + /** + * More details about the team. + * + * @param team The name of the team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamDetails(@Nonnull String team) { + if (team == null) { + throw new IllegalArgumentException("Required value for 'team' is null"); + } + this.team = team; + } + + /** + * The name of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeam() { + return team; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.team + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamDetails other = (TeamDetails) obj; + return (this.team == other.team) || (this.team.equals(other.team)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team"); + StoneSerializers.string().serialize(value.team, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_team = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team".equals(field)) { + f_team = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_team == null) { + throw new JsonParseException(p, "Required field \"team\" missing."); + } + value = new TeamDetails(f_team); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionDetails.java new file mode 100644 index 000000000..e84e85c29 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Canceled team encryption key deletion. + */ +public class TeamEncryptionKeyCancelKeyDeletionDetails { + // struct team_log.TeamEncryptionKeyCancelKeyDeletionDetails (team_log_generated.stone) + + + /** + * Canceled team encryption key deletion. + */ + public TeamEncryptionKeyCancelKeyDeletionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyCancelKeyDeletionDetails other = (TeamEncryptionKeyCancelKeyDeletionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyCancelKeyDeletionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyCancelKeyDeletionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyCancelKeyDeletionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamEncryptionKeyCancelKeyDeletionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionType.java new file mode 100644 index 000000000..277c5a7e4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCancelKeyDeletionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamEncryptionKeyCancelKeyDeletionType { + // struct team_log.TeamEncryptionKeyCancelKeyDeletionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEncryptionKeyCancelKeyDeletionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyCancelKeyDeletionType other = (TeamEncryptionKeyCancelKeyDeletionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyCancelKeyDeletionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyCancelKeyDeletionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyCancelKeyDeletionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamEncryptionKeyCancelKeyDeletionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyDetails.java new file mode 100644 index 000000000..fa647eb2c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created team encryption key. + */ +public class TeamEncryptionKeyCreateKeyDetails { + // struct team_log.TeamEncryptionKeyCreateKeyDetails (team_log_generated.stone) + + + /** + * Created team encryption key. + */ + public TeamEncryptionKeyCreateKeyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyCreateKeyDetails other = (TeamEncryptionKeyCreateKeyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyCreateKeyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyCreateKeyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyCreateKeyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamEncryptionKeyCreateKeyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyType.java new file mode 100644 index 000000000..814a4906a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyCreateKeyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamEncryptionKeyCreateKeyType { + // struct team_log.TeamEncryptionKeyCreateKeyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEncryptionKeyCreateKeyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyCreateKeyType other = (TeamEncryptionKeyCreateKeyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyCreateKeyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyCreateKeyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyCreateKeyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamEncryptionKeyCreateKeyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyDetails.java new file mode 100644 index 000000000..a1d317a37 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Deleted team encryption key. + */ +public class TeamEncryptionKeyDeleteKeyDetails { + // struct team_log.TeamEncryptionKeyDeleteKeyDetails (team_log_generated.stone) + + + /** + * Deleted team encryption key. + */ + public TeamEncryptionKeyDeleteKeyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyDeleteKeyDetails other = (TeamEncryptionKeyDeleteKeyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyDeleteKeyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyDeleteKeyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyDeleteKeyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamEncryptionKeyDeleteKeyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyType.java new file mode 100644 index 000000000..158012f6c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDeleteKeyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamEncryptionKeyDeleteKeyType { + // struct team_log.TeamEncryptionKeyDeleteKeyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEncryptionKeyDeleteKeyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyDeleteKeyType other = (TeamEncryptionKeyDeleteKeyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyDeleteKeyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyDeleteKeyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyDeleteKeyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamEncryptionKeyDeleteKeyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyDetails.java new file mode 100644 index 000000000..5435aae49 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Disabled team encryption key. + */ +public class TeamEncryptionKeyDisableKeyDetails { + // struct team_log.TeamEncryptionKeyDisableKeyDetails (team_log_generated.stone) + + + /** + * Disabled team encryption key. + */ + public TeamEncryptionKeyDisableKeyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyDisableKeyDetails other = (TeamEncryptionKeyDisableKeyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyDisableKeyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyDisableKeyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyDisableKeyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamEncryptionKeyDisableKeyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyType.java new file mode 100644 index 000000000..196ffbe6b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyDisableKeyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamEncryptionKeyDisableKeyType { + // struct team_log.TeamEncryptionKeyDisableKeyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEncryptionKeyDisableKeyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyDisableKeyType other = (TeamEncryptionKeyDisableKeyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyDisableKeyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyDisableKeyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyDisableKeyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamEncryptionKeyDisableKeyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyDetails.java new file mode 100644 index 000000000..015bd94c1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Enabled team encryption key. + */ +public class TeamEncryptionKeyEnableKeyDetails { + // struct team_log.TeamEncryptionKeyEnableKeyDetails (team_log_generated.stone) + + + /** + * Enabled team encryption key. + */ + public TeamEncryptionKeyEnableKeyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyEnableKeyDetails other = (TeamEncryptionKeyEnableKeyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyEnableKeyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyEnableKeyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyEnableKeyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamEncryptionKeyEnableKeyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyType.java new file mode 100644 index 000000000..0cd53f19a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyEnableKeyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamEncryptionKeyEnableKeyType { + // struct team_log.TeamEncryptionKeyEnableKeyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEncryptionKeyEnableKeyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyEnableKeyType other = (TeamEncryptionKeyEnableKeyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyEnableKeyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyEnableKeyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyEnableKeyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamEncryptionKeyEnableKeyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyDetails.java new file mode 100644 index 000000000..616aee687 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Rotated team encryption key. + */ +public class TeamEncryptionKeyRotateKeyDetails { + // struct team_log.TeamEncryptionKeyRotateKeyDetails (team_log_generated.stone) + + + /** + * Rotated team encryption key. + */ + public TeamEncryptionKeyRotateKeyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyRotateKeyDetails other = (TeamEncryptionKeyRotateKeyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyRotateKeyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyRotateKeyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyRotateKeyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamEncryptionKeyRotateKeyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyType.java new file mode 100644 index 000000000..089678fa5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyRotateKeyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamEncryptionKeyRotateKeyType { + // struct team_log.TeamEncryptionKeyRotateKeyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEncryptionKeyRotateKeyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyRotateKeyType other = (TeamEncryptionKeyRotateKeyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyRotateKeyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyRotateKeyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyRotateKeyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamEncryptionKeyRotateKeyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionDetails.java new file mode 100644 index 000000000..599d8b619 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Scheduled encryption key deletion. + */ +public class TeamEncryptionKeyScheduleKeyDeletionDetails { + // struct team_log.TeamEncryptionKeyScheduleKeyDeletionDetails (team_log_generated.stone) + + + /** + * Scheduled encryption key deletion. + */ + public TeamEncryptionKeyScheduleKeyDeletionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyScheduleKeyDeletionDetails other = (TeamEncryptionKeyScheduleKeyDeletionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyScheduleKeyDeletionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyScheduleKeyDeletionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyScheduleKeyDeletionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamEncryptionKeyScheduleKeyDeletionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionType.java new file mode 100644 index 000000000..76fa9ff60 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEncryptionKeyScheduleKeyDeletionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamEncryptionKeyScheduleKeyDeletionType { + // struct team_log.TeamEncryptionKeyScheduleKeyDeletionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEncryptionKeyScheduleKeyDeletionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEncryptionKeyScheduleKeyDeletionType other = (TeamEncryptionKeyScheduleKeyDeletionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEncryptionKeyScheduleKeyDeletionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEncryptionKeyScheduleKeyDeletionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEncryptionKeyScheduleKeyDeletionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamEncryptionKeyScheduleKeyDeletionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEvent.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEvent.java new file mode 100644 index 000000000..567279216 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamEvent.java @@ -0,0 +1,628 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * An audit log event. + */ +public class TeamEvent { + // struct team_log.TeamEvent (team_log_generated.stone) + + @Nonnull + protected final Date timestamp; + @Nonnull + protected final EventCategory eventCategory; + @Nullable + protected final ActorLogInfo actor; + @Nullable + protected final OriginLogInfo origin; + @Nullable + protected final Boolean involveNonTeamMember; + @Nullable + protected final ContextLogInfo context; + @Nullable + protected final List participants; + @Nullable + protected final List assets; + @Nonnull + protected final EventType eventType; + @Nonnull + protected final EventDetails details; + + /** + * An audit log event. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param timestamp The Dropbox timestamp representing when the action was + * taken. Must not be {@code null}. + * @param eventCategory The category that this type of action belongs to. + * Must not be {@code null}. + * @param eventType The particular type of action taken. Must not be {@code + * null}. + * @param details The variable event schema applicable to this type of + * action, instantiated with respect to this particular action. Must not + * be {@code null}. + * @param actor The entity who actually performed the action. Might be + * missing due to historical data gap. + * @param origin The origin from which the actor performed the action + * including information about host, ip address, location, session, etc. + * If the action was performed programmatically via the API the origin + * represents the API client. + * @param involveNonTeamMember True if the action involved a non team + * member either as the actor or as one of the affected users. Might be + * missing due to historical data gap. + * @param context The user or team on whose behalf the actor performed the + * action. Might be missing due to historical data gap. + * @param participants Zero or more users and/or groups that are affected + * by the action. Note that this list doesn't include any actors or + * users in context. Must not contain a {@code null} item. + * @param assets Zero or more content assets involved in the action. + * Currently these include Dropbox files and folders but in the future + * we might add other asset types such as Paper documents, folders, + * projects, etc. Must not contain a {@code null} item. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEvent(@Nonnull Date timestamp, @Nonnull EventCategory eventCategory, @Nonnull EventType eventType, @Nonnull EventDetails details, @Nullable ActorLogInfo actor, @Nullable OriginLogInfo origin, @Nullable Boolean involveNonTeamMember, @Nullable ContextLogInfo context, @Nullable List participants, @Nullable List assets) { + if (timestamp == null) { + throw new IllegalArgumentException("Required value for 'timestamp' is null"); + } + this.timestamp = LangUtil.truncateMillis(timestamp); + if (eventCategory == null) { + throw new IllegalArgumentException("Required value for 'eventCategory' is null"); + } + this.eventCategory = eventCategory; + this.actor = actor; + this.origin = origin; + this.involveNonTeamMember = involveNonTeamMember; + this.context = context; + if (participants != null) { + for (ParticipantLogInfo x : participants) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'participants' is null"); + } + } + } + this.participants = participants; + if (assets != null) { + for (AssetLogInfo x : assets) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'assets' is null"); + } + } + } + this.assets = assets; + if (eventType == null) { + throw new IllegalArgumentException("Required value for 'eventType' is null"); + } + this.eventType = eventType; + if (details == null) { + throw new IllegalArgumentException("Required value for 'details' is null"); + } + this.details = details; + } + + /** + * An audit log event. + * + *

The default values for unset fields will be used.

+ * + * @param timestamp The Dropbox timestamp representing when the action was + * taken. Must not be {@code null}. + * @param eventCategory The category that this type of action belongs to. + * Must not be {@code null}. + * @param eventType The particular type of action taken. Must not be {@code + * null}. + * @param details The variable event schema applicable to this type of + * action, instantiated with respect to this particular action. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamEvent(@Nonnull Date timestamp, @Nonnull EventCategory eventCategory, @Nonnull EventType eventType, @Nonnull EventDetails details) { + this(timestamp, eventCategory, eventType, details, null, null, null, null, null, null); + } + + /** + * The Dropbox timestamp representing when the action was taken. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Date getTimestamp() { + return timestamp; + } + + /** + * The category that this type of action belongs to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EventCategory getEventCategory() { + return eventCategory; + } + + /** + * The particular type of action taken. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EventType getEventType() { + return eventType; + } + + /** + * The variable event schema applicable to this type of action, instantiated + * with respect to this particular action. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EventDetails getDetails() { + return details; + } + + /** + * The entity who actually performed the action. Might be missing due to + * historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ActorLogInfo getActor() { + return actor; + } + + /** + * The origin from which the actor performed the action including + * information about host, ip address, location, session, etc. If the action + * was performed programmatically via the API the origin represents the API + * client. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public OriginLogInfo getOrigin() { + return origin; + } + + /** + * True if the action involved a non team member either as the actor or as + * one of the affected users. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getInvolveNonTeamMember() { + return involveNonTeamMember; + } + + /** + * The user or team on whose behalf the actor performed the action. Might be + * missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public ContextLogInfo getContext() { + return context; + } + + /** + * Zero or more users and/or groups that are affected by the action. Note + * that this list doesn't include any actors or users in context. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getParticipants() { + return participants; + } + + /** + * Zero or more content assets involved in the action. Currently these + * include Dropbox files and folders but in the future we might add other + * asset types such as Paper documents, folders, projects, etc. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public List getAssets() { + return assets; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param timestamp The Dropbox timestamp representing when the action was + * taken. Must not be {@code null}. + * @param eventCategory The category that this type of action belongs to. + * Must not be {@code null}. + * @param eventType The particular type of action taken. Must not be {@code + * null}. + * @param details The variable event schema applicable to this type of + * action, instantiated with respect to this particular action. Must not + * be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details) { + return new Builder(timestamp, eventCategory, eventType, details); + } + + /** + * Builder for {@link TeamEvent}. + */ + public static class Builder { + protected final Date timestamp; + protected final EventCategory eventCategory; + protected final EventType eventType; + protected final EventDetails details; + + protected ActorLogInfo actor; + protected OriginLogInfo origin; + protected Boolean involveNonTeamMember; + protected ContextLogInfo context; + protected List participants; + protected List assets; + + protected Builder(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details) { + if (timestamp == null) { + throw new IllegalArgumentException("Required value for 'timestamp' is null"); + } + this.timestamp = LangUtil.truncateMillis(timestamp); + if (eventCategory == null) { + throw new IllegalArgumentException("Required value for 'eventCategory' is null"); + } + this.eventCategory = eventCategory; + if (eventType == null) { + throw new IllegalArgumentException("Required value for 'eventType' is null"); + } + this.eventType = eventType; + if (details == null) { + throw new IllegalArgumentException("Required value for 'details' is null"); + } + this.details = details; + this.actor = null; + this.origin = null; + this.involveNonTeamMember = null; + this.context = null; + this.participants = null; + this.assets = null; + } + + /** + * Set value for optional field. + * + * @param actor The entity who actually performed the action. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withActor(ActorLogInfo actor) { + this.actor = actor; + return this; + } + + /** + * Set value for optional field. + * + * @param origin The origin from which the actor performed the action + * including information about host, ip address, location, session, + * etc. If the action was performed programmatically via the API the + * origin represents the API client. + * + * @return this builder + */ + public Builder withOrigin(OriginLogInfo origin) { + this.origin = origin; + return this; + } + + /** + * Set value for optional field. + * + * @param involveNonTeamMember True if the action involved a non team + * member either as the actor or as one of the affected users. Might + * be missing due to historical data gap. + * + * @return this builder + */ + public Builder withInvolveNonTeamMember(Boolean involveNonTeamMember) { + this.involveNonTeamMember = involveNonTeamMember; + return this; + } + + /** + * Set value for optional field. + * + * @param context The user or team on whose behalf the actor performed + * the action. Might be missing due to historical data gap. + * + * @return this builder + */ + public Builder withContext(ContextLogInfo context) { + this.context = context; + return this; + } + + /** + * Set value for optional field. + * + * @param participants Zero or more users and/or groups that are + * affected by the action. Note that this list doesn't include any + * actors or users in context. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withParticipants(List participants) { + if (participants != null) { + for (ParticipantLogInfo x : participants) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'participants' is null"); + } + } + } + this.participants = participants; + return this; + } + + /** + * Set value for optional field. + * + * @param assets Zero or more content assets involved in the action. + * Currently these include Dropbox files and folders but in the + * future we might add other asset types such as Paper documents, + * folders, projects, etc. Must not contain a {@code null} item. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAssets(List assets) { + if (assets != null) { + for (AssetLogInfo x : assets) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'assets' is null"); + } + } + } + this.assets = assets; + return this; + } + + /** + * Builds an instance of {@link TeamEvent} configured with this + * builder's values + * + * @return new instance of {@link TeamEvent} + */ + public TeamEvent build() { + return new TeamEvent(timestamp, eventCategory, eventType, details, actor, origin, involveNonTeamMember, context, participants, assets); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.timestamp, + this.eventCategory, + this.actor, + this.origin, + this.involveNonTeamMember, + this.context, + this.participants, + this.assets, + this.eventType, + this.details + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamEvent other = (TeamEvent) obj; + return ((this.timestamp == other.timestamp) || (this.timestamp.equals(other.timestamp))) + && ((this.eventCategory == other.eventCategory) || (this.eventCategory.equals(other.eventCategory))) + && ((this.eventType == other.eventType) || (this.eventType.equals(other.eventType))) + && ((this.details == other.details) || (this.details.equals(other.details))) + && ((this.actor == other.actor) || (this.actor != null && this.actor.equals(other.actor))) + && ((this.origin == other.origin) || (this.origin != null && this.origin.equals(other.origin))) + && ((this.involveNonTeamMember == other.involveNonTeamMember) || (this.involveNonTeamMember != null && this.involveNonTeamMember.equals(other.involveNonTeamMember))) + && ((this.context == other.context) || (this.context != null && this.context.equals(other.context))) + && ((this.participants == other.participants) || (this.participants != null && this.participants.equals(other.participants))) + && ((this.assets == other.assets) || (this.assets != null && this.assets.equals(other.assets))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamEvent value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("timestamp"); + StoneSerializers.timestamp().serialize(value.timestamp, g); + g.writeFieldName("event_category"); + EventCategory.Serializer.INSTANCE.serialize(value.eventCategory, g); + g.writeFieldName("event_type"); + EventType.Serializer.INSTANCE.serialize(value.eventType, g); + g.writeFieldName("details"); + EventDetails.Serializer.INSTANCE.serialize(value.details, g); + if (value.actor != null) { + g.writeFieldName("actor"); + StoneSerializers.nullable(ActorLogInfo.Serializer.INSTANCE).serialize(value.actor, g); + } + if (value.origin != null) { + g.writeFieldName("origin"); + StoneSerializers.nullableStruct(OriginLogInfo.Serializer.INSTANCE).serialize(value.origin, g); + } + if (value.involveNonTeamMember != null) { + g.writeFieldName("involve_non_team_member"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.involveNonTeamMember, g); + } + if (value.context != null) { + g.writeFieldName("context"); + StoneSerializers.nullable(ContextLogInfo.Serializer.INSTANCE).serialize(value.context, g); + } + if (value.participants != null) { + g.writeFieldName("participants"); + StoneSerializers.nullable(StoneSerializers.list(ParticipantLogInfo.Serializer.INSTANCE)).serialize(value.participants, g); + } + if (value.assets != null) { + g.writeFieldName("assets"); + StoneSerializers.nullable(StoneSerializers.list(AssetLogInfo.Serializer.INSTANCE)).serialize(value.assets, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamEvent deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamEvent value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Date f_timestamp = null; + EventCategory f_eventCategory = null; + EventType f_eventType = null; + EventDetails f_details = null; + ActorLogInfo f_actor = null; + OriginLogInfo f_origin = null; + Boolean f_involveNonTeamMember = null; + ContextLogInfo f_context = null; + List f_participants = null; + List f_assets = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("timestamp".equals(field)) { + f_timestamp = StoneSerializers.timestamp().deserialize(p); + } + else if ("event_category".equals(field)) { + f_eventCategory = EventCategory.Serializer.INSTANCE.deserialize(p); + } + else if ("event_type".equals(field)) { + f_eventType = EventType.Serializer.INSTANCE.deserialize(p); + } + else if ("details".equals(field)) { + f_details = EventDetails.Serializer.INSTANCE.deserialize(p); + } + else if ("actor".equals(field)) { + f_actor = StoneSerializers.nullable(ActorLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("origin".equals(field)) { + f_origin = StoneSerializers.nullableStruct(OriginLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("involve_non_team_member".equals(field)) { + f_involveNonTeamMember = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else if ("context".equals(field)) { + f_context = StoneSerializers.nullable(ContextLogInfo.Serializer.INSTANCE).deserialize(p); + } + else if ("participants".equals(field)) { + f_participants = StoneSerializers.nullable(StoneSerializers.list(ParticipantLogInfo.Serializer.INSTANCE)).deserialize(p); + } + else if ("assets".equals(field)) { + f_assets = StoneSerializers.nullable(StoneSerializers.list(AssetLogInfo.Serializer.INSTANCE)).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_timestamp == null) { + throw new JsonParseException(p, "Required field \"timestamp\" missing."); + } + if (f_eventCategory == null) { + throw new JsonParseException(p, "Required field \"event_category\" missing."); + } + if (f_eventType == null) { + throw new JsonParseException(p, "Required field \"event_type\" missing."); + } + if (f_details == null) { + throw new JsonParseException(p, "Required field \"details\" missing."); + } + value = new TeamEvent(f_timestamp, f_eventCategory, f_eventType, f_details, f_actor, f_origin, f_involveNonTeamMember, f_context, f_participants, f_assets); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicy.java new file mode 100644 index 000000000..28e5f41d8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling whether App Integrations are enabled for the team. + */ +public enum TeamExtensionsPolicy { + // union team_log.TeamExtensionsPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamExtensionsPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamExtensionsPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + TeamExtensionsPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = TeamExtensionsPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = TeamExtensionsPolicy.ENABLED; + } + else { + value = TeamExtensionsPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedDetails.java new file mode 100644 index 000000000..3317696ef --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed App Integrations setting for team. + */ +public class TeamExtensionsPolicyChangedDetails { + // struct team_log.TeamExtensionsPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamExtensionsPolicy newValue; + @Nonnull + protected final TeamExtensionsPolicy previousValue; + + /** + * Changed App Integrations setting for team. + * + * @param newValue New Extensions policy. Must not be {@code null}. + * @param previousValue Previous Extensions policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamExtensionsPolicyChangedDetails(@Nonnull TeamExtensionsPolicy newValue, @Nonnull TeamExtensionsPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Extensions policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamExtensionsPolicy getNewValue() { + return newValue; + } + + /** + * Previous Extensions policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamExtensionsPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamExtensionsPolicyChangedDetails other = (TeamExtensionsPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamExtensionsPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TeamExtensionsPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + TeamExtensionsPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamExtensionsPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamExtensionsPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamExtensionsPolicy f_newValue = null; + TeamExtensionsPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TeamExtensionsPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = TeamExtensionsPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new TeamExtensionsPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedType.java new file mode 100644 index 000000000..a797dd695 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamExtensionsPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamExtensionsPolicyChangedType { + // struct team_log.TeamExtensionsPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamExtensionsPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamExtensionsPolicyChangedType other = (TeamExtensionsPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamExtensionsPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamExtensionsPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamExtensionsPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamExtensionsPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderChangeStatusDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderChangeStatusDetails.java new file mode 100644 index 000000000..211b0466a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderChangeStatusDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.team.TeamFolderStatus; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed archival status of team folder. + */ +public class TeamFolderChangeStatusDetails { + // struct team_log.TeamFolderChangeStatusDetails (team_log_generated.stone) + + @Nonnull + protected final TeamFolderStatus newValue; + @Nullable + protected final TeamFolderStatus previousValue; + + /** + * Changed archival status of team folder. + * + * @param newValue New team folder status. Must not be {@code null}. + * @param previousValue Previous team folder status. Might be missing due + * to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderChangeStatusDetails(@Nonnull TeamFolderStatus newValue, @Nullable TeamFolderStatus previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed archival status of team folder. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New team folder status. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderChangeStatusDetails(@Nonnull TeamFolderStatus newValue) { + this(newValue, null); + } + + /** + * New team folder status. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamFolderStatus getNewValue() { + return newValue; + } + + /** + * Previous team folder status. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TeamFolderStatus getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderChangeStatusDetails other = (TeamFolderChangeStatusDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderChangeStatusDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TeamFolderStatus.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(TeamFolderStatus.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderChangeStatusDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderChangeStatusDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamFolderStatus f_newValue = null; + TeamFolderStatus f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TeamFolderStatus.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(TeamFolderStatus.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new TeamFolderChangeStatusDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderChangeStatusType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderChangeStatusType.java new file mode 100644 index 000000000..410688ee6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderChangeStatusType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamFolderChangeStatusType { + // struct team_log.TeamFolderChangeStatusType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderChangeStatusType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderChangeStatusType other = (TeamFolderChangeStatusType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderChangeStatusType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderChangeStatusType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderChangeStatusType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamFolderChangeStatusType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderCreateDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderCreateDetails.java new file mode 100644 index 000000000..cf3156815 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderCreateDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Created team folder in active status. + */ +public class TeamFolderCreateDetails { + // struct team_log.TeamFolderCreateDetails (team_log_generated.stone) + + + /** + * Created team folder in active status. + */ + public TeamFolderCreateDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderCreateDetails other = (TeamFolderCreateDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderCreateDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderCreateDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderCreateDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamFolderCreateDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderCreateType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderCreateType.java new file mode 100644 index 000000000..6eebe2fef --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderCreateType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamFolderCreateType { + // struct team_log.TeamFolderCreateType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderCreateType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderCreateType other = (TeamFolderCreateType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderCreateType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderCreateType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderCreateType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamFolderCreateType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderDowngradeDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderDowngradeDetails.java new file mode 100644 index 000000000..f0a2096d5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderDowngradeDetails.java @@ -0,0 +1,141 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Downgraded team folder to regular shared folder. + */ +public class TeamFolderDowngradeDetails { + // struct team_log.TeamFolderDowngradeDetails (team_log_generated.stone) + + protected final long targetAssetIndex; + + /** + * Downgraded team folder to regular shared folder. + * + * @param targetAssetIndex Target asset position in the Assets list. + */ + public TeamFolderDowngradeDetails(long targetAssetIndex) { + this.targetAssetIndex = targetAssetIndex; + } + + /** + * Target asset position in the Assets list. + * + * @return value for this field. + */ + public long getTargetAssetIndex() { + return targetAssetIndex; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.targetAssetIndex + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderDowngradeDetails other = (TeamFolderDowngradeDetails) obj; + return this.targetAssetIndex == other.targetAssetIndex; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderDowngradeDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("target_asset_index"); + StoneSerializers.uInt64().serialize(value.targetAssetIndex, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderDowngradeDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderDowngradeDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_targetAssetIndex = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("target_asset_index".equals(field)) { + f_targetAssetIndex = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_targetAssetIndex == null) { + throw new JsonParseException(p, "Required field \"target_asset_index\" missing."); + } + value = new TeamFolderDowngradeDetails(f_targetAssetIndex); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderDowngradeType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderDowngradeType.java new file mode 100644 index 000000000..f7d04b453 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderDowngradeType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamFolderDowngradeType { + // struct team_log.TeamFolderDowngradeType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderDowngradeType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderDowngradeType other = (TeamFolderDowngradeType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderDowngradeType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderDowngradeType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderDowngradeType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamFolderDowngradeType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteDetails.java new file mode 100644 index 000000000..eab70b6a9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Permanently deleted archived team folder. + */ +public class TeamFolderPermanentlyDeleteDetails { + // struct team_log.TeamFolderPermanentlyDeleteDetails (team_log_generated.stone) + + + /** + * Permanently deleted archived team folder. + */ + public TeamFolderPermanentlyDeleteDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderPermanentlyDeleteDetails other = (TeamFolderPermanentlyDeleteDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderPermanentlyDeleteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderPermanentlyDeleteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderPermanentlyDeleteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamFolderPermanentlyDeleteDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteType.java new file mode 100644 index 000000000..f0a6f50a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderPermanentlyDeleteType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamFolderPermanentlyDeleteType { + // struct team_log.TeamFolderPermanentlyDeleteType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderPermanentlyDeleteType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderPermanentlyDeleteType other = (TeamFolderPermanentlyDeleteType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderPermanentlyDeleteType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderPermanentlyDeleteType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderPermanentlyDeleteType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamFolderPermanentlyDeleteType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderRenameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderRenameDetails.java new file mode 100644 index 000000000..427014207 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderRenameDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Renamed active/archived team folder. + */ +public class TeamFolderRenameDetails { + // struct team_log.TeamFolderRenameDetails (team_log_generated.stone) + + @Nonnull + protected final String previousFolderName; + @Nonnull + protected final String newFolderName; + + /** + * Renamed active/archived team folder. + * + * @param previousFolderName Previous folder name. Must not be {@code + * null}. + * @param newFolderName New folder name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderRenameDetails(@Nonnull String previousFolderName, @Nonnull String newFolderName) { + if (previousFolderName == null) { + throw new IllegalArgumentException("Required value for 'previousFolderName' is null"); + } + this.previousFolderName = previousFolderName; + if (newFolderName == null) { + throw new IllegalArgumentException("Required value for 'newFolderName' is null"); + } + this.newFolderName = newFolderName; + } + + /** + * Previous folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousFolderName() { + return previousFolderName; + } + + /** + * New folder name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewFolderName() { + return newFolderName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousFolderName, + this.newFolderName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderRenameDetails other = (TeamFolderRenameDetails) obj; + return ((this.previousFolderName == other.previousFolderName) || (this.previousFolderName.equals(other.previousFolderName))) + && ((this.newFolderName == other.newFolderName) || (this.newFolderName.equals(other.newFolderName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderRenameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_folder_name"); + StoneSerializers.string().serialize(value.previousFolderName, g); + g.writeFieldName("new_folder_name"); + StoneSerializers.string().serialize(value.newFolderName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderRenameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderRenameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousFolderName = null; + String f_newFolderName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_folder_name".equals(field)) { + f_previousFolderName = StoneSerializers.string().deserialize(p); + } + else if ("new_folder_name".equals(field)) { + f_newFolderName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousFolderName == null) { + throw new JsonParseException(p, "Required field \"previous_folder_name\" missing."); + } + if (f_newFolderName == null) { + throw new JsonParseException(p, "Required field \"new_folder_name\" missing."); + } + value = new TeamFolderRenameDetails(f_previousFolderName, f_newFolderName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderRenameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderRenameType.java new file mode 100644 index 000000000..098c747d1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamFolderRenameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamFolderRenameType { + // struct team_log.TeamFolderRenameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamFolderRenameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamFolderRenameType other = (TeamFolderRenameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamFolderRenameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamFolderRenameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamFolderRenameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamFolderRenameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamInviteDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamInviteDetails.java new file mode 100644 index 000000000..ed5d8743a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamInviteDetails.java @@ -0,0 +1,194 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Details about team invites + */ +public class TeamInviteDetails { + // struct team_log.TeamInviteDetails (team_log_generated.stone) + + @Nonnull + protected final InviteMethod inviteMethod; + @Nullable + protected final Boolean additionalLicensePurchase; + + /** + * Details about team invites + * + * @param inviteMethod How the user was invited to the team. Must not be + * {@code null}. + * @param additionalLicensePurchase True if the invitation incurred an + * additional license purchase. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamInviteDetails(@Nonnull InviteMethod inviteMethod, @Nullable Boolean additionalLicensePurchase) { + if (inviteMethod == null) { + throw new IllegalArgumentException("Required value for 'inviteMethod' is null"); + } + this.inviteMethod = inviteMethod; + this.additionalLicensePurchase = additionalLicensePurchase; + } + + /** + * Details about team invites + * + *

The default values for unset fields will be used.

+ * + * @param inviteMethod How the user was invited to the team. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamInviteDetails(@Nonnull InviteMethod inviteMethod) { + this(inviteMethod, null); + } + + /** + * How the user was invited to the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public InviteMethod getInviteMethod() { + return inviteMethod; + } + + /** + * True if the invitation incurred an additional license purchase. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getAdditionalLicensePurchase() { + return additionalLicensePurchase; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.inviteMethod, + this.additionalLicensePurchase + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamInviteDetails other = (TeamInviteDetails) obj; + return ((this.inviteMethod == other.inviteMethod) || (this.inviteMethod.equals(other.inviteMethod))) + && ((this.additionalLicensePurchase == other.additionalLicensePurchase) || (this.additionalLicensePurchase != null && this.additionalLicensePurchase.equals(other.additionalLicensePurchase))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamInviteDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("invite_method"); + InviteMethod.Serializer.INSTANCE.serialize(value.inviteMethod, g); + if (value.additionalLicensePurchase != null) { + g.writeFieldName("additional_license_purchase"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.additionalLicensePurchase, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamInviteDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamInviteDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + InviteMethod f_inviteMethod = null; + Boolean f_additionalLicensePurchase = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("invite_method".equals(field)) { + f_inviteMethod = InviteMethod.Serializer.INSTANCE.deserialize(p); + } + else if ("additional_license_purchase".equals(field)) { + f_additionalLicensePurchase = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_inviteMethod == null) { + throw new JsonParseException(p, "Required field \"invite_method\" missing."); + } + value = new TeamInviteDetails(f_inviteMethod, f_additionalLicensePurchase); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo.java new file mode 100644 index 000000000..f4e7269a6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamLinkedAppLogInfo.java @@ -0,0 +1,229 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Team linked app + */ +public class TeamLinkedAppLogInfo extends AppLogInfo { + // struct team_log.TeamLinkedAppLogInfo (team_log_generated.stone) + + + /** + * Team linked app + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param appId App unique ID. + * @param displayName App display name. + */ + public TeamLinkedAppLogInfo(@Nullable String appId, @Nullable String displayName) { + super(appId, displayName); + } + + /** + * Team linked app + * + *

The default values for unset fields will be used.

+ */ + public TeamLinkedAppLogInfo() { + this(null, null); + } + + /** + * App unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAppId() { + return appId; + } + + /** + * App display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link TeamLinkedAppLogInfo}. + */ + public static class Builder extends AppLogInfo.Builder { + + protected Builder() { + } + + /** + * Set value for optional field. + * + * @param appId App unique ID. + * + * @return this builder + */ + public Builder withAppId(String appId) { + super.withAppId(appId); + return this; + } + + /** + * Set value for optional field. + * + * @param displayName App display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Builds an instance of {@link TeamLinkedAppLogInfo} configured with + * this builder's values + * + * @return new instance of {@link TeamLinkedAppLogInfo} + */ + public TeamLinkedAppLogInfo build() { + return new TeamLinkedAppLogInfo(appId, displayName); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamLinkedAppLogInfo other = (TeamLinkedAppLogInfo) obj; + return ((this.appId == other.appId) || (this.appId != null && this.appId.equals(other.appId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamLinkedAppLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("team_linked_app", g); + if (value.appId != null) { + g.writeFieldName("app_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.appId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamLinkedAppLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamLinkedAppLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("team_linked_app".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_appId = null; + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_id".equals(field)) { + f_appId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new TeamLinkedAppLogInfo(f_appId, f_displayName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamLogInfo.java new file mode 100644 index 000000000..12761424c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamLogInfo.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team's logged information. + */ +public class TeamLogInfo { + // struct team_log.TeamLogInfo (team_log_generated.stone) + + @Nonnull + protected final String displayName; + + /** + * Team's logged information. + * + * @param displayName Team display name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamLogInfo(@Nonnull String displayName) { + if (displayName == null) { + throw new IllegalArgumentException("Required value for 'displayName' is null"); + } + this.displayName = displayName; + } + + /** + * Team display name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDisplayName() { + return displayName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.displayName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamLogInfo other = (TeamLogInfo) obj; + return (this.displayName == other.displayName) || (this.displayName.equals(other.displayName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("display_name"); + StoneSerializers.string().serialize(value.displayName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("display_name".equals(field)) { + f_displayName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_displayName == null) { + throw new JsonParseException(p, "Required field \"display_name\" missing."); + } + value = new TeamLogInfo(f_displayName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMemberLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMemberLogInfo.java new file mode 100644 index 000000000..d8ceaa792 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMemberLogInfo.java @@ -0,0 +1,407 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Team member's logged information. + */ +public class TeamMemberLogInfo extends UserLogInfo { + // struct team_log.TeamMemberLogInfo (team_log_generated.stone) + + @Nullable + protected final String teamMemberId; + @Nullable + protected final String memberExternalId; + @Nullable + protected final TeamLogInfo team; + + /** + * Team member's logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * @param displayName User display name. + * @param email User email address. Must have length of at most 255. + * @param teamMemberId Team member ID. + * @param memberExternalId Team member external ID. Must have length of at + * most 64. + * @param team Details about this user&#x2019s team for enterprise + * event. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberLogInfo(@Nullable String accountId, @Nullable String displayName, @Nullable String email, @Nullable String teamMemberId, @Nullable String memberExternalId, @Nullable TeamLogInfo team) { + super(accountId, displayName, email); + this.teamMemberId = teamMemberId; + if (memberExternalId != null) { + if (memberExternalId.length() > 64) { + throw new IllegalArgumentException("String 'memberExternalId' is longer than 64"); + } + } + this.memberExternalId = memberExternalId; + this.team = team; + } + + /** + * Team member's logged information. + * + *

The default values for unset fields will be used.

+ */ + public TeamMemberLogInfo() { + this(null, null, null, null, null, null); + } + + /** + * User unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * User display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * User email address. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getEmail() { + return email; + } + + /** + * Team member ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * Team member external ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getMemberExternalId() { + return memberExternalId; + } + + /** + * Details about this user&#x2019s team for enterprise event. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TeamLogInfo getTeam() { + return team; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link TeamMemberLogInfo}. + */ + public static class Builder extends UserLogInfo.Builder { + + protected String teamMemberId; + protected String memberExternalId; + protected TeamLogInfo team; + + protected Builder() { + this.teamMemberId = null; + this.memberExternalId = null; + this.team = null; + } + + /** + * Set value for optional field. + * + * @param teamMemberId Team member ID. + * + * @return this builder + */ + public Builder withTeamMemberId(String teamMemberId) { + this.teamMemberId = teamMemberId; + return this; + } + + /** + * Set value for optional field. + * + * @param memberExternalId Team member external ID. Must have length of + * at most 64. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withMemberExternalId(String memberExternalId) { + if (memberExternalId != null) { + if (memberExternalId.length() > 64) { + throw new IllegalArgumentException("String 'memberExternalId' is longer than 64"); + } + } + this.memberExternalId = memberExternalId; + return this; + } + + /** + * Set value for optional field. + * + * @param team Details about this user&#x2019s team for enterprise + * event. + * + * @return this builder + */ + public Builder withTeam(TeamLogInfo team) { + this.team = team; + return this; + } + + /** + * Set value for optional field. + * + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + super.withAccountId(accountId); + return this; + } + + /** + * Set value for optional field. + * + * @param displayName User display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Set value for optional field. + * + * @param email User email address. Must have length of at most 255. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withEmail(String email) { + super.withEmail(email); + return this; + } + + /** + * Builds an instance of {@link TeamMemberLogInfo} configured with this + * builder's values + * + * @return new instance of {@link TeamMemberLogInfo} + */ + public TeamMemberLogInfo build() { + return new TeamMemberLogInfo(accountId, displayName, email, teamMemberId, memberExternalId, team); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamMemberId, + this.memberExternalId, + this.team + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberLogInfo other = (TeamMemberLogInfo) obj; + return ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.email == other.email) || (this.email != null && this.email.equals(other.email))) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId != null && this.teamMemberId.equals(other.teamMemberId))) + && ((this.memberExternalId == other.memberExternalId) || (this.memberExternalId != null && this.memberExternalId.equals(other.memberExternalId))) + && ((this.team == other.team) || (this.team != null && this.team.equals(other.team))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("team_member", g); + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.email != null) { + g.writeFieldName("email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.email, g); + } + if (value.teamMemberId != null) { + g.writeFieldName("team_member_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamMemberId, g); + } + if (value.memberExternalId != null) { + g.writeFieldName("member_external_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.memberExternalId, g); + } + if (value.team != null) { + g.writeFieldName("team"); + StoneSerializers.nullableStruct(TeamLogInfo.Serializer.INSTANCE).serialize(value.team, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("team_member".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_accountId = null; + String f_displayName = null; + String f_email = null; + String f_teamMemberId = null; + String f_memberExternalId = null; + TeamLogInfo f_team = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("member_external_id".equals(field)) { + f_memberExternalId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team".equals(field)) { + f_team = StoneSerializers.nullableStruct(TeamLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new TeamMemberLogInfo(f_accountId, f_displayName, f_email, f_teamMemberId, f_memberExternalId, f_team); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMembershipType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMembershipType.java new file mode 100644 index 000000000..c493a4abe --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMembershipType.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TeamMembershipType { + // union team_log.TeamMembershipType (team_log_generated.stone) + FREE, + FULL, + GUEST, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMembershipType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FREE: { + g.writeString("free"); + break; + } + case FULL: { + g.writeString("full"); + break; + } + case GUEST: { + g.writeString("guest"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamMembershipType deserialize(JsonParser p) throws IOException, JsonParseException { + TeamMembershipType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("free".equals(tag)) { + value = TeamMembershipType.FREE; + } + else if ("full".equals(tag)) { + value = TeamMembershipType.FULL; + } + else if ("guest".equals(tag)) { + value = TeamMembershipType.GUEST; + } + else { + value = TeamMembershipType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeFromDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeFromDetails.java new file mode 100644 index 000000000..6394c3519 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeFromDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Merged another team into this team. + */ +public class TeamMergeFromDetails { + // struct team_log.TeamMergeFromDetails (team_log_generated.stone) + + @Nonnull + protected final String teamName; + + /** + * Merged another team into this team. + * + * @param teamName The name of the team that was merged into this team. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeFromDetails(@Nonnull String teamName) { + if (teamName == null) { + throw new IllegalArgumentException("Required value for 'teamName' is null"); + } + this.teamName = teamName; + } + + /** + * The name of the team that was merged into this team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamName() { + return teamName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeFromDetails other = (TeamMergeFromDetails) obj; + return (this.teamName == other.teamName) || (this.teamName.equals(other.teamName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeFromDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_name"); + StoneSerializers.string().serialize(value.teamName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeFromDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeFromDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_name".equals(field)) { + f_teamName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamName == null) { + throw new JsonParseException(p, "Required field \"team_name\" missing."); + } + value = new TeamMergeFromDetails(f_teamName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeFromType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeFromType.java new file mode 100644 index 000000000..66f1b7f1b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeFromType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeFromType { + // struct team_log.TeamMergeFromType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeFromType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeFromType other = (TeamMergeFromType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeFromType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeFromType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeFromType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeFromType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedDetails.java new file mode 100644 index 000000000..d92dd26f2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Accepted a team merge request. + */ +public class TeamMergeRequestAcceptedDetails { + // struct team_log.TeamMergeRequestAcceptedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamMergeRequestAcceptedExtraDetails requestAcceptedDetails; + + /** + * Accepted a team merge request. + * + * @param requestAcceptedDetails Team merge request acceptance details. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestAcceptedDetails(@Nonnull TeamMergeRequestAcceptedExtraDetails requestAcceptedDetails) { + if (requestAcceptedDetails == null) { + throw new IllegalArgumentException("Required value for 'requestAcceptedDetails' is null"); + } + this.requestAcceptedDetails = requestAcceptedDetails; + } + + /** + * Team merge request acceptance details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMergeRequestAcceptedExtraDetails getRequestAcceptedDetails() { + return requestAcceptedDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.requestAcceptedDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAcceptedDetails other = (TeamMergeRequestAcceptedDetails) obj; + return (this.requestAcceptedDetails == other.requestAcceptedDetails) || (this.requestAcceptedDetails.equals(other.requestAcceptedDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAcceptedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("request_accepted_details"); + TeamMergeRequestAcceptedExtraDetails.Serializer.INSTANCE.serialize(value.requestAcceptedDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAcceptedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAcceptedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMergeRequestAcceptedExtraDetails f_requestAcceptedDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("request_accepted_details".equals(field)) { + f_requestAcceptedDetails = TeamMergeRequestAcceptedExtraDetails.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_requestAcceptedDetails == null) { + throw new JsonParseException(p, "Required field \"request_accepted_details\" missing."); + } + value = new TeamMergeRequestAcceptedDetails(f_requestAcceptedDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails.java new file mode 100644 index 000000000..3f0ca3b76 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedExtraDetails.java @@ -0,0 +1,372 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Team merge request acceptance details + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TeamMergeRequestAcceptedExtraDetails { + // union team_log.TeamMergeRequestAcceptedExtraDetails (team_log_generated.stone) + + /** + * Discriminating tag type for {@link TeamMergeRequestAcceptedExtraDetails}. + */ + public enum Tag { + /** + * Team merge request accepted details shown to the primary team. + */ + PRIMARY_TEAM, // PrimaryTeamRequestAcceptedDetails + /** + * Team merge request accepted details shown to the secondary team. + */ + SECONDARY_TEAM, // SecondaryTeamRequestAcceptedDetails + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamMergeRequestAcceptedExtraDetails OTHER = new TeamMergeRequestAcceptedExtraDetails().withTag(Tag.OTHER); + + private Tag _tag; + private PrimaryTeamRequestAcceptedDetails primaryTeamValue; + private SecondaryTeamRequestAcceptedDetails secondaryTeamValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamMergeRequestAcceptedExtraDetails() { + } + + + /** + * Team merge request acceptance details + * + * @param _tag Discriminating tag for this instance. + */ + private TeamMergeRequestAcceptedExtraDetails withTag(Tag _tag) { + TeamMergeRequestAcceptedExtraDetails result = new TeamMergeRequestAcceptedExtraDetails(); + result._tag = _tag; + return result; + } + + /** + * Team merge request acceptance details + * + * @param primaryTeamValue Team merge request accepted details shown to the + * primary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestAcceptedExtraDetails withTagAndPrimaryTeam(Tag _tag, PrimaryTeamRequestAcceptedDetails primaryTeamValue) { + TeamMergeRequestAcceptedExtraDetails result = new TeamMergeRequestAcceptedExtraDetails(); + result._tag = _tag; + result.primaryTeamValue = primaryTeamValue; + return result; + } + + /** + * Team merge request acceptance details + * + * @param secondaryTeamValue Team merge request accepted details shown to + * the secondary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestAcceptedExtraDetails withTagAndSecondaryTeam(Tag _tag, SecondaryTeamRequestAcceptedDetails secondaryTeamValue) { + TeamMergeRequestAcceptedExtraDetails result = new TeamMergeRequestAcceptedExtraDetails(); + result._tag = _tag; + result.secondaryTeamValue = secondaryTeamValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamMergeRequestAcceptedExtraDetails}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + */ + public boolean isPrimaryTeam() { + return this._tag == Tag.PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestAcceptedExtraDetails} that + * has its tag set to {@link Tag#PRIMARY_TEAM}. + * + *

Team merge request accepted details shown to the primary team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestAcceptedExtraDetails} with its + * tag set to {@link Tag#PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestAcceptedExtraDetails primaryTeam(PrimaryTeamRequestAcceptedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestAcceptedExtraDetails().withTagAndPrimaryTeam(Tag.PRIMARY_TEAM, value); + } + + /** + * Team merge request accepted details shown to the primary team. + * + *

This instance must be tagged as {@link Tag#PRIMARY_TEAM}.

+ * + * @return The {@link PrimaryTeamRequestAcceptedDetails} value associated + * with this instance if {@link #isPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isPrimaryTeam} is {@code + * false}. + */ + public PrimaryTeamRequestAcceptedDetails getPrimaryTeamValue() { + if (this._tag != Tag.PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return primaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + */ + public boolean isSecondaryTeam() { + return this._tag == Tag.SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestAcceptedExtraDetails} that + * has its tag set to {@link Tag#SECONDARY_TEAM}. + * + *

Team merge request accepted details shown to the secondary team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestAcceptedExtraDetails} with its + * tag set to {@link Tag#SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestAcceptedExtraDetails secondaryTeam(SecondaryTeamRequestAcceptedDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestAcceptedExtraDetails().withTagAndSecondaryTeam(Tag.SECONDARY_TEAM, value); + } + + /** + * Team merge request accepted details shown to the secondary team. + * + *

This instance must be tagged as {@link Tag#SECONDARY_TEAM}.

+ * + * @return The {@link SecondaryTeamRequestAcceptedDetails} value associated + * with this instance if {@link #isSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isSecondaryTeam} is {@code + * false}. + */ + public SecondaryTeamRequestAcceptedDetails getSecondaryTeamValue() { + if (this._tag != Tag.SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return secondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.primaryTeamValue, + this.secondaryTeamValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamMergeRequestAcceptedExtraDetails) { + TeamMergeRequestAcceptedExtraDetails other = (TeamMergeRequestAcceptedExtraDetails) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PRIMARY_TEAM: + return (this.primaryTeamValue == other.primaryTeamValue) || (this.primaryTeamValue.equals(other.primaryTeamValue)); + case SECONDARY_TEAM: + return (this.secondaryTeamValue == other.secondaryTeamValue) || (this.secondaryTeamValue.equals(other.secondaryTeamValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAcceptedExtraDetails value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("primary_team", g); + PrimaryTeamRequestAcceptedDetails.Serializer.INSTANCE.serialize(value.primaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("secondary_team", g); + SecondaryTeamRequestAcceptedDetails.Serializer.INSTANCE.serialize(value.secondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamMergeRequestAcceptedExtraDetails deserialize(JsonParser p) throws IOException, JsonParseException { + TeamMergeRequestAcceptedExtraDetails value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("primary_team".equals(tag)) { + PrimaryTeamRequestAcceptedDetails fieldValue = null; + fieldValue = PrimaryTeamRequestAcceptedDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestAcceptedExtraDetails.primaryTeam(fieldValue); + } + else if ("secondary_team".equals(tag)) { + SecondaryTeamRequestAcceptedDetails fieldValue = null; + fieldValue = SecondaryTeamRequestAcceptedDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestAcceptedExtraDetails.secondaryTeam(fieldValue); + } + else { + value = TeamMergeRequestAcceptedExtraDetails.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamDetails.java new file mode 100644 index 000000000..c16d01b26 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Accepted a team merge request. + */ +public class TeamMergeRequestAcceptedShownToPrimaryTeamDetails { + // struct team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Accepted a team merge request. + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestAcceptedShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAcceptedShownToPrimaryTeamDetails other = (TeamMergeRequestAcceptedShownToPrimaryTeamDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAcceptedShownToPrimaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAcceptedShownToPrimaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAcceptedShownToPrimaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new TeamMergeRequestAcceptedShownToPrimaryTeamDetails(f_secondaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamType.java new file mode 100644 index 000000000..8a43277e2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToPrimaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestAcceptedShownToPrimaryTeamType { + // struct team_log.TeamMergeRequestAcceptedShownToPrimaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestAcceptedShownToPrimaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAcceptedShownToPrimaryTeamType other = (TeamMergeRequestAcceptedShownToPrimaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAcceptedShownToPrimaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAcceptedShownToPrimaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAcceptedShownToPrimaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestAcceptedShownToPrimaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamDetails.java new file mode 100644 index 000000000..18cb95b95 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Accepted a team merge request. + */ +public class TeamMergeRequestAcceptedShownToSecondaryTeamDetails { + // struct team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String primaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Accepted a team merge request. + * + * @param primaryTeam The primary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestAcceptedShownToSecondaryTeamDetails(@Nonnull String primaryTeam, @Nonnull String sentBy) { + if (primaryTeam == null) { + throw new IllegalArgumentException("Required value for 'primaryTeam' is null"); + } + this.primaryTeam = primaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The primary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPrimaryTeam() { + return primaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.primaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAcceptedShownToSecondaryTeamDetails other = (TeamMergeRequestAcceptedShownToSecondaryTeamDetails) obj; + return ((this.primaryTeam == other.primaryTeam) || (this.primaryTeam.equals(other.primaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAcceptedShownToSecondaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("primary_team"); + StoneSerializers.string().serialize(value.primaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAcceptedShownToSecondaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAcceptedShownToSecondaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_primaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("primary_team".equals(field)) { + f_primaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_primaryTeam == null) { + throw new JsonParseException(p, "Required field \"primary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new TeamMergeRequestAcceptedShownToSecondaryTeamDetails(f_primaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamType.java new file mode 100644 index 000000000..25abc6954 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedShownToSecondaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestAcceptedShownToSecondaryTeamType { + // struct team_log.TeamMergeRequestAcceptedShownToSecondaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestAcceptedShownToSecondaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAcceptedShownToSecondaryTeamType other = (TeamMergeRequestAcceptedShownToSecondaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAcceptedShownToSecondaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAcceptedShownToSecondaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAcceptedShownToSecondaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestAcceptedShownToSecondaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedType.java new file mode 100644 index 000000000..7fd77762c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAcceptedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestAcceptedType { + // struct team_log.TeamMergeRequestAcceptedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestAcceptedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAcceptedType other = (TeamMergeRequestAcceptedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAcceptedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAcceptedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAcceptedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestAcceptedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledDetails.java new file mode 100644 index 000000000..4a82284ed --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledDetails.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Automatically canceled team merge request. + */ +public class TeamMergeRequestAutoCanceledDetails { + // struct team_log.TeamMergeRequestAutoCanceledDetails (team_log_generated.stone) + + @Nullable + protected final String details; + + /** + * Automatically canceled team merge request. + * + * @param details The cancellation reason. + */ + public TeamMergeRequestAutoCanceledDetails(@Nullable String details) { + this.details = details; + } + + /** + * Automatically canceled team merge request. + * + *

The default values for unset fields will be used.

+ */ + public TeamMergeRequestAutoCanceledDetails() { + this(null); + } + + /** + * The cancellation reason. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDetails() { + return details; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.details + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAutoCanceledDetails other = (TeamMergeRequestAutoCanceledDetails) obj; + return (this.details == other.details) || (this.details != null && this.details.equals(other.details)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAutoCanceledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.details != null) { + g.writeFieldName("details"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.details, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAutoCanceledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAutoCanceledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_details = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("details".equals(field)) { + f_details = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new TeamMergeRequestAutoCanceledDetails(f_details); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledType.java new file mode 100644 index 000000000..0abfff248 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestAutoCanceledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestAutoCanceledType { + // struct team_log.TeamMergeRequestAutoCanceledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestAutoCanceledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestAutoCanceledType other = (TeamMergeRequestAutoCanceledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestAutoCanceledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestAutoCanceledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestAutoCanceledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestAutoCanceledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledDetails.java new file mode 100644 index 000000000..eb6177b6e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Canceled a team merge request. + */ +public class TeamMergeRequestCanceledDetails { + // struct team_log.TeamMergeRequestCanceledDetails (team_log_generated.stone) + + @Nonnull + protected final TeamMergeRequestCanceledExtraDetails requestCanceledDetails; + + /** + * Canceled a team merge request. + * + * @param requestCanceledDetails Team merge request cancellation details. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestCanceledDetails(@Nonnull TeamMergeRequestCanceledExtraDetails requestCanceledDetails) { + if (requestCanceledDetails == null) { + throw new IllegalArgumentException("Required value for 'requestCanceledDetails' is null"); + } + this.requestCanceledDetails = requestCanceledDetails; + } + + /** + * Team merge request cancellation details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMergeRequestCanceledExtraDetails getRequestCanceledDetails() { + return requestCanceledDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.requestCanceledDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestCanceledDetails other = (TeamMergeRequestCanceledDetails) obj; + return (this.requestCanceledDetails == other.requestCanceledDetails) || (this.requestCanceledDetails.equals(other.requestCanceledDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestCanceledDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("request_canceled_details"); + TeamMergeRequestCanceledExtraDetails.Serializer.INSTANCE.serialize(value.requestCanceledDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestCanceledDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestCanceledDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMergeRequestCanceledExtraDetails f_requestCanceledDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("request_canceled_details".equals(field)) { + f_requestCanceledDetails = TeamMergeRequestCanceledExtraDetails.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_requestCanceledDetails == null) { + throw new JsonParseException(p, "Required field \"request_canceled_details\" missing."); + } + value = new TeamMergeRequestCanceledDetails(f_requestCanceledDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails.java new file mode 100644 index 000000000..79a62fce0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledExtraDetails.java @@ -0,0 +1,374 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Team merge request cancellation details + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TeamMergeRequestCanceledExtraDetails { + // union team_log.TeamMergeRequestCanceledExtraDetails (team_log_generated.stone) + + /** + * Discriminating tag type for {@link TeamMergeRequestCanceledExtraDetails}. + */ + public enum Tag { + /** + * Team merge request cancellation details shown to the primary team. + */ + PRIMARY_TEAM, // PrimaryTeamRequestCanceledDetails + /** + * Team merge request cancellation details shown to the secondary team. + */ + SECONDARY_TEAM, // SecondaryTeamRequestCanceledDetails + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamMergeRequestCanceledExtraDetails OTHER = new TeamMergeRequestCanceledExtraDetails().withTag(Tag.OTHER); + + private Tag _tag; + private PrimaryTeamRequestCanceledDetails primaryTeamValue; + private SecondaryTeamRequestCanceledDetails secondaryTeamValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamMergeRequestCanceledExtraDetails() { + } + + + /** + * Team merge request cancellation details + * + * @param _tag Discriminating tag for this instance. + */ + private TeamMergeRequestCanceledExtraDetails withTag(Tag _tag) { + TeamMergeRequestCanceledExtraDetails result = new TeamMergeRequestCanceledExtraDetails(); + result._tag = _tag; + return result; + } + + /** + * Team merge request cancellation details + * + * @param primaryTeamValue Team merge request cancellation details shown to + * the primary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestCanceledExtraDetails withTagAndPrimaryTeam(Tag _tag, PrimaryTeamRequestCanceledDetails primaryTeamValue) { + TeamMergeRequestCanceledExtraDetails result = new TeamMergeRequestCanceledExtraDetails(); + result._tag = _tag; + result.primaryTeamValue = primaryTeamValue; + return result; + } + + /** + * Team merge request cancellation details + * + * @param secondaryTeamValue Team merge request cancellation details shown + * to the secondary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestCanceledExtraDetails withTagAndSecondaryTeam(Tag _tag, SecondaryTeamRequestCanceledDetails secondaryTeamValue) { + TeamMergeRequestCanceledExtraDetails result = new TeamMergeRequestCanceledExtraDetails(); + result._tag = _tag; + result.secondaryTeamValue = secondaryTeamValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamMergeRequestCanceledExtraDetails}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + */ + public boolean isPrimaryTeam() { + return this._tag == Tag.PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestCanceledExtraDetails} that + * has its tag set to {@link Tag#PRIMARY_TEAM}. + * + *

Team merge request cancellation details shown to the primary team. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestCanceledExtraDetails} with its + * tag set to {@link Tag#PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestCanceledExtraDetails primaryTeam(PrimaryTeamRequestCanceledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestCanceledExtraDetails().withTagAndPrimaryTeam(Tag.PRIMARY_TEAM, value); + } + + /** + * Team merge request cancellation details shown to the primary team. + * + *

This instance must be tagged as {@link Tag#PRIMARY_TEAM}.

+ * + * @return The {@link PrimaryTeamRequestCanceledDetails} value associated + * with this instance if {@link #isPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isPrimaryTeam} is {@code + * false}. + */ + public PrimaryTeamRequestCanceledDetails getPrimaryTeamValue() { + if (this._tag != Tag.PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return primaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + */ + public boolean isSecondaryTeam() { + return this._tag == Tag.SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestCanceledExtraDetails} that + * has its tag set to {@link Tag#SECONDARY_TEAM}. + * + *

Team merge request cancellation details shown to the secondary team. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestCanceledExtraDetails} with its + * tag set to {@link Tag#SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestCanceledExtraDetails secondaryTeam(SecondaryTeamRequestCanceledDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestCanceledExtraDetails().withTagAndSecondaryTeam(Tag.SECONDARY_TEAM, value); + } + + /** + * Team merge request cancellation details shown to the secondary team. + * + *

This instance must be tagged as {@link Tag#SECONDARY_TEAM}.

+ * + * @return The {@link SecondaryTeamRequestCanceledDetails} value associated + * with this instance if {@link #isSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isSecondaryTeam} is {@code + * false}. + */ + public SecondaryTeamRequestCanceledDetails getSecondaryTeamValue() { + if (this._tag != Tag.SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return secondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.primaryTeamValue, + this.secondaryTeamValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamMergeRequestCanceledExtraDetails) { + TeamMergeRequestCanceledExtraDetails other = (TeamMergeRequestCanceledExtraDetails) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PRIMARY_TEAM: + return (this.primaryTeamValue == other.primaryTeamValue) || (this.primaryTeamValue.equals(other.primaryTeamValue)); + case SECONDARY_TEAM: + return (this.secondaryTeamValue == other.secondaryTeamValue) || (this.secondaryTeamValue.equals(other.secondaryTeamValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestCanceledExtraDetails value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("primary_team", g); + PrimaryTeamRequestCanceledDetails.Serializer.INSTANCE.serialize(value.primaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("secondary_team", g); + SecondaryTeamRequestCanceledDetails.Serializer.INSTANCE.serialize(value.secondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamMergeRequestCanceledExtraDetails deserialize(JsonParser p) throws IOException, JsonParseException { + TeamMergeRequestCanceledExtraDetails value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("primary_team".equals(tag)) { + PrimaryTeamRequestCanceledDetails fieldValue = null; + fieldValue = PrimaryTeamRequestCanceledDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestCanceledExtraDetails.primaryTeam(fieldValue); + } + else if ("secondary_team".equals(tag)) { + SecondaryTeamRequestCanceledDetails fieldValue = null; + fieldValue = SecondaryTeamRequestCanceledDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestCanceledExtraDetails.secondaryTeam(fieldValue); + } + else { + value = TeamMergeRequestCanceledExtraDetails.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamDetails.java new file mode 100644 index 000000000..c676f52d7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Canceled a team merge request. + */ +public class TeamMergeRequestCanceledShownToPrimaryTeamDetails { + // struct team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Canceled a team merge request. + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestCanceledShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestCanceledShownToPrimaryTeamDetails other = (TeamMergeRequestCanceledShownToPrimaryTeamDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestCanceledShownToPrimaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestCanceledShownToPrimaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestCanceledShownToPrimaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new TeamMergeRequestCanceledShownToPrimaryTeamDetails(f_secondaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamType.java new file mode 100644 index 000000000..2afaf54f1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToPrimaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestCanceledShownToPrimaryTeamType { + // struct team_log.TeamMergeRequestCanceledShownToPrimaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestCanceledShownToPrimaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestCanceledShownToPrimaryTeamType other = (TeamMergeRequestCanceledShownToPrimaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestCanceledShownToPrimaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestCanceledShownToPrimaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestCanceledShownToPrimaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestCanceledShownToPrimaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamDetails.java new file mode 100644 index 000000000..bc0f1e852 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Canceled a team merge request. + */ +public class TeamMergeRequestCanceledShownToSecondaryTeamDetails { + // struct team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String sentTo; + @Nonnull + protected final String sentBy; + + /** + * Canceled a team merge request. + * + * @param sentTo The email of the primary team admin that the request was + * sent to. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestCanceledShownToSecondaryTeamDetails(@Nonnull String sentTo, @Nonnull String sentBy) { + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The email of the primary team admin that the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentTo, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestCanceledShownToSecondaryTeamDetails other = (TeamMergeRequestCanceledShownToSecondaryTeamDetails) obj; + return ((this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestCanceledShownToSecondaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestCanceledShownToSecondaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestCanceledShownToSecondaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentTo = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new TeamMergeRequestCanceledShownToSecondaryTeamDetails(f_sentTo, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamType.java new file mode 100644 index 000000000..8b581bb4a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledShownToSecondaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestCanceledShownToSecondaryTeamType { + // struct team_log.TeamMergeRequestCanceledShownToSecondaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestCanceledShownToSecondaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestCanceledShownToSecondaryTeamType other = (TeamMergeRequestCanceledShownToSecondaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestCanceledShownToSecondaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestCanceledShownToSecondaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestCanceledShownToSecondaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestCanceledShownToSecondaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledType.java new file mode 100644 index 000000000..236860d8c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestCanceledType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestCanceledType { + // struct team_log.TeamMergeRequestCanceledType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestCanceledType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestCanceledType other = (TeamMergeRequestCanceledType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestCanceledType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestCanceledType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestCanceledType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestCanceledType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredDetails.java new file mode 100644 index 000000000..24bf5d6fa --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request expired. + */ +public class TeamMergeRequestExpiredDetails { + // struct team_log.TeamMergeRequestExpiredDetails (team_log_generated.stone) + + @Nonnull + protected final TeamMergeRequestExpiredExtraDetails requestExpiredDetails; + + /** + * Team merge request expired. + * + * @param requestExpiredDetails Team merge request expiration details. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestExpiredDetails(@Nonnull TeamMergeRequestExpiredExtraDetails requestExpiredDetails) { + if (requestExpiredDetails == null) { + throw new IllegalArgumentException("Required value for 'requestExpiredDetails' is null"); + } + this.requestExpiredDetails = requestExpiredDetails; + } + + /** + * Team merge request expiration details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMergeRequestExpiredExtraDetails getRequestExpiredDetails() { + return requestExpiredDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.requestExpiredDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestExpiredDetails other = (TeamMergeRequestExpiredDetails) obj; + return (this.requestExpiredDetails == other.requestExpiredDetails) || (this.requestExpiredDetails.equals(other.requestExpiredDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestExpiredDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("request_expired_details"); + TeamMergeRequestExpiredExtraDetails.Serializer.INSTANCE.serialize(value.requestExpiredDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestExpiredDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestExpiredDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMergeRequestExpiredExtraDetails f_requestExpiredDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("request_expired_details".equals(field)) { + f_requestExpiredDetails = TeamMergeRequestExpiredExtraDetails.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_requestExpiredDetails == null) { + throw new JsonParseException(p, "Required field \"request_expired_details\" missing."); + } + value = new TeamMergeRequestExpiredDetails(f_requestExpiredDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails.java new file mode 100644 index 000000000..d9dcf871c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredExtraDetails.java @@ -0,0 +1,372 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Team merge request expiration details + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TeamMergeRequestExpiredExtraDetails { + // union team_log.TeamMergeRequestExpiredExtraDetails (team_log_generated.stone) + + /** + * Discriminating tag type for {@link TeamMergeRequestExpiredExtraDetails}. + */ + public enum Tag { + /** + * Team merge request canceled details shown to the primary team. + */ + PRIMARY_TEAM, // PrimaryTeamRequestExpiredDetails + /** + * Team merge request canceled details shown to the secondary team. + */ + SECONDARY_TEAM, // SecondaryTeamRequestExpiredDetails + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamMergeRequestExpiredExtraDetails OTHER = new TeamMergeRequestExpiredExtraDetails().withTag(Tag.OTHER); + + private Tag _tag; + private PrimaryTeamRequestExpiredDetails primaryTeamValue; + private SecondaryTeamRequestExpiredDetails secondaryTeamValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamMergeRequestExpiredExtraDetails() { + } + + + /** + * Team merge request expiration details + * + * @param _tag Discriminating tag for this instance. + */ + private TeamMergeRequestExpiredExtraDetails withTag(Tag _tag) { + TeamMergeRequestExpiredExtraDetails result = new TeamMergeRequestExpiredExtraDetails(); + result._tag = _tag; + return result; + } + + /** + * Team merge request expiration details + * + * @param primaryTeamValue Team merge request canceled details shown to the + * primary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestExpiredExtraDetails withTagAndPrimaryTeam(Tag _tag, PrimaryTeamRequestExpiredDetails primaryTeamValue) { + TeamMergeRequestExpiredExtraDetails result = new TeamMergeRequestExpiredExtraDetails(); + result._tag = _tag; + result.primaryTeamValue = primaryTeamValue; + return result; + } + + /** + * Team merge request expiration details + * + * @param secondaryTeamValue Team merge request canceled details shown to + * the secondary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestExpiredExtraDetails withTagAndSecondaryTeam(Tag _tag, SecondaryTeamRequestExpiredDetails secondaryTeamValue) { + TeamMergeRequestExpiredExtraDetails result = new TeamMergeRequestExpiredExtraDetails(); + result._tag = _tag; + result.secondaryTeamValue = secondaryTeamValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamMergeRequestExpiredExtraDetails}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + */ + public boolean isPrimaryTeam() { + return this._tag == Tag.PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestExpiredExtraDetails} that + * has its tag set to {@link Tag#PRIMARY_TEAM}. + * + *

Team merge request canceled details shown to the primary team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestExpiredExtraDetails} with its + * tag set to {@link Tag#PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestExpiredExtraDetails primaryTeam(PrimaryTeamRequestExpiredDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestExpiredExtraDetails().withTagAndPrimaryTeam(Tag.PRIMARY_TEAM, value); + } + + /** + * Team merge request canceled details shown to the primary team. + * + *

This instance must be tagged as {@link Tag#PRIMARY_TEAM}.

+ * + * @return The {@link PrimaryTeamRequestExpiredDetails} value associated + * with this instance if {@link #isPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isPrimaryTeam} is {@code + * false}. + */ + public PrimaryTeamRequestExpiredDetails getPrimaryTeamValue() { + if (this._tag != Tag.PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return primaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + */ + public boolean isSecondaryTeam() { + return this._tag == Tag.SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestExpiredExtraDetails} that + * has its tag set to {@link Tag#SECONDARY_TEAM}. + * + *

Team merge request canceled details shown to the secondary team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestExpiredExtraDetails} with its + * tag set to {@link Tag#SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestExpiredExtraDetails secondaryTeam(SecondaryTeamRequestExpiredDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestExpiredExtraDetails().withTagAndSecondaryTeam(Tag.SECONDARY_TEAM, value); + } + + /** + * Team merge request canceled details shown to the secondary team. + * + *

This instance must be tagged as {@link Tag#SECONDARY_TEAM}.

+ * + * @return The {@link SecondaryTeamRequestExpiredDetails} value associated + * with this instance if {@link #isSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isSecondaryTeam} is {@code + * false}. + */ + public SecondaryTeamRequestExpiredDetails getSecondaryTeamValue() { + if (this._tag != Tag.SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return secondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.primaryTeamValue, + this.secondaryTeamValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamMergeRequestExpiredExtraDetails) { + TeamMergeRequestExpiredExtraDetails other = (TeamMergeRequestExpiredExtraDetails) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PRIMARY_TEAM: + return (this.primaryTeamValue == other.primaryTeamValue) || (this.primaryTeamValue.equals(other.primaryTeamValue)); + case SECONDARY_TEAM: + return (this.secondaryTeamValue == other.secondaryTeamValue) || (this.secondaryTeamValue.equals(other.secondaryTeamValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestExpiredExtraDetails value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("primary_team", g); + PrimaryTeamRequestExpiredDetails.Serializer.INSTANCE.serialize(value.primaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("secondary_team", g); + SecondaryTeamRequestExpiredDetails.Serializer.INSTANCE.serialize(value.secondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamMergeRequestExpiredExtraDetails deserialize(JsonParser p) throws IOException, JsonParseException { + TeamMergeRequestExpiredExtraDetails value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("primary_team".equals(tag)) { + PrimaryTeamRequestExpiredDetails fieldValue = null; + fieldValue = PrimaryTeamRequestExpiredDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestExpiredExtraDetails.primaryTeam(fieldValue); + } + else if ("secondary_team".equals(tag)) { + SecondaryTeamRequestExpiredDetails fieldValue = null; + fieldValue = SecondaryTeamRequestExpiredDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestExpiredExtraDetails.secondaryTeam(fieldValue); + } + else { + value = TeamMergeRequestExpiredExtraDetails.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamDetails.java new file mode 100644 index 000000000..eadcd1d62 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request expired. + */ +public class TeamMergeRequestExpiredShownToPrimaryTeamDetails { + // struct team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Team merge request expired. + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestExpiredShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestExpiredShownToPrimaryTeamDetails other = (TeamMergeRequestExpiredShownToPrimaryTeamDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestExpiredShownToPrimaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestExpiredShownToPrimaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestExpiredShownToPrimaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new TeamMergeRequestExpiredShownToPrimaryTeamDetails(f_secondaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamType.java new file mode 100644 index 000000000..c89ebc87e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToPrimaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestExpiredShownToPrimaryTeamType { + // struct team_log.TeamMergeRequestExpiredShownToPrimaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestExpiredShownToPrimaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestExpiredShownToPrimaryTeamType other = (TeamMergeRequestExpiredShownToPrimaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestExpiredShownToPrimaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestExpiredShownToPrimaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestExpiredShownToPrimaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestExpiredShownToPrimaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamDetails.java new file mode 100644 index 000000000..5fa659586 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team merge request expired. + */ +public class TeamMergeRequestExpiredShownToSecondaryTeamDetails { + // struct team_log.TeamMergeRequestExpiredShownToSecondaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String sentTo; + + /** + * Team merge request expired. + * + * @param sentTo The email of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestExpiredShownToSecondaryTeamDetails(@Nonnull String sentTo) { + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The email of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestExpiredShownToSecondaryTeamDetails other = (TeamMergeRequestExpiredShownToSecondaryTeamDetails) obj; + return (this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestExpiredShownToSecondaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestExpiredShownToSecondaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestExpiredShownToSecondaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new TeamMergeRequestExpiredShownToSecondaryTeamDetails(f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamType.java new file mode 100644 index 000000000..7d9169162 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredShownToSecondaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestExpiredShownToSecondaryTeamType { + // struct team_log.TeamMergeRequestExpiredShownToSecondaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestExpiredShownToSecondaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestExpiredShownToSecondaryTeamType other = (TeamMergeRequestExpiredShownToSecondaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestExpiredShownToSecondaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestExpiredShownToSecondaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestExpiredShownToSecondaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestExpiredShownToSecondaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredType.java new file mode 100644 index 000000000..f02c5e6cb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestExpiredType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestExpiredType { + // struct team_log.TeamMergeRequestExpiredType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestExpiredType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestExpiredType other = (TeamMergeRequestExpiredType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestExpiredType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestExpiredType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestExpiredType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestExpiredType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamDetails.java new file mode 100644 index 000000000..2e5b8d5be --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Rejected a team merge request. + */ +public class TeamMergeRequestRejectedShownToPrimaryTeamDetails { + // struct team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentBy; + + /** + * Rejected a team merge request. + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestRejectedShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentBy) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestRejectedShownToPrimaryTeamDetails other = (TeamMergeRequestRejectedShownToPrimaryTeamDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestRejectedShownToPrimaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestRejectedShownToPrimaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestRejectedShownToPrimaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new TeamMergeRequestRejectedShownToPrimaryTeamDetails(f_secondaryTeam, f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamType.java new file mode 100644 index 000000000..5fad4d5f5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToPrimaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestRejectedShownToPrimaryTeamType { + // struct team_log.TeamMergeRequestRejectedShownToPrimaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestRejectedShownToPrimaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestRejectedShownToPrimaryTeamType other = (TeamMergeRequestRejectedShownToPrimaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestRejectedShownToPrimaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestRejectedShownToPrimaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestRejectedShownToPrimaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestRejectedShownToPrimaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamDetails.java new file mode 100644 index 000000000..943c55bf2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Rejected a team merge request. + */ +public class TeamMergeRequestRejectedShownToSecondaryTeamDetails { + // struct team_log.TeamMergeRequestRejectedShownToSecondaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String sentBy; + + /** + * Rejected a team merge request. + * + * @param sentBy The name of the secondary team admin who sent the request + * originally. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestRejectedShownToSecondaryTeamDetails(@Nonnull String sentBy) { + if (sentBy == null) { + throw new IllegalArgumentException("Required value for 'sentBy' is null"); + } + this.sentBy = sentBy; + } + + /** + * The name of the secondary team admin who sent the request originally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentBy() { + return sentBy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentBy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestRejectedShownToSecondaryTeamDetails other = (TeamMergeRequestRejectedShownToSecondaryTeamDetails) obj; + return (this.sentBy == other.sentBy) || (this.sentBy.equals(other.sentBy)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestRejectedShownToSecondaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_by"); + StoneSerializers.string().serialize(value.sentBy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestRejectedShownToSecondaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestRejectedShownToSecondaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentBy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_by".equals(field)) { + f_sentBy = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentBy == null) { + throw new JsonParseException(p, "Required field \"sent_by\" missing."); + } + value = new TeamMergeRequestRejectedShownToSecondaryTeamDetails(f_sentBy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamType.java new file mode 100644 index 000000000..476e06c11 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRejectedShownToSecondaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestRejectedShownToSecondaryTeamType { + // struct team_log.TeamMergeRequestRejectedShownToSecondaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestRejectedShownToSecondaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestRejectedShownToSecondaryTeamType other = (TeamMergeRequestRejectedShownToSecondaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestRejectedShownToSecondaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestRejectedShownToSecondaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestRejectedShownToSecondaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestRejectedShownToSecondaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderDetails.java new file mode 100644 index 000000000..75f328df8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Sent a team merge request reminder. + */ +public class TeamMergeRequestReminderDetails { + // struct team_log.TeamMergeRequestReminderDetails (team_log_generated.stone) + + @Nonnull + protected final TeamMergeRequestReminderExtraDetails requestReminderDetails; + + /** + * Sent a team merge request reminder. + * + * @param requestReminderDetails Team merge request reminder details. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestReminderDetails(@Nonnull TeamMergeRequestReminderExtraDetails requestReminderDetails) { + if (requestReminderDetails == null) { + throw new IllegalArgumentException("Required value for 'requestReminderDetails' is null"); + } + this.requestReminderDetails = requestReminderDetails; + } + + /** + * Team merge request reminder details. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamMergeRequestReminderExtraDetails getRequestReminderDetails() { + return requestReminderDetails; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.requestReminderDetails + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestReminderDetails other = (TeamMergeRequestReminderDetails) obj; + return (this.requestReminderDetails == other.requestReminderDetails) || (this.requestReminderDetails.equals(other.requestReminderDetails)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestReminderDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("request_reminder_details"); + TeamMergeRequestReminderExtraDetails.Serializer.INSTANCE.serialize(value.requestReminderDetails, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestReminderDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestReminderDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamMergeRequestReminderExtraDetails f_requestReminderDetails = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("request_reminder_details".equals(field)) { + f_requestReminderDetails = TeamMergeRequestReminderExtraDetails.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_requestReminderDetails == null) { + throw new JsonParseException(p, "Required field \"request_reminder_details\" missing."); + } + value = new TeamMergeRequestReminderDetails(f_requestReminderDetails); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails.java new file mode 100644 index 000000000..f489edf86 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderExtraDetails.java @@ -0,0 +1,372 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Team merge request reminder details + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TeamMergeRequestReminderExtraDetails { + // union team_log.TeamMergeRequestReminderExtraDetails (team_log_generated.stone) + + /** + * Discriminating tag type for {@link TeamMergeRequestReminderExtraDetails}. + */ + public enum Tag { + /** + * Team merge request reminder details shown to the primary team. + */ + PRIMARY_TEAM, // PrimaryTeamRequestReminderDetails + /** + * Team merge request reminder details shown to the secondary team. + */ + SECONDARY_TEAM, // SecondaryTeamRequestReminderDetails + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TeamMergeRequestReminderExtraDetails OTHER = new TeamMergeRequestReminderExtraDetails().withTag(Tag.OTHER); + + private Tag _tag; + private PrimaryTeamRequestReminderDetails primaryTeamValue; + private SecondaryTeamRequestReminderDetails secondaryTeamValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TeamMergeRequestReminderExtraDetails() { + } + + + /** + * Team merge request reminder details + * + * @param _tag Discriminating tag for this instance. + */ + private TeamMergeRequestReminderExtraDetails withTag(Tag _tag) { + TeamMergeRequestReminderExtraDetails result = new TeamMergeRequestReminderExtraDetails(); + result._tag = _tag; + return result; + } + + /** + * Team merge request reminder details + * + * @param primaryTeamValue Team merge request reminder details shown to the + * primary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestReminderExtraDetails withTagAndPrimaryTeam(Tag _tag, PrimaryTeamRequestReminderDetails primaryTeamValue) { + TeamMergeRequestReminderExtraDetails result = new TeamMergeRequestReminderExtraDetails(); + result._tag = _tag; + result.primaryTeamValue = primaryTeamValue; + return result; + } + + /** + * Team merge request reminder details + * + * @param secondaryTeamValue Team merge request reminder details shown to + * the secondary team. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TeamMergeRequestReminderExtraDetails withTagAndSecondaryTeam(Tag _tag, SecondaryTeamRequestReminderDetails secondaryTeamValue) { + TeamMergeRequestReminderExtraDetails result = new TeamMergeRequestReminderExtraDetails(); + result._tag = _tag; + result.secondaryTeamValue = secondaryTeamValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TeamMergeRequestReminderExtraDetails}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PRIMARY_TEAM}, {@code false} otherwise. + */ + public boolean isPrimaryTeam() { + return this._tag == Tag.PRIMARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestReminderExtraDetails} that + * has its tag set to {@link Tag#PRIMARY_TEAM}. + * + *

Team merge request reminder details shown to the primary team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestReminderExtraDetails} with its + * tag set to {@link Tag#PRIMARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestReminderExtraDetails primaryTeam(PrimaryTeamRequestReminderDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestReminderExtraDetails().withTagAndPrimaryTeam(Tag.PRIMARY_TEAM, value); + } + + /** + * Team merge request reminder details shown to the primary team. + * + *

This instance must be tagged as {@link Tag#PRIMARY_TEAM}.

+ * + * @return The {@link PrimaryTeamRequestReminderDetails} value associated + * with this instance if {@link #isPrimaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isPrimaryTeam} is {@code + * false}. + */ + public PrimaryTeamRequestReminderDetails getPrimaryTeamValue() { + if (this._tag != Tag.PRIMARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.PRIMARY_TEAM, but was Tag." + this._tag.name()); + } + return primaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#SECONDARY_TEAM}, {@code false} otherwise. + */ + public boolean isSecondaryTeam() { + return this._tag == Tag.SECONDARY_TEAM; + } + + /** + * Returns an instance of {@code TeamMergeRequestReminderExtraDetails} that + * has its tag set to {@link Tag#SECONDARY_TEAM}. + * + *

Team merge request reminder details shown to the secondary team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TeamMergeRequestReminderExtraDetails} with its + * tag set to {@link Tag#SECONDARY_TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TeamMergeRequestReminderExtraDetails secondaryTeam(SecondaryTeamRequestReminderDetails value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TeamMergeRequestReminderExtraDetails().withTagAndSecondaryTeam(Tag.SECONDARY_TEAM, value); + } + + /** + * Team merge request reminder details shown to the secondary team. + * + *

This instance must be tagged as {@link Tag#SECONDARY_TEAM}.

+ * + * @return The {@link SecondaryTeamRequestReminderDetails} value associated + * with this instance if {@link #isSecondaryTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isSecondaryTeam} is {@code + * false}. + */ + public SecondaryTeamRequestReminderDetails getSecondaryTeamValue() { + if (this._tag != Tag.SECONDARY_TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.SECONDARY_TEAM, but was Tag." + this._tag.name()); + } + return secondaryTeamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.primaryTeamValue, + this.secondaryTeamValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TeamMergeRequestReminderExtraDetails) { + TeamMergeRequestReminderExtraDetails other = (TeamMergeRequestReminderExtraDetails) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PRIMARY_TEAM: + return (this.primaryTeamValue == other.primaryTeamValue) || (this.primaryTeamValue.equals(other.primaryTeamValue)); + case SECONDARY_TEAM: + return (this.secondaryTeamValue == other.secondaryTeamValue) || (this.secondaryTeamValue.equals(other.secondaryTeamValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestReminderExtraDetails value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PRIMARY_TEAM: { + g.writeStartObject(); + writeTag("primary_team", g); + PrimaryTeamRequestReminderDetails.Serializer.INSTANCE.serialize(value.primaryTeamValue, g, true); + g.writeEndObject(); + break; + } + case SECONDARY_TEAM: { + g.writeStartObject(); + writeTag("secondary_team", g); + SecondaryTeamRequestReminderDetails.Serializer.INSTANCE.serialize(value.secondaryTeamValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamMergeRequestReminderExtraDetails deserialize(JsonParser p) throws IOException, JsonParseException { + TeamMergeRequestReminderExtraDetails value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("primary_team".equals(tag)) { + PrimaryTeamRequestReminderDetails fieldValue = null; + fieldValue = PrimaryTeamRequestReminderDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestReminderExtraDetails.primaryTeam(fieldValue); + } + else if ("secondary_team".equals(tag)) { + SecondaryTeamRequestReminderDetails fieldValue = null; + fieldValue = SecondaryTeamRequestReminderDetails.Serializer.INSTANCE.deserialize(p, true); + value = TeamMergeRequestReminderExtraDetails.secondaryTeam(fieldValue); + } + else { + value = TeamMergeRequestReminderExtraDetails.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamDetails.java new file mode 100644 index 000000000..5d1c5fd38 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Sent a team merge request reminder. + */ +public class TeamMergeRequestReminderShownToPrimaryTeamDetails { + // struct team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentTo; + + /** + * Sent a team merge request reminder. + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentTo The name of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestReminderShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentTo) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestReminderShownToPrimaryTeamDetails other = (TeamMergeRequestReminderShownToPrimaryTeamDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestReminderShownToPrimaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestReminderShownToPrimaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestReminderShownToPrimaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new TeamMergeRequestReminderShownToPrimaryTeamDetails(f_secondaryTeam, f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamType.java new file mode 100644 index 000000000..63a6db0d2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToPrimaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestReminderShownToPrimaryTeamType { + // struct team_log.TeamMergeRequestReminderShownToPrimaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestReminderShownToPrimaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestReminderShownToPrimaryTeamType other = (TeamMergeRequestReminderShownToPrimaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestReminderShownToPrimaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestReminderShownToPrimaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestReminderShownToPrimaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestReminderShownToPrimaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamDetails.java new file mode 100644 index 000000000..5fba04211 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Sent a team merge request reminder. + */ +public class TeamMergeRequestReminderShownToSecondaryTeamDetails { + // struct team_log.TeamMergeRequestReminderShownToSecondaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String sentTo; + + /** + * Sent a team merge request reminder. + * + * @param sentTo The email of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestReminderShownToSecondaryTeamDetails(@Nonnull String sentTo) { + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The email of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestReminderShownToSecondaryTeamDetails other = (TeamMergeRequestReminderShownToSecondaryTeamDetails) obj; + return (this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestReminderShownToSecondaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestReminderShownToSecondaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestReminderShownToSecondaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new TeamMergeRequestReminderShownToSecondaryTeamDetails(f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamType.java new file mode 100644 index 000000000..35734f963 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderShownToSecondaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestReminderShownToSecondaryTeamType { + // struct team_log.TeamMergeRequestReminderShownToSecondaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestReminderShownToSecondaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestReminderShownToSecondaryTeamType other = (TeamMergeRequestReminderShownToSecondaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestReminderShownToSecondaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestReminderShownToSecondaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestReminderShownToSecondaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestReminderShownToSecondaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderType.java new file mode 100644 index 000000000..70993ae43 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestReminderType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestReminderType { + // struct team_log.TeamMergeRequestReminderType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestReminderType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestReminderType other = (TeamMergeRequestReminderType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestReminderType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestReminderType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestReminderType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestReminderType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedDetails.java new file mode 100644 index 000000000..3b6244c7f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedDetails.java @@ -0,0 +1,151 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Canceled the team merge. + */ +public class TeamMergeRequestRevokedDetails { + // struct team_log.TeamMergeRequestRevokedDetails (team_log_generated.stone) + + @Nonnull + protected final String team; + + /** + * Canceled the team merge. + * + * @param team The name of the other team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestRevokedDetails(@Nonnull String team) { + if (team == null) { + throw new IllegalArgumentException("Required value for 'team' is null"); + } + this.team = team; + } + + /** + * The name of the other team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeam() { + return team; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.team + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestRevokedDetails other = (TeamMergeRequestRevokedDetails) obj; + return (this.team == other.team) || (this.team.equals(other.team)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestRevokedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team"); + StoneSerializers.string().serialize(value.team, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestRevokedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestRevokedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_team = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team".equals(field)) { + f_team = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_team == null) { + throw new JsonParseException(p, "Required field \"team\" missing."); + } + value = new TeamMergeRequestRevokedDetails(f_team); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedType.java new file mode 100644 index 000000000..906dd7261 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestRevokedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestRevokedType { + // struct team_log.TeamMergeRequestRevokedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestRevokedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestRevokedType other = (TeamMergeRequestRevokedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestRevokedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestRevokedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestRevokedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestRevokedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamDetails.java new file mode 100644 index 000000000..f2eadba60 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Requested to merge their Dropbox team into yours. + */ +public class TeamMergeRequestSentShownToPrimaryTeamDetails { + // struct team_log.TeamMergeRequestSentShownToPrimaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String secondaryTeam; + @Nonnull + protected final String sentTo; + + /** + * Requested to merge their Dropbox team into yours. + * + * @param secondaryTeam The secondary team name. Must not be {@code null}. + * @param sentTo The name of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestSentShownToPrimaryTeamDetails(@Nonnull String secondaryTeam, @Nonnull String sentTo) { + if (secondaryTeam == null) { + throw new IllegalArgumentException("Required value for 'secondaryTeam' is null"); + } + this.secondaryTeam = secondaryTeam; + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The secondary team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSecondaryTeam() { + return secondaryTeam; + } + + /** + * The name of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.secondaryTeam, + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestSentShownToPrimaryTeamDetails other = (TeamMergeRequestSentShownToPrimaryTeamDetails) obj; + return ((this.secondaryTeam == other.secondaryTeam) || (this.secondaryTeam.equals(other.secondaryTeam))) + && ((this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestSentShownToPrimaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("secondary_team"); + StoneSerializers.string().serialize(value.secondaryTeam, g); + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestSentShownToPrimaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestSentShownToPrimaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_secondaryTeam = null; + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("secondary_team".equals(field)) { + f_secondaryTeam = StoneSerializers.string().deserialize(p); + } + else if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_secondaryTeam == null) { + throw new JsonParseException(p, "Required field \"secondary_team\" missing."); + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new TeamMergeRequestSentShownToPrimaryTeamDetails(f_secondaryTeam, f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamType.java new file mode 100644 index 000000000..86e8ef590 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToPrimaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestSentShownToPrimaryTeamType { + // struct team_log.TeamMergeRequestSentShownToPrimaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestSentShownToPrimaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestSentShownToPrimaryTeamType other = (TeamMergeRequestSentShownToPrimaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestSentShownToPrimaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestSentShownToPrimaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestSentShownToPrimaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestSentShownToPrimaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamDetails.java new file mode 100644 index 000000000..33ca18a71 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Requested to merge your team into another Dropbox team. + */ +public class TeamMergeRequestSentShownToSecondaryTeamDetails { + // struct team_log.TeamMergeRequestSentShownToSecondaryTeamDetails (team_log_generated.stone) + + @Nonnull + protected final String sentTo; + + /** + * Requested to merge your team into another Dropbox team. + * + * @param sentTo The email of the primary team admin the request was sent + * to. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestSentShownToSecondaryTeamDetails(@Nonnull String sentTo) { + if (sentTo == null) { + throw new IllegalArgumentException("Required value for 'sentTo' is null"); + } + this.sentTo = sentTo; + } + + /** + * The email of the primary team admin the request was sent to. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSentTo() { + return sentTo; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sentTo + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestSentShownToSecondaryTeamDetails other = (TeamMergeRequestSentShownToSecondaryTeamDetails) obj; + return (this.sentTo == other.sentTo) || (this.sentTo.equals(other.sentTo)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestSentShownToSecondaryTeamDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sent_to"); + StoneSerializers.string().serialize(value.sentTo, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestSentShownToSecondaryTeamDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestSentShownToSecondaryTeamDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_sentTo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sent_to".equals(field)) { + f_sentTo = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sentTo == null) { + throw new JsonParseException(p, "Required field \"sent_to\" missing."); + } + value = new TeamMergeRequestSentShownToSecondaryTeamDetails(f_sentTo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamType.java new file mode 100644 index 000000000..75d7b110c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeRequestSentShownToSecondaryTeamType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeRequestSentShownToSecondaryTeamType { + // struct team_log.TeamMergeRequestSentShownToSecondaryTeamType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeRequestSentShownToSecondaryTeamType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeRequestSentShownToSecondaryTeamType other = (TeamMergeRequestSentShownToSecondaryTeamType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeRequestSentShownToSecondaryTeamType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeRequestSentShownToSecondaryTeamType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeRequestSentShownToSecondaryTeamType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeRequestSentShownToSecondaryTeamType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeToDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeToDetails.java new file mode 100644 index 000000000..d84adee52 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeToDetails.java @@ -0,0 +1,152 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Merged this team into another team. + */ +public class TeamMergeToDetails { + // struct team_log.TeamMergeToDetails (team_log_generated.stone) + + @Nonnull + protected final String teamName; + + /** + * Merged this team into another team. + * + * @param teamName The name of the team that this team was merged into. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeToDetails(@Nonnull String teamName) { + if (teamName == null) { + throw new IllegalArgumentException("Required value for 'teamName' is null"); + } + this.teamName = teamName; + } + + /** + * The name of the team that this team was merged into. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamName() { + return teamName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeToDetails other = (TeamMergeToDetails) obj; + return (this.teamName == other.teamName) || (this.teamName.equals(other.teamName)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeToDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_name"); + StoneSerializers.string().serialize(value.teamName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeToDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeToDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_name".equals(field)) { + f_teamName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamName == null) { + throw new JsonParseException(p, "Required field \"team_name\" missing."); + } + value = new TeamMergeToDetails(f_teamName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeToType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeToType.java new file mode 100644 index 000000000..a844ff369 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamMergeToType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamMergeToType { + // struct team_log.TeamMergeToType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMergeToType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMergeToType other = (TeamMergeToType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMergeToType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMergeToType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMergeToType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamMergeToType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamName.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamName.java new file mode 100644 index 000000000..6e5762828 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamName.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Team name details + */ +public class TeamName { + // struct team_log.TeamName (team_log_generated.stone) + + @Nonnull + protected final String teamDisplayName; + @Nonnull + protected final String teamLegalName; + + /** + * Team name details + * + * @param teamDisplayName Team's display name. Must not be {@code null}. + * @param teamLegalName Team's legal name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamName(@Nonnull String teamDisplayName, @Nonnull String teamLegalName) { + if (teamDisplayName == null) { + throw new IllegalArgumentException("Required value for 'teamDisplayName' is null"); + } + this.teamDisplayName = teamDisplayName; + if (teamLegalName == null) { + throw new IllegalArgumentException("Required value for 'teamLegalName' is null"); + } + this.teamLegalName = teamLegalName; + } + + /** + * Team's display name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamDisplayName() { + return teamDisplayName; + } + + /** + * Team's legal name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getTeamLegalName() { + return teamLegalName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.teamDisplayName, + this.teamLegalName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamName other = (TeamName) obj; + return ((this.teamDisplayName == other.teamDisplayName) || (this.teamDisplayName.equals(other.teamDisplayName))) + && ((this.teamLegalName == other.teamLegalName) || (this.teamLegalName.equals(other.teamLegalName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamName value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("team_display_name"); + StoneSerializers.string().serialize(value.teamDisplayName, g); + g.writeFieldName("team_legal_name"); + StoneSerializers.string().serialize(value.teamLegalName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamName deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamName value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_teamDisplayName = null; + String f_teamLegalName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("team_display_name".equals(field)) { + f_teamDisplayName = StoneSerializers.string().deserialize(p); + } + else if ("team_legal_name".equals(field)) { + f_teamLegalName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_teamDisplayName == null) { + throw new JsonParseException(p, "Required field \"team_display_name\" missing."); + } + if (f_teamLegalName == null) { + throw new JsonParseException(p, "Required field \"team_legal_name\" missing."); + } + value = new TeamName(f_teamDisplayName, f_teamLegalName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundDetails.java new file mode 100644 index 000000000..130eff93e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added team background to display on shared link headers. + */ +public class TeamProfileAddBackgroundDetails { + // struct team_log.TeamProfileAddBackgroundDetails (team_log_generated.stone) + + + /** + * Added team background to display on shared link headers. + */ + public TeamProfileAddBackgroundDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileAddBackgroundDetails other = (TeamProfileAddBackgroundDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileAddBackgroundDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileAddBackgroundDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileAddBackgroundDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamProfileAddBackgroundDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundType.java new file mode 100644 index 000000000..0c7c02160 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddBackgroundType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileAddBackgroundType { + // struct team_log.TeamProfileAddBackgroundType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileAddBackgroundType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileAddBackgroundType other = (TeamProfileAddBackgroundType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileAddBackgroundType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileAddBackgroundType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileAddBackgroundType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileAddBackgroundType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddLogoDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddLogoDetails.java new file mode 100644 index 000000000..efc7dd1f9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddLogoDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added team logo to display on shared link headers. + */ +public class TeamProfileAddLogoDetails { + // struct team_log.TeamProfileAddLogoDetails (team_log_generated.stone) + + + /** + * Added team logo to display on shared link headers. + */ + public TeamProfileAddLogoDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileAddLogoDetails other = (TeamProfileAddLogoDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileAddLogoDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileAddLogoDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileAddLogoDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamProfileAddLogoDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddLogoType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddLogoType.java new file mode 100644 index 000000000..f7dc1cd33 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileAddLogoType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileAddLogoType { + // struct team_log.TeamProfileAddLogoType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileAddLogoType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileAddLogoType other = (TeamProfileAddLogoType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileAddLogoType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileAddLogoType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileAddLogoType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileAddLogoType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundDetails.java new file mode 100644 index 000000000..4e8a495ef --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed team background displayed on shared link headers. + */ +public class TeamProfileChangeBackgroundDetails { + // struct team_log.TeamProfileChangeBackgroundDetails (team_log_generated.stone) + + + /** + * Changed team background displayed on shared link headers. + */ + public TeamProfileChangeBackgroundDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeBackgroundDetails other = (TeamProfileChangeBackgroundDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeBackgroundDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeBackgroundDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeBackgroundDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamProfileChangeBackgroundDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundType.java new file mode 100644 index 000000000..a8b146a26 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeBackgroundType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileChangeBackgroundType { + // struct team_log.TeamProfileChangeBackgroundType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileChangeBackgroundType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeBackgroundType other = (TeamProfileChangeBackgroundType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeBackgroundType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeBackgroundType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeBackgroundType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileChangeBackgroundType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageDetails.java new file mode 100644 index 000000000..433c00e60 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageDetails.java @@ -0,0 +1,188 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed default language for team. + */ +public class TeamProfileChangeDefaultLanguageDetails { + // struct team_log.TeamProfileChangeDefaultLanguageDetails (team_log_generated.stone) + + @Nonnull + protected final String newValue; + @Nonnull + protected final String previousValue; + + /** + * Changed default language for team. + * + * @param newValue New team's default language. Must have length of at + * least 2 and not be {@code null}. + * @param previousValue Previous team's default language. Must have length + * of at least 2 and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileChangeDefaultLanguageDetails(@Nonnull String newValue, @Nonnull String previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + if (newValue.length() < 2) { + throw new IllegalArgumentException("String 'newValue' is shorter than 2"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + if (previousValue.length() < 2) { + throw new IllegalArgumentException("String 'previousValue' is shorter than 2"); + } + this.previousValue = previousValue; + } + + /** + * New team's default language. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + /** + * Previous team's default language. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeDefaultLanguageDetails other = (TeamProfileChangeDefaultLanguageDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeDefaultLanguageDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeDefaultLanguageDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeDefaultLanguageDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_newValue = null; + String f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new TeamProfileChangeDefaultLanguageDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageType.java new file mode 100644 index 000000000..6cfe44268 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeDefaultLanguageType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileChangeDefaultLanguageType { + // struct team_log.TeamProfileChangeDefaultLanguageType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileChangeDefaultLanguageType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeDefaultLanguageType other = (TeamProfileChangeDefaultLanguageType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeDefaultLanguageType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeDefaultLanguageType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeDefaultLanguageType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileChangeDefaultLanguageType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeLogoDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeLogoDetails.java new file mode 100644 index 000000000..b4c12f78a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeLogoDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed team logo displayed on shared link headers. + */ +public class TeamProfileChangeLogoDetails { + // struct team_log.TeamProfileChangeLogoDetails (team_log_generated.stone) + + + /** + * Changed team logo displayed on shared link headers. + */ + public TeamProfileChangeLogoDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeLogoDetails other = (TeamProfileChangeLogoDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeLogoDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeLogoDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeLogoDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamProfileChangeLogoDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeLogoType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeLogoType.java new file mode 100644 index 000000000..08975b29e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeLogoType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileChangeLogoType { + // struct team_log.TeamProfileChangeLogoType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileChangeLogoType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeLogoType other = (TeamProfileChangeLogoType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeLogoType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeLogoType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeLogoType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileChangeLogoType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeNameDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeNameDetails.java new file mode 100644 index 000000000..a55289d5f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeNameDetails.java @@ -0,0 +1,192 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed team name. + */ +public class TeamProfileChangeNameDetails { + // struct team_log.TeamProfileChangeNameDetails (team_log_generated.stone) + + @Nullable + protected final TeamName previousValue; + @Nonnull + protected final TeamName newValue; + + /** + * Changed team name. + * + * @param newValue New team name. Must not be {@code null}. + * @param previousValue Previous teams name. Might be missing due to + * historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileChangeNameDetails(@Nonnull TeamName newValue, @Nullable TeamName previousValue) { + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Changed team name. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New team name. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileChangeNameDetails(@Nonnull TeamName newValue) { + this(newValue, null); + } + + /** + * New team name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamName getNewValue() { + return newValue; + } + + /** + * Previous teams name. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TeamName getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeNameDetails other = (TeamProfileChangeNameDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeNameDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TeamName.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullableStruct(TeamName.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeNameDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeNameDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamName f_newValue = null; + TeamName f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TeamName.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullableStruct(TeamName.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new TeamProfileChangeNameDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeNameType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeNameType.java new file mode 100644 index 000000000..ecce4351a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileChangeNameType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileChangeNameType { + // struct team_log.TeamProfileChangeNameType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileChangeNameType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileChangeNameType other = (TeamProfileChangeNameType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileChangeNameType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileChangeNameType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileChangeNameType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileChangeNameType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundDetails.java new file mode 100644 index 000000000..61cf7fd52 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed team background displayed on shared link headers. + */ +public class TeamProfileRemoveBackgroundDetails { + // struct team_log.TeamProfileRemoveBackgroundDetails (team_log_generated.stone) + + + /** + * Removed team background displayed on shared link headers. + */ + public TeamProfileRemoveBackgroundDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileRemoveBackgroundDetails other = (TeamProfileRemoveBackgroundDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileRemoveBackgroundDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileRemoveBackgroundDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileRemoveBackgroundDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamProfileRemoveBackgroundDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundType.java new file mode 100644 index 000000000..98841a7da --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveBackgroundType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileRemoveBackgroundType { + // struct team_log.TeamProfileRemoveBackgroundType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileRemoveBackgroundType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileRemoveBackgroundType other = (TeamProfileRemoveBackgroundType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileRemoveBackgroundType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileRemoveBackgroundType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileRemoveBackgroundType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileRemoveBackgroundType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoDetails.java new file mode 100644 index 000000000..8b9678b5e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed team logo displayed on shared link headers. + */ +public class TeamProfileRemoveLogoDetails { + // struct team_log.TeamProfileRemoveLogoDetails (team_log_generated.stone) + + + /** + * Removed team logo displayed on shared link headers. + */ + public TeamProfileRemoveLogoDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileRemoveLogoDetails other = (TeamProfileRemoveLogoDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileRemoveLogoDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileRemoveLogoDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileRemoveLogoDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TeamProfileRemoveLogoDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoType.java new file mode 100644 index 000000000..9994c525a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamProfileRemoveLogoType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamProfileRemoveLogoType { + // struct team_log.TeamProfileRemoveLogoType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamProfileRemoveLogoType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamProfileRemoveLogoType other = (TeamProfileRemoveLogoType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamProfileRemoveLogoType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamProfileRemoveLogoType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamProfileRemoveLogoType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamProfileRemoveLogoType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy.java new file mode 100644 index 000000000..716a88449 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling whether team selective sync is enabled for team. + */ +public enum TeamSelectiveSyncPolicy { + // union team_log.TeamSelectiveSyncPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSelectiveSyncPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TeamSelectiveSyncPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + TeamSelectiveSyncPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = TeamSelectiveSyncPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = TeamSelectiveSyncPolicy.ENABLED; + } + else { + value = TeamSelectiveSyncPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedDetails.java new file mode 100644 index 000000000..2f73e8e9d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Enabled/disabled Team Selective Sync for team. + */ +public class TeamSelectiveSyncPolicyChangedDetails { + // struct team_log.TeamSelectiveSyncPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final TeamSelectiveSyncPolicy newValue; + @Nonnull + protected final TeamSelectiveSyncPolicy previousValue; + + /** + * Enabled/disabled Team Selective Sync for team. + * + * @param newValue New Team Selective Sync policy. Must not be {@code + * null}. + * @param previousValue Previous Team Selective Sync policy. Must not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSelectiveSyncPolicyChangedDetails(@Nonnull TeamSelectiveSyncPolicy newValue, @Nonnull TeamSelectiveSyncPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New Team Selective Sync policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamSelectiveSyncPolicy getNewValue() { + return newValue; + } + + /** + * Previous Team Selective Sync policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamSelectiveSyncPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSelectiveSyncPolicyChangedDetails other = (TeamSelectiveSyncPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSelectiveSyncPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TeamSelectiveSyncPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + TeamSelectiveSyncPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSelectiveSyncPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSelectiveSyncPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamSelectiveSyncPolicy f_newValue = null; + TeamSelectiveSyncPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TeamSelectiveSyncPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = TeamSelectiveSyncPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new TeamSelectiveSyncPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedType.java new file mode 100644 index 000000000..3f4da4902 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamSelectiveSyncPolicyChangedType { + // struct team_log.TeamSelectiveSyncPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSelectiveSyncPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSelectiveSyncPolicyChangedType other = (TeamSelectiveSyncPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSelectiveSyncPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSelectiveSyncPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSelectiveSyncPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamSelectiveSyncPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedDetails.java new file mode 100644 index 000000000..3948befb1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.files.SyncSetting; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed sync default. + */ +public class TeamSelectiveSyncSettingsChangedDetails { + // struct team_log.TeamSelectiveSyncSettingsChangedDetails (team_log_generated.stone) + + @Nonnull + protected final SyncSetting previousValue; + @Nonnull + protected final SyncSetting newValue; + + /** + * Changed sync default. + * + * @param previousValue Previous value. Must not be {@code null}. + * @param newValue New value. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSelectiveSyncSettingsChangedDetails(@Nonnull SyncSetting previousValue, @Nonnull SyncSetting newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous value. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SyncSetting getPreviousValue() { + return previousValue; + } + + /** + * New value. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SyncSetting getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSelectiveSyncSettingsChangedDetails other = (TeamSelectiveSyncSettingsChangedDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSelectiveSyncSettingsChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + SyncSetting.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + SyncSetting.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSelectiveSyncSettingsChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSelectiveSyncSettingsChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SyncSetting f_previousValue = null; + SyncSetting f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = SyncSetting.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = SyncSetting.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new TeamSelectiveSyncSettingsChangedDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedType.java new file mode 100644 index 000000000..2b41ad23e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSelectiveSyncSettingsChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamSelectiveSyncSettingsChangedType { + // struct team_log.TeamSelectiveSyncSettingsChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSelectiveSyncSettingsChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSelectiveSyncSettingsChangedType other = (TeamSelectiveSyncSettingsChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSelectiveSyncSettingsChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSelectiveSyncSettingsChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSelectiveSyncSettingsChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamSelectiveSyncSettingsChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedDetails.java new file mode 100644 index 000000000..b03ec4762 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Edited the approved list for sharing externally. + */ +public class TeamSharingWhitelistSubjectsChangedDetails { + // struct team_log.TeamSharingWhitelistSubjectsChangedDetails (team_log_generated.stone) + + @Nonnull + protected final List addedWhitelistSubjects; + @Nonnull + protected final List removedWhitelistSubjects; + + /** + * Edited the approved list for sharing externally. + * + * @param addedWhitelistSubjects Domains or emails added to the approved + * list for sharing externally. Must not contain a {@code null} item and + * not be {@code null}. + * @param removedWhitelistSubjects Domains or emails removed from the + * approved list for sharing externally. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSharingWhitelistSubjectsChangedDetails(@Nonnull List addedWhitelistSubjects, @Nonnull List removedWhitelistSubjects) { + if (addedWhitelistSubjects == null) { + throw new IllegalArgumentException("Required value for 'addedWhitelistSubjects' is null"); + } + for (String x : addedWhitelistSubjects) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'addedWhitelistSubjects' is null"); + } + } + this.addedWhitelistSubjects = addedWhitelistSubjects; + if (removedWhitelistSubjects == null) { + throw new IllegalArgumentException("Required value for 'removedWhitelistSubjects' is null"); + } + for (String x : removedWhitelistSubjects) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'removedWhitelistSubjects' is null"); + } + } + this.removedWhitelistSubjects = removedWhitelistSubjects; + } + + /** + * Domains or emails added to the approved list for sharing externally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAddedWhitelistSubjects() { + return addedWhitelistSubjects; + } + + /** + * Domains or emails removed from the approved list for sharing externally. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getRemovedWhitelistSubjects() { + return removedWhitelistSubjects; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.addedWhitelistSubjects, + this.removedWhitelistSubjects + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSharingWhitelistSubjectsChangedDetails other = (TeamSharingWhitelistSubjectsChangedDetails) obj; + return ((this.addedWhitelistSubjects == other.addedWhitelistSubjects) || (this.addedWhitelistSubjects.equals(other.addedWhitelistSubjects))) + && ((this.removedWhitelistSubjects == other.removedWhitelistSubjects) || (this.removedWhitelistSubjects.equals(other.removedWhitelistSubjects))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSharingWhitelistSubjectsChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("added_whitelist_subjects"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.addedWhitelistSubjects, g); + g.writeFieldName("removed_whitelist_subjects"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.removedWhitelistSubjects, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSharingWhitelistSubjectsChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSharingWhitelistSubjectsChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_addedWhitelistSubjects = null; + List f_removedWhitelistSubjects = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("added_whitelist_subjects".equals(field)) { + f_addedWhitelistSubjects = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else if ("removed_whitelist_subjects".equals(field)) { + f_removedWhitelistSubjects = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_addedWhitelistSubjects == null) { + throw new JsonParseException(p, "Required field \"added_whitelist_subjects\" missing."); + } + if (f_removedWhitelistSubjects == null) { + throw new JsonParseException(p, "Required field \"removed_whitelist_subjects\" missing."); + } + value = new TeamSharingWhitelistSubjectsChangedDetails(f_addedWhitelistSubjects, f_removedWhitelistSubjects); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedType.java new file mode 100644 index 000000000..8e9a317d0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TeamSharingWhitelistSubjectsChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamSharingWhitelistSubjectsChangedType { + // struct team_log.TeamSharingWhitelistSubjectsChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSharingWhitelistSubjectsChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSharingWhitelistSubjectsChangedType other = (TeamSharingWhitelistSubjectsChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSharingWhitelistSubjectsChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSharingWhitelistSubjectsChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSharingWhitelistSubjectsChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TeamSharingWhitelistSubjectsChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddBackupPhoneDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddBackupPhoneDetails.java new file mode 100644 index 000000000..d50827c60 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddBackupPhoneDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added backup phone for two-step verification. + */ +public class TfaAddBackupPhoneDetails { + // struct team_log.TfaAddBackupPhoneDetails (team_log_generated.stone) + + + /** + * Added backup phone for two-step verification. + */ + public TfaAddBackupPhoneDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaAddBackupPhoneDetails other = (TfaAddBackupPhoneDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaAddBackupPhoneDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaAddBackupPhoneDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaAddBackupPhoneDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaAddBackupPhoneDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddBackupPhoneType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddBackupPhoneType.java new file mode 100644 index 000000000..49e54641c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddBackupPhoneType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaAddBackupPhoneType { + // struct team_log.TfaAddBackupPhoneType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaAddBackupPhoneType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaAddBackupPhoneType other = (TfaAddBackupPhoneType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaAddBackupPhoneType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaAddBackupPhoneType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaAddBackupPhoneType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaAddBackupPhoneType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddExceptionDetails.java new file mode 100644 index 000000000..ce38bc321 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added members to two factor authentication exception list. + */ +public class TfaAddExceptionDetails { + // struct team_log.TfaAddExceptionDetails (team_log_generated.stone) + + + /** + * Added members to two factor authentication exception list. + */ + public TfaAddExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaAddExceptionDetails other = (TfaAddExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaAddExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaAddExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaAddExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaAddExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddExceptionType.java new file mode 100644 index 000000000..78e376789 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaAddExceptionType { + // struct team_log.TfaAddExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaAddExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaAddExceptionType other = (TfaAddExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaAddExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaAddExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaAddExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaAddExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddSecurityKeyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddSecurityKeyDetails.java new file mode 100644 index 000000000..196ef5619 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddSecurityKeyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Added security key for two-step verification. + */ +public class TfaAddSecurityKeyDetails { + // struct team_log.TfaAddSecurityKeyDetails (team_log_generated.stone) + + + /** + * Added security key for two-step verification. + */ + public TfaAddSecurityKeyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaAddSecurityKeyDetails other = (TfaAddSecurityKeyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaAddSecurityKeyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaAddSecurityKeyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaAddSecurityKeyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaAddSecurityKeyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddSecurityKeyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddSecurityKeyType.java new file mode 100644 index 000000000..88489bb65 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaAddSecurityKeyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaAddSecurityKeyType { + // struct team_log.TfaAddSecurityKeyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaAddSecurityKeyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaAddSecurityKeyType other = (TfaAddSecurityKeyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaAddSecurityKeyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaAddSecurityKeyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaAddSecurityKeyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaAddSecurityKeyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneDetails.java new file mode 100644 index 000000000..55dc8bc6f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Changed backup phone for two-step verification. + */ +public class TfaChangeBackupPhoneDetails { + // struct team_log.TfaChangeBackupPhoneDetails (team_log_generated.stone) + + + /** + * Changed backup phone for two-step verification. + */ + public TfaChangeBackupPhoneDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaChangeBackupPhoneDetails other = (TfaChangeBackupPhoneDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaChangeBackupPhoneDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaChangeBackupPhoneDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaChangeBackupPhoneDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaChangeBackupPhoneDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneType.java new file mode 100644 index 000000000..da59fac93 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeBackupPhoneType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaChangeBackupPhoneType { + // struct team_log.TfaChangeBackupPhoneType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaChangeBackupPhoneType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaChangeBackupPhoneType other = (TfaChangeBackupPhoneType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaChangeBackupPhoneType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaChangeBackupPhoneType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaChangeBackupPhoneType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaChangeBackupPhoneType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangePolicyDetails.java new file mode 100644 index 000000000..5f8d9ef46 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangePolicyDetails.java @@ -0,0 +1,193 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.TwoStepVerificationPolicy; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed two-step verification setting for team. + */ +public class TfaChangePolicyDetails { + // struct team_log.TfaChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final TwoStepVerificationPolicy newValue; + @Nullable + protected final TwoStepVerificationPolicy previousValue; + + /** + * Changed two-step verification setting for team. + * + * @param newValue New change policy. Must not be {@code null}. + * @param previousValue Previous change policy. Might be missing due to + * historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaChangePolicyDetails(@Nonnull TwoStepVerificationPolicy newValue, @Nullable TwoStepVerificationPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed two-step verification setting for team. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New change policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaChangePolicyDetails(@Nonnull TwoStepVerificationPolicy newValue) { + this(newValue, null); + } + + /** + * New change policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TwoStepVerificationPolicy getNewValue() { + return newValue; + } + + /** + * Previous change policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TwoStepVerificationPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaChangePolicyDetails other = (TfaChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TwoStepVerificationPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(TwoStepVerificationPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TwoStepVerificationPolicy f_newValue = null; + TwoStepVerificationPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TwoStepVerificationPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(TwoStepVerificationPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new TfaChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangePolicyType.java new file mode 100644 index 000000000..c67018865 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaChangePolicyType { + // struct team_log.TfaChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaChangePolicyType other = (TfaChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeStatusDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeStatusDetails.java new file mode 100644 index 000000000..ccfd17aa6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeStatusDetails.java @@ -0,0 +1,296 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled/changed two-step verification setting. + */ +public class TfaChangeStatusDetails { + // struct team_log.TfaChangeStatusDetails (team_log_generated.stone) + + @Nonnull + protected final TfaConfiguration newValue; + @Nullable + protected final TfaConfiguration previousValue; + @Nullable + protected final Boolean usedRescueCode; + + /** + * Enabled/disabled/changed two-step verification setting. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue The new two factor authentication configuration. Must + * not be {@code null}. + * @param previousValue The previous two factor authentication + * configuration. Might be missing due to historical data gap. + * @param usedRescueCode Used two factor authentication rescue code. This + * flag is relevant when the two factor authentication configuration is + * disabled. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaChangeStatusDetails(@Nonnull TfaConfiguration newValue, @Nullable TfaConfiguration previousValue, @Nullable Boolean usedRescueCode) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + this.usedRescueCode = usedRescueCode; + } + + /** + * Enabled/disabled/changed two-step verification setting. + * + *

The default values for unset fields will be used.

+ * + * @param newValue The new two factor authentication configuration. Must + * not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaChangeStatusDetails(@Nonnull TfaConfiguration newValue) { + this(newValue, null, null); + } + + /** + * The new two factor authentication configuration. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TfaConfiguration getNewValue() { + return newValue; + } + + /** + * The previous two factor authentication configuration. Might be missing + * due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TfaConfiguration getPreviousValue() { + return previousValue; + } + + /** + * Used two factor authentication rescue code. This flag is relevant when + * the two factor authentication configuration is disabled. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getUsedRescueCode() { + return usedRescueCode; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param newValue The new two factor authentication configuration. Must + * not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(TfaConfiguration newValue) { + return new Builder(newValue); + } + + /** + * Builder for {@link TfaChangeStatusDetails}. + */ + public static class Builder { + protected final TfaConfiguration newValue; + + protected TfaConfiguration previousValue; + protected Boolean usedRescueCode; + + protected Builder(TfaConfiguration newValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = null; + this.usedRescueCode = null; + } + + /** + * Set value for optional field. + * + * @param previousValue The previous two factor authentication + * configuration. Might be missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(TfaConfiguration previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Set value for optional field. + * + * @param usedRescueCode Used two factor authentication rescue code. + * This flag is relevant when the two factor authentication + * configuration is disabled. + * + * @return this builder + */ + public Builder withUsedRescueCode(Boolean usedRescueCode) { + this.usedRescueCode = usedRescueCode; + return this; + } + + /** + * Builds an instance of {@link TfaChangeStatusDetails} configured with + * this builder's values + * + * @return new instance of {@link TfaChangeStatusDetails} + */ + public TfaChangeStatusDetails build() { + return new TfaChangeStatusDetails(newValue, previousValue, usedRescueCode); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue, + this.usedRescueCode + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaChangeStatusDetails other = (TfaChangeStatusDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + && ((this.usedRescueCode == other.usedRescueCode) || (this.usedRescueCode != null && this.usedRescueCode.equals(other.usedRescueCode))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaChangeStatusDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TfaConfiguration.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(TfaConfiguration.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (value.usedRescueCode != null) { + g.writeFieldName("used_rescue_code"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.usedRescueCode, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaChangeStatusDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaChangeStatusDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TfaConfiguration f_newValue = null; + TfaConfiguration f_previousValue = null; + Boolean f_usedRescueCode = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TfaConfiguration.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(TfaConfiguration.Serializer.INSTANCE).deserialize(p); + } + else if ("used_rescue_code".equals(field)) { + f_usedRescueCode = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new TfaChangeStatusDetails(f_newValue, f_previousValue, f_usedRescueCode); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeStatusType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeStatusType.java new file mode 100644 index 000000000..cef16521e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaChangeStatusType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaChangeStatusType { + // struct team_log.TfaChangeStatusType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaChangeStatusType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaChangeStatusType other = (TfaChangeStatusType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaChangeStatusType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaChangeStatusType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaChangeStatusType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaChangeStatusType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaConfiguration.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaConfiguration.java new file mode 100644 index 000000000..d1d5c7555 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaConfiguration.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Two factor authentication configuration. Note: the enabled option is + * deprecated. + */ +public enum TfaConfiguration { + // union team_log.TfaConfiguration (team_log_generated.stone) + AUTHENTICATOR, + DISABLED, + ENABLED, + SMS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaConfiguration value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case AUTHENTICATOR: { + g.writeString("authenticator"); + break; + } + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + case SMS: { + g.writeString("sms"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TfaConfiguration deserialize(JsonParser p) throws IOException, JsonParseException { + TfaConfiguration value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("authenticator".equals(tag)) { + value = TfaConfiguration.AUTHENTICATOR; + } + else if ("disabled".equals(tag)) { + value = TfaConfiguration.DISABLED; + } + else if ("enabled".equals(tag)) { + value = TfaConfiguration.ENABLED; + } + else if ("sms".equals(tag)) { + value = TfaConfiguration.SMS; + } + else { + value = TfaConfiguration.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneDetails.java new file mode 100644 index 000000000..6910dd20e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed backup phone for two-step verification. + */ +public class TfaRemoveBackupPhoneDetails { + // struct team_log.TfaRemoveBackupPhoneDetails (team_log_generated.stone) + + + /** + * Removed backup phone for two-step verification. + */ + public TfaRemoveBackupPhoneDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaRemoveBackupPhoneDetails other = (TfaRemoveBackupPhoneDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaRemoveBackupPhoneDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaRemoveBackupPhoneDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaRemoveBackupPhoneDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaRemoveBackupPhoneDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneType.java new file mode 100644 index 000000000..96ee3e720 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveBackupPhoneType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaRemoveBackupPhoneType { + // struct team_log.TfaRemoveBackupPhoneType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaRemoveBackupPhoneType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaRemoveBackupPhoneType other = (TfaRemoveBackupPhoneType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaRemoveBackupPhoneType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaRemoveBackupPhoneType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaRemoveBackupPhoneType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaRemoveBackupPhoneType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveExceptionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveExceptionDetails.java new file mode 100644 index 000000000..cb2ce752e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveExceptionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed members from two factor authentication exception list. + */ +public class TfaRemoveExceptionDetails { + // struct team_log.TfaRemoveExceptionDetails (team_log_generated.stone) + + + /** + * Removed members from two factor authentication exception list. + */ + public TfaRemoveExceptionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaRemoveExceptionDetails other = (TfaRemoveExceptionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaRemoveExceptionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaRemoveExceptionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaRemoveExceptionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaRemoveExceptionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveExceptionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveExceptionType.java new file mode 100644 index 000000000..b77a46ae8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveExceptionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaRemoveExceptionType { + // struct team_log.TfaRemoveExceptionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaRemoveExceptionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaRemoveExceptionType other = (TfaRemoveExceptionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaRemoveExceptionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaRemoveExceptionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaRemoveExceptionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaRemoveExceptionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyDetails.java new file mode 100644 index 000000000..2b1bcc79f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed security key for two-step verification. + */ +public class TfaRemoveSecurityKeyDetails { + // struct team_log.TfaRemoveSecurityKeyDetails (team_log_generated.stone) + + + /** + * Removed security key for two-step verification. + */ + public TfaRemoveSecurityKeyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaRemoveSecurityKeyDetails other = (TfaRemoveSecurityKeyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaRemoveSecurityKeyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaRemoveSecurityKeyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaRemoveSecurityKeyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaRemoveSecurityKeyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyType.java new file mode 100644 index 000000000..9e512bd6a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaRemoveSecurityKeyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaRemoveSecurityKeyType { + // struct team_log.TfaRemoveSecurityKeyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaRemoveSecurityKeyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaRemoveSecurityKeyType other = (TfaRemoveSecurityKeyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaRemoveSecurityKeyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaRemoveSecurityKeyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaRemoveSecurityKeyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaRemoveSecurityKeyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaResetDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaResetDetails.java new file mode 100644 index 000000000..25035fdb2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaResetDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Reset two-step verification for team member. + */ +public class TfaResetDetails { + // struct team_log.TfaResetDetails (team_log_generated.stone) + + + /** + * Reset two-step verification for team member. + */ + public TfaResetDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaResetDetails other = (TfaResetDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaResetDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaResetDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaResetDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new TfaResetDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaResetType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaResetType.java new file mode 100644 index 000000000..1471e1b8d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TfaResetType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TfaResetType { + // struct team_log.TfaResetType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TfaResetType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TfaResetType other = (TfaResetType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TfaResetType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TfaResetType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TfaResetType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TfaResetType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TimeUnit.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TimeUnit.java new file mode 100644 index 000000000..991132e0e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TimeUnit.java @@ -0,0 +1,137 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TimeUnit { + // union team_log.TimeUnit (team_log_generated.stone) + DAYS, + HOURS, + MILLISECONDS, + MINUTES, + MONTHS, + SECONDS, + WEEKS, + YEARS, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TimeUnit value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DAYS: { + g.writeString("days"); + break; + } + case HOURS: { + g.writeString("hours"); + break; + } + case MILLISECONDS: { + g.writeString("milliseconds"); + break; + } + case MINUTES: { + g.writeString("minutes"); + break; + } + case MONTHS: { + g.writeString("months"); + break; + } + case SECONDS: { + g.writeString("seconds"); + break; + } + case WEEKS: { + g.writeString("weeks"); + break; + } + case YEARS: { + g.writeString("years"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TimeUnit deserialize(JsonParser p) throws IOException, JsonParseException { + TimeUnit value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("days".equals(tag)) { + value = TimeUnit.DAYS; + } + else if ("hours".equals(tag)) { + value = TimeUnit.HOURS; + } + else if ("milliseconds".equals(tag)) { + value = TimeUnit.MILLISECONDS; + } + else if ("minutes".equals(tag)) { + value = TimeUnit.MINUTES; + } + else if ("months".equals(tag)) { + value = TimeUnit.MONTHS; + } + else if ("seconds".equals(tag)) { + value = TimeUnit.SECONDS; + } + else if ("weeks".equals(tag)) { + value = TimeUnit.WEEKS; + } + else if ("years".equals(tag)) { + value = TimeUnit.YEARS; + } + else { + value = TimeUnit.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo.java new file mode 100644 index 000000000..9984d6fe9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedNonTeamMemberLogInfo.java @@ -0,0 +1,360 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * User that is not a member of the team but considered trusted. + */ +public class TrustedNonTeamMemberLogInfo extends UserLogInfo { + // struct team_log.TrustedNonTeamMemberLogInfo (team_log_generated.stone) + + @Nonnull + protected final TrustedNonTeamMemberType trustedNonTeamMemberType; + @Nullable + protected final TeamLogInfo team; + + /** + * User that is not a member of the team but considered trusted. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param trustedNonTeamMemberType Indicates the type of the member of a + * trusted team. Must not be {@code null}. + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * @param displayName User display name. + * @param email User email address. Must have length of at most 255. + * @param team Details about this user's trusted team. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TrustedNonTeamMemberLogInfo(@Nonnull TrustedNonTeamMemberType trustedNonTeamMemberType, @Nullable String accountId, @Nullable String displayName, @Nullable String email, @Nullable TeamLogInfo team) { + super(accountId, displayName, email); + if (trustedNonTeamMemberType == null) { + throw new IllegalArgumentException("Required value for 'trustedNonTeamMemberType' is null"); + } + this.trustedNonTeamMemberType = trustedNonTeamMemberType; + this.team = team; + } + + /** + * User that is not a member of the team but considered trusted. + * + *

The default values for unset fields will be used.

+ * + * @param trustedNonTeamMemberType Indicates the type of the member of a + * trusted team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TrustedNonTeamMemberLogInfo(@Nonnull TrustedNonTeamMemberType trustedNonTeamMemberType) { + this(trustedNonTeamMemberType, null, null, null, null); + } + + /** + * Indicates the type of the member of a trusted team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TrustedNonTeamMemberType getTrustedNonTeamMemberType() { + return trustedNonTeamMemberType; + } + + /** + * User unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * User display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * User email address. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getEmail() { + return email; + } + + /** + * Details about this user's trusted team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TeamLogInfo getTeam() { + return team; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param trustedNonTeamMemberType Indicates the type of the member of a + * trusted team. Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(TrustedNonTeamMemberType trustedNonTeamMemberType) { + return new Builder(trustedNonTeamMemberType); + } + + /** + * Builder for {@link TrustedNonTeamMemberLogInfo}. + */ + public static class Builder extends UserLogInfo.Builder { + protected final TrustedNonTeamMemberType trustedNonTeamMemberType; + + protected TeamLogInfo team; + + protected Builder(TrustedNonTeamMemberType trustedNonTeamMemberType) { + if (trustedNonTeamMemberType == null) { + throw new IllegalArgumentException("Required value for 'trustedNonTeamMemberType' is null"); + } + this.trustedNonTeamMemberType = trustedNonTeamMemberType; + this.team = null; + } + + /** + * Set value for optional field. + * + * @param team Details about this user's trusted team. + * + * @return this builder + */ + public Builder withTeam(TeamLogInfo team) { + this.team = team; + return this; + } + + /** + * Set value for optional field. + * + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + super.withAccountId(accountId); + return this; + } + + /** + * Set value for optional field. + * + * @param displayName User display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Set value for optional field. + * + * @param email User email address. Must have length of at most 255. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withEmail(String email) { + super.withEmail(email); + return this; + } + + /** + * Builds an instance of {@link TrustedNonTeamMemberLogInfo} configured + * with this builder's values + * + * @return new instance of {@link TrustedNonTeamMemberLogInfo} + */ + public TrustedNonTeamMemberLogInfo build() { + return new TrustedNonTeamMemberLogInfo(trustedNonTeamMemberType, accountId, displayName, email, team); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.trustedNonTeamMemberType, + this.team + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TrustedNonTeamMemberLogInfo other = (TrustedNonTeamMemberLogInfo) obj; + return ((this.trustedNonTeamMemberType == other.trustedNonTeamMemberType) || (this.trustedNonTeamMemberType.equals(other.trustedNonTeamMemberType))) + && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.email == other.email) || (this.email != null && this.email.equals(other.email))) + && ((this.team == other.team) || (this.team != null && this.team.equals(other.team))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TrustedNonTeamMemberLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("trusted_non_team_member", g); + g.writeFieldName("trusted_non_team_member_type"); + TrustedNonTeamMemberType.Serializer.INSTANCE.serialize(value.trustedNonTeamMemberType, g); + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.email != null) { + g.writeFieldName("email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.email, g); + } + if (value.team != null) { + g.writeFieldName("team"); + StoneSerializers.nullableStruct(TeamLogInfo.Serializer.INSTANCE).serialize(value.team, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TrustedNonTeamMemberLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TrustedNonTeamMemberLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("trusted_non_team_member".equals(tag)) { + tag = null; + } + } + if (tag == null) { + TrustedNonTeamMemberType f_trustedNonTeamMemberType = null; + String f_accountId = null; + String f_displayName = null; + String f_email = null; + TeamLogInfo f_team = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("trusted_non_team_member_type".equals(field)) { + f_trustedNonTeamMemberType = TrustedNonTeamMemberType.Serializer.INSTANCE.deserialize(p); + } + else if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team".equals(field)) { + f_team = StoneSerializers.nullableStruct(TeamLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_trustedNonTeamMemberType == null) { + throw new JsonParseException(p, "Required field \"trusted_non_team_member_type\" missing."); + } + value = new TrustedNonTeamMemberLogInfo(f_trustedNonTeamMemberType, f_accountId, f_displayName, f_email, f_team); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedNonTeamMemberType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedNonTeamMemberType.java new file mode 100644 index 000000000..2748731e8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedNonTeamMemberType.java @@ -0,0 +1,89 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TrustedNonTeamMemberType { + // union team_log.TrustedNonTeamMemberType (team_log_generated.stone) + ENTERPRISE_ADMIN, + MULTI_INSTANCE_ADMIN, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TrustedNonTeamMemberType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ENTERPRISE_ADMIN: { + g.writeString("enterprise_admin"); + break; + } + case MULTI_INSTANCE_ADMIN: { + g.writeString("multi_instance_admin"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TrustedNonTeamMemberType deserialize(JsonParser p) throws IOException, JsonParseException { + TrustedNonTeamMemberType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("enterprise_admin".equals(tag)) { + value = TrustedNonTeamMemberType.ENTERPRISE_ADMIN; + } + else if ("multi_instance_admin".equals(tag)) { + value = TrustedNonTeamMemberType.MULTI_INSTANCE_ADMIN; + } + else { + value = TrustedNonTeamMemberType.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedTeamsRequestAction.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedTeamsRequestAction.java new file mode 100644 index 000000000..4b19035c2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedTeamsRequestAction.java @@ -0,0 +1,113 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TrustedTeamsRequestAction { + // union team_log.TrustedTeamsRequestAction (team_log_generated.stone) + ACCEPTED, + DECLINED, + EXPIRED, + INVITED, + REVOKED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TrustedTeamsRequestAction value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ACCEPTED: { + g.writeString("accepted"); + break; + } + case DECLINED: { + g.writeString("declined"); + break; + } + case EXPIRED: { + g.writeString("expired"); + break; + } + case INVITED: { + g.writeString("invited"); + break; + } + case REVOKED: { + g.writeString("revoked"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TrustedTeamsRequestAction deserialize(JsonParser p) throws IOException, JsonParseException { + TrustedTeamsRequestAction value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("accepted".equals(tag)) { + value = TrustedTeamsRequestAction.ACCEPTED; + } + else if ("declined".equals(tag)) { + value = TrustedTeamsRequestAction.DECLINED; + } + else if ("expired".equals(tag)) { + value = TrustedTeamsRequestAction.EXPIRED; + } + else if ("invited".equals(tag)) { + value = TrustedTeamsRequestAction.INVITED; + } + else if ("revoked".equals(tag)) { + value = TrustedTeamsRequestAction.REVOKED; + } + else { + value = TrustedTeamsRequestAction.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedTeamsRequestState.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedTeamsRequestState.java new file mode 100644 index 000000000..691098da1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TrustedTeamsRequestState.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TrustedTeamsRequestState { + // union team_log.TrustedTeamsRequestState (team_log_generated.stone) + INVITED, + LINKED, + UNLINKED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TrustedTeamsRequestState value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case INVITED: { + g.writeString("invited"); + break; + } + case LINKED: { + g.writeString("linked"); + break; + } + case UNLINKED: { + g.writeString("unlinked"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TrustedTeamsRequestState deserialize(JsonParser p) throws IOException, JsonParseException { + TrustedTeamsRequestState value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("invited".equals(tag)) { + value = TrustedTeamsRequestState.INVITED; + } + else if ("linked".equals(tag)) { + value = TrustedTeamsRequestState.LINKED; + } + else if ("unlinked".equals(tag)) { + value = TrustedTeamsRequestState.UNLINKED; + } + else { + value = TrustedTeamsRequestState.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountChangePolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountChangePolicyDetails.java new file mode 100644 index 000000000..e38e6e0df --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountChangePolicyDetails.java @@ -0,0 +1,195 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Enabled/disabled option for members to link personal Dropbox account and team + * account to same computer. + */ +public class TwoAccountChangePolicyDetails { + // struct team_log.TwoAccountChangePolicyDetails (team_log_generated.stone) + + @Nonnull + protected final TwoAccountPolicy newValue; + @Nullable + protected final TwoAccountPolicy previousValue; + + /** + * Enabled/disabled option for members to link personal Dropbox account and + * team account to same computer. + * + * @param newValue New two account policy. Must not be {@code null}. + * @param previousValue Previous two account policy. Might be missing due + * to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TwoAccountChangePolicyDetails(@Nonnull TwoAccountPolicy newValue, @Nullable TwoAccountPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Enabled/disabled option for members to link personal Dropbox account and + * team account to same computer. + * + *

The default values for unset fields will be used.

+ * + * @param newValue New two account policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TwoAccountChangePolicyDetails(@Nonnull TwoAccountPolicy newValue) { + this(newValue, null); + } + + /** + * New two account policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TwoAccountPolicy getNewValue() { + return newValue; + } + + /** + * Previous two account policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public TwoAccountPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TwoAccountChangePolicyDetails other = (TwoAccountChangePolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TwoAccountChangePolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + TwoAccountPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(TwoAccountPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TwoAccountChangePolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TwoAccountChangePolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TwoAccountPolicy f_newValue = null; + TwoAccountPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = TwoAccountPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(TwoAccountPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new TwoAccountChangePolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountChangePolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountChangePolicyType.java new file mode 100644 index 000000000..d9dea4bf5 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountChangePolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TwoAccountChangePolicyType { + // struct team_log.TwoAccountChangePolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TwoAccountChangePolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TwoAccountChangePolicyType other = (TwoAccountChangePolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TwoAccountChangePolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TwoAccountChangePolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TwoAccountChangePolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new TwoAccountChangePolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountPolicy.java new file mode 100644 index 000000000..bc2f39320 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/TwoAccountPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for pairing personal account to work account + */ +public enum TwoAccountPolicy { + // union team_log.TwoAccountPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TwoAccountPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TwoAccountPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + TwoAccountPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = TwoAccountPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = TwoAccountPolicy.ENABLED; + } + else { + value = TwoAccountPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoNamingConventionDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoNamingConventionDetails.java new file mode 100644 index 000000000..268c968a4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoNamingConventionDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Reverted naming convention. + */ +public class UndoNamingConventionDetails { + // struct team_log.UndoNamingConventionDetails (team_log_generated.stone) + + + /** + * Reverted naming convention. + */ + public UndoNamingConventionDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UndoNamingConventionDetails other = (UndoNamingConventionDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UndoNamingConventionDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UndoNamingConventionDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UndoNamingConventionDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new UndoNamingConventionDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoNamingConventionType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoNamingConventionType.java new file mode 100644 index 000000000..050eb6937 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoNamingConventionType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UndoNamingConventionType { + // struct team_log.UndoNamingConventionType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UndoNamingConventionType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UndoNamingConventionType other = (UndoNamingConventionType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UndoNamingConventionType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UndoNamingConventionType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UndoNamingConventionType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new UndoNamingConventionType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyDetails.java new file mode 100644 index 000000000..77cc6553f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyDetails.java @@ -0,0 +1,109 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Removed multi-file organize. + */ +public class UndoOrganizeFolderWithTidyDetails { + // struct team_log.UndoOrganizeFolderWithTidyDetails (team_log_generated.stone) + + + /** + * Removed multi-file organize. + */ + public UndoOrganizeFolderWithTidyDetails() { + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UndoOrganizeFolderWithTidyDetails other = (UndoOrganizeFolderWithTidyDetails) obj; + return true; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UndoOrganizeFolderWithTidyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UndoOrganizeFolderWithTidyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UndoOrganizeFolderWithTidyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + value = new UndoOrganizeFolderWithTidyDetails(); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyType.java new file mode 100644 index 000000000..edd53d1a2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UndoOrganizeFolderWithTidyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UndoOrganizeFolderWithTidyType { + // struct team_log.UndoOrganizeFolderWithTidyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UndoOrganizeFolderWithTidyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UndoOrganizeFolderWithTidyType other = (UndoOrganizeFolderWithTidyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UndoOrganizeFolderWithTidyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UndoOrganizeFolderWithTidyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UndoOrganizeFolderWithTidyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new UndoOrganizeFolderWithTidyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserLinkedAppLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserLinkedAppLogInfo.java new file mode 100644 index 000000000..6afc3eefb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserLinkedAppLogInfo.java @@ -0,0 +1,229 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * User linked app + */ +public class UserLinkedAppLogInfo extends AppLogInfo { + // struct team_log.UserLinkedAppLogInfo (team_log_generated.stone) + + + /** + * User linked app + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param appId App unique ID. + * @param displayName App display name. + */ + public UserLinkedAppLogInfo(@Nullable String appId, @Nullable String displayName) { + super(appId, displayName); + } + + /** + * User linked app + * + *

The default values for unset fields will be used.

+ */ + public UserLinkedAppLogInfo() { + this(null, null); + } + + /** + * App unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAppId() { + return appId; + } + + /** + * App display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link UserLinkedAppLogInfo}. + */ + public static class Builder extends AppLogInfo.Builder { + + protected Builder() { + } + + /** + * Set value for optional field. + * + * @param appId App unique ID. + * + * @return this builder + */ + public Builder withAppId(String appId) { + super.withAppId(appId); + return this; + } + + /** + * Set value for optional field. + * + * @param displayName App display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Builds an instance of {@link UserLinkedAppLogInfo} configured with + * this builder's values + * + * @return new instance of {@link UserLinkedAppLogInfo} + */ + public UserLinkedAppLogInfo build() { + return new UserLinkedAppLogInfo(appId, displayName); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserLinkedAppLogInfo other = (UserLinkedAppLogInfo) obj; + return ((this.appId == other.appId) || (this.appId != null && this.appId.equals(other.appId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserLinkedAppLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("user_linked_app", g); + if (value.appId != null) { + g.writeFieldName("app_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.appId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserLinkedAppLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserLinkedAppLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("user_linked_app".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_appId = null; + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_id".equals(field)) { + f_appId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new UserLinkedAppLogInfo(f_appId, f_displayName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserLogInfo.java new file mode 100644 index 000000000..af0033ccb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserLogInfo.java @@ -0,0 +1,341 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * User's logged information. + */ +public class UserLogInfo { + // struct team_log.UserLogInfo (team_log_generated.stone) + + @Nullable + protected final String accountId; + @Nullable + protected final String displayName; + @Nullable + protected final String email; + + /** + * User's logged information. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * @param displayName User display name. + * @param email User email address. Must have length of at most 255. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserLogInfo(@Nullable String accountId, @Nullable String displayName, @Nullable String email) { + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + this.displayName = displayName; + if (email != null) { + if (email.length() > 255) { + throw new IllegalArgumentException("String 'email' is longer than 255"); + } + } + this.email = email; + } + + /** + * User's logged information. + * + *

The default values for unset fields will be used.

+ */ + public UserLogInfo() { + this(null, null, null); + } + + /** + * User unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAccountId() { + return accountId; + } + + /** + * User display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * User email address. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getEmail() { + return email; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link UserLogInfo}. + */ + public static class Builder { + + protected String accountId; + protected String displayName; + protected String email; + + protected Builder() { + this.accountId = null; + this.displayName = null; + this.email = null; + } + + /** + * Set value for optional field. + * + * @param accountId User unique ID. Must have length of at least 40 and + * have length of at most 40. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withAccountId(String accountId) { + if (accountId != null) { + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + } + this.accountId = accountId; + return this; + } + + /** + * Set value for optional field. + * + * @param displayName User display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Set value for optional field. + * + * @param email User email address. Must have length of at most 255. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withEmail(String email) { + if (email != null) { + if (email.length() > 255) { + throw new IllegalArgumentException("String 'email' is longer than 255"); + } + } + this.email = email; + return this; + } + + /** + * Builds an instance of {@link UserLogInfo} configured with this + * builder's values + * + * @return new instance of {@link UserLogInfo} + */ + public UserLogInfo build() { + return new UserLogInfo(accountId, displayName, email); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accountId, + this.displayName, + this.email + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserLogInfo other = (UserLogInfo) obj; + return ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + && ((this.email == other.email) || (this.email != null && this.email.equals(other.email))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof TeamMemberLogInfo) { + TeamMemberLogInfo.Serializer.INSTANCE.serialize((TeamMemberLogInfo) value, g, collapse); + return; + } + if (value instanceof TrustedNonTeamMemberLogInfo) { + TrustedNonTeamMemberLogInfo.Serializer.INSTANCE.serialize((TrustedNonTeamMemberLogInfo) value, g, collapse); + return; + } + if (value instanceof NonTeamMemberLogInfo) { + NonTeamMemberLogInfo.Serializer.INSTANCE.serialize((NonTeamMemberLogInfo) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + if (value.accountId != null) { + g.writeFieldName("account_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.accountId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (value.email != null) { + g.writeFieldName("email"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.email, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_accountId = null; + String f_displayName = null; + String f_email = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new UserLogInfo(f_accountId, f_displayName, f_email); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("team_member".equals(tag)) { + value = TeamMemberLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("trusted_non_team_member".equals(tag)) { + value = TrustedNonTeamMemberLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else if ("non_team_member".equals(tag)) { + value = NonTeamMemberLogInfo.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserNameLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserNameLogInfo.java new file mode 100644 index 000000000..48a355e8d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserNameLogInfo.java @@ -0,0 +1,220 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * User's name logged information + */ +public class UserNameLogInfo { + // struct team_log.UserNameLogInfo (team_log_generated.stone) + + @Nonnull + protected final String givenName; + @Nonnull + protected final String surname; + @Nullable + protected final String locale; + + /** + * User's name logged information + * + * @param givenName Given name. Must not be {@code null}. + * @param surname Surname. Must not be {@code null}. + * @param locale Locale. Might be missing due to historical data gap. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserNameLogInfo(@Nonnull String givenName, @Nonnull String surname, @Nullable String locale) { + if (givenName == null) { + throw new IllegalArgumentException("Required value for 'givenName' is null"); + } + this.givenName = givenName; + if (surname == null) { + throw new IllegalArgumentException("Required value for 'surname' is null"); + } + this.surname = surname; + this.locale = locale; + } + + /** + * User's name logged information + * + *

The default values for unset fields will be used.

+ * + * @param givenName Given name. Must not be {@code null}. + * @param surname Surname. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserNameLogInfo(@Nonnull String givenName, @Nonnull String surname) { + this(givenName, surname, null); + } + + /** + * Given name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGivenName() { + return givenName; + } + + /** + * Surname. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSurname() { + return surname; + } + + /** + * Locale. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getLocale() { + return locale; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.givenName, + this.surname, + this.locale + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserNameLogInfo other = (UserNameLogInfo) obj; + return ((this.givenName == other.givenName) || (this.givenName.equals(other.givenName))) + && ((this.surname == other.surname) || (this.surname.equals(other.surname))) + && ((this.locale == other.locale) || (this.locale != null && this.locale.equals(other.locale))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserNameLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("given_name"); + StoneSerializers.string().serialize(value.givenName, g); + g.writeFieldName("surname"); + StoneSerializers.string().serialize(value.surname, g); + if (value.locale != null) { + g.writeFieldName("locale"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.locale, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserNameLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserNameLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_givenName = null; + String f_surname = null; + String f_locale = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("given_name".equals(field)) { + f_givenName = StoneSerializers.string().deserialize(p); + } + else if ("surname".equals(field)) { + f_surname = StoneSerializers.string().deserialize(p); + } + else if ("locale".equals(field)) { + f_locale = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_givenName == null) { + throw new JsonParseException(p, "Required field \"given_name\" missing."); + } + if (f_surname == null) { + throw new JsonParseException(p, "Required field \"surname\" missing."); + } + value = new UserNameLogInfo(f_givenName, f_surname, f_locale); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo.java new file mode 100644 index 000000000..f4f99782e --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserOrTeamLinkedAppLogInfo.java @@ -0,0 +1,232 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * User or team linked app. Used when linked type is missing due to historical + * data gap. + */ +public class UserOrTeamLinkedAppLogInfo extends AppLogInfo { + // struct team_log.UserOrTeamLinkedAppLogInfo (team_log_generated.stone) + + + /** + * User or team linked app. Used when linked type is missing due to + * historical data gap. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param appId App unique ID. + * @param displayName App display name. + */ + public UserOrTeamLinkedAppLogInfo(@Nullable String appId, @Nullable String displayName) { + super(appId, displayName); + } + + /** + * User or team linked app. Used when linked type is missing due to + * historical data gap. + * + *

The default values for unset fields will be used.

+ */ + public UserOrTeamLinkedAppLogInfo() { + this(null, null); + } + + /** + * App unique ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getAppId() { + return appId; + } + + /** + * App display name. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getDisplayName() { + return displayName; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link UserOrTeamLinkedAppLogInfo}. + */ + public static class Builder extends AppLogInfo.Builder { + + protected Builder() { + } + + /** + * Set value for optional field. + * + * @param appId App unique ID. + * + * @return this builder + */ + public Builder withAppId(String appId) { + super.withAppId(appId); + return this; + } + + /** + * Set value for optional field. + * + * @param displayName App display name. + * + * @return this builder + */ + public Builder withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * Builds an instance of {@link UserOrTeamLinkedAppLogInfo} configured + * with this builder's values + * + * @return new instance of {@link UserOrTeamLinkedAppLogInfo} + */ + public UserOrTeamLinkedAppLogInfo build() { + return new UserOrTeamLinkedAppLogInfo(appId, displayName); + } + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserOrTeamLinkedAppLogInfo other = (UserOrTeamLinkedAppLogInfo) obj; + return ((this.appId == other.appId) || (this.appId != null && this.appId.equals(other.appId))) + && ((this.displayName == other.displayName) || (this.displayName != null && this.displayName.equals(other.displayName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserOrTeamLinkedAppLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("user_or_team_linked_app", g); + if (value.appId != null) { + g.writeFieldName("app_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.appId, g); + } + if (value.displayName != null) { + g.writeFieldName("display_name"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.displayName, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserOrTeamLinkedAppLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserOrTeamLinkedAppLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("user_or_team_linked_app".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_appId = null; + String f_displayName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("app_id".equals(field)) { + f_appId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new UserOrTeamLinkedAppLogInfo(f_appId, f_displayName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsAddedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsAddedDetails.java new file mode 100644 index 000000000..d9bf2cd3f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsAddedDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Tagged a file. + */ +public class UserTagsAddedDetails { + // struct team_log.UserTagsAddedDetails (team_log_generated.stone) + + @Nonnull + protected final List values; + + /** + * Tagged a file. + * + * @param values values. Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserTagsAddedDetails(@Nonnull List values) { + if (values == null) { + throw new IllegalArgumentException("Required value for 'values' is null"); + } + for (String x : values) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'values' is null"); + } + } + this.values = values; + } + + /** + * values. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getValues() { + return values; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.values + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserTagsAddedDetails other = (UserTagsAddedDetails) obj; + return (this.values == other.values) || (this.values.equals(other.values)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserTagsAddedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("values"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.values, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserTagsAddedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserTagsAddedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_values = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("values".equals(field)) { + f_values = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_values == null) { + throw new JsonParseException(p, "Required field \"values\" missing."); + } + value = new UserTagsAddedDetails(f_values); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsAddedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsAddedType.java new file mode 100644 index 000000000..b6486fd8f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsAddedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UserTagsAddedType { + // struct team_log.UserTagsAddedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserTagsAddedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserTagsAddedType other = (UserTagsAddedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserTagsAddedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserTagsAddedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserTagsAddedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new UserTagsAddedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsRemovedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsRemovedDetails.java new file mode 100644 index 000000000..b2d4e8a1f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsRemovedDetails.java @@ -0,0 +1,158 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +/** + * Removed tags. + */ +public class UserTagsRemovedDetails { + // struct team_log.UserTagsRemovedDetails (team_log_generated.stone) + + @Nonnull + protected final List values; + + /** + * Removed tags. + * + * @param values values. Must not contain a {@code null} item and not be + * {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserTagsRemovedDetails(@Nonnull List values) { + if (values == null) { + throw new IllegalArgumentException("Required value for 'values' is null"); + } + for (String x : values) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'values' is null"); + } + } + this.values = values; + } + + /** + * values. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getValues() { + return values; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.values + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserTagsRemovedDetails other = (UserTagsRemovedDetails) obj; + return (this.values == other.values) || (this.values.equals(other.values)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserTagsRemovedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("values"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.values, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserTagsRemovedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserTagsRemovedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_values = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("values".equals(field)) { + f_values = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_values == null) { + throw new JsonParseException(p, "Required field \"values\" missing."); + } + value = new UserTagsRemovedDetails(f_values); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsRemovedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsRemovedType.java new file mode 100644 index 000000000..dec207c91 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/UserTagsRemovedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class UserTagsRemovedType { + // struct team_log.UserTagsRemovedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserTagsRemovedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserTagsRemovedType other = (UserTagsRemovedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserTagsRemovedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserTagsRemovedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserTagsRemovedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new UserTagsRemovedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedDetails.java new file mode 100644 index 000000000..fbb5dd584 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed team policy for viewer info. + */ +public class ViewerInfoPolicyChangedDetails { + // struct team_log.ViewerInfoPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final PassPolicy previousValue; + @Nonnull + protected final PassPolicy newValue; + + /** + * Changed team policy for viewer info. + * + * @param previousValue Previous Viewer Info policy. Must not be {@code + * null}. + * @param newValue New Viewer Info policy. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ViewerInfoPolicyChangedDetails(@Nonnull PassPolicy previousValue, @Nonnull PassPolicy newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous Viewer Info policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PassPolicy getPreviousValue() { + return previousValue; + } + + /** + * New Viewer Info policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public PassPolicy getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ViewerInfoPolicyChangedDetails other = (ViewerInfoPolicyChangedDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ViewerInfoPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + PassPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + g.writeFieldName("new_value"); + PassPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ViewerInfoPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ViewerInfoPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + PassPolicy f_previousValue = null; + PassPolicy f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = PassPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = PassPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new ViewerInfoPolicyChangedDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedType.java new file mode 100644 index 000000000..26b1eeba1 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/ViewerInfoPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class ViewerInfoPolicyChangedType { + // struct team_log.ViewerInfoPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public ViewerInfoPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + ViewerInfoPolicyChangedType other = (ViewerInfoPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ViewerInfoPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public ViewerInfoPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + ViewerInfoPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new ViewerInfoPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicy.java new file mode 100644 index 000000000..91181d3ee --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicy.java @@ -0,0 +1,92 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy for controlling team access to watermarking feature + */ +public enum WatermarkingPolicy { + // union team_log.WatermarkingPolicy (team_log_generated.stone) + DISABLED, + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WatermarkingPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public WatermarkingPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + WatermarkingPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = WatermarkingPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = WatermarkingPolicy.ENABLED; + } + else { + value = WatermarkingPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedDetails.java new file mode 100644 index 000000000..bc75a978b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedDetails.java @@ -0,0 +1,181 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed watermarking policy for team. + */ +public class WatermarkingPolicyChangedDetails { + // struct team_log.WatermarkingPolicyChangedDetails (team_log_generated.stone) + + @Nonnull + protected final WatermarkingPolicy newValue; + @Nonnull + protected final WatermarkingPolicy previousValue; + + /** + * Changed watermarking policy for team. + * + * @param newValue New watermarking policy. Must not be {@code null}. + * @param previousValue Previous watermarking policy. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WatermarkingPolicyChangedDetails(@Nonnull WatermarkingPolicy newValue, @Nonnull WatermarkingPolicy previousValue) { + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + } + + /** + * New watermarking policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public WatermarkingPolicy getNewValue() { + return newValue; + } + + /** + * Previous watermarking policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public WatermarkingPolicy getPreviousValue() { + return previousValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WatermarkingPolicyChangedDetails other = (WatermarkingPolicyChangedDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WatermarkingPolicyChangedDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("new_value"); + WatermarkingPolicy.Serializer.INSTANCE.serialize(value.newValue, g); + g.writeFieldName("previous_value"); + WatermarkingPolicy.Serializer.INSTANCE.serialize(value.previousValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WatermarkingPolicyChangedDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WatermarkingPolicyChangedDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + WatermarkingPolicy f_newValue = null; + WatermarkingPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = WatermarkingPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = WatermarkingPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + value = new WatermarkingPolicyChangedDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedType.java new file mode 100644 index 000000000..87b6ce327 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WatermarkingPolicyChangedType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class WatermarkingPolicyChangedType { + // struct team_log.WatermarkingPolicyChangedType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WatermarkingPolicyChangedType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WatermarkingPolicyChangedType other = (WatermarkingPolicyChangedType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WatermarkingPolicyChangedType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WatermarkingPolicyChangedType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WatermarkingPolicyChangedType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new WatermarkingPolicyChangedType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo.java new file mode 100644 index 000000000..d7e03cc31 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebDeviceSessionLogInfo.java @@ -0,0 +1,431 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Information on active web sessions + */ +public class WebDeviceSessionLogInfo extends DeviceSessionLogInfo { + // struct team_log.WebDeviceSessionLogInfo (team_log_generated.stone) + + @Nullable + protected final WebSessionLogInfo sessionInfo; + @Nonnull + protected final String userAgent; + @Nonnull + protected final String os; + @Nonnull + protected final String browser; + + /** + * Information on active web sessions + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param userAgent Information on the hosting device. Must not be {@code + * null}. + * @param os Information on the hosting operating system. Must not be + * {@code null}. + * @param browser Information on the browser used for this web session. + * Must not be {@code null}. + * @param ipAddress The IP address of the last activity from this session. + * @param created The time this session was created. + * @param updated The time of the last activity from this session. + * @param sessionInfo Web session unique id. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WebDeviceSessionLogInfo(@Nonnull String userAgent, @Nonnull String os, @Nonnull String browser, @Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable WebSessionLogInfo sessionInfo) { + super(ipAddress, created, updated); + this.sessionInfo = sessionInfo; + if (userAgent == null) { + throw new IllegalArgumentException("Required value for 'userAgent' is null"); + } + this.userAgent = userAgent; + if (os == null) { + throw new IllegalArgumentException("Required value for 'os' is null"); + } + this.os = os; + if (browser == null) { + throw new IllegalArgumentException("Required value for 'browser' is null"); + } + this.browser = browser; + } + + /** + * Information on active web sessions + * + *

The default values for unset fields will be used.

+ * + * @param userAgent Information on the hosting device. Must not be {@code + * null}. + * @param os Information on the hosting operating system. Must not be + * {@code null}. + * @param browser Information on the browser used for this web session. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WebDeviceSessionLogInfo(@Nonnull String userAgent, @Nonnull String os, @Nonnull String browser) { + this(userAgent, os, browser, null, null, null, null); + } + + /** + * Information on the hosting device. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getUserAgent() { + return userAgent; + } + + /** + * Information on the hosting operating system. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getOs() { + return os; + } + + /** + * Information on the browser used for this web session. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBrowser() { + return browser; + } + + /** + * The IP address of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getIpAddress() { + return ipAddress; + } + + /** + * The time this session was created. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getCreated() { + return created; + } + + /** + * The time of the last activity from this session. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getUpdated() { + return updated; + } + + /** + * Web session unique id. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public WebSessionLogInfo getSessionInfo() { + return sessionInfo; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param userAgent Information on the hosting device. Must not be {@code + * null}. + * @param os Information on the hosting operating system. Must not be + * {@code null}. + * @param browser Information on the browser used for this web session. + * Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String userAgent, String os, String browser) { + return new Builder(userAgent, os, browser); + } + + /** + * Builder for {@link WebDeviceSessionLogInfo}. + */ + public static class Builder extends DeviceSessionLogInfo.Builder { + protected final String userAgent; + protected final String os; + protected final String browser; + + protected WebSessionLogInfo sessionInfo; + + protected Builder(String userAgent, String os, String browser) { + if (userAgent == null) { + throw new IllegalArgumentException("Required value for 'userAgent' is null"); + } + this.userAgent = userAgent; + if (os == null) { + throw new IllegalArgumentException("Required value for 'os' is null"); + } + this.os = os; + if (browser == null) { + throw new IllegalArgumentException("Required value for 'browser' is null"); + } + this.browser = browser; + this.sessionInfo = null; + } + + /** + * Set value for optional field. + * + * @param sessionInfo Web session unique id. + * + * @return this builder + */ + public Builder withSessionInfo(WebSessionLogInfo sessionInfo) { + this.sessionInfo = sessionInfo; + return this; + } + + /** + * Set value for optional field. + * + * @param ipAddress The IP address of the last activity from this + * session. + * + * @return this builder + */ + public Builder withIpAddress(String ipAddress) { + super.withIpAddress(ipAddress); + return this; + } + + /** + * Set value for optional field. + * + * @param created The time this session was created. + * + * @return this builder + */ + public Builder withCreated(Date created) { + super.withCreated(created); + return this; + } + + /** + * Set value for optional field. + * + * @param updated The time of the last activity from this session. + * + * @return this builder + */ + public Builder withUpdated(Date updated) { + super.withUpdated(updated); + return this; + } + + /** + * Builds an instance of {@link WebDeviceSessionLogInfo} configured with + * this builder's values + * + * @return new instance of {@link WebDeviceSessionLogInfo} + */ + public WebDeviceSessionLogInfo build() { + return new WebDeviceSessionLogInfo(userAgent, os, browser, ipAddress, created, updated, sessionInfo); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sessionInfo, + this.userAgent, + this.os, + this.browser + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebDeviceSessionLogInfo other = (WebDeviceSessionLogInfo) obj; + return ((this.userAgent == other.userAgent) || (this.userAgent.equals(other.userAgent))) + && ((this.os == other.os) || (this.os.equals(other.os))) + && ((this.browser == other.browser) || (this.browser.equals(other.browser))) + && ((this.ipAddress == other.ipAddress) || (this.ipAddress != null && this.ipAddress.equals(other.ipAddress))) + && ((this.created == other.created) || (this.created != null && this.created.equals(other.created))) + && ((this.updated == other.updated) || (this.updated != null && this.updated.equals(other.updated))) + && ((this.sessionInfo == other.sessionInfo) || (this.sessionInfo != null && this.sessionInfo.equals(other.sessionInfo))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebDeviceSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("web_device_session", g); + g.writeFieldName("user_agent"); + StoneSerializers.string().serialize(value.userAgent, g); + g.writeFieldName("os"); + StoneSerializers.string().serialize(value.os, g); + g.writeFieldName("browser"); + StoneSerializers.string().serialize(value.browser, g); + if (value.ipAddress != null) { + g.writeFieldName("ip_address"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.ipAddress, g); + } + if (value.created != null) { + g.writeFieldName("created"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.created, g); + } + if (value.updated != null) { + g.writeFieldName("updated"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.updated, g); + } + if (value.sessionInfo != null) { + g.writeFieldName("session_info"); + StoneSerializers.nullableStruct(WebSessionLogInfo.Serializer.INSTANCE).serialize(value.sessionInfo, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebDeviceSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebDeviceSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("web_device_session".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_userAgent = null; + String f_os = null; + String f_browser = null; + String f_ipAddress = null; + Date f_created = null; + Date f_updated = null; + WebSessionLogInfo f_sessionInfo = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("user_agent".equals(field)) { + f_userAgent = StoneSerializers.string().deserialize(p); + } + else if ("os".equals(field)) { + f_os = StoneSerializers.string().deserialize(p); + } + else if ("browser".equals(field)) { + f_browser = StoneSerializers.string().deserialize(p); + } + else if ("ip_address".equals(field)) { + f_ipAddress = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("created".equals(field)) { + f_created = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("updated".equals(field)) { + f_updated = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("session_info".equals(field)) { + f_sessionInfo = StoneSerializers.nullableStruct(WebSessionLogInfo.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_userAgent == null) { + throw new JsonParseException(p, "Required field \"user_agent\" missing."); + } + if (f_os == null) { + throw new JsonParseException(p, "Required field \"os\" missing."); + } + if (f_browser == null) { + throw new JsonParseException(p, "Required field \"browser\" missing."); + } + value = new WebDeviceSessionLogInfo(f_userAgent, f_os, f_browser, f_ipAddress, f_created, f_updated, f_sessionInfo); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionLogInfo.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionLogInfo.java new file mode 100644 index 000000000..bb9413453 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionLogInfo.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Web session. + */ +public class WebSessionLogInfo extends SessionLogInfo { + // struct team_log.WebSessionLogInfo (team_log_generated.stone) + + + /** + * Web session. + * + * @param sessionId Session ID. + */ + public WebSessionLogInfo(@Nullable String sessionId) { + super(sessionId); + } + + /** + * Web session. + * + *

The default values for unset fields will be used.

+ */ + public WebSessionLogInfo() { + this(null); + } + + /** + * Session ID. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getSessionId() { + return sessionId; + } + + @Override + public int hashCode() { + // attempt to deal with inheritance + return getClass().toString().hashCode(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebSessionLogInfo other = (WebSessionLogInfo) obj; + return (this.sessionId == other.sessionId) || (this.sessionId != null && this.sessionId.equals(other.sessionId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionLogInfo value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("web", g); + if (value.sessionId != null) { + g.writeFieldName("session_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.sessionId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebSessionLogInfo deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebSessionLogInfo value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("web".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_sessionId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + value = new WebSessionLogInfo(f_sessionId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitDetails.java new file mode 100644 index 000000000..a2faf0cc0 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitDetails.java @@ -0,0 +1,182 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Changed limit on active sessions per member. + */ +public class WebSessionsChangeActiveSessionLimitDetails { + // struct team_log.WebSessionsChangeActiveSessionLimitDetails (team_log_generated.stone) + + @Nonnull + protected final String previousValue; + @Nonnull + protected final String newValue; + + /** + * Changed limit on active sessions per member. + * + * @param previousValue Previous max number of concurrent active sessions + * policy. Must not be {@code null}. + * @param newValue New max number of concurrent active sessions policy. + * Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WebSessionsChangeActiveSessionLimitDetails(@Nonnull String previousValue, @Nonnull String newValue) { + if (previousValue == null) { + throw new IllegalArgumentException("Required value for 'previousValue' is null"); + } + this.previousValue = previousValue; + if (newValue == null) { + throw new IllegalArgumentException("Required value for 'newValue' is null"); + } + this.newValue = newValue; + } + + /** + * Previous max number of concurrent active sessions policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getPreviousValue() { + return previousValue; + } + + /** + * New max number of concurrent active sessions policy. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getNewValue() { + return newValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.previousValue, + this.newValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebSessionsChangeActiveSessionLimitDetails other = (WebSessionsChangeActiveSessionLimitDetails) obj; + return ((this.previousValue == other.previousValue) || (this.previousValue.equals(other.previousValue))) + && ((this.newValue == other.newValue) || (this.newValue.equals(other.newValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsChangeActiveSessionLimitDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("previous_value"); + StoneSerializers.string().serialize(value.previousValue, g); + g.writeFieldName("new_value"); + StoneSerializers.string().serialize(value.newValue, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebSessionsChangeActiveSessionLimitDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebSessionsChangeActiveSessionLimitDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_previousValue = null; + String f_newValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.string().deserialize(p); + } + else if ("new_value".equals(field)) { + f_newValue = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_previousValue == null) { + throw new JsonParseException(p, "Required field \"previous_value\" missing."); + } + if (f_newValue == null) { + throw new JsonParseException(p, "Required field \"new_value\" missing."); + } + value = new WebSessionsChangeActiveSessionLimitDetails(f_previousValue, f_newValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitType.java new file mode 100644 index 000000000..6f9a0a58c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeActiveSessionLimitType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class WebSessionsChangeActiveSessionLimitType { + // struct team_log.WebSessionsChangeActiveSessionLimitType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WebSessionsChangeActiveSessionLimitType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebSessionsChangeActiveSessionLimitType other = (WebSessionsChangeActiveSessionLimitType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsChangeActiveSessionLimitType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebSessionsChangeActiveSessionLimitType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebSessionsChangeActiveSessionLimitType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new WebSessionsChangeActiveSessionLimitType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails.java new file mode 100644 index 000000000..6e13a86c8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyDetails.java @@ -0,0 +1,246 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed how long members can stay signed in to Dropbox.com. + */ +public class WebSessionsChangeFixedLengthPolicyDetails { + // struct team_log.WebSessionsChangeFixedLengthPolicyDetails (team_log_generated.stone) + + @Nullable + protected final WebSessionsFixedLengthPolicy newValue; + @Nullable + protected final WebSessionsFixedLengthPolicy previousValue; + + /** + * Changed how long members can stay signed in to Dropbox.com. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New session length policy. Might be missing due to + * historical data gap. + * @param previousValue Previous session length policy. Might be missing + * due to historical data gap. + */ + public WebSessionsChangeFixedLengthPolicyDetails(@Nullable WebSessionsFixedLengthPolicy newValue, @Nullable WebSessionsFixedLengthPolicy previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed how long members can stay signed in to Dropbox.com. + * + *

The default values for unset fields will be used.

+ */ + public WebSessionsChangeFixedLengthPolicyDetails() { + this(null, null); + } + + /** + * New session length policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public WebSessionsFixedLengthPolicy getNewValue() { + return newValue; + } + + /** + * Previous session length policy. Might be missing due to historical data + * gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public WebSessionsFixedLengthPolicy getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link WebSessionsChangeFixedLengthPolicyDetails}. + */ + public static class Builder { + + protected WebSessionsFixedLengthPolicy newValue; + protected WebSessionsFixedLengthPolicy previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New session length policy. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withNewValue(WebSessionsFixedLengthPolicy newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous session length policy. Might be + * missing due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(WebSessionsFixedLengthPolicy previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link + * WebSessionsChangeFixedLengthPolicyDetails} configured with this + * builder's values + * + * @return new instance of {@link + * WebSessionsChangeFixedLengthPolicyDetails} + */ + public WebSessionsChangeFixedLengthPolicyDetails build() { + return new WebSessionsChangeFixedLengthPolicyDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebSessionsChangeFixedLengthPolicyDetails other = (WebSessionsChangeFixedLengthPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsChangeFixedLengthPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(WebSessionsFixedLengthPolicy.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(WebSessionsFixedLengthPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebSessionsChangeFixedLengthPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebSessionsChangeFixedLengthPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + WebSessionsFixedLengthPolicy f_newValue = null; + WebSessionsFixedLengthPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(WebSessionsFixedLengthPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(WebSessionsFixedLengthPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new WebSessionsChangeFixedLengthPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyType.java new file mode 100644 index 000000000..248db6d42 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeFixedLengthPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class WebSessionsChangeFixedLengthPolicyType { + // struct team_log.WebSessionsChangeFixedLengthPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WebSessionsChangeFixedLengthPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebSessionsChangeFixedLengthPolicyType other = (WebSessionsChangeFixedLengthPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsChangeFixedLengthPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebSessionsChangeFixedLengthPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebSessionsChangeFixedLengthPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new WebSessionsChangeFixedLengthPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails.java new file mode 100644 index 000000000..aaf562f28 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyDetails.java @@ -0,0 +1,245 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Changed how long team members can be idle while signed in to Dropbox.com. + */ +public class WebSessionsChangeIdleLengthPolicyDetails { + // struct team_log.WebSessionsChangeIdleLengthPolicyDetails (team_log_generated.stone) + + @Nullable + protected final WebSessionsIdleLengthPolicy newValue; + @Nullable + protected final WebSessionsIdleLengthPolicy previousValue; + + /** + * Changed how long team members can be idle while signed in to Dropbox.com. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param newValue New idle length policy. Might be missing due to + * historical data gap. + * @param previousValue Previous idle length policy. Might be missing due + * to historical data gap. + */ + public WebSessionsChangeIdleLengthPolicyDetails(@Nullable WebSessionsIdleLengthPolicy newValue, @Nullable WebSessionsIdleLengthPolicy previousValue) { + this.newValue = newValue; + this.previousValue = previousValue; + } + + /** + * Changed how long team members can be idle while signed in to Dropbox.com. + * + *

The default values for unset fields will be used.

+ */ + public WebSessionsChangeIdleLengthPolicyDetails() { + this(null, null); + } + + /** + * New idle length policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public WebSessionsIdleLengthPolicy getNewValue() { + return newValue; + } + + /** + * Previous idle length policy. Might be missing due to historical data gap. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public WebSessionsIdleLengthPolicy getPreviousValue() { + return previousValue; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @return builder for this class. + */ + public static Builder newBuilder() { + return new Builder(); + } + + /** + * Builder for {@link WebSessionsChangeIdleLengthPolicyDetails}. + */ + public static class Builder { + + protected WebSessionsIdleLengthPolicy newValue; + protected WebSessionsIdleLengthPolicy previousValue; + + protected Builder() { + this.newValue = null; + this.previousValue = null; + } + + /** + * Set value for optional field. + * + * @param newValue New idle length policy. Might be missing due to + * historical data gap. + * + * @return this builder + */ + public Builder withNewValue(WebSessionsIdleLengthPolicy newValue) { + this.newValue = newValue; + return this; + } + + /** + * Set value for optional field. + * + * @param previousValue Previous idle length policy. Might be missing + * due to historical data gap. + * + * @return this builder + */ + public Builder withPreviousValue(WebSessionsIdleLengthPolicy previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * Builds an instance of {@link + * WebSessionsChangeIdleLengthPolicyDetails} configured with this + * builder's values + * + * @return new instance of {@link + * WebSessionsChangeIdleLengthPolicyDetails} + */ + public WebSessionsChangeIdleLengthPolicyDetails build() { + return new WebSessionsChangeIdleLengthPolicyDetails(newValue, previousValue); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.newValue, + this.previousValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebSessionsChangeIdleLengthPolicyDetails other = (WebSessionsChangeIdleLengthPolicyDetails) obj; + return ((this.newValue == other.newValue) || (this.newValue != null && this.newValue.equals(other.newValue))) + && ((this.previousValue == other.previousValue) || (this.previousValue != null && this.previousValue.equals(other.previousValue))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsChangeIdleLengthPolicyDetails value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + if (value.newValue != null) { + g.writeFieldName("new_value"); + StoneSerializers.nullable(WebSessionsIdleLengthPolicy.Serializer.INSTANCE).serialize(value.newValue, g); + } + if (value.previousValue != null) { + g.writeFieldName("previous_value"); + StoneSerializers.nullable(WebSessionsIdleLengthPolicy.Serializer.INSTANCE).serialize(value.previousValue, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebSessionsChangeIdleLengthPolicyDetails deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebSessionsChangeIdleLengthPolicyDetails value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + WebSessionsIdleLengthPolicy f_newValue = null; + WebSessionsIdleLengthPolicy f_previousValue = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("new_value".equals(field)) { + f_newValue = StoneSerializers.nullable(WebSessionsIdleLengthPolicy.Serializer.INSTANCE).deserialize(p); + } + else if ("previous_value".equals(field)) { + f_previousValue = StoneSerializers.nullable(WebSessionsIdleLengthPolicy.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + value = new WebSessionsChangeIdleLengthPolicyDetails(f_newValue, f_previousValue); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyType.java new file mode 100644 index 000000000..01b81d3b2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsChangeIdleLengthPolicyType.java @@ -0,0 +1,146 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class WebSessionsChangeIdleLengthPolicyType { + // struct team_log.WebSessionsChangeIdleLengthPolicyType (team_log_generated.stone) + + @Nonnull + protected final String description; + + /** + * + * @param description Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public WebSessionsChangeIdleLengthPolicyType(@Nonnull String description) { + if (description == null) { + throw new IllegalArgumentException("Required value for 'description' is null"); + } + this.description = description; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDescription() { + return description; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.description + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WebSessionsChangeIdleLengthPolicyType other = (WebSessionsChangeIdleLengthPolicyType) obj; + return (this.description == other.description) || (this.description.equals(other.description)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsChangeIdleLengthPolicyType value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("description"); + StoneSerializers.string().serialize(value.description, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WebSessionsChangeIdleLengthPolicyType deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WebSessionsChangeIdleLengthPolicyType value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_description = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("description".equals(field)) { + f_description = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_description == null) { + throw new JsonParseException(p, "Required field \"description\" missing."); + } + value = new WebSessionsChangeIdleLengthPolicyType(f_description); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy.java new file mode 100644 index 000000000..f61c6a29d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsFixedLengthPolicy.java @@ -0,0 +1,313 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Web sessions fixed length policy. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class WebSessionsFixedLengthPolicy { + // union team_log.WebSessionsFixedLengthPolicy (team_log_generated.stone) + + /** + * Discriminating tag type for {@link WebSessionsFixedLengthPolicy}. + */ + public enum Tag { + /** + * Defined fixed session length. + */ + DEFINED, // DurationLogInfo + /** + * Undefined fixed session length. + */ + UNDEFINED, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Undefined fixed session length. + */ + public static final WebSessionsFixedLengthPolicy UNDEFINED = new WebSessionsFixedLengthPolicy().withTag(Tag.UNDEFINED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final WebSessionsFixedLengthPolicy OTHER = new WebSessionsFixedLengthPolicy().withTag(Tag.OTHER); + + private Tag _tag; + private DurationLogInfo definedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private WebSessionsFixedLengthPolicy() { + } + + + /** + * Web sessions fixed length policy. + * + * @param _tag Discriminating tag for this instance. + */ + private WebSessionsFixedLengthPolicy withTag(Tag _tag) { + WebSessionsFixedLengthPolicy result = new WebSessionsFixedLengthPolicy(); + result._tag = _tag; + return result; + } + + /** + * Web sessions fixed length policy. + * + * @param definedValue Defined fixed session length. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private WebSessionsFixedLengthPolicy withTagAndDefined(Tag _tag, DurationLogInfo definedValue) { + WebSessionsFixedLengthPolicy result = new WebSessionsFixedLengthPolicy(); + result._tag = _tag; + result.definedValue = definedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code WebSessionsFixedLengthPolicy}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#DEFINED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#DEFINED}, + * {@code false} otherwise. + */ + public boolean isDefined() { + return this._tag == Tag.DEFINED; + } + + /** + * Returns an instance of {@code WebSessionsFixedLengthPolicy} that has its + * tag set to {@link Tag#DEFINED}. + * + *

Defined fixed session length.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code WebSessionsFixedLengthPolicy} with its tag set + * to {@link Tag#DEFINED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static WebSessionsFixedLengthPolicy defined(DurationLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new WebSessionsFixedLengthPolicy().withTagAndDefined(Tag.DEFINED, value); + } + + /** + * Defined fixed session length. + * + *

This instance must be tagged as {@link Tag#DEFINED}.

+ * + * @return The {@link DurationLogInfo} value associated with this instance + * if {@link #isDefined} is {@code true}. + * + * @throws IllegalStateException If {@link #isDefined} is {@code false}. + */ + public DurationLogInfo getDefinedValue() { + if (this._tag != Tag.DEFINED) { + throw new IllegalStateException("Invalid tag: required Tag.DEFINED, but was Tag." + this._tag.name()); + } + return definedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#UNDEFINED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#UNDEFINED}, + * {@code false} otherwise. + */ + public boolean isUndefined() { + return this._tag == Tag.UNDEFINED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.definedValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof WebSessionsFixedLengthPolicy) { + WebSessionsFixedLengthPolicy other = (WebSessionsFixedLengthPolicy) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case DEFINED: + return (this.definedValue == other.definedValue) || (this.definedValue.equals(other.definedValue)); + case UNDEFINED: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsFixedLengthPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case DEFINED: { + g.writeStartObject(); + writeTag("defined", g); + DurationLogInfo.Serializer.INSTANCE.serialize(value.definedValue, g, true); + g.writeEndObject(); + break; + } + case UNDEFINED: { + g.writeString("undefined"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public WebSessionsFixedLengthPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + WebSessionsFixedLengthPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("defined".equals(tag)) { + DurationLogInfo fieldValue = null; + fieldValue = DurationLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = WebSessionsFixedLengthPolicy.defined(fieldValue); + } + else if ("undefined".equals(tag)) { + value = WebSessionsFixedLengthPolicy.UNDEFINED; + } + else { + value = WebSessionsFixedLengthPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy.java new file mode 100644 index 000000000..189d48986 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/WebSessionsIdleLengthPolicy.java @@ -0,0 +1,313 @@ +/* DO NOT EDIT */ +/* This file was generated from team_log_generated.stone */ + +package com.dropbox.core.v2.teamlog; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Web sessions idle length policy. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class WebSessionsIdleLengthPolicy { + // union team_log.WebSessionsIdleLengthPolicy (team_log_generated.stone) + + /** + * Discriminating tag type for {@link WebSessionsIdleLengthPolicy}. + */ + public enum Tag { + /** + * Defined idle session length. + */ + DEFINED, // DurationLogInfo + /** + * Undefined idle session length. + */ + UNDEFINED, + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Undefined idle session length. + */ + public static final WebSessionsIdleLengthPolicy UNDEFINED = new WebSessionsIdleLengthPolicy().withTag(Tag.UNDEFINED); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final WebSessionsIdleLengthPolicy OTHER = new WebSessionsIdleLengthPolicy().withTag(Tag.OTHER); + + private Tag _tag; + private DurationLogInfo definedValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private WebSessionsIdleLengthPolicy() { + } + + + /** + * Web sessions idle length policy. + * + * @param _tag Discriminating tag for this instance. + */ + private WebSessionsIdleLengthPolicy withTag(Tag _tag) { + WebSessionsIdleLengthPolicy result = new WebSessionsIdleLengthPolicy(); + result._tag = _tag; + return result; + } + + /** + * Web sessions idle length policy. + * + * @param definedValue Defined idle session length. Must not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private WebSessionsIdleLengthPolicy withTagAndDefined(Tag _tag, DurationLogInfo definedValue) { + WebSessionsIdleLengthPolicy result = new WebSessionsIdleLengthPolicy(); + result._tag = _tag; + result.definedValue = definedValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code WebSessionsIdleLengthPolicy}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#DEFINED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#DEFINED}, + * {@code false} otherwise. + */ + public boolean isDefined() { + return this._tag == Tag.DEFINED; + } + + /** + * Returns an instance of {@code WebSessionsIdleLengthPolicy} that has its + * tag set to {@link Tag#DEFINED}. + * + *

Defined idle session length.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code WebSessionsIdleLengthPolicy} with its tag set + * to {@link Tag#DEFINED}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static WebSessionsIdleLengthPolicy defined(DurationLogInfo value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new WebSessionsIdleLengthPolicy().withTagAndDefined(Tag.DEFINED, value); + } + + /** + * Defined idle session length. + * + *

This instance must be tagged as {@link Tag#DEFINED}.

+ * + * @return The {@link DurationLogInfo} value associated with this instance + * if {@link #isDefined} is {@code true}. + * + * @throws IllegalStateException If {@link #isDefined} is {@code false}. + */ + public DurationLogInfo getDefinedValue() { + if (this._tag != Tag.DEFINED) { + throw new IllegalStateException("Invalid tag: required Tag.DEFINED, but was Tag." + this._tag.name()); + } + return definedValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#UNDEFINED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#UNDEFINED}, + * {@code false} otherwise. + */ + public boolean isUndefined() { + return this._tag == Tag.UNDEFINED; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.definedValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof WebSessionsIdleLengthPolicy) { + WebSessionsIdleLengthPolicy other = (WebSessionsIdleLengthPolicy) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case DEFINED: + return (this.definedValue == other.definedValue) || (this.definedValue.equals(other.definedValue)); + case UNDEFINED: + return true; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WebSessionsIdleLengthPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case DEFINED: { + g.writeStartObject(); + writeTag("defined", g); + DurationLogInfo.Serializer.INSTANCE.serialize(value.definedValue, g, true); + g.writeEndObject(); + break; + } + case UNDEFINED: { + g.writeString("undefined"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public WebSessionsIdleLengthPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + WebSessionsIdleLengthPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("defined".equals(tag)) { + DurationLogInfo fieldValue = null; + fieldValue = DurationLogInfo.Serializer.INSTANCE.deserialize(p, true); + value = WebSessionsIdleLengthPolicy.defined(fieldValue); + } + else if ("undefined".equals(tag)) { + value = WebSessionsIdleLengthPolicy.UNDEFINED; + } + else { + value = WebSessionsIdleLengthPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/package-info.java new file mode 100644 index 000000000..18f0a3720 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/package-info.java @@ -0,0 +1,9 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.v2.teamlog.DbxTeamTeamLogRequests} for a list of + * possible requests for this namespace. + */ +package com.dropbox.core.v2.teamlog; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/EmmState.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/EmmState.java new file mode 100644 index 000000000..0d5b1a441 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/EmmState.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum EmmState { + // union team_policies.EmmState (team_policies.stone) + /** + * Emm token is disabled. + */ + DISABLED, + /** + * Emm token is optional. + */ + OPTIONAL, + /** + * Emm token is required. + */ + REQUIRED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(EmmState value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case OPTIONAL: { + g.writeString("optional"); + break; + } + case REQUIRED: { + g.writeString("required"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public EmmState deserialize(JsonParser p) throws IOException, JsonParseException { + EmmState value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = EmmState.DISABLED; + } + else if ("optional".equals(tag)) { + value = EmmState.OPTIONAL; + } + else if ("required".equals(tag)) { + value = EmmState.REQUIRED; + } + else { + value = EmmState.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/FileLockingPolicyState.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/FileLockingPolicyState.java new file mode 100644 index 000000000..93f0b91db --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/FileLockingPolicyState.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum FileLockingPolicyState { + // union team_policies.FileLockingPolicyState (team_policies.stone) + /** + * File locking feature is disabled. + */ + DISABLED, + /** + * File locking feature is allowed. + */ + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockingPolicyState value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileLockingPolicyState deserialize(JsonParser p) throws IOException, JsonParseException { + FileLockingPolicyState value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = FileLockingPolicyState.DISABLED; + } + else if ("enabled".equals(tag)) { + value = FileLockingPolicyState.ENABLED; + } + else { + value = FileLockingPolicyState.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState.java new file mode 100644 index 000000000..32036df86 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/FileProviderMigrationPolicyState.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum FileProviderMigrationPolicyState { + // union team_policies.FileProviderMigrationPolicyState (team_policies.stone) + /** + * Team admin has opted out of File Provider Migration for team members. + */ + DISABLED, + /** + * Team admin has not opted out of File Provider Migration for team members. + */ + ENABLED, + /** + * Team admin has default value based on team tier. + */ + DEFAULT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileProviderMigrationPolicyState value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + case DEFAULT: { + g.writeString("default"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileProviderMigrationPolicyState deserialize(JsonParser p) throws IOException, JsonParseException { + FileProviderMigrationPolicyState value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = FileProviderMigrationPolicyState.DISABLED; + } + else if ("enabled".equals(tag)) { + value = FileProviderMigrationPolicyState.ENABLED; + } + else if ("default".equals(tag)) { + value = FileProviderMigrationPolicyState.DEFAULT; + } + else { + value = FileProviderMigrationPolicyState.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/GroupCreation.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/GroupCreation.java new file mode 100644 index 000000000..53cd004b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/GroupCreation.java @@ -0,0 +1,87 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GroupCreation { + // union team_policies.GroupCreation (team_policies.stone) + /** + * Team admins and members can create groups. + */ + ADMINS_AND_MEMBERS, + /** + * Only team admins can create groups. + */ + ADMINS_ONLY; + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GroupCreation value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ADMINS_AND_MEMBERS: { + g.writeString("admins_and_members"); + break; + } + case ADMINS_ONLY: { + g.writeString("admins_only"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public GroupCreation deserialize(JsonParser p) throws IOException, JsonParseException { + GroupCreation value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("admins_and_members".equals(tag)) { + value = GroupCreation.ADMINS_AND_MEMBERS; + } + else if ("admins_only".equals(tag)) { + value = GroupCreation.ADMINS_ONLY; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/OfficeAddInPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/OfficeAddInPolicy.java new file mode 100644 index 000000000..5fd682e17 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/OfficeAddInPolicy.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum OfficeAddInPolicy { + // union team_policies.OfficeAddInPolicy (team_policies.stone) + /** + * Office Add-In is disabled. + */ + DISABLED, + /** + * Office Add-In is enabled. + */ + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(OfficeAddInPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public OfficeAddInPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + OfficeAddInPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = OfficeAddInPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = OfficeAddInPolicy.ENABLED; + } + else { + value = OfficeAddInPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PaperDeploymentPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PaperDeploymentPolicy.java new file mode 100644 index 000000000..b50bb28a7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PaperDeploymentPolicy.java @@ -0,0 +1,96 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperDeploymentPolicy { + // union team_policies.PaperDeploymentPolicy (team_policies.stone) + /** + * All team members have access to Paper. + */ + FULL, + /** + * Only whitelisted team members can access Paper. To see which user is + * whitelisted, check 'is_paper_whitelisted' on 'account/info'. + */ + PARTIAL, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperDeploymentPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FULL: { + g.writeString("full"); + break; + } + case PARTIAL: { + g.writeString("partial"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperDeploymentPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PaperDeploymentPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("full".equals(tag)) { + value = PaperDeploymentPolicy.FULL; + } + else if ("partial".equals(tag)) { + value = PaperDeploymentPolicy.PARTIAL; + } + else { + value = PaperDeploymentPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PaperEnabledPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PaperEnabledPolicy.java new file mode 100644 index 000000000..ee138e990 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PaperEnabledPolicy.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PaperEnabledPolicy { + // union team_policies.PaperEnabledPolicy (team_policies.stone) + /** + * Paper is disabled. + */ + DISABLED, + /** + * Paper is enabled. + */ + ENABLED, + /** + * Unspecified policy. + */ + UNSPECIFIED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperEnabledPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + case UNSPECIFIED: { + g.writeString("unspecified"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperEnabledPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PaperEnabledPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = PaperEnabledPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = PaperEnabledPolicy.ENABLED; + } + else if ("unspecified".equals(tag)) { + value = PaperEnabledPolicy.UNSPECIFIED; + } + else { + value = PaperEnabledPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PasswordStrengthPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PasswordStrengthPolicy.java new file mode 100644 index 000000000..542a9c671 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/PasswordStrengthPolicy.java @@ -0,0 +1,106 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum PasswordStrengthPolicy { + // union team_policies.PasswordStrengthPolicy (team_policies.stone) + /** + * User passwords will adhere to the minimal password strength policy. + */ + MINIMAL_REQUIREMENTS, + /** + * User passwords will adhere to the moderate password strength policy. + */ + MODERATE_PASSWORD, + /** + * User passwords will adhere to the very strong password strength policy. + */ + STRONG_PASSWORD, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PasswordStrengthPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case MINIMAL_REQUIREMENTS: { + g.writeString("minimal_requirements"); + break; + } + case MODERATE_PASSWORD: { + g.writeString("moderate_password"); + break; + } + case STRONG_PASSWORD: { + g.writeString("strong_password"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PasswordStrengthPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + PasswordStrengthPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("minimal_requirements".equals(tag)) { + value = PasswordStrengthPolicy.MINIMAL_REQUIREMENTS; + } + else if ("moderate_password".equals(tag)) { + value = PasswordStrengthPolicy.MODERATE_PASSWORD; + } + else if ("strong_password".equals(tag)) { + value = PasswordStrengthPolicy.STRONG_PASSWORD; + } + else { + value = PasswordStrengthPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/RolloutMethod.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/RolloutMethod.java new file mode 100644 index 000000000..f6e9bf61b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/RolloutMethod.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum RolloutMethod { + // union team_policies.RolloutMethod (team_policies.stone) + /** + * Unlink all. + */ + UNLINK_ALL, + /** + * Unlink devices with the most inactivity. + */ + UNLINK_MOST_INACTIVE, + /** + * Add member to Exceptions. + */ + ADD_MEMBER_TO_EXCEPTIONS; + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(RolloutMethod value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case UNLINK_ALL: { + g.writeString("unlink_all"); + break; + } + case UNLINK_MOST_INACTIVE: { + g.writeString("unlink_most_inactive"); + break; + } + case ADD_MEMBER_TO_EXCEPTIONS: { + g.writeString("add_member_to_exceptions"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public RolloutMethod deserialize(JsonParser p) throws IOException, JsonParseException { + RolloutMethod value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("unlink_all".equals(tag)) { + value = RolloutMethod.UNLINK_ALL; + } + else if ("unlink_most_inactive".equals(tag)) { + value = RolloutMethod.UNLINK_MOST_INACTIVE; + } + else if ("add_member_to_exceptions".equals(tag)) { + value = RolloutMethod.ADD_MEMBER_TO_EXCEPTIONS; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy.java new file mode 100644 index 000000000..52085b863 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderBlanketLinkRestrictionPolicy.java @@ -0,0 +1,99 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy governing whether shared folder membership is required to access + * shared links. + */ +public enum SharedFolderBlanketLinkRestrictionPolicy { + // union team_policies.SharedFolderBlanketLinkRestrictionPolicy (team_policies.stone) + /** + * Only members of shared folders can access folder content via shared link. + */ + MEMBERS, + /** + * Anyone can access folder content via shared link. + */ + ANYONE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderBlanketLinkRestrictionPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case MEMBERS: { + g.writeString("members"); + break; + } + case ANYONE: { + g.writeString("anyone"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedFolderBlanketLinkRestrictionPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharedFolderBlanketLinkRestrictionPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("members".equals(tag)) { + value = SharedFolderBlanketLinkRestrictionPolicy.MEMBERS; + } + else if ("anyone".equals(tag)) { + value = SharedFolderBlanketLinkRestrictionPolicy.ANYONE; + } + else { + value = SharedFolderBlanketLinkRestrictionPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy.java new file mode 100644 index 000000000..67b1a2169 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderJoinPolicy.java @@ -0,0 +1,99 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy governing which shared folders a team member can join. + */ +public enum SharedFolderJoinPolicy { + // union team_policies.SharedFolderJoinPolicy (team_policies.stone) + /** + * Team members can only join folders shared by teammates. + */ + FROM_TEAM_ONLY, + /** + * Team members can join any shared folder, including those shared by users + * outside the team. + */ + FROM_ANYONE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderJoinPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case FROM_TEAM_ONLY: { + g.writeString("from_team_only"); + break; + } + case FROM_ANYONE: { + g.writeString("from_anyone"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedFolderJoinPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharedFolderJoinPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("from_team_only".equals(tag)) { + value = SharedFolderJoinPolicy.FROM_TEAM_ONLY; + } + else if ("from_anyone".equals(tag)) { + value = SharedFolderJoinPolicy.FROM_ANYONE; + } + else { + value = SharedFolderJoinPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy.java new file mode 100644 index 000000000..35306dee9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedFolderMemberPolicy.java @@ -0,0 +1,98 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy governing who can be a member of a folder shared by a team member. + */ +public enum SharedFolderMemberPolicy { + // union team_policies.SharedFolderMemberPolicy (team_policies.stone) + /** + * Only a teammate can be a member of a folder shared by a team member. + */ + TEAM, + /** + * Anyone can be a member of a folder shared by a team member. + */ + ANYONE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedFolderMemberPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case TEAM: { + g.writeString("team"); + break; + } + case ANYONE: { + g.writeString("anyone"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedFolderMemberPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharedFolderMemberPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("team".equals(tag)) { + value = SharedFolderMemberPolicy.TEAM; + } + else if ("anyone".equals(tag)) { + value = SharedFolderMemberPolicy.ANYONE; + } + else { + value = SharedFolderMemberPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy.java new file mode 100644 index 000000000..6e5fd225a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SharedLinkCreatePolicy.java @@ -0,0 +1,126 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Policy governing the visibility of shared links. This policy can apply to + * newly created shared links, or all shared links. + */ +public enum SharedLinkCreatePolicy { + // union team_policies.SharedLinkCreatePolicy (team_policies.stone) + /** + * By default, anyone can access newly created shared links. No login will + * be required to access the shared links unless overridden. + */ + DEFAULT_PUBLIC, + /** + * By default, only members of the same team can access newly created shared + * links. Login will be required to access the shared links unless + * overridden. + */ + DEFAULT_TEAM_ONLY, + /** + * Only members of the same team can access all shared links. Login will be + * required to access all shared links. + */ + TEAM_ONLY, + /** + * Only people invited can access newly created links. Login will be + * required to access the shared links unless overridden. + */ + DEFAULT_NO_ONE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SharedLinkCreatePolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DEFAULT_PUBLIC: { + g.writeString("default_public"); + break; + } + case DEFAULT_TEAM_ONLY: { + g.writeString("default_team_only"); + break; + } + case TEAM_ONLY: { + g.writeString("team_only"); + break; + } + case DEFAULT_NO_ONE: { + g.writeString("default_no_one"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SharedLinkCreatePolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SharedLinkCreatePolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("default_public".equals(tag)) { + value = SharedLinkCreatePolicy.DEFAULT_PUBLIC; + } + else if ("default_team_only".equals(tag)) { + value = SharedLinkCreatePolicy.DEFAULT_TEAM_ONLY; + } + else if ("team_only".equals(tag)) { + value = SharedLinkCreatePolicy.TEAM_ONLY; + } + else if ("default_no_one".equals(tag)) { + value = SharedLinkCreatePolicy.DEFAULT_NO_ONE; + } + else { + value = SharedLinkCreatePolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SmartSyncPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SmartSyncPolicy.java new file mode 100644 index 000000000..94c8fb6ce --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SmartSyncPolicy.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SmartSyncPolicy { + // union team_policies.SmartSyncPolicy (team_policies.stone) + /** + * The specified content will be synced as local files by default. + */ + LOCAL, + /** + * The specified content will be synced as on-demand files by default. + */ + ON_DEMAND, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmartSyncPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LOCAL: { + g.writeString("local"); + break; + } + case ON_DEMAND: { + g.writeString("on_demand"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SmartSyncPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SmartSyncPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("local".equals(tag)) { + value = SmartSyncPolicy.LOCAL; + } + else if ("on_demand".equals(tag)) { + value = SmartSyncPolicy.ON_DEMAND; + } + else { + value = SmartSyncPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState.java new file mode 100644 index 000000000..d87ba5cb8 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SmarterSmartSyncPolicyState.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SmarterSmartSyncPolicyState { + // union team_policies.SmarterSmartSyncPolicyState (team_policies.stone) + /** + * Smarter Smart Sync feature is disabled. + */ + DISABLED, + /** + * Smarter Smart Sync feature is enabled. + */ + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SmarterSmartSyncPolicyState value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SmarterSmartSyncPolicyState deserialize(JsonParser p) throws IOException, JsonParseException { + SmarterSmartSyncPolicyState value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = SmarterSmartSyncPolicyState.DISABLED; + } + else if ("enabled".equals(tag)) { + value = SmarterSmartSyncPolicyState.ENABLED; + } + else { + value = SmarterSmartSyncPolicyState.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SsoPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SsoPolicy.java new file mode 100644 index 000000000..d979e4cde --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SsoPolicy.java @@ -0,0 +1,107 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SsoPolicy { + // union team_policies.SsoPolicy (team_policies.stone) + /** + * Users will be able to sign in with their Dropbox credentials. + */ + DISABLED, + /** + * Users will be able to sign in with either their Dropbox or single sign-on + * credentials. + */ + OPTIONAL, + /** + * Users will be required to sign in with their single sign-on credentials. + */ + REQUIRED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SsoPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case OPTIONAL: { + g.writeString("optional"); + break; + } + case REQUIRED: { + g.writeString("required"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SsoPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SsoPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = SsoPolicy.DISABLED; + } + else if ("optional".equals(tag)) { + value = SsoPolicy.OPTIONAL; + } + else if ("required".equals(tag)) { + value = SsoPolicy.REQUIRED; + } + else { + value = SsoPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SuggestMembersPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SuggestMembersPolicy.java new file mode 100644 index 000000000..2e2856e24 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/SuggestMembersPolicy.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum SuggestMembersPolicy { + // union team_policies.SuggestMembersPolicy (team_policies.stone) + /** + * Suggest members is disabled. + */ + DISABLED, + /** + * Suggest members is enabled. + */ + ENABLED, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SuggestMembersPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case DISABLED: { + g.writeString("disabled"); + break; + } + case ENABLED: { + g.writeString("enabled"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SuggestMembersPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + SuggestMembersPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("disabled".equals(tag)) { + value = SuggestMembersPolicy.DISABLED; + } + else if ("enabled".equals(tag)) { + value = SuggestMembersPolicy.ENABLED; + } + else { + value = SuggestMembersPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TeamMemberPolicies.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TeamMemberPolicies.java new file mode 100644 index 000000000..bf2da890f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TeamMemberPolicies.java @@ -0,0 +1,250 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Policies governing team members. + */ +public class TeamMemberPolicies { + // struct team_policies.TeamMemberPolicies (team_policies.stone) + + @Nonnull + protected final TeamSharingPolicies sharing; + @Nonnull + protected final EmmState emmState; + @Nonnull + protected final OfficeAddInPolicy officeAddin; + @Nonnull + protected final SuggestMembersPolicy suggestMembersPolicy; + + /** + * Policies governing team members. + * + * @param sharing Policies governing sharing. Must not be {@code null}. + * @param emmState This describes the Enterprise Mobility Management (EMM) + * state for this team. This information can be used to understand if an + * organization is integrating with a third-party EMM vendor to further + * manage and apply restrictions upon the team's Dropbox usage on mobile + * devices. This is a new feature and in the future we'll be adding more + * new fields and additional documentation. Must not be {@code null}. + * @param officeAddin The admin policy around the Dropbox Office Add-In for + * this team. Must not be {@code null}. + * @param suggestMembersPolicy The team policy on if teammembers are + * allowed to suggest users for admins to invite to the team. Must not + * be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamMemberPolicies(@Nonnull TeamSharingPolicies sharing, @Nonnull EmmState emmState, @Nonnull OfficeAddInPolicy officeAddin, @Nonnull SuggestMembersPolicy suggestMembersPolicy) { + if (sharing == null) { + throw new IllegalArgumentException("Required value for 'sharing' is null"); + } + this.sharing = sharing; + if (emmState == null) { + throw new IllegalArgumentException("Required value for 'emmState' is null"); + } + this.emmState = emmState; + if (officeAddin == null) { + throw new IllegalArgumentException("Required value for 'officeAddin' is null"); + } + this.officeAddin = officeAddin; + if (suggestMembersPolicy == null) { + throw new IllegalArgumentException("Required value for 'suggestMembersPolicy' is null"); + } + this.suggestMembersPolicy = suggestMembersPolicy; + } + + /** + * Policies governing sharing. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamSharingPolicies getSharing() { + return sharing; + } + + /** + * This describes the Enterprise Mobility Management (EMM) state for this + * team. This information can be used to understand if an organization is + * integrating with a third-party EMM vendor to further manage and apply + * restrictions upon the team's Dropbox usage on mobile devices. This is a + * new feature and in the future we'll be adding more new fields and + * additional documentation. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public EmmState getEmmState() { + return emmState; + } + + /** + * The admin policy around the Dropbox Office Add-In for this team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public OfficeAddInPolicy getOfficeAddin() { + return officeAddin; + } + + /** + * The team policy on if teammembers are allowed to suggest users for admins + * to invite to the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SuggestMembersPolicy getSuggestMembersPolicy() { + return suggestMembersPolicy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharing, + this.emmState, + this.officeAddin, + this.suggestMembersPolicy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamMemberPolicies other = (TeamMemberPolicies) obj; + return ((this.sharing == other.sharing) || (this.sharing.equals(other.sharing))) + && ((this.emmState == other.emmState) || (this.emmState.equals(other.emmState))) + && ((this.officeAddin == other.officeAddin) || (this.officeAddin.equals(other.officeAddin))) + && ((this.suggestMembersPolicy == other.suggestMembersPolicy) || (this.suggestMembersPolicy.equals(other.suggestMembersPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamMemberPolicies value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("sharing"); + TeamSharingPolicies.Serializer.INSTANCE.serialize(value.sharing, g); + g.writeFieldName("emm_state"); + EmmState.Serializer.INSTANCE.serialize(value.emmState, g); + g.writeFieldName("office_addin"); + OfficeAddInPolicy.Serializer.INSTANCE.serialize(value.officeAddin, g); + g.writeFieldName("suggest_members_policy"); + SuggestMembersPolicy.Serializer.INSTANCE.serialize(value.suggestMembersPolicy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamMemberPolicies deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamMemberPolicies value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + TeamSharingPolicies f_sharing = null; + EmmState f_emmState = null; + OfficeAddInPolicy f_officeAddin = null; + SuggestMembersPolicy f_suggestMembersPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("sharing".equals(field)) { + f_sharing = TeamSharingPolicies.Serializer.INSTANCE.deserialize(p); + } + else if ("emm_state".equals(field)) { + f_emmState = EmmState.Serializer.INSTANCE.deserialize(p); + } + else if ("office_addin".equals(field)) { + f_officeAddin = OfficeAddInPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("suggest_members_policy".equals(field)) { + f_suggestMembersPolicy = SuggestMembersPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharing == null) { + throw new JsonParseException(p, "Required field \"sharing\" missing."); + } + if (f_emmState == null) { + throw new JsonParseException(p, "Required field \"emm_state\" missing."); + } + if (f_officeAddin == null) { + throw new JsonParseException(p, "Required field \"office_addin\" missing."); + } + if (f_suggestMembersPolicy == null) { + throw new JsonParseException(p, "Required field \"suggest_members_policy\" missing."); + } + value = new TeamMemberPolicies(f_sharing, f_emmState, f_officeAddin, f_suggestMembersPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TeamSharingPolicies.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TeamSharingPolicies.java new file mode 100644 index 000000000..4f03bdd54 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TeamSharingPolicies.java @@ -0,0 +1,269 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Policies governing sharing within and outside of the team. + */ +public class TeamSharingPolicies { + // struct team_policies.TeamSharingPolicies (team_policies.stone) + + @Nonnull + protected final SharedFolderMemberPolicy sharedFolderMemberPolicy; + @Nonnull + protected final SharedFolderJoinPolicy sharedFolderJoinPolicy; + @Nonnull + protected final SharedLinkCreatePolicy sharedLinkCreatePolicy; + @Nonnull + protected final GroupCreation groupCreationPolicy; + @Nonnull + protected final SharedFolderBlanketLinkRestrictionPolicy sharedFolderLinkRestrictionPolicy; + + /** + * Policies governing sharing within and outside of the team. + * + * @param sharedFolderMemberPolicy Who can join folders shared by team + * members. Must not be {@code null}. + * @param sharedFolderJoinPolicy Which shared folders team members can + * join. Must not be {@code null}. + * @param sharedLinkCreatePolicy Who can view shared links owned by team + * members. Must not be {@code null}. + * @param groupCreationPolicy Who can create groups. Must not be {@code + * null}. + * @param sharedFolderLinkRestrictionPolicy Who can view links to content + * in shared folders. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSharingPolicies(@Nonnull SharedFolderMemberPolicy sharedFolderMemberPolicy, @Nonnull SharedFolderJoinPolicy sharedFolderJoinPolicy, @Nonnull SharedLinkCreatePolicy sharedLinkCreatePolicy, @Nonnull GroupCreation groupCreationPolicy, @Nonnull SharedFolderBlanketLinkRestrictionPolicy sharedFolderLinkRestrictionPolicy) { + if (sharedFolderMemberPolicy == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderMemberPolicy' is null"); + } + this.sharedFolderMemberPolicy = sharedFolderMemberPolicy; + if (sharedFolderJoinPolicy == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderJoinPolicy' is null"); + } + this.sharedFolderJoinPolicy = sharedFolderJoinPolicy; + if (sharedLinkCreatePolicy == null) { + throw new IllegalArgumentException("Required value for 'sharedLinkCreatePolicy' is null"); + } + this.sharedLinkCreatePolicy = sharedLinkCreatePolicy; + if (groupCreationPolicy == null) { + throw new IllegalArgumentException("Required value for 'groupCreationPolicy' is null"); + } + this.groupCreationPolicy = groupCreationPolicy; + if (sharedFolderLinkRestrictionPolicy == null) { + throw new IllegalArgumentException("Required value for 'sharedFolderLinkRestrictionPolicy' is null"); + } + this.sharedFolderLinkRestrictionPolicy = sharedFolderLinkRestrictionPolicy; + } + + /** + * Who can join folders shared by team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedFolderMemberPolicy getSharedFolderMemberPolicy() { + return sharedFolderMemberPolicy; + } + + /** + * Which shared folders team members can join. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedFolderJoinPolicy getSharedFolderJoinPolicy() { + return sharedFolderJoinPolicy; + } + + /** + * Who can view shared links owned by team members. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedLinkCreatePolicy getSharedLinkCreatePolicy() { + return sharedLinkCreatePolicy; + } + + /** + * Who can create groups. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public GroupCreation getGroupCreationPolicy() { + return groupCreationPolicy; + } + + /** + * Who can view links to content in shared folders. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SharedFolderBlanketLinkRestrictionPolicy getSharedFolderLinkRestrictionPolicy() { + return sharedFolderLinkRestrictionPolicy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharedFolderMemberPolicy, + this.sharedFolderJoinPolicy, + this.sharedLinkCreatePolicy, + this.groupCreationPolicy, + this.sharedFolderLinkRestrictionPolicy + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSharingPolicies other = (TeamSharingPolicies) obj; + return ((this.sharedFolderMemberPolicy == other.sharedFolderMemberPolicy) || (this.sharedFolderMemberPolicy.equals(other.sharedFolderMemberPolicy))) + && ((this.sharedFolderJoinPolicy == other.sharedFolderJoinPolicy) || (this.sharedFolderJoinPolicy.equals(other.sharedFolderJoinPolicy))) + && ((this.sharedLinkCreatePolicy == other.sharedLinkCreatePolicy) || (this.sharedLinkCreatePolicy.equals(other.sharedLinkCreatePolicy))) + && ((this.groupCreationPolicy == other.groupCreationPolicy) || (this.groupCreationPolicy.equals(other.groupCreationPolicy))) + && ((this.sharedFolderLinkRestrictionPolicy == other.sharedFolderLinkRestrictionPolicy) || (this.sharedFolderLinkRestrictionPolicy.equals(other.sharedFolderLinkRestrictionPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSharingPolicies value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("shared_folder_member_policy"); + SharedFolderMemberPolicy.Serializer.INSTANCE.serialize(value.sharedFolderMemberPolicy, g); + g.writeFieldName("shared_folder_join_policy"); + SharedFolderJoinPolicy.Serializer.INSTANCE.serialize(value.sharedFolderJoinPolicy, g); + g.writeFieldName("shared_link_create_policy"); + SharedLinkCreatePolicy.Serializer.INSTANCE.serialize(value.sharedLinkCreatePolicy, g); + g.writeFieldName("group_creation_policy"); + GroupCreation.Serializer.INSTANCE.serialize(value.groupCreationPolicy, g); + g.writeFieldName("shared_folder_link_restriction_policy"); + SharedFolderBlanketLinkRestrictionPolicy.Serializer.INSTANCE.serialize(value.sharedFolderLinkRestrictionPolicy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSharingPolicies deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSharingPolicies value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + SharedFolderMemberPolicy f_sharedFolderMemberPolicy = null; + SharedFolderJoinPolicy f_sharedFolderJoinPolicy = null; + SharedLinkCreatePolicy f_sharedLinkCreatePolicy = null; + GroupCreation f_groupCreationPolicy = null; + SharedFolderBlanketLinkRestrictionPolicy f_sharedFolderLinkRestrictionPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("shared_folder_member_policy".equals(field)) { + f_sharedFolderMemberPolicy = SharedFolderMemberPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_folder_join_policy".equals(field)) { + f_sharedFolderJoinPolicy = SharedFolderJoinPolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_link_create_policy".equals(field)) { + f_sharedLinkCreatePolicy = SharedLinkCreatePolicy.Serializer.INSTANCE.deserialize(p); + } + else if ("group_creation_policy".equals(field)) { + f_groupCreationPolicy = GroupCreation.Serializer.INSTANCE.deserialize(p); + } + else if ("shared_folder_link_restriction_policy".equals(field)) { + f_sharedFolderLinkRestrictionPolicy = SharedFolderBlanketLinkRestrictionPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_sharedFolderMemberPolicy == null) { + throw new JsonParseException(p, "Required field \"shared_folder_member_policy\" missing."); + } + if (f_sharedFolderJoinPolicy == null) { + throw new JsonParseException(p, "Required field \"shared_folder_join_policy\" missing."); + } + if (f_sharedLinkCreatePolicy == null) { + throw new JsonParseException(p, "Required field \"shared_link_create_policy\" missing."); + } + if (f_groupCreationPolicy == null) { + throw new JsonParseException(p, "Required field \"group_creation_policy\" missing."); + } + if (f_sharedFolderLinkRestrictionPolicy == null) { + throw new JsonParseException(p, "Required field \"shared_folder_link_restriction_policy\" missing."); + } + value = new TeamSharingPolicies(f_sharedFolderMemberPolicy, f_sharedFolderJoinPolicy, f_sharedLinkCreatePolicy, f_groupCreationPolicy, f_sharedFolderLinkRestrictionPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy.java new file mode 100644 index 000000000..168b28c2f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/TwoStepVerificationPolicy.java @@ -0,0 +1,95 @@ +/* DO NOT EDIT */ +/* This file was generated from team_policies.stone */ + +package com.dropbox.core.v2.teampolicies; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum TwoStepVerificationPolicy { + // union team_policies.TwoStepVerificationPolicy (team_policies.stone) + /** + * Enabled require two factor authorization. + */ + REQUIRE_TFA_ENABLE, + /** + * Disabled require two factor authorization. + */ + REQUIRE_TFA_DISABLE, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TwoStepVerificationPolicy value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case REQUIRE_TFA_ENABLE: { + g.writeString("require_tfa_enable"); + break; + } + case REQUIRE_TFA_DISABLE: { + g.writeString("require_tfa_disable"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TwoStepVerificationPolicy deserialize(JsonParser p) throws IOException, JsonParseException { + TwoStepVerificationPolicy value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("require_tfa_enable".equals(tag)) { + value = TwoStepVerificationPolicy.REQUIRE_TFA_ENABLE; + } + else if ("require_tfa_disable".equals(tag)) { + value = TwoStepVerificationPolicy.REQUIRE_TFA_DISABLE; + } + else { + value = TwoStepVerificationPolicy.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/package-info.java new file mode 100644 index 000000000..95b690636 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/teampolicies/package-info.java @@ -0,0 +1,7 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + */ +package com.dropbox.core.v2.teampolicies; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Account.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Account.java new file mode 100644 index 000000000..0855056b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Account.java @@ -0,0 +1,317 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * The amount of detail revealed about an account depends on the user being + * queried and the user making the query. + */ +public class Account { + // struct users.Account (users.stone) + + @Nonnull + protected final String accountId; + @Nonnull + protected final Name name; + @Nonnull + protected final String email; + protected final boolean emailVerified; + @Nullable + protected final String profilePhotoUrl; + protected final boolean disabled; + + /** + * The amount of detail revealed about an account depends on the user being + * queried and the user making the query. + * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * @param profilePhotoUrl URL for the photo representing the user, if one + * is set. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Account(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled, @Nullable String profilePhotoUrl) { + if (accountId == null) { + throw new IllegalArgumentException("Required value for 'accountId' is null"); + } + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + this.accountId = accountId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (email == null) { + throw new IllegalArgumentException("Required value for 'email' is null"); + } + this.email = email; + this.emailVerified = emailVerified; + this.profilePhotoUrl = profilePhotoUrl; + this.disabled = disabled; + } + + /** + * The amount of detail revealed about an account depends on the user being + * queried and the user making the query. + * + *

The default values for unset fields will be used.

+ * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Account(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled) { + this(accountId, name, email, emailVerified, disabled, null); + } + + /** + * The user's unique Dropbox ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAccountId() { + return accountId; + } + + /** + * Details of a user's name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Name getName() { + return name; + } + + /** + * The user's email address. Do not rely on this without checking the {@link + * Account#getEmailVerified} field. Even then, it's possible that the user + * has since lost access to their email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEmail() { + return email; + } + + /** + * Whether the user has verified their email address. + * + * @return value for this field. + */ + public boolean getEmailVerified() { + return emailVerified; + } + + /** + * Whether the user has been disabled. + * + * @return value for this field. + */ + public boolean getDisabled() { + return disabled; + } + + /** + * URL for the photo representing the user, if one is set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getProfilePhotoUrl() { + return profilePhotoUrl; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accountId, + this.name, + this.email, + this.emailVerified, + this.profilePhotoUrl, + this.disabled + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Account other = (Account) obj; + return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.email == other.email) || (this.email.equals(other.email))) + && (this.emailVerified == other.emailVerified) + && (this.disabled == other.disabled) + && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + private static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Account value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("account_id"); + StoneSerializers.string().serialize(value.accountId, g); + g.writeFieldName("name"); + Name.Serializer.INSTANCE.serialize(value.name, g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.email, g); + g.writeFieldName("email_verified"); + StoneSerializers.boolean_().serialize(value.emailVerified, g); + g.writeFieldName("disabled"); + StoneSerializers.boolean_().serialize(value.disabled, g); + if (value.profilePhotoUrl != null) { + g.writeFieldName("profile_photo_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.profilePhotoUrl, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Account deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Account value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_accountId = null; + Name f_name = null; + String f_email = null; + Boolean f_emailVerified = null; + Boolean f_disabled = null; + String f_profilePhotoUrl = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = Name.Serializer.INSTANCE.deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.string().deserialize(p); + } + else if ("email_verified".equals(field)) { + f_emailVerified = StoneSerializers.boolean_().deserialize(p); + } + else if ("disabled".equals(field)) { + f_disabled = StoneSerializers.boolean_().deserialize(p); + } + else if ("profile_photo_url".equals(field)) { + f_profilePhotoUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accountId == null) { + throw new JsonParseException(p, "Required field \"account_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_email == null) { + throw new JsonParseException(p, "Required field \"email\" missing."); + } + if (f_emailVerified == null) { + throw new JsonParseException(p, "Required field \"email_verified\" missing."); + } + if (f_disabled == null) { + throw new JsonParseException(p, "Required field \"disabled\" missing."); + } + value = new Account(f_accountId, f_name, f_email, f_emailVerified, f_disabled, f_profilePhotoUrl); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/BasicAccount.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/BasicAccount.java new file mode 100644 index 000000000..d74732eda --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/BasicAccount.java @@ -0,0 +1,442 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Basic information about any account. + */ +public class BasicAccount extends Account { + // struct users.BasicAccount (users.stone) + + protected final boolean isTeammate; + @Nullable + protected final String teamMemberId; + + /** + * Basic information about any account. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * @param isTeammate Whether this user is a teammate of the current user. + * If this account is the current user's account, then this will be + * {@code true}. + * @param profilePhotoUrl URL for the photo representing the user, if one + * is set. + * @param teamMemberId The user's unique team member id. This field will + * only be present if the user is part of a team and {@link + * BasicAccount#getIsTeammate} is {@code true}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BasicAccount(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled, boolean isTeammate, @Nullable String profilePhotoUrl, @Nullable String teamMemberId) { + super(accountId, name, email, emailVerified, disabled, profilePhotoUrl); + this.isTeammate = isTeammate; + this.teamMemberId = teamMemberId; + } + + /** + * Basic information about any account. + * + *

The default values for unset fields will be used.

+ * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * @param isTeammate Whether this user is a teammate of the current user. + * If this account is the current user's account, then this will be + * {@code true}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BasicAccount(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled, boolean isTeammate) { + this(accountId, name, email, emailVerified, disabled, isTeammate, null, null); + } + + /** + * The user's unique Dropbox ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAccountId() { + return accountId; + } + + /** + * Details of a user's name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Name getName() { + return name; + } + + /** + * The user's email address. Do not rely on this without checking the {@link + * Account#getEmailVerified} field. Even then, it's possible that the user + * has since lost access to their email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEmail() { + return email; + } + + /** + * Whether the user has verified their email address. + * + * @return value for this field. + */ + public boolean getEmailVerified() { + return emailVerified; + } + + /** + * Whether the user has been disabled. + * + * @return value for this field. + */ + public boolean getDisabled() { + return disabled; + } + + /** + * Whether this user is a teammate of the current user. If this account is + * the current user's account, then this will be {@code true}. + * + * @return value for this field. + */ + public boolean getIsTeammate() { + return isTeammate; + } + + /** + * URL for the photo representing the user, if one is set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getProfilePhotoUrl() { + return profilePhotoUrl; + } + + /** + * The user's unique team member id. This field will only be present if the + * user is part of a team and {@link BasicAccount#getIsTeammate} is {@code + * true}. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * @param isTeammate Whether this user is a teammate of the current user. + * If this account is the current user's account, then this will be + * {@code true}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String accountId, Name name, String email, boolean emailVerified, boolean disabled, boolean isTeammate) { + return new Builder(accountId, name, email, emailVerified, disabled, isTeammate); + } + + /** + * Builder for {@link BasicAccount}. + */ + public static class Builder { + protected final String accountId; + protected final Name name; + protected final String email; + protected final boolean emailVerified; + protected final boolean disabled; + protected final boolean isTeammate; + + protected String profilePhotoUrl; + protected String teamMemberId; + + protected Builder(String accountId, Name name, String email, boolean emailVerified, boolean disabled, boolean isTeammate) { + if (accountId == null) { + throw new IllegalArgumentException("Required value for 'accountId' is null"); + } + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + this.accountId = accountId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (email == null) { + throw new IllegalArgumentException("Required value for 'email' is null"); + } + this.email = email; + this.emailVerified = emailVerified; + this.disabled = disabled; + this.isTeammate = isTeammate; + this.profilePhotoUrl = null; + this.teamMemberId = null; + } + + /** + * Set value for optional field. + * + * @param profilePhotoUrl URL for the photo representing the user, if + * one is set. + * + * @return this builder + */ + public Builder withProfilePhotoUrl(String profilePhotoUrl) { + this.profilePhotoUrl = profilePhotoUrl; + return this; + } + + /** + * Set value for optional field. + * + * @param teamMemberId The user's unique team member id. This field + * will only be present if the user is part of a team and {@link + * BasicAccount#getIsTeammate} is {@code true}. + * + * @return this builder + */ + public Builder withTeamMemberId(String teamMemberId) { + this.teamMemberId = teamMemberId; + return this; + } + + /** + * Builds an instance of {@link BasicAccount} configured with this + * builder's values + * + * @return new instance of {@link BasicAccount} + */ + public BasicAccount build() { + return new BasicAccount(accountId, name, email, emailVerified, disabled, isTeammate, profilePhotoUrl, teamMemberId); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.isTeammate, + this.teamMemberId + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + BasicAccount other = (BasicAccount) obj; + return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.email == other.email) || (this.email.equals(other.email))) + && (this.emailVerified == other.emailVerified) + && (this.disabled == other.disabled) + && (this.isTeammate == other.isTeammate) + && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId != null && this.teamMemberId.equals(other.teamMemberId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BasicAccount value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("account_id"); + StoneSerializers.string().serialize(value.accountId, g); + g.writeFieldName("name"); + Name.Serializer.INSTANCE.serialize(value.name, g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.email, g); + g.writeFieldName("email_verified"); + StoneSerializers.boolean_().serialize(value.emailVerified, g); + g.writeFieldName("disabled"); + StoneSerializers.boolean_().serialize(value.disabled, g); + g.writeFieldName("is_teammate"); + StoneSerializers.boolean_().serialize(value.isTeammate, g); + if (value.profilePhotoUrl != null) { + g.writeFieldName("profile_photo_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.profilePhotoUrl, g); + } + if (value.teamMemberId != null) { + g.writeFieldName("team_member_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamMemberId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public BasicAccount deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + BasicAccount value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_accountId = null; + Name f_name = null; + String f_email = null; + Boolean f_emailVerified = null; + Boolean f_disabled = null; + Boolean f_isTeammate = null; + String f_profilePhotoUrl = null; + String f_teamMemberId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = Name.Serializer.INSTANCE.deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.string().deserialize(p); + } + else if ("email_verified".equals(field)) { + f_emailVerified = StoneSerializers.boolean_().deserialize(p); + } + else if ("disabled".equals(field)) { + f_disabled = StoneSerializers.boolean_().deserialize(p); + } + else if ("is_teammate".equals(field)) { + f_isTeammate = StoneSerializers.boolean_().deserialize(p); + } + else if ("profile_photo_url".equals(field)) { + f_profilePhotoUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accountId == null) { + throw new JsonParseException(p, "Required field \"account_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_email == null) { + throw new JsonParseException(p, "Required field \"email\" missing."); + } + if (f_emailVerified == null) { + throw new JsonParseException(p, "Required field \"email_verified\" missing."); + } + if (f_disabled == null) { + throw new JsonParseException(p, "Required field \"disabled\" missing."); + } + if (f_isTeammate == null) { + throw new JsonParseException(p, "Required field \"is_teammate\" missing."); + } + value = new BasicAccount(f_accountId, f_name, f_email, f_emailVerified, f_disabled, f_isTeammate, f_profilePhotoUrl, f_teamMemberId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/DbxUserUsersRequests.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/DbxUserUsersRequests.java new file mode 100644 index 000000000..11bd3366c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/DbxUserUsersRequests.java @@ -0,0 +1,197 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "users". + */ +public class DbxUserUsersRequests { + // namespace users (users.stone) + + private final DbxRawClientV2 client; + + public DbxUserUsersRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/users/features/get_values + // + + /** + * Get a list of feature values that may be configured for the current + * account. + * + */ + UserFeaturesGetValuesBatchResult featuresGetValues(UserFeaturesGetValuesBatchArg arg) throws UserFeaturesGetValuesBatchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/users/features/get_values", + arg, + false, + UserFeaturesGetValuesBatchArg.Serializer.INSTANCE, + UserFeaturesGetValuesBatchResult.Serializer.INSTANCE, + UserFeaturesGetValuesBatchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new UserFeaturesGetValuesBatchErrorException("2/users/features/get_values", ex.getRequestId(), ex.getUserMessage(), (UserFeaturesGetValuesBatchError) ex.getErrorValue()); + } + } + + /** + * Get a list of feature values that may be configured for the current + * account. + * + * @param features A list of features in {@link UserFeature}. If the list + * is empty, this route will return {@link + * UserFeaturesGetValuesBatchError}. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserFeaturesGetValuesBatchResult featuresGetValues(List features) throws UserFeaturesGetValuesBatchErrorException, DbxException { + UserFeaturesGetValuesBatchArg _arg = new UserFeaturesGetValuesBatchArg(features); + return featuresGetValues(_arg); + } + + // + // route 2/users/get_account + // + + /** + * Get information about a user's account. + * + * + * @return Basic information about any account. + */ + BasicAccount getAccount(GetAccountArg arg) throws GetAccountErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/users/get_account", + arg, + false, + GetAccountArg.Serializer.INSTANCE, + BasicAccount.Serializer.INSTANCE, + GetAccountError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetAccountErrorException("2/users/get_account", ex.getRequestId(), ex.getUserMessage(), (GetAccountError) ex.getErrorValue()); + } + } + + /** + * Get information about a user's account. + * + * @param accountId A user's account identifier. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * + * @return Basic information about any account. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public BasicAccount getAccount(String accountId) throws GetAccountErrorException, DbxException { + GetAccountArg _arg = new GetAccountArg(accountId); + return getAccount(_arg); + } + + // + // route 2/users/get_account_batch + // + + /** + * Get information about multiple user accounts. At most 300 accounts may + * be queried per request. + * + */ + List getAccountBatch(GetAccountBatchArg arg) throws GetAccountBatchErrorException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/users/get_account_batch", + arg, + false, + GetAccountBatchArg.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.list(BasicAccount.Serializer.INSTANCE), + GetAccountBatchError.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new GetAccountBatchErrorException("2/users/get_account_batch", ex.getRequestId(), ex.getUserMessage(), (GetAccountBatchError) ex.getErrorValue()); + } + } + + /** + * Get information about multiple user accounts. At most 300 accounts may + * be queried per request. + * + * @param accountIds List of user account identifiers. Should not contain + * any duplicate account IDs. Must contain at least 1 items, not contain + * a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public List getAccountBatch(List accountIds) throws GetAccountBatchErrorException, DbxException { + GetAccountBatchArg _arg = new GetAccountBatchArg(accountIds); + return getAccountBatch(_arg); + } + + // + // route 2/users/get_current_account + // + + /** + * Get information about the current user's account. + * + * @return Detailed information about the current user's account. + */ + public FullAccount getCurrentAccount() throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/users/get_current_account", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + FullAccount.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"get_current_account\":" + ex.getErrorValue()); + } + } + + // + // route 2/users/get_space_usage + // + + /** + * Get the space usage information for the current user's account. + * + * @return Information about a user's space usage and quota. + */ + public SpaceUsage getSpaceUsage() throws DbxApiException, DbxException { + try { + return this.client.rpcStyle(this.client.getHost().getApi(), + "2/users/get_space_usage", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + SpaceUsage.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"get_space_usage\":" + ex.getErrorValue()); + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FileLockingValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FileLockingValue.java new file mode 100644 index 000000000..96ff1f8f4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FileLockingValue.java @@ -0,0 +1,286 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The value for {@link UserFeature#FILE_LOCKING}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class FileLockingValue { + // union users.FileLockingValue (users.stone) + + /** + * Discriminating tag type for {@link FileLockingValue}. + */ + public enum Tag { + /** + * When this value is True, the user can lock files in shared + * directories. When the value is False the user can unlock the files + * they have locked or request to unlock files locked by others. + */ + ENABLED, // boolean + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final FileLockingValue OTHER = new FileLockingValue().withTag(Tag.OTHER); + + private Tag _tag; + private Boolean enabledValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private FileLockingValue() { + } + + + /** + * The value for {@link UserFeature#FILE_LOCKING}. + * + * @param _tag Discriminating tag for this instance. + */ + private FileLockingValue withTag(Tag _tag) { + FileLockingValue result = new FileLockingValue(); + result._tag = _tag; + return result; + } + + /** + * The value for {@link UserFeature#FILE_LOCKING}. + * + * @param enabledValue When this value is True, the user can lock files in + * shared directories. When the value is False the user can unlock the + * files they have locked or request to unlock files locked by others. + * @param _tag Discriminating tag for this instance. + */ + private FileLockingValue withTagAndEnabled(Tag _tag, Boolean enabledValue) { + FileLockingValue result = new FileLockingValue(); + result._tag = _tag; + result.enabledValue = enabledValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code FileLockingValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ENABLED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ENABLED}, + * {@code false} otherwise. + */ + public boolean isEnabled() { + return this._tag == Tag.ENABLED; + } + + /** + * Returns an instance of {@code FileLockingValue} that has its tag set to + * {@link Tag#ENABLED}. + * + *

When this value is True, the user can lock files in shared + * directories. When the value is False the user can unlock the files they + * have locked or request to unlock files locked by others.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code FileLockingValue} with its tag set to {@link + * Tag#ENABLED}. + */ + public static FileLockingValue enabled(boolean value) { + return new FileLockingValue().withTagAndEnabled(Tag.ENABLED, value); + } + + /** + * When this value is True, the user can lock files in shared directories. + * When the value is False the user can unlock the files they have locked or + * request to unlock files locked by others. + * + *

This instance must be tagged as {@link Tag#ENABLED}.

+ * + * @return The {@link boolean} value associated with this instance if {@link + * #isEnabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isEnabled} is {@code false}. + */ + public boolean getEnabledValue() { + if (this._tag != Tag.ENABLED) { + throw new IllegalStateException("Invalid tag: required Tag.ENABLED, but was Tag." + this._tag.name()); + } + return enabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.enabledValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof FileLockingValue) { + FileLockingValue other = (FileLockingValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ENABLED: + return this.enabledValue == other.enabledValue; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FileLockingValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ENABLED: { + g.writeStartObject(); + writeTag("enabled", g); + g.writeFieldName("enabled"); + StoneSerializers.boolean_().serialize(value.enabledValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public FileLockingValue deserialize(JsonParser p) throws IOException, JsonParseException { + FileLockingValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("enabled".equals(tag)) { + Boolean fieldValue = null; + expectField("enabled", p); + fieldValue = StoneSerializers.boolean_().deserialize(p); + value = FileLockingValue.enabled(fieldValue); + } + else { + value = FileLockingValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FullAccount.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FullAccount.java new file mode 100644 index 000000000..119819825 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FullAccount.java @@ -0,0 +1,719 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.common.RootInfo; +import com.dropbox.core.v2.userscommon.AccountType; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +/** + * Detailed information about the current user's account. + */ +public class FullAccount extends Account { + // struct users.FullAccount (users.stone) + + @Nullable + protected final String country; + @Nonnull + protected final String locale; + @Nonnull + protected final String referralLink; + @Nullable + protected final FullTeam team; + @Nullable + protected final String teamMemberId; + protected final boolean isPaired; + @Nonnull + protected final AccountType accountType; + @Nonnull + protected final RootInfo rootInfo; + + /** + * Detailed information about the current user's account. + * + *

Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields.

+ * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * @param locale The language that the user specified. Locale tags will be + * IETF + * language tags. Must have length of at least 2 and not be {@code + * null}. + * @param referralLink The user's referral link. Must not + * be {@code null}. + * @param isPaired Whether the user has a personal and work account. If the + * current account is personal, then {@link FullAccount#getTeam} will + * always be {@code null}, but {@link FullAccount#getIsPaired} will + * indicate if a work account is linked. + * @param accountType What type of account this user has. Must not be + * {@code null}. + * @param rootInfo The root info for this account. Must not be {@code + * null}. + * @param profilePhotoUrl URL for the photo representing the user, if one + * is set. + * @param country The user's two-letter country code, if available. Country + * codes are based on ISO 3166-1. Must + * have length of at least 2 and have length of at most 2. + * @param team If this account is a member of a team, information about + * that team. + * @param teamMemberId This account's unique team member id. This field + * will only be present if {@link FullAccount#getTeam} is present. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FullAccount(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled, @Nonnull String locale, @Nonnull String referralLink, boolean isPaired, @Nonnull AccountType accountType, @Nonnull RootInfo rootInfo, @Nullable String profilePhotoUrl, @Nullable String country, @Nullable FullTeam team, @Nullable String teamMemberId) { + super(accountId, name, email, emailVerified, disabled, profilePhotoUrl); + if (country != null) { + if (country.length() < 2) { + throw new IllegalArgumentException("String 'country' is shorter than 2"); + } + if (country.length() > 2) { + throw new IllegalArgumentException("String 'country' is longer than 2"); + } + } + this.country = country; + if (locale == null) { + throw new IllegalArgumentException("Required value for 'locale' is null"); + } + if (locale.length() < 2) { + throw new IllegalArgumentException("String 'locale' is shorter than 2"); + } + this.locale = locale; + if (referralLink == null) { + throw new IllegalArgumentException("Required value for 'referralLink' is null"); + } + this.referralLink = referralLink; + this.team = team; + this.teamMemberId = teamMemberId; + this.isPaired = isPaired; + if (accountType == null) { + throw new IllegalArgumentException("Required value for 'accountType' is null"); + } + this.accountType = accountType; + if (rootInfo == null) { + throw new IllegalArgumentException("Required value for 'rootInfo' is null"); + } + this.rootInfo = rootInfo; + } + + /** + * Detailed information about the current user's account. + * + *

The default values for unset fields will be used.

+ * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * @param locale The language that the user specified. Locale tags will be + * IETF + * language tags. Must have length of at least 2 and not be {@code + * null}. + * @param referralLink The user's referral link. Must not + * be {@code null}. + * @param isPaired Whether the user has a personal and work account. If the + * current account is personal, then {@link FullAccount#getTeam} will + * always be {@code null}, but {@link FullAccount#getIsPaired} will + * indicate if a work account is linked. + * @param accountType What type of account this user has. Must not be + * {@code null}. + * @param rootInfo The root info for this account. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FullAccount(@Nonnull String accountId, @Nonnull Name name, @Nonnull String email, boolean emailVerified, boolean disabled, @Nonnull String locale, @Nonnull String referralLink, boolean isPaired, @Nonnull AccountType accountType, @Nonnull RootInfo rootInfo) { + this(accountId, name, email, emailVerified, disabled, locale, referralLink, isPaired, accountType, rootInfo, null, null, null, null); + } + + /** + * The user's unique Dropbox ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAccountId() { + return accountId; + } + + /** + * Details of a user's name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public Name getName() { + return name; + } + + /** + * The user's email address. Do not rely on this without checking the {@link + * Account#getEmailVerified} field. Even then, it's possible that the user + * has since lost access to their email. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getEmail() { + return email; + } + + /** + * Whether the user has verified their email address. + * + * @return value for this field. + */ + public boolean getEmailVerified() { + return emailVerified; + } + + /** + * Whether the user has been disabled. + * + * @return value for this field. + */ + public boolean getDisabled() { + return disabled; + } + + /** + * The language that the user specified. Locale tags will be IETF language + * tags. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getLocale() { + return locale; + } + + /** + * The user's referral link. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getReferralLink() { + return referralLink; + } + + /** + * Whether the user has a personal and work account. If the current account + * is personal, then {@link FullAccount#getTeam} will always be {@code + * null}, but {@link FullAccount#getIsPaired} will indicate if a work + * account is linked. + * + * @return value for this field. + */ + public boolean getIsPaired() { + return isPaired; + } + + /** + * What type of account this user has. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public AccountType getAccountType() { + return accountType; + } + + /** + * The root info for this account. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public RootInfo getRootInfo() { + return rootInfo; + } + + /** + * URL for the photo representing the user, if one is set. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getProfilePhotoUrl() { + return profilePhotoUrl; + } + + /** + * The user's two-letter country code, if available. Country codes are based + * on ISO 3166-1. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getCountry() { + return country; + } + + /** + * If this account is a member of a team, information about that team. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public FullTeam getTeam() { + return team; + } + + /** + * This account's unique team member id. This field will only be present if + * {@link FullAccount#getTeam} is present. + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getTeamMemberId() { + return teamMemberId; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param accountId The user's unique Dropbox ID. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * @param name Details of a user's name. Must not be {@code null}. + * @param email The user's email address. Do not rely on this without + * checking the {@link Account#getEmailVerified} field. Even then, it's + * possible that the user has since lost access to their email. Must not + * be {@code null}. + * @param emailVerified Whether the user has verified their email address. + * @param disabled Whether the user has been disabled. + * @param locale The language that the user specified. Locale tags will be + * IETF + * language tags. Must have length of at least 2 and not be {@code + * null}. + * @param referralLink The user's referral link. Must not + * be {@code null}. + * @param isPaired Whether the user has a personal and work account. If the + * current account is personal, then {@link FullAccount#getTeam} will + * always be {@code null}, but {@link FullAccount#getIsPaired} will + * indicate if a work account is linked. + * @param accountType What type of account this user has. Must not be + * {@code null}. + * @param rootInfo The root info for this account. Must not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo) { + return new Builder(accountId, name, email, emailVerified, disabled, locale, referralLink, isPaired, accountType, rootInfo); + } + + /** + * Builder for {@link FullAccount}. + */ + public static class Builder { + protected final String accountId; + protected final Name name; + protected final String email; + protected final boolean emailVerified; + protected final boolean disabled; + protected final String locale; + protected final String referralLink; + protected final boolean isPaired; + protected final AccountType accountType; + protected final RootInfo rootInfo; + + protected String profilePhotoUrl; + protected String country; + protected FullTeam team; + protected String teamMemberId; + + protected Builder(String accountId, Name name, String email, boolean emailVerified, boolean disabled, String locale, String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo) { + if (accountId == null) { + throw new IllegalArgumentException("Required value for 'accountId' is null"); + } + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + this.accountId = accountId; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (email == null) { + throw new IllegalArgumentException("Required value for 'email' is null"); + } + this.email = email; + this.emailVerified = emailVerified; + this.disabled = disabled; + if (locale == null) { + throw new IllegalArgumentException("Required value for 'locale' is null"); + } + if (locale.length() < 2) { + throw new IllegalArgumentException("String 'locale' is shorter than 2"); + } + this.locale = locale; + if (referralLink == null) { + throw new IllegalArgumentException("Required value for 'referralLink' is null"); + } + this.referralLink = referralLink; + this.isPaired = isPaired; + if (accountType == null) { + throw new IllegalArgumentException("Required value for 'accountType' is null"); + } + this.accountType = accountType; + if (rootInfo == null) { + throw new IllegalArgumentException("Required value for 'rootInfo' is null"); + } + this.rootInfo = rootInfo; + this.profilePhotoUrl = null; + this.country = null; + this.team = null; + this.teamMemberId = null; + } + + /** + * Set value for optional field. + * + * @param profilePhotoUrl URL for the photo representing the user, if + * one is set. + * + * @return this builder + */ + public Builder withProfilePhotoUrl(String profilePhotoUrl) { + this.profilePhotoUrl = profilePhotoUrl; + return this; + } + + /** + * Set value for optional field. + * + * @param country The user's two-letter country code, if available. + * Country codes are based on ISO 3166-1. + * Must have length of at least 2 and have length of at most 2. + * + * @return this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Builder withCountry(String country) { + if (country != null) { + if (country.length() < 2) { + throw new IllegalArgumentException("String 'country' is shorter than 2"); + } + if (country.length() > 2) { + throw new IllegalArgumentException("String 'country' is longer than 2"); + } + } + this.country = country; + return this; + } + + /** + * Set value for optional field. + * + * @param team If this account is a member of a team, information about + * that team. + * + * @return this builder + */ + public Builder withTeam(FullTeam team) { + this.team = team; + return this; + } + + /** + * Set value for optional field. + * + * @param teamMemberId This account's unique team member id. This field + * will only be present if {@link FullAccount#getTeam} is present. + * + * @return this builder + */ + public Builder withTeamMemberId(String teamMemberId) { + this.teamMemberId = teamMemberId; + return this; + } + + /** + * Builds an instance of {@link FullAccount} configured with this + * builder's values + * + * @return new instance of {@link FullAccount} + */ + public FullAccount build() { + return new FullAccount(accountId, name, email, emailVerified, disabled, locale, referralLink, isPaired, accountType, rootInfo, profilePhotoUrl, country, team, teamMemberId); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.country, + this.locale, + this.referralLink, + this.team, + this.teamMemberId, + this.isPaired, + this.accountType, + this.rootInfo + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FullAccount other = (FullAccount) obj; + return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.email == other.email) || (this.email.equals(other.email))) + && (this.emailVerified == other.emailVerified) + && (this.disabled == other.disabled) + && ((this.locale == other.locale) || (this.locale.equals(other.locale))) + && ((this.referralLink == other.referralLink) || (this.referralLink.equals(other.referralLink))) + && (this.isPaired == other.isPaired) + && ((this.accountType == other.accountType) || (this.accountType.equals(other.accountType))) + && ((this.rootInfo == other.rootInfo) || (this.rootInfo.equals(other.rootInfo))) + && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) + && ((this.country == other.country) || (this.country != null && this.country.equals(other.country))) + && ((this.team == other.team) || (this.team != null && this.team.equals(other.team))) + && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId != null && this.teamMemberId.equals(other.teamMemberId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FullAccount value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("account_id"); + StoneSerializers.string().serialize(value.accountId, g); + g.writeFieldName("name"); + Name.Serializer.INSTANCE.serialize(value.name, g); + g.writeFieldName("email"); + StoneSerializers.string().serialize(value.email, g); + g.writeFieldName("email_verified"); + StoneSerializers.boolean_().serialize(value.emailVerified, g); + g.writeFieldName("disabled"); + StoneSerializers.boolean_().serialize(value.disabled, g); + g.writeFieldName("locale"); + StoneSerializers.string().serialize(value.locale, g); + g.writeFieldName("referral_link"); + StoneSerializers.string().serialize(value.referralLink, g); + g.writeFieldName("is_paired"); + StoneSerializers.boolean_().serialize(value.isPaired, g); + g.writeFieldName("account_type"); + AccountType.Serializer.INSTANCE.serialize(value.accountType, g); + g.writeFieldName("root_info"); + RootInfo.Serializer.INSTANCE.serialize(value.rootInfo, g); + if (value.profilePhotoUrl != null) { + g.writeFieldName("profile_photo_url"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.profilePhotoUrl, g); + } + if (value.country != null) { + g.writeFieldName("country"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.country, g); + } + if (value.team != null) { + g.writeFieldName("team"); + StoneSerializers.nullableStruct(FullTeam.Serializer.INSTANCE).serialize(value.team, g); + } + if (value.teamMemberId != null) { + g.writeFieldName("team_member_id"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.teamMemberId, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FullAccount deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FullAccount value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_accountId = null; + Name f_name = null; + String f_email = null; + Boolean f_emailVerified = null; + Boolean f_disabled = null; + String f_locale = null; + String f_referralLink = null; + Boolean f_isPaired = null; + AccountType f_accountType = null; + RootInfo f_rootInfo = null; + String f_profilePhotoUrl = null; + String f_country = null; + FullTeam f_team = null; + String f_teamMemberId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = Name.Serializer.INSTANCE.deserialize(p); + } + else if ("email".equals(field)) { + f_email = StoneSerializers.string().deserialize(p); + } + else if ("email_verified".equals(field)) { + f_emailVerified = StoneSerializers.boolean_().deserialize(p); + } + else if ("disabled".equals(field)) { + f_disabled = StoneSerializers.boolean_().deserialize(p); + } + else if ("locale".equals(field)) { + f_locale = StoneSerializers.string().deserialize(p); + } + else if ("referral_link".equals(field)) { + f_referralLink = StoneSerializers.string().deserialize(p); + } + else if ("is_paired".equals(field)) { + f_isPaired = StoneSerializers.boolean_().deserialize(p); + } + else if ("account_type".equals(field)) { + f_accountType = AccountType.Serializer.INSTANCE.deserialize(p); + } + else if ("root_info".equals(field)) { + f_rootInfo = RootInfo.Serializer.INSTANCE.deserialize(p); + } + else if ("profile_photo_url".equals(field)) { + f_profilePhotoUrl = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("country".equals(field)) { + f_country = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("team".equals(field)) { + f_team = StoneSerializers.nullableStruct(FullTeam.Serializer.INSTANCE).deserialize(p); + } + else if ("team_member_id".equals(field)) { + f_teamMemberId = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accountId == null) { + throw new JsonParseException(p, "Required field \"account_id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_email == null) { + throw new JsonParseException(p, "Required field \"email\" missing."); + } + if (f_emailVerified == null) { + throw new JsonParseException(p, "Required field \"email_verified\" missing."); + } + if (f_disabled == null) { + throw new JsonParseException(p, "Required field \"disabled\" missing."); + } + if (f_locale == null) { + throw new JsonParseException(p, "Required field \"locale\" missing."); + } + if (f_referralLink == null) { + throw new JsonParseException(p, "Required field \"referral_link\" missing."); + } + if (f_isPaired == null) { + throw new JsonParseException(p, "Required field \"is_paired\" missing."); + } + if (f_accountType == null) { + throw new JsonParseException(p, "Required field \"account_type\" missing."); + } + if (f_rootInfo == null) { + throw new JsonParseException(p, "Required field \"root_info\" missing."); + } + value = new FullAccount(f_accountId, f_name, f_email, f_emailVerified, f_disabled, f_locale, f_referralLink, f_isPaired, f_accountType, f_rootInfo, f_profilePhotoUrl, f_country, f_team, f_teamMemberId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FullTeam.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FullTeam.java new file mode 100644 index 000000000..cfab9fada --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/FullTeam.java @@ -0,0 +1,228 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teampolicies.OfficeAddInPolicy; +import com.dropbox.core.v2.teampolicies.TeamSharingPolicies; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Detailed information about a team. + */ +public class FullTeam extends Team { + // struct users.FullTeam (users.stone) + + @Nonnull + protected final TeamSharingPolicies sharingPolicies; + @Nonnull + protected final OfficeAddInPolicy officeAddinPolicy; + + /** + * Detailed information about a team. + * + * @param id The team's unique ID. Must not be {@code null}. + * @param name The name of the team. Must not be {@code null}. + * @param sharingPolicies Team policies governing sharing. Must not be + * {@code null}. + * @param officeAddinPolicy Team policy governing the use of the Office + * Add-In. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public FullTeam(@Nonnull String id, @Nonnull String name, @Nonnull TeamSharingPolicies sharingPolicies, @Nonnull OfficeAddInPolicy officeAddinPolicy) { + super(id, name); + if (sharingPolicies == null) { + throw new IllegalArgumentException("Required value for 'sharingPolicies' is null"); + } + this.sharingPolicies = sharingPolicies; + if (officeAddinPolicy == null) { + throw new IllegalArgumentException("Required value for 'officeAddinPolicy' is null"); + } + this.officeAddinPolicy = officeAddinPolicy; + } + + /** + * The team's unique ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The name of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * Team policies governing sharing. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TeamSharingPolicies getSharingPolicies() { + return sharingPolicies; + } + + /** + * Team policy governing the use of the Office Add-In. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public OfficeAddInPolicy getOfficeAddinPolicy() { + return officeAddinPolicy; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.sharingPolicies, + this.officeAddinPolicy + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + FullTeam other = (FullTeam) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.sharingPolicies == other.sharingPolicies) || (this.sharingPolicies.equals(other.sharingPolicies))) + && ((this.officeAddinPolicy == other.officeAddinPolicy) || (this.officeAddinPolicy.equals(other.officeAddinPolicy))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(FullTeam value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("sharing_policies"); + TeamSharingPolicies.Serializer.INSTANCE.serialize(value.sharingPolicies, g); + g.writeFieldName("office_addin_policy"); + OfficeAddInPolicy.Serializer.INSTANCE.serialize(value.officeAddinPolicy, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public FullTeam deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + FullTeam value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_name = null; + TeamSharingPolicies f_sharingPolicies = null; + OfficeAddInPolicy f_officeAddinPolicy = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("sharing_policies".equals(field)) { + f_sharingPolicies = TeamSharingPolicies.Serializer.INSTANCE.deserialize(p); + } + else if ("office_addin_policy".equals(field)) { + f_officeAddinPolicy = OfficeAddInPolicy.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_sharingPolicies == null) { + throw new JsonParseException(p, "Required field \"sharing_policies\" missing."); + } + if (f_officeAddinPolicy == null) { + throw new JsonParseException(p, "Required field \"office_addin_policy\" missing."); + } + value = new FullTeam(f_id, f_name, f_sharingPolicies, f_officeAddinPolicy); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountArg.java new file mode 100644 index 000000000..ecdad88d6 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountArg.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class GetAccountArg { + // struct users.GetAccountArg (users.stone) + + @Nonnull + protected final String accountId; + + /** + * + * @param accountId A user's account identifier. Must have length of at + * least 40, have length of at most 40, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetAccountArg(@Nonnull String accountId) { + if (accountId == null) { + throw new IllegalArgumentException("Required value for 'accountId' is null"); + } + if (accountId.length() < 40) { + throw new IllegalArgumentException("String 'accountId' is shorter than 40"); + } + if (accountId.length() > 40) { + throw new IllegalArgumentException("String 'accountId' is longer than 40"); + } + this.accountId = accountId; + } + + /** + * A user's account identifier. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAccountId() { + return accountId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accountId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetAccountArg other = (GetAccountArg) obj; + return (this.accountId == other.accountId) || (this.accountId.equals(other.accountId)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetAccountArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("account_id"); + StoneSerializers.string().serialize(value.accountId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetAccountArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetAccountArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_accountId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_id".equals(field)) { + f_accountId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accountId == null) { + throw new JsonParseException(p, "Required field \"account_id\" missing."); + } + value = new GetAccountArg(f_accountId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchArg.java new file mode 100644 index 000000000..04755323d --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchArg.java @@ -0,0 +1,165 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class GetAccountBatchArg { + // struct users.GetAccountBatchArg (users.stone) + + @Nonnull + protected final List accountIds; + + /** + * + * @param accountIds List of user account identifiers. Should not contain + * any duplicate account IDs. Must contain at least 1 items, not contain + * a {@code null} item, and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public GetAccountBatchArg(@Nonnull List accountIds) { + if (accountIds == null) { + throw new IllegalArgumentException("Required value for 'accountIds' is null"); + } + if (accountIds.size() < 1) { + throw new IllegalArgumentException("List 'accountIds' has fewer than 1 items"); + } + for (String x : accountIds) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'accountIds' is null"); + } + if (x.length() < 40) { + throw new IllegalArgumentException("Stringan item in list 'accountIds' is shorter than 40"); + } + if (x.length() > 40) { + throw new IllegalArgumentException("Stringan item in list 'accountIds' is longer than 40"); + } + } + this.accountIds = accountIds; + } + + /** + * List of user account identifiers. Should not contain any duplicate + * account IDs. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getAccountIds() { + return accountIds; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.accountIds + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + GetAccountBatchArg other = (GetAccountBatchArg) obj; + return (this.accountIds == other.accountIds) || (this.accountIds.equals(other.accountIds)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetAccountBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("account_ids"); + StoneSerializers.list(StoneSerializers.string()).serialize(value.accountIds, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public GetAccountBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + GetAccountBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_accountIds = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("account_ids".equals(field)) { + f_accountIds = StoneSerializers.list(StoneSerializers.string()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_accountIds == null) { + throw new JsonParseException(p, "Required field \"account_ids\" missing."); + } + value = new GetAccountBatchArg(f_accountIds); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchError.java new file mode 100644 index 000000000..be361514f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchError.java @@ -0,0 +1,295 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class GetAccountBatchError { + // union users.GetAccountBatchError (users.stone) + + /** + * Discriminating tag type for {@link GetAccountBatchError}. + */ + public enum Tag { + /** + * The value is an account ID specified in {@link + * GetAccountBatchArg#getAccountIds} that does not exist. + */ + NO_ACCOUNT, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final GetAccountBatchError OTHER = new GetAccountBatchError().withTag(Tag.OTHER); + + private Tag _tag; + private String noAccountValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private GetAccountBatchError() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private GetAccountBatchError withTag(Tag _tag) { + GetAccountBatchError result = new GetAccountBatchError(); + result._tag = _tag; + return result; + } + + /** + * + * @param noAccountValue The value is an account ID specified in {@link + * GetAccountBatchArg#getAccountIds} that does not exist. Must have + * length of at least 40, have length of at most 40, and not be {@code + * null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private GetAccountBatchError withTagAndNoAccount(Tag _tag, String noAccountValue) { + GetAccountBatchError result = new GetAccountBatchError(); + result._tag = _tag; + result.noAccountValue = noAccountValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code GetAccountBatchError}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#NO_ACCOUNT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#NO_ACCOUNT}, {@code false} otherwise. + */ + public boolean isNoAccount() { + return this._tag == Tag.NO_ACCOUNT; + } + + /** + * Returns an instance of {@code GetAccountBatchError} that has its tag set + * to {@link Tag#NO_ACCOUNT}. + * + *

The value is an account ID specified in {@link + * GetAccountBatchArg#getAccountIds} that does not exist.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code GetAccountBatchError} with its tag set to + * {@link Tag#NO_ACCOUNT}. + * + * @throws IllegalArgumentException if {@code value} is shorter than 40, is + * longer than 40, or is {@code null}. + */ + public static GetAccountBatchError noAccount(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + if (value.length() < 40) { + throw new IllegalArgumentException("String is shorter than 40"); + } + if (value.length() > 40) { + throw new IllegalArgumentException("String is longer than 40"); + } + return new GetAccountBatchError().withTagAndNoAccount(Tag.NO_ACCOUNT, value); + } + + /** + * The value is an account ID specified in {@link + * GetAccountBatchArg#getAccountIds} that does not exist. + * + *

This instance must be tagged as {@link Tag#NO_ACCOUNT}.

+ * + * @return The {@link String} value associated with this instance if {@link + * #isNoAccount} is {@code true}. + * + * @throws IllegalStateException If {@link #isNoAccount} is {@code false}. + */ + public String getNoAccountValue() { + if (this._tag != Tag.NO_ACCOUNT) { + throw new IllegalStateException("Invalid tag: required Tag.NO_ACCOUNT, but was Tag." + this._tag.name()); + } + return noAccountValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.noAccountValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof GetAccountBatchError) { + GetAccountBatchError other = (GetAccountBatchError) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case NO_ACCOUNT: + return (this.noAccountValue == other.noAccountValue) || (this.noAccountValue.equals(other.noAccountValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetAccountBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case NO_ACCOUNT: { + g.writeStartObject(); + writeTag("no_account", g); + g.writeFieldName("no_account"); + StoneSerializers.string().serialize(value.noAccountValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetAccountBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + GetAccountBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("no_account".equals(tag)) { + String fieldValue = null; + expectField("no_account", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = GetAccountBatchError.noAccount(fieldValue); + } + else { + value = GetAccountBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchErrorException.java new file mode 100644 index 000000000..a8e48b268 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GetAccountBatchError} + * error. + * + *

This exception is raised by {@link + * DbxUserUsersRequests#getAccountBatch(java.util.List)}.

+ */ +public class GetAccountBatchErrorException extends DbxApiException { + // exception for routes: + // 2/users/get_account_batch + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserUsersRequests#getAccountBatch(java.util.List)}. + */ + public final GetAccountBatchError errorValue; + + public GetAccountBatchErrorException(String routeName, String requestId, LocalizedText userMessage, GetAccountBatchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountError.java new file mode 100644 index 000000000..cf7f67f86 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountError.java @@ -0,0 +1,84 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum GetAccountError { + // union users.GetAccountError (users.stone) + /** + * The specified {@link GetAccountArg#getAccountId} does not exist. + */ + NO_ACCOUNT, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(GetAccountError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case NO_ACCOUNT: { + g.writeString("no_account"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public GetAccountError deserialize(JsonParser p) throws IOException, JsonParseException { + GetAccountError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("no_account".equals(tag)) { + value = GetAccountError.NO_ACCOUNT; + } + else { + value = GetAccountError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountErrorException.java new file mode 100644 index 000000000..785cfad29 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountErrorException.java @@ -0,0 +1,34 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link GetAccountError} + * error. + * + *

This exception is raised by {@link + * DbxUserUsersRequests#getAccount(String)}.

+ */ +public class GetAccountErrorException extends DbxApiException { + // exception for routes: + // 2/users/get_account + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link DbxUserUsersRequests#getAccount(String)}. + */ + public final GetAccountError errorValue; + + public GetAccountErrorException(String routeName, String requestId, LocalizedText userMessage, GetAccountError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/IndividualSpaceAllocation.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/IndividualSpaceAllocation.java new file mode 100644 index 000000000..b81be34b4 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/IndividualSpaceAllocation.java @@ -0,0 +1,138 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class IndividualSpaceAllocation { + // struct users.IndividualSpaceAllocation (users.stone) + + protected final long allocated; + + /** + * + * @param allocated The total space allocated to the user's account + * (bytes). + */ + public IndividualSpaceAllocation(long allocated) { + this.allocated = allocated; + } + + /** + * The total space allocated to the user's account (bytes). + * + * @return value for this field. + */ + public long getAllocated() { + return allocated; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.allocated + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + IndividualSpaceAllocation other = (IndividualSpaceAllocation) obj; + return this.allocated == other.allocated; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(IndividualSpaceAllocation value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("allocated"); + StoneSerializers.uInt64().serialize(value.allocated, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public IndividualSpaceAllocation deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + IndividualSpaceAllocation value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_allocated = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("allocated".equals(field)) { + f_allocated = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_allocated == null) { + throw new JsonParseException(p, "Required field \"allocated\" missing."); + } + value = new IndividualSpaceAllocation(f_allocated); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Name.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Name.java new file mode 100644 index 000000000..98db9c60b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Name.java @@ -0,0 +1,273 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Representations for a person's name to assist with internationalization. + */ +public class Name { + // struct users.Name (users.stone) + + @Nonnull + protected final String givenName; + @Nonnull + protected final String surname; + @Nonnull + protected final String familiarName; + @Nonnull + protected final String displayName; + @Nonnull + protected final String abbreviatedName; + + /** + * Representations for a person's name to assist with internationalization. + * + * @param givenName Also known as a first name. Must not be {@code null}. + * @param surname Also known as a last name or family name. Must not be + * {@code null}. + * @param familiarName Locale-dependent name. In the US, a person's + * familiar name is their {@link Name#getGivenName}, but elsewhere, it + * could be any combination of a person's {@link Name#getGivenName} and + * {@link Name#getSurname}. Must not be {@code null}. + * @param displayName A name that can be used directly to represent the + * name of a user's Dropbox account. Must not be {@code null}. + * @param abbreviatedName An abbreviated form of the person's name. Their + * initials in most locales. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Name(@Nonnull String givenName, @Nonnull String surname, @Nonnull String familiarName, @Nonnull String displayName, @Nonnull String abbreviatedName) { + if (givenName == null) { + throw new IllegalArgumentException("Required value for 'givenName' is null"); + } + this.givenName = givenName; + if (surname == null) { + throw new IllegalArgumentException("Required value for 'surname' is null"); + } + this.surname = surname; + if (familiarName == null) { + throw new IllegalArgumentException("Required value for 'familiarName' is null"); + } + this.familiarName = familiarName; + if (displayName == null) { + throw new IllegalArgumentException("Required value for 'displayName' is null"); + } + this.displayName = displayName; + if (abbreviatedName == null) { + throw new IllegalArgumentException("Required value for 'abbreviatedName' is null"); + } + this.abbreviatedName = abbreviatedName; + } + + /** + * Also known as a first name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getGivenName() { + return givenName; + } + + /** + * Also known as a last name or family name. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSurname() { + return surname; + } + + /** + * Locale-dependent name. In the US, a person's familiar name is their + * {@link Name#getGivenName}, but elsewhere, it could be any combination of + * a person's {@link Name#getGivenName} and {@link Name#getSurname}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getFamiliarName() { + return familiarName; + } + + /** + * A name that can be used directly to represent the name of a user's + * Dropbox account. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getDisplayName() { + return displayName; + } + + /** + * An abbreviated form of the person's name. Their initials in most locales. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getAbbreviatedName() { + return abbreviatedName; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.givenName, + this.surname, + this.familiarName, + this.displayName, + this.abbreviatedName + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Name other = (Name) obj; + return ((this.givenName == other.givenName) || (this.givenName.equals(other.givenName))) + && ((this.surname == other.surname) || (this.surname.equals(other.surname))) + && ((this.familiarName == other.familiarName) || (this.familiarName.equals(other.familiarName))) + && ((this.displayName == other.displayName) || (this.displayName.equals(other.displayName))) + && ((this.abbreviatedName == other.abbreviatedName) || (this.abbreviatedName.equals(other.abbreviatedName))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Name value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("given_name"); + StoneSerializers.string().serialize(value.givenName, g); + g.writeFieldName("surname"); + StoneSerializers.string().serialize(value.surname, g); + g.writeFieldName("familiar_name"); + StoneSerializers.string().serialize(value.familiarName, g); + g.writeFieldName("display_name"); + StoneSerializers.string().serialize(value.displayName, g); + g.writeFieldName("abbreviated_name"); + StoneSerializers.string().serialize(value.abbreviatedName, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Name deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Name value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_givenName = null; + String f_surname = null; + String f_familiarName = null; + String f_displayName = null; + String f_abbreviatedName = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("given_name".equals(field)) { + f_givenName = StoneSerializers.string().deserialize(p); + } + else if ("surname".equals(field)) { + f_surname = StoneSerializers.string().deserialize(p); + } + else if ("familiar_name".equals(field)) { + f_familiarName = StoneSerializers.string().deserialize(p); + } + else if ("display_name".equals(field)) { + f_displayName = StoneSerializers.string().deserialize(p); + } + else if ("abbreviated_name".equals(field)) { + f_abbreviatedName = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_givenName == null) { + throw new JsonParseException(p, "Required field \"given_name\" missing."); + } + if (f_surname == null) { + throw new JsonParseException(p, "Required field \"surname\" missing."); + } + if (f_familiarName == null) { + throw new JsonParseException(p, "Required field \"familiar_name\" missing."); + } + if (f_displayName == null) { + throw new JsonParseException(p, "Required field \"display_name\" missing."); + } + if (f_abbreviatedName == null) { + throw new JsonParseException(p, "Required field \"abbreviated_name\" missing."); + } + value = new Name(f_givenName, f_surname, f_familiarName, f_displayName, f_abbreviatedName); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/PaperAsFilesValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/PaperAsFilesValue.java new file mode 100644 index 000000000..4fb0c0976 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/PaperAsFilesValue.java @@ -0,0 +1,294 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * The value for {@link UserFeature#PAPER_AS_FILES}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class PaperAsFilesValue { + // union users.PaperAsFilesValue (users.stone) + + /** + * Discriminating tag type for {@link PaperAsFilesValue}. + */ + public enum Tag { + /** + * When this value is true, the user's Paper docs are accessible in + * Dropbox with the .paper extension and must be accessed via the /files + * endpoints. When this value is false, the user's Paper docs are + * stored separate from Dropbox files and folders and should be accessed + * via the /paper endpoints. + */ + ENABLED, // boolean + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final PaperAsFilesValue OTHER = new PaperAsFilesValue().withTag(Tag.OTHER); + + private Tag _tag; + private Boolean enabledValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private PaperAsFilesValue() { + } + + + /** + * The value for {@link UserFeature#PAPER_AS_FILES}. + * + * @param _tag Discriminating tag for this instance. + */ + private PaperAsFilesValue withTag(Tag _tag) { + PaperAsFilesValue result = new PaperAsFilesValue(); + result._tag = _tag; + return result; + } + + /** + * The value for {@link UserFeature#PAPER_AS_FILES}. + * + * @param enabledValue When this value is true, the user's Paper docs are + * accessible in Dropbox with the .paper extension and must be accessed + * via the /files endpoints. When this value is false, the user's Paper + * docs are stored separate from Dropbox files and folders and should be + * accessed via the /paper endpoints. + * @param _tag Discriminating tag for this instance. + */ + private PaperAsFilesValue withTagAndEnabled(Tag _tag, Boolean enabledValue) { + PaperAsFilesValue result = new PaperAsFilesValue(); + result._tag = _tag; + result.enabledValue = enabledValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code PaperAsFilesValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ENABLED}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ENABLED}, + * {@code false} otherwise. + */ + public boolean isEnabled() { + return this._tag == Tag.ENABLED; + } + + /** + * Returns an instance of {@code PaperAsFilesValue} that has its tag set to + * {@link Tag#ENABLED}. + * + *

When this value is true, the user's Paper docs are accessible in + * Dropbox with the .paper extension and must be accessed via the /files + * endpoints. When this value is false, the user's Paper docs are stored + * separate from Dropbox files and folders and should be accessed via the + * /paper endpoints.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code PaperAsFilesValue} with its tag set to {@link + * Tag#ENABLED}. + */ + public static PaperAsFilesValue enabled(boolean value) { + return new PaperAsFilesValue().withTagAndEnabled(Tag.ENABLED, value); + } + + /** + * When this value is true, the user's Paper docs are accessible in Dropbox + * with the .paper extension and must be accessed via the /files endpoints. + * When this value is false, the user's Paper docs are stored separate from + * Dropbox files and folders and should be accessed via the /paper + * endpoints. + * + *

This instance must be tagged as {@link Tag#ENABLED}.

+ * + * @return The {@link boolean} value associated with this instance if {@link + * #isEnabled} is {@code true}. + * + * @throws IllegalStateException If {@link #isEnabled} is {@code false}. + */ + public boolean getEnabledValue() { + if (this._tag != Tag.ENABLED) { + throw new IllegalStateException("Invalid tag: required Tag.ENABLED, but was Tag." + this._tag.name()); + } + return enabledValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.enabledValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof PaperAsFilesValue) { + PaperAsFilesValue other = (PaperAsFilesValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ENABLED: + return this.enabledValue == other.enabledValue; + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(PaperAsFilesValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ENABLED: { + g.writeStartObject(); + writeTag("enabled", g); + g.writeFieldName("enabled"); + StoneSerializers.boolean_().serialize(value.enabledValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public PaperAsFilesValue deserialize(JsonParser p) throws IOException, JsonParseException { + PaperAsFilesValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("enabled".equals(tag)) { + Boolean fieldValue = null; + expectField("enabled", p); + fieldValue = StoneSerializers.boolean_().deserialize(p); + value = PaperAsFilesValue.enabled(fieldValue); + } + else { + value = PaperAsFilesValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/SpaceAllocation.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/SpaceAllocation.java new file mode 100644 index 000000000..a45524e4c --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/SpaceAllocation.java @@ -0,0 +1,371 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Space is allocated differently based on the type of account. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class SpaceAllocation { + // union users.SpaceAllocation (users.stone) + + /** + * Discriminating tag type for {@link SpaceAllocation}. + */ + public enum Tag { + /** + * The user's space allocation applies only to their individual account. + */ + INDIVIDUAL, // IndividualSpaceAllocation + /** + * The user shares space with other members of their team. + */ + TEAM, // TeamSpaceAllocation + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final SpaceAllocation OTHER = new SpaceAllocation().withTag(Tag.OTHER); + + private Tag _tag; + private IndividualSpaceAllocation individualValue; + private TeamSpaceAllocation teamValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private SpaceAllocation() { + } + + + /** + * Space is allocated differently based on the type of account. + * + * @param _tag Discriminating tag for this instance. + */ + private SpaceAllocation withTag(Tag _tag) { + SpaceAllocation result = new SpaceAllocation(); + result._tag = _tag; + return result; + } + + /** + * Space is allocated differently based on the type of account. + * + * @param individualValue The user's space allocation applies only to their + * individual account. Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SpaceAllocation withTagAndIndividual(Tag _tag, IndividualSpaceAllocation individualValue) { + SpaceAllocation result = new SpaceAllocation(); + result._tag = _tag; + result.individualValue = individualValue; + return result; + } + + /** + * Space is allocated differently based on the type of account. + * + * @param teamValue The user shares space with other members of their team. + * Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private SpaceAllocation withTagAndTeam(Tag _tag, TeamSpaceAllocation teamValue) { + SpaceAllocation result = new SpaceAllocation(); + result._tag = _tag; + result.teamValue = teamValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code SpaceAllocation}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#INDIVIDUAL}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#INDIVIDUAL}, {@code false} otherwise. + */ + public boolean isIndividual() { + return this._tag == Tag.INDIVIDUAL; + } + + /** + * Returns an instance of {@code SpaceAllocation} that has its tag set to + * {@link Tag#INDIVIDUAL}. + * + *

The user's space allocation applies only to their individual account. + *

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SpaceAllocation} with its tag set to {@link + * Tag#INDIVIDUAL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SpaceAllocation individual(IndividualSpaceAllocation value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SpaceAllocation().withTagAndIndividual(Tag.INDIVIDUAL, value); + } + + /** + * The user's space allocation applies only to their individual account. + * + *

This instance must be tagged as {@link Tag#INDIVIDUAL}.

+ * + * @return The {@link IndividualSpaceAllocation} value associated with this + * instance if {@link #isIndividual} is {@code true}. + * + * @throws IllegalStateException If {@link #isIndividual} is {@code false}. + */ + public IndividualSpaceAllocation getIndividualValue() { + if (this._tag != Tag.INDIVIDUAL) { + throw new IllegalStateException("Invalid tag: required Tag.INDIVIDUAL, but was Tag." + this._tag.name()); + } + return individualValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TEAM}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TEAM}, + * {@code false} otherwise. + */ + public boolean isTeam() { + return this._tag == Tag.TEAM; + } + + /** + * Returns an instance of {@code SpaceAllocation} that has its tag set to + * {@link Tag#TEAM}. + * + *

The user shares space with other members of their team.

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code SpaceAllocation} with its tag set to {@link + * Tag#TEAM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static SpaceAllocation team(TeamSpaceAllocation value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new SpaceAllocation().withTagAndTeam(Tag.TEAM, value); + } + + /** + * The user shares space with other members of their team. + * + *

This instance must be tagged as {@link Tag#TEAM}.

+ * + * @return The {@link TeamSpaceAllocation} value associated with this + * instance if {@link #isTeam} is {@code true}. + * + * @throws IllegalStateException If {@link #isTeam} is {@code false}. + */ + public TeamSpaceAllocation getTeamValue() { + if (this._tag != Tag.TEAM) { + throw new IllegalStateException("Invalid tag: required Tag.TEAM, but was Tag." + this._tag.name()); + } + return teamValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.individualValue, + this.teamValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof SpaceAllocation) { + SpaceAllocation other = (SpaceAllocation) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case INDIVIDUAL: + return (this.individualValue == other.individualValue) || (this.individualValue.equals(other.individualValue)); + case TEAM: + return (this.teamValue == other.teamValue) || (this.teamValue.equals(other.teamValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SpaceAllocation value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case INDIVIDUAL: { + g.writeStartObject(); + writeTag("individual", g); + IndividualSpaceAllocation.Serializer.INSTANCE.serialize(value.individualValue, g, true); + g.writeEndObject(); + break; + } + case TEAM: { + g.writeStartObject(); + writeTag("team", g); + TeamSpaceAllocation.Serializer.INSTANCE.serialize(value.teamValue, g, true); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public SpaceAllocation deserialize(JsonParser p) throws IOException, JsonParseException { + SpaceAllocation value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("individual".equals(tag)) { + IndividualSpaceAllocation fieldValue = null; + fieldValue = IndividualSpaceAllocation.Serializer.INSTANCE.deserialize(p, true); + value = SpaceAllocation.individual(fieldValue); + } + else if ("team".equals(tag)) { + TeamSpaceAllocation fieldValue = null; + fieldValue = TeamSpaceAllocation.Serializer.INSTANCE.deserialize(p, true); + value = SpaceAllocation.team(fieldValue); + } + else { + value = SpaceAllocation.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/SpaceUsage.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/SpaceUsage.java new file mode 100644 index 000000000..ca96533ff --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/SpaceUsage.java @@ -0,0 +1,175 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Information about a user's space usage and quota. + */ +public class SpaceUsage { + // struct users.SpaceUsage (users.stone) + + protected final long used; + @Nonnull + protected final SpaceAllocation allocation; + + /** + * Information about a user's space usage and quota. + * + * @param used The user's total space usage (bytes). + * @param allocation The user's space allocation. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public SpaceUsage(long used, @Nonnull SpaceAllocation allocation) { + this.used = used; + if (allocation == null) { + throw new IllegalArgumentException("Required value for 'allocation' is null"); + } + this.allocation = allocation; + } + + /** + * The user's total space usage (bytes). + * + * @return value for this field. + */ + public long getUsed() { + return used; + } + + /** + * The user's space allocation. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public SpaceAllocation getAllocation() { + return allocation; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.used, + this.allocation + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + SpaceUsage other = (SpaceUsage) obj; + return (this.used == other.used) + && ((this.allocation == other.allocation) || (this.allocation.equals(other.allocation))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(SpaceUsage value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("used"); + StoneSerializers.uInt64().serialize(value.used, g); + g.writeFieldName("allocation"); + SpaceAllocation.Serializer.INSTANCE.serialize(value.allocation, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public SpaceUsage deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + SpaceUsage value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_used = null; + SpaceAllocation f_allocation = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("used".equals(field)) { + f_used = StoneSerializers.uInt64().deserialize(p); + } + else if ("allocation".equals(field)) { + f_allocation = SpaceAllocation.Serializer.INSTANCE.deserialize(p); + } + else { + skipValue(p); + } + } + if (f_used == null) { + throw new JsonParseException(p, "Required field \"used\" missing."); + } + if (f_allocation == null) { + throw new JsonParseException(p, "Required field \"allocation\" missing."); + } + value = new SpaceUsage(f_used, f_allocation); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Team.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Team.java new file mode 100644 index 000000000..69c69c0e9 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/Team.java @@ -0,0 +1,180 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +/** + * Information about a team. + */ +public class Team { + // struct users.Team (users.stone) + + @Nonnull + protected final String id; + @Nonnull + protected final String name; + + /** + * Information about a team. + * + * @param id The team's unique ID. Must not be {@code null}. + * @param name The name of the team. Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Team(@Nonnull String id, @Nonnull String name) { + if (id == null) { + throw new IllegalArgumentException("Required value for 'id' is null"); + } + this.id = id; + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + } + + /** + * The team's unique ID. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getId() { + return id; + } + + /** + * The name of the team. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.id, + this.name + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Team other = (Team) obj; + return ((this.id == other.id) || (this.id.equals(other.id))) + && ((this.name == other.name) || (this.name.equals(other.name))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Team value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("id"); + StoneSerializers.string().serialize(value.id, g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Team deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Team value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + String f_id = null; + String f_name = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("id".equals(field)) { + f_id = StoneSerializers.string().deserialize(p); + } + else if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_id == null) { + throw new JsonParseException(p, "Required field \"id\" missing."); + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new Team(f_id, f_name); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/TeamSpaceAllocation.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/TeamSpaceAllocation.java new file mode 100644 index 000000000..49937820a --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/TeamSpaceAllocation.java @@ -0,0 +1,250 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.v2.teamcommon.MemberSpaceLimitType; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +public class TeamSpaceAllocation { + // struct users.TeamSpaceAllocation (users.stone) + + protected final long used; + protected final long allocated; + protected final long userWithinTeamSpaceAllocated; + @Nonnull + protected final MemberSpaceLimitType userWithinTeamSpaceLimitType; + protected final long userWithinTeamSpaceUsedCached; + + /** + * + * @param used The total space currently used by the user's team (bytes). + * @param allocated The total space allocated to the user's team (bytes). + * @param userWithinTeamSpaceAllocated The total space allocated to the + * user within its team allocated space (0 means that no restriction is + * imposed on the user's quota within its team). + * @param userWithinTeamSpaceLimitType The type of the space limit imposed + * on the team member (off, alert_only, stop_sync). Must not be {@code + * null}. + * @param userWithinTeamSpaceUsedCached An accurate cached calculation of a + * team member's total space usage (bytes). + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TeamSpaceAllocation(long used, long allocated, long userWithinTeamSpaceAllocated, @Nonnull MemberSpaceLimitType userWithinTeamSpaceLimitType, long userWithinTeamSpaceUsedCached) { + this.used = used; + this.allocated = allocated; + this.userWithinTeamSpaceAllocated = userWithinTeamSpaceAllocated; + if (userWithinTeamSpaceLimitType == null) { + throw new IllegalArgumentException("Required value for 'userWithinTeamSpaceLimitType' is null"); + } + this.userWithinTeamSpaceLimitType = userWithinTeamSpaceLimitType; + this.userWithinTeamSpaceUsedCached = userWithinTeamSpaceUsedCached; + } + + /** + * The total space currently used by the user's team (bytes). + * + * @return value for this field. + */ + public long getUsed() { + return used; + } + + /** + * The total space allocated to the user's team (bytes). + * + * @return value for this field. + */ + public long getAllocated() { + return allocated; + } + + /** + * The total space allocated to the user within its team allocated space (0 + * means that no restriction is imposed on the user's quota within its + * team). + * + * @return value for this field. + */ + public long getUserWithinTeamSpaceAllocated() { + return userWithinTeamSpaceAllocated; + } + + /** + * The type of the space limit imposed on the team member (off, alert_only, + * stop_sync). + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public MemberSpaceLimitType getUserWithinTeamSpaceLimitType() { + return userWithinTeamSpaceLimitType; + } + + /** + * An accurate cached calculation of a team member's total space usage + * (bytes). + * + * @return value for this field. + */ + public long getUserWithinTeamSpaceUsedCached() { + return userWithinTeamSpaceUsedCached; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.used, + this.allocated, + this.userWithinTeamSpaceAllocated, + this.userWithinTeamSpaceLimitType, + this.userWithinTeamSpaceUsedCached + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + TeamSpaceAllocation other = (TeamSpaceAllocation) obj; + return (this.used == other.used) + && (this.allocated == other.allocated) + && (this.userWithinTeamSpaceAllocated == other.userWithinTeamSpaceAllocated) + && ((this.userWithinTeamSpaceLimitType == other.userWithinTeamSpaceLimitType) || (this.userWithinTeamSpaceLimitType.equals(other.userWithinTeamSpaceLimitType))) + && (this.userWithinTeamSpaceUsedCached == other.userWithinTeamSpaceUsedCached) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TeamSpaceAllocation value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("used"); + StoneSerializers.uInt64().serialize(value.used, g); + g.writeFieldName("allocated"); + StoneSerializers.uInt64().serialize(value.allocated, g); + g.writeFieldName("user_within_team_space_allocated"); + StoneSerializers.uInt64().serialize(value.userWithinTeamSpaceAllocated, g); + g.writeFieldName("user_within_team_space_limit_type"); + MemberSpaceLimitType.Serializer.INSTANCE.serialize(value.userWithinTeamSpaceLimitType, g); + g.writeFieldName("user_within_team_space_used_cached"); + StoneSerializers.uInt64().serialize(value.userWithinTeamSpaceUsedCached, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public TeamSpaceAllocation deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + TeamSpaceAllocation value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_used = null; + Long f_allocated = null; + Long f_userWithinTeamSpaceAllocated = null; + MemberSpaceLimitType f_userWithinTeamSpaceLimitType = null; + Long f_userWithinTeamSpaceUsedCached = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("used".equals(field)) { + f_used = StoneSerializers.uInt64().deserialize(p); + } + else if ("allocated".equals(field)) { + f_allocated = StoneSerializers.uInt64().deserialize(p); + } + else if ("user_within_team_space_allocated".equals(field)) { + f_userWithinTeamSpaceAllocated = StoneSerializers.uInt64().deserialize(p); + } + else if ("user_within_team_space_limit_type".equals(field)) { + f_userWithinTeamSpaceLimitType = MemberSpaceLimitType.Serializer.INSTANCE.deserialize(p); + } + else if ("user_within_team_space_used_cached".equals(field)) { + f_userWithinTeamSpaceUsedCached = StoneSerializers.uInt64().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_used == null) { + throw new JsonParseException(p, "Required field \"used\" missing."); + } + if (f_allocated == null) { + throw new JsonParseException(p, "Required field \"allocated\" missing."); + } + if (f_userWithinTeamSpaceAllocated == null) { + throw new JsonParseException(p, "Required field \"user_within_team_space_allocated\" missing."); + } + if (f_userWithinTeamSpaceLimitType == null) { + throw new JsonParseException(p, "Required field \"user_within_team_space_limit_type\" missing."); + } + if (f_userWithinTeamSpaceUsedCached == null) { + throw new JsonParseException(p, "Required field \"user_within_team_space_used_cached\" missing."); + } + value = new TeamSpaceAllocation(f_used, f_allocated, f_userWithinTeamSpaceAllocated, f_userWithinTeamSpaceLimitType, f_userWithinTeamSpaceUsedCached); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeature.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeature.java new file mode 100644 index 000000000..9ba9bd1fe --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeature.java @@ -0,0 +1,100 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * A set of features that a Dropbox User account may have configured. + */ +public enum UserFeature { + // union users.UserFeature (users.stone) + /** + * This feature contains information about how the user's Paper files are + * stored. + */ + PAPER_AS_FILES, + /** + * This feature allows users to lock files in order to restrict other users + * from editing them. + */ + FILE_LOCKING, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserFeature value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case PAPER_AS_FILES: { + g.writeString("paper_as_files"); + break; + } + case FILE_LOCKING: { + g.writeString("file_locking"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserFeature deserialize(JsonParser p) throws IOException, JsonParseException { + UserFeature value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("paper_as_files".equals(tag)) { + value = UserFeature.PAPER_AS_FILES; + } + else if ("file_locking".equals(tag)) { + value = UserFeature.FILE_LOCKING; + } + else { + value = UserFeature.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeatureValue.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeatureValue.java new file mode 100644 index 000000000..8af3c2422 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeatureValue.java @@ -0,0 +1,364 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * Values that correspond to entries in {@link UserFeature}. + * + *

This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance.

+ * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class UserFeatureValue { + // union users.UserFeatureValue (users.stone) + + /** + * Discriminating tag type for {@link UserFeatureValue}. + */ + public enum Tag { + PAPER_AS_FILES, // PaperAsFilesValue + FILE_LOCKING, // FileLockingValue + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final UserFeatureValue OTHER = new UserFeatureValue().withTag(Tag.OTHER); + + private Tag _tag; + private PaperAsFilesValue paperAsFilesValue; + private FileLockingValue fileLockingValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UserFeatureValue() { + } + + + /** + * Values that correspond to entries in {@link UserFeature}. + * + * @param _tag Discriminating tag for this instance. + */ + private UserFeatureValue withTag(Tag _tag) { + UserFeatureValue result = new UserFeatureValue(); + result._tag = _tag; + return result; + } + + /** + * Values that correspond to entries in {@link UserFeature}. + * + * @param paperAsFilesValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserFeatureValue withTagAndPaperAsFiles(Tag _tag, PaperAsFilesValue paperAsFilesValue) { + UserFeatureValue result = new UserFeatureValue(); + result._tag = _tag; + result.paperAsFilesValue = paperAsFilesValue; + return result; + } + + /** + * Values that correspond to entries in {@link UserFeature}. + * + * @param fileLockingValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UserFeatureValue withTagAndFileLocking(Tag _tag, FileLockingValue fileLockingValue) { + UserFeatureValue result = new UserFeatureValue(); + result._tag = _tag; + result.fileLockingValue = fileLockingValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UserFeatureValue}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#PAPER_AS_FILES}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#PAPER_AS_FILES}, {@code false} otherwise. + */ + public boolean isPaperAsFiles() { + return this._tag == Tag.PAPER_AS_FILES; + } + + /** + * Returns an instance of {@code UserFeatureValue} that has its tag set to + * {@link Tag#PAPER_AS_FILES}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserFeatureValue} with its tag set to {@link + * Tag#PAPER_AS_FILES}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserFeatureValue paperAsFiles(PaperAsFilesValue value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserFeatureValue().withTagAndPaperAsFiles(Tag.PAPER_AS_FILES, value); + } + + /** + * This instance must be tagged as {@link Tag#PAPER_AS_FILES}. + * + * @return The {@link PaperAsFilesValue} value associated with this instance + * if {@link #isPaperAsFiles} is {@code true}. + * + * @throws IllegalStateException If {@link #isPaperAsFiles} is {@code + * false}. + */ + public PaperAsFilesValue getPaperAsFilesValue() { + if (this._tag != Tag.PAPER_AS_FILES) { + throw new IllegalStateException("Invalid tag: required Tag.PAPER_AS_FILES, but was Tag." + this._tag.name()); + } + return paperAsFilesValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#FILE_LOCKING}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#FILE_LOCKING}, {@code false} otherwise. + */ + public boolean isFileLocking() { + return this._tag == Tag.FILE_LOCKING; + } + + /** + * Returns an instance of {@code UserFeatureValue} that has its tag set to + * {@link Tag#FILE_LOCKING}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UserFeatureValue} with its tag set to {@link + * Tag#FILE_LOCKING}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UserFeatureValue fileLocking(FileLockingValue value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UserFeatureValue().withTagAndFileLocking(Tag.FILE_LOCKING, value); + } + + /** + * This instance must be tagged as {@link Tag#FILE_LOCKING}. + * + * @return The {@link FileLockingValue} value associated with this instance + * if {@link #isFileLocking} is {@code true}. + * + * @throws IllegalStateException If {@link #isFileLocking} is {@code + * false}. + */ + public FileLockingValue getFileLockingValue() { + if (this._tag != Tag.FILE_LOCKING) { + throw new IllegalStateException("Invalid tag: required Tag.FILE_LOCKING, but was Tag." + this._tag.name()); + } + return fileLockingValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.paperAsFilesValue, + this.fileLockingValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UserFeatureValue) { + UserFeatureValue other = (UserFeatureValue) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case PAPER_AS_FILES: + return (this.paperAsFilesValue == other.paperAsFilesValue) || (this.paperAsFilesValue.equals(other.paperAsFilesValue)); + case FILE_LOCKING: + return (this.fileLockingValue == other.fileLockingValue) || (this.fileLockingValue.equals(other.fileLockingValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserFeatureValue value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case PAPER_AS_FILES: { + g.writeStartObject(); + writeTag("paper_as_files", g); + g.writeFieldName("paper_as_files"); + PaperAsFilesValue.Serializer.INSTANCE.serialize(value.paperAsFilesValue, g); + g.writeEndObject(); + break; + } + case FILE_LOCKING: { + g.writeStartObject(); + writeTag("file_locking", g); + g.writeFieldName("file_locking"); + FileLockingValue.Serializer.INSTANCE.serialize(value.fileLockingValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserFeatureValue deserialize(JsonParser p) throws IOException, JsonParseException { + UserFeatureValue value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("paper_as_files".equals(tag)) { + PaperAsFilesValue fieldValue = null; + expectField("paper_as_files", p); + fieldValue = PaperAsFilesValue.Serializer.INSTANCE.deserialize(p); + value = UserFeatureValue.paperAsFiles(fieldValue); + } + else if ("file_locking".equals(tag)) { + FileLockingValue fieldValue = null; + expectField("file_locking", p); + fieldValue = FileLockingValue.Serializer.INSTANCE.deserialize(p); + value = UserFeatureValue.fileLocking(fieldValue); + } + else { + value = UserFeatureValue.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchArg.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchArg.java new file mode 100644 index 000000000..eded6282f --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchArg.java @@ -0,0 +1,157 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +class UserFeaturesGetValuesBatchArg { + // struct users.UserFeaturesGetValuesBatchArg (users.stone) + + @Nonnull + protected final List features; + + /** + * + * @param features A list of features in {@link UserFeature}. If the list + * is empty, this route will return {@link + * UserFeaturesGetValuesBatchError}. Must not contain a {@code null} + * item and not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserFeaturesGetValuesBatchArg(@Nonnull List features) { + if (features == null) { + throw new IllegalArgumentException("Required value for 'features' is null"); + } + for (UserFeature x : features) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'features' is null"); + } + } + this.features = features; + } + + /** + * A list of features in {@link UserFeature}. If the list is empty, this + * route will return {@link UserFeaturesGetValuesBatchError}. + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getFeatures() { + return features; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.features + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserFeaturesGetValuesBatchArg other = (UserFeaturesGetValuesBatchArg) obj; + return (this.features == other.features) || (this.features.equals(other.features)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserFeaturesGetValuesBatchArg value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("features"); + StoneSerializers.list(UserFeature.Serializer.INSTANCE).serialize(value.features, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserFeaturesGetValuesBatchArg deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserFeaturesGetValuesBatchArg value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_features = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("features".equals(field)) { + f_features = StoneSerializers.list(UserFeature.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_features == null) { + throw new JsonParseException(p, "Required field \"features\" missing."); + } + value = new UserFeaturesGetValuesBatchArg(f_features); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchError.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchError.java new file mode 100644 index 000000000..1d560fae2 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchError.java @@ -0,0 +1,85 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum UserFeaturesGetValuesBatchError { + // union users.UserFeaturesGetValuesBatchError (users.stone) + /** + * At least one {@link UserFeature} must be included in the {@link + * UserFeaturesGetValuesBatchArg}.features list. + */ + EMPTY_FEATURES_LIST, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserFeaturesGetValuesBatchError value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case EMPTY_FEATURES_LIST: { + g.writeString("empty_features_list"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public UserFeaturesGetValuesBatchError deserialize(JsonParser p) throws IOException, JsonParseException { + UserFeaturesGetValuesBatchError value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("empty_features_list".equals(tag)) { + value = UserFeaturesGetValuesBatchError.EMPTY_FEATURES_LIST; + } + else { + value = UserFeaturesGetValuesBatchError.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchErrorException.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchErrorException.java new file mode 100644 index 000000000..f996828f7 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchErrorException.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link + * UserFeaturesGetValuesBatchError} error. + * + *

This exception is raised by {@link + * DbxUserUsersRequests#featuresGetValues(java.util.List)}.

+ */ +public class UserFeaturesGetValuesBatchErrorException extends DbxApiException { + // exception for routes: + // 2/users/features/get_values + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxUserUsersRequests#featuresGetValues(java.util.List)}. + */ + public final UserFeaturesGetValuesBatchError errorValue; + + public UserFeaturesGetValuesBatchErrorException(String routeName, String requestId, LocalizedText userMessage, UserFeaturesGetValuesBatchError errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchResult.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchResult.java new file mode 100644 index 000000000..9f4dc1d0b --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/UserFeaturesGetValuesBatchResult.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from users.stone */ + +package com.dropbox.core.v2.users; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Nonnull; + +public class UserFeaturesGetValuesBatchResult { + // struct users.UserFeaturesGetValuesBatchResult (users.stone) + + @Nonnull + protected final List values; + + /** + * + * @param values Must not contain a {@code null} item and not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public UserFeaturesGetValuesBatchResult(@Nonnull List values) { + if (values == null) { + throw new IllegalArgumentException("Required value for 'values' is null"); + } + for (UserFeatureValue x : values) { + if (x == null) { + throw new IllegalArgumentException("An item in list 'values' is null"); + } + } + this.values = values; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public List getValues() { + return values; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.values + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + UserFeaturesGetValuesBatchResult other = (UserFeaturesGetValuesBatchResult) obj; + return (this.values == other.values) || (this.values.equals(other.values)); + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UserFeaturesGetValuesBatchResult value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("values"); + StoneSerializers.list(UserFeatureValue.Serializer.INSTANCE).serialize(value.values, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public UserFeaturesGetValuesBatchResult deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + UserFeaturesGetValuesBatchResult value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + List f_values = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("values".equals(field)) { + f_values = StoneSerializers.list(UserFeatureValue.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_values == null) { + throw new JsonParseException(p, "Required field \"values\" missing."); + } + value = new UserFeaturesGetValuesBatchResult(f_values); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/package-info.java new file mode 100644 index 000000000..8e82453ba --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/package-info.java @@ -0,0 +1,11 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * This namespace contains endpoints and data types for user management. + * + *

See {@link com.dropbox.core.v2.users.DbxUserUsersRequests} for a list of + * possible requests for this namespace.

+ */ +package com.dropbox.core.v2.users; + diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/userscommon/AccountType.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/userscommon/AccountType.java new file mode 100644 index 000000000..069586084 --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/userscommon/AccountType.java @@ -0,0 +1,101 @@ +/* DO NOT EDIT */ +/* This file was generated from users_common.stone */ + +package com.dropbox.core.v2.userscommon; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * What type of account this user has. + */ +public enum AccountType { + // union users_common.AccountType (users_common.stone) + /** + * The basic account type. + */ + BASIC, + /** + * The Dropbox Pro account type. + */ + PRO, + /** + * The Dropbox Business account type. + */ + BUSINESS; + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(AccountType value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case BASIC: { + g.writeString("basic"); + break; + } + case PRO: { + g.writeString("pro"); + break; + } + case BUSINESS: { + g.writeString("business"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public AccountType deserialize(JsonParser p) throws IOException, JsonParseException { + AccountType value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("basic".equals(tag)) { + value = AccountType.BASIC; + } + else if ("pro".equals(tag)) { + value = AccountType.PRO; + } + else if ("business".equals(tag)) { + value = AccountType.BUSINESS; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/main/src/com/dropbox/core/v2/userscommon/package-info.java b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/userscommon/package-info.java new file mode 100644 index 000000000..c83cc6dcb --- /dev/null +++ b/core/build/generated_stone_source/main/src/com/dropbox/core/v2/userscommon/package-info.java @@ -0,0 +1,8 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * This namespace contains common data types used within the users namespace. + */ +package com.dropbox.core.v2.userscommon; + diff --git a/core/build/generated_stone_source/test/log/stone.log b/core/build/generated_stone_source/test/log/stone.log new file mode 100644 index 000000000..e69de29bb diff --git a/core/build/generated_stone_source/test/refs/javadoc-refs.json b/core/build/generated_stone_source/test/refs/javadoc-refs.json new file mode 100644 index 000000000..7531758c8 --- /dev/null +++ b/core/build/generated_stone_source/test/refs/javadoc-refs.json @@ -0,0 +1 @@ +{"data_types": {"test.BadFeel": {"fq_name": "test.BadFeel", "java_class": "com.dropbox.core.stone.test.BadFeel", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.Cat": {"fq_name": "test.Cat", "java_class": "com.dropbox.core.stone.test.Cat", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.stone.test.Cat.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.CatchAllUnion": {"fq_name": "test.CatchAllUnion", "java_class": "com.dropbox.core.stone.test.CatchAllUnion", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "test.ChildUnion": {"fq_name": "test.ChildUnion", "java_class": "com.dropbox.core.stone.test.ChildUnion", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "test.DefaultFloat": {"fq_name": "test.DefaultFloat", "java_class": "com.dropbox.core.stone.test.DefaultFloat", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "test.Dimensions": {"fq_name": "test.Dimensions", "java_class": "com.dropbox.core.stone.test.Dimensions", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.Dog": {"fq_name": "test.Dog", "java_class": "com.dropbox.core.stone.test.Dog", "visibility": "PUBLIC", "has_builder": true, "builder_class": "com.dropbox.core.stone.test.Dog.Builder", "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.DogSize": {"fq_name": "test.DogSize", "java_class": "com.dropbox.core.stone.test.DogSize", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.Fish": {"fq_name": "test.Fish", "java_class": "com.dropbox.core.stone.test.Fish", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.NestingUnion": {"fq_name": "test.NestingUnion", "java_class": "com.dropbox.core.stone.test.NestingUnion", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "test.ParentUnion": {"fq_name": "test.ParentUnion", "java_class": "com.dropbox.core.stone.test.ParentUnion", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.Pet": {"fq_name": "test.Pet", "java_class": "com.dropbox.core.stone.test.Pet", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.TankSize": {"fq_name": "test.TankSize", "java_class": "com.dropbox.core.stone.test.TankSize", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.Uninitialized": {"fq_name": "test.Uninitialized", "java_class": "com.dropbox.core.stone.test.Uninitialized", "visibility": "PACKAGE", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.UninitializedReason": {"fq_name": "test.UninitializedReason", "java_class": "com.dropbox.core.stone.test.UninitializedReason", "visibility": "PUBLIC", "has_builder": false, "builder_class": null, "serializer_visibility": "PACKAGE", "_type": "DataTypeReference"}, "test.ValueUnion": {"fq_name": "test.ValueUnion", "java_class": "com.dropbox.core.stone.test.ValueUnion", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}, "test.WithByte": {"fq_name": "test.WithByte", "java_class": "com.dropbox.core.stone.test.WithByte", "visibility": "NONE", "has_builder": false, "builder_class": null, "serializer_visibility": "NONE", "_type": "DataTypeReference"}}, "routes": {"test.test_download": {"fq_name": "test.test_download", "java_class": "com.dropbox.core.stone.test.DbxTestTestRequests", "visibility": "PUBLIC", "namespace_name": "test", "method": "testDownload", "has_builder": true, "builder_method": "testDownloadBuilder", "error_ref": null, "url_path": "2/test/test_download", "is_method_overloaded": false, "method_arg_classes": ["String", "String"], "_type": "RouteReference"}, "test.test_download_v2": {"fq_name": "test.test_download_v2", "java_class": "com.dropbox.core.stone.test.DbxTestTestRequests", "visibility": "PUBLIC", "namespace_name": "test", "method": "testDownloadV2", "has_builder": true, "builder_method": "testDownloadV2Builder", "error_ref": "test.ParentUnion", "url_path": "2/test/test_download_v2", "is_method_overloaded": false, "method_arg_classes": ["com.dropbox.core.stone.test.UninitializedReason", "String"], "_type": "RouteReference"}, "test.test_route": {"fq_name": "test.test_route", "java_class": "com.dropbox.core.stone.test.DbxTestTestRequests", "visibility": "PUBLIC", "namespace_name": "test", "method": "testRoute", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/test/test_route", "method_arg_classes": [], "is_method_overloaded": false, "_type": "RouteReference"}, "test.test_route_v2": {"fq_name": "test.test_route_v2", "java_class": "com.dropbox.core.stone.test.DbxTestTestRequests", "visibility": "PUBLIC", "namespace_name": "test", "method": "testRouteV2", "has_builder": false, "builder_method": null, "error_ref": "test.ParentUnion", "url_path": "2/test/test_route_v2", "is_method_overloaded": true, "method_arg_classes": ["String", "java.util.Date"], "_type": "RouteReference"}, "test.test_upload": {"fq_name": "test.test_upload", "java_class": "com.dropbox.core.stone.test.DbxTestTestRequests", "visibility": "PUBLIC", "namespace_name": "test", "method": "testUpload", "has_builder": false, "builder_method": null, "error_ref": null, "url_path": "2/test/test_upload", "is_method_overloaded": false, "method_arg_classes": ["com.dropbox.core.stone.test.UninitializedReason", "String"], "_type": "RouteReference"}, "test.test_upload_v2": {"fq_name": "test.test_upload_v2", "java_class": "com.dropbox.core.stone.test.DbxTestTestRequests", "visibility": "PUBLIC", "namespace_name": "test", "method": "testUploadV2", "has_builder": true, "builder_method": "testUploadV2Builder", "error_ref": "test.ParentUnion", "url_path": "2/test/test_upload_v2", "is_method_overloaded": false, "method_arg_classes": ["String", "String"], "_type": "RouteReference"}, "test.test_upload_v3": {"fq_name": "test.test_upload_v3", "java_class": "com.dropbox.core.stone.test.DbxTestTestRequests", "visibility": "PUBLIC", "namespace_name": "test", "method": "testUploadV3", "has_builder": true, "builder_method": "testUploadV3Builder", "error_ref": "test.ParentUnion", "url_path": "2/test/test_upload_v3", "is_method_overloaded": false, "method_arg_classes": ["String", "String"], "_type": "RouteReference"}}, "fields": {"test.BadFeel.meh": {"fq_name": "test.BadFeel.meh", "param_name": "mehValue", "static_instance": "MEH", "getter_method": null, "containing_data_type_ref": "test.BadFeel", "route_refs": [], "_type": "FieldReference"}, "test.BadFeel.blah": {"fq_name": "test.BadFeel.blah", "param_name": "blahValue", "static_instance": "BLAH", "getter_method": null, "containing_data_type_ref": "test.BadFeel", "route_refs": [], "_type": "FieldReference"}, "test.Cat.name": {"fq_name": "test.Cat.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "test.Cat", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.Cat.born": {"fq_name": "test.Cat.born", "param_name": "born", "static_instance": null, "getter_method": "getBorn", "containing_data_type_ref": "test.Cat", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.Cat.breed": {"fq_name": "test.Cat.breed", "param_name": "breed", "static_instance": null, "getter_method": "getBreed", "containing_data_type_ref": "test.Cat", "route_refs": [], "_type": "FieldReference"}, "test.Cat.indoor": {"fq_name": "test.Cat.indoor", "param_name": "indoor", "static_instance": null, "getter_method": "getIndoor", "containing_data_type_ref": "test.Cat", "route_refs": [], "_type": "FieldReference"}, "test.CatchAllUnion.alpha": {"fq_name": "test.CatchAllUnion.alpha", "param_name": "alphaValue", "static_instance": "ALPHA", "getter_method": null, "containing_data_type_ref": "test.CatchAllUnion", "route_refs": [], "_type": "FieldReference"}, "test.CatchAllUnion.beta": {"fq_name": "test.CatchAllUnion.beta", "param_name": "betaValue", "static_instance": "BETA", "getter_method": null, "containing_data_type_ref": "test.CatchAllUnion", "route_refs": [], "_type": "FieldReference"}, "test.CatchAllUnion.one": {"fq_name": "test.CatchAllUnion.one", "param_name": "oneValue", "static_instance": "ONE", "getter_method": null, "containing_data_type_ref": "test.CatchAllUnion", "route_refs": [], "_type": "FieldReference"}, "test.CatchAllUnion.two": {"fq_name": "test.CatchAllUnion.two", "param_name": "twoValue", "static_instance": "TWO", "getter_method": null, "containing_data_type_ref": "test.CatchAllUnion", "route_refs": [], "_type": "FieldReference"}, "test.CatchAllUnion.other": {"fq_name": "test.CatchAllUnion.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "test.CatchAllUnion", "route_refs": [], "_type": "FieldReference"}, "test.ChildUnion.alpha": {"fq_name": "test.ChildUnion.alpha", "param_name": "alphaValue", "static_instance": "ALPHA", "getter_method": null, "containing_data_type_ref": "test.ChildUnion", "route_refs": [], "_type": "FieldReference"}, "test.ChildUnion.beta": {"fq_name": "test.ChildUnion.beta", "param_name": "betaValue", "static_instance": "BETA", "getter_method": null, "containing_data_type_ref": "test.ChildUnion", "route_refs": [], "_type": "FieldReference"}, "test.ChildUnion.delta": {"fq_name": "test.ChildUnion.delta", "param_name": "deltaValue", "static_instance": "DELTA", "getter_method": null, "containing_data_type_ref": "test.ChildUnion", "route_refs": [], "_type": "FieldReference"}, "test.ChildUnion.gamma": {"fq_name": "test.ChildUnion.gamma", "param_name": "gammaValue", "static_instance": "GAMMA", "getter_method": null, "containing_data_type_ref": "test.ChildUnion", "route_refs": [], "_type": "FieldReference"}, "test.ChildUnion.omega": {"fq_name": "test.ChildUnion.omega", "param_name": "omegaValue", "static_instance": "OMEGA", "getter_method": null, "containing_data_type_ref": "test.ChildUnion", "route_refs": [], "_type": "FieldReference"}, "test.DefaultFloat.duration": {"fq_name": "test.DefaultFloat.duration", "param_name": "duration", "static_instance": null, "getter_method": "getDuration", "containing_data_type_ref": "test.DefaultFloat", "route_refs": [], "_type": "FieldReference"}, "test.Dimensions.width": {"fq_name": "test.Dimensions.width", "param_name": "width", "static_instance": null, "getter_method": "getWidth", "containing_data_type_ref": "test.Dimensions", "route_refs": [], "_type": "FieldReference"}, "test.Dimensions.height": {"fq_name": "test.Dimensions.height", "param_name": "height", "static_instance": null, "getter_method": "getHeight", "containing_data_type_ref": "test.Dimensions", "route_refs": [], "_type": "FieldReference"}, "test.Dog.name": {"fq_name": "test.Dog.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "test.Dog", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.Dog.breed": {"fq_name": "test.Dog.breed", "param_name": "breed", "static_instance": null, "getter_method": "getBreed", "containing_data_type_ref": "test.Dog", "route_refs": [], "_type": "FieldReference"}, "test.Dog.born": {"fq_name": "test.Dog.born", "param_name": "born", "static_instance": null, "getter_method": "getBorn", "containing_data_type_ref": "test.Dog", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.Dog.size": {"fq_name": "test.Dog.size", "param_name": "size", "static_instance": null, "getter_method": "getSize", "containing_data_type_ref": "test.Dog", "route_refs": [], "_type": "FieldReference"}, "test.DogSize.lap": {"fq_name": "test.DogSize.lap", "param_name": "lapValue", "static_instance": "LAP", "getter_method": null, "containing_data_type_ref": "test.DogSize", "route_refs": [], "_type": "FieldReference"}, "test.DogSize.small": {"fq_name": "test.DogSize.small", "param_name": "smallValue", "static_instance": "SMALL", "getter_method": null, "containing_data_type_ref": "test.DogSize", "route_refs": [], "_type": "FieldReference"}, "test.DogSize.medium": {"fq_name": "test.DogSize.medium", "param_name": "mediumValue", "static_instance": "MEDIUM", "getter_method": null, "containing_data_type_ref": "test.DogSize", "route_refs": [], "_type": "FieldReference"}, "test.DogSize.large": {"fq_name": "test.DogSize.large", "param_name": "largeValue", "static_instance": "LARGE", "getter_method": null, "containing_data_type_ref": "test.DogSize", "route_refs": [], "_type": "FieldReference"}, "test.Fish.name": {"fq_name": "test.Fish.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "test.Fish", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.Fish.species": {"fq_name": "test.Fish.species", "param_name": "species", "static_instance": null, "getter_method": "getSpecies", "containing_data_type_ref": "test.Fish", "route_refs": [], "_type": "FieldReference"}, "test.Fish.tank_size": {"fq_name": "test.Fish.tank_size", "param_name": "tankSize", "static_instance": null, "getter_method": "getTankSize", "containing_data_type_ref": "test.Fish", "route_refs": [], "_type": "FieldReference"}, "test.Fish.born": {"fq_name": "test.Fish.born", "param_name": "born", "static_instance": null, "getter_method": "getBorn", "containing_data_type_ref": "test.Fish", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.NestingUnion.simple": {"fq_name": "test.NestingUnion.simple", "param_name": "simpleValue", "static_instance": null, "getter_method": "getSimpleValue", "containing_data_type_ref": "test.NestingUnion", "route_refs": [], "_type": "FieldReference"}, "test.NestingUnion.value": {"fq_name": "test.NestingUnion.value", "param_name": "valueValue", "static_instance": null, "getter_method": "getValueValue", "containing_data_type_ref": "test.NestingUnion", "route_refs": [], "_type": "FieldReference"}, "test.NestingUnion.catch_all": {"fq_name": "test.NestingUnion.catch_all", "param_name": "catchAllValue", "static_instance": null, "getter_method": "getCatchAllValue", "containing_data_type_ref": "test.NestingUnion", "route_refs": [], "_type": "FieldReference"}, "test.NestingUnion.other": {"fq_name": "test.NestingUnion.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "test.NestingUnion", "route_refs": [], "_type": "FieldReference"}, "test.ParentUnion.alpha": {"fq_name": "test.ParentUnion.alpha", "param_name": "alphaValue", "static_instance": "ALPHA", "getter_method": null, "containing_data_type_ref": "test.ParentUnion", "route_refs": [], "_type": "FieldReference"}, "test.ParentUnion.beta": {"fq_name": "test.ParentUnion.beta", "param_name": "betaValue", "static_instance": "BETA", "getter_method": null, "containing_data_type_ref": "test.ParentUnion", "route_refs": [], "_type": "FieldReference"}, "test.Pet.name": {"fq_name": "test.Pet.name", "param_name": "name", "static_instance": null, "getter_method": "getName", "containing_data_type_ref": "test.Pet", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.Pet.born": {"fq_name": "test.Pet.born", "param_name": "born", "static_instance": null, "getter_method": "getBorn", "containing_data_type_ref": "test.Pet", "route_refs": ["test.test_route_v2"], "_type": "FieldReference"}, "test.TankSize.bowl": {"fq_name": "test.TankSize.bowl", "param_name": "bowlValue", "static_instance": "BOWL", "getter_method": null, "containing_data_type_ref": "test.TankSize", "route_refs": [], "_type": "FieldReference"}, "test.TankSize.medium": {"fq_name": "test.TankSize.medium", "param_name": "mediumValue", "static_instance": null, "getter_method": "getMediumValue", "containing_data_type_ref": "test.TankSize", "route_refs": [], "_type": "FieldReference"}, "test.TankSize.aquarium": {"fq_name": "test.TankSize.aquarium", "param_name": "aquariumValue", "static_instance": null, "getter_method": "getAquariumValue", "containing_data_type_ref": "test.TankSize", "route_refs": [], "_type": "FieldReference"}, "test.TankSize.other": {"fq_name": "test.TankSize.other", "param_name": "otherValue", "static_instance": "OTHER", "getter_method": null, "containing_data_type_ref": "test.TankSize", "route_refs": [], "_type": "FieldReference"}, "test.Uninitialized.reason": {"fq_name": "test.Uninitialized.reason", "param_name": "reason", "static_instance": null, "getter_method": "getReason", "containing_data_type_ref": "test.Uninitialized", "route_refs": [], "_type": "FieldReference"}, "test.Uninitialized.session_id": {"fq_name": "test.Uninitialized.session_id", "param_name": "sessionId", "static_instance": null, "getter_method": "getSessionId", "containing_data_type_ref": "test.Uninitialized", "route_refs": [], "_type": "FieldReference"}, "test.UninitializedReason.bad_request": {"fq_name": "test.UninitializedReason.bad_request", "param_name": "badRequestValue", "static_instance": "BAD_REQUEST", "getter_method": null, "containing_data_type_ref": "test.UninitializedReason", "route_refs": [], "_type": "FieldReference"}, "test.UninitializedReason.bad_header": {"fq_name": "test.UninitializedReason.bad_header", "param_name": "badHeaderValue", "static_instance": null, "getter_method": "getBadHeaderValue", "containing_data_type_ref": "test.UninitializedReason", "route_refs": [], "_type": "FieldReference"}, "test.UninitializedReason.bad_feels": {"fq_name": "test.UninitializedReason.bad_feels", "param_name": "badFeelsValue", "static_instance": null, "getter_method": "getBadFeelsValue", "containing_data_type_ref": "test.UninitializedReason", "route_refs": [], "_type": "FieldReference"}, "test.ValueUnion.alpha": {"fq_name": "test.ValueUnion.alpha", "param_name": "alphaValue", "static_instance": "ALPHA", "getter_method": null, "containing_data_type_ref": "test.ValueUnion", "route_refs": [], "_type": "FieldReference"}, "test.ValueUnion.beta": {"fq_name": "test.ValueUnion.beta", "param_name": "betaValue", "static_instance": "BETA", "getter_method": null, "containing_data_type_ref": "test.ValueUnion", "route_refs": [], "_type": "FieldReference"}, "test.ValueUnion.too_much": {"fq_name": "test.ValueUnion.too_much", "param_name": "tooMuchValue", "static_instance": null, "getter_method": "getTooMuchValue", "containing_data_type_ref": "test.ValueUnion", "route_refs": [], "_type": "FieldReference"}, "test.ValueUnion.too_little": {"fq_name": "test.ValueUnion.too_little", "param_name": "tooLittleValue", "static_instance": null, "getter_method": "getTooLittleValue", "containing_data_type_ref": "test.ValueUnion", "route_refs": [], "_type": "FieldReference"}, "test.ValueUnion.just_right": {"fq_name": "test.ValueUnion.just_right", "param_name": "justRightValue", "static_instance": "JUST_RIGHT", "getter_method": null, "containing_data_type_ref": "test.ValueUnion", "route_refs": [], "_type": "FieldReference"}, "test.WithByte.field1": {"fq_name": "test.WithByte.field1", "param_name": "field1", "static_instance": null, "getter_method": "getField1", "containing_data_type_ref": "test.WithByte", "route_refs": [], "_type": "FieldReference"}}} \ No newline at end of file diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/DbxClientV2Base.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/DbxClientV2Base.java new file mode 100644 index 000000000..54cd99946 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/DbxClientV2Base.java @@ -0,0 +1,35 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone; + +import com.dropbox.core.stone.test.DbxTestTestRequests; +import com.dropbox.core.v2.DbxRawClientV2; + +/** + * TestClass. + */ +public class DbxClientV2Base { + protected final DbxRawClientV2 _client; + + private final DbxTestTestRequests test; + + /** + * For internal use only. + * + * @param _client Raw v2 client to use for issuing requests + */ + protected DbxClientV2Base(DbxRawClientV2 _client) { + this._client = _client; + this.test = new DbxTestTestRequests(_client); + } + + /** + * Returns client for issuing requests in the {@code "test"} namespace. + * + * @return Dropbox test client + */ + public DbxTestTestRequests test() { + return test; + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/BadFeel.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/BadFeel.java new file mode 100644 index 000000000..fcb66225a --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/BadFeel.java @@ -0,0 +1,81 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum BadFeel { + // union test.BadFeel (test.stone) + MEH, + BLAH; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(BadFeel value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case MEH: { + g.writeString("meh"); + break; + } + case BLAH: { + g.writeString("blah"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public BadFeel deserialize(JsonParser p) throws IOException, JsonParseException { + BadFeel value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("meh".equals(tag)) { + value = BadFeel.MEH; + } + else if ("blah".equals(tag)) { + value = BadFeel.BLAH; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Cat.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Cat.java new file mode 100644 index 000000000..b3f9271ec --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Cat.java @@ -0,0 +1,309 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class Cat extends Pet { + // struct test.Cat (test.stone) + + @Nullable + protected final String breed; + @Nullable + protected final Boolean indoor; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Cat(@Nonnull String name, @Nullable Date born, @Nullable String breed, @Nullable Boolean indoor) { + super(name, born); + this.breed = breed; + this.indoor = indoor; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Cat(@Nonnull String name) { + this(name, null, null, null); + } + + /** + * Used in {@link DbxTestTestRequests#testRouteV2(String,Date)} + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getBorn() { + return born; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public String getBreed() { + return breed; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Boolean getIndoor() { + return indoor; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name) { + return new Builder(name); + } + + /** + * Builder for {@link Cat}. + */ + public static class Builder { + protected final String name; + + protected Date born; + protected String breed; + protected Boolean indoor; + + protected Builder(String name) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.born = null; + this.breed = null; + this.indoor = null; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public Builder withBorn(Date born) { + this.born = LangUtil.truncateMillis(born); + return this; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public Builder withBreed(String breed) { + this.breed = breed; + return this; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public Builder withIndoor(Boolean indoor) { + this.indoor = indoor; + return this; + } + + /** + * Builds an instance of {@link Cat} configured with this builder's + * values + * + * @return new instance of {@link Cat} + */ + public Cat build() { + return new Cat(name, born, breed, indoor); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.breed, + this.indoor + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Cat other = (Cat) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.born == other.born) || (this.born != null && this.born.equals(other.born))) + && ((this.breed == other.breed) || (this.breed != null && this.breed.equals(other.breed))) + && ((this.indoor == other.indoor) || (this.indoor != null && this.indoor.equals(other.indoor))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Cat value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("cat", g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.born != null) { + g.writeFieldName("born"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.born, g); + } + if (value.breed != null) { + g.writeFieldName("breed"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.breed, g); + } + if (value.indoor != null) { + g.writeFieldName("indoor"); + StoneSerializers.nullable(StoneSerializers.boolean_()).serialize(value.indoor, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Cat deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Cat value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("cat".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + Date f_born = null; + String f_breed = null; + Boolean f_indoor = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("born".equals(field)) { + f_born = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("breed".equals(field)) { + f_breed = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + else if ("indoor".equals(field)) { + f_indoor = StoneSerializers.nullable(StoneSerializers.boolean_()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new Cat(f_name, f_born, f_breed, f_indoor); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/CatchAllUnion.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/CatchAllUnion.java new file mode 100644 index 000000000..368406d19 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/CatchAllUnion.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum CatchAllUnion { + // union test.CatchAllUnion (test.stone) + ALPHA, + BETA, + ONE, + TWO, + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + OTHER; // *catch_all + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(CatchAllUnion value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALPHA: { + g.writeString("alpha"); + break; + } + case BETA: { + g.writeString("beta"); + break; + } + case ONE: { + g.writeString("one"); + break; + } + case TWO: { + g.writeString("two"); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public CatchAllUnion deserialize(JsonParser p) throws IOException, JsonParseException { + CatchAllUnion value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("alpha".equals(tag)) { + value = CatchAllUnion.ALPHA; + } + else if ("beta".equals(tag)) { + value = CatchAllUnion.BETA; + } + else if ("one".equals(tag)) { + value = CatchAllUnion.ONE; + } + else if ("two".equals(tag)) { + value = CatchAllUnion.TWO; + } + else { + value = CatchAllUnion.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ChildUnion.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ChildUnion.java new file mode 100644 index 000000000..3fc8f116f --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ChildUnion.java @@ -0,0 +1,105 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ChildUnion { + // union test.ChildUnion (test.stone) + ALPHA, + BETA, + DELTA, + GAMMA, + OMEGA; + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ChildUnion value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALPHA: { + g.writeString("alpha"); + break; + } + case BETA: { + g.writeString("beta"); + break; + } + case DELTA: { + g.writeString("delta"); + break; + } + case GAMMA: { + g.writeString("gamma"); + break; + } + case OMEGA: { + g.writeString("omega"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public ChildUnion deserialize(JsonParser p) throws IOException, JsonParseException { + ChildUnion value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("alpha".equals(tag)) { + value = ChildUnion.ALPHA; + } + else if ("beta".equals(tag)) { + value = ChildUnion.BETA; + } + else if ("delta".equals(tag)) { + value = ChildUnion.DELTA; + } + else if ("gamma".equals(tag)) { + value = ChildUnion.GAMMA; + } + else if ("omega".equals(tag)) { + value = ChildUnion.OMEGA; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DbxTestTestRequests.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DbxTestTestRequests.java new file mode 100644 index 000000000..0a48582cb --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DbxTestTestRequests.java @@ -0,0 +1,366 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; +import com.dropbox.core.v2.DbxRawClientV2; +import com.dropbox.core.v2.DbxUploadStyleBuilder; + +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Routes in namespace "test". + */ +public class DbxTestTestRequests { + // namespace test (test.stone) + + private final DbxRawClientV2 client; + + public DbxTestTestRequests(DbxRawClientV2 client) { + this.client = client; + } + + // + // route 2/test/test_download + // + + /** + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader testDownload(Dog arg, List _headers) throws DbxApiException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/test/test_download", + arg, + false, + _headers, + Dog.Serializer.INSTANCE, + Fish.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"test_download\":" + ex.getErrorValue()); + } + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader testDownload(String name, String breed) throws DbxApiException, DbxException { + Dog _arg = new Dog(name, breed); + return testDownload(_arg, Collections.emptyList()); + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TestDownloadBuilder testDownloadBuilder(String name, String breed) { + Dog.Builder argBuilder_ = Dog.newBuilder(name, breed); + return new TestDownloadBuilder(this, argBuilder_); + } + + // + // route 2/test/test_download_v2 + // + + /** + * + * @param _headers Extra headers to send with request. + * + * @return Downloader used to download the response body and view the server + * response. + */ + DbxDownloader testDownloadV2(Uninitialized arg, List _headers) throws ParentUnionException, DbxException { + try { + return this.client.downloadStyle(this.client.getHost().getContent(), + "2/test/test_download_v2", + arg, + false, + _headers, + Uninitialized.Serializer.INSTANCE, + Fish.Serializer.INSTANCE, + ParentUnion.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ParentUnionException("2/test/test_download_v2", ex.getRequestId(), ex.getUserMessage(), (ParentUnion) ex.getErrorValue()); + } + } + + /** + * + * @param reason Must not be {@code null}. + * @param sessionId Must not be {@code null}. + * + * @return Downloader used to download the response body and view the server + * response. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxDownloader testDownloadV2(UninitializedReason reason, String sessionId) throws ParentUnionException, DbxException { + Uninitialized _arg = new Uninitialized(reason, sessionId); + return testDownloadV2(_arg, Collections.emptyList()); + } + + /** + * + * @param reason Must not be {@code null}. + * @param sessionId Must not be {@code null}. + * + * @return Downloader builder for configuring the request parameters and + * instantiating a downloader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TestDownloadV2Builder testDownloadV2Builder(UninitializedReason reason, String sessionId) { + return new TestDownloadV2Builder(this, reason, sessionId); + } + + // + // route 2/test/test_route + // + + /** + * {@link DbxTestTestRequests#testRouteV2(String,Date)} + */ + public void testRoute() throws DbxApiException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/test/test_route", + null, + false, + com.dropbox.core.stone.StoneSerializers.void_(), + com.dropbox.core.stone.StoneSerializers.void_(), + com.dropbox.core.stone.StoneSerializers.void_()); + } + catch (DbxWrappedException ex) { + throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"test_route\":" + ex.getErrorValue()); + } + } + + // + // route 2/test/test_route_v2 + // + + /** + * + */ + void testRouteV2(Pet arg) throws ParentUnionException, DbxException { + try { + this.client.rpcStyle(this.client.getHost().getApi(), + "2/test/test_route_v2", + arg, + false, + Pet.Serializer.INSTANCE, + com.dropbox.core.stone.StoneSerializers.void_(), + ParentUnion.Serializer.INSTANCE); + } + catch (DbxWrappedException ex) { + throw new ParentUnionException("2/test/test_route_v2", ex.getRequestId(), ex.getUserMessage(), (ParentUnion) ex.getErrorValue()); + } + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void testRouteV2(String name) throws ParentUnionException, DbxException { + Pet _arg = new Pet(name); + testRouteV2(_arg); + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public void testRouteV2(String name, Date born) throws ParentUnionException, DbxException { + Pet _arg = new Pet(name, born); + testRouteV2(_arg); + } + + // + // route 2/test/test_upload + // + + /** + * + * + * @return Uploader used to upload the request body and finish request. + */ + TestUploadUploader testUpload(Uninitialized arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), + "2/test/test_upload", + arg, + false, + Uninitialized.Serializer.INSTANCE); + return new TestUploadUploader(_uploader, this.client.getUserId()); + } + + /** + * + * @param reason Must not be {@code null}. + * @param sessionId Must not be {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TestUploadUploader testUpload(UninitializedReason reason, String sessionId) throws DbxException { + Uninitialized _arg = new Uninitialized(reason, sessionId); + return testUpload(_arg); + } + + // + // route 2/test/test_upload_v2 + // + + /** + * + * + * @return Uploader used to upload the request body and finish request. + */ + TestUploadV2Uploader testUploadV2(Dog arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), + "2/test/test_upload_v2", + arg, + false, + Dog.Serializer.INSTANCE); + return new TestUploadV2Uploader(_uploader, this.client.getUserId()); + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TestUploadV2Uploader testUploadV2(String name, String breed) throws DbxException { + Dog _arg = new Dog(name, breed); + return testUploadV2(_arg); + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @return Uploader builder for configuring request parameters and + * instantiating an uploader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TestUploadV2Builder testUploadV2Builder(String name, String breed) { + Dog.Builder argBuilder_ = Dog.newBuilder(name, breed); + return new TestUploadV2Builder(this, argBuilder_); + } + + // + // route 2/test/test_upload_v3 + // + + /** + * + * + * @return Uploader used to upload the request body and finish request. + */ + TestUploadV3Uploader testUploadV3(Dog arg) throws DbxException { + HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), + "2/test/test_upload_v3", + arg, + false, + Dog.Serializer.INSTANCE); + return new TestUploadV3Uploader(_uploader, this.client.getUserId()); + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @return Uploader used to upload the request body and finish request. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public TestUploadV3Uploader testUploadV3(String name, String breed) throws DbxException { + Dog _arg = new Dog(name, breed); + return testUploadV3(_arg); + } + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @return Uploader builder for configuring request parameters and + * instantiating an uploader. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DbxTestTestUploadV3Builder testUploadV3Builder(String name, String breed) { + Dog.Builder argBuilder_ = Dog.newBuilder(name, breed); + return new DbxTestTestUploadV3Builder(this, argBuilder_); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DbxTestTestUploadV3Builder.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DbxTestTestUploadV3Builder.java new file mode 100644 index 000000000..e8703bf9b --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DbxTestTestUploadV3Builder.java @@ -0,0 +1,68 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxUploadStyleBuilder; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTestTestRequests#testUploadV3Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class DbxTestTestUploadV3Builder extends DbxUploadStyleBuilder { + private final DbxTestTestRequests _client; + private final Dog.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue test + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + DbxTestTestUploadV3Builder(DbxTestTestRequests _client, Dog.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public DbxTestTestUploadV3Builder withBorn(Date born) { + this._builder.withBorn(born); + return this; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public DbxTestTestUploadV3Builder withSize(DogSize size) { + this._builder.withSize(size); + return this; + } + + @Override + public TestUploadV3Uploader start() throws ParentUnionException, DbxException { + Dog arg_ = this._builder.build(); + return _client.testUploadV3(arg_); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DefaultFloat.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DefaultFloat.java new file mode 100644 index 000000000..802b60861 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DefaultFloat.java @@ -0,0 +1,153 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class DefaultFloat { + // struct test.DefaultFloat (test.stone) + + protected final double duration; + + /** + * + * @param duration Must be greater than or equal to 60.0 and be less than + * or equal to 14400.0. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public DefaultFloat(double duration) { + if (duration < 60.0) { + throw new IllegalArgumentException("Number 'duration' is smaller than 60.0"); + } + if (duration > 14400.0) { + throw new IllegalArgumentException("Number 'duration' is larger than 14400.0"); + } + this.duration = duration; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ */ + public DefaultFloat() { + this(14400.0); + } + + /** + * + * @return value for this field, or {@code null} if not present. Defaults to + * 14400.0. + */ + public double getDuration() { + return duration; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.duration + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + DefaultFloat other = (DefaultFloat) obj; + return this.duration == other.duration; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DefaultFloat value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("duration"); + StoneSerializers.float64().serialize(value.duration, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public DefaultFloat deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + DefaultFloat value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Double f_duration = 14400.0; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("duration".equals(field)) { + f_duration = StoneSerializers.float64().deserialize(p); + } + else { + skipValue(p); + } + } + value = new DefaultFloat(f_duration); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Dimensions.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Dimensions.java new file mode 100644 index 000000000..7f7bb2c77 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Dimensions.java @@ -0,0 +1,154 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class Dimensions { + // struct test.Dimensions (test.stone) + + protected final long width; + protected final long height; + + public Dimensions(long width, long height) { + this.width = width; + this.height = height; + } + + /** + * + * @return value for this field. + */ + public long getWidth() { + return width; + } + + /** + * + * @return value for this field. + */ + public long getHeight() { + return height; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.width, + this.height + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Dimensions other = (Dimensions) obj; + return (this.width == other.width) + && (this.height == other.height) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Dimensions value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("width"); + StoneSerializers.uInt32().serialize(value.width, g); + g.writeFieldName("height"); + StoneSerializers.uInt32().serialize(value.height, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Dimensions deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Dimensions value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + Long f_width = null; + Long f_height = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("width".equals(field)) { + f_width = StoneSerializers.uInt32().deserialize(p); + } + else if ("height".equals(field)) { + f_height = StoneSerializers.uInt32().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_width == null) { + throw new JsonParseException(p, "Required field \"width\" missing."); + } + if (f_height == null) { + throw new JsonParseException(p, "Required field \"height\" missing."); + } + value = new Dimensions(f_width, f_height); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Dog.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Dog.java new file mode 100644 index 000000000..16885828e --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Dog.java @@ -0,0 +1,309 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class Dog extends Pet { + // struct test.Dog (test.stone) + + @Nonnull + protected final String breed; + @Nullable + protected final DogSize size; + + /** + * Use {@link newBuilder} to create instances of this class without + * specifying values for all optional fields. + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Dog(@Nonnull String name, @Nonnull String breed, @Nullable Date born, @Nullable DogSize size) { + super(name, born); + if (breed == null) { + throw new IllegalArgumentException("Required value for 'breed' is null"); + } + this.breed = breed; + this.size = size; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Dog(@Nonnull String name, @Nonnull String breed) { + this(name, breed, null, null); + } + + /** + * Used in {@link DbxTestTestRequests#testRouteV2(String,Date)} + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getBreed() { + return breed; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getBorn() { + return born; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public DogSize getSize() { + return size; + } + + /** + * Returns a new builder for creating an instance of this class. + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param breed Must not be {@code null}. + * + * @return builder for this class. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public static Builder newBuilder(String name, String breed) { + return new Builder(name, breed); + } + + /** + * Builder for {@link Dog}. + */ + public static class Builder { + protected final String name; + protected final String breed; + + protected Date born; + protected DogSize size; + + protected Builder(String name, String breed) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + if (breed == null) { + throw new IllegalArgumentException("Required value for 'breed' is null"); + } + this.breed = breed; + this.born = null; + this.size = null; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public Builder withBorn(Date born) { + this.born = LangUtil.truncateMillis(born); + return this; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public Builder withSize(DogSize size) { + this.size = size; + return this; + } + + /** + * Builds an instance of {@link Dog} configured with this builder's + * values + * + * @return new instance of {@link Dog} + */ + public Dog build() { + return new Dog(name, breed, born, size); + } + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.breed, + this.size + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Dog other = (Dog) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.breed == other.breed) || (this.breed.equals(other.breed))) + && ((this.born == other.born) || (this.born != null && this.born.equals(other.born))) + && ((this.size == other.size) || (this.size != null && this.size.equals(other.size))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Dog value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("dog", g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("breed"); + StoneSerializers.string().serialize(value.breed, g); + if (value.born != null) { + g.writeFieldName("born"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.born, g); + } + if (value.size != null) { + g.writeFieldName("size"); + StoneSerializers.nullable(DogSize.Serializer.INSTANCE).serialize(value.size, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Dog deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Dog value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("dog".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + String f_breed = null; + Date f_born = null; + DogSize f_size = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("breed".equals(field)) { + f_breed = StoneSerializers.string().deserialize(p); + } + else if ("born".equals(field)) { + f_born = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else if ("size".equals(field)) { + f_size = StoneSerializers.nullable(DogSize.Serializer.INSTANCE).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_breed == null) { + throw new JsonParseException(p, "Required field \"breed\" missing."); + } + value = new Dog(f_name, f_breed, f_born, f_size); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DogSize.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DogSize.java new file mode 100644 index 000000000..fbdbaa0fe --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/DogSize.java @@ -0,0 +1,97 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum DogSize { + // union test.DogSize (test.stone) + LAP, + SMALL, + MEDIUM, + LARGE; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(DogSize value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case LAP: { + g.writeString("lap"); + break; + } + case SMALL: { + g.writeString("small"); + break; + } + case MEDIUM: { + g.writeString("medium"); + break; + } + case LARGE: { + g.writeString("large"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public DogSize deserialize(JsonParser p) throws IOException, JsonParseException { + DogSize value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("lap".equals(tag)) { + value = DogSize.LAP; + } + else if ("small".equals(tag)) { + value = DogSize.SMALL; + } + else if ("medium".equals(tag)) { + value = DogSize.MEDIUM; + } + else if ("large".equals(tag)) { + value = DogSize.LARGE; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Fish.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Fish.java new file mode 100644 index 000000000..d9ceef246 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Fish.java @@ -0,0 +1,242 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class Fish extends Pet { + // struct test.Fish (test.stone) + + @Nonnull + protected final String species; + @Nonnull + protected final TankSize tankSize; + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param species Must not be {@code null}. + * @param tankSize Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Fish(@Nonnull String name, @Nonnull String species, @Nonnull TankSize tankSize, @Nullable Date born) { + super(name, born); + if (species == null) { + throw new IllegalArgumentException("Required value for 'species' is null"); + } + this.species = species; + if (tankSize == null) { + throw new IllegalArgumentException("Required value for 'tankSize' is null"); + } + this.tankSize = tankSize; + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * @param species Must not be {@code null}. + * @param tankSize Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Fish(@Nonnull String name, @Nonnull String species, @Nonnull TankSize tankSize) { + this(name, species, tankSize, null); + } + + /** + * Used in {@link DbxTestTestRequests#testRouteV2(String,Date)} + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSpecies() { + return species; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public TankSize getTankSize() { + return tankSize; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getBorn() { + return born; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.species, + this.tankSize + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Fish other = (Fish) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.species == other.species) || (this.species.equals(other.species))) + && ((this.tankSize == other.tankSize) || (this.tankSize.equals(other.tankSize))) + && ((this.born == other.born) || (this.born != null && this.born.equals(other.born))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Fish value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + writeTag("fish", g); + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + g.writeFieldName("species"); + StoneSerializers.string().serialize(value.species, g); + g.writeFieldName("tank_size"); + TankSize.Serializer.INSTANCE.serialize(value.tankSize, g); + if (value.born != null) { + g.writeFieldName("born"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.born, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Fish deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Fish value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("fish".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + String f_species = null; + TankSize f_tankSize = null; + Date f_born = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("species".equals(field)) { + f_species = StoneSerializers.string().deserialize(p); + } + else if ("tank_size".equals(field)) { + f_tankSize = TankSize.Serializer.INSTANCE.deserialize(p); + } + else if ("born".equals(field)) { + f_born = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + if (f_species == null) { + throw new JsonParseException(p, "Required field \"species\" missing."); + } + if (f_tankSize == null) { + throw new JsonParseException(p, "Required field \"tank_size\" missing."); + } + value = new Fish(f_name, f_species, f_tankSize, f_born); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/NestingUnion.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/NestingUnion.java new file mode 100644 index 000000000..e400668fd --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/NestingUnion.java @@ -0,0 +1,437 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class NestingUnion { + // union test.NestingUnion (test.stone) + + /** + * Discriminating tag type for {@link NestingUnion}. + */ + public enum Tag { + SIMPLE, // ChildUnion + VALUE, // ValueUnion + CATCH_ALL, // CatchAllUnion + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final NestingUnion OTHER = new NestingUnion().withTag(Tag.OTHER); + + private Tag _tag; + private ChildUnion simpleValue; + private ValueUnion valueValue; + private CatchAllUnion catchAllValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private NestingUnion() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private NestingUnion withTag(Tag _tag) { + NestingUnion result = new NestingUnion(); + result._tag = _tag; + return result; + } + + /** + * + * @param simpleValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private NestingUnion withTagAndSimple(Tag _tag, ChildUnion simpleValue) { + NestingUnion result = new NestingUnion(); + result._tag = _tag; + result.simpleValue = simpleValue; + return result; + } + + /** + * + * @param valueValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private NestingUnion withTagAndValue(Tag _tag, ValueUnion valueValue) { + NestingUnion result = new NestingUnion(); + result._tag = _tag; + result.valueValue = valueValue; + return result; + } + + /** + * + * @param catchAllValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private NestingUnion withTagAndCatchAll(Tag _tag, CatchAllUnion catchAllValue) { + NestingUnion result = new NestingUnion(); + result._tag = _tag; + result.catchAllValue = catchAllValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code NestingUnion}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#SIMPLE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#SIMPLE}, + * {@code false} otherwise. + */ + public boolean isSimple() { + return this._tag == Tag.SIMPLE; + } + + /** + * Returns an instance of {@code NestingUnion} that has its tag set to + * {@link Tag#SIMPLE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code NestingUnion} with its tag set to {@link + * Tag#SIMPLE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static NestingUnion simple(ChildUnion value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new NestingUnion().withTagAndSimple(Tag.SIMPLE, value); + } + + /** + * This instance must be tagged as {@link Tag#SIMPLE}. + * + * @return The {@link ChildUnion} value associated with this instance if + * {@link #isSimple} is {@code true}. + * + * @throws IllegalStateException If {@link #isSimple} is {@code false}. + */ + public ChildUnion getSimpleValue() { + if (this._tag != Tag.SIMPLE) { + throw new IllegalStateException("Invalid tag: required Tag.SIMPLE, but was Tag." + this._tag.name()); + } + return simpleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#VALUE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#VALUE}, + * {@code false} otherwise. + */ + public boolean isValue() { + return this._tag == Tag.VALUE; + } + + /** + * Returns an instance of {@code NestingUnion} that has its tag set to + * {@link Tag#VALUE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code NestingUnion} with its tag set to {@link + * Tag#VALUE}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static NestingUnion value(ValueUnion value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new NestingUnion().withTagAndValue(Tag.VALUE, value); + } + + /** + * This instance must be tagged as {@link Tag#VALUE}. + * + * @return The {@link ValueUnion} value associated with this instance if + * {@link #isValue} is {@code true}. + * + * @throws IllegalStateException If {@link #isValue} is {@code false}. + */ + public ValueUnion getValueValue() { + if (this._tag != Tag.VALUE) { + throw new IllegalStateException("Invalid tag: required Tag.VALUE, but was Tag." + this._tag.name()); + } + return valueValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#CATCH_ALL}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#CATCH_ALL}, + * {@code false} otherwise. + */ + public boolean isCatchAll() { + return this._tag == Tag.CATCH_ALL; + } + + /** + * Returns an instance of {@code NestingUnion} that has its tag set to + * {@link Tag#CATCH_ALL}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code NestingUnion} with its tag set to {@link + * Tag#CATCH_ALL}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static NestingUnion catchAll(CatchAllUnion value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new NestingUnion().withTagAndCatchAll(Tag.CATCH_ALL, value); + } + + /** + * This instance must be tagged as {@link Tag#CATCH_ALL}. + * + * @return The {@link CatchAllUnion} value associated with this instance if + * {@link #isCatchAll} is {@code true}. + * + * @throws IllegalStateException If {@link #isCatchAll} is {@code false}. + */ + public CatchAllUnion getCatchAllValue() { + if (this._tag != Tag.CATCH_ALL) { + throw new IllegalStateException("Invalid tag: required Tag.CATCH_ALL, but was Tag." + this._tag.name()); + } + return catchAllValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.simpleValue, + this.valueValue, + this.catchAllValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof NestingUnion) { + NestingUnion other = (NestingUnion) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case SIMPLE: + return (this.simpleValue == other.simpleValue) || (this.simpleValue.equals(other.simpleValue)); + case VALUE: + return (this.valueValue == other.valueValue) || (this.valueValue.equals(other.valueValue)); + case CATCH_ALL: + return (this.catchAllValue == other.catchAllValue) || (this.catchAllValue.equals(other.catchAllValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(NestingUnion value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case SIMPLE: { + g.writeStartObject(); + writeTag("simple", g); + g.writeFieldName("simple"); + ChildUnion.Serializer.INSTANCE.serialize(value.simpleValue, g); + g.writeEndObject(); + break; + } + case VALUE: { + g.writeStartObject(); + writeTag("value", g); + g.writeFieldName("value"); + ValueUnion.Serializer.INSTANCE.serialize(value.valueValue, g); + g.writeEndObject(); + break; + } + case CATCH_ALL: { + g.writeStartObject(); + writeTag("catch_all", g); + g.writeFieldName("catch_all"); + CatchAllUnion.Serializer.INSTANCE.serialize(value.catchAllValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public NestingUnion deserialize(JsonParser p) throws IOException, JsonParseException { + NestingUnion value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("simple".equals(tag)) { + ChildUnion fieldValue = null; + expectField("simple", p); + fieldValue = ChildUnion.Serializer.INSTANCE.deserialize(p); + value = NestingUnion.simple(fieldValue); + } + else if ("value".equals(tag)) { + ValueUnion fieldValue = null; + expectField("value", p); + fieldValue = ValueUnion.Serializer.INSTANCE.deserialize(p); + value = NestingUnion.value(fieldValue); + } + else if ("catch_all".equals(tag)) { + CatchAllUnion fieldValue = null; + expectField("catch_all", p); + fieldValue = CatchAllUnion.Serializer.INSTANCE.deserialize(p); + value = NestingUnion.catchAll(fieldValue); + } + else { + value = NestingUnion.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ParentUnion.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ParentUnion.java new file mode 100644 index 000000000..281efe4f9 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ParentUnion.java @@ -0,0 +1,81 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public enum ParentUnion { + // union test.ParentUnion (test.stone) + ALPHA, + BETA; + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ParentUnion value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value) { + case ALPHA: { + g.writeString("alpha"); + break; + } + case BETA: { + g.writeString("beta"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value); + } + } + } + + @Override + public ParentUnion deserialize(JsonParser p) throws IOException, JsonParseException { + ParentUnion value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("alpha".equals(tag)) { + value = ParentUnion.ALPHA; + } + else if ("beta".equals(tag)) { + value = ParentUnion.BETA; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ParentUnionException.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ParentUnionException.java new file mode 100644 index 000000000..ce369fe42 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ParentUnionException.java @@ -0,0 +1,43 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.LocalizedText; + +/** + * Exception thrown when the server responds with a {@link ParentUnion} error. + * + *

This exception is raised by {@link + * DbxTestTestRequests#testDownloadV2(UninitializedReason,String)}, {@link + * DbxTestTestRequests#testRouteV2(String,java.util.Date)}, {@link + * DbxTestTestRequests#testUploadV2(String,String)}, and {@link + * DbxTestTestRequests#testUploadV3(String,String)}.

+ */ +public class ParentUnionException extends DbxApiException { + // exception for routes: + // 2/test/test_download_v2 + // 2/test/test_route_v2 + // 2/test/test_upload_v2 + // 2/test/test_upload_v3 + + private static final long serialVersionUID = 0L; + + /** + * The error reported by {@link + * DbxTestTestRequests#testDownloadV2(UninitializedReason,String)}, {@link + * DbxTestTestRequests#testRouteV2(String,java.util.Date)}, {@link + * DbxTestTestRequests#testUploadV2(String,String)}, and {@link + * DbxTestTestRequests#testUploadV3(String,String)}. + */ + public final ParentUnion errorValue; + + public ParentUnionException(String routeName, String requestId, LocalizedText userMessage, ParentUnion errorValue) { + super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); + if (errorValue == null) { + throw new NullPointerException("errorValue"); + } + this.errorValue = errorValue; + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Pet.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Pet.java new file mode 100644 index 000000000..78cda7b02 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Pet.java @@ -0,0 +1,218 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; +import com.dropbox.core.util.LangUtil; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Date; + +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + +public class Pet { + // struct test.Pet (test.stone) + + @Nonnull + protected final String name; + @Nullable + protected final Date born; + + /** + * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Pet(@Nonnull String name, @Nullable Date born) { + if (name == null) { + throw new IllegalArgumentException("Required value for 'name' is null"); + } + this.name = name; + this.born = LangUtil.truncateMillis(born); + } + + /** + * None + * + *

The default values for unset fields will be used.

+ * + * @param name Used in {@link + * DbxTestTestRequests#testRouteV2(String,Date)}. Must not be {@code + * null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Pet(@Nonnull String name) { + this(name, null); + } + + /** + * Used in {@link DbxTestTestRequests#testRouteV2(String,Date)} + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getName() { + return name; + } + + /** + * + * @return value for this field, or {@code null} if not present. + */ + @Nullable + public Date getBorn() { + return born; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.name, + this.born + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Pet other = (Pet) obj; + return ((this.name == other.name) || (this.name.equals(other.name))) + && ((this.born == other.born) || (this.born != null && this.born.equals(other.born))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Pet value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (value instanceof Dog) { + Dog.Serializer.INSTANCE.serialize((Dog) value, g, collapse); + return; + } + if (value instanceof Cat) { + Cat.Serializer.INSTANCE.serialize((Cat) value, g, collapse); + return; + } + if (value instanceof Fish) { + Fish.Serializer.INSTANCE.serialize((Fish) value, g, collapse); + return; + } + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("name"); + StoneSerializers.string().serialize(value.name, g); + if (value.born != null) { + g.writeFieldName("born"); + StoneSerializers.nullable(StoneSerializers.timestamp()).serialize(value.born, g); + } + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Pet deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Pet value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + if ("".equals(tag)) { + tag = null; + } + } + if (tag == null) { + String f_name = null; + Date f_born = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("name".equals(field)) { + f_name = StoneSerializers.string().deserialize(p); + } + else if ("born".equals(field)) { + f_born = StoneSerializers.nullable(StoneSerializers.timestamp()).deserialize(p); + } + else { + skipValue(p); + } + } + if (f_name == null) { + throw new JsonParseException(p, "Required field \"name\" missing."); + } + value = new Pet(f_name, f_born); + } + else if ("".equals(tag)) { + value = Serializer.INSTANCE.deserialize(p, true); + } + else if ("dog".equals(tag)) { + value = Dog.Serializer.INSTANCE.deserialize(p, true); + } + else if ("cat".equals(tag)) { + value = Cat.Serializer.INSTANCE.deserialize(p, true); + } + else if ("fish".equals(tag)) { + value = Fish.Serializer.INSTANCE.deserialize(p, true); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TankSize.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TankSize.java new file mode 100644 index 000000000..df549b261 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TankSize.java @@ -0,0 +1,388 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is an open tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isAbc()} + * methods will return {@code true}. You can use {@link #tag()} to determine the + * tag associated with this instance. + * + *

Open unions may be extended in the future with additional tags. If a new + * tag is introduced that this SDK does not recognized, the {@link #OTHER} value + * will be used.

+ */ +public final class TankSize { + // union test.TankSize (test.stone) + + /** + * Discriminating tag type for {@link TankSize}. + */ + public enum Tag { + BOWL, + MEDIUM, // Dimensions + AQUARIUM, // String + /** + * Catch-all used for unknown tag values returned by the Dropbox + * servers. + * + *

Receiving a catch-all value typically indicates this SDK version + * is not up to date. Consider updating your SDK version to handle the + * new tags.

+ */ + OTHER; // *catch_all + } + + public static final TankSize BOWL = new TankSize().withTag(Tag.BOWL); + /** + * Catch-all used for unknown tag values returned by the Dropbox servers. + * + *

Receiving a catch-all value typically indicates this SDK version is + * not up to date. Consider updating your SDK version to handle the new + * tags.

+ */ + public static final TankSize OTHER = new TankSize().withTag(Tag.OTHER); + + private Tag _tag; + private Dimensions mediumValue; + private String aquariumValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private TankSize() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TankSize withTag(Tag _tag) { + TankSize result = new TankSize(); + result._tag = _tag; + return result; + } + + /** + * + * @param mediumValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private TankSize withTagAndMedium(Tag _tag, Dimensions mediumValue) { + TankSize result = new TankSize(); + result._tag = _tag; + result.mediumValue = mediumValue; + return result; + } + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private TankSize withTagAndAquarium(Tag _tag, String aquariumValue) { + TankSize result = new TankSize(); + result._tag = _tag; + result.aquariumValue = aquariumValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code TankSize}.

+ * + *

If a tag returned by the server is unrecognized by this SDK, the + * {@link Tag#OTHER} value will be used.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#BOWL}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#BOWL}, + * {@code false} otherwise. + */ + public boolean isBowl() { + return this._tag == Tag.BOWL; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#MEDIUM}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#MEDIUM}, + * {@code false} otherwise. + */ + public boolean isMedium() { + return this._tag == Tag.MEDIUM; + } + + /** + * Returns an instance of {@code TankSize} that has its tag set to {@link + * Tag#MEDIUM}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TankSize} with its tag set to {@link + * Tag#MEDIUM}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static TankSize medium(Dimensions value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new TankSize().withTagAndMedium(Tag.MEDIUM, value); + } + + /** + * This instance must be tagged as {@link Tag#MEDIUM}. + * + * @return The {@link Dimensions} value associated with this instance if + * {@link #isMedium} is {@code true}. + * + * @throws IllegalStateException If {@link #isMedium} is {@code false}. + */ + public Dimensions getMediumValue() { + if (this._tag != Tag.MEDIUM) { + throw new IllegalStateException("Invalid tag: required Tag.MEDIUM, but was Tag." + this._tag.name()); + } + return mediumValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#AQUARIUM}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#AQUARIUM}, + * {@code false} otherwise. + */ + public boolean isAquarium() { + return this._tag == Tag.AQUARIUM; + } + + /** + * Returns an instance of {@code TankSize} that has its tag set to {@link + * Tag#AQUARIUM}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code TankSize} with its tag set to {@link + * Tag#AQUARIUM}. + */ + public static TankSize aquarium(String value) { + return new TankSize().withTagAndAquarium(Tag.AQUARIUM, value); + } + + /** + * Returns an instance of {@code TankSize} that has its tag set to {@link + * Tag#AQUARIUM}. + * + *

None

+ * + * @return Instance of {@code TankSize} with its tag set to {@link + * Tag#AQUARIUM}. + */ + public static TankSize aquarium() { + return aquarium(null); + } + + /** + * This instance must be tagged as {@link Tag#AQUARIUM}. + * + * @return The {@link String} value associated with this instance if {@link + * #isAquarium} is {@code true}. + * + * @throws IllegalStateException If {@link #isAquarium} is {@code false}. + */ + public String getAquariumValue() { + if (this._tag != Tag.AQUARIUM) { + throw new IllegalStateException("Invalid tag: required Tag.AQUARIUM, but was Tag." + this._tag.name()); + } + return aquariumValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#OTHER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#OTHER}, + * {@code false} otherwise. + */ + public boolean isOther() { + return this._tag == Tag.OTHER; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.mediumValue, + this.aquariumValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof TankSize) { + TankSize other = (TankSize) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case BOWL: + return true; + case MEDIUM: + return (this.mediumValue == other.mediumValue) || (this.mediumValue.equals(other.mediumValue)); + case AQUARIUM: + return (this.aquariumValue == other.aquariumValue) || (this.aquariumValue != null && this.aquariumValue.equals(other.aquariumValue)); + case OTHER: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(TankSize value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case BOWL: { + g.writeString("bowl"); + break; + } + case MEDIUM: { + g.writeStartObject(); + writeTag("medium", g); + Dimensions.Serializer.INSTANCE.serialize(value.mediumValue, g, true); + g.writeEndObject(); + break; + } + case AQUARIUM: { + g.writeStartObject(); + writeTag("aquarium", g); + g.writeFieldName("aquarium"); + StoneSerializers.nullable(StoneSerializers.string()).serialize(value.aquariumValue, g); + g.writeEndObject(); + break; + } + default: { + g.writeString("other"); + } + } + } + + @Override + public TankSize deserialize(JsonParser p) throws IOException, JsonParseException { + TankSize value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("bowl".equals(tag)) { + value = TankSize.BOWL; + } + else if ("medium".equals(tag)) { + Dimensions fieldValue = null; + fieldValue = Dimensions.Serializer.INSTANCE.deserialize(p, true); + value = TankSize.medium(fieldValue); + } + else if ("aquarium".equals(tag)) { + String fieldValue = null; + if (p.getCurrentToken() != JsonToken.END_OBJECT) { + expectField("aquarium", p); + fieldValue = StoneSerializers.nullable(StoneSerializers.string()).deserialize(p); + } + if (fieldValue == null) { + value = TankSize.aquarium(); + } + else { + value = TankSize.aquarium(fieldValue); + } + } + else { + value = TankSize.OTHER; + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestDownloadBuilder.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestDownloadBuilder.java new file mode 100644 index 000000000..a12567d07 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestDownloadBuilder.java @@ -0,0 +1,70 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTestTestRequests#testDownloadBuilder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class TestDownloadBuilder extends DbxDownloadStyleBuilder { + private final DbxTestTestRequests _client; + private final Dog.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue test + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + TestDownloadBuilder(DbxTestTestRequests _client, Dog.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public TestDownloadBuilder withBorn(Date born) { + this._builder.withBorn(born); + return this; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public TestDownloadBuilder withSize(DogSize size) { + this._builder.withSize(size); + return this; + } + + @Override + public DbxDownloader start() throws DbxApiException, DbxException { + Dog arg_ = this._builder.build(); + return _client.testDownload(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestDownloadV2Builder.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestDownloadV2Builder.java new file mode 100644 index 000000000..4fa1a1297 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestDownloadV2Builder.java @@ -0,0 +1,49 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.DbxException; +import com.dropbox.core.v2.DbxDownloadStyleBuilder; + +/** + * The request builder returned by {@link + * DbxTestTestRequests#testDownloadV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class TestDownloadV2Builder extends DbxDownloadStyleBuilder { + private final DbxTestTestRequests _client; + private final UninitializedReason reason; + private final String sessionId; + + /** + * Creates a new instance of this builder. + * + * @param reason Must not be {@code null}. + * @param sessionId Must not be {@code null}. + * @param _client Dropbox namespace-specific client used to issue test + * requests. + * + * @return instsance of this builder + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + TestDownloadV2Builder(DbxTestTestRequests _client, UninitializedReason reason, String sessionId) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + this.reason = reason; + this.sessionId = sessionId; + } + + @Override + public DbxDownloader start() throws ParentUnionException, DbxException { + Uninitialized arg_ = new Uninitialized(reason, sessionId); + return _client.testDownloadV2(arg_, getHeaders()); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadUploader.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadUploader.java new file mode 100644 index 000000000..cd97fb499 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadUploader.java @@ -0,0 +1,40 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxTestTestRequests#testUpload(UninitializedReason,String)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class TestUploadUploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public TestUploadUploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, com.dropbox.core.stone.StoneSerializers.void_(), com.dropbox.core.stone.StoneSerializers.void_(), userId); + } + + protected DbxApiException newException(DbxWrappedException error) { + return new DbxApiException(error.getRequestId(), error.getUserMessage(), "Unexpected error response for \"test_upload\":" + error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV2Builder.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV2Builder.java new file mode 100644 index 000000000..ac4044c9e --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV2Builder.java @@ -0,0 +1,68 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxException; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxUploadStyleBuilder; + +import java.util.Date; + +/** + * The request builder returned by {@link + * DbxTestTestRequests#testUploadV2Builder}. + * + *

Use this class to set optional request parameters and complete the + * request.

+ */ +public class TestUploadV2Builder extends DbxUploadStyleBuilder { + private final DbxTestTestRequests _client; + private final Dog.Builder _builder; + + /** + * Creates a new instance of this builder. + * + * @param _client Dropbox namespace-specific client used to issue test + * requests. + * @param _builder Request argument builder. + * + * @return instsance of this builder + */ + TestUploadV2Builder(DbxTestTestRequests _client, Dog.Builder _builder) { + if (_client == null) { + throw new NullPointerException("_client"); + } + this._client = _client; + if (_builder == null) { + throw new NullPointerException("_builder"); + } + this._builder = _builder; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public TestUploadV2Builder withBorn(Date born) { + this._builder.withBorn(born); + return this; + } + + /** + * Set value for optional field. + * + * @return this builder + */ + public TestUploadV2Builder withSize(DogSize size) { + this._builder.withSize(size); + return this; + } + + @Override + public TestUploadV2Uploader start() throws ParentUnionException, DbxException { + Dog arg_ = this._builder.build(); + return _client.testUploadV2(arg_); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV2Uploader.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV2Uploader.java new file mode 100644 index 000000000..dbf7a202b --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV2Uploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxTestTestRequests#testUploadV2(String,String)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class TestUploadV2Uploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public TestUploadV2Uploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, com.dropbox.core.stone.StoneSerializers.void_(), ParentUnion.Serializer.INSTANCE, userId); + } + + protected ParentUnionException newException(DbxWrappedException error) { + return new ParentUnionException("2/test/test_upload_v2", error.getRequestId(), error.getUserMessage(), (ParentUnion) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV3Uploader.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV3Uploader.java new file mode 100644 index 000000000..38bb7cbb3 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/TestUploadV3Uploader.java @@ -0,0 +1,39 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.DbxUploader; +import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.http.HttpRequestor; + +import java.io.IOException; + +/** + * The {@link DbxUploader} returned by {@link + * DbxTestTestRequests#testUploadV3(String,String)}. + * + *

Use this class to upload data to the server and complete the request. + *

+ * + *

This class should be properly closed after use to prevent resource leaks + * and allow network connection reuse. Always call {@link #close} when complete + * (see {@link DbxUploader} for examples).

+ */ +public class TestUploadV3Uploader extends DbxUploader { + + /** + * Creates a new instance of this uploader. + * + * @param httpUploader Initiated HTTP upload request + * + * @throws NullPointerException if {@code httpUploader} is {@code null} + */ + public TestUploadV3Uploader(HttpRequestor.Uploader httpUploader, String userId) { + super(httpUploader, com.dropbox.core.stone.StoneSerializers.void_(), ParentUnion.Serializer.INSTANCE, userId); + } + + protected ParentUnionException newException(DbxWrappedException error) { + return new ParentUnionException("2/test/test_upload_v3", error.getRequestId(), error.getUserMessage(), (ParentUnion) error.getErrorValue()); + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Uninitialized.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Uninitialized.java new file mode 100644 index 000000000..597b319df --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/Uninitialized.java @@ -0,0 +1,174 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +import javax.annotation.Nonnull; + +class Uninitialized { + // struct test.Uninitialized (test.stone) + + @Nonnull + protected final UninitializedReason reason; + @Nonnull + protected final String sessionId; + + /** + * + * @param reason Must not be {@code null}. + * @param sessionId Must not be {@code null}. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + public Uninitialized(@Nonnull UninitializedReason reason, @Nonnull String sessionId) { + if (reason == null) { + throw new IllegalArgumentException("Required value for 'reason' is null"); + } + this.reason = reason; + if (sessionId == null) { + throw new IllegalArgumentException("Required value for 'sessionId' is null"); + } + this.sessionId = sessionId; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public UninitializedReason getReason() { + return reason; + } + + /** + * + * @return value for this field, never {@code null}. + */ + @Nonnull + public String getSessionId() { + return sessionId; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.reason, + this.sessionId + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + Uninitialized other = (Uninitialized) obj; + return ((this.reason == other.reason) || (this.reason.equals(other.reason))) + && ((this.sessionId == other.sessionId) || (this.sessionId.equals(other.sessionId))) + ; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(Uninitialized value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("reason"); + UninitializedReason.Serializer.INSTANCE.serialize(value.reason, g); + g.writeFieldName("session_id"); + StoneSerializers.string().serialize(value.sessionId, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public Uninitialized deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + Uninitialized value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + UninitializedReason f_reason = null; + String f_sessionId = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("reason".equals(field)) { + f_reason = UninitializedReason.Serializer.INSTANCE.deserialize(p); + } + else if ("session_id".equals(field)) { + f_sessionId = StoneSerializers.string().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_reason == null) { + throw new JsonParseException(p, "Required field \"reason\" missing."); + } + if (f_sessionId == null) { + throw new JsonParseException(p, "Required field \"session_id\" missing."); + } + value = new Uninitialized(f_reason, f_sessionId); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/UninitializedReason.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/UninitializedReason.java new file mode 100644 index 000000000..546ac077d --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/UninitializedReason.java @@ -0,0 +1,342 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class UninitializedReason { + // union test.UninitializedReason (test.stone) + + /** + * Discriminating tag type for {@link UninitializedReason}. + */ + public enum Tag { + BAD_REQUEST, + BAD_HEADER, // String + BAD_FEELS; // BadFeel + } + + public static final UninitializedReason BAD_REQUEST = new UninitializedReason().withTag(Tag.BAD_REQUEST); + + private Tag _tag; + private String badHeaderValue; + private BadFeel badFeelsValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private UninitializedReason() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private UninitializedReason withTag(Tag _tag) { + UninitializedReason result = new UninitializedReason(); + result._tag = _tag; + return result; + } + + /** + * + * @param badHeaderValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UninitializedReason withTagAndBadHeader(Tag _tag, String badHeaderValue) { + UninitializedReason result = new UninitializedReason(); + result._tag = _tag; + result.badHeaderValue = badHeaderValue; + return result; + } + + /** + * + * @param badFeelsValue Must not be {@code null}. + * @param _tag Discriminating tag for this instance. + * + * @throws IllegalArgumentException If any argument does not meet its + * preconditions. + */ + private UninitializedReason withTagAndBadFeels(Tag _tag, BadFeel badFeelsValue) { + UninitializedReason result = new UninitializedReason(); + result._tag = _tag; + result.badFeelsValue = badFeelsValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code UninitializedReason}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link + * Tag#BAD_REQUEST}, {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BAD_REQUEST}, {@code false} otherwise. + */ + public boolean isBadRequest() { + return this._tag == Tag.BAD_REQUEST; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#BAD_HEADER}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#BAD_HEADER}, {@code false} otherwise. + */ + public boolean isBadHeader() { + return this._tag == Tag.BAD_HEADER; + } + + /** + * Returns an instance of {@code UninitializedReason} that has its tag set + * to {@link Tag#BAD_HEADER}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UninitializedReason} with its tag set to + * {@link Tag#BAD_HEADER}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UninitializedReason badHeader(String value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UninitializedReason().withTagAndBadHeader(Tag.BAD_HEADER, value); + } + + /** + * This instance must be tagged as {@link Tag#BAD_HEADER}. + * + * @return The {@link String} value associated with this instance if {@link + * #isBadHeader} is {@code true}. + * + * @throws IllegalStateException If {@link #isBadHeader} is {@code false}. + */ + public String getBadHeaderValue() { + if (this._tag != Tag.BAD_HEADER) { + throw new IllegalStateException("Invalid tag: required Tag.BAD_HEADER, but was Tag." + this._tag.name()); + } + return badHeaderValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#BAD_FEELS}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#BAD_FEELS}, + * {@code false} otherwise. + */ + public boolean isBadFeels() { + return this._tag == Tag.BAD_FEELS; + } + + /** + * Returns an instance of {@code UninitializedReason} that has its tag set + * to {@link Tag#BAD_FEELS}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code UninitializedReason} with its tag set to + * {@link Tag#BAD_FEELS}. + * + * @throws IllegalArgumentException if {@code value} is {@code null}. + */ + public static UninitializedReason badFeels(BadFeel value) { + if (value == null) { + throw new IllegalArgumentException("Value is null"); + } + return new UninitializedReason().withTagAndBadFeels(Tag.BAD_FEELS, value); + } + + /** + * This instance must be tagged as {@link Tag#BAD_FEELS}. + * + * @return The {@link BadFeel} value associated with this instance if {@link + * #isBadFeels} is {@code true}. + * + * @throws IllegalStateException If {@link #isBadFeels} is {@code false}. + */ + public BadFeel getBadFeelsValue() { + if (this._tag != Tag.BAD_FEELS) { + throw new IllegalStateException("Invalid tag: required Tag.BAD_FEELS, but was Tag." + this._tag.name()); + } + return badFeelsValue; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.badHeaderValue, + this.badFeelsValue + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof UninitializedReason) { + UninitializedReason other = (UninitializedReason) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case BAD_REQUEST: + return true; + case BAD_HEADER: + return (this.badHeaderValue == other.badHeaderValue) || (this.badHeaderValue.equals(other.badHeaderValue)); + case BAD_FEELS: + return (this.badFeelsValue == other.badFeelsValue) || (this.badFeelsValue.equals(other.badFeelsValue)); + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(UninitializedReason value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case BAD_REQUEST: { + g.writeString("bad_request"); + break; + } + case BAD_HEADER: { + g.writeStartObject(); + writeTag("bad_header", g); + g.writeFieldName("bad_header"); + StoneSerializers.string().serialize(value.badHeaderValue, g); + g.writeEndObject(); + break; + } + case BAD_FEELS: { + g.writeStartObject(); + writeTag("bad_feels", g); + g.writeFieldName("bad_feels"); + BadFeel.Serializer.INSTANCE.serialize(value.badFeelsValue, g); + g.writeEndObject(); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public UninitializedReason deserialize(JsonParser p) throws IOException, JsonParseException { + UninitializedReason value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("bad_request".equals(tag)) { + value = UninitializedReason.BAD_REQUEST; + } + else if ("bad_header".equals(tag)) { + String fieldValue = null; + expectField("bad_header", p); + fieldValue = StoneSerializers.string().deserialize(p); + value = UninitializedReason.badHeader(fieldValue); + } + else if ("bad_feels".equals(tag)) { + BadFeel fieldValue = null; + expectField("bad_feels", p); + fieldValue = BadFeel.Serializer.INSTANCE.deserialize(p); + value = UninitializedReason.badFeels(fieldValue); + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ValueUnion.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ValueUnion.java new file mode 100644 index 000000000..03eb24d94 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/ValueUnion.java @@ -0,0 +1,369 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.UnionSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +/** + * This class is a tagged union. Tagged unions instances are always associated + * to a specific tag. This means only one of the {@code isAbc()} methods will + * return {@code true}. You can use {@link #tag()} to determine the tag + * associated with this instance. + */ +public final class ValueUnion { + // union test.ValueUnion (test.stone) + + /** + * Discriminating tag type for {@link ValueUnion}. + */ + public enum Tag { + ALPHA, + BETA, + TOO_MUCH, // int + TOO_LITTLE, // int + JUST_RIGHT; + } + + public static final ValueUnion ALPHA = new ValueUnion().withTag(Tag.ALPHA); + public static final ValueUnion BETA = new ValueUnion().withTag(Tag.BETA); + public static final ValueUnion JUST_RIGHT = new ValueUnion().withTag(Tag.JUST_RIGHT); + + private Tag _tag; + private Integer tooMuchValue; + private Integer tooLittleValue; + + /** + * Private default constructor, so that object is uninitializable publicly. + */ + private ValueUnion() { + } + + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ValueUnion withTag(Tag _tag) { + ValueUnion result = new ValueUnion(); + result._tag = _tag; + return result; + } + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ValueUnion withTagAndTooMuch(Tag _tag, Integer tooMuchValue) { + ValueUnion result = new ValueUnion(); + result._tag = _tag; + result.tooMuchValue = tooMuchValue; + return result; + } + + /** + * + * @param _tag Discriminating tag for this instance. + */ + private ValueUnion withTagAndTooLittle(Tag _tag, Integer tooLittleValue) { + ValueUnion result = new ValueUnion(); + result._tag = _tag; + result.tooLittleValue = tooLittleValue; + return result; + } + + /** + * Returns the tag for this instance. + * + *

This class is a tagged union. Tagged unions instances are always + * associated to a specific tag. This means only one of the {@code isXyz()} + * methods will return {@code true}. Callers are recommended to use the tag + * value in a {@code switch} statement to properly handle the different + * values for this {@code ValueUnion}.

+ * + * @return the tag for this instance. + */ + public Tag tag() { + return _tag; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#ALPHA}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#ALPHA}, + * {@code false} otherwise. + */ + public boolean isAlpha() { + return this._tag == Tag.ALPHA; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#BETA}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#BETA}, + * {@code false} otherwise. + */ + public boolean isBeta() { + return this._tag == Tag.BETA; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TOO_MUCH}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link Tag#TOO_MUCH}, + * {@code false} otherwise. + */ + public boolean isTooMuch() { + return this._tag == Tag.TOO_MUCH; + } + + /** + * Returns an instance of {@code ValueUnion} that has its tag set to {@link + * Tag#TOO_MUCH}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ValueUnion} with its tag set to {@link + * Tag#TOO_MUCH}. + */ + public static ValueUnion tooMuch(int value) { + return new ValueUnion().withTagAndTooMuch(Tag.TOO_MUCH, value); + } + + /** + * This instance must be tagged as {@link Tag#TOO_MUCH}. + * + * @return The {@link int} value associated with this instance if {@link + * #isTooMuch} is {@code true}. + * + * @throws IllegalStateException If {@link #isTooMuch} is {@code false}. + */ + public int getTooMuchValue() { + if (this._tag != Tag.TOO_MUCH) { + throw new IllegalStateException("Invalid tag: required Tag.TOO_MUCH, but was Tag." + this._tag.name()); + } + return tooMuchValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#TOO_LITTLE}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#TOO_LITTLE}, {@code false} otherwise. + */ + public boolean isTooLittle() { + return this._tag == Tag.TOO_LITTLE; + } + + /** + * Returns an instance of {@code ValueUnion} that has its tag set to {@link + * Tag#TOO_LITTLE}. + * + *

None

+ * + * @param value value to assign to this instance. + * + * @return Instance of {@code ValueUnion} with its tag set to {@link + * Tag#TOO_LITTLE}. + */ + public static ValueUnion tooLittle(int value) { + return new ValueUnion().withTagAndTooLittle(Tag.TOO_LITTLE, value); + } + + /** + * This instance must be tagged as {@link Tag#TOO_LITTLE}. + * + * @return The {@link int} value associated with this instance if {@link + * #isTooLittle} is {@code true}. + * + * @throws IllegalStateException If {@link #isTooLittle} is {@code false}. + */ + public int getTooLittleValue() { + if (this._tag != Tag.TOO_LITTLE) { + throw new IllegalStateException("Invalid tag: required Tag.TOO_LITTLE, but was Tag." + this._tag.name()); + } + return tooLittleValue; + } + + /** + * Returns {@code true} if this instance has the tag {@link Tag#JUST_RIGHT}, + * {@code false} otherwise. + * + * @return {@code true} if this instance is tagged as {@link + * Tag#JUST_RIGHT}, {@code false} otherwise. + */ + public boolean isJustRight() { + return this._tag == Tag.JUST_RIGHT; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this._tag, + this.tooMuchValue, + this.tooLittleValue + }); + hash = (31 * super.hashCode()) + hash; + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + else if (obj instanceof ValueUnion) { + ValueUnion other = (ValueUnion) obj; + if (this._tag != other._tag) { + return false; + } + switch (_tag) { + case ALPHA: + return true; + case BETA: + return true; + case TOO_MUCH: + return this.tooMuchValue == other.tooMuchValue; + case TOO_LITTLE: + return this.tooLittleValue == other.tooLittleValue; + case JUST_RIGHT: + return true; + default: + return false; + } + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends UnionSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(ValueUnion value, JsonGenerator g) throws IOException, JsonGenerationException { + switch (value.tag()) { + case ALPHA: { + g.writeString("alpha"); + break; + } + case BETA: { + g.writeString("beta"); + break; + } + case TOO_MUCH: { + g.writeStartObject(); + writeTag("too_much", g); + g.writeFieldName("too_much"); + StoneSerializers.int32().serialize(value.tooMuchValue, g); + g.writeEndObject(); + break; + } + case TOO_LITTLE: { + g.writeStartObject(); + writeTag("too_little", g); + g.writeFieldName("too_little"); + StoneSerializers.int32().serialize(value.tooLittleValue, g); + g.writeEndObject(); + break; + } + case JUST_RIGHT: { + g.writeString("just_right"); + break; + } + default: { + throw new IllegalArgumentException("Unrecognized tag: " + value.tag()); + } + } + } + + @Override + public ValueUnion deserialize(JsonParser p) throws IOException, JsonParseException { + ValueUnion value; + boolean collapsed; + String tag; + if (p.getCurrentToken() == JsonToken.VALUE_STRING) { + collapsed = true; + tag = getStringValue(p); + p.nextToken(); + } + else { + collapsed = false; + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + throw new JsonParseException(p, "Required field missing: " + TAG_FIELD); + } + else if ("alpha".equals(tag)) { + value = ValueUnion.ALPHA; + } + else if ("beta".equals(tag)) { + value = ValueUnion.BETA; + } + else if ("too_much".equals(tag)) { + Integer fieldValue = null; + expectField("too_much", p); + fieldValue = StoneSerializers.int32().deserialize(p); + value = ValueUnion.tooMuch(fieldValue); + } + else if ("too_little".equals(tag)) { + Integer fieldValue = null; + expectField("too_little", p); + fieldValue = StoneSerializers.int32().deserialize(p); + value = ValueUnion.tooLittle(fieldValue); + } + else if ("just_right".equals(tag)) { + value = ValueUnion.JUST_RIGHT; + } + else { + throw new JsonParseException(p, "Unknown tag: " + tag); + } + if (!collapsed) { + skipFields(p); + expectEndObject(p); + } + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/WithByte.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/WithByte.java new file mode 100644 index 000000000..f27386827 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/WithByte.java @@ -0,0 +1,132 @@ +/* DO NOT EDIT */ +/* This file was generated from test.stone */ + +package com.dropbox.core.stone.test; + +import com.dropbox.core.stone.StoneDeserializerLogger; +import com.dropbox.core.stone.StoneSerializers; +import com.dropbox.core.stone.StructSerializer; + +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; + +public class WithByte { + // struct test.WithByte (test.stone) + + protected final byte[] field1; + + public WithByte(byte[] field1) { + this.field1 = field1; + } + + /** + * + * @return value for this field. + */ + public byte[] getField1() { + return field1; + } + + @Override + public int hashCode() { + int hash = Arrays.hashCode(new Object [] { + this.field1 + }); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null) { + return false; + } + // be careful with inheritance + else if (obj.getClass().equals(this.getClass())) { + WithByte other = (WithByte) obj; + return this.field1 == other.field1; + } + else { + return false; + } + } + + @Override + public String toString() { + return Serializer.INSTANCE.serialize(this, false); + } + + /** + * Returns a String representation of this object formatted for easier + * readability. + * + *

The returned String may contain newlines.

+ * + * @return Formatted, multiline String representation of this object + */ + public String toStringMultiline() { + return Serializer.INSTANCE.serialize(this, true); + } + + /** + * For internal use only. + */ + public static class Serializer extends StructSerializer { + public static final Serializer INSTANCE = new Serializer(); + + @Override + public void serialize(WithByte value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException { + if (!collapse) { + g.writeStartObject(); + } + g.writeFieldName("field1"); + StoneSerializers.bytes().serialize(value.field1, g); + if (!collapse) { + g.writeEndObject(); + } + } + + @Override + public WithByte deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException { + WithByte value; + String tag = null; + if (!collapsed) { + expectStartObject(p); + tag = readTag(p); + } + if (tag == null) { + byte[] f_field1 = null; + while (p.getCurrentToken() == JsonToken.FIELD_NAME) { + String field = p.getCurrentName(); + p.nextToken(); + if ("field1".equals(field)) { + f_field1 = StoneSerializers.bytes().deserialize(p); + } + else { + skipValue(p); + } + } + if (f_field1 == null) { + throw new JsonParseException(p, "Required field \"field1\" missing."); + } + value = new WithByte(f_field1); + } + else { + throw new JsonParseException(p, "No subtype found that matches tag: \"" + tag + "\""); + } + if (!collapsed) { + expectEndObject(p); + } + StoneDeserializerLogger.log(value, value.toStringMultiline()); + return value; + } + } +} diff --git a/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/package-info.java b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/package-info.java new file mode 100644 index 000000000..d1399adf4 --- /dev/null +++ b/core/build/generated_stone_source/test/src/com/dropbox/core/stone/test/package-info.java @@ -0,0 +1,9 @@ +/* DO NOT EDIT */ +/* This file was generated by Stone */ + +/** + * See {@link com.dropbox.core.stone.test.DbxTestTestRequests} for a list of + * possible requests for this namespace. + */ +package com.dropbox.core.stone.test; + diff --git a/core/dependencies/compileClasspath.txt b/core/dependencies/compileClasspath.txt new file mode 100644 index 000000000..fc33fa6a4 --- /dev/null +++ b/core/dependencies/compileClasspath.txt @@ -0,0 +1,20 @@ +com.fasterxml.jackson.core:jackson-core:2.7.9 +com.google.android:android:4.1.1.4 +com.google.appengine:appengine-api-1.0-sdk:1.9.38 +com.squareup.okhttp3:okhttp:4.0.0 +com.squareup.okhttp:okhttp:2.7.5 +com.squareup.okio:okio:2.2.2 +commons-codec:commons-codec:1.3 +commons-logging:commons-logging:1.1.1 +javax.servlet:servlet-api:2.5 +org.apache.httpcomponents:httpclient:4.0.1 +org.apache.httpcomponents:httpcore:4.0.1 +org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib:1.6.21 +org.jetbrains:annotations:13.0 +org.json:json:20080701 +org.khronos:opengl-api:gl1.1-android-2.1_r1 +xerces:xmlParserAPIs:2.6.2 +xpp3:xpp3:1.1.4c diff --git a/core/dependencies/runtimeClasspath.txt b/core/dependencies/runtimeClasspath.txt new file mode 100644 index 000000000..cb8c1810a --- /dev/null +++ b/core/dependencies/runtimeClasspath.txt @@ -0,0 +1,4 @@ +ch.randelshofer:fastdoubleparser:0.8.0 +com.fasterxml.jackson.core:jackson-core:2.15.0 +com.fasterxml.jackson:jackson-bom:2.15.0 +com.google.code.findbugs:jsr305:3.0.2 diff --git a/generator/.gitignore b/core/generator/.gitignore similarity index 100% rename from generator/.gitignore rename to core/generator/.gitignore diff --git a/generator/java.stoneg.py b/core/generator/java/java.stoneg.py similarity index 91% rename from generator/java.stoneg.py rename to core/generator/java/java.stoneg.py index ef5ed8676..544b06896 100644 --- a/generator/java.stoneg.py +++ b/core/generator/java/java.stoneg.py @@ -1,25 +1,27 @@ -from __future__ import absolute_import, division, print_function, unicode_literals - import abc import argparse import json import os import re -import six import sys import types -from collections import defaultdict, OrderedDict, Sequence +from collections import defaultdict, OrderedDict + +if sys.version_info >= (3, 10): + from collections.abc import Sequence +else: + from collections import Sequence + from contextlib import contextmanager from functools import ( - partial, total_ordering, wraps, + reduce ) from itertools import chain from stone.ir import ( - Api, ApiNamespace, ApiRoute, DataType, @@ -32,7 +34,6 @@ is_map_type, is_nullable_type, is_numeric_type, - is_primitive_type, is_string_type, is_struct_type, is_timestamp_type, @@ -41,22 +42,23 @@ is_void_type, StructField, TagRef, - Union, UnionField, unwrap_nullable, - Void, ) from stone.backend import CodeBackend +from stone.frontend.ir_generator import parse_data_types_from_doc_ref + -@six.add_metaclass(abc.ABCMeta) -class StoneType: +class StoneType(metaclass=abc.ABCMeta): pass + StoneType.register(ApiNamespace) StoneType.register(ApiRoute) StoneType.register(DataType) StoneType.register(Field) + def cached(f): cache = {} @@ -72,10 +74,12 @@ def wrapper(*args, **kwargs): return wrapper -class cached_property(object): + +class cached_property: """ Decorator similar to @property, but which caches the results permanently. """ + def __init__(self, func): self._func = func self._attr_name = func.__name__ @@ -143,7 +147,7 @@ def split_paragraphs(s): def split_stone_name(stone_fq_name, max_parts): - assert isinstance(stone_fq_name, six.text_type), repr(stone_fq_name) + assert isinstance(stone_fq_name, str), repr(stone_fq_name) assert max_parts > 0, "max_parts must be positive" parts = stone_fq_name.split('.') @@ -163,6 +167,8 @@ def sanitize_pattern(pattern): ('<', '<'), ('>', '>'), ) + + def sanitize_javadoc(doc): # sanitize &, <, > characters for char, code in _JAVADOC_REPLACEMENT_CHARS: @@ -182,9 +188,9 @@ def oxford_comma_list(values, conjunction='and'): elif len(values) == 1: return values[0] elif len(values) == 2: - return '%s %s %s' % (values[0], conjunction, values[1]) + return '{} {} {}'.format(values[0], conjunction, values[1]) else: - return '%s, %s %s' % (', '.join(values[:-1]), conjunction, values[-1]) + return '{}, {} {}'.format(', '.join(values[:-1]), conjunction, values[-1]) def classname(s): @@ -237,8 +243,8 @@ def get_ancestors(data_type): tag = field.name break else: - assert False, "Type %s not found in subtypes of ancestor %s" % (data_type.name, - parent_type.name) + assert False, "Type {} not found in subtypes of ancestor {}".format(data_type.name, + parent_type.name) ancestors.append((tag, data_type)) data_type = parent_type ancestors.reverse() @@ -279,6 +285,7 @@ def get_enumerated_subtypes_recursively(data_type): return [] subtypes = [] + def add_subtype(data_type): subtypes.append(data_type) if data_type.has_enumerated_subtypes(): @@ -319,8 +326,12 @@ def union_create_with_method_name(data_type, value_fields_subset): return 'withTag%s' % method_suffix +def format_func_name(route): + return '{}_v{}'.format(route.name, route.version) if route.version > 1 else route.name + + @total_ordering -class JavaClass(object): +class JavaClass: """ Represents a Java class name. @@ -331,15 +342,19 @@ class explicitly by its fully-qualified name or its short-name. """ def __init__(self, fq_name, generics=()): - assert isinstance(fq_name, six.text_type), repr(fq_name) + assert isinstance(fq_name, str), repr(fq_name) assert isinstance(generics, Sequence), repr(generics) + # Find/Replace ".Tag" with ".TagObject" due to name conflict WEBSERVDB-18031 + if fq_name.endswith(".Tag"): + fq_name = fq_name.replace(".Tag", ".TagObject") + self._fq_name = fq_name self._generics = generics for g in generics: - assert isinstance(g, (JavaClass, six.text_type)), repr(generics) - if isinstance(g, six.text_type): + assert isinstance(g, (JavaClass, str)), repr(generics) + if isinstance(g, str): assert '.' not in g, repr(generics) package_parts = fq_name.split('.') @@ -361,7 +376,7 @@ def __init__(self, fq_name, generics=()): if is_last or is_class_name: self._package = '.'.join(package_parts[:i]) self._static_name = '.'.join(package_parts[i:]) - self._import_name = '.'.join(package_parts[:i+1]) + self._import_name = '.'.join(package_parts[:i + 1]) break @classmethod @@ -413,7 +428,7 @@ def name(self): @property def name_with_generics(self): if self._generics and all('.' in g for g in self._generics): - return '%s<%s>' % (self._name, ', '.join(self._generics)) + return '{}<{}>'.format(self._name, ', '.join(self._generics)) else: return self._name @@ -443,7 +458,7 @@ def resolved_name(self, current_class, imports, generics=False): g.resolved_name(current_class, imports, generics) if isinstance(g, JavaClass) else g for g in self._generics ) - return '%s<%s>' % (resolved, resolved_generics) + return '{}<{}>'.format(resolved, resolved_generics) else: return resolved @@ -506,11 +521,11 @@ def import_class(self): return JavaClass(self._import_name) def __repr__(self): - return '%s(%s)' % (type(self), str(self)) + return '{}({})'.format(type(self), str(self)) def __str__(self): if self._generics: - return '%s<%s>' % (self._fq_name, ', '.join(str(g) for g in self._generics)) + return '{}<{}>'.format(self._fq_name, ', '.join(str(g) for g in self._generics)) else: return self._fq_name @@ -531,7 +546,7 @@ def __lt__(self, other): @total_ordering -class Visibility(object): +class Visibility: def __init__(self, rank, name, modifier): self._rank = rank self._name = name @@ -576,36 +591,37 @@ def __lt__(self, other): assert isinstance(other, type(self)), repr(other) return self._rank < other._rank + Visibility.NONE = Visibility(0, 'NONE', None) Visibility.PRIVATE = Visibility(1, 'PRIVATE', 'private') Visibility.PACKAGE = Visibility(2, 'PACKAGE', '') Visibility.PUBLIC = Visibility(3, 'PUBLIC', 'public') Visibility._VALUES = (Visibility.NONE, Visibility.PRIVATE, Visibility.PACKAGE, Visibility.PUBLIC) - _CMDLINE_PARSER = argparse.ArgumentParser(prog='java-generator') -_CMDLINE_PARSER.add_argument('--package', type=six.text_type, required=True, +_CMDLINE_PARSER.add_argument('--package', type=str, required=True, help='base package name') -_CMDLINE_PARSER.add_argument('--client-class', type=six.text_type, default='StoneClient', +_CMDLINE_PARSER.add_argument('--client-class', type=str, default='StoneClient', help='Name of client class to generate.') -_CMDLINE_PARSER.add_argument('--client-javadoc', type=six.text_type, +_CMDLINE_PARSER.add_argument('--client-javadoc', type=str, default='Auto-generated Stone client', help='Class Javadoc to use for auto-generated client.') -_CMDLINE_PARSER.add_argument('--requests-classname-prefix', type=six.text_type, default=None, +_CMDLINE_PARSER.add_argument('--requests-classname-prefix', type=str, default=None, help=('Prefix to prepend to the per-namespace requests classes. ' 'Defaults to using the name of the client class.')) _CMDLINE_PARSER.add_argument('--data-types-only', action="store_true", default=False, help='Generate all data types but no routes or clients.') -_CMDLINE_PARSER.add_argument('--javadoc-refs', type=six.text_type, default=None, +_CMDLINE_PARSER.add_argument('--javadoc-refs', type=str, default=None, help='Path to Javadoc references file. If a file exists at this ' + - 'path, it will be loaded and used for generating correct Javadoc ' + - 'references based off previous generator runs. This is useful when ' + - 'generating multiple clients for a single project. ' + - 'If this argument is specified, an update Javadoc references file ' + - 'will be saved to the given location. It is OK if this file does not ' + - 'exist.') + 'path, it will be loaded and used for generating correct Javadoc ' + + 'references based off previous generator runs. This is useful when ' + + 'generating multiple clients for a single project. ' + + 'If this argument is specified, an update Javadoc references file ' + + 'will be saved to the given location. It is OK if this file does not ' + + 'exist.') _CMDLINE_PARSER.add_argument('--unused-classes-to-generate', default=None, help='Specify types ' + - 'that we want to generate regardless of whether they are used.') + 'that we want to generate regardless of whether they are used.') + class JavaCodeGenerator(CodeBackend): cmdline_parser = _CMDLINE_PARSER @@ -624,7 +640,7 @@ def generate(self, api): generator.generate_all() -class JavaImporter(object): +class JavaImporter: def __init__(self, current_class, j): assert isinstance(current_class, JavaClass), repr(current_class) assert isinstance(j, JavaApi), repr(j) @@ -645,12 +661,12 @@ def add_imports(self, *imports): Imports must be fully-qualified class name strings (e.g. ``"com.foo.Bar"``) or JavaClass instances. """ - assert all(isinstance(i, (six.text_type, JavaClass)) for i in imports), repr(imports) + assert all(isinstance(i, (str, JavaClass)) for i in imports), repr(imports) def convert(val): if isinstance(val, JavaClass): return val - elif isinstance(val, six.string_types): + elif isinstance(val, str): return JavaClass(val) else: raise AssertionError(repr(type(val))) @@ -763,7 +779,6 @@ def add_imports_for_route_builder(self, route): self._add_imports_for_data_type_exception(route.error_data_type) namespace = j.route_namespace(route) - route_auth = j.auth_style(route) if j.auth_style(route) != 'noauth' else 'user' self.add_imports( j.java_class(namespace), 'com.dropbox.core.DbxException', @@ -811,6 +826,14 @@ def add_imports_for_data_type(self, data_type, include_serialization=True): if is_string_type(field.data_type) and field.data_type.pattern is not None: self.add_imports('java.util.regex.Pattern') + if is_struct_type(data_type): + # for nullable fields + if not field.has_default and field in data_type.all_optional_fields: + self.add_imports('javax.annotation.Nullable') + # for nonnull fields + if not j.is_java_primitive(field.data_type): + self.add_imports('javax.annotation.Nonnull') + # check if we need to import parent type if is_struct_type(data_type) and data_type.parent_type: self._add_imports_for_data_type(data_type.parent_type) @@ -868,6 +891,7 @@ def _add_imports_for_data_type_serializers(self, data_type): 'com.fasterxml.jackson.core.JsonParser', 'com.fasterxml.jackson.core.JsonToken', 'com.dropbox.core.stone.StoneSerializers', + 'com.dropbox.core.stone.StoneDeserializerLogger', ) if is_struct_type(data_type): self.add_imports('com.dropbox.core.stone.StructSerializer') @@ -875,10 +899,10 @@ def _add_imports_for_data_type_serializers(self, data_type): self.add_imports('com.dropbox.core.stone.UnionSerializer') def __repr__(self): - return '%s(class=%s,imports=%s)' % (type(self).__name__, self._class, self._imports) + return '{}(class={},imports={})'.format(type(self).__name__, self._class, self._imports) -class JavaClassWriter(object): +class JavaClassWriter: def __init__(self, g, j, refs, java_class, stone_element=None, package_doc=None): assert isinstance(java_class, JavaClass), repr(java_class) assert java_class.package, repr(java_class) @@ -920,7 +944,7 @@ def __exit__(self, exc_type, exc_value, traceback): return ret def fmt(self, fmt_str, *args, **kwargs): - assert isinstance(fmt_str, six.text_type), repr(fmt_str) + assert isinstance(fmt_str, str), repr(fmt_str) generics = kwargs.get('generics', True) # resolve JavaClass to appropriate names based on our current imports resolved_args = tuple( @@ -975,7 +999,7 @@ def class_block(self, element, visibility=Visibility.PUBLIC, parent_class=None): return self.block('%s %s %s', ' '.join(modifiers), class_type, class_name) def resolved_class(self, val, generics=True): - if isinstance(val, six.text_type): + if isinstance(val, str): val = JavaClass(val) else: assert isinstance(val, JavaClass), repr(val) @@ -1032,8 +1056,8 @@ def write_imports(self): needs_newline = bool(project_imports) for _, imports in chain(sorted(grouped.items()), [ - ('java', java_imports), - ('javax', javax_imports) + ('java', java_imports), + ('javax', javax_imports) ]): if imports: if needs_newline: @@ -1045,8 +1069,7 @@ def write_imports(self): def java_default_value(self, field): assert isinstance(field, Field), repr(field) assert field.has_default, repr(field) - default_value = '\"\"' if field.default == '' else field.default - return self.java_value(field.data_type, default_value) + return self.java_value(field.data_type, field.default) def java_value(self, data_type, stone_value): assert isinstance(data_type, DataType), repr(data_type) @@ -1057,8 +1080,10 @@ def java_value(self, data_type, stone_value): return 'true' if stone_value else 'false' elif data_type.name == 'String': return self.fmt('"%s"', stone_value.replace('\\', '\\\\').replace('"', '\\"')) - elif data_type.name in ('Float32', 'Float64'): - return repr(stone_value) # Because str() drops the last few digits. + elif data_type.name == 'Float32': + return repr(stone_value) + 'f' # append a f at the end for float value + elif data_type.name == 'Float64': + return repr(stone_value) # Because str() drops the last few digits. elif data_type.name in ('Int64', 'UInt64', 'UInt32'): return str(stone_value) + 'L' # Need exact type match for boxed values. elif is_union_type(data_type): @@ -1074,7 +1099,7 @@ def java_value(self, data_type, stone_value): value = self.fmt('%s.%s()', j.java_class(data_type), j.field_factory_method(field)) return value else: - assert False, "Could not find tag '%s' in '%s'" % (stone_value.tag_name, data_type) + assert False, "Could not find tag '{}' in '{}'".format(stone_value.tag_name, data_type) else: return str(stone_value) @@ -1123,12 +1148,12 @@ def javadoc(self, doc, doc = doc or '' - assert isinstance(doc, six.text_type), repr((doc, stone_elem)) + assert isinstance(doc, str), repr((doc, stone_elem)) assert isinstance(stone_elem, StoneType) or stone_elem is None, repr(stone_elem) assert isinstance(fields, Sequence), repr(fields) assert all(isinstance(f, Field) for f in fields), repr(fields) assert isinstance(params, (Sequence, OrderedDict)), repr(params) - assert isinstance(returns, (six.text_type, StoneType)) or returns is None, repr(returns) + assert isinstance(returns, (str, StoneType)) or returns is None, repr(returns) assert isinstance(throws, (Sequence, OrderedDict)), repr(throws) assert isinstance(deprecated, (ApiRoute, bool)) or deprecated is None, repr(deprecated) @@ -1170,14 +1195,14 @@ def javadoc(self, doc, def throws(self, field, value_name=None): assert isinstance(field, Field), repr(field) - assert value_name is None or isinstance(value_name, six.text_type), repr(value_name) + assert value_name is None or isinstance(value_name, str), repr(value_name) reasons = self._field_validation_requirements(field, as_failure_reasons=True) throws = OrderedDict() if reasons: reasons_list = oxford_comma_list(reasons, conjunction='or') - throws["IllegalArgumentException"] = "if {@code %s} %s." % (value_name, reasons_list) + throws["IllegalArgumentException"] = "if {{@code {}}} {}.".format(value_name, reasons_list) return throws @@ -1261,10 +1286,10 @@ def emit_attrs(tag, attrs): self._g.emit_wrapped_text(paragraph, initial_prefix=prefix, subsequent_prefix=prefix) emit_attrs('@param', params) - emit_attrs('@return', { "": returns } if returns else None) + emit_attrs('@return', {"": returns} if returns else None) emit_attrs('@throws', throws) # deprecated can be empty string, which still means we should emit - emit_attrs('@deprecated', { "": deprecated } if deprecated is not None else None) + emit_attrs('@deprecated', {"": deprecated} if deprecated is not None else None) self.out(' */') # compiler requires a separate annotation outside the javadoc to display warnings about @@ -1342,6 +1367,7 @@ def _field_validation_requirements(self, field, as_failure_reasons=False): data_type = data_type.data_type requirements = [] + def add_req(precondition, failure_reason): if as_failure_reasons: requirements.append(failure_reason) @@ -1373,7 +1399,7 @@ def add_req(precondition, failure_reason): return requirements def _translate_stone_doc(self, doc, stone_elem=None): - assert isinstance(doc, six.text_type) or doc is None, repr(doc) + assert isinstance(doc, str) or doc is None, repr(doc) if doc: handler = lambda tag, val: self._javadoc_ref_handler(tag, val, stone_elem=stone_elem) return self._g.process_doc(sanitize_javadoc(doc), handler) @@ -1393,7 +1419,7 @@ def _javadoc_ref_handler(self, tag, val, stone_elem=None): """ element = self._lookup_stone_ref(tag, val, stone_elem) if element is None and tag in ('route', 'type', 'field'): - self._g.logger.warn('Unable to resolve Stone reference (:%s:`%s`) [ctx=%s]' % (tag, val, stone_elem)) + self._g.logger.warn('Unable to resolve Stone reference (:{}:`{}`) [ctx={}]'.format(tag, val, stone_elem)) return sanitize_javadoc('{@code %s}' % camelcase(val)) # use {@code ...} tag for unresolved references so we don't have broken links in our Javadoc @@ -1408,18 +1434,18 @@ def _javadoc_ref_handler(self, tag, val, stone_elem=None): # unsanitize from previous sanitize calls anchor = unsanitize_javadoc(anchor) # do not sanitize this HTML - return '%s' % (link, anchor) + return '{}'.format(link, anchor) elif tag == 'val': # Note that all valid Stone literals happen to be valid Java literals. ref = '{@code %s}' % val else: - assert False, 'Unsupported tag (:%s:`%s`)' % (tag, val) + assert False, 'Unsupported tag (:{}:`{}`)'.format(tag, val) return sanitize_javadoc(ref) def _lookup_stone_ref(self, tag, val, stone_elem): - assert isinstance(tag, six.text_type), repr(tag) - assert isinstance(val, six.text_type), repr(val) + assert isinstance(tag, str), repr(tag) + assert isinstance(val, str), repr(val) assert isinstance(stone_elem, StoneType) or stone_elem is None, repr(stone_elem) assert val, repr(val) @@ -1430,13 +1456,13 @@ def resolve_fq_name(val, max_parts): parts = split_stone_name(val, max_parts) except ValueError as e: # mark tag as invalid... can't raise exception here since we don't validate stone docs - self._g.logger.warn('Malformed Stone reference value: `%s`. %s' % (val, str(e))) + self._g.logger.warn('Malformed Stone reference value: `{}`. {}'.format(val, str(e))) return None else: if stone_elem and None in parts: context_parts = j.stone_fq_name(stone_elem).split('.') # pad the end with None's - context_parts += [None,] * (max_parts - len(context_parts)) + context_parts += [None, ] * (max_parts - len(context_parts)) parts = [(orig or context) for orig, context in zip(parts, context_parts)] if None in parts: return None @@ -1444,7 +1470,7 @@ def resolve_fq_name(val, max_parts): return '.'.join(parts) if tag == 'route': - fq_name = resolve_fq_name(val, 2) + fq_name = resolve_fq_name(val.replace(":", "_v"), 2) return self._refs.route(fq_name) if fq_name else None elif tag == 'type': fq_name = resolve_fq_name(val, 2) @@ -1457,7 +1483,7 @@ def resolve_fq_name(val, max_parts): elif tag == 'val': return None else: - assert False, 'Unsupported tag (:%s:`%s`)' % (tag, val) + assert False, 'Unsupported tag (:{}:`{}`)'.format(tag, val) def _javadoc_route_ref(self, route_ref, builder=False): assert isinstance(route_ref, RouteReference), repr(route_ref) @@ -1505,7 +1531,7 @@ def _javadoc_field_ref(self, field_ref): # make the Javadoc reference point to the route method instead of the struct class. if field_ref.route_refs and not self._g.args.data_types_only: # the struct should not appear anywhere else besides as a route argument - return 'the {@code %s} argument to %s' % ( + return 'the {{@code {}}} argument to {}'.format( field_ref.param_name, oxford_comma_list([ self._javadoc_route_ref(route_ref) @@ -1526,7 +1552,7 @@ def _javadoc_field_ref(self, field_ref): ) -class JavaApi(object): +class JavaApi: def __init__(self, api, generator_args): self.stone_api = api self._args = generator_args @@ -1623,10 +1649,21 @@ def update_by_reference(data_type, namespace): cur_state = visibility.copy() while prev_state != cur_state: for namespace in api.namespaces.values(): + if namespace.doc is not None: + data_types = parse_data_types_from_doc_ref(api, namespace.doc, namespace.name, + ignore_missing_entries=True) + for d in data_types: + update_by_reference(d, namespace) for data_type in namespace.data_types: if not visibility[data_type].is_visible: continue + if data_type.doc is not None: + data_types = parse_data_types_from_doc_ref(api, data_type.doc, namespace.name, + ignore_missing_entries=True) + for d in data_types: + update_by_reference(d, namespace) + for field in data_type.all_fields: field_data_type = get_underlying_type(field.data_type) # if this data type is public, then all its fields must be public as well @@ -1639,6 +1676,12 @@ def update_by_reference(data_type, namespace): # the field data type update_by_reference(field_data_type, namespace) + if field.doc is not None: + data_types = parse_data_types_from_doc_ref(api, field.doc, namespace.name, + ignore_missing_entries=True) + for d in data_types: + update_by_reference(d, namespace) + if is_struct_type(data_type): if data_type.parent_type: if visibility[data_type] == Visibility.PUBLIC: @@ -1687,15 +1730,32 @@ def update_by_reference(data_type, namespace): cur_state = visibility.copy() while prev_state != cur_state: for namespace in api.namespaces.values(): + if namespace.doc is not None: + data_types = parse_data_types_from_doc_ref(api, namespace.doc, namespace.name, + ignore_missing_entries=True) + for d in data_types: + update_by_reference(d, namespace) for data_type in namespace.data_types: if not visibility[data_type].is_visible: continue + if data_type.doc is not None: + data_types = parse_data_types_from_doc_ref(api, data_type.doc, namespace.name, + ignore_missing_entries=True) + for d in data_types: + update_by_reference(d, namespace) + for field in data_type.all_fields: field_data_type = get_underlying_type(field.data_type) if is_user_defined_type(field_data_type): update_by_reference(field_data_type, namespace) + if field.doc is not None: + data_types = parse_data_types_from_doc_ref(api, field.doc, namespace.name, + ignore_missing_entries=True) + for d in data_types: + update_by_reference(d, namespace) + # parents need access to their enumerated subtype serializers if is_struct_type(data_type) and data_type.has_enumerated_subtypes(): for subtype in data_type.get_enumerated_subtypes(): @@ -1714,7 +1774,7 @@ def get_spec_filename(element): def get_spec_filenames(self, element): assert isinstance(element, StoneType), repr(element) - filenames = OrderedDict() # ordered set + filenames = OrderedDict() # ordered set if isinstance(element, ApiNamespace): for child in chain(element.data_types, element.routes): filenames[self.get_spec_filename(child)] = None @@ -1762,23 +1822,23 @@ def stone_fq_name(self, stone_elem, containing_data_type=None): assert isinstance(containing_data_type, DataType) or containing_data_type is None, repr(containing_data_type) if isinstance(stone_elem, ApiNamespace): - parts = [stone_elem] + parts = [stone_elem.name] elif isinstance(stone_elem, DataType): if is_user_defined_type(stone_elem): - parts = [stone_elem.namespace, stone_elem] + parts = [stone_elem.namespace.name, stone_elem.name] else: - parts = [stone_elem] + parts = [stone_elem.name] elif isinstance(stone_elem, ApiRoute): namespace = self.route_namespace(stone_elem) - parts = [namespace, stone_elem] + parts = [namespace.name, format_func_name(stone_elem)] elif isinstance(stone_elem, Field): containing_data_type = containing_data_type or self.field_containing_data_type(stone_elem) namespace = containing_data_type.namespace - parts = [namespace, containing_data_type, stone_elem] + parts = [namespace.name, containing_data_type.name, stone_elem.name] else: raise ValueError("Unsupported Stone type: %s" % type(stone_elem)) - return '.'.join(p.name for p in parts) + return '.'.join(p for p in parts) def namespace_getter_method(self, namespace): assert isinstance(namespace, ApiNamespace), repr(namespace) @@ -1839,6 +1899,15 @@ def field_builder_method(self, field): return camelcase('with_' + field.name) return None + def nullability_annotation(self, field): + containing_data_type = self._containing_data_types[field] + if not field.has_default and field in containing_data_type.all_optional_fields: + return '@Nullable' + elif not self.is_java_primitive(field.data_type): + return '@Nonnull' + else: + return '' + def is_java_primitive(self, data_type): return self.java_class(data_type, generics=False).name[0].islower() @@ -1870,7 +1939,7 @@ def url_path(self, route): Server URL path associated with this route. """ assert isinstance(route, ApiRoute), repr(route) - return '2/%s/%s' % (self._namespaces_by_route[route].name, route.name) + return '2/{}/{}'.format(self._namespaces_by_route[route].name, format_func_name(route)) @staticmethod def has_arg(route): @@ -1919,12 +1988,12 @@ def has_builder(self, stone_elem): @staticmethod def route_method(route): assert isinstance(route, ApiRoute), repr(route) - return camelcase(route.name) + return camelcase(format_func_name(route)) @staticmethod def route_builder_method(route): assert isinstance(route, ApiRoute), repr(route) - return camelcase(route.name + '_builder') + return camelcase(format_func_name(route) + '_builder') @staticmethod def namespace_package(namespace, base_package): @@ -1939,7 +2008,7 @@ def java_class(self, stone_elem, boxed=False, generics=True): namespace = stone_elem package = self.namespace_package(namespace, base_package) prefix = self._args.requests_classname_prefix or self._args.client_class - return JavaClass(package + '.' + classname('%s_%s_Requests' % (prefix, namespace.name))) + return JavaClass(package + '.' + classname('{}_{}_Requests'.format(prefix, namespace.name))) elif isinstance(stone_elem, ApiRoute): route = stone_elem return self.java_class(self._namespaces_by_route[route]) @@ -1971,8 +2040,15 @@ def builder_class(self, stone_elem): if isinstance(stone_elem, ApiRoute): route = stone_elem + + if ',' in self.auth_style(route): + # Use prefix here because multiple builders may be generated + # if the endpoint has multiple auth types + prefix = (self._args.requests_classname_prefix or self._args.client_class) + "_" + else: + prefix = "" package = self.java_class(route).package - return JavaClass(package + '.' + classname(route.name + '_builder')) + return JavaClass(package + '.' + classname('{}{}_builder'.format(prefix, format_func_name(route)))) else: data_type = stone_elem assert is_user_defined_type(data_type), repr(data_type) @@ -2024,14 +2100,16 @@ def route_throws_classes(self, route): def route_uploader_class(self, route): assert isinstance(route, ApiRoute), repr(route) - return JavaClass(self.java_class(route).package + '.' + classname(route.name + '_Uploader')) + return JavaClass( + self.java_class(route).package + '.' + classname(format_func_name(route) + '_Uploader') + ) def route_downloader_class(self, route): assert isinstance(route, ApiRoute), repr(route) assert self.request_style(route) == 'download', repr(route) return JavaClass('com.dropbox.core.DbxDownloader', generics=( - self.java_class(route.result_data_type), + self.java_class(route.result_data_type, boxed=True), )) def is_used_by_client(self, data_type): @@ -2054,7 +2132,7 @@ def route_namespace(self, route): return self._namespaces_by_route[route] def _lookup_data_type(self, fq_name): - assert isinstance(fq_name, six.text_type), repr(fq_name) + assert isinstance(fq_name, str), repr(fq_name) assert '.' in fq_name, repr(fq_name) namespace_name, data_type_name = split_stone_name(fq_name, max_parts=2) namespace = self.stone_api.namespaces.get(namespace_name) @@ -2094,7 +2172,7 @@ def mark_data_type_as_used(self, data_type): self._client_data_types.add(data_type) -class JavaReferences(object): +class JavaReferences: def __init__(self, j): self.j = j @@ -2189,7 +2267,7 @@ def data_type(self, data_type): if isinstance(data_type, DataType): name = j.stone_fq_name(data_type) else: - assert isinstance(data_type, six.text_type), repr(data_type) + assert isinstance(data_type, str), repr(data_type) name = data_type assert '.' in name, "Must use fully-qualified stone name: %s" % name return self.data_types.get(name) @@ -2201,7 +2279,7 @@ def field(self, field, containing_data_type=None): else: # we expect fully-qualified names for string field references assert containing_data_type is None, repr(field) - assert isinstance(field, six.text_type), repr(field) + assert isinstance(field, str), repr(field) name = field assert '.' in name, "Must use fully-qualified stone name: %s" % name return self.fields.get(name) @@ -2211,7 +2289,7 @@ def route(self, route): if isinstance(route, ApiRoute): name = j.stone_fq_name(route) else: - assert isinstance(route, six.text_type), repr(route) + assert isinstance(route, str), repr(route) name = route assert '.' in name, "Must use fully-qualified stone name: %s" % name return self.routes.get(name) @@ -2253,16 +2331,16 @@ def _initialize(self): ) -class JavaReference(object): +class JavaReference: def __init__(self, fq_name): - assert isinstance(fq_name, six.text_type), repr(fq_name) + assert isinstance(fq_name, str), repr(fq_name) self.fq_name = fq_name def __repr__(self): - return '%s(%s)' % (type(self).__name__, self.__dict__) + return '{}({})'.format(type(self).__name__, self.__dict__) def __str__(self): - return '%s(%s)' % (type(self).__name__, self.fq_name) + return '{}({})'.format(type(self).__name__, self.fq_name) def _as_json(self): dct = {} @@ -2307,7 +2385,7 @@ class JavaClassReference(JavaReference): def __init__(self, name, java_class, visibility=Visibility.NONE): assert isinstance(java_class, JavaClass), repr(java_class) assert isinstance(visibility, Visibility), repr(visibility) - super(JavaClassReference, self).__init__(name) + super().__init__(name) self.java_class = java_class self.visibility = visibility @@ -2317,13 +2395,13 @@ def update_visibility(self, visibility): def _from_json(self, obj): self.java_class = JavaClass.from_str(obj.pop('java_class')) self.visibility = Visibility.from_name(obj.pop('visibility')) - super(JavaClassReference, self)._from_json(obj) + super()._from_json(obj) class RouteReference(JavaClassReference): def __init__(self, j, route, error_ref): assert isinstance(route, ApiRoute), repr(route) - super(RouteReference, self).__init__( + super().__init__( j.stone_fq_name(route), j.java_class(route), Visibility.PUBLIC @@ -2338,7 +2416,7 @@ def __init__(self, j, route, error_ref): if is_struct_type(route.arg_data_type): self.is_method_overloaded = ( - any(route.arg_data_type.all_optional_fields) and not j.has_builder(route.arg_data_type) + any(route.arg_data_type.all_optional_fields) and not j.has_builder(route.arg_data_type) ) if self.is_method_overloaded: fields = route.arg_data_type.all_fields @@ -2353,13 +2431,13 @@ def _from_json(self, obj): self.method_arg_classes = tuple( JavaClass.from_str(c) for c in obj.pop('method_arg_classes') ) - super(RouteReference, self)._from_json(obj) + super()._from_json(obj) class DataTypeReference(JavaClassReference): def __init__(self, j, data_type): assert isinstance(data_type, DataType), repr(data_type) - super(DataTypeReference, self).__init__( + super().__init__( j.stone_fq_name(data_type), j.java_class(data_type), visibility=j.data_type_visibility(data_type) @@ -2375,7 +2453,7 @@ def update_serializer_visibility(self, visibility): def _from_json(self, obj): self.builder_class = JavaClass.from_str(obj.pop('builder_class')) if obj['builder_class'] else None self.serializer_visibility = Visibility.from_name(obj.pop('serializer_visibility')) - super(DataTypeReference, self)._from_json(obj) + super()._from_json(obj) class FieldReference(JavaReference): @@ -2385,7 +2463,7 @@ def __init__(self, j, field, fq_name, containing_data_type_ref, route_refs): assert isinstance(route_refs, Sequence), repr(route_refs) assert all(isinstance(r, RouteReference) for r in route_refs), repr(route_refs) - super(FieldReference, self).__init__(fq_name) + super().__init__(fq_name) self.param_name = j.param_name(field) self.static_instance = j.field_static_instance(field) @@ -2395,7 +2473,7 @@ def __init__(self, j, field, fq_name, containing_data_type_ref, route_refs): self.route_refs = route_refs -class JavaCodeGenerationInstance(object): +class JavaCodeGenerationInstance: """ Java code generation instance for a particular Stone tree (:class:`stone.api.Api`). @@ -2406,6 +2484,8 @@ def __init__(self, g, api): self.api = api self.g = g self.j = JavaApi(api, self.g.args) + # some classes are unused, but we still want them to be generated + self._mark_special_unused_classes() self.refs = JavaReferences(self.j) # JavaClassWriter, created with self.class_writer(..) self.w = None @@ -2421,7 +2501,8 @@ def class_writer(self, stone_type_or_class, package_doc=None): java_class = self.j.java_class(stone_type_or_class) stone_element = stone_type_or_class - with JavaClassWriter(self.g, self.j, self.refs, java_class, stone_element=stone_element, package_doc=package_doc) as w: + with JavaClassWriter(self.g, self.j, self.refs, java_class, stone_element=stone_element, + package_doc=package_doc) as w: assert self.w is None, self.w self.w = w yield w @@ -2432,9 +2513,6 @@ def generate_all(self): self.generate_client() - # some classes are unused, but we still want them to be generated - self._mark_special_unused_classes() - for namespace in self.api.namespaces.values(): self.generate_namespace(namespace) @@ -2451,7 +2529,7 @@ def update_javadoc_refs(self): # load existing file and merge it with our current state if os.path.exists(javadoc_refs_path): - with open(javadoc_refs_path, 'r') as f: + with open(javadoc_refs_path) as f: self.refs.load(f) # save our updated state back to the file @@ -2611,7 +2689,8 @@ def generate_namespace_routes(self, namespace): # we don't use builders if we have too few optional fields. Instead we just # create another method call. We have an exception for download endpoints, which # recently added builders for previous routes that had no builders - has_optional_fields = is_struct_type(route.arg_data_type) and route.arg_data_type.all_optional_fields + has_optional_fields = is_struct_type( + route.arg_data_type) and route.arg_data_type.all_optional_fields if has_optional_fields and not j.has_builder(route.arg_data_type): self.generate_route(route, required_only=False) @@ -2642,10 +2721,10 @@ def generate_package_javadoc(self, namespace): package_doc = ( """ - %s + {} - %s - """ % (namespace.doc or '', requests_reference_doc) + {} + """.format(namespace.doc or '', requests_reference_doc) ) package_info_class = JavaClass(j.java_class(namespace).package + '.' + 'package-info') @@ -2677,11 +2756,11 @@ def generate_route_base(self, route, force_public=False): return_class = JavaClass('void') if is_public: - deprecated = None # automatically determine from route + deprecated = None # automatically determine from route visibility = 'public' else: - deprecated = False # Don't mark private methods deprecated since we don't care - visibility = '' # package private + deprecated = False # Don't mark private methods deprecated since we don't care + visibility = '' # package private throws_classes = j.route_throws_classes(route) throws = ', '.join(w.resolved_class(c) for c in throws_classes) @@ -2756,7 +2835,6 @@ def generate_route(self, route, required_only=True): # you want to support this. assert n_optional == 1, "More than one optional field should permit boxing! %s" % repr(route) - if j.request_style(route) == 'upload': returns = "Uploader used to upload the request body and finish request." return_class = j.route_uploader_class(route) @@ -2767,7 +2845,7 @@ def generate_route(self, route, required_only=True): returns = result return_class = j.java_class(route.result_data_type) else: - returns=None + returns = None return_class = JavaClass('void') if required_only: @@ -2779,7 +2857,7 @@ def generate_route(self, route, required_only=True): ) default_fields = tuple(f for f in arg.all_optional_fields if f.has_default) - doc = route.doc or '' + doc = route.raw_doc or '' if required_only and default_fields: if j.has_builder(route): doc += """ @@ -2791,7 +2869,7 @@ def generate_route(self, route, required_only=True): default_field = default_fields[0] doc += """ - The {@code %s} request parameter will default to {@code %s} (see {@link #%s(%s)}).""" % ( + The {{@code {}}} request parameter will default to {{@code {}}} (see {{@link #{}({})}}).""".format( j.param_name(default_field), w.java_default_value(default_field), j.route_method(route), @@ -2849,11 +2927,11 @@ def generate_route_builder_method(self, route): return_class = j.builder_class(route) if j.request_style(route) == 'upload': - returns="Uploader builder for configuring request parameters and instantiating an uploader." + returns = "Uploader builder for configuring request parameters and instantiating an uploader." elif j.request_style(route) == 'download': - returns="Downloader builder for configuring the request parameters and instantiating a downloader." + returns = "Downloader builder for configuring the request parameters and instantiating a downloader." else: - returns="Request builder for configuring request parameters and completing the request." + returns = "Request builder for configuring request parameters and completing the request." required_fields = arg.all_required_fields args = ', '.join( @@ -2870,14 +2948,14 @@ def generate_route_builder_method(self, route): j.builder_class(arg), j.java_class(arg), builder_args, - ) + ) w.out('return new %s(this, argBuilder_);', return_class) else: w.out('return new %s(this, %s);', return_class, builder_args) def translate_error_wrapper(self, route, error_wrapper_var): assert isinstance(route, ApiRoute), repr(route) - assert isinstance(error_wrapper_var, six.text_type), repr(error_wrapper_var) + assert isinstance(error_wrapper_var, str), repr(error_wrapper_var) w = self.w j = self.j @@ -2891,11 +2969,11 @@ def translate_error_wrapper(self, route, error_wrapper_var): j.java_class(route.error_data_type), error_wrapper_var) else: - message = '"Unexpected error response for \\"%s\\":" + %s.getErrorValue()' % ( - route.name, + message = '"Unexpected error response for \\"{}\\":" + {}.getErrorValue()'.format( + format_func_name(route), error_wrapper_var, ) - return 'new DbxApiException(%s.getRequestId(), %s.getUserMessage(), %s);' % ( + return 'new DbxApiException({}.getRequestId(), {}.getUserMessage(), {});'.format( error_wrapper_var, error_wrapper_var, message) @@ -3048,20 +3126,19 @@ def generate_data_type_union(self, data_type): w = self.w j = self.j - class_doc = """%s + class_doc = """{} - This class is %s union. Tagged unions instances are always associated to a - specific tag. This means only one of the {@code isAbc()} methods will return {@code - true}. You can use {@link #tag()} to determine the tag associated with this instance. - """ % (data_type.doc or '', 'an open tagged' if data_type.catch_all_field else 'a tagged') + This class is {} union. Tagged unions instances are always associated to a + specific tag. This means only one of the {{@code isAbc()}} methods will return {{@code + true}}. You can use {{@link #tag()}} to determine the tag associated with this instance. + """.format(data_type.doc or '', 'an open tagged' if data_type.catch_all_field else 'a tagged') if data_type.catch_all_field: - class_doc += """ + class_doc += """ Open unions may be extended in the future with additional tags. If a new tag is introduced that this SDK does not recognized, the {@link #%s} value will be used. """ % j.field_static_instance(data_type.catch_all_field) - visibility = j.data_type_visibility(data_type) w.out('') @@ -3096,7 +3173,7 @@ def generate_data_type_union(self, data_type): j.java_class(data_type), method_name, singleton_args, - ) + ) # # Instance fields @@ -3148,7 +3225,7 @@ def _gen_create_with_method(data_type, value_fields_subset): w.out('') if data_type.catch_all_field: catch_all_doc = ( - """ + """ If a tag returned by the server is unrecognized by this SDK, the {@link Tag#%s} value will be used. """ % j.field_tag_enum_name(data_type.catch_all_field) @@ -3160,11 +3237,11 @@ def _gen_create_with_method(data_type, value_fields_subset): Returns the tag for this instance. This class is a tagged union. Tagged unions instances are always associated to a - specific tag. This means only one of the {@code isXyz()} methods will return {@code - true}. Callers are recommended to use the tag value in a {@code switch} statement to - properly handle the different values for this {@code %s}. + specific tag. This means only one of the {{@code isXyz()}} methods will return {{@code + true}}. Callers are recommended to use the tag value in a {{@code switch}} statement to + properly handle the different values for this {{@code {}}}. - %s""" % (j.java_class(data_type).name, catch_all_doc), + {}""".format(j.java_class(data_type).name, catch_all_doc), stone_elem=data_type, returns="the tag for this instance." ) @@ -3203,11 +3280,11 @@ def generate_data_type_union_field_methods(self, data_type): otherwise. """ % j.field_tag_enum_name(field), returns=( - """ + """ {@code true} if this instance is tagged as {@link Tag#%s}, {@code false} otherwise. """ - ) % j.field_tag_enum_name(field) + ) % j.field_tag_enum_name(field) ) with w.block('public boolean %s()' % j.field_tag_match_method_name(field)): w.out('return this._tag == Tag.%s;', j.field_tag_enum_name(field)) @@ -3219,12 +3296,12 @@ def generate_data_type_union_field_methods(self, data_type): w.out('') doc = ( """ - Returns an instance of {@code %s} that has its tag set to {@link Tag#%s}. + Returns an instance of {{@code {}}} that has its tag set to {{@link Tag#{}}}. - %s - """ % (j.java_class(data_type).name, j.field_tag_enum_name(field), field.doc) + {} + """.format(j.java_class(data_type).name, j.field_tag_enum_name(field), field.doc) ) - returns = "Instance of {@code %s} with its tag set to {@link Tag#%s}." % ( + returns = "Instance of {{@code {}}} with its tag set to {{@link Tag#{}}}.".format( j.java_class(data_type).name, j.field_tag_enum_name(field)) w.javadoc( doc, @@ -3238,8 +3315,9 @@ def generate_data_type_union_field_methods(self, data_type): j.java_class(data_type), j.field_factory_method(field), j.java_class(field), - ): - self.generate_field_validation(field, value_name="value", omit_arg_name=True, allow_default=False) + ): + self.generate_field_validation(field, value_name="value", omit_arg_name=True, + allow_default=False) method_name = union_create_with_method_name(data_type, [field]) w.out('return new %s().%s(Tag.%s, %s);', j.java_class(data_type), @@ -3259,25 +3337,26 @@ def generate_data_type_union_field_methods(self, data_type): w.out('') w.javadoc( """ - %s + {} - This instance must be tagged as {@link Tag#%s}. - """ % (field.doc or '', j.field_tag_enum_name(field)), + This instance must be tagged as {{@link Tag#{}}}. + """.format(field.doc or '', j.field_tag_enum_name(field)), stone_elem=field, returns=""" - The %s value associated with this instance if {@link #%s} is - {@code true}. - """ % (w.javadoc_ref(field.data_type), j.field_tag_match_method_name(field)), + The {} value associated with this instance if {{@link #{}}} is + {{@code true}}. + """.format(w.javadoc_ref(field.data_type), j.field_tag_match_method_name(field)), throws=OrderedDict( IllegalStateException="If {@link #%s} is {@code false}." % j.field_tag_match_method_name(field), ) ) with w.block('public %s %s()', j.java_class(field), j.field_getter_method(field)): with w.block('if (this._tag != Tag.%s)', j.field_tag_enum_name(field)): - w.out('throw new IllegalStateException("Invalid tag: required Tag.%s, but was Tag." + this._tag.name());', j.field_tag_enum_name(field)) + w.out( + 'throw new IllegalStateException("Invalid tag: required Tag.%s, but was Tag." + this._tag.name());', + j.field_tag_enum_name(field)) w.out('return %s;', j.param_name(field)) - def generate_data_type_struct(self, data_type): assert is_struct_type(data_type), repr(data_type) @@ -3296,6 +3375,9 @@ def generate_data_type_struct(self, data_type): # w.out('') for field in data_type.fields: + annotation = j.nullability_annotation(field) + if len(annotation) > 0: + w.out(annotation) # fields marked as protected since structs allow inheritance w.out('protected final %s %s;', j.java_class(field), j.param_name(field)) @@ -3305,7 +3387,7 @@ def generate_data_type_struct(self, data_type): # use builder or required-only constructor for default values args = ', '.join( - w.fmt('%s %s', j.java_class(f), j.param_name(f)) + w.fmt('%s %s %s', j.nullability_annotation(f), j.java_class(f), j.param_name(f)).lstrip() for f in data_type.all_fields ) doc = data_type.doc or '' @@ -3332,7 +3414,7 @@ def generate_data_type_struct(self, data_type): # create a constructor with just required fields (for convenience) required_fields = data_type.all_required_fields required_args = ', '.join( - w.fmt('%s %s', j.java_class(f), j.param_name(f)) + w.fmt('%s %s %s', j.nullability_annotation(f), j.java_class(f), j.param_name(f)).lstrip() for f in required_fields ) w.out('') @@ -3372,10 +3454,12 @@ def generate_data_type_struct(self, data_type): returns += ' Defaults to %s.' % w.java_default_value(field) w.javadoc(field.doc or '', stone_elem=field, returns=returns) + annotation = j.nullability_annotation(field) + if len(annotation) > 0: + w.out(annotation) with w.block('public %s %s()', j.java_class(field), j.field_getter_method(field)): w.out('return %s;' % j.param_name(field)) - # # builder # @@ -3518,7 +3602,6 @@ def generate_builder_methods(self, builder_class, fields, wrapped_builder_name=N If left unset or set to {@code null}, defaults to {@code %s}. """ % w.java_default_value(field) - # # withFieldName(FieldType fieldValue); # @@ -3527,7 +3610,7 @@ def generate_builder_methods(self, builder_class, fields, wrapped_builder_name=N with w.block('public %s %s(%s %s)', builder_class, j.field_builder_method(field), - j.java_class(field, boxed=True), # null treated as default + j.java_class(field, boxed=True), # null treated as default j.param_name(field)): if wrapped_builder_name: w.out('%s.%s(%s);', @@ -3561,10 +3644,10 @@ def generate_exception_type(self, data_type): w.out('') w.javadoc( """ - Exception thrown when the server responds with a %s error. + Exception thrown when the server responds with a {} error. - This exception is raised by %s. - """ % (w.javadoc_ref(data_type), route_javadoc_refs) + This exception is raised by {}. + """.format(w.javadoc_ref(data_type), route_javadoc_refs) ) with w.class_block(exception_class, parent_class=JavaClass('com.dropbox.core.DbxApiException')): w.out('// exception for routes:') @@ -3606,14 +3689,14 @@ def generate_route_uploader(self, route): w.out('') w.javadoc( """ - The {@link DbxUploader} returned by %s. + The {{@link DbxUploader}} returned by {}. Use this class to upload data to the server and complete the request. This class should be properly closed after use to prevent resource leaks and allow - network connection reuse. Always call {@link #close} when complete (see %s + network connection reuse. Always call {{@link #close}} when complete (see {} for examples). - """ % (w.javadoc_ref(route), w.javadoc_ref(JavaClass('com.dropbox.core.DbxUploader'))) + """.format(w.javadoc_ref(route), w.javadoc_ref(JavaClass('com.dropbox.core.DbxUploader'))) ) with w.class_block(j.route_uploader_class(route), parent_class=parent_class): w.out('') @@ -3622,7 +3705,8 @@ def generate_route_uploader(self, route): params=(('httpUploader', 'Initiated HTTP upload request'),), throws=(('NullPointerException', 'if {@code httpUploader} is {@code null}'),) ) - with w.block('public %s(HttpRequestor.Uploader httpUploader, String userId)', j.route_uploader_class(route)): + with w.block('public %s(HttpRequestor.Uploader httpUploader, String userId)', + j.route_uploader_class(route)): w.out('super(httpUploader, %s, %s, userId);', w.java_serializer(route.result_data_type), w.java_serializer(route.error_data_type)) @@ -3685,8 +3769,9 @@ def generate_route_builder(self, route): # CONSTRUCTOR # - params=[ - ('_client', 'Dropbox namespace-specific client used to issue %s requests.' % j.route_namespace(route).name) + params = [ + ('_client', + 'Dropbox namespace-specific client used to issue %s requests.' % j.route_namespace(route).name) ] if j.has_builder(arg): fields = () @@ -3731,7 +3816,8 @@ def generate_route_builder(self, route): # wrapped_builder_name = '_builder' if j.has_builder(arg) else None - self.generate_builder_methods(j.builder_class(route), arg.all_fields, wrapped_builder_name=wrapped_builder_name) + self.generate_builder_methods(j.builder_class(route), arg.all_fields, + wrapped_builder_name=wrapped_builder_name) # # BUILD method to start request @@ -3757,7 +3843,7 @@ def generate_route_builder(self, route): args = ['arg_'] if j.request_style(route) == 'download': args.append('getHeaders()') - if j.has_result(route): + if j.has_result(route) or j.request_style(route) in ('upload', 'download'): w.out('return _client.%s(%s);', j.route_method(route), ', '.join(args)) else: w.out('_client.%s(%s);', j.route_method(route), ', '.join(args)) @@ -3876,7 +3962,9 @@ def generate_struct_serialize(self, data_type): w.out('') w.out('@Override') - with w.block('public void serialize(%s value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException', j.java_class(data_type)): + with w.block( + 'public void serialize(%s value, JsonGenerator g, boolean collapse) throws IOException, JsonGenerationException', + j.java_class(data_type)): if data_type.has_enumerated_subtypes(): for subtype in data_type.get_enumerated_subtypes(): @@ -3913,7 +4001,8 @@ def generate_struct_deserialize(self, data_type): w.out('') w.out('@Override') - with w.block('public %s deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException', j.java_class(data_type)): + with w.block('public %s deserialize(JsonParser p, boolean collapsed) throws IOException, JsonParseException', + j.java_class(data_type)): w.out('%s value;', j.java_class(data_type)) w.out('String tag = null;') @@ -3948,7 +4037,7 @@ def generate_struct_deserialize(self, data_type): for field in data_type.all_fields: if field not in data_type.all_optional_fields: with w.block('if (f_%s == null)', j.param_name(field)): - w.out('throw new JsonParseException(p, "Required field \\"%s\\" missing.");' , field.name) + w.out('throw new JsonParseException(p, "Required field \\"%s\\" missing.");', field.name) args = ['f_%s' % j.param_name(f) for f in data_type.all_fields] w.out('value = new %s(%s);', j.java_class(data_type), ', '.join(args)) @@ -3962,6 +4051,7 @@ def generate_struct_deserialize(self, data_type): with w.block('if (!collapsed)'): w.out('expectEndObject(p);') + w.out('StoneDeserializerLogger.log(value, value.toStringMultiline());') w.out('return value;') def generate_union_serialize(self, data_type): @@ -3972,7 +4062,8 @@ def generate_union_serialize(self, data_type): w.out('') w.out('@Override') - with w.block('public void serialize(%s value, JsonGenerator g) throws IOException, JsonGenerationException', j.java_class(data_type)): + with w.block('public void serialize(%s value, JsonGenerator g) throws IOException, JsonGenerationException', + j.java_class(data_type)): tag = 'value' if j.is_enum(data_type) else 'value.tag()' with w.block('switch (%s)' % tag): for field in data_type.all_fields: @@ -3986,7 +4077,8 @@ def generate_union_serialize(self, data_type): w.out('writeTag("%s", g);', field.name) serializer = w.java_serializer(field.data_type) value = 'value.%s' % j.param_name(field) - if j.is_collapsible(field.data_type) or is_nullable_type(field.data_type) and j.is_collapsible(field.data_type.data_type): + if j.is_collapsible(field.data_type) or is_nullable_type( + field.data_type) and j.is_collapsible(field.data_type.data_type): w.out('%s.serialize(%s, g, true);', serializer, value) else: w.out('g.writeFieldName("%s");', field.name) @@ -4008,7 +4100,8 @@ def generate_union_deserialize(self, data_type): w.out('') w.out('@Override') - with w.block('public %s deserialize(JsonParser p) throws IOException, JsonParseException', j.java_class(data_type)): + with w.block('public %s deserialize(JsonParser p) throws IOException, JsonParseException', + j.java_class(data_type)): w.out('%s value;', j.java_class(data_type)) w.out('boolean collapsed;') w.out('String tag;') @@ -4035,9 +4128,11 @@ def generate_union_deserialize(self, data_type): w.out('value = %s.%s;', j.java_class(data_type), j.field_static_instance(field)) else: w.out('%s fieldValue = null;', j.java_class(field_dt, boxed=True, generics=True)) - with w.conditional_block(is_nullable_type(field.data_type), 'if (p.getCurrentToken() != JsonToken.END_OBJECT)'): + with w.conditional_block(is_nullable_type(field.data_type), + 'if (p.getCurrentToken() != JsonToken.END_OBJECT)'): field_serializer = w.java_serializer(field_dt) - if j.is_collapsible(field_dt) or is_nullable_type(field_dt) and j.is_collapsible(field_dt.data_type): + if j.is_collapsible(field_dt) or is_nullable_type(field_dt) and j.is_collapsible( + field_dt.data_type): w.out('fieldValue = %s.deserialize(p, true);', field_serializer) else: w.out('expectField("%s", p);', field.name) @@ -4047,7 +4142,8 @@ def generate_union_deserialize(self, data_type): with w.block('if (fieldValue == null)'): w.out('value = %s.%s();', j.java_class(data_type), j.field_factory_method(field)) with w.block('else'): - w.out('value = %s.%s(fieldValue);', j.java_class(data_type), j.field_factory_method(field)) + w.out('value = %s.%s(fieldValue);', j.java_class(data_type), + j.field_factory_method(field)) else: w.out('value = %s.%s(fieldValue);', j.java_class(data_type), j.field_factory_method(field)) with w.block('else'): @@ -4089,7 +4185,8 @@ def generate_data_type_validation(self, data_type, value_name, description=None, with w.block('for (%s %s : %s)', list_item_type, xn, value_name): with w.block('if (%s == null)', xn): w.out('throw new IllegalArgumentException("An item in list%s is null");', description) - self.generate_data_type_validation(data_type.data_type, xn, 'an item in list%s' % description, level=level+1) + self.generate_data_type_validation(data_type.data_type, xn, 'an item in list%s' % description, + level=level + 1) elif is_map_type(data_type): xn = 'x' if level == 0 else 'x%d' % level @@ -4097,7 +4194,8 @@ def generate_data_type_validation(self, data_type, value_name, description=None, with w.block('for (%s %s : %s.values())', map_item_type, xn, value_name): with w.block('if (%s == null)', xn): w.out('throw new IllegalArgumentException("An item in map%s is null");', description) - self.generate_data_type_validation(data_type.value_data_type, xn, 'an item in map%s' % description, level=level+1) + self.generate_data_type_validation(data_type.value_data_type, xn, 'an item in map%s' % description, + level=level + 1) elif is_numeric_type(data_type): if data_type.min_value is not None: @@ -4186,7 +4284,8 @@ def generate_hash_code(self, data_type): else: arrays_class = JavaClass('java.util.Arrays') with w.block('int hash = %s.hashCode(new Object []', arrays_class, after=');'): - self.g.generate_multiline_list(fields, delim=('', '')) + prefixed_fields = reduce(lambda res, item: res + ['this.' + item], fields, []) + self.g.generate_multiline_list(prefixed_fields, delim=('', '')) if data_type.parent_type: w.out('hash = (31 * super.hashCode()) + hash;') w.out('return hash;') @@ -4203,7 +4302,8 @@ def _java_eq(self, field, name=None): elif not is_nullable_type(field.data_type): return '(this.%(f)s == other.%(f)s) || (this.%(f)s.equals(other.%(f)s))' % dict(f=name) else: - return '(this.%(f)s == other.%(f)s) || (this.%(f)s != null && this.%(f)s.equals(other.%(f)s))' % dict(f=name) + return '(this.%(f)s == other.%(f)s) || (this.%(f)s != null && this.%(f)s.equals(other.%(f)s))' % dict( + f=name) def generate_equals(self, data_type): assert isinstance(data_type, DataType), repr(data_type) @@ -4336,7 +4436,6 @@ def generate_struct_equals(self, data_type): 'while', } - _TYPE_MAP_UNBOXED = { 'UInt64': 'long', 'Int64': 'long', @@ -4353,7 +4452,6 @@ def generate_struct_equals(self, data_type): 'Map': 'java.util.Map', } - _TYPE_MAP_BOXED = { 'UInt64': 'Long', 'Int64': 'Long', diff --git a/core/generator/json/json.stoneg.py b/core/generator/json/json.stoneg.py new file mode 100644 index 000000000..9fbf9975b --- /dev/null +++ b/core/generator/json/json.stoneg.py @@ -0,0 +1,143 @@ +import json +import os + +from stone.ir import ( + Api, + ApiNamespace, + ApiRoute, + DataType, + Field, + Int32, + List, + is_boolean_type, + is_bytes_type, + is_composite_type, + is_list_type, + is_map_type, + is_nullable_type, + is_numeric_type, + is_primitive_type, + is_string_type, + is_struct_type, + is_timestamp_type, + is_union_type, + is_user_defined_type, + is_void_type, + StructField, + TagRef, + Union, + UnionField, + unwrap_nullable, + Void, +) +from stone.backend import CodeBackend + + +def is_enum(data_type): + if data_type is None: + return False + + assert isinstance(data_type, DataType), repr(data_type) + if is_union_type(data_type): + return all(is_void_type(f.data_type) for f in data_type.all_fields) + else: + return False + + +# Generates an unofficial JSON representation of Stone. +class JsonCodeGenerator(CodeBackend): + def what_type_info(self, data_type): + if data_type is None: + return None + + type_info = { + "name": data_type.name, + "is_struct_type": is_struct_type(data_type), + "is_primitive_type": is_primitive_type(data_type), + "is_boolean_type": is_boolean_type(data_type), + "is_numeric_type": is_numeric_type(data_type), + "is_list_type": is_list_type(data_type), + "is_union_type": is_union_type(data_type), + "is_bytes_type": is_bytes_type(data_type), + "is_map_type": is_map_type(data_type), + "is_composite_type": is_composite_type(data_type), + "is_nullable_type": is_nullable_type(data_type), + "is_string_type": is_string_type(data_type), + "is_void_type": is_void_type(data_type), + "is_timestamp_type": is_timestamp_type(data_type), + } + + if is_struct_type(data_type): + type_info["namespace"] = data_type.namespace.name + type_info["parent_type_data"] = self.what_type_info(data_type.parent_type) + if is_union_type(data_type): + type_info["namespace"] = data_type.namespace.name + if is_nullable_type(data_type): + type_info["nullable_type_data"] = self.what_type_info(data_type.data_type) + if is_union_type(data_type): + type_info["parent_type_data"] = self.what_type_info(data_type.parent_type) + if is_list_type(data_type): + type_info["list_item_type_data"] = self.what_type_info(data_type.data_type) + type_info["min_items"] = data_type.min_items + type_info["max_items"] = data_type.max_items + if is_map_type(data_type): + type_info["map_key_type_data"] = self.what_type_info(data_type.key_data_type) + type_info["map_value_type_data"] = self.what_type_info(data_type.value_data_type) + + return type_info + + def generate(self, api): + for namespace in api.namespaces.values(): + namespace_data = { + "name": namespace.name, + "doc": namespace.doc, + "routes": [], + "types": [] + } + for data_type in namespace.linearize_data_types(): + type_data = { + "name": data_type.name, + "doc": data_type.doc, + "type_info": self.what_type_info(data_type), + "fields": [], + } + + type_data["examples"] = [] + for example in data_type.get_examples().values(): + type_data["examples"].append({ + "text": example.text, + "label": example.label, + "value": example.value, + }) + + for field in data_type.all_fields: + if field.name is not "other": + field_data = { + "name": field.name, + "doc": field.doc, + "type_info": self.what_type_info(field.data_type), + "deprecated": field.deprecated, + "preview": field.preview, + } + + type_data["fields"].append(field_data) + + namespace_data["types"].append(type_data) + + for route in namespace.routes: + namespace_data["route_count"] = len(namespace.routes) + namespace_data["routes"].append({ + "name": route.name, + "doc": route.doc, + "version": route.version, + "path": "/" + str(route.version) + "/" + namespace.name + "/" + route.name + }) + + output_dir = "build/stone-json/types" + + if not os.path.exists(output_dir): + os.makedirs(output_dir) + + if len(namespace_data["types"]) > 0: + with open(output_dir + '/' + namespace.name + '.json', 'w') as f: + f.write(json.dumps(namespace_data, indent=2)) diff --git a/core/gradle.properties b/core/gradle.properties new file mode 100644 index 000000000..9bbb87031 --- /dev/null +++ b/core/gradle.properties @@ -0,0 +1,3 @@ +POM_ARTIFACT_ID = dropbox-core-sdk +POM_NAME = Dropbox SDK Java +POM_DESCRIPTION = A Java library to access Dropbox's HTTP-based Core API v2. diff --git a/src/main/java/com/dropbox/core/AccessErrorException.java b/core/src/main/java/com/dropbox/core/AccessErrorException.java similarity index 100% rename from src/main/java/com/dropbox/core/AccessErrorException.java rename to core/src/main/java/com/dropbox/core/AccessErrorException.java diff --git a/src/main/java/com/dropbox/core/ApiErrorResponse.java b/core/src/main/java/com/dropbox/core/ApiErrorResponse.java similarity index 100% rename from src/main/java/com/dropbox/core/ApiErrorResponse.java rename to core/src/main/java/com/dropbox/core/ApiErrorResponse.java diff --git a/src/main/java/com/dropbox/core/BadRequestException.java b/core/src/main/java/com/dropbox/core/BadRequestException.java similarity index 100% rename from src/main/java/com/dropbox/core/BadRequestException.java rename to core/src/main/java/com/dropbox/core/BadRequestException.java diff --git a/src/main/java/com/dropbox/core/BadResponseCodeException.java b/core/src/main/java/com/dropbox/core/BadResponseCodeException.java similarity index 100% rename from src/main/java/com/dropbox/core/BadResponseCodeException.java rename to core/src/main/java/com/dropbox/core/BadResponseCodeException.java diff --git a/src/main/java/com/dropbox/core/BadResponseException.java b/core/src/main/java/com/dropbox/core/BadResponseException.java similarity index 100% rename from src/main/java/com/dropbox/core/BadResponseException.java rename to core/src/main/java/com/dropbox/core/BadResponseException.java diff --git a/src/main/java/com/dropbox/core/DbxApiException.java b/core/src/main/java/com/dropbox/core/DbxApiException.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxApiException.java rename to core/src/main/java/com/dropbox/core/DbxApiException.java diff --git a/src/main/java/com/dropbox/core/DbxAppInfo.java b/core/src/main/java/com/dropbox/core/DbxAppInfo.java similarity index 91% rename from src/main/java/com/dropbox/core/DbxAppInfo.java rename to core/src/main/java/com/dropbox/core/DbxAppInfo.java index c6ab32e5b..4183e2e80 100644 --- a/src/main/java/com/dropbox/core/DbxAppInfo.java +++ b/core/src/main/java/com/dropbox/core/DbxAppInfo.java @@ -23,6 +23,17 @@ public class DbxAppInfo extends Dumpable { private final String secret; private final DbxHost host; + /** + * + * DbxAppInfo without secret. Should only be used in PKCE flow. + * + * @param key Dropbox app key (see {@link #getKey}) + * @see com.dropbox.core.DbxPKCEWebAuth + */ + public DbxAppInfo(String key) { + this(key, null); + } + /** * @param key Dropbox app key (see {@link #getKey}) * @param secret Dropbox app secret (see {@link #getSecret}) @@ -88,6 +99,16 @@ public DbxHost getHost() { return host; } + /** + * Return if this DbxAppInfo contains app secret. DbxAppInfo without secret should only be + * used in {@link com.dropbox.core.DbxPKCEWebAuth}. + * + * @return If this DbxAppInfo contains app secret. + */ + public boolean hasSecret() { + return secret != null; + } + @Override protected void dumpFields(DumpWriter out) { out.f("key").v(key); @@ -164,7 +185,6 @@ else if (fieldName.equals("host")) { JsonReader.expectObjectEnd(parser); if (key == null) throw new JsonReadException("missing field \"key\"", top); - if (secret == null) throw new JsonReadException("missing field \"secret\"", top); if (host == null) host = DbxHost.DEFAULT; return new DbxAppInfo(key, secret, host); @@ -214,7 +234,7 @@ public String read(JsonParser parser) throws IOException, JsonReadException public static /*@Nullable*/String getTokenPartError(String s) { - if (s == null) return "can't be null"; + if (s == null) return null; if (s.length() == 0) return "can't be empty"; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); @@ -228,7 +248,14 @@ public String read(JsonParser parser) throws IOException, JsonReadException public static void checkKeyArg(String key) { - String error = getTokenPartError(key); + String error; + + if (key == null) { + error = "can't be null"; + } else { + error = getTokenPartError(key); + } + if (error == null) return; throw new IllegalArgumentException("Bad 'key': " + error); } diff --git a/core/src/main/java/com/dropbox/core/DbxAuthFinish.java b/core/src/main/java/com/dropbox/core/DbxAuthFinish.java new file mode 100644 index 000000000..6a661e0b7 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/DbxAuthFinish.java @@ -0,0 +1,318 @@ +package com.dropbox.core; + +import com.dropbox.core.json.JsonReadException; +import com.dropbox.core.json.JsonReader; +import com.fasterxml.jackson.core.JsonLocation; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +import static com.dropbox.core.util.StringUtil.jq; + +/*>>> import checkers.nullness.quals.Nullable; */ + +/** + * When you successfully complete the authorization process, the Dropbox server returns + * this information to you. + */ +public final class DbxAuthFinish { + private final String accessToken; + private final Long expiresIn; + private final String refreshToken; + private final String userId; + private final String accountId; + private final String teamId; + private final /*@Nullable*/String urlState; + private long issueTime; + private final String scope; + + /** + * @param accessToken OAuth access token + * @param userId Dropbox user ID of user that approved access to this app + * @param urlState State data passed in to {@link DbxWebAuth#start} or {@code null} if no state + * was passed + */ + @Deprecated + public DbxAuthFinish(String accessToken, String userId, String accountId, String teamId, /*@Nullable*/String urlState) { + this(accessToken, null, null, userId, teamId, accountId, urlState); + } + + /** + * + * + * + * @param accessToken OAuth access token. + * @param expiresIn Duration time of accessToken in second. + * @param refreshToken A token used to obtain new accessToken. + * @param userId Dropbox user ID of user that authorized this app. + * @param teamId Dropbox team ID of team that authorized this app. + * @param accountId Obfusticated user or team id. Keep it safe. + * @param urlState State data passed in to {@link DbxWebAuth#start} or {@code null} if no state + * was passed + */ + public DbxAuthFinish(String accessToken, Long expiresIn, String refreshToken, String userId, + String teamId, String accountId, /*@Nullable*/String urlState) { + this(accessToken, expiresIn, refreshToken, userId, teamId, accountId, urlState, null); + } + + /** + * + * + * + * @param accessToken OAuth access token. + * @param expiresIn Duration time of accessToken in second. + * @param refreshToken A token used to obtain new accessToken. + * @param userId Dropbox user ID of user that authorized this app. + * @param teamId Dropbox team ID of team that authorized this app. + * @param accountId Obfusticated user or team id. Keep it safe. + * @param urlState State data passed in to {@link DbxWebAuth#start} or {@code null} if no state + * was passed + * @param scope A list of scope returned by Dropbox server. Each scope correspond to a group of + * API endpoints. To call one API endpoint you have to obtains the scope first otherwise you + * will get HTTP 401. + */ + public DbxAuthFinish(String accessToken, Long expiresIn, String refreshToken, String userId, + String teamId, String accountId, /*@Nullable*/String urlState, String + scope) { + this.accessToken = accessToken; + this.expiresIn = expiresIn; + this.refreshToken = refreshToken; + this.userId = userId; + this.accountId = accountId; + this.teamId = teamId; + this.urlState = urlState; + this.issueTime = System.currentTimeMillis(); + this.scope = scope; + } + + /** + * Returns an access token that can be used to make Dropbox API calls. Pass this in to + * the {@link com.dropbox.core.v2.DbxClientV2} constructor. + * + * @return OAuth access token used for authorization with Dropbox servers + */ + public String getAccessToken() { + return accessToken; + } + + /** + * + * + * + * Returns the time when {@link DbxAuthFinish#accessToken} expires in millisecond. If null then + * it won't expire. Pass this in to the {@link com.dropbox.core.v2.DbxClientV2} constructor. + * + * @return OAuth access token used for authorization with Dropbox servers + */ + public Long getExpiresAt() { + if (expiresIn == null) { + return null; + } + return issueTime + expiresIn * 1000; + } + + /** + * + * + * Returns an refresh token which can be used to obtain new + * {@link DbxAuthFinish#accessToken} . Pass this in to the + * {@link com.dropbox.core.v2.DbxClientV2} constructor. + * + * @return OAuth access token used for authorization with Dropbox servers + */ + public String getRefreshToken() { + return refreshToken; + } + + /** + * Returns the Dropbox user ID of the user who just approved your app for access to their + * Dropbox account. We use user ID to identify user in API V1. + * + * @return Dropbox user ID of user that approved your app for access to their account + */ + public String getUserId() { + return userId; + } + + /** + * Returns the Dropbox account ID of the user who just approved your app for access to their + * Dropbox account. We use account ID to identify user in API V2. + * + * @return Dropbox account ID of user that approved your app for access to their account + */ + public String getAccountId() { + return accountId; + } + + /** + * Returns the Dropbox team ID of the team's user who just approved your app for access to their + * Dropbox account. We use team ID to identify team in API V2. + * + * @return Dropbox team ID of team's that approved your app for access to their account + */ + public String getTeamId() { + return teamId; + } + + /** + * + * + * + * Return the scopes of current OAuth flow. Each scope correspond to a group of + * API endpoints. To call one API endpoint you have to obtains the scope first otherwise you + * will get HTTP 401. + */ + public String getScope() { + return scope; + } + + /** + * Returns the state data you passed in to {@link DbxWebAuth#start}. If you didn't pass + * anything in, or you used {@link DbxWebAuthNoRedirect}, this will be {@code null}. + * + * @return state data passed into {@link DbxWebAuth#start}, or {@code null} if no state was + * passed + */ + public /*@Nullable*/ String getUrlState() { + return urlState; + } + + /** + * Setting issue time should only be used to copy current object. + * */ + void setIssueTime(long issueTime) { + this.issueTime = issueTime; + } + + /** + * State is not returned from /oauth2/token call, so we must + * append it after the JSON parsing. + * + * @param urlState Custom state passed into /oauth2/authorize + */ + DbxAuthFinish withUrlState(/*@Nullable*/ String urlState) { + if (this.urlState != null) { + throw new IllegalStateException("Already have URL state."); + } + + DbxAuthFinish result = new DbxAuthFinish(accessToken, expiresIn, refreshToken, userId, + teamId, accountId, urlState, scope); + result.setIssueTime(issueTime); + + return result; + } + + /** + * For JSON parsing. + */ + public static final JsonReader Reader = new JsonReader() { + public DbxAuthFinish read(JsonParser parser) throws IOException, JsonReadException { + JsonLocation top = JsonReader.expectObjectStart(parser); + + String accessToken = null; + Long expiresIn = null; + String refreshToken = null; + String tokenType = null; + String userId = null; + String accountId = null; + String teamId = null; + String state = null; + String scope = null; + + while (parser.getCurrentToken() == JsonToken.FIELD_NAME) { + String fieldName = parser.getCurrentName(); + JsonReader.nextToken(parser); + + try { + if (fieldName.equals("token_type")) { + tokenType = BearerTokenTypeReader.readField(parser, fieldName, tokenType); + } + else if (fieldName.equals("access_token")) { + accessToken = AccessTokenReader.readField(parser, fieldName, accessToken); + } + else if (fieldName.equals("expires_in")) { + expiresIn = JsonReader.UInt64Reader.readField(parser, fieldName, expiresIn); + } + else if (fieldName.equals("refresh_token")) { + refreshToken = JsonReader.StringReader.readField(parser, fieldName, refreshToken); + } + else if (fieldName.equals("uid")) { + userId = JsonReader.StringReader.readField(parser, fieldName, userId); + } + else if (fieldName.equals("account_id")) { + accountId = JsonReader.StringReader.readField(parser, fieldName, accountId); + } + else if (fieldName.equals("team_id")) { + teamId = JsonReader.StringReader.readField(parser, fieldName, teamId); + } + else if (fieldName.equals("state")) { + state = JsonReader.StringReader.readField(parser, fieldName, state); + } + else if (fieldName.equals("scope")) { + scope = JsonReader.StringReader.readField(parser, fieldName, scope); + } + else { + // Unknown field. Skip over it. + JsonReader.skipValue(parser); + } + } + catch (JsonReadException ex) { + throw ex.addFieldContext(fieldName); + } + } + + JsonReader.expectObjectEnd(parser); + + if (tokenType == null) throw new JsonReadException("missing field \"token_type\"", top); + if (accessToken == null) throw new JsonReadException("missing field \"access_token\"", top); + if (userId == null) throw new JsonReadException("missing field \"uid\"", top); + //We want one of these two to be populated and we want the error to be include both if they're both null + if (accountId == null && teamId == null) { + throw new JsonReadException("missing field \"account_id\" and missing field \"team_id\"", top); + } + if (refreshToken != null && expiresIn == null) { + throw new JsonReadException("missing field \"expires_in\"", top); + } + + return new DbxAuthFinish(accessToken, expiresIn, refreshToken, userId, teamId, + accountId, state, scope); + } + }; + + public static final JsonReader BearerTokenTypeReader = new JsonReader() { + @Override + public String read(JsonParser parser) throws IOException, JsonReadException { + try { + String v = parser.getText(); + if (!v.equals("Bearer") && !v.equals("bearer")) { + throw new JsonReadException("expecting \"Bearer\": got " + jq(v), parser.getTokenLocation()); + } + parser.nextToken(); + return v; + } catch (JsonParseException ex) { + throw JsonReadException.fromJackson(ex); + } + } + + }; + + public static final JsonReader AccessTokenReader = new JsonReader() { + @Override + public String read(JsonParser parser) throws IOException, JsonReadException { + try { + String v = parser.getText(); + String error = DbxAppInfo.getTokenPartError(v); + if (error != null) { + throw new JsonReadException(error, parser.getTokenLocation()); + } + parser.nextToken(); + return v; + } catch (JsonParseException ex) { + throw JsonReadException.fromJackson(ex); + } + } + + }; +} diff --git a/core/src/main/java/com/dropbox/core/DbxAuthInfo.java b/core/src/main/java/com/dropbox/core/DbxAuthInfo.java new file mode 100644 index 000000000..7edb10185 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/DbxAuthInfo.java @@ -0,0 +1,158 @@ +package com.dropbox.core; + +import com.dropbox.core.json.JsonReadException; +import com.dropbox.core.json.JsonReader; +import com.dropbox.core.json.JsonWriter; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonLocation; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/** + * Used by the example code to remember auth information. + */ +public final class DbxAuthInfo { + private final String accessToken; + private final Long expiresAt; + private final String refreshToken; + private final DbxHost host; + + /** + * Creates a new instance with the given parameters. + * + * @param accessToken OAuth access token for authorization with Dropbox servers + * @param host Dropbox host configuration used to select Dropbox servers + */ + public DbxAuthInfo(String accessToken, DbxHost host) { + this(accessToken, null, null, host); + } + + /** + * + * Creates a new instance with the given parameters. + * + * @param accessToken OAuth access token for authorization with Dropbox servers + * @param expiresAt When accessToken is going to expire in millisecond + * @param refreshToken Refresh token which can bu used to obtain new accessToken + * @param host Dropbox host configuration used to select Dropbox servers + */ + public DbxAuthInfo(String accessToken, Long expiresAt, String refreshToken, DbxHost host) { + if (accessToken == null) throw new IllegalArgumentException("'accessToken' can't be null"); + if (host == null) throw new IllegalArgumentException("'host' can't be null"); + + this.accessToken = accessToken; + this.expiresAt = expiresAt; + this.refreshToken = refreshToken; + this.host = host; + } + + /** + * Returns the OAuth access token to use for authorization with Dropbox servers. + * + * @return OAuth access token + */ + public String getAccessToken() { + return accessToken; + } + + /** + * + * Return the millisecond when accessToken is going to expire. + * + * @return ExpiresAt in millisecond. + */ + public Long getExpiresAt() { + return expiresAt; + } + + /** + * + * Return the refresh token which can be used to obtain new access token. + * + * @return Refresh Token. + */ + public String getRefreshToken() { + return refreshToken; + } + + /** + * Returns Dropbox host configuration used to map requests to the appropriate Dropbox servers. + * + * @return Dropbox host configuration + */ + public DbxHost getHost() { + return host; + } + + public static final JsonReader Reader = new JsonReader() + { + @Override + public final DbxAuthInfo read(JsonParser parser) + throws IOException, JsonReadException + { + JsonLocation top = JsonReader.expectObjectStart(parser); + + DbxHost host = null; + String accessToken = null; + Long expiresAt = null; + String refreshToken = null; + + while (parser.getCurrentToken() == JsonToken.FIELD_NAME) { + String fieldName = parser.getCurrentName(); + parser.nextToken(); + + try { + if (fieldName.equals("host")) { + host = DbxHost.Reader.readField(parser, fieldName, host); + } + else if (fieldName.equals("expires_at")) { + expiresAt = Int64Reader.readField(parser, fieldName, expiresAt); + } + else if (fieldName.equals("refresh_token")) { + refreshToken = StringReader.readField(parser, fieldName, refreshToken); + } + else if (fieldName.equals("access_token")) { + accessToken = StringReader.readField(parser, fieldName, accessToken); + } + else { + // Unknown field. Skip over it. + JsonReader.skipValue(parser); + } + } + catch (JsonReadException ex) { + throw ex.addFieldContext(fieldName); + } + } + + JsonReader.expectObjectEnd(parser); + + if (accessToken == null) throw new JsonReadException("missing field \"access_token\"", top); + if (host == null) host = DbxHost.DEFAULT; + + return new DbxAuthInfo(accessToken, expiresAt, refreshToken, host); + } + }; + + public static final JsonWriter Writer = new JsonWriter() + { + @Override + public void write(DbxAuthInfo authInfo, JsonGenerator g) throws IOException + { + g.writeStartObject(); + g.writeStringField("access_token", authInfo.accessToken); + if (authInfo.expiresAt != null) { + g.writeNumberField("expires_at", authInfo.expiresAt); + } + if (authInfo.refreshToken != null) { + g.writeStringField("refresh_token", authInfo.refreshToken); + } + if (!authInfo.host.equals(DbxHost.DEFAULT)) { + g.writeFieldName("host"); + DbxHost.Writer.write(authInfo.host, g); + } + g.writeEndObject(); + } + }; +} diff --git a/src/main/java/com/dropbox/core/DbxDownloader.java b/core/src/main/java/com/dropbox/core/DbxDownloader.java similarity index 77% rename from src/main/java/com/dropbox/core/DbxDownloader.java rename to core/src/main/java/com/dropbox/core/DbxDownloader.java index 8fd73c095..ac52113f0 100644 --- a/src/main/java/com/dropbox/core/DbxDownloader.java +++ b/core/src/main/java/com/dropbox/core/DbxDownloader.java @@ -1,6 +1,7 @@ package com.dropbox.core; import com.dropbox.core.util.IOUtil; +import com.dropbox.core.util.ProgressOutputStream; import java.io.Closeable; import java.io.InputStream; @@ -39,16 +40,22 @@ public class DbxDownloader implements Closeable { private final R result; private final InputStream body; + private final String contentType; private boolean closed; - public DbxDownloader(R result, InputStream body) { + public DbxDownloader(R result, InputStream body, String contentType) { this.result = result; this.body = body; + this.contentType = contentType; this.closed = false; } + public DbxDownloader(R result, InputStream body) { + this(result, body, null); + } + /** * Returns the server response. * @@ -61,6 +68,15 @@ public R getResult() { return result; } + /** + * Returns the value of the content-type header field. + * + * @return the content type, or null if not known. + */ + public String getContentType() { + return contentType; + } + /** * Returns the {@link InputStream} containing the response body bytes. Remember to call {@link * #close} after reading the stream to properly free up resources. @@ -120,6 +136,21 @@ public R download(OutputStream out) throws DbxException, IOException { return result; } + /** + * This method is the same as {@link #download(OutputStream)} except for allowing to track + * download progress. + * + * @param out {@code OutputStream} to write response body to + * @param progressListener {@code IOUtil.ProgressListener} to track the download progress. + * @return Response from server + * @throws DbxException if an error occurs reading the response or response body. + * @throws IOException if an error occurs writing the response body to the output stream. + */ + public R download(OutputStream out, IOUtil.ProgressListener progressListener) + throws DbxException, IOException { + return download(new ProgressOutputStream(out, progressListener)); + } + /** * Closes this downloader and releases its underlying resources. * diff --git a/src/main/java/com/dropbox/core/DbxException.java b/core/src/main/java/com/dropbox/core/DbxException.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxException.java rename to core/src/main/java/com/dropbox/core/DbxException.java diff --git a/src/main/java/com/dropbox/core/DbxHost.java b/core/src/main/java/com/dropbox/core/DbxHost.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxHost.java rename to core/src/main/java/com/dropbox/core/DbxHost.java diff --git a/src/main/java/com/dropbox/core/DbxOAuth1AccessToken.java b/core/src/main/java/com/dropbox/core/DbxOAuth1AccessToken.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxOAuth1AccessToken.java rename to core/src/main/java/com/dropbox/core/DbxOAuth1AccessToken.java diff --git a/src/main/java/com/dropbox/core/DbxOAuth1Upgrader.java b/core/src/main/java/com/dropbox/core/DbxOAuth1Upgrader.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxOAuth1Upgrader.java rename to core/src/main/java/com/dropbox/core/DbxOAuth1Upgrader.java diff --git a/core/src/main/java/com/dropbox/core/DbxPKCEManager.java b/core/src/main/java/com/dropbox/core/DbxPKCEManager.java new file mode 100644 index 000000000..bd9cbcd32 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/DbxPKCEManager.java @@ -0,0 +1,133 @@ +package com.dropbox.core; + +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.io.IOException; +import java.io.Serializable; +import java.io.UnsupportedEncodingException; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.util.HashMap; +import java.util.Map; + +import static com.dropbox.core.util.StringUtil.urlSafeBase64Encode; + +/** + * This class should be lib/jar private. We make it public so that Android related code can use it. + * + * + * This class does code verifier and code challenge generation in Proof Key for Code Exchange(PKCE). + * @see https://tools.ietf.org/html/rfc7636 + */ +public class DbxPKCEManager { + public static final String CODE_CHALLENGE_METHODS = "S256"; + public static final int CODE_VERIFIER_SIZE = 128; + + private static final SecureRandom RAND = new SecureRandom(); + private static final String CODE_VERIFIER_CHAR_SET = + "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"; + + private String codeVerifier; + private String codeChallenge; + + /** + * This class has state. Each instance has a randomly generated codeVerifier in it. Just + * like we shouldn't re-use the same code verifier in PKCE, we shouldn't re-use the same + * DbxPKCEManager instance in different OAuth flow. + */ + public DbxPKCEManager() { + this.codeVerifier = generateCodeVerifier(); + this.codeChallenge = generateCodeChallenge(this.codeVerifier); + } + + public DbxPKCEManager(String codeVerifier) { + this.codeVerifier = codeVerifier; + this.codeChallenge = generateCodeChallenge(this.codeVerifier); + } + + String generateCodeVerifier() { + StringBuilder sb = new StringBuilder(); + + for (int i = 0; i < CODE_VERIFIER_SIZE; i++) { + sb.append(CODE_VERIFIER_CHAR_SET.charAt(RAND.nextInt(CODE_VERIFIER_CHAR_SET.length()))); + } + + return sb.toString(); + } + + static String generateCodeChallenge(String codeVerifier) { + try { + MessageDigest digest = MessageDigest.getInstance("SHA-256"); + byte[] signiture = digest.digest(codeVerifier.getBytes("US-ASCII")); + return urlSafeBase64Encode(signiture).replaceAll("=+$", ""); // remove trailing equal + } catch (NoSuchAlgorithmException e) { + throw LangUtil.mkAssert("Impossible", e); + } catch (UnsupportedEncodingException e) { + throw LangUtil.mkAssert("Impossible", e); + } + } + + /** + * @return The randomly generate code verifier in this instance. + */ + public String getCodeVerifier() { + return this.codeVerifier; + } + + /** + * @return The code challenge, which is a hashed code verifier. + */ + public String getCodeChallenge() { + return this.codeChallenge; + } + + /** + * Make oauth2/token request to exchange code for oauth2 access token. Client secret is not + * required. + * @param requestConfig Default attributes to use for each request. + * @param oauth2Code OAuth2 code defined in OAuth2 code flow. + * @param appKey Client Key + * @param redirectUri The same redirect_uri that's used in preivous oauth2/authorize call. + * @param host Only used for testing when you don't want to make request against production. + * @return OAuth2 result, including oauth2 access token, and optionally expiration time and + * refresh token. + * @throws DbxException If reqeust is invalid, or code expired, or server error. + */ + public DbxAuthFinish makeTokenRequest(DbxRequestConfig requestConfig, + String oauth2Code, + String appKey, + String redirectUri, + DbxHost host) throws DbxException { + Map params = new HashMap(); + params.put("grant_type", "authorization_code"); + params.put("code", oauth2Code); + params.put("locale", requestConfig.getUserLocale()); + params.put("client_id", appKey); + params.put("code_verifier", this.codeVerifier); + + if (redirectUri != null) { + params.put("redirect_uri", redirectUri); + } + + return DbxRequestUtil.doPostNoAuth( + requestConfig, + DbxRawClientV2.USER_AGENT_ID, + host.getApi(), + "oauth2/token", + DbxRequestUtil.toParamsArray(params), + null, + new DbxRequestUtil.ResponseHandler() { + @Override + public DbxAuthFinish handle(HttpRequestor.Response response) throws DbxException { + if (response.getStatusCode() != 200) { + throw DbxRequestUtil.unexpectedStatus(response); + } + return DbxRequestUtil.readJsonFromResponse(DbxAuthFinish.Reader, response); + } + } + ); + } +} diff --git a/core/src/main/java/com/dropbox/core/DbxPKCEWebAuth.java b/core/src/main/java/com/dropbox/core/DbxPKCEWebAuth.java new file mode 100644 index 000000000..1e13029ac --- /dev/null +++ b/core/src/main/java/com/dropbox/core/DbxPKCEWebAuth.java @@ -0,0 +1,170 @@ +package com.dropbox.core; + +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.DbxRawClientV2; + +import java.io.UnsupportedEncodingException; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.util.HashMap; +import java.util.Map; + +import static com.dropbox.core.util.StringUtil.urlSafeBase64Encode; + +/** + * + * + * This class does the OAuth2 "authorization code" flow with Proof Key for Code Exchange(PKCE). + * + * PKCE allows "authorization code" flow without "client_secret". It enables "native + * application", which is ensafe to hardcode client_secret in code, to use "authorization + * code". If you application has a server, please use regular {@link DbxWebAuth} instead. + * + * PKCE is more secure than "token" flow. If authorization code is compromised during + * transmission, it can't be used to exchange for access token without random generated + * code_verifier, which is stored inside SDK. + * + * DbxPKCEWebAuth and {@link DbxWebAuth} has the same interface and slightly different behavior: + *
    + *
  1. The constructor should take {@link DbxAppInfo} without app secret.
  2. + *
  3. Two step of OAuth2: {@link #authorize(DbxWebAuth.Request)} and + * {@link #finishFromRedirect(String, DbxSessionStore, Map)}, should be called on the same + * object.
  4. + *
+ * + * @see https://tools.ietf.org/html/rfc7636 and + * new dropbox oauth guide + */ +public class DbxPKCEWebAuth { + private final DbxRequestConfig requestConfig; + private final DbxAppInfo appInfo; + private final DbxWebAuth dbxWebAuth; + private final DbxPKCEManager dbxPKCEManager; + private boolean started; + private boolean consumed; + + /** + * Creates a new instance that will perform the OAuth2 PKCE authorization flow using the given + * OAuth request configuration. + * + * @param requestConfig HTTP request configuration, never {@code null}. + * @param appInfo Your application's Dropbox API information (the app key), never {@code null}. + * + * @throws IllegalStateException if appInfo contains app secret. + */ + public DbxPKCEWebAuth(DbxRequestConfig requestConfig, DbxAppInfo appInfo) { + if (appInfo.hasSecret()) { + throw new IllegalStateException("PKCE cdoe flow doesn't require app secret, if you " + + "decide to embed it in your app, please use regular DbxWebAuth instead."); + } + + this.requestConfig = requestConfig; + this.appInfo = appInfo; + this.dbxWebAuth = new DbxWebAuth(requestConfig, appInfo); + this.dbxPKCEManager = new DbxPKCEManager(); + this.started = false; + this.consumed = false; + } + + /** + * Starts authorization and returns an "authorization URL" on the Dropbox website that let + * the user grant your app access to their Dropbox account. + * + *

If a redirect URI was specified ({@link DbxWebAuth.Request.Builder#withRedirectUri}). The + * redirect URI should bring user back to your app on end device. Call {@link + * #finishFromRedirect} using the same {@link DbxPKCEWebAuth} instance with the query + * parameters received from the redirect. + * + *

If no redirect URI was specified ({@link DbxWebAuth.Request.Builder#withNoRedirect}), + * then users who grant access will be shown an "authorization code". The user must copy/paste the + * authorization code back into your app, at which point you can call {@link + * #finishFromCode(String)} with the same {@link DbxPKCEWebAuth} instance from to get an access + * token. + * + * @param request OAuth 2.0 web-based authorization flow request configuration + * + * @return Authorization URL of website user can use to authorize your app. + * + */ + public String authorize(DbxWebAuth.Request request) { + if (consumed) { + throw new IllegalStateException("This DbxPKCEWebAuth instance has been consumed " + + "already. To start a new PKCE OAuth flow, please create a new instance."); + } + + this.started = true; + + Map pkceParams = new HashMap(); + pkceParams.put("code_challenge", dbxPKCEManager.getCodeChallenge()); + pkceParams.put("code_challenge_method", DbxPKCEManager.CODE_CHALLENGE_METHODS); + + return dbxWebAuth.authorizeImpl(request, pkceParams); + } + + /** + * Call this after the user has visited the authorizaton URL and copy/pasted the authorization + * code that Dropbox gave them, with the SAME {@link DbxPKCEWebAuth} instance that generated + * the authorization URL. + * + * @throws DbxException if the instance is not the same one used to generate authorization + * URL, or if an error occurs communicating with Dropbox. + * @see DbxWebAuth#finishFromCode(String) + */ + public DbxAuthFinish finishFromCode(String code) throws DbxException { + return finish(code, null, null); + } + + /** + * Call this after the user has visited the authorizaton URL and Dropbox has redirected them + * back to your native app, with the SAME {@link DbxPKCEWebAuth} instance that generated + * the authorization URL. + * + * @throws BadRequestException If the redirect request is missing required query parameters, + * contains duplicate parameters, or includes mutually exclusive parameters (e.g. {@code + * "error"} and {@code "code"}). + * @throws DbxWebAuth.BadStateException If the CSRF token retrieved from {@code sessionStore} + * is {@code null} or malformed. + * @throws DbxWebAuth.CsrfException If the CSRF token passed in {@code params} does not match + * the CSRF token from {@code sessionStore}. This implies the redirect request may be forged. + * @throws DbxWebAuth.NotApprovedException If the user chose to deny the authorization request. + * @throws DbxWebAuth.ProviderException If an OAuth2 error response besides {@code + * "access_denied"} is set. + * @throws DbxException if the instance is not the same one used to generate authorization + * URL, or if an error occurs communicating with Dropbox. + */ + public DbxAuthFinish finishFromRedirect(String redirectUri, + DbxSessionStore sessionStore, + Map params) + throws DbxException, DbxWebAuth.BadRequestException, DbxWebAuth.BadStateException, + DbxWebAuth.CsrfException, DbxWebAuth.NotApprovedException, DbxWebAuth.ProviderException { + + String strippedState = DbxWebAuth.validateRedirectUri(redirectUri, sessionStore, params); + String code = DbxWebAuth.getParam(params, "code"); + return finish(code, redirectUri, strippedState); + } + + DbxAuthFinish finish(String code, String redirectUri, final String state) throws DbxException { + if (code == null) throw new NullPointerException("code"); + if (!this.started) { + throw new IllegalStateException("Must initialize the PKCE flow by calling authorize " + + "first."); + } + + if (this.consumed) { + throw new IllegalStateException("This DbxPKCEWebAuth instance has been consumed " + + "already. To start a new PKCE OAuth flow, please create a new instance."); + } + + + + DbxAuthFinish authFinish = dbxPKCEManager.makeTokenRequest( + requestConfig, code, appInfo.getKey(), redirectUri, appInfo.getHost() + ); + + this.consumed = true; + return authFinish.withUrlState(state); + } + +} diff --git a/src/main/java/com/dropbox/core/DbxRequestConfig.java b/core/src/main/java/com/dropbox/core/DbxRequestConfig.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxRequestConfig.java rename to core/src/main/java/com/dropbox/core/DbxRequestConfig.java diff --git a/src/main/java/com/dropbox/core/DbxRequestUtil.java b/core/src/main/java/com/dropbox/core/DbxRequestUtil.java similarity index 88% rename from src/main/java/com/dropbox/core/DbxRequestUtil.java rename to core/src/main/java/com/dropbox/core/DbxRequestUtil.java index ab5df0fd5..3f3df6d81 100644 --- a/src/main/java/com/dropbox/core/DbxRequestUtil.java +++ b/core/src/main/java/com/dropbox/core/DbxRequestUtil.java @@ -12,6 +12,9 @@ import java.util.Map; import java.util.Random; +import com.dropbox.core.stone.StoneSerializer; +import com.dropbox.core.v2.auth.AuthError; +import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonProcessingException; import com.dropbox.core.http.HttpRequestor; @@ -20,10 +23,11 @@ import com.dropbox.core.util.IOUtil; import com.dropbox.core.util.StringUtil; import com.dropbox.core.v2.auth.AccessError; -import com.dropbox.core.v2.common.PathRootError; -import com.dropbox.core.v2.common.PathRootError.Serializer; import com.dropbox.core.v2.callbacks.DbxGlobalCallbackFactory; import com.dropbox.core.v2.callbacks.DbxNetworkErrorCallback; +import com.dropbox.core.v2.common.PathRoot; +import com.dropbox.core.v2.common.PathRootError; +import com.dropbox.core.v2.common.PathRootError.Serializer; import static com.dropbox.core.util.StringUtil.jq; import static com.dropbox.core.util.LangUtil.mkAssert; @@ -50,7 +54,7 @@ public static String buildUrlWithParams(/*@Nullable*/String userLocale, return buildUri(host, path) + "?" + encodeUrlParams(userLocale, params); } - static String [] toParamsArray(Map params) { + public static String [] toParamsArray(Map params) { String [] arr = new String[2 * params.size()]; int i = 0; for (Map.Entry entry : params.entrySet()) { @@ -116,6 +120,14 @@ public static List addSelectUserHeader(/*@Nullable*/List addSelectAdminHeader(/*@Nullable*/List headers, String adminId) { + if (adminId == null) throw new NullPointerException("adminId"); + if (headers == null) headers = new ArrayList(); + + headers.add(new HttpRequestor.Header("Dropbox-API-Select-Admin", adminId)); + return headers; + } + public static List addBasicAuthHeader(/*@Nullable*/List headers, String username, String password) { if (username == null) throw new NullPointerException("username"); if (password == null) throw new NullPointerException("password"); @@ -151,6 +163,33 @@ public static HttpRequestor.Header buildUserAgentHeader(DbxRequestConfig request return new HttpRequestor.Header("User-Agent", requestConfig.getClientIdentifier() + " " + sdkUserAgentIdentifier + "/" + DbxSdkVersion.Version); } + public static List addPathRootHeader(/*@Nullable*/List headers, PathRoot pathRoot) { + if (pathRoot == null) { + return headers; + } + + if (headers == null) headers = new ArrayList(); + headers.add(new HttpRequestor.Header("Dropbox-API-Path-Root", pathRoot.toString())); + return headers; + } + + public static List removeAuthHeader(/*@Nullable*/List headers) { + if (headers == null) { + return new ArrayList(); + } + + List authHeaders = new ArrayList(); + + for (HttpRequestor.Header header: headers) { + if ("Authorization".equals(header.getKey())) { + authHeaders.add(header); + } + } + + headers.removeAll(authHeaders); + return headers; + } + /** * Convenience function for making HTTP GET requests. */ @@ -299,7 +338,18 @@ public static DbxException unexpectedStatus(HttpRequestor.Response response, Str break; case 401: message = DbxRequestUtil.messageFromResponse(response, requestId); - networkError = new InvalidAccessTokenException(requestId, message); + if (message.isEmpty()) { + networkError = new InvalidAccessTokenException(requestId, message, AuthError.INVALID_ACCESS_TOKEN); + } else { + try { + ApiErrorResponse authErrorReponse = new ApiErrorResponse + .Serializer(AuthError.Serializer.INSTANCE).deserialize(message); + AuthError authError = authErrorReponse.getError(); + networkError = new InvalidAccessTokenException(requestId, message, authError); + } catch (JsonParseException ex) { + throw new BadResponseException(requestId, "Bad JSON: " + ex.getMessage(), ex); + } + } break; case 403: try { @@ -394,6 +444,12 @@ public static T readJsonFromResponse(JsonReader reader, HttpRequestor.Res } } + public static T readJsonFromErrorMessage(StoneSerializer serializer, String message, String requestId) + throws JsonParseException { + ApiErrorResponse errorResponse = new ApiErrorResponse.Serializer(serializer).deserialize(message); + return errorResponse.getError(); + } + public static abstract class ResponseHandler { public abstract T handle(HttpRequestor.Response response) throws DbxException; } @@ -460,7 +516,9 @@ public static T finishResponse(HttpRequestor.Response response, ResponseHand try { return handler.handle(response); } finally { - IOUtil.closeInput(response.getBody()); + if (response != null) { + IOUtil.closeInput(response.getBody()); + } } } @@ -484,6 +542,10 @@ public static String getFirstHeader(HttpRequestor.Response response, String name return DbxRequestUtil.getFirstHeaderMaybe(response, "X-Dropbox-Request-Id"); } + public static /*@Nullable*/ String getContentType(HttpRequestor.Response response) { + return DbxRequestUtil.getFirstHeaderMaybe(response, "Content-Type"); + } + public static abstract class RequestMaker { public abstract T run() throws DbxException, E; } diff --git a/src/main/java/com/dropbox/core/DbxSessionStore.java b/core/src/main/java/com/dropbox/core/DbxSessionStore.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxSessionStore.java rename to core/src/main/java/com/dropbox/core/DbxSessionStore.java diff --git a/src/main/java/com/dropbox/core/DbxStandardSessionStore.java b/core/src/main/java/com/dropbox/core/DbxStandardSessionStore.java similarity index 96% rename from src/main/java/com/dropbox/core/DbxStandardSessionStore.java rename to core/src/main/java/com/dropbox/core/DbxStandardSessionStore.java index 5ab87c04c..8525e95c3 100644 --- a/src/main/java/com/dropbox/core/DbxStandardSessionStore.java +++ b/core/src/main/java/com/dropbox/core/DbxStandardSessionStore.java @@ -1,6 +1,6 @@ package com.dropbox.core; -import javax.servlet.http.HttpSession; +import jakarta.servlet.http.HttpSession; /*>>> import checkers.nullness.quals.Nullable; */ diff --git a/src/main/java/com/dropbox/core/DbxStreamReader.java b/core/src/main/java/com/dropbox/core/DbxStreamReader.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxStreamReader.java rename to core/src/main/java/com/dropbox/core/DbxStreamReader.java diff --git a/src/main/java/com/dropbox/core/DbxStreamWriter.java b/core/src/main/java/com/dropbox/core/DbxStreamWriter.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxStreamWriter.java rename to core/src/main/java/com/dropbox/core/DbxStreamWriter.java diff --git a/core/src/main/java/com/dropbox/core/DbxUploader.java b/core/src/main/java/com/dropbox/core/DbxUploader.java new file mode 100644 index 000000000..e2c1d7d61 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/DbxUploader.java @@ -0,0 +1,315 @@ +package com.dropbox.core; + +import java.io.Closeable; +import java.io.InputStream; +import java.io.IOException; +import java.io.OutputStream; + +import com.fasterxml.jackson.core.JsonProcessingException; + +import com.dropbox.core.stone.StoneSerializer; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.util.IOUtil; + +/** + * Class for completing upload requests. + * + * This class provides methods for uploading a request body and handling the server response. + * + * Example usage: + * + *


+ *    FileInputStream in = new FileInputStream("test.txt");
+ *    try {
+ *        response = uploader.uploadAndFinish(in);
+ *    } finally {
+ *        in.close();
+ *    }
+ *
+ * + * Example using {@link #getOutputStream}: + * + *

+ *    try {
+ *        OutputStream out = uploader.getOutputStream();
+ *        out.write(data);
+ *        response = uploader.finish();
+ *    } finally {
+ *        uploader.close();
+ *    }
+ *
+ * + * @param response type returned by server on request success + * @param exception type returned by server on request failure + */ +public abstract class DbxUploader implements Closeable { + private final HttpRequestor.Uploader httpUploader; + private final StoneSerializer responseSerializer; + private final StoneSerializer errorSerializer; + + private boolean closed; + private boolean finished; + + private final String userId; + + protected DbxUploader(HttpRequestor.Uploader httpUploader, StoneSerializer responseSerializer, StoneSerializer errorSerializer, String userId) { + this.httpUploader = httpUploader; + this.responseSerializer = responseSerializer; + this.errorSerializer = errorSerializer; + + this.closed = false; + this.finished = false; + this.userId = userId; + } + + protected abstract X newException(DbxWrappedException error); + + /** + * Uploads all bytes read from the given {@link InputStream} and returns the response. + * + * This method manages closing this uploader's resources, so no further calls to {@link #close} + * are necessary. The underlying {@code OutputStream} returned by {@link #getOutputStream} + * will be closed by this method. + * + * This method is the equivalent of + * + *

+     *    try {
+     *        OutputStream out = uploader.getOutputStream();
+     *        // read from in, write to out
+     *        response = uploader.finish();
+     *    } finally {
+     *        uploader.close();
+     *    }
+     * 
+ * + * @param in {@code InputStream} containing data to upload + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + * @throws IllegalStateException if this uploader has already been closed (see {@link #close}) or finished (see {@link #finish}) + */ + public R uploadAndFinish(InputStream in) throws X, DbxException, IOException { + return uploadAndFinish(in, null); + } + + /** + * This method is the same as {@link #uploadAndFinish(InputStream, long)} except for it allow + * tracking the upload progress. + * + * @param in {@code InputStream} containing data to upload + * @param progressListener {@code OUtil.ProgressListener} to track the upload progress. + * Only support OKHttpRequester and StandardHttpRequester. + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + * @throws IllegalStateException if this uploader has already been closed (see {@link #close}) or finished (see {@link #finish}) + */ + public R uploadAndFinish(InputStream in, IOUtil.ProgressListener progressListener) throws X, DbxException, IOException { + try { + try { + httpUploader.setProgressListener(progressListener); + httpUploader.upload(in); + } catch (IOUtil.ReadException ex) { + throw ex.getCause(); + } catch (IOException ex) { + // write exceptions and everything else is a Network I/O problem + throw new NetworkIOException(ex); + } + + return finish(); + } finally { + close(); + } + } + + /** + * Uploads up to {@code limit} bytes read from the given {@link InputStream} and returns the + * response. + * + * This method upload bytes from the given {@link InputStream} until {@code limit} bytes have + * been read or end-of-stream is detected. Use {@link #uploadAndFinish(InputStream)} to upload the entire + * stream. + * + * This method manages closing this uploader's resources, so no further calls to {@link #close} + * are necessary. The underlying {@code OutputStream} returned by {@link #getOutputStream} + * will be closed by this method. + * + * This method is the equivalent of + * + *

+     *    try {
+     *        OutputStream out = uploader.getOutputStream();
+     *        // read at most `limit` bytes from in, write to out
+     *        response = uploader.finish();
+     *    } finally {
+     *        uploader.close();
+     *    }
+     * 
+ * + * @param in {@code InputStream} containing data to upload + * @param limit Maximum number of bytes to read from the given {@code InputStream} + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + * @throws IllegalStateException if this uploader has already been closed (see {@link #close}) or finished (see {@link #finish}) + */ + public R uploadAndFinish(InputStream in, long limit) throws X, DbxException, IOException { + return uploadAndFinish(IOUtil.limit(in, limit)); + } + + /** + * This method is the same as {@link #uploadAndFinish(InputStream, long)} except for it allows + * tracking the upload progress. + * + * @param in {@code InputStream} containing data to upload + * @param limit Maximum number of bytes to read from the given {@code InputStream} + * @param progressListener {@code OUtil.ProgressListener} to track the upload progress. + * Only support OKHttpRequester and StandardHttpRequester. + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + * @throws IllegalStateException if this uploader has already been closed (see {@link #close}) or finished (see {@link #finish}) + */ + public R uploadAndFinish(InputStream in, long limit, IOUtil.ProgressListener progressListener) throws X, DbxException, IOException { + return uploadAndFinish(IOUtil.limit(in, limit), progressListener); + } + + /** + * Closes this upload request and releases its underlying resources. + * + * This method should always be called to allow for proper resource deallocation. + * + *

+     *    try {
+     *        OutputStream out = uploader.getOutputStream();
+     *        out.write(data);
+     *        response = uploader.finish();
+     *    } finally {
+     *        uploader.close();
+     *    }
+     * 
+ */ + @Override + public void close() { + if (!closed) { + httpUploader.close(); + closed = true; + } + } + + /** + * Aborts this upload request and closes its underlying connection. + */ + public void abort() { + httpUploader.abort(); + } + + /** + * Returns an {@link OutputStream} that writes to the request body. Remember to call {@link + * #finish} to complete the request and retrieve the response. + * + * Data written to this stream will be uploaded. + * + * Typically you will not need this method and can use the more convenient {@link + * #uploadAndFinish(InputStream)}. + * + * @return Request body output stream. + * + * @throws IllegalStateException if this uploader has already been closed (see {@link #close}) or finished (see {@link #finish}) + * + * @see #uploadAndFinish(InputStream) + */ + public OutputStream getOutputStream() { + assertOpenAndUnfinished(); + return this.httpUploader.getBody(); + } + + /** + * Returns an {@link OutputStream} that writes to the request body. Remember to call {@link + * #finish} to complete the request and retrieve the response. + * + * Data written to this stream will be uploaded. + * + * Typically you will not need this method and can use the more convenient {@link + * #uploadAndFinish(InputStream)}. + * + * @param progressListener {@code IOUtil.ProgressListener} to track the upload progress. Only support OKHttpRequester and StandardHttpRequester. + * + * @return Request body output stream. + * + * @throws IllegalStateException if this uploader has already been closed (see {@link #close}) or finished (see {@link #finish}) + * + * @see #uploadAndFinish(InputStream) + */ + public OutputStream getOutputStream(IOUtil.ProgressListener progressListener) { + this.httpUploader.setProgressListener(progressListener); + return getOutputStream(); + } + + /** + * Completes the request and returns response from the server. + * + * This method should be called after writing data to the upload {@link OutputStream} (see + * {@link #getOutputStream}). + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs sending the upload or reading the response + * @throws IllegalStateException if this uploader has already been closed (see {@link #close}) or finished (see {@link #finish}) + */ + public R finish() throws X, DbxException { + assertOpenAndUnfinished(); + + HttpRequestor.Response response = null; + try { + response = httpUploader.finish(); + + try { + if (response.getStatusCode() == 200) { + return responseSerializer.deserialize(response.getBody()); + } + else if (response.getStatusCode() == 409) { + DbxWrappedException wrapped = DbxWrappedException.fromResponse(errorSerializer, response, this.userId); + throw newException(wrapped); + } + else { + throw DbxRequestUtil.unexpectedStatus(response); + } + } catch (JsonProcessingException ex) { + String requestId = DbxRequestUtil.getRequestId(response); + throw new BadResponseException(requestId, "Bad JSON in response: " + ex, ex); + } + } catch (IOException ex) { + throw new NetworkIOException(ex); + } finally { + // Make sure input stream is closed + if (response != null) { + IOUtil.closeQuietly(response.getBody()); + } + finished = true; + } + } + + private void assertOpenAndUnfinished() { + if (closed) { + throw new IllegalStateException("This uploader is already closed."); + } + if (finished) { + throw new IllegalStateException("This uploader is already finished and cannot be used to upload more data."); + } + } +} diff --git a/src/main/java/com/dropbox/core/DbxWebAuth.java b/core/src/main/java/com/dropbox/core/DbxWebAuth.java similarity index 83% rename from src/main/java/com/dropbox/core/DbxWebAuth.java rename to core/src/main/java/com/dropbox/core/DbxWebAuth.java index 842ede6b9..4baef1f07 100644 --- a/src/main/java/com/dropbox/core/DbxWebAuth.java +++ b/core/src/main/java/com/dropbox/core/DbxWebAuth.java @@ -5,6 +5,7 @@ import java.nio.charset.Charset; import java.security.SecureRandom; import java.util.ArrayList; +import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -36,11 +37,11 @@ *

Part 1

*

Handler for "http://my-server.com/dropbox-auth-start":

*
- *     {@link javax.servlet.http.HttpServletRequest} request = ...
- *     {@link javax.servlet.http.HttpServletResponse} response = ...
+ *     {@link jakarta.servlet.http.HttpServletRequest} request = ...
+ *     {@link jakarta.servlet.http.HttpServletResponse} response = ...
  *
  *     // Select a spot in the session for DbxWebAuth to store the CSRF token.
- *     {@link javax.servlet.http.HttpSession} session = request.getSession(true);
+ *     {@link jakarta.servlet.http.HttpSession} session = request.getSession(true);
  *     String sessionKey = "dropbox-auth-csrf-token";
  *     {@link DbxSessionStore} csrfTokenStore = new DbxStandardSessionStore(session, sessionKey);
  *
@@ -61,11 +62,11 @@
  * 

Part 2

*

Handler for "http://my-server.com/dropbox-auth-finish":

*
- *     {@link javax.servlet.http.HttpServletRequest} request = ...
- *     {@link javax.servlet.http.HttpServletResponse} response = ...
+ *     {@link jakarta.servlet.http.HttpServletRequest} request = ...
+ *     {@link jakarta.servlet.http.HttpServletResponse} response = ...
  *
  *     // Fetch the session to verify our CSRF token
- *     {@link javax.servlet.http.HttpSession} session = request.getSession(true);
+ *     {@link jakarta.servlet.http.HttpSession} session = request.getSession(true);
  *     String sessionKey = "dropbox-auth-csrf-token";
  *     {@link DbxSessionStore} csrfTokenStore = new DbxStandardSessionStore(session, sessionKey);
  *     String redirectUri = "http://my-server.com/dropbox-auth-finish";
@@ -144,9 +145,9 @@ public class DbxWebAuth {
     /** Role representing the personal account associated with a user. Used by {@link Request.Builder#withRequireRole}. */
     public static final String ROLE_PERSONAL = "personal";
 
-    private final DbxRequestConfig requestConfig;
-    private final DbxAppInfo appInfo;
-    private final Request deprecatedRequest;
+    final DbxRequestConfig requestConfig;
+    final DbxAppInfo appInfo;
+    final Request deprecatedRequest;
 
     /**
      * Creates a new instance that will perform the OAuth2 authorization flow using a redirect URI.
@@ -165,6 +166,7 @@ public DbxWebAuth(DbxRequestConfig requestConfig, DbxAppInfo appInfo, String red
         if (requestConfig == null) throw new NullPointerException("requestConfig");
         if (appInfo == null) throw new NullPointerException("appInfo");
 
+
         this.requestConfig = requestConfig;
         this.appInfo = appInfo;
         this.deprecatedRequest = newRequestBuilder()
@@ -225,8 +227,8 @@ public String start(/*@Nullable*/String urlState) {
     }
 
     /**
-     * Starts authorization and returns a "authorization URL" on the Dropbox website that gives the
-     * lets the user grant your app access to their Dropbox account.
+     * Starts authorization and returns an "authorization URL" on the Dropbox website that
+     * let the user grant your app access to their Dropbox account.
      *
      * 

If a redirect URI was specified ({@link Request.Builder#withRedirectUri}), then users * will be redirected to the redirect URI after completing the authorization flow. Call {@link @@ -243,17 +245,26 @@ public String start(/*@Nullable*/String urlState) { * * @throws IllegalStateException if this {@link DbxWebAuth} instance was created using the * deprecated {@link #DbxWebAuth(DbxRequestConfig,DbxAppInfo,String,DbxSessionStore)} - * constructor. + * constructor, or if this (@link DbxWebAuth} instance was created with {@link DbxAppInfo} + * without app secret. */ public String authorize(Request request) { if (deprecatedRequest != null) { throw new IllegalStateException("Must create this instance using DbxWebAuth(DbxRequestConfig,DbxAppInfo) to call this method."); } + if (!appInfo.hasSecret()) { + throw new IllegalStateException("For native apps, please use DbxPKCEWebAuth"); + } + return authorizeImpl(request); } private String authorizeImpl(Request request) { + return authorizeImpl(request, null); + } + + String authorizeImpl(Request request, Map pkceParams) { Map params = new HashMap(); params.put("client_id", appInfo.getKey()); @@ -273,6 +284,23 @@ private String authorizeImpl(Request request) { if (request.disableSignup != null) { params.put("disable_signup", Boolean.toString(request.disableSignup).toLowerCase()); } + if (request.tokenAccessType != null) { + params.put("token_access_type", request.tokenAccessType.toString()); + } + + if (request.scope != null) { + params.put("scope", request.scope); + } + + if (request.includeGrantedScopes != null) { + params.put("include_granted_scopes", request.includeGrantedScopes.toString()); + } + + if (pkceParams != null) { + for (String key: pkceParams.keySet()) { + params.put(key, pkceParams.get(key)); + } + } return DbxRequestUtil.buildUrlWithParams( requestConfig.getUserLocale(), @@ -335,6 +363,15 @@ public DbxAuthFinish finishFromRedirect(String redirectUri, DbxSessionStore sessionStore, Map params) throws DbxException, BadRequestException, BadStateException, CsrfException, NotApprovedException, ProviderException { + + String strippedState = validateRedirectUri(redirectUri, sessionStore, params); + String code = getParam(params, "code"); + return finish(code, redirectUri, strippedState); + } + + static String validateRedirectUri(String redirectUri, DbxSessionStore sessionStore, Map params) + throws BadRequestException, BadStateException, CsrfException, NotApprovedException, ProviderException + { if (redirectUri == null) throw new NullPointerException("redirectUri"); if (sessionStore == null) throw new NullPointerException("sessionStore"); if (params == null) throw new NullPointerException("params"); @@ -376,15 +413,19 @@ public DbxAuthFinish finishFromRedirect(String redirectUri, } } - return finish(code, redirectUri, state); + return state; } private DbxAuthFinish finish(String code) throws DbxException { return finish(code, null, null); } - private DbxAuthFinish finish(String code, String redirectUri, final String state) throws DbxException { + DbxAuthFinish finish(String code, String redirectUri, final String state) throws + DbxException { if (code == null) throw new NullPointerException("code"); + if (!appInfo.hasSecret()) { + throw new IllegalStateException("For native apps, please use DbxPKCEWebAuth"); + } Map params = new HashMap(); params.put("grant_type", "authorization_code"); @@ -503,7 +544,7 @@ private static String verifyAndStripCsrfToken(String state, DbxSessionStore sess return stripped.isEmpty() ? null : stripped; } - private static /*@Nullable*/String getParam(Map params, String name) throws BadRequestException { + static /*@Nullable*/String getParam(Map params, String name) throws BadRequestException { String[] v = params.get(name); if (v == null) { @@ -626,19 +667,29 @@ public static final class Request { private final Boolean forceReapprove; private final Boolean disableSignup; private final DbxSessionStore sessionStore; + private final TokenAccessType tokenAccessType; + private final String scope; + private final IncludeGrantedScopes includeGrantedScopes; + private Request(String redirectUri, String state, String requireRole, Boolean forceReapprove, Boolean disableSignup, - DbxSessionStore sessionStore) { + DbxSessionStore sessionStore, + TokenAccessType tokenAccessType, + String scope, + IncludeGrantedScopes includeGrantedScopes) { this.redirectUri = redirectUri; this.state = state; this.requireRole = requireRole; this.forceReapprove = forceReapprove; this.disableSignup = disableSignup; this.sessionStore = sessionStore; + this.tokenAccessType = tokenAccessType; + this.scope = scope; + this.includeGrantedScopes = includeGrantedScopes; } /** @@ -647,12 +698,17 @@ private Request(String redirectUri, * @return copy of this request */ public Builder copy() { - return new Builder(redirectUri, - state, - requireRole, - forceReapprove, - disableSignup, - sessionStore); + return new Builder( + redirectUri, + state, + requireRole, + forceReapprove, + disableSignup, + sessionStore, + tokenAccessType, + scope, + includeGrantedScopes + ); } /** @@ -674,9 +730,12 @@ public static final class Builder { private Boolean forceReapprove; private Boolean disableSignup; private DbxSessionStore sessionStore; + private TokenAccessType tokenAccessType; + private String scope; + private IncludeGrantedScopes includeGrantedScopes; private Builder() { - this(null, null, null, null, null, null); + this(null, null, null, null, null, null, null, null, null); } private Builder(String redirectUri, @@ -684,13 +743,19 @@ private Builder(String redirectUri, String requireRole, Boolean forceReapprove, Boolean disableSignup, - DbxSessionStore sessionStore) { + DbxSessionStore sessionStore, + TokenAccessType tokenAccessType, + String scope, + IncludeGrantedScopes includeGrantedScopes) { this.redirectUri = redirectUri; this.state = state; this.requireRole = requireRole; this.forceReapprove = forceReapprove; this.disableSignup = disableSignup; this.sessionStore = sessionStore; + this.tokenAccessType = tokenAccessType; + this.scope = scope; + this.includeGrantedScopes = includeGrantedScopes; } /** @@ -822,6 +887,55 @@ public Builder withDisableSignup(Boolean disableSignup) { return this; } + /** + * + * Whether or not to include refresh token in {@link DbxAuthFinish} + * + * For {@link TokenAccessType#ONLINE}, auth result only contains short live token. + * For {@link TokenAccessType#OFFLINE}, auth result includes both short live token + * and refresh token. + * For {@code null}, auth result is either legacy long live token or short live token + * only, depending on the app setting. + * + * @param tokenAccessType Whether or not to include refresh token in + * {@link DbxAuthFinish} + * + * @return this builder + */ + public Builder withTokenAccessType(TokenAccessType tokenAccessType) { + this.tokenAccessType = tokenAccessType; + return this; + } + + /** + * + * + * @param scope Space-delimited scope string. Each scope corresponds to a group of + * API endpoints. To call one API endpoint you have to obtains the scope first otherwise you + * will get HTTP 401. Example: "account_info.read files.content.read" + */ + public Builder withScope(Collection scope) { + if (scope != null) { + this.scope = StringUtil.join(scope, " "); + } + return this; + } + + + /** + * + * @param includeGrantedScopes This field is optional. If not presented, Dropbox will + * give you the scopes in + * {@link #withScope(Collection)}. + * Otherwise Dropbox server will return a token with all + * scopes user previously granted your app together with + * the new scopes. + */ + public Builder withIncludeGrantedScopes(IncludeGrantedScopes includeGrantedScopes) { + this.includeGrantedScopes = includeGrantedScopes; + return this; + } + /** * Returns a new OAuth {@link Request} that can be used in * {@link DbxWebAuth#DbxWebAuth(DbxRequestConfig,DbxAppInfo)} to authorize a user. @@ -836,12 +950,21 @@ public Request build() { throw new IllegalStateException("Cannot specify a state without a redirect URI."); } - return new Request(redirectUri, - state, - requireRole, - forceReapprove, - disableSignup, - sessionStore); + if (includeGrantedScopes != null && scope == null) { + throw new IllegalArgumentException("If you are using includeGrantedScopes, " + + "you must ask for specific new scopes"); + } + + return new Request( + redirectUri, + state, + requireRole, + forceReapprove, + disableSignup, + sessionStore, + tokenAccessType, + scope, + includeGrantedScopes); } } } diff --git a/src/main/java/com/dropbox/core/DbxWebAuthNoRedirect.java b/core/src/main/java/com/dropbox/core/DbxWebAuthNoRedirect.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxWebAuthNoRedirect.java rename to core/src/main/java/com/dropbox/core/DbxWebAuthNoRedirect.java diff --git a/src/main/java/com/dropbox/core/DbxWrappedException.java b/core/src/main/java/com/dropbox/core/DbxWrappedException.java similarity index 100% rename from src/main/java/com/dropbox/core/DbxWrappedException.java rename to core/src/main/java/com/dropbox/core/DbxWrappedException.java diff --git a/core/src/main/java/com/dropbox/core/IncludeGrantedScopes.java b/core/src/main/java/com/dropbox/core/IncludeGrantedScopes.java new file mode 100644 index 000000000..8ccc60f6f --- /dev/null +++ b/core/src/main/java/com/dropbox/core/IncludeGrantedScopes.java @@ -0,0 +1,23 @@ +package com.dropbox.core; + +/** + * If this field is present, Dropbox server will return a token with all scopes user previously + * granted your app. + * Non-mobile apps use it in {@link DbxWebAuth}. + * Mobile apps use it in {@link com.dropbox.core.android.Auth} + */ +public enum IncludeGrantedScopes { + /** + * Use it in user flow. + */ + USER, + /** + * Use it in team flow. + */ + TEAM; + + @Override + public String toString() { + return this.name().toLowerCase(); + } +} diff --git a/src/main/java/com/dropbox/core/InvalidAccessTokenException.java b/core/src/main/java/com/dropbox/core/InvalidAccessTokenException.java similarity index 77% rename from src/main/java/com/dropbox/core/InvalidAccessTokenException.java rename to core/src/main/java/com/dropbox/core/InvalidAccessTokenException.java index 1b3470f56..015efa101 100644 --- a/src/main/java/com/dropbox/core/InvalidAccessTokenException.java +++ b/core/src/main/java/com/dropbox/core/InvalidAccessTokenException.java @@ -1,5 +1,7 @@ package com.dropbox.core; +import com.dropbox.core.v2.auth.AuthError; + /** * Gets thrown when the access token you're using to make API calls is invalid. * @@ -13,8 +15,14 @@ */ public class InvalidAccessTokenException extends DbxException { private static final long serialVersionUID = 0; + private AuthError authError; - public InvalidAccessTokenException(String requestId, String message) { + public InvalidAccessTokenException(String requestId, String message, AuthError authError) { super(requestId, message); + this.authError = authError; + } + + public AuthError getAuthError() { + return this.authError; } } diff --git a/src/main/java/com/dropbox/core/LocalizedText.java b/core/src/main/java/com/dropbox/core/LocalizedText.java similarity index 100% rename from src/main/java/com/dropbox/core/LocalizedText.java rename to core/src/main/java/com/dropbox/core/LocalizedText.java diff --git a/src/main/java/com/dropbox/core/NetworkIOException.java b/core/src/main/java/com/dropbox/core/NetworkIOException.java similarity index 100% rename from src/main/java/com/dropbox/core/NetworkIOException.java rename to core/src/main/java/com/dropbox/core/NetworkIOException.java diff --git a/src/main/java/com/dropbox/core/NoThrowInputStream.java b/core/src/main/java/com/dropbox/core/NoThrowInputStream.java similarity index 100% rename from src/main/java/com/dropbox/core/NoThrowInputStream.java rename to core/src/main/java/com/dropbox/core/NoThrowInputStream.java diff --git a/src/main/java/com/dropbox/core/NoThrowOutputStream.java b/core/src/main/java/com/dropbox/core/NoThrowOutputStream.java similarity index 100% rename from src/main/java/com/dropbox/core/NoThrowOutputStream.java rename to core/src/main/java/com/dropbox/core/NoThrowOutputStream.java diff --git a/src/main/java/com/dropbox/core/PathRootErrorException.java b/core/src/main/java/com/dropbox/core/PathRootErrorException.java similarity index 100% rename from src/main/java/com/dropbox/core/PathRootErrorException.java rename to core/src/main/java/com/dropbox/core/PathRootErrorException.java diff --git a/src/main/java/com/dropbox/core/ProtocolException.java b/core/src/main/java/com/dropbox/core/ProtocolException.java similarity index 100% rename from src/main/java/com/dropbox/core/ProtocolException.java rename to core/src/main/java/com/dropbox/core/ProtocolException.java diff --git a/src/main/java/com/dropbox/core/RateLimitException.java b/core/src/main/java/com/dropbox/core/RateLimitException.java similarity index 100% rename from src/main/java/com/dropbox/core/RateLimitException.java rename to core/src/main/java/com/dropbox/core/RateLimitException.java diff --git a/src/main/java/com/dropbox/core/RetryException.java b/core/src/main/java/com/dropbox/core/RetryException.java similarity index 93% rename from src/main/java/com/dropbox/core/RetryException.java rename to core/src/main/java/com/dropbox/core/RetryException.java index bd23aaefa..7d61ce151 100644 --- a/src/main/java/com/dropbox/core/RetryException.java +++ b/core/src/main/java/com/dropbox/core/RetryException.java @@ -38,7 +38,7 @@ public RetryException(String requestId, String message, long backoff, TimeUnit u /** * Returns the number of milliseconds the client should backoff before retrying the request. * - * @return backoff time, in seconds, before retrying the request, or {@code 0} if the request + * @return backoff time, in milliseconds, before retrying the request, or {@code 0} if the request * can be retried immediately. */ public long getBackoffMillis() { diff --git a/src/main/java/com/dropbox/core/ServerException.java b/core/src/main/java/com/dropbox/core/ServerException.java similarity index 100% rename from src/main/java/com/dropbox/core/ServerException.java rename to core/src/main/java/com/dropbox/core/ServerException.java diff --git a/core/src/main/java/com/dropbox/core/TokenAccessType.java b/core/src/main/java/com/dropbox/core/TokenAccessType.java new file mode 100644 index 000000000..15a73dfe0 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/TokenAccessType.java @@ -0,0 +1,28 @@ +package com.dropbox.core; + +/** + * Whether or not to include refresh token in {@link DbxAuthFinish} + * Non-mobile apps use it in {@link DbxWebAuth}. + * Mobile apps use it in {@link com.dropbox.core.android.Auth} + */ +public enum TokenAccessType{ + /** + * Auth result only contains short live token. + */ + ONLINE("online"), + /** + * auth result includes both short live token. + */ + OFFLINE("offline"); + + private String string; + + TokenAccessType(String string) { + this.string = string; + } + + @Override + public String toString() { + return string; + } +} diff --git a/src/main/java/com/dropbox/core/http/GoogleAppEngineRequestor.java b/core/src/main/java/com/dropbox/core/http/GoogleAppEngineRequestor.java similarity index 97% rename from src/main/java/com/dropbox/core/http/GoogleAppEngineRequestor.java rename to core/src/main/java/com/dropbox/core/http/GoogleAppEngineRequestor.java index e5a4c590c..5a513f7a9 100644 --- a/src/main/java/com/dropbox/core/http/GoogleAppEngineRequestor.java +++ b/core/src/main/java/com/dropbox/core/http/GoogleAppEngineRequestor.java @@ -173,6 +173,9 @@ public Response finish() throws IOException { HTTPResponse response = service.fetch(request); Response requestorResponse = toRequestorResponse(response); close(); + if (progressListener != null) { + progressListener.onProgress(request.getPayload().length); + } return requestorResponse; } } diff --git a/src/main/java/com/dropbox/core/http/HttpRequestor.java b/core/src/main/java/com/dropbox/core/http/HttpRequestor.java similarity index 93% rename from src/main/java/com/dropbox/core/http/HttpRequestor.java rename to core/src/main/java/com/dropbox/core/http/HttpRequestor.java index e10706831..8a23d0790 100644 --- a/src/main/java/com/dropbox/core/http/HttpRequestor.java +++ b/core/src/main/java/com/dropbox/core/http/HttpRequestor.java @@ -38,6 +38,9 @@ public abstract class HttpRequestor public abstract Response doGet(String url, Iterable

headers) throws IOException; public abstract Uploader startPost(String url, Iterable
headers) throws IOException; + public Uploader startPostInStreamingMode(String url, Iterable
headers) throws IOException { + return startPost(url, headers); + } public abstract Uploader startPut(String url, Iterable
headers) throws IOException; /** @@ -73,6 +76,8 @@ public String getValue() { } public static abstract class Uploader { + protected IOUtil.ProgressListener progressListener; + public abstract OutputStream getBody(); public abstract void close(); public abstract void abort(); @@ -109,6 +114,10 @@ public void upload(byte [] body) throws IOException { out.close(); } } + + public void setProgressListener(IOUtil.ProgressListener progressListener) { + this.progressListener = progressListener; + } } public static final class Response { diff --git a/src/main/java/com/dropbox/core/http/OkHttp3Requestor.java b/core/src/main/java/com/dropbox/core/http/OkHttp3Requestor.java similarity index 89% rename from src/main/java/com/dropbox/core/http/OkHttp3Requestor.java rename to core/src/main/java/com/dropbox/core/http/OkHttp3Requestor.java index 61943420d..8978c45ba 100644 --- a/src/main/java/com/dropbox/core/http/OkHttp3Requestor.java +++ b/core/src/main/java/com/dropbox/core/http/OkHttp3Requestor.java @@ -1,5 +1,6 @@ package com.dropbox.core.http; +import com.dropbox.core.util.IOUtil; import okhttp3.Call; import okhttp3.Callback; import okhttp3.Headers; @@ -18,7 +19,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; -import okio.BufferedSink; +import okio.*; /*>>> import checkers.nullness.quals.Nullable; */ @@ -41,9 +42,7 @@ public static OkHttpClient.Builder defaultOkHttpClientBuilder() { return new OkHttpClient.Builder() .connectTimeout(DEFAULT_CONNECT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS) .readTimeout(DEFAULT_READ_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS) - .writeTimeout(DEFAULT_READ_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS) - // enables certificate pinning - .sslSocketFactory(SSLConfig.getSSLSocketFactory(), SSLConfig.getTrustManager()); + .writeTimeout(DEFAULT_READ_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); } private final OkHttpClient client; @@ -67,17 +66,6 @@ public static OkHttpClient.Builder defaultOkHttpClientBuilder() { * .build(); *
* - *

- * If you don't use {@link #defaultOkHttpClient()} or {@link #defaultOkHttpClientBuilder()}, - * make sure to use Dropbox's hardened SSL settings from {@link SSLConfig}: - *

- * - *
-     * OkHttpClient client = OkHttpClient.Builder()
-     *     ...
-     *     .sslSocketFactory(SSLConfig.getSSLSocketFactory(), SSLConfig.getTrustManager())
-     *     .build();
-     * 
*/ public OkHttp3Requestor(OkHttpClient client) { if (client == null) throw new NullPointerException("client"); @@ -212,6 +200,10 @@ public OutputStream getBody() { return ((PipedRequestBody) body).getOutputStream(); } else { PipedRequestBody pipedBody = new PipedRequestBody(); + if (progressListener != null) { + pipedBody.setListener(progressListener); + } + setBody(pipedBody); this.callback = new AsyncCallback(pipedBody); @@ -231,12 +223,12 @@ private void setBody(RequestBody body) { @Override public void upload(File file) { - setBody(RequestBody.create(null, file)); + setBody(RequestBody.Companion.create(file, null)); } @Override public void upload(byte [] body) { - setBody(RequestBody.create(null, body)); + setBody(RequestBody.Companion.create(body, null)); } @Override @@ -330,14 +322,23 @@ public synchronized void onResponse(Call call, okhttp3.Response response) throws private static class PipedRequestBody extends RequestBody implements Closeable { private final OkHttpUtil.PipedStream stream; + private IOUtil.ProgressListener listener; + public PipedRequestBody() { this.stream = new OkHttpUtil.PipedStream(); } + public void setListener(IOUtil.ProgressListener listener) { this.listener = listener; } + public OutputStream getOutputStream() { return stream.getOutputStream(); } + @Override + public boolean isOneShot() { + return true; + } + @Override public void close() { stream.close(); @@ -355,8 +356,30 @@ public long contentLength() { @Override public void writeTo(BufferedSink sink) throws IOException { - stream.writeTo(sink); + CountingSink countingSink = new CountingSink(sink); + BufferedSink bufferedSink = Okio.buffer(countingSink); + stream.writeTo(bufferedSink); + bufferedSink.flush(); close(); } + + private final class CountingSink extends ForwardingSink { + private long bytesWritten = 0; + + public CountingSink(Sink delegate) { + super(delegate); + } + + @Override + public void write(Buffer source, long byteCount) throws IOException { + super.write(source, byteCount); + + bytesWritten += byteCount; + + if (listener != null) { + listener.onProgress(bytesWritten); + } + } + } } } diff --git a/src/main/java/com/dropbox/core/http/OkHttpRequestor.java b/core/src/main/java/com/dropbox/core/http/OkHttpRequestor.java similarity index 91% rename from src/main/java/com/dropbox/core/http/OkHttpRequestor.java rename to core/src/main/java/com/dropbox/core/http/OkHttpRequestor.java index 3fde1ac05..9de7e5eee 100644 --- a/src/main/java/com/dropbox/core/http/OkHttpRequestor.java +++ b/core/src/main/java/com/dropbox/core/http/OkHttpRequestor.java @@ -1,5 +1,6 @@ package com.dropbox.core.http; +import com.dropbox.core.util.IOUtil; import com.squareup.okhttp.Call; import com.squareup.okhttp.Callback; import com.squareup.okhttp.Headers; @@ -18,7 +19,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; -import okio.BufferedSink; +import okio.*; /*>>> import checkers.nullness.quals.Nullable; */ @@ -39,8 +40,6 @@ public static OkHttpClient defaultOkHttpClient() { client.setConnectTimeout(DEFAULT_CONNECT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); client.setReadTimeout(DEFAULT_READ_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); client.setWriteTimeout(DEFAULT_READ_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); - // enables certificate pinning - client.setSslSocketFactory(SSLConfig.getSSLSocketFactory()); return client; } @@ -60,14 +59,6 @@ public static OkHttpClient defaultOkHttpClient() { * HttpRequestor requestor = new OkHttpRequestor(client); *
* - *

- * If you don't use {@link #defaultOkHttpClient()}, make sure to use Dropbox's - * hardened SSL settings from {@link SSLConfig}: - *

- * - *
-     * client.setSslSocketFactory(SSLConfig.getSSLSocketFactory())
-     * 
*/ public OkHttpRequestor(OkHttpClient client) { if (client == null) throw new NullPointerException("client"); @@ -202,6 +193,9 @@ public OutputStream getBody() { return ((PipedRequestBody) body).getOutputStream(); } else { PipedRequestBody pipedBody = new PipedRequestBody(); + if (progressListener != null) { + pipedBody.setListener(progressListener); + } setBody(pipedBody); this.callback = new AsyncCallback(); @@ -317,10 +311,14 @@ public synchronized void onResponse(com.squareup.okhttp.Response response) throw private static class PipedRequestBody extends RequestBody implements Closeable { private final OkHttpUtil.PipedStream stream; + private IOUtil.ProgressListener listener; + public PipedRequestBody() { this.stream = new OkHttpUtil.PipedStream(); } + public void setListener(IOUtil.ProgressListener listener) { this.listener = listener; } + public OutputStream getOutputStream() { return stream.getOutputStream(); } @@ -342,8 +340,30 @@ public long contentLength() { @Override public void writeTo(BufferedSink sink) throws IOException { - stream.writeTo(sink); + CountingSink countingSink = new CountingSink(sink); + BufferedSink bufferedSink = Okio.buffer(countingSink); + stream.writeTo(bufferedSink); + bufferedSink.flush(); close(); } + + private final class CountingSink extends ForwardingSink { + private long bytesWritten = 0; + + public CountingSink(Sink delegate) { + super(delegate); + } + + @Override + public void write(Buffer source, long byteCount) throws IOException { + super.write(source, byteCount); + + bytesWritten += byteCount; + + if (listener != null) { + listener.onProgress(bytesWritten); + } + } + } } } diff --git a/src/main/java/com/dropbox/core/http/OkHttpUtil.java b/core/src/main/java/com/dropbox/core/http/OkHttpUtil.java similarity index 100% rename from src/main/java/com/dropbox/core/http/OkHttpUtil.java rename to core/src/main/java/com/dropbox/core/http/OkHttpUtil.java diff --git a/src/main/java/com/dropbox/core/http/StandardHttpRequestor.java b/core/src/main/java/com/dropbox/core/http/StandardHttpRequestor.java similarity index 83% rename from src/main/java/com/dropbox/core/http/StandardHttpRequestor.java rename to core/src/main/java/com/dropbox/core/http/StandardHttpRequestor.java index 749b33c45..51d4878c7 100644 --- a/src/main/java/com/dropbox/core/http/StandardHttpRequestor.java +++ b/core/src/main/java/com/dropbox/core/http/StandardHttpRequestor.java @@ -9,9 +9,12 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Logger; +import javax.annotation.Nullable; import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLSocketFactory; import com.dropbox.core.util.IOUtil; +import com.dropbox.core.util.ProgressOutputStream; /*>>> import checkers.nullness.quals.Nullable; */ @@ -59,7 +62,7 @@ private Response toResponse(HttpURLConnection conn) throws IOException { @Override public Response doGet(String url, Iterable
headers) throws IOException { - HttpURLConnection conn = prepRequest(url, headers); + HttpURLConnection conn = prepRequest(url, headers, false); conn.setRequestMethod("GET"); conn.connect(); return toResponse(conn); @@ -67,14 +70,22 @@ public Response doGet(String url, Iterable
headers) throws IOException { @Override public Uploader startPost(String url, Iterable
headers) throws IOException { - HttpURLConnection conn = prepRequest(url, headers); + HttpURLConnection conn = prepRequest(url, headers, false); + conn.setRequestMethod("POST"); + return new Uploader(conn); + } + + @Override + public Uploader startPostInStreamingMode(String url, Iterable
headers) throws + IOException { + HttpURLConnection conn = prepRequest(url, headers, true); conn.setRequestMethod("POST"); return new Uploader(conn); } @Override public Uploader startPut(String url, Iterable
headers) throws IOException { - HttpURLConnection conn = prepRequest(url, headers); + HttpURLConnection conn = prepRequest(url, headers, false); conn.setRequestMethod("PUT"); return new Uploader(conn); } @@ -124,13 +135,12 @@ private static OutputStream getOutputStream(HttpURLConnection conn) throws IOExc } private class Uploader extends HttpRequestor.Uploader { - private final OutputStream out; - + private final ProgressOutputStream out; private HttpURLConnection conn; public Uploader(HttpURLConnection conn) throws IOException { this.conn = conn; - this.out = getOutputStream(conn); + this.out = new ProgressOutputStream(getOutputStream(conn)); conn.connect(); } @@ -180,9 +190,14 @@ public Response finish() throws IOException { conn = null; } } + + public void setProgressListener(IOUtil.ProgressListener progressListener) { + out.setListener(progressListener); + } } - private HttpURLConnection prepRequest(String url, Iterable
headers) throws IOException { + + protected HttpURLConnection prepRequest(String url, Iterable
headers, boolean streaming) throws IOException { URL urlObject = new URL(url); HttpURLConnection conn = (HttpURLConnection) urlObject.openConnection(config.getProxy()); @@ -190,14 +205,22 @@ private HttpURLConnection prepRequest(String url, Iterable
headers) thro conn.setReadTimeout((int) config.getReadTimeoutMillis()); conn.setUseCaches(false); conn.setAllowUserInteraction(false); + if (streaming) { + conn.setChunkedStreamingMode(IOUtil.DEFAULT_COPY_BUFFER_SIZE); + } // Some JREs (like the one provided by Google AppEngine) will return HttpURLConnection // instead of HttpsURLConnection. So we have to check here. if (conn instanceof HttpsURLConnection) { - SSLConfig.apply((HttpsURLConnection) conn); + if (config.getSslSocketFactory() != null) { + ((HttpsURLConnection) conn).setSSLSocketFactory(config.getSslSocketFactory()); + } configureConnection((HttpsURLConnection) conn); } else { - logCertificatePinningWarning(); + if (config.getSslSocketFactory() != null) { + // only show warning about cert pinning if cert pinning is configured + logCertificatePinningWarning(); + } } configure(conn); @@ -244,13 +267,16 @@ public static final class Config { private final Proxy proxy; private final long connectTimeoutMillis; private final long readTimeoutMillis; + private final SSLSocketFactory sslSocketFactory; private Config(Proxy proxy, long connectTimeoutMillis, - long readTimeoutMillis) { + long readTimeoutMillis, + SSLSocketFactory sslSocketFactory) { this.proxy = proxy; this.connectTimeoutMillis = connectTimeoutMillis; this.readTimeoutMillis = readTimeoutMillis; + this.sslSocketFactory = sslSocketFactory; } /** @@ -288,6 +314,17 @@ public long getReadTimeoutMillis() { return readTimeoutMillis; } + /** + * Returns the SSLSocketFactory if provided. This is to be used + * for certificate pinning and other custom SSL configurations. + * + * @return SSLSocketFactory or null. + */ + @Nullable + public SSLSocketFactory getSslSocketFactory() { + return sslSocketFactory; + } + /** * Returns a new builder for creating a copy of this * config. The builder is configured to use this config's @@ -296,7 +333,7 @@ public long getReadTimeoutMillis() { * @return builder for creating a copy of this config. */ public Builder copy() { - return new Builder(proxy, connectTimeoutMillis, readTimeoutMillis); + return new Builder(proxy, connectTimeoutMillis, readTimeoutMillis, sslSocketFactory); } /** @@ -315,15 +352,17 @@ public static final class Builder { private Proxy proxy; private long connectTimeoutMillis; private long readTimeoutMillis; + private SSLSocketFactory sslSocketFactory; private Builder() { - this(Proxy.NO_PROXY, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS); + this(Proxy.NO_PROXY, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS, null); } - private Builder(Proxy proxy, long connectTimeoutMillis, long readTimeoutMillis) { + private Builder(Proxy proxy, long connectTimeoutMillis, long readTimeoutMillis, SSLSocketFactory sslSocketFactory) { this.proxy = proxy; this.connectTimeoutMillis = connectTimeoutMillis; this.readTimeoutMillis = readTimeoutMillis; + this.sslSocketFactory = sslSocketFactory; } /** @@ -403,6 +442,21 @@ public Builder withReadTimeout(long timeout, TimeUnit unit) { return this; } + /** + * Sets a SSLSocketFactory for all connections. + * + * Providing your own SSLSocketFactory is optional and can be used to + * customize SSL configurations (e.g. for certificate pinning). + * + * @param sslSocketFactory The SSLSocketFactory instance to be used with each HttpsURLConnection. + * + * @return this builder + */ + public Builder withSslSocketFactory(SSLSocketFactory sslSocketFactory) { + this.sslSocketFactory = sslSocketFactory; + return this; + } + /** * Returns a {@link Config} with the values set by this builder. * @@ -412,7 +466,8 @@ public Config build() { return new Config( proxy, connectTimeoutMillis, - readTimeoutMillis + readTimeoutMillis, + sslSocketFactory ); } diff --git a/src/main/java/com/dropbox/core/json/JsonArrayReader.java b/core/src/main/java/com/dropbox/core/json/JsonArrayReader.java similarity index 100% rename from src/main/java/com/dropbox/core/json/JsonArrayReader.java rename to core/src/main/java/com/dropbox/core/json/JsonArrayReader.java diff --git a/src/main/java/com/dropbox/core/json/JsonDateReader.java b/core/src/main/java/com/dropbox/core/json/JsonDateReader.java similarity index 100% rename from src/main/java/com/dropbox/core/json/JsonDateReader.java rename to core/src/main/java/com/dropbox/core/json/JsonDateReader.java diff --git a/src/main/java/com/dropbox/core/json/JsonReadException.java b/core/src/main/java/com/dropbox/core/json/JsonReadException.java similarity index 100% rename from src/main/java/com/dropbox/core/json/JsonReadException.java rename to core/src/main/java/com/dropbox/core/json/JsonReadException.java diff --git a/src/main/java/com/dropbox/core/json/JsonReader.java b/core/src/main/java/com/dropbox/core/json/JsonReader.java similarity index 99% rename from src/main/java/com/dropbox/core/json/JsonReader.java rename to core/src/main/java/com/dropbox/core/json/JsonReader.java index 5c436f396..ffb037335 100644 --- a/src/main/java/com/dropbox/core/json/JsonReader.java +++ b/core/src/main/java/com/dropbox/core/json/JsonReader.java @@ -41,7 +41,7 @@ public void validate(T value) // Base implementation does nothing. } - public final T readField(JsonParser parser, String fieldName, /*@Nullable*/T v) + public final T readField(JsonParser parser, String fieldName, /*@Nullable*/Object v) throws IOException, JsonReadException { if (v != null) throw new JsonReadException("duplicate field \"" + fieldName + "\"", parser.getTokenLocation()); diff --git a/src/main/java/com/dropbox/core/json/JsonWriter.java b/core/src/main/java/com/dropbox/core/json/JsonWriter.java similarity index 100% rename from src/main/java/com/dropbox/core/json/JsonWriter.java rename to core/src/main/java/com/dropbox/core/json/JsonWriter.java diff --git a/core/src/main/java/com/dropbox/core/oauth/DbxCredential.java b/core/src/main/java/com/dropbox/core/oauth/DbxCredential.java new file mode 100644 index 000000000..052a86172 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/oauth/DbxCredential.java @@ -0,0 +1,339 @@ +package com.dropbox.core.oauth; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxHost; +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.DbxRequestUtil; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.json.JsonReadException; +import com.dropbox.core.json.JsonReader; +import com.dropbox.core.json.JsonWriter; +import com.dropbox.core.util.StringUtil; +import com.dropbox.core.v2.DbxRawClientV2; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonLocation; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static com.dropbox.core.oauth.DbxOAuthError.INVALID_REQUEST; + +/*>>> import checkers.nullness.quals.NonNull; */ +/*>>> import checkers.nullness.quals.Nullable; */ + +/** + * + * + * Use this class to store the OAuth2 result. It wraps the access token, refresh token, token + * expiration time as well app key and app secret, which is used for refreshing call. The object + * can be serialized to or deserialized from persistent storage. + * + * {@link com.dropbox.core.v2.DbxClientV2} and {@link com.dropbox.core.v2.DbxTeamClientV2} use + * this class to construct clients supporting short-live token and refresh token. + */ +public class DbxCredential { + /** + * The margin that we think access token is "about to" expire. Within this margin, dropbox + * client would think the token is already expired and automatically refresh if possible. + */ + public final static long EXPIRE_MARGIN = 5 * 60 * 1000; // 5 minutes + + private String accessToken; + private /*@Nullable*/Long expiresAt; + private final String refreshToken; + private final String appKey; + private final String appSecret; + + /** + * Create a DbxCredential object that doesn't support refreshing. + * + * @param accessToken Short live token or legacty long live token. + */ + public DbxCredential(String accessToken) { + this(accessToken, null, null, null, null); + } + + /** + * Create a DbxCredential object if your app uses PKCE. PKCE flow doesn't requrie app secret. + * @see com.dropbox.core.DbxPKCEWebAuth to learn what is PKCE. + * + * @param accessToken Short-lived access token from OAuth flow. + * @param expiresAt Expiration time in millisecond from OAuth flow. + * @param refreshToken Refresh token from OAuth flow. + * @param appKey You app's client id. + */ + public DbxCredential(String accessToken, /*Nullable*/Long expiresAt, String refreshToken, String + appKey) { + this(accessToken, expiresAt, refreshToken, appKey, null); + } + + /** + * Create a DbxCredential object supporting refreshing short live tokens. + * + * @param accessToken Short-lived access token from OAuth flow. + * @param expiresAt Expiration time in millisecond from OAuth flow. + * @param refreshToken Refresh token from OAuth flow + * @param appKey You app's client id. + * @param appSecret You app's client secret. + */ + public DbxCredential(String accessToken, /*@Nullable*/Long expiresAt, String refreshToken, String appKey, String appSecret) { + if (accessToken == null) { + throw new IllegalArgumentException("Missing access token."); + } + + if (refreshToken != null && appKey == null) { + throw new IllegalArgumentException("Can't refresh without app Key."); + } + + if (refreshToken != null && expiresAt == null) { + throw new IllegalArgumentException("Missing expireAt."); + } + + this.accessToken = accessToken; + this.expiresAt = expiresAt; + this.refreshToken = refreshToken; + this.appKey = appKey; + this.appSecret = appSecret; + } + + /** + * Returns the OAuth access token to use for authorization with Dropbox servers. + * + * @return OAuth access token + */ + public String getAccessToken() { + return this.accessToken; + } + + /** + * + * Return the millisecond when accessToken is going to expire. + * + * @return ExpiresAt in millisecond. + */ + public Long getExpiresAt() { + return this.expiresAt; + } + + public String getAppKey() { + return this.appKey; + } + + public String getAppSecret() { + return this.appSecret; + } + + /** + * + * Return the refresh token which can be used to obtain new access token. + * + * @return Refresh Token. + */ + public String getRefreshToken() { + return this.refreshToken; + } + + /** + * @return true if access token is already expired or current time is within the \{@value + * EXPIRE_MARGIN} to expiration time. + */ + public boolean aboutToExpire() { + if (this.getExpiresAt() == null) { + return false; + } + + return System.currentTimeMillis() + EXPIRE_MARGIN > this.getExpiresAt(); + } + + /** + * This should be used only in internal testing. Same as {@link #refresh(DbxRequestConfig)} + * but just add host. + * @param requestConfig request config used to make http request. + * @param host which host to call, only used in internal testing. + * @param scope space-delimited scope list. Must be subset of scope in current oauth2 grant. + * @return DbxRefreshResult which contains app key and app secret. + * @throws DbxOAuthException If refresh failed becasue of invalid refresh parameter or + * refresh token is revoked. + * @throws DbxException If refresh failed for general errors. + */ + public DbxRefreshResult refresh(DbxRequestConfig requestConfig, DbxHost host, + Collection scope) + throws DbxException { + if (this.refreshToken == null) { + throw new DbxOAuthException(null, new DbxOAuthError(INVALID_REQUEST, "Cannot refresh becasue there is no refresh token")); + } + + if (this.appKey == null) { + throw new IllegalStateException("DbxCredential's constructor should always guarantee " + + "appKey is not null if refreshToken is not null."); + } + + Map params = new HashMap(); + params.put("grant_type", "refresh_token"); + params.put("refresh_token", refreshToken); + params.put("locale", requestConfig.getUserLocale()); + + + List headers = new ArrayList(); + if (this.appSecret == null) { + //PKCE flow + params.put("client_id", this.appKey); + } else { + DbxRequestUtil.addBasicAuthHeader(headers, this.appKey, this.appSecret); + } + + if (scope != null) { + String scopeString = StringUtil.join(scope, " "); + params.put("scope", scopeString); + } + + DbxRefreshResult dbxRefreshResult = DbxRequestUtil.doPostNoAuth( + requestConfig, + DbxRawClientV2.USER_AGENT_ID, + host.getApi(), + "oauth2/token", + DbxRequestUtil.toParamsArray(params), + headers, + new DbxRequestUtil.ResponseHandler() { + @Override + public DbxRefreshResult handle(HttpRequestor.Response response) throws DbxException { + if (response.getStatusCode() != 200) { + String requestId = DbxRequestUtil.getRequestId(response); + DbxOAuthError dbxOAuthError = DbxRequestUtil.readJsonFromResponse( + DbxOAuthError.Reader, response + ); + throw new DbxOAuthException(requestId, dbxOAuthError); + } + return DbxRequestUtil.readJsonFromResponse(DbxRefreshResult.Reader, response); + } + } + ); + + synchronized (this) { + this.accessToken = dbxRefreshResult.getAccessToken(); + this.expiresAt = dbxRefreshResult.getExpiresAt(); + } + return dbxRefreshResult; + } + + /** + * Refresh the short live access token. If succeeds, the access token and expiration time + * value inside this object will be overwritten to new values. + * + * @param requestConfig request config used to make http request. + * @return DbxRefreshResult which contains app key and app secret. + * @throws DbxOAuthException If refresh failed because of invalid refresh parameter or + * refresh token is invalid or revoked. + * @throws DbxException If refresh failed for general errors. + */ + public DbxRefreshResult refresh(DbxRequestConfig requestConfig) throws DbxException { + return refresh(requestConfig, DbxHost.DEFAULT, null); + } + + /** + * Refresh the short live access token. If succeeds, the access token and expiration time + * value inside this object will be overwritten to new values. + * + * @param requestConfig request config used to make http request. + * @param scope Must be a subset of original scopes requested with this OAuth2 grant. You can + * use this method to obtain a new short lived token with less access than the + * original one. + * @return DbxRefreshResult which contains app key and app secret. + * @throws DbxOAuthException If refresh failed because of invalid refresh parameter or + * refresh token is invalid or revoked. + * @throws DbxException If refresh failed for general errors. + */ + public DbxRefreshResult refresh(DbxRequestConfig requestConfig, Collection scope) throws + DbxException { + return refresh(requestConfig, DbxHost.DEFAULT, scope); + } + + /** + * @return The json string containing all fields. + */ + @Override + public String toString() { + return Writer.writeToString(this); + } + + public static final JsonReader Reader = new JsonReader() + { + @Override + public final DbxCredential read(JsonParser parser) + throws IOException, JsonReadException + { + JsonLocation top = JsonReader.expectObjectStart(parser); + + String accessToken = null; + Long expiresAt = null; + String refreshToken = null; + String appKey = null; + String appSecret = null; + + while (parser.getCurrentToken() == JsonToken.FIELD_NAME) { + String fieldName = parser.getCurrentName(); + parser.nextToken(); + + try { + if (fieldName.equals("access_token")) { + accessToken = StringReader.readField(parser, fieldName, accessToken); + } + else if (fieldName.equals("expires_at")) { + expiresAt = Int64Reader.readField(parser, fieldName, expiresAt); + } + else if (fieldName.equals("refresh_token")) { + refreshToken = StringReader.readField(parser, fieldName, refreshToken); + } + else if (fieldName.equals("app_key")) { + appKey = StringReader.readField(parser, fieldName, appKey); + } + else if (fieldName.equals("app_secret")) { + appSecret = StringReader.readField(parser, fieldName, appSecret); + } + else { + // Unknown field. Skip over it. + JsonReader.skipValue(parser); + } + } + catch (JsonReadException ex) { + throw ex.addFieldContext(fieldName); + } + } + + JsonReader.expectObjectEnd(parser); + + if (accessToken == null) throw new JsonReadException("missing field \"access_token\"", top); + + return new DbxCredential(accessToken, expiresAt, refreshToken, appKey, appSecret); + } + }; + + public static final JsonWriter Writer = new JsonWriter() + { + @Override + public void write(DbxCredential credential, JsonGenerator g) throws IOException + { + g.writeStartObject(); + g.writeStringField("access_token", credential.accessToken); + if (credential.expiresAt != null) { + g.writeNumberField("expires_at", credential.expiresAt); + } + if (credential.refreshToken != null) { + g.writeStringField("refresh_token", credential.refreshToken); + } + if (credential.appKey != null) { + g.writeStringField("app_key", credential.appKey); + } + if (credential.appSecret != null) { + g.writeStringField("app_secret", credential.appSecret); + } + g.writeEndObject(); + } + }; +} diff --git a/core/src/main/java/com/dropbox/core/oauth/DbxOAuthError.java b/core/src/main/java/com/dropbox/core/oauth/DbxOAuthError.java new file mode 100644 index 000000000..a5a91ce32 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/oauth/DbxOAuthError.java @@ -0,0 +1,90 @@ +package com.dropbox.core.oauth; + +import com.dropbox.core.json.JsonReadException; +import com.dropbox.core.json.JsonReader; +import com.fasterxml.jackson.core.JsonLocation; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** + * + * This class provides deserialization for the error response returned from OAuth endpoint. + * + * @see https://tools.ietf.org/html/rfc6749#section-5.2 + */ +public class DbxOAuthError { + public final static String INVALID_REQUEST = "invalid_request"; + public final static String INVALID_GRANT = "invalid_grant"; + public final static String UNSUPPORTED_GRANT_TYPE = "unsupported_grant_type"; + public final static String UNKNOWN = "unknown"; + public final static Set ERRORS = new HashSet(Arrays.asList(INVALID_REQUEST, + INVALID_GRANT, UNSUPPORTED_GRANT_TYPE)); + + private final String error; + private final String errorDescription; + + public DbxOAuthError(String error, String errorDescription) { + if (ERRORS.contains(error)) { + this.error = error; + } else { + this.error = UNKNOWN; + } + + this.errorDescription = errorDescription; + } + + public String getError() { + return this.error; + } + + public String getErrorDescription() { + return this.errorDescription; + } + + public static final JsonReader Reader = new JsonReader() + { + @Override + public final DbxOAuthError read(JsonParser parser) + throws IOException, JsonReadException + { + JsonLocation top = JsonReader.expectObjectStart(parser); + + String error = null; + String errorDescription = null; + + while (parser.getCurrentToken() == JsonToken.FIELD_NAME) { + String fieldName = parser.getCurrentName(); + parser.nextToken(); + + try { + if (fieldName.equals("error")) { + error = StringReader.readField(parser, fieldName, error); + } + else if (fieldName.equals("error_description")) { + errorDescription = StringReader.readField(parser, fieldName, errorDescription); + } + else { + // Unknown field. Skip over it. + JsonReader.skipValue(parser); + } + } + catch (JsonReadException ex) { + throw ex.addFieldContext(fieldName); + } + } + + JsonReader.expectObjectEnd(parser); + + if (error == null) { + throw new JsonReadException("missing field \"error\"", top); + } + + return new DbxOAuthError(error, errorDescription); + } + }; +} diff --git a/core/src/main/java/com/dropbox/core/oauth/DbxOAuthException.java b/core/src/main/java/com/dropbox/core/oauth/DbxOAuthException.java new file mode 100644 index 000000000..5056126ed --- /dev/null +++ b/core/src/main/java/com/dropbox/core/oauth/DbxOAuthException.java @@ -0,0 +1,25 @@ +package com.dropbox.core.oauth; + +import com.dropbox.core.DbxException; + +/** + * + * This exception means OAuth endpoint has thrown error. + */ +public class DbxOAuthException extends DbxException { + private static final long serialVersionUID = 0L; + private final DbxOAuthError dbxOAuthError; + + public DbxOAuthException(String requestId, DbxOAuthError dbxOAuthError) { + super(requestId, dbxOAuthError.getErrorDescription()); + this.dbxOAuthError = dbxOAuthError; + } + + /** + * Get the wrapped {@link DbxOAuthError} to tell what error has been thrown. + * @return {@link DbxOAuthError} contains what error has been thrown. + */ + public DbxOAuthError getDbxOAuthError() { + return dbxOAuthError; + } +} diff --git a/core/src/main/java/com/dropbox/core/oauth/DbxRefreshResult.java b/core/src/main/java/com/dropbox/core/oauth/DbxRefreshResult.java new file mode 100644 index 000000000..0539fb0f3 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/oauth/DbxRefreshResult.java @@ -0,0 +1,135 @@ +package com.dropbox.core.oauth; + +import com.dropbox.core.DbxAuthFinish; +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.json.JsonReadException; +import com.dropbox.core.json.JsonReader; +import com.fasterxml.jackson.core.JsonLocation; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonToken; + +import java.io.IOException; + +/*>>> import checkers.nullness.quals.NonNull; */ + +/** + + * This is the return value of {@link DbxCredential#refresh(DbxRequestConfig)}. It contains new + * access token and expiration time. + */ +public class DbxRefreshResult { + private final String accessToken; + private final long expiresIn; /* in seconds */ + private long issueTime; /* in milliseconds */ + private String scope; + + /** + * @param accessToken OAuth access token. + * @param expiresIn Duration time of accessToken in second. + * was passed + */ + public DbxRefreshResult(/*@NotNull*/String accessToken, long expiresIn) { + this(accessToken, expiresIn, null); + } + + /** + * @param accessToken OAuth access token. + * @param expiresIn Duration time of accessToken in second. + * was passed + */ + public DbxRefreshResult(/*@NotNull*/String accessToken, long expiresIn, String scope) { + if (accessToken == null) { + throw new IllegalArgumentException("access token can't be null."); + } + this.accessToken = accessToken; + this.expiresIn = expiresIn; + this.issueTime = System.currentTimeMillis(); + this.scope = scope; + } + + /** + * Returns an access token that can be used to make Dropbox API calls. Pass this in to + * the {@link com.dropbox.core.v2.DbxClientV2} constructor. + * + * @return OAuth access token used for authorization with Dropbox servers + */ + public String getAccessToken() { + return accessToken; + } + + /** + * Returns the time when {@link DbxAuthFinish#accessToken} expires in millisecond. If null then + * it won't expire. Pass this in to the {@link com.dropbox.core.v2.DbxClientV2} constructor. + * + * @return OAuth access token used for authorization with Dropbox servers + */ + public Long getExpiresAt() { + return issueTime + expiresIn * 1000; + } + + /** + * @return If you specified a subset of original scope in refresh call, this value shows what + * permissions the new short lived token has. + */ + public String getScope() { + return scope; + } + + /** + * Setting issue time should only be used to copy current object. + * */ + void setIssueTime(long issueTime) { + this.issueTime = issueTime; + } + + /** + * For JSON parsing. + */ + public static final JsonReader Reader = new JsonReader() { + public DbxRefreshResult read(JsonParser parser) throws IOException, JsonReadException { + JsonLocation top = JsonReader.expectObjectStart(parser); + + String tokenType = null; + String accessToken = null; + Long expiresIn = null; + String scope = null; + + while (parser.getCurrentToken() == JsonToken.FIELD_NAME) { + String fieldName = parser.getCurrentName(); + JsonReader.nextToken(parser); + + try { + if (fieldName.equals("token_type")) { + tokenType = DbxAuthFinish.BearerTokenTypeReader.readField(parser, fieldName, tokenType); + } + else if (fieldName.equals("access_token")) { + accessToken = DbxAuthFinish.AccessTokenReader.readField(parser, fieldName, accessToken); + } + else if (fieldName.equals("expires_in")) { + expiresIn = JsonReader.UInt64Reader.readField(parser, fieldName, expiresIn); + } + else if (fieldName.equals("scope")) { + scope = JsonReader.StringReader.readField(parser, fieldName, scope); + } + else { + // Unknown field. Skip over it. + JsonReader.skipValue(parser); + } + } + catch (JsonReadException ex) { + throw ex.addFieldContext(fieldName); + } + } + + JsonReader.expectObjectEnd(parser); + + if (tokenType == null) throw new JsonReadException("missing field \"token_type\"", top); + if (accessToken == null) throw new JsonReadException("missing field \"access_token\"", top); + if (expiresIn == null) { + throw new JsonReadException("missing field \"expires_in\"", top); + } + + return new DbxRefreshResult(accessToken, expiresIn, scope); + } + }; +} diff --git a/src/main/java/com/dropbox/core/stone/CompositeSerializer.java b/core/src/main/java/com/dropbox/core/stone/CompositeSerializer.java similarity index 100% rename from src/main/java/com/dropbox/core/stone/CompositeSerializer.java rename to core/src/main/java/com/dropbox/core/stone/CompositeSerializer.java diff --git a/core/src/main/java/com/dropbox/core/stone/StoneDeserializerLogger.java b/core/src/main/java/com/dropbox/core/stone/StoneDeserializerLogger.java new file mode 100644 index 000000000..c7593ba71 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/stone/StoneDeserializerLogger.java @@ -0,0 +1,26 @@ +package com.dropbox.core.stone; + +import java.util.HashMap; +import java.util.Map; + +public class StoneDeserializerLogger { + public static Map, LoggerCallback> LOGGER_MAP = + new HashMap, LoggerCallback>(); + + public static void registerCallback(Class c, LoggerCallback callback) { + LOGGER_MAP.put(c, callback); + } + + public static void log(Object value, String multiLineLog) { + Class c = value.getClass(); + + if (LOGGER_MAP.containsKey(c)) { + LoggerCallback callback = LOGGER_MAP.get(c); + callback.invoke(value, multiLineLog); + } + } + + public interface LoggerCallback { + public void invoke(Object value, String multiLineLog); + } +} diff --git a/src/main/java/com/dropbox/core/stone/StoneSerializer.java b/core/src/main/java/com/dropbox/core/stone/StoneSerializer.java similarity index 99% rename from src/main/java/com/dropbox/core/stone/StoneSerializer.java rename to core/src/main/java/com/dropbox/core/stone/StoneSerializer.java index eaff8d414..8cd946e82 100644 --- a/src/main/java/com/dropbox/core/stone/StoneSerializer.java +++ b/core/src/main/java/com/dropbox/core/stone/StoneSerializer.java @@ -129,6 +129,7 @@ protected static void skipFields(JsonParser p) throws IOException, JsonParseExce while (p.getCurrentToken() != null && !p.getCurrentToken().isStructEnd()) { if (p.getCurrentToken().isStructStart()) { p.skipChildren(); + p.nextToken(); } else if (p.getCurrentToken() == JsonToken.FIELD_NAME) { p.nextToken(); } else if (p.getCurrentToken().isScalarValue()) { diff --git a/src/main/java/com/dropbox/core/stone/StoneSerializers.java b/core/src/main/java/com/dropbox/core/stone/StoneSerializers.java similarity index 97% rename from src/main/java/com/dropbox/core/stone/StoneSerializers.java rename to core/src/main/java/com/dropbox/core/stone/StoneSerializers.java index a5b0d9193..e1bca5538 100644 --- a/src/main/java/com/dropbox/core/stone/StoneSerializers.java +++ b/core/src/main/java/com/dropbox/core/stone/StoneSerializers.java @@ -44,7 +44,7 @@ public static StoneSerializer boolean_() { return BooleanSerializer.INSTANCE; } - public static StoneSerializer binary() { + public static StoneSerializer bytes() { return ByteArraySerializer.INSTANCE; } @@ -334,7 +334,12 @@ public MapSerializer(StoneSerializer underlying) { @Override public void serialize(Map value, JsonGenerator g) throws IOException, JsonGenerationException { - g.writeString(value.toString()); + g.writeStartObject(); + for (Map.Entry e : value.entrySet()) { + g.writeFieldName(e.getKey()); + g.writeRawValue(underlying.serialize(e.getValue())); + } + g.writeEndObject(); } @Override diff --git a/src/main/java/com/dropbox/core/stone/StructSerializer.java b/core/src/main/java/com/dropbox/core/stone/StructSerializer.java similarity index 100% rename from src/main/java/com/dropbox/core/stone/StructSerializer.java rename to core/src/main/java/com/dropbox/core/stone/StructSerializer.java diff --git a/src/main/java/com/dropbox/core/stone/UnionSerializer.java b/core/src/main/java/com/dropbox/core/stone/UnionSerializer.java similarity index 100% rename from src/main/java/com/dropbox/core/stone/UnionSerializer.java rename to core/src/main/java/com/dropbox/core/stone/UnionSerializer.java diff --git a/src/main/java/com/dropbox/core/stone/Util.java b/core/src/main/java/com/dropbox/core/stone/Util.java similarity index 100% rename from src/main/java/com/dropbox/core/stone/Util.java rename to core/src/main/java/com/dropbox/core/stone/Util.java diff --git a/src/main/java/com/dropbox/core/util/Collector.java b/core/src/main/java/com/dropbox/core/util/Collector.java similarity index 100% rename from src/main/java/com/dropbox/core/util/Collector.java rename to core/src/main/java/com/dropbox/core/util/Collector.java diff --git a/src/main/java/com/dropbox/core/util/CountingOutputStream.java b/core/src/main/java/com/dropbox/core/util/CountingOutputStream.java similarity index 100% rename from src/main/java/com/dropbox/core/util/CountingOutputStream.java rename to core/src/main/java/com/dropbox/core/util/CountingOutputStream.java diff --git a/src/main/java/com/dropbox/core/util/DumpWriter.java b/core/src/main/java/com/dropbox/core/util/DumpWriter.java similarity index 100% rename from src/main/java/com/dropbox/core/util/DumpWriter.java rename to core/src/main/java/com/dropbox/core/util/DumpWriter.java diff --git a/src/main/java/com/dropbox/core/util/Dumpable.java b/core/src/main/java/com/dropbox/core/util/Dumpable.java similarity index 100% rename from src/main/java/com/dropbox/core/util/Dumpable.java rename to core/src/main/java/com/dropbox/core/util/Dumpable.java diff --git a/src/main/java/com/dropbox/core/util/IOUtil.java b/core/src/main/java/com/dropbox/core/util/IOUtil.java similarity index 97% rename from src/main/java/com/dropbox/core/util/IOUtil.java rename to core/src/main/java/com/dropbox/core/util/IOUtil.java index 35f2d3dfd..81166ac81 100644 --- a/src/main/java/com/dropbox/core/util/IOUtil.java +++ b/core/src/main/java/com/dropbox/core/util/IOUtil.java @@ -126,7 +126,9 @@ public void copyStreamToFile(InputStream in, File fout, int copyBufferSize) thro */ public static void closeInput(InputStream in) { try { - in.close(); + if (in != null) { + in.close(); + } } catch (IOException ex) { // Ignore. We're done reading from it so we don't care if there are input errors. } @@ -137,7 +139,9 @@ public static void closeInput(InputStream in) { */ public static void closeInput(Reader in) { try { - in.close(); + if (in != null) { + in.close(); + } } catch (IOException ex) { // Ignore. We're done reading from it so we don't care if there are input errors. } @@ -291,4 +295,8 @@ public long skip(long n) throws IOException { return skipped; } } + + public interface ProgressListener { + void onProgress(long bytesWritten); + } } diff --git a/src/main/java/com/dropbox/core/util/LangUtil.java b/core/src/main/java/com/dropbox/core/util/LangUtil.java similarity index 100% rename from src/main/java/com/dropbox/core/util/LangUtil.java rename to core/src/main/java/com/dropbox/core/util/LangUtil.java diff --git a/src/main/java/com/dropbox/core/util/Maybe.java b/core/src/main/java/com/dropbox/core/util/Maybe.java similarity index 100% rename from src/main/java/com/dropbox/core/util/Maybe.java rename to core/src/main/java/com/dropbox/core/util/Maybe.java diff --git a/core/src/main/java/com/dropbox/core/util/ProgressOutputStream.java b/core/src/main/java/com/dropbox/core/util/ProgressOutputStream.java new file mode 100644 index 000000000..860cf5a40 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/util/ProgressOutputStream.java @@ -0,0 +1,59 @@ +package com.dropbox.core.util; + +import java.io.IOException; +import java.io.OutputStream; + +public class ProgressOutputStream extends OutputStream { + private long completed; + private OutputStream underlying; + private IOUtil.ProgressListener listener; + + public ProgressOutputStream(OutputStream underlying) { + this.underlying = underlying; + this.completed = 0; + } + + public ProgressOutputStream(OutputStream underlying, IOUtil.ProgressListener listener) { + this(underlying); + this.listener = listener; + } + + public void setListener(IOUtil.ProgressListener listener) { + this.listener = listener; + } + + @Override + public void write(byte[] data, int off, int len) throws IOException { + this.underlying.write(data, off, len); + track(len); + } + + @Override + public void write(byte[] data) throws IOException { + this.underlying.write(data); + track(data.length); + } + + @Override + public void write(int c) throws IOException { + this.underlying.write(c); + track(1); + } + + @Override + public void flush() throws IOException { + this.underlying.flush(); + } + + public void close() throws IOException { + this.underlying.close(); + } + + + private void track(int len) { + this.completed += len; + if (listener != null) { + listener.onProgress(completed); + } + } +} diff --git a/src/main/java/com/dropbox/core/util/StringUtil.java b/core/src/main/java/com/dropbox/core/util/StringUtil.java similarity index 87% rename from src/main/java/com/dropbox/core/util/StringUtil.java rename to core/src/main/java/com/dropbox/core/util/StringUtil.java index 1cc3211eb..dce1e913d 100644 --- a/src/main/java/com/dropbox/core/util/StringUtil.java +++ b/core/src/main/java/com/dropbox/core/util/StringUtil.java @@ -8,7 +8,8 @@ import java.nio.charset.CharacterCodingException; import java.nio.charset.Charset; import java.nio.charset.CharsetDecoder; -import java.nio.charset.CharsetEncoder; +import java.util.Arrays; +import java.util.Collection; public class StringUtil { @@ -83,8 +84,27 @@ public static String javaQuotedLiteral(String value) return b.toString(); } + public static String javaQuotedLiterals(String[] value) { + return javaQuotedLiterals(Arrays.asList(value)); + } + + public static String javaQuotedLiterals(Iterable value) { + StringBuilder b = new StringBuilder(); + String sep = ""; + for (String element : value) { + b.append(sep); + sep = ", "; + b.append(javaQuotedLiteral(element)); + } + return b.toString(); + } + /** Shorthand for {@link #javaQuotedLiteral}. */ public static String jq(String value) { return javaQuotedLiteral(value); } + /** Shorthand for {@link #javaQuotedLiterals}. */ + public static String jq(String[] value) { return javaQuotedLiterals(value); } + /** Shorthand for {@link #javaQuotedLiterals}. */ + public static String jq(Iterable value) { return javaQuotedLiterals(value); } public static String binaryToHex(byte[] data) { @@ -213,4 +233,17 @@ else if (remaining == 2) { return buf.toString(); } + + public static String join(Collection strings, String delimiter) { + StringBuilder sb = new StringBuilder(); + int i = 0; + for (String s: strings) { + if (i > 0) { + sb.append(delimiter); + } + sb.append(s); + i++; + } + return sb.toString(); + } } diff --git a/src/main/java/com/dropbox/core/v1/DbxAccountInfo.java b/core/src/main/java/com/dropbox/core/v1/DbxAccountInfo.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxAccountInfo.java rename to core/src/main/java/com/dropbox/core/v1/DbxAccountInfo.java diff --git a/src/main/java/com/dropbox/core/v1/DbxClientV1.java b/core/src/main/java/com/dropbox/core/v1/DbxClientV1.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxClientV1.java rename to core/src/main/java/com/dropbox/core/v1/DbxClientV1.java diff --git a/src/main/java/com/dropbox/core/v1/DbxDelta.java b/core/src/main/java/com/dropbox/core/v1/DbxDelta.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxDelta.java rename to core/src/main/java/com/dropbox/core/v1/DbxDelta.java diff --git a/src/main/java/com/dropbox/core/v1/DbxDeltaC.java b/core/src/main/java/com/dropbox/core/v1/DbxDeltaC.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxDeltaC.java rename to core/src/main/java/com/dropbox/core/v1/DbxDeltaC.java diff --git a/src/main/java/com/dropbox/core/v1/DbxEntry.java b/core/src/main/java/com/dropbox/core/v1/DbxEntry.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxEntry.java rename to core/src/main/java/com/dropbox/core/v1/DbxEntry.java diff --git a/src/main/java/com/dropbox/core/v1/DbxLongpollDeltaResult.java b/core/src/main/java/com/dropbox/core/v1/DbxLongpollDeltaResult.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxLongpollDeltaResult.java rename to core/src/main/java/com/dropbox/core/v1/DbxLongpollDeltaResult.java diff --git a/src/main/java/com/dropbox/core/v1/DbxPathV1.java b/core/src/main/java/com/dropbox/core/v1/DbxPathV1.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxPathV1.java rename to core/src/main/java/com/dropbox/core/v1/DbxPathV1.java diff --git a/src/main/java/com/dropbox/core/v1/DbxThumbnailFormat.java b/core/src/main/java/com/dropbox/core/v1/DbxThumbnailFormat.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxThumbnailFormat.java rename to core/src/main/java/com/dropbox/core/v1/DbxThumbnailFormat.java diff --git a/src/main/java/com/dropbox/core/v1/DbxThumbnailSize.java b/core/src/main/java/com/dropbox/core/v1/DbxThumbnailSize.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxThumbnailSize.java rename to core/src/main/java/com/dropbox/core/v1/DbxThumbnailSize.java diff --git a/src/main/java/com/dropbox/core/v1/DbxUrlWithExpiration.java b/core/src/main/java/com/dropbox/core/v1/DbxUrlWithExpiration.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxUrlWithExpiration.java rename to core/src/main/java/com/dropbox/core/v1/DbxUrlWithExpiration.java diff --git a/src/main/java/com/dropbox/core/v1/DbxWriteMode.java b/core/src/main/java/com/dropbox/core/v1/DbxWriteMode.java similarity index 100% rename from src/main/java/com/dropbox/core/v1/DbxWriteMode.java rename to core/src/main/java/com/dropbox/core/v1/DbxWriteMode.java diff --git a/src/main/java/com/dropbox/core/v2/DbxAppClientV2.java b/core/src/main/java/com/dropbox/core/v2/DbxAppClientV2.java similarity index 82% rename from src/main/java/com/dropbox/core/v2/DbxAppClientV2.java rename to core/src/main/java/com/dropbox/core/v2/DbxAppClientV2.java index 4f1732717..2e04f6473 100644 --- a/src/main/java/com/dropbox/core/v2/DbxAppClientV2.java +++ b/core/src/main/java/com/dropbox/core/v2/DbxAppClientV2.java @@ -4,6 +4,8 @@ import com.dropbox.core.DbxRequestConfig; import com.dropbox.core.DbxRequestUtil; import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.oauth.DbxRefreshResult; +import com.dropbox.core.v2.common.PathRoot; import java.util.List; @@ -70,14 +72,36 @@ private static final class DbxAppRawClientV2 extends DbxRawClientV2 { private final String secret; private DbxAppRawClientV2(DbxRequestConfig requestConfig, String key, String secret, DbxHost host, String userId) { - super(requestConfig, host, userId); + super(requestConfig, host, userId, null); this.key = key; this.secret = secret; } + @Override + public DbxRefreshResult refreshAccessToken() { + //no op + return null; + } + + @Override + public boolean canRefreshAccessToken() { + return false; + } + + @Override + public boolean needsRefreshAccessToken() { + return false; + } + @Override protected void addAuthHeaders(List headers) { + DbxRequestUtil.removeAuthHeader(headers); DbxRequestUtil.addBasicAuthHeader(headers, key, secret); } + + @Override + protected DbxRawClientV2 withPathRoot(PathRoot pathRoot) { + throw new UnsupportedOperationException("App endpoints don't support Dropbox-API-Path-Root header."); + } } } diff --git a/core/src/main/java/com/dropbox/core/v2/DbxClientV2.java b/core/src/main/java/com/dropbox/core/v2/DbxClientV2.java new file mode 100644 index 000000000..680c33201 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/v2/DbxClientV2.java @@ -0,0 +1,204 @@ +package com.dropbox.core.v2; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxHost; +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.DbxRequestUtil; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.oauth.DbxCredential; +import com.dropbox.core.oauth.DbxOAuthException; +import com.dropbox.core.oauth.DbxRefreshResult; +import com.dropbox.core.v2.common.PathRoot; + +import java.util.List; + +/** + * Use this class to make remote calls to the Dropbox API user endpoints. User + * endpoints expose actions you can perform as a Dropbox user. You'll need an + * access token first, normally acquired by directing a Dropbox user through the + * auth flow using {@link com.dropbox.core.DbxWebAuth}. + * + *

This class has no mutable state, so it's thread safe as long as you pass + * in a thread safe {@link HttpRequestor} implementation.

+ */ +public class DbxClientV2 extends DbxClientV2Base { + + /** + * Creates a client that uses the given OAuth 2 access token as + * authorization when performing requests against the default Dropbox hosts. + * + * @param requestConfig Default attributes to use for each request + * @param accessToken OAuth 2 access token (that you got from Dropbox) that + * gives your app the ability to make Dropbox API calls. Typically + * acquired through {@link com.dropbox.core.DbxWebAuth} + */ + public DbxClientV2(DbxRequestConfig requestConfig, String accessToken) { + this(requestConfig, accessToken, DbxHost.DEFAULT, null); + } + + /** + * Creates a client that uses the given OAuth 2 access token as + * authorization when performing requests against the default Dropbox hosts. + * + * @param requestConfig Default attributes to use for each request + * @param accessToken OAuth 2 access token (that you got from Dropbox) that + * gives your app the ability to make Dropbox API calls. Typically + * acquired through {@link com.dropbox.core.DbxWebAuth} + * @param userId The user ID of the current Dropbox account. Used for + * multi-Dropbox account use-case. + */ + public DbxClientV2(DbxRequestConfig requestConfig, String accessToken, String userId) { + this(requestConfig, accessToken, DbxHost.DEFAULT, userId); + } + + /** + * + * + * Create a client that uses {@link com.dropbox.core.oauth.DbxCredential} instead of raw + * access token. The credential object include access token as well as refresh token, + * expiration time, app key and app secret. Using credential enables dropbox client to support + * short live token feature. + * + * @param requestConfig Default attributes to use for each request + * @param credential The credential object containing all the information for authentication. + */ + public DbxClientV2(DbxRequestConfig requestConfig, DbxCredential credential) { + this(requestConfig, credential, DbxHost.DEFAULT, null, null); + } + + /** + * Same as {@link #DbxClientV2(DbxRequestConfig, String)} except you can + * also set the hostnames of the Dropbox API servers. This is used in + * testing. You don't normally need to call this. + * + * @param requestConfig Default attributes to use for each request + * @param accessToken OAuth 2 access token (that you got from Dropbox) that + * gives your app the ability to make Dropbox API calls. Typically + * acquired through {@link com.dropbox.core.DbxWebAuth} + * @param host Dropbox hosts to send requests to (used for mocking and + * testing) + */ + public DbxClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost host) { + this(requestConfig, accessToken, host, null); + } + + /** + * Same as {@link #DbxClientV2(DbxRequestConfig, String, DbxHost)} except you can + * also set the userId for multiple Dropbox accounts. + * + * @param requestConfig Default attributes to use for each request + * @param accessToken OAuth 2 access token (that you got from Dropbox) that + * gives your app the ability to make Dropbox API calls. Typically + * acquired through {@link com.dropbox.core.DbxWebAuth} + * @param host Dropbox hosts to send requests to (used for mocking and + * testing) + * @param userId The user ID of the current Dropbox account. Used for multi-Dropbox + * account use-case. + */ + public DbxClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost host, String userId) { + this(requestConfig, new DbxCredential(accessToken), host, userId, null); + } + + private DbxClientV2( + DbxRequestConfig requestConfig, + DbxCredential credential, + DbxHost host, + String userId, + PathRoot pathRoot) { + super(new DbxUserRawClientV2(requestConfig, credential, host, userId, pathRoot)); + } + + /** + * For internal use only. + * + *

Used by other clients to provide functionality like DbxTeamClientV2.asMember(..) + * + * @param client Raw v2 client ot use for issuing requests + */ + DbxClientV2(DbxRawClientV2 client) { + super(client); + } + + /** + * Returns a new {@link DbxClientV2} that performs requests against Dropbox API + * user endpoints relative to a namespace without including the namespace as + * part of the path variable for every request. + * (https://www.dropbox.com/developers/reference/namespace-guide#pathrootmodes). + * + *

This method performs no validation of the namespace ID.

+ * + * @param pathRoot the path root for this client, never {@code null}. + * + * @return Dropbox client that issues requests with Dropbox-API-Path-Root header. + * + * @throws IllegalArgumentException If {@code pathRoot} is {@code null} + */ + public DbxClientV2 withPathRoot(PathRoot pathRoot) { + if (pathRoot == null) { + throw new IllegalArgumentException("'pathRoot' should not be null"); + } + return new DbxClientV2(_client.withPathRoot(pathRoot)); + } + + /** + * + * + * Refresh the access token inside {@link DbxCredential}. It has the same behavior as + * {@link DbxCredential#refresh(DbxRequestConfig)}. + * @return The result contains new short-live access token and expiration time. + * @throws DbxOAuthException If refresh failed because of invalid parameter or invalid refresh + * token. + * @throws DbxException If refresh failed before of general problems like network issue. + */ + public DbxRefreshResult refreshAccessToken() throws DbxException { + return this._client.refreshAccessToken(); + } + + /** + * {@link DbxRawClientV2} raw client that adds user OAuth2 auth headers to all requests. + */ + private static final class DbxUserRawClientV2 extends DbxRawClientV2 { + private final DbxCredential credential; + + DbxUserRawClientV2(DbxRequestConfig requestConfig, DbxCredential credential, DbxHost host, + String userId, PathRoot pathRoot) { + super(requestConfig, host, userId, pathRoot); + + if (credential == null) throw new NullPointerException("credential"); + this.credential = credential; + } + + @Override + public DbxRefreshResult refreshAccessToken() throws DbxException { + credential.refresh(this.getRequestConfig()); + return new DbxRefreshResult(credential.getAccessToken(), (credential.getExpiresAt() - System.currentTimeMillis())/1000); + } + + @Override + public boolean canRefreshAccessToken() { + return credential.getRefreshToken() != null; + } + + @Override + public boolean needsRefreshAccessToken() { + return canRefreshAccessToken() && credential.aboutToExpire(); + } + + @Override + protected void addAuthHeaders(List headers) { + DbxRequestUtil.removeAuthHeader(headers); + DbxRequestUtil.addAuthHeader(headers, credential.getAccessToken()); + } + + @Override + protected DbxRawClientV2 withPathRoot(PathRoot pathRoot) { + return new DbxUserRawClientV2( + this.getRequestConfig(), + this.credential, + this.getHost(), + this.getUserId(), + pathRoot + ); + } + } +} diff --git a/src/main/java/com/dropbox/core/v2/DbxDownloadStyleBuilder.java b/core/src/main/java/com/dropbox/core/v2/DbxDownloadStyleBuilder.java similarity index 100% rename from src/main/java/com/dropbox/core/v2/DbxDownloadStyleBuilder.java rename to core/src/main/java/com/dropbox/core/v2/DbxDownloadStyleBuilder.java diff --git a/src/main/java/com/dropbox/core/v2/DbxPathV2.java b/core/src/main/java/com/dropbox/core/v2/DbxPathV2.java similarity index 100% rename from src/main/java/com/dropbox/core/v2/DbxPathV2.java rename to core/src/main/java/com/dropbox/core/v2/DbxPathV2.java diff --git a/src/main/java/com/dropbox/core/v2/DbxRawClientV2.java b/core/src/main/java/com/dropbox/core/v2/DbxRawClientV2.java similarity index 79% rename from src/main/java/com/dropbox/core/v2/DbxRawClientV2.java rename to core/src/main/java/com/dropbox/core/v2/DbxRawClientV2.java index 7e457330b..3a770df3f 100644 --- a/src/main/java/com/dropbox/core/v2/DbxRawClientV2.java +++ b/core/src/main/java/com/dropbox/core/v2/DbxRawClientV2.java @@ -1,6 +1,7 @@ package com.dropbox.core.v2; import static com.dropbox.core.DbxRequestUtil.addUserLocaleHeader; +import static com.dropbox.core.DbxRequestUtil.addPathRootHeader; import com.dropbox.core.BadResponseException; import com.dropbox.core.DbxDownloader; @@ -8,25 +9,29 @@ import com.dropbox.core.DbxHost; import com.dropbox.core.DbxRequestConfig; import com.dropbox.core.DbxRequestUtil; -import com.dropbox.core.DbxUploader; import com.dropbox.core.DbxWebAuth; import com.dropbox.core.DbxWrappedException; +import com.dropbox.core.InvalidAccessTokenException; import com.dropbox.core.NetworkIOException; import com.dropbox.core.RetryException; +import com.dropbox.core.oauth.DbxOAuthError; +import com.dropbox.core.oauth.DbxOAuthException; +import com.dropbox.core.oauth.DbxRefreshResult; import com.dropbox.core.stone.StoneSerializer; import com.dropbox.core.http.HttpRequestor; import com.dropbox.core.util.LangUtil; +import com.dropbox.core.v2.auth.AuthError; +import com.dropbox.core.v2.common.PathRoot; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.StringWriter; import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; import java.util.List; import java.util.Random; @@ -56,19 +61,23 @@ public abstract class DbxRawClientV2 { /* for multiple Dropbox account use-case */ private final String userId; + private final PathRoot pathRoot; + /** * @param requestConfig Configuration controlling How requests should be issued to Dropbox * servers. * @param host Dropbox server hostnames (primarily for internal use) * @param userId The user ID of the current Dropbox account. Used for multi-Dropbox account use-case. + * @param pathRoot We will send this value in Dropbox-API-Path-Root header if it presents. */ - protected DbxRawClientV2(DbxRequestConfig requestConfig, DbxHost host, String userId) { + protected DbxRawClientV2(DbxRequestConfig requestConfig, DbxHost host, String userId, PathRoot pathRoot) { if (requestConfig == null) throw new NullPointerException("requestConfig"); if (host == null) throw new NullPointerException("host"); this.requestConfig = requestConfig; this.host = host; this.userId = userId; + this.pathRoot = pathRoot; } /** @@ -78,6 +87,31 @@ protected DbxRawClientV2(DbxRequestConfig requestConfig, DbxHost host, String us */ protected abstract void addAuthHeaders(List headers); + public abstract DbxRefreshResult refreshAccessToken() throws DbxException; + + protected abstract boolean canRefreshAccessToken(); + + protected abstract boolean needsRefreshAccessToken(); + + private void refreshAccessTokenIfNeeded() throws DbxException { + if (needsRefreshAccessToken()) { + try { + refreshAccessToken(); + } catch (DbxOAuthException e) { + if (!DbxOAuthError.INVALID_GRANT.equals(e.getDbxOAuthError().getError())) { + throw e; + } + } + } + } + + /** + * Clone a new DbxRawClientV2 with Dropbox-API-Path-Root header. + * + * @param pathRoot {@code pathRoot} object containing the content for Dropbox-API-Path-Root header. + */ + protected abstract DbxRawClientV2 withPathRoot(PathRoot pathRoot); + public ResT rpcStyle(final String host, final String path, final ArgT arg, @@ -90,20 +124,25 @@ public ResT rpcStyle(final String host, final byte [] body = writeAsBytes(argSerializer, arg); final List headers = new ArrayList(); if (!noAuth) { - addAuthHeaders(headers); + refreshAccessTokenIfNeeded(); } if (!this.host.getNotify().equals(host)) { // TODO(krieb): fix this ugliness addUserLocaleHeader(headers, requestConfig); + addPathRootHeader(headers, this.pathRoot); } headers.add(new HttpRequestor.Header("Content-Type", "application/json; charset=utf-8")); - return executeRetriable(requestConfig.getMaxRetries(), new RetriableExecution () { + return executeRetriableWithRefresh(requestConfig.getMaxRetries(), new RetriableExecution () { private String userIdAnon; @Override public ResT execute() throws DbxWrappedException, DbxException { + if (!noAuth) { + addAuthHeaders(headers); + } + HttpRequestor.Response response = DbxRequestUtil.startPostRaw(requestConfig, USER_AGENT_ID, host, path, body, headers); try { switch (response.getStatusCode()) { @@ -141,21 +180,26 @@ public DbxDownloader downloadStyle(final String host, final List headers = new ArrayList(extraHeaders); if (!noAuth) { - addAuthHeaders(headers); + refreshAccessTokenIfNeeded(); } addUserLocaleHeader(headers, requestConfig); + addPathRootHeader(headers, this.pathRoot); headers.add(new HttpRequestor.Header("Dropbox-API-Arg", headerSafeJson(argSerializer, arg))); headers.add(new HttpRequestor.Header("Content-Type", "")); final byte[] body = new byte[0]; - return executeRetriable(requestConfig.getMaxRetries(), new RetriableExecution>() { + return executeRetriableWithRefresh(requestConfig.getMaxRetries(), new RetriableExecution>() { private String userIdAnon; @Override public DbxDownloader execute() throws DbxWrappedException, DbxException { + if (!noAuth) { + addAuthHeaders(headers); + } HttpRequestor.Response response = DbxRequestUtil.startPostRaw(requestConfig, USER_AGENT_ID, host, path, body, headers); String requestId = DbxRequestUtil.getRequestId(response); + String contentType = DbxRequestUtil.getContentType(response); try { switch (response.getStatusCode()) { @@ -175,7 +219,7 @@ public DbxDownloader execute() throws DbxWrappedException, DbxException { } ResT result = responseSerializer.deserialize(resultHeader); - return new DbxDownloader(result, response.getBody()); + return new DbxDownloader(result, response.getBody(), contentType); case 409: throw DbxWrappedException.fromResponse(errorSerializer, response, userIdAnon); default: @@ -230,14 +274,16 @@ public HttpRequestor.Uploader uploadStyle(String host, String uri = DbxRequestUtil.buildUri(host, path); List headers = new ArrayList(); if (!noAuth) { + refreshAccessTokenIfNeeded(); addAuthHeaders(headers); } addUserLocaleHeader(headers, requestConfig); + addPathRootHeader(headers, this.pathRoot); headers.add(new HttpRequestor.Header("Content-Type", "application/octet-stream")); headers = DbxRequestUtil.addUserAgentHeader(headers, requestConfig, USER_AGENT_ID); headers.add(new HttpRequestor.Header("Dropbox-API-Arg", headerSafeJson(argSerializer, arg))); try { - return requestConfig.getHttpRequestor().startPost(uri, headers); + return requestConfig.getHttpRequestor().startPostInStreamingMode(uri, headers); } catch (IOException ex) { throw new NetworkIOException(ex); @@ -299,6 +345,31 @@ private static T executeRetriable(int maxRetries, RetriableExecution exec } } + private T executeRetriableWithRefresh(int maxRetries, RetriableExecution + execution) throws DbxWrappedException, DbxException { + try { + return executeRetriable(maxRetries, execution); + } catch (InvalidAccessTokenException ex) { + if (ex.getMessage() == null) { + // Java built-in URLConnection would terminate 401 response before receiving body + // in streaming mode. Give up. + throw ex; + } + + AuthError authError = ex.getAuthError(); + + if (AuthError.EXPIRED_ACCESS_TOKEN.equals(authError) && canRefreshAccessToken()) { + // retry with new access token. + refreshAccessToken(); + return executeRetriable(maxRetries, execution); + } else { + // Doesn't need refresh. + throw ex; + } + } + + } + private static void sleepQuietlyWithJitter(long millis) { // add a small jitter to the sleep to avoid stampeding herd problem, especially when millis // is 0. diff --git a/core/src/main/java/com/dropbox/core/v2/DbxTeamClientV2.java b/core/src/main/java/com/dropbox/core/v2/DbxTeamClientV2.java new file mode 100644 index 000000000..f2c361eae --- /dev/null +++ b/core/src/main/java/com/dropbox/core/v2/DbxTeamClientV2.java @@ -0,0 +1,255 @@ +package com.dropbox.core.v2; + +import com.dropbox.core.DbxException; +import com.dropbox.core.DbxHost; +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.DbxRequestUtil; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.oauth.DbxCredential; +import com.dropbox.core.oauth.DbxOAuthException; +import com.dropbox.core.oauth.DbxRefreshResult; +import com.dropbox.core.v2.common.PathRoot; + +import java.util.List; + +/** + * Use this class to make remote calls to the Dropbox API team endpoints. Team + * endpoints expose actions you can perform on or for a Dropbox team. You'll + * need a team access token first, normally acquired by directing a Dropbox + * Business team administrator through the auth flow using {@link + * com.dropbox.core.DbxWebAuth}. + * + *

Team clients can access user endpoints by using the {@link #asMember} + * method. This allows team clients to perform actions as a particular team + * member.

+ * + *

This class has no mutable state, so it's thread safe as long as you pass + * in a thread safe {@link HttpRequestor} implementation.

+ */ +public class DbxTeamClientV2 extends DbxTeamClientV2Base { + private final DbxCredential credential; + + /** + * Creates a client that uses the given OAuth 2 access token as + * authorization when performing requests against the default Dropbox hosts. + * + * @param requestConfig Default attributes to use for each request + * @param accessToken OAuth 2 access token (that you got from Dropbox) that + * gives your app the ability to make Dropbox API calls. Typically + * acquired through {@link com.dropbox.core.DbxWebAuth} + */ + public DbxTeamClientV2(DbxRequestConfig requestConfig, String accessToken) { + this(requestConfig, accessToken, DbxHost.DEFAULT); + } + + /** + * Same as {@link #DbxTeamClientV2(DbxRequestConfig, String)} except you can + * also set the hostnames of the Dropbox API servers. This is used in + * testing. You don't normally need to call this. + * + * @param requestConfig Default attributes to use for each request + * @param accessToken OAuth 2 access token (that you got from Dropbox) that + * gives your app the ability to make Dropbox API calls. Typically + * acquired through {@link com.dropbox.core.DbxWebAuth} + * @param host Dropbox hosts to send requests to (used for mocking and + * testing) + */ + public DbxTeamClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost host) { + this(requestConfig, accessToken, host, null); + } + + /** + * + * + * Create a client that uses {@link com.dropbox.core.oauth.DbxCredential} instead of raw + * access token. The credential object include access token as well as refresh token, + * expiration time, app key and app secret. Using credential enables dropbox client to support + * short live token feature. + * + * @param requestConfig Default attributes to use for each request + * @param credential The credential object containing all the information for authentication. + */ + public DbxTeamClientV2(DbxRequestConfig requestConfig, DbxCredential credential) { + this(requestConfig, credential, DbxHost.DEFAULT, null); + } + + /** + * Same as {@link #DbxTeamClientV2(DbxRequestConfig, String, DbxHost)} except you can + * also set the userId for multiple Dropbox accounts. + * + * @param requestConfig Default attributes to use for each request + * @param accessToken OAuth 2 access token (that you got from Dropbox) that + * gives your app the ability to make Dropbox API calls. Typically + * acquired through {@link com.dropbox.core.DbxWebAuth} + * @param host Dropbox hosts to send requests to (used for mocking and + * testing) + * @param userId The user ID of the current Dropbox account. Used for + * multi-Dropbox account use-case. + */ + public DbxTeamClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost host, String userId) { + this(requestConfig, new DbxCredential(accessToken), host, userId); + } + + /** + * + * + * Same as {@link #DbxTeamClientV2(DbxRequestConfig, DbxCredential)} except you can set host + * and userId. + * + * @param requestConfig Default attributes to use for each request + * @param credential The credential object containing all the information for authentication. + * @param host Dropbox hosts to send requests to (used for mocking and testing) + * @param userId The user ID of the current Dropbox account. Used for + * multi-Dropbox account use-case. + */ + public DbxTeamClientV2(DbxRequestConfig requestConfig, DbxCredential credential, DbxHost host, + String userId) { + super(new DbxTeamRawClientV2(requestConfig, credential, host, userId, null, null, null)); + this.credential = credential; + } + + /** + * + * + * Refresh the access token inside {@link DbxCredential}. It has the same behavior as + * {@link DbxCredential#refresh(DbxRequestConfig)}. + * @return The result contains new short-live access token and expiration time. + * @throws DbxOAuthException If refresh failed because of invalid parameter or invalid refresh + * token. + * @throws DbxException If refresh failed before of general problems like network issue. + */ + public DbxRefreshResult refreshAccessToken() throws DbxException { + return this._client.refreshAccessToken(); + } + + /** + * Returns a {@link DbxClientV2} that performs requests against Dropbox API + * user endpoints as the given team member. + * + *

This method performs no validation of the team member ID.

+ * + * @param memberId Team member ID of member in this client's team, never + * {@code null}. + * + * @return Dropbox client that issues requests to user endpoints as the + * given team member + * + * @throws IllegalArgumentException If {@code memberId} is {@code null} + */ + public DbxClientV2 asMember(String memberId) { + if (memberId == null) { + throw new IllegalArgumentException("'memberId' should not be null"); + } + + DbxRawClientV2 asMemberClient = new DbxTeamRawClientV2( + _client.getRequestConfig(), + credential, + _client.getHost(), + _client.getUserId(), + memberId, + null, + null + ); + return new DbxClientV2(asMemberClient); + } + + /** + * Returns a {@link DbxClientV2} that performs requests against Dropbox API + * user endpoints as the given team admin. + * + *

This method performs no validation of the team admin ID.

+ * + * @param adminId Team member ID of the admin in client's team, never + * {@code null}. + * + * @return Dropbox client that issues requests to user endpoints as the + * given team Admin. + * + * @throws IllegalArgumentException If {@code adminId} is {@code null} + */ + public DbxClientV2 asAdmin(String adminId) { + if (adminId == null) { + throw new IllegalArgumentException("'adminId' should not be null"); + } + + DbxRawClientV2 asAdminClient = new DbxTeamRawClientV2( + _client.getRequestConfig(), + credential, + _client.getHost(), + _client.getUserId(), + null, + adminId, + null + ); + return new DbxClientV2(asAdminClient); + } + + /** + * {@link DbxRawClientV2} raw client that adds team OAuth2 auth headers to all requests. If a + * member ID is specified, this client will also add select-user headers to all requests (used + * to perform requests as a particular team member). + */ + private static final class DbxTeamRawClientV2 extends DbxRawClientV2 { + private final DbxCredential credential; + private final String memberId; + private final String adminId; + + private DbxTeamRawClientV2( + DbxRequestConfig requestConfig, + DbxCredential credential, + DbxHost host, + String userId, + String memberId, + String adminId, + PathRoot pathRoot) { + super(requestConfig, host, userId, pathRoot); + + if (credential == null) throw new NullPointerException("credential"); + + this.credential = credential; + this.memberId = memberId; + this.adminId = adminId; + } + + @Override + public DbxRefreshResult refreshAccessToken() throws DbxException { + credential.refresh(this.getRequestConfig()); + return new DbxRefreshResult(credential.getAccessToken(), (credential.getExpiresAt() - System.currentTimeMillis())/1000); + } + + @Override + public boolean canRefreshAccessToken() { + return credential.getRefreshToken() != null; + } + + @Override + public boolean needsRefreshAccessToken() { + return canRefreshAccessToken() && credential.aboutToExpire(); + } + + @Override + protected void addAuthHeaders(List headers) { + DbxRequestUtil.removeAuthHeader(headers); + DbxRequestUtil.addAuthHeader(headers, credential.getAccessToken()); + if (memberId != null) { + DbxRequestUtil.addSelectUserHeader(headers, memberId); + } + if (adminId != null) { + DbxRequestUtil.addSelectAdminHeader(headers, adminId); + } + } + + @Override + protected DbxRawClientV2 withPathRoot(PathRoot pathRoot) { + return new DbxTeamRawClientV2( + this.getRequestConfig(), + this.credential, + this.getHost(), + this.getUserId(), + this.memberId, + this.adminId, + pathRoot + ); + } + } +} diff --git a/core/src/main/java/com/dropbox/core/v2/DbxUploadStyleBuilder.java b/core/src/main/java/com/dropbox/core/v2/DbxUploadStyleBuilder.java new file mode 100644 index 000000000..4a387cfd7 --- /dev/null +++ b/core/src/main/java/com/dropbox/core/v2/DbxUploadStyleBuilder.java @@ -0,0 +1,162 @@ +package com.dropbox.core.v2; + +import com.dropbox.core.*; +import com.dropbox.core.util.IOUtil; + +import java.io.IOException; +import java.io.InputStream; + +/** + * The common interface for all builders associated with upload style methods. After setting any + * optional request parameters, use {@link #start} or {@link #uploadAndFinish} to initiate the + * request. + * + * Example usage: + * + *

+ *    // set our optional request parameters
+ *    UploadUploader uploader = client.files.uploadBuilder("/test.txt")
+ *        .autorename(true)
+ *        .mute(true)
+ *        .clientModified(new Date())
+ *        .start();
+ *
+ *    byte [] data = // ... your data here
+ *    try {
+ *        // set our upload content
+ *        OutputStream out = uploader.getOutputStream();
+ *        out.write(data);
+ *
+ *        // complete request and get server response
+ *        response = uploader.finish();
+ *    } finally {
+ *        uploader.close();
+ *    }
+ *
+ * + * Same example using the {@link #uploadAndFinish} convenience method: + * + *

+ *    FileInputStream in = new FileInputStream(file);
+ *    try {
+ *        // set our optional request parameters
+ *        response = client.files.uploadBuilder("/test.txt")
+ *            .autorename(true)
+ *            .mute(true)
+ *            .clientModified(new Date())
+ *            .uploadAndFinish(in);
+ *    } finally {
+ *        in.close();
+ *    }
+ *
+ * + * @param response type returned by server on request success + * @param error type returned by server on request failure + * @param exception type thrown by server on request failure (wraps error type) + */ +public abstract class DbxUploadStyleBuilder { + + /** + * Begins the upload request using this builder's request parameters and returns a {@link + * DbxUploader} for writing the request body. + * + * Callers can complete the request by writing the upload data to the {@link java.io.OutputStream} + * returned by {@link DbxUploader#getOutputStream} and receiving the server response using + * {@link DbxUploader#finish}. + * + * See {@link #uploadAndFinish} convenience method for a simpler way to complete the request. + * + * @return {@link DbxUploader} used to upload data and complete the request + * + * @throws DbxException if an error occursing initializing the request + */ + public abstract DbxUploader start() throws DbxException; + + /** + * Convenience method for {@link DbxUploader#uploadAndFinish(InputStream)}: + * + *

+     *    builder.start().uploadAndFinish(in);
+     * 
+ * + * @param in {@code InputStream} containing data to upload + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + */ + public R uploadAndFinish(InputStream in) throws X, DbxException, IOException + { + return start().uploadAndFinish(in); + } + + /** + * Convenience method for {@link DbxUploader#uploadAndFinish(InputStream, long)}: + * + *

+     *    builder.start().uploadAndFinish(in, limit);
+     * 
+ * + * @param in {@code InputStream} containing data to upload + * @param limit Maximum number of bytes to read from the given {@code InputStream} + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + */ + public R uploadAndFinish(InputStream in, long limit) throws X, DbxException, IOException + { + return start().uploadAndFinish(in, limit); + } + + /** + * Convenience method for {@link DbxUploader#uploadAndFinish(InputStream, long, IOUtil.ProgressListener)}: + * + *

+     *    builder.start().uploadAndFinish(in, limit, progressListener);
+     * 
+ * + * @param in {@code InputStream} containing data to upload + * @param limit Maximum number of bytes to read from the given {@code InputStream} + * @param progressListener {@code ProgressListener} to track the upload progress. Only support + * OKHttpRequester and StandardHttpRequester + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + */ + public R uploadAndFinish(InputStream in, long limit, IOUtil.ProgressListener progressListener) + throws X, DbxException, IOException + { + return start().uploadAndFinish(in, limit, progressListener); + } + + /** + * Convenience method for {@link DbxUploader#uploadAndFinish(InputStream, IOUtil.ProgressListener)}: + * + *

+     *    builder.start().uploadAndFinish(in, progressListener);
+     * 
+ * + * @param in {@code InputStream} containing data to upload + * @param progressListener {@code ProgressListener} to track the upload progress. Only support + * OKHttpRequester and StandardHttpRequester + * + * @return Response from server + * + * @throws X if the server sent an error response for the request + * @throws DbxException if an error occurs uploading the data or reading the response + * @throws IOException if an error occurs reading the input stream. + */ + public R uploadAndFinish(InputStream in, IOUtil.ProgressListener progressListener) + throws X, DbxException, IOException + { + return start().uploadAndFinish(in, progressListener); + } +} diff --git a/src/main/java/com/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory.java b/core/src/main/java/com/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory.java similarity index 100% rename from src/main/java/com/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory.java rename to core/src/main/java/com/dropbox/core/v2/callbacks/DbxGlobalCallbackFactory.java diff --git a/src/main/java/com/dropbox/core/v2/callbacks/DbxNetworkErrorCallback.java b/core/src/main/java/com/dropbox/core/v2/callbacks/DbxNetworkErrorCallback.java similarity index 100% rename from src/main/java/com/dropbox/core/v2/callbacks/DbxNetworkErrorCallback.java rename to core/src/main/java/com/dropbox/core/v2/callbacks/DbxNetworkErrorCallback.java diff --git a/src/main/java/com/dropbox/core/v2/callbacks/DbxRouteErrorCallback.java b/core/src/main/java/com/dropbox/core/v2/callbacks/DbxRouteErrorCallback.java similarity index 100% rename from src/main/java/com/dropbox/core/v2/callbacks/DbxRouteErrorCallback.java rename to core/src/main/java/com/dropbox/core/v2/callbacks/DbxRouteErrorCallback.java diff --git a/core/src/main/stone b/core/src/main/stone new file mode 160000 index 000000000..c83644049 --- /dev/null +++ b/core/src/main/stone @@ -0,0 +1 @@ +Subproject commit c8364404953d875801d496a81f786c5545f78223 diff --git a/core/src/test/java/com/dropbox/core/DbxAppInfoTest.java b/core/src/test/java/com/dropbox/core/DbxAppInfoTest.java new file mode 100644 index 000000000..3a8fbdf87 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/DbxAppInfoTest.java @@ -0,0 +1,45 @@ +package com.dropbox.core; + +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; + +import static com.google.common.truth.Truth.assertThat; + +public class DbxAppInfoTest { + @Test + public void testHappyCase() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"key\": \"aaaaa\"," + + "\"secret\": \"aaaaa\""+ + "}" + ).getBytes("UTF-8") + ); + + DbxAppInfo appInfo = DbxAppInfo.Reader.readFully(responseStream); + assertThat(appInfo.getKey()).isEqualTo("aaaaa"); + assertThat(appInfo.getSecret()).isEqualTo("aaaaa"); + } + + @Test + public void testPKCEConstructor() { + new DbxAppInfo("aaaaa"); + } + + @Test + public void testAppKeyOnly() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"key\": \"aaaaa\"" + + "}" + ).getBytes("UTF-8") + ); + + DbxAppInfo appInfo = DbxAppInfo.Reader.readFully(responseStream); + assertThat(appInfo.getKey()).isEqualTo("aaaaa"); + assertThat(appInfo.hasSecret()).isFalse(); + } +} diff --git a/core/src/test/java/com/dropbox/core/DbxAuthFinishTest.java b/core/src/test/java/com/dropbox/core/DbxAuthFinishTest.java new file mode 100644 index 000000000..5219f789a --- /dev/null +++ b/core/src/test/java/com/dropbox/core/DbxAuthFinishTest.java @@ -0,0 +1,240 @@ +package com.dropbox.core; + +import com.dropbox.core.http.HttpRequestor; +import org.mockito.ArgumentCaptor; +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; + +import static com.google.common.truth.Truth.assertThat; +import static org.mockito.ArgumentMatchers.anyList; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +public class DbxAuthFinishTest extends DbxOAuthTestBase { + private static final DbxRequestConfig CONFIG = DbxRequestConfig.newBuilder("DbxWebAuthTest/1.0") + .withUserLocaleFrom(Locale.UK) + .build(); + private static final DbxAppInfo APP = new DbxAppInfo("test-key", "test-secret"); + + @Test + public void testDbxAuthFinishLegacyToken() throws Exception{ + DbxAuthFinish expected = new DbxAuthFinish( + "test-access-token", null, null, "test-user-id", null, "test", null, null + ); + + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + expected.getAccessToken() + "\"" + + ",\"uid\":\"" + expected.getUserId() + "\"" + + ",\"account_id\":\"" + expected.getAccountId() + "\"" + + "}" + ).getBytes("UTF-8") + ); + + DbxAuthFinish actual = DbxAuthFinish.Reader.readFully(responseStream); + assertThat(actual.getAccessToken()).isEqualTo(expected.getAccessToken()); + assertThat(actual.getAccountId()).isEqualTo(expected.getAccountId()); + assertThat(actual.getRefreshToken()).isEqualTo(expected.getRefreshToken()); + assertThat(actual.getExpiresAt()).isEqualTo(expected.getExpiresAt()); + assertThat(actual.getTeamId()).isEqualTo(expected.getTeamId()); + assertThat(actual.getUserId()).isEqualTo(expected.getUserId()); + assertThat(actual.getUrlState()).isEqualTo(expected.getUrlState()); + } + + @Test + public void testDbxAuthFinishOnline() throws Exception{ + long now = System.currentTimeMillis(); + DbxAuthFinish expected = new DbxAuthFinish( + "test-access-token", 3600L, null, "test-user-id", null, "test", null, null + ); + expected.setIssueTime(now); + + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + expected.getAccessToken() + "\"" + + ",\"expires_in\":" + 3600 + + ",\"uid\":\"" + expected.getUserId() + "\"" + + ",\"account_id\":\"" + expected.getAccountId() + "\"" + + "}" + ).getBytes("UTF-8") + ); + + + + DbxAuthFinish actual = DbxAuthFinish.Reader.readFully(responseStream); + actual.setIssueTime(now); + assertThat(actual.getAccessToken()).isEqualTo(expected.getAccessToken()); + assertThat(actual.getAccountId()).isEqualTo(expected.getAccountId()); + assertThat(actual.getRefreshToken()).isEqualTo(expected.getRefreshToken()); + assertThat(actual.getExpiresAt()).isEqualTo(expected.getExpiresAt()); + assertThat(actual.getTeamId()).isEqualTo(expected.getTeamId()); + assertThat(actual.getUserId()).isEqualTo(expected.getUserId()); + assertThat(actual.getUrlState()).isEqualTo(expected.getUrlState()); + } + + @Test + public void testDbxAuthFinishOffline() throws Exception{ + long now = System.currentTimeMillis(); + DbxAuthFinish expected = new DbxAuthFinish( + "test-access-token", 3600L, "test_refresh_token", "test-user-id", null, "test", + null, null + ); + expected.setIssueTime(now); + + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + expected.getAccessToken() + "\"" + + ",\"expires_in\":" + 3600 + + ",\"refresh_token\":\"" + expected.getRefreshToken() + "\"" + + ",\"uid\":\"" + expected.getUserId() + "\"" + + ",\"account_id\":\"" + expected.getAccountId() + "\"" + + "}" + ).getBytes("UTF-8") + ); + + + + DbxAuthFinish actual = DbxAuthFinish.Reader.readFully(responseStream); + actual.setIssueTime(now); + assertThat(actual.getAccessToken()).isEqualTo(expected.getAccessToken()); + assertThat(actual.getAccountId()).isEqualTo(expected.getAccountId()); + assertThat(actual.getRefreshToken()).isEqualTo(expected.getRefreshToken()); + assertThat(actual.getExpiresAt()).isEqualTo(expected.getExpiresAt()); + assertThat(actual.getTeamId()).isEqualTo(expected.getTeamId()); + assertThat(actual.getUserId()).isEqualTo(expected.getUserId()); + assertThat(actual.getUrlState()).isEqualTo(expected.getUrlState()); + } + + @Test + public void testDbxAuthFinishScope() throws Exception{ + long now = System.currentTimeMillis(); + DbxAuthFinish expected = new DbxAuthFinish( + "test-access-token", 3600L, "test_refresh_token", "test-user-id", null, "test", + null, "account_info.read" + ); + expected.setIssueTime(now); + + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + expected.getAccessToken() + "\"" + + ",\"expires_in\":" + 3600 + + ",\"refresh_token\":\"" + expected.getRefreshToken() + "\"" + + ",\"uid\":\"" + expected.getUserId() + "\"" + + ",\"account_id\":\"" + expected.getAccountId() + "\"" + + ",\"scope\":\"" + expected.getScope() + "\"" + + "}" + ).getBytes("UTF-8") + ); + + + + DbxAuthFinish actual = DbxAuthFinish.Reader.readFully(responseStream); + actual.setIssueTime(now); + assertThat(actual.getAccessToken()).isEqualTo(expected.getAccessToken()); + assertThat(actual.getAccountId()).isEqualTo(expected.getAccountId()); + assertThat(actual.getRefreshToken()).isEqualTo(expected.getRefreshToken()); + assertThat(actual.getExpiresAt()).isEqualTo(expected.getExpiresAt()); + assertThat(actual.getTeamId()).isEqualTo(expected.getTeamId()); + assertThat(actual.getUserId()).isEqualTo(expected.getUserId()); + assertThat(actual.getUrlState()).isEqualTo(expected.getUrlState()); + assertThat(actual.getScope()).isEqualTo(expected.getScope()); + } + + @Test + public void testDbxAuthFinishWithUrlState() throws Exception { + DbxAuthFinish expected = new DbxAuthFinish( + "test-access-token", 3600L, "test_refresh_token", "test-user-id", null, "test", + null, null + ); + + DbxAuthFinish actual = expected.withUrlState("testState"); + + assertThat(actual.getAccessToken()).isEqualTo(expected.getAccessToken()); + assertThat(actual.getAccountId()).isEqualTo(expected.getAccountId()); + assertThat(actual.getRefreshToken()).isEqualTo(expected.getRefreshToken()); + assertThat(actual.getExpiresAt()).isEqualTo(expected.getExpiresAt()); + assertThat(actual.getTeamId()).isEqualTo(expected.getTeamId()); + assertThat(actual.getUserId()).isEqualTo(expected.getUserId()); + assertThat(actual.getUrlState()).isEqualTo("testState"); + } + + @Test + public void testFinishWithState() throws Exception { + String redirectUri = "http://localhost/finish/with/state/test"; + DbxSessionStore sessionStore = new DbxWebAuthTest.SimpleSessionStore(); + String state = "test-state"; + + DbxWebAuth.Request request = DbxWebAuth.newRequestBuilder() + .withRedirectUri(redirectUri, sessionStore) + .withState(state) + .build(); + + // simulate a web server that will not keep the DbxWebAuth + // instance across requests + String authorizationUrl = new DbxWebAuth(CONFIG, APP).authorize(request); + String code = "test-code"; + + assertThat(sessionStore.get()).isNotNull(); + + DbxAuthFinish expected = new DbxAuthFinish( + "test-access-token", null, null, "test-user-id", null, "test", state, null + ); + ByteArrayOutputStream body = new ByteArrayOutputStream(); + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + expected.getAccessToken() + "\"" + + ",\"uid\":\"" + expected.getUserId() + "\"" + + ",\"account_id\":\"" + expected.getAccountId() + "\"" + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 200, responseStream, new HashMap>()); + + HttpRequestor mockRequestor = mock(HttpRequestor.class); + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + ArgumentCaptor urlCaptor = ArgumentCaptor.forClass(String.class); + when(mockUploader.getBody()) + .thenReturn(body); + when(mockUploader.finish()) + .thenReturn(finishResponse); + when(mockRequestor.startPost(anyString(), anyList())) + .thenReturn(mockUploader); + + DbxRequestConfig mockConfig = CONFIG.copy() + .withHttpRequestor(mockRequestor) + .build(); + + DbxAuthFinish actual = new DbxWebAuth(mockConfig, APP).finishFromRedirect( + redirectUri, + sessionStore, + params("code", "test-code", + "state", extractQueryParam(authorizationUrl, "state")) + ); + + // verify the state param isn't send to the 'oauth2/token' endpoint + String finishParams = new String(body.toByteArray(), "UTF-8"); + assertThat(toParamsMap(finishParams).get("state")).isNull(); + + assertThat(actual).isNotNull(); + assertThat(actual.getAccessToken()).isEqualTo(expected.getAccessToken()); + assertThat(actual.getUserId()).isEqualTo(expected.getUserId()); + assertThat(actual.getUrlState()).isEqualTo(expected.getUrlState()); + } +} diff --git a/core/src/test/java/com/dropbox/core/DbxEntryTest.java b/core/src/test/java/com/dropbox/core/DbxEntryTest.java new file mode 100644 index 000000000..f58d08614 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/DbxEntryTest.java @@ -0,0 +1,90 @@ +package com.dropbox.core; + +import com.dropbox.core.json.JsonReadException; +import com.dropbox.core.json.JsonReader; +import com.dropbox.core.util.IOUtil; +import com.dropbox.core.util.LangUtil; +import com.dropbox.core.util.StringUtil; +import com.dropbox.core.v1.DbxEntry; +import org.testng.annotations.Test; + +import static com.google.common.truth.Truth.assertThat; +import static com.google.common.truth.Truth.assertWithMessage; + +import java.io.IOException; +import java.io.InputStream; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +public class DbxEntryTest +{ + private static T loadJsonResource(JsonReader reader, String resourceName) + { + InputStream in = DbxEntryTest.class.getResourceAsStream(resourceName); + if (in == null) throw new AssertionError("Couldn't get resource " + StringUtil.jq(resourceName) + "."); + try { + return reader.readFully(in); + } + catch (JsonReadException ex) { + throw LangUtil.mkAssert("Test file had invalid JSON", ex); + } + catch (IOException ex) { + throw LangUtil.mkAssert("IO error reading from resource?", ex); + } + finally { + IOUtil.closeInput(in); + } + } + + + @Test + public void parseFile() throws Exception + { + DbxEntry.File f = loadJsonResource(DbxEntry.Reader, "/file.json").asFile(); + assertThat(f.path).isEqualTo("/Photos/Sample Album/Boston City Flow.jpg"); + assertThat(f.numBytes).isEqualTo(339773); + assertThat(f.mightHaveThumbnail).isEqualTo(true); + assertThat(f.rev).isEqualTo("400113f659"); + assertThat(f.humanSize).isEqualTo("331.8 KB"); + + GregorianCalendar c = new GregorianCalendar(2013, GregorianCalendar.APRIL, 11, 17, 5, 17); + c.setTimeZone(TimeZone.getTimeZone("UTC")); + assertThat(f.lastModified).isEqualTo(c.getTime()); + } + + @Test + public void parseFileWithPhotoInfo() throws Exception + { + DbxEntry.File f = loadJsonResource(DbxEntry.Reader, "/file-with-photo-info.json").asFile(); + assertWithMessage("Expected entry to have a photo info").that(f.photoInfo).isNotNull(); + assertWithMessage("Expected entry to have a time taken").that(f.photoInfo.timeTaken).isNotNull(); + assertWithMessage("Expected entry to have a location").that(f.photoInfo.location).isNotNull(); + } + + @Test + public void parseFileWithVideoInfo() throws Exception + { + DbxEntry.File f = loadJsonResource(DbxEntry.Reader, "/file-with-video-info.json").asFile(); + assertWithMessage("Expected entry to have a video info").that(f.videoInfo).isNotNull(); + assertWithMessage("Expected entry to have a time taken").that(f.videoInfo.timeTaken).isNotNull(); + assertWithMessage("Expected entry to have a location").that(f.videoInfo.location).isNotNull(); + assertWithMessage("Expected to have a duration").that(f.videoInfo.duration).isEqualTo(Long.valueOf(666)); + } + + @Test + public void parseFileWithVideoInfoNullFields() throws Exception + { + DbxEntry.File f = loadJsonResource(DbxEntry.Reader, "/file-with-video-info-null-fields.json").asFile(); + assertThat(f.videoInfo.duration).isNull(); + assertThat(f.videoInfo.location).isNull(); + assertThat(f.videoInfo.timeTaken).isNull(); + } + + @Test + public void parseWithMediaInfoPending() throws Exception + { + DbxEntry.File f = loadJsonResource(DbxEntry.Reader, "/file-with-media-info-pending.json").asFile(); + assertThat(f.videoInfo == DbxEntry.File.VideoInfo.PENDING).isTrue(); + assertThat(f.photoInfo == DbxEntry.File.PhotoInfo.PENDING).isTrue(); + } +} diff --git a/core/src/test/java/com/dropbox/core/DbxOAuthTestBase.java b/core/src/test/java/com/dropbox/core/DbxOAuthTestBase.java new file mode 100644 index 000000000..ab6567a58 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/DbxOAuthTestBase.java @@ -0,0 +1,121 @@ +package com.dropbox.core; + +import java.net.URL; +import java.net.URLDecoder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static com.google.common.truth.Truth.assertThat; +import static org.testng.Assert.fail; + +public class DbxOAuthTestBase { + + protected static String extractQueryParam(String query, String param) { + Map> params = toParamsMap(query); + + if (!params.containsKey(param)) { + fail("Param \"" + param + "\" not found in: " + query); + return null; + } + + List values = params.get(param); + if (values.size() > 1) { + fail("Param \"" + param + "\" appears more than once in: " + query); + return null; + } + + return values.get(0); + } + + protected static void assertAuthorizationUrls(String actual, String expected) { + try { + URL a = new URL(actual); + URL b = new URL(expected); + + assertThat(a.getProtocol()).isEqualTo(b.getProtocol()); + assertThat(a.getAuthority()).isEqualTo(b.getAuthority()); + assertThat(a.getPath()).isEqualTo(b.getPath()); + assertThat(a.getRef()).isEqualTo(b.getRef()); + + Map> pa = toParamsMap(new URL(actual)); + Map> pb = toParamsMap(new URL(actual)); + + assertThat(pa.keySet()).isEqualTo(pb.keySet()); + for (String key : pa.keySet()) { + if ("state".equals(key)) { + continue; + } + assertThat(pa.get(key)).isEqualTo(pb.get(key)); + } + } catch (Exception ex) { + fail("Couldn't compare authorization URLs", ex); + } + } + + protected static Map params(String ... pairs) { + if ((pairs.length % 2) != 0) { + fail("pairs must be a multiple of 2."); + } + + Map query = new HashMap(); + for (int i = 0; i < pairs.length; i += 2) { + query.put(pairs[i], new String [] { pairs[i + 1] }); + } + return query; + } + + protected static Map> toParamsMap(URL url) { + return toParamsMap(url.getQuery()); + } + + protected static Map> toParamsMap(String query) { + try { + String [] pairs = query.split("&"); + Map> params = new HashMap>(pairs.length); + + for (String pair : pairs) { + String [] keyValue = pair.split("=", 2); + String key = keyValue[0]; + String value = keyValue.length == 2 ? keyValue[1] : ""; + + List others = params.get(key); + if (others == null) { + others = new ArrayList(); + params.put(key, others); + } + + others.add(URLDecoder.decode(value, "UTF-8")); + } + + return params; + } catch (Exception ex) { + fail("Couldn't build query parameter map from: " + query, ex); + return null; + } + } + + protected static final class SimpleSessionStore implements DbxSessionStore { + private String token; + + public SimpleSessionStore() { + this.token = null; + } + + @Override + public String get() { + return token; + } + + @Override + public void set(String value) { + this.token = value; + } + + @Override + public void clear() { + this.token = null; + } + } +} diff --git a/core/src/test/java/com/dropbox/core/DbxPKCEWebAuthTest.java b/core/src/test/java/com/dropbox/core/DbxPKCEWebAuthTest.java new file mode 100644 index 000000000..3103aa2c2 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/DbxPKCEWebAuthTest.java @@ -0,0 +1,226 @@ +package com.dropbox.core; + +import com.dropbox.core.http.HttpRequestor; +import org.mockito.ArgumentCaptor; +import org.testng.Assert.ThrowingRunnable; +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.net.URL; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.regex.Pattern; + +import static com.google.common.truth.Truth.assertThat; +import static com.google.common.truth.Truth.assertWithMessage; +import static org.mockito.ArgumentMatchers.anyList; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; +import static org.mockito.Mockito.verify; +import static org.testng.Assert.assertThrows; + +public class DbxPKCEWebAuthTest extends DbxOAuthTestBase { + private static final DbxRequestConfig CONFIG = DbxRequestConfig.newBuilder("DbxWebAuthTest/1.0") + .withUserLocaleFrom(Locale.UK) + .build(); + private static final DbxAppInfo APP = new DbxAppInfo("test-key"); + private static final String PKCE_REGEX = "^[0-9a-zA-Z\\-._~]{43,128}$"; + + @Test + public void testCodeChallenge() throws Exception { + String redirectUri = "https://localhost/compatibility/test"; + DbxSessionStore sessionStore = new SimpleSessionStore(); + String state = "test-state"; + + DbxPKCEWebAuth auth = new DbxPKCEWebAuth(CONFIG, APP); + + String authUrl = auth.authorize( + DbxWebAuth.newRequestBuilder() + .withRedirectUri(redirectUri, sessionStore) + .withState(state) + .build() + ); + + + Map> params = toParamsMap(new URL(authUrl)); + assertThat(params.containsKey("code_challenge")).isTrue(); + String codeChallenge = params.get("code_challenge").get(0); + assertWithMessage(codeChallenge).that(Pattern.matches(PKCE_REGEX, codeChallenge)).isTrue(); + + assertThat(params.containsKey("code_challenge_method")).isTrue(); + assertThat(params.get("code_challenge_method").get(0)).isEqualTo("S256"); + } + + @Test + public void testCodeVerifier() throws Exception{ + String redirectUri = "http://localhost/finish/with/state/test"; + DbxSessionStore sessionStore = new SimpleSessionStore(); + String state = "test-state"; + + DbxWebAuth.Request request = DbxWebAuth.newRequestBuilder() + .withRedirectUri(redirectUri, sessionStore) + .withState(state) + .build(); + + String code = "test-code"; + + ByteArrayOutputStream body = new ByteArrayOutputStream(); + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"sdfg\"" + + ",\"uid\":\"21345\"" + + ",\"account_id\":\"765\"" + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 200, responseStream, new HashMap>()); + + HttpRequestor mockRequestor = mock(HttpRequestor.class); + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + when(mockUploader.getBody()) + .thenReturn(body); + when(mockUploader.finish()) + .thenReturn(finishResponse); + when(mockRequestor.startPost(anyString(), anyList())) + .thenReturn(mockUploader); + + DbxRequestConfig mockConfig = CONFIG.copy() + .withHttpRequestor(mockRequestor) + .build(); + + // PKCE flow should keep the same instance in both authorize and finish call. + DbxPKCEWebAuth dbxPKCEWebAuth = new DbxPKCEWebAuth(mockConfig, APP); + String authorizationUrl = dbxPKCEWebAuth.authorize(request); + String code_challenge = toParamsMap(new URL(authorizationUrl)).get("code_challenge").get(0); + + dbxPKCEWebAuth.finishFromRedirect( + redirectUri, + sessionStore, + params("code", code, "state", extractQueryParam(authorizationUrl, "state")) + ); + + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(byte[].class); + verify(mockUploader).upload(argumentCaptor.capture()); + Map> finishParams = toParamsMap(new String(argumentCaptor.getValue(), "UTF-8")); + String code_verifier = finishParams.get("code_verifier").get(0); + assertThat(code_challenge).isEqualTo(DbxPKCEManager.generateCodeChallenge(code_verifier)); + } + + @Test + public void testAppInfoWithSecret() { + assertThrows(IllegalStateException.class, new ThrowingRunnable() { + public void run() { + DbxAppInfo appInfoWithSecret = new DbxAppInfo("test-key", "test-secret"); + new DbxPKCEWebAuth(CONFIG, appInfoWithSecret); + } + }); + } + + @Test + public void testFinishWithoutAuthorize() { + final DbxPKCEWebAuth dbxWebAuth = new DbxPKCEWebAuth(CONFIG, APP); + assertThrows(IllegalStateException.class, new ThrowingRunnable() { + @Override + public void run() throws Throwable { + dbxWebAuth.finish("any_code", null, null); + } + }); + } + + @Test + public void testScope() throws Exception { + DbxPKCEWebAuth auth = new DbxPKCEWebAuth(CONFIG, APP); + + String authUrl = auth.authorize( + DbxWebAuth.newRequestBuilder() + .withNoRedirect() + .withScope(Collections.singletonList("account.info.read")) + .build() + ); + + Map> params = toParamsMap(new URL(authUrl)); + assertThat(params.get("scope")).isEqualTo(Collections.singletonList("account.info.read")); + } + + @Test + public void testIncrementalOAuth() throws Exception { + DbxPKCEWebAuth auth = new DbxPKCEWebAuth(CONFIG, APP); + + String authUrl = auth.authorize( + DbxWebAuth.newRequestBuilder() + .withNoRedirect() + .withScope(Collections.singletonList("account.info.read")) + .withIncludeGrantedScopes(IncludeGrantedScopes.USER) + .build() + ); + + Map> params = toParamsMap(new URL(authUrl)); + assertThat(params.get("client_id")).isEqualTo(Collections.singletonList(APP.getKey())); + assertThat(params.get("response_type")).isEqualTo(Collections.singletonList("code")); + assertThat(params.get("scope")).isEqualTo(Collections.singletonList("account.info.read")); + assertThat(params.get("include_granted_scopes")).isEqualTo(Collections.singletonList("user")); + assertThat(params.containsKey("redirect_uri")).isFalse(); + assertThat(params.containsKey("state")).isFalse(); + assertThat(params.containsKey("require_role")).isFalse(); + assertThat(params.containsKey("force_reapprove")).isFalse(); + assertThat(params.containsKey("disable_signup")).isFalse(); + assertThat(params.containsKey("token_access_type")).isFalse(); + assertThat(params.get("code_challenge")).isNotNull(); + assertThat(params.get("code_challenge_method")).isEqualTo(Collections.singletonList("S256")); + } + + @Test + public void testInvalidCodeVerifier() throws Exception{ + DbxWebAuth.Request request = DbxWebAuth.newRequestBuilder().build(); + + String code = "test-code"; + + ByteArrayOutputStream body = new ByteArrayOutputStream(); + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"error_description\":\"invalid code verifier\"" + + ",\"error\":\"invalid_grant\"" + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 400, responseStream, new HashMap>()); + + HttpRequestor mockRequestor = mock(HttpRequestor.class); + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + when(mockUploader.finish()) + .thenReturn(finishResponse); + when(mockRequestor.startPost(anyString(), anyList())) + .thenReturn(mockUploader); + + DbxRequestConfig mockConfig = CONFIG.copy() + .withHttpRequestor(mockRequestor) + .build(); + + // PKCE flow should keep the same instance in both authorize and finish call. + DbxPKCEWebAuth dbxPKCEWebAuth = new DbxPKCEWebAuth(mockConfig, APP); + dbxPKCEWebAuth.authorize(request); + assertThrows(BadRequestException.class, new ThrowingRunnable() { + private DbxPKCEWebAuth dbxPKCEWebAuth; + private String code; + ThrowingRunnable load(DbxPKCEWebAuth dbxPKCEWebAuth, String code) { + this.dbxPKCEWebAuth = dbxPKCEWebAuth; + this.code = code; + return this; + } + @Override + public void run() throws Throwable { + dbxPKCEWebAuth.finishFromCode(code); + } + }.load(dbxPKCEWebAuth, code)); + } +} diff --git a/core/src/test/java/com/dropbox/core/DbxRequestConfigTest.java b/core/src/test/java/com/dropbox/core/DbxRequestConfigTest.java new file mode 100644 index 000000000..44fcafb90 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/DbxRequestConfigTest.java @@ -0,0 +1,69 @@ +package com.dropbox.core; + +import static com.google.common.truth.Truth.assertThat; + +import java.util.Locale; + +import org.testng.annotations.Test; + +public class DbxRequestConfigTest { + + @Test + @SuppressWarnings("deprecation") + public void testUserLocales() { + String clientId = "testBasicLocales"; + + // APIv1 is more lenient about locale formats, but APIv2 is not. Ensure we are converting + // all non-standard locale formats to IETF BCP 47 Language Tags for APIv2. + + // default should not be "en" + assertThat(new DbxRequestConfig(clientId).getUserLocale()).isNull(); + assertThat(newConfigBuilder(clientId) + .withUserLocaleFromPreferences().build().getUserLocale()).isNull(); + assertThat(newConfig(clientId, (String) null).getUserLocale()).isNull(); + assertThat(newConfig(clientId, (Locale) null).getUserLocale()).isNull(); + + // basic english + assertThat(new DbxRequestConfig(clientId, "en").getUserLocale()).isEqualTo("en"); + assertThat(newConfig(clientId, "en").getUserLocale()).isEqualTo("en"); + assertThat(newConfig(clientId, Locale.ENGLISH).getUserLocale()).isEqualTo("en"); + + // UK english + assertThat(new DbxRequestConfig(clientId, "en_GB").getUserLocale()).isEqualTo("en-GB"); + assertThat(newConfig(clientId, "en_GB").getUserLocale()).isEqualTo("en-GB"); + assertThat(newConfig(clientId, "en-GB").getUserLocale()).isEqualTo("en-GB"); + assertThat(newConfig(clientId, Locale.UK).getUserLocale()).isEqualTo("en-GB"); + + // Custom, variant gets truncated + Locale custom = new Locale("ko", "KR", "dropbox_variant"); + assertThat(new DbxRequestConfig(clientId, custom.toString()).getUserLocale()).isEqualTo("ko-KR"); + assertThat(newConfig(clientId, custom.toString()).getUserLocale()).isEqualTo("ko-KR"); + assertThat(newConfig(clientId, "ko-KR-Dropbox-x-lvariant-foo").getUserLocale()).isEqualTo("ko-KR-Dropbox-x-lvariant-foo"); + assertThat(newConfig(clientId, "ko_KR_Dropbox_foo").getUserLocale()).isEqualTo("ko-KR"); + assertThat(newConfig(clientId, custom).getUserLocale()).isEqualTo("ko-KR"); + + // Casing + assertThat(new DbxRequestConfig(clientId, "FR_CA").getUserLocale()).isEqualTo("fr-CA"); + assertThat(newConfig(clientId, "FR_CA").getUserLocale()).isEqualTo("fr-CA"); + + // Missing lang (no translation is done) + assertThat(new DbxRequestConfig(clientId, "_FR").getUserLocale()).isEqualTo("_FR"); + assertThat(newConfig(clientId, "_FR").getUserLocale()).isEqualTo("_FR"); + + // Missing region + assertThat(new DbxRequestConfig(clientId, "de__POSIX").getUserLocale()).isEqualTo("de"); + assertThat(newConfig(clientId, "de__POSIX").getUserLocale()).isEqualTo("de"); + } + + private static DbxRequestConfig.Builder newConfigBuilder(String clientId) { + return DbxRequestConfig.newBuilder(clientId); + } + + private static DbxRequestConfig newConfig(String clientId, String locale) { + return DbxRequestConfig.newBuilder(clientId).withUserLocale(locale).build(); + } + + private static DbxRequestConfig newConfig(String clientId, Locale locale) { + return DbxRequestConfig.newBuilder(clientId).withUserLocaleFrom(locale).build(); + } +} diff --git a/core/src/test/java/com/dropbox/core/DbxWebAuthTest.java b/core/src/test/java/com/dropbox/core/DbxWebAuthTest.java new file mode 100644 index 000000000..9cc1074ea --- /dev/null +++ b/core/src/test/java/com/dropbox/core/DbxWebAuthTest.java @@ -0,0 +1,194 @@ +package com.dropbox.core; + +import com.dropbox.core.util.StringUtil; +import org.testng.annotations.Test; + +import java.net.URL; +import java.util.*; + +import static com.google.common.truth.Truth.assertThat; +import static org.testng.Assert.fail; + +public class DbxWebAuthTest extends DbxOAuthTestBase { + private static final DbxRequestConfig CONFIG = DbxRequestConfig.newBuilder("DbxWebAuthTest/1.0") + .withUserLocaleFrom(Locale.UK) + .build(); + private static final DbxAppInfo APP = new DbxAppInfo("test-key", "test-secret"); + + @Test + @SuppressWarnings("deprecation") + public void testCompatibility() throws Exception { + String redirectUri = "https://localhost/compatibility/test"; + DbxSessionStore sessionStore = new SimpleSessionStore(); + String state = "test-state"; + + DbxWebAuth deprecated = new DbxWebAuth(CONFIG, APP, redirectUri, sessionStore); + DbxWebAuth auth = new DbxWebAuth(CONFIG, APP); + + String deprecatedAuthUrl = deprecated.start(state); + String authUrl = auth.authorize( + DbxWebAuth.newRequestBuilder() + .withRedirectUri(redirectUri, sessionStore) + .withState(state) + .build() + ); + + assertAuthorizationUrls(deprecatedAuthUrl, authUrl); + + deprecatedAuthUrl = deprecated.start(null); + authUrl = auth.authorize( + DbxWebAuth.newRequestBuilder() + .withRedirectUri(redirectUri, sessionStore) + .build() + ); + + // ignores state param since it includes a CSRF nonce + assertAuthorizationUrls(deprecatedAuthUrl, authUrl); + + // assert token access type is empty + Map> params = toParamsMap(new URL(authUrl)); + assertThat(params.containsKey("token_access_type")).isFalse(); + } + + @Test(expectedExceptions={IllegalArgumentException.class}) + @SuppressWarnings("deprecation") + public void testDeprecatedStateTooLarge() { + StringBuilder state = new StringBuilder(); + for (int i = 0; i < 476; ++i) { + state.append("."); + } + try { + new DbxWebAuth(CONFIG, APP, "https://localhost", new SimpleSessionStore()) + .start(state.toString()); + } catch (IllegalArgumentException ex) { + fail("Unable to create authorization URL with max state bytes."); + } + + state.append("."); // one too many, should throw exception + new DbxWebAuth(CONFIG, APP, "https://localhost", new SimpleSessionStore()) + .start(state.toString()); + } + + @Test(expectedExceptions={IllegalArgumentException.class}) + public void testStateTooLarge() { + StringBuilder state = new StringBuilder(); + for (int i = 0; i < 476; ++i) { + state.append("."); + } + try { + DbxWebAuth.newRequestBuilder() + .withRedirectUri("http://localhost/bar", new SimpleSessionStore()) + .withState(state.toString()) + .build(); + } catch (IllegalArgumentException ex) { + fail("Unable to create OAuth request with max state bytes."); + } + + state.append("."); // one too many, should throw exception + DbxWebAuth.newRequestBuilder() + .withRedirectUri("http://localhost/bar", new SimpleSessionStore()) + .withState(state.toString()) + .build(); + } + + @Test(expectedExceptions={IllegalStateException.class}) + @SuppressWarnings("deprecation") + public void testDeprecatedBadStartCall() { + new DbxWebAuth(CONFIG, APP).start("some-state"); + } + + @Test(expectedExceptions={IllegalStateException.class}) + @SuppressWarnings("deprecation") + public void testBadStartCall() { + new DbxWebAuth(CONFIG, APP, "http://localhost/banana", new SimpleSessionStore()) + .authorize(DbxWebAuth.newRequestBuilder().build()); + } + + @Test(expectedExceptions={IllegalStateException.class}) + public void testStateWithNoRedirect() { + DbxWebAuth.newRequestBuilder() + .withNoRedirect() + .withState("foo-state") + .build(); + } + + @Test + public void testTokenAccessType() throws Exception { + DbxWebAuth dbxWebAuth = new DbxWebAuth(CONFIG, APP); + DbxWebAuth.Request request = DbxWebAuth.newRequestBuilder() + .withNoRedirect() + .withTokenAccessType(TokenAccessType.ONLINE) + .build(); + String urlString = dbxWebAuth.authorize(request); + Map> params = toParamsMap(new URL(urlString)); + assertThat(params.get("token_access_type")).isEqualTo(Collections.singletonList("online")); + + request = DbxWebAuth.newRequestBuilder() + .withNoRedirect() + .withTokenAccessType(TokenAccessType.OFFLINE) + .build(); + urlString = dbxWebAuth.authorize(request); + params = toParamsMap(new URL(urlString)); + assertThat(params.get("token_access_type")).isEqualTo(Collections.singletonList("offline")); + } + + @Test(expectedExceptions={DbxWebAuth.CsrfException.class}) + public void testCsrfVerifyException() throws Exception { + DbxSessionStore sessionStore = new SimpleSessionStore(); + sessionStore.set(StringUtil.urlSafeBase64Encode(new byte[16])); + + new DbxWebAuth(CONFIG, APP).finishFromRedirect( + "http://localhost/redirect", + sessionStore, + params("code", "test-code", + "state", "_no_csrf_available_or_bad_token_|test-state") + ); + } + + @Test(expectedExceptions={IllegalStateException.class}) + public void testDbxWebAuthWithoutSecret() { + DbxAppInfo appNoSecret = new DbxAppInfo("test-key"); + DbxWebAuth dbxWebAuth = new DbxWebAuth(CONFIG, appNoSecret); + + dbxWebAuth.authorize( + DbxWebAuth.newRequestBuilder() + .build() + ); + } + + @Test + public void testScope() throws Exception { + DbxWebAuth dbxWebAuth = new DbxWebAuth(CONFIG, APP); + DbxWebAuth.Request request = DbxWebAuth.newRequestBuilder() + .withNoRedirect() + .withScope(Collections.singletonList("account.info.read")) + .build(); + String urlString = dbxWebAuth.authorize(request); + Map> params = toParamsMap(new URL(urlString)); + assertThat(params.get("scope")).isEqualTo(Collections.singletonList("account.info.read")); + assertThat(params.get("include_granted_scopes")).isNull(); + } + + @Test + public void testIncrementalOAuth() throws Exception { + DbxWebAuth dbxWebAuth = new DbxWebAuth(CONFIG, APP); + DbxWebAuth.Request request = DbxWebAuth.newRequestBuilder() + .withNoRedirect() + .withScope(Collections.singletonList("account.info.read")) + .withIncludeGrantedScopes(IncludeGrantedScopes.USER) + .build(); + String urlString = dbxWebAuth.authorize(request); + Map> params = toParamsMap(new URL(urlString)); + assertThat(params.get("client_id")).isEqualTo(Collections.singletonList(APP.getKey())); + assertThat(params.get("response_type")).isEqualTo(Collections.singletonList("code")); + assertThat(params.get("scope")).isEqualTo(Collections.singletonList("account.info.read")); + assertThat(params.get("include_granted_scopes")).isEqualTo(Collections.singletonList("user")); + assertThat(params.containsKey("redirect_uri")).isFalse(); + assertThat(params.containsKey("state")).isFalse(); + assertThat(params.containsKey("require_role")).isFalse(); + assertThat(params.containsKey("force_reapprove")).isFalse(); + assertThat(params.containsKey("disable_signup")).isFalse(); + assertThat(params.containsKey("token_access_type")).isFalse(); + + } +} diff --git a/src/test/java/com/dropbox/core/ITUtil.java b/core/src/test/java/com/dropbox/core/ITUtil.java similarity index 87% rename from src/test/java/com/dropbox/core/ITUtil.java rename to core/src/test/java/com/dropbox/core/ITUtil.java index 9e77e7c6f..fbb73aed3 100644 --- a/src/test/java/com/dropbox/core/ITUtil.java +++ b/core/src/test/java/com/dropbox/core/ITUtil.java @@ -1,6 +1,6 @@ package com.dropbox.core; -import static org.testng.Assert.*; +import static org.testng.Assert.fail; import java.nio.charset.Charset; import java.text.DateFormat; @@ -18,6 +18,8 @@ import com.squareup.okhttp.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; import org.testng.annotations.AfterSuite; import org.testng.annotations.BeforeSuite; @@ -48,11 +50,13 @@ public final class ITUtil { new LocalURLFetchServiceTestConfig()); public static DbxRequestConfig.Builder newRequestConfig() { + HttpRequestor httpRequestor = newHttpRequestor(); + System.out.println("Using HttpRequestor of type: " + httpRequestor.getClass().getSimpleName()); return DbxRequestConfig.newBuilder("sdk-integration-test") // enable auto-retry to avoid flakiness .withAutoRetryEnabled(MAX_RETRIES) .withUserLocaleFrom(Locale.US) - .withHttpRequestor(newHttpRequestor()); + .withHttpRequestor(httpRequestor); } /** @@ -98,13 +102,25 @@ public static HttpRequestor newHttpRequestor() { public static OkHttpRequestor newOkHttpRequestor() { OkHttpClient httpClient = OkHttpRequestor.defaultOkHttpClient().clone(); httpClient.setReadTimeout(READ_TIMEOUT, TimeUnit.MILLISECONDS); + httpClient.interceptors().add(chain -> { + com.squareup.okhttp.Request request = chain.request(); + com.squareup.okhttp.Response response = chain.proceed(request); + System.out.println(response.code() + " | " + request.method() + " | " + request.url() + " | X-Dropbox-Request-Id: " + response.header("X-Dropbox-Request-Id")); + return response; + }); return new OkHttpRequestor(httpClient); } public static OkHttp3Requestor newOkHttp3Requestor() { okhttp3.OkHttpClient httpClient = OkHttp3Requestor.defaultOkHttpClient().newBuilder() - .readTimeout(READ_TIMEOUT, TimeUnit.MILLISECONDS) - .build(); + .addInterceptor(chain -> { + Request request = chain.request(); + Response response = chain.proceed(request); + System.out.println(response.code() + " | " + request.method() + " | " + request.url() + " | X-Dropbox-Request-Id: " + response.header("X-Dropbox-Request-Id")); + return response; + }) + .readTimeout(READ_TIMEOUT, TimeUnit.MILLISECONDS) + .build(); return new OkHttp3Requestor(httpClient); } @@ -234,7 +250,7 @@ public static void deleteRoot() throws Exception { .withHttpRequestor(newStandardHttpRequestor()) ); try { - client.files().delete(RootContainer.ROOT); + client.files().deleteV2(RootContainer.ROOT); } catch (DeleteErrorException ex) { if (ex.errorValue.isPathLookup() && ex.errorValue.getPathLookupValue().isNotFound()) { diff --git a/src/test/java/com/dropbox/core/http/OkHttp3RequestorTest.java b/core/src/test/java/com/dropbox/core/http/OkHttp3RequestorTest.java similarity index 100% rename from src/test/java/com/dropbox/core/http/OkHttp3RequestorTest.java rename to core/src/test/java/com/dropbox/core/http/OkHttp3RequestorTest.java diff --git a/src/test/java/com/dropbox/core/http/OkHttpRequestorTest.java b/core/src/test/java/com/dropbox/core/http/OkHttpRequestorTest.java similarity index 100% rename from src/test/java/com/dropbox/core/http/OkHttpRequestorTest.java rename to core/src/test/java/com/dropbox/core/http/OkHttpRequestorTest.java diff --git a/src/test/java/com/dropbox/core/json/JsonDateReaderBench.java b/core/src/test/java/com/dropbox/core/json/JsonDateReaderBench.java similarity index 100% rename from src/test/java/com/dropbox/core/json/JsonDateReaderBench.java rename to core/src/test/java/com/dropbox/core/json/JsonDateReaderBench.java diff --git a/src/test/java/com/dropbox/core/json/JsonDateReaderTest.java b/core/src/test/java/com/dropbox/core/json/JsonDateReaderTest.java similarity index 100% rename from src/test/java/com/dropbox/core/json/JsonDateReaderTest.java rename to core/src/test/java/com/dropbox/core/json/JsonDateReaderTest.java diff --git a/core/src/test/java/com/dropbox/core/oauth/DbxCredentialTest.java b/core/src/test/java/com/dropbox/core/oauth/DbxCredentialTest.java new file mode 100644 index 000000000..bf9c8e74e --- /dev/null +++ b/core/src/test/java/com/dropbox/core/oauth/DbxCredentialTest.java @@ -0,0 +1,77 @@ +package com.dropbox.core.oauth; + +import com.dropbox.core.json.JsonReadException; +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; + +import static com.google.common.truth.Truth.assertThat; + +public class DbxCredentialTest { + @Test + public void testOnline() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"access_token\": \"aaaaa\"" + + "}" + ).getBytes("UTF-8") + ); + + DbxCredential credential = DbxCredential.Reader.readFully(responseStream); + assertThat(credential.getAccessToken()).isEqualTo("aaaaa"); + assertThat(credential.aboutToExpire()).isFalse(); + assertThat(credential.getRefreshToken()).isNull(); + assertThat(credential.getExpiresAt()).isNull(); + assertThat(credential.getAppKey()).isNull(); + assertThat(credential.getAppSecret()).isNull(); + } + + @Test + public void testOffline() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"access_token\": \"aaaaa\"," + + "\"expires_at\": 10,"+ + "\"refresh_token\": \"bbbbb\"," + + "\"app_key\": \"ccccc\"," + + "\"app_secret\": \"ddddd\"" + + "}" + ).getBytes("UTF-8") + ); + + DbxCredential credential = DbxCredential.Reader.readFully(responseStream); + assertThat(credential.getAccessToken()).isEqualTo("aaaaa"); + assertThat(credential.getExpiresAt()).isEqualTo(new Long(10)); + assertThat(credential.getRefreshToken()).isEqualTo("bbbbb"); + assertThat(credential.getAppKey()).isEqualTo("ccccc"); + assertThat(credential.getAppSecret()).isEqualTo("ddddd"); + assertThat(credential.aboutToExpire()).isTrue(); + } + + @Test(expectedExceptions={JsonReadException.class}) + public void testInvalid() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"refresh_token\": \"aaaaa\"" + + "}" + ).getBytes("UTF-8") + ); + DbxCredential.Reader.readFully(responseStream); + } + + @Test + public void testSerialization() throws Exception { + DbxCredential credential = new DbxCredential("aaaa", 10L, "bbbbb", "ccccc", "ddddd"); + + String data = DbxCredential.Writer.writeToString(credential); + DbxCredential afterRead = DbxCredential.Reader.readFully(data); + assertThat(afterRead.getAccessToken()).isEqualTo(credential.getAccessToken()); + assertThat(afterRead.getExpiresAt()).isEqualTo(credential.getExpiresAt()); + assertThat(afterRead.getRefreshToken()).isEqualTo(credential.getRefreshToken()); + assertThat(afterRead.getAppKey()).isEqualTo(credential.getAppKey()); + assertThat(afterRead.getAppSecret()).isEqualTo(credential.getAppSecret()); + } +} diff --git a/core/src/test/java/com/dropbox/core/oauth/DbxRefreshTest.java b/core/src/test/java/com/dropbox/core/oauth/DbxRefreshTest.java new file mode 100644 index 000000000..d89acf9e5 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/oauth/DbxRefreshTest.java @@ -0,0 +1,311 @@ +package com.dropbox.core.oauth; + +import com.dropbox.core.DbxAppInfo; +import com.dropbox.core.DbxOAuthTestBase; +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.InvalidAccessTokenException; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.v2.DbxClientV2; +import com.dropbox.core.v2.DbxTeamClientV2; +import org.mockito.ArgumentCaptor; +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +import static com.google.common.truth.Truth.assertThat; +import static com.google.common.truth.Truth.assertWithMessage; +import static org.mockito.ArgumentMatchers.anyList; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import static org.testng.Assert.fail; + +public class DbxRefreshTest extends DbxOAuthTestBase { + private static final DbxRequestConfig CONFIG = DbxRequestConfig.newBuilder("DbxWebAuthTest/1.0") + .withUserLocaleFrom(Locale.UK) + .build(); + private static final DbxAppInfo APP = new DbxAppInfo("test-key", "test-secret"); + private static final String EXPIRED_TOKEN = "expired_token"; + private static final String REFRESH_TOKEN = "refresh____token"; + private static final String NEW_TOKEN = "new_token"; + private static final long EXPIRES_IN_SECONDS = 14400L; + private static final long OFFSET_BETWEEN_CALLS_IN_MS = 1000L; + + + @Test + public void testRefreshResult() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + NEW_TOKEN + "\"" + + ",\"expires_in\":" + EXPIRES_IN_SECONDS + + "}" + ).getBytes("UTF-8") + ); + + DbxRefreshResult actual = DbxRefreshResult.Reader.readFully(responseStream); + actual.setIssueTime(0); + + assertThat(actual.getAccessToken()).isEqualTo(NEW_TOKEN); + assertThat(actual.getExpiresAt()).isEqualTo(new Long(EXPIRES_IN_SECONDS * 1000)); + } + + @Test + public void testExpire() { + Long now = System.currentTimeMillis(); + assertThat(new DbxCredential(EXPIRED_TOKEN, 0L, REFRESH_TOKEN, APP.getKey(), APP + .getSecret()).aboutToExpire()).isTrue(); + assertThat(new DbxCredential(EXPIRED_TOKEN, now, REFRESH_TOKEN, APP.getKey(), APP + .getSecret()).aboutToExpire()).isTrue(); + assertThat(new DbxCredential(EXPIRED_TOKEN, now + EXPIRES_IN_SECONDS, REFRESH_TOKEN, APP.getKey() + , APP.getSecret()).aboutToExpire()).isTrue(); + try { + new DbxCredential(EXPIRED_TOKEN, null, "refresh", "appkey", null).aboutToExpire(); + } catch (IllegalArgumentException ex) { + return; + } + fail("NPE should be thrown."); + } + + @Test + public static DbxRequestConfig setupMockRequestConfig( + HttpRequestor.Response response, HttpRequestor.Uploader mockUploader) throws + IOException { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + when(mockUploader.finish()).thenReturn(response); + when(mockRequestor.startPost(anyString(), anyList())) + .thenReturn(mockUploader); + + return CONFIG.copy().withHttpRequestor(mockRequestor).build(); + } + + @Test + public void testRefreshUserClient() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + NEW_TOKEN + "\"" + + ",\"expires_in\":" + EXPIRES_IN_SECONDS + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 200, responseStream, new HashMap>()); + long currentMillis = System.currentTimeMillis(); + + // Mock requester and uploader + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + DbxRequestConfig mockConfig = setupMockRequestConfig(finishResponse, mockUploader); + + // Execute Refreshing + long expiresAtMs = currentMillis + EXPIRES_IN_SECONDS * 1000; + DbxCredential credential = new DbxCredential(EXPIRED_TOKEN, expiresAtMs, REFRESH_TOKEN, + APP.getKey(), APP.getSecret()); + DbxClientV2 client = new DbxClientV2(mockConfig, credential); + DbxRefreshResult token = client.refreshAccessToken(); + + // Get URL Param + ArgumentCaptor paramCaptor = ArgumentCaptor.forClass(byte[].class); + verify(mockUploader).upload(paramCaptor.capture()); + Map> refreshParams = toParamsMap(new String(paramCaptor.getValue(), "UTF-8")); + + // Verification + assertThat(refreshParams.get("grant_type").get(0)).isEqualTo("refresh_token"); + assertThat(refreshParams.get("refresh_token").get(0)).isEqualTo(REFRESH_TOKEN); + assertThat(refreshParams.containsKey("client_id")).isFalse(); + assertThat(credential.getAccessToken()).isEqualTo(NEW_TOKEN); + assertThat(credential.getExpiresAt()).isLessThan(expiresAtMs + OFFSET_BETWEEN_CALLS_IN_MS); + assertThat(token.getExpiresAt()).isLessThan(expiresAtMs + OFFSET_BETWEEN_CALLS_IN_MS); + } + + @Test + public void testRefreshTeamClient() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + NEW_TOKEN + "\"" + + ",\"expires_in\":" + EXPIRES_IN_SECONDS + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 200, responseStream, new HashMap>()); + long currentMillis = System.currentTimeMillis(); + + // Mock requester and uploader + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + DbxRequestConfig mockConfig = setupMockRequestConfig(finishResponse, mockUploader); + + // Execute Refreshing + long expiresAtMs = currentMillis + EXPIRES_IN_SECONDS * 1000; + DbxCredential credential = new DbxCredential(EXPIRED_TOKEN, expiresAtMs, REFRESH_TOKEN, + APP.getKey(), APP.getSecret()); + DbxTeamClientV2 client = new DbxTeamClientV2(mockConfig, credential); + DbxRefreshResult token = client.refreshAccessToken(); + + // Get URL Param + ArgumentCaptor paramCaptor = ArgumentCaptor.forClass(byte[].class); + verify(mockUploader).upload(paramCaptor.capture()); + Map> refreshParams = toParamsMap(new String(paramCaptor.getValue(), "UTF-8")); + + // Verification + assertThat(refreshParams.get("grant_type").get(0)).isEqualTo("refresh_token"); + assertThat(refreshParams.get("refresh_token").get(0)).isEqualTo(REFRESH_TOKEN); + assertThat(refreshParams.containsKey("client_id")).isFalse(); + assertThat(credential.getAccessToken()).isEqualTo(NEW_TOKEN); + assertThat(credential.getExpiresAt()).isLessThan(expiresAtMs + OFFSET_BETWEEN_CALLS_IN_MS); + assertThat(token.getExpiresAt()).isLessThan(expiresAtMs + OFFSET_BETWEEN_CALLS_IN_MS); + } + + @Test + public void testRefreshPKCE() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + NEW_TOKEN + "\"" + + ",\"expires_in\":" + EXPIRES_IN_SECONDS + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 200, responseStream, new HashMap>()); + long currentMillis = System.currentTimeMillis(); + + // Mock requester and uploader + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + DbxRequestConfig mockConfig = setupMockRequestConfig(finishResponse, mockUploader); + + // Execute Refreshing + long expiresAtMs = currentMillis + EXPIRES_IN_SECONDS * 1000; + DbxCredential credential = new DbxCredential(EXPIRED_TOKEN, expiresAtMs, REFRESH_TOKEN, + APP.getKey()); + credential.refresh(mockConfig); + + // Get URL Param + ArgumentCaptor paramCaptor = ArgumentCaptor.forClass(byte[].class); + verify(mockUploader).upload(paramCaptor.capture()); + Map> refreshParams = toParamsMap(new String(paramCaptor.getValue(), "UTF-8")); + + // Verification + assertThat(refreshParams.get("grant_type").get(0)).isEqualTo("refresh_token"); + assertThat(refreshParams.get("refresh_token").get(0)).isEqualTo(REFRESH_TOKEN); + assertThat(refreshParams.get("client_id").get(0)).isEqualTo(APP.getKey()); + assertThat(credential.getAccessToken()).isEqualTo(NEW_TOKEN); + assertThat(credential.getExpiresAt()).isLessThan(expiresAtMs + OFFSET_BETWEEN_CALLS_IN_MS); + } + + @Test + public void testDownScoping() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + NEW_TOKEN + "\"" + + ",\"expires_in\":" + EXPIRES_IN_SECONDS + + ",\"scope\":" + "\"myscope1\"" + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 200, responseStream, new HashMap>()); + long currentMilllis = System.currentTimeMillis(); + + // Mock requester and uploader + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + DbxRequestConfig mockConfig = setupMockRequestConfig(finishResponse, mockUploader); + + // Execute Refreshing + DbxCredential credential = new DbxCredential(EXPIRED_TOKEN, EXPIRES_IN_SECONDS, REFRESH_TOKEN, + APP.getKey()); + DbxRefreshResult refreshResult = credential.refresh(mockConfig, Arrays.asList("myscope1", "myscope2")); + + // Get URL Param + ArgumentCaptor paramCaptor = ArgumentCaptor.forClass(byte[].class); + verify(mockUploader).upload(paramCaptor.capture()); + Map> refreshParams = toParamsMap(new String(paramCaptor.getValue(), "UTF-8")); + + // Verification + assertThat(refreshParams.get("grant_type").get(0)).isEqualTo("refresh_token"); + assertThat(refreshParams.get("refresh_token").get(0)).isEqualTo(REFRESH_TOKEN); + assertThat(refreshParams.get("client_id").get(0)).isEqualTo(APP.getKey()); + assertThat(refreshParams.get("scope").get(0)).isEqualTo("myscope1 myscope2"); + assertThat(credential.getAccessToken()).isEqualTo(NEW_TOKEN); + assertThat(currentMilllis + EXPIRES_IN_SECONDS < credential.getExpiresAt()).isTrue(); + assertThat(refreshResult.getScope()).isEqualTo("myscope1"); + } + + @Test + public void testGrantRevoked() throws Exception{ + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"error_description\":\"refresh token is invalid or revoked\"" + + ",\"error\":\"invalid_grant\"" + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 400, responseStream, new HashMap>()); + + // Mock requester and uploader + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + DbxRequestConfig mockConfig = setupMockRequestConfig(finishResponse, mockUploader); + + // Execute Refresh + DbxCredential credential = new DbxCredential(EXPIRED_TOKEN, 100L, REFRESH_TOKEN, + APP.getKey(), APP.getSecret()); + DbxClientV2 client = new DbxClientV2(mockConfig, credential); + + try { + client.refreshAccessToken(); + } catch (DbxOAuthException e) { + assertThat(e.getDbxOAuthError().getError()).isEqualTo("invalid_grant"); + return; + } + + fail("Should not reach here."); + } + + @Test + public void testMissingScope() throws Exception { + Long now = System.currentTimeMillis(); + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"error_summary\":\"missing_scope/.\" ,\"error\":{\".tag\": \"missing_scope\", \"required_scope\": \"account.info.read\"}" + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 401, responseStream, new HashMap>()); + + // Mock requester and uploader + HttpRequestor.Uploader mockUploader = mock(HttpRequestor.Uploader.class); + DbxRequestConfig mockConfig = setupMockRequestConfig(finishResponse, mockUploader); + + DbxCredential credential = new DbxCredential(NEW_TOKEN, now +2 * DbxCredential.EXPIRE_MARGIN, + REFRESH_TOKEN, + APP.getKey(), APP.getSecret()); + DbxClientV2 client = new DbxClientV2(mockConfig, credential); + + try { + client.users().getCurrentAccount(); + fail("Should raise exception before reaching here"); + } catch (InvalidAccessTokenException ex) { + assertThat(ex.getAuthError().isMissingScope()).isTrue(); + String missingScope = ex.getAuthError().getMissingScopeValue().getRequiredScope(); + assertWithMessage("expect account.info.read, get " + missingScope).that("account.info.read").isEqualTo(missingScope); + } + } +} diff --git a/core/src/test/java/com/dropbox/core/stone/StoneSerializersTest.java b/core/src/test/java/com/dropbox/core/stone/StoneSerializersTest.java new file mode 100644 index 000000000..1015d961f --- /dev/null +++ b/core/src/test/java/com/dropbox/core/stone/StoneSerializersTest.java @@ -0,0 +1,153 @@ +package com.dropbox.core.stone; + +import static com.google.common.truth.Truth.assertThat; +import static org.testng.Assert.fail; + +import com.fasterxml.jackson.core.JsonProcessingException; + +import org.testng.annotations.Test; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import java.util.TimeZone; + +public class StoneSerializersTest { + private static final TimeZone UTC = TimeZone.getTimeZone("UTC"); + private static final String LONG_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'"; + private static final String SHORT_DATE_TIME_FORMAT = "yyyy-MM-dd"; + + @Test + public void testV2Timestamps() throws Exception { + // v2 allows 2 different formats for Stone Timestamp fields: + // + // DateTime format: Timestamp("%Y-%m-%dT%H:%M:%SZ") + // Date format: Timestamp("%Y-%m-%d") + // + // The SDKs should be able to handle both formats. + + // LONG FORMAT DESERIALIZATION + String expectedTimestamp = "2016-03-08T21:38:04Z"; + Date expected = fromTimestampString(expectedTimestamp); + Date actual = StoneSerializers.timestamp().deserialize(quoted(expectedTimestamp)); + + assertThat(actual).isEqualTo(expected); + + // LONG FORMAT SERIALIZATION + String actualTimestamp = StoneSerializers.timestamp().serialize(expected); + + assertThat(actualTimestamp).isEqualTo(quoted(expectedTimestamp)); + + // SHORT FORMAT DESERIALIZATION + String shortTimestamp = "2011-02-03"; + expected = fromTimestampString(shortTimestamp); + actual = StoneSerializers.timestamp().deserialize(quoted(shortTimestamp)); + + assertThat(actual).isEqualTo(expected); + + // SHORT FORMAT SERIALIZATION + actualTimestamp = StoneSerializers.timestamp().serialize(expected); + + // we always format to long-form + expectedTimestamp = toTimestampString(expected); + assertThat(actualTimestamp).isEqualTo(quoted(expectedTimestamp)); + } + + @Test(expectedExceptions = JsonProcessingException.class) + public void testV2BadLongTimestamp() throws Exception { + // we don't support milliseconds + StoneSerializers.timestamp().deserialize(quoted("2016-03-08T21:38:04.352+0500")); + } + + @Test(expectedExceptions = JsonProcessingException.class) + public void testV2BadShortTimestamp() throws Exception { + StoneSerializers.timestamp().deserialize(quoted("2016/03/08")); + } + + @Test + public void testDeserializeNonEmptyVoidType() throws Exception { + StoneSerializers.void_().deserialize("{\".tag\":\"foo\"}"); + StoneSerializers.void_().deserialize(quoted("bar")); + } + @Test + public void testEmptyMap() throws Exception { + Map map = new HashMap(); + String serialized = "{}"; + + StoneSerializer> serializer = StoneSerializers.map(StoneSerializers.int32()); + assertThat(serializer.serialize(map)).isEqualTo(serialized); + assertThat(serializer.deserialize(serialized)).isEqualTo(map); + } + + @Test + public void testFlatMap() throws Exception { + Map map = new HashMap() {{ + put("a", 1); + put("b", 2); + }}; + String serialized = "{\"a\":1,\"b\":2}"; + + StoneSerializer> serializer = StoneSerializers.map(StoneSerializers.int32()); + assertThat(serializer.serialize(map)).isEqualTo(serialized); + assertThat(serializer.deserialize(serialized)).isEqualTo(map); + } + + @Test + public void testNestedMap() throws Exception { + Map> map = new HashMap>() {{ + put("a", new HashMap() {{ + put("aa", 1); + }}); + put("b", new HashMap() {{ + put("bb", 2); + }}); + }}; + String serialized = "{\"a\":{\"aa\":1},\"b\":{\"bb\":2}}"; + + StoneSerializer>> serializer = + StoneSerializers.map(StoneSerializers.map(StoneSerializers.int32())); + assertThat(serializer.serialize(map)).isEqualTo(serialized); + assertThat(serializer.deserialize(serialized)).isEqualTo(map); + } + + @Test + public void testMapWithNullableValue() throws Exception { + Map map = new HashMap() {{ + put("a", null); + }}; + String serialized = "{\"a\":null}"; + + StoneSerializer> serializer = + StoneSerializers.map(StoneSerializers.nullable(StoneSerializers.string())); + assertThat(serializer.serialize(map)).isEqualTo(serialized); + assertThat(serializer.deserialize(serialized)).isEqualTo(map); + } + + private static String quoted(String value) { + return "\"" + value + "\""; + } + + private static String toTimestampString(Date date) { + SimpleDateFormat df = new SimpleDateFormat(LONG_DATE_TIME_FORMAT); + df.setTimeZone(UTC); + return df.format(date); + } + + private static Date fromTimestampString(String timestamp) { + SimpleDateFormat df; + if (timestamp.length() > SHORT_DATE_TIME_FORMAT.length()) { + df = new SimpleDateFormat(LONG_DATE_TIME_FORMAT); + } else { + df = new SimpleDateFormat(SHORT_DATE_TIME_FORMAT); + } + + df.setTimeZone(UTC); + try { + return df.parse(timestamp); + } catch (Exception ex) { + fail("invalid timestamp", ex); + return null; + } + } +} diff --git a/src/test/java/com/dropbox/core/stone/test/DataTypeSerializationTest.java b/core/src/test/java/com/dropbox/core/stone/test/DataTypeSerializationTest.java similarity index 75% rename from src/test/java/com/dropbox/core/stone/test/DataTypeSerializationTest.java rename to core/src/test/java/com/dropbox/core/stone/test/DataTypeSerializationTest.java index 9b82c3e38..e7ed038b6 100644 --- a/src/test/java/com/dropbox/core/stone/test/DataTypeSerializationTest.java +++ b/core/src/test/java/com/dropbox/core/stone/test/DataTypeSerializationTest.java @@ -1,6 +1,6 @@ package com.dropbox.core.stone.test; -import static org.testng.Assert.*; +import static com.google.common.truth.Truth.assertThat; import java.io.IOException; @@ -16,27 +16,27 @@ public void testPreClassInitializationDeserialization() throws Exception { // (e.g. no instances or fields have been accessed for this class yet) String json = "{\"reason\":{\".tag\":\"bad_feels\",\"bad_feels\":\"meh\"},\"session_id\":\"2\"}"; Uninitialized actual = Uninitialized.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.getSessionId(), "2"); - assertEquals(actual.getReason().tag(), UninitializedReason.Tag.BAD_FEELS); - assertEquals(actual.getReason().getBadFeelsValue(), BadFeel.MEH); + assertThat(actual.getSessionId()).isEqualTo("2"); + assertThat(actual.getReason().tag()).isEqualTo(UninitializedReason.Tag.BAD_FEELS); + assertThat(actual.getReason().getBadFeelsValue()).isEqualTo(BadFeel.MEH); } @Test public void testCatchAllDeserialization() throws Exception { String json = "{\".tag\":\"catch_all\",\"catch_all\":\"test_unknown_tag\"}"; NestingUnion actual = NestingUnion.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.tag(), NestingUnion.Tag.CATCH_ALL); - assertEquals(actual.getCatchAllValue(), CatchAllUnion.OTHER); + assertThat(actual.tag()).isEqualTo(NestingUnion.Tag.CATCH_ALL); + assertThat(actual.getCatchAllValue()).isEqualTo(CatchAllUnion.OTHER); json = "{\".tag\":\"catch_all\",\"catch_all\":{\".tag\":\"test_unknown_tag\",\"test\":true}}"; actual = NestingUnion.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.tag(), NestingUnion.Tag.CATCH_ALL); - assertEquals(actual.getCatchAllValue(), CatchAllUnion.OTHER); + assertThat(actual.tag()).isEqualTo(NestingUnion.Tag.CATCH_ALL); + assertThat(actual.getCatchAllValue()).isEqualTo(CatchAllUnion.OTHER); json = "\"test_unknown_tag\""; actual = NestingUnion.Serializer.INSTANCE.deserialize(json); - assertNotNull(actual); - assertEquals(actual.tag(), NestingUnion.Tag.OTHER); + assertThat(actual).isNotNull(); + assertThat(actual.tag()).isEqualTo(NestingUnion.Tag.OTHER); } @Test(expectedExceptions={IOException.class}) @@ -52,12 +52,12 @@ public void testOutOfOrderFields() throws Exception { Dimensions expected = new Dimensions(1024, 768); Dimensions actual = Dimensions.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); json = "{\"width\":1024,\"height\":768}"; actual = Dimensions.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); } @Test @@ -66,14 +66,14 @@ public void testUnknownStructFields() throws Exception { Dimensions expected = new Dimensions(1024, 768); Dimensions actual = Dimensions.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); // sometimes the order can matter. Add an unknown struct field early to see if we skip it properly json = "{\"height\":768,\"foo\":{\"bar\":[1, 2, 3],\"baz\":false},\"alpha\":0.5,\"width\":1024}"; expected = new Dimensions(1024, 768); actual = Dimensions.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); } @Test @@ -86,19 +86,19 @@ public void testDateTimestamp() throws Exception { String json = Cat.Serializer.INSTANCE.serialize(expected); Cat actual = Cat.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); // explicitly use long date json = "{\".tag\":\"cat\",\"name\":\"Mimi\",\"born\":\"2016-01-15T00:00:00Z\"}"; actual = Cat.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); // use short date json = "{\".tag\":\"cat\",\"name\":\"Mimi\",\"born\":\"2016-01-15\"}"; actual = Cat.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); } @Test @@ -117,33 +117,33 @@ public void testEnumeratedSubtypes() throws Exception { String json = Dog.Serializer.INSTANCE.serialize(dog); Pet actual = Pet.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.getClass(), Dog.class); - assertEquals(actual, dog); + assertThat(actual.getClass()).isEqualTo(Dog.class); + assertThat(actual).isEqualTo(dog); json = Cat.Serializer.INSTANCE.serialize(cat); actual = Pet.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.getClass(), Cat.class); - assertEquals(actual, cat); + assertThat(actual.getClass()).isEqualTo(Cat.class); + assertThat(actual).isEqualTo(cat); json = Fish.Serializer.INSTANCE.serialize(fish); actual = Pet.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.getClass(), Fish.class); - assertEquals(actual, fish); + assertThat(actual.getClass()).isEqualTo(Fish.class); + assertThat(actual).isEqualTo(fish); json = Pet.Serializer.INSTANCE.serialize(pet); actual = Pet.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.getClass(), Pet.class); - assertEquals(actual, pet); + assertThat(actual.getClass()).isEqualTo(Pet.class); + assertThat(actual).isEqualTo(pet); // check that we can deserialize as the specific type if necessary. json = Dog.Serializer.INSTANCE.serialize(dog); actual = Dog.Serializer.INSTANCE.deserialize(json); - assertEquals(actual.getClass(), Dog.class); - assertEquals(actual, dog); + assertThat(actual.getClass()).isEqualTo(Dog.class); + assertThat(actual).isEqualTo(dog); } @Test @@ -154,7 +154,7 @@ public void testOptionalPrimitives() throws Exception { String json = "{\".tag\":\"cat\",\"name\":\"Pusheen\"}"; Cat actual = Cat.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); // set the optional fields expected = Cat.newBuilder("Pusheen") @@ -166,20 +166,20 @@ public void testOptionalPrimitives() throws Exception { json = Cat.Serializer.INSTANCE.serialize(expected); actual = Cat.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, expected); + assertThat(actual).isEqualTo(expected); } @Test public void testUnionInheritanceSerialization() throws Exception { String actual = ChildUnion.Serializer.INSTANCE.serialize(ChildUnion.ALPHA); - assertEquals(actual, "\"alpha\""); + assertThat(actual).isEqualTo("\"alpha\""); } @Test public void testUnionInheritanceDeserialization() throws Exception { String json = "\"alpha\""; ChildUnion actual = ChildUnion.Serializer.INSTANCE.deserialize(json); - assertEquals(actual, ChildUnion.ALPHA); + assertThat(actual).isEqualTo(ChildUnion.ALPHA); } } diff --git a/core/src/test/java/com/dropbox/core/stone/test/RouteVersionTest.java b/core/src/test/java/com/dropbox/core/stone/test/RouteVersionTest.java new file mode 100644 index 000000000..7b06dc76d --- /dev/null +++ b/core/src/test/java/com/dropbox/core/stone/test/RouteVersionTest.java @@ -0,0 +1,86 @@ +package com.dropbox.core.stone.test; + +import static com.google.common.truth.Truth.assertThat; + +import org.testng.annotations.Test; + +import java.lang.reflect.Method; +import java.lang.reflect.ParameterizedType; +import java.util.Arrays; +import java.util.Date; + +public class RouteVersionTest { + @Test + public void testRpcRoutes() throws Exception { + Class c = DbxTestTestRequests.class; + Method v1 = c.getDeclaredMethod("testRoute"); + Method v2NoOpition = c.getDeclaredMethod("testRouteV2", String.class); + Method v2Option = c.getDeclaredMethod("testRouteV2", String.class, Date.class); + + // Test exception + assertThat(Arrays.asList(v1.getExceptionTypes()).contains(ParentUnionException.class)).isFalse(); + assertThat(Arrays.asList(v2NoOpition.getExceptionTypes()).contains(ParentUnionException.class)).isTrue(); + assertThat(Arrays.asList(v2Option.getExceptionTypes()).contains(ParentUnionException.class)).isTrue(); + } + + @Test + public void testUploadRoutes() throws Exception { + Class c = DbxTestTestRequests.class; + Method v1 = c.getDeclaredMethod("testUpload", UninitializedReason.class, String.class); + Method v2NoBuilder = c.getDeclaredMethod("testUploadV2", String.class, String.class); + Method v2Builder = c.getDeclaredMethod("testUploadV2Builder", String.class, String.class); + Method v3Builder = c.getDeclaredMethod("testUploadV3Builder", String.class, String.class); + + // Test return value + assertThat(v1.getReturnType()).isEqualTo(TestUploadUploader.class); + assertThat(v2NoBuilder.getReturnType()).isEqualTo(TestUploadV2Uploader.class); + assertThat(v2Builder.getReturnType()).isEqualTo(TestUploadV2Builder.class); + assertThat(v3Builder.getReturnType()).isEqualTo(DbxTestTestUploadV3Builder.class); + + // Test builder + TestUploadV2Builder.class.getDeclaredMethod("withBorn", Date.class); + TestUploadV2Builder.class.getDeclaredMethod("withSize", DogSize.class); + Method start2 = TestUploadV2Builder.class.getDeclaredMethod("start"); + assertThat(Arrays.asList(start2.getExceptionTypes())).contains(ParentUnionException.class); + + // Test return value of uploader from generic type + ParameterizedType genericV1 = (ParameterizedType)TestUploadUploader.class.getGenericSuperclass(); + assertThat(genericV1.getActualTypeArguments()[1]).isEqualTo(Void.class); + ParameterizedType genericV2 = (ParameterizedType)TestUploadV2Uploader.class.getGenericSuperclass(); + assertThat(genericV2.getActualTypeArguments()[1]).isEqualTo(ParentUnion.class); + + // Test exception from generic type + assertThat(genericV1.getActualTypeArguments()[1]).isEqualTo(Void.class); + assertThat(genericV2.getActualTypeArguments()[1]).isEqualTo(ParentUnion.class); + + // Test builder with multiple auth types has prefix + DbxTestTestUploadV3Builder.class.getDeclaredMethod("withBorn", Date.class); + DbxTestTestUploadV3Builder.class.getDeclaredMethod("withSize", DogSize.class); + Method start3 = DbxTestTestUploadV3Builder.class.getDeclaredMethod("start"); + assertThat(Arrays.asList(start3.getExceptionTypes())).contains(ParentUnionException.class); + } + + @Test + public void testDownloadRoutes() throws Exception { + Class c = DbxTestTestRequests.class; + Method v1NoBuilder = c.getDeclaredMethod("testDownload", String.class, String.class); + Method v1Builder = c.getDeclaredMethod("testDownloadBuilder", String.class, String.class); + Method v2NoBuilder = c.getDeclaredMethod("testDownloadV2", UninitializedReason.class, String.class); + Method v2Builder = c.getDeclaredMethod("testDownloadV2Builder", UninitializedReason.class, String.class); + + // Test return type + assertThat(v1Builder.getReturnType()).isEqualTo(TestDownloadBuilder.class); + assertThat(v2Builder.getReturnType()).isEqualTo(TestDownloadV2Builder.class); + + // Test return type from generic type + ParameterizedType genericV1 = (ParameterizedType)TestDownloadBuilder.class.getGenericSuperclass(); + assertThat(genericV1.getActualTypeArguments()[0]).isEqualTo(Fish.class); + ParameterizedType genericV2 = (ParameterizedType)TestDownloadV2Builder.class.getGenericSuperclass(); + assertThat(genericV2.getActualTypeArguments()[0]).isEqualTo(Fish.class); + + + // Test exception type + assertThat(Arrays.asList(v1NoBuilder.getExceptionTypes())).doesNotContain(ParentUnionException.class); + assertThat(Arrays.asList(v2NoBuilder.getExceptionTypes())).contains(ParentUnionException.class); + } +} diff --git a/src/test/java/com/dropbox/core/util/StringUtilTest.java b/core/src/test/java/com/dropbox/core/util/StringUtilTest.java similarity index 100% rename from src/test/java/com/dropbox/core/util/StringUtilTest.java rename to core/src/test/java/com/dropbox/core/util/StringUtilTest.java diff --git a/src/test/java/com/dropbox/core/v1/DbxClientV1IT.java b/core/src/test/java/com/dropbox/core/v1/DbxClientV1IT.java similarity index 77% rename from src/test/java/com/dropbox/core/v1/DbxClientV1IT.java rename to core/src/test/java/com/dropbox/core/v1/DbxClientV1IT.java index 8c5cb3ac4..7dfdad94f 100644 --- a/src/test/java/com/dropbox/core/v1/DbxClientV1IT.java +++ b/core/src/test/java/com/dropbox/core/v1/DbxClientV1IT.java @@ -1,7 +1,8 @@ package com.dropbox.core.v1; -import static org.testng.Assert.*; import static com.dropbox.core.util.StringUtil.jq; +import static com.google.common.truth.Truth.assertThat; +import static com.google.common.truth.Truth.assertWithMessage; import com.dropbox.core.DbxStreamWriter; import com.dropbox.core.ITUtil; @@ -36,7 +37,7 @@ public class DbxClientV1IT { private void setup() throws Exception { this.client = ITUtil.newClientV1(); this.testFolder = ITUtil.root(DbxClientV1IT.class); - assertNotNull(client.createFolder(testFolder)); + assertThat(client.createFolder(testFolder)).isNotNull(); } @AfterMethod @@ -70,15 +71,15 @@ public void testUploadAndDownload() throws Exception { String remotePath = p("test-fil" + E_ACCENT + ".txt"); DbxEntry.File up = client.uploadFile(remotePath, DbxWriteMode.add(), contents.length, new ByteArrayInputStream(contents)); - assertEquals(up.path, remotePath); - assertEquals(up.numBytes, contents.length); + assertThat(up.path).isEqualTo(remotePath); + assertThat(up.numBytes).isEqualTo(contents.length); ByteArrayOutputStream downBodyStream = new ByteArrayOutputStream(); DbxEntry.File down = client.getFile(remotePath, null, downBodyStream); byte[] downBody = downBodyStream.toByteArray(); - assertEquals(up.numBytes, down.numBytes); - assertEquals(up.numBytes, downBody.length); + assertThat(up.numBytes).isEqualTo(down.numBytes); + assertThat(up.numBytes).isEqualTo(downBody.length); } private DbxEntry.File addFile(String path, int length) throws Exception { @@ -105,32 +106,32 @@ public void testMetadata() throws Exception { { DbxEntry entry = client.getMetadata(p("a.txt")); - assertEquals(entry.path, p("a.txt")); - assertTrue(entry instanceof DbxEntry.File); + assertThat(entry.path).isEqualTo(p("a.txt")); + assertThat(entry instanceof DbxEntry.File).isTrue(); DbxEntry.File f = (DbxEntry.File) entry; - assertEquals(f.numBytes, 100); + assertThat(f.numBytes).isEqualTo(100); DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p("a.txt")); - assertEquals(mwc.entry, entry); + assertThat(mwc.entry).isEqualTo(entry); } // Containing folder. { DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 1); + assertThat(mwc.children.size()).isEqualTo(1); // Folder metadata should be the same if we call /metadata again. Maybe r2 = client.getMetadataWithChildrenIfChanged(p(), mwc.hash); - assertTrue(r2.isNothing()); + assertThat(r2.isNothing()).isTrue(); } // File not found. { DbxEntry entry = client.getMetadata(p("does not exists.txt")); - assertNull(entry); + assertThat(entry).isNull(); DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p("does not exist.txt")); - assertNull(mwc); + assertThat(mwc).isNull(); } } @@ -145,8 +146,8 @@ public void testDelta() throws Exception { // Get latest cursors before modifying dropbox folders String latestCursor = client.getDeltaLatestCursor(); String latestCursorWithPath = client.getDeltaLatestCursorWithPathPrefix(p("b")); - assertNotNull(latestCursor); - assertNotNull(latestCursorWithPath); + assertThat(latestCursor).isNotNull(); + assertThat(latestCursorWithPath).isNotNull(); DbxEntry.Folder top = (DbxEntry.Folder) client.getMetadata(p()); DbxEntry.File a = addFile(p("a.txt"), 10); @@ -167,16 +168,16 @@ public void testDelta() throws Exception { DbxDelta d = client.getDelta(cursor); for (DbxDelta.Entry e : d.entries) { if (e.lcPath.startsWith(lcPrefix+"/") || e.lcPath.equals(lcPrefix)) { - assertNotNull(e.metadata); // We shouldn't see deletes in our test folder. + assertThat(e.metadata).isNotNull(); // We shouldn't see deletes in our test folder. boolean removed = expected.remove(e.metadata); - assertTrue(removed); + assertThat(removed).isTrue(); } } cursor = d.cursor; if (!d.hasMore) break; } - assertEquals(expected.size(), 0); + assertThat(expected.size()).isEqualTo(0); } // getDeltaWithPathPrefix @@ -189,16 +190,16 @@ public void testDelta() throws Exception { while (true) { DbxDelta d = client.getDeltaWithPathPrefix(cursor, prefix); for (DbxDelta.Entry e : d.entries) { - assertTrue(e.lcPath.startsWith(lcPrefix+"/") || e.lcPath.equals(lcPrefix)); - assertNotNull(e.metadata); // We should never see deletes. + assertThat(e.lcPath.startsWith(lcPrefix+"/") || e.lcPath.equals(lcPrefix)).isTrue(); + assertThat(e.metadata).isNotNull(); // We should never see deletes. boolean removed = expected.remove(e.metadata); - assertTrue(removed); + assertThat(removed).isTrue(); } cursor = d.cursor; if (!d.hasMore) break; } - assertEquals(expected.size(), 0); + assertThat(expected.size()).isEqualTo(0); } // Test latest cursor responses @@ -209,16 +210,16 @@ public void testDelta() throws Exception { while (true) { DbxDelta d = client.getDelta(cursor); for (DbxDelta.Entry e : d.entries) { - assertTrue(e.lcPath.startsWith(lcPrefix+"/") || e.lcPath.equals(lcPrefix)); - assertNotNull(e.metadata); // We shouldn't see deletes in our test folder. + assertThat(e.lcPath.startsWith(lcPrefix+"/") || e.lcPath.equals(lcPrefix)).isTrue(); + assertThat(e.metadata).isNotNull(); // We shouldn't see deletes in our test folder. boolean removed = expected.remove(e.metadata); - assertTrue(removed); + assertThat(removed).isTrue(); } cursor = d.cursor; if (!d.hasMore) break; } - assertEquals(expected.size(), 0); + assertThat(expected.size()).isEqualTo(0); } // Test latest cursor with path prefix @@ -231,22 +232,22 @@ public void testDelta() throws Exception { while (true) { DbxDelta d = client.getDeltaWithPathPrefix(cursor, prefix); for (DbxDelta.Entry e : d.entries) { - assertTrue(e.lcPath.startsWith(lcPrefix+"/") || e.lcPath.equals(lcPrefix)); - assertNotNull(e.metadata); // We should never see deletes. + assertThat(e.lcPath.startsWith(lcPrefix+"/") || e.lcPath.equals(lcPrefix)).isTrue(); + assertThat(e.metadata).isNotNull(); // We should never see deletes. boolean removed = expected.remove(e.metadata); - assertTrue(removed); + assertThat(removed).isTrue(); } cursor = d.cursor; if (!d.hasMore) break; } - assertEquals(expected.size(), 0); + assertThat(expected.size()).isEqualTo(0); } // Test longpoll_delta { DbxLongpollDeltaResult longpollDelta = client.getLongpollDelta(latestCursor, 30); - assertTrue(longpollDelta.mightHaveChanges); + assertThat(longpollDelta.mightHaveChanges).isTrue(); } } @@ -255,23 +256,23 @@ public void testRevisionsAndRestore() throws Exception { String path = p("r"+E_ACCENT+"visions.txt"); DbxEntry.File e2 = uploadFile(path, 100, DbxWriteMode.force()); - assertEquals(client.getRevisions(path).size(), 1); + assertThat(client.getRevisions(path).size()).isEqualTo(1); client.delete(path); - assertEquals(client.getRevisions(path).size(), 1); + assertThat(client.getRevisions(path).size()).isEqualTo(1); DbxEntry.File e1 = uploadFile(path, 200, DbxWriteMode.force()); DbxEntry.File e0 = uploadFile(path, 300, DbxWriteMode.force()); List mds = client.getRevisions(path); - assertEquals(mds.size(), 3); + assertThat(mds.size()).isEqualTo(3); - assertEquals(mds.get(0), e0); - assertEquals(mds.get(1), e1); - assertEquals(mds.get(2), e2); + assertThat(mds.get(0)).isEqualTo(e0); + assertThat(mds.get(1)).isEqualTo(e1); + assertThat(mds.get(2)).isEqualTo(e2); DbxEntry.File r1 = client.restoreFile(path, e1.rev); - assertEquals(r1.numBytes, e1.numBytes); + assertThat(r1.numBytes).isEqualTo(e1.numBytes); DbxEntry.File r2 = client.restoreFile(path, e2.rev); - assertEquals(r2.numBytes, e2.numBytes); + assertThat(r2.numBytes).isEqualTo(e2.numBytes); } @Test @@ -283,14 +284,14 @@ public void testSearch() throws Exception { List results; results = client.searchFileAndFolderNames(p(), "search"); - assertEquals(results.size(), 2); + assertThat(results.size()).isEqualTo(2); results = client.searchFileAndFolderNames(p("sub"), "search"); - assertEquals(results.size(), 1); + assertThat(results.size()).isEqualTo(1); results = client.searchFileAndFolderNames(p(), "a.txt"); - assertEquals(results.size(), 1); - assertEquals(results.get(0).name, "search - a.txt"); + assertThat(results.size()).isEqualTo(1); + assertThat(results.get(0).name).isEqualTo("search - a.txt"); } private static byte[] downloadUrl(String urlS) throws Exception { @@ -314,7 +315,7 @@ public void testSharableUrl() throws Exception { // Preview page should be larger than the original content. byte[] previewPage = downloadUrl(previewUrl.toString()); - assertTrue(previewPage.length > contents.length); + assertThat(previewPage.length > contents.length).isTrue(); // Direct download should match exactly. URL directUrl = new URL( @@ -324,7 +325,7 @@ public void testSharableUrl() throws Exception { previewUrl.getFile() ); byte[] directContents = downloadUrl(directUrl.toString()); - assertEquals(directContents, contents); + assertThat(directContents).isEqualTo(contents); } @Test @@ -336,7 +337,7 @@ public void testTemporaryDirectUrl() throws Exception { DbxUrlWithExpiration uwe = client.createTemporaryDirectUrl(path); byte[] downloadedContents = downloadUrl(uwe.url); - assertEquals(downloadedContents, contents); + assertThat(downloadedContents).isEqualTo(contents); } @Test @@ -349,10 +350,10 @@ public void testCopyRefFile() throws Exception { String copyRef = client.createCopyRef(source); DbxEntry.File destMd = client.copyFromCopyRef(copyRef, dest).asFile(); - assertEquals(size, destMd.numBytes); + assertThat(size).isEqualTo(destMd.numBytes); DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 2); + assertThat(mwc.children.size()).isEqualTo(2); } @Test @@ -366,11 +367,11 @@ public void testCopyRefFolder() throws Exception { String copyRef = client.createCopyRef(source); DbxEntry r = client.copyFromCopyRef(copyRef, dest); - assertTrue(r.isFolder()); - assertEquals(r.path, dest); + assertThat(r.isFolder()).isTrue(); + assertThat(r.path).isEqualTo(dest); DbxEntry.WithChildren c = client.getMetadataWithChildren(dest); - assertEquals(c.children.size(), 2); + assertThat(c.children.size()).isEqualTo(2); } @Test @@ -382,11 +383,11 @@ public void testCopyRefEmptyFolder() throws Exception { String copyRef = client.createCopyRef(source); DbxEntry r = client.copyFromCopyRef(copyRef, dest); - assertTrue(r.isFolder()); - assertEquals(r.path, dest); + assertThat(r.isFolder()).isTrue(); + assertThat(r.path).isEqualTo(dest); DbxEntry.WithChildren c = client.getMetadataWithChildren(dest); - assertEquals(c.children.size(), 0); + assertThat(c.children.size()).isEqualTo(0); } @Test @@ -406,7 +407,7 @@ public void testPhotoInfo() throws Exception { finally { IOUtil.closeInput(in); } - assertEquals(uploadEntry.path.toLowerCase(), orig.toLowerCase()); + assertThat(uploadEntry.path.toLowerCase()).isEqualTo(orig.toLowerCase()); // Get metadata with photo info (keep trying until photo info is available) int maxTries = 30; @@ -422,12 +423,12 @@ public void testPhotoInfo() throws Exception { if (origEntry.photoInfo == DbxEntry.File.PhotoInfo.PENDING) break; } - assertEquals(origEntry.path.toLowerCase(), orig.toLowerCase()); - assertNotNull(origEntry.photoInfo); + assertThat(origEntry.path.toLowerCase()).isEqualTo(orig.toLowerCase()); + assertThat(origEntry.photoInfo).isNotNull(); // List folder with photo info. DbxEntry.File childEntry = client.getMetadataWithChildren(folder, true).children.get(0).asFile(); - assertEquals(childEntry, origEntry); + assertThat(childEntry).isEqualTo(origEntry); } @Test @@ -470,19 +471,19 @@ public void testThumbnail() throws Exception { DbxEntry.File md = client.getThumbnail(size, format, orig, null, out); byte[] data = out.toByteArray(); - assertEquals(removeMediaInfo(origMD), removeMediaInfo(md)); + assertThat(removeMediaInfo(origMD)).isEqualTo(removeMediaInfo(md)); // We're getting bigger and bigger thumbnails, so they should have more bytes // than the previous ones. - assertTrue(data.length > prevSize); + assertThat(data.length > prevSize).isTrue(); reader.setInput(new MemoryCacheImageInputStream(new ByteArrayInputStream(data))); int w = reader.getWidth(0); int h = reader.getHeight(0); int expectedW = Math.min(size.width, origW); int expectedH = Math.min(size.width, origH); - assertTrue((w == expectedW && h <= expectedH) || (h == expectedH && w <= expectedW), - "expected = " + expectedW + "x" + expectedH + ", got = " + w + "x" + h); + assertWithMessage("expected = " + expectedW + "x" + expectedH + ", got = " + w + "x" + h) + .that((w == expectedW && h <= expectedH) || (h == expectedH && w <= expectedW)).isTrue(); } } } @@ -509,7 +510,7 @@ private static ImageReader getImageReaderForFormat(DbxThumbnailFormat format) { public void testChunkedUpload() throws Exception { byte[] contents = StringUtil.stringToUtf8("A simple test file"); int chunkSize = 7; - assertNotEquals(contents.length % chunkSize, 0); // Make sure the last chunk is not full-sized. + assertThat(contents.length % chunkSize).isNotEqualTo(0); // Make sure the last chunk is not full-sized. // Pass in the correct file size. @@ -517,15 +518,15 @@ public void testChunkedUpload() throws Exception { String remotePath = p("test-fil" + E_ACCENT + ".txt"); DbxEntry.File up = client.uploadFileChunked(chunkSize, remotePath, DbxWriteMode.add(), contents.length, new DbxStreamWriter.ByteArrayCopier(contents)); - assertEquals(up.path, remotePath); - assertEquals(up.numBytes, contents.length); + assertThat(up.path).isEqualTo(remotePath); + assertThat(up.numBytes).isEqualTo(contents.length); ByteArrayOutputStream downBodyStream = new ByteArrayOutputStream(); DbxEntry.File down = client.getFile(remotePath, null, downBodyStream); byte[] downBody = downBodyStream.toByteArray(); - assertEquals(up.numBytes, down.numBytes); - assertEquals(downBody, contents); + assertThat(up.numBytes).isEqualTo(down.numBytes); + assertThat(downBody).isEqualTo(contents); } // Pass in "-1" for file size. @@ -533,15 +534,15 @@ public void testChunkedUpload() throws Exception { String remotePath = p("test-fil" + E_ACCENT + "-2.txt"); DbxEntry.File up = client.uploadFileChunked(chunkSize, remotePath, DbxWriteMode.add(), -1, new DbxStreamWriter.ByteArrayCopier(contents)); - assertEquals(up.path, remotePath); - assertEquals(up.numBytes, contents.length); + assertThat(up.path).isEqualTo(remotePath); + assertThat(up.numBytes).isEqualTo(contents.length); ByteArrayOutputStream downBodyStream = new ByteArrayOutputStream(); DbxEntry.File down = client.getFile(remotePath, null, downBodyStream); byte[] downBody = downBodyStream.toByteArray(); - assertEquals(up.numBytes, down.numBytes); - assertEquals(downBody, contents); + assertThat(up.numBytes).isEqualTo(down.numBytes); + assertThat(downBody).isEqualTo(contents); } // Try uploading a file that is smaller than the first chunk. @@ -549,15 +550,15 @@ public void testChunkedUpload() throws Exception { String remotePath = p("test-fil" + E_ACCENT + "-3.txt"); DbxEntry.File up = client.uploadFileChunked(contents.length + 2, remotePath, DbxWriteMode.add(), -1, new DbxStreamWriter.ByteArrayCopier(contents)); - assertEquals(up.path, remotePath); - assertEquals(up.numBytes, contents.length); + assertThat(up.path).isEqualTo(remotePath); + assertThat(up.numBytes).isEqualTo(contents.length); ByteArrayOutputStream downBodyStream = new ByteArrayOutputStream(); DbxEntry.File down = client.getFile(remotePath, null, downBodyStream); byte[] downBody = downBodyStream.toByteArray(); - assertEquals(up.numBytes, down.numBytes); - assertEquals(downBody, contents); + assertThat(up.numBytes).isEqualTo(down.numBytes); + assertThat(downBody).isEqualTo(contents); } } @@ -569,11 +570,11 @@ public void testCopyFile() throws Exception { addFile(source, size); DbxEntry.File md = client.copy(source, dest).asFile(); - assertEquals(md.numBytes, size); - assertEquals(md.path, dest); + assertThat(md.numBytes).isEqualTo(size); + assertThat(md.path).isEqualTo(dest); DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 2); + assertThat(mwc.children.size()).isEqualTo(2); } @Test @@ -586,11 +587,11 @@ public void testCopyFolder() throws Exception { String dest = p("copied folder"); DbxEntry r = client.copy(source, dest); - assertTrue(r.isFolder()); - assertEquals(r.path, dest); + assertThat(r.isFolder()).isTrue(); + assertThat(r.path).isEqualTo(dest); DbxEntry.WithChildren c = client.getMetadataWithChildren(dest); - assertEquals(c.children.size(), 2); + assertThat(c.children.size()).isEqualTo(2); } @Test @@ -601,24 +602,24 @@ public void testCopyEmptyFolder() throws Exception { String dest = p("copied empty folder"); DbxEntry r = client.copy(source, dest); - assertTrue(r.isFolder()); - assertEquals(r.path, dest); + assertThat(r.isFolder()).isTrue(); + assertThat(r.path).isEqualTo(dest); DbxEntry.WithChildren c = client.getMetadataWithChildren(dest); - assertEquals(c.children.size(), 0); + assertThat(c.children.size()).isEqualTo(0); } @Test public void testCreateFolder() throws Exception { DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 0); + assertThat(mwc.children.size()).isEqualTo(0); client.createFolder(p("a")); mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 1); + assertThat(mwc.children.size()).isEqualTo(1); DbxEntry folderMd = client.getMetadata(p("a")); - assertTrue(folderMd.isFolder()); + assertThat(folderMd.isFolder()).isTrue(); } @Test @@ -630,7 +631,7 @@ public void testDelete() throws Exception { client.delete(path); DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 0); + assertThat(mwc.children.size()).isEqualTo(0); } @Test @@ -641,13 +642,13 @@ public void testMoveFile() throws Exception { addFile(source, size); DbxEntry.WithChildren mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 1); + assertThat(mwc.children.size()).isEqualTo(1); DbxEntry.File destMd = client.move(source, dest).asFile(); - assertEquals(destMd.numBytes, size); + assertThat(destMd.numBytes).isEqualTo(size); mwc = client.getMetadataWithChildren(p()); - assertEquals(mwc.children.size(), 1); + assertThat(mwc.children.size()).isEqualTo(1); } @Test @@ -660,15 +661,15 @@ public void testMoveFolder() throws Exception { String dest = p("moved folder"); DbxEntry r = client.move(source, dest); - assertTrue(r.isFolder()); - assertEquals(r.path, dest); + assertThat(r.isFolder()).isTrue(); + assertThat(r.path).isEqualTo(dest); DbxEntry.WithChildren c = client.getMetadataWithChildren(dest); - assertEquals(c.children.size(), 2); + assertThat(c.children.size()).isEqualTo(2); // Make sure source is now gone. DbxEntry deleted = client.getMetadata(source); - assertTrue(deleted == null); + assertThat(deleted == null).isTrue(); } @Test @@ -679,14 +680,14 @@ public void testMoveEmptyFolder() throws Exception { String dest = p("moved empty folder"); DbxEntry r = client.move(source, dest); - assertTrue(r.isFolder()); - assertEquals(r.path, dest); + assertThat(r.isFolder()).isTrue(); + assertThat(r.path).isEqualTo(dest); DbxEntry.WithChildren c = client.getMetadataWithChildren(dest); - assertEquals(c.children.size(), 0); + assertThat(c.children.size()).isEqualTo(0); // Make sure source is now gone. DbxEntry deleted = client.getMetadata(source); - assertTrue(deleted == null); + assertThat(deleted == null).isTrue(); } } diff --git a/src/test/java/com/dropbox/core/v1/DbxClientV1Test.java b/core/src/test/java/com/dropbox/core/v1/DbxClientV1Test.java similarity index 92% rename from src/test/java/com/dropbox/core/v1/DbxClientV1Test.java rename to core/src/test/java/com/dropbox/core/v1/DbxClientV1Test.java index 3d7607056..5d65cbbf4 100644 --- a/src/test/java/com/dropbox/core/v1/DbxClientV1Test.java +++ b/core/src/test/java/com/dropbox/core/v1/DbxClientV1Test.java @@ -1,7 +1,8 @@ package com.dropbox.core.v1; +import static com.google.common.truth.Truth.assertThat; +import static com.google.common.truth.Truth.assertWithMessage; import static org.mockito.Mockito.*; -import static org.testng.Assert.*; import static com.dropbox.core.v1.DbxClientV1.Downloader; import com.dropbox.core.http.HttpRequestor; @@ -11,9 +12,9 @@ import com.dropbox.core.RetryException; import com.dropbox.core.util.IOUtil; +import org.mockito.ArgumentMatchers; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import org.mockito.Matchers; import org.testng.annotations.Test; import java.io.ByteArrayInputStream; @@ -84,13 +85,13 @@ public void testRetrySuccess() throws DbxException, IOException { // no way easy way to properly test this, but request should // have taken AT LEAST 3 seconds due to backoff. - assertTrue((end - start) >= 3000L, "duration: " + (end - start) + " millis"); + assertWithMessage("duration: " + (end - start) + " millis").that((end - start) >= 3000L).isTrue(); // should have been called 4 times: initial call + 3 retries verify(mockRequestor, times(4)).startPost(anyString(), anyHeaders()); - assertEquals(actual.reset, true); - assertEquals(actual.cursor, "fakeCursor"); + assertThat(actual.reset).isTrue(); + assertThat(actual.cursor).isEqualTo("fakeCursor"); } @Test(expectedExceptions = RetryException.class) @@ -150,7 +151,7 @@ public void testRetryDownload() throws DbxException, IOException { // load File metadata json InputStream in = getClass().getResourceAsStream("/file-with-photo-info.json"); - assertNotNull(in); + assertThat(in).isNotNull(); String metadataJson = IOUtil.toUtf8String(in); byte [] expected = new byte [] { 1, 2, 3, 4 }; @@ -174,8 +175,8 @@ public void testRetryDownload() throws DbxException, IOException { IOUtil.copyStreamToStream(downloader.body, bout); byte [] actual = bout.toByteArray(); - assertEquals(actual, expected); - assertEquals(downloader.metadata.path, "/Photos/Sample Album/Boston City Flow.jpg"); + assertThat(actual).isEqualTo(expected); + assertThat(downloader.metadata.path).isEqualTo("/Photos/Sample Album/Boston City Flow.jpg"); } private static HttpRequestor.Response createEmptyResponse(int statusCode) { @@ -183,7 +184,7 @@ private static HttpRequestor.Response createEmptyResponse(int statusCode) { return new HttpRequestor.Response( statusCode, new ByteArrayInputStream(body), - Collections.>emptyMap() + Collections.emptyMap() ); } @@ -226,7 +227,7 @@ public OutputStream answer(InvocationOnMock invocation) { } private static Map> headers(String name, String value, String ... rest) { - assertTrue(rest.length % 2 == 0); + assertThat(rest.length % 2 == 0).isTrue(); Map> headers = new TreeMap>(String.CASE_INSENSITIVE_ORDER); List values = new ArrayList(); @@ -247,6 +248,6 @@ private static Map> headers(String name, String value, Stri } private static Iterable anyHeaders() { - return Matchers.>any(); + return ArgumentMatchers.anyIterable(); } } diff --git a/core/src/test/java/com/dropbox/core/v2/DbxClientV2IT.java b/core/src/test/java/com/dropbox/core/v2/DbxClientV2IT.java new file mode 100644 index 000000000..d1a3e456d --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/DbxClientV2IT.java @@ -0,0 +1,342 @@ +package com.dropbox.core.v2; + +import static com.google.common.truth.Truth.assertThat; +import static com.google.common.truth.Truth.assertWithMessage; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.util.Date; +import java.util.Locale; + +import com.dropbox.core.util.IOUtil.ProgressListener; +import org.testng.annotations.Test; + +import com.dropbox.core.BadRequestException; +import com.dropbox.core.DbxApiException; +import com.dropbox.core.DbxDownloader; +import com.dropbox.core.ITUtil; +import com.dropbox.core.v2.files.FileMetadata; +import com.dropbox.core.v2.files.GetMetadataError; +import com.dropbox.core.v2.files.GetMetadataErrorException; +import com.dropbox.core.v2.files.LookupError; +import com.dropbox.core.v2.files.Metadata; +import com.dropbox.core.v2.files.WriteMode; +import com.dropbox.core.v2.users.BasicAccount; +import com.dropbox.core.v2.users.FullAccount; + +public class DbxClientV2IT { + @Test + public void testAccountInfo() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(); + + FullAccount full = client.users().getCurrentAccount(); + assertThat(full).isNotNull(); + assertThat(full.getName()).isNotNull(); + assertThat(full.getAccountId()).isNotNull(); + + BasicAccount basic = client.users().getAccount(full.getAccountId()); + assertThat(basic).isNotNull(); + assertThat(basic.getName()).isNotNull(); + assertThat(basic.getAccountId()).isEqualTo(full.getAccountId()); + } + + @Test + public void testUploadAndDownload() throws Exception { + testUploadAndDownload(ITUtil.newClientV2(), false); + } + + @Test + public void testUploadAndDownloadWithProgress() throws Exception { + + testUploadAndDownload(ITUtil.newClientV2(), true); + } + + @Test + public void testOkHttpClientStreamingUpload() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(ITUtil.newRequestConfig() + .withHttpRequestor(ITUtil.newOkHttpRequestor()) + .build() + ); + testUploadAndDownload(client, false); + } + + @Test + public void testOkHttp3ClientStreamingUpload() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(ITUtil.newRequestConfig() + .withHttpRequestor(ITUtil.newOkHttp3Requestor()) + .build() + ); + testUploadAndDownload(client, false); + } + + @Test + public void testOkHttp3ClientStreamingUploadWithProgress() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(ITUtil.newRequestConfig() + .withHttpRequestor(ITUtil.newOkHttp3Requestor()) + .build() + ); + testUploadAndDownload(client, true); + } + + private void testUploadAndDownload(DbxClientV2 client, boolean trackProgress) throws Exception { + final byte [] contents = ITUtil.randomBytes(1024 << 8); + String filename = "testUploadAndDownload.dat"; + String path = ITUtil.path(getClass(), "/" + filename); + + ProgressListener progressListener = null; + if (trackProgress) { + progressListener = createTestListener(contents.length); + } + + FileMetadata metadata = client.files().uploadBuilder(path) + .withAutorename(false) + .withMode(WriteMode.ADD) + .withMute(true) + .uploadAndFinish(new ByteArrayInputStream(contents), progressListener); + + assertThat(metadata.getName()).isEqualTo(filename); + assertThat(metadata.getPathLower()).isEqualTo(path.toLowerCase()); + assertThat(metadata.getSize()).isEqualTo(contents.length); + + Metadata actual = client.files().getMetadata(path); + assertWithMessage(actual.getClass().getCanonicalName()).that(actual instanceof FileMetadata).isTrue(); + + try { + assertThat(actual).isEqualTo(metadata); + + if (trackProgress) { + progressListener = createTestListener(contents.length); + } + + DbxDownloader downloader = client.files().download(path); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + downloader.download(out, progressListener); + + byte[] actualContents = out.toByteArray(); + FileMetadata actualResult = downloader.getResult(); + + assertThat(actualResult).isEqualTo(metadata); + assertThat(actualContents).isEqualTo(contents); + assertThat(downloader.getContentType()).isEqualTo("application/octet-stream"); + } catch (AssertionError e) { + // so subsequent tests don't fail due to file not being cleaned up + client.files().deleteV2(path).getMetadata(); + throw e; + } + + Metadata deleted = client.files().deleteV2(path).getMetadata(); + assertThat(deleted).isEqualTo(metadata); + } + + @Test + public void testRangeDownload() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(); + + byte [] contents = ITUtil.randomBytes(500); + String path = ITUtil.path(getClass(), "/testRangeDownload.dat"); + + FileMetadata metadata = client.files().uploadBuilder(path) + .withAutorename(false) + .withMode(WriteMode.OVERWRITE) + .withMute(true) + .uploadAndFinish(new ByteArrayInputStream(contents)); + + assertThat(metadata.getSize()).isEqualTo(contents.length); + + assertRangeDownload(client, path, contents, 0, contents.length); + assertRangeDownload(client, path, contents, 0, 200); + assertRangeDownload(client, path, contents, 300, 200); + assertRangeDownload(client, path, contents, 499, 1); + assertRangeDownload(client, path, contents, 0, 600); + assertRangeDownload(client, path, contents, 250, null); + } + + @Test + public void testDownloadBuilder() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(); + String now = ITUtil.format(new Date()); + + byte [] rtfV1 = ITUtil.toBytes("{\rtf1 sample {\b v1} (" + now + ")}"); + byte [] rtfV2 = ITUtil.toBytes("{\rtf1 sample {\b v2} (" + now + ")}"); + + String path = ITUtil.path(getClass(), "/testDownloadBuilder/" + now + ".rtf"); + + FileMetadata metadataV1 = client.files().uploadBuilder(path) + .withAutorename(false) + .withMode(WriteMode.ADD) + .withMute(true) + .uploadAndFinish(new ByteArrayInputStream(rtfV1)); + + assertThat(metadataV1.getPathLower()).isEqualTo(path.toLowerCase()); + + FileMetadata metadataV2 = client.files().uploadBuilder(path) + .withAutorename(false) + .withMode(WriteMode.OVERWRITE) + .withMute(true) + .uploadAndFinish(new ByteArrayInputStream(rtfV2)); + + assertThat(metadataV2.getPathLower()).isEqualTo(path.toLowerCase()); + + // ensure we have separate revisions + assertThat(metadataV1.getRev()).isNotEqualTo(metadataV2.getRev()); + + // now use download builder to set revision and make sure it works properly + ByteArrayOutputStream out = new ByteArrayOutputStream(); + client.files().downloadBuilder(path) + .withRev(metadataV1.getRev()) + .download(out); + assertThat(out.toByteArray()).isEqualTo(rtfV1); + + out = new ByteArrayOutputStream(); + client.files().downloadBuilder(path) + .withRev(metadataV2.getRev()) + .download(out); + assertThat(out.toByteArray()).isEqualTo(rtfV2); + + // ensure we still keep the non-builder optional route in our generator (for + // backwards-compatibility) + out = new ByteArrayOutputStream(); + client.files().download(path, metadataV1.getRev()).download(out); + assertThat(out.toByteArray()).isEqualTo(rtfV1); + + out = new ByteArrayOutputStream(); + client.files().download(path, metadataV2.getRev()).download(out); + assertThat(out.toByteArray()).isEqualTo(rtfV2); + + // and ensure we keep the required-only route + out = new ByteArrayOutputStream(); + client.files().download(path).download(out); + assertThat(out.toByteArray()).isEqualTo(rtfV2); + } + + @Test(expectedExceptions={GetMetadataErrorException.class}) + public void testError409() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(); + + String path = ITUtil.path(getClass(), "/testError409/" + ITUtil.format(new Date())); + + try { + client.files().getMetadata(path); + } catch (GetMetadataErrorException ex) { + assertThat(ex.getRequestId()).isNotNull(); + if (ex.getUserMessage() != null) { + assertThat(ex.getUserMessage().getLocale()).isNotNull(); + assertThat(ex.getUserMessage().getText()).isNotNull(); + assertThat(ex.getUserMessage().toString()).isNotNull(); + } + + GetMetadataError err = ex.errorValue; + assertThat(err).isNotNull(); + assertThat(err.tag()).isEqualTo(GetMetadataError.Tag.PATH); + assertThat(err.isPath()).isTrue(); + + LookupError lookup = err.getPathValue(); + assertThat(lookup).isNotNull(); + assertThat(lookup.tag()).isEqualTo(LookupError.Tag.NOT_FOUND); + assertThat(lookup.isNotFound()).isTrue(); + assertThat(lookup.isNotFile()).isFalse(); + assertThat(lookup.isOther()).isFalse(); + assertThat(lookup.isMalformedPath()).isFalse(); + + // raise so test can confirm an exception was thrown + throw ex; + } + } + + @Test(expectedExceptions={BadRequestException.class}) + public void testError400() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(); + + // NOTE: if we become more lenient on the server, this test will have to change. + String badCursor = "thisisabadcursor_dropbox-sdk-java_test"; + + try { + client.files().listFolderContinue(badCursor); + } catch (BadRequestException ex) { + assertThat(ex.getRequestId()).isNotNull(); + throw ex; + } + } + + @Test(enabled=false) // re-enable after T90620 is fixed + public void testUserLocale() throws Exception { + assertUserMessageLocale(Locale.ENGLISH); // en + assertUserMessageLocale(Locale.UK); // en-UK + assertUserMessageLocale(Locale.FRENCH); // fr + assertUserMessageLocale(Locale.FRANCE); // fr-FR + + // Use user's Dropbox locale preference + DbxClientV2 client = ITUtil.newClientV2(ITUtil.newRequestConfig().withUserLocaleFromPreferences()); + try { + client.sharing().getFolderMetadata("-1"); + } catch (DbxApiException ex) { + assertThat(ex.getUserMessage()).isNotNull(); + assertThat(ex.getUserMessage().getLocale()).isNotNull(); + assertThat(ex.getUserMessage().getLocale()).isNotEqualTo(""); // make sure something is specified + } + } + + private static void assertRangeDownload(DbxClientV2 client, String path, byte [] contents, int start, Integer length) throws Exception { + ByteArrayOutputStream out = new ByteArrayOutputStream(contents.length); + byte [] expected; + if (length != null) { + expected = new byte[Math.min(length, contents.length - start)]; + client.files().downloadBuilder(path) + .range(start, length.intValue()) + .download(out); + } else { + expected = new byte[contents.length - start]; + client.files().downloadBuilder(path) + .range(start) + .download(out); + } + + System.arraycopy(contents, start, expected, 0, expected.length); + byte [] actual = out.toByteArray(); + + assertThat(actual).isEqualTo(expected); + } + + private static void assertUserMessageLocale(Locale locale) throws Exception { + DbxClientV2 client = ITUtil.newClientV2(ITUtil.newRequestConfig().withUserLocaleFrom(locale)); + try { + client.sharing().getFolderMetadata("-1"); + } catch (DbxApiException ex) { + assertThat(ex.getUserMessage()).isNotNull(); + assertThat(ex.getUserMessage().getLocale()).isNotNull(); + if (ex.getUserMessage().getLocale().contains("-")) { + // TODO: update this test to properly support language tags when we upgrade away + // from Java 6 + assertThat(ex.getUserMessage().getLocale()).isEqualTo(toLanguageTag(locale)); + } else { + // omit the country code + assertThat(ex.getUserMessage().getLocale()).isEqualTo(locale.getLanguage()); + } + } + } + + private static String toLanguageTag(Locale locale) { + StringBuilder sb = new StringBuilder(); + + sb.append(locale.getLanguage().toLowerCase()); + + if (!locale.getCountry().isEmpty()) { + sb.append("-"); + sb.append(locale.getCountry().toUpperCase()); + } + + return sb.toString(); + } + + private static ProgressListener createTestListener(final long totalLength) { + return new ProgressListener() { + private long lastBytesWritten = 0; + @Override + public void onProgress(long bytesWritten) { + assertThat(bytesWritten > lastBytesWritten).isTrue(); + assertThat(bytesWritten <= totalLength).isTrue(); + lastBytesWritten = bytesWritten; + } + }; + } +} diff --git a/core/src/test/java/com/dropbox/core/v2/DbxClientV2Test.java b/core/src/test/java/com/dropbox/core/v2/DbxClientV2Test.java new file mode 100644 index 000000000..6a04ceb13 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/DbxClientV2Test.java @@ -0,0 +1,709 @@ +package com.dropbox.core.v2; + +import static com.google.common.truth.Truth.assertThat; +import static com.google.common.truth.Truth.assertWithMessage; +import static org.mockito.Mockito.*; +import static com.dropbox.core.v2.files.FilesSerializers.serializer; +import static org.testng.Assert.fail; + +import com.dropbox.core.*; +import com.dropbox.core.http.HttpRequestor; +import com.dropbox.core.oauth.DbxCredential; +import com.dropbox.core.v2.auth.AuthError; +import com.dropbox.core.v2.files.FileMetadata; +import com.dropbox.core.v2.files.Metadata; + +import org.mockito.ArgumentMatchers; +import org.mockito.invocation.InvocationOnMock; +import org.mockito.stubbing.Answer; + +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.lang.reflect.Constructor; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; + +public class DbxClientV2Test { + + // default config + private static DbxRequestConfig.Builder createRequestConfig() { + return DbxRequestConfig.newBuilder("sdk-test"); + } + + @Test(expectedExceptions = RetryException.class) + public void testRetryDisabled() throws DbxException, IOException { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withAutoRetryDisabled() + .withHttpRequestor(mockRequestor) + .build(); + + DbxClientV2 client = new DbxClientV2(config, "fakeAccessToken"); + + // 503 every time + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createEmptyResponse(503)); + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + try { + client.users().getCurrentAccount(); + } finally { + // should only have been called once since we disabled retry + verify(mockRequestor, times(1)).startPost(anyString(), anyHeaders()); + } + } + + private FileMetadata constructFileMetadate() throws Exception { + Class builderClass = FileMetadata.Builder.class; + Constructor constructor = builderClass.getDeclaredConstructors()[0]; + constructor.setAccessible(true); + + List arguments = new ArrayList(Arrays.asList( + "bar.txt", + "id:1HkLjqifwMAAAAAAAAAAAQ", + new Date(1456169040985L), + new Date(1456169040985L), + "2e0c38735597", + 2091603 + )); + + // hack for internal version of SDK + if (constructor.getParameterTypes().length > 6) { + arguments.addAll(Arrays.asList("20MB", "text.png", "text/plain")); + } + + FileMetadata.Builder builder = (FileMetadata.Builder) constructor.newInstance(arguments.toArray()); + return builder.build(); + } + + @Test + public void testRetrySuccess() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withAutoRetryEnabled(3) + .withHttpRequestor(mockRequestor) + .build(); + + DbxClientV2 client = new DbxClientV2(config, "fakeAccessToken"); + FileMetadata expected = constructFileMetadate(); + + // 503 twice, then return result + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createEmptyResponse(503)) + .thenReturn(createEmptyResponse(503)) + .thenReturn(createSuccessResponse(serialize(expected))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + Metadata actual = client.files().getMetadata(expected.getId()); + + // should have only been called 3 times: initial call + 2 retries + verify(mockRequestor, times(3)).startPost(anyString(), anyHeaders()); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertWithMessage(actual.getClass().toString()).that(actual instanceof FileMetadata).isTrue(); + assertThat(((FileMetadata) actual).getId()).isEqualTo(expected.getId()); + } + + @Test(expectedExceptions = RetryException.class) + public void testRetryRetriesExceeded() throws DbxException, IOException { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withAutoRetryEnabled(3) + .withHttpRequestor(mockRequestor) + .build(); + + DbxClientV2 client = new DbxClientV2(config, "fakeAccessToken"); + + // 503 always and forever + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createEmptyResponse(503)); + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + try { + client.users().getCurrentAccount(); + } finally { + // should only have been called 4 times: initial call plus our maximum retry limit + verify(mockRequestor, times(1 + 3)).startPost(anyString(), anyHeaders()); + } + } + + @Test(expectedExceptions = BadRequestException.class) + public void testRetryOtherFailure() throws DbxException, IOException { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withAutoRetryEnabled(3) + .withHttpRequestor(mockRequestor) + .build(); + + DbxClientV2 client = new DbxClientV2(config, "fakeAccessToken"); + + // 503 once, then return 400 + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createEmptyResponse(503)) + .thenReturn(createEmptyResponse(400)); + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + try { + client.users().getCurrentAccount(); + } finally { + // should only have been called 2 times: initial call + retry + verify(mockRequestor, times(2)).startPost(anyString(), anyHeaders()); + } + } + + @Test + public void testRetryDownload() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withAutoRetryEnabled(3) + .withHttpRequestor(mockRequestor) + .build(); + + DbxClientV2 client = new DbxClientV2(config, "fakeAccessToken"); + FileMetadata expectedMetadata = constructFileMetadate(); + byte [] expectedBytes = new byte [] { 1, 2, 3, 4 }; + + // 503 once, then return 200 + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createEmptyResponse(503)) + .thenReturn(createDownloaderResponse(expectedBytes, serialize(expectedMetadata))); + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + DbxDownloader downloader = client.files().download(expectedMetadata.getId()); + + // should have been attempted twice + verify(mockRequestor, times(2)).startPost(anyString(), anyHeaders()); + + ByteArrayOutputStream bout = new ByteArrayOutputStream(); + FileMetadata actualMetadata = downloader.download(bout); + byte [] actualBytes = bout.toByteArray(); + + assertThat(actualBytes).isEqualTo(expectedBytes); + assertThat(actualMetadata).isEqualTo(expectedMetadata); + } + + @Test + public void testRetrySuccessWithBackoff() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withAutoRetryEnabled(3) + .withHttpRequestor(mockRequestor) + .build(); + + DbxClientV2 client = new DbxClientV2(config, "fakeAccessToken"); + FileMetadata expected = constructFileMetadate(); + + // 503 twice, then return result + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createEmptyResponse(503)) // no backoff + .thenReturn(createRateLimitResponse(1)) // backoff 1 sec + .thenReturn(createRateLimitResponse(2)) // backoff 2 sec + .thenReturn(createSuccessResponse(serialize(expected))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + long start = System.currentTimeMillis(); + Metadata actual = client.files().getMetadata(expected.getId()); + long end = System.currentTimeMillis(); + + // no way easy way to properly test this, but request should + // have taken AT LEAST 3 seconds due to backoff. + assertWithMessage("duration: " + (end - start) + " millis").that(end - start >= 3000L).isTrue(); + + // should have been called 4 times: initial call + 3 retries + verify(mockRequestor, times(4)).startPost(anyString(), anyHeaders()); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertWithMessage(actual.getClass().toString()).that(actual instanceof FileMetadata).isTrue(); + } + + @Test + public void testRefreshBeforeCall() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + DbxCredential credential = new DbxCredential("accesstoken", 10L, "refresh_token", + "appkey", "app_secret"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createSuccessRefreshResponse("newToken", 10L)) + .thenReturn(createSuccessResponse(serialize(expected))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + long now = System.currentTimeMillis(); + + Metadata actual = client.files().getMetadata(expected.getId()); + + verify(mockRequestor, times(2)).startPost(anyString(), anyHeaders()); + + assertThat(credential.getAccessToken()).isEqualTo("newToken"); + assertThat(credential.getExpiresAt() > now).isTrue(); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertWithMessage(actual.getClass().toString()).that(actual instanceof FileMetadata).isTrue(); + assertThat(((FileMetadata) actual).getId()).isEqualTo(expected.getId()); + } + + @Test + public void testDontRefreshBeforeCallIfNotExpired() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + long now = System.currentTimeMillis(); + + DbxCredential credential = new DbxCredential("accesstoken", now + 2*DbxCredential + .EXPIRE_MARGIN, + "refresh_token", + "appkey", "app_secret"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()).thenReturn(createSuccessResponse(serialize(expected))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + Metadata actual = client.files().getMetadata(expected.getId()); + + verify(mockRequestor, times(1)).startPost(anyString(), anyHeaders()); + assertThat(credential.getAccessToken()).isEqualTo("accesstoken"); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertWithMessage(actual.getClass().toString()).that(actual instanceof FileMetadata).isTrue(); + assertThat(((FileMetadata) actual).getId()).isEqualTo( expected.getId()); + } + + @Test + public void testDontRefreshForInvalidGrant() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"error_description\":\"refresh token is invalid or revoked\"" + + ",\"error\":\"invalid_grant\"" + + "}" + ).getBytes("UTF-8") + ); + HttpRequestor.Response finishResponse = new HttpRequestor.Response( + 400, responseStream, new HashMap>()); + + DbxCredential credential = new DbxCredential("accesstoken", 10L, "refresh_token", + "appkey", "app_secret"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(finishResponse) + .thenReturn(createSuccessResponse(serialize(expected))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + Metadata actual = client.files().getMetadata(expected.getId()); + + verify(mockRequestor, times(2)).startPost(anyString(), anyHeaders()); + + assertThat(credential.getAccessToken()).isEqualTo("accesstoken"); + assertThat(credential.getExpiresAt()).isEqualTo(new Long(10)); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertWithMessage(actual.getClass().toString()).that(actual instanceof FileMetadata).isTrue(); + assertThat(((FileMetadata) actual).getId()).isEqualTo(expected.getId()); + } + + @Test + public void testRefreshAndRetryAfterTokenExpired() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + long now = System.currentTimeMillis(); + + DbxCredential credential = new DbxCredential("accesstoken", now + 2*DbxCredential + .EXPIRE_MARGIN, + "refresh_token", + "appkey", "app_secret"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createTokenExpiredResponse()) + .thenReturn(createSuccessRefreshResponse("new_token", 14400L)) + .thenReturn(createSuccessResponse(serialize(expected))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + Metadata actual = client.files().getMetadata(expected.getId()); + + verify(mockRequestor, times(3)).startPost(anyString(), anyHeaders()); + assertThat(credential.getAccessToken()).isEqualTo("new_token"); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertWithMessage(actual.getClass().toString()).that(actual instanceof FileMetadata).isTrue(); + assertThat(((FileMetadata) actual).getId()).isEqualTo(expected.getId()); + } + + @Test + public void testRefreshAndRetryAfterTokenExpiredForDownload() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + long now = System.currentTimeMillis(); + + DbxCredential credential = new DbxCredential("accesstoken", now + 2*DbxCredential + .EXPIRE_MARGIN, + "refresh_token", + "appkey", "app_secret"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createTokenExpiredResponse()) + .thenReturn(createSuccessRefreshResponse("new_token", 14400L)) + .thenReturn(createDownloadSuccessResponse("data".getBytes(), new String(serialize(expected)))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + ByteArrayOutputStream out = new ByteArrayOutputStream(); + + DbxDownloader downloader = client.files().download("/path"); + + try { + downloader.download(out); + } finally { + downloader.close(); + } + + assertThat(out.toString()).isEqualTo("data"); + + Metadata actual = downloader.getResult(); + + verify(mockRequestor, times(3)).startPost(anyString(), anyHeaders()); + assertThat(credential.getAccessToken()).isEqualTo("new_token"); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertThat(((FileMetadata) actual).getId()).isEqualTo(expected.getId()); + } + + @Test + public void testRefreshAndRetryWith503Retry() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withAutoRetryEnabled() + .withHttpRequestor(mockRequestor) + .build(); + + long now = System.currentTimeMillis(); + + DbxCredential credential = new DbxCredential("accesstoken", now + 2*DbxCredential + .EXPIRE_MARGIN, + "refresh_token", + "appkey", "app_secret"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()) + .thenReturn(createTokenExpiredResponse()) + .thenReturn(createSuccessRefreshResponse("new_token", 14400L)) + .thenReturn(createEmptyResponse(503)) + .thenReturn(createSuccessResponse(serialize(expected))); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + Metadata actual = client.files().getMetadata(expected.getId()); + + verify(mockRequestor, times(4)).startPost(anyString(), anyHeaders()); + assertThat(credential.getAccessToken()).isEqualTo("new_token"); + + assertThat(actual.getName()).isEqualTo(expected.getName()); + assertWithMessage(actual.getClass().toString()).that(actual instanceof FileMetadata).isTrue(); + assertThat(((FileMetadata) actual).getId()).isEqualTo(expected.getId()); + } + + @Test + public void testOnlineWontRefresh() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + DbxCredential credential = new DbxCredential("accesstoken"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()).thenReturn(createTokenExpiredResponse()); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + try { + client.files().getMetadata(expected.getId()); + } catch (InvalidAccessTokenException ex) { + verify(mockRequestor, times(1)).startPost(anyString(), anyHeaders()); + assertThat(credential.getAccessToken()).isEqualTo("accesstoken"); + + AuthError authError = DbxRequestUtil.readJsonFromErrorMessage(AuthError.Serializer + .INSTANCE, ex.getMessage(), ex.getRequestId()); + assertThat(authError).isEqualTo(AuthError.EXPIRED_ACCESS_TOKEN); + return; + } + + fail("API v2 call should throw exception"); + } + + @Test + public void testOnlineInvalidToken() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + DbxCredential credential = new DbxCredential("accesstoken"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()).thenReturn(createInvalidTokenResponse()); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + try { + client.files().getMetadata(expected.getId()); + } catch (InvalidAccessTokenException ex) { + verify(mockRequestor, times(1)).startPost(anyString(), anyHeaders()); + assertThat(credential.getAccessToken()).isEqualTo("accesstoken"); + + assertThat(ex.getAuthError()).isEqualTo(AuthError.INVALID_ACCESS_TOKEN); + assertThat(ex.getMessage()).isEqualTo(""); + return; + } + + fail("API v2 call should throw exception"); + } + + @Test + public void testOnlineBadTokenResponse() throws Exception { + HttpRequestor mockRequestor = mock(HttpRequestor.class); + DbxRequestConfig config = createRequestConfig() + .withHttpRequestor(mockRequestor) + .build(); + + DbxCredential credential = new DbxCredential("accesstoken"); + + DbxClientV2 client = new DbxClientV2(config, credential); + FileMetadata expected = constructFileMetadate(); + + HttpRequestor.Uploader mockUploader = mockUploader(); + when(mockUploader.finish()).thenReturn(createBadTokenResponse()); + + when(mockRequestor.startPost(anyString(), anyHeaders())) + .thenReturn(mockUploader); + + try { + client.files().getMetadata(expected.getId()); + } catch (BadResponseException ex) { + verify(mockRequestor, times(1)).startPost(anyString(), anyHeaders()); + assertThat(credential.getAccessToken()).isEqualTo("accesstoken"); + + assertThat(ex.getMessage()).startsWith("Bad JSON:"); + return; + } + + fail("API v2 call should throw exception"); + } + + private static HttpRequestor.Response createSuccessRefreshResponse(String newToken, long + newExpiresIn) throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"token_type\":\"Bearer\"" + + ",\"access_token\":\"" + newToken + "\"" + + ",\"expires_in\":" + newExpiresIn + + "}" + ).getBytes("UTF-8") + ); + return new HttpRequestor.Response(200, responseStream, new HashMap>()); + } + + private static HttpRequestor.Response createInvalidTokenResponse() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream(("").getBytes("UTF-8")); + return new HttpRequestor.Response(401, responseStream, new HashMap>()); + } + + private static HttpRequestor.Response createBadTokenResponse() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream(("this is garbage json that cant be parsed") + .getBytes("UTF-8")); + return new HttpRequestor.Response(401, responseStream, new HashMap>()); + } + + private static HttpRequestor.Response createTokenExpiredResponse() throws Exception { + ByteArrayInputStream responseStream = new ByteArrayInputStream( + ( + "{" + + "\"error_summary\":\"expired_access_token/..\"" + + ",\"error\":{\".tag\": \"expired_access_token\"}" + + "}" + ).getBytes("UTF-8") + ); + return new HttpRequestor.Response(401, responseStream, new HashMap>()); + } + + private static HttpRequestor.Response createRateLimitResponse(long backoffSeconds) { + byte [] body = new byte[0]; + return new HttpRequestor.Response( + 429, + new ByteArrayInputStream(body), + headers("Retry-After", Long.toString(backoffSeconds)) + ); + } + + private static HttpRequestor.Response createEmptyResponse(int statusCode) { + byte [] body = new byte[0]; + return new HttpRequestor.Response( + statusCode, + new ByteArrayInputStream(body), + Collections.>emptyMap() + ); + } + + private static HttpRequestor.Response createDownloaderResponse(byte [] body, byte [] jsonResponse) { + try { + return new HttpRequestor.Response( + 200, + new ByteArrayInputStream(body), + headers("Dropbox-Api-Result", new String(jsonResponse, "UTF-8")) + ); + } catch (IOException ex) { + // character encoding exception is impossible for UTF-8 + fail("UTF-8 missing (impossible)", ex); + return null; + } + } + + private static HttpRequestor.Response createSuccessResponse(byte [] body) throws IOException { + return new HttpRequestor.Response( + 200, + new ByteArrayInputStream(body), + Collections.>emptyMap() + ); + } + + private static HttpRequestor.Response createDownloadSuccessResponse(byte [] body, final String + metadata) { + return new HttpRequestor.Response( + 200, + new ByteArrayInputStream(body), + new HashMap>() {{ + put("dropbox-api-result", Collections.singletonList(metadata)); + }} + ); + } + + private static HttpRequestor.Uploader mockUploader() { + HttpRequestor.Uploader uploader = mock(HttpRequestor.Uploader.class); + when(uploader.getBody()) + .thenAnswer(new Answer() { + @Override + public OutputStream answer(InvocationOnMock invocation) { + return new ByteArrayOutputStream(); + } + }); + return uploader; + } + + private static Map> headers(String name, String value, String ... rest) { + assertThat(rest.length % 2 == 0).isTrue(); + + Map> headers = new TreeMap>(String.CASE_INSENSITIVE_ORDER); + List values = new ArrayList(); + headers.put(name, values); + values.add(value); + for (int i = 0; i < rest.length; i += 2) { + name = rest[i]; + value = rest[i+1]; + values = headers.get(name); + if (values == null) { + values = new ArrayList(); + headers.put(name, values); + } + values.add(value); + } + + return headers; + } + + private static Iterable anyHeaders() { + return ArgumentMatchers.anyIterable(); + } + + private static byte [] serialize(Metadata metadata) { + assertThat(metadata).isNotNull(); + + ByteArrayOutputStream out = new ByteArrayOutputStream(); + try { + serializer(Metadata.class).serialize(metadata, out); + } catch (Exception ex) { + fail("unserializable type: " + metadata.getClass(), ex); + return null; + } + return out.toByteArray(); + } +} diff --git a/src/test/java/com/dropbox/core/v2/files/FilesSerializers.java b/core/src/test/java/com/dropbox/core/v2/files/FilesSerializers.java similarity index 100% rename from src/test/java/com/dropbox/core/v2/files/FilesSerializers.java rename to core/src/test/java/com/dropbox/core/v2/files/FilesSerializers.java diff --git a/core/src/test/java/com/dropbox/core/v2/files/TagObjectIT.java b/core/src/test/java/com/dropbox/core/v2/files/TagObjectIT.java new file mode 100644 index 000000000..a9a03605e --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/files/TagObjectIT.java @@ -0,0 +1,55 @@ +package com.dropbox.core.v2.files; + +import com.dropbox.core.DbxException; +import com.dropbox.core.ITUtil; +import com.dropbox.core.v2.DbxClientV2; +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; +import java.util.List; +import java.util.Random; + +import static org.testng.AssertJUnit.assertEquals; + +/** + * Tests to ensure that the "Tag" related APIs are working. This is important because we have a name conflict + * resolution of changing Tag -> TagObject, and we want to ensure it's working as expected. + */ +public class TagObjectIT { + + private List getTagsForPath(DbxClientV2 client, String dropboxPath) throws DbxException { + List pathToTags = client.files().tagsGet(List.of(dropboxPath)).getPathsToTags(); + assertEquals(1, pathToTags.size()); // There is only one path (the one we asked for) + PathToTags pathToTag = pathToTags.get(0); + assertEquals(dropboxPath, pathToTag.getPath()); // This is the path we are looking for + return pathToTag.getTags(); + } + + @Test + public void testTagging() throws Exception { + DbxClientV2 client = ITUtil.newClientV2(); + + byte[] contents = ("Tagging Test").getBytes(); + String dropboxPath = ITUtil.path(getClass(), "/tagging-test.txt"); + + // Upload File + client.files().uploadBuilder(dropboxPath) + .withMode(WriteMode.OVERWRITE) + .uploadAndFinish(new ByteArrayInputStream(contents)); + + // Add Tag "a" to file + client.files().tagsAdd(dropboxPath, "a"); + + List tagsWithA = getTagsForPath(client, dropboxPath); + assertEquals("a", tagsWithA.get(0).getUserGeneratedTagValue().getTagText()); + + // Remove Tag "a" from file + client.files().tagsRemove(dropboxPath, "a"); + + List tagsNone = getTagsForPath(client, dropboxPath); + assertEquals(0, tagsNone.size()); + + // Cleanup, delete our test directory. + client.files().deleteV2(dropboxPath); + } +} diff --git a/core/src/test/java/com/dropbox/core/v2/teamlog/GetTeamEventsResultTest.java b/core/src/test/java/com/dropbox/core/v2/teamlog/GetTeamEventsResultTest.java new file mode 100644 index 000000000..18871bc63 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/teamlog/GetTeamEventsResultTest.java @@ -0,0 +1,73 @@ +package com.dropbox.core.v2.teamlog; + +import org.testng.annotations.Test; + +import java.io.File; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; + +import static org.testng.AssertJUnit.assertEquals; +import static org.testng.AssertJUnit.assertTrue; + +public class GetTeamEventsResultTest { + + + /** + * Tests a known type that has extra fields + * + * Happy path for known objects + */ + @Test + public void known_with_body() throws IOException { + GetTeamEventsResult result = readGetTeamEventsResultFromFile("known_with_body.json"); + TeamEvent event = result.events.get(0); + assertEquals(EventDetails.Tag.FILE_LOCKING_LOCK_STATUS_CHANGED_DETAILS, event.details.tag()); + } + + /** + * Tests a known type that should have extra fields, but does not, so should throw exception + * + * Sad path for known objects without required fields + */ + @Test + public void known_without_body() { + try { + GetTeamEventsResult result = readGetTeamEventsResultFromFile("known_without_body.json"); + } catch (Exception e) { + assertTrue(e.getMessage().startsWith("Required field \"previous_value\" missing.")); + } + } + + /** + * Tests backwards compatibility when receiving unknown types that do have extra fields + * + * Basic test for a new tag with no fields. + */ + @Test + public void unknown_with_body() throws IOException { + GetTeamEventsResult result = readGetTeamEventsResultFromFile("unknown_with_body.json"); + assertEquals(EventDetails.Tag.OTHER, result.events.get(0).details.tag()); + } + + /** + * Tests backwards compatibility when receiving unknown types that don't have extra fields + */ + @Test + public void unknown_without_body() throws IOException { + GetTeamEventsResult result = readGetTeamEventsResultFromFile("unknown_without_body.json"); + assertEquals(EventDetails.Tag.OTHER, result.events.get(0).details.tag()); + } + + private GetTeamEventsResult readGetTeamEventsResultFromFile(String filename) throws IOException { + String json = readJsonFromFile(filename); + return GetTeamEventsResult.Serializer.INSTANCE.deserialize(json); + } + + private String readJsonFromFile(String filename) throws IOException { + File file = new File("src/test/java/com/dropbox/core/v2/teamlog/" + filename); + System.out.println(file.getCanonicalPath()); + return Files.readString(Path.of(file.toURI()), StandardCharsets.US_ASCII); + } +} \ No newline at end of file diff --git a/core/src/test/java/com/dropbox/core/v2/teamlog/known_with_body.json b/core/src/test/java/com/dropbox/core/v2/teamlog/known_with_body.json new file mode 100644 index 000000000..9a2a9b3a2 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/teamlog/known_with_body.json @@ -0,0 +1,68 @@ +{ + "events": [ + { + "timestamp": "2020-05-14T15:58:15Z", + "event_category": { + ".tag": "file_operations" + }, + "actor": { + ".tag": "admin", + "admin": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + } + }, + "origin": { + "access_method": { + ".tag": "end_user", + "end_user": { + ".tag": "web", + "session_id": "" + } + } + }, + "involve_non_team_member": false, + "context": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + }, + "participants": [], + "assets": [ + { + ".tag": "file", + "path": { + "contextual": "/some shared folder/test.txt", + "namespace_relative": { + "ns_id": "7662767952", + "relative_path": "/test.txt", + "is_shared_namespace": true + } + }, + "display_name": "test.txt", + "file_id": "id:l1eKEQ3VrqAAAAAAAAAAHw" + } + ], + "event_type": { + ".tag": "file_locking_lock_status_changed", + "description": "Locked/unlocked editing for a file" + }, + "details": { + ".tag": "file_locking_lock_status_changed_details", + "previous_value": { + ".tag": "locked" + }, + "new_value": { + ".tag": "unlocked" + } + } + } + ], + "cursor": "AABnfF2cvbaP2c1zmbwY8KITrkCjf7V94-BrRsRk3cg3wU6zJP-h0Sh7T8ORvxupn6uvS7Rl_B9uJJ3tp0DbTPCi2aBTw_-z9OnGkGLoEvuMhO1mdRGXGOayxbOEaKM2_m9N4M4lSGZMawU1jJA9z6e7kQ60tHHz8wZoz_Nhu7Wk339vZSIUEIvIeeTch3lEfkODfUs4fWZzPELX9n-qc4qnL14fl59_sVS9_jCceufRl3ichwLnEPOiIT6HHZ3EirPQrg4J7FybSluiHZR7o01BkB3ENK-zlXu7R8ObPLSrYLcGi5tkBa2XVGp4lDXM4rt7CTNDQqZG9Hb36SH0QkJQ7KCZ1zV0_9r5BtpCBHiETw", + "has_more": false +} \ No newline at end of file diff --git a/core/src/test/java/com/dropbox/core/v2/teamlog/known_without_body.json b/core/src/test/java/com/dropbox/core/v2/teamlog/known_without_body.json new file mode 100644 index 000000000..b4331273b --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/teamlog/known_without_body.json @@ -0,0 +1,62 @@ +{ + "events": [ + { + "timestamp": "2020-05-14T15:58:15Z", + "event_category": { + ".tag": "file_operations" + }, + "actor": { + ".tag": "admin", + "admin": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + } + }, + "origin": { + "access_method": { + ".tag": "end_user", + "end_user": { + ".tag": "web", + "session_id": "" + } + } + }, + "involve_non_team_member": false, + "context": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + }, + "participants": [], + "assets": [ + { + ".tag": "file", + "path": { + "contextual": "/some shared folder/test.txt", + "namespace_relative": { + "ns_id": "7662767952", + "relative_path": "/test.txt", + "is_shared_namespace": true + } + }, + "display_name": "test.txt", + "file_id": "id:l1eKEQ3VrqAAAAAAAAAAHw" + } + ], + "event_type": { + ".tag": "file_locking_lock_status_changed", + "description": "Locked/unlocked editing for a file" + }, + "details": { + ".tag": "file_locking_lock_status_changed_details" + } + } + ], + "cursor": "AABnfF2cvbaP2c1zmbwY8KITrkCjf7V94-BrRsRk3cg3wU6zJP-h0Sh7T8ORvxupn6uvS7Rl_B9uJJ3tp0DbTPCi2aBTw_-z9OnGkGLoEvuMhO1mdRGXGOayxbOEaKM2_m9N4M4lSGZMawU1jJA9z6e7kQ60tHHz8wZoz_Nhu7Wk339vZSIUEIvIeeTch3lEfkODfUs4fWZzPELX9n-qc4qnL14fl59_sVS9_jCceufRl3ichwLnEPOiIT6HHZ3EirPQrg4J7FybSluiHZR7o01BkB3ENK-zlXu7R8ObPLSrYLcGi5tkBa2XVGp4lDXM4rt7CTNDQqZG9Hb36SH0QkJQ7KCZ1zV0_9r5BtpCBHiETw", + "has_more": false +} \ No newline at end of file diff --git a/core/src/test/java/com/dropbox/core/v2/teamlog/unknown_with_body.json b/core/src/test/java/com/dropbox/core/v2/teamlog/unknown_with_body.json new file mode 100644 index 000000000..29e7f2658 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/teamlog/unknown_with_body.json @@ -0,0 +1,68 @@ +{ + "events": [ + { + "timestamp": "2020-05-14T15:58:15Z", + "event_category": { + ".tag": "file_operations" + }, + "actor": { + ".tag": "admin", + "admin": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + } + }, + "origin": { + "access_method": { + ".tag": "end_user", + "end_user": { + ".tag": "web", + "session_id": "" + } + } + }, + "involve_non_team_member": false, + "context": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + }, + "participants": [], + "assets": [ + { + ".tag": "file", + "path": { + "contextual": "/some shared folder/test.txt", + "namespace_relative": { + "ns_id": "7662767952", + "relative_path": "/test.txt", + "is_shared_namespace": true + } + }, + "display_name": "test.txt", + "file_id": "id:l1eKEQ3VrqAAAAAAAAAAHw" + } + ], + "event_type": { + ".tag": "file_locking_lock_status_changed", + "description": "Locked/unlocked editing for a file" + }, + "details": { + ".tag": "abcdefg", + "previous_value": { + ".tag": "locked" + }, + "new_value": { + ".tag": "unlocked" + } + } + } + ], + "cursor": "AABnfF2cvbaP2c1zmbwY8KITrkCjf7V94-BrRsRk3cg3wU6zJP-h0Sh7T8ORvxupn6uvS7Rl_B9uJJ3tp0DbTPCi2aBTw_-z9OnGkGLoEvuMhO1mdRGXGOayxbOEaKM2_m9N4M4lSGZMawU1jJA9z6e7kQ60tHHz8wZoz_Nhu7Wk339vZSIUEIvIeeTch3lEfkODfUs4fWZzPELX9n-qc4qnL14fl59_sVS9_jCceufRl3ichwLnEPOiIT6HHZ3EirPQrg4J7FybSluiHZR7o01BkB3ENK-zlXu7R8ObPLSrYLcGi5tkBa2XVGp4lDXM4rt7CTNDQqZG9Hb36SH0QkJQ7KCZ1zV0_9r5BtpCBHiETw", + "has_more": false +} \ No newline at end of file diff --git a/core/src/test/java/com/dropbox/core/v2/teamlog/unknown_without_body.json b/core/src/test/java/com/dropbox/core/v2/teamlog/unknown_without_body.json new file mode 100644 index 000000000..68bd01768 --- /dev/null +++ b/core/src/test/java/com/dropbox/core/v2/teamlog/unknown_without_body.json @@ -0,0 +1,62 @@ +{ + "events": [ + { + "timestamp": "2020-05-14T15:58:15Z", + "event_category": { + ".tag": "file_operations" + }, + "actor": { + ".tag": "admin", + "admin": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + } + }, + "origin": { + "access_method": { + ".tag": "end_user", + "end_user": { + ".tag": "web", + "session_id": "" + } + } + }, + "involve_non_team_member": false, + "context": { + ".tag": "team_member", + "account_id": "dbid:AAAZ86YODCBh5Jen6VnAdG85KJrv1KNkkFQ", + "display_name": "db test", + "email": "testing@example.com", + "team_member_id": "dbmid:AADKrgMss5NUAOy0dFNSF3TZjxjn_rGACdM" + }, + "participants": [], + "assets": [ + { + ".tag": "file", + "path": { + "contextual": "/some shared folder/test.txt", + "namespace_relative": { + "ns_id": "7662767952", + "relative_path": "/test.txt", + "is_shared_namespace": true + } + }, + "display_name": "test.txt", + "file_id": "id:l1eKEQ3VrqAAAAAAAAAAHw" + } + ], + "event_type": { + ".tag": "file_locking_lock_status_changed", + "description": "Locked/unlocked editing for a file" + }, + "details": { + ".tag": "abcdefg" + } + } + ], + "cursor": "AABnfF2cvbaP2c1zmbwY8KITrkCjf7V94-BrRsRk3cg3wU6zJP-h0Sh7T8ORvxupn6uvS7Rl_B9uJJ3tp0DbTPCi2aBTw_-z9OnGkGLoEvuMhO1mdRGXGOayxbOEaKM2_m9N4M4lSGZMawU1jJA9z6e7kQ60tHHz8wZoz_Nhu7Wk339vZSIUEIvIeeTch3lEfkODfUs4fWZzPELX9n-qc4qnL14fl59_sVS9_jCceufRl3ichwLnEPOiIT6HHZ3EirPQrg4J7FybSluiHZR7o01BkB3ENK-zlXu7R8ObPLSrYLcGi5tkBa2XVGp4lDXM4rt7CTNDQqZG9Hb36SH0QkJQ7KCZ1zV0_9r5BtpCBHiETw", + "has_more": false +} \ No newline at end of file diff --git a/src/test/resources/file-with-media-info-pending.json b/core/src/test/resources/file-with-media-info-pending.json similarity index 100% rename from src/test/resources/file-with-media-info-pending.json rename to core/src/test/resources/file-with-media-info-pending.json diff --git a/src/test/resources/file-with-photo-info.json b/core/src/test/resources/file-with-photo-info.json similarity index 100% rename from src/test/resources/file-with-photo-info.json rename to core/src/test/resources/file-with-photo-info.json diff --git a/src/test/resources/file-with-video-info-null-fields.json b/core/src/test/resources/file-with-video-info-null-fields.json similarity index 100% rename from src/test/resources/file-with-video-info-null-fields.json rename to core/src/test/resources/file-with-video-info-null-fields.json diff --git a/src/test/resources/file-with-video-info.json b/core/src/test/resources/file-with-video-info.json similarity index 100% rename from src/test/resources/file-with-video-info.json rename to core/src/test/resources/file-with-video-info.json diff --git a/src/test/resources/file.json b/core/src/test/resources/file.json similarity index 100% rename from src/test/resources/file.json rename to core/src/test/resources/file.json diff --git a/src/test/resources/test-image.jpeg b/core/src/test/resources/test-image.jpeg similarity index 100% rename from src/test/resources/test-image.jpeg rename to core/src/test/resources/test-image.jpeg diff --git a/core/src/test/stone/stone_cfg.stone b/core/src/test/stone/stone_cfg.stone new file mode 100644 index 000000000..0a7ca6c76 --- /dev/null +++ b/core/src/test/stone/stone_cfg.stone @@ -0,0 +1,11 @@ +namespace stone_cfg + +struct Route + host String = "api" + "The server to make the request to. Valid values: api, content, + and notify." + style String = "rpc" + "The RPC format to use for the request. Valid values: rpc, download, + and upload." + auth String = "auth" + "Auth mode for the route." diff --git a/core/src/test/stone/test.stone b/core/src/test/stone/test.stone new file mode 100644 index 000000000..31af698a8 --- /dev/null +++ b/core/src/test/stone/test.stone @@ -0,0 +1,108 @@ +namespace test + +union_closed ParentUnion + alpha + beta + +union_closed ChildUnion extends ParentUnion + delta + gamma + omega + +struct Uninitialized + reason UninitializedReason + session_id String + +union_closed UninitializedReason + bad_request + bad_header String + bad_feels BadFeel + +union_closed BadFeel + meh + blah + +union CatchAllUnion extends ParentUnion + one + two + +union_closed ValueUnion extends ParentUnion + too_much Int32 + too_little Int32 + just_right + +union NestingUnion + simple ChildUnion + value ValueUnion + catch_all CatchAllUnion + +struct Pet + union + dog Dog + cat Cat + fish Fish + + name String + "Used in :route:`test_route:2`" + born Timestamp("%Y-%m-%dT%H:%M:%SZ")? + +struct Dog extends Pet + breed String + size DogSize? + +struct Cat extends Pet + breed String? + indoor Boolean? + +struct Fish extends Pet + species String + tank_size TankSize + +union_closed DogSize + lap + small + medium + large + +union TankSize + bowl + medium Dimensions + aquarium String? + +struct Dimensions + width UInt32 + height UInt32 + +route test_route(Void, Void, Void) + ":route:`test_route:2`" + +route test_route:2 (Pet, Void, ParentUnion) + +route test_upload(Uninitialized, Void, Void) + attrs + style = "upload" + +route test_upload:2 (Dog, Void, ParentUnion) + attrs + style = "upload" + +route test_upload:3 (Dog, Void, ParentUnion) + attrs + style = "upload" + auth = "app, user" + +route test_download(Dog, Fish, Void) + attrs + host = "content" + style = "download" + +route test_download:2 (Uninitialized, Fish, ParentUnion) + attrs + host = "content" + style = "download" + +struct DefaultFloat + duration Float64(min_value=60, max_value=14400) = 14400 + +struct WithByte + field1 Bytes diff --git a/core/stone b/core/stone new file mode 160000 index 000000000..1cdb8c02a --- /dev/null +++ b/core/stone @@ -0,0 +1 @@ +Subproject commit 1cdb8c02aaedf539fbfdb5913a552b9494aecc40 diff --git a/dependencies/classpath.txt b/dependencies/classpath.txt new file mode 100644 index 000000000..43ea88ee8 --- /dev/null +++ b/dependencies/classpath.txt @@ -0,0 +1,168 @@ +androidx.databinding:databinding-common:7.4.2 +androidx.databinding:databinding-compiler-common:7.4.2 +biz.aQute.bnd:biz.aQute.bndlib:5.2.0 +com.android.databinding:baseLibrary:7.4.2 +com.android.tools.analytics-library:crash:30.4.2 +com.android.tools.analytics-library:protos:30.4.2 +com.android.tools.analytics-library:shared:30.4.2 +com.android.tools.analytics-library:tracker:30.4.2 +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10 +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10 +com.android.tools.build:aapt2-proto:7.4.2-8841542 +com.android.tools.build:aaptcompiler:7.4.2 +com.android.tools.build:apksig:7.4.2 +com.android.tools.build:apkzlib:7.4.2 +com.android.tools.build:builder-model:7.4.2 +com.android.tools.build:builder-test-api:7.4.2 +com.android.tools.build:builder:7.4.2 +com.android.tools.build:bundletool:1.11.4 +com.android.tools.build:gradle-api:7.4.2 +com.android.tools.build:gradle-settings-api:7.4.2 +com.android.tools.build:gradle:7.4.2 +com.android.tools.build:manifest-merger:30.4.2 +com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api +com.android.tools.ddms:ddmlib:30.4.2 +com.android.tools.layoutlib:layoutlib-api:30.4.2 +com.android.tools.lint:lint-model:30.4.2 +com.android.tools.lint:lint-typedef-remover:30.4.2 +com.android.tools.utp:android-device-provider-ddmlib-proto:30.4.2 +com.android.tools.utp:android-device-provider-gradle-proto:30.4.2 +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.4.2 +com.android.tools.utp:android-test-plugin-host-coverage-proto:30.4.2 +com.android.tools.utp:android-test-plugin-host-retention-proto:30.4.2 +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.4.2 +com.android.tools:annotations:30.4.2 +com.android.tools:common:30.4.2 +com.android.tools:dvlib:30.4.2 +com.android.tools:repository:30.4.2 +com.android.tools:sdk-common:30.4.2 +com.android.tools:sdklib:30.4.2 +com.android:signflinger:7.4.2 +com.android:zipflinger:7.4.2 +com.dropbox.dependency-guard:com.dropbox.dependency-guard.gradle.plugin:0.4.3 +com.dropbox.dependency-guard:dependency-guard:0.4.3 +com.github.ben-manes.versions:com.github.ben-manes.versions.gradle.plugin:0.42.0 +com.github.ben-manes:gradle-versions-plugin:0.42.0 +com.github.blindpirate.osgi:com.github.blindpirate.osgi.gradle.plugin:0.0.6 +com.github.gundy:semver4j:0.16.4 +com.google.android:annotations:4.1.1.4 +com.google.api.grpc:proto-google-common-protos:2.0.1 +com.google.auto.value:auto-value-annotations:1.6.2 +com.google.code.findbugs:jsr305:3.0.2 +com.google.code.gson:gson:2.8.9 +com.google.crypto.tink:tink:1.3.0-rc2 +com.google.dagger:dagger:2.28.3 +com.google.errorprone:error_prone_annotations:2.4.0 +com.google.flatbuffers:flatbuffers-java:1.12.0 +com.google.guava:failureaccess:1.0.1 +com.google.guava:guava:30.1-jre +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava +com.google.j2objc:j2objc-annotations:1.3 +com.google.jimfs:jimfs:1.1 +com.google.protobuf:protobuf-java-util:3.17.2 +com.google.protobuf:protobuf-java:3.17.2 +com.google.testing.platform:core-proto:0.0.8-alpha08 +com.googlecode.java-diff-utils:diffutils:1.3.0 +com.googlecode.juniversalchardet:juniversalchardet:1.0.3 +com.squareup.moshi:moshi:1.14.0 +com.squareup.okhttp3:okhttp:4.10.0 +com.squareup.okio:okio-jvm:3.0.0 +com.squareup.okio:okio:3.0.0 +com.squareup.retrofit2:converter-moshi:2.9.0 +com.squareup.retrofit2:retrofit:2.9.0 +com.squareup:javapoet:1.10.0 +com.squareup:javawriter:2.5.0 +com.sun.activation:javax.activation:1.2.0 +com.sun.istack:istack-commons-runtime:3.0.8 +com.sun.xml.fastinfoset:FastInfoset:1.2.16 +com.thoughtworks.xstream:xstream:1.4.17 +com.vanniktech.maven.publish:com.vanniktech.maven.publish.gradle.plugin:0.24.0 +com.vanniktech:gradle-maven-publish-plugin:0.24.0 +com.vanniktech:nexus:0.24.0 +commons-codec:commons-codec:1.11 +commons-io:commons-io:2.4 +commons-logging:commons-logging:1.2 +de.undercouch:gradle-download-task:4.1.1 +gradle.plugin.com.github.blindpirate:gradle-legacy-osgi-plugin:0.0.6 +io.github.x-stream:mxparser:1.2.1 +io.grpc:grpc-api:1.39.0 +io.grpc:grpc-context:1.39.0 +io.grpc:grpc-core:1.39.0 +io.grpc:grpc-netty:1.39.0 +io.grpc:grpc-protobuf-lite:1.39.0 +io.grpc:grpc-protobuf:1.39.0 +io.grpc:grpc-stub:1.39.0 +io.netty:netty-buffer:4.1.52.Final +io.netty:netty-codec-http2:4.1.52.Final +io.netty:netty-codec-http:4.1.52.Final +io.netty:netty-codec-socks:4.1.52.Final +io.netty:netty-codec:4.1.52.Final +io.netty:netty-common:4.1.52.Final +io.netty:netty-handler-proxy:4.1.52.Final +io.netty:netty-handler:4.1.52.Final +io.netty:netty-resolver:4.1.52.Final +io.netty:netty-transport:4.1.52.Final +io.perfmark:perfmark-api:0.23.0 +jakarta.activation:jakarta.activation-api:1.2.1 +jakarta.xml.bind:jakarta.xml.bind-api:2.3.2 +javax.annotation:javax.annotation-api:1.3.2 +javax.inject:javax.inject:1 +net.java.dev.jna:jna-platform:5.6.0 +net.java.dev.jna:jna:5.6.0 +net.sf.jopt-simple:jopt-simple:4.9 +net.sf.kxml:kxml2:2.3.0 +org.apache.commons:commons-compress:1.20 +org.apache.httpcomponents:httpclient:4.5.13 +org.apache.httpcomponents:httpcore:4.4.13 +org.apache.httpcomponents:httpmime:4.5.6 +org.bitbucket.b_c:jose4j:0.7.0 +org.bouncycastle:bcpkix-jdk15on:1.67 +org.bouncycastle:bcprov-jdk15on:1.67 +org.checkerframework:checker-qual:3.5.0 +org.codehaus.mojo:animal-sniffer-annotations:1.19 +org.glassfish.jaxb:jaxb-runtime:2.3.2 +org.glassfish.jaxb:txw2:2.3.2 +org.jdom:jdom2:2.0.6 +org.jetbrains.intellij.deps:trove4j:1.0.20200330 +org.jetbrains.kotlin:kotlin-android-extensions:1.6.21 +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.6.21 +org.jetbrains.kotlin:kotlin-build-common:1.6.21 +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.6.21 +org.jetbrains.kotlin:kotlin-compiler-runner:1.6.21 +org.jetbrains.kotlin:kotlin-daemon-client:1.6.21 +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.6.21 +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.6.21 +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.6.21 +org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21 +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.6.21 +org.jetbrains.kotlin:kotlin-native-utils:1.6.21 +org.jetbrains.kotlin:kotlin-project-model:1.6.21 +org.jetbrains.kotlin:kotlin-reflect:1.7.10 +org.jetbrains.kotlin:kotlin-scripting-common:1.6.21 +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.6.21 +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.6.21 +org.jetbrains.kotlin:kotlin-scripting-jvm:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.0 +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0 +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0 +org.jetbrains.kotlin:kotlin-stdlib:1.8.0 +org.jetbrains.kotlin:kotlin-tooling-metadata:1.6.21 +org.jetbrains.kotlin:kotlin-util-io:1.6.21 +org.jetbrains.kotlin:kotlin-util-klib:1.6.21 +org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin:0.11.1 +org.jetbrains.kotlinx:binary-compatibility-validator:0.11.1 +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0 +org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 +org.jetbrains:annotations:13.0 +org.json:json:20180813 +org.jvnet.staxex:stax-ex:1.8.1 +org.ow2.asm:asm-analysis:9.2 +org.ow2.asm:asm-commons:9.2 +org.ow2.asm:asm-tree:9.2 +org.ow2.asm:asm-util:9.2 +org.ow2.asm:asm:9.2 +org.slf4j:slf4j-api:1.7.30 +org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2 +xerces:xercesImpl:2.12.0 +xml-apis:xml-apis:1.4.01 +xmlpull:xmlpull:1.1.3.1 diff --git a/examples/account-info/.gitignore b/examples/account-info/.gitignore deleted file mode 100644 index 76daa494e..000000000 --- a/examples/account-info/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/build/ -/target/ diff --git a/examples/account-info/build.gradle b/examples/account-info/build.gradle deleted file mode 100644 index f0f5749fc..000000000 --- a/examples/account-info/build.gradle +++ /dev/null @@ -1,2 +0,0 @@ - -description = 'Account Info Example (Dropbox Core API SDK)' diff --git a/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java b/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java deleted file mode 100644 index ba71d04a8..000000000 --- a/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.dropbox.core.examples.account_info; - -import com.dropbox.core.DbxAuthInfo; -import com.dropbox.core.DbxException; -import com.dropbox.core.DbxRequestConfig; -import com.dropbox.core.DbxWebAuth; -import com.dropbox.core.json.JsonReader; -import com.dropbox.core.v2.DbxClientV2; -import com.dropbox.core.v2.users.FullAccount; - -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An example command-line application that runs through the web-based OAuth - * flow (using {@link DbxWebAuth}). - */ -public class Main -{ - public static void main(String[] args) - throws IOException - { - // Only display important log messages. - Logger.getLogger("").setLevel(Level.WARNING); - - if (args.length != 1) { - System.out.println(""); - System.out.println("Usage: COMMAND "); - System.out.println(""); - System.out.println(" : An \"auth file\" that contains the information necessary to make"); - System.out.println(" an authorized Dropbox API request. Generate this file using the \"authorize\""); - System.out.println(" example program."); - System.out.println(""); - System.exit(1); - return; - } - - String argAuthFile = args[0]; - - // Read auth info file. - DbxAuthInfo authInfo; - try { - authInfo = DbxAuthInfo.Reader.readFromFile(argAuthFile); - } - catch (JsonReader.FileLoadException ex) { - System.err.println("Error loading : " + ex.getMessage()); - System.exit(1); return; - } - - // Create a DbxClientV1, which is what you use to make API calls. - DbxRequestConfig requestConfig = new DbxRequestConfig("examples-account-info"); - DbxClientV2 dbxClient = new DbxClientV2(requestConfig, authInfo.getAccessToken(), authInfo.getHost()); - - // Make the /account/info API call. - FullAccount dbxAccountInfo; - try { - dbxAccountInfo = dbxClient.users() - .getCurrentAccount(); - } - catch (DbxException ex) { - System.err.println("Error making API call: " + ex.getMessage()); - System.exit(1); return; - } - - System.out.print(dbxAccountInfo.toStringMultiline()); - } -} diff --git a/examples/android/ReadMe.md b/examples/android/ReadMe.md index 838fae170..af6dbdb1a 100644 --- a/examples/android/ReadMe.md +++ b/examples/android/ReadMe.md @@ -4,27 +4,21 @@ This shows the Dropbox API authorization flow and some API calls to retrieve fil ## Requirements -This example is backwards compatible with Android 4.4 (KitKat). Ensure your build environment supports at least Android SDK version 19. +This example is backwards compatible with Android 5.0 (Lollipop). Ensure your build environment supports at least Android SDK version 21. ## Running the example -Prerequisites: Apache Maven (to build the SDK), [Android Studio](http://developer.android.com/sdk/installing/) (not strictly necessary) +Running in [Android Studio](https://developer.android.com/studio) (not strictly necessary) -1. Download this repository. -2. Build the SDK: run `./gradlew install` in the SDK root directory (two levels up from this folder). -3. In Android Studio, choose "Import Project" and select this folder. -4. Edit "src/main/AndroidManifest.xml" and "src/main/res/values/strings.xml" and replace `YOUR_APP_KEY_HERE` with your Dropbox API key ([how to get a Dropbox API key](../../ReadMe.md#get-a-dropbox-api-key)). -5. Build and run. +* Download this `dropbox-sdk-java` repository or clone it using `git clone https://github.com/dropbox/dropbox-sdk-java`. +* Open the root folder `dropbox-sdk-java` in the terminal, or open it in Android Studio. +* Create a `local.properties` manually in the Android example project at `examples/android/local.properties` with the content `DROPBOX_APP_KEY=YOUR_KEY_HERE` where `YOUR_KEY_HERE` is your [Dropbox App/Api Key](../../README.md#get-a-dropbox-api-key). + * TIP: You can create this `local.properties` file with the appropriate contents by runing this command `echo "DROPBOX_APP_KEY=YOUR_KEY_HERE" > examples/android/local.properties` on the terminal from the `dropbox-sdk-java`. + * NOTE: This step of creating the `examples/android/local.properties` file is not required to build the app, but is required if you would like to test authentication. +5. Build and run the Android sample via the Android Studio UI. -If you don't have Android Studio, you can use the command-line: +# Notes -1. Make sure you have the standalone [Android SDK Tools](http://developer.android.com/sdk/installing/). -2. Make sure your `ANDROID_SDK` environment variable is set to the path where the standalone Android SDK Tools are installed. -3. To build: run `./gradlew assemble`. -4. The example app's ".apk" files should now be in "build/outputs/apk". You can use "adb install" to install them to the emulator or to a real device. - -## ProGuard - -The Dropbox Java SDK supports ProGuard class file shrinking optimizations. The only requirements to -your ProGuard configuration are to ensure [Jackson Databind](https://github.com/FasterXML/jackson-databind) -classes are handled correctly and annotations are kept. See [proguard-rules.pro](proguard-rules.pro) for an example. \ No newline at end of file +This example project uses the source version of `dropbox-sdk-java`. If you would like to use the published version of the SDK, replace the following in the `examples/android/build.gradle` file. +* Replace `implementation(project(":core"))` +* with `implementation("com.dropbox.core:dropbox-core-sdk:LATEST_VERSION_GOES_HERE")` diff --git a/examples/android/build.gradle b/examples/android/build.gradle index fe879089c..1ceee7dbb 100644 --- a/examples/android/build.gradle +++ b/examples/android/build.gradle @@ -1,34 +1,28 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:2.1.0' - classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.2' - } +plugins { + id 'com.android.application' + id 'org.jetbrains.kotlin.android' + alias(dropboxJavaSdkLibs.plugins.dependency.guard) } -allprojects { - repositories { - jcenter() - mavenLocal() - } -} - -apply plugin: 'com.android.application' - android { - compileSdkVersion 26 - buildToolsVersion "26.0.1" + compileSdkVersion dropboxJavaSdkLibs.versions.android.compile.sdk.get().toInteger() + buildToolsVersion "33.0.1" defaultConfig { applicationId "com.dropbox.core.examples.android" - minSdkVersion 19 - targetSdkVersion 26 + minSdkVersion dropboxJavaSdkLibs.versions.android.min.sdk.get() + targetSdkVersion dropboxJavaSdkLibs.versions.android.target.sdk.get() versionCode 1 versionName "1.0" + + Properties localProperties = getLocalProperties() + String dropboxKey = localProperties['DROPBOX_APP_KEY'] + if (dropboxKey == null) { + logger.warn("No value provided for DROPBOX_APP_KEY. Specify a value in a examples/android/local.properties file. You can register for one at https://developers.dropbox.com/") + dropboxKey = "PUT_YOUR_APP_KEY_HERE" + } + buildConfigField "String", "DROPBOX_APP_KEY", "\"${dropboxKey}\"" + manifestPlaceholders = [dropboxKey: dropboxKey] } buildTypes { @@ -38,9 +32,8 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { - // to debug ProGuard rules - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro' + minifyEnabled false + shrinkResources false } } @@ -55,25 +48,43 @@ android { disable 'InvalidPackage' abortOnError false } + + kotlinOptions { + jvmTarget = '1.8' + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } } dependencies { - compile group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '0-SNAPSHOT', changing: true - compile 'com.android.support:appcompat-v7:23.1.1' - compile 'com.android.support:design:23.1.1' - compile 'com.android.support:recyclerview-v7:23.1.1' - // picasso 2.5.2 doesn't have OkHttp3 support (although it exists - // on master). Must use OkHttp v2 and v3 until new picasso release - compile 'com.squareup.picasso:picasso:2.5.2' - compile 'com.squareup.okhttp:okhttp:2.7.5' - compile 'com.squareup.okhttp3:okhttp:3.5.0' + implementation(project(":android")) + implementation(dropboxJavaSdkLibs.android.material) + implementation(dropboxJavaSdkLibs.androidx.appcompat) + implementation(dropboxJavaSdkLibs.androidx.constraintlayout) + implementation(dropboxJavaSdkLibs.androidx.core.ktx) + implementation(dropboxJavaSdkLibs.androidx.lifecycle.runtime.ktx) + implementation(dropboxJavaSdkLibs.androidx.recyclerview) + implementation(dropboxJavaSdkLibs.glide) + implementation(dropboxJavaSdkLibs.kotlin.coroutines) + implementation(dropboxJavaSdkLibs.kotlin.stdlib) + implementation(dropboxJavaSdkLibs.okhttp3) + + testImplementation(dropboxJavaSdkLibs.test.junit) + + androidTestImplementation(dropboxJavaSdkLibs.androidx.test.espresso.core) + androidTestImplementation(dropboxJavaSdkLibs.androidx.test.junit) } -apply plugin: 'com.getkeepsafe.dexcount' +def getLocalProperties() { + Properties props = new Properties() + if (file('local.properties').exists()) { + props.load(new FileInputStream(file('local.properties'))) + } + return props +} -dexcount { - format = "list" - includeClasses = true - includeFieldCount = false - orderByMethodCount = true +dependencyGuard { + configuration("releaseRuntimeClasspath") } diff --git a/examples/android/dependencies/releaseRuntimeClasspath.txt b/examples/android/dependencies/releaseRuntimeClasspath.txt new file mode 100644 index 000000000..16f3912ea --- /dev/null +++ b/examples/android/dependencies/releaseRuntimeClasspath.txt @@ -0,0 +1,69 @@ +androidx.activity:activity:1.2.4 +androidx.annotation:annotation-experimental:1.1.0 +androidx.annotation:annotation:1.3.0 +androidx.appcompat:appcompat-resources:1.4.2 +androidx.appcompat:appcompat:1.4.2 +androidx.arch.core:core-common:2.1.0 +androidx.arch.core:core-runtime:2.1.0 +androidx.cardview:cardview:1.0.0 +androidx.collection:collection:1.1.0 +androidx.concurrent:concurrent-futures:1.0.0 +androidx.constraintlayout:constraintlayout-core:1.0.4 +androidx.constraintlayout:constraintlayout:2.1.4 +androidx.coordinatorlayout:coordinatorlayout:1.1.0 +androidx.core:core-ktx:1.8.0 +androidx.core:core:1.8.0 +androidx.cursoradapter:cursoradapter:1.0.0 +androidx.customview:customview:1.1.0 +androidx.documentfile:documentfile:1.0.0 +androidx.drawerlayout:drawerlayout:1.1.1 +androidx.dynamicanimation:dynamicanimation:1.0.0 +androidx.emoji2:emoji2-views-helper:1.0.0 +androidx.emoji2:emoji2:1.0.0 +androidx.exifinterface:exifinterface:1.2.0 +androidx.fragment:fragment:1.3.6 +androidx.interpolator:interpolator:1.0.0 +androidx.legacy:legacy-support-core-utils:1.0.0 +androidx.lifecycle:lifecycle-common:2.5.1 +androidx.lifecycle:lifecycle-livedata-core:2.3.1 +androidx.lifecycle:lifecycle-livedata:2.0.0 +androidx.lifecycle:lifecycle-process:2.4.0 +androidx.lifecycle:lifecycle-runtime-ktx:2.5.1 +androidx.lifecycle:lifecycle-runtime:2.5.1 +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 +androidx.lifecycle:lifecycle-viewmodel:2.3.1 +androidx.loader:loader:1.0.0 +androidx.localbroadcastmanager:localbroadcastmanager:1.0.0 +androidx.print:print:1.0.0 +androidx.recyclerview:recyclerview:1.2.1 +androidx.resourceinspection:resourceinspection-annotation:1.0.0 +androidx.savedstate:savedstate:1.1.0 +androidx.startup:startup-runtime:1.0.0 +androidx.tracing:tracing:1.0.0 +androidx.transition:transition:1.2.0 +androidx.vectordrawable:vectordrawable-animated:1.1.0 +androidx.vectordrawable:vectordrawable:1.1.0 +androidx.versionedparcelable:versionedparcelable:1.1.1 +androidx.viewpager2:viewpager2:1.0.0 +androidx.viewpager:viewpager:1.0.0 +ch.randelshofer:fastdoubleparser:0.8.0 +com.fasterxml.jackson.core:jackson-core:2.15.0 +com.fasterxml.jackson:jackson-bom:2.15.0 +com.github.bumptech.glide:annotations:4.12.0 +com.github.bumptech.glide:disklrucache:4.12.0 +com.github.bumptech.glide:gifdecoder:4.12.0 +com.github.bumptech.glide:glide:4.12.0 +com.google.android.material:material:1.6.1 +com.google.code.findbugs:jsr305:3.0.2 +com.google.guava:listenablefuture:1.0 +com.squareup.okhttp3:okhttp:4.0.0 +com.squareup.okio:okio:2.2.2 +org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 +org.jetbrains.kotlin:kotlin-stdlib:1.6.21 +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4 +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4 +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 +org.jetbrains:annotations:13.0 diff --git a/examples/android/gradle.properties b/examples/android/gradle.properties deleted file mode 100644 index 1d3591c8a..000000000 --- a/examples/android/gradle.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Project-wide Gradle settings. - -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. - -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html - -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -# Default value: -Xmx10248m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 - -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true \ No newline at end of file diff --git a/examples/android/gradle/wrapper/gradle-wrapper.jar b/examples/android/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 8c0fb64a8..000000000 Binary files a/examples/android/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/examples/android/gradle/wrapper/gradle-wrapper.properties b/examples/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 0d0b30d62..000000000 --- a/examples/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Wed Apr 27 11:21:25 PDT 2016 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip diff --git a/examples/android/gradlew b/examples/android/gradlew deleted file mode 100755 index 91a7e269e..000000000 --- a/examples/android/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/examples/android/gradlew.bat b/examples/android/gradlew.bat deleted file mode 100644 index aec99730b..000000000 --- a/examples/android/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/examples/android/proguard-rules-debug.pro b/examples/android/proguard-rules-debug.pro deleted file mode 100644 index d27c34abd..000000000 --- a/examples/android/proguard-rules-debug.pro +++ /dev/null @@ -1,2 +0,0 @@ --dontobfuscate --include "proguard-rules.pro" diff --git a/examples/android/proguard-rules.pro b/examples/android/proguard-rules.pro index 10429de81..fc6ddf6c6 100644 --- a/examples/android/proguard-rules.pro +++ b/examples/android/proguard-rules.pro @@ -20,8 +20,15 @@ -dontwarn okio.** -dontwarn okhttp3.** +-dontwarn com.squareup.okhttp.** +-dontwarn com.google.apphosting.** -dontwarn com.google.appengine.** --dontwarn javax.servlet.** +-dontwarn com.google.protos.cloud.sql.** +-dontwarn com.google.cloud.sql.** +-dontwarn javax.activation.** +-dontwarn jakarta.mail.** +-dontwarn jakarta.servlet.** +-dontwarn org.apache.** # Support classes for compatibility with older API versions diff --git a/examples/android/src/main/AndroidManifest.xml b/examples/android/src/main/AndroidManifest.xml index 8219a794d..fb97c7de1 100644 --- a/examples/android/src/main/AndroidManifest.xml +++ b/examples/android/src/main/AndroidManifest.xml @@ -9,11 +9,13 @@ @@ -22,31 +24,49 @@ + - - - + + + + + + - - - + + + - - \ No newline at end of file + + + + + diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/BaseSampleActivity.kt b/examples/android/src/main/java/com/dropbox/core/examples/android/BaseSampleActivity.kt new file mode 100644 index 000000000..069c5f83a --- /dev/null +++ b/examples/android/src/main/java/com/dropbox/core/examples/android/BaseSampleActivity.kt @@ -0,0 +1,51 @@ +package com.dropbox.core.examples.android + +import android.content.Context +import androidx.appcompat.app.AppCompatActivity +import com.dropbox.core.android.Auth +import com.dropbox.core.examples.android.internal.api.DropboxApiWrapper +import com.dropbox.core.examples.android.internal.api.DropboxCredentialUtil +import com.dropbox.core.examples.android.internal.api.DropboxOAuthUtil +import com.dropbox.core.examples.android.internal.di.AppGraph + + +/** + * Base class for Activities that require auth tokens + * Will redirect to auth flow if needed + */ +abstract class BaseSampleActivity : AppCompatActivity() { + + private val appGraph: AppGraph get() = (this.applicationContext as DropboxAndroidSampleApplication).appGraph + + protected val dropboxOAuthUtil: DropboxOAuthUtil get() = appGraph.dropboxOAuthUtil + + private val dropboxCredentialUtil: DropboxCredentialUtil get() = appGraph.dropboxCredentialUtil + + protected val dropboxApiWrapper: DropboxApiWrapper get() = appGraph.dropboxApiWrapper + + // will use our Short Lived Token. + override fun onResume() { + super.onResume() + dropboxOAuthUtil.onResume() + if (isAuthenticated()) { + loadData() + } + + val prefs = getSharedPreferences("dropbox-sample", Context.MODE_PRIVATE) + + val uid = Auth.getUid() + val storedUid = prefs.getString("user-id", null) + if (uid != null && uid != storedUid) { + prefs.edit().apply { + putString("user-id", uid) + }.apply() + } + } + + protected abstract fun loadData() + + protected fun isAuthenticated(): Boolean { + return dropboxCredentialUtil.isAuthenticated() + } + +} \ No newline at end of file diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java b/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java deleted file mode 100644 index 93c09407f..000000000 --- a/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.dropbox.core.examples.android; - -import android.content.Context; -import android.content.Intent; -import android.net.Uri; -import android.os.AsyncTask; -import android.os.Environment; - -import com.dropbox.core.DbxException; -import com.dropbox.core.v2.DbxClientV2; -import com.dropbox.core.v2.files.FileMetadata; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; - -/** - * Task to download a file from Dropbox and put it in the Downloads folder - */ -class DownloadFileTask extends AsyncTask { - - private final Context mContext; - private final DbxClientV2 mDbxClient; - private final Callback mCallback; - private Exception mException; - - public interface Callback { - void onDownloadComplete(File result); - void onError(Exception e); - } - - DownloadFileTask(Context context, DbxClientV2 dbxClient, Callback callback) { - mContext = context; - mDbxClient = dbxClient; - mCallback = callback; - } - - @Override - protected void onPostExecute(File result) { - super.onPostExecute(result); - if (mException != null) { - mCallback.onError(mException); - } else { - mCallback.onDownloadComplete(result); - } - } - - @Override - protected File doInBackground(FileMetadata... params) { - FileMetadata metadata = params[0]; - try { - File path = Environment.getExternalStoragePublicDirectory( - Environment.DIRECTORY_DOWNLOADS); - File file = new File(path, metadata.getName()); - - // Make sure the Downloads directory exists. - if (!path.exists()) { - if (!path.mkdirs()) { - mException = new RuntimeException("Unable to create directory: " + path); - } - } else if (!path.isDirectory()) { - mException = new IllegalStateException("Download path is not a directory: " + path); - return null; - } - - // Download the file. - try (OutputStream outputStream = new FileOutputStream(file)) { - mDbxClient.files().download(metadata.getPathLower(), metadata.getRev()) - .download(outputStream); - } - - // Tell android about the file - Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); - intent.setData(Uri.fromFile(file)); - mContext.sendBroadcast(intent); - - return file; - } catch (DbxException | IOException e) { - mException = e; - } - - return null; - } -} diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java b/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java deleted file mode 100644 index 79e52c666..000000000 --- a/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.dropbox.core.examples.android; - -import android.content.SharedPreferences; -import android.support.v7.app.AppCompatActivity; - -import com.dropbox.core.android.Auth; - - -/** - * Base class for Activities that require auth tokens - * Will redirect to auth flow if needed - */ -public abstract class DropboxActivity extends AppCompatActivity { - - @Override - protected void onResume() { - super.onResume(); - - SharedPreferences prefs = getSharedPreferences("dropbox-sample", MODE_PRIVATE); - String accessToken = prefs.getString("access-token", null); - if (accessToken == null) { - accessToken = Auth.getOAuth2Token(); - if (accessToken != null) { - prefs.edit().putString("access-token", accessToken).apply(); - initAndLoadData(accessToken); - } - } else { - initAndLoadData(accessToken); - } - - String uid = Auth.getUid(); - String storedUid = prefs.getString("user-id", null); - if (uid != null && !uid.equals(storedUid)) { - prefs.edit().putString("user-id", uid).apply(); - } - } - - private void initAndLoadData(String accessToken) { - DropboxClientFactory.init(accessToken); - PicassoClient.init(getApplicationContext(), DropboxClientFactory.getClient()); - loadData(); - } - - protected abstract void loadData(); - - protected boolean hasToken() { - SharedPreferences prefs = getSharedPreferences("dropbox-sample", MODE_PRIVATE); - String accessToken = prefs.getString("access-token", null); - return accessToken != null; - } -} diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxAndroidSampleApplication.kt b/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxAndroidSampleApplication.kt new file mode 100644 index 000000000..7175ce442 --- /dev/null +++ b/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxAndroidSampleApplication.kt @@ -0,0 +1,9 @@ +package com.dropbox.core.examples.android + +import android.app.Application +import com.dropbox.core.examples.android.internal.di.AppGraph +import com.dropbox.core.examples.android.internal.di.AppGraphImpl + +class DropboxAndroidSampleApplication : Application() { + val appGraph: AppGraph = AppGraphImpl(this) +} \ No newline at end of file diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java b/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java deleted file mode 100644 index acaba6b9d..000000000 --- a/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.dropbox.core.examples.android; - -import com.dropbox.core.DbxHost; -import com.dropbox.core.DbxRequestConfig; -import com.dropbox.core.http.OkHttp3Requestor; -import com.dropbox.core.v2.DbxClientV2; - -/** - * Singleton instance of {@link DbxClientV2} and friends - */ -public class DropboxClientFactory { - - private static DbxClientV2 sDbxClient; - - public static void init(String accessToken) { - if (sDbxClient == null) { - DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("examples-v2-demo") - .withHttpRequestor(new OkHttp3Requestor(OkHttp3Requestor.defaultOkHttpClient())) - .build(); - - sDbxClient = new DbxClientV2(requestConfig, accessToken); - } - } - - public static DbxClientV2 getClient() { - if (sDbxClient == null) { - throw new IllegalStateException("Client not initialized."); - } - return sDbxClient; - } -} diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/FileThumbnailRequestHandler.java b/examples/android/src/main/java/com/dropbox/core/examples/android/FileThumbnailRequestHandler.java deleted file mode 100644 index e0157de0b..000000000 --- a/examples/android/src/main/java/com/dropbox/core/examples/android/FileThumbnailRequestHandler.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.dropbox.core.examples.android; - -import android.net.Uri; - -import com.dropbox.core.DbxDownloader; -import com.dropbox.core.DbxException; -import com.dropbox.core.v2.DbxClientV2; -import com.dropbox.core.v2.files.FileMetadata; -import com.dropbox.core.v2.files.ThumbnailFormat; -import com.dropbox.core.v2.files.ThumbnailSize; -import com.squareup.picasso.Picasso; -import com.squareup.picasso.Request; -import com.squareup.picasso.RequestHandler; - -import java.io.IOException; - -/** - * Example Picasso request handler that gets the thumbnail url for a dropbox path - * Only handles urls like dropbox://dropbox/[path_to_file] - * See {@link FilesAdapter} for usage - */ -public class FileThumbnailRequestHandler extends RequestHandler { - - private static final String SCHEME = "dropbox"; - private static final String HOST = "dropbox"; - private final DbxClientV2 mDbxClient; - - public FileThumbnailRequestHandler(DbxClientV2 dbxClient) { - mDbxClient = dbxClient; - } - - /** - * Builds a {@link Uri} for a Dropbox file thumbnail suitable for handling by this handler - */ - public static Uri buildPicassoUri(FileMetadata file) { - return new Uri.Builder() - .scheme(SCHEME) - .authority(HOST) - .path(file.getPathLower()).build(); - } - - @Override - public boolean canHandleRequest(Request data) { - return SCHEME.equals(data.uri.getScheme()) && HOST.equals(data.uri.getHost()); - } - - @Override - public Result load(Request request, int networkPolicy) throws IOException { - - try { - DbxDownloader downloader = - mDbxClient.files().getThumbnailBuilder(request.uri.getPath()) - .withFormat(ThumbnailFormat.JPEG) - .withSize(ThumbnailSize.W1024H768) - .start(); - - return new Result(downloader.getInputStream(), Picasso.LoadedFrom.NETWORK); - } catch (DbxException e) { - throw new IOException(e); - } - } -} diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/FilesActivity.java b/examples/android/src/main/java/com/dropbox/core/examples/android/FilesActivity.java deleted file mode 100644 index f9e444f78..000000000 --- a/examples/android/src/main/java/com/dropbox/core/examples/android/FilesActivity.java +++ /dev/null @@ -1,355 +0,0 @@ -package com.dropbox.core.examples.android; - -import android.Manifest; -import android.app.ProgressDialog; -import android.content.Context; -import android.content.DialogInterface; -import android.content.Intent; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; -import android.net.Uri; -import android.os.Bundle; -import android.support.annotation.NonNull; -import android.support.design.widget.FloatingActionButton; -import android.support.v4.app.ActivityCompat; -import android.support.v4.content.ContextCompat; -import android.support.v7.app.AlertDialog; -import android.support.v7.widget.LinearLayoutManager; -import android.support.v7.widget.RecyclerView; -import android.support.v7.widget.Toolbar; -import android.util.Log; -import android.view.View; -import android.webkit.MimeTypeMap; -import android.widget.Toast; - -import com.dropbox.core.v2.files.FileMetadata; -import com.dropbox.core.v2.files.FolderMetadata; -import com.dropbox.core.v2.files.ListFolderResult; - -import java.io.File; -import java.text.DateFormat; -import java.util.List; - - -/** - * Activity that displays the content of a path in dropbox and lets users navigate folders, - * and upload/download files - */ -public class FilesActivity extends DropboxActivity { - private static final String TAG = FilesActivity.class.getName(); - - public final static String EXTRA_PATH = "FilesActivity_Path"; - private static final int PICKFILE_REQUEST_CODE = 1; - - private String mPath; - private FilesAdapter mFilesAdapter; - private FileMetadata mSelectedFile; - - public static Intent getIntent(Context context, String path) { - Intent filesIntent = new Intent(context, FilesActivity.class); - filesIntent.putExtra(FilesActivity.EXTRA_PATH, path); - return filesIntent; - } - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - String path = getIntent().getStringExtra(EXTRA_PATH); - mPath = path == null ? "" : path; - - setContentView(R.layout.activity_files); - - Toolbar toolbar = (Toolbar) findViewById(R.id.app_bar); - setSupportActionBar(toolbar); - - FloatingActionButton fab = (FloatingActionButton)findViewById(R.id.fab); - fab.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - performWithPermissions(FileAction.UPLOAD); - } - }); - - RecyclerView recyclerView = (RecyclerView) findViewById(R.id.files_list); - mFilesAdapter = new FilesAdapter(PicassoClient.getPicasso(), new FilesAdapter.Callback() { - @Override - public void onFolderClicked(FolderMetadata folder) { - startActivity(FilesActivity.getIntent(FilesActivity.this, folder.getPathLower())); - } - - @Override - public void onFileClicked(final FileMetadata file) { - mSelectedFile = file; - performWithPermissions(FileAction.DOWNLOAD); - } - }); - recyclerView.setLayoutManager(new LinearLayoutManager(this)); - recyclerView.setAdapter(mFilesAdapter); - - mSelectedFile = null; - } - - private void launchFilePicker() { - // Launch intent to pick file for upload - Intent intent = new Intent(Intent.ACTION_GET_CONTENT); - intent.addCategory(Intent.CATEGORY_OPENABLE); - intent.setType("*/*"); - startActivityForResult(intent, PICKFILE_REQUEST_CODE); - } - - @Override - protected void onActivityResult(int requestCode, int resultCode, final Intent data) { - super.onActivityResult(requestCode, resultCode, data); - - if (requestCode == PICKFILE_REQUEST_CODE) { - if (resultCode == RESULT_OK) { - - // This is the result of a call to launchFilePicker - uploadFile(data.getData().toString()); - } - } - } - - @Override - public void onRequestPermissionsResult(int actionCode, @NonNull String [] permissions, @NonNull int [] grantResults) { - FileAction action = FileAction.fromCode(actionCode); - - boolean granted = true; - for (int i = 0; i < grantResults.length; ++i) { - if (grantResults[i] == PackageManager.PERMISSION_DENIED) { - Log.w(TAG, "User denied " + permissions[i] + - " permission to perform file action: " + action); - granted = false; - break; - } - } - - if (granted) { - performAction(action); - } else { - switch (action) { - case UPLOAD: - Toast.makeText(this, - "Can't upload file: read access denied. " + - "Please grant storage permissions to use this functionality.", - Toast.LENGTH_LONG) - .show(); - break; - case DOWNLOAD: - Toast.makeText(this, - "Can't download file: write access denied. " + - "Please grant storage permissions to use this functionality.", - Toast.LENGTH_LONG) - .show(); - break; - } - } - } - - private void performAction(FileAction action) { - switch(action) { - case UPLOAD: - launchFilePicker(); - break; - case DOWNLOAD: - if (mSelectedFile != null) { - downloadFile(mSelectedFile); - } else { - Log.e(TAG, "No file selected to download."); - } - break; - default: - Log.e(TAG, "Can't perform unhandled file action: " + action); - } - } - - @Override - protected void loadData() { - - final ProgressDialog dialog = new ProgressDialog(this); - dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); - dialog.setCancelable(false); - dialog.setMessage("Loading"); - dialog.show(); - - new ListFolderTask(DropboxClientFactory.getClient(), new ListFolderTask.Callback() { - @Override - public void onDataLoaded(ListFolderResult result) { - dialog.dismiss(); - - mFilesAdapter.setFiles(result.getEntries()); - } - - @Override - public void onError(Exception e) { - dialog.dismiss(); - - Log.e(TAG, "Failed to list folder.", e); - Toast.makeText(FilesActivity.this, - "An error has occurred", - Toast.LENGTH_SHORT) - .show(); - } - }).execute(mPath); - } - - private void downloadFile(FileMetadata file) { - final ProgressDialog dialog = new ProgressDialog(this); - dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); - dialog.setCancelable(false); - dialog.setMessage("Downloading"); - dialog.show(); - - new DownloadFileTask(FilesActivity.this, DropboxClientFactory.getClient(), new DownloadFileTask.Callback() { - @Override - public void onDownloadComplete(File result) { - dialog.dismiss(); - - if (result != null) { - viewFileInExternalApp(result); - } - } - - @Override - public void onError(Exception e) { - dialog.dismiss(); - - Log.e(TAG, "Failed to download file.", e); - Toast.makeText(FilesActivity.this, - "An error has occurred", - Toast.LENGTH_SHORT) - .show(); - } - }).execute(file); - - } - - private void viewFileInExternalApp(File result) { - Intent intent = new Intent(Intent.ACTION_VIEW); - MimeTypeMap mime = MimeTypeMap.getSingleton(); - String ext = result.getName().substring(result.getName().indexOf(".") + 1); - String type = mime.getMimeTypeFromExtension(ext); - - intent.setDataAndType(Uri.fromFile(result), type); - - // Check for a handler first to avoid a crash - PackageManager manager = getPackageManager(); - List resolveInfo = manager.queryIntentActivities(intent, 0); - if (resolveInfo.size() > 0) { - startActivity(intent); - } - } - - private void uploadFile(String fileUri) { - final ProgressDialog dialog = new ProgressDialog(this); - dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); - dialog.setCancelable(false); - dialog.setMessage("Uploading"); - dialog.show(); - - new UploadFileTask(this, DropboxClientFactory.getClient(), new UploadFileTask.Callback() { - @Override - public void onUploadComplete(FileMetadata result) { - dialog.dismiss(); - - String message = result.getName() + " size " + result.getSize() + " modified " + - DateFormat.getDateTimeInstance().format(result.getClientModified()); - Toast.makeText(FilesActivity.this, message, Toast.LENGTH_SHORT) - .show(); - - // Reload the folder - loadData(); - } - - @Override - public void onError(Exception e) { - dialog.dismiss(); - - Log.e(TAG, "Failed to upload file.", e); - Toast.makeText(FilesActivity.this, - "An error has occurred", - Toast.LENGTH_SHORT) - .show(); - } - }).execute(fileUri, mPath); - } - - private void performWithPermissions(final FileAction action) { - if (hasPermissionsForAction(action)) { - performAction(action); - return; - } - - if (shouldDisplayRationaleForAction(action)) { - new AlertDialog.Builder(this) - .setMessage("This app requires storage access to download and upload files.") - .setPositiveButton("OK", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - requestPermissionsForAction(action); - } - }) - .setNegativeButton("Cancel", null) - .create() - .show(); - } else { - requestPermissionsForAction(action); - } - } - - private boolean hasPermissionsForAction(FileAction action) { - for (String permission : action.getPermissions()) { - int result = ContextCompat.checkSelfPermission(this, permission); - if (result == PackageManager.PERMISSION_DENIED) { - return false; - } - } - return true; - } - - private boolean shouldDisplayRationaleForAction(FileAction action) { - for (String permission : action.getPermissions()) { - if (!ActivityCompat.shouldShowRequestPermissionRationale(this, permission)) { - return true; - } - } - return false; - } - - private void requestPermissionsForAction(FileAction action) { - ActivityCompat.requestPermissions( - this, - action.getPermissions(), - action.getCode() - ); - } - - private enum FileAction { - DOWNLOAD(Manifest.permission.WRITE_EXTERNAL_STORAGE), - UPLOAD(Manifest.permission.READ_EXTERNAL_STORAGE); - - private static final FileAction [] values = values(); - - private final String [] permissions; - - FileAction(String ... permissions) { - this.permissions = permissions; - } - - public int getCode() { - return ordinal(); - } - - public String [] getPermissions() { - return permissions; - } - - public static FileAction fromCode(int code) { - if (code < 0 || code >= values.length) { - throw new IllegalArgumentException("Invalid FileAction code: " + code); - } - return values[code]; - } - } -} diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/FilesActivity.kt b/examples/android/src/main/java/com/dropbox/core/examples/android/FilesActivity.kt new file mode 100644 index 000000000..876435e5d --- /dev/null +++ b/examples/android/src/main/java/com/dropbox/core/examples/android/FilesActivity.kt @@ -0,0 +1,330 @@ +package com.dropbox.core.examples.android + +import android.Manifest +import android.app.Activity +import android.app.ProgressDialog +import android.content.Context +import android.content.Intent +import android.content.pm.PackageManager +import android.net.Uri +import android.os.Bundle +import android.util.Log +import android.view.View +import android.webkit.MimeTypeMap +import android.widget.Toast +import androidx.appcompat.app.AlertDialog +import androidx.appcompat.widget.Toolbar +import androidx.core.app.ActivityCompat +import androidx.core.content.ContextCompat +import androidx.core.content.FileProvider +import androidx.lifecycle.lifecycleScope +import androidx.recyclerview.widget.LinearLayoutManager +import androidx.recyclerview.widget.RecyclerView +import com.dropbox.core.examples.android.internal.api.DownloadFileTaskResult +import com.dropbox.core.examples.android.internal.api.FileMetadataApiResult +import com.dropbox.core.examples.android.internal.api.ListFolderApiResult +import com.dropbox.core.examples.android.internal.ui.FilesAdapter +import com.dropbox.core.examples.android.internal.util.UriHelpers +import com.dropbox.core.v2.files.FileMetadata +import com.dropbox.core.v2.files.FolderMetadata +import com.google.android.material.floatingactionbutton.FloatingActionButton +import java.io.File +import java.text.DateFormat +import kotlinx.coroutines.launch + + +/** + * Activity that displays the content of a path in dropbox and lets users navigate folders, + * and upload/download files + */ +class FilesActivity : BaseSampleActivity() { + private var mPath: String? = null + private var mFilesAdapter: FilesAdapter? = null + private var mSelectedFile: FileMetadata? = null + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + mPath = intent.getStringExtra(EXTRA_PATH) ?: "" + setContentView(R.layout.activity_files) + + val toolbar = findViewById(R.id.app_bar) as Toolbar + setSupportActionBar(toolbar) + val fab = findViewById(R.id.fab) as FloatingActionButton + fab.setOnClickListener { performWithPermissions(FileAction.UPLOAD) } + val recyclerView = findViewById(R.id.files_list) as RecyclerView + mFilesAdapter = FilesAdapter( + dbxClientV2 = dropboxApiWrapper.dropboxClient, + mCallback = object : FilesAdapter.Callback { + override fun onFolderClicked(folder: FolderMetadata?) { + requireNotNull(folder) + startActivity(getIntent(this@FilesActivity, folder.pathLower)) + } + + override fun onFileClicked(file: FileMetadata?) { + mSelectedFile = file + performWithPermissions(FileAction.DOWNLOAD) + } + }, + scope = lifecycleScope, + ) + recyclerView.layoutManager = LinearLayoutManager(this) + recyclerView.adapter = mFilesAdapter + mSelectedFile = null + } + + private fun launchFilePicker() { + // Launch intent to pick file for upload + val intent = Intent(Intent.ACTION_GET_CONTENT) + intent.addCategory(Intent.CATEGORY_OPENABLE) + intent.type = "*/*" + startActivityForResult(intent, PICKFILE_REQUEST_CODE) + } + + override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { + super.onActivityResult(requestCode, resultCode, data) + if (requestCode == PICKFILE_REQUEST_CODE) { + if (resultCode == Activity.RESULT_OK) { + + // This is the result of a call to launchFilePicker + uploadFile(data!!.data.toString()) + } + } + } + + override fun onRequestPermissionsResult( + requestCode: Int, + permissions: Array, + grantResults: IntArray + ) { + val action = FileAction.fromCode(requestCode) + var granted = true + for (i in grantResults.indices) { + if (grantResults[i] == PackageManager.PERMISSION_DENIED) { + Log.w( + TAG, "User denied " + permissions[i] + + " permission to perform file action: " + action + ) + granted = false + break + } + } + if (granted) { + performAction(action) + } else { + when (action) { + FileAction.UPLOAD -> Toast.makeText( + this, + "Can't upload file: read access denied. " + + "Please grant storage permissions to use this functionality.", + Toast.LENGTH_LONG + ) + .show() + FileAction.DOWNLOAD -> Toast.makeText( + this, + "Can't download file: write access denied. " + + "Please grant storage permissions to use this functionality.", + Toast.LENGTH_LONG + ) + .show() + } + } + + super.onRequestPermissionsResult(requestCode, permissions, grantResults) + } + + private fun performAction(action: FileAction) { + when (action) { + FileAction.UPLOAD -> launchFilePicker() + FileAction.DOWNLOAD -> if (mSelectedFile != null) { + downloadFile(mSelectedFile!!) + } + } + } + + override fun loadData() { + mPath?.let { path -> + val dialog: ProgressDialog = ProgressDialog(this).apply { + setProgressStyle(ProgressDialog.STYLE_SPINNER) + setCancelable(false) + setMessage("Loading") + } + dialog.show() + lifecycleScope.launch { + when (val apiResult = dropboxApiWrapper.listFolders(path)) { + is ListFolderApiResult.Error -> { + dialog.dismiss() + Log.e(TAG, "Failed to list folder.", apiResult.e) + Toast.makeText( + this@FilesActivity, + "An error has occurred", + Toast.LENGTH_SHORT + ) + .show() + } + is ListFolderApiResult.Success -> { + dialog.dismiss() + mFilesAdapter!!.setFiles(apiResult.result.entries) + } + } + } + } + } + + private fun downloadFile(file: FileMetadata) { + val dialog = ProgressDialog(this).apply { + setProgressStyle(ProgressDialog.STYLE_SPINNER) + setCancelable(false) + setMessage("Downloading") + } + dialog.show() + lifecycleScope.launch { + val downloadFileTaskResult = dropboxApiWrapper.download( + this@FilesActivity.applicationContext, file + ) + when (downloadFileTaskResult) { + is DownloadFileTaskResult.Error -> { + dialog.dismiss() + Log.e(TAG, "Failed to download file.", downloadFileTaskResult.e) + Toast.makeText( + this@FilesActivity, + "An error has occurred", + Toast.LENGTH_SHORT + ).show() + } + is DownloadFileTaskResult.Success -> { + dialog.dismiss() + viewFileInExternalApp( + applicationContext, + downloadFileTaskResult.result + ) + } + } + } + } + + private fun viewFileInExternalApp(context: Context, result: File) { + val intent = Intent(Intent.ACTION_VIEW) + val mime = MimeTypeMap.getSingleton() + val ext = result.name.substring(result.name.indexOf(".") + 1) + val type = mime.getMimeTypeFromExtension(ext) + val uri: Uri = FileProvider.getUriForFile( + context, + context.applicationContext.packageName + ".provider", result + ) + + intent.setDataAndType(uri, type) + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) + + // Check for a handler first to avoid a crash + val manager = packageManager + val resolveInfo = manager.queryIntentActivities(intent, 0) + if (resolveInfo.size > 0) { + startActivity(intent) + } + } + + private fun uploadFile(fileUri: String) { + val dialog = ProgressDialog(this) + dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER) + dialog.setCancelable(false) + dialog.setMessage("Uploading") + dialog.show() + lifecycleScope.launch { + val localFile = UriHelpers.getFileForUri(applicationContext, Uri.parse(fileUri)) + + when (val uploadedFileResult = dropboxApiWrapper.uploadFile(localFile!!, mPath!!)) { + is FileMetadataApiResult.Error -> { + dialog.dismiss() + Log.e(TAG, "Failed to upload file.", uploadedFileResult.e) + Toast.makeText( + this@FilesActivity, + "An error has occurred", + Toast.LENGTH_SHORT + ).show() + } + is FileMetadataApiResult.Success -> { + val result = uploadedFileResult.fileMetadata + dialog.dismiss() + val message = result.name + " size " + result.size + " modified " + + DateFormat.getDateTimeInstance().format(result.clientModified) + Toast.makeText(this@FilesActivity, message, Toast.LENGTH_SHORT).show() + + // Reload the folder + loadData() + } + } + } + } + + private fun performWithPermissions(action: FileAction) { + if (hasPermissionsForAction(action)) { + performAction(action) + return + } + if (shouldDisplayRationaleForAction(action)) { + AlertDialog.Builder(this) + .setMessage("This app requires storage access to download and upload files.") + .setPositiveButton("OK") { dialog, which -> requestPermissionsForAction(action) } + .setNegativeButton("Cancel", null) + .create() + .show() + } else { + requestPermissionsForAction(action) + } + } + + private fun hasPermissionsForAction(action: FileAction): Boolean { + for (permission in action.permissions) { + val result = ContextCompat.checkSelfPermission(this, permission) + if (result == PackageManager.PERMISSION_DENIED) { + return false + } + } + return true + } + + private fun shouldDisplayRationaleForAction(action: FileAction): Boolean { + for (permission in action.permissions) { + if (!ActivityCompat.shouldShowRequestPermissionRationale(this, permission)) { + return true + } + } + return false + } + + private fun requestPermissionsForAction(action: FileAction) { + ActivityCompat.requestPermissions( + this, + action.permissions, + action.getCode() + ) + } + + private enum class FileAction(vararg permissions: String) { + DOWNLOAD(Manifest.permission.WRITE_EXTERNAL_STORAGE), UPLOAD(Manifest.permission.READ_EXTERNAL_STORAGE); + + val permissions: Array = permissions.toList().toTypedArray() + + fun getCode(): Int { + return ordinal + } + + companion object { + private val values = values() + fun fromCode(code: Int): FileAction { + require(!(code < 0 || code >= values.size)) { "Invalid FileAction code: $code" } + return values[code] + } + } + } + + companion object { + private val TAG = FilesActivity::class.java.name + const val EXTRA_PATH = "FilesActivity_Path" + private const val PICKFILE_REQUEST_CODE = 1 + fun getIntent(context: Context?, path: String?): Intent { + val filesIntent = Intent(context, FilesActivity::class.java) + filesIntent.putExtra(EXTRA_PATH, path) + return filesIntent + } + } +} \ No newline at end of file diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java b/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java deleted file mode 100644 index f8da17eee..000000000 --- a/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.dropbox.core.examples.android; - -import android.content.Context; -import android.support.v7.widget.RecyclerView; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.webkit.MimeTypeMap; -import android.widget.ImageView; -import android.widget.TextView; - -import com.dropbox.core.v2.files.FileMetadata; -import com.dropbox.core.v2.files.FolderMetadata; -import com.dropbox.core.v2.files.Metadata; -import com.squareup.picasso.Picasso; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -/** - * Adapter for file list - */ -public class FilesAdapter extends RecyclerView.Adapter { - private List mFiles; - private final Picasso mPicasso; - private final Callback mCallback; - - public void setFiles(List files) { - mFiles = Collections.unmodifiableList(new ArrayList<>(files)); - notifyDataSetChanged(); - } - - public interface Callback { - void onFolderClicked(FolderMetadata folder); - void onFileClicked(FileMetadata file); - } - - public FilesAdapter(Picasso picasso, Callback callback) { - mPicasso = picasso; - mCallback = callback; - } - - @Override - public MetadataViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { - Context context = viewGroup.getContext(); - View view = LayoutInflater.from(context) - .inflate(R.layout.files_item, viewGroup, false); - return new MetadataViewHolder(view); - } - - @Override - public void onBindViewHolder(MetadataViewHolder metadataViewHolder, int i) { - metadataViewHolder.bind(mFiles.get(i)); - } - - @Override - public long getItemId(int position) { - return mFiles.get(position).getPathLower().hashCode(); - } - - @Override - public int getItemCount() { - return mFiles == null ? 0 : mFiles.size(); - } - - public class MetadataViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { - private final TextView mTextView; - private final ImageView mImageView; - private Metadata mItem; - - public MetadataViewHolder(View itemView) { - super(itemView); - mImageView = (ImageView)itemView.findViewById(R.id.image); - mTextView = (TextView)itemView.findViewById(R.id.text); - itemView.setOnClickListener(this); - } - - @Override - public void onClick(View v) { - - if (mItem instanceof FolderMetadata) { - mCallback.onFolderClicked((FolderMetadata) mItem); - } else if (mItem instanceof FileMetadata) { - mCallback.onFileClicked((FileMetadata)mItem); - } - } - - public void bind(Metadata item) { - mItem = item; - mTextView.setText(mItem.getName()); - - // Load based on file path - // Prepending a magic scheme to get it to - // be picked up by DropboxPicassoRequestHandler - - if (item instanceof FileMetadata) { - MimeTypeMap mime = MimeTypeMap.getSingleton(); - String ext = item.getName().substring(item.getName().indexOf(".") + 1); - String type = mime.getMimeTypeFromExtension(ext); - if (type != null && type.startsWith("image/")) { - mPicasso.load(FileThumbnailRequestHandler.buildPicassoUri((FileMetadata)item)) - .placeholder(R.drawable.ic_photo_grey_600_36dp) - .error(R.drawable.ic_photo_grey_600_36dp) - .into(mImageView); - } else { - mPicasso.load(R.drawable.ic_insert_drive_file_blue_36dp) - .noFade() - .into(mImageView); - } - } else if (item instanceof FolderMetadata) { - mPicasso.load(R.drawable.ic_folder_blue_36dp) - .noFade() - .into(mImageView); - } - } - } -} diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/GetCurrentAccountTask.java b/examples/android/src/main/java/com/dropbox/core/examples/android/GetCurrentAccountTask.java deleted file mode 100644 index d9c85f20b..000000000 --- a/examples/android/src/main/java/com/dropbox/core/examples/android/GetCurrentAccountTask.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.dropbox.core.examples.android; - -import android.os.AsyncTask; - -import com.dropbox.core.DbxException; -import com.dropbox.core.v2.DbxClientV2; -import com.dropbox.core.v2.users.FullAccount; - -/** - * Async task for getting user account info - */ -class GetCurrentAccountTask extends AsyncTask { - - private final DbxClientV2 mDbxClient; - private final Callback mCallback; - private Exception mException; - - public interface Callback { - void onComplete(FullAccount result); - void onError(Exception e); - } - - GetCurrentAccountTask(DbxClientV2 dbxClient, Callback callback) { - mDbxClient = dbxClient; - mCallback = callback; - } - - @Override - protected void onPostExecute(FullAccount account) { - super.onPostExecute(account); - if (mException != null) { - mCallback.onError(mException); - } else { - mCallback.onComplete(account); - } - } - - @Override - protected FullAccount doInBackground(Void... params) { - - try { - return mDbxClient.users().getCurrentAccount(); - - } catch (DbxException e) { - mException = e; - } - - return null; - } -} diff --git a/examples/android/src/main/java/com/dropbox/core/examples/android/HomeActivity.kt b/examples/android/src/main/java/com/dropbox/core/examples/android/HomeActivity.kt new file mode 100644 index 000000000..4f8b6314c --- /dev/null +++ b/examples/android/src/main/java/com/dropbox/core/examples/android/HomeActivity.kt @@ -0,0 +1,206 @@ +package com.dropbox.core.examples.android + +import android.content.Context +import android.content.Intent +import android.os.Bundle +import android.util.Log +import android.view.View +import android.webkit.MimeTypeMap +import android.widget.Button +import android.widget.ImageView +import android.widget.ProgressBar +import android.widget.TextView +import android.widget.Toast +import androidx.activity.result.contract.ActivityResultContracts +import androidx.appcompat.widget.Toolbar +import androidx.lifecycle.lifecycleScope +import com.bumptech.glide.Glide +import com.dropbox.core.examples.android.internal.api.DropboxUploadApiResponse +import com.dropbox.core.examples.android.internal.api.GetCurrentAccountResult +import java.io.InputStream +import kotlinx.coroutines.launch + +/** + * Activity that shows information about the currently logged in user + */ +class HomeActivity : BaseSampleActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_home) + + val toolbar = findViewById(R.id.app_bar) + setSupportActionBar(toolbar) + filesButton.setOnClickListener { + startActivity( + FilesActivity.getIntent( + this@HomeActivity, + "" + ) + ) + } + val openWithButton = findViewById